@lanaco/lnc-react-ui 4.0.3 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +5 -6
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +0 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +10 -9
- package/dist/ColorInput.js +18 -18
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +16 -16
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DecimalInput.js +41 -41
- package/dist/DoubleRangeSlider.js +30 -30
- package/dist/DragAndDropFile.js +162 -162
- package/dist/DragDropFiles.js +29 -29
- package/dist/Drawer.js +46 -46
- package/dist/Dropdown.js +36 -36
- package/dist/DropdownItem.js +19 -19
- package/dist/DropdownLookup.js +34 -34
- package/dist/DropdownMenu.js +43 -43
- package/dist/FileInput.js +21 -21
- package/dist/FlexGridItem.js +13 -13
- package/dist/Grid.cjs +1 -2
- package/dist/Grid.js +36 -8
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +27 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +5 -6
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +24 -25
- package/dist/Kanban.js +446 -446
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +59 -58
- package/dist/Modal.js +38 -38
- package/dist/MultiSelectDropdown.js +2 -2
- package/dist/MultiSelectDropdownLookup.js +2 -2
- package/dist/NestedDropdownItem.js +43 -43
- package/dist/NestedMenuItem.js +44 -44
- package/dist/NotificationContainer.cjs +2 -2
- package/dist/NotificationContainer.js +24 -23
- package/dist/NumberInput.js +12 -12
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +18 -18
- package/dist/PasswordInput.js +40 -40
- package/dist/RadioGroup.js +11 -11
- package/dist/RadioInput.js +6 -6
- package/dist/RangeSlider.js +25 -25
- package/dist/SearchBar.js +73 -73
- package/dist/Sidebar.js +11 -11
- package/dist/SwipeableDrawer.js +16 -16
- package/dist/TabItem.js +25 -25
- package/dist/Tabs.js +32 -26
- package/dist/TextAreaInput.js +30 -30
- package/dist/TextInput.js +22 -22
- package/dist/ThemeProvider.js +83 -83
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +0 -1
- package/dist/TreeMenu.js +56 -56
- package/dist/style.css +1 -5
- package/package.json +1 -1
- package/bundle-visualization.html +0 -4842
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
package/dist/Kanban.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as le, jsxs as vn } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import q, { useEffect as K, useLayoutEffect as hi, useRef as X, useMemo as j, useCallback as ve, useState as ne, createContext as Gt, memo as Mr, useReducer as pi, useContext as bt, cloneElement as vi, forwardRef as Sn } from "react";
|
|
3
3
|
import { r as Mt } from "./index--Kmch3aI.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as k } from "./index-BYnWp42a.js";
|
|
5
5
|
import { a as Pt, r as Tt, l as Nt } from "./utils-C52T57HO.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as pr } from "./index-Cu0xwYjD.js";
|
|
7
7
|
import { n as Bt } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as kn } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
9
|
import { H as bi, K as yi } from "./KanbanCard-CHZ_C9kk.js";
|
|
10
10
|
import { c as mi } from "./index-DLVVKJXD.js";
|
|
11
11
|
import { c as dn, g as wi } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
@@ -25,20 +25,20 @@ function Si() {
|
|
|
25
25
|
t
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Rn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
29
29
|
function zt(e) {
|
|
30
30
|
const t = Object.prototype.toString.call(e);
|
|
31
31
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
32
32
|
t === "[object global]";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Gn(e) {
|
|
35
35
|
return "nodeType" in e;
|
|
36
36
|
}
|
|
37
37
|
function Re(e) {
|
|
38
38
|
var t, n;
|
|
39
|
-
return e ? zt(e) ? e :
|
|
39
|
+
return e ? zt(e) ? e : Gn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Wn(e) {
|
|
42
42
|
const {
|
|
43
43
|
Document: t
|
|
44
44
|
} = Re(e);
|
|
@@ -47,14 +47,14 @@ function Gn(e) {
|
|
|
47
47
|
function Wt(e) {
|
|
48
48
|
return zt(e) ? !1 : e instanceof Re(e).HTMLElement;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Lr(e) {
|
|
51
51
|
return e instanceof Re(e).SVGElement;
|
|
52
52
|
}
|
|
53
53
|
function Ft(e) {
|
|
54
|
-
return e ? zt(e) ? e.document :
|
|
54
|
+
return e ? zt(e) ? e.document : Gn(e) ? Wn(e) ? e : Wt(e) || Lr(e) ? e.ownerDocument : document : document : document;
|
|
55
55
|
}
|
|
56
|
-
const qe =
|
|
57
|
-
function
|
|
56
|
+
const qe = Rn ? hi : K;
|
|
57
|
+
function An(e) {
|
|
58
58
|
const t = X(e);
|
|
59
59
|
return qe(() => {
|
|
60
60
|
t.current = e;
|
|
@@ -91,7 +91,7 @@ function qt(e, t) {
|
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
function bn(e) {
|
|
94
|
-
const t =
|
|
94
|
+
const t = An(e), n = X(null), o = ve(
|
|
95
95
|
(i) => {
|
|
96
96
|
i !== n.current && (t == null || t(i, n.current)), n.current = i;
|
|
97
97
|
},
|
|
@@ -106,16 +106,16 @@ function yn(e) {
|
|
|
106
106
|
t.current = e;
|
|
107
107
|
}, [e]), t.current;
|
|
108
108
|
}
|
|
109
|
-
let
|
|
109
|
+
let Pn = {};
|
|
110
110
|
function Jt(e, t) {
|
|
111
111
|
return j(() => {
|
|
112
112
|
if (t)
|
|
113
113
|
return t;
|
|
114
|
-
const n =
|
|
115
|
-
return
|
|
114
|
+
const n = Pn[e] == null ? 0 : Pn[e] + 1;
|
|
115
|
+
return Pn[e] = n, e + "-" + n;
|
|
116
116
|
}, [e, t]);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Pr(e) {
|
|
119
119
|
return function(t) {
|
|
120
120
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
121
121
|
o[i - 1] = arguments[i];
|
|
@@ -131,11 +131,11 @@ function Lr(e) {
|
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
const Lt = /* @__PURE__ */
|
|
134
|
+
const Lt = /* @__PURE__ */ Pr(1), mn = /* @__PURE__ */ Pr(-1);
|
|
135
135
|
function Ai(e) {
|
|
136
136
|
return "clientX" in e && "clientY" in e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function En(e) {
|
|
139
139
|
if (!e)
|
|
140
140
|
return !1;
|
|
141
141
|
const {
|
|
@@ -217,9 +217,9 @@ const yt = /* @__PURE__ */ Object.freeze({
|
|
|
217
217
|
return t + " " + n + "ms " + o;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
220
|
+
}), vr = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
221
221
|
function _i(e) {
|
|
222
|
-
return e.matches(
|
|
222
|
+
return e.matches(vr) ? e : e.querySelector(vr);
|
|
223
223
|
}
|
|
224
224
|
const Ii = {
|
|
225
225
|
display: "none"
|
|
@@ -229,7 +229,7 @@ function Oi(e) {
|
|
|
229
229
|
id: t,
|
|
230
230
|
value: n
|
|
231
231
|
} = e;
|
|
232
|
-
return
|
|
232
|
+
return q.createElement("div", {
|
|
233
233
|
id: t,
|
|
234
234
|
style: Ii
|
|
235
235
|
}, n);
|
|
@@ -254,7 +254,7 @@ function Ti(e) {
|
|
|
254
254
|
clipPath: "inset(100%)",
|
|
255
255
|
whiteSpace: "nowrap"
|
|
256
256
|
};
|
|
257
|
-
return
|
|
257
|
+
return q.createElement("div", {
|
|
258
258
|
id: t,
|
|
259
259
|
style: i,
|
|
260
260
|
role: "status",
|
|
@@ -271,9 +271,9 @@ function Ni() {
|
|
|
271
271
|
announcement: e
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const $r = /* @__PURE__ */ Gt(null);
|
|
275
275
|
function Mi(e) {
|
|
276
|
-
const t = bt(
|
|
276
|
+
const t = bt($r);
|
|
277
277
|
K(() => {
|
|
278
278
|
if (!t)
|
|
279
279
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -391,10 +391,10 @@ function Bi(e) {
|
|
|
391
391
|
}
|
|
392
392
|
}), [a, t])), !d)
|
|
393
393
|
return null;
|
|
394
|
-
const h =
|
|
394
|
+
const h = q.createElement(q.Fragment, null, q.createElement(Oi, {
|
|
395
395
|
id: o,
|
|
396
396
|
value: i.draggable
|
|
397
|
-
}),
|
|
397
|
+
}), q.createElement(Ti, {
|
|
398
398
|
id: c,
|
|
399
399
|
announcement: l
|
|
400
400
|
}));
|
|
@@ -406,7 +406,7 @@ var ce;
|
|
|
406
406
|
})(ce || (ce = {}));
|
|
407
407
|
function xn() {
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function $n(e, t) {
|
|
410
410
|
return j(
|
|
411
411
|
() => ({
|
|
412
412
|
sensor: e,
|
|
@@ -429,7 +429,7 @@ const Je = /* @__PURE__ */ Object.freeze({
|
|
|
429
429
|
x: 0,
|
|
430
430
|
y: 0
|
|
431
431
|
});
|
|
432
|
-
function
|
|
432
|
+
function qn(e, t) {
|
|
433
433
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
434
434
|
}
|
|
435
435
|
function Fi(e, t) {
|
|
@@ -442,7 +442,7 @@ function Fi(e, t) {
|
|
|
442
442
|
};
|
|
443
443
|
return o.x + "% " + o.y + "%";
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Jn(e, t) {
|
|
446
446
|
let {
|
|
447
447
|
data: {
|
|
448
448
|
value: n
|
|
@@ -466,7 +466,7 @@ function Ki(e, t) {
|
|
|
466
466
|
} = t;
|
|
467
467
|
return o - n;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Kn(e) {
|
|
470
470
|
let {
|
|
471
471
|
left: t,
|
|
472
472
|
top: n,
|
|
@@ -487,31 +487,31 @@ function Fn(e) {
|
|
|
487
487
|
y: n + o
|
|
488
488
|
}];
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Vn(e, t) {
|
|
491
491
|
if (!e || e.length === 0)
|
|
492
492
|
return null;
|
|
493
493
|
const [n] = e;
|
|
494
494
|
return t ? n[t] : n;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function br(e, t, n) {
|
|
497
497
|
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
498
498
|
x: t + e.width * 0.5,
|
|
499
499
|
y: n + e.height * 0.5
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const yr = (e) => {
|
|
503
503
|
let {
|
|
504
504
|
collisionRect: t,
|
|
505
505
|
droppableRects: n,
|
|
506
506
|
droppableContainers: o
|
|
507
507
|
} = e;
|
|
508
|
-
const i =
|
|
508
|
+
const i = br(t, t.left, t.top), a = [];
|
|
509
509
|
for (const l of o) {
|
|
510
510
|
const {
|
|
511
511
|
id: c
|
|
512
512
|
} = l, d = n.get(c);
|
|
513
513
|
if (d) {
|
|
514
|
-
const u =
|
|
514
|
+
const u = qn(br(d), i);
|
|
515
515
|
a.push({
|
|
516
516
|
id: c,
|
|
517
517
|
data: {
|
|
@@ -521,20 +521,20 @@ const br = (e) => {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
return a.sort(
|
|
524
|
+
return a.sort(Jn);
|
|
525
525
|
}, Hi = (e) => {
|
|
526
526
|
let {
|
|
527
527
|
collisionRect: t,
|
|
528
528
|
droppableRects: n,
|
|
529
529
|
droppableContainers: o
|
|
530
530
|
} = e;
|
|
531
|
-
const i =
|
|
531
|
+
const i = Kn(t), a = [];
|
|
532
532
|
for (const l of o) {
|
|
533
533
|
const {
|
|
534
534
|
id: c
|
|
535
535
|
} = l, d = n.get(c);
|
|
536
536
|
if (d) {
|
|
537
|
-
const u =
|
|
537
|
+
const u = Kn(d), h = i.reduce((w, b, A) => w + qn(u[A], b), 0), g = Number((h / 4).toFixed(4));
|
|
538
538
|
a.push({
|
|
539
539
|
id: c,
|
|
540
540
|
data: {
|
|
@@ -544,7 +544,7 @@ const br = (e) => {
|
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
return a.sort(
|
|
547
|
+
return a.sort(Jn);
|
|
548
548
|
};
|
|
549
549
|
function Xi(e, t) {
|
|
550
550
|
const n = Math.max(t.top, e.top), o = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), l = i - o, c = a - n;
|
|
@@ -554,7 +554,7 @@ function Xi(e, t) {
|
|
|
554
554
|
}
|
|
555
555
|
return 0;
|
|
556
556
|
}
|
|
557
|
-
const
|
|
557
|
+
const Br = (e) => {
|
|
558
558
|
let {
|
|
559
559
|
collisionRect: t,
|
|
560
560
|
droppableRects: n,
|
|
@@ -601,7 +601,7 @@ const ji = (e) => {
|
|
|
601
601
|
id: l
|
|
602
602
|
} = a, c = n.get(l);
|
|
603
603
|
if (c && Ui(o, c)) {
|
|
604
|
-
const u =
|
|
604
|
+
const u = Kn(c).reduce((g, w) => g + qn(o, w), 0), h = Number((u / 4).toFixed(4));
|
|
605
605
|
i.push({
|
|
606
606
|
id: l,
|
|
607
607
|
data: {
|
|
@@ -611,7 +611,7 @@ const ji = (e) => {
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return i.sort(
|
|
614
|
+
return i.sort(Jn);
|
|
615
615
|
};
|
|
616
616
|
function Yi(e, t, n) {
|
|
617
617
|
return {
|
|
@@ -620,7 +620,7 @@ function Yi(e, t, n) {
|
|
|
620
620
|
scaleY: t && n ? t.height / n.height : 1
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function zr(e, t) {
|
|
624
624
|
return e && t ? {
|
|
625
625
|
x: e.left - t.left,
|
|
626
626
|
y: e.top - t.top
|
|
@@ -642,7 +642,7 @@ function ki(e) {
|
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
644
|
const Gi = /* @__PURE__ */ ki(1);
|
|
645
|
-
function
|
|
645
|
+
function Fr(e) {
|
|
646
646
|
if (e.startsWith("matrix3d(")) {
|
|
647
647
|
const t = e.slice(9, -1).split(/, /);
|
|
648
648
|
return {
|
|
@@ -663,7 +663,7 @@ function zr(e) {
|
|
|
663
663
|
return null;
|
|
664
664
|
}
|
|
665
665
|
function Wi(e, t, n) {
|
|
666
|
-
const o =
|
|
666
|
+
const o = Fr(t);
|
|
667
667
|
if (!o)
|
|
668
668
|
return e;
|
|
669
669
|
const {
|
|
@@ -711,7 +711,7 @@ function Kt(e, t) {
|
|
|
711
711
|
right: d
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function mr(e) {
|
|
715
715
|
return Kt(e, {
|
|
716
716
|
ignoreTransform: !0
|
|
717
717
|
});
|
|
@@ -738,51 +738,51 @@ function Qi(e, t) {
|
|
|
738
738
|
return typeof a == "string" ? n.test(a) : !1;
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Qn(e, t) {
|
|
742
742
|
const n = [];
|
|
743
743
|
function o(i) {
|
|
744
744
|
if (t != null && n.length >= t || !i)
|
|
745
745
|
return n;
|
|
746
|
-
if (
|
|
746
|
+
if (Wn(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
|
|
747
747
|
return n.push(i.scrollingElement), n;
|
|
748
|
-
if (!Wt(i) ||
|
|
748
|
+
if (!Wt(i) || Lr(i) || n.includes(i))
|
|
749
749
|
return n;
|
|
750
750
|
const a = Re(e).getComputedStyle(i);
|
|
751
751
|
return i !== e && Qi(i, a) && n.push(i), Vi(i, a) ? n : o(i.parentNode);
|
|
752
752
|
}
|
|
753
753
|
return e ? o(e) : n;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
const [t] =
|
|
755
|
+
function Kr(e) {
|
|
756
|
+
const [t] = Qn(e, 1);
|
|
757
757
|
return t ?? null;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return !
|
|
759
|
+
function Bn(e) {
|
|
760
|
+
return !Rn || !e ? null : zt(e) ? e : Gn(e) ? Wn(e) || e === Ft(e).scrollingElement ? window : Wt(e) ? e : null : null;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Hr(e) {
|
|
763
763
|
return zt(e) ? e.scrollX : e.scrollLeft;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Xr(e) {
|
|
766
766
|
return zt(e) ? e.scrollY : e.scrollTop;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Hn(e) {
|
|
769
769
|
return {
|
|
770
|
-
x:
|
|
771
|
-
y:
|
|
770
|
+
x: Hr(e),
|
|
771
|
+
y: Xr(e)
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
774
|
var ge;
|
|
775
775
|
(function(e) {
|
|
776
776
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
777
777
|
})(ge || (ge = {}));
|
|
778
|
-
function Xr(e) {
|
|
779
|
-
return !Sn || !e ? !1 : e === document.scrollingElement;
|
|
780
|
-
}
|
|
781
778
|
function Ur(e) {
|
|
779
|
+
return !Rn || !e ? !1 : e === document.scrollingElement;
|
|
780
|
+
}
|
|
781
|
+
function jr(e) {
|
|
782
782
|
const t = {
|
|
783
783
|
x: 0,
|
|
784
784
|
y: 0
|
|
785
|
-
}, n =
|
|
785
|
+
}, n = Ur(e) ? {
|
|
786
786
|
height: window.innerHeight,
|
|
787
787
|
width: window.innerWidth
|
|
788
788
|
} : {
|
|
@@ -818,7 +818,7 @@ function es(e, t, n, o, i) {
|
|
|
818
818
|
isBottom: h,
|
|
819
819
|
isLeft: g,
|
|
820
820
|
isRight: w
|
|
821
|
-
} =
|
|
821
|
+
} = jr(e), b = {
|
|
822
822
|
x: 0,
|
|
823
823
|
y: 0
|
|
824
824
|
}, A = {
|
|
@@ -863,16 +863,16 @@ function ts(e) {
|
|
|
863
863
|
height: e.clientHeight
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
return e.reduce((t, n) => Lt(t,
|
|
866
|
+
function Yr(e) {
|
|
867
|
+
return e.reduce((t, n) => Lt(t, Hn(n)), Je);
|
|
868
868
|
}
|
|
869
869
|
function ns(e) {
|
|
870
|
-
return e.reduce((t, n) => t +
|
|
870
|
+
return e.reduce((t, n) => t + Hr(n), 0);
|
|
871
871
|
}
|
|
872
872
|
function rs(e) {
|
|
873
|
-
return e.reduce((t, n) => t +
|
|
873
|
+
return e.reduce((t, n) => t + Xr(n), 0);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function kr(e, t) {
|
|
876
876
|
if (t === void 0 && (t = Kt), !e)
|
|
877
877
|
return;
|
|
878
878
|
const {
|
|
@@ -881,16 +881,16 @@ function Yr(e, t) {
|
|
|
881
881
|
bottom: i,
|
|
882
882
|
right: a
|
|
883
883
|
} = t(e);
|
|
884
|
-
|
|
884
|
+
Kr(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || o >= window.innerWidth) && e.scrollIntoView({
|
|
885
885
|
block: "center",
|
|
886
886
|
inline: "center"
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
889
|
const os = [["x", ["left", "right"], ns], ["y", ["top", "bottom"], rs]];
|
|
890
|
-
class
|
|
890
|
+
class Zn {
|
|
891
891
|
constructor(t, n) {
|
|
892
892
|
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;
|
|
893
|
-
const o =
|
|
893
|
+
const o = Qn(n), i = Yr(o);
|
|
894
894
|
this.rect = {
|
|
895
895
|
...t
|
|
896
896
|
}, this.width = t.width, this.height = t.height;
|
|
@@ -928,7 +928,7 @@ function is(e) {
|
|
|
928
928
|
} = Re(e);
|
|
929
929
|
return e instanceof t ? e : Ft(e);
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function zn(e, t) {
|
|
932
932
|
const n = Math.abs(e.x), o = Math.abs(e.y);
|
|
933
933
|
return typeof t == "number" ? Math.sqrt(n ** 2 + o ** 2) > t : "x" in t && "y" in t ? n > t.x && o > t.y : "x" in t ? n > t.x : "y" in t ? o > t.y : !1;
|
|
934
934
|
}
|
|
@@ -936,7 +936,7 @@ var He;
|
|
|
936
936
|
(function(e) {
|
|
937
937
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
938
938
|
})(He || (He = {}));
|
|
939
|
-
function
|
|
939
|
+
function wr(e) {
|
|
940
940
|
e.preventDefault();
|
|
941
941
|
}
|
|
942
942
|
function ss(e) {
|
|
@@ -946,7 +946,7 @@ var L;
|
|
|
946
946
|
(function(e) {
|
|
947
947
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter";
|
|
948
948
|
})(L || (L = {}));
|
|
949
|
-
const
|
|
949
|
+
const Gr = {
|
|
950
950
|
start: [L.Space, L.Enter],
|
|
951
951
|
cancel: [L.Esc],
|
|
952
952
|
end: [L.Space, L.Enter]
|
|
@@ -977,7 +977,7 @@ const kr = {
|
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
class
|
|
980
|
+
class er {
|
|
981
981
|
constructor(t) {
|
|
982
982
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
983
983
|
const {
|
|
@@ -995,16 +995,16 @@ class Zn {
|
|
|
995
995
|
activeNode: t,
|
|
996
996
|
onStart: n
|
|
997
997
|
} = this.props, o = t.node.current;
|
|
998
|
-
o &&
|
|
998
|
+
o && kr(o), n(Je);
|
|
999
999
|
}
|
|
1000
1000
|
handleKeyDown(t) {
|
|
1001
|
-
if (
|
|
1001
|
+
if (En(t)) {
|
|
1002
1002
|
const {
|
|
1003
1003
|
active: n,
|
|
1004
1004
|
context: o,
|
|
1005
1005
|
options: i
|
|
1006
1006
|
} = this.props, {
|
|
1007
|
-
keyboardCodes: a =
|
|
1007
|
+
keyboardCodes: a = Gr,
|
|
1008
1008
|
coordinateGetter: l = as,
|
|
1009
1009
|
scrollBehavior: c = "smooth"
|
|
1010
1010
|
} = i, {
|
|
@@ -1045,7 +1045,7 @@ class Zn {
|
|
|
1045
1045
|
isBottom: R,
|
|
1046
1046
|
maxScroll: T,
|
|
1047
1047
|
minScroll: _
|
|
1048
|
-
} =
|
|
1048
|
+
} = jr(v), O = ts(v), M = {
|
|
1049
1049
|
x: Math.min(x === L.Right ? O.right - O.width / 2 : O.right, Math.max(x === L.Right ? O.left : O.left + O.width / 2, g.x)),
|
|
1050
1050
|
y: Math.min(x === L.Down ? O.bottom - O.height / 2 : O.bottom, Math.max(x === L.Down ? O.top : O.top + O.height / 2, g.y))
|
|
1051
1051
|
}, H = x === L.Right && !E || x === L.Left && !D, U = x === L.Down && !R || x === L.Up && !S;
|
|
@@ -1105,11 +1105,11 @@ class Zn {
|
|
|
1105
1105
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
|
|
1108
|
+
er.activators = [{
|
|
1109
1109
|
eventName: "onKeyDown",
|
|
1110
1110
|
handler: (e, t, n) => {
|
|
1111
1111
|
let {
|
|
1112
|
-
keyboardCodes: o =
|
|
1112
|
+
keyboardCodes: o = Gr,
|
|
1113
1113
|
onActivation: i
|
|
1114
1114
|
} = t, {
|
|
1115
1115
|
active: a
|
|
@@ -1126,13 +1126,13 @@ Zn.activators = [{
|
|
|
1126
1126
|
return !1;
|
|
1127
1127
|
}
|
|
1128
1128
|
}];
|
|
1129
|
-
function
|
|
1129
|
+
function xr(e) {
|
|
1130
1130
|
return !!(e && "distance" in e);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Cr(e) {
|
|
1133
1133
|
return !!(e && "delay" in e);
|
|
1134
1134
|
}
|
|
1135
|
-
class
|
|
1135
|
+
class tr {
|
|
1136
1136
|
constructor(t, n, o) {
|
|
1137
1137
|
var i;
|
|
1138
1138
|
o === void 0 && (o = is(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
@@ -1155,18 +1155,18 @@ class er {
|
|
|
1155
1155
|
} = this;
|
|
1156
1156
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1157
1157
|
passive: !1
|
|
1158
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(He.Resize, this.handleCancel), this.windowListeners.add(He.DragStart,
|
|
1158
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(He.Resize, this.handleCancel), this.windowListeners.add(He.DragStart, wr), this.windowListeners.add(He.VisibilityChange, this.handleCancel), this.windowListeners.add(He.ContextMenu, wr), this.documentListeners.add(He.Keydown, this.handleKeydown), n) {
|
|
1159
1159
|
if (o != null && o({
|
|
1160
1160
|
event: this.props.event,
|
|
1161
1161
|
activeNode: this.props.activeNode,
|
|
1162
1162
|
options: this.props.options
|
|
1163
1163
|
}))
|
|
1164
1164
|
return this.handleStart();
|
|
1165
|
-
if (
|
|
1165
|
+
if (Cr(n)) {
|
|
1166
1166
|
this.timeoutId = setTimeout(this.handleStart, n.delay);
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
1169
|
-
if (
|
|
1169
|
+
if (xr(n))
|
|
1170
1170
|
return;
|
|
1171
1171
|
}
|
|
1172
1172
|
this.handleStart();
|
|
@@ -1200,13 +1200,13 @@ class er {
|
|
|
1200
1200
|
return;
|
|
1201
1201
|
const d = (n = wn(t)) != null ? n : Je, u = mn(i, d);
|
|
1202
1202
|
if (!o && c) {
|
|
1203
|
-
if (
|
|
1204
|
-
if (c.tolerance != null &&
|
|
1203
|
+
if (xr(c)) {
|
|
1204
|
+
if (c.tolerance != null && zn(u, c.tolerance))
|
|
1205
1205
|
return this.handleCancel();
|
|
1206
|
-
if (
|
|
1206
|
+
if (zn(u, c.distance))
|
|
1207
1207
|
return this.handleStart();
|
|
1208
1208
|
}
|
|
1209
|
-
return
|
|
1209
|
+
return Cr(c) && zn(u, c.tolerance) ? this.handleCancel() : void 0;
|
|
1210
1210
|
}
|
|
1211
1211
|
t.cancelable && t.preventDefault(), l(d);
|
|
1212
1212
|
}
|
|
@@ -1241,7 +1241,7 @@ const ls = {
|
|
|
1241
1241
|
name: "pointerup"
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
|
-
class
|
|
1244
|
+
class Wr extends tr {
|
|
1245
1245
|
constructor(t) {
|
|
1246
1246
|
const {
|
|
1247
1247
|
event: n
|
|
@@ -1249,7 +1249,7 @@ class Gr extends er {
|
|
|
1249
1249
|
super(t, ls, o);
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
|
|
1252
|
+
Wr.activators = [{
|
|
1253
1253
|
eventName: "onPointerDown",
|
|
1254
1254
|
handler: (e, t) => {
|
|
1255
1255
|
let {
|
|
@@ -1270,16 +1270,16 @@ const cs = {
|
|
|
1270
1270
|
name: "mouseup"
|
|
1271
1271
|
}
|
|
1272
1272
|
};
|
|
1273
|
-
var
|
|
1273
|
+
var Xn;
|
|
1274
1274
|
(function(e) {
|
|
1275
1275
|
e[e.RightClick = 2] = "RightClick";
|
|
1276
|
-
})(
|
|
1277
|
-
class
|
|
1276
|
+
})(Xn || (Xn = {}));
|
|
1277
|
+
class qr extends tr {
|
|
1278
1278
|
constructor(t) {
|
|
1279
1279
|
super(t, cs, Ft(t.event.target));
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
|
|
1282
|
+
qr.activators = [{
|
|
1283
1283
|
eventName: "onMouseDown",
|
|
1284
1284
|
handler: (e, t) => {
|
|
1285
1285
|
let {
|
|
@@ -1287,12 +1287,12 @@ Wr.activators = [{
|
|
|
1287
1287
|
} = e, {
|
|
1288
1288
|
onActivation: o
|
|
1289
1289
|
} = t;
|
|
1290
|
-
return n.button ===
|
|
1290
|
+
return n.button === Xn.RightClick ? !1 : (o == null || o({
|
|
1291
1291
|
event: n
|
|
1292
1292
|
}), !0);
|
|
1293
1293
|
}
|
|
1294
1294
|
}];
|
|
1295
|
-
const
|
|
1295
|
+
const Fn = {
|
|
1296
1296
|
cancel: {
|
|
1297
1297
|
name: "touchcancel"
|
|
1298
1298
|
},
|
|
@@ -1303,22 +1303,22 @@ const zn = {
|
|
|
1303
1303
|
name: "touchend"
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
|
-
class
|
|
1306
|
+
class Jr extends tr {
|
|
1307
1307
|
constructor(t) {
|
|
1308
|
-
super(t,
|
|
1308
|
+
super(t, Fn);
|
|
1309
1309
|
}
|
|
1310
1310
|
static setup() {
|
|
1311
|
-
return window.addEventListener(
|
|
1311
|
+
return window.addEventListener(Fn.move.name, t, {
|
|
1312
1312
|
capture: !1,
|
|
1313
1313
|
passive: !1
|
|
1314
1314
|
}), function() {
|
|
1315
|
-
window.removeEventListener(
|
|
1315
|
+
window.removeEventListener(Fn.move.name, t);
|
|
1316
1316
|
};
|
|
1317
1317
|
function t() {
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1321
|
+
Jr.activators = [{
|
|
1322
1322
|
eventName: "onTouchStart",
|
|
1323
1323
|
handler: (e, t) => {
|
|
1324
1324
|
let {
|
|
@@ -1494,11 +1494,11 @@ var $t;
|
|
|
1494
1494
|
(function(e) {
|
|
1495
1495
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1496
1496
|
})($t || ($t = {}));
|
|
1497
|
-
var
|
|
1497
|
+
var Un;
|
|
1498
1498
|
(function(e) {
|
|
1499
1499
|
e.Optimized = "optimized";
|
|
1500
|
-
})(
|
|
1501
|
-
const
|
|
1500
|
+
})(Un || (Un = {}));
|
|
1501
|
+
const Dr = /* @__PURE__ */ new Map();
|
|
1502
1502
|
function ps(e, t) {
|
|
1503
1503
|
let {
|
|
1504
1504
|
dragging: n,
|
|
@@ -1513,8 +1513,8 @@ function ps(e, t) {
|
|
|
1513
1513
|
S === void 0 && (S = []), !w.current && l((E) => E === null ? S : E.concat(S.filter((D) => !E.includes(D))));
|
|
1514
1514
|
}, [w]), A = X(null), v = qt((S) => {
|
|
1515
1515
|
if (g && !n)
|
|
1516
|
-
return
|
|
1517
|
-
if (!S || S ===
|
|
1516
|
+
return Dr;
|
|
1517
|
+
if (!S || S === Dr || h.current !== e || a != null) {
|
|
1518
1518
|
const E = /* @__PURE__ */ new Map();
|
|
1519
1519
|
for (let D of e) {
|
|
1520
1520
|
if (!D)
|
|
@@ -1523,7 +1523,7 @@ function ps(e, t) {
|
|
|
1523
1523
|
E.set(D.id, D.rect.current);
|
|
1524
1524
|
continue;
|
|
1525
1525
|
}
|
|
1526
|
-
const R = D.node.current, T = R ? new
|
|
1526
|
+
const R = D.node.current, T = R ? new Zn(d(R), R) : null;
|
|
1527
1527
|
D.rect.current = T, T && E.set(D.id, T);
|
|
1528
1528
|
}
|
|
1529
1529
|
return E;
|
|
@@ -1568,18 +1568,18 @@ function ps(e, t) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function nr(e, t) {
|
|
1572
1572
|
return qt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1573
1573
|
}
|
|
1574
1574
|
function vs(e, t) {
|
|
1575
|
-
return
|
|
1575
|
+
return nr(e, t);
|
|
1576
1576
|
}
|
|
1577
1577
|
function bs(e) {
|
|
1578
1578
|
let {
|
|
1579
1579
|
callback: t,
|
|
1580
1580
|
disabled: n
|
|
1581
1581
|
} = e;
|
|
1582
|
-
const o =
|
|
1582
|
+
const o = An(t), i = j(() => {
|
|
1583
1583
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1584
1584
|
return;
|
|
1585
1585
|
const {
|
|
@@ -1589,12 +1589,12 @@ function bs(e) {
|
|
|
1589
1589
|
}, [o, n]);
|
|
1590
1590
|
return K(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function _n(e) {
|
|
1593
1593
|
let {
|
|
1594
1594
|
callback: t,
|
|
1595
1595
|
disabled: n
|
|
1596
1596
|
} = e;
|
|
1597
|
-
const o =
|
|
1597
|
+
const o = An(t), i = j(
|
|
1598
1598
|
() => {
|
|
1599
1599
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1600
1600
|
return;
|
|
@@ -1609,9 +1609,9 @@ function En(e) {
|
|
|
1609
1609
|
return K(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1610
1610
|
}
|
|
1611
1611
|
function ys(e) {
|
|
1612
|
-
return new
|
|
1612
|
+
return new Zn(Kt(e), e);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Sr(e, t, n) {
|
|
1615
1615
|
t === void 0 && (t = ys);
|
|
1616
1616
|
const [o, i] = ne(null);
|
|
1617
1617
|
function a() {
|
|
@@ -1640,7 +1640,7 @@ function Dr(e, t, n) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
|
-
}), c =
|
|
1643
|
+
}), c = _n({
|
|
1644
1644
|
callback: a
|
|
1645
1645
|
});
|
|
1646
1646
|
return qe(() => {
|
|
@@ -1651,30 +1651,30 @@ function Dr(e, t, n) {
|
|
|
1651
1651
|
}, [e]), o;
|
|
1652
1652
|
}
|
|
1653
1653
|
function ms(e) {
|
|
1654
|
-
const t =
|
|
1655
|
-
return
|
|
1654
|
+
const t = nr(e);
|
|
1655
|
+
return zr(e, t);
|
|
1656
1656
|
}
|
|
1657
|
-
const
|
|
1657
|
+
const Rr = [];
|
|
1658
1658
|
function ws(e) {
|
|
1659
|
-
const t = X(e), n = qt((o) => e ? o && o !==
|
|
1659
|
+
const t = X(e), n = qt((o) => e ? o && o !== Rr && e && t.current && e.parentNode === t.current.parentNode ? o : Qn(e) : Rr, [e]);
|
|
1660
1660
|
return K(() => {
|
|
1661
1661
|
t.current = e;
|
|
1662
1662
|
}, [e]), n;
|
|
1663
1663
|
}
|
|
1664
1664
|
function xs(e) {
|
|
1665
1665
|
const [t, n] = ne(null), o = X(e), i = ve((a) => {
|
|
1666
|
-
const l =
|
|
1667
|
-
l && n((c) => c ? (c.set(l,
|
|
1666
|
+
const l = Bn(a.target);
|
|
1667
|
+
l && n((c) => c ? (c.set(l, Hn(l)), new Map(c)) : null);
|
|
1668
1668
|
}, []);
|
|
1669
1669
|
return K(() => {
|
|
1670
1670
|
const a = o.current;
|
|
1671
1671
|
if (e !== a) {
|
|
1672
1672
|
l(a);
|
|
1673
1673
|
const c = e.map((d) => {
|
|
1674
|
-
const u =
|
|
1674
|
+
const u = Bn(d);
|
|
1675
1675
|
return u ? (u.addEventListener("scroll", i, {
|
|
1676
1676
|
passive: !0
|
|
1677
|
-
}), [u,
|
|
1677
|
+
}), [u, Hn(u)]) : null;
|
|
1678
1678
|
}).filter((d) => d != null);
|
|
1679
1679
|
n(c.length ? new Map(c) : null), o.current = e;
|
|
1680
1680
|
}
|
|
@@ -1683,13 +1683,13 @@ function xs(e) {
|
|
|
1683
1683
|
};
|
|
1684
1684
|
function l(c) {
|
|
1685
1685
|
c.forEach((d) => {
|
|
1686
|
-
const u =
|
|
1686
|
+
const u = Bn(d);
|
|
1687
1687
|
u == null || u.removeEventListener("scroll", i);
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
|
-
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((a, l) => Lt(a, l), Je) :
|
|
1690
|
+
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((a, l) => Lt(a, l), Je) : Yr(e) : Je, [e, t]);
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Ar(e, t) {
|
|
1693
1693
|
t === void 0 && (t = []);
|
|
1694
1694
|
const n = X(null);
|
|
1695
1695
|
return K(
|
|
@@ -1706,7 +1706,7 @@ function Rr(e, t) {
|
|
|
1706
1706
|
function Cs(e) {
|
|
1707
1707
|
K(
|
|
1708
1708
|
() => {
|
|
1709
|
-
if (!
|
|
1709
|
+
if (!Rn)
|
|
1710
1710
|
return;
|
|
1711
1711
|
const t = e.map((n) => {
|
|
1712
1712
|
let {
|
|
@@ -1740,24 +1740,24 @@ function Ds(e, t) {
|
|
|
1740
1740
|
}, n;
|
|
1741
1741
|
}, {}), [e, t]);
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Vr(e) {
|
|
1744
1744
|
return j(() => e ? Ji(e) : null, [e]);
|
|
1745
1745
|
}
|
|
1746
|
-
const
|
|
1746
|
+
const Er = [];
|
|
1747
1747
|
function Ss(e, t) {
|
|
1748
1748
|
t === void 0 && (t = Kt);
|
|
1749
|
-
const [n] = e, o =
|
|
1749
|
+
const [n] = e, o = Vr(n ? Re(n) : null), [i, a] = ne(Er);
|
|
1750
1750
|
function l() {
|
|
1751
|
-
a(() => e.length ? e.map((d) =>
|
|
1751
|
+
a(() => e.length ? e.map((d) => Ur(d) ? o : new Zn(t(d), d)) : Er);
|
|
1752
1752
|
}
|
|
1753
|
-
const c =
|
|
1753
|
+
const c = _n({
|
|
1754
1754
|
callback: l
|
|
1755
1755
|
});
|
|
1756
1756
|
return qe(() => {
|
|
1757
1757
|
c == null || c.disconnect(), l(), e.forEach((d) => c == null ? void 0 : c.observe(d));
|
|
1758
1758
|
}, [e]), i;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Qr(e) {
|
|
1761
1761
|
if (!e)
|
|
1762
1762
|
return null;
|
|
1763
1763
|
if (e.children.length > 1)
|
|
@@ -1784,10 +1784,10 @@ function Rs(e) {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
break;
|
|
1786
1786
|
}
|
|
1787
|
-
}, [t]), a =
|
|
1787
|
+
}, [t]), a = _n({
|
|
1788
1788
|
callback: i
|
|
1789
1789
|
}), l = ve((u) => {
|
|
1790
|
-
const h =
|
|
1790
|
+
const h = Qr(u);
|
|
1791
1791
|
a == null || a.disconnect(), h && (a == null || a.observe(h)), o(h ? t(h) : null);
|
|
1792
1792
|
}, [t, a]), [c, d] = bn(l);
|
|
1793
1793
|
return j(() => ({
|
|
@@ -1797,21 +1797,21 @@ function Rs(e) {
|
|
|
1797
1797
|
}), [n, c, d]);
|
|
1798
1798
|
}
|
|
1799
1799
|
const As = [{
|
|
1800
|
-
sensor:
|
|
1800
|
+
sensor: Wr,
|
|
1801
1801
|
options: {}
|
|
1802
1802
|
}, {
|
|
1803
|
-
sensor:
|
|
1803
|
+
sensor: er,
|
|
1804
1804
|
options: {}
|
|
1805
1805
|
}], Es = {
|
|
1806
1806
|
current: {}
|
|
1807
1807
|
}, pn = {
|
|
1808
1808
|
draggable: {
|
|
1809
|
-
measure:
|
|
1809
|
+
measure: mr
|
|
1810
1810
|
},
|
|
1811
1811
|
droppable: {
|
|
1812
|
-
measure:
|
|
1812
|
+
measure: mr,
|
|
1813
1813
|
strategy: $t.WhileDragging,
|
|
1814
|
-
frequency:
|
|
1814
|
+
frequency: Un.Optimized
|
|
1815
1815
|
},
|
|
1816
1816
|
dragOverlay: {
|
|
1817
1817
|
measure: Kt
|
|
@@ -1862,7 +1862,7 @@ const _s = {
|
|
|
1862
1862
|
measureDroppableContainers: xn,
|
|
1863
1863
|
windowRect: null,
|
|
1864
1864
|
measuringScheduled: !1
|
|
1865
|
-
},
|
|
1865
|
+
}, Zr = {
|
|
1866
1866
|
activatorEvent: null,
|
|
1867
1867
|
activators: [],
|
|
1868
1868
|
active: null,
|
|
@@ -1874,7 +1874,7 @@ const _s = {
|
|
|
1874
1874
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1875
1875
|
over: null,
|
|
1876
1876
|
measureDroppableContainers: xn
|
|
1877
|
-
}, Vt = /* @__PURE__ */ Gt(
|
|
1877
|
+
}, Vt = /* @__PURE__ */ Gt(Zr), eo = /* @__PURE__ */ Gt(_s);
|
|
1878
1878
|
function Is() {
|
|
1879
1879
|
return {
|
|
1880
1880
|
draggable: {
|
|
@@ -1998,7 +1998,7 @@ function Ts(e) {
|
|
|
1998
1998
|
} = bt(Vt), a = yn(o), l = yn(n == null ? void 0 : n.id);
|
|
1999
1999
|
return K(() => {
|
|
2000
2000
|
if (!t && !o && a && l != null) {
|
|
2001
|
-
if (!
|
|
2001
|
+
if (!En(a) || document.activeElement === a.target)
|
|
2002
2002
|
return;
|
|
2003
2003
|
const c = i.get(l);
|
|
2004
2004
|
if (!c)
|
|
@@ -2023,7 +2023,7 @@ function Ts(e) {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
}, [o, t, i, l, a]), null;
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function to(e, t) {
|
|
2027
2027
|
let {
|
|
2028
2028
|
transform: n,
|
|
2029
2029
|
...o
|
|
@@ -2077,9 +2077,9 @@ function Ms(e) {
|
|
|
2077
2077
|
const u = t == null ? void 0 : t.node.current;
|
|
2078
2078
|
if (!u || u.isConnected === !1)
|
|
2079
2079
|
return;
|
|
2080
|
-
const h = n(u), g =
|
|
2080
|
+
const h = n(u), g = zr(h, o);
|
|
2081
2081
|
if (l || (g.x = 0), c || (g.y = 0), a.current = !0, Math.abs(g.x) > 0 || Math.abs(g.y) > 0) {
|
|
2082
|
-
const w =
|
|
2082
|
+
const w = Kr(u);
|
|
2083
2083
|
w && w.scrollBy({
|
|
2084
2084
|
top: g.y,
|
|
2085
2085
|
left: g.x
|
|
@@ -2087,7 +2087,7 @@ function Ms(e) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}, [t, l, c, o, n]);
|
|
2089
2089
|
}
|
|
2090
|
-
const
|
|
2090
|
+
const In = /* @__PURE__ */ Gt({
|
|
2091
2091
|
...Je,
|
|
2092
2092
|
scaleX: 1,
|
|
2093
2093
|
scaleY: 1
|
|
@@ -2096,7 +2096,7 @@ var vt;
|
|
|
2096
2096
|
(function(e) {
|
|
2097
2097
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2098
2098
|
})(vt || (vt = {}));
|
|
2099
|
-
const Ls = /* @__PURE__ */
|
|
2099
|
+
const Ls = /* @__PURE__ */ Mr(function(t) {
|
|
2100
2100
|
var n, o, i, a;
|
|
2101
2101
|
let {
|
|
2102
2102
|
id: l,
|
|
@@ -2104,7 +2104,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2104
2104
|
autoScroll: d = !0,
|
|
2105
2105
|
children: u,
|
|
2106
2106
|
sensors: h = As,
|
|
2107
|
-
collisionDetection: g =
|
|
2107
|
+
collisionDetection: g = Br,
|
|
2108
2108
|
measuring: w,
|
|
2109
2109
|
modifiers: b,
|
|
2110
2110
|
...A
|
|
@@ -2122,11 +2122,11 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2122
2122
|
initial: null,
|
|
2123
2123
|
translated: null
|
|
2124
2124
|
}), Q = j(() => {
|
|
2125
|
-
var
|
|
2125
|
+
var W;
|
|
2126
2126
|
return O != null ? {
|
|
2127
2127
|
id: O,
|
|
2128
2128
|
// It's possible for the active node to unmount while dragging
|
|
2129
|
-
data: (
|
|
2129
|
+
data: (W = B == null ? void 0 : B.data) != null ? W : Es,
|
|
2130
2130
|
rect: re
|
|
2131
2131
|
} : null;
|
|
2132
2132
|
}, [O, B]), Ae = X(null), [Xe, F] = ne(null), [J, Pe] = ne(null), Ne = kt(A, Object.values(A)), ue = Jt("DndDescribedBy", l), $e = j(() => U.getEnabled(), [U]), V = Ns(w), {
|
|
@@ -2144,7 +2144,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2144
2144
|
initialRect: de,
|
|
2145
2145
|
measure: V.draggable.measure
|
|
2146
2146
|
});
|
|
2147
|
-
const $ =
|
|
2147
|
+
const $ = Sr(Z, V.draggable.measure, de), nt = Sr(Z ? Z.parentElement : null), Ee = X({
|
|
2148
2148
|
activatorEvent: null,
|
|
2149
2149
|
active: null,
|
|
2150
2150
|
activeNode: Z,
|
|
@@ -2160,7 +2160,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2160
2160
|
scrollAdjustedTranslate: null
|
|
2161
2161
|
}), Ve = U.getNodeFor((n = Ee.current.over) == null ? void 0 : n.id), P = Rs({
|
|
2162
2162
|
measure: V.dragOverlay.measure
|
|
2163
|
-
}), Qe = (o = P.nodeRef.current) != null ? o : Z, je = _ ? (i = P.rect) != null ? i : $ : null, mt = !!(P.nodeRef.current && P.rect), _e = ms(mt ? null : $), Ze =
|
|
2163
|
+
}), Qe = (o = P.nodeRef.current) != null ? o : Z, je = _ ? (i = P.rect) != null ? i : $ : null, mt = !!(P.nodeRef.current && P.rect), _e = ms(mt ? null : $), Ze = Vr(Qe ? Re(Qe) : null), p = ws(_ ? Ve ?? Z : null), m = Ss(p), N = to(b, {
|
|
2164
2164
|
transform: {
|
|
2165
2165
|
x: H.x - _e.x,
|
|
2166
2166
|
y: H.y - _e.y,
|
|
@@ -2177,14 +2177,14 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2177
2177
|
scrollableAncestors: p,
|
|
2178
2178
|
scrollableAncestorRects: m,
|
|
2179
2179
|
windowRect: Ze
|
|
2180
|
-
}),
|
|
2180
|
+
}), G = tt ? Lt(tt, H) : null, Y = xs(p), fe = Ar(Y), ee = Ar(Y, [$]), oe = Lt(N, fe), he = je ? Gi(je, N) : null, be = Q && he ? g({
|
|
2181
2181
|
active: Q,
|
|
2182
2182
|
collisionRect: he,
|
|
2183
2183
|
droppableRects: we,
|
|
2184
2184
|
droppableContainers: $e,
|
|
2185
|
-
pointerCoordinates:
|
|
2186
|
-
}) : null, rt =
|
|
2187
|
-
(
|
|
2185
|
+
pointerCoordinates: G
|
|
2186
|
+
}) : null, rt = Vn(be, "id"), [te, Me] = ne(null), wt = mt ? N : Lt(N, ee), ie = Yi(wt, (a = te == null ? void 0 : te.rect) != null ? a : null, $), se = X(null), Le = ve(
|
|
2187
|
+
(W, xe) => {
|
|
2188
2188
|
let {
|
|
2189
2189
|
sensor: ye,
|
|
2190
2190
|
options: ke
|
|
@@ -2194,7 +2194,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2194
2194
|
const Ie = M.get(Ae.current);
|
|
2195
2195
|
if (!Ie)
|
|
2196
2196
|
return;
|
|
2197
|
-
const Ce =
|
|
2197
|
+
const Ce = W.nativeEvent, ze = new ye({
|
|
2198
2198
|
active: Ae.current,
|
|
2199
2199
|
activeNode: Ie,
|
|
2200
2200
|
event: Ce,
|
|
@@ -2279,7 +2279,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2279
2279
|
},
|
|
2280
2280
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2281
2281
|
[M]
|
|
2282
|
-
), ot = ve((
|
|
2282
|
+
), ot = ve((W, xe) => (ye, ke) => {
|
|
2283
2283
|
const Ie = ye.nativeEvent, Ce = M.get(ke);
|
|
2284
2284
|
if (
|
|
2285
2285
|
// Another sensor is already instantiating
|
|
@@ -2291,7 +2291,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2291
2291
|
const ze = {
|
|
2292
2292
|
active: Ce
|
|
2293
2293
|
};
|
|
2294
|
-
|
|
2294
|
+
W(ye, xe.options, ze) === !0 && (Ie.dndKit = {
|
|
2295
2295
|
capturedBy: xe.sensor
|
|
2296
2296
|
}, Ae.current = ke, Le(ye, xe));
|
|
2297
2297
|
}, [M, Le]), _t = hs(h, ot);
|
|
@@ -2300,7 +2300,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2300
2300
|
}, [$, R]), K(
|
|
2301
2301
|
() => {
|
|
2302
2302
|
const {
|
|
2303
|
-
onDragMove:
|
|
2303
|
+
onDragMove: W
|
|
2304
2304
|
} = Ne.current, {
|
|
2305
2305
|
active: xe,
|
|
2306
2306
|
activatorEvent: ye,
|
|
@@ -2320,7 +2320,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2320
2320
|
over: Ie
|
|
2321
2321
|
};
|
|
2322
2322
|
Mt.unstable_batchedUpdates(() => {
|
|
2323
|
-
|
|
2323
|
+
W == null || W(Ce), E({
|
|
2324
2324
|
type: "onDragMove",
|
|
2325
2325
|
event: Ce
|
|
2326
2326
|
});
|
|
@@ -2331,13 +2331,13 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2331
2331
|
), K(
|
|
2332
2332
|
() => {
|
|
2333
2333
|
const {
|
|
2334
|
-
active:
|
|
2334
|
+
active: W,
|
|
2335
2335
|
activatorEvent: xe,
|
|
2336
2336
|
collisions: ye,
|
|
2337
2337
|
droppableContainers: ke,
|
|
2338
2338
|
scrollAdjustedTranslate: Ie
|
|
2339
2339
|
} = Ee.current;
|
|
2340
|
-
if (!
|
|
2340
|
+
if (!W || Ae.current == null || !xe || !Ie)
|
|
2341
2341
|
return;
|
|
2342
2342
|
const {
|
|
2343
2343
|
onDragOver: Ce
|
|
@@ -2347,7 +2347,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2347
2347
|
data: ze.data,
|
|
2348
2348
|
disabled: ze.disabled
|
|
2349
2349
|
} : null, De = {
|
|
2350
|
-
active:
|
|
2350
|
+
active: W,
|
|
2351
2351
|
activatorEvent: xe,
|
|
2352
2352
|
collisions: ye,
|
|
2353
2353
|
delta: {
|
|
@@ -2388,7 +2388,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2388
2388
|
...Be,
|
|
2389
2389
|
delta: H,
|
|
2390
2390
|
draggingRect: he,
|
|
2391
|
-
pointerCoordinates:
|
|
2391
|
+
pointerCoordinates: G,
|
|
2392
2392
|
scrollableAncestors: p,
|
|
2393
2393
|
scrollableAncestorRects: m
|
|
2394
2394
|
});
|
|
@@ -2423,22 +2423,22 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2423
2423
|
over: te,
|
|
2424
2424
|
measureDroppableContainers: Ue
|
|
2425
2425
|
}), [J, _t, Q, $, S, ue, M, te, Ue]);
|
|
2426
|
-
return
|
|
2426
|
+
return q.createElement($r.Provider, {
|
|
2427
2427
|
value: D
|
|
2428
|
-
},
|
|
2428
|
+
}, q.createElement(Vt.Provider, {
|
|
2429
2429
|
value: Zt
|
|
2430
|
-
},
|
|
2430
|
+
}, q.createElement(eo.Provider, {
|
|
2431
2431
|
value: Qt
|
|
2432
|
-
},
|
|
2432
|
+
}, q.createElement(In.Provider, {
|
|
2433
2433
|
value: ie
|
|
2434
|
-
}, u)),
|
|
2434
|
+
}, u)), q.createElement(Ts, {
|
|
2435
2435
|
disabled: (c == null ? void 0 : c.restoreFocus) === !1
|
|
2436
|
-
})),
|
|
2436
|
+
})), q.createElement(Bi, {
|
|
2437
2437
|
...c,
|
|
2438
2438
|
hiddenTextDescribedById: ue
|
|
2439
2439
|
}));
|
|
2440
2440
|
function Ye() {
|
|
2441
|
-
const
|
|
2441
|
+
const W = (Xe == null ? void 0 : Xe.autoScrollEnabled) === !1, xe = typeof d == "object" ? d.enabled === !1 : d === !1, ye = _ && !W && !xe;
|
|
2442
2442
|
return typeof d == "object" ? {
|
|
2443
2443
|
...d,
|
|
2444
2444
|
enabled: ye
|
|
@@ -2446,7 +2446,7 @@ const Ls = /* @__PURE__ */ hi(function(t) {
|
|
|
2446
2446
|
enabled: ye
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
|
-
}), Ps = /* @__PURE__ */ Gt(null),
|
|
2449
|
+
}), Ps = /* @__PURE__ */ Gt(null), _r = "button", $s = "Draggable";
|
|
2450
2450
|
function Bs(e) {
|
|
2451
2451
|
let {
|
|
2452
2452
|
id: t,
|
|
@@ -2463,10 +2463,10 @@ function Bs(e) {
|
|
|
2463
2463
|
draggableNodes: g,
|
|
2464
2464
|
over: w
|
|
2465
2465
|
} = bt(Vt), {
|
|
2466
|
-
role: b =
|
|
2466
|
+
role: b = _r,
|
|
2467
2467
|
roleDescription: A = "draggable",
|
|
2468
2468
|
tabIndex: v = 0
|
|
2469
|
-
} = i ?? {}, x = (d == null ? void 0 : d.id) === t, S = bt(x ?
|
|
2469
|
+
} = i ?? {}, x = (d == null ? void 0 : d.id) === t, S = bt(x ? In : Ps), [E, D] = bn(), [R, T] = bn(), _ = Ds(l, t), O = kt(n);
|
|
2470
2470
|
qe(
|
|
2471
2471
|
() => (g.set(t, {
|
|
2472
2472
|
id: t,
|
|
@@ -2485,7 +2485,7 @@ function Bs(e) {
|
|
|
2485
2485
|
role: b,
|
|
2486
2486
|
tabIndex: v,
|
|
2487
2487
|
"aria-disabled": o,
|
|
2488
|
-
"aria-pressed": x && b ===
|
|
2488
|
+
"aria-pressed": x && b === _r ? !0 : void 0,
|
|
2489
2489
|
"aria-roledescription": A,
|
|
2490
2490
|
"aria-describedby": h.draggable
|
|
2491
2491
|
}), [o, b, v, x, A, h.draggable]);
|
|
@@ -2503,8 +2503,8 @@ function Bs(e) {
|
|
|
2503
2503
|
transform: S
|
|
2504
2504
|
};
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2507
|
-
return bt(
|
|
2506
|
+
function no() {
|
|
2507
|
+
return bt(eo);
|
|
2508
2508
|
}
|
|
2509
2509
|
const zs = "Droppable", Fs = {
|
|
2510
2510
|
timeout: 25
|
|
@@ -2542,7 +2542,7 @@ function Ks(e) {
|
|
|
2542
2542
|
},
|
|
2543
2543
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2544
2544
|
[x]
|
|
2545
|
-
), D =
|
|
2545
|
+
), D = _n({
|
|
2546
2546
|
callback: E,
|
|
2547
2547
|
disabled: A || !l
|
|
2548
2548
|
}), R = ve((M, H) => {
|
|
@@ -2601,7 +2601,7 @@ function Hs(e) {
|
|
|
2601
2601
|
Promise.resolve(t(u, a)).then(() => {
|
|
2602
2602
|
i(null);
|
|
2603
2603
|
});
|
|
2604
|
-
}, [t, o, a]),
|
|
2604
|
+
}, [t, o, a]), q.createElement(q.Fragment, null, n, o ? vi(o, {
|
|
2605
2605
|
ref: l
|
|
2606
2606
|
}) : null);
|
|
2607
2607
|
}
|
|
@@ -2615,16 +2615,16 @@ function Us(e) {
|
|
|
2615
2615
|
let {
|
|
2616
2616
|
children: t
|
|
2617
2617
|
} = e;
|
|
2618
|
-
return
|
|
2619
|
-
value:
|
|
2620
|
-
},
|
|
2618
|
+
return q.createElement(Vt.Provider, {
|
|
2619
|
+
value: Zr
|
|
2620
|
+
}, q.createElement(In.Provider, {
|
|
2621
2621
|
value: Xs
|
|
2622
2622
|
}, t));
|
|
2623
2623
|
}
|
|
2624
2624
|
const js = {
|
|
2625
2625
|
position: "fixed",
|
|
2626
2626
|
touchAction: "none"
|
|
2627
|
-
}, Ys = (e) =>
|
|
2627
|
+
}, Ys = (e) => En(e) ? "transform 250ms ease" : void 0, ks = /* @__PURE__ */ Sn((e, t) => {
|
|
2628
2628
|
let {
|
|
2629
2629
|
as: n,
|
|
2630
2630
|
activatorEvent: o,
|
|
@@ -2653,12 +2653,12 @@ const js = {
|
|
|
2653
2653
|
transition: typeof h == "function" ? h(o) : h,
|
|
2654
2654
|
...d
|
|
2655
2655
|
};
|
|
2656
|
-
return
|
|
2656
|
+
return q.createElement(n, {
|
|
2657
2657
|
className: l,
|
|
2658
2658
|
style: w,
|
|
2659
2659
|
ref: t
|
|
2660
2660
|
}, a);
|
|
2661
|
-
}),
|
|
2661
|
+
}), ro = (e) => (t) => {
|
|
2662
2662
|
let {
|
|
2663
2663
|
active: n,
|
|
2664
2664
|
dragOverlay: o
|
|
@@ -2694,7 +2694,7 @@ const js = {
|
|
|
2694
2694
|
duration: 250,
|
|
2695
2695
|
easing: "ease",
|
|
2696
2696
|
keyframes: Gs,
|
|
2697
|
-
sideEffects: /* @__PURE__ */
|
|
2697
|
+
sideEffects: /* @__PURE__ */ ro({
|
|
2698
2698
|
styles: {
|
|
2699
2699
|
active: {
|
|
2700
2700
|
opacity: "0"
|
|
@@ -2709,7 +2709,7 @@ function qs(e) {
|
|
|
2709
2709
|
droppableContainers: o,
|
|
2710
2710
|
measuringConfiguration: i
|
|
2711
2711
|
} = e;
|
|
2712
|
-
return
|
|
2712
|
+
return An((a, l) => {
|
|
2713
2713
|
if (t === null)
|
|
2714
2714
|
return;
|
|
2715
2715
|
const c = n.get(a);
|
|
@@ -2718,16 +2718,16 @@ function qs(e) {
|
|
|
2718
2718
|
const d = c.node.current;
|
|
2719
2719
|
if (!d)
|
|
2720
2720
|
return;
|
|
2721
|
-
const u =
|
|
2721
|
+
const u = Qr(l);
|
|
2722
2722
|
if (!u)
|
|
2723
2723
|
return;
|
|
2724
2724
|
const {
|
|
2725
2725
|
transform: h
|
|
2726
|
-
} = Re(l).getComputedStyle(l), g =
|
|
2726
|
+
} = Re(l).getComputedStyle(l), g = Fr(h);
|
|
2727
2727
|
if (!g)
|
|
2728
2728
|
return;
|
|
2729
2729
|
const w = typeof t == "function" ? t : Js(t);
|
|
2730
|
-
return
|
|
2730
|
+
return kr(d, i.draggable.measure), w({
|
|
2731
2731
|
active: {
|
|
2732
2732
|
id: a,
|
|
2733
2733
|
data: c.data,
|
|
@@ -2801,14 +2801,14 @@ function Js(e) {
|
|
|
2801
2801
|
});
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
|
-
let
|
|
2804
|
+
let Ir = 0;
|
|
2805
2805
|
function Vs(e) {
|
|
2806
2806
|
return j(() => {
|
|
2807
2807
|
if (e != null)
|
|
2808
|
-
return
|
|
2808
|
+
return Ir++, Ir;
|
|
2809
2809
|
}, [e]);
|
|
2810
2810
|
}
|
|
2811
|
-
const Qs = /* @__PURE__ */
|
|
2811
|
+
const Qs = /* @__PURE__ */ q.memo((e) => {
|
|
2812
2812
|
let {
|
|
2813
2813
|
adjustScale: t = !1,
|
|
2814
2814
|
children: n,
|
|
@@ -2833,7 +2833,7 @@ const Qs = /* @__PURE__ */ Y.memo((e) => {
|
|
|
2833
2833
|
scrollableAncestors: D,
|
|
2834
2834
|
scrollableAncestorRects: R,
|
|
2835
2835
|
windowRect: T
|
|
2836
|
-
} =
|
|
2836
|
+
} = no(), _ = bt(In), O = Vs(g == null ? void 0 : g.id), M = to(l, {
|
|
2837
2837
|
activatorEvent: h,
|
|
2838
2838
|
active: g,
|
|
2839
2839
|
activeNodeRect: w,
|
|
@@ -2845,15 +2845,15 @@ const Qs = /* @__PURE__ */ Y.memo((e) => {
|
|
|
2845
2845
|
scrollableAncestorRects: R,
|
|
2846
2846
|
transform: _,
|
|
2847
2847
|
windowRect: T
|
|
2848
|
-
}), H =
|
|
2848
|
+
}), H = nr(w), U = qs({
|
|
2849
2849
|
config: o,
|
|
2850
2850
|
draggableNodes: A,
|
|
2851
2851
|
droppableContainers: v,
|
|
2852
2852
|
measuringConfiguration: E
|
|
2853
2853
|
}), B = H ? x.setRef : void 0;
|
|
2854
|
-
return
|
|
2854
|
+
return q.createElement(Us, null, q.createElement(Hs, {
|
|
2855
2855
|
animation: U
|
|
2856
|
-
}, g && O ?
|
|
2856
|
+
}, g && O ? q.createElement(ks, {
|
|
2857
2857
|
key: O,
|
|
2858
2858
|
id: g.id,
|
|
2859
2859
|
ref: B,
|
|
@@ -2941,7 +2941,7 @@ function ra(e, t, n) {
|
|
|
2941
2941
|
const o = e[t], i = e[t - 1], a = e[t + 1];
|
|
2942
2942
|
return !o || !i && !a ? 0 : n < t ? i ? o.left - (i.left + i.width) : a.left - (o.left + o.width) : a ? a.left - (o.left + o.width) : o.left - (i.left + i.width);
|
|
2943
2943
|
}
|
|
2944
|
-
const
|
|
2944
|
+
const oo = (e) => {
|
|
2945
2945
|
let {
|
|
2946
2946
|
rects: t,
|
|
2947
2947
|
activeIndex: n,
|
|
@@ -2958,7 +2958,7 @@ const ro = (e) => {
|
|
|
2958
2958
|
}, hn = {
|
|
2959
2959
|
scaleX: 1,
|
|
2960
2960
|
scaleY: 1
|
|
2961
|
-
},
|
|
2961
|
+
}, Or = (e) => {
|
|
2962
2962
|
var t;
|
|
2963
2963
|
let {
|
|
2964
2964
|
activeIndex: n,
|
|
@@ -2997,26 +2997,26 @@ function oa(e, t, n) {
|
|
|
2997
2997
|
const o = e[t], i = e[t - 1], a = e[t + 1];
|
|
2998
2998
|
return o ? n < t ? i ? o.top - (i.top + i.height) : a ? a.top - (o.top + o.height) : 0 : a ? a.top - (o.top + o.height) : i ? o.top - (i.top + i.height) : 0 : 0;
|
|
2999
2999
|
}
|
|
3000
|
-
const
|
|
3000
|
+
const io = "Sortable", so = /* @__PURE__ */ q.createContext({
|
|
3001
3001
|
activeIndex: -1,
|
|
3002
|
-
containerId:
|
|
3002
|
+
containerId: io,
|
|
3003
3003
|
disableTransforms: !1,
|
|
3004
3004
|
items: [],
|
|
3005
3005
|
overIndex: -1,
|
|
3006
3006
|
useDragOverlay: !1,
|
|
3007
3007
|
sortedRects: [],
|
|
3008
|
-
strategy:
|
|
3008
|
+
strategy: oo,
|
|
3009
3009
|
disabled: {
|
|
3010
3010
|
draggable: !1,
|
|
3011
3011
|
droppable: !1
|
|
3012
3012
|
}
|
|
3013
3013
|
});
|
|
3014
|
-
function
|
|
3014
|
+
function Tr(e) {
|
|
3015
3015
|
let {
|
|
3016
3016
|
children: t,
|
|
3017
3017
|
id: n,
|
|
3018
3018
|
items: o,
|
|
3019
|
-
strategy: i =
|
|
3019
|
+
strategy: i = oo,
|
|
3020
3020
|
disabled: a = !1
|
|
3021
3021
|
} = e;
|
|
3022
3022
|
const {
|
|
@@ -3025,7 +3025,7 @@ function Or(e) {
|
|
|
3025
3025
|
droppableRects: d,
|
|
3026
3026
|
over: u,
|
|
3027
3027
|
measureDroppableContainers: h
|
|
3028
|
-
} =
|
|
3028
|
+
} = no(), g = Jt(io, n), w = c.rect !== null, b = j(() => o.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [o]), A = l != null, v = l ? b.indexOf(l.id) : -1, x = u ? b.indexOf(u.id) : -1, S = X(b), E = !ea(b, S.current), D = x !== -1 && v === -1 || E, R = ta(a);
|
|
3029
3029
|
qe(() => {
|
|
3030
3030
|
E && A && h(b);
|
|
3031
3031
|
}, [E, b, A, h]), K(() => {
|
|
@@ -3046,7 +3046,7 @@ function Or(e) {
|
|
|
3046
3046
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3047
3047
|
[v, g, R.draggable, R.droppable, D, b, x, d, w, i]
|
|
3048
3048
|
);
|
|
3049
|
-
return
|
|
3049
|
+
return q.createElement(so.Provider, {
|
|
3050
3050
|
value: T
|
|
3051
3051
|
}, t);
|
|
3052
3052
|
}
|
|
@@ -3058,7 +3058,7 @@ const ia = (e) => {
|
|
|
3058
3058
|
overIndex: i
|
|
3059
3059
|
} = e;
|
|
3060
3060
|
return Yt(n, o, i).indexOf(t);
|
|
3061
|
-
},
|
|
3061
|
+
}, ao = (e) => {
|
|
3062
3062
|
let {
|
|
3063
3063
|
containerId: t,
|
|
3064
3064
|
isSorting: n,
|
|
@@ -3074,8 +3074,8 @@ const ia = (e) => {
|
|
|
3074
3074
|
}, sa = {
|
|
3075
3075
|
duration: 200,
|
|
3076
3076
|
easing: "ease"
|
|
3077
|
-
},
|
|
3078
|
-
property:
|
|
3077
|
+
}, lo = "transform", aa = /* @__PURE__ */ yt.Transition.toString({
|
|
3078
|
+
property: lo,
|
|
3079
3079
|
duration: 0,
|
|
3080
3080
|
easing: "linear"
|
|
3081
3081
|
}), la = {
|
|
@@ -3109,9 +3109,9 @@ function ca(e) {
|
|
|
3109
3109
|
a && l(null);
|
|
3110
3110
|
}, [a]), a;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function co(e) {
|
|
3113
3113
|
let {
|
|
3114
|
-
animateLayoutChanges: t =
|
|
3114
|
+
animateLayoutChanges: t = ao,
|
|
3115
3115
|
attributes: n,
|
|
3116
3116
|
disabled: o,
|
|
3117
3117
|
data: i,
|
|
@@ -3131,7 +3131,7 @@ function lo(e) {
|
|
|
3131
3131
|
overIndex: x,
|
|
3132
3132
|
useDragOverlay: S,
|
|
3133
3133
|
strategy: E
|
|
3134
|
-
} = bt(
|
|
3134
|
+
} = bt(so), D = ua(o, b), R = h.indexOf(l), T = j(() => ({
|
|
3135
3135
|
sortable: {
|
|
3136
3136
|
containerId: g,
|
|
3137
3137
|
index: R,
|
|
@@ -3248,10 +3248,10 @@ function lo(e) {
|
|
|
3248
3248
|
nt && $.current.newIndex === R
|
|
3249
3249
|
)
|
|
3250
3250
|
return aa;
|
|
3251
|
-
if (!(Ue && !
|
|
3251
|
+
if (!(Ue && !En(re) || !u) && (V || Ee))
|
|
3252
3252
|
return yt.Transition.toString({
|
|
3253
3253
|
...u,
|
|
3254
|
-
property:
|
|
3254
|
+
property: lo
|
|
3255
3255
|
});
|
|
3256
3256
|
}
|
|
3257
3257
|
}
|
|
@@ -3268,7 +3268,7 @@ function ua(e, t) {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
L.Down, L.Right, L.Up, L.Left;
|
|
3270
3270
|
const da = (e) => e;
|
|
3271
|
-
function
|
|
3271
|
+
function Nr(e, t = da) {
|
|
3272
3272
|
return [...new Array(e)].map((n, o) => t(o));
|
|
3273
3273
|
}
|
|
3274
3274
|
const fa = [
|
|
@@ -3316,7 +3316,7 @@ const fa = [
|
|
|
3316
3316
|
droppableRects: n,
|
|
3317
3317
|
droppableContainers: l,
|
|
3318
3318
|
pointerCoordinates: null
|
|
3319
|
-
}), d =
|
|
3319
|
+
}), d = Vn(c, "id");
|
|
3320
3320
|
if (d != null) {
|
|
3321
3321
|
const u = o.get(d), h = u == null ? void 0 : u.node.current, g = u == null ? void 0 : u.rect.current;
|
|
3322
3322
|
if (h && g)
|
|
@@ -3366,8 +3366,8 @@ const fa = [
|
|
|
3366
3366
|
&:hover .Actions > * {
|
|
3367
3367
|
opacity: 1 !important;
|
|
3368
3368
|
}
|
|
3369
|
-
`,
|
|
3370
|
-
|
|
3369
|
+
`, jn = Mr(
|
|
3370
|
+
Sn(
|
|
3371
3371
|
({
|
|
3372
3372
|
cardProps: e,
|
|
3373
3373
|
color: t,
|
|
@@ -3392,7 +3392,7 @@ const fa = [
|
|
|
3392
3392
|
children: R,
|
|
3393
3393
|
...T
|
|
3394
3394
|
}, _) => {
|
|
3395
|
-
const O =
|
|
3395
|
+
const O = kn();
|
|
3396
3396
|
return K(() => {
|
|
3397
3397
|
if (n)
|
|
3398
3398
|
return document.body.style.cursor = "grabbing", () => {
|
|
@@ -3413,7 +3413,7 @@ const fa = [
|
|
|
3413
3413
|
}) : /* @__PURE__ */ le(
|
|
3414
3414
|
"li",
|
|
3415
3415
|
{
|
|
3416
|
-
className:
|
|
3416
|
+
className: pr(
|
|
3417
3417
|
We.Wrapper,
|
|
3418
3418
|
a && We.fadeIn,
|
|
3419
3419
|
b && We.sorting,
|
|
@@ -3435,7 +3435,7 @@ const fa = [
|
|
|
3435
3435
|
{
|
|
3436
3436
|
theme: O,
|
|
3437
3437
|
color: t,
|
|
3438
|
-
className:
|
|
3438
|
+
className: pr(
|
|
3439
3439
|
We.Item,
|
|
3440
3440
|
o && We.dragging,
|
|
3441
3441
|
l && We.withHandle,
|
|
@@ -3543,7 +3543,7 @@ const fa = [
|
|
|
3543
3543
|
& > *:first-of-type:not(:last-of-type):focus-visible {
|
|
3544
3544
|
opacity: 1;
|
|
3545
3545
|
}
|
|
3546
|
-
`,
|
|
3546
|
+
`, uo = Sn((e, t) => {
|
|
3547
3547
|
const {
|
|
3548
3548
|
children: n,
|
|
3549
3549
|
containerId: o,
|
|
@@ -3564,7 +3564,7 @@ const fa = [
|
|
|
3564
3564
|
size: E,
|
|
3565
3565
|
color: D,
|
|
3566
3566
|
...R
|
|
3567
|
-
} = e, T =
|
|
3567
|
+
} = e, T = kn();
|
|
3568
3568
|
return /* @__PURE__ */ vn(
|
|
3569
3569
|
Aa,
|
|
3570
3570
|
{
|
|
@@ -3600,12 +3600,12 @@ Dn.exports;
|
|
|
3600
3600
|
(function(e, t) {
|
|
3601
3601
|
var n = 200, o = "Expected a function", i = "__lodash_hash_undefined__", a = 1, l = 2, c = 1 / 0, d = 9007199254740991, u = 17976931348623157e292, h = NaN, g = "[object Arguments]", w = "[object Array]", b = "[object Boolean]", A = "[object Date]", v = "[object Error]", x = "[object Function]", S = "[object GeneratorFunction]", E = "[object Map]", D = "[object Number]", R = "[object Object]", T = "[object Promise]", _ = "[object RegExp]", O = "[object Set]", M = "[object String]", H = "[object Symbol]", U = "[object WeakMap]", B = "[object ArrayBuffer]", re = "[object DataView]", Q = "[object Float32Array]", Ae = "[object Float64Array]", Xe = "[object Int8Array]", F = "[object Int16Array]", J = "[object Int32Array]", Pe = "[object Uint8Array]", Ne = "[object Uint8ClampedArray]", ue = "[object Uint16Array]", $e = "[object Uint32Array]", V = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, we = /^\w*$/, Ue = /^\./, et = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Z = /[\\^$.*+?()[\]{}|]/g, tt = /^\s+|\s+$/g, Be = /\\(\\)?/g, de = /^[-+]0x[0-9a-f]+$/i, $ = /^0b[01]+$/i, nt = /^\[object .+?Constructor\]$/, Ee = /^0o[0-7]+$/i, Ve = /^(?:0|[1-9]\d*)$/, P = {};
|
|
3602
3602
|
P[Q] = P[Ae] = P[Xe] = P[F] = P[J] = P[Pe] = P[Ne] = P[ue] = P[$e] = !0, P[g] = P[w] = P[B] = P[b] = P[re] = P[A] = P[v] = P[x] = P[E] = P[D] = P[R] = P[_] = P[O] = P[M] = P[U] = !1;
|
|
3603
|
-
var Qe = parseInt, je = typeof dn == "object" && dn && dn.Object === Object && dn, mt = typeof self == "object" && self && self.Object === Object && self, _e = je || mt || Function("return this")(), Ze = t && !t.nodeType && t, p = Ze && !0 && e && !e.nodeType && e, m = p && p.exports === Ze, N = m && je.process,
|
|
3603
|
+
var Qe = parseInt, je = typeof dn == "object" && dn && dn.Object === Object && dn, mt = typeof self == "object" && self && self.Object === Object && self, _e = je || mt || Function("return this")(), Ze = t && !t.nodeType && t, p = Ze && !0 && e && !e.nodeType && e, m = p && p.exports === Ze, N = m && je.process, G = function() {
|
|
3604
3604
|
try {
|
|
3605
3605
|
return N && N.binding("util");
|
|
3606
3606
|
} catch {
|
|
3607
3607
|
}
|
|
3608
|
-
}(),
|
|
3608
|
+
}(), Y = G && G.isTypedArray;
|
|
3609
3609
|
function fe(r, s) {
|
|
3610
3610
|
for (var f = -1, y = r ? r.length : 0; ++f < y; )
|
|
3611
3611
|
if (s(r[f], f, r))
|
|
@@ -3665,9 +3665,9 @@ Dn.exports;
|
|
|
3665
3665
|
var se = Array.prototype, Le = Function.prototype, ot = Object.prototype, _t = _e["__core-js_shared__"], Qt = function() {
|
|
3666
3666
|
var r = /[^.]+$/.exec(_t && _t.keys && _t.keys.IE_PROTO || "");
|
|
3667
3667
|
return r ? "Symbol(src)_1." + r : "";
|
|
3668
|
-
}(), Zt = Le.toString, Ye = ot.hasOwnProperty,
|
|
3668
|
+
}(), Zt = Le.toString, Ye = ot.hasOwnProperty, W = ot.toString, xe = RegExp(
|
|
3669
3669
|
"^" + Zt.call(Ye).replace(Z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3670
|
-
), ye = _e.Symbol, ke = _e.Uint8Array, Ie = ot.propertyIsEnumerable, Ce = se.splice, ze = wt(Object.keys, Object), ut = Math.max, De = It(_e, "DataView"), Ge = It(_e, "Map"), it = It(_e, "Promise"), dt = It(_e, "Set"), ft = It(_e, "WeakMap"), gt = It(Object, "create"), xt = St(De), Ct = St(Ge), Ht = St(it),
|
|
3670
|
+
), ye = _e.Symbol, ke = _e.Uint8Array, Ie = ot.propertyIsEnumerable, Ce = se.splice, ze = wt(Object.keys, Object), ut = Math.max, De = It(_e, "DataView"), Ge = It(_e, "Map"), it = It(_e, "Promise"), dt = It(_e, "Set"), ft = It(_e, "WeakMap"), gt = It(Object, "create"), xt = St(De), Ct = St(Ge), Ht = St(it), fo = St(dt), go = St(ft), en = ye ? ye.prototype : void 0, On = en ? en.valueOf : void 0, rr = en ? en.toString : void 0;
|
|
3671
3671
|
function Dt(r) {
|
|
3672
3672
|
var s = -1, f = r ? r.length : 0;
|
|
3673
3673
|
for (this.clear(); ++s < f; ) {
|
|
@@ -3675,13 +3675,13 @@ Dn.exports;
|
|
|
3675
3675
|
this.set(y[0], y[1]);
|
|
3676
3676
|
}
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3678
|
+
function ho() {
|
|
3679
3679
|
this.__data__ = gt ? gt(null) : {};
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function po(r) {
|
|
3682
3682
|
return this.has(r) && delete this.__data__[r];
|
|
3683
3683
|
}
|
|
3684
|
-
function
|
|
3684
|
+
function vo(r) {
|
|
3685
3685
|
var s = this.__data__;
|
|
3686
3686
|
if (gt) {
|
|
3687
3687
|
var f = s[r];
|
|
@@ -3689,15 +3689,15 @@ Dn.exports;
|
|
|
3689
3689
|
}
|
|
3690
3690
|
return Ye.call(s, r) ? s[r] : void 0;
|
|
3691
3691
|
}
|
|
3692
|
-
function
|
|
3692
|
+
function bo(r) {
|
|
3693
3693
|
var s = this.__data__;
|
|
3694
3694
|
return gt ? s[r] !== void 0 : Ye.call(s, r);
|
|
3695
3695
|
}
|
|
3696
|
-
function
|
|
3696
|
+
function yo(r, s) {
|
|
3697
3697
|
var f = this.__data__;
|
|
3698
3698
|
return f[r] = gt && s === void 0 ? i : s, this;
|
|
3699
3699
|
}
|
|
3700
|
-
Dt.prototype.clear =
|
|
3700
|
+
Dt.prototype.clear = ho, Dt.prototype.delete = po, Dt.prototype.get = vo, Dt.prototype.has = bo, Dt.prototype.set = yo;
|
|
3701
3701
|
function st(r) {
|
|
3702
3702
|
var s = -1, f = r ? r.length : 0;
|
|
3703
3703
|
for (this.clear(); ++s < f; ) {
|
|
@@ -3705,28 +3705,28 @@ Dn.exports;
|
|
|
3705
3705
|
this.set(y[0], y[1]);
|
|
3706
3706
|
}
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function mo() {
|
|
3709
3709
|
this.__data__ = [];
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3711
|
+
function wo(r) {
|
|
3712
3712
|
var s = this.__data__, f = nn(s, r);
|
|
3713
3713
|
if (f < 0)
|
|
3714
3714
|
return !1;
|
|
3715
3715
|
var y = s.length - 1;
|
|
3716
3716
|
return f == y ? s.pop() : Ce.call(s, f, 1), !0;
|
|
3717
3717
|
}
|
|
3718
|
-
function
|
|
3718
|
+
function xo(r) {
|
|
3719
3719
|
var s = this.__data__, f = nn(s, r);
|
|
3720
3720
|
return f < 0 ? void 0 : s[f][1];
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3722
|
+
function Co(r) {
|
|
3723
3723
|
return nn(this.__data__, r) > -1;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3725
|
+
function Do(r, s) {
|
|
3726
3726
|
var f = this.__data__, y = nn(f, r);
|
|
3727
3727
|
return y < 0 ? f.push([r, s]) : f[y][1] = s, this;
|
|
3728
3728
|
}
|
|
3729
|
-
st.prototype.clear =
|
|
3729
|
+
st.prototype.clear = mo, st.prototype.delete = wo, st.prototype.get = xo, st.prototype.has = Co, st.prototype.set = Do;
|
|
3730
3730
|
function at(r) {
|
|
3731
3731
|
var s = -1, f = r ? r.length : 0;
|
|
3732
3732
|
for (this.clear(); ++s < f; ) {
|
|
@@ -3734,54 +3734,54 @@ Dn.exports;
|
|
|
3734
3734
|
this.set(y[0], y[1]);
|
|
3735
3735
|
}
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function So() {
|
|
3738
3738
|
this.__data__ = {
|
|
3739
3739
|
hash: new Dt(),
|
|
3740
3740
|
map: new (Ge || st)(),
|
|
3741
3741
|
string: new Dt()
|
|
3742
3742
|
};
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function Ro(r) {
|
|
3745
3745
|
return rn(this, r).delete(r);
|
|
3746
3746
|
}
|
|
3747
|
-
function
|
|
3747
|
+
function Ao(r) {
|
|
3748
3748
|
return rn(this, r).get(r);
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3750
|
+
function Eo(r) {
|
|
3751
3751
|
return rn(this, r).has(r);
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function _o(r, s) {
|
|
3754
3754
|
return rn(this, r).set(r, s), this;
|
|
3755
3755
|
}
|
|
3756
|
-
at.prototype.clear =
|
|
3756
|
+
at.prototype.clear = So, at.prototype.delete = Ro, at.prototype.get = Ao, at.prototype.has = Eo, at.prototype.set = _o;
|
|
3757
3757
|
function tn(r) {
|
|
3758
3758
|
var s = -1, f = r ? r.length : 0;
|
|
3759
3759
|
for (this.__data__ = new at(); ++s < f; )
|
|
3760
3760
|
this.add(r[s]);
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function Io(r) {
|
|
3763
3763
|
return this.__data__.set(r, i), this;
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3765
|
+
function Oo(r) {
|
|
3766
3766
|
return this.__data__.has(r);
|
|
3767
3767
|
}
|
|
3768
|
-
tn.prototype.add = tn.prototype.push =
|
|
3768
|
+
tn.prototype.add = tn.prototype.push = Io, tn.prototype.has = Oo;
|
|
3769
3769
|
function lt(r) {
|
|
3770
3770
|
this.__data__ = new st(r);
|
|
3771
3771
|
}
|
|
3772
|
-
function
|
|
3772
|
+
function To() {
|
|
3773
3773
|
this.__data__ = new st();
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function No(r) {
|
|
3776
3776
|
return this.__data__.delete(r);
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function Mo(r) {
|
|
3779
3779
|
return this.__data__.get(r);
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function Lo(r) {
|
|
3782
3782
|
return this.__data__.has(r);
|
|
3783
3783
|
}
|
|
3784
|
-
function
|
|
3784
|
+
function Po(r, s) {
|
|
3785
3785
|
var f = this.__data__;
|
|
3786
3786
|
if (f instanceof st) {
|
|
3787
3787
|
var y = f.__data__;
|
|
@@ -3791,40 +3791,40 @@ Dn.exports;
|
|
|
3791
3791
|
}
|
|
3792
3792
|
return f.set(r, s), this;
|
|
3793
3793
|
}
|
|
3794
|
-
lt.prototype.clear =
|
|
3795
|
-
function
|
|
3796
|
-
var f = Rt(r) ||
|
|
3794
|
+
lt.prototype.clear = To, lt.prototype.delete = No, lt.prototype.get = Mo, lt.prototype.has = Lo, lt.prototype.set = Po;
|
|
3795
|
+
function $o(r, s) {
|
|
3796
|
+
var f = Rt(r) || dr(r) ? he(r.length, String) : [], y = f.length, I = !!y;
|
|
3797
3797
|
for (var C in r)
|
|
3798
|
-
Ye.call(r, C) && !(I && (C == "length" ||
|
|
3798
|
+
Ye.call(r, C) && !(I && (C == "length" || ar(C, y))) && f.push(C);
|
|
3799
3799
|
return f;
|
|
3800
3800
|
}
|
|
3801
3801
|
function nn(r, s) {
|
|
3802
3802
|
for (var f = r.length; f--; )
|
|
3803
|
-
if (
|
|
3803
|
+
if (ur(r[f][0], s))
|
|
3804
3804
|
return f;
|
|
3805
3805
|
return -1;
|
|
3806
3806
|
}
|
|
3807
|
-
function
|
|
3808
|
-
s = on(s, r) ? [s] :
|
|
3807
|
+
function or(r, s) {
|
|
3808
|
+
s = on(s, r) ? [s] : ir(s);
|
|
3809
3809
|
for (var f = 0, y = s.length; r != null && f < y; )
|
|
3810
3810
|
r = r[sn(s[f++])];
|
|
3811
3811
|
return f && f == y ? r : void 0;
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3814
|
-
return
|
|
3813
|
+
function Bo(r) {
|
|
3814
|
+
return W.call(r);
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function zo(r, s) {
|
|
3817
3817
|
return r != null && s in Object(r);
|
|
3818
3818
|
}
|
|
3819
|
-
function
|
|
3820
|
-
return r === s ? !0 : r == null || s == null || !Ot(r) && !an(s) ? r !== r && s !== s :
|
|
3819
|
+
function Tn(r, s, f, y, I) {
|
|
3820
|
+
return r === s ? !0 : r == null || s == null || !Ot(r) && !an(s) ? r !== r && s !== s : Fo(r, s, Tn, f, y, I);
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3822
|
+
function Fo(r, s, f, y, I, C) {
|
|
3823
3823
|
var z = Rt(r), pe = Rt(s), ae = w, me = w;
|
|
3824
3824
|
z || (ae = ht(r), ae = ae == g ? R : ae), pe || (me = ht(s), me = me == g ? R : me);
|
|
3825
3825
|
var Oe = ae == R && !te(r), Te = me == R && !te(s), Se = ae == me;
|
|
3826
3826
|
if (Se && !Oe)
|
|
3827
|
-
return C || (C = new lt()), z ||
|
|
3827
|
+
return C || (C = new lt()), z || ii(r) ? sr(r, s, f, y, I, C) : qo(r, s, ae, f, y, I, C);
|
|
3828
3828
|
if (!(I & l)) {
|
|
3829
3829
|
var Fe = Oe && Ye.call(r, "__wrapped__"), Ke = Te && Ye.call(s, "__wrapped__");
|
|
3830
3830
|
if (Fe || Ke) {
|
|
@@ -3832,9 +3832,9 @@ Dn.exports;
|
|
|
3832
3832
|
return C || (C = new lt()), f(pt, ct, y, I, C);
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
|
-
return Se ? (C || (C = new lt()),
|
|
3835
|
+
return Se ? (C || (C = new lt()), Jo(r, s, f, y, I, C)) : !1;
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3837
|
+
function Ko(r, s, f, y) {
|
|
3838
3838
|
var I = f.length, C = I;
|
|
3839
3839
|
if (r == null)
|
|
3840
3840
|
return !C;
|
|
@@ -3851,61 +3851,61 @@ Dn.exports;
|
|
|
3851
3851
|
return !1;
|
|
3852
3852
|
} else {
|
|
3853
3853
|
var Oe = new lt(), Te;
|
|
3854
|
-
if (!(Te === void 0 ?
|
|
3854
|
+
if (!(Te === void 0 ? Tn(me, ae, y, a | l, Oe) : Te))
|
|
3855
3855
|
return !1;
|
|
3856
3856
|
}
|
|
3857
3857
|
}
|
|
3858
3858
|
return !0;
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3861
|
-
if (!Ot(r) ||
|
|
3860
|
+
function Ho(r) {
|
|
3861
|
+
if (!Ot(r) || ei(r))
|
|
3862
3862
|
return !1;
|
|
3863
|
-
var s =
|
|
3863
|
+
var s = gr(r) || te(r) ? xe : nt;
|
|
3864
3864
|
return s.test(St(r));
|
|
3865
3865
|
}
|
|
3866
|
-
function Ho(r) {
|
|
3867
|
-
return an(r) && Nn(r.length) && !!P[q.call(r)];
|
|
3868
|
-
}
|
|
3869
3866
|
function Xo(r) {
|
|
3870
|
-
return
|
|
3867
|
+
return an(r) && Mn(r.length) && !!P[W.call(r)];
|
|
3871
3868
|
}
|
|
3872
3869
|
function Uo(r) {
|
|
3873
|
-
|
|
3870
|
+
return typeof r == "function" ? r : r == null ? fi : typeof r == "object" ? Rt(r) ? ko(r[0], r[1]) : Yo(r) : gi(r);
|
|
3871
|
+
}
|
|
3872
|
+
function jo(r) {
|
|
3873
|
+
if (!ti(r))
|
|
3874
3874
|
return ze(r);
|
|
3875
3875
|
var s = [];
|
|
3876
3876
|
for (var f in Object(r))
|
|
3877
3877
|
Ye.call(r, f) && f != "constructor" && s.push(f);
|
|
3878
3878
|
return s;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3881
|
-
var s =
|
|
3882
|
-
return s.length == 1 && s[0][2] ?
|
|
3883
|
-
return f === r ||
|
|
3880
|
+
function Yo(r) {
|
|
3881
|
+
var s = Vo(r);
|
|
3882
|
+
return s.length == 1 && s[0][2] ? cr(s[0][0], s[0][1]) : function(f) {
|
|
3883
|
+
return f === r || Ko(f, r, s);
|
|
3884
3884
|
};
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3887
|
-
return on(r) &&
|
|
3888
|
-
var y =
|
|
3889
|
-
return y === void 0 && y === s ?
|
|
3886
|
+
function ko(r, s) {
|
|
3887
|
+
return on(r) && lr(s) ? cr(sn(r), s) : function(f) {
|
|
3888
|
+
var y = ui(f, r);
|
|
3889
|
+
return y === void 0 && y === s ? di(f, r) : Tn(s, y, void 0, a | l);
|
|
3890
3890
|
};
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function Go(r) {
|
|
3893
3893
|
return function(s) {
|
|
3894
|
-
return
|
|
3894
|
+
return or(s, r);
|
|
3895
3895
|
};
|
|
3896
3896
|
}
|
|
3897
|
-
function
|
|
3897
|
+
function Wo(r) {
|
|
3898
3898
|
if (typeof r == "string")
|
|
3899
3899
|
return r;
|
|
3900
3900
|
if (ln(r))
|
|
3901
|
-
return
|
|
3901
|
+
return rr ? rr.call(r) : "";
|
|
3902
3902
|
var s = r + "";
|
|
3903
3903
|
return s == "0" && 1 / r == -c ? "-0" : s;
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3906
|
-
return Rt(r) ? r :
|
|
3905
|
+
function ir(r) {
|
|
3906
|
+
return Rt(r) ? r : ni(r);
|
|
3907
3907
|
}
|
|
3908
|
-
function
|
|
3908
|
+
function sr(r, s, f, y, I, C) {
|
|
3909
3909
|
var z = I & l, pe = r.length, ae = s.length;
|
|
3910
3910
|
if (pe != ae && !(z && ae > pe))
|
|
3911
3911
|
return !1;
|
|
@@ -3938,7 +3938,7 @@ Dn.exports;
|
|
|
3938
3938
|
}
|
|
3939
3939
|
return C.delete(r), C.delete(s), Te;
|
|
3940
3940
|
}
|
|
3941
|
-
function
|
|
3941
|
+
function qo(r, s, f, y, I, C, z) {
|
|
3942
3942
|
switch (f) {
|
|
3943
3943
|
case re:
|
|
3944
3944
|
if (r.byteLength != s.byteLength || r.byteOffset != s.byteOffset)
|
|
@@ -3949,7 +3949,7 @@ Dn.exports;
|
|
|
3949
3949
|
case b:
|
|
3950
3950
|
case A:
|
|
3951
3951
|
case D:
|
|
3952
|
-
return
|
|
3952
|
+
return ur(+r, +s);
|
|
3953
3953
|
case v:
|
|
3954
3954
|
return r.name == s.name && r.message == s.message;
|
|
3955
3955
|
case _:
|
|
@@ -3965,16 +3965,16 @@ Dn.exports;
|
|
|
3965
3965
|
if (me)
|
|
3966
3966
|
return me == s;
|
|
3967
3967
|
C |= a, z.set(r, s);
|
|
3968
|
-
var Oe =
|
|
3968
|
+
var Oe = sr(pe(r), pe(s), y, I, C, z);
|
|
3969
3969
|
return z.delete(r), Oe;
|
|
3970
3970
|
case H:
|
|
3971
|
-
if (
|
|
3972
|
-
return
|
|
3971
|
+
if (On)
|
|
3972
|
+
return On.call(r) == On.call(s);
|
|
3973
3973
|
}
|
|
3974
3974
|
return !1;
|
|
3975
3975
|
}
|
|
3976
|
-
function
|
|
3977
|
-
var z = I & l, pe =
|
|
3976
|
+
function Jo(r, s, f, y, I, C) {
|
|
3977
|
+
var z = I & l, pe = Ln(r), ae = pe.length, me = Ln(s), Oe = me.length;
|
|
3978
3978
|
if (ae != Oe && !z)
|
|
3979
3979
|
return !1;
|
|
3980
3980
|
for (var Te = ae; Te--; ) {
|
|
@@ -3991,8 +3991,8 @@ Dn.exports;
|
|
|
3991
3991
|
Se = pe[Te];
|
|
3992
3992
|
var ct = r[Se], At = s[Se];
|
|
3993
3993
|
if (y)
|
|
3994
|
-
var
|
|
3995
|
-
if (!(
|
|
3994
|
+
var hr = z ? y(At, ct, Se, s, r, C) : y(ct, At, Se, r, s, C);
|
|
3995
|
+
if (!(hr === void 0 ? ct === At || f(ct, At, y, I, C) : hr)) {
|
|
3996
3996
|
Ke = !1;
|
|
3997
3997
|
break;
|
|
3998
3998
|
}
|
|
@@ -4006,22 +4006,22 @@ Dn.exports;
|
|
|
4006
4006
|
}
|
|
4007
4007
|
function rn(r, s) {
|
|
4008
4008
|
var f = r.__data__;
|
|
4009
|
-
return
|
|
4009
|
+
return Zo(s) ? f[typeof s == "string" ? "string" : "hash"] : f.map;
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4012
|
-
for (var s =
|
|
4011
|
+
function Vo(r) {
|
|
4012
|
+
for (var s = Ln(r), f = s.length; f--; ) {
|
|
4013
4013
|
var y = s[f], I = r[y];
|
|
4014
|
-
s[f] = [y, I,
|
|
4014
|
+
s[f] = [y, I, lr(I)];
|
|
4015
4015
|
}
|
|
4016
4016
|
return s;
|
|
4017
4017
|
}
|
|
4018
4018
|
function It(r, s) {
|
|
4019
4019
|
var f = rt(r, s);
|
|
4020
|
-
return
|
|
4020
|
+
return Ho(f) ? f : void 0;
|
|
4021
4021
|
}
|
|
4022
|
-
var ht =
|
|
4022
|
+
var ht = Bo;
|
|
4023
4023
|
(De && ht(new De(new ArrayBuffer(1))) != re || Ge && ht(new Ge()) != E || it && ht(it.resolve()) != T || dt && ht(new dt()) != O || ft && ht(new ft()) != U) && (ht = function(r) {
|
|
4024
|
-
var s =
|
|
4024
|
+
var s = W.call(r), f = s == R ? r.constructor : void 0, y = f ? St(f) : void 0;
|
|
4025
4025
|
if (y)
|
|
4026
4026
|
switch (y) {
|
|
4027
4027
|
case xt:
|
|
@@ -4030,15 +4030,15 @@ Dn.exports;
|
|
|
4030
4030
|
return E;
|
|
4031
4031
|
case Ht:
|
|
4032
4032
|
return T;
|
|
4033
|
-
case uo:
|
|
4034
|
-
return O;
|
|
4035
4033
|
case fo:
|
|
4034
|
+
return O;
|
|
4035
|
+
case go:
|
|
4036
4036
|
return U;
|
|
4037
4037
|
}
|
|
4038
4038
|
return s;
|
|
4039
4039
|
});
|
|
4040
|
-
function
|
|
4041
|
-
s = on(s, r) ? [s] :
|
|
4040
|
+
function Qo(r, s, f) {
|
|
4041
|
+
s = on(s, r) ? [s] : ir(s);
|
|
4042
4042
|
for (var y, I = -1, z = s.length; ++I < z; ) {
|
|
4043
4043
|
var C = sn(s[I]);
|
|
4044
4044
|
if (!(y = r != null && f(r, C)))
|
|
@@ -4048,9 +4048,9 @@ Dn.exports;
|
|
|
4048
4048
|
if (y)
|
|
4049
4049
|
return y;
|
|
4050
4050
|
var z = r ? r.length : 0;
|
|
4051
|
-
return !!z &&
|
|
4051
|
+
return !!z && Mn(z) && ar(C, z) && (Rt(r) || dr(r));
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function ar(r, s) {
|
|
4054
4054
|
return s = s ?? d, !!s && (typeof r == "number" || Ve.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
4055
4055
|
}
|
|
4056
4056
|
function on(r, s) {
|
|
@@ -4059,27 +4059,27 @@ Dn.exports;
|
|
|
4059
4059
|
var f = typeof r;
|
|
4060
4060
|
return f == "number" || f == "symbol" || f == "boolean" || r == null || ln(r) ? !0 : we.test(r) || !V.test(r) || s != null && r in Object(s);
|
|
4061
4061
|
}
|
|
4062
|
-
function
|
|
4062
|
+
function Zo(r) {
|
|
4063
4063
|
var s = typeof r;
|
|
4064
4064
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
4065
4065
|
}
|
|
4066
|
-
function
|
|
4066
|
+
function ei(r) {
|
|
4067
4067
|
return !!Qt && Qt in r;
|
|
4068
4068
|
}
|
|
4069
|
-
function
|
|
4069
|
+
function ti(r) {
|
|
4070
4070
|
var s = r && r.constructor, f = typeof s == "function" && s.prototype || ot;
|
|
4071
4071
|
return r === f;
|
|
4072
4072
|
}
|
|
4073
|
-
function
|
|
4073
|
+
function lr(r) {
|
|
4074
4074
|
return r === r && !Ot(r);
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function cr(r, s) {
|
|
4077
4077
|
return function(f) {
|
|
4078
4078
|
return f == null ? !1 : f[r] === s && (s !== void 0 || r in Object(f));
|
|
4079
4079
|
};
|
|
4080
4080
|
}
|
|
4081
|
-
var
|
|
4082
|
-
r =
|
|
4081
|
+
var ni = Nn(function(r) {
|
|
4082
|
+
r = ci(r);
|
|
4083
4083
|
var s = [];
|
|
4084
4084
|
return Ue.test(r) && s.push(""), r.replace(et, function(f, y, I, C) {
|
|
4085
4085
|
s.push(I ? C.replace(Be, "$1") : y || f);
|
|
@@ -4104,14 +4104,14 @@ Dn.exports;
|
|
|
4104
4104
|
}
|
|
4105
4105
|
return "";
|
|
4106
4106
|
}
|
|
4107
|
-
function
|
|
4107
|
+
function ri(r, s, f) {
|
|
4108
4108
|
var y = r ? r.length : 0;
|
|
4109
4109
|
if (!y)
|
|
4110
4110
|
return -1;
|
|
4111
|
-
var I = f == null ? 0 :
|
|
4112
|
-
return I < 0 && (I = ut(y + I, 0)), ee(r,
|
|
4111
|
+
var I = f == null ? 0 : ai(f);
|
|
4112
|
+
return I < 0 && (I = ut(y + I, 0)), ee(r, Uo(s), I);
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function Nn(r, s) {
|
|
4115
4115
|
if (typeof r != "function" || s && typeof s != "function")
|
|
4116
4116
|
throw new TypeError(o);
|
|
4117
4117
|
var f = function() {
|
|
@@ -4121,27 +4121,27 @@ Dn.exports;
|
|
|
4121
4121
|
var z = r.apply(this, y);
|
|
4122
4122
|
return f.cache = C.set(I, z), z;
|
|
4123
4123
|
};
|
|
4124
|
-
return f.cache = new (
|
|
4124
|
+
return f.cache = new (Nn.Cache || at)(), f;
|
|
4125
4125
|
}
|
|
4126
|
-
|
|
4127
|
-
function
|
|
4126
|
+
Nn.Cache = at;
|
|
4127
|
+
function ur(r, s) {
|
|
4128
4128
|
return r === s || r !== r && s !== s;
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4131
|
-
return
|
|
4130
|
+
function dr(r) {
|
|
4131
|
+
return oi(r) && Ye.call(r, "callee") && (!Ie.call(r, "callee") || W.call(r) == g);
|
|
4132
4132
|
}
|
|
4133
4133
|
var Rt = Array.isArray;
|
|
4134
|
-
function
|
|
4135
|
-
return r != null &&
|
|
4134
|
+
function fr(r) {
|
|
4135
|
+
return r != null && Mn(r.length) && !gr(r);
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4138
|
-
return an(r) &&
|
|
4137
|
+
function oi(r) {
|
|
4138
|
+
return an(r) && fr(r);
|
|
4139
4139
|
}
|
|
4140
|
-
function
|
|
4141
|
-
var s = Ot(r) ?
|
|
4140
|
+
function gr(r) {
|
|
4141
|
+
var s = Ot(r) ? W.call(r) : "";
|
|
4142
4142
|
return s == x || s == S;
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function Mn(r) {
|
|
4145
4145
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= d;
|
|
4146
4146
|
}
|
|
4147
4147
|
function Ot(r) {
|
|
@@ -4152,23 +4152,23 @@ Dn.exports;
|
|
|
4152
4152
|
return !!r && typeof r == "object";
|
|
4153
4153
|
}
|
|
4154
4154
|
function ln(r) {
|
|
4155
|
-
return typeof r == "symbol" || an(r) &&
|
|
4155
|
+
return typeof r == "symbol" || an(r) && W.call(r) == H;
|
|
4156
4156
|
}
|
|
4157
|
-
var
|
|
4158
|
-
function
|
|
4157
|
+
var ii = Y ? be(Y) : Xo;
|
|
4158
|
+
function si(r) {
|
|
4159
4159
|
if (!r)
|
|
4160
4160
|
return r === 0 ? r : 0;
|
|
4161
|
-
if (r =
|
|
4161
|
+
if (r = li(r), r === c || r === -c) {
|
|
4162
4162
|
var s = r < 0 ? -1 : 1;
|
|
4163
4163
|
return s * u;
|
|
4164
4164
|
}
|
|
4165
4165
|
return r === r ? r : 0;
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4168
|
-
var s =
|
|
4167
|
+
function ai(r) {
|
|
4168
|
+
var s = si(r), f = s % 1;
|
|
4169
4169
|
return s === s ? f ? s - f : s : 0;
|
|
4170
4170
|
}
|
|
4171
|
-
function
|
|
4171
|
+
function li(r) {
|
|
4172
4172
|
if (typeof r == "number")
|
|
4173
4173
|
return r;
|
|
4174
4174
|
if (ln(r))
|
|
@@ -4183,26 +4183,26 @@ Dn.exports;
|
|
|
4183
4183
|
var f = $.test(r);
|
|
4184
4184
|
return f || Ee.test(r) ? Qe(r.slice(2), f ? 2 : 8) : de.test(r) ? h : +r;
|
|
4185
4185
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return r == null ? "" :
|
|
4186
|
+
function ci(r) {
|
|
4187
|
+
return r == null ? "" : Wo(r);
|
|
4188
4188
|
}
|
|
4189
|
-
function
|
|
4190
|
-
var y = r == null ? void 0 :
|
|
4189
|
+
function ui(r, s, f) {
|
|
4190
|
+
var y = r == null ? void 0 : or(r, s);
|
|
4191
4191
|
return y === void 0 ? f : y;
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4194
|
-
return r != null &&
|
|
4193
|
+
function di(r, s) {
|
|
4194
|
+
return r != null && Qo(r, s, zo);
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4197
|
-
return
|
|
4196
|
+
function Ln(r) {
|
|
4197
|
+
return fr(r) ? $o(r) : jo(r);
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function fi(r) {
|
|
4200
4200
|
return r;
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4203
|
-
return on(r) ? oe(sn(r)) :
|
|
4202
|
+
function gi(r) {
|
|
4203
|
+
return on(r) ? oe(sn(r)) : Go(r);
|
|
4204
4204
|
}
|
|
4205
|
-
e.exports =
|
|
4205
|
+
e.exports = ri;
|
|
4206
4206
|
})(Dn, Dn.exports);
|
|
4207
4207
|
var Ia = Dn.exports;
|
|
4208
4208
|
const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
@@ -4211,8 +4211,8 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4211
4211
|
flex-direction: ${(e) => e.verticalDisplay ? "column" : "row"};
|
|
4212
4212
|
${(e) => e.horizontalDisplay == !1 && "flex-wrap: wrap;"}
|
|
4213
4213
|
overflow: auto;
|
|
4214
|
-
`, Na = (e) =>
|
|
4215
|
-
sideEffects:
|
|
4214
|
+
`, Na = (e) => ao({ ...e, wasDragging: !0 }), Ma = {
|
|
4215
|
+
sideEffects: ro({
|
|
4216
4216
|
styles: {
|
|
4217
4217
|
active: {
|
|
4218
4218
|
opacity: "0.5"
|
|
@@ -4225,7 +4225,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4225
4225
|
const n = setTimeout(() => t(!0), 500);
|
|
4226
4226
|
return () => clearTimeout(n);
|
|
4227
4227
|
}, []), e;
|
|
4228
|
-
},
|
|
4228
|
+
}, Yn = (e, t) => {
|
|
4229
4229
|
if (e)
|
|
4230
4230
|
return Pt(
|
|
4231
4231
|
t,
|
|
@@ -4257,7 +4257,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4257
4257
|
setNodeRef: x,
|
|
4258
4258
|
transition: S,
|
|
4259
4259
|
transform: E
|
|
4260
|
-
} =
|
|
4260
|
+
} = co({
|
|
4261
4261
|
id: i,
|
|
4262
4262
|
data: {
|
|
4263
4263
|
type: "container",
|
|
@@ -4266,7 +4266,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4266
4266
|
animateLayoutChanges: Na
|
|
4267
4267
|
}), D = v ? i === v.id && ((R = g == null ? void 0 : g.data.current) == null ? void 0 : R.type) !== "container" || a.includes(v.id) : !1;
|
|
4268
4268
|
return /* @__PURE__ */ le(
|
|
4269
|
-
|
|
4269
|
+
uo,
|
|
4270
4270
|
{
|
|
4271
4271
|
ref: o ? void 0 : x,
|
|
4272
4272
|
style: {
|
|
@@ -4314,11 +4314,11 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4314
4314
|
transform: R,
|
|
4315
4315
|
transition: T,
|
|
4316
4316
|
attributes: _
|
|
4317
|
-
} =
|
|
4317
|
+
} = co({
|
|
4318
4318
|
id: t
|
|
4319
4319
|
}), O = La(), M = x && !O;
|
|
4320
4320
|
return /* @__PURE__ */ le(
|
|
4321
|
-
|
|
4321
|
+
jn,
|
|
4322
4322
|
{
|
|
4323
4323
|
ref: e ? void 0 : b,
|
|
4324
4324
|
cardProps: u,
|
|
@@ -4341,7 +4341,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4341
4341
|
overIndex: E ? c(E.id) : D,
|
|
4342
4342
|
containerId: l
|
|
4343
4343
|
},
|
|
4344
|
-
color:
|
|
4344
|
+
color: Yn(n == null ? void 0 : n.color, h),
|
|
4345
4345
|
transition: T,
|
|
4346
4346
|
transform: R,
|
|
4347
4347
|
fadeIn: M,
|
|
@@ -4355,7 +4355,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4355
4355
|
})
|
|
4356
4356
|
}
|
|
4357
4357
|
);
|
|
4358
|
-
}, Ba =
|
|
4358
|
+
}, Ba = Sn((e, t) => {
|
|
4359
4359
|
const {
|
|
4360
4360
|
horizontalDisplay: n = !1,
|
|
4361
4361
|
verticalDisplay: o = !1,
|
|
@@ -4371,7 +4371,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4371
4371
|
minimal: b = !1,
|
|
4372
4372
|
modifiers: A,
|
|
4373
4373
|
renderItem: v,
|
|
4374
|
-
strategy: x =
|
|
4374
|
+
strategy: x = Or,
|
|
4375
4375
|
scrollable: S,
|
|
4376
4376
|
maxContainerHeight: E,
|
|
4377
4377
|
cardProps: D,
|
|
@@ -4391,16 +4391,16 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4391
4391
|
size: re = "small",
|
|
4392
4392
|
children: Q,
|
|
4393
4393
|
...Ae
|
|
4394
|
-
} = e, Xe =
|
|
4394
|
+
} = e, Xe = kn(), [F, J] = ne(
|
|
4395
4395
|
() => _ ?? {
|
|
4396
|
-
A:
|
|
4397
|
-
B:
|
|
4396
|
+
A: Nr(a, (p) => `A${p + 1}`),
|
|
4397
|
+
B: Nr(a, (p) => `B${p + 1}`)
|
|
4398
4398
|
}
|
|
4399
4399
|
), [Pe, Ne] = ne(Object.keys(_)), [ue, $e] = ne(null), V = X(null), we = X(!1), Ue = ue ? Pe.includes(ue) : !1, et = ve(
|
|
4400
4400
|
(p) => {
|
|
4401
|
-
var
|
|
4401
|
+
var Y;
|
|
4402
4402
|
if (ue && ue in F)
|
|
4403
|
-
return
|
|
4403
|
+
return yr({
|
|
4404
4404
|
...p,
|
|
4405
4405
|
droppableContainers: p.droppableContainers.filter(
|
|
4406
4406
|
(fe) => fe.id in F
|
|
@@ -4409,27 +4409,27 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4409
4409
|
const m = ji(p), N = m.length > 0 ? (
|
|
4410
4410
|
// If there are droppables intersecting with the pointer, return those
|
|
4411
4411
|
m
|
|
4412
|
-
) :
|
|
4413
|
-
let
|
|
4414
|
-
if (
|
|
4415
|
-
if (
|
|
4416
|
-
const fe = F[
|
|
4417
|
-
fe.length > 0 && (
|
|
4412
|
+
) : Br(p);
|
|
4413
|
+
let G = Vn(N, "id");
|
|
4414
|
+
if (G != null) {
|
|
4415
|
+
if (G in F) {
|
|
4416
|
+
const fe = F[G];
|
|
4417
|
+
fe.length > 0 && (G = (Y = yr({
|
|
4418
4418
|
...p,
|
|
4419
4419
|
droppableContainers: p.droppableContainers.filter(
|
|
4420
|
-
(ee) => ee.id !==
|
|
4420
|
+
(ee) => ee.id !== G && fe.map((oe) => oe.id).includes(ee.id)
|
|
4421
4421
|
)
|
|
4422
|
-
})[0]) == null ? void 0 :
|
|
4422
|
+
})[0]) == null ? void 0 : Y.id);
|
|
4423
4423
|
}
|
|
4424
|
-
return V.current =
|
|
4424
|
+
return V.current = G, [{ id: G }];
|
|
4425
4425
|
}
|
|
4426
4426
|
return we.current && (V.current = ue), V.current ? [{ id: V.current }] : [];
|
|
4427
4427
|
},
|
|
4428
4428
|
[ue, F]
|
|
4429
4429
|
), [Z, tt] = ne([]), Be = zi(
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4430
|
+
$n(qr),
|
|
4431
|
+
$n(Jr),
|
|
4432
|
+
$n(er, {
|
|
4433
4433
|
coordinateGetter: h
|
|
4434
4434
|
})
|
|
4435
4435
|
);
|
|
@@ -4452,14 +4452,14 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4452
4452
|
}, Ee = (p) => {
|
|
4453
4453
|
$e(p.active.id), tt(F);
|
|
4454
4454
|
}, Ve = (p) => {
|
|
4455
|
-
const { active: m, over: N } = p,
|
|
4456
|
-
if (
|
|
4455
|
+
const { active: m, over: N } = p, G = N == null ? void 0 : N.id;
|
|
4456
|
+
if (G == null || m.id in F)
|
|
4457
4457
|
return;
|
|
4458
|
-
const
|
|
4459
|
-
!
|
|
4460
|
-
const oe = ee[fe], he = ee[
|
|
4458
|
+
const Y = de(G), fe = de(m.id);
|
|
4459
|
+
!Y || !fe || fe !== Y && J((ee) => {
|
|
4460
|
+
const oe = ee[fe], he = ee[Y], be = Et(he, (Me) => Me.id == G), rt = Et(oe, (Me) => Me.id == m.id);
|
|
4461
4461
|
let te;
|
|
4462
|
-
if (
|
|
4462
|
+
if (G in ee)
|
|
4463
4463
|
te = he.length + 1;
|
|
4464
4464
|
else {
|
|
4465
4465
|
const wt = N && m.rect.current.translated && m.rect.current.translated.top > N.rect.top + N.rect.height ? 1 : 0;
|
|
@@ -4470,21 +4470,21 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4470
4470
|
[fe]: ee[fe].filter(
|
|
4471
4471
|
(Me) => Me.id != m.id
|
|
4472
4472
|
),
|
|
4473
|
-
[
|
|
4474
|
-
...ee[
|
|
4473
|
+
[Y]: [
|
|
4474
|
+
...ee[Y].slice(0, te),
|
|
4475
4475
|
ee[fe][rt],
|
|
4476
|
-
...ee[
|
|
4476
|
+
...ee[Y].slice(
|
|
4477
4477
|
te,
|
|
4478
|
-
ee[
|
|
4478
|
+
ee[Y].length
|
|
4479
4479
|
)
|
|
4480
4480
|
]
|
|
4481
4481
|
};
|
|
4482
4482
|
});
|
|
4483
4483
|
}, P = (p) => {
|
|
4484
4484
|
const { active: m, over: N } = p;
|
|
4485
|
-
var
|
|
4485
|
+
var G = !1, Y = mi(F);
|
|
4486
4486
|
m.id in F && (N != null && N.id) && Ne((ie) => {
|
|
4487
|
-
|
|
4487
|
+
G = !0;
|
|
4488
4488
|
const se = ie.indexOf(m.id), Le = ie.indexOf(N.id);
|
|
4489
4489
|
var ot = Yt(ie, se, Le);
|
|
4490
4490
|
return m.id !== N.id && M(p, ot), ot;
|
|
@@ -4505,10 +4505,10 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4505
4505
|
F[fe],
|
|
4506
4506
|
(Le) => Le.id == m.id
|
|
4507
4507
|
), se = Et(F[oe], (Le) => Le.id == ee);
|
|
4508
|
-
ie !== se && (
|
|
4509
|
-
...
|
|
4508
|
+
ie !== se && (Y = {
|
|
4509
|
+
...Y,
|
|
4510
4510
|
[oe]: Yt(
|
|
4511
|
-
|
|
4511
|
+
Y[oe],
|
|
4512
4512
|
ie,
|
|
4513
4513
|
se
|
|
4514
4514
|
)
|
|
@@ -4521,32 +4521,32 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4521
4521
|
)
|
|
4522
4522
|
})));
|
|
4523
4523
|
}
|
|
4524
|
-
if (!
|
|
4525
|
-
var he, be = null, rt, te = -1, Me = Object.keys(Z), wt = Object.keys(
|
|
4524
|
+
if (!G) {
|
|
4525
|
+
var he, be = null, rt, te = -1, Me = Object.keys(Z), wt = Object.keys(Y);
|
|
4526
4526
|
Me.forEach((ie) => {
|
|
4527
4527
|
if (Z[ie].map((se) => se.id.toString()).includes(m.id.toString())) {
|
|
4528
4528
|
he = ie, rt = Et(Z[ie], (se) => se.id == m.id);
|
|
4529
4529
|
return;
|
|
4530
4530
|
}
|
|
4531
4531
|
}), wt.forEach((ie) => {
|
|
4532
|
-
if (
|
|
4533
|
-
be = ie, te = Et(
|
|
4532
|
+
if (Y[ie].map((se) => se.id.toString()).includes(m.id.toString())) {
|
|
4533
|
+
be = ie, te = Et(Y[ie], (se) => se.id == m.id);
|
|
4534
4534
|
return;
|
|
4535
4535
|
}
|
|
4536
|
-
}), he === be && rt !== te && H(p,
|
|
4536
|
+
}), he === be && rt !== te && H(p, Y, be), he !== be && U(p, Y, be, he);
|
|
4537
4537
|
}
|
|
4538
4538
|
$e(null);
|
|
4539
4539
|
}, Qe = (p) => {
|
|
4540
4540
|
var m = null;
|
|
4541
4541
|
return Pe.forEach((N) => {
|
|
4542
|
-
F[N].forEach((
|
|
4543
|
-
if (
|
|
4544
|
-
m =
|
|
4542
|
+
F[N].forEach((G) => {
|
|
4543
|
+
if (G.id == p) {
|
|
4544
|
+
m = G;
|
|
4545
4545
|
return;
|
|
4546
4546
|
}
|
|
4547
4547
|
});
|
|
4548
4548
|
}), /* @__PURE__ */ le(
|
|
4549
|
-
|
|
4549
|
+
jn,
|
|
4550
4550
|
{
|
|
4551
4551
|
value: p,
|
|
4552
4552
|
handle: d,
|
|
@@ -4560,7 +4560,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4560
4560
|
isDragging: !0,
|
|
4561
4561
|
isDragOverlay: !0
|
|
4562
4562
|
}),
|
|
4563
|
-
color:
|
|
4563
|
+
color: Yn(m == null ? void 0 : m.color, Xe),
|
|
4564
4564
|
wrapperStyle: w({ index: 0 }),
|
|
4565
4565
|
renderItem: v,
|
|
4566
4566
|
dragOverlay: !0,
|
|
@@ -4570,7 +4570,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4570
4570
|
}
|
|
4571
4571
|
);
|
|
4572
4572
|
}, je = (p) => /* @__PURE__ */ le(
|
|
4573
|
-
|
|
4573
|
+
uo,
|
|
4574
4574
|
{
|
|
4575
4575
|
label: mt(p),
|
|
4576
4576
|
columns: c,
|
|
@@ -4582,7 +4582,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4582
4582
|
containerId: p,
|
|
4583
4583
|
renderFooterContent: _e,
|
|
4584
4584
|
children: F[p].map((m, N) => /* @__PURE__ */ le(
|
|
4585
|
-
|
|
4585
|
+
jn,
|
|
4586
4586
|
{
|
|
4587
4587
|
cardProps: D,
|
|
4588
4588
|
value: m.id,
|
|
@@ -4596,7 +4596,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4596
4596
|
isSorting: !1,
|
|
4597
4597
|
isDragOverlay: !1
|
|
4598
4598
|
}),
|
|
4599
|
-
color:
|
|
4599
|
+
color: Yn(m == null ? void 0 : m.color, Xe),
|
|
4600
4600
|
wrapperStyle: w({ index: N }),
|
|
4601
4601
|
renderItem: v,
|
|
4602
4602
|
children: Ze(m == null ? void 0 : m.content, m == null ? void 0 : m.id, {
|
|
@@ -4692,10 +4692,10 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4692
4692
|
horizontalDisplay: n,
|
|
4693
4693
|
verticalDisplay: o,
|
|
4694
4694
|
children: /* @__PURE__ */ le(
|
|
4695
|
-
|
|
4695
|
+
Tr,
|
|
4696
4696
|
{
|
|
4697
4697
|
items: [...Pe],
|
|
4698
|
-
strategy: o ?
|
|
4698
|
+
strategy: o ? Or : na,
|
|
4699
4699
|
children: Pe.map((p) => /* @__PURE__ */ le(
|
|
4700
4700
|
Pa,
|
|
4701
4701
|
{
|
|
@@ -4710,7 +4710,7 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4710
4710
|
renderFooterContent: _e,
|
|
4711
4711
|
maxContainerHeight: E,
|
|
4712
4712
|
...R,
|
|
4713
|
-
children: /* @__PURE__ */ le(
|
|
4713
|
+
children: /* @__PURE__ */ le(Tr, { items: F[p], strategy: x, children: F[p].map((m, N) => /* @__PURE__ */ le(
|
|
4714
4714
|
$a,
|
|
4715
4715
|
{
|
|
4716
4716
|
disabled: Ue || (m == null ? void 0 : m.disabled),
|
|
@@ -4744,29 +4744,29 @@ const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
|
4744
4744
|
) });
|
|
4745
4745
|
});
|
|
4746
4746
|
Ba.propTypes = {
|
|
4747
|
-
horizontalDisplay:
|
|
4748
|
-
verticalDisplay:
|
|
4749
|
-
adjustScale:
|
|
4747
|
+
horizontalDisplay: k.bool,
|
|
4748
|
+
verticalDisplay: k.bool,
|
|
4749
|
+
adjustScale: k.bool,
|
|
4750
4750
|
//Number of items in container
|
|
4751
|
-
itemCount:
|
|
4752
|
-
cancelDrop:
|
|
4751
|
+
itemCount: k.bool,
|
|
4752
|
+
cancelDrop: k.func,
|
|
4753
4753
|
/**
|
|
4754
4754
|
* type of: [{id: `<string | number>`, content: `<string | element>`}, ...]
|
|
4755
4755
|
*/
|
|
4756
|
-
columns:
|
|
4757
|
-
handle:
|
|
4756
|
+
columns: k.array,
|
|
4757
|
+
handle: k.bool,
|
|
4758
4758
|
// containerStyle,
|
|
4759
4759
|
// coordinateGetter = multipleContainersCoordinateGetter,
|
|
4760
|
-
getItemStyles:
|
|
4761
|
-
wrapperStyle:
|
|
4762
|
-
minimal:
|
|
4760
|
+
getItemStyles: k.func,
|
|
4761
|
+
wrapperStyle: k.func,
|
|
4762
|
+
minimal: k.bool,
|
|
4763
4763
|
// modifiers,
|
|
4764
|
-
renderItem:
|
|
4764
|
+
renderItem: k.func,
|
|
4765
4765
|
// strategy = verticalListSortingStrategy,
|
|
4766
|
-
scrollable:
|
|
4767
|
-
cardProps:
|
|
4768
|
-
headerProps:
|
|
4769
|
-
footerProps:
|
|
4766
|
+
scrollable: k.bool,
|
|
4767
|
+
cardProps: k.any,
|
|
4768
|
+
headerProps: k.any,
|
|
4769
|
+
footerProps: k.any,
|
|
4770
4770
|
//---------------------------
|
|
4771
4771
|
/**
|
|
4772
4772
|
* Type of:
|
|
@@ -4776,19 +4776,19 @@ Ba.propTypes = {
|
|
|
4776
4776
|
* content< element >,
|
|
4777
4777
|
* color< "primary" | "secondary" | "danger" | "warning" | "information" | "neutral" >]}] }
|
|
4778
4778
|
*/
|
|
4779
|
-
data:
|
|
4780
|
-
columnInfo:
|
|
4781
|
-
onColumnMoved:
|
|
4782
|
-
onCardMoved:
|
|
4783
|
-
onCardChangedColumns:
|
|
4779
|
+
data: k.object,
|
|
4780
|
+
columnInfo: k.object,
|
|
4781
|
+
onColumnMoved: k.func,
|
|
4782
|
+
onCardMoved: k.func,
|
|
4783
|
+
onCardChangedColumns: k.func,
|
|
4784
4784
|
/**
|
|
4785
4785
|
* Max height of column container (cards list) before scroll appears.
|
|
4786
4786
|
*/
|
|
4787
|
-
maxContainerHeight:
|
|
4787
|
+
maxContainerHeight: k.string,
|
|
4788
4788
|
//----------------
|
|
4789
|
-
className:
|
|
4790
|
-
style:
|
|
4791
|
-
color:
|
|
4789
|
+
className: k.string,
|
|
4790
|
+
style: k.object,
|
|
4791
|
+
color: k.oneOf([
|
|
4792
4792
|
"primary",
|
|
4793
4793
|
"secondary",
|
|
4794
4794
|
"success",
|
|
@@ -4798,7 +4798,7 @@ Ba.propTypes = {
|
|
|
4798
4798
|
"neutral",
|
|
4799
4799
|
"gray"
|
|
4800
4800
|
]),
|
|
4801
|
-
size:
|
|
4801
|
+
size: k.oneOf(["small", "medium", "large"])
|
|
4802
4802
|
};
|
|
4803
4803
|
export {
|
|
4804
4804
|
Ba as default
|