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