@clevertask/react-sortable-tree 0.0.7 → 0.0.8
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/README.md +93 -32
- package/dist/e2e/index.js +51 -0
- package/dist/e2e/utils/drag-item.d.ts +15 -0
- package/dist/e2e/utils/expect-item-before.d.ts +2 -0
- package/dist/e2e/utils/expect-item-child-of.d.ts +3 -0
- package/dist/e2e/utils/get-tree-item-id.d.ts +2 -0
- package/dist/e2e/utils/index.d.ts +4 -0
- package/dist/react-sortable-tree.css +1 -1
- package/dist/react-sortable-tree.js +770 -731
- package/dist/react-sortable-tree.js.map +1 -1
- package/dist/src/SortableTree/components/TreeItemStructure/index.d.ts +39 -0
- package/package.json +34 -11
- package/dist/SortableTree/components/TreeItemStructure/index.d.ts +0 -19
- /package/dist/{SortableTree → src/SortableTree}/SortableTree.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Action/Action.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Action/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Add/Add.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Add/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Handle/Handle.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Handle/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Remove/Remove.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/Remove/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/TreeItem/SortableTreeItem.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/TreeItem/TreeItem.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/TreeItem/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/components/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/createSortableTreeGlobalStyles.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/index.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/keyboardCoordinates.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/types.d.ts +0 -0
- /package/dist/{SortableTree → src/SortableTree}/utilities.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as T, jsxs as sr } from "react/jsx-runtime";
|
|
2
2
|
import * as Et from "react";
|
|
3
|
-
import
|
|
3
|
+
import z, { useLayoutEffect as co, useEffect as L, useMemo as M, useRef as k, useCallback as $, useState as U, createContext as qe, useContext as Le, memo as gn, useReducer as lo, forwardRef as _t, cloneElement as uo } from "react";
|
|
4
4
|
import { unstable_batchedUpdates as yt, createPortal as ar } from "react-dom";
|
|
5
|
-
function
|
|
5
|
+
function fo() {
|
|
6
6
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
7
7
|
t[n] = arguments[n];
|
|
8
|
-
return
|
|
8
|
+
return M(
|
|
9
9
|
() => (r) => {
|
|
10
10
|
t.forEach((o) => o(r));
|
|
11
11
|
},
|
|
@@ -14,7 +14,7 @@ function uo() {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
const Lt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
17
|
-
function
|
|
17
|
+
function Ye(e) {
|
|
18
18
|
const t = Object.prototype.toString.call(e);
|
|
19
19
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
20
20
|
t === "[object global]";
|
|
@@ -24,7 +24,7 @@ function hn(e) {
|
|
|
24
24
|
}
|
|
25
25
|
function J(e) {
|
|
26
26
|
var t, n;
|
|
27
|
-
return e ?
|
|
27
|
+
return e ? Ye(e) ? e : hn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
28
28
|
}
|
|
29
29
|
function pn(e) {
|
|
30
30
|
const {
|
|
@@ -33,15 +33,15 @@ function pn(e) {
|
|
|
33
33
|
return e instanceof t;
|
|
34
34
|
}
|
|
35
35
|
function gt(e) {
|
|
36
|
-
return
|
|
36
|
+
return Ye(e) ? !1 : e instanceof J(e).HTMLElement;
|
|
37
37
|
}
|
|
38
38
|
function cr(e) {
|
|
39
39
|
return e instanceof J(e).SVGElement;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return e ?
|
|
41
|
+
function Ze(e) {
|
|
42
|
+
return e ? Ye(e) ? e.document : hn(e) ? pn(e) ? e : gt(e) || cr(e) ? e.ownerDocument : document : document : document;
|
|
43
43
|
}
|
|
44
|
-
const me = Lt ?
|
|
44
|
+
const me = Lt ? co : L;
|
|
45
45
|
function kt(e) {
|
|
46
46
|
const t = k(e);
|
|
47
47
|
return me(() => {
|
|
@@ -52,7 +52,7 @@ function kt(e) {
|
|
|
52
52
|
return t.current == null ? void 0 : t.current(...r);
|
|
53
53
|
}, []);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function go() {
|
|
56
56
|
const e = k(null), t = $((r, o) => {
|
|
57
57
|
e.current = setInterval(r, o);
|
|
58
58
|
}, []), n = $(() => {
|
|
@@ -60,7 +60,7 @@ function fo() {
|
|
|
60
60
|
}, []);
|
|
61
61
|
return [t, n];
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function lt(e, t) {
|
|
64
64
|
t === void 0 && (t = [e]);
|
|
65
65
|
const n = k(e);
|
|
66
66
|
return me(() => {
|
|
@@ -69,7 +69,7 @@ function ct(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
function ht(e, t) {
|
|
71
71
|
const n = k();
|
|
72
|
-
return
|
|
72
|
+
return M(
|
|
73
73
|
() => {
|
|
74
74
|
const r = e(n.current);
|
|
75
75
|
return n.current = r, r;
|
|
@@ -96,7 +96,7 @@ function Ot(e) {
|
|
|
96
96
|
}
|
|
97
97
|
let Yt = {};
|
|
98
98
|
function pt(e, t) {
|
|
99
|
-
return
|
|
99
|
+
return M(() => {
|
|
100
100
|
if (t)
|
|
101
101
|
return t;
|
|
102
102
|
const n = Yt[e] == null ? 0 : Yt[e] + 1;
|
|
@@ -119,8 +119,8 @@ function lr(e) {
|
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
function
|
|
122
|
+
const He = /* @__PURE__ */ lr(1), At = /* @__PURE__ */ lr(-1);
|
|
123
|
+
function ho(e) {
|
|
124
124
|
return "clientX" in e && "clientY" in e;
|
|
125
125
|
}
|
|
126
126
|
function Pt(e) {
|
|
@@ -131,7 +131,7 @@ function Pt(e) {
|
|
|
131
131
|
} = J(e.target);
|
|
132
132
|
return t && e instanceof t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function po(e) {
|
|
135
135
|
if (!e)
|
|
136
136
|
return !1;
|
|
137
137
|
const {
|
|
@@ -140,7 +140,7 @@ function ho(e) {
|
|
|
140
140
|
return t && e instanceof t;
|
|
141
141
|
}
|
|
142
142
|
function Tt(e) {
|
|
143
|
-
if (
|
|
143
|
+
if (po(e)) {
|
|
144
144
|
if (e.touches && e.touches.length) {
|
|
145
145
|
const {
|
|
146
146
|
clientX: t,
|
|
@@ -161,7 +161,7 @@ function Tt(e) {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
return
|
|
164
|
+
return ho(e) ? {
|
|
165
165
|
x: e.clientX,
|
|
166
166
|
y: e.clientY
|
|
167
167
|
} : null;
|
|
@@ -206,23 +206,23 @@ const Ce = /* @__PURE__ */ Object.freeze({
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
}), Nn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
209
|
-
function
|
|
209
|
+
function vo(e) {
|
|
210
210
|
return e.matches(Nn) ? e : e.querySelector(Nn);
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const bo = {
|
|
213
213
|
display: "none"
|
|
214
214
|
};
|
|
215
|
-
function
|
|
215
|
+
function mo(e) {
|
|
216
216
|
let {
|
|
217
217
|
id: t,
|
|
218
218
|
value: n
|
|
219
219
|
} = e;
|
|
220
|
-
return
|
|
220
|
+
return z.createElement("div", {
|
|
221
221
|
id: t,
|
|
222
|
-
style:
|
|
222
|
+
style: bo
|
|
223
223
|
}, n);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function yo(e) {
|
|
226
226
|
let {
|
|
227
227
|
id: t,
|
|
228
228
|
announcement: n,
|
|
@@ -242,7 +242,7 @@ function mo(e) {
|
|
|
242
242
|
clipPath: "inset(100%)",
|
|
243
243
|
whiteSpace: "nowrap"
|
|
244
244
|
};
|
|
245
|
-
return
|
|
245
|
+
return z.createElement("div", {
|
|
246
246
|
id: t,
|
|
247
247
|
style: o,
|
|
248
248
|
role: "status",
|
|
@@ -250,7 +250,7 @@ function mo(e) {
|
|
|
250
250
|
"aria-atomic": !0
|
|
251
251
|
}, n);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function wo() {
|
|
254
254
|
const [e, t] = U("");
|
|
255
255
|
return {
|
|
256
256
|
announce: $((r) => {
|
|
@@ -259,8 +259,8 @@ function yo() {
|
|
|
259
259
|
announcement: e
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
const ur = /* @__PURE__ */
|
|
263
|
-
function
|
|
262
|
+
const ur = /* @__PURE__ */ qe(null);
|
|
263
|
+
function xo(e) {
|
|
264
264
|
const t = Le(ur);
|
|
265
265
|
L(() => {
|
|
266
266
|
if (!t)
|
|
@@ -281,13 +281,13 @@ function So() {
|
|
|
281
281
|
});
|
|
282
282
|
}, [e]), t];
|
|
283
283
|
}
|
|
284
|
-
const
|
|
284
|
+
const Co = {
|
|
285
285
|
draggable: `
|
|
286
286
|
To pick up a draggable item, press the space bar.
|
|
287
287
|
While dragging, use the arrow keys to move the item.
|
|
288
288
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
289
289
|
`
|
|
290
|
-
},
|
|
290
|
+
}, Do = {
|
|
291
291
|
onDragStart(e) {
|
|
292
292
|
let {
|
|
293
293
|
active: t
|
|
@@ -315,20 +315,20 @@ const xo = {
|
|
|
315
315
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function Ro(e) {
|
|
319
319
|
let {
|
|
320
|
-
announcements: t =
|
|
320
|
+
announcements: t = Do,
|
|
321
321
|
container: n,
|
|
322
322
|
hiddenTextDescribedById: r,
|
|
323
|
-
screenReaderInstructions: o =
|
|
323
|
+
screenReaderInstructions: o = Co
|
|
324
324
|
} = e;
|
|
325
325
|
const {
|
|
326
326
|
announce: i,
|
|
327
327
|
announcement: s
|
|
328
|
-
} =
|
|
328
|
+
} = wo(), a = pt("DndLiveRegion"), [c, l] = U(!1);
|
|
329
329
|
if (L(() => {
|
|
330
330
|
l(!0);
|
|
331
|
-
}, []),
|
|
331
|
+
}, []), xo(M(() => ({
|
|
332
332
|
onDragStart(d) {
|
|
333
333
|
let {
|
|
334
334
|
active: h
|
|
@@ -379,10 +379,10 @@ function Do(e) {
|
|
|
379
379
|
}
|
|
380
380
|
}), [i, t])), !c)
|
|
381
381
|
return null;
|
|
382
|
-
const u =
|
|
382
|
+
const u = z.createElement(z.Fragment, null, z.createElement(mo, {
|
|
383
383
|
id: r,
|
|
384
384
|
value: o.draggable
|
|
385
|
-
}),
|
|
385
|
+
}), z.createElement(yo, {
|
|
386
386
|
id: a,
|
|
387
387
|
announcement: s
|
|
388
388
|
}));
|
|
@@ -395,7 +395,7 @@ var K;
|
|
|
395
395
|
function Nt() {
|
|
396
396
|
}
|
|
397
397
|
function Mn(e, t) {
|
|
398
|
-
return
|
|
398
|
+
return M(
|
|
399
399
|
() => ({
|
|
400
400
|
sensor: e,
|
|
401
401
|
options: t ?? {}
|
|
@@ -404,10 +404,10 @@ function Mn(e, t) {
|
|
|
404
404
|
[e, t]
|
|
405
405
|
);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Eo() {
|
|
408
408
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
409
409
|
t[n] = arguments[n];
|
|
410
|
-
return
|
|
410
|
+
return M(
|
|
411
411
|
() => [...t].filter((r) => r != null),
|
|
412
412
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
413
413
|
[...t]
|
|
@@ -420,7 +420,7 @@ const ye = /* @__PURE__ */ Object.freeze({
|
|
|
420
420
|
function dr(e, t) {
|
|
421
421
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Io(e, t) {
|
|
424
424
|
const n = Tt(e);
|
|
425
425
|
if (!n)
|
|
426
426
|
return "0 0";
|
|
@@ -442,7 +442,7 @@ function fr(e, t) {
|
|
|
442
442
|
} = t;
|
|
443
443
|
return n - r;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Oo(e, t) {
|
|
446
446
|
let {
|
|
447
447
|
data: {
|
|
448
448
|
value: n
|
|
@@ -487,7 +487,7 @@ function Ln(e, t, n) {
|
|
|
487
487
|
y: n + e.height * 0.5
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Ao = (e) => {
|
|
491
491
|
let {
|
|
492
492
|
collisionRect: t,
|
|
493
493
|
droppableRects: n,
|
|
@@ -510,7 +510,7 @@ const Oo = (e) => {
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return i.sort(fr);
|
|
513
|
-
},
|
|
513
|
+
}, To = (e) => {
|
|
514
514
|
let {
|
|
515
515
|
collisionRect: t,
|
|
516
516
|
droppableRects: n,
|
|
@@ -534,7 +534,7 @@ const Oo = (e) => {
|
|
|
534
534
|
}
|
|
535
535
|
return i.sort(fr);
|
|
536
536
|
};
|
|
537
|
-
function
|
|
537
|
+
function No(e, t) {
|
|
538
538
|
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;
|
|
539
539
|
if (r < o && n < i) {
|
|
540
540
|
const c = t.width * t.height, l = e.width * e.height, u = s * a, d = u / (c + l - u);
|
|
@@ -542,7 +542,7 @@ function To(e, t) {
|
|
|
542
542
|
}
|
|
543
543
|
return 0;
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const Mo = (e) => {
|
|
546
546
|
let {
|
|
547
547
|
collisionRect: t,
|
|
548
548
|
droppableRects: n,
|
|
@@ -554,7 +554,7 @@ const No = (e) => {
|
|
|
554
554
|
id: s
|
|
555
555
|
} = i, a = n.get(s);
|
|
556
556
|
if (a) {
|
|
557
|
-
const c =
|
|
557
|
+
const c = No(a, t);
|
|
558
558
|
c > 0 && o.push({
|
|
559
559
|
id: s,
|
|
560
560
|
data: {
|
|
@@ -564,9 +564,9 @@ const No = (e) => {
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
return o.sort(
|
|
567
|
+
return o.sort(Oo);
|
|
568
568
|
};
|
|
569
|
-
function
|
|
569
|
+
function _o(e, t, n) {
|
|
570
570
|
return {
|
|
571
571
|
...e,
|
|
572
572
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -579,7 +579,7 @@ function hr(e, t) {
|
|
|
579
579
|
y: e.top - t.top
|
|
580
580
|
} : ye;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Lo(e) {
|
|
583
583
|
return function(n) {
|
|
584
584
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
585
585
|
o[i - 1] = arguments[i];
|
|
@@ -594,7 +594,7 @@ function _o(e) {
|
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const ko = /* @__PURE__ */ Lo(1);
|
|
598
598
|
function pr(e) {
|
|
599
599
|
if (e.startsWith("matrix3d(")) {
|
|
600
600
|
const t = e.slice(9, -1).split(/, /);
|
|
@@ -615,7 +615,7 @@ function pr(e) {
|
|
|
615
615
|
}
|
|
616
616
|
return null;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Po(e, t, n) {
|
|
619
619
|
const r = pr(t);
|
|
620
620
|
if (!r)
|
|
621
621
|
return e;
|
|
@@ -634,18 +634,18 @@ function ko(e, t, n) {
|
|
|
634
634
|
left: c
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const $o = {
|
|
638
638
|
ignoreTransform: !1
|
|
639
639
|
};
|
|
640
640
|
function Ge(e, t) {
|
|
641
|
-
t === void 0 && (t =
|
|
641
|
+
t === void 0 && (t = $o);
|
|
642
642
|
let n = e.getBoundingClientRect();
|
|
643
643
|
if (t.ignoreTransform) {
|
|
644
644
|
const {
|
|
645
645
|
transform: l,
|
|
646
646
|
transformOrigin: u
|
|
647
647
|
} = J(e).getComputedStyle(e);
|
|
648
|
-
l && (n =
|
|
648
|
+
l && (n = Po(n, l, u));
|
|
649
649
|
}
|
|
650
650
|
const {
|
|
651
651
|
top: r,
|
|
@@ -669,7 +669,7 @@ function kn(e) {
|
|
|
669
669
|
ignoreTransform: !0
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Bo(e) {
|
|
673
673
|
const t = e.innerWidth, n = e.innerHeight;
|
|
674
674
|
return {
|
|
675
675
|
top: 0,
|
|
@@ -680,10 +680,10 @@ function $o(e) {
|
|
|
680
680
|
height: n
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function zo(e, t) {
|
|
684
684
|
return t === void 0 && (t = J(e).getComputedStyle(e)), t.position === "fixed";
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Fo(e, t) {
|
|
687
687
|
t === void 0 && (t = J(e).getComputedStyle(e));
|
|
688
688
|
const n = /(auto|scroll|overlay)/;
|
|
689
689
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -701,7 +701,7 @@ function vn(e, t) {
|
|
|
701
701
|
if (!gt(o) || cr(o) || n.includes(o))
|
|
702
702
|
return n;
|
|
703
703
|
const i = J(e).getComputedStyle(o);
|
|
704
|
-
return o !== e &&
|
|
704
|
+
return o !== e && Fo(o, i) && n.push(o), zo(o, i) ? n : r(o.parentNode);
|
|
705
705
|
}
|
|
706
706
|
return e ? r(e) : n;
|
|
707
707
|
}
|
|
@@ -709,14 +709,14 @@ function vr(e) {
|
|
|
709
709
|
const [t] = vn(e, 1);
|
|
710
710
|
return t ?? null;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
return !Lt || !e ? null :
|
|
712
|
+
function Zt(e) {
|
|
713
|
+
return !Lt || !e ? null : Ye(e) ? e : hn(e) ? pn(e) || e === Ze(e).scrollingElement ? window : gt(e) ? e : null : null;
|
|
714
714
|
}
|
|
715
715
|
function br(e) {
|
|
716
|
-
return
|
|
716
|
+
return Ye(e) ? e.scrollX : e.scrollLeft;
|
|
717
717
|
}
|
|
718
718
|
function mr(e) {
|
|
719
|
-
return
|
|
719
|
+
return Ye(e) ? e.scrollY : e.scrollTop;
|
|
720
720
|
}
|
|
721
721
|
function sn(e) {
|
|
722
722
|
return {
|
|
@@ -754,18 +754,18 @@ function wr(e) {
|
|
|
754
754
|
minScroll: t
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
const
|
|
757
|
+
const jo = {
|
|
758
758
|
x: 0.2,
|
|
759
759
|
y: 0.2
|
|
760
760
|
};
|
|
761
|
-
function
|
|
761
|
+
function Ho(e, t, n, r, o) {
|
|
762
762
|
let {
|
|
763
763
|
top: i,
|
|
764
764
|
left: s,
|
|
765
765
|
right: a,
|
|
766
766
|
bottom: c
|
|
767
767
|
} = n;
|
|
768
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
768
|
+
r === void 0 && (r = 10), o === void 0 && (o = jo);
|
|
769
769
|
const {
|
|
770
770
|
isTop: l,
|
|
771
771
|
isBottom: u,
|
|
@@ -816,16 +816,16 @@ function Vo(e) {
|
|
|
816
816
|
height: e.clientHeight
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return e.reduce((t, n) =>
|
|
819
|
+
function xr(e) {
|
|
820
|
+
return e.reduce((t, n) => He(t, sn(n)), ye);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Uo(e) {
|
|
823
823
|
return e.reduce((t, n) => t + br(n), 0);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Ko(e) {
|
|
826
826
|
return e.reduce((t, n) => t + mr(n), 0);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Sr(e, t) {
|
|
829
829
|
if (t === void 0 && (t = Ge), !e)
|
|
830
830
|
return;
|
|
831
831
|
const {
|
|
@@ -839,15 +839,15 @@ function xr(e, t) {
|
|
|
839
839
|
inline: "center"
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
-
const
|
|
842
|
+
const Xo = [["x", ["left", "right"], Uo], ["y", ["top", "bottom"], Ko]];
|
|
843
843
|
class bn {
|
|
844
844
|
constructor(t, n) {
|
|
845
845
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
846
|
-
const r = vn(n), o =
|
|
846
|
+
const r = vn(n), o = xr(r);
|
|
847
847
|
this.rect = {
|
|
848
848
|
...t
|
|
849
849
|
}, this.width = t.width, this.height = t.height;
|
|
850
|
-
for (const [i, s, a] of
|
|
850
|
+
for (const [i, s, a] of Xo)
|
|
851
851
|
for (const c of s)
|
|
852
852
|
Object.defineProperty(this, c, {
|
|
853
853
|
get: () => {
|
|
@@ -861,7 +861,7 @@ class bn {
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
class
|
|
864
|
+
class rt {
|
|
865
865
|
constructor(t) {
|
|
866
866
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
867
867
|
this.listeners.forEach((n) => {
|
|
@@ -875,13 +875,13 @@ class nt {
|
|
|
875
875
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function qo(e) {
|
|
879
879
|
const {
|
|
880
880
|
EventTarget: t
|
|
881
881
|
} = J(e);
|
|
882
|
-
return e instanceof t ? e :
|
|
882
|
+
return e instanceof t ? e : Ze(e);
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Gt(e, t) {
|
|
885
885
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
886
886
|
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;
|
|
887
887
|
}
|
|
@@ -892,7 +892,7 @@ var ue;
|
|
|
892
892
|
function Pn(e) {
|
|
893
893
|
e.preventDefault();
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Yo(e) {
|
|
896
896
|
e.stopPropagation();
|
|
897
897
|
}
|
|
898
898
|
var E;
|
|
@@ -903,7 +903,7 @@ const Cr = {
|
|
|
903
903
|
start: [E.Space, E.Enter],
|
|
904
904
|
cancel: [E.Esc],
|
|
905
905
|
end: [E.Space, E.Enter, E.Tab]
|
|
906
|
-
},
|
|
906
|
+
}, Zo = (e, t) => {
|
|
907
907
|
let {
|
|
908
908
|
currentCoordinates: n
|
|
909
909
|
} = t;
|
|
@@ -938,7 +938,7 @@ class mn {
|
|
|
938
938
|
target: n
|
|
939
939
|
}
|
|
940
940
|
} = t;
|
|
941
|
-
this.props = t, this.listeners = new
|
|
941
|
+
this.props = t, this.listeners = new rt(Ze(n)), this.windowListeners = new rt(J(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
942
942
|
}
|
|
943
943
|
attach() {
|
|
944
944
|
this.handleStart(), this.windowListeners.add(ue.Resize, this.handleCancel), this.windowListeners.add(ue.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ue.Keydown, this.handleKeyDown));
|
|
@@ -948,7 +948,7 @@ class mn {
|
|
|
948
948
|
activeNode: t,
|
|
949
949
|
onStart: n
|
|
950
950
|
} = this.props, r = t.node.current;
|
|
951
|
-
r &&
|
|
951
|
+
r && Sr(r), n(ye);
|
|
952
952
|
}
|
|
953
953
|
handleKeyDown(t) {
|
|
954
954
|
if (Pt(t)) {
|
|
@@ -958,7 +958,7 @@ class mn {
|
|
|
958
958
|
options: o
|
|
959
959
|
} = this.props, {
|
|
960
960
|
keyboardCodes: i = Cr,
|
|
961
|
-
coordinateGetter: s =
|
|
961
|
+
coordinateGetter: s = Zo,
|
|
962
962
|
scrollBehavior: a = "smooth"
|
|
963
963
|
} = o, {
|
|
964
964
|
code: c
|
|
@@ -994,14 +994,14 @@ class mn {
|
|
|
994
994
|
const p = t.code, {
|
|
995
995
|
isTop: y,
|
|
996
996
|
isRight: m,
|
|
997
|
-
isLeft:
|
|
997
|
+
isLeft: S,
|
|
998
998
|
isBottom: D,
|
|
999
999
|
maxScroll: C,
|
|
1000
1000
|
minScroll: w
|
|
1001
1001
|
} = wr(g), v = Vo(g), I = {
|
|
1002
1002
|
x: Math.min(p === E.Right ? v.right - v.width / 2 : v.right, Math.max(p === E.Right ? v.left : v.left + v.width / 2, d.x)),
|
|
1003
1003
|
y: Math.min(p === E.Down ? v.bottom - v.height / 2 : v.bottom, Math.max(p === E.Down ? v.top : v.top + v.height / 2, d.y))
|
|
1004
|
-
}, _ = p === E.Right && !m || p === E.Left && !
|
|
1004
|
+
}, _ = p === E.Right && !m || p === E.Left && !S, F = p === E.Down && !D || p === E.Up && !y;
|
|
1005
1005
|
if (_ && I.x !== d.x) {
|
|
1006
1006
|
const A = g.scrollLeft + h.x, ne = p === E.Right && A <= C.x || p === E.Left && A >= w.x;
|
|
1007
1007
|
if (ne && !h.y) {
|
|
@@ -1016,7 +1016,7 @@ class mn {
|
|
|
1016
1016
|
behavior: a
|
|
1017
1017
|
});
|
|
1018
1018
|
break;
|
|
1019
|
-
} else if (
|
|
1019
|
+
} else if (F && I.y !== d.y) {
|
|
1020
1020
|
const A = g.scrollTop + h.y, ne = p === E.Down && A <= C.y || p === E.Up && A >= w.y;
|
|
1021
1021
|
if (ne && !h.x) {
|
|
1022
1022
|
g.scrollTo({
|
|
@@ -1032,7 +1032,7 @@ class mn {
|
|
|
1032
1032
|
break;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
this.handleMove(t,
|
|
1035
|
+
this.handleMove(t, He(At(d, this.referenceCoordinates), f));
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
@@ -1088,13 +1088,13 @@ function Bn(e) {
|
|
|
1088
1088
|
class yn {
|
|
1089
1089
|
constructor(t, n, r) {
|
|
1090
1090
|
var o;
|
|
1091
|
-
r === void 0 && (r =
|
|
1091
|
+
r === void 0 && (r = qo(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
1092
1092
|
const {
|
|
1093
1093
|
event: i
|
|
1094
1094
|
} = t, {
|
|
1095
1095
|
target: s
|
|
1096
1096
|
} = i;
|
|
1097
|
-
this.props = t, this.events = n, this.document =
|
|
1097
|
+
this.props = t, this.events = n, this.document = Ze(s), this.documentListeners = new rt(this.document), this.listeners = new rt(r), this.windowListeners = new rt(J(s)), this.initialCoordinates = (o = Tt(i)) != null ? o : ye, 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();
|
|
1098
1098
|
}
|
|
1099
1099
|
attach() {
|
|
1100
1100
|
const {
|
|
@@ -1142,7 +1142,7 @@ class yn {
|
|
|
1142
1142
|
} = this, {
|
|
1143
1143
|
onStart: n
|
|
1144
1144
|
} = this.props;
|
|
1145
|
-
t && (this.activated = !0, this.documentListeners.add(ue.Click,
|
|
1145
|
+
t && (this.activated = !0, this.documentListeners.add(ue.Click, Yo, {
|
|
1146
1146
|
capture: !0
|
|
1147
1147
|
}), this.removeTextSelection(), this.documentListeners.add(ue.SelectionChange, this.removeTextSelection), n(t));
|
|
1148
1148
|
}
|
|
@@ -1163,12 +1163,12 @@ class yn {
|
|
|
1163
1163
|
const c = (n = Tt(t)) != null ? n : ye, l = At(o, c);
|
|
1164
1164
|
if (!r && a) {
|
|
1165
1165
|
if ($n(a)) {
|
|
1166
|
-
if (a.tolerance != null &&
|
|
1166
|
+
if (a.tolerance != null && Gt(l, a.tolerance))
|
|
1167
1167
|
return this.handleCancel();
|
|
1168
|
-
if (
|
|
1168
|
+
if (Gt(l, a.distance))
|
|
1169
1169
|
return this.handleStart();
|
|
1170
1170
|
}
|
|
1171
|
-
if (Bn(a) &&
|
|
1171
|
+
if (Bn(a) && Gt(l, a.tolerance))
|
|
1172
1172
|
return this.handleCancel();
|
|
1173
1173
|
this.handlePending(a, l);
|
|
1174
1174
|
return;
|
|
@@ -1212,7 +1212,7 @@ class wn extends yn {
|
|
|
1212
1212
|
constructor(t) {
|
|
1213
1213
|
const {
|
|
1214
1214
|
event: n
|
|
1215
|
-
} = t, r =
|
|
1215
|
+
} = t, r = Ze(n.target);
|
|
1216
1216
|
super(t, Go, r);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
@@ -1229,7 +1229,7 @@ wn.activators = [{
|
|
|
1229
1229
|
}), !0);
|
|
1230
1230
|
}
|
|
1231
1231
|
}];
|
|
1232
|
-
const
|
|
1232
|
+
const Wo = {
|
|
1233
1233
|
move: {
|
|
1234
1234
|
name: "mousemove"
|
|
1235
1235
|
},
|
|
@@ -1241,12 +1241,12 @@ var an;
|
|
|
1241
1241
|
(function(e) {
|
|
1242
1242
|
e[e.RightClick = 2] = "RightClick";
|
|
1243
1243
|
})(an || (an = {}));
|
|
1244
|
-
class
|
|
1244
|
+
class Jo extends yn {
|
|
1245
1245
|
constructor(t) {
|
|
1246
|
-
super(t,
|
|
1246
|
+
super(t, Wo, Ze(t.event.target));
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
|
|
1249
|
+
Jo.activators = [{
|
|
1250
1250
|
eventName: "onMouseDown",
|
|
1251
1251
|
handler: (e, t) => {
|
|
1252
1252
|
let {
|
|
@@ -1270,7 +1270,7 @@ const Wt = {
|
|
|
1270
1270
|
name: "touchend"
|
|
1271
1271
|
}
|
|
1272
1272
|
};
|
|
1273
|
-
class
|
|
1273
|
+
class Qo extends yn {
|
|
1274
1274
|
constructor(t) {
|
|
1275
1275
|
super(t, Wt);
|
|
1276
1276
|
}
|
|
@@ -1285,7 +1285,7 @@ class Jo extends yn {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
|
|
1288
|
+
Qo.activators = [{
|
|
1289
1289
|
eventName: "onTouchStart",
|
|
1290
1290
|
handler: (e, t) => {
|
|
1291
1291
|
let {
|
|
@@ -1301,18 +1301,18 @@ Jo.activators = [{
|
|
|
1301
1301
|
}), !0);
|
|
1302
1302
|
}
|
|
1303
1303
|
}];
|
|
1304
|
-
var
|
|
1304
|
+
var ot;
|
|
1305
1305
|
(function(e) {
|
|
1306
1306
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1307
|
-
})(
|
|
1307
|
+
})(ot || (ot = {}));
|
|
1308
1308
|
var Mt;
|
|
1309
1309
|
(function(e) {
|
|
1310
1310
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1311
1311
|
})(Mt || (Mt = {}));
|
|
1312
|
-
function
|
|
1312
|
+
function ei(e) {
|
|
1313
1313
|
let {
|
|
1314
1314
|
acceleration: t,
|
|
1315
|
-
activator: n =
|
|
1315
|
+
activator: n = ot.Pointer,
|
|
1316
1316
|
canScroll: r,
|
|
1317
1317
|
draggingRect: o,
|
|
1318
1318
|
enabled: i,
|
|
@@ -1324,34 +1324,34 @@ function Qo(e) {
|
|
|
1324
1324
|
delta: d,
|
|
1325
1325
|
threshold: h
|
|
1326
1326
|
} = e;
|
|
1327
|
-
const f =
|
|
1327
|
+
const f = ni({
|
|
1328
1328
|
delta: d,
|
|
1329
1329
|
disabled: !i
|
|
1330
|
-
}), [b, g] =
|
|
1330
|
+
}), [b, g] = go(), p = k({
|
|
1331
1331
|
x: 0,
|
|
1332
1332
|
y: 0
|
|
1333
1333
|
}), y = k({
|
|
1334
1334
|
x: 0,
|
|
1335
1335
|
y: 0
|
|
1336
|
-
}), m =
|
|
1336
|
+
}), m = M(() => {
|
|
1337
1337
|
switch (n) {
|
|
1338
|
-
case
|
|
1338
|
+
case ot.Pointer:
|
|
1339
1339
|
return c ? {
|
|
1340
1340
|
top: c.y,
|
|
1341
1341
|
bottom: c.y,
|
|
1342
1342
|
left: c.x,
|
|
1343
1343
|
right: c.x
|
|
1344
1344
|
} : null;
|
|
1345
|
-
case
|
|
1345
|
+
case ot.DraggableRect:
|
|
1346
1346
|
return o;
|
|
1347
1347
|
}
|
|
1348
|
-
}, [n, o, c]),
|
|
1349
|
-
const w =
|
|
1348
|
+
}, [n, o, c]), S = k(null), D = $(() => {
|
|
1349
|
+
const w = S.current;
|
|
1350
1350
|
if (!w)
|
|
1351
1351
|
return;
|
|
1352
1352
|
const v = p.current.x * y.current.x, I = p.current.y * y.current.y;
|
|
1353
1353
|
w.scrollBy(v, I);
|
|
1354
|
-
}, []), C =
|
|
1354
|
+
}, []), C = M(() => a === Mt.TreeOrder ? [...l].reverse() : l, [a, l]);
|
|
1355
1355
|
L(
|
|
1356
1356
|
() => {
|
|
1357
1357
|
if (!i || !l.length || !m) {
|
|
@@ -1366,12 +1366,12 @@ function Qo(e) {
|
|
|
1366
1366
|
continue;
|
|
1367
1367
|
const {
|
|
1368
1368
|
direction: _,
|
|
1369
|
-
speed:
|
|
1370
|
-
} =
|
|
1369
|
+
speed: F
|
|
1370
|
+
} = Ho(w, I, m, t, h);
|
|
1371
1371
|
for (const A of ["x", "y"])
|
|
1372
|
-
f[A][_[A]] || (
|
|
1373
|
-
if (
|
|
1374
|
-
g(),
|
|
1372
|
+
f[A][_[A]] || (F[A] = 0, _[A] = 0);
|
|
1373
|
+
if (F.x > 0 || F.y > 0) {
|
|
1374
|
+
g(), S.current = w, b(D, s), p.current = F, y.current = _;
|
|
1375
1375
|
return;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
@@ -1404,7 +1404,7 @@ function Qo(e) {
|
|
|
1404
1404
|
]
|
|
1405
1405
|
);
|
|
1406
1406
|
}
|
|
1407
|
-
const
|
|
1407
|
+
const ti = {
|
|
1408
1408
|
x: {
|
|
1409
1409
|
[X.Backward]: !1,
|
|
1410
1410
|
[X.Forward]: !1
|
|
@@ -1414,7 +1414,7 @@ const ei = {
|
|
|
1414
1414
|
[X.Forward]: !1
|
|
1415
1415
|
}
|
|
1416
1416
|
};
|
|
1417
|
-
function
|
|
1417
|
+
function ni(e) {
|
|
1418
1418
|
let {
|
|
1419
1419
|
delta: t,
|
|
1420
1420
|
disabled: n
|
|
@@ -1422,7 +1422,7 @@ function ti(e) {
|
|
|
1422
1422
|
const r = Ot(t);
|
|
1423
1423
|
return ht((o) => {
|
|
1424
1424
|
if (n || !r || !o)
|
|
1425
|
-
return
|
|
1425
|
+
return ti;
|
|
1426
1426
|
const i = {
|
|
1427
1427
|
x: Math.sign(t.x - r.x),
|
|
1428
1428
|
y: Math.sign(t.y - r.y)
|
|
@@ -1439,15 +1439,15 @@ function ti(e) {
|
|
|
1439
1439
|
};
|
|
1440
1440
|
}, [n, t, r]);
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function ri(e, t) {
|
|
1443
1443
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1444
1444
|
return ht((o) => {
|
|
1445
1445
|
var i;
|
|
1446
1446
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
1447
1447
|
}, [r, t]);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
return
|
|
1449
|
+
function oi(e, t) {
|
|
1450
|
+
return M(() => e.reduce((n, r) => {
|
|
1451
1451
|
const {
|
|
1452
1452
|
sensor: o
|
|
1453
1453
|
} = r, i = o.activators.map((s) => ({
|
|
@@ -1457,16 +1457,16 @@ function ri(e, t) {
|
|
|
1457
1457
|
return [...n, ...i];
|
|
1458
1458
|
}, []), [e, t]);
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1460
|
+
var Ve;
|
|
1461
1461
|
(function(e) {
|
|
1462
1462
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1463
|
-
})(
|
|
1463
|
+
})(Ve || (Ve = {}));
|
|
1464
1464
|
var cn;
|
|
1465
1465
|
(function(e) {
|
|
1466
1466
|
e.Optimized = "optimized";
|
|
1467
1467
|
})(cn || (cn = {}));
|
|
1468
1468
|
const zn = /* @__PURE__ */ new Map();
|
|
1469
|
-
function
|
|
1469
|
+
function ii(e, t) {
|
|
1470
1470
|
let {
|
|
1471
1471
|
dragging: n,
|
|
1472
1472
|
dependencies: r,
|
|
@@ -1476,22 +1476,22 @@ function oi(e, t) {
|
|
|
1476
1476
|
frequency: a,
|
|
1477
1477
|
measure: c,
|
|
1478
1478
|
strategy: l
|
|
1479
|
-
} = o, u = k(e), d = p(), h =
|
|
1480
|
-
y === void 0 && (y = []), !h.current && s((m) => m === null ? y : m.concat(y.filter((
|
|
1479
|
+
} = o, u = k(e), d = p(), h = lt(d), f = $(function(y) {
|
|
1480
|
+
y === void 0 && (y = []), !h.current && s((m) => m === null ? y : m.concat(y.filter((S) => !m.includes(S))));
|
|
1481
1481
|
}, [h]), b = k(null), g = ht((y) => {
|
|
1482
1482
|
if (d && !n)
|
|
1483
1483
|
return zn;
|
|
1484
1484
|
if (!y || y === zn || u.current !== e || i != null) {
|
|
1485
1485
|
const m = /* @__PURE__ */ new Map();
|
|
1486
|
-
for (let
|
|
1487
|
-
if (!
|
|
1486
|
+
for (let S of e) {
|
|
1487
|
+
if (!S)
|
|
1488
1488
|
continue;
|
|
1489
|
-
if (i && i.length > 0 && !i.includes(
|
|
1490
|
-
m.set(
|
|
1489
|
+
if (i && i.length > 0 && !i.includes(S.id) && S.rect.current) {
|
|
1490
|
+
m.set(S.id, S.rect.current);
|
|
1491
1491
|
continue;
|
|
1492
1492
|
}
|
|
1493
|
-
const D =
|
|
1494
|
-
|
|
1493
|
+
const D = S.node.current, C = D ? new bn(c(D), D) : null;
|
|
1494
|
+
S.rect.current = C, C && m.set(S.id, C);
|
|
1495
1495
|
}
|
|
1496
1496
|
return m;
|
|
1497
1497
|
}
|
|
@@ -1526,27 +1526,27 @@ function oi(e, t) {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
function p() {
|
|
1528
1528
|
switch (l) {
|
|
1529
|
-
case
|
|
1529
|
+
case Ve.Always:
|
|
1530
1530
|
return !1;
|
|
1531
|
-
case
|
|
1531
|
+
case Ve.BeforeDragging:
|
|
1532
1532
|
return n;
|
|
1533
1533
|
default:
|
|
1534
1534
|
return !n;
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function xn(e, t) {
|
|
1539
1539
|
return ht((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1541
|
+
function si(e, t) {
|
|
1542
|
+
return xn(e, t);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function ai(e) {
|
|
1545
1545
|
let {
|
|
1546
1546
|
callback: t,
|
|
1547
1547
|
disabled: n
|
|
1548
1548
|
} = e;
|
|
1549
|
-
const r = kt(t), o =
|
|
1549
|
+
const r = kt(t), o = M(() => {
|
|
1550
1550
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1551
1551
|
return;
|
|
1552
1552
|
const {
|
|
@@ -1561,7 +1561,7 @@ function $t(e) {
|
|
|
1561
1561
|
callback: t,
|
|
1562
1562
|
disabled: n
|
|
1563
1563
|
} = e;
|
|
1564
|
-
const r = kt(t), o =
|
|
1564
|
+
const r = kt(t), o = M(
|
|
1565
1565
|
() => {
|
|
1566
1566
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1567
1567
|
return;
|
|
@@ -1575,11 +1575,11 @@ function $t(e) {
|
|
|
1575
1575
|
);
|
|
1576
1576
|
return L(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function ci(e) {
|
|
1579
1579
|
return new bn(Ge(e), e);
|
|
1580
1580
|
}
|
|
1581
1581
|
function Fn(e, t, n) {
|
|
1582
|
-
t === void 0 && (t =
|
|
1582
|
+
t === void 0 && (t = ci);
|
|
1583
1583
|
const [r, o] = U(null);
|
|
1584
1584
|
function i() {
|
|
1585
1585
|
o((c) => {
|
|
@@ -1593,7 +1593,7 @@ function Fn(e, t, n) {
|
|
|
1593
1593
|
return JSON.stringify(c) === JSON.stringify(u) ? c : u;
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
|
-
const s =
|
|
1596
|
+
const s = ai({
|
|
1597
1597
|
callback(c) {
|
|
1598
1598
|
if (e)
|
|
1599
1599
|
for (const l of c) {
|
|
@@ -1617,20 +1617,20 @@ function Fn(e, t, n) {
|
|
|
1617
1617
|
})) : (a == null || a.disconnect(), s == null || s.disconnect());
|
|
1618
1618
|
}, [e]), r;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const t =
|
|
1620
|
+
function li(e) {
|
|
1621
|
+
const t = xn(e);
|
|
1622
1622
|
return hr(e, t);
|
|
1623
1623
|
}
|
|
1624
1624
|
const jn = [];
|
|
1625
|
-
function
|
|
1625
|
+
function ui(e) {
|
|
1626
1626
|
const t = k(e), n = ht((r) => e ? r && r !== jn && e && t.current && e.parentNode === t.current.parentNode ? r : vn(e) : jn, [e]);
|
|
1627
1627
|
return L(() => {
|
|
1628
1628
|
t.current = e;
|
|
1629
1629
|
}, [e]), n;
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function di(e) {
|
|
1632
1632
|
const [t, n] = U(null), r = k(e), o = $((i) => {
|
|
1633
|
-
const s =
|
|
1633
|
+
const s = Zt(i.target);
|
|
1634
1634
|
s && n((a) => a ? (a.set(s, sn(s)), new Map(a)) : null);
|
|
1635
1635
|
}, []);
|
|
1636
1636
|
return L(() => {
|
|
@@ -1638,7 +1638,7 @@ function ui(e) {
|
|
|
1638
1638
|
if (e !== i) {
|
|
1639
1639
|
s(i);
|
|
1640
1640
|
const a = e.map((c) => {
|
|
1641
|
-
const l =
|
|
1641
|
+
const l = Zt(c);
|
|
1642
1642
|
return l ? (l.addEventListener("scroll", o, {
|
|
1643
1643
|
passive: !0
|
|
1644
1644
|
}), [l, sn(l)]) : null;
|
|
@@ -1650,13 +1650,13 @@ function ui(e) {
|
|
|
1650
1650
|
};
|
|
1651
1651
|
function s(a) {
|
|
1652
1652
|
a.forEach((c) => {
|
|
1653
|
-
const l =
|
|
1653
|
+
const l = Zt(c);
|
|
1654
1654
|
l == null || l.removeEventListener("scroll", o);
|
|
1655
1655
|
});
|
|
1656
1656
|
}
|
|
1657
|
-
}, [o, e]),
|
|
1657
|
+
}, [o, e]), M(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => He(i, s), ye) : xr(e) : ye, [e, t]);
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function Hn(e, t) {
|
|
1660
1660
|
t === void 0 && (t = []);
|
|
1661
1661
|
const n = k(null);
|
|
1662
1662
|
return L(
|
|
@@ -1670,7 +1670,7 @@ function Vn(e, t) {
|
|
|
1670
1670
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
1671
1671
|
}, [e]), n.current ? At(e, n.current) : ye;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function fi(e) {
|
|
1674
1674
|
L(
|
|
1675
1675
|
() => {
|
|
1676
1676
|
if (!Lt)
|
|
@@ -1696,8 +1696,8 @@ function di(e) {
|
|
|
1696
1696
|
})
|
|
1697
1697
|
);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
return
|
|
1699
|
+
function gi(e, t) {
|
|
1700
|
+
return M(() => e.reduce((n, r) => {
|
|
1701
1701
|
let {
|
|
1702
1702
|
eventName: o,
|
|
1703
1703
|
handler: i
|
|
@@ -1708,14 +1708,14 @@ function fi(e, t) {
|
|
|
1708
1708
|
}, {}), [e, t]);
|
|
1709
1709
|
}
|
|
1710
1710
|
function Dr(e) {
|
|
1711
|
-
return
|
|
1711
|
+
return M(() => e ? Bo(e) : null, [e]);
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1714
|
-
function
|
|
1713
|
+
const Vn = [];
|
|
1714
|
+
function hi(e, t) {
|
|
1715
1715
|
t === void 0 && (t = Ge);
|
|
1716
|
-
const [n] = e, r = Dr(n ? J(n) : null), [o, i] = U(
|
|
1716
|
+
const [n] = e, r = Dr(n ? J(n) : null), [o, i] = U(Vn);
|
|
1717
1717
|
function s() {
|
|
1718
|
-
i(() => e.length ? e.map((c) => yr(c) ? r : new bn(t(c), c)) :
|
|
1718
|
+
i(() => e.length ? e.map((c) => yr(c) ? r : new bn(t(c), c)) : Vn);
|
|
1719
1719
|
}
|
|
1720
1720
|
const a = $t({
|
|
1721
1721
|
callback: s
|
|
@@ -1732,7 +1732,7 @@ function Rr(e) {
|
|
|
1732
1732
|
const t = e.children[0];
|
|
1733
1733
|
return gt(t) ? t : e;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function pi(e) {
|
|
1736
1736
|
let {
|
|
1737
1737
|
measure: t
|
|
1738
1738
|
} = e;
|
|
@@ -1757,34 +1757,34 @@ function hi(e) {
|
|
|
1757
1757
|
const u = Rr(l);
|
|
1758
1758
|
i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
|
|
1759
1759
|
}, [t, i]), [a, c] = It(s);
|
|
1760
|
-
return
|
|
1760
|
+
return M(() => ({
|
|
1761
1761
|
nodeRef: a,
|
|
1762
1762
|
rect: n,
|
|
1763
1763
|
setRef: c
|
|
1764
1764
|
}), [n, a, c]);
|
|
1765
1765
|
}
|
|
1766
|
-
const
|
|
1766
|
+
const vi = [{
|
|
1767
1767
|
sensor: wn,
|
|
1768
1768
|
options: {}
|
|
1769
1769
|
}, {
|
|
1770
1770
|
sensor: mn,
|
|
1771
1771
|
options: {}
|
|
1772
|
-
}],
|
|
1772
|
+
}], bi = {
|
|
1773
1773
|
current: {}
|
|
1774
|
-
},
|
|
1774
|
+
}, St = {
|
|
1775
1775
|
draggable: {
|
|
1776
1776
|
measure: kn
|
|
1777
1777
|
},
|
|
1778
1778
|
droppable: {
|
|
1779
1779
|
measure: kn,
|
|
1780
|
-
strategy:
|
|
1780
|
+
strategy: Ve.WhileDragging,
|
|
1781
1781
|
frequency: cn.Optimized
|
|
1782
1782
|
},
|
|
1783
1783
|
dragOverlay: {
|
|
1784
1784
|
measure: Ge
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
|
-
class
|
|
1787
|
+
class it extends Map {
|
|
1788
1788
|
get(t) {
|
|
1789
1789
|
var n;
|
|
1790
1790
|
return t != null && (n = super.get(t)) != null ? n : void 0;
|
|
@@ -1805,7 +1805,7 @@ class ot extends Map {
|
|
|
1805
1805
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
|
-
const
|
|
1808
|
+
const mi = {
|
|
1809
1809
|
activatorEvent: null,
|
|
1810
1810
|
active: null,
|
|
1811
1811
|
activeNode: null,
|
|
@@ -1814,7 +1814,7 @@ const bi = {
|
|
|
1814
1814
|
containerNodeRect: null,
|
|
1815
1815
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1816
1816
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
1817
|
-
droppableContainers: /* @__PURE__ */ new
|
|
1817
|
+
droppableContainers: /* @__PURE__ */ new it(),
|
|
1818
1818
|
over: null,
|
|
1819
1819
|
dragOverlay: {
|
|
1820
1820
|
nodeRef: {
|
|
@@ -1825,7 +1825,7 @@ const bi = {
|
|
|
1825
1825
|
},
|
|
1826
1826
|
scrollableAncestors: [],
|
|
1827
1827
|
scrollableAncestorRects: [],
|
|
1828
|
-
measuringConfiguration:
|
|
1828
|
+
measuringConfiguration: St,
|
|
1829
1829
|
measureDroppableContainers: Nt,
|
|
1830
1830
|
windowRect: null,
|
|
1831
1831
|
measuringScheduled: !1
|
|
@@ -1841,8 +1841,8 @@ const bi = {
|
|
|
1841
1841
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1842
1842
|
over: null,
|
|
1843
1843
|
measureDroppableContainers: Nt
|
|
1844
|
-
}, vt = /* @__PURE__ */
|
|
1845
|
-
function
|
|
1844
|
+
}, vt = /* @__PURE__ */ qe(Er), Ir = /* @__PURE__ */ qe(mi);
|
|
1845
|
+
function yi() {
|
|
1846
1846
|
return {
|
|
1847
1847
|
draggable: {
|
|
1848
1848
|
active: null,
|
|
@@ -1857,11 +1857,11 @@ function mi() {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
},
|
|
1859
1859
|
droppable: {
|
|
1860
|
-
containers: new
|
|
1860
|
+
containers: new it()
|
|
1861
1861
|
}
|
|
1862
1862
|
};
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1864
|
+
function wi(e, t) {
|
|
1865
1865
|
switch (t.type) {
|
|
1866
1866
|
case K.DragStart:
|
|
1867
1867
|
return {
|
|
@@ -1905,7 +1905,7 @@ function yi(e, t) {
|
|
|
1905
1905
|
element: n
|
|
1906
1906
|
} = t, {
|
|
1907
1907
|
id: r
|
|
1908
|
-
} = n, o = new
|
|
1908
|
+
} = n, o = new it(e.droppable.containers);
|
|
1909
1909
|
return o.set(r, n), {
|
|
1910
1910
|
...e,
|
|
1911
1911
|
droppable: {
|
|
@@ -1922,7 +1922,7 @@ function yi(e, t) {
|
|
|
1922
1922
|
} = t, i = e.droppable.containers.get(n);
|
|
1923
1923
|
if (!i || r !== i.key)
|
|
1924
1924
|
return e;
|
|
1925
|
-
const s = new
|
|
1925
|
+
const s = new it(e.droppable.containers);
|
|
1926
1926
|
return s.set(n, {
|
|
1927
1927
|
...i,
|
|
1928
1928
|
disabled: o
|
|
@@ -1941,7 +1941,7 @@ function yi(e, t) {
|
|
|
1941
1941
|
} = t, o = e.droppable.containers.get(n);
|
|
1942
1942
|
if (!o || r !== o.key)
|
|
1943
1943
|
return e;
|
|
1944
|
-
const i = new
|
|
1944
|
+
const i = new it(e.droppable.containers);
|
|
1945
1945
|
return i.delete(n), {
|
|
1946
1946
|
...e,
|
|
1947
1947
|
droppable: {
|
|
@@ -1954,7 +1954,7 @@ function yi(e, t) {
|
|
|
1954
1954
|
return e;
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function xi(e) {
|
|
1958
1958
|
let {
|
|
1959
1959
|
disabled: t
|
|
1960
1960
|
} = e;
|
|
@@ -1980,7 +1980,7 @@ function wi(e) {
|
|
|
1980
1980
|
for (const u of [c.current, l.current]) {
|
|
1981
1981
|
if (!u)
|
|
1982
1982
|
continue;
|
|
1983
|
-
const d =
|
|
1983
|
+
const d = vo(u);
|
|
1984
1984
|
if (d) {
|
|
1985
1985
|
d.focus();
|
|
1986
1986
|
break;
|
|
@@ -2001,18 +2001,18 @@ function Or(e, t) {
|
|
|
2001
2001
|
}), n) : n;
|
|
2002
2002
|
}
|
|
2003
2003
|
function Si(e) {
|
|
2004
|
-
return
|
|
2004
|
+
return M(
|
|
2005
2005
|
() => ({
|
|
2006
2006
|
draggable: {
|
|
2007
|
-
...
|
|
2007
|
+
...St.draggable,
|
|
2008
2008
|
...e == null ? void 0 : e.draggable
|
|
2009
2009
|
},
|
|
2010
2010
|
droppable: {
|
|
2011
|
-
...
|
|
2011
|
+
...St.droppable,
|
|
2012
2012
|
...e == null ? void 0 : e.droppable
|
|
2013
2013
|
},
|
|
2014
2014
|
dragOverlay: {
|
|
2015
|
-
...
|
|
2015
|
+
...St.dragOverlay,
|
|
2016
2016
|
...e == null ? void 0 : e.dragOverlay
|
|
2017
2017
|
}
|
|
2018
2018
|
}),
|
|
@@ -2020,7 +2020,7 @@ function Si(e) {
|
|
|
2020
2020
|
[e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
|
|
2021
2021
|
);
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Ci(e) {
|
|
2024
2024
|
let {
|
|
2025
2025
|
activeNode: t,
|
|
2026
2026
|
measure: n,
|
|
@@ -2054,7 +2054,7 @@ function xi(e) {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
}, [t, s, a, r, n]);
|
|
2056
2056
|
}
|
|
2057
|
-
const Bt = /* @__PURE__ */
|
|
2057
|
+
const Bt = /* @__PURE__ */ qe({
|
|
2058
2058
|
...ye,
|
|
2059
2059
|
scaleX: 1,
|
|
2060
2060
|
scaleY: 1
|
|
@@ -2063,71 +2063,71 @@ var Me;
|
|
|
2063
2063
|
(function(e) {
|
|
2064
2064
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2065
2065
|
})(Me || (Me = {}));
|
|
2066
|
-
const
|
|
2066
|
+
const Di = /* @__PURE__ */ gn(function(t) {
|
|
2067
2067
|
var n, r, o, i;
|
|
2068
2068
|
let {
|
|
2069
2069
|
id: s,
|
|
2070
2070
|
accessibility: a,
|
|
2071
2071
|
autoScroll: c = !0,
|
|
2072
2072
|
children: l,
|
|
2073
|
-
sensors: u =
|
|
2074
|
-
collisionDetection: d =
|
|
2073
|
+
sensors: u = vi,
|
|
2074
|
+
collisionDetection: d = Mo,
|
|
2075
2075
|
measuring: h,
|
|
2076
2076
|
modifiers: f,
|
|
2077
2077
|
...b
|
|
2078
2078
|
} = t;
|
|
2079
|
-
const g =
|
|
2079
|
+
const g = lo(wi, void 0, yi), [p, y] = g, [m, S] = So(), [D, C] = U(Me.Uninitialized), w = D === Me.Initialized, {
|
|
2080
2080
|
draggable: {
|
|
2081
2081
|
active: v,
|
|
2082
2082
|
nodes: I,
|
|
2083
2083
|
translate: _
|
|
2084
2084
|
},
|
|
2085
2085
|
droppable: {
|
|
2086
|
-
containers:
|
|
2086
|
+
containers: F
|
|
2087
2087
|
}
|
|
2088
2088
|
} = p, A = v != null ? I.get(v) : null, ne = k({
|
|
2089
2089
|
initial: null,
|
|
2090
2090
|
translated: null
|
|
2091
|
-
}), re =
|
|
2092
|
-
var
|
|
2091
|
+
}), re = M(() => {
|
|
2092
|
+
var Z;
|
|
2093
2093
|
return v != null ? {
|
|
2094
2094
|
id: v,
|
|
2095
2095
|
// It's possible for the active node to unmount while dragging
|
|
2096
|
-
data: (
|
|
2096
|
+
data: (Z = A == null ? void 0 : A.data) != null ? Z : bi,
|
|
2097
2097
|
rect: ne
|
|
2098
2098
|
} : null;
|
|
2099
|
-
}, [v, A]), ce = k(null), [we, Pe] = U(null), [W, $e] = U(null), fe =
|
|
2099
|
+
}, [v, A]), ce = k(null), [we, Pe] = U(null), [W, $e] = U(null), fe = lt(b, Object.values(b)), De = pt("DndDescribedBy", s), Je = M(() => F.getEnabled(), [F]), x = Si(h), {
|
|
2100
2100
|
droppableRects: R,
|
|
2101
2101
|
measureDroppableContainers: B,
|
|
2102
2102
|
measuringScheduled: P
|
|
2103
|
-
} =
|
|
2103
|
+
} = ii(Je, {
|
|
2104
2104
|
dragging: w,
|
|
2105
2105
|
dependencies: [_.x, _.y],
|
|
2106
|
-
config:
|
|
2107
|
-
}),
|
|
2108
|
-
|
|
2106
|
+
config: x.droppable
|
|
2107
|
+
}), N = ri(I, v), Q = M(() => W ? Tt(W) : null, [W]), V = ao(), Y = si(N, x.draggable.measure);
|
|
2108
|
+
Ci({
|
|
2109
2109
|
activeNode: v != null ? I.get(v) : null,
|
|
2110
|
-
config:
|
|
2110
|
+
config: V.layoutShiftCompensation,
|
|
2111
2111
|
initialRect: Y,
|
|
2112
|
-
measure:
|
|
2112
|
+
measure: x.draggable.measure
|
|
2113
2113
|
});
|
|
2114
|
-
const O = Fn(
|
|
2114
|
+
const O = Fn(N, x.draggable.measure, Y), ge = Fn(N ? N.parentElement : null), ee = k({
|
|
2115
2115
|
activatorEvent: null,
|
|
2116
2116
|
active: null,
|
|
2117
|
-
activeNode:
|
|
2117
|
+
activeNode: N,
|
|
2118
2118
|
collisionRect: null,
|
|
2119
2119
|
collisions: null,
|
|
2120
2120
|
droppableRects: R,
|
|
2121
2121
|
draggableNodes: I,
|
|
2122
2122
|
draggingNode: null,
|
|
2123
2123
|
draggingNodeRect: null,
|
|
2124
|
-
droppableContainers:
|
|
2124
|
+
droppableContainers: F,
|
|
2125
2125
|
over: null,
|
|
2126
2126
|
scrollableAncestors: [],
|
|
2127
2127
|
scrollAdjustedTranslate: null
|
|
2128
|
-
}),
|
|
2129
|
-
measure:
|
|
2130
|
-
}), Ee = (r = he.nodeRef.current) != null ? r :
|
|
2128
|
+
}), j = F.getNodeFor((n = ee.current.over) == null ? void 0 : n.id), he = pi({
|
|
2129
|
+
measure: x.dragOverlay.measure
|
|
2130
|
+
}), Ee = (r = he.nodeRef.current) != null ? r : N, Be = w ? (o = he.rect) != null ? o : O : null, Cn = !!(he.nodeRef.current && he.rect), Dn = li(Cn ? null : O), Kt = Dr(Ee ? J(Ee) : null), Ie = ui(w ? j ?? N : null), bt = hi(Ie), mt = Or(f, {
|
|
2131
2131
|
transform: {
|
|
2132
2132
|
x: _.x - Dn.x,
|
|
2133
2133
|
y: _.y - Dn.y,
|
|
@@ -2144,14 +2144,14 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2144
2144
|
scrollableAncestors: Ie,
|
|
2145
2145
|
scrollableAncestorRects: bt,
|
|
2146
2146
|
windowRect: Kt
|
|
2147
|
-
}), Rn = Q ?
|
|
2147
|
+
}), Rn = Q ? He(Q, _) : null, En = di(Ie), eo = Hn(En), to = Hn(En, [O]), ze = He(mt, eo), Fe = Be ? ko(Be, mt) : null, Qe = re && Fe ? d({
|
|
2148
2148
|
active: re,
|
|
2149
2149
|
collisionRect: Fe,
|
|
2150
2150
|
droppableRects: R,
|
|
2151
|
-
droppableContainers:
|
|
2151
|
+
droppableContainers: Je,
|
|
2152
2152
|
pointerCoordinates: Rn
|
|
2153
|
-
}) : null, In = gr(
|
|
2154
|
-
(
|
|
2153
|
+
}) : null, In = gr(Qe, "id"), [Oe, On] = U(null), no = Cn ? mt : He(mt, to), ro = _o(no, (i = Oe == null ? void 0 : Oe.rect) != null ? i : null, O), Xt = k(null), An = $(
|
|
2154
|
+
(Z, oe) => {
|
|
2155
2155
|
let {
|
|
2156
2156
|
sensor: ie,
|
|
2157
2157
|
options: Ae
|
|
@@ -2161,7 +2161,7 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2161
2161
|
const le = I.get(ce.current);
|
|
2162
2162
|
if (!le)
|
|
2163
2163
|
return;
|
|
2164
|
-
const se =
|
|
2164
|
+
const se = Z.nativeEvent, xe = new ie({
|
|
2165
2165
|
active: ce.current,
|
|
2166
2166
|
activeNode: le,
|
|
2167
2167
|
event: se,
|
|
@@ -2173,27 +2173,27 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2173
2173
|
if (!I.get(q))
|
|
2174
2174
|
return;
|
|
2175
2175
|
const {
|
|
2176
|
-
onDragAbort:
|
|
2176
|
+
onDragAbort: Se
|
|
2177
2177
|
} = fe.current, Re = {
|
|
2178
2178
|
id: q
|
|
2179
2179
|
};
|
|
2180
|
-
|
|
2180
|
+
Se == null || Se(Re), m({
|
|
2181
2181
|
type: "onDragAbort",
|
|
2182
2182
|
event: Re
|
|
2183
2183
|
});
|
|
2184
2184
|
},
|
|
2185
|
-
onPending(q, Te,
|
|
2185
|
+
onPending(q, Te, Se, Re) {
|
|
2186
2186
|
if (!I.get(q))
|
|
2187
2187
|
return;
|
|
2188
2188
|
const {
|
|
2189
|
-
onDragPending:
|
|
2189
|
+
onDragPending: tt
|
|
2190
2190
|
} = fe.current, Ne = {
|
|
2191
2191
|
id: q,
|
|
2192
2192
|
constraint: Te,
|
|
2193
|
-
initialCoordinates:
|
|
2193
|
+
initialCoordinates: Se,
|
|
2194
2194
|
offset: Re
|
|
2195
2195
|
};
|
|
2196
|
-
|
|
2196
|
+
tt == null || tt(Ne), m({
|
|
2197
2197
|
type: "onDragPending",
|
|
2198
2198
|
event: Ne
|
|
2199
2199
|
});
|
|
@@ -2202,27 +2202,27 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2202
2202
|
const Te = ce.current;
|
|
2203
2203
|
if (Te == null)
|
|
2204
2204
|
return;
|
|
2205
|
-
const
|
|
2206
|
-
if (!
|
|
2205
|
+
const Se = I.get(Te);
|
|
2206
|
+
if (!Se)
|
|
2207
2207
|
return;
|
|
2208
2208
|
const {
|
|
2209
2209
|
onDragStart: Re
|
|
2210
|
-
} = fe.current,
|
|
2210
|
+
} = fe.current, et = {
|
|
2211
2211
|
activatorEvent: se,
|
|
2212
2212
|
active: {
|
|
2213
2213
|
id: Te,
|
|
2214
|
-
data:
|
|
2214
|
+
data: Se.data,
|
|
2215
2215
|
rect: ne
|
|
2216
2216
|
}
|
|
2217
2217
|
};
|
|
2218
2218
|
yt(() => {
|
|
2219
|
-
Re == null || Re(
|
|
2219
|
+
Re == null || Re(et), C(Me.Initializing), y({
|
|
2220
2220
|
type: K.DragStart,
|
|
2221
2221
|
initialCoordinates: q,
|
|
2222
2222
|
active: Te
|
|
2223
2223
|
}), m({
|
|
2224
2224
|
type: "onDragStart",
|
|
2225
|
-
event:
|
|
2225
|
+
event: et
|
|
2226
2226
|
}), Pe(Xt.current), $e(se);
|
|
2227
2227
|
});
|
|
2228
2228
|
},
|
|
@@ -2235,37 +2235,37 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2235
2235
|
onEnd: je(K.DragEnd),
|
|
2236
2236
|
onCancel: je(K.DragCancel)
|
|
2237
2237
|
});
|
|
2238
|
-
Xt.current =
|
|
2238
|
+
Xt.current = xe;
|
|
2239
2239
|
function je(q) {
|
|
2240
2240
|
return async function() {
|
|
2241
2241
|
const {
|
|
2242
|
-
active:
|
|
2242
|
+
active: Se,
|
|
2243
2243
|
collisions: Re,
|
|
2244
|
-
over:
|
|
2245
|
-
scrollAdjustedTranslate:
|
|
2244
|
+
over: et,
|
|
2245
|
+
scrollAdjustedTranslate: tt
|
|
2246
2246
|
} = ee.current;
|
|
2247
2247
|
let Ne = null;
|
|
2248
|
-
if (
|
|
2248
|
+
if (Se && tt) {
|
|
2249
2249
|
const {
|
|
2250
|
-
cancelDrop:
|
|
2250
|
+
cancelDrop: nt
|
|
2251
2251
|
} = fe.current;
|
|
2252
2252
|
Ne = {
|
|
2253
2253
|
activatorEvent: se,
|
|
2254
|
-
active:
|
|
2254
|
+
active: Se,
|
|
2255
2255
|
collisions: Re,
|
|
2256
|
-
delta:
|
|
2257
|
-
over:
|
|
2258
|
-
}, q === K.DragEnd && typeof
|
|
2256
|
+
delta: tt,
|
|
2257
|
+
over: et
|
|
2258
|
+
}, q === K.DragEnd && typeof nt == "function" && await Promise.resolve(nt(Ne)) && (q = K.DragCancel);
|
|
2259
2259
|
}
|
|
2260
2260
|
ce.current = null, yt(() => {
|
|
2261
2261
|
y({
|
|
2262
2262
|
type: q
|
|
2263
2263
|
}), C(Me.Uninitialized), On(null), Pe(null), $e(null), Xt.current = null;
|
|
2264
|
-
const
|
|
2264
|
+
const nt = q === K.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2265
2265
|
if (Ne) {
|
|
2266
|
-
const qt = fe.current[
|
|
2266
|
+
const qt = fe.current[nt];
|
|
2267
2267
|
qt == null || qt(Ne), m({
|
|
2268
|
-
type:
|
|
2268
|
+
type: nt,
|
|
2269
2269
|
event: Ne
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
@@ -2275,7 +2275,7 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2275
2275
|
},
|
|
2276
2276
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2277
2277
|
[I]
|
|
2278
|
-
),
|
|
2278
|
+
), oo = $((Z, oe) => (ie, Ae) => {
|
|
2279
2279
|
const le = ie.nativeEvent, se = I.get(Ae);
|
|
2280
2280
|
if (
|
|
2281
2281
|
// Another sensor is already instantiating
|
|
@@ -2284,19 +2284,19 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2284
2284
|
le.dndKit || le.defaultPrevented
|
|
2285
2285
|
)
|
|
2286
2286
|
return;
|
|
2287
|
-
const
|
|
2287
|
+
const xe = {
|
|
2288
2288
|
active: se
|
|
2289
2289
|
};
|
|
2290
|
-
|
|
2290
|
+
Z(ie, oe.options, xe) === !0 && (le.dndKit = {
|
|
2291
2291
|
capturedBy: oe.sensor
|
|
2292
2292
|
}, ce.current = Ae, An(ie, oe));
|
|
2293
|
-
}, [I, An]), Tn =
|
|
2294
|
-
|
|
2293
|
+
}, [I, An]), Tn = oi(u, oo);
|
|
2294
|
+
fi(u), me(() => {
|
|
2295
2295
|
O && D === Me.Initializing && C(Me.Initialized);
|
|
2296
2296
|
}, [O, D]), L(
|
|
2297
2297
|
() => {
|
|
2298
2298
|
const {
|
|
2299
|
-
onDragMove:
|
|
2299
|
+
onDragMove: Z
|
|
2300
2300
|
} = fe.current, {
|
|
2301
2301
|
active: oe,
|
|
2302
2302
|
activatorEvent: ie,
|
|
@@ -2316,7 +2316,7 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2316
2316
|
over: le
|
|
2317
2317
|
};
|
|
2318
2318
|
yt(() => {
|
|
2319
|
-
|
|
2319
|
+
Z == null || Z(se), m({
|
|
2320
2320
|
type: "onDragMove",
|
|
2321
2321
|
event: se
|
|
2322
2322
|
});
|
|
@@ -2327,23 +2327,23 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2327
2327
|
), L(
|
|
2328
2328
|
() => {
|
|
2329
2329
|
const {
|
|
2330
|
-
active:
|
|
2330
|
+
active: Z,
|
|
2331
2331
|
activatorEvent: oe,
|
|
2332
2332
|
collisions: ie,
|
|
2333
2333
|
droppableContainers: Ae,
|
|
2334
2334
|
scrollAdjustedTranslate: le
|
|
2335
2335
|
} = ee.current;
|
|
2336
|
-
if (!
|
|
2336
|
+
if (!Z || ce.current == null || !oe || !le)
|
|
2337
2337
|
return;
|
|
2338
2338
|
const {
|
|
2339
2339
|
onDragOver: se
|
|
2340
|
-
} = fe.current,
|
|
2341
|
-
id:
|
|
2342
|
-
rect:
|
|
2343
|
-
data:
|
|
2344
|
-
disabled:
|
|
2340
|
+
} = fe.current, xe = Ae.get(In), je = xe && xe.rect.current ? {
|
|
2341
|
+
id: xe.id,
|
|
2342
|
+
rect: xe.rect.current,
|
|
2343
|
+
data: xe.data,
|
|
2344
|
+
disabled: xe.disabled
|
|
2345
2345
|
} : null, q = {
|
|
2346
|
-
active:
|
|
2346
|
+
active: Z,
|
|
2347
2347
|
activatorEvent: oe,
|
|
2348
2348
|
collisions: ie,
|
|
2349
2349
|
delta: {
|
|
@@ -2365,14 +2365,14 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2365
2365
|
ee.current = {
|
|
2366
2366
|
activatorEvent: W,
|
|
2367
2367
|
active: re,
|
|
2368
|
-
activeNode:
|
|
2368
|
+
activeNode: N,
|
|
2369
2369
|
collisionRect: Fe,
|
|
2370
|
-
collisions:
|
|
2370
|
+
collisions: Qe,
|
|
2371
2371
|
droppableRects: R,
|
|
2372
2372
|
draggableNodes: I,
|
|
2373
2373
|
draggingNode: Ee,
|
|
2374
2374
|
draggingNodeRect: Be,
|
|
2375
|
-
droppableContainers:
|
|
2375
|
+
droppableContainers: F,
|
|
2376
2376
|
over: Oe,
|
|
2377
2377
|
scrollableAncestors: Ie,
|
|
2378
2378
|
scrollAdjustedTranslate: ze
|
|
@@ -2380,33 +2380,33 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2380
2380
|
initial: Be,
|
|
2381
2381
|
translated: Fe
|
|
2382
2382
|
};
|
|
2383
|
-
}, [re,
|
|
2384
|
-
...
|
|
2383
|
+
}, [re, N, Qe, Fe, I, Ee, Be, R, F, Oe, Ie, ze]), ei({
|
|
2384
|
+
...V,
|
|
2385
2385
|
delta: _,
|
|
2386
2386
|
draggingRect: Fe,
|
|
2387
2387
|
pointerCoordinates: Rn,
|
|
2388
2388
|
scrollableAncestors: Ie,
|
|
2389
2389
|
scrollableAncestorRects: bt
|
|
2390
2390
|
});
|
|
2391
|
-
const
|
|
2391
|
+
const io = M(() => ({
|
|
2392
2392
|
active: re,
|
|
2393
|
-
activeNode:
|
|
2393
|
+
activeNode: N,
|
|
2394
2394
|
activeNodeRect: O,
|
|
2395
2395
|
activatorEvent: W,
|
|
2396
|
-
collisions:
|
|
2396
|
+
collisions: Qe,
|
|
2397
2397
|
containerNodeRect: ge,
|
|
2398
2398
|
dragOverlay: he,
|
|
2399
2399
|
draggableNodes: I,
|
|
2400
|
-
droppableContainers:
|
|
2400
|
+
droppableContainers: F,
|
|
2401
2401
|
droppableRects: R,
|
|
2402
2402
|
over: Oe,
|
|
2403
2403
|
measureDroppableContainers: B,
|
|
2404
2404
|
scrollableAncestors: Ie,
|
|
2405
2405
|
scrollableAncestorRects: bt,
|
|
2406
|
-
measuringConfiguration:
|
|
2406
|
+
measuringConfiguration: x,
|
|
2407
2407
|
measuringScheduled: P,
|
|
2408
2408
|
windowRect: Kt
|
|
2409
|
-
}), [re,
|
|
2409
|
+
}), [re, N, O, W, Qe, ge, he, I, F, R, Oe, B, Ie, bt, x, P, Kt]), so = M(() => ({
|
|
2410
2410
|
activatorEvent: W,
|
|
2411
2411
|
activators: Tn,
|
|
2412
2412
|
active: re,
|
|
@@ -2419,22 +2419,22 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2419
2419
|
over: Oe,
|
|
2420
2420
|
measureDroppableContainers: B
|
|
2421
2421
|
}), [W, Tn, re, O, y, De, I, Oe, B]);
|
|
2422
|
-
return
|
|
2423
|
-
value:
|
|
2424
|
-
},
|
|
2422
|
+
return z.createElement(ur.Provider, {
|
|
2423
|
+
value: S
|
|
2424
|
+
}, z.createElement(vt.Provider, {
|
|
2425
|
+
value: so
|
|
2426
|
+
}, z.createElement(Ir.Provider, {
|
|
2425
2427
|
value: io
|
|
2426
|
-
},
|
|
2427
|
-
value:
|
|
2428
|
-
},
|
|
2429
|
-
value: no
|
|
2430
|
-
}, l)), j.createElement(wi, {
|
|
2428
|
+
}, z.createElement(Bt.Provider, {
|
|
2429
|
+
value: ro
|
|
2430
|
+
}, l)), z.createElement(xi, {
|
|
2431
2431
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
2432
|
-
})),
|
|
2432
|
+
})), z.createElement(Ro, {
|
|
2433
2433
|
...a,
|
|
2434
2434
|
hiddenTextDescribedById: De
|
|
2435
2435
|
}));
|
|
2436
|
-
function
|
|
2437
|
-
const
|
|
2436
|
+
function ao() {
|
|
2437
|
+
const Z = (we == null ? void 0 : we.autoScrollEnabled) === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, ie = w && !Z && !oe;
|
|
2438
2438
|
return typeof c == "object" ? {
|
|
2439
2439
|
...c,
|
|
2440
2440
|
enabled: ie
|
|
@@ -2442,15 +2442,15 @@ const Ci = /* @__PURE__ */ gn(function(t) {
|
|
|
2442
2442
|
enabled: ie
|
|
2443
2443
|
};
|
|
2444
2444
|
}
|
|
2445
|
-
}),
|
|
2446
|
-
function
|
|
2445
|
+
}), Ri = /* @__PURE__ */ qe(null), Un = "button", Ei = "Draggable";
|
|
2446
|
+
function Ii(e) {
|
|
2447
2447
|
let {
|
|
2448
2448
|
id: t,
|
|
2449
2449
|
data: n,
|
|
2450
2450
|
disabled: r = !1,
|
|
2451
2451
|
attributes: o
|
|
2452
2452
|
} = e;
|
|
2453
|
-
const i = pt(
|
|
2453
|
+
const i = pt(Ei), {
|
|
2454
2454
|
activators: s,
|
|
2455
2455
|
activatorEvent: a,
|
|
2456
2456
|
active: c,
|
|
@@ -2462,7 +2462,7 @@ function Ei(e) {
|
|
|
2462
2462
|
role: f = Un,
|
|
2463
2463
|
roleDescription: b = "draggable",
|
|
2464
2464
|
tabIndex: g = 0
|
|
2465
|
-
} = o ?? {}, p = (c == null ? void 0 : c.id) === t, y = Le(p ? Bt :
|
|
2465
|
+
} = o ?? {}, p = (c == null ? void 0 : c.id) === t, y = Le(p ? Bt : Ri), [m, S] = It(), [D, C] = It(), w = gi(s, t), v = lt(n);
|
|
2466
2466
|
me(
|
|
2467
2467
|
() => (d.set(t, {
|
|
2468
2468
|
id: t,
|
|
@@ -2477,7 +2477,7 @@ function Ei(e) {
|
|
|
2477
2477
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2478
2478
|
[d, t]
|
|
2479
2479
|
);
|
|
2480
|
-
const I =
|
|
2480
|
+
const I = M(() => ({
|
|
2481
2481
|
role: f,
|
|
2482
2482
|
tabIndex: g,
|
|
2483
2483
|
"aria-disabled": r,
|
|
@@ -2494,7 +2494,7 @@ function Ei(e) {
|
|
|
2494
2494
|
listeners: r ? void 0 : w,
|
|
2495
2495
|
node: m,
|
|
2496
2496
|
over: h,
|
|
2497
|
-
setNodeRef:
|
|
2497
|
+
setNodeRef: S,
|
|
2498
2498
|
setActivatorNodeRef: C,
|
|
2499
2499
|
transform: y
|
|
2500
2500
|
};
|
|
@@ -2502,17 +2502,17 @@ function Ei(e) {
|
|
|
2502
2502
|
function Ar() {
|
|
2503
2503
|
return Le(Ir);
|
|
2504
2504
|
}
|
|
2505
|
-
const
|
|
2505
|
+
const Oi = "Droppable", Ai = {
|
|
2506
2506
|
timeout: 25
|
|
2507
2507
|
};
|
|
2508
|
-
function
|
|
2508
|
+
function Ti(e) {
|
|
2509
2509
|
let {
|
|
2510
2510
|
data: t,
|
|
2511
2511
|
disabled: n = !1,
|
|
2512
2512
|
id: r,
|
|
2513
2513
|
resizeObserverConfig: o
|
|
2514
2514
|
} = e;
|
|
2515
|
-
const i = pt(
|
|
2515
|
+
const i = pt(Oi), {
|
|
2516
2516
|
active: s,
|
|
2517
2517
|
dispatch: a,
|
|
2518
2518
|
over: c,
|
|
@@ -2524,9 +2524,9 @@ function Ai(e) {
|
|
|
2524
2524
|
updateMeasurementsFor: g,
|
|
2525
2525
|
timeout: p
|
|
2526
2526
|
} = {
|
|
2527
|
-
...
|
|
2527
|
+
...Ai,
|
|
2528
2528
|
...o
|
|
2529
|
-
}, y =
|
|
2529
|
+
}, y = lt(g ?? r), m = $(
|
|
2530
2530
|
() => {
|
|
2531
2531
|
if (!d.current) {
|
|
2532
2532
|
d.current = !0;
|
|
@@ -2538,15 +2538,15 @@ function Ai(e) {
|
|
|
2538
2538
|
},
|
|
2539
2539
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2540
2540
|
[p]
|
|
2541
|
-
),
|
|
2541
|
+
), S = $t({
|
|
2542
2542
|
callback: m,
|
|
2543
2543
|
disabled: b || !s
|
|
2544
2544
|
}), D = $((I, _) => {
|
|
2545
|
-
|
|
2546
|
-
}, [
|
|
2545
|
+
S && (_ && (S.unobserve(_), d.current = !1), I && S.observe(I));
|
|
2546
|
+
}, [S]), [C, w] = It(D), v = lt(t);
|
|
2547
2547
|
return L(() => {
|
|
2548
|
-
!
|
|
2549
|
-
}, [C,
|
|
2548
|
+
!S || !C.current || (S.disconnect(), d.current = !1, S.observe(C.current));
|
|
2549
|
+
}, [C, S]), L(
|
|
2550
2550
|
() => (a({
|
|
2551
2551
|
type: K.RegisterDroppable,
|
|
2552
2552
|
element: {
|
|
@@ -2580,7 +2580,7 @@ function Ai(e) {
|
|
|
2580
2580
|
setNodeRef: w
|
|
2581
2581
|
};
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function Ni(e) {
|
|
2584
2584
|
let {
|
|
2585
2585
|
animation: t,
|
|
2586
2586
|
children: n
|
|
@@ -2597,30 +2597,30 @@ function Ti(e) {
|
|
|
2597
2597
|
Promise.resolve(t(l, i)).then(() => {
|
|
2598
2598
|
o(null);
|
|
2599
2599
|
});
|
|
2600
|
-
}, [t, r, i]),
|
|
2600
|
+
}, [t, r, i]), z.createElement(z.Fragment, null, n, r ? uo(r, {
|
|
2601
2601
|
ref: s
|
|
2602
2602
|
}) : null);
|
|
2603
2603
|
}
|
|
2604
|
-
const
|
|
2604
|
+
const Mi = {
|
|
2605
2605
|
x: 0,
|
|
2606
2606
|
y: 0,
|
|
2607
2607
|
scaleX: 1,
|
|
2608
2608
|
scaleY: 1
|
|
2609
2609
|
};
|
|
2610
|
-
function
|
|
2610
|
+
function _i(e) {
|
|
2611
2611
|
let {
|
|
2612
2612
|
children: t
|
|
2613
2613
|
} = e;
|
|
2614
|
-
return
|
|
2614
|
+
return z.createElement(vt.Provider, {
|
|
2615
2615
|
value: Er
|
|
2616
|
-
},
|
|
2617
|
-
value:
|
|
2616
|
+
}, z.createElement(Bt.Provider, {
|
|
2617
|
+
value: Mi
|
|
2618
2618
|
}, t));
|
|
2619
2619
|
}
|
|
2620
|
-
const
|
|
2620
|
+
const Li = {
|
|
2621
2621
|
position: "fixed",
|
|
2622
2622
|
touchAction: "none"
|
|
2623
|
-
},
|
|
2623
|
+
}, ki = (e) => Pt(e) ? "transform 250ms ease" : void 0, Pi = /* @__PURE__ */ _t((e, t) => {
|
|
2624
2624
|
let {
|
|
2625
2625
|
as: n,
|
|
2626
2626
|
activatorEvent: r,
|
|
@@ -2630,7 +2630,7 @@ const _i = {
|
|
|
2630
2630
|
rect: a,
|
|
2631
2631
|
style: c,
|
|
2632
2632
|
transform: l,
|
|
2633
|
-
transition: u =
|
|
2633
|
+
transition: u = ki
|
|
2634
2634
|
} = e;
|
|
2635
2635
|
if (!a)
|
|
2636
2636
|
return null;
|
|
@@ -2639,22 +2639,22 @@ const _i = {
|
|
|
2639
2639
|
scaleX: 1,
|
|
2640
2640
|
scaleY: 1
|
|
2641
2641
|
}, h = {
|
|
2642
|
-
...
|
|
2642
|
+
...Li,
|
|
2643
2643
|
width: a.width,
|
|
2644
2644
|
height: a.height,
|
|
2645
2645
|
top: a.top,
|
|
2646
2646
|
left: a.left,
|
|
2647
2647
|
transform: Ce.Transform.toString(d),
|
|
2648
|
-
transformOrigin: o && r ?
|
|
2648
|
+
transformOrigin: o && r ? Io(r, a) : void 0,
|
|
2649
2649
|
transition: typeof u == "function" ? u(r) : u,
|
|
2650
2650
|
...c
|
|
2651
2651
|
};
|
|
2652
|
-
return
|
|
2652
|
+
return z.createElement(n, {
|
|
2653
2653
|
className: s,
|
|
2654
2654
|
style: h,
|
|
2655
2655
|
ref: t
|
|
2656
2656
|
}, i);
|
|
2657
|
-
}),
|
|
2657
|
+
}), $i = (e) => (t) => {
|
|
2658
2658
|
let {
|
|
2659
2659
|
active: n,
|
|
2660
2660
|
dragOverlay: r
|
|
@@ -2674,7 +2674,7 @@ const _i = {
|
|
|
2674
2674
|
n.node.style.setProperty(c, l);
|
|
2675
2675
|
s != null && s.active && n.node.classList.remove(s.active);
|
|
2676
2676
|
};
|
|
2677
|
-
},
|
|
2677
|
+
}, Bi = (e) => {
|
|
2678
2678
|
let {
|
|
2679
2679
|
transform: {
|
|
2680
2680
|
initial: t,
|
|
@@ -2689,8 +2689,8 @@ const _i = {
|
|
|
2689
2689
|
}, ln = {
|
|
2690
2690
|
duration: 250,
|
|
2691
2691
|
easing: "ease",
|
|
2692
|
-
keyframes:
|
|
2693
|
-
sideEffects: /* @__PURE__ */
|
|
2692
|
+
keyframes: Bi,
|
|
2693
|
+
sideEffects: /* @__PURE__ */ $i({
|
|
2694
2694
|
styles: {
|
|
2695
2695
|
active: {
|
|
2696
2696
|
opacity: "0"
|
|
@@ -2698,7 +2698,7 @@ const _i = {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
})
|
|
2700
2700
|
};
|
|
2701
|
-
function
|
|
2701
|
+
function zi(e) {
|
|
2702
2702
|
let {
|
|
2703
2703
|
config: t,
|
|
2704
2704
|
draggableNodes: n,
|
|
@@ -2722,8 +2722,8 @@ function Bi(e) {
|
|
|
2722
2722
|
} = J(s).getComputedStyle(s), d = pr(u);
|
|
2723
2723
|
if (!d)
|
|
2724
2724
|
return;
|
|
2725
|
-
const h = typeof t == "function" ? t :
|
|
2726
|
-
return
|
|
2725
|
+
const h = typeof t == "function" ? t : Fi(t);
|
|
2726
|
+
return Sr(c, o.draggable.measure), h({
|
|
2727
2727
|
active: {
|
|
2728
2728
|
id: i,
|
|
2729
2729
|
data: a.data,
|
|
@@ -2741,7 +2741,7 @@ function Bi(e) {
|
|
|
2741
2741
|
});
|
|
2742
2742
|
});
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function Fi(e) {
|
|
2745
2745
|
const {
|
|
2746
2746
|
duration: t,
|
|
2747
2747
|
easing: n,
|
|
@@ -2798,13 +2798,13 @@ function zi(e) {
|
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
2800
|
let Kn = 0;
|
|
2801
|
-
function
|
|
2802
|
-
return
|
|
2801
|
+
function ji(e) {
|
|
2802
|
+
return M(() => {
|
|
2803
2803
|
if (e != null)
|
|
2804
2804
|
return Kn++, Kn;
|
|
2805
2805
|
}, [e]);
|
|
2806
2806
|
}
|
|
2807
|
-
const
|
|
2807
|
+
const Hi = /* @__PURE__ */ z.memo((e) => {
|
|
2808
2808
|
let {
|
|
2809
2809
|
adjustScale: t = !1,
|
|
2810
2810
|
children: n,
|
|
@@ -2826,10 +2826,10 @@ const ji = /* @__PURE__ */ j.memo((e) => {
|
|
|
2826
2826
|
dragOverlay: p,
|
|
2827
2827
|
over: y,
|
|
2828
2828
|
measuringConfiguration: m,
|
|
2829
|
-
scrollableAncestors:
|
|
2829
|
+
scrollableAncestors: S,
|
|
2830
2830
|
scrollableAncestorRects: D,
|
|
2831
2831
|
windowRect: C
|
|
2832
|
-
} = Ar(), w = Le(Bt), v =
|
|
2832
|
+
} = Ar(), w = Le(Bt), v = ji(d == null ? void 0 : d.id), I = Or(s, {
|
|
2833
2833
|
activatorEvent: u,
|
|
2834
2834
|
active: d,
|
|
2835
2835
|
activeNodeRect: h,
|
|
@@ -2837,19 +2837,19 @@ const ji = /* @__PURE__ */ j.memo((e) => {
|
|
|
2837
2837
|
draggingNodeRect: p.rect,
|
|
2838
2838
|
over: y,
|
|
2839
2839
|
overlayNodeRect: p.rect,
|
|
2840
|
-
scrollableAncestors:
|
|
2840
|
+
scrollableAncestors: S,
|
|
2841
2841
|
scrollableAncestorRects: D,
|
|
2842
2842
|
transform: w,
|
|
2843
2843
|
windowRect: C
|
|
2844
|
-
}), _ =
|
|
2844
|
+
}), _ = xn(h), F = zi({
|
|
2845
2845
|
config: r,
|
|
2846
2846
|
draggableNodes: b,
|
|
2847
2847
|
droppableContainers: g,
|
|
2848
2848
|
measuringConfiguration: m
|
|
2849
2849
|
}), A = _ ? p.setRef : void 0;
|
|
2850
|
-
return
|
|
2851
|
-
animation:
|
|
2852
|
-
}, d && v ?
|
|
2850
|
+
return z.createElement(_i, null, z.createElement(Ni, {
|
|
2851
|
+
animation: F
|
|
2852
|
+
}, d && v ? z.createElement(Pi, {
|
|
2853
2853
|
key: v,
|
|
2854
2854
|
id: d.id,
|
|
2855
2855
|
ref: A,
|
|
@@ -2866,7 +2866,7 @@ const ji = /* @__PURE__ */ j.memo((e) => {
|
|
|
2866
2866
|
transform: I
|
|
2867
2867
|
}, n) : null));
|
|
2868
2868
|
});
|
|
2869
|
-
function
|
|
2869
|
+
function ut(e, t, n) {
|
|
2870
2870
|
const r = e.slice();
|
|
2871
2871
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
2872
2872
|
}
|
|
@@ -2879,7 +2879,7 @@ function Vi(e, t) {
|
|
|
2879
2879
|
function wt(e) {
|
|
2880
2880
|
return e !== null && e >= 0;
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function Ui(e, t) {
|
|
2883
2883
|
if (e === t)
|
|
2884
2884
|
return !0;
|
|
2885
2885
|
if (e.length !== t.length)
|
|
@@ -2889,7 +2889,7 @@ function Hi(e, t) {
|
|
|
2889
2889
|
return !1;
|
|
2890
2890
|
return !0;
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function Ki(e) {
|
|
2893
2893
|
return typeof e == "boolean" ? {
|
|
2894
2894
|
draggable: e,
|
|
2895
2895
|
droppable: e
|
|
@@ -2902,17 +2902,17 @@ const Tr = (e) => {
|
|
|
2902
2902
|
overIndex: r,
|
|
2903
2903
|
index: o
|
|
2904
2904
|
} = e;
|
|
2905
|
-
const i =
|
|
2905
|
+
const i = ut(t, r, n), s = t[o], a = i[o];
|
|
2906
2906
|
return !a || !s ? null : {
|
|
2907
2907
|
x: a.left - s.left,
|
|
2908
2908
|
y: a.top - s.top,
|
|
2909
2909
|
scaleX: a.width / s.width,
|
|
2910
2910
|
scaleY: a.height / s.height
|
|
2911
2911
|
};
|
|
2912
|
-
},
|
|
2912
|
+
}, xt = {
|
|
2913
2913
|
scaleX: 1,
|
|
2914
2914
|
scaleY: 1
|
|
2915
|
-
},
|
|
2915
|
+
}, Xi = (e) => {
|
|
2916
2916
|
var t;
|
|
2917
2917
|
let {
|
|
2918
2918
|
activeIndex: n,
|
|
@@ -2929,29 +2929,29 @@ const Tr = (e) => {
|
|
|
2929
2929
|
return l ? {
|
|
2930
2930
|
x: 0,
|
|
2931
2931
|
y: n < s ? l.top + l.height - (a.top + a.height) : l.top - a.top,
|
|
2932
|
-
...
|
|
2932
|
+
...xt
|
|
2933
2933
|
} : null;
|
|
2934
2934
|
}
|
|
2935
|
-
const c =
|
|
2935
|
+
const c = qi(i, o, n);
|
|
2936
2936
|
return o > n && o <= s ? {
|
|
2937
2937
|
x: 0,
|
|
2938
2938
|
y: -a.height - c,
|
|
2939
|
-
...
|
|
2939
|
+
...xt
|
|
2940
2940
|
} : o < n && o >= s ? {
|
|
2941
2941
|
x: 0,
|
|
2942
2942
|
y: a.height + c,
|
|
2943
|
-
...
|
|
2943
|
+
...xt
|
|
2944
2944
|
} : {
|
|
2945
2945
|
x: 0,
|
|
2946
2946
|
y: 0,
|
|
2947
|
-
...
|
|
2947
|
+
...xt
|
|
2948
2948
|
};
|
|
2949
2949
|
};
|
|
2950
|
-
function
|
|
2950
|
+
function qi(e, t, n) {
|
|
2951
2951
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
2952
2952
|
return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
2953
2953
|
}
|
|
2954
|
-
const Nr = "Sortable", Mr = /* @__PURE__ */
|
|
2954
|
+
const Nr = "Sortable", Mr = /* @__PURE__ */ z.createContext({
|
|
2955
2955
|
activeIndex: -1,
|
|
2956
2956
|
containerId: Nr,
|
|
2957
2957
|
disableTransforms: !1,
|
|
@@ -2965,7 +2965,7 @@ const Nr = "Sortable", Mr = /* @__PURE__ */ j.createContext({
|
|
|
2965
2965
|
droppable: !1
|
|
2966
2966
|
}
|
|
2967
2967
|
});
|
|
2968
|
-
function
|
|
2968
|
+
function Yi(e) {
|
|
2969
2969
|
let {
|
|
2970
2970
|
children: t,
|
|
2971
2971
|
id: n,
|
|
@@ -2979,18 +2979,18 @@ function qi(e) {
|
|
|
2979
2979
|
droppableRects: c,
|
|
2980
2980
|
over: l,
|
|
2981
2981
|
measureDroppableContainers: u
|
|
2982
|
-
} = Ar(), d = pt(Nr, n), h = a.rect !== null, f =
|
|
2982
|
+
} = Ar(), d = pt(Nr, n), h = a.rect !== null, f = M(() => r.map((w) => typeof w == "object" && "id" in w ? w.id : w), [r]), b = s != null, g = s ? f.indexOf(s.id) : -1, p = l ? f.indexOf(l.id) : -1, y = k(f), m = !Ui(f, y.current), S = p !== -1 && g === -1 || m, D = Ki(i);
|
|
2983
2983
|
me(() => {
|
|
2984
2984
|
m && b && u(f);
|
|
2985
2985
|
}, [m, f, b, u]), L(() => {
|
|
2986
2986
|
y.current = f;
|
|
2987
2987
|
}, [f]);
|
|
2988
|
-
const C =
|
|
2988
|
+
const C = M(
|
|
2989
2989
|
() => ({
|
|
2990
2990
|
activeIndex: g,
|
|
2991
2991
|
containerId: d,
|
|
2992
2992
|
disabled: D,
|
|
2993
|
-
disableTransforms:
|
|
2993
|
+
disableTransforms: S,
|
|
2994
2994
|
items: f,
|
|
2995
2995
|
overIndex: p,
|
|
2996
2996
|
useDragOverlay: h,
|
|
@@ -2998,20 +2998,20 @@ function qi(e) {
|
|
|
2998
2998
|
strategy: o
|
|
2999
2999
|
}),
|
|
3000
3000
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3001
|
-
[g, d, D.draggable, D.droppable,
|
|
3001
|
+
[g, d, D.draggable, D.droppable, S, f, p, c, h, o]
|
|
3002
3002
|
);
|
|
3003
|
-
return
|
|
3003
|
+
return z.createElement(Mr.Provider, {
|
|
3004
3004
|
value: C
|
|
3005
3005
|
}, t);
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3007
|
+
const Zi = (e) => {
|
|
3008
3008
|
let {
|
|
3009
3009
|
id: t,
|
|
3010
3010
|
items: n,
|
|
3011
3011
|
activeIndex: r,
|
|
3012
3012
|
overIndex: o
|
|
3013
3013
|
} = e;
|
|
3014
|
-
return
|
|
3014
|
+
return ut(n, r, o).indexOf(t);
|
|
3015
3015
|
}, Gi = (e) => {
|
|
3016
3016
|
let {
|
|
3017
3017
|
containerId: t,
|
|
@@ -3025,17 +3025,17 @@ const Yi = (e) => {
|
|
|
3025
3025
|
transition: l
|
|
3026
3026
|
} = e;
|
|
3027
3027
|
return !l || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === c;
|
|
3028
|
-
},
|
|
3028
|
+
}, Wi = {
|
|
3029
3029
|
duration: 200,
|
|
3030
3030
|
easing: "ease"
|
|
3031
|
-
}, _r = "transform",
|
|
3031
|
+
}, _r = "transform", Ji = /* @__PURE__ */ Ce.Transition.toString({
|
|
3032
3032
|
property: _r,
|
|
3033
3033
|
duration: 0,
|
|
3034
3034
|
easing: "linear"
|
|
3035
|
-
}),
|
|
3035
|
+
}), Qi = {
|
|
3036
3036
|
roleDescription: "sortable"
|
|
3037
3037
|
};
|
|
3038
|
-
function
|
|
3038
|
+
function es(e) {
|
|
3039
3039
|
let {
|
|
3040
3040
|
disabled: t,
|
|
3041
3041
|
index: n,
|
|
@@ -3063,17 +3063,17 @@ function Qi(e) {
|
|
|
3063
3063
|
i && s(null);
|
|
3064
3064
|
}, [i]), i;
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function ts(e) {
|
|
3067
3067
|
let {
|
|
3068
3068
|
animateLayoutChanges: t = Gi,
|
|
3069
3069
|
attributes: n,
|
|
3070
3070
|
disabled: r,
|
|
3071
3071
|
data: o,
|
|
3072
|
-
getNewIndex: i =
|
|
3072
|
+
getNewIndex: i = Zi,
|
|
3073
3073
|
id: s,
|
|
3074
3074
|
strategy: a,
|
|
3075
3075
|
resizeObserverConfig: c,
|
|
3076
|
-
transition: l =
|
|
3076
|
+
transition: l = Wi
|
|
3077
3077
|
} = e;
|
|
3078
3078
|
const {
|
|
3079
3079
|
items: u,
|
|
@@ -3085,22 +3085,22 @@ function es(e) {
|
|
|
3085
3085
|
overIndex: p,
|
|
3086
3086
|
useDragOverlay: y,
|
|
3087
3087
|
strategy: m
|
|
3088
|
-
} = Le(Mr),
|
|
3088
|
+
} = Le(Mr), S = ns(r, f), D = u.indexOf(s), C = M(() => ({
|
|
3089
3089
|
sortable: {
|
|
3090
3090
|
containerId: d,
|
|
3091
3091
|
index: D,
|
|
3092
3092
|
items: u
|
|
3093
3093
|
},
|
|
3094
3094
|
...o
|
|
3095
|
-
}), [d, o, D, u]), w =
|
|
3095
|
+
}), [d, o, D, u]), w = M(() => u.slice(u.indexOf(s)), [u, s]), {
|
|
3096
3096
|
rect: v,
|
|
3097
3097
|
node: I,
|
|
3098
3098
|
isOver: _,
|
|
3099
|
-
setNodeRef:
|
|
3100
|
-
} =
|
|
3099
|
+
setNodeRef: F
|
|
3100
|
+
} = Ti({
|
|
3101
3101
|
id: s,
|
|
3102
3102
|
data: C,
|
|
3103
|
-
disabled:
|
|
3103
|
+
disabled: S.droppable,
|
|
3104
3104
|
resizeObserverConfig: {
|
|
3105
3105
|
updateMeasurementsFor: w,
|
|
3106
3106
|
...c
|
|
@@ -3116,21 +3116,21 @@ function es(e) {
|
|
|
3116
3116
|
over: $e,
|
|
3117
3117
|
setActivatorNodeRef: fe,
|
|
3118
3118
|
transform: De
|
|
3119
|
-
} =
|
|
3119
|
+
} = Ii({
|
|
3120
3120
|
id: s,
|
|
3121
3121
|
data: C,
|
|
3122
3122
|
attributes: {
|
|
3123
|
-
...
|
|
3123
|
+
...Qi,
|
|
3124
3124
|
...n
|
|
3125
3125
|
},
|
|
3126
|
-
disabled:
|
|
3127
|
-
}),
|
|
3126
|
+
disabled: S.draggable
|
|
3127
|
+
}), Je = fo(F, we), x = !!A, R = x && !b && wt(h) && wt(p), B = !y && W, P = B && R ? De : null, Q = R ? P ?? (a ?? m)({
|
|
3128
3128
|
rects: g,
|
|
3129
3129
|
activeNodeRect: re,
|
|
3130
3130
|
activeIndex: h,
|
|
3131
3131
|
overIndex: p,
|
|
3132
3132
|
index: D
|
|
3133
|
-
}) : null,
|
|
3133
|
+
}) : null, V = wt(h) && wt(p) ? i({
|
|
3134
3134
|
id: s,
|
|
3135
3135
|
items: u,
|
|
3136
3136
|
activeIndex: h,
|
|
@@ -3138,13 +3138,13 @@ function es(e) {
|
|
|
3138
3138
|
}) : D, Y = A == null ? void 0 : A.id, O = k({
|
|
3139
3139
|
activeId: Y,
|
|
3140
3140
|
items: u,
|
|
3141
|
-
newIndex:
|
|
3141
|
+
newIndex: V,
|
|
3142
3142
|
containerId: d
|
|
3143
3143
|
}), ge = u !== O.current.items, ee = t({
|
|
3144
3144
|
active: A,
|
|
3145
3145
|
containerId: d,
|
|
3146
3146
|
isDragging: W,
|
|
3147
|
-
isSorting:
|
|
3147
|
+
isSorting: x,
|
|
3148
3148
|
id: s,
|
|
3149
3149
|
index: D,
|
|
3150
3150
|
items: u,
|
|
@@ -3153,15 +3153,15 @@ function es(e) {
|
|
|
3153
3153
|
previousContainerId: O.current.containerId,
|
|
3154
3154
|
transition: l,
|
|
3155
3155
|
wasDragging: O.current.activeId != null
|
|
3156
|
-
}),
|
|
3156
|
+
}), j = es({
|
|
3157
3157
|
disabled: !ee,
|
|
3158
3158
|
index: D,
|
|
3159
3159
|
node: I,
|
|
3160
3160
|
rect: v
|
|
3161
3161
|
});
|
|
3162
3162
|
return L(() => {
|
|
3163
|
-
|
|
3164
|
-
}, [
|
|
3163
|
+
x && O.current.newIndex !== V && (O.current.newIndex = V), d !== O.current.containerId && (O.current.containerId = d), u !== O.current.items && (O.current.items = u);
|
|
3164
|
+
}, [x, V, d, u]), L(() => {
|
|
3165
3165
|
if (Y === O.current.activeId)
|
|
3166
3166
|
return;
|
|
3167
3167
|
if (Y != null && O.current.activeId == null) {
|
|
@@ -3179,37 +3179,37 @@ function es(e) {
|
|
|
3179
3179
|
data: C,
|
|
3180
3180
|
rect: v,
|
|
3181
3181
|
index: D,
|
|
3182
|
-
newIndex:
|
|
3182
|
+
newIndex: V,
|
|
3183
3183
|
items: u,
|
|
3184
3184
|
isOver: _,
|
|
3185
|
-
isSorting:
|
|
3185
|
+
isSorting: x,
|
|
3186
3186
|
isDragging: W,
|
|
3187
3187
|
listeners: Pe,
|
|
3188
3188
|
node: I,
|
|
3189
3189
|
overIndex: p,
|
|
3190
3190
|
over: $e,
|
|
3191
|
-
setNodeRef:
|
|
3191
|
+
setNodeRef: Je,
|
|
3192
3192
|
setActivatorNodeRef: fe,
|
|
3193
|
-
setDroppableNodeRef:
|
|
3193
|
+
setDroppableNodeRef: F,
|
|
3194
3194
|
setDraggableNodeRef: we,
|
|
3195
|
-
transform:
|
|
3195
|
+
transform: j ?? Q,
|
|
3196
3196
|
transition: he()
|
|
3197
3197
|
};
|
|
3198
3198
|
function he() {
|
|
3199
3199
|
if (
|
|
3200
3200
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3201
|
-
|
|
3201
|
+
j || // Or to prevent items jumping to back to their "new" position when items change
|
|
3202
3202
|
ge && O.current.newIndex === D
|
|
3203
3203
|
)
|
|
3204
|
-
return
|
|
3205
|
-
if (!(B && !Pt(ne) || !l) && (
|
|
3204
|
+
return Ji;
|
|
3205
|
+
if (!(B && !Pt(ne) || !l) && (x || ee))
|
|
3206
3206
|
return Ce.Transition.toString({
|
|
3207
3207
|
...l,
|
|
3208
3208
|
property: _r
|
|
3209
3209
|
});
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function ns(e, t) {
|
|
3213
3213
|
var n, r;
|
|
3214
3214
|
return typeof e == "boolean" ? {
|
|
3215
3215
|
draggable: e,
|
|
@@ -3221,25 +3221,25 @@ function ts(e, t) {
|
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
3223
3223
|
E.Down, E.Right, E.Up, E.Left;
|
|
3224
|
-
const
|
|
3225
|
-
function
|
|
3224
|
+
const rs = /iPad|iPhone|iPod/.test(navigator.platform);
|
|
3225
|
+
function os(e, t) {
|
|
3226
3226
|
return Math.round(e / t);
|
|
3227
3227
|
}
|
|
3228
3228
|
function un(e, t, n, r, o) {
|
|
3229
|
-
const i = e.findIndex(({ id: y }) => y === n), s = e.findIndex(({ id: y }) => y === t), a = e[s], c =
|
|
3229
|
+
const i = e.findIndex(({ id: y }) => y === n), s = e.findIndex(({ id: y }) => y === t), a = e[s], c = ut(e, s, i), l = c[i - 1], u = c[i + 1], d = os(r, o), h = a.depth + d, f = is({
|
|
3230
3230
|
previousItem: l
|
|
3231
|
-
}), b =
|
|
3231
|
+
}), b = ss({ nextItem: u });
|
|
3232
3232
|
let g = h;
|
|
3233
3233
|
return h >= f ? g = f : h < b && (g = b), { depth: g, maxDepth: f, minDepth: b, parentId: p() };
|
|
3234
3234
|
function p() {
|
|
3235
3235
|
var m;
|
|
3236
|
-
return g === 0 || !l ? null : g === l.depth ? l.parentId : g > l.depth ? l.id : ((m = c.slice(0, i).reverse().find((
|
|
3236
|
+
return g === 0 || !l ? null : g === l.depth ? l.parentId : g > l.depth ? l.id : ((m = c.slice(0, i).reverse().find((S) => S.depth === g)) == null ? void 0 : m.parentId) ?? null;
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function is({ previousItem: e }) {
|
|
3240
3240
|
return e ? e.depth + 1 : 0;
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function ss({ nextItem: e }) {
|
|
3243
3243
|
return e ? e.depth : 0;
|
|
3244
3244
|
}
|
|
3245
3245
|
function Lr(e, t = null, n = 0) {
|
|
@@ -3248,21 +3248,21 @@ function Lr(e, t = null, n = 0) {
|
|
|
3248
3248
|
function Jt(e) {
|
|
3249
3249
|
return Lr(e);
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3251
|
+
function as(e) {
|
|
3252
3252
|
const t = { id: "root", label: "", children: [] }, n = { [t.id]: t }, r = e.map((o) => ({ ...o, children: [] }));
|
|
3253
3253
|
for (const o of r) {
|
|
3254
|
-
const { id: i, children: s, label: a } = o, c = o.parentId ?? t.id, l = n[c] ??
|
|
3254
|
+
const { id: i, children: s, label: a } = o, c = o.parentId ?? t.id, l = n[c] ?? cs(r, c);
|
|
3255
3255
|
n[i] = { id: i, label: a, children: s }, l.children.push(o);
|
|
3256
3256
|
}
|
|
3257
3257
|
return t.children;
|
|
3258
3258
|
}
|
|
3259
|
-
function
|
|
3259
|
+
function cs(e, t) {
|
|
3260
3260
|
return e.find(({ id: n }) => n === t);
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function ls(e, t) {
|
|
3263
3263
|
return kr(e, t);
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function us(e, t) {
|
|
3266
3266
|
function n(o) {
|
|
3267
3267
|
return o.filter((i) => i.id !== t).map((i) => ({
|
|
3268
3268
|
...i,
|
|
@@ -3271,7 +3271,7 @@ function ls(e, t) {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
return n(e);
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3274
|
+
function ds(e, t, n) {
|
|
3275
3275
|
function r(i) {
|
|
3276
3276
|
return i.map((s) => {
|
|
3277
3277
|
if (s.id === t) {
|
|
@@ -3299,31 +3299,31 @@ function kr(e, t) {
|
|
|
3299
3299
|
function Pr(e, t = 0) {
|
|
3300
3300
|
return e.reduce((n, { children: r }) => r.length ? Pr(r, n + 1) : n + 1, t);
|
|
3301
3301
|
}
|
|
3302
|
-
function
|
|
3303
|
-
const n =
|
|
3302
|
+
function fs(e, t) {
|
|
3303
|
+
const n = ls(e, t);
|
|
3304
3304
|
return n ? Pr(n.children) : 0;
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function gs(e, t) {
|
|
3307
3307
|
const n = [...t];
|
|
3308
3308
|
return e.filter((r) => r.parentId && n.includes(r.parentId) ? (r.children.length && n.push(r.id), !1) : !0);
|
|
3309
3309
|
}
|
|
3310
|
-
const
|
|
3310
|
+
const hs = [
|
|
3311
3311
|
E.Down,
|
|
3312
3312
|
E.Right,
|
|
3313
3313
|
E.Up,
|
|
3314
3314
|
E.Left
|
|
3315
|
-
],
|
|
3315
|
+
], ps = [E.Left, E.Right], vs = (e, t, n) => (r, {
|
|
3316
3316
|
currentCoordinates: o,
|
|
3317
3317
|
context: { active: i, over: s, collisionRect: a, droppableRects: c, droppableContainers: l }
|
|
3318
3318
|
}) => {
|
|
3319
|
-
if (
|
|
3319
|
+
if (hs.includes(r.code)) {
|
|
3320
3320
|
if (!i || !a)
|
|
3321
3321
|
return;
|
|
3322
3322
|
r.preventDefault();
|
|
3323
3323
|
const {
|
|
3324
3324
|
current: { items: u, offset: d }
|
|
3325
3325
|
} = e;
|
|
3326
|
-
if (
|
|
3326
|
+
if (ps.includes(r.code) && (s != null && s.id)) {
|
|
3327
3327
|
const { depth: g, maxDepth: p, minDepth: y } = un(
|
|
3328
3328
|
u,
|
|
3329
3329
|
i.id,
|
|
@@ -3364,7 +3364,7 @@ const gs = [
|
|
|
3364
3364
|
break;
|
|
3365
3365
|
}
|
|
3366
3366
|
});
|
|
3367
|
-
const f =
|
|
3367
|
+
const f = To({
|
|
3368
3368
|
collisionRect: a,
|
|
3369
3369
|
droppableRects: c,
|
|
3370
3370
|
droppableContainers: h
|
|
@@ -3373,13 +3373,13 @@ const gs = [
|
|
|
3373
3373
|
if (b === (s == null ? void 0 : s.id) && f.length > 1 && (b = f[1].id), b && (s != null && s.id)) {
|
|
3374
3374
|
const g = c.get(i.id), p = c.get(b), y = l.get(b);
|
|
3375
3375
|
if (g && p && y) {
|
|
3376
|
-
const m = u.findIndex(({ id: w }) => w === b),
|
|
3377
|
-
if (
|
|
3376
|
+
const m = u.findIndex(({ id: w }) => w === b), S = u[m], D = u.findIndex(({ id: w }) => w === i.id), C = u[D];
|
|
3377
|
+
if (S && C) {
|
|
3378
3378
|
const { depth: w } = un(
|
|
3379
3379
|
u,
|
|
3380
3380
|
i.id,
|
|
3381
3381
|
b,
|
|
3382
|
-
(
|
|
3382
|
+
(S.depth - C.depth) * n,
|
|
3383
3383
|
n
|
|
3384
3384
|
), I = m > D ? 1 : -1, _ = t ? (a.height - g.height) / 2 : 0;
|
|
3385
3385
|
return {
|
|
@@ -3390,20 +3390,20 @@ const gs = [
|
|
|
3390
3390
|
}
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
|
-
},
|
|
3394
|
-
Wrapper:
|
|
3395
|
-
clone:
|
|
3396
|
-
TreeItem:
|
|
3397
|
-
ghost:
|
|
3398
|
-
indicator:
|
|
3393
|
+
}, bs = "_Wrapper_wguit_1", ms = "_clone_wguit_8", ys = "_TreeItem_wguit_16", ws = "_ghost_wguit_23", xs = "_indicator_wguit_23", Ss = "_Text_wguit_78", Cs = "_Count_wguit_90", Ds = "_disableInteraction_wguit_106", Rs = "_disableSelection_wguit_110", Es = "_Collapse_wguit_118", Is = "_collapsed_wguit_122", pe = {
|
|
3394
|
+
Wrapper: bs,
|
|
3395
|
+
clone: ms,
|
|
3396
|
+
TreeItem: ys,
|
|
3397
|
+
ghost: ws,
|
|
3398
|
+
indicator: xs,
|
|
3399
3399
|
Text: Ss,
|
|
3400
|
-
Count:
|
|
3401
|
-
disableInteraction:
|
|
3402
|
-
disableSelection:
|
|
3403
|
-
Collapse:
|
|
3404
|
-
collapsed:
|
|
3400
|
+
Count: Cs,
|
|
3401
|
+
disableInteraction: Ds,
|
|
3402
|
+
disableSelection: Rs,
|
|
3403
|
+
Collapse: Es,
|
|
3404
|
+
collapsed: Is
|
|
3405
3405
|
};
|
|
3406
|
-
function
|
|
3406
|
+
function Os(e) {
|
|
3407
3407
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3408
3408
|
}
|
|
3409
3409
|
var Qt = { exports: {} };
|
|
@@ -3413,8 +3413,8 @@ var Qt = { exports: {} };
|
|
|
3413
3413
|
http://jedwatson.github.io/classnames
|
|
3414
3414
|
*/
|
|
3415
3415
|
var Xn;
|
|
3416
|
-
function
|
|
3417
|
-
return Xn || (Xn = 1, function(e) {
|
|
3416
|
+
function As() {
|
|
3417
|
+
return Xn || (Xn = 1, (function(e) {
|
|
3418
3418
|
(function() {
|
|
3419
3419
|
var t = {}.hasOwnProperty;
|
|
3420
3420
|
function n() {
|
|
@@ -3443,18 +3443,18 @@ function Os() {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
3445
3445
|
})();
|
|
3446
|
-
}(Qt)), Qt.exports;
|
|
3446
|
+
})(Qt)), Qt.exports;
|
|
3447
3447
|
}
|
|
3448
|
-
var
|
|
3449
|
-
const dn = /* @__PURE__ */
|
|
3450
|
-
Action:
|
|
3448
|
+
var Ts = As();
|
|
3449
|
+
const dn = /* @__PURE__ */ Os(Ts), Ns = "_Action_7i4a4_1", Ms = {
|
|
3450
|
+
Action: Ns
|
|
3451
3451
|
}, zt = _t(
|
|
3452
|
-
({ active: e, className: t, cursor: n, style: r, ...o }, i) => /* @__PURE__ */
|
|
3452
|
+
({ active: e, className: t, cursor: n, style: r, ...o }, i) => /* @__PURE__ */ T(
|
|
3453
3453
|
"button",
|
|
3454
3454
|
{
|
|
3455
3455
|
ref: i,
|
|
3456
3456
|
...o,
|
|
3457
|
-
className: dn(
|
|
3457
|
+
className: dn(Ms.Action, t),
|
|
3458
3458
|
tabIndex: 0,
|
|
3459
3459
|
style: {
|
|
3460
3460
|
...r,
|
|
@@ -3464,9 +3464,9 @@ const dn = /* @__PURE__ */ Is(As), Ts = "_Action_7i4a4_1", Ns = {
|
|
|
3464
3464
|
}
|
|
3465
3465
|
}
|
|
3466
3466
|
)
|
|
3467
|
-
),
|
|
3468
|
-
function
|
|
3469
|
-
return /* @__PURE__ */
|
|
3467
|
+
), _s = _t((e, t) => /* @__PURE__ */ T(zt, { ref: t, cursor: "grab", "data-cypress": "draggable-handle", ...e, children: /* @__PURE__ */ T("svg", { viewBox: "0 0 20 20", width: "12", children: /* @__PURE__ */ T("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) }));
|
|
3468
|
+
function Ls(e) {
|
|
3469
|
+
return /* @__PURE__ */ T(
|
|
3470
3470
|
zt,
|
|
3471
3471
|
{
|
|
3472
3472
|
...e,
|
|
@@ -3474,7 +3474,7 @@ function _s(e) {
|
|
|
3474
3474
|
fill: "rgba(255, 70, 70, 0.95)",
|
|
3475
3475
|
background: "rgba(255, 70, 70, 0.1)"
|
|
3476
3476
|
},
|
|
3477
|
-
children: /* @__PURE__ */
|
|
3477
|
+
children: /* @__PURE__ */ T(
|
|
3478
3478
|
"svg",
|
|
3479
3479
|
{
|
|
3480
3480
|
width: "18",
|
|
@@ -3482,14 +3482,14 @@ function _s(e) {
|
|
|
3482
3482
|
viewBox: "0 0 18 18",
|
|
3483
3483
|
fill: "none",
|
|
3484
3484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3485
|
-
children: /* @__PURE__ */
|
|
3485
|
+
children: /* @__PURE__ */ T("path", { d: "M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z" })
|
|
3486
3486
|
}
|
|
3487
3487
|
)
|
|
3488
3488
|
}
|
|
3489
3489
|
);
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return /* @__PURE__ */
|
|
3491
|
+
function ks(e) {
|
|
3492
|
+
return /* @__PURE__ */ T(
|
|
3493
3493
|
zt,
|
|
3494
3494
|
{
|
|
3495
3495
|
...e,
|
|
@@ -3497,7 +3497,7 @@ function Ls(e) {
|
|
|
3497
3497
|
fill: "rgba(255, 70, 70, 0.95)",
|
|
3498
3498
|
background: "rgba(255, 70, 70, 0.1)"
|
|
3499
3499
|
},
|
|
3500
|
-
children: /* @__PURE__ */
|
|
3500
|
+
children: /* @__PURE__ */ T(
|
|
3501
3501
|
"svg",
|
|
3502
3502
|
{
|
|
3503
3503
|
width: "18",
|
|
@@ -3505,13 +3505,13 @@ function Ls(e) {
|
|
|
3505
3505
|
viewBox: "0 0 18 18",
|
|
3506
3506
|
fill: "none",
|
|
3507
3507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3508
|
-
children: /* @__PURE__ */
|
|
3508
|
+
children: /* @__PURE__ */ T("path", { d: "M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z" })
|
|
3509
3509
|
}
|
|
3510
3510
|
)
|
|
3511
3511
|
}
|
|
3512
3512
|
);
|
|
3513
3513
|
}
|
|
3514
|
-
const
|
|
3514
|
+
const Ps = _t(
|
|
3515
3515
|
({
|
|
3516
3516
|
childCount: e,
|
|
3517
3517
|
clone: t,
|
|
@@ -3532,7 +3532,7 @@ const ks = _t(
|
|
|
3532
3532
|
value: p,
|
|
3533
3533
|
wrapperRef: y,
|
|
3534
3534
|
renderItem: m,
|
|
3535
|
-
...
|
|
3535
|
+
...S
|
|
3536
3536
|
}, D) => m ? m({
|
|
3537
3537
|
dropZoneRef: y,
|
|
3538
3538
|
draggableItemRef: D,
|
|
@@ -3563,7 +3563,7 @@ const ks = _t(
|
|
|
3563
3563
|
disableSelection: r,
|
|
3564
3564
|
disableInteraction: o,
|
|
3565
3565
|
collapsed: u
|
|
3566
|
-
}) : /* @__PURE__ */
|
|
3566
|
+
}) : /* @__PURE__ */ T(
|
|
3567
3567
|
"li",
|
|
3568
3568
|
{
|
|
3569
3569
|
className: dn(
|
|
@@ -3578,26 +3578,26 @@ const ks = _t(
|
|
|
3578
3578
|
style: {
|
|
3579
3579
|
"--spacing": `${c * n}px`
|
|
3580
3580
|
},
|
|
3581
|
-
...
|
|
3581
|
+
...S,
|
|
3582
3582
|
children: /* @__PURE__ */ sr("div", { className: pe.TreeItem, ref: D, style: g, children: [
|
|
3583
|
-
!i && /* @__PURE__ */
|
|
3584
|
-
d && /* @__PURE__ */
|
|
3583
|
+
!i && /* @__PURE__ */ T(_s, { ...a }),
|
|
3584
|
+
d && /* @__PURE__ */ T(
|
|
3585
3585
|
zt,
|
|
3586
3586
|
{
|
|
3587
3587
|
onClick: d,
|
|
3588
3588
|
className: dn(pe.Collapse, u && pe.collapsed),
|
|
3589
|
-
children:
|
|
3589
|
+
children: $s
|
|
3590
3590
|
}
|
|
3591
3591
|
),
|
|
3592
|
-
/* @__PURE__ */
|
|
3593
|
-
!t && h && /* @__PURE__ */
|
|
3594
|
-
!t && f && /* @__PURE__ */
|
|
3595
|
-
t && e && e > 1 ? /* @__PURE__ */
|
|
3592
|
+
/* @__PURE__ */ T("span", { onClick: b, className: pe.Text, children: p.label }),
|
|
3593
|
+
!t && h && /* @__PURE__ */ T(Ls, { onClick: h }),
|
|
3594
|
+
!t && f && /* @__PURE__ */ T(ks, { onClick: f }),
|
|
3595
|
+
t && e && e > 1 ? /* @__PURE__ */ T("span", { className: pe.Count, children: e }) : null
|
|
3596
3596
|
] })
|
|
3597
3597
|
}
|
|
3598
3598
|
)
|
|
3599
|
-
),
|
|
3600
|
-
function
|
|
3599
|
+
), $s = /* @__PURE__ */ T("svg", { width: "10", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 70 41", children: /* @__PURE__ */ T("path", { d: "M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z" }) }), Bs = gn(Ps), zs = ({ isSorting: e, wasDragging: t }) => !(e || t);
|
|
3600
|
+
function Fs({ id: e, depth: t, ...n }) {
|
|
3601
3601
|
const {
|
|
3602
3602
|
attributes: r,
|
|
3603
3603
|
isDragging: o,
|
|
@@ -3607,15 +3607,15 @@ function zs({ id: e, depth: t, ...n }) {
|
|
|
3607
3607
|
setDroppableNodeRef: c,
|
|
3608
3608
|
transform: l,
|
|
3609
3609
|
transition: u
|
|
3610
|
-
} =
|
|
3610
|
+
} = ts({
|
|
3611
3611
|
id: e,
|
|
3612
|
-
animateLayoutChanges:
|
|
3612
|
+
animateLayoutChanges: zs
|
|
3613
3613
|
}), d = {
|
|
3614
3614
|
transform: Ce.Translate.toString(l),
|
|
3615
3615
|
transition: u
|
|
3616
3616
|
};
|
|
3617
|
-
return /* @__PURE__ */
|
|
3618
|
-
|
|
3617
|
+
return /* @__PURE__ */ T(
|
|
3618
|
+
Bs,
|
|
3619
3619
|
{
|
|
3620
3620
|
...n,
|
|
3621
3621
|
ref: a,
|
|
@@ -3623,7 +3623,7 @@ function zs({ id: e, depth: t, ...n }) {
|
|
|
3623
3623
|
style: d,
|
|
3624
3624
|
depth: t,
|
|
3625
3625
|
ghost: o,
|
|
3626
|
-
disableSelection:
|
|
3626
|
+
disableSelection: rs,
|
|
3627
3627
|
disableInteraction: i,
|
|
3628
3628
|
handleProps: n.disableDragging ? null : {
|
|
3629
3629
|
...r,
|
|
@@ -3632,7 +3632,7 @@ function zs({ id: e, depth: t, ...n }) {
|
|
|
3632
3632
|
}
|
|
3633
3633
|
);
|
|
3634
3634
|
}
|
|
3635
|
-
const qn = gn(
|
|
3635
|
+
const qn = gn(Fs), $r = qe(null), js = ({
|
|
3636
3636
|
dropZoneRef: e,
|
|
3637
3637
|
draggableItemRef: t,
|
|
3638
3638
|
dropZoneStyle: n,
|
|
@@ -3640,39 +3640,78 @@ const qn = gn(zs), qa = ({
|
|
|
3640
3640
|
classNames: o = {},
|
|
3641
3641
|
asDropZone: i = "div",
|
|
3642
3642
|
asDraggableItem: s = "div",
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
...
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3643
|
+
children: a,
|
|
3644
|
+
dataSlots: c,
|
|
3645
|
+
treeItem: l,
|
|
3646
|
+
clone: u,
|
|
3647
|
+
dragListeners: d
|
|
3648
|
+
}) => {
|
|
3649
|
+
const h = u ? null : {
|
|
3650
|
+
role: "treeitem",
|
|
3651
|
+
"aria-label": l.label,
|
|
3652
|
+
...c.dropZone
|
|
3653
|
+
};
|
|
3654
|
+
return /* @__PURE__ */ T(
|
|
3655
|
+
i,
|
|
3656
|
+
{
|
|
3657
|
+
className: o.dropZone,
|
|
3658
|
+
style: n,
|
|
3659
|
+
...h,
|
|
3660
|
+
...l.parentId ? { "data-tree-item-parent-id": l.parentId } : null,
|
|
3661
|
+
"data-tree-item-id": l.id,
|
|
3662
|
+
ref: e,
|
|
3663
|
+
children: /* @__PURE__ */ T(
|
|
3664
|
+
$r.Provider,
|
|
3665
|
+
{
|
|
3666
|
+
value: {
|
|
3667
|
+
dragListeners: d,
|
|
3668
|
+
label: l.label
|
|
3669
|
+
},
|
|
3670
|
+
children: /* @__PURE__ */ T(
|
|
3671
|
+
s,
|
|
3672
|
+
{
|
|
3673
|
+
className: o.draggableItem,
|
|
3674
|
+
style: r,
|
|
3675
|
+
...c.draggableItem,
|
|
3676
|
+
ref: t,
|
|
3677
|
+
"data-tree-draggable": !0,
|
|
3678
|
+
children: a
|
|
3679
|
+
}
|
|
3680
|
+
)
|
|
3681
|
+
}
|
|
3682
|
+
)
|
|
3683
|
+
}
|
|
3684
|
+
);
|
|
3685
|
+
};
|
|
3686
|
+
js.DragHandler = function({
|
|
3687
|
+
children: t,
|
|
3688
|
+
as: n = "div",
|
|
3689
|
+
className: r,
|
|
3690
|
+
style: o
|
|
3691
|
+
}) {
|
|
3692
|
+
const i = z.useContext($r);
|
|
3693
|
+
if (!i) {
|
|
3694
|
+
if (process.env.NODE_ENV !== "production")
|
|
3695
|
+
throw new Error("TreeItemStructure.DragHandler must be used inside TreeItemStructure");
|
|
3696
|
+
return null;
|
|
3670
3697
|
}
|
|
3671
|
-
|
|
3698
|
+
return /* @__PURE__ */ T(
|
|
3699
|
+
n,
|
|
3700
|
+
{
|
|
3701
|
+
...i.dragListeners,
|
|
3702
|
+
"aria-label": `Drag ${i.label}`,
|
|
3703
|
+
className: r,
|
|
3704
|
+
style: { display: "inherit", ...o || null },
|
|
3705
|
+
"data-tree-drag-handle": !0,
|
|
3706
|
+
children: t
|
|
3707
|
+
}
|
|
3708
|
+
);
|
|
3709
|
+
};
|
|
3710
|
+
const Hs = {
|
|
3672
3711
|
droppable: {
|
|
3673
|
-
strategy:
|
|
3712
|
+
strategy: Ve.Always
|
|
3674
3713
|
}
|
|
3675
|
-
},
|
|
3714
|
+
}, Vs = {
|
|
3676
3715
|
keyframes({ transform: e }) {
|
|
3677
3716
|
return [
|
|
3678
3717
|
{ opacity: 1, transform: Ce.Transform.toString(e.initial) },
|
|
@@ -3694,7 +3733,7 @@ const qn = gn(zs), qa = ({
|
|
|
3694
3733
|
});
|
|
3695
3734
|
}
|
|
3696
3735
|
};
|
|
3697
|
-
function
|
|
3736
|
+
function Us({
|
|
3698
3737
|
items: e,
|
|
3699
3738
|
setItems: t,
|
|
3700
3739
|
isCollapsible: n,
|
|
@@ -3709,34 +3748,34 @@ function Vs({
|
|
|
3709
3748
|
onItemClick: d,
|
|
3710
3749
|
renderItem: h
|
|
3711
3750
|
}) {
|
|
3712
|
-
const [f, b] = U(null), [g, p] = U(null), [y, m] = U(0), [
|
|
3713
|
-
let
|
|
3714
|
-
const R =
|
|
3715
|
-
R.length === 1 && (
|
|
3751
|
+
const [f, b] = U(null), [g, p] = U(null), [y, m] = U(0), [S, D] = U(null), C = M(() => {
|
|
3752
|
+
let x = Jt(e);
|
|
3753
|
+
const R = x.filter(({ parentId: P }) => !P);
|
|
3754
|
+
R.length === 1 && (x = x.map(
|
|
3716
3755
|
(P) => P.id === R[0].id ? {
|
|
3717
3756
|
...P,
|
|
3718
3757
|
disableDragging: !0
|
|
3719
3758
|
} : P
|
|
3720
3759
|
));
|
|
3721
|
-
const B =
|
|
3722
|
-
(P, { children:
|
|
3760
|
+
const B = x.reduce(
|
|
3761
|
+
(P, { children: N, collapsed: Q, id: V }) => (Q && N.length && P.push(V), P),
|
|
3723
3762
|
[]
|
|
3724
3763
|
);
|
|
3725
|
-
return
|
|
3726
|
-
|
|
3764
|
+
return gs(
|
|
3765
|
+
x,
|
|
3727
3766
|
f ? [f, ...B] : B
|
|
3728
3767
|
);
|
|
3729
3768
|
}, [f, e]), w = f && g ? un(C, f, g, y, i) : null, v = k({
|
|
3730
3769
|
items: C,
|
|
3731
3770
|
offset: y
|
|
3732
3771
|
}), [I] = U(
|
|
3733
|
-
() =>
|
|
3734
|
-
), _ =
|
|
3772
|
+
() => vs(v, o, i)
|
|
3773
|
+
), _ = Eo(
|
|
3735
3774
|
Mn(wn),
|
|
3736
3775
|
Mn(mn, {
|
|
3737
3776
|
coordinateGetter: I
|
|
3738
3777
|
})
|
|
3739
|
-
),
|
|
3778
|
+
), F = M(() => C.map(({ id: x }) => x), [C]), A = f ? C.find(({ id: x }) => x === f) : null;
|
|
3740
3779
|
L(() => {
|
|
3741
3780
|
v.current = {
|
|
3742
3781
|
items: C,
|
|
@@ -3744,27 +3783,27 @@ function Vs({
|
|
|
3744
3783
|
};
|
|
3745
3784
|
}, [C, y]);
|
|
3746
3785
|
const ne = $(
|
|
3747
|
-
({ active: { id:
|
|
3748
|
-
b(
|
|
3749
|
-
const R = C.find(({ id: B }) => B ===
|
|
3786
|
+
({ active: { id: x } }) => {
|
|
3787
|
+
b(x), p(x);
|
|
3788
|
+
const R = C.find(({ id: B }) => B === x);
|
|
3750
3789
|
R && D({
|
|
3751
3790
|
parentId: R.parentId,
|
|
3752
|
-
overId:
|
|
3791
|
+
overId: x
|
|
3753
3792
|
}), document.body.style.setProperty("cursor", "grabbing");
|
|
3754
3793
|
},
|
|
3755
3794
|
[C]
|
|
3756
|
-
), re = $(({ delta:
|
|
3757
|
-
m(
|
|
3758
|
-
}, []), ce = $(({ over:
|
|
3759
|
-
p((
|
|
3795
|
+
), re = $(({ delta: x }) => {
|
|
3796
|
+
m(x.x);
|
|
3797
|
+
}, []), ce = $(({ over: x }) => {
|
|
3798
|
+
p((x == null ? void 0 : x.id) ?? null);
|
|
3760
3799
|
}, []), we = $(() => {
|
|
3761
3800
|
p(null), b(null), m(0), D(null), document.body.style.setProperty("cursor", "");
|
|
3762
3801
|
}, []), Pe = $(
|
|
3763
|
-
({ active:
|
|
3802
|
+
({ active: x, over: R }) => {
|
|
3764
3803
|
if (we(), w && R) {
|
|
3765
|
-
const { depth: B, parentId: P } = w,
|
|
3766
|
-
|
|
3767
|
-
const O =
|
|
3804
|
+
const { depth: B, parentId: P } = w, N = JSON.parse(JSON.stringify(Jt(e))), Q = N.findIndex(({ id: j }) => j === R.id), V = N.findIndex(({ id: j }) => j === x.id), Y = N[V];
|
|
3805
|
+
N[V] = { ...Y, depth: B, parentId: P };
|
|
3806
|
+
const O = ut(N, V, Q), ge = as(O), ee = Br(ge, N[V].id, P);
|
|
3768
3807
|
t(ge), u == null || u(ee);
|
|
3769
3808
|
}
|
|
3770
3809
|
},
|
|
@@ -3772,91 +3811,91 @@ function Vs({
|
|
|
3772
3811
|
), W = $(() => {
|
|
3773
3812
|
we();
|
|
3774
3813
|
}, [we]), $e = $(
|
|
3775
|
-
(
|
|
3776
|
-
t((R) =>
|
|
3814
|
+
(x) => {
|
|
3815
|
+
t((R) => us(R, x));
|
|
3777
3816
|
},
|
|
3778
3817
|
[t]
|
|
3779
3818
|
), fe = $(
|
|
3780
3819
|
({
|
|
3781
|
-
id:
|
|
3820
|
+
id: x,
|
|
3782
3821
|
canFetchChildren: R,
|
|
3783
3822
|
collapsed: B
|
|
3784
|
-
}) => R ? r == null ? void 0 : r(
|
|
3785
|
-
(P) =>
|
|
3823
|
+
}) => R ? r == null ? void 0 : r(x, !!B) : t(
|
|
3824
|
+
(P) => ds(P, x, (N) => ({ collapsed: !N.collapsed }))
|
|
3786
3825
|
),
|
|
3787
3826
|
[r, t]
|
|
3788
3827
|
), De = $(
|
|
3789
|
-
(
|
|
3828
|
+
(x, R, B) => {
|
|
3790
3829
|
if (B && w) {
|
|
3791
|
-
if (
|
|
3792
|
-
if (
|
|
3830
|
+
if (x !== "onDragEnd") {
|
|
3831
|
+
if (S && w.parentId === S.parentId && B === S.overId)
|
|
3793
3832
|
return;
|
|
3794
3833
|
D({
|
|
3795
3834
|
parentId: w.parentId,
|
|
3796
3835
|
overId: B
|
|
3797
3836
|
});
|
|
3798
3837
|
}
|
|
3799
|
-
const P = JSON.parse(JSON.stringify(Jt(e))),
|
|
3838
|
+
const P = JSON.parse(JSON.stringify(Jt(e))), N = P.findIndex(({ id: j }) => j === B), Q = P.findIndex(({ id: j }) => j === R), V = ut(P, Q, N), Y = V[N - 1];
|
|
3800
3839
|
let O;
|
|
3801
|
-
const ge =
|
|
3840
|
+
const ge = x === "onDragEnd" ? "dropped" : "moved", ee = x === "onDragEnd" ? "dropped" : "nested";
|
|
3802
3841
|
if (Y)
|
|
3803
3842
|
if (w.depth > Y.depth)
|
|
3804
3843
|
O = `${R} was ${ee} under ${Y.id}.`;
|
|
3805
3844
|
else {
|
|
3806
|
-
let
|
|
3807
|
-
for (;
|
|
3808
|
-
const he =
|
|
3809
|
-
|
|
3845
|
+
let j = Y;
|
|
3846
|
+
for (; j && w.depth < j.depth; ) {
|
|
3847
|
+
const he = j.parentId;
|
|
3848
|
+
j = V.find(({ id: Ee }) => Ee === he);
|
|
3810
3849
|
}
|
|
3811
|
-
|
|
3850
|
+
j && (O = `${R} was ${ge} after ${j.id}.`);
|
|
3812
3851
|
}
|
|
3813
3852
|
else {
|
|
3814
|
-
const
|
|
3815
|
-
O = `${R} was ${ge} before ${
|
|
3853
|
+
const j = V[N + 1];
|
|
3854
|
+
O = `${R} was ${ge} before ${j.id}.`;
|
|
3816
3855
|
}
|
|
3817
3856
|
return O;
|
|
3818
3857
|
}
|
|
3819
3858
|
},
|
|
3820
|
-
[
|
|
3859
|
+
[S, e, w]
|
|
3821
3860
|
);
|
|
3822
|
-
return /* @__PURE__ */
|
|
3823
|
-
|
|
3861
|
+
return /* @__PURE__ */ T("div", { role: "tree", children: /* @__PURE__ */ T(
|
|
3862
|
+
Di,
|
|
3824
3863
|
{
|
|
3825
3864
|
accessibility: { announcements: {
|
|
3826
|
-
onDragStart({ active:
|
|
3827
|
-
return `Picked up ${
|
|
3865
|
+
onDragStart({ active: x }) {
|
|
3866
|
+
return `Picked up ${x.id}.`;
|
|
3828
3867
|
},
|
|
3829
|
-
onDragMove({ active:
|
|
3830
|
-
return De("onDragMove",
|
|
3868
|
+
onDragMove({ active: x, over: R }) {
|
|
3869
|
+
return De("onDragMove", x.id, R == null ? void 0 : R.id);
|
|
3831
3870
|
},
|
|
3832
|
-
onDragOver({ active:
|
|
3833
|
-
return De("onDragOver",
|
|
3871
|
+
onDragOver({ active: x, over: R }) {
|
|
3872
|
+
return De("onDragOver", x.id, R == null ? void 0 : R.id);
|
|
3834
3873
|
},
|
|
3835
|
-
onDragEnd({ active:
|
|
3836
|
-
return De("onDragEnd",
|
|
3874
|
+
onDragEnd({ active: x, over: R }) {
|
|
3875
|
+
return De("onDragEnd", x.id, R == null ? void 0 : R.id);
|
|
3837
3876
|
},
|
|
3838
|
-
onDragCancel({ active:
|
|
3839
|
-
return `Moving was cancelled. ${
|
|
3877
|
+
onDragCancel({ active: x }) {
|
|
3878
|
+
return `Moving was cancelled. ${x.id} was dropped in its original position.`;
|
|
3840
3879
|
}
|
|
3841
3880
|
} },
|
|
3842
3881
|
sensors: _,
|
|
3843
|
-
collisionDetection:
|
|
3844
|
-
measuring:
|
|
3882
|
+
collisionDetection: Ao,
|
|
3883
|
+
measuring: Hs,
|
|
3845
3884
|
onDragStart: ne,
|
|
3846
3885
|
onDragMove: re,
|
|
3847
3886
|
onDragOver: ce,
|
|
3848
3887
|
onDragEnd: Pe,
|
|
3849
3888
|
onDragCancel: W,
|
|
3850
|
-
children: /* @__PURE__ */ sr(
|
|
3851
|
-
C.map((
|
|
3852
|
-
const { id: R, children: B, collapsed: P, depth:
|
|
3853
|
-
return /* @__PURE__ */
|
|
3889
|
+
children: /* @__PURE__ */ sr(Yi, { items: F, strategy: Xi, children: [
|
|
3890
|
+
C.map((x) => {
|
|
3891
|
+
const { id: R, children: B, collapsed: P, depth: N, canFetchChildren: Q, disableDragging: V } = x;
|
|
3892
|
+
return /* @__PURE__ */ T(
|
|
3854
3893
|
qn,
|
|
3855
3894
|
{
|
|
3856
3895
|
id: R,
|
|
3857
|
-
value:
|
|
3858
|
-
disableDragging: !!
|
|
3859
|
-
depth: R === f && w ? w.depth :
|
|
3896
|
+
value: x,
|
|
3897
|
+
disableDragging: !!V,
|
|
3898
|
+
depth: R === f && w ? w.depth : N,
|
|
3860
3899
|
indentationWidth: i,
|
|
3861
3900
|
indicator: o,
|
|
3862
3901
|
collapsed: !!(P && (B.length || Q)),
|
|
@@ -3870,18 +3909,18 @@ function Vs({
|
|
|
3870
3909
|
);
|
|
3871
3910
|
}),
|
|
3872
3911
|
ar(
|
|
3873
|
-
/* @__PURE__ */
|
|
3874
|
-
|
|
3912
|
+
/* @__PURE__ */ T(
|
|
3913
|
+
Hi,
|
|
3875
3914
|
{
|
|
3876
|
-
dropAnimation:
|
|
3877
|
-
modifiers: o ? [
|
|
3878
|
-
children: f && A ? /* @__PURE__ */
|
|
3915
|
+
dropAnimation: Vs,
|
|
3916
|
+
modifiers: o ? [Ks] : void 0,
|
|
3917
|
+
children: f && A ? /* @__PURE__ */ T(
|
|
3879
3918
|
qn,
|
|
3880
3919
|
{
|
|
3881
3920
|
id: f,
|
|
3882
3921
|
depth: A.depth,
|
|
3883
3922
|
clone: !0,
|
|
3884
|
-
childCount:
|
|
3923
|
+
childCount: fs(e, f) + 1,
|
|
3885
3924
|
value: A,
|
|
3886
3925
|
indentationWidth: i,
|
|
3887
3926
|
renderItem: h
|
|
@@ -3893,52 +3932,52 @@ function Vs({
|
|
|
3893
3932
|
)
|
|
3894
3933
|
] })
|
|
3895
3934
|
}
|
|
3896
|
-
);
|
|
3935
|
+
) });
|
|
3897
3936
|
}
|
|
3898
|
-
const
|
|
3937
|
+
const Ks = ({ transform: e }) => ({
|
|
3899
3938
|
...e,
|
|
3900
3939
|
y: e.y - 25
|
|
3901
3940
|
});
|
|
3902
|
-
function
|
|
3941
|
+
function Br(e, t, n = null) {
|
|
3903
3942
|
for (let r = 0; r < e.length; r++) {
|
|
3904
3943
|
const o = e[r];
|
|
3905
3944
|
if (o.id === t)
|
|
3906
3945
|
return { index: r, parent: n, movedItem: o };
|
|
3907
3946
|
if (o.children && o.children.length > 0) {
|
|
3908
|
-
const i =
|
|
3947
|
+
const i = Br(o.children, t, o.id);
|
|
3909
3948
|
if (i)
|
|
3910
3949
|
return i;
|
|
3911
3950
|
}
|
|
3912
3951
|
}
|
|
3913
3952
|
return null;
|
|
3914
3953
|
}
|
|
3915
|
-
const
|
|
3916
|
-
function
|
|
3954
|
+
const Za = (e) => /* @__PURE__ */ T(Us, { ...e }), en = typeof window > "u" ? global : window, tn = "@griffel/";
|
|
3955
|
+
function zr(e, t) {
|
|
3917
3956
|
return en[Symbol.for(tn + e)] || (en[Symbol.for(tn + e)] = t), en[Symbol.for(tn + e)];
|
|
3918
3957
|
}
|
|
3919
|
-
const
|
|
3958
|
+
const Fr = /* @__PURE__ */ zr("DEBUG_RESET_CLASSES", {}), Yn = /* @__PURE__ */ zr("DEFINITION_LOOKUP_TABLE", {}), st = "data-make-styles-bucket", Xs = "data-priority", nn = 7, dt = "___", qs = "_", Ys = process.env.NODE_ENV === "production" ? dt.length + nn : dt.length + nn + qs.length + nn, Zn = {}, Gn = {}, Wn = /* @__PURE__ */ new Set(), at = {
|
|
3920
3959
|
getChildrenSequences: (e) => {
|
|
3921
|
-
const t = Object.keys(
|
|
3922
|
-
return t ? t.split(
|
|
3960
|
+
const t = Object.keys(Zn).find((n) => Zn[n].startsWith(e));
|
|
3961
|
+
return t ? t.split(dt).filter((n) => n.length).map((n) => dt + n) : [];
|
|
3923
3962
|
},
|
|
3924
3963
|
addCSSRule: (e) => {
|
|
3925
3964
|
Wn.add(e);
|
|
3926
3965
|
},
|
|
3927
3966
|
addSequenceDetails: (e, t) => {
|
|
3928
3967
|
Object.entries(e).forEach(([n, r]) => {
|
|
3929
|
-
|
|
3968
|
+
Gn[r.substring(0, Ys)] = {
|
|
3930
3969
|
slotName: n,
|
|
3931
3970
|
sourceURL: t
|
|
3932
3971
|
};
|
|
3933
3972
|
});
|
|
3934
3973
|
},
|
|
3935
3974
|
getCSSRules: () => Array.from(Wn),
|
|
3936
|
-
getSequenceDetails: (e) =>
|
|
3975
|
+
getSequenceDetails: (e) => Gn[e]
|
|
3937
3976
|
};
|
|
3938
3977
|
function Jn(e, t) {
|
|
3939
3978
|
return Array.isArray(e) ? t === "rtl" ? e[1] : e[0] : e || "";
|
|
3940
3979
|
}
|
|
3941
|
-
function
|
|
3980
|
+
function Zs(e, t, n, r) {
|
|
3942
3981
|
const o = e[0], i = e[1];
|
|
3943
3982
|
return Object.entries(o).map(([s, a]) => {
|
|
3944
3983
|
const c = Jn(a, i);
|
|
@@ -3959,30 +3998,30 @@ function qs(e, t, n, r) {
|
|
|
3959
3998
|
};
|
|
3960
3999
|
});
|
|
3961
4000
|
}
|
|
3962
|
-
function
|
|
4001
|
+
function jr(e, t) {
|
|
3963
4002
|
const n = Yn[e];
|
|
3964
4003
|
if (n === void 0)
|
|
3965
4004
|
return;
|
|
3966
|
-
const r = t ? Yn[t.sequenceHash] : void 0, o =
|
|
4005
|
+
const r = t ? Yn[t.sequenceHash] : void 0, o = Zs(n, r, t == null ? void 0 : t.debugClassNames, t == null ? void 0 : t.children), i = {
|
|
3967
4006
|
sequenceHash: e,
|
|
3968
4007
|
direction: n[1],
|
|
3969
4008
|
children: [],
|
|
3970
4009
|
debugClassNames: o
|
|
3971
4010
|
};
|
|
3972
|
-
return
|
|
3973
|
-
const c =
|
|
4011
|
+
return at.getChildrenSequences(i.sequenceHash).reverse().forEach((a) => {
|
|
4012
|
+
const c = jr(a, i);
|
|
3974
4013
|
c && i.children.push(c);
|
|
3975
4014
|
}), i.children.length || (i.rules = {}, i.debugClassNames.forEach(({
|
|
3976
4015
|
className: a
|
|
3977
4016
|
}) => {
|
|
3978
|
-
const c =
|
|
4017
|
+
const c = at.getSequenceDetails(e);
|
|
3979
4018
|
c && (i.slot = c.slotName, i.sourceURL = c.sourceURL);
|
|
3980
|
-
const l =
|
|
4019
|
+
const l = at.getCSSRules().find((u) => u.includes(a));
|
|
3981
4020
|
i.rules[a] = l;
|
|
3982
4021
|
})), i;
|
|
3983
4022
|
}
|
|
3984
|
-
function
|
|
3985
|
-
if (
|
|
4023
|
+
function Gs(e) {
|
|
4024
|
+
if (Fr[e] === void 0)
|
|
3986
4025
|
return;
|
|
3987
4026
|
const r = {
|
|
3988
4027
|
sequenceHash: e,
|
|
@@ -3995,11 +4034,11 @@ function Ys(e) {
|
|
|
3995
4034
|
r.rules = {}, r.slot = "makeResetStyles()";
|
|
3996
4035
|
const [{
|
|
3997
4036
|
className: o
|
|
3998
|
-
}] = r.debugClassNames, i =
|
|
4037
|
+
}] = r.debugClassNames, i = at.getCSSRules().filter((s) => s.includes(`.${o}`));
|
|
3999
4038
|
return r.rules[o] = i.join(""), r;
|
|
4000
4039
|
}
|
|
4001
|
-
function
|
|
4002
|
-
const n = e ?
|
|
4040
|
+
function Ws(e, t) {
|
|
4041
|
+
const n = e ? jr(e) : void 0, r = t ? Gs(t) : void 0;
|
|
4003
4042
|
return !n && !r ? void 0 : n ? r ? {
|
|
4004
4043
|
sequenceHash: n.sequenceHash + r.sequenceHash,
|
|
4005
4044
|
direction: n.direction,
|
|
@@ -4007,7 +4046,7 @@ function Gs(e, t) {
|
|
|
4007
4046
|
debugClassNames: [...n.debugClassNames, ...r.debugClassNames]
|
|
4008
4047
|
} : n : r;
|
|
4009
4048
|
}
|
|
4010
|
-
function
|
|
4049
|
+
function Js(e) {
|
|
4011
4050
|
const t = e.defaultView;
|
|
4012
4051
|
if (!t || t.__GRIFFEL_DEVTOOLS__)
|
|
4013
4052
|
return;
|
|
@@ -4015,8 +4054,8 @@ function Zs(e) {
|
|
|
4015
4054
|
getInfo: (r) => {
|
|
4016
4055
|
let o, i;
|
|
4017
4056
|
for (const s of r.classList)
|
|
4018
|
-
s.startsWith(
|
|
4019
|
-
return
|
|
4057
|
+
s.startsWith(dt) && (o = s), Fr[s] && (i = s);
|
|
4058
|
+
return Ws(o, i);
|
|
4020
4059
|
}
|
|
4021
4060
|
};
|
|
4022
4061
|
Object.defineProperty(t, "__GRIFFEL_DEVTOOLS__", {
|
|
@@ -4035,16 +4074,16 @@ const Qn = /* @__PURE__ */ (() => {
|
|
|
4035
4074
|
return !1;
|
|
4036
4075
|
}
|
|
4037
4076
|
})();
|
|
4038
|
-
function
|
|
4077
|
+
function Qs(e) {
|
|
4039
4078
|
if (!Array.isArray(e))
|
|
4040
4079
|
return [e];
|
|
4041
4080
|
if (process.env.NODE_ENV !== "production" && e.length > 2)
|
|
4042
4081
|
throw new Error("CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues");
|
|
4043
4082
|
return e;
|
|
4044
4083
|
}
|
|
4045
|
-
function
|
|
4084
|
+
function ea(e, t, n, r) {
|
|
4046
4085
|
const o = [];
|
|
4047
|
-
if (r[
|
|
4086
|
+
if (r[st] = t, r[Xs] = String(n), e)
|
|
4048
4087
|
for (const s in r)
|
|
4049
4088
|
e.setAttribute(s, r[s]);
|
|
4050
4089
|
function i(s) {
|
|
@@ -4060,7 +4099,7 @@ function Js(e, t, n, r) {
|
|
|
4060
4099
|
}
|
|
4061
4100
|
};
|
|
4062
4101
|
}
|
|
4063
|
-
const
|
|
4102
|
+
const ta = [
|
|
4064
4103
|
// reset styles
|
|
4065
4104
|
"r",
|
|
4066
4105
|
// catch-all
|
|
@@ -4089,35 +4128,35 @@ const Qs = [
|
|
|
4089
4128
|
"m",
|
|
4090
4129
|
// @container rules
|
|
4091
4130
|
"c"
|
|
4092
|
-
], er = /* @__PURE__ */
|
|
4093
|
-
function
|
|
4131
|
+
], er = /* @__PURE__ */ ta.reduce((e, t, n) => (e[t] = n, e), {});
|
|
4132
|
+
function na(e, t, n) {
|
|
4094
4133
|
return (e === "m" ? e + t : e) + n;
|
|
4095
4134
|
}
|
|
4096
|
-
function
|
|
4135
|
+
function ra(e, t, n, r, o = {}) {
|
|
4097
4136
|
var i, s;
|
|
4098
|
-
const a = e === "m", c = (i = o.m) !== null && i !== void 0 ? i : "0", l = (s = o.p) !== null && s !== void 0 ? s : 0, u =
|
|
4137
|
+
const a = e === "m", c = (i = o.m) !== null && i !== void 0 ? i : "0", l = (s = o.p) !== null && s !== void 0 ? s : 0, u = na(e, c, l);
|
|
4099
4138
|
if (!r.stylesheets[u]) {
|
|
4100
|
-
const d = t && t.createElement("style"), h =
|
|
4139
|
+
const d = t && t.createElement("style"), h = ea(d, e, l, Object.assign({}, r.styleElementAttributes, a && {
|
|
4101
4140
|
media: c
|
|
4102
4141
|
}));
|
|
4103
|
-
r.stylesheets[u] = h, t && d && t.head.insertBefore(d,
|
|
4142
|
+
r.stylesheets[u] = h, t != null && t.head && d && t.head.insertBefore(d, ia(t, n, e, r, o));
|
|
4104
4143
|
}
|
|
4105
4144
|
return r.stylesheets[u];
|
|
4106
4145
|
}
|
|
4107
|
-
function
|
|
4146
|
+
function oa(e, t, n) {
|
|
4108
4147
|
var r, o;
|
|
4109
|
-
const i = t + ((r = n.m) !== null && r !== void 0 ? r : ""), s = e.getAttribute(
|
|
4148
|
+
const i = t + ((r = n.m) !== null && r !== void 0 ? r : ""), s = e.getAttribute(st) + ((o = e.media) !== null && o !== void 0 ? o : "");
|
|
4110
4149
|
return i === s;
|
|
4111
4150
|
}
|
|
4112
|
-
function
|
|
4151
|
+
function ia(e, t, n, r, o = {}) {
|
|
4113
4152
|
var i, s;
|
|
4114
4153
|
const a = er[n], c = (i = o.m) !== null && i !== void 0 ? i : "", l = (s = o.p) !== null && s !== void 0 ? s : 0;
|
|
4115
|
-
let u = (g) => a - er[g.getAttribute(
|
|
4154
|
+
let u = (g) => a - er[g.getAttribute(st)], d = e.head.querySelectorAll(`[${st}]`);
|
|
4116
4155
|
if (n === "m") {
|
|
4117
|
-
const g = e.head.querySelectorAll(`[${
|
|
4156
|
+
const g = e.head.querySelectorAll(`[${st}="${n}"]`);
|
|
4118
4157
|
g.length && (d = g, u = (p) => r.compareMediaQueries(c, p.media));
|
|
4119
4158
|
}
|
|
4120
|
-
const h = (g) =>
|
|
4159
|
+
const h = (g) => oa(g, n, o) ? l - Number(g.getAttribute("data-priority")) : u(g), f = d.length;
|
|
4121
4160
|
let b = f - 1;
|
|
4122
4161
|
for (; b >= 0; ) {
|
|
4123
4162
|
const g = d.item(b);
|
|
@@ -4127,49 +4166,49 @@ function ra(e, t, n, r, o = {}) {
|
|
|
4127
4166
|
}
|
|
4128
4167
|
return f > 0 ? d.item(0) : t ? t.nextSibling : null;
|
|
4129
4168
|
}
|
|
4130
|
-
const
|
|
4169
|
+
const sa = /* @__PURE__ */ ["-moz-placeholder", "-moz-focus-inner", "-moz-focusring", "-ms-input-placeholder", "-moz-read-write", "-moz-read-only"].join("|"), aa = /* @__PURE__ */ new RegExp(`:(${sa})`);
|
|
4131
4170
|
function tr(e, t) {
|
|
4132
4171
|
try {
|
|
4133
4172
|
e.insertRule(t);
|
|
4134
4173
|
} catch (n) {
|
|
4135
|
-
process.env.NODE_ENV !== "production" && !
|
|
4174
|
+
process.env.NODE_ENV !== "production" && !aa.test(t) && console.error(`There was a problem inserting the following rule: "${t}"`, n);
|
|
4136
4175
|
}
|
|
4137
4176
|
}
|
|
4138
|
-
let
|
|
4139
|
-
const
|
|
4140
|
-
function
|
|
4177
|
+
let ca = 0;
|
|
4178
|
+
const la = (e, t) => e < t ? -1 : e > t ? 1 : 0;
|
|
4179
|
+
function ua(e = typeof document > "u" ? void 0 : document, t = {}) {
|
|
4141
4180
|
const {
|
|
4142
4181
|
classNameHashSalt: n,
|
|
4143
4182
|
unstable_filterCSSRule: r,
|
|
4144
4183
|
insertionPoint: o,
|
|
4145
4184
|
styleElementAttributes: i,
|
|
4146
|
-
compareMediaQueries: s =
|
|
4185
|
+
compareMediaQueries: s = la
|
|
4147
4186
|
} = t, a = {
|
|
4148
4187
|
classNameHashSalt: n,
|
|
4149
4188
|
insertionCache: {},
|
|
4150
4189
|
stylesheets: {},
|
|
4151
4190
|
styleElementAttributes: Object.freeze(i),
|
|
4152
4191
|
compareMediaQueries: s,
|
|
4153
|
-
id: `d${
|
|
4192
|
+
id: `d${ca++}`,
|
|
4154
4193
|
insertCSSRules(c) {
|
|
4155
4194
|
for (const l in c) {
|
|
4156
4195
|
const u = c[l];
|
|
4157
4196
|
for (let d = 0, h = u.length; d < h; d++) {
|
|
4158
|
-
const [f, b] =
|
|
4159
|
-
a.insertionCache[f] || (a.insertionCache[f] = l, process.env.NODE_ENV !== "production" && Qn &&
|
|
4197
|
+
const [f, b] = Qs(u[d]), g = ra(l, e, o || null, a, b);
|
|
4198
|
+
a.insertionCache[f] || (a.insertionCache[f] = l, process.env.NODE_ENV !== "production" && Qn && at.addCSSRule(f), r ? r(f) && tr(g, f) : tr(g, f));
|
|
4160
4199
|
}
|
|
4161
4200
|
}
|
|
4162
4201
|
}
|
|
4163
4202
|
};
|
|
4164
|
-
return e && process.env.NODE_ENV !== "production" && Qn &&
|
|
4203
|
+
return e && process.env.NODE_ENV !== "production" && Qn && Js(e), a;
|
|
4165
4204
|
}
|
|
4166
|
-
const
|
|
4205
|
+
const da = () => {
|
|
4167
4206
|
const e = {};
|
|
4168
4207
|
return function(n, r) {
|
|
4169
4208
|
e[n.id] === void 0 && (n.insertCSSRules(r), e[n.id] = !0);
|
|
4170
4209
|
};
|
|
4171
|
-
},
|
|
4172
|
-
function
|
|
4210
|
+
}, fa = /[A-Z]/g, ga = /^ms-/, rn = {};
|
|
4211
|
+
function ha(e) {
|
|
4173
4212
|
return "-" + e.toLowerCase();
|
|
4174
4213
|
}
|
|
4175
4214
|
function nr(e) {
|
|
@@ -4177,26 +4216,26 @@ function nr(e) {
|
|
|
4177
4216
|
return rn[e];
|
|
4178
4217
|
if (e.substr(0, 2) === "--")
|
|
4179
4218
|
return e;
|
|
4180
|
-
const t = e.replace(
|
|
4181
|
-
return rn[e] =
|
|
4219
|
+
const t = e.replace(fa, ha);
|
|
4220
|
+
return rn[e] = ga.test(t) ? "-" + t : t;
|
|
4182
4221
|
}
|
|
4183
|
-
var
|
|
4184
|
-
function
|
|
4185
|
-
return
|
|
4222
|
+
var ct = "-moz-", ve = "-webkit-", Hr = "comm", Ft = "rule", Sn = "decl", pa = "@import", va = "@namespace", ba = "@keyframes", ma = "@layer", Vr = Math.abs, jt = String.fromCharCode, ya = Object.assign;
|
|
4223
|
+
function wa(e, t) {
|
|
4224
|
+
return G(e, 0) ^ 45 ? (((t << 2 ^ G(e, 0)) << 2 ^ G(e, 1)) << 2 ^ G(e, 2)) << 2 ^ G(e, 3) : 0;
|
|
4186
4225
|
}
|
|
4187
|
-
function
|
|
4226
|
+
function Ur(e) {
|
|
4188
4227
|
return e.trim();
|
|
4189
4228
|
}
|
|
4190
|
-
function
|
|
4229
|
+
function Kr(e, t) {
|
|
4191
4230
|
return (e = t.exec(e)) ? e[0] : e;
|
|
4192
4231
|
}
|
|
4193
4232
|
function te(e, t, n) {
|
|
4194
4233
|
return e.replace(t, n);
|
|
4195
4234
|
}
|
|
4196
|
-
function
|
|
4235
|
+
function Xr(e, t, n) {
|
|
4197
4236
|
return e.indexOf(t, n);
|
|
4198
4237
|
}
|
|
4199
|
-
function
|
|
4238
|
+
function G(e, t) {
|
|
4200
4239
|
return e.charCodeAt(t) | 0;
|
|
4201
4240
|
}
|
|
4202
4241
|
function Ue(e, t, n) {
|
|
@@ -4205,39 +4244,39 @@ function Ue(e, t, n) {
|
|
|
4205
4244
|
function be(e) {
|
|
4206
4245
|
return e.length;
|
|
4207
4246
|
}
|
|
4208
|
-
function
|
|
4247
|
+
function qr(e) {
|
|
4209
4248
|
return e.length;
|
|
4210
4249
|
}
|
|
4211
4250
|
function ke(e, t) {
|
|
4212
4251
|
return t.push(e), e;
|
|
4213
4252
|
}
|
|
4214
|
-
function
|
|
4253
|
+
function xa(e, t) {
|
|
4215
4254
|
return e.map(t).join("");
|
|
4216
4255
|
}
|
|
4217
|
-
var
|
|
4218
|
-
function
|
|
4219
|
-
return { value: e, root: t, parent: n, type: r, props: o, children: i, line:
|
|
4256
|
+
var Ht = 1, Ke = 1, Yr = 0, ae = 0, H = 0, We = "";
|
|
4257
|
+
function Vt(e, t, n, r, o, i, s, a) {
|
|
4258
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Ht, column: Ke, length: s, return: "", siblings: a };
|
|
4220
4259
|
}
|
|
4221
4260
|
function on(e, t) {
|
|
4222
|
-
return
|
|
4223
|
-
}
|
|
4224
|
-
function wa() {
|
|
4225
|
-
return V;
|
|
4261
|
+
return ya(Vt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
4226
4262
|
}
|
|
4227
4263
|
function Sa() {
|
|
4228
|
-
return
|
|
4264
|
+
return H;
|
|
4265
|
+
}
|
|
4266
|
+
function Ca() {
|
|
4267
|
+
return H = ae > 0 ? G(We, --ae) : 0, Ke--, H === 10 && (Ke = 1, Ht--), H;
|
|
4229
4268
|
}
|
|
4230
4269
|
function de() {
|
|
4231
|
-
return
|
|
4270
|
+
return H = ae < Yr ? G(We, ae++) : 0, Ke++, H === 10 && (Ke = 1, Ht++), H;
|
|
4232
4271
|
}
|
|
4233
4272
|
function _e() {
|
|
4234
|
-
return
|
|
4273
|
+
return G(We, ae);
|
|
4235
4274
|
}
|
|
4236
4275
|
function Ct() {
|
|
4237
4276
|
return ae;
|
|
4238
4277
|
}
|
|
4239
4278
|
function Ut(e, t) {
|
|
4240
|
-
return Ue(
|
|
4279
|
+
return Ue(We, e, t);
|
|
4241
4280
|
}
|
|
4242
4281
|
function Xe(e) {
|
|
4243
4282
|
switch (e) {
|
|
@@ -4277,52 +4316,52 @@ function Xe(e) {
|
|
|
4277
4316
|
}
|
|
4278
4317
|
return 0;
|
|
4279
4318
|
}
|
|
4280
|
-
function
|
|
4281
|
-
return
|
|
4319
|
+
function Zr(e) {
|
|
4320
|
+
return Ht = Ke = 1, Yr = be(We = e), ae = 0, [];
|
|
4282
4321
|
}
|
|
4283
4322
|
function Gr(e) {
|
|
4284
|
-
return
|
|
4323
|
+
return We = "", e;
|
|
4285
4324
|
}
|
|
4286
4325
|
function Dt(e) {
|
|
4287
|
-
return
|
|
4326
|
+
return Ur(Ut(ae - 1, fn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
4288
4327
|
}
|
|
4289
|
-
function
|
|
4290
|
-
return Gr(
|
|
4328
|
+
function Da(e) {
|
|
4329
|
+
return Gr(Ea(Zr(e)));
|
|
4291
4330
|
}
|
|
4292
|
-
function
|
|
4293
|
-
for (; (
|
|
4331
|
+
function Ra(e) {
|
|
4332
|
+
for (; (H = _e()) && H < 33; )
|
|
4294
4333
|
de();
|
|
4295
|
-
return Xe(e) > 2 || Xe(
|
|
4334
|
+
return Xe(e) > 2 || Xe(H) > 3 ? "" : " ";
|
|
4296
4335
|
}
|
|
4297
|
-
function
|
|
4336
|
+
function Ea(e) {
|
|
4298
4337
|
for (; de(); )
|
|
4299
|
-
switch (Xe(
|
|
4338
|
+
switch (Xe(H)) {
|
|
4300
4339
|
case 0:
|
|
4301
|
-
ke(
|
|
4340
|
+
ke(Wr(ae - 1), e);
|
|
4302
4341
|
break;
|
|
4303
4342
|
case 2:
|
|
4304
|
-
ke(Dt(
|
|
4343
|
+
ke(Dt(H), e);
|
|
4305
4344
|
break;
|
|
4306
4345
|
default:
|
|
4307
|
-
ke(jt(
|
|
4346
|
+
ke(jt(H), e);
|
|
4308
4347
|
}
|
|
4309
4348
|
return e;
|
|
4310
4349
|
}
|
|
4311
|
-
function
|
|
4312
|
-
for (; --t && de() && !(
|
|
4350
|
+
function Ia(e, t) {
|
|
4351
|
+
for (; --t && de() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
4313
4352
|
;
|
|
4314
4353
|
return Ut(e, Ct() + (t < 6 && _e() == 32 && de() == 32));
|
|
4315
4354
|
}
|
|
4316
4355
|
function fn(e) {
|
|
4317
4356
|
for (; de(); )
|
|
4318
|
-
switch (
|
|
4357
|
+
switch (H) {
|
|
4319
4358
|
// ] ) " '
|
|
4320
4359
|
case e:
|
|
4321
4360
|
return ae;
|
|
4322
4361
|
// " '
|
|
4323
4362
|
case 34:
|
|
4324
4363
|
case 39:
|
|
4325
|
-
e !== 34 && e !== 39 && fn(
|
|
4364
|
+
e !== 34 && e !== 39 && fn(H);
|
|
4326
4365
|
break;
|
|
4327
4366
|
// (
|
|
4328
4367
|
case 40:
|
|
@@ -4335,27 +4374,27 @@ function fn(e) {
|
|
|
4335
4374
|
}
|
|
4336
4375
|
return ae;
|
|
4337
4376
|
}
|
|
4338
|
-
function
|
|
4339
|
-
for (; de() && e +
|
|
4340
|
-
if (e +
|
|
4377
|
+
function Oa(e, t) {
|
|
4378
|
+
for (; de() && e + H !== 57; )
|
|
4379
|
+
if (e + H === 84 && _e() === 47)
|
|
4341
4380
|
break;
|
|
4342
4381
|
return "/*" + Ut(t, ae - 1) + "*" + jt(e === 47 ? e : de());
|
|
4343
4382
|
}
|
|
4344
|
-
function
|
|
4383
|
+
function Wr(e) {
|
|
4345
4384
|
for (; !Xe(_e()); )
|
|
4346
4385
|
de();
|
|
4347
4386
|
return Ut(e, ae);
|
|
4348
4387
|
}
|
|
4349
|
-
function
|
|
4350
|
-
return Gr(Rt("", null, null, null, [""], e =
|
|
4388
|
+
function Aa(e) {
|
|
4389
|
+
return Gr(Rt("", null, null, null, [""], e = Zr(e), 0, [0], e));
|
|
4351
4390
|
}
|
|
4352
4391
|
function Rt(e, t, n, r, o, i, s, a, c) {
|
|
4353
|
-
for (var l = 0, u = 0, d = s, h = 0, f = 0, b = 0, g = 1, p = 1, y = 1, m = 0,
|
|
4392
|
+
for (var l = 0, u = 0, d = s, h = 0, f = 0, b = 0, g = 1, p = 1, y = 1, m = 0, S = "", D = o, C = i, w = r, v = S; p; )
|
|
4354
4393
|
switch (b = m, m = de()) {
|
|
4355
4394
|
// (
|
|
4356
4395
|
case 40:
|
|
4357
|
-
if (b != 108 &&
|
|
4358
|
-
|
|
4396
|
+
if (b != 108 && G(v, d - 1) == 58) {
|
|
4397
|
+
Xr(v += te(Dt(m), "&", "&\f"), "&\f", Vr(l ? a[l - 1] : 0)) != -1 && (y = -1);
|
|
4359
4398
|
break;
|
|
4360
4399
|
}
|
|
4361
4400
|
// " ' [
|
|
@@ -4369,18 +4408,18 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4369
4408
|
case 10:
|
|
4370
4409
|
case 13:
|
|
4371
4410
|
case 32:
|
|
4372
|
-
v +=
|
|
4411
|
+
v += Ra(b);
|
|
4373
4412
|
break;
|
|
4374
4413
|
// \
|
|
4375
4414
|
case 92:
|
|
4376
|
-
v +=
|
|
4415
|
+
v += Ia(Ct() - 1, 7);
|
|
4377
4416
|
continue;
|
|
4378
4417
|
// /
|
|
4379
4418
|
case 47:
|
|
4380
4419
|
switch (_e()) {
|
|
4381
4420
|
case 42:
|
|
4382
4421
|
case 47:
|
|
4383
|
-
ke(Oa(
|
|
4422
|
+
ke(Ta(Oa(de(), Ct()), t, n, c), c), (Xe(b || 1) == 5 || Xe(_e() || 1) == 5) && be(v) && Ue(v, -1, void 0) !== " " && (v += " ");
|
|
4384
4423
|
break;
|
|
4385
4424
|
default:
|
|
4386
4425
|
v += "/";
|
|
@@ -4407,17 +4446,17 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4407
4446
|
v += ";";
|
|
4408
4447
|
// { rule/at-rule
|
|
4409
4448
|
default:
|
|
4410
|
-
if (ke(w = rr(v, t, n, l, u, o, a,
|
|
4449
|
+
if (ke(w = rr(v, t, n, l, u, o, a, S, D = [], C = [], d, i), i), m === 123)
|
|
4411
4450
|
if (u === 0)
|
|
4412
4451
|
Rt(v, t, w, w, D, i, d, a, C);
|
|
4413
4452
|
else {
|
|
4414
4453
|
switch (h) {
|
|
4415
4454
|
// c(ontainer)
|
|
4416
4455
|
case 99:
|
|
4417
|
-
if (
|
|
4456
|
+
if (G(v, 3) === 110) break;
|
|
4418
4457
|
// l(ayer)
|
|
4419
4458
|
case 108:
|
|
4420
|
-
if (
|
|
4459
|
+
if (G(v, 2) === 97) break;
|
|
4421
4460
|
default:
|
|
4422
4461
|
u = 0;
|
|
4423
4462
|
// d(ocument) m(edia) s(upports)
|
|
@@ -4425,10 +4464,10 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4425
4464
|
case 109:
|
|
4426
4465
|
case 115:
|
|
4427
4466
|
}
|
|
4428
|
-
u ? Rt(e, w, w, r && ke(rr(e, w, w, 0, 0, o, a,
|
|
4467
|
+
u ? Rt(e, w, w, r && ke(rr(e, w, w, 0, 0, o, a, S, o, D = [], d, C), C), o, C, d, a, r ? D : C) : Rt(v, w, w, w, [""], C, 0, a, C);
|
|
4429
4468
|
}
|
|
4430
4469
|
}
|
|
4431
|
-
l = u = f = 0, g = y = 1,
|
|
4470
|
+
l = u = f = 0, g = y = 1, S = v = "", d = s;
|
|
4432
4471
|
break;
|
|
4433
4472
|
// :
|
|
4434
4473
|
case 58:
|
|
@@ -4437,7 +4476,7 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4437
4476
|
if (g < 1) {
|
|
4438
4477
|
if (m == 123)
|
|
4439
4478
|
--g;
|
|
4440
|
-
else if (m == 125 && g++ == 0 &&
|
|
4479
|
+
else if (m == 125 && g++ == 0 && Ca() == 125)
|
|
4441
4480
|
continue;
|
|
4442
4481
|
}
|
|
4443
4482
|
switch (v += jt(m), m * g) {
|
|
@@ -4451,7 +4490,7 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4451
4490
|
break;
|
|
4452
4491
|
// @
|
|
4453
4492
|
case 64:
|
|
4454
|
-
_e() === 45 && (v += Dt(de())), h = _e(), u = d = be(
|
|
4493
|
+
_e() === 45 && (v += Dt(de())), h = _e(), u = d = be(S = v += Wr(Ct())), m++;
|
|
4455
4494
|
break;
|
|
4456
4495
|
// -
|
|
4457
4496
|
case 45:
|
|
@@ -4461,53 +4500,53 @@ function Rt(e, t, n, r, o, i, s, a, c) {
|
|
|
4461
4500
|
return i;
|
|
4462
4501
|
}
|
|
4463
4502
|
function rr(e, t, n, r, o, i, s, a, c, l, u, d) {
|
|
4464
|
-
for (var h = o - 1, f = o === 0 ? i : [""], b =
|
|
4465
|
-
for (var m = 0,
|
|
4466
|
-
(D =
|
|
4467
|
-
return
|
|
4503
|
+
for (var h = o - 1, f = o === 0 ? i : [""], b = qr(f), g = 0, p = 0, y = 0; g < r; ++g)
|
|
4504
|
+
for (var m = 0, S = Ue(e, h + 1, h = Vr(p = s[g])), D = e; m < b; ++m)
|
|
4505
|
+
(D = Ur(p > 0 ? f[m] + " " + S : te(S, /&\f/g, f[m]))) && (c[y++] = D);
|
|
4506
|
+
return Vt(e, t, n, o === 0 ? Ft : a, c, l, u, d);
|
|
4468
4507
|
}
|
|
4469
|
-
function
|
|
4470
|
-
return
|
|
4508
|
+
function Ta(e, t, n, r) {
|
|
4509
|
+
return Vt(e, t, n, Hr, jt(Sa()), Ue(e, 2, -2), 0, r);
|
|
4471
4510
|
}
|
|
4472
4511
|
function or(e, t, n, r, o) {
|
|
4473
|
-
return
|
|
4512
|
+
return Vt(e, t, n, Sn, Ue(e, 0, r), Ue(e, r + 1, -1), r, o);
|
|
4474
4513
|
}
|
|
4475
|
-
function
|
|
4514
|
+
function ft(e, t) {
|
|
4476
4515
|
for (var n = "", r = 0; r < e.length; r++)
|
|
4477
4516
|
n += t(e[r], r, e, t) || "";
|
|
4478
4517
|
return n;
|
|
4479
4518
|
}
|
|
4480
|
-
function
|
|
4519
|
+
function Na(e, t, n, r) {
|
|
4481
4520
|
switch (e.type) {
|
|
4482
|
-
case
|
|
4521
|
+
case ma:
|
|
4483
4522
|
if (e.children.length) break;
|
|
4484
|
-
case
|
|
4485
|
-
case
|
|
4486
|
-
case
|
|
4523
|
+
case pa:
|
|
4524
|
+
case va:
|
|
4525
|
+
case Sn:
|
|
4487
4526
|
return e.return = e.return || e.value;
|
|
4488
|
-
case
|
|
4527
|
+
case Hr:
|
|
4489
4528
|
return "";
|
|
4490
|
-
case
|
|
4491
|
-
return e.return = e.value + "{" +
|
|
4529
|
+
case ba:
|
|
4530
|
+
return e.return = e.value + "{" + ft(e.children, r) + "}";
|
|
4492
4531
|
case Ft:
|
|
4493
4532
|
if (!be(e.value = e.props.join(","))) return "";
|
|
4494
4533
|
}
|
|
4495
|
-
return be(n =
|
|
4534
|
+
return be(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
4496
4535
|
}
|
|
4497
|
-
function
|
|
4498
|
-
var t =
|
|
4536
|
+
function Ma(e) {
|
|
4537
|
+
var t = qr(e);
|
|
4499
4538
|
return function(n, r, o, i) {
|
|
4500
4539
|
for (var s = "", a = 0; a < t; a++)
|
|
4501
4540
|
s += e[a](n, r, o, i) || "";
|
|
4502
4541
|
return s;
|
|
4503
4542
|
};
|
|
4504
4543
|
}
|
|
4505
|
-
function
|
|
4544
|
+
function _a(e) {
|
|
4506
4545
|
return function(t) {
|
|
4507
4546
|
t.root || (t = t.return) && e(t);
|
|
4508
4547
|
};
|
|
4509
4548
|
}
|
|
4510
|
-
const
|
|
4549
|
+
const La = (e) => {
|
|
4511
4550
|
switch (e.type) {
|
|
4512
4551
|
case Ft:
|
|
4513
4552
|
if (typeof e.props == "string") {
|
|
@@ -4515,7 +4554,7 @@ const Ma = (e) => {
|
|
|
4515
4554
|
throw new Error(`"element.props" has type "string" (${JSON.stringify(e.props, null, 2)}), it's not expected. Please report a bug if it happens.`);
|
|
4516
4555
|
return;
|
|
4517
4556
|
}
|
|
4518
|
-
e.props = e.props.map((t) => t.indexOf(":global(") === -1 ? t :
|
|
4557
|
+
e.props = e.props.map((t) => t.indexOf(":global(") === -1 ? t : Da(t).reduce((n, r, o, i) => {
|
|
4519
4558
|
if (r === "")
|
|
4520
4559
|
return n;
|
|
4521
4560
|
if (r === ":" && i[o + 1] === "global") {
|
|
@@ -4530,8 +4569,8 @@ const Ma = (e) => {
|
|
|
4530
4569
|
}, []).join(""));
|
|
4531
4570
|
}
|
|
4532
4571
|
};
|
|
4533
|
-
function
|
|
4534
|
-
switch (
|
|
4572
|
+
function Jr(e, t, n) {
|
|
4573
|
+
switch (wa(e, t)) {
|
|
4535
4574
|
// color-adjust
|
|
4536
4575
|
case 5103:
|
|
4537
4576
|
return ve + "print-" + e + e;
|
|
@@ -4549,21 +4588,21 @@ function Wr(e, t, n) {
|
|
|
4549
4588
|
return ve + e + e;
|
|
4550
4589
|
// backdrop-filter, background-clip: text
|
|
4551
4590
|
case 4215:
|
|
4552
|
-
if (
|
|
4591
|
+
if (G(e, 9) === 102 || G(e, t + 1) === 116)
|
|
4553
4592
|
return ve + e + e;
|
|
4554
4593
|
break;
|
|
4555
4594
|
// tab-size
|
|
4556
4595
|
case 4789:
|
|
4557
|
-
return
|
|
4596
|
+
return ct + e + e;
|
|
4558
4597
|
// appearance, user-select, hyphens
|
|
4559
4598
|
case 5349:
|
|
4560
4599
|
case 4246:
|
|
4561
4600
|
case 6968:
|
|
4562
|
-
return ve + e +
|
|
4601
|
+
return ve + e + ct + e + e;
|
|
4563
4602
|
// cursor
|
|
4564
4603
|
// @ts-expect-error fall through is intentional here
|
|
4565
4604
|
case 6187:
|
|
4566
|
-
if (!
|
|
4605
|
+
if (!Kr(e, /grab/))
|
|
4567
4606
|
return te(te(te(e, /(zoom-|grab)/, ve + "$1"), /(image-set)/, ve + "$1"), e, "") + e;
|
|
4568
4607
|
// background, background-image
|
|
4569
4608
|
case 5495:
|
|
@@ -4588,48 +4627,48 @@ function Wr(e, t, n) {
|
|
|
4588
4627
|
case 5789:
|
|
4589
4628
|
case 5021:
|
|
4590
4629
|
case 4765:
|
|
4591
|
-
if (be(e) - 1 - t > 6) switch (
|
|
4630
|
+
if (be(e) - 1 - t > 6) switch (G(e, t + 1)) {
|
|
4592
4631
|
// (f)ill-available
|
|
4593
4632
|
// @ts-expect-error fall through is intentional here
|
|
4594
4633
|
case 102:
|
|
4595
|
-
if (
|
|
4634
|
+
if (G(e, t + 3) === 108)
|
|
4596
4635
|
return te(
|
|
4597
4636
|
e,
|
|
4598
4637
|
/(.+:)(.+)-([^]+)/,
|
|
4599
4638
|
// eslint-disable-next-line no-useless-concat, eqeqeq
|
|
4600
|
-
"$1" + ve + "$2-$3$1" +
|
|
4639
|
+
"$1" + ve + "$2-$3$1" + ct + (G(e, t + 3) == 108 ? "$3" : "$2-$3")
|
|
4601
4640
|
) + e;
|
|
4602
4641
|
// (s)tretch
|
|
4603
4642
|
case 115:
|
|
4604
|
-
return ~
|
|
4643
|
+
return ~Xr(e, "stretch") ? Jr(te(e, "stretch", "fill-available"), t) + e : e;
|
|
4605
4644
|
}
|
|
4606
4645
|
break;
|
|
4607
4646
|
}
|
|
4608
4647
|
return e;
|
|
4609
4648
|
}
|
|
4610
|
-
function
|
|
4649
|
+
function ka(e, t, n, r) {
|
|
4611
4650
|
if (e.length > -1 && !e.return) switch (e.type) {
|
|
4612
|
-
case
|
|
4613
|
-
e.return =
|
|
4651
|
+
case Sn:
|
|
4652
|
+
e.return = Jr(e.value, e.length);
|
|
4614
4653
|
return;
|
|
4615
4654
|
case Ft:
|
|
4616
4655
|
if (e.length)
|
|
4617
|
-
return
|
|
4618
|
-
switch (
|
|
4656
|
+
return xa(e.props, function(o) {
|
|
4657
|
+
switch (Kr(o, /(::plac\w+|:read-\w+)/)) {
|
|
4619
4658
|
// :read-(only|write)
|
|
4620
4659
|
case ":read-only":
|
|
4621
4660
|
case ":read-write":
|
|
4622
|
-
return
|
|
4661
|
+
return ft(
|
|
4623
4662
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4624
4663
|
// @ts-ignore
|
|
4625
4664
|
[on(e, {
|
|
4626
|
-
props: [te(o, /:(read-\w+)/, ":" +
|
|
4665
|
+
props: [te(o, /:(read-\w+)/, ":" + ct + "$1")]
|
|
4627
4666
|
})],
|
|
4628
4667
|
r
|
|
4629
4668
|
);
|
|
4630
4669
|
// :placeholder
|
|
4631
4670
|
case "::placeholder":
|
|
4632
|
-
return
|
|
4671
|
+
return ft([
|
|
4633
4672
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4634
4673
|
// @ts-ignore
|
|
4635
4674
|
on(e, {
|
|
@@ -4638,7 +4677,7 @@ function _a(e, t, n, r) {
|
|
|
4638
4677
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4639
4678
|
// @ts-ignore
|
|
4640
4679
|
on(e, {
|
|
4641
|
-
props: [te(o, /:(plac\w+)/, ":" +
|
|
4680
|
+
props: [te(o, /:(plac\w+)/, ":" + ct + "$1")]
|
|
4642
4681
|
})
|
|
4643
4682
|
], r);
|
|
4644
4683
|
}
|
|
@@ -4646,22 +4685,22 @@ function _a(e, t, n, r) {
|
|
|
4646
4685
|
});
|
|
4647
4686
|
}
|
|
4648
4687
|
}
|
|
4649
|
-
function
|
|
4688
|
+
function Pa() {
|
|
4650
4689
|
}
|
|
4651
|
-
function
|
|
4690
|
+
function Qr(e, t) {
|
|
4652
4691
|
const n = [];
|
|
4653
|
-
return
|
|
4654
|
-
Ma,
|
|
4692
|
+
return ft(Aa(e), Ma([
|
|
4655
4693
|
La,
|
|
4656
|
-
|
|
4657
|
-
|
|
4694
|
+
Pa,
|
|
4695
|
+
ka,
|
|
4696
|
+
Na,
|
|
4658
4697
|
// 💡 we are using `.insertRule()` API for DOM operations, which does not support
|
|
4659
4698
|
// insertion of multiple CSS rules in a single call. `rulesheet` plugin extracts
|
|
4660
4699
|
// individual rules to be used with this API
|
|
4661
|
-
|
|
4700
|
+
_a((r) => n.push(r))
|
|
4662
4701
|
])), n;
|
|
4663
4702
|
}
|
|
4664
|
-
function
|
|
4703
|
+
function $a(e) {
|
|
4665
4704
|
let t = "";
|
|
4666
4705
|
for (const n in e) {
|
|
4667
4706
|
const r = e[n];
|
|
@@ -4675,49 +4714,49 @@ function ka(e) {
|
|
|
4675
4714
|
}
|
|
4676
4715
|
return t;
|
|
4677
4716
|
}
|
|
4678
|
-
function
|
|
4679
|
-
const n = `${e} {${
|
|
4680
|
-
return
|
|
4717
|
+
function Ba(e, t) {
|
|
4718
|
+
const n = `${e} {${$a(t)}}`;
|
|
4719
|
+
return Qr(n)[0];
|
|
4681
4720
|
}
|
|
4682
|
-
function
|
|
4721
|
+
function za(e) {
|
|
4683
4722
|
return e.reduce((t, n) => {
|
|
4684
4723
|
if (typeof n == "string") {
|
|
4685
|
-
const r =
|
|
4724
|
+
const r = Qr(n);
|
|
4686
4725
|
for (const o of r)
|
|
4687
4726
|
t.push(o);
|
|
4688
4727
|
return t;
|
|
4689
4728
|
}
|
|
4690
4729
|
for (const r in n) {
|
|
4691
|
-
const o = n[r], i =
|
|
4730
|
+
const o = n[r], i = Ba(r, o);
|
|
4692
4731
|
t.push(i);
|
|
4693
4732
|
}
|
|
4694
4733
|
return t;
|
|
4695
4734
|
}, []);
|
|
4696
4735
|
}
|
|
4697
|
-
function
|
|
4736
|
+
function Fa(e, t = da) {
|
|
4698
4737
|
const n = t(), r = Array.isArray(e) ? e : [e];
|
|
4699
4738
|
function o(i) {
|
|
4700
4739
|
n(
|
|
4701
4740
|
i.renderer,
|
|
4702
4741
|
// 👇 static rules should be inserted into default bucket
|
|
4703
4742
|
{
|
|
4704
|
-
d:
|
|
4743
|
+
d: za(r)
|
|
4705
4744
|
}
|
|
4706
4745
|
);
|
|
4707
4746
|
}
|
|
4708
4747
|
return o;
|
|
4709
4748
|
}
|
|
4710
|
-
function
|
|
4749
|
+
function ja() {
|
|
4711
4750
|
return typeof window < "u" && !!(window.document && window.document.createElement);
|
|
4712
4751
|
}
|
|
4713
4752
|
const ir = (
|
|
4714
4753
|
// @ts-expect-error Hack to make sure that `useInsertionEffect` will not cause bundling issues in older React versions
|
|
4715
4754
|
// eslint-disable-next-line no-useless-concat
|
|
4716
4755
|
Et.useInsertionEffect ? Et.useInsertionEffect : void 0
|
|
4717
|
-
),
|
|
4756
|
+
), Ha = () => {
|
|
4718
4757
|
const e = {};
|
|
4719
4758
|
return function(n, r) {
|
|
4720
|
-
if (ir &&
|
|
4759
|
+
if (ir && ja()) {
|
|
4721
4760
|
ir(() => {
|
|
4722
4761
|
n.insertCSSRules(r);
|
|
4723
4762
|
}, [n, r]);
|
|
@@ -4725,21 +4764,21 @@ const ir = (
|
|
|
4725
4764
|
}
|
|
4726
4765
|
e[n.id] === void 0 && (n.insertCSSRules(r), e[n.id] = !0);
|
|
4727
4766
|
};
|
|
4728
|
-
},
|
|
4729
|
-
function
|
|
4730
|
-
return Et.useContext(
|
|
4767
|
+
}, Va = /* @__PURE__ */ Et.createContext(/* @__PURE__ */ ua());
|
|
4768
|
+
function Ua() {
|
|
4769
|
+
return Et.useContext(Va);
|
|
4731
4770
|
}
|
|
4732
|
-
function
|
|
4733
|
-
const t =
|
|
4771
|
+
function Ka(e) {
|
|
4772
|
+
const t = Fa(e, Ha);
|
|
4734
4773
|
return process.env.NODE_ENV === "test" ? () => {
|
|
4735
4774
|
} : function() {
|
|
4736
4775
|
const o = {
|
|
4737
|
-
renderer:
|
|
4776
|
+
renderer: Ua()
|
|
4738
4777
|
};
|
|
4739
4778
|
return t(o);
|
|
4740
4779
|
};
|
|
4741
4780
|
}
|
|
4742
|
-
const Ga = (e) =>
|
|
4781
|
+
const Ga = (e) => Ka({
|
|
4743
4782
|
'[data-ghost="true"][data-indicator="true"]': {
|
|
4744
4783
|
opacity: 1,
|
|
4745
4784
|
position: "relative",
|
|
@@ -4782,11 +4821,11 @@ const Ga = (e) => Ha({
|
|
|
4782
4821
|
}
|
|
4783
4822
|
});
|
|
4784
4823
|
export {
|
|
4785
|
-
|
|
4786
|
-
|
|
4824
|
+
Za as SortableTree,
|
|
4825
|
+
js as TreeItemStructure,
|
|
4787
4826
|
Ga as createSortableTreeGlobalStyles,
|
|
4788
4827
|
kr as getItemById,
|
|
4789
|
-
|
|
4790
|
-
|
|
4828
|
+
us as removeItemById,
|
|
4829
|
+
ds as setTreeItemProperties
|
|
4791
4830
|
};
|
|
4792
4831
|
//# sourceMappingURL=react-sortable-tree.js.map
|