@fluid-app/fluid-cli-theme-dev 0.1.1021 → 0.1.1022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist-cli-preview/.vite/manifest.json +264 -254
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/Card-D4L2W6cc.js +82 -0
- package/dist/dist-cli-preview/chunks/{Combobox-DluUOyIh.js → Combobox-CEX3Z0-U.js} +5 -5
- package/dist/dist-cli-preview/chunks/{ContactsScreen-BfIuH4zD.js → ContactsScreen-Cge68-xW.js} +20 -20
- package/dist/dist-cli-preview/chunks/MediaScreen-DBtTyyfN.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-ppb9SRAo.js → MemberManagementProviders-Dg8tTCn6.js} +21 -21
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-DX_TqMKQ.js → MemberShareablesScreen-qX0-mBK9.js} +55 -54
- package/dist/dist-cli-preview/chunks/{MessagingScreen-DSyXhc2b.js → MessagingScreen-B3V1uUNn.js} +10 -10
- package/dist/dist-cli-preview/chunks/{MobileActionSheet-D2rBX4Lx.js → MobileActionSheet-Bu4VYNYv.js} +19 -19
- package/dist/dist-cli-preview/chunks/{MySiteScreen-CHt-UJwd.js → MySiteScreen-TD4gil6g.js} +99 -98
- package/dist/dist-cli-preview/chunks/{OrdersScreen-BjEvn_GA.js → OrdersScreen-CR3uIBN5.js} +19 -19
- package/dist/dist-cli-preview/chunks/OrdersScreen-cYuf1LSQ.js +9 -0
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Dj6CaY27.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-B3BFo8T5.js → PortalTenantClientProvider-Cm8sybr0.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-gEK7hkL0.js → ProfileScreen-Dw43QPwf.js} +14 -14
- package/dist/dist-cli-preview/chunks/{ResponsiveDialog-Cuv5gFUx.js → ResponsiveDialog-BQjNkHDC.js} +14 -14
- package/dist/dist-cli-preview/chunks/{Select-CD9zC8ic.js → Select-sW9YXp54.js} +2 -2
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DfRU96gn.js → SubscriptionsScreen-CDlz7hkF.js} +3 -3
- package/dist/dist-cli-preview/chunks/{Textarea-BX1sqax1.js → Textarea-DumX44JD.js} +15 -15
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-gWamEEiQ.js → account-screen-runtime-DBo540sf.js} +14 -14
- package/dist/dist-cli-preview/chunks/{arrow-left-C-2EMJLp.js → arrow-left-BaX36-LV.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-BstLNvNL.js → cli-preview-BKgnX_vs.js} +9 -9
- package/dist/dist-cli-preview/chunks/{client.gen-Bn09emPC.js → client.gen-C9JDLz8R.js} +1 -1
- package/dist/dist-cli-preview/chunks/{copy-DO_MJg1G.js → copy-Dtj1yNq0.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-DRAx82BG.js → countries-api-adapter-fEvFZIhb.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-Cw8YYFhs.js → create-card-entry-container-BjXD619-.js} +7614 -6243
- package/dist/dist-cli-preview/chunks/{hey-api-client-BtWnXt6Y.js → hey-api-client-BwxK1GCx.js} +172 -73
- package/dist/dist-cli-preview/chunks/{index-dtGU2026.js → index-BcVHp4rw.js} +2 -2
- package/dist/dist-cli-preview/chunks/{index-B23yRHYj.js → index-D0GO5Cwg.js} +17 -17
- package/dist/dist-cli-preview/chunks/{index-DSMhrA7P.js → index-DNhH5pOw.js} +1 -1
- package/dist/dist-cli-preview/chunks/{map-pin-_fZf7MT1.js → map-pin-RvaS9V_R.js} +1 -1
- package/dist/dist-cli-preview/chunks/{mount-account-screen-CLp4ME_b.js → mount-account-screen-DLP2iHgF.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-thG6x2xQ.js → navigate-account-screen-DijqdMMC.js} +1 -1
- package/dist/dist-cli-preview/chunks/{schemas-BGhVnzPl.js → schemas-CJGm6iSl.js} +2 -2
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-yYCdefUM.js → screen-route-slug-utils-DqTRjYZP.js} +1 -1
- package/dist/dist-cli-preview/chunks/{search-DAHGESai.js → search-BIGAexMo.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-1PrsBukT.js → sheet-haptics-context-iA31KqTw.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sidebar-DqS7s6Fo.js → sidebar-CA_IU2Cj.js} +7 -7
- package/dist/dist-cli-preview/chunks/{sortable.esm-aUBXTWUl.js → sortable.esm-DpnYej2Q.js} +573 -653
- package/dist/dist-cli-preview/chunks/{store-api-context-DfNTd_aW.js → store-api-context-Cdcr1SaX.js} +1 -1
- package/dist/dist-cli-preview/chunks/{translation-api-context-factory-DDptTXAu.js → translation-api-context-factory-BHkbs163.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-mobile-CzhxjMYC.js → use-mobile-D7RwBZ2l.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-optional-store-DdujEdZ6.js → use-optional-store-KM7c5kva.js} +2 -2
- package/dist/dist-cli-preview/chunks/{use-store-B2hbh2xH.js → use-store-BcHHhhoB.js} +4 -4
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-BoOiol5L.js → useInfiniteQuery-B0k2lCPD.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-lOg_maXR.js → users-Cxq5CaI4.js} +1 -1
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/MediaScreen-H6iV-Ufc.js +0 -8
- package/dist/dist-cli-preview/chunks/OrdersScreen-x3dhaNsm.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Cs2hdnx7.js +0 -8
|
@@ -1,136 +1,61 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { u as ve } from "./schemas-
|
|
1
|
+
import { c as xt, l as a, Y as ot, _ as ge, Z as z, ai as Le } from "./account-screen-runtime-DBo540sf.js";
|
|
2
|
+
import { u as ve } from "./schemas-CJGm6iSl.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.575.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
7
7
|
* See the LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const kn = [
|
|
10
10
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
11
11
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
12
12
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
13
13
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
14
14
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
15
15
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
16
|
-
],
|
|
16
|
+
], bo = xt("grip-vertical", kn);
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.575.0 - ISC
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const On = [
|
|
24
24
|
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
25
25
|
["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
|
|
26
26
|
["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
|
|
27
27
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
|
|
28
|
-
],
|
|
28
|
+
], yo = xt("layout-grid", On);
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v0.575.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const Nn = [
|
|
36
36
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
37
37
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
38
|
-
],
|
|
39
|
-
function Do({
|
|
40
|
-
className: e,
|
|
41
|
-
...t
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */ $e.jsx(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "card",
|
|
47
|
-
className: Ke(
|
|
48
|
-
"bg-card text-card-foreground flex h-full flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
49
|
-
e
|
|
50
|
-
),
|
|
51
|
-
...t
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
function Co({
|
|
56
|
-
className: e,
|
|
57
|
-
...t
|
|
58
|
-
}) {
|
|
59
|
-
return /* @__PURE__ */ $e.jsx(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
"data-slot": "card-header",
|
|
63
|
-
className: Ke(
|
|
64
|
-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
65
|
-
e
|
|
66
|
-
),
|
|
67
|
-
...t
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
function So({
|
|
72
|
-
className: e,
|
|
73
|
-
...t
|
|
74
|
-
}) {
|
|
75
|
-
return /* @__PURE__ */ $e.jsx(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
"data-slot": "card-title",
|
|
79
|
-
className: Ke("leading-none font-semibold", e),
|
|
80
|
-
...t
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
function Ro({
|
|
85
|
-
className: e,
|
|
86
|
-
...t
|
|
87
|
-
}) {
|
|
88
|
-
return /* @__PURE__ */ $e.jsx(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
"data-slot": "card-action",
|
|
92
|
-
className: Ke(
|
|
93
|
-
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
94
|
-
e
|
|
95
|
-
),
|
|
96
|
-
...t
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
function Eo({
|
|
101
|
-
className: e,
|
|
102
|
-
...t
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ $e.jsx(
|
|
105
|
-
"div",
|
|
106
|
-
{
|
|
107
|
-
"data-slot": "card-content",
|
|
108
|
-
className: Ke("px-6", e),
|
|
109
|
-
...t
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
const Gt = a.createContext(null), Mo = Gt.Provider;
|
|
38
|
+
], mo = xt("user", Nn), Ht = a.createContext(null), wo = Ht.Provider;
|
|
114
39
|
function H() {
|
|
115
|
-
const e = a.use(
|
|
40
|
+
const e = a.use(Ht);
|
|
116
41
|
if (!e)
|
|
117
42
|
throw new Error("useMySiteApi must be used within a MySiteApiProvider");
|
|
118
43
|
return e;
|
|
119
44
|
}
|
|
120
|
-
const
|
|
45
|
+
const k = {
|
|
121
46
|
profile: () => ["portal-mysite", "profile"],
|
|
122
47
|
links: () => ["portal-mysite", "links"],
|
|
123
48
|
favorites: () => ["portal-mysite", "favorites"],
|
|
124
49
|
themes: () => ["portal-mysite", "themes"]
|
|
125
50
|
};
|
|
126
|
-
function
|
|
51
|
+
function xo() {
|
|
127
52
|
const e = H();
|
|
128
|
-
return
|
|
129
|
-
queryKey:
|
|
53
|
+
return ot({
|
|
54
|
+
queryKey: k.profile(),
|
|
130
55
|
queryFn: () => e.fetchProfile()
|
|
131
56
|
});
|
|
132
57
|
}
|
|
133
|
-
function
|
|
58
|
+
function Do(e) {
|
|
134
59
|
const t = H(), n = ge();
|
|
135
60
|
return ve({
|
|
136
61
|
mutationFn: (r) => t.updateSettings(r),
|
|
@@ -138,52 +63,52 @@ function Io(e) {
|
|
|
138
63
|
// otherwise show a success toast over the slug the user just replaced.
|
|
139
64
|
onSuccess: async (r, o) => {
|
|
140
65
|
await n.invalidateQueries({
|
|
141
|
-
queryKey:
|
|
66
|
+
queryKey: k.profile()
|
|
142
67
|
}), await e?.onSuccess?.(o);
|
|
143
68
|
}
|
|
144
69
|
});
|
|
145
70
|
}
|
|
146
|
-
function
|
|
71
|
+
function Co() {
|
|
147
72
|
const e = H();
|
|
148
|
-
return
|
|
149
|
-
queryKey:
|
|
73
|
+
return ot({
|
|
74
|
+
queryKey: k.links(),
|
|
150
75
|
queryFn: () => e.listLinks()
|
|
151
76
|
});
|
|
152
77
|
}
|
|
153
|
-
function
|
|
78
|
+
function So() {
|
|
154
79
|
const e = H(), t = ge();
|
|
155
80
|
return ve({
|
|
156
81
|
mutationFn: (n) => e.createLink(n),
|
|
157
82
|
onSuccess: () => {
|
|
158
83
|
t.invalidateQueries({
|
|
159
|
-
queryKey:
|
|
84
|
+
queryKey: k.links()
|
|
160
85
|
});
|
|
161
86
|
}
|
|
162
87
|
});
|
|
163
88
|
}
|
|
164
|
-
function
|
|
89
|
+
function Ro() {
|
|
165
90
|
const e = H(), t = ge();
|
|
166
91
|
return ve({
|
|
167
92
|
mutationFn: ({ linkId: n, body: r }) => e.updateLink(n, r),
|
|
168
93
|
onSuccess: () => {
|
|
169
94
|
t.invalidateQueries({
|
|
170
|
-
queryKey:
|
|
95
|
+
queryKey: k.links()
|
|
171
96
|
});
|
|
172
97
|
}
|
|
173
98
|
});
|
|
174
99
|
}
|
|
175
|
-
function
|
|
100
|
+
function Eo() {
|
|
176
101
|
const e = H(), t = ge();
|
|
177
102
|
return ve({
|
|
178
103
|
mutationFn: (n) => e.deleteLink(n),
|
|
179
104
|
onSuccess: () => {
|
|
180
105
|
t.invalidateQueries({
|
|
181
|
-
queryKey:
|
|
106
|
+
queryKey: k.links()
|
|
182
107
|
});
|
|
183
108
|
}
|
|
184
109
|
});
|
|
185
110
|
}
|
|
186
|
-
function
|
|
111
|
+
function Mo() {
|
|
187
112
|
const e = H(), t = ge();
|
|
188
113
|
return ve({
|
|
189
114
|
mutationFn: ({
|
|
@@ -191,45 +116,45 @@ function Lo() {
|
|
|
191
116
|
}) => e.reorderLinks(n),
|
|
192
117
|
onMutate: async ({ optimisticItems: n }) => {
|
|
193
118
|
await t.cancelQueries({
|
|
194
|
-
queryKey:
|
|
119
|
+
queryKey: k.links()
|
|
195
120
|
});
|
|
196
121
|
const r = t.getQueryData(
|
|
197
|
-
|
|
122
|
+
k.links()
|
|
198
123
|
);
|
|
199
|
-
return t.setQueryData(
|
|
124
|
+
return t.setQueryData(k.links(), n), { previousData: r };
|
|
200
125
|
},
|
|
201
126
|
onError: (n, r, o) => {
|
|
202
127
|
o?.previousData && t.setQueryData(
|
|
203
|
-
|
|
128
|
+
k.links(),
|
|
204
129
|
o.previousData
|
|
205
130
|
);
|
|
206
131
|
},
|
|
207
132
|
onSettled: () => {
|
|
208
133
|
t.invalidateQueries({
|
|
209
|
-
queryKey:
|
|
134
|
+
queryKey: k.links()
|
|
210
135
|
});
|
|
211
136
|
}
|
|
212
137
|
});
|
|
213
138
|
}
|
|
214
|
-
function
|
|
139
|
+
function Ao() {
|
|
215
140
|
const e = H();
|
|
216
|
-
return
|
|
217
|
-
queryKey:
|
|
141
|
+
return ot({
|
|
142
|
+
queryKey: k.favorites(),
|
|
218
143
|
queryFn: () => e.listFavorites()
|
|
219
144
|
});
|
|
220
145
|
}
|
|
221
|
-
function
|
|
146
|
+
function Io() {
|
|
222
147
|
const e = H(), t = ge();
|
|
223
148
|
return ve({
|
|
224
149
|
mutationFn: (n) => e.deleteFavorite(n),
|
|
225
150
|
onSuccess: () => {
|
|
226
151
|
t.invalidateQueries({
|
|
227
|
-
queryKey:
|
|
152
|
+
queryKey: k.favorites()
|
|
228
153
|
});
|
|
229
154
|
}
|
|
230
155
|
});
|
|
231
156
|
}
|
|
232
|
-
function
|
|
157
|
+
function To() {
|
|
233
158
|
const e = H(), t = ge();
|
|
234
159
|
return ve({
|
|
235
160
|
mutationFn: ({
|
|
@@ -237,34 +162,34 @@ function zo() {
|
|
|
237
162
|
}) => e.reorderFavorites(n),
|
|
238
163
|
onMutate: async ({ optimisticItems: n }) => {
|
|
239
164
|
await t.cancelQueries({
|
|
240
|
-
queryKey:
|
|
165
|
+
queryKey: k.favorites()
|
|
241
166
|
});
|
|
242
167
|
const r = t.getQueryData(
|
|
243
|
-
|
|
168
|
+
k.favorites()
|
|
244
169
|
);
|
|
245
|
-
return t.setQueryData(
|
|
170
|
+
return t.setQueryData(k.favorites(), n), { previousData: r };
|
|
246
171
|
},
|
|
247
172
|
onError: (n, r, o) => {
|
|
248
173
|
o?.previousData && t.setQueryData(
|
|
249
|
-
|
|
174
|
+
k.favorites(),
|
|
250
175
|
o.previousData
|
|
251
176
|
);
|
|
252
177
|
},
|
|
253
178
|
onSettled: () => {
|
|
254
179
|
t.invalidateQueries({
|
|
255
|
-
queryKey:
|
|
180
|
+
queryKey: k.favorites()
|
|
256
181
|
});
|
|
257
182
|
}
|
|
258
183
|
});
|
|
259
184
|
}
|
|
260
|
-
function
|
|
185
|
+
function ko() {
|
|
261
186
|
const e = H();
|
|
262
|
-
return
|
|
263
|
-
queryKey:
|
|
187
|
+
return ot({
|
|
188
|
+
queryKey: k.themes(),
|
|
264
189
|
queryFn: () => e.listThemes()
|
|
265
190
|
});
|
|
266
191
|
}
|
|
267
|
-
function
|
|
192
|
+
function Ln() {
|
|
268
193
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
269
194
|
t[n] = arguments[n];
|
|
270
195
|
return a.useMemo(
|
|
@@ -275,36 +200,36 @@ function Fn() {
|
|
|
275
200
|
t
|
|
276
201
|
);
|
|
277
202
|
}
|
|
278
|
-
const
|
|
203
|
+
const it = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
279
204
|
function Ce(e) {
|
|
280
205
|
const t = Object.prototype.toString.call(e);
|
|
281
206
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
282
207
|
t === "[object global]";
|
|
283
208
|
}
|
|
284
|
-
function
|
|
209
|
+
function Dt(e) {
|
|
285
210
|
return "nodeType" in e;
|
|
286
211
|
}
|
|
287
212
|
function B(e) {
|
|
288
213
|
var t, n;
|
|
289
|
-
return e ? Ce(e) ? e :
|
|
214
|
+
return e ? Ce(e) ? e : Dt(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
290
215
|
}
|
|
291
|
-
function
|
|
216
|
+
function Ct(e) {
|
|
292
217
|
const {
|
|
293
218
|
Document: t
|
|
294
219
|
} = B(e);
|
|
295
220
|
return e instanceof t;
|
|
296
221
|
}
|
|
297
|
-
function
|
|
222
|
+
function Ke(e) {
|
|
298
223
|
return Ce(e) ? !1 : e instanceof B(e).HTMLElement;
|
|
299
224
|
}
|
|
300
|
-
function
|
|
225
|
+
function Vt(e) {
|
|
301
226
|
return e instanceof B(e).SVGElement;
|
|
302
227
|
}
|
|
303
228
|
function Se(e) {
|
|
304
|
-
return e ? Ce(e) ? e.document :
|
|
229
|
+
return e ? Ce(e) ? e.document : Dt(e) ? Ct(e) ? e : Ke(e) || Vt(e) ? e.ownerDocument : document : document : document;
|
|
305
230
|
}
|
|
306
|
-
const ee =
|
|
307
|
-
function
|
|
231
|
+
const ee = it ? a.useLayoutEffect : a.useEffect;
|
|
232
|
+
function St(e) {
|
|
308
233
|
const t = a.useRef(e);
|
|
309
234
|
return ee(() => {
|
|
310
235
|
t.current = e;
|
|
@@ -314,7 +239,7 @@ function Et(e) {
|
|
|
314
239
|
return t.current == null ? void 0 : t.current(...r);
|
|
315
240
|
}, []);
|
|
316
241
|
}
|
|
317
|
-
function
|
|
242
|
+
function Pn() {
|
|
318
243
|
const e = a.useRef(null), t = a.useCallback((r, o) => {
|
|
319
244
|
e.current = setInterval(r, o);
|
|
320
245
|
}, []), n = a.useCallback(() => {
|
|
@@ -329,7 +254,7 @@ function Be(e, t) {
|
|
|
329
254
|
n.current !== e && (n.current = e);
|
|
330
255
|
}, t), n;
|
|
331
256
|
}
|
|
332
|
-
function
|
|
257
|
+
function je(e, t) {
|
|
333
258
|
const n = a.useRef();
|
|
334
259
|
return a.useMemo(
|
|
335
260
|
() => {
|
|
@@ -340,8 +265,8 @@ function Ue(e, t) {
|
|
|
340
265
|
[...t]
|
|
341
266
|
);
|
|
342
267
|
}
|
|
343
|
-
function
|
|
344
|
-
const t =
|
|
268
|
+
function Ze(e) {
|
|
269
|
+
const t = St(e), n = a.useRef(null), r = a.useCallback(
|
|
345
270
|
(o) => {
|
|
346
271
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
347
272
|
},
|
|
@@ -350,22 +275,22 @@ function tt(e) {
|
|
|
350
275
|
);
|
|
351
276
|
return [n, r];
|
|
352
277
|
}
|
|
353
|
-
function
|
|
278
|
+
function pt(e) {
|
|
354
279
|
const t = a.useRef();
|
|
355
280
|
return a.useEffect(() => {
|
|
356
281
|
t.current = e;
|
|
357
282
|
}, [e]), t.current;
|
|
358
283
|
}
|
|
359
|
-
let
|
|
360
|
-
function
|
|
284
|
+
let ft = {};
|
|
285
|
+
function Ue(e, t) {
|
|
361
286
|
return a.useMemo(() => {
|
|
362
287
|
if (t)
|
|
363
288
|
return t;
|
|
364
|
-
const n =
|
|
365
|
-
return
|
|
289
|
+
const n = ft[e] == null ? 0 : ft[e] + 1;
|
|
290
|
+
return ft[e] = n, e + "-" + n;
|
|
366
291
|
}, [e, t]);
|
|
367
292
|
}
|
|
368
|
-
function
|
|
293
|
+
function Gt(e) {
|
|
369
294
|
return function(t) {
|
|
370
295
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
371
296
|
r[o - 1] = arguments[o];
|
|
@@ -381,11 +306,11 @@ function Zt(e) {
|
|
|
381
306
|
});
|
|
382
307
|
};
|
|
383
308
|
}
|
|
384
|
-
const De = /* @__PURE__ */
|
|
385
|
-
function
|
|
309
|
+
const De = /* @__PURE__ */ Gt(1), qe = /* @__PURE__ */ Gt(-1);
|
|
310
|
+
function Fn(e) {
|
|
386
311
|
return "clientX" in e && "clientY" in e;
|
|
387
312
|
}
|
|
388
|
-
function
|
|
313
|
+
function Rt(e) {
|
|
389
314
|
if (!e)
|
|
390
315
|
return !1;
|
|
391
316
|
const {
|
|
@@ -393,7 +318,7 @@ function Mt(e) {
|
|
|
393
318
|
} = B(e.target);
|
|
394
319
|
return t && e instanceof t;
|
|
395
320
|
}
|
|
396
|
-
function
|
|
321
|
+
function zn(e) {
|
|
397
322
|
if (!e)
|
|
398
323
|
return !1;
|
|
399
324
|
const {
|
|
@@ -401,8 +326,8 @@ function qn(e) {
|
|
|
401
326
|
} = B(e.target);
|
|
402
327
|
return t && e instanceof t;
|
|
403
328
|
}
|
|
404
|
-
function
|
|
405
|
-
if (
|
|
329
|
+
function bt(e) {
|
|
330
|
+
if (zn(e)) {
|
|
406
331
|
if (e.touches && e.touches.length) {
|
|
407
332
|
const {
|
|
408
333
|
clientX: t,
|
|
@@ -423,12 +348,12 @@ function mt(e) {
|
|
|
423
348
|
};
|
|
424
349
|
}
|
|
425
350
|
}
|
|
426
|
-
return
|
|
351
|
+
return Fn(e) ? {
|
|
427
352
|
x: e.clientX,
|
|
428
353
|
y: e.clientY
|
|
429
354
|
} : null;
|
|
430
355
|
}
|
|
431
|
-
const
|
|
356
|
+
const et = /* @__PURE__ */ Object.freeze({
|
|
432
357
|
Translate: {
|
|
433
358
|
toString(e) {
|
|
434
359
|
if (!e)
|
|
@@ -454,7 +379,7 @@ const nt = /* @__PURE__ */ Object.freeze({
|
|
|
454
379
|
Transform: {
|
|
455
380
|
toString(e) {
|
|
456
381
|
if (e)
|
|
457
|
-
return [
|
|
382
|
+
return [et.Translate.toString(e), et.Scale.toString(e)].join(" ");
|
|
458
383
|
}
|
|
459
384
|
},
|
|
460
385
|
Transition: {
|
|
@@ -467,24 +392,24 @@ const nt = /* @__PURE__ */ Object.freeze({
|
|
|
467
392
|
return t + " " + n + "ms " + r;
|
|
468
393
|
}
|
|
469
394
|
}
|
|
470
|
-
}),
|
|
471
|
-
function
|
|
472
|
-
return e.matches(
|
|
395
|
+
}), Ft = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
396
|
+
function Bn(e) {
|
|
397
|
+
return e.matches(Ft) ? e : e.querySelector(Ft);
|
|
473
398
|
}
|
|
474
|
-
const
|
|
399
|
+
const qn = {
|
|
475
400
|
display: "none"
|
|
476
401
|
};
|
|
477
|
-
function
|
|
402
|
+
function $n(e) {
|
|
478
403
|
let {
|
|
479
404
|
id: t,
|
|
480
405
|
value: n
|
|
481
406
|
} = e;
|
|
482
407
|
return z.createElement("div", {
|
|
483
408
|
id: t,
|
|
484
|
-
style:
|
|
409
|
+
style: qn
|
|
485
410
|
}, n);
|
|
486
411
|
}
|
|
487
|
-
function
|
|
412
|
+
function Kn(e) {
|
|
488
413
|
let {
|
|
489
414
|
id: t,
|
|
490
415
|
announcement: n,
|
|
@@ -512,7 +437,7 @@ function Xn(e) {
|
|
|
512
437
|
"aria-atomic": !0
|
|
513
438
|
}, n);
|
|
514
439
|
}
|
|
515
|
-
function
|
|
440
|
+
function jn() {
|
|
516
441
|
const [e, t] = a.useState("");
|
|
517
442
|
return {
|
|
518
443
|
announce: a.useCallback((r) => {
|
|
@@ -521,16 +446,16 @@ function Un() {
|
|
|
521
446
|
announcement: e
|
|
522
447
|
};
|
|
523
448
|
}
|
|
524
|
-
const
|
|
525
|
-
function
|
|
526
|
-
const t = a.useContext(
|
|
449
|
+
const Jt = /* @__PURE__ */ a.createContext(null);
|
|
450
|
+
function Un(e) {
|
|
451
|
+
const t = a.useContext(Jt);
|
|
527
452
|
a.useEffect(() => {
|
|
528
453
|
if (!t)
|
|
529
454
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
530
455
|
return t(e);
|
|
531
456
|
}, [e, t]);
|
|
532
457
|
}
|
|
533
|
-
function
|
|
458
|
+
function Xn() {
|
|
534
459
|
const [e] = a.useState(() => /* @__PURE__ */ new Set()), t = a.useCallback((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
535
460
|
return [a.useCallback((r) => {
|
|
536
461
|
let {
|
|
@@ -543,13 +468,13 @@ function _n() {
|
|
|
543
468
|
});
|
|
544
469
|
}, [e]), t];
|
|
545
470
|
}
|
|
546
|
-
const
|
|
471
|
+
const Yn = {
|
|
547
472
|
draggable: `
|
|
548
473
|
To pick up a draggable item, press the space bar.
|
|
549
474
|
While dragging, use the arrow keys to move the item.
|
|
550
475
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
551
476
|
`
|
|
552
|
-
},
|
|
477
|
+
}, Qn = {
|
|
553
478
|
onDragStart(e) {
|
|
554
479
|
let {
|
|
555
480
|
active: t
|
|
@@ -577,20 +502,20 @@ const Qn = {
|
|
|
577
502
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
578
503
|
}
|
|
579
504
|
};
|
|
580
|
-
function
|
|
505
|
+
function Wn(e) {
|
|
581
506
|
let {
|
|
582
|
-
announcements: t =
|
|
507
|
+
announcements: t = Qn,
|
|
583
508
|
container: n,
|
|
584
509
|
hiddenTextDescribedById: r,
|
|
585
|
-
screenReaderInstructions: o =
|
|
510
|
+
screenReaderInstructions: o = Yn
|
|
586
511
|
} = e;
|
|
587
512
|
const {
|
|
588
513
|
announce: i,
|
|
589
514
|
announcement: s
|
|
590
|
-
} =
|
|
515
|
+
} = jn(), c = Ue("DndLiveRegion"), [l, u] = a.useState(!1);
|
|
591
516
|
if (a.useEffect(() => {
|
|
592
517
|
u(!0);
|
|
593
|
-
}, []),
|
|
518
|
+
}, []), Un(a.useMemo(() => ({
|
|
594
519
|
onDragStart(d) {
|
|
595
520
|
let {
|
|
596
521
|
active: g
|
|
@@ -641,10 +566,10 @@ function Hn(e) {
|
|
|
641
566
|
}
|
|
642
567
|
}), [i, t])), !l)
|
|
643
568
|
return null;
|
|
644
|
-
const f = z.createElement(z.Fragment, null, z.createElement(
|
|
569
|
+
const f = z.createElement(z.Fragment, null, z.createElement($n, {
|
|
645
570
|
id: r,
|
|
646
571
|
value: o.draggable
|
|
647
|
-
}), z.createElement(
|
|
572
|
+
}), z.createElement(Kn, {
|
|
648
573
|
id: c,
|
|
649
574
|
announcement: s
|
|
650
575
|
}));
|
|
@@ -654,9 +579,9 @@ var T;
|
|
|
654
579
|
(function(e) {
|
|
655
580
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
656
581
|
})(T || (T = {}));
|
|
657
|
-
function
|
|
582
|
+
function tt() {
|
|
658
583
|
}
|
|
659
|
-
function
|
|
584
|
+
function Oo(e, t) {
|
|
660
585
|
return a.useMemo(
|
|
661
586
|
() => ({
|
|
662
587
|
sensor: e,
|
|
@@ -666,7 +591,7 @@ function qo(e, t) {
|
|
|
666
591
|
[e, t]
|
|
667
592
|
);
|
|
668
593
|
}
|
|
669
|
-
function
|
|
594
|
+
function No() {
|
|
670
595
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
671
596
|
t[n] = arguments[n];
|
|
672
597
|
return a.useMemo(
|
|
@@ -675,14 +600,14 @@ function jo() {
|
|
|
675
600
|
[...t]
|
|
676
601
|
);
|
|
677
602
|
}
|
|
678
|
-
const
|
|
603
|
+
const _ = /* @__PURE__ */ Object.freeze({
|
|
679
604
|
x: 0,
|
|
680
605
|
y: 0
|
|
681
606
|
});
|
|
682
|
-
function
|
|
607
|
+
function Zt(e, t) {
|
|
683
608
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
684
609
|
}
|
|
685
|
-
function
|
|
610
|
+
function en(e, t) {
|
|
686
611
|
let {
|
|
687
612
|
data: {
|
|
688
613
|
value: n
|
|
@@ -694,7 +619,7 @@ function nn(e, t) {
|
|
|
694
619
|
} = t;
|
|
695
620
|
return n - r;
|
|
696
621
|
}
|
|
697
|
-
function
|
|
622
|
+
function _n(e, t) {
|
|
698
623
|
let {
|
|
699
624
|
data: {
|
|
700
625
|
value: n
|
|
@@ -706,7 +631,7 @@ function Vn(e, t) {
|
|
|
706
631
|
} = t;
|
|
707
632
|
return r - n;
|
|
708
633
|
}
|
|
709
|
-
function
|
|
634
|
+
function zt(e) {
|
|
710
635
|
let {
|
|
711
636
|
left: t,
|
|
712
637
|
top: n,
|
|
@@ -727,31 +652,31 @@ function qt(e) {
|
|
|
727
652
|
y: n + r
|
|
728
653
|
}];
|
|
729
654
|
}
|
|
730
|
-
function
|
|
655
|
+
function tn(e, t) {
|
|
731
656
|
if (!e || e.length === 0)
|
|
732
657
|
return null;
|
|
733
658
|
const [n] = e;
|
|
734
659
|
return n[t];
|
|
735
660
|
}
|
|
736
|
-
function
|
|
661
|
+
function Bt(e, t, n) {
|
|
737
662
|
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
738
663
|
x: t + e.width * 0.5,
|
|
739
664
|
y: n + e.height * 0.5
|
|
740
665
|
};
|
|
741
666
|
}
|
|
742
|
-
const
|
|
667
|
+
const Lo = (e) => {
|
|
743
668
|
let {
|
|
744
669
|
collisionRect: t,
|
|
745
670
|
droppableRects: n,
|
|
746
671
|
droppableContainers: r
|
|
747
672
|
} = e;
|
|
748
|
-
const o =
|
|
673
|
+
const o = Bt(t, t.left, t.top), i = [];
|
|
749
674
|
for (const s of r) {
|
|
750
675
|
const {
|
|
751
676
|
id: c
|
|
752
677
|
} = s, l = n.get(c);
|
|
753
678
|
if (l) {
|
|
754
|
-
const u =
|
|
679
|
+
const u = Zt(Bt(l), o);
|
|
755
680
|
i.push({
|
|
756
681
|
id: c,
|
|
757
682
|
data: {
|
|
@@ -761,20 +686,20 @@ const $o = (e) => {
|
|
|
761
686
|
});
|
|
762
687
|
}
|
|
763
688
|
}
|
|
764
|
-
return i.sort(
|
|
765
|
-
},
|
|
689
|
+
return i.sort(en);
|
|
690
|
+
}, Hn = (e) => {
|
|
766
691
|
let {
|
|
767
692
|
collisionRect: t,
|
|
768
693
|
droppableRects: n,
|
|
769
694
|
droppableContainers: r
|
|
770
695
|
} = e;
|
|
771
|
-
const o =
|
|
696
|
+
const o = zt(t), i = [];
|
|
772
697
|
for (const s of r) {
|
|
773
698
|
const {
|
|
774
699
|
id: c
|
|
775
700
|
} = s, l = n.get(c);
|
|
776
701
|
if (l) {
|
|
777
|
-
const u =
|
|
702
|
+
const u = zt(l), f = o.reduce((g, h, C) => g + Zt(u[C], h), 0), d = Number((f / 4).toFixed(4));
|
|
778
703
|
i.push({
|
|
779
704
|
id: c,
|
|
780
705
|
data: {
|
|
@@ -784,9 +709,9 @@ const $o = (e) => {
|
|
|
784
709
|
});
|
|
785
710
|
}
|
|
786
711
|
}
|
|
787
|
-
return i.sort(
|
|
712
|
+
return i.sort(en);
|
|
788
713
|
};
|
|
789
|
-
function
|
|
714
|
+
function Vn(e, t) {
|
|
790
715
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, c = i - n;
|
|
791
716
|
if (r < o && n < i) {
|
|
792
717
|
const l = t.width * t.height, u = e.width * e.height, f = s * c, d = f / (l + u - f);
|
|
@@ -794,7 +719,7 @@ function Jn(e, t) {
|
|
|
794
719
|
}
|
|
795
720
|
return 0;
|
|
796
721
|
}
|
|
797
|
-
const
|
|
722
|
+
const Gn = (e) => {
|
|
798
723
|
let {
|
|
799
724
|
collisionRect: t,
|
|
800
725
|
droppableRects: n,
|
|
@@ -806,7 +731,7 @@ const Zn = (e) => {
|
|
|
806
731
|
id: s
|
|
807
732
|
} = i, c = n.get(s);
|
|
808
733
|
if (c) {
|
|
809
|
-
const l =
|
|
734
|
+
const l = Vn(c, t);
|
|
810
735
|
l > 0 && o.push({
|
|
811
736
|
id: s,
|
|
812
737
|
data: {
|
|
@@ -816,22 +741,22 @@ const Zn = (e) => {
|
|
|
816
741
|
});
|
|
817
742
|
}
|
|
818
743
|
}
|
|
819
|
-
return o.sort(
|
|
744
|
+
return o.sort(_n);
|
|
820
745
|
};
|
|
821
|
-
function
|
|
746
|
+
function Jn(e, t, n) {
|
|
822
747
|
return {
|
|
823
748
|
...e,
|
|
824
749
|
scaleX: t && n ? t.width / n.width : 1,
|
|
825
750
|
scaleY: t && n ? t.height / n.height : 1
|
|
826
751
|
};
|
|
827
752
|
}
|
|
828
|
-
function
|
|
753
|
+
function nn(e, t) {
|
|
829
754
|
return e && t ? {
|
|
830
755
|
x: e.left - t.left,
|
|
831
756
|
y: e.top - t.top
|
|
832
|
-
} :
|
|
757
|
+
} : _;
|
|
833
758
|
}
|
|
834
|
-
function
|
|
759
|
+
function Zn(e) {
|
|
835
760
|
return function(n) {
|
|
836
761
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
837
762
|
o[i - 1] = arguments[i];
|
|
@@ -846,8 +771,8 @@ function tr(e) {
|
|
|
846
771
|
});
|
|
847
772
|
};
|
|
848
773
|
}
|
|
849
|
-
const
|
|
850
|
-
function
|
|
774
|
+
const er = /* @__PURE__ */ Zn(1);
|
|
775
|
+
function tr(e) {
|
|
851
776
|
if (e.startsWith("matrix3d(")) {
|
|
852
777
|
const t = e.slice(9, -1).split(/, /);
|
|
853
778
|
return {
|
|
@@ -867,8 +792,8 @@ function rr(e) {
|
|
|
867
792
|
}
|
|
868
793
|
return null;
|
|
869
794
|
}
|
|
870
|
-
function
|
|
871
|
-
const r =
|
|
795
|
+
function nr(e, t, n) {
|
|
796
|
+
const r = tr(t);
|
|
872
797
|
if (!r)
|
|
873
798
|
return e;
|
|
874
799
|
const {
|
|
@@ -886,18 +811,18 @@ function or(e, t, n) {
|
|
|
886
811
|
left: l
|
|
887
812
|
};
|
|
888
813
|
}
|
|
889
|
-
const
|
|
814
|
+
const rr = {
|
|
890
815
|
ignoreTransform: !1
|
|
891
816
|
};
|
|
892
817
|
function Re(e, t) {
|
|
893
|
-
t === void 0 && (t =
|
|
818
|
+
t === void 0 && (t = rr);
|
|
894
819
|
let n = e.getBoundingClientRect();
|
|
895
820
|
if (t.ignoreTransform) {
|
|
896
821
|
const {
|
|
897
822
|
transform: u,
|
|
898
823
|
transformOrigin: f
|
|
899
824
|
} = B(e).getComputedStyle(e);
|
|
900
|
-
u && (n =
|
|
825
|
+
u && (n = nr(n, u, f));
|
|
901
826
|
}
|
|
902
827
|
const {
|
|
903
828
|
top: r,
|
|
@@ -916,12 +841,12 @@ function Re(e, t) {
|
|
|
916
841
|
right: l
|
|
917
842
|
};
|
|
918
843
|
}
|
|
919
|
-
function
|
|
844
|
+
function qt(e) {
|
|
920
845
|
return Re(e, {
|
|
921
846
|
ignoreTransform: !0
|
|
922
847
|
});
|
|
923
848
|
}
|
|
924
|
-
function
|
|
849
|
+
function or(e) {
|
|
925
850
|
const t = e.innerWidth, n = e.innerHeight;
|
|
926
851
|
return {
|
|
927
852
|
top: 0,
|
|
@@ -932,10 +857,10 @@ function sr(e) {
|
|
|
932
857
|
height: n
|
|
933
858
|
};
|
|
934
859
|
}
|
|
935
|
-
function
|
|
860
|
+
function ir(e, t) {
|
|
936
861
|
return t === void 0 && (t = B(e).getComputedStyle(e)), t.position === "fixed";
|
|
937
862
|
}
|
|
938
|
-
function
|
|
863
|
+
function sr(e, t) {
|
|
939
864
|
t === void 0 && (t = B(e).getComputedStyle(e));
|
|
940
865
|
const n = /(auto|scroll|overlay)/;
|
|
941
866
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -943,51 +868,51 @@ function cr(e, t) {
|
|
|
943
868
|
return typeof i == "string" ? n.test(i) : !1;
|
|
944
869
|
});
|
|
945
870
|
}
|
|
946
|
-
function
|
|
871
|
+
function st(e, t) {
|
|
947
872
|
const n = [];
|
|
948
873
|
function r(o) {
|
|
949
874
|
if (t != null && n.length >= t || !o)
|
|
950
875
|
return n;
|
|
951
|
-
if (
|
|
876
|
+
if (Ct(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
952
877
|
return n.push(o.scrollingElement), n;
|
|
953
|
-
if (!
|
|
878
|
+
if (!Ke(o) || Vt(o) || n.includes(o))
|
|
954
879
|
return n;
|
|
955
880
|
const i = B(e).getComputedStyle(o);
|
|
956
|
-
return o !== e &&
|
|
881
|
+
return o !== e && sr(o, i) && n.push(o), ir(o, i) ? n : r(o.parentNode);
|
|
957
882
|
}
|
|
958
883
|
return e ? r(e) : n;
|
|
959
884
|
}
|
|
960
|
-
function
|
|
961
|
-
const [t] =
|
|
885
|
+
function rn(e) {
|
|
886
|
+
const [t] = st(e, 1);
|
|
962
887
|
return t ?? null;
|
|
963
888
|
}
|
|
964
|
-
function
|
|
965
|
-
return !
|
|
889
|
+
function ht(e) {
|
|
890
|
+
return !it || !e ? null : Ce(e) ? e : Dt(e) ? Ct(e) || e === Se(e).scrollingElement ? window : Ke(e) ? e : null : null;
|
|
966
891
|
}
|
|
967
|
-
function
|
|
892
|
+
function on(e) {
|
|
968
893
|
return Ce(e) ? e.scrollX : e.scrollLeft;
|
|
969
894
|
}
|
|
970
|
-
function
|
|
895
|
+
function sn(e) {
|
|
971
896
|
return Ce(e) ? e.scrollY : e.scrollTop;
|
|
972
897
|
}
|
|
973
|
-
function
|
|
898
|
+
function yt(e) {
|
|
974
899
|
return {
|
|
975
|
-
x:
|
|
976
|
-
y:
|
|
900
|
+
x: on(e),
|
|
901
|
+
y: sn(e)
|
|
977
902
|
};
|
|
978
903
|
}
|
|
979
|
-
var
|
|
904
|
+
var N;
|
|
980
905
|
(function(e) {
|
|
981
906
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
982
|
-
})(
|
|
983
|
-
function
|
|
984
|
-
return !
|
|
907
|
+
})(N || (N = {}));
|
|
908
|
+
function an(e) {
|
|
909
|
+
return !it || !e ? !1 : e === document.scrollingElement;
|
|
985
910
|
}
|
|
986
|
-
function
|
|
911
|
+
function cn(e) {
|
|
987
912
|
const t = {
|
|
988
913
|
x: 0,
|
|
989
914
|
y: 0
|
|
990
|
-
}, n =
|
|
915
|
+
}, n = an(e) ? {
|
|
991
916
|
height: window.innerHeight,
|
|
992
917
|
width: window.innerWidth
|
|
993
918
|
} : {
|
|
@@ -1006,24 +931,24 @@ function un(e) {
|
|
|
1006
931
|
minScroll: t
|
|
1007
932
|
};
|
|
1008
933
|
}
|
|
1009
|
-
const
|
|
934
|
+
const ar = {
|
|
1010
935
|
x: 0.2,
|
|
1011
936
|
y: 0.2
|
|
1012
937
|
};
|
|
1013
|
-
function
|
|
938
|
+
function cr(e, t, n, r, o) {
|
|
1014
939
|
let {
|
|
1015
940
|
top: i,
|
|
1016
941
|
left: s,
|
|
1017
942
|
right: c,
|
|
1018
943
|
bottom: l
|
|
1019
944
|
} = n;
|
|
1020
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
945
|
+
r === void 0 && (r = 10), o === void 0 && (o = ar);
|
|
1021
946
|
const {
|
|
1022
947
|
isTop: u,
|
|
1023
948
|
isBottom: f,
|
|
1024
949
|
isLeft: d,
|
|
1025
950
|
isRight: g
|
|
1026
|
-
} =
|
|
951
|
+
} = cn(e), h = {
|
|
1027
952
|
x: 0,
|
|
1028
953
|
y: 0
|
|
1029
954
|
}, C = {
|
|
@@ -1033,12 +958,12 @@ function ur(e, t, n, r, o) {
|
|
|
1033
958
|
height: t.height * o.y,
|
|
1034
959
|
width: t.width * o.x
|
|
1035
960
|
};
|
|
1036
|
-
return !u && i <= t.top + v.height ? (h.y =
|
|
961
|
+
return !u && i <= t.top + v.height ? (h.y = N.Backward, C.y = r * Math.abs((t.top + v.height - i) / v.height)) : !f && l >= t.bottom - v.height && (h.y = N.Forward, C.y = r * Math.abs((t.bottom - v.height - l) / v.height)), !g && c >= t.right - v.width ? (h.x = N.Forward, C.x = r * Math.abs((t.right - v.width - c) / v.width)) : !d && s <= t.left + v.width && (h.x = N.Backward, C.x = r * Math.abs((t.left + v.width - s) / v.width)), {
|
|
1037
962
|
direction: h,
|
|
1038
963
|
speed: C
|
|
1039
964
|
};
|
|
1040
965
|
}
|
|
1041
|
-
function
|
|
966
|
+
function lr(e) {
|
|
1042
967
|
if (e === document.scrollingElement) {
|
|
1043
968
|
const {
|
|
1044
969
|
innerWidth: i,
|
|
@@ -1068,16 +993,16 @@ function dr(e) {
|
|
|
1068
993
|
height: e.clientHeight
|
|
1069
994
|
};
|
|
1070
995
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return e.reduce((t, n) => De(t,
|
|
996
|
+
function ln(e) {
|
|
997
|
+
return e.reduce((t, n) => De(t, yt(n)), _);
|
|
1073
998
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return e.reduce((t, n) => t +
|
|
999
|
+
function ur(e) {
|
|
1000
|
+
return e.reduce((t, n) => t + on(n), 0);
|
|
1076
1001
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return e.reduce((t, n) => t +
|
|
1002
|
+
function dr(e) {
|
|
1003
|
+
return e.reduce((t, n) => t + sn(n), 0);
|
|
1079
1004
|
}
|
|
1080
|
-
function
|
|
1005
|
+
function fr(e, t) {
|
|
1081
1006
|
if (t === void 0 && (t = Re), !e)
|
|
1082
1007
|
return;
|
|
1083
1008
|
const {
|
|
@@ -1086,20 +1011,20 @@ function gr(e, t) {
|
|
|
1086
1011
|
bottom: o,
|
|
1087
1012
|
right: i
|
|
1088
1013
|
} = t(e);
|
|
1089
|
-
|
|
1014
|
+
rn(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
1090
1015
|
block: "center",
|
|
1091
1016
|
inline: "center"
|
|
1092
1017
|
});
|
|
1093
1018
|
}
|
|
1094
|
-
const
|
|
1095
|
-
class
|
|
1019
|
+
const hr = [["x", ["left", "right"], ur], ["y", ["top", "bottom"], dr]];
|
|
1020
|
+
class Et {
|
|
1096
1021
|
constructor(t, n) {
|
|
1097
1022
|
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;
|
|
1098
|
-
const r =
|
|
1023
|
+
const r = st(n), o = ln(r);
|
|
1099
1024
|
this.rect = {
|
|
1100
1025
|
...t
|
|
1101
1026
|
}, this.width = t.width, this.height = t.height;
|
|
1102
|
-
for (const [i, s, c] of
|
|
1027
|
+
for (const [i, s, c] of hr)
|
|
1103
1028
|
for (const l of s)
|
|
1104
1029
|
Object.defineProperty(this, l, {
|
|
1105
1030
|
get: () => {
|
|
@@ -1127,13 +1052,13 @@ class Pe {
|
|
|
1127
1052
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
1128
1053
|
}
|
|
1129
1054
|
}
|
|
1130
|
-
function
|
|
1055
|
+
function gr(e) {
|
|
1131
1056
|
const {
|
|
1132
1057
|
EventTarget: t
|
|
1133
1058
|
} = B(e);
|
|
1134
1059
|
return e instanceof t ? e : Se(e);
|
|
1135
1060
|
}
|
|
1136
|
-
function
|
|
1061
|
+
function gt(e, t) {
|
|
1137
1062
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1138
1063
|
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;
|
|
1139
1064
|
}
|
|
@@ -1141,21 +1066,21 @@ var Y;
|
|
|
1141
1066
|
(function(e) {
|
|
1142
1067
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1143
1068
|
})(Y || (Y = {}));
|
|
1144
|
-
function
|
|
1069
|
+
function $t(e) {
|
|
1145
1070
|
e.preventDefault();
|
|
1146
1071
|
}
|
|
1147
|
-
function
|
|
1072
|
+
function vr(e) {
|
|
1148
1073
|
e.stopPropagation();
|
|
1149
1074
|
}
|
|
1150
1075
|
var y;
|
|
1151
1076
|
(function(e) {
|
|
1152
1077
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1153
1078
|
})(y || (y = {}));
|
|
1154
|
-
const
|
|
1079
|
+
const un = {
|
|
1155
1080
|
start: [y.Space, y.Enter],
|
|
1156
1081
|
cancel: [y.Esc],
|
|
1157
1082
|
end: [y.Space, y.Enter, y.Tab]
|
|
1158
|
-
},
|
|
1083
|
+
}, pr = (e, t) => {
|
|
1159
1084
|
let {
|
|
1160
1085
|
currentCoordinates: n
|
|
1161
1086
|
} = t;
|
|
@@ -1182,7 +1107,7 @@ const fn = {
|
|
|
1182
1107
|
};
|
|
1183
1108
|
}
|
|
1184
1109
|
};
|
|
1185
|
-
class
|
|
1110
|
+
class dn {
|
|
1186
1111
|
constructor(t) {
|
|
1187
1112
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
1188
1113
|
const {
|
|
@@ -1200,17 +1125,17 @@ class hn {
|
|
|
1200
1125
|
activeNode: t,
|
|
1201
1126
|
onStart: n
|
|
1202
1127
|
} = this.props, r = t.node.current;
|
|
1203
|
-
r &&
|
|
1128
|
+
r && fr(r), n(_);
|
|
1204
1129
|
}
|
|
1205
1130
|
handleKeyDown(t) {
|
|
1206
|
-
if (
|
|
1131
|
+
if (Rt(t)) {
|
|
1207
1132
|
const {
|
|
1208
1133
|
active: n,
|
|
1209
1134
|
context: r,
|
|
1210
1135
|
options: o
|
|
1211
1136
|
} = this.props, {
|
|
1212
|
-
keyboardCodes: i =
|
|
1213
|
-
coordinateGetter: s =
|
|
1137
|
+
keyboardCodes: i = un,
|
|
1138
|
+
coordinateGetter: s = pr,
|
|
1214
1139
|
scrollBehavior: c = "smooth"
|
|
1215
1140
|
} = o, {
|
|
1216
1141
|
code: l
|
|
@@ -1228,7 +1153,7 @@ class hn {
|
|
|
1228
1153
|
} = r.current, f = u ? {
|
|
1229
1154
|
x: u.left,
|
|
1230
1155
|
y: u.top
|
|
1231
|
-
} :
|
|
1156
|
+
} : _;
|
|
1232
1157
|
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1233
1158
|
const d = s(t, {
|
|
1234
1159
|
active: n,
|
|
@@ -1250,34 +1175,34 @@ class hn {
|
|
|
1250
1175
|
isBottom: S,
|
|
1251
1176
|
maxScroll: R,
|
|
1252
1177
|
minScroll: E
|
|
1253
|
-
} =
|
|
1178
|
+
} = cn(v), x = lr(v), D = {
|
|
1254
1179
|
x: Math.min(p === y.Right ? x.right - x.width / 2 : x.right, Math.max(p === y.Right ? x.left : x.left + x.width / 2, d.x)),
|
|
1255
1180
|
y: Math.min(p === y.Down ? x.bottom - x.height / 2 : x.bottom, Math.max(p === y.Down ? x.top : x.top + x.height / 2, d.y))
|
|
1256
|
-
}, I = p === y.Right && !w || p === y.Left && !b,
|
|
1181
|
+
}, I = p === y.Right && !w || p === y.Left && !b, O = p === y.Down && !S || p === y.Up && !m;
|
|
1257
1182
|
if (I && D.x !== d.x) {
|
|
1258
|
-
const A = v.scrollLeft + g.x,
|
|
1259
|
-
if (
|
|
1183
|
+
const A = v.scrollLeft + g.x, Q = p === y.Right && A <= R.x || p === y.Left && A >= E.x;
|
|
1184
|
+
if (Q && !g.y) {
|
|
1260
1185
|
v.scrollTo({
|
|
1261
1186
|
left: A,
|
|
1262
1187
|
behavior: c
|
|
1263
1188
|
});
|
|
1264
1189
|
return;
|
|
1265
1190
|
}
|
|
1266
|
-
|
|
1191
|
+
Q ? h.x = v.scrollLeft - A : h.x = p === y.Right ? v.scrollLeft - R.x : v.scrollLeft - E.x, h.x && v.scrollBy({
|
|
1267
1192
|
left: -h.x,
|
|
1268
1193
|
behavior: c
|
|
1269
1194
|
});
|
|
1270
1195
|
break;
|
|
1271
|
-
} else if (
|
|
1272
|
-
const A = v.scrollTop + g.y,
|
|
1273
|
-
if (
|
|
1196
|
+
} else if (O && D.y !== d.y) {
|
|
1197
|
+
const A = v.scrollTop + g.y, Q = p === y.Down && A <= R.y || p === y.Up && A >= E.y;
|
|
1198
|
+
if (Q && !g.x) {
|
|
1274
1199
|
v.scrollTo({
|
|
1275
1200
|
top: A,
|
|
1276
1201
|
behavior: c
|
|
1277
1202
|
});
|
|
1278
1203
|
return;
|
|
1279
1204
|
}
|
|
1280
|
-
|
|
1205
|
+
Q ? h.y = v.scrollTop - A : h.y = p === y.Down ? v.scrollTop - R.y : v.scrollTop - E.y, h.y && v.scrollBy({
|
|
1281
1206
|
top: -h.y,
|
|
1282
1207
|
behavior: c
|
|
1283
1208
|
});
|
|
@@ -1310,11 +1235,11 @@ class hn {
|
|
|
1310
1235
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
1311
1236
|
}
|
|
1312
1237
|
}
|
|
1313
|
-
|
|
1238
|
+
dn.activators = [{
|
|
1314
1239
|
eventName: "onKeyDown",
|
|
1315
1240
|
handler: (e, t, n) => {
|
|
1316
1241
|
let {
|
|
1317
|
-
keyboardCodes: r =
|
|
1242
|
+
keyboardCodes: r = un,
|
|
1318
1243
|
onActivation: o
|
|
1319
1244
|
} = t, {
|
|
1320
1245
|
active: i
|
|
@@ -1331,22 +1256,22 @@ hn.activators = [{
|
|
|
1331
1256
|
return !1;
|
|
1332
1257
|
}
|
|
1333
1258
|
}];
|
|
1334
|
-
function
|
|
1259
|
+
function Kt(e) {
|
|
1335
1260
|
return !!(e && "distance" in e);
|
|
1336
1261
|
}
|
|
1337
|
-
function
|
|
1262
|
+
function jt(e) {
|
|
1338
1263
|
return !!(e && "delay" in e);
|
|
1339
1264
|
}
|
|
1340
|
-
class
|
|
1265
|
+
class Mt {
|
|
1341
1266
|
constructor(t, n, r) {
|
|
1342
1267
|
var o;
|
|
1343
|
-
r === void 0 && (r =
|
|
1268
|
+
r === void 0 && (r = gr(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;
|
|
1344
1269
|
const {
|
|
1345
1270
|
event: i
|
|
1346
1271
|
} = t, {
|
|
1347
1272
|
target: s
|
|
1348
1273
|
} = i;
|
|
1349
|
-
this.props = t, this.events = n, this.document = Se(s), this.documentListeners = new Pe(this.document), this.listeners = new Pe(r), this.windowListeners = new Pe(B(s)), this.initialCoordinates = (o =
|
|
1274
|
+
this.props = t, this.events = n, this.document = Se(s), this.documentListeners = new Pe(this.document), this.listeners = new Pe(r), this.windowListeners = new Pe(B(s)), this.initialCoordinates = (o = bt(i)) != null ? o : _, 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();
|
|
1350
1275
|
}
|
|
1351
1276
|
attach() {
|
|
1352
1277
|
const {
|
|
@@ -1360,18 +1285,18 @@ class It {
|
|
|
1360
1285
|
} = this;
|
|
1361
1286
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1362
1287
|
passive: !1
|
|
1363
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(Y.Resize, this.handleCancel), this.windowListeners.add(Y.DragStart,
|
|
1288
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(Y.Resize, this.handleCancel), this.windowListeners.add(Y.DragStart, $t), this.windowListeners.add(Y.VisibilityChange, this.handleCancel), this.windowListeners.add(Y.ContextMenu, $t), this.documentListeners.add(Y.Keydown, this.handleKeydown), n) {
|
|
1364
1289
|
if (r != null && r({
|
|
1365
1290
|
event: this.props.event,
|
|
1366
1291
|
activeNode: this.props.activeNode,
|
|
1367
1292
|
options: this.props.options
|
|
1368
1293
|
}))
|
|
1369
1294
|
return this.handleStart();
|
|
1370
|
-
if (
|
|
1295
|
+
if (jt(n)) {
|
|
1371
1296
|
this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
|
|
1372
1297
|
return;
|
|
1373
1298
|
}
|
|
1374
|
-
if (
|
|
1299
|
+
if (Kt(n)) {
|
|
1375
1300
|
this.handlePending(n);
|
|
1376
1301
|
return;
|
|
1377
1302
|
}
|
|
@@ -1394,7 +1319,7 @@ class It {
|
|
|
1394
1319
|
} = this, {
|
|
1395
1320
|
onStart: n
|
|
1396
1321
|
} = this.props;
|
|
1397
|
-
t && (this.activated = !0, this.documentListeners.add(Y.Click,
|
|
1322
|
+
t && (this.activated = !0, this.documentListeners.add(Y.Click, vr, {
|
|
1398
1323
|
capture: !0
|
|
1399
1324
|
}), this.removeTextSelection(), this.documentListeners.add(Y.SelectionChange, this.removeTextSelection), n(t));
|
|
1400
1325
|
}
|
|
@@ -1412,15 +1337,15 @@ class It {
|
|
|
1412
1337
|
} = i;
|
|
1413
1338
|
if (!o)
|
|
1414
1339
|
return;
|
|
1415
|
-
const l = (n =
|
|
1340
|
+
const l = (n = bt(t)) != null ? n : _, u = qe(o, l);
|
|
1416
1341
|
if (!r && c) {
|
|
1417
|
-
if (
|
|
1418
|
-
if (c.tolerance != null &&
|
|
1342
|
+
if (Kt(c)) {
|
|
1343
|
+
if (c.tolerance != null && gt(u, c.tolerance))
|
|
1419
1344
|
return this.handleCancel();
|
|
1420
|
-
if (
|
|
1345
|
+
if (gt(u, c.distance))
|
|
1421
1346
|
return this.handleStart();
|
|
1422
1347
|
}
|
|
1423
|
-
if (
|
|
1348
|
+
if (jt(c) && gt(u, c.tolerance))
|
|
1424
1349
|
return this.handleCancel();
|
|
1425
1350
|
this.handlePending(c, u);
|
|
1426
1351
|
return;
|
|
@@ -1449,7 +1374,7 @@ class It {
|
|
|
1449
1374
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1450
1375
|
}
|
|
1451
1376
|
}
|
|
1452
|
-
const
|
|
1377
|
+
const br = {
|
|
1453
1378
|
cancel: {
|
|
1454
1379
|
name: "pointercancel"
|
|
1455
1380
|
},
|
|
@@ -1460,15 +1385,15 @@ const mr = {
|
|
|
1460
1385
|
name: "pointerup"
|
|
1461
1386
|
}
|
|
1462
1387
|
};
|
|
1463
|
-
class
|
|
1388
|
+
class fn extends Mt {
|
|
1464
1389
|
constructor(t) {
|
|
1465
1390
|
const {
|
|
1466
1391
|
event: n
|
|
1467
1392
|
} = t, r = Se(n.target);
|
|
1468
|
-
super(t,
|
|
1393
|
+
super(t, br, r);
|
|
1469
1394
|
}
|
|
1470
1395
|
}
|
|
1471
|
-
|
|
1396
|
+
fn.activators = [{
|
|
1472
1397
|
eventName: "onPointerDown",
|
|
1473
1398
|
handler: (e, t) => {
|
|
1474
1399
|
let {
|
|
@@ -1481,7 +1406,7 @@ gn.activators = [{
|
|
|
1481
1406
|
}), !0);
|
|
1482
1407
|
}
|
|
1483
1408
|
}];
|
|
1484
|
-
const
|
|
1409
|
+
const yr = {
|
|
1485
1410
|
move: {
|
|
1486
1411
|
name: "mousemove"
|
|
1487
1412
|
},
|
|
@@ -1489,16 +1414,16 @@ const wr = {
|
|
|
1489
1414
|
name: "mouseup"
|
|
1490
1415
|
}
|
|
1491
1416
|
};
|
|
1492
|
-
var
|
|
1417
|
+
var mt;
|
|
1493
1418
|
(function(e) {
|
|
1494
1419
|
e[e.RightClick = 2] = "RightClick";
|
|
1495
|
-
})(
|
|
1496
|
-
class
|
|
1420
|
+
})(mt || (mt = {}));
|
|
1421
|
+
class mr extends Mt {
|
|
1497
1422
|
constructor(t) {
|
|
1498
|
-
super(t,
|
|
1423
|
+
super(t, yr, Se(t.event.target));
|
|
1499
1424
|
}
|
|
1500
1425
|
}
|
|
1501
|
-
|
|
1426
|
+
mr.activators = [{
|
|
1502
1427
|
eventName: "onMouseDown",
|
|
1503
1428
|
handler: (e, t) => {
|
|
1504
1429
|
let {
|
|
@@ -1506,12 +1431,12 @@ xr.activators = [{
|
|
|
1506
1431
|
} = e, {
|
|
1507
1432
|
onActivation: r
|
|
1508
1433
|
} = t;
|
|
1509
|
-
return n.button ===
|
|
1434
|
+
return n.button === mt.RightClick ? !1 : (r?.({
|
|
1510
1435
|
event: n
|
|
1511
1436
|
}), !0);
|
|
1512
1437
|
}
|
|
1513
1438
|
}];
|
|
1514
|
-
const
|
|
1439
|
+
const vt = {
|
|
1515
1440
|
cancel: {
|
|
1516
1441
|
name: "touchcancel"
|
|
1517
1442
|
},
|
|
@@ -1522,22 +1447,22 @@ const bt = {
|
|
|
1522
1447
|
name: "touchend"
|
|
1523
1448
|
}
|
|
1524
1449
|
};
|
|
1525
|
-
class
|
|
1450
|
+
class wr extends Mt {
|
|
1526
1451
|
constructor(t) {
|
|
1527
|
-
super(t,
|
|
1452
|
+
super(t, vt);
|
|
1528
1453
|
}
|
|
1529
1454
|
static setup() {
|
|
1530
|
-
return window.addEventListener(
|
|
1455
|
+
return window.addEventListener(vt.move.name, t, {
|
|
1531
1456
|
capture: !1,
|
|
1532
1457
|
passive: !1
|
|
1533
1458
|
}), function() {
|
|
1534
|
-
window.removeEventListener(
|
|
1459
|
+
window.removeEventListener(vt.move.name, t);
|
|
1535
1460
|
};
|
|
1536
1461
|
function t() {
|
|
1537
1462
|
}
|
|
1538
1463
|
}
|
|
1539
1464
|
}
|
|
1540
|
-
|
|
1465
|
+
wr.activators = [{
|
|
1541
1466
|
eventName: "onTouchStart",
|
|
1542
1467
|
handler: (e, t) => {
|
|
1543
1468
|
let {
|
|
@@ -1557,11 +1482,11 @@ var Fe;
|
|
|
1557
1482
|
(function(e) {
|
|
1558
1483
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1559
1484
|
})(Fe || (Fe = {}));
|
|
1560
|
-
var
|
|
1485
|
+
var nt;
|
|
1561
1486
|
(function(e) {
|
|
1562
1487
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1563
|
-
})(
|
|
1564
|
-
function
|
|
1488
|
+
})(nt || (nt = {}));
|
|
1489
|
+
function xr(e) {
|
|
1565
1490
|
let {
|
|
1566
1491
|
acceleration: t,
|
|
1567
1492
|
activator: n = Fe.Pointer,
|
|
@@ -1569,17 +1494,17 @@ function Cr(e) {
|
|
|
1569
1494
|
draggingRect: o,
|
|
1570
1495
|
enabled: i,
|
|
1571
1496
|
interval: s = 5,
|
|
1572
|
-
order: c =
|
|
1497
|
+
order: c = nt.TreeOrder,
|
|
1573
1498
|
pointerCoordinates: l,
|
|
1574
1499
|
scrollableAncestors: u,
|
|
1575
1500
|
scrollableAncestorRects: f,
|
|
1576
1501
|
delta: d,
|
|
1577
1502
|
threshold: g
|
|
1578
1503
|
} = e;
|
|
1579
|
-
const h =
|
|
1504
|
+
const h = Cr({
|
|
1580
1505
|
delta: d,
|
|
1581
1506
|
disabled: !i
|
|
1582
|
-
}), [C, v] =
|
|
1507
|
+
}), [C, v] = Pn(), p = a.useRef({
|
|
1583
1508
|
x: 0,
|
|
1584
1509
|
y: 0
|
|
1585
1510
|
}), m = a.useRef({
|
|
@@ -1603,7 +1528,7 @@ function Cr(e) {
|
|
|
1603
1528
|
return;
|
|
1604
1529
|
const x = p.current.x * m.current.x, D = p.current.y * m.current.y;
|
|
1605
1530
|
E.scrollBy(x, D);
|
|
1606
|
-
}, []), R = a.useMemo(() => c ===
|
|
1531
|
+
}, []), R = a.useMemo(() => c === nt.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1607
1532
|
a.useEffect(
|
|
1608
1533
|
() => {
|
|
1609
1534
|
if (!i || !u.length || !w) {
|
|
@@ -1618,12 +1543,12 @@ function Cr(e) {
|
|
|
1618
1543
|
continue;
|
|
1619
1544
|
const {
|
|
1620
1545
|
direction: I,
|
|
1621
|
-
speed:
|
|
1622
|
-
} =
|
|
1546
|
+
speed: O
|
|
1547
|
+
} = cr(E, D, w, t, g);
|
|
1623
1548
|
for (const A of ["x", "y"])
|
|
1624
|
-
h[A][I[A]] || (
|
|
1625
|
-
if (
|
|
1626
|
-
v(), b.current = E, C(S, s), p.current =
|
|
1549
|
+
h[A][I[A]] || (O[A] = 0, I[A] = 0);
|
|
1550
|
+
if (O.x > 0 || O.y > 0) {
|
|
1551
|
+
v(), b.current = E, C(S, s), p.current = O, m.current = I;
|
|
1627
1552
|
return;
|
|
1628
1553
|
}
|
|
1629
1554
|
}
|
|
@@ -1656,49 +1581,49 @@ function Cr(e) {
|
|
|
1656
1581
|
]
|
|
1657
1582
|
);
|
|
1658
1583
|
}
|
|
1659
|
-
const
|
|
1584
|
+
const Dr = {
|
|
1660
1585
|
x: {
|
|
1661
|
-
[
|
|
1662
|
-
[
|
|
1586
|
+
[N.Backward]: !1,
|
|
1587
|
+
[N.Forward]: !1
|
|
1663
1588
|
},
|
|
1664
1589
|
y: {
|
|
1665
|
-
[
|
|
1666
|
-
[
|
|
1590
|
+
[N.Backward]: !1,
|
|
1591
|
+
[N.Forward]: !1
|
|
1667
1592
|
}
|
|
1668
1593
|
};
|
|
1669
|
-
function
|
|
1594
|
+
function Cr(e) {
|
|
1670
1595
|
let {
|
|
1671
1596
|
delta: t,
|
|
1672
1597
|
disabled: n
|
|
1673
1598
|
} = e;
|
|
1674
|
-
const r =
|
|
1675
|
-
return
|
|
1599
|
+
const r = pt(t);
|
|
1600
|
+
return je((o) => {
|
|
1676
1601
|
if (n || !r || !o)
|
|
1677
|
-
return
|
|
1602
|
+
return Dr;
|
|
1678
1603
|
const i = {
|
|
1679
1604
|
x: Math.sign(t.x - r.x),
|
|
1680
1605
|
y: Math.sign(t.y - r.y)
|
|
1681
1606
|
};
|
|
1682
1607
|
return {
|
|
1683
1608
|
x: {
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1609
|
+
[N.Backward]: o.x[N.Backward] || i.x === -1,
|
|
1610
|
+
[N.Forward]: o.x[N.Forward] || i.x === 1
|
|
1686
1611
|
},
|
|
1687
1612
|
y: {
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1613
|
+
[N.Backward]: o.y[N.Backward] || i.y === -1,
|
|
1614
|
+
[N.Forward]: o.y[N.Forward] || i.y === 1
|
|
1690
1615
|
}
|
|
1691
1616
|
};
|
|
1692
1617
|
}, [n, t, r]);
|
|
1693
1618
|
}
|
|
1694
|
-
function
|
|
1619
|
+
function Sr(e, t) {
|
|
1695
1620
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1696
|
-
return
|
|
1621
|
+
return je((o) => {
|
|
1697
1622
|
var i;
|
|
1698
1623
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
1699
1624
|
}, [r, t]);
|
|
1700
1625
|
}
|
|
1701
|
-
function
|
|
1626
|
+
function Rr(e, t) {
|
|
1702
1627
|
return a.useMemo(() => e.reduce((n, r) => {
|
|
1703
1628
|
const {
|
|
1704
1629
|
sensor: o
|
|
@@ -1709,16 +1634,16 @@ function Mr(e, t) {
|
|
|
1709
1634
|
return [...n, ...i];
|
|
1710
1635
|
}, []), [e, t]);
|
|
1711
1636
|
}
|
|
1712
|
-
var
|
|
1637
|
+
var $e;
|
|
1713
1638
|
(function(e) {
|
|
1714
1639
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1715
|
-
})(
|
|
1716
|
-
var
|
|
1640
|
+
})($e || ($e = {}));
|
|
1641
|
+
var wt;
|
|
1717
1642
|
(function(e) {
|
|
1718
1643
|
e.Optimized = "optimized";
|
|
1719
|
-
})(
|
|
1720
|
-
const
|
|
1721
|
-
function
|
|
1644
|
+
})(wt || (wt = {}));
|
|
1645
|
+
const Ut = /* @__PURE__ */ new Map();
|
|
1646
|
+
function Er(e, t) {
|
|
1722
1647
|
let {
|
|
1723
1648
|
dragging: n,
|
|
1724
1649
|
dependencies: r,
|
|
@@ -1730,10 +1655,10 @@ function Ar(e, t) {
|
|
|
1730
1655
|
strategy: u
|
|
1731
1656
|
} = o, f = a.useRef(e), d = p(), g = Be(d), h = a.useCallback(function(m) {
|
|
1732
1657
|
m === void 0 && (m = []), !g.current && s((w) => w === null ? m : w.concat(m.filter((b) => !w.includes(b))));
|
|
1733
|
-
}, [g]), C = a.useRef(null), v =
|
|
1658
|
+
}, [g]), C = a.useRef(null), v = je((m) => {
|
|
1734
1659
|
if (d && !n)
|
|
1735
|
-
return
|
|
1736
|
-
if (!m || m ===
|
|
1660
|
+
return Ut;
|
|
1661
|
+
if (!m || m === Ut || f.current !== e || i != null) {
|
|
1737
1662
|
const w = /* @__PURE__ */ new Map();
|
|
1738
1663
|
for (let b of e) {
|
|
1739
1664
|
if (!b)
|
|
@@ -1742,7 +1667,7 @@ function Ar(e, t) {
|
|
|
1742
1667
|
w.set(b.id, b.rect.current);
|
|
1743
1668
|
continue;
|
|
1744
1669
|
}
|
|
1745
|
-
const S = b.node.current, R = S ? new
|
|
1670
|
+
const S = b.node.current, R = S ? new Et(l(S), S) : null;
|
|
1746
1671
|
b.rect.current = R, R && w.set(b.id, R);
|
|
1747
1672
|
}
|
|
1748
1673
|
return w;
|
|
@@ -1778,27 +1703,27 @@ function Ar(e, t) {
|
|
|
1778
1703
|
};
|
|
1779
1704
|
function p() {
|
|
1780
1705
|
switch (u) {
|
|
1781
|
-
case
|
|
1706
|
+
case $e.Always:
|
|
1782
1707
|
return !1;
|
|
1783
|
-
case
|
|
1708
|
+
case $e.BeforeDragging:
|
|
1784
1709
|
return n;
|
|
1785
1710
|
default:
|
|
1786
1711
|
return !n;
|
|
1787
1712
|
}
|
|
1788
1713
|
}
|
|
1789
1714
|
}
|
|
1790
|
-
function
|
|
1791
|
-
return
|
|
1715
|
+
function hn(e, t) {
|
|
1716
|
+
return je((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1792
1717
|
}
|
|
1793
|
-
function
|
|
1794
|
-
return
|
|
1718
|
+
function Mr(e, t) {
|
|
1719
|
+
return hn(e, t);
|
|
1795
1720
|
}
|
|
1796
|
-
function
|
|
1721
|
+
function Ar(e) {
|
|
1797
1722
|
let {
|
|
1798
1723
|
callback: t,
|
|
1799
1724
|
disabled: n
|
|
1800
1725
|
} = e;
|
|
1801
|
-
const r =
|
|
1726
|
+
const r = St(t), o = a.useMemo(() => {
|
|
1802
1727
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1803
1728
|
return;
|
|
1804
1729
|
const {
|
|
@@ -1808,12 +1733,12 @@ function Tr(e) {
|
|
|
1808
1733
|
}, [r, n]);
|
|
1809
1734
|
return a.useEffect(() => () => o?.disconnect(), [o]), o;
|
|
1810
1735
|
}
|
|
1811
|
-
function
|
|
1736
|
+
function at(e) {
|
|
1812
1737
|
let {
|
|
1813
1738
|
callback: t,
|
|
1814
1739
|
disabled: n
|
|
1815
1740
|
} = e;
|
|
1816
|
-
const r =
|
|
1741
|
+
const r = St(t), o = a.useMemo(
|
|
1817
1742
|
() => {
|
|
1818
1743
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1819
1744
|
return;
|
|
@@ -1827,11 +1752,11 @@ function lt(e) {
|
|
|
1827
1752
|
);
|
|
1828
1753
|
return a.useEffect(() => () => o?.disconnect(), [o]), o;
|
|
1829
1754
|
}
|
|
1830
|
-
function
|
|
1831
|
-
return new
|
|
1755
|
+
function Ir(e) {
|
|
1756
|
+
return new Et(Re(e), e);
|
|
1832
1757
|
}
|
|
1833
|
-
function
|
|
1834
|
-
t === void 0 && (t =
|
|
1758
|
+
function Xt(e, t, n) {
|
|
1759
|
+
t === void 0 && (t = Ir);
|
|
1835
1760
|
const [r, o] = a.useState(null);
|
|
1836
1761
|
function i() {
|
|
1837
1762
|
o((l) => {
|
|
@@ -1845,7 +1770,7 @@ function _t(e, t, n) {
|
|
|
1845
1770
|
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
1846
1771
|
});
|
|
1847
1772
|
}
|
|
1848
|
-
const s =
|
|
1773
|
+
const s = Ar({
|
|
1849
1774
|
callback(l) {
|
|
1850
1775
|
if (e)
|
|
1851
1776
|
for (const u of l) {
|
|
@@ -1859,7 +1784,7 @@ function _t(e, t, n) {
|
|
|
1859
1784
|
}
|
|
1860
1785
|
}
|
|
1861
1786
|
}
|
|
1862
|
-
}), c =
|
|
1787
|
+
}), c = at({
|
|
1863
1788
|
callback: i
|
|
1864
1789
|
});
|
|
1865
1790
|
return ee(() => {
|
|
@@ -1869,31 +1794,31 @@ function _t(e, t, n) {
|
|
|
1869
1794
|
})) : (c?.disconnect(), s?.disconnect());
|
|
1870
1795
|
}, [e]), r;
|
|
1871
1796
|
}
|
|
1872
|
-
function
|
|
1873
|
-
const t =
|
|
1874
|
-
return
|
|
1797
|
+
function Tr(e) {
|
|
1798
|
+
const t = hn(e);
|
|
1799
|
+
return nn(e, t);
|
|
1875
1800
|
}
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1878
|
-
const t = a.useRef(e), n =
|
|
1801
|
+
const Yt = [];
|
|
1802
|
+
function kr(e) {
|
|
1803
|
+
const t = a.useRef(e), n = je((r) => e ? r && r !== Yt && e && t.current && e.parentNode === t.current.parentNode ? r : st(e) : Yt, [e]);
|
|
1879
1804
|
return a.useEffect(() => {
|
|
1880
1805
|
t.current = e;
|
|
1881
1806
|
}, [e]), n;
|
|
1882
1807
|
}
|
|
1883
|
-
function
|
|
1808
|
+
function Or(e) {
|
|
1884
1809
|
const [t, n] = a.useState(null), r = a.useRef(e), o = a.useCallback((i) => {
|
|
1885
|
-
const s =
|
|
1886
|
-
s && n((c) => c ? (c.set(s,
|
|
1810
|
+
const s = ht(i.target);
|
|
1811
|
+
s && n((c) => c ? (c.set(s, yt(s)), new Map(c)) : null);
|
|
1887
1812
|
}, []);
|
|
1888
1813
|
return a.useEffect(() => {
|
|
1889
1814
|
const i = r.current;
|
|
1890
1815
|
if (e !== i) {
|
|
1891
1816
|
s(i);
|
|
1892
1817
|
const c = e.map((l) => {
|
|
1893
|
-
const u =
|
|
1818
|
+
const u = ht(l);
|
|
1894
1819
|
return u ? (u.addEventListener("scroll", o, {
|
|
1895
1820
|
passive: !0
|
|
1896
|
-
}), [u,
|
|
1821
|
+
}), [u, yt(u)]) : null;
|
|
1897
1822
|
}).filter((l) => l != null);
|
|
1898
1823
|
n(c.length ? new Map(c) : null), r.current = e;
|
|
1899
1824
|
}
|
|
@@ -1902,13 +1827,13 @@ function Lr(e) {
|
|
|
1902
1827
|
};
|
|
1903
1828
|
function s(c) {
|
|
1904
1829
|
c.forEach((l) => {
|
|
1905
|
-
const u =
|
|
1830
|
+
const u = ht(l);
|
|
1906
1831
|
u?.removeEventListener("scroll", o);
|
|
1907
1832
|
});
|
|
1908
1833
|
}
|
|
1909
|
-
}, [o, e]), a.useMemo(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => De(i, s),
|
|
1834
|
+
}, [o, e]), a.useMemo(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => De(i, s), _) : ln(e) : _, [e, t]);
|
|
1910
1835
|
}
|
|
1911
|
-
function
|
|
1836
|
+
function Qt(e, t) {
|
|
1912
1837
|
t === void 0 && (t = []);
|
|
1913
1838
|
const n = a.useRef(null);
|
|
1914
1839
|
return a.useEffect(
|
|
@@ -1918,14 +1843,14 @@ function Wt(e, t) {
|
|
|
1918
1843
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1919
1844
|
t
|
|
1920
1845
|
), a.useEffect(() => {
|
|
1921
|
-
const r = e !==
|
|
1846
|
+
const r = e !== _;
|
|
1922
1847
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
1923
|
-
}, [e]), n.current ? qe(e, n.current) :
|
|
1848
|
+
}, [e]), n.current ? qe(e, n.current) : _;
|
|
1924
1849
|
}
|
|
1925
|
-
function
|
|
1850
|
+
function Nr(e) {
|
|
1926
1851
|
a.useEffect(
|
|
1927
1852
|
() => {
|
|
1928
|
-
if (!
|
|
1853
|
+
if (!it)
|
|
1929
1854
|
return;
|
|
1930
1855
|
const t = e.map((n) => {
|
|
1931
1856
|
let {
|
|
@@ -1948,7 +1873,7 @@ function Pr(e) {
|
|
|
1948
1873
|
})
|
|
1949
1874
|
);
|
|
1950
1875
|
}
|
|
1951
|
-
function
|
|
1876
|
+
function Lr(e, t) {
|
|
1952
1877
|
return a.useMemo(() => e.reduce((n, r) => {
|
|
1953
1878
|
let {
|
|
1954
1879
|
eventName: o,
|
|
@@ -1959,32 +1884,32 @@ function Fr(e, t) {
|
|
|
1959
1884
|
}, n;
|
|
1960
1885
|
}, {}), [e, t]);
|
|
1961
1886
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return a.useMemo(() => e ?
|
|
1887
|
+
function gn(e) {
|
|
1888
|
+
return a.useMemo(() => e ? or(e) : null, [e]);
|
|
1964
1889
|
}
|
|
1965
|
-
const
|
|
1966
|
-
function
|
|
1890
|
+
const Wt = [];
|
|
1891
|
+
function Pr(e, t) {
|
|
1967
1892
|
t === void 0 && (t = Re);
|
|
1968
|
-
const [n] = e, r =
|
|
1893
|
+
const [n] = e, r = gn(n ? B(n) : null), [o, i] = a.useState(Wt);
|
|
1969
1894
|
function s() {
|
|
1970
|
-
i(() => e.length ? e.map((l) =>
|
|
1895
|
+
i(() => e.length ? e.map((l) => an(l) ? r : new Et(t(l), l)) : Wt);
|
|
1971
1896
|
}
|
|
1972
|
-
const c =
|
|
1897
|
+
const c = at({
|
|
1973
1898
|
callback: s
|
|
1974
1899
|
});
|
|
1975
1900
|
return ee(() => {
|
|
1976
1901
|
c?.disconnect(), s(), e.forEach((l) => c?.observe(l));
|
|
1977
1902
|
}, [e]), o;
|
|
1978
1903
|
}
|
|
1979
|
-
function
|
|
1904
|
+
function Fr(e) {
|
|
1980
1905
|
if (!e)
|
|
1981
1906
|
return null;
|
|
1982
1907
|
if (e.children.length > 1)
|
|
1983
1908
|
return e;
|
|
1984
1909
|
const t = e.children[0];
|
|
1985
|
-
return
|
|
1910
|
+
return Ke(t) ? t : e;
|
|
1986
1911
|
}
|
|
1987
|
-
function
|
|
1912
|
+
function zr(e) {
|
|
1988
1913
|
let {
|
|
1989
1914
|
measure: t
|
|
1990
1915
|
} = e;
|
|
@@ -1992,7 +1917,7 @@ function qr(e) {
|
|
|
1992
1917
|
for (const {
|
|
1993
1918
|
target: f
|
|
1994
1919
|
} of u)
|
|
1995
|
-
if (
|
|
1920
|
+
if (Ke(f)) {
|
|
1996
1921
|
r((d) => {
|
|
1997
1922
|
const g = t(f);
|
|
1998
1923
|
return d ? {
|
|
@@ -2003,34 +1928,34 @@ function qr(e) {
|
|
|
2003
1928
|
});
|
|
2004
1929
|
break;
|
|
2005
1930
|
}
|
|
2006
|
-
}, [t]), i =
|
|
1931
|
+
}, [t]), i = at({
|
|
2007
1932
|
callback: o
|
|
2008
1933
|
}), s = a.useCallback((u) => {
|
|
2009
|
-
const f =
|
|
1934
|
+
const f = Fr(u);
|
|
2010
1935
|
i?.disconnect(), f && i?.observe(f), r(f ? t(f) : null);
|
|
2011
|
-
}, [t, i]), [c, l] =
|
|
1936
|
+
}, [t, i]), [c, l] = Ze(s);
|
|
2012
1937
|
return a.useMemo(() => ({
|
|
2013
1938
|
nodeRef: c,
|
|
2014
1939
|
rect: n,
|
|
2015
1940
|
setRef: l
|
|
2016
1941
|
}), [n, c, l]);
|
|
2017
1942
|
}
|
|
2018
|
-
const
|
|
2019
|
-
sensor:
|
|
1943
|
+
const Br = [{
|
|
1944
|
+
sensor: fn,
|
|
2020
1945
|
options: {}
|
|
2021
1946
|
}, {
|
|
2022
|
-
sensor:
|
|
1947
|
+
sensor: dn,
|
|
2023
1948
|
options: {}
|
|
2024
|
-
}],
|
|
1949
|
+
}], qr = {
|
|
2025
1950
|
current: {}
|
|
2026
|
-
},
|
|
1951
|
+
}, Je = {
|
|
2027
1952
|
draggable: {
|
|
2028
|
-
measure:
|
|
1953
|
+
measure: qt
|
|
2029
1954
|
},
|
|
2030
1955
|
droppable: {
|
|
2031
|
-
measure:
|
|
2032
|
-
strategy:
|
|
2033
|
-
frequency:
|
|
1956
|
+
measure: qt,
|
|
1957
|
+
strategy: $e.WhileDragging,
|
|
1958
|
+
frequency: wt.Optimized
|
|
2034
1959
|
},
|
|
2035
1960
|
dragOverlay: {
|
|
2036
1961
|
measure: Re
|
|
@@ -2057,7 +1982,7 @@ class ze extends Map {
|
|
|
2057
1982
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
2058
1983
|
}
|
|
2059
1984
|
}
|
|
2060
|
-
const
|
|
1985
|
+
const $r = {
|
|
2061
1986
|
activatorEvent: null,
|
|
2062
1987
|
active: null,
|
|
2063
1988
|
activeNode: null,
|
|
@@ -2073,15 +1998,15 @@ const Kr = {
|
|
|
2073
1998
|
current: null
|
|
2074
1999
|
},
|
|
2075
2000
|
rect: null,
|
|
2076
|
-
setRef:
|
|
2001
|
+
setRef: tt
|
|
2077
2002
|
},
|
|
2078
2003
|
scrollableAncestors: [],
|
|
2079
2004
|
scrollableAncestorRects: [],
|
|
2080
|
-
measuringConfiguration:
|
|
2081
|
-
measureDroppableContainers:
|
|
2005
|
+
measuringConfiguration: Je,
|
|
2006
|
+
measureDroppableContainers: tt,
|
|
2082
2007
|
windowRect: null,
|
|
2083
2008
|
measuringScheduled: !1
|
|
2084
|
-
},
|
|
2009
|
+
}, Kr = {
|
|
2085
2010
|
activatorEvent: null,
|
|
2086
2011
|
activators: [],
|
|
2087
2012
|
active: null,
|
|
@@ -2089,12 +2014,12 @@ const Kr = {
|
|
|
2089
2014
|
ariaDescribedById: {
|
|
2090
2015
|
draggable: ""
|
|
2091
2016
|
},
|
|
2092
|
-
dispatch:
|
|
2017
|
+
dispatch: tt,
|
|
2093
2018
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2094
2019
|
over: null,
|
|
2095
|
-
measureDroppableContainers:
|
|
2096
|
-
},
|
|
2097
|
-
function
|
|
2020
|
+
measureDroppableContainers: tt
|
|
2021
|
+
}, ct = /* @__PURE__ */ a.createContext(Kr), vn = /* @__PURE__ */ a.createContext($r);
|
|
2022
|
+
function jr() {
|
|
2098
2023
|
return {
|
|
2099
2024
|
draggable: {
|
|
2100
2025
|
active: null,
|
|
@@ -2113,7 +2038,7 @@ function Ur() {
|
|
|
2113
2038
|
}
|
|
2114
2039
|
};
|
|
2115
2040
|
}
|
|
2116
|
-
function
|
|
2041
|
+
function Ur(e, t) {
|
|
2117
2042
|
switch (t.type) {
|
|
2118
2043
|
case T.DragStart:
|
|
2119
2044
|
return {
|
|
@@ -2206,7 +2131,7 @@ function Yr(e, t) {
|
|
|
2206
2131
|
return e;
|
|
2207
2132
|
}
|
|
2208
2133
|
}
|
|
2209
|
-
function
|
|
2134
|
+
function Xr(e) {
|
|
2210
2135
|
let {
|
|
2211
2136
|
disabled: t
|
|
2212
2137
|
} = e;
|
|
@@ -2214,10 +2139,10 @@ function _r(e) {
|
|
|
2214
2139
|
active: n,
|
|
2215
2140
|
activatorEvent: r,
|
|
2216
2141
|
draggableNodes: o
|
|
2217
|
-
} = a.useContext(
|
|
2142
|
+
} = a.useContext(ct), i = pt(r), s = pt(n?.id);
|
|
2218
2143
|
return a.useEffect(() => {
|
|
2219
2144
|
if (!t && !r && i && s != null) {
|
|
2220
|
-
if (!
|
|
2145
|
+
if (!Rt(i) || document.activeElement === i.target)
|
|
2221
2146
|
return;
|
|
2222
2147
|
const c = o.get(s);
|
|
2223
2148
|
if (!c)
|
|
@@ -2232,7 +2157,7 @@ function _r(e) {
|
|
|
2232
2157
|
for (const f of [l.current, u.current]) {
|
|
2233
2158
|
if (!f)
|
|
2234
2159
|
continue;
|
|
2235
|
-
const d =
|
|
2160
|
+
const d = Bn(f);
|
|
2236
2161
|
if (d) {
|
|
2237
2162
|
d.focus();
|
|
2238
2163
|
break;
|
|
@@ -2242,7 +2167,7 @@ function _r(e) {
|
|
|
2242
2167
|
}
|
|
2243
2168
|
}, [r, t, o, s, i]), null;
|
|
2244
2169
|
}
|
|
2245
|
-
function
|
|
2170
|
+
function Yr(e, t) {
|
|
2246
2171
|
let {
|
|
2247
2172
|
transform: n,
|
|
2248
2173
|
...r
|
|
@@ -2252,19 +2177,19 @@ function Qr(e, t) {
|
|
|
2252
2177
|
...r
|
|
2253
2178
|
}), n) : n;
|
|
2254
2179
|
}
|
|
2255
|
-
function
|
|
2180
|
+
function Qr(e) {
|
|
2256
2181
|
return a.useMemo(
|
|
2257
2182
|
() => ({
|
|
2258
2183
|
draggable: {
|
|
2259
|
-
...
|
|
2184
|
+
...Je.draggable,
|
|
2260
2185
|
...e?.draggable
|
|
2261
2186
|
},
|
|
2262
2187
|
droppable: {
|
|
2263
|
-
...
|
|
2188
|
+
...Je.droppable,
|
|
2264
2189
|
...e?.droppable
|
|
2265
2190
|
},
|
|
2266
2191
|
dragOverlay: {
|
|
2267
|
-
...
|
|
2192
|
+
...Je.dragOverlay,
|
|
2268
2193
|
...e?.dragOverlay
|
|
2269
2194
|
}
|
|
2270
2195
|
}),
|
|
@@ -2272,7 +2197,7 @@ function Wr(e) {
|
|
|
2272
2197
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
2273
2198
|
);
|
|
2274
2199
|
}
|
|
2275
|
-
function
|
|
2200
|
+
function Wr(e) {
|
|
2276
2201
|
let {
|
|
2277
2202
|
activeNode: t,
|
|
2278
2203
|
measure: n,
|
|
@@ -2296,9 +2221,9 @@ function Hr(e) {
|
|
|
2296
2221
|
const u = t?.node.current;
|
|
2297
2222
|
if (!u || u.isConnected === !1)
|
|
2298
2223
|
return;
|
|
2299
|
-
const f = n(u), d =
|
|
2224
|
+
const f = n(u), d = nn(f, r);
|
|
2300
2225
|
if (s || (d.x = 0), c || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
2301
|
-
const g =
|
|
2226
|
+
const g = rn(u);
|
|
2302
2227
|
g && g.scrollBy({
|
|
2303
2228
|
top: d.y,
|
|
2304
2229
|
left: d.x
|
|
@@ -2306,8 +2231,8 @@ function Hr(e) {
|
|
|
2306
2231
|
}
|
|
2307
2232
|
}, [t, s, c, r, n]);
|
|
2308
2233
|
}
|
|
2309
|
-
const
|
|
2310
|
-
...
|
|
2234
|
+
const pn = /* @__PURE__ */ a.createContext({
|
|
2235
|
+
..._,
|
|
2311
2236
|
scaleX: 1,
|
|
2312
2237
|
scaleY: 1
|
|
2313
2238
|
});
|
|
@@ -2315,108 +2240,108 @@ var fe;
|
|
|
2315
2240
|
(function(e) {
|
|
2316
2241
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2317
2242
|
})(fe || (fe = {}));
|
|
2318
|
-
const
|
|
2243
|
+
const Po = /* @__PURE__ */ a.memo(function(t) {
|
|
2319
2244
|
var n, r, o, i;
|
|
2320
2245
|
let {
|
|
2321
2246
|
id: s,
|
|
2322
2247
|
accessibility: c,
|
|
2323
2248
|
autoScroll: l = !0,
|
|
2324
2249
|
children: u,
|
|
2325
|
-
sensors: f =
|
|
2326
|
-
collisionDetection: d =
|
|
2250
|
+
sensors: f = Br,
|
|
2251
|
+
collisionDetection: d = Gn,
|
|
2327
2252
|
measuring: g,
|
|
2328
2253
|
modifiers: h,
|
|
2329
2254
|
...C
|
|
2330
2255
|
} = t;
|
|
2331
|
-
const v = a.useReducer(
|
|
2256
|
+
const v = a.useReducer(Ur, void 0, jr), [p, m] = v, [w, b] = Xn(), [S, R] = a.useState(fe.Uninitialized), E = S === fe.Initialized, {
|
|
2332
2257
|
draggable: {
|
|
2333
2258
|
active: x,
|
|
2334
2259
|
nodes: D,
|
|
2335
2260
|
translate: I
|
|
2336
2261
|
},
|
|
2337
2262
|
droppable: {
|
|
2338
|
-
containers:
|
|
2263
|
+
containers: O
|
|
2339
2264
|
}
|
|
2340
|
-
} = p, A = x != null ? D.get(x) : null,
|
|
2265
|
+
} = p, A = x != null ? D.get(x) : null, Q = a.useRef({
|
|
2341
2266
|
initial: null,
|
|
2342
2267
|
translated: null
|
|
2343
|
-
}),
|
|
2268
|
+
}), W = a.useMemo(() => {
|
|
2344
2269
|
var P;
|
|
2345
2270
|
return x != null ? {
|
|
2346
2271
|
id: x,
|
|
2347
2272
|
// It's possible for the active node to unmount while dragging
|
|
2348
|
-
data: (P = A?.data) != null ? P :
|
|
2349
|
-
rect:
|
|
2273
|
+
data: (P = A?.data) != null ? P : qr,
|
|
2274
|
+
rect: Q
|
|
2350
2275
|
} : null;
|
|
2351
|
-
}, [x, A]), V = a.useRef(null), [Ee,
|
|
2276
|
+
}, [x, A]), V = a.useRef(null), [Ee, Xe] = a.useState(null), [q, Ye] = a.useState(null), te = Be(C, Object.values(C)), Me = Ue("DndDescribedBy", s), Qe = a.useMemo(() => O.getEnabled(), [O]), F = Qr(g), {
|
|
2352
2277
|
droppableRects: ne,
|
|
2353
2278
|
measureDroppableContainers: he,
|
|
2354
2279
|
measuringScheduled: Ae
|
|
2355
|
-
} =
|
|
2280
|
+
} = Er(Qe, {
|
|
2356
2281
|
dragging: E,
|
|
2357
2282
|
dependencies: [I.x, I.y],
|
|
2358
2283
|
config: F.droppable
|
|
2359
|
-
}),
|
|
2360
|
-
|
|
2284
|
+
}), U = Sr(D, x), We = a.useMemo(() => q ? bt(q) : null, [q]), se = Tn(), re = Mr(U, F.draggable.measure);
|
|
2285
|
+
Wr({
|
|
2361
2286
|
activeNode: x != null ? D.get(x) : null,
|
|
2362
2287
|
config: se.layoutShiftCompensation,
|
|
2363
2288
|
initialRect: re,
|
|
2364
2289
|
measure: F.draggable.measure
|
|
2365
2290
|
});
|
|
2366
|
-
const M =
|
|
2291
|
+
const M = Xt(U, F.draggable.measure, re), Ie = Xt(U ? U.parentElement : null), G = a.useRef({
|
|
2367
2292
|
activatorEvent: null,
|
|
2368
2293
|
active: null,
|
|
2369
|
-
activeNode:
|
|
2294
|
+
activeNode: U,
|
|
2370
2295
|
collisionRect: null,
|
|
2371
2296
|
collisions: null,
|
|
2372
2297
|
droppableRects: ne,
|
|
2373
2298
|
draggableNodes: D,
|
|
2374
2299
|
draggingNode: null,
|
|
2375
2300
|
draggingNodeRect: null,
|
|
2376
|
-
droppableContainers:
|
|
2301
|
+
droppableContainers: O,
|
|
2377
2302
|
over: null,
|
|
2378
2303
|
scrollableAncestors: [],
|
|
2379
2304
|
scrollAdjustedTranslate: null
|
|
2380
|
-
}), pe =
|
|
2305
|
+
}), pe = O.getNodeFor((n = G.current.over) == null ? void 0 : n.id), oe = zr({
|
|
2381
2306
|
measure: F.dragOverlay.measure
|
|
2382
|
-
}), be = (r = oe.nodeRef.current) != null ? r :
|
|
2307
|
+
}), be = (r = oe.nodeRef.current) != null ? r : U, ye = E ? (o = oe.rect) != null ? o : M : null, At = !!(oe.nodeRef.current && oe.rect), It = Tr(At ? null : M), lt = gn(be ? B(be) : null), ae = kr(E ? pe ?? U : null), _e = Pr(ae), He = Yr(h, {
|
|
2383
2308
|
transform: {
|
|
2384
|
-
x: I.x -
|
|
2385
|
-
y: I.y -
|
|
2309
|
+
x: I.x - It.x,
|
|
2310
|
+
y: I.y - It.y,
|
|
2386
2311
|
scaleX: 1,
|
|
2387
2312
|
scaleY: 1
|
|
2388
2313
|
},
|
|
2389
2314
|
activatorEvent: q,
|
|
2390
|
-
active:
|
|
2315
|
+
active: W,
|
|
2391
2316
|
activeNodeRect: M,
|
|
2392
2317
|
containerNodeRect: Ie,
|
|
2393
2318
|
draggingNodeRect: ye,
|
|
2394
2319
|
over: G.current.over,
|
|
2395
2320
|
overlayNodeRect: oe.rect,
|
|
2396
2321
|
scrollableAncestors: ae,
|
|
2397
|
-
scrollableAncestorRects:
|
|
2398
|
-
windowRect:
|
|
2399
|
-
}),
|
|
2400
|
-
active:
|
|
2322
|
+
scrollableAncestorRects: _e,
|
|
2323
|
+
windowRect: lt
|
|
2324
|
+
}), Tt = We ? De(We, I) : null, kt = Or(ae), Cn = Qt(kt), Sn = Qt(kt, [M]), me = De(He, Cn), we = ye ? er(ye, He) : null, Te = W && we ? d({
|
|
2325
|
+
active: W,
|
|
2401
2326
|
collisionRect: we,
|
|
2402
2327
|
droppableRects: ne,
|
|
2403
|
-
droppableContainers:
|
|
2404
|
-
pointerCoordinates:
|
|
2405
|
-
}) : null,
|
|
2406
|
-
(P,
|
|
2328
|
+
droppableContainers: Qe,
|
|
2329
|
+
pointerCoordinates: Tt
|
|
2330
|
+
}) : null, Ot = tn(Te, "id"), [ce, Nt] = a.useState(null), Rn = At ? He : De(He, Sn), En = Jn(Rn, (i = ce?.rect) != null ? i : null, M), ut = a.useRef(null), Lt = a.useCallback(
|
|
2331
|
+
(P, $) => {
|
|
2407
2332
|
let {
|
|
2408
|
-
sensor:
|
|
2333
|
+
sensor: K,
|
|
2409
2334
|
options: le
|
|
2410
|
-
} =
|
|
2335
|
+
} = $;
|
|
2411
2336
|
if (V.current == null)
|
|
2412
2337
|
return;
|
|
2413
|
-
const
|
|
2414
|
-
if (!
|
|
2338
|
+
const X = D.get(V.current);
|
|
2339
|
+
if (!X)
|
|
2415
2340
|
return;
|
|
2416
|
-
const
|
|
2341
|
+
const j = P.nativeEvent, J = new K({
|
|
2417
2342
|
active: V.current,
|
|
2418
|
-
activeNode:
|
|
2419
|
-
event:
|
|
2343
|
+
activeNode: X,
|
|
2344
|
+
event: j,
|
|
2420
2345
|
options: le,
|
|
2421
2346
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2422
2347
|
// otherwise they are frozen in time with the stale arguments
|
|
@@ -2438,14 +2363,14 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2438
2363
|
if (!D.get(L))
|
|
2439
2364
|
return;
|
|
2440
2365
|
const {
|
|
2441
|
-
onDragPending:
|
|
2366
|
+
onDragPending: Oe
|
|
2442
2367
|
} = te.current, de = {
|
|
2443
2368
|
id: L,
|
|
2444
2369
|
constraint: ue,
|
|
2445
2370
|
initialCoordinates: Z,
|
|
2446
2371
|
offset: ie
|
|
2447
2372
|
};
|
|
2448
|
-
|
|
2373
|
+
Oe?.(de), w({
|
|
2449
2374
|
type: "onDragPending",
|
|
2450
2375
|
event: de
|
|
2451
2376
|
});
|
|
@@ -2459,23 +2384,23 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2459
2384
|
return;
|
|
2460
2385
|
const {
|
|
2461
2386
|
onDragStart: ie
|
|
2462
|
-
} = te.current,
|
|
2463
|
-
activatorEvent:
|
|
2387
|
+
} = te.current, ke = {
|
|
2388
|
+
activatorEvent: j,
|
|
2464
2389
|
active: {
|
|
2465
2390
|
id: ue,
|
|
2466
2391
|
data: Z.data,
|
|
2467
|
-
rect:
|
|
2392
|
+
rect: Q
|
|
2468
2393
|
}
|
|
2469
2394
|
};
|
|
2470
2395
|
Le.unstable_batchedUpdates(() => {
|
|
2471
|
-
ie?.(
|
|
2396
|
+
ie?.(ke), R(fe.Initializing), m({
|
|
2472
2397
|
type: T.DragStart,
|
|
2473
2398
|
initialCoordinates: L,
|
|
2474
2399
|
active: ue
|
|
2475
2400
|
}), w({
|
|
2476
2401
|
type: "onDragStart",
|
|
2477
|
-
event:
|
|
2478
|
-
}),
|
|
2402
|
+
event: ke
|
|
2403
|
+
}), Xe(ut.current), Ye(j);
|
|
2479
2404
|
});
|
|
2480
2405
|
},
|
|
2481
2406
|
onMove(L) {
|
|
@@ -2487,37 +2412,37 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2487
2412
|
onEnd: xe(T.DragEnd),
|
|
2488
2413
|
onCancel: xe(T.DragCancel)
|
|
2489
2414
|
});
|
|
2490
|
-
|
|
2415
|
+
ut.current = J;
|
|
2491
2416
|
function xe(L) {
|
|
2492
2417
|
return async function() {
|
|
2493
2418
|
const {
|
|
2494
2419
|
active: Z,
|
|
2495
2420
|
collisions: ie,
|
|
2496
|
-
over:
|
|
2497
|
-
scrollAdjustedTranslate:
|
|
2421
|
+
over: ke,
|
|
2422
|
+
scrollAdjustedTranslate: Oe
|
|
2498
2423
|
} = G.current;
|
|
2499
2424
|
let de = null;
|
|
2500
|
-
if (Z &&
|
|
2425
|
+
if (Z && Oe) {
|
|
2501
2426
|
const {
|
|
2502
|
-
cancelDrop:
|
|
2427
|
+
cancelDrop: Ne
|
|
2503
2428
|
} = te.current;
|
|
2504
2429
|
de = {
|
|
2505
|
-
activatorEvent:
|
|
2430
|
+
activatorEvent: j,
|
|
2506
2431
|
active: Z,
|
|
2507
2432
|
collisions: ie,
|
|
2508
|
-
delta:
|
|
2509
|
-
over:
|
|
2510
|
-
}, L === T.DragEnd && typeof
|
|
2433
|
+
delta: Oe,
|
|
2434
|
+
over: ke
|
|
2435
|
+
}, L === T.DragEnd && typeof Ne == "function" && await Promise.resolve(Ne(de)) && (L = T.DragCancel);
|
|
2511
2436
|
}
|
|
2512
2437
|
V.current = null, Le.unstable_batchedUpdates(() => {
|
|
2513
2438
|
m({
|
|
2514
2439
|
type: L
|
|
2515
|
-
}), R(fe.Uninitialized),
|
|
2516
|
-
const
|
|
2440
|
+
}), R(fe.Uninitialized), Nt(null), Xe(null), Ye(null), ut.current = null;
|
|
2441
|
+
const Ne = L === T.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2517
2442
|
if (de) {
|
|
2518
|
-
const
|
|
2519
|
-
|
|
2520
|
-
type:
|
|
2443
|
+
const dt = te.current[Ne];
|
|
2444
|
+
dt?.(de), w({
|
|
2445
|
+
type: Ne,
|
|
2521
2446
|
event: de
|
|
2522
2447
|
});
|
|
2523
2448
|
}
|
|
@@ -2527,50 +2452,50 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2527
2452
|
},
|
|
2528
2453
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2529
2454
|
[D]
|
|
2530
|
-
),
|
|
2531
|
-
const
|
|
2455
|
+
), Mn = a.useCallback((P, $) => (K, le) => {
|
|
2456
|
+
const X = K.nativeEvent, j = D.get(le);
|
|
2532
2457
|
if (
|
|
2533
2458
|
// Another sensor is already instantiating
|
|
2534
2459
|
V.current !== null || // No active draggable
|
|
2535
|
-
!
|
|
2536
|
-
|
|
2460
|
+
!j || // Event has already been captured
|
|
2461
|
+
X.dndKit || X.defaultPrevented
|
|
2537
2462
|
)
|
|
2538
2463
|
return;
|
|
2539
2464
|
const J = {
|
|
2540
|
-
active:
|
|
2465
|
+
active: j
|
|
2541
2466
|
};
|
|
2542
|
-
P(
|
|
2543
|
-
capturedBy:
|
|
2544
|
-
}, V.current = le,
|
|
2545
|
-
}, [D,
|
|
2546
|
-
|
|
2467
|
+
P(K, $.options, J) === !0 && (X.dndKit = {
|
|
2468
|
+
capturedBy: $.sensor
|
|
2469
|
+
}, V.current = le, Lt(K, $));
|
|
2470
|
+
}, [D, Lt]), Pt = Rr(f, Mn);
|
|
2471
|
+
Nr(f), ee(() => {
|
|
2547
2472
|
M && S === fe.Initializing && R(fe.Initialized);
|
|
2548
2473
|
}, [M, S]), a.useEffect(
|
|
2549
2474
|
() => {
|
|
2550
2475
|
const {
|
|
2551
2476
|
onDragMove: P
|
|
2552
2477
|
} = te.current, {
|
|
2553
|
-
active:
|
|
2554
|
-
activatorEvent:
|
|
2478
|
+
active: $,
|
|
2479
|
+
activatorEvent: K,
|
|
2555
2480
|
collisions: le,
|
|
2556
|
-
over:
|
|
2481
|
+
over: X
|
|
2557
2482
|
} = G.current;
|
|
2558
|
-
if (
|
|
2483
|
+
if (!$ || !K)
|
|
2559
2484
|
return;
|
|
2560
|
-
const
|
|
2561
|
-
active:
|
|
2562
|
-
activatorEvent:
|
|
2485
|
+
const j = {
|
|
2486
|
+
active: $,
|
|
2487
|
+
activatorEvent: K,
|
|
2563
2488
|
collisions: le,
|
|
2564
2489
|
delta: {
|
|
2565
2490
|
x: me.x,
|
|
2566
2491
|
y: me.y
|
|
2567
2492
|
},
|
|
2568
|
-
over:
|
|
2493
|
+
over: X
|
|
2569
2494
|
};
|
|
2570
2495
|
Le.unstable_batchedUpdates(() => {
|
|
2571
|
-
P?.(
|
|
2496
|
+
P?.(j), w({
|
|
2572
2497
|
type: "onDragMove",
|
|
2573
|
-
event:
|
|
2498
|
+
event: j
|
|
2574
2499
|
});
|
|
2575
2500
|
});
|
|
2576
2501
|
},
|
|
@@ -2580,88 +2505,88 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2580
2505
|
() => {
|
|
2581
2506
|
const {
|
|
2582
2507
|
active: P,
|
|
2583
|
-
activatorEvent:
|
|
2584
|
-
collisions:
|
|
2508
|
+
activatorEvent: $,
|
|
2509
|
+
collisions: K,
|
|
2585
2510
|
droppableContainers: le,
|
|
2586
|
-
scrollAdjustedTranslate:
|
|
2511
|
+
scrollAdjustedTranslate: X
|
|
2587
2512
|
} = G.current;
|
|
2588
|
-
if (!P || V.current == null ||
|
|
2513
|
+
if (!P || V.current == null || !$ || !X)
|
|
2589
2514
|
return;
|
|
2590
2515
|
const {
|
|
2591
|
-
onDragOver:
|
|
2592
|
-
} = te.current, J = le.get(
|
|
2516
|
+
onDragOver: j
|
|
2517
|
+
} = te.current, J = le.get(Ot), xe = J && J.rect.current ? {
|
|
2593
2518
|
id: J.id,
|
|
2594
2519
|
rect: J.rect.current,
|
|
2595
2520
|
data: J.data,
|
|
2596
2521
|
disabled: J.disabled
|
|
2597
2522
|
} : null, L = {
|
|
2598
2523
|
active: P,
|
|
2599
|
-
activatorEvent:
|
|
2600
|
-
collisions:
|
|
2524
|
+
activatorEvent: $,
|
|
2525
|
+
collisions: K,
|
|
2601
2526
|
delta: {
|
|
2602
|
-
x:
|
|
2603
|
-
y:
|
|
2527
|
+
x: X.x,
|
|
2528
|
+
y: X.y
|
|
2604
2529
|
},
|
|
2605
2530
|
over: xe
|
|
2606
2531
|
};
|
|
2607
2532
|
Le.unstable_batchedUpdates(() => {
|
|
2608
|
-
|
|
2533
|
+
Nt(xe), j?.(L), w({
|
|
2609
2534
|
type: "onDragOver",
|
|
2610
2535
|
event: L
|
|
2611
2536
|
});
|
|
2612
2537
|
});
|
|
2613
2538
|
},
|
|
2614
2539
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2615
|
-
[
|
|
2540
|
+
[Ot]
|
|
2616
2541
|
), ee(() => {
|
|
2617
2542
|
G.current = {
|
|
2618
2543
|
activatorEvent: q,
|
|
2619
|
-
active:
|
|
2620
|
-
activeNode:
|
|
2544
|
+
active: W,
|
|
2545
|
+
activeNode: U,
|
|
2621
2546
|
collisionRect: we,
|
|
2622
2547
|
collisions: Te,
|
|
2623
2548
|
droppableRects: ne,
|
|
2624
2549
|
draggableNodes: D,
|
|
2625
2550
|
draggingNode: be,
|
|
2626
2551
|
draggingNodeRect: ye,
|
|
2627
|
-
droppableContainers:
|
|
2552
|
+
droppableContainers: O,
|
|
2628
2553
|
over: ce,
|
|
2629
2554
|
scrollableAncestors: ae,
|
|
2630
2555
|
scrollAdjustedTranslate: me
|
|
2631
|
-
},
|
|
2556
|
+
}, Q.current = {
|
|
2632
2557
|
initial: ye,
|
|
2633
2558
|
translated: we
|
|
2634
2559
|
};
|
|
2635
|
-
}, [
|
|
2560
|
+
}, [W, U, Te, we, D, be, ye, ne, O, ce, ae, me]), xr({
|
|
2636
2561
|
...se,
|
|
2637
2562
|
delta: I,
|
|
2638
2563
|
draggingRect: we,
|
|
2639
|
-
pointerCoordinates:
|
|
2564
|
+
pointerCoordinates: Tt,
|
|
2640
2565
|
scrollableAncestors: ae,
|
|
2641
|
-
scrollableAncestorRects:
|
|
2566
|
+
scrollableAncestorRects: _e
|
|
2642
2567
|
});
|
|
2643
|
-
const
|
|
2644
|
-
active:
|
|
2645
|
-
activeNode:
|
|
2568
|
+
const An = a.useMemo(() => ({
|
|
2569
|
+
active: W,
|
|
2570
|
+
activeNode: U,
|
|
2646
2571
|
activeNodeRect: M,
|
|
2647
2572
|
activatorEvent: q,
|
|
2648
2573
|
collisions: Te,
|
|
2649
2574
|
containerNodeRect: Ie,
|
|
2650
2575
|
dragOverlay: oe,
|
|
2651
2576
|
draggableNodes: D,
|
|
2652
|
-
droppableContainers:
|
|
2577
|
+
droppableContainers: O,
|
|
2653
2578
|
droppableRects: ne,
|
|
2654
2579
|
over: ce,
|
|
2655
2580
|
measureDroppableContainers: he,
|
|
2656
2581
|
scrollableAncestors: ae,
|
|
2657
|
-
scrollableAncestorRects:
|
|
2582
|
+
scrollableAncestorRects: _e,
|
|
2658
2583
|
measuringConfiguration: F,
|
|
2659
2584
|
measuringScheduled: Ae,
|
|
2660
|
-
windowRect:
|
|
2661
|
-
}), [
|
|
2585
|
+
windowRect: lt
|
|
2586
|
+
}), [W, U, M, q, Te, Ie, oe, D, O, ne, ce, he, ae, _e, F, Ae, lt]), In = a.useMemo(() => ({
|
|
2662
2587
|
activatorEvent: q,
|
|
2663
|
-
activators:
|
|
2664
|
-
active:
|
|
2588
|
+
activators: Pt,
|
|
2589
|
+
active: W,
|
|
2665
2590
|
activeNodeRect: M,
|
|
2666
2591
|
ariaDescribedById: {
|
|
2667
2592
|
draggable: Me
|
|
@@ -2670,39 +2595,39 @@ const Ko = /* @__PURE__ */ a.memo(function(t) {
|
|
|
2670
2595
|
draggableNodes: D,
|
|
2671
2596
|
over: ce,
|
|
2672
2597
|
measureDroppableContainers: he
|
|
2673
|
-
}), [q,
|
|
2674
|
-
return z.createElement(
|
|
2598
|
+
}), [q, Pt, W, M, m, Me, D, ce, he]);
|
|
2599
|
+
return z.createElement(Jt.Provider, {
|
|
2675
2600
|
value: b
|
|
2676
|
-
}, z.createElement(
|
|
2677
|
-
value:
|
|
2678
|
-
}, z.createElement(
|
|
2679
|
-
value: Tn
|
|
2680
|
-
}, z.createElement(yn.Provider, {
|
|
2601
|
+
}, z.createElement(ct.Provider, {
|
|
2602
|
+
value: In
|
|
2603
|
+
}, z.createElement(vn.Provider, {
|
|
2681
2604
|
value: An
|
|
2682
|
-
},
|
|
2605
|
+
}, z.createElement(pn.Provider, {
|
|
2606
|
+
value: En
|
|
2607
|
+
}, u)), z.createElement(Xr, {
|
|
2683
2608
|
disabled: c?.restoreFocus === !1
|
|
2684
|
-
})), z.createElement(
|
|
2609
|
+
})), z.createElement(Wn, {
|
|
2685
2610
|
...c,
|
|
2686
2611
|
hiddenTextDescribedById: Me
|
|
2687
2612
|
}));
|
|
2688
|
-
function
|
|
2689
|
-
const P = Ee?.autoScrollEnabled === !1,
|
|
2613
|
+
function Tn() {
|
|
2614
|
+
const P = Ee?.autoScrollEnabled === !1, $ = typeof l == "object" ? l.enabled === !1 : l === !1, K = E && !P && !$;
|
|
2690
2615
|
return typeof l == "object" ? {
|
|
2691
2616
|
...l,
|
|
2692
|
-
enabled:
|
|
2617
|
+
enabled: K
|
|
2693
2618
|
} : {
|
|
2694
|
-
enabled:
|
|
2619
|
+
enabled: K
|
|
2695
2620
|
};
|
|
2696
2621
|
}
|
|
2697
|
-
}),
|
|
2698
|
-
function
|
|
2622
|
+
}), _r = /* @__PURE__ */ a.createContext(null), _t = "button", Hr = "Draggable";
|
|
2623
|
+
function Vr(e) {
|
|
2699
2624
|
let {
|
|
2700
2625
|
id: t,
|
|
2701
2626
|
data: n,
|
|
2702
2627
|
disabled: r = !1,
|
|
2703
2628
|
attributes: o
|
|
2704
2629
|
} = e;
|
|
2705
|
-
const i =
|
|
2630
|
+
const i = Ue(Hr), {
|
|
2706
2631
|
activators: s,
|
|
2707
2632
|
activatorEvent: c,
|
|
2708
2633
|
active: l,
|
|
@@ -2710,11 +2635,11 @@ function Jr(e) {
|
|
|
2710
2635
|
ariaDescribedById: f,
|
|
2711
2636
|
draggableNodes: d,
|
|
2712
2637
|
over: g
|
|
2713
|
-
} = a.useContext(
|
|
2714
|
-
role: h =
|
|
2638
|
+
} = a.useContext(ct), {
|
|
2639
|
+
role: h = _t,
|
|
2715
2640
|
roleDescription: C = "draggable",
|
|
2716
2641
|
tabIndex: v = 0
|
|
2717
|
-
} = o ?? {}, p = l?.id === t, m = a.useContext(p ?
|
|
2642
|
+
} = o ?? {}, p = l?.id === t, m = a.useContext(p ? pn : _r), [w, b] = Ze(), [S, R] = Ze(), E = Lr(s, t), x = Be(n);
|
|
2718
2643
|
ee(
|
|
2719
2644
|
() => (d.set(t, {
|
|
2720
2645
|
id: t,
|
|
@@ -2733,7 +2658,7 @@ function Jr(e) {
|
|
|
2733
2658
|
role: h,
|
|
2734
2659
|
tabIndex: v,
|
|
2735
2660
|
"aria-disabled": r,
|
|
2736
|
-
"aria-pressed": p && h ===
|
|
2661
|
+
"aria-pressed": p && h === _t ? !0 : void 0,
|
|
2737
2662
|
"aria-roledescription": C,
|
|
2738
2663
|
"aria-describedby": f.draggable
|
|
2739
2664
|
}), [r, h, v, p, C, f.draggable]);
|
|
@@ -2751,32 +2676,32 @@ function Jr(e) {
|
|
|
2751
2676
|
transform: m
|
|
2752
2677
|
};
|
|
2753
2678
|
}
|
|
2754
|
-
function
|
|
2755
|
-
return a.useContext(
|
|
2679
|
+
function Gr() {
|
|
2680
|
+
return a.useContext(vn);
|
|
2756
2681
|
}
|
|
2757
|
-
const
|
|
2682
|
+
const Jr = "Droppable", Zr = {
|
|
2758
2683
|
timeout: 25
|
|
2759
2684
|
};
|
|
2760
|
-
function
|
|
2685
|
+
function eo(e) {
|
|
2761
2686
|
let {
|
|
2762
2687
|
data: t,
|
|
2763
2688
|
disabled: n = !1,
|
|
2764
2689
|
id: r,
|
|
2765
2690
|
resizeObserverConfig: o
|
|
2766
2691
|
} = e;
|
|
2767
|
-
const i =
|
|
2692
|
+
const i = Ue(Jr), {
|
|
2768
2693
|
active: s,
|
|
2769
2694
|
dispatch: c,
|
|
2770
2695
|
over: l,
|
|
2771
2696
|
measureDroppableContainers: u
|
|
2772
|
-
} = a.useContext(
|
|
2697
|
+
} = a.useContext(ct), f = a.useRef({
|
|
2773
2698
|
disabled: n
|
|
2774
2699
|
}), d = a.useRef(!1), g = a.useRef(null), h = a.useRef(null), {
|
|
2775
2700
|
disabled: C,
|
|
2776
2701
|
updateMeasurementsFor: v,
|
|
2777
2702
|
timeout: p
|
|
2778
2703
|
} = {
|
|
2779
|
-
...
|
|
2704
|
+
...Zr,
|
|
2780
2705
|
...o
|
|
2781
2706
|
}, m = Be(v ?? r), w = a.useCallback(
|
|
2782
2707
|
() => {
|
|
@@ -2790,12 +2715,12 @@ function no(e) {
|
|
|
2790
2715
|
},
|
|
2791
2716
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2792
2717
|
[p]
|
|
2793
|
-
), b =
|
|
2718
|
+
), b = at({
|
|
2794
2719
|
callback: w,
|
|
2795
2720
|
disabled: C || !s
|
|
2796
2721
|
}), S = a.useCallback((D, I) => {
|
|
2797
2722
|
b && (I && (b.unobserve(I), d.current = !1), D && b.observe(D));
|
|
2798
|
-
}, [b]), [R, E] =
|
|
2723
|
+
}, [b]), [R, E] = Ze(S), x = Be(t);
|
|
2799
2724
|
return a.useEffect(() => {
|
|
2800
2725
|
!b || !R.current || (b.disconnect(), d.current = !1, b.observe(R.current));
|
|
2801
2726
|
}, [R, b]), a.useEffect(
|
|
@@ -2832,20 +2757,20 @@ function no(e) {
|
|
|
2832
2757
|
setNodeRef: E
|
|
2833
2758
|
};
|
|
2834
2759
|
}
|
|
2835
|
-
function
|
|
2760
|
+
function bn(e, t, n) {
|
|
2836
2761
|
const r = e.slice();
|
|
2837
2762
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
2838
2763
|
}
|
|
2839
|
-
function
|
|
2764
|
+
function to(e, t) {
|
|
2840
2765
|
return e.reduce((n, r, o) => {
|
|
2841
2766
|
const i = t.get(r);
|
|
2842
2767
|
return i && (n[o] = i), n;
|
|
2843
2768
|
}, Array(e.length));
|
|
2844
2769
|
}
|
|
2845
|
-
function
|
|
2770
|
+
function Ve(e) {
|
|
2846
2771
|
return e !== null && e >= 0;
|
|
2847
2772
|
}
|
|
2848
|
-
function
|
|
2773
|
+
function no(e, t) {
|
|
2849
2774
|
if (e === t)
|
|
2850
2775
|
return !0;
|
|
2851
2776
|
if (e.length !== t.length)
|
|
@@ -2855,30 +2780,30 @@ function oo(e, t) {
|
|
|
2855
2780
|
return !1;
|
|
2856
2781
|
return !0;
|
|
2857
2782
|
}
|
|
2858
|
-
function
|
|
2783
|
+
function ro(e) {
|
|
2859
2784
|
return typeof e == "boolean" ? {
|
|
2860
2785
|
draggable: e,
|
|
2861
2786
|
droppable: e
|
|
2862
2787
|
} : e;
|
|
2863
2788
|
}
|
|
2864
|
-
const
|
|
2789
|
+
const yn = (e) => {
|
|
2865
2790
|
let {
|
|
2866
2791
|
rects: t,
|
|
2867
2792
|
activeIndex: n,
|
|
2868
2793
|
overIndex: r,
|
|
2869
2794
|
index: o
|
|
2870
2795
|
} = e;
|
|
2871
|
-
const i =
|
|
2796
|
+
const i = bn(t, r, n), s = t[o], c = i[o];
|
|
2872
2797
|
return !c || !s ? null : {
|
|
2873
2798
|
x: c.left - s.left,
|
|
2874
2799
|
y: c.top - s.top,
|
|
2875
2800
|
scaleX: c.width / s.width,
|
|
2876
2801
|
scaleY: c.height / s.height
|
|
2877
2802
|
};
|
|
2878
|
-
},
|
|
2803
|
+
}, Ge = {
|
|
2879
2804
|
scaleX: 1,
|
|
2880
2805
|
scaleY: 1
|
|
2881
|
-
},
|
|
2806
|
+
}, Fo = (e) => {
|
|
2882
2807
|
var t;
|
|
2883
2808
|
let {
|
|
2884
2809
|
activeIndex: n,
|
|
@@ -2895,48 +2820,48 @@ const wn = (e) => {
|
|
|
2895
2820
|
return u ? {
|
|
2896
2821
|
x: 0,
|
|
2897
2822
|
y: n < s ? u.top + u.height - (c.top + c.height) : u.top - c.top,
|
|
2898
|
-
...
|
|
2823
|
+
...Ge
|
|
2899
2824
|
} : null;
|
|
2900
2825
|
}
|
|
2901
|
-
const l =
|
|
2826
|
+
const l = oo(i, o, n);
|
|
2902
2827
|
return o > n && o <= s ? {
|
|
2903
2828
|
x: 0,
|
|
2904
2829
|
y: -c.height - l,
|
|
2905
|
-
...
|
|
2830
|
+
...Ge
|
|
2906
2831
|
} : o < n && o >= s ? {
|
|
2907
2832
|
x: 0,
|
|
2908
2833
|
y: c.height + l,
|
|
2909
|
-
...
|
|
2834
|
+
...Ge
|
|
2910
2835
|
} : {
|
|
2911
2836
|
x: 0,
|
|
2912
2837
|
y: 0,
|
|
2913
|
-
...
|
|
2838
|
+
...Ge
|
|
2914
2839
|
};
|
|
2915
2840
|
};
|
|
2916
|
-
function
|
|
2841
|
+
function oo(e, t, n) {
|
|
2917
2842
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
2918
2843
|
return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
2919
2844
|
}
|
|
2920
|
-
const
|
|
2845
|
+
const mn = "Sortable", wn = /* @__PURE__ */ z.createContext({
|
|
2921
2846
|
activeIndex: -1,
|
|
2922
|
-
containerId:
|
|
2847
|
+
containerId: mn,
|
|
2923
2848
|
disableTransforms: !1,
|
|
2924
2849
|
items: [],
|
|
2925
2850
|
overIndex: -1,
|
|
2926
2851
|
useDragOverlay: !1,
|
|
2927
2852
|
sortedRects: [],
|
|
2928
|
-
strategy:
|
|
2853
|
+
strategy: yn,
|
|
2929
2854
|
disabled: {
|
|
2930
2855
|
draggable: !1,
|
|
2931
2856
|
droppable: !1
|
|
2932
2857
|
}
|
|
2933
2858
|
});
|
|
2934
|
-
function
|
|
2859
|
+
function zo(e) {
|
|
2935
2860
|
let {
|
|
2936
2861
|
children: t,
|
|
2937
2862
|
id: n,
|
|
2938
2863
|
items: r,
|
|
2939
|
-
strategy: o =
|
|
2864
|
+
strategy: o = yn,
|
|
2940
2865
|
disabled: i = !1
|
|
2941
2866
|
} = e;
|
|
2942
2867
|
const {
|
|
@@ -2945,7 +2870,7 @@ function Uo(e) {
|
|
|
2945
2870
|
droppableRects: l,
|
|
2946
2871
|
over: u,
|
|
2947
2872
|
measureDroppableContainers: f
|
|
2948
|
-
} =
|
|
2873
|
+
} = Gr(), d = Ue(mn, n), g = c.rect !== null, h = a.useMemo(() => r.map((E) => typeof E == "object" && "id" in E ? E.id : E), [r]), C = s != null, v = s ? h.indexOf(s.id) : -1, p = u ? h.indexOf(u.id) : -1, m = a.useRef(h), w = !no(h, m.current), b = p !== -1 && v === -1 || w, S = ro(i);
|
|
2949
2874
|
ee(() => {
|
|
2950
2875
|
w && C && f(h);
|
|
2951
2876
|
}, [w, h, C, f]), a.useEffect(() => {
|
|
@@ -2960,25 +2885,25 @@ function Uo(e) {
|
|
|
2960
2885
|
items: h,
|
|
2961
2886
|
overIndex: p,
|
|
2962
2887
|
useDragOverlay: g,
|
|
2963
|
-
sortedRects:
|
|
2888
|
+
sortedRects: to(h, l),
|
|
2964
2889
|
strategy: o
|
|
2965
2890
|
}),
|
|
2966
2891
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2967
2892
|
[v, d, S.draggable, S.droppable, b, h, p, l, g, o]
|
|
2968
2893
|
);
|
|
2969
|
-
return z.createElement(
|
|
2894
|
+
return z.createElement(wn.Provider, {
|
|
2970
2895
|
value: R
|
|
2971
2896
|
}, t);
|
|
2972
2897
|
}
|
|
2973
|
-
const
|
|
2898
|
+
const io = (e) => {
|
|
2974
2899
|
let {
|
|
2975
2900
|
id: t,
|
|
2976
2901
|
items: n,
|
|
2977
2902
|
activeIndex: r,
|
|
2978
2903
|
overIndex: o
|
|
2979
2904
|
} = e;
|
|
2980
|
-
return
|
|
2981
|
-
},
|
|
2905
|
+
return bn(n, r, o).indexOf(t);
|
|
2906
|
+
}, so = (e) => {
|
|
2982
2907
|
let {
|
|
2983
2908
|
containerId: t,
|
|
2984
2909
|
isSorting: n,
|
|
@@ -2991,17 +2916,17 @@ const ao = (e) => {
|
|
|
2991
2916
|
transition: u
|
|
2992
2917
|
} = e;
|
|
2993
2918
|
return !u || !r || c !== i && o === s ? !1 : n ? !0 : s !== o && t === l;
|
|
2994
|
-
},
|
|
2919
|
+
}, ao = {
|
|
2995
2920
|
duration: 200,
|
|
2996
2921
|
easing: "ease"
|
|
2997
|
-
},
|
|
2998
|
-
property:
|
|
2922
|
+
}, xn = "transform", co = /* @__PURE__ */ et.Transition.toString({
|
|
2923
|
+
property: xn,
|
|
2999
2924
|
duration: 0,
|
|
3000
2925
|
easing: "linear"
|
|
3001
|
-
}),
|
|
2926
|
+
}), lo = {
|
|
3002
2927
|
roleDescription: "sortable"
|
|
3003
2928
|
};
|
|
3004
|
-
function
|
|
2929
|
+
function uo(e) {
|
|
3005
2930
|
let {
|
|
3006
2931
|
disabled: t,
|
|
3007
2932
|
index: n,
|
|
@@ -3029,17 +2954,17 @@ function ho(e) {
|
|
|
3029
2954
|
i && s(null);
|
|
3030
2955
|
}, [i]), i;
|
|
3031
2956
|
}
|
|
3032
|
-
function
|
|
2957
|
+
function Bo(e) {
|
|
3033
2958
|
let {
|
|
3034
|
-
animateLayoutChanges: t =
|
|
2959
|
+
animateLayoutChanges: t = so,
|
|
3035
2960
|
attributes: n,
|
|
3036
2961
|
disabled: r,
|
|
3037
2962
|
data: o,
|
|
3038
|
-
getNewIndex: i =
|
|
2963
|
+
getNewIndex: i = io,
|
|
3039
2964
|
id: s,
|
|
3040
2965
|
strategy: c,
|
|
3041
2966
|
resizeObserverConfig: l,
|
|
3042
|
-
transition: u =
|
|
2967
|
+
transition: u = ao
|
|
3043
2968
|
} = e;
|
|
3044
2969
|
const {
|
|
3045
2970
|
items: f,
|
|
@@ -3051,7 +2976,7 @@ function Yo(e) {
|
|
|
3051
2976
|
overIndex: p,
|
|
3052
2977
|
useDragOverlay: m,
|
|
3053
2978
|
strategy: w
|
|
3054
|
-
} = a.useContext(
|
|
2979
|
+
} = a.useContext(wn), b = fo(r, h), S = f.indexOf(s), R = a.useMemo(() => ({
|
|
3055
2980
|
sortable: {
|
|
3056
2981
|
containerId: d,
|
|
3057
2982
|
index: S,
|
|
@@ -3062,8 +2987,8 @@ function Yo(e) {
|
|
|
3062
2987
|
rect: x,
|
|
3063
2988
|
node: D,
|
|
3064
2989
|
isOver: I,
|
|
3065
|
-
setNodeRef:
|
|
3066
|
-
} =
|
|
2990
|
+
setNodeRef: O
|
|
2991
|
+
} = eo({
|
|
3067
2992
|
id: s,
|
|
3068
2993
|
data: R,
|
|
3069
2994
|
disabled: b.droppable,
|
|
@@ -3073,30 +2998,30 @@ function Yo(e) {
|
|
|
3073
2998
|
}
|
|
3074
2999
|
}), {
|
|
3075
3000
|
active: A,
|
|
3076
|
-
activatorEvent:
|
|
3077
|
-
activeNodeRect:
|
|
3001
|
+
activatorEvent: Q,
|
|
3002
|
+
activeNodeRect: W,
|
|
3078
3003
|
attributes: V,
|
|
3079
3004
|
setNodeRef: Ee,
|
|
3080
|
-
listeners:
|
|
3005
|
+
listeners: Xe,
|
|
3081
3006
|
isDragging: q,
|
|
3082
|
-
over:
|
|
3007
|
+
over: Ye,
|
|
3083
3008
|
setActivatorNodeRef: te,
|
|
3084
3009
|
transform: Me
|
|
3085
|
-
} =
|
|
3010
|
+
} = Vr({
|
|
3086
3011
|
id: s,
|
|
3087
3012
|
data: R,
|
|
3088
3013
|
attributes: {
|
|
3089
|
-
...
|
|
3014
|
+
...lo,
|
|
3090
3015
|
...n
|
|
3091
3016
|
},
|
|
3092
3017
|
disabled: b.draggable
|
|
3093
|
-
}),
|
|
3018
|
+
}), Qe = Ln(O, Ee), F = !!A, ne = F && !C && Ve(g) && Ve(p), he = !m && q, Ae = he && ne ? Me : null, We = ne ? Ae ?? (c ?? w)({
|
|
3094
3019
|
rects: v,
|
|
3095
|
-
activeNodeRect:
|
|
3020
|
+
activeNodeRect: W,
|
|
3096
3021
|
activeIndex: g,
|
|
3097
3022
|
overIndex: p,
|
|
3098
3023
|
index: S
|
|
3099
|
-
}) : null, se =
|
|
3024
|
+
}) : null, se = Ve(g) && Ve(p) ? i({
|
|
3100
3025
|
id: s,
|
|
3101
3026
|
items: f,
|
|
3102
3027
|
activeIndex: g,
|
|
@@ -3119,7 +3044,7 @@ function Yo(e) {
|
|
|
3119
3044
|
previousContainerId: M.current.containerId,
|
|
3120
3045
|
transition: u,
|
|
3121
3046
|
wasDragging: M.current.activeId != null
|
|
3122
|
-
}), pe =
|
|
3047
|
+
}), pe = uo({
|
|
3123
3048
|
disabled: !G,
|
|
3124
3049
|
index: S,
|
|
3125
3050
|
node: D,
|
|
@@ -3150,15 +3075,15 @@ function Yo(e) {
|
|
|
3150
3075
|
isOver: I,
|
|
3151
3076
|
isSorting: F,
|
|
3152
3077
|
isDragging: q,
|
|
3153
|
-
listeners:
|
|
3078
|
+
listeners: Xe,
|
|
3154
3079
|
node: D,
|
|
3155
3080
|
overIndex: p,
|
|
3156
|
-
over:
|
|
3157
|
-
setNodeRef:
|
|
3081
|
+
over: Ye,
|
|
3082
|
+
setNodeRef: Qe,
|
|
3158
3083
|
setActivatorNodeRef: te,
|
|
3159
|
-
setDroppableNodeRef:
|
|
3084
|
+
setDroppableNodeRef: O,
|
|
3160
3085
|
setDraggableNodeRef: Ee,
|
|
3161
|
-
transform: pe ??
|
|
3086
|
+
transform: pe ?? We,
|
|
3162
3087
|
transition: oe()
|
|
3163
3088
|
};
|
|
3164
3089
|
function oe() {
|
|
@@ -3167,15 +3092,15 @@ function Yo(e) {
|
|
|
3167
3092
|
pe || // Or to prevent items jumping to back to their "new" position when items change
|
|
3168
3093
|
Ie && M.current.newIndex === S
|
|
3169
3094
|
)
|
|
3170
|
-
return
|
|
3171
|
-
if (!(he && !
|
|
3172
|
-
return
|
|
3095
|
+
return co;
|
|
3096
|
+
if (!(he && !Rt(Q) || !u) && (F || G))
|
|
3097
|
+
return et.Transition.toString({
|
|
3173
3098
|
...u,
|
|
3174
|
-
property:
|
|
3099
|
+
property: xn
|
|
3175
3100
|
});
|
|
3176
3101
|
}
|
|
3177
3102
|
}
|
|
3178
|
-
function
|
|
3103
|
+
function fo(e, t) {
|
|
3179
3104
|
var n, r;
|
|
3180
3105
|
return typeof e == "boolean" ? {
|
|
3181
3106
|
draggable: e,
|
|
@@ -3186,13 +3111,13 @@ function go(e, t) {
|
|
|
3186
3111
|
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
3187
3112
|
};
|
|
3188
3113
|
}
|
|
3189
|
-
function
|
|
3114
|
+
function rt(e) {
|
|
3190
3115
|
if (!e)
|
|
3191
3116
|
return !1;
|
|
3192
3117
|
const t = e.data.current;
|
|
3193
3118
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
3194
3119
|
}
|
|
3195
|
-
const
|
|
3120
|
+
const ho = [y.Down, y.Right, y.Up, y.Left], qo = (e, t) => {
|
|
3196
3121
|
let {
|
|
3197
3122
|
context: {
|
|
3198
3123
|
active: n,
|
|
@@ -3203,7 +3128,7 @@ const vo = [y.Down, y.Right, y.Up, y.Left], _o = (e, t) => {
|
|
|
3203
3128
|
scrollableAncestors: c
|
|
3204
3129
|
}
|
|
3205
3130
|
} = t;
|
|
3206
|
-
if (
|
|
3131
|
+
if (ho.includes(e.code)) {
|
|
3207
3132
|
if (e.preventDefault(), !n || !r)
|
|
3208
3133
|
return;
|
|
3209
3134
|
const l = [];
|
|
@@ -3227,16 +3152,16 @@ const vo = [y.Down, y.Right, y.Up, y.Left], _o = (e, t) => {
|
|
|
3227
3152
|
break;
|
|
3228
3153
|
}
|
|
3229
3154
|
});
|
|
3230
|
-
const u =
|
|
3155
|
+
const u = Hn({
|
|
3231
3156
|
collisionRect: r,
|
|
3232
3157
|
droppableRects: o,
|
|
3233
3158
|
droppableContainers: l
|
|
3234
3159
|
});
|
|
3235
|
-
let f =
|
|
3160
|
+
let f = tn(u, "id");
|
|
3236
3161
|
if (f === s?.id && u.length > 1 && (f = u[1].id), f != null) {
|
|
3237
3162
|
const d = i.get(n.id), g = i.get(f), h = g ? o.get(g.id) : null, C = g?.node.current;
|
|
3238
3163
|
if (C && h && d && g) {
|
|
3239
|
-
const p =
|
|
3164
|
+
const p = st(C).some((E, x) => c[x] !== E), m = Dn(d, g), w = go(d, g), b = p || !m ? {
|
|
3240
3165
|
x: 0,
|
|
3241
3166
|
y: 0
|
|
3242
3167
|
} : {
|
|
@@ -3251,44 +3176,39 @@ const vo = [y.Down, y.Right, y.Up, y.Left], _o = (e, t) => {
|
|
|
3251
3176
|
}
|
|
3252
3177
|
}
|
|
3253
3178
|
};
|
|
3254
|
-
function
|
|
3255
|
-
return !
|
|
3179
|
+
function Dn(e, t) {
|
|
3180
|
+
return !rt(e) || !rt(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
3256
3181
|
}
|
|
3257
|
-
function
|
|
3258
|
-
return !
|
|
3182
|
+
function go(e, t) {
|
|
3183
|
+
return !rt(e) || !rt(t) || !Dn(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
3259
3184
|
}
|
|
3260
3185
|
export {
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
Ao as t,
|
|
3290
|
-
Yo as u,
|
|
3291
|
-
Xo as v,
|
|
3292
|
-
Bo as w,
|
|
3293
|
-
Io as x
|
|
3186
|
+
et as C,
|
|
3187
|
+
Po as D,
|
|
3188
|
+
bo as G,
|
|
3189
|
+
dn as K,
|
|
3190
|
+
yo as L,
|
|
3191
|
+
wo as M,
|
|
3192
|
+
fn as P,
|
|
3193
|
+
zo as S,
|
|
3194
|
+
mo as U,
|
|
3195
|
+
No as a,
|
|
3196
|
+
Oo as b,
|
|
3197
|
+
Lo as c,
|
|
3198
|
+
bn as d,
|
|
3199
|
+
k as e,
|
|
3200
|
+
Co as f,
|
|
3201
|
+
So as g,
|
|
3202
|
+
Ro as h,
|
|
3203
|
+
Eo as i,
|
|
3204
|
+
Mo as j,
|
|
3205
|
+
Ao as k,
|
|
3206
|
+
Io as l,
|
|
3207
|
+
To as m,
|
|
3208
|
+
xo as n,
|
|
3209
|
+
ko as o,
|
|
3210
|
+
Do as p,
|
|
3211
|
+
qo as s,
|
|
3212
|
+
Bo as u,
|
|
3213
|
+
Fo as v
|
|
3294
3214
|
};
|