@mdspl/mds-shared-ui 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1129 -1101
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import ne, { useLayoutEffect as po, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as vo, useReducer as mo, useContext as He, forwardRef as wn, createElement as hn } from "react";
|
|
2
|
-
import { Menu as Oe, Checkbox as
|
|
3
|
-
import { unstable_batchedUpdates as Ct, createPortal as
|
|
2
|
+
import { Menu as Oe, Checkbox as Ce, IconButton as _e, Portal as Qe, Table as be, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as Ee, Text as q, ButtonGroup as bo, Skeleton as xo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as yo, 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 jr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
|
|
3
|
+
import { unstable_batchedUpdates as Ct, createPortal as wo } 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
|
-
var
|
|
7
|
+
var jt = { exports: {} }, at = {};
|
|
8
8
|
var Hn;
|
|
9
|
-
function
|
|
9
|
+
function So() {
|
|
10
10
|
if (Hn) return at;
|
|
11
11
|
Hn = 1;
|
|
12
12
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -29,23 +29,23 @@ function wo() {
|
|
|
29
29
|
}
|
|
30
30
|
var ct = {};
|
|
31
31
|
var Wn;
|
|
32
|
-
function
|
|
32
|
+
function Do() {
|
|
33
33
|
return Wn || (Wn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
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
|
-
case
|
|
40
|
+
case m:
|
|
41
41
|
return "Fragment";
|
|
42
|
-
case
|
|
42
|
+
case _:
|
|
43
43
|
return "Profiler";
|
|
44
44
|
case w:
|
|
45
45
|
return "StrictMode";
|
|
46
|
-
case
|
|
46
|
+
case j:
|
|
47
47
|
return "Suspense";
|
|
48
|
-
case
|
|
48
|
+
case M:
|
|
49
49
|
return "SuspenseList";
|
|
50
50
|
case Y:
|
|
51
51
|
return "Activity";
|
|
@@ -56,9 +56,9 @@ function So() {
|
|
|
56
56
|
), g.$$typeof) {
|
|
57
57
|
case h:
|
|
58
58
|
return "Portal";
|
|
59
|
-
case
|
|
59
|
+
case T:
|
|
60
60
|
return g.displayName || "Context";
|
|
61
|
-
case
|
|
61
|
+
case R:
|
|
62
62
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
63
|
case O:
|
|
64
64
|
var S = g.render;
|
|
@@ -95,7 +95,7 @@ function So() {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function r(g) {
|
|
98
|
-
if (g ===
|
|
98
|
+
if (g === m) return "<>";
|
|
99
99
|
if (typeof g == "object" && g !== null && g.$$typeof === W)
|
|
100
100
|
return "<...>";
|
|
101
101
|
try {
|
|
@@ -133,7 +133,7 @@ function So() {
|
|
|
133
133
|
}
|
|
134
134
|
function l() {
|
|
135
135
|
var g = e(this.type);
|
|
136
|
-
return
|
|
136
|
+
return E[g] || (E[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
|
}
|
|
@@ -170,19 +170,19 @@ function So() {
|
|
|
170
170
|
value: X
|
|
171
171
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function d(g, S, A, P, G, X) {
|
|
174
174
|
var F = S.children;
|
|
175
175
|
if (F !== void 0)
|
|
176
176
|
if (P)
|
|
177
|
-
if (
|
|
177
|
+
if ($(F)) {
|
|
178
178
|
for (P = 0; P < F.length; P++)
|
|
179
|
-
|
|
179
|
+
f(F[P]);
|
|
180
180
|
Object.freeze && Object.freeze(F);
|
|
181
181
|
} else
|
|
182
182
|
console.error(
|
|
183
183
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
184
184
|
);
|
|
185
|
-
else
|
|
185
|
+
else f(F);
|
|
186
186
|
if (ie.call(S, "key")) {
|
|
187
187
|
F = e(g);
|
|
188
188
|
var J = Object.keys(S).filter(function(z) {
|
|
@@ -218,13 +218,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
X
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
221
|
+
function f(g) {
|
|
222
|
+
b(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === W && (g._payload.status === "fulfilled" ? b(g._payload.value) && g._payload.value._store && (g._payload.value._store.validated = 1) : g._store && (g._store.validated = 1));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function b(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"), h = /* @__PURE__ */ Symbol.for("react.portal"),
|
|
227
|
+
var p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__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, ie = Object.prototype.hasOwnProperty, $ = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
p = {
|
|
@@ -232,78 +232,78 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var y,
|
|
235
|
+
var y, E = {}, C = p.react_stack_bottom_frame.bind(
|
|
236
236
|
p,
|
|
237
237
|
i
|
|
238
|
-
)(),
|
|
239
|
-
ct.Fragment =
|
|
238
|
+
)(), I = D(r(i)), L = {};
|
|
239
|
+
ct.Fragment = m, ct.jsx = function(g, S, A) {
|
|
240
240
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
241
|
-
return
|
|
241
|
+
return d(
|
|
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 d(
|
|
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;
|
|
261
261
|
}
|
|
262
262
|
var Bn;
|
|
263
|
-
function
|
|
264
|
-
return Bn || (Bn = 1, process.env.NODE_ENV === "production" ?
|
|
263
|
+
function Co() {
|
|
264
|
+
return Bn || (Bn = 1, process.env.NODE_ENV === "production" ? jt.exports = So() : jt.exports = Do()), jt.exports;
|
|
265
265
|
}
|
|
266
|
-
var s =
|
|
266
|
+
var s = Co(), Rt = { exports: {} }, tn = {}, Et = { exports: {} }, nn = {};
|
|
267
267
|
var Un;
|
|
268
|
-
function
|
|
268
|
+
function jo() {
|
|
269
269
|
if (Un) return nn;
|
|
270
270
|
Un = 1;
|
|
271
271
|
var e = ne;
|
|
272
|
-
function t(
|
|
273
|
-
return
|
|
272
|
+
function t(f, b) {
|
|
273
|
+
return f === b && (f !== 0 || 1 / f === 1 / b) || f !== f && b !== b;
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
|
-
function c(
|
|
277
|
-
var p =
|
|
276
|
+
function c(f, b) {
|
|
277
|
+
var p = b(), v = r({ inst: { value: p, getSnapshot: b } }), h = v[0].inst, m = v[1];
|
|
278
278
|
return i(
|
|
279
279
|
function() {
|
|
280
|
-
h.value = p, h.getSnapshot =
|
|
280
|
+
h.value = p, h.getSnapshot = b, l(h) && m({ inst: h });
|
|
281
281
|
},
|
|
282
|
-
[
|
|
282
|
+
[f, p, b]
|
|
283
283
|
), o(
|
|
284
284
|
function() {
|
|
285
|
-
return l(h) &&
|
|
286
|
-
l(h) &&
|
|
285
|
+
return l(h) && m({ inst: h }), f(function() {
|
|
286
|
+
l(h) && m({ inst: h });
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
|
-
[
|
|
289
|
+
[f]
|
|
290
290
|
), a(p), p;
|
|
291
291
|
}
|
|
292
|
-
function l(
|
|
293
|
-
var
|
|
294
|
-
|
|
292
|
+
function l(f) {
|
|
293
|
+
var b = f.getSnapshot;
|
|
294
|
+
f = f.value;
|
|
295
295
|
try {
|
|
296
|
-
var p =
|
|
297
|
-
return !n(
|
|
296
|
+
var p = b();
|
|
297
|
+
return !n(f, p);
|
|
298
298
|
} catch {
|
|
299
299
|
return !0;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function u(
|
|
303
|
-
return
|
|
302
|
+
function u(f, b) {
|
|
303
|
+
return b();
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore :
|
|
305
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
|
|
306
|
+
return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, nn;
|
|
307
307
|
}
|
|
308
308
|
var rn = {};
|
|
309
309
|
var Gn;
|
|
@@ -313,29 +313,29 @@ function Ro() {
|
|
|
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
|
+
d || o.startTransition === void 0 || (d = !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
319
|
var h = v();
|
|
320
|
-
if (!
|
|
321
|
-
var
|
|
322
|
-
i(h,
|
|
320
|
+
if (!f) {
|
|
321
|
+
var m = v();
|
|
322
|
+
i(h, m) || (console.error(
|
|
323
323
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
324
|
-
),
|
|
324
|
+
), f = !0);
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
m = a({
|
|
327
327
|
inst: { value: h, getSnapshot: v }
|
|
328
328
|
});
|
|
329
|
-
var w =
|
|
329
|
+
var w = m[0].inst, _ = m[1];
|
|
330
330
|
return l(
|
|
331
331
|
function() {
|
|
332
|
-
w.value = h, w.getSnapshot = v, n(w) &&
|
|
332
|
+
w.value = h, w.getSnapshot = v, n(w) && _({ inst: w });
|
|
333
333
|
},
|
|
334
334
|
[p, h, v]
|
|
335
335
|
), c(
|
|
336
336
|
function() {
|
|
337
|
-
return n(w) &&
|
|
338
|
-
n(w) &&
|
|
337
|
+
return n(w) && _({ inst: w }), p(function() {
|
|
338
|
+
n(w) && _({ inst: w });
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
341
|
[p]
|
|
@@ -355,24 +355,24 @@ function Ro() {
|
|
|
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, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue,
|
|
359
|
-
rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore :
|
|
358
|
+
var o = ne, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, d = !1, f = !1, b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
359
|
+
rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
360
360
|
})()), rn;
|
|
361
361
|
}
|
|
362
362
|
var Xn;
|
|
363
|
-
function
|
|
364
|
-
return Xn || (Xn = 1, process.env.NODE_ENV === "production" ? Et.exports =
|
|
363
|
+
function Rr() {
|
|
364
|
+
return Xn || (Xn = 1, process.env.NODE_ENV === "production" ? Et.exports = jo() : Et.exports = Ro()), Et.exports;
|
|
365
365
|
}
|
|
366
366
|
var qn;
|
|
367
|
-
function
|
|
367
|
+
function Eo() {
|
|
368
368
|
if (qn) return tn;
|
|
369
369
|
qn = 1;
|
|
370
|
-
var e = ne, t =
|
|
371
|
-
function n(u,
|
|
372
|
-
return u ===
|
|
370
|
+
var e = ne, t = Rr();
|
|
371
|
+
function n(u, d) {
|
|
372
|
+
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
373
373
|
}
|
|
374
374
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
|
|
375
|
-
return tn.useSyncExternalStoreWithSelector = function(u,
|
|
375
|
+
return tn.useSyncExternalStoreWithSelector = function(u, d, f, b, p) {
|
|
376
376
|
var v = i(null);
|
|
377
377
|
if (v.current === null) {
|
|
378
378
|
var h = { hasValue: !1, value: null };
|
|
@@ -380,50 +380,50 @@ function jo() {
|
|
|
380
380
|
} else h = v.current;
|
|
381
381
|
v = c(
|
|
382
382
|
function() {
|
|
383
|
-
function w(
|
|
384
|
-
if (!
|
|
385
|
-
if (
|
|
386
|
-
var
|
|
387
|
-
if (p(
|
|
388
|
-
return
|
|
383
|
+
function w(j) {
|
|
384
|
+
if (!_) {
|
|
385
|
+
if (_ = !0, R = j, j = b(j), p !== void 0 && h.hasValue) {
|
|
386
|
+
var M = h.value;
|
|
387
|
+
if (p(M, j))
|
|
388
|
+
return T = M;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return T = j;
|
|
391
391
|
}
|
|
392
|
-
if (
|
|
393
|
-
var N =
|
|
394
|
-
return p !== void 0 && p(
|
|
392
|
+
if (M = T, r(R, j)) return M;
|
|
393
|
+
var N = b(j);
|
|
394
|
+
return p !== void 0 && p(M, N) ? (R = j, M) : (R = j, T = N);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var _ = !1, R, T, O = f === void 0 ? null : f;
|
|
397
397
|
return [
|
|
398
398
|
function() {
|
|
399
|
-
return w(
|
|
399
|
+
return w(d());
|
|
400
400
|
},
|
|
401
401
|
O === null ? void 0 : function() {
|
|
402
402
|
return w(O());
|
|
403
403
|
}
|
|
404
404
|
];
|
|
405
405
|
},
|
|
406
|
-
[
|
|
406
|
+
[d, f, b, p]
|
|
407
407
|
);
|
|
408
|
-
var
|
|
408
|
+
var m = o(u, v[0], v[1]);
|
|
409
409
|
return a(
|
|
410
410
|
function() {
|
|
411
|
-
h.hasValue = !0, h.value =
|
|
411
|
+
h.hasValue = !0, h.value = m;
|
|
412
412
|
},
|
|
413
|
-
[
|
|
414
|
-
), l(
|
|
413
|
+
[m]
|
|
414
|
+
), l(m), m;
|
|
415
415
|
}, tn;
|
|
416
416
|
}
|
|
417
417
|
var on = {};
|
|
418
418
|
var Kn;
|
|
419
|
-
function
|
|
419
|
+
function _o() {
|
|
420
420
|
return Kn || (Kn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
421
|
-
function e(u,
|
|
422
|
-
return u ===
|
|
421
|
+
function e(u, d) {
|
|
422
|
+
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
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 =
|
|
426
|
-
on.useSyncExternalStoreWithSelector = function(u,
|
|
425
|
+
var t = ne, n = Rr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
426
|
+
on.useSyncExternalStoreWithSelector = function(u, d, f, b, p) {
|
|
427
427
|
var v = i(null);
|
|
428
428
|
if (v.current === null) {
|
|
429
429
|
var h = { hasValue: !1, value: null };
|
|
@@ -431,48 +431,48 @@ function Eo() {
|
|
|
431
431
|
} else h = v.current;
|
|
432
432
|
v = c(
|
|
433
433
|
function() {
|
|
434
|
-
function w(
|
|
435
|
-
if (!
|
|
436
|
-
if (
|
|
437
|
-
var
|
|
438
|
-
if (p(
|
|
439
|
-
return
|
|
434
|
+
function w(j) {
|
|
435
|
+
if (!_) {
|
|
436
|
+
if (_ = !0, R = j, j = b(j), p !== void 0 && h.hasValue) {
|
|
437
|
+
var M = h.value;
|
|
438
|
+
if (p(M, j))
|
|
439
|
+
return T = M;
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return T = j;
|
|
442
442
|
}
|
|
443
|
-
if (
|
|
444
|
-
return
|
|
445
|
-
var N =
|
|
446
|
-
return p !== void 0 && p(
|
|
443
|
+
if (M = T, r(R, j))
|
|
444
|
+
return M;
|
|
445
|
+
var N = b(j);
|
|
446
|
+
return p !== void 0 && p(M, N) ? (R = j, M) : (R = j, T = N);
|
|
447
447
|
}
|
|
448
|
-
var
|
|
448
|
+
var _ = !1, R, T, O = f === void 0 ? null : f;
|
|
449
449
|
return [
|
|
450
450
|
function() {
|
|
451
|
-
return w(
|
|
451
|
+
return w(d());
|
|
452
452
|
},
|
|
453
453
|
O === null ? void 0 : function() {
|
|
454
454
|
return w(O());
|
|
455
455
|
}
|
|
456
456
|
];
|
|
457
457
|
},
|
|
458
|
-
[
|
|
458
|
+
[d, f, b, p]
|
|
459
459
|
);
|
|
460
|
-
var
|
|
460
|
+
var m = o(u, v[0], v[1]);
|
|
461
461
|
return a(
|
|
462
462
|
function() {
|
|
463
|
-
h.hasValue = !0, h.value =
|
|
463
|
+
h.hasValue = !0, h.value = m;
|
|
464
464
|
},
|
|
465
|
-
[
|
|
466
|
-
), l(
|
|
465
|
+
[m]
|
|
466
|
+
), l(m), m;
|
|
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
|
}
|
|
470
470
|
var Jn;
|
|
471
|
-
function
|
|
472
|
-
return Jn || (Jn = 1, process.env.NODE_ENV === "production" ?
|
|
471
|
+
function To() {
|
|
472
|
+
return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? Rt.exports = Eo() : Rt.exports = _o()), Rt.exports;
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
const pn = /* @__PURE__ */ new WeakMap(),
|
|
474
|
+
var Oo = To();
|
|
475
|
+
const pn = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), zt = {
|
|
476
476
|
current: []
|
|
477
477
|
};
|
|
478
478
|
let sn = !1;
|
|
@@ -482,7 +482,7 @@ function Er(e) {
|
|
|
482
482
|
if (zt.current.includes(t))
|
|
483
483
|
continue;
|
|
484
484
|
zt.current.push(t), t.recompute();
|
|
485
|
-
const n =
|
|
485
|
+
const n = Mo.get(t);
|
|
486
486
|
if (n)
|
|
487
487
|
for (const r of n) {
|
|
488
488
|
const o = pn.get(r);
|
|
@@ -490,7 +490,7 @@ function Er(e) {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function $o(e) {
|
|
494
494
|
const t = {
|
|
495
495
|
prevVal: e.prevState,
|
|
496
496
|
currentVal: e.state
|
|
@@ -498,7 +498,7 @@ function Mo(e) {
|
|
|
498
498
|
for (const n of e.listeners)
|
|
499
499
|
n(t);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ko(e) {
|
|
502
502
|
const t = {
|
|
503
503
|
prevVal: e.prevState,
|
|
504
504
|
currentVal: e.state
|
|
@@ -514,7 +514,7 @@ function Io(e) {
|
|
|
514
514
|
_t.clear();
|
|
515
515
|
for (const n of t) {
|
|
516
516
|
const r = Zn.get(n) ?? n.prevState;
|
|
517
|
-
n.prevState = r,
|
|
517
|
+
n.prevState = r, $o(n);
|
|
518
518
|
}
|
|
519
519
|
for (const n of t) {
|
|
520
520
|
const r = pn.get(n);
|
|
@@ -524,14 +524,14 @@ function Io(e) {
|
|
|
524
524
|
const r = pn.get(n);
|
|
525
525
|
if (r)
|
|
526
526
|
for (const o of r)
|
|
527
|
-
|
|
527
|
+
ko(o);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
} finally {
|
|
531
531
|
sn = !1, zt.current = [], Zn.clear();
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Ao(e) {
|
|
535
535
|
return typeof e == "function";
|
|
536
536
|
}
|
|
537
537
|
class _r {
|
|
@@ -547,12 +547,12 @@ 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) : Ao(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), Io(this);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function bt(e, t = (r) => r, n = {}) {
|
|
554
|
-
const r = n.equal ??
|
|
555
|
-
return
|
|
554
|
+
const r = n.equal ?? Lo;
|
|
555
|
+
return Oo.useSyncExternalStoreWithSelector(
|
|
556
556
|
e.subscribe,
|
|
557
557
|
() => e.state,
|
|
558
558
|
() => e.state,
|
|
@@ -560,7 +560,7 @@ function bt(e, t = (r) => r, n = {}) {
|
|
|
560
560
|
r
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Lo(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)
|
|
@@ -608,47 +608,47 @@ const he = new _r({
|
|
|
608
608
|
width: "100px"
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
|
-
function
|
|
612
|
-
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((
|
|
613
|
-
(
|
|
611
|
+
function No(e, t) {
|
|
612
|
+
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((d) => ({ id: d, label: d }))).filter(
|
|
613
|
+
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
614
614
|
), { tableId: i, visibility: a } = he.state, c = JSON.parse(
|
|
615
615
|
localStorage.getItem(Tr(i)) || "[]"
|
|
616
616
|
), l = [
|
|
617
|
-
...c.map((
|
|
618
|
-
...o.filter((
|
|
619
|
-
], u = l.reduce((
|
|
620
|
-
he.setState((
|
|
621
|
-
...
|
|
617
|
+
...c.map((d) => o.find((f) => f.id === d)).filter(Boolean),
|
|
618
|
+
...o.filter((d) => !c.includes(d.id))
|
|
619
|
+
], u = l.reduce((d, f) => (d[f.id] = a[f.id] ?? !0, d), {});
|
|
620
|
+
he.setState((d) => ({
|
|
621
|
+
...d,
|
|
622
622
|
data: e,
|
|
623
623
|
columnOrder: l,
|
|
624
624
|
visibility: u,
|
|
625
|
-
sortableColumns: l.map((
|
|
626
|
-
id:
|
|
627
|
-
label:
|
|
625
|
+
sortableColumns: l.map((f) => ({
|
|
626
|
+
id: f.id,
|
|
627
|
+
label: f.label,
|
|
628
628
|
sortable: !0,
|
|
629
|
-
backgroundColor:
|
|
629
|
+
backgroundColor: f.backgroundColor
|
|
630
630
|
}))
|
|
631
631
|
}));
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function zo(e) {
|
|
634
634
|
he.setState((t) => ({
|
|
635
635
|
...t,
|
|
636
636
|
tableId: e
|
|
637
637
|
}));
|
|
638
638
|
}
|
|
639
|
-
const
|
|
639
|
+
const Po = (e) => {
|
|
640
640
|
he.setState((t) => ({
|
|
641
641
|
...t,
|
|
642
642
|
actionsConfig: e
|
|
643
643
|
}));
|
|
644
|
-
}, Tr = (e) => `table_column_order_v1:${e}`, Or = (e) => `table_column_visibility_v1:${e}`,
|
|
644
|
+
}, Tr = (e) => `table_column_order_v1:${e}`, Or = (e) => `table_column_visibility_v1:${e}`, Yo = (e) => {
|
|
645
645
|
const { tableId: t } = he.state;
|
|
646
646
|
localStorage.setItem(Tr(t), JSON.stringify(e.map((n) => n.id))), he.setState((n) => ({
|
|
647
647
|
...n,
|
|
648
648
|
columnOrder: e
|
|
649
649
|
})), he.setState((n) => ({ ...n, columnOrder: e }));
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function Fo(e) {
|
|
652
652
|
he.setState((t) => t.sortColumn === e ? {
|
|
653
653
|
...t,
|
|
654
654
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
@@ -658,7 +658,7 @@ function Yo(e) {
|
|
|
658
658
|
sortDirection: "asc"
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const Vo = (e) => {
|
|
662
662
|
he.setState((t) => {
|
|
663
663
|
const n = {
|
|
664
664
|
...t.visibility,
|
|
@@ -669,7 +669,7 @@ const Fo = (e) => {
|
|
|
669
669
|
visibility: n
|
|
670
670
|
};
|
|
671
671
|
});
|
|
672
|
-
},
|
|
672
|
+
}, Ho = (e) => {
|
|
673
673
|
if (!e) return;
|
|
674
674
|
const t = localStorage.getItem(Or(e));
|
|
675
675
|
if (t)
|
|
@@ -682,7 +682,7 @@ const Fo = (e) => {
|
|
|
682
682
|
} catch {
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
|
-
function
|
|
685
|
+
function Wo() {
|
|
686
686
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
687
687
|
t[n] = arguments[n];
|
|
688
688
|
return B(
|
|
@@ -722,7 +722,7 @@ function tt(e) {
|
|
|
722
722
|
return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Mr(e) ? e.ownerDocument : document : document : document;
|
|
723
723
|
}
|
|
724
724
|
const Te = Gt ? po : H;
|
|
725
|
-
function
|
|
725
|
+
function jn(e) {
|
|
726
726
|
const t = U(e);
|
|
727
727
|
return Te(() => {
|
|
728
728
|
t.current = e;
|
|
@@ -732,7 +732,7 @@ function Rn(e) {
|
|
|
732
732
|
return t.current == null ? void 0 : t.current(...r);
|
|
733
733
|
}, []);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Bo() {
|
|
736
736
|
const e = U(null), t = le((r, o) => {
|
|
737
737
|
e.current = setInterval(r, o);
|
|
738
738
|
}, []), n = le(() => {
|
|
@@ -759,7 +759,7 @@ function yt(e, t) {
|
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
761
|
function Pt(e) {
|
|
762
|
-
const t =
|
|
762
|
+
const t = jn(e), n = U(null), r = le(
|
|
763
763
|
(o) => {
|
|
764
764
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
765
765
|
},
|
|
@@ -790,8 +790,8 @@ function $r(e) {
|
|
|
790
790
|
return r.reduce((i, a) => {
|
|
791
791
|
const c = Object.entries(a);
|
|
792
792
|
for (const [l, u] of c) {
|
|
793
|
-
const
|
|
794
|
-
|
|
793
|
+
const d = i[l];
|
|
794
|
+
d != null && (i[l] = d + e * u);
|
|
795
795
|
}
|
|
796
796
|
return i;
|
|
797
797
|
}, {
|
|
@@ -800,10 +800,10 @@ function $r(e) {
|
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
const Je = /* @__PURE__ */ $r(1), Yt = /* @__PURE__ */ $r(-1);
|
|
803
|
-
function
|
|
803
|
+
function Uo(e) {
|
|
804
804
|
return "clientX" in e && "clientY" in e;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Rn(e) {
|
|
807
807
|
if (!e)
|
|
808
808
|
return !1;
|
|
809
809
|
const {
|
|
@@ -811,7 +811,7 @@ function jn(e) {
|
|
|
811
811
|
} = ge(e.target);
|
|
812
812
|
return t && e instanceof t;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Go(e) {
|
|
815
815
|
if (!e)
|
|
816
816
|
return !1;
|
|
817
817
|
const {
|
|
@@ -820,7 +820,7 @@ function Uo(e) {
|
|
|
820
820
|
return t && e instanceof t;
|
|
821
821
|
}
|
|
822
822
|
function mn(e) {
|
|
823
|
-
if (
|
|
823
|
+
if (Go(e)) {
|
|
824
824
|
if (e.touches && e.touches.length) {
|
|
825
825
|
const {
|
|
826
826
|
clientX: t,
|
|
@@ -841,7 +841,7 @@ function mn(e) {
|
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
return
|
|
844
|
+
return Uo(e) ? {
|
|
845
845
|
x: e.clientX,
|
|
846
846
|
y: e.clientY
|
|
847
847
|
} : null;
|
|
@@ -886,23 +886,23 @@ const Ze = /* @__PURE__ */ Object.freeze({
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
}), er = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
889
|
-
function
|
|
889
|
+
function Xo(e) {
|
|
890
890
|
return e.matches(er) ? e : e.querySelector(er);
|
|
891
891
|
}
|
|
892
|
-
const
|
|
892
|
+
const qo = {
|
|
893
893
|
display: "none"
|
|
894
894
|
};
|
|
895
|
-
function
|
|
895
|
+
function Ko(e) {
|
|
896
896
|
let {
|
|
897
897
|
id: t,
|
|
898
898
|
value: n
|
|
899
899
|
} = e;
|
|
900
900
|
return ne.createElement("div", {
|
|
901
901
|
id: t,
|
|
902
|
-
style:
|
|
902
|
+
style: qo
|
|
903
903
|
}, n);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Jo(e) {
|
|
906
906
|
let {
|
|
907
907
|
id: t,
|
|
908
908
|
announcement: n,
|
|
@@ -930,7 +930,7 @@ function Ko(e) {
|
|
|
930
930
|
"aria-atomic": !0
|
|
931
931
|
}, n);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Zo() {
|
|
934
934
|
const [e, t] = oe("");
|
|
935
935
|
return {
|
|
936
936
|
announce: le((r) => {
|
|
@@ -939,16 +939,16 @@ function Jo() {
|
|
|
939
939
|
announcement: e
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
const
|
|
943
|
-
function
|
|
944
|
-
const t = He(
|
|
942
|
+
const kr = /* @__PURE__ */ vt(null);
|
|
943
|
+
function Qo(e) {
|
|
944
|
+
const t = He(kr);
|
|
945
945
|
H(() => {
|
|
946
946
|
if (!t)
|
|
947
947
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
948
948
|
return t(e);
|
|
949
949
|
}, [e, t]);
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function ei() {
|
|
952
952
|
const [e] = oe(() => /* @__PURE__ */ new Set()), t = le((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
953
953
|
return [le((r) => {
|
|
954
954
|
let {
|
|
@@ -961,13 +961,13 @@ function Qo() {
|
|
|
961
961
|
});
|
|
962
962
|
}, [e]), t];
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const ti = {
|
|
965
965
|
draggable: `
|
|
966
966
|
To pick up a draggable item, press the space bar.
|
|
967
967
|
While dragging, use the arrow keys to move the item.
|
|
968
968
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
969
969
|
`
|
|
970
|
-
},
|
|
970
|
+
}, ni = {
|
|
971
971
|
onDragStart(e) {
|
|
972
972
|
let {
|
|
973
973
|
active: t
|
|
@@ -995,78 +995,78 @@ const ei = {
|
|
|
995
995
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
|
-
function
|
|
998
|
+
function ri(e) {
|
|
999
999
|
let {
|
|
1000
|
-
announcements: t =
|
|
1000
|
+
announcements: t = ni,
|
|
1001
1001
|
container: n,
|
|
1002
1002
|
hiddenTextDescribedById: r,
|
|
1003
|
-
screenReaderInstructions: o =
|
|
1003
|
+
screenReaderInstructions: o = ti
|
|
1004
1004
|
} = e;
|
|
1005
1005
|
const {
|
|
1006
1006
|
announce: i,
|
|
1007
1007
|
announcement: a
|
|
1008
|
-
} =
|
|
1008
|
+
} = Zo(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
|
|
1009
1009
|
if (H(() => {
|
|
1010
1010
|
u(!0);
|
|
1011
|
-
}, []),
|
|
1012
|
-
onDragStart(
|
|
1011
|
+
}, []), Qo(B(() => ({
|
|
1012
|
+
onDragStart(f) {
|
|
1013
1013
|
let {
|
|
1014
|
-
active:
|
|
1015
|
-
} =
|
|
1014
|
+
active: b
|
|
1015
|
+
} = f;
|
|
1016
1016
|
i(t.onDragStart({
|
|
1017
|
-
active:
|
|
1017
|
+
active: b
|
|
1018
1018
|
}));
|
|
1019
1019
|
},
|
|
1020
|
-
onDragMove(
|
|
1020
|
+
onDragMove(f) {
|
|
1021
1021
|
let {
|
|
1022
|
-
active:
|
|
1022
|
+
active: b,
|
|
1023
1023
|
over: p
|
|
1024
|
-
} =
|
|
1024
|
+
} = f;
|
|
1025
1025
|
t.onDragMove && i(t.onDragMove({
|
|
1026
|
-
active:
|
|
1026
|
+
active: b,
|
|
1027
1027
|
over: p
|
|
1028
1028
|
}));
|
|
1029
1029
|
},
|
|
1030
|
-
onDragOver(
|
|
1030
|
+
onDragOver(f) {
|
|
1031
1031
|
let {
|
|
1032
|
-
active:
|
|
1032
|
+
active: b,
|
|
1033
1033
|
over: p
|
|
1034
|
-
} =
|
|
1034
|
+
} = f;
|
|
1035
1035
|
i(t.onDragOver({
|
|
1036
|
-
active:
|
|
1036
|
+
active: b,
|
|
1037
1037
|
over: p
|
|
1038
1038
|
}));
|
|
1039
1039
|
},
|
|
1040
|
-
onDragEnd(
|
|
1040
|
+
onDragEnd(f) {
|
|
1041
1041
|
let {
|
|
1042
|
-
active:
|
|
1042
|
+
active: b,
|
|
1043
1043
|
over: p
|
|
1044
|
-
} =
|
|
1044
|
+
} = f;
|
|
1045
1045
|
i(t.onDragEnd({
|
|
1046
|
-
active:
|
|
1046
|
+
active: b,
|
|
1047
1047
|
over: p
|
|
1048
1048
|
}));
|
|
1049
1049
|
},
|
|
1050
|
-
onDragCancel(
|
|
1050
|
+
onDragCancel(f) {
|
|
1051
1051
|
let {
|
|
1052
|
-
active:
|
|
1052
|
+
active: b,
|
|
1053
1053
|
over: p
|
|
1054
|
-
} =
|
|
1054
|
+
} = f;
|
|
1055
1055
|
i(t.onDragCancel({
|
|
1056
|
-
active:
|
|
1056
|
+
active: b,
|
|
1057
1057
|
over: p
|
|
1058
1058
|
}));
|
|
1059
1059
|
}
|
|
1060
1060
|
}), [i, t])), !l)
|
|
1061
1061
|
return null;
|
|
1062
|
-
const
|
|
1062
|
+
const d = ne.createElement(ne.Fragment, null, ne.createElement(Ko, {
|
|
1063
1063
|
id: r,
|
|
1064
1064
|
value: o.draggable
|
|
1065
|
-
}), ne.createElement(
|
|
1065
|
+
}), ne.createElement(Jo, {
|
|
1066
1066
|
id: c,
|
|
1067
1067
|
announcement: a
|
|
1068
1068
|
}));
|
|
1069
|
-
return n ?
|
|
1069
|
+
return n ? wo(d, n) : d;
|
|
1070
1070
|
}
|
|
1071
1071
|
var te;
|
|
1072
1072
|
(function(e) {
|
|
@@ -1074,7 +1074,7 @@ var te;
|
|
|
1074
1074
|
})(te || (te = {}));
|
|
1075
1075
|
function Ft() {
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function oi(e, t) {
|
|
1078
1078
|
return B(
|
|
1079
1079
|
() => ({
|
|
1080
1080
|
sensor: e,
|
|
@@ -1084,7 +1084,7 @@ function ri(e, t) {
|
|
|
1084
1084
|
[e, t]
|
|
1085
1085
|
);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function ii() {
|
|
1088
1088
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1089
1089
|
t[n] = arguments[n];
|
|
1090
1090
|
return B(
|
|
@@ -1093,14 +1093,14 @@ function oi() {
|
|
|
1093
1093
|
[...t]
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1096
|
+
const De = /* @__PURE__ */ Object.freeze({
|
|
1097
1097
|
x: 0,
|
|
1098
1098
|
y: 0
|
|
1099
1099
|
});
|
|
1100
|
-
function
|
|
1100
|
+
function si(e, t) {
|
|
1101
1101
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function ai(e, t) {
|
|
1104
1104
|
let {
|
|
1105
1105
|
data: {
|
|
1106
1106
|
value: n
|
|
@@ -1112,7 +1112,7 @@ function si(e, t) {
|
|
|
1112
1112
|
} = t;
|
|
1113
1113
|
return n - r;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function ci(e, t) {
|
|
1116
1116
|
let {
|
|
1117
1117
|
data: {
|
|
1118
1118
|
value: n
|
|
@@ -1124,7 +1124,7 @@ function ai(e, t) {
|
|
|
1124
1124
|
} = t;
|
|
1125
1125
|
return r - n;
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function li(e, t) {
|
|
1128
1128
|
if (!e || e.length === 0)
|
|
1129
1129
|
return null;
|
|
1130
1130
|
const [n] = e;
|
|
@@ -1136,7 +1136,7 @@ function tr(e, t, n) {
|
|
|
1136
1136
|
y: n + e.height * 0.5
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
const
|
|
1139
|
+
const Ir = (e) => {
|
|
1140
1140
|
let {
|
|
1141
1141
|
collisionRect: t,
|
|
1142
1142
|
droppableRects: n,
|
|
@@ -1148,7 +1148,7 @@ const kr = (e) => {
|
|
|
1148
1148
|
id: c
|
|
1149
1149
|
} = a, l = n.get(c);
|
|
1150
1150
|
if (l) {
|
|
1151
|
-
const u =
|
|
1151
|
+
const u = si(tr(l), o);
|
|
1152
1152
|
i.push({
|
|
1153
1153
|
id: c,
|
|
1154
1154
|
data: {
|
|
@@ -1158,17 +1158,17 @@ const kr = (e) => {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
return i.sort(
|
|
1161
|
+
return i.sort(ai);
|
|
1162
1162
|
};
|
|
1163
|
-
function
|
|
1163
|
+
function ui(e, t) {
|
|
1164
1164
|
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), i = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = i - n;
|
|
1165
1165
|
if (r < o && n < i) {
|
|
1166
|
-
const l = t.width * t.height, u = e.width * e.height,
|
|
1167
|
-
return Number(
|
|
1166
|
+
const l = t.width * t.height, u = e.width * e.height, d = a * c, f = d / (l + u - d);
|
|
1167
|
+
return Number(f.toFixed(4));
|
|
1168
1168
|
}
|
|
1169
1169
|
return 0;
|
|
1170
1170
|
}
|
|
1171
|
-
const
|
|
1171
|
+
const di = (e) => {
|
|
1172
1172
|
let {
|
|
1173
1173
|
collisionRect: t,
|
|
1174
1174
|
droppableRects: n,
|
|
@@ -1180,7 +1180,7 @@ const ui = (e) => {
|
|
|
1180
1180
|
id: a
|
|
1181
1181
|
} = i, c = n.get(a);
|
|
1182
1182
|
if (c) {
|
|
1183
|
-
const l =
|
|
1183
|
+
const l = ui(c, t);
|
|
1184
1184
|
l > 0 && o.push({
|
|
1185
1185
|
id: a,
|
|
1186
1186
|
data: {
|
|
@@ -1190,9 +1190,9 @@ const ui = (e) => {
|
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
return o.sort(
|
|
1193
|
+
return o.sort(ci);
|
|
1194
1194
|
};
|
|
1195
|
-
function
|
|
1195
|
+
function fi(e, t, n) {
|
|
1196
1196
|
return {
|
|
1197
1197
|
...e,
|
|
1198
1198
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -1203,9 +1203,9 @@ function Ar(e, t) {
|
|
|
1203
1203
|
return e && t ? {
|
|
1204
1204
|
x: e.left - t.left,
|
|
1205
1205
|
y: e.top - t.top
|
|
1206
|
-
} :
|
|
1206
|
+
} : De;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function hi(e) {
|
|
1209
1209
|
return function(n) {
|
|
1210
1210
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
1211
1211
|
o[i - 1] = arguments[i];
|
|
@@ -1220,8 +1220,8 @@ function fi(e) {
|
|
|
1220
1220
|
});
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1224
|
-
function
|
|
1223
|
+
const gi = /* @__PURE__ */ hi(1);
|
|
1224
|
+
function pi(e) {
|
|
1225
1225
|
if (e.startsWith("matrix3d(")) {
|
|
1226
1226
|
const t = e.slice(9, -1).split(/, /);
|
|
1227
1227
|
return {
|
|
@@ -1241,8 +1241,8 @@ function gi(e) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
return null;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
const r =
|
|
1244
|
+
function vi(e, t, n) {
|
|
1245
|
+
const r = pi(t);
|
|
1246
1246
|
if (!r)
|
|
1247
1247
|
return e;
|
|
1248
1248
|
const {
|
|
@@ -1250,28 +1250,28 @@ function pi(e, t, n) {
|
|
|
1250
1250
|
scaleY: i,
|
|
1251
1251
|
x: a,
|
|
1252
1252
|
y: c
|
|
1253
|
-
} = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)),
|
|
1253
|
+
} = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, f = i ? e.height / i : e.height;
|
|
1254
1254
|
return {
|
|
1255
|
-
width:
|
|
1256
|
-
height:
|
|
1255
|
+
width: d,
|
|
1256
|
+
height: f,
|
|
1257
1257
|
top: u,
|
|
1258
|
-
right: l +
|
|
1259
|
-
bottom: u +
|
|
1258
|
+
right: l + d,
|
|
1259
|
+
bottom: u + f,
|
|
1260
1260
|
left: l
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const mi = {
|
|
1264
1264
|
ignoreTransform: !1
|
|
1265
1265
|
};
|
|
1266
1266
|
function nt(e, t) {
|
|
1267
|
-
t === void 0 && (t =
|
|
1267
|
+
t === void 0 && (t = mi);
|
|
1268
1268
|
let n = e.getBoundingClientRect();
|
|
1269
1269
|
if (t.ignoreTransform) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
transform: u,
|
|
1272
|
-
transformOrigin:
|
|
1272
|
+
transformOrigin: d
|
|
1273
1273
|
} = ge(e).getComputedStyle(e);
|
|
1274
|
-
u && (n =
|
|
1274
|
+
u && (n = vi(n, u, d));
|
|
1275
1275
|
}
|
|
1276
1276
|
const {
|
|
1277
1277
|
top: r,
|
|
@@ -1295,7 +1295,7 @@ function nr(e) {
|
|
|
1295
1295
|
ignoreTransform: !0
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function bi(e) {
|
|
1299
1299
|
const t = e.innerWidth, n = e.innerHeight;
|
|
1300
1300
|
return {
|
|
1301
1301
|
top: 0,
|
|
@@ -1306,10 +1306,10 @@ function mi(e) {
|
|
|
1306
1306
|
height: n
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function xi(e, t) {
|
|
1310
1310
|
return t === void 0 && (t = ge(e).getComputedStyle(e)), t.position === "fixed";
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function yi(e, t) {
|
|
1313
1313
|
t === void 0 && (t = ge(e).getComputedStyle(e));
|
|
1314
1314
|
const n = /(auto|scroll|overlay)/;
|
|
1315
1315
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -1327,7 +1327,7 @@ function En(e, t) {
|
|
|
1327
1327
|
if (!xt(o) || Mr(o) || n.includes(o))
|
|
1328
1328
|
return n;
|
|
1329
1329
|
const i = ge(e).getComputedStyle(o);
|
|
1330
|
-
return o !== e &&
|
|
1330
|
+
return o !== e && yi(o, i) && n.push(o), xi(o, i) ? n : r(o.parentNode);
|
|
1331
1331
|
}
|
|
1332
1332
|
return e ? r(e) : n;
|
|
1333
1333
|
}
|
|
@@ -1380,23 +1380,23 @@ function Yr(e) {
|
|
|
1380
1380
|
minScroll: t
|
|
1381
1381
|
};
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const wi = {
|
|
1384
1384
|
x: 0.2,
|
|
1385
1385
|
y: 0.2
|
|
1386
1386
|
};
|
|
1387
|
-
function
|
|
1387
|
+
function Si(e, t, n, r, o) {
|
|
1388
1388
|
let {
|
|
1389
1389
|
top: i,
|
|
1390
1390
|
left: a,
|
|
1391
1391
|
right: c,
|
|
1392
1392
|
bottom: l
|
|
1393
1393
|
} = n;
|
|
1394
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
1394
|
+
r === void 0 && (r = 10), o === void 0 && (o = wi);
|
|
1395
1395
|
const {
|
|
1396
1396
|
isTop: u,
|
|
1397
|
-
isBottom:
|
|
1398
|
-
isLeft:
|
|
1399
|
-
isRight:
|
|
1397
|
+
isBottom: d,
|
|
1398
|
+
isLeft: f,
|
|
1399
|
+
isRight: b
|
|
1400
1400
|
} = Yr(e), p = {
|
|
1401
1401
|
x: 0,
|
|
1402
1402
|
y: 0
|
|
@@ -1407,12 +1407,12 @@ function wi(e, t, n, r, o) {
|
|
|
1407
1407
|
height: t.height * o.y,
|
|
1408
1408
|
width: t.width * o.x
|
|
1409
1409
|
};
|
|
1410
|
-
return !u && i <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - i) / h.height)) : !
|
|
1410
|
+
return !u && i <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - i) / h.height)) : !d && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !b && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !f && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
|
|
1411
1411
|
direction: p,
|
|
1412
1412
|
speed: v
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Di(e) {
|
|
1416
1416
|
if (e === document.scrollingElement) {
|
|
1417
1417
|
const {
|
|
1418
1418
|
innerWidth: i,
|
|
@@ -1443,12 +1443,12 @@ function Si(e) {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
function Fr(e) {
|
|
1446
|
-
return e.reduce((t, n) => Je(t, bn(n)),
|
|
1446
|
+
return e.reduce((t, n) => Je(t, bn(n)), De);
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Ci(e) {
|
|
1449
1449
|
return e.reduce((t, n) => t + Nr(n), 0);
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function ji(e) {
|
|
1452
1452
|
return e.reduce((t, n) => t + zr(n), 0);
|
|
1453
1453
|
}
|
|
1454
1454
|
function Ri(e, t) {
|
|
@@ -1465,7 +1465,7 @@ function Ri(e, t) {
|
|
|
1465
1465
|
inline: "center"
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
|
-
const
|
|
1468
|
+
const Ei = [["x", ["left", "right"], Ci], ["y", ["top", "bottom"], ji]];
|
|
1469
1469
|
class _n {
|
|
1470
1470
|
constructor(t, n) {
|
|
1471
1471
|
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;
|
|
@@ -1473,12 +1473,12 @@ class _n {
|
|
|
1473
1473
|
this.rect = {
|
|
1474
1474
|
...t
|
|
1475
1475
|
}, this.width = t.width, this.height = t.height;
|
|
1476
|
-
for (const [i, a, c] of
|
|
1476
|
+
for (const [i, a, c] of Ei)
|
|
1477
1477
|
for (const l of a)
|
|
1478
1478
|
Object.defineProperty(this, l, {
|
|
1479
1479
|
get: () => {
|
|
1480
|
-
const u = c(r),
|
|
1481
|
-
return this.rect[l] +
|
|
1480
|
+
const u = c(r), d = o[i] - u;
|
|
1481
|
+
return this.rect[l] + d;
|
|
1482
1482
|
},
|
|
1483
1483
|
enumerable: !0
|
|
1484
1484
|
});
|
|
@@ -1501,7 +1501,7 @@ class dt {
|
|
|
1501
1501
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function _i(e) {
|
|
1505
1505
|
const {
|
|
1506
1506
|
EventTarget: t
|
|
1507
1507
|
} = ge(e);
|
|
@@ -1511,14 +1511,14 @@ function ln(e, t) {
|
|
|
1511
1511
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1512
1512
|
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;
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1514
|
+
var ye;
|
|
1515
1515
|
(function(e) {
|
|
1516
1516
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1517
|
-
})(
|
|
1517
|
+
})(ye || (ye = {}));
|
|
1518
1518
|
function rr(e) {
|
|
1519
1519
|
e.preventDefault();
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Ti(e) {
|
|
1522
1522
|
e.stopPropagation();
|
|
1523
1523
|
}
|
|
1524
1524
|
var V;
|
|
@@ -1529,7 +1529,7 @@ const Vr = {
|
|
|
1529
1529
|
start: [V.Space, V.Enter],
|
|
1530
1530
|
cancel: [V.Esc],
|
|
1531
1531
|
end: [V.Space, V.Enter, V.Tab]
|
|
1532
|
-
},
|
|
1532
|
+
}, Oi = (e, t) => {
|
|
1533
1533
|
let {
|
|
1534
1534
|
currentCoordinates: n
|
|
1535
1535
|
} = t;
|
|
@@ -1567,24 +1567,24 @@ class Hr {
|
|
|
1567
1567
|
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(ge(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1568
1568
|
}
|
|
1569
1569
|
attach() {
|
|
1570
|
-
this.handleStart(), this.windowListeners.add(
|
|
1570
|
+
this.handleStart(), this.windowListeners.add(ye.Resize, this.handleCancel), this.windowListeners.add(ye.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ye.Keydown, this.handleKeyDown));
|
|
1571
1571
|
}
|
|
1572
1572
|
handleStart() {
|
|
1573
1573
|
const {
|
|
1574
1574
|
activeNode: t,
|
|
1575
1575
|
onStart: n
|
|
1576
1576
|
} = this.props, r = t.node.current;
|
|
1577
|
-
r && Ri(r), n(
|
|
1577
|
+
r && Ri(r), n(De);
|
|
1578
1578
|
}
|
|
1579
1579
|
handleKeyDown(t) {
|
|
1580
|
-
if (
|
|
1580
|
+
if (Rn(t)) {
|
|
1581
1581
|
const {
|
|
1582
1582
|
active: n,
|
|
1583
1583
|
context: r,
|
|
1584
1584
|
options: o
|
|
1585
1585
|
} = this.props, {
|
|
1586
1586
|
keyboardCodes: i = Vr,
|
|
1587
|
-
coordinateGetter: a =
|
|
1587
|
+
coordinateGetter: a = Oi,
|
|
1588
1588
|
scrollBehavior: c = "smooth"
|
|
1589
1589
|
} = o, {
|
|
1590
1590
|
code: l
|
|
@@ -1599,66 +1599,66 @@ class Hr {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
const {
|
|
1601
1601
|
collisionRect: u
|
|
1602
|
-
} = r.current,
|
|
1602
|
+
} = r.current, d = u ? {
|
|
1603
1603
|
x: u.left,
|
|
1604
1604
|
y: u.top
|
|
1605
|
-
} :
|
|
1606
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1607
|
-
const
|
|
1605
|
+
} : De;
|
|
1606
|
+
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
1607
|
+
const f = a(t, {
|
|
1608
1608
|
active: n,
|
|
1609
1609
|
context: r.current,
|
|
1610
|
-
currentCoordinates:
|
|
1610
|
+
currentCoordinates: d
|
|
1611
1611
|
});
|
|
1612
|
-
if (
|
|
1613
|
-
const
|
|
1612
|
+
if (f) {
|
|
1613
|
+
const b = Yt(f, d), p = {
|
|
1614
1614
|
x: 0,
|
|
1615
1615
|
y: 0
|
|
1616
1616
|
}, {
|
|
1617
1617
|
scrollableAncestors: v
|
|
1618
1618
|
} = r.current;
|
|
1619
1619
|
for (const h of v) {
|
|
1620
|
-
const
|
|
1620
|
+
const m = t.code, {
|
|
1621
1621
|
isTop: w,
|
|
1622
|
-
isRight:
|
|
1623
|
-
isLeft:
|
|
1624
|
-
isBottom:
|
|
1622
|
+
isRight: _,
|
|
1623
|
+
isLeft: R,
|
|
1624
|
+
isBottom: T,
|
|
1625
1625
|
maxScroll: O,
|
|
1626
|
-
minScroll:
|
|
1627
|
-
} = Yr(h),
|
|
1628
|
-
x: Math.min(
|
|
1629
|
-
y: Math.min(
|
|
1630
|
-
}, W =
|
|
1631
|
-
if (W && N.x !==
|
|
1632
|
-
const
|
|
1633
|
-
if (Q && !
|
|
1626
|
+
minScroll: j
|
|
1627
|
+
} = Yr(h), M = Di(h), N = {
|
|
1628
|
+
x: Math.min(m === V.Right ? M.right - M.width / 2 : M.right, Math.max(m === V.Right ? M.left : M.left + M.width / 2, f.x)),
|
|
1629
|
+
y: Math.min(m === V.Down ? M.bottom - M.height / 2 : M.bottom, Math.max(m === V.Down ? M.top : M.top + M.height / 2, f.y))
|
|
1630
|
+
}, W = m === V.Right && !_ || m === V.Left && !R, Y = m === V.Down && !T || m === V.Up && !w;
|
|
1631
|
+
if (W && N.x !== f.x) {
|
|
1632
|
+
const k = h.scrollLeft + b.x, Q = m === V.Right && k <= O.x || m === V.Left && k >= j.x;
|
|
1633
|
+
if (Q && !b.y) {
|
|
1634
1634
|
h.scrollTo({
|
|
1635
|
-
left:
|
|
1635
|
+
left: k,
|
|
1636
1636
|
behavior: c
|
|
1637
1637
|
});
|
|
1638
1638
|
return;
|
|
1639
1639
|
}
|
|
1640
|
-
Q ? p.x = h.scrollLeft -
|
|
1640
|
+
Q ? p.x = h.scrollLeft - k : p.x = m === V.Right ? h.scrollLeft - O.x : h.scrollLeft - j.x, p.x && h.scrollBy({
|
|
1641
1641
|
left: -p.x,
|
|
1642
1642
|
behavior: c
|
|
1643
1643
|
});
|
|
1644
1644
|
break;
|
|
1645
|
-
} else if (Y && N.y !==
|
|
1646
|
-
const
|
|
1647
|
-
if (Q && !
|
|
1645
|
+
} else if (Y && N.y !== f.y) {
|
|
1646
|
+
const k = h.scrollTop + b.y, Q = m === V.Down && k <= O.y || m === V.Up && k >= j.y;
|
|
1647
|
+
if (Q && !b.x) {
|
|
1648
1648
|
h.scrollTo({
|
|
1649
|
-
top:
|
|
1649
|
+
top: k,
|
|
1650
1650
|
behavior: c
|
|
1651
1651
|
});
|
|
1652
1652
|
return;
|
|
1653
1653
|
}
|
|
1654
|
-
Q ? p.y = h.scrollTop -
|
|
1654
|
+
Q ? p.y = h.scrollTop - k : p.y = m === V.Down ? h.scrollTop - O.y : h.scrollTop - j.y, p.y && h.scrollBy({
|
|
1655
1655
|
top: -p.y,
|
|
1656
1656
|
behavior: c
|
|
1657
1657
|
});
|
|
1658
1658
|
break;
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
|
-
this.handleMove(t, Je(Yt(
|
|
1661
|
+
this.handleMove(t, Je(Yt(f, this.referenceCoordinates), p));
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
@@ -1714,13 +1714,13 @@ function ir(e) {
|
|
|
1714
1714
|
class Tn {
|
|
1715
1715
|
constructor(t, n, r) {
|
|
1716
1716
|
var o;
|
|
1717
|
-
r === void 0 && (r =
|
|
1717
|
+
r === void 0 && (r = _i(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
1718
1718
|
const {
|
|
1719
1719
|
event: i
|
|
1720
1720
|
} = t, {
|
|
1721
1721
|
target: a
|
|
1722
1722
|
} = i;
|
|
1723
|
-
this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(ge(a)), this.initialCoordinates = (o = mn(i)) != null ? o :
|
|
1723
|
+
this.props = t, this.events = n, this.document = tt(a), this.documentListeners = new dt(this.document), this.listeners = new dt(r), this.windowListeners = new dt(ge(a)), this.initialCoordinates = (o = mn(i)) != null ? o : De, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1724
1724
|
}
|
|
1725
1725
|
attach() {
|
|
1726
1726
|
const {
|
|
@@ -1734,7 +1734,7 @@ class Tn {
|
|
|
1734
1734
|
} = this;
|
|
1735
1735
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1736
1736
|
passive: !1
|
|
1737
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
1737
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(ye.Resize, this.handleCancel), this.windowListeners.add(ye.DragStart, rr), this.windowListeners.add(ye.VisibilityChange, this.handleCancel), this.windowListeners.add(ye.ContextMenu, rr), this.documentListeners.add(ye.Keydown, this.handleKeydown), n) {
|
|
1738
1738
|
if (r != null && r({
|
|
1739
1739
|
event: this.props.event,
|
|
1740
1740
|
activeNode: this.props.activeNode,
|
|
@@ -1768,9 +1768,9 @@ class Tn {
|
|
|
1768
1768
|
} = this, {
|
|
1769
1769
|
onStart: n
|
|
1770
1770
|
} = this.props;
|
|
1771
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
1771
|
+
t && (this.activated = !0, this.documentListeners.add(ye.Click, Ti, {
|
|
1772
1772
|
capture: !0
|
|
1773
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
1773
|
+
}), this.removeTextSelection(), this.documentListeners.add(ye.SelectionChange, this.removeTextSelection), n(t));
|
|
1774
1774
|
}
|
|
1775
1775
|
handleMove(t) {
|
|
1776
1776
|
var n;
|
|
@@ -1786,7 +1786,7 @@ class Tn {
|
|
|
1786
1786
|
} = i;
|
|
1787
1787
|
if (!o)
|
|
1788
1788
|
return;
|
|
1789
|
-
const l = (n = mn(t)) != null ? n :
|
|
1789
|
+
const l = (n = mn(t)) != null ? n : De, u = Yt(o, l);
|
|
1790
1790
|
if (!r && c) {
|
|
1791
1791
|
if (or(c)) {
|
|
1792
1792
|
if (c.tolerance != null && ln(u, c.tolerance))
|
|
@@ -1823,7 +1823,7 @@ class Tn {
|
|
|
1823
1823
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
|
-
const
|
|
1826
|
+
const Mi = {
|
|
1827
1827
|
cancel: {
|
|
1828
1828
|
name: "pointercancel"
|
|
1829
1829
|
},
|
|
@@ -1839,7 +1839,7 @@ class On extends Tn {
|
|
|
1839
1839
|
const {
|
|
1840
1840
|
event: n
|
|
1841
1841
|
} = t, r = tt(n.target);
|
|
1842
|
-
super(t,
|
|
1842
|
+
super(t, Mi, r);
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
On.activators = [{
|
|
@@ -1855,7 +1855,7 @@ On.activators = [{
|
|
|
1855
1855
|
}), !0);
|
|
1856
1856
|
}
|
|
1857
1857
|
}];
|
|
1858
|
-
const
|
|
1858
|
+
const $i = {
|
|
1859
1859
|
move: {
|
|
1860
1860
|
name: "mousemove"
|
|
1861
1861
|
},
|
|
@@ -1867,12 +1867,12 @@ var xn;
|
|
|
1867
1867
|
(function(e) {
|
|
1868
1868
|
e[e.RightClick = 2] = "RightClick";
|
|
1869
1869
|
})(xn || (xn = {}));
|
|
1870
|
-
class
|
|
1870
|
+
class ki extends Tn {
|
|
1871
1871
|
constructor(t) {
|
|
1872
|
-
super(t,
|
|
1872
|
+
super(t, $i, tt(t.event.target));
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
|
|
1875
|
+
ki.activators = [{
|
|
1876
1876
|
eventName: "onMouseDown",
|
|
1877
1877
|
handler: (e, t) => {
|
|
1878
1878
|
let {
|
|
@@ -1935,7 +1935,7 @@ var Vt;
|
|
|
1935
1935
|
(function(e) {
|
|
1936
1936
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1937
1937
|
})(Vt || (Vt = {}));
|
|
1938
|
-
function
|
|
1938
|
+
function Ai(e) {
|
|
1939
1939
|
let {
|
|
1940
1940
|
acceleration: t,
|
|
1941
1941
|
activator: n = ft.Pointer,
|
|
@@ -1946,20 +1946,20 @@ function ki(e) {
|
|
|
1946
1946
|
order: c = Vt.TreeOrder,
|
|
1947
1947
|
pointerCoordinates: l,
|
|
1948
1948
|
scrollableAncestors: u,
|
|
1949
|
-
scrollableAncestorRects:
|
|
1950
|
-
delta:
|
|
1951
|
-
threshold:
|
|
1949
|
+
scrollableAncestorRects: d,
|
|
1950
|
+
delta: f,
|
|
1951
|
+
threshold: b
|
|
1952
1952
|
} = e;
|
|
1953
|
-
const p =
|
|
1954
|
-
delta:
|
|
1953
|
+
const p = Ni({
|
|
1954
|
+
delta: f,
|
|
1955
1955
|
disabled: !i
|
|
1956
|
-
}), [v, h] =
|
|
1956
|
+
}), [v, h] = Bo(), m = U({
|
|
1957
1957
|
x: 0,
|
|
1958
1958
|
y: 0
|
|
1959
1959
|
}), w = U({
|
|
1960
1960
|
x: 0,
|
|
1961
1961
|
y: 0
|
|
1962
|
-
}),
|
|
1962
|
+
}), _ = B(() => {
|
|
1963
1963
|
switch (n) {
|
|
1964
1964
|
case ft.Pointer:
|
|
1965
1965
|
return l ? {
|
|
@@ -1971,37 +1971,37 @@ function ki(e) {
|
|
|
1971
1971
|
case ft.DraggableRect:
|
|
1972
1972
|
return o;
|
|
1973
1973
|
}
|
|
1974
|
-
}, [n, o, l]),
|
|
1975
|
-
const
|
|
1976
|
-
if (!
|
|
1974
|
+
}, [n, o, l]), R = U(null), T = le(() => {
|
|
1975
|
+
const j = R.current;
|
|
1976
|
+
if (!j)
|
|
1977
1977
|
return;
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1978
|
+
const M = m.current.x * w.current.x, N = m.current.y * w.current.y;
|
|
1979
|
+
j.scrollBy(M, N);
|
|
1980
1980
|
}, []), O = B(() => c === Vt.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1981
1981
|
H(
|
|
1982
1982
|
() => {
|
|
1983
|
-
if (!i || !u.length || !
|
|
1983
|
+
if (!i || !u.length || !_) {
|
|
1984
1984
|
h();
|
|
1985
1985
|
return;
|
|
1986
1986
|
}
|
|
1987
|
-
for (const
|
|
1988
|
-
if (r?.(
|
|
1987
|
+
for (const j of O) {
|
|
1988
|
+
if (r?.(j) === !1)
|
|
1989
1989
|
continue;
|
|
1990
|
-
const
|
|
1990
|
+
const M = u.indexOf(j), N = d[M];
|
|
1991
1991
|
if (!N)
|
|
1992
1992
|
continue;
|
|
1993
1993
|
const {
|
|
1994
1994
|
direction: W,
|
|
1995
1995
|
speed: Y
|
|
1996
|
-
} =
|
|
1997
|
-
for (const
|
|
1998
|
-
p[
|
|
1996
|
+
} = Si(j, N, _, t, b);
|
|
1997
|
+
for (const k of ["x", "y"])
|
|
1998
|
+
p[k][W[k]] || (Y[k] = 0, W[k] = 0);
|
|
1999
1999
|
if (Y.x > 0 || Y.y > 0) {
|
|
2000
|
-
h(),
|
|
2000
|
+
h(), R.current = j, v(T, a), m.current = Y, w.current = W;
|
|
2001
2001
|
return;
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
|
-
|
|
2004
|
+
m.current = {
|
|
2005
2005
|
x: 0,
|
|
2006
2006
|
y: 0
|
|
2007
2007
|
}, w.current = {
|
|
@@ -2012,25 +2012,25 @@ function ki(e) {
|
|
|
2012
2012
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2013
2013
|
[
|
|
2014
2014
|
t,
|
|
2015
|
-
|
|
2015
|
+
T,
|
|
2016
2016
|
r,
|
|
2017
2017
|
h,
|
|
2018
2018
|
i,
|
|
2019
2019
|
a,
|
|
2020
2020
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2021
|
-
JSON.stringify(
|
|
2021
|
+
JSON.stringify(_),
|
|
2022
2022
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2023
2023
|
JSON.stringify(p),
|
|
2024
2024
|
v,
|
|
2025
2025
|
u,
|
|
2026
2026
|
O,
|
|
2027
|
-
|
|
2027
|
+
d,
|
|
2028
2028
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2029
|
-
JSON.stringify(
|
|
2029
|
+
JSON.stringify(b)
|
|
2030
2030
|
]
|
|
2031
2031
|
);
|
|
2032
2032
|
}
|
|
2033
|
-
const
|
|
2033
|
+
const Li = {
|
|
2034
2034
|
x: {
|
|
2035
2035
|
[re.Backward]: !1,
|
|
2036
2036
|
[re.Forward]: !1
|
|
@@ -2040,7 +2040,7 @@ const Ai = {
|
|
|
2040
2040
|
[re.Forward]: !1
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2043
|
+
function Ni(e) {
|
|
2044
2044
|
let {
|
|
2045
2045
|
delta: t,
|
|
2046
2046
|
disabled: n
|
|
@@ -2048,7 +2048,7 @@ function Li(e) {
|
|
|
2048
2048
|
const r = vn(t);
|
|
2049
2049
|
return yt((o) => {
|
|
2050
2050
|
if (n || !r || !o)
|
|
2051
|
-
return
|
|
2051
|
+
return Li;
|
|
2052
2052
|
const i = {
|
|
2053
2053
|
x: Math.sign(t.x - r.x),
|
|
2054
2054
|
y: Math.sign(t.y - r.y)
|
|
@@ -2065,14 +2065,14 @@ function Li(e) {
|
|
|
2065
2065
|
};
|
|
2066
2066
|
}, [n, t, r]);
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function zi(e, t) {
|
|
2069
2069
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
2070
2070
|
return yt((o) => {
|
|
2071
2071
|
var i;
|
|
2072
2072
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
2073
2073
|
}, [r, t]);
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Pi(e, t) {
|
|
2076
2076
|
return B(() => e.reduce((n, r) => {
|
|
2077
2077
|
const {
|
|
2078
2078
|
sensor: o
|
|
@@ -2092,7 +2092,7 @@ var yn;
|
|
|
2092
2092
|
e.Optimized = "optimized";
|
|
2093
2093
|
})(yn || (yn = {}));
|
|
2094
2094
|
const sr = /* @__PURE__ */ new Map();
|
|
2095
|
-
function
|
|
2095
|
+
function Yi(e, t) {
|
|
2096
2096
|
let {
|
|
2097
2097
|
dragging: n,
|
|
2098
2098
|
dependencies: r,
|
|
@@ -2102,35 +2102,35 @@ function Pi(e, t) {
|
|
|
2102
2102
|
frequency: c,
|
|
2103
2103
|
measure: l,
|
|
2104
2104
|
strategy: u
|
|
2105
|
-
} = o,
|
|
2106
|
-
w === void 0 && (w = []), !
|
|
2107
|
-
}, [
|
|
2108
|
-
if (
|
|
2105
|
+
} = o, d = U(e), f = m(), b = gt(f), p = le(function(w) {
|
|
2106
|
+
w === void 0 && (w = []), !b.current && a((_) => _ === null ? w : _.concat(w.filter((R) => !_.includes(R))));
|
|
2107
|
+
}, [b]), v = U(null), h = yt((w) => {
|
|
2108
|
+
if (f && !n)
|
|
2109
2109
|
return sr;
|
|
2110
|
-
if (!w || w === sr ||
|
|
2111
|
-
const
|
|
2112
|
-
for (let
|
|
2113
|
-
if (!
|
|
2110
|
+
if (!w || w === sr || d.current !== e || i != null) {
|
|
2111
|
+
const _ = /* @__PURE__ */ new Map();
|
|
2112
|
+
for (let R of e) {
|
|
2113
|
+
if (!R)
|
|
2114
2114
|
continue;
|
|
2115
|
-
if (i && i.length > 0 && !i.includes(
|
|
2116
|
-
|
|
2115
|
+
if (i && i.length > 0 && !i.includes(R.id) && R.rect.current) {
|
|
2116
|
+
_.set(R.id, R.rect.current);
|
|
2117
2117
|
continue;
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2119
|
+
const T = R.node.current, O = T ? new _n(l(T), T) : null;
|
|
2120
|
+
R.rect.current = O, O && _.set(R.id, O);
|
|
2121
2121
|
}
|
|
2122
|
-
return
|
|
2122
|
+
return _;
|
|
2123
2123
|
}
|
|
2124
2124
|
return w;
|
|
2125
|
-
}, [e, i, n,
|
|
2125
|
+
}, [e, i, n, f, l]);
|
|
2126
2126
|
return H(() => {
|
|
2127
|
-
|
|
2127
|
+
d.current = e;
|
|
2128
2128
|
}, [e]), H(
|
|
2129
2129
|
() => {
|
|
2130
|
-
|
|
2130
|
+
f || p();
|
|
2131
2131
|
},
|
|
2132
2132
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2133
|
-
[n,
|
|
2133
|
+
[n, f]
|
|
2134
2134
|
), H(
|
|
2135
2135
|
() => {
|
|
2136
2136
|
i && i.length > 0 && a(null);
|
|
@@ -2139,18 +2139,18 @@ function Pi(e, t) {
|
|
|
2139
2139
|
[JSON.stringify(i)]
|
|
2140
2140
|
), H(
|
|
2141
2141
|
() => {
|
|
2142
|
-
|
|
2142
|
+
f || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
2143
2143
|
p(), v.current = null;
|
|
2144
2144
|
}, c));
|
|
2145
2145
|
},
|
|
2146
2146
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2147
|
-
[c,
|
|
2147
|
+
[c, f, p, ...r]
|
|
2148
2148
|
), {
|
|
2149
2149
|
droppableRects: h,
|
|
2150
2150
|
measureDroppableContainers: p,
|
|
2151
2151
|
measuringScheduled: i != null
|
|
2152
2152
|
};
|
|
2153
|
-
function
|
|
2153
|
+
function m() {
|
|
2154
2154
|
switch (u) {
|
|
2155
2155
|
case pt.Always:
|
|
2156
2156
|
return !1;
|
|
@@ -2164,15 +2164,15 @@ function Pi(e, t) {
|
|
|
2164
2164
|
function Wr(e, t) {
|
|
2165
2165
|
return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Fi(e, t) {
|
|
2168
2168
|
return Wr(e, t);
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function Vi(e) {
|
|
2171
2171
|
let {
|
|
2172
2172
|
callback: t,
|
|
2173
2173
|
disabled: n
|
|
2174
2174
|
} = e;
|
|
2175
|
-
const r =
|
|
2175
|
+
const r = jn(t), o = B(() => {
|
|
2176
2176
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
2177
2177
|
return;
|
|
2178
2178
|
const {
|
|
@@ -2187,7 +2187,7 @@ function Xt(e) {
|
|
|
2187
2187
|
callback: t,
|
|
2188
2188
|
disabled: n
|
|
2189
2189
|
} = e;
|
|
2190
|
-
const r =
|
|
2190
|
+
const r = jn(t), o = B(
|
|
2191
2191
|
() => {
|
|
2192
2192
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
2193
2193
|
return;
|
|
@@ -2201,11 +2201,11 @@ function Xt(e) {
|
|
|
2201
2201
|
);
|
|
2202
2202
|
return H(() => () => o?.disconnect(), [o]), o;
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function Hi(e) {
|
|
2205
2205
|
return new _n(nt(e), e);
|
|
2206
2206
|
}
|
|
2207
2207
|
function ar(e, t, n) {
|
|
2208
|
-
t === void 0 && (t =
|
|
2208
|
+
t === void 0 && (t = Hi);
|
|
2209
2209
|
const [r, o] = oe(null);
|
|
2210
2210
|
function i() {
|
|
2211
2211
|
o((l) => {
|
|
@@ -2215,19 +2215,19 @@ function ar(e, t, n) {
|
|
|
2215
2215
|
var u;
|
|
2216
2216
|
return (u = l ?? n) != null ? u : null;
|
|
2217
2217
|
}
|
|
2218
|
-
const
|
|
2219
|
-
return JSON.stringify(l) === JSON.stringify(
|
|
2218
|
+
const d = t(e);
|
|
2219
|
+
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
2222
|
-
const a =
|
|
2222
|
+
const a = Vi({
|
|
2223
2223
|
callback(l) {
|
|
2224
2224
|
if (e)
|
|
2225
2225
|
for (const u of l) {
|
|
2226
2226
|
const {
|
|
2227
|
-
type:
|
|
2228
|
-
target:
|
|
2227
|
+
type: d,
|
|
2228
|
+
target: f
|
|
2229
2229
|
} = u;
|
|
2230
|
-
if (
|
|
2230
|
+
if (d === "childList" && f instanceof HTMLElement && f.contains(e)) {
|
|
2231
2231
|
i();
|
|
2232
2232
|
break;
|
|
2233
2233
|
}
|
|
@@ -2243,18 +2243,18 @@ function ar(e, t, n) {
|
|
|
2243
2243
|
})) : (c?.disconnect(), a?.disconnect());
|
|
2244
2244
|
}, [e]), r;
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function Wi(e) {
|
|
2247
2247
|
const t = Wr(e);
|
|
2248
2248
|
return Ar(e, t);
|
|
2249
2249
|
}
|
|
2250
2250
|
const cr = [];
|
|
2251
|
-
function
|
|
2251
|
+
function Bi(e) {
|
|
2252
2252
|
const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : cr, [e]);
|
|
2253
2253
|
return H(() => {
|
|
2254
2254
|
t.current = e;
|
|
2255
2255
|
}, [e]), n;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function Ui(e) {
|
|
2258
2258
|
const [t, n] = oe(null), r = U(e), o = le((i) => {
|
|
2259
2259
|
const a = cn(i.target);
|
|
2260
2260
|
a && n((c) => c ? (c.set(a, bn(a)), new Map(c)) : null);
|
|
@@ -2280,7 +2280,7 @@ function Bi(e) {
|
|
|
2280
2280
|
u?.removeEventListener("scroll", o);
|
|
2281
2281
|
});
|
|
2282
2282
|
}
|
|
2283
|
-
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Je(i, a),
|
|
2283
|
+
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((i, a) => Je(i, a), De) : Fr(e) : De, [e, t]);
|
|
2284
2284
|
}
|
|
2285
2285
|
function lr(e, t) {
|
|
2286
2286
|
t === void 0 && (t = []);
|
|
@@ -2292,11 +2292,11 @@ function lr(e, t) {
|
|
|
2292
2292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2293
2293
|
t
|
|
2294
2294
|
), H(() => {
|
|
2295
|
-
const r = e !==
|
|
2295
|
+
const r = e !== De;
|
|
2296
2296
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
2297
|
-
}, [e]), n.current ? Yt(e, n.current) :
|
|
2297
|
+
}, [e]), n.current ? Yt(e, n.current) : De;
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function Gi(e) {
|
|
2300
2300
|
H(
|
|
2301
2301
|
() => {
|
|
2302
2302
|
if (!Gt)
|
|
@@ -2322,7 +2322,7 @@ function Ui(e) {
|
|
|
2322
2322
|
})
|
|
2323
2323
|
);
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Xi(e, t) {
|
|
2326
2326
|
return B(() => e.reduce((n, r) => {
|
|
2327
2327
|
let {
|
|
2328
2328
|
eventName: o,
|
|
@@ -2334,10 +2334,10 @@ function Gi(e, t) {
|
|
|
2334
2334
|
}, {}), [e, t]);
|
|
2335
2335
|
}
|
|
2336
2336
|
function Br(e) {
|
|
2337
|
-
return B(() => e ?
|
|
2337
|
+
return B(() => e ? bi(e) : null, [e]);
|
|
2338
2338
|
}
|
|
2339
2339
|
const ur = [];
|
|
2340
|
-
function
|
|
2340
|
+
function qi(e, t) {
|
|
2341
2341
|
t === void 0 && (t = nt);
|
|
2342
2342
|
const [n] = e, r = Br(n ? ge(n) : null), [o, i] = oe(ur);
|
|
2343
2343
|
function a() {
|
|
@@ -2350,7 +2350,7 @@ function Xi(e, t) {
|
|
|
2350
2350
|
c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
|
|
2351
2351
|
}, [e]), o;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Ki(e) {
|
|
2354
2354
|
if (!e)
|
|
2355
2355
|
return null;
|
|
2356
2356
|
if (e.children.length > 1)
|
|
@@ -2358,30 +2358,30 @@ function qi(e) {
|
|
|
2358
2358
|
const t = e.children[0];
|
|
2359
2359
|
return xt(t) ? t : e;
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Ji(e) {
|
|
2362
2362
|
let {
|
|
2363
2363
|
measure: t
|
|
2364
2364
|
} = e;
|
|
2365
2365
|
const [n, r] = oe(null), o = le((u) => {
|
|
2366
2366
|
for (const {
|
|
2367
|
-
target:
|
|
2367
|
+
target: d
|
|
2368
2368
|
} of u)
|
|
2369
|
-
if (xt(
|
|
2370
|
-
r((
|
|
2371
|
-
const
|
|
2372
|
-
return
|
|
2373
|
-
...
|
|
2374
|
-
width:
|
|
2375
|
-
height:
|
|
2376
|
-
} :
|
|
2369
|
+
if (xt(d)) {
|
|
2370
|
+
r((f) => {
|
|
2371
|
+
const b = t(d);
|
|
2372
|
+
return f ? {
|
|
2373
|
+
...f,
|
|
2374
|
+
width: b.width,
|
|
2375
|
+
height: b.height
|
|
2376
|
+
} : b;
|
|
2377
2377
|
});
|
|
2378
2378
|
break;
|
|
2379
2379
|
}
|
|
2380
2380
|
}, [t]), i = Xt({
|
|
2381
2381
|
callback: o
|
|
2382
2382
|
}), a = le((u) => {
|
|
2383
|
-
const
|
|
2384
|
-
i?.disconnect(),
|
|
2383
|
+
const d = Ki(u);
|
|
2384
|
+
i?.disconnect(), d && i?.observe(d), r(d ? t(d) : null);
|
|
2385
2385
|
}, [t, i]), [c, l] = Pt(a);
|
|
2386
2386
|
return B(() => ({
|
|
2387
2387
|
nodeRef: c,
|
|
@@ -2389,13 +2389,13 @@ function Ki(e) {
|
|
|
2389
2389
|
setRef: l
|
|
2390
2390
|
}), [n, c, l]);
|
|
2391
2391
|
}
|
|
2392
|
-
const
|
|
2392
|
+
const Zi = [{
|
|
2393
2393
|
sensor: On,
|
|
2394
2394
|
options: {}
|
|
2395
2395
|
}, {
|
|
2396
2396
|
sensor: Hr,
|
|
2397
2397
|
options: {}
|
|
2398
|
-
}],
|
|
2398
|
+
}], Qi = {
|
|
2399
2399
|
current: {}
|
|
2400
2400
|
}, $t = {
|
|
2401
2401
|
draggable: {
|
|
@@ -2431,7 +2431,7 @@ class ht extends Map {
|
|
|
2431
2431
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
|
-
const
|
|
2434
|
+
const es = {
|
|
2435
2435
|
activatorEvent: null,
|
|
2436
2436
|
active: null,
|
|
2437
2437
|
activeNode: null,
|
|
@@ -2455,7 +2455,7 @@ const Qi = {
|
|
|
2455
2455
|
measureDroppableContainers: Ft,
|
|
2456
2456
|
windowRect: null,
|
|
2457
2457
|
measuringScheduled: !1
|
|
2458
|
-
},
|
|
2458
|
+
}, ts = {
|
|
2459
2459
|
activatorEvent: null,
|
|
2460
2460
|
activators: [],
|
|
2461
2461
|
active: null,
|
|
@@ -2467,8 +2467,8 @@ const Qi = {
|
|
|
2467
2467
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2468
2468
|
over: null,
|
|
2469
2469
|
measureDroppableContainers: Ft
|
|
2470
|
-
}, qt = /* @__PURE__ */ vt(
|
|
2471
|
-
function
|
|
2470
|
+
}, qt = /* @__PURE__ */ vt(ts), Ur = /* @__PURE__ */ vt(es);
|
|
2471
|
+
function ns() {
|
|
2472
2472
|
return {
|
|
2473
2473
|
draggable: {
|
|
2474
2474
|
active: null,
|
|
@@ -2487,7 +2487,7 @@ function ts() {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function rs(e, t) {
|
|
2491
2491
|
switch (t.type) {
|
|
2492
2492
|
case te.DragStart:
|
|
2493
2493
|
return {
|
|
@@ -2580,7 +2580,7 @@ function ns(e, t) {
|
|
|
2580
2580
|
return e;
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function os(e) {
|
|
2584
2584
|
let {
|
|
2585
2585
|
disabled: t
|
|
2586
2586
|
} = e;
|
|
@@ -2591,7 +2591,7 @@ function rs(e) {
|
|
|
2591
2591
|
} = He(qt), i = vn(r), a = vn(n?.id);
|
|
2592
2592
|
return H(() => {
|
|
2593
2593
|
if (!t && !r && i && a != null) {
|
|
2594
|
-
if (!
|
|
2594
|
+
if (!Rn(i) || document.activeElement === i.target)
|
|
2595
2595
|
return;
|
|
2596
2596
|
const c = o.get(a);
|
|
2597
2597
|
if (!c)
|
|
@@ -2603,12 +2603,12 @@ function rs(e) {
|
|
|
2603
2603
|
if (!l.current && !u.current)
|
|
2604
2604
|
return;
|
|
2605
2605
|
requestAnimationFrame(() => {
|
|
2606
|
-
for (const
|
|
2607
|
-
if (!
|
|
2606
|
+
for (const d of [l.current, u.current]) {
|
|
2607
|
+
if (!d)
|
|
2608
2608
|
continue;
|
|
2609
|
-
const
|
|
2610
|
-
if (
|
|
2611
|
-
|
|
2609
|
+
const f = Xo(d);
|
|
2610
|
+
if (f) {
|
|
2611
|
+
f.focus();
|
|
2612
2612
|
break;
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
@@ -2616,7 +2616,7 @@ function rs(e) {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
}, [r, t, o, a, i]), null;
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function is(e, t) {
|
|
2620
2620
|
let {
|
|
2621
2621
|
transform: n,
|
|
2622
2622
|
...r
|
|
@@ -2626,7 +2626,7 @@ function os(e, t) {
|
|
|
2626
2626
|
...r
|
|
2627
2627
|
}), n) : n;
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function ss(e) {
|
|
2630
2630
|
return B(
|
|
2631
2631
|
() => ({
|
|
2632
2632
|
draggable: {
|
|
@@ -2646,7 +2646,7 @@ function is(e) {
|
|
|
2646
2646
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
2647
2647
|
);
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function as(e) {
|
|
2650
2650
|
let {
|
|
2651
2651
|
activeNode: t,
|
|
2652
2652
|
measure: n,
|
|
@@ -2670,18 +2670,18 @@ function ss(e) {
|
|
|
2670
2670
|
const u = t?.node.current;
|
|
2671
2671
|
if (!u || u.isConnected === !1)
|
|
2672
2672
|
return;
|
|
2673
|
-
const
|
|
2674
|
-
if (a || (
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2677
|
-
top:
|
|
2678
|
-
left:
|
|
2673
|
+
const d = n(u), f = Ar(d, r);
|
|
2674
|
+
if (a || (f.x = 0), c || (f.y = 0), i.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
2675
|
+
const b = Lr(u);
|
|
2676
|
+
b && b.scrollBy({
|
|
2677
|
+
top: f.y,
|
|
2678
|
+
left: f.x
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
2681
|
}, [t, a, c, r, n]);
|
|
2682
2682
|
}
|
|
2683
2683
|
const Gr = /* @__PURE__ */ vt({
|
|
2684
|
-
...
|
|
2684
|
+
...De,
|
|
2685
2685
|
scaleX: 1,
|
|
2686
2686
|
scaleY: 1
|
|
2687
2687
|
});
|
|
@@ -2696,43 +2696,43 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2696
2696
|
accessibility: c,
|
|
2697
2697
|
autoScroll: l = !0,
|
|
2698
2698
|
children: u,
|
|
2699
|
-
sensors:
|
|
2700
|
-
collisionDetection:
|
|
2701
|
-
measuring:
|
|
2699
|
+
sensors: d = Zi,
|
|
2700
|
+
collisionDetection: f = di,
|
|
2701
|
+
measuring: b,
|
|
2702
2702
|
modifiers: p,
|
|
2703
2703
|
...v
|
|
2704
2704
|
} = t;
|
|
2705
|
-
const h = mo(
|
|
2705
|
+
const h = mo(rs, void 0, ns), [m, w] = h, [_, R] = ei(), [T, O] = oe(Fe.Uninitialized), j = T === Fe.Initialized, {
|
|
2706
2706
|
draggable: {
|
|
2707
|
-
active:
|
|
2707
|
+
active: M,
|
|
2708
2708
|
nodes: N,
|
|
2709
2709
|
translate: W
|
|
2710
2710
|
},
|
|
2711
2711
|
droppable: {
|
|
2712
2712
|
containers: Y
|
|
2713
2713
|
}
|
|
2714
|
-
} =
|
|
2714
|
+
} = m, k = M != null ? N.get(M) : null, Q = U({
|
|
2715
2715
|
initial: null,
|
|
2716
2716
|
translated: null
|
|
2717
2717
|
}), ie = B(() => {
|
|
2718
2718
|
var ce;
|
|
2719
|
-
return
|
|
2720
|
-
id:
|
|
2719
|
+
return M != null ? {
|
|
2720
|
+
id: M,
|
|
2721
2721
|
// It's possible for the active node to unmount while dragging
|
|
2722
|
-
data: (ce =
|
|
2722
|
+
data: (ce = k?.data) != null ? ce : Qi,
|
|
2723
2723
|
rect: Q
|
|
2724
2724
|
} : null;
|
|
2725
|
-
}, [
|
|
2725
|
+
}, [M, k]), $ = U(null), [D, y] = oe(null), [E, C] = oe(null), I = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = ss(b), {
|
|
2726
2726
|
droppableRects: A,
|
|
2727
2727
|
measureDroppableContainers: P,
|
|
2728
2728
|
measuringScheduled: G
|
|
2729
|
-
} =
|
|
2730
|
-
dragging:
|
|
2729
|
+
} = Yi(g, {
|
|
2730
|
+
dragging: j,
|
|
2731
2731
|
dependencies: [W.x, W.y],
|
|
2732
2732
|
config: S.droppable
|
|
2733
|
-
}), X =
|
|
2734
|
-
|
|
2735
|
-
activeNode:
|
|
2733
|
+
}), X = zi(N, M), F = B(() => E ? mn(E) : null, [E]), J = go(), Z = Fi(X, S.draggable.measure);
|
|
2734
|
+
as({
|
|
2735
|
+
activeNode: M != null ? N.get(M) : null,
|
|
2736
2736
|
config: J.layoutShiftCompensation,
|
|
2737
2737
|
initialRect: Z,
|
|
2738
2738
|
measure: S.draggable.measure
|
|
@@ -2751,16 +2751,16 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2751
2751
|
over: null,
|
|
2752
2752
|
scrollableAncestors: [],
|
|
2753
2753
|
scrollAdjustedTranslate: null
|
|
2754
|
-
}),
|
|
2754
|
+
}), we = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Ji({
|
|
2755
2755
|
measure: S.dragOverlay.measure
|
|
2756
|
-
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue =
|
|
2756
|
+
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = j ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = Wi(kn ? null : z), Zt = Br(Be ? ge(Be) : null), Le = Bi(j ? we ?? X : null), St = qi(Le), Dt = is(p, {
|
|
2757
2757
|
transform: {
|
|
2758
|
-
x: W.x -
|
|
2759
|
-
y: W.y -
|
|
2758
|
+
x: W.x - In.x,
|
|
2759
|
+
y: W.y - In.y,
|
|
2760
2760
|
scaleX: 1,
|
|
2761
2761
|
scaleY: 1
|
|
2762
2762
|
},
|
|
2763
|
-
activatorEvent:
|
|
2763
|
+
activatorEvent: E,
|
|
2764
2764
|
active: ie,
|
|
2765
2765
|
activeNodeRect: z,
|
|
2766
2766
|
containerNodeRect: de,
|
|
@@ -2770,26 +2770,26 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2770
2770
|
scrollableAncestors: Le,
|
|
2771
2771
|
scrollableAncestorRects: St,
|
|
2772
2772
|
windowRect: Zt
|
|
2773
|
-
}), An = F ? Je(F, W) : null, Ln =
|
|
2773
|
+
}), An = F ? Je(F, W) : null, Ln = Ui(Le), so = lr(Ln), ao = lr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? gi(Ue, Dt) : null, rt = ie && Xe ? f({
|
|
2774
2774
|
active: ie,
|
|
2775
2775
|
collisionRect: Xe,
|
|
2776
2776
|
droppableRects: A,
|
|
2777
2777
|
droppableContainers: g,
|
|
2778
2778
|
pointerCoordinates: An
|
|
2779
|
-
}) : null, Nn =
|
|
2779
|
+
}) : null, Nn = li(rt, "id"), [Ne, zn] = oe(null), co = kn ? Dt : Je(Dt, ao), lo = fi(co, (i = Ne?.rect) != null ? i : null, z), Qt = U(null), Pn = le(
|
|
2780
2780
|
(ce, pe) => {
|
|
2781
2781
|
let {
|
|
2782
2782
|
sensor: ve,
|
|
2783
2783
|
options: ze
|
|
2784
2784
|
} = pe;
|
|
2785
|
-
if (
|
|
2785
|
+
if ($.current == null)
|
|
2786
2786
|
return;
|
|
2787
|
-
const
|
|
2788
|
-
if (!
|
|
2787
|
+
const xe = N.get($.current);
|
|
2788
|
+
if (!xe)
|
|
2789
2789
|
return;
|
|
2790
|
-
const me = ce.nativeEvent,
|
|
2791
|
-
active:
|
|
2792
|
-
activeNode:
|
|
2790
|
+
const me = ce.nativeEvent, je = new ve({
|
|
2791
|
+
active: $.current,
|
|
2792
|
+
activeNode: xe,
|
|
2793
2793
|
event: me,
|
|
2794
2794
|
options: ze,
|
|
2795
2795
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
@@ -2800,40 +2800,40 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2800
2800
|
return;
|
|
2801
2801
|
const {
|
|
2802
2802
|
onDragAbort: Re
|
|
2803
|
-
} =
|
|
2803
|
+
} = I.current, ke = {
|
|
2804
2804
|
id: se
|
|
2805
2805
|
};
|
|
2806
|
-
Re?.(
|
|
2806
|
+
Re?.(ke), _({
|
|
2807
2807
|
type: "onDragAbort",
|
|
2808
|
-
event:
|
|
2808
|
+
event: ke
|
|
2809
2809
|
});
|
|
2810
2810
|
},
|
|
2811
|
-
onPending(se, Pe, Re,
|
|
2811
|
+
onPending(se, Pe, Re, ke) {
|
|
2812
2812
|
if (!N.get(se))
|
|
2813
2813
|
return;
|
|
2814
2814
|
const {
|
|
2815
2815
|
onDragPending: it
|
|
2816
|
-
} =
|
|
2816
|
+
} = I.current, Ye = {
|
|
2817
2817
|
id: se,
|
|
2818
2818
|
constraint: Pe,
|
|
2819
2819
|
initialCoordinates: Re,
|
|
2820
|
-
offset:
|
|
2820
|
+
offset: ke
|
|
2821
2821
|
};
|
|
2822
|
-
it?.(Ye),
|
|
2822
|
+
it?.(Ye), _({
|
|
2823
2823
|
type: "onDragPending",
|
|
2824
2824
|
event: Ye
|
|
2825
2825
|
});
|
|
2826
2826
|
},
|
|
2827
2827
|
onStart(se) {
|
|
2828
|
-
const Pe =
|
|
2828
|
+
const Pe = $.current;
|
|
2829
2829
|
if (Pe == null)
|
|
2830
2830
|
return;
|
|
2831
2831
|
const Re = N.get(Pe);
|
|
2832
2832
|
if (!Re)
|
|
2833
2833
|
return;
|
|
2834
2834
|
const {
|
|
2835
|
-
onDragStart:
|
|
2836
|
-
} =
|
|
2835
|
+
onDragStart: ke
|
|
2836
|
+
} = I.current, ot = {
|
|
2837
2837
|
activatorEvent: me,
|
|
2838
2838
|
active: {
|
|
2839
2839
|
id: Pe,
|
|
@@ -2842,11 +2842,11 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
};
|
|
2844
2844
|
Ct(() => {
|
|
2845
|
-
|
|
2845
|
+
ke?.(ot), O(Fe.Initializing), w({
|
|
2846
2846
|
type: te.DragStart,
|
|
2847
2847
|
initialCoordinates: se,
|
|
2848
2848
|
active: Pe
|
|
2849
|
-
}),
|
|
2849
|
+
}), _({
|
|
2850
2850
|
type: "onDragStart",
|
|
2851
2851
|
event: ot
|
|
2852
2852
|
}), y(Qt.current), C(me);
|
|
@@ -2861,12 +2861,12 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2861
2861
|
onEnd: qe(te.DragEnd),
|
|
2862
2862
|
onCancel: qe(te.DragCancel)
|
|
2863
2863
|
});
|
|
2864
|
-
Qt.current =
|
|
2864
|
+
Qt.current = je;
|
|
2865
2865
|
function qe(se) {
|
|
2866
2866
|
return async function() {
|
|
2867
2867
|
const {
|
|
2868
2868
|
active: Re,
|
|
2869
|
-
collisions:
|
|
2869
|
+
collisions: ke,
|
|
2870
2870
|
over: ot,
|
|
2871
2871
|
scrollAdjustedTranslate: it
|
|
2872
2872
|
} = ae.current;
|
|
@@ -2874,23 +2874,23 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2874
2874
|
if (Re && it) {
|
|
2875
2875
|
const {
|
|
2876
2876
|
cancelDrop: st
|
|
2877
|
-
} =
|
|
2877
|
+
} = I.current;
|
|
2878
2878
|
Ye = {
|
|
2879
2879
|
activatorEvent: me,
|
|
2880
2880
|
active: Re,
|
|
2881
|
-
collisions:
|
|
2881
|
+
collisions: ke,
|
|
2882
2882
|
delta: it,
|
|
2883
2883
|
over: ot
|
|
2884
2884
|
}, se === te.DragEnd && typeof st == "function" && await Promise.resolve(st(Ye)) && (se = te.DragCancel);
|
|
2885
2885
|
}
|
|
2886
|
-
|
|
2886
|
+
$.current = null, Ct(() => {
|
|
2887
2887
|
w({
|
|
2888
2888
|
type: se
|
|
2889
2889
|
}), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
|
|
2890
2890
|
const st = se === te.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2891
2891
|
if (Ye) {
|
|
2892
|
-
const en =
|
|
2893
|
-
en?.(Ye),
|
|
2892
|
+
const en = I.current[st];
|
|
2893
|
+
en?.(Ye), _({
|
|
2894
2894
|
type: st,
|
|
2895
2895
|
event: Ye
|
|
2896
2896
|
});
|
|
@@ -2902,32 +2902,32 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2902
2902
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2903
2903
|
[N]
|
|
2904
2904
|
), uo = le((ce, pe) => (ve, ze) => {
|
|
2905
|
-
const
|
|
2905
|
+
const xe = ve.nativeEvent, me = N.get(ze);
|
|
2906
2906
|
if (
|
|
2907
2907
|
// Another sensor is already instantiating
|
|
2908
|
-
|
|
2908
|
+
$.current !== null || // No active draggable
|
|
2909
2909
|
!me || // Event has already been captured
|
|
2910
|
-
|
|
2910
|
+
xe.dndKit || xe.defaultPrevented
|
|
2911
2911
|
)
|
|
2912
2912
|
return;
|
|
2913
|
-
const
|
|
2913
|
+
const je = {
|
|
2914
2914
|
active: me
|
|
2915
2915
|
};
|
|
2916
|
-
ce(ve, pe.options,
|
|
2916
|
+
ce(ve, pe.options, je) === !0 && (xe.dndKit = {
|
|
2917
2917
|
capturedBy: pe.sensor
|
|
2918
|
-
},
|
|
2919
|
-
}, [N, Pn]), Yn =
|
|
2920
|
-
|
|
2921
|
-
z &&
|
|
2922
|
-
}, [z,
|
|
2918
|
+
}, $.current = ze, Pn(ve, pe));
|
|
2919
|
+
}, [N, Pn]), Yn = Pi(d, uo);
|
|
2920
|
+
Gi(d), Te(() => {
|
|
2921
|
+
z && T === Fe.Initializing && O(Fe.Initialized);
|
|
2922
|
+
}, [z, T]), H(
|
|
2923
2923
|
() => {
|
|
2924
2924
|
const {
|
|
2925
2925
|
onDragMove: ce
|
|
2926
|
-
} =
|
|
2926
|
+
} = I.current, {
|
|
2927
2927
|
active: pe,
|
|
2928
2928
|
activatorEvent: ve,
|
|
2929
2929
|
collisions: ze,
|
|
2930
|
-
over:
|
|
2930
|
+
over: xe
|
|
2931
2931
|
} = ae.current;
|
|
2932
2932
|
if (!pe || !ve)
|
|
2933
2933
|
return;
|
|
@@ -2939,10 +2939,10 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2939
2939
|
x: Ge.x,
|
|
2940
2940
|
y: Ge.y
|
|
2941
2941
|
},
|
|
2942
|
-
over:
|
|
2942
|
+
over: xe
|
|
2943
2943
|
};
|
|
2944
2944
|
Ct(() => {
|
|
2945
|
-
ce?.(me),
|
|
2945
|
+
ce?.(me), _({
|
|
2946
2946
|
type: "onDragMove",
|
|
2947
2947
|
event: me
|
|
2948
2948
|
});
|
|
@@ -2957,29 +2957,29 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2957
2957
|
activatorEvent: pe,
|
|
2958
2958
|
collisions: ve,
|
|
2959
2959
|
droppableContainers: ze,
|
|
2960
|
-
scrollAdjustedTranslate:
|
|
2960
|
+
scrollAdjustedTranslate: xe
|
|
2961
2961
|
} = ae.current;
|
|
2962
|
-
if (!ce ||
|
|
2962
|
+
if (!ce || $.current == null || !pe || !xe)
|
|
2963
2963
|
return;
|
|
2964
2964
|
const {
|
|
2965
2965
|
onDragOver: me
|
|
2966
|
-
} =
|
|
2967
|
-
id:
|
|
2968
|
-
rect:
|
|
2969
|
-
data:
|
|
2970
|
-
disabled:
|
|
2966
|
+
} = I.current, je = ze.get(Nn), qe = je && je.rect.current ? {
|
|
2967
|
+
id: je.id,
|
|
2968
|
+
rect: je.rect.current,
|
|
2969
|
+
data: je.data,
|
|
2970
|
+
disabled: je.disabled
|
|
2971
2971
|
} : null, se = {
|
|
2972
2972
|
active: ce,
|
|
2973
2973
|
activatorEvent: pe,
|
|
2974
2974
|
collisions: ve,
|
|
2975
2975
|
delta: {
|
|
2976
|
-
x:
|
|
2977
|
-
y:
|
|
2976
|
+
x: xe.x,
|
|
2977
|
+
y: xe.y
|
|
2978
2978
|
},
|
|
2979
2979
|
over: qe
|
|
2980
2980
|
};
|
|
2981
2981
|
Ct(() => {
|
|
2982
|
-
zn(qe), me?.(se),
|
|
2982
|
+
zn(qe), me?.(se), _({
|
|
2983
2983
|
type: "onDragOver",
|
|
2984
2984
|
event: se
|
|
2985
2985
|
});
|
|
@@ -2989,7 +2989,7 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
2989
2989
|
[Nn]
|
|
2990
2990
|
), Te(() => {
|
|
2991
2991
|
ae.current = {
|
|
2992
|
-
activatorEvent:
|
|
2992
|
+
activatorEvent: E,
|
|
2993
2993
|
active: ie,
|
|
2994
2994
|
activeNode: X,
|
|
2995
2995
|
collisionRect: Xe,
|
|
@@ -3006,7 +3006,7 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3006
3006
|
initial: Ue,
|
|
3007
3007
|
translated: Xe
|
|
3008
3008
|
};
|
|
3009
|
-
}, [ie, X, rt, Xe, N, Be, Ue, A, Y, Ne, Le, Ge]),
|
|
3009
|
+
}, [ie, X, rt, Xe, N, Be, Ue, A, Y, Ne, Le, Ge]), Ai({
|
|
3010
3010
|
...J,
|
|
3011
3011
|
delta: W,
|
|
3012
3012
|
draggingRect: Xe,
|
|
@@ -3018,7 +3018,7 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3018
3018
|
active: ie,
|
|
3019
3019
|
activeNode: X,
|
|
3020
3020
|
activeNodeRect: z,
|
|
3021
|
-
activatorEvent:
|
|
3021
|
+
activatorEvent: E,
|
|
3022
3022
|
collisions: rt,
|
|
3023
3023
|
containerNodeRect: de,
|
|
3024
3024
|
dragOverlay: $e,
|
|
@@ -3032,8 +3032,8 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3032
3032
|
measuringConfiguration: S,
|
|
3033
3033
|
measuringScheduled: G,
|
|
3034
3034
|
windowRect: Zt
|
|
3035
|
-
}), [ie, X, z,
|
|
3036
|
-
activatorEvent:
|
|
3035
|
+
}), [ie, X, z, E, rt, de, $e, N, Y, A, Ne, P, Le, St, S, G, Zt]), ho = B(() => ({
|
|
3036
|
+
activatorEvent: E,
|
|
3037
3037
|
activators: Yn,
|
|
3038
3038
|
active: ie,
|
|
3039
3039
|
activeNodeRect: z,
|
|
@@ -3044,23 +3044,23 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3044
3044
|
draggableNodes: N,
|
|
3045
3045
|
over: Ne,
|
|
3046
3046
|
measureDroppableContainers: P
|
|
3047
|
-
}), [
|
|
3048
|
-
return ne.createElement(
|
|
3049
|
-
value:
|
|
3047
|
+
}), [E, Yn, ie, z, w, L, N, Ne, P]);
|
|
3048
|
+
return ne.createElement(kr.Provider, {
|
|
3049
|
+
value: R
|
|
3050
3050
|
}, ne.createElement(qt.Provider, {
|
|
3051
3051
|
value: ho
|
|
3052
3052
|
}, ne.createElement(Ur.Provider, {
|
|
3053
3053
|
value: fo
|
|
3054
3054
|
}, ne.createElement(Gr.Provider, {
|
|
3055
3055
|
value: lo
|
|
3056
|
-
}, u)), ne.createElement(
|
|
3056
|
+
}, u)), ne.createElement(os, {
|
|
3057
3057
|
disabled: c?.restoreFocus === !1
|
|
3058
|
-
})), ne.createElement(
|
|
3058
|
+
})), ne.createElement(ri, {
|
|
3059
3059
|
...c,
|
|
3060
3060
|
hiddenTextDescribedById: L
|
|
3061
3061
|
}));
|
|
3062
3062
|
function go() {
|
|
3063
|
-
const ce = D?.autoScrollEnabled === !1, pe = typeof l == "object" ? l.enabled === !1 : l === !1, ve =
|
|
3063
|
+
const ce = D?.autoScrollEnabled === !1, pe = typeof l == "object" ? l.enabled === !1 : l === !1, ve = j && !ce && !pe;
|
|
3064
3064
|
return typeof l == "object" ? {
|
|
3065
3065
|
...l,
|
|
3066
3066
|
enabled: ve
|
|
@@ -3068,111 +3068,111 @@ const Xr = /* @__PURE__ */ vo(function(t) {
|
|
|
3068
3068
|
enabled: ve
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
|
-
}),
|
|
3072
|
-
function
|
|
3071
|
+
}), cs = /* @__PURE__ */ vt(null), dr = "button", ls = "Draggable";
|
|
3072
|
+
function us(e) {
|
|
3073
3073
|
let {
|
|
3074
3074
|
id: t,
|
|
3075
3075
|
data: n,
|
|
3076
3076
|
disabled: r = !1,
|
|
3077
3077
|
attributes: o
|
|
3078
3078
|
} = e;
|
|
3079
|
-
const i = wt(
|
|
3079
|
+
const i = wt(ls), {
|
|
3080
3080
|
activators: a,
|
|
3081
3081
|
activatorEvent: c,
|
|
3082
3082
|
active: l,
|
|
3083
3083
|
activeNodeRect: u,
|
|
3084
|
-
ariaDescribedById:
|
|
3085
|
-
draggableNodes:
|
|
3086
|
-
over:
|
|
3084
|
+
ariaDescribedById: d,
|
|
3085
|
+
draggableNodes: f,
|
|
3086
|
+
over: b
|
|
3087
3087
|
} = He(qt), {
|
|
3088
3088
|
role: p = dr,
|
|
3089
3089
|
roleDescription: v = "draggable",
|
|
3090
3090
|
tabIndex: h = 0
|
|
3091
|
-
} = o ?? {},
|
|
3091
|
+
} = o ?? {}, m = l?.id === t, w = He(m ? Gr : cs), [_, R] = Pt(), [T, O] = Pt(), j = Xi(a, t), M = gt(n);
|
|
3092
3092
|
Te(
|
|
3093
|
-
() => (
|
|
3093
|
+
() => (f.set(t, {
|
|
3094
3094
|
id: t,
|
|
3095
3095
|
key: i,
|
|
3096
|
-
node:
|
|
3097
|
-
activatorNode:
|
|
3098
|
-
data:
|
|
3096
|
+
node: _,
|
|
3097
|
+
activatorNode: T,
|
|
3098
|
+
data: M
|
|
3099
3099
|
}), () => {
|
|
3100
|
-
const W =
|
|
3101
|
-
W && W.key === i &&
|
|
3100
|
+
const W = f.get(t);
|
|
3101
|
+
W && W.key === i && f.delete(t);
|
|
3102
3102
|
}),
|
|
3103
3103
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3104
|
-
[
|
|
3104
|
+
[f, t]
|
|
3105
3105
|
);
|
|
3106
3106
|
const N = B(() => ({
|
|
3107
3107
|
role: p,
|
|
3108
3108
|
tabIndex: h,
|
|
3109
3109
|
"aria-disabled": r,
|
|
3110
|
-
"aria-pressed":
|
|
3110
|
+
"aria-pressed": m && p === dr ? !0 : void 0,
|
|
3111
3111
|
"aria-roledescription": v,
|
|
3112
|
-
"aria-describedby":
|
|
3113
|
-
}), [r, p, h,
|
|
3112
|
+
"aria-describedby": d.draggable
|
|
3113
|
+
}), [r, p, h, m, v, d.draggable]);
|
|
3114
3114
|
return {
|
|
3115
3115
|
active: l,
|
|
3116
3116
|
activatorEvent: c,
|
|
3117
3117
|
activeNodeRect: u,
|
|
3118
3118
|
attributes: N,
|
|
3119
|
-
isDragging:
|
|
3120
|
-
listeners: r ? void 0 :
|
|
3121
|
-
node:
|
|
3122
|
-
over:
|
|
3123
|
-
setNodeRef:
|
|
3119
|
+
isDragging: m,
|
|
3120
|
+
listeners: r ? void 0 : j,
|
|
3121
|
+
node: _,
|
|
3122
|
+
over: b,
|
|
3123
|
+
setNodeRef: R,
|
|
3124
3124
|
setActivatorNodeRef: O,
|
|
3125
3125
|
transform: w
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function ds() {
|
|
3129
3129
|
return He(Ur);
|
|
3130
3130
|
}
|
|
3131
|
-
const
|
|
3131
|
+
const fs = "Droppable", hs = {
|
|
3132
3132
|
timeout: 25
|
|
3133
3133
|
};
|
|
3134
|
-
function
|
|
3134
|
+
function gs(e) {
|
|
3135
3135
|
let {
|
|
3136
3136
|
data: t,
|
|
3137
3137
|
disabled: n = !1,
|
|
3138
3138
|
id: r,
|
|
3139
3139
|
resizeObserverConfig: o
|
|
3140
3140
|
} = e;
|
|
3141
|
-
const i = wt(
|
|
3141
|
+
const i = wt(fs), {
|
|
3142
3142
|
active: a,
|
|
3143
3143
|
dispatch: c,
|
|
3144
3144
|
over: l,
|
|
3145
3145
|
measureDroppableContainers: u
|
|
3146
|
-
} = He(qt),
|
|
3146
|
+
} = He(qt), d = U({
|
|
3147
3147
|
disabled: n
|
|
3148
|
-
}),
|
|
3148
|
+
}), f = U(!1), b = U(null), p = U(null), {
|
|
3149
3149
|
disabled: v,
|
|
3150
3150
|
updateMeasurementsFor: h,
|
|
3151
|
-
timeout:
|
|
3151
|
+
timeout: m
|
|
3152
3152
|
} = {
|
|
3153
|
-
...
|
|
3153
|
+
...hs,
|
|
3154
3154
|
...o
|
|
3155
|
-
}, w = gt(h ?? r),
|
|
3155
|
+
}, w = gt(h ?? r), _ = le(
|
|
3156
3156
|
() => {
|
|
3157
|
-
if (!
|
|
3158
|
-
|
|
3157
|
+
if (!f.current) {
|
|
3158
|
+
f.current = !0;
|
|
3159
3159
|
return;
|
|
3160
3160
|
}
|
|
3161
3161
|
p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
3162
3162
|
u(Array.isArray(w.current) ? w.current : [w.current]), p.current = null;
|
|
3163
|
-
},
|
|
3163
|
+
}, m);
|
|
3164
3164
|
},
|
|
3165
3165
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3166
|
-
[
|
|
3167
|
-
),
|
|
3168
|
-
callback:
|
|
3166
|
+
[m]
|
|
3167
|
+
), R = Xt({
|
|
3168
|
+
callback: _,
|
|
3169
3169
|
disabled: v || !a
|
|
3170
|
-
}),
|
|
3171
|
-
|
|
3172
|
-
}, [
|
|
3170
|
+
}), T = le((N, W) => {
|
|
3171
|
+
R && (W && (R.unobserve(W), f.current = !1), N && R.observe(N));
|
|
3172
|
+
}, [R]), [O, j] = Pt(T), M = gt(t);
|
|
3173
3173
|
return H(() => {
|
|
3174
|
-
!
|
|
3175
|
-
}, [O,
|
|
3174
|
+
!R || !O.current || (R.disconnect(), f.current = !1, R.observe(O.current));
|
|
3175
|
+
}, [O, R]), H(
|
|
3176
3176
|
() => (c({
|
|
3177
3177
|
type: te.RegisterDroppable,
|
|
3178
3178
|
element: {
|
|
@@ -3180,8 +3180,8 @@ function hs(e) {
|
|
|
3180
3180
|
key: i,
|
|
3181
3181
|
disabled: n,
|
|
3182
3182
|
node: O,
|
|
3183
|
-
rect:
|
|
3184
|
-
data:
|
|
3183
|
+
rect: b,
|
|
3184
|
+
data: M
|
|
3185
3185
|
}
|
|
3186
3186
|
}), () => c({
|
|
3187
3187
|
type: te.UnregisterDroppable,
|
|
@@ -3191,26 +3191,26 @@ function hs(e) {
|
|
|
3191
3191
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3192
3192
|
[r]
|
|
3193
3193
|
), H(() => {
|
|
3194
|
-
n !==
|
|
3194
|
+
n !== d.current.disabled && (c({
|
|
3195
3195
|
type: te.SetDroppableDisabled,
|
|
3196
3196
|
id: r,
|
|
3197
3197
|
key: i,
|
|
3198
3198
|
disabled: n
|
|
3199
|
-
}),
|
|
3199
|
+
}), d.current.disabled = n);
|
|
3200
3200
|
}, [r, i, n, c]), {
|
|
3201
3201
|
active: a,
|
|
3202
|
-
rect:
|
|
3202
|
+
rect: b,
|
|
3203
3203
|
isOver: l?.id === r,
|
|
3204
3204
|
node: O,
|
|
3205
3205
|
over: l,
|
|
3206
|
-
setNodeRef:
|
|
3206
|
+
setNodeRef: j
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
function Kt(e, t, n) {
|
|
3210
3210
|
const r = e.slice();
|
|
3211
3211
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function ps(e, t) {
|
|
3214
3214
|
return e.reduce((n, r, o) => {
|
|
3215
3215
|
const i = t.get(r);
|
|
3216
3216
|
return i && (n[o] = i), n;
|
|
@@ -3219,7 +3219,7 @@ function gs(e, t) {
|
|
|
3219
3219
|
function Tt(e) {
|
|
3220
3220
|
return e !== null && e >= 0;
|
|
3221
3221
|
}
|
|
3222
|
-
function
|
|
3222
|
+
function vs(e, t) {
|
|
3223
3223
|
if (e === t)
|
|
3224
3224
|
return !0;
|
|
3225
3225
|
if (e.length !== t.length)
|
|
@@ -3229,7 +3229,7 @@ function ps(e, t) {
|
|
|
3229
3229
|
return !1;
|
|
3230
3230
|
return !0;
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function ms(e) {
|
|
3233
3233
|
return typeof e == "boolean" ? {
|
|
3234
3234
|
draggable: e,
|
|
3235
3235
|
droppable: e
|
|
@@ -3238,7 +3238,7 @@ function vs(e) {
|
|
|
3238
3238
|
const Ot = {
|
|
3239
3239
|
scaleX: 1,
|
|
3240
3240
|
scaleY: 1
|
|
3241
|
-
},
|
|
3241
|
+
}, bs = (e) => {
|
|
3242
3242
|
var t;
|
|
3243
3243
|
let {
|
|
3244
3244
|
rects: n,
|
|
@@ -3250,7 +3250,7 @@ const Ot = {
|
|
|
3250
3250
|
const c = (t = n[o]) != null ? t : r;
|
|
3251
3251
|
if (!c)
|
|
3252
3252
|
return null;
|
|
3253
|
-
const l =
|
|
3253
|
+
const l = xs(n, a, o);
|
|
3254
3254
|
if (a === o) {
|
|
3255
3255
|
const u = n[i];
|
|
3256
3256
|
return u ? {
|
|
@@ -3273,7 +3273,7 @@ const Ot = {
|
|
|
3273
3273
|
...Ot
|
|
3274
3274
|
};
|
|
3275
3275
|
};
|
|
3276
|
-
function
|
|
3276
|
+
function xs(e, t, n) {
|
|
3277
3277
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
3278
3278
|
return !r || !o && !i ? 0 : n < t ? o ? r.left - (o.left + o.width) : i.left - (r.left + r.width) : i ? i.left - (r.left + r.width) : r.left - (o.left + o.width);
|
|
3279
3279
|
}
|
|
@@ -3294,7 +3294,7 @@ const qr = (e) => {
|
|
|
3294
3294
|
}, Mt = {
|
|
3295
3295
|
scaleX: 1,
|
|
3296
3296
|
scaleY: 1
|
|
3297
|
-
},
|
|
3297
|
+
}, ys = (e) => {
|
|
3298
3298
|
var t;
|
|
3299
3299
|
let {
|
|
3300
3300
|
activeIndex: n,
|
|
@@ -3314,7 +3314,7 @@ const qr = (e) => {
|
|
|
3314
3314
|
...Mt
|
|
3315
3315
|
} : null;
|
|
3316
3316
|
}
|
|
3317
|
-
const l =
|
|
3317
|
+
const l = ws(i, o, n);
|
|
3318
3318
|
return o > n && o <= a ? {
|
|
3319
3319
|
x: 0,
|
|
3320
3320
|
y: -c.height - l,
|
|
@@ -3329,7 +3329,7 @@ const qr = (e) => {
|
|
|
3329
3329
|
...Mt
|
|
3330
3330
|
};
|
|
3331
3331
|
};
|
|
3332
|
-
function
|
|
3332
|
+
function ws(e, t, n) {
|
|
3333
3333
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
3334
3334
|
return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
3335
3335
|
}
|
|
@@ -3360,33 +3360,33 @@ function Zr(e) {
|
|
|
3360
3360
|
dragOverlay: c,
|
|
3361
3361
|
droppableRects: l,
|
|
3362
3362
|
over: u,
|
|
3363
|
-
measureDroppableContainers:
|
|
3364
|
-
} =
|
|
3363
|
+
measureDroppableContainers: d
|
|
3364
|
+
} = ds(), f = wt(Kr, n), b = c.rect !== null, p = B(() => r.map((j) => typeof j == "object" && "id" in j ? j.id : j), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, m = u ? p.indexOf(u.id) : -1, w = U(p), _ = !vs(p, w.current), R = m !== -1 && h === -1 || _, T = ms(i);
|
|
3365
3365
|
Te(() => {
|
|
3366
|
-
|
|
3367
|
-
}, [
|
|
3366
|
+
_ && v && d(p);
|
|
3367
|
+
}, [_, p, v, d]), H(() => {
|
|
3368
3368
|
w.current = p;
|
|
3369
3369
|
}, [p]);
|
|
3370
3370
|
const O = B(
|
|
3371
3371
|
() => ({
|
|
3372
3372
|
activeIndex: h,
|
|
3373
|
-
containerId:
|
|
3374
|
-
disabled:
|
|
3375
|
-
disableTransforms:
|
|
3373
|
+
containerId: f,
|
|
3374
|
+
disabled: T,
|
|
3375
|
+
disableTransforms: R,
|
|
3376
3376
|
items: p,
|
|
3377
|
-
overIndex:
|
|
3378
|
-
useDragOverlay:
|
|
3379
|
-
sortedRects:
|
|
3377
|
+
overIndex: m,
|
|
3378
|
+
useDragOverlay: b,
|
|
3379
|
+
sortedRects: ps(p, l),
|
|
3380
3380
|
strategy: o
|
|
3381
3381
|
}),
|
|
3382
3382
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3383
|
-
[h,
|
|
3383
|
+
[h, f, T.draggable, T.droppable, R, p, m, l, b, o]
|
|
3384
3384
|
);
|
|
3385
3385
|
return ne.createElement(Jr.Provider, {
|
|
3386
3386
|
value: O
|
|
3387
3387
|
}, t);
|
|
3388
3388
|
}
|
|
3389
|
-
const
|
|
3389
|
+
const Ss = (e) => {
|
|
3390
3390
|
let {
|
|
3391
3391
|
id: t,
|
|
3392
3392
|
items: n,
|
|
@@ -3394,7 +3394,7 @@ const ws = (e) => {
|
|
|
3394
3394
|
overIndex: o
|
|
3395
3395
|
} = e;
|
|
3396
3396
|
return Kt(n, r, o).indexOf(t);
|
|
3397
|
-
},
|
|
3397
|
+
}, Ds = (e) => {
|
|
3398
3398
|
let {
|
|
3399
3399
|
containerId: t,
|
|
3400
3400
|
isSorting: n,
|
|
@@ -3407,17 +3407,17 @@ const ws = (e) => {
|
|
|
3407
3407
|
transition: u
|
|
3408
3408
|
} = e;
|
|
3409
3409
|
return !u || !r || c !== i && o === a ? !1 : n ? !0 : a !== o && t === l;
|
|
3410
|
-
},
|
|
3410
|
+
}, Cs = {
|
|
3411
3411
|
duration: 200,
|
|
3412
3412
|
easing: "ease"
|
|
3413
|
-
}, Qr = "transform",
|
|
3413
|
+
}, Qr = "transform", js = /* @__PURE__ */ Ze.Transition.toString({
|
|
3414
3414
|
property: Qr,
|
|
3415
3415
|
duration: 0,
|
|
3416
3416
|
easing: "linear"
|
|
3417
3417
|
}), Rs = {
|
|
3418
3418
|
roleDescription: "sortable"
|
|
3419
3419
|
};
|
|
3420
|
-
function
|
|
3420
|
+
function Es(e) {
|
|
3421
3421
|
let {
|
|
3422
3422
|
disabled: t,
|
|
3423
3423
|
index: n,
|
|
@@ -3431,13 +3431,13 @@ function js(e) {
|
|
|
3431
3431
|
if (l) {
|
|
3432
3432
|
const u = nt(r.current, {
|
|
3433
3433
|
ignoreTransform: !0
|
|
3434
|
-
}),
|
|
3434
|
+
}), d = {
|
|
3435
3435
|
x: l.left - u.left,
|
|
3436
3436
|
y: l.top - u.top,
|
|
3437
3437
|
scaleX: l.width / u.width,
|
|
3438
3438
|
scaleY: l.height / u.height
|
|
3439
3439
|
};
|
|
3440
|
-
(
|
|
3440
|
+
(d.x || d.y) && a(d);
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
n !== c.current && (c.current = n);
|
|
@@ -3447,103 +3447,103 @@ function js(e) {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
function eo(e) {
|
|
3449
3449
|
let {
|
|
3450
|
-
animateLayoutChanges: t =
|
|
3450
|
+
animateLayoutChanges: t = Ds,
|
|
3451
3451
|
attributes: n,
|
|
3452
3452
|
disabled: r,
|
|
3453
3453
|
data: o,
|
|
3454
|
-
getNewIndex: i =
|
|
3454
|
+
getNewIndex: i = Ss,
|
|
3455
3455
|
id: a,
|
|
3456
3456
|
strategy: c,
|
|
3457
3457
|
resizeObserverConfig: l,
|
|
3458
|
-
transition: u =
|
|
3458
|
+
transition: u = Cs
|
|
3459
3459
|
} = e;
|
|
3460
3460
|
const {
|
|
3461
|
-
items:
|
|
3462
|
-
containerId:
|
|
3463
|
-
activeIndex:
|
|
3461
|
+
items: d,
|
|
3462
|
+
containerId: f,
|
|
3463
|
+
activeIndex: b,
|
|
3464
3464
|
disabled: p,
|
|
3465
3465
|
disableTransforms: v,
|
|
3466
3466
|
sortedRects: h,
|
|
3467
|
-
overIndex:
|
|
3467
|
+
overIndex: m,
|
|
3468
3468
|
useDragOverlay: w,
|
|
3469
|
-
strategy:
|
|
3470
|
-
} = He(Jr),
|
|
3469
|
+
strategy: _
|
|
3470
|
+
} = He(Jr), R = _s(r, p), T = d.indexOf(a), O = B(() => ({
|
|
3471
3471
|
sortable: {
|
|
3472
|
-
containerId:
|
|
3473
|
-
index:
|
|
3474
|
-
items:
|
|
3472
|
+
containerId: f,
|
|
3473
|
+
index: T,
|
|
3474
|
+
items: d
|
|
3475
3475
|
},
|
|
3476
3476
|
...o
|
|
3477
|
-
}), [
|
|
3478
|
-
rect:
|
|
3477
|
+
}), [f, o, T, d]), j = B(() => d.slice(d.indexOf(a)), [d, a]), {
|
|
3478
|
+
rect: M,
|
|
3479
3479
|
node: N,
|
|
3480
3480
|
isOver: W,
|
|
3481
3481
|
setNodeRef: Y
|
|
3482
|
-
} =
|
|
3482
|
+
} = gs({
|
|
3483
3483
|
id: a,
|
|
3484
3484
|
data: O,
|
|
3485
|
-
disabled:
|
|
3485
|
+
disabled: R.droppable,
|
|
3486
3486
|
resizeObserverConfig: {
|
|
3487
|
-
updateMeasurementsFor:
|
|
3487
|
+
updateMeasurementsFor: j,
|
|
3488
3488
|
...l
|
|
3489
3489
|
}
|
|
3490
3490
|
}), {
|
|
3491
|
-
active:
|
|
3491
|
+
active: k,
|
|
3492
3492
|
activatorEvent: Q,
|
|
3493
3493
|
activeNodeRect: ie,
|
|
3494
|
-
attributes:
|
|
3494
|
+
attributes: $,
|
|
3495
3495
|
setNodeRef: D,
|
|
3496
3496
|
listeners: y,
|
|
3497
|
-
isDragging:
|
|
3497
|
+
isDragging: E,
|
|
3498
3498
|
over: C,
|
|
3499
|
-
setActivatorNodeRef:
|
|
3499
|
+
setActivatorNodeRef: I,
|
|
3500
3500
|
transform: L
|
|
3501
|
-
} =
|
|
3501
|
+
} = us({
|
|
3502
3502
|
id: a,
|
|
3503
3503
|
data: O,
|
|
3504
3504
|
attributes: {
|
|
3505
3505
|
...Rs,
|
|
3506
3506
|
...n
|
|
3507
3507
|
},
|
|
3508
|
-
disabled:
|
|
3509
|
-
}), g =
|
|
3508
|
+
disabled: R.draggable
|
|
3509
|
+
}), g = Wo(Y, D), S = !!k, A = S && !v && Tt(b) && Tt(m), P = !w && E, G = P && A ? L : null, F = A ? G ?? (c ?? _)({
|
|
3510
3510
|
rects: h,
|
|
3511
3511
|
activeNodeRect: ie,
|
|
3512
|
-
activeIndex:
|
|
3513
|
-
overIndex:
|
|
3514
|
-
index:
|
|
3515
|
-
}) : null, J = Tt(
|
|
3512
|
+
activeIndex: b,
|
|
3513
|
+
overIndex: m,
|
|
3514
|
+
index: T
|
|
3515
|
+
}) : null, J = Tt(b) && Tt(m) ? i({
|
|
3516
3516
|
id: a,
|
|
3517
|
-
items:
|
|
3518
|
-
activeIndex:
|
|
3519
|
-
overIndex:
|
|
3520
|
-
}) :
|
|
3517
|
+
items: d,
|
|
3518
|
+
activeIndex: b,
|
|
3519
|
+
overIndex: m
|
|
3520
|
+
}) : T, Z = k?.id, z = U({
|
|
3521
3521
|
activeId: Z,
|
|
3522
|
-
items:
|
|
3522
|
+
items: d,
|
|
3523
3523
|
newIndex: J,
|
|
3524
|
-
containerId:
|
|
3525
|
-
}), de =
|
|
3526
|
-
active:
|
|
3527
|
-
containerId:
|
|
3528
|
-
isDragging:
|
|
3524
|
+
containerId: f
|
|
3525
|
+
}), de = d !== z.current.items, ae = t({
|
|
3526
|
+
active: k,
|
|
3527
|
+
containerId: f,
|
|
3528
|
+
isDragging: E,
|
|
3529
3529
|
isSorting: S,
|
|
3530
3530
|
id: a,
|
|
3531
|
-
index:
|
|
3532
|
-
items:
|
|
3531
|
+
index: T,
|
|
3532
|
+
items: d,
|
|
3533
3533
|
newIndex: z.current.newIndex,
|
|
3534
3534
|
previousItems: z.current.items,
|
|
3535
3535
|
previousContainerId: z.current.containerId,
|
|
3536
3536
|
transition: u,
|
|
3537
3537
|
wasDragging: z.current.activeId != null
|
|
3538
|
-
}),
|
|
3538
|
+
}), we = Es({
|
|
3539
3539
|
disabled: !ae,
|
|
3540
|
-
index:
|
|
3540
|
+
index: T,
|
|
3541
3541
|
node: N,
|
|
3542
|
-
rect:
|
|
3542
|
+
rect: M
|
|
3543
3543
|
});
|
|
3544
3544
|
return H(() => {
|
|
3545
|
-
S && z.current.newIndex !== J && (z.current.newIndex = J),
|
|
3546
|
-
}, [S, J,
|
|
3545
|
+
S && z.current.newIndex !== J && (z.current.newIndex = J), f !== z.current.containerId && (z.current.containerId = f), d !== z.current.items && (z.current.items = d);
|
|
3546
|
+
}, [S, J, f, d]), H(() => {
|
|
3547
3547
|
if (Z === z.current.activeId)
|
|
3548
3548
|
return;
|
|
3549
3549
|
if (Z != null && z.current.activeId == null) {
|
|
@@ -3555,43 +3555,43 @@ function eo(e) {
|
|
|
3555
3555
|
}, 50);
|
|
3556
3556
|
return () => clearTimeout(Be);
|
|
3557
3557
|
}, [Z]), {
|
|
3558
|
-
active:
|
|
3559
|
-
activeIndex:
|
|
3560
|
-
attributes:
|
|
3558
|
+
active: k,
|
|
3559
|
+
activeIndex: b,
|
|
3560
|
+
attributes: $,
|
|
3561
3561
|
data: O,
|
|
3562
|
-
rect:
|
|
3563
|
-
index:
|
|
3562
|
+
rect: M,
|
|
3563
|
+
index: T,
|
|
3564
3564
|
newIndex: J,
|
|
3565
|
-
items:
|
|
3565
|
+
items: d,
|
|
3566
3566
|
isOver: W,
|
|
3567
3567
|
isSorting: S,
|
|
3568
|
-
isDragging:
|
|
3568
|
+
isDragging: E,
|
|
3569
3569
|
listeners: y,
|
|
3570
3570
|
node: N,
|
|
3571
|
-
overIndex:
|
|
3571
|
+
overIndex: m,
|
|
3572
3572
|
over: C,
|
|
3573
3573
|
setNodeRef: g,
|
|
3574
|
-
setActivatorNodeRef:
|
|
3574
|
+
setActivatorNodeRef: I,
|
|
3575
3575
|
setDroppableNodeRef: Y,
|
|
3576
3576
|
setDraggableNodeRef: D,
|
|
3577
|
-
transform:
|
|
3577
|
+
transform: we ?? F,
|
|
3578
3578
|
transition: $e()
|
|
3579
3579
|
};
|
|
3580
3580
|
function $e() {
|
|
3581
3581
|
if (
|
|
3582
3582
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3583
|
-
|
|
3584
|
-
de && z.current.newIndex ===
|
|
3583
|
+
we || // Or to prevent items jumping to back to their "new" position when items change
|
|
3584
|
+
de && z.current.newIndex === T
|
|
3585
3585
|
)
|
|
3586
|
-
return
|
|
3587
|
-
if (!(P && !
|
|
3586
|
+
return js;
|
|
3587
|
+
if (!(P && !Rn(Q) || !u) && (S || ae))
|
|
3588
3588
|
return Ze.Transition.toString({
|
|
3589
3589
|
...u,
|
|
3590
3590
|
property: Qr
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function _s(e, t) {
|
|
3595
3595
|
var n, r;
|
|
3596
3596
|
return typeof e == "boolean" ? {
|
|
3597
3597
|
draggable: e,
|
|
@@ -3603,18 +3603,18 @@ function Es(e, t) {
|
|
|
3603
3603
|
};
|
|
3604
3604
|
}
|
|
3605
3605
|
V.Down, V.Right, V.Up, V.Left;
|
|
3606
|
-
const
|
|
3606
|
+
const Ts = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Os = (e) => e.replace(
|
|
3607
3607
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3608
3608
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3609
3609
|
), fr = (e) => {
|
|
3610
|
-
const t =
|
|
3610
|
+
const t = Os(e);
|
|
3611
3611
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3612
|
-
}, to = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3612
|
+
}, to = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Ms = (e) => {
|
|
3613
3613
|
for (const t in e)
|
|
3614
3614
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3615
3615
|
return !0;
|
|
3616
3616
|
};
|
|
3617
|
-
var
|
|
3617
|
+
var $s = {
|
|
3618
3618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3619
3619
|
width: 24,
|
|
3620
3620
|
height: 24,
|
|
@@ -3625,7 +3625,7 @@ var Ms = {
|
|
|
3625
3625
|
strokeLinecap: "round",
|
|
3626
3626
|
strokeLinejoin: "round"
|
|
3627
3627
|
};
|
|
3628
|
-
const
|
|
3628
|
+
const ks = wn(
|
|
3629
3629
|
({
|
|
3630
3630
|
color: e = "currentColor",
|
|
3631
3631
|
size: t = 24,
|
|
@@ -3639,28 +3639,28 @@ const $s = wn(
|
|
|
3639
3639
|
"svg",
|
|
3640
3640
|
{
|
|
3641
3641
|
ref: l,
|
|
3642
|
-
|
|
3642
|
+
...$s,
|
|
3643
3643
|
width: t,
|
|
3644
3644
|
height: t,
|
|
3645
3645
|
stroke: e,
|
|
3646
3646
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3647
3647
|
className: to("lucide", o),
|
|
3648
|
-
...!i && !
|
|
3648
|
+
...!i && !Ms(c) && { "aria-hidden": "true" },
|
|
3649
3649
|
...c
|
|
3650
3650
|
},
|
|
3651
3651
|
[
|
|
3652
|
-
...a.map(([u,
|
|
3652
|
+
...a.map(([u, d]) => hn(u, d)),
|
|
3653
3653
|
...Array.isArray(i) ? i : [i]
|
|
3654
3654
|
]
|
|
3655
3655
|
)
|
|
3656
3656
|
);
|
|
3657
3657
|
const ue = (e, t) => {
|
|
3658
3658
|
const n = wn(
|
|
3659
|
-
({ className: r, ...o }, i) => hn(
|
|
3659
|
+
({ className: r, ...o }, i) => hn(ks, {
|
|
3660
3660
|
ref: i,
|
|
3661
3661
|
iconNode: t,
|
|
3662
3662
|
className: to(
|
|
3663
|
-
`lucide-${
|
|
3663
|
+
`lucide-${Ts(fr(e))}`,
|
|
3664
3664
|
`lucide-${e}`,
|
|
3665
3665
|
r
|
|
3666
3666
|
),
|
|
@@ -3672,33 +3672,33 @@ const ue = (e, t) => {
|
|
|
3672
3672
|
const Is = [
|
|
3673
3673
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3674
3674
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3675
|
-
],
|
|
3676
|
-
const
|
|
3675
|
+
], As = ue("arrow-down", Is);
|
|
3676
|
+
const Ls = [
|
|
3677
3677
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3678
3678
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3679
3679
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3680
3680
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3681
|
-
],
|
|
3682
|
-
const
|
|
3681
|
+
], Ns = ue("arrow-up-down", Ls);
|
|
3682
|
+
const zs = [
|
|
3683
3683
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3684
3684
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3685
|
-
],
|
|
3686
|
-
const
|
|
3685
|
+
], Ps = ue("arrow-up", zs);
|
|
3686
|
+
const Ys = [
|
|
3687
3687
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3688
|
-
],
|
|
3689
|
-
const
|
|
3688
|
+
], Fs = ue("bookmark", Ys);
|
|
3689
|
+
const Vs = [
|
|
3690
3690
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3691
3691
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3692
3692
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3693
3693
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3694
|
-
], hr = ue("calendar",
|
|
3695
|
-
const
|
|
3696
|
-
const
|
|
3697
|
-
const
|
|
3694
|
+
], hr = ue("calendar", Vs);
|
|
3695
|
+
const Hs = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ws = ue("chevron-left", Hs);
|
|
3696
|
+
const Bs = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Us = ue("chevron-right", Bs);
|
|
3697
|
+
const Gs = [
|
|
3698
3698
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3699
3699
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3700
|
-
],
|
|
3701
|
-
const
|
|
3700
|
+
], Xs = ue("columns-2", Gs);
|
|
3701
|
+
const qs = [
|
|
3702
3702
|
[
|
|
3703
3703
|
"path",
|
|
3704
3704
|
{
|
|
@@ -3708,13 +3708,13 @@ const Xs = [
|
|
|
3708
3708
|
],
|
|
3709
3709
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3710
3710
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3711
|
-
],
|
|
3712
|
-
const
|
|
3711
|
+
], Ks = ue("delete", qs);
|
|
3712
|
+
const Js = [
|
|
3713
3713
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3714
3714
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3715
3715
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3716
|
-
],
|
|
3717
|
-
const
|
|
3716
|
+
], Zs = ue("ellipsis", Js);
|
|
3717
|
+
const Qs = [
|
|
3718
3718
|
[
|
|
3719
3719
|
"path",
|
|
3720
3720
|
{
|
|
@@ -3722,16 +3722,16 @@ const Zs = [
|
|
|
3722
3722
|
key: "sc7q7i"
|
|
3723
3723
|
}
|
|
3724
3724
|
]
|
|
3725
|
-
],
|
|
3726
|
-
const
|
|
3725
|
+
], ea = ue("funnel", Qs);
|
|
3726
|
+
const ta = [
|
|
3727
3727
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3728
3728
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3729
3729
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
3730
3730
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3731
3731
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3732
3732
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3733
|
-
], no = ue("grip-vertical",
|
|
3734
|
-
const
|
|
3733
|
+
], no = ue("grip-vertical", ta);
|
|
3734
|
+
const na = [
|
|
3735
3735
|
[
|
|
3736
3736
|
"path",
|
|
3737
3737
|
{
|
|
@@ -3739,14 +3739,14 @@ const ta = [
|
|
|
3739
3739
|
key: "1a8usu"
|
|
3740
3740
|
}
|
|
3741
3741
|
]
|
|
3742
|
-
],
|
|
3743
|
-
const
|
|
3742
|
+
], ra = ue("pen", na);
|
|
3743
|
+
const oa = [
|
|
3744
3744
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
3745
3745
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3746
3746
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
3747
3747
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
3748
|
-
],
|
|
3749
|
-
const
|
|
3748
|
+
], ia = ue("refresh-ccw", oa);
|
|
3749
|
+
const sa = [
|
|
3750
3750
|
[
|
|
3751
3751
|
"path",
|
|
3752
3752
|
{
|
|
@@ -3755,8 +3755,8 @@ const ia = [
|
|
|
3755
3755
|
}
|
|
3756
3756
|
],
|
|
3757
3757
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3758
|
-
],
|
|
3759
|
-
const
|
|
3758
|
+
], aa = ue("settings", sa);
|
|
3759
|
+
const ca = [
|
|
3760
3760
|
[
|
|
3761
3761
|
"path",
|
|
3762
3762
|
{
|
|
@@ -3766,7 +3766,7 @@ const aa = [
|
|
|
3766
3766
|
],
|
|
3767
3767
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3768
3768
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3769
|
-
],
|
|
3769
|
+
], la = ue("triangle-alert", ca);
|
|
3770
3770
|
function x(e) {
|
|
3771
3771
|
return wn((t, n) => {
|
|
3772
3772
|
const { children: r, ...o } = t;
|
|
@@ -3776,22 +3776,22 @@ function x(e) {
|
|
|
3776
3776
|
);
|
|
3777
3777
|
});
|
|
3778
3778
|
}
|
|
3779
|
-
const
|
|
3780
|
-
function
|
|
3779
|
+
const ua = x(Oe.Trigger), da = x(Oe.Positioner), fa = x(Oe.Content), ha = x(Oe.Item), ga = x(Ce.Label), pa = x(Ce.HiddenInput), va = x(Ce.Control);
|
|
3780
|
+
function ma({ visibility: e, onToggle: t }) {
|
|
3781
3781
|
const { sortableColumns: n } = bt(he);
|
|
3782
3782
|
return /* @__PURE__ */ s.jsxs(Oe.Root, { closeOnSelect: !1, children: [
|
|
3783
|
-
/* @__PURE__ */ s.jsx(
|
|
3784
|
-
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(
|
|
3783
|
+
/* @__PURE__ */ s.jsx(ua, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ s.jsx(Xs, { size: 18 }) }) }),
|
|
3784
|
+
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(da, { children: /* @__PURE__ */ s.jsx(fa, { minW: "220px", children: n.map((r) => {
|
|
3785
3785
|
const o = !!e[r.id];
|
|
3786
|
-
return /* @__PURE__ */ s.jsx(
|
|
3787
|
-
/* @__PURE__ */ s.jsx(ga, {}),
|
|
3786
|
+
return /* @__PURE__ */ s.jsx(ha, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ s.jsxs(Ce.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3788
3787
|
/* @__PURE__ */ s.jsx(pa, {}),
|
|
3789
|
-
/* @__PURE__ */ s.jsx(
|
|
3788
|
+
/* @__PURE__ */ s.jsx(va, {}),
|
|
3789
|
+
/* @__PURE__ */ s.jsx(ga, { children: r.label })
|
|
3790
3790
|
] }) }, r.id);
|
|
3791
3791
|
}) }) }) })
|
|
3792
3792
|
] });
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3794
|
+
function ba({
|
|
3795
3795
|
id: e,
|
|
3796
3796
|
children: t,
|
|
3797
3797
|
onClick: n,
|
|
@@ -3800,17 +3800,17 @@ function ma({
|
|
|
3800
3800
|
borderRightColor: i,
|
|
3801
3801
|
backgroundColor: a
|
|
3802
3802
|
}) {
|
|
3803
|
-
const { setNodeRef: c, attributes: l, listeners: u, transform:
|
|
3803
|
+
const { setNodeRef: c, attributes: l, listeners: u, transform: d, transition: f } = eo({ id: e });
|
|
3804
3804
|
return /* @__PURE__ */ s.jsx(
|
|
3805
|
-
|
|
3805
|
+
be.ColumnHeader,
|
|
3806
3806
|
{
|
|
3807
3807
|
ref: c,
|
|
3808
3808
|
onClick: n,
|
|
3809
3809
|
backgroundColor: a,
|
|
3810
3810
|
w: e === "id" ? "80px" : void 0,
|
|
3811
3811
|
style: {
|
|
3812
|
-
transform: Ze.Transform.toString(
|
|
3813
|
-
transition:
|
|
3812
|
+
transform: Ze.Transform.toString(d),
|
|
3813
|
+
transition: f,
|
|
3814
3814
|
cursor: r,
|
|
3815
3815
|
borderRight: o,
|
|
3816
3816
|
borderRightColor: i
|
|
@@ -3823,26 +3823,26 @@ function ma({
|
|
|
3823
3823
|
}
|
|
3824
3824
|
);
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function xa() {
|
|
3827
3827
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(he), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
|
|
3828
|
-
const { active: u, over:
|
|
3829
|
-
if (!
|
|
3830
|
-
const
|
|
3831
|
-
|
|
3828
|
+
const { active: u, over: d } = l;
|
|
3829
|
+
if (!d || u.id === d.id) return;
|
|
3830
|
+
const f = e.findIndex((v) => v.id === u.id), b = e.findIndex((v) => v.id === d.id), p = Kt(e, f, b);
|
|
3831
|
+
Yo(p);
|
|
3832
3832
|
};
|
|
3833
|
-
return /* @__PURE__ */ s.jsx(
|
|
3833
|
+
return /* @__PURE__ */ s.jsx(be.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ s.jsx(Xr, { collisionDetection: Ir, onDragEnd: c, children: /* @__PURE__ */ s.jsx(
|
|
3834
3834
|
Zr,
|
|
3835
3835
|
{
|
|
3836
3836
|
items: e.map((l) => l.id),
|
|
3837
|
-
strategy:
|
|
3838
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3837
|
+
strategy: bs,
|
|
3838
|
+
children: /* @__PURE__ */ s.jsxs(be.Row, { height: "28px", children: [
|
|
3839
3839
|
a.map((l) => {
|
|
3840
3840
|
const u = n === l?.id;
|
|
3841
3841
|
return /* @__PURE__ */ s.jsx(
|
|
3842
|
-
|
|
3842
|
+
ba,
|
|
3843
3843
|
{
|
|
3844
3844
|
id: l?.id,
|
|
3845
|
-
onClick: () => l?.sortable &&
|
|
3845
|
+
onClick: () => l?.sortable && Fo(l?.id),
|
|
3846
3846
|
cursor: l?.sortable ? "pointer" : "default",
|
|
3847
3847
|
borderRight: "2px solid #dcdcdc",
|
|
3848
3848
|
backgroundColor: l?.backgroundColor,
|
|
@@ -3857,7 +3857,7 @@ function ba() {
|
|
|
3857
3857
|
},
|
|
3858
3858
|
children: [
|
|
3859
3859
|
l?.label,
|
|
3860
|
-
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ s.jsx(
|
|
3860
|
+
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ s.jsx(Ps, { size: 14 }) : /* @__PURE__ */ s.jsx(As, { size: 14 }) : /* @__PURE__ */ s.jsx(Ns, { size: 14, opacity: 0.4 }))
|
|
3861
3861
|
]
|
|
3862
3862
|
}
|
|
3863
3863
|
)
|
|
@@ -3866,7 +3866,7 @@ function ba() {
|
|
|
3866
3866
|
);
|
|
3867
3867
|
}),
|
|
3868
3868
|
i?.showActionColumn && /* @__PURE__ */ s.jsx(
|
|
3869
|
-
|
|
3869
|
+
be.ColumnHeader,
|
|
3870
3870
|
{
|
|
3871
3871
|
width: i.width,
|
|
3872
3872
|
backgroundColor: i.backgroundColor,
|
|
@@ -3875,11 +3875,11 @@ function ba() {
|
|
|
3875
3875
|
}
|
|
3876
3876
|
),
|
|
3877
3877
|
i?.showColumnVisibilityMenu && /* @__PURE__ */ s.jsx(
|
|
3878
|
-
|
|
3878
|
+
be.ColumnHeader,
|
|
3879
3879
|
{
|
|
3880
3880
|
boxSize: "0.5",
|
|
3881
3881
|
backgroundColor: i.backgroundColorColumnVisibilityMenu,
|
|
3882
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3882
|
+
children: /* @__PURE__ */ s.jsx(ma, { visibility: t, onToggle: Vo })
|
|
3883
3883
|
}
|
|
3884
3884
|
)
|
|
3885
3885
|
] })
|
|
@@ -3893,8 +3893,8 @@ const gr = Dr({
|
|
|
3893
3893
|
{ label: "50", value: "50" },
|
|
3894
3894
|
{ label: "100", value: "100" }
|
|
3895
3895
|
]
|
|
3896
|
-
}),
|
|
3897
|
-
function
|
|
3896
|
+
}), ya = x(K.Positioner), wa = x(K.Content), Sa = x(K.Item), Da = x(Nt.PrevTrigger), Ca = x(Nt.NextTrigger), ja = x(K.HiddenSelect), Ra = x(K.Control), Ea = x(K.Trigger), _a = x(K.ValueText), Ta = x(K.IndicatorGroup), Oa = x(K.Indicator);
|
|
3897
|
+
function Ma({
|
|
3898
3898
|
totalCount: e,
|
|
3899
3899
|
pageSize: t,
|
|
3900
3900
|
currentPage: n,
|
|
@@ -3902,7 +3902,7 @@ function Oa({
|
|
|
3902
3902
|
onPageSizeChange: o,
|
|
3903
3903
|
siblingCount: i = 2
|
|
3904
3904
|
}) {
|
|
3905
|
-
return /* @__PURE__ */ s.jsx(
|
|
3905
|
+
return /* @__PURE__ */ s.jsx(Ee, { width: "100%", children: /* @__PURE__ */ s.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3906
3906
|
/* @__PURE__ */ s.jsxs(fe, { children: [
|
|
3907
3907
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3908
3908
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -3914,12 +3914,12 @@ function Oa({
|
|
|
3914
3914
|
onValueChange: (a) => o && o(Number(a.items[0].value)),
|
|
3915
3915
|
value: [String(t)],
|
|
3916
3916
|
children: [
|
|
3917
|
-
/* @__PURE__ */ s.jsx(
|
|
3917
|
+
/* @__PURE__ */ s.jsx(ja, {}),
|
|
3918
3918
|
/* @__PURE__ */ s.jsxs(Ra, { children: [
|
|
3919
|
-
/* @__PURE__ */ s.jsx(
|
|
3920
|
-
/* @__PURE__ */ s.jsx(
|
|
3919
|
+
/* @__PURE__ */ s.jsx(Ea, { children: /* @__PURE__ */ s.jsx(_a, { placeholder: "" }) }),
|
|
3920
|
+
/* @__PURE__ */ s.jsx(Ta, { children: /* @__PURE__ */ s.jsx(Oa, {}) })
|
|
3921
3921
|
] }),
|
|
3922
|
-
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(
|
|
3922
|
+
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(ya, { children: /* @__PURE__ */ s.jsx(wa, { children: gr.items.map((a) => /* @__PURE__ */ s.jsxs(Sa, { item: a.value, children: [
|
|
3923
3923
|
a.label,
|
|
3924
3924
|
/* @__PURE__ */ s.jsx(K.ItemIndicator, {})
|
|
3925
3925
|
] }, a.value)) }) }) })
|
|
@@ -3936,7 +3936,7 @@ function Oa({
|
|
|
3936
3936
|
siblingCount: i,
|
|
3937
3937
|
onPageChange: (a) => r && r(a.page),
|
|
3938
3938
|
children: /* @__PURE__ */ s.jsxs(bo, { size: "sm", variant: "ghost", children: [
|
|
3939
|
-
/* @__PURE__ */ s.jsx(
|
|
3939
|
+
/* @__PURE__ */ s.jsx(Da, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ s.jsx(Ws, { size: 18 }) }) }),
|
|
3940
3940
|
/* @__PURE__ */ s.jsx(
|
|
3941
3941
|
Nt.Items,
|
|
3942
3942
|
{
|
|
@@ -3951,24 +3951,24 @@ function Oa({
|
|
|
3951
3951
|
)
|
|
3952
3952
|
}
|
|
3953
3953
|
),
|
|
3954
|
-
/* @__PURE__ */ s.jsx(
|
|
3954
|
+
/* @__PURE__ */ s.jsx(Ca, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ s.jsx(Us, { size: 18 }) }) })
|
|
3955
3955
|
] })
|
|
3956
3956
|
}
|
|
3957
3957
|
)
|
|
3958
3958
|
] }) });
|
|
3959
3959
|
}
|
|
3960
|
-
const
|
|
3961
|
-
function
|
|
3960
|
+
const $a = x(Oe.Item), ka = x(Oe.Content), Ia = x(Oe.Positioner), Aa = x(Oe.Trigger);
|
|
3961
|
+
function La({
|
|
3962
3962
|
data: e = [],
|
|
3963
3963
|
actions: t = []
|
|
3964
3964
|
}) {
|
|
3965
3965
|
const { columnOrder: n, visibility: r } = bt(he);
|
|
3966
|
-
return /* @__PURE__ */ s.jsx(
|
|
3967
|
-
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(
|
|
3968
|
-
/* @__PURE__ */ s.jsx(
|
|
3969
|
-
/* @__PURE__ */ s.jsx(
|
|
3970
|
-
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(Ia, { children: /* @__PURE__ */ s.jsx(
|
|
3971
|
-
|
|
3966
|
+
return /* @__PURE__ */ s.jsx(be.Body, { children: e.map((o) => /* @__PURE__ */ s.jsxs(be.Row, { children: [
|
|
3967
|
+
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(be.Cell, { children: o[i.id] }, i.id)),
|
|
3968
|
+
/* @__PURE__ */ s.jsx(be.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ s.jsxs(Oe.Root, { children: [
|
|
3969
|
+
/* @__PURE__ */ s.jsx(Aa, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ s.jsx(Zs, { size: 16 }) }) }),
|
|
3970
|
+
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(Ia, { children: /* @__PURE__ */ s.jsx(ka, { children: t.map((i) => /* @__PURE__ */ s.jsxs(
|
|
3971
|
+
$a,
|
|
3972
3972
|
{
|
|
3973
3973
|
onClick: () => i.onClick(o),
|
|
3974
3974
|
colorScheme: i.colorScheme,
|
|
@@ -3983,61 +3983,89 @@ function Aa({
|
|
|
3983
3983
|
] }) })
|
|
3984
3984
|
] }, o.id)) });
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Na({
|
|
3987
|
+
rows: e = 6,
|
|
3988
|
+
columns: t
|
|
3989
|
+
}) {
|
|
3990
|
+
return /* @__PURE__ */ s.jsx(be.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(be.Row, { children: Array.from({ length: t }).map((o, i) => /* @__PURE__ */ s.jsx(be.Cell, { children: /* @__PURE__ */ s.jsx(xo, { height: "25px" }) }, i)) }, r)) });
|
|
3991
|
+
}
|
|
3992
|
+
function vl({
|
|
3987
3993
|
tableId: e,
|
|
3988
3994
|
data: t = [],
|
|
3989
3995
|
headers: n = [],
|
|
3990
3996
|
loading: r = !1,
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
3997
|
+
loadingChildren: o,
|
|
3998
|
+
skeletonLoading: i = !1,
|
|
3999
|
+
emptyMessage: a = "No data",
|
|
4000
|
+
actions: c,
|
|
4001
|
+
page: l = 1,
|
|
4002
|
+
pageSize: u = 10,
|
|
4003
|
+
onPageChange: d,
|
|
4004
|
+
onPageSizeChange: f,
|
|
4005
|
+
density: b = "sm",
|
|
4006
|
+
totalCount: p = 0,
|
|
4007
|
+
paginationMode: v = "client",
|
|
4008
|
+
actionConfig: h
|
|
4001
4009
|
}) {
|
|
4002
4010
|
H(() => {
|
|
4003
|
-
|
|
4011
|
+
zo(e), Ho(e);
|
|
4004
4012
|
}, [e]), H(() => {
|
|
4005
|
-
|
|
4013
|
+
No(t, n);
|
|
4006
4014
|
}, [t, n]), H(() => {
|
|
4007
|
-
|
|
4008
|
-
}, [
|
|
4009
|
-
const { sortColumn:
|
|
4010
|
-
const
|
|
4011
|
-
if (
|
|
4012
|
-
(
|
|
4013
|
-
),
|
|
4014
|
-
const
|
|
4015
|
-
return
|
|
4015
|
+
h && Po(h);
|
|
4016
|
+
}, [h]);
|
|
4017
|
+
const { sortColumn: m, sortDirection: w, data: _ } = bt(he), R = B(() => {
|
|
4018
|
+
const T = [..._], O = Math.max(1, l || 1);
|
|
4019
|
+
if (m && T.sort(
|
|
4020
|
+
(j, M) => w === "asc" ? String(j[m]).localeCompare(String(M[m])) : String(M[m]).localeCompare(String(j[m]))
|
|
4021
|
+
), v === "client") {
|
|
4022
|
+
const j = (O - 1) * u;
|
|
4023
|
+
return T.slice(j, j + u);
|
|
4016
4024
|
}
|
|
4017
|
-
return
|
|
4018
|
-
}, [
|
|
4025
|
+
return T;
|
|
4026
|
+
}, [_, m, w, l, u, v]);
|
|
4019
4027
|
return H(() => {
|
|
4020
|
-
|
|
4021
|
-
}, [
|
|
4022
|
-
/* @__PURE__ */ s.jsx(
|
|
4023
|
-
/* @__PURE__ */ s.jsx(
|
|
4024
|
-
/* @__PURE__ */ s.jsx(
|
|
4028
|
+
l < 1 && d && d(1);
|
|
4029
|
+
}, [l, d]), /* @__PURE__ */ s.jsxs(Ee, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
4030
|
+
/* @__PURE__ */ s.jsx(Ee, { flex: "1", minHeight: 0, overflow: "auto", children: /* @__PURE__ */ s.jsxs(be.Root, { variant: "outline", w: "100%", size: b, children: [
|
|
4031
|
+
/* @__PURE__ */ s.jsx(xa, {}),
|
|
4032
|
+
r ? o || /* @__PURE__ */ s.jsx(
|
|
4033
|
+
Ee,
|
|
4034
|
+
{
|
|
4035
|
+
display: "flex",
|
|
4036
|
+
alignItems: "center",
|
|
4037
|
+
justifyContent: "center",
|
|
4038
|
+
h: "120px",
|
|
4039
|
+
color: "gray.500",
|
|
4040
|
+
children: "Loading..."
|
|
4041
|
+
}
|
|
4042
|
+
) : i ? /* @__PURE__ */ s.jsx(Na, { rows: u, columns: n.length + 2 }) : R.length === 0 ? /* @__PURE__ */ s.jsx(
|
|
4043
|
+
Ee,
|
|
4044
|
+
{
|
|
4045
|
+
display: "flex",
|
|
4046
|
+
alignItems: "center",
|
|
4047
|
+
justifyContent: "center",
|
|
4048
|
+
h: "120px",
|
|
4049
|
+
color: "gray.500",
|
|
4050
|
+
children: a
|
|
4051
|
+
}
|
|
4052
|
+
) : /* @__PURE__ */ s.jsx(La, { data: R, actions: c })
|
|
4025
4053
|
] }) }),
|
|
4026
|
-
/* @__PURE__ */ s.jsx(
|
|
4027
|
-
|
|
4054
|
+
/* @__PURE__ */ s.jsx(Ee, { mt: 0.5, children: /* @__PURE__ */ s.jsx(
|
|
4055
|
+
Ma,
|
|
4028
4056
|
{
|
|
4029
|
-
totalCount:
|
|
4030
|
-
pageSize:
|
|
4031
|
-
currentPage:
|
|
4032
|
-
onPageChange:
|
|
4033
|
-
onPageSizeChange: (
|
|
4034
|
-
|
|
4057
|
+
totalCount: p,
|
|
4058
|
+
pageSize: u,
|
|
4059
|
+
currentPage: l,
|
|
4060
|
+
onPageChange: d,
|
|
4061
|
+
onPageSizeChange: (T) => {
|
|
4062
|
+
f && f(T), l > 1 && d && d(1);
|
|
4035
4063
|
}
|
|
4036
4064
|
}
|
|
4037
4065
|
) })
|
|
4038
4066
|
] });
|
|
4039
4067
|
}
|
|
4040
|
-
const
|
|
4068
|
+
const za = x(Ce.Root), Pa = x(Ce.HiddenInput), Ya = x(Ce.Control), Fa = x(Ce.Label), Va = ({
|
|
4041
4069
|
value: e,
|
|
4042
4070
|
onChange: t,
|
|
4043
4071
|
size: n = "sm",
|
|
@@ -4046,10 +4074,10 @@ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Lab
|
|
|
4046
4074
|
isDisabled: i,
|
|
4047
4075
|
required: a,
|
|
4048
4076
|
errorText: c
|
|
4049
|
-
}) => /* @__PURE__ */ s.jsxs(
|
|
4050
|
-
/* @__PURE__ */ s.jsx(
|
|
4077
|
+
}) => /* @__PURE__ */ s.jsxs(za, { value: e, onChange: t, size: n, children: [
|
|
4078
|
+
/* @__PURE__ */ s.jsx(Pa, {}),
|
|
4051
4079
|
/* @__PURE__ */ s.jsx(
|
|
4052
|
-
|
|
4080
|
+
Ya,
|
|
4053
4081
|
{
|
|
4054
4082
|
disabled: i,
|
|
4055
4083
|
required: a,
|
|
@@ -4057,7 +4085,7 @@ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Lab
|
|
|
4057
4085
|
helperText: o
|
|
4058
4086
|
}
|
|
4059
4087
|
),
|
|
4060
|
-
r && /* @__PURE__ */ s.jsx(
|
|
4088
|
+
r && /* @__PURE__ */ s.jsx(Fa, { children: r })
|
|
4061
4089
|
] }), ee = " to ", pr = 10, Ve = {
|
|
4062
4090
|
DAY_MAX: 31,
|
|
4063
4091
|
MONTH_MAX: 12,
|
|
@@ -4073,10 +4101,10 @@ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Lab
|
|
|
4073
4101
|
}, vr = () => {
|
|
4074
4102
|
const { year: e, month: t, day: n } = Mn();
|
|
4075
4103
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4076
|
-
},
|
|
4104
|
+
}, Ha = () => {
|
|
4077
4105
|
const { year: e, month: t, day: n } = Mn();
|
|
4078
4106
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4079
|
-
},
|
|
4107
|
+
}, Wa = (e, t) => {
|
|
4080
4108
|
const n = e.length, r = parseInt(e);
|
|
4081
4109
|
if (!e || isNaN(r)) return t;
|
|
4082
4110
|
if (n === 4)
|
|
@@ -4092,12 +4120,12 @@ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Lab
|
|
|
4092
4120
|
if (n.length === 0) return null;
|
|
4093
4121
|
const { year: r, month: o, day: i } = Mn();
|
|
4094
4122
|
let a, c, l;
|
|
4095
|
-
return n.length === 1 ? (a = parseInt(n[0]) || i, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l =
|
|
4096
|
-
},
|
|
4123
|
+
return n.length === 1 ? (a = parseInt(n[0]) || i, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || i, c = parseInt(n[1]) || o, l = Wa(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")}`;
|
|
4124
|
+
}, Se = (e) => {
|
|
4097
4125
|
if (!e) return "";
|
|
4098
4126
|
const [t, n, r] = e.split("-");
|
|
4099
4127
|
return `${r}-${n}-${t}`;
|
|
4100
|
-
},
|
|
4128
|
+
}, Ba = (e, t) => {
|
|
4101
4129
|
if (e[0]?.length > 0) {
|
|
4102
4130
|
const n = parseInt(e[0]);
|
|
4103
4131
|
if (isNaN(n) || n === 0 || e[0].length === 2 && n > Ve.DAY_MAX)
|
|
@@ -4121,83 +4149,83 @@ const La = x(De.Root), Na = x(De.HiddenInput), za = x(De.Control), Pa = x(De.Lab
|
|
|
4121
4149
|
o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
|
|
4122
4150
|
}
|
|
4123
4151
|
const n = t.split("-");
|
|
4124
|
-
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),
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4152
|
+
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), Ba(n, e) || t;
|
|
4153
|
+
}, Ua = x(Wt.Root), Ga = x(Wt.Trigger), Xa = x(Wt.Content), qa = x(Wt.Positioner);
|
|
4154
|
+
function Ka({
|
|
4127
4155
|
value: e,
|
|
4128
4156
|
onChange: t,
|
|
4129
4157
|
disabled: n = !1
|
|
4130
4158
|
}) {
|
|
4131
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = oe(() => r && o ? `${
|
|
4159
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = oe(() => r && o ? `${Se(r)}${ee}${Se(o)}` : r ? Se(r) : ""), [c, l] = oe(!1), u = U(null);
|
|
4132
4160
|
H(() => {
|
|
4133
4161
|
const v = (h) => {
|
|
4134
4162
|
h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
|
|
4135
4163
|
};
|
|
4136
4164
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
4137
4165
|
}, []);
|
|
4138
|
-
const
|
|
4166
|
+
const d = (v) => {
|
|
4139
4167
|
let h = v;
|
|
4140
4168
|
if (h.includes(ee)) {
|
|
4141
|
-
const [
|
|
4142
|
-
h = `${ut(
|
|
4169
|
+
const [m, w = ""] = h.split(ee);
|
|
4170
|
+
h = `${ut(m.trim())}${ee}${ut(
|
|
4143
4171
|
w.trim()
|
|
4144
4172
|
)}`;
|
|
4145
4173
|
} else if (h.toLowerCase().includes(" to ")) {
|
|
4146
|
-
const [
|
|
4147
|
-
h = `${ut(
|
|
4174
|
+
const [m, w = ""] = h.split(/\s+to\s+/i);
|
|
4175
|
+
h = `${ut(m.trim())} to ${ut(w.trim())}`;
|
|
4148
4176
|
} else
|
|
4149
4177
|
h = ut(h);
|
|
4150
4178
|
a(h);
|
|
4151
|
-
},
|
|
4179
|
+
}, f = () => {
|
|
4152
4180
|
const v = i.trim();
|
|
4153
4181
|
if (!v) {
|
|
4154
4182
|
t(void 0);
|
|
4155
4183
|
return;
|
|
4156
4184
|
}
|
|
4157
4185
|
if (v.includes(ee)) {
|
|
4158
|
-
const [h,
|
|
4159
|
-
if (w &&
|
|
4160
|
-
const [
|
|
4161
|
-
|
|
4186
|
+
const [h, m = ""] = v.split(ee).map((R) => R.trim()), w = lt(h), _ = m ? lt(m) : null;
|
|
4187
|
+
if (w && _) {
|
|
4188
|
+
const [R, T] = _ < w ? [_, w] : [w, _], O = `${Se(R)}${ee}${Se(
|
|
4189
|
+
T
|
|
4162
4190
|
)}`;
|
|
4163
|
-
a(O), t(`${
|
|
4164
|
-
} else if (w && !
|
|
4165
|
-
a(`${
|
|
4166
|
-
else if (w &&
|
|
4167
|
-
const
|
|
4191
|
+
a(O), t(`${R}|${T}`);
|
|
4192
|
+
} else if (w && !m)
|
|
4193
|
+
a(`${Se(w)}${ee}`), t(void 0);
|
|
4194
|
+
else if (w && m) {
|
|
4195
|
+
const R = Ha(), [T, O] = R < w ? [R, w] : [w, R], j = `${Se(T)}${ee}${Se(
|
|
4168
4196
|
O
|
|
4169
4197
|
)}`;
|
|
4170
|
-
a(
|
|
4198
|
+
a(j), t(`${T}|${O}`);
|
|
4171
4199
|
} else
|
|
4172
4200
|
a(""), t(void 0);
|
|
4173
4201
|
} else {
|
|
4174
4202
|
const h = lt(v);
|
|
4175
|
-
h ? (a(`${
|
|
4203
|
+
h ? (a(`${Se(h)}${ee}`), t(void 0)) : (a(""), t(void 0));
|
|
4176
4204
|
}
|
|
4177
|
-
},
|
|
4205
|
+
}, b = (v) => {
|
|
4178
4206
|
if (v.key !== "Enter") return;
|
|
4179
4207
|
v.preventDefault();
|
|
4180
|
-
const h = u.current?.selectionStart || 0,
|
|
4208
|
+
const h = u.current?.selectionStart || 0, m = i.indexOf(ee);
|
|
4181
4209
|
if (!i.trim()) {
|
|
4182
4210
|
a(`${vr()}${ee}`);
|
|
4183
4211
|
return;
|
|
4184
4212
|
}
|
|
4185
|
-
if (
|
|
4186
|
-
const
|
|
4187
|
-
|
|
4213
|
+
if (m === -1) {
|
|
4214
|
+
const _ = lt(i.trim());
|
|
4215
|
+
_ && a(`${Se(_)}${ee}`);
|
|
4188
4216
|
return;
|
|
4189
4217
|
}
|
|
4190
|
-
if (h <=
|
|
4191
|
-
const
|
|
4192
|
-
|
|
4218
|
+
if (h <= m + ee.length) {
|
|
4219
|
+
const _ = i.substring(0, m).trim(), R = i.substring(m + ee.length), T = lt(_);
|
|
4220
|
+
T && a(`${Se(T)}${ee}${R}`);
|
|
4193
4221
|
return;
|
|
4194
4222
|
}
|
|
4195
|
-
if (i.substring(
|
|
4196
|
-
|
|
4223
|
+
if (i.substring(m + ee.length).trim())
|
|
4224
|
+
f(), u.current?.blur();
|
|
4197
4225
|
else {
|
|
4198
|
-
const
|
|
4199
|
-
a(
|
|
4200
|
-
|
|
4226
|
+
const _ = i.substring(0, m + ee.length) + vr();
|
|
4227
|
+
a(_), setTimeout(() => {
|
|
4228
|
+
f(), u.current?.blur();
|
|
4201
4229
|
}, 0);
|
|
4202
4230
|
}
|
|
4203
4231
|
}, p = () => {
|
|
@@ -4205,14 +4233,14 @@ function Xa({
|
|
|
4205
4233
|
};
|
|
4206
4234
|
return /* @__PURE__ */ s.jsx(Cr, { children: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(Fn, { position: "revert", children: [
|
|
4207
4235
|
/* @__PURE__ */ s.jsxs(
|
|
4208
|
-
|
|
4236
|
+
Ua,
|
|
4209
4237
|
{
|
|
4210
4238
|
open: c,
|
|
4211
4239
|
onEscapeKeyDown: () => {
|
|
4212
4240
|
l(!1);
|
|
4213
4241
|
},
|
|
4214
4242
|
children: [
|
|
4215
|
-
/* @__PURE__ */ s.jsx(
|
|
4243
|
+
/* @__PURE__ */ s.jsx(Ga, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
4216
4244
|
_e,
|
|
4217
4245
|
{
|
|
4218
4246
|
size: "sm",
|
|
@@ -4222,14 +4250,14 @@ function Xa({
|
|
|
4222
4250
|
children: /* @__PURE__ */ s.jsx(hr, { size: 16 })
|
|
4223
4251
|
}
|
|
4224
4252
|
) }),
|
|
4225
|
-
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(
|
|
4226
|
-
/* @__PURE__ */ s.jsx(
|
|
4227
|
-
/* @__PURE__ */ s.jsxs(
|
|
4253
|
+
/* @__PURE__ */ s.jsx(Qe, { children: /* @__PURE__ */ s.jsx(qa, { children: /* @__PURE__ */ s.jsxs(Xa, { p: 4, children: [
|
|
4254
|
+
/* @__PURE__ */ s.jsx(yo, {}),
|
|
4255
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 4, children: [
|
|
4228
4256
|
/* @__PURE__ */ s.jsxs(fe, { children: [
|
|
4229
4257
|
/* @__PURE__ */ s.jsx(hr, { size: 16 }),
|
|
4230
4258
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4231
4259
|
] }),
|
|
4232
|
-
/* @__PURE__ */ s.jsxs(
|
|
4260
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4233
4261
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4234
4262
|
/* @__PURE__ */ s.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
|
|
4235
4263
|
"DD-MM-YYYY",
|
|
@@ -4237,14 +4265,14 @@ function Xa({
|
|
|
4237
4265
|
"DD-MM-YYYY"
|
|
4238
4266
|
] })
|
|
4239
4267
|
] }),
|
|
4240
|
-
/* @__PURE__ */ s.jsxs(
|
|
4268
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4241
4269
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
|
|
4242
4270
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
|
|
4243
4271
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
|
|
4244
4272
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
|
|
4245
4273
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
|
|
4246
4274
|
] }),
|
|
4247
|
-
/* @__PURE__ */ s.jsxs(
|
|
4275
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 1, children: [
|
|
4248
4276
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4249
4277
|
/* @__PURE__ */ s.jsxs(fe, { children: [
|
|
4250
4278
|
/* @__PURE__ */ s.jsx(Vn, { children: "Ctrl" }),
|
|
@@ -4265,9 +4293,9 @@ function Xa({
|
|
|
4265
4293
|
value: i,
|
|
4266
4294
|
size: "sm",
|
|
4267
4295
|
disabled: n,
|
|
4268
|
-
onChange: (v) =>
|
|
4269
|
-
onBlur:
|
|
4270
|
-
onKeyDown:
|
|
4296
|
+
onChange: (v) => d(v.target.value),
|
|
4297
|
+
onBlur: f,
|
|
4298
|
+
onKeyDown: b,
|
|
4271
4299
|
pr: i ? "10" : void 0,
|
|
4272
4300
|
w: "100%"
|
|
4273
4301
|
}
|
|
@@ -4284,7 +4312,7 @@ function Xa({
|
|
|
4284
4312
|
) })
|
|
4285
4313
|
] }) }) });
|
|
4286
4314
|
}
|
|
4287
|
-
const
|
|
4315
|
+
const Ja = x(We.Root), Za = x(We.Label), Qa = x(We.HelperText), ec = x(We.ErrorText), mr = ({
|
|
4288
4316
|
icon: e,
|
|
4289
4317
|
value: t,
|
|
4290
4318
|
onChange: n,
|
|
@@ -4295,11 +4323,11 @@ const qa = x(We.Root), Ka = x(We.Label), Ja = x(We.HelperText), Za = x(We.ErrorT
|
|
|
4295
4323
|
label: c,
|
|
4296
4324
|
helperText: l,
|
|
4297
4325
|
isDisabled: u = !1,
|
|
4298
|
-
required:
|
|
4299
|
-
errorText:
|
|
4300
|
-
visible:
|
|
4301
|
-
}) => /* @__PURE__ */ s.jsxs(
|
|
4302
|
-
|
|
4326
|
+
required: d = !1,
|
|
4327
|
+
errorText: f,
|
|
4328
|
+
visible: b
|
|
4329
|
+
}) => /* @__PURE__ */ s.jsxs(Ja, { width: a, children: [
|
|
4330
|
+
b && /* @__PURE__ */ s.jsx(Za, { children: c }),
|
|
4303
4331
|
/* @__PURE__ */ s.jsx(Cr, { startElement: e, children: /* @__PURE__ */ s.jsx(
|
|
4304
4332
|
Sn,
|
|
4305
4333
|
{
|
|
@@ -4309,12 +4337,12 @@ const qa = x(We.Root), Ka = x(We.Label), Ja = x(We.HelperText), Za = x(We.ErrorT
|
|
|
4309
4337
|
size: o,
|
|
4310
4338
|
variant: i,
|
|
4311
4339
|
disabled: u,
|
|
4312
|
-
required:
|
|
4340
|
+
required: d
|
|
4313
4341
|
}
|
|
4314
4342
|
) }),
|
|
4315
|
-
|
|
4316
|
-
l && /* @__PURE__ */ s.jsx(
|
|
4317
|
-
] }),
|
|
4343
|
+
f && /* @__PURE__ */ s.jsx(ec, { fontSize: "xs", children: f }),
|
|
4344
|
+
l && /* @__PURE__ */ s.jsx(Qa, { fontSize: "xs", children: l })
|
|
4345
|
+
] }), tc = x(We.Root), nc = x(We.HelperText), rc = x(We.ErrorText), oc = x(K.Root), ic = x(K.Label), sc = x(K.Control), ac = x(K.Trigger), cc = x(K.ValueText), lc = x(K.IndicatorGroup), uc = x(K.Indicator), dc = x(K.Content), fc = x(K.Item), hc = x(K.ItemIndicator), gc = x(K.HiddenSelect), pc = x(K.Positioner), vc = ({
|
|
4318
4346
|
options: e = [],
|
|
4319
4347
|
label: t,
|
|
4320
4348
|
value: n,
|
|
@@ -4325,16 +4353,16 @@ const qa = x(We.Root), Ka = x(We.Label), Ja = x(We.HelperText), Za = x(We.ErrorT
|
|
|
4325
4353
|
variant: c = "outline",
|
|
4326
4354
|
helperText: l,
|
|
4327
4355
|
isDisabled: u,
|
|
4328
|
-
required:
|
|
4329
|
-
errorText:
|
|
4330
|
-
visible:
|
|
4356
|
+
required: d,
|
|
4357
|
+
errorText: f,
|
|
4358
|
+
visible: b
|
|
4331
4359
|
}) => {
|
|
4332
4360
|
const p = Dr({
|
|
4333
4361
|
items: e
|
|
4334
4362
|
});
|
|
4335
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4363
|
+
return /* @__PURE__ */ s.jsxs(tc, { disabled: u, required: d, children: [
|
|
4336
4364
|
/* @__PURE__ */ s.jsxs(
|
|
4337
|
-
|
|
4365
|
+
oc,
|
|
4338
4366
|
{
|
|
4339
4367
|
collection: p,
|
|
4340
4368
|
variant: c,
|
|
@@ -4343,24 +4371,24 @@ const qa = x(We.Root), Ka = x(We.Label), Ja = x(We.HelperText), Za = x(We.ErrorT
|
|
|
4343
4371
|
value: n ? [n] : [],
|
|
4344
4372
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4345
4373
|
children: [
|
|
4346
|
-
/* @__PURE__ */ s.jsx(
|
|
4347
|
-
|
|
4348
|
-
/* @__PURE__ */ s.jsxs(
|
|
4349
|
-
/* @__PURE__ */ s.jsx(
|
|
4350
|
-
/* @__PURE__ */ s.jsx(
|
|
4374
|
+
/* @__PURE__ */ s.jsx(gc, {}),
|
|
4375
|
+
b && /* @__PURE__ */ s.jsx(ic, { children: t }),
|
|
4376
|
+
/* @__PURE__ */ s.jsxs(sc, { children: [
|
|
4377
|
+
/* @__PURE__ */ s.jsx(ac, { children: /* @__PURE__ */ s.jsx(cc, { placeholder: o }) }),
|
|
4378
|
+
/* @__PURE__ */ s.jsx(lc, { children: /* @__PURE__ */ s.jsx(uc, {}) })
|
|
4351
4379
|
] }),
|
|
4352
|
-
/* @__PURE__ */ s.jsx(
|
|
4380
|
+
/* @__PURE__ */ s.jsx(pc, { children: /* @__PURE__ */ s.jsx(dc, { children: p.items.map((v) => /* @__PURE__ */ s.jsxs(fc, { item: v, children: [
|
|
4353
4381
|
v.label,
|
|
4354
|
-
/* @__PURE__ */ s.jsx(
|
|
4382
|
+
/* @__PURE__ */ s.jsx(hc, {})
|
|
4355
4383
|
] }, v.value)) }) })
|
|
4356
4384
|
]
|
|
4357
4385
|
}
|
|
4358
4386
|
),
|
|
4359
|
-
l && /* @__PURE__ */ s.jsx(
|
|
4360
|
-
|
|
4387
|
+
l && /* @__PURE__ */ s.jsx(nc, { children: l }),
|
|
4388
|
+
f && /* @__PURE__ */ s.jsx(rc, { children: f })
|
|
4361
4389
|
] });
|
|
4362
4390
|
}, ro = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4363
|
-
function
|
|
4391
|
+
function mc(e) {
|
|
4364
4392
|
try {
|
|
4365
4393
|
return JSON.parse(localStorage.getItem(ro(e)) || "[]");
|
|
4366
4394
|
} catch {
|
|
@@ -4370,7 +4398,7 @@ function pc(e) {
|
|
|
4370
4398
|
const Ht = new _r({}), $n = (e) => {
|
|
4371
4399
|
const t = Ht.state[e];
|
|
4372
4400
|
if (t) return t;
|
|
4373
|
-
const n =
|
|
4401
|
+
const n = mc(e);
|
|
4374
4402
|
return Ht.setState((r) => ({
|
|
4375
4403
|
...r,
|
|
4376
4404
|
[e]: n
|
|
@@ -4380,13 +4408,13 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4380
4408
|
...n,
|
|
4381
4409
|
[e]: t
|
|
4382
4410
|
})), localStorage.setItem(ro(e), JSON.stringify(t));
|
|
4383
|
-
},
|
|
4411
|
+
}, bc = (e, t) => {
|
|
4384
4412
|
const n = $n(e).filter((r) => r.id !== t);
|
|
4385
4413
|
oo(e, n);
|
|
4386
|
-
},
|
|
4414
|
+
}, xc = (e, t) => {
|
|
4387
4415
|
const n = [t, ...$n(e)];
|
|
4388
4416
|
oo(e, n);
|
|
4389
|
-
},
|
|
4417
|
+
}, yc = x(Ce.Root), wc = x(Ce.HiddenInput), Sc = x(Ce.Control), Dc = x(mt.Root), Cc = x(mt.Track), jc = x(mt.Range), Rc = x(mt.Thumbs), Ec = x(mt.Control), _c = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4390
4418
|
const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition: c } = eo({
|
|
4391
4419
|
id: e.id
|
|
4392
4420
|
}), l = {
|
|
@@ -4394,7 +4422,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4394
4422
|
transition: c
|
|
4395
4423
|
};
|
|
4396
4424
|
return /* @__PURE__ */ s.jsxs(
|
|
4397
|
-
|
|
4425
|
+
Ie,
|
|
4398
4426
|
{
|
|
4399
4427
|
ref: i,
|
|
4400
4428
|
style: l,
|
|
@@ -4413,31 +4441,31 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4413
4441
|
/* @__PURE__ */ s.jsxs(fe, { justify: "space-between", children: [
|
|
4414
4442
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4415
4443
|
/* @__PURE__ */ s.jsxs(
|
|
4416
|
-
|
|
4444
|
+
yc,
|
|
4417
4445
|
{
|
|
4418
4446
|
checked: e.visible,
|
|
4419
4447
|
size: "sm",
|
|
4420
4448
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4421
4449
|
children: [
|
|
4422
|
-
/* @__PURE__ */ s.jsx(
|
|
4423
|
-
/* @__PURE__ */ s.jsx(
|
|
4450
|
+
/* @__PURE__ */ s.jsx(wc, {}),
|
|
4451
|
+
/* @__PURE__ */ s.jsx(Sc, {})
|
|
4424
4452
|
]
|
|
4425
4453
|
}
|
|
4426
4454
|
)
|
|
4427
4455
|
] }),
|
|
4428
|
-
/* @__PURE__ */ s.jsxs(
|
|
4456
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "stretch", gap: 1, children: [
|
|
4429
4457
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4430
4458
|
/* @__PURE__ */ s.jsx(
|
|
4431
|
-
|
|
4459
|
+
Dc,
|
|
4432
4460
|
{
|
|
4433
4461
|
min: 1,
|
|
4434
4462
|
max: 5,
|
|
4435
4463
|
step: 0.5,
|
|
4436
4464
|
value: [e.size ?? 1],
|
|
4437
4465
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4438
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
4439
|
-
/* @__PURE__ */ s.jsx(
|
|
4440
|
-
/* @__PURE__ */ s.jsx(
|
|
4466
|
+
children: /* @__PURE__ */ s.jsxs(Ec, { children: [
|
|
4467
|
+
/* @__PURE__ */ s.jsx(Cc, { children: /* @__PURE__ */ s.jsx(jc, {}) }),
|
|
4468
|
+
/* @__PURE__ */ s.jsx(Rc, {})
|
|
4441
4469
|
] })
|
|
4442
4470
|
}
|
|
4443
4471
|
)
|
|
@@ -4445,7 +4473,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4445
4473
|
]
|
|
4446
4474
|
}
|
|
4447
4475
|
);
|
|
4448
|
-
},
|
|
4476
|
+
}, Tc = x(Me.Root), Oc = x(Me.Trigger), Mc = x(Me.Backdrop), $c = x(Me.Positioner), kc = x(Me.Content), Ic = x(Me.Header), Ac = x(Me.Title), Lc = x(Me.Body), Nc = x(Me.Footer), zc = x(Me.CloseTrigger), Pc = x(Bt.Root), Yc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), io = (e, t) => {
|
|
4449
4477
|
if (e.customComponent)
|
|
4450
4478
|
return e.customComponent;
|
|
4451
4479
|
switch (e.type) {
|
|
@@ -4464,7 +4492,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4464
4492
|
return /* @__PURE__ */ s.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4465
4493
|
case "checkbox":
|
|
4466
4494
|
return /* @__PURE__ */ s.jsx(
|
|
4467
|
-
|
|
4495
|
+
Va,
|
|
4468
4496
|
{
|
|
4469
4497
|
label: e.label,
|
|
4470
4498
|
value: e.value,
|
|
@@ -4473,7 +4501,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4473
4501
|
);
|
|
4474
4502
|
case "select":
|
|
4475
4503
|
return /* @__PURE__ */ s.jsx(
|
|
4476
|
-
|
|
4504
|
+
vc,
|
|
4477
4505
|
{
|
|
4478
4506
|
label: e.label,
|
|
4479
4507
|
value: e.value,
|
|
@@ -4484,7 +4512,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4484
4512
|
);
|
|
4485
4513
|
case "date":
|
|
4486
4514
|
return /* @__PURE__ */ s.jsx(
|
|
4487
|
-
|
|
4515
|
+
Ka,
|
|
4488
4516
|
{
|
|
4489
4517
|
value: e.value,
|
|
4490
4518
|
onChange: e.onChange
|
|
@@ -4493,7 +4521,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4493
4521
|
default:
|
|
4494
4522
|
return null;
|
|
4495
4523
|
}
|
|
4496
|
-
},
|
|
4524
|
+
}, Fc = ({
|
|
4497
4525
|
filterDrawerSize: e = "sm",
|
|
4498
4526
|
onVisibilityChange: t,
|
|
4499
4527
|
onSizeChange: n,
|
|
@@ -4504,44 +4532,44 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4504
4532
|
onLoadPreset: c,
|
|
4505
4533
|
activePresetName: l,
|
|
4506
4534
|
onReorder: u,
|
|
4507
|
-
open:
|
|
4508
|
-
onOpenChange:
|
|
4535
|
+
open: d,
|
|
4536
|
+
onOpenChange: f
|
|
4509
4537
|
}) => {
|
|
4510
4538
|
const p = bt(Ht)[i] ?? $n(i), v = () => {
|
|
4511
4539
|
const h = prompt("Preset name?");
|
|
4512
|
-
h &&
|
|
4540
|
+
h && xc(i, {
|
|
4513
4541
|
id: crypto.randomUUID(),
|
|
4514
4542
|
name: h,
|
|
4515
4543
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4516
4544
|
filters: a
|
|
4517
4545
|
});
|
|
4518
4546
|
};
|
|
4519
|
-
return /* @__PURE__ */ s.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(
|
|
4520
|
-
/* @__PURE__ */ s.jsx(
|
|
4521
|
-
/* @__PURE__ */ s.jsx(
|
|
4547
|
+
return /* @__PURE__ */ s.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(Tc, { size: e, open: d, onOpenChange: f, children: [
|
|
4548
|
+
/* @__PURE__ */ s.jsx(Oc, { asChild: !0, children: /* @__PURE__ */ s.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4549
|
+
/* @__PURE__ */ s.jsx(ea, { size: 16 }),
|
|
4522
4550
|
"Filters"
|
|
4523
4551
|
] }) }),
|
|
4524
4552
|
/* @__PURE__ */ s.jsxs(Qe, { children: [
|
|
4525
|
-
/* @__PURE__ */ s.jsx(
|
|
4526
|
-
/* @__PURE__ */ s.jsx(
|
|
4527
|
-
/* @__PURE__ */ s.jsx(
|
|
4528
|
-
/* @__PURE__ */ s.jsx(
|
|
4529
|
-
/* @__PURE__ */ s.jsxs(
|
|
4553
|
+
/* @__PURE__ */ s.jsx(Mc, {}),
|
|
4554
|
+
/* @__PURE__ */ s.jsx($c, { children: /* @__PURE__ */ s.jsxs(kc, { children: [
|
|
4555
|
+
/* @__PURE__ */ s.jsx(Ic, { children: /* @__PURE__ */ s.jsx(Ac, { children: "Filters" }) }),
|
|
4556
|
+
/* @__PURE__ */ s.jsx(Lc, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ s.jsxs(Pc, { defaultValue: "view", children: [
|
|
4557
|
+
/* @__PURE__ */ s.jsxs(Yc, { mb: 4, children: [
|
|
4530
4558
|
/* @__PURE__ */ s.jsxs(dn, { value: "view", children: [
|
|
4531
|
-
/* @__PURE__ */ s.jsx(
|
|
4559
|
+
/* @__PURE__ */ s.jsx(ra, { size: 16 }),
|
|
4532
4560
|
"Edit"
|
|
4533
4561
|
] }),
|
|
4534
4562
|
/* @__PURE__ */ s.jsxs(dn, { value: "settings", children: [
|
|
4535
|
-
/* @__PURE__ */ s.jsx(
|
|
4563
|
+
/* @__PURE__ */ s.jsx(aa, { size: 16 }),
|
|
4536
4564
|
"Settings"
|
|
4537
4565
|
] }),
|
|
4538
4566
|
/* @__PURE__ */ s.jsxs(dn, { value: "presets", children: [
|
|
4539
|
-
/* @__PURE__ */ s.jsx(
|
|
4567
|
+
/* @__PURE__ */ s.jsx(Fs, { size: 16 }),
|
|
4540
4568
|
"Presets"
|
|
4541
4569
|
] })
|
|
4542
4570
|
] }),
|
|
4543
4571
|
/* @__PURE__ */ s.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ s.jsx(
|
|
4544
|
-
|
|
4572
|
+
Ie,
|
|
4545
4573
|
{
|
|
4546
4574
|
align: "stretch",
|
|
4547
4575
|
border: "1px solid",
|
|
@@ -4551,27 +4579,27 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4551
4579
|
rounded: "md",
|
|
4552
4580
|
p: 3,
|
|
4553
4581
|
mb: 3,
|
|
4554
|
-
children: io(h,
|
|
4582
|
+
children: io(h, d)
|
|
4555
4583
|
},
|
|
4556
4584
|
h.id
|
|
4557
4585
|
)) }),
|
|
4558
4586
|
/* @__PURE__ */ s.jsx(fn, { value: "settings", children: /* @__PURE__ */ s.jsx(
|
|
4559
4587
|
Xr,
|
|
4560
4588
|
{
|
|
4561
|
-
sensors: oi(
|
|
4562
|
-
collisionDetection:
|
|
4563
|
-
onDragEnd: ({ active: h, over:
|
|
4564
|
-
if (!
|
|
4565
|
-
const w = o.findIndex((
|
|
4566
|
-
u?.(
|
|
4589
|
+
sensors: ii(oi(On)),
|
|
4590
|
+
collisionDetection: Ir,
|
|
4591
|
+
onDragEnd: ({ active: h, over: m }) => {
|
|
4592
|
+
if (!m || h.id === m.id) return;
|
|
4593
|
+
const w = o.findIndex((T) => T.id === h.id), _ = o.findIndex((T) => T.id === m.id), R = Kt(o, w, _);
|
|
4594
|
+
u?.(R);
|
|
4567
4595
|
},
|
|
4568
4596
|
children: /* @__PURE__ */ s.jsx(
|
|
4569
4597
|
Zr,
|
|
4570
4598
|
{
|
|
4571
4599
|
items: o.map((h) => h.id),
|
|
4572
|
-
strategy:
|
|
4600
|
+
strategy: ys,
|
|
4573
4601
|
children: o.map((h) => /* @__PURE__ */ s.jsx(
|
|
4574
|
-
|
|
4602
|
+
_c,
|
|
4575
4603
|
{
|
|
4576
4604
|
filter: h,
|
|
4577
4605
|
onVisibilityChange: t,
|
|
@@ -4583,7 +4611,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4583
4611
|
)
|
|
4584
4612
|
}
|
|
4585
4613
|
) }),
|
|
4586
|
-
/* @__PURE__ */ s.jsx(fn, { value: "presets", children: /* @__PURE__ */ s.jsxs(
|
|
4614
|
+
/* @__PURE__ */ s.jsx(fn, { value: "presets", children: /* @__PURE__ */ s.jsxs(Ie, { align: "stretch", mb: 3, children: [
|
|
4587
4615
|
/* @__PURE__ */ s.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4588
4616
|
p.length === 0 && /* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4589
4617
|
p.map((h) => /* @__PURE__ */ s.jsxs(
|
|
@@ -4595,7 +4623,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4595
4623
|
rounded: "md",
|
|
4596
4624
|
p: 2,
|
|
4597
4625
|
children: [
|
|
4598
|
-
/* @__PURE__ */ s.jsxs(
|
|
4626
|
+
/* @__PURE__ */ s.jsxs(Ie, { align: "start", gap: 0, children: [
|
|
4599
4627
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
|
|
4600
4628
|
/* @__PURE__ */ s.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
|
|
4601
4629
|
] }),
|
|
@@ -4615,8 +4643,8 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4615
4643
|
size: "xs",
|
|
4616
4644
|
"aria-label": "Delete preset",
|
|
4617
4645
|
variant: "ghost",
|
|
4618
|
-
onClick: () =>
|
|
4619
|
-
children: /* @__PURE__ */ s.jsx(
|
|
4646
|
+
onClick: () => bc(i, h.id),
|
|
4647
|
+
children: /* @__PURE__ */ s.jsx(Ks, { size: 14 })
|
|
4620
4648
|
}
|
|
4621
4649
|
)
|
|
4622
4650
|
] })
|
|
@@ -4626,7 +4654,7 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4626
4654
|
))
|
|
4627
4655
|
] }) })
|
|
4628
4656
|
] }) }),
|
|
4629
|
-
/* @__PURE__ */ s.jsxs(
|
|
4657
|
+
/* @__PURE__ */ s.jsxs(Nc, { justify: "space-between", children: [
|
|
4630
4658
|
/* @__PURE__ */ s.jsx(
|
|
4631
4659
|
Ke,
|
|
4632
4660
|
{
|
|
@@ -4637,12 +4665,12 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4637
4665
|
children: "Clear All"
|
|
4638
4666
|
}
|
|
4639
4667
|
),
|
|
4640
|
-
/* @__PURE__ */ s.jsx(
|
|
4668
|
+
/* @__PURE__ */ s.jsx(zc, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, {}) })
|
|
4641
4669
|
] })
|
|
4642
4670
|
] }) })
|
|
4643
4671
|
] })
|
|
4644
4672
|
] }) });
|
|
4645
|
-
},
|
|
4673
|
+
}, ml = ({
|
|
4646
4674
|
title: e,
|
|
4647
4675
|
filters: t,
|
|
4648
4676
|
onVisibilityChange: n,
|
|
@@ -4653,10 +4681,10 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4653
4681
|
pageKey: c,
|
|
4654
4682
|
currentFilters: l,
|
|
4655
4683
|
onLoadPreset: u,
|
|
4656
|
-
activePresetName:
|
|
4657
|
-
filterDrawerSize:
|
|
4684
|
+
activePresetName: d,
|
|
4685
|
+
filterDrawerSize: f = "sm"
|
|
4658
4686
|
}) => {
|
|
4659
|
-
const [
|
|
4687
|
+
const [b, p] = oe(!1);
|
|
4660
4688
|
return /* @__PURE__ */ s.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4661
4689
|
e,
|
|
4662
4690
|
/* @__PURE__ */ s.jsxs(fe, { gapX: 1, children: [
|
|
@@ -4671,9 +4699,9 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4671
4699
|
v.id
|
|
4672
4700
|
)),
|
|
4673
4701
|
/* @__PURE__ */ s.jsx(
|
|
4674
|
-
|
|
4702
|
+
Fc,
|
|
4675
4703
|
{
|
|
4676
|
-
filterDrawerSize:
|
|
4704
|
+
filterDrawerSize: f,
|
|
4677
4705
|
onVisibilityChange: n,
|
|
4678
4706
|
onReorder: r,
|
|
4679
4707
|
onSizeChange: o,
|
|
@@ -4683,8 +4711,8 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4683
4711
|
filters: t,
|
|
4684
4712
|
currentFilters: l,
|
|
4685
4713
|
onLoadPreset: u,
|
|
4686
|
-
activePresetName:
|
|
4687
|
-
open:
|
|
4714
|
+
activePresetName: d,
|
|
4715
|
+
open: b,
|
|
4688
4716
|
onOpenChange: (v) => {
|
|
4689
4717
|
p(v.open);
|
|
4690
4718
|
}
|
|
@@ -4692,15 +4720,15 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4692
4720
|
)
|
|
4693
4721
|
] })
|
|
4694
4722
|
] });
|
|
4695
|
-
},
|
|
4723
|
+
}, bl = (e, t) => {
|
|
4696
4724
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4697
|
-
},
|
|
4725
|
+
}, xl = (e) => {
|
|
4698
4726
|
try {
|
|
4699
4727
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4700
4728
|
} catch {
|
|
4701
4729
|
return [];
|
|
4702
4730
|
}
|
|
4703
|
-
},
|
|
4731
|
+
}, yl = ({
|
|
4704
4732
|
onClick: e,
|
|
4705
4733
|
size: t = "xs",
|
|
4706
4734
|
variant: n = "solid",
|
|
@@ -4711,8 +4739,8 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4711
4739
|
colorScheme: c,
|
|
4712
4740
|
loading: l,
|
|
4713
4741
|
loadingText: u,
|
|
4714
|
-
rounded:
|
|
4715
|
-
type:
|
|
4742
|
+
rounded: d,
|
|
4743
|
+
type: f = "button"
|
|
4716
4744
|
}) => /* @__PURE__ */ s.jsx(
|
|
4717
4745
|
Ke,
|
|
4718
4746
|
{
|
|
@@ -4723,16 +4751,16 @@ const Ht = new _r({}), $n = (e) => {
|
|
|
4723
4751
|
colorPalette: c,
|
|
4724
4752
|
loading: l,
|
|
4725
4753
|
loadingText: u,
|
|
4726
|
-
rounded:
|
|
4727
|
-
type:
|
|
4754
|
+
rounded: d,
|
|
4755
|
+
type: f,
|
|
4728
4756
|
children: /* @__PURE__ */ s.jsxs(fe, { gap: 1, children: [
|
|
4729
4757
|
o,
|
|
4730
4758
|
r,
|
|
4731
4759
|
i
|
|
4732
4760
|
] })
|
|
4733
4761
|
}
|
|
4734
|
-
),
|
|
4735
|
-
function
|
|
4762
|
+
), Vc = x(Ae.Root), Hc = x(Ae.Backdrop), Wc = x(Ae.Positioner), Bc = x(Ae.Content), Uc = x(Ae.Header), Gc = x(Ae.Body), Xc = x(Ae.Footer), qc = x(Ae.Title), Kc = x(Ae.CloseTrigger);
|
|
4763
|
+
function wl({
|
|
4736
4764
|
open: e,
|
|
4737
4765
|
onClose: t,
|
|
4738
4766
|
onConfirm: n,
|
|
@@ -4743,14 +4771,14 @@ function xl({
|
|
|
4743
4771
|
isLoading: c = !1
|
|
4744
4772
|
}) {
|
|
4745
4773
|
const [l, u] = oe("");
|
|
4746
|
-
return /* @__PURE__ */ s.jsx(
|
|
4747
|
-
/* @__PURE__ */ s.jsx(
|
|
4748
|
-
/* @__PURE__ */ s.jsx(
|
|
4749
|
-
/* @__PURE__ */ s.jsx(
|
|
4750
|
-
/* @__PURE__ */ s.jsx(
|
|
4751
|
-
/* @__PURE__ */ s.jsx(
|
|
4752
|
-
/* @__PURE__ */ s.jsx(
|
|
4753
|
-
/* @__PURE__ */ s.jsxs(
|
|
4774
|
+
return /* @__PURE__ */ s.jsx(Vc, { open: e, placement: "center", onOpenChange: (d) => !d.open && t(), children: /* @__PURE__ */ s.jsxs(Qe, { children: [
|
|
4775
|
+
/* @__PURE__ */ s.jsx(Hc, {}),
|
|
4776
|
+
/* @__PURE__ */ s.jsx(Wc, { children: /* @__PURE__ */ s.jsxs(Bc, { maxW: "520px", children: [
|
|
4777
|
+
/* @__PURE__ */ s.jsx(Uc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ s.jsx(qc, { color: "red.600", children: r }) }),
|
|
4778
|
+
/* @__PURE__ */ s.jsx(Gc, { children: /* @__PURE__ */ s.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
|
|
4779
|
+
/* @__PURE__ */ s.jsx(Ee, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ s.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4780
|
+
/* @__PURE__ */ s.jsx(Ee, { color: "red.600", mt: "2px", children: /* @__PURE__ */ s.jsx(la, { size: 20 }) }),
|
|
4781
|
+
/* @__PURE__ */ s.jsxs(Ee, { children: [
|
|
4754
4782
|
/* @__PURE__ */ s.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
4755
4783
|
/* @__PURE__ */ s.jsxs(q, { fontSize: "sm", color: "red.600", children: [
|
|
4756
4784
|
"All the data of ",
|
|
@@ -4760,7 +4788,7 @@ function xl({
|
|
|
4760
4788
|
] })
|
|
4761
4789
|
] }) }),
|
|
4762
4790
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
|
|
4763
|
-
/* @__PURE__ */ s.jsxs(
|
|
4791
|
+
/* @__PURE__ */ s.jsxs(Ee, { children: [
|
|
4764
4792
|
/* @__PURE__ */ s.jsxs(q, { fontSize: "sm", mb: 1, children: [
|
|
4765
4793
|
"Type ",
|
|
4766
4794
|
/* @__PURE__ */ s.jsx("b", { children: i }),
|
|
@@ -4771,14 +4799,14 @@ function xl({
|
|
|
4771
4799
|
{
|
|
4772
4800
|
placeholder: `Type ${i} here`,
|
|
4773
4801
|
value: l,
|
|
4774
|
-
onChange: (
|
|
4802
|
+
onChange: (d) => u(d.target.value),
|
|
4775
4803
|
size: "xs"
|
|
4776
4804
|
}
|
|
4777
4805
|
)
|
|
4778
4806
|
] })
|
|
4779
4807
|
] }) }),
|
|
4780
4808
|
/* @__PURE__ */ s.jsxs(
|
|
4781
|
-
|
|
4809
|
+
Xc,
|
|
4782
4810
|
{
|
|
4783
4811
|
justifyContent: "flex-end",
|
|
4784
4812
|
gap: 3,
|
|
@@ -4802,11 +4830,11 @@ function xl({
|
|
|
4802
4830
|
]
|
|
4803
4831
|
}
|
|
4804
4832
|
),
|
|
4805
|
-
/* @__PURE__ */ s.jsx(
|
|
4833
|
+
/* @__PURE__ */ s.jsx(Kc, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, { size: "sm" }) })
|
|
4806
4834
|
] }) })
|
|
4807
4835
|
] }) });
|
|
4808
4836
|
}
|
|
4809
|
-
function
|
|
4837
|
+
function Sl({
|
|
4810
4838
|
refetch: e,
|
|
4811
4839
|
isLoading: t = !1,
|
|
4812
4840
|
label: n = "Refresh"
|
|
@@ -4829,7 +4857,7 @@ function yl({
|
|
|
4829
4857
|
onClick: i,
|
|
4830
4858
|
ml: 2,
|
|
4831
4859
|
children: /* @__PURE__ */ s.jsx(
|
|
4832
|
-
|
|
4860
|
+
ia,
|
|
4833
4861
|
{
|
|
4834
4862
|
size: 14,
|
|
4835
4863
|
style: {
|
|
@@ -4840,72 +4868,72 @@ function yl({
|
|
|
4840
4868
|
}
|
|
4841
4869
|
);
|
|
4842
4870
|
}
|
|
4843
|
-
var
|
|
4844
|
-
function
|
|
4871
|
+
var kt = { exports: {} }, Jc = kt.exports, br;
|
|
4872
|
+
function Zc() {
|
|
4845
4873
|
return br || (br = 1, (function(e, t) {
|
|
4846
4874
|
(function(n, r) {
|
|
4847
4875
|
e.exports = r();
|
|
4848
|
-
})(
|
|
4849
|
-
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", c = "minute", l = "hour", u = "day",
|
|
4850
|
-
var D = ["th", "st", "nd", "rd"], y =
|
|
4851
|
-
return "[" +
|
|
4852
|
-
} },
|
|
4853
|
-
var
|
|
4854
|
-
return !
|
|
4855
|
-
},
|
|
4856
|
-
var D =
|
|
4857
|
-
return (D <= 0 ? "+" : "-") + E
|
|
4858
|
-
}, m: function
|
|
4859
|
-
if (D.date() < y.date()) return
|
|
4860
|
-
var
|
|
4861
|
-
return +(-(
|
|
4862
|
-
}, a: function(
|
|
4863
|
-
return
|
|
4864
|
-
}, p: function(
|
|
4865
|
-
return { M:
|
|
4866
|
-
}, u: function(
|
|
4867
|
-
return
|
|
4868
|
-
} }, O = "en",
|
|
4869
|
-
|
|
4870
|
-
var
|
|
4871
|
-
return
|
|
4872
|
-
}, W = function
|
|
4876
|
+
})(Jc, (function() {
|
|
4877
|
+
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", c = "minute", l = "hour", u = "day", d = "week", f = "month", b = "quarter", p = "year", v = "date", h = "Invalid Date", m = /^(\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, _ = { 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($) {
|
|
4878
|
+
var D = ["th", "st", "nd", "rd"], y = $ % 100;
|
|
4879
|
+
return "[" + $ + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
|
|
4880
|
+
} }, R = function($, D, y) {
|
|
4881
|
+
var E = String($);
|
|
4882
|
+
return !E || E.length >= D ? $ : "" + Array(D + 1 - E.length).join(y) + $;
|
|
4883
|
+
}, T = { s: R, z: function($) {
|
|
4884
|
+
var D = -$.utcOffset(), y = Math.abs(D), E = Math.floor(y / 60), C = y % 60;
|
|
4885
|
+
return (D <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(C, 2, "0");
|
|
4886
|
+
}, m: function $(D, y) {
|
|
4887
|
+
if (D.date() < y.date()) return -$(y, D);
|
|
4888
|
+
var E = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(E, f), I = y - C < 0, L = D.clone().add(E + (I ? -1 : 1), f);
|
|
4889
|
+
return +(-(E + (y - C) / (I ? C - L : L - C)) || 0);
|
|
4890
|
+
}, a: function($) {
|
|
4891
|
+
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
4892
|
+
}, p: function($) {
|
|
4893
|
+
return { M: f, y: p, w: d, d: u, D: v, h: l, m: c, s: a, ms: i, Q: b }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
4894
|
+
}, u: function($) {
|
|
4895
|
+
return $ === void 0;
|
|
4896
|
+
} }, O = "en", j = {};
|
|
4897
|
+
j[O] = _;
|
|
4898
|
+
var M = "$isDayjsObject", N = function($) {
|
|
4899
|
+
return $ instanceof Q || !(!$ || !$[M]);
|
|
4900
|
+
}, W = function $(D, y, E) {
|
|
4873
4901
|
var C;
|
|
4874
4902
|
if (!D) return O;
|
|
4875
4903
|
if (typeof D == "string") {
|
|
4876
|
-
var
|
|
4877
|
-
|
|
4904
|
+
var I = D.toLowerCase();
|
|
4905
|
+
j[I] && (C = I), y && (j[I] = y, C = I);
|
|
4878
4906
|
var L = D.split("-");
|
|
4879
|
-
if (!C && L.length > 1) return
|
|
4907
|
+
if (!C && L.length > 1) return $(L[0]);
|
|
4880
4908
|
} else {
|
|
4881
4909
|
var g = D.name;
|
|
4882
|
-
|
|
4910
|
+
j[g] = D, C = g;
|
|
4883
4911
|
}
|
|
4884
|
-
return !
|
|
4885
|
-
}, Y = function(
|
|
4886
|
-
if (N(
|
|
4912
|
+
return !E && C && (O = C), C || !E && O;
|
|
4913
|
+
}, Y = function($, D) {
|
|
4914
|
+
if (N($)) return $.clone();
|
|
4887
4915
|
var y = typeof D == "object" ? D : {};
|
|
4888
|
-
return y.date =
|
|
4889
|
-
},
|
|
4890
|
-
|
|
4891
|
-
return Y(
|
|
4916
|
+
return y.date = $, y.args = arguments, new Q(y);
|
|
4917
|
+
}, k = T;
|
|
4918
|
+
k.l = W, k.i = N, k.w = function($, D) {
|
|
4919
|
+
return Y($, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
4892
4920
|
};
|
|
4893
4921
|
var Q = (function() {
|
|
4894
|
-
function
|
|
4895
|
-
this.$L = W(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[
|
|
4922
|
+
function $(y) {
|
|
4923
|
+
this.$L = W(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[M] = !0;
|
|
4896
4924
|
}
|
|
4897
|
-
var D =
|
|
4925
|
+
var D = $.prototype;
|
|
4898
4926
|
return D.parse = function(y) {
|
|
4899
|
-
this.$d = (function(
|
|
4900
|
-
var C =
|
|
4927
|
+
this.$d = (function(E) {
|
|
4928
|
+
var C = E.date, I = E.utc;
|
|
4901
4929
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
4902
|
-
if (
|
|
4930
|
+
if (k.u(C)) return /* @__PURE__ */ new Date();
|
|
4903
4931
|
if (C instanceof Date) return new Date(C);
|
|
4904
4932
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
4905
|
-
var L = C.match(
|
|
4933
|
+
var L = C.match(m);
|
|
4906
4934
|
if (L) {
|
|
4907
4935
|
var g = L[2] - 1 || 0, S = (L[7] || "0").substring(0, 3);
|
|
4908
|
-
return
|
|
4936
|
+
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);
|
|
4909
4937
|
}
|
|
4910
4938
|
}
|
|
4911
4939
|
return new Date(C);
|
|
@@ -4914,37 +4942,37 @@ function Kc() {
|
|
|
4914
4942
|
var y = this.$d;
|
|
4915
4943
|
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();
|
|
4916
4944
|
}, D.$utils = function() {
|
|
4917
|
-
return
|
|
4945
|
+
return k;
|
|
4918
4946
|
}, D.isValid = function() {
|
|
4919
4947
|
return this.$d.toString() !== h;
|
|
4920
|
-
}, D.isSame = function(y,
|
|
4948
|
+
}, D.isSame = function(y, E) {
|
|
4921
4949
|
var C = Y(y);
|
|
4922
|
-
return this.startOf(
|
|
4923
|
-
}, D.isAfter = function(y,
|
|
4924
|
-
return Y(y) < this.startOf(
|
|
4925
|
-
}, D.isBefore = function(y,
|
|
4926
|
-
return this.endOf(
|
|
4927
|
-
}, D.$g = function(y,
|
|
4928
|
-
return
|
|
4950
|
+
return this.startOf(E) <= C && C <= this.endOf(E);
|
|
4951
|
+
}, D.isAfter = function(y, E) {
|
|
4952
|
+
return Y(y) < this.startOf(E);
|
|
4953
|
+
}, D.isBefore = function(y, E) {
|
|
4954
|
+
return this.endOf(E) < Y(y);
|
|
4955
|
+
}, D.$g = function(y, E, C) {
|
|
4956
|
+
return k.u(y) ? this[E] : this.set(C, y);
|
|
4929
4957
|
}, D.unix = function() {
|
|
4930
4958
|
return Math.floor(this.valueOf() / 1e3);
|
|
4931
4959
|
}, D.valueOf = function() {
|
|
4932
4960
|
return this.$d.getTime();
|
|
4933
|
-
}, D.startOf = function(y,
|
|
4934
|
-
var C = this,
|
|
4935
|
-
var de =
|
|
4936
|
-
return
|
|
4961
|
+
}, D.startOf = function(y, E) {
|
|
4962
|
+
var C = this, I = !!k.u(E) || E, L = k.p(y), g = function(Z, z) {
|
|
4963
|
+
var de = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
|
|
4964
|
+
return I ? de : de.endOf(u);
|
|
4937
4965
|
}, S = function(Z, z) {
|
|
4938
|
-
return
|
|
4966
|
+
return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
|
|
4939
4967
|
}, A = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
4940
4968
|
switch (L) {
|
|
4941
4969
|
case p:
|
|
4942
|
-
return
|
|
4943
|
-
case d:
|
|
4944
|
-
return k ? g(1, P) : g(0, P + 1);
|
|
4970
|
+
return I ? g(1, 0) : g(31, 11);
|
|
4945
4971
|
case f:
|
|
4972
|
+
return I ? g(1, P) : g(0, P + 1);
|
|
4973
|
+
case d:
|
|
4946
4974
|
var F = this.$locale().weekStart || 0, J = (A < F ? A + 7 : A) - F;
|
|
4947
|
-
return g(
|
|
4975
|
+
return g(I ? G - J : G + (6 - J), P);
|
|
4948
4976
|
case u:
|
|
4949
4977
|
case v:
|
|
4950
4978
|
return S(X + "Hours", 0);
|
|
@@ -4959,74 +4987,74 @@ function Kc() {
|
|
|
4959
4987
|
}
|
|
4960
4988
|
}, D.endOf = function(y) {
|
|
4961
4989
|
return this.startOf(y, !1);
|
|
4962
|
-
}, D.$set = function(y,
|
|
4963
|
-
var C,
|
|
4964
|
-
if (
|
|
4990
|
+
}, D.$set = function(y, E) {
|
|
4991
|
+
var C, I = k.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[f] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[i] = L + "Milliseconds", C)[I], S = I === u ? this.$D + (E - this.$W) : E;
|
|
4992
|
+
if (I === f || I === p) {
|
|
4965
4993
|
var A = this.clone().set(v, 1);
|
|
4966
4994
|
A.$d[g](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
|
|
4967
4995
|
} else g && this.$d[g](S);
|
|
4968
4996
|
return this.init(), this;
|
|
4969
|
-
}, D.set = function(y,
|
|
4970
|
-
return this.clone().$set(y,
|
|
4997
|
+
}, D.set = function(y, E) {
|
|
4998
|
+
return this.clone().$set(y, E);
|
|
4971
4999
|
}, D.get = function(y) {
|
|
4972
|
-
return this[
|
|
4973
|
-
}, D.add = function(y,
|
|
4974
|
-
var C,
|
|
5000
|
+
return this[k.p(y)]();
|
|
5001
|
+
}, D.add = function(y, E) {
|
|
5002
|
+
var C, I = this;
|
|
4975
5003
|
y = Number(y);
|
|
4976
|
-
var L =
|
|
4977
|
-
var G = Y(
|
|
4978
|
-
return
|
|
5004
|
+
var L = k.p(E), g = function(P) {
|
|
5005
|
+
var G = Y(I);
|
|
5006
|
+
return k.w(G.date(G.date() + Math.round(P * y)), I);
|
|
4979
5007
|
};
|
|
4980
|
-
if (L ===
|
|
5008
|
+
if (L === f) return this.set(f, this.$M + y);
|
|
4981
5009
|
if (L === p) return this.set(p, this.$y + y);
|
|
4982
5010
|
if (L === u) return g(1);
|
|
4983
|
-
if (L ===
|
|
5011
|
+
if (L === d) return g(7);
|
|
4984
5012
|
var S = (C = {}, C[c] = r, C[l] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + y * S;
|
|
4985
|
-
return
|
|
4986
|
-
}, D.subtract = function(y,
|
|
4987
|
-
return this.add(-1 * y,
|
|
5013
|
+
return k.w(A, this);
|
|
5014
|
+
}, D.subtract = function(y, E) {
|
|
5015
|
+
return this.add(-1 * y, E);
|
|
4988
5016
|
}, D.format = function(y) {
|
|
4989
|
-
var
|
|
5017
|
+
var E = this, C = this.$locale();
|
|
4990
5018
|
if (!this.isValid()) return C.invalidDate || h;
|
|
4991
|
-
var
|
|
4992
|
-
return z && (z[de] || z(
|
|
5019
|
+
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, we) {
|
|
5020
|
+
return z && (z[de] || z(E, I)) || ae[de].slice(0, we);
|
|
4993
5021
|
}, J = function(z) {
|
|
4994
|
-
return
|
|
5022
|
+
return k.s(g % 12 || 12, z, "0");
|
|
4995
5023
|
}, Z = X || function(z, de, ae) {
|
|
4996
|
-
var
|
|
4997
|
-
return ae ?
|
|
5024
|
+
var we = z < 12 ? "AM" : "PM";
|
|
5025
|
+
return ae ? we.toLowerCase() : we;
|
|
4998
5026
|
};
|
|
4999
|
-
return
|
|
5027
|
+
return I.replace(w, (function(z, de) {
|
|
5000
5028
|
return de || (function(ae) {
|
|
5001
5029
|
switch (ae) {
|
|
5002
5030
|
case "YY":
|
|
5003
|
-
return String(
|
|
5031
|
+
return String(E.$y).slice(-2);
|
|
5004
5032
|
case "YYYY":
|
|
5005
|
-
return
|
|
5033
|
+
return k.s(E.$y, 4, "0");
|
|
5006
5034
|
case "M":
|
|
5007
5035
|
return A + 1;
|
|
5008
5036
|
case "MM":
|
|
5009
|
-
return
|
|
5037
|
+
return k.s(A + 1, 2, "0");
|
|
5010
5038
|
case "MMM":
|
|
5011
5039
|
return F(C.monthsShort, A, G, 3);
|
|
5012
5040
|
case "MMMM":
|
|
5013
5041
|
return F(G, A);
|
|
5014
5042
|
case "D":
|
|
5015
|
-
return
|
|
5043
|
+
return E.$D;
|
|
5016
5044
|
case "DD":
|
|
5017
|
-
return
|
|
5045
|
+
return k.s(E.$D, 2, "0");
|
|
5018
5046
|
case "d":
|
|
5019
|
-
return String(
|
|
5047
|
+
return String(E.$W);
|
|
5020
5048
|
case "dd":
|
|
5021
|
-
return F(C.weekdaysMin,
|
|
5049
|
+
return F(C.weekdaysMin, E.$W, P, 2);
|
|
5022
5050
|
case "ddd":
|
|
5023
|
-
return F(C.weekdaysShort,
|
|
5051
|
+
return F(C.weekdaysShort, E.$W, P, 3);
|
|
5024
5052
|
case "dddd":
|
|
5025
|
-
return P[
|
|
5053
|
+
return P[E.$W];
|
|
5026
5054
|
case "H":
|
|
5027
5055
|
return String(g);
|
|
5028
5056
|
case "HH":
|
|
5029
|
-
return
|
|
5057
|
+
return k.s(g, 2, "0");
|
|
5030
5058
|
case "h":
|
|
5031
5059
|
return J(1);
|
|
5032
5060
|
case "hh":
|
|
@@ -5038,13 +5066,13 @@ function Kc() {
|
|
|
5038
5066
|
case "m":
|
|
5039
5067
|
return String(S);
|
|
5040
5068
|
case "mm":
|
|
5041
|
-
return
|
|
5069
|
+
return k.s(S, 2, "0");
|
|
5042
5070
|
case "s":
|
|
5043
|
-
return String(
|
|
5071
|
+
return String(E.$s);
|
|
5044
5072
|
case "ss":
|
|
5045
|
-
return
|
|
5073
|
+
return k.s(E.$s, 2, "0");
|
|
5046
5074
|
case "SSS":
|
|
5047
|
-
return
|
|
5075
|
+
return k.s(E.$ms, 3, "0");
|
|
5048
5076
|
case "Z":
|
|
5049
5077
|
return L;
|
|
5050
5078
|
}
|
|
@@ -5053,49 +5081,49 @@ function Kc() {
|
|
|
5053
5081
|
}));
|
|
5054
5082
|
}, D.utcOffset = function() {
|
|
5055
5083
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5056
|
-
}, D.diff = function(y,
|
|
5057
|
-
var
|
|
5058
|
-
return
|
|
5084
|
+
}, D.diff = function(y, E, C) {
|
|
5085
|
+
var I, L = this, g = k.p(E), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
|
|
5086
|
+
return k.m(L, S);
|
|
5059
5087
|
};
|
|
5060
5088
|
switch (g) {
|
|
5061
5089
|
case p:
|
|
5062
|
-
|
|
5090
|
+
I = G() / 12;
|
|
5063
5091
|
break;
|
|
5064
|
-
case
|
|
5065
|
-
|
|
5092
|
+
case f:
|
|
5093
|
+
I = G();
|
|
5066
5094
|
break;
|
|
5067
|
-
case
|
|
5068
|
-
|
|
5095
|
+
case b:
|
|
5096
|
+
I = G() / 3;
|
|
5069
5097
|
break;
|
|
5070
|
-
case
|
|
5071
|
-
|
|
5098
|
+
case d:
|
|
5099
|
+
I = (P - A) / 6048e5;
|
|
5072
5100
|
break;
|
|
5073
5101
|
case u:
|
|
5074
|
-
|
|
5102
|
+
I = (P - A) / 864e5;
|
|
5075
5103
|
break;
|
|
5076
5104
|
case l:
|
|
5077
|
-
|
|
5105
|
+
I = P / o;
|
|
5078
5106
|
break;
|
|
5079
5107
|
case c:
|
|
5080
|
-
|
|
5108
|
+
I = P / r;
|
|
5081
5109
|
break;
|
|
5082
5110
|
case a:
|
|
5083
|
-
|
|
5111
|
+
I = P / n;
|
|
5084
5112
|
break;
|
|
5085
5113
|
default:
|
|
5086
|
-
|
|
5114
|
+
I = P;
|
|
5087
5115
|
}
|
|
5088
|
-
return C ?
|
|
5116
|
+
return C ? I : k.a(I);
|
|
5089
5117
|
}, D.daysInMonth = function() {
|
|
5090
|
-
return this.endOf(
|
|
5118
|
+
return this.endOf(f).$D;
|
|
5091
5119
|
}, D.$locale = function() {
|
|
5092
|
-
return
|
|
5093
|
-
}, D.locale = function(y,
|
|
5120
|
+
return j[this.$L];
|
|
5121
|
+
}, D.locale = function(y, E) {
|
|
5094
5122
|
if (!y) return this.$L;
|
|
5095
|
-
var C = this.clone(),
|
|
5096
|
-
return
|
|
5123
|
+
var C = this.clone(), I = W(y, E, !0);
|
|
5124
|
+
return I && (C.$L = I), C;
|
|
5097
5125
|
}, D.clone = function() {
|
|
5098
|
-
return
|
|
5126
|
+
return k.w(this.$d, this);
|
|
5099
5127
|
}, D.toDate = function() {
|
|
5100
5128
|
return new Date(this.valueOf());
|
|
5101
5129
|
}, D.toJSON = function() {
|
|
@@ -5104,53 +5132,53 @@ function Kc() {
|
|
|
5104
5132
|
return this.$d.toISOString();
|
|
5105
5133
|
}, D.toString = function() {
|
|
5106
5134
|
return this.$d.toUTCString();
|
|
5107
|
-
},
|
|
5135
|
+
}, $;
|
|
5108
5136
|
})(), ie = Q.prototype;
|
|
5109
|
-
return Y.prototype = ie, [["$ms", i], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M",
|
|
5110
|
-
ie[
|
|
5111
|
-
return this.$g(D,
|
|
5137
|
+
return Y.prototype = ie, [["$ms", i], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", f], ["$y", p], ["$D", v]].forEach((function($) {
|
|
5138
|
+
ie[$[1]] = function(D) {
|
|
5139
|
+
return this.$g(D, $[0], $[1]);
|
|
5112
5140
|
};
|
|
5113
|
-
})), Y.extend = function(
|
|
5114
|
-
return
|
|
5115
|
-
}, Y.locale = W, Y.isDayjs = N, Y.unix = function(
|
|
5116
|
-
return Y(1e3 *
|
|
5117
|
-
}, Y.en =
|
|
5141
|
+
})), Y.extend = function($, D) {
|
|
5142
|
+
return $.$i || ($(D, Q, Y), $.$i = !0), Y;
|
|
5143
|
+
}, Y.locale = W, Y.isDayjs = N, Y.unix = function($) {
|
|
5144
|
+
return Y(1e3 * $);
|
|
5145
|
+
}, Y.en = j[O], Y.Ls = j, Y.p = {}, Y;
|
|
5118
5146
|
}));
|
|
5119
|
-
})(
|
|
5147
|
+
})(kt)), kt.exports;
|
|
5120
5148
|
}
|
|
5121
|
-
var
|
|
5122
|
-
const Jt = /* @__PURE__ */ Ut(
|
|
5123
|
-
var
|
|
5124
|
-
function
|
|
5149
|
+
var Qc = Zc();
|
|
5150
|
+
const Jt = /* @__PURE__ */ Ut(Qc);
|
|
5151
|
+
var It = { exports: {} }, el = It.exports, xr;
|
|
5152
|
+
function tl() {
|
|
5125
5153
|
return xr || (xr = 1, (function(e, t) {
|
|
5126
5154
|
(function(n, r) {
|
|
5127
5155
|
e.exports = r();
|
|
5128
|
-
})(
|
|
5156
|
+
})(el, (function() {
|
|
5129
5157
|
return function(n, r, o) {
|
|
5130
5158
|
n = n || {};
|
|
5131
5159
|
var i = 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" };
|
|
5132
|
-
function c(u,
|
|
5133
|
-
return i.fromToBase(u,
|
|
5160
|
+
function c(u, d, f, b) {
|
|
5161
|
+
return i.fromToBase(u, d, f, b);
|
|
5134
5162
|
}
|
|
5135
|
-
o.en.relativeTime = a, i.fromToBase = function(u,
|
|
5136
|
-
for (var v, h,
|
|
5137
|
-
var O =
|
|
5138
|
-
O.d && (v =
|
|
5139
|
-
var
|
|
5140
|
-
if (
|
|
5141
|
-
|
|
5142
|
-
var
|
|
5143
|
-
p && (
|
|
5163
|
+
o.en.relativeTime = a, i.fromToBase = function(u, d, f, b, p) {
|
|
5164
|
+
for (var v, h, m, w = f.$locale().relativeTime || a, _ = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = _.length, T = 0; T < R; T += 1) {
|
|
5165
|
+
var O = _[T];
|
|
5166
|
+
O.d && (v = b ? o(u).diff(f, O.d, !0) : f.diff(u, O.d, !0));
|
|
5167
|
+
var j = (n.rounding || Math.round)(Math.abs(v));
|
|
5168
|
+
if (m = v > 0, j <= O.r || !O.r) {
|
|
5169
|
+
j <= 1 && T > 0 && (O = _[T - 1]);
|
|
5170
|
+
var M = w[O.l];
|
|
5171
|
+
p && (j = p("" + j)), h = typeof M == "string" ? M.replace("%d", j) : M(j, d, O.l, m);
|
|
5144
5172
|
break;
|
|
5145
5173
|
}
|
|
5146
5174
|
}
|
|
5147
|
-
if (
|
|
5148
|
-
var N =
|
|
5175
|
+
if (d) return h;
|
|
5176
|
+
var N = m ? w.future : w.past;
|
|
5149
5177
|
return typeof N == "function" ? N(h) : N.replace("%s", h);
|
|
5150
|
-
}, i.to = function(u,
|
|
5151
|
-
return c(u,
|
|
5152
|
-
}, i.from = function(u,
|
|
5153
|
-
return c(u,
|
|
5178
|
+
}, i.to = function(u, d) {
|
|
5179
|
+
return c(u, d, this, !0);
|
|
5180
|
+
}, i.from = function(u, d) {
|
|
5181
|
+
return c(u, d, this);
|
|
5154
5182
|
};
|
|
5155
5183
|
var l = function(u) {
|
|
5156
5184
|
return u.$u ? o.utc() : o();
|
|
@@ -5162,50 +5190,50 @@ function Qc() {
|
|
|
5162
5190
|
};
|
|
5163
5191
|
};
|
|
5164
5192
|
}));
|
|
5165
|
-
})(
|
|
5193
|
+
})(It)), It.exports;
|
|
5166
5194
|
}
|
|
5167
|
-
var
|
|
5168
|
-
const
|
|
5169
|
-
var At = { exports: {} },
|
|
5170
|
-
function
|
|
5195
|
+
var nl = tl();
|
|
5196
|
+
const rl = /* @__PURE__ */ Ut(nl);
|
|
5197
|
+
var At = { exports: {} }, ol = At.exports, yr;
|
|
5198
|
+
function il() {
|
|
5171
5199
|
return yr || (yr = 1, (function(e, t) {
|
|
5172
5200
|
(function(n, r) {
|
|
5173
5201
|
e.exports = r();
|
|
5174
|
-
})(
|
|
5202
|
+
})(ol, (function() {
|
|
5175
5203
|
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" };
|
|
5176
5204
|
return function(r, o, i) {
|
|
5177
5205
|
var a = o.prototype, c = a.format;
|
|
5178
5206
|
i.en.formats = n, a.format = function(l) {
|
|
5179
5207
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5180
|
-
var u = this.$locale().formats,
|
|
5181
|
-
return
|
|
5182
|
-
var
|
|
5183
|
-
return v ||
|
|
5184
|
-
return
|
|
5208
|
+
var u = this.$locale().formats, d = (function(f, b) {
|
|
5209
|
+
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
|
|
5210
|
+
var m = h && h.toUpperCase();
|
|
5211
|
+
return v || b[h] || n[h] || b[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, _, R) {
|
|
5212
|
+
return _ || R.slice(1);
|
|
5185
5213
|
}));
|
|
5186
5214
|
}));
|
|
5187
5215
|
})(l, u === void 0 ? {} : u);
|
|
5188
|
-
return c.call(this,
|
|
5216
|
+
return c.call(this, d);
|
|
5189
5217
|
};
|
|
5190
5218
|
};
|
|
5191
5219
|
}));
|
|
5192
5220
|
})(At)), At.exports;
|
|
5193
5221
|
}
|
|
5194
|
-
var
|
|
5195
|
-
const
|
|
5196
|
-
var Lt = { exports: {} },
|
|
5197
|
-
function
|
|
5222
|
+
var sl = il();
|
|
5223
|
+
const al = /* @__PURE__ */ Ut(sl);
|
|
5224
|
+
var Lt = { exports: {} }, cl = Lt.exports, wr;
|
|
5225
|
+
function ll() {
|
|
5198
5226
|
return wr || (wr = 1, (function(e, t) {
|
|
5199
5227
|
(function(n, r) {
|
|
5200
5228
|
e.exports = r();
|
|
5201
|
-
})(
|
|
5229
|
+
})(cl, (function() {
|
|
5202
5230
|
return function(n, r) {
|
|
5203
5231
|
var o = r.prototype, i = o.format;
|
|
5204
5232
|
o.format = function(a) {
|
|
5205
5233
|
var c = this, l = this.$locale();
|
|
5206
5234
|
if (!this.isValid()) return i.bind(this)(a);
|
|
5207
|
-
var u = this.$utils(),
|
|
5208
|
-
switch (
|
|
5235
|
+
var u = this.$utils(), d = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(f) {
|
|
5236
|
+
switch (f) {
|
|
5209
5237
|
case "Q":
|
|
5210
5238
|
return Math.ceil((c.$M + 1) / 3);
|
|
5211
5239
|
case "Do":
|
|
@@ -5218,13 +5246,13 @@ function al() {
|
|
|
5218
5246
|
return l.ordinal(c.week(), "W");
|
|
5219
5247
|
case "w":
|
|
5220
5248
|
case "ww":
|
|
5221
|
-
return u.s(c.week(),
|
|
5249
|
+
return u.s(c.week(), f === "w" ? 1 : 2, "0");
|
|
5222
5250
|
case "W":
|
|
5223
5251
|
case "WW":
|
|
5224
|
-
return u.s(c.isoWeek(),
|
|
5252
|
+
return u.s(c.isoWeek(), f === "W" ? 1 : 2, "0");
|
|
5225
5253
|
case "k":
|
|
5226
5254
|
case "kk":
|
|
5227
|
-
return u.s(String(c.$H === 0 ? 24 : c.$H),
|
|
5255
|
+
return u.s(String(c.$H === 0 ? 24 : c.$H), f === "k" ? 1 : 2, "0");
|
|
5228
5256
|
case "X":
|
|
5229
5257
|
return Math.floor(c.$d.getTime() / 1e3);
|
|
5230
5258
|
case "x":
|
|
@@ -5234,21 +5262,21 @@ function al() {
|
|
|
5234
5262
|
case "zzz":
|
|
5235
5263
|
return "[" + c.offsetName("long") + "]";
|
|
5236
5264
|
default:
|
|
5237
|
-
return
|
|
5265
|
+
return f;
|
|
5238
5266
|
}
|
|
5239
5267
|
}));
|
|
5240
|
-
return i.bind(this)(
|
|
5268
|
+
return i.bind(this)(d);
|
|
5241
5269
|
};
|
|
5242
5270
|
};
|
|
5243
5271
|
}));
|
|
5244
5272
|
})(Lt)), Lt.exports;
|
|
5245
5273
|
}
|
|
5246
|
-
var
|
|
5247
|
-
const
|
|
5248
|
-
Jt.extend(
|
|
5249
|
-
Jt.extend(
|
|
5250
|
-
Jt.extend(
|
|
5251
|
-
const
|
|
5274
|
+
var ul = ll();
|
|
5275
|
+
const dl = /* @__PURE__ */ Ut(ul);
|
|
5276
|
+
Jt.extend(rl);
|
|
5277
|
+
Jt.extend(al);
|
|
5278
|
+
Jt.extend(dl);
|
|
5279
|
+
const fl = {
|
|
5252
5280
|
date: "DD MMM YYYY",
|
|
5253
5281
|
time: "hh:mm A",
|
|
5254
5282
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5264,9 +5292,9 @@ function Sr({
|
|
|
5264
5292
|
}) {
|
|
5265
5293
|
if (!e) return r;
|
|
5266
5294
|
const o = Jt(e);
|
|
5267
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5295
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? fl[t]) : r;
|
|
5268
5296
|
}
|
|
5269
|
-
function
|
|
5297
|
+
function Dl({
|
|
5270
5298
|
value: e,
|
|
5271
5299
|
dateVariant: t = "date",
|
|
5272
5300
|
timeVariant: n = "time",
|
|
@@ -5288,27 +5316,27 @@ function wl({
|
|
|
5288
5316
|
] });
|
|
5289
5317
|
}
|
|
5290
5318
|
export {
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5319
|
+
vl as DataTable,
|
|
5320
|
+
ml as Filters,
|
|
5321
|
+
yl as MDSButton,
|
|
5322
|
+
Va as MDSCheckbox,
|
|
5323
|
+
wl as MDSConfirmDeleteDialog,
|
|
5296
5324
|
mr as MDSInput,
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5325
|
+
Sl as MDSRefreshButton,
|
|
5326
|
+
vc as MDSSelectBox,
|
|
5327
|
+
Sl as RefreshButton,
|
|
5328
|
+
Dl as StackedDateTime,
|
|
5329
|
+
xc as addPreset,
|
|
5330
|
+
bc as deletePreset,
|
|
5303
5331
|
Sr as formatDateTime,
|
|
5304
5332
|
$n as getPresets,
|
|
5305
|
-
|
|
5333
|
+
xl as loadOrder,
|
|
5306
5334
|
Ht as presetStore,
|
|
5307
|
-
|
|
5335
|
+
bl as saveOrder,
|
|
5308
5336
|
oo as savePresets,
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5337
|
+
Po as setActionsConfig,
|
|
5338
|
+
No as setData,
|
|
5339
|
+
zo as setTableId,
|
|
5312
5340
|
he as tableStore,
|
|
5313
5341
|
x as withChildren
|
|
5314
5342
|
};
|