@mdspl/mds-shared-ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +915 -903
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import H, { useLayoutEffect as
|
|
2
|
-
import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as
|
|
3
|
-
import { unstable_batchedUpdates as St, createPortal 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
|
+
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
|
+
import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
|
|
4
4
|
var Ct = { exports: {} }, ot = {};
|
|
5
5
|
var Nn;
|
|
6
|
-
function
|
|
6
|
+
function io() {
|
|
7
7
|
if (Nn) return ot;
|
|
8
8
|
Nn = 1;
|
|
9
9
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -26,7 +26,7 @@ function so() {
|
|
|
26
26
|
}
|
|
27
27
|
var st = {};
|
|
28
28
|
var Mn;
|
|
29
|
-
function
|
|
29
|
+
function ao() {
|
|
30
30
|
return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
31
|
function e(p) {
|
|
32
32
|
if (p == null) return null;
|
|
@@ -34,13 +34,13 @@ function io() {
|
|
|
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 io() {
|
|
|
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 io() {
|
|
|
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 io() {
|
|
|
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 io() {
|
|
|
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 io() {
|
|
|
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
|
-
if (
|
|
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,261 +215,261 @@ 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
|
-
)(),
|
|
236
|
-
st.Fragment =
|
|
237
|
-
var k = 1e4 >
|
|
238
|
-
return
|
|
235
|
+
)(), ce = Re(r(s)), Oe = {};
|
|
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
|
-
k ? Re(r(p)) :
|
|
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,
|
|
254
|
-
k ? Re(r(p)) :
|
|
254
|
+
k ? Re(r(p)) : ce
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
257
|
})()), st;
|
|
258
258
|
}
|
|
259
259
|
var Ln;
|
|
260
|
-
function
|
|
261
|
-
return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports =
|
|
260
|
+
function lo() {
|
|
261
|
+
return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports = io() : Ct.exports = ao()), Ct.exports;
|
|
262
262
|
}
|
|
263
|
-
var a =
|
|
263
|
+
var a = lo(), Rt = { exports: {} }, Xt = {}, Dt = { exports: {} }, qt = {};
|
|
264
264
|
var $n;
|
|
265
|
-
function
|
|
265
|
+
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
|
-
function
|
|
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;
|
|
360
360
|
function fr() {
|
|
361
|
-
return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports =
|
|
361
|
+
return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports = co() : Dt.exports = uo()), Dt.exports;
|
|
362
362
|
}
|
|
363
363
|
var Fn;
|
|
364
|
-
function
|
|
364
|
+
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
|
-
function
|
|
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
|
}
|
|
467
467
|
var Yn;
|
|
468
|
-
function
|
|
469
|
-
return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports =
|
|
468
|
+
function go() {
|
|
469
|
+
return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = fo() : Rt.exports = ho()), Rt.exports;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
const an = /* @__PURE__ */ new WeakMap(),
|
|
471
|
+
var po = go();
|
|
472
|
+
const an = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), At = {
|
|
473
473
|
current: []
|
|
474
474
|
};
|
|
475
475
|
let Zt = !1;
|
|
@@ -479,7 +479,7 @@ function hr(e) {
|
|
|
479
479
|
if (At.current.includes(t))
|
|
480
480
|
continue;
|
|
481
481
|
At.current.push(t), t.recompute();
|
|
482
|
-
const n =
|
|
482
|
+
const n = vo.get(t);
|
|
483
483
|
if (n)
|
|
484
484
|
for (const r of n) {
|
|
485
485
|
const o = an.get(r);
|
|
@@ -487,7 +487,7 @@ function hr(e) {
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function bo(e) {
|
|
491
491
|
const t = {
|
|
492
492
|
prevVal: e.prevState,
|
|
493
493
|
currentVal: e.state
|
|
@@ -495,7 +495,7 @@ function vo(e) {
|
|
|
495
495
|
for (const n of e.listeners)
|
|
496
496
|
n(t);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function mo(e) {
|
|
499
499
|
const t = {
|
|
500
500
|
prevVal: e.prevState,
|
|
501
501
|
currentVal: e.state
|
|
@@ -503,7 +503,7 @@ function bo(e) {
|
|
|
503
503
|
for (const n of e.listeners)
|
|
504
504
|
n(t);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function xo(e) {
|
|
507
507
|
if (Et.add(e), !Zt)
|
|
508
508
|
try {
|
|
509
509
|
for (Zt = !0; Et.size > 0; ) {
|
|
@@ -511,7 +511,7 @@ function mo(e) {
|
|
|
511
511
|
Et.clear();
|
|
512
512
|
for (const n of t) {
|
|
513
513
|
const r = Hn.get(n) ?? n.prevState;
|
|
514
|
-
n.prevState = r,
|
|
514
|
+
n.prevState = r, bo(n);
|
|
515
515
|
}
|
|
516
516
|
for (const n of t) {
|
|
517
517
|
const r = an.get(n);
|
|
@@ -521,14 +521,14 @@ function mo(e) {
|
|
|
521
521
|
const r = an.get(n);
|
|
522
522
|
if (r)
|
|
523
523
|
for (const o of r)
|
|
524
|
-
|
|
524
|
+
mo(o);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
} finally {
|
|
528
528
|
Zt = !1, At.current = [], Hn.clear();
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function yo(e) {
|
|
532
532
|
return typeof e == "function";
|
|
533
533
|
}
|
|
534
534
|
class gr {
|
|
@@ -544,12 +544,12 @@ class gr {
|
|
|
544
544
|
}
|
|
545
545
|
setState(t) {
|
|
546
546
|
var n, r, o;
|
|
547
|
-
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
547
|
+
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : yo(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), xo(this);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
function vt(e, t = (r) => r, n = {}) {
|
|
551
|
-
const r = n.equal ??
|
|
552
|
-
return
|
|
551
|
+
const r = n.equal ?? wo;
|
|
552
|
+
return po.useSyncExternalStoreWithSelector(
|
|
553
553
|
e.subscribe,
|
|
554
554
|
() => e.state,
|
|
555
555
|
() => e.state,
|
|
@@ -557,7 +557,7 @@ function vt(e, t = (r) => r, n = {}) {
|
|
|
557
557
|
r
|
|
558
558
|
);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function wo(e, t) {
|
|
561
561
|
if (Object.is(e, t))
|
|
562
562
|
return !0;
|
|
563
563
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -589,7 +589,7 @@ function Bn(e) {
|
|
|
589
589
|
Object.getOwnPropertySymbols(e)
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function So() {
|
|
593
593
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
594
594
|
t[n] = arguments[n];
|
|
595
595
|
return N(
|
|
@@ -628,21 +628,21 @@ function pr(e) {
|
|
|
628
628
|
function Je(e) {
|
|
629
629
|
return e ? Ke(e) ? e.document : gn(e) ? pn(e) ? e : bt(e) || pr(e) ? e.ownerDocument : document : document : document;
|
|
630
630
|
}
|
|
631
|
-
const we = Ft ?
|
|
631
|
+
const we = Ft ? Qr : A;
|
|
632
632
|
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
|
-
function
|
|
643
|
-
const e = M(null), t =
|
|
642
|
+
function Co() {
|
|
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
|
}, {
|
|
@@ -707,7 +707,7 @@ function vr(e) {
|
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
709
|
const Xe = /* @__PURE__ */ vr(1), Nt = /* @__PURE__ */ vr(-1);
|
|
710
|
-
function
|
|
710
|
+
function Ro(e) {
|
|
711
711
|
return "clientX" in e && "clientY" in e;
|
|
712
712
|
}
|
|
713
713
|
function bn(e) {
|
|
@@ -718,7 +718,7 @@ function bn(e) {
|
|
|
718
718
|
} = te(e.target);
|
|
719
719
|
return t && e instanceof t;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Do(e) {
|
|
722
722
|
if (!e)
|
|
723
723
|
return !1;
|
|
724
724
|
const {
|
|
@@ -727,7 +727,7 @@ function Ro(e) {
|
|
|
727
727
|
return t && e instanceof t;
|
|
728
728
|
}
|
|
729
729
|
function cn(e) {
|
|
730
|
-
if (
|
|
730
|
+
if (Do(e)) {
|
|
731
731
|
if (e.touches && e.touches.length) {
|
|
732
732
|
const {
|
|
733
733
|
clientX: t,
|
|
@@ -748,7 +748,7 @@ function cn(e) {
|
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
return
|
|
751
|
+
return Ro(e) ? {
|
|
752
752
|
x: e.clientX,
|
|
753
753
|
y: e.clientY
|
|
754
754
|
} : null;
|
|
@@ -793,23 +793,23 @@ const qe = /* @__PURE__ */ Object.freeze({
|
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
}), Wn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
796
|
-
function
|
|
796
|
+
function Eo(e) {
|
|
797
797
|
return e.matches(Wn) ? e : e.querySelector(Wn);
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const jo = {
|
|
800
800
|
display: "none"
|
|
801
801
|
};
|
|
802
|
-
function
|
|
802
|
+
function _o(e) {
|
|
803
803
|
let {
|
|
804
804
|
id: t,
|
|
805
805
|
value: n
|
|
806
806
|
} = e;
|
|
807
807
|
return H.createElement("div", {
|
|
808
808
|
id: t,
|
|
809
|
-
style:
|
|
809
|
+
style: jo
|
|
810
810
|
}, n);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Oo(e) {
|
|
813
813
|
let {
|
|
814
814
|
id: t,
|
|
815
815
|
announcement: n,
|
|
@@ -837,17 +837,17 @@ function _o(e) {
|
|
|
837
837
|
"aria-atomic": !0
|
|
838
838
|
}, n);
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
const [e, t] =
|
|
840
|
+
function To() {
|
|
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
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
849
|
const br = /* @__PURE__ */ ht(null);
|
|
850
|
-
function
|
|
850
|
+
function Io(e) {
|
|
851
851
|
const t = ze(br);
|
|
852
852
|
A(() => {
|
|
853
853
|
if (!t)
|
|
@@ -855,9 +855,9 @@ function To(e) {
|
|
|
855
855
|
return t(e);
|
|
856
856
|
}, [e, t]);
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
const [e] =
|
|
860
|
-
return [
|
|
858
|
+
function Ao() {
|
|
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
|
|
@@ -868,13 +868,13 @@ function Io() {
|
|
|
868
868
|
});
|
|
869
869
|
}, [e]), t];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const ko = {
|
|
872
872
|
draggable: `
|
|
873
873
|
To pick up a draggable item, press the space bar.
|
|
874
874
|
While dragging, use the arrow keys to move the item.
|
|
875
875
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
876
876
|
`
|
|
877
|
-
},
|
|
877
|
+
}, No = {
|
|
878
878
|
onDragStart(e) {
|
|
879
879
|
let {
|
|
880
880
|
active: t
|
|
@@ -902,78 +902,78 @@ const Ao = {
|
|
|
902
902
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
|
-
function
|
|
905
|
+
function Mo(e) {
|
|
906
906
|
let {
|
|
907
|
-
announcements: t =
|
|
907
|
+
announcements: t = No,
|
|
908
908
|
container: n,
|
|
909
909
|
hiddenTextDescribedById: r,
|
|
910
|
-
screenReaderInstructions: o =
|
|
910
|
+
screenReaderInstructions: o = ko
|
|
911
911
|
} = e;
|
|
912
912
|
const {
|
|
913
913
|
announce: s,
|
|
914
914
|
announcement: i
|
|
915
|
-
} =
|
|
915
|
+
} = To(), l = xt("DndLiveRegion"), [c, u] = K(!1);
|
|
916
916
|
if (A(() => {
|
|
917
917
|
u(!0);
|
|
918
|
-
}, []),
|
|
919
|
-
onDragStart(
|
|
918
|
+
}, []), Io(N(() => ({
|
|
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
|
-
}), H.createElement(
|
|
972
|
+
}), H.createElement(Oo, {
|
|
973
973
|
id: l,
|
|
974
974
|
announcement: i
|
|
975
975
|
}));
|
|
976
|
-
return n ?
|
|
976
|
+
return n ? so(f, n) : f;
|
|
977
977
|
}
|
|
978
978
|
var Y;
|
|
979
979
|
(function(e) {
|
|
@@ -981,7 +981,7 @@ var Y;
|
|
|
981
981
|
})(Y || (Y = {}));
|
|
982
982
|
function Mt() {
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function Lo(e, t) {
|
|
985
985
|
return N(
|
|
986
986
|
() => ({
|
|
987
987
|
sensor: e,
|
|
@@ -991,7 +991,7 @@ function Mo(e, t) {
|
|
|
991
991
|
[e, t]
|
|
992
992
|
);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function $o() {
|
|
995
995
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
996
996
|
t[n] = arguments[n];
|
|
997
997
|
return N(
|
|
@@ -1004,10 +1004,10 @@ const ge = /* @__PURE__ */ Object.freeze({
|
|
|
1004
1004
|
x: 0,
|
|
1005
1005
|
y: 0
|
|
1006
1006
|
});
|
|
1007
|
-
function
|
|
1007
|
+
function Po(e, t) {
|
|
1008
1008
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function zo(e, t) {
|
|
1011
1011
|
let {
|
|
1012
1012
|
data: {
|
|
1013
1013
|
value: n
|
|
@@ -1019,7 +1019,7 @@ function Po(e, t) {
|
|
|
1019
1019
|
} = t;
|
|
1020
1020
|
return n - r;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function Fo(e, t) {
|
|
1023
1023
|
let {
|
|
1024
1024
|
data: {
|
|
1025
1025
|
value: n
|
|
@@ -1031,7 +1031,7 @@ function zo(e, t) {
|
|
|
1031
1031
|
} = t;
|
|
1032
1032
|
return r - n;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Vo(e, t) {
|
|
1035
1035
|
if (!e || e.length === 0)
|
|
1036
1036
|
return null;
|
|
1037
1037
|
const [n] = e;
|
|
@@ -1055,7 +1055,7 @@ const mr = (e) => {
|
|
|
1055
1055
|
id: l
|
|
1056
1056
|
} = i, c = n.get(l);
|
|
1057
1057
|
if (c) {
|
|
1058
|
-
const u =
|
|
1058
|
+
const u = Po(Un(c), o);
|
|
1059
1059
|
s.push({
|
|
1060
1060
|
id: l,
|
|
1061
1061
|
data: {
|
|
@@ -1065,17 +1065,17 @@ const mr = (e) => {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
return s.sort(
|
|
1068
|
+
return s.sort(zo);
|
|
1069
1069
|
};
|
|
1070
|
-
function
|
|
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
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const Ho = (e) => {
|
|
1079
1079
|
let {
|
|
1080
1080
|
collisionRect: t,
|
|
1081
1081
|
droppableRects: n,
|
|
@@ -1087,7 +1087,7 @@ const Yo = (e) => {
|
|
|
1087
1087
|
id: i
|
|
1088
1088
|
} = s, l = n.get(i);
|
|
1089
1089
|
if (l) {
|
|
1090
|
-
const c =
|
|
1090
|
+
const c = Yo(l, t);
|
|
1091
1091
|
c > 0 && o.push({
|
|
1092
1092
|
id: i,
|
|
1093
1093
|
data: {
|
|
@@ -1097,9 +1097,9 @@ const Yo = (e) => {
|
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
|
-
return o.sort(
|
|
1100
|
+
return o.sort(Fo);
|
|
1101
1101
|
};
|
|
1102
|
-
function
|
|
1102
|
+
function Bo(e, t, n) {
|
|
1103
1103
|
return {
|
|
1104
1104
|
...e,
|
|
1105
1105
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -1112,7 +1112,7 @@ function xr(e, t) {
|
|
|
1112
1112
|
y: e.top - t.top
|
|
1113
1113
|
} : ge;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Wo(e) {
|
|
1116
1116
|
return function(n) {
|
|
1117
1117
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
1118
1118
|
o[s - 1] = arguments[s];
|
|
@@ -1127,8 +1127,8 @@ function Bo(e) {
|
|
|
1127
1127
|
});
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1131
|
-
function
|
|
1130
|
+
const Uo = /* @__PURE__ */ Wo(1);
|
|
1131
|
+
function Go(e) {
|
|
1132
1132
|
if (e.startsWith("matrix3d(")) {
|
|
1133
1133
|
const t = e.slice(9, -1).split(/, /);
|
|
1134
1134
|
return {
|
|
@@ -1148,8 +1148,8 @@ function Uo(e) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
return null;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const r =
|
|
1151
|
+
function Xo(e, t, n) {
|
|
1152
|
+
const r = Go(t);
|
|
1153
1153
|
if (!r)
|
|
1154
1154
|
return e;
|
|
1155
1155
|
const {
|
|
@@ -1157,28 +1157,28 @@ function Go(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
|
}
|
|
1170
|
-
const
|
|
1170
|
+
const qo = {
|
|
1171
1171
|
ignoreTransform: !1
|
|
1172
1172
|
};
|
|
1173
1173
|
function Ze(e, t) {
|
|
1174
|
-
t === void 0 && (t =
|
|
1174
|
+
t === void 0 && (t = qo);
|
|
1175
1175
|
let n = e.getBoundingClientRect();
|
|
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 =
|
|
1181
|
+
u && (n = Xo(n, u, f));
|
|
1182
1182
|
}
|
|
1183
1183
|
const {
|
|
1184
1184
|
top: r,
|
|
@@ -1202,7 +1202,7 @@ function Gn(e) {
|
|
|
1202
1202
|
ignoreTransform: !0
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Ko(e) {
|
|
1206
1206
|
const t = e.innerWidth, n = e.innerHeight;
|
|
1207
1207
|
return {
|
|
1208
1208
|
top: 0,
|
|
@@ -1213,10 +1213,10 @@ function qo(e) {
|
|
|
1213
1213
|
height: n
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Jo(e, t) {
|
|
1217
1217
|
return t === void 0 && (t = te(e).getComputedStyle(e)), t.position === "fixed";
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Zo(e, t) {
|
|
1220
1220
|
t === void 0 && (t = te(e).getComputedStyle(e));
|
|
1221
1221
|
const n = /(auto|scroll|overlay)/;
|
|
1222
1222
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -1234,7 +1234,7 @@ function mn(e, t) {
|
|
|
1234
1234
|
if (!bt(o) || pr(o) || n.includes(o))
|
|
1235
1235
|
return n;
|
|
1236
1236
|
const s = te(e).getComputedStyle(o);
|
|
1237
|
-
return o !== e &&
|
|
1237
|
+
return o !== e && Zo(o, s) && n.push(o), Jo(o, s) ? n : r(o.parentNode);
|
|
1238
1238
|
}
|
|
1239
1239
|
return e ? r(e) : n;
|
|
1240
1240
|
}
|
|
@@ -1287,39 +1287,39 @@ function Rr(e) {
|
|
|
1287
1287
|
minScroll: t
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|
|
1290
|
-
const
|
|
1290
|
+
const Qo = {
|
|
1291
1291
|
x: 0.2,
|
|
1292
1292
|
y: 0.2
|
|
1293
1293
|
};
|
|
1294
|
-
function
|
|
1294
|
+
function es(e, t, n, r, o) {
|
|
1295
1295
|
let {
|
|
1296
1296
|
top: s,
|
|
1297
1297
|
left: i,
|
|
1298
1298
|
right: l,
|
|
1299
1299
|
bottom: c
|
|
1300
1300
|
} = n;
|
|
1301
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
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
|
-
function
|
|
1322
|
+
function ts(e) {
|
|
1323
1323
|
if (e === document.scrollingElement) {
|
|
1324
1324
|
const {
|
|
1325
1325
|
innerWidth: s,
|
|
@@ -1352,13 +1352,13 @@ function es(e) {
|
|
|
1352
1352
|
function Dr(e) {
|
|
1353
1353
|
return e.reduce((t, n) => Xe(t, un(n)), ge);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function ns(e) {
|
|
1356
1356
|
return e.reduce((t, n) => t + wr(n), 0);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function rs(e) {
|
|
1359
1359
|
return e.reduce((t, n) => t + Sr(n), 0);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function os(e, t) {
|
|
1362
1362
|
if (t === void 0 && (t = Ze), !e)
|
|
1363
1363
|
return;
|
|
1364
1364
|
const {
|
|
@@ -1372,7 +1372,7 @@ function rs(e, t) {
|
|
|
1372
1372
|
inline: "center"
|
|
1373
1373
|
});
|
|
1374
1374
|
}
|
|
1375
|
-
const
|
|
1375
|
+
const ss = [["x", ["left", "right"], ns], ["y", ["top", "bottom"], rs]];
|
|
1376
1376
|
class xn {
|
|
1377
1377
|
constructor(t, n) {
|
|
1378
1378
|
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;
|
|
@@ -1380,12 +1380,12 @@ class xn {
|
|
|
1380
1380
|
this.rect = {
|
|
1381
1381
|
...t
|
|
1382
1382
|
}, this.width = t.width, this.height = t.height;
|
|
1383
|
-
for (const [s, i, l] of
|
|
1383
|
+
for (const [s, i, l] of ss)
|
|
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
|
});
|
|
@@ -1408,7 +1408,7 @@ class lt {
|
|
|
1408
1408
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function is(e) {
|
|
1412
1412
|
const {
|
|
1413
1413
|
EventTarget: t
|
|
1414
1414
|
} = te(e);
|
|
@@ -1418,14 +1418,14 @@ function tn(e, t) {
|
|
|
1418
1418
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1419
1419
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
1420
1420
|
}
|
|
1421
|
-
var
|
|
1421
|
+
var de;
|
|
1422
1422
|
(function(e) {
|
|
1423
1423
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1424
|
-
})(
|
|
1424
|
+
})(de || (de = {}));
|
|
1425
1425
|
function Xn(e) {
|
|
1426
1426
|
e.preventDefault();
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function as(e) {
|
|
1429
1429
|
e.stopPropagation();
|
|
1430
1430
|
}
|
|
1431
1431
|
var T;
|
|
@@ -1436,7 +1436,7 @@ const Er = {
|
|
|
1436
1436
|
start: [T.Space, T.Enter],
|
|
1437
1437
|
cancel: [T.Esc],
|
|
1438
1438
|
end: [T.Space, T.Enter, T.Tab]
|
|
1439
|
-
},
|
|
1439
|
+
}, ls = (e, t) => {
|
|
1440
1440
|
let {
|
|
1441
1441
|
currentCoordinates: n
|
|
1442
1442
|
} = t;
|
|
@@ -1474,14 +1474,14 @@ class jr {
|
|
|
1474
1474
|
this.props = t, this.listeners = new lt(Je(n)), this.windowListeners = new lt(te(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1475
1475
|
}
|
|
1476
1476
|
attach() {
|
|
1477
|
-
this.handleStart(), this.windowListeners.add(
|
|
1477
|
+
this.handleStart(), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(de.Keydown, this.handleKeyDown));
|
|
1478
1478
|
}
|
|
1479
1479
|
handleStart() {
|
|
1480
1480
|
const {
|
|
1481
1481
|
activeNode: t,
|
|
1482
1482
|
onStart: n
|
|
1483
1483
|
} = this.props, r = t.node.current;
|
|
1484
|
-
r &&
|
|
1484
|
+
r && os(r), n(ge);
|
|
1485
1485
|
}
|
|
1486
1486
|
handleKeyDown(t) {
|
|
1487
1487
|
if (bn(t)) {
|
|
@@ -1491,7 +1491,7 @@ class jr {
|
|
|
1491
1491
|
options: o
|
|
1492
1492
|
} = this.props, {
|
|
1493
1493
|
keyboardCodes: s = Er,
|
|
1494
|
-
coordinateGetter: i =
|
|
1494
|
+
coordinateGetter: i = ls,
|
|
1495
1495
|
scrollBehavior: l = "smooth"
|
|
1496
1496
|
} = o, {
|
|
1497
1497
|
code: c
|
|
@@ -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
|
}
|
|
@@ -1621,7 +1621,7 @@ function Kn(e) {
|
|
|
1621
1621
|
class yn {
|
|
1622
1622
|
constructor(t, n, r) {
|
|
1623
1623
|
var o;
|
|
1624
|
-
r === void 0 && (r =
|
|
1624
|
+
r === void 0 && (r = is(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
1625
1625
|
const {
|
|
1626
1626
|
event: s
|
|
1627
1627
|
} = t, {
|
|
@@ -1641,7 +1641,7 @@ class yn {
|
|
|
1641
1641
|
} = this;
|
|
1642
1642
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1643
1643
|
passive: !1
|
|
1644
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
1644
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.DragStart, Xn), this.windowListeners.add(de.VisibilityChange, this.handleCancel), this.windowListeners.add(de.ContextMenu, Xn), this.documentListeners.add(de.Keydown, this.handleKeydown), n) {
|
|
1645
1645
|
if (r != null && r({
|
|
1646
1646
|
event: this.props.event,
|
|
1647
1647
|
activeNode: this.props.activeNode,
|
|
@@ -1675,9 +1675,9 @@ class yn {
|
|
|
1675
1675
|
} = this, {
|
|
1676
1676
|
onStart: n
|
|
1677
1677
|
} = this.props;
|
|
1678
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
1678
|
+
t && (this.activated = !0, this.documentListeners.add(de.Click, as, {
|
|
1679
1679
|
capture: !0
|
|
1680
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
1680
|
+
}), this.removeTextSelection(), this.documentListeners.add(de.SelectionChange, this.removeTextSelection), n(t));
|
|
1681
1681
|
}
|
|
1682
1682
|
handleMove(t) {
|
|
1683
1683
|
var n;
|
|
@@ -1730,7 +1730,7 @@ class yn {
|
|
|
1730
1730
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
const
|
|
1733
|
+
const cs = {
|
|
1734
1734
|
cancel: {
|
|
1735
1735
|
name: "pointercancel"
|
|
1736
1736
|
},
|
|
@@ -1746,7 +1746,7 @@ class wn extends yn {
|
|
|
1746
1746
|
const {
|
|
1747
1747
|
event: n
|
|
1748
1748
|
} = t, r = Je(n.target);
|
|
1749
|
-
super(t,
|
|
1749
|
+
super(t, cs, r);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
wn.activators = [{
|
|
@@ -1762,7 +1762,7 @@ wn.activators = [{
|
|
|
1762
1762
|
}), !0);
|
|
1763
1763
|
}
|
|
1764
1764
|
}];
|
|
1765
|
-
const
|
|
1765
|
+
const us = {
|
|
1766
1766
|
move: {
|
|
1767
1767
|
name: "mousemove"
|
|
1768
1768
|
},
|
|
@@ -1774,12 +1774,12 @@ var dn;
|
|
|
1774
1774
|
(function(e) {
|
|
1775
1775
|
e[e.RightClick = 2] = "RightClick";
|
|
1776
1776
|
})(dn || (dn = {}));
|
|
1777
|
-
class
|
|
1777
|
+
class ds extends yn {
|
|
1778
1778
|
constructor(t) {
|
|
1779
|
-
super(t,
|
|
1779
|
+
super(t, us, Je(t.event.target));
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
|
-
|
|
1782
|
+
ds.activators = [{
|
|
1783
1783
|
eventName: "onMouseDown",
|
|
1784
1784
|
handler: (e, t) => {
|
|
1785
1785
|
let {
|
|
@@ -1803,7 +1803,7 @@ const nn = {
|
|
|
1803
1803
|
name: "touchend"
|
|
1804
1804
|
}
|
|
1805
1805
|
};
|
|
1806
|
-
class
|
|
1806
|
+
class fs extends yn {
|
|
1807
1807
|
constructor(t) {
|
|
1808
1808
|
super(t, nn);
|
|
1809
1809
|
}
|
|
@@ -1818,7 +1818,7 @@ class ds extends yn {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
|
|
1821
|
+
fs.activators = [{
|
|
1822
1822
|
eventName: "onTouchStart",
|
|
1823
1823
|
handler: (e, t) => {
|
|
1824
1824
|
let {
|
|
@@ -1842,7 +1842,7 @@ var Lt;
|
|
|
1842
1842
|
(function(e) {
|
|
1843
1843
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1844
1844
|
})(Lt || (Lt = {}));
|
|
1845
|
-
function
|
|
1845
|
+
function hs(e) {
|
|
1846
1846
|
let {
|
|
1847
1847
|
acceleration: t,
|
|
1848
1848
|
activator: n = ct.Pointer,
|
|
@@ -1853,14 +1853,14 @@ function fs(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,66 +1878,66 @@ function fs(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
|
-
} =
|
|
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
|
}
|
|
1940
|
-
const
|
|
1940
|
+
const gs = {
|
|
1941
1941
|
x: {
|
|
1942
1942
|
[B.Backward]: !1,
|
|
1943
1943
|
[B.Forward]: !1
|
|
@@ -1947,7 +1947,7 @@ const hs = {
|
|
|
1947
1947
|
[B.Forward]: !1
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
|
-
function
|
|
1950
|
+
function ps(e) {
|
|
1951
1951
|
let {
|
|
1952
1952
|
delta: t,
|
|
1953
1953
|
disabled: n
|
|
@@ -1955,7 +1955,7 @@ function gs(e) {
|
|
|
1955
1955
|
const r = ln(t);
|
|
1956
1956
|
return mt((o) => {
|
|
1957
1957
|
if (n || !r || !o)
|
|
1958
|
-
return
|
|
1958
|
+
return gs;
|
|
1959
1959
|
const s = {
|
|
1960
1960
|
x: Math.sign(t.x - r.x),
|
|
1961
1961
|
y: Math.sign(t.y - r.y)
|
|
@@ -1972,14 +1972,14 @@ function gs(e) {
|
|
|
1972
1972
|
};
|
|
1973
1973
|
}, [n, t, r]);
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function vs(e, t) {
|
|
1976
1976
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1977
1977
|
return mt((o) => {
|
|
1978
1978
|
var s;
|
|
1979
1979
|
return t == null ? null : (s = r ?? o) != null ? s : null;
|
|
1980
1980
|
}, [r, t]);
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function bs(e, t) {
|
|
1983
1983
|
return N(() => e.reduce((n, r) => {
|
|
1984
1984
|
const {
|
|
1985
1985
|
sensor: o
|
|
@@ -1999,22 +1999,22 @@ var fn;
|
|
|
1999
1999
|
e.Optimized = "optimized";
|
|
2000
2000
|
})(fn || (fn = {}));
|
|
2001
2001
|
const Jn = /* @__PURE__ */ new Map();
|
|
2002
|
-
function
|
|
2002
|
+
function ms(e, t) {
|
|
2003
2003
|
let {
|
|
2004
2004
|
dragging: n,
|
|
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 bs(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 bs(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;
|
|
@@ -2071,10 +2071,10 @@ function bs(e, t) {
|
|
|
2071
2071
|
function _r(e, t) {
|
|
2072
2072
|
return mt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function xs(e, t) {
|
|
2075
2075
|
return _r(e, t);
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function ys(e) {
|
|
2078
2078
|
let {
|
|
2079
2079
|
callback: t,
|
|
2080
2080
|
disabled: n
|
|
@@ -2108,12 +2108,12 @@ function Vt(e) {
|
|
|
2108
2108
|
);
|
|
2109
2109
|
return A(() => () => o?.disconnect(), [o]), o;
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function ws(e) {
|
|
2112
2112
|
return new xn(Ze(e), e);
|
|
2113
2113
|
}
|
|
2114
2114
|
function Zn(e, t, n) {
|
|
2115
|
-
t === void 0 && (t =
|
|
2116
|
-
const [r, o] =
|
|
2115
|
+
t === void 0 && (t = ws);
|
|
2116
|
+
const [r, o] = K(null);
|
|
2117
2117
|
function s() {
|
|
2118
2118
|
o((c) => {
|
|
2119
2119
|
if (!e)
|
|
@@ -2122,19 +2122,19 @@ 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
|
-
const i =
|
|
2129
|
+
const i = ys({
|
|
2130
2130
|
callback(c) {
|
|
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
|
}
|
|
@@ -2150,19 +2150,19 @@ function Zn(e, t, n) {
|
|
|
2150
2150
|
})) : (l?.disconnect(), i?.disconnect());
|
|
2151
2151
|
}, [e]), r;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Ss(e) {
|
|
2154
2154
|
const t = _r(e);
|
|
2155
2155
|
return xr(e, t);
|
|
2156
2156
|
}
|
|
2157
2157
|
const Qn = [];
|
|
2158
|
-
function
|
|
2158
|
+
function Cs(e) {
|
|
2159
2159
|
const t = M(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
|
|
2160
2160
|
return A(() => {
|
|
2161
2161
|
t.current = e;
|
|
2162
2162
|
}, [e]), n;
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2165
|
-
const [t, n] =
|
|
2164
|
+
function Rs(e) {
|
|
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
|
}, []);
|
|
@@ -2203,7 +2203,7 @@ function er(e, t) {
|
|
|
2203
2203
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
2204
2204
|
}, [e]), n.current ? Nt(e, n.current) : ge;
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function Ds(e) {
|
|
2207
2207
|
A(
|
|
2208
2208
|
() => {
|
|
2209
2209
|
if (!Ft)
|
|
@@ -2229,7 +2229,7 @@ function Rs(e) {
|
|
|
2229
2229
|
})
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Es(e, t) {
|
|
2233
2233
|
return N(() => e.reduce((n, r) => {
|
|
2234
2234
|
let {
|
|
2235
2235
|
eventName: o,
|
|
@@ -2241,12 +2241,12 @@ function Ds(e, t) {
|
|
|
2241
2241
|
}, {}), [e, t]);
|
|
2242
2242
|
}
|
|
2243
2243
|
function Or(e) {
|
|
2244
|
-
return N(() => e ?
|
|
2244
|
+
return N(() => e ? Ko(e) : null, [e]);
|
|
2245
2245
|
}
|
|
2246
2246
|
const tr = [];
|
|
2247
|
-
function
|
|
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
|
}
|
|
@@ -2257,7 +2257,7 @@ function Es(e, t) {
|
|
|
2257
2257
|
l?.disconnect(), i(), e.forEach((c) => l?.observe(c));
|
|
2258
2258
|
}, [e]), o;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function _s(e) {
|
|
2261
2261
|
if (!e)
|
|
2262
2262
|
return null;
|
|
2263
2263
|
if (e.children.length > 1)
|
|
@@ -2265,30 +2265,30 @@ function js(e) {
|
|
|
2265
2265
|
const t = e.children[0];
|
|
2266
2266
|
return bt(t) ? t : e;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
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,
|
|
@@ -2296,13 +2296,13 @@ function _s(e) {
|
|
|
2296
2296
|
setRef: c
|
|
2297
2297
|
}), [n, l, c]);
|
|
2298
2298
|
}
|
|
2299
|
-
const
|
|
2299
|
+
const Ts = [{
|
|
2300
2300
|
sensor: wn,
|
|
2301
2301
|
options: {}
|
|
2302
2302
|
}, {
|
|
2303
2303
|
sensor: jr,
|
|
2304
2304
|
options: {}
|
|
2305
|
-
}],
|
|
2305
|
+
}], Is = {
|
|
2306
2306
|
current: {}
|
|
2307
2307
|
}, Tt = {
|
|
2308
2308
|
draggable: {
|
|
@@ -2338,7 +2338,7 @@ class ut extends Map {
|
|
|
2338
2338
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
const
|
|
2341
|
+
const As = {
|
|
2342
2342
|
activatorEvent: null,
|
|
2343
2343
|
active: null,
|
|
2344
2344
|
activeNode: null,
|
|
@@ -2362,7 +2362,7 @@ const Is = {
|
|
|
2362
2362
|
measureDroppableContainers: Mt,
|
|
2363
2363
|
windowRect: null,
|
|
2364
2364
|
measuringScheduled: !1
|
|
2365
|
-
},
|
|
2365
|
+
}, ks = {
|
|
2366
2366
|
activatorEvent: null,
|
|
2367
2367
|
activators: [],
|
|
2368
2368
|
active: null,
|
|
@@ -2374,8 +2374,8 @@ const Is = {
|
|
|
2374
2374
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2375
2375
|
over: null,
|
|
2376
2376
|
measureDroppableContainers: Mt
|
|
2377
|
-
}, Yt = /* @__PURE__ */ ht(
|
|
2378
|
-
function
|
|
2377
|
+
}, Yt = /* @__PURE__ */ ht(ks), Tr = /* @__PURE__ */ ht(As);
|
|
2378
|
+
function Ns() {
|
|
2379
2379
|
return {
|
|
2380
2380
|
draggable: {
|
|
2381
2381
|
active: null,
|
|
@@ -2394,7 +2394,7 @@ function ks() {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Ms(e, t) {
|
|
2398
2398
|
switch (t.type) {
|
|
2399
2399
|
case Y.DragStart:
|
|
2400
2400
|
return {
|
|
@@ -2487,7 +2487,7 @@ function Ns(e, t) {
|
|
|
2487
2487
|
return e;
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function Ls(e) {
|
|
2491
2491
|
let {
|
|
2492
2492
|
disabled: t
|
|
2493
2493
|
} = e;
|
|
@@ -2510,12 +2510,12 @@ function Ms(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
|
}
|
|
@@ -2523,7 +2523,7 @@ function Ms(e) {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}, [r, t, o, i, s]), null;
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function $s(e, t) {
|
|
2527
2527
|
let {
|
|
2528
2528
|
transform: n,
|
|
2529
2529
|
...r
|
|
@@ -2533,7 +2533,7 @@ function Ls(e, t) {
|
|
|
2533
2533
|
...r
|
|
2534
2534
|
}), n) : n;
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function Ps(e) {
|
|
2537
2537
|
return N(
|
|
2538
2538
|
() => ({
|
|
2539
2539
|
draggable: {
|
|
@@ -2553,7 +2553,7 @@ function $s(e) {
|
|
|
2553
2553
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
2554
2554
|
);
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function zs(e) {
|
|
2557
2557
|
let {
|
|
2558
2558
|
activeNode: t,
|
|
2559
2559
|
measure: n,
|
|
@@ -2577,12 +2577,12 @@ function Ps(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]);
|
|
@@ -2596,20 +2596,20 @@ var Me;
|
|
|
2596
2596
|
(function(e) {
|
|
2597
2597
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2598
2598
|
})(Me || (Me = {}));
|
|
2599
|
-
const Ar = /* @__PURE__ */
|
|
2599
|
+
const Ar = /* @__PURE__ */ eo(function(t) {
|
|
2600
2600
|
var n, r, o, s;
|
|
2601
2601
|
let {
|
|
2602
2602
|
id: i,
|
|
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__ */ Qr(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(() => {
|
|
@@ -2626,25 +2626,25 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2626
2626
|
return E != null ? {
|
|
2627
2627
|
id: E,
|
|
2628
2628
|
// It's possible for the active node to unmount while dragging
|
|
2629
|
-
data: (q = L?.data) != null ? q :
|
|
2630
|
-
rect:
|
|
2629
|
+
data: (q = L?.data) != null ? q : Is,
|
|
2630
|
+
rect: Z
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [E, L]),
|
|
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
|
-
} =
|
|
2637
|
-
dragging:
|
|
2636
|
+
} = ms(p, {
|
|
2637
|
+
dragging: D,
|
|
2638
2638
|
dependencies: [$.x, $.y],
|
|
2639
|
-
config:
|
|
2640
|
-
}), X =
|
|
2641
|
-
|
|
2639
|
+
config: R.droppable
|
|
2640
|
+
}), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Q = Zr(), re = xs(X, R.draggable.measure);
|
|
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,
|
|
@@ -2658,9 +2658,9 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2658
2658
|
over: null,
|
|
2659
2659
|
scrollableAncestors: [],
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
|
-
}), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De =
|
|
2662
|
-
measure:
|
|
2663
|
-
}), Ye = (r = De.nodeRef.current) != null ? r : X, He =
|
|
2661
|
+
}), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = Os({
|
|
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,26 +2677,26 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2677
2677
|
scrollableAncestors: Te,
|
|
2678
2678
|
scrollableAncestorRects: yt,
|
|
2679
2679
|
windowRect: Bt
|
|
2680
|
-
}), En = P ? Xe(P, $) : null, jn =
|
|
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 =
|
|
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,
|
|
2690
2690
|
options: Ae
|
|
2691
2691
|
} = oe;
|
|
2692
|
-
if (
|
|
2692
|
+
if (le.current == null)
|
|
2693
2693
|
return;
|
|
2694
|
-
const
|
|
2695
|
-
if (!
|
|
2694
|
+
const ue = _.get(le.current);
|
|
2695
|
+
if (!ue)
|
|
2696
2696
|
return;
|
|
2697
2697
|
const ie = q.nativeEvent, me = new se({
|
|
2698
|
-
active:
|
|
2699
|
-
activeNode:
|
|
2698
|
+
active: le.current,
|
|
2699
|
+
activeNode: ue,
|
|
2700
2700
|
event: ie,
|
|
2701
2701
|
options: Ae,
|
|
2702
2702
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
@@ -2707,7 +2707,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2707
2707
|
return;
|
|
2708
2708
|
const {
|
|
2709
2709
|
onDragAbort: xe
|
|
2710
|
-
} =
|
|
2710
|
+
} = ce.current, Ee = {
|
|
2711
2711
|
id: W
|
|
2712
2712
|
};
|
|
2713
2713
|
xe?.(Ee), w({
|
|
@@ -2720,7 +2720,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2720
2720
|
return;
|
|
2721
2721
|
const {
|
|
2722
2722
|
onDragPending: nt
|
|
2723
|
-
} =
|
|
2723
|
+
} = ce.current, Ne = {
|
|
2724
2724
|
id: W,
|
|
2725
2725
|
constraint: ke,
|
|
2726
2726
|
initialCoordinates: xe,
|
|
@@ -2732,7 +2732,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2732
2732
|
});
|
|
2733
2733
|
},
|
|
2734
2734
|
onStart(W) {
|
|
2735
|
-
const ke =
|
|
2735
|
+
const ke = le.current;
|
|
2736
2736
|
if (ke == null)
|
|
2737
2737
|
return;
|
|
2738
2738
|
const xe = _.get(ke);
|
|
@@ -2740,12 +2740,12 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2740
2740
|
return;
|
|
2741
2741
|
const {
|
|
2742
2742
|
onDragStart: Ee
|
|
2743
|
-
} =
|
|
2743
|
+
} = ce.current, tt = {
|
|
2744
2744
|
activatorEvent: ie,
|
|
2745
2745
|
active: {
|
|
2746
2746
|
id: ke,
|
|
2747
2747
|
data: xe.data,
|
|
2748
|
-
rect:
|
|
2748
|
+
rect: Z
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
2751
|
St(() => {
|
|
@@ -2781,7 +2781,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2781
2781
|
if (xe && nt) {
|
|
2782
2782
|
const {
|
|
2783
2783
|
cancelDrop: rt
|
|
2784
|
-
} =
|
|
2784
|
+
} = ce.current;
|
|
2785
2785
|
Ne = {
|
|
2786
2786
|
activatorEvent: ie,
|
|
2787
2787
|
active: xe,
|
|
@@ -2790,13 +2790,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2790
2790
|
over: tt
|
|
2791
2791
|
}, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Ne)) && (W = Y.DragCancel);
|
|
2792
2792
|
}
|
|
2793
|
-
|
|
2793
|
+
le.current = null, St(() => {
|
|
2794
2794
|
x({
|
|
2795
2795
|
type: W
|
|
2796
2796
|
}), j(Me.Uninitialized), On(null), $e(null), Pe(null), Wt.current = null;
|
|
2797
2797
|
const rt = W === Y.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2798
2798
|
if (Ne) {
|
|
2799
|
-
const Ut =
|
|
2799
|
+
const Ut = ce.current[rt];
|
|
2800
2800
|
Ut?.(Ne), w({
|
|
2801
2801
|
type: rt,
|
|
2802
2802
|
event: Ne
|
|
@@ -2808,33 +2808,33 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2808
2808
|
},
|
|
2809
2809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2810
2810
|
[_]
|
|
2811
|
-
),
|
|
2812
|
-
const
|
|
2811
|
+
), qr = J((q, oe) => (se, Ae) => {
|
|
2812
|
+
const ue = se.nativeEvent, ie = _.get(Ae);
|
|
2813
2813
|
if (
|
|
2814
2814
|
// Another sensor is already instantiating
|
|
2815
|
-
|
|
2815
|
+
le.current !== null || // No active draggable
|
|
2816
2816
|
!ie || // Event has already been captured
|
|
2817
|
-
|
|
2817
|
+
ue.dndKit || ue.defaultPrevented
|
|
2818
2818
|
)
|
|
2819
2819
|
return;
|
|
2820
2820
|
const me = {
|
|
2821
2821
|
active: ie
|
|
2822
2822
|
};
|
|
2823
|
-
q(se, oe.options, me) === !0 && (
|
|
2823
|
+
q(se, oe.options, me) === !0 && (ue.dndKit = {
|
|
2824
2824
|
capturedBy: oe.sensor
|
|
2825
|
-
},
|
|
2826
|
-
}, [_, Tn]), In =
|
|
2827
|
-
|
|
2828
|
-
I &&
|
|
2829
|
-
}, [I,
|
|
2825
|
+
}, le.current = Ae, Tn(se, oe));
|
|
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
|
|
2833
|
-
} =
|
|
2833
|
+
} = ce.current, {
|
|
2834
2834
|
active: oe,
|
|
2835
2835
|
activatorEvent: se,
|
|
2836
2836
|
collisions: Ae,
|
|
2837
|
-
over:
|
|
2837
|
+
over: ue
|
|
2838
2838
|
} = be.current;
|
|
2839
2839
|
if (!oe || !se)
|
|
2840
2840
|
return;
|
|
@@ -2846,7 +2846,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2846
2846
|
x: Be.x,
|
|
2847
2847
|
y: Be.y
|
|
2848
2848
|
},
|
|
2849
|
-
over:
|
|
2849
|
+
over: ue
|
|
2850
2850
|
};
|
|
2851
2851
|
St(() => {
|
|
2852
2852
|
q?.(ie), w({
|
|
@@ -2864,13 +2864,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2864
2864
|
activatorEvent: oe,
|
|
2865
2865
|
collisions: se,
|
|
2866
2866
|
droppableContainers: Ae,
|
|
2867
|
-
scrollAdjustedTranslate:
|
|
2867
|
+
scrollAdjustedTranslate: ue
|
|
2868
2868
|
} = be.current;
|
|
2869
|
-
if (!q ||
|
|
2869
|
+
if (!q || le.current == null || !oe || !ue)
|
|
2870
2870
|
return;
|
|
2871
2871
|
const {
|
|
2872
2872
|
onDragOver: ie
|
|
2873
|
-
} =
|
|
2873
|
+
} = ce.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
|
|
2874
2874
|
id: me.id,
|
|
2875
2875
|
rect: me.rect.current,
|
|
2876
2876
|
data: me.data,
|
|
@@ -2880,8 +2880,8 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2880
2880
|
activatorEvent: oe,
|
|
2881
2881
|
collisions: se,
|
|
2882
2882
|
delta: {
|
|
2883
|
-
x:
|
|
2884
|
-
y:
|
|
2883
|
+
x: ue.x,
|
|
2884
|
+
y: ue.y
|
|
2885
2885
|
},
|
|
2886
2886
|
over: Ue
|
|
2887
2887
|
};
|
|
@@ -2909,19 +2909,19 @@ const Ar = /* @__PURE__ */ Qr(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
|
-
}, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]),
|
|
2917
|
-
...
|
|
2916
|
+
}, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), hs({
|
|
2917
|
+
...Q,
|
|
2918
2918
|
delta: $,
|
|
2919
2919
|
draggingRect: We,
|
|
2920
2920
|
pointerCoordinates: En,
|
|
2921
2921
|
scrollableAncestors: Te,
|
|
2922
2922
|
scrollableAncestorRects: yt
|
|
2923
2923
|
});
|
|
2924
|
-
const
|
|
2924
|
+
const Kr = N(() => ({
|
|
2925
2925
|
active: ee,
|
|
2926
2926
|
activeNode: X,
|
|
2927
2927
|
activeNodeRect: I,
|
|
@@ -2936,10 +2936,10 @@ const Ar = /* @__PURE__ */ Qr(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,
|
|
@@ -2955,19 +2955,19 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2955
2955
|
return H.createElement(br.Provider, {
|
|
2956
2956
|
value: S
|
|
2957
2957
|
}, H.createElement(Yt.Provider, {
|
|
2958
|
-
value:
|
|
2958
|
+
value: Jr
|
|
2959
2959
|
}, H.createElement(Tr.Provider, {
|
|
2960
|
-
value:
|
|
2960
|
+
value: Kr
|
|
2961
2961
|
}, H.createElement(Ir.Provider, {
|
|
2962
|
-
value:
|
|
2963
|
-
}, u)), H.createElement(
|
|
2962
|
+
value: Xr
|
|
2963
|
+
}, u)), H.createElement(Ls, {
|
|
2964
2964
|
disabled: l?.restoreFocus === !1
|
|
2965
|
-
})), H.createElement(
|
|
2965
|
+
})), H.createElement(Mo, {
|
|
2966
2966
|
...l,
|
|
2967
2967
|
hiddenTextDescribedById: Oe
|
|
2968
2968
|
}));
|
|
2969
|
-
function
|
|
2970
|
-
const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se =
|
|
2969
|
+
function Zr() {
|
|
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
|
|
@@ -2975,110 +2975,110 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
|
|
|
2975
2975
|
enabled: se
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
|
-
}),
|
|
2979
|
-
function
|
|
2978
|
+
}), Fs = /* @__PURE__ */ ht(null), nr = "button", Vs = "Draggable";
|
|
2979
|
+
function Ys(e) {
|
|
2980
2980
|
let {
|
|
2981
2981
|
id: t,
|
|
2982
2982
|
data: n,
|
|
2983
2983
|
disabled: r = !1,
|
|
2984
2984
|
attributes: o
|
|
2985
2985
|
} = e;
|
|
2986
|
-
const s = xt(
|
|
2986
|
+
const s = xt(Vs), {
|
|
2987
2987
|
activators: i,
|
|
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
|
|
3033
3033
|
};
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Hs() {
|
|
3036
3036
|
return ze(Tr);
|
|
3037
3037
|
}
|
|
3038
|
-
const
|
|
3038
|
+
const Bs = "Droppable", Ws = {
|
|
3039
3039
|
timeout: 25
|
|
3040
3040
|
};
|
|
3041
|
-
function
|
|
3041
|
+
function Us(e) {
|
|
3042
3042
|
let {
|
|
3043
3043
|
data: t,
|
|
3044
3044
|
disabled: n = !1,
|
|
3045
3045
|
id: r,
|
|
3046
3046
|
resizeObserverConfig: o
|
|
3047
3047
|
} = e;
|
|
3048
|
-
const s = xt(
|
|
3048
|
+
const s = xt(Bs), {
|
|
3049
3049
|
active: i,
|
|
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 Ws(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,26 +3098,26 @@ function Ws(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) {
|
|
3117
3117
|
const r = e.slice();
|
|
3118
3118
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function Gs(e, t) {
|
|
3121
3121
|
return e.reduce((n, r, o) => {
|
|
3122
3122
|
const s = t.get(r);
|
|
3123
3123
|
return s && (n[o] = s), n;
|
|
@@ -3126,7 +3126,7 @@ function Us(e, t) {
|
|
|
3126
3126
|
function jt(e) {
|
|
3127
3127
|
return e !== null && e >= 0;
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Xs(e, t) {
|
|
3130
3130
|
if (e === t)
|
|
3131
3131
|
return !0;
|
|
3132
3132
|
if (e.length !== t.length)
|
|
@@ -3136,7 +3136,7 @@ function Gs(e, t) {
|
|
|
3136
3136
|
return !1;
|
|
3137
3137
|
return !0;
|
|
3138
3138
|
}
|
|
3139
|
-
function
|
|
3139
|
+
function qs(e) {
|
|
3140
3140
|
return typeof e == "boolean" ? {
|
|
3141
3141
|
draggable: e,
|
|
3142
3142
|
droppable: e
|
|
@@ -3145,7 +3145,7 @@ function Xs(e) {
|
|
|
3145
3145
|
const _t = {
|
|
3146
3146
|
scaleX: 1,
|
|
3147
3147
|
scaleY: 1
|
|
3148
|
-
},
|
|
3148
|
+
}, Ks = (e) => {
|
|
3149
3149
|
var t;
|
|
3150
3150
|
let {
|
|
3151
3151
|
rects: n,
|
|
@@ -3157,7 +3157,7 @@ const _t = {
|
|
|
3157
3157
|
const l = (t = n[o]) != null ? t : r;
|
|
3158
3158
|
if (!l)
|
|
3159
3159
|
return null;
|
|
3160
|
-
const c =
|
|
3160
|
+
const c = Js(n, i, o);
|
|
3161
3161
|
if (i === o) {
|
|
3162
3162
|
const u = n[s];
|
|
3163
3163
|
return u ? {
|
|
@@ -3180,7 +3180,7 @@ const _t = {
|
|
|
3180
3180
|
..._t
|
|
3181
3181
|
};
|
|
3182
3182
|
};
|
|
3183
|
-
function
|
|
3183
|
+
function Js(e, t, n) {
|
|
3184
3184
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
3185
3185
|
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);
|
|
3186
3186
|
}
|
|
@@ -3201,7 +3201,7 @@ const kr = (e) => {
|
|
|
3201
3201
|
}, Ot = {
|
|
3202
3202
|
scaleX: 1,
|
|
3203
3203
|
scaleY: 1
|
|
3204
|
-
},
|
|
3204
|
+
}, Zs = (e) => {
|
|
3205
3205
|
var t;
|
|
3206
3206
|
let {
|
|
3207
3207
|
activeIndex: n,
|
|
@@ -3221,7 +3221,7 @@ const kr = (e) => {
|
|
|
3221
3221
|
...Ot
|
|
3222
3222
|
} : null;
|
|
3223
3223
|
}
|
|
3224
|
-
const c =
|
|
3224
|
+
const c = Qs(s, o, n);
|
|
3225
3225
|
return o > n && o <= i ? {
|
|
3226
3226
|
x: 0,
|
|
3227
3227
|
y: -l.height - c,
|
|
@@ -3236,7 +3236,7 @@ const kr = (e) => {
|
|
|
3236
3236
|
...Ot
|
|
3237
3237
|
};
|
|
3238
3238
|
};
|
|
3239
|
-
function
|
|
3239
|
+
function Qs(e, t, n) {
|
|
3240
3240
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
3241
3241
|
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;
|
|
3242
3242
|
}
|
|
@@ -3267,33 +3267,33 @@ function Lr(e) {
|
|
|
3267
3267
|
dragOverlay: l,
|
|
3268
3268
|
droppableRects: c,
|
|
3269
3269
|
over: u,
|
|
3270
|
-
measureDroppableContainers:
|
|
3271
|
-
} =
|
|
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:
|
|
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
|
|
3294
3294
|
}, t);
|
|
3295
3295
|
}
|
|
3296
|
-
const
|
|
3296
|
+
const ei = (e) => {
|
|
3297
3297
|
let {
|
|
3298
3298
|
id: t,
|
|
3299
3299
|
items: n,
|
|
@@ -3301,7 +3301,7 @@ const Qs = (e) => {
|
|
|
3301
3301
|
overIndex: o
|
|
3302
3302
|
} = e;
|
|
3303
3303
|
return Ht(n, r, o).indexOf(t);
|
|
3304
|
-
},
|
|
3304
|
+
}, ti = (e) => {
|
|
3305
3305
|
let {
|
|
3306
3306
|
containerId: t,
|
|
3307
3307
|
isSorting: n,
|
|
@@ -3314,37 +3314,37 @@ const Qs = (e) => {
|
|
|
3314
3314
|
transition: u
|
|
3315
3315
|
} = e;
|
|
3316
3316
|
return !u || !r || l !== s && o === i ? !1 : n ? !0 : i !== o && t === c;
|
|
3317
|
-
},
|
|
3317
|
+
}, ni = {
|
|
3318
3318
|
duration: 200,
|
|
3319
3319
|
easing: "ease"
|
|
3320
|
-
}, $r = "transform",
|
|
3320
|
+
}, $r = "transform", ri = /* @__PURE__ */ qe.Transition.toString({
|
|
3321
3321
|
property: $r,
|
|
3322
3322
|
duration: 0,
|
|
3323
3323
|
easing: "linear"
|
|
3324
|
-
}),
|
|
3324
|
+
}), oi = {
|
|
3325
3325
|
roleDescription: "sortable"
|
|
3326
3326
|
};
|
|
3327
|
-
function
|
|
3327
|
+
function si(e) {
|
|
3328
3328
|
let {
|
|
3329
3329
|
disabled: t,
|
|
3330
3330
|
index: n,
|
|
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);
|
|
@@ -3354,103 +3354,103 @@ function oi(e) {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
function Pr(e) {
|
|
3356
3356
|
let {
|
|
3357
|
-
animateLayoutChanges: t =
|
|
3357
|
+
animateLayoutChanges: t = ti,
|
|
3358
3358
|
attributes: n,
|
|
3359
3359
|
disabled: r,
|
|
3360
3360
|
data: o,
|
|
3361
|
-
getNewIndex: s =
|
|
3361
|
+
getNewIndex: s = ei,
|
|
3362
3362
|
id: i,
|
|
3363
3363
|
strategy: l,
|
|
3364
3364
|
resizeObserverConfig: c,
|
|
3365
|
-
transition: u =
|
|
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 =
|
|
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: $,
|
|
3388
3388
|
setNodeRef: F
|
|
3389
|
-
} =
|
|
3389
|
+
} = Us({
|
|
3390
3390
|
id: i,
|
|
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
|
-
attributes:
|
|
3401
|
+
attributes: le,
|
|
3402
3402
|
setNodeRef: Re,
|
|
3403
3403
|
listeners: $e,
|
|
3404
3404
|
isDragging: G,
|
|
3405
3405
|
over: Pe,
|
|
3406
|
-
setActivatorNodeRef:
|
|
3406
|
+
setActivatorNodeRef: ce,
|
|
3407
3407
|
transform: Oe
|
|
3408
|
-
} =
|
|
3408
|
+
} = Ys({
|
|
3409
3409
|
id: i,
|
|
3410
3410
|
data: j,
|
|
3411
3411
|
attributes: {
|
|
3412
|
-
...
|
|
3412
|
+
...oi,
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: S.draggable
|
|
3416
|
-
}), p =
|
|
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,
|
|
3443
3443
|
transition: u,
|
|
3444
3444
|
wasDragging: I.current.activeId != null
|
|
3445
|
-
}), Ve =
|
|
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,22 +3463,22 @@ function Pr(e) {
|
|
|
3463
3463
|
return () => clearTimeout(Ye);
|
|
3464
3464
|
}, [re]), {
|
|
3465
3465
|
active: L,
|
|
3466
|
-
activeIndex:
|
|
3467
|
-
attributes:
|
|
3466
|
+
activeIndex: m,
|
|
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
|
-
setActivatorNodeRef:
|
|
3481
|
+
setActivatorNodeRef: ce,
|
|
3482
3482
|
setDroppableNodeRef: F,
|
|
3483
3483
|
setDraggableNodeRef: Re,
|
|
3484
3484
|
transform: Ve ?? P,
|
|
@@ -3488,17 +3488,17 @@ 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
|
-
return
|
|
3494
|
-
if (!(k && !bn(
|
|
3493
|
+
return ri;
|
|
3494
|
+
if (!(k && !bn(Z) || !u) && (R || be))
|
|
3495
3495
|
return qe.Transition.toString({
|
|
3496
3496
|
...u,
|
|
3497
3497
|
property: $r
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function ii(e, t) {
|
|
3502
3502
|
var n, r;
|
|
3503
3503
|
return typeof e == "boolean" ? {
|
|
3504
3504
|
draggable: e,
|
|
@@ -3510,18 +3510,18 @@ function si(e, t) {
|
|
|
3510
3510
|
};
|
|
3511
3511
|
}
|
|
3512
3512
|
T.Down, T.Right, T.Up, T.Left;
|
|
3513
|
-
const
|
|
3513
|
+
const ai = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), li = (e) => e.replace(
|
|
3514
3514
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3515
3515
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3516
3516
|
), rr = (e) => {
|
|
3517
|
-
const t =
|
|
3517
|
+
const t = li(e);
|
|
3518
3518
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3519
|
-
}, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3519
|
+
}, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), ci = (e) => {
|
|
3520
3520
|
for (const t in e)
|
|
3521
3521
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3522
3522
|
return !0;
|
|
3523
3523
|
};
|
|
3524
|
-
var
|
|
3524
|
+
var ui = {
|
|
3525
3525
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3526
3526
|
width: 24,
|
|
3527
3527
|
height: 24,
|
|
@@ -3532,7 +3532,7 @@ var ci = {
|
|
|
3532
3532
|
strokeLinecap: "round",
|
|
3533
3533
|
strokeLinejoin: "round"
|
|
3534
3534
|
};
|
|
3535
|
-
const
|
|
3535
|
+
const di = hn(
|
|
3536
3536
|
({
|
|
3537
3537
|
color: e = "currentColor",
|
|
3538
3538
|
size: t = 24,
|
|
@@ -3546,28 +3546,28 @@ const ui = hn(
|
|
|
3546
3546
|
"svg",
|
|
3547
3547
|
{
|
|
3548
3548
|
ref: c,
|
|
3549
|
-
...
|
|
3549
|
+
...ui,
|
|
3550
3550
|
width: t,
|
|
3551
3551
|
height: t,
|
|
3552
3552
|
stroke: e,
|
|
3553
3553
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3554
3554
|
className: zr("lucide", o),
|
|
3555
|
-
...!s && !
|
|
3555
|
+
...!s && !ci(l) && { "aria-hidden": "true" },
|
|
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
|
)
|
|
3563
3563
|
);
|
|
3564
3564
|
const ne = (e, t) => {
|
|
3565
3565
|
const n = hn(
|
|
3566
|
-
({ className: r, ...o }, s) => sn(
|
|
3566
|
+
({ className: r, ...o }, s) => sn(di, {
|
|
3567
3567
|
ref: s,
|
|
3568
3568
|
iconNode: t,
|
|
3569
3569
|
className: zr(
|
|
3570
|
-
`lucide-${
|
|
3570
|
+
`lucide-${ai(rr(e))}`,
|
|
3571
3571
|
`lucide-${e}`,
|
|
3572
3572
|
r
|
|
3573
3573
|
),
|
|
@@ -3576,36 +3576,36 @@ const ne = (e, t) => {
|
|
|
3576
3576
|
);
|
|
3577
3577
|
return n.displayName = rr(e), n;
|
|
3578
3578
|
};
|
|
3579
|
-
const
|
|
3579
|
+
const fi = [
|
|
3580
3580
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3581
3581
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3582
|
-
],
|
|
3583
|
-
const
|
|
3582
|
+
], hi = ne("arrow-down", fi);
|
|
3583
|
+
const gi = [
|
|
3584
3584
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3585
3585
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3586
3586
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3587
3587
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3588
|
-
],
|
|
3589
|
-
const
|
|
3588
|
+
], pi = ne("arrow-up-down", gi);
|
|
3589
|
+
const vi = [
|
|
3590
3590
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3591
3591
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3592
|
-
],
|
|
3593
|
-
const
|
|
3592
|
+
], bi = ne("arrow-up", vi);
|
|
3593
|
+
const mi = [
|
|
3594
3594
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3595
|
-
],
|
|
3596
|
-
const
|
|
3595
|
+
], xi = ne("bookmark", mi);
|
|
3596
|
+
const yi = [
|
|
3597
3597
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3598
3598
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3599
3599
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3600
3600
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3601
|
-
], or = ne("calendar",
|
|
3602
|
-
const
|
|
3603
|
-
const
|
|
3604
|
-
const
|
|
3601
|
+
], or = ne("calendar", yi);
|
|
3602
|
+
const wi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = ne("chevron-left", wi);
|
|
3603
|
+
const Ci = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ri = ne("chevron-right", Ci);
|
|
3604
|
+
const Di = [
|
|
3605
3605
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3606
3606
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3607
|
-
],
|
|
3608
|
-
const
|
|
3607
|
+
], Ei = ne("columns-2", Di);
|
|
3608
|
+
const ji = [
|
|
3609
3609
|
[
|
|
3610
3610
|
"path",
|
|
3611
3611
|
{
|
|
@@ -3615,13 +3615,13 @@ const Ei = [
|
|
|
3615
3615
|
],
|
|
3616
3616
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3617
3617
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3618
|
-
],
|
|
3619
|
-
const
|
|
3618
|
+
], _i = ne("delete", ji);
|
|
3619
|
+
const Oi = [
|
|
3620
3620
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3621
3621
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3622
3622
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3623
|
-
],
|
|
3624
|
-
const
|
|
3623
|
+
], Ti = ne("ellipsis", Oi);
|
|
3624
|
+
const Ii = [
|
|
3625
3625
|
[
|
|
3626
3626
|
"path",
|
|
3627
3627
|
{
|
|
@@ -3629,15 +3629,15 @@ const Ti = [
|
|
|
3629
3629
|
key: "sc7q7i"
|
|
3630
3630
|
}
|
|
3631
3631
|
]
|
|
3632
|
-
],
|
|
3633
|
-
const
|
|
3632
|
+
], Ai = ne("funnel", Ii);
|
|
3633
|
+
const ki = [
|
|
3634
3634
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3635
3635
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3636
3636
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
3637
3637
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3638
3638
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3639
3639
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3640
|
-
],
|
|
3640
|
+
], Fr = ne("grip-vertical", ki);
|
|
3641
3641
|
const Ni = [
|
|
3642
3642
|
[
|
|
3643
3643
|
"path",
|
|
@@ -3666,9 +3666,9 @@ function y(e) {
|
|
|
3666
3666
|
);
|
|
3667
3667
|
});
|
|
3668
3668
|
}
|
|
3669
|
-
const
|
|
3669
|
+
const Vr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
|
|
3670
3670
|
const { tableId: t } = fe.state;
|
|
3671
|
-
localStorage.setItem(
|
|
3671
|
+
localStorage.setItem(Vr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
|
|
3672
3672
|
...n,
|
|
3673
3673
|
columnOrder: e
|
|
3674
3674
|
})), fe.setState((n) => ({ ...n, columnOrder: e }));
|
|
@@ -3702,7 +3702,7 @@ function Vi(e, t) {
|
|
|
3702
3702
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((c) => ({ id: c, label: c }))).filter(
|
|
3703
3703
|
(c) => Object.prototype.hasOwnProperty.call(n, c.id)
|
|
3704
3704
|
), { tableId: s } = fe.state, i = JSON.parse(
|
|
3705
|
-
localStorage.getItem(
|
|
3705
|
+
localStorage.getItem(Vr(s)) || "[]"
|
|
3706
3706
|
), l = [
|
|
3707
3707
|
...i.map((c) => o.find((u) => u.id === c)).filter(Boolean),
|
|
3708
3708
|
...o.filter((c) => !i.includes(c.id))
|
|
@@ -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,
|
|
@@ -3729,7 +3729,7 @@ const Hi = y(Se.Trigger), Bi = y(Se.Positioner), Wi = y(Se.Content), Ui = y(Se.I
|
|
|
3729
3729
|
function Ki({ visibility: e, onToggle: t }) {
|
|
3730
3730
|
const { sortableColumns: n } = vt(fe);
|
|
3731
3731
|
return /* @__PURE__ */ a.jsxs(Se.Root, { closeOnSelect: !1, children: [
|
|
3732
|
-
/* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(
|
|
3732
|
+
/* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Ei, { size: 18 }) }) }),
|
|
3733
3733
|
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Bi, { children: /* @__PURE__ */ a.jsx(Wi, { minW: "220px", children: n.map((r) => {
|
|
3734
3734
|
const o = !!e[r.id];
|
|
3735
3735
|
return /* @__PURE__ */ a.jsx(Ui, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ a.jsxs(pe.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
@@ -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,15 +3757,15 @@ 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
|
|
3764
3764
|
},
|
|
3765
3765
|
...l,
|
|
3766
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
3766
|
+
children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
|
|
3767
3767
|
t,
|
|
3768
|
-
/* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(
|
|
3768
|
+
/* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
|
|
3769
3769
|
] })
|
|
3770
3770
|
}
|
|
3771
3771
|
);
|
|
@@ -3774,14 +3774,14 @@ 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,
|
|
3782
3782
|
{
|
|
3783
3783
|
items: e.map((l) => l.id),
|
|
3784
|
-
strategy:
|
|
3784
|
+
strategy: Ks,
|
|
3785
3785
|
children: /* @__PURE__ */ a.jsxs(ye.Row, { height: "28px", children: [
|
|
3786
3786
|
s.map((l, c) => {
|
|
3787
3787
|
const u = n === l?.id;
|
|
@@ -3803,7 +3803,7 @@ function Zi() {
|
|
|
3803
3803
|
},
|
|
3804
3804
|
children: [
|
|
3805
3805
|
l?.label,
|
|
3806
|
-
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(
|
|
3806
|
+
l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(bi, { size: 14 }) : /* @__PURE__ */ a.jsx(hi, { size: 14 }) : /* @__PURE__ */ a.jsx(pi, { size: 14, opacity: 0.4 }))
|
|
3807
3807
|
]
|
|
3808
3808
|
}
|
|
3809
3809
|
)
|
|
@@ -3833,8 +3833,8 @@ function ua({
|
|
|
3833
3833
|
onPageSizeChange: o,
|
|
3834
3834
|
siblingCount: s = 2
|
|
3835
3835
|
}) {
|
|
3836
|
-
return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(
|
|
3837
|
-
/* @__PURE__ */ a.jsxs(
|
|
3836
|
+
return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3837
|
+
/* @__PURE__ */ a.jsxs(ae, { children: [
|
|
3838
3838
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3839
3839
|
/* @__PURE__ */ a.jsxs(
|
|
3840
3840
|
z.Root,
|
|
@@ -3866,8 +3866,8 @@ function ua({
|
|
|
3866
3866
|
page: n,
|
|
3867
3867
|
siblingCount: s,
|
|
3868
3868
|
onPageChange: (i) => r && r(i.page),
|
|
3869
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
3870
|
-
/* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(
|
|
3869
|
+
children: /* @__PURE__ */ a.jsxs(no, { size: "sm", variant: "ghost", children: [
|
|
3870
|
+
/* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(Si, { size: 18 }) }) }),
|
|
3871
3871
|
/* @__PURE__ */ a.jsx(
|
|
3872
3872
|
It.Items,
|
|
3873
3873
|
{
|
|
@@ -3882,7 +3882,7 @@ function ua({
|
|
|
3882
3882
|
)
|
|
3883
3883
|
}
|
|
3884
3884
|
),
|
|
3885
|
-
/* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(
|
|
3885
|
+
/* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ri, { size: 18 }) }) })
|
|
3886
3886
|
] })
|
|
3887
3887
|
}
|
|
3888
3888
|
)
|
|
@@ -3897,7 +3897,7 @@ function pa({
|
|
|
3897
3897
|
return /* @__PURE__ */ a.jsx(ye.Body, { children: e.map((o) => /* @__PURE__ */ a.jsxs(ye.Row, { children: [
|
|
3898
3898
|
n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ a.jsx(ye.Cell, { children: o[s.id] }, s.id)),
|
|
3899
3899
|
/* @__PURE__ */ a.jsx(ye.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ a.jsxs(Se.Root, { children: [
|
|
3900
|
-
/* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(
|
|
3900
|
+
/* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Ti, { size: 16 }) }) }),
|
|
3901
3901
|
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ha, { children: /* @__PURE__ */ a.jsx(fa, { children: t.map((s) => /* @__PURE__ */ a.jsxs(
|
|
3902
3902
|
da,
|
|
3903
3903
|
{
|
|
@@ -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,14 +4144,14 @@ 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
|
) }),
|
|
4151
4151
|
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ja, { children: /* @__PURE__ */ a.jsxs(Ea, { p: 4, children: [
|
|
4152
|
-
/* @__PURE__ */ a.jsx(
|
|
4152
|
+
/* @__PURE__ */ a.jsx(ro, {}),
|
|
4153
4153
|
/* @__PURE__ */ a.jsxs(je, { align: "start", gap: 4, children: [
|
|
4154
|
-
/* @__PURE__ */ a.jsxs(
|
|
4154
|
+
/* @__PURE__ */ a.jsxs(ae, { children: [
|
|
4155
4155
|
/* @__PURE__ */ a.jsx(or, { size: 16 }),
|
|
4156
4156
|
/* @__PURE__ */ a.jsx(U, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4157
4157
|
] }),
|
|
@@ -4172,7 +4172,7 @@ function _a({
|
|
|
4172
4172
|
] }),
|
|
4173
4173
|
/* @__PURE__ */ a.jsxs(je, { align: "start", gap: 1, children: [
|
|
4174
4174
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4175
|
-
/* @__PURE__ */ a.jsxs(
|
|
4175
|
+
/* @__PURE__ */ a.jsxs(ae, { children: [
|
|
4176
4176
|
/* @__PURE__ */ a.jsx(kn, { children: "Ctrl" }),
|
|
4177
4177
|
/* @__PURE__ */ a.jsx(U, { children: "+" }),
|
|
4178
4178
|
/* @__PURE__ */ a.jsx(kn, { children: "D" })
|
|
@@ -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,24 +4221,26 @@ 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,
|
|
@@ -4251,43 +4251,44 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
|
|
|
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
|
-
function
|
|
4288
|
+
}, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4289
|
+
function qa(e) {
|
|
4289
4290
|
try {
|
|
4290
|
-
return JSON.parse(localStorage.getItem(
|
|
4291
|
+
return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
|
|
4291
4292
|
} catch {
|
|
4292
4293
|
return [];
|
|
4293
4294
|
}
|
|
@@ -4295,29 +4296,28 @@ 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
|
|
4302
4303
|
})), n;
|
|
4303
|
-
},
|
|
4304
|
+
}, Hr = (e, t) => {
|
|
4304
4305
|
$t.setState((n) => ({
|
|
4305
4306
|
...n,
|
|
4306
4307
|
[e]: t
|
|
4307
|
-
})), localStorage.setItem(
|
|
4308
|
-
}, qa = (e, t) => {
|
|
4309
|
-
const n = Cn(e).filter((r) => r.id !== t);
|
|
4310
|
-
Yr(e, n);
|
|
4308
|
+
})), localStorage.setItem(Yr(e), JSON.stringify(t));
|
|
4311
4309
|
}, Ka = (e, t) => {
|
|
4310
|
+
const n = Cn(e).filter((r) => r.id !== t);
|
|
4311
|
+
Hr(e, n);
|
|
4312
|
+
}, Ja = (e, t) => {
|
|
4312
4313
|
const n = [t, ...Cn(e)];
|
|
4313
|
-
|
|
4314
|
-
},
|
|
4314
|
+
Hr(e, n);
|
|
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 = {
|
|
4318
4319
|
transform: qe.Transform.toString(i),
|
|
4319
|
-
transition: l
|
|
4320
|
-
cursor: "grab"
|
|
4320
|
+
transition: l
|
|
4321
4321
|
};
|
|
4322
4322
|
return /* @__PURE__ */ a.jsxs(
|
|
4323
4323
|
je,
|
|
@@ -4330,21 +4330,23 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4330
4330
|
rounded: "md",
|
|
4331
4331
|
p: 3,
|
|
4332
4332
|
mb: 3,
|
|
4333
|
-
|
|
4334
|
-
...o,
|
|
4333
|
+
bg: "white",
|
|
4335
4334
|
children: [
|
|
4336
|
-
/* @__PURE__ */ a.
|
|
4337
|
-
|
|
4335
|
+
/* @__PURE__ */ a.jsxs(ae, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4336
|
+
/* @__PURE__ */ a.jsx(Fr, { size: 16 }),
|
|
4337
|
+
/* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4338
|
+
] }),
|
|
4339
|
+
/* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
|
|
4338
4340
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
|
|
4339
4341
|
/* @__PURE__ */ a.jsxs(
|
|
4340
|
-
|
|
4342
|
+
Za,
|
|
4341
4343
|
{
|
|
4342
4344
|
checked: e.visible,
|
|
4343
|
-
onCheckedChange: (u) => t && t(e.id, !!u),
|
|
4344
4345
|
size: "sm",
|
|
4346
|
+
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4345
4347
|
children: [
|
|
4346
|
-
/* @__PURE__ */ a.jsx(
|
|
4347
|
-
/* @__PURE__ */ a.jsx(
|
|
4348
|
+
/* @__PURE__ */ a.jsx(Qa, {}),
|
|
4349
|
+
/* @__PURE__ */ a.jsx(el, {})
|
|
4348
4350
|
]
|
|
4349
4351
|
}
|
|
4350
4352
|
)
|
|
@@ -4352,17 +4354,16 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4352
4354
|
/* @__PURE__ */ a.jsxs(je, { align: "stretch", gap: 1, children: [
|
|
4353
4355
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
|
|
4354
4356
|
/* @__PURE__ */ a.jsx(
|
|
4355
|
-
|
|
4357
|
+
tl,
|
|
4356
4358
|
{
|
|
4357
|
-
width: "200px",
|
|
4358
4359
|
min: 1,
|
|
4359
4360
|
max: 5,
|
|
4360
4361
|
step: 0.5,
|
|
4361
4362
|
value: [e.size ?? 1],
|
|
4362
|
-
|
|
4363
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
4364
|
-
/* @__PURE__ */ a.jsx(
|
|
4365
|
-
/* @__PURE__ */ a.jsx(
|
|
4363
|
+
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
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,8 +4371,8 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4370
4371
|
]
|
|
4371
4372
|
}
|
|
4372
4373
|
);
|
|
4373
|
-
},
|
|
4374
|
-
if (
|
|
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) => {
|
|
4375
|
+
if (e.customComponent)
|
|
4375
4376
|
return e.customComponent;
|
|
4376
4377
|
switch (e.type) {
|
|
4377
4378
|
case "text":
|
|
@@ -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(
|
|
4441
|
-
/* @__PURE__ */ a.jsx(
|
|
4442
|
-
/* @__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: [
|
|
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"
|
|
@@ -4457,7 +4462,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4457
4462
|
"Settings"
|
|
4458
4463
|
] }),
|
|
4459
4464
|
/* @__PURE__ */ a.jsxs(rn, { value: "presets", children: [
|
|
4460
|
-
/* @__PURE__ */ a.jsx(
|
|
4465
|
+
/* @__PURE__ */ a.jsx(xi, { size: 16 }),
|
|
4461
4466
|
"Presets"
|
|
4462
4467
|
] })
|
|
4463
4468
|
] }),
|
|
@@ -4472,27 +4477,27 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4472
4477
|
rounded: "md",
|
|
4473
4478
|
p: 3,
|
|
4474
4479
|
mb: 3,
|
|
4475
|
-
children:
|
|
4480
|
+
children: Br(d, f)
|
|
4476
4481
|
},
|
|
4477
4482
|
d.id
|
|
4478
4483
|
)) }),
|
|
4479
4484
|
/* @__PURE__ */ a.jsx(on, { value: "settings", children: /* @__PURE__ */ a.jsx(
|
|
4480
4485
|
Ar,
|
|
4481
4486
|
{
|
|
4482
|
-
sensors: Lo(
|
|
4487
|
+
sensors: $o(Lo(wn)),
|
|
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,
|
|
4491
4496
|
{
|
|
4492
4497
|
items: o.map((d) => d.id),
|
|
4493
|
-
strategy:
|
|
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,9 +4511,9 @@ 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
|
-
|
|
4511
|
-
|
|
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(
|
|
4516
|
+
ae,
|
|
4512
4517
|
{
|
|
4513
4518
|
justify: "space-between",
|
|
4514
4519
|
border: "1px solid",
|
|
@@ -4520,7 +4525,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4520
4525
|
/* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: d.name }),
|
|
4521
4526
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: new Date(d.date).toLocaleDateString() })
|
|
4522
4527
|
] }),
|
|
4523
|
-
/* @__PURE__ */ a.jsxs(
|
|
4528
|
+
/* @__PURE__ */ a.jsxs(ae, { children: [
|
|
4524
4529
|
/* @__PURE__ */ a.jsx(
|
|
4525
4530
|
Gt,
|
|
4526
4531
|
{
|
|
@@ -4536,8 +4541,8 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4536
4541
|
size: "xs",
|
|
4537
4542
|
"aria-label": "Delete preset",
|
|
4538
4543
|
variant: "ghost",
|
|
4539
|
-
onClick: () =>
|
|
4540
|
-
children: /* @__PURE__ */ a.jsx(
|
|
4544
|
+
onClick: () => Ka(s, d.id),
|
|
4545
|
+
children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
|
|
4541
4546
|
}
|
|
4542
4547
|
)
|
|
4543
4548
|
] })
|
|
@@ -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,60 +4579,67 @@ 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(
|
|
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
|
-
|
|
4630
|
-
|
|
4641
|
+
Dl as saveOrder,
|
|
4642
|
+
Hr as savePresets,
|
|
4631
4643
|
Vi as setData,
|
|
4632
4644
|
Yi as setTableId,
|
|
4633
4645
|
fe as tableStore,
|