@mdspl/mds-shared-ui 0.3.8 → 0.4.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 +16 -2
- package/dist/index.js +1049 -1017
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import ne, { useLayoutEffect as
|
|
2
|
-
import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, VStack as
|
|
1
|
+
import ne, { useLayoutEffect as go, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as He, forwardRef as wn, createElement as hn } from "react";
|
|
2
|
+
import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, VStack as Ie, Kbd as Vn, Input as Sn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as Ke, CloseButton as Rr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as Ct, createPortal as xo } from "react-dom";
|
|
4
4
|
function Ut(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var Rt = { exports: {} }, at = {};
|
|
8
|
-
var
|
|
8
|
+
var Hn;
|
|
9
9
|
function yo() {
|
|
10
|
-
if (
|
|
11
|
-
|
|
10
|
+
if (Hn) return at;
|
|
11
|
+
Hn = 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
14
|
var a = null;
|
|
@@ -34,16 +34,16 @@ function wo() {
|
|
|
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 === k ? 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 R:
|
|
43
43
|
return "Profiler";
|
|
44
|
-
case
|
|
44
|
+
case w:
|
|
45
45
|
return "StrictMode";
|
|
46
|
-
case
|
|
46
|
+
case T:
|
|
47
47
|
return "Suspense";
|
|
48
48
|
case $:
|
|
49
49
|
return "SuspenseList";
|
|
@@ -54,11 +54,11 @@ function wo() {
|
|
|
54
54
|
switch (typeof g.tag == "number" && console.error(
|
|
55
55
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
56
56
|
), g.$$typeof) {
|
|
57
|
-
case
|
|
57
|
+
case h:
|
|
58
58
|
return "Portal";
|
|
59
|
-
case
|
|
59
|
+
case _:
|
|
60
60
|
return g.displayName || "Context";
|
|
61
|
-
case
|
|
61
|
+
case E:
|
|
62
62
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
63
|
case O:
|
|
64
64
|
var S = g.render;
|
|
@@ -121,7 +121,7 @@ function wo() {
|
|
|
121
121
|
}
|
|
122
122
|
function c(g, S) {
|
|
123
123
|
function A() {
|
|
124
|
-
|
|
124
|
+
y || (y = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
126
126
|
S
|
|
127
127
|
));
|
|
@@ -131,13 +131,13 @@ function wo() {
|
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function l() {
|
|
135
135
|
var g = e(this.type);
|
|
136
136
|
return j[g] || (j[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
|
-
function
|
|
140
|
+
function u(g, S, A, P, G, X) {
|
|
141
141
|
var F = A.ref;
|
|
142
142
|
return g = {
|
|
143
143
|
$$typeof: v,
|
|
@@ -147,7 +147,7 @@ function wo() {
|
|
|
147
147
|
_owner: P
|
|
148
148
|
}, (F !== void 0 ? F : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
|
-
get:
|
|
150
|
+
get: l
|
|
151
151
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
@@ -170,7 +170,7 @@ function wo() {
|
|
|
170
170
|
value: X
|
|
171
171
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function f(g, S, A, P, G, X) {
|
|
174
174
|
var F = S.children;
|
|
175
175
|
if (F !== void 0)
|
|
176
176
|
if (P)
|
|
@@ -209,7 +209,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
209
209
|
return F && c(
|
|
210
210
|
A,
|
|
211
211
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
|
-
),
|
|
212
|
+
), u(
|
|
213
213
|
g,
|
|
214
214
|
F,
|
|
215
215
|
A,
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
function m(g) {
|
|
225
225
|
return typeof g == "object" && g !== null && g.$$typeof === v;
|
|
226
226
|
}
|
|
227
|
-
var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
227
|
+
var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
p = {
|
|
@@ -232,29 +232,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var
|
|
235
|
+
var y, j = {}, C = p.react_stack_bottom_frame.bind(
|
|
236
236
|
p,
|
|
237
237
|
s
|
|
238
|
-
)(),
|
|
238
|
+
)(), I = D(r(s)), L = {};
|
|
239
239
|
ct.Fragment = b, ct.jsx = function(g, S, A) {
|
|
240
240
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
241
|
-
return
|
|
241
|
+
return f(
|
|
242
242
|
g,
|
|
243
243
|
S,
|
|
244
244
|
A,
|
|
245
245
|
!1,
|
|
246
246
|
P ? Error("react-stack-top-frame") : C,
|
|
247
|
-
P ? D(r(g)) :
|
|
247
|
+
P ? D(r(g)) : I
|
|
248
248
|
);
|
|
249
249
|
}, ct.jsxs = function(g, S, A) {
|
|
250
250
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
251
|
-
return
|
|
251
|
+
return f(
|
|
252
252
|
g,
|
|
253
253
|
S,
|
|
254
254
|
A,
|
|
255
255
|
!0,
|
|
256
256
|
P ? Error("react-stack-top-frame") : C,
|
|
257
|
-
P ? D(r(g)) :
|
|
257
|
+
P ? D(r(g)) : I
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
260
|
})()), ct;
|
|
@@ -274,22 +274,22 @@ function Do() {
|
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
276
|
function c(d, m) {
|
|
277
|
-
var p = m(), v = r({ inst: { value: p, getSnapshot: m } }),
|
|
277
|
+
var p = m(), v = r({ inst: { value: p, getSnapshot: m } }), h = v[0].inst, b = v[1];
|
|
278
278
|
return s(
|
|
279
279
|
function() {
|
|
280
|
-
|
|
280
|
+
h.value = p, h.getSnapshot = m, l(h) && b({ inst: h });
|
|
281
281
|
},
|
|
282
282
|
[d, p, m]
|
|
283
283
|
), o(
|
|
284
284
|
function() {
|
|
285
|
-
return
|
|
286
|
-
|
|
285
|
+
return l(h) && b({ inst: h }), d(function() {
|
|
286
|
+
l(h) && b({ inst: h });
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
289
|
[d]
|
|
290
290
|
), a(p), p;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function l(d) {
|
|
293
293
|
var m = d.getSnapshot;
|
|
294
294
|
d = d.value;
|
|
295
295
|
try {
|
|
@@ -299,11 +299,11 @@ function Do() {
|
|
|
299
299
|
return !0;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function u(d, m) {
|
|
303
303
|
return m();
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore :
|
|
305
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
|
|
306
|
+
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, nn;
|
|
307
307
|
}
|
|
308
308
|
var rn = {};
|
|
309
309
|
var Gn;
|
|
@@ -313,40 +313,40 @@ function Co() {
|
|
|
313
313
|
return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
|
|
314
314
|
}
|
|
315
315
|
function t(p, v) {
|
|
316
|
-
|
|
316
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
317
317
|
"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."
|
|
318
318
|
));
|
|
319
|
-
var
|
|
319
|
+
var h = v();
|
|
320
320
|
if (!d) {
|
|
321
321
|
var b = v();
|
|
322
|
-
s(
|
|
322
|
+
s(h, b) || (console.error(
|
|
323
323
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
324
324
|
), d = !0);
|
|
325
325
|
}
|
|
326
326
|
b = a({
|
|
327
|
-
inst: { value:
|
|
327
|
+
inst: { value: h, getSnapshot: v }
|
|
328
328
|
});
|
|
329
|
-
var
|
|
330
|
-
return
|
|
329
|
+
var w = b[0].inst, R = b[1];
|
|
330
|
+
return l(
|
|
331
331
|
function() {
|
|
332
|
-
|
|
332
|
+
w.value = h, w.getSnapshot = v, n(w) && R({ inst: w });
|
|
333
333
|
},
|
|
334
|
-
[p,
|
|
334
|
+
[p, h, v]
|
|
335
335
|
), c(
|
|
336
336
|
function() {
|
|
337
|
-
return n(
|
|
338
|
-
n(
|
|
337
|
+
return n(w) && R({ inst: w }), p(function() {
|
|
338
|
+
n(w) && R({ inst: w });
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
341
|
[p]
|
|
342
|
-
),
|
|
342
|
+
), u(h), h;
|
|
343
343
|
}
|
|
344
344
|
function n(p) {
|
|
345
345
|
var v = p.getSnapshot;
|
|
346
346
|
p = p.value;
|
|
347
347
|
try {
|
|
348
|
-
var
|
|
349
|
-
return !s(p,
|
|
348
|
+
var h = v();
|
|
349
|
+
return !s(p, h);
|
|
350
350
|
} catch {
|
|
351
351
|
return !0;
|
|
352
352
|
}
|
|
@@ -355,7 +355,7 @@ function Co() {
|
|
|
355
355
|
return v();
|
|
356
356
|
}
|
|
357
357
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
358
|
-
var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect,
|
|
358
|
+
var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
359
359
|
rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
360
360
|
})()), rn;
|
|
361
361
|
}
|
|
@@ -368,102 +368,102 @@ function Ro() {
|
|
|
368
368
|
if (qn) return tn;
|
|
369
369
|
qn = 1;
|
|
370
370
|
var e = ne, t = jr();
|
|
371
|
-
function n(
|
|
372
|
-
return
|
|
371
|
+
function n(u, f) {
|
|
372
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
373
373
|
}
|
|
374
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo,
|
|
375
|
-
return tn.useSyncExternalStoreWithSelector = function(
|
|
374
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
|
|
375
|
+
return tn.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
|
|
376
376
|
var v = s(null);
|
|
377
377
|
if (v.current === null) {
|
|
378
|
-
var
|
|
379
|
-
v.current =
|
|
380
|
-
} else
|
|
378
|
+
var h = { hasValue: !1, value: null };
|
|
379
|
+
v.current = h;
|
|
380
|
+
} else h = v.current;
|
|
381
381
|
v = c(
|
|
382
382
|
function() {
|
|
383
|
-
function
|
|
384
|
-
if (!
|
|
385
|
-
if (
|
|
386
|
-
var $ =
|
|
387
|
-
if (p($,
|
|
388
|
-
return
|
|
383
|
+
function w(T) {
|
|
384
|
+
if (!R) {
|
|
385
|
+
if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
|
|
386
|
+
var $ = h.value;
|
|
387
|
+
if (p($, T))
|
|
388
|
+
return _ = $;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return _ = T;
|
|
391
391
|
}
|
|
392
|
-
if ($ =
|
|
393
|
-
var N = m(
|
|
394
|
-
return p !== void 0 && p($, N) ? (
|
|
392
|
+
if ($ = _, r(E, T)) return $;
|
|
393
|
+
var N = m(T);
|
|
394
|
+
return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var R = !1, E, _, O = d === void 0 ? null : d;
|
|
397
397
|
return [
|
|
398
398
|
function() {
|
|
399
|
-
return
|
|
399
|
+
return w(f());
|
|
400
400
|
},
|
|
401
401
|
O === null ? void 0 : function() {
|
|
402
|
-
return
|
|
402
|
+
return w(O());
|
|
403
403
|
}
|
|
404
404
|
];
|
|
405
405
|
},
|
|
406
|
-
[
|
|
406
|
+
[f, d, m, p]
|
|
407
407
|
);
|
|
408
|
-
var b = o(
|
|
408
|
+
var b = o(u, v[0], v[1]);
|
|
409
409
|
return a(
|
|
410
410
|
function() {
|
|
411
|
-
|
|
411
|
+
h.hasValue = !0, h.value = b;
|
|
412
412
|
},
|
|
413
413
|
[b]
|
|
414
|
-
),
|
|
414
|
+
), l(b), b;
|
|
415
415
|
}, tn;
|
|
416
416
|
}
|
|
417
417
|
var on = {};
|
|
418
418
|
var Kn;
|
|
419
419
|
function jo() {
|
|
420
420
|
return Kn || (Kn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
421
|
-
function e(
|
|
422
|
-
return
|
|
421
|
+
function e(u, f) {
|
|
422
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
423
423
|
}
|
|
424
424
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
425
|
-
var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo,
|
|
426
|
-
on.useSyncExternalStoreWithSelector = function(
|
|
425
|
+
var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
426
|
+
on.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
|
|
427
427
|
var v = s(null);
|
|
428
428
|
if (v.current === null) {
|
|
429
|
-
var
|
|
430
|
-
v.current =
|
|
431
|
-
} else
|
|
429
|
+
var h = { hasValue: !1, value: null };
|
|
430
|
+
v.current = h;
|
|
431
|
+
} else h = v.current;
|
|
432
432
|
v = c(
|
|
433
433
|
function() {
|
|
434
|
-
function
|
|
435
|
-
if (!
|
|
436
|
-
if (
|
|
437
|
-
var $ =
|
|
438
|
-
if (p($,
|
|
439
|
-
return
|
|
434
|
+
function w(T) {
|
|
435
|
+
if (!R) {
|
|
436
|
+
if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
|
|
437
|
+
var $ = h.value;
|
|
438
|
+
if (p($, T))
|
|
439
|
+
return _ = $;
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return _ = T;
|
|
442
442
|
}
|
|
443
|
-
if ($ =
|
|
443
|
+
if ($ = _, r(E, T))
|
|
444
444
|
return $;
|
|
445
|
-
var N = m(
|
|
446
|
-
return p !== void 0 && p($, N) ? (
|
|
445
|
+
var N = m(T);
|
|
446
|
+
return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
|
|
447
447
|
}
|
|
448
|
-
var
|
|
448
|
+
var R = !1, E, _, O = d === void 0 ? null : d;
|
|
449
449
|
return [
|
|
450
450
|
function() {
|
|
451
|
-
return
|
|
451
|
+
return w(f());
|
|
452
452
|
},
|
|
453
453
|
O === null ? void 0 : function() {
|
|
454
|
-
return
|
|
454
|
+
return w(O());
|
|
455
455
|
}
|
|
456
456
|
];
|
|
457
457
|
},
|
|
458
|
-
[
|
|
458
|
+
[f, d, m, p]
|
|
459
459
|
);
|
|
460
|
-
var b = o(
|
|
460
|
+
var b = o(u, v[0], v[1]);
|
|
461
461
|
return a(
|
|
462
462
|
function() {
|
|
463
|
-
|
|
463
|
+
h.hasValue = !0, h.value = b;
|
|
464
464
|
},
|
|
465
465
|
[b]
|
|
466
|
-
),
|
|
466
|
+
), l(b), b;
|
|
467
467
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
468
468
|
})()), on;
|
|
469
469
|
}
|
|
@@ -472,7 +472,7 @@ function Eo() {
|
|
|
472
472
|
return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? jt.exports = Ro() : jt.exports = jo()), jt.exports;
|
|
473
473
|
}
|
|
474
474
|
var _o = Eo();
|
|
475
|
-
const
|
|
475
|
+
const pn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), zt = {
|
|
476
476
|
current: []
|
|
477
477
|
};
|
|
478
478
|
let sn = !1;
|
|
@@ -485,7 +485,7 @@ function Er(e) {
|
|
|
485
485
|
const n = To.get(t);
|
|
486
486
|
if (n)
|
|
487
487
|
for (const r of n) {
|
|
488
|
-
const o =
|
|
488
|
+
const o = pn.get(r);
|
|
489
489
|
o?.length && Er(o);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -517,11 +517,11 @@ function $o(e) {
|
|
|
517
517
|
n.prevState = r, Oo(n);
|
|
518
518
|
}
|
|
519
519
|
for (const n of t) {
|
|
520
|
-
const r =
|
|
520
|
+
const r = pn.get(n);
|
|
521
521
|
r && (zt.current.push(n), Er(r));
|
|
522
522
|
}
|
|
523
523
|
for (const n of t) {
|
|
524
|
-
const r =
|
|
524
|
+
const r = pn.get(n);
|
|
525
525
|
if (r)
|
|
526
526
|
for (const o of r)
|
|
527
527
|
Mo(o);
|
|
@@ -531,7 +531,7 @@ function $o(e) {
|
|
|
531
531
|
sn = !1, zt.current = [], Zn.clear();
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ko(e) {
|
|
535
535
|
return typeof e == "function";
|
|
536
536
|
}
|
|
537
537
|
class _r {
|
|
@@ -547,11 +547,11 @@ class _r {
|
|
|
547
547
|
}
|
|
548
548
|
setState(t) {
|
|
549
549
|
var n, r, o;
|
|
550
|
-
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
550
|
+
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : ko(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), $o(this);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function bt(e, t = (r) => r, n = {}) {
|
|
554
|
-
const r = n.equal ??
|
|
554
|
+
const r = n.equal ?? Io;
|
|
555
555
|
return _o.useSyncExternalStoreWithSelector(
|
|
556
556
|
e.subscribe,
|
|
557
557
|
() => e.state,
|
|
@@ -560,7 +560,7 @@ function bt(e, t = (r) => r, n = {}) {
|
|
|
560
560
|
r
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Io(e, t) {
|
|
564
564
|
if (Object.is(e, t))
|
|
565
565
|
return !0;
|
|
566
566
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -631,7 +631,7 @@ function Tr(e) {
|
|
|
631
631
|
function tt(e) {
|
|
632
632
|
return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Tr(e) ? e.ownerDocument : document : document : document;
|
|
633
633
|
}
|
|
634
|
-
const Te = Gt ?
|
|
634
|
+
const Te = Gt ? go : H;
|
|
635
635
|
function Rn(e) {
|
|
636
636
|
const t = U(e);
|
|
637
637
|
return Te(() => {
|
|
@@ -650,7 +650,7 @@ function Lo() {
|
|
|
650
650
|
}, []);
|
|
651
651
|
return [t, n];
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function gt(e, t) {
|
|
654
654
|
t === void 0 && (t = [e]);
|
|
655
655
|
const n = U(e);
|
|
656
656
|
return Te(() => {
|
|
@@ -680,7 +680,7 @@ function Pt(e) {
|
|
|
680
680
|
}
|
|
681
681
|
function vn(e) {
|
|
682
682
|
const t = U();
|
|
683
|
-
return
|
|
683
|
+
return H(() => {
|
|
684
684
|
t.current = e;
|
|
685
685
|
}, [e]), t.current;
|
|
686
686
|
}
|
|
@@ -699,9 +699,9 @@ function Or(e) {
|
|
|
699
699
|
r[o - 1] = arguments[o];
|
|
700
700
|
return r.reduce((s, a) => {
|
|
701
701
|
const c = Object.entries(a);
|
|
702
|
-
for (const [
|
|
703
|
-
const
|
|
704
|
-
|
|
702
|
+
for (const [l, u] of c) {
|
|
703
|
+
const f = s[l];
|
|
704
|
+
f != null && (s[l] = f + e * u);
|
|
705
705
|
}
|
|
706
706
|
return s;
|
|
707
707
|
}, {
|
|
@@ -812,7 +812,7 @@ function Fo(e) {
|
|
|
812
812
|
style: Yo
|
|
813
813
|
}, n);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Vo(e) {
|
|
816
816
|
let {
|
|
817
817
|
id: t,
|
|
818
818
|
announcement: n,
|
|
@@ -840,7 +840,7 @@ function Ho(e) {
|
|
|
840
840
|
"aria-atomic": !0
|
|
841
841
|
}, n);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Ho() {
|
|
844
844
|
const [e, t] = oe("");
|
|
845
845
|
return {
|
|
846
846
|
announce: le((r) => {
|
|
@@ -851,8 +851,8 @@ function Vo() {
|
|
|
851
851
|
}
|
|
852
852
|
const Mr = /* @__PURE__ */ vt(null);
|
|
853
853
|
function Wo(e) {
|
|
854
|
-
const t =
|
|
855
|
-
|
|
854
|
+
const t = He(Mr);
|
|
855
|
+
H(() => {
|
|
856
856
|
if (!t)
|
|
857
857
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
858
858
|
return t(e);
|
|
@@ -915,9 +915,9 @@ function Xo(e) {
|
|
|
915
915
|
const {
|
|
916
916
|
announce: s,
|
|
917
917
|
announcement: a
|
|
918
|
-
} =
|
|
919
|
-
if (
|
|
920
|
-
|
|
918
|
+
} = Ho(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
|
|
919
|
+
if (H(() => {
|
|
920
|
+
u(!0);
|
|
921
921
|
}, []), Wo(B(() => ({
|
|
922
922
|
onDragStart(d) {
|
|
923
923
|
let {
|
|
@@ -967,16 +967,16 @@ function Xo(e) {
|
|
|
967
967
|
over: p
|
|
968
968
|
}));
|
|
969
969
|
}
|
|
970
|
-
}), [s, t])), !
|
|
970
|
+
}), [s, t])), !l)
|
|
971
971
|
return null;
|
|
972
|
-
const
|
|
972
|
+
const f = ne.createElement(ne.Fragment, null, ne.createElement(Fo, {
|
|
973
973
|
id: r,
|
|
974
974
|
value: o.draggable
|
|
975
|
-
}), ne.createElement(
|
|
975
|
+
}), ne.createElement(Vo, {
|
|
976
976
|
id: c,
|
|
977
977
|
announcement: a
|
|
978
978
|
}));
|
|
979
|
-
return n ? xo(
|
|
979
|
+
return n ? xo(f, n) : f;
|
|
980
980
|
}
|
|
981
981
|
var te;
|
|
982
982
|
(function(e) {
|
|
@@ -1056,14 +1056,14 @@ const $r = (e) => {
|
|
|
1056
1056
|
for (const a of r) {
|
|
1057
1057
|
const {
|
|
1058
1058
|
id: c
|
|
1059
|
-
} = a,
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1059
|
+
} = a, l = n.get(c);
|
|
1060
|
+
if (l) {
|
|
1061
|
+
const u = Jo(tr(l), o);
|
|
1062
1062
|
s.push({
|
|
1063
1063
|
id: c,
|
|
1064
1064
|
data: {
|
|
1065
1065
|
droppableContainer: a,
|
|
1066
|
-
value:
|
|
1066
|
+
value: u
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
@@ -1073,7 +1073,7 @@ const $r = (e) => {
|
|
|
1073
1073
|
function ts(e, t) {
|
|
1074
1074
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = s - n;
|
|
1075
1075
|
if (r < o && n < s) {
|
|
1076
|
-
const
|
|
1076
|
+
const l = t.width * t.height, u = e.width * e.height, f = a * c, d = f / (l + u - f);
|
|
1077
1077
|
return Number(d.toFixed(4));
|
|
1078
1078
|
}
|
|
1079
1079
|
return 0;
|
|
@@ -1090,12 +1090,12 @@ const ns = (e) => {
|
|
|
1090
1090
|
id: a
|
|
1091
1091
|
} = s, c = n.get(a);
|
|
1092
1092
|
if (c) {
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1093
|
+
const l = ts(c, t);
|
|
1094
|
+
l > 0 && o.push({
|
|
1095
1095
|
id: a,
|
|
1096
1096
|
data: {
|
|
1097
1097
|
droppableContainer: s,
|
|
1098
|
-
value:
|
|
1098
|
+
value: l
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
@@ -1109,7 +1109,7 @@ function rs(e, t, n) {
|
|
|
1109
1109
|
scaleY: t && n ? t.height / n.height : 1
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function kr(e, t) {
|
|
1113
1113
|
return e && t ? {
|
|
1114
1114
|
x: e.left - t.left,
|
|
1115
1115
|
y: e.top - t.top
|
|
@@ -1160,14 +1160,14 @@ function as(e, t, n) {
|
|
|
1160
1160
|
scaleY: s,
|
|
1161
1161
|
x: a,
|
|
1162
1162
|
y: c
|
|
1163
|
-
} = r,
|
|
1163
|
+
} = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
|
|
1164
1164
|
return {
|
|
1165
|
-
width:
|
|
1165
|
+
width: f,
|
|
1166
1166
|
height: d,
|
|
1167
|
-
top:
|
|
1168
|
-
right:
|
|
1169
|
-
bottom:
|
|
1170
|
-
left:
|
|
1167
|
+
top: u,
|
|
1168
|
+
right: l + f,
|
|
1169
|
+
bottom: u + d,
|
|
1170
|
+
left: l
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
1173
|
const cs = {
|
|
@@ -1178,10 +1178,10 @@ function nt(e, t) {
|
|
|
1178
1178
|
let n = e.getBoundingClientRect();
|
|
1179
1179
|
if (t.ignoreTransform) {
|
|
1180
1180
|
const {
|
|
1181
|
-
transform:
|
|
1182
|
-
transformOrigin:
|
|
1181
|
+
transform: u,
|
|
1182
|
+
transformOrigin: f
|
|
1183
1183
|
} = he(e).getComputedStyle(e);
|
|
1184
|
-
|
|
1184
|
+
u && (n = as(n, u, f));
|
|
1185
1185
|
}
|
|
1186
1186
|
const {
|
|
1187
1187
|
top: r,
|
|
@@ -1189,7 +1189,7 @@ function nt(e, t) {
|
|
|
1189
1189
|
width: s,
|
|
1190
1190
|
height: a,
|
|
1191
1191
|
bottom: c,
|
|
1192
|
-
right:
|
|
1192
|
+
right: l
|
|
1193
1193
|
} = n;
|
|
1194
1194
|
return {
|
|
1195
1195
|
top: r,
|
|
@@ -1197,7 +1197,7 @@ function nt(e, t) {
|
|
|
1197
1197
|
width: s,
|
|
1198
1198
|
height: a,
|
|
1199
1199
|
bottom: c,
|
|
1200
|
-
right:
|
|
1200
|
+
right: l
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function nr(e) {
|
|
@@ -1241,7 +1241,7 @@ function En(e, t) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
return e ? r(e) : n;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Ir(e) {
|
|
1245
1245
|
const [t] = En(e, 1);
|
|
1246
1246
|
return t ?? null;
|
|
1247
1247
|
}
|
|
@@ -1299,12 +1299,12 @@ function hs(e, t, n, r, o) {
|
|
|
1299
1299
|
top: s,
|
|
1300
1300
|
left: a,
|
|
1301
1301
|
right: c,
|
|
1302
|
-
bottom:
|
|
1302
|
+
bottom: l
|
|
1303
1303
|
} = n;
|
|
1304
1304
|
r === void 0 && (r = 10), o === void 0 && (o = fs);
|
|
1305
1305
|
const {
|
|
1306
|
-
isTop:
|
|
1307
|
-
isBottom:
|
|
1306
|
+
isTop: u,
|
|
1307
|
+
isBottom: f,
|
|
1308
1308
|
isLeft: d,
|
|
1309
1309
|
isRight: m
|
|
1310
1310
|
} = zr(e), p = {
|
|
@@ -1313,16 +1313,16 @@ function hs(e, t, n, r, o) {
|
|
|
1313
1313
|
}, v = {
|
|
1314
1314
|
x: 0,
|
|
1315
1315
|
y: 0
|
|
1316
|
-
},
|
|
1316
|
+
}, h = {
|
|
1317
1317
|
height: t.height * o.y,
|
|
1318
1318
|
width: t.width * o.x
|
|
1319
1319
|
};
|
|
1320
|
-
return !
|
|
1320
|
+
return !u && s <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - s) / h.height)) : !f && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !m && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !d && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
|
|
1321
1321
|
direction: p,
|
|
1322
1322
|
speed: v
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function gs(e) {
|
|
1326
1326
|
if (e === document.scrollingElement) {
|
|
1327
1327
|
const {
|
|
1328
1328
|
innerWidth: s,
|
|
@@ -1355,7 +1355,7 @@ function ps(e) {
|
|
|
1355
1355
|
function Pr(e) {
|
|
1356
1356
|
return e.reduce((t, n) => Je(t, bn(n)), Se);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function ps(e) {
|
|
1359
1359
|
return e.reduce((t, n) => t + Ar(n), 0);
|
|
1360
1360
|
}
|
|
1361
1361
|
function vs(e) {
|
|
@@ -1370,12 +1370,12 @@ function ms(e, t) {
|
|
|
1370
1370
|
bottom: o,
|
|
1371
1371
|
right: s
|
|
1372
1372
|
} = t(e);
|
|
1373
|
-
|
|
1373
|
+
Ir(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
1374
1374
|
block: "center",
|
|
1375
1375
|
inline: "center"
|
|
1376
1376
|
});
|
|
1377
1377
|
}
|
|
1378
|
-
const bs = [["x", ["left", "right"],
|
|
1378
|
+
const bs = [["x", ["left", "right"], ps], ["y", ["top", "bottom"], vs]];
|
|
1379
1379
|
class _n {
|
|
1380
1380
|
constructor(t, n) {
|
|
1381
1381
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -1384,11 +1384,11 @@ class _n {
|
|
|
1384
1384
|
...t
|
|
1385
1385
|
}, this.width = t.width, this.height = t.height;
|
|
1386
1386
|
for (const [s, a, c] of bs)
|
|
1387
|
-
for (const
|
|
1388
|
-
Object.defineProperty(this,
|
|
1387
|
+
for (const l of a)
|
|
1388
|
+
Object.defineProperty(this, l, {
|
|
1389
1389
|
get: () => {
|
|
1390
|
-
const
|
|
1391
|
-
return this.rect[
|
|
1390
|
+
const u = c(r), f = o[s] - u;
|
|
1391
|
+
return this.rect[l] + f;
|
|
1392
1392
|
},
|
|
1393
1393
|
enumerable: !0
|
|
1394
1394
|
});
|
|
@@ -1421,45 +1421,45 @@ function ln(e, t) {
|
|
|
1421
1421
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1422
1422
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
1423
1423
|
}
|
|
1424
|
-
var
|
|
1424
|
+
var xe;
|
|
1425
1425
|
(function(e) {
|
|
1426
1426
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1427
|
-
})(
|
|
1427
|
+
})(xe || (xe = {}));
|
|
1428
1428
|
function rr(e) {
|
|
1429
1429
|
e.preventDefault();
|
|
1430
1430
|
}
|
|
1431
1431
|
function ys(e) {
|
|
1432
1432
|
e.stopPropagation();
|
|
1433
1433
|
}
|
|
1434
|
-
var
|
|
1434
|
+
var V;
|
|
1435
1435
|
(function(e) {
|
|
1436
1436
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1437
|
-
})(
|
|
1437
|
+
})(V || (V = {}));
|
|
1438
1438
|
const Yr = {
|
|
1439
|
-
start: [
|
|
1440
|
-
cancel: [
|
|
1441
|
-
end: [
|
|
1439
|
+
start: [V.Space, V.Enter],
|
|
1440
|
+
cancel: [V.Esc],
|
|
1441
|
+
end: [V.Space, V.Enter, V.Tab]
|
|
1442
1442
|
}, ws = (e, t) => {
|
|
1443
1443
|
let {
|
|
1444
1444
|
currentCoordinates: n
|
|
1445
1445
|
} = t;
|
|
1446
1446
|
switch (e.code) {
|
|
1447
|
-
case
|
|
1447
|
+
case V.Right:
|
|
1448
1448
|
return {
|
|
1449
1449
|
...n,
|
|
1450
1450
|
x: n.x + 25
|
|
1451
1451
|
};
|
|
1452
|
-
case
|
|
1452
|
+
case V.Left:
|
|
1453
1453
|
return {
|
|
1454
1454
|
...n,
|
|
1455
1455
|
x: n.x - 25
|
|
1456
1456
|
};
|
|
1457
|
-
case
|
|
1457
|
+
case V.Down:
|
|
1458
1458
|
return {
|
|
1459
1459
|
...n,
|
|
1460
1460
|
y: n.y + 25
|
|
1461
1461
|
};
|
|
1462
|
-
case
|
|
1462
|
+
case V.Up:
|
|
1463
1463
|
return {
|
|
1464
1464
|
...n,
|
|
1465
1465
|
y: n.y - 25
|
|
@@ -1477,7 +1477,7 @@ class Fr {
|
|
|
1477
1477
|
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(he(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1478
1478
|
}
|
|
1479
1479
|
attach() {
|
|
1480
|
-
this.handleStart(), this.windowListeners.add(
|
|
1480
|
+
this.handleStart(), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(xe.Keydown, this.handleKeyDown));
|
|
1481
1481
|
}
|
|
1482
1482
|
handleStart() {
|
|
1483
1483
|
const {
|
|
@@ -1497,71 +1497,71 @@ class Fr {
|
|
|
1497
1497
|
coordinateGetter: a = ws,
|
|
1498
1498
|
scrollBehavior: c = "smooth"
|
|
1499
1499
|
} = o, {
|
|
1500
|
-
code:
|
|
1500
|
+
code: l
|
|
1501
1501
|
} = t;
|
|
1502
|
-
if (s.end.includes(
|
|
1502
|
+
if (s.end.includes(l)) {
|
|
1503
1503
|
this.handleEnd(t);
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
|
-
if (s.cancel.includes(
|
|
1506
|
+
if (s.cancel.includes(l)) {
|
|
1507
1507
|
this.handleCancel(t);
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
1510
|
const {
|
|
1511
|
-
collisionRect:
|
|
1512
|
-
} = r.current,
|
|
1513
|
-
x:
|
|
1514
|
-
y:
|
|
1511
|
+
collisionRect: u
|
|
1512
|
+
} = r.current, f = u ? {
|
|
1513
|
+
x: u.left,
|
|
1514
|
+
y: u.top
|
|
1515
1515
|
} : Se;
|
|
1516
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1516
|
+
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1517
1517
|
const d = a(t, {
|
|
1518
1518
|
active: n,
|
|
1519
1519
|
context: r.current,
|
|
1520
|
-
currentCoordinates:
|
|
1520
|
+
currentCoordinates: f
|
|
1521
1521
|
});
|
|
1522
1522
|
if (d) {
|
|
1523
|
-
const m = Yt(d,
|
|
1523
|
+
const m = Yt(d, f), p = {
|
|
1524
1524
|
x: 0,
|
|
1525
1525
|
y: 0
|
|
1526
1526
|
}, {
|
|
1527
1527
|
scrollableAncestors: v
|
|
1528
1528
|
} = r.current;
|
|
1529
|
-
for (const
|
|
1529
|
+
for (const h of v) {
|
|
1530
1530
|
const b = t.code, {
|
|
1531
|
-
isTop:
|
|
1532
|
-
isRight:
|
|
1533
|
-
isLeft:
|
|
1534
|
-
isBottom:
|
|
1531
|
+
isTop: w,
|
|
1532
|
+
isRight: R,
|
|
1533
|
+
isLeft: E,
|
|
1534
|
+
isBottom: _,
|
|
1535
1535
|
maxScroll: O,
|
|
1536
|
-
minScroll:
|
|
1537
|
-
} = zr(
|
|
1538
|
-
x: Math.min(b ===
|
|
1539
|
-
y: Math.min(b ===
|
|
1540
|
-
}, W = b ===
|
|
1536
|
+
minScroll: T
|
|
1537
|
+
} = zr(h), $ = gs(h), N = {
|
|
1538
|
+
x: Math.min(b === V.Right ? $.right - $.width / 2 : $.right, Math.max(b === V.Right ? $.left : $.left + $.width / 2, d.x)),
|
|
1539
|
+
y: Math.min(b === V.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === V.Down ? $.top : $.top + $.height / 2, d.y))
|
|
1540
|
+
}, W = b === V.Right && !R || b === V.Left && !E, Y = b === V.Down && !_ || b === V.Up && !w;
|
|
1541
1541
|
if (W && N.x !== d.x) {
|
|
1542
|
-
const
|
|
1542
|
+
const k = h.scrollLeft + m.x, Q = b === V.Right && k <= O.x || b === V.Left && k >= T.x;
|
|
1543
1543
|
if (Q && !m.y) {
|
|
1544
|
-
|
|
1545
|
-
left:
|
|
1544
|
+
h.scrollTo({
|
|
1545
|
+
left: k,
|
|
1546
1546
|
behavior: c
|
|
1547
1547
|
});
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
|
-
Q ? p.x =
|
|
1550
|
+
Q ? p.x = h.scrollLeft - k : p.x = b === V.Right ? h.scrollLeft - O.x : h.scrollLeft - T.x, p.x && h.scrollBy({
|
|
1551
1551
|
left: -p.x,
|
|
1552
1552
|
behavior: c
|
|
1553
1553
|
});
|
|
1554
1554
|
break;
|
|
1555
1555
|
} else if (Y && N.y !== d.y) {
|
|
1556
|
-
const
|
|
1556
|
+
const k = h.scrollTop + m.y, Q = b === V.Down && k <= O.y || b === V.Up && k >= T.y;
|
|
1557
1557
|
if (Q && !m.x) {
|
|
1558
|
-
|
|
1559
|
-
top:
|
|
1558
|
+
h.scrollTo({
|
|
1559
|
+
top: k,
|
|
1560
1560
|
behavior: c
|
|
1561
1561
|
});
|
|
1562
1562
|
return;
|
|
1563
1563
|
}
|
|
1564
|
-
Q ? p.y =
|
|
1564
|
+
Q ? p.y = h.scrollTop - k : p.y = b === V.Down ? h.scrollTop - O.y : h.scrollTop - T.y, p.y && h.scrollBy({
|
|
1565
1565
|
top: -p.y,
|
|
1566
1566
|
behavior: c
|
|
1567
1567
|
});
|
|
@@ -1644,7 +1644,7 @@ class Tn {
|
|
|
1644
1644
|
} = this;
|
|
1645
1645
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1646
1646
|
passive: !1
|
|
1647
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
1647
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.DragStart, rr), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), this.windowListeners.add(xe.ContextMenu, rr), this.documentListeners.add(xe.Keydown, this.handleKeydown), n) {
|
|
1648
1648
|
if (r != null && r({
|
|
1649
1649
|
event: this.props.event,
|
|
1650
1650
|
activeNode: this.props.activeNode,
|
|
@@ -1678,9 +1678,9 @@ class Tn {
|
|
|
1678
1678
|
} = this, {
|
|
1679
1679
|
onStart: n
|
|
1680
1680
|
} = this.props;
|
|
1681
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
1681
|
+
t && (this.activated = !0, this.documentListeners.add(xe.Click, ys, {
|
|
1682
1682
|
capture: !0
|
|
1683
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
1683
|
+
}), this.removeTextSelection(), this.documentListeners.add(xe.SelectionChange, this.removeTextSelection), n(t));
|
|
1684
1684
|
}
|
|
1685
1685
|
handleMove(t) {
|
|
1686
1686
|
var n;
|
|
@@ -1696,20 +1696,20 @@ class Tn {
|
|
|
1696
1696
|
} = s;
|
|
1697
1697
|
if (!o)
|
|
1698
1698
|
return;
|
|
1699
|
-
const
|
|
1699
|
+
const l = (n = mn(t)) != null ? n : Se, u = Yt(o, l);
|
|
1700
1700
|
if (!r && c) {
|
|
1701
1701
|
if (or(c)) {
|
|
1702
|
-
if (c.tolerance != null && ln(
|
|
1702
|
+
if (c.tolerance != null && ln(u, c.tolerance))
|
|
1703
1703
|
return this.handleCancel();
|
|
1704
|
-
if (ln(
|
|
1704
|
+
if (ln(u, c.distance))
|
|
1705
1705
|
return this.handleStart();
|
|
1706
1706
|
}
|
|
1707
|
-
if (sr(c) && ln(
|
|
1707
|
+
if (sr(c) && ln(u, c.tolerance))
|
|
1708
1708
|
return this.handleCancel();
|
|
1709
|
-
this.handlePending(c,
|
|
1709
|
+
this.handlePending(c, u);
|
|
1710
1710
|
return;
|
|
1711
1711
|
}
|
|
1712
|
-
t.cancelable && t.preventDefault(), a(
|
|
1712
|
+
t.cancelable && t.preventDefault(), a(l);
|
|
1713
1713
|
}
|
|
1714
1714
|
handleEnd() {
|
|
1715
1715
|
const {
|
|
@@ -1726,7 +1726,7 @@ class Tn {
|
|
|
1726
1726
|
this.detach(), this.activated || t(this.props.active), n();
|
|
1727
1727
|
}
|
|
1728
1728
|
handleKeydown(t) {
|
|
1729
|
-
t.code ===
|
|
1729
|
+
t.code === V.Esc && this.handleCancel();
|
|
1730
1730
|
}
|
|
1731
1731
|
removeTextSelection() {
|
|
1732
1732
|
var t;
|
|
@@ -1841,10 +1841,10 @@ var ft;
|
|
|
1841
1841
|
(function(e) {
|
|
1842
1842
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1843
1843
|
})(ft || (ft = {}));
|
|
1844
|
-
var
|
|
1844
|
+
var Vt;
|
|
1845
1845
|
(function(e) {
|
|
1846
1846
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1847
|
-
})(
|
|
1847
|
+
})(Vt || (Vt = {}));
|
|
1848
1848
|
function js(e) {
|
|
1849
1849
|
let {
|
|
1850
1850
|
acceleration: t,
|
|
@@ -1853,88 +1853,88 @@ function js(e) {
|
|
|
1853
1853
|
draggingRect: o,
|
|
1854
1854
|
enabled: s,
|
|
1855
1855
|
interval: a = 5,
|
|
1856
|
-
order: c =
|
|
1857
|
-
pointerCoordinates:
|
|
1858
|
-
scrollableAncestors:
|
|
1859
|
-
scrollableAncestorRects:
|
|
1856
|
+
order: c = Vt.TreeOrder,
|
|
1857
|
+
pointerCoordinates: l,
|
|
1858
|
+
scrollableAncestors: u,
|
|
1859
|
+
scrollableAncestorRects: f,
|
|
1860
1860
|
delta: d,
|
|
1861
1861
|
threshold: m
|
|
1862
1862
|
} = e;
|
|
1863
1863
|
const p = _s({
|
|
1864
1864
|
delta: d,
|
|
1865
1865
|
disabled: !s
|
|
1866
|
-
}), [v,
|
|
1866
|
+
}), [v, h] = Lo(), b = U({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
|
-
}),
|
|
1869
|
+
}), w = U({
|
|
1870
1870
|
x: 0,
|
|
1871
1871
|
y: 0
|
|
1872
|
-
}),
|
|
1872
|
+
}), R = B(() => {
|
|
1873
1873
|
switch (n) {
|
|
1874
1874
|
case ft.Pointer:
|
|
1875
|
-
return
|
|
1876
|
-
top:
|
|
1877
|
-
bottom:
|
|
1878
|
-
left:
|
|
1879
|
-
right:
|
|
1875
|
+
return l ? {
|
|
1876
|
+
top: l.y,
|
|
1877
|
+
bottom: l.y,
|
|
1878
|
+
left: l.x,
|
|
1879
|
+
right: l.x
|
|
1880
1880
|
} : null;
|
|
1881
1881
|
case ft.DraggableRect:
|
|
1882
1882
|
return o;
|
|
1883
1883
|
}
|
|
1884
|
-
}, [n, o,
|
|
1885
|
-
const
|
|
1886
|
-
if (!
|
|
1884
|
+
}, [n, o, l]), E = U(null), _ = le(() => {
|
|
1885
|
+
const T = E.current;
|
|
1886
|
+
if (!T)
|
|
1887
1887
|
return;
|
|
1888
|
-
const $ = b.current.x *
|
|
1889
|
-
|
|
1890
|
-
}, []), O = B(() => c ===
|
|
1891
|
-
|
|
1888
|
+
const $ = b.current.x * w.current.x, N = b.current.y * w.current.y;
|
|
1889
|
+
T.scrollBy($, N);
|
|
1890
|
+
}, []), O = B(() => c === Vt.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1891
|
+
H(
|
|
1892
1892
|
() => {
|
|
1893
|
-
if (!s || !
|
|
1894
|
-
|
|
1893
|
+
if (!s || !u.length || !R) {
|
|
1894
|
+
h();
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
1897
|
-
for (const
|
|
1898
|
-
if (r?.(
|
|
1897
|
+
for (const T of O) {
|
|
1898
|
+
if (r?.(T) === !1)
|
|
1899
1899
|
continue;
|
|
1900
|
-
const $ =
|
|
1900
|
+
const $ = u.indexOf(T), N = f[$];
|
|
1901
1901
|
if (!N)
|
|
1902
1902
|
continue;
|
|
1903
1903
|
const {
|
|
1904
1904
|
direction: W,
|
|
1905
1905
|
speed: Y
|
|
1906
|
-
} = hs(
|
|
1907
|
-
for (const
|
|
1908
|
-
p[
|
|
1906
|
+
} = hs(T, N, R, t, m);
|
|
1907
|
+
for (const k of ["x", "y"])
|
|
1908
|
+
p[k][W[k]] || (Y[k] = 0, W[k] = 0);
|
|
1909
1909
|
if (Y.x > 0 || Y.y > 0) {
|
|
1910
|
-
|
|
1910
|
+
h(), E.current = T, v(_, a), b.current = Y, w.current = W;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
b.current = {
|
|
1915
1915
|
x: 0,
|
|
1916
1916
|
y: 0
|
|
1917
|
-
},
|
|
1917
|
+
}, w.current = {
|
|
1918
1918
|
x: 0,
|
|
1919
1919
|
y: 0
|
|
1920
|
-
},
|
|
1920
|
+
}, h();
|
|
1921
1921
|
},
|
|
1922
1922
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1923
1923
|
[
|
|
1924
1924
|
t,
|
|
1925
|
-
|
|
1925
|
+
_,
|
|
1926
1926
|
r,
|
|
1927
|
-
|
|
1927
|
+
h,
|
|
1928
1928
|
s,
|
|
1929
1929
|
a,
|
|
1930
1930
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1931
|
-
JSON.stringify(
|
|
1931
|
+
JSON.stringify(R),
|
|
1932
1932
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1933
1933
|
JSON.stringify(p),
|
|
1934
1934
|
v,
|
|
1935
|
-
|
|
1935
|
+
u,
|
|
1936
1936
|
O,
|
|
1937
|
-
|
|
1937
|
+
f,
|
|
1938
1938
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1939
1939
|
JSON.stringify(m)
|
|
1940
1940
|
]
|
|
@@ -1993,10 +1993,10 @@ function Os(e, t) {
|
|
|
1993
1993
|
return [...n, ...s];
|
|
1994
1994
|
}, []), [e, t]);
|
|
1995
1995
|
}
|
|
1996
|
-
var
|
|
1996
|
+
var pt;
|
|
1997
1997
|
(function(e) {
|
|
1998
1998
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1999
|
-
})(
|
|
1999
|
+
})(pt || (pt = {}));
|
|
2000
2000
|
var yn;
|
|
2001
2001
|
(function(e) {
|
|
2002
2002
|
e.Optimized = "optimized";
|
|
@@ -2010,44 +2010,44 @@ function Ms(e, t) {
|
|
|
2010
2010
|
} = t;
|
|
2011
2011
|
const [s, a] = oe(null), {
|
|
2012
2012
|
frequency: c,
|
|
2013
|
-
measure:
|
|
2014
|
-
strategy:
|
|
2015
|
-
} = o,
|
|
2016
|
-
|
|
2017
|
-
}, [m]), v = U(null),
|
|
2013
|
+
measure: l,
|
|
2014
|
+
strategy: u
|
|
2015
|
+
} = o, f = U(e), d = b(), m = gt(d), p = le(function(w) {
|
|
2016
|
+
w === void 0 && (w = []), !m.current && a((R) => R === null ? w : R.concat(w.filter((E) => !R.includes(E))));
|
|
2017
|
+
}, [m]), v = U(null), h = yt((w) => {
|
|
2018
2018
|
if (d && !n)
|
|
2019
2019
|
return ir;
|
|
2020
|
-
if (!
|
|
2021
|
-
const
|
|
2022
|
-
for (let
|
|
2023
|
-
if (!
|
|
2020
|
+
if (!w || w === ir || f.current !== e || s != null) {
|
|
2021
|
+
const R = /* @__PURE__ */ new Map();
|
|
2022
|
+
for (let E of e) {
|
|
2023
|
+
if (!E)
|
|
2024
2024
|
continue;
|
|
2025
|
-
if (s && s.length > 0 && !s.includes(
|
|
2026
|
-
|
|
2025
|
+
if (s && s.length > 0 && !s.includes(E.id) && E.rect.current) {
|
|
2026
|
+
R.set(E.id, E.rect.current);
|
|
2027
2027
|
continue;
|
|
2028
2028
|
}
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2029
|
+
const _ = E.node.current, O = _ ? new _n(l(_), _) : null;
|
|
2030
|
+
E.rect.current = O, O && R.set(E.id, O);
|
|
2031
2031
|
}
|
|
2032
|
-
return
|
|
2032
|
+
return R;
|
|
2033
2033
|
}
|
|
2034
|
-
return
|
|
2035
|
-
}, [e, s, n, d,
|
|
2036
|
-
return
|
|
2037
|
-
|
|
2038
|
-
}, [e]),
|
|
2034
|
+
return w;
|
|
2035
|
+
}, [e, s, n, d, l]);
|
|
2036
|
+
return H(() => {
|
|
2037
|
+
f.current = e;
|
|
2038
|
+
}, [e]), H(
|
|
2039
2039
|
() => {
|
|
2040
2040
|
d || p();
|
|
2041
2041
|
},
|
|
2042
2042
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2043
2043
|
[n, d]
|
|
2044
|
-
),
|
|
2044
|
+
), H(
|
|
2045
2045
|
() => {
|
|
2046
2046
|
s && s.length > 0 && a(null);
|
|
2047
2047
|
},
|
|
2048
2048
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2049
2049
|
[JSON.stringify(s)]
|
|
2050
|
-
),
|
|
2050
|
+
), H(
|
|
2051
2051
|
() => {
|
|
2052
2052
|
d || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
2053
2053
|
p(), v.current = null;
|
|
@@ -2056,28 +2056,28 @@ function Ms(e, t) {
|
|
|
2056
2056
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2057
2057
|
[c, d, p, ...r]
|
|
2058
2058
|
), {
|
|
2059
|
-
droppableRects:
|
|
2059
|
+
droppableRects: h,
|
|
2060
2060
|
measureDroppableContainers: p,
|
|
2061
2061
|
measuringScheduled: s != null
|
|
2062
2062
|
};
|
|
2063
2063
|
function b() {
|
|
2064
|
-
switch (
|
|
2065
|
-
case
|
|
2064
|
+
switch (u) {
|
|
2065
|
+
case pt.Always:
|
|
2066
2066
|
return !1;
|
|
2067
|
-
case
|
|
2067
|
+
case pt.BeforeDragging:
|
|
2068
2068
|
return n;
|
|
2069
2069
|
default:
|
|
2070
2070
|
return !n;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Vr(e, t) {
|
|
2075
2075
|
return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2076
2076
|
}
|
|
2077
2077
|
function $s(e, t) {
|
|
2078
|
-
return
|
|
2078
|
+
return Vr(e, t);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function ks(e) {
|
|
2081
2081
|
let {
|
|
2082
2082
|
callback: t,
|
|
2083
2083
|
disabled: n
|
|
@@ -2090,7 +2090,7 @@ function Is(e) {
|
|
|
2090
2090
|
} = window;
|
|
2091
2091
|
return new s(r);
|
|
2092
2092
|
}, [r, n]);
|
|
2093
|
-
return
|
|
2093
|
+
return H(() => () => o?.disconnect(), [o]), o;
|
|
2094
2094
|
}
|
|
2095
2095
|
function Xt(e) {
|
|
2096
2096
|
let {
|
|
@@ -2109,35 +2109,35 @@ function Xt(e) {
|
|
|
2109
2109
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2110
2110
|
[n]
|
|
2111
2111
|
);
|
|
2112
|
-
return
|
|
2112
|
+
return H(() => () => o?.disconnect(), [o]), o;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Is(e) {
|
|
2115
2115
|
return new _n(nt(e), e);
|
|
2116
2116
|
}
|
|
2117
2117
|
function ar(e, t, n) {
|
|
2118
|
-
t === void 0 && (t =
|
|
2118
|
+
t === void 0 && (t = Is);
|
|
2119
2119
|
const [r, o] = oe(null);
|
|
2120
2120
|
function s() {
|
|
2121
|
-
o((
|
|
2121
|
+
o((l) => {
|
|
2122
2122
|
if (!e)
|
|
2123
2123
|
return null;
|
|
2124
2124
|
if (e.isConnected === !1) {
|
|
2125
|
-
var
|
|
2126
|
-
return (
|
|
2125
|
+
var u;
|
|
2126
|
+
return (u = l ?? n) != null ? u : null;
|
|
2127
2127
|
}
|
|
2128
|
-
const
|
|
2129
|
-
return JSON.stringify(
|
|
2128
|
+
const f = t(e);
|
|
2129
|
+
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
|
-
const a =
|
|
2133
|
-
callback(
|
|
2132
|
+
const a = ks({
|
|
2133
|
+
callback(l) {
|
|
2134
2134
|
if (e)
|
|
2135
|
-
for (const
|
|
2135
|
+
for (const u of l) {
|
|
2136
2136
|
const {
|
|
2137
|
-
type:
|
|
2137
|
+
type: f,
|
|
2138
2138
|
target: d
|
|
2139
|
-
} =
|
|
2140
|
-
if (
|
|
2139
|
+
} = u;
|
|
2140
|
+
if (f === "childList" && d instanceof HTMLElement && d.contains(e)) {
|
|
2141
2141
|
s();
|
|
2142
2142
|
break;
|
|
2143
2143
|
}
|
|
@@ -2154,13 +2154,13 @@ function ar(e, t, n) {
|
|
|
2154
2154
|
}, [e]), r;
|
|
2155
2155
|
}
|
|
2156
2156
|
function As(e) {
|
|
2157
|
-
const t =
|
|
2158
|
-
return
|
|
2157
|
+
const t = Vr(e);
|
|
2158
|
+
return kr(e, t);
|
|
2159
2159
|
}
|
|
2160
2160
|
const cr = [];
|
|
2161
2161
|
function Ls(e) {
|
|
2162
2162
|
const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : cr, [e]);
|
|
2163
|
-
return
|
|
2163
|
+
return H(() => {
|
|
2164
2164
|
t.current = e;
|
|
2165
2165
|
}, [e]), n;
|
|
2166
2166
|
}
|
|
@@ -2169,25 +2169,25 @@ function Ns(e) {
|
|
|
2169
2169
|
const a = cn(s.target);
|
|
2170
2170
|
a && n((c) => c ? (c.set(a, bn(a)), new Map(c)) : null);
|
|
2171
2171
|
}, []);
|
|
2172
|
-
return
|
|
2172
|
+
return H(() => {
|
|
2173
2173
|
const s = r.current;
|
|
2174
2174
|
if (e !== s) {
|
|
2175
2175
|
a(s);
|
|
2176
|
-
const c = e.map((
|
|
2177
|
-
const
|
|
2178
|
-
return
|
|
2176
|
+
const c = e.map((l) => {
|
|
2177
|
+
const u = cn(l);
|
|
2178
|
+
return u ? (u.addEventListener("scroll", o, {
|
|
2179
2179
|
passive: !0
|
|
2180
|
-
}), [
|
|
2181
|
-
}).filter((
|
|
2180
|
+
}), [u, bn(u)]) : null;
|
|
2181
|
+
}).filter((l) => l != null);
|
|
2182
2182
|
n(c.length ? new Map(c) : null), r.current = e;
|
|
2183
2183
|
}
|
|
2184
2184
|
return () => {
|
|
2185
2185
|
a(e), a(s);
|
|
2186
2186
|
};
|
|
2187
2187
|
function a(c) {
|
|
2188
|
-
c.forEach((
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2188
|
+
c.forEach((l) => {
|
|
2189
|
+
const u = cn(l);
|
|
2190
|
+
u?.removeEventListener("scroll", o);
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
2193
|
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Je(s, a), Se) : Pr(e) : Se, [e, t]);
|
|
@@ -2195,19 +2195,19 @@ function Ns(e) {
|
|
|
2195
2195
|
function lr(e, t) {
|
|
2196
2196
|
t === void 0 && (t = []);
|
|
2197
2197
|
const n = U(null);
|
|
2198
|
-
return
|
|
2198
|
+
return H(
|
|
2199
2199
|
() => {
|
|
2200
2200
|
n.current = null;
|
|
2201
2201
|
},
|
|
2202
2202
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2203
2203
|
t
|
|
2204
|
-
),
|
|
2204
|
+
), H(() => {
|
|
2205
2205
|
const r = e !== Se;
|
|
2206
2206
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
2207
2207
|
}, [e]), n.current ? Yt(e, n.current) : Se;
|
|
2208
2208
|
}
|
|
2209
2209
|
function zs(e) {
|
|
2210
|
-
|
|
2210
|
+
H(
|
|
2211
2211
|
() => {
|
|
2212
2212
|
if (!Gt)
|
|
2213
2213
|
return;
|
|
@@ -2243,21 +2243,21 @@ function Ps(e, t) {
|
|
|
2243
2243
|
}, n;
|
|
2244
2244
|
}, {}), [e, t]);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function Hr(e) {
|
|
2247
2247
|
return B(() => e ? ls(e) : null, [e]);
|
|
2248
2248
|
}
|
|
2249
2249
|
const ur = [];
|
|
2250
2250
|
function Ys(e, t) {
|
|
2251
2251
|
t === void 0 && (t = nt);
|
|
2252
|
-
const [n] = e, r =
|
|
2252
|
+
const [n] = e, r = Hr(n ? he(n) : null), [o, s] = oe(ur);
|
|
2253
2253
|
function a() {
|
|
2254
|
-
s(() => e.length ? e.map((
|
|
2254
|
+
s(() => e.length ? e.map((l) => Nr(l) ? r : new _n(t(l), l)) : ur);
|
|
2255
2255
|
}
|
|
2256
2256
|
const c = Xt({
|
|
2257
2257
|
callback: a
|
|
2258
2258
|
});
|
|
2259
2259
|
return Te(() => {
|
|
2260
|
-
c?.disconnect(), a(), e.forEach((
|
|
2260
|
+
c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
|
|
2261
2261
|
}, [e]), o;
|
|
2262
2262
|
}
|
|
2263
2263
|
function Fs(e) {
|
|
@@ -2268,17 +2268,17 @@ function Fs(e) {
|
|
|
2268
2268
|
const t = e.children[0];
|
|
2269
2269
|
return xt(t) ? t : e;
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function Vs(e) {
|
|
2272
2272
|
let {
|
|
2273
2273
|
measure: t
|
|
2274
2274
|
} = e;
|
|
2275
|
-
const [n, r] = oe(null), o = le((
|
|
2275
|
+
const [n, r] = oe(null), o = le((u) => {
|
|
2276
2276
|
for (const {
|
|
2277
|
-
target:
|
|
2278
|
-
} of
|
|
2279
|
-
if (xt(
|
|
2277
|
+
target: f
|
|
2278
|
+
} of u)
|
|
2279
|
+
if (xt(f)) {
|
|
2280
2280
|
r((d) => {
|
|
2281
|
-
const m = t(
|
|
2281
|
+
const m = t(f);
|
|
2282
2282
|
return d ? {
|
|
2283
2283
|
...d,
|
|
2284
2284
|
width: m.width,
|
|
@@ -2289,17 +2289,17 @@ function Hs(e) {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
}, [t]), s = Xt({
|
|
2291
2291
|
callback: o
|
|
2292
|
-
}), a = le((
|
|
2293
|
-
const
|
|
2294
|
-
s?.disconnect(),
|
|
2295
|
-
}, [t, s]), [c,
|
|
2292
|
+
}), a = le((u) => {
|
|
2293
|
+
const f = Fs(u);
|
|
2294
|
+
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
2295
|
+
}, [t, s]), [c, l] = Pt(a);
|
|
2296
2296
|
return B(() => ({
|
|
2297
2297
|
nodeRef: c,
|
|
2298
2298
|
rect: n,
|
|
2299
|
-
setRef:
|
|
2300
|
-
}), [n, c,
|
|
2299
|
+
setRef: l
|
|
2300
|
+
}), [n, c, l]);
|
|
2301
2301
|
}
|
|
2302
|
-
const
|
|
2302
|
+
const Hs = [{
|
|
2303
2303
|
sensor: On,
|
|
2304
2304
|
options: {}
|
|
2305
2305
|
}, {
|
|
@@ -2313,7 +2313,7 @@ const Vs = [{
|
|
|
2313
2313
|
},
|
|
2314
2314
|
droppable: {
|
|
2315
2315
|
measure: nr,
|
|
2316
|
-
strategy:
|
|
2316
|
+
strategy: pt.WhileDragging,
|
|
2317
2317
|
frequency: yn.Optimized
|
|
2318
2318
|
},
|
|
2319
2319
|
dragOverlay: {
|
|
@@ -2498,8 +2498,8 @@ function qs(e) {
|
|
|
2498
2498
|
active: n,
|
|
2499
2499
|
activatorEvent: r,
|
|
2500
2500
|
draggableNodes: o
|
|
2501
|
-
} =
|
|
2502
|
-
return
|
|
2501
|
+
} = He(qt), s = vn(r), a = vn(n?.id);
|
|
2502
|
+
return H(() => {
|
|
2503
2503
|
if (!t && !r && s && a != null) {
|
|
2504
2504
|
if (!jn(s) || document.activeElement === s.target)
|
|
2505
2505
|
return;
|
|
@@ -2507,16 +2507,16 @@ function qs(e) {
|
|
|
2507
2507
|
if (!c)
|
|
2508
2508
|
return;
|
|
2509
2509
|
const {
|
|
2510
|
-
activatorNode:
|
|
2511
|
-
node:
|
|
2510
|
+
activatorNode: l,
|
|
2511
|
+
node: u
|
|
2512
2512
|
} = c;
|
|
2513
|
-
if (!
|
|
2513
|
+
if (!l.current && !u.current)
|
|
2514
2514
|
return;
|
|
2515
2515
|
requestAnimationFrame(() => {
|
|
2516
|
-
for (const
|
|
2517
|
-
if (!
|
|
2516
|
+
for (const f of [l.current, u.current]) {
|
|
2517
|
+
if (!f)
|
|
2518
2518
|
continue;
|
|
2519
|
-
const d = Po(
|
|
2519
|
+
const d = Po(f);
|
|
2520
2520
|
if (d) {
|
|
2521
2521
|
d.focus();
|
|
2522
2522
|
break;
|
|
@@ -2577,12 +2577,12 @@ function Zs(e) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
if (s.current || !r)
|
|
2579
2579
|
return;
|
|
2580
|
-
const
|
|
2581
|
-
if (!
|
|
2580
|
+
const u = t?.node.current;
|
|
2581
|
+
if (!u || u.isConnected === !1)
|
|
2582
2582
|
return;
|
|
2583
|
-
const
|
|
2583
|
+
const f = n(u), d = kr(f, r);
|
|
2584
2584
|
if (a || (d.x = 0), c || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
2585
|
-
const m =
|
|
2585
|
+
const m = Ir(u);
|
|
2586
2586
|
m && m.scrollBy({
|
|
2587
2587
|
top: d.y,
|
|
2588
2588
|
left: d.x
|
|
@@ -2599,20 +2599,20 @@ var Fe;
|
|
|
2599
2599
|
(function(e) {
|
|
2600
2600
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2601
2601
|
})(Fe || (Fe = {}));
|
|
2602
|
-
const Ur = /* @__PURE__ */
|
|
2602
|
+
const Ur = /* @__PURE__ */ po(function(t) {
|
|
2603
2603
|
var n, r, o, s;
|
|
2604
2604
|
let {
|
|
2605
2605
|
id: a,
|
|
2606
2606
|
accessibility: c,
|
|
2607
|
-
autoScroll:
|
|
2608
|
-
children:
|
|
2609
|
-
sensors:
|
|
2607
|
+
autoScroll: l = !0,
|
|
2608
|
+
children: u,
|
|
2609
|
+
sensors: f = Hs,
|
|
2610
2610
|
collisionDetection: d = ns,
|
|
2611
2611
|
measuring: m,
|
|
2612
2612
|
modifiers: p,
|
|
2613
2613
|
...v
|
|
2614
2614
|
} = t;
|
|
2615
|
-
const
|
|
2615
|
+
const h = vo(Xs, void 0, Gs), [b, w] = h, [R, E] = Bo(), [_, O] = oe(Fe.Uninitialized), T = _ === Fe.Initialized, {
|
|
2616
2616
|
draggable: {
|
|
2617
2617
|
active: $,
|
|
2618
2618
|
nodes: N,
|
|
@@ -2621,7 +2621,7 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2621
2621
|
droppable: {
|
|
2622
2622
|
containers: Y
|
|
2623
2623
|
}
|
|
2624
|
-
} = b,
|
|
2624
|
+
} = b, k = $ != null ? N.get($) : null, Q = U({
|
|
2625
2625
|
initial: null,
|
|
2626
2626
|
translated: null
|
|
2627
2627
|
}), se = B(() => {
|
|
@@ -2629,15 +2629,15 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2629
2629
|
return $ != null ? {
|
|
2630
2630
|
id: $,
|
|
2631
2631
|
// It's possible for the active node to unmount while dragging
|
|
2632
|
-
data: (ce =
|
|
2632
|
+
data: (ce = k?.data) != null ? ce : Ws,
|
|
2633
2633
|
rect: Q
|
|
2634
2634
|
} : null;
|
|
2635
|
-
}, [$,
|
|
2635
|
+
}, [$, k]), M = U(null), [D, y] = oe(null), [j, C] = oe(null), I = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = Js(m), {
|
|
2636
2636
|
droppableRects: A,
|
|
2637
2637
|
measureDroppableContainers: P,
|
|
2638
2638
|
measuringScheduled: G
|
|
2639
2639
|
} = Ms(g, {
|
|
2640
|
-
dragging:
|
|
2640
|
+
dragging: T,
|
|
2641
2641
|
dependencies: [W.x, W.y],
|
|
2642
2642
|
config: S.droppable
|
|
2643
2643
|
}), X = Ts(N, $), F = B(() => j ? mn(j) : null, [j]), J = ho(), Z = $s(X, S.draggable.measure);
|
|
@@ -2661,12 +2661,12 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2661
2661
|
over: null,
|
|
2662
2662
|
scrollableAncestors: [],
|
|
2663
2663
|
scrollAdjustedTranslate: null
|
|
2664
|
-
}), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e =
|
|
2664
|
+
}), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Vs({
|
|
2665
2665
|
measure: S.dragOverlay.measure
|
|
2666
|
-
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue =
|
|
2666
|
+
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = T ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = As(kn ? null : z), Zt = Hr(Be ? he(Be) : null), Le = Ls(T ? ye ?? X : null), St = Ys(Le), Dt = Ks(p, {
|
|
2667
2667
|
transform: {
|
|
2668
|
-
x: W.x -
|
|
2669
|
-
y: W.y -
|
|
2668
|
+
x: W.x - In.x,
|
|
2669
|
+
y: W.y - In.y,
|
|
2670
2670
|
scaleX: 1,
|
|
2671
2671
|
scaleY: 1
|
|
2672
2672
|
},
|
|
@@ -2686,20 +2686,20 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2686
2686
|
droppableRects: A,
|
|
2687
2687
|
droppableContainers: g,
|
|
2688
2688
|
pointerCoordinates: An
|
|
2689
|
-
}) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao =
|
|
2690
|
-
(ce,
|
|
2689
|
+
}) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao = kn ? Dt : Je(Dt, io), co = rs(ao, (s = Ne?.rect) != null ? s : null, z), Qt = U(null), Pn = le(
|
|
2690
|
+
(ce, ge) => {
|
|
2691
2691
|
let {
|
|
2692
|
-
sensor:
|
|
2692
|
+
sensor: pe,
|
|
2693
2693
|
options: ze
|
|
2694
|
-
} =
|
|
2694
|
+
} = ge;
|
|
2695
2695
|
if (M.current == null)
|
|
2696
2696
|
return;
|
|
2697
|
-
const
|
|
2698
|
-
if (!
|
|
2697
|
+
const be = N.get(M.current);
|
|
2698
|
+
if (!be)
|
|
2699
2699
|
return;
|
|
2700
|
-
const ve = ce.nativeEvent, Ce = new
|
|
2700
|
+
const ve = ce.nativeEvent, Ce = new pe({
|
|
2701
2701
|
active: M.current,
|
|
2702
|
-
activeNode:
|
|
2702
|
+
activeNode: be,
|
|
2703
2703
|
event: ve,
|
|
2704
2704
|
options: ze,
|
|
2705
2705
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
@@ -2710,26 +2710,26 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2710
2710
|
return;
|
|
2711
2711
|
const {
|
|
2712
2712
|
onDragAbort: Re
|
|
2713
|
-
} =
|
|
2713
|
+
} = I.current, ke = {
|
|
2714
2714
|
id: ie
|
|
2715
2715
|
};
|
|
2716
|
-
Re?.(
|
|
2716
|
+
Re?.(ke), R({
|
|
2717
2717
|
type: "onDragAbort",
|
|
2718
|
-
event:
|
|
2718
|
+
event: ke
|
|
2719
2719
|
});
|
|
2720
2720
|
},
|
|
2721
|
-
onPending(ie, Pe, Re,
|
|
2721
|
+
onPending(ie, Pe, Re, ke) {
|
|
2722
2722
|
if (!N.get(ie))
|
|
2723
2723
|
return;
|
|
2724
2724
|
const {
|
|
2725
2725
|
onDragPending: st
|
|
2726
|
-
} =
|
|
2726
|
+
} = I.current, Ye = {
|
|
2727
2727
|
id: ie,
|
|
2728
2728
|
constraint: Pe,
|
|
2729
2729
|
initialCoordinates: Re,
|
|
2730
|
-
offset:
|
|
2730
|
+
offset: ke
|
|
2731
2731
|
};
|
|
2732
|
-
st?.(Ye),
|
|
2732
|
+
st?.(Ye), R({
|
|
2733
2733
|
type: "onDragPending",
|
|
2734
2734
|
event: Ye
|
|
2735
2735
|
});
|
|
@@ -2742,8 +2742,8 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2742
2742
|
if (!Re)
|
|
2743
2743
|
return;
|
|
2744
2744
|
const {
|
|
2745
|
-
onDragStart:
|
|
2746
|
-
} =
|
|
2745
|
+
onDragStart: ke
|
|
2746
|
+
} = I.current, ot = {
|
|
2747
2747
|
activatorEvent: ve,
|
|
2748
2748
|
active: {
|
|
2749
2749
|
id: Pe,
|
|
@@ -2752,18 +2752,18 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
};
|
|
2754
2754
|
Ct(() => {
|
|
2755
|
-
|
|
2755
|
+
ke?.(ot), O(Fe.Initializing), w({
|
|
2756
2756
|
type: te.DragStart,
|
|
2757
2757
|
initialCoordinates: ie,
|
|
2758
2758
|
active: Pe
|
|
2759
|
-
}),
|
|
2759
|
+
}), R({
|
|
2760
2760
|
type: "onDragStart",
|
|
2761
2761
|
event: ot
|
|
2762
|
-
}),
|
|
2762
|
+
}), y(Qt.current), C(ve);
|
|
2763
2763
|
});
|
|
2764
2764
|
},
|
|
2765
2765
|
onMove(ie) {
|
|
2766
|
-
|
|
2766
|
+
w({
|
|
2767
2767
|
type: te.DragMove,
|
|
2768
2768
|
coordinates: ie
|
|
2769
2769
|
});
|
|
@@ -2776,7 +2776,7 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2776
2776
|
return async function() {
|
|
2777
2777
|
const {
|
|
2778
2778
|
active: Re,
|
|
2779
|
-
collisions:
|
|
2779
|
+
collisions: ke,
|
|
2780
2780
|
over: ot,
|
|
2781
2781
|
scrollAdjustedTranslate: st
|
|
2782
2782
|
} = ae.current;
|
|
@@ -2784,23 +2784,23 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2784
2784
|
if (Re && st) {
|
|
2785
2785
|
const {
|
|
2786
2786
|
cancelDrop: it
|
|
2787
|
-
} =
|
|
2787
|
+
} = I.current;
|
|
2788
2788
|
Ye = {
|
|
2789
2789
|
activatorEvent: ve,
|
|
2790
2790
|
active: Re,
|
|
2791
|
-
collisions:
|
|
2791
|
+
collisions: ke,
|
|
2792
2792
|
delta: st,
|
|
2793
2793
|
over: ot
|
|
2794
2794
|
}, ie === te.DragEnd && typeof it == "function" && await Promise.resolve(it(Ye)) && (ie = te.DragCancel);
|
|
2795
2795
|
}
|
|
2796
2796
|
M.current = null, Ct(() => {
|
|
2797
|
-
|
|
2797
|
+
w({
|
|
2798
2798
|
type: ie
|
|
2799
|
-
}), O(Fe.Uninitialized), zn(null),
|
|
2799
|
+
}), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
|
|
2800
2800
|
const it = ie === te.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2801
2801
|
if (Ye) {
|
|
2802
|
-
const en =
|
|
2803
|
-
en?.(Ye),
|
|
2802
|
+
const en = I.current[it];
|
|
2803
|
+
en?.(Ye), R({
|
|
2804
2804
|
type: it,
|
|
2805
2805
|
event: Ye
|
|
2806
2806
|
});
|
|
@@ -2811,48 +2811,48 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2811
2811
|
},
|
|
2812
2812
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2813
2813
|
[N]
|
|
2814
|
-
), lo = le((ce,
|
|
2815
|
-
const
|
|
2814
|
+
), lo = le((ce, ge) => (pe, ze) => {
|
|
2815
|
+
const be = pe.nativeEvent, ve = N.get(ze);
|
|
2816
2816
|
if (
|
|
2817
2817
|
// Another sensor is already instantiating
|
|
2818
2818
|
M.current !== null || // No active draggable
|
|
2819
2819
|
!ve || // Event has already been captured
|
|
2820
|
-
|
|
2820
|
+
be.dndKit || be.defaultPrevented
|
|
2821
2821
|
)
|
|
2822
2822
|
return;
|
|
2823
2823
|
const Ce = {
|
|
2824
2824
|
active: ve
|
|
2825
2825
|
};
|
|
2826
|
-
ce(
|
|
2827
|
-
capturedBy:
|
|
2828
|
-
}, M.current = ze, Pn(
|
|
2829
|
-
}, [N, Pn]), Yn = Os(
|
|
2830
|
-
zs(
|
|
2831
|
-
z &&
|
|
2832
|
-
}, [z,
|
|
2826
|
+
ce(pe, ge.options, Ce) === !0 && (be.dndKit = {
|
|
2827
|
+
capturedBy: ge.sensor
|
|
2828
|
+
}, M.current = ze, Pn(pe, ge));
|
|
2829
|
+
}, [N, Pn]), Yn = Os(f, lo);
|
|
2830
|
+
zs(f), Te(() => {
|
|
2831
|
+
z && _ === Fe.Initializing && O(Fe.Initialized);
|
|
2832
|
+
}, [z, _]), H(
|
|
2833
2833
|
() => {
|
|
2834
2834
|
const {
|
|
2835
2835
|
onDragMove: ce
|
|
2836
|
-
} =
|
|
2837
|
-
active:
|
|
2838
|
-
activatorEvent:
|
|
2836
|
+
} = I.current, {
|
|
2837
|
+
active: ge,
|
|
2838
|
+
activatorEvent: pe,
|
|
2839
2839
|
collisions: ze,
|
|
2840
|
-
over:
|
|
2840
|
+
over: be
|
|
2841
2841
|
} = ae.current;
|
|
2842
|
-
if (!
|
|
2842
|
+
if (!ge || !pe)
|
|
2843
2843
|
return;
|
|
2844
2844
|
const ve = {
|
|
2845
|
-
active:
|
|
2846
|
-
activatorEvent:
|
|
2845
|
+
active: ge,
|
|
2846
|
+
activatorEvent: pe,
|
|
2847
2847
|
collisions: ze,
|
|
2848
2848
|
delta: {
|
|
2849
2849
|
x: Ge.x,
|
|
2850
2850
|
y: Ge.y
|
|
2851
2851
|
},
|
|
2852
|
-
over:
|
|
2852
|
+
over: be
|
|
2853
2853
|
};
|
|
2854
2854
|
Ct(() => {
|
|
2855
|
-
ce?.(ve),
|
|
2855
|
+
ce?.(ve), R({
|
|
2856
2856
|
type: "onDragMove",
|
|
2857
2857
|
event: ve
|
|
2858
2858
|
});
|
|
@@ -2860,36 +2860,36 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2860
2860
|
},
|
|
2861
2861
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2862
2862
|
[Ge.x, Ge.y]
|
|
2863
|
-
),
|
|
2863
|
+
), H(
|
|
2864
2864
|
() => {
|
|
2865
2865
|
const {
|
|
2866
2866
|
active: ce,
|
|
2867
|
-
activatorEvent:
|
|
2868
|
-
collisions:
|
|
2867
|
+
activatorEvent: ge,
|
|
2868
|
+
collisions: pe,
|
|
2869
2869
|
droppableContainers: ze,
|
|
2870
|
-
scrollAdjustedTranslate:
|
|
2870
|
+
scrollAdjustedTranslate: be
|
|
2871
2871
|
} = ae.current;
|
|
2872
|
-
if (!ce || M.current == null || !
|
|
2872
|
+
if (!ce || M.current == null || !ge || !be)
|
|
2873
2873
|
return;
|
|
2874
2874
|
const {
|
|
2875
2875
|
onDragOver: ve
|
|
2876
|
-
} =
|
|
2876
|
+
} = I.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
|
|
2877
2877
|
id: Ce.id,
|
|
2878
2878
|
rect: Ce.rect.current,
|
|
2879
2879
|
data: Ce.data,
|
|
2880
2880
|
disabled: Ce.disabled
|
|
2881
2881
|
} : null, ie = {
|
|
2882
2882
|
active: ce,
|
|
2883
|
-
activatorEvent:
|
|
2884
|
-
collisions:
|
|
2883
|
+
activatorEvent: ge,
|
|
2884
|
+
collisions: pe,
|
|
2885
2885
|
delta: {
|
|
2886
|
-
x:
|
|
2887
|
-
y:
|
|
2886
|
+
x: be.x,
|
|
2887
|
+
y: be.y
|
|
2888
2888
|
},
|
|
2889
2889
|
over: qe
|
|
2890
2890
|
};
|
|
2891
2891
|
Ct(() => {
|
|
2892
|
-
zn(qe), ve?.(ie),
|
|
2892
|
+
zn(qe), ve?.(ie), R({
|
|
2893
2893
|
type: "onDragOver",
|
|
2894
2894
|
event: ie
|
|
2895
2895
|
});
|
|
@@ -2950,32 +2950,32 @@ const Ur = /* @__PURE__ */ go(function(t) {
|
|
|
2950
2950
|
ariaDescribedById: {
|
|
2951
2951
|
draggable: L
|
|
2952
2952
|
},
|
|
2953
|
-
dispatch:
|
|
2953
|
+
dispatch: w,
|
|
2954
2954
|
draggableNodes: N,
|
|
2955
2955
|
over: Ne,
|
|
2956
2956
|
measureDroppableContainers: P
|
|
2957
|
-
}), [j, Yn, se, z,
|
|
2957
|
+
}), [j, Yn, se, z, w, L, N, Ne, P]);
|
|
2958
2958
|
return ne.createElement(Mr.Provider, {
|
|
2959
|
-
value:
|
|
2959
|
+
value: E
|
|
2960
2960
|
}, ne.createElement(qt.Provider, {
|
|
2961
2961
|
value: fo
|
|
2962
2962
|
}, ne.createElement(Wr.Provider, {
|
|
2963
2963
|
value: uo
|
|
2964
2964
|
}, ne.createElement(Br.Provider, {
|
|
2965
2965
|
value: co
|
|
2966
|
-
},
|
|
2966
|
+
}, u)), ne.createElement(qs, {
|
|
2967
2967
|
disabled: c?.restoreFocus === !1
|
|
2968
2968
|
})), ne.createElement(Xo, {
|
|
2969
2969
|
...c,
|
|
2970
2970
|
hiddenTextDescribedById: L
|
|
2971
2971
|
}));
|
|
2972
2972
|
function ho() {
|
|
2973
|
-
const ce = D?.autoScrollEnabled === !1,
|
|
2974
|
-
return typeof
|
|
2975
|
-
...
|
|
2976
|
-
enabled:
|
|
2973
|
+
const ce = D?.autoScrollEnabled === !1, ge = typeof l == "object" ? l.enabled === !1 : l === !1, pe = T && !ce && !ge;
|
|
2974
|
+
return typeof l == "object" ? {
|
|
2975
|
+
...l,
|
|
2976
|
+
enabled: pe
|
|
2977
2977
|
} : {
|
|
2978
|
-
enabled:
|
|
2978
|
+
enabled: pe
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
2981
|
}), Qs = /* @__PURE__ */ vt(null), dr = "button", ei = "Draggable";
|
|
@@ -2989,22 +2989,22 @@ function ti(e) {
|
|
|
2989
2989
|
const s = wt(ei), {
|
|
2990
2990
|
activators: a,
|
|
2991
2991
|
activatorEvent: c,
|
|
2992
|
-
active:
|
|
2993
|
-
activeNodeRect:
|
|
2994
|
-
ariaDescribedById:
|
|
2992
|
+
active: l,
|
|
2993
|
+
activeNodeRect: u,
|
|
2994
|
+
ariaDescribedById: f,
|
|
2995
2995
|
draggableNodes: d,
|
|
2996
2996
|
over: m
|
|
2997
|
-
} =
|
|
2997
|
+
} = He(qt), {
|
|
2998
2998
|
role: p = dr,
|
|
2999
2999
|
roleDescription: v = "draggable",
|
|
3000
|
-
tabIndex:
|
|
3001
|
-
} = o ?? {}, b =
|
|
3000
|
+
tabIndex: h = 0
|
|
3001
|
+
} = o ?? {}, b = l?.id === t, w = He(b ? Br : Qs), [R, E] = Pt(), [_, O] = Pt(), T = Ps(a, t), $ = gt(n);
|
|
3002
3002
|
Te(
|
|
3003
3003
|
() => (d.set(t, {
|
|
3004
3004
|
id: t,
|
|
3005
3005
|
key: s,
|
|
3006
|
-
node:
|
|
3007
|
-
activatorNode:
|
|
3006
|
+
node: R,
|
|
3007
|
+
activatorNode: _,
|
|
3008
3008
|
data: $
|
|
3009
3009
|
}), () => {
|
|
3010
3010
|
const W = d.get(t);
|
|
@@ -3015,28 +3015,28 @@ function ti(e) {
|
|
|
3015
3015
|
);
|
|
3016
3016
|
const N = B(() => ({
|
|
3017
3017
|
role: p,
|
|
3018
|
-
tabIndex:
|
|
3018
|
+
tabIndex: h,
|
|
3019
3019
|
"aria-disabled": r,
|
|
3020
3020
|
"aria-pressed": b && p === dr ? !0 : void 0,
|
|
3021
3021
|
"aria-roledescription": v,
|
|
3022
|
-
"aria-describedby":
|
|
3023
|
-
}), [r, p,
|
|
3022
|
+
"aria-describedby": f.draggable
|
|
3023
|
+
}), [r, p, h, b, v, f.draggable]);
|
|
3024
3024
|
return {
|
|
3025
|
-
active:
|
|
3025
|
+
active: l,
|
|
3026
3026
|
activatorEvent: c,
|
|
3027
|
-
activeNodeRect:
|
|
3027
|
+
activeNodeRect: u,
|
|
3028
3028
|
attributes: N,
|
|
3029
3029
|
isDragging: b,
|
|
3030
|
-
listeners: r ? void 0 :
|
|
3031
|
-
node:
|
|
3030
|
+
listeners: r ? void 0 : T,
|
|
3031
|
+
node: R,
|
|
3032
3032
|
over: m,
|
|
3033
|
-
setNodeRef:
|
|
3033
|
+
setNodeRef: E,
|
|
3034
3034
|
setActivatorNodeRef: O,
|
|
3035
|
-
transform:
|
|
3035
|
+
transform: w
|
|
3036
3036
|
};
|
|
3037
3037
|
}
|
|
3038
3038
|
function ni() {
|
|
3039
|
-
return
|
|
3039
|
+
return He(Wr);
|
|
3040
3040
|
}
|
|
3041
3041
|
const ri = "Droppable", oi = {
|
|
3042
3042
|
timeout: 25
|
|
@@ -3051,38 +3051,38 @@ function si(e) {
|
|
|
3051
3051
|
const s = wt(ri), {
|
|
3052
3052
|
active: a,
|
|
3053
3053
|
dispatch: c,
|
|
3054
|
-
over:
|
|
3055
|
-
measureDroppableContainers:
|
|
3056
|
-
} =
|
|
3054
|
+
over: l,
|
|
3055
|
+
measureDroppableContainers: u
|
|
3056
|
+
} = He(qt), f = U({
|
|
3057
3057
|
disabled: n
|
|
3058
3058
|
}), d = U(!1), m = U(null), p = U(null), {
|
|
3059
3059
|
disabled: v,
|
|
3060
|
-
updateMeasurementsFor:
|
|
3060
|
+
updateMeasurementsFor: h,
|
|
3061
3061
|
timeout: b
|
|
3062
3062
|
} = {
|
|
3063
3063
|
...oi,
|
|
3064
3064
|
...o
|
|
3065
|
-
},
|
|
3065
|
+
}, w = gt(h ?? r), R = le(
|
|
3066
3066
|
() => {
|
|
3067
3067
|
if (!d.current) {
|
|
3068
3068
|
d.current = !0;
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
3071
|
p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
3072
|
-
|
|
3072
|
+
u(Array.isArray(w.current) ? w.current : [w.current]), p.current = null;
|
|
3073
3073
|
}, b);
|
|
3074
3074
|
},
|
|
3075
3075
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3076
3076
|
[b]
|
|
3077
|
-
),
|
|
3078
|
-
callback:
|
|
3077
|
+
), E = Xt({
|
|
3078
|
+
callback: R,
|
|
3079
3079
|
disabled: v || !a
|
|
3080
|
-
}),
|
|
3081
|
-
|
|
3082
|
-
}, [
|
|
3083
|
-
return
|
|
3084
|
-
!
|
|
3085
|
-
}, [O,
|
|
3080
|
+
}), _ = le((N, W) => {
|
|
3081
|
+
E && (W && (E.unobserve(W), d.current = !1), N && E.observe(N));
|
|
3082
|
+
}, [E]), [O, T] = Pt(_), $ = gt(t);
|
|
3083
|
+
return H(() => {
|
|
3084
|
+
!E || !O.current || (E.disconnect(), d.current = !1, E.observe(O.current));
|
|
3085
|
+
}, [O, E]), H(
|
|
3086
3086
|
() => (c({
|
|
3087
3087
|
type: te.RegisterDroppable,
|
|
3088
3088
|
element: {
|
|
@@ -3100,20 +3100,20 @@ function si(e) {
|
|
|
3100
3100
|
})),
|
|
3101
3101
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3102
3102
|
[r]
|
|
3103
|
-
),
|
|
3104
|
-
n !==
|
|
3103
|
+
), H(() => {
|
|
3104
|
+
n !== f.current.disabled && (c({
|
|
3105
3105
|
type: te.SetDroppableDisabled,
|
|
3106
3106
|
id: r,
|
|
3107
3107
|
key: s,
|
|
3108
3108
|
disabled: n
|
|
3109
|
-
}),
|
|
3109
|
+
}), f.current.disabled = n);
|
|
3110
3110
|
}, [r, s, n, c]), {
|
|
3111
3111
|
active: a,
|
|
3112
3112
|
rect: m,
|
|
3113
|
-
isOver:
|
|
3113
|
+
isOver: l?.id === r,
|
|
3114
3114
|
node: O,
|
|
3115
|
-
over:
|
|
3116
|
-
setNodeRef:
|
|
3115
|
+
over: l,
|
|
3116
|
+
setNodeRef: T
|
|
3117
3117
|
};
|
|
3118
3118
|
}
|
|
3119
3119
|
function Kt(e, t, n) {
|
|
@@ -3160,21 +3160,21 @@ const Ot = {
|
|
|
3160
3160
|
const c = (t = n[o]) != null ? t : r;
|
|
3161
3161
|
if (!c)
|
|
3162
3162
|
return null;
|
|
3163
|
-
const
|
|
3163
|
+
const l = ui(n, a, o);
|
|
3164
3164
|
if (a === o) {
|
|
3165
|
-
const
|
|
3166
|
-
return
|
|
3167
|
-
x: o < s ?
|
|
3165
|
+
const u = n[s];
|
|
3166
|
+
return u ? {
|
|
3167
|
+
x: o < s ? u.left + u.width - (c.left + c.width) : u.left - c.left,
|
|
3168
3168
|
y: 0,
|
|
3169
3169
|
...Ot
|
|
3170
3170
|
} : null;
|
|
3171
3171
|
}
|
|
3172
3172
|
return a > o && a <= s ? {
|
|
3173
|
-
x: -c.width -
|
|
3173
|
+
x: -c.width - l,
|
|
3174
3174
|
y: 0,
|
|
3175
3175
|
...Ot
|
|
3176
3176
|
} : a < o && a >= s ? {
|
|
3177
|
-
x: c.width +
|
|
3177
|
+
x: c.width + l,
|
|
3178
3178
|
y: 0,
|
|
3179
3179
|
...Ot
|
|
3180
3180
|
} : {
|
|
@@ -3217,21 +3217,21 @@ const Gr = (e) => {
|
|
|
3217
3217
|
if (!c)
|
|
3218
3218
|
return null;
|
|
3219
3219
|
if (o === n) {
|
|
3220
|
-
const
|
|
3221
|
-
return
|
|
3220
|
+
const u = s[a];
|
|
3221
|
+
return u ? {
|
|
3222
3222
|
x: 0,
|
|
3223
|
-
y: n < a ?
|
|
3223
|
+
y: n < a ? u.top + u.height - (c.top + c.height) : u.top - c.top,
|
|
3224
3224
|
...Mt
|
|
3225
3225
|
} : null;
|
|
3226
3226
|
}
|
|
3227
|
-
const
|
|
3227
|
+
const l = fi(s, o, n);
|
|
3228
3228
|
return o > n && o <= a ? {
|
|
3229
3229
|
x: 0,
|
|
3230
|
-
y: -c.height -
|
|
3230
|
+
y: -c.height - l,
|
|
3231
3231
|
...Mt
|
|
3232
3232
|
} : o < n && o >= a ? {
|
|
3233
3233
|
x: 0,
|
|
3234
|
-
y: c.height +
|
|
3234
|
+
y: c.height + l,
|
|
3235
3235
|
...Mt
|
|
3236
3236
|
} : {
|
|
3237
3237
|
x: 0,
|
|
@@ -3268,29 +3268,29 @@ function Kr(e) {
|
|
|
3268
3268
|
const {
|
|
3269
3269
|
active: a,
|
|
3270
3270
|
dragOverlay: c,
|
|
3271
|
-
droppableRects:
|
|
3272
|
-
over:
|
|
3273
|
-
measureDroppableContainers:
|
|
3274
|
-
} = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((
|
|
3271
|
+
droppableRects: l,
|
|
3272
|
+
over: u,
|
|
3273
|
+
measureDroppableContainers: f
|
|
3274
|
+
} = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((T) => typeof T == "object" && "id" in T ? T.id : T), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, w = U(p), R = !ai(p, w.current), E = b !== -1 && h === -1 || R, _ = ci(s);
|
|
3275
3275
|
Te(() => {
|
|
3276
|
-
|
|
3277
|
-
}, [
|
|
3278
|
-
|
|
3276
|
+
R && v && f(p);
|
|
3277
|
+
}, [R, p, v, f]), H(() => {
|
|
3278
|
+
w.current = p;
|
|
3279
3279
|
}, [p]);
|
|
3280
3280
|
const O = B(
|
|
3281
3281
|
() => ({
|
|
3282
|
-
activeIndex:
|
|
3282
|
+
activeIndex: h,
|
|
3283
3283
|
containerId: d,
|
|
3284
|
-
disabled:
|
|
3285
|
-
disableTransforms:
|
|
3284
|
+
disabled: _,
|
|
3285
|
+
disableTransforms: E,
|
|
3286
3286
|
items: p,
|
|
3287
3287
|
overIndex: b,
|
|
3288
3288
|
useDragOverlay: m,
|
|
3289
|
-
sortedRects: ii(p,
|
|
3289
|
+
sortedRects: ii(p, l),
|
|
3290
3290
|
strategy: o
|
|
3291
3291
|
}),
|
|
3292
3292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3293
|
-
[
|
|
3293
|
+
[h, d, _.draggable, _.droppable, E, p, b, l, m, o]
|
|
3294
3294
|
);
|
|
3295
3295
|
return ne.createElement(qr.Provider, {
|
|
3296
3296
|
value: O
|
|
@@ -3304,7 +3304,7 @@ const hi = (e) => {
|
|
|
3304
3304
|
overIndex: o
|
|
3305
3305
|
} = e;
|
|
3306
3306
|
return Kt(n, r, o).indexOf(t);
|
|
3307
|
-
},
|
|
3307
|
+
}, gi = (e) => {
|
|
3308
3308
|
let {
|
|
3309
3309
|
containerId: t,
|
|
3310
3310
|
isSorting: n,
|
|
@@ -3313,11 +3313,11 @@ const hi = (e) => {
|
|
|
3313
3313
|
items: s,
|
|
3314
3314
|
newIndex: a,
|
|
3315
3315
|
previousItems: c,
|
|
3316
|
-
previousContainerId:
|
|
3317
|
-
transition:
|
|
3316
|
+
previousContainerId: l,
|
|
3317
|
+
transition: u
|
|
3318
3318
|
} = e;
|
|
3319
|
-
return !
|
|
3320
|
-
},
|
|
3319
|
+
return !u || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === l;
|
|
3320
|
+
}, pi = {
|
|
3321
3321
|
duration: 200,
|
|
3322
3322
|
easing: "ease"
|
|
3323
3323
|
}, Jr = "transform", vi = /* @__PURE__ */ Ze.Transition.toString({
|
|
@@ -3337,54 +3337,54 @@ function bi(e) {
|
|
|
3337
3337
|
const [s, a] = oe(null), c = U(n);
|
|
3338
3338
|
return Te(() => {
|
|
3339
3339
|
if (!t && n !== c.current && r.current) {
|
|
3340
|
-
const
|
|
3341
|
-
if (
|
|
3342
|
-
const
|
|
3340
|
+
const l = o.current;
|
|
3341
|
+
if (l) {
|
|
3342
|
+
const u = nt(r.current, {
|
|
3343
3343
|
ignoreTransform: !0
|
|
3344
|
-
}),
|
|
3345
|
-
x:
|
|
3346
|
-
y:
|
|
3347
|
-
scaleX:
|
|
3348
|
-
scaleY:
|
|
3344
|
+
}), f = {
|
|
3345
|
+
x: l.left - u.left,
|
|
3346
|
+
y: l.top - u.top,
|
|
3347
|
+
scaleX: l.width / u.width,
|
|
3348
|
+
scaleY: l.height / u.height
|
|
3349
3349
|
};
|
|
3350
|
-
(
|
|
3350
|
+
(f.x || f.y) && a(f);
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
n !== c.current && (c.current = n);
|
|
3354
|
-
}, [t, n, r, o]),
|
|
3354
|
+
}, [t, n, r, o]), H(() => {
|
|
3355
3355
|
s && a(null);
|
|
3356
3356
|
}, [s]), s;
|
|
3357
3357
|
}
|
|
3358
3358
|
function Zr(e) {
|
|
3359
3359
|
let {
|
|
3360
|
-
animateLayoutChanges: t =
|
|
3360
|
+
animateLayoutChanges: t = gi,
|
|
3361
3361
|
attributes: n,
|
|
3362
3362
|
disabled: r,
|
|
3363
3363
|
data: o,
|
|
3364
3364
|
getNewIndex: s = hi,
|
|
3365
3365
|
id: a,
|
|
3366
3366
|
strategy: c,
|
|
3367
|
-
resizeObserverConfig:
|
|
3368
|
-
transition:
|
|
3367
|
+
resizeObserverConfig: l,
|
|
3368
|
+
transition: u = pi
|
|
3369
3369
|
} = e;
|
|
3370
3370
|
const {
|
|
3371
|
-
items:
|
|
3371
|
+
items: f,
|
|
3372
3372
|
containerId: d,
|
|
3373
3373
|
activeIndex: m,
|
|
3374
3374
|
disabled: p,
|
|
3375
3375
|
disableTransforms: v,
|
|
3376
|
-
sortedRects:
|
|
3376
|
+
sortedRects: h,
|
|
3377
3377
|
overIndex: b,
|
|
3378
|
-
useDragOverlay:
|
|
3379
|
-
strategy:
|
|
3380
|
-
} =
|
|
3378
|
+
useDragOverlay: w,
|
|
3379
|
+
strategy: R
|
|
3380
|
+
} = He(qr), E = xi(r, p), _ = f.indexOf(a), O = B(() => ({
|
|
3381
3381
|
sortable: {
|
|
3382
3382
|
containerId: d,
|
|
3383
|
-
index:
|
|
3384
|
-
items:
|
|
3383
|
+
index: _,
|
|
3384
|
+
items: f
|
|
3385
3385
|
},
|
|
3386
3386
|
...o
|
|
3387
|
-
}), [d, o,
|
|
3387
|
+
}), [d, o, _, f]), T = B(() => f.slice(f.indexOf(a)), [f, a]), {
|
|
3388
3388
|
rect: $,
|
|
3389
3389
|
node: N,
|
|
3390
3390
|
isOver: W,
|
|
@@ -3392,21 +3392,21 @@ function Zr(e) {
|
|
|
3392
3392
|
} = si({
|
|
3393
3393
|
id: a,
|
|
3394
3394
|
data: O,
|
|
3395
|
-
disabled:
|
|
3395
|
+
disabled: E.droppable,
|
|
3396
3396
|
resizeObserverConfig: {
|
|
3397
|
-
updateMeasurementsFor:
|
|
3398
|
-
...
|
|
3397
|
+
updateMeasurementsFor: T,
|
|
3398
|
+
...l
|
|
3399
3399
|
}
|
|
3400
3400
|
}), {
|
|
3401
|
-
active:
|
|
3401
|
+
active: k,
|
|
3402
3402
|
activatorEvent: Q,
|
|
3403
3403
|
activeNodeRect: se,
|
|
3404
3404
|
attributes: M,
|
|
3405
3405
|
setNodeRef: D,
|
|
3406
|
-
listeners:
|
|
3406
|
+
listeners: y,
|
|
3407
3407
|
isDragging: j,
|
|
3408
3408
|
over: C,
|
|
3409
|
-
setActivatorNodeRef:
|
|
3409
|
+
setActivatorNodeRef: I,
|
|
3410
3410
|
transform: L
|
|
3411
3411
|
} = ti({
|
|
3412
3412
|
id: a,
|
|
@@ -3415,45 +3415,45 @@ function Zr(e) {
|
|
|
3415
3415
|
...mi,
|
|
3416
3416
|
...n
|
|
3417
3417
|
},
|
|
3418
|
-
disabled:
|
|
3419
|
-
}), g = Ao(Y, D), S = !!
|
|
3420
|
-
rects:
|
|
3418
|
+
disabled: E.draggable
|
|
3419
|
+
}), g = Ao(Y, D), S = !!k, A = S && !v && Tt(m) && Tt(b), P = !w && j, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
|
|
3420
|
+
rects: h,
|
|
3421
3421
|
activeNodeRect: se,
|
|
3422
3422
|
activeIndex: m,
|
|
3423
3423
|
overIndex: b,
|
|
3424
|
-
index:
|
|
3424
|
+
index: _
|
|
3425
3425
|
}) : null, J = Tt(m) && Tt(b) ? s({
|
|
3426
3426
|
id: a,
|
|
3427
|
-
items:
|
|
3427
|
+
items: f,
|
|
3428
3428
|
activeIndex: m,
|
|
3429
3429
|
overIndex: b
|
|
3430
|
-
}) :
|
|
3430
|
+
}) : _, Z = k?.id, z = U({
|
|
3431
3431
|
activeId: Z,
|
|
3432
|
-
items:
|
|
3432
|
+
items: f,
|
|
3433
3433
|
newIndex: J,
|
|
3434
3434
|
containerId: d
|
|
3435
|
-
}), de =
|
|
3436
|
-
active:
|
|
3435
|
+
}), de = f !== z.current.items, ae = t({
|
|
3436
|
+
active: k,
|
|
3437
3437
|
containerId: d,
|
|
3438
3438
|
isDragging: j,
|
|
3439
3439
|
isSorting: S,
|
|
3440
3440
|
id: a,
|
|
3441
|
-
index:
|
|
3442
|
-
items:
|
|
3441
|
+
index: _,
|
|
3442
|
+
items: f,
|
|
3443
3443
|
newIndex: z.current.newIndex,
|
|
3444
3444
|
previousItems: z.current.items,
|
|
3445
3445
|
previousContainerId: z.current.containerId,
|
|
3446
|
-
transition:
|
|
3446
|
+
transition: u,
|
|
3447
3447
|
wasDragging: z.current.activeId != null
|
|
3448
3448
|
}), ye = bi({
|
|
3449
3449
|
disabled: !ae,
|
|
3450
|
-
index:
|
|
3450
|
+
index: _,
|
|
3451
3451
|
node: N,
|
|
3452
3452
|
rect: $
|
|
3453
3453
|
});
|
|
3454
|
-
return
|
|
3455
|
-
S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d),
|
|
3456
|
-
}, [S, J, d,
|
|
3454
|
+
return H(() => {
|
|
3455
|
+
S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d), f !== z.current.items && (z.current.items = f);
|
|
3456
|
+
}, [S, J, d, f]), H(() => {
|
|
3457
3457
|
if (Z === z.current.activeId)
|
|
3458
3458
|
return;
|
|
3459
3459
|
if (Z != null && z.current.activeId == null) {
|
|
@@ -3465,23 +3465,23 @@ function Zr(e) {
|
|
|
3465
3465
|
}, 50);
|
|
3466
3466
|
return () => clearTimeout(Be);
|
|
3467
3467
|
}, [Z]), {
|
|
3468
|
-
active:
|
|
3468
|
+
active: k,
|
|
3469
3469
|
activeIndex: m,
|
|
3470
3470
|
attributes: M,
|
|
3471
3471
|
data: O,
|
|
3472
3472
|
rect: $,
|
|
3473
|
-
index:
|
|
3473
|
+
index: _,
|
|
3474
3474
|
newIndex: J,
|
|
3475
|
-
items:
|
|
3475
|
+
items: f,
|
|
3476
3476
|
isOver: W,
|
|
3477
3477
|
isSorting: S,
|
|
3478
3478
|
isDragging: j,
|
|
3479
|
-
listeners:
|
|
3479
|
+
listeners: y,
|
|
3480
3480
|
node: N,
|
|
3481
3481
|
overIndex: b,
|
|
3482
3482
|
over: C,
|
|
3483
3483
|
setNodeRef: g,
|
|
3484
|
-
setActivatorNodeRef:
|
|
3484
|
+
setActivatorNodeRef: I,
|
|
3485
3485
|
setDroppableNodeRef: Y,
|
|
3486
3486
|
setDraggableNodeRef: D,
|
|
3487
3487
|
transform: ye ?? F,
|
|
@@ -3491,12 +3491,12 @@ function Zr(e) {
|
|
|
3491
3491
|
if (
|
|
3492
3492
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3493
3493
|
ye || // Or to prevent items jumping to back to their "new" position when items change
|
|
3494
|
-
de && z.current.newIndex ===
|
|
3494
|
+
de && z.current.newIndex === _
|
|
3495
3495
|
)
|
|
3496
3496
|
return vi;
|
|
3497
|
-
if (!(P && !jn(Q) || !
|
|
3497
|
+
if (!(P && !jn(Q) || !u) && (S || ae))
|
|
3498
3498
|
return Ze.Transition.toString({
|
|
3499
|
-
...
|
|
3499
|
+
...u,
|
|
3500
3500
|
property: Jr
|
|
3501
3501
|
});
|
|
3502
3502
|
}
|
|
@@ -3512,7 +3512,7 @@ function xi(e, t) {
|
|
|
3512
3512
|
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
|
-
|
|
3515
|
+
V.Down, V.Right, V.Up, V.Left;
|
|
3516
3516
|
const yi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), wi = (e) => e.replace(
|
|
3517
3517
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3518
3518
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
@@ -3545,10 +3545,10 @@ const Ci = wn(
|
|
|
3545
3545
|
children: s,
|
|
3546
3546
|
iconNode: a,
|
|
3547
3547
|
...c
|
|
3548
|
-
},
|
|
3548
|
+
}, l) => hn(
|
|
3549
3549
|
"svg",
|
|
3550
3550
|
{
|
|
3551
|
-
ref:
|
|
3551
|
+
ref: l,
|
|
3552
3552
|
...Di,
|
|
3553
3553
|
width: t,
|
|
3554
3554
|
height: t,
|
|
@@ -3559,7 +3559,7 @@ const Ci = wn(
|
|
|
3559
3559
|
...c
|
|
3560
3560
|
},
|
|
3561
3561
|
[
|
|
3562
|
-
...a.map(([
|
|
3562
|
+
...a.map(([u, f]) => hn(u, f)),
|
|
3563
3563
|
...Array.isArray(s) ? s : [s]
|
|
3564
3564
|
]
|
|
3565
3565
|
)
|
|
@@ -3596,13 +3596,13 @@ const Ti = [
|
|
|
3596
3596
|
const Mi = [
|
|
3597
3597
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3598
3598
|
], $i = ue("bookmark", Mi);
|
|
3599
|
-
const
|
|
3599
|
+
const ki = [
|
|
3600
3600
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3601
3601
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3602
3602
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3603
3603
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3604
|
-
], hr = ue("calendar",
|
|
3605
|
-
const
|
|
3604
|
+
], hr = ue("calendar", ki);
|
|
3605
|
+
const Ii = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ai = ue("chevron-left", Ii);
|
|
3606
3606
|
const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ni = ue("chevron-right", Li);
|
|
3607
3607
|
const zi = [
|
|
3608
3608
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
@@ -3619,11 +3619,11 @@ const Yi = [
|
|
|
3619
3619
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3620
3620
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3621
3621
|
], Fi = ue("delete", Yi);
|
|
3622
|
-
const
|
|
3622
|
+
const Vi = [
|
|
3623
3623
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3624
3624
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3625
3625
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3626
|
-
],
|
|
3626
|
+
], Hi = ue("ellipsis", Vi);
|
|
3627
3627
|
const Wi = [
|
|
3628
3628
|
[
|
|
3629
3629
|
"path",
|
|
@@ -3677,7 +3677,7 @@ const Qi = [
|
|
|
3677
3677
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3678
3678
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3679
3679
|
], ea = ue("triangle-alert", Qi);
|
|
3680
|
-
function
|
|
3680
|
+
function x(e) {
|
|
3681
3681
|
return wn((t, n) => {
|
|
3682
3682
|
const { children: r, ...o } = t;
|
|
3683
3683
|
return (
|
|
@@ -3687,19 +3687,19 @@ function y(e) {
|
|
|
3687
3687
|
});
|
|
3688
3688
|
}
|
|
3689
3689
|
const to = (e) => `table_column_order_v1:${e}`, ta = (e) => {
|
|
3690
|
-
const { tableId: t } =
|
|
3691
|
-
localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))),
|
|
3690
|
+
const { tableId: t } = me.state;
|
|
3691
|
+
localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))), me.setState((n) => ({
|
|
3692
3692
|
...n,
|
|
3693
3693
|
columnOrder: e
|
|
3694
|
-
})),
|
|
3694
|
+
})), me.setState((n) => ({ ...n, columnOrder: e }));
|
|
3695
3695
|
}, na = (e) => {
|
|
3696
|
-
|
|
3696
|
+
me.setState((t) => ({
|
|
3697
3697
|
...t,
|
|
3698
3698
|
visibility: { ...t.visibility, [e]: !t.visibility[e] }
|
|
3699
3699
|
}));
|
|
3700
3700
|
};
|
|
3701
3701
|
function ra(e) {
|
|
3702
|
-
|
|
3702
|
+
me.setState((t) => t.sortColumn === e ? {
|
|
3703
3703
|
...t,
|
|
3704
3704
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
3705
3705
|
} : {
|
|
@@ -3708,54 +3708,66 @@ function ra(e) {
|
|
|
3708
3708
|
sortDirection: "asc"
|
|
3709
3709
|
});
|
|
3710
3710
|
}
|
|
3711
|
-
const
|
|
3711
|
+
const me = new _r({
|
|
3712
3712
|
tableId: "",
|
|
3713
3713
|
sortColumn: null,
|
|
3714
3714
|
sortDirection: "asc",
|
|
3715
3715
|
visibility: {},
|
|
3716
3716
|
columnOrder: [],
|
|
3717
3717
|
data: [],
|
|
3718
|
-
sortableColumns: []
|
|
3718
|
+
sortableColumns: [],
|
|
3719
3719
|
// ← FIXED
|
|
3720
|
+
actionsConfig: {
|
|
3721
|
+
showActionColumn: !0,
|
|
3722
|
+
showColumnVisibilityMenu: !0,
|
|
3723
|
+
children: "Actions",
|
|
3724
|
+
width: "100px"
|
|
3725
|
+
}
|
|
3720
3726
|
});
|
|
3721
3727
|
function oa(e, t) {
|
|
3722
|
-
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((
|
|
3723
|
-
(
|
|
3724
|
-
), { tableId: s } =
|
|
3728
|
+
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((l) => ({ id: l, label: l }))).filter(
|
|
3729
|
+
(l) => Object.prototype.hasOwnProperty.call(n, l.id)
|
|
3730
|
+
), { tableId: s } = me.state, a = JSON.parse(
|
|
3725
3731
|
localStorage.getItem(to(s)) || "[]"
|
|
3726
3732
|
), c = [
|
|
3727
|
-
...a.map((
|
|
3728
|
-
...o.filter((
|
|
3733
|
+
...a.map((l) => o.find((u) => u.id === l)).filter(Boolean),
|
|
3734
|
+
...o.filter((l) => !a.includes(l.id))
|
|
3729
3735
|
];
|
|
3730
|
-
|
|
3731
|
-
...
|
|
3736
|
+
me.setState((l) => ({
|
|
3737
|
+
...l,
|
|
3732
3738
|
data: e,
|
|
3733
3739
|
columnOrder: c,
|
|
3734
|
-
visibility: c.reduce((
|
|
3735
|
-
sortableColumns: c.map((
|
|
3736
|
-
id:
|
|
3737
|
-
label:
|
|
3738
|
-
sortable: !0
|
|
3740
|
+
visibility: c.reduce((u, f) => (u[f.id] = !0, u), {}),
|
|
3741
|
+
sortableColumns: c.map((u) => ({
|
|
3742
|
+
id: u.id,
|
|
3743
|
+
label: u.label,
|
|
3744
|
+
sortable: !0,
|
|
3745
|
+
backgroundColor: u.backgroundColor
|
|
3739
3746
|
}))
|
|
3740
3747
|
}));
|
|
3741
3748
|
}
|
|
3742
3749
|
function sa(e) {
|
|
3743
|
-
|
|
3750
|
+
me.setState((t) => ({
|
|
3744
3751
|
...t,
|
|
3745
3752
|
tableId: e
|
|
3746
3753
|
}));
|
|
3747
3754
|
}
|
|
3748
|
-
const ia =
|
|
3749
|
-
|
|
3750
|
-
|
|
3755
|
+
const ia = (e) => {
|
|
3756
|
+
me.setState((t) => ({
|
|
3757
|
+
...t,
|
|
3758
|
+
actionsConfig: e
|
|
3759
|
+
}));
|
|
3760
|
+
}, aa = x(Oe.Trigger), ca = x(Oe.Positioner), la = x(Oe.Content), ua = x(Oe.Item), da = x(De.Label), fa = x(De.HiddenInput), ha = x(De.Control);
|
|
3761
|
+
function ga({ visibility: e, onToggle: t }) {
|
|
3762
|
+
const { sortableColumns: n } = bt(me);
|
|
3751
3763
|
return /* @__PURE__ */ i.jsxs(Oe.Root, { closeOnSelect: !1, children: [
|
|
3752
|
-
/* @__PURE__ */ i.jsx(
|
|
3753
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3764
|
+
/* @__PURE__ */ i.jsx(aa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ i.jsx(Pi, { size: 18 }) }) }),
|
|
3765
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ca, { children: /* @__PURE__ */ i.jsx(la, { minW: "220px", children: n.map((r) => {
|
|
3754
3766
|
const o = !!e[r.id];
|
|
3755
|
-
return /* @__PURE__ */ i.jsx(
|
|
3756
|
-
/* @__PURE__ */ i.jsx(da, {}),
|
|
3767
|
+
return /* @__PURE__ */ i.jsx(ua, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3757
3768
|
/* @__PURE__ */ i.jsx(fa, {}),
|
|
3758
|
-
/* @__PURE__ */ i.jsx(
|
|
3769
|
+
/* @__PURE__ */ i.jsx(ha, {}),
|
|
3770
|
+
/* @__PURE__ */ i.jsx(da, { children: r.label })
|
|
3759
3771
|
] }) }, r.id);
|
|
3760
3772
|
}) }) }) })
|
|
3761
3773
|
] });
|
|
@@ -3769,7 +3781,7 @@ function pa({
|
|
|
3769
3781
|
borderRightColor: s,
|
|
3770
3782
|
backgroundColor: a
|
|
3771
3783
|
}) {
|
|
3772
|
-
const { setNodeRef: c, attributes:
|
|
3784
|
+
const { setNodeRef: c, attributes: l, listeners: u, transform: f, transition: d } = Zr({ id: e });
|
|
3773
3785
|
return /* @__PURE__ */ i.jsx(
|
|
3774
3786
|
Ee.ColumnHeader,
|
|
3775
3787
|
{
|
|
@@ -3778,42 +3790,43 @@ function pa({
|
|
|
3778
3790
|
backgroundColor: a,
|
|
3779
3791
|
w: e === "id" ? "80px" : void 0,
|
|
3780
3792
|
style: {
|
|
3781
|
-
transform: Ze.Transform.toString(
|
|
3793
|
+
transform: Ze.Transform.toString(f),
|
|
3782
3794
|
transition: d,
|
|
3783
3795
|
cursor: r,
|
|
3784
3796
|
borderRight: o,
|
|
3785
3797
|
borderRightColor: s
|
|
3786
3798
|
},
|
|
3787
|
-
...
|
|
3799
|
+
...l,
|
|
3788
3800
|
children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
3789
3801
|
t,
|
|
3790
|
-
/* @__PURE__ */ i.jsx("span", { ...
|
|
3802
|
+
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(eo, { size: 12 }) })
|
|
3791
3803
|
] })
|
|
3792
3804
|
}
|
|
3793
3805
|
);
|
|
3794
3806
|
}
|
|
3795
|
-
function
|
|
3796
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = bt(
|
|
3797
|
-
const { active: u, over:
|
|
3798
|
-
if (!
|
|
3799
|
-
const
|
|
3800
|
-
ta(
|
|
3807
|
+
function va() {
|
|
3808
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = bt(me), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
|
|
3809
|
+
const { active: u, over: f } = l;
|
|
3810
|
+
if (!f || u.id === f.id) return;
|
|
3811
|
+
const d = e.findIndex((v) => v.id === u.id), m = e.findIndex((v) => v.id === f.id), p = Kt(e, d, m);
|
|
3812
|
+
ta(p);
|
|
3801
3813
|
};
|
|
3802
|
-
return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd:
|
|
3814
|
+
return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd: c, children: /* @__PURE__ */ i.jsx(
|
|
3803
3815
|
Kr,
|
|
3804
3816
|
{
|
|
3805
|
-
items: e.map((
|
|
3817
|
+
items: e.map((l) => l.id),
|
|
3806
3818
|
strategy: li,
|
|
3807
3819
|
children: /* @__PURE__ */ i.jsxs(Ee.Row, { height: "28px", children: [
|
|
3808
|
-
|
|
3809
|
-
const u = n ===
|
|
3820
|
+
a.map((l) => {
|
|
3821
|
+
const u = n === l?.id;
|
|
3810
3822
|
return /* @__PURE__ */ i.jsx(
|
|
3811
3823
|
pa,
|
|
3812
3824
|
{
|
|
3813
|
-
id:
|
|
3814
|
-
onClick: () =>
|
|
3815
|
-
cursor:
|
|
3825
|
+
id: l?.id,
|
|
3826
|
+
onClick: () => l?.sortable && ra(l?.id),
|
|
3827
|
+
cursor: l?.sortable ? "pointer" : "default",
|
|
3816
3828
|
borderRight: "2px solid #dcdcdc",
|
|
3829
|
+
backgroundColor: l?.backgroundColor,
|
|
3817
3830
|
children: /* @__PURE__ */ i.jsxs(
|
|
3818
3831
|
"span",
|
|
3819
3832
|
{
|
|
@@ -3824,30 +3837,45 @@ function ga() {
|
|
|
3824
3837
|
userSelect: "none"
|
|
3825
3838
|
},
|
|
3826
3839
|
children: [
|
|
3827
|
-
|
|
3828
|
-
|
|
3840
|
+
l?.label,
|
|
3841
|
+
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ i.jsx(Oi, { size: 14 }) : /* @__PURE__ */ i.jsx(ji, { size: 14 }) : /* @__PURE__ */ i.jsx(_i, { size: 14, opacity: 0.4 }))
|
|
3829
3842
|
]
|
|
3830
3843
|
}
|
|
3831
3844
|
)
|
|
3832
3845
|
},
|
|
3833
|
-
|
|
3846
|
+
l?.id
|
|
3834
3847
|
);
|
|
3835
3848
|
}),
|
|
3836
|
-
/* @__PURE__ */ i.jsx(
|
|
3837
|
-
|
|
3849
|
+
s?.showActionColumn && /* @__PURE__ */ i.jsx(
|
|
3850
|
+
Ee.ColumnHeader,
|
|
3851
|
+
{
|
|
3852
|
+
width: s.width,
|
|
3853
|
+
backgroundColor: s.backgroundColor,
|
|
3854
|
+
borderRight: "2px solid #dcdcdc",
|
|
3855
|
+
children: s.children
|
|
3856
|
+
}
|
|
3857
|
+
),
|
|
3858
|
+
s?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(
|
|
3859
|
+
Ee.ColumnHeader,
|
|
3860
|
+
{
|
|
3861
|
+
boxSize: "0.5",
|
|
3862
|
+
backgroundColor: s.backgroundColorColumnVisibilityMenu,
|
|
3863
|
+
children: /* @__PURE__ */ i.jsx(ga, { visibility: t, onToggle: na })
|
|
3864
|
+
}
|
|
3865
|
+
)
|
|
3838
3866
|
] })
|
|
3839
3867
|
}
|
|
3840
3868
|
) }) });
|
|
3841
3869
|
}
|
|
3842
|
-
const
|
|
3870
|
+
const gr = Dr({
|
|
3843
3871
|
items: [
|
|
3844
3872
|
{ label: "10", value: "10" },
|
|
3845
3873
|
{ label: "20", value: "20" },
|
|
3846
3874
|
{ label: "50", value: "50" },
|
|
3847
3875
|
{ label: "100", value: "100" }
|
|
3848
3876
|
]
|
|
3849
|
-
}),
|
|
3850
|
-
function
|
|
3877
|
+
}), ma = x(K.Positioner), ba = x(K.Content), xa = x(K.Item), ya = x(Nt.PrevTrigger), wa = x(Nt.NextTrigger), Sa = x(K.HiddenSelect), Da = x(K.Control), Ca = x(K.Trigger), Ra = x(K.ValueText), ja = x(K.IndicatorGroup), Ea = x(K.Indicator);
|
|
3878
|
+
function _a({
|
|
3851
3879
|
totalCount: e,
|
|
3852
3880
|
pageSize: t,
|
|
3853
3881
|
currentPage: n,
|
|
@@ -3861,18 +3889,18 @@ function Ea({
|
|
|
3861
3889
|
/* @__PURE__ */ i.jsxs(
|
|
3862
3890
|
K.Root,
|
|
3863
3891
|
{
|
|
3864
|
-
collection:
|
|
3892
|
+
collection: gr,
|
|
3865
3893
|
size: "sm",
|
|
3866
3894
|
width: "60px",
|
|
3867
3895
|
onValueChange: (a) => o && o(Number(a.items[0].value)),
|
|
3868
3896
|
value: [String(t)],
|
|
3869
3897
|
children: [
|
|
3870
|
-
/* @__PURE__ */ i.jsx(
|
|
3871
|
-
/* @__PURE__ */ i.jsxs(
|
|
3872
|
-
/* @__PURE__ */ i.jsx(
|
|
3873
|
-
/* @__PURE__ */ i.jsx(
|
|
3898
|
+
/* @__PURE__ */ i.jsx(Sa, {}),
|
|
3899
|
+
/* @__PURE__ */ i.jsxs(Da, { children: [
|
|
3900
|
+
/* @__PURE__ */ i.jsx(Ca, { children: /* @__PURE__ */ i.jsx(Ra, { placeholder: "" }) }),
|
|
3901
|
+
/* @__PURE__ */ i.jsx(ja, { children: /* @__PURE__ */ i.jsx(Ea, {}) })
|
|
3874
3902
|
] }),
|
|
3875
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3903
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ma, { children: /* @__PURE__ */ i.jsx(ba, { children: gr.items.map((a) => /* @__PURE__ */ i.jsxs(xa, { item: a.value, children: [
|
|
3876
3904
|
a.label,
|
|
3877
3905
|
/* @__PURE__ */ i.jsx(K.ItemIndicator, {})
|
|
3878
3906
|
] }, a.value)) }) }) })
|
|
@@ -3889,7 +3917,7 @@ function Ea({
|
|
|
3889
3917
|
siblingCount: s,
|
|
3890
3918
|
onPageChange: (a) => r && r(a.page),
|
|
3891
3919
|
children: /* @__PURE__ */ i.jsxs(mo, { size: "sm", variant: "ghost", children: [
|
|
3892
|
-
/* @__PURE__ */ i.jsx(
|
|
3920
|
+
/* @__PURE__ */ i.jsx(ya, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Ai, { size: 18 }) }) }),
|
|
3893
3921
|
/* @__PURE__ */ i.jsx(
|
|
3894
3922
|
Nt.Items,
|
|
3895
3923
|
{
|
|
@@ -3904,24 +3932,24 @@ function Ea({
|
|
|
3904
3932
|
)
|
|
3905
3933
|
}
|
|
3906
3934
|
),
|
|
3907
|
-
/* @__PURE__ */ i.jsx(
|
|
3935
|
+
/* @__PURE__ */ i.jsx(wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(Ni, { size: 18 }) }) })
|
|
3908
3936
|
] })
|
|
3909
3937
|
}
|
|
3910
3938
|
)
|
|
3911
3939
|
] }) });
|
|
3912
3940
|
}
|
|
3913
|
-
const
|
|
3914
|
-
function
|
|
3941
|
+
const Ta = x(Oe.Item), Oa = x(Oe.Content), Ma = x(Oe.Positioner), $a = x(Oe.Trigger);
|
|
3942
|
+
function ka({
|
|
3915
3943
|
data: e = [],
|
|
3916
3944
|
actions: t = []
|
|
3917
3945
|
}) {
|
|
3918
|
-
const { columnOrder: n, visibility: r } = bt(
|
|
3946
|
+
const { columnOrder: n, visibility: r } = bt(me);
|
|
3919
3947
|
return /* @__PURE__ */ i.jsx(Ee.Body, { children: e.map((o) => /* @__PURE__ */ i.jsxs(Ee.Row, { children: [
|
|
3920
3948
|
n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ i.jsx(Ee.Cell, { children: o[s.id] }, s.id)),
|
|
3921
3949
|
/* @__PURE__ */ i.jsx(Ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Oe.Root, { children: [
|
|
3922
|
-
/* @__PURE__ */ i.jsx(
|
|
3923
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
3924
|
-
|
|
3950
|
+
/* @__PURE__ */ i.jsx($a, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Hi, { size: 16 }) }) }),
|
|
3951
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ma, { children: /* @__PURE__ */ i.jsx(Oa, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
|
|
3952
|
+
Ta,
|
|
3925
3953
|
{
|
|
3926
3954
|
onClick: () => s.onClick(o),
|
|
3927
3955
|
colorScheme: s.colorScheme,
|
|
@@ -3936,7 +3964,7 @@ function $a({
|
|
|
3936
3964
|
] }) })
|
|
3937
3965
|
] }, o.id)) });
|
|
3938
3966
|
}
|
|
3939
|
-
function
|
|
3967
|
+
function fl({
|
|
3940
3968
|
tableId: e,
|
|
3941
3969
|
data: t = [],
|
|
3942
3970
|
headers: n = [],
|
|
@@ -3945,49 +3973,52 @@ function dl({
|
|
|
3945
3973
|
actions: s,
|
|
3946
3974
|
page: a = 1,
|
|
3947
3975
|
pageSize: c = 10,
|
|
3948
|
-
onPageChange:
|
|
3949
|
-
onPageSizeChange:
|
|
3950
|
-
density:
|
|
3976
|
+
onPageChange: l,
|
|
3977
|
+
onPageSizeChange: u,
|
|
3978
|
+
density: f = "sm",
|
|
3951
3979
|
totalCount: d = 0,
|
|
3952
|
-
paginationMode: m = "client"
|
|
3980
|
+
paginationMode: m = "client",
|
|
3981
|
+
actionConfig: p
|
|
3953
3982
|
}) {
|
|
3954
|
-
|
|
3983
|
+
H(() => {
|
|
3955
3984
|
sa(e);
|
|
3956
|
-
}, [e]),
|
|
3985
|
+
}, [e]), H(() => {
|
|
3957
3986
|
oa(t, n);
|
|
3958
|
-
}, [t, n])
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3987
|
+
}, [t, n]), H(() => {
|
|
3988
|
+
p && ia(p);
|
|
3989
|
+
}, [p]);
|
|
3990
|
+
const { sortColumn: v, sortDirection: h, data: b } = bt(me), w = B(() => {
|
|
3991
|
+
const R = [...b], E = Math.max(1, a || 1);
|
|
3992
|
+
if (v && R.sort(
|
|
3993
|
+
(_, O) => h === "asc" ? String(_[v]).localeCompare(String(O[v])) : String(O[v]).localeCompare(String(_[v]))
|
|
3963
3994
|
), m === "client") {
|
|
3964
|
-
const
|
|
3965
|
-
return
|
|
3995
|
+
const _ = (E - 1) * c;
|
|
3996
|
+
return R.slice(_, _ + c);
|
|
3966
3997
|
}
|
|
3967
|
-
return
|
|
3968
|
-
}, [
|
|
3969
|
-
return
|
|
3970
|
-
a < 1 &&
|
|
3971
|
-
}, [a,
|
|
3972
|
-
/* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) :
|
|
3973
|
-
/* @__PURE__ */ i.jsx(
|
|
3974
|
-
/* @__PURE__ */ i.jsx(
|
|
3998
|
+
return R;
|
|
3999
|
+
}, [b, v, h, a, c, m]);
|
|
4000
|
+
return H(() => {
|
|
4001
|
+
a < 1 && l && l(1);
|
|
4002
|
+
}, [a, l]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
4003
|
+
/* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : w.length === 0 ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ i.jsxs(Ee.Root, { variant: "outline", w: "100%", size: f, children: [
|
|
4004
|
+
/* @__PURE__ */ i.jsx(va, {}),
|
|
4005
|
+
/* @__PURE__ */ i.jsx(ka, { data: w, actions: s })
|
|
3975
4006
|
] }) }),
|
|
3976
4007
|
/* @__PURE__ */ i.jsx(je, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
|
|
3977
|
-
|
|
4008
|
+
_a,
|
|
3978
4009
|
{
|
|
3979
4010
|
totalCount: d,
|
|
3980
4011
|
pageSize: c,
|
|
3981
4012
|
currentPage: a,
|
|
3982
|
-
onPageChange:
|
|
3983
|
-
onPageSizeChange: (
|
|
3984
|
-
|
|
4013
|
+
onPageChange: l,
|
|
4014
|
+
onPageSizeChange: (R) => {
|
|
4015
|
+
u && u(R), a > 1 && l && l(1);
|
|
3985
4016
|
}
|
|
3986
4017
|
}
|
|
3987
4018
|
) })
|
|
3988
4019
|
] });
|
|
3989
4020
|
}
|
|
3990
|
-
const Ia =
|
|
4021
|
+
const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Label), za = ({
|
|
3991
4022
|
value: e,
|
|
3992
4023
|
onChange: t,
|
|
3993
4024
|
size: n = "sm",
|
|
@@ -3997,9 +4028,9 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
3997
4028
|
required: a,
|
|
3998
4029
|
errorText: c
|
|
3999
4030
|
}) => /* @__PURE__ */ i.jsxs(Ia, { value: e, onChange: t, size: n, children: [
|
|
4000
|
-
/* @__PURE__ */ i.jsx(
|
|
4031
|
+
/* @__PURE__ */ i.jsx(Aa, {}),
|
|
4001
4032
|
/* @__PURE__ */ i.jsx(
|
|
4002
|
-
|
|
4033
|
+
La,
|
|
4003
4034
|
{
|
|
4004
4035
|
disabled: s,
|
|
4005
4036
|
required: a,
|
|
@@ -4007,8 +4038,8 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4007
4038
|
helperText: o
|
|
4008
4039
|
}
|
|
4009
4040
|
),
|
|
4010
|
-
r && /* @__PURE__ */ i.jsx(
|
|
4011
|
-
] }), ee = " to ",
|
|
4041
|
+
r && /* @__PURE__ */ i.jsx(Na, { children: r })
|
|
4042
|
+
] }), ee = " to ", pr = 10, Ve = {
|
|
4012
4043
|
DAY_MAX: 31,
|
|
4013
4044
|
MONTH_MAX: 12,
|
|
4014
4045
|
YEAR_MIN: 1900,
|
|
@@ -4023,14 +4054,14 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4023
4054
|
}, vr = () => {
|
|
4024
4055
|
const { year: e, month: t, day: n } = Mn();
|
|
4025
4056
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4026
|
-
},
|
|
4057
|
+
}, Pa = () => {
|
|
4027
4058
|
const { year: e, month: t, day: n } = Mn();
|
|
4028
4059
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4029
|
-
},
|
|
4060
|
+
}, Ya = (e, t) => {
|
|
4030
4061
|
const n = e.length, r = parseInt(e);
|
|
4031
4062
|
if (!e || isNaN(r)) return t;
|
|
4032
4063
|
if (n === 4)
|
|
4033
|
-
return r >=
|
|
4064
|
+
return r >= Ve.YEAR_MIN && r <= Ve.YEAR_MAX ? r : t;
|
|
4034
4065
|
if (n > 0 && n < 4) {
|
|
4035
4066
|
const o = t.toString(), s = 4 - n, a = o.substring(0, s);
|
|
4036
4067
|
return parseInt(a + e);
|
|
@@ -4038,66 +4069,66 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
|
|
|
4038
4069
|
return t;
|
|
4039
4070
|
}, lt = (e) => {
|
|
4040
4071
|
if (!e?.trim()) return null;
|
|
4041
|
-
const n = e.replace(/[^\d-]/g, "").split("-").filter((
|
|
4072
|
+
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4042
4073
|
if (n.length === 0) return null;
|
|
4043
4074
|
const { year: r, month: o, day: s } = Mn();
|
|
4044
|
-
let a, c,
|
|
4045
|
-
return n.length === 1 ? (a = parseInt(n[0]) || s, c = o,
|
|
4075
|
+
let a, c, l;
|
|
4076
|
+
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 = Ya(n[2], r)), c = Math.max(1, Math.min(Ve.MONTH_MAX, c)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
4046
4077
|
}, we = (e) => {
|
|
4047
4078
|
if (!e) return "";
|
|
4048
4079
|
const [t, n, r] = e.split("-");
|
|
4049
4080
|
return `${r}-${n}-${t}`;
|
|
4050
|
-
},
|
|
4081
|
+
}, Fa = (e, t) => {
|
|
4051
4082
|
if (e[0]?.length > 0) {
|
|
4052
4083
|
const n = parseInt(e[0]);
|
|
4053
|
-
if (isNaN(n) || n === 0 || e[0].length === 2 && n >
|
|
4084
|
+
if (isNaN(n) || n === 0 || e[0].length === 2 && n > Ve.DAY_MAX)
|
|
4054
4085
|
return t;
|
|
4055
4086
|
}
|
|
4056
4087
|
if (e[1]?.length > 0) {
|
|
4057
4088
|
const n = parseInt(e[1]);
|
|
4058
|
-
if (isNaN(n) || n === 0 || e[1].length === 2 && n >
|
|
4089
|
+
if (isNaN(n) || n === 0 || e[1].length === 2 && n > Ve.MONTH_MAX)
|
|
4059
4090
|
return t;
|
|
4060
4091
|
}
|
|
4061
4092
|
if (e[2]?.length > 0) {
|
|
4062
4093
|
const n = parseInt(e[2]), r = e[2].length === 4;
|
|
4063
|
-
if (isNaN(n) || n === 0 || r && (n <
|
|
4094
|
+
if (isNaN(n) || n === 0 || r && (n < Ve.YEAR_MIN || n > Ve.YEAR_MAX))
|
|
4064
4095
|
return t;
|
|
4065
4096
|
}
|
|
4066
4097
|
return null;
|
|
4067
4098
|
}, ut = (e) => {
|
|
4068
|
-
let t = e.replace(/[^\d-]/g, "").substring(0,
|
|
4099
|
+
let t = e.replace(/[^\d-]/g, "").substring(0, pr);
|
|
4069
4100
|
if (t.length >= 3 && t[2] !== "-" && (t = t.substring(0, 2) + "-" + t.substring(2).replace(/-/g, "")), t.length >= 6 && t[5] !== "-") {
|
|
4070
4101
|
const o = t.split("-");
|
|
4071
4102
|
o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
|
|
4072
4103
|
}
|
|
4073
4104
|
const n = t.split("-");
|
|
4074
|
-
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0,
|
|
4075
|
-
},
|
|
4076
|
-
function
|
|
4105
|
+
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, pr), Fa(n, e) || t;
|
|
4106
|
+
}, Va = x(Wt.Root), Ha = x(Wt.Trigger), Wa = x(Wt.Content), Ba = x(Wt.Positioner);
|
|
4107
|
+
function Ua({
|
|
4077
4108
|
value: e,
|
|
4078
4109
|
onChange: t,
|
|
4079
4110
|
disabled: n = !1
|
|
4080
4111
|
}) {
|
|
4081
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c,
|
|
4082
|
-
|
|
4083
|
-
const v = (
|
|
4084
|
-
|
|
4112
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, l] = oe(!1), u = U(null);
|
|
4113
|
+
H(() => {
|
|
4114
|
+
const v = (h) => {
|
|
4115
|
+
h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
|
|
4085
4116
|
};
|
|
4086
4117
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
4087
4118
|
}, []);
|
|
4088
|
-
const
|
|
4089
|
-
let
|
|
4090
|
-
if (
|
|
4091
|
-
const [b,
|
|
4092
|
-
|
|
4093
|
-
|
|
4119
|
+
const f = (v) => {
|
|
4120
|
+
let h = v;
|
|
4121
|
+
if (h.includes(ee)) {
|
|
4122
|
+
const [b, w = ""] = h.split(ee);
|
|
4123
|
+
h = `${ut(b.trim())}${ee}${ut(
|
|
4124
|
+
w.trim()
|
|
4094
4125
|
)}`;
|
|
4095
|
-
} else if (
|
|
4096
|
-
const [b,
|
|
4097
|
-
|
|
4126
|
+
} else if (h.toLowerCase().includes(" to ")) {
|
|
4127
|
+
const [b, w = ""] = h.split(/\s+to\s+/i);
|
|
4128
|
+
h = `${ut(b.trim())} to ${ut(w.trim())}`;
|
|
4098
4129
|
} else
|
|
4099
|
-
|
|
4100
|
-
a(
|
|
4130
|
+
h = ut(h);
|
|
4131
|
+
a(h);
|
|
4101
4132
|
}, d = () => {
|
|
4102
4133
|
const v = s.trim();
|
|
4103
4134
|
if (!v) {
|
|
@@ -4105,49 +4136,49 @@ function Ba({
|
|
|
4105
4136
|
return;
|
|
4106
4137
|
}
|
|
4107
4138
|
if (v.includes(ee)) {
|
|
4108
|
-
const [
|
|
4109
|
-
if (
|
|
4110
|
-
const [
|
|
4111
|
-
|
|
4139
|
+
const [h, b = ""] = v.split(ee).map((E) => E.trim()), w = lt(h), R = b ? lt(b) : null;
|
|
4140
|
+
if (w && R) {
|
|
4141
|
+
const [E, _] = R < w ? [R, w] : [w, R], O = `${we(E)}${ee}${we(
|
|
4142
|
+
_
|
|
4112
4143
|
)}`;
|
|
4113
|
-
a(O), t(`${
|
|
4114
|
-
} else if (
|
|
4115
|
-
a(`${we(
|
|
4116
|
-
else if (
|
|
4117
|
-
const
|
|
4144
|
+
a(O), t(`${E}|${_}`);
|
|
4145
|
+
} else if (w && !b)
|
|
4146
|
+
a(`${we(w)}${ee}`), t(void 0);
|
|
4147
|
+
else if (w && b) {
|
|
4148
|
+
const E = Pa(), [_, O] = E < w ? [E, w] : [w, E], T = `${we(_)}${ee}${we(
|
|
4118
4149
|
O
|
|
4119
4150
|
)}`;
|
|
4120
|
-
a(
|
|
4151
|
+
a(T), t(`${_}|${O}`);
|
|
4121
4152
|
} else
|
|
4122
4153
|
a(""), t(void 0);
|
|
4123
4154
|
} else {
|
|
4124
|
-
const
|
|
4125
|
-
|
|
4155
|
+
const h = lt(v);
|
|
4156
|
+
h ? (a(`${we(h)}${ee}`), t(void 0)) : (a(""), t(void 0));
|
|
4126
4157
|
}
|
|
4127
4158
|
}, m = (v) => {
|
|
4128
4159
|
if (v.key !== "Enter") return;
|
|
4129
4160
|
v.preventDefault();
|
|
4130
|
-
const
|
|
4161
|
+
const h = u.current?.selectionStart || 0, b = s.indexOf(ee);
|
|
4131
4162
|
if (!s.trim()) {
|
|
4132
4163
|
a(`${vr()}${ee}`);
|
|
4133
4164
|
return;
|
|
4134
4165
|
}
|
|
4135
4166
|
if (b === -1) {
|
|
4136
|
-
const
|
|
4137
|
-
|
|
4167
|
+
const R = lt(s.trim());
|
|
4168
|
+
R && a(`${we(R)}${ee}`);
|
|
4138
4169
|
return;
|
|
4139
4170
|
}
|
|
4140
|
-
if (
|
|
4141
|
-
const
|
|
4142
|
-
|
|
4171
|
+
if (h <= b + ee.length) {
|
|
4172
|
+
const R = s.substring(0, b).trim(), E = s.substring(b + ee.length), _ = lt(R);
|
|
4173
|
+
_ && a(`${we(_)}${ee}${E}`);
|
|
4143
4174
|
return;
|
|
4144
4175
|
}
|
|
4145
4176
|
if (s.substring(b + ee.length).trim())
|
|
4146
|
-
d(),
|
|
4177
|
+
d(), u.current?.blur();
|
|
4147
4178
|
else {
|
|
4148
|
-
const
|
|
4149
|
-
a(
|
|
4150
|
-
d(),
|
|
4179
|
+
const R = s.substring(0, b + ee.length) + vr();
|
|
4180
|
+
a(R), setTimeout(() => {
|
|
4181
|
+
d(), u.current?.blur();
|
|
4151
4182
|
}, 0);
|
|
4152
4183
|
}
|
|
4153
4184
|
}, p = () => {
|
|
@@ -4155,11 +4186,11 @@ function Ba({
|
|
|
4155
4186
|
};
|
|
4156
4187
|
return /* @__PURE__ */ i.jsx(Cr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Fn, { position: "revert", children: [
|
|
4157
4188
|
/* @__PURE__ */ i.jsxs(
|
|
4158
|
-
|
|
4189
|
+
Va,
|
|
4159
4190
|
{
|
|
4160
4191
|
open: c,
|
|
4161
4192
|
onEscapeKeyDown: () => {
|
|
4162
|
-
|
|
4193
|
+
l(!1);
|
|
4163
4194
|
},
|
|
4164
4195
|
children: [
|
|
4165
4196
|
/* @__PURE__ */ i.jsx(Ha, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
@@ -4168,18 +4199,18 @@ function Ba({
|
|
|
4168
4199
|
size: "sm",
|
|
4169
4200
|
variant: "ghost",
|
|
4170
4201
|
"aria-label": "Date range help",
|
|
4171
|
-
onClick: () =>
|
|
4202
|
+
onClick: () => l((v) => !v),
|
|
4172
4203
|
children: /* @__PURE__ */ i.jsx(hr, { size: 16 })
|
|
4173
4204
|
}
|
|
4174
4205
|
) }),
|
|
4175
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(
|
|
4206
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ba, { children: /* @__PURE__ */ i.jsxs(Wa, { p: 4, children: [
|
|
4176
4207
|
/* @__PURE__ */ i.jsx(bo, {}),
|
|
4177
|
-
/* @__PURE__ */ i.jsxs(
|
|
4208
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 4, children: [
|
|
4178
4209
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4179
4210
|
/* @__PURE__ */ i.jsx(hr, { size: 16 }),
|
|
4180
4211
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4181
4212
|
] }),
|
|
4182
|
-
/* @__PURE__ */ i.jsxs(
|
|
4213
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4183
4214
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4184
4215
|
/* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
|
|
4185
4216
|
"DD-MM-YYYY",
|
|
@@ -4187,19 +4218,19 @@ function Ba({
|
|
|
4187
4218
|
"DD-MM-YYYY"
|
|
4188
4219
|
] })
|
|
4189
4220
|
] }),
|
|
4190
|
-
/* @__PURE__ */ i.jsxs(
|
|
4221
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4191
4222
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
|
|
4192
4223
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
|
|
4193
4224
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
|
|
4194
4225
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
|
|
4195
4226
|
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
|
|
4196
4227
|
] }),
|
|
4197
|
-
/* @__PURE__ */ i.jsxs(
|
|
4228
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4198
4229
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4199
4230
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4200
|
-
/* @__PURE__ */ i.jsx(
|
|
4231
|
+
/* @__PURE__ */ i.jsx(Vn, { children: "Ctrl" }),
|
|
4201
4232
|
/* @__PURE__ */ i.jsx(q, { children: "+" }),
|
|
4202
|
-
/* @__PURE__ */ i.jsx(
|
|
4233
|
+
/* @__PURE__ */ i.jsx(Vn, { children: "D" })
|
|
4203
4234
|
] })
|
|
4204
4235
|
] })
|
|
4205
4236
|
] })
|
|
@@ -4210,12 +4241,12 @@ function Ba({
|
|
|
4210
4241
|
/* @__PURE__ */ i.jsx(
|
|
4211
4242
|
Sn,
|
|
4212
4243
|
{
|
|
4213
|
-
ref:
|
|
4244
|
+
ref: u,
|
|
4214
4245
|
placeholder: "15-06-2025 to 20-06-2025",
|
|
4215
4246
|
value: s,
|
|
4216
4247
|
size: "sm",
|
|
4217
4248
|
disabled: n,
|
|
4218
|
-
onChange: (v) =>
|
|
4249
|
+
onChange: (v) => f(v.target.value),
|
|
4219
4250
|
onBlur: d,
|
|
4220
4251
|
onKeyDown: m,
|
|
4221
4252
|
pr: s ? "10" : void 0,
|
|
@@ -4234,7 +4265,7 @@ function Ba({
|
|
|
4234
4265
|
) })
|
|
4235
4266
|
] }) }) });
|
|
4236
4267
|
}
|
|
4237
|
-
const
|
|
4268
|
+
const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorText), mr = ({
|
|
4238
4269
|
icon: e,
|
|
4239
4270
|
value: t,
|
|
4240
4271
|
onChange: n,
|
|
@@ -4243,13 +4274,13 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4243
4274
|
variant: s = "outline",
|
|
4244
4275
|
width: a = "100%",
|
|
4245
4276
|
label: c,
|
|
4246
|
-
helperText:
|
|
4247
|
-
isDisabled:
|
|
4248
|
-
required:
|
|
4277
|
+
helperText: l,
|
|
4278
|
+
isDisabled: u = !1,
|
|
4279
|
+
required: f = !1,
|
|
4249
4280
|
errorText: d,
|
|
4250
4281
|
visible: m
|
|
4251
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
4252
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4282
|
+
}) => /* @__PURE__ */ i.jsxs(Ga, { width: a, children: [
|
|
4283
|
+
m && /* @__PURE__ */ i.jsx(Xa, { children: c }),
|
|
4253
4284
|
/* @__PURE__ */ i.jsx(Cr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4254
4285
|
Sn,
|
|
4255
4286
|
{
|
|
@@ -4258,13 +4289,13 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4258
4289
|
placeholder: r,
|
|
4259
4290
|
size: o,
|
|
4260
4291
|
variant: s,
|
|
4261
|
-
disabled:
|
|
4262
|
-
required:
|
|
4292
|
+
disabled: u,
|
|
4293
|
+
required: f
|
|
4263
4294
|
}
|
|
4264
4295
|
) }),
|
|
4265
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4266
|
-
|
|
4267
|
-
] }),
|
|
4296
|
+
d && /* @__PURE__ */ i.jsx(Ka, { fontSize: "xs", children: d }),
|
|
4297
|
+
l && /* @__PURE__ */ i.jsx(qa, { fontSize: "xs", children: l })
|
|
4298
|
+
] }), Ja = x(We.Root), Za = x(We.HelperText), Qa = x(We.ErrorText), ec = x(K.Root), tc = x(K.Label), nc = x(K.Control), rc = x(K.Trigger), oc = x(K.ValueText), sc = x(K.IndicatorGroup), ic = x(K.Indicator), ac = x(K.Content), cc = x(K.Item), lc = x(K.ItemIndicator), uc = x(K.HiddenSelect), dc = x(K.Positioner), fc = ({
|
|
4268
4299
|
options: e = [],
|
|
4269
4300
|
label: t,
|
|
4270
4301
|
value: n,
|
|
@@ -4273,18 +4304,18 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4273
4304
|
size: s = "xs",
|
|
4274
4305
|
width: a = "100%",
|
|
4275
4306
|
variant: c = "outline",
|
|
4276
|
-
helperText:
|
|
4277
|
-
isDisabled:
|
|
4278
|
-
required:
|
|
4307
|
+
helperText: l,
|
|
4308
|
+
isDisabled: u,
|
|
4309
|
+
required: f,
|
|
4279
4310
|
errorText: d,
|
|
4280
4311
|
visible: m
|
|
4281
4312
|
}) => {
|
|
4282
4313
|
const p = Dr({
|
|
4283
4314
|
items: e
|
|
4284
4315
|
});
|
|
4285
|
-
return /* @__PURE__ */ i.jsxs(
|
|
4316
|
+
return /* @__PURE__ */ i.jsxs(Ja, { disabled: u, required: f, children: [
|
|
4286
4317
|
/* @__PURE__ */ i.jsxs(
|
|
4287
|
-
|
|
4318
|
+
ec,
|
|
4288
4319
|
{
|
|
4289
4320
|
collection: p,
|
|
4290
4321
|
variant: c,
|
|
@@ -4293,61 +4324,61 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
|
|
|
4293
4324
|
value: n ? [n] : [],
|
|
4294
4325
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4295
4326
|
children: [
|
|
4296
|
-
/* @__PURE__ */ i.jsx(
|
|
4297
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4298
|
-
/* @__PURE__ */ i.jsxs(
|
|
4299
|
-
/* @__PURE__ */ i.jsx(
|
|
4300
|
-
/* @__PURE__ */ i.jsx(
|
|
4327
|
+
/* @__PURE__ */ i.jsx(uc, {}),
|
|
4328
|
+
m && /* @__PURE__ */ i.jsx(tc, { children: t }),
|
|
4329
|
+
/* @__PURE__ */ i.jsxs(nc, { children: [
|
|
4330
|
+
/* @__PURE__ */ i.jsx(rc, { children: /* @__PURE__ */ i.jsx(oc, { placeholder: o }) }),
|
|
4331
|
+
/* @__PURE__ */ i.jsx(sc, { children: /* @__PURE__ */ i.jsx(ic, {}) })
|
|
4301
4332
|
] }),
|
|
4302
|
-
/* @__PURE__ */ i.jsx(
|
|
4333
|
+
/* @__PURE__ */ i.jsx(dc, { children: /* @__PURE__ */ i.jsx(ac, { children: p.items.map((v) => /* @__PURE__ */ i.jsxs(cc, { item: v, children: [
|
|
4303
4334
|
v.label,
|
|
4304
|
-
/* @__PURE__ */ i.jsx(
|
|
4335
|
+
/* @__PURE__ */ i.jsx(lc, {})
|
|
4305
4336
|
] }, v.value)) }) })
|
|
4306
4337
|
]
|
|
4307
4338
|
}
|
|
4308
4339
|
),
|
|
4309
|
-
|
|
4310
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4340
|
+
l && /* @__PURE__ */ i.jsx(Za, { children: l }),
|
|
4341
|
+
d && /* @__PURE__ */ i.jsx(Qa, { children: d })
|
|
4311
4342
|
] });
|
|
4312
4343
|
}, no = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4313
|
-
function
|
|
4344
|
+
function hc(e) {
|
|
4314
4345
|
try {
|
|
4315
4346
|
return JSON.parse(localStorage.getItem(no(e)) || "[]");
|
|
4316
4347
|
} catch {
|
|
4317
4348
|
return [];
|
|
4318
4349
|
}
|
|
4319
4350
|
}
|
|
4320
|
-
const
|
|
4321
|
-
const t =
|
|
4351
|
+
const Ht = new _r({}), $n = (e) => {
|
|
4352
|
+
const t = Ht.state[e];
|
|
4322
4353
|
if (t) return t;
|
|
4323
|
-
const n =
|
|
4324
|
-
return
|
|
4354
|
+
const n = hc(e);
|
|
4355
|
+
return Ht.setState((r) => ({
|
|
4325
4356
|
...r,
|
|
4326
4357
|
[e]: n
|
|
4327
4358
|
})), n;
|
|
4328
4359
|
}, ro = (e, t) => {
|
|
4329
|
-
|
|
4360
|
+
Ht.setState((n) => ({
|
|
4330
4361
|
...n,
|
|
4331
4362
|
[e]: t
|
|
4332
4363
|
})), localStorage.setItem(no(e), JSON.stringify(t));
|
|
4333
|
-
},
|
|
4364
|
+
}, gc = (e, t) => {
|
|
4334
4365
|
const n = $n(e).filter((r) => r.id !== t);
|
|
4335
4366
|
ro(e, n);
|
|
4336
4367
|
}, pc = (e, t) => {
|
|
4337
4368
|
const n = [t, ...$n(e)];
|
|
4338
4369
|
ro(e, n);
|
|
4339
|
-
},
|
|
4370
|
+
}, vc = x(De.Root), mc = x(De.HiddenInput), bc = x(De.Control), xc = x(mt.Root), yc = x(mt.Track), wc = x(mt.Range), Sc = x(mt.Thumbs), Dc = x(mt.Control), Cc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4340
4371
|
const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = Zr({
|
|
4341
4372
|
id: e.id
|
|
4342
|
-
}),
|
|
4373
|
+
}), l = {
|
|
4343
4374
|
transform: Ze.Transform.toString(a),
|
|
4344
4375
|
transition: c
|
|
4345
4376
|
};
|
|
4346
4377
|
return /* @__PURE__ */ i.jsxs(
|
|
4347
|
-
|
|
4378
|
+
Ie,
|
|
4348
4379
|
{
|
|
4349
4380
|
ref: s,
|
|
4350
|
-
style:
|
|
4381
|
+
style: l,
|
|
4351
4382
|
align: "stretch",
|
|
4352
4383
|
border: "1px solid",
|
|
4353
4384
|
borderColor: "gray.200",
|
|
@@ -4363,31 +4394,31 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4363
4394
|
/* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
4364
4395
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4365
4396
|
/* @__PURE__ */ i.jsxs(
|
|
4366
|
-
|
|
4397
|
+
vc,
|
|
4367
4398
|
{
|
|
4368
4399
|
checked: e.visible,
|
|
4369
4400
|
size: "sm",
|
|
4370
|
-
onCheckedChange: (
|
|
4401
|
+
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4371
4402
|
children: [
|
|
4372
|
-
/* @__PURE__ */ i.jsx(
|
|
4373
|
-
/* @__PURE__ */ i.jsx(
|
|
4403
|
+
/* @__PURE__ */ i.jsx(mc, {}),
|
|
4404
|
+
/* @__PURE__ */ i.jsx(bc, {})
|
|
4374
4405
|
]
|
|
4375
4406
|
}
|
|
4376
4407
|
)
|
|
4377
4408
|
] }),
|
|
4378
|
-
/* @__PURE__ */ i.jsxs(
|
|
4409
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "stretch", gap: 1, children: [
|
|
4379
4410
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4380
4411
|
/* @__PURE__ */ i.jsx(
|
|
4381
|
-
|
|
4412
|
+
xc,
|
|
4382
4413
|
{
|
|
4383
4414
|
min: 1,
|
|
4384
4415
|
max: 5,
|
|
4385
4416
|
step: 0.5,
|
|
4386
4417
|
value: [e.size ?? 1],
|
|
4387
|
-
onValueChange: (
|
|
4388
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
4389
|
-
/* @__PURE__ */ i.jsx(
|
|
4390
|
-
/* @__PURE__ */ i.jsx(
|
|
4418
|
+
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4419
|
+
children: /* @__PURE__ */ i.jsxs(Dc, { children: [
|
|
4420
|
+
/* @__PURE__ */ i.jsx(yc, { children: /* @__PURE__ */ i.jsx(wc, {}) }),
|
|
4421
|
+
/* @__PURE__ */ i.jsx(Sc, {})
|
|
4391
4422
|
] })
|
|
4392
4423
|
}
|
|
4393
4424
|
)
|
|
@@ -4395,7 +4426,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4395
4426
|
]
|
|
4396
4427
|
}
|
|
4397
4428
|
);
|
|
4398
|
-
},
|
|
4429
|
+
}, Rc = x(Me.Root), jc = x(Me.Trigger), Ec = x(Me.Backdrop), _c = x(Me.Positioner), Tc = x(Me.Content), Oc = x(Me.Header), Mc = x(Me.Title), $c = x(Me.Body), kc = x(Me.Footer), Ic = x(Me.CloseTrigger), Ac = x(Bt.Root), Lc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), oo = (e, t) => {
|
|
4399
4430
|
if (e.customComponent)
|
|
4400
4431
|
return e.customComponent;
|
|
4401
4432
|
switch (e.type) {
|
|
@@ -4414,7 +4445,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4414
4445
|
return /* @__PURE__ */ i.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4415
4446
|
case "checkbox":
|
|
4416
4447
|
return /* @__PURE__ */ i.jsx(
|
|
4417
|
-
|
|
4448
|
+
za,
|
|
4418
4449
|
{
|
|
4419
4450
|
label: e.label,
|
|
4420
4451
|
value: e.value,
|
|
@@ -4423,7 +4454,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4423
4454
|
);
|
|
4424
4455
|
case "select":
|
|
4425
4456
|
return /* @__PURE__ */ i.jsx(
|
|
4426
|
-
|
|
4457
|
+
fc,
|
|
4427
4458
|
{
|
|
4428
4459
|
label: e.label,
|
|
4429
4460
|
value: e.value,
|
|
@@ -4434,7 +4465,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4434
4465
|
);
|
|
4435
4466
|
case "date":
|
|
4436
4467
|
return /* @__PURE__ */ i.jsx(
|
|
4437
|
-
|
|
4468
|
+
Ua,
|
|
4438
4469
|
{
|
|
4439
4470
|
value: e.value,
|
|
4440
4471
|
onChange: e.onChange
|
|
@@ -4443,7 +4474,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4443
4474
|
default:
|
|
4444
4475
|
return null;
|
|
4445
4476
|
}
|
|
4446
|
-
},
|
|
4477
|
+
}, Nc = ({
|
|
4447
4478
|
filterDrawerSize: e = "sm",
|
|
4448
4479
|
onVisibilityChange: t,
|
|
4449
4480
|
onSizeChange: n,
|
|
@@ -4452,31 +4483,31 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4452
4483
|
pageKey: s = "default",
|
|
4453
4484
|
currentFilters: a = {},
|
|
4454
4485
|
onLoadPreset: c,
|
|
4455
|
-
activePresetName:
|
|
4456
|
-
onReorder:
|
|
4457
|
-
open:
|
|
4486
|
+
activePresetName: l,
|
|
4487
|
+
onReorder: u,
|
|
4488
|
+
open: f,
|
|
4458
4489
|
onOpenChange: d
|
|
4459
4490
|
}) => {
|
|
4460
|
-
const p = bt(
|
|
4461
|
-
const
|
|
4462
|
-
|
|
4491
|
+
const p = bt(Ht)[s] ?? $n(s), v = () => {
|
|
4492
|
+
const h = prompt("Preset name?");
|
|
4493
|
+
h && pc(s, {
|
|
4463
4494
|
id: crypto.randomUUID(),
|
|
4464
|
-
name:
|
|
4495
|
+
name: h,
|
|
4465
4496
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4466
4497
|
filters: a
|
|
4467
4498
|
});
|
|
4468
4499
|
};
|
|
4469
|
-
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(
|
|
4470
|
-
/* @__PURE__ */ i.jsx(
|
|
4500
|
+
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Rc, { size: e, open: f, onOpenChange: d, children: [
|
|
4501
|
+
/* @__PURE__ */ i.jsx(jc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4471
4502
|
/* @__PURE__ */ i.jsx(Bi, { size: 16 }),
|
|
4472
4503
|
"Filters"
|
|
4473
4504
|
] }) }),
|
|
4474
4505
|
/* @__PURE__ */ i.jsxs(Qe, { children: [
|
|
4475
|
-
/* @__PURE__ */ i.jsx(
|
|
4476
|
-
/* @__PURE__ */ i.jsx(
|
|
4477
|
-
/* @__PURE__ */ i.jsx(
|
|
4478
|
-
/* @__PURE__ */ i.jsx(
|
|
4479
|
-
/* @__PURE__ */ i.jsxs(
|
|
4506
|
+
/* @__PURE__ */ i.jsx(Ec, {}),
|
|
4507
|
+
/* @__PURE__ */ i.jsx(_c, { children: /* @__PURE__ */ i.jsxs(Tc, { children: [
|
|
4508
|
+
/* @__PURE__ */ i.jsx(Oc, { children: /* @__PURE__ */ i.jsx(Mc, { children: "Filters" }) }),
|
|
4509
|
+
/* @__PURE__ */ i.jsx($c, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(Ac, { defaultValue: "view", children: [
|
|
4510
|
+
/* @__PURE__ */ i.jsxs(Lc, { mb: 4, children: [
|
|
4480
4511
|
/* @__PURE__ */ i.jsxs(dn, { value: "view", children: [
|
|
4481
4512
|
/* @__PURE__ */ i.jsx(Xi, { size: 16 }),
|
|
4482
4513
|
"Edit"
|
|
@@ -4490,64 +4521,64 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4490
4521
|
"Presets"
|
|
4491
4522
|
] })
|
|
4492
4523
|
] }),
|
|
4493
|
-
/* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((
|
|
4494
|
-
|
|
4524
|
+
/* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ i.jsx(
|
|
4525
|
+
Ie,
|
|
4495
4526
|
{
|
|
4496
4527
|
align: "stretch",
|
|
4497
4528
|
border: "1px solid",
|
|
4498
4529
|
borderColor: "gray.200",
|
|
4499
|
-
flex:
|
|
4500
|
-
minW: `${(
|
|
4530
|
+
flex: h.size ?? 1,
|
|
4531
|
+
minW: `${(h.size ?? 1) * 100}px`,
|
|
4501
4532
|
rounded: "md",
|
|
4502
4533
|
p: 3,
|
|
4503
4534
|
mb: 3,
|
|
4504
|
-
children: oo(
|
|
4535
|
+
children: oo(h, f)
|
|
4505
4536
|
},
|
|
4506
|
-
|
|
4537
|
+
h.id
|
|
4507
4538
|
)) }),
|
|
4508
4539
|
/* @__PURE__ */ i.jsx(fn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4509
4540
|
Ur,
|
|
4510
4541
|
{
|
|
4511
4542
|
sensors: Ko(qo(On)),
|
|
4512
4543
|
collisionDetection: $r,
|
|
4513
|
-
onDragEnd: ({ active:
|
|
4514
|
-
if (!b ||
|
|
4515
|
-
const
|
|
4516
|
-
|
|
4544
|
+
onDragEnd: ({ active: h, over: b }) => {
|
|
4545
|
+
if (!b || h.id === b.id) return;
|
|
4546
|
+
const w = o.findIndex((_) => _.id === h.id), R = o.findIndex((_) => _.id === b.id), E = Kt(o, w, R);
|
|
4547
|
+
u?.(E);
|
|
4517
4548
|
},
|
|
4518
4549
|
children: /* @__PURE__ */ i.jsx(
|
|
4519
4550
|
Kr,
|
|
4520
4551
|
{
|
|
4521
|
-
items: o.map((
|
|
4552
|
+
items: o.map((h) => h.id),
|
|
4522
4553
|
strategy: di,
|
|
4523
|
-
children: o.map((
|
|
4524
|
-
|
|
4554
|
+
children: o.map((h) => /* @__PURE__ */ i.jsx(
|
|
4555
|
+
Cc,
|
|
4525
4556
|
{
|
|
4526
|
-
filter:
|
|
4557
|
+
filter: h,
|
|
4527
4558
|
onVisibilityChange: t,
|
|
4528
4559
|
onSizeChange: n
|
|
4529
4560
|
},
|
|
4530
|
-
|
|
4561
|
+
h.id
|
|
4531
4562
|
))
|
|
4532
4563
|
}
|
|
4533
4564
|
)
|
|
4534
4565
|
}
|
|
4535
4566
|
) }),
|
|
4536
|
-
/* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(
|
|
4567
|
+
/* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", mb: 3, children: [
|
|
4537
4568
|
/* @__PURE__ */ i.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4538
4569
|
p.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4539
|
-
p.map((
|
|
4570
|
+
p.map((h) => /* @__PURE__ */ i.jsxs(
|
|
4540
4571
|
fe,
|
|
4541
4572
|
{
|
|
4542
4573
|
justify: "space-between",
|
|
4543
4574
|
border: "1px solid",
|
|
4544
|
-
borderColor:
|
|
4575
|
+
borderColor: l === h.name ? "blue.300" : "gray.200",
|
|
4545
4576
|
rounded: "md",
|
|
4546
4577
|
p: 2,
|
|
4547
4578
|
children: [
|
|
4548
|
-
/* @__PURE__ */ i.jsxs(
|
|
4549
|
-
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children:
|
|
4550
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(
|
|
4579
|
+
/* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 0, children: [
|
|
4580
|
+
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
|
|
4581
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
|
|
4551
4582
|
] }),
|
|
4552
4583
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4553
4584
|
/* @__PURE__ */ i.jsx(
|
|
@@ -4555,7 +4586,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4555
4586
|
{
|
|
4556
4587
|
size: "xs",
|
|
4557
4588
|
variant: "ghost",
|
|
4558
|
-
onClick: () => c?.(
|
|
4589
|
+
onClick: () => c?.(h.filters, h.name),
|
|
4559
4590
|
children: "Load"
|
|
4560
4591
|
}
|
|
4561
4592
|
),
|
|
@@ -4565,18 +4596,18 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4565
4596
|
size: "xs",
|
|
4566
4597
|
"aria-label": "Delete preset",
|
|
4567
4598
|
variant: "ghost",
|
|
4568
|
-
onClick: () =>
|
|
4599
|
+
onClick: () => gc(s, h.id),
|
|
4569
4600
|
children: /* @__PURE__ */ i.jsx(Fi, { size: 14 })
|
|
4570
4601
|
}
|
|
4571
4602
|
)
|
|
4572
4603
|
] })
|
|
4573
4604
|
]
|
|
4574
4605
|
},
|
|
4575
|
-
|
|
4606
|
+
h.id
|
|
4576
4607
|
))
|
|
4577
4608
|
] }) })
|
|
4578
4609
|
] }) }),
|
|
4579
|
-
/* @__PURE__ */ i.jsxs(
|
|
4610
|
+
/* @__PURE__ */ i.jsxs(kc, { justify: "space-between", children: [
|
|
4580
4611
|
/* @__PURE__ */ i.jsx(
|
|
4581
4612
|
Ke,
|
|
4582
4613
|
{
|
|
@@ -4592,7 +4623,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4592
4623
|
] }) })
|
|
4593
4624
|
] })
|
|
4594
4625
|
] }) });
|
|
4595
|
-
},
|
|
4626
|
+
}, hl = ({
|
|
4596
4627
|
title: e,
|
|
4597
4628
|
filters: t,
|
|
4598
4629
|
onVisibilityChange: n,
|
|
@@ -4601,9 +4632,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4601
4632
|
onClear: s,
|
|
4602
4633
|
maxToolbarUnits: a,
|
|
4603
4634
|
pageKey: c,
|
|
4604
|
-
currentFilters:
|
|
4605
|
-
onLoadPreset:
|
|
4606
|
-
activePresetName:
|
|
4635
|
+
currentFilters: l,
|
|
4636
|
+
onLoadPreset: u,
|
|
4637
|
+
activePresetName: f,
|
|
4607
4638
|
filterDrawerSize: d = "sm"
|
|
4608
4639
|
}) => {
|
|
4609
4640
|
const [m, p] = oe(!1);
|
|
@@ -4621,7 +4652,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4621
4652
|
v.id
|
|
4622
4653
|
)),
|
|
4623
4654
|
/* @__PURE__ */ i.jsx(
|
|
4624
|
-
|
|
4655
|
+
Nc,
|
|
4625
4656
|
{
|
|
4626
4657
|
filterDrawerSize: d,
|
|
4627
4658
|
onVisibilityChange: n,
|
|
@@ -4631,9 +4662,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4631
4662
|
maxToolbarUnits: a,
|
|
4632
4663
|
pageKey: c,
|
|
4633
4664
|
filters: t,
|
|
4634
|
-
currentFilters:
|
|
4635
|
-
onLoadPreset:
|
|
4636
|
-
activePresetName:
|
|
4665
|
+
currentFilters: l,
|
|
4666
|
+
onLoadPreset: u,
|
|
4667
|
+
activePresetName: f,
|
|
4637
4668
|
open: m,
|
|
4638
4669
|
onOpenChange: (v) => {
|
|
4639
4670
|
p(v.open);
|
|
@@ -4642,7 +4673,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4642
4673
|
)
|
|
4643
4674
|
] })
|
|
4644
4675
|
] });
|
|
4645
|
-
},
|
|
4676
|
+
}, gl = (e, t) => {
|
|
4646
4677
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4647
4678
|
}, pl = (e) => {
|
|
4648
4679
|
try {
|
|
@@ -4650,7 +4681,7 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4650
4681
|
} catch {
|
|
4651
4682
|
return [];
|
|
4652
4683
|
}
|
|
4653
|
-
},
|
|
4684
|
+
}, vl = ({
|
|
4654
4685
|
onClick: e,
|
|
4655
4686
|
size: t = "xs",
|
|
4656
4687
|
variant: n = "solid",
|
|
@@ -4659,9 +4690,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4659
4690
|
rightIcon: s,
|
|
4660
4691
|
isDisabled: a,
|
|
4661
4692
|
colorScheme: c,
|
|
4662
|
-
loading:
|
|
4663
|
-
loadingText:
|
|
4664
|
-
rounded:
|
|
4693
|
+
loading: l,
|
|
4694
|
+
loadingText: u,
|
|
4695
|
+
rounded: f,
|
|
4665
4696
|
type: d = "button"
|
|
4666
4697
|
}) => /* @__PURE__ */ i.jsx(
|
|
4667
4698
|
Ke,
|
|
@@ -4671,9 +4702,9 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4671
4702
|
variant: n,
|
|
4672
4703
|
disabled: a,
|
|
4673
4704
|
colorPalette: c,
|
|
4674
|
-
loading:
|
|
4675
|
-
loadingText:
|
|
4676
|
-
rounded:
|
|
4705
|
+
loading: l,
|
|
4706
|
+
loadingText: u,
|
|
4707
|
+
rounded: f,
|
|
4677
4708
|
type: d,
|
|
4678
4709
|
children: /* @__PURE__ */ i.jsxs(fe, { gap: 1, children: [
|
|
4679
4710
|
o,
|
|
@@ -4681,8 +4712,8 @@ const Vt = new _r({}), $n = (e) => {
|
|
|
4681
4712
|
s
|
|
4682
4713
|
] })
|
|
4683
4714
|
}
|
|
4684
|
-
),
|
|
4685
|
-
function
|
|
4715
|
+
), zc = x(Ae.Root), Pc = x(Ae.Backdrop), Yc = x(Ae.Positioner), Fc = x(Ae.Content), Vc = x(Ae.Header), Hc = x(Ae.Body), Wc = x(Ae.Footer), Bc = x(Ae.Title), Uc = x(Ae.CloseTrigger);
|
|
4716
|
+
function ml({
|
|
4686
4717
|
open: e,
|
|
4687
4718
|
onClose: t,
|
|
4688
4719
|
onConfirm: n,
|
|
@@ -4692,13 +4723,13 @@ function vl({
|
|
|
4692
4723
|
confirmLabel: a = "Delete",
|
|
4693
4724
|
isLoading: c = !1
|
|
4694
4725
|
}) {
|
|
4695
|
-
const [
|
|
4696
|
-
return /* @__PURE__ */ i.jsx(
|
|
4697
|
-
/* @__PURE__ */ i.jsx(
|
|
4698
|
-
/* @__PURE__ */ i.jsx(
|
|
4699
|
-
/* @__PURE__ */ i.jsx(
|
|
4700
|
-
/* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(
|
|
4701
|
-
/* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(
|
|
4726
|
+
const [l, u] = oe("");
|
|
4727
|
+
return /* @__PURE__ */ i.jsx(zc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
|
|
4728
|
+
/* @__PURE__ */ i.jsx(Pc, {}),
|
|
4729
|
+
/* @__PURE__ */ i.jsx(Yc, { children: /* @__PURE__ */ i.jsxs(Fc, { maxW: "520px", children: [
|
|
4730
|
+
/* @__PURE__ */ i.jsx(Vc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ i.jsx(Bc, { color: "red.600", children: r }) }),
|
|
4731
|
+
/* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
|
|
4732
|
+
/* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4702
4733
|
/* @__PURE__ */ i.jsx(je, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(ea, { size: 20 }) }),
|
|
4703
4734
|
/* @__PURE__ */ i.jsxs(je, { children: [
|
|
4704
4735
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
@@ -4720,15 +4751,15 @@ function vl({
|
|
|
4720
4751
|
Sn,
|
|
4721
4752
|
{
|
|
4722
4753
|
placeholder: `Type ${s} here`,
|
|
4723
|
-
value:
|
|
4724
|
-
onChange: (
|
|
4754
|
+
value: l,
|
|
4755
|
+
onChange: (f) => u(f.target.value),
|
|
4725
4756
|
size: "xs"
|
|
4726
4757
|
}
|
|
4727
4758
|
)
|
|
4728
4759
|
] })
|
|
4729
4760
|
] }) }),
|
|
4730
4761
|
/* @__PURE__ */ i.jsxs(
|
|
4731
|
-
|
|
4762
|
+
Wc,
|
|
4732
4763
|
{
|
|
4733
4764
|
justifyContent: "flex-end",
|
|
4734
4765
|
gap: 3,
|
|
@@ -4752,11 +4783,11 @@ function vl({
|
|
|
4752
4783
|
]
|
|
4753
4784
|
}
|
|
4754
4785
|
),
|
|
4755
|
-
/* @__PURE__ */ i.jsx(
|
|
4786
|
+
/* @__PURE__ */ i.jsx(Uc, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, { size: "sm" }) })
|
|
4756
4787
|
] }) })
|
|
4757
4788
|
] }) });
|
|
4758
4789
|
}
|
|
4759
|
-
function
|
|
4790
|
+
function bl({
|
|
4760
4791
|
refetch: e,
|
|
4761
4792
|
isLoading: t = !1,
|
|
4762
4793
|
label: n = "Refresh"
|
|
@@ -4790,115 +4821,115 @@ function ml({
|
|
|
4790
4821
|
}
|
|
4791
4822
|
);
|
|
4792
4823
|
}
|
|
4793
|
-
var
|
|
4794
|
-
function
|
|
4824
|
+
var kt = { exports: {} }, Gc = kt.exports, br;
|
|
4825
|
+
function Xc() {
|
|
4795
4826
|
return br || (br = 1, (function(e, t) {
|
|
4796
4827
|
(function(n, r) {
|
|
4797
4828
|
e.exports = r();
|
|
4798
|
-
})(
|
|
4799
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute",
|
|
4800
|
-
var D = ["th", "st", "nd", "rd"],
|
|
4801
|
-
return "[" + M + (D[(
|
|
4802
|
-
} },
|
|
4829
|
+
})(Gc, (function() {
|
|
4830
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", p = "year", v = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, R = { 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(M) {
|
|
4831
|
+
var D = ["th", "st", "nd", "rd"], y = M % 100;
|
|
4832
|
+
return "[" + M + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
|
|
4833
|
+
} }, E = function(M, D, y) {
|
|
4803
4834
|
var j = String(M);
|
|
4804
|
-
return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(
|
|
4805
|
-
},
|
|
4806
|
-
var D = -M.utcOffset(),
|
|
4807
|
-
return (D <= 0 ? "+" : "-") +
|
|
4808
|
-
}, m: function M(D,
|
|
4809
|
-
if (D.date() <
|
|
4810
|
-
var j = 12 * (
|
|
4811
|
-
return +(-(j + (
|
|
4835
|
+
return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(y) + M;
|
|
4836
|
+
}, _ = { s: E, z: function(M) {
|
|
4837
|
+
var D = -M.utcOffset(), y = Math.abs(D), j = Math.floor(y / 60), C = y % 60;
|
|
4838
|
+
return (D <= 0 ? "+" : "-") + E(j, 2, "0") + ":" + E(C, 2, "0");
|
|
4839
|
+
}, m: function M(D, y) {
|
|
4840
|
+
if (D.date() < y.date()) return -M(y, D);
|
|
4841
|
+
var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, d), I = y - C < 0, L = D.clone().add(j + (I ? -1 : 1), d);
|
|
4842
|
+
return +(-(j + (y - C) / (I ? C - L : L - C)) || 0);
|
|
4812
4843
|
}, a: function(M) {
|
|
4813
4844
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4814
4845
|
}, p: function(M) {
|
|
4815
|
-
return { M: d, y: p, w:
|
|
4846
|
+
return { M: d, y: p, w: f, d: u, D: v, h: l, m: c, s: a, ms: s, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
4816
4847
|
}, u: function(M) {
|
|
4817
4848
|
return M === void 0;
|
|
4818
|
-
} }, O = "en",
|
|
4819
|
-
|
|
4849
|
+
} }, O = "en", T = {};
|
|
4850
|
+
T[O] = R;
|
|
4820
4851
|
var $ = "$isDayjsObject", N = function(M) {
|
|
4821
4852
|
return M instanceof Q || !(!M || !M[$]);
|
|
4822
|
-
}, W = function M(D,
|
|
4853
|
+
}, W = function M(D, y, j) {
|
|
4823
4854
|
var C;
|
|
4824
4855
|
if (!D) return O;
|
|
4825
4856
|
if (typeof D == "string") {
|
|
4826
|
-
var
|
|
4827
|
-
|
|
4857
|
+
var I = D.toLowerCase();
|
|
4858
|
+
T[I] && (C = I), y && (T[I] = y, C = I);
|
|
4828
4859
|
var L = D.split("-");
|
|
4829
4860
|
if (!C && L.length > 1) return M(L[0]);
|
|
4830
4861
|
} else {
|
|
4831
4862
|
var g = D.name;
|
|
4832
|
-
|
|
4863
|
+
T[g] = D, C = g;
|
|
4833
4864
|
}
|
|
4834
4865
|
return !j && C && (O = C), C || !j && O;
|
|
4835
4866
|
}, Y = function(M, D) {
|
|
4836
4867
|
if (N(M)) return M.clone();
|
|
4837
|
-
var
|
|
4838
|
-
return
|
|
4839
|
-
},
|
|
4840
|
-
|
|
4868
|
+
var y = typeof D == "object" ? D : {};
|
|
4869
|
+
return y.date = M, y.args = arguments, new Q(y);
|
|
4870
|
+
}, k = _;
|
|
4871
|
+
k.l = W, k.i = N, k.w = function(M, D) {
|
|
4841
4872
|
return Y(M, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
4842
4873
|
};
|
|
4843
4874
|
var Q = (function() {
|
|
4844
|
-
function M(
|
|
4845
|
-
this.$L = W(
|
|
4875
|
+
function M(y) {
|
|
4876
|
+
this.$L = W(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[$] = !0;
|
|
4846
4877
|
}
|
|
4847
4878
|
var D = M.prototype;
|
|
4848
|
-
return D.parse = function(
|
|
4879
|
+
return D.parse = function(y) {
|
|
4849
4880
|
this.$d = (function(j) {
|
|
4850
|
-
var C = j.date,
|
|
4881
|
+
var C = j.date, I = j.utc;
|
|
4851
4882
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
4852
|
-
if (
|
|
4883
|
+
if (k.u(C)) return /* @__PURE__ */ new Date();
|
|
4853
4884
|
if (C instanceof Date) return new Date(C);
|
|
4854
4885
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
4855
4886
|
var L = C.match(b);
|
|
4856
4887
|
if (L) {
|
|
4857
4888
|
var g = L[2] - 1 || 0, S = (L[7] || "0").substring(0, 3);
|
|
4858
|
-
return
|
|
4889
|
+
return I ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
|
|
4859
4890
|
}
|
|
4860
4891
|
}
|
|
4861
4892
|
return new Date(C);
|
|
4862
|
-
})(
|
|
4893
|
+
})(y), this.init();
|
|
4863
4894
|
}, D.init = function() {
|
|
4864
|
-
var
|
|
4865
|
-
this.$y =
|
|
4895
|
+
var y = this.$d;
|
|
4896
|
+
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
|
4866
4897
|
}, D.$utils = function() {
|
|
4867
|
-
return
|
|
4898
|
+
return k;
|
|
4868
4899
|
}, D.isValid = function() {
|
|
4869
|
-
return this.$d.toString() !==
|
|
4870
|
-
}, D.isSame = function(
|
|
4871
|
-
var C = Y(
|
|
4900
|
+
return this.$d.toString() !== h;
|
|
4901
|
+
}, D.isSame = function(y, j) {
|
|
4902
|
+
var C = Y(y);
|
|
4872
4903
|
return this.startOf(j) <= C && C <= this.endOf(j);
|
|
4873
|
-
}, D.isAfter = function(
|
|
4874
|
-
return Y(
|
|
4875
|
-
}, D.isBefore = function(
|
|
4876
|
-
return this.endOf(j) < Y(
|
|
4877
|
-
}, D.$g = function(
|
|
4878
|
-
return
|
|
4904
|
+
}, D.isAfter = function(y, j) {
|
|
4905
|
+
return Y(y) < this.startOf(j);
|
|
4906
|
+
}, D.isBefore = function(y, j) {
|
|
4907
|
+
return this.endOf(j) < Y(y);
|
|
4908
|
+
}, D.$g = function(y, j, C) {
|
|
4909
|
+
return k.u(y) ? this[j] : this.set(C, y);
|
|
4879
4910
|
}, D.unix = function() {
|
|
4880
4911
|
return Math.floor(this.valueOf() / 1e3);
|
|
4881
4912
|
}, D.valueOf = function() {
|
|
4882
4913
|
return this.$d.getTime();
|
|
4883
|
-
}, D.startOf = function(
|
|
4884
|
-
var C = this,
|
|
4885
|
-
var de =
|
|
4886
|
-
return
|
|
4914
|
+
}, D.startOf = function(y, j) {
|
|
4915
|
+
var C = this, I = !!k.u(j) || j, L = k.p(y), g = function(Z, z) {
|
|
4916
|
+
var de = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
|
|
4917
|
+
return I ? de : de.endOf(u);
|
|
4887
4918
|
}, S = function(Z, z) {
|
|
4888
|
-
return
|
|
4919
|
+
return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
|
|
4889
4920
|
}, A = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
4890
4921
|
switch (L) {
|
|
4891
4922
|
case p:
|
|
4892
|
-
return
|
|
4923
|
+
return I ? g(1, 0) : g(31, 11);
|
|
4893
4924
|
case d:
|
|
4894
|
-
return
|
|
4895
|
-
case
|
|
4925
|
+
return I ? g(1, P) : g(0, P + 1);
|
|
4926
|
+
case f:
|
|
4896
4927
|
var F = this.$locale().weekStart || 0, J = (A < F ? A + 7 : A) - F;
|
|
4897
|
-
return g(
|
|
4898
|
-
case
|
|
4928
|
+
return g(I ? G - J : G + (6 - J), P);
|
|
4929
|
+
case u:
|
|
4899
4930
|
case v:
|
|
4900
4931
|
return S(X + "Hours", 0);
|
|
4901
|
-
case
|
|
4932
|
+
case l:
|
|
4902
4933
|
return S(X + "Minutes", 1);
|
|
4903
4934
|
case c:
|
|
4904
4935
|
return S(X + "Seconds", 2);
|
|
@@ -4907,56 +4938,56 @@ function Gc() {
|
|
|
4907
4938
|
default:
|
|
4908
4939
|
return this.clone();
|
|
4909
4940
|
}
|
|
4910
|
-
}, D.endOf = function(
|
|
4911
|
-
return this.startOf(
|
|
4912
|
-
}, D.$set = function(
|
|
4913
|
-
var C,
|
|
4914
|
-
if (
|
|
4941
|
+
}, D.endOf = function(y) {
|
|
4942
|
+
return this.startOf(y, !1);
|
|
4943
|
+
}, D.$set = function(y, j) {
|
|
4944
|
+
var C, I = k.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[I], S = I === u ? this.$D + (j - this.$W) : j;
|
|
4945
|
+
if (I === d || I === p) {
|
|
4915
4946
|
var A = this.clone().set(v, 1);
|
|
4916
4947
|
A.$d[g](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
|
|
4917
4948
|
} else g && this.$d[g](S);
|
|
4918
4949
|
return this.init(), this;
|
|
4919
|
-
}, D.set = function(
|
|
4920
|
-
return this.clone().$set(
|
|
4921
|
-
}, D.get = function(
|
|
4922
|
-
return this[
|
|
4923
|
-
}, D.add = function(
|
|
4924
|
-
var C,
|
|
4925
|
-
|
|
4926
|
-
var L =
|
|
4927
|
-
var G = Y(
|
|
4928
|
-
return
|
|
4950
|
+
}, D.set = function(y, j) {
|
|
4951
|
+
return this.clone().$set(y, j);
|
|
4952
|
+
}, D.get = function(y) {
|
|
4953
|
+
return this[k.p(y)]();
|
|
4954
|
+
}, D.add = function(y, j) {
|
|
4955
|
+
var C, I = this;
|
|
4956
|
+
y = Number(y);
|
|
4957
|
+
var L = k.p(j), g = function(P) {
|
|
4958
|
+
var G = Y(I);
|
|
4959
|
+
return k.w(G.date(G.date() + Math.round(P * y)), I);
|
|
4929
4960
|
};
|
|
4930
|
-
if (L === d) return this.set(d, this.$M +
|
|
4931
|
-
if (L === p) return this.set(p, this.$y +
|
|
4932
|
-
if (L ===
|
|
4933
|
-
if (L ===
|
|
4934
|
-
var S = (C = {}, C[c] = r, C[
|
|
4935
|
-
return
|
|
4936
|
-
}, D.subtract = function(
|
|
4937
|
-
return this.add(-1 *
|
|
4938
|
-
}, D.format = function(
|
|
4961
|
+
if (L === d) return this.set(d, this.$M + y);
|
|
4962
|
+
if (L === p) return this.set(p, this.$y + y);
|
|
4963
|
+
if (L === u) return g(1);
|
|
4964
|
+
if (L === f) return g(7);
|
|
4965
|
+
var S = (C = {}, C[c] = r, C[l] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + y * S;
|
|
4966
|
+
return k.w(A, this);
|
|
4967
|
+
}, D.subtract = function(y, j) {
|
|
4968
|
+
return this.add(-1 * y, j);
|
|
4969
|
+
}, D.format = function(y) {
|
|
4939
4970
|
var j = this, C = this.$locale();
|
|
4940
|
-
if (!this.isValid()) return C.invalidDate ||
|
|
4941
|
-
var
|
|
4942
|
-
return z && (z[de] || z(j,
|
|
4971
|
+
if (!this.isValid()) return C.invalidDate || h;
|
|
4972
|
+
var I = y || "YYYY-MM-DDTHH:mm:ssZ", L = k.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
|
|
4973
|
+
return z && (z[de] || z(j, I)) || ae[de].slice(0, ye);
|
|
4943
4974
|
}, J = function(z) {
|
|
4944
|
-
return
|
|
4975
|
+
return k.s(g % 12 || 12, z, "0");
|
|
4945
4976
|
}, Z = X || function(z, de, ae) {
|
|
4946
4977
|
var ye = z < 12 ? "AM" : "PM";
|
|
4947
4978
|
return ae ? ye.toLowerCase() : ye;
|
|
4948
4979
|
};
|
|
4949
|
-
return
|
|
4980
|
+
return I.replace(w, (function(z, de) {
|
|
4950
4981
|
return de || (function(ae) {
|
|
4951
4982
|
switch (ae) {
|
|
4952
4983
|
case "YY":
|
|
4953
4984
|
return String(j.$y).slice(-2);
|
|
4954
4985
|
case "YYYY":
|
|
4955
|
-
return
|
|
4986
|
+
return k.s(j.$y, 4, "0");
|
|
4956
4987
|
case "M":
|
|
4957
4988
|
return A + 1;
|
|
4958
4989
|
case "MM":
|
|
4959
|
-
return
|
|
4990
|
+
return k.s(A + 1, 2, "0");
|
|
4960
4991
|
case "MMM":
|
|
4961
4992
|
return F(C.monthsShort, A, G, 3);
|
|
4962
4993
|
case "MMMM":
|
|
@@ -4964,7 +4995,7 @@ function Gc() {
|
|
|
4964
4995
|
case "D":
|
|
4965
4996
|
return j.$D;
|
|
4966
4997
|
case "DD":
|
|
4967
|
-
return
|
|
4998
|
+
return k.s(j.$D, 2, "0");
|
|
4968
4999
|
case "d":
|
|
4969
5000
|
return String(j.$W);
|
|
4970
5001
|
case "dd":
|
|
@@ -4976,7 +5007,7 @@ function Gc() {
|
|
|
4976
5007
|
case "H":
|
|
4977
5008
|
return String(g);
|
|
4978
5009
|
case "HH":
|
|
4979
|
-
return
|
|
5010
|
+
return k.s(g, 2, "0");
|
|
4980
5011
|
case "h":
|
|
4981
5012
|
return J(1);
|
|
4982
5013
|
case "hh":
|
|
@@ -4988,13 +5019,13 @@ function Gc() {
|
|
|
4988
5019
|
case "m":
|
|
4989
5020
|
return String(S);
|
|
4990
5021
|
case "mm":
|
|
4991
|
-
return
|
|
5022
|
+
return k.s(S, 2, "0");
|
|
4992
5023
|
case "s":
|
|
4993
5024
|
return String(j.$s);
|
|
4994
5025
|
case "ss":
|
|
4995
|
-
return
|
|
5026
|
+
return k.s(j.$s, 2, "0");
|
|
4996
5027
|
case "SSS":
|
|
4997
|
-
return
|
|
5028
|
+
return k.s(j.$ms, 3, "0");
|
|
4998
5029
|
case "Z":
|
|
4999
5030
|
return L;
|
|
5000
5031
|
}
|
|
@@ -5003,49 +5034,49 @@ function Gc() {
|
|
|
5003
5034
|
}));
|
|
5004
5035
|
}, D.utcOffset = function() {
|
|
5005
5036
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5006
|
-
}, D.diff = function(
|
|
5007
|
-
var
|
|
5008
|
-
return
|
|
5037
|
+
}, D.diff = function(y, j, C) {
|
|
5038
|
+
var I, L = this, g = k.p(j), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
|
|
5039
|
+
return k.m(L, S);
|
|
5009
5040
|
};
|
|
5010
5041
|
switch (g) {
|
|
5011
5042
|
case p:
|
|
5012
|
-
|
|
5043
|
+
I = G() / 12;
|
|
5013
5044
|
break;
|
|
5014
5045
|
case d:
|
|
5015
|
-
|
|
5046
|
+
I = G();
|
|
5016
5047
|
break;
|
|
5017
5048
|
case m:
|
|
5018
|
-
|
|
5049
|
+
I = G() / 3;
|
|
5019
5050
|
break;
|
|
5020
|
-
case
|
|
5021
|
-
|
|
5022
|
-
break;
|
|
5023
|
-
case l:
|
|
5024
|
-
k = (P - A) / 864e5;
|
|
5051
|
+
case f:
|
|
5052
|
+
I = (P - A) / 6048e5;
|
|
5025
5053
|
break;
|
|
5026
5054
|
case u:
|
|
5027
|
-
|
|
5055
|
+
I = (P - A) / 864e5;
|
|
5056
|
+
break;
|
|
5057
|
+
case l:
|
|
5058
|
+
I = P / o;
|
|
5028
5059
|
break;
|
|
5029
5060
|
case c:
|
|
5030
|
-
|
|
5061
|
+
I = P / r;
|
|
5031
5062
|
break;
|
|
5032
5063
|
case a:
|
|
5033
|
-
|
|
5064
|
+
I = P / n;
|
|
5034
5065
|
break;
|
|
5035
5066
|
default:
|
|
5036
|
-
|
|
5067
|
+
I = P;
|
|
5037
5068
|
}
|
|
5038
|
-
return C ?
|
|
5069
|
+
return C ? I : k.a(I);
|
|
5039
5070
|
}, D.daysInMonth = function() {
|
|
5040
5071
|
return this.endOf(d).$D;
|
|
5041
5072
|
}, D.$locale = function() {
|
|
5042
|
-
return
|
|
5043
|
-
}, D.locale = function(
|
|
5044
|
-
if (!
|
|
5045
|
-
var C = this.clone(),
|
|
5046
|
-
return
|
|
5073
|
+
return T[this.$L];
|
|
5074
|
+
}, D.locale = function(y, j) {
|
|
5075
|
+
if (!y) return this.$L;
|
|
5076
|
+
var C = this.clone(), I = W(y, j, !0);
|
|
5077
|
+
return I && (C.$L = I), C;
|
|
5047
5078
|
}, D.clone = function() {
|
|
5048
|
-
return
|
|
5079
|
+
return k.w(this.$d, this);
|
|
5049
5080
|
}, D.toDate = function() {
|
|
5050
5081
|
return new Date(this.valueOf());
|
|
5051
5082
|
}, D.toJSON = function() {
|
|
@@ -5056,7 +5087,7 @@ function Gc() {
|
|
|
5056
5087
|
return this.$d.toUTCString();
|
|
5057
5088
|
}, M;
|
|
5058
5089
|
})(), se = Q.prototype;
|
|
5059
|
-
return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H",
|
|
5090
|
+
return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
|
|
5060
5091
|
se[M[1]] = function(D) {
|
|
5061
5092
|
return this.$g(D, M[0], M[1]);
|
|
5062
5093
|
};
|
|
@@ -5064,117 +5095,117 @@ function Gc() {
|
|
|
5064
5095
|
return M.$i || (M(D, Q, Y), M.$i = !0), Y;
|
|
5065
5096
|
}, Y.locale = W, Y.isDayjs = N, Y.unix = function(M) {
|
|
5066
5097
|
return Y(1e3 * M);
|
|
5067
|
-
}, Y.en =
|
|
5098
|
+
}, Y.en = T[O], Y.Ls = T, Y.p = {}, Y;
|
|
5068
5099
|
}));
|
|
5069
|
-
})(
|
|
5100
|
+
})(kt)), kt.exports;
|
|
5070
5101
|
}
|
|
5071
|
-
var
|
|
5072
|
-
const Jt = /* @__PURE__ */ Ut(
|
|
5073
|
-
var
|
|
5074
|
-
function
|
|
5102
|
+
var qc = Xc();
|
|
5103
|
+
const Jt = /* @__PURE__ */ Ut(qc);
|
|
5104
|
+
var It = { exports: {} }, Kc = It.exports, xr;
|
|
5105
|
+
function Jc() {
|
|
5075
5106
|
return xr || (xr = 1, (function(e, t) {
|
|
5076
5107
|
(function(n, r) {
|
|
5077
5108
|
e.exports = r();
|
|
5078
|
-
})(
|
|
5109
|
+
})(Kc, (function() {
|
|
5079
5110
|
return function(n, r, o) {
|
|
5080
5111
|
n = n || {};
|
|
5081
5112
|
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" };
|
|
5082
|
-
function c(
|
|
5083
|
-
return s.fromToBase(
|
|
5113
|
+
function c(u, f, d, m) {
|
|
5114
|
+
return s.fromToBase(u, f, d, m);
|
|
5084
5115
|
}
|
|
5085
|
-
o.en.relativeTime = a, s.fromToBase = function(
|
|
5086
|
-
for (var v,
|
|
5087
|
-
var O =
|
|
5088
|
-
O.d && (v = m ? o(
|
|
5089
|
-
var
|
|
5090
|
-
if (b = v > 0,
|
|
5091
|
-
|
|
5092
|
-
var $ =
|
|
5093
|
-
p && (
|
|
5116
|
+
o.en.relativeTime = a, s.fromToBase = function(u, f, d, m, p) {
|
|
5117
|
+
for (var v, h, b, w = d.$locale().relativeTime || a, R = 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" }], E = R.length, _ = 0; _ < E; _ += 1) {
|
|
5118
|
+
var O = R[_];
|
|
5119
|
+
O.d && (v = m ? o(u).diff(d, O.d, !0) : d.diff(u, O.d, !0));
|
|
5120
|
+
var T = (n.rounding || Math.round)(Math.abs(v));
|
|
5121
|
+
if (b = v > 0, T <= O.r || !O.r) {
|
|
5122
|
+
T <= 1 && _ > 0 && (O = R[_ - 1]);
|
|
5123
|
+
var $ = w[O.l];
|
|
5124
|
+
p && (T = p("" + T)), h = typeof $ == "string" ? $.replace("%d", T) : $(T, f, O.l, b);
|
|
5094
5125
|
break;
|
|
5095
5126
|
}
|
|
5096
5127
|
}
|
|
5097
|
-
if (
|
|
5098
|
-
var N = b ?
|
|
5099
|
-
return typeof N == "function" ? N(
|
|
5100
|
-
}, s.to = function(
|
|
5101
|
-
return c(
|
|
5102
|
-
}, s.from = function(
|
|
5103
|
-
return c(
|
|
5128
|
+
if (f) return h;
|
|
5129
|
+
var N = b ? w.future : w.past;
|
|
5130
|
+
return typeof N == "function" ? N(h) : N.replace("%s", h);
|
|
5131
|
+
}, s.to = function(u, f) {
|
|
5132
|
+
return c(u, f, this, !0);
|
|
5133
|
+
}, s.from = function(u, f) {
|
|
5134
|
+
return c(u, f, this);
|
|
5104
5135
|
};
|
|
5105
|
-
var
|
|
5106
|
-
return
|
|
5136
|
+
var l = function(u) {
|
|
5137
|
+
return u.$u ? o.utc() : o();
|
|
5107
5138
|
};
|
|
5108
|
-
s.toNow = function(
|
|
5109
|
-
return this.to(
|
|
5110
|
-
}, s.fromNow = function(
|
|
5111
|
-
return this.from(
|
|
5139
|
+
s.toNow = function(u) {
|
|
5140
|
+
return this.to(l(this), u);
|
|
5141
|
+
}, s.fromNow = function(u) {
|
|
5142
|
+
return this.from(l(this), u);
|
|
5112
5143
|
};
|
|
5113
5144
|
};
|
|
5114
5145
|
}));
|
|
5115
|
-
})(
|
|
5146
|
+
})(It)), It.exports;
|
|
5116
5147
|
}
|
|
5117
|
-
var
|
|
5118
|
-
const
|
|
5119
|
-
var At = { exports: {} },
|
|
5120
|
-
function
|
|
5148
|
+
var Zc = Jc();
|
|
5149
|
+
const Qc = /* @__PURE__ */ Ut(Zc);
|
|
5150
|
+
var At = { exports: {} }, el = At.exports, yr;
|
|
5151
|
+
function tl() {
|
|
5121
5152
|
return yr || (yr = 1, (function(e, t) {
|
|
5122
5153
|
(function(n, r) {
|
|
5123
5154
|
e.exports = r();
|
|
5124
|
-
})(
|
|
5155
|
+
})(el, (function() {
|
|
5125
5156
|
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" };
|
|
5126
5157
|
return function(r, o, s) {
|
|
5127
5158
|
var a = o.prototype, c = a.format;
|
|
5128
|
-
s.en.formats = n, a.format = function(
|
|
5129
|
-
|
|
5130
|
-
var
|
|
5131
|
-
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v,
|
|
5132
|
-
var b =
|
|
5133
|
-
return v || m[
|
|
5134
|
-
return
|
|
5159
|
+
s.en.formats = n, a.format = function(l) {
|
|
5160
|
+
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5161
|
+
var u = this.$locale().formats, f = (function(d, m) {
|
|
5162
|
+
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
|
|
5163
|
+
var b = h && h.toUpperCase();
|
|
5164
|
+
return v || m[h] || n[h] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, R, E) {
|
|
5165
|
+
return R || E.slice(1);
|
|
5135
5166
|
}));
|
|
5136
5167
|
}));
|
|
5137
|
-
})(
|
|
5138
|
-
return c.call(this,
|
|
5168
|
+
})(l, u === void 0 ? {} : u);
|
|
5169
|
+
return c.call(this, f);
|
|
5139
5170
|
};
|
|
5140
5171
|
};
|
|
5141
5172
|
}));
|
|
5142
5173
|
})(At)), At.exports;
|
|
5143
5174
|
}
|
|
5144
|
-
var
|
|
5145
|
-
const
|
|
5146
|
-
var Lt = { exports: {} },
|
|
5147
|
-
function
|
|
5175
|
+
var nl = tl();
|
|
5176
|
+
const rl = /* @__PURE__ */ Ut(nl);
|
|
5177
|
+
var Lt = { exports: {} }, ol = Lt.exports, wr;
|
|
5178
|
+
function sl() {
|
|
5148
5179
|
return wr || (wr = 1, (function(e, t) {
|
|
5149
5180
|
(function(n, r) {
|
|
5150
5181
|
e.exports = r();
|
|
5151
|
-
})(
|
|
5182
|
+
})(ol, (function() {
|
|
5152
5183
|
return function(n, r) {
|
|
5153
5184
|
var o = r.prototype, s = o.format;
|
|
5154
5185
|
o.format = function(a) {
|
|
5155
|
-
var c = this,
|
|
5186
|
+
var c = this, l = this.$locale();
|
|
5156
5187
|
if (!this.isValid()) return s.bind(this)(a);
|
|
5157
|
-
var
|
|
5188
|
+
var u = this.$utils(), f = (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(d) {
|
|
5158
5189
|
switch (d) {
|
|
5159
5190
|
case "Q":
|
|
5160
5191
|
return Math.ceil((c.$M + 1) / 3);
|
|
5161
5192
|
case "Do":
|
|
5162
|
-
return
|
|
5193
|
+
return l.ordinal(c.$D);
|
|
5163
5194
|
case "gggg":
|
|
5164
5195
|
return c.weekYear();
|
|
5165
5196
|
case "GGGG":
|
|
5166
5197
|
return c.isoWeekYear();
|
|
5167
5198
|
case "wo":
|
|
5168
|
-
return
|
|
5199
|
+
return l.ordinal(c.week(), "W");
|
|
5169
5200
|
case "w":
|
|
5170
5201
|
case "ww":
|
|
5171
|
-
return
|
|
5202
|
+
return u.s(c.week(), d === "w" ? 1 : 2, "0");
|
|
5172
5203
|
case "W":
|
|
5173
5204
|
case "WW":
|
|
5174
|
-
return
|
|
5205
|
+
return u.s(c.isoWeek(), d === "W" ? 1 : 2, "0");
|
|
5175
5206
|
case "k":
|
|
5176
5207
|
case "kk":
|
|
5177
|
-
return
|
|
5208
|
+
return u.s(String(c.$H === 0 ? 24 : c.$H), d === "k" ? 1 : 2, "0");
|
|
5178
5209
|
case "X":
|
|
5179
5210
|
return Math.floor(c.$d.getTime() / 1e3);
|
|
5180
5211
|
case "x":
|
|
@@ -5187,18 +5218,18 @@ function ol() {
|
|
|
5187
5218
|
return d;
|
|
5188
5219
|
}
|
|
5189
5220
|
}));
|
|
5190
|
-
return s.bind(this)(
|
|
5221
|
+
return s.bind(this)(f);
|
|
5191
5222
|
};
|
|
5192
5223
|
};
|
|
5193
5224
|
}));
|
|
5194
5225
|
})(Lt)), Lt.exports;
|
|
5195
5226
|
}
|
|
5196
|
-
var
|
|
5197
|
-
const
|
|
5198
|
-
Jt.extend(
|
|
5199
|
-
Jt.extend(
|
|
5200
|
-
Jt.extend(
|
|
5201
|
-
const
|
|
5227
|
+
var il = sl();
|
|
5228
|
+
const al = /* @__PURE__ */ Ut(il);
|
|
5229
|
+
Jt.extend(Qc);
|
|
5230
|
+
Jt.extend(rl);
|
|
5231
|
+
Jt.extend(al);
|
|
5232
|
+
const cl = {
|
|
5202
5233
|
date: "DD MMM YYYY",
|
|
5203
5234
|
time: "hh:mm A",
|
|
5204
5235
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5214,9 +5245,9 @@ function Sr({
|
|
|
5214
5245
|
}) {
|
|
5215
5246
|
if (!e) return r;
|
|
5216
5247
|
const o = Jt(e);
|
|
5217
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5248
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? cl[t]) : r;
|
|
5218
5249
|
}
|
|
5219
|
-
function
|
|
5250
|
+
function xl({
|
|
5220
5251
|
value: e,
|
|
5221
5252
|
dateVariant: t = "date",
|
|
5222
5253
|
timeVariant: n = "time",
|
|
@@ -5224,7 +5255,7 @@ function bl({
|
|
|
5224
5255
|
timeFormat: o,
|
|
5225
5256
|
align: s = "start"
|
|
5226
5257
|
}) {
|
|
5227
|
-
return /* @__PURE__ */ i.jsxs(
|
|
5258
|
+
return /* @__PURE__ */ i.jsxs(gn, { gap: 0.5, align: s, children: [
|
|
5228
5259
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "500", children: Sr({
|
|
5229
5260
|
value: e,
|
|
5230
5261
|
variant: t,
|
|
@@ -5238,26 +5269,27 @@ function bl({
|
|
|
5238
5269
|
] });
|
|
5239
5270
|
}
|
|
5240
5271
|
export {
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5272
|
+
fl as DataTable,
|
|
5273
|
+
hl as Filters,
|
|
5274
|
+
vl as MDSButton,
|
|
5275
|
+
za as MDSCheckbox,
|
|
5276
|
+
ml as MDSConfirmDeleteDialog,
|
|
5246
5277
|
mr as MDSInput,
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5278
|
+
bl as MDSRefreshButton,
|
|
5279
|
+
fc as MDSSelectBox,
|
|
5280
|
+
bl as RefreshButton,
|
|
5281
|
+
xl as StackedDateTime,
|
|
5251
5282
|
pc as addPreset,
|
|
5252
|
-
|
|
5283
|
+
gc as deletePreset,
|
|
5253
5284
|
Sr as formatDateTime,
|
|
5254
5285
|
$n as getPresets,
|
|
5255
5286
|
pl as loadOrder,
|
|
5256
|
-
|
|
5257
|
-
|
|
5287
|
+
Ht as presetStore,
|
|
5288
|
+
gl as saveOrder,
|
|
5258
5289
|
ro as savePresets,
|
|
5290
|
+
ia as setActionsConfig,
|
|
5259
5291
|
oa as setData,
|
|
5260
5292
|
sa as setTableId,
|
|
5261
|
-
|
|
5262
|
-
|
|
5293
|
+
me as tableStore,
|
|
5294
|
+
x as withChildren
|
|
5263
5295
|
};
|