@mdspl/mds-shared-ui 0.5.9 → 0.6.1
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 +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +414 -403
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import re, { useLayoutEffect as
|
|
2
|
-
import { Menu as Me, Checkbox as je, IconButton as Te, Portal as Qe, Table as ee, HStack as fe, Select as J, Pagination as zt, createListCollection as jr, Box as _e, Text as q, ButtonGroup as
|
|
1
|
+
import re, { useLayoutEffect as mo, useEffect as H, useRef as G, useMemo as B, useCallback as ue, useState as oe, createContext as mt, memo as bo, useReducer as xo, useContext as We, forwardRef as Dn, createElement as gn } from "react";
|
|
2
|
+
import { Menu as Me, Checkbox as je, IconButton as Te, Portal as Qe, Table as ee, HStack as fe, Select as J, Pagination as zt, createListCollection as jr, Box as _e, Text as q, ButtonGroup as yo, Skeleton as wo, Spinner as Rr, Popover as Bt, InputGroup as Er, InputElement as Hn, PopoverArrow as So, VStack as Ae, Kbd as Wn, Input as Cn, Field as Be, Slider as bt, Drawer as $e, Tabs as Gt, Button as pt, CloseButton as _r, Combobox as De, useListCollection as Do, Span as Bn, Dialog as Le, Stack as vn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as jt, createPortal as Co } from "react-dom";
|
|
4
4
|
function Ut(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -31,12 +31,12 @@ var ct = {};
|
|
|
31
31
|
var Un;
|
|
32
32
|
function Ro() {
|
|
33
33
|
return Un || (Un = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
34
|
-
function e(
|
|
35
|
-
if (
|
|
36
|
-
if (typeof
|
|
37
|
-
return
|
|
38
|
-
if (typeof
|
|
39
|
-
switch (
|
|
34
|
+
function e(g) {
|
|
35
|
+
if (g == null) return null;
|
|
36
|
+
if (typeof g == "function")
|
|
37
|
+
return g.$$typeof === k ? null : g.displayName || g.name || null;
|
|
38
|
+
if (typeof g == "string") return g;
|
|
39
|
+
switch (g) {
|
|
40
40
|
case m:
|
|
41
41
|
return "Fragment";
|
|
42
42
|
case E:
|
|
@@ -50,127 +50,127 @@ function Ro() {
|
|
|
50
50
|
case Y:
|
|
51
51
|
return "Activity";
|
|
52
52
|
}
|
|
53
|
-
if (typeof
|
|
54
|
-
switch (typeof
|
|
53
|
+
if (typeof g == "object")
|
|
54
|
+
switch (typeof g.tag == "number" && console.error(
|
|
55
55
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
56
|
-
),
|
|
56
|
+
), g.$$typeof) {
|
|
57
57
|
case v:
|
|
58
58
|
return "Portal";
|
|
59
59
|
case O:
|
|
60
|
-
return
|
|
60
|
+
return g.displayName || "Context";
|
|
61
61
|
case C:
|
|
62
|
-
return (
|
|
62
|
+
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
63
|
case M:
|
|
64
|
-
var D =
|
|
65
|
-
return
|
|
64
|
+
var D = g.render;
|
|
65
|
+
return g = g.displayName, g || (g = D.displayName || D.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
66
66
|
case $:
|
|
67
|
-
return D =
|
|
67
|
+
return D = g.displayName || null, D !== null ? D : e(g.type) || "Memo";
|
|
68
68
|
case F:
|
|
69
|
-
D =
|
|
69
|
+
D = g._payload, g = g._init;
|
|
70
70
|
try {
|
|
71
|
-
return e(
|
|
71
|
+
return e(g(D));
|
|
72
72
|
} catch {
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
|
-
function t(
|
|
78
|
-
return "" +
|
|
77
|
+
function t(g) {
|
|
78
|
+
return "" + g;
|
|
79
79
|
}
|
|
80
|
-
function n(
|
|
80
|
+
function n(g) {
|
|
81
81
|
try {
|
|
82
|
-
t(
|
|
82
|
+
t(g);
|
|
83
83
|
var D = !1;
|
|
84
84
|
} catch {
|
|
85
85
|
D = !0;
|
|
86
86
|
}
|
|
87
87
|
if (D) {
|
|
88
88
|
D = console;
|
|
89
|
-
var L = D.error, P = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
89
|
+
var L = D.error, P = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
90
90
|
return L.call(
|
|
91
91
|
D,
|
|
92
92
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
93
93
|
P
|
|
94
|
-
), t(
|
|
94
|
+
), t(g);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function r(
|
|
98
|
-
if (
|
|
99
|
-
if (typeof
|
|
97
|
+
function r(g) {
|
|
98
|
+
if (g === m) return "<>";
|
|
99
|
+
if (typeof g == "object" && g !== null && g.$$typeof === F)
|
|
100
100
|
return "<...>";
|
|
101
101
|
try {
|
|
102
|
-
var D = e(
|
|
102
|
+
var D = e(g);
|
|
103
103
|
return D ? "<" + D + ">" : "<...>";
|
|
104
104
|
} catch {
|
|
105
105
|
return "<...>";
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function o() {
|
|
109
|
-
var
|
|
110
|
-
return
|
|
109
|
+
var g = Q.A;
|
|
110
|
+
return g === null ? null : g.getOwner();
|
|
111
111
|
}
|
|
112
112
|
function s() {
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
|
-
function a(
|
|
116
|
-
if (ie.call(
|
|
117
|
-
var D = Object.getOwnPropertyDescriptor(
|
|
115
|
+
function a(g) {
|
|
116
|
+
if (ie.call(g, "key")) {
|
|
117
|
+
var D = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (D && D.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function c(
|
|
122
|
+
function c(g, D) {
|
|
123
123
|
function L() {
|
|
124
124
|
w || (w = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
126
126
|
D
|
|
127
127
|
));
|
|
128
128
|
}
|
|
129
|
-
L.isReactWarning = !0, Object.defineProperty(
|
|
129
|
+
L.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
130
130
|
get: L,
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function l() {
|
|
135
|
-
var
|
|
136
|
-
return _[
|
|
135
|
+
var g = e(this.type);
|
|
136
|
+
return _[g] || (_[g] = !0, console.error(
|
|
137
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
138
|
-
)),
|
|
138
|
+
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
139
139
|
}
|
|
140
|
-
function u(
|
|
140
|
+
function u(g, D, L, P, U, X) {
|
|
141
141
|
var V = L.ref;
|
|
142
|
-
return
|
|
143
|
-
$$typeof:
|
|
144
|
-
type:
|
|
142
|
+
return g = {
|
|
143
|
+
$$typeof: p,
|
|
144
|
+
type: g,
|
|
145
145
|
key: D,
|
|
146
146
|
props: L,
|
|
147
147
|
_owner: P
|
|
148
|
-
}, (V !== void 0 ? V : null) !== null ? Object.defineProperty(
|
|
148
|
+
}, (V !== void 0 ? V : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
150
|
get: l
|
|
151
|
-
}) : Object.defineProperty(
|
|
151
|
+
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
154
154
|
writable: !0,
|
|
155
155
|
value: 0
|
|
156
|
-
}), Object.defineProperty(
|
|
156
|
+
}), Object.defineProperty(g, "_debugInfo", {
|
|
157
157
|
configurable: !1,
|
|
158
158
|
enumerable: !1,
|
|
159
159
|
writable: !0,
|
|
160
160
|
value: null
|
|
161
|
-
}), Object.defineProperty(
|
|
161
|
+
}), Object.defineProperty(g, "_debugStack", {
|
|
162
162
|
configurable: !1,
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
writable: !0,
|
|
165
165
|
value: U
|
|
166
|
-
}), Object.defineProperty(
|
|
166
|
+
}), Object.defineProperty(g, "_debugTask", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
170
|
value: X
|
|
171
|
-
}), Object.freeze && (Object.freeze(
|
|
171
|
+
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function d(
|
|
173
|
+
function d(g, D, L, P, U, X) {
|
|
174
174
|
var V = D.children;
|
|
175
175
|
if (V !== void 0)
|
|
176
176
|
if (P)
|
|
@@ -184,7 +184,7 @@ function Ro() {
|
|
|
184
184
|
);
|
|
185
185
|
else f(V);
|
|
186
186
|
if (ie.call(D, "key")) {
|
|
187
|
-
V = e(
|
|
187
|
+
V = e(g);
|
|
188
188
|
var K = Object.keys(D).filter(function(z) {
|
|
189
189
|
return z !== "key";
|
|
190
190
|
});
|
|
@@ -208,9 +208,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
208
208
|
} else L = D;
|
|
209
209
|
return V && c(
|
|
210
210
|
L,
|
|
211
|
-
typeof
|
|
211
|
+
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
212
|
), u(
|
|
213
|
-
|
|
213
|
+
g,
|
|
214
214
|
V,
|
|
215
215
|
L,
|
|
216
216
|
o(),
|
|
@@ -218,43 +218,43 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
X
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
-
function f(
|
|
222
|
-
b(
|
|
221
|
+
function f(g) {
|
|
222
|
+
b(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === F && (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 b(
|
|
225
|
-
return typeof
|
|
224
|
+
function b(g) {
|
|
225
|
+
return typeof g == "object" && g !== null && g.$$typeof === p;
|
|
226
226
|
}
|
|
227
|
-
var h = re,
|
|
227
|
+
var h = re, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), E = /* @__PURE__ */ Symbol.for("react.profiler"), C = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), T = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), F = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, I = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
h = {
|
|
231
|
-
react_stack_bottom_frame: function(
|
|
232
|
-
return
|
|
231
|
+
react_stack_bottom_frame: function(g) {
|
|
232
|
+
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
var w, _ = {}, R = h.react_stack_bottom_frame.bind(
|
|
236
236
|
h,
|
|
237
237
|
s
|
|
238
238
|
)(), A = j(r(s)), N = {};
|
|
239
|
-
ct.Fragment = m, ct.jsx = function(
|
|
239
|
+
ct.Fragment = m, ct.jsx = function(g, D, L) {
|
|
240
240
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
241
241
|
return d(
|
|
242
|
-
|
|
242
|
+
g,
|
|
243
243
|
D,
|
|
244
244
|
L,
|
|
245
245
|
!1,
|
|
246
246
|
P ? Error("react-stack-top-frame") : R,
|
|
247
|
-
P ? j(r(
|
|
247
|
+
P ? j(r(g)) : A
|
|
248
248
|
);
|
|
249
|
-
}, ct.jsxs = function(
|
|
249
|
+
}, ct.jsxs = function(g, D, L) {
|
|
250
250
|
var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
251
251
|
return d(
|
|
252
|
-
|
|
252
|
+
g,
|
|
253
253
|
D,
|
|
254
254
|
L,
|
|
255
255
|
!0,
|
|
256
256
|
P ? Error("react-stack-top-frame") : R,
|
|
257
|
-
P ? j(r(
|
|
257
|
+
P ? j(r(g)) : A
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
260
|
})()), ct;
|
|
@@ -274,7 +274,7 @@ function _o() {
|
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
276
|
function c(f, b) {
|
|
277
|
-
var h = b(),
|
|
277
|
+
var h = b(), p = r({ inst: { value: h, getSnapshot: b } }), v = p[0].inst, m = p[1];
|
|
278
278
|
return s(
|
|
279
279
|
function() {
|
|
280
280
|
v.value = h, v.getSnapshot = b, l(v) && m({ inst: v });
|
|
@@ -309,29 +309,29 @@ var sn = {};
|
|
|
309
309
|
var Jn;
|
|
310
310
|
function To() {
|
|
311
311
|
return Jn || (Jn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
312
|
-
function e(h,
|
|
313
|
-
return h ===
|
|
312
|
+
function e(h, p) {
|
|
313
|
+
return h === p && (h !== 0 || 1 / h === 1 / p) || h !== h && p !== p;
|
|
314
314
|
}
|
|
315
|
-
function t(h,
|
|
315
|
+
function t(h, p) {
|
|
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
|
-
var v =
|
|
319
|
+
var v = p();
|
|
320
320
|
if (!f) {
|
|
321
|
-
var m =
|
|
321
|
+
var m = p();
|
|
322
322
|
s(v, 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
|
-
inst: { value: v, getSnapshot:
|
|
327
|
+
inst: { value: v, getSnapshot: p }
|
|
328
328
|
});
|
|
329
329
|
var y = m[0].inst, E = m[1];
|
|
330
330
|
return l(
|
|
331
331
|
function() {
|
|
332
|
-
y.value = v, y.getSnapshot =
|
|
332
|
+
y.value = v, y.getSnapshot = p, n(y) && E({ inst: y });
|
|
333
333
|
},
|
|
334
|
-
[h, v,
|
|
334
|
+
[h, v, p]
|
|
335
335
|
), c(
|
|
336
336
|
function() {
|
|
337
337
|
return n(y) && E({ inst: y }), h(function() {
|
|
@@ -342,17 +342,17 @@ function To() {
|
|
|
342
342
|
), u(v), v;
|
|
343
343
|
}
|
|
344
344
|
function n(h) {
|
|
345
|
-
var
|
|
345
|
+
var p = h.getSnapshot;
|
|
346
346
|
h = h.value;
|
|
347
347
|
try {
|
|
348
|
-
var v =
|
|
348
|
+
var v = p();
|
|
349
349
|
return !s(h, v);
|
|
350
350
|
} catch {
|
|
351
351
|
return !0;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function r(h,
|
|
355
|
-
return
|
|
354
|
+
function r(h, p) {
|
|
355
|
+
return p();
|
|
356
356
|
}
|
|
357
357
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
358
358
|
var o = re, s = 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;
|
|
@@ -360,25 +360,25 @@ function To() {
|
|
|
360
360
|
})()), sn;
|
|
361
361
|
}
|
|
362
362
|
var Kn;
|
|
363
|
-
function
|
|
363
|
+
function Tr() {
|
|
364
364
|
return Kn || (Kn = 1, process.env.NODE_ENV === "production" ? _t.exports = _o() : _t.exports = To()), _t.exports;
|
|
365
365
|
}
|
|
366
366
|
var Zn;
|
|
367
367
|
function Oo() {
|
|
368
368
|
if (Zn) return rn;
|
|
369
369
|
Zn = 1;
|
|
370
|
-
var e = re, t =
|
|
370
|
+
var e = re, t = Tr();
|
|
371
371
|
function n(u, d) {
|
|
372
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, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
|
|
375
375
|
return rn.useSyncExternalStoreWithSelector = function(u, d, f, b, h) {
|
|
376
|
-
var
|
|
377
|
-
if (
|
|
376
|
+
var p = s(null);
|
|
377
|
+
if (p.current === null) {
|
|
378
378
|
var v = { hasValue: !1, value: null };
|
|
379
|
-
|
|
380
|
-
} else v =
|
|
381
|
-
|
|
379
|
+
p.current = v;
|
|
380
|
+
} else v = p.current;
|
|
381
|
+
p = c(
|
|
382
382
|
function() {
|
|
383
383
|
function y(S) {
|
|
384
384
|
if (!E) {
|
|
@@ -405,7 +405,7 @@ function Oo() {
|
|
|
405
405
|
},
|
|
406
406
|
[d, f, b, h]
|
|
407
407
|
);
|
|
408
|
-
var m = o(u,
|
|
408
|
+
var m = o(u, p[0], p[1]);
|
|
409
409
|
return a(
|
|
410
410
|
function() {
|
|
411
411
|
v.hasValue = !0, v.value = m;
|
|
@@ -422,14 +422,14 @@ function Mo() {
|
|
|
422
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 = re, n =
|
|
425
|
+
var t = re, n = Tr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
426
426
|
an.useSyncExternalStoreWithSelector = function(u, d, f, b, h) {
|
|
427
|
-
var
|
|
428
|
-
if (
|
|
427
|
+
var p = s(null);
|
|
428
|
+
if (p.current === null) {
|
|
429
429
|
var v = { hasValue: !1, value: null };
|
|
430
|
-
|
|
431
|
-
} else v =
|
|
432
|
-
|
|
430
|
+
p.current = v;
|
|
431
|
+
} else v = p.current;
|
|
432
|
+
p = c(
|
|
433
433
|
function() {
|
|
434
434
|
function y(S) {
|
|
435
435
|
if (!E) {
|
|
@@ -457,7 +457,7 @@ function Mo() {
|
|
|
457
457
|
},
|
|
458
458
|
[d, f, b, h]
|
|
459
459
|
);
|
|
460
|
-
var m = o(u,
|
|
460
|
+
var m = o(u, p[0], p[1]);
|
|
461
461
|
return a(
|
|
462
462
|
function() {
|
|
463
463
|
v.hasValue = !0, v.value = m;
|
|
@@ -477,7 +477,7 @@ const mn = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Pt
|
|
|
477
477
|
};
|
|
478
478
|
let cn = !1;
|
|
479
479
|
const Tt = /* @__PURE__ */ new Set(), tr = /* @__PURE__ */ new Map();
|
|
480
|
-
function
|
|
480
|
+
function Or(e) {
|
|
481
481
|
for (const t of e) {
|
|
482
482
|
if (Pt.current.includes(t))
|
|
483
483
|
continue;
|
|
@@ -486,7 +486,7 @@ function Tr(e) {
|
|
|
486
486
|
if (n)
|
|
487
487
|
for (const r of n) {
|
|
488
488
|
const o = mn.get(r);
|
|
489
|
-
o?.length &&
|
|
489
|
+
o?.length && Or(o);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
@@ -518,7 +518,7 @@ function No(e) {
|
|
|
518
518
|
}
|
|
519
519
|
for (const n of t) {
|
|
520
520
|
const r = mn.get(n);
|
|
521
|
-
r && (Pt.current.push(n),
|
|
521
|
+
r && (Pt.current.push(n), Or(r));
|
|
522
522
|
}
|
|
523
523
|
for (const n of t) {
|
|
524
524
|
const r = mn.get(n);
|
|
@@ -534,7 +534,7 @@ function No(e) {
|
|
|
534
534
|
function zo(e) {
|
|
535
535
|
return typeof e == "function";
|
|
536
536
|
}
|
|
537
|
-
class
|
|
537
|
+
class Mr {
|
|
538
538
|
constructor(t, n) {
|
|
539
539
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
|
|
540
540
|
var o, s;
|
|
@@ -612,26 +612,26 @@ function et(e) {
|
|
|
612
612
|
function jn(e) {
|
|
613
613
|
return "nodeType" in e;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function pe(e) {
|
|
616
616
|
var t, n;
|
|
617
617
|
return e ? et(e) ? e : jn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
618
618
|
}
|
|
619
619
|
function Rn(e) {
|
|
620
620
|
const {
|
|
621
621
|
Document: t
|
|
622
|
-
} =
|
|
622
|
+
} = pe(e);
|
|
623
623
|
return e instanceof t;
|
|
624
624
|
}
|
|
625
625
|
function yt(e) {
|
|
626
|
-
return et(e) ? !1 : e instanceof
|
|
626
|
+
return et(e) ? !1 : e instanceof pe(e).HTMLElement;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return e instanceof
|
|
628
|
+
function $r(e) {
|
|
629
|
+
return e instanceof pe(e).SVGElement;
|
|
630
630
|
}
|
|
631
631
|
function tt(e) {
|
|
632
|
-
return e ? et(e) ? e.document : jn(e) ? Rn(e) ? e : yt(e) ||
|
|
632
|
+
return e ? et(e) ? e.document : jn(e) ? Rn(e) ? e : yt(e) || $r(e) ? e.ownerDocument : document : document : document;
|
|
633
633
|
}
|
|
634
|
-
const Oe = Xt ?
|
|
634
|
+
const Oe = Xt ? mo : H;
|
|
635
635
|
function En(e) {
|
|
636
636
|
const t = G(e);
|
|
637
637
|
return Oe(() => {
|
|
@@ -650,7 +650,7 @@ function Fo() {
|
|
|
650
650
|
}, []);
|
|
651
651
|
return [t, n];
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function gt(e, t) {
|
|
654
654
|
t === void 0 && (t = [e]);
|
|
655
655
|
const n = G(e);
|
|
656
656
|
return Oe(() => {
|
|
@@ -693,7 +693,7 @@ function St(e, t) {
|
|
|
693
693
|
return ln[e] = n, e + "-" + n;
|
|
694
694
|
}, [e, t]);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Ir(e) {
|
|
697
697
|
return function(t) {
|
|
698
698
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
699
699
|
r[o - 1] = arguments[o];
|
|
@@ -709,7 +709,7 @@ function $r(e) {
|
|
|
709
709
|
});
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
const Ke = /* @__PURE__ */
|
|
712
|
+
const Ke = /* @__PURE__ */ Ir(1), Ft = /* @__PURE__ */ Ir(-1);
|
|
713
713
|
function Vo(e) {
|
|
714
714
|
return "clientX" in e && "clientY" in e;
|
|
715
715
|
}
|
|
@@ -718,7 +718,7 @@ function _n(e) {
|
|
|
718
718
|
return !1;
|
|
719
719
|
const {
|
|
720
720
|
KeyboardEvent: t
|
|
721
|
-
} =
|
|
721
|
+
} = pe(e.target);
|
|
722
722
|
return t && e instanceof t;
|
|
723
723
|
}
|
|
724
724
|
function Ho(e) {
|
|
@@ -726,7 +726,7 @@ function Ho(e) {
|
|
|
726
726
|
return !1;
|
|
727
727
|
const {
|
|
728
728
|
TouchEvent: t
|
|
729
|
-
} =
|
|
729
|
+
} = pe(e.target);
|
|
730
730
|
return t && e instanceof t;
|
|
731
731
|
}
|
|
732
732
|
function xn(e) {
|
|
@@ -849,9 +849,9 @@ function Xo() {
|
|
|
849
849
|
announcement: e
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const kr = /* @__PURE__ */ mt(null);
|
|
853
853
|
function qo(e) {
|
|
854
|
-
const t = We(
|
|
854
|
+
const t = We(kr);
|
|
855
855
|
H(() => {
|
|
856
856
|
if (!t)
|
|
857
857
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -1046,7 +1046,7 @@ function or(e, t, n) {
|
|
|
1046
1046
|
y: n + e.height * 0.5
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const Ar = (e) => {
|
|
1050
1050
|
let {
|
|
1051
1051
|
collisionRect: t,
|
|
1052
1052
|
droppableRects: n,
|
|
@@ -1109,7 +1109,7 @@ function cs(e, t, n) {
|
|
|
1109
1109
|
scaleY: t && n ? t.height / n.height : 1
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Lr(e, t) {
|
|
1113
1113
|
return e && t ? {
|
|
1114
1114
|
x: e.left - t.left,
|
|
1115
1115
|
y: e.top - t.top
|
|
@@ -1180,7 +1180,7 @@ function nt(e, t) {
|
|
|
1180
1180
|
const {
|
|
1181
1181
|
transform: u,
|
|
1182
1182
|
transformOrigin: d
|
|
1183
|
-
} =
|
|
1183
|
+
} = pe(e).getComputedStyle(e);
|
|
1184
1184
|
u && (n = fs(n, u, d));
|
|
1185
1185
|
}
|
|
1186
1186
|
const {
|
|
@@ -1205,7 +1205,7 @@ function sr(e) {
|
|
|
1205
1205
|
ignoreTransform: !0
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function ps(e) {
|
|
1209
1209
|
const t = e.innerWidth, n = e.innerHeight;
|
|
1210
1210
|
return {
|
|
1211
1211
|
top: 0,
|
|
@@ -1216,11 +1216,11 @@ function gs(e) {
|
|
|
1216
1216
|
height: n
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return t === void 0 && (t =
|
|
1219
|
+
function gs(e, t) {
|
|
1220
|
+
return t === void 0 && (t = pe(e).getComputedStyle(e)), t.position === "fixed";
|
|
1221
1221
|
}
|
|
1222
1222
|
function vs(e, t) {
|
|
1223
|
-
t === void 0 && (t =
|
|
1223
|
+
t === void 0 && (t = pe(e).getComputedStyle(e));
|
|
1224
1224
|
const n = /(auto|scroll|overlay)/;
|
|
1225
1225
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
1226
1226
|
const s = t[o];
|
|
@@ -1234,44 +1234,44 @@ function Tn(e, t) {
|
|
|
1234
1234
|
return n;
|
|
1235
1235
|
if (Rn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
1236
1236
|
return n.push(o.scrollingElement), n;
|
|
1237
|
-
if (!yt(o) ||
|
|
1237
|
+
if (!yt(o) || $r(o) || n.includes(o))
|
|
1238
1238
|
return n;
|
|
1239
|
-
const s =
|
|
1240
|
-
return o !== e && vs(o, s) && n.push(o),
|
|
1239
|
+
const s = pe(e).getComputedStyle(o);
|
|
1240
|
+
return o !== e && vs(o, s) && n.push(o), gs(o, s) ? n : r(o.parentNode);
|
|
1241
1241
|
}
|
|
1242
1242
|
return e ? r(e) : n;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Nr(e) {
|
|
1245
1245
|
const [t] = Tn(e, 1);
|
|
1246
1246
|
return t ?? null;
|
|
1247
1247
|
}
|
|
1248
1248
|
function un(e) {
|
|
1249
1249
|
return !Xt || !e ? null : et(e) ? e : jn(e) ? Rn(e) || e === tt(e).scrollingElement ? window : yt(e) ? e : null : null;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function zr(e) {
|
|
1252
1252
|
return et(e) ? e.scrollX : e.scrollLeft;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function Pr(e) {
|
|
1255
1255
|
return et(e) ? e.scrollY : e.scrollTop;
|
|
1256
1256
|
}
|
|
1257
1257
|
function yn(e) {
|
|
1258
1258
|
return {
|
|
1259
|
-
x:
|
|
1260
|
-
y:
|
|
1259
|
+
x: zr(e),
|
|
1260
|
+
y: Pr(e)
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
var se;
|
|
1264
1264
|
(function(e) {
|
|
1265
1265
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
1266
1266
|
})(se || (se = {}));
|
|
1267
|
-
function
|
|
1267
|
+
function Yr(e) {
|
|
1268
1268
|
return !Xt || !e ? !1 : e === document.scrollingElement;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Fr(e) {
|
|
1271
1271
|
const t = {
|
|
1272
1272
|
x: 0,
|
|
1273
1273
|
y: 0
|
|
1274
|
-
}, n =
|
|
1274
|
+
}, n = Yr(e) ? {
|
|
1275
1275
|
height: window.innerHeight,
|
|
1276
1276
|
width: window.innerWidth
|
|
1277
1277
|
} : {
|
|
@@ -1307,19 +1307,19 @@ function bs(e, t, n, r, o) {
|
|
|
1307
1307
|
isBottom: d,
|
|
1308
1308
|
isLeft: f,
|
|
1309
1309
|
isRight: b
|
|
1310
|
-
} =
|
|
1310
|
+
} = Fr(e), h = {
|
|
1311
1311
|
x: 0,
|
|
1312
1312
|
y: 0
|
|
1313
|
-
},
|
|
1313
|
+
}, p = {
|
|
1314
1314
|
x: 0,
|
|
1315
1315
|
y: 0
|
|
1316
1316
|
}, v = {
|
|
1317
1317
|
height: t.height * o.y,
|
|
1318
1318
|
width: t.width * o.x
|
|
1319
1319
|
};
|
|
1320
|
-
return !u && s <= t.top + v.height ? (h.y = se.Backward,
|
|
1320
|
+
return !u && s <= t.top + v.height ? (h.y = se.Backward, p.y = r * Math.abs((t.top + v.height - s) / v.height)) : !d && l >= t.bottom - v.height && (h.y = se.Forward, p.y = r * Math.abs((t.bottom - v.height - l) / v.height)), !b && c >= t.right - v.width ? (h.x = se.Forward, p.x = r * Math.abs((t.right - v.width - c) / v.width)) : !f && a <= t.left + v.width && (h.x = se.Backward, p.x = r * Math.abs((t.left + v.width - a) / v.width)), {
|
|
1321
1321
|
direction: h,
|
|
1322
|
-
speed:
|
|
1322
|
+
speed: p
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
1325
|
function xs(e) {
|
|
@@ -1352,14 +1352,14 @@ function xs(e) {
|
|
|
1352
1352
|
height: e.clientHeight
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Vr(e) {
|
|
1356
1356
|
return e.reduce((t, n) => Ke(t, yn(n)), Ce);
|
|
1357
1357
|
}
|
|
1358
1358
|
function ys(e) {
|
|
1359
|
-
return e.reduce((t, n) => t +
|
|
1359
|
+
return e.reduce((t, n) => t + zr(n), 0);
|
|
1360
1360
|
}
|
|
1361
1361
|
function ws(e) {
|
|
1362
|
-
return e.reduce((t, n) => t +
|
|
1362
|
+
return e.reduce((t, n) => t + Pr(n), 0);
|
|
1363
1363
|
}
|
|
1364
1364
|
function Ss(e, t) {
|
|
1365
1365
|
if (t === void 0 && (t = nt), !e)
|
|
@@ -1370,7 +1370,7 @@ function Ss(e, t) {
|
|
|
1370
1370
|
bottom: o,
|
|
1371
1371
|
right: s
|
|
1372
1372
|
} = t(e);
|
|
1373
|
-
|
|
1373
|
+
Nr(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
1374
1374
|
block: "center",
|
|
1375
1375
|
inline: "center"
|
|
1376
1376
|
});
|
|
@@ -1379,7 +1379,7 @@ const Ds = [["x", ["left", "right"], ys], ["y", ["top", "bottom"], ws]];
|
|
|
1379
1379
|
class On {
|
|
1380
1380
|
constructor(t, n) {
|
|
1381
1381
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
1382
|
-
const r = Tn(n), o =
|
|
1382
|
+
const r = Tn(n), o = Vr(r);
|
|
1383
1383
|
this.rect = {
|
|
1384
1384
|
...t
|
|
1385
1385
|
}, this.width = t.width, this.height = t.height;
|
|
@@ -1414,7 +1414,7 @@ class dt {
|
|
|
1414
1414
|
function Cs(e) {
|
|
1415
1415
|
const {
|
|
1416
1416
|
EventTarget: t
|
|
1417
|
-
} =
|
|
1417
|
+
} = pe(e);
|
|
1418
1418
|
return e instanceof t ? e : tt(e);
|
|
1419
1419
|
}
|
|
1420
1420
|
function dn(e, t) {
|
|
@@ -1435,7 +1435,7 @@ var W;
|
|
|
1435
1435
|
(function(e) {
|
|
1436
1436
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1437
1437
|
})(W || (W = {}));
|
|
1438
|
-
const
|
|
1438
|
+
const Hr = {
|
|
1439
1439
|
start: [W.Space, W.Enter],
|
|
1440
1440
|
cancel: [W.Esc],
|
|
1441
1441
|
end: [W.Space, W.Enter, W.Tab]
|
|
@@ -1466,7 +1466,7 @@ const Vr = {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
}
|
|
1468
1468
|
};
|
|
1469
|
-
class
|
|
1469
|
+
class Wr {
|
|
1470
1470
|
constructor(t) {
|
|
1471
1471
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
1472
1472
|
const {
|
|
@@ -1474,7 +1474,7 @@ class Hr {
|
|
|
1474
1474
|
target: n
|
|
1475
1475
|
}
|
|
1476
1476
|
} = t;
|
|
1477
|
-
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(
|
|
1477
|
+
this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(pe(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1478
1478
|
}
|
|
1479
1479
|
attach() {
|
|
1480
1480
|
this.handleStart(), this.windowListeners.add(ye.Resize, this.handleCancel), this.windowListeners.add(ye.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ye.Keydown, this.handleKeyDown));
|
|
@@ -1493,7 +1493,7 @@ class Hr {
|
|
|
1493
1493
|
context: r,
|
|
1494
1494
|
options: o
|
|
1495
1495
|
} = this.props, {
|
|
1496
|
-
keyboardCodes: s =
|
|
1496
|
+
keyboardCodes: s = Hr,
|
|
1497
1497
|
coordinateGetter: a = Rs,
|
|
1498
1498
|
scrollBehavior: c = "smooth"
|
|
1499
1499
|
} = o, {
|
|
@@ -1524,9 +1524,9 @@ class Hr {
|
|
|
1524
1524
|
x: 0,
|
|
1525
1525
|
y: 0
|
|
1526
1526
|
}, {
|
|
1527
|
-
scrollableAncestors:
|
|
1527
|
+
scrollableAncestors: p
|
|
1528
1528
|
} = r.current;
|
|
1529
|
-
for (const v of
|
|
1529
|
+
for (const v of p) {
|
|
1530
1530
|
const m = t.code, {
|
|
1531
1531
|
isTop: y,
|
|
1532
1532
|
isRight: E,
|
|
@@ -1534,7 +1534,7 @@ class Hr {
|
|
|
1534
1534
|
isBottom: O,
|
|
1535
1535
|
maxScroll: M,
|
|
1536
1536
|
minScroll: S
|
|
1537
|
-
} =
|
|
1537
|
+
} = Fr(v), T = xs(v), $ = {
|
|
1538
1538
|
x: Math.min(m === W.Right ? T.right - T.width / 2 : T.right, Math.max(m === W.Right ? T.left : T.left + T.width / 2, f.x)),
|
|
1539
1539
|
y: Math.min(m === W.Down ? T.bottom - T.height / 2 : T.bottom, Math.max(m === W.Down ? T.top : T.top + T.height / 2, f.y))
|
|
1540
1540
|
}, F = m === W.Right && !E || m === W.Left && !C, Y = m === W.Down && !O || m === W.Up && !y;
|
|
@@ -1594,11 +1594,11 @@ class Hr {
|
|
|
1594
1594
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
|
|
1597
|
+
Wr.activators = [{
|
|
1598
1598
|
eventName: "onKeyDown",
|
|
1599
1599
|
handler: (e, t, n) => {
|
|
1600
1600
|
let {
|
|
1601
|
-
keyboardCodes: r =
|
|
1601
|
+
keyboardCodes: r = Hr,
|
|
1602
1602
|
onActivation: o
|
|
1603
1603
|
} = t, {
|
|
1604
1604
|
active: s
|
|
@@ -1630,7 +1630,7 @@ class Mn {
|
|
|
1630
1630
|
} = t, {
|
|
1631
1631
|
target: a
|
|
1632
1632
|
} = s;
|
|
1633
|
-
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(
|
|
1633
|
+
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(pe(a)), this.initialCoordinates = (o = xn(s)) != null ? o : Ce, 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();
|
|
1634
1634
|
}
|
|
1635
1635
|
attach() {
|
|
1636
1636
|
const {
|
|
@@ -1863,7 +1863,7 @@ function Ms(e) {
|
|
|
1863
1863
|
const h = Is({
|
|
1864
1864
|
delta: f,
|
|
1865
1865
|
disabled: !s
|
|
1866
|
-
}), [
|
|
1866
|
+
}), [p, v] = Fo(), m = G({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
1869
|
}), y = G({
|
|
@@ -1907,7 +1907,7 @@ function Ms(e) {
|
|
|
1907
1907
|
for (const k of ["x", "y"])
|
|
1908
1908
|
h[k][F[k]] || (Y[k] = 0, F[k] = 0);
|
|
1909
1909
|
if (Y.x > 0 || Y.y > 0) {
|
|
1910
|
-
v(), C.current = S,
|
|
1910
|
+
v(), C.current = S, p(O, a), m.current = Y, y.current = F;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
@@ -1931,7 +1931,7 @@ function Ms(e) {
|
|
|
1931
1931
|
JSON.stringify(E),
|
|
1932
1932
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1933
1933
|
JSON.stringify(h),
|
|
1934
|
-
|
|
1934
|
+
p,
|
|
1935
1935
|
u,
|
|
1936
1936
|
M,
|
|
1937
1937
|
d,
|
|
@@ -2012,9 +2012,9 @@ function Ls(e, t) {
|
|
|
2012
2012
|
frequency: c,
|
|
2013
2013
|
measure: l,
|
|
2014
2014
|
strategy: u
|
|
2015
|
-
} = o, d = G(e), f = m(), b =
|
|
2015
|
+
} = o, d = G(e), f = m(), b = gt(f), h = ue(function(y) {
|
|
2016
2016
|
y === void 0 && (y = []), !b.current && a((E) => E === null ? y : E.concat(y.filter((C) => !E.includes(C))));
|
|
2017
|
-
}, [b]),
|
|
2017
|
+
}, [b]), p = G(null), v = wt((y) => {
|
|
2018
2018
|
if (f && !n)
|
|
2019
2019
|
return lr;
|
|
2020
2020
|
if (!y || y === lr || d.current !== e || s != null) {
|
|
@@ -2049,8 +2049,8 @@ function Ls(e, t) {
|
|
|
2049
2049
|
[JSON.stringify(s)]
|
|
2050
2050
|
), H(
|
|
2051
2051
|
() => {
|
|
2052
|
-
f || typeof c != "number" ||
|
|
2053
|
-
h(),
|
|
2052
|
+
f || typeof c != "number" || p.current !== null || (p.current = setTimeout(() => {
|
|
2053
|
+
h(), p.current = null;
|
|
2054
2054
|
}, c));
|
|
2055
2055
|
},
|
|
2056
2056
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -2071,11 +2071,11 @@ function Ls(e, t) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Br(e, t) {
|
|
2075
2075
|
return wt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Ns(e, t) {
|
|
2078
|
-
return
|
|
2078
|
+
return Br(e, t);
|
|
2079
2079
|
}
|
|
2080
2080
|
function zs(e) {
|
|
2081
2081
|
let {
|
|
@@ -2154,8 +2154,8 @@ function ur(e, t, n) {
|
|
|
2154
2154
|
}, [e]), r;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Ys(e) {
|
|
2157
|
-
const t =
|
|
2158
|
-
return
|
|
2157
|
+
const t = Br(e);
|
|
2158
|
+
return Lr(e, t);
|
|
2159
2159
|
}
|
|
2160
2160
|
const dr = [];
|
|
2161
2161
|
function Fs(e) {
|
|
@@ -2190,7 +2190,7 @@ function Vs(e) {
|
|
|
2190
2190
|
u?.removeEventListener("scroll", o);
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
|
-
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Ke(s, a), Ce) :
|
|
2193
|
+
}, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Ke(s, a), Ce) : Vr(e) : Ce, [e, t]);
|
|
2194
2194
|
}
|
|
2195
2195
|
function fr(e, t) {
|
|
2196
2196
|
t === void 0 && (t = []);
|
|
@@ -2243,15 +2243,15 @@ function Ws(e, t) {
|
|
|
2243
2243
|
}, n;
|
|
2244
2244
|
}, {}), [e, t]);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
return B(() => e ?
|
|
2246
|
+
function Gr(e) {
|
|
2247
|
+
return B(() => e ? ps(e) : null, [e]);
|
|
2248
2248
|
}
|
|
2249
2249
|
const hr = [];
|
|
2250
2250
|
function Bs(e, t) {
|
|
2251
2251
|
t === void 0 && (t = nt);
|
|
2252
|
-
const [n] = e, r =
|
|
2252
|
+
const [n] = e, r = Gr(n ? pe(n) : null), [o, s] = oe(hr);
|
|
2253
2253
|
function a() {
|
|
2254
|
-
s(() => e.length ? e.map((l) =>
|
|
2254
|
+
s(() => e.length ? e.map((l) => Yr(l) ? r : new On(t(l), l)) : hr);
|
|
2255
2255
|
}
|
|
2256
2256
|
const c = qt({
|
|
2257
2257
|
callback: a
|
|
@@ -2303,7 +2303,7 @@ const Xs = [{
|
|
|
2303
2303
|
sensor: $n,
|
|
2304
2304
|
options: {}
|
|
2305
2305
|
}, {
|
|
2306
|
-
sensor:
|
|
2306
|
+
sensor: Wr,
|
|
2307
2307
|
options: {}
|
|
2308
2308
|
}], qs = {
|
|
2309
2309
|
current: {}
|
|
@@ -2377,7 +2377,7 @@ const Js = {
|
|
|
2377
2377
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2378
2378
|
over: null,
|
|
2379
2379
|
measureDroppableContainers: Vt
|
|
2380
|
-
}, Jt = /* @__PURE__ */ mt(Ks),
|
|
2380
|
+
}, Jt = /* @__PURE__ */ mt(Ks), Ur = /* @__PURE__ */ mt(Js);
|
|
2381
2381
|
function Zs() {
|
|
2382
2382
|
return {
|
|
2383
2383
|
draggable: {
|
|
@@ -2580,9 +2580,9 @@ function ri(e) {
|
|
|
2580
2580
|
const u = t?.node.current;
|
|
2581
2581
|
if (!u || u.isConnected === !1)
|
|
2582
2582
|
return;
|
|
2583
|
-
const d = n(u), f =
|
|
2583
|
+
const d = n(u), f = Lr(d, r);
|
|
2584
2584
|
if (a || (f.x = 0), c || (f.y = 0), s.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
2585
|
-
const b =
|
|
2585
|
+
const b = Nr(u);
|
|
2586
2586
|
b && b.scrollBy({
|
|
2587
2587
|
top: f.y,
|
|
2588
2588
|
left: f.x
|
|
@@ -2590,7 +2590,7 @@ function ri(e) {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
}, [t, a, c, r, n]);
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2593
|
+
const Xr = /* @__PURE__ */ mt({
|
|
2594
2594
|
...Ce,
|
|
2595
2595
|
scaleX: 1,
|
|
2596
2596
|
scaleY: 1
|
|
@@ -2599,7 +2599,7 @@ var Ve;
|
|
|
2599
2599
|
(function(e) {
|
|
2600
2600
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2601
2601
|
})(Ve || (Ve = {}));
|
|
2602
|
-
const
|
|
2602
|
+
const qr = /* @__PURE__ */ bo(function(t) {
|
|
2603
2603
|
var n, r, o, s;
|
|
2604
2604
|
let {
|
|
2605
2605
|
id: a,
|
|
@@ -2610,9 +2610,9 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2610
2610
|
collisionDetection: f = as,
|
|
2611
2611
|
measuring: b,
|
|
2612
2612
|
modifiers: h,
|
|
2613
|
-
...
|
|
2613
|
+
...p
|
|
2614
2614
|
} = t;
|
|
2615
|
-
const v =
|
|
2615
|
+
const v = xo(Qs, void 0, Zs), [m, y] = v, [E, C] = Jo(), [O, M] = oe(Ve.Uninitialized), S = O === Ve.Initialized, {
|
|
2616
2616
|
draggable: {
|
|
2617
2617
|
active: T,
|
|
2618
2618
|
nodes: $,
|
|
@@ -2632,15 +2632,15 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2632
2632
|
data: (le = k?.data) != null ? le : qs,
|
|
2633
2633
|
rect: Q
|
|
2634
2634
|
} : null;
|
|
2635
|
-
}, [T, k]), I = G(null), [j, w] = oe(null), [_, R] = oe(null), A =
|
|
2635
|
+
}, [T, k]), I = G(null), [j, w] = oe(null), [_, R] = oe(null), A = gt(p, Object.values(p)), N = St("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), D = ni(b), {
|
|
2636
2636
|
droppableRects: L,
|
|
2637
2637
|
measureDroppableContainers: P,
|
|
2638
2638
|
measuringScheduled: U
|
|
2639
|
-
} = Ls(
|
|
2639
|
+
} = Ls(g, {
|
|
2640
2640
|
dragging: S,
|
|
2641
2641
|
dependencies: [F.x, F.y],
|
|
2642
2642
|
config: D.droppable
|
|
2643
|
-
}), X = ks($, T), V = B(() => _ ? xn(_) : null, [_]), K =
|
|
2643
|
+
}), X = ks($, T), V = B(() => _ ? xn(_) : null, [_]), K = vo(), Z = Ns(X, D.draggable.measure);
|
|
2644
2644
|
ri({
|
|
2645
2645
|
activeNode: T != null ? $.get(T) : null,
|
|
2646
2646
|
config: K.layoutShiftCompensation,
|
|
@@ -2663,7 +2663,7 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2663
2663
|
scrollAdjustedTranslate: null
|
|
2664
2664
|
}), we = Y.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), Ie = Us({
|
|
2665
2665
|
measure: D.dragOverlay.measure
|
|
2666
|
-
}), Ge = (r = Ie.nodeRef.current) != null ? r : X, Ue = S ? (o = Ie.rect) != null ? o : z : null, An = !!(Ie.nodeRef.current && Ie.rect), Ln = Ys(An ? null : z), en =
|
|
2666
|
+
}), Ge = (r = Ie.nodeRef.current) != null ? r : X, Ue = S ? (o = Ie.rect) != null ? o : z : null, An = !!(Ie.nodeRef.current && Ie.rect), Ln = Ys(An ? null : z), en = Gr(Ge ? pe(Ge) : null), Ne = Fs(S ? we ?? X : null), Dt = Bs(Ne), Ct = ti(h, {
|
|
2667
2667
|
transform: {
|
|
2668
2668
|
x: F.x - Ln.x,
|
|
2669
2669
|
y: F.y - Ln.y,
|
|
@@ -2680,18 +2680,18 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2680
2680
|
scrollableAncestors: Ne,
|
|
2681
2681
|
scrollableAncestorRects: Dt,
|
|
2682
2682
|
windowRect: en
|
|
2683
|
-
}), Nn = V ? Ke(V, F) : null, zn = Vs(Ne),
|
|
2683
|
+
}), Nn = V ? Ke(V, F) : null, zn = Vs(Ne), co = fr(zn), lo = fr(zn, [z]), Xe = Ke(Ct, co), qe = Ue ? us(Ue, Ct) : null, rt = ie && qe ? f({
|
|
2684
2684
|
active: ie,
|
|
2685
2685
|
collisionRect: qe,
|
|
2686
2686
|
droppableRects: L,
|
|
2687
|
-
droppableContainers:
|
|
2687
|
+
droppableContainers: g,
|
|
2688
2688
|
pointerCoordinates: Nn
|
|
2689
|
-
}) : null, Pn = ss(rt, "id"), [ze, Yn] = oe(null),
|
|
2690
|
-
(le,
|
|
2689
|
+
}) : null, Pn = ss(rt, "id"), [ze, Yn] = oe(null), uo = An ? Ct : Ke(Ct, lo), fo = cs(uo, (s = ze?.rect) != null ? s : null, z), tn = G(null), Fn = ue(
|
|
2690
|
+
(le, ge) => {
|
|
2691
2691
|
let {
|
|
2692
2692
|
sensor: ve,
|
|
2693
2693
|
options: Pe
|
|
2694
|
-
} =
|
|
2694
|
+
} = ge;
|
|
2695
2695
|
if (I.current == null)
|
|
2696
2696
|
return;
|
|
2697
2697
|
const xe = $.get(I.current);
|
|
@@ -2811,7 +2811,7 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2811
2811
|
},
|
|
2812
2812
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2813
2813
|
[$]
|
|
2814
|
-
),
|
|
2814
|
+
), ho = ue((le, ge) => (ve, Pe) => {
|
|
2815
2815
|
const xe = ve.nativeEvent, me = $.get(Pe);
|
|
2816
2816
|
if (
|
|
2817
2817
|
// Another sensor is already instantiating
|
|
@@ -2823,10 +2823,10 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2823
2823
|
const Re = {
|
|
2824
2824
|
active: me
|
|
2825
2825
|
};
|
|
2826
|
-
le(ve,
|
|
2827
|
-
capturedBy:
|
|
2828
|
-
}, I.current = Pe, Fn(ve,
|
|
2829
|
-
}, [$, Fn]), Vn = As(d,
|
|
2826
|
+
le(ve, ge.options, Re) === !0 && (xe.dndKit = {
|
|
2827
|
+
capturedBy: ge.sensor
|
|
2828
|
+
}, I.current = Pe, Fn(ve, ge));
|
|
2829
|
+
}, [$, Fn]), Vn = As(d, ho);
|
|
2830
2830
|
Hs(d), Oe(() => {
|
|
2831
2831
|
z && O === Ve.Initializing && M(Ve.Initialized);
|
|
2832
2832
|
}, [z, O]), H(
|
|
@@ -2834,15 +2834,15 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2834
2834
|
const {
|
|
2835
2835
|
onDragMove: le
|
|
2836
2836
|
} = A.current, {
|
|
2837
|
-
active:
|
|
2837
|
+
active: ge,
|
|
2838
2838
|
activatorEvent: ve,
|
|
2839
2839
|
collisions: Pe,
|
|
2840
2840
|
over: xe
|
|
2841
2841
|
} = ce.current;
|
|
2842
|
-
if (!
|
|
2842
|
+
if (!ge || !ve)
|
|
2843
2843
|
return;
|
|
2844
2844
|
const me = {
|
|
2845
|
-
active:
|
|
2845
|
+
active: ge,
|
|
2846
2846
|
activatorEvent: ve,
|
|
2847
2847
|
collisions: Pe,
|
|
2848
2848
|
delta: {
|
|
@@ -2864,12 +2864,12 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2864
2864
|
() => {
|
|
2865
2865
|
const {
|
|
2866
2866
|
active: le,
|
|
2867
|
-
activatorEvent:
|
|
2867
|
+
activatorEvent: ge,
|
|
2868
2868
|
collisions: ve,
|
|
2869
2869
|
droppableContainers: Pe,
|
|
2870
2870
|
scrollAdjustedTranslate: xe
|
|
2871
2871
|
} = ce.current;
|
|
2872
|
-
if (!le || I.current == null || !
|
|
2872
|
+
if (!le || I.current == null || !ge || !xe)
|
|
2873
2873
|
return;
|
|
2874
2874
|
const {
|
|
2875
2875
|
onDragOver: me
|
|
@@ -2880,7 +2880,7 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2880
2880
|
disabled: Re.disabled
|
|
2881
2881
|
} : null, ae = {
|
|
2882
2882
|
active: le,
|
|
2883
|
-
activatorEvent:
|
|
2883
|
+
activatorEvent: ge,
|
|
2884
2884
|
collisions: ve,
|
|
2885
2885
|
delta: {
|
|
2886
2886
|
x: xe.x,
|
|
@@ -2924,7 +2924,7 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2924
2924
|
scrollableAncestors: Ne,
|
|
2925
2925
|
scrollableAncestorRects: Dt
|
|
2926
2926
|
});
|
|
2927
|
-
const
|
|
2927
|
+
const po = B(() => ({
|
|
2928
2928
|
active: ie,
|
|
2929
2929
|
activeNode: X,
|
|
2930
2930
|
activeNodeRect: z,
|
|
@@ -2955,22 +2955,22 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2955
2955
|
over: ze,
|
|
2956
2956
|
measureDroppableContainers: P
|
|
2957
2957
|
}), [_, Vn, ie, z, y, N, $, ze, P]);
|
|
2958
|
-
return re.createElement(
|
|
2958
|
+
return re.createElement(kr.Provider, {
|
|
2959
2959
|
value: C
|
|
2960
2960
|
}, re.createElement(Jt.Provider, {
|
|
2961
2961
|
value: go
|
|
2962
|
-
}, re.createElement(Gr.Provider, {
|
|
2963
|
-
value: ho
|
|
2964
2962
|
}, re.createElement(Ur.Provider, {
|
|
2965
|
-
value:
|
|
2963
|
+
value: po
|
|
2964
|
+
}, re.createElement(Xr.Provider, {
|
|
2965
|
+
value: fo
|
|
2966
2966
|
}, u)), re.createElement(ei, {
|
|
2967
2967
|
disabled: c?.restoreFocus === !1
|
|
2968
2968
|
})), re.createElement(Qo, {
|
|
2969
2969
|
...c,
|
|
2970
2970
|
hiddenTextDescribedById: N
|
|
2971
2971
|
}));
|
|
2972
|
-
function
|
|
2973
|
-
const le = j?.autoScrollEnabled === !1,
|
|
2972
|
+
function vo() {
|
|
2973
|
+
const le = j?.autoScrollEnabled === !1, ge = typeof l == "object" ? l.enabled === !1 : l === !1, ve = S && !le && !ge;
|
|
2974
2974
|
return typeof l == "object" ? {
|
|
2975
2975
|
...l,
|
|
2976
2976
|
enabled: ve
|
|
@@ -2978,7 +2978,7 @@ const Xr = /* @__PURE__ */ mo(function(t) {
|
|
|
2978
2978
|
enabled: ve
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
|
-
}), oi = /* @__PURE__ */ mt(null),
|
|
2981
|
+
}), oi = /* @__PURE__ */ mt(null), pr = "button", si = "Draggable";
|
|
2982
2982
|
function ii(e) {
|
|
2983
2983
|
let {
|
|
2984
2984
|
id: t,
|
|
@@ -2995,10 +2995,10 @@ function ii(e) {
|
|
|
2995
2995
|
draggableNodes: f,
|
|
2996
2996
|
over: b
|
|
2997
2997
|
} = We(Jt), {
|
|
2998
|
-
role: h =
|
|
2999
|
-
roleDescription:
|
|
2998
|
+
role: h = pr,
|
|
2999
|
+
roleDescription: p = "draggable",
|
|
3000
3000
|
tabIndex: v = 0
|
|
3001
|
-
} = o ?? {}, m = l?.id === t, y = We(m ?
|
|
3001
|
+
} = o ?? {}, m = l?.id === t, y = We(m ? Xr : oi), [E, C] = Yt(), [O, M] = Yt(), S = Ws(a, t), T = gt(n);
|
|
3002
3002
|
Oe(
|
|
3003
3003
|
() => (f.set(t, {
|
|
3004
3004
|
id: t,
|
|
@@ -3017,10 +3017,10 @@ function ii(e) {
|
|
|
3017
3017
|
role: h,
|
|
3018
3018
|
tabIndex: v,
|
|
3019
3019
|
"aria-disabled": r,
|
|
3020
|
-
"aria-pressed": m && h ===
|
|
3021
|
-
"aria-roledescription":
|
|
3020
|
+
"aria-pressed": m && h === pr ? !0 : void 0,
|
|
3021
|
+
"aria-roledescription": p,
|
|
3022
3022
|
"aria-describedby": d.draggable
|
|
3023
|
-
}), [r, h, v, m,
|
|
3023
|
+
}), [r, h, v, m, p, d.draggable]);
|
|
3024
3024
|
return {
|
|
3025
3025
|
active: l,
|
|
3026
3026
|
activatorEvent: c,
|
|
@@ -3036,7 +3036,7 @@ function ii(e) {
|
|
|
3036
3036
|
};
|
|
3037
3037
|
}
|
|
3038
3038
|
function ai() {
|
|
3039
|
-
return We(
|
|
3039
|
+
return We(Ur);
|
|
3040
3040
|
}
|
|
3041
3041
|
const ci = "Droppable", li = {
|
|
3042
3042
|
timeout: 25
|
|
@@ -3056,13 +3056,13 @@ function ui(e) {
|
|
|
3056
3056
|
} = We(Jt), d = G({
|
|
3057
3057
|
disabled: n
|
|
3058
3058
|
}), f = G(!1), b = G(null), h = G(null), {
|
|
3059
|
-
disabled:
|
|
3059
|
+
disabled: p,
|
|
3060
3060
|
updateMeasurementsFor: v,
|
|
3061
3061
|
timeout: m
|
|
3062
3062
|
} = {
|
|
3063
3063
|
...li,
|
|
3064
3064
|
...o
|
|
3065
|
-
}, y =
|
|
3065
|
+
}, y = gt(v ?? r), E = ue(
|
|
3066
3066
|
() => {
|
|
3067
3067
|
if (!f.current) {
|
|
3068
3068
|
f.current = !0;
|
|
@@ -3076,10 +3076,10 @@ function ui(e) {
|
|
|
3076
3076
|
[m]
|
|
3077
3077
|
), C = qt({
|
|
3078
3078
|
callback: E,
|
|
3079
|
-
disabled:
|
|
3079
|
+
disabled: p || !a
|
|
3080
3080
|
}), O = ue(($, F) => {
|
|
3081
3081
|
C && (F && (C.unobserve(F), f.current = !1), $ && C.observe($));
|
|
3082
|
-
}, [C]), [M, S] = Yt(O), T =
|
|
3082
|
+
}, [C]), [M, S] = Yt(O), T = gt(t);
|
|
3083
3083
|
return H(() => {
|
|
3084
3084
|
!C || !M.current || (C.disconnect(), f.current = !1, C.observe(M.current));
|
|
3085
3085
|
}, [M, C]), H(
|
|
@@ -3148,7 +3148,7 @@ function hi(e) {
|
|
|
3148
3148
|
const Mt = {
|
|
3149
3149
|
scaleX: 1,
|
|
3150
3150
|
scaleY: 1
|
|
3151
|
-
},
|
|
3151
|
+
}, pi = (e) => {
|
|
3152
3152
|
var t;
|
|
3153
3153
|
let {
|
|
3154
3154
|
rects: n,
|
|
@@ -3160,7 +3160,7 @@ const Mt = {
|
|
|
3160
3160
|
const c = (t = n[o]) != null ? t : r;
|
|
3161
3161
|
if (!c)
|
|
3162
3162
|
return null;
|
|
3163
|
-
const l =
|
|
3163
|
+
const l = gi(n, a, o);
|
|
3164
3164
|
if (a === o) {
|
|
3165
3165
|
const u = n[s];
|
|
3166
3166
|
return u ? {
|
|
@@ -3183,11 +3183,11 @@ const Mt = {
|
|
|
3183
3183
|
...Mt
|
|
3184
3184
|
};
|
|
3185
3185
|
};
|
|
3186
|
-
function
|
|
3186
|
+
function gi(e, t, n) {
|
|
3187
3187
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
3188
3188
|
return !r || !o && !s ? 0 : n < t ? o ? r.left - (o.left + o.width) : s.left - (r.left + r.width) : s ? s.left - (r.left + r.width) : r.left - (o.left + o.width);
|
|
3189
3189
|
}
|
|
3190
|
-
const
|
|
3190
|
+
const Jr = (e) => {
|
|
3191
3191
|
let {
|
|
3192
3192
|
rects: t,
|
|
3193
3193
|
activeIndex: n,
|
|
@@ -3243,26 +3243,26 @@ function mi(e, t, n) {
|
|
|
3243
3243
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
3244
3244
|
return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
3245
3245
|
}
|
|
3246
|
-
const
|
|
3246
|
+
const Kr = "Sortable", Zr = /* @__PURE__ */ re.createContext({
|
|
3247
3247
|
activeIndex: -1,
|
|
3248
|
-
containerId:
|
|
3248
|
+
containerId: Kr,
|
|
3249
3249
|
disableTransforms: !1,
|
|
3250
3250
|
items: [],
|
|
3251
3251
|
overIndex: -1,
|
|
3252
3252
|
useDragOverlay: !1,
|
|
3253
3253
|
sortedRects: [],
|
|
3254
|
-
strategy:
|
|
3254
|
+
strategy: Jr,
|
|
3255
3255
|
disabled: {
|
|
3256
3256
|
draggable: !1,
|
|
3257
3257
|
droppable: !1
|
|
3258
3258
|
}
|
|
3259
3259
|
});
|
|
3260
|
-
function
|
|
3260
|
+
function Qr(e) {
|
|
3261
3261
|
let {
|
|
3262
3262
|
children: t,
|
|
3263
3263
|
id: n,
|
|
3264
3264
|
items: r,
|
|
3265
|
-
strategy: o =
|
|
3265
|
+
strategy: o = Jr,
|
|
3266
3266
|
disabled: s = !1
|
|
3267
3267
|
} = e;
|
|
3268
3268
|
const {
|
|
@@ -3271,10 +3271,10 @@ function Zr(e) {
|
|
|
3271
3271
|
droppableRects: l,
|
|
3272
3272
|
over: u,
|
|
3273
3273
|
measureDroppableContainers: d
|
|
3274
|
-
} = ai(), f = St(
|
|
3274
|
+
} = ai(), f = St(Kr, n), b = c.rect !== null, h = B(() => r.map((S) => typeof S == "object" && "id" in S ? S.id : S), [r]), p = a != null, v = a ? h.indexOf(a.id) : -1, m = u ? h.indexOf(u.id) : -1, y = G(h), E = !fi(h, y.current), C = m !== -1 && v === -1 || E, O = hi(s);
|
|
3275
3275
|
Oe(() => {
|
|
3276
|
-
E &&
|
|
3277
|
-
}, [E, h,
|
|
3276
|
+
E && p && d(h);
|
|
3277
|
+
}, [E, h, p, d]), H(() => {
|
|
3278
3278
|
y.current = h;
|
|
3279
3279
|
}, [h]);
|
|
3280
3280
|
const M = B(
|
|
@@ -3292,7 +3292,7 @@ function Zr(e) {
|
|
|
3292
3292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3293
3293
|
[v, f, O.draggable, O.droppable, C, h, m, l, b, o]
|
|
3294
3294
|
);
|
|
3295
|
-
return re.createElement(
|
|
3295
|
+
return re.createElement(Zr.Provider, {
|
|
3296
3296
|
value: M
|
|
3297
3297
|
}, t);
|
|
3298
3298
|
}
|
|
@@ -3320,8 +3320,8 @@ const bi = (e) => {
|
|
|
3320
3320
|
}, yi = {
|
|
3321
3321
|
duration: 200,
|
|
3322
3322
|
easing: "ease"
|
|
3323
|
-
},
|
|
3324
|
-
property:
|
|
3323
|
+
}, eo = "transform", wi = /* @__PURE__ */ Ze.Transition.toString({
|
|
3324
|
+
property: eo,
|
|
3325
3325
|
duration: 0,
|
|
3326
3326
|
easing: "linear"
|
|
3327
3327
|
}), Si = {
|
|
@@ -3355,7 +3355,7 @@ function Di(e) {
|
|
|
3355
3355
|
s && a(null);
|
|
3356
3356
|
}, [s]), s;
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function to(e) {
|
|
3359
3359
|
let {
|
|
3360
3360
|
animateLayoutChanges: t = xi,
|
|
3361
3361
|
attributes: n,
|
|
@@ -3372,12 +3372,12 @@ function eo(e) {
|
|
|
3372
3372
|
containerId: f,
|
|
3373
3373
|
activeIndex: b,
|
|
3374
3374
|
disabled: h,
|
|
3375
|
-
disableTransforms:
|
|
3375
|
+
disableTransforms: p,
|
|
3376
3376
|
sortedRects: v,
|
|
3377
3377
|
overIndex: m,
|
|
3378
3378
|
useDragOverlay: y,
|
|
3379
3379
|
strategy: E
|
|
3380
|
-
} = We(
|
|
3380
|
+
} = We(Zr), C = Ci(r, h), O = d.indexOf(a), M = B(() => ({
|
|
3381
3381
|
sortable: {
|
|
3382
3382
|
containerId: f,
|
|
3383
3383
|
index: O,
|
|
@@ -3416,7 +3416,7 @@ function eo(e) {
|
|
|
3416
3416
|
...n
|
|
3417
3417
|
},
|
|
3418
3418
|
disabled: C.draggable
|
|
3419
|
-
}),
|
|
3419
|
+
}), g = Yo(Y, j), D = !!k, L = D && !p && Ot(b) && Ot(m), P = !y && _, U = P && L ? N : null, V = L ? U ?? (c ?? E)({
|
|
3420
3420
|
rects: v,
|
|
3421
3421
|
activeNodeRect: ie,
|
|
3422
3422
|
activeIndex: b,
|
|
@@ -3480,7 +3480,7 @@ function eo(e) {
|
|
|
3480
3480
|
node: $,
|
|
3481
3481
|
overIndex: m,
|
|
3482
3482
|
over: R,
|
|
3483
|
-
setNodeRef:
|
|
3483
|
+
setNodeRef: g,
|
|
3484
3484
|
setActivatorNodeRef: A,
|
|
3485
3485
|
setDroppableNodeRef: Y,
|
|
3486
3486
|
setDraggableNodeRef: j,
|
|
@@ -3497,7 +3497,7 @@ function eo(e) {
|
|
|
3497
3497
|
if (!(P && !_n(Q) || !u) && (D || ce))
|
|
3498
3498
|
return Ze.Transition.toString({
|
|
3499
3499
|
...u,
|
|
3500
|
-
property:
|
|
3500
|
+
property: eo
|
|
3501
3501
|
});
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
@@ -3516,10 +3516,10 @@ W.Down, W.Right, W.Up, W.Left;
|
|
|
3516
3516
|
const ji = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ri = (e) => e.replace(
|
|
3517
3517
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3518
3518
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3519
|
-
),
|
|
3519
|
+
), gr = (e) => {
|
|
3520
3520
|
const t = Ri(e);
|
|
3521
3521
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3522
|
-
},
|
|
3522
|
+
}, no = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Ei = (e) => {
|
|
3523
3523
|
for (const t in e)
|
|
3524
3524
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3525
3525
|
return !0;
|
|
@@ -3545,7 +3545,7 @@ const Ti = Dn(
|
|
|
3545
3545
|
children: s,
|
|
3546
3546
|
iconNode: a,
|
|
3547
3547
|
...c
|
|
3548
|
-
}, l) =>
|
|
3548
|
+
}, l) => gn(
|
|
3549
3549
|
"svg",
|
|
3550
3550
|
{
|
|
3551
3551
|
ref: l,
|
|
@@ -3554,30 +3554,30 @@ const Ti = Dn(
|
|
|
3554
3554
|
height: t,
|
|
3555
3555
|
stroke: e,
|
|
3556
3556
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3557
|
-
className:
|
|
3557
|
+
className: no("lucide", o),
|
|
3558
3558
|
...!s && !Ei(c) && { "aria-hidden": "true" },
|
|
3559
3559
|
...c
|
|
3560
3560
|
},
|
|
3561
3561
|
[
|
|
3562
|
-
...a.map(([u, d]) =>
|
|
3562
|
+
...a.map(([u, d]) => gn(u, d)),
|
|
3563
3563
|
...Array.isArray(s) ? s : [s]
|
|
3564
3564
|
]
|
|
3565
3565
|
)
|
|
3566
3566
|
);
|
|
3567
3567
|
const de = (e, t) => {
|
|
3568
3568
|
const n = Dn(
|
|
3569
|
-
({ className: r, ...o }, s) =>
|
|
3569
|
+
({ className: r, ...o }, s) => gn(Ti, {
|
|
3570
3570
|
ref: s,
|
|
3571
3571
|
iconNode: t,
|
|
3572
|
-
className:
|
|
3573
|
-
`lucide-${ji(
|
|
3572
|
+
className: no(
|
|
3573
|
+
`lucide-${ji(gr(e))}`,
|
|
3574
3574
|
`lucide-${e}`,
|
|
3575
3575
|
r
|
|
3576
3576
|
),
|
|
3577
3577
|
...o
|
|
3578
3578
|
})
|
|
3579
3579
|
);
|
|
3580
|
-
return n.displayName =
|
|
3580
|
+
return n.displayName = gr(e), n;
|
|
3581
3581
|
};
|
|
3582
3582
|
const Oi = [
|
|
3583
3583
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
@@ -3640,7 +3640,7 @@ const Ki = [
|
|
|
3640
3640
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3641
3641
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3642
3642
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3643
|
-
],
|
|
3643
|
+
], ro = de("grip-vertical", Ki);
|
|
3644
3644
|
const Zi = [
|
|
3645
3645
|
[
|
|
3646
3646
|
"path",
|
|
@@ -3686,9 +3686,9 @@ function x(e) {
|
|
|
3686
3686
|
);
|
|
3687
3687
|
});
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3689
|
+
const oo = (e) => `table_column_order_v1:${e}`, so = (e) => `table_column_visibility_v1:${e}`, ia = (e) => {
|
|
3690
3690
|
const { tableId: t } = be.state;
|
|
3691
|
-
localStorage.setItem(
|
|
3691
|
+
localStorage.setItem(oo(t), JSON.stringify(e.map((n) => n.id))), be.setState((n) => ({
|
|
3692
3692
|
...n,
|
|
3693
3693
|
columnOrder: e
|
|
3694
3694
|
})), be.setState((n) => ({ ...n, columnOrder: e }));
|
|
@@ -3709,12 +3709,12 @@ const ca = (e) => {
|
|
|
3709
3709
|
...t.visibility,
|
|
3710
3710
|
[e]: !t.visibility[e]
|
|
3711
3711
|
};
|
|
3712
|
-
return t.tableId && localStorage.setItem(
|
|
3712
|
+
return t.tableId && localStorage.setItem(so(t.tableId), JSON.stringify(n)), {
|
|
3713
3713
|
...t,
|
|
3714
3714
|
visibility: n
|
|
3715
3715
|
};
|
|
3716
3716
|
});
|
|
3717
|
-
}, be = new
|
|
3717
|
+
}, be = new Mr({
|
|
3718
3718
|
tableId: "",
|
|
3719
3719
|
sortColumn: null,
|
|
3720
3720
|
sortDirection: "asc",
|
|
@@ -3734,12 +3734,12 @@ function la(e, t) {
|
|
|
3734
3734
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((d) => ({ id: d, label: d }))).filter(
|
|
3735
3735
|
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
3736
3736
|
), { tableId: s } = be.state, a = JSON.parse(
|
|
3737
|
-
localStorage.getItem(
|
|
3737
|
+
localStorage.getItem(oo(s)) || "[]"
|
|
3738
3738
|
), c = [
|
|
3739
3739
|
...a.map((d) => o.find((f) => f.id === d)).filter(Boolean),
|
|
3740
3740
|
...o.filter((d) => !a.includes(d.id))
|
|
3741
3741
|
], l = JSON.parse(
|
|
3742
|
-
localStorage.getItem(
|
|
3742
|
+
localStorage.getItem(so(s)) || "{}"
|
|
3743
3743
|
), u = c.reduce((d, f) => (d[f.id] = l[f.id] ?? !0, d), {});
|
|
3744
3744
|
be.setState((d) => ({
|
|
3745
3745
|
...d,
|
|
@@ -3765,14 +3765,14 @@ const da = (e) => {
|
|
|
3765
3765
|
...t,
|
|
3766
3766
|
actionsConfig: e
|
|
3767
3767
|
}));
|
|
3768
|
-
}, fa = x(Me.Trigger), ha = x(Me.Positioner),
|
|
3768
|
+
}, fa = x(Me.Trigger), ha = x(Me.Positioner), pa = x(Me.Content), ga = x(Me.Item), va = x(je.Label), ma = x(je.HiddenInput), ba = x(je.Control);
|
|
3769
3769
|
function xa({ visibility: e, onToggle: t }) {
|
|
3770
3770
|
const { sortableColumns: n } = xt(be);
|
|
3771
3771
|
return /* @__PURE__ */ i.jsxs(Me.Root, { closeOnSelect: !1, children: [
|
|
3772
3772
|
/* @__PURE__ */ i.jsx(fa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Te, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ i.jsx(Wi, { size: 18 }) }) }),
|
|
3773
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ha, { children: /* @__PURE__ */ i.jsx(
|
|
3773
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ha, { children: /* @__PURE__ */ i.jsx(pa, { minW: "220px", children: n.map((r) => {
|
|
3774
3774
|
const o = !!e[r.id];
|
|
3775
|
-
return /* @__PURE__ */ i.jsx(
|
|
3775
|
+
return /* @__PURE__ */ i.jsx(ga, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(je.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3776
3776
|
/* @__PURE__ */ i.jsx(ma, {}),
|
|
3777
3777
|
/* @__PURE__ */ i.jsx(ba, {}),
|
|
3778
3778
|
/* @__PURE__ */ i.jsx(va, { children: r.label })
|
|
@@ -3789,7 +3789,7 @@ function ya({
|
|
|
3789
3789
|
borderRightColor: s,
|
|
3790
3790
|
backgroundColor: a
|
|
3791
3791
|
}) {
|
|
3792
|
-
const { setNodeRef: c, attributes: l, listeners: u, transform: d, transition: f } =
|
|
3792
|
+
const { setNodeRef: c, attributes: l, listeners: u, transform: d, transition: f } = to({ id: e });
|
|
3793
3793
|
return /* @__PURE__ */ i.jsx(
|
|
3794
3794
|
ee.ColumnHeader,
|
|
3795
3795
|
{
|
|
@@ -3807,7 +3807,7 @@ function ya({
|
|
|
3807
3807
|
...l,
|
|
3808
3808
|
children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
3809
3809
|
t,
|
|
3810
|
-
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(
|
|
3810
|
+
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(ro, { size: 12 }) })
|
|
3811
3811
|
] })
|
|
3812
3812
|
}
|
|
3813
3813
|
);
|
|
@@ -3816,14 +3816,14 @@ function wa() {
|
|
|
3816
3816
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = xt(be), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
|
|
3817
3817
|
const { active: u, over: d } = l;
|
|
3818
3818
|
if (!d || u.id === d.id) return;
|
|
3819
|
-
const f = e.findIndex((
|
|
3819
|
+
const f = e.findIndex((p) => p.id === u.id), b = e.findIndex((p) => p.id === d.id), h = Kt(e, f, b);
|
|
3820
3820
|
ia(h);
|
|
3821
3821
|
};
|
|
3822
|
-
return /* @__PURE__ */ i.jsx(ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ i.jsx(
|
|
3823
|
-
|
|
3822
|
+
return /* @__PURE__ */ i.jsx(ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ i.jsx(qr, { collisionDetection: Ar, onDragEnd: c, children: /* @__PURE__ */ i.jsx(
|
|
3823
|
+
Qr,
|
|
3824
3824
|
{
|
|
3825
3825
|
items: e.map((l) => l.id),
|
|
3826
|
-
strategy:
|
|
3826
|
+
strategy: pi,
|
|
3827
3827
|
children: /* @__PURE__ */ i.jsxs(ee.Row, { height: "28px", children: [
|
|
3828
3828
|
a.map((l) => {
|
|
3829
3829
|
const u = n === l?.id;
|
|
@@ -3924,7 +3924,7 @@ function ka({
|
|
|
3924
3924
|
page: n,
|
|
3925
3925
|
siblingCount: s,
|
|
3926
3926
|
onPageChange: (l) => r && r(l.page),
|
|
3927
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
3927
|
+
children: /* @__PURE__ */ i.jsxs(yo, { size: "sm", variant: "ghost", children: [
|
|
3928
3928
|
/* @__PURE__ */ i.jsx(Ra, { asChild: !0, children: /* @__PURE__ */ i.jsx(Te, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Yi, { size: 18 }) }) }),
|
|
3929
3929
|
/* @__PURE__ */ i.jsx(
|
|
3930
3930
|
zt.Items,
|
|
@@ -3962,7 +3962,7 @@ function Pa({
|
|
|
3962
3962
|
n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ i.jsx(ee.Cell, { children: o[s.id] }, s.id)),
|
|
3963
3963
|
/* @__PURE__ */ i.jsx(ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Me.Root, { children: [
|
|
3964
3964
|
/* @__PURE__ */ i.jsx(za, { asChild: !0, children: /* @__PURE__ */ i.jsx(Te, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Xi, { size: 16 }) }) }),
|
|
3965
|
-
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Na, { children: /* @__PURE__ */ i.jsx(La, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
|
|
3965
|
+
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Na, { children: /* @__PURE__ */ i.jsx(La, { children: t.filter((s) => s.visible !== !1).map((s) => /* @__PURE__ */ i.jsxs(
|
|
3966
3966
|
Aa,
|
|
3967
3967
|
{
|
|
3968
3968
|
onClick: () => s.onClick(o),
|
|
@@ -3986,7 +3986,7 @@ function Ya({
|
|
|
3986
3986
|
rows: e = 6,
|
|
3987
3987
|
columns: t
|
|
3988
3988
|
}) {
|
|
3989
|
-
return /* @__PURE__ */ i.jsx(ee.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(ee.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(ee.Cell, { children: /* @__PURE__ */ i.jsx(
|
|
3989
|
+
return /* @__PURE__ */ i.jsx(ee.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(ee.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(ee.Cell, { children: /* @__PURE__ */ i.jsx(wo, { height: "25px" }) }, s)) }, r)) });
|
|
3990
3990
|
}
|
|
3991
3991
|
function Tl({
|
|
3992
3992
|
tableId: e,
|
|
@@ -4003,7 +4003,7 @@ function Tl({
|
|
|
4003
4003
|
onPageSizeChange: f,
|
|
4004
4004
|
density: b = "sm",
|
|
4005
4005
|
totalCount: h = 0,
|
|
4006
|
-
paginationMode:
|
|
4006
|
+
paginationMode: p = "client",
|
|
4007
4007
|
actionConfig: v,
|
|
4008
4008
|
pageSizeOptions: m
|
|
4009
4009
|
}) {
|
|
@@ -4018,12 +4018,12 @@ function Tl({
|
|
|
4018
4018
|
const S = [...C], T = Math.max(1, l || 1);
|
|
4019
4019
|
if (y && S.sort(
|
|
4020
4020
|
($, F) => E === "asc" ? String($[y]).localeCompare(String(F[y])) : String(F[y]).localeCompare(String($[y]))
|
|
4021
|
-
),
|
|
4021
|
+
), p === "client") {
|
|
4022
4022
|
const $ = (T - 1) * u;
|
|
4023
4023
|
return S.slice($, $ + u);
|
|
4024
4024
|
}
|
|
4025
4025
|
return S;
|
|
4026
|
-
}, [C, y, E, l, u,
|
|
4026
|
+
}, [C, y, E, l, u, p]);
|
|
4027
4027
|
return H(() => {
|
|
4028
4028
|
l < 1 && d && d(1);
|
|
4029
4029
|
}, [l, d]), /* @__PURE__ */ i.jsxs(_e, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
@@ -4032,12 +4032,14 @@ function Tl({
|
|
|
4032
4032
|
r ? /* @__PURE__ */ i.jsx(ee.Body, { children: /* @__PURE__ */ i.jsx(ee.Row, { children: /* @__PURE__ */ i.jsx(ee.Cell, { colSpan: O.length + (c ? 1 : 0), children: /* @__PURE__ */ i.jsx(
|
|
4033
4033
|
_e,
|
|
4034
4034
|
{
|
|
4035
|
+
position: "absolute",
|
|
4036
|
+
inset: 0,
|
|
4035
4037
|
display: "flex",
|
|
4036
4038
|
alignItems: "center",
|
|
4037
4039
|
justifyContent: "center",
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
children: o ??
|
|
4040
|
+
zIndex: 10,
|
|
4041
|
+
bg: "whiteAlpha.600",
|
|
4042
|
+
children: o ?? /* @__PURE__ */ i.jsx(Rr, {})
|
|
4041
4043
|
}
|
|
4042
4044
|
) }) }) }) : s ? /* @__PURE__ */ i.jsx(Ya, { rows: u, columns: n.length + (c ? 2 : 0) }) : M.length === 0 ? /* @__PURE__ */ i.jsx(ee.Body, { children: /* @__PURE__ */ i.jsx(ee.Row, { children: /* @__PURE__ */ i.jsx(ee.Cell, { colSpan: n.length + (c ? 1 : 0), children: /* @__PURE__ */ i.jsx(
|
|
4043
4045
|
_e,
|
|
@@ -4159,13 +4161,13 @@ function Qa({
|
|
|
4159
4161
|
}) {
|
|
4160
4162
|
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${Se(r)}${te}${Se(o)}` : r ? Se(r) : ""), [c, l] = oe(!1), u = G(null);
|
|
4161
4163
|
H(() => {
|
|
4162
|
-
const
|
|
4164
|
+
const p = (v) => {
|
|
4163
4165
|
v.ctrlKey && v.key === "d" && !v.shiftKey && !v.metaKey && (v.preventDefault(), u.current?.focus());
|
|
4164
4166
|
};
|
|
4165
|
-
return window.addEventListener("keydown",
|
|
4167
|
+
return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
|
|
4166
4168
|
}, []);
|
|
4167
|
-
const d = (
|
|
4168
|
-
let v =
|
|
4169
|
+
const d = (p) => {
|
|
4170
|
+
let v = p;
|
|
4169
4171
|
if (v.includes(te)) {
|
|
4170
4172
|
const [m, y = ""] = v.split(te);
|
|
4171
4173
|
v = `${ut(m.trim())}${te}${ut(
|
|
@@ -4178,13 +4180,13 @@ function Qa({
|
|
|
4178
4180
|
v = ut(v);
|
|
4179
4181
|
a(v);
|
|
4180
4182
|
}, f = () => {
|
|
4181
|
-
const
|
|
4182
|
-
if (!
|
|
4183
|
+
const p = s.trim();
|
|
4184
|
+
if (!p) {
|
|
4183
4185
|
t(void 0);
|
|
4184
4186
|
return;
|
|
4185
4187
|
}
|
|
4186
|
-
if (
|
|
4187
|
-
const [v, m = ""] =
|
|
4188
|
+
if (p.includes(te)) {
|
|
4189
|
+
const [v, m = ""] = p.split(te).map((C) => C.trim()), y = lt(v), E = m ? lt(m) : null;
|
|
4188
4190
|
if (y && E) {
|
|
4189
4191
|
const [C, O] = E < y ? [E, y] : [y, E], M = `${Se(C)}${te}${Se(
|
|
4190
4192
|
O
|
|
@@ -4200,12 +4202,12 @@ function Qa({
|
|
|
4200
4202
|
} else
|
|
4201
4203
|
a(""), t(void 0);
|
|
4202
4204
|
} else {
|
|
4203
|
-
const v = lt(
|
|
4205
|
+
const v = lt(p);
|
|
4204
4206
|
v ? (a(`${Se(v)}${te}`), t(void 0)) : (a(""), t(void 0));
|
|
4205
4207
|
}
|
|
4206
|
-
}, b = (
|
|
4207
|
-
if (
|
|
4208
|
-
|
|
4208
|
+
}, b = (p) => {
|
|
4209
|
+
if (p.key !== "Enter") return;
|
|
4210
|
+
p.preventDefault();
|
|
4209
4211
|
const v = u.current?.selectionStart || 0, m = s.indexOf(te);
|
|
4210
4212
|
if (!s.trim()) {
|
|
4211
4213
|
a(`${br()}${te}`);
|
|
@@ -4232,7 +4234,7 @@ function Qa({
|
|
|
4232
4234
|
}, h = () => {
|
|
4233
4235
|
a(""), t(void 0);
|
|
4234
4236
|
};
|
|
4235
|
-
return /* @__PURE__ */ i.jsx(
|
|
4237
|
+
return /* @__PURE__ */ i.jsx(Er, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Hn, { position: "revert", children: [
|
|
4236
4238
|
/* @__PURE__ */ i.jsxs(
|
|
4237
4239
|
qa,
|
|
4238
4240
|
{
|
|
@@ -4247,12 +4249,12 @@ function Qa({
|
|
|
4247
4249
|
size: "sm",
|
|
4248
4250
|
variant: "ghost",
|
|
4249
4251
|
"aria-label": "Date range help",
|
|
4250
|
-
onClick: () => l((
|
|
4252
|
+
onClick: () => l((p) => !p),
|
|
4251
4253
|
children: /* @__PURE__ */ i.jsx(vr, { size: 16 })
|
|
4252
4254
|
}
|
|
4253
4255
|
) }),
|
|
4254
4256
|
/* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Za, { children: /* @__PURE__ */ i.jsxs(Ka, { p: 4, children: [
|
|
4255
|
-
/* @__PURE__ */ i.jsx(
|
|
4257
|
+
/* @__PURE__ */ i.jsx(So, {}),
|
|
4256
4258
|
/* @__PURE__ */ i.jsxs(Ae, { align: "start", gap: 4, children: [
|
|
4257
4259
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4258
4260
|
/* @__PURE__ */ i.jsx(vr, { size: 16 }),
|
|
@@ -4294,7 +4296,7 @@ function Qa({
|
|
|
4294
4296
|
value: s,
|
|
4295
4297
|
size: "sm",
|
|
4296
4298
|
disabled: n,
|
|
4297
|
-
onChange: (
|
|
4299
|
+
onChange: (p) => d(p.target.value),
|
|
4298
4300
|
onBlur: f,
|
|
4299
4301
|
onKeyDown: b,
|
|
4300
4302
|
pr: s ? "10" : void 0,
|
|
@@ -4329,7 +4331,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4329
4331
|
visible: b
|
|
4330
4332
|
}) => /* @__PURE__ */ i.jsxs(ec, { width: a, children: [
|
|
4331
4333
|
b && /* @__PURE__ */ i.jsx(tc, { children: c }),
|
|
4332
|
-
/* @__PURE__ */ i.jsx(
|
|
4334
|
+
/* @__PURE__ */ i.jsx(Er, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4333
4335
|
Cn,
|
|
4334
4336
|
{
|
|
4335
4337
|
value: t,
|
|
@@ -4343,7 +4345,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4343
4345
|
) }),
|
|
4344
4346
|
f && /* @__PURE__ */ i.jsx(rc, { fontSize: "xs", children: f }),
|
|
4345
4347
|
l && /* @__PURE__ */ i.jsx(nc, { fontSize: "xs", children: l })
|
|
4346
|
-
] }), oc = x(Be.Root), sc = x(Be.HelperText), ic = x(Be.ErrorText), ac = x(J.Root), cc = x(J.Label), lc = x(J.Control), uc = x(J.Trigger), dc = x(J.ValueText), fc = x(J.IndicatorGroup), hc = x(J.Indicator),
|
|
4348
|
+
] }), oc = x(Be.Root), sc = x(Be.HelperText), ic = x(Be.ErrorText), ac = x(J.Root), cc = x(J.Label), lc = x(J.Control), uc = x(J.Trigger), dc = x(J.ValueText), fc = x(J.IndicatorGroup), hc = x(J.Indicator), pc = x(J.Content), gc = x(J.Item), vc = x(J.ItemIndicator), mc = x(J.HiddenSelect), bc = x(J.Positioner), xc = ({
|
|
4347
4349
|
options: e = [],
|
|
4348
4350
|
label: t,
|
|
4349
4351
|
value: n,
|
|
@@ -4370,7 +4372,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4370
4372
|
size: s,
|
|
4371
4373
|
width: a,
|
|
4372
4374
|
value: n ? [n] : [],
|
|
4373
|
-
onValueChange: (
|
|
4375
|
+
onValueChange: (p) => r?.(p.value[0]),
|
|
4374
4376
|
children: [
|
|
4375
4377
|
/* @__PURE__ */ i.jsx(mc, {}),
|
|
4376
4378
|
b && /* @__PURE__ */ i.jsx(cc, { children: t }),
|
|
@@ -4378,24 +4380,24 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4378
4380
|
/* @__PURE__ */ i.jsx(uc, { children: /* @__PURE__ */ i.jsx(dc, { placeholder: o }) }),
|
|
4379
4381
|
/* @__PURE__ */ i.jsx(fc, { children: /* @__PURE__ */ i.jsx(hc, {}) })
|
|
4380
4382
|
] }),
|
|
4381
|
-
/* @__PURE__ */ i.jsx(bc, { children: /* @__PURE__ */ i.jsx(
|
|
4382
|
-
|
|
4383
|
+
/* @__PURE__ */ i.jsx(bc, { children: /* @__PURE__ */ i.jsx(pc, { children: h.items.map((p) => /* @__PURE__ */ i.jsxs(gc, { item: p, children: [
|
|
4384
|
+
p.label,
|
|
4383
4385
|
/* @__PURE__ */ i.jsx(vc, {})
|
|
4384
|
-
] },
|
|
4386
|
+
] }, p.value)) }) })
|
|
4385
4387
|
]
|
|
4386
4388
|
}
|
|
4387
4389
|
),
|
|
4388
4390
|
l && /* @__PURE__ */ i.jsx(sc, { children: l }),
|
|
4389
4391
|
f && /* @__PURE__ */ i.jsx(ic, { children: f })
|
|
4390
4392
|
] });
|
|
4391
|
-
},
|
|
4393
|
+
}, io = (e = "default") => `FILTER_PRESETS_${e}`, yc = (e) => {
|
|
4392
4394
|
if (!e) return [];
|
|
4393
4395
|
try {
|
|
4394
4396
|
return JSON.parse(e);
|
|
4395
4397
|
} catch {
|
|
4396
4398
|
return [];
|
|
4397
4399
|
}
|
|
4398
|
-
}, wc = (e) => typeof window > "u" ? [] : yc(localStorage.getItem(
|
|
4400
|
+
}, wc = (e) => typeof window > "u" ? [] : yc(localStorage.getItem(io(e))), Wt = new Mr({}), Zt = (e) => {
|
|
4399
4401
|
const t = Wt.state;
|
|
4400
4402
|
if (e in t)
|
|
4401
4403
|
return t[e];
|
|
@@ -4408,7 +4410,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4408
4410
|
Wt.setState((n) => ({
|
|
4409
4411
|
...n,
|
|
4410
4412
|
[e]: t
|
|
4411
|
-
})), typeof window < "u" && localStorage.setItem(
|
|
4413
|
+
})), typeof window < "u" && localStorage.setItem(io(e), JSON.stringify(t));
|
|
4412
4414
|
}, Sc = (e, t) => {
|
|
4413
4415
|
const n = [t, ...Zt(e)];
|
|
4414
4416
|
kn(e, n);
|
|
@@ -4421,7 +4423,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4421
4423
|
);
|
|
4422
4424
|
kn(e, r);
|
|
4423
4425
|
}, Cc = x(je.Root), jc = x(je.HiddenInput), Rc = x(je.Control), Ec = x(bt.Root), _c = x(bt.Track), Tc = x(bt.Range), Oc = x(bt.Thumbs), Mc = x(bt.Control), $c = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4424
|
-
const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } =
|
|
4426
|
+
const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = to({
|
|
4425
4427
|
id: e.id
|
|
4426
4428
|
}), l = {
|
|
4427
4429
|
transform: Ze.Transform.toString(a),
|
|
@@ -4441,7 +4443,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4441
4443
|
bg: "white",
|
|
4442
4444
|
children: [
|
|
4443
4445
|
/* @__PURE__ */ i.jsxs(fe, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4444
|
-
/* @__PURE__ */ i.jsx(
|
|
4446
|
+
/* @__PURE__ */ i.jsx(ro, { size: 16 }),
|
|
4445
4447
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4446
4448
|
] }),
|
|
4447
4449
|
/* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
@@ -4479,7 +4481,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4479
4481
|
]
|
|
4480
4482
|
}
|
|
4481
4483
|
);
|
|
4482
|
-
}, Ic = x($e.Root), kc = x($e.Trigger), Ac = x($e.Backdrop), Lc = x($e.Positioner), Nc = x($e.Content), zc = x($e.Header), Pc = x($e.Title), Yc = x($e.Body), Fc = x($e.Footer), Vc = x($e.CloseTrigger), Hc = x(Gt.Root), Wc = x(Gt.List), hn = x(Gt.Trigger),
|
|
4484
|
+
}, Ic = x($e.Root), kc = x($e.Trigger), Ac = x($e.Backdrop), Lc = x($e.Positioner), Nc = x($e.Content), zc = x($e.Header), Pc = x($e.Title), Yc = x($e.Body), Fc = x($e.Footer), Vc = x($e.CloseTrigger), Hc = x(Gt.Root), Wc = x(Gt.List), hn = x(Gt.Trigger), pn = x(Gt.Content), ao = (e, t) => {
|
|
4483
4485
|
if (e.customComponent)
|
|
4484
4486
|
return e.customComponent;
|
|
4485
4487
|
switch (e.type) {
|
|
@@ -4541,12 +4543,12 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4541
4543
|
onOpenChange: d
|
|
4542
4544
|
}) => {
|
|
4543
4545
|
const b = xt(Wt)[s] ?? Zt(s), h = () => {
|
|
4544
|
-
const
|
|
4545
|
-
if (!
|
|
4546
|
+
const p = prompt("Preset name?");
|
|
4547
|
+
if (!p) return;
|
|
4546
4548
|
const v = o.reduce((m, y) => (m[y.id] = y.value, m), {});
|
|
4547
4549
|
Sc(s, {
|
|
4548
4550
|
id: crypto.randomUUID(),
|
|
4549
|
-
name:
|
|
4551
|
+
name: p,
|
|
4550
4552
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4551
4553
|
values: v
|
|
4552
4554
|
});
|
|
@@ -4575,76 +4577,76 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4575
4577
|
"Presets"
|
|
4576
4578
|
] })
|
|
4577
4579
|
] }),
|
|
4578
|
-
/* @__PURE__ */ i.jsx(
|
|
4580
|
+
/* @__PURE__ */ i.jsx(pn, { value: "view", children: o.filter((p) => p.visible).map((p) => /* @__PURE__ */ i.jsx(
|
|
4579
4581
|
Ae,
|
|
4580
4582
|
{
|
|
4581
4583
|
align: "stretch",
|
|
4582
4584
|
border: "1px solid",
|
|
4583
4585
|
borderColor: "gray.200",
|
|
4584
|
-
flex:
|
|
4585
|
-
minW: `${(
|
|
4586
|
+
flex: p.size ?? 1,
|
|
4587
|
+
minW: `${(p.size ?? 1) * 100}px`,
|
|
4586
4588
|
rounded: "md",
|
|
4587
4589
|
p: 3,
|
|
4588
4590
|
mb: 3,
|
|
4589
|
-
children:
|
|
4591
|
+
children: ao(p, u)
|
|
4590
4592
|
},
|
|
4591
|
-
|
|
4593
|
+
p.id
|
|
4592
4594
|
)) }),
|
|
4593
|
-
/* @__PURE__ */ i.jsx(
|
|
4594
|
-
|
|
4595
|
+
/* @__PURE__ */ i.jsx(pn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4596
|
+
qr,
|
|
4595
4597
|
{
|
|
4596
4598
|
sensors: ts(es($n)),
|
|
4597
|
-
collisionDetection:
|
|
4598
|
-
onDragEnd: ({ active:
|
|
4599
|
-
if (!v ||
|
|
4600
|
-
const m = o.findIndex((C) => C.id ===
|
|
4599
|
+
collisionDetection: Ar,
|
|
4600
|
+
onDragEnd: ({ active: p, over: v }) => {
|
|
4601
|
+
if (!v || p.id === v.id) return;
|
|
4602
|
+
const m = o.findIndex((C) => C.id === p.id), y = o.findIndex((C) => C.id === v.id), E = Kt(o, m, y);
|
|
4601
4603
|
l?.(E);
|
|
4602
4604
|
},
|
|
4603
4605
|
children: /* @__PURE__ */ i.jsx(
|
|
4604
|
-
|
|
4606
|
+
Qr,
|
|
4605
4607
|
{
|
|
4606
|
-
items: o.map((
|
|
4608
|
+
items: o.map((p) => p.id),
|
|
4607
4609
|
strategy: vi,
|
|
4608
|
-
children: o.map((
|
|
4610
|
+
children: o.map((p) => /* @__PURE__ */ i.jsx(
|
|
4609
4611
|
$c,
|
|
4610
4612
|
{
|
|
4611
|
-
filter:
|
|
4613
|
+
filter: p,
|
|
4612
4614
|
onVisibilityChange: t,
|
|
4613
4615
|
onSizeChange: n
|
|
4614
4616
|
},
|
|
4615
|
-
|
|
4617
|
+
p.id
|
|
4616
4618
|
))
|
|
4617
4619
|
}
|
|
4618
4620
|
)
|
|
4619
4621
|
}
|
|
4620
4622
|
) }),
|
|
4621
|
-
/* @__PURE__ */ i.jsx(
|
|
4623
|
+
/* @__PURE__ */ i.jsx(pn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ae, { align: "stretch", mb: 3, children: [
|
|
4622
4624
|
b.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4623
|
-
b.map((
|
|
4625
|
+
b.map((p) => /* @__PURE__ */ i.jsxs(
|
|
4624
4626
|
fe,
|
|
4625
4627
|
{
|
|
4626
4628
|
justify: "space-between",
|
|
4627
4629
|
border: "1px solid",
|
|
4628
|
-
borderColor: c ===
|
|
4630
|
+
borderColor: c === p.name ? "blue.300" : "gray.200",
|
|
4629
4631
|
rounded: "md",
|
|
4630
4632
|
p: 2,
|
|
4631
4633
|
children: [
|
|
4632
4634
|
/* @__PURE__ */ i.jsxs(Ae, { align: "start", gap: 0, children: [
|
|
4633
|
-
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children:
|
|
4634
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(
|
|
4635
|
+
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: p.name }),
|
|
4636
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(p.date).toLocaleDateString() })
|
|
4635
4637
|
] }),
|
|
4636
4638
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4637
4639
|
/* @__PURE__ */ i.jsx(
|
|
4638
|
-
|
|
4640
|
+
pt,
|
|
4639
4641
|
{
|
|
4640
4642
|
size: "xs",
|
|
4641
4643
|
variant: "ghost",
|
|
4642
4644
|
onClick: () => {
|
|
4643
4645
|
const v = o.map((m) => ({
|
|
4644
4646
|
...m,
|
|
4645
|
-
value:
|
|
4647
|
+
value: p.values[m.id] ?? m.value
|
|
4646
4648
|
}));
|
|
4647
|
-
a?.(v,
|
|
4649
|
+
a?.(v, p.name);
|
|
4648
4650
|
},
|
|
4649
4651
|
children: "Load"
|
|
4650
4652
|
}
|
|
@@ -4655,19 +4657,19 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4655
4657
|
size: "xs",
|
|
4656
4658
|
"aria-label": "Delete preset",
|
|
4657
4659
|
variant: "ghost",
|
|
4658
|
-
onClick: () => Dc(s,
|
|
4660
|
+
onClick: () => Dc(s, p.id),
|
|
4659
4661
|
children: /* @__PURE__ */ i.jsx(Gi, { size: 14 })
|
|
4660
4662
|
}
|
|
4661
4663
|
)
|
|
4662
4664
|
] })
|
|
4663
4665
|
]
|
|
4664
4666
|
},
|
|
4665
|
-
|
|
4667
|
+
p.id
|
|
4666
4668
|
)),
|
|
4667
|
-
/* @__PURE__ */ i.jsx(
|
|
4669
|
+
/* @__PURE__ */ i.jsx(pt, { size: "sm", colorScheme: "blue", onClick: h, children: "Save Current Filters" })
|
|
4668
4670
|
] }) })
|
|
4669
4671
|
] }) }),
|
|
4670
|
-
/* @__PURE__ */ i.jsx(Fc, { justify: "space-between", children: /* @__PURE__ */ i.jsx(Vc, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
4672
|
+
/* @__PURE__ */ i.jsx(Fc, { justify: "space-between", children: /* @__PURE__ */ i.jsx(Vc, { asChild: !0, children: /* @__PURE__ */ i.jsx(_r, {}) }) })
|
|
4671
4673
|
] }) })
|
|
4672
4674
|
] })
|
|
4673
4675
|
] }) });
|
|
@@ -4694,7 +4696,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4694
4696
|
flex: h.size ?? 1,
|
|
4695
4697
|
minW: `${(h.size ?? 1) * 100}px`,
|
|
4696
4698
|
alignItems: "center",
|
|
4697
|
-
children:
|
|
4699
|
+
children: ao(h)
|
|
4698
4700
|
},
|
|
4699
4701
|
h.id
|
|
4700
4702
|
)),
|
|
@@ -4741,7 +4743,7 @@ const ec = x(Be.Root), tc = x(Be.Label), nc = x(Be.HelperText), rc = x(Be.ErrorT
|
|
|
4741
4743
|
rounded: d,
|
|
4742
4744
|
type: f = "button"
|
|
4743
4745
|
}) => /* @__PURE__ */ i.jsx(
|
|
4744
|
-
|
|
4746
|
+
pt,
|
|
4745
4747
|
{
|
|
4746
4748
|
onClick: e,
|
|
4747
4749
|
size: t,
|
|
@@ -4775,12 +4777,12 @@ function Al({
|
|
|
4775
4777
|
onSelect: b,
|
|
4776
4778
|
// 🔑 SLOT PROPS
|
|
4777
4779
|
rootProps: h,
|
|
4778
|
-
inputProps:
|
|
4780
|
+
inputProps: p,
|
|
4779
4781
|
controlProps: v,
|
|
4780
4782
|
contentProps: m,
|
|
4781
4783
|
itemProps: y
|
|
4782
4784
|
}) {
|
|
4783
|
-
const [E, C] = oe(""), { collection: O, set: M } =
|
|
4785
|
+
const [E, C] = oe(""), { collection: O, set: M } = Do({
|
|
4784
4786
|
initialItems: o,
|
|
4785
4787
|
itemToString: s,
|
|
4786
4788
|
itemToValue: a
|
|
@@ -4813,14 +4815,14 @@ function Al({
|
|
|
4813
4815
|
children: [
|
|
4814
4816
|
e && /* @__PURE__ */ i.jsx(Uc, { children: e }),
|
|
4815
4817
|
/* @__PURE__ */ i.jsxs(Xc, { ...v, children: [
|
|
4816
|
-
/* @__PURE__ */ i.jsx(qc, { placeholder: d ?? "Type to search", ...
|
|
4818
|
+
/* @__PURE__ */ i.jsx(qc, { placeholder: d ?? "Type to search", ...p }),
|
|
4817
4819
|
/* @__PURE__ */ i.jsxs(Jc, { children: [
|
|
4818
4820
|
/* @__PURE__ */ i.jsx(Kc, {}),
|
|
4819
4821
|
/* @__PURE__ */ i.jsx(Zc, {})
|
|
4820
4822
|
] })
|
|
4821
4823
|
] }),
|
|
4822
4824
|
/* @__PURE__ */ i.jsx(Qc, { children: /* @__PURE__ */ i.jsx(el, { minW: "sm", ...m, children: l ? /* @__PURE__ */ i.jsxs(fe, { p: "2", children: [
|
|
4823
|
-
/* @__PURE__ */ i.jsx(
|
|
4825
|
+
/* @__PURE__ */ i.jsx(Rr, { size: "xs", borderWidth: "1px" }),
|
|
4824
4826
|
/* @__PURE__ */ i.jsx(Bn, { children: "Loading..." })
|
|
4825
4827
|
] }) : u ? /* @__PURE__ */ i.jsx(Bn, { p: "2", color: "fg.error", children: "Error fetching" }) : O.items.map((T) => /* @__PURE__ */ i.jsxs(De.Item, { item: T, ...y, children: [
|
|
4826
4828
|
c(T),
|
|
@@ -4844,49 +4846,58 @@ function Ll({
|
|
|
4844
4846
|
const [l, u] = oe("");
|
|
4845
4847
|
return /* @__PURE__ */ i.jsx(tl, { open: e, placement: "center", onOpenChange: (d) => !d.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
|
|
4846
4848
|
/* @__PURE__ */ i.jsx(nl, {}),
|
|
4847
|
-
/* @__PURE__ */ i.jsx(rl, { children: /* @__PURE__ */ i.jsxs(ol, { maxW: "
|
|
4848
|
-
/* @__PURE__ */ i.jsx(sl, { borderBottom: "1px solid", borderColor: "
|
|
4849
|
-
/* @__PURE__ */ i.jsx(
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4849
|
+
/* @__PURE__ */ i.jsx(rl, { children: /* @__PURE__ */ i.jsxs(ol, { maxW: "550px", children: [
|
|
4850
|
+
/* @__PURE__ */ i.jsx(sl, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ i.jsx(cl, { color: "red.600", children: r }) }),
|
|
4851
|
+
/* @__PURE__ */ i.jsx(
|
|
4852
|
+
il,
|
|
4853
|
+
{
|
|
4854
|
+
p: 2,
|
|
4855
|
+
style: {
|
|
4856
|
+
padding: "16px"
|
|
4857
|
+
},
|
|
4858
|
+
children: /* @__PURE__ */ i.jsxs(vn, { gap: 4, borderRadius: "md", p: 4, bg: "white", children: [
|
|
4859
|
+
/* @__PURE__ */ i.jsx(_e, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(vn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4860
|
+
/* @__PURE__ */ i.jsx(_e, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(sa, { size: 20 }) }),
|
|
4861
|
+
/* @__PURE__ */ i.jsxs(_e, { children: [
|
|
4862
|
+
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
4863
|
+
/* @__PURE__ */ i.jsxs(q, { fontSize: "sm", color: "red.600", children: [
|
|
4864
|
+
"All the data of ",
|
|
4865
|
+
/* @__PURE__ */ i.jsx("b", { children: o }),
|
|
4866
|
+
" will permanently be deleted."
|
|
4867
|
+
] })
|
|
4868
|
+
] })
|
|
4869
|
+
] }) }),
|
|
4870
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
|
|
4871
|
+
/* @__PURE__ */ i.jsxs(_e, { children: [
|
|
4872
|
+
/* @__PURE__ */ i.jsxs(q, { fontSize: "sm", mb: 2, children: [
|
|
4873
|
+
"Type ",
|
|
4874
|
+
/* @__PURE__ */ i.jsx("b", { children: s }),
|
|
4875
|
+
" to continue"
|
|
4876
|
+
] }),
|
|
4877
|
+
/* @__PURE__ */ i.jsx(
|
|
4878
|
+
Cn,
|
|
4879
|
+
{
|
|
4880
|
+
placeholder: `Type ${s} here`,
|
|
4881
|
+
value: l,
|
|
4882
|
+
onChange: (d) => u(d.target.value),
|
|
4883
|
+
size: "xs"
|
|
4884
|
+
}
|
|
4885
|
+
)
|
|
4858
4886
|
] })
|
|
4859
4887
|
] })
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
/* @__PURE__ */ i.jsxs(_e, { children: [
|
|
4863
|
-
/* @__PURE__ */ i.jsxs(q, { fontSize: "sm", mb: 2, children: [
|
|
4864
|
-
"Type ",
|
|
4865
|
-
/* @__PURE__ */ i.jsx("b", { children: s }),
|
|
4866
|
-
" to continue"
|
|
4867
|
-
] }),
|
|
4868
|
-
/* @__PURE__ */ i.jsx(
|
|
4869
|
-
Cn,
|
|
4870
|
-
{
|
|
4871
|
-
placeholder: `Type ${s} here`,
|
|
4872
|
-
value: l,
|
|
4873
|
-
onChange: (d) => u(d.target.value),
|
|
4874
|
-
size: "xs"
|
|
4875
|
-
}
|
|
4876
|
-
)
|
|
4877
|
-
] })
|
|
4878
|
-
] }) }),
|
|
4888
|
+
}
|
|
4889
|
+
),
|
|
4879
4890
|
/* @__PURE__ */ i.jsxs(
|
|
4880
4891
|
al,
|
|
4881
4892
|
{
|
|
4882
4893
|
justifyContent: "flex-end",
|
|
4883
4894
|
gap: 2,
|
|
4884
4895
|
borderTop: "1px solid",
|
|
4885
|
-
borderColor: "
|
|
4896
|
+
borderColor: "#d3d3d3",
|
|
4886
4897
|
children: [
|
|
4887
|
-
/* @__PURE__ */ i.jsx(
|
|
4898
|
+
/* @__PURE__ */ i.jsx(pt, { variant: "outline", size: "sm", onClick: t, children: "Cancel" }),
|
|
4888
4899
|
/* @__PURE__ */ i.jsx(
|
|
4889
|
-
|
|
4900
|
+
pt,
|
|
4890
4901
|
{
|
|
4891
4902
|
size: "sm",
|
|
4892
4903
|
style: {
|
|
@@ -4900,7 +4911,7 @@ function Ll({
|
|
|
4900
4911
|
]
|
|
4901
4912
|
}
|
|
4902
4913
|
),
|
|
4903
|
-
/* @__PURE__ */ i.jsx(ll, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
4914
|
+
/* @__PURE__ */ i.jsx(ll, { asChild: !0, children: /* @__PURE__ */ i.jsx(_r, { size: "sm" }) })
|
|
4904
4915
|
] }) })
|
|
4905
4916
|
] }) });
|
|
4906
4917
|
}
|
|
@@ -4944,7 +4955,7 @@ function dl() {
|
|
|
4944
4955
|
(function(n, r) {
|
|
4945
4956
|
e.exports = r();
|
|
4946
4957
|
})(ul, (function() {
|
|
4947
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", d = "week", f = "month", b = "quarter", h = "year",
|
|
4958
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", d = "week", f = "month", b = "quarter", h = "year", p = "date", v = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { 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(I) {
|
|
4948
4959
|
var j = ["th", "st", "nd", "rd"], w = I % 100;
|
|
4949
4960
|
return "[" + I + (j[(w - 20) % 10] || j[w] || j[0]) + "]";
|
|
4950
4961
|
} }, C = function(I, j, w) {
|
|
@@ -4960,7 +4971,7 @@ function dl() {
|
|
|
4960
4971
|
}, a: function(I) {
|
|
4961
4972
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
|
4962
4973
|
}, p: function(I) {
|
|
4963
|
-
return { M: f, y: h, w: d, d: u, D:
|
|
4974
|
+
return { M: f, y: h, w: d, d: u, D: p, h: l, m: c, s: a, ms: s, Q: b }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
|
4964
4975
|
}, u: function(I) {
|
|
4965
4976
|
return I === void 0;
|
|
4966
4977
|
} }, M = "en", S = {};
|
|
@@ -4976,8 +4987,8 @@ function dl() {
|
|
|
4976
4987
|
var N = j.split("-");
|
|
4977
4988
|
if (!R && N.length > 1) return I(N[0]);
|
|
4978
4989
|
} else {
|
|
4979
|
-
var
|
|
4980
|
-
S[
|
|
4990
|
+
var g = j.name;
|
|
4991
|
+
S[g] = j, R = g;
|
|
4981
4992
|
}
|
|
4982
4993
|
return !_ && R && (M = R), R || !_ && M;
|
|
4983
4994
|
}, Y = function(I, j) {
|
|
@@ -5002,8 +5013,8 @@ function dl() {
|
|
|
5002
5013
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
|
5003
5014
|
var N = R.match(m);
|
|
5004
5015
|
if (N) {
|
|
5005
|
-
var
|
|
5006
|
-
return A ? new Date(Date.UTC(N[1],
|
|
5016
|
+
var g = N[2] - 1 || 0, D = (N[7] || "0").substring(0, 3);
|
|
5017
|
+
return A ? new Date(Date.UTC(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, D)) : new Date(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, D);
|
|
5007
5018
|
}
|
|
5008
5019
|
}
|
|
5009
5020
|
return new Date(R);
|
|
@@ -5029,7 +5040,7 @@ function dl() {
|
|
|
5029
5040
|
}, j.valueOf = function() {
|
|
5030
5041
|
return this.$d.getTime();
|
|
5031
5042
|
}, j.startOf = function(w, _) {
|
|
5032
|
-
var R = this, A = !!k.u(_) || _, N = k.p(w),
|
|
5043
|
+
var R = this, A = !!k.u(_) || _, N = k.p(w), g = function(Z, z) {
|
|
5033
5044
|
var he = k.w(R.$u ? Date.UTC(R.$y, z, Z) : new Date(R.$y, z, Z), R);
|
|
5034
5045
|
return A ? he : he.endOf(u);
|
|
5035
5046
|
}, D = function(Z, z) {
|
|
@@ -5037,14 +5048,14 @@ function dl() {
|
|
|
5037
5048
|
}, L = this.$W, P = this.$M, U = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
5038
5049
|
switch (N) {
|
|
5039
5050
|
case h:
|
|
5040
|
-
return A ?
|
|
5051
|
+
return A ? g(1, 0) : g(31, 11);
|
|
5041
5052
|
case f:
|
|
5042
|
-
return A ?
|
|
5053
|
+
return A ? g(1, P) : g(0, P + 1);
|
|
5043
5054
|
case d:
|
|
5044
5055
|
var V = this.$locale().weekStart || 0, K = (L < V ? L + 7 : L) - V;
|
|
5045
|
-
return
|
|
5056
|
+
return g(A ? U - K : U + (6 - K), P);
|
|
5046
5057
|
case u:
|
|
5047
|
-
case
|
|
5058
|
+
case p:
|
|
5048
5059
|
return D(X + "Hours", 0);
|
|
5049
5060
|
case l:
|
|
5050
5061
|
return D(X + "Minutes", 1);
|
|
@@ -5058,11 +5069,11 @@ function dl() {
|
|
|
5058
5069
|
}, j.endOf = function(w) {
|
|
5059
5070
|
return this.startOf(w, !1);
|
|
5060
5071
|
}, j.$set = function(w, _) {
|
|
5061
|
-
var R, A = k.p(w), N = "set" + (this.$u ? "UTC" : ""),
|
|
5072
|
+
var R, A = k.p(w), N = "set" + (this.$u ? "UTC" : ""), g = (R = {}, R[u] = N + "Date", R[p] = N + "Date", R[f] = N + "Month", R[h] = N + "FullYear", R[l] = N + "Hours", R[c] = N + "Minutes", R[a] = N + "Seconds", R[s] = N + "Milliseconds", R)[A], D = A === u ? this.$D + (_ - this.$W) : _;
|
|
5062
5073
|
if (A === f || A === h) {
|
|
5063
|
-
var L = this.clone().set(
|
|
5064
|
-
L.$d[
|
|
5065
|
-
} else
|
|
5074
|
+
var L = this.clone().set(p, 1);
|
|
5075
|
+
L.$d[g](D), L.init(), this.$d = L.set(p, Math.min(this.$D, L.daysInMonth())).$d;
|
|
5076
|
+
} else g && this.$d[g](D);
|
|
5066
5077
|
return this.init(), this;
|
|
5067
5078
|
}, j.set = function(w, _) {
|
|
5068
5079
|
return this.clone().$set(w, _);
|
|
@@ -5071,14 +5082,14 @@ function dl() {
|
|
|
5071
5082
|
}, j.add = function(w, _) {
|
|
5072
5083
|
var R, A = this;
|
|
5073
5084
|
w = Number(w);
|
|
5074
|
-
var N = k.p(_),
|
|
5085
|
+
var N = k.p(_), g = function(P) {
|
|
5075
5086
|
var U = Y(A);
|
|
5076
5087
|
return k.w(U.date(U.date() + Math.round(P * w)), A);
|
|
5077
5088
|
};
|
|
5078
5089
|
if (N === f) return this.set(f, this.$M + w);
|
|
5079
5090
|
if (N === h) return this.set(h, this.$y + w);
|
|
5080
|
-
if (N === u) return
|
|
5081
|
-
if (N === d) return
|
|
5091
|
+
if (N === u) return g(1);
|
|
5092
|
+
if (N === d) return g(7);
|
|
5082
5093
|
var D = (R = {}, R[c] = r, R[l] = o, R[a] = n, R)[N] || 1, L = this.$d.getTime() + w * D;
|
|
5083
5094
|
return k.w(L, this);
|
|
5084
5095
|
}, j.subtract = function(w, _) {
|
|
@@ -5086,10 +5097,10 @@ function dl() {
|
|
|
5086
5097
|
}, j.format = function(w) {
|
|
5087
5098
|
var _ = this, R = this.$locale();
|
|
5088
5099
|
if (!this.isValid()) return R.invalidDate || v;
|
|
5089
|
-
var A = w || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this),
|
|
5100
|
+
var A = w || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), g = this.$H, D = this.$m, L = this.$M, P = R.weekdays, U = R.months, X = R.meridiem, V = function(z, he, ce, we) {
|
|
5090
5101
|
return z && (z[he] || z(_, A)) || ce[he].slice(0, we);
|
|
5091
5102
|
}, K = function(z) {
|
|
5092
|
-
return k.s(
|
|
5103
|
+
return k.s(g % 12 || 12, z, "0");
|
|
5093
5104
|
}, Z = X || function(z, he, ce) {
|
|
5094
5105
|
var we = z < 12 ? "AM" : "PM";
|
|
5095
5106
|
return ce ? we.toLowerCase() : we;
|
|
@@ -5122,17 +5133,17 @@ function dl() {
|
|
|
5122
5133
|
case "dddd":
|
|
5123
5134
|
return P[_.$W];
|
|
5124
5135
|
case "H":
|
|
5125
|
-
return String(
|
|
5136
|
+
return String(g);
|
|
5126
5137
|
case "HH":
|
|
5127
|
-
return k.s(
|
|
5138
|
+
return k.s(g, 2, "0");
|
|
5128
5139
|
case "h":
|
|
5129
5140
|
return K(1);
|
|
5130
5141
|
case "hh":
|
|
5131
5142
|
return K(2);
|
|
5132
5143
|
case "a":
|
|
5133
|
-
return Z(
|
|
5144
|
+
return Z(g, D, !0);
|
|
5134
5145
|
case "A":
|
|
5135
|
-
return Z(
|
|
5146
|
+
return Z(g, D, !1);
|
|
5136
5147
|
case "m":
|
|
5137
5148
|
return String(D);
|
|
5138
5149
|
case "mm":
|
|
@@ -5152,10 +5163,10 @@ function dl() {
|
|
|
5152
5163
|
}, j.utcOffset = function() {
|
|
5153
5164
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5154
5165
|
}, j.diff = function(w, _, R) {
|
|
5155
|
-
var A, N = this,
|
|
5166
|
+
var A, N = this, g = k.p(_), D = Y(w), L = (D.utcOffset() - this.utcOffset()) * r, P = this - D, U = function() {
|
|
5156
5167
|
return k.m(N, D);
|
|
5157
5168
|
};
|
|
5158
|
-
switch (
|
|
5169
|
+
switch (g) {
|
|
5159
5170
|
case h:
|
|
5160
5171
|
A = U() / 12;
|
|
5161
5172
|
break;
|
|
@@ -5204,7 +5215,7 @@ function dl() {
|
|
|
5204
5215
|
return this.$d.toUTCString();
|
|
5205
5216
|
}, I;
|
|
5206
5217
|
})(), ie = Q.prototype;
|
|
5207
|
-
return Y.prototype = ie, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", f], ["$y", h], ["$D",
|
|
5218
|
+
return Y.prototype = ie, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", f], ["$y", h], ["$D", p]].forEach((function(I) {
|
|
5208
5219
|
ie[I[1]] = function(j) {
|
|
5209
5220
|
return this.$g(j, I[0], I[1]);
|
|
5210
5221
|
};
|
|
@@ -5219,7 +5230,7 @@ function dl() {
|
|
|
5219
5230
|
var fl = dl();
|
|
5220
5231
|
const Qt = /* @__PURE__ */ Ut(fl);
|
|
5221
5232
|
var At = { exports: {} }, hl = At.exports, wr;
|
|
5222
|
-
function
|
|
5233
|
+
function pl() {
|
|
5223
5234
|
return wr || (wr = 1, (function(e, t) {
|
|
5224
5235
|
(function(n, r) {
|
|
5225
5236
|
e.exports = r();
|
|
@@ -5231,11 +5242,11 @@ function gl() {
|
|
|
5231
5242
|
return s.fromToBase(u, d, f, b);
|
|
5232
5243
|
}
|
|
5233
5244
|
o.en.relativeTime = a, s.fromToBase = function(u, d, f, b, h) {
|
|
5234
|
-
for (var
|
|
5245
|
+
for (var p, v, m, y = f.$locale().relativeTime || a, E = 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" }], C = E.length, O = 0; O < C; O += 1) {
|
|
5235
5246
|
var M = E[O];
|
|
5236
|
-
M.d && (
|
|
5237
|
-
var S = (n.rounding || Math.round)(Math.abs(
|
|
5238
|
-
if (m =
|
|
5247
|
+
M.d && (p = b ? o(u).diff(f, M.d, !0) : f.diff(u, M.d, !0));
|
|
5248
|
+
var S = (n.rounding || Math.round)(Math.abs(p));
|
|
5249
|
+
if (m = p > 0, S <= M.r || !M.r) {
|
|
5239
5250
|
S <= 1 && O > 0 && (M = E[O - 1]);
|
|
5240
5251
|
var T = y[M.l];
|
|
5241
5252
|
h && (S = h("" + S)), v = typeof T == "string" ? T.replace("%d", S) : T(S, d, M.l, m);
|
|
@@ -5262,8 +5273,8 @@ function gl() {
|
|
|
5262
5273
|
}));
|
|
5263
5274
|
})(At)), At.exports;
|
|
5264
5275
|
}
|
|
5265
|
-
var
|
|
5266
|
-
const vl = /* @__PURE__ */ Ut(
|
|
5276
|
+
var gl = pl();
|
|
5277
|
+
const vl = /* @__PURE__ */ Ut(gl);
|
|
5267
5278
|
var Lt = { exports: {} }, ml = Lt.exports, Sr;
|
|
5268
5279
|
function bl() {
|
|
5269
5280
|
return Sr || (Sr = 1, (function(e, t) {
|
|
@@ -5276,9 +5287,9 @@ function bl() {
|
|
|
5276
5287
|
s.en.formats = n, a.format = function(l) {
|
|
5277
5288
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5278
5289
|
var u = this.$locale().formats, d = (function(f, b) {
|
|
5279
|
-
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(h,
|
|
5290
|
+
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(h, p, v) {
|
|
5280
5291
|
var m = v && v.toUpperCase();
|
|
5281
|
-
return
|
|
5292
|
+
return p || b[v] || n[v] || b[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(y, E, C) {
|
|
5282
5293
|
return E || C.slice(1);
|
|
5283
5294
|
}));
|
|
5284
5295
|
}));
|