@mdspl/mds-shared-ui 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +4 -2
- package/dist/index.js +632 -620
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as
|
|
1
|
+
import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as J, useState as K, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
|
|
2
2
|
import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as ae, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as no, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as ro, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as oo } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
|
|
4
4
|
var Ct = { exports: {} }, ot = {};
|
|
@@ -34,13 +34,13 @@ function ao() {
|
|
|
34
34
|
return p.$$typeof === L ? null : p.displayName || p.name || null;
|
|
35
35
|
if (typeof p == "string") return p;
|
|
36
36
|
switch (p) {
|
|
37
|
-
case
|
|
37
|
+
case b:
|
|
38
38
|
return "Fragment";
|
|
39
39
|
case w:
|
|
40
40
|
return "Profiler";
|
|
41
41
|
case x:
|
|
42
42
|
return "StrictMode";
|
|
43
|
-
case
|
|
43
|
+
case D:
|
|
44
44
|
return "Suspense";
|
|
45
45
|
case E:
|
|
46
46
|
return "SuspenseList";
|
|
@@ -51,21 +51,21 @@ function ao() {
|
|
|
51
51
|
switch (typeof p.tag == "number" && console.error(
|
|
52
52
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
53
53
|
), p.$$typeof) {
|
|
54
|
-
case
|
|
54
|
+
case d:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
56
|
+
case C:
|
|
57
57
|
return p.displayName || "Context";
|
|
58
58
|
case S:
|
|
59
59
|
return (p._context.displayName || "Context") + ".Consumer";
|
|
60
60
|
case j:
|
|
61
|
-
var
|
|
62
|
-
return p = p.displayName, p || (p =
|
|
61
|
+
var R = p.render;
|
|
62
|
+
return p = p.displayName, p || (p = R.displayName || R.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
|
|
63
63
|
case _:
|
|
64
|
-
return
|
|
64
|
+
return R = p.displayName || null, R !== null ? R : e(p.type) || "Memo";
|
|
65
65
|
case $:
|
|
66
|
-
|
|
66
|
+
R = p._payload, p = p._init;
|
|
67
67
|
try {
|
|
68
|
-
return e(p(
|
|
68
|
+
return e(p(R));
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -77,33 +77,33 @@ function ao() {
|
|
|
77
77
|
function n(p) {
|
|
78
78
|
try {
|
|
79
79
|
t(p);
|
|
80
|
-
var
|
|
80
|
+
var R = !1;
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
R = !0;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
var O =
|
|
84
|
+
if (R) {
|
|
85
|
+
R = console;
|
|
86
|
+
var O = R.error, k = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
|
|
87
87
|
return O.call(
|
|
88
|
-
|
|
88
|
+
R,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
90
|
k
|
|
91
91
|
), t(p);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function r(p) {
|
|
95
|
-
if (p ===
|
|
95
|
+
if (p === b) return "<>";
|
|
96
96
|
if (typeof p == "object" && p !== null && p.$$typeof === $)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var R = e(p);
|
|
100
|
+
return R ? "<" + R + ">" : "<...>";
|
|
101
101
|
} catch {
|
|
102
102
|
return "<...>";
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function o() {
|
|
106
|
-
var p =
|
|
106
|
+
var p = Z.A;
|
|
107
107
|
return p === null ? null : p.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function s() {
|
|
@@ -111,16 +111,16 @@ function ao() {
|
|
|
111
111
|
}
|
|
112
112
|
function i(p) {
|
|
113
113
|
if (ee.call(p, "key")) {
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
114
|
+
var R = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
115
|
+
if (R && R.isReactWarning) return !1;
|
|
116
116
|
}
|
|
117
117
|
return p.key !== void 0;
|
|
118
118
|
}
|
|
119
|
-
function l(p,
|
|
119
|
+
function l(p, R) {
|
|
120
120
|
function O() {
|
|
121
121
|
$e || ($e = !0, console.error(
|
|
122
122
|
"%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)",
|
|
123
|
-
|
|
123
|
+
R
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
126
|
O.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
@@ -134,12 +134,12 @@ function ao() {
|
|
|
134
134
|
"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."
|
|
135
135
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
136
136
|
}
|
|
137
|
-
function u(p,
|
|
137
|
+
function u(p, R, O, k, ve, X) {
|
|
138
138
|
var P = O.ref;
|
|
139
139
|
return p = {
|
|
140
|
-
$$typeof:
|
|
140
|
+
$$typeof: v,
|
|
141
141
|
type: p,
|
|
142
|
-
key:
|
|
142
|
+
key: R,
|
|
143
143
|
props: O,
|
|
144
144
|
_owner: k
|
|
145
145
|
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(p, "ref", {
|
|
@@ -167,25 +167,25 @@ function ao() {
|
|
|
167
167
|
value: X
|
|
168
168
|
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
var P =
|
|
170
|
+
function f(p, R, O, k, ve, X) {
|
|
171
|
+
var P = R.children;
|
|
172
172
|
if (P !== void 0)
|
|
173
173
|
if (k)
|
|
174
174
|
if (le(P)) {
|
|
175
175
|
for (k = 0; k < P.length; k++)
|
|
176
|
-
|
|
176
|
+
h(P[k]);
|
|
177
177
|
Object.freeze && Object.freeze(P);
|
|
178
178
|
} else
|
|
179
179
|
console.error(
|
|
180
180
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
181
|
);
|
|
182
|
-
else
|
|
183
|
-
if (ee.call(
|
|
182
|
+
else h(P);
|
|
183
|
+
if (ee.call(R, "key")) {
|
|
184
184
|
P = e(p);
|
|
185
|
-
var
|
|
185
|
+
var Q = Object.keys(R).filter(function(I) {
|
|
186
186
|
return I !== "key";
|
|
187
187
|
});
|
|
188
|
-
k = 0 <
|
|
188
|
+
k = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Oe[P + k] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
189
|
`A props object containing a "key" prop is being spread into JSX:
|
|
190
190
|
let props = %s;
|
|
191
191
|
<%s {...props} />
|
|
@@ -194,15 +194,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
194
194
|
<%s key={someKey} {...props} />`,
|
|
195
195
|
k,
|
|
196
196
|
P,
|
|
197
|
-
|
|
197
|
+
Q,
|
|
198
198
|
P
|
|
199
199
|
), Oe[P + k] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (P = null, O !== void 0 && (n(O), P = "" + O), i(
|
|
201
|
+
if (P = null, O !== void 0 && (n(O), P = "" + O), i(R) && (n(R.key), P = "" + R.key), "key" in R) {
|
|
202
202
|
O = {};
|
|
203
|
-
for (var re in
|
|
204
|
-
re !== "key" && (O[re] =
|
|
205
|
-
} else O =
|
|
203
|
+
for (var re in R)
|
|
204
|
+
re !== "key" && (O[re] = R[re]);
|
|
205
|
+
} else O = R;
|
|
206
206
|
return P && l(
|
|
207
207
|
O,
|
|
208
208
|
typeof p == "function" ? p.displayName || p.name || "Unknown" : p
|
|
@@ -215,39 +215,39 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
X
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
218
|
+
function h(p) {
|
|
219
|
+
m(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === $ && (p._payload.status === "fulfilled" ? m(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
return typeof p == "object" && p !== null && p.$$typeof ===
|
|
221
|
+
function m(p) {
|
|
222
|
+
return typeof p == "object" && p !== null && p.$$typeof === v;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var g = H, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, le = Array.isArray, Re = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
g = {
|
|
228
228
|
react_stack_bottom_frame: function(p) {
|
|
229
229
|
return p();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var $e, G = {}, Pe =
|
|
233
|
-
|
|
232
|
+
var $e, G = {}, Pe = g.react_stack_bottom_frame.bind(
|
|
233
|
+
g,
|
|
234
234
|
s
|
|
235
235
|
)(), ce = Re(r(s)), Oe = {};
|
|
236
|
-
st.Fragment =
|
|
237
|
-
var k = 1e4 >
|
|
238
|
-
return
|
|
236
|
+
st.Fragment = b, st.jsx = function(p, R, O) {
|
|
237
|
+
var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return f(
|
|
239
239
|
p,
|
|
240
|
-
|
|
240
|
+
R,
|
|
241
241
|
O,
|
|
242
242
|
!1,
|
|
243
243
|
k ? Error("react-stack-top-frame") : Pe,
|
|
244
244
|
k ? Re(r(p)) : ce
|
|
245
245
|
);
|
|
246
|
-
}, st.jsxs = function(p,
|
|
247
|
-
var k = 1e4 >
|
|
248
|
-
return
|
|
246
|
+
}, st.jsxs = function(p, R, O) {
|
|
247
|
+
var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
248
|
+
return f(
|
|
249
249
|
p,
|
|
250
|
-
|
|
250
|
+
R,
|
|
251
251
|
O,
|
|
252
252
|
!0,
|
|
253
253
|
k ? Error("react-stack-top-frame") : Pe,
|
|
@@ -266,94 +266,94 @@ function co() {
|
|
|
266
266
|
if ($n) return qt;
|
|
267
267
|
$n = 1;
|
|
268
268
|
var e = H;
|
|
269
|
-
function t(
|
|
270
|
-
return
|
|
269
|
+
function t(h, m) {
|
|
270
|
+
return h === m && (h !== 0 || 1 / h === 1 / m) || h !== h && m !== m;
|
|
271
271
|
}
|
|
272
272
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, i = e.useDebugValue;
|
|
273
|
-
function l(
|
|
274
|
-
var
|
|
273
|
+
function l(h, m) {
|
|
274
|
+
var g = m(), v = r({ inst: { value: g, getSnapshot: m } }), d = v[0].inst, b = v[1];
|
|
275
275
|
return s(
|
|
276
276
|
function() {
|
|
277
|
-
|
|
277
|
+
d.value = g, d.getSnapshot = m, c(d) && b({ inst: d });
|
|
278
278
|
},
|
|
279
|
-
[
|
|
279
|
+
[h, g, m]
|
|
280
280
|
), o(
|
|
281
281
|
function() {
|
|
282
|
-
return c(
|
|
283
|
-
c(
|
|
282
|
+
return c(d) && b({ inst: d }), h(function() {
|
|
283
|
+
c(d) && b({ inst: d });
|
|
284
284
|
});
|
|
285
285
|
},
|
|
286
|
-
[
|
|
287
|
-
), i(
|
|
286
|
+
[h]
|
|
287
|
+
), i(g), g;
|
|
288
288
|
}
|
|
289
|
-
function c(
|
|
290
|
-
var
|
|
291
|
-
|
|
289
|
+
function c(h) {
|
|
290
|
+
var m = h.getSnapshot;
|
|
291
|
+
h = h.value;
|
|
292
292
|
try {
|
|
293
|
-
var
|
|
294
|
-
return !n(
|
|
293
|
+
var g = m();
|
|
294
|
+
return !n(h, g);
|
|
295
295
|
} catch {
|
|
296
296
|
return !0;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function u(
|
|
300
|
-
return
|
|
299
|
+
function u(h, m) {
|
|
300
|
+
return m();
|
|
301
301
|
}
|
|
302
|
-
var
|
|
303
|
-
return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore :
|
|
302
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
|
|
303
|
+
return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, qt;
|
|
304
304
|
}
|
|
305
305
|
var Kt = {};
|
|
306
306
|
var Pn;
|
|
307
307
|
function uo() {
|
|
308
308
|
return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
309
|
-
function e(
|
|
310
|
-
return
|
|
309
|
+
function e(g, v) {
|
|
310
|
+
return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
|
|
311
311
|
}
|
|
312
|
-
function t(
|
|
313
|
-
|
|
312
|
+
function t(g, v) {
|
|
313
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
314
314
|
"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."
|
|
315
315
|
));
|
|
316
|
-
var
|
|
317
|
-
if (!
|
|
318
|
-
var
|
|
319
|
-
s(
|
|
316
|
+
var d = v();
|
|
317
|
+
if (!h) {
|
|
318
|
+
var b = v();
|
|
319
|
+
s(d, b) || (console.error(
|
|
320
320
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
321
|
-
),
|
|
321
|
+
), h = !0);
|
|
322
322
|
}
|
|
323
|
-
|
|
324
|
-
inst: { value:
|
|
323
|
+
b = i({
|
|
324
|
+
inst: { value: d, getSnapshot: v }
|
|
325
325
|
});
|
|
326
|
-
var x =
|
|
326
|
+
var x = b[0].inst, w = b[1];
|
|
327
327
|
return c(
|
|
328
328
|
function() {
|
|
329
|
-
x.value =
|
|
329
|
+
x.value = d, x.getSnapshot = v, n(x) && w({ inst: x });
|
|
330
330
|
},
|
|
331
|
-
[
|
|
331
|
+
[g, d, v]
|
|
332
332
|
), l(
|
|
333
333
|
function() {
|
|
334
|
-
return n(x) && w({ inst: x }),
|
|
334
|
+
return n(x) && w({ inst: x }), g(function() {
|
|
335
335
|
n(x) && w({ inst: x });
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
|
-
[
|
|
339
|
-
), u(
|
|
338
|
+
[g]
|
|
339
|
+
), u(d), d;
|
|
340
340
|
}
|
|
341
|
-
function n(
|
|
342
|
-
var
|
|
343
|
-
|
|
341
|
+
function n(g) {
|
|
342
|
+
var v = g.getSnapshot;
|
|
343
|
+
g = g.value;
|
|
344
344
|
try {
|
|
345
|
-
var
|
|
346
|
-
return !s(
|
|
345
|
+
var d = v();
|
|
346
|
+
return !s(g, d);
|
|
347
347
|
} catch {
|
|
348
348
|
return !0;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
function r(
|
|
352
|
-
return
|
|
351
|
+
function r(g, v) {
|
|
352
|
+
return v();
|
|
353
353
|
}
|
|
354
354
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
355
|
-
var o = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue,
|
|
356
|
-
Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore :
|
|
355
|
+
var o = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, h = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
356
|
+
Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
357
357
|
})()), Kt;
|
|
358
358
|
}
|
|
359
359
|
var zn;
|
|
@@ -365,102 +365,102 @@ function fo() {
|
|
|
365
365
|
if (Fn) return Xt;
|
|
366
366
|
Fn = 1;
|
|
367
367
|
var e = H, t = fr();
|
|
368
|
-
function n(u,
|
|
369
|
-
return u ===
|
|
368
|
+
function n(u, f) {
|
|
369
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
370
370
|
}
|
|
371
371
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, i = e.useEffect, l = e.useMemo, c = e.useDebugValue;
|
|
372
|
-
return Xt.useSyncExternalStoreWithSelector = function(u,
|
|
373
|
-
var
|
|
374
|
-
if (
|
|
375
|
-
var
|
|
376
|
-
|
|
377
|
-
} else
|
|
378
|
-
|
|
372
|
+
return Xt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
|
|
373
|
+
var v = s(null);
|
|
374
|
+
if (v.current === null) {
|
|
375
|
+
var d = { hasValue: !1, value: null };
|
|
376
|
+
v.current = d;
|
|
377
|
+
} else d = v.current;
|
|
378
|
+
v = l(
|
|
379
379
|
function() {
|
|
380
|
-
function x(
|
|
380
|
+
function x(D) {
|
|
381
381
|
if (!w) {
|
|
382
|
-
if (w = !0, S =
|
|
383
|
-
var E =
|
|
384
|
-
if (
|
|
385
|
-
return
|
|
382
|
+
if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
|
|
383
|
+
var E = d.value;
|
|
384
|
+
if (g(E, D))
|
|
385
|
+
return C = E;
|
|
386
386
|
}
|
|
387
|
-
return
|
|
387
|
+
return C = D;
|
|
388
388
|
}
|
|
389
|
-
if (E =
|
|
390
|
-
var _ =
|
|
391
|
-
return
|
|
389
|
+
if (E = C, r(S, D)) return E;
|
|
390
|
+
var _ = m(D);
|
|
391
|
+
return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
|
|
392
392
|
}
|
|
393
|
-
var w = !1, S,
|
|
393
|
+
var w = !1, S, C, j = h === void 0 ? null : h;
|
|
394
394
|
return [
|
|
395
395
|
function() {
|
|
396
|
-
return x(
|
|
396
|
+
return x(f());
|
|
397
397
|
},
|
|
398
398
|
j === null ? void 0 : function() {
|
|
399
399
|
return x(j());
|
|
400
400
|
}
|
|
401
401
|
];
|
|
402
402
|
},
|
|
403
|
-
[
|
|
403
|
+
[f, h, m, g]
|
|
404
404
|
);
|
|
405
|
-
var
|
|
405
|
+
var b = o(u, v[0], v[1]);
|
|
406
406
|
return i(
|
|
407
407
|
function() {
|
|
408
|
-
|
|
408
|
+
d.hasValue = !0, d.value = b;
|
|
409
409
|
},
|
|
410
|
-
[
|
|
411
|
-
), c(
|
|
410
|
+
[b]
|
|
411
|
+
), c(b), b;
|
|
412
412
|
}, Xt;
|
|
413
413
|
}
|
|
414
414
|
var Jt = {};
|
|
415
415
|
var Vn;
|
|
416
416
|
function ho() {
|
|
417
417
|
return Vn || (Vn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
418
|
-
function e(u,
|
|
419
|
-
return u ===
|
|
418
|
+
function e(u, f) {
|
|
419
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
420
420
|
}
|
|
421
421
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
422
422
|
var t = H, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
|
|
423
|
-
Jt.useSyncExternalStoreWithSelector = function(u,
|
|
424
|
-
var
|
|
425
|
-
if (
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
} else
|
|
429
|
-
|
|
423
|
+
Jt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
|
|
424
|
+
var v = s(null);
|
|
425
|
+
if (v.current === null) {
|
|
426
|
+
var d = { hasValue: !1, value: null };
|
|
427
|
+
v.current = d;
|
|
428
|
+
} else d = v.current;
|
|
429
|
+
v = l(
|
|
430
430
|
function() {
|
|
431
|
-
function x(
|
|
431
|
+
function x(D) {
|
|
432
432
|
if (!w) {
|
|
433
|
-
if (w = !0, S =
|
|
434
|
-
var E =
|
|
435
|
-
if (
|
|
436
|
-
return
|
|
433
|
+
if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
|
|
434
|
+
var E = d.value;
|
|
435
|
+
if (g(E, D))
|
|
436
|
+
return C = E;
|
|
437
437
|
}
|
|
438
|
-
return
|
|
438
|
+
return C = D;
|
|
439
439
|
}
|
|
440
|
-
if (E =
|
|
440
|
+
if (E = C, r(S, D))
|
|
441
441
|
return E;
|
|
442
|
-
var _ =
|
|
443
|
-
return
|
|
442
|
+
var _ = m(D);
|
|
443
|
+
return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
|
|
444
444
|
}
|
|
445
|
-
var w = !1, S,
|
|
445
|
+
var w = !1, S, C, j = h === void 0 ? null : h;
|
|
446
446
|
return [
|
|
447
447
|
function() {
|
|
448
|
-
return x(
|
|
448
|
+
return x(f());
|
|
449
449
|
},
|
|
450
450
|
j === null ? void 0 : function() {
|
|
451
451
|
return x(j());
|
|
452
452
|
}
|
|
453
453
|
];
|
|
454
454
|
},
|
|
455
|
-
[
|
|
455
|
+
[f, h, m, g]
|
|
456
456
|
);
|
|
457
|
-
var
|
|
457
|
+
var b = o(u, v[0], v[1]);
|
|
458
458
|
return i(
|
|
459
459
|
function() {
|
|
460
|
-
|
|
460
|
+
d.hasValue = !0, d.value = b;
|
|
461
461
|
},
|
|
462
|
-
[
|
|
463
|
-
), c(
|
|
462
|
+
[b]
|
|
463
|
+
), c(b), b;
|
|
464
464
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
465
465
|
})()), Jt;
|
|
466
466
|
}
|
|
@@ -633,16 +633,16 @@ function vn(e) {
|
|
|
633
633
|
const t = M(e);
|
|
634
634
|
return we(() => {
|
|
635
635
|
t.current = e;
|
|
636
|
-
}),
|
|
636
|
+
}), J(function() {
|
|
637
637
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
638
638
|
r[o] = arguments[o];
|
|
639
639
|
return t.current == null ? void 0 : t.current(...r);
|
|
640
640
|
}, []);
|
|
641
641
|
}
|
|
642
642
|
function Co() {
|
|
643
|
-
const e = M(null), t =
|
|
643
|
+
const e = M(null), t = J((r, o) => {
|
|
644
644
|
e.current = setInterval(r, o);
|
|
645
|
-
}, []), n =
|
|
645
|
+
}, []), n = J(() => {
|
|
646
646
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
647
647
|
}, []);
|
|
648
648
|
return [t, n];
|
|
@@ -666,7 +666,7 @@ function mt(e, t) {
|
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
668
|
function kt(e) {
|
|
669
|
-
const t = vn(e), n = M(null), r =
|
|
669
|
+
const t = vn(e), n = M(null), r = J(
|
|
670
670
|
(o) => {
|
|
671
671
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
672
672
|
},
|
|
@@ -697,8 +697,8 @@ function vr(e) {
|
|
|
697
697
|
return r.reduce((s, i) => {
|
|
698
698
|
const l = Object.entries(i);
|
|
699
699
|
for (const [c, u] of l) {
|
|
700
|
-
const
|
|
701
|
-
|
|
700
|
+
const f = s[c];
|
|
701
|
+
f != null && (s[c] = f + e * u);
|
|
702
702
|
}
|
|
703
703
|
return s;
|
|
704
704
|
}, {
|
|
@@ -838,9 +838,9 @@ function Oo(e) {
|
|
|
838
838
|
}, n);
|
|
839
839
|
}
|
|
840
840
|
function To() {
|
|
841
|
-
const [e, t] =
|
|
841
|
+
const [e, t] = K("");
|
|
842
842
|
return {
|
|
843
|
-
announce:
|
|
843
|
+
announce: J((r) => {
|
|
844
844
|
r != null && t(r);
|
|
845
845
|
}, []),
|
|
846
846
|
announcement: e
|
|
@@ -856,8 +856,8 @@ function Io(e) {
|
|
|
856
856
|
}, [e, t]);
|
|
857
857
|
}
|
|
858
858
|
function Ao() {
|
|
859
|
-
const [e] =
|
|
860
|
-
return [
|
|
859
|
+
const [e] = K(() => /* @__PURE__ */ new Set()), t = J((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
860
|
+
return [J((r) => {
|
|
861
861
|
let {
|
|
862
862
|
type: o,
|
|
863
863
|
event: s
|
|
@@ -912,68 +912,68 @@ function Mo(e) {
|
|
|
912
912
|
const {
|
|
913
913
|
announce: s,
|
|
914
914
|
announcement: i
|
|
915
|
-
} = To(), l = xt("DndLiveRegion"), [c, u] =
|
|
915
|
+
} = To(), l = xt("DndLiveRegion"), [c, u] = K(!1);
|
|
916
916
|
if (A(() => {
|
|
917
917
|
u(!0);
|
|
918
918
|
}, []), Io(N(() => ({
|
|
919
|
-
onDragStart(
|
|
919
|
+
onDragStart(h) {
|
|
920
920
|
let {
|
|
921
|
-
active:
|
|
922
|
-
} =
|
|
921
|
+
active: m
|
|
922
|
+
} = h;
|
|
923
923
|
s(t.onDragStart({
|
|
924
|
-
active:
|
|
924
|
+
active: m
|
|
925
925
|
}));
|
|
926
926
|
},
|
|
927
|
-
onDragMove(
|
|
927
|
+
onDragMove(h) {
|
|
928
928
|
let {
|
|
929
|
-
active:
|
|
930
|
-
over:
|
|
931
|
-
} =
|
|
929
|
+
active: m,
|
|
930
|
+
over: g
|
|
931
|
+
} = h;
|
|
932
932
|
t.onDragMove && s(t.onDragMove({
|
|
933
|
-
active:
|
|
934
|
-
over:
|
|
933
|
+
active: m,
|
|
934
|
+
over: g
|
|
935
935
|
}));
|
|
936
936
|
},
|
|
937
|
-
onDragOver(
|
|
937
|
+
onDragOver(h) {
|
|
938
938
|
let {
|
|
939
|
-
active:
|
|
940
|
-
over:
|
|
941
|
-
} =
|
|
939
|
+
active: m,
|
|
940
|
+
over: g
|
|
941
|
+
} = h;
|
|
942
942
|
s(t.onDragOver({
|
|
943
|
-
active:
|
|
944
|
-
over:
|
|
943
|
+
active: m,
|
|
944
|
+
over: g
|
|
945
945
|
}));
|
|
946
946
|
},
|
|
947
|
-
onDragEnd(
|
|
947
|
+
onDragEnd(h) {
|
|
948
948
|
let {
|
|
949
|
-
active:
|
|
950
|
-
over:
|
|
951
|
-
} =
|
|
949
|
+
active: m,
|
|
950
|
+
over: g
|
|
951
|
+
} = h;
|
|
952
952
|
s(t.onDragEnd({
|
|
953
|
-
active:
|
|
954
|
-
over:
|
|
953
|
+
active: m,
|
|
954
|
+
over: g
|
|
955
955
|
}));
|
|
956
956
|
},
|
|
957
|
-
onDragCancel(
|
|
957
|
+
onDragCancel(h) {
|
|
958
958
|
let {
|
|
959
|
-
active:
|
|
960
|
-
over:
|
|
961
|
-
} =
|
|
959
|
+
active: m,
|
|
960
|
+
over: g
|
|
961
|
+
} = h;
|
|
962
962
|
s(t.onDragCancel({
|
|
963
|
-
active:
|
|
964
|
-
over:
|
|
963
|
+
active: m,
|
|
964
|
+
over: g
|
|
965
965
|
}));
|
|
966
966
|
}
|
|
967
967
|
}), [s, t])), !c)
|
|
968
968
|
return null;
|
|
969
|
-
const
|
|
969
|
+
const f = H.createElement(H.Fragment, null, H.createElement(_o, {
|
|
970
970
|
id: r,
|
|
971
971
|
value: o.draggable
|
|
972
972
|
}), H.createElement(Oo, {
|
|
973
973
|
id: l,
|
|
974
974
|
announcement: i
|
|
975
975
|
}));
|
|
976
|
-
return n ? so(
|
|
976
|
+
return n ? so(f, n) : f;
|
|
977
977
|
}
|
|
978
978
|
var Y;
|
|
979
979
|
(function(e) {
|
|
@@ -1070,8 +1070,8 @@ const mr = (e) => {
|
|
|
1070
1070
|
function Yo(e, t) {
|
|
1071
1071
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), i = o - r, l = s - n;
|
|
1072
1072
|
if (r < o && n < s) {
|
|
1073
|
-
const c = t.width * t.height, u = e.width * e.height,
|
|
1074
|
-
return Number(
|
|
1073
|
+
const c = t.width * t.height, u = e.width * e.height, f = i * l, h = f / (c + u - f);
|
|
1074
|
+
return Number(h.toFixed(4));
|
|
1075
1075
|
}
|
|
1076
1076
|
return 0;
|
|
1077
1077
|
}
|
|
@@ -1157,13 +1157,13 @@ function Xo(e, t, n) {
|
|
|
1157
1157
|
scaleY: s,
|
|
1158
1158
|
x: i,
|
|
1159
1159
|
y: l
|
|
1160
|
-
} = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)),
|
|
1160
|
+
} = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, h = s ? e.height / s : e.height;
|
|
1161
1161
|
return {
|
|
1162
|
-
width:
|
|
1163
|
-
height:
|
|
1162
|
+
width: f,
|
|
1163
|
+
height: h,
|
|
1164
1164
|
top: u,
|
|
1165
|
-
right: c +
|
|
1166
|
-
bottom: u +
|
|
1165
|
+
right: c + f,
|
|
1166
|
+
bottom: u + h,
|
|
1167
1167
|
left: c
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
@@ -1176,9 +1176,9 @@ function Ze(e, t) {
|
|
|
1176
1176
|
if (t.ignoreTransform) {
|
|
1177
1177
|
const {
|
|
1178
1178
|
transform: u,
|
|
1179
|
-
transformOrigin:
|
|
1179
|
+
transformOrigin: f
|
|
1180
1180
|
} = te(e).getComputedStyle(e);
|
|
1181
|
-
u && (n = Xo(n, u,
|
|
1181
|
+
u && (n = Xo(n, u, f));
|
|
1182
1182
|
}
|
|
1183
1183
|
const {
|
|
1184
1184
|
top: r,
|
|
@@ -1301,22 +1301,22 @@ function es(e, t, n, r, o) {
|
|
|
1301
1301
|
r === void 0 && (r = 10), o === void 0 && (o = Qo);
|
|
1302
1302
|
const {
|
|
1303
1303
|
isTop: u,
|
|
1304
|
-
isBottom:
|
|
1305
|
-
isLeft:
|
|
1306
|
-
isRight:
|
|
1307
|
-
} = Rr(e),
|
|
1304
|
+
isBottom: f,
|
|
1305
|
+
isLeft: h,
|
|
1306
|
+
isRight: m
|
|
1307
|
+
} = Rr(e), g = {
|
|
1308
1308
|
x: 0,
|
|
1309
1309
|
y: 0
|
|
1310
|
-
},
|
|
1310
|
+
}, v = {
|
|
1311
1311
|
x: 0,
|
|
1312
1312
|
y: 0
|
|
1313
|
-
},
|
|
1313
|
+
}, d = {
|
|
1314
1314
|
height: t.height * o.y,
|
|
1315
1315
|
width: t.width * o.x
|
|
1316
1316
|
};
|
|
1317
|
-
return !u && s <= t.top +
|
|
1318
|
-
direction:
|
|
1319
|
-
speed:
|
|
1317
|
+
return !u && s <= t.top + d.height ? (g.y = B.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !f && c >= t.bottom - d.height && (g.y = B.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = B.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !h && i <= t.left + d.width && (g.x = B.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
|
|
1318
|
+
direction: g,
|
|
1319
|
+
speed: v
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
function ts(e) {
|
|
@@ -1384,8 +1384,8 @@ class xn {
|
|
|
1384
1384
|
for (const c of i)
|
|
1385
1385
|
Object.defineProperty(this, c, {
|
|
1386
1386
|
get: () => {
|
|
1387
|
-
const u = l(r),
|
|
1388
|
-
return this.rect[c] +
|
|
1387
|
+
const u = l(r), f = o[s] - u;
|
|
1388
|
+
return this.rect[c] + f;
|
|
1389
1389
|
},
|
|
1390
1390
|
enumerable: !0
|
|
1391
1391
|
});
|
|
@@ -1506,66 +1506,66 @@ class jr {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
const {
|
|
1508
1508
|
collisionRect: u
|
|
1509
|
-
} = r.current,
|
|
1509
|
+
} = r.current, f = u ? {
|
|
1510
1510
|
x: u.left,
|
|
1511
1511
|
y: u.top
|
|
1512
1512
|
} : ge;
|
|
1513
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1514
|
-
const
|
|
1513
|
+
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1514
|
+
const h = i(t, {
|
|
1515
1515
|
active: n,
|
|
1516
1516
|
context: r.current,
|
|
1517
|
-
currentCoordinates:
|
|
1517
|
+
currentCoordinates: f
|
|
1518
1518
|
});
|
|
1519
|
-
if (
|
|
1520
|
-
const
|
|
1519
|
+
if (h) {
|
|
1520
|
+
const m = Nt(h, f), g = {
|
|
1521
1521
|
x: 0,
|
|
1522
1522
|
y: 0
|
|
1523
1523
|
}, {
|
|
1524
|
-
scrollableAncestors:
|
|
1524
|
+
scrollableAncestors: v
|
|
1525
1525
|
} = r.current;
|
|
1526
|
-
for (const
|
|
1527
|
-
const
|
|
1526
|
+
for (const d of v) {
|
|
1527
|
+
const b = t.code, {
|
|
1528
1528
|
isTop: x,
|
|
1529
1529
|
isRight: w,
|
|
1530
1530
|
isLeft: S,
|
|
1531
|
-
isBottom:
|
|
1531
|
+
isBottom: C,
|
|
1532
1532
|
maxScroll: j,
|
|
1533
|
-
minScroll:
|
|
1534
|
-
} = Rr(
|
|
1535
|
-
x: Math.min(
|
|
1536
|
-
y: Math.min(
|
|
1537
|
-
}, $ =
|
|
1538
|
-
if ($ && _.x !==
|
|
1539
|
-
const L =
|
|
1540
|
-
if (
|
|
1541
|
-
|
|
1533
|
+
minScroll: D
|
|
1534
|
+
} = Rr(d), E = ts(d), _ = {
|
|
1535
|
+
x: Math.min(b === T.Right ? E.right - E.width / 2 : E.right, Math.max(b === T.Right ? E.left : E.left + E.width / 2, h.x)),
|
|
1536
|
+
y: Math.min(b === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(b === T.Down ? E.top : E.top + E.height / 2, h.y))
|
|
1537
|
+
}, $ = b === T.Right && !w || b === T.Left && !S, F = b === T.Down && !C || b === T.Up && !x;
|
|
1538
|
+
if ($ && _.x !== h.x) {
|
|
1539
|
+
const L = d.scrollLeft + m.x, Z = b === T.Right && L <= j.x || b === T.Left && L >= D.x;
|
|
1540
|
+
if (Z && !m.y) {
|
|
1541
|
+
d.scrollTo({
|
|
1542
1542
|
left: L,
|
|
1543
1543
|
behavior: l
|
|
1544
1544
|
});
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
|
-
|
|
1548
|
-
left: -
|
|
1547
|
+
Z ? g.x = d.scrollLeft - L : g.x = b === T.Right ? d.scrollLeft - j.x : d.scrollLeft - D.x, g.x && d.scrollBy({
|
|
1548
|
+
left: -g.x,
|
|
1549
1549
|
behavior: l
|
|
1550
1550
|
});
|
|
1551
1551
|
break;
|
|
1552
|
-
} else if (F && _.y !==
|
|
1553
|
-
const L =
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1552
|
+
} else if (F && _.y !== h.y) {
|
|
1553
|
+
const L = d.scrollTop + m.y, Z = b === T.Down && L <= j.y || b === T.Up && L >= D.y;
|
|
1554
|
+
if (Z && !m.x) {
|
|
1555
|
+
d.scrollTo({
|
|
1556
1556
|
top: L,
|
|
1557
1557
|
behavior: l
|
|
1558
1558
|
});
|
|
1559
1559
|
return;
|
|
1560
1560
|
}
|
|
1561
|
-
|
|
1562
|
-
top: -
|
|
1561
|
+
Z ? g.y = d.scrollTop - L : g.y = b === T.Down ? d.scrollTop - j.y : d.scrollTop - D.y, g.y && d.scrollBy({
|
|
1562
|
+
top: -g.y,
|
|
1563
1563
|
behavior: l
|
|
1564
1564
|
});
|
|
1565
1565
|
break;
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
this.handleMove(t, Xe(Nt(
|
|
1568
|
+
this.handleMove(t, Xe(Nt(h, this.referenceCoordinates), g));
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
@@ -1853,14 +1853,14 @@ function hs(e) {
|
|
|
1853
1853
|
order: l = Lt.TreeOrder,
|
|
1854
1854
|
pointerCoordinates: c,
|
|
1855
1855
|
scrollableAncestors: u,
|
|
1856
|
-
scrollableAncestorRects:
|
|
1857
|
-
delta:
|
|
1858
|
-
threshold:
|
|
1856
|
+
scrollableAncestorRects: f,
|
|
1857
|
+
delta: h,
|
|
1858
|
+
threshold: m
|
|
1859
1859
|
} = e;
|
|
1860
|
-
const
|
|
1861
|
-
delta:
|
|
1860
|
+
const g = ps({
|
|
1861
|
+
delta: h,
|
|
1862
1862
|
disabled: !s
|
|
1863
|
-
}), [
|
|
1863
|
+
}), [v, d] = Co(), b = M({
|
|
1864
1864
|
x: 0,
|
|
1865
1865
|
y: 0
|
|
1866
1866
|
}), x = M({
|
|
@@ -1878,62 +1878,62 @@ function hs(e) {
|
|
|
1878
1878
|
case ct.DraggableRect:
|
|
1879
1879
|
return o;
|
|
1880
1880
|
}
|
|
1881
|
-
}, [n, o, c]), S = M(null),
|
|
1882
|
-
const
|
|
1883
|
-
if (!
|
|
1881
|
+
}, [n, o, c]), S = M(null), C = J(() => {
|
|
1882
|
+
const D = S.current;
|
|
1883
|
+
if (!D)
|
|
1884
1884
|
return;
|
|
1885
|
-
const E =
|
|
1886
|
-
|
|
1885
|
+
const E = b.current.x * x.current.x, _ = b.current.y * x.current.y;
|
|
1886
|
+
D.scrollBy(E, _);
|
|
1887
1887
|
}, []), j = N(() => l === Lt.TreeOrder ? [...u].reverse() : u, [l, u]);
|
|
1888
1888
|
A(
|
|
1889
1889
|
() => {
|
|
1890
1890
|
if (!s || !u.length || !w) {
|
|
1891
|
-
|
|
1891
|
+
d();
|
|
1892
1892
|
return;
|
|
1893
1893
|
}
|
|
1894
|
-
for (const
|
|
1895
|
-
if (r?.(
|
|
1894
|
+
for (const D of j) {
|
|
1895
|
+
if (r?.(D) === !1)
|
|
1896
1896
|
continue;
|
|
1897
|
-
const E = u.indexOf(
|
|
1897
|
+
const E = u.indexOf(D), _ = f[E];
|
|
1898
1898
|
if (!_)
|
|
1899
1899
|
continue;
|
|
1900
1900
|
const {
|
|
1901
1901
|
direction: $,
|
|
1902
1902
|
speed: F
|
|
1903
|
-
} = es(
|
|
1903
|
+
} = es(D, _, w, t, m);
|
|
1904
1904
|
for (const L of ["x", "y"])
|
|
1905
|
-
|
|
1905
|
+
g[L][$[L]] || (F[L] = 0, $[L] = 0);
|
|
1906
1906
|
if (F.x > 0 || F.y > 0) {
|
|
1907
|
-
|
|
1907
|
+
d(), S.current = D, v(C, i), b.current = F, x.current = $;
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
b.current = {
|
|
1912
1912
|
x: 0,
|
|
1913
1913
|
y: 0
|
|
1914
1914
|
}, x.current = {
|
|
1915
1915
|
x: 0,
|
|
1916
1916
|
y: 0
|
|
1917
|
-
},
|
|
1917
|
+
}, d();
|
|
1918
1918
|
},
|
|
1919
1919
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1920
1920
|
[
|
|
1921
1921
|
t,
|
|
1922
|
-
|
|
1922
|
+
C,
|
|
1923
1923
|
r,
|
|
1924
|
-
|
|
1924
|
+
d,
|
|
1925
1925
|
s,
|
|
1926
1926
|
i,
|
|
1927
1927
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1928
1928
|
JSON.stringify(w),
|
|
1929
1929
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1930
|
-
JSON.stringify(
|
|
1931
|
-
|
|
1930
|
+
JSON.stringify(g),
|
|
1931
|
+
v,
|
|
1932
1932
|
u,
|
|
1933
1933
|
j,
|
|
1934
|
-
|
|
1934
|
+
f,
|
|
1935
1935
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1936
|
-
JSON.stringify(
|
|
1936
|
+
JSON.stringify(m)
|
|
1937
1937
|
]
|
|
1938
1938
|
);
|
|
1939
1939
|
}
|
|
@@ -2005,16 +2005,16 @@ function ms(e, t) {
|
|
|
2005
2005
|
dependencies: r,
|
|
2006
2006
|
config: o
|
|
2007
2007
|
} = t;
|
|
2008
|
-
const [s, i] =
|
|
2008
|
+
const [s, i] = K(null), {
|
|
2009
2009
|
frequency: l,
|
|
2010
2010
|
measure: c,
|
|
2011
2011
|
strategy: u
|
|
2012
|
-
} = o,
|
|
2013
|
-
x === void 0 && (x = []), !
|
|
2014
|
-
}, [
|
|
2015
|
-
if (
|
|
2012
|
+
} = o, f = M(e), h = b(), m = dt(h), g = J(function(x) {
|
|
2013
|
+
x === void 0 && (x = []), !m.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
|
|
2014
|
+
}, [m]), v = M(null), d = mt((x) => {
|
|
2015
|
+
if (h && !n)
|
|
2016
2016
|
return Jn;
|
|
2017
|
-
if (!x || x === Jn ||
|
|
2017
|
+
if (!x || x === Jn || f.current !== e || s != null) {
|
|
2018
2018
|
const w = /* @__PURE__ */ new Map();
|
|
2019
2019
|
for (let S of e) {
|
|
2020
2020
|
if (!S)
|
|
@@ -2023,21 +2023,21 @@ function ms(e, t) {
|
|
|
2023
2023
|
w.set(S.id, S.rect.current);
|
|
2024
2024
|
continue;
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2026
|
+
const C = S.node.current, j = C ? new xn(c(C), C) : null;
|
|
2027
2027
|
S.rect.current = j, j && w.set(S.id, j);
|
|
2028
2028
|
}
|
|
2029
2029
|
return w;
|
|
2030
2030
|
}
|
|
2031
2031
|
return x;
|
|
2032
|
-
}, [e, s, n,
|
|
2032
|
+
}, [e, s, n, h, c]);
|
|
2033
2033
|
return A(() => {
|
|
2034
|
-
|
|
2034
|
+
f.current = e;
|
|
2035
2035
|
}, [e]), A(
|
|
2036
2036
|
() => {
|
|
2037
|
-
|
|
2037
|
+
h || g();
|
|
2038
2038
|
},
|
|
2039
2039
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2040
|
-
[n,
|
|
2040
|
+
[n, h]
|
|
2041
2041
|
), A(
|
|
2042
2042
|
() => {
|
|
2043
2043
|
s && s.length > 0 && i(null);
|
|
@@ -2046,18 +2046,18 @@ function ms(e, t) {
|
|
|
2046
2046
|
[JSON.stringify(s)]
|
|
2047
2047
|
), A(
|
|
2048
2048
|
() => {
|
|
2049
|
-
|
|
2050
|
-
|
|
2049
|
+
h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
2050
|
+
g(), v.current = null;
|
|
2051
2051
|
}, l));
|
|
2052
2052
|
},
|
|
2053
2053
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2054
|
-
[l,
|
|
2054
|
+
[l, h, g, ...r]
|
|
2055
2055
|
), {
|
|
2056
|
-
droppableRects:
|
|
2057
|
-
measureDroppableContainers:
|
|
2056
|
+
droppableRects: d,
|
|
2057
|
+
measureDroppableContainers: g,
|
|
2058
2058
|
measuringScheduled: s != null
|
|
2059
2059
|
};
|
|
2060
|
-
function
|
|
2060
|
+
function b() {
|
|
2061
2061
|
switch (u) {
|
|
2062
2062
|
case ft.Always:
|
|
2063
2063
|
return !1;
|
|
@@ -2113,7 +2113,7 @@ function ws(e) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
function Zn(e, t, n) {
|
|
2115
2115
|
t === void 0 && (t = ws);
|
|
2116
|
-
const [r, o] =
|
|
2116
|
+
const [r, o] = K(null);
|
|
2117
2117
|
function s() {
|
|
2118
2118
|
o((c) => {
|
|
2119
2119
|
if (!e)
|
|
@@ -2122,8 +2122,8 @@ function Zn(e, t, n) {
|
|
|
2122
2122
|
var u;
|
|
2123
2123
|
return (u = c ?? n) != null ? u : null;
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2126
|
-
return JSON.stringify(c) === JSON.stringify(
|
|
2125
|
+
const f = t(e);
|
|
2126
|
+
return JSON.stringify(c) === JSON.stringify(f) ? c : f;
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
2129
2129
|
const i = ys({
|
|
@@ -2131,10 +2131,10 @@ function Zn(e, t, n) {
|
|
|
2131
2131
|
if (e)
|
|
2132
2132
|
for (const u of c) {
|
|
2133
2133
|
const {
|
|
2134
|
-
type:
|
|
2135
|
-
target:
|
|
2134
|
+
type: f,
|
|
2135
|
+
target: h
|
|
2136
2136
|
} = u;
|
|
2137
|
-
if (
|
|
2137
|
+
if (f === "childList" && h instanceof HTMLElement && h.contains(e)) {
|
|
2138
2138
|
s();
|
|
2139
2139
|
break;
|
|
2140
2140
|
}
|
|
@@ -2162,7 +2162,7 @@ function Cs(e) {
|
|
|
2162
2162
|
}, [e]), n;
|
|
2163
2163
|
}
|
|
2164
2164
|
function Rs(e) {
|
|
2165
|
-
const [t, n] =
|
|
2165
|
+
const [t, n] = K(null), r = M(e), o = J((s) => {
|
|
2166
2166
|
const i = en(s.target);
|
|
2167
2167
|
i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
|
|
2168
2168
|
}, []);
|
|
@@ -2246,7 +2246,7 @@ function Or(e) {
|
|
|
2246
2246
|
const tr = [];
|
|
2247
2247
|
function js(e, t) {
|
|
2248
2248
|
t === void 0 && (t = Ze);
|
|
2249
|
-
const [n] = e, r = Or(n ? te(n) : null), [o, s] =
|
|
2249
|
+
const [n] = e, r = Or(n ? te(n) : null), [o, s] = K(tr);
|
|
2250
2250
|
function i() {
|
|
2251
2251
|
s(() => e.length ? e.map((c) => Cr(c) ? r : new xn(t(c), c)) : tr);
|
|
2252
2252
|
}
|
|
@@ -2269,26 +2269,26 @@ function Os(e) {
|
|
|
2269
2269
|
let {
|
|
2270
2270
|
measure: t
|
|
2271
2271
|
} = e;
|
|
2272
|
-
const [n, r] =
|
|
2272
|
+
const [n, r] = K(null), o = J((u) => {
|
|
2273
2273
|
for (const {
|
|
2274
|
-
target:
|
|
2274
|
+
target: f
|
|
2275
2275
|
} of u)
|
|
2276
|
-
if (bt(
|
|
2277
|
-
r((
|
|
2278
|
-
const
|
|
2279
|
-
return
|
|
2280
|
-
...
|
|
2281
|
-
width:
|
|
2282
|
-
height:
|
|
2283
|
-
} :
|
|
2276
|
+
if (bt(f)) {
|
|
2277
|
+
r((h) => {
|
|
2278
|
+
const m = t(f);
|
|
2279
|
+
return h ? {
|
|
2280
|
+
...h,
|
|
2281
|
+
width: m.width,
|
|
2282
|
+
height: m.height
|
|
2283
|
+
} : m;
|
|
2284
2284
|
});
|
|
2285
2285
|
break;
|
|
2286
2286
|
}
|
|
2287
2287
|
}, [t]), s = Vt({
|
|
2288
2288
|
callback: o
|
|
2289
|
-
}), i =
|
|
2290
|
-
const
|
|
2291
|
-
s?.disconnect(),
|
|
2289
|
+
}), i = J((u) => {
|
|
2290
|
+
const f = _s(u);
|
|
2291
|
+
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
2292
2292
|
}, [t, s]), [l, c] = kt(i);
|
|
2293
2293
|
return N(() => ({
|
|
2294
2294
|
nodeRef: l,
|
|
@@ -2510,12 +2510,12 @@ function Ls(e) {
|
|
|
2510
2510
|
if (!c.current && !u.current)
|
|
2511
2511
|
return;
|
|
2512
2512
|
requestAnimationFrame(() => {
|
|
2513
|
-
for (const
|
|
2514
|
-
if (!
|
|
2513
|
+
for (const f of [c.current, u.current]) {
|
|
2514
|
+
if (!f)
|
|
2515
2515
|
continue;
|
|
2516
|
-
const
|
|
2517
|
-
if (
|
|
2518
|
-
|
|
2516
|
+
const h = Eo(f);
|
|
2517
|
+
if (h) {
|
|
2518
|
+
h.focus();
|
|
2519
2519
|
break;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
@@ -2577,12 +2577,12 @@ function zs(e) {
|
|
|
2577
2577
|
const u = t?.node.current;
|
|
2578
2578
|
if (!u || u.isConnected === !1)
|
|
2579
2579
|
return;
|
|
2580
|
-
const
|
|
2581
|
-
if (i || (
|
|
2582
|
-
const
|
|
2583
|
-
|
|
2584
|
-
top:
|
|
2585
|
-
left:
|
|
2580
|
+
const f = n(u), h = xr(f, r);
|
|
2581
|
+
if (i || (h.x = 0), l || (h.y = 0), s.current = !0, Math.abs(h.x) > 0 || Math.abs(h.y) > 0) {
|
|
2582
|
+
const m = yr(u);
|
|
2583
|
+
m && m.scrollBy({
|
|
2584
|
+
top: h.y,
|
|
2585
|
+
left: h.x
|
|
2586
2586
|
});
|
|
2587
2587
|
}
|
|
2588
2588
|
}, [t, i, l, r, n]);
|
|
@@ -2603,13 +2603,13 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2603
2603
|
accessibility: l,
|
|
2604
2604
|
autoScroll: c = !0,
|
|
2605
2605
|
children: u,
|
|
2606
|
-
sensors:
|
|
2607
|
-
collisionDetection:
|
|
2608
|
-
measuring:
|
|
2609
|
-
modifiers:
|
|
2610
|
-
...
|
|
2606
|
+
sensors: f = Ts,
|
|
2607
|
+
collisionDetection: h = Ho,
|
|
2608
|
+
measuring: m,
|
|
2609
|
+
modifiers: g,
|
|
2610
|
+
...v
|
|
2611
2611
|
} = t;
|
|
2612
|
-
const
|
|
2612
|
+
const d = to(Ms, void 0, Ns), [b, x] = d, [w, S] = Ao(), [C, j] = K(Me.Uninitialized), D = C === Me.Initialized, {
|
|
2613
2613
|
draggable: {
|
|
2614
2614
|
active: E,
|
|
2615
2615
|
nodes: _,
|
|
@@ -2618,7 +2618,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2618
2618
|
droppable: {
|
|
2619
2619
|
containers: F
|
|
2620
2620
|
}
|
|
2621
|
-
} =
|
|
2621
|
+
} = b, L = E != null ? _.get(E) : null, Z = M({
|
|
2622
2622
|
initial: null,
|
|
2623
2623
|
translated: null
|
|
2624
2624
|
}), ee = N(() => {
|
|
@@ -2627,24 +2627,24 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2627
2627
|
id: E,
|
|
2628
2628
|
// It's possible for the active node to unmount while dragging
|
|
2629
2629
|
data: (q = L?.data) != null ? q : Is,
|
|
2630
|
-
rect:
|
|
2630
|
+
rect: Z
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [E, L]), le = M(null), [Re, $e] =
|
|
2632
|
+
}, [E, L]), le = M(null), [Re, $e] = K(null), [G, Pe] = K(null), ce = dt(v, Object.values(v)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), R = Ps(m), {
|
|
2633
2633
|
droppableRects: O,
|
|
2634
2634
|
measureDroppableContainers: k,
|
|
2635
2635
|
measuringScheduled: ve
|
|
2636
2636
|
} = ms(p, {
|
|
2637
|
-
dragging:
|
|
2637
|
+
dragging: D,
|
|
2638
2638
|
dependencies: [$.x, $.y],
|
|
2639
|
-
config:
|
|
2640
|
-
}), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]),
|
|
2639
|
+
config: R.droppable
|
|
2640
|
+
}), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Q = Zr(), re = xs(X, R.draggable.measure);
|
|
2641
2641
|
zs({
|
|
2642
2642
|
activeNode: E != null ? _.get(E) : null,
|
|
2643
|
-
config:
|
|
2643
|
+
config: Q.layoutShiftCompensation,
|
|
2644
2644
|
initialRect: re,
|
|
2645
|
-
measure:
|
|
2645
|
+
measure: R.draggable.measure
|
|
2646
2646
|
});
|
|
2647
|
-
const I = Zn(X,
|
|
2647
|
+
const I = Zn(X, R.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
|
|
2648
2648
|
activatorEvent: null,
|
|
2649
2649
|
active: null,
|
|
2650
2650
|
activeNode: X,
|
|
@@ -2659,8 +2659,8 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2659
2659
|
scrollableAncestors: [],
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
2661
|
}), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = Os({
|
|
2662
|
-
measure:
|
|
2663
|
-
}), Ye = (r = De.nodeRef.current) != null ? r : X, He =
|
|
2662
|
+
measure: R.dragOverlay.measure
|
|
2663
|
+
}), Ye = (r = De.nodeRef.current) != null ? r : X, He = D ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = Ss(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Cs(D ? Ve ?? X : null), yt = js(Te), wt = $s(g, {
|
|
2664
2664
|
transform: {
|
|
2665
2665
|
x: $.x - Dn.x,
|
|
2666
2666
|
y: $.y - Dn.y,
|
|
@@ -2677,13 +2677,13 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2677
2677
|
scrollableAncestors: Te,
|
|
2678
2678
|
scrollableAncestorRects: yt,
|
|
2679
2679
|
windowRect: Bt
|
|
2680
|
-
}), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ?
|
|
2680
|
+
}), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ? h({
|
|
2681
2681
|
active: ee,
|
|
2682
2682
|
collisionRect: We,
|
|
2683
2683
|
droppableRects: O,
|
|
2684
2684
|
droppableContainers: p,
|
|
2685
2685
|
pointerCoordinates: En
|
|
2686
|
-
}) : null, _n = Vo(et, "id"), [Ie, On] =
|
|
2686
|
+
}) : null, _n = Vo(et, "id"), [Ie, On] = K(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Bo(Gr, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = J(
|
|
2687
2687
|
(q, oe) => {
|
|
2688
2688
|
let {
|
|
2689
2689
|
sensor: se,
|
|
@@ -2745,7 +2745,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2745
2745
|
active: {
|
|
2746
2746
|
id: ke,
|
|
2747
2747
|
data: xe.data,
|
|
2748
|
-
rect:
|
|
2748
|
+
rect: Z
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
2751
|
St(() => {
|
|
@@ -2808,7 +2808,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2808
2808
|
},
|
|
2809
2809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2810
2810
|
[_]
|
|
2811
|
-
), qr =
|
|
2811
|
+
), qr = J((q, oe) => (se, Ae) => {
|
|
2812
2812
|
const ue = se.nativeEvent, ie = _.get(Ae);
|
|
2813
2813
|
if (
|
|
2814
2814
|
// Another sensor is already instantiating
|
|
@@ -2823,10 +2823,10 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2823
2823
|
q(se, oe.options, me) === !0 && (ue.dndKit = {
|
|
2824
2824
|
capturedBy: oe.sensor
|
|
2825
2825
|
}, le.current = Ae, Tn(se, oe));
|
|
2826
|
-
}, [_, Tn]), In = bs(
|
|
2827
|
-
Ds(
|
|
2828
|
-
I &&
|
|
2829
|
-
}, [I,
|
|
2826
|
+
}, [_, Tn]), In = bs(f, qr);
|
|
2827
|
+
Ds(f), we(() => {
|
|
2828
|
+
I && C === Me.Initializing && j(Me.Initialized);
|
|
2829
|
+
}, [I, C]), A(
|
|
2830
2830
|
() => {
|
|
2831
2831
|
const {
|
|
2832
2832
|
onDragMove: q
|
|
@@ -2909,12 +2909,12 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2909
2909
|
over: Ie,
|
|
2910
2910
|
scrollableAncestors: Te,
|
|
2911
2911
|
scrollAdjustedTranslate: Be
|
|
2912
|
-
},
|
|
2912
|
+
}, Z.current = {
|
|
2913
2913
|
initial: He,
|
|
2914
2914
|
translated: We
|
|
2915
2915
|
};
|
|
2916
2916
|
}, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), hs({
|
|
2917
|
-
...
|
|
2917
|
+
...Q,
|
|
2918
2918
|
delta: $,
|
|
2919
2919
|
draggingRect: We,
|
|
2920
2920
|
pointerCoordinates: En,
|
|
@@ -2936,10 +2936,10 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2936
2936
|
measureDroppableContainers: k,
|
|
2937
2937
|
scrollableAncestors: Te,
|
|
2938
2938
|
scrollableAncestorRects: yt,
|
|
2939
|
-
measuringConfiguration:
|
|
2939
|
+
measuringConfiguration: R,
|
|
2940
2940
|
measuringScheduled: ve,
|
|
2941
2941
|
windowRect: Bt
|
|
2942
|
-
}), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt,
|
|
2942
|
+
}), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, R, ve, Bt]), Jr = N(() => ({
|
|
2943
2943
|
activatorEvent: G,
|
|
2944
2944
|
activators: In,
|
|
2945
2945
|
active: ee,
|
|
@@ -2967,7 +2967,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2967
2967
|
hiddenTextDescribedById: Oe
|
|
2968
2968
|
}));
|
|
2969
2969
|
function Zr() {
|
|
2970
|
-
const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se =
|
|
2970
|
+
const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = D && !q && !oe;
|
|
2971
2971
|
return typeof c == "object" ? {
|
|
2972
2972
|
...c,
|
|
2973
2973
|
enabled: se
|
|
@@ -2988,45 +2988,45 @@ function Ys(e) {
|
|
|
2988
2988
|
activatorEvent: l,
|
|
2989
2989
|
active: c,
|
|
2990
2990
|
activeNodeRect: u,
|
|
2991
|
-
ariaDescribedById:
|
|
2992
|
-
draggableNodes:
|
|
2993
|
-
over:
|
|
2991
|
+
ariaDescribedById: f,
|
|
2992
|
+
draggableNodes: h,
|
|
2993
|
+
over: m
|
|
2994
2994
|
} = ze(Yt), {
|
|
2995
|
-
role:
|
|
2996
|
-
roleDescription:
|
|
2997
|
-
tabIndex:
|
|
2998
|
-
} = o ?? {},
|
|
2995
|
+
role: g = nr,
|
|
2996
|
+
roleDescription: v = "draggable",
|
|
2997
|
+
tabIndex: d = 0
|
|
2998
|
+
} = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] = kt(), [C, j] = kt(), D = Es(i, t), E = dt(n);
|
|
2999
2999
|
we(
|
|
3000
|
-
() => (
|
|
3000
|
+
() => (h.set(t, {
|
|
3001
3001
|
id: t,
|
|
3002
3002
|
key: s,
|
|
3003
3003
|
node: w,
|
|
3004
|
-
activatorNode:
|
|
3004
|
+
activatorNode: C,
|
|
3005
3005
|
data: E
|
|
3006
3006
|
}), () => {
|
|
3007
|
-
const $ =
|
|
3008
|
-
$ && $.key === s &&
|
|
3007
|
+
const $ = h.get(t);
|
|
3008
|
+
$ && $.key === s && h.delete(t);
|
|
3009
3009
|
}),
|
|
3010
3010
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3011
|
-
[
|
|
3011
|
+
[h, t]
|
|
3012
3012
|
);
|
|
3013
3013
|
const _ = N(() => ({
|
|
3014
|
-
role:
|
|
3015
|
-
tabIndex:
|
|
3014
|
+
role: g,
|
|
3015
|
+
tabIndex: d,
|
|
3016
3016
|
"aria-disabled": r,
|
|
3017
|
-
"aria-pressed":
|
|
3018
|
-
"aria-roledescription":
|
|
3019
|
-
"aria-describedby":
|
|
3020
|
-
}), [r,
|
|
3017
|
+
"aria-pressed": b && g === nr ? !0 : void 0,
|
|
3018
|
+
"aria-roledescription": v,
|
|
3019
|
+
"aria-describedby": f.draggable
|
|
3020
|
+
}), [r, g, d, b, v, f.draggable]);
|
|
3021
3021
|
return {
|
|
3022
3022
|
active: c,
|
|
3023
3023
|
activatorEvent: l,
|
|
3024
3024
|
activeNodeRect: u,
|
|
3025
3025
|
attributes: _,
|
|
3026
|
-
isDragging:
|
|
3027
|
-
listeners: r ? void 0 :
|
|
3026
|
+
isDragging: b,
|
|
3027
|
+
listeners: r ? void 0 : D,
|
|
3028
3028
|
node: w,
|
|
3029
|
-
over:
|
|
3029
|
+
over: m,
|
|
3030
3030
|
setNodeRef: S,
|
|
3031
3031
|
setActivatorNodeRef: j,
|
|
3032
3032
|
transform: x
|
|
@@ -3050,35 +3050,35 @@ function Us(e) {
|
|
|
3050
3050
|
dispatch: l,
|
|
3051
3051
|
over: c,
|
|
3052
3052
|
measureDroppableContainers: u
|
|
3053
|
-
} = ze(Yt),
|
|
3053
|
+
} = ze(Yt), f = M({
|
|
3054
3054
|
disabled: n
|
|
3055
|
-
}),
|
|
3056
|
-
disabled:
|
|
3057
|
-
updateMeasurementsFor:
|
|
3058
|
-
timeout:
|
|
3055
|
+
}), h = M(!1), m = M(null), g = M(null), {
|
|
3056
|
+
disabled: v,
|
|
3057
|
+
updateMeasurementsFor: d,
|
|
3058
|
+
timeout: b
|
|
3059
3059
|
} = {
|
|
3060
3060
|
...Ws,
|
|
3061
3061
|
...o
|
|
3062
|
-
}, x = dt(
|
|
3062
|
+
}, x = dt(d ?? r), w = J(
|
|
3063
3063
|
() => {
|
|
3064
|
-
if (!
|
|
3065
|
-
|
|
3064
|
+
if (!h.current) {
|
|
3065
|
+
h.current = !0;
|
|
3066
3066
|
return;
|
|
3067
3067
|
}
|
|
3068
|
-
|
|
3069
|
-
u(Array.isArray(x.current) ? x.current : [x.current]),
|
|
3070
|
-
},
|
|
3068
|
+
g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
3069
|
+
u(Array.isArray(x.current) ? x.current : [x.current]), g.current = null;
|
|
3070
|
+
}, b);
|
|
3071
3071
|
},
|
|
3072
3072
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3073
|
-
[
|
|
3073
|
+
[b]
|
|
3074
3074
|
), S = Vt({
|
|
3075
3075
|
callback: w,
|
|
3076
|
-
disabled:
|
|
3077
|
-
}),
|
|
3078
|
-
S && ($ && (S.unobserve($),
|
|
3079
|
-
}, [S]), [j,
|
|
3076
|
+
disabled: v || !i
|
|
3077
|
+
}), C = J((_, $) => {
|
|
3078
|
+
S && ($ && (S.unobserve($), h.current = !1), _ && S.observe(_));
|
|
3079
|
+
}, [S]), [j, D] = kt(C), E = dt(t);
|
|
3080
3080
|
return A(() => {
|
|
3081
|
-
!S || !j.current || (S.disconnect(),
|
|
3081
|
+
!S || !j.current || (S.disconnect(), h.current = !1, S.observe(j.current));
|
|
3082
3082
|
}, [j, S]), A(
|
|
3083
3083
|
() => (l({
|
|
3084
3084
|
type: Y.RegisterDroppable,
|
|
@@ -3087,7 +3087,7 @@ function Us(e) {
|
|
|
3087
3087
|
key: s,
|
|
3088
3088
|
disabled: n,
|
|
3089
3089
|
node: j,
|
|
3090
|
-
rect:
|
|
3090
|
+
rect: m,
|
|
3091
3091
|
data: E
|
|
3092
3092
|
}
|
|
3093
3093
|
}), () => l({
|
|
@@ -3098,19 +3098,19 @@ function Us(e) {
|
|
|
3098
3098
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3099
3099
|
[r]
|
|
3100
3100
|
), A(() => {
|
|
3101
|
-
n !==
|
|
3101
|
+
n !== f.current.disabled && (l({
|
|
3102
3102
|
type: Y.SetDroppableDisabled,
|
|
3103
3103
|
id: r,
|
|
3104
3104
|
key: s,
|
|
3105
3105
|
disabled: n
|
|
3106
|
-
}),
|
|
3106
|
+
}), f.current.disabled = n);
|
|
3107
3107
|
}, [r, s, n, l]), {
|
|
3108
3108
|
active: i,
|
|
3109
|
-
rect:
|
|
3109
|
+
rect: m,
|
|
3110
3110
|
isOver: c?.id === r,
|
|
3111
3111
|
node: j,
|
|
3112
3112
|
over: c,
|
|
3113
|
-
setNodeRef:
|
|
3113
|
+
setNodeRef: D
|
|
3114
3114
|
};
|
|
3115
3115
|
}
|
|
3116
3116
|
function Ht(e, t, n) {
|
|
@@ -3267,27 +3267,27 @@ function Lr(e) {
|
|
|
3267
3267
|
dragOverlay: l,
|
|
3268
3268
|
droppableRects: c,
|
|
3269
3269
|
over: u,
|
|
3270
|
-
measureDroppableContainers:
|
|
3271
|
-
} = Hs(),
|
|
3270
|
+
measureDroppableContainers: f
|
|
3271
|
+
} = Hs(), h = xt(Nr, n), m = l.rect !== null, g = N(() => r.map((D) => typeof D == "object" && "id" in D ? D.id : D), [r]), v = i != null, d = i ? g.indexOf(i.id) : -1, b = u ? g.indexOf(u.id) : -1, x = M(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
|
|
3272
3272
|
we(() => {
|
|
3273
|
-
w &&
|
|
3274
|
-
}, [w,
|
|
3275
|
-
x.current =
|
|
3276
|
-
}, [
|
|
3273
|
+
w && v && f(g);
|
|
3274
|
+
}, [w, g, v, f]), A(() => {
|
|
3275
|
+
x.current = g;
|
|
3276
|
+
}, [g]);
|
|
3277
3277
|
const j = N(
|
|
3278
3278
|
() => ({
|
|
3279
|
-
activeIndex:
|
|
3280
|
-
containerId:
|
|
3281
|
-
disabled:
|
|
3279
|
+
activeIndex: d,
|
|
3280
|
+
containerId: h,
|
|
3281
|
+
disabled: C,
|
|
3282
3282
|
disableTransforms: S,
|
|
3283
|
-
items:
|
|
3284
|
-
overIndex:
|
|
3285
|
-
useDragOverlay:
|
|
3286
|
-
sortedRects: Gs(
|
|
3283
|
+
items: g,
|
|
3284
|
+
overIndex: b,
|
|
3285
|
+
useDragOverlay: m,
|
|
3286
|
+
sortedRects: Gs(g, c),
|
|
3287
3287
|
strategy: o
|
|
3288
3288
|
}),
|
|
3289
3289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3290
|
-
[
|
|
3290
|
+
[d, h, C.draggable, C.droppable, S, g, b, c, m, o]
|
|
3291
3291
|
);
|
|
3292
3292
|
return H.createElement(Mr.Provider, {
|
|
3293
3293
|
value: j
|
|
@@ -3331,20 +3331,20 @@ function si(e) {
|
|
|
3331
3331
|
node: r,
|
|
3332
3332
|
rect: o
|
|
3333
3333
|
} = e;
|
|
3334
|
-
const [s, i] =
|
|
3334
|
+
const [s, i] = K(null), l = M(n);
|
|
3335
3335
|
return we(() => {
|
|
3336
3336
|
if (!t && n !== l.current && r.current) {
|
|
3337
3337
|
const c = o.current;
|
|
3338
3338
|
if (c) {
|
|
3339
3339
|
const u = Ze(r.current, {
|
|
3340
3340
|
ignoreTransform: !0
|
|
3341
|
-
}),
|
|
3341
|
+
}), f = {
|
|
3342
3342
|
x: c.left - u.left,
|
|
3343
3343
|
y: c.top - u.top,
|
|
3344
3344
|
scaleX: c.width / u.width,
|
|
3345
3345
|
scaleY: c.height / u.height
|
|
3346
3346
|
};
|
|
3347
|
-
(
|
|
3347
|
+
(f.x || f.y) && i(f);
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
n !== l.current && (l.current = n);
|
|
@@ -3365,23 +3365,23 @@ function Pr(e) {
|
|
|
3365
3365
|
transition: u = ni
|
|
3366
3366
|
} = e;
|
|
3367
3367
|
const {
|
|
3368
|
-
items:
|
|
3369
|
-
containerId:
|
|
3370
|
-
activeIndex:
|
|
3371
|
-
disabled:
|
|
3372
|
-
disableTransforms:
|
|
3373
|
-
sortedRects:
|
|
3374
|
-
overIndex:
|
|
3368
|
+
items: f,
|
|
3369
|
+
containerId: h,
|
|
3370
|
+
activeIndex: m,
|
|
3371
|
+
disabled: g,
|
|
3372
|
+
disableTransforms: v,
|
|
3373
|
+
sortedRects: d,
|
|
3374
|
+
overIndex: b,
|
|
3375
3375
|
useDragOverlay: x,
|
|
3376
3376
|
strategy: w
|
|
3377
|
-
} = ze(Mr), S = ii(r,
|
|
3377
|
+
} = ze(Mr), S = ii(r, g), C = f.indexOf(i), j = N(() => ({
|
|
3378
3378
|
sortable: {
|
|
3379
|
-
containerId:
|
|
3380
|
-
index:
|
|
3381
|
-
items:
|
|
3379
|
+
containerId: h,
|
|
3380
|
+
index: C,
|
|
3381
|
+
items: f
|
|
3382
3382
|
},
|
|
3383
3383
|
...o
|
|
3384
|
-
}), [
|
|
3384
|
+
}), [h, o, C, f]), D = N(() => f.slice(f.indexOf(i)), [f, i]), {
|
|
3385
3385
|
rect: E,
|
|
3386
3386
|
node: _,
|
|
3387
3387
|
isOver: $,
|
|
@@ -3391,12 +3391,12 @@ function Pr(e) {
|
|
|
3391
3391
|
data: j,
|
|
3392
3392
|
disabled: S.droppable,
|
|
3393
3393
|
resizeObserverConfig: {
|
|
3394
|
-
updateMeasurementsFor:
|
|
3394
|
+
updateMeasurementsFor: D,
|
|
3395
3395
|
...c
|
|
3396
3396
|
}
|
|
3397
3397
|
}), {
|
|
3398
3398
|
active: L,
|
|
3399
|
-
activatorEvent:
|
|
3399
|
+
activatorEvent: Z,
|
|
3400
3400
|
activeNodeRect: ee,
|
|
3401
3401
|
attributes: le,
|
|
3402
3402
|
setNodeRef: Re,
|
|
@@ -3413,30 +3413,30 @@ function Pr(e) {
|
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: S.draggable
|
|
3416
|
-
}), p = So(F, Re),
|
|
3417
|
-
rects:
|
|
3416
|
+
}), p = So(F, Re), R = !!L, O = R && !v && jt(m) && jt(b), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
|
|
3417
|
+
rects: d,
|
|
3418
3418
|
activeNodeRect: ee,
|
|
3419
|
-
activeIndex:
|
|
3420
|
-
overIndex:
|
|
3421
|
-
index:
|
|
3422
|
-
}) : null,
|
|
3419
|
+
activeIndex: m,
|
|
3420
|
+
overIndex: b,
|
|
3421
|
+
index: C
|
|
3422
|
+
}) : null, Q = jt(m) && jt(b) ? s({
|
|
3423
3423
|
id: i,
|
|
3424
|
-
items:
|
|
3425
|
-
activeIndex:
|
|
3426
|
-
overIndex:
|
|
3427
|
-
}) :
|
|
3424
|
+
items: f,
|
|
3425
|
+
activeIndex: m,
|
|
3426
|
+
overIndex: b
|
|
3427
|
+
}) : C, re = L?.id, I = M({
|
|
3428
3428
|
activeId: re,
|
|
3429
|
-
items:
|
|
3430
|
-
newIndex:
|
|
3431
|
-
containerId:
|
|
3432
|
-
}), Qe =
|
|
3429
|
+
items: f,
|
|
3430
|
+
newIndex: Q,
|
|
3431
|
+
containerId: h
|
|
3432
|
+
}), Qe = f !== I.current.items, be = t({
|
|
3433
3433
|
active: L,
|
|
3434
|
-
containerId:
|
|
3434
|
+
containerId: h,
|
|
3435
3435
|
isDragging: G,
|
|
3436
|
-
isSorting:
|
|
3436
|
+
isSorting: R,
|
|
3437
3437
|
id: i,
|
|
3438
|
-
index:
|
|
3439
|
-
items:
|
|
3438
|
+
index: C,
|
|
3439
|
+
items: f,
|
|
3440
3440
|
newIndex: I.current.newIndex,
|
|
3441
3441
|
previousItems: I.current.items,
|
|
3442
3442
|
previousContainerId: I.current.containerId,
|
|
@@ -3444,13 +3444,13 @@ function Pr(e) {
|
|
|
3444
3444
|
wasDragging: I.current.activeId != null
|
|
3445
3445
|
}), Ve = si({
|
|
3446
3446
|
disabled: !be,
|
|
3447
|
-
index:
|
|
3447
|
+
index: C,
|
|
3448
3448
|
node: _,
|
|
3449
3449
|
rect: E
|
|
3450
3450
|
});
|
|
3451
3451
|
return A(() => {
|
|
3452
|
-
|
|
3453
|
-
}, [
|
|
3452
|
+
R && I.current.newIndex !== Q && (I.current.newIndex = Q), h !== I.current.containerId && (I.current.containerId = h), f !== I.current.items && (I.current.items = f);
|
|
3453
|
+
}, [R, Q, h, f]), A(() => {
|
|
3454
3454
|
if (re === I.current.activeId)
|
|
3455
3455
|
return;
|
|
3456
3456
|
if (re != null && I.current.activeId == null) {
|
|
@@ -3463,19 +3463,19 @@ function Pr(e) {
|
|
|
3463
3463
|
return () => clearTimeout(Ye);
|
|
3464
3464
|
}, [re]), {
|
|
3465
3465
|
active: L,
|
|
3466
|
-
activeIndex:
|
|
3466
|
+
activeIndex: m,
|
|
3467
3467
|
attributes: le,
|
|
3468
3468
|
data: j,
|
|
3469
3469
|
rect: E,
|
|
3470
|
-
index:
|
|
3471
|
-
newIndex:
|
|
3472
|
-
items:
|
|
3470
|
+
index: C,
|
|
3471
|
+
newIndex: Q,
|
|
3472
|
+
items: f,
|
|
3473
3473
|
isOver: $,
|
|
3474
|
-
isSorting:
|
|
3474
|
+
isSorting: R,
|
|
3475
3475
|
isDragging: G,
|
|
3476
3476
|
listeners: $e,
|
|
3477
3477
|
node: _,
|
|
3478
|
-
overIndex:
|
|
3478
|
+
overIndex: b,
|
|
3479
3479
|
over: Pe,
|
|
3480
3480
|
setNodeRef: p,
|
|
3481
3481
|
setActivatorNodeRef: ce,
|
|
@@ -3488,10 +3488,10 @@ function Pr(e) {
|
|
|
3488
3488
|
if (
|
|
3489
3489
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3490
3490
|
Ve || // Or to prevent items jumping to back to their "new" position when items change
|
|
3491
|
-
Qe && I.current.newIndex ===
|
|
3491
|
+
Qe && I.current.newIndex === C
|
|
3492
3492
|
)
|
|
3493
3493
|
return ri;
|
|
3494
|
-
if (!(k && !bn(
|
|
3494
|
+
if (!(k && !bn(Z) || !u) && (R || be))
|
|
3495
3495
|
return qe.Transition.toString({
|
|
3496
3496
|
...u,
|
|
3497
3497
|
property: $r
|
|
@@ -3556,7 +3556,7 @@ const di = hn(
|
|
|
3556
3556
|
...l
|
|
3557
3557
|
},
|
|
3558
3558
|
[
|
|
3559
|
-
...i.map(([u,
|
|
3559
|
+
...i.map(([u, f]) => sn(u, f)),
|
|
3560
3560
|
...Array.isArray(s) ? s : [s]
|
|
3561
3561
|
]
|
|
3562
3562
|
)
|
|
@@ -3711,7 +3711,7 @@ function Vi(e, t) {
|
|
|
3711
3711
|
...c,
|
|
3712
3712
|
data: e,
|
|
3713
3713
|
columnOrder: l,
|
|
3714
|
-
visibility: l.reduce((u,
|
|
3714
|
+
visibility: l.reduce((u, f) => (u[f.id] = !0, u), {}),
|
|
3715
3715
|
sortableColumns: l.map((u) => ({
|
|
3716
3716
|
id: u.id,
|
|
3717
3717
|
label: u.label,
|
|
@@ -3748,7 +3748,7 @@ function Ji({
|
|
|
3748
3748
|
borderRight: o,
|
|
3749
3749
|
borderRightColor: s
|
|
3750
3750
|
}) {
|
|
3751
|
-
const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition:
|
|
3751
|
+
const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: f } = Pr({ id: e });
|
|
3752
3752
|
return /* @__PURE__ */ a.jsx(
|
|
3753
3753
|
ye.ColumnHeader,
|
|
3754
3754
|
{
|
|
@@ -3757,7 +3757,7 @@ function Ji({
|
|
|
3757
3757
|
w: e === "id" ? "80px" : void 0,
|
|
3758
3758
|
style: {
|
|
3759
3759
|
transform: qe.Transform.toString(u),
|
|
3760
|
-
transition:
|
|
3760
|
+
transition: f,
|
|
3761
3761
|
cursor: r,
|
|
3762
3762
|
borderRight: o,
|
|
3763
3763
|
borderRightColor: s
|
|
@@ -3774,8 +3774,8 @@ function Zi() {
|
|
|
3774
3774
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = vt(fe), s = e.map((l) => o.find((c) => c.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), i = (l) => {
|
|
3775
3775
|
const { active: c, over: u } = l;
|
|
3776
3776
|
if (!u || c.id === u.id) return;
|
|
3777
|
-
const
|
|
3778
|
-
Pi(
|
|
3777
|
+
const f = e.findIndex((g) => g.id === c.id), h = e.findIndex((g) => g.id === u.id), m = Ht(e, f, h);
|
|
3778
|
+
Pi(m);
|
|
3779
3779
|
};
|
|
3780
3780
|
return /* @__PURE__ */ a.jsx(ye.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
|
|
3781
3781
|
Lr,
|
|
@@ -3914,7 +3914,7 @@ function pa({
|
|
|
3914
3914
|
] }) })
|
|
3915
3915
|
] }, o.id)) });
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3917
|
+
function Cl({
|
|
3918
3918
|
tableId: e,
|
|
3919
3919
|
data: t = [],
|
|
3920
3920
|
headers: n = [],
|
|
@@ -3925,34 +3925,34 @@ function Sl({
|
|
|
3925
3925
|
pageSize: l = 10,
|
|
3926
3926
|
onPageChange: c,
|
|
3927
3927
|
onPageSizeChange: u,
|
|
3928
|
-
density:
|
|
3929
|
-
totalCount:
|
|
3930
|
-
paginationMode:
|
|
3928
|
+
density: f = "sm",
|
|
3929
|
+
totalCount: h = 0,
|
|
3930
|
+
paginationMode: m = "client"
|
|
3931
3931
|
}) {
|
|
3932
3932
|
A(() => {
|
|
3933
3933
|
Yi(e);
|
|
3934
3934
|
}, [e]), A(() => {
|
|
3935
3935
|
Vi(t, n);
|
|
3936
3936
|
}, [t, n]);
|
|
3937
|
-
const { sortColumn:
|
|
3938
|
-
const x = [...
|
|
3939
|
-
if (
|
|
3940
|
-
(w, S) =>
|
|
3941
|
-
),
|
|
3937
|
+
const { sortColumn: g, sortDirection: v, data: d } = vt(fe), b = N(() => {
|
|
3938
|
+
const x = [...d];
|
|
3939
|
+
if (g && x.sort(
|
|
3940
|
+
(w, S) => v === "asc" ? String(w[g]).localeCompare(String(S[g])) : String(S[g]).localeCompare(String(w[g]))
|
|
3941
|
+
), m === "client") {
|
|
3942
3942
|
const w = i * l;
|
|
3943
3943
|
return x.slice(w, w + l);
|
|
3944
3944
|
}
|
|
3945
3945
|
return x;
|
|
3946
|
-
}, [
|
|
3946
|
+
}, [d, g, v, i, l, m]);
|
|
3947
3947
|
return /* @__PURE__ */ a.jsxs(Ge, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
3948
|
-
/* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) :
|
|
3948
|
+
/* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: f, children: [
|
|
3949
3949
|
/* @__PURE__ */ a.jsx(Zi, {}),
|
|
3950
|
-
/* @__PURE__ */ a.jsx(pa, { data:
|
|
3950
|
+
/* @__PURE__ */ a.jsx(pa, { data: b, actions: s })
|
|
3951
3951
|
] }) }),
|
|
3952
3952
|
/* @__PURE__ */ a.jsx(Ge, { mt: 0.5, children: /* @__PURE__ */ a.jsx(
|
|
3953
3953
|
ua,
|
|
3954
3954
|
{
|
|
3955
|
-
totalCount:
|
|
3955
|
+
totalCount: h,
|
|
3956
3956
|
pageSize: l,
|
|
3957
3957
|
currentPage: i,
|
|
3958
3958
|
onPageChange: c,
|
|
@@ -4054,79 +4054,79 @@ function _a({
|
|
|
4054
4054
|
onChange: t,
|
|
4055
4055
|
disabled: n = !1
|
|
4056
4056
|
}) {
|
|
4057
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s, i] =
|
|
4057
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = K(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = K(!1), u = M(null);
|
|
4058
4058
|
A(() => {
|
|
4059
|
-
const
|
|
4060
|
-
|
|
4059
|
+
const v = (d) => {
|
|
4060
|
+
d.ctrlKey && d.key === "d" && !d.shiftKey && !d.metaKey && (d.preventDefault(), u.current?.focus());
|
|
4061
4061
|
};
|
|
4062
|
-
return window.addEventListener("keydown",
|
|
4062
|
+
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
4063
4063
|
}, []);
|
|
4064
|
-
const
|
|
4065
|
-
let
|
|
4066
|
-
if (
|
|
4067
|
-
const [
|
|
4068
|
-
|
|
4064
|
+
const f = (v) => {
|
|
4065
|
+
let d = v;
|
|
4066
|
+
if (d.includes(V)) {
|
|
4067
|
+
const [b, x = ""] = d.split(V);
|
|
4068
|
+
d = `${at(b.trim())}${V}${at(
|
|
4069
4069
|
x.trim()
|
|
4070
4070
|
)}`;
|
|
4071
|
-
} else if (
|
|
4072
|
-
const [
|
|
4073
|
-
|
|
4071
|
+
} else if (d.toLowerCase().includes(" to ")) {
|
|
4072
|
+
const [b, x = ""] = d.split(/\s+to\s+/i);
|
|
4073
|
+
d = `${at(b.trim())} to ${at(x.trim())}`;
|
|
4074
4074
|
} else
|
|
4075
|
-
|
|
4076
|
-
i(
|
|
4077
|
-
},
|
|
4078
|
-
const
|
|
4079
|
-
if (!
|
|
4075
|
+
d = at(d);
|
|
4076
|
+
i(d);
|
|
4077
|
+
}, h = () => {
|
|
4078
|
+
const v = s.trim();
|
|
4079
|
+
if (!v) {
|
|
4080
4080
|
t(void 0);
|
|
4081
4081
|
return;
|
|
4082
4082
|
}
|
|
4083
|
-
if (
|
|
4084
|
-
const [
|
|
4083
|
+
if (v.includes(V)) {
|
|
4084
|
+
const [d, b = ""] = v.split(V).map((S) => S.trim()), x = it(d), w = b ? it(b) : null;
|
|
4085
4085
|
if (x && w) {
|
|
4086
|
-
const [S,
|
|
4087
|
-
|
|
4086
|
+
const [S, C] = w < x ? [w, x] : [x, w], j = `${he(S)}${V}${he(
|
|
4087
|
+
C
|
|
4088
4088
|
)}`;
|
|
4089
|
-
i(j), t(`${S}|${
|
|
4090
|
-
} else if (x && !
|
|
4089
|
+
i(j), t(`${S}|${C}`);
|
|
4090
|
+
} else if (x && !b)
|
|
4091
4091
|
i(`${he(x)}${V}`), t(void 0);
|
|
4092
|
-
else if (x &&
|
|
4093
|
-
const S = wa(), [
|
|
4092
|
+
else if (x && b) {
|
|
4093
|
+
const S = wa(), [C, j] = S < x ? [S, x] : [x, S], D = `${he(C)}${V}${he(
|
|
4094
4094
|
j
|
|
4095
4095
|
)}`;
|
|
4096
|
-
i(
|
|
4096
|
+
i(D), t(`${C}|${j}`);
|
|
4097
4097
|
} else
|
|
4098
4098
|
i(""), t(void 0);
|
|
4099
4099
|
} else {
|
|
4100
|
-
const
|
|
4101
|
-
|
|
4100
|
+
const d = it(v);
|
|
4101
|
+
d ? (i(`${he(d)}${V}`), t(void 0)) : (i(""), t(void 0));
|
|
4102
4102
|
}
|
|
4103
|
-
},
|
|
4104
|
-
if (
|
|
4105
|
-
|
|
4106
|
-
const
|
|
4103
|
+
}, m = (v) => {
|
|
4104
|
+
if (v.key !== "Enter") return;
|
|
4105
|
+
v.preventDefault();
|
|
4106
|
+
const d = u.current?.selectionStart || 0, b = s.indexOf(V);
|
|
4107
4107
|
if (!s.trim()) {
|
|
4108
4108
|
i(`${ar()}${V}`);
|
|
4109
4109
|
return;
|
|
4110
4110
|
}
|
|
4111
|
-
if (
|
|
4111
|
+
if (b === -1) {
|
|
4112
4112
|
const w = it(s.trim());
|
|
4113
4113
|
w && i(`${he(w)}${V}`);
|
|
4114
4114
|
return;
|
|
4115
4115
|
}
|
|
4116
|
-
if (
|
|
4117
|
-
const w = s.substring(0,
|
|
4118
|
-
|
|
4116
|
+
if (d <= b + V.length) {
|
|
4117
|
+
const w = s.substring(0, b).trim(), S = s.substring(b + V.length), C = it(w);
|
|
4118
|
+
C && i(`${he(C)}${V}${S}`);
|
|
4119
4119
|
return;
|
|
4120
4120
|
}
|
|
4121
|
-
if (s.substring(
|
|
4122
|
-
|
|
4121
|
+
if (s.substring(b + V.length).trim())
|
|
4122
|
+
h(), u.current?.blur();
|
|
4123
4123
|
else {
|
|
4124
|
-
const w = s.substring(0,
|
|
4124
|
+
const w = s.substring(0, b + V.length) + ar();
|
|
4125
4125
|
i(w), setTimeout(() => {
|
|
4126
|
-
|
|
4126
|
+
h(), u.current?.blur();
|
|
4127
4127
|
}, 0);
|
|
4128
4128
|
}
|
|
4129
|
-
},
|
|
4129
|
+
}, g = () => {
|
|
4130
4130
|
i(""), t(void 0);
|
|
4131
4131
|
};
|
|
4132
4132
|
return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(An, { position: "revert", children: [
|
|
@@ -4144,7 +4144,7 @@ function _a({
|
|
|
4144
4144
|
size: "sm",
|
|
4145
4145
|
variant: "ghost",
|
|
4146
4146
|
"aria-label": "Date range help",
|
|
4147
|
-
onClick: () => c((
|
|
4147
|
+
onClick: () => c((v) => !v),
|
|
4148
4148
|
children: /* @__PURE__ */ a.jsx(or, { size: 16 })
|
|
4149
4149
|
}
|
|
4150
4150
|
) }),
|
|
@@ -4191,9 +4191,9 @@ function _a({
|
|
|
4191
4191
|
value: s,
|
|
4192
4192
|
size: "sm",
|
|
4193
4193
|
disabled: n,
|
|
4194
|
-
onChange: (
|
|
4195
|
-
onBlur:
|
|
4196
|
-
onKeyDown:
|
|
4194
|
+
onChange: (v) => f(v.target.value),
|
|
4195
|
+
onBlur: h,
|
|
4196
|
+
onKeyDown: m,
|
|
4197
4197
|
pr: s ? "10" : void 0,
|
|
4198
4198
|
w: "100%"
|
|
4199
4199
|
}
|
|
@@ -4204,15 +4204,13 @@ function _a({
|
|
|
4204
4204
|
size: "sm",
|
|
4205
4205
|
variant: "ghost",
|
|
4206
4206
|
"aria-label": "Clear date range",
|
|
4207
|
-
onClick:
|
|
4207
|
+
onClick: g,
|
|
4208
4208
|
w: "100%"
|
|
4209
4209
|
}
|
|
4210
4210
|
) })
|
|
4211
4211
|
] }) }) });
|
|
4212
4212
|
}
|
|
4213
|
-
const Oa = y(Fe.Root)
|
|
4214
|
-
y(Fe.Label);
|
|
4215
|
-
const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
|
|
4213
|
+
const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorText), lr = ({
|
|
4216
4214
|
icon: e,
|
|
4217
4215
|
value: t,
|
|
4218
4216
|
onChange: n,
|
|
@@ -4223,69 +4221,72 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
|
|
|
4223
4221
|
label: l,
|
|
4224
4222
|
helperText: c,
|
|
4225
4223
|
isDisabled: u = !1,
|
|
4226
|
-
required:
|
|
4227
|
-
errorText:
|
|
4224
|
+
required: f = !1,
|
|
4225
|
+
errorText: h,
|
|
4226
|
+
visible: m
|
|
4228
4227
|
}) => /* @__PURE__ */ a.jsxs(Oa, { width: i, children: [
|
|
4228
|
+
m && /* @__PURE__ */ a.jsx(Ta, { children: l }),
|
|
4229
4229
|
/* @__PURE__ */ a.jsx(ur, { startElement: e, children: /* @__PURE__ */ a.jsx(
|
|
4230
4230
|
dr,
|
|
4231
4231
|
{
|
|
4232
4232
|
value: t,
|
|
4233
|
-
onChange: (
|
|
4233
|
+
onChange: (g) => n?.(g.target.value),
|
|
4234
4234
|
placeholder: r,
|
|
4235
4235
|
size: o,
|
|
4236
4236
|
variant: s,
|
|
4237
4237
|
disabled: u,
|
|
4238
|
-
required:
|
|
4238
|
+
required: f
|
|
4239
4239
|
}
|
|
4240
4240
|
) }),
|
|
4241
|
-
|
|
4242
|
-
c && /* @__PURE__ */ a.jsx(
|
|
4243
|
-
] }),
|
|
4241
|
+
h && /* @__PURE__ */ a.jsx(Aa, { fontSize: "xs", children: h }),
|
|
4242
|
+
c && /* @__PURE__ */ a.jsx(Ia, { fontSize: "xs", children: c })
|
|
4243
|
+
] }), ka = y(Fe.Root), Na = y(Fe.HelperText), Ma = y(Fe.ErrorText), La = y(z.Root), $a = y(z.Label), Pa = y(z.Control), za = y(z.Trigger), Fa = y(z.ValueText), Va = y(z.IndicatorGroup), Ya = y(z.Indicator), Ha = y(z.Content), Ba = y(z.Item), Wa = y(z.ItemIndicator), Ua = y(z.HiddenSelect), Ga = y(z.Positioner), Xa = ({
|
|
4244
4244
|
options: e = [],
|
|
4245
4245
|
label: t,
|
|
4246
4246
|
value: n,
|
|
4247
4247
|
onChange: r,
|
|
4248
4248
|
placeholder: o,
|
|
4249
|
-
size: s = "
|
|
4249
|
+
size: s = "xs",
|
|
4250
4250
|
width: i = "100%",
|
|
4251
4251
|
variant: l = "outline",
|
|
4252
4252
|
helperText: c,
|
|
4253
4253
|
isDisabled: u,
|
|
4254
|
-
required:
|
|
4255
|
-
errorText:
|
|
4254
|
+
required: f,
|
|
4255
|
+
errorText: h,
|
|
4256
|
+
visible: m
|
|
4256
4257
|
}) => {
|
|
4257
|
-
const
|
|
4258
|
+
const g = cr({
|
|
4258
4259
|
items: e
|
|
4259
4260
|
});
|
|
4260
|
-
return /* @__PURE__ */ a.jsxs(
|
|
4261
|
+
return /* @__PURE__ */ a.jsxs(ka, { disabled: u, required: f, children: [
|
|
4261
4262
|
/* @__PURE__ */ a.jsxs(
|
|
4262
|
-
|
|
4263
|
+
La,
|
|
4263
4264
|
{
|
|
4264
|
-
collection:
|
|
4265
|
+
collection: g,
|
|
4265
4266
|
variant: l,
|
|
4266
4267
|
size: s,
|
|
4267
4268
|
width: i,
|
|
4268
4269
|
value: n ? [n] : [],
|
|
4269
|
-
onValueChange: (
|
|
4270
|
+
onValueChange: (v) => r?.(v.value[0]),
|
|
4270
4271
|
children: [
|
|
4271
|
-
/* @__PURE__ */ a.jsx(
|
|
4272
|
-
|
|
4273
|
-
/* @__PURE__ */ a.jsxs(
|
|
4274
|
-
/* @__PURE__ */ a.jsx(
|
|
4275
|
-
/* @__PURE__ */ a.jsx(
|
|
4272
|
+
/* @__PURE__ */ a.jsx(Ua, {}),
|
|
4273
|
+
m && /* @__PURE__ */ a.jsx($a, { children: t }),
|
|
4274
|
+
/* @__PURE__ */ a.jsxs(Pa, { children: [
|
|
4275
|
+
/* @__PURE__ */ a.jsx(za, { children: /* @__PURE__ */ a.jsx(Fa, { placeholder: o }) }),
|
|
4276
|
+
/* @__PURE__ */ a.jsx(Va, { children: /* @__PURE__ */ a.jsx(Ya, {}) })
|
|
4276
4277
|
] }),
|
|
4277
|
-
/* @__PURE__ */ a.jsx(
|
|
4278
|
-
|
|
4279
|
-
/* @__PURE__ */ a.jsx(
|
|
4280
|
-
] },
|
|
4278
|
+
/* @__PURE__ */ a.jsx(Ga, { children: /* @__PURE__ */ a.jsx(Ha, { children: g.items.map((v) => /* @__PURE__ */ a.jsxs(Ba, { item: v, children: [
|
|
4279
|
+
v.label,
|
|
4280
|
+
/* @__PURE__ */ a.jsx(Wa, {})
|
|
4281
|
+
] }, v.value)) }) })
|
|
4281
4282
|
]
|
|
4282
4283
|
}
|
|
4283
4284
|
),
|
|
4284
|
-
c && /* @__PURE__ */ a.jsx(
|
|
4285
|
-
|
|
4285
|
+
c && /* @__PURE__ */ a.jsx(Na, { children: c }),
|
|
4286
|
+
h && /* @__PURE__ */ a.jsx(Ma, { children: h })
|
|
4286
4287
|
] });
|
|
4287
4288
|
}, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4288
|
-
function
|
|
4289
|
+
function qa(e) {
|
|
4289
4290
|
try {
|
|
4290
4291
|
return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
|
|
4291
4292
|
} catch {
|
|
@@ -4295,7 +4296,7 @@ function Xa(e) {
|
|
|
4295
4296
|
const $t = new gr({}), Cn = (e) => {
|
|
4296
4297
|
const t = $t.state[e];
|
|
4297
4298
|
if (t) return t;
|
|
4298
|
-
const n =
|
|
4299
|
+
const n = qa(e);
|
|
4299
4300
|
return $t.setState((r) => ({
|
|
4300
4301
|
...r,
|
|
4301
4302
|
[e]: n
|
|
@@ -4305,13 +4306,13 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4305
4306
|
...n,
|
|
4306
4307
|
[e]: t
|
|
4307
4308
|
})), localStorage.setItem(Yr(e), JSON.stringify(t));
|
|
4308
|
-
},
|
|
4309
|
+
}, Ka = (e, t) => {
|
|
4309
4310
|
const n = Cn(e).filter((r) => r.id !== t);
|
|
4310
4311
|
Hr(e, n);
|
|
4311
|
-
},
|
|
4312
|
+
}, Ja = (e, t) => {
|
|
4312
4313
|
const n = [t, ...Cn(e)];
|
|
4313
4314
|
Hr(e, n);
|
|
4314
|
-
},
|
|
4315
|
+
}, Za = y(pe.Root), Qa = y(pe.HiddenInput), el = y(pe.Control), tl = y(pt.Root), nl = y(pt.Track), rl = y(pt.Range), ol = y(pt.Thumbs), sl = y(pt.Control), il = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4315
4316
|
const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
|
|
4316
4317
|
id: e.id
|
|
4317
4318
|
}), c = {
|
|
@@ -4338,14 +4339,14 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4338
4339
|
/* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
|
|
4339
4340
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
|
|
4340
4341
|
/* @__PURE__ */ a.jsxs(
|
|
4341
|
-
|
|
4342
|
+
Za,
|
|
4342
4343
|
{
|
|
4343
4344
|
checked: e.visible,
|
|
4344
4345
|
size: "sm",
|
|
4345
4346
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4346
4347
|
children: [
|
|
4347
|
-
/* @__PURE__ */ a.jsx(
|
|
4348
|
-
/* @__PURE__ */ a.jsx(
|
|
4348
|
+
/* @__PURE__ */ a.jsx(Qa, {}),
|
|
4349
|
+
/* @__PURE__ */ a.jsx(el, {})
|
|
4349
4350
|
]
|
|
4350
4351
|
}
|
|
4351
4352
|
)
|
|
@@ -4353,16 +4354,16 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4353
4354
|
/* @__PURE__ */ a.jsxs(je, { align: "stretch", gap: 1, children: [
|
|
4354
4355
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
|
|
4355
4356
|
/* @__PURE__ */ a.jsx(
|
|
4356
|
-
|
|
4357
|
+
tl,
|
|
4357
4358
|
{
|
|
4358
4359
|
min: 1,
|
|
4359
4360
|
max: 5,
|
|
4360
4361
|
step: 0.5,
|
|
4361
4362
|
value: [e.size ?? 1],
|
|
4362
4363
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4363
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
4364
|
-
/* @__PURE__ */ a.jsx(
|
|
4365
|
-
/* @__PURE__ */ a.jsx(
|
|
4364
|
+
children: /* @__PURE__ */ a.jsxs(sl, { children: [
|
|
4365
|
+
/* @__PURE__ */ a.jsx(nl, { children: /* @__PURE__ */ a.jsx(rl, {}) }),
|
|
4366
|
+
/* @__PURE__ */ a.jsx(ol, {})
|
|
4366
4367
|
] })
|
|
4367
4368
|
}
|
|
4368
4369
|
)
|
|
@@ -4370,7 +4371,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4370
4371
|
]
|
|
4371
4372
|
}
|
|
4372
4373
|
);
|
|
4373
|
-
},
|
|
4374
|
+
}, al = y(Ce.Root), ll = y(Ce.Trigger), cl = y(Ce.Backdrop), ul = y(Ce.Positioner), dl = y(Ce.Content), fl = y(Ce.Header), hl = y(Ce.Title), gl = y(Ce.Body), pl = y(Ce.Footer), vl = y(Ce.CloseTrigger), bl = y(zt.Root), ml = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e, t) => {
|
|
4374
4375
|
if (e.customComponent)
|
|
4375
4376
|
return e.customComponent;
|
|
4376
4377
|
switch (e.type) {
|
|
@@ -4381,7 +4382,8 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4381
4382
|
placeholder: e.label,
|
|
4382
4383
|
value: e.value,
|
|
4383
4384
|
onChange: e.onChange,
|
|
4384
|
-
label:
|
|
4385
|
+
label: e.label,
|
|
4386
|
+
visible: t
|
|
4385
4387
|
}
|
|
4386
4388
|
);
|
|
4387
4389
|
case "number":
|
|
@@ -4397,12 +4399,13 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4397
4399
|
);
|
|
4398
4400
|
case "select":
|
|
4399
4401
|
return /* @__PURE__ */ a.jsx(
|
|
4400
|
-
|
|
4402
|
+
Xa,
|
|
4401
4403
|
{
|
|
4402
4404
|
label: e.label,
|
|
4403
4405
|
value: e.value,
|
|
4404
4406
|
onChange: e.onChange,
|
|
4405
|
-
options: e.options ?? []
|
|
4407
|
+
options: e.options ?? [],
|
|
4408
|
+
visible: t
|
|
4406
4409
|
}
|
|
4407
4410
|
);
|
|
4408
4411
|
case "date":
|
|
@@ -4416,7 +4419,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4416
4419
|
default:
|
|
4417
4420
|
return null;
|
|
4418
4421
|
}
|
|
4419
|
-
},
|
|
4422
|
+
}, xl = ({
|
|
4420
4423
|
filterDrawerSize: e = "sm",
|
|
4421
4424
|
onVisibilityChange: t,
|
|
4422
4425
|
onSizeChange: n,
|
|
@@ -4426,28 +4429,30 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4426
4429
|
currentFilters: i = {},
|
|
4427
4430
|
onLoadPreset: l,
|
|
4428
4431
|
activePresetName: c,
|
|
4429
|
-
onReorder: u
|
|
4432
|
+
onReorder: u,
|
|
4433
|
+
open: f,
|
|
4434
|
+
onOpenChange: h
|
|
4430
4435
|
}) => {
|
|
4431
|
-
const
|
|
4436
|
+
const g = vt($t)[s] ?? Cn(s), v = () => {
|
|
4432
4437
|
const d = prompt("Preset name?");
|
|
4433
|
-
d &&
|
|
4438
|
+
d && Ja(s, {
|
|
4434
4439
|
id: crypto.randomUUID(),
|
|
4435
4440
|
name: d,
|
|
4436
4441
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4437
4442
|
filters: i
|
|
4438
4443
|
});
|
|
4439
4444
|
};
|
|
4440
|
-
return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(
|
|
4441
|
-
/* @__PURE__ */ a.jsx(
|
|
4445
|
+
return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(al, { size: e, open: f, onOpenChange: h, children: [
|
|
4446
|
+
/* @__PURE__ */ a.jsx(ll, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4442
4447
|
/* @__PURE__ */ a.jsx(Ai, { size: 16 }),
|
|
4443
4448
|
"Filters"
|
|
4444
4449
|
] }) }),
|
|
4445
4450
|
/* @__PURE__ */ a.jsxs(gt, { children: [
|
|
4446
|
-
/* @__PURE__ */ a.jsx(
|
|
4447
|
-
/* @__PURE__ */ a.jsx(
|
|
4448
|
-
/* @__PURE__ */ a.jsx(
|
|
4449
|
-
/* @__PURE__ */ a.jsx(
|
|
4450
|
-
/* @__PURE__ */ a.jsxs(
|
|
4451
|
+
/* @__PURE__ */ a.jsx(cl, {}),
|
|
4452
|
+
/* @__PURE__ */ a.jsx(ul, { children: /* @__PURE__ */ a.jsxs(dl, { children: [
|
|
4453
|
+
/* @__PURE__ */ a.jsx(fl, { children: /* @__PURE__ */ a.jsx(hl, { children: "Filters" }) }),
|
|
4454
|
+
/* @__PURE__ */ a.jsx(gl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(bl, { defaultValue: "view", children: [
|
|
4455
|
+
/* @__PURE__ */ a.jsxs(ml, { mb: 4, children: [
|
|
4451
4456
|
/* @__PURE__ */ a.jsxs(rn, { value: "view", children: [
|
|
4452
4457
|
/* @__PURE__ */ a.jsx(Mi, { size: 16 }),
|
|
4453
4458
|
"Edit"
|
|
@@ -4472,7 +4477,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4472
4477
|
rounded: "md",
|
|
4473
4478
|
p: 3,
|
|
4474
4479
|
mb: 3,
|
|
4475
|
-
children: Br(d)
|
|
4480
|
+
children: Br(d, f)
|
|
4476
4481
|
},
|
|
4477
4482
|
d.id
|
|
4478
4483
|
)) }),
|
|
@@ -4483,8 +4488,8 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4483
4488
|
collisionDetection: mr,
|
|
4484
4489
|
onDragEnd: ({ active: d, over: b }) => {
|
|
4485
4490
|
if (!b || d.id === b.id) return;
|
|
4486
|
-
const
|
|
4487
|
-
u?.(
|
|
4491
|
+
const x = o.findIndex((C) => C.id === d.id), w = o.findIndex((C) => C.id === b.id), S = Ht(o, x, w);
|
|
4492
|
+
u?.(S);
|
|
4488
4493
|
},
|
|
4489
4494
|
children: /* @__PURE__ */ a.jsx(
|
|
4490
4495
|
Lr,
|
|
@@ -4492,7 +4497,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4492
4497
|
items: o.map((d) => d.id),
|
|
4493
4498
|
strategy: Zs,
|
|
4494
4499
|
children: o.map((d) => /* @__PURE__ */ a.jsx(
|
|
4495
|
-
|
|
4500
|
+
il,
|
|
4496
4501
|
{
|
|
4497
4502
|
filter: d,
|
|
4498
4503
|
onVisibilityChange: t,
|
|
@@ -4506,8 +4511,8 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4506
4511
|
) }),
|
|
4507
4512
|
/* @__PURE__ */ a.jsx(on, { value: "presets", children: /* @__PURE__ */ a.jsxs(je, { align: "stretch", mb: 3, children: [
|
|
4508
4513
|
/* @__PURE__ */ a.jsx(Gt, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4509
|
-
|
|
4510
|
-
|
|
4514
|
+
g.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4515
|
+
g.map((d) => /* @__PURE__ */ a.jsxs(
|
|
4511
4516
|
ae,
|
|
4512
4517
|
{
|
|
4513
4518
|
justify: "space-between",
|
|
@@ -4536,7 +4541,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4536
4541
|
size: "xs",
|
|
4537
4542
|
"aria-label": "Delete preset",
|
|
4538
4543
|
variant: "ghost",
|
|
4539
|
-
onClick: () =>
|
|
4544
|
+
onClick: () => Ka(s, d.id),
|
|
4540
4545
|
children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
|
|
4541
4546
|
}
|
|
4542
4547
|
)
|
|
@@ -4547,7 +4552,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4547
4552
|
))
|
|
4548
4553
|
] }) })
|
|
4549
4554
|
] }) }),
|
|
4550
|
-
/* @__PURE__ */ a.jsxs(
|
|
4555
|
+
/* @__PURE__ */ a.jsxs(pl, { justify: "space-between", children: [
|
|
4551
4556
|
/* @__PURE__ */ a.jsx(
|
|
4552
4557
|
Gt,
|
|
4553
4558
|
{
|
|
@@ -4558,12 +4563,12 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4558
4563
|
children: "Clear All"
|
|
4559
4564
|
}
|
|
4560
4565
|
),
|
|
4561
|
-
/* @__PURE__ */ a.jsx(
|
|
4566
|
+
/* @__PURE__ */ a.jsx(vl, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
|
|
4562
4567
|
] })
|
|
4563
4568
|
] }) })
|
|
4564
4569
|
] })
|
|
4565
4570
|
] }) });
|
|
4566
|
-
},
|
|
4571
|
+
}, Rl = ({
|
|
4567
4572
|
title: e,
|
|
4568
4573
|
filters: t,
|
|
4569
4574
|
onVisibilityChange: n,
|
|
@@ -4574,59 +4579,66 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4574
4579
|
pageKey: l,
|
|
4575
4580
|
currentFilters: c,
|
|
4576
4581
|
onLoadPreset: u,
|
|
4577
|
-
activePresetName:
|
|
4578
|
-
filterDrawerSize:
|
|
4579
|
-
}) =>
|
|
4580
|
-
|
|
4581
|
-
/* @__PURE__ */ a.jsxs(ae, {
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4582
|
+
activePresetName: f,
|
|
4583
|
+
filterDrawerSize: h = "sm"
|
|
4584
|
+
}) => {
|
|
4585
|
+
const [m, g] = K(!1);
|
|
4586
|
+
return /* @__PURE__ */ a.jsxs(ae, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4587
|
+
e,
|
|
4588
|
+
/* @__PURE__ */ a.jsxs(ae, { gapX: 1, children: [
|
|
4589
|
+
t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
|
|
4590
|
+
ae,
|
|
4591
|
+
{
|
|
4592
|
+
flex: v.size ?? 1,
|
|
4593
|
+
minW: `${(v.size ?? 1) * 100}px`,
|
|
4594
|
+
alignItems: "center",
|
|
4595
|
+
children: Br(v)
|
|
4596
|
+
},
|
|
4597
|
+
v.id
|
|
4598
|
+
)),
|
|
4599
|
+
/* @__PURE__ */ a.jsx(
|
|
4600
|
+
xl,
|
|
4601
|
+
{
|
|
4602
|
+
filterDrawerSize: h,
|
|
4603
|
+
onVisibilityChange: n,
|
|
4604
|
+
onReorder: r,
|
|
4605
|
+
onSizeChange: o,
|
|
4606
|
+
onClear: s,
|
|
4607
|
+
maxToolbarUnits: i,
|
|
4608
|
+
pageKey: l,
|
|
4609
|
+
filters: t,
|
|
4610
|
+
currentFilters: c,
|
|
4611
|
+
onLoadPreset: u,
|
|
4612
|
+
activePresetName: f,
|
|
4613
|
+
open: m,
|
|
4614
|
+
onOpenChange: (v) => {
|
|
4615
|
+
g(v.open);
|
|
4616
|
+
}
|
|
4617
|
+
}
|
|
4618
|
+
)
|
|
4619
|
+
] })
|
|
4620
|
+
] });
|
|
4621
|
+
}, Dl = (e, t) => {
|
|
4610
4622
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4611
|
-
},
|
|
4623
|
+
}, El = (e) => {
|
|
4612
4624
|
try {
|
|
4613
4625
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4614
4626
|
} catch {
|
|
4615
4627
|
return [];
|
|
4616
4628
|
}
|
|
4617
|
-
},
|
|
4629
|
+
}, jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4618
4630
|
__proto__: null
|
|
4619
4631
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4620
4632
|
export {
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4633
|
+
Cl as DataTable,
|
|
4634
|
+
Rl as Filters,
|
|
4635
|
+
jl as MdsSharedUi,
|
|
4636
|
+
Ja as addPreset,
|
|
4637
|
+
Ka as deletePreset,
|
|
4626
4638
|
Cn as getPresets,
|
|
4627
|
-
|
|
4639
|
+
El as loadOrder,
|
|
4628
4640
|
$t as presetStore,
|
|
4629
|
-
|
|
4641
|
+
Dl as saveOrder,
|
|
4630
4642
|
Hr as savePresets,
|
|
4631
4643
|
Vi as setData,
|
|
4632
4644
|
Yi as setTableId,
|