@lanaco/lnc-react-ui 4.0.2 → 4.0.5
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +18 -21
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +21 -22
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +6 -6
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +20 -20
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +58 -58
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +43 -43
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +33 -33
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +165 -165
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +31 -31
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +47 -47
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +39 -39
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +23 -23
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +36 -36
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +24 -24
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +16 -16
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +2 -3
- package/dist/Grid.js +38 -10
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +29 -9
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +35 -13
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +51 -52
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +891 -879
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +39 -39
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +42 -42
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +40 -40
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +45 -45
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +17 -17
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +32 -32
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +33 -33
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +13 -13
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +10 -10
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +27 -27
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +77 -77
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +13 -13
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +18 -18
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +33 -27
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +35 -35
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +24 -24
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +85 -85
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +13 -13
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -5
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +57 -57
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/style.css +1 -5
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
package/dist/Kanban.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as pr } from "./index-
|
|
7
|
-
import { n as
|
|
8
|
-
import { u as kn } from "./emotion-element-5486c51c.browser.esm-
|
|
9
|
-
import { H as
|
|
10
|
-
import { c as
|
|
1
|
+
import { jsx as le, jsxs as vn } from "react/jsx-runtime";
|
|
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
|
+
import { r as Mt } from "./index--Kmch3aI.js";
|
|
4
|
+
import { P as k } from "./index-BYnWp42a.js";
|
|
5
|
+
import { a as Pt, r as Tt, l as Nt } from "./utils-C52T57HO.js";
|
|
6
|
+
import { c as pr } from "./index-Cu0xwYjD.js";
|
|
7
|
+
import { n as Bt } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
8
|
+
import { u as kn } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
|
+
import { H as bi, K as yi } from "./KanbanCard-CHZ_C9kk.js";
|
|
10
|
+
import { c as mi } from "./index-DLVVKJXD.js";
|
|
11
|
+
import { c as dn, g as wi } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
11
12
|
import xi from "./KanbanHeader.js";
|
|
12
13
|
import { u as Ci } from "./useUpdateEffect-CuYWz7EA.js";
|
|
13
14
|
var Di = function(e) {
|
|
@@ -24,8 +25,8 @@ function Si() {
|
|
|
24
25
|
t
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
28
|
+
const Rn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
29
|
+
function zt(e) {
|
|
29
30
|
const t = Object.prototype.toString.call(e);
|
|
30
31
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
31
32
|
t === "[object global]";
|
|
@@ -33,53 +34,53 @@ function $t(e) {
|
|
|
33
34
|
function Gn(e) {
|
|
34
35
|
return "nodeType" in e;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function Re(e) {
|
|
37
38
|
var t, n;
|
|
38
|
-
return e ?
|
|
39
|
+
return e ? zt(e) ? e : Gn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
39
40
|
}
|
|
40
41
|
function Wn(e) {
|
|
41
42
|
const {
|
|
42
43
|
Document: t
|
|
43
|
-
} =
|
|
44
|
+
} = Re(e);
|
|
44
45
|
return e instanceof t;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
47
|
+
function Wt(e) {
|
|
48
|
+
return zt(e) ? !1 : e instanceof Re(e).HTMLElement;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return e instanceof
|
|
50
|
+
function Lr(e) {
|
|
51
|
+
return e instanceof Re(e).SVGElement;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
return e ?
|
|
53
|
+
function Ft(e) {
|
|
54
|
+
return e ? zt(e) ? e.document : Gn(e) ? Wn(e) ? e : Wt(e) || Lr(e) ? e.ownerDocument : document : document : document;
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
-
function
|
|
57
|
-
const t =
|
|
58
|
-
return
|
|
56
|
+
const qe = Rn ? hi : K;
|
|
57
|
+
function An(e) {
|
|
58
|
+
const t = X(e);
|
|
59
|
+
return qe(() => {
|
|
59
60
|
t.current = e;
|
|
60
|
-
}),
|
|
61
|
+
}), ve(function() {
|
|
61
62
|
for (var n = arguments.length, o = new Array(n), i = 0; i < n; i++)
|
|
62
63
|
o[i] = arguments[i];
|
|
63
64
|
return t.current == null ? void 0 : t.current(...o);
|
|
64
65
|
}, []);
|
|
65
66
|
}
|
|
66
67
|
function Ri() {
|
|
67
|
-
const e =
|
|
68
|
+
const e = X(null), t = ve((o, i) => {
|
|
68
69
|
e.current = setInterval(o, i);
|
|
69
|
-
}, []), n =
|
|
70
|
+
}, []), n = ve(() => {
|
|
70
71
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
71
72
|
}, []);
|
|
72
73
|
return [t, n];
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function kt(e, t) {
|
|
75
76
|
t === void 0 && (t = [e]);
|
|
76
|
-
const n =
|
|
77
|
-
return
|
|
77
|
+
const n = X(e);
|
|
78
|
+
return qe(() => {
|
|
78
79
|
n.current !== e && (n.current = e);
|
|
79
80
|
}, t), n;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
const n =
|
|
82
|
+
function qt(e, t) {
|
|
83
|
+
const n = X();
|
|
83
84
|
return j(
|
|
84
85
|
() => {
|
|
85
86
|
const o = e(n.current);
|
|
@@ -89,8 +90,8 @@ function Wt(e, t) {
|
|
|
89
90
|
[...t]
|
|
90
91
|
);
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
const t =
|
|
93
|
+
function bn(e) {
|
|
94
|
+
const t = An(e), n = X(null), o = ve(
|
|
94
95
|
(i) => {
|
|
95
96
|
i !== n.current && (t == null || t(i, n.current)), n.current = i;
|
|
96
97
|
},
|
|
@@ -99,22 +100,22 @@ function vn(e) {
|
|
|
99
100
|
);
|
|
100
101
|
return [n, o];
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
-
const t =
|
|
103
|
+
function yn(e) {
|
|
104
|
+
const t = X();
|
|
104
105
|
return K(() => {
|
|
105
106
|
t.current = e;
|
|
106
107
|
}, [e]), t.current;
|
|
107
108
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
109
|
+
let Pn = {};
|
|
110
|
+
function Jt(e, t) {
|
|
110
111
|
return j(() => {
|
|
111
112
|
if (t)
|
|
112
113
|
return t;
|
|
113
|
-
const n =
|
|
114
|
-
return
|
|
114
|
+
const n = Pn[e] == null ? 0 : Pn[e] + 1;
|
|
115
|
+
return Pn[e] = n, e + "-" + n;
|
|
115
116
|
}, [e, t]);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function Pr(e) {
|
|
118
119
|
return function(t) {
|
|
119
120
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
120
121
|
o[i - 1] = arguments[i];
|
|
@@ -130,16 +131,16 @@ function Lr(e) {
|
|
|
130
131
|
});
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
+
const Lt = /* @__PURE__ */ Pr(1), mn = /* @__PURE__ */ Pr(-1);
|
|
134
135
|
function Ai(e) {
|
|
135
136
|
return "clientX" in e && "clientY" in e;
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function En(e) {
|
|
138
139
|
if (!e)
|
|
139
140
|
return !1;
|
|
140
141
|
const {
|
|
141
142
|
KeyboardEvent: t
|
|
142
|
-
} =
|
|
143
|
+
} = Re(e.target);
|
|
143
144
|
return t && e instanceof t;
|
|
144
145
|
}
|
|
145
146
|
function Ei(e) {
|
|
@@ -147,10 +148,10 @@ function Ei(e) {
|
|
|
147
148
|
return !1;
|
|
148
149
|
const {
|
|
149
150
|
TouchEvent: t
|
|
150
|
-
} =
|
|
151
|
+
} = Re(e.target);
|
|
151
152
|
return t && e instanceof t;
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function wn(e) {
|
|
154
155
|
if (Ei(e)) {
|
|
155
156
|
if (e.touches && e.touches.length) {
|
|
156
157
|
const {
|
|
@@ -177,7 +178,7 @@ function mn(e) {
|
|
|
177
178
|
y: e.clientY
|
|
178
179
|
} : null;
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const yt = /* @__PURE__ */ Object.freeze({
|
|
181
182
|
Translate: {
|
|
182
183
|
toString(e) {
|
|
183
184
|
if (!e)
|
|
@@ -203,7 +204,7 @@ const bt = /* @__PURE__ */ Object.freeze({
|
|
|
203
204
|
Transform: {
|
|
204
205
|
toString(e) {
|
|
205
206
|
if (e)
|
|
206
|
-
return [
|
|
207
|
+
return [yt.Translate.toString(e), yt.Scale.toString(e)].join(" ");
|
|
207
208
|
}
|
|
208
209
|
},
|
|
209
210
|
Transition: {
|
|
@@ -228,7 +229,7 @@ function Oi(e) {
|
|
|
228
229
|
id: t,
|
|
229
230
|
value: n
|
|
230
231
|
} = e;
|
|
231
|
-
return
|
|
232
|
+
return q.createElement("div", {
|
|
232
233
|
id: t,
|
|
233
234
|
style: Ii
|
|
234
235
|
}, n);
|
|
@@ -241,6 +242,8 @@ function Ti(e) {
|
|
|
241
242
|
} = e;
|
|
242
243
|
const i = {
|
|
243
244
|
position: "fixed",
|
|
245
|
+
top: 0,
|
|
246
|
+
left: 0,
|
|
244
247
|
width: 1,
|
|
245
248
|
height: 1,
|
|
246
249
|
margin: -1,
|
|
@@ -251,7 +254,7 @@ function Ti(e) {
|
|
|
251
254
|
clipPath: "inset(100%)",
|
|
252
255
|
whiteSpace: "nowrap"
|
|
253
256
|
};
|
|
254
|
-
return
|
|
257
|
+
return q.createElement("div", {
|
|
255
258
|
id: t,
|
|
256
259
|
style: i,
|
|
257
260
|
role: "status",
|
|
@@ -260,17 +263,17 @@ function Ti(e) {
|
|
|
260
263
|
}, n);
|
|
261
264
|
}
|
|
262
265
|
function Ni() {
|
|
263
|
-
const [e, t] =
|
|
266
|
+
const [e, t] = ne("");
|
|
264
267
|
return {
|
|
265
|
-
announce:
|
|
268
|
+
announce: ve((o) => {
|
|
266
269
|
o != null && t(o);
|
|
267
270
|
}, []),
|
|
268
271
|
announcement: e
|
|
269
272
|
};
|
|
270
273
|
}
|
|
271
|
-
const
|
|
274
|
+
const $r = /* @__PURE__ */ Gt(null);
|
|
272
275
|
function Mi(e) {
|
|
273
|
-
const t =
|
|
276
|
+
const t = bt($r);
|
|
274
277
|
K(() => {
|
|
275
278
|
if (!t)
|
|
276
279
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -278,8 +281,8 @@ function Mi(e) {
|
|
|
278
281
|
}, [e, t]);
|
|
279
282
|
}
|
|
280
283
|
function Li() {
|
|
281
|
-
const [e] =
|
|
282
|
-
return [
|
|
284
|
+
const [e] = ne(() => /* @__PURE__ */ new Set()), t = ve((o) => (e.add(o), () => e.delete(o)), [e]);
|
|
285
|
+
return [ve((o) => {
|
|
283
286
|
let {
|
|
284
287
|
type: i,
|
|
285
288
|
event: a
|
|
@@ -334,7 +337,7 @@ function Bi(e) {
|
|
|
334
337
|
const {
|
|
335
338
|
announce: a,
|
|
336
339
|
announcement: l
|
|
337
|
-
} = Ni(), c =
|
|
340
|
+
} = Ni(), c = Jt("DndLiveRegion"), [d, u] = ne(!1);
|
|
338
341
|
if (K(() => {
|
|
339
342
|
u(!0);
|
|
340
343
|
}, []), Mi(j(() => ({
|
|
@@ -388,22 +391,22 @@ function Bi(e) {
|
|
|
388
391
|
}
|
|
389
392
|
}), [a, t])), !d)
|
|
390
393
|
return null;
|
|
391
|
-
const h =
|
|
394
|
+
const h = q.createElement(q.Fragment, null, q.createElement(Oi, {
|
|
392
395
|
id: o,
|
|
393
396
|
value: i.draggable
|
|
394
|
-
}),
|
|
397
|
+
}), q.createElement(Ti, {
|
|
395
398
|
id: c,
|
|
396
399
|
announcement: l
|
|
397
400
|
}));
|
|
398
|
-
return n ?
|
|
401
|
+
return n ? Mt.createPortal(h, n) : h;
|
|
399
402
|
}
|
|
400
|
-
var
|
|
403
|
+
var ce;
|
|
401
404
|
(function(e) {
|
|
402
405
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
403
|
-
})(
|
|
404
|
-
function
|
|
406
|
+
})(ce || (ce = {}));
|
|
407
|
+
function xn() {
|
|
405
408
|
}
|
|
406
|
-
function
|
|
409
|
+
function $n(e, t) {
|
|
407
410
|
return j(
|
|
408
411
|
() => ({
|
|
409
412
|
sensor: e,
|
|
@@ -430,7 +433,7 @@ function qn(e, t) {
|
|
|
430
433
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
431
434
|
}
|
|
432
435
|
function Fi(e, t) {
|
|
433
|
-
const n =
|
|
436
|
+
const n = wn(e);
|
|
434
437
|
if (!n)
|
|
435
438
|
return "0 0";
|
|
436
439
|
const o = {
|
|
@@ -463,7 +466,7 @@ function Ki(e, t) {
|
|
|
463
466
|
} = t;
|
|
464
467
|
return o - n;
|
|
465
468
|
}
|
|
466
|
-
function
|
|
469
|
+
function Kn(e) {
|
|
467
470
|
let {
|
|
468
471
|
left: t,
|
|
469
472
|
top: n,
|
|
@@ -525,13 +528,13 @@ const yr = (e) => {
|
|
|
525
528
|
droppableRects: n,
|
|
526
529
|
droppableContainers: o
|
|
527
530
|
} = e;
|
|
528
|
-
const i =
|
|
531
|
+
const i = Kn(t), a = [];
|
|
529
532
|
for (const l of o) {
|
|
530
533
|
const {
|
|
531
534
|
id: c
|
|
532
535
|
} = l, d = n.get(c);
|
|
533
536
|
if (d) {
|
|
534
|
-
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));
|
|
535
538
|
a.push({
|
|
536
539
|
id: c,
|
|
537
540
|
data: {
|
|
@@ -543,7 +546,7 @@ const yr = (e) => {
|
|
|
543
546
|
}
|
|
544
547
|
return a.sort(Jn);
|
|
545
548
|
};
|
|
546
|
-
function
|
|
549
|
+
function Xi(e, t) {
|
|
547
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;
|
|
548
551
|
if (o < i && n < a) {
|
|
549
552
|
const d = t.width * t.height, u = e.width * e.height, h = l * c, g = h / (d + u - h);
|
|
@@ -551,7 +554,7 @@ function Ui(e, t) {
|
|
|
551
554
|
}
|
|
552
555
|
return 0;
|
|
553
556
|
}
|
|
554
|
-
const
|
|
557
|
+
const Br = (e) => {
|
|
555
558
|
let {
|
|
556
559
|
collisionRect: t,
|
|
557
560
|
droppableRects: n,
|
|
@@ -563,7 +566,7 @@ const $r = (e) => {
|
|
|
563
566
|
id: l
|
|
564
567
|
} = a, c = n.get(l);
|
|
565
568
|
if (c) {
|
|
566
|
-
const d =
|
|
569
|
+
const d = Xi(c, t);
|
|
567
570
|
d > 0 && i.push({
|
|
568
571
|
id: l,
|
|
569
572
|
data: {
|
|
@@ -575,7 +578,7 @@ const $r = (e) => {
|
|
|
575
578
|
}
|
|
576
579
|
return i.sort(Ki);
|
|
577
580
|
};
|
|
578
|
-
function
|
|
581
|
+
function Ui(e, t) {
|
|
579
582
|
const {
|
|
580
583
|
top: n,
|
|
581
584
|
left: o,
|
|
@@ -597,8 +600,8 @@ const ji = (e) => {
|
|
|
597
600
|
const {
|
|
598
601
|
id: l
|
|
599
602
|
} = a, c = n.get(l);
|
|
600
|
-
if (c &&
|
|
601
|
-
const u =
|
|
603
|
+
if (c && Ui(o, c)) {
|
|
604
|
+
const u = Kn(c).reduce((g, w) => g + qn(o, w), 0), h = Number((u / 4).toFixed(4));
|
|
602
605
|
i.push({
|
|
603
606
|
id: l,
|
|
604
607
|
data: {
|
|
@@ -617,7 +620,7 @@ function Yi(e, t, n) {
|
|
|
617
620
|
scaleY: t && n ? t.height / n.height : 1
|
|
618
621
|
};
|
|
619
622
|
}
|
|
620
|
-
function
|
|
623
|
+
function zr(e, t) {
|
|
621
624
|
return e && t ? {
|
|
622
625
|
x: e.left - t.left,
|
|
623
626
|
y: e.top - t.top
|
|
@@ -639,7 +642,7 @@ function ki(e) {
|
|
|
639
642
|
};
|
|
640
643
|
}
|
|
641
644
|
const Gi = /* @__PURE__ */ ki(1);
|
|
642
|
-
function
|
|
645
|
+
function Fr(e) {
|
|
643
646
|
if (e.startsWith("matrix3d(")) {
|
|
644
647
|
const t = e.slice(9, -1).split(/, /);
|
|
645
648
|
return {
|
|
@@ -660,7 +663,7 @@ function zr(e) {
|
|
|
660
663
|
return null;
|
|
661
664
|
}
|
|
662
665
|
function Wi(e, t, n) {
|
|
663
|
-
const o =
|
|
666
|
+
const o = Fr(t);
|
|
664
667
|
if (!o)
|
|
665
668
|
return e;
|
|
666
669
|
const {
|
|
@@ -681,14 +684,14 @@ function Wi(e, t, n) {
|
|
|
681
684
|
const qi = {
|
|
682
685
|
ignoreTransform: !1
|
|
683
686
|
};
|
|
684
|
-
function
|
|
687
|
+
function Kt(e, t) {
|
|
685
688
|
t === void 0 && (t = qi);
|
|
686
689
|
let n = e.getBoundingClientRect();
|
|
687
690
|
if (t.ignoreTransform) {
|
|
688
691
|
const {
|
|
689
692
|
transform: u,
|
|
690
693
|
transformOrigin: h
|
|
691
|
-
} =
|
|
694
|
+
} = Re(e).getComputedStyle(e);
|
|
692
695
|
u && (n = Wi(n, u, h));
|
|
693
696
|
}
|
|
694
697
|
const {
|
|
@@ -709,7 +712,7 @@ function zt(e, t) {
|
|
|
709
712
|
};
|
|
710
713
|
}
|
|
711
714
|
function mr(e) {
|
|
712
|
-
return
|
|
715
|
+
return Kt(e, {
|
|
713
716
|
ignoreTransform: !0
|
|
714
717
|
});
|
|
715
718
|
}
|
|
@@ -725,10 +728,10 @@ function Ji(e) {
|
|
|
725
728
|
};
|
|
726
729
|
}
|
|
727
730
|
function Vi(e, t) {
|
|
728
|
-
return t === void 0 && (t =
|
|
731
|
+
return t === void 0 && (t = Re(e).getComputedStyle(e)), t.position === "fixed";
|
|
729
732
|
}
|
|
730
733
|
function Qi(e, t) {
|
|
731
|
-
t === void 0 && (t =
|
|
734
|
+
t === void 0 && (t = Re(e).getComputedStyle(e));
|
|
732
735
|
const n = /(auto|scroll|overlay)/;
|
|
733
736
|
return ["overflow", "overflowX", "overflowY"].some((i) => {
|
|
734
737
|
const a = t[i];
|
|
@@ -742,30 +745,30 @@ function Qn(e, t) {
|
|
|
742
745
|
return n;
|
|
743
746
|
if (Wn(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
|
|
744
747
|
return n.push(i.scrollingElement), n;
|
|
745
|
-
if (!
|
|
748
|
+
if (!Wt(i) || Lr(i) || n.includes(i))
|
|
746
749
|
return n;
|
|
747
|
-
const a =
|
|
750
|
+
const a = Re(e).getComputedStyle(i);
|
|
748
751
|
return i !== e && Qi(i, a) && n.push(i), Vi(i, a) ? n : o(i.parentNode);
|
|
749
752
|
}
|
|
750
753
|
return e ? o(e) : n;
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function Kr(e) {
|
|
753
756
|
const [t] = Qn(e, 1);
|
|
754
757
|
return t ?? null;
|
|
755
758
|
}
|
|
756
|
-
function
|
|
757
|
-
return !
|
|
758
|
-
}
|
|
759
|
-
function Kr(e) {
|
|
760
|
-
return $t(e) ? e.scrollX : e.scrollLeft;
|
|
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
762
|
function Hr(e) {
|
|
763
|
-
return
|
|
763
|
+
return zt(e) ? e.scrollX : e.scrollLeft;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Xr(e) {
|
|
766
|
+
return zt(e) ? e.scrollY : e.scrollTop;
|
|
767
|
+
}
|
|
768
|
+
function Hn(e) {
|
|
766
769
|
return {
|
|
767
|
-
x:
|
|
768
|
-
y:
|
|
770
|
+
x: Hr(e),
|
|
771
|
+
y: Xr(e)
|
|
769
772
|
};
|
|
770
773
|
}
|
|
771
774
|
var ge;
|
|
@@ -773,9 +776,9 @@ var ge;
|
|
|
773
776
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
774
777
|
})(ge || (ge = {}));
|
|
775
778
|
function Ur(e) {
|
|
776
|
-
return !
|
|
779
|
+
return !Rn || !e ? !1 : e === document.scrollingElement;
|
|
777
780
|
}
|
|
778
|
-
function
|
|
781
|
+
function jr(e) {
|
|
779
782
|
const t = {
|
|
780
783
|
x: 0,
|
|
781
784
|
y: 0
|
|
@@ -815,7 +818,7 @@ function es(e, t, n, o, i) {
|
|
|
815
818
|
isBottom: h,
|
|
816
819
|
isLeft: g,
|
|
817
820
|
isRight: w
|
|
818
|
-
} =
|
|
821
|
+
} = jr(e), b = {
|
|
819
822
|
x: 0,
|
|
820
823
|
y: 0
|
|
821
824
|
}, A = {
|
|
@@ -860,17 +863,17 @@ function ts(e) {
|
|
|
860
863
|
height: e.clientHeight
|
|
861
864
|
};
|
|
862
865
|
}
|
|
863
|
-
function
|
|
864
|
-
return e.reduce((t, n) =>
|
|
866
|
+
function Yr(e) {
|
|
867
|
+
return e.reduce((t, n) => Lt(t, Hn(n)), Je);
|
|
865
868
|
}
|
|
866
869
|
function ns(e) {
|
|
867
|
-
return e.reduce((t, n) => t +
|
|
870
|
+
return e.reduce((t, n) => t + Hr(n), 0);
|
|
868
871
|
}
|
|
869
872
|
function rs(e) {
|
|
870
|
-
return e.reduce((t, n) => t +
|
|
873
|
+
return e.reduce((t, n) => t + Xr(n), 0);
|
|
871
874
|
}
|
|
872
|
-
function
|
|
873
|
-
if (t === void 0 && (t =
|
|
875
|
+
function kr(e, t) {
|
|
876
|
+
if (t === void 0 && (t = Kt), !e)
|
|
874
877
|
return;
|
|
875
878
|
const {
|
|
876
879
|
top: n,
|
|
@@ -878,7 +881,7 @@ function Yr(e, t) {
|
|
|
878
881
|
bottom: i,
|
|
879
882
|
right: a
|
|
880
883
|
} = t(e);
|
|
881
|
-
|
|
884
|
+
Kr(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || o >= window.innerWidth) && e.scrollIntoView({
|
|
882
885
|
block: "center",
|
|
883
886
|
inline: "center"
|
|
884
887
|
});
|
|
@@ -887,7 +890,7 @@ const os = [["x", ["left", "right"], ns], ["y", ["top", "bottom"], rs]];
|
|
|
887
890
|
class Zn {
|
|
888
891
|
constructor(t, n) {
|
|
889
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;
|
|
890
|
-
const o = Qn(n), i =
|
|
893
|
+
const o = Qn(n), i = Yr(o);
|
|
891
894
|
this.rect = {
|
|
892
895
|
...t
|
|
893
896
|
}, this.width = t.width, this.height = t.height;
|
|
@@ -905,7 +908,7 @@ class Zn {
|
|
|
905
908
|
});
|
|
906
909
|
}
|
|
907
910
|
}
|
|
908
|
-
class
|
|
911
|
+
class Xt {
|
|
909
912
|
constructor(t) {
|
|
910
913
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
911
914
|
this.listeners.forEach((n) => {
|
|
@@ -922,10 +925,10 @@ class Ht {
|
|
|
922
925
|
function is(e) {
|
|
923
926
|
const {
|
|
924
927
|
EventTarget: t
|
|
925
|
-
} =
|
|
926
|
-
return e instanceof t ? e :
|
|
928
|
+
} = Re(e);
|
|
929
|
+
return e instanceof t ? e : Ft(e);
|
|
927
930
|
}
|
|
928
|
-
function
|
|
931
|
+
function zn(e, t) {
|
|
929
932
|
const n = Math.abs(e.x), o = Math.abs(e.y);
|
|
930
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;
|
|
931
934
|
}
|
|
@@ -943,7 +946,7 @@ var L;
|
|
|
943
946
|
(function(e) {
|
|
944
947
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter";
|
|
945
948
|
})(L || (L = {}));
|
|
946
|
-
const
|
|
949
|
+
const Gr = {
|
|
947
950
|
start: [L.Space, L.Enter],
|
|
948
951
|
cancel: [L.Esc],
|
|
949
952
|
end: [L.Space, L.Enter]
|
|
@@ -982,7 +985,7 @@ class er {
|
|
|
982
985
|
target: n
|
|
983
986
|
}
|
|
984
987
|
} = t;
|
|
985
|
-
this.props = t, this.listeners = new
|
|
988
|
+
this.props = t, this.listeners = new Xt(Ft(n)), this.windowListeners = new Xt(Re(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
986
989
|
}
|
|
987
990
|
attach() {
|
|
988
991
|
this.handleStart(), this.windowListeners.add(He.Resize, this.handleCancel), this.windowListeners.add(He.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(He.Keydown, this.handleKeyDown));
|
|
@@ -992,16 +995,16 @@ class er {
|
|
|
992
995
|
activeNode: t,
|
|
993
996
|
onStart: n
|
|
994
997
|
} = this.props, o = t.node.current;
|
|
995
|
-
o &&
|
|
998
|
+
o && kr(o), n(Je);
|
|
996
999
|
}
|
|
997
1000
|
handleKeyDown(t) {
|
|
998
|
-
if (
|
|
1001
|
+
if (En(t)) {
|
|
999
1002
|
const {
|
|
1000
1003
|
active: n,
|
|
1001
1004
|
context: o,
|
|
1002
1005
|
options: i
|
|
1003
1006
|
} = this.props, {
|
|
1004
|
-
keyboardCodes: a =
|
|
1007
|
+
keyboardCodes: a = Gr,
|
|
1005
1008
|
coordinateGetter: l = as,
|
|
1006
1009
|
scrollBehavior: c = "smooth"
|
|
1007
1010
|
} = i, {
|
|
@@ -1028,7 +1031,7 @@ class er {
|
|
|
1028
1031
|
currentCoordinates: h
|
|
1029
1032
|
});
|
|
1030
1033
|
if (g) {
|
|
1031
|
-
const w =
|
|
1034
|
+
const w = mn(g, h), b = {
|
|
1032
1035
|
x: 0,
|
|
1033
1036
|
y: 0
|
|
1034
1037
|
}, {
|
|
@@ -1042,7 +1045,7 @@ class er {
|
|
|
1042
1045
|
isBottom: R,
|
|
1043
1046
|
maxScroll: T,
|
|
1044
1047
|
minScroll: _
|
|
1045
|
-
} =
|
|
1048
|
+
} = jr(v), O = ts(v), M = {
|
|
1046
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)),
|
|
1047
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))
|
|
1048
1051
|
}, H = x === L.Right && !E || x === L.Left && !D, U = x === L.Down && !R || x === L.Up && !S;
|
|
@@ -1076,7 +1079,7 @@ class er {
|
|
|
1076
1079
|
break;
|
|
1077
1080
|
}
|
|
1078
1081
|
}
|
|
1079
|
-
this.handleMove(t,
|
|
1082
|
+
this.handleMove(t, Lt(mn(g, this.referenceCoordinates), b));
|
|
1080
1083
|
}
|
|
1081
1084
|
}
|
|
1082
1085
|
}
|
|
@@ -1106,7 +1109,7 @@ er.activators = [{
|
|
|
1106
1109
|
eventName: "onKeyDown",
|
|
1107
1110
|
handler: (e, t, n) => {
|
|
1108
1111
|
let {
|
|
1109
|
-
keyboardCodes: o =
|
|
1112
|
+
keyboardCodes: o = Gr,
|
|
1110
1113
|
onActivation: i
|
|
1111
1114
|
} = t, {
|
|
1112
1115
|
active: a
|
|
@@ -1138,7 +1141,7 @@ class tr {
|
|
|
1138
1141
|
} = t, {
|
|
1139
1142
|
target: l
|
|
1140
1143
|
} = a;
|
|
1141
|
-
this.props = t, this.events = n, this.document =
|
|
1144
|
+
this.props = t, this.events = n, this.document = Ft(l), this.documentListeners = new Xt(this.document), this.listeners = new Xt(o), this.windowListeners = new Xt(Re(l)), this.initialCoordinates = (i = wn(a)) != null ? i : Je, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1142
1145
|
}
|
|
1143
1146
|
attach() {
|
|
1144
1147
|
const {
|
|
@@ -1152,7 +1155,7 @@ class tr {
|
|
|
1152
1155
|
} = this;
|
|
1153
1156
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1154
1157
|
passive: !1
|
|
1155
|
-
}), this.listeners.add(t.end.name, this.handleEnd), 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) {
|
|
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) {
|
|
1156
1159
|
if (o != null && o({
|
|
1157
1160
|
event: this.props.event,
|
|
1158
1161
|
activeNode: this.props.activeNode,
|
|
@@ -1195,15 +1198,15 @@ class tr {
|
|
|
1195
1198
|
} = a;
|
|
1196
1199
|
if (!i)
|
|
1197
1200
|
return;
|
|
1198
|
-
const d = (n =
|
|
1201
|
+
const d = (n = wn(t)) != null ? n : Je, u = mn(i, d);
|
|
1199
1202
|
if (!o && c) {
|
|
1200
1203
|
if (xr(c)) {
|
|
1201
|
-
if (c.tolerance != null &&
|
|
1204
|
+
if (c.tolerance != null && zn(u, c.tolerance))
|
|
1202
1205
|
return this.handleCancel();
|
|
1203
|
-
if (
|
|
1206
|
+
if (zn(u, c.distance))
|
|
1204
1207
|
return this.handleStart();
|
|
1205
1208
|
}
|
|
1206
|
-
return Cr(c) &&
|
|
1209
|
+
return Cr(c) && zn(u, c.tolerance) ? this.handleCancel() : void 0;
|
|
1207
1210
|
}
|
|
1208
1211
|
t.cancelable && t.preventDefault(), l(d);
|
|
1209
1212
|
}
|
|
@@ -1228,6 +1231,9 @@ class tr {
|
|
|
1228
1231
|
}
|
|
1229
1232
|
}
|
|
1230
1233
|
const ls = {
|
|
1234
|
+
cancel: {
|
|
1235
|
+
name: "pointercancel"
|
|
1236
|
+
},
|
|
1231
1237
|
move: {
|
|
1232
1238
|
name: "pointermove"
|
|
1233
1239
|
},
|
|
@@ -1235,15 +1241,15 @@ const ls = {
|
|
|
1235
1241
|
name: "pointerup"
|
|
1236
1242
|
}
|
|
1237
1243
|
};
|
|
1238
|
-
class
|
|
1244
|
+
class Wr extends tr {
|
|
1239
1245
|
constructor(t) {
|
|
1240
1246
|
const {
|
|
1241
1247
|
event: n
|
|
1242
|
-
} = t, o =
|
|
1248
|
+
} = t, o = Ft(n.target);
|
|
1243
1249
|
super(t, ls, o);
|
|
1244
1250
|
}
|
|
1245
1251
|
}
|
|
1246
|
-
|
|
1252
|
+
Wr.activators = [{
|
|
1247
1253
|
eventName: "onPointerDown",
|
|
1248
1254
|
handler: (e, t) => {
|
|
1249
1255
|
let {
|
|
@@ -1264,16 +1270,16 @@ const cs = {
|
|
|
1264
1270
|
name: "mouseup"
|
|
1265
1271
|
}
|
|
1266
1272
|
};
|
|
1267
|
-
var
|
|
1273
|
+
var Xn;
|
|
1268
1274
|
(function(e) {
|
|
1269
1275
|
e[e.RightClick = 2] = "RightClick";
|
|
1270
|
-
})(
|
|
1271
|
-
class
|
|
1276
|
+
})(Xn || (Xn = {}));
|
|
1277
|
+
class qr extends tr {
|
|
1272
1278
|
constructor(t) {
|
|
1273
|
-
super(t, cs,
|
|
1279
|
+
super(t, cs, Ft(t.event.target));
|
|
1274
1280
|
}
|
|
1275
1281
|
}
|
|
1276
|
-
|
|
1282
|
+
qr.activators = [{
|
|
1277
1283
|
eventName: "onMouseDown",
|
|
1278
1284
|
handler: (e, t) => {
|
|
1279
1285
|
let {
|
|
@@ -1281,12 +1287,15 @@ Wr.activators = [{
|
|
|
1281
1287
|
} = e, {
|
|
1282
1288
|
onActivation: o
|
|
1283
1289
|
} = t;
|
|
1284
|
-
return n.button ===
|
|
1290
|
+
return n.button === Xn.RightClick ? !1 : (o == null || o({
|
|
1285
1291
|
event: n
|
|
1286
1292
|
}), !0);
|
|
1287
1293
|
}
|
|
1288
1294
|
}];
|
|
1289
|
-
const
|
|
1295
|
+
const Fn = {
|
|
1296
|
+
cancel: {
|
|
1297
|
+
name: "touchcancel"
|
|
1298
|
+
},
|
|
1290
1299
|
move: {
|
|
1291
1300
|
name: "touchmove"
|
|
1292
1301
|
},
|
|
@@ -1294,22 +1303,22 @@ const Bn = {
|
|
|
1294
1303
|
name: "touchend"
|
|
1295
1304
|
}
|
|
1296
1305
|
};
|
|
1297
|
-
class
|
|
1306
|
+
class Jr extends tr {
|
|
1298
1307
|
constructor(t) {
|
|
1299
|
-
super(t,
|
|
1308
|
+
super(t, Fn);
|
|
1300
1309
|
}
|
|
1301
1310
|
static setup() {
|
|
1302
|
-
return window.addEventListener(
|
|
1311
|
+
return window.addEventListener(Fn.move.name, t, {
|
|
1303
1312
|
capture: !1,
|
|
1304
1313
|
passive: !1
|
|
1305
1314
|
}), function() {
|
|
1306
|
-
window.removeEventListener(
|
|
1315
|
+
window.removeEventListener(Fn.move.name, t);
|
|
1307
1316
|
};
|
|
1308
1317
|
function t() {
|
|
1309
1318
|
}
|
|
1310
1319
|
}
|
|
1311
1320
|
}
|
|
1312
|
-
|
|
1321
|
+
Jr.activators = [{
|
|
1313
1322
|
eventName: "onTouchStart",
|
|
1314
1323
|
handler: (e, t) => {
|
|
1315
1324
|
let {
|
|
@@ -1329,10 +1338,10 @@ var Ut;
|
|
|
1329
1338
|
(function(e) {
|
|
1330
1339
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1331
1340
|
})(Ut || (Ut = {}));
|
|
1332
|
-
var
|
|
1341
|
+
var Cn;
|
|
1333
1342
|
(function(e) {
|
|
1334
1343
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1335
|
-
})(
|
|
1344
|
+
})(Cn || (Cn = {}));
|
|
1336
1345
|
function us(e) {
|
|
1337
1346
|
let {
|
|
1338
1347
|
acceleration: t,
|
|
@@ -1341,7 +1350,7 @@ function us(e) {
|
|
|
1341
1350
|
draggingRect: i,
|
|
1342
1351
|
enabled: a,
|
|
1343
1352
|
interval: l = 5,
|
|
1344
|
-
order: c =
|
|
1353
|
+
order: c = Cn.TreeOrder,
|
|
1345
1354
|
pointerCoordinates: d,
|
|
1346
1355
|
scrollableAncestors: u,
|
|
1347
1356
|
scrollableAncestorRects: h,
|
|
@@ -1351,10 +1360,10 @@ function us(e) {
|
|
|
1351
1360
|
const b = fs({
|
|
1352
1361
|
delta: g,
|
|
1353
1362
|
disabled: !a
|
|
1354
|
-
}), [A, v] = Ri(), x =
|
|
1363
|
+
}), [A, v] = Ri(), x = X({
|
|
1355
1364
|
x: 0,
|
|
1356
1365
|
y: 0
|
|
1357
|
-
}), S =
|
|
1366
|
+
}), S = X({
|
|
1358
1367
|
x: 0,
|
|
1359
1368
|
y: 0
|
|
1360
1369
|
}), E = j(() => {
|
|
@@ -1369,13 +1378,13 @@ function us(e) {
|
|
|
1369
1378
|
case Ut.DraggableRect:
|
|
1370
1379
|
return i;
|
|
1371
1380
|
}
|
|
1372
|
-
}, [n, i, d]), D =
|
|
1381
|
+
}, [n, i, d]), D = X(null), R = ve(() => {
|
|
1373
1382
|
const _ = D.current;
|
|
1374
1383
|
if (!_)
|
|
1375
1384
|
return;
|
|
1376
1385
|
const O = x.current.x * S.current.x, M = x.current.y * S.current.y;
|
|
1377
1386
|
_.scrollBy(O, M);
|
|
1378
|
-
}, []), T = j(() => c ===
|
|
1387
|
+
}, []), T = j(() => c === Cn.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1379
1388
|
K(
|
|
1380
1389
|
() => {
|
|
1381
1390
|
if (!a || !u.length || !E) {
|
|
@@ -1443,8 +1452,8 @@ function fs(e) {
|
|
|
1443
1452
|
delta: t,
|
|
1444
1453
|
disabled: n
|
|
1445
1454
|
} = e;
|
|
1446
|
-
const o =
|
|
1447
|
-
return
|
|
1455
|
+
const o = yn(t);
|
|
1456
|
+
return qt((i) => {
|
|
1448
1457
|
if (n || !o || !i)
|
|
1449
1458
|
return ds;
|
|
1450
1459
|
const a = {
|
|
@@ -1464,10 +1473,10 @@ function fs(e) {
|
|
|
1464
1473
|
}, [n, t, o]);
|
|
1465
1474
|
}
|
|
1466
1475
|
function gs(e, t) {
|
|
1467
|
-
const n = t
|
|
1468
|
-
return
|
|
1476
|
+
const n = t != null ? e.get(t) : void 0, o = n ? n.node.current : null;
|
|
1477
|
+
return qt((i) => {
|
|
1469
1478
|
var a;
|
|
1470
|
-
return t
|
|
1479
|
+
return t == null ? null : (a = o ?? i) != null ? a : null;
|
|
1471
1480
|
}, [o, t]);
|
|
1472
1481
|
}
|
|
1473
1482
|
function hs(e, t) {
|
|
@@ -1481,10 +1490,10 @@ function hs(e, t) {
|
|
|
1481
1490
|
return [...n, ...a];
|
|
1482
1491
|
}, []), [e, t]);
|
|
1483
1492
|
}
|
|
1484
|
-
var
|
|
1493
|
+
var $t;
|
|
1485
1494
|
(function(e) {
|
|
1486
1495
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1487
|
-
})(
|
|
1496
|
+
})($t || ($t = {}));
|
|
1488
1497
|
var Un;
|
|
1489
1498
|
(function(e) {
|
|
1490
1499
|
e.Optimized = "optimized";
|
|
@@ -1496,13 +1505,13 @@ function ps(e, t) {
|
|
|
1496
1505
|
dependencies: o,
|
|
1497
1506
|
config: i
|
|
1498
1507
|
} = t;
|
|
1499
|
-
const [a, l] =
|
|
1508
|
+
const [a, l] = ne(null), {
|
|
1500
1509
|
frequency: c,
|
|
1501
1510
|
measure: d,
|
|
1502
1511
|
strategy: u
|
|
1503
|
-
} = i, h =
|
|
1512
|
+
} = i, h = X(e), g = x(), w = kt(g), b = ve(function(S) {
|
|
1504
1513
|
S === void 0 && (S = []), !w.current && l((E) => E === null ? S : E.concat(S.filter((D) => !E.includes(D))));
|
|
1505
|
-
}, [w]), A =
|
|
1514
|
+
}, [w]), A = X(null), v = qt((S) => {
|
|
1506
1515
|
if (g && !n)
|
|
1507
1516
|
return Dr;
|
|
1508
1517
|
if (!S || S === Dr || h.current !== e || a != null) {
|
|
@@ -1550,9 +1559,9 @@ function ps(e, t) {
|
|
|
1550
1559
|
};
|
|
1551
1560
|
function x() {
|
|
1552
1561
|
switch (u) {
|
|
1553
|
-
case
|
|
1562
|
+
case $t.Always:
|
|
1554
1563
|
return !1;
|
|
1555
|
-
case
|
|
1564
|
+
case $t.BeforeDragging:
|
|
1556
1565
|
return n;
|
|
1557
1566
|
default:
|
|
1558
1567
|
return !n;
|
|
@@ -1560,7 +1569,7 @@ function ps(e, t) {
|
|
|
1560
1569
|
}
|
|
1561
1570
|
}
|
|
1562
1571
|
function nr(e, t) {
|
|
1563
|
-
return
|
|
1572
|
+
return qt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1564
1573
|
}
|
|
1565
1574
|
function vs(e, t) {
|
|
1566
1575
|
return nr(e, t);
|
|
@@ -1570,7 +1579,7 @@ function bs(e) {
|
|
|
1570
1579
|
callback: t,
|
|
1571
1580
|
disabled: n
|
|
1572
1581
|
} = e;
|
|
1573
|
-
const o =
|
|
1582
|
+
const o = An(t), i = j(() => {
|
|
1574
1583
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1575
1584
|
return;
|
|
1576
1585
|
const {
|
|
@@ -1580,12 +1589,12 @@ function bs(e) {
|
|
|
1580
1589
|
}, [o, n]);
|
|
1581
1590
|
return K(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1582
1591
|
}
|
|
1583
|
-
function
|
|
1592
|
+
function _n(e) {
|
|
1584
1593
|
let {
|
|
1585
1594
|
callback: t,
|
|
1586
1595
|
disabled: n
|
|
1587
1596
|
} = e;
|
|
1588
|
-
const o =
|
|
1597
|
+
const o = An(t), i = j(
|
|
1589
1598
|
() => {
|
|
1590
1599
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1591
1600
|
return;
|
|
@@ -1600,11 +1609,24 @@ function An(e) {
|
|
|
1600
1609
|
return K(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1601
1610
|
}
|
|
1602
1611
|
function ys(e) {
|
|
1603
|
-
return new Zn(
|
|
1612
|
+
return new Zn(Kt(e), e);
|
|
1604
1613
|
}
|
|
1605
1614
|
function Sr(e, t, n) {
|
|
1606
1615
|
t === void 0 && (t = ys);
|
|
1607
|
-
const [o, i] =
|
|
1616
|
+
const [o, i] = ne(null);
|
|
1617
|
+
function a() {
|
|
1618
|
+
i((d) => {
|
|
1619
|
+
if (!e)
|
|
1620
|
+
return null;
|
|
1621
|
+
if (e.isConnected === !1) {
|
|
1622
|
+
var u;
|
|
1623
|
+
return (u = d ?? n) != null ? u : null;
|
|
1624
|
+
}
|
|
1625
|
+
const h = t(e);
|
|
1626
|
+
return JSON.stringify(d) === JSON.stringify(h) ? d : h;
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
const l = bs({
|
|
1608
1630
|
callback(d) {
|
|
1609
1631
|
if (e)
|
|
1610
1632
|
for (const u of d) {
|
|
@@ -1613,56 +1635,46 @@ function Sr(e, t, n) {
|
|
|
1613
1635
|
target: g
|
|
1614
1636
|
} = u;
|
|
1615
1637
|
if (h === "childList" && g instanceof HTMLElement && g.contains(e)) {
|
|
1616
|
-
|
|
1638
|
+
a();
|
|
1617
1639
|
break;
|
|
1618
1640
|
}
|
|
1619
1641
|
}
|
|
1620
1642
|
}
|
|
1621
|
-
}),
|
|
1622
|
-
callback:
|
|
1643
|
+
}), c = _n({
|
|
1644
|
+
callback: a
|
|
1623
1645
|
});
|
|
1624
|
-
return
|
|
1625
|
-
|
|
1646
|
+
return qe(() => {
|
|
1647
|
+
a(), e ? (c == null || c.observe(e), l == null || l.observe(document.body, {
|
|
1626
1648
|
childList: !0,
|
|
1627
1649
|
subtree: !0
|
|
1628
|
-
})) : (
|
|
1650
|
+
})) : (c == null || c.disconnect(), l == null || l.disconnect());
|
|
1629
1651
|
}, [e]), o;
|
|
1630
|
-
function c(d) {
|
|
1631
|
-
if (!e)
|
|
1632
|
-
return null;
|
|
1633
|
-
if (e.isConnected === !1) {
|
|
1634
|
-
var u;
|
|
1635
|
-
return (u = d ?? n) != null ? u : null;
|
|
1636
|
-
}
|
|
1637
|
-
const h = t(e);
|
|
1638
|
-
return JSON.stringify(d) === JSON.stringify(h) ? d : h;
|
|
1639
|
-
}
|
|
1640
1652
|
}
|
|
1641
1653
|
function ms(e) {
|
|
1642
1654
|
const t = nr(e);
|
|
1643
|
-
return
|
|
1655
|
+
return zr(e, t);
|
|
1644
1656
|
}
|
|
1645
1657
|
const Rr = [];
|
|
1646
1658
|
function ws(e) {
|
|
1647
|
-
const t =
|
|
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]);
|
|
1648
1660
|
return K(() => {
|
|
1649
1661
|
t.current = e;
|
|
1650
1662
|
}, [e]), n;
|
|
1651
1663
|
}
|
|
1652
1664
|
function xs(e) {
|
|
1653
|
-
const [t, n] =
|
|
1654
|
-
const l =
|
|
1655
|
-
l && n((c) => c ? (c.set(l,
|
|
1665
|
+
const [t, n] = ne(null), o = X(e), i = ve((a) => {
|
|
1666
|
+
const l = Bn(a.target);
|
|
1667
|
+
l && n((c) => c ? (c.set(l, Hn(l)), new Map(c)) : null);
|
|
1656
1668
|
}, []);
|
|
1657
1669
|
return K(() => {
|
|
1658
1670
|
const a = o.current;
|
|
1659
1671
|
if (e !== a) {
|
|
1660
1672
|
l(a);
|
|
1661
1673
|
const c = e.map((d) => {
|
|
1662
|
-
const u =
|
|
1674
|
+
const u = Bn(d);
|
|
1663
1675
|
return u ? (u.addEventListener("scroll", i, {
|
|
1664
1676
|
passive: !0
|
|
1665
|
-
}), [u,
|
|
1677
|
+
}), [u, Hn(u)]) : null;
|
|
1666
1678
|
}).filter((d) => d != null);
|
|
1667
1679
|
n(c.length ? new Map(c) : null), o.current = e;
|
|
1668
1680
|
}
|
|
@@ -1671,15 +1683,15 @@ function xs(e) {
|
|
|
1671
1683
|
};
|
|
1672
1684
|
function l(c) {
|
|
1673
1685
|
c.forEach((d) => {
|
|
1674
|
-
const u =
|
|
1686
|
+
const u = Bn(d);
|
|
1675
1687
|
u == null || u.removeEventListener("scroll", i);
|
|
1676
1688
|
});
|
|
1677
1689
|
}
|
|
1678
|
-
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((a, l) =>
|
|
1690
|
+
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((a, l) => Lt(a, l), Je) : Yr(e) : Je, [e, t]);
|
|
1679
1691
|
}
|
|
1680
1692
|
function Ar(e, t) {
|
|
1681
1693
|
t === void 0 && (t = []);
|
|
1682
|
-
const n =
|
|
1694
|
+
const n = X(null);
|
|
1683
1695
|
return K(
|
|
1684
1696
|
() => {
|
|
1685
1697
|
n.current = null;
|
|
@@ -1689,12 +1701,12 @@ function Ar(e, t) {
|
|
|
1689
1701
|
), K(() => {
|
|
1690
1702
|
const o = e !== Je;
|
|
1691
1703
|
o && !n.current && (n.current = e), !o && n.current && (n.current = null);
|
|
1692
|
-
}, [e]), n.current ?
|
|
1704
|
+
}, [e]), n.current ? mn(e, n.current) : Je;
|
|
1693
1705
|
}
|
|
1694
1706
|
function Cs(e) {
|
|
1695
1707
|
K(
|
|
1696
1708
|
() => {
|
|
1697
|
-
if (!
|
|
1709
|
+
if (!Rn)
|
|
1698
1710
|
return;
|
|
1699
1711
|
const t = e.map((n) => {
|
|
1700
1712
|
let {
|
|
@@ -1728,39 +1740,40 @@ function Ds(e, t) {
|
|
|
1728
1740
|
}, n;
|
|
1729
1741
|
}, {}), [e, t]);
|
|
1730
1742
|
}
|
|
1731
|
-
function
|
|
1743
|
+
function Vr(e) {
|
|
1732
1744
|
return j(() => e ? Ji(e) : null, [e]);
|
|
1733
1745
|
}
|
|
1734
|
-
const
|
|
1746
|
+
const Er = [];
|
|
1735
1747
|
function Ss(e, t) {
|
|
1736
|
-
t === void 0 && (t =
|
|
1737
|
-
const [n] = e, o =
|
|
1738
|
-
|
|
1748
|
+
t === void 0 && (t = Kt);
|
|
1749
|
+
const [n] = e, o = Vr(n ? Re(n) : null), [i, a] = ne(Er);
|
|
1750
|
+
function l() {
|
|
1751
|
+
a(() => e.length ? e.map((d) => Ur(d) ? o : new Zn(t(d), d)) : Er);
|
|
1752
|
+
}
|
|
1753
|
+
const c = _n({
|
|
1754
|
+
callback: l
|
|
1739
1755
|
});
|
|
1740
|
-
return
|
|
1741
|
-
|
|
1756
|
+
return qe(() => {
|
|
1757
|
+
c == null || c.disconnect(), l(), e.forEach((d) => c == null ? void 0 : c.observe(d));
|
|
1742
1758
|
}, [e]), i;
|
|
1743
|
-
function c() {
|
|
1744
|
-
return e.length ? e.map((d) => Ur(d) ? o : new Zn(t(d), d)) : zn;
|
|
1745
|
-
}
|
|
1746
1759
|
}
|
|
1747
|
-
function
|
|
1760
|
+
function Qr(e) {
|
|
1748
1761
|
if (!e)
|
|
1749
1762
|
return null;
|
|
1750
1763
|
if (e.children.length > 1)
|
|
1751
1764
|
return e;
|
|
1752
1765
|
const t = e.children[0];
|
|
1753
|
-
return
|
|
1766
|
+
return Wt(t) ? t : e;
|
|
1754
1767
|
}
|
|
1755
1768
|
function Rs(e) {
|
|
1756
1769
|
let {
|
|
1757
1770
|
measure: t
|
|
1758
1771
|
} = e;
|
|
1759
|
-
const [n, o] =
|
|
1772
|
+
const [n, o] = ne(null), i = ve((u) => {
|
|
1760
1773
|
for (const {
|
|
1761
1774
|
target: h
|
|
1762
1775
|
} of u)
|
|
1763
|
-
if (
|
|
1776
|
+
if (Wt(h)) {
|
|
1764
1777
|
o((g) => {
|
|
1765
1778
|
const w = t(h);
|
|
1766
1779
|
return g ? {
|
|
@@ -1771,12 +1784,12 @@ function Rs(e) {
|
|
|
1771
1784
|
});
|
|
1772
1785
|
break;
|
|
1773
1786
|
}
|
|
1774
|
-
}, [t]), a =
|
|
1787
|
+
}, [t]), a = _n({
|
|
1775
1788
|
callback: i
|
|
1776
|
-
}), l =
|
|
1777
|
-
const h =
|
|
1789
|
+
}), l = ve((u) => {
|
|
1790
|
+
const h = Qr(u);
|
|
1778
1791
|
a == null || a.disconnect(), h && (a == null || a.observe(h)), o(h ? t(h) : null);
|
|
1779
|
-
}, [t, a]), [c, d] =
|
|
1792
|
+
}, [t, a]), [c, d] = bn(l);
|
|
1780
1793
|
return j(() => ({
|
|
1781
1794
|
nodeRef: c,
|
|
1782
1795
|
rect: n,
|
|
@@ -1784,27 +1797,27 @@ function Rs(e) {
|
|
|
1784
1797
|
}), [n, c, d]);
|
|
1785
1798
|
}
|
|
1786
1799
|
const As = [{
|
|
1787
|
-
sensor:
|
|
1800
|
+
sensor: Wr,
|
|
1788
1801
|
options: {}
|
|
1789
1802
|
}, {
|
|
1790
1803
|
sensor: er,
|
|
1791
1804
|
options: {}
|
|
1792
1805
|
}], Es = {
|
|
1793
1806
|
current: {}
|
|
1794
|
-
},
|
|
1807
|
+
}, pn = {
|
|
1795
1808
|
draggable: {
|
|
1796
1809
|
measure: mr
|
|
1797
1810
|
},
|
|
1798
1811
|
droppable: {
|
|
1799
1812
|
measure: mr,
|
|
1800
|
-
strategy:
|
|
1813
|
+
strategy: $t.WhileDragging,
|
|
1801
1814
|
frequency: Un.Optimized
|
|
1802
1815
|
},
|
|
1803
1816
|
dragOverlay: {
|
|
1804
|
-
measure:
|
|
1817
|
+
measure: Kt
|
|
1805
1818
|
}
|
|
1806
1819
|
};
|
|
1807
|
-
class
|
|
1820
|
+
class jt extends Map {
|
|
1808
1821
|
get(t) {
|
|
1809
1822
|
var n;
|
|
1810
1823
|
return t != null && (n = super.get(t)) != null ? n : void 0;
|
|
@@ -1834,22 +1847,22 @@ const _s = {
|
|
|
1834
1847
|
containerNodeRect: null,
|
|
1835
1848
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1836
1849
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
1837
|
-
droppableContainers: /* @__PURE__ */ new
|
|
1850
|
+
droppableContainers: /* @__PURE__ */ new jt(),
|
|
1838
1851
|
over: null,
|
|
1839
1852
|
dragOverlay: {
|
|
1840
1853
|
nodeRef: {
|
|
1841
1854
|
current: null
|
|
1842
1855
|
},
|
|
1843
1856
|
rect: null,
|
|
1844
|
-
setRef:
|
|
1857
|
+
setRef: xn
|
|
1845
1858
|
},
|
|
1846
1859
|
scrollableAncestors: [],
|
|
1847
1860
|
scrollableAncestorRects: [],
|
|
1848
|
-
measuringConfiguration:
|
|
1849
|
-
measureDroppableContainers:
|
|
1861
|
+
measuringConfiguration: pn,
|
|
1862
|
+
measureDroppableContainers: xn,
|
|
1850
1863
|
windowRect: null,
|
|
1851
1864
|
measuringScheduled: !1
|
|
1852
|
-
},
|
|
1865
|
+
}, Zr = {
|
|
1853
1866
|
activatorEvent: null,
|
|
1854
1867
|
activators: [],
|
|
1855
1868
|
active: null,
|
|
@@ -1857,11 +1870,11 @@ const _s = {
|
|
|
1857
1870
|
ariaDescribedById: {
|
|
1858
1871
|
draggable: ""
|
|
1859
1872
|
},
|
|
1860
|
-
dispatch:
|
|
1873
|
+
dispatch: xn,
|
|
1861
1874
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1862
1875
|
over: null,
|
|
1863
|
-
measureDroppableContainers:
|
|
1864
|
-
},
|
|
1876
|
+
measureDroppableContainers: xn
|
|
1877
|
+
}, Vt = /* @__PURE__ */ Gt(Zr), eo = /* @__PURE__ */ Gt(_s);
|
|
1865
1878
|
function Is() {
|
|
1866
1879
|
return {
|
|
1867
1880
|
draggable: {
|
|
@@ -1877,13 +1890,13 @@ function Is() {
|
|
|
1877
1890
|
}
|
|
1878
1891
|
},
|
|
1879
1892
|
droppable: {
|
|
1880
|
-
containers: new
|
|
1893
|
+
containers: new jt()
|
|
1881
1894
|
}
|
|
1882
1895
|
};
|
|
1883
1896
|
}
|
|
1884
1897
|
function Os(e, t) {
|
|
1885
1898
|
switch (t.type) {
|
|
1886
|
-
case
|
|
1899
|
+
case ce.DragStart:
|
|
1887
1900
|
return {
|
|
1888
1901
|
...e,
|
|
1889
1902
|
draggable: {
|
|
@@ -1892,8 +1905,8 @@ function Os(e, t) {
|
|
|
1892
1905
|
active: t.active
|
|
1893
1906
|
}
|
|
1894
1907
|
};
|
|
1895
|
-
case
|
|
1896
|
-
return e.draggable.active ? {
|
|
1908
|
+
case ce.DragMove:
|
|
1909
|
+
return e.draggable.active == null ? e : {
|
|
1897
1910
|
...e,
|
|
1898
1911
|
draggable: {
|
|
1899
1912
|
...e.draggable,
|
|
@@ -1902,9 +1915,9 @@ function Os(e, t) {
|
|
|
1902
1915
|
y: t.coordinates.y - e.draggable.initialCoordinates.y
|
|
1903
1916
|
}
|
|
1904
1917
|
}
|
|
1905
|
-
}
|
|
1906
|
-
case
|
|
1907
|
-
case
|
|
1918
|
+
};
|
|
1919
|
+
case ce.DragEnd:
|
|
1920
|
+
case ce.DragCancel:
|
|
1908
1921
|
return {
|
|
1909
1922
|
...e,
|
|
1910
1923
|
draggable: {
|
|
@@ -1920,12 +1933,12 @@ function Os(e, t) {
|
|
|
1920
1933
|
}
|
|
1921
1934
|
}
|
|
1922
1935
|
};
|
|
1923
|
-
case
|
|
1936
|
+
case ce.RegisterDroppable: {
|
|
1924
1937
|
const {
|
|
1925
1938
|
element: n
|
|
1926
1939
|
} = t, {
|
|
1927
1940
|
id: o
|
|
1928
|
-
} = n, i = new
|
|
1941
|
+
} = n, i = new jt(e.droppable.containers);
|
|
1929
1942
|
return i.set(o, n), {
|
|
1930
1943
|
...e,
|
|
1931
1944
|
droppable: {
|
|
@@ -1934,7 +1947,7 @@ function Os(e, t) {
|
|
|
1934
1947
|
}
|
|
1935
1948
|
};
|
|
1936
1949
|
}
|
|
1937
|
-
case
|
|
1950
|
+
case ce.SetDroppableDisabled: {
|
|
1938
1951
|
const {
|
|
1939
1952
|
id: n,
|
|
1940
1953
|
key: o,
|
|
@@ -1942,7 +1955,7 @@ function Os(e, t) {
|
|
|
1942
1955
|
} = t, a = e.droppable.containers.get(n);
|
|
1943
1956
|
if (!a || o !== a.key)
|
|
1944
1957
|
return e;
|
|
1945
|
-
const l = new
|
|
1958
|
+
const l = new jt(e.droppable.containers);
|
|
1946
1959
|
return l.set(n, {
|
|
1947
1960
|
...a,
|
|
1948
1961
|
disabled: i
|
|
@@ -1954,14 +1967,14 @@ function Os(e, t) {
|
|
|
1954
1967
|
}
|
|
1955
1968
|
};
|
|
1956
1969
|
}
|
|
1957
|
-
case
|
|
1970
|
+
case ce.UnregisterDroppable: {
|
|
1958
1971
|
const {
|
|
1959
1972
|
id: n,
|
|
1960
1973
|
key: o
|
|
1961
1974
|
} = t, i = e.droppable.containers.get(n);
|
|
1962
1975
|
if (!i || o !== i.key)
|
|
1963
1976
|
return e;
|
|
1964
|
-
const a = new
|
|
1977
|
+
const a = new jt(e.droppable.containers);
|
|
1965
1978
|
return a.delete(n), {
|
|
1966
1979
|
...e,
|
|
1967
1980
|
droppable: {
|
|
@@ -1982,10 +1995,10 @@ function Ts(e) {
|
|
|
1982
1995
|
active: n,
|
|
1983
1996
|
activatorEvent: o,
|
|
1984
1997
|
draggableNodes: i
|
|
1985
|
-
} =
|
|
1998
|
+
} = bt(Vt), a = yn(o), l = yn(n == null ? void 0 : n.id);
|
|
1986
1999
|
return K(() => {
|
|
1987
2000
|
if (!t && !o && a && l != null) {
|
|
1988
|
-
if (!
|
|
2001
|
+
if (!En(a) || document.activeElement === a.target)
|
|
1989
2002
|
return;
|
|
1990
2003
|
const c = i.get(l);
|
|
1991
2004
|
if (!c)
|
|
@@ -2010,7 +2023,7 @@ function Ts(e) {
|
|
|
2010
2023
|
}
|
|
2011
2024
|
}, [o, t, i, l, a]), null;
|
|
2012
2025
|
}
|
|
2013
|
-
function
|
|
2026
|
+
function to(e, t) {
|
|
2014
2027
|
let {
|
|
2015
2028
|
transform: n,
|
|
2016
2029
|
...o
|
|
@@ -2024,15 +2037,15 @@ function Ns(e) {
|
|
|
2024
2037
|
return j(
|
|
2025
2038
|
() => ({
|
|
2026
2039
|
draggable: {
|
|
2027
|
-
...
|
|
2040
|
+
...pn.draggable,
|
|
2028
2041
|
...e == null ? void 0 : e.draggable
|
|
2029
2042
|
},
|
|
2030
2043
|
droppable: {
|
|
2031
|
-
...
|
|
2044
|
+
...pn.droppable,
|
|
2032
2045
|
...e == null ? void 0 : e.droppable
|
|
2033
2046
|
},
|
|
2034
2047
|
dragOverlay: {
|
|
2035
|
-
...
|
|
2048
|
+
...pn.dragOverlay,
|
|
2036
2049
|
...e == null ? void 0 : e.dragOverlay
|
|
2037
2050
|
}
|
|
2038
2051
|
}),
|
|
@@ -2047,14 +2060,14 @@ function Ms(e) {
|
|
|
2047
2060
|
initialRect: o,
|
|
2048
2061
|
config: i = !0
|
|
2049
2062
|
} = e;
|
|
2050
|
-
const a =
|
|
2063
|
+
const a = X(!1), {
|
|
2051
2064
|
x: l,
|
|
2052
2065
|
y: c
|
|
2053
2066
|
} = typeof i == "boolean" ? {
|
|
2054
2067
|
x: i,
|
|
2055
2068
|
y: i
|
|
2056
2069
|
} : i;
|
|
2057
|
-
|
|
2070
|
+
qe(() => {
|
|
2058
2071
|
if (!l && !c || !t) {
|
|
2059
2072
|
a.current = !1;
|
|
2060
2073
|
return;
|
|
@@ -2064,9 +2077,9 @@ function Ms(e) {
|
|
|
2064
2077
|
const u = t == null ? void 0 : t.node.current;
|
|
2065
2078
|
if (!u || u.isConnected === !1)
|
|
2066
2079
|
return;
|
|
2067
|
-
const h = n(u), g =
|
|
2080
|
+
const h = n(u), g = zr(h, o);
|
|
2068
2081
|
if (l || (g.x = 0), c || (g.y = 0), a.current = !0, Math.abs(g.x) > 0 || Math.abs(g.y) > 0) {
|
|
2069
|
-
const w =
|
|
2082
|
+
const w = Kr(u);
|
|
2070
2083
|
w && w.scrollBy({
|
|
2071
2084
|
top: g.y,
|
|
2072
2085
|
left: g.x
|
|
@@ -2074,16 +2087,16 @@ function Ms(e) {
|
|
|
2074
2087
|
}
|
|
2075
2088
|
}, [t, l, c, o, n]);
|
|
2076
2089
|
}
|
|
2077
|
-
const
|
|
2090
|
+
const In = /* @__PURE__ */ Gt({
|
|
2078
2091
|
...Je,
|
|
2079
2092
|
scaleX: 1,
|
|
2080
2093
|
scaleY: 1
|
|
2081
2094
|
});
|
|
2082
|
-
var
|
|
2095
|
+
var vt;
|
|
2083
2096
|
(function(e) {
|
|
2084
2097
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2085
|
-
})(
|
|
2086
|
-
const Ls = /* @__PURE__ */
|
|
2098
|
+
})(vt || (vt = {}));
|
|
2099
|
+
const Ls = /* @__PURE__ */ Mr(function(t) {
|
|
2087
2100
|
var n, o, i, a;
|
|
2088
2101
|
let {
|
|
2089
2102
|
id: l,
|
|
@@ -2091,12 +2104,12 @@ const Ls = /* @__PURE__ */ pi(function(t) {
|
|
|
2091
2104
|
autoScroll: d = !0,
|
|
2092
2105
|
children: u,
|
|
2093
2106
|
sensors: h = As,
|
|
2094
|
-
collisionDetection: g =
|
|
2107
|
+
collisionDetection: g = Br,
|
|
2095
2108
|
measuring: w,
|
|
2096
2109
|
modifiers: b,
|
|
2097
2110
|
...A
|
|
2098
2111
|
} = t;
|
|
2099
|
-
const v =
|
|
2112
|
+
const v = pi(Os, void 0, Is), [x, S] = v, [E, D] = Li(), [R, T] = ne(vt.Uninitialized), _ = R === vt.Initialized, {
|
|
2100
2113
|
draggable: {
|
|
2101
2114
|
active: O,
|
|
2102
2115
|
nodes: M,
|
|
@@ -2105,33 +2118,33 @@ const Ls = /* @__PURE__ */ pi(function(t) {
|
|
|
2105
2118
|
droppable: {
|
|
2106
2119
|
containers: U
|
|
2107
2120
|
}
|
|
2108
|
-
} = x, B = O ? M.get(O) : null, re =
|
|
2121
|
+
} = x, B = O != null ? M.get(O) : null, re = X({
|
|
2109
2122
|
initial: null,
|
|
2110
2123
|
translated: null
|
|
2111
2124
|
}), Q = j(() => {
|
|
2112
|
-
var
|
|
2125
|
+
var W;
|
|
2113
2126
|
return O != null ? {
|
|
2114
2127
|
id: O,
|
|
2115
2128
|
// It's possible for the active node to unmount while dragging
|
|
2116
|
-
data: (
|
|
2129
|
+
data: (W = B == null ? void 0 : B.data) != null ? W : Es,
|
|
2117
2130
|
rect: re
|
|
2118
2131
|
} : null;
|
|
2119
|
-
}, [O, B]),
|
|
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), {
|
|
2120
2133
|
droppableRects: we,
|
|
2121
|
-
measureDroppableContainers:
|
|
2122
|
-
measuringScheduled:
|
|
2123
|
-
} = ps(
|
|
2134
|
+
measureDroppableContainers: Ue,
|
|
2135
|
+
measuringScheduled: et
|
|
2136
|
+
} = ps($e, {
|
|
2124
2137
|
dragging: _,
|
|
2125
2138
|
dependencies: [H.x, H.y],
|
|
2126
2139
|
config: V.droppable
|
|
2127
|
-
}), Z = gs(M, O),
|
|
2140
|
+
}), Z = gs(M, O), tt = j(() => J ? wn(J) : null, [J]), Be = Ye(), de = vs(Z, V.draggable.measure);
|
|
2128
2141
|
Ms({
|
|
2129
|
-
activeNode: O ? M.get(O) : null,
|
|
2130
|
-
config:
|
|
2131
|
-
initialRect:
|
|
2142
|
+
activeNode: O != null ? M.get(O) : null,
|
|
2143
|
+
config: Be.layoutShiftCompensation,
|
|
2144
|
+
initialRect: de,
|
|
2132
2145
|
measure: V.draggable.measure
|
|
2133
2146
|
});
|
|
2134
|
-
const $ = Sr(Z, V.draggable.measure,
|
|
2147
|
+
const $ = Sr(Z, V.draggable.measure, de), nt = Sr(Z ? Z.parentElement : null), Ee = X({
|
|
2135
2148
|
activatorEvent: null,
|
|
2136
2149
|
active: null,
|
|
2137
2150
|
activeNode: Z,
|
|
@@ -2145,120 +2158,119 @@ const Ls = /* @__PURE__ */ pi(function(t) {
|
|
|
2145
2158
|
over: null,
|
|
2146
2159
|
scrollableAncestors: [],
|
|
2147
2160
|
scrollAdjustedTranslate: null
|
|
2148
|
-
}), Ve = U.getNodeFor((n =
|
|
2161
|
+
}), Ve = U.getNodeFor((n = Ee.current.over) == null ? void 0 : n.id), P = Rs({
|
|
2149
2162
|
measure: V.dragOverlay.measure
|
|
2150
|
-
}), Qe = (o = P.nodeRef.current) != null ? o : Z,
|
|
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, {
|
|
2151
2164
|
transform: {
|
|
2152
|
-
x: H.x -
|
|
2153
|
-
y: H.y -
|
|
2165
|
+
x: H.x - _e.x,
|
|
2166
|
+
y: H.y - _e.y,
|
|
2154
2167
|
scaleX: 1,
|
|
2155
2168
|
scaleY: 1
|
|
2156
2169
|
},
|
|
2157
2170
|
activatorEvent: J,
|
|
2158
2171
|
active: Q,
|
|
2159
2172
|
activeNodeRect: $,
|
|
2160
|
-
containerNodeRect:
|
|
2161
|
-
draggingNodeRect:
|
|
2162
|
-
over:
|
|
2173
|
+
containerNodeRect: nt,
|
|
2174
|
+
draggingNodeRect: je,
|
|
2175
|
+
over: Ee.current.over,
|
|
2163
2176
|
overlayNodeRect: P.rect,
|
|
2164
2177
|
scrollableAncestors: p,
|
|
2165
2178
|
scrollableAncestorRects: m,
|
|
2166
2179
|
windowRect: Ze
|
|
2167
|
-
}),
|
|
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({
|
|
2168
2181
|
active: Q,
|
|
2169
|
-
collisionRect:
|
|
2182
|
+
collisionRect: he,
|
|
2170
2183
|
droppableRects: we,
|
|
2171
|
-
droppableContainers:
|
|
2172
|
-
pointerCoordinates:
|
|
2173
|
-
}) : null,
|
|
2174
|
-
(
|
|
2184
|
+
droppableContainers: $e,
|
|
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) => {
|
|
2175
2188
|
let {
|
|
2176
|
-
sensor:
|
|
2189
|
+
sensor: ye,
|
|
2177
2190
|
options: ke
|
|
2178
|
-
} =
|
|
2179
|
-
if (
|
|
2191
|
+
} = xe;
|
|
2192
|
+
if (Ae.current == null)
|
|
2180
2193
|
return;
|
|
2181
|
-
const
|
|
2182
|
-
if (!
|
|
2194
|
+
const Ie = M.get(Ae.current);
|
|
2195
|
+
if (!Ie)
|
|
2183
2196
|
return;
|
|
2184
|
-
const
|
|
2185
|
-
active:
|
|
2186
|
-
activeNode:
|
|
2187
|
-
event:
|
|
2197
|
+
const Ce = W.nativeEvent, ze = new ye({
|
|
2198
|
+
active: Ae.current,
|
|
2199
|
+
activeNode: Ie,
|
|
2200
|
+
event: Ce,
|
|
2188
2201
|
options: ke,
|
|
2189
2202
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2190
2203
|
// otherwise they are frozen in time with the stale arguments
|
|
2191
|
-
context:
|
|
2192
|
-
onStart(
|
|
2193
|
-
const
|
|
2194
|
-
if (
|
|
2204
|
+
context: Ee,
|
|
2205
|
+
onStart(De) {
|
|
2206
|
+
const Ge = Ae.current;
|
|
2207
|
+
if (Ge == null)
|
|
2195
2208
|
return;
|
|
2196
|
-
const
|
|
2197
|
-
if (!
|
|
2209
|
+
const it = M.get(Ge);
|
|
2210
|
+
if (!it)
|
|
2198
2211
|
return;
|
|
2199
2212
|
const {
|
|
2200
2213
|
onDragStart: dt
|
|
2201
|
-
} =
|
|
2214
|
+
} = Ne.current, ft = {
|
|
2215
|
+
activatorEvent: Ce,
|
|
2202
2216
|
active: {
|
|
2203
|
-
id:
|
|
2204
|
-
data:
|
|
2217
|
+
id: Ge,
|
|
2218
|
+
data: it.data,
|
|
2205
2219
|
rect: re
|
|
2206
2220
|
}
|
|
2207
2221
|
};
|
|
2208
|
-
|
|
2209
|
-
dt == null || dt(ft), T(
|
|
2210
|
-
type:
|
|
2211
|
-
initialCoordinates:
|
|
2212
|
-
active:
|
|
2222
|
+
Mt.unstable_batchedUpdates(() => {
|
|
2223
|
+
dt == null || dt(ft), T(vt.Initializing), S({
|
|
2224
|
+
type: ce.DragStart,
|
|
2225
|
+
initialCoordinates: De,
|
|
2226
|
+
active: Ge
|
|
2213
2227
|
}), E({
|
|
2214
2228
|
type: "onDragStart",
|
|
2215
2229
|
event: ft
|
|
2216
|
-
});
|
|
2230
|
+
}), F(se.current), Pe(Ce);
|
|
2217
2231
|
});
|
|
2218
2232
|
},
|
|
2219
|
-
onMove(
|
|
2233
|
+
onMove(De) {
|
|
2220
2234
|
S({
|
|
2221
|
-
type:
|
|
2222
|
-
coordinates:
|
|
2235
|
+
type: ce.DragMove,
|
|
2236
|
+
coordinates: De
|
|
2223
2237
|
});
|
|
2224
2238
|
},
|
|
2225
|
-
onEnd: ut(
|
|
2226
|
-
onCancel: ut(
|
|
2227
|
-
});
|
|
2228
|
-
At.unstable_batchedUpdates(() => {
|
|
2229
|
-
F(ze), Le(X.nativeEvent);
|
|
2239
|
+
onEnd: ut(ce.DragEnd),
|
|
2240
|
+
onCancel: ut(ce.DragCancel)
|
|
2230
2241
|
});
|
|
2231
|
-
|
|
2242
|
+
se.current = ze;
|
|
2243
|
+
function ut(De) {
|
|
2232
2244
|
return async function() {
|
|
2233
2245
|
const {
|
|
2234
|
-
active:
|
|
2246
|
+
active: it,
|
|
2235
2247
|
collisions: dt,
|
|
2236
2248
|
over: ft,
|
|
2237
|
-
scrollAdjustedTranslate:
|
|
2238
|
-
} =
|
|
2239
|
-
let
|
|
2240
|
-
if (
|
|
2249
|
+
scrollAdjustedTranslate: gt
|
|
2250
|
+
} = Ee.current;
|
|
2251
|
+
let xt = null;
|
|
2252
|
+
if (it && gt) {
|
|
2241
2253
|
const {
|
|
2242
|
-
cancelDrop:
|
|
2243
|
-
} =
|
|
2244
|
-
|
|
2245
|
-
activatorEvent:
|
|
2246
|
-
active:
|
|
2254
|
+
cancelDrop: Ct
|
|
2255
|
+
} = Ne.current;
|
|
2256
|
+
xt = {
|
|
2257
|
+
activatorEvent: Ce,
|
|
2258
|
+
active: it,
|
|
2247
2259
|
collisions: dt,
|
|
2248
|
-
delta:
|
|
2260
|
+
delta: gt,
|
|
2249
2261
|
over: ft
|
|
2250
|
-
},
|
|
2262
|
+
}, De === ce.DragEnd && typeof Ct == "function" && await Promise.resolve(Ct(xt)) && (De = ce.DragCancel);
|
|
2251
2263
|
}
|
|
2252
|
-
|
|
2264
|
+
Ae.current = null, Mt.unstable_batchedUpdates(() => {
|
|
2253
2265
|
S({
|
|
2254
|
-
type:
|
|
2255
|
-
}), T(
|
|
2256
|
-
const
|
|
2257
|
-
if (
|
|
2258
|
-
const
|
|
2259
|
-
|
|
2260
|
-
type:
|
|
2261
|
-
event:
|
|
2266
|
+
type: De
|
|
2267
|
+
}), T(vt.Uninitialized), Me(null), F(null), Pe(null), se.current = null;
|
|
2268
|
+
const Ct = De === ce.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2269
|
+
if (xt) {
|
|
2270
|
+
const Ht = Ne.current[Ct];
|
|
2271
|
+
Ht == null || Ht(xt), E({
|
|
2272
|
+
type: Ct,
|
|
2273
|
+
event: xt
|
|
2262
2274
|
});
|
|
2263
2275
|
}
|
|
2264
2276
|
});
|
|
@@ -2267,50 +2279,50 @@ const Ls = /* @__PURE__ */ pi(function(t) {
|
|
|
2267
2279
|
},
|
|
2268
2280
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2269
2281
|
[M]
|
|
2270
|
-
),
|
|
2271
|
-
const
|
|
2282
|
+
), ot = ve((W, xe) => (ye, ke) => {
|
|
2283
|
+
const Ie = ye.nativeEvent, Ce = M.get(ke);
|
|
2272
2284
|
if (
|
|
2273
2285
|
// Another sensor is already instantiating
|
|
2274
|
-
|
|
2275
|
-
!
|
|
2276
|
-
|
|
2286
|
+
Ae.current !== null || // No active draggable
|
|
2287
|
+
!Ce || // Event has already been captured
|
|
2288
|
+
Ie.dndKit || Ie.defaultPrevented
|
|
2277
2289
|
)
|
|
2278
2290
|
return;
|
|
2279
2291
|
const ze = {
|
|
2280
|
-
active:
|
|
2292
|
+
active: Ce
|
|
2281
2293
|
};
|
|
2282
|
-
|
|
2283
|
-
capturedBy:
|
|
2284
|
-
},
|
|
2285
|
-
}, [M,
|
|
2286
|
-
Cs(h),
|
|
2287
|
-
$ && R ===
|
|
2294
|
+
W(ye, xe.options, ze) === !0 && (Ie.dndKit = {
|
|
2295
|
+
capturedBy: xe.sensor
|
|
2296
|
+
}, Ae.current = ke, Le(ye, xe));
|
|
2297
|
+
}, [M, Le]), _t = hs(h, ot);
|
|
2298
|
+
Cs(h), qe(() => {
|
|
2299
|
+
$ && R === vt.Initializing && T(vt.Initialized);
|
|
2288
2300
|
}, [$, R]), K(
|
|
2289
2301
|
() => {
|
|
2290
2302
|
const {
|
|
2291
|
-
onDragMove:
|
|
2292
|
-
} =
|
|
2293
|
-
active:
|
|
2294
|
-
activatorEvent:
|
|
2303
|
+
onDragMove: W
|
|
2304
|
+
} = Ne.current, {
|
|
2305
|
+
active: xe,
|
|
2306
|
+
activatorEvent: ye,
|
|
2295
2307
|
collisions: ke,
|
|
2296
|
-
over:
|
|
2297
|
-
} =
|
|
2298
|
-
if (!
|
|
2308
|
+
over: Ie
|
|
2309
|
+
} = Ee.current;
|
|
2310
|
+
if (!xe || !ye)
|
|
2299
2311
|
return;
|
|
2300
|
-
const
|
|
2301
|
-
active:
|
|
2302
|
-
activatorEvent:
|
|
2312
|
+
const Ce = {
|
|
2313
|
+
active: xe,
|
|
2314
|
+
activatorEvent: ye,
|
|
2303
2315
|
collisions: ke,
|
|
2304
2316
|
delta: {
|
|
2305
2317
|
x: oe.x,
|
|
2306
2318
|
y: oe.y
|
|
2307
2319
|
},
|
|
2308
|
-
over:
|
|
2320
|
+
over: Ie
|
|
2309
2321
|
};
|
|
2310
|
-
|
|
2311
|
-
|
|
2322
|
+
Mt.unstable_batchedUpdates(() => {
|
|
2323
|
+
W == null || W(Ce), E({
|
|
2312
2324
|
type: "onDragMove",
|
|
2313
|
-
event:
|
|
2325
|
+
event: Ce
|
|
2314
2326
|
});
|
|
2315
2327
|
});
|
|
2316
2328
|
},
|
|
@@ -2319,122 +2331,122 @@ const Ls = /* @__PURE__ */ pi(function(t) {
|
|
|
2319
2331
|
), K(
|
|
2320
2332
|
() => {
|
|
2321
2333
|
const {
|
|
2322
|
-
active:
|
|
2323
|
-
activatorEvent:
|
|
2324
|
-
collisions:
|
|
2334
|
+
active: W,
|
|
2335
|
+
activatorEvent: xe,
|
|
2336
|
+
collisions: ye,
|
|
2325
2337
|
droppableContainers: ke,
|
|
2326
|
-
scrollAdjustedTranslate:
|
|
2327
|
-
} =
|
|
2328
|
-
if (!
|
|
2338
|
+
scrollAdjustedTranslate: Ie
|
|
2339
|
+
} = Ee.current;
|
|
2340
|
+
if (!W || Ae.current == null || !xe || !Ie)
|
|
2329
2341
|
return;
|
|
2330
2342
|
const {
|
|
2331
|
-
onDragOver:
|
|
2332
|
-
} =
|
|
2343
|
+
onDragOver: Ce
|
|
2344
|
+
} = Ne.current, ze = ke.get(rt), ut = ze && ze.rect.current ? {
|
|
2333
2345
|
id: ze.id,
|
|
2334
2346
|
rect: ze.rect.current,
|
|
2335
2347
|
data: ze.data,
|
|
2336
2348
|
disabled: ze.disabled
|
|
2337
|
-
} : null,
|
|
2338
|
-
active:
|
|
2339
|
-
activatorEvent:
|
|
2340
|
-
collisions:
|
|
2349
|
+
} : null, De = {
|
|
2350
|
+
active: W,
|
|
2351
|
+
activatorEvent: xe,
|
|
2352
|
+
collisions: ye,
|
|
2341
2353
|
delta: {
|
|
2342
|
-
x:
|
|
2343
|
-
y:
|
|
2354
|
+
x: Ie.x,
|
|
2355
|
+
y: Ie.y
|
|
2344
2356
|
},
|
|
2345
2357
|
over: ut
|
|
2346
2358
|
};
|
|
2347
|
-
|
|
2348
|
-
|
|
2359
|
+
Mt.unstable_batchedUpdates(() => {
|
|
2360
|
+
Me(ut), Ce == null || Ce(De), E({
|
|
2349
2361
|
type: "onDragOver",
|
|
2350
|
-
event:
|
|
2362
|
+
event: De
|
|
2351
2363
|
});
|
|
2352
2364
|
});
|
|
2353
2365
|
},
|
|
2354
2366
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2355
|
-
[
|
|
2356
|
-
),
|
|
2357
|
-
|
|
2367
|
+
[rt]
|
|
2368
|
+
), qe(() => {
|
|
2369
|
+
Ee.current = {
|
|
2358
2370
|
activatorEvent: J,
|
|
2359
2371
|
active: Q,
|
|
2360
2372
|
activeNode: Z,
|
|
2361
|
-
collisionRect:
|
|
2362
|
-
collisions:
|
|
2373
|
+
collisionRect: he,
|
|
2374
|
+
collisions: be,
|
|
2363
2375
|
droppableRects: we,
|
|
2364
2376
|
draggableNodes: M,
|
|
2365
2377
|
draggingNode: Qe,
|
|
2366
|
-
draggingNodeRect:
|
|
2378
|
+
draggingNodeRect: je,
|
|
2367
2379
|
droppableContainers: U,
|
|
2368
2380
|
over: te,
|
|
2369
2381
|
scrollableAncestors: p,
|
|
2370
2382
|
scrollAdjustedTranslate: oe
|
|
2371
2383
|
}, re.current = {
|
|
2372
|
-
initial:
|
|
2373
|
-
translated:
|
|
2384
|
+
initial: je,
|
|
2385
|
+
translated: he
|
|
2374
2386
|
};
|
|
2375
|
-
}, [Q, Z,
|
|
2376
|
-
|
|
2387
|
+
}, [Q, Z, be, he, M, Qe, je, we, U, te, p, oe]), us({
|
|
2388
|
+
...Be,
|
|
2377
2389
|
delta: H,
|
|
2378
|
-
draggingRect:
|
|
2379
|
-
pointerCoordinates:
|
|
2390
|
+
draggingRect: he,
|
|
2391
|
+
pointerCoordinates: G,
|
|
2380
2392
|
scrollableAncestors: p,
|
|
2381
2393
|
scrollableAncestorRects: m
|
|
2382
2394
|
});
|
|
2383
|
-
const
|
|
2395
|
+
const Qt = j(() => ({
|
|
2384
2396
|
active: Q,
|
|
2385
2397
|
activeNode: Z,
|
|
2386
2398
|
activeNodeRect: $,
|
|
2387
2399
|
activatorEvent: J,
|
|
2388
|
-
collisions:
|
|
2389
|
-
containerNodeRect:
|
|
2400
|
+
collisions: be,
|
|
2401
|
+
containerNodeRect: nt,
|
|
2390
2402
|
dragOverlay: P,
|
|
2391
2403
|
draggableNodes: M,
|
|
2392
2404
|
droppableContainers: U,
|
|
2393
2405
|
droppableRects: we,
|
|
2394
2406
|
over: te,
|
|
2395
|
-
measureDroppableContainers:
|
|
2407
|
+
measureDroppableContainers: Ue,
|
|
2396
2408
|
scrollableAncestors: p,
|
|
2397
2409
|
scrollableAncestorRects: m,
|
|
2398
2410
|
measuringConfiguration: V,
|
|
2399
|
-
measuringScheduled:
|
|
2411
|
+
measuringScheduled: et,
|
|
2400
2412
|
windowRect: Ze
|
|
2401
|
-
}), [Q, Z, $, J,
|
|
2413
|
+
}), [Q, Z, $, J, be, nt, P, M, U, we, te, Ue, p, m, V, et, Ze]), Zt = j(() => ({
|
|
2402
2414
|
activatorEvent: J,
|
|
2403
|
-
activators:
|
|
2415
|
+
activators: _t,
|
|
2404
2416
|
active: Q,
|
|
2405
2417
|
activeNodeRect: $,
|
|
2406
2418
|
ariaDescribedById: {
|
|
2407
|
-
draggable:
|
|
2419
|
+
draggable: ue
|
|
2408
2420
|
},
|
|
2409
2421
|
dispatch: S,
|
|
2410
2422
|
draggableNodes: M,
|
|
2411
2423
|
over: te,
|
|
2412
|
-
measureDroppableContainers:
|
|
2413
|
-
}), [J,
|
|
2414
|
-
return
|
|
2424
|
+
measureDroppableContainers: Ue
|
|
2425
|
+
}), [J, _t, Q, $, S, ue, M, te, Ue]);
|
|
2426
|
+
return q.createElement($r.Provider, {
|
|
2415
2427
|
value: D
|
|
2416
|
-
},
|
|
2417
|
-
value:
|
|
2418
|
-
},
|
|
2419
|
-
value:
|
|
2420
|
-
},
|
|
2428
|
+
}, q.createElement(Vt.Provider, {
|
|
2429
|
+
value: Zt
|
|
2430
|
+
}, q.createElement(eo.Provider, {
|
|
2431
|
+
value: Qt
|
|
2432
|
+
}, q.createElement(In.Provider, {
|
|
2421
2433
|
value: ie
|
|
2422
|
-
}, u)),
|
|
2434
|
+
}, u)), q.createElement(Ts, {
|
|
2423
2435
|
disabled: (c == null ? void 0 : c.restoreFocus) === !1
|
|
2424
|
-
})),
|
|
2436
|
+
})), q.createElement(Bi, {
|
|
2425
2437
|
...c,
|
|
2426
|
-
hiddenTextDescribedById:
|
|
2438
|
+
hiddenTextDescribedById: ue
|
|
2427
2439
|
}));
|
|
2428
|
-
function
|
|
2429
|
-
const
|
|
2440
|
+
function Ye() {
|
|
2441
|
+
const W = (Xe == null ? void 0 : Xe.autoScrollEnabled) === !1, xe = typeof d == "object" ? d.enabled === !1 : d === !1, ye = _ && !W && !xe;
|
|
2430
2442
|
return typeof d == "object" ? {
|
|
2431
2443
|
...d,
|
|
2432
|
-
enabled:
|
|
2444
|
+
enabled: ye
|
|
2433
2445
|
} : {
|
|
2434
|
-
enabled:
|
|
2446
|
+
enabled: ye
|
|
2435
2447
|
};
|
|
2436
2448
|
}
|
|
2437
|
-
}), Ps = /* @__PURE__ */
|
|
2449
|
+
}), Ps = /* @__PURE__ */ Gt(null), _r = "button", $s = "Draggable";
|
|
2438
2450
|
function Bs(e) {
|
|
2439
2451
|
let {
|
|
2440
2452
|
id: t,
|
|
@@ -2442,7 +2454,7 @@ function Bs(e) {
|
|
|
2442
2454
|
disabled: o = !1,
|
|
2443
2455
|
attributes: i
|
|
2444
2456
|
} = e;
|
|
2445
|
-
const a =
|
|
2457
|
+
const a = Jt($s), {
|
|
2446
2458
|
activators: l,
|
|
2447
2459
|
activatorEvent: c,
|
|
2448
2460
|
active: d,
|
|
@@ -2450,12 +2462,12 @@ function Bs(e) {
|
|
|
2450
2462
|
ariaDescribedById: h,
|
|
2451
2463
|
draggableNodes: g,
|
|
2452
2464
|
over: w
|
|
2453
|
-
} =
|
|
2454
|
-
role: b =
|
|
2465
|
+
} = bt(Vt), {
|
|
2466
|
+
role: b = _r,
|
|
2455
2467
|
roleDescription: A = "draggable",
|
|
2456
2468
|
tabIndex: v = 0
|
|
2457
|
-
} = i ?? {}, x = (d == null ? void 0 : d.id) === t, S =
|
|
2458
|
-
|
|
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
|
+
qe(
|
|
2459
2471
|
() => (g.set(t, {
|
|
2460
2472
|
id: t,
|
|
2461
2473
|
key: a,
|
|
@@ -2473,7 +2485,7 @@ function Bs(e) {
|
|
|
2473
2485
|
role: b,
|
|
2474
2486
|
tabIndex: v,
|
|
2475
2487
|
"aria-disabled": o,
|
|
2476
|
-
"aria-pressed": x && b ===
|
|
2488
|
+
"aria-pressed": x && b === _r ? !0 : void 0,
|
|
2477
2489
|
"aria-roledescription": A,
|
|
2478
2490
|
"aria-describedby": h.draggable
|
|
2479
2491
|
}), [o, b, v, x, A, h.draggable]);
|
|
@@ -2491,8 +2503,8 @@ function Bs(e) {
|
|
|
2491
2503
|
transform: S
|
|
2492
2504
|
};
|
|
2493
2505
|
}
|
|
2494
|
-
function
|
|
2495
|
-
return
|
|
2506
|
+
function no() {
|
|
2507
|
+
return bt(eo);
|
|
2496
2508
|
}
|
|
2497
2509
|
const zs = "Droppable", Fs = {
|
|
2498
2510
|
timeout: 25
|
|
@@ -2504,21 +2516,21 @@ function Ks(e) {
|
|
|
2504
2516
|
id: o,
|
|
2505
2517
|
resizeObserverConfig: i
|
|
2506
2518
|
} = e;
|
|
2507
|
-
const a =
|
|
2519
|
+
const a = Jt(zs), {
|
|
2508
2520
|
active: l,
|
|
2509
2521
|
dispatch: c,
|
|
2510
2522
|
over: d,
|
|
2511
2523
|
measureDroppableContainers: u
|
|
2512
|
-
} =
|
|
2524
|
+
} = bt(Vt), h = X({
|
|
2513
2525
|
disabled: n
|
|
2514
|
-
}), g =
|
|
2526
|
+
}), g = X(!1), w = X(null), b = X(null), {
|
|
2515
2527
|
disabled: A,
|
|
2516
2528
|
updateMeasurementsFor: v,
|
|
2517
2529
|
timeout: x
|
|
2518
2530
|
} = {
|
|
2519
2531
|
...Fs,
|
|
2520
2532
|
...i
|
|
2521
|
-
}, S =
|
|
2533
|
+
}, S = kt(v ?? o), E = ve(
|
|
2522
2534
|
() => {
|
|
2523
2535
|
if (!g.current) {
|
|
2524
2536
|
g.current = !0;
|
|
@@ -2530,17 +2542,17 @@ function Ks(e) {
|
|
|
2530
2542
|
},
|
|
2531
2543
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2532
2544
|
[x]
|
|
2533
|
-
), D =
|
|
2545
|
+
), D = _n({
|
|
2534
2546
|
callback: E,
|
|
2535
2547
|
disabled: A || !l
|
|
2536
|
-
}), R =
|
|
2548
|
+
}), R = ve((M, H) => {
|
|
2537
2549
|
D && (H && (D.unobserve(H), g.current = !1), M && D.observe(M));
|
|
2538
|
-
}, [D]), [T, _] =
|
|
2550
|
+
}, [D]), [T, _] = bn(R), O = kt(t);
|
|
2539
2551
|
return K(() => {
|
|
2540
2552
|
!D || !T.current || (D.disconnect(), g.current = !1, D.observe(T.current));
|
|
2541
|
-
}, [T, D]),
|
|
2553
|
+
}, [T, D]), K(
|
|
2542
2554
|
() => (c({
|
|
2543
|
-
type:
|
|
2555
|
+
type: ce.RegisterDroppable,
|
|
2544
2556
|
element: {
|
|
2545
2557
|
id: o,
|
|
2546
2558
|
key: a,
|
|
@@ -2550,7 +2562,7 @@ function Ks(e) {
|
|
|
2550
2562
|
data: O
|
|
2551
2563
|
}
|
|
2552
2564
|
}), () => c({
|
|
2553
|
-
type:
|
|
2565
|
+
type: ce.UnregisterDroppable,
|
|
2554
2566
|
key: a,
|
|
2555
2567
|
id: o
|
|
2556
2568
|
})),
|
|
@@ -2558,7 +2570,7 @@ function Ks(e) {
|
|
|
2558
2570
|
[o]
|
|
2559
2571
|
), K(() => {
|
|
2560
2572
|
n !== h.current.disabled && (c({
|
|
2561
|
-
type:
|
|
2573
|
+
type: ce.SetDroppableDisabled,
|
|
2562
2574
|
id: o,
|
|
2563
2575
|
key: a,
|
|
2564
2576
|
disabled: n
|
|
@@ -2577,8 +2589,8 @@ function Hs(e) {
|
|
|
2577
2589
|
animation: t,
|
|
2578
2590
|
children: n
|
|
2579
2591
|
} = e;
|
|
2580
|
-
const [o, i] =
|
|
2581
|
-
return !n && !o && c && i(c),
|
|
2592
|
+
const [o, i] = ne(null), [a, l] = ne(null), c = yn(n);
|
|
2593
|
+
return !n && !o && c && i(c), qe(() => {
|
|
2582
2594
|
if (!a)
|
|
2583
2595
|
return;
|
|
2584
2596
|
const d = o == null ? void 0 : o.key, u = o == null ? void 0 : o.props.id;
|
|
@@ -2589,30 +2601,30 @@ function Hs(e) {
|
|
|
2589
2601
|
Promise.resolve(t(u, a)).then(() => {
|
|
2590
2602
|
i(null);
|
|
2591
2603
|
});
|
|
2592
|
-
}, [t, o, a]),
|
|
2604
|
+
}, [t, o, a]), q.createElement(q.Fragment, null, n, o ? vi(o, {
|
|
2593
2605
|
ref: l
|
|
2594
2606
|
}) : null);
|
|
2595
2607
|
}
|
|
2596
|
-
const
|
|
2608
|
+
const Xs = {
|
|
2597
2609
|
x: 0,
|
|
2598
2610
|
y: 0,
|
|
2599
2611
|
scaleX: 1,
|
|
2600
2612
|
scaleY: 1
|
|
2601
2613
|
};
|
|
2602
|
-
function
|
|
2614
|
+
function Us(e) {
|
|
2603
2615
|
let {
|
|
2604
2616
|
children: t
|
|
2605
2617
|
} = e;
|
|
2606
|
-
return
|
|
2607
|
-
value:
|
|
2608
|
-
},
|
|
2609
|
-
value:
|
|
2618
|
+
return q.createElement(Vt.Provider, {
|
|
2619
|
+
value: Zr
|
|
2620
|
+
}, q.createElement(In.Provider, {
|
|
2621
|
+
value: Xs
|
|
2610
2622
|
}, t));
|
|
2611
2623
|
}
|
|
2612
2624
|
const js = {
|
|
2613
2625
|
position: "fixed",
|
|
2614
2626
|
touchAction: "none"
|
|
2615
|
-
}, Ys = (e) =>
|
|
2627
|
+
}, Ys = (e) => En(e) ? "transform 250ms ease" : void 0, ks = /* @__PURE__ */ Sn((e, t) => {
|
|
2616
2628
|
let {
|
|
2617
2629
|
as: n,
|
|
2618
2630
|
activatorEvent: o,
|
|
@@ -2636,17 +2648,17 @@ const js = {
|
|
|
2636
2648
|
height: c.height,
|
|
2637
2649
|
top: c.top,
|
|
2638
2650
|
left: c.left,
|
|
2639
|
-
transform:
|
|
2651
|
+
transform: yt.Transform.toString(g),
|
|
2640
2652
|
transformOrigin: i && o ? Fi(o, c) : void 0,
|
|
2641
2653
|
transition: typeof h == "function" ? h(o) : h,
|
|
2642
2654
|
...d
|
|
2643
2655
|
};
|
|
2644
|
-
return
|
|
2656
|
+
return q.createElement(n, {
|
|
2645
2657
|
className: l,
|
|
2646
2658
|
style: w,
|
|
2647
2659
|
ref: t
|
|
2648
2660
|
}, a);
|
|
2649
|
-
}),
|
|
2661
|
+
}), ro = (e) => (t) => {
|
|
2650
2662
|
let {
|
|
2651
2663
|
active: n,
|
|
2652
2664
|
dragOverlay: o
|
|
@@ -2674,15 +2686,15 @@ const js = {
|
|
|
2674
2686
|
}
|
|
2675
2687
|
} = e;
|
|
2676
2688
|
return [{
|
|
2677
|
-
transform:
|
|
2689
|
+
transform: yt.Transform.toString(t)
|
|
2678
2690
|
}, {
|
|
2679
|
-
transform:
|
|
2691
|
+
transform: yt.Transform.toString(n)
|
|
2680
2692
|
}];
|
|
2681
2693
|
}, Ws = {
|
|
2682
2694
|
duration: 250,
|
|
2683
2695
|
easing: "ease",
|
|
2684
2696
|
keyframes: Gs,
|
|
2685
|
-
sideEffects: /* @__PURE__ */
|
|
2697
|
+
sideEffects: /* @__PURE__ */ ro({
|
|
2686
2698
|
styles: {
|
|
2687
2699
|
active: {
|
|
2688
2700
|
opacity: "0"
|
|
@@ -2697,7 +2709,7 @@ function qs(e) {
|
|
|
2697
2709
|
droppableContainers: o,
|
|
2698
2710
|
measuringConfiguration: i
|
|
2699
2711
|
} = e;
|
|
2700
|
-
return
|
|
2712
|
+
return An((a, l) => {
|
|
2701
2713
|
if (t === null)
|
|
2702
2714
|
return;
|
|
2703
2715
|
const c = n.get(a);
|
|
@@ -2706,16 +2718,16 @@ function qs(e) {
|
|
|
2706
2718
|
const d = c.node.current;
|
|
2707
2719
|
if (!d)
|
|
2708
2720
|
return;
|
|
2709
|
-
const u =
|
|
2721
|
+
const u = Qr(l);
|
|
2710
2722
|
if (!u)
|
|
2711
2723
|
return;
|
|
2712
2724
|
const {
|
|
2713
2725
|
transform: h
|
|
2714
|
-
} =
|
|
2726
|
+
} = Re(l).getComputedStyle(l), g = Fr(h);
|
|
2715
2727
|
if (!g)
|
|
2716
2728
|
return;
|
|
2717
2729
|
const w = typeof t == "function" ? t : Js(t);
|
|
2718
|
-
return
|
|
2730
|
+
return kr(d, i.draggable.measure), w({
|
|
2719
2731
|
active: {
|
|
2720
2732
|
id: a,
|
|
2721
2733
|
data: c.data,
|
|
@@ -2789,14 +2801,14 @@ function Js(e) {
|
|
|
2789
2801
|
});
|
|
2790
2802
|
};
|
|
2791
2803
|
}
|
|
2792
|
-
let
|
|
2804
|
+
let Ir = 0;
|
|
2793
2805
|
function Vs(e) {
|
|
2794
2806
|
return j(() => {
|
|
2795
2807
|
if (e != null)
|
|
2796
|
-
return
|
|
2808
|
+
return Ir++, Ir;
|
|
2797
2809
|
}, [e]);
|
|
2798
2810
|
}
|
|
2799
|
-
const Qs = /* @__PURE__ */
|
|
2811
|
+
const Qs = /* @__PURE__ */ q.memo((e) => {
|
|
2800
2812
|
let {
|
|
2801
2813
|
adjustScale: t = !1,
|
|
2802
2814
|
children: n,
|
|
@@ -2821,7 +2833,7 @@ const Qs = /* @__PURE__ */ k.memo((e) => {
|
|
|
2821
2833
|
scrollableAncestors: D,
|
|
2822
2834
|
scrollableAncestorRects: R,
|
|
2823
2835
|
windowRect: T
|
|
2824
|
-
} =
|
|
2836
|
+
} = no(), _ = bt(In), O = Vs(g == null ? void 0 : g.id), M = to(l, {
|
|
2825
2837
|
activatorEvent: h,
|
|
2826
2838
|
active: g,
|
|
2827
2839
|
activeNodeRect: w,
|
|
@@ -2839,9 +2851,9 @@ const Qs = /* @__PURE__ */ k.memo((e) => {
|
|
|
2839
2851
|
droppableContainers: v,
|
|
2840
2852
|
measuringConfiguration: E
|
|
2841
2853
|
}), B = H ? x.setRef : void 0;
|
|
2842
|
-
return
|
|
2854
|
+
return q.createElement(Us, null, q.createElement(Hs, {
|
|
2843
2855
|
animation: U
|
|
2844
|
-
}, g && O ?
|
|
2856
|
+
}, g && O ? q.createElement(ks, {
|
|
2845
2857
|
key: O,
|
|
2846
2858
|
id: g.id,
|
|
2847
2859
|
ref: B,
|
|
@@ -2858,7 +2870,7 @@ const Qs = /* @__PURE__ */ k.memo((e) => {
|
|
|
2858
2870
|
transform: M
|
|
2859
2871
|
}, n) : null));
|
|
2860
2872
|
});
|
|
2861
|
-
function
|
|
2873
|
+
function Yt(e, t, n) {
|
|
2862
2874
|
const o = e.slice();
|
|
2863
2875
|
return o.splice(n < 0 ? o.length + n : n, 0, o.splice(t, 1)[0]), o;
|
|
2864
2876
|
}
|
|
@@ -2868,7 +2880,7 @@ function Zs(e, t) {
|
|
|
2868
2880
|
return a && (n[i] = a), n;
|
|
2869
2881
|
}, Array(e.length));
|
|
2870
2882
|
}
|
|
2871
|
-
function
|
|
2883
|
+
function fn(e) {
|
|
2872
2884
|
return e !== null && e >= 0;
|
|
2873
2885
|
}
|
|
2874
2886
|
function ea(e, t) {
|
|
@@ -2887,7 +2899,7 @@ function ta(e) {
|
|
|
2887
2899
|
droppable: e
|
|
2888
2900
|
} : e;
|
|
2889
2901
|
}
|
|
2890
|
-
const
|
|
2902
|
+
const gn = {
|
|
2891
2903
|
scaleX: 1,
|
|
2892
2904
|
scaleY: 1
|
|
2893
2905
|
}, na = (e) => {
|
|
@@ -2908,45 +2920,45 @@ const fn = {
|
|
|
2908
2920
|
return u ? {
|
|
2909
2921
|
x: i < a ? u.left + u.width - (c.left + c.width) : u.left - c.left,
|
|
2910
2922
|
y: 0,
|
|
2911
|
-
...
|
|
2923
|
+
...gn
|
|
2912
2924
|
} : null;
|
|
2913
2925
|
}
|
|
2914
2926
|
return l > i && l <= a ? {
|
|
2915
2927
|
x: -c.width - d,
|
|
2916
2928
|
y: 0,
|
|
2917
|
-
...
|
|
2929
|
+
...gn
|
|
2918
2930
|
} : l < i && l >= a ? {
|
|
2919
2931
|
x: c.width + d,
|
|
2920
2932
|
y: 0,
|
|
2921
|
-
...
|
|
2933
|
+
...gn
|
|
2922
2934
|
} : {
|
|
2923
2935
|
x: 0,
|
|
2924
2936
|
y: 0,
|
|
2925
|
-
...
|
|
2937
|
+
...gn
|
|
2926
2938
|
};
|
|
2927
2939
|
};
|
|
2928
2940
|
function ra(e, t, n) {
|
|
2929
2941
|
const o = e[t], i = e[t - 1], a = e[t + 1];
|
|
2930
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);
|
|
2931
2943
|
}
|
|
2932
|
-
const
|
|
2944
|
+
const oo = (e) => {
|
|
2933
2945
|
let {
|
|
2934
2946
|
rects: t,
|
|
2935
2947
|
activeIndex: n,
|
|
2936
2948
|
overIndex: o,
|
|
2937
2949
|
index: i
|
|
2938
2950
|
} = e;
|
|
2939
|
-
const a =
|
|
2951
|
+
const a = Yt(t, o, n), l = t[i], c = a[i];
|
|
2940
2952
|
return !c || !l ? null : {
|
|
2941
2953
|
x: c.left - l.left,
|
|
2942
2954
|
y: c.top - l.top,
|
|
2943
2955
|
scaleX: c.width / l.width,
|
|
2944
2956
|
scaleY: c.height / l.height
|
|
2945
2957
|
};
|
|
2946
|
-
},
|
|
2958
|
+
}, hn = {
|
|
2947
2959
|
scaleX: 1,
|
|
2948
2960
|
scaleY: 1
|
|
2949
|
-
},
|
|
2961
|
+
}, Or = (e) => {
|
|
2950
2962
|
var t;
|
|
2951
2963
|
let {
|
|
2952
2964
|
activeIndex: n,
|
|
@@ -2963,48 +2975,48 @@ const ro = (e) => {
|
|
|
2963
2975
|
return u ? {
|
|
2964
2976
|
x: 0,
|
|
2965
2977
|
y: n < l ? u.top + u.height - (c.top + c.height) : u.top - c.top,
|
|
2966
|
-
...
|
|
2978
|
+
...hn
|
|
2967
2979
|
} : null;
|
|
2968
2980
|
}
|
|
2969
2981
|
const d = oa(a, i, n);
|
|
2970
2982
|
return i > n && i <= l ? {
|
|
2971
2983
|
x: 0,
|
|
2972
2984
|
y: -c.height - d,
|
|
2973
|
-
...
|
|
2985
|
+
...hn
|
|
2974
2986
|
} : i < n && i >= l ? {
|
|
2975
2987
|
x: 0,
|
|
2976
2988
|
y: c.height + d,
|
|
2977
|
-
...
|
|
2989
|
+
...hn
|
|
2978
2990
|
} : {
|
|
2979
2991
|
x: 0,
|
|
2980
2992
|
y: 0,
|
|
2981
|
-
...
|
|
2993
|
+
...hn
|
|
2982
2994
|
};
|
|
2983
2995
|
};
|
|
2984
2996
|
function oa(e, t, n) {
|
|
2985
2997
|
const o = e[t], i = e[t - 1], a = e[t + 1];
|
|
2986
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;
|
|
2987
2999
|
}
|
|
2988
|
-
const
|
|
3000
|
+
const io = "Sortable", so = /* @__PURE__ */ q.createContext({
|
|
2989
3001
|
activeIndex: -1,
|
|
2990
|
-
containerId:
|
|
3002
|
+
containerId: io,
|
|
2991
3003
|
disableTransforms: !1,
|
|
2992
3004
|
items: [],
|
|
2993
3005
|
overIndex: -1,
|
|
2994
3006
|
useDragOverlay: !1,
|
|
2995
3007
|
sortedRects: [],
|
|
2996
|
-
strategy:
|
|
3008
|
+
strategy: oo,
|
|
2997
3009
|
disabled: {
|
|
2998
3010
|
draggable: !1,
|
|
2999
3011
|
droppable: !1
|
|
3000
3012
|
}
|
|
3001
3013
|
});
|
|
3002
|
-
function
|
|
3014
|
+
function Tr(e) {
|
|
3003
3015
|
let {
|
|
3004
3016
|
children: t,
|
|
3005
3017
|
id: n,
|
|
3006
3018
|
items: o,
|
|
3007
|
-
strategy: i =
|
|
3019
|
+
strategy: i = oo,
|
|
3008
3020
|
disabled: a = !1
|
|
3009
3021
|
} = e;
|
|
3010
3022
|
const {
|
|
@@ -3013,8 +3025,8 @@ function Or(e) {
|
|
|
3013
3025
|
droppableRects: d,
|
|
3014
3026
|
over: u,
|
|
3015
3027
|
measureDroppableContainers: h
|
|
3016
|
-
} =
|
|
3017
|
-
|
|
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
|
+
qe(() => {
|
|
3018
3030
|
E && A && h(b);
|
|
3019
3031
|
}, [E, b, A, h]), K(() => {
|
|
3020
3032
|
S.current = b;
|
|
@@ -3034,7 +3046,7 @@ function Or(e) {
|
|
|
3034
3046
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3035
3047
|
[v, g, R.draggable, R.droppable, D, b, x, d, w, i]
|
|
3036
3048
|
);
|
|
3037
|
-
return
|
|
3049
|
+
return q.createElement(so.Provider, {
|
|
3038
3050
|
value: T
|
|
3039
3051
|
}, t);
|
|
3040
3052
|
}
|
|
@@ -3045,8 +3057,8 @@ const ia = (e) => {
|
|
|
3045
3057
|
activeIndex: o,
|
|
3046
3058
|
overIndex: i
|
|
3047
3059
|
} = e;
|
|
3048
|
-
return
|
|
3049
|
-
},
|
|
3060
|
+
return Yt(n, o, i).indexOf(t);
|
|
3061
|
+
}, ao = (e) => {
|
|
3050
3062
|
let {
|
|
3051
3063
|
containerId: t,
|
|
3052
3064
|
isSorting: n,
|
|
@@ -3062,8 +3074,8 @@ const ia = (e) => {
|
|
|
3062
3074
|
}, sa = {
|
|
3063
3075
|
duration: 200,
|
|
3064
3076
|
easing: "ease"
|
|
3065
|
-
},
|
|
3066
|
-
property:
|
|
3077
|
+
}, lo = "transform", aa = /* @__PURE__ */ yt.Transition.toString({
|
|
3078
|
+
property: lo,
|
|
3067
3079
|
duration: 0,
|
|
3068
3080
|
easing: "linear"
|
|
3069
3081
|
}), la = {
|
|
@@ -3076,12 +3088,12 @@ function ca(e) {
|
|
|
3076
3088
|
node: o,
|
|
3077
3089
|
rect: i
|
|
3078
3090
|
} = e;
|
|
3079
|
-
const [a, l] =
|
|
3080
|
-
return
|
|
3091
|
+
const [a, l] = ne(null), c = X(n);
|
|
3092
|
+
return qe(() => {
|
|
3081
3093
|
if (!t && n !== c.current && o.current) {
|
|
3082
3094
|
const d = i.current;
|
|
3083
3095
|
if (d) {
|
|
3084
|
-
const u =
|
|
3096
|
+
const u = Kt(o.current, {
|
|
3085
3097
|
ignoreTransform: !0
|
|
3086
3098
|
}), h = {
|
|
3087
3099
|
x: d.left - u.left,
|
|
@@ -3097,9 +3109,9 @@ function ca(e) {
|
|
|
3097
3109
|
a && l(null);
|
|
3098
3110
|
}, [a]), a;
|
|
3099
3111
|
}
|
|
3100
|
-
function
|
|
3112
|
+
function co(e) {
|
|
3101
3113
|
let {
|
|
3102
|
-
animateLayoutChanges: t =
|
|
3114
|
+
animateLayoutChanges: t = ao,
|
|
3103
3115
|
attributes: n,
|
|
3104
3116
|
disabled: o,
|
|
3105
3117
|
data: i,
|
|
@@ -3119,7 +3131,7 @@ function lo(e) {
|
|
|
3119
3131
|
overIndex: x,
|
|
3120
3132
|
useDragOverlay: S,
|
|
3121
3133
|
strategy: E
|
|
3122
|
-
} =
|
|
3134
|
+
} = bt(so), D = ua(o, b), R = h.indexOf(l), T = j(() => ({
|
|
3123
3135
|
sortable: {
|
|
3124
3136
|
containerId: g,
|
|
3125
3137
|
index: R,
|
|
@@ -3143,13 +3155,13 @@ function lo(e) {
|
|
|
3143
3155
|
active: B,
|
|
3144
3156
|
activatorEvent: re,
|
|
3145
3157
|
activeNodeRect: Q,
|
|
3146
|
-
attributes:
|
|
3158
|
+
attributes: Ae,
|
|
3147
3159
|
setNodeRef: Xe,
|
|
3148
3160
|
listeners: F,
|
|
3149
3161
|
isDragging: J,
|
|
3150
|
-
over:
|
|
3151
|
-
setActivatorNodeRef:
|
|
3152
|
-
transform:
|
|
3162
|
+
over: Pe,
|
|
3163
|
+
setActivatorNodeRef: Ne,
|
|
3164
|
+
transform: ue
|
|
3153
3165
|
} = Bs({
|
|
3154
3166
|
id: l,
|
|
3155
3167
|
data: T,
|
|
@@ -3158,23 +3170,23 @@ function lo(e) {
|
|
|
3158
3170
|
...n
|
|
3159
3171
|
},
|
|
3160
3172
|
disabled: D.draggable
|
|
3161
|
-
}),
|
|
3173
|
+
}), $e = Si(U, Xe), V = !!B, we = V && !A && fn(w) && fn(x), Ue = !S && J, et = Ue && we ? ue : null, tt = we ? et ?? (c ?? E)({
|
|
3162
3174
|
rects: v,
|
|
3163
3175
|
activeNodeRect: Q,
|
|
3164
3176
|
activeIndex: w,
|
|
3165
3177
|
overIndex: x,
|
|
3166
3178
|
index: R
|
|
3167
|
-
}) : null,
|
|
3179
|
+
}) : null, Be = fn(w) && fn(x) ? a({
|
|
3168
3180
|
id: l,
|
|
3169
3181
|
items: h,
|
|
3170
3182
|
activeIndex: w,
|
|
3171
3183
|
overIndex: x
|
|
3172
|
-
}) : R,
|
|
3173
|
-
activeId:
|
|
3184
|
+
}) : R, de = B == null ? void 0 : B.id, $ = X({
|
|
3185
|
+
activeId: de,
|
|
3174
3186
|
items: h,
|
|
3175
|
-
newIndex:
|
|
3187
|
+
newIndex: Be,
|
|
3176
3188
|
containerId: g
|
|
3177
|
-
}),
|
|
3189
|
+
}), nt = h !== $.current.items, Ee = t({
|
|
3178
3190
|
active: B,
|
|
3179
3191
|
containerId: g,
|
|
3180
3192
|
isDragging: J,
|
|
@@ -3188,32 +3200,32 @@ function lo(e) {
|
|
|
3188
3200
|
transition: u,
|
|
3189
3201
|
wasDragging: $.current.activeId != null
|
|
3190
3202
|
}), Ve = ca({
|
|
3191
|
-
disabled: !
|
|
3203
|
+
disabled: !Ee,
|
|
3192
3204
|
index: R,
|
|
3193
3205
|
node: M,
|
|
3194
3206
|
rect: O
|
|
3195
3207
|
});
|
|
3196
3208
|
return K(() => {
|
|
3197
|
-
V && $.current.newIndex !==
|
|
3198
|
-
}, [V,
|
|
3199
|
-
if (
|
|
3209
|
+
V && $.current.newIndex !== Be && ($.current.newIndex = Be), g !== $.current.containerId && ($.current.containerId = g), h !== $.current.items && ($.current.items = h);
|
|
3210
|
+
}, [V, Be, g, h]), K(() => {
|
|
3211
|
+
if (de === $.current.activeId)
|
|
3200
3212
|
return;
|
|
3201
|
-
if (
|
|
3202
|
-
$.current.activeId =
|
|
3213
|
+
if (de && !$.current.activeId) {
|
|
3214
|
+
$.current.activeId = de;
|
|
3203
3215
|
return;
|
|
3204
3216
|
}
|
|
3205
3217
|
const Qe = setTimeout(() => {
|
|
3206
|
-
$.current.activeId =
|
|
3218
|
+
$.current.activeId = de;
|
|
3207
3219
|
}, 50);
|
|
3208
3220
|
return () => clearTimeout(Qe);
|
|
3209
|
-
}, [
|
|
3221
|
+
}, [de]), {
|
|
3210
3222
|
active: B,
|
|
3211
3223
|
activeIndex: w,
|
|
3212
|
-
attributes:
|
|
3224
|
+
attributes: Ae,
|
|
3213
3225
|
data: T,
|
|
3214
3226
|
rect: O,
|
|
3215
3227
|
index: R,
|
|
3216
|
-
newIndex:
|
|
3228
|
+
newIndex: Be,
|
|
3217
3229
|
items: h,
|
|
3218
3230
|
isOver: H,
|
|
3219
3231
|
isSorting: V,
|
|
@@ -3221,25 +3233,25 @@ function lo(e) {
|
|
|
3221
3233
|
listeners: F,
|
|
3222
3234
|
node: M,
|
|
3223
3235
|
overIndex: x,
|
|
3224
|
-
over:
|
|
3225
|
-
setNodeRef:
|
|
3226
|
-
setActivatorNodeRef:
|
|
3236
|
+
over: Pe,
|
|
3237
|
+
setNodeRef: $e,
|
|
3238
|
+
setActivatorNodeRef: Ne,
|
|
3227
3239
|
setDroppableNodeRef: U,
|
|
3228
3240
|
setDraggableNodeRef: Xe,
|
|
3229
|
-
transform: Ve ??
|
|
3241
|
+
transform: Ve ?? tt,
|
|
3230
3242
|
transition: P()
|
|
3231
3243
|
};
|
|
3232
3244
|
function P() {
|
|
3233
3245
|
if (
|
|
3234
3246
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3235
3247
|
Ve || // Or to prevent items jumping to back to their "new" position when items change
|
|
3236
|
-
|
|
3248
|
+
nt && $.current.newIndex === R
|
|
3237
3249
|
)
|
|
3238
3250
|
return aa;
|
|
3239
|
-
if (!(
|
|
3240
|
-
return
|
|
3251
|
+
if (!(Ue && !En(re) || !u) && (V || Ee))
|
|
3252
|
+
return yt.Transition.toString({
|
|
3241
3253
|
...u,
|
|
3242
|
-
property:
|
|
3254
|
+
property: lo
|
|
3243
3255
|
});
|
|
3244
3256
|
}
|
|
3245
3257
|
}
|
|
@@ -3256,7 +3268,7 @@ function ua(e, t) {
|
|
|
3256
3268
|
}
|
|
3257
3269
|
L.Down, L.Right, L.Up, L.Left;
|
|
3258
3270
|
const da = (e) => e;
|
|
3259
|
-
function
|
|
3271
|
+
function Nr(e, t = da) {
|
|
3260
3272
|
return [...new Array(e)].map((n, o) => t(o));
|
|
3261
3273
|
}
|
|
3262
3274
|
const fa = [
|
|
@@ -3320,7 +3332,7 @@ const fa = [
|
|
|
3320
3332
|
};
|
|
3321
3333
|
}
|
|
3322
3334
|
}
|
|
3323
|
-
}, ha = "_Wrapper_37o6x_33", pa = "_fadeIn_37o6x_41", va = "_dragOverlay_37o6x_44", ba = "_Item_37o6x_53", ya = "_withHandle_37o6x_79", ma = "_dragging_37o6x_83", wa = "_disabled_37o6x_91", xa = "_pop_37o6x_1", Ca = "_color_37o6x_110", Da = "_Remove_37o6x_123", Sa = "_Actions_37o6x_129",
|
|
3335
|
+
}, ha = "_Wrapper_37o6x_33", pa = "_fadeIn_37o6x_41", va = "_dragOverlay_37o6x_44", ba = "_Item_37o6x_53", ya = "_withHandle_37o6x_79", ma = "_dragging_37o6x_83", wa = "_disabled_37o6x_91", xa = "_pop_37o6x_1", Ca = "_color_37o6x_110", Da = "_Remove_37o6x_123", Sa = "_Actions_37o6x_129", We = {
|
|
3324
3336
|
Wrapper: ha,
|
|
3325
3337
|
fadeIn: pa,
|
|
3326
3338
|
dragOverlay: va,
|
|
@@ -3332,19 +3344,19 @@ const fa = [
|
|
|
3332
3344
|
color: Ca,
|
|
3333
3345
|
Remove: Da,
|
|
3334
3346
|
Actions: Sa
|
|
3335
|
-
}, Ra =
|
|
3347
|
+
}, Ra = Bt.div`
|
|
3336
3348
|
font-family: ${(e) => {
|
|
3337
3349
|
var t, n;
|
|
3338
3350
|
return (n = (t = e.theme) == null ? void 0 : t.typography) == null ? void 0 : n.fontFamily;
|
|
3339
3351
|
}};
|
|
3340
|
-
background-color: ${(e) =>
|
|
3352
|
+
background-color: ${(e) => Pt(
|
|
3341
3353
|
e.theme,
|
|
3342
3354
|
"KanbanCard",
|
|
3343
3355
|
e.color ? "primary" : e.color,
|
|
3344
3356
|
"enabled",
|
|
3345
3357
|
"background"
|
|
3346
3358
|
)};
|
|
3347
|
-
color: ${(e) =>
|
|
3359
|
+
color: ${(e) => Pt(
|
|
3348
3360
|
e.theme,
|
|
3349
3361
|
"KanbanCard",
|
|
3350
3362
|
e.color ? "primary" : e.color,
|
|
@@ -3354,8 +3366,8 @@ const fa = [
|
|
|
3354
3366
|
&:hover .Actions > * {
|
|
3355
3367
|
opacity: 1 !important;
|
|
3356
3368
|
}
|
|
3357
|
-
`,
|
|
3358
|
-
|
|
3369
|
+
`, jn = Mr(
|
|
3370
|
+
Sn(
|
|
3359
3371
|
({
|
|
3360
3372
|
cardProps: e,
|
|
3361
3373
|
color: t,
|
|
@@ -3398,14 +3410,14 @@ const fa = [
|
|
|
3398
3410
|
transform: v,
|
|
3399
3411
|
transition: A,
|
|
3400
3412
|
value: x
|
|
3401
|
-
}) : /* @__PURE__ */
|
|
3413
|
+
}) : /* @__PURE__ */ le(
|
|
3402
3414
|
"li",
|
|
3403
3415
|
{
|
|
3404
3416
|
className: pr(
|
|
3405
|
-
|
|
3406
|
-
a &&
|
|
3407
|
-
b &&
|
|
3408
|
-
n &&
|
|
3417
|
+
We.Wrapper,
|
|
3418
|
+
a && We.fadeIn,
|
|
3419
|
+
b && We.sorting,
|
|
3420
|
+
n && We.dragOverlay
|
|
3409
3421
|
),
|
|
3410
3422
|
style: {
|
|
3411
3423
|
...S,
|
|
@@ -3418,18 +3430,18 @@ const fa = [
|
|
|
3418
3430
|
"--color": t
|
|
3419
3431
|
},
|
|
3420
3432
|
ref: _,
|
|
3421
|
-
children: /* @__PURE__ */
|
|
3433
|
+
children: /* @__PURE__ */ vn(
|
|
3422
3434
|
Ra,
|
|
3423
3435
|
{
|
|
3424
3436
|
theme: O,
|
|
3425
3437
|
color: t,
|
|
3426
3438
|
className: pr(
|
|
3427
|
-
|
|
3428
|
-
o &&
|
|
3429
|
-
l &&
|
|
3430
|
-
n &&
|
|
3431
|
-
i &&
|
|
3432
|
-
t &&
|
|
3439
|
+
We.Item,
|
|
3440
|
+
o && We.dragging,
|
|
3441
|
+
l && We.withHandle,
|
|
3442
|
+
n && We.dragOverlay,
|
|
3443
|
+
i && We.disabled,
|
|
3444
|
+
t && We.color
|
|
3433
3445
|
) + " " + E,
|
|
3434
3446
|
style: e == null ? void 0 : e.style,
|
|
3435
3447
|
"data-cypress": "draggable-item",
|
|
@@ -3438,7 +3450,7 @@ const fa = [
|
|
|
3438
3450
|
tabIndex: l ? void 0 : 0,
|
|
3439
3451
|
children: [
|
|
3440
3452
|
R,
|
|
3441
|
-
/* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ le("span", { className: We.Actions })
|
|
3442
3454
|
]
|
|
3443
3455
|
}
|
|
3444
3456
|
)
|
|
@@ -3446,7 +3458,7 @@ const fa = [
|
|
|
3446
3458
|
);
|
|
3447
3459
|
}
|
|
3448
3460
|
)
|
|
3449
|
-
), Aa =
|
|
3461
|
+
), Aa = Bt.div`
|
|
3450
3462
|
display: flex;
|
|
3451
3463
|
flex: 1;
|
|
3452
3464
|
flex-direction: column;
|
|
@@ -3487,14 +3499,14 @@ const fa = [
|
|
|
3487
3499
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
|
|
3488
3500
|
}
|
|
3489
3501
|
|
|
3490
|
-
background-color: ${(e) =>
|
|
3502
|
+
background-color: ${(e) => Pt(
|
|
3491
3503
|
e.theme,
|
|
3492
3504
|
"Kanban",
|
|
3493
3505
|
e.color,
|
|
3494
3506
|
"enabled",
|
|
3495
3507
|
"background"
|
|
3496
3508
|
)};
|
|
3497
|
-
`, Ea =
|
|
3509
|
+
`, Ea = Bt.div`
|
|
3498
3510
|
display: flex;
|
|
3499
3511
|
padding: 5px 20px;
|
|
3500
3512
|
padding-left: 8px;
|
|
@@ -3504,14 +3516,14 @@ const fa = [
|
|
|
3504
3516
|
border-top-left-radius: 5px;
|
|
3505
3517
|
border-top-right-radius: 5px;
|
|
3506
3518
|
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
3507
|
-
background-color: ${(e) =>
|
|
3519
|
+
background-color: ${(e) => Pt(
|
|
3508
3520
|
e.theme,
|
|
3509
3521
|
"KanbanHeader",
|
|
3510
3522
|
e.color,
|
|
3511
3523
|
"enabled",
|
|
3512
3524
|
"background"
|
|
3513
3525
|
)};
|
|
3514
|
-
color: ${(e) =>
|
|
3526
|
+
color: ${(e) => Pt(
|
|
3515
3527
|
e.theme,
|
|
3516
3528
|
"KanbanHeader",
|
|
3517
3529
|
e.color ? "primary" : e.color,
|
|
@@ -3521,7 +3533,7 @@ const fa = [
|
|
|
3521
3533
|
&:hover .Actions > * {
|
|
3522
3534
|
opacity: 1 !important;
|
|
3523
3535
|
}
|
|
3524
|
-
`, _a =
|
|
3536
|
+
`, _a = Bt.div`
|
|
3525
3537
|
display: flex;
|
|
3526
3538
|
|
|
3527
3539
|
& > *:first-of-type:not(:last-of-type) {
|
|
@@ -3531,7 +3543,7 @@ const fa = [
|
|
|
3531
3543
|
& > *:first-of-type:not(:last-of-type):focus-visible {
|
|
3532
3544
|
opacity: 1;
|
|
3533
3545
|
}
|
|
3534
|
-
`,
|
|
3546
|
+
`, uo = Sn((e, t) => {
|
|
3535
3547
|
const {
|
|
3536
3548
|
children: n,
|
|
3537
3549
|
containerId: o,
|
|
@@ -3553,7 +3565,7 @@ const fa = [
|
|
|
3553
3565
|
color: D,
|
|
3554
3566
|
...R
|
|
3555
3567
|
} = e, T = kn();
|
|
3556
|
-
return /* @__PURE__ */
|
|
3568
|
+
return /* @__PURE__ */ vn(
|
|
3557
3569
|
Aa,
|
|
3558
3570
|
{
|
|
3559
3571
|
...R,
|
|
@@ -3573,28 +3585,28 @@ const fa = [
|
|
|
3573
3585
|
color: D,
|
|
3574
3586
|
theme: T,
|
|
3575
3587
|
children: [
|
|
3576
|
-
g ? /* @__PURE__ */
|
|
3577
|
-
/* @__PURE__ */
|
|
3588
|
+
g ? /* @__PURE__ */ vn(Ea, { theme: T, color: D, children: [
|
|
3589
|
+
/* @__PURE__ */ le(_a, { className: "Actions", children: /* @__PURE__ */ le(bi, { ...l }) }),
|
|
3578
3590
|
g
|
|
3579
3591
|
] }) : null,
|
|
3580
|
-
/* @__PURE__ */
|
|
3592
|
+
/* @__PURE__ */ le("ul", { children: n }),
|
|
3581
3593
|
i(o)
|
|
3582
3594
|
]
|
|
3583
3595
|
}
|
|
3584
3596
|
);
|
|
3585
3597
|
});
|
|
3586
|
-
var
|
|
3587
|
-
|
|
3598
|
+
var Dn = { exports: {} };
|
|
3599
|
+
Dn.exports;
|
|
3588
3600
|
(function(e, t) {
|
|
3589
|
-
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]",
|
|
3590
|
-
P[Q] = P[
|
|
3591
|
-
var Qe = parseInt,
|
|
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
|
+
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, G = function() {
|
|
3592
3604
|
try {
|
|
3593
3605
|
return N && N.binding("util");
|
|
3594
3606
|
} catch {
|
|
3595
3607
|
}
|
|
3596
|
-
}(),
|
|
3597
|
-
function
|
|
3608
|
+
}(), Y = G && G.isTypedArray;
|
|
3609
|
+
function fe(r, s) {
|
|
3598
3610
|
for (var f = -1, y = r ? r.length : 0; ++f < y; )
|
|
3599
3611
|
if (s(r[f], f, r))
|
|
3600
3612
|
return !0;
|
|
@@ -3611,17 +3623,17 @@ Cn.exports;
|
|
|
3611
3623
|
return s == null ? void 0 : s[r];
|
|
3612
3624
|
};
|
|
3613
3625
|
}
|
|
3614
|
-
function
|
|
3626
|
+
function he(r, s) {
|
|
3615
3627
|
for (var f = -1, y = Array(r); ++f < r; )
|
|
3616
3628
|
y[f] = s(f);
|
|
3617
3629
|
return y;
|
|
3618
3630
|
}
|
|
3619
|
-
function
|
|
3631
|
+
function be(r) {
|
|
3620
3632
|
return function(s) {
|
|
3621
3633
|
return r(s);
|
|
3622
3634
|
};
|
|
3623
3635
|
}
|
|
3624
|
-
function
|
|
3636
|
+
function rt(r, s) {
|
|
3625
3637
|
return r == null ? void 0 : r[s];
|
|
3626
3638
|
}
|
|
3627
3639
|
function te(r) {
|
|
@@ -3633,13 +3645,13 @@ Cn.exports;
|
|
|
3633
3645
|
}
|
|
3634
3646
|
return s;
|
|
3635
3647
|
}
|
|
3636
|
-
function
|
|
3648
|
+
function Me(r) {
|
|
3637
3649
|
var s = -1, f = Array(r.size);
|
|
3638
3650
|
return r.forEach(function(y, I) {
|
|
3639
3651
|
f[++s] = [I, y];
|
|
3640
3652
|
}), f;
|
|
3641
3653
|
}
|
|
3642
|
-
function
|
|
3654
|
+
function wt(r, s) {
|
|
3643
3655
|
return function(f) {
|
|
3644
3656
|
return r(s(f));
|
|
3645
3657
|
};
|
|
@@ -3650,13 +3662,13 @@ Cn.exports;
|
|
|
3650
3662
|
f[++s] = y;
|
|
3651
3663
|
}), f;
|
|
3652
3664
|
}
|
|
3653
|
-
var
|
|
3654
|
-
var r = /[^.]+$/.exec(
|
|
3665
|
+
var se = Array.prototype, Le = Function.prototype, ot = Object.prototype, _t = _e["__core-js_shared__"], Qt = function() {
|
|
3666
|
+
var r = /[^.]+$/.exec(_t && _t.keys && _t.keys.IE_PROTO || "");
|
|
3655
3667
|
return r ? "Symbol(src)_1." + r : "";
|
|
3656
|
-
}(),
|
|
3657
|
-
"^" +
|
|
3658
|
-
),
|
|
3659
|
-
function
|
|
3668
|
+
}(), Zt = Le.toString, Ye = ot.hasOwnProperty, W = ot.toString, xe = RegExp(
|
|
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), 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
|
+
function Dt(r) {
|
|
3660
3672
|
var s = -1, f = r ? r.length : 0;
|
|
3661
3673
|
for (this.clear(); ++s < f; ) {
|
|
3662
3674
|
var y = r[s];
|
|
@@ -3664,28 +3676,28 @@ Cn.exports;
|
|
|
3664
3676
|
}
|
|
3665
3677
|
}
|
|
3666
3678
|
function ho() {
|
|
3667
|
-
this.__data__ =
|
|
3679
|
+
this.__data__ = gt ? gt(null) : {};
|
|
3668
3680
|
}
|
|
3669
3681
|
function po(r) {
|
|
3670
3682
|
return this.has(r) && delete this.__data__[r];
|
|
3671
3683
|
}
|
|
3672
3684
|
function vo(r) {
|
|
3673
3685
|
var s = this.__data__;
|
|
3674
|
-
if (
|
|
3686
|
+
if (gt) {
|
|
3675
3687
|
var f = s[r];
|
|
3676
3688
|
return f === i ? void 0 : f;
|
|
3677
3689
|
}
|
|
3678
|
-
return
|
|
3690
|
+
return Ye.call(s, r) ? s[r] : void 0;
|
|
3679
3691
|
}
|
|
3680
3692
|
function bo(r) {
|
|
3681
3693
|
var s = this.__data__;
|
|
3682
|
-
return
|
|
3694
|
+
return gt ? s[r] !== void 0 : Ye.call(s, r);
|
|
3683
3695
|
}
|
|
3684
3696
|
function yo(r, s) {
|
|
3685
3697
|
var f = this.__data__;
|
|
3686
|
-
return f[r] =
|
|
3698
|
+
return f[r] = gt && s === void 0 ? i : s, this;
|
|
3687
3699
|
}
|
|
3688
|
-
|
|
3700
|
+
Dt.prototype.clear = ho, Dt.prototype.delete = po, Dt.prototype.get = vo, Dt.prototype.has = bo, Dt.prototype.set = yo;
|
|
3689
3701
|
function st(r) {
|
|
3690
3702
|
var s = -1, f = r ? r.length : 0;
|
|
3691
3703
|
for (this.clear(); ++s < f; ) {
|
|
@@ -3697,21 +3709,21 @@ Cn.exports;
|
|
|
3697
3709
|
this.__data__ = [];
|
|
3698
3710
|
}
|
|
3699
3711
|
function wo(r) {
|
|
3700
|
-
var s = this.__data__, f =
|
|
3712
|
+
var s = this.__data__, f = nn(s, r);
|
|
3701
3713
|
if (f < 0)
|
|
3702
3714
|
return !1;
|
|
3703
3715
|
var y = s.length - 1;
|
|
3704
|
-
return f == y ? s.pop() :
|
|
3716
|
+
return f == y ? s.pop() : Ce.call(s, f, 1), !0;
|
|
3705
3717
|
}
|
|
3706
3718
|
function xo(r) {
|
|
3707
|
-
var s = this.__data__, f =
|
|
3719
|
+
var s = this.__data__, f = nn(s, r);
|
|
3708
3720
|
return f < 0 ? void 0 : s[f][1];
|
|
3709
3721
|
}
|
|
3710
3722
|
function Co(r) {
|
|
3711
|
-
return
|
|
3723
|
+
return nn(this.__data__, r) > -1;
|
|
3712
3724
|
}
|
|
3713
3725
|
function Do(r, s) {
|
|
3714
|
-
var f = this.__data__, y =
|
|
3726
|
+
var f = this.__data__, y = nn(f, r);
|
|
3715
3727
|
return y < 0 ? f.push([r, s]) : f[y][1] = s, this;
|
|
3716
3728
|
}
|
|
3717
3729
|
st.prototype.clear = mo, st.prototype.delete = wo, st.prototype.get = xo, st.prototype.has = Co, st.prototype.set = Do;
|
|
@@ -3724,25 +3736,25 @@ Cn.exports;
|
|
|
3724
3736
|
}
|
|
3725
3737
|
function So() {
|
|
3726
3738
|
this.__data__ = {
|
|
3727
|
-
hash: new
|
|
3739
|
+
hash: new Dt(),
|
|
3728
3740
|
map: new (Ge || st)(),
|
|
3729
|
-
string: new
|
|
3741
|
+
string: new Dt()
|
|
3730
3742
|
};
|
|
3731
3743
|
}
|
|
3732
3744
|
function Ro(r) {
|
|
3733
|
-
return
|
|
3745
|
+
return rn(this, r).delete(r);
|
|
3734
3746
|
}
|
|
3735
3747
|
function Ao(r) {
|
|
3736
|
-
return
|
|
3748
|
+
return rn(this, r).get(r);
|
|
3737
3749
|
}
|
|
3738
3750
|
function Eo(r) {
|
|
3739
|
-
return
|
|
3751
|
+
return rn(this, r).has(r);
|
|
3740
3752
|
}
|
|
3741
3753
|
function _o(r, s) {
|
|
3742
|
-
return
|
|
3754
|
+
return rn(this, r).set(r, s), this;
|
|
3743
3755
|
}
|
|
3744
3756
|
at.prototype.clear = So, at.prototype.delete = Ro, at.prototype.get = Ao, at.prototype.has = Eo, at.prototype.set = _o;
|
|
3745
|
-
function
|
|
3757
|
+
function tn(r) {
|
|
3746
3758
|
var s = -1, f = r ? r.length : 0;
|
|
3747
3759
|
for (this.__data__ = new at(); ++s < f; )
|
|
3748
3760
|
this.add(r[s]);
|
|
@@ -3753,7 +3765,7 @@ Cn.exports;
|
|
|
3753
3765
|
function Oo(r) {
|
|
3754
3766
|
return this.__data__.has(r);
|
|
3755
3767
|
}
|
|
3756
|
-
|
|
3768
|
+
tn.prototype.add = tn.prototype.push = Io, tn.prototype.has = Oo;
|
|
3757
3769
|
function lt(r) {
|
|
3758
3770
|
this.__data__ = new st(r);
|
|
3759
3771
|
}
|
|
@@ -3781,46 +3793,46 @@ Cn.exports;
|
|
|
3781
3793
|
}
|
|
3782
3794
|
lt.prototype.clear = To, lt.prototype.delete = No, lt.prototype.get = Mo, lt.prototype.has = Lo, lt.prototype.set = Po;
|
|
3783
3795
|
function $o(r, s) {
|
|
3784
|
-
var f =
|
|
3796
|
+
var f = Rt(r) || dr(r) ? he(r.length, String) : [], y = f.length, I = !!y;
|
|
3785
3797
|
for (var C in r)
|
|
3786
|
-
|
|
3798
|
+
Ye.call(r, C) && !(I && (C == "length" || ar(C, y))) && f.push(C);
|
|
3787
3799
|
return f;
|
|
3788
3800
|
}
|
|
3789
|
-
function
|
|
3801
|
+
function nn(r, s) {
|
|
3790
3802
|
for (var f = r.length; f--; )
|
|
3791
3803
|
if (ur(r[f][0], s))
|
|
3792
3804
|
return f;
|
|
3793
3805
|
return -1;
|
|
3794
3806
|
}
|
|
3795
3807
|
function or(r, s) {
|
|
3796
|
-
s =
|
|
3808
|
+
s = on(s, r) ? [s] : ir(s);
|
|
3797
3809
|
for (var f = 0, y = s.length; r != null && f < y; )
|
|
3798
|
-
r = r[
|
|
3810
|
+
r = r[sn(s[f++])];
|
|
3799
3811
|
return f && f == y ? r : void 0;
|
|
3800
3812
|
}
|
|
3801
3813
|
function Bo(r) {
|
|
3802
|
-
return
|
|
3814
|
+
return W.call(r);
|
|
3803
3815
|
}
|
|
3804
3816
|
function zo(r, s) {
|
|
3805
3817
|
return r != null && s in Object(r);
|
|
3806
3818
|
}
|
|
3807
|
-
function
|
|
3808
|
-
return r === s ? !0 : r == null || s == null || !
|
|
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);
|
|
3809
3821
|
}
|
|
3810
3822
|
function Fo(r, s, f, y, I, C) {
|
|
3811
|
-
var z =
|
|
3812
|
-
z || (
|
|
3813
|
-
var
|
|
3814
|
-
if (
|
|
3815
|
-
return C || (C = new lt()), z || ii(r) ? sr(r, s, f, y, I, C) : qo(r, s,
|
|
3823
|
+
var z = Rt(r), pe = Rt(s), ae = w, me = w;
|
|
3824
|
+
z || (ae = ht(r), ae = ae == g ? R : ae), pe || (me = ht(s), me = me == g ? R : me);
|
|
3825
|
+
var Oe = ae == R && !te(r), Te = me == R && !te(s), Se = ae == me;
|
|
3826
|
+
if (Se && !Oe)
|
|
3827
|
+
return C || (C = new lt()), z || ii(r) ? sr(r, s, f, y, I, C) : qo(r, s, ae, f, y, I, C);
|
|
3816
3828
|
if (!(I & l)) {
|
|
3817
|
-
var Fe =
|
|
3829
|
+
var Fe = Oe && Ye.call(r, "__wrapped__"), Ke = Te && Ye.call(s, "__wrapped__");
|
|
3818
3830
|
if (Fe || Ke) {
|
|
3819
|
-
var
|
|
3820
|
-
return C || (C = new lt()), f(
|
|
3831
|
+
var pt = Fe ? r.value() : r, ct = Ke ? s.value() : s;
|
|
3832
|
+
return C || (C = new lt()), f(pt, ct, y, I, C);
|
|
3821
3833
|
}
|
|
3822
3834
|
}
|
|
3823
|
-
return
|
|
3835
|
+
return Se ? (C || (C = new lt()), Jo(r, s, f, y, I, C)) : !1;
|
|
3824
3836
|
}
|
|
3825
3837
|
function Ko(r, s, f, y) {
|
|
3826
3838
|
var I = f.length, C = I;
|
|
@@ -3833,36 +3845,36 @@ Cn.exports;
|
|
|
3833
3845
|
}
|
|
3834
3846
|
for (; ++I < C; ) {
|
|
3835
3847
|
z = f[I];
|
|
3836
|
-
var
|
|
3848
|
+
var pe = z[0], ae = r[pe], me = z[1];
|
|
3837
3849
|
if (z[2]) {
|
|
3838
|
-
if (
|
|
3850
|
+
if (ae === void 0 && !(pe in r))
|
|
3839
3851
|
return !1;
|
|
3840
3852
|
} else {
|
|
3841
|
-
var
|
|
3842
|
-
if (!(
|
|
3853
|
+
var Oe = new lt(), Te;
|
|
3854
|
+
if (!(Te === void 0 ? Tn(me, ae, y, a | l, Oe) : Te))
|
|
3843
3855
|
return !1;
|
|
3844
3856
|
}
|
|
3845
3857
|
}
|
|
3846
3858
|
return !0;
|
|
3847
3859
|
}
|
|
3848
3860
|
function Ho(r) {
|
|
3849
|
-
if (!
|
|
3861
|
+
if (!Ot(r) || ei(r))
|
|
3850
3862
|
return !1;
|
|
3851
|
-
var s = gr(r) || te(r) ? xe :
|
|
3852
|
-
return s.test(
|
|
3853
|
-
}
|
|
3854
|
-
function Uo(r) {
|
|
3855
|
-
return sn(r) && Tn(r.length) && !!P[ne.call(r)];
|
|
3863
|
+
var s = gr(r) || te(r) ? xe : nt;
|
|
3864
|
+
return s.test(St(r));
|
|
3856
3865
|
}
|
|
3857
3866
|
function Xo(r) {
|
|
3858
|
-
return
|
|
3867
|
+
return an(r) && Mn(r.length) && !!P[W.call(r)];
|
|
3868
|
+
}
|
|
3869
|
+
function Uo(r) {
|
|
3870
|
+
return typeof r == "function" ? r : r == null ? fi : typeof r == "object" ? Rt(r) ? ko(r[0], r[1]) : Yo(r) : gi(r);
|
|
3859
3871
|
}
|
|
3860
3872
|
function jo(r) {
|
|
3861
3873
|
if (!ti(r))
|
|
3862
|
-
return
|
|
3874
|
+
return ze(r);
|
|
3863
3875
|
var s = [];
|
|
3864
3876
|
for (var f in Object(r))
|
|
3865
|
-
|
|
3877
|
+
Ye.call(r, f) && f != "constructor" && s.push(f);
|
|
3866
3878
|
return s;
|
|
3867
3879
|
}
|
|
3868
3880
|
function Yo(r) {
|
|
@@ -3872,9 +3884,9 @@ Cn.exports;
|
|
|
3872
3884
|
};
|
|
3873
3885
|
}
|
|
3874
3886
|
function ko(r, s) {
|
|
3875
|
-
return
|
|
3887
|
+
return on(r) && lr(s) ? cr(sn(r), s) : function(f) {
|
|
3876
3888
|
var y = ui(f, r);
|
|
3877
|
-
return y === void 0 && y === s ? di(f, r) :
|
|
3889
|
+
return y === void 0 && y === s ? di(f, r) : Tn(s, y, void 0, a | l);
|
|
3878
3890
|
};
|
|
3879
3891
|
}
|
|
3880
3892
|
function Go(r) {
|
|
@@ -3885,46 +3897,46 @@ Cn.exports;
|
|
|
3885
3897
|
function Wo(r) {
|
|
3886
3898
|
if (typeof r == "string")
|
|
3887
3899
|
return r;
|
|
3888
|
-
if (
|
|
3900
|
+
if (ln(r))
|
|
3889
3901
|
return rr ? rr.call(r) : "";
|
|
3890
3902
|
var s = r + "";
|
|
3891
3903
|
return s == "0" && 1 / r == -c ? "-0" : s;
|
|
3892
3904
|
}
|
|
3893
3905
|
function ir(r) {
|
|
3894
|
-
return
|
|
3906
|
+
return Rt(r) ? r : ni(r);
|
|
3895
3907
|
}
|
|
3896
3908
|
function sr(r, s, f, y, I, C) {
|
|
3897
|
-
var z = I & l,
|
|
3898
|
-
if (
|
|
3909
|
+
var z = I & l, pe = r.length, ae = s.length;
|
|
3910
|
+
if (pe != ae && !(z && ae > pe))
|
|
3899
3911
|
return !1;
|
|
3900
3912
|
var me = C.get(r);
|
|
3901
3913
|
if (me && C.get(s))
|
|
3902
3914
|
return me == s;
|
|
3903
|
-
var
|
|
3904
|
-
for (C.set(r, s), C.set(s, r); ++
|
|
3905
|
-
var Fe = r[
|
|
3915
|
+
var Oe = -1, Te = !0, Se = I & a ? new tn() : void 0;
|
|
3916
|
+
for (C.set(r, s), C.set(s, r); ++Oe < pe; ) {
|
|
3917
|
+
var Fe = r[Oe], Ke = s[Oe];
|
|
3906
3918
|
if (y)
|
|
3907
|
-
var
|
|
3908
|
-
if (
|
|
3909
|
-
if (
|
|
3919
|
+
var pt = z ? y(Ke, Fe, Oe, s, r, C) : y(Fe, Ke, Oe, r, s, C);
|
|
3920
|
+
if (pt !== void 0) {
|
|
3921
|
+
if (pt)
|
|
3910
3922
|
continue;
|
|
3911
|
-
|
|
3923
|
+
Te = !1;
|
|
3912
3924
|
break;
|
|
3913
3925
|
}
|
|
3914
|
-
if (
|
|
3915
|
-
if (!
|
|
3916
|
-
if (!
|
|
3917
|
-
return
|
|
3926
|
+
if (Se) {
|
|
3927
|
+
if (!fe(s, function(ct, At) {
|
|
3928
|
+
if (!Se.has(At) && (Fe === ct || f(Fe, ct, y, I, C)))
|
|
3929
|
+
return Se.add(At);
|
|
3918
3930
|
})) {
|
|
3919
|
-
|
|
3931
|
+
Te = !1;
|
|
3920
3932
|
break;
|
|
3921
3933
|
}
|
|
3922
3934
|
} else if (!(Fe === Ke || f(Fe, Ke, y, I, C))) {
|
|
3923
|
-
|
|
3935
|
+
Te = !1;
|
|
3924
3936
|
break;
|
|
3925
3937
|
}
|
|
3926
3938
|
}
|
|
3927
|
-
return C.delete(r), C.delete(s),
|
|
3939
|
+
return C.delete(r), C.delete(s), Te;
|
|
3928
3940
|
}
|
|
3929
3941
|
function qo(r, s, f, y, I, C, z) {
|
|
3930
3942
|
switch (f) {
|
|
@@ -3933,7 +3945,7 @@ Cn.exports;
|
|
|
3933
3945
|
return !1;
|
|
3934
3946
|
r = r.buffer, s = s.buffer;
|
|
3935
3947
|
case B:
|
|
3936
|
-
return !(r.byteLength != s.byteLength || !y(new
|
|
3948
|
+
return !(r.byteLength != s.byteLength || !y(new ke(r), new ke(s)));
|
|
3937
3949
|
case b:
|
|
3938
3950
|
case A:
|
|
3939
3951
|
case D:
|
|
@@ -3944,30 +3956,30 @@ Cn.exports;
|
|
|
3944
3956
|
case M:
|
|
3945
3957
|
return r == s + "";
|
|
3946
3958
|
case E:
|
|
3947
|
-
var
|
|
3959
|
+
var pe = Me;
|
|
3948
3960
|
case O:
|
|
3949
|
-
var
|
|
3950
|
-
if (
|
|
3961
|
+
var ae = C & l;
|
|
3962
|
+
if (pe || (pe = ie), r.size != s.size && !ae)
|
|
3951
3963
|
return !1;
|
|
3952
3964
|
var me = z.get(r);
|
|
3953
3965
|
if (me)
|
|
3954
3966
|
return me == s;
|
|
3955
3967
|
C |= a, z.set(r, s);
|
|
3956
|
-
var
|
|
3957
|
-
return z.delete(r),
|
|
3968
|
+
var Oe = sr(pe(r), pe(s), y, I, C, z);
|
|
3969
|
+
return z.delete(r), Oe;
|
|
3958
3970
|
case H:
|
|
3959
|
-
if (
|
|
3960
|
-
return
|
|
3971
|
+
if (On)
|
|
3972
|
+
return On.call(r) == On.call(s);
|
|
3961
3973
|
}
|
|
3962
3974
|
return !1;
|
|
3963
3975
|
}
|
|
3964
3976
|
function Jo(r, s, f, y, I, C) {
|
|
3965
|
-
var z = I & l,
|
|
3966
|
-
if (
|
|
3977
|
+
var z = I & l, pe = Ln(r), ae = pe.length, me = Ln(s), Oe = me.length;
|
|
3978
|
+
if (ae != Oe && !z)
|
|
3967
3979
|
return !1;
|
|
3968
|
-
for (var
|
|
3969
|
-
var
|
|
3970
|
-
if (!(z ?
|
|
3980
|
+
for (var Te = ae; Te--; ) {
|
|
3981
|
+
var Se = pe[Te];
|
|
3982
|
+
if (!(z ? Se in s : Ye.call(s, Se)))
|
|
3971
3983
|
return !1;
|
|
3972
3984
|
}
|
|
3973
3985
|
var Fe = C.get(r);
|
|
@@ -3975,48 +3987,48 @@ Cn.exports;
|
|
|
3975
3987
|
return Fe == s;
|
|
3976
3988
|
var Ke = !0;
|
|
3977
3989
|
C.set(r, s), C.set(s, r);
|
|
3978
|
-
for (var
|
|
3979
|
-
|
|
3980
|
-
var ct = r[
|
|
3990
|
+
for (var pt = z; ++Te < ae; ) {
|
|
3991
|
+
Se = pe[Te];
|
|
3992
|
+
var ct = r[Se], At = s[Se];
|
|
3981
3993
|
if (y)
|
|
3982
|
-
var hr = z ? y(
|
|
3983
|
-
if (!(hr === void 0 ? ct ===
|
|
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)) {
|
|
3984
3996
|
Ke = !1;
|
|
3985
3997
|
break;
|
|
3986
3998
|
}
|
|
3987
|
-
|
|
3999
|
+
pt || (pt = Se == "constructor");
|
|
3988
4000
|
}
|
|
3989
|
-
if (Ke && !
|
|
3990
|
-
var
|
|
3991
|
-
|
|
4001
|
+
if (Ke && !pt) {
|
|
4002
|
+
var cn = r.constructor, un = s.constructor;
|
|
4003
|
+
cn != un && "constructor" in r && "constructor" in s && !(typeof cn == "function" && cn instanceof cn && typeof un == "function" && un instanceof un) && (Ke = !1);
|
|
3992
4004
|
}
|
|
3993
4005
|
return C.delete(r), C.delete(s), Ke;
|
|
3994
4006
|
}
|
|
3995
|
-
function
|
|
4007
|
+
function rn(r, s) {
|
|
3996
4008
|
var f = r.__data__;
|
|
3997
4009
|
return Zo(s) ? f[typeof s == "string" ? "string" : "hash"] : f.map;
|
|
3998
4010
|
}
|
|
3999
4011
|
function Vo(r) {
|
|
4000
|
-
for (var s =
|
|
4012
|
+
for (var s = Ln(r), f = s.length; f--; ) {
|
|
4001
4013
|
var y = s[f], I = r[y];
|
|
4002
4014
|
s[f] = [y, I, lr(I)];
|
|
4003
4015
|
}
|
|
4004
4016
|
return s;
|
|
4005
4017
|
}
|
|
4006
|
-
function
|
|
4007
|
-
var f =
|
|
4018
|
+
function It(r, s) {
|
|
4019
|
+
var f = rt(r, s);
|
|
4008
4020
|
return Ho(f) ? f : void 0;
|
|
4009
4021
|
}
|
|
4010
|
-
var
|
|
4011
|
-
(
|
|
4012
|
-
var s =
|
|
4022
|
+
var ht = Bo;
|
|
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 = W.call(r), f = s == R ? r.constructor : void 0, y = f ? St(f) : void 0;
|
|
4013
4025
|
if (y)
|
|
4014
4026
|
switch (y) {
|
|
4015
|
-
case
|
|
4027
|
+
case xt:
|
|
4016
4028
|
return re;
|
|
4017
|
-
case
|
|
4029
|
+
case Ct:
|
|
4018
4030
|
return E;
|
|
4019
|
-
case
|
|
4031
|
+
case Ht:
|
|
4020
4032
|
return T;
|
|
4021
4033
|
case fo:
|
|
4022
4034
|
return O;
|
|
@@ -4026,9 +4038,9 @@ Cn.exports;
|
|
|
4026
4038
|
return s;
|
|
4027
4039
|
});
|
|
4028
4040
|
function Qo(r, s, f) {
|
|
4029
|
-
s =
|
|
4041
|
+
s = on(s, r) ? [s] : ir(s);
|
|
4030
4042
|
for (var y, I = -1, z = s.length; ++I < z; ) {
|
|
4031
|
-
var C =
|
|
4043
|
+
var C = sn(s[I]);
|
|
4032
4044
|
if (!(y = r != null && f(r, C)))
|
|
4033
4045
|
break;
|
|
4034
4046
|
r = r[C];
|
|
@@ -4036,53 +4048,53 @@ Cn.exports;
|
|
|
4036
4048
|
if (y)
|
|
4037
4049
|
return y;
|
|
4038
4050
|
var z = r ? r.length : 0;
|
|
4039
|
-
return !!z &&
|
|
4051
|
+
return !!z && Mn(z) && ar(C, z) && (Rt(r) || dr(r));
|
|
4040
4052
|
}
|
|
4041
4053
|
function ar(r, s) {
|
|
4042
4054
|
return s = s ?? d, !!s && (typeof r == "number" || Ve.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
4043
4055
|
}
|
|
4044
|
-
function
|
|
4045
|
-
if (
|
|
4056
|
+
function on(r, s) {
|
|
4057
|
+
if (Rt(r))
|
|
4046
4058
|
return !1;
|
|
4047
4059
|
var f = typeof r;
|
|
4048
|
-
return f == "number" || f == "symbol" || f == "boolean" || r == null ||
|
|
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);
|
|
4049
4061
|
}
|
|
4050
4062
|
function Zo(r) {
|
|
4051
4063
|
var s = typeof r;
|
|
4052
4064
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
4053
4065
|
}
|
|
4054
4066
|
function ei(r) {
|
|
4055
|
-
return !!
|
|
4067
|
+
return !!Qt && Qt in r;
|
|
4056
4068
|
}
|
|
4057
4069
|
function ti(r) {
|
|
4058
|
-
var s = r && r.constructor, f = typeof s == "function" && s.prototype ||
|
|
4070
|
+
var s = r && r.constructor, f = typeof s == "function" && s.prototype || ot;
|
|
4059
4071
|
return r === f;
|
|
4060
4072
|
}
|
|
4061
4073
|
function lr(r) {
|
|
4062
|
-
return r === r && !
|
|
4074
|
+
return r === r && !Ot(r);
|
|
4063
4075
|
}
|
|
4064
4076
|
function cr(r, s) {
|
|
4065
4077
|
return function(f) {
|
|
4066
4078
|
return f == null ? !1 : f[r] === s && (s !== void 0 || r in Object(f));
|
|
4067
4079
|
};
|
|
4068
4080
|
}
|
|
4069
|
-
var ni =
|
|
4081
|
+
var ni = Nn(function(r) {
|
|
4070
4082
|
r = ci(r);
|
|
4071
4083
|
var s = [];
|
|
4072
|
-
return
|
|
4073
|
-
s.push(I ? C.replace(
|
|
4084
|
+
return Ue.test(r) && s.push(""), r.replace(et, function(f, y, I, C) {
|
|
4085
|
+
s.push(I ? C.replace(Be, "$1") : y || f);
|
|
4074
4086
|
}), s;
|
|
4075
4087
|
});
|
|
4076
|
-
function
|
|
4077
|
-
if (typeof r == "string" ||
|
|
4088
|
+
function sn(r) {
|
|
4089
|
+
if (typeof r == "string" || ln(r))
|
|
4078
4090
|
return r;
|
|
4079
4091
|
var s = r + "";
|
|
4080
4092
|
return s == "0" && 1 / r == -c ? "-0" : s;
|
|
4081
4093
|
}
|
|
4082
|
-
function
|
|
4094
|
+
function St(r) {
|
|
4083
4095
|
if (r != null) {
|
|
4084
4096
|
try {
|
|
4085
|
-
return
|
|
4097
|
+
return Zt.call(r);
|
|
4086
4098
|
} catch {
|
|
4087
4099
|
}
|
|
4088
4100
|
try {
|
|
@@ -4097,9 +4109,9 @@ Cn.exports;
|
|
|
4097
4109
|
if (!y)
|
|
4098
4110
|
return -1;
|
|
4099
4111
|
var I = f == null ? 0 : ai(f);
|
|
4100
|
-
return I < 0 && (I =
|
|
4112
|
+
return I < 0 && (I = ut(y + I, 0)), ee(r, Uo(s), I);
|
|
4101
4113
|
}
|
|
4102
|
-
function
|
|
4114
|
+
function Nn(r, s) {
|
|
4103
4115
|
if (typeof r != "function" || s && typeof s != "function")
|
|
4104
4116
|
throw new TypeError(o);
|
|
4105
4117
|
var f = function() {
|
|
@@ -4109,40 +4121,40 @@ Cn.exports;
|
|
|
4109
4121
|
var z = r.apply(this, y);
|
|
4110
4122
|
return f.cache = C.set(I, z), z;
|
|
4111
4123
|
};
|
|
4112
|
-
return f.cache = new (
|
|
4124
|
+
return f.cache = new (Nn.Cache || at)(), f;
|
|
4113
4125
|
}
|
|
4114
|
-
|
|
4126
|
+
Nn.Cache = at;
|
|
4115
4127
|
function ur(r, s) {
|
|
4116
4128
|
return r === s || r !== r && s !== s;
|
|
4117
4129
|
}
|
|
4118
4130
|
function dr(r) {
|
|
4119
|
-
return oi(r) &&
|
|
4131
|
+
return oi(r) && Ye.call(r, "callee") && (!Ie.call(r, "callee") || W.call(r) == g);
|
|
4120
4132
|
}
|
|
4121
|
-
var
|
|
4133
|
+
var Rt = Array.isArray;
|
|
4122
4134
|
function fr(r) {
|
|
4123
|
-
return r != null &&
|
|
4135
|
+
return r != null && Mn(r.length) && !gr(r);
|
|
4124
4136
|
}
|
|
4125
4137
|
function oi(r) {
|
|
4126
|
-
return
|
|
4138
|
+
return an(r) && fr(r);
|
|
4127
4139
|
}
|
|
4128
4140
|
function gr(r) {
|
|
4129
|
-
var s =
|
|
4141
|
+
var s = Ot(r) ? W.call(r) : "";
|
|
4130
4142
|
return s == x || s == S;
|
|
4131
4143
|
}
|
|
4132
|
-
function
|
|
4144
|
+
function Mn(r) {
|
|
4133
4145
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= d;
|
|
4134
4146
|
}
|
|
4135
|
-
function
|
|
4147
|
+
function Ot(r) {
|
|
4136
4148
|
var s = typeof r;
|
|
4137
4149
|
return !!r && (s == "object" || s == "function");
|
|
4138
4150
|
}
|
|
4139
|
-
function
|
|
4151
|
+
function an(r) {
|
|
4140
4152
|
return !!r && typeof r == "object";
|
|
4141
4153
|
}
|
|
4142
|
-
function
|
|
4143
|
-
return typeof r == "symbol" ||
|
|
4154
|
+
function ln(r) {
|
|
4155
|
+
return typeof r == "symbol" || an(r) && W.call(r) == H;
|
|
4144
4156
|
}
|
|
4145
|
-
var ii =
|
|
4157
|
+
var ii = Y ? be(Y) : Xo;
|
|
4146
4158
|
function si(r) {
|
|
4147
4159
|
if (!r)
|
|
4148
4160
|
return r === 0 ? r : 0;
|
|
@@ -4159,17 +4171,17 @@ Cn.exports;
|
|
|
4159
4171
|
function li(r) {
|
|
4160
4172
|
if (typeof r == "number")
|
|
4161
4173
|
return r;
|
|
4162
|
-
if (
|
|
4174
|
+
if (ln(r))
|
|
4163
4175
|
return h;
|
|
4164
|
-
if (
|
|
4176
|
+
if (Ot(r)) {
|
|
4165
4177
|
var s = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
4166
|
-
r =
|
|
4178
|
+
r = Ot(s) ? s + "" : s;
|
|
4167
4179
|
}
|
|
4168
4180
|
if (typeof r != "string")
|
|
4169
4181
|
return r === 0 ? r : +r;
|
|
4170
|
-
r = r.replace(
|
|
4182
|
+
r = r.replace(tt, "");
|
|
4171
4183
|
var f = $.test(r);
|
|
4172
|
-
return f ||
|
|
4184
|
+
return f || Ee.test(r) ? Qe(r.slice(2), f ? 2 : 8) : de.test(r) ? h : +r;
|
|
4173
4185
|
}
|
|
4174
4186
|
function ci(r) {
|
|
4175
4187
|
return r == null ? "" : Wo(r);
|
|
@@ -4181,26 +4193,26 @@ Cn.exports;
|
|
|
4181
4193
|
function di(r, s) {
|
|
4182
4194
|
return r != null && Qo(r, s, zo);
|
|
4183
4195
|
}
|
|
4184
|
-
function
|
|
4196
|
+
function Ln(r) {
|
|
4185
4197
|
return fr(r) ? $o(r) : jo(r);
|
|
4186
4198
|
}
|
|
4187
4199
|
function fi(r) {
|
|
4188
4200
|
return r;
|
|
4189
4201
|
}
|
|
4190
4202
|
function gi(r) {
|
|
4191
|
-
return
|
|
4203
|
+
return on(r) ? oe(sn(r)) : Go(r);
|
|
4192
4204
|
}
|
|
4193
4205
|
e.exports = ri;
|
|
4194
|
-
})(
|
|
4195
|
-
var Ia =
|
|
4196
|
-
const
|
|
4206
|
+
})(Dn, Dn.exports);
|
|
4207
|
+
var Ia = Dn.exports;
|
|
4208
|
+
const Et = /* @__PURE__ */ wi(Ia), Oa = Bt.div``, Ta = Bt.div`
|
|
4197
4209
|
box-sizing: border-box;
|
|
4198
4210
|
display: flex;
|
|
4199
4211
|
flex-direction: ${(e) => e.verticalDisplay ? "column" : "row"};
|
|
4200
4212
|
${(e) => e.horizontalDisplay == !1 && "flex-wrap: wrap;"}
|
|
4201
4213
|
overflow: auto;
|
|
4202
|
-
`, Na = (e) =>
|
|
4203
|
-
sideEffects:
|
|
4214
|
+
`, Na = (e) => ao({ ...e, wasDragging: !0 }), Ma = {
|
|
4215
|
+
sideEffects: ro({
|
|
4204
4216
|
styles: {
|
|
4205
4217
|
active: {
|
|
4206
4218
|
opacity: "0.5"
|
|
@@ -4208,14 +4220,14 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4208
4220
|
}
|
|
4209
4221
|
})
|
|
4210
4222
|
}, La = () => {
|
|
4211
|
-
const [e, t] =
|
|
4223
|
+
const [e, t] = ne(!1);
|
|
4212
4224
|
return K(() => {
|
|
4213
4225
|
const n = setTimeout(() => t(!0), 500);
|
|
4214
4226
|
return () => clearTimeout(n);
|
|
4215
4227
|
}, []), e;
|
|
4216
|
-
},
|
|
4228
|
+
}, Yn = (e, t) => {
|
|
4217
4229
|
if (e)
|
|
4218
|
-
return
|
|
4230
|
+
return Pt(
|
|
4219
4231
|
t,
|
|
4220
4232
|
"KanbanCard",
|
|
4221
4233
|
e,
|
|
@@ -4245,7 +4257,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4245
4257
|
setNodeRef: x,
|
|
4246
4258
|
transition: S,
|
|
4247
4259
|
transform: E
|
|
4248
|
-
} =
|
|
4260
|
+
} = co({
|
|
4249
4261
|
id: i,
|
|
4250
4262
|
data: {
|
|
4251
4263
|
type: "container",
|
|
@@ -4253,14 +4265,14 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4253
4265
|
},
|
|
4254
4266
|
animateLayoutChanges: Na
|
|
4255
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;
|
|
4256
|
-
return /* @__PURE__ */
|
|
4257
|
-
|
|
4268
|
+
return /* @__PURE__ */ le(
|
|
4269
|
+
uo,
|
|
4258
4270
|
{
|
|
4259
4271
|
ref: o ? void 0 : x,
|
|
4260
4272
|
style: {
|
|
4261
4273
|
...u,
|
|
4262
4274
|
transition: S,
|
|
4263
|
-
transform:
|
|
4275
|
+
transform: yt.Translate.toString(E),
|
|
4264
4276
|
opacity: b ? 0.5 : void 0
|
|
4265
4277
|
},
|
|
4266
4278
|
className: l,
|
|
@@ -4302,11 +4314,11 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4302
4314
|
transform: R,
|
|
4303
4315
|
transition: T,
|
|
4304
4316
|
attributes: _
|
|
4305
|
-
} =
|
|
4317
|
+
} = co({
|
|
4306
4318
|
id: t
|
|
4307
4319
|
}), O = La(), M = x && !O;
|
|
4308
|
-
return /* @__PURE__ */
|
|
4309
|
-
|
|
4320
|
+
return /* @__PURE__ */ le(
|
|
4321
|
+
jn,
|
|
4310
4322
|
{
|
|
4311
4323
|
ref: e ? void 0 : b,
|
|
4312
4324
|
cardProps: u,
|
|
@@ -4329,7 +4341,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4329
4341
|
overIndex: E ? c(E.id) : D,
|
|
4330
4342
|
containerId: l
|
|
4331
4343
|
},
|
|
4332
|
-
color:
|
|
4344
|
+
color: Yn(n == null ? void 0 : n.color, h),
|
|
4333
4345
|
transition: T,
|
|
4334
4346
|
transform: R,
|
|
4335
4347
|
fadeIn: M,
|
|
@@ -4343,7 +4355,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4343
4355
|
})
|
|
4344
4356
|
}
|
|
4345
4357
|
);
|
|
4346
|
-
}, Ba =
|
|
4358
|
+
}, Ba = Sn((e, t) => {
|
|
4347
4359
|
const {
|
|
4348
4360
|
horizontalDisplay: n = !1,
|
|
4349
4361
|
verticalDisplay: o = !1,
|
|
@@ -4359,7 +4371,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4359
4371
|
minimal: b = !1,
|
|
4360
4372
|
modifiers: A,
|
|
4361
4373
|
renderItem: v,
|
|
4362
|
-
strategy: x =
|
|
4374
|
+
strategy: x = Or,
|
|
4363
4375
|
scrollable: S,
|
|
4364
4376
|
maxContainerHeight: E,
|
|
4365
4377
|
cardProps: D,
|
|
@@ -4378,169 +4390,169 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4378
4390
|
color: B = "primary",
|
|
4379
4391
|
size: re = "small",
|
|
4380
4392
|
children: Q,
|
|
4381
|
-
...
|
|
4382
|
-
} = e, Xe = kn(), [F, J] =
|
|
4393
|
+
...Ae
|
|
4394
|
+
} = e, Xe = kn(), [F, J] = ne(
|
|
4383
4395
|
() => _ ?? {
|
|
4384
|
-
A:
|
|
4385
|
-
B:
|
|
4396
|
+
A: Nr(a, (p) => `A${p + 1}`),
|
|
4397
|
+
B: Nr(a, (p) => `B${p + 1}`)
|
|
4386
4398
|
}
|
|
4387
|
-
), [
|
|
4399
|
+
), [Pe, Ne] = ne(Object.keys(_)), [ue, $e] = ne(null), V = X(null), we = X(!1), Ue = ue ? Pe.includes(ue) : !1, et = ve(
|
|
4388
4400
|
(p) => {
|
|
4389
|
-
var
|
|
4390
|
-
if (
|
|
4401
|
+
var Y;
|
|
4402
|
+
if (ue && ue in F)
|
|
4391
4403
|
return yr({
|
|
4392
4404
|
...p,
|
|
4393
4405
|
droppableContainers: p.droppableContainers.filter(
|
|
4394
|
-
(
|
|
4406
|
+
(fe) => fe.id in F
|
|
4395
4407
|
)
|
|
4396
4408
|
});
|
|
4397
4409
|
const m = ji(p), N = m.length > 0 ? (
|
|
4398
4410
|
// If there are droppables intersecting with the pointer, return those
|
|
4399
4411
|
m
|
|
4400
|
-
) :
|
|
4401
|
-
let
|
|
4402
|
-
if (
|
|
4403
|
-
if (
|
|
4404
|
-
const
|
|
4405
|
-
|
|
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({
|
|
4406
4418
|
...p,
|
|
4407
4419
|
droppableContainers: p.droppableContainers.filter(
|
|
4408
|
-
(ee) => ee.id !==
|
|
4420
|
+
(ee) => ee.id !== G && fe.map((oe) => oe.id).includes(ee.id)
|
|
4409
4421
|
)
|
|
4410
|
-
})[0]) == null ? void 0 :
|
|
4422
|
+
})[0]) == null ? void 0 : Y.id);
|
|
4411
4423
|
}
|
|
4412
|
-
return V.current =
|
|
4424
|
+
return V.current = G, [{ id: G }];
|
|
4413
4425
|
}
|
|
4414
|
-
return we.current && (V.current =
|
|
4426
|
+
return we.current && (V.current = ue), V.current ? [{ id: V.current }] : [];
|
|
4415
4427
|
},
|
|
4416
|
-
[
|
|
4417
|
-
), [Z,
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4428
|
+
[ue, F]
|
|
4429
|
+
), [Z, tt] = ne([]), Be = zi(
|
|
4430
|
+
$n(qr),
|
|
4431
|
+
$n(Jr),
|
|
4432
|
+
$n(er, {
|
|
4421
4433
|
coordinateGetter: h
|
|
4422
4434
|
})
|
|
4423
4435
|
);
|
|
4424
4436
|
Di(() => {
|
|
4425
|
-
J(_),
|
|
4437
|
+
J(_), Ne(Object.keys(_));
|
|
4426
4438
|
}), Ci(() => {
|
|
4427
|
-
J(_),
|
|
4439
|
+
J(_), Ne(Object.keys(_));
|
|
4428
4440
|
}, [_]), K(() => {
|
|
4429
4441
|
requestAnimationFrame(() => {
|
|
4430
4442
|
we.current = !1;
|
|
4431
4443
|
});
|
|
4432
4444
|
}, [F]);
|
|
4433
|
-
const
|
|
4445
|
+
const de = (p) => p in F ? p : Object.keys(F).find(
|
|
4434
4446
|
(m) => F[m].map((N) => N.id).includes(p)
|
|
4435
4447
|
), $ = (p) => {
|
|
4436
|
-
const m =
|
|
4437
|
-
return m ?
|
|
4438
|
-
},
|
|
4439
|
-
Z && J(Z),
|
|
4440
|
-
},
|
|
4441
|
-
|
|
4448
|
+
const m = de(p);
|
|
4449
|
+
return m ? Et(F[m], (N) => N.id == p) : -1;
|
|
4450
|
+
}, nt = () => {
|
|
4451
|
+
Z && J(Z), $e(null), tt(null);
|
|
4452
|
+
}, Ee = (p) => {
|
|
4453
|
+
$e(p.active.id), tt(F);
|
|
4442
4454
|
}, Ve = (p) => {
|
|
4443
|
-
const { active: m, over: N } = p,
|
|
4444
|
-
if (
|
|
4455
|
+
const { active: m, over: N } = p, G = N == null ? void 0 : N.id;
|
|
4456
|
+
if (G == null || m.id in F)
|
|
4445
4457
|
return;
|
|
4446
|
-
const
|
|
4447
|
-
!
|
|
4448
|
-
const oe = 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);
|
|
4449
4461
|
let te;
|
|
4450
|
-
if (
|
|
4451
|
-
te =
|
|
4462
|
+
if (G in ee)
|
|
4463
|
+
te = he.length + 1;
|
|
4452
4464
|
else {
|
|
4453
|
-
const
|
|
4454
|
-
te =
|
|
4465
|
+
const wt = N && m.rect.current.translated && m.rect.current.translated.top > N.rect.top + N.rect.height ? 1 : 0;
|
|
4466
|
+
te = be >= 0 ? be + wt : he.length + 1;
|
|
4455
4467
|
}
|
|
4456
4468
|
return U(m.id), we.current = !0, {
|
|
4457
4469
|
...ee,
|
|
4458
|
-
[
|
|
4459
|
-
(
|
|
4470
|
+
[fe]: ee[fe].filter(
|
|
4471
|
+
(Me) => Me.id != m.id
|
|
4460
4472
|
),
|
|
4461
|
-
[
|
|
4462
|
-
...ee[
|
|
4463
|
-
ee[
|
|
4464
|
-
...ee[
|
|
4473
|
+
[Y]: [
|
|
4474
|
+
...ee[Y].slice(0, te),
|
|
4475
|
+
ee[fe][rt],
|
|
4476
|
+
...ee[Y].slice(
|
|
4465
4477
|
te,
|
|
4466
|
-
ee[
|
|
4478
|
+
ee[Y].length
|
|
4467
4479
|
)
|
|
4468
4480
|
]
|
|
4469
4481
|
};
|
|
4470
4482
|
});
|
|
4471
4483
|
}, P = (p) => {
|
|
4472
4484
|
const { active: m, over: N } = p;
|
|
4473
|
-
var
|
|
4474
|
-
m.id in F && (N != null && N.id) &&
|
|
4475
|
-
|
|
4476
|
-
const
|
|
4477
|
-
var
|
|
4478
|
-
return m.id !== N.id && M(p,
|
|
4485
|
+
var G = !1, Y = mi(F);
|
|
4486
|
+
m.id in F && (N != null && N.id) && Ne((ie) => {
|
|
4487
|
+
G = !0;
|
|
4488
|
+
const se = ie.indexOf(m.id), Le = ie.indexOf(N.id);
|
|
4489
|
+
var ot = Yt(ie, se, Le);
|
|
4490
|
+
return m.id !== N.id && M(p, ot), ot;
|
|
4479
4491
|
});
|
|
4480
|
-
const
|
|
4481
|
-
if (!
|
|
4482
|
-
|
|
4492
|
+
const fe = de(m.id);
|
|
4493
|
+
if (!fe) {
|
|
4494
|
+
$e(null);
|
|
4483
4495
|
return;
|
|
4484
4496
|
}
|
|
4485
4497
|
const ee = N == null ? void 0 : N.id;
|
|
4486
4498
|
if (ee == null) {
|
|
4487
|
-
|
|
4499
|
+
$e(null);
|
|
4488
4500
|
return;
|
|
4489
4501
|
}
|
|
4490
|
-
const oe =
|
|
4502
|
+
const oe = de(ee);
|
|
4491
4503
|
if (oe) {
|
|
4492
|
-
const ie =
|
|
4493
|
-
F[
|
|
4494
|
-
(
|
|
4495
|
-
),
|
|
4496
|
-
ie !==
|
|
4497
|
-
...
|
|
4498
|
-
[oe]:
|
|
4499
|
-
|
|
4504
|
+
const ie = Et(
|
|
4505
|
+
F[fe],
|
|
4506
|
+
(Le) => Le.id == m.id
|
|
4507
|
+
), se = Et(F[oe], (Le) => Le.id == ee);
|
|
4508
|
+
ie !== se && (Y = {
|
|
4509
|
+
...Y,
|
|
4510
|
+
[oe]: Yt(
|
|
4511
|
+
Y[oe],
|
|
4500
4512
|
ie,
|
|
4501
|
-
|
|
4513
|
+
se
|
|
4502
4514
|
)
|
|
4503
|
-
}, J((
|
|
4504
|
-
...
|
|
4505
|
-
[oe]:
|
|
4506
|
-
|
|
4515
|
+
}, J((Le) => ({
|
|
4516
|
+
...Le,
|
|
4517
|
+
[oe]: Yt(
|
|
4518
|
+
Le[oe],
|
|
4507
4519
|
ie,
|
|
4508
|
-
|
|
4520
|
+
se
|
|
4509
4521
|
)
|
|
4510
4522
|
})));
|
|
4511
4523
|
}
|
|
4512
|
-
if (!
|
|
4513
|
-
var
|
|
4514
|
-
|
|
4515
|
-
if (Z[ie].map((
|
|
4516
|
-
|
|
4524
|
+
if (!G) {
|
|
4525
|
+
var he, be = null, rt, te = -1, Me = Object.keys(Z), wt = Object.keys(Y);
|
|
4526
|
+
Me.forEach((ie) => {
|
|
4527
|
+
if (Z[ie].map((se) => se.id.toString()).includes(m.id.toString())) {
|
|
4528
|
+
he = ie, rt = Et(Z[ie], (se) => se.id == m.id);
|
|
4517
4529
|
return;
|
|
4518
4530
|
}
|
|
4519
|
-
}),
|
|
4520
|
-
if (
|
|
4521
|
-
|
|
4531
|
+
}), wt.forEach((ie) => {
|
|
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);
|
|
4522
4534
|
return;
|
|
4523
4535
|
}
|
|
4524
|
-
}),
|
|
4536
|
+
}), he === be && rt !== te && H(p, Y, be), he !== be && U(p, Y, be, he);
|
|
4525
4537
|
}
|
|
4526
|
-
|
|
4538
|
+
$e(null);
|
|
4527
4539
|
}, Qe = (p) => {
|
|
4528
4540
|
var m = null;
|
|
4529
|
-
return
|
|
4530
|
-
F[N].forEach((
|
|
4531
|
-
if (
|
|
4532
|
-
m =
|
|
4541
|
+
return Pe.forEach((N) => {
|
|
4542
|
+
F[N].forEach((G) => {
|
|
4543
|
+
if (G.id == p) {
|
|
4544
|
+
m = G;
|
|
4533
4545
|
return;
|
|
4534
4546
|
}
|
|
4535
4547
|
});
|
|
4536
|
-
}), /* @__PURE__ */
|
|
4537
|
-
|
|
4548
|
+
}), /* @__PURE__ */ le(
|
|
4549
|
+
jn,
|
|
4538
4550
|
{
|
|
4539
4551
|
value: p,
|
|
4540
4552
|
handle: d,
|
|
4541
4553
|
cardProps: D,
|
|
4542
4554
|
style: g({
|
|
4543
|
-
containerId:
|
|
4555
|
+
containerId: de(p),
|
|
4544
4556
|
overIndex: -1,
|
|
4545
4557
|
index: $(p),
|
|
4546
4558
|
value: p,
|
|
@@ -4548,7 +4560,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4548
4560
|
isDragging: !0,
|
|
4549
4561
|
isDragOverlay: !0
|
|
4550
4562
|
}),
|
|
4551
|
-
color:
|
|
4563
|
+
color: Yn(m == null ? void 0 : m.color, Xe),
|
|
4552
4564
|
wrapperStyle: w({ index: 0 }),
|
|
4553
4565
|
renderItem: v,
|
|
4554
4566
|
dragOverlay: !0,
|
|
@@ -4557,10 +4569,10 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4557
4569
|
}
|
|
4558
4570
|
}
|
|
4559
4571
|
);
|
|
4560
|
-
},
|
|
4561
|
-
|
|
4572
|
+
}, je = (p) => /* @__PURE__ */ le(
|
|
4573
|
+
uo,
|
|
4562
4574
|
{
|
|
4563
|
-
label:
|
|
4575
|
+
label: mt(p),
|
|
4564
4576
|
columns: c,
|
|
4565
4577
|
style: {
|
|
4566
4578
|
height: "100%"
|
|
@@ -4568,9 +4580,9 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4568
4580
|
shadow: !0,
|
|
4569
4581
|
unstyled: !1,
|
|
4570
4582
|
containerId: p,
|
|
4571
|
-
renderFooterContent:
|
|
4572
|
-
children: F[p].map((m, N) => /* @__PURE__ */
|
|
4573
|
-
|
|
4583
|
+
renderFooterContent: _e,
|
|
4584
|
+
children: F[p].map((m, N) => /* @__PURE__ */ le(
|
|
4585
|
+
jn,
|
|
4574
4586
|
{
|
|
4575
4587
|
cardProps: D,
|
|
4576
4588
|
value: m.id,
|
|
@@ -4584,7 +4596,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4584
4596
|
isSorting: !1,
|
|
4585
4597
|
isDragOverlay: !1
|
|
4586
4598
|
}),
|
|
4587
|
-
color:
|
|
4599
|
+
color: Yn(m == null ? void 0 : m.color, Xe),
|
|
4588
4600
|
wrapperStyle: w({ index: N }),
|
|
4589
4601
|
renderItem: v,
|
|
4590
4602
|
children: Ze(m == null ? void 0 : m.content, m == null ? void 0 : m.id, {
|
|
@@ -4596,10 +4608,10 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4596
4608
|
m.id
|
|
4597
4609
|
))
|
|
4598
4610
|
}
|
|
4599
|
-
),
|
|
4611
|
+
), mt = (p) => {
|
|
4600
4612
|
let m = c == null ? void 0 : c.find((N) => N.id == (p == null ? void 0 : p.toString()));
|
|
4601
|
-
return
|
|
4602
|
-
|
|
4613
|
+
return Tt(
|
|
4614
|
+
Nt("KANBAN_HEADER", p, Q),
|
|
4603
4615
|
{
|
|
4604
4616
|
...R,
|
|
4605
4617
|
item: { [p]: F[p] },
|
|
@@ -4607,8 +4619,8 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4607
4619
|
},
|
|
4608
4620
|
m == null ? void 0 : m.header,
|
|
4609
4621
|
!0
|
|
4610
|
-
) ||
|
|
4611
|
-
|
|
4622
|
+
) || Tt(
|
|
4623
|
+
Nt("KANBAN_HEADER", null, Q),
|
|
4612
4624
|
{
|
|
4613
4625
|
...R,
|
|
4614
4626
|
item: { [p]: F[p] },
|
|
@@ -4616,7 +4628,7 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4616
4628
|
},
|
|
4617
4629
|
m == null ? void 0 : m.header,
|
|
4618
4630
|
!0
|
|
4619
|
-
) || /* @__PURE__ */
|
|
4631
|
+
) || /* @__PURE__ */ le(
|
|
4620
4632
|
xi,
|
|
4621
4633
|
{
|
|
4622
4634
|
id: p,
|
|
@@ -4628,80 +4640,80 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4628
4640
|
children: m == null ? void 0 : m.header
|
|
4629
4641
|
}
|
|
4630
4642
|
);
|
|
4631
|
-
},
|
|
4632
|
-
|
|
4643
|
+
}, _e = (p) => Tt(
|
|
4644
|
+
Nt("KANBAN_FOOTER", p, Q),
|
|
4633
4645
|
{
|
|
4634
4646
|
...T,
|
|
4635
4647
|
id: p
|
|
4636
4648
|
},
|
|
4637
4649
|
null
|
|
4638
|
-
) ||
|
|
4639
|
-
|
|
4650
|
+
) || Tt(
|
|
4651
|
+
Nt("KANBAN_FOOTER", null, Q),
|
|
4640
4652
|
{
|
|
4641
4653
|
...T,
|
|
4642
4654
|
id: p
|
|
4643
4655
|
},
|
|
4644
4656
|
null
|
|
4645
|
-
), Ze = (p, m, N) =>
|
|
4646
|
-
|
|
4657
|
+
), Ze = (p, m, N) => Tt(
|
|
4658
|
+
Nt("KANBAN_CARD", m, Q),
|
|
4647
4659
|
{
|
|
4648
4660
|
...N
|
|
4649
4661
|
},
|
|
4650
4662
|
p,
|
|
4651
4663
|
!0
|
|
4652
|
-
) ||
|
|
4653
|
-
|
|
4664
|
+
) || Tt(
|
|
4665
|
+
Nt("KANBAN_CARD", null, Q),
|
|
4654
4666
|
{
|
|
4655
4667
|
...N
|
|
4656
4668
|
},
|
|
4657
4669
|
p,
|
|
4658
4670
|
!0
|
|
4659
|
-
) || /* @__PURE__ */
|
|
4660
|
-
return /* @__PURE__ */
|
|
4671
|
+
) || /* @__PURE__ */ le(yi, { color: B, size: re, ...N, children: p });
|
|
4672
|
+
return /* @__PURE__ */ le(Oa, { ref: t, ...Ae, children: /* @__PURE__ */ vn(
|
|
4661
4673
|
Ls,
|
|
4662
4674
|
{
|
|
4663
4675
|
measuring: {
|
|
4664
4676
|
droppable: {
|
|
4665
|
-
strategy:
|
|
4677
|
+
strategy: $t.Always
|
|
4666
4678
|
}
|
|
4667
4679
|
},
|
|
4668
|
-
sensors:
|
|
4669
|
-
collisionDetection:
|
|
4680
|
+
sensors: Be,
|
|
4681
|
+
collisionDetection: et,
|
|
4670
4682
|
modifiers: A,
|
|
4671
4683
|
cancelDrop: l,
|
|
4672
|
-
onDragCancel:
|
|
4673
|
-
onDragStart:
|
|
4684
|
+
onDragCancel: nt,
|
|
4685
|
+
onDragStart: Ee,
|
|
4674
4686
|
onDragOver: Ve,
|
|
4675
4687
|
onDragEnd: P,
|
|
4676
4688
|
children: [
|
|
4677
|
-
/* @__PURE__ */
|
|
4689
|
+
/* @__PURE__ */ le(
|
|
4678
4690
|
Ta,
|
|
4679
4691
|
{
|
|
4680
4692
|
horizontalDisplay: n,
|
|
4681
4693
|
verticalDisplay: o,
|
|
4682
|
-
children: /* @__PURE__ */
|
|
4683
|
-
|
|
4694
|
+
children: /* @__PURE__ */ le(
|
|
4695
|
+
Tr,
|
|
4684
4696
|
{
|
|
4685
|
-
items: [...
|
|
4686
|
-
strategy: o ?
|
|
4687
|
-
children:
|
|
4697
|
+
items: [...Pe],
|
|
4698
|
+
strategy: o ? Or : na,
|
|
4699
|
+
children: Pe.map((p) => /* @__PURE__ */ le(
|
|
4688
4700
|
Pa,
|
|
4689
4701
|
{
|
|
4690
4702
|
id: p,
|
|
4691
|
-
label: b ? void 0 :
|
|
4703
|
+
label: b ? void 0 : mt(p),
|
|
4692
4704
|
items: F[p],
|
|
4693
4705
|
color: B,
|
|
4694
4706
|
scrollable: S,
|
|
4695
4707
|
style: u,
|
|
4696
4708
|
unstyled: b,
|
|
4697
4709
|
containerId: p,
|
|
4698
|
-
renderFooterContent:
|
|
4710
|
+
renderFooterContent: _e,
|
|
4699
4711
|
maxContainerHeight: E,
|
|
4700
4712
|
...R,
|
|
4701
|
-
children: /* @__PURE__ */
|
|
4713
|
+
children: /* @__PURE__ */ le(Tr, { items: F[p], strategy: x, children: F[p].map((m, N) => /* @__PURE__ */ le(
|
|
4702
4714
|
$a,
|
|
4703
4715
|
{
|
|
4704
|
-
disabled:
|
|
4716
|
+
disabled: Ue || (m == null ? void 0 : m.disabled),
|
|
4705
4717
|
id: m.id,
|
|
4706
4718
|
item: m,
|
|
4707
4719
|
index: N,
|
|
@@ -4723,8 +4735,8 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4723
4735
|
)
|
|
4724
4736
|
}
|
|
4725
4737
|
),
|
|
4726
|
-
|
|
4727
|
-
/* @__PURE__ */
|
|
4738
|
+
Mt.createPortal(
|
|
4739
|
+
/* @__PURE__ */ le(Qs, { adjustScale: i, dropAnimation: Ma, children: ue ? Pe.includes(ue) ? je(ue) : Qe(ue) : null }),
|
|
4728
4740
|
document.body
|
|
4729
4741
|
)
|
|
4730
4742
|
]
|
|
@@ -4732,29 +4744,29 @@ const Rt = /* @__PURE__ */ bi(Ia), Oa = Pt.div``, Ta = Pt.div`
|
|
|
4732
4744
|
) });
|
|
4733
4745
|
});
|
|
4734
4746
|
Ba.propTypes = {
|
|
4735
|
-
horizontalDisplay:
|
|
4736
|
-
verticalDisplay:
|
|
4737
|
-
adjustScale:
|
|
4747
|
+
horizontalDisplay: k.bool,
|
|
4748
|
+
verticalDisplay: k.bool,
|
|
4749
|
+
adjustScale: k.bool,
|
|
4738
4750
|
//Number of items in container
|
|
4739
|
-
itemCount:
|
|
4740
|
-
cancelDrop:
|
|
4751
|
+
itemCount: k.bool,
|
|
4752
|
+
cancelDrop: k.func,
|
|
4741
4753
|
/**
|
|
4742
4754
|
* type of: [{id: `<string | number>`, content: `<string | element>`}, ...]
|
|
4743
4755
|
*/
|
|
4744
|
-
columns:
|
|
4745
|
-
handle:
|
|
4756
|
+
columns: k.array,
|
|
4757
|
+
handle: k.bool,
|
|
4746
4758
|
// containerStyle,
|
|
4747
4759
|
// coordinateGetter = multipleContainersCoordinateGetter,
|
|
4748
|
-
getItemStyles:
|
|
4749
|
-
wrapperStyle:
|
|
4750
|
-
minimal:
|
|
4760
|
+
getItemStyles: k.func,
|
|
4761
|
+
wrapperStyle: k.func,
|
|
4762
|
+
minimal: k.bool,
|
|
4751
4763
|
// modifiers,
|
|
4752
|
-
renderItem:
|
|
4764
|
+
renderItem: k.func,
|
|
4753
4765
|
// strategy = verticalListSortingStrategy,
|
|
4754
|
-
scrollable:
|
|
4755
|
-
cardProps:
|
|
4756
|
-
headerProps:
|
|
4757
|
-
footerProps:
|
|
4766
|
+
scrollable: k.bool,
|
|
4767
|
+
cardProps: k.any,
|
|
4768
|
+
headerProps: k.any,
|
|
4769
|
+
footerProps: k.any,
|
|
4758
4770
|
//---------------------------
|
|
4759
4771
|
/**
|
|
4760
4772
|
* Type of:
|
|
@@ -4764,19 +4776,19 @@ Ba.propTypes = {
|
|
|
4764
4776
|
* content< element >,
|
|
4765
4777
|
* color< "primary" | "secondary" | "danger" | "warning" | "information" | "neutral" >]}] }
|
|
4766
4778
|
*/
|
|
4767
|
-
data:
|
|
4768
|
-
columnInfo:
|
|
4769
|
-
onColumnMoved:
|
|
4770
|
-
onCardMoved:
|
|
4771
|
-
onCardChangedColumns:
|
|
4779
|
+
data: k.object,
|
|
4780
|
+
columnInfo: k.object,
|
|
4781
|
+
onColumnMoved: k.func,
|
|
4782
|
+
onCardMoved: k.func,
|
|
4783
|
+
onCardChangedColumns: k.func,
|
|
4772
4784
|
/**
|
|
4773
4785
|
* Max height of column container (cards list) before scroll appears.
|
|
4774
4786
|
*/
|
|
4775
|
-
maxContainerHeight:
|
|
4787
|
+
maxContainerHeight: k.string,
|
|
4776
4788
|
//----------------
|
|
4777
|
-
className:
|
|
4778
|
-
style:
|
|
4779
|
-
color:
|
|
4789
|
+
className: k.string,
|
|
4790
|
+
style: k.object,
|
|
4791
|
+
color: k.oneOf([
|
|
4780
4792
|
"primary",
|
|
4781
4793
|
"secondary",
|
|
4782
4794
|
"success",
|
|
@@ -4786,7 +4798,7 @@ Ba.propTypes = {
|
|
|
4786
4798
|
"neutral",
|
|
4787
4799
|
"gray"
|
|
4788
4800
|
]),
|
|
4789
|
-
size:
|
|
4801
|
+
size: k.oneOf(["small", "medium", "large"])
|
|
4790
4802
|
};
|
|
4791
4803
|
export {
|
|
4792
4804
|
Ba as default
|