bitz-react-admin-ui 2.1.9 → 2.2.0
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/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +26 -22
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +61 -61
- package/dist/components/BitzTable/SelectionBar/Button.d.ts +2 -3
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -25
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +24 -21
- package/dist/components/BitzTable/Store/index.d.ts +43 -22
- package/dist/components/BitzTable/Store/index.mjs +128 -125
- package/dist/components/BitzTable/Store/utils/index.d.ts +4 -5
- package/dist/components/BitzTable/Store/utils/index.mjs +31 -31
- package/dist/components/BitzTable/SubTable/index.mjs +90 -106
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +12 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +25 -0
- package/dist/components/BitzTable/Table/SortableRow.d.ts +7 -0
- package/dist/components/BitzTable/Table/SortableRow.mjs +54 -0
- package/dist/components/BitzTable/Table/index.d.ts +5 -0
- package/dist/components/BitzTable/Table/index.mjs +265 -244
- package/dist/components/BitzTable/Table/utils.mjs +17 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +1 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +84 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +5 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +66 -60
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +78 -72
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +1 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +190 -189
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.d.ts +8 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +94 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +10 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +58 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +13 -7
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +119 -80
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +26 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +3 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +53 -77
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +2 -2
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +12 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +61 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +50 -59
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +27 -32
- package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +18 -0
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +50 -0
- package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +58 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -20
- package/dist/components/BitzTable/ToolBar/index.d.ts +12 -11
- package/dist/components/BitzTable/index.d.ts +2 -0
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
- package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1098 -753
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/findNode.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/BitzTable/Select/index.mjs +0 -11
- package/dist/components/BitzTable/Select/style.mjs +0 -66
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +0 -78
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +0 -47
package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { unstable_batchedUpdates as De, createPortal as
|
|
3
|
-
import { getWindow as
|
|
4
|
-
import { useAnnouncement as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
const t =
|
|
8
|
-
|
|
1
|
+
import A, { createContext as Oe, memo as yn, useReducer as st, useState as Y, useRef as z, useMemo as L, useCallback as U, useEffect as N, useContext as ae, cloneElement as mn, forwardRef as wn } from "react";
|
|
2
|
+
import { unstable_batchedUpdates as De, createPortal as Dn } from "react-dom";
|
|
3
|
+
import { getWindow as q, useLatestValue as Re, useUniqueId as Ye, getEventCoordinates as Fe, add as he, useIsomorphicLayoutEffect as re, useInterval as xn, usePrevious as $e, useLazyMemo as Ae, subtract as Ke, canUseDOM as at, isHTMLElement as Ue, useNodeRef as Xe, isKeyboardEvent as lt, findFirstFocusableNode as Cn, CSS as nt, useEvent as ct, isWindow as ut, isNode as Sn, isDocument as Yt, getOwnerDocument as ge, isSVGElement as Rn } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
|
|
4
|
+
import { useAnnouncement as En, HiddenText as On, LiveRegion as An } from "../../../../../@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs";
|
|
5
|
+
const Ut = /* @__PURE__ */ Oe(null);
|
|
6
|
+
function Nn(e) {
|
|
7
|
+
const t = ae(Ut);
|
|
8
|
+
N(() => {
|
|
9
9
|
if (!t)
|
|
10
10
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
11
11
|
return t(e);
|
|
12
12
|
}, [e, t]);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const [e] =
|
|
16
|
-
return [
|
|
14
|
+
function Mn() {
|
|
15
|
+
const [e] = Y(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
16
|
+
return [U((r) => {
|
|
17
17
|
let {
|
|
18
18
|
type: i,
|
|
19
19
|
event: o
|
|
20
20
|
} = r;
|
|
21
21
|
e.forEach((s) => {
|
|
22
|
-
var
|
|
23
|
-
return (
|
|
22
|
+
var a;
|
|
23
|
+
return (a = s[i]) == null ? void 0 : a.call(s, o);
|
|
24
24
|
});
|
|
25
25
|
}, [e]), t];
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const Tn = {
|
|
28
28
|
draggable: `
|
|
29
29
|
To pick up a draggable item, press the space bar.
|
|
30
30
|
While dragging, use the arrow keys to move the item.
|
|
31
31
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
32
32
|
`
|
|
33
|
-
},
|
|
33
|
+
}, Ln = {
|
|
34
34
|
onDragStart(e) {
|
|
35
35
|
let {
|
|
36
36
|
active: t
|
|
@@ -58,90 +58,115 @@ const Dn = {
|
|
|
58
58
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function
|
|
61
|
+
function kn(e) {
|
|
62
62
|
let {
|
|
63
|
-
announcements: t =
|
|
63
|
+
announcements: t = Ln,
|
|
64
64
|
container: n,
|
|
65
65
|
hiddenTextDescribedById: r,
|
|
66
|
-
screenReaderInstructions: i =
|
|
66
|
+
screenReaderInstructions: i = Tn
|
|
67
67
|
} = e;
|
|
68
68
|
const {
|
|
69
69
|
announce: o,
|
|
70
70
|
announcement: s
|
|
71
|
-
} =
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
}, []),
|
|
75
|
-
onDragStart(
|
|
71
|
+
} = En(), a = Ye("DndLiveRegion"), [l, c] = Y(!1);
|
|
72
|
+
if (N(() => {
|
|
73
|
+
c(!0);
|
|
74
|
+
}, []), Nn(L(() => ({
|
|
75
|
+
onDragStart(u) {
|
|
76
76
|
let {
|
|
77
77
|
active: g
|
|
78
|
-
} =
|
|
78
|
+
} = u;
|
|
79
79
|
o(t.onDragStart({
|
|
80
80
|
active: g
|
|
81
81
|
}));
|
|
82
82
|
},
|
|
83
|
-
onDragMove(
|
|
83
|
+
onDragMove(u) {
|
|
84
84
|
let {
|
|
85
85
|
active: g,
|
|
86
86
|
over: f
|
|
87
|
-
} =
|
|
87
|
+
} = u;
|
|
88
88
|
t.onDragMove && o(t.onDragMove({
|
|
89
89
|
active: g,
|
|
90
90
|
over: f
|
|
91
91
|
}));
|
|
92
92
|
},
|
|
93
|
-
onDragOver(
|
|
93
|
+
onDragOver(u) {
|
|
94
94
|
let {
|
|
95
95
|
active: g,
|
|
96
96
|
over: f
|
|
97
|
-
} =
|
|
97
|
+
} = u;
|
|
98
98
|
o(t.onDragOver({
|
|
99
99
|
active: g,
|
|
100
100
|
over: f
|
|
101
101
|
}));
|
|
102
102
|
},
|
|
103
|
-
onDragEnd(
|
|
103
|
+
onDragEnd(u) {
|
|
104
104
|
let {
|
|
105
105
|
active: g,
|
|
106
106
|
over: f
|
|
107
|
-
} =
|
|
107
|
+
} = u;
|
|
108
108
|
o(t.onDragEnd({
|
|
109
109
|
active: g,
|
|
110
110
|
over: f
|
|
111
111
|
}));
|
|
112
112
|
},
|
|
113
|
-
onDragCancel(
|
|
113
|
+
onDragCancel(u) {
|
|
114
114
|
let {
|
|
115
115
|
active: g,
|
|
116
116
|
over: f
|
|
117
|
-
} =
|
|
117
|
+
} = u;
|
|
118
118
|
o(t.onDragCancel({
|
|
119
119
|
active: g,
|
|
120
120
|
over: f
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
|
-
}), [o, t])), !
|
|
123
|
+
}), [o, t])), !l)
|
|
124
124
|
return null;
|
|
125
|
-
const d =
|
|
125
|
+
const d = A.createElement(A.Fragment, null, A.createElement(On, {
|
|
126
126
|
id: r,
|
|
127
127
|
value: i.draggable
|
|
128
|
-
}),
|
|
129
|
-
id:
|
|
128
|
+
}), A.createElement(An, {
|
|
129
|
+
id: a,
|
|
130
130
|
announcement: s
|
|
131
131
|
}));
|
|
132
|
-
return n ?
|
|
132
|
+
return n ? Dn(d, n) : d;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var O;
|
|
135
135
|
(function(e) {
|
|
136
136
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
137
|
-
})(
|
|
138
|
-
function
|
|
137
|
+
})(O || (O = {}));
|
|
138
|
+
function je() {
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const _ = /* @__PURE__ */ Object.freeze({
|
|
141
141
|
x: 0,
|
|
142
142
|
y: 0
|
|
143
143
|
});
|
|
144
|
-
function
|
|
144
|
+
function In(e, t) {
|
|
145
|
+
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
146
|
+
}
|
|
147
|
+
function zn(e, t) {
|
|
148
|
+
const n = Fe(e);
|
|
149
|
+
if (!n)
|
|
150
|
+
return "0 0";
|
|
151
|
+
const r = {
|
|
152
|
+
x: (n.x - t.left) / t.width * 100,
|
|
153
|
+
y: (n.y - t.top) / t.height * 100
|
|
154
|
+
};
|
|
155
|
+
return r.x + "% " + r.y + "%";
|
|
156
|
+
}
|
|
157
|
+
function Pn(e, t) {
|
|
158
|
+
let {
|
|
159
|
+
data: {
|
|
160
|
+
value: n
|
|
161
|
+
}
|
|
162
|
+
} = e, {
|
|
163
|
+
data: {
|
|
164
|
+
value: r
|
|
165
|
+
}
|
|
166
|
+
} = t;
|
|
167
|
+
return n - r;
|
|
168
|
+
}
|
|
169
|
+
function Bn(e, t) {
|
|
145
170
|
let {
|
|
146
171
|
data: {
|
|
147
172
|
value: n
|
|
@@ -153,21 +178,51 @@ function Sn(e, t) {
|
|
|
153
178
|
} = t;
|
|
154
179
|
return r - n;
|
|
155
180
|
}
|
|
156
|
-
function
|
|
181
|
+
function Fn(e, t) {
|
|
157
182
|
if (!e || e.length === 0)
|
|
158
183
|
return null;
|
|
159
184
|
const [n] = e;
|
|
160
185
|
return t ? n[t] : n;
|
|
161
186
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
187
|
+
function kt(e, t, n) {
|
|
188
|
+
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
189
|
+
x: t + e.width * 0.5,
|
|
190
|
+
y: n + e.height * 0.5
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
const Zr = (e) => {
|
|
194
|
+
let {
|
|
195
|
+
collisionRect: t,
|
|
196
|
+
droppableRects: n,
|
|
197
|
+
droppableContainers: r
|
|
198
|
+
} = e;
|
|
199
|
+
const i = kt(t, t.left, t.top), o = [];
|
|
200
|
+
for (const s of r) {
|
|
201
|
+
const {
|
|
202
|
+
id: a
|
|
203
|
+
} = s, l = n.get(a);
|
|
204
|
+
if (l) {
|
|
205
|
+
const c = In(kt(l), i);
|
|
206
|
+
o.push({
|
|
207
|
+
id: a,
|
|
208
|
+
data: {
|
|
209
|
+
droppableContainer: s,
|
|
210
|
+
value: c
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return o.sort(Pn);
|
|
216
|
+
};
|
|
217
|
+
function $n(e, t) {
|
|
218
|
+
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), s = i - r, a = o - n;
|
|
164
219
|
if (r < i && n < o) {
|
|
165
|
-
const
|
|
166
|
-
return Number(
|
|
220
|
+
const l = t.width * t.height, c = e.width * e.height, d = s * a, u = d / (l + c - d);
|
|
221
|
+
return Number(u.toFixed(4));
|
|
167
222
|
}
|
|
168
223
|
return 0;
|
|
169
224
|
}
|
|
170
|
-
const
|
|
225
|
+
const Kn = (e) => {
|
|
171
226
|
let {
|
|
172
227
|
collisionRect: t,
|
|
173
228
|
droppableRects: n,
|
|
@@ -177,50 +232,50 @@ const Mn = (e) => {
|
|
|
177
232
|
for (const o of r) {
|
|
178
233
|
const {
|
|
179
234
|
id: s
|
|
180
|
-
} = o,
|
|
181
|
-
if (
|
|
182
|
-
const
|
|
183
|
-
|
|
235
|
+
} = o, a = n.get(s);
|
|
236
|
+
if (a) {
|
|
237
|
+
const l = $n(a, t);
|
|
238
|
+
l > 0 && i.push({
|
|
184
239
|
id: s,
|
|
185
240
|
data: {
|
|
186
241
|
droppableContainer: o,
|
|
187
|
-
value:
|
|
242
|
+
value: l
|
|
188
243
|
}
|
|
189
244
|
});
|
|
190
245
|
}
|
|
191
246
|
}
|
|
192
|
-
return i.sort(
|
|
247
|
+
return i.sort(Bn);
|
|
193
248
|
};
|
|
194
|
-
function
|
|
249
|
+
function Xn(e, t, n) {
|
|
195
250
|
return {
|
|
196
251
|
...e,
|
|
197
252
|
scaleX: t && n ? t.width / n.width : 1,
|
|
198
253
|
scaleY: t && n ? t.height / n.height : 1
|
|
199
254
|
};
|
|
200
255
|
}
|
|
201
|
-
function
|
|
256
|
+
function _t(e, t) {
|
|
202
257
|
return e && t ? {
|
|
203
258
|
x: e.left - t.left,
|
|
204
259
|
y: e.top - t.top
|
|
205
|
-
} :
|
|
260
|
+
} : _;
|
|
206
261
|
}
|
|
207
|
-
function
|
|
262
|
+
function jn(e) {
|
|
208
263
|
return function(n) {
|
|
209
264
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
210
265
|
i[o - 1] = arguments[o];
|
|
211
|
-
return i.reduce((s,
|
|
266
|
+
return i.reduce((s, a) => ({
|
|
212
267
|
...s,
|
|
213
|
-
top: s.top + e *
|
|
214
|
-
bottom: s.bottom + e *
|
|
215
|
-
left: s.left + e *
|
|
216
|
-
right: s.right + e *
|
|
268
|
+
top: s.top + e * a.y,
|
|
269
|
+
bottom: s.bottom + e * a.y,
|
|
270
|
+
left: s.left + e * a.x,
|
|
271
|
+
right: s.right + e * a.x
|
|
217
272
|
}), {
|
|
218
273
|
...n
|
|
219
274
|
});
|
|
220
275
|
};
|
|
221
276
|
}
|
|
222
|
-
const
|
|
223
|
-
function
|
|
277
|
+
const Wn = /* @__PURE__ */ jn(1);
|
|
278
|
+
function Ht(e) {
|
|
224
279
|
if (e.startsWith("matrix3d(")) {
|
|
225
280
|
const t = e.slice(9, -1).split(/, /);
|
|
226
281
|
return {
|
|
@@ -240,61 +295,61 @@ function Ln(e) {
|
|
|
240
295
|
}
|
|
241
296
|
return null;
|
|
242
297
|
}
|
|
243
|
-
function
|
|
244
|
-
const r =
|
|
298
|
+
function Yn(e, t, n) {
|
|
299
|
+
const r = Ht(t);
|
|
245
300
|
if (!r)
|
|
246
301
|
return e;
|
|
247
302
|
const {
|
|
248
303
|
scaleX: i,
|
|
249
304
|
scaleY: o,
|
|
250
305
|
x: s,
|
|
251
|
-
y:
|
|
252
|
-
} = r,
|
|
306
|
+
y: a
|
|
307
|
+
} = r, l = e.left - s - (1 - i) * parseFloat(n), c = e.top - a - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = o ? e.height / o : e.height;
|
|
253
308
|
return {
|
|
254
309
|
width: d,
|
|
255
|
-
height:
|
|
256
|
-
top:
|
|
257
|
-
right:
|
|
258
|
-
bottom:
|
|
259
|
-
left:
|
|
310
|
+
height: u,
|
|
311
|
+
top: c,
|
|
312
|
+
right: l + d,
|
|
313
|
+
bottom: c + u,
|
|
314
|
+
left: l
|
|
260
315
|
};
|
|
261
316
|
}
|
|
262
|
-
const
|
|
317
|
+
const Un = {
|
|
263
318
|
ignoreTransform: !1
|
|
264
319
|
};
|
|
265
|
-
function
|
|
266
|
-
t === void 0 && (t =
|
|
320
|
+
function Ne(e, t) {
|
|
321
|
+
t === void 0 && (t = Un);
|
|
267
322
|
let n = e.getBoundingClientRect();
|
|
268
323
|
if (t.ignoreTransform) {
|
|
269
324
|
const {
|
|
270
|
-
transform:
|
|
325
|
+
transform: c,
|
|
271
326
|
transformOrigin: d
|
|
272
|
-
} =
|
|
273
|
-
|
|
327
|
+
} = q(e).getComputedStyle(e);
|
|
328
|
+
c && (n = Yn(n, c, d));
|
|
274
329
|
}
|
|
275
330
|
const {
|
|
276
331
|
top: r,
|
|
277
332
|
left: i,
|
|
278
333
|
width: o,
|
|
279
334
|
height: s,
|
|
280
|
-
bottom:
|
|
281
|
-
right:
|
|
335
|
+
bottom: a,
|
|
336
|
+
right: l
|
|
282
337
|
} = n;
|
|
283
338
|
return {
|
|
284
339
|
top: r,
|
|
285
340
|
left: i,
|
|
286
341
|
width: o,
|
|
287
342
|
height: s,
|
|
288
|
-
bottom:
|
|
289
|
-
right:
|
|
343
|
+
bottom: a,
|
|
344
|
+
right: l
|
|
290
345
|
};
|
|
291
346
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
347
|
+
function It(e) {
|
|
348
|
+
return Ne(e, {
|
|
294
349
|
ignoreTransform: !0
|
|
295
350
|
});
|
|
296
351
|
}
|
|
297
|
-
function
|
|
352
|
+
function _n(e) {
|
|
298
353
|
const t = e.innerWidth, n = e.innerHeight;
|
|
299
354
|
return {
|
|
300
355
|
top: 0,
|
|
@@ -305,62 +360,62 @@ function kn(e) {
|
|
|
305
360
|
height: n
|
|
306
361
|
};
|
|
307
362
|
}
|
|
308
|
-
function
|
|
309
|
-
return t === void 0 && (t =
|
|
363
|
+
function Hn(e, t) {
|
|
364
|
+
return t === void 0 && (t = q(e).getComputedStyle(e)), t.position === "fixed";
|
|
310
365
|
}
|
|
311
|
-
function
|
|
312
|
-
t === void 0 && (t =
|
|
366
|
+
function qn(e, t) {
|
|
367
|
+
t === void 0 && (t = q(e).getComputedStyle(e));
|
|
313
368
|
const n = /(auto|scroll|overlay)/;
|
|
314
369
|
return ["overflow", "overflowX", "overflowY"].some((i) => {
|
|
315
370
|
const o = t[i];
|
|
316
371
|
return typeof o == "string" ? n.test(o) : !1;
|
|
317
372
|
});
|
|
318
373
|
}
|
|
319
|
-
function
|
|
374
|
+
function dt(e, t) {
|
|
320
375
|
const n = [];
|
|
321
376
|
function r(i) {
|
|
322
377
|
if (t != null && n.length >= t || !i)
|
|
323
378
|
return n;
|
|
324
|
-
if (
|
|
379
|
+
if (Yt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
|
|
325
380
|
return n.push(i.scrollingElement), n;
|
|
326
|
-
if (!
|
|
381
|
+
if (!Ue(i) || Rn(i) || n.includes(i))
|
|
327
382
|
return n;
|
|
328
|
-
const o =
|
|
329
|
-
return i !== e &&
|
|
383
|
+
const o = q(e).getComputedStyle(i);
|
|
384
|
+
return i !== e && qn(i, o) && n.push(i), Hn(i, o) ? n : r(i.parentNode);
|
|
330
385
|
}
|
|
331
386
|
return e ? r(e) : n;
|
|
332
387
|
}
|
|
333
|
-
function
|
|
334
|
-
const [t] =
|
|
388
|
+
function qt(e) {
|
|
389
|
+
const [t] = dt(e, 1);
|
|
335
390
|
return t ?? null;
|
|
336
391
|
}
|
|
337
|
-
function
|
|
338
|
-
return !
|
|
392
|
+
function Qe(e) {
|
|
393
|
+
return !at || !e ? null : ut(e) ? e : Sn(e) ? Yt(e) || e === ge(e).scrollingElement ? window : Ue(e) ? e : null : null;
|
|
339
394
|
}
|
|
340
|
-
function
|
|
341
|
-
return
|
|
395
|
+
function Jt(e) {
|
|
396
|
+
return ut(e) ? e.scrollX : e.scrollLeft;
|
|
342
397
|
}
|
|
343
|
-
function
|
|
344
|
-
return
|
|
398
|
+
function Vt(e) {
|
|
399
|
+
return ut(e) ? e.scrollY : e.scrollTop;
|
|
345
400
|
}
|
|
346
|
-
function
|
|
401
|
+
function rt(e) {
|
|
347
402
|
return {
|
|
348
|
-
x:
|
|
349
|
-
y:
|
|
403
|
+
x: Jt(e),
|
|
404
|
+
y: Vt(e)
|
|
350
405
|
};
|
|
351
406
|
}
|
|
352
|
-
var
|
|
407
|
+
var T;
|
|
353
408
|
(function(e) {
|
|
354
409
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
355
|
-
})(
|
|
356
|
-
function
|
|
357
|
-
return !
|
|
410
|
+
})(T || (T = {}));
|
|
411
|
+
function Gt(e) {
|
|
412
|
+
return !at || !e ? !1 : e === document.scrollingElement;
|
|
358
413
|
}
|
|
359
|
-
function
|
|
414
|
+
function Qt(e) {
|
|
360
415
|
const t = {
|
|
361
416
|
x: 0,
|
|
362
417
|
y: 0
|
|
363
|
-
}, n =
|
|
418
|
+
}, n = Gt(e) ? {
|
|
364
419
|
height: window.innerHeight,
|
|
365
420
|
width: window.innerWidth
|
|
366
421
|
} : {
|
|
@@ -369,49 +424,49 @@ function jt(e) {
|
|
|
369
424
|
}, r = {
|
|
370
425
|
x: e.scrollWidth - n.width,
|
|
371
426
|
y: e.scrollHeight - n.height
|
|
372
|
-
}, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y,
|
|
427
|
+
}, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
|
|
373
428
|
return {
|
|
374
429
|
isTop: i,
|
|
375
430
|
isLeft: o,
|
|
376
431
|
isBottom: s,
|
|
377
|
-
isRight:
|
|
432
|
+
isRight: a,
|
|
378
433
|
maxScroll: r,
|
|
379
434
|
minScroll: t
|
|
380
435
|
};
|
|
381
436
|
}
|
|
382
|
-
const
|
|
437
|
+
const Jn = {
|
|
383
438
|
x: 0.2,
|
|
384
439
|
y: 0.2
|
|
385
440
|
};
|
|
386
|
-
function
|
|
441
|
+
function Vn(e, t, n, r, i) {
|
|
387
442
|
let {
|
|
388
443
|
top: o,
|
|
389
444
|
left: s,
|
|
390
|
-
right:
|
|
391
|
-
bottom:
|
|
445
|
+
right: a,
|
|
446
|
+
bottom: l
|
|
392
447
|
} = n;
|
|
393
|
-
r === void 0 && (r = 10), i === void 0 && (i =
|
|
448
|
+
r === void 0 && (r = 10), i === void 0 && (i = Jn);
|
|
394
449
|
const {
|
|
395
|
-
isTop:
|
|
450
|
+
isTop: c,
|
|
396
451
|
isBottom: d,
|
|
397
|
-
isLeft:
|
|
452
|
+
isLeft: u,
|
|
398
453
|
isRight: g
|
|
399
|
-
} =
|
|
454
|
+
} = Qt(e), f = {
|
|
400
455
|
x: 0,
|
|
401
456
|
y: 0
|
|
402
|
-
},
|
|
457
|
+
}, D = {
|
|
403
458
|
x: 0,
|
|
404
459
|
y: 0
|
|
405
460
|
}, h = {
|
|
406
461
|
height: t.height * i.y,
|
|
407
462
|
width: t.width * i.x
|
|
408
463
|
};
|
|
409
|
-
return !
|
|
464
|
+
return !c && o <= t.top + h.height ? (f.y = T.Backward, D.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && l >= t.bottom - h.height && (f.y = T.Forward, D.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !g && a >= t.right - h.width ? (f.x = T.Forward, D.x = r * Math.abs((t.right - h.width - a) / h.width)) : !u && s <= t.left + h.width && (f.x = T.Backward, D.x = r * Math.abs((t.left + h.width - s) / h.width)), {
|
|
410
465
|
direction: f,
|
|
411
|
-
speed:
|
|
466
|
+
speed: D
|
|
412
467
|
};
|
|
413
468
|
}
|
|
414
|
-
function
|
|
469
|
+
function Gn(e) {
|
|
415
470
|
if (e === document.scrollingElement) {
|
|
416
471
|
const {
|
|
417
472
|
innerWidth: o,
|
|
@@ -441,17 +496,17 @@ function $n(e) {
|
|
|
441
496
|
height: e.clientHeight
|
|
442
497
|
};
|
|
443
498
|
}
|
|
444
|
-
function
|
|
445
|
-
return e.reduce((t, n) =>
|
|
499
|
+
function Zt(e) {
|
|
500
|
+
return e.reduce((t, n) => he(t, rt(n)), _);
|
|
446
501
|
}
|
|
447
|
-
function
|
|
448
|
-
return e.reduce((t, n) => t +
|
|
502
|
+
function Qn(e) {
|
|
503
|
+
return e.reduce((t, n) => t + Jt(n), 0);
|
|
449
504
|
}
|
|
450
|
-
function
|
|
451
|
-
return e.reduce((t, n) => t +
|
|
505
|
+
function Zn(e) {
|
|
506
|
+
return e.reduce((t, n) => t + Vt(n), 0);
|
|
452
507
|
}
|
|
453
|
-
function
|
|
454
|
-
if (t === void 0 && (t =
|
|
508
|
+
function en(e, t) {
|
|
509
|
+
if (t === void 0 && (t = Ne), !e)
|
|
455
510
|
return;
|
|
456
511
|
const {
|
|
457
512
|
top: n,
|
|
@@ -459,25 +514,25 @@ function Xn(e, t) {
|
|
|
459
514
|
bottom: i,
|
|
460
515
|
right: o
|
|
461
516
|
} = t(e);
|
|
462
|
-
|
|
517
|
+
qt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
463
518
|
block: "center",
|
|
464
519
|
inline: "center"
|
|
465
520
|
});
|
|
466
521
|
}
|
|
467
|
-
const
|
|
468
|
-
class
|
|
522
|
+
const er = [["x", ["left", "right"], Qn], ["y", ["top", "bottom"], Zn]];
|
|
523
|
+
class ft {
|
|
469
524
|
constructor(t, n) {
|
|
470
525
|
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;
|
|
471
|
-
const r =
|
|
526
|
+
const r = dt(n), i = Zt(r);
|
|
472
527
|
this.rect = {
|
|
473
528
|
...t
|
|
474
529
|
}, this.width = t.width, this.height = t.height;
|
|
475
|
-
for (const [o, s,
|
|
476
|
-
for (const
|
|
477
|
-
Object.defineProperty(this,
|
|
530
|
+
for (const [o, s, a] of er)
|
|
531
|
+
for (const l of s)
|
|
532
|
+
Object.defineProperty(this, l, {
|
|
478
533
|
get: () => {
|
|
479
|
-
const
|
|
480
|
-
return this.rect[
|
|
534
|
+
const c = a(r), d = i[o] - c;
|
|
535
|
+
return this.rect[l] + d;
|
|
481
536
|
},
|
|
482
537
|
enumerable: !0
|
|
483
538
|
});
|
|
@@ -500,62 +555,62 @@ class xe {
|
|
|
500
555
|
(i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
501
556
|
}
|
|
502
557
|
}
|
|
503
|
-
function
|
|
558
|
+
function tr(e) {
|
|
504
559
|
const {
|
|
505
560
|
EventTarget: t
|
|
506
|
-
} =
|
|
561
|
+
} = q(e);
|
|
507
562
|
return e instanceof t ? e : ge(e);
|
|
508
563
|
}
|
|
509
|
-
function
|
|
564
|
+
function Ze(e, t) {
|
|
510
565
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
511
566
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
512
567
|
}
|
|
513
|
-
var
|
|
568
|
+
var $;
|
|
514
569
|
(function(e) {
|
|
515
570
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
516
|
-
})(
|
|
517
|
-
function
|
|
571
|
+
})($ || ($ = {}));
|
|
572
|
+
function zt(e) {
|
|
518
573
|
e.preventDefault();
|
|
519
574
|
}
|
|
520
|
-
function
|
|
575
|
+
function nr(e) {
|
|
521
576
|
e.stopPropagation();
|
|
522
577
|
}
|
|
523
|
-
var
|
|
578
|
+
var x;
|
|
524
579
|
(function(e) {
|
|
525
580
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter";
|
|
526
|
-
})(
|
|
527
|
-
const
|
|
528
|
-
start: [
|
|
529
|
-
cancel: [
|
|
530
|
-
end: [
|
|
531
|
-
},
|
|
581
|
+
})(x || (x = {}));
|
|
582
|
+
const tn = {
|
|
583
|
+
start: [x.Space, x.Enter],
|
|
584
|
+
cancel: [x.Esc],
|
|
585
|
+
end: [x.Space, x.Enter]
|
|
586
|
+
}, rr = (e, t) => {
|
|
532
587
|
let {
|
|
533
588
|
currentCoordinates: n
|
|
534
589
|
} = t;
|
|
535
590
|
switch (e.code) {
|
|
536
|
-
case
|
|
591
|
+
case x.Right:
|
|
537
592
|
return {
|
|
538
593
|
...n,
|
|
539
594
|
x: n.x + 25
|
|
540
595
|
};
|
|
541
|
-
case
|
|
596
|
+
case x.Left:
|
|
542
597
|
return {
|
|
543
598
|
...n,
|
|
544
599
|
x: n.x - 25
|
|
545
600
|
};
|
|
546
|
-
case
|
|
601
|
+
case x.Down:
|
|
547
602
|
return {
|
|
548
603
|
...n,
|
|
549
604
|
y: n.y + 25
|
|
550
605
|
};
|
|
551
|
-
case
|
|
606
|
+
case x.Up:
|
|
552
607
|
return {
|
|
553
608
|
...n,
|
|
554
609
|
y: n.y - 25
|
|
555
610
|
};
|
|
556
611
|
}
|
|
557
612
|
};
|
|
558
|
-
class
|
|
613
|
+
class nn {
|
|
559
614
|
constructor(t) {
|
|
560
615
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
561
616
|
const {
|
|
@@ -563,101 +618,101 @@ class Jt {
|
|
|
563
618
|
target: n
|
|
564
619
|
}
|
|
565
620
|
} = t;
|
|
566
|
-
this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(
|
|
621
|
+
this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(q(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
567
622
|
}
|
|
568
623
|
attach() {
|
|
569
|
-
this.handleStart(), this.windowListeners.add(
|
|
624
|
+
this.handleStart(), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add($.Keydown, this.handleKeyDown));
|
|
570
625
|
}
|
|
571
626
|
handleStart() {
|
|
572
627
|
const {
|
|
573
628
|
activeNode: t,
|
|
574
629
|
onStart: n
|
|
575
630
|
} = this.props, r = t.node.current;
|
|
576
|
-
r &&
|
|
631
|
+
r && en(r), n(_);
|
|
577
632
|
}
|
|
578
633
|
handleKeyDown(t) {
|
|
579
|
-
if (
|
|
634
|
+
if (lt(t)) {
|
|
580
635
|
const {
|
|
581
636
|
active: n,
|
|
582
637
|
context: r,
|
|
583
638
|
options: i
|
|
584
639
|
} = this.props, {
|
|
585
|
-
keyboardCodes: o =
|
|
586
|
-
coordinateGetter: s =
|
|
587
|
-
scrollBehavior:
|
|
640
|
+
keyboardCodes: o = tn,
|
|
641
|
+
coordinateGetter: s = rr,
|
|
642
|
+
scrollBehavior: a = "smooth"
|
|
588
643
|
} = i, {
|
|
589
|
-
code:
|
|
644
|
+
code: l
|
|
590
645
|
} = t;
|
|
591
|
-
if (o.end.includes(
|
|
646
|
+
if (o.end.includes(l)) {
|
|
592
647
|
this.handleEnd(t);
|
|
593
648
|
return;
|
|
594
649
|
}
|
|
595
|
-
if (o.cancel.includes(
|
|
650
|
+
if (o.cancel.includes(l)) {
|
|
596
651
|
this.handleCancel(t);
|
|
597
652
|
return;
|
|
598
653
|
}
|
|
599
654
|
const {
|
|
600
|
-
collisionRect:
|
|
601
|
-
} = r.current, d =
|
|
602
|
-
x:
|
|
603
|
-
y:
|
|
604
|
-
} :
|
|
655
|
+
collisionRect: c
|
|
656
|
+
} = r.current, d = c ? {
|
|
657
|
+
x: c.left,
|
|
658
|
+
y: c.top
|
|
659
|
+
} : _;
|
|
605
660
|
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
606
|
-
const
|
|
661
|
+
const u = s(t, {
|
|
607
662
|
active: n,
|
|
608
663
|
context: r.current,
|
|
609
664
|
currentCoordinates: d
|
|
610
665
|
});
|
|
611
|
-
if (
|
|
612
|
-
const g =
|
|
666
|
+
if (u) {
|
|
667
|
+
const g = Ke(u, d), f = {
|
|
613
668
|
x: 0,
|
|
614
669
|
y: 0
|
|
615
670
|
}, {
|
|
616
|
-
scrollableAncestors:
|
|
671
|
+
scrollableAncestors: D
|
|
617
672
|
} = r.current;
|
|
618
|
-
for (const h of
|
|
673
|
+
for (const h of D) {
|
|
619
674
|
const v = t.code, {
|
|
620
|
-
isTop:
|
|
621
|
-
isRight:
|
|
622
|
-
isLeft:
|
|
623
|
-
isBottom:
|
|
624
|
-
maxScroll:
|
|
675
|
+
isTop: b,
|
|
676
|
+
isRight: w,
|
|
677
|
+
isLeft: y,
|
|
678
|
+
isBottom: M,
|
|
679
|
+
maxScroll: C,
|
|
625
680
|
minScroll: S
|
|
626
|
-
} =
|
|
627
|
-
x: Math.min(v ===
|
|
628
|
-
y: Math.min(v ===
|
|
629
|
-
},
|
|
630
|
-
if (
|
|
631
|
-
const
|
|
632
|
-
if (
|
|
681
|
+
} = Qt(h), p = Gn(h), m = {
|
|
682
|
+
x: Math.min(v === x.Right ? p.right - p.width / 2 : p.right, Math.max(v === x.Right ? p.left : p.left + p.width / 2, u.x)),
|
|
683
|
+
y: Math.min(v === x.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === x.Down ? p.top : p.top + p.height / 2, u.y))
|
|
684
|
+
}, R = v === x.Right && !w || v === x.Left && !y, k = v === x.Down && !M || v === x.Up && !b;
|
|
685
|
+
if (R && m.x !== u.x) {
|
|
686
|
+
const E = h.scrollLeft + g.x, J = v === x.Right && E <= C.x || v === x.Left && E >= S.x;
|
|
687
|
+
if (J && !g.y) {
|
|
633
688
|
h.scrollTo({
|
|
634
|
-
left:
|
|
635
|
-
behavior:
|
|
689
|
+
left: E,
|
|
690
|
+
behavior: a
|
|
636
691
|
});
|
|
637
692
|
return;
|
|
638
693
|
}
|
|
639
|
-
|
|
694
|
+
J ? f.x = h.scrollLeft - E : f.x = v === x.Right ? h.scrollLeft - C.x : h.scrollLeft - S.x, f.x && h.scrollBy({
|
|
640
695
|
left: -f.x,
|
|
641
|
-
behavior:
|
|
696
|
+
behavior: a
|
|
642
697
|
});
|
|
643
698
|
break;
|
|
644
|
-
} else if (k &&
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
699
|
+
} else if (k && m.y !== u.y) {
|
|
700
|
+
const E = h.scrollTop + g.y, J = v === x.Down && E <= C.y || v === x.Up && E >= S.y;
|
|
701
|
+
if (J && !g.x) {
|
|
647
702
|
h.scrollTo({
|
|
648
|
-
top:
|
|
649
|
-
behavior:
|
|
703
|
+
top: E,
|
|
704
|
+
behavior: a
|
|
650
705
|
});
|
|
651
706
|
return;
|
|
652
707
|
}
|
|
653
|
-
|
|
708
|
+
J ? f.y = h.scrollTop - E : f.y = v === x.Down ? h.scrollTop - C.y : h.scrollTop - S.y, f.y && h.scrollBy({
|
|
654
709
|
top: -f.y,
|
|
655
|
-
behavior:
|
|
710
|
+
behavior: a
|
|
656
711
|
});
|
|
657
712
|
break;
|
|
658
713
|
}
|
|
659
714
|
}
|
|
660
|
-
this.handleMove(t,
|
|
715
|
+
this.handleMove(t, he(Ke(u, this.referenceCoordinates), f));
|
|
661
716
|
}
|
|
662
717
|
}
|
|
663
718
|
}
|
|
@@ -683,11 +738,11 @@ class Jt {
|
|
|
683
738
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
684
739
|
}
|
|
685
740
|
}
|
|
686
|
-
|
|
741
|
+
nn.activators = [{
|
|
687
742
|
eventName: "onKeyDown",
|
|
688
743
|
handler: (e, t, n) => {
|
|
689
744
|
let {
|
|
690
|
-
keyboardCodes: r =
|
|
745
|
+
keyboardCodes: r = tn,
|
|
691
746
|
onActivation: i
|
|
692
747
|
} = t, {
|
|
693
748
|
active: o
|
|
@@ -696,30 +751,30 @@ Jt.activators = [{
|
|
|
696
751
|
code: s
|
|
697
752
|
} = e.nativeEvent;
|
|
698
753
|
if (r.start.includes(s)) {
|
|
699
|
-
const
|
|
700
|
-
return
|
|
754
|
+
const a = o.activatorNode.current;
|
|
755
|
+
return a && e.target !== a ? !1 : (e.preventDefault(), i == null || i({
|
|
701
756
|
event: e.nativeEvent
|
|
702
757
|
}), !0);
|
|
703
758
|
}
|
|
704
759
|
return !1;
|
|
705
760
|
}
|
|
706
761
|
}];
|
|
707
|
-
function
|
|
762
|
+
function Pt(e) {
|
|
708
763
|
return !!(e && "distance" in e);
|
|
709
764
|
}
|
|
710
|
-
function
|
|
765
|
+
function Bt(e) {
|
|
711
766
|
return !!(e && "delay" in e);
|
|
712
767
|
}
|
|
713
|
-
class
|
|
768
|
+
class ht {
|
|
714
769
|
constructor(t, n, r) {
|
|
715
770
|
var i;
|
|
716
|
-
r === void 0 && (r =
|
|
771
|
+
r === void 0 && (r = tr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
717
772
|
const {
|
|
718
773
|
event: o
|
|
719
774
|
} = t, {
|
|
720
775
|
target: s
|
|
721
776
|
} = o;
|
|
722
|
-
this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(
|
|
777
|
+
this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(q(s)), this.initialCoordinates = (i = Fe(o)) != null ? i : _, 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();
|
|
723
778
|
}
|
|
724
779
|
attach() {
|
|
725
780
|
const {
|
|
@@ -733,18 +788,18 @@ class ct {
|
|
|
733
788
|
} = this;
|
|
734
789
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
735
790
|
passive: !1
|
|
736
|
-
}), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add(
|
|
791
|
+
}), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.DragStart, zt), this.windowListeners.add($.VisibilityChange, this.handleCancel), this.windowListeners.add($.ContextMenu, zt), this.documentListeners.add($.Keydown, this.handleKeydown), n) {
|
|
737
792
|
if (r != null && r({
|
|
738
793
|
event: this.props.event,
|
|
739
794
|
activeNode: this.props.activeNode,
|
|
740
795
|
options: this.props.options
|
|
741
796
|
}))
|
|
742
797
|
return this.handleStart();
|
|
743
|
-
if (
|
|
798
|
+
if (Bt(n)) {
|
|
744
799
|
this.timeoutId = setTimeout(this.handleStart, n.delay);
|
|
745
800
|
return;
|
|
746
801
|
}
|
|
747
|
-
if (
|
|
802
|
+
if (Pt(n))
|
|
748
803
|
return;
|
|
749
804
|
}
|
|
750
805
|
this.handleStart();
|
|
@@ -758,9 +813,9 @@ class ct {
|
|
|
758
813
|
} = this, {
|
|
759
814
|
onStart: n
|
|
760
815
|
} = this.props;
|
|
761
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
816
|
+
t && (this.activated = !0, this.documentListeners.add($.Click, nr, {
|
|
762
817
|
capture: !0
|
|
763
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
818
|
+
}), this.removeTextSelection(), this.documentListeners.add($.SelectionChange, this.removeTextSelection), n(t));
|
|
764
819
|
}
|
|
765
820
|
handleMove(t) {
|
|
766
821
|
var n;
|
|
@@ -771,22 +826,22 @@ class ct {
|
|
|
771
826
|
} = this, {
|
|
772
827
|
onMove: s,
|
|
773
828
|
options: {
|
|
774
|
-
activationConstraint:
|
|
829
|
+
activationConstraint: a
|
|
775
830
|
}
|
|
776
831
|
} = o;
|
|
777
832
|
if (!i)
|
|
778
833
|
return;
|
|
779
|
-
const
|
|
780
|
-
if (!r &&
|
|
781
|
-
if (
|
|
782
|
-
if (
|
|
834
|
+
const l = (n = Fe(t)) != null ? n : _, c = Ke(i, l);
|
|
835
|
+
if (!r && a) {
|
|
836
|
+
if (Pt(a)) {
|
|
837
|
+
if (a.tolerance != null && Ze(c, a.tolerance))
|
|
783
838
|
return this.handleCancel();
|
|
784
|
-
if (
|
|
839
|
+
if (Ze(c, a.distance))
|
|
785
840
|
return this.handleStart();
|
|
786
841
|
}
|
|
787
|
-
return
|
|
842
|
+
return Bt(a) && Ze(c, a.tolerance) ? this.handleCancel() : void 0;
|
|
788
843
|
}
|
|
789
|
-
t.cancelable && t.preventDefault(), s(
|
|
844
|
+
t.cancelable && t.preventDefault(), s(l);
|
|
790
845
|
}
|
|
791
846
|
handleEnd() {
|
|
792
847
|
const {
|
|
@@ -801,14 +856,14 @@ class ct {
|
|
|
801
856
|
this.detach(), t();
|
|
802
857
|
}
|
|
803
858
|
handleKeydown(t) {
|
|
804
|
-
t.code ===
|
|
859
|
+
t.code === x.Esc && this.handleCancel();
|
|
805
860
|
}
|
|
806
861
|
removeTextSelection() {
|
|
807
862
|
var t;
|
|
808
863
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
809
864
|
}
|
|
810
865
|
}
|
|
811
|
-
const
|
|
866
|
+
const or = {
|
|
812
867
|
move: {
|
|
813
868
|
name: "pointermove"
|
|
814
869
|
},
|
|
@@ -816,15 +871,15 @@ const Hn = {
|
|
|
816
871
|
name: "pointerup"
|
|
817
872
|
}
|
|
818
873
|
};
|
|
819
|
-
class
|
|
874
|
+
class rn extends ht {
|
|
820
875
|
constructor(t) {
|
|
821
876
|
const {
|
|
822
877
|
event: n
|
|
823
878
|
} = t, r = ge(n.target);
|
|
824
|
-
super(t,
|
|
879
|
+
super(t, or, r);
|
|
825
880
|
}
|
|
826
881
|
}
|
|
827
|
-
|
|
882
|
+
rn.activators = [{
|
|
828
883
|
eventName: "onPointerDown",
|
|
829
884
|
handler: (e, t) => {
|
|
830
885
|
let {
|
|
@@ -837,7 +892,7 @@ Vt.activators = [{
|
|
|
837
892
|
}), !0);
|
|
838
893
|
}
|
|
839
894
|
}];
|
|
840
|
-
const
|
|
895
|
+
const ir = {
|
|
841
896
|
move: {
|
|
842
897
|
name: "mousemove"
|
|
843
898
|
},
|
|
@@ -845,16 +900,16 @@ const qn = {
|
|
|
845
900
|
name: "mouseup"
|
|
846
901
|
}
|
|
847
902
|
};
|
|
848
|
-
var
|
|
903
|
+
var ot;
|
|
849
904
|
(function(e) {
|
|
850
905
|
e[e.RightClick = 2] = "RightClick";
|
|
851
|
-
})(
|
|
852
|
-
class
|
|
906
|
+
})(ot || (ot = {}));
|
|
907
|
+
class sr extends ht {
|
|
853
908
|
constructor(t) {
|
|
854
|
-
super(t,
|
|
909
|
+
super(t, ir, ge(t.event.target));
|
|
855
910
|
}
|
|
856
911
|
}
|
|
857
|
-
|
|
912
|
+
sr.activators = [{
|
|
858
913
|
eventName: "onMouseDown",
|
|
859
914
|
handler: (e, t) => {
|
|
860
915
|
let {
|
|
@@ -862,12 +917,12 @@ Jn.activators = [{
|
|
|
862
917
|
} = e, {
|
|
863
918
|
onActivation: r
|
|
864
919
|
} = t;
|
|
865
|
-
return n.button ===
|
|
920
|
+
return n.button === ot.RightClick ? !1 : (r == null || r({
|
|
866
921
|
event: n
|
|
867
922
|
}), !0);
|
|
868
923
|
}
|
|
869
924
|
}];
|
|
870
|
-
const
|
|
925
|
+
const et = {
|
|
871
926
|
move: {
|
|
872
927
|
name: "touchmove"
|
|
873
928
|
},
|
|
@@ -875,22 +930,22 @@ const Ge = {
|
|
|
875
930
|
name: "touchend"
|
|
876
931
|
}
|
|
877
932
|
};
|
|
878
|
-
class
|
|
933
|
+
class ar extends ht {
|
|
879
934
|
constructor(t) {
|
|
880
|
-
super(t,
|
|
935
|
+
super(t, et);
|
|
881
936
|
}
|
|
882
937
|
static setup() {
|
|
883
|
-
return window.addEventListener(
|
|
938
|
+
return window.addEventListener(et.move.name, t, {
|
|
884
939
|
capture: !1,
|
|
885
940
|
passive: !1
|
|
886
941
|
}), function() {
|
|
887
|
-
window.removeEventListener(
|
|
942
|
+
window.removeEventListener(et.move.name, t);
|
|
888
943
|
};
|
|
889
944
|
function t() {
|
|
890
945
|
}
|
|
891
946
|
}
|
|
892
947
|
}
|
|
893
|
-
|
|
948
|
+
ar.activators = [{
|
|
894
949
|
eventName: "onTouchStart",
|
|
895
950
|
handler: (e, t) => {
|
|
896
951
|
let {
|
|
@@ -914,7 +969,7 @@ var We;
|
|
|
914
969
|
(function(e) {
|
|
915
970
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
916
971
|
})(We || (We = {}));
|
|
917
|
-
function
|
|
972
|
+
function lr(e) {
|
|
918
973
|
let {
|
|
919
974
|
acceleration: t,
|
|
920
975
|
activator: n = Ce.Pointer,
|
|
@@ -922,68 +977,68 @@ function Gn(e) {
|
|
|
922
977
|
draggingRect: i,
|
|
923
978
|
enabled: o,
|
|
924
979
|
interval: s = 5,
|
|
925
|
-
order:
|
|
926
|
-
pointerCoordinates:
|
|
927
|
-
scrollableAncestors:
|
|
980
|
+
order: a = We.TreeOrder,
|
|
981
|
+
pointerCoordinates: l,
|
|
982
|
+
scrollableAncestors: c,
|
|
928
983
|
scrollableAncestorRects: d,
|
|
929
|
-
delta:
|
|
984
|
+
delta: u,
|
|
930
985
|
threshold: g
|
|
931
986
|
} = e;
|
|
932
|
-
const f =
|
|
933
|
-
delta:
|
|
987
|
+
const f = ur({
|
|
988
|
+
delta: u,
|
|
934
989
|
disabled: !o
|
|
935
|
-
}), [
|
|
990
|
+
}), [D, h] = xn(), v = z({
|
|
936
991
|
x: 0,
|
|
937
992
|
y: 0
|
|
938
|
-
}),
|
|
993
|
+
}), b = z({
|
|
939
994
|
x: 0,
|
|
940
995
|
y: 0
|
|
941
|
-
}),
|
|
996
|
+
}), w = L(() => {
|
|
942
997
|
switch (n) {
|
|
943
998
|
case Ce.Pointer:
|
|
944
|
-
return
|
|
945
|
-
top:
|
|
946
|
-
bottom:
|
|
947
|
-
left:
|
|
948
|
-
right:
|
|
999
|
+
return l ? {
|
|
1000
|
+
top: l.y,
|
|
1001
|
+
bottom: l.y,
|
|
1002
|
+
left: l.x,
|
|
1003
|
+
right: l.x
|
|
949
1004
|
} : null;
|
|
950
1005
|
case Ce.DraggableRect:
|
|
951
1006
|
return i;
|
|
952
1007
|
}
|
|
953
|
-
}, [n, i,
|
|
954
|
-
const S =
|
|
1008
|
+
}, [n, i, l]), y = z(null), M = U(() => {
|
|
1009
|
+
const S = y.current;
|
|
955
1010
|
if (!S)
|
|
956
1011
|
return;
|
|
957
|
-
const p = v.current.x *
|
|
958
|
-
S.scrollBy(p,
|
|
959
|
-
}, []),
|
|
960
|
-
|
|
1012
|
+
const p = v.current.x * b.current.x, m = v.current.y * b.current.y;
|
|
1013
|
+
S.scrollBy(p, m);
|
|
1014
|
+
}, []), C = L(() => a === We.TreeOrder ? [...c].reverse() : c, [a, c]);
|
|
1015
|
+
N(
|
|
961
1016
|
() => {
|
|
962
|
-
if (!o || !
|
|
1017
|
+
if (!o || !c.length || !w) {
|
|
963
1018
|
h();
|
|
964
1019
|
return;
|
|
965
1020
|
}
|
|
966
|
-
for (const S of
|
|
1021
|
+
for (const S of C) {
|
|
967
1022
|
if ((r == null ? void 0 : r(S)) === !1)
|
|
968
1023
|
continue;
|
|
969
|
-
const p =
|
|
970
|
-
if (!
|
|
1024
|
+
const p = c.indexOf(S), m = d[p];
|
|
1025
|
+
if (!m)
|
|
971
1026
|
continue;
|
|
972
1027
|
const {
|
|
973
|
-
direction:
|
|
1028
|
+
direction: R,
|
|
974
1029
|
speed: k
|
|
975
|
-
} =
|
|
976
|
-
for (const
|
|
977
|
-
f[
|
|
1030
|
+
} = Vn(S, m, w, t, g);
|
|
1031
|
+
for (const E of ["x", "y"])
|
|
1032
|
+
f[E][R[E]] || (k[E] = 0, R[E] = 0);
|
|
978
1033
|
if (k.x > 0 || k.y > 0) {
|
|
979
|
-
h(),
|
|
1034
|
+
h(), y.current = S, D(M, s), v.current = k, b.current = R;
|
|
980
1035
|
return;
|
|
981
1036
|
}
|
|
982
1037
|
}
|
|
983
1038
|
v.current = {
|
|
984
1039
|
x: 0,
|
|
985
1040
|
y: 0
|
|
986
|
-
},
|
|
1041
|
+
}, b.current = {
|
|
987
1042
|
x: 0,
|
|
988
1043
|
y: 0
|
|
989
1044
|
}, h();
|
|
@@ -991,67 +1046,67 @@ function Gn(e) {
|
|
|
991
1046
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
992
1047
|
[
|
|
993
1048
|
t,
|
|
994
|
-
|
|
1049
|
+
M,
|
|
995
1050
|
r,
|
|
996
1051
|
h,
|
|
997
1052
|
o,
|
|
998
1053
|
s,
|
|
999
1054
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1000
|
-
JSON.stringify(
|
|
1055
|
+
JSON.stringify(w),
|
|
1001
1056
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1002
1057
|
JSON.stringify(f),
|
|
1058
|
+
D,
|
|
1059
|
+
c,
|
|
1003
1060
|
C,
|
|
1004
|
-
u,
|
|
1005
|
-
x,
|
|
1006
1061
|
d,
|
|
1007
1062
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1008
1063
|
JSON.stringify(g)
|
|
1009
1064
|
]
|
|
1010
1065
|
);
|
|
1011
1066
|
}
|
|
1012
|
-
const
|
|
1067
|
+
const cr = {
|
|
1013
1068
|
x: {
|
|
1014
|
-
[
|
|
1015
|
-
[
|
|
1069
|
+
[T.Backward]: !1,
|
|
1070
|
+
[T.Forward]: !1
|
|
1016
1071
|
},
|
|
1017
1072
|
y: {
|
|
1018
|
-
[
|
|
1019
|
-
[
|
|
1073
|
+
[T.Backward]: !1,
|
|
1074
|
+
[T.Forward]: !1
|
|
1020
1075
|
}
|
|
1021
1076
|
};
|
|
1022
|
-
function
|
|
1077
|
+
function ur(e) {
|
|
1023
1078
|
let {
|
|
1024
1079
|
delta: t,
|
|
1025
1080
|
disabled: n
|
|
1026
1081
|
} = e;
|
|
1027
|
-
const r =
|
|
1082
|
+
const r = $e(t);
|
|
1028
1083
|
return Ae((i) => {
|
|
1029
1084
|
if (n || !r || !i)
|
|
1030
|
-
return
|
|
1085
|
+
return cr;
|
|
1031
1086
|
const o = {
|
|
1032
1087
|
x: Math.sign(t.x - r.x),
|
|
1033
1088
|
y: Math.sign(t.y - r.y)
|
|
1034
1089
|
};
|
|
1035
1090
|
return {
|
|
1036
1091
|
x: {
|
|
1037
|
-
[
|
|
1038
|
-
[
|
|
1092
|
+
[T.Backward]: i.x[T.Backward] || o.x === -1,
|
|
1093
|
+
[T.Forward]: i.x[T.Forward] || o.x === 1
|
|
1039
1094
|
},
|
|
1040
1095
|
y: {
|
|
1041
|
-
[
|
|
1042
|
-
[
|
|
1096
|
+
[T.Backward]: i.y[T.Backward] || o.y === -1,
|
|
1097
|
+
[T.Forward]: i.y[T.Forward] || o.y === 1
|
|
1043
1098
|
}
|
|
1044
1099
|
};
|
|
1045
1100
|
}, [n, t, r]);
|
|
1046
1101
|
}
|
|
1047
|
-
function
|
|
1102
|
+
function dr(e, t) {
|
|
1048
1103
|
const n = t !== null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1049
1104
|
return Ae((i) => {
|
|
1050
1105
|
var o;
|
|
1051
1106
|
return t === null ? null : (o = r ?? i) != null ? o : null;
|
|
1052
1107
|
}, [r, t]);
|
|
1053
1108
|
}
|
|
1054
|
-
function
|
|
1109
|
+
function fr(e, t) {
|
|
1055
1110
|
return L(() => e.reduce((n, r) => {
|
|
1056
1111
|
const {
|
|
1057
1112
|
sensor: i
|
|
@@ -1066,71 +1121,71 @@ var Ee;
|
|
|
1066
1121
|
(function(e) {
|
|
1067
1122
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1068
1123
|
})(Ee || (Ee = {}));
|
|
1069
|
-
var
|
|
1124
|
+
var it;
|
|
1070
1125
|
(function(e) {
|
|
1071
1126
|
e.Optimized = "optimized";
|
|
1072
|
-
})(
|
|
1073
|
-
const
|
|
1074
|
-
function
|
|
1127
|
+
})(it || (it = {}));
|
|
1128
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
1129
|
+
function hr(e, t) {
|
|
1075
1130
|
let {
|
|
1076
1131
|
dragging: n,
|
|
1077
1132
|
dependencies: r,
|
|
1078
1133
|
config: i
|
|
1079
1134
|
} = t;
|
|
1080
|
-
const [o, s] =
|
|
1081
|
-
frequency:
|
|
1082
|
-
measure:
|
|
1083
|
-
strategy:
|
|
1084
|
-
} = i, d =
|
|
1085
|
-
|
|
1086
|
-
}, [g]),
|
|
1087
|
-
if (
|
|
1088
|
-
return
|
|
1089
|
-
if (!
|
|
1090
|
-
const
|
|
1091
|
-
for (let
|
|
1092
|
-
if (!
|
|
1135
|
+
const [o, s] = Y(null), {
|
|
1136
|
+
frequency: a,
|
|
1137
|
+
measure: l,
|
|
1138
|
+
strategy: c
|
|
1139
|
+
} = i, d = z(e), u = v(), g = Re(u), f = U(function(b) {
|
|
1140
|
+
b === void 0 && (b = []), !g.current && s((w) => w === null ? b : w.concat(b.filter((y) => !w.includes(y))));
|
|
1141
|
+
}, [g]), D = z(null), h = Ae((b) => {
|
|
1142
|
+
if (u && !n)
|
|
1143
|
+
return Ft;
|
|
1144
|
+
if (!b || b === Ft || d.current !== e || o != null) {
|
|
1145
|
+
const w = /* @__PURE__ */ new Map();
|
|
1146
|
+
for (let y of e) {
|
|
1147
|
+
if (!y)
|
|
1093
1148
|
continue;
|
|
1094
|
-
if (o && o.length > 0 && !o.includes(
|
|
1095
|
-
|
|
1149
|
+
if (o && o.length > 0 && !o.includes(y.id) && y.rect.current) {
|
|
1150
|
+
w.set(y.id, y.rect.current);
|
|
1096
1151
|
continue;
|
|
1097
1152
|
}
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1153
|
+
const M = y.node.current, C = M ? new ft(l(M), M) : null;
|
|
1154
|
+
y.rect.current = C, C && w.set(y.id, C);
|
|
1100
1155
|
}
|
|
1101
|
-
return
|
|
1156
|
+
return w;
|
|
1102
1157
|
}
|
|
1103
|
-
return
|
|
1104
|
-
}, [e, o, n,
|
|
1105
|
-
return
|
|
1158
|
+
return b;
|
|
1159
|
+
}, [e, o, n, u, l]);
|
|
1160
|
+
return N(() => {
|
|
1106
1161
|
d.current = e;
|
|
1107
|
-
}, [e]),
|
|
1162
|
+
}, [e]), N(
|
|
1108
1163
|
() => {
|
|
1109
|
-
|
|
1164
|
+
u || f();
|
|
1110
1165
|
},
|
|
1111
1166
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1112
|
-
[n,
|
|
1113
|
-
),
|
|
1167
|
+
[n, u]
|
|
1168
|
+
), N(
|
|
1114
1169
|
() => {
|
|
1115
1170
|
o && o.length > 0 && s(null);
|
|
1116
1171
|
},
|
|
1117
1172
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1118
1173
|
[JSON.stringify(o)]
|
|
1119
|
-
),
|
|
1174
|
+
), N(
|
|
1120
1175
|
() => {
|
|
1121
|
-
|
|
1122
|
-
f(),
|
|
1123
|
-
},
|
|
1176
|
+
u || typeof a != "number" || D.current !== null || (D.current = setTimeout(() => {
|
|
1177
|
+
f(), D.current = null;
|
|
1178
|
+
}, a));
|
|
1124
1179
|
},
|
|
1125
1180
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1126
|
-
[
|
|
1181
|
+
[a, u, f, ...r]
|
|
1127
1182
|
), {
|
|
1128
1183
|
droppableRects: h,
|
|
1129
1184
|
measureDroppableContainers: f,
|
|
1130
1185
|
measuringScheduled: o != null
|
|
1131
1186
|
};
|
|
1132
1187
|
function v() {
|
|
1133
|
-
switch (
|
|
1188
|
+
switch (c) {
|
|
1134
1189
|
case Ee.Always:
|
|
1135
1190
|
return !1;
|
|
1136
1191
|
case Ee.BeforeDragging:
|
|
@@ -1140,18 +1195,18 @@ function nr(e, t) {
|
|
|
1140
1195
|
}
|
|
1141
1196
|
}
|
|
1142
1197
|
}
|
|
1143
|
-
function
|
|
1198
|
+
function gt(e, t) {
|
|
1144
1199
|
return Ae((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1145
1200
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1201
|
+
function gr(e, t) {
|
|
1202
|
+
return gt(e, t);
|
|
1148
1203
|
}
|
|
1149
|
-
function
|
|
1204
|
+
function vr(e) {
|
|
1150
1205
|
let {
|
|
1151
1206
|
callback: t,
|
|
1152
1207
|
disabled: n
|
|
1153
1208
|
} = e;
|
|
1154
|
-
const r =
|
|
1209
|
+
const r = ct(t), i = L(() => {
|
|
1155
1210
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1156
1211
|
return;
|
|
1157
1212
|
const {
|
|
@@ -1159,14 +1214,14 @@ function or(e) {
|
|
|
1159
1214
|
} = window;
|
|
1160
1215
|
return new o(r);
|
|
1161
1216
|
}, [r, n]);
|
|
1162
|
-
return
|
|
1217
|
+
return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1163
1218
|
}
|
|
1164
1219
|
function _e(e) {
|
|
1165
1220
|
let {
|
|
1166
1221
|
callback: t,
|
|
1167
1222
|
disabled: n
|
|
1168
1223
|
} = e;
|
|
1169
|
-
const r =
|
|
1224
|
+
const r = ct(t), i = L(
|
|
1170
1225
|
() => {
|
|
1171
1226
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1172
1227
|
return;
|
|
@@ -1178,22 +1233,22 @@ function _e(e) {
|
|
|
1178
1233
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1179
1234
|
[n]
|
|
1180
1235
|
);
|
|
1181
|
-
return
|
|
1236
|
+
return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
1182
1237
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return new
|
|
1238
|
+
function pr(e) {
|
|
1239
|
+
return new ft(Ne(e), e);
|
|
1185
1240
|
}
|
|
1186
|
-
function
|
|
1187
|
-
t === void 0 && (t =
|
|
1188
|
-
const [r, i] =
|
|
1189
|
-
callback(
|
|
1241
|
+
function $t(e, t, n) {
|
|
1242
|
+
t === void 0 && (t = pr);
|
|
1243
|
+
const [r, i] = st(a, null), o = vr({
|
|
1244
|
+
callback(l) {
|
|
1190
1245
|
if (e)
|
|
1191
|
-
for (const
|
|
1246
|
+
for (const c of l) {
|
|
1192
1247
|
const {
|
|
1193
1248
|
type: d,
|
|
1194
|
-
target:
|
|
1195
|
-
} =
|
|
1196
|
-
if (d === "childList" &&
|
|
1249
|
+
target: u
|
|
1250
|
+
} = c;
|
|
1251
|
+
if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
|
|
1197
1252
|
i();
|
|
1198
1253
|
break;
|
|
1199
1254
|
}
|
|
@@ -1202,80 +1257,80 @@ function It(e, t, n) {
|
|
|
1202
1257
|
}), s = _e({
|
|
1203
1258
|
callback: i
|
|
1204
1259
|
});
|
|
1205
|
-
return
|
|
1260
|
+
return re(() => {
|
|
1206
1261
|
i(), e ? (s == null || s.observe(e), o == null || o.observe(document.body, {
|
|
1207
1262
|
childList: !0,
|
|
1208
1263
|
subtree: !0
|
|
1209
1264
|
})) : (s == null || s.disconnect(), o == null || o.disconnect());
|
|
1210
1265
|
}, [e]), r;
|
|
1211
|
-
function l
|
|
1266
|
+
function a(l) {
|
|
1212
1267
|
if (!e)
|
|
1213
1268
|
return null;
|
|
1214
1269
|
if (e.isConnected === !1) {
|
|
1215
|
-
var
|
|
1216
|
-
return (
|
|
1270
|
+
var c;
|
|
1271
|
+
return (c = l ?? n) != null ? c : null;
|
|
1217
1272
|
}
|
|
1218
1273
|
const d = t(e);
|
|
1219
|
-
return JSON.stringify(
|
|
1274
|
+
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
1220
1275
|
}
|
|
1221
1276
|
}
|
|
1222
|
-
function
|
|
1223
|
-
const t =
|
|
1224
|
-
return
|
|
1277
|
+
function br(e) {
|
|
1278
|
+
const t = gt(e);
|
|
1279
|
+
return _t(e, t);
|
|
1225
1280
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1228
|
-
const t =
|
|
1229
|
-
return
|
|
1281
|
+
const Kt = [];
|
|
1282
|
+
function yr(e) {
|
|
1283
|
+
const t = z(e), n = Ae((r) => e ? r && r !== Kt && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : Kt, [e]);
|
|
1284
|
+
return N(() => {
|
|
1230
1285
|
t.current = e;
|
|
1231
1286
|
}, [e]), n;
|
|
1232
1287
|
}
|
|
1233
|
-
function
|
|
1234
|
-
const [t, n] =
|
|
1235
|
-
const s =
|
|
1236
|
-
s && n((
|
|
1288
|
+
function mr(e) {
|
|
1289
|
+
const [t, n] = Y(null), r = z(e), i = U((o) => {
|
|
1290
|
+
const s = Qe(o.target);
|
|
1291
|
+
s && n((a) => a ? (a.set(s, rt(s)), new Map(a)) : null);
|
|
1237
1292
|
}, []);
|
|
1238
|
-
return
|
|
1293
|
+
return N(() => {
|
|
1239
1294
|
const o = r.current;
|
|
1240
1295
|
if (e !== o) {
|
|
1241
1296
|
s(o);
|
|
1242
|
-
const
|
|
1243
|
-
const
|
|
1244
|
-
return
|
|
1297
|
+
const a = e.map((l) => {
|
|
1298
|
+
const c = Qe(l);
|
|
1299
|
+
return c ? (c.addEventListener("scroll", i, {
|
|
1245
1300
|
passive: !0
|
|
1246
|
-
}), [
|
|
1247
|
-
}).filter((
|
|
1248
|
-
n(
|
|
1301
|
+
}), [c, rt(c)]) : null;
|
|
1302
|
+
}).filter((l) => l != null);
|
|
1303
|
+
n(a.length ? new Map(a) : null), r.current = e;
|
|
1249
1304
|
}
|
|
1250
1305
|
return () => {
|
|
1251
1306
|
s(e), s(o);
|
|
1252
1307
|
};
|
|
1253
|
-
function s(
|
|
1254
|
-
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1308
|
+
function s(a) {
|
|
1309
|
+
a.forEach((l) => {
|
|
1310
|
+
const c = Qe(l);
|
|
1311
|
+
c == null || c.removeEventListener("scroll", i);
|
|
1257
1312
|
});
|
|
1258
1313
|
}
|
|
1259
|
-
}, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) =>
|
|
1314
|
+
}, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) => he(o, s), _) : Zt(e) : _, [e, t]);
|
|
1260
1315
|
}
|
|
1261
|
-
function
|
|
1316
|
+
function Xt(e, t) {
|
|
1262
1317
|
t === void 0 && (t = []);
|
|
1263
|
-
const n =
|
|
1264
|
-
return
|
|
1318
|
+
const n = z(null);
|
|
1319
|
+
return N(
|
|
1265
1320
|
() => {
|
|
1266
1321
|
n.current = null;
|
|
1267
1322
|
},
|
|
1268
1323
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1269
1324
|
t
|
|
1270
|
-
),
|
|
1271
|
-
const r = e !==
|
|
1325
|
+
), N(() => {
|
|
1326
|
+
const r = e !== _;
|
|
1272
1327
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
1273
|
-
}, [e]), n.current ?
|
|
1328
|
+
}, [e]), n.current ? Ke(e, n.current) : _;
|
|
1274
1329
|
}
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1330
|
+
function wr(e) {
|
|
1331
|
+
N(
|
|
1277
1332
|
() => {
|
|
1278
|
-
if (!
|
|
1333
|
+
if (!at)
|
|
1279
1334
|
return;
|
|
1280
1335
|
const t = e.map((n) => {
|
|
1281
1336
|
let {
|
|
@@ -1298,7 +1353,7 @@ function cr(e) {
|
|
|
1298
1353
|
})
|
|
1299
1354
|
);
|
|
1300
1355
|
}
|
|
1301
|
-
function
|
|
1356
|
+
function Dr(e, t) {
|
|
1302
1357
|
return L(() => e.reduce((n, r) => {
|
|
1303
1358
|
let {
|
|
1304
1359
|
eventName: i,
|
|
@@ -1309,43 +1364,43 @@ function ur(e, t) {
|
|
|
1309
1364
|
}, n;
|
|
1310
1365
|
}, {}), [e, t]);
|
|
1311
1366
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return L(() => e ?
|
|
1367
|
+
function on(e) {
|
|
1368
|
+
return L(() => e ? _n(e) : null, [e]);
|
|
1314
1369
|
}
|
|
1315
|
-
const
|
|
1316
|
-
function
|
|
1317
|
-
t === void 0 && (t =
|
|
1318
|
-
const [n] = e, r =
|
|
1370
|
+
const tt = [];
|
|
1371
|
+
function xr(e, t) {
|
|
1372
|
+
t === void 0 && (t = Ne);
|
|
1373
|
+
const [n] = e, r = on(n ? q(n) : null), [i, o] = st(a, tt), s = _e({
|
|
1319
1374
|
callback: o
|
|
1320
1375
|
});
|
|
1321
|
-
return e.length > 0 && i ===
|
|
1322
|
-
e.length ? e.forEach((
|
|
1376
|
+
return e.length > 0 && i === tt && o(), re(() => {
|
|
1377
|
+
e.length ? e.forEach((l) => s == null ? void 0 : s.observe(l)) : (s == null || s.disconnect(), o());
|
|
1323
1378
|
}, [e]), i;
|
|
1324
|
-
function
|
|
1325
|
-
return e.length ? e.map((
|
|
1379
|
+
function a() {
|
|
1380
|
+
return e.length ? e.map((l) => Gt(l) ? r : new ft(t(l), l)) : tt;
|
|
1326
1381
|
}
|
|
1327
1382
|
}
|
|
1328
|
-
function
|
|
1383
|
+
function sn(e) {
|
|
1329
1384
|
if (!e)
|
|
1330
1385
|
return null;
|
|
1331
1386
|
if (e.children.length > 1)
|
|
1332
1387
|
return e;
|
|
1333
1388
|
const t = e.children[0];
|
|
1334
|
-
return
|
|
1389
|
+
return Ue(t) ? t : e;
|
|
1335
1390
|
}
|
|
1336
|
-
function
|
|
1391
|
+
function Cr(e) {
|
|
1337
1392
|
let {
|
|
1338
1393
|
measure: t
|
|
1339
1394
|
} = e;
|
|
1340
|
-
const [n, r] =
|
|
1395
|
+
const [n, r] = Y(null), i = U((c) => {
|
|
1341
1396
|
for (const {
|
|
1342
1397
|
target: d
|
|
1343
|
-
} of
|
|
1344
|
-
if (
|
|
1345
|
-
r((
|
|
1398
|
+
} of c)
|
|
1399
|
+
if (Ue(d)) {
|
|
1400
|
+
r((u) => {
|
|
1346
1401
|
const g = t(d);
|
|
1347
|
-
return
|
|
1348
|
-
...
|
|
1402
|
+
return u ? {
|
|
1403
|
+
...u,
|
|
1349
1404
|
width: g.width,
|
|
1350
1405
|
height: g.height
|
|
1351
1406
|
} : g;
|
|
@@ -1354,35 +1409,35 @@ function hr(e) {
|
|
|
1354
1409
|
}
|
|
1355
1410
|
}, [t]), o = _e({
|
|
1356
1411
|
callback: i
|
|
1357
|
-
}), s =
|
|
1358
|
-
const d =
|
|
1412
|
+
}), s = U((c) => {
|
|
1413
|
+
const d = sn(c);
|
|
1359
1414
|
o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? t(d) : null);
|
|
1360
|
-
}, [t, o]), [
|
|
1415
|
+
}, [t, o]), [a, l] = Xe(s);
|
|
1361
1416
|
return L(() => ({
|
|
1362
|
-
nodeRef:
|
|
1417
|
+
nodeRef: a,
|
|
1363
1418
|
rect: n,
|
|
1364
|
-
setRef:
|
|
1365
|
-
}), [n,
|
|
1419
|
+
setRef: l
|
|
1420
|
+
}), [n, a, l]);
|
|
1366
1421
|
}
|
|
1367
|
-
const
|
|
1368
|
-
sensor:
|
|
1422
|
+
const Sr = [{
|
|
1423
|
+
sensor: rn,
|
|
1369
1424
|
options: {}
|
|
1370
1425
|
}, {
|
|
1371
|
-
sensor:
|
|
1426
|
+
sensor: nn,
|
|
1372
1427
|
options: {}
|
|
1373
|
-
}],
|
|
1428
|
+
}], Rr = {
|
|
1374
1429
|
current: {}
|
|
1375
1430
|
}, Be = {
|
|
1376
1431
|
draggable: {
|
|
1377
|
-
measure:
|
|
1432
|
+
measure: It
|
|
1378
1433
|
},
|
|
1379
1434
|
droppable: {
|
|
1380
|
-
measure:
|
|
1435
|
+
measure: It,
|
|
1381
1436
|
strategy: Ee.WhileDragging,
|
|
1382
|
-
frequency:
|
|
1437
|
+
frequency: it.Optimized
|
|
1383
1438
|
},
|
|
1384
1439
|
dragOverlay: {
|
|
1385
|
-
measure:
|
|
1440
|
+
measure: Ne
|
|
1386
1441
|
}
|
|
1387
1442
|
};
|
|
1388
1443
|
class Se extends Map {
|
|
@@ -1406,7 +1461,7 @@ class Se extends Map {
|
|
|
1406
1461
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
1407
1462
|
}
|
|
1408
1463
|
}
|
|
1409
|
-
const
|
|
1464
|
+
const Er = {
|
|
1410
1465
|
activatorEvent: null,
|
|
1411
1466
|
active: null,
|
|
1412
1467
|
activeNode: null,
|
|
@@ -1422,15 +1477,15 @@ const pr = {
|
|
|
1422
1477
|
current: null
|
|
1423
1478
|
},
|
|
1424
1479
|
rect: null,
|
|
1425
|
-
setRef:
|
|
1480
|
+
setRef: je
|
|
1426
1481
|
},
|
|
1427
1482
|
scrollableAncestors: [],
|
|
1428
1483
|
scrollableAncestorRects: [],
|
|
1429
1484
|
measuringConfiguration: Be,
|
|
1430
|
-
measureDroppableContainers:
|
|
1485
|
+
measureDroppableContainers: je,
|
|
1431
1486
|
windowRect: null,
|
|
1432
1487
|
measuringScheduled: !1
|
|
1433
|
-
},
|
|
1488
|
+
}, an = {
|
|
1434
1489
|
activatorEvent: null,
|
|
1435
1490
|
activators: [],
|
|
1436
1491
|
active: null,
|
|
@@ -1438,12 +1493,12 @@ const pr = {
|
|
|
1438
1493
|
ariaDescribedById: {
|
|
1439
1494
|
draggable: ""
|
|
1440
1495
|
},
|
|
1441
|
-
dispatch:
|
|
1496
|
+
dispatch: je,
|
|
1442
1497
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1443
1498
|
over: null,
|
|
1444
|
-
measureDroppableContainers:
|
|
1445
|
-
},
|
|
1446
|
-
function
|
|
1499
|
+
measureDroppableContainers: je
|
|
1500
|
+
}, Me = /* @__PURE__ */ Oe(an), ln = /* @__PURE__ */ Oe(Er);
|
|
1501
|
+
function Or() {
|
|
1447
1502
|
return {
|
|
1448
1503
|
draggable: {
|
|
1449
1504
|
active: null,
|
|
@@ -1462,9 +1517,9 @@ function wr() {
|
|
|
1462
1517
|
}
|
|
1463
1518
|
};
|
|
1464
1519
|
}
|
|
1465
|
-
function
|
|
1520
|
+
function Ar(e, t) {
|
|
1466
1521
|
switch (t.type) {
|
|
1467
|
-
case
|
|
1522
|
+
case O.DragStart:
|
|
1468
1523
|
return {
|
|
1469
1524
|
...e,
|
|
1470
1525
|
draggable: {
|
|
@@ -1473,7 +1528,7 @@ function yr(e, t) {
|
|
|
1473
1528
|
active: t.active
|
|
1474
1529
|
}
|
|
1475
1530
|
};
|
|
1476
|
-
case
|
|
1531
|
+
case O.DragMove:
|
|
1477
1532
|
return e.draggable.active ? {
|
|
1478
1533
|
...e,
|
|
1479
1534
|
draggable: {
|
|
@@ -1484,8 +1539,8 @@ function yr(e, t) {
|
|
|
1484
1539
|
}
|
|
1485
1540
|
}
|
|
1486
1541
|
} : e;
|
|
1487
|
-
case
|
|
1488
|
-
case
|
|
1542
|
+
case O.DragEnd:
|
|
1543
|
+
case O.DragCancel:
|
|
1489
1544
|
return {
|
|
1490
1545
|
...e,
|
|
1491
1546
|
draggable: {
|
|
@@ -1501,7 +1556,7 @@ function yr(e, t) {
|
|
|
1501
1556
|
}
|
|
1502
1557
|
}
|
|
1503
1558
|
};
|
|
1504
|
-
case
|
|
1559
|
+
case O.RegisterDroppable: {
|
|
1505
1560
|
const {
|
|
1506
1561
|
element: n
|
|
1507
1562
|
} = t, {
|
|
@@ -1515,7 +1570,7 @@ function yr(e, t) {
|
|
|
1515
1570
|
}
|
|
1516
1571
|
};
|
|
1517
1572
|
}
|
|
1518
|
-
case
|
|
1573
|
+
case O.SetDroppableDisabled: {
|
|
1519
1574
|
const {
|
|
1520
1575
|
id: n,
|
|
1521
1576
|
key: r,
|
|
@@ -1535,7 +1590,7 @@ function yr(e, t) {
|
|
|
1535
1590
|
}
|
|
1536
1591
|
};
|
|
1537
1592
|
}
|
|
1538
|
-
case
|
|
1593
|
+
case O.UnregisterDroppable: {
|
|
1539
1594
|
const {
|
|
1540
1595
|
id: n,
|
|
1541
1596
|
key: r
|
|
@@ -1555,7 +1610,7 @@ function yr(e, t) {
|
|
|
1555
1610
|
return e;
|
|
1556
1611
|
}
|
|
1557
1612
|
}
|
|
1558
|
-
function
|
|
1613
|
+
function Nr(e) {
|
|
1559
1614
|
let {
|
|
1560
1615
|
disabled: t
|
|
1561
1616
|
} = e;
|
|
@@ -1563,27 +1618,27 @@ function mr(e) {
|
|
|
1563
1618
|
active: n,
|
|
1564
1619
|
activatorEvent: r,
|
|
1565
1620
|
draggableNodes: i
|
|
1566
|
-
} =
|
|
1567
|
-
return
|
|
1621
|
+
} = ae(Me), o = $e(r), s = $e(n == null ? void 0 : n.id);
|
|
1622
|
+
return N(() => {
|
|
1568
1623
|
if (!t && !r && o && s != null) {
|
|
1569
|
-
if (!
|
|
1624
|
+
if (!lt(o) || document.activeElement === o.target)
|
|
1570
1625
|
return;
|
|
1571
|
-
const
|
|
1572
|
-
if (!
|
|
1626
|
+
const a = i.get(s);
|
|
1627
|
+
if (!a)
|
|
1573
1628
|
return;
|
|
1574
1629
|
const {
|
|
1575
|
-
activatorNode:
|
|
1576
|
-
node:
|
|
1577
|
-
} =
|
|
1578
|
-
if (!
|
|
1630
|
+
activatorNode: l,
|
|
1631
|
+
node: c
|
|
1632
|
+
} = a;
|
|
1633
|
+
if (!l.current && !c.current)
|
|
1579
1634
|
return;
|
|
1580
1635
|
requestAnimationFrame(() => {
|
|
1581
|
-
for (const d of [
|
|
1636
|
+
for (const d of [l.current, c.current]) {
|
|
1582
1637
|
if (!d)
|
|
1583
1638
|
continue;
|
|
1584
|
-
const
|
|
1585
|
-
if (
|
|
1586
|
-
|
|
1639
|
+
const u = Cn(d);
|
|
1640
|
+
if (u) {
|
|
1641
|
+
u.focus();
|
|
1587
1642
|
break;
|
|
1588
1643
|
}
|
|
1589
1644
|
}
|
|
@@ -1591,7 +1646,7 @@ function mr(e) {
|
|
|
1591
1646
|
}
|
|
1592
1647
|
}, [r, t, i, s, o]), null;
|
|
1593
1648
|
}
|
|
1594
|
-
function
|
|
1649
|
+
function cn(e, t) {
|
|
1595
1650
|
let {
|
|
1596
1651
|
transform: n,
|
|
1597
1652
|
...r
|
|
@@ -1601,7 +1656,7 @@ function Dr(e, t) {
|
|
|
1601
1656
|
...r
|
|
1602
1657
|
}), n) : n;
|
|
1603
1658
|
}
|
|
1604
|
-
function
|
|
1659
|
+
function Mr(e) {
|
|
1605
1660
|
return L(
|
|
1606
1661
|
() => ({
|
|
1607
1662
|
draggable: {
|
|
@@ -1621,42 +1676,42 @@ function xr(e) {
|
|
|
1621
1676
|
[e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
|
|
1622
1677
|
);
|
|
1623
1678
|
}
|
|
1624
|
-
function
|
|
1679
|
+
function Tr(e) {
|
|
1625
1680
|
let {
|
|
1626
1681
|
activeNode: t,
|
|
1627
1682
|
measure: n,
|
|
1628
1683
|
initialRect: r,
|
|
1629
1684
|
config: i = !0
|
|
1630
1685
|
} = e;
|
|
1631
|
-
const o =
|
|
1686
|
+
const o = z(!1), {
|
|
1632
1687
|
x: s,
|
|
1633
|
-
y:
|
|
1688
|
+
y: a
|
|
1634
1689
|
} = typeof i == "boolean" ? {
|
|
1635
1690
|
x: i,
|
|
1636
1691
|
y: i
|
|
1637
1692
|
} : i;
|
|
1638
|
-
|
|
1639
|
-
if (!s && !
|
|
1693
|
+
re(() => {
|
|
1694
|
+
if (!s && !a || !t) {
|
|
1640
1695
|
o.current = !1;
|
|
1641
1696
|
return;
|
|
1642
1697
|
}
|
|
1643
1698
|
if (o.current || !r)
|
|
1644
1699
|
return;
|
|
1645
|
-
const
|
|
1646
|
-
if (!
|
|
1700
|
+
const c = t == null ? void 0 : t.node.current;
|
|
1701
|
+
if (!c || c.isConnected === !1)
|
|
1647
1702
|
return;
|
|
1648
|
-
const d = n(
|
|
1649
|
-
if (s || (
|
|
1650
|
-
const g =
|
|
1703
|
+
const d = n(c), u = _t(d, r);
|
|
1704
|
+
if (s || (u.x = 0), a || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
|
|
1705
|
+
const g = qt(c);
|
|
1651
1706
|
g && g.scrollBy({
|
|
1652
|
-
top:
|
|
1653
|
-
left:
|
|
1707
|
+
top: u.y,
|
|
1708
|
+
left: u.x
|
|
1654
1709
|
});
|
|
1655
1710
|
}
|
|
1656
|
-
}, [t, s,
|
|
1711
|
+
}, [t, s, a, r, n]);
|
|
1657
1712
|
}
|
|
1658
|
-
const
|
|
1659
|
-
...
|
|
1713
|
+
const He = /* @__PURE__ */ Oe({
|
|
1714
|
+
..._,
|
|
1660
1715
|
scaleX: 1,
|
|
1661
1716
|
scaleY: 1
|
|
1662
1717
|
});
|
|
@@ -1664,182 +1719,182 @@ var ne;
|
|
|
1664
1719
|
(function(e) {
|
|
1665
1720
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
1666
1721
|
})(ne || (ne = {}));
|
|
1667
|
-
const
|
|
1722
|
+
const eo = /* @__PURE__ */ yn(function(t) {
|
|
1668
1723
|
var n, r, i, o;
|
|
1669
1724
|
let {
|
|
1670
1725
|
id: s,
|
|
1671
|
-
accessibility:
|
|
1672
|
-
autoScroll:
|
|
1673
|
-
children:
|
|
1674
|
-
sensors: d =
|
|
1675
|
-
collisionDetection:
|
|
1726
|
+
accessibility: a,
|
|
1727
|
+
autoScroll: l = !0,
|
|
1728
|
+
children: c,
|
|
1729
|
+
sensors: d = Sr,
|
|
1730
|
+
collisionDetection: u = Kn,
|
|
1676
1731
|
measuring: g,
|
|
1677
1732
|
modifiers: f,
|
|
1678
|
-
...
|
|
1733
|
+
...D
|
|
1679
1734
|
} = t;
|
|
1680
|
-
const h =
|
|
1735
|
+
const h = st(Ar, void 0, Or), [v, b] = h, [w, y] = Mn(), [M, C] = Y(ne.Uninitialized), S = M === ne.Initialized, {
|
|
1681
1736
|
draggable: {
|
|
1682
1737
|
active: p,
|
|
1683
|
-
nodes:
|
|
1684
|
-
translate:
|
|
1738
|
+
nodes: m,
|
|
1739
|
+
translate: R
|
|
1685
1740
|
},
|
|
1686
1741
|
droppable: {
|
|
1687
1742
|
containers: k
|
|
1688
1743
|
}
|
|
1689
|
-
} = v,
|
|
1744
|
+
} = v, E = p ? m.get(p) : null, J = z({
|
|
1690
1745
|
initial: null,
|
|
1691
1746
|
translated: null
|
|
1692
|
-
}),
|
|
1693
|
-
var
|
|
1747
|
+
}), V = L(() => {
|
|
1748
|
+
var I;
|
|
1694
1749
|
return p != null ? {
|
|
1695
1750
|
id: p,
|
|
1696
1751
|
// It's possible for the active node to unmount while dragging
|
|
1697
|
-
data: (
|
|
1698
|
-
rect:
|
|
1752
|
+
data: (I = E == null ? void 0 : E.data) != null ? I : Rr,
|
|
1753
|
+
rect: J
|
|
1699
1754
|
} : null;
|
|
1700
|
-
}, [p,
|
|
1755
|
+
}, [p, E]), Q = z(null), [vt, pt] = Y(null), [G, bt] = Y(null), ve = Re(D, Object.values(D)), qe = Ye("DndDescribedBy", s), yt = L(() => k.getEnabled(), [k]), oe = Mr(g), {
|
|
1701
1756
|
droppableRects: le,
|
|
1702
|
-
measureDroppableContainers:
|
|
1703
|
-
measuringScheduled:
|
|
1704
|
-
} =
|
|
1757
|
+
measureDroppableContainers: Te,
|
|
1758
|
+
measuringScheduled: mt
|
|
1759
|
+
} = hr(yt, {
|
|
1705
1760
|
dragging: S,
|
|
1706
|
-
dependencies: [
|
|
1707
|
-
config:
|
|
1708
|
-
}),
|
|
1709
|
-
|
|
1710
|
-
activeNode: p ?
|
|
1711
|
-
config:
|
|
1712
|
-
initialRect:
|
|
1713
|
-
measure:
|
|
1761
|
+
dependencies: [R.x, R.y],
|
|
1762
|
+
config: oe.droppable
|
|
1763
|
+
}), K = dr(m, p), wt = L(() => G ? Fe(G) : null, [G]), Dt = bn(), xt = gr(K, oe.draggable.measure);
|
|
1764
|
+
Tr({
|
|
1765
|
+
activeNode: p ? m.get(p) : null,
|
|
1766
|
+
config: Dt.layoutShiftCompensation,
|
|
1767
|
+
initialRect: xt,
|
|
1768
|
+
measure: oe.draggable.measure
|
|
1714
1769
|
});
|
|
1715
|
-
const
|
|
1770
|
+
const X = $t(K, oe.draggable.measure, xt), Je = $t(K ? K.parentElement : null), ie = z({
|
|
1716
1771
|
activatorEvent: null,
|
|
1717
1772
|
active: null,
|
|
1718
|
-
activeNode:
|
|
1773
|
+
activeNode: K,
|
|
1719
1774
|
collisionRect: null,
|
|
1720
1775
|
collisions: null,
|
|
1721
1776
|
droppableRects: le,
|
|
1722
|
-
draggableNodes:
|
|
1777
|
+
draggableNodes: m,
|
|
1723
1778
|
draggingNode: null,
|
|
1724
1779
|
draggingNodeRect: null,
|
|
1725
1780
|
droppableContainers: k,
|
|
1726
1781
|
over: null,
|
|
1727
1782
|
scrollableAncestors: [],
|
|
1728
1783
|
scrollAdjustedTranslate: null
|
|
1729
|
-
}),
|
|
1730
|
-
measure:
|
|
1731
|
-
}), Le = (r =
|
|
1784
|
+
}), Ct = k.getNodeFor((n = ie.current.over) == null ? void 0 : n.id), se = Cr({
|
|
1785
|
+
measure: oe.dragOverlay.measure
|
|
1786
|
+
}), Le = (r = se.nodeRef.current) != null ? r : K, ce = S ? (i = se.rect) != null ? i : X : null, St = !!(se.nodeRef.current && se.rect), Rt = br(St ? null : X), Ve = on(Le ? q(Le) : null), Z = yr(S ? Ct ?? K : null), ke = xr(Z), Ie = cn(f, {
|
|
1732
1787
|
transform: {
|
|
1733
|
-
x:
|
|
1734
|
-
y:
|
|
1788
|
+
x: R.x - Rt.x,
|
|
1789
|
+
y: R.y - Rt.y,
|
|
1735
1790
|
scaleX: 1,
|
|
1736
1791
|
scaleY: 1
|
|
1737
1792
|
},
|
|
1738
|
-
activatorEvent:
|
|
1739
|
-
active:
|
|
1740
|
-
activeNodeRect:
|
|
1741
|
-
containerNodeRect:
|
|
1742
|
-
draggingNodeRect:
|
|
1743
|
-
over:
|
|
1744
|
-
overlayNodeRect:
|
|
1793
|
+
activatorEvent: G,
|
|
1794
|
+
active: V,
|
|
1795
|
+
activeNodeRect: X,
|
|
1796
|
+
containerNodeRect: Je,
|
|
1797
|
+
draggingNodeRect: ce,
|
|
1798
|
+
over: ie.current.over,
|
|
1799
|
+
overlayNodeRect: se.rect,
|
|
1745
1800
|
scrollableAncestors: Z,
|
|
1746
|
-
scrollableAncestorRects:
|
|
1747
|
-
windowRect:
|
|
1748
|
-
}),
|
|
1749
|
-
active:
|
|
1750
|
-
collisionRect:
|
|
1801
|
+
scrollableAncestorRects: ke,
|
|
1802
|
+
windowRect: Ve
|
|
1803
|
+
}), Et = wt ? he(wt, R) : null, Ot = mr(Z), un = Xt(Ot), dn = Xt(Ot, [X]), ue = he(Ie, un), de = ce ? Wn(ce, Ie) : null, pe = V && de ? u({
|
|
1804
|
+
active: V,
|
|
1805
|
+
collisionRect: de,
|
|
1751
1806
|
droppableRects: le,
|
|
1752
|
-
droppableContainers:
|
|
1753
|
-
pointerCoordinates:
|
|
1754
|
-
}) : null,
|
|
1755
|
-
(
|
|
1807
|
+
droppableContainers: yt,
|
|
1808
|
+
pointerCoordinates: Et
|
|
1809
|
+
}) : null, At = Fn(pe, "id"), [ee, Nt] = Y(null), fn = St ? Ie : he(Ie, dn), hn = Xn(fn, (o = ee == null ? void 0 : ee.rect) != null ? o : null, X), Mt = U(
|
|
1810
|
+
(I, P) => {
|
|
1756
1811
|
let {
|
|
1757
1812
|
sensor: B,
|
|
1758
1813
|
options: te
|
|
1759
|
-
} =
|
|
1814
|
+
} = P;
|
|
1760
1815
|
if (Q.current == null)
|
|
1761
1816
|
return;
|
|
1762
|
-
const F =
|
|
1817
|
+
const F = m.get(Q.current);
|
|
1763
1818
|
if (!F)
|
|
1764
1819
|
return;
|
|
1765
|
-
const
|
|
1820
|
+
const j = I.nativeEvent, H = new B({
|
|
1766
1821
|
active: Q.current,
|
|
1767
1822
|
activeNode: F,
|
|
1768
|
-
event:
|
|
1823
|
+
event: j,
|
|
1769
1824
|
options: te,
|
|
1770
1825
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
1771
1826
|
// otherwise they are frozen in time with the stale arguments
|
|
1772
|
-
context:
|
|
1773
|
-
onStart(
|
|
1827
|
+
context: ie,
|
|
1828
|
+
onStart(W) {
|
|
1774
1829
|
const be = Q.current;
|
|
1775
1830
|
if (be == null)
|
|
1776
1831
|
return;
|
|
1777
|
-
const
|
|
1778
|
-
if (!
|
|
1832
|
+
const ye = m.get(be);
|
|
1833
|
+
if (!ye)
|
|
1779
1834
|
return;
|
|
1780
1835
|
const {
|
|
1781
|
-
onDragStart:
|
|
1782
|
-
} = ve.current,
|
|
1836
|
+
onDragStart: ze
|
|
1837
|
+
} = ve.current, Pe = {
|
|
1783
1838
|
active: {
|
|
1784
1839
|
id: be,
|
|
1785
|
-
data:
|
|
1786
|
-
rect:
|
|
1840
|
+
data: ye.data,
|
|
1841
|
+
rect: J
|
|
1787
1842
|
}
|
|
1788
1843
|
};
|
|
1789
1844
|
De(() => {
|
|
1790
|
-
|
|
1791
|
-
type:
|
|
1792
|
-
initialCoordinates:
|
|
1845
|
+
ze == null || ze(Pe), C(ne.Initializing), b({
|
|
1846
|
+
type: O.DragStart,
|
|
1847
|
+
initialCoordinates: W,
|
|
1793
1848
|
active: be
|
|
1794
|
-
}),
|
|
1849
|
+
}), w({
|
|
1795
1850
|
type: "onDragStart",
|
|
1796
|
-
event:
|
|
1851
|
+
event: Pe
|
|
1797
1852
|
});
|
|
1798
1853
|
});
|
|
1799
1854
|
},
|
|
1800
|
-
onMove(
|
|
1801
|
-
|
|
1802
|
-
type:
|
|
1803
|
-
coordinates:
|
|
1855
|
+
onMove(W) {
|
|
1856
|
+
b({
|
|
1857
|
+
type: O.DragMove,
|
|
1858
|
+
coordinates: W
|
|
1804
1859
|
});
|
|
1805
1860
|
},
|
|
1806
|
-
onEnd:
|
|
1807
|
-
onCancel:
|
|
1861
|
+
onEnd: fe(O.DragEnd),
|
|
1862
|
+
onCancel: fe(O.DragCancel)
|
|
1808
1863
|
});
|
|
1809
1864
|
De(() => {
|
|
1810
|
-
|
|
1865
|
+
pt(H), bt(I.nativeEvent);
|
|
1811
1866
|
});
|
|
1812
|
-
function
|
|
1867
|
+
function fe(W) {
|
|
1813
1868
|
return async function() {
|
|
1814
1869
|
const {
|
|
1815
|
-
active:
|
|
1816
|
-
collisions:
|
|
1817
|
-
over:
|
|
1818
|
-
scrollAdjustedTranslate:
|
|
1819
|
-
} =
|
|
1820
|
-
let
|
|
1821
|
-
if (
|
|
1870
|
+
active: ye,
|
|
1871
|
+
collisions: ze,
|
|
1872
|
+
over: Pe,
|
|
1873
|
+
scrollAdjustedTranslate: Lt
|
|
1874
|
+
} = ie.current;
|
|
1875
|
+
let me = null;
|
|
1876
|
+
if (ye && Lt) {
|
|
1822
1877
|
const {
|
|
1823
|
-
cancelDrop:
|
|
1878
|
+
cancelDrop: we
|
|
1824
1879
|
} = ve.current;
|
|
1825
|
-
|
|
1826
|
-
activatorEvent:
|
|
1827
|
-
active:
|
|
1828
|
-
collisions:
|
|
1829
|
-
delta:
|
|
1830
|
-
over:
|
|
1831
|
-
},
|
|
1880
|
+
me = {
|
|
1881
|
+
activatorEvent: j,
|
|
1882
|
+
active: ye,
|
|
1883
|
+
collisions: ze,
|
|
1884
|
+
delta: Lt,
|
|
1885
|
+
over: Pe
|
|
1886
|
+
}, W === O.DragEnd && typeof we == "function" && await Promise.resolve(we(me)) && (W = O.DragCancel);
|
|
1832
1887
|
}
|
|
1833
1888
|
Q.current = null, De(() => {
|
|
1834
|
-
|
|
1835
|
-
type:
|
|
1836
|
-
}),
|
|
1837
|
-
const
|
|
1838
|
-
if (
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1841
|
-
type:
|
|
1842
|
-
event:
|
|
1889
|
+
b({
|
|
1890
|
+
type: W
|
|
1891
|
+
}), C(ne.Uninitialized), Nt(null), pt(null), bt(null);
|
|
1892
|
+
const we = W === O.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
1893
|
+
if (me) {
|
|
1894
|
+
const Ge = ve.current[we];
|
|
1895
|
+
Ge == null || Ge(me), w({
|
|
1896
|
+
type: we,
|
|
1897
|
+
event: me
|
|
1843
1898
|
});
|
|
1844
1899
|
}
|
|
1845
1900
|
});
|
|
@@ -1847,333 +1902,623 @@ const Tr = /* @__PURE__ */ un(function(t) {
|
|
|
1847
1902
|
}
|
|
1848
1903
|
},
|
|
1849
1904
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1850
|
-
[
|
|
1851
|
-
),
|
|
1852
|
-
const F = B.nativeEvent,
|
|
1905
|
+
[m]
|
|
1906
|
+
), gn = U((I, P) => (B, te) => {
|
|
1907
|
+
const F = B.nativeEvent, j = m.get(te);
|
|
1853
1908
|
if (
|
|
1854
1909
|
// Another sensor is already instantiating
|
|
1855
1910
|
Q.current !== null || // No active draggable
|
|
1856
|
-
!
|
|
1911
|
+
!j || // Event has already been captured
|
|
1857
1912
|
F.dndKit || F.defaultPrevented
|
|
1858
1913
|
)
|
|
1859
1914
|
return;
|
|
1860
|
-
const
|
|
1861
|
-
active:
|
|
1915
|
+
const H = {
|
|
1916
|
+
active: j
|
|
1862
1917
|
};
|
|
1863
|
-
|
|
1864
|
-
capturedBy:
|
|
1865
|
-
}, Q.current = te,
|
|
1866
|
-
}, [
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}, [
|
|
1918
|
+
I(B, P.options, H) === !0 && (F.dndKit = {
|
|
1919
|
+
capturedBy: P.sensor
|
|
1920
|
+
}, Q.current = te, Mt(B, P));
|
|
1921
|
+
}, [m, Mt]), Tt = fr(d, gn);
|
|
1922
|
+
wr(d), re(() => {
|
|
1923
|
+
X && M === ne.Initializing && C(ne.Initialized);
|
|
1924
|
+
}, [X, M]), N(
|
|
1870
1925
|
() => {
|
|
1871
1926
|
const {
|
|
1872
|
-
onDragMove:
|
|
1927
|
+
onDragMove: I
|
|
1873
1928
|
} = ve.current, {
|
|
1874
|
-
active:
|
|
1929
|
+
active: P,
|
|
1875
1930
|
activatorEvent: B,
|
|
1876
1931
|
collisions: te,
|
|
1877
1932
|
over: F
|
|
1878
|
-
} =
|
|
1879
|
-
if (!
|
|
1933
|
+
} = ie.current;
|
|
1934
|
+
if (!P || !B)
|
|
1880
1935
|
return;
|
|
1881
|
-
const
|
|
1882
|
-
active:
|
|
1936
|
+
const j = {
|
|
1937
|
+
active: P,
|
|
1883
1938
|
activatorEvent: B,
|
|
1884
1939
|
collisions: te,
|
|
1885
1940
|
delta: {
|
|
1886
|
-
x:
|
|
1887
|
-
y:
|
|
1941
|
+
x: ue.x,
|
|
1942
|
+
y: ue.y
|
|
1888
1943
|
},
|
|
1889
1944
|
over: F
|
|
1890
1945
|
};
|
|
1891
1946
|
De(() => {
|
|
1892
|
-
|
|
1947
|
+
I == null || I(j), w({
|
|
1893
1948
|
type: "onDragMove",
|
|
1894
|
-
event:
|
|
1949
|
+
event: j
|
|
1895
1950
|
});
|
|
1896
1951
|
});
|
|
1897
1952
|
},
|
|
1898
1953
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1899
|
-
[
|
|
1900
|
-
),
|
|
1954
|
+
[ue.x, ue.y]
|
|
1955
|
+
), N(
|
|
1901
1956
|
() => {
|
|
1902
1957
|
const {
|
|
1903
|
-
active:
|
|
1904
|
-
activatorEvent:
|
|
1958
|
+
active: I,
|
|
1959
|
+
activatorEvent: P,
|
|
1905
1960
|
collisions: B,
|
|
1906
1961
|
droppableContainers: te,
|
|
1907
1962
|
scrollAdjustedTranslate: F
|
|
1908
|
-
} =
|
|
1909
|
-
if (!
|
|
1963
|
+
} = ie.current;
|
|
1964
|
+
if (!I || Q.current == null || !P || !F)
|
|
1910
1965
|
return;
|
|
1911
1966
|
const {
|
|
1912
|
-
onDragOver:
|
|
1913
|
-
} = ve.current,
|
|
1914
|
-
id:
|
|
1915
|
-
rect:
|
|
1916
|
-
data:
|
|
1917
|
-
disabled:
|
|
1918
|
-
} : null,
|
|
1919
|
-
active:
|
|
1920
|
-
activatorEvent:
|
|
1967
|
+
onDragOver: j
|
|
1968
|
+
} = ve.current, H = te.get(At), fe = H && H.rect.current ? {
|
|
1969
|
+
id: H.id,
|
|
1970
|
+
rect: H.rect.current,
|
|
1971
|
+
data: H.data,
|
|
1972
|
+
disabled: H.disabled
|
|
1973
|
+
} : null, W = {
|
|
1974
|
+
active: I,
|
|
1975
|
+
activatorEvent: P,
|
|
1921
1976
|
collisions: B,
|
|
1922
1977
|
delta: {
|
|
1923
1978
|
x: F.x,
|
|
1924
1979
|
y: F.y
|
|
1925
1980
|
},
|
|
1926
|
-
over:
|
|
1981
|
+
over: fe
|
|
1927
1982
|
};
|
|
1928
1983
|
De(() => {
|
|
1929
|
-
|
|
1984
|
+
Nt(fe), j == null || j(W), w({
|
|
1930
1985
|
type: "onDragOver",
|
|
1931
|
-
event:
|
|
1986
|
+
event: W
|
|
1932
1987
|
});
|
|
1933
1988
|
});
|
|
1934
1989
|
},
|
|
1935
1990
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1936
|
-
[
|
|
1937
|
-
),
|
|
1938
|
-
|
|
1939
|
-
activatorEvent:
|
|
1940
|
-
active:
|
|
1941
|
-
activeNode:
|
|
1942
|
-
collisionRect:
|
|
1991
|
+
[At]
|
|
1992
|
+
), re(() => {
|
|
1993
|
+
ie.current = {
|
|
1994
|
+
activatorEvent: G,
|
|
1995
|
+
active: V,
|
|
1996
|
+
activeNode: K,
|
|
1997
|
+
collisionRect: de,
|
|
1943
1998
|
collisions: pe,
|
|
1944
1999
|
droppableRects: le,
|
|
1945
|
-
draggableNodes:
|
|
2000
|
+
draggableNodes: m,
|
|
1946
2001
|
draggingNode: Le,
|
|
1947
|
-
draggingNodeRect:
|
|
2002
|
+
draggingNodeRect: ce,
|
|
1948
2003
|
droppableContainers: k,
|
|
1949
2004
|
over: ee,
|
|
1950
2005
|
scrollableAncestors: Z,
|
|
1951
|
-
scrollAdjustedTranslate:
|
|
1952
|
-
},
|
|
1953
|
-
initial:
|
|
1954
|
-
translated:
|
|
2006
|
+
scrollAdjustedTranslate: ue
|
|
2007
|
+
}, J.current = {
|
|
2008
|
+
initial: ce,
|
|
2009
|
+
translated: de
|
|
1955
2010
|
};
|
|
1956
|
-
}, [
|
|
1957
|
-
...
|
|
1958
|
-
delta:
|
|
1959
|
-
draggingRect:
|
|
1960
|
-
pointerCoordinates:
|
|
2011
|
+
}, [V, K, pe, de, m, Le, ce, le, k, ee, Z, ue]), lr({
|
|
2012
|
+
...Dt,
|
|
2013
|
+
delta: R,
|
|
2014
|
+
draggingRect: de,
|
|
2015
|
+
pointerCoordinates: Et,
|
|
1961
2016
|
scrollableAncestors: Z,
|
|
1962
|
-
scrollableAncestorRects:
|
|
2017
|
+
scrollableAncestorRects: ke
|
|
1963
2018
|
});
|
|
1964
|
-
const
|
|
1965
|
-
active:
|
|
1966
|
-
activeNode:
|
|
1967
|
-
activeNodeRect:
|
|
1968
|
-
activatorEvent:
|
|
2019
|
+
const vn = L(() => ({
|
|
2020
|
+
active: V,
|
|
2021
|
+
activeNode: K,
|
|
2022
|
+
activeNodeRect: X,
|
|
2023
|
+
activatorEvent: G,
|
|
1969
2024
|
collisions: pe,
|
|
1970
|
-
containerNodeRect:
|
|
1971
|
-
dragOverlay:
|
|
1972
|
-
draggableNodes:
|
|
2025
|
+
containerNodeRect: Je,
|
|
2026
|
+
dragOverlay: se,
|
|
2027
|
+
draggableNodes: m,
|
|
1973
2028
|
droppableContainers: k,
|
|
1974
2029
|
droppableRects: le,
|
|
1975
2030
|
over: ee,
|
|
1976
|
-
measureDroppableContainers:
|
|
2031
|
+
measureDroppableContainers: Te,
|
|
1977
2032
|
scrollableAncestors: Z,
|
|
1978
|
-
scrollableAncestorRects:
|
|
1979
|
-
measuringConfiguration:
|
|
1980
|
-
measuringScheduled:
|
|
1981
|
-
windowRect:
|
|
1982
|
-
}), [
|
|
1983
|
-
activatorEvent:
|
|
1984
|
-
activators:
|
|
1985
|
-
active:
|
|
1986
|
-
activeNodeRect:
|
|
2033
|
+
scrollableAncestorRects: ke,
|
|
2034
|
+
measuringConfiguration: oe,
|
|
2035
|
+
measuringScheduled: mt,
|
|
2036
|
+
windowRect: Ve
|
|
2037
|
+
}), [V, K, X, G, pe, Je, se, m, k, le, ee, Te, Z, ke, oe, mt, Ve]), pn = L(() => ({
|
|
2038
|
+
activatorEvent: G,
|
|
2039
|
+
activators: Tt,
|
|
2040
|
+
active: V,
|
|
2041
|
+
activeNodeRect: X,
|
|
1987
2042
|
ariaDescribedById: {
|
|
1988
|
-
draggable:
|
|
2043
|
+
draggable: qe
|
|
1989
2044
|
},
|
|
1990
|
-
dispatch:
|
|
1991
|
-
draggableNodes:
|
|
2045
|
+
dispatch: b,
|
|
2046
|
+
draggableNodes: m,
|
|
1992
2047
|
over: ee,
|
|
1993
|
-
measureDroppableContainers:
|
|
1994
|
-
}), [
|
|
1995
|
-
return
|
|
1996
|
-
value:
|
|
1997
|
-
},
|
|
1998
|
-
value:
|
|
1999
|
-
},
|
|
2000
|
-
value:
|
|
2001
|
-
},
|
|
2002
|
-
value:
|
|
2003
|
-
},
|
|
2004
|
-
disabled: (
|
|
2005
|
-
})),
|
|
2006
|
-
...
|
|
2007
|
-
hiddenTextDescribedById:
|
|
2048
|
+
measureDroppableContainers: Te
|
|
2049
|
+
}), [G, Tt, V, X, b, qe, m, ee, Te]);
|
|
2050
|
+
return A.createElement(Ut.Provider, {
|
|
2051
|
+
value: y
|
|
2052
|
+
}, A.createElement(Me.Provider, {
|
|
2053
|
+
value: pn
|
|
2054
|
+
}, A.createElement(ln.Provider, {
|
|
2055
|
+
value: vn
|
|
2056
|
+
}, A.createElement(He.Provider, {
|
|
2057
|
+
value: hn
|
|
2058
|
+
}, c)), A.createElement(Nr, {
|
|
2059
|
+
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
2060
|
+
})), A.createElement(kn, {
|
|
2061
|
+
...a,
|
|
2062
|
+
hiddenTextDescribedById: qe
|
|
2008
2063
|
}));
|
|
2009
|
-
function
|
|
2010
|
-
const
|
|
2011
|
-
return typeof
|
|
2012
|
-
...
|
|
2064
|
+
function bn() {
|
|
2065
|
+
const I = (vt == null ? void 0 : vt.autoScrollEnabled) === !1, P = typeof l == "object" ? l.enabled === !1 : l === !1, B = S && !I && !P;
|
|
2066
|
+
return typeof l == "object" ? {
|
|
2067
|
+
...l,
|
|
2013
2068
|
enabled: B
|
|
2014
2069
|
} : {
|
|
2015
2070
|
enabled: B
|
|
2016
2071
|
};
|
|
2017
2072
|
}
|
|
2018
|
-
}),
|
|
2019
|
-
function
|
|
2073
|
+
}), Lr = /* @__PURE__ */ Oe(null), jt = "button", kr = "Droppable";
|
|
2074
|
+
function to(e) {
|
|
2020
2075
|
let {
|
|
2021
2076
|
id: t,
|
|
2022
2077
|
data: n,
|
|
2023
2078
|
disabled: r = !1,
|
|
2024
2079
|
attributes: i
|
|
2025
2080
|
} = e;
|
|
2026
|
-
const o =
|
|
2081
|
+
const o = Ye(kr), {
|
|
2027
2082
|
activators: s,
|
|
2028
|
-
activatorEvent:
|
|
2029
|
-
active:
|
|
2030
|
-
activeNodeRect:
|
|
2083
|
+
activatorEvent: a,
|
|
2084
|
+
active: l,
|
|
2085
|
+
activeNodeRect: c,
|
|
2031
2086
|
ariaDescribedById: d,
|
|
2032
|
-
draggableNodes:
|
|
2087
|
+
draggableNodes: u,
|
|
2033
2088
|
over: g
|
|
2034
|
-
} =
|
|
2035
|
-
role: f =
|
|
2036
|
-
roleDescription:
|
|
2089
|
+
} = ae(Me), {
|
|
2090
|
+
role: f = jt,
|
|
2091
|
+
roleDescription: D = "draggable",
|
|
2037
2092
|
tabIndex: h = 0
|
|
2038
|
-
} = i ?? {}, v = (
|
|
2039
|
-
|
|
2040
|
-
() => (
|
|
2093
|
+
} = i ?? {}, v = (l == null ? void 0 : l.id) === t, b = ae(v ? He : Lr), [w, y] = Xe(), [M, C] = Xe(), S = Dr(s, t), p = Re(n);
|
|
2094
|
+
re(
|
|
2095
|
+
() => (u.set(t, {
|
|
2041
2096
|
id: t,
|
|
2042
2097
|
key: o,
|
|
2043
|
-
node:
|
|
2044
|
-
activatorNode:
|
|
2098
|
+
node: w,
|
|
2099
|
+
activatorNode: M,
|
|
2045
2100
|
data: p
|
|
2046
2101
|
}), () => {
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2102
|
+
const R = u.get(t);
|
|
2103
|
+
R && R.key === o && u.delete(t);
|
|
2049
2104
|
}),
|
|
2050
2105
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2051
|
-
[
|
|
2106
|
+
[u, t]
|
|
2052
2107
|
);
|
|
2053
|
-
const
|
|
2108
|
+
const m = L(() => ({
|
|
2054
2109
|
role: f,
|
|
2055
2110
|
tabIndex: h,
|
|
2056
2111
|
"aria-disabled": r,
|
|
2057
|
-
"aria-pressed": v && f ===
|
|
2058
|
-
"aria-roledescription":
|
|
2112
|
+
"aria-pressed": v && f === jt ? !0 : void 0,
|
|
2113
|
+
"aria-roledescription": D,
|
|
2059
2114
|
"aria-describedby": d.draggable
|
|
2060
|
-
}), [r, f, h, v,
|
|
2115
|
+
}), [r, f, h, v, D, d.draggable]);
|
|
2061
2116
|
return {
|
|
2062
|
-
active:
|
|
2063
|
-
activatorEvent:
|
|
2064
|
-
activeNodeRect:
|
|
2065
|
-
attributes:
|
|
2117
|
+
active: l,
|
|
2118
|
+
activatorEvent: a,
|
|
2119
|
+
activeNodeRect: c,
|
|
2120
|
+
attributes: m,
|
|
2066
2121
|
isDragging: v,
|
|
2067
2122
|
listeners: r ? void 0 : S,
|
|
2068
|
-
node:
|
|
2123
|
+
node: w,
|
|
2069
2124
|
over: g,
|
|
2070
|
-
setNodeRef:
|
|
2071
|
-
setActivatorNodeRef:
|
|
2072
|
-
transform:
|
|
2125
|
+
setNodeRef: y,
|
|
2126
|
+
setActivatorNodeRef: C,
|
|
2127
|
+
transform: b
|
|
2073
2128
|
};
|
|
2074
2129
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return
|
|
2130
|
+
function Ir() {
|
|
2131
|
+
return ae(ln);
|
|
2077
2132
|
}
|
|
2078
|
-
const
|
|
2133
|
+
const zr = "Droppable", Pr = {
|
|
2079
2134
|
timeout: 25
|
|
2080
2135
|
};
|
|
2081
|
-
function
|
|
2136
|
+
function no(e) {
|
|
2082
2137
|
let {
|
|
2083
2138
|
data: t,
|
|
2084
2139
|
disabled: n = !1,
|
|
2085
2140
|
id: r,
|
|
2086
2141
|
resizeObserverConfig: i
|
|
2087
2142
|
} = e;
|
|
2088
|
-
const o =
|
|
2143
|
+
const o = Ye(zr), {
|
|
2089
2144
|
active: s,
|
|
2090
|
-
dispatch:
|
|
2091
|
-
over:
|
|
2092
|
-
measureDroppableContainers:
|
|
2093
|
-
} =
|
|
2145
|
+
dispatch: a,
|
|
2146
|
+
over: l,
|
|
2147
|
+
measureDroppableContainers: c
|
|
2148
|
+
} = ae(Me), d = z({
|
|
2094
2149
|
disabled: n
|
|
2095
|
-
}),
|
|
2096
|
-
disabled:
|
|
2150
|
+
}), u = z(!1), g = z(null), f = z(null), {
|
|
2151
|
+
disabled: D,
|
|
2097
2152
|
updateMeasurementsFor: h,
|
|
2098
2153
|
timeout: v
|
|
2099
2154
|
} = {
|
|
2100
|
-
...
|
|
2155
|
+
...Pr,
|
|
2101
2156
|
...i
|
|
2102
|
-
},
|
|
2157
|
+
}, b = Re(h ?? r), w = U(
|
|
2103
2158
|
() => {
|
|
2104
|
-
if (!
|
|
2105
|
-
|
|
2159
|
+
if (!u.current) {
|
|
2160
|
+
u.current = !0;
|
|
2106
2161
|
return;
|
|
2107
2162
|
}
|
|
2108
2163
|
f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
2109
|
-
|
|
2164
|
+
c(Array.isArray(b.current) ? b.current : [b.current]), f.current = null;
|
|
2110
2165
|
}, v);
|
|
2111
2166
|
},
|
|
2112
2167
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2113
2168
|
[v]
|
|
2114
|
-
),
|
|
2115
|
-
callback:
|
|
2116
|
-
disabled:
|
|
2117
|
-
}),
|
|
2118
|
-
|
|
2119
|
-
}, [
|
|
2120
|
-
return
|
|
2121
|
-
!
|
|
2122
|
-
}, [
|
|
2123
|
-
() => (
|
|
2124
|
-
type:
|
|
2169
|
+
), y = _e({
|
|
2170
|
+
callback: w,
|
|
2171
|
+
disabled: D || !s
|
|
2172
|
+
}), M = U((m, R) => {
|
|
2173
|
+
y && (R && (y.unobserve(R), u.current = !1), m && y.observe(m));
|
|
2174
|
+
}, [y]), [C, S] = Xe(M), p = Re(t);
|
|
2175
|
+
return N(() => {
|
|
2176
|
+
!y || !C.current || (y.disconnect(), u.current = !1, y.observe(C.current));
|
|
2177
|
+
}, [C, y]), re(
|
|
2178
|
+
() => (a({
|
|
2179
|
+
type: O.RegisterDroppable,
|
|
2125
2180
|
element: {
|
|
2126
2181
|
id: r,
|
|
2127
2182
|
key: o,
|
|
2128
2183
|
disabled: n,
|
|
2129
|
-
node:
|
|
2184
|
+
node: C,
|
|
2130
2185
|
rect: g,
|
|
2131
2186
|
data: p
|
|
2132
2187
|
}
|
|
2133
|
-
}), () =>
|
|
2134
|
-
type:
|
|
2188
|
+
}), () => a({
|
|
2189
|
+
type: O.UnregisterDroppable,
|
|
2135
2190
|
key: o,
|
|
2136
2191
|
id: r
|
|
2137
2192
|
})),
|
|
2138
2193
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2139
2194
|
[r]
|
|
2140
|
-
),
|
|
2141
|
-
n !== d.current.disabled && (
|
|
2142
|
-
type:
|
|
2195
|
+
), N(() => {
|
|
2196
|
+
n !== d.current.disabled && (a({
|
|
2197
|
+
type: O.SetDroppableDisabled,
|
|
2143
2198
|
id: r,
|
|
2144
2199
|
key: o,
|
|
2145
2200
|
disabled: n
|
|
2146
2201
|
}), d.current.disabled = n);
|
|
2147
|
-
}, [r, o, n,
|
|
2202
|
+
}, [r, o, n, a]), {
|
|
2148
2203
|
active: s,
|
|
2149
2204
|
rect: g,
|
|
2150
|
-
isOver: (
|
|
2151
|
-
node:
|
|
2152
|
-
over:
|
|
2205
|
+
isOver: (l == null ? void 0 : l.id) === r,
|
|
2206
|
+
node: C,
|
|
2207
|
+
over: l,
|
|
2153
2208
|
setNodeRef: S
|
|
2154
2209
|
};
|
|
2155
2210
|
}
|
|
2211
|
+
function Br(e) {
|
|
2212
|
+
let {
|
|
2213
|
+
animation: t,
|
|
2214
|
+
children: n
|
|
2215
|
+
} = e;
|
|
2216
|
+
const [r, i] = Y(null), [o, s] = Y(null), a = $e(n);
|
|
2217
|
+
return !n && !r && a && i(a), re(() => {
|
|
2218
|
+
if (!o)
|
|
2219
|
+
return;
|
|
2220
|
+
const l = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
|
|
2221
|
+
if (l == null || c == null) {
|
|
2222
|
+
i(null);
|
|
2223
|
+
return;
|
|
2224
|
+
}
|
|
2225
|
+
Promise.resolve(t(c, o)).then(() => {
|
|
2226
|
+
i(null);
|
|
2227
|
+
});
|
|
2228
|
+
}, [t, r, o]), A.createElement(A.Fragment, null, n, r ? mn(r, {
|
|
2229
|
+
ref: s
|
|
2230
|
+
}) : null);
|
|
2231
|
+
}
|
|
2232
|
+
const Fr = {
|
|
2233
|
+
x: 0,
|
|
2234
|
+
y: 0,
|
|
2235
|
+
scaleX: 1,
|
|
2236
|
+
scaleY: 1
|
|
2237
|
+
};
|
|
2238
|
+
function $r(e) {
|
|
2239
|
+
let {
|
|
2240
|
+
children: t
|
|
2241
|
+
} = e;
|
|
2242
|
+
return A.createElement(Me.Provider, {
|
|
2243
|
+
value: an
|
|
2244
|
+
}, A.createElement(He.Provider, {
|
|
2245
|
+
value: Fr
|
|
2246
|
+
}, t));
|
|
2247
|
+
}
|
|
2248
|
+
const Kr = {
|
|
2249
|
+
position: "fixed",
|
|
2250
|
+
touchAction: "none"
|
|
2251
|
+
}, Xr = (e) => lt(e) ? "transform 250ms ease" : void 0, jr = /* @__PURE__ */ wn((e, t) => {
|
|
2252
|
+
let {
|
|
2253
|
+
as: n,
|
|
2254
|
+
activatorEvent: r,
|
|
2255
|
+
adjustScale: i,
|
|
2256
|
+
children: o,
|
|
2257
|
+
className: s,
|
|
2258
|
+
rect: a,
|
|
2259
|
+
style: l,
|
|
2260
|
+
transform: c,
|
|
2261
|
+
transition: d = Xr
|
|
2262
|
+
} = e;
|
|
2263
|
+
if (!a)
|
|
2264
|
+
return null;
|
|
2265
|
+
const u = i ? c : {
|
|
2266
|
+
...c,
|
|
2267
|
+
scaleX: 1,
|
|
2268
|
+
scaleY: 1
|
|
2269
|
+
}, g = {
|
|
2270
|
+
...Kr,
|
|
2271
|
+
width: a.width,
|
|
2272
|
+
height: a.height,
|
|
2273
|
+
top: a.top,
|
|
2274
|
+
left: a.left,
|
|
2275
|
+
transform: nt.Transform.toString(u),
|
|
2276
|
+
transformOrigin: i && r ? zn(r, a) : void 0,
|
|
2277
|
+
transition: typeof d == "function" ? d(r) : d,
|
|
2278
|
+
...l
|
|
2279
|
+
};
|
|
2280
|
+
return A.createElement(n, {
|
|
2281
|
+
className: s,
|
|
2282
|
+
style: g,
|
|
2283
|
+
ref: t
|
|
2284
|
+
}, o);
|
|
2285
|
+
}), Wr = (e) => (t) => {
|
|
2286
|
+
let {
|
|
2287
|
+
active: n,
|
|
2288
|
+
dragOverlay: r
|
|
2289
|
+
} = t;
|
|
2290
|
+
const i = {}, {
|
|
2291
|
+
styles: o,
|
|
2292
|
+
className: s
|
|
2293
|
+
} = e;
|
|
2294
|
+
if (o != null && o.active)
|
|
2295
|
+
for (const [a, l] of Object.entries(o.active))
|
|
2296
|
+
l !== void 0 && (i[a] = n.node.style.getPropertyValue(a), n.node.style.setProperty(a, l));
|
|
2297
|
+
if (o != null && o.dragOverlay)
|
|
2298
|
+
for (const [a, l] of Object.entries(o.dragOverlay))
|
|
2299
|
+
l !== void 0 && r.node.style.setProperty(a, l);
|
|
2300
|
+
return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
|
|
2301
|
+
for (const [l, c] of Object.entries(i))
|
|
2302
|
+
n.node.style.setProperty(l, c);
|
|
2303
|
+
s != null && s.active && n.node.classList.remove(s.active);
|
|
2304
|
+
};
|
|
2305
|
+
}, Yr = (e) => {
|
|
2306
|
+
let {
|
|
2307
|
+
transform: {
|
|
2308
|
+
initial: t,
|
|
2309
|
+
final: n
|
|
2310
|
+
}
|
|
2311
|
+
} = e;
|
|
2312
|
+
return [{
|
|
2313
|
+
transform: nt.Transform.toString(t)
|
|
2314
|
+
}, {
|
|
2315
|
+
transform: nt.Transform.toString(n)
|
|
2316
|
+
}];
|
|
2317
|
+
}, Ur = {
|
|
2318
|
+
duration: 250,
|
|
2319
|
+
easing: "ease",
|
|
2320
|
+
keyframes: Yr,
|
|
2321
|
+
sideEffects: /* @__PURE__ */ Wr({
|
|
2322
|
+
styles: {
|
|
2323
|
+
active: {
|
|
2324
|
+
opacity: "0"
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
})
|
|
2328
|
+
};
|
|
2329
|
+
function _r(e) {
|
|
2330
|
+
let {
|
|
2331
|
+
config: t,
|
|
2332
|
+
draggableNodes: n,
|
|
2333
|
+
droppableContainers: r,
|
|
2334
|
+
measuringConfiguration: i
|
|
2335
|
+
} = e;
|
|
2336
|
+
return ct((o, s) => {
|
|
2337
|
+
if (t === null)
|
|
2338
|
+
return;
|
|
2339
|
+
const a = n.get(o);
|
|
2340
|
+
if (!a)
|
|
2341
|
+
return;
|
|
2342
|
+
const l = a.node.current;
|
|
2343
|
+
if (!l)
|
|
2344
|
+
return;
|
|
2345
|
+
const c = sn(s);
|
|
2346
|
+
if (!c)
|
|
2347
|
+
return;
|
|
2348
|
+
const {
|
|
2349
|
+
transform: d
|
|
2350
|
+
} = q(s).getComputedStyle(s), u = Ht(d);
|
|
2351
|
+
if (!u)
|
|
2352
|
+
return;
|
|
2353
|
+
const g = typeof t == "function" ? t : Hr(t);
|
|
2354
|
+
return en(l, i.draggable.measure), g({
|
|
2355
|
+
active: {
|
|
2356
|
+
id: o,
|
|
2357
|
+
data: a.data,
|
|
2358
|
+
node: l,
|
|
2359
|
+
rect: i.draggable.measure(l)
|
|
2360
|
+
},
|
|
2361
|
+
draggableNodes: n,
|
|
2362
|
+
dragOverlay: {
|
|
2363
|
+
node: s,
|
|
2364
|
+
rect: i.dragOverlay.measure(c)
|
|
2365
|
+
},
|
|
2366
|
+
droppableContainers: r,
|
|
2367
|
+
measuringConfiguration: i,
|
|
2368
|
+
transform: u
|
|
2369
|
+
});
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2372
|
+
function Hr(e) {
|
|
2373
|
+
const {
|
|
2374
|
+
duration: t,
|
|
2375
|
+
easing: n,
|
|
2376
|
+
sideEffects: r,
|
|
2377
|
+
keyframes: i
|
|
2378
|
+
} = {
|
|
2379
|
+
...Ur,
|
|
2380
|
+
...e
|
|
2381
|
+
};
|
|
2382
|
+
return (o) => {
|
|
2383
|
+
let {
|
|
2384
|
+
active: s,
|
|
2385
|
+
dragOverlay: a,
|
|
2386
|
+
transform: l,
|
|
2387
|
+
...c
|
|
2388
|
+
} = o;
|
|
2389
|
+
if (!t)
|
|
2390
|
+
return;
|
|
2391
|
+
const d = {
|
|
2392
|
+
x: a.rect.left - s.rect.left,
|
|
2393
|
+
y: a.rect.top - s.rect.top
|
|
2394
|
+
}, u = {
|
|
2395
|
+
scaleX: l.scaleX !== 1 ? s.rect.width * l.scaleX / a.rect.width : 1,
|
|
2396
|
+
scaleY: l.scaleY !== 1 ? s.rect.height * l.scaleY / a.rect.height : 1
|
|
2397
|
+
}, g = {
|
|
2398
|
+
x: l.x - d.x,
|
|
2399
|
+
y: l.y - d.y,
|
|
2400
|
+
...u
|
|
2401
|
+
}, f = i({
|
|
2402
|
+
...c,
|
|
2403
|
+
active: s,
|
|
2404
|
+
dragOverlay: a,
|
|
2405
|
+
transform: {
|
|
2406
|
+
initial: l,
|
|
2407
|
+
final: g
|
|
2408
|
+
}
|
|
2409
|
+
}), [D] = f, h = f[f.length - 1];
|
|
2410
|
+
if (JSON.stringify(D) === JSON.stringify(h))
|
|
2411
|
+
return;
|
|
2412
|
+
const v = r == null ? void 0 : r({
|
|
2413
|
+
active: s,
|
|
2414
|
+
dragOverlay: a,
|
|
2415
|
+
...c
|
|
2416
|
+
}), b = a.node.animate(f, {
|
|
2417
|
+
duration: t,
|
|
2418
|
+
easing: n,
|
|
2419
|
+
fill: "forwards"
|
|
2420
|
+
});
|
|
2421
|
+
return new Promise((w) => {
|
|
2422
|
+
b.onfinish = () => {
|
|
2423
|
+
v == null || v(), w();
|
|
2424
|
+
};
|
|
2425
|
+
});
|
|
2426
|
+
};
|
|
2427
|
+
}
|
|
2428
|
+
let Wt = 0;
|
|
2429
|
+
function qr(e) {
|
|
2430
|
+
return L(() => {
|
|
2431
|
+
if (e != null)
|
|
2432
|
+
return Wt++, Wt;
|
|
2433
|
+
}, [e]);
|
|
2434
|
+
}
|
|
2435
|
+
const ro = /* @__PURE__ */ A.memo((e) => {
|
|
2436
|
+
let {
|
|
2437
|
+
adjustScale: t = !1,
|
|
2438
|
+
children: n,
|
|
2439
|
+
dropAnimation: r,
|
|
2440
|
+
style: i,
|
|
2441
|
+
transition: o,
|
|
2442
|
+
modifiers: s,
|
|
2443
|
+
wrapperElement: a = "div",
|
|
2444
|
+
className: l,
|
|
2445
|
+
zIndex: c = 999
|
|
2446
|
+
} = e;
|
|
2447
|
+
const {
|
|
2448
|
+
activatorEvent: d,
|
|
2449
|
+
active: u,
|
|
2450
|
+
activeNodeRect: g,
|
|
2451
|
+
containerNodeRect: f,
|
|
2452
|
+
draggableNodes: D,
|
|
2453
|
+
droppableContainers: h,
|
|
2454
|
+
dragOverlay: v,
|
|
2455
|
+
over: b,
|
|
2456
|
+
measuringConfiguration: w,
|
|
2457
|
+
scrollableAncestors: y,
|
|
2458
|
+
scrollableAncestorRects: M,
|
|
2459
|
+
windowRect: C
|
|
2460
|
+
} = Ir(), S = ae(He), p = qr(u == null ? void 0 : u.id), m = cn(s, {
|
|
2461
|
+
activatorEvent: d,
|
|
2462
|
+
active: u,
|
|
2463
|
+
activeNodeRect: g,
|
|
2464
|
+
containerNodeRect: f,
|
|
2465
|
+
draggingNodeRect: v.rect,
|
|
2466
|
+
over: b,
|
|
2467
|
+
overlayNodeRect: v.rect,
|
|
2468
|
+
scrollableAncestors: y,
|
|
2469
|
+
scrollableAncestorRects: M,
|
|
2470
|
+
transform: S,
|
|
2471
|
+
windowRect: C
|
|
2472
|
+
}), R = gt(g), k = _r({
|
|
2473
|
+
config: r,
|
|
2474
|
+
draggableNodes: D,
|
|
2475
|
+
droppableContainers: h,
|
|
2476
|
+
measuringConfiguration: w
|
|
2477
|
+
}), E = R ? v.setRef : void 0;
|
|
2478
|
+
return A.createElement($r, null, A.createElement(Br, {
|
|
2479
|
+
animation: k
|
|
2480
|
+
}, u && p ? A.createElement(jr, {
|
|
2481
|
+
key: p,
|
|
2482
|
+
id: u.id,
|
|
2483
|
+
ref: E,
|
|
2484
|
+
as: a,
|
|
2485
|
+
activatorEvent: d,
|
|
2486
|
+
adjustScale: t,
|
|
2487
|
+
className: l,
|
|
2488
|
+
transition: o,
|
|
2489
|
+
rect: R,
|
|
2490
|
+
style: {
|
|
2491
|
+
zIndex: c,
|
|
2492
|
+
...i
|
|
2493
|
+
},
|
|
2494
|
+
transform: m
|
|
2495
|
+
}, n) : null));
|
|
2496
|
+
});
|
|
2156
2497
|
export {
|
|
2157
2498
|
Ce as AutoScrollActivator,
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2499
|
+
eo as DndContext,
|
|
2500
|
+
ro as DragOverlay,
|
|
2501
|
+
x as KeyboardCode,
|
|
2502
|
+
nn as KeyboardSensor,
|
|
2503
|
+
it as MeasuringFrequency,
|
|
2162
2504
|
Ee as MeasuringStrategy,
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2505
|
+
sr as MouseSensor,
|
|
2506
|
+
rn as PointerSensor,
|
|
2507
|
+
ar as TouchSensor,
|
|
2166
2508
|
We as TraversalOrder,
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2509
|
+
cn as applyModifiers,
|
|
2510
|
+
Zr as closestCenter,
|
|
2511
|
+
Ln as defaultAnnouncements,
|
|
2512
|
+
_ as defaultCoordinates,
|
|
2513
|
+
Ur as defaultDropAnimation,
|
|
2514
|
+
Wr as defaultDropAnimationSideEffects,
|
|
2515
|
+
Tn as defaultScreenReaderInstructions,
|
|
2516
|
+
Ne as getClientRect,
|
|
2517
|
+
Fn as getFirstCollision,
|
|
2518
|
+
dt as getScrollableAncestors,
|
|
2519
|
+
Kn as rectIntersection,
|
|
2520
|
+
Ir as useDndContext,
|
|
2521
|
+
Nn as useDndMonitor,
|
|
2522
|
+
to as useDraggable,
|
|
2523
|
+
no as useDroppable
|
|
2179
2524
|
};
|