@mdspl/mds-shared-ui 0.1.0 → 0.1.2
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 +20 -12
- package/dist/index.js +1099 -1089
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import F, { useLayoutEffect as kr, useEffect as L, useRef as M, useMemo as A, useCallback as G, useState as
|
|
2
|
-
import { Menu as
|
|
1
|
+
import F, { useLayoutEffect as kr, useEffect as L, useRef as M, useMemo as A, useCallback as G, useState as ne, createContext as at, memo as Nr, useReducer as Lr, useContext as Ne, forwardRef as sn, createElement as Zt } from "react";
|
|
2
|
+
import { Menu as be, Checkbox as Le, IconButton as ke, Portal as It, Table as ve, HStack as ge, createListCollection as Mr, Select as le, Pagination as Ct, Box as Be, Text as Te, ButtonGroup as Pr, Slider as lt, VStack as tt, Drawer as me, Tabs as At, Button as Vt, CloseButton as zr } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as gt, createPortal as $r } from "react-dom";
|
|
4
|
-
var pt = { exports: {} },
|
|
4
|
+
var pt = { exports: {} }, Qe = {};
|
|
5
5
|
var Cn;
|
|
6
6
|
function Vr() {
|
|
7
|
-
if (Cn) return
|
|
7
|
+
if (Cn) return Qe;
|
|
8
8
|
Cn = 1;
|
|
9
9
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
10
10
|
function n(r, o, i) {
|
|
@@ -22,9 +22,9 @@ function Vr() {
|
|
|
22
22
|
props: i
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return Qe.Fragment = t, Qe.jsx = n, Qe.jsxs = n, Qe;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var et = {};
|
|
28
28
|
var En;
|
|
29
29
|
function Fr() {
|
|
30
30
|
return En || (En = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -34,15 +34,15 @@ function Fr() {
|
|
|
34
34
|
return v.$$typeof === N ? null : v.displayName || v.name || null;
|
|
35
35
|
if (typeof v == "string") return v;
|
|
36
36
|
switch (v) {
|
|
37
|
-
case
|
|
37
|
+
case m:
|
|
38
38
|
return "Fragment";
|
|
39
|
-
case
|
|
39
|
+
case R:
|
|
40
40
|
return "Profiler";
|
|
41
41
|
case x:
|
|
42
42
|
return "StrictMode";
|
|
43
|
-
case
|
|
43
|
+
case w:
|
|
44
44
|
return "Suspense";
|
|
45
|
-
case
|
|
45
|
+
case S:
|
|
46
46
|
return "SuspenseList";
|
|
47
47
|
case $:
|
|
48
48
|
return "Activity";
|
|
@@ -51,16 +51,16 @@ function Fr() {
|
|
|
51
51
|
switch (typeof v.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
|
), v.$$typeof) {
|
|
54
|
-
case
|
|
54
|
+
case p:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
56
|
+
case D:
|
|
57
57
|
return v.displayName || "Context";
|
|
58
58
|
case C:
|
|
59
59
|
return (v._context.displayName || "Context") + ".Consumer";
|
|
60
60
|
case O:
|
|
61
61
|
var y = v.render;
|
|
62
62
|
return v = v.displayName, v || (v = y.displayName || y.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
|
|
63
|
-
case
|
|
63
|
+
case _:
|
|
64
64
|
return y = v.displayName || null, y !== null ? y : e(v.type) || "Memo";
|
|
65
65
|
case P:
|
|
66
66
|
y = v._payload, v = v._init;
|
|
@@ -92,7 +92,7 @@ function Fr() {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function r(v) {
|
|
95
|
-
if (v ===
|
|
95
|
+
if (v === m) return "<>";
|
|
96
96
|
if (typeof v == "object" && v !== null && v.$$typeof === P)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
@@ -103,7 +103,7 @@ function Fr() {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function o() {
|
|
106
|
-
var v =
|
|
106
|
+
var v = X.A;
|
|
107
107
|
return v === null ? null : v.getOwner();
|
|
108
108
|
}
|
|
109
109
|
function i() {
|
|
@@ -118,7 +118,7 @@ function Fr() {
|
|
|
118
118
|
}
|
|
119
119
|
function a(v, y) {
|
|
120
120
|
function T() {
|
|
121
|
-
|
|
121
|
+
Ie || (Ie = !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
|
y
|
|
124
124
|
));
|
|
@@ -128,23 +128,23 @@ function Fr() {
|
|
|
128
128
|
configurable: !0
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function d() {
|
|
132
132
|
var v = e(this.type);
|
|
133
133
|
return H[v] || (H[v] = !0, console.error(
|
|
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
|
)), v = this.props.ref, v !== void 0 ? v : null;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function u(v, y, T, k, ue, Y) {
|
|
138
138
|
var z = T.ref;
|
|
139
139
|
return v = {
|
|
140
|
-
$$typeof:
|
|
140
|
+
$$typeof: b,
|
|
141
141
|
type: v,
|
|
142
142
|
key: y,
|
|
143
143
|
props: T,
|
|
144
144
|
_owner: k
|
|
145
145
|
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(v, "ref", {
|
|
146
146
|
enumerable: !1,
|
|
147
|
-
get:
|
|
147
|
+
get: d
|
|
148
148
|
}) : Object.defineProperty(v, "ref", { enumerable: !1, value: null }), v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
149
149
|
configurable: !1,
|
|
150
150
|
enumerable: !1,
|
|
@@ -167,25 +167,25 @@ function Fr() {
|
|
|
167
167
|
value: Y
|
|
168
168
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function f(v, y, T, k, ue, Y) {
|
|
171
171
|
var z = y.children;
|
|
172
172
|
if (z !== void 0)
|
|
173
173
|
if (k)
|
|
174
174
|
if (oe(z)) {
|
|
175
175
|
for (k = 0; k < z.length; k++)
|
|
176
|
-
|
|
176
|
+
h(z[k]);
|
|
177
177
|
Object.freeze && Object.freeze(z);
|
|
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
|
|
182
|
+
else h(z);
|
|
183
183
|
if (J.call(y, "key")) {
|
|
184
184
|
z = e(v);
|
|
185
|
-
var
|
|
185
|
+
var q = Object.keys(y).filter(function(I) {
|
|
186
186
|
return I !== "key";
|
|
187
187
|
});
|
|
188
|
-
k = 0 <
|
|
188
|
+
k = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", Se[z + 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,19 +194,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
194
194
|
<%s key={someKey} {...props} />`,
|
|
195
195
|
k,
|
|
196
196
|
z,
|
|
197
|
-
|
|
197
|
+
q,
|
|
198
198
|
z
|
|
199
199
|
), Se[z + k] = !0);
|
|
200
200
|
}
|
|
201
201
|
if (z = null, T !== void 0 && (n(T), z = "" + T), s(y) && (n(y.key), z = "" + y.key), "key" in y) {
|
|
202
202
|
T = {};
|
|
203
|
-
for (var
|
|
204
|
-
|
|
203
|
+
for (var Z in y)
|
|
204
|
+
Z !== "key" && (T[Z] = y[Z]);
|
|
205
205
|
} else T = y;
|
|
206
206
|
return z && a(
|
|
207
207
|
T,
|
|
208
208
|
typeof v == "function" ? v.displayName || v.name || "Unknown" : v
|
|
209
|
-
),
|
|
209
|
+
), u(
|
|
210
210
|
v,
|
|
211
211
|
z,
|
|
212
212
|
T,
|
|
@@ -215,274 +215,274 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
Y
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
218
|
+
function h(v) {
|
|
219
|
+
g(v) ? v._store && (v._store.validated = 1) : typeof v == "object" && v !== null && v.$$typeof === P && (v._payload.status === "fulfilled" ? g(v._payload.value) && v._payload.value._store && (v._payload.value._store.validated = 1) : v._store && (v._store.validated = 1));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
return typeof v == "object" && v !== null && v.$$typeof ===
|
|
221
|
+
function g(v) {
|
|
222
|
+
return typeof v == "object" && v !== null && v.$$typeof === b;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var c = F, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), C = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.activity"), N = /* @__PURE__ */ Symbol.for("react.client.reference"), X = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, oe = Array.isArray, xe = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
c = {
|
|
228
228
|
react_stack_bottom_frame: function(v) {
|
|
229
229
|
return v();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var Ie, H = {}, Ae = c.react_stack_bottom_frame.bind(
|
|
233
|
+
c,
|
|
234
234
|
i
|
|
235
|
-
)(), ie =
|
|
236
|
-
|
|
237
|
-
var k = 1e4 >
|
|
238
|
-
return
|
|
235
|
+
)(), ie = xe(r(i)), Se = {};
|
|
236
|
+
et.Fragment = m, et.jsx = function(v, y, T) {
|
|
237
|
+
var k = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return f(
|
|
239
239
|
v,
|
|
240
240
|
y,
|
|
241
241
|
T,
|
|
242
242
|
!1,
|
|
243
|
-
k ? Error("react-stack-top-frame") :
|
|
244
|
-
k ?
|
|
243
|
+
k ? Error("react-stack-top-frame") : Ae,
|
|
244
|
+
k ? xe(r(v)) : ie
|
|
245
245
|
);
|
|
246
|
-
},
|
|
247
|
-
var k = 1e4 >
|
|
248
|
-
return
|
|
246
|
+
}, et.jsxs = function(v, y, T) {
|
|
247
|
+
var k = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
248
|
+
return f(
|
|
249
249
|
v,
|
|
250
250
|
y,
|
|
251
251
|
T,
|
|
252
252
|
!0,
|
|
253
|
-
k ? Error("react-stack-top-frame") :
|
|
254
|
-
k ?
|
|
253
|
+
k ? Error("react-stack-top-frame") : Ae,
|
|
254
|
+
k ? xe(r(v)) : ie
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
|
-
})()),
|
|
257
|
+
})()), et;
|
|
258
258
|
}
|
|
259
259
|
var Dn;
|
|
260
260
|
function Br() {
|
|
261
261
|
return Dn || (Dn = 1, process.env.NODE_ENV === "production" ? pt.exports = Vr() : pt.exports = Fr()), pt.exports;
|
|
262
262
|
}
|
|
263
|
-
var
|
|
263
|
+
var l = Br(), bt = { exports: {} }, Ft = {}, mt = { exports: {} }, Bt = {};
|
|
264
264
|
var _n;
|
|
265
265
|
function Wr() {
|
|
266
|
-
if (_n) return
|
|
266
|
+
if (_n) return Bt;
|
|
267
267
|
_n = 1;
|
|
268
268
|
var e = F;
|
|
269
|
-
function t(
|
|
270
|
-
return
|
|
269
|
+
function t(h, g) {
|
|
270
|
+
return h === g && (h !== 0 || 1 / h === 1 / g) || h !== h && g !== g;
|
|
271
271
|
}
|
|
272
272
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, s = e.useDebugValue;
|
|
273
|
-
function a(
|
|
274
|
-
var
|
|
273
|
+
function a(h, g) {
|
|
274
|
+
var c = g(), b = r({ inst: { value: c, getSnapshot: g } }), p = b[0].inst, m = b[1];
|
|
275
275
|
return i(
|
|
276
276
|
function() {
|
|
277
|
-
|
|
277
|
+
p.value = c, p.getSnapshot = g, d(p) && m({ inst: p });
|
|
278
278
|
},
|
|
279
|
-
[
|
|
279
|
+
[h, c, g]
|
|
280
280
|
), o(
|
|
281
281
|
function() {
|
|
282
|
-
return
|
|
283
|
-
|
|
282
|
+
return d(p) && m({ inst: p }), h(function() {
|
|
283
|
+
d(p) && m({ inst: p });
|
|
284
284
|
});
|
|
285
285
|
},
|
|
286
|
-
[
|
|
287
|
-
), s(
|
|
286
|
+
[h]
|
|
287
|
+
), s(c), c;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
var
|
|
291
|
-
|
|
289
|
+
function d(h) {
|
|
290
|
+
var g = h.getSnapshot;
|
|
291
|
+
h = h.value;
|
|
292
292
|
try {
|
|
293
|
-
var
|
|
294
|
-
return !n(
|
|
293
|
+
var c = g();
|
|
294
|
+
return !n(h, c);
|
|
295
295
|
} catch {
|
|
296
296
|
return !0;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
299
|
+
function u(h, g) {
|
|
300
|
+
return g();
|
|
301
301
|
}
|
|
302
|
-
var
|
|
303
|
-
return
|
|
302
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : a;
|
|
303
|
+
return Bt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Bt;
|
|
304
304
|
}
|
|
305
|
-
var
|
|
305
|
+
var Wt = {};
|
|
306
306
|
var On;
|
|
307
307
|
function Hr() {
|
|
308
308
|
return On || (On = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
309
|
-
function e(
|
|
310
|
-
return
|
|
309
|
+
function e(c, b) {
|
|
310
|
+
return c === b && (c !== 0 || 1 / c === 1 / b) || c !== c && b !== b;
|
|
311
311
|
}
|
|
312
|
-
function t(
|
|
313
|
-
|
|
312
|
+
function t(c, b) {
|
|
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
|
-
i(
|
|
316
|
+
var p = b();
|
|
317
|
+
if (!h) {
|
|
318
|
+
var m = b();
|
|
319
|
+
i(p, m) || (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
|
+
m = s({
|
|
324
|
+
inst: { value: p, getSnapshot: b }
|
|
325
325
|
});
|
|
326
|
-
var x =
|
|
327
|
-
return
|
|
326
|
+
var x = m[0].inst, R = m[1];
|
|
327
|
+
return d(
|
|
328
328
|
function() {
|
|
329
|
-
x.value =
|
|
329
|
+
x.value = p, x.getSnapshot = b, n(x) && R({ inst: x });
|
|
330
330
|
},
|
|
331
|
-
[
|
|
331
|
+
[c, p, b]
|
|
332
332
|
), a(
|
|
333
333
|
function() {
|
|
334
|
-
return n(x) &&
|
|
335
|
-
n(x) &&
|
|
334
|
+
return n(x) && R({ inst: x }), c(function() {
|
|
335
|
+
n(x) && R({ inst: x });
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
|
-
[
|
|
339
|
-
),
|
|
338
|
+
[c]
|
|
339
|
+
), u(p), p;
|
|
340
340
|
}
|
|
341
|
-
function n(
|
|
342
|
-
var
|
|
343
|
-
|
|
341
|
+
function n(c) {
|
|
342
|
+
var b = c.getSnapshot;
|
|
343
|
+
c = c.value;
|
|
344
344
|
try {
|
|
345
|
-
var
|
|
346
|
-
return !i(
|
|
345
|
+
var p = b();
|
|
346
|
+
return !i(c, p);
|
|
347
347
|
} catch {
|
|
348
348
|
return !0;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
function r(
|
|
352
|
-
return
|
|
351
|
+
function r(c, b) {
|
|
352
|
+
return b();
|
|
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 = F, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, a = o.useEffect,
|
|
356
|
-
|
|
357
|
-
})()),
|
|
355
|
+
var o = F, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, a = o.useEffect, d = o.useLayoutEffect, u = o.useDebugValue, f = !1, h = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
356
|
+
Wt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
357
|
+
})()), Wt;
|
|
358
358
|
}
|
|
359
359
|
var Tn;
|
|
360
|
-
function
|
|
360
|
+
function qn() {
|
|
361
361
|
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? mt.exports = Wr() : mt.exports = Hr()), mt.exports;
|
|
362
362
|
}
|
|
363
363
|
var jn;
|
|
364
364
|
function Yr() {
|
|
365
|
-
if (jn) return
|
|
365
|
+
if (jn) return Ft;
|
|
366
366
|
jn = 1;
|
|
367
|
-
var e = F, t =
|
|
368
|
-
function n(
|
|
369
|
-
return
|
|
367
|
+
var e = F, t = qn();
|
|
368
|
+
function n(u, f) {
|
|
369
|
+
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
370
370
|
}
|
|
371
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, a = e.useMemo,
|
|
372
|
-
return
|
|
373
|
-
var
|
|
374
|
-
if (
|
|
375
|
-
var
|
|
376
|
-
|
|
377
|
-
} else
|
|
378
|
-
|
|
371
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, a = e.useMemo, d = e.useDebugValue;
|
|
372
|
+
return Ft.useSyncExternalStoreWithSelector = function(u, f, h, g, c) {
|
|
373
|
+
var b = i(null);
|
|
374
|
+
if (b.current === null) {
|
|
375
|
+
var p = { hasValue: !1, value: null };
|
|
376
|
+
b.current = p;
|
|
377
|
+
} else p = b.current;
|
|
378
|
+
b = a(
|
|
379
379
|
function() {
|
|
380
|
-
function x(
|
|
381
|
-
if (!
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
385
|
-
return
|
|
380
|
+
function x(w) {
|
|
381
|
+
if (!R) {
|
|
382
|
+
if (R = !0, C = w, w = g(w), c !== void 0 && p.hasValue) {
|
|
383
|
+
var S = p.value;
|
|
384
|
+
if (c(S, w))
|
|
385
|
+
return D = S;
|
|
386
386
|
}
|
|
387
|
-
return
|
|
387
|
+
return D = w;
|
|
388
388
|
}
|
|
389
|
-
if (
|
|
390
|
-
var
|
|
391
|
-
return
|
|
389
|
+
if (S = D, r(C, w)) return S;
|
|
390
|
+
var _ = g(w);
|
|
391
|
+
return c !== void 0 && c(S, _) ? (C = w, S) : (C = w, D = _);
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var R = !1, C, D, O = h === void 0 ? null : h;
|
|
394
394
|
return [
|
|
395
395
|
function() {
|
|
396
|
-
return x(
|
|
396
|
+
return x(f());
|
|
397
397
|
},
|
|
398
398
|
O === null ? void 0 : function() {
|
|
399
399
|
return x(O());
|
|
400
400
|
}
|
|
401
401
|
];
|
|
402
402
|
},
|
|
403
|
-
[
|
|
403
|
+
[f, h, g, c]
|
|
404
404
|
);
|
|
405
|
-
var
|
|
405
|
+
var m = o(u, b[0], b[1]);
|
|
406
406
|
return s(
|
|
407
407
|
function() {
|
|
408
|
-
|
|
408
|
+
p.hasValue = !0, p.value = m;
|
|
409
409
|
},
|
|
410
|
-
[
|
|
411
|
-
),
|
|
412
|
-
},
|
|
410
|
+
[m]
|
|
411
|
+
), d(m), m;
|
|
412
|
+
}, Ft;
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var Ht = {};
|
|
415
415
|
var In;
|
|
416
416
|
function Ur() {
|
|
417
417
|
return In || (In = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
418
|
-
function e(
|
|
419
|
-
return
|
|
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
|
-
var t = F, n =
|
|
423
|
-
|
|
424
|
-
var
|
|
425
|
-
if (
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
} else
|
|
429
|
-
|
|
422
|
+
var t = F, n = qn(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, a = t.useMemo, d = t.useDebugValue;
|
|
423
|
+
Ht.useSyncExternalStoreWithSelector = function(u, f, h, g, c) {
|
|
424
|
+
var b = i(null);
|
|
425
|
+
if (b.current === null) {
|
|
426
|
+
var p = { hasValue: !1, value: null };
|
|
427
|
+
b.current = p;
|
|
428
|
+
} else p = b.current;
|
|
429
|
+
b = a(
|
|
430
430
|
function() {
|
|
431
|
-
function x(
|
|
432
|
-
if (!
|
|
433
|
-
if (
|
|
434
|
-
var
|
|
435
|
-
if (
|
|
436
|
-
return
|
|
431
|
+
function x(w) {
|
|
432
|
+
if (!R) {
|
|
433
|
+
if (R = !0, C = w, w = g(w), c !== void 0 && p.hasValue) {
|
|
434
|
+
var S = p.value;
|
|
435
|
+
if (c(S, w))
|
|
436
|
+
return D = S;
|
|
437
437
|
}
|
|
438
|
-
return
|
|
438
|
+
return D = w;
|
|
439
439
|
}
|
|
440
|
-
if (
|
|
441
|
-
return
|
|
442
|
-
var
|
|
443
|
-
return
|
|
440
|
+
if (S = D, r(C, w))
|
|
441
|
+
return S;
|
|
442
|
+
var _ = g(w);
|
|
443
|
+
return c !== void 0 && c(S, _) ? (C = w, S) : (C = w, D = _);
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var R = !1, C, D, O = h === void 0 ? null : h;
|
|
446
446
|
return [
|
|
447
447
|
function() {
|
|
448
|
-
return x(
|
|
448
|
+
return x(f());
|
|
449
449
|
},
|
|
450
450
|
O === null ? void 0 : function() {
|
|
451
451
|
return x(O());
|
|
452
452
|
}
|
|
453
453
|
];
|
|
454
454
|
},
|
|
455
|
-
[
|
|
455
|
+
[f, h, g, c]
|
|
456
456
|
);
|
|
457
|
-
var
|
|
457
|
+
var m = o(u, b[0], b[1]);
|
|
458
458
|
return s(
|
|
459
459
|
function() {
|
|
460
|
-
|
|
460
|
+
p.hasValue = !0, p.value = m;
|
|
461
461
|
},
|
|
462
|
-
[
|
|
463
|
-
),
|
|
462
|
+
[m]
|
|
463
|
+
), d(m), m;
|
|
464
464
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
465
|
-
})()),
|
|
465
|
+
})()), Ht;
|
|
466
466
|
}
|
|
467
467
|
var An;
|
|
468
468
|
function Gr() {
|
|
469
469
|
return An || (An = 1, process.env.NODE_ENV === "production" ? bt.exports = Yr() : bt.exports = Ur()), bt.exports;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
const
|
|
471
|
+
var Xr = Gr();
|
|
472
|
+
const Qt = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Et = {
|
|
473
473
|
current: []
|
|
474
474
|
};
|
|
475
|
-
let
|
|
475
|
+
let Yt = !1;
|
|
476
476
|
const xt = /* @__PURE__ */ new Set(), kn = /* @__PURE__ */ new Map();
|
|
477
477
|
function Jn(e) {
|
|
478
478
|
for (const t of e) {
|
|
479
479
|
if (Et.current.includes(t))
|
|
480
480
|
continue;
|
|
481
481
|
Et.current.push(t), t.recompute();
|
|
482
|
-
const n =
|
|
482
|
+
const n = qr.get(t);
|
|
483
483
|
if (n)
|
|
484
484
|
for (const r of n) {
|
|
485
|
-
const o =
|
|
485
|
+
const o = Qt.get(r);
|
|
486
486
|
o?.length && Jn(o);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
@@ -504,9 +504,9 @@ function Kr(e) {
|
|
|
504
504
|
n(t);
|
|
505
505
|
}
|
|
506
506
|
function Zr(e) {
|
|
507
|
-
if (xt.add(e), !
|
|
507
|
+
if (xt.add(e), !Yt)
|
|
508
508
|
try {
|
|
509
|
-
for (
|
|
509
|
+
for (Yt = !0; xt.size > 0; ) {
|
|
510
510
|
const t = Array.from(xt);
|
|
511
511
|
xt.clear();
|
|
512
512
|
for (const n of t) {
|
|
@@ -514,18 +514,18 @@ function Zr(e) {
|
|
|
514
514
|
n.prevState = r, Jr(n);
|
|
515
515
|
}
|
|
516
516
|
for (const n of t) {
|
|
517
|
-
const r =
|
|
517
|
+
const r = Qt.get(n);
|
|
518
518
|
r && (Et.current.push(n), Jn(r));
|
|
519
519
|
}
|
|
520
520
|
for (const n of t) {
|
|
521
|
-
const r =
|
|
521
|
+
const r = Qt.get(n);
|
|
522
522
|
if (r)
|
|
523
523
|
for (const o of r)
|
|
524
524
|
Kr(o);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
} finally {
|
|
528
|
-
|
|
528
|
+
Yt = !1, Et.current = [], kn.clear();
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function Qr(e) {
|
|
@@ -549,7 +549,7 @@ class Kn {
|
|
|
549
549
|
}
|
|
550
550
|
function ct(e, t = (r) => r, n = {}) {
|
|
551
551
|
const r = n.equal ?? eo;
|
|
552
|
-
return
|
|
552
|
+
return Xr.useSyncExternalStoreWithSelector(
|
|
553
553
|
e.subscribe,
|
|
554
554
|
() => e.state,
|
|
555
555
|
() => e.state,
|
|
@@ -600,8 +600,8 @@ function to() {
|
|
|
600
600
|
t
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
function
|
|
603
|
+
const kt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
604
|
+
function Ye(e) {
|
|
605
605
|
const t = Object.prototype.toString.call(e);
|
|
606
606
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
607
607
|
t === "[object global]";
|
|
@@ -611,7 +611,7 @@ function an(e) {
|
|
|
611
611
|
}
|
|
612
612
|
function K(e) {
|
|
613
613
|
var t, n;
|
|
614
|
-
return e ?
|
|
614
|
+
return e ? Ye(e) ? e : an(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
615
615
|
}
|
|
616
616
|
function ln(e) {
|
|
617
617
|
const {
|
|
@@ -620,15 +620,15 @@ function ln(e) {
|
|
|
620
620
|
return e instanceof t;
|
|
621
621
|
}
|
|
622
622
|
function ut(e) {
|
|
623
|
-
return
|
|
623
|
+
return Ye(e) ? !1 : e instanceof K(e).HTMLElement;
|
|
624
624
|
}
|
|
625
625
|
function Zn(e) {
|
|
626
626
|
return e instanceof K(e).SVGElement;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return e ?
|
|
628
|
+
function Ue(e) {
|
|
629
|
+
return e ? Ye(e) ? e.document : an(e) ? ln(e) ? e : ut(e) || Zn(e) ? e.ownerDocument : document : document : document;
|
|
630
630
|
}
|
|
631
|
-
const pe =
|
|
631
|
+
const pe = kt ? kr : L;
|
|
632
632
|
function cn(e) {
|
|
633
633
|
const t = M(e);
|
|
634
634
|
return pe(() => {
|
|
@@ -647,7 +647,7 @@ function no() {
|
|
|
647
647
|
}, []);
|
|
648
648
|
return [t, n];
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function it(e, t) {
|
|
651
651
|
t === void 0 && (t = [e]);
|
|
652
652
|
const n = M(e);
|
|
653
653
|
return pe(() => {
|
|
@@ -675,19 +675,19 @@ function Dt(e) {
|
|
|
675
675
|
);
|
|
676
676
|
return [n, r];
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function en(e) {
|
|
679
679
|
const t = M();
|
|
680
680
|
return L(() => {
|
|
681
681
|
t.current = e;
|
|
682
682
|
}, [e]), t.current;
|
|
683
683
|
}
|
|
684
|
-
let
|
|
684
|
+
let Ut = {};
|
|
685
685
|
function ft(e, t) {
|
|
686
686
|
return A(() => {
|
|
687
687
|
if (t)
|
|
688
688
|
return t;
|
|
689
|
-
const n =
|
|
690
|
-
return
|
|
689
|
+
const n = Ut[e] == null ? 0 : Ut[e] + 1;
|
|
690
|
+
return Ut[e] = n, e + "-" + n;
|
|
691
691
|
}, [e, t]);
|
|
692
692
|
}
|
|
693
693
|
function Qn(e) {
|
|
@@ -696,9 +696,9 @@ function Qn(e) {
|
|
|
696
696
|
r[o - 1] = arguments[o];
|
|
697
697
|
return r.reduce((i, s) => {
|
|
698
698
|
const a = Object.entries(s);
|
|
699
|
-
for (const [
|
|
700
|
-
const
|
|
701
|
-
|
|
699
|
+
for (const [d, u] of a) {
|
|
700
|
+
const f = i[d];
|
|
701
|
+
f != null && (i[d] = f + e * u);
|
|
702
702
|
}
|
|
703
703
|
return i;
|
|
704
704
|
}, {
|
|
@@ -706,7 +706,7 @@ function Qn(e) {
|
|
|
706
706
|
});
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
const
|
|
709
|
+
const We = /* @__PURE__ */ Qn(1), _t = /* @__PURE__ */ Qn(-1);
|
|
710
710
|
function ro(e) {
|
|
711
711
|
return "clientX" in e && "clientY" in e;
|
|
712
712
|
}
|
|
@@ -726,7 +726,7 @@ function oo(e) {
|
|
|
726
726
|
} = K(e.target);
|
|
727
727
|
return t && e instanceof t;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function tn(e) {
|
|
730
730
|
if (oo(e)) {
|
|
731
731
|
if (e.touches && e.touches.length) {
|
|
732
732
|
const {
|
|
@@ -753,7 +753,7 @@ function en(e) {
|
|
|
753
753
|
y: e.clientY
|
|
754
754
|
} : null;
|
|
755
755
|
}
|
|
756
|
-
const
|
|
756
|
+
const He = /* @__PURE__ */ Object.freeze({
|
|
757
757
|
Translate: {
|
|
758
758
|
toString(e) {
|
|
759
759
|
if (!e)
|
|
@@ -779,7 +779,7 @@ const Be = /* @__PURE__ */ Object.freeze({
|
|
|
779
779
|
Transform: {
|
|
780
780
|
toString(e) {
|
|
781
781
|
if (e)
|
|
782
|
-
return [
|
|
782
|
+
return [He.Translate.toString(e), He.Scale.toString(e)].join(" ");
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
785
|
Transition: {
|
|
@@ -838,7 +838,7 @@ function lo(e) {
|
|
|
838
838
|
}, n);
|
|
839
839
|
}
|
|
840
840
|
function co() {
|
|
841
|
-
const [e, t] =
|
|
841
|
+
const [e, t] = ne("");
|
|
842
842
|
return {
|
|
843
843
|
announce: G((r) => {
|
|
844
844
|
r != null && t(r);
|
|
@@ -846,9 +846,9 @@ function co() {
|
|
|
846
846
|
announcement: e
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
const er = /* @__PURE__ */
|
|
849
|
+
const er = /* @__PURE__ */ at(null);
|
|
850
850
|
function uo(e) {
|
|
851
|
-
const t =
|
|
851
|
+
const t = Ne(er);
|
|
852
852
|
L(() => {
|
|
853
853
|
if (!t)
|
|
854
854
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -856,7 +856,7 @@ function uo(e) {
|
|
|
856
856
|
}, [e, t]);
|
|
857
857
|
}
|
|
858
858
|
function fo() {
|
|
859
|
-
const [e] =
|
|
859
|
+
const [e] = ne(() => /* @__PURE__ */ new Set()), t = G((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
860
860
|
return [G((r) => {
|
|
861
861
|
let {
|
|
862
862
|
type: o,
|
|
@@ -912,68 +912,68 @@ function go(e) {
|
|
|
912
912
|
const {
|
|
913
913
|
announce: i,
|
|
914
914
|
announcement: s
|
|
915
|
-
} = co(), a = ft("DndLiveRegion"), [
|
|
915
|
+
} = co(), a = ft("DndLiveRegion"), [d, u] = ne(!1);
|
|
916
916
|
if (L(() => {
|
|
917
|
-
|
|
917
|
+
u(!0);
|
|
918
918
|
}, []), uo(A(() => ({
|
|
919
|
-
onDragStart(
|
|
919
|
+
onDragStart(h) {
|
|
920
920
|
let {
|
|
921
|
-
active:
|
|
922
|
-
} =
|
|
921
|
+
active: g
|
|
922
|
+
} = h;
|
|
923
923
|
i(t.onDragStart({
|
|
924
|
-
active:
|
|
924
|
+
active: g
|
|
925
925
|
}));
|
|
926
926
|
},
|
|
927
|
-
onDragMove(
|
|
927
|
+
onDragMove(h) {
|
|
928
928
|
let {
|
|
929
|
-
active:
|
|
930
|
-
over:
|
|
931
|
-
} =
|
|
929
|
+
active: g,
|
|
930
|
+
over: c
|
|
931
|
+
} = h;
|
|
932
932
|
t.onDragMove && i(t.onDragMove({
|
|
933
|
-
active:
|
|
934
|
-
over:
|
|
933
|
+
active: g,
|
|
934
|
+
over: c
|
|
935
935
|
}));
|
|
936
936
|
},
|
|
937
|
-
onDragOver(
|
|
937
|
+
onDragOver(h) {
|
|
938
938
|
let {
|
|
939
|
-
active:
|
|
940
|
-
over:
|
|
941
|
-
} =
|
|
939
|
+
active: g,
|
|
940
|
+
over: c
|
|
941
|
+
} = h;
|
|
942
942
|
i(t.onDragOver({
|
|
943
|
-
active:
|
|
944
|
-
over:
|
|
943
|
+
active: g,
|
|
944
|
+
over: c
|
|
945
945
|
}));
|
|
946
946
|
},
|
|
947
|
-
onDragEnd(
|
|
947
|
+
onDragEnd(h) {
|
|
948
948
|
let {
|
|
949
|
-
active:
|
|
950
|
-
over:
|
|
951
|
-
} =
|
|
949
|
+
active: g,
|
|
950
|
+
over: c
|
|
951
|
+
} = h;
|
|
952
952
|
i(t.onDragEnd({
|
|
953
|
-
active:
|
|
954
|
-
over:
|
|
953
|
+
active: g,
|
|
954
|
+
over: c
|
|
955
955
|
}));
|
|
956
956
|
},
|
|
957
|
-
onDragCancel(
|
|
957
|
+
onDragCancel(h) {
|
|
958
958
|
let {
|
|
959
|
-
active:
|
|
960
|
-
over:
|
|
961
|
-
} =
|
|
959
|
+
active: g,
|
|
960
|
+
over: c
|
|
961
|
+
} = h;
|
|
962
962
|
i(t.onDragCancel({
|
|
963
|
-
active:
|
|
964
|
-
over:
|
|
963
|
+
active: g,
|
|
964
|
+
over: c
|
|
965
965
|
}));
|
|
966
966
|
}
|
|
967
|
-
}), [i, t])), !
|
|
967
|
+
}), [i, t])), !d)
|
|
968
968
|
return null;
|
|
969
|
-
const
|
|
969
|
+
const f = F.createElement(F.Fragment, null, F.createElement(ao, {
|
|
970
970
|
id: r,
|
|
971
971
|
value: o.draggable
|
|
972
972
|
}), F.createElement(lo, {
|
|
973
973
|
id: a,
|
|
974
974
|
announcement: s
|
|
975
975
|
}));
|
|
976
|
-
return n ? $r(
|
|
976
|
+
return n ? $r(f, n) : f;
|
|
977
977
|
}
|
|
978
978
|
var V;
|
|
979
979
|
(function(e) {
|
|
@@ -1053,14 +1053,14 @@ const tr = (e) => {
|
|
|
1053
1053
|
for (const s of r) {
|
|
1054
1054
|
const {
|
|
1055
1055
|
id: a
|
|
1056
|
-
} = s,
|
|
1057
|
-
if (
|
|
1058
|
-
const
|
|
1056
|
+
} = s, d = n.get(a);
|
|
1057
|
+
if (d) {
|
|
1058
|
+
const u = mo(Mn(d), o);
|
|
1059
1059
|
i.push({
|
|
1060
1060
|
id: a,
|
|
1061
1061
|
data: {
|
|
1062
1062
|
droppableContainer: s,
|
|
1063
|
-
value:
|
|
1063
|
+
value: u
|
|
1064
1064
|
}
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
@@ -1070,8 +1070,8 @@ const tr = (e) => {
|
|
|
1070
1070
|
function So(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), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
|
|
1072
1072
|
if (r < o && n < i) {
|
|
1073
|
-
const
|
|
1074
|
-
return Number(
|
|
1073
|
+
const d = t.width * t.height, u = e.width * e.height, f = s * a, h = f / (d + u - f);
|
|
1074
|
+
return Number(h.toFixed(4));
|
|
1075
1075
|
}
|
|
1076
1076
|
return 0;
|
|
1077
1077
|
}
|
|
@@ -1087,12 +1087,12 @@ const Ro = (e) => {
|
|
|
1087
1087
|
id: s
|
|
1088
1088
|
} = i, a = n.get(s);
|
|
1089
1089
|
if (a) {
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1090
|
+
const d = So(a, t);
|
|
1091
|
+
d > 0 && o.push({
|
|
1092
1092
|
id: s,
|
|
1093
1093
|
data: {
|
|
1094
1094
|
droppableContainer: i,
|
|
1095
|
-
value:
|
|
1095
|
+
value: d
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
@@ -1157,28 +1157,28 @@ function Oo(e, t, n) {
|
|
|
1157
1157
|
scaleY: i,
|
|
1158
1158
|
x: s,
|
|
1159
1159
|
y: a
|
|
1160
|
-
} = r,
|
|
1160
|
+
} = r, d = e.left - s - (1 - o) * parseFloat(n), u = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, h = i ? e.height / i : e.height;
|
|
1161
1161
|
return {
|
|
1162
|
-
width:
|
|
1163
|
-
height:
|
|
1164
|
-
top:
|
|
1165
|
-
right:
|
|
1166
|
-
bottom:
|
|
1167
|
-
left:
|
|
1162
|
+
width: f,
|
|
1163
|
+
height: h,
|
|
1164
|
+
top: u,
|
|
1165
|
+
right: d + f,
|
|
1166
|
+
bottom: u + h,
|
|
1167
|
+
left: d
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
1170
|
const To = {
|
|
1171
1171
|
ignoreTransform: !1
|
|
1172
1172
|
};
|
|
1173
|
-
function
|
|
1173
|
+
function Ge(e, t) {
|
|
1174
1174
|
t === void 0 && (t = To);
|
|
1175
1175
|
let n = e.getBoundingClientRect();
|
|
1176
1176
|
if (t.ignoreTransform) {
|
|
1177
1177
|
const {
|
|
1178
|
-
transform:
|
|
1179
|
-
transformOrigin:
|
|
1178
|
+
transform: u,
|
|
1179
|
+
transformOrigin: f
|
|
1180
1180
|
} = K(e).getComputedStyle(e);
|
|
1181
|
-
|
|
1181
|
+
u && (n = Oo(n, u, f));
|
|
1182
1182
|
}
|
|
1183
1183
|
const {
|
|
1184
1184
|
top: r,
|
|
@@ -1186,7 +1186,7 @@ function Ye(e, t) {
|
|
|
1186
1186
|
width: i,
|
|
1187
1187
|
height: s,
|
|
1188
1188
|
bottom: a,
|
|
1189
|
-
right:
|
|
1189
|
+
right: d
|
|
1190
1190
|
} = n;
|
|
1191
1191
|
return {
|
|
1192
1192
|
top: r,
|
|
@@ -1194,11 +1194,11 @@ function Ye(e, t) {
|
|
|
1194
1194
|
width: i,
|
|
1195
1195
|
height: s,
|
|
1196
1196
|
bottom: a,
|
|
1197
|
-
right:
|
|
1197
|
+
right: d
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
function Pn(e) {
|
|
1201
|
-
return
|
|
1201
|
+
return Ge(e, {
|
|
1202
1202
|
ignoreTransform: !0
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
@@ -1242,16 +1242,16 @@ function rr(e) {
|
|
|
1242
1242
|
const [t] = dn(e, 1);
|
|
1243
1243
|
return t ?? null;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return !
|
|
1245
|
+
function Gt(e) {
|
|
1246
|
+
return !kt || !e ? null : Ye(e) ? e : an(e) ? ln(e) || e === Ue(e).scrollingElement ? window : ut(e) ? e : null : null;
|
|
1247
1247
|
}
|
|
1248
1248
|
function or(e) {
|
|
1249
|
-
return
|
|
1249
|
+
return Ye(e) ? e.scrollX : e.scrollLeft;
|
|
1250
1250
|
}
|
|
1251
1251
|
function ir(e) {
|
|
1252
|
-
return
|
|
1252
|
+
return Ye(e) ? e.scrollY : e.scrollTop;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function nn(e) {
|
|
1255
1255
|
return {
|
|
1256
1256
|
x: or(e),
|
|
1257
1257
|
y: ir(e)
|
|
@@ -1262,7 +1262,7 @@ var B;
|
|
|
1262
1262
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
1263
1263
|
})(B || (B = {}));
|
|
1264
1264
|
function sr(e) {
|
|
1265
|
-
return !
|
|
1265
|
+
return !kt || !e ? !1 : e === document.scrollingElement;
|
|
1266
1266
|
}
|
|
1267
1267
|
function ar(e) {
|
|
1268
1268
|
const t = {
|
|
@@ -1296,27 +1296,27 @@ function No(e, t, n, r, o) {
|
|
|
1296
1296
|
top: i,
|
|
1297
1297
|
left: s,
|
|
1298
1298
|
right: a,
|
|
1299
|
-
bottom:
|
|
1299
|
+
bottom: d
|
|
1300
1300
|
} = n;
|
|
1301
1301
|
r === void 0 && (r = 10), o === void 0 && (o = ko);
|
|
1302
1302
|
const {
|
|
1303
|
-
isTop:
|
|
1304
|
-
isBottom:
|
|
1305
|
-
isLeft:
|
|
1306
|
-
isRight:
|
|
1307
|
-
} = ar(e),
|
|
1303
|
+
isTop: u,
|
|
1304
|
+
isBottom: f,
|
|
1305
|
+
isLeft: h,
|
|
1306
|
+
isRight: g
|
|
1307
|
+
} = ar(e), c = {
|
|
1308
1308
|
x: 0,
|
|
1309
1309
|
y: 0
|
|
1310
|
-
},
|
|
1310
|
+
}, b = {
|
|
1311
1311
|
x: 0,
|
|
1312
1312
|
y: 0
|
|
1313
|
-
},
|
|
1313
|
+
}, p = {
|
|
1314
1314
|
height: t.height * o.y,
|
|
1315
1315
|
width: t.width * o.x
|
|
1316
1316
|
};
|
|
1317
|
-
return !
|
|
1318
|
-
direction:
|
|
1319
|
-
speed:
|
|
1317
|
+
return !u && i <= t.top + p.height ? (c.y = B.Backward, b.y = r * Math.abs((t.top + p.height - i) / p.height)) : !f && d >= t.bottom - p.height && (c.y = B.Forward, b.y = r * Math.abs((t.bottom - p.height - d) / p.height)), !g && a >= t.right - p.width ? (c.x = B.Forward, b.x = r * Math.abs((t.right - p.width - a) / p.width)) : !h && s <= t.left + p.width && (c.x = B.Backward, b.x = r * Math.abs((t.left + p.width - s) / p.width)), {
|
|
1318
|
+
direction: c,
|
|
1319
|
+
speed: b
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
function Lo(e) {
|
|
@@ -1350,7 +1350,7 @@ function Lo(e) {
|
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
1352
|
function lr(e) {
|
|
1353
|
-
return e.reduce((t, n) =>
|
|
1353
|
+
return e.reduce((t, n) => We(t, nn(n)), ce);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Mo(e) {
|
|
1356
1356
|
return e.reduce((t, n) => t + or(n), 0);
|
|
@@ -1359,7 +1359,7 @@ function Po(e) {
|
|
|
1359
1359
|
return e.reduce((t, n) => t + ir(n), 0);
|
|
1360
1360
|
}
|
|
1361
1361
|
function zo(e, t) {
|
|
1362
|
-
if (t === void 0 && (t =
|
|
1362
|
+
if (t === void 0 && (t = Ge), !e)
|
|
1363
1363
|
return;
|
|
1364
1364
|
const {
|
|
1365
1365
|
top: n,
|
|
@@ -1381,11 +1381,11 @@ class fn {
|
|
|
1381
1381
|
...t
|
|
1382
1382
|
}, this.width = t.width, this.height = t.height;
|
|
1383
1383
|
for (const [i, s, a] of $o)
|
|
1384
|
-
for (const
|
|
1385
|
-
Object.defineProperty(this,
|
|
1384
|
+
for (const d of s)
|
|
1385
|
+
Object.defineProperty(this, d, {
|
|
1386
1386
|
get: () => {
|
|
1387
|
-
const
|
|
1388
|
-
return this.rect[
|
|
1387
|
+
const u = a(r), f = o[i] - u;
|
|
1388
|
+
return this.rect[d] + f;
|
|
1389
1389
|
},
|
|
1390
1390
|
enumerable: !0
|
|
1391
1391
|
});
|
|
@@ -1394,7 +1394,7 @@ class fn {
|
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
class
|
|
1397
|
+
class nt {
|
|
1398
1398
|
constructor(t) {
|
|
1399
1399
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
1400
1400
|
this.listeners.forEach((n) => {
|
|
@@ -1412,9 +1412,9 @@ function Vo(e) {
|
|
|
1412
1412
|
const {
|
|
1413
1413
|
EventTarget: t
|
|
1414
1414
|
} = K(e);
|
|
1415
|
-
return e instanceof t ? e :
|
|
1415
|
+
return e instanceof t ? e : Ue(e);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Xt(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
|
}
|
|
@@ -1471,7 +1471,7 @@ class ur {
|
|
|
1471
1471
|
target: n
|
|
1472
1472
|
}
|
|
1473
1473
|
} = t;
|
|
1474
|
-
this.props = t, this.listeners = new
|
|
1474
|
+
this.props = t, this.listeners = new nt(Ue(n)), this.windowListeners = new nt(K(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1475
1475
|
}
|
|
1476
1476
|
attach() {
|
|
1477
1477
|
this.handleStart(), this.windowListeners.add(ae.Resize, this.handleCancel), this.windowListeners.add(ae.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ae.Keydown, this.handleKeyDown));
|
|
@@ -1494,78 +1494,78 @@ class ur {
|
|
|
1494
1494
|
coordinateGetter: s = Bo,
|
|
1495
1495
|
scrollBehavior: a = "smooth"
|
|
1496
1496
|
} = o, {
|
|
1497
|
-
code:
|
|
1497
|
+
code: d
|
|
1498
1498
|
} = t;
|
|
1499
|
-
if (i.end.includes(
|
|
1499
|
+
if (i.end.includes(d)) {
|
|
1500
1500
|
this.handleEnd(t);
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
|
-
if (i.cancel.includes(
|
|
1503
|
+
if (i.cancel.includes(d)) {
|
|
1504
1504
|
this.handleCancel(t);
|
|
1505
1505
|
return;
|
|
1506
1506
|
}
|
|
1507
1507
|
const {
|
|
1508
|
-
collisionRect:
|
|
1509
|
-
} = r.current,
|
|
1510
|
-
x:
|
|
1511
|
-
y:
|
|
1508
|
+
collisionRect: u
|
|
1509
|
+
} = r.current, f = u ? {
|
|
1510
|
+
x: u.left,
|
|
1511
|
+
y: u.top
|
|
1512
1512
|
} : ce;
|
|
1513
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1514
|
-
const
|
|
1513
|
+
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1514
|
+
const h = s(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 g = _t(h, f), c = {
|
|
1521
1521
|
x: 0,
|
|
1522
1522
|
y: 0
|
|
1523
1523
|
}, {
|
|
1524
|
-
scrollableAncestors:
|
|
1524
|
+
scrollableAncestors: b
|
|
1525
1525
|
} = r.current;
|
|
1526
|
-
for (const
|
|
1527
|
-
const
|
|
1526
|
+
for (const p of b) {
|
|
1527
|
+
const m = t.code, {
|
|
1528
1528
|
isTop: x,
|
|
1529
|
-
isRight:
|
|
1529
|
+
isRight: R,
|
|
1530
1530
|
isLeft: C,
|
|
1531
|
-
isBottom:
|
|
1531
|
+
isBottom: D,
|
|
1532
1532
|
maxScroll: O,
|
|
1533
|
-
minScroll:
|
|
1534
|
-
} = ar(
|
|
1535
|
-
x: Math.min(
|
|
1536
|
-
y: Math.min(
|
|
1537
|
-
}, P =
|
|
1538
|
-
if (P &&
|
|
1539
|
-
const N =
|
|
1540
|
-
if (
|
|
1541
|
-
|
|
1533
|
+
minScroll: w
|
|
1534
|
+
} = ar(p), S = Lo(p), _ = {
|
|
1535
|
+
x: Math.min(m === j.Right ? S.right - S.width / 2 : S.right, Math.max(m === j.Right ? S.left : S.left + S.width / 2, h.x)),
|
|
1536
|
+
y: Math.min(m === j.Down ? S.bottom - S.height / 2 : S.bottom, Math.max(m === j.Down ? S.top : S.top + S.height / 2, h.y))
|
|
1537
|
+
}, P = m === j.Right && !R || m === j.Left && !C, $ = m === j.Down && !D || m === j.Up && !x;
|
|
1538
|
+
if (P && _.x !== h.x) {
|
|
1539
|
+
const N = p.scrollLeft + g.x, X = m === j.Right && N <= O.x || m === j.Left && N >= w.x;
|
|
1540
|
+
if (X && !g.y) {
|
|
1541
|
+
p.scrollTo({
|
|
1542
1542
|
left: N,
|
|
1543
1543
|
behavior: a
|
|
1544
1544
|
});
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
|
-
|
|
1548
|
-
left: -
|
|
1547
|
+
X ? c.x = p.scrollLeft - N : c.x = m === j.Right ? p.scrollLeft - O.x : p.scrollLeft - w.x, c.x && p.scrollBy({
|
|
1548
|
+
left: -c.x,
|
|
1549
1549
|
behavior: a
|
|
1550
1550
|
});
|
|
1551
1551
|
break;
|
|
1552
|
-
} else if ($ &&
|
|
1553
|
-
const N =
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1552
|
+
} else if ($ && _.y !== h.y) {
|
|
1553
|
+
const N = p.scrollTop + g.y, X = m === j.Down && N <= O.y || m === j.Up && N >= w.y;
|
|
1554
|
+
if (X && !g.x) {
|
|
1555
|
+
p.scrollTo({
|
|
1556
1556
|
top: N,
|
|
1557
1557
|
behavior: a
|
|
1558
1558
|
});
|
|
1559
1559
|
return;
|
|
1560
1560
|
}
|
|
1561
|
-
|
|
1562
|
-
top: -
|
|
1561
|
+
X ? c.y = p.scrollTop - N : c.y = m === j.Down ? p.scrollTop - O.y : p.scrollTop - w.y, c.y && p.scrollBy({
|
|
1562
|
+
top: -c.y,
|
|
1563
1563
|
behavior: a
|
|
1564
1564
|
});
|
|
1565
1565
|
break;
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
this.handleMove(t,
|
|
1568
|
+
this.handleMove(t, We(_t(h, this.referenceCoordinates), c));
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
@@ -1627,7 +1627,7 @@ class hn {
|
|
|
1627
1627
|
} = t, {
|
|
1628
1628
|
target: s
|
|
1629
1629
|
} = i;
|
|
1630
|
-
this.props = t, this.events = n, this.document =
|
|
1630
|
+
this.props = t, this.events = n, this.document = Ue(s), this.documentListeners = new nt(this.document), this.listeners = new nt(r), this.windowListeners = new nt(K(s)), this.initialCoordinates = (o = tn(i)) != null ? o : ce, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1631
1631
|
}
|
|
1632
1632
|
attach() {
|
|
1633
1633
|
const {
|
|
@@ -1693,20 +1693,20 @@ class hn {
|
|
|
1693
1693
|
} = i;
|
|
1694
1694
|
if (!o)
|
|
1695
1695
|
return;
|
|
1696
|
-
const
|
|
1696
|
+
const d = (n = tn(t)) != null ? n : ce, u = _t(o, d);
|
|
1697
1697
|
if (!r && a) {
|
|
1698
1698
|
if ($n(a)) {
|
|
1699
|
-
if (a.tolerance != null &&
|
|
1699
|
+
if (a.tolerance != null && Xt(u, a.tolerance))
|
|
1700
1700
|
return this.handleCancel();
|
|
1701
|
-
if (
|
|
1701
|
+
if (Xt(u, a.distance))
|
|
1702
1702
|
return this.handleStart();
|
|
1703
1703
|
}
|
|
1704
|
-
if (Vn(a) &&
|
|
1704
|
+
if (Vn(a) && Xt(u, a.tolerance))
|
|
1705
1705
|
return this.handleCancel();
|
|
1706
|
-
this.handlePending(a,
|
|
1706
|
+
this.handlePending(a, u);
|
|
1707
1707
|
return;
|
|
1708
1708
|
}
|
|
1709
|
-
t.cancelable && t.preventDefault(), s(
|
|
1709
|
+
t.cancelable && t.preventDefault(), s(d);
|
|
1710
1710
|
}
|
|
1711
1711
|
handleEnd() {
|
|
1712
1712
|
const {
|
|
@@ -1745,7 +1745,7 @@ class vn extends hn {
|
|
|
1745
1745
|
constructor(t) {
|
|
1746
1746
|
const {
|
|
1747
1747
|
event: n
|
|
1748
|
-
} = t, r =
|
|
1748
|
+
} = t, r = Ue(n.target);
|
|
1749
1749
|
super(t, Wo, r);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
@@ -1770,13 +1770,13 @@ const Ho = {
|
|
|
1770
1770
|
name: "mouseup"
|
|
1771
1771
|
}
|
|
1772
1772
|
};
|
|
1773
|
-
var
|
|
1773
|
+
var rn;
|
|
1774
1774
|
(function(e) {
|
|
1775
1775
|
e[e.RightClick = 2] = "RightClick";
|
|
1776
|
-
})(
|
|
1776
|
+
})(rn || (rn = {}));
|
|
1777
1777
|
class Yo extends hn {
|
|
1778
1778
|
constructor(t) {
|
|
1779
|
-
super(t, Ho,
|
|
1779
|
+
super(t, Ho, Ue(t.event.target));
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
Yo.activators = [{
|
|
@@ -1787,7 +1787,7 @@ Yo.activators = [{
|
|
|
1787
1787
|
} = e, {
|
|
1788
1788
|
onActivation: r
|
|
1789
1789
|
} = t;
|
|
1790
|
-
return n.button ===
|
|
1790
|
+
return n.button === rn.RightClick ? !1 : (r?.({
|
|
1791
1791
|
event: n
|
|
1792
1792
|
}), !0);
|
|
1793
1793
|
}
|
|
@@ -1834,10 +1834,10 @@ Uo.activators = [{
|
|
|
1834
1834
|
}), !0);
|
|
1835
1835
|
}
|
|
1836
1836
|
}];
|
|
1837
|
-
var
|
|
1837
|
+
var rt;
|
|
1838
1838
|
(function(e) {
|
|
1839
1839
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1840
|
-
})(
|
|
1840
|
+
})(rt || (rt = {}));
|
|
1841
1841
|
var Tt;
|
|
1842
1842
|
(function(e) {
|
|
1843
1843
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
@@ -1845,99 +1845,99 @@ var Tt;
|
|
|
1845
1845
|
function Go(e) {
|
|
1846
1846
|
let {
|
|
1847
1847
|
acceleration: t,
|
|
1848
|
-
activator: n =
|
|
1848
|
+
activator: n = rt.Pointer,
|
|
1849
1849
|
canScroll: r,
|
|
1850
1850
|
draggingRect: o,
|
|
1851
1851
|
enabled: i,
|
|
1852
1852
|
interval: s = 5,
|
|
1853
1853
|
order: a = Tt.TreeOrder,
|
|
1854
|
-
pointerCoordinates:
|
|
1855
|
-
scrollableAncestors:
|
|
1856
|
-
scrollableAncestorRects:
|
|
1857
|
-
delta:
|
|
1858
|
-
threshold:
|
|
1854
|
+
pointerCoordinates: d,
|
|
1855
|
+
scrollableAncestors: u,
|
|
1856
|
+
scrollableAncestorRects: f,
|
|
1857
|
+
delta: h,
|
|
1858
|
+
threshold: g
|
|
1859
1859
|
} = e;
|
|
1860
|
-
const
|
|
1861
|
-
delta:
|
|
1860
|
+
const c = qo({
|
|
1861
|
+
delta: h,
|
|
1862
1862
|
disabled: !i
|
|
1863
|
-
}), [
|
|
1863
|
+
}), [b, p] = no(), m = M({
|
|
1864
1864
|
x: 0,
|
|
1865
1865
|
y: 0
|
|
1866
1866
|
}), x = M({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
|
-
}),
|
|
1869
|
+
}), R = A(() => {
|
|
1870
1870
|
switch (n) {
|
|
1871
|
-
case
|
|
1872
|
-
return
|
|
1873
|
-
top:
|
|
1874
|
-
bottom:
|
|
1875
|
-
left:
|
|
1876
|
-
right:
|
|
1871
|
+
case rt.Pointer:
|
|
1872
|
+
return d ? {
|
|
1873
|
+
top: d.y,
|
|
1874
|
+
bottom: d.y,
|
|
1875
|
+
left: d.x,
|
|
1876
|
+
right: d.x
|
|
1877
1877
|
} : null;
|
|
1878
|
-
case
|
|
1878
|
+
case rt.DraggableRect:
|
|
1879
1879
|
return o;
|
|
1880
1880
|
}
|
|
1881
|
-
}, [n, o,
|
|
1882
|
-
const
|
|
1883
|
-
if (!
|
|
1881
|
+
}, [n, o, d]), C = M(null), D = G(() => {
|
|
1882
|
+
const w = C.current;
|
|
1883
|
+
if (!w)
|
|
1884
1884
|
return;
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1887
|
-
}, []), O = A(() => a === Tt.TreeOrder ? [...
|
|
1885
|
+
const S = m.current.x * x.current.x, _ = m.current.y * x.current.y;
|
|
1886
|
+
w.scrollBy(S, _);
|
|
1887
|
+
}, []), O = A(() => a === Tt.TreeOrder ? [...u].reverse() : u, [a, u]);
|
|
1888
1888
|
L(
|
|
1889
1889
|
() => {
|
|
1890
|
-
if (!i || !
|
|
1891
|
-
|
|
1890
|
+
if (!i || !u.length || !R) {
|
|
1891
|
+
p();
|
|
1892
1892
|
return;
|
|
1893
1893
|
}
|
|
1894
|
-
for (const
|
|
1895
|
-
if (r?.(
|
|
1894
|
+
for (const w of O) {
|
|
1895
|
+
if (r?.(w) === !1)
|
|
1896
1896
|
continue;
|
|
1897
|
-
const
|
|
1898
|
-
if (!
|
|
1897
|
+
const S = u.indexOf(w), _ = f[S];
|
|
1898
|
+
if (!_)
|
|
1899
1899
|
continue;
|
|
1900
1900
|
const {
|
|
1901
1901
|
direction: P,
|
|
1902
1902
|
speed: $
|
|
1903
|
-
} = No(
|
|
1903
|
+
} = No(w, _, R, t, g);
|
|
1904
1904
|
for (const N of ["x", "y"])
|
|
1905
|
-
|
|
1905
|
+
c[N][P[N]] || ($[N] = 0, P[N] = 0);
|
|
1906
1906
|
if ($.x > 0 || $.y > 0) {
|
|
1907
|
-
|
|
1907
|
+
p(), C.current = w, b(D, s), m.current = $, x.current = P;
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
m.current = {
|
|
1912
1912
|
x: 0,
|
|
1913
1913
|
y: 0
|
|
1914
1914
|
}, x.current = {
|
|
1915
1915
|
x: 0,
|
|
1916
1916
|
y: 0
|
|
1917
|
-
},
|
|
1917
|
+
}, p();
|
|
1918
1918
|
},
|
|
1919
1919
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1920
1920
|
[
|
|
1921
1921
|
t,
|
|
1922
|
-
|
|
1922
|
+
D,
|
|
1923
1923
|
r,
|
|
1924
|
-
|
|
1924
|
+
p,
|
|
1925
1925
|
i,
|
|
1926
1926
|
s,
|
|
1927
1927
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1928
|
-
JSON.stringify(
|
|
1928
|
+
JSON.stringify(R),
|
|
1929
1929
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1930
|
-
JSON.stringify(
|
|
1931
|
-
|
|
1932
|
-
|
|
1930
|
+
JSON.stringify(c),
|
|
1931
|
+
b,
|
|
1932
|
+
u,
|
|
1933
1933
|
O,
|
|
1934
|
-
|
|
1934
|
+
f,
|
|
1935
1935
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1936
|
-
JSON.stringify(
|
|
1936
|
+
JSON.stringify(g)
|
|
1937
1937
|
]
|
|
1938
1938
|
);
|
|
1939
1939
|
}
|
|
1940
|
-
const
|
|
1940
|
+
const Xo = {
|
|
1941
1941
|
x: {
|
|
1942
1942
|
[B.Backward]: !1,
|
|
1943
1943
|
[B.Forward]: !1
|
|
@@ -1947,15 +1947,15 @@ const qo = {
|
|
|
1947
1947
|
[B.Forward]: !1
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
|
-
function
|
|
1950
|
+
function qo(e) {
|
|
1951
1951
|
let {
|
|
1952
1952
|
delta: t,
|
|
1953
1953
|
disabled: n
|
|
1954
1954
|
} = e;
|
|
1955
|
-
const r =
|
|
1955
|
+
const r = en(t);
|
|
1956
1956
|
return dt((o) => {
|
|
1957
1957
|
if (n || !r || !o)
|
|
1958
|
-
return
|
|
1958
|
+
return Xo;
|
|
1959
1959
|
const i = {
|
|
1960
1960
|
x: Math.sign(t.x - r.x),
|
|
1961
1961
|
y: Math.sign(t.y - r.y)
|
|
@@ -1990,14 +1990,14 @@ function Ko(e, t) {
|
|
|
1990
1990
|
return [...n, ...i];
|
|
1991
1991
|
}, []), [e, t]);
|
|
1992
1992
|
}
|
|
1993
|
-
var
|
|
1993
|
+
var st;
|
|
1994
1994
|
(function(e) {
|
|
1995
1995
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1996
|
-
})(
|
|
1997
|
-
var
|
|
1996
|
+
})(st || (st = {}));
|
|
1997
|
+
var on;
|
|
1998
1998
|
(function(e) {
|
|
1999
1999
|
e.Optimized = "optimized";
|
|
2000
|
-
})(
|
|
2000
|
+
})(on || (on = {}));
|
|
2001
2001
|
const Fn = /* @__PURE__ */ new Map();
|
|
2002
2002
|
function Zo(e, t) {
|
|
2003
2003
|
let {
|
|
@@ -2005,39 +2005,39 @@ function Zo(e, t) {
|
|
|
2005
2005
|
dependencies: r,
|
|
2006
2006
|
config: o
|
|
2007
2007
|
} = t;
|
|
2008
|
-
const [i, s] =
|
|
2008
|
+
const [i, s] = ne(null), {
|
|
2009
2009
|
frequency: a,
|
|
2010
|
-
measure:
|
|
2011
|
-
strategy:
|
|
2012
|
-
} = o,
|
|
2013
|
-
x === void 0 && (x = []), !
|
|
2014
|
-
}, [
|
|
2015
|
-
if (
|
|
2010
|
+
measure: d,
|
|
2011
|
+
strategy: u
|
|
2012
|
+
} = o, f = M(e), h = m(), g = it(h), c = G(function(x) {
|
|
2013
|
+
x === void 0 && (x = []), !g.current && s((R) => R === null ? x : R.concat(x.filter((C) => !R.includes(C))));
|
|
2014
|
+
}, [g]), b = M(null), p = dt((x) => {
|
|
2015
|
+
if (h && !n)
|
|
2016
2016
|
return Fn;
|
|
2017
|
-
if (!x || x === Fn ||
|
|
2018
|
-
const
|
|
2017
|
+
if (!x || x === Fn || f.current !== e || i != null) {
|
|
2018
|
+
const R = /* @__PURE__ */ new Map();
|
|
2019
2019
|
for (let C of e) {
|
|
2020
2020
|
if (!C)
|
|
2021
2021
|
continue;
|
|
2022
2022
|
if (i && i.length > 0 && !i.includes(C.id) && C.rect.current) {
|
|
2023
|
-
|
|
2023
|
+
R.set(C.id, C.rect.current);
|
|
2024
2024
|
continue;
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2027
|
-
C.rect.current = O, O &&
|
|
2026
|
+
const D = C.node.current, O = D ? new fn(d(D), D) : null;
|
|
2027
|
+
C.rect.current = O, O && R.set(C.id, O);
|
|
2028
2028
|
}
|
|
2029
|
-
return
|
|
2029
|
+
return R;
|
|
2030
2030
|
}
|
|
2031
2031
|
return x;
|
|
2032
|
-
}, [e, i, n,
|
|
2032
|
+
}, [e, i, n, h, d]);
|
|
2033
2033
|
return L(() => {
|
|
2034
|
-
|
|
2034
|
+
f.current = e;
|
|
2035
2035
|
}, [e]), L(
|
|
2036
2036
|
() => {
|
|
2037
|
-
|
|
2037
|
+
h || c();
|
|
2038
2038
|
},
|
|
2039
2039
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2040
|
-
[n,
|
|
2040
|
+
[n, h]
|
|
2041
2041
|
), L(
|
|
2042
2042
|
() => {
|
|
2043
2043
|
i && i.length > 0 && s(null);
|
|
@@ -2046,22 +2046,22 @@ function Zo(e, t) {
|
|
|
2046
2046
|
[JSON.stringify(i)]
|
|
2047
2047
|
), L(
|
|
2048
2048
|
() => {
|
|
2049
|
-
|
|
2050
|
-
|
|
2049
|
+
h || typeof a != "number" || b.current !== null || (b.current = setTimeout(() => {
|
|
2050
|
+
c(), b.current = null;
|
|
2051
2051
|
}, a));
|
|
2052
2052
|
},
|
|
2053
2053
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2054
|
-
[a,
|
|
2054
|
+
[a, h, c, ...r]
|
|
2055
2055
|
), {
|
|
2056
|
-
droppableRects:
|
|
2057
|
-
measureDroppableContainers:
|
|
2056
|
+
droppableRects: p,
|
|
2057
|
+
measureDroppableContainers: c,
|
|
2058
2058
|
measuringScheduled: i != null
|
|
2059
2059
|
};
|
|
2060
|
-
function
|
|
2061
|
-
switch (
|
|
2062
|
-
case
|
|
2060
|
+
function m() {
|
|
2061
|
+
switch (u) {
|
|
2062
|
+
case st.Always:
|
|
2063
2063
|
return !1;
|
|
2064
|
-
case
|
|
2064
|
+
case st.BeforeDragging:
|
|
2065
2065
|
return n;
|
|
2066
2066
|
default:
|
|
2067
2067
|
return !n;
|
|
@@ -2089,7 +2089,7 @@ function ei(e) {
|
|
|
2089
2089
|
}, [r, n]);
|
|
2090
2090
|
return L(() => () => o?.disconnect(), [o]), o;
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function Nt(e) {
|
|
2093
2093
|
let {
|
|
2094
2094
|
callback: t,
|
|
2095
2095
|
disabled: n
|
|
@@ -2109,38 +2109,38 @@ function kt(e) {
|
|
|
2109
2109
|
return L(() => () => o?.disconnect(), [o]), o;
|
|
2110
2110
|
}
|
|
2111
2111
|
function ti(e) {
|
|
2112
|
-
return new fn(
|
|
2112
|
+
return new fn(Ge(e), e);
|
|
2113
2113
|
}
|
|
2114
2114
|
function Bn(e, t, n) {
|
|
2115
2115
|
t === void 0 && (t = ti);
|
|
2116
|
-
const [r, o] =
|
|
2116
|
+
const [r, o] = ne(null);
|
|
2117
2117
|
function i() {
|
|
2118
|
-
o((
|
|
2118
|
+
o((d) => {
|
|
2119
2119
|
if (!e)
|
|
2120
2120
|
return null;
|
|
2121
2121
|
if (e.isConnected === !1) {
|
|
2122
|
-
var
|
|
2123
|
-
return (
|
|
2122
|
+
var u;
|
|
2123
|
+
return (u = d ?? n) != null ? u : null;
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2126
|
-
return JSON.stringify(
|
|
2125
|
+
const f = t(e);
|
|
2126
|
+
return JSON.stringify(d) === JSON.stringify(f) ? d : f;
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
2129
2129
|
const s = ei({
|
|
2130
|
-
callback(
|
|
2130
|
+
callback(d) {
|
|
2131
2131
|
if (e)
|
|
2132
|
-
for (const
|
|
2132
|
+
for (const u of d) {
|
|
2133
2133
|
const {
|
|
2134
|
-
type:
|
|
2135
|
-
target:
|
|
2136
|
-
} =
|
|
2137
|
-
if (
|
|
2134
|
+
type: f,
|
|
2135
|
+
target: h
|
|
2136
|
+
} = u;
|
|
2137
|
+
if (f === "childList" && h instanceof HTMLElement && h.contains(e)) {
|
|
2138
2138
|
i();
|
|
2139
2139
|
break;
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
|
-
}), a =
|
|
2143
|
+
}), a = Nt({
|
|
2144
2144
|
callback: i
|
|
2145
2145
|
});
|
|
2146
2146
|
return pe(() => {
|
|
@@ -2162,32 +2162,32 @@ function ri(e) {
|
|
|
2162
2162
|
}, [e]), n;
|
|
2163
2163
|
}
|
|
2164
2164
|
function oi(e) {
|
|
2165
|
-
const [t, n] =
|
|
2166
|
-
const s =
|
|
2167
|
-
s && n((a) => a ? (a.set(s,
|
|
2165
|
+
const [t, n] = ne(null), r = M(e), o = G((i) => {
|
|
2166
|
+
const s = Gt(i.target);
|
|
2167
|
+
s && n((a) => a ? (a.set(s, nn(s)), new Map(a)) : null);
|
|
2168
2168
|
}, []);
|
|
2169
2169
|
return L(() => {
|
|
2170
2170
|
const i = r.current;
|
|
2171
2171
|
if (e !== i) {
|
|
2172
2172
|
s(i);
|
|
2173
|
-
const a = e.map((
|
|
2174
|
-
const
|
|
2175
|
-
return
|
|
2173
|
+
const a = e.map((d) => {
|
|
2174
|
+
const u = Gt(d);
|
|
2175
|
+
return u ? (u.addEventListener("scroll", o, {
|
|
2176
2176
|
passive: !0
|
|
2177
|
-
}), [
|
|
2178
|
-
}).filter((
|
|
2177
|
+
}), [u, nn(u)]) : null;
|
|
2178
|
+
}).filter((d) => d != null);
|
|
2179
2179
|
n(a.length ? new Map(a) : null), r.current = e;
|
|
2180
2180
|
}
|
|
2181
2181
|
return () => {
|
|
2182
2182
|
s(e), s(i);
|
|
2183
2183
|
};
|
|
2184
2184
|
function s(a) {
|
|
2185
|
-
a.forEach((
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2185
|
+
a.forEach((d) => {
|
|
2186
|
+
const u = Gt(d);
|
|
2187
|
+
u?.removeEventListener("scroll", o);
|
|
2188
2188
|
});
|
|
2189
2189
|
}
|
|
2190
|
-
}, [o, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((i, s) =>
|
|
2190
|
+
}, [o, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => We(i, s), ce) : lr(e) : ce, [e, t]);
|
|
2191
2191
|
}
|
|
2192
2192
|
function Hn(e, t) {
|
|
2193
2193
|
t === void 0 && (t = []);
|
|
@@ -2206,7 +2206,7 @@ function Hn(e, t) {
|
|
|
2206
2206
|
function ii(e) {
|
|
2207
2207
|
L(
|
|
2208
2208
|
() => {
|
|
2209
|
-
if (!
|
|
2209
|
+
if (!kt)
|
|
2210
2210
|
return;
|
|
2211
2211
|
const t = e.map((n) => {
|
|
2212
2212
|
let {
|
|
@@ -2245,16 +2245,16 @@ function fr(e) {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
const Yn = [];
|
|
2247
2247
|
function ai(e, t) {
|
|
2248
|
-
t === void 0 && (t =
|
|
2249
|
-
const [n] = e, r = fr(n ? K(n) : null), [o, i] =
|
|
2248
|
+
t === void 0 && (t = Ge);
|
|
2249
|
+
const [n] = e, r = fr(n ? K(n) : null), [o, i] = ne(Yn);
|
|
2250
2250
|
function s() {
|
|
2251
|
-
i(() => e.length ? e.map((
|
|
2251
|
+
i(() => e.length ? e.map((d) => sr(d) ? r : new fn(t(d), d)) : Yn);
|
|
2252
2252
|
}
|
|
2253
|
-
const a =
|
|
2253
|
+
const a = Nt({
|
|
2254
2254
|
callback: s
|
|
2255
2255
|
});
|
|
2256
2256
|
return pe(() => {
|
|
2257
|
-
a?.disconnect(), s(), e.forEach((
|
|
2257
|
+
a?.disconnect(), s(), e.forEach((d) => a?.observe(d));
|
|
2258
2258
|
}, [e]), o;
|
|
2259
2259
|
}
|
|
2260
2260
|
function li(e) {
|
|
@@ -2269,32 +2269,32 @@ function ci(e) {
|
|
|
2269
2269
|
let {
|
|
2270
2270
|
measure: t
|
|
2271
2271
|
} = e;
|
|
2272
|
-
const [n, r] =
|
|
2272
|
+
const [n, r] = ne(null), o = G((u) => {
|
|
2273
2273
|
for (const {
|
|
2274
|
-
target:
|
|
2275
|
-
} of
|
|
2276
|
-
if (ut(
|
|
2277
|
-
r((
|
|
2278
|
-
const
|
|
2279
|
-
return
|
|
2280
|
-
...
|
|
2281
|
-
width:
|
|
2282
|
-
height:
|
|
2283
|
-
} :
|
|
2274
|
+
target: f
|
|
2275
|
+
} of u)
|
|
2276
|
+
if (ut(f)) {
|
|
2277
|
+
r((h) => {
|
|
2278
|
+
const g = t(f);
|
|
2279
|
+
return h ? {
|
|
2280
|
+
...h,
|
|
2281
|
+
width: g.width,
|
|
2282
|
+
height: g.height
|
|
2283
|
+
} : g;
|
|
2284
2284
|
});
|
|
2285
2285
|
break;
|
|
2286
2286
|
}
|
|
2287
|
-
}, [t]), i =
|
|
2287
|
+
}, [t]), i = Nt({
|
|
2288
2288
|
callback: o
|
|
2289
|
-
}), s = G((
|
|
2290
|
-
const
|
|
2291
|
-
i?.disconnect(),
|
|
2292
|
-
}, [t, i]), [a,
|
|
2289
|
+
}), s = G((u) => {
|
|
2290
|
+
const f = li(u);
|
|
2291
|
+
i?.disconnect(), f && i?.observe(f), r(f ? t(f) : null);
|
|
2292
|
+
}, [t, i]), [a, d] = Dt(s);
|
|
2293
2293
|
return A(() => ({
|
|
2294
2294
|
nodeRef: a,
|
|
2295
2295
|
rect: n,
|
|
2296
|
-
setRef:
|
|
2297
|
-
}), [n, a,
|
|
2296
|
+
setRef: d
|
|
2297
|
+
}), [n, a, d]);
|
|
2298
2298
|
}
|
|
2299
2299
|
const ui = [{
|
|
2300
2300
|
sensor: vn,
|
|
@@ -2310,14 +2310,14 @@ const ui = [{
|
|
|
2310
2310
|
},
|
|
2311
2311
|
droppable: {
|
|
2312
2312
|
measure: Pn,
|
|
2313
|
-
strategy:
|
|
2314
|
-
frequency:
|
|
2313
|
+
strategy: st.WhileDragging,
|
|
2314
|
+
frequency: on.Optimized
|
|
2315
2315
|
},
|
|
2316
2316
|
dragOverlay: {
|
|
2317
|
-
measure:
|
|
2317
|
+
measure: Ge
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
|
-
class
|
|
2320
|
+
class ot extends Map {
|
|
2321
2321
|
get(t) {
|
|
2322
2322
|
var n;
|
|
2323
2323
|
return t != null && (n = super.get(t)) != null ? n : void 0;
|
|
@@ -2347,7 +2347,7 @@ const fi = {
|
|
|
2347
2347
|
containerNodeRect: null,
|
|
2348
2348
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2349
2349
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
2350
|
-
droppableContainers: /* @__PURE__ */ new
|
|
2350
|
+
droppableContainers: /* @__PURE__ */ new ot(),
|
|
2351
2351
|
over: null,
|
|
2352
2352
|
dragOverlay: {
|
|
2353
2353
|
nodeRef: {
|
|
@@ -2374,7 +2374,7 @@ const fi = {
|
|
|
2374
2374
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2375
2375
|
over: null,
|
|
2376
2376
|
measureDroppableContainers: Ot
|
|
2377
|
-
},
|
|
2377
|
+
}, Lt = /* @__PURE__ */ at(hi), hr = /* @__PURE__ */ at(fi);
|
|
2378
2378
|
function vi() {
|
|
2379
2379
|
return {
|
|
2380
2380
|
draggable: {
|
|
@@ -2390,7 +2390,7 @@ function vi() {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
},
|
|
2392
2392
|
droppable: {
|
|
2393
|
-
containers: new
|
|
2393
|
+
containers: new ot()
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
@@ -2438,7 +2438,7 @@ function gi(e, t) {
|
|
|
2438
2438
|
element: n
|
|
2439
2439
|
} = t, {
|
|
2440
2440
|
id: r
|
|
2441
|
-
} = n, o = new
|
|
2441
|
+
} = n, o = new ot(e.droppable.containers);
|
|
2442
2442
|
return o.set(r, n), {
|
|
2443
2443
|
...e,
|
|
2444
2444
|
droppable: {
|
|
@@ -2455,7 +2455,7 @@ function gi(e, t) {
|
|
|
2455
2455
|
} = t, i = e.droppable.containers.get(n);
|
|
2456
2456
|
if (!i || r !== i.key)
|
|
2457
2457
|
return e;
|
|
2458
|
-
const s = new
|
|
2458
|
+
const s = new ot(e.droppable.containers);
|
|
2459
2459
|
return s.set(n, {
|
|
2460
2460
|
...i,
|
|
2461
2461
|
disabled: o
|
|
@@ -2474,7 +2474,7 @@ function gi(e, t) {
|
|
|
2474
2474
|
} = t, o = e.droppable.containers.get(n);
|
|
2475
2475
|
if (!o || r !== o.key)
|
|
2476
2476
|
return e;
|
|
2477
|
-
const i = new
|
|
2477
|
+
const i = new ot(e.droppable.containers);
|
|
2478
2478
|
return i.delete(n), {
|
|
2479
2479
|
...e,
|
|
2480
2480
|
droppable: {
|
|
@@ -2495,7 +2495,7 @@ function pi(e) {
|
|
|
2495
2495
|
active: n,
|
|
2496
2496
|
activatorEvent: r,
|
|
2497
2497
|
draggableNodes: o
|
|
2498
|
-
} =
|
|
2498
|
+
} = Ne(Lt), i = en(r), s = en(n?.id);
|
|
2499
2499
|
return L(() => {
|
|
2500
2500
|
if (!t && !r && i && s != null) {
|
|
2501
2501
|
if (!un(i) || document.activeElement === i.target)
|
|
@@ -2504,18 +2504,18 @@ function pi(e) {
|
|
|
2504
2504
|
if (!a)
|
|
2505
2505
|
return;
|
|
2506
2506
|
const {
|
|
2507
|
-
activatorNode:
|
|
2508
|
-
node:
|
|
2507
|
+
activatorNode: d,
|
|
2508
|
+
node: u
|
|
2509
2509
|
} = a;
|
|
2510
|
-
if (!
|
|
2510
|
+
if (!d.current && !u.current)
|
|
2511
2511
|
return;
|
|
2512
2512
|
requestAnimationFrame(() => {
|
|
2513
|
-
for (const
|
|
2514
|
-
if (!
|
|
2513
|
+
for (const f of [d.current, u.current]) {
|
|
2514
|
+
if (!f)
|
|
2515
2515
|
continue;
|
|
2516
|
-
const
|
|
2517
|
-
if (
|
|
2518
|
-
|
|
2516
|
+
const h = io(f);
|
|
2517
|
+
if (h) {
|
|
2518
|
+
h.focus();
|
|
2519
2519
|
break;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
@@ -2574,20 +2574,20 @@ function xi(e) {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
if (i.current || !r)
|
|
2576
2576
|
return;
|
|
2577
|
-
const
|
|
2578
|
-
if (!
|
|
2577
|
+
const u = t?.node.current;
|
|
2578
|
+
if (!u || u.isConnected === !1)
|
|
2579
2579
|
return;
|
|
2580
|
-
const
|
|
2581
|
-
if (s || (
|
|
2582
|
-
const
|
|
2583
|
-
|
|
2584
|
-
top:
|
|
2585
|
-
left:
|
|
2580
|
+
const f = n(u), h = nr(f, r);
|
|
2581
|
+
if (s || (h.x = 0), a || (h.y = 0), i.current = !0, Math.abs(h.x) > 0 || Math.abs(h.y) > 0) {
|
|
2582
|
+
const g = rr(u);
|
|
2583
|
+
g && g.scrollBy({
|
|
2584
|
+
top: h.y,
|
|
2585
|
+
left: h.x
|
|
2586
2586
|
});
|
|
2587
2587
|
}
|
|
2588
2588
|
}, [t, s, a, r, n]);
|
|
2589
2589
|
}
|
|
2590
|
-
const vr = /* @__PURE__ */
|
|
2590
|
+
const vr = /* @__PURE__ */ at({
|
|
2591
2591
|
...ce,
|
|
2592
2592
|
scaleX: 1,
|
|
2593
2593
|
scaleY: 1
|
|
@@ -2601,66 +2601,66 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2601
2601
|
let {
|
|
2602
2602
|
id: s,
|
|
2603
2603
|
accessibility: a,
|
|
2604
|
-
autoScroll:
|
|
2605
|
-
children:
|
|
2606
|
-
sensors:
|
|
2607
|
-
collisionDetection:
|
|
2608
|
-
measuring:
|
|
2609
|
-
modifiers:
|
|
2610
|
-
...
|
|
2604
|
+
autoScroll: d = !0,
|
|
2605
|
+
children: u,
|
|
2606
|
+
sensors: f = ui,
|
|
2607
|
+
collisionDetection: h = Ro,
|
|
2608
|
+
measuring: g,
|
|
2609
|
+
modifiers: c,
|
|
2610
|
+
...b
|
|
2611
2611
|
} = t;
|
|
2612
|
-
const
|
|
2612
|
+
const p = Lr(gi, void 0, vi), [m, x] = p, [R, C] = fo(), [D, O] = ne(Oe.Uninitialized), w = D === Oe.Initialized, {
|
|
2613
2613
|
draggable: {
|
|
2614
|
-
active:
|
|
2615
|
-
nodes:
|
|
2614
|
+
active: S,
|
|
2615
|
+
nodes: _,
|
|
2616
2616
|
translate: P
|
|
2617
2617
|
},
|
|
2618
2618
|
droppable: {
|
|
2619
2619
|
containers: $
|
|
2620
2620
|
}
|
|
2621
|
-
} =
|
|
2621
|
+
} = m, N = S != null ? _.get(S) : null, X = M({
|
|
2622
2622
|
initial: null,
|
|
2623
2623
|
translated: null
|
|
2624
2624
|
}), J = A(() => {
|
|
2625
2625
|
var U;
|
|
2626
|
-
return
|
|
2627
|
-
id:
|
|
2626
|
+
return S != null ? {
|
|
2627
|
+
id: S,
|
|
2628
2628
|
// It's possible for the active node to unmount while dragging
|
|
2629
2629
|
data: (U = N?.data) != null ? U : di,
|
|
2630
|
-
rect:
|
|
2630
|
+
rect: X
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [
|
|
2632
|
+
}, [S, N]), oe = M(null), [xe, Ie] = ne(null), [H, Ae] = ne(null), ie = it(b, Object.values(b)), Se = ft("DndDescribedBy", s), v = A(() => $.getEnabled(), [$]), y = mi(g), {
|
|
2633
2633
|
droppableRects: T,
|
|
2634
2634
|
measureDroppableContainers: k,
|
|
2635
2635
|
measuringScheduled: ue
|
|
2636
2636
|
} = Zo(v, {
|
|
2637
|
-
dragging:
|
|
2637
|
+
dragging: w,
|
|
2638
2638
|
dependencies: [P.x, P.y],
|
|
2639
2639
|
config: y.droppable
|
|
2640
|
-
}), Y = Jo(
|
|
2640
|
+
}), Y = Jo(_, S), z = A(() => H ? tn(H) : null, [H]), q = Ar(), Z = Qo(Y, y.draggable.measure);
|
|
2641
2641
|
xi({
|
|
2642
|
-
activeNode:
|
|
2643
|
-
config:
|
|
2644
|
-
initialRect:
|
|
2642
|
+
activeNode: S != null ? _.get(S) : null,
|
|
2643
|
+
config: q.layoutShiftCompensation,
|
|
2644
|
+
initialRect: Z,
|
|
2645
2645
|
measure: y.draggable.measure
|
|
2646
2646
|
});
|
|
2647
|
-
const I = Bn(Y, y.draggable.measure,
|
|
2647
|
+
const I = Bn(Y, y.draggable.measure, Z), Xe = Bn(Y ? Y.parentElement : null), de = M({
|
|
2648
2648
|
activatorEvent: null,
|
|
2649
2649
|
active: null,
|
|
2650
2650
|
activeNode: Y,
|
|
2651
2651
|
collisionRect: null,
|
|
2652
2652
|
collisions: null,
|
|
2653
2653
|
droppableRects: T,
|
|
2654
|
-
draggableNodes:
|
|
2654
|
+
draggableNodes: _,
|
|
2655
2655
|
draggingNode: null,
|
|
2656
2656
|
draggingNodeRect: null,
|
|
2657
2657
|
droppableContainers: $,
|
|
2658
2658
|
over: null,
|
|
2659
2659
|
scrollableAncestors: [],
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
|
-
}),
|
|
2661
|
+
}), Me = $.getNodeFor((n = de.current.over) == null ? void 0 : n.id), ye = ci({
|
|
2662
2662
|
measure: y.dragOverlay.measure
|
|
2663
|
-
}),
|
|
2663
|
+
}), Pe = (r = ye.nodeRef.current) != null ? r : Y, ze = w ? (o = ye.rect) != null ? o : I : null, pn = !!(ye.nodeRef.current && ye.rect), bn = ni(pn ? null : I), Pt = fr(Pe ? K(Pe) : null), Re = ri(w ? Me ?? Y : null), ht = ai(Re), vt = bi(c, {
|
|
2664
2664
|
transform: {
|
|
2665
2665
|
x: P.x - bn.x,
|
|
2666
2666
|
y: P.y - bn.y,
|
|
@@ -2670,63 +2670,63 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2670
2670
|
activatorEvent: H,
|
|
2671
2671
|
active: J,
|
|
2672
2672
|
activeNodeRect: I,
|
|
2673
|
-
containerNodeRect:
|
|
2674
|
-
draggingNodeRect:
|
|
2673
|
+
containerNodeRect: Xe,
|
|
2674
|
+
draggingNodeRect: ze,
|
|
2675
2675
|
over: de.current.over,
|
|
2676
|
-
overlayNodeRect:
|
|
2676
|
+
overlayNodeRect: ye.rect,
|
|
2677
2677
|
scrollableAncestors: Re,
|
|
2678
2678
|
scrollableAncestorRects: ht,
|
|
2679
|
-
windowRect:
|
|
2680
|
-
}), mn = z ?
|
|
2679
|
+
windowRect: Pt
|
|
2680
|
+
}), mn = z ? We(z, P) : null, xn = oi(Re), Er = Hn(xn), Dr = Hn(xn, [I]), $e = We(vt, Er), Ve = ze ? Do(ze, vt) : null, qe = J && Ve ? h({
|
|
2681
2681
|
active: J,
|
|
2682
|
-
collisionRect:
|
|
2682
|
+
collisionRect: Ve,
|
|
2683
2683
|
droppableRects: T,
|
|
2684
2684
|
droppableContainers: v,
|
|
2685
2685
|
pointerCoordinates: mn
|
|
2686
|
-
}) : null, yn = wo(
|
|
2687
|
-
(U,
|
|
2686
|
+
}) : null, yn = wo(qe, "id"), [Ce, wn] = ne(null), _r = pn ? vt : We(vt, Dr), Or = Co(_r, (i = Ce?.rect) != null ? i : null, I), zt = M(null), Sn = G(
|
|
2687
|
+
(U, Q) => {
|
|
2688
2688
|
let {
|
|
2689
|
-
sensor:
|
|
2689
|
+
sensor: ee,
|
|
2690
2690
|
options: Ee
|
|
2691
|
-
} =
|
|
2691
|
+
} = Q;
|
|
2692
2692
|
if (oe.current == null)
|
|
2693
2693
|
return;
|
|
2694
|
-
const se =
|
|
2694
|
+
const se = _.get(oe.current);
|
|
2695
2695
|
if (!se)
|
|
2696
2696
|
return;
|
|
2697
|
-
const
|
|
2697
|
+
const te = U.nativeEvent, fe = new ee({
|
|
2698
2698
|
active: oe.current,
|
|
2699
2699
|
activeNode: se,
|
|
2700
|
-
event:
|
|
2700
|
+
event: te,
|
|
2701
2701
|
options: Ee,
|
|
2702
2702
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2703
2703
|
// otherwise they are frozen in time with the stale arguments
|
|
2704
2704
|
context: de,
|
|
2705
2705
|
onAbort(W) {
|
|
2706
|
-
if (!
|
|
2706
|
+
if (!_.get(W))
|
|
2707
2707
|
return;
|
|
2708
2708
|
const {
|
|
2709
2709
|
onDragAbort: he
|
|
2710
|
-
} = ie.current,
|
|
2710
|
+
} = ie.current, we = {
|
|
2711
2711
|
id: W
|
|
2712
2712
|
};
|
|
2713
|
-
he?.(
|
|
2713
|
+
he?.(we), R({
|
|
2714
2714
|
type: "onDragAbort",
|
|
2715
|
-
event:
|
|
2715
|
+
event: we
|
|
2716
2716
|
});
|
|
2717
2717
|
},
|
|
2718
|
-
onPending(W, De, he,
|
|
2719
|
-
if (!
|
|
2718
|
+
onPending(W, De, he, we) {
|
|
2719
|
+
if (!_.get(W))
|
|
2720
2720
|
return;
|
|
2721
2721
|
const {
|
|
2722
|
-
onDragPending:
|
|
2722
|
+
onDragPending: Ke
|
|
2723
2723
|
} = ie.current, _e = {
|
|
2724
2724
|
id: W,
|
|
2725
2725
|
constraint: De,
|
|
2726
2726
|
initialCoordinates: he,
|
|
2727
|
-
offset:
|
|
2727
|
+
offset: we
|
|
2728
2728
|
};
|
|
2729
|
-
|
|
2729
|
+
Ke?.(_e), R({
|
|
2730
2730
|
type: "onDragPending",
|
|
2731
2731
|
event: _e
|
|
2732
2732
|
});
|
|
@@ -2735,28 +2735,28 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2735
2735
|
const De = oe.current;
|
|
2736
2736
|
if (De == null)
|
|
2737
2737
|
return;
|
|
2738
|
-
const he =
|
|
2738
|
+
const he = _.get(De);
|
|
2739
2739
|
if (!he)
|
|
2740
2740
|
return;
|
|
2741
2741
|
const {
|
|
2742
|
-
onDragStart:
|
|
2743
|
-
} = ie.current,
|
|
2744
|
-
activatorEvent:
|
|
2742
|
+
onDragStart: we
|
|
2743
|
+
} = ie.current, Je = {
|
|
2744
|
+
activatorEvent: te,
|
|
2745
2745
|
active: {
|
|
2746
2746
|
id: De,
|
|
2747
2747
|
data: he.data,
|
|
2748
|
-
rect:
|
|
2748
|
+
rect: X
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
2751
|
gt(() => {
|
|
2752
|
-
|
|
2752
|
+
we?.(Je), O(Oe.Initializing), x({
|
|
2753
2753
|
type: V.DragStart,
|
|
2754
2754
|
initialCoordinates: W,
|
|
2755
2755
|
active: De
|
|
2756
|
-
}),
|
|
2756
|
+
}), R({
|
|
2757
2757
|
type: "onDragStart",
|
|
2758
|
-
event:
|
|
2759
|
-
}),
|
|
2758
|
+
event: Je
|
|
2759
|
+
}), Ie(zt.current), Ae(te);
|
|
2760
2760
|
});
|
|
2761
2761
|
},
|
|
2762
2762
|
onMove(W) {
|
|
@@ -2765,40 +2765,40 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2765
2765
|
coordinates: W
|
|
2766
2766
|
});
|
|
2767
2767
|
},
|
|
2768
|
-
onEnd:
|
|
2769
|
-
onCancel:
|
|
2768
|
+
onEnd: Fe(V.DragEnd),
|
|
2769
|
+
onCancel: Fe(V.DragCancel)
|
|
2770
2770
|
});
|
|
2771
|
-
|
|
2772
|
-
function
|
|
2771
|
+
zt.current = fe;
|
|
2772
|
+
function Fe(W) {
|
|
2773
2773
|
return async function() {
|
|
2774
2774
|
const {
|
|
2775
2775
|
active: he,
|
|
2776
|
-
collisions:
|
|
2777
|
-
over:
|
|
2778
|
-
scrollAdjustedTranslate:
|
|
2776
|
+
collisions: we,
|
|
2777
|
+
over: Je,
|
|
2778
|
+
scrollAdjustedTranslate: Ke
|
|
2779
2779
|
} = de.current;
|
|
2780
2780
|
let _e = null;
|
|
2781
|
-
if (he &&
|
|
2781
|
+
if (he && Ke) {
|
|
2782
2782
|
const {
|
|
2783
|
-
cancelDrop:
|
|
2783
|
+
cancelDrop: Ze
|
|
2784
2784
|
} = ie.current;
|
|
2785
2785
|
_e = {
|
|
2786
|
-
activatorEvent:
|
|
2786
|
+
activatorEvent: te,
|
|
2787
2787
|
active: he,
|
|
2788
|
-
collisions:
|
|
2789
|
-
delta:
|
|
2790
|
-
over:
|
|
2791
|
-
}, W === V.DragEnd && typeof
|
|
2788
|
+
collisions: we,
|
|
2789
|
+
delta: Ke,
|
|
2790
|
+
over: Je
|
|
2791
|
+
}, W === V.DragEnd && typeof Ze == "function" && await Promise.resolve(Ze(_e)) && (W = V.DragCancel);
|
|
2792
2792
|
}
|
|
2793
2793
|
oe.current = null, gt(() => {
|
|
2794
2794
|
x({
|
|
2795
2795
|
type: W
|
|
2796
|
-
}), O(Oe.Uninitialized), wn(null),
|
|
2797
|
-
const
|
|
2796
|
+
}), O(Oe.Uninitialized), wn(null), Ie(null), Ae(null), zt.current = null;
|
|
2797
|
+
const Ze = W === V.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2798
2798
|
if (_e) {
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2801
|
-
type:
|
|
2799
|
+
const $t = ie.current[Ze];
|
|
2800
|
+
$t?.(_e), R({
|
|
2801
|
+
type: Ze,
|
|
2802
2802
|
event: _e
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
@@ -2807,86 +2807,86 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
},
|
|
2809
2809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2810
|
-
[
|
|
2811
|
-
), Tr = G((U,
|
|
2812
|
-
const se =
|
|
2810
|
+
[_]
|
|
2811
|
+
), Tr = G((U, Q) => (ee, Ee) => {
|
|
2812
|
+
const se = ee.nativeEvent, te = _.get(Ee);
|
|
2813
2813
|
if (
|
|
2814
2814
|
// Another sensor is already instantiating
|
|
2815
2815
|
oe.current !== null || // No active draggable
|
|
2816
|
-
!
|
|
2816
|
+
!te || // Event has already been captured
|
|
2817
2817
|
se.dndKit || se.defaultPrevented
|
|
2818
2818
|
)
|
|
2819
2819
|
return;
|
|
2820
2820
|
const fe = {
|
|
2821
|
-
active:
|
|
2821
|
+
active: te
|
|
2822
2822
|
};
|
|
2823
|
-
U(
|
|
2824
|
-
capturedBy:
|
|
2825
|
-
}, oe.current = Ee, Sn(
|
|
2826
|
-
}, [
|
|
2827
|
-
ii(
|
|
2828
|
-
I &&
|
|
2829
|
-
}, [I,
|
|
2823
|
+
U(ee, Q.options, fe) === !0 && (se.dndKit = {
|
|
2824
|
+
capturedBy: Q.sensor
|
|
2825
|
+
}, oe.current = Ee, Sn(ee, Q));
|
|
2826
|
+
}, [_, Sn]), Rn = Ko(f, Tr);
|
|
2827
|
+
ii(f), pe(() => {
|
|
2828
|
+
I && D === Oe.Initializing && O(Oe.Initialized);
|
|
2829
|
+
}, [I, D]), L(
|
|
2830
2830
|
() => {
|
|
2831
2831
|
const {
|
|
2832
2832
|
onDragMove: U
|
|
2833
2833
|
} = ie.current, {
|
|
2834
|
-
active:
|
|
2835
|
-
activatorEvent:
|
|
2834
|
+
active: Q,
|
|
2835
|
+
activatorEvent: ee,
|
|
2836
2836
|
collisions: Ee,
|
|
2837
2837
|
over: se
|
|
2838
2838
|
} = de.current;
|
|
2839
|
-
if (!
|
|
2839
|
+
if (!Q || !ee)
|
|
2840
2840
|
return;
|
|
2841
|
-
const
|
|
2842
|
-
active:
|
|
2843
|
-
activatorEvent:
|
|
2841
|
+
const te = {
|
|
2842
|
+
active: Q,
|
|
2843
|
+
activatorEvent: ee,
|
|
2844
2844
|
collisions: Ee,
|
|
2845
2845
|
delta: {
|
|
2846
|
-
x:
|
|
2847
|
-
y:
|
|
2846
|
+
x: $e.x,
|
|
2847
|
+
y: $e.y
|
|
2848
2848
|
},
|
|
2849
2849
|
over: se
|
|
2850
2850
|
};
|
|
2851
2851
|
gt(() => {
|
|
2852
|
-
U?.(
|
|
2852
|
+
U?.(te), R({
|
|
2853
2853
|
type: "onDragMove",
|
|
2854
|
-
event:
|
|
2854
|
+
event: te
|
|
2855
2855
|
});
|
|
2856
2856
|
});
|
|
2857
2857
|
},
|
|
2858
2858
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2859
|
-
[
|
|
2859
|
+
[$e.x, $e.y]
|
|
2860
2860
|
), L(
|
|
2861
2861
|
() => {
|
|
2862
2862
|
const {
|
|
2863
2863
|
active: U,
|
|
2864
|
-
activatorEvent:
|
|
2865
|
-
collisions:
|
|
2864
|
+
activatorEvent: Q,
|
|
2865
|
+
collisions: ee,
|
|
2866
2866
|
droppableContainers: Ee,
|
|
2867
2867
|
scrollAdjustedTranslate: se
|
|
2868
2868
|
} = de.current;
|
|
2869
|
-
if (!U || oe.current == null || !
|
|
2869
|
+
if (!U || oe.current == null || !Q || !se)
|
|
2870
2870
|
return;
|
|
2871
2871
|
const {
|
|
2872
|
-
onDragOver:
|
|
2873
|
-
} = ie.current, fe = Ee.get(yn),
|
|
2872
|
+
onDragOver: te
|
|
2873
|
+
} = ie.current, fe = Ee.get(yn), Fe = fe && fe.rect.current ? {
|
|
2874
2874
|
id: fe.id,
|
|
2875
2875
|
rect: fe.rect.current,
|
|
2876
2876
|
data: fe.data,
|
|
2877
2877
|
disabled: fe.disabled
|
|
2878
2878
|
} : null, W = {
|
|
2879
2879
|
active: U,
|
|
2880
|
-
activatorEvent:
|
|
2881
|
-
collisions:
|
|
2880
|
+
activatorEvent: Q,
|
|
2881
|
+
collisions: ee,
|
|
2882
2882
|
delta: {
|
|
2883
2883
|
x: se.x,
|
|
2884
2884
|
y: se.y
|
|
2885
2885
|
},
|
|
2886
|
-
over:
|
|
2886
|
+
over: Fe
|
|
2887
2887
|
};
|
|
2888
2888
|
gt(() => {
|
|
2889
|
-
wn(
|
|
2889
|
+
wn(Fe), te?.(W), R({
|
|
2890
2890
|
type: "onDragOver",
|
|
2891
2891
|
event: W
|
|
2892
2892
|
});
|
|
@@ -2899,24 +2899,24 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2899
2899
|
activatorEvent: H,
|
|
2900
2900
|
active: J,
|
|
2901
2901
|
activeNode: Y,
|
|
2902
|
-
collisionRect:
|
|
2903
|
-
collisions:
|
|
2902
|
+
collisionRect: Ve,
|
|
2903
|
+
collisions: qe,
|
|
2904
2904
|
droppableRects: T,
|
|
2905
|
-
draggableNodes:
|
|
2906
|
-
draggingNode:
|
|
2907
|
-
draggingNodeRect:
|
|
2905
|
+
draggableNodes: _,
|
|
2906
|
+
draggingNode: Pe,
|
|
2907
|
+
draggingNodeRect: ze,
|
|
2908
2908
|
droppableContainers: $,
|
|
2909
2909
|
over: Ce,
|
|
2910
2910
|
scrollableAncestors: Re,
|
|
2911
|
-
scrollAdjustedTranslate:
|
|
2912
|
-
},
|
|
2913
|
-
initial:
|
|
2914
|
-
translated:
|
|
2911
|
+
scrollAdjustedTranslate: $e
|
|
2912
|
+
}, X.current = {
|
|
2913
|
+
initial: ze,
|
|
2914
|
+
translated: Ve
|
|
2915
2915
|
};
|
|
2916
|
-
}, [J, Y,
|
|
2917
|
-
...
|
|
2916
|
+
}, [J, Y, qe, Ve, _, Pe, ze, T, $, Ce, Re, $e]), Go({
|
|
2917
|
+
...q,
|
|
2918
2918
|
delta: P,
|
|
2919
|
-
draggingRect:
|
|
2919
|
+
draggingRect: Ve,
|
|
2920
2920
|
pointerCoordinates: mn,
|
|
2921
2921
|
scrollableAncestors: Re,
|
|
2922
2922
|
scrollableAncestorRects: ht
|
|
@@ -2926,10 +2926,10 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2926
2926
|
activeNode: Y,
|
|
2927
2927
|
activeNodeRect: I,
|
|
2928
2928
|
activatorEvent: H,
|
|
2929
|
-
collisions:
|
|
2930
|
-
containerNodeRect:
|
|
2931
|
-
dragOverlay:
|
|
2932
|
-
draggableNodes:
|
|
2929
|
+
collisions: qe,
|
|
2930
|
+
containerNodeRect: Xe,
|
|
2931
|
+
dragOverlay: ye,
|
|
2932
|
+
draggableNodes: _,
|
|
2933
2933
|
droppableContainers: $,
|
|
2934
2934
|
droppableRects: T,
|
|
2935
2935
|
over: Ce,
|
|
@@ -2938,8 +2938,8 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2938
2938
|
scrollableAncestorRects: ht,
|
|
2939
2939
|
measuringConfiguration: y,
|
|
2940
2940
|
measuringScheduled: ue,
|
|
2941
|
-
windowRect:
|
|
2942
|
-
}), [J, Y, I, H,
|
|
2941
|
+
windowRect: Pt
|
|
2942
|
+
}), [J, Y, I, H, qe, Xe, ye, _, $, T, Ce, k, Re, ht, y, ue, Pt]), Ir = A(() => ({
|
|
2943
2943
|
activatorEvent: H,
|
|
2944
2944
|
activators: Rn,
|
|
2945
2945
|
active: J,
|
|
@@ -2948,34 +2948,34 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2948
2948
|
draggable: Se
|
|
2949
2949
|
},
|
|
2950
2950
|
dispatch: x,
|
|
2951
|
-
draggableNodes:
|
|
2951
|
+
draggableNodes: _,
|
|
2952
2952
|
over: Ce,
|
|
2953
2953
|
measureDroppableContainers: k
|
|
2954
|
-
}), [H, Rn, J, I, x, Se,
|
|
2954
|
+
}), [H, Rn, J, I, x, Se, _, Ce, k]);
|
|
2955
2955
|
return F.createElement(er.Provider, {
|
|
2956
2956
|
value: C
|
|
2957
|
-
}, F.createElement(
|
|
2957
|
+
}, F.createElement(Lt.Provider, {
|
|
2958
2958
|
value: Ir
|
|
2959
2959
|
}, F.createElement(hr.Provider, {
|
|
2960
2960
|
value: jr
|
|
2961
2961
|
}, F.createElement(vr.Provider, {
|
|
2962
2962
|
value: Or
|
|
2963
|
-
},
|
|
2963
|
+
}, u)), F.createElement(pi, {
|
|
2964
2964
|
disabled: a?.restoreFocus === !1
|
|
2965
2965
|
})), F.createElement(go, {
|
|
2966
2966
|
...a,
|
|
2967
2967
|
hiddenTextDescribedById: Se
|
|
2968
2968
|
}));
|
|
2969
2969
|
function Ar() {
|
|
2970
|
-
const U =
|
|
2971
|
-
return typeof
|
|
2972
|
-
...
|
|
2973
|
-
enabled:
|
|
2970
|
+
const U = xe?.autoScrollEnabled === !1, Q = typeof d == "object" ? d.enabled === !1 : d === !1, ee = w && !U && !Q;
|
|
2971
|
+
return typeof d == "object" ? {
|
|
2972
|
+
...d,
|
|
2973
|
+
enabled: ee
|
|
2974
2974
|
} : {
|
|
2975
|
-
enabled:
|
|
2975
|
+
enabled: ee
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
|
-
}), yi = /* @__PURE__ */
|
|
2978
|
+
}), yi = /* @__PURE__ */ at(null), Un = "button", wi = "Draggable";
|
|
2979
2979
|
function Si(e) {
|
|
2980
2980
|
let {
|
|
2981
2981
|
id: t,
|
|
@@ -2986,54 +2986,54 @@ function Si(e) {
|
|
|
2986
2986
|
const i = ft(wi), {
|
|
2987
2987
|
activators: s,
|
|
2988
2988
|
activatorEvent: a,
|
|
2989
|
-
active:
|
|
2990
|
-
activeNodeRect:
|
|
2991
|
-
ariaDescribedById:
|
|
2992
|
-
draggableNodes:
|
|
2993
|
-
over:
|
|
2994
|
-
} =
|
|
2995
|
-
role:
|
|
2996
|
-
roleDescription:
|
|
2997
|
-
tabIndex:
|
|
2998
|
-
} = o ?? {},
|
|
2989
|
+
active: d,
|
|
2990
|
+
activeNodeRect: u,
|
|
2991
|
+
ariaDescribedById: f,
|
|
2992
|
+
draggableNodes: h,
|
|
2993
|
+
over: g
|
|
2994
|
+
} = Ne(Lt), {
|
|
2995
|
+
role: c = Un,
|
|
2996
|
+
roleDescription: b = "draggable",
|
|
2997
|
+
tabIndex: p = 0
|
|
2998
|
+
} = o ?? {}, m = d?.id === t, x = Ne(m ? vr : yi), [R, C] = Dt(), [D, O] = Dt(), w = si(s, t), S = it(n);
|
|
2999
2999
|
pe(
|
|
3000
|
-
() => (
|
|
3000
|
+
() => (h.set(t, {
|
|
3001
3001
|
id: t,
|
|
3002
3002
|
key: i,
|
|
3003
|
-
node:
|
|
3004
|
-
activatorNode:
|
|
3005
|
-
data:
|
|
3003
|
+
node: R,
|
|
3004
|
+
activatorNode: D,
|
|
3005
|
+
data: S
|
|
3006
3006
|
}), () => {
|
|
3007
|
-
const P =
|
|
3008
|
-
P && P.key === i &&
|
|
3007
|
+
const P = h.get(t);
|
|
3008
|
+
P && P.key === i && h.delete(t);
|
|
3009
3009
|
}),
|
|
3010
3010
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3011
|
-
[
|
|
3011
|
+
[h, t]
|
|
3012
3012
|
);
|
|
3013
|
-
const
|
|
3014
|
-
role:
|
|
3015
|
-
tabIndex:
|
|
3013
|
+
const _ = A(() => ({
|
|
3014
|
+
role: c,
|
|
3015
|
+
tabIndex: p,
|
|
3016
3016
|
"aria-disabled": r,
|
|
3017
|
-
"aria-pressed":
|
|
3018
|
-
"aria-roledescription":
|
|
3019
|
-
"aria-describedby":
|
|
3020
|
-
}), [r,
|
|
3017
|
+
"aria-pressed": m && c === Un ? !0 : void 0,
|
|
3018
|
+
"aria-roledescription": b,
|
|
3019
|
+
"aria-describedby": f.draggable
|
|
3020
|
+
}), [r, c, p, m, b, f.draggable]);
|
|
3021
3021
|
return {
|
|
3022
|
-
active:
|
|
3022
|
+
active: d,
|
|
3023
3023
|
activatorEvent: a,
|
|
3024
|
-
activeNodeRect:
|
|
3025
|
-
attributes:
|
|
3026
|
-
isDragging:
|
|
3027
|
-
listeners: r ? void 0 :
|
|
3028
|
-
node:
|
|
3029
|
-
over:
|
|
3024
|
+
activeNodeRect: u,
|
|
3025
|
+
attributes: _,
|
|
3026
|
+
isDragging: m,
|
|
3027
|
+
listeners: r ? void 0 : w,
|
|
3028
|
+
node: R,
|
|
3029
|
+
over: g,
|
|
3030
3030
|
setNodeRef: C,
|
|
3031
3031
|
setActivatorNodeRef: O,
|
|
3032
3032
|
transform: x
|
|
3033
3033
|
};
|
|
3034
3034
|
}
|
|
3035
3035
|
function Ri() {
|
|
3036
|
-
return
|
|
3036
|
+
return Ne(hr);
|
|
3037
3037
|
}
|
|
3038
3038
|
const Ci = "Droppable", Ei = {
|
|
3039
3039
|
timeout: 25
|
|
@@ -3048,37 +3048,37 @@ function Di(e) {
|
|
|
3048
3048
|
const i = ft(Ci), {
|
|
3049
3049
|
active: s,
|
|
3050
3050
|
dispatch: a,
|
|
3051
|
-
over:
|
|
3052
|
-
measureDroppableContainers:
|
|
3053
|
-
} =
|
|
3051
|
+
over: d,
|
|
3052
|
+
measureDroppableContainers: u
|
|
3053
|
+
} = Ne(Lt), f = M({
|
|
3054
3054
|
disabled: n
|
|
3055
|
-
}),
|
|
3056
|
-
disabled:
|
|
3057
|
-
updateMeasurementsFor:
|
|
3058
|
-
timeout:
|
|
3055
|
+
}), h = M(!1), g = M(null), c = M(null), {
|
|
3056
|
+
disabled: b,
|
|
3057
|
+
updateMeasurementsFor: p,
|
|
3058
|
+
timeout: m
|
|
3059
3059
|
} = {
|
|
3060
3060
|
...Ei,
|
|
3061
3061
|
...o
|
|
3062
|
-
}, x =
|
|
3062
|
+
}, x = it(p ?? r), R = G(
|
|
3063
3063
|
() => {
|
|
3064
|
-
if (!
|
|
3065
|
-
|
|
3064
|
+
if (!h.current) {
|
|
3065
|
+
h.current = !0;
|
|
3066
3066
|
return;
|
|
3067
3067
|
}
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
},
|
|
3068
|
+
c.current != null && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
3069
|
+
u(Array.isArray(x.current) ? x.current : [x.current]), c.current = null;
|
|
3070
|
+
}, m);
|
|
3071
3071
|
},
|
|
3072
3072
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3073
|
-
[
|
|
3074
|
-
), C =
|
|
3075
|
-
callback:
|
|
3076
|
-
disabled:
|
|
3077
|
-
}),
|
|
3078
|
-
C && (P && (C.unobserve(P),
|
|
3079
|
-
}, [C]), [O,
|
|
3073
|
+
[m]
|
|
3074
|
+
), C = Nt({
|
|
3075
|
+
callback: R,
|
|
3076
|
+
disabled: b || !s
|
|
3077
|
+
}), D = G((_, P) => {
|
|
3078
|
+
C && (P && (C.unobserve(P), h.current = !1), _ && C.observe(_));
|
|
3079
|
+
}, [C]), [O, w] = Dt(D), S = it(t);
|
|
3080
3080
|
return L(() => {
|
|
3081
|
-
!C || !O.current || (C.disconnect(),
|
|
3081
|
+
!C || !O.current || (C.disconnect(), h.current = !1, C.observe(O.current));
|
|
3082
3082
|
}, [O, C]), L(
|
|
3083
3083
|
() => (a({
|
|
3084
3084
|
type: V.RegisterDroppable,
|
|
@@ -3087,8 +3087,8 @@ function Di(e) {
|
|
|
3087
3087
|
key: i,
|
|
3088
3088
|
disabled: n,
|
|
3089
3089
|
node: O,
|
|
3090
|
-
rect:
|
|
3091
|
-
data:
|
|
3090
|
+
rect: g,
|
|
3091
|
+
data: S
|
|
3092
3092
|
}
|
|
3093
3093
|
}), () => a({
|
|
3094
3094
|
type: V.UnregisterDroppable,
|
|
@@ -3098,22 +3098,22 @@ function Di(e) {
|
|
|
3098
3098
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3099
3099
|
[r]
|
|
3100
3100
|
), L(() => {
|
|
3101
|
-
n !==
|
|
3101
|
+
n !== f.current.disabled && (a({
|
|
3102
3102
|
type: V.SetDroppableDisabled,
|
|
3103
3103
|
id: r,
|
|
3104
3104
|
key: i,
|
|
3105
3105
|
disabled: n
|
|
3106
|
-
}),
|
|
3106
|
+
}), f.current.disabled = n);
|
|
3107
3107
|
}, [r, i, n, a]), {
|
|
3108
3108
|
active: s,
|
|
3109
|
-
rect:
|
|
3110
|
-
isOver:
|
|
3109
|
+
rect: g,
|
|
3110
|
+
isOver: d?.id === r,
|
|
3111
3111
|
node: O,
|
|
3112
|
-
over:
|
|
3113
|
-
setNodeRef:
|
|
3112
|
+
over: d,
|
|
3113
|
+
setNodeRef: w
|
|
3114
3114
|
};
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function Mt(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
|
}
|
|
@@ -3157,21 +3157,21 @@ const wt = {
|
|
|
3157
3157
|
const a = (t = n[o]) != null ? t : r;
|
|
3158
3158
|
if (!a)
|
|
3159
3159
|
return null;
|
|
3160
|
-
const
|
|
3160
|
+
const d = Ii(n, s, o);
|
|
3161
3161
|
if (s === o) {
|
|
3162
|
-
const
|
|
3163
|
-
return
|
|
3164
|
-
x: o < i ?
|
|
3162
|
+
const u = n[i];
|
|
3163
|
+
return u ? {
|
|
3164
|
+
x: o < i ? u.left + u.width - (a.left + a.width) : u.left - a.left,
|
|
3165
3165
|
y: 0,
|
|
3166
3166
|
...wt
|
|
3167
3167
|
} : null;
|
|
3168
3168
|
}
|
|
3169
3169
|
return s > o && s <= i ? {
|
|
3170
|
-
x: -a.width -
|
|
3170
|
+
x: -a.width - d,
|
|
3171
3171
|
y: 0,
|
|
3172
3172
|
...wt
|
|
3173
3173
|
} : s < o && s >= i ? {
|
|
3174
|
-
x: a.width +
|
|
3174
|
+
x: a.width + d,
|
|
3175
3175
|
y: 0,
|
|
3176
3176
|
...wt
|
|
3177
3177
|
} : {
|
|
@@ -3191,7 +3191,7 @@ const pr = (e) => {
|
|
|
3191
3191
|
overIndex: r,
|
|
3192
3192
|
index: o
|
|
3193
3193
|
} = e;
|
|
3194
|
-
const i =
|
|
3194
|
+
const i = Mt(t, r, n), s = t[o], a = i[o];
|
|
3195
3195
|
return !a || !s ? null : {
|
|
3196
3196
|
x: a.left - s.left,
|
|
3197
3197
|
y: a.top - s.top,
|
|
@@ -3214,21 +3214,21 @@ const pr = (e) => {
|
|
|
3214
3214
|
if (!a)
|
|
3215
3215
|
return null;
|
|
3216
3216
|
if (o === n) {
|
|
3217
|
-
const
|
|
3218
|
-
return
|
|
3217
|
+
const u = i[s];
|
|
3218
|
+
return u ? {
|
|
3219
3219
|
x: 0,
|
|
3220
|
-
y: n < s ?
|
|
3220
|
+
y: n < s ? u.top + u.height - (a.top + a.height) : u.top - a.top,
|
|
3221
3221
|
...St
|
|
3222
3222
|
} : null;
|
|
3223
3223
|
}
|
|
3224
|
-
const
|
|
3224
|
+
const d = ki(i, o, n);
|
|
3225
3225
|
return o > n && o <= s ? {
|
|
3226
3226
|
x: 0,
|
|
3227
|
-
y: -a.height -
|
|
3227
|
+
y: -a.height - d,
|
|
3228
3228
|
...St
|
|
3229
3229
|
} : o < n && o >= s ? {
|
|
3230
3230
|
x: 0,
|
|
3231
|
-
y: a.height +
|
|
3231
|
+
y: a.height + d,
|
|
3232
3232
|
...St
|
|
3233
3233
|
} : {
|
|
3234
3234
|
x: 0,
|
|
@@ -3265,29 +3265,29 @@ function xr(e) {
|
|
|
3265
3265
|
const {
|
|
3266
3266
|
active: s,
|
|
3267
3267
|
dragOverlay: a,
|
|
3268
|
-
droppableRects:
|
|
3269
|
-
over:
|
|
3270
|
-
measureDroppableContainers:
|
|
3271
|
-
} = Ri(),
|
|
3268
|
+
droppableRects: d,
|
|
3269
|
+
over: u,
|
|
3270
|
+
measureDroppableContainers: f
|
|
3271
|
+
} = Ri(), h = ft(br, n), g = a.rect !== null, c = A(() => r.map((w) => typeof w == "object" && "id" in w ? w.id : w), [r]), b = s != null, p = s ? c.indexOf(s.id) : -1, m = u ? c.indexOf(u.id) : -1, x = M(c), R = !Oi(c, x.current), C = m !== -1 && p === -1 || R, D = Ti(i);
|
|
3272
3272
|
pe(() => {
|
|
3273
|
-
|
|
3274
|
-
}, [
|
|
3275
|
-
x.current =
|
|
3276
|
-
}, [
|
|
3273
|
+
R && b && f(c);
|
|
3274
|
+
}, [R, c, b, f]), L(() => {
|
|
3275
|
+
x.current = c;
|
|
3276
|
+
}, [c]);
|
|
3277
3277
|
const O = A(
|
|
3278
3278
|
() => ({
|
|
3279
|
-
activeIndex:
|
|
3280
|
-
containerId:
|
|
3281
|
-
disabled:
|
|
3279
|
+
activeIndex: p,
|
|
3280
|
+
containerId: h,
|
|
3281
|
+
disabled: D,
|
|
3282
3282
|
disableTransforms: C,
|
|
3283
|
-
items:
|
|
3284
|
-
overIndex:
|
|
3285
|
-
useDragOverlay:
|
|
3286
|
-
sortedRects: _i(
|
|
3283
|
+
items: c,
|
|
3284
|
+
overIndex: m,
|
|
3285
|
+
useDragOverlay: g,
|
|
3286
|
+
sortedRects: _i(c, d),
|
|
3287
3287
|
strategy: o
|
|
3288
3288
|
}),
|
|
3289
3289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3290
|
-
[
|
|
3290
|
+
[p, h, D.draggable, D.droppable, C, c, m, d, g, o]
|
|
3291
3291
|
);
|
|
3292
3292
|
return F.createElement(mr.Provider, {
|
|
3293
3293
|
value: O
|
|
@@ -3300,7 +3300,7 @@ const Ni = (e) => {
|
|
|
3300
3300
|
activeIndex: r,
|
|
3301
3301
|
overIndex: o
|
|
3302
3302
|
} = e;
|
|
3303
|
-
return
|
|
3303
|
+
return Mt(n, r, o).indexOf(t);
|
|
3304
3304
|
}, Li = (e) => {
|
|
3305
3305
|
let {
|
|
3306
3306
|
containerId: t,
|
|
@@ -3310,14 +3310,14 @@ const Ni = (e) => {
|
|
|
3310
3310
|
items: i,
|
|
3311
3311
|
newIndex: s,
|
|
3312
3312
|
previousItems: a,
|
|
3313
|
-
previousContainerId:
|
|
3314
|
-
transition:
|
|
3313
|
+
previousContainerId: d,
|
|
3314
|
+
transition: u
|
|
3315
3315
|
} = e;
|
|
3316
|
-
return !
|
|
3316
|
+
return !u || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === d;
|
|
3317
3317
|
}, Mi = {
|
|
3318
3318
|
duration: 200,
|
|
3319
3319
|
easing: "ease"
|
|
3320
|
-
}, yr = "transform", Pi = /* @__PURE__ */
|
|
3320
|
+
}, yr = "transform", Pi = /* @__PURE__ */ He.Transition.toString({
|
|
3321
3321
|
property: yr,
|
|
3322
3322
|
duration: 0,
|
|
3323
3323
|
easing: "linear"
|
|
@@ -3331,20 +3331,20 @@ function $i(e) {
|
|
|
3331
3331
|
node: r,
|
|
3332
3332
|
rect: o
|
|
3333
3333
|
} = e;
|
|
3334
|
-
const [i, s] =
|
|
3334
|
+
const [i, s] = ne(null), a = M(n);
|
|
3335
3335
|
return pe(() => {
|
|
3336
3336
|
if (!t && n !== a.current && r.current) {
|
|
3337
|
-
const
|
|
3338
|
-
if (
|
|
3339
|
-
const
|
|
3337
|
+
const d = o.current;
|
|
3338
|
+
if (d) {
|
|
3339
|
+
const u = Ge(r.current, {
|
|
3340
3340
|
ignoreTransform: !0
|
|
3341
|
-
}),
|
|
3342
|
-
x:
|
|
3343
|
-
y:
|
|
3344
|
-
scaleX:
|
|
3345
|
-
scaleY:
|
|
3341
|
+
}), f = {
|
|
3342
|
+
x: d.left - u.left,
|
|
3343
|
+
y: d.top - u.top,
|
|
3344
|
+
scaleX: d.width / u.width,
|
|
3345
|
+
scaleY: d.height / u.height
|
|
3346
3346
|
};
|
|
3347
|
-
(
|
|
3347
|
+
(f.x || f.y) && s(f);
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
n !== a.current && (a.current = n);
|
|
@@ -3361,29 +3361,29 @@ function wr(e) {
|
|
|
3361
3361
|
getNewIndex: i = Ni,
|
|
3362
3362
|
id: s,
|
|
3363
3363
|
strategy: a,
|
|
3364
|
-
resizeObserverConfig:
|
|
3365
|
-
transition:
|
|
3364
|
+
resizeObserverConfig: d,
|
|
3365
|
+
transition: u = Mi
|
|
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: g,
|
|
3371
|
+
disabled: c,
|
|
3372
|
+
disableTransforms: b,
|
|
3373
|
+
sortedRects: p,
|
|
3374
|
+
overIndex: m,
|
|
3375
3375
|
useDragOverlay: x,
|
|
3376
|
-
strategy:
|
|
3377
|
-
} =
|
|
3376
|
+
strategy: R
|
|
3377
|
+
} = Ne(mr), C = Vi(r, c), D = f.indexOf(s), O = A(() => ({
|
|
3378
3378
|
sortable: {
|
|
3379
|
-
containerId:
|
|
3380
|
-
index:
|
|
3381
|
-
items:
|
|
3379
|
+
containerId: h,
|
|
3380
|
+
index: D,
|
|
3381
|
+
items: f
|
|
3382
3382
|
},
|
|
3383
3383
|
...o
|
|
3384
|
-
}), [
|
|
3385
|
-
rect:
|
|
3386
|
-
node:
|
|
3384
|
+
}), [h, o, D, f]), w = A(() => f.slice(f.indexOf(s)), [f, s]), {
|
|
3385
|
+
rect: S,
|
|
3386
|
+
node: _,
|
|
3387
3387
|
isOver: P,
|
|
3388
3388
|
setNodeRef: $
|
|
3389
3389
|
} = Di({
|
|
@@ -3391,18 +3391,18 @@ function wr(e) {
|
|
|
3391
3391
|
data: O,
|
|
3392
3392
|
disabled: C.droppable,
|
|
3393
3393
|
resizeObserverConfig: {
|
|
3394
|
-
updateMeasurementsFor:
|
|
3395
|
-
...
|
|
3394
|
+
updateMeasurementsFor: w,
|
|
3395
|
+
...d
|
|
3396
3396
|
}
|
|
3397
3397
|
}), {
|
|
3398
3398
|
active: N,
|
|
3399
|
-
activatorEvent:
|
|
3399
|
+
activatorEvent: X,
|
|
3400
3400
|
activeNodeRect: J,
|
|
3401
3401
|
attributes: oe,
|
|
3402
|
-
setNodeRef:
|
|
3403
|
-
listeners:
|
|
3402
|
+
setNodeRef: xe,
|
|
3403
|
+
listeners: Ie,
|
|
3404
3404
|
isDragging: H,
|
|
3405
|
-
over:
|
|
3405
|
+
over: Ae,
|
|
3406
3406
|
setActivatorNodeRef: ie,
|
|
3407
3407
|
transform: Se
|
|
3408
3408
|
} = Si({
|
|
@@ -3413,87 +3413,87 @@ function wr(e) {
|
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: C.draggable
|
|
3416
|
-
}), v = to($,
|
|
3417
|
-
rects:
|
|
3416
|
+
}), v = to($, xe), y = !!N, T = y && !b && yt(g) && yt(m), k = !x && H, ue = k && T ? Se : null, z = T ? ue ?? (a ?? R)({
|
|
3417
|
+
rects: p,
|
|
3418
3418
|
activeNodeRect: J,
|
|
3419
|
-
activeIndex:
|
|
3420
|
-
overIndex:
|
|
3421
|
-
index:
|
|
3422
|
-
}) : null,
|
|
3419
|
+
activeIndex: g,
|
|
3420
|
+
overIndex: m,
|
|
3421
|
+
index: D
|
|
3422
|
+
}) : null, q = yt(g) && yt(m) ? i({
|
|
3423
3423
|
id: s,
|
|
3424
|
-
items:
|
|
3425
|
-
activeIndex:
|
|
3426
|
-
overIndex:
|
|
3427
|
-
}) :
|
|
3428
|
-
activeId:
|
|
3429
|
-
items:
|
|
3430
|
-
newIndex:
|
|
3431
|
-
containerId:
|
|
3432
|
-
}),
|
|
3424
|
+
items: f,
|
|
3425
|
+
activeIndex: g,
|
|
3426
|
+
overIndex: m
|
|
3427
|
+
}) : D, Z = N?.id, I = M({
|
|
3428
|
+
activeId: Z,
|
|
3429
|
+
items: f,
|
|
3430
|
+
newIndex: q,
|
|
3431
|
+
containerId: h
|
|
3432
|
+
}), Xe = f !== I.current.items, de = t({
|
|
3433
3433
|
active: N,
|
|
3434
|
-
containerId:
|
|
3434
|
+
containerId: h,
|
|
3435
3435
|
isDragging: H,
|
|
3436
3436
|
isSorting: y,
|
|
3437
3437
|
id: s,
|
|
3438
|
-
index:
|
|
3439
|
-
items:
|
|
3438
|
+
index: D,
|
|
3439
|
+
items: f,
|
|
3440
3440
|
newIndex: I.current.newIndex,
|
|
3441
3441
|
previousItems: I.current.items,
|
|
3442
3442
|
previousContainerId: I.current.containerId,
|
|
3443
|
-
transition:
|
|
3443
|
+
transition: u,
|
|
3444
3444
|
wasDragging: I.current.activeId != null
|
|
3445
|
-
}),
|
|
3445
|
+
}), Me = $i({
|
|
3446
3446
|
disabled: !de,
|
|
3447
|
-
index:
|
|
3448
|
-
node:
|
|
3449
|
-
rect:
|
|
3447
|
+
index: D,
|
|
3448
|
+
node: _,
|
|
3449
|
+
rect: S
|
|
3450
3450
|
});
|
|
3451
3451
|
return L(() => {
|
|
3452
|
-
y && I.current.newIndex !==
|
|
3453
|
-
}, [y,
|
|
3454
|
-
if (
|
|
3452
|
+
y && 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
|
+
}, [y, q, h, f]), L(() => {
|
|
3454
|
+
if (Z === I.current.activeId)
|
|
3455
3455
|
return;
|
|
3456
|
-
if (
|
|
3457
|
-
I.current.activeId =
|
|
3456
|
+
if (Z != null && I.current.activeId == null) {
|
|
3457
|
+
I.current.activeId = Z;
|
|
3458
3458
|
return;
|
|
3459
3459
|
}
|
|
3460
|
-
const
|
|
3461
|
-
I.current.activeId =
|
|
3460
|
+
const Pe = setTimeout(() => {
|
|
3461
|
+
I.current.activeId = Z;
|
|
3462
3462
|
}, 50);
|
|
3463
|
-
return () => clearTimeout(
|
|
3464
|
-
}, [
|
|
3463
|
+
return () => clearTimeout(Pe);
|
|
3464
|
+
}, [Z]), {
|
|
3465
3465
|
active: N,
|
|
3466
|
-
activeIndex:
|
|
3466
|
+
activeIndex: g,
|
|
3467
3467
|
attributes: oe,
|
|
3468
3468
|
data: O,
|
|
3469
|
-
rect:
|
|
3470
|
-
index:
|
|
3471
|
-
newIndex:
|
|
3472
|
-
items:
|
|
3469
|
+
rect: S,
|
|
3470
|
+
index: D,
|
|
3471
|
+
newIndex: q,
|
|
3472
|
+
items: f,
|
|
3473
3473
|
isOver: P,
|
|
3474
3474
|
isSorting: y,
|
|
3475
3475
|
isDragging: H,
|
|
3476
|
-
listeners:
|
|
3477
|
-
node:
|
|
3478
|
-
overIndex:
|
|
3479
|
-
over:
|
|
3476
|
+
listeners: Ie,
|
|
3477
|
+
node: _,
|
|
3478
|
+
overIndex: m,
|
|
3479
|
+
over: Ae,
|
|
3480
3480
|
setNodeRef: v,
|
|
3481
3481
|
setActivatorNodeRef: ie,
|
|
3482
3482
|
setDroppableNodeRef: $,
|
|
3483
|
-
setDraggableNodeRef:
|
|
3484
|
-
transform:
|
|
3485
|
-
transition:
|
|
3483
|
+
setDraggableNodeRef: xe,
|
|
3484
|
+
transform: Me ?? z,
|
|
3485
|
+
transition: ye()
|
|
3486
3486
|
};
|
|
3487
|
-
function
|
|
3487
|
+
function ye() {
|
|
3488
3488
|
if (
|
|
3489
3489
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3490
|
-
|
|
3491
|
-
|
|
3490
|
+
Me || // Or to prevent items jumping to back to their "new" position when items change
|
|
3491
|
+
Xe && I.current.newIndex === D
|
|
3492
3492
|
)
|
|
3493
3493
|
return Pi;
|
|
3494
|
-
if (!(k && !un(
|
|
3495
|
-
return
|
|
3496
|
-
...
|
|
3494
|
+
if (!(k && !un(X) || !u) && (y || de))
|
|
3495
|
+
return He.Transition.toString({
|
|
3496
|
+
...u,
|
|
3497
3497
|
property: yr
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
@@ -3532,7 +3532,7 @@ var Hi = {
|
|
|
3532
3532
|
strokeLinecap: "round",
|
|
3533
3533
|
strokeLinejoin: "round"
|
|
3534
3534
|
};
|
|
3535
|
-
const Yi =
|
|
3535
|
+
const Yi = sn(
|
|
3536
3536
|
({
|
|
3537
3537
|
color: e = "currentColor",
|
|
3538
3538
|
size: t = 24,
|
|
@@ -3542,10 +3542,10 @@ const Yi = on(
|
|
|
3542
3542
|
children: i,
|
|
3543
3543
|
iconNode: s,
|
|
3544
3544
|
...a
|
|
3545
|
-
},
|
|
3545
|
+
}, d) => Zt(
|
|
3546
3546
|
"svg",
|
|
3547
3547
|
{
|
|
3548
|
-
ref:
|
|
3548
|
+
ref: d,
|
|
3549
3549
|
...Hi,
|
|
3550
3550
|
width: t,
|
|
3551
3551
|
height: t,
|
|
@@ -3556,14 +3556,14 @@ const Yi = on(
|
|
|
3556
3556
|
...a
|
|
3557
3557
|
},
|
|
3558
3558
|
[
|
|
3559
|
-
...s.map(([
|
|
3559
|
+
...s.map(([u, f]) => Zt(u, f)),
|
|
3560
3560
|
...Array.isArray(i) ? i : [i]
|
|
3561
3561
|
]
|
|
3562
3562
|
)
|
|
3563
3563
|
);
|
|
3564
|
-
const
|
|
3565
|
-
const n =
|
|
3566
|
-
({ className: r, ...o }, i) =>
|
|
3564
|
+
const re = (e, t) => {
|
|
3565
|
+
const n = sn(
|
|
3566
|
+
({ className: r, ...o }, i) => Zt(Yi, {
|
|
3567
3567
|
ref: i,
|
|
3568
3568
|
iconNode: t,
|
|
3569
3569
|
className: Sr(
|
|
@@ -3579,26 +3579,26 @@ const Z = (e, t) => {
|
|
|
3579
3579
|
const Ui = [
|
|
3580
3580
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3581
3581
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3582
|
-
], Gi =
|
|
3583
|
-
const
|
|
3582
|
+
], Gi = re("arrow-down", Ui);
|
|
3583
|
+
const Xi = [
|
|
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
|
-
],
|
|
3588
|
+
], qi = re("arrow-up-down", Xi);
|
|
3589
3589
|
const Ji = [
|
|
3590
3590
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3591
3591
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3592
|
-
], Ki =
|
|
3592
|
+
], Ki = re("arrow-up", Ji);
|
|
3593
3593
|
const Zi = [
|
|
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
|
-
], Qi =
|
|
3596
|
-
const es = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ts =
|
|
3597
|
-
const ns = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], rs =
|
|
3595
|
+
], Qi = re("bookmark", Zi);
|
|
3596
|
+
const es = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ts = re("chevron-left", es);
|
|
3597
|
+
const ns = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], rs = re("chevron-right", ns);
|
|
3598
3598
|
const os = [
|
|
3599
3599
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3600
3600
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3601
|
-
], is =
|
|
3601
|
+
], is = re("columns-2", os);
|
|
3602
3602
|
const ss = [
|
|
3603
3603
|
[
|
|
3604
3604
|
"path",
|
|
@@ -3609,8 +3609,13 @@ const ss = [
|
|
|
3609
3609
|
],
|
|
3610
3610
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3611
3611
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3612
|
-
], as =
|
|
3612
|
+
], as = re("delete", ss);
|
|
3613
3613
|
const ls = [
|
|
3614
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3615
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3616
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3617
|
+
], cs = re("ellipsis", ls);
|
|
3618
|
+
const us = [
|
|
3614
3619
|
[
|
|
3615
3620
|
"path",
|
|
3616
3621
|
{
|
|
@@ -3618,16 +3623,16 @@ const ls = [
|
|
|
3618
3623
|
key: "sc7q7i"
|
|
3619
3624
|
}
|
|
3620
3625
|
]
|
|
3621
|
-
],
|
|
3622
|
-
const
|
|
3626
|
+
], ds = re("funnel", us);
|
|
3627
|
+
const fs = [
|
|
3623
3628
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3624
3629
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3625
3630
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
3626
3631
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3627
3632
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3628
3633
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3629
|
-
],
|
|
3630
|
-
const
|
|
3634
|
+
], hs = re("grip-vertical", fs);
|
|
3635
|
+
const vs = [
|
|
3631
3636
|
[
|
|
3632
3637
|
"path",
|
|
3633
3638
|
{
|
|
@@ -3635,8 +3640,8 @@ const fs = [
|
|
|
3635
3640
|
key: "1a8usu"
|
|
3636
3641
|
}
|
|
3637
3642
|
]
|
|
3638
|
-
],
|
|
3639
|
-
const
|
|
3643
|
+
], gs = re("pen", vs);
|
|
3644
|
+
const ps = [
|
|
3640
3645
|
[
|
|
3641
3646
|
"path",
|
|
3642
3647
|
{
|
|
@@ -3645,82 +3650,70 @@ const vs = [
|
|
|
3645
3650
|
}
|
|
3646
3651
|
],
|
|
3647
3652
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3648
|
-
],
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
[
|
|
3652
|
-
"path",
|
|
3653
|
-
{
|
|
3654
|
-
d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",
|
|
3655
|
-
key: "ohrbg2"
|
|
3656
|
-
}
|
|
3657
|
-
]
|
|
3658
|
-
], bs = Z("square-pen", ps);
|
|
3659
|
-
const ms = [
|
|
3660
|
-
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3661
|
-
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3662
|
-
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3663
|
-
], xs = Z("trash", ms);
|
|
3664
|
-
function _(e) {
|
|
3665
|
-
return on((t, n) => {
|
|
3653
|
+
], bs = re("settings", ps);
|
|
3654
|
+
function E(e) {
|
|
3655
|
+
return sn((t, n) => {
|
|
3666
3656
|
const { children: r, ...o } = t;
|
|
3667
3657
|
return (
|
|
3668
3658
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3669
|
-
/* @__PURE__ */
|
|
3659
|
+
/* @__PURE__ */ l.jsx(e, { ref: n, ...o, children: r })
|
|
3670
3660
|
);
|
|
3671
3661
|
});
|
|
3672
3662
|
}
|
|
3673
|
-
const
|
|
3663
|
+
const je = new Kn({
|
|
3674
3664
|
sortColumn: null,
|
|
3675
3665
|
sortDirection: "asc",
|
|
3676
3666
|
visibility: {},
|
|
3677
|
-
// initially empty
|
|
3678
3667
|
columnOrder: [],
|
|
3679
|
-
// initially empty
|
|
3680
3668
|
data: [],
|
|
3681
|
-
|
|
3669
|
+
sortableColumns: []
|
|
3670
|
+
// ← FIXED
|
|
3682
3671
|
});
|
|
3683
|
-
function
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
id:
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3672
|
+
function ms(e, t) {
|
|
3673
|
+
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((i) => ({ id: i, label: i }))).filter((i) => n.hasOwnProperty(i.id));
|
|
3674
|
+
je.setState((i) => ({
|
|
3675
|
+
...i,
|
|
3676
|
+
data: e,
|
|
3677
|
+
columnOrder: o,
|
|
3678
|
+
visibility: o.reduce(
|
|
3679
|
+
(s, a) => ({
|
|
3680
|
+
...s,
|
|
3681
|
+
[a.id]: !0
|
|
3682
|
+
}),
|
|
3683
|
+
{}
|
|
3684
|
+
),
|
|
3685
|
+
sortableColumns: o.map((s) => ({
|
|
3686
|
+
id: s.id,
|
|
3687
|
+
label: s.label,
|
|
3688
|
+
sortable: !0
|
|
3689
|
+
}))
|
|
3690
|
+
}));
|
|
3698
3691
|
}
|
|
3699
|
-
const
|
|
3700
|
-
function
|
|
3701
|
-
const {
|
|
3702
|
-
return /* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */
|
|
3704
|
-
/* @__PURE__ */
|
|
3692
|
+
const xs = E(be.Trigger), ys = E(be.Positioner), ws = E(be.Content), Ss = E(be.Item), Rs = E(Le.Label), Cs = E(Le.HiddenInput), Es = E(Le.Control);
|
|
3693
|
+
function Ds({ visibility: e, onToggle: t }) {
|
|
3694
|
+
const { sortableColumns: n } = ct(je);
|
|
3695
|
+
return /* @__PURE__ */ l.jsxs(be.Root, { closeOnSelect: !1, children: [
|
|
3696
|
+
/* @__PURE__ */ l.jsx(xs, { asChild: !0, children: /* @__PURE__ */ l.jsx(ke, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ l.jsx(is, { size: 18 }) }) }),
|
|
3697
|
+
/* @__PURE__ */ l.jsx(It, { children: /* @__PURE__ */ l.jsx(ys, { children: /* @__PURE__ */ l.jsx(ws, { minW: "220px", children: n.map((r) => {
|
|
3705
3698
|
const o = !!e[r.id];
|
|
3706
|
-
return /* @__PURE__ */
|
|
3707
|
-
/* @__PURE__ */
|
|
3708
|
-
/* @__PURE__ */
|
|
3709
|
-
/* @__PURE__ */
|
|
3699
|
+
return /* @__PURE__ */ l.jsx(Ss, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ l.jsxs(Le.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3700
|
+
/* @__PURE__ */ l.jsx(Cs, {}),
|
|
3701
|
+
/* @__PURE__ */ l.jsx(Es, {}),
|
|
3702
|
+
/* @__PURE__ */ l.jsx(Rs, { children: r.label })
|
|
3710
3703
|
] }) }, r.id);
|
|
3711
3704
|
}) }) }) })
|
|
3712
3705
|
] });
|
|
3713
3706
|
}
|
|
3714
|
-
const
|
|
3715
|
-
|
|
3716
|
-
},
|
|
3717
|
-
|
|
3707
|
+
const _s = (e) => {
|
|
3708
|
+
je.setState((t) => ({ ...t, columnOrder: e }));
|
|
3709
|
+
}, Os = (e) => {
|
|
3710
|
+
je.setState((t) => ({
|
|
3718
3711
|
...t,
|
|
3719
3712
|
visibility: { ...t.visibility, [e]: !t.visibility[e] }
|
|
3720
3713
|
}));
|
|
3721
3714
|
};
|
|
3722
|
-
function
|
|
3723
|
-
|
|
3715
|
+
function Ts(e) {
|
|
3716
|
+
je.setState((t) => t.sortColumn === e ? {
|
|
3724
3717
|
...t,
|
|
3725
3718
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
3726
3719
|
} : {
|
|
@@ -3729,7 +3722,7 @@ function Is(e) {
|
|
|
3729
3722
|
sortDirection: "asc"
|
|
3730
3723
|
});
|
|
3731
3724
|
}
|
|
3732
|
-
function
|
|
3725
|
+
function js({
|
|
3733
3726
|
id: e,
|
|
3734
3727
|
children: t,
|
|
3735
3728
|
onClick: n,
|
|
@@ -3737,79 +3730,84 @@ function As({
|
|
|
3737
3730
|
borderRight: o,
|
|
3738
3731
|
borderRightColor: i
|
|
3739
3732
|
}) {
|
|
3740
|
-
const { setNodeRef: s, attributes: a, listeners:
|
|
3741
|
-
return /* @__PURE__ */
|
|
3733
|
+
const { setNodeRef: s, attributes: a, listeners: d, transform: u, transition: f } = wr({ id: e });
|
|
3734
|
+
return /* @__PURE__ */ l.jsx(
|
|
3742
3735
|
ve.ColumnHeader,
|
|
3743
3736
|
{
|
|
3744
3737
|
ref: s,
|
|
3745
3738
|
onClick: n,
|
|
3746
3739
|
w: e === "id" ? "80px" : void 0,
|
|
3747
3740
|
style: {
|
|
3748
|
-
transform:
|
|
3749
|
-
transition:
|
|
3741
|
+
transform: He.Transform.toString(u),
|
|
3742
|
+
transition: f,
|
|
3750
3743
|
cursor: r,
|
|
3751
3744
|
borderRight: o,
|
|
3752
3745
|
borderRightColor: i
|
|
3753
3746
|
},
|
|
3754
3747
|
...a,
|
|
3755
|
-
children: /* @__PURE__ */
|
|
3748
|
+
children: /* @__PURE__ */ l.jsxs(ge, { justify: "space-between", children: [
|
|
3756
3749
|
t,
|
|
3757
|
-
/* @__PURE__ */
|
|
3750
|
+
/* @__PURE__ */ l.jsx("span", { ...d, children: /* @__PURE__ */ l.jsx(hs, { size: 12 }) })
|
|
3758
3751
|
] })
|
|
3759
3752
|
}
|
|
3760
3753
|
);
|
|
3761
3754
|
}
|
|
3762
|
-
function
|
|
3763
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r,
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
const
|
|
3767
|
-
|
|
3768
|
-
const h = e.indexOf(c.id), f = e.indexOf(l.id);
|
|
3769
|
-
Ts(Lt(e, h, f));
|
|
3755
|
+
function Is() {
|
|
3756
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = ct(je), i = e.map((a) => o.find((d) => d.id === a.id)).filter((a) => a !== void 0).filter((a) => t[a.id]), s = (a) => {
|
|
3757
|
+
const { active: d, over: u } = a;
|
|
3758
|
+
if (!u || d.id === u.id) return;
|
|
3759
|
+
const f = e.findIndex((c) => c.id === d.id), h = e.findIndex((c) => c.id === u.id), g = Mt(e, f, h);
|
|
3760
|
+
_s(g);
|
|
3770
3761
|
};
|
|
3771
|
-
return /* @__PURE__ */
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
children: /* @__PURE__ */ u.jsxs(
|
|
3782
|
-
"span",
|
|
3762
|
+
return /* @__PURE__ */ l.jsx(ve.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ l.jsx(gr, { collisionDetection: tr, onDragEnd: s, children: /* @__PURE__ */ l.jsx(
|
|
3763
|
+
xr,
|
|
3764
|
+
{
|
|
3765
|
+
items: e.map((a) => a.id),
|
|
3766
|
+
strategy: ji,
|
|
3767
|
+
children: /* @__PURE__ */ l.jsxs(ve.Row, { height: "28px", children: [
|
|
3768
|
+
i.map((a, d) => {
|
|
3769
|
+
const u = n === a?.id, f = d === i.length - 1;
|
|
3770
|
+
return /* @__PURE__ */ l.jsx(
|
|
3771
|
+
js,
|
|
3783
3772
|
{
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3773
|
+
id: a?.id,
|
|
3774
|
+
onClick: () => a?.sortable && Ts(a?.id),
|
|
3775
|
+
cursor: a?.sortable ? "pointer" : "default",
|
|
3776
|
+
borderRight: f ? void 0 : "2px solid",
|
|
3777
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
3778
|
+
"span",
|
|
3779
|
+
{
|
|
3780
|
+
style: {
|
|
3781
|
+
display: "flex",
|
|
3782
|
+
alignItems: "center",
|
|
3783
|
+
gap: 6,
|
|
3784
|
+
userSelect: "none"
|
|
3785
|
+
},
|
|
3786
|
+
children: [
|
|
3787
|
+
a?.label,
|
|
3788
|
+
a?.sortable && (u ? r === "asc" ? /* @__PURE__ */ l.jsx(Ki, { size: 14 }) : /* @__PURE__ */ l.jsx(Gi, { size: 14 }) : /* @__PURE__ */ l.jsx(qi, { size: 14, opacity: 0.4 }))
|
|
3789
|
+
]
|
|
3790
|
+
}
|
|
3791
|
+
)
|
|
3792
|
+
},
|
|
3793
|
+
a?.id
|
|
3794
|
+
);
|
|
3795
|
+
}),
|
|
3796
|
+
/* @__PURE__ */ l.jsx(ve.ColumnHeader, { borderRight: "2px solid", borderRightColor: "gray.300", children: "Actions" }),
|
|
3797
|
+
/* @__PURE__ */ l.jsx(ve.ColumnHeader, { boxSize: "0.5", children: /* @__PURE__ */ l.jsx(Ds, { visibility: t, onToggle: Os }) })
|
|
3798
|
+
] })
|
|
3799
|
+
}
|
|
3800
|
+
) }) });
|
|
3803
3801
|
}
|
|
3804
|
-
const
|
|
3802
|
+
const Xn = Mr({
|
|
3805
3803
|
items: [
|
|
3806
3804
|
{ label: "10", value: "10" },
|
|
3807
3805
|
{ label: "20", value: "20" },
|
|
3808
3806
|
{ label: "50", value: "50" },
|
|
3809
3807
|
{ label: "100", value: "100" }
|
|
3810
3808
|
]
|
|
3811
|
-
}),
|
|
3812
|
-
function
|
|
3809
|
+
}), As = E(le.Positioner), ks = E(le.Content), Ns = E(le.Item), Ls = E(Ct.PrevTrigger), Ms = E(Ct.NextTrigger), Ps = E(le.HiddenSelect), zs = E(le.Control), $s = E(le.Trigger), Vs = E(le.ValueText), Fs = E(le.IndicatorGroup), Bs = E(le.Indicator);
|
|
3810
|
+
function Ws({
|
|
3813
3811
|
totalCount: e,
|
|
3814
3812
|
pageSize: t,
|
|
3815
3813
|
currentPage: n,
|
|
@@ -3817,32 +3815,32 @@ function Ys({
|
|
|
3817
3815
|
onPageSizeChange: o,
|
|
3818
3816
|
siblingCount: i = 2
|
|
3819
3817
|
}) {
|
|
3820
|
-
return /* @__PURE__ */
|
|
3821
|
-
/* @__PURE__ */
|
|
3822
|
-
/* @__PURE__ */
|
|
3823
|
-
/* @__PURE__ */
|
|
3818
|
+
return /* @__PURE__ */ l.jsx(Be, { width: "100%", children: /* @__PURE__ */ l.jsxs(ge, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3819
|
+
/* @__PURE__ */ l.jsxs(ge, { children: [
|
|
3820
|
+
/* @__PURE__ */ l.jsx(Te, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3821
|
+
/* @__PURE__ */ l.jsxs(
|
|
3824
3822
|
le.Root,
|
|
3825
3823
|
{
|
|
3826
|
-
collection:
|
|
3824
|
+
collection: Xn,
|
|
3827
3825
|
size: "sm",
|
|
3828
3826
|
width: "60px",
|
|
3829
3827
|
onValueChange: (s) => o && o(Number(s.items[0].value)),
|
|
3830
3828
|
value: [String(t)],
|
|
3831
3829
|
children: [
|
|
3832
|
-
/* @__PURE__ */
|
|
3833
|
-
/* @__PURE__ */
|
|
3834
|
-
/* @__PURE__ */
|
|
3835
|
-
/* @__PURE__ */
|
|
3830
|
+
/* @__PURE__ */ l.jsx(Ps, {}),
|
|
3831
|
+
/* @__PURE__ */ l.jsxs(zs, { children: [
|
|
3832
|
+
/* @__PURE__ */ l.jsx($s, { children: /* @__PURE__ */ l.jsx(Vs, { placeholder: "" }) }),
|
|
3833
|
+
/* @__PURE__ */ l.jsx(Fs, { children: /* @__PURE__ */ l.jsx(Bs, {}) })
|
|
3836
3834
|
] }),
|
|
3837
|
-
/* @__PURE__ */
|
|
3835
|
+
/* @__PURE__ */ l.jsx(It, { children: /* @__PURE__ */ l.jsx(As, { children: /* @__PURE__ */ l.jsx(ks, { children: Xn.items.map((s) => /* @__PURE__ */ l.jsxs(Ns, { item: s.value, children: [
|
|
3838
3836
|
s.label,
|
|
3839
|
-
/* @__PURE__ */
|
|
3837
|
+
/* @__PURE__ */ l.jsx(le.ItemIndicator, {})
|
|
3840
3838
|
] }, s.value)) }) }) })
|
|
3841
3839
|
]
|
|
3842
3840
|
}
|
|
3843
3841
|
)
|
|
3844
3842
|
] }),
|
|
3845
|
-
/* @__PURE__ */
|
|
3843
|
+
/* @__PURE__ */ l.jsx(
|
|
3846
3844
|
Ct.Root,
|
|
3847
3845
|
{
|
|
3848
3846
|
count: e,
|
|
@@ -3850,13 +3848,13 @@ function Ys({
|
|
|
3850
3848
|
page: n,
|
|
3851
3849
|
siblingCount: i,
|
|
3852
3850
|
onPageChange: (s) => r && r(s.page),
|
|
3853
|
-
children: /* @__PURE__ */
|
|
3854
|
-
/* @__PURE__ */
|
|
3855
|
-
/* @__PURE__ */
|
|
3851
|
+
children: /* @__PURE__ */ l.jsxs(Pr, { size: "sm", variant: "ghost", children: [
|
|
3852
|
+
/* @__PURE__ */ l.jsx(Ls, { asChild: !0, children: /* @__PURE__ */ l.jsx(ke, { "aria-label": "Previous page", children: /* @__PURE__ */ l.jsx(ts, { size: 18 }) }) }),
|
|
3853
|
+
/* @__PURE__ */ l.jsx(
|
|
3856
3854
|
Ct.Items,
|
|
3857
3855
|
{
|
|
3858
|
-
render: (s) => /* @__PURE__ */
|
|
3859
|
-
|
|
3856
|
+
render: (s) => /* @__PURE__ */ l.jsx(
|
|
3857
|
+
ke,
|
|
3860
3858
|
{
|
|
3861
3859
|
variant: s.type === "page" && s.value === n ? "outline" : "ghost",
|
|
3862
3860
|
"aria-current": s.type === "page" && s.value === n ? "page" : void 0,
|
|
@@ -3866,70 +3864,82 @@ function Ys({
|
|
|
3866
3864
|
)
|
|
3867
3865
|
}
|
|
3868
3866
|
),
|
|
3869
|
-
/* @__PURE__ */
|
|
3867
|
+
/* @__PURE__ */ l.jsx(Ms, { asChild: !0, children: /* @__PURE__ */ l.jsx(ke, { "aria-label": "Next page", children: /* @__PURE__ */ l.jsx(rs, { size: 18 }) }) })
|
|
3870
3868
|
] })
|
|
3871
3869
|
}
|
|
3872
3870
|
)
|
|
3873
3871
|
] }) });
|
|
3874
3872
|
}
|
|
3875
|
-
|
|
3876
|
-
|
|
3873
|
+
const Hs = E(be.Item), Ys = E(be.Content), Us = E(be.Positioner), Gs = E(be.Trigger);
|
|
3874
|
+
function Xs({
|
|
3875
|
+
data: e = [],
|
|
3876
|
+
actions: t = []
|
|
3877
3877
|
}) {
|
|
3878
|
-
const { columnOrder:
|
|
3879
|
-
return /* @__PURE__ */
|
|
3880
|
-
|
|
3881
|
-
/* @__PURE__ */
|
|
3882
|
-
/* @__PURE__ */
|
|
3883
|
-
/* @__PURE__ */
|
|
3884
|
-
|
|
3885
|
-
|
|
3878
|
+
const { columnOrder: n, visibility: r } = ct(je);
|
|
3879
|
+
return /* @__PURE__ */ l.jsx(ve.Body, { children: e.map((o) => /* @__PURE__ */ l.jsxs(ve.Row, { children: [
|
|
3880
|
+
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ l.jsx(ve.Cell, { children: o[i.id] }, i.id)),
|
|
3881
|
+
/* @__PURE__ */ l.jsx(ve.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ l.jsxs(be.Root, { children: [
|
|
3882
|
+
/* @__PURE__ */ l.jsx(Gs, { asChild: !0, children: /* @__PURE__ */ l.jsx(ke, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ l.jsx(cs, { size: 16 }) }) }),
|
|
3883
|
+
/* @__PURE__ */ l.jsx(It, { children: /* @__PURE__ */ l.jsx(Us, { children: /* @__PURE__ */ l.jsx(Ys, { children: t.map((i) => /* @__PURE__ */ l.jsxs(
|
|
3884
|
+
Hs,
|
|
3885
|
+
{
|
|
3886
|
+
onClick: i.onClick,
|
|
3887
|
+
colorScheme: i.colorScheme,
|
|
3888
|
+
value: i.label,
|
|
3889
|
+
children: [
|
|
3890
|
+
i.icon,
|
|
3891
|
+
i.label
|
|
3892
|
+
]
|
|
3893
|
+
},
|
|
3894
|
+
i.label
|
|
3895
|
+
)) }) }) })
|
|
3896
|
+
] }) })
|
|
3897
|
+
] }, o.id)) });
|
|
3886
3898
|
}
|
|
3887
|
-
function
|
|
3888
|
-
// headers,
|
|
3899
|
+
function Ra({
|
|
3889
3900
|
data: e = [],
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3901
|
+
headers: t = [],
|
|
3902
|
+
loading: n = !1,
|
|
3903
|
+
emptyMessage: r = "No data",
|
|
3904
|
+
actions: o,
|
|
3894
3905
|
page: i = 0,
|
|
3895
3906
|
pageSize: s = 10,
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
density: h = "sm"
|
|
3907
|
+
onPageChange: a,
|
|
3908
|
+
onPageSizeChange: d,
|
|
3909
|
+
density: u = "sm"
|
|
3900
3910
|
}) {
|
|
3901
3911
|
A(() => {
|
|
3902
|
-
|
|
3912
|
+
ms(e, t);
|
|
3903
3913
|
}, [e]);
|
|
3904
|
-
const { sortColumn: f, sortDirection:
|
|
3905
|
-
const
|
|
3906
|
-
f &&
|
|
3907
|
-
(
|
|
3914
|
+
const { sortColumn: f, sortDirection: h, data: g } = ct(je), c = A(() => {
|
|
3915
|
+
const b = [...g];
|
|
3916
|
+
f && b.sort(
|
|
3917
|
+
(m, x) => h === "asc" ? String(m[f]).localeCompare(String(x[f])) : String(x[f]).localeCompare(String(m[f]))
|
|
3908
3918
|
);
|
|
3909
|
-
const
|
|
3910
|
-
return
|
|
3911
|
-
}, [i, s, f,
|
|
3912
|
-
return /* @__PURE__ */
|
|
3913
|
-
/* @__PURE__ */
|
|
3914
|
-
/* @__PURE__ */
|
|
3915
|
-
/* @__PURE__ */
|
|
3916
|
-
] }) })
|
|
3917
|
-
/* @__PURE__ */
|
|
3918
|
-
|
|
3919
|
+
const p = (i - 1) * s;
|
|
3920
|
+
return b.slice(p, p + s);
|
|
3921
|
+
}, [i, s, f, h]);
|
|
3922
|
+
return /* @__PURE__ */ l.jsxs(Be, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
3923
|
+
/* @__PURE__ */ l.jsx(Be, { flex: "1", minHeight: 0, overflow: "auto", children: n ? /* @__PURE__ */ l.jsx(Be, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : c.length === 0 ? /* @__PURE__ */ l.jsx(Be, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: r }) : /* @__PURE__ */ l.jsxs(ve.Root, { variant: "outline", w: "100%", size: u, children: [
|
|
3924
|
+
/* @__PURE__ */ l.jsx(Is, {}),
|
|
3925
|
+
/* @__PURE__ */ l.jsx(Xs, { data: c, actions: o })
|
|
3926
|
+
] }) }),
|
|
3927
|
+
/* @__PURE__ */ l.jsx(Be, { mt: 0.5, children: /* @__PURE__ */ l.jsx(
|
|
3928
|
+
Ws,
|
|
3919
3929
|
{
|
|
3920
3930
|
totalCount: e.length,
|
|
3921
3931
|
pageSize: s,
|
|
3922
3932
|
currentPage: i,
|
|
3923
|
-
onPageChange:
|
|
3924
|
-
onPageSizeChange: (
|
|
3925
|
-
|
|
3933
|
+
onPageChange: a,
|
|
3934
|
+
onPageSizeChange: (b) => {
|
|
3935
|
+
d && d(b), i > 1 && a && a(1);
|
|
3926
3936
|
}
|
|
3927
3937
|
}
|
|
3928
3938
|
) })
|
|
3929
3939
|
] });
|
|
3930
3940
|
}
|
|
3931
3941
|
const Rr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
3932
|
-
function
|
|
3942
|
+
function qs(e) {
|
|
3933
3943
|
try {
|
|
3934
3944
|
return JSON.parse(localStorage.getItem(Rr(e)) || "[]");
|
|
3935
3945
|
} catch {
|
|
@@ -3939,7 +3949,7 @@ function Gs(e) {
|
|
|
3939
3949
|
const jt = new Kn({}), gn = (e) => {
|
|
3940
3950
|
const t = jt.state[e];
|
|
3941
3951
|
if (t) return t;
|
|
3942
|
-
const n =
|
|
3952
|
+
const n = qs(e);
|
|
3943
3953
|
return jt.setState((r) => ({
|
|
3944
3954
|
...r,
|
|
3945
3955
|
[e]: n
|
|
@@ -3949,25 +3959,25 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3949
3959
|
...n,
|
|
3950
3960
|
[e]: t
|
|
3951
3961
|
})), localStorage.setItem(Rr(e), JSON.stringify(t));
|
|
3952
|
-
},
|
|
3962
|
+
}, Js = (e, t) => {
|
|
3953
3963
|
const n = gn(e).filter((r) => r.id !== t);
|
|
3954
3964
|
Cr(e, n);
|
|
3955
|
-
},
|
|
3965
|
+
}, Ks = (e, t) => {
|
|
3956
3966
|
const n = [t, ...gn(e)];
|
|
3957
3967
|
Cr(e, n);
|
|
3958
|
-
},
|
|
3968
|
+
}, Zs = E(Le.Root), Qs = E(Le.HiddenInput), ea = E(Le.Control), ta = E(lt.Root), na = E(lt.Track), ra = E(lt.Range), oa = E(lt.Thumbs), ia = E(lt.Control), sa = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
3959
3969
|
const { attributes: r, listeners: o, setNodeRef: i, transform: s, transition: a } = wr({
|
|
3960
3970
|
id: e.id
|
|
3961
|
-
}),
|
|
3962
|
-
transform:
|
|
3971
|
+
}), d = {
|
|
3972
|
+
transform: He.Transform.toString(s),
|
|
3963
3973
|
transition: a,
|
|
3964
3974
|
cursor: "grab"
|
|
3965
3975
|
};
|
|
3966
|
-
return /* @__PURE__ */
|
|
3967
|
-
|
|
3976
|
+
return /* @__PURE__ */ l.jsxs(
|
|
3977
|
+
tt,
|
|
3968
3978
|
{
|
|
3969
3979
|
ref: i,
|
|
3970
|
-
style:
|
|
3980
|
+
style: d,
|
|
3971
3981
|
align: "stretch",
|
|
3972
3982
|
border: "1px solid",
|
|
3973
3983
|
borderColor: "gray.200",
|
|
@@ -3977,36 +3987,36 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3977
3987
|
...r,
|
|
3978
3988
|
...o,
|
|
3979
3989
|
children: [
|
|
3980
|
-
/* @__PURE__ */
|
|
3981
|
-
/* @__PURE__ */
|
|
3982
|
-
/* @__PURE__ */
|
|
3983
|
-
/* @__PURE__ */
|
|
3984
|
-
|
|
3990
|
+
/* @__PURE__ */ l.jsx(Te, { fontWeight: "bold", children: e.label }),
|
|
3991
|
+
/* @__PURE__ */ l.jsxs(ge, { justify: "space-between", children: [
|
|
3992
|
+
/* @__PURE__ */ l.jsx(Te, { fontSize: "sm", children: "Visible" }),
|
|
3993
|
+
/* @__PURE__ */ l.jsxs(
|
|
3994
|
+
Zs,
|
|
3985
3995
|
{
|
|
3986
3996
|
checked: e.visible,
|
|
3987
|
-
onCheckedChange: (
|
|
3997
|
+
onCheckedChange: (u) => t && t(e.id, !!u),
|
|
3988
3998
|
size: "sm",
|
|
3989
3999
|
children: [
|
|
3990
|
-
/* @__PURE__ */
|
|
3991
|
-
/* @__PURE__ */
|
|
4000
|
+
/* @__PURE__ */ l.jsx(Qs, {}),
|
|
4001
|
+
/* @__PURE__ */ l.jsx(ea, {})
|
|
3992
4002
|
]
|
|
3993
4003
|
}
|
|
3994
4004
|
)
|
|
3995
4005
|
] }),
|
|
3996
|
-
/* @__PURE__ */
|
|
3997
|
-
/* @__PURE__ */
|
|
3998
|
-
/* @__PURE__ */
|
|
3999
|
-
|
|
4006
|
+
/* @__PURE__ */ l.jsxs(tt, { align: "stretch", gap: 1, children: [
|
|
4007
|
+
/* @__PURE__ */ l.jsx(Te, { fontSize: "sm", children: "Size" }),
|
|
4008
|
+
/* @__PURE__ */ l.jsx(
|
|
4009
|
+
ta,
|
|
4000
4010
|
{
|
|
4001
4011
|
width: "200px",
|
|
4002
4012
|
min: 1,
|
|
4003
4013
|
max: 5,
|
|
4004
4014
|
step: 0.5,
|
|
4005
4015
|
value: [e.size ?? 1],
|
|
4006
|
-
onChange: (
|
|
4007
|
-
children: /* @__PURE__ */
|
|
4008
|
-
/* @__PURE__ */
|
|
4009
|
-
/* @__PURE__ */
|
|
4016
|
+
onChange: (u) => n && n(e.id, u[0]),
|
|
4017
|
+
children: /* @__PURE__ */ l.jsxs(ia, { children: [
|
|
4018
|
+
/* @__PURE__ */ l.jsx(na, { children: /* @__PURE__ */ l.jsx(ra, {}) }),
|
|
4019
|
+
/* @__PURE__ */ l.jsx(oa, {})
|
|
4010
4020
|
] })
|
|
4011
4021
|
}
|
|
4012
4022
|
)
|
|
@@ -4014,7 +4024,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4014
4024
|
]
|
|
4015
4025
|
}
|
|
4016
4026
|
);
|
|
4017
|
-
},
|
|
4027
|
+
}, aa = E(me.Root), la = E(me.Trigger), ca = E(me.Backdrop), ua = E(me.Positioner), da = E(me.Content), fa = E(me.Header), ha = E(me.Title), va = E(me.Body), ga = E(me.Footer), pa = E(me.CloseTrigger), ba = E(At.Root), ma = E(At.List), Jt = E(At.Trigger), Kt = E(At.Content), xa = ({
|
|
4018
4028
|
filterDrawerSize: e = "sm",
|
|
4019
4029
|
onVisibilityChange: t,
|
|
4020
4030
|
onSizeChange: n,
|
|
@@ -4023,44 +4033,44 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4023
4033
|
pageKey: i = "default",
|
|
4024
4034
|
currentFilters: s = {},
|
|
4025
4035
|
onLoadPreset: a,
|
|
4026
|
-
activePresetName:
|
|
4027
|
-
onReorder:
|
|
4036
|
+
activePresetName: d,
|
|
4037
|
+
onReorder: u
|
|
4028
4038
|
}) => {
|
|
4029
|
-
const
|
|
4030
|
-
const
|
|
4031
|
-
|
|
4039
|
+
const h = ct(jt)[i] ?? gn(i), g = () => {
|
|
4040
|
+
const c = prompt("Preset name?");
|
|
4041
|
+
c && Ks(i, {
|
|
4032
4042
|
id: crypto.randomUUID(),
|
|
4033
|
-
name:
|
|
4043
|
+
name: c,
|
|
4034
4044
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4035
4045
|
filters: s
|
|
4036
4046
|
});
|
|
4037
4047
|
};
|
|
4038
|
-
return /* @__PURE__ */
|
|
4039
|
-
/* @__PURE__ */
|
|
4040
|
-
/* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ l.jsx(ge, { wrap: "wrap", children: /* @__PURE__ */ l.jsxs(aa, { size: e, children: [
|
|
4049
|
+
/* @__PURE__ */ l.jsx(la, { asChild: !0, children: /* @__PURE__ */ l.jsxs(ke, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4050
|
+
/* @__PURE__ */ l.jsx(ds, { size: 16 }),
|
|
4041
4051
|
"Filters"
|
|
4042
4052
|
] }) }),
|
|
4043
|
-
/* @__PURE__ */
|
|
4044
|
-
/* @__PURE__ */
|
|
4045
|
-
/* @__PURE__ */
|
|
4046
|
-
/* @__PURE__ */
|
|
4047
|
-
/* @__PURE__ */
|
|
4048
|
-
/* @__PURE__ */
|
|
4049
|
-
/* @__PURE__ */
|
|
4050
|
-
/* @__PURE__ */
|
|
4053
|
+
/* @__PURE__ */ l.jsxs(It, { children: [
|
|
4054
|
+
/* @__PURE__ */ l.jsx(ca, {}),
|
|
4055
|
+
/* @__PURE__ */ l.jsx(ua, { children: /* @__PURE__ */ l.jsxs(da, { children: [
|
|
4056
|
+
/* @__PURE__ */ l.jsx(fa, { children: /* @__PURE__ */ l.jsx(ha, { children: "Filters" }) }),
|
|
4057
|
+
/* @__PURE__ */ l.jsx(va, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ l.jsxs(ba, { defaultValue: "view", children: [
|
|
4058
|
+
/* @__PURE__ */ l.jsxs(ma, { mb: 4, children: [
|
|
4059
|
+
/* @__PURE__ */ l.jsxs(Jt, { value: "view", children: [
|
|
4060
|
+
/* @__PURE__ */ l.jsx(gs, { size: 16 }),
|
|
4051
4061
|
"Edit"
|
|
4052
4062
|
] }),
|
|
4053
|
-
/* @__PURE__ */
|
|
4054
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ l.jsxs(Jt, { value: "settings", children: [
|
|
4064
|
+
/* @__PURE__ */ l.jsx(bs, { size: 16 }),
|
|
4055
4065
|
"Settings"
|
|
4056
4066
|
] }),
|
|
4057
|
-
/* @__PURE__ */
|
|
4058
|
-
/* @__PURE__ */
|
|
4067
|
+
/* @__PURE__ */ l.jsxs(Jt, { value: "presets", children: [
|
|
4068
|
+
/* @__PURE__ */ l.jsx(Qi, { size: 16 }),
|
|
4059
4069
|
"Presets"
|
|
4060
4070
|
] })
|
|
4061
4071
|
] }),
|
|
4062
|
-
/* @__PURE__ */
|
|
4063
|
-
|
|
4072
|
+
/* @__PURE__ */ l.jsx(Kt, { value: "view", children: o.filter((c) => c.visible).map((c) => /* @__PURE__ */ l.jsxs(
|
|
4073
|
+
tt,
|
|
4064
4074
|
{
|
|
4065
4075
|
align: "stretch",
|
|
4066
4076
|
border: "1px solid",
|
|
@@ -4069,86 +4079,86 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4069
4079
|
p: 3,
|
|
4070
4080
|
mb: 3,
|
|
4071
4081
|
children: [
|
|
4072
|
-
/* @__PURE__ */
|
|
4073
|
-
|
|
4082
|
+
/* @__PURE__ */ l.jsx(Te, { fontWeight: "bold", children: c.label }),
|
|
4083
|
+
c.customComponent
|
|
4074
4084
|
]
|
|
4075
4085
|
},
|
|
4076
|
-
|
|
4086
|
+
c.id
|
|
4077
4087
|
)) }),
|
|
4078
|
-
/* @__PURE__ */
|
|
4088
|
+
/* @__PURE__ */ l.jsx(Kt, { value: "settings", children: /* @__PURE__ */ l.jsx(
|
|
4079
4089
|
gr,
|
|
4080
4090
|
{
|
|
4081
4091
|
sensors: bo(po(vn)),
|
|
4082
4092
|
collisionDetection: tr,
|
|
4083
|
-
onDragEnd: ({ active:
|
|
4084
|
-
if (!
|
|
4085
|
-
const
|
|
4086
|
-
console.log(x),
|
|
4093
|
+
onDragEnd: ({ active: c, over: b }) => {
|
|
4094
|
+
if (!b || c.id === b.id) return;
|
|
4095
|
+
const p = o.findIndex((R) => R.id === c.id), m = o.findIndex((R) => R.id === b.id), x = Mt(o, p, m);
|
|
4096
|
+
console.log(x), u?.(x);
|
|
4087
4097
|
},
|
|
4088
|
-
children: /* @__PURE__ */
|
|
4098
|
+
children: /* @__PURE__ */ l.jsx(
|
|
4089
4099
|
xr,
|
|
4090
4100
|
{
|
|
4091
|
-
items: o.map((
|
|
4101
|
+
items: o.map((c) => c.id),
|
|
4092
4102
|
strategy: Ai,
|
|
4093
|
-
children: o.map((
|
|
4094
|
-
|
|
4103
|
+
children: o.map((c) => /* @__PURE__ */ l.jsx(
|
|
4104
|
+
sa,
|
|
4095
4105
|
{
|
|
4096
|
-
filter:
|
|
4106
|
+
filter: c,
|
|
4097
4107
|
onVisibilityChange: t,
|
|
4098
4108
|
onSizeChange: n
|
|
4099
4109
|
},
|
|
4100
|
-
|
|
4110
|
+
c.id
|
|
4101
4111
|
))
|
|
4102
4112
|
}
|
|
4103
4113
|
)
|
|
4104
4114
|
}
|
|
4105
4115
|
) }),
|
|
4106
|
-
/* @__PURE__ */
|
|
4107
|
-
/* @__PURE__ */
|
|
4108
|
-
|
|
4109
|
-
|
|
4116
|
+
/* @__PURE__ */ l.jsx(Kt, { value: "presets", children: /* @__PURE__ */ l.jsxs(tt, { align: "stretch", mb: 3, children: [
|
|
4117
|
+
/* @__PURE__ */ l.jsx(Vt, { size: "sm", colorScheme: "blue", onClick: g, children: "Save Current Filters" }),
|
|
4118
|
+
h.length === 0 && /* @__PURE__ */ l.jsx(Te, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4119
|
+
h.map((c) => /* @__PURE__ */ l.jsxs(
|
|
4110
4120
|
ge,
|
|
4111
4121
|
{
|
|
4112
4122
|
justify: "space-between",
|
|
4113
4123
|
border: "1px solid",
|
|
4114
|
-
borderColor:
|
|
4124
|
+
borderColor: d === c.name ? "blue.300" : "gray.200",
|
|
4115
4125
|
rounded: "md",
|
|
4116
4126
|
p: 2,
|
|
4117
4127
|
children: [
|
|
4118
|
-
/* @__PURE__ */
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4128
|
+
/* @__PURE__ */ l.jsxs(tt, { align: "start", gap: 0, children: [
|
|
4129
|
+
/* @__PURE__ */ l.jsx(Te, { fontWeight: "bold", fontSize: "sm", children: c.name }),
|
|
4130
|
+
/* @__PURE__ */ l.jsx(Te, { fontSize: "xs", color: "gray.500", children: new Date(c.date).toLocaleDateString() })
|
|
4121
4131
|
] }),
|
|
4122
|
-
/* @__PURE__ */
|
|
4123
|
-
/* @__PURE__ */
|
|
4124
|
-
|
|
4132
|
+
/* @__PURE__ */ l.jsxs(ge, { children: [
|
|
4133
|
+
/* @__PURE__ */ l.jsx(
|
|
4134
|
+
Vt,
|
|
4125
4135
|
{
|
|
4126
4136
|
size: "xs",
|
|
4127
4137
|
variant: "ghost",
|
|
4128
|
-
onClick: () => a?.(
|
|
4138
|
+
onClick: () => a?.(c.filters, c.name),
|
|
4129
4139
|
children: "Load"
|
|
4130
4140
|
}
|
|
4131
4141
|
),
|
|
4132
|
-
/* @__PURE__ */
|
|
4133
|
-
|
|
4142
|
+
/* @__PURE__ */ l.jsx(
|
|
4143
|
+
ke,
|
|
4134
4144
|
{
|
|
4135
4145
|
size: "xs",
|
|
4136
4146
|
"aria-label": "Delete preset",
|
|
4137
4147
|
variant: "ghost",
|
|
4138
|
-
onClick: () =>
|
|
4139
|
-
children: /* @__PURE__ */
|
|
4148
|
+
onClick: () => Js(i, c.id),
|
|
4149
|
+
children: /* @__PURE__ */ l.jsx(as, { size: 14 })
|
|
4140
4150
|
}
|
|
4141
4151
|
)
|
|
4142
4152
|
] })
|
|
4143
4153
|
]
|
|
4144
4154
|
},
|
|
4145
|
-
|
|
4155
|
+
c.id
|
|
4146
4156
|
))
|
|
4147
4157
|
] }) })
|
|
4148
4158
|
] }) }),
|
|
4149
|
-
/* @__PURE__ */
|
|
4150
|
-
/* @__PURE__ */
|
|
4151
|
-
|
|
4159
|
+
/* @__PURE__ */ l.jsxs(ga, { justify: "space-between", children: [
|
|
4160
|
+
/* @__PURE__ */ l.jsx(
|
|
4161
|
+
Vt,
|
|
4152
4162
|
{
|
|
4153
4163
|
size: "sm",
|
|
4154
4164
|
variant: "ghost",
|
|
@@ -4157,12 +4167,12 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4157
4167
|
children: "Clear All"
|
|
4158
4168
|
}
|
|
4159
4169
|
),
|
|
4160
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ l.jsx(pa, { asChild: !0, children: /* @__PURE__ */ l.jsx(zr, {}) })
|
|
4161
4171
|
] })
|
|
4162
4172
|
] }) })
|
|
4163
4173
|
] })
|
|
4164
4174
|
] }) });
|
|
4165
|
-
},
|
|
4175
|
+
}, Ca = ({
|
|
4166
4176
|
title: e,
|
|
4167
4177
|
filters: t,
|
|
4168
4178
|
onVisibilityChange: n,
|
|
@@ -4171,34 +4181,34 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4171
4181
|
onClear: i,
|
|
4172
4182
|
maxToolbarUnits: s,
|
|
4173
4183
|
pageKey: a,
|
|
4174
|
-
currentFilters:
|
|
4175
|
-
onLoadPreset:
|
|
4176
|
-
activePresetName:
|
|
4177
|
-
filterDrawerSize:
|
|
4178
|
-
}) => /* @__PURE__ */
|
|
4179
|
-
|
|
4180
|
-
/* @__PURE__ */
|
|
4181
|
-
t.length > 0 && t.filter((
|
|
4182
|
-
/* @__PURE__ */
|
|
4183
|
-
|
|
4184
|
+
currentFilters: d,
|
|
4185
|
+
onLoadPreset: u,
|
|
4186
|
+
activePresetName: f,
|
|
4187
|
+
filterDrawerSize: h = "sm"
|
|
4188
|
+
}) => /* @__PURE__ */ l.jsxs(ge, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4189
|
+
e,
|
|
4190
|
+
/* @__PURE__ */ l.jsxs(ge, { children: [
|
|
4191
|
+
t.length > 0 && t.filter((g) => g.visible).map((g) => /* @__PURE__ */ l.jsx(ge, { children: g.customComponent }, g.id)),
|
|
4192
|
+
/* @__PURE__ */ l.jsx(
|
|
4193
|
+
xa,
|
|
4184
4194
|
{
|
|
4185
|
-
filterDrawerSize:
|
|
4186
|
-
onVisibilityChange: n ? (
|
|
4195
|
+
filterDrawerSize: h,
|
|
4196
|
+
onVisibilityChange: n ? (g, c) => n(g, c) : void 0,
|
|
4187
4197
|
onReorder: r,
|
|
4188
|
-
onSizeChange: o ? (
|
|
4198
|
+
onSizeChange: o ? (g, c) => o(g, c) : void 0,
|
|
4189
4199
|
onClear: i,
|
|
4190
4200
|
maxToolbarUnits: s,
|
|
4191
4201
|
pageKey: a,
|
|
4192
4202
|
filters: t,
|
|
4193
|
-
currentFilters:
|
|
4194
|
-
onLoadPreset:
|
|
4195
|
-
activePresetName:
|
|
4203
|
+
currentFilters: d,
|
|
4204
|
+
onLoadPreset: u,
|
|
4205
|
+
activePresetName: f
|
|
4196
4206
|
}
|
|
4197
4207
|
)
|
|
4198
4208
|
] })
|
|
4199
|
-
] }),
|
|
4209
|
+
] }), Ea = (e, t) => {
|
|
4200
4210
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4201
|
-
},
|
|
4211
|
+
}, Da = (e) => {
|
|
4202
4212
|
try {
|
|
4203
4213
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4204
4214
|
} catch {
|
|
@@ -4206,16 +4216,16 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4206
4216
|
}
|
|
4207
4217
|
};
|
|
4208
4218
|
export {
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4219
|
+
Ra as DataTable,
|
|
4220
|
+
Ca as Filters,
|
|
4221
|
+
Ks as addPreset,
|
|
4222
|
+
Js as deletePreset,
|
|
4213
4223
|
gn as getPresets,
|
|
4214
|
-
|
|
4224
|
+
Da as loadOrder,
|
|
4215
4225
|
jt as presetStore,
|
|
4216
|
-
|
|
4226
|
+
Ea as saveOrder,
|
|
4217
4227
|
Cr as savePresets,
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4228
|
+
ms as setData,
|
|
4229
|
+
je as tableStore,
|
|
4230
|
+
E as withChildren
|
|
4221
4231
|
};
|