@wilow_app/design-system 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -0
- package/dist/index.es.js +899 -896
- package/dist/index.umd.js +38 -38
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as C, jsxs as V } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as S from "react";
|
|
3
3
|
import L, { useRef as B, useEffect as te, useContext as gr, useState as Te, useLayoutEffect as Vo } from "react";
|
|
4
4
|
import Lo, { flushSync as mr } from "react-dom";
|
|
5
5
|
function W(e) {
|
|
6
6
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
7
7
|
}
|
|
8
|
-
var Mo = typeof Symbol == "function" && Symbol.observable || "@@observable",
|
|
9
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
10
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
11
|
-
},
|
|
8
|
+
var Mo = typeof Symbol == "function" && Symbol.observable || "@@observable", xn = Mo, In = () => Math.random().toString(36).substring(7).split("").join("."), $o = {
|
|
9
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ In()}`,
|
|
10
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ In()}`
|
|
11
|
+
}, Cn = $o;
|
|
12
12
|
function Go(e) {
|
|
13
13
|
if (typeof e != "object" || e === null)
|
|
14
14
|
return !1;
|
|
@@ -17,7 +17,7 @@ function Go(e) {
|
|
|
17
17
|
t = Object.getPrototypeOf(t);
|
|
18
18
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ko(e) {
|
|
21
21
|
if (e === void 0)
|
|
22
22
|
return "undefined";
|
|
23
23
|
if (e === null)
|
|
@@ -37,7 +37,7 @@ function Fo(e) {
|
|
|
37
37
|
return "date";
|
|
38
38
|
if (Wo(e))
|
|
39
39
|
return "error";
|
|
40
|
-
const n =
|
|
40
|
+
const n = Fo(e);
|
|
41
41
|
switch (n) {
|
|
42
42
|
case "Symbol":
|
|
43
43
|
case "Promise":
|
|
@@ -49,7 +49,7 @@ function Fo(e) {
|
|
|
49
49
|
}
|
|
50
50
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Fo(e) {
|
|
53
53
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
54
54
|
}
|
|
55
55
|
function Wo(e) {
|
|
@@ -60,7 +60,7 @@ function Uo(e) {
|
|
|
60
60
|
}
|
|
61
61
|
function ne(e) {
|
|
62
62
|
let t = typeof e;
|
|
63
|
-
return process.env.NODE_ENV !== "production" && (t =
|
|
63
|
+
return process.env.NODE_ENV !== "production" && (t = ko(e)), t;
|
|
64
64
|
}
|
|
65
65
|
function hr(e, t, n) {
|
|
66
66
|
if (typeof e != "function")
|
|
@@ -117,11 +117,11 @@ function hr(e, t, n) {
|
|
|
117
117
|
v();
|
|
118
118
|
}), h;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function g(h) {
|
|
121
121
|
if (typeof h != "function")
|
|
122
122
|
throw new Error(process.env.NODE_ENV === "production" ? W(10) : `Expected the nextReducer to be a function. Instead, received: '${ne(h)}`);
|
|
123
123
|
r = h, u({
|
|
124
|
-
type:
|
|
124
|
+
type: Cn.REPLACE
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
function m() {
|
|
@@ -146,35 +146,35 @@ function hr(e, t, n) {
|
|
|
146
146
|
unsubscribe: h(v)
|
|
147
147
|
};
|
|
148
148
|
},
|
|
149
|
-
[
|
|
149
|
+
[xn]() {
|
|
150
150
|
return this;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
return u({
|
|
155
|
-
type:
|
|
155
|
+
type: Cn.INIT
|
|
156
156
|
}), {
|
|
157
157
|
dispatch: u,
|
|
158
158
|
subscribe: l,
|
|
159
159
|
getState: p,
|
|
160
|
-
replaceReducer:
|
|
161
|
-
[
|
|
160
|
+
replaceReducer: g,
|
|
161
|
+
[xn]: m
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function On(e, t) {
|
|
165
165
|
return function(...n) {
|
|
166
166
|
return t(e.apply(this, n));
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Sn(e, t) {
|
|
170
170
|
if (typeof e == "function")
|
|
171
|
-
return
|
|
171
|
+
return On(e, t);
|
|
172
172
|
if (typeof e != "object" || e === null)
|
|
173
173
|
throw new Error(process.env.NODE_ENV === "production" ? W(16) : `bindActionCreators expected an object or a function, but instead received: '${ne(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
|
|
174
174
|
const n = {};
|
|
175
175
|
for (const r in e) {
|
|
176
176
|
const o = e[r];
|
|
177
|
-
typeof o == "function" && (n[r] =
|
|
177
|
+
typeof o == "function" && (n[r] = On(o, t));
|
|
178
178
|
}
|
|
179
179
|
return n;
|
|
180
180
|
}
|
|
@@ -197,7 +197,7 @@ function Ho(...e) {
|
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var ft = {};
|
|
201
201
|
/**
|
|
202
202
|
* @license React
|
|
203
203
|
* use-sync-external-store-with-selector.production.js
|
|
@@ -207,22 +207,22 @@ var pt = {};
|
|
|
207
207
|
* This source code is licensed under the MIT license found in the
|
|
208
208
|
* LICENSE file in the root directory of this source tree.
|
|
209
209
|
*/
|
|
210
|
-
var
|
|
210
|
+
var wn;
|
|
211
211
|
function zo() {
|
|
212
|
-
if (
|
|
213
|
-
|
|
212
|
+
if (wn) return ft;
|
|
213
|
+
wn = 1;
|
|
214
214
|
var e = L;
|
|
215
215
|
function t(a, d) {
|
|
216
216
|
return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
|
|
217
217
|
}
|
|
218
218
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useSyncExternalStore, o = e.useRef, i = e.useEffect, s = e.useMemo, c = e.useDebugValue;
|
|
219
|
-
return
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
219
|
+
return ft.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
220
|
+
var g = o(null);
|
|
221
|
+
if (g.current === null) {
|
|
222
222
|
var m = { hasValue: !1, value: null };
|
|
223
|
-
|
|
224
|
-
} else m =
|
|
225
|
-
|
|
223
|
+
g.current = m;
|
|
224
|
+
} else m = g.current;
|
|
225
|
+
g = s(
|
|
226
226
|
function() {
|
|
227
227
|
function h(E) {
|
|
228
228
|
if (!y) {
|
|
@@ -234,8 +234,8 @@ function zo() {
|
|
|
234
234
|
return I = E;
|
|
235
235
|
}
|
|
236
236
|
if (x = I, n(v, E)) return x;
|
|
237
|
-
var
|
|
238
|
-
return u !== void 0 && u(x,
|
|
237
|
+
var _ = l(E);
|
|
238
|
+
return u !== void 0 && u(x, _) ? (v = E, x) : (v = E, I = _);
|
|
239
239
|
}
|
|
240
240
|
var y = !1, v, I, N = p === void 0 ? null : p;
|
|
241
241
|
return [
|
|
@@ -249,16 +249,16 @@ function zo() {
|
|
|
249
249
|
},
|
|
250
250
|
[d, p, l, u]
|
|
251
251
|
);
|
|
252
|
-
var b = r(a,
|
|
252
|
+
var b = r(a, g[0], g[1]);
|
|
253
253
|
return i(
|
|
254
254
|
function() {
|
|
255
255
|
m.hasValue = !0, m.value = b;
|
|
256
256
|
},
|
|
257
257
|
[b]
|
|
258
258
|
), c(b), b;
|
|
259
|
-
},
|
|
259
|
+
}, ft;
|
|
260
260
|
}
|
|
261
|
-
var
|
|
261
|
+
var gt = {};
|
|
262
262
|
/**
|
|
263
263
|
* @license React
|
|
264
264
|
* use-sync-external-store-with-selector.development.js
|
|
@@ -268,21 +268,21 @@ var ft = {};
|
|
|
268
268
|
* This source code is licensed under the MIT license found in the
|
|
269
269
|
* LICENSE file in the root directory of this source tree.
|
|
270
270
|
*/
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
return
|
|
271
|
+
var _n;
|
|
272
|
+
function qo() {
|
|
273
|
+
return _n || (_n = 1, process.env.NODE_ENV !== "production" && function() {
|
|
274
274
|
function e(a, d) {
|
|
275
275
|
return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
|
|
276
276
|
}
|
|
277
277
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
278
278
|
var t = L, n = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, o = t.useRef, i = t.useEffect, s = t.useMemo, c = t.useDebugValue;
|
|
279
|
-
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
279
|
+
gt.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
280
|
+
var g = o(null);
|
|
281
|
+
if (g.current === null) {
|
|
282
282
|
var m = { hasValue: !1, value: null };
|
|
283
|
-
|
|
284
|
-
} else m =
|
|
285
|
-
|
|
283
|
+
g.current = m;
|
|
284
|
+
} else m = g.current;
|
|
285
|
+
g = s(
|
|
286
286
|
function() {
|
|
287
287
|
function h(E) {
|
|
288
288
|
if (!y) {
|
|
@@ -295,8 +295,8 @@ function jo() {
|
|
|
295
295
|
}
|
|
296
296
|
if (x = I, n(v, E))
|
|
297
297
|
return x;
|
|
298
|
-
var
|
|
299
|
-
return u !== void 0 && u(x,
|
|
298
|
+
var _ = l(E);
|
|
299
|
+
return u !== void 0 && u(x, _) ? (v = E, x) : (v = E, I = _);
|
|
300
300
|
}
|
|
301
301
|
var y = !1, v, I, N = p === void 0 ? null : p;
|
|
302
302
|
return [
|
|
@@ -310,7 +310,7 @@ function jo() {
|
|
|
310
310
|
},
|
|
311
311
|
[d, p, l, u]
|
|
312
312
|
);
|
|
313
|
-
var b = r(a,
|
|
313
|
+
var b = r(a, g[0], g[1]);
|
|
314
314
|
return i(
|
|
315
315
|
function() {
|
|
316
316
|
m.hasValue = !0, m.value = b;
|
|
@@ -318,24 +318,24 @@ function jo() {
|
|
|
318
318
|
[b]
|
|
319
319
|
), c(b), b;
|
|
320
320
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
321
|
-
}()),
|
|
321
|
+
}()), gt;
|
|
322
322
|
}
|
|
323
|
-
process.env.NODE_ENV === "production" ? zo() :
|
|
324
|
-
var vr = /* @__PURE__ */
|
|
323
|
+
process.env.NODE_ENV === "production" ? zo() : qo();
|
|
324
|
+
var vr = /* @__PURE__ */ S.version.startsWith("19"), jo = /* @__PURE__ */ Symbol.for(
|
|
325
325
|
vr ? "react.transitional.element" : "react.element"
|
|
326
|
-
), Yo = /* @__PURE__ */ Symbol.for("react.portal"), yr = /* @__PURE__ */ Symbol.for("react.fragment"), Er = /* @__PURE__ */ Symbol.for("react.strict_mode"), Dr = /* @__PURE__ */ Symbol.for("react.profiler"),
|
|
326
|
+
), Yo = /* @__PURE__ */ Symbol.for("react.portal"), yr = /* @__PURE__ */ Symbol.for("react.fragment"), Er = /* @__PURE__ */ Symbol.for("react.strict_mode"), Dr = /* @__PURE__ */ Symbol.for("react.profiler"), Ut = /* @__PURE__ */ Symbol.for("react.consumer"), Ht = /* @__PURE__ */ Symbol.for("react.context"), zt = /* @__PURE__ */ Symbol.for("react.forward_ref"), Nr = /* @__PURE__ */ Symbol.for("react.suspense"), xr = /* @__PURE__ */ Symbol.for(
|
|
327
327
|
"react.suspense_list"
|
|
328
|
-
),
|
|
328
|
+
), et = /* @__PURE__ */ Symbol.for("react.memo"), Ir = /* @__PURE__ */ Symbol.for("react.lazy"), Xo = /* @__PURE__ */ Symbol.for("react.offscreen"), Ko = /* @__PURE__ */ Symbol.for(
|
|
329
329
|
"react.client.reference"
|
|
330
|
-
), Jo =
|
|
330
|
+
), Jo = zt, Zo = et;
|
|
331
331
|
function Qo(e) {
|
|
332
|
-
return typeof e == "string" || typeof e == "function" || e === yr || e === Dr || e === Er || e === Nr || e === xr || e === Xo || typeof e == "object" && e !== null && (e.$$typeof === Ir || e.$$typeof ===
|
|
332
|
+
return typeof e == "string" || typeof e == "function" || e === yr || e === Dr || e === Er || e === Nr || e === xr || e === Xo || typeof e == "object" && e !== null && (e.$$typeof === Ir || e.$$typeof === et || e.$$typeof === Ht || e.$$typeof === Ut || e.$$typeof === zt || e.$$typeof === Ko || e.getModuleId !== void 0);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Rt(e) {
|
|
335
335
|
if (typeof e == "object" && e !== null) {
|
|
336
336
|
const { $$typeof: t } = e;
|
|
337
337
|
switch (t) {
|
|
338
|
-
case
|
|
338
|
+
case jo:
|
|
339
339
|
switch (e = e.type, e) {
|
|
340
340
|
case yr:
|
|
341
341
|
case Dr:
|
|
@@ -345,12 +345,12 @@ function Pt(e) {
|
|
|
345
345
|
return e;
|
|
346
346
|
default:
|
|
347
347
|
switch (e = e && e.$$typeof, e) {
|
|
348
|
-
case
|
|
349
|
-
case
|
|
348
|
+
case Ht:
|
|
349
|
+
case zt:
|
|
350
350
|
case Ir:
|
|
351
|
-
case
|
|
351
|
+
case et:
|
|
352
352
|
return e;
|
|
353
|
-
case
|
|
353
|
+
case Ut:
|
|
354
354
|
return e;
|
|
355
355
|
default:
|
|
356
356
|
return t;
|
|
@@ -362,27 +362,27 @@ function Pt(e) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function ei(e) {
|
|
365
|
-
return vr ?
|
|
365
|
+
return vr ? Rt(e) === Ut : Rt(e) === Ht;
|
|
366
366
|
}
|
|
367
367
|
function ti(e) {
|
|
368
|
-
return
|
|
368
|
+
return Rt(e) === et;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function qt(e) {
|
|
371
371
|
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
372
372
|
try {
|
|
373
373
|
throw new Error(e);
|
|
374
374
|
} catch {
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function mt(e, t) {
|
|
378
378
|
if (e)
|
|
379
|
-
(t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") ||
|
|
379
|
+
(t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") || qt(
|
|
380
380
|
`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`
|
|
381
381
|
));
|
|
382
382
|
else throw new Error(`Unexpected value for ${t} in connect.`);
|
|
383
383
|
}
|
|
384
384
|
function ni(e, t, n) {
|
|
385
|
-
|
|
385
|
+
mt(e, "mapStateToProps"), mt(t, "mapDispatchToProps"), mt(n, "mergeProps");
|
|
386
386
|
}
|
|
387
387
|
function ri(e, t, n, r, {
|
|
388
388
|
areStatesEqual: o,
|
|
@@ -390,7 +390,7 @@ function ri(e, t, n, r, {
|
|
|
390
390
|
areStatePropsEqual: s
|
|
391
391
|
}) {
|
|
392
392
|
let c = !1, a, d, p, l, u;
|
|
393
|
-
function
|
|
393
|
+
function g(v, I) {
|
|
394
394
|
return a = v, d = I, p = e(a, d), l = t(r, d), u = n(p, l, d), c = !0, u;
|
|
395
395
|
}
|
|
396
396
|
function m() {
|
|
@@ -413,7 +413,7 @@ function ri(e, t, n, r, {
|
|
|
413
413
|
return a = v, d = I, N && E ? m() : N ? b() : E ? h() : u;
|
|
414
414
|
}
|
|
415
415
|
return function(I, N) {
|
|
416
|
-
return c ? y(I, N) :
|
|
416
|
+
return c ? y(I, N) : g(I, N);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
function oi(e, {
|
|
@@ -443,11 +443,11 @@ function si(e) {
|
|
|
443
443
|
return t === n;
|
|
444
444
|
}
|
|
445
445
|
function Cr(e, t, n) {
|
|
446
|
-
si(e) ||
|
|
446
|
+
si(e) || qt(
|
|
447
447
|
`${n}() in ${t} must return a plain object. Instead received ${e}.`
|
|
448
448
|
);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Tt(e) {
|
|
451
451
|
return function(n) {
|
|
452
452
|
const r = e(n);
|
|
453
453
|
function o() {
|
|
@@ -456,7 +456,7 @@ function Rt(e) {
|
|
|
456
456
|
return o.dependsOnOwnProps = !1, o;
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function An(e) {
|
|
460
460
|
return e.dependsOnOwnProps ? !!e.dependsOnOwnProps : e.length !== 1;
|
|
461
461
|
}
|
|
462
462
|
function Or(e, t) {
|
|
@@ -465,13 +465,13 @@ function Or(e, t) {
|
|
|
465
465
|
return i.dependsOnOwnProps ? i.mapToProps(c, a) : i.mapToProps(c, void 0);
|
|
466
466
|
};
|
|
467
467
|
return i.dependsOnOwnProps = !0, i.mapToProps = function(c, a) {
|
|
468
|
-
i.mapToProps = e, i.dependsOnOwnProps =
|
|
468
|
+
i.mapToProps = e, i.dependsOnOwnProps = An(e);
|
|
469
469
|
let d = i(c, a);
|
|
470
|
-
return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps =
|
|
470
|
+
return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = An(d), d = i(c, a)), process.env.NODE_ENV !== "production" && Cr(d, o, t), d;
|
|
471
471
|
}, i;
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function jt(e, t) {
|
|
475
475
|
return (n, r) => {
|
|
476
476
|
throw new Error(
|
|
477
477
|
`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`
|
|
@@ -479,7 +479,7 @@ function zt(e, t) {
|
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
function ci(e) {
|
|
482
|
-
return e && typeof e == "object" ?
|
|
482
|
+
return e && typeof e == "object" ? Tt(
|
|
483
483
|
(t) => (
|
|
484
484
|
// @ts-ignore
|
|
485
485
|
ii(e, t)
|
|
@@ -487,7 +487,7 @@ function ci(e) {
|
|
|
487
487
|
) : e ? typeof e == "function" ? (
|
|
488
488
|
// @ts-ignore
|
|
489
489
|
Or(e, "mapDispatchToProps")
|
|
490
|
-
) :
|
|
490
|
+
) : jt(e, "mapDispatchToProps") : Tt((t) => ({
|
|
491
491
|
dispatch: t
|
|
492
492
|
}));
|
|
493
493
|
}
|
|
@@ -495,7 +495,7 @@ function ai(e) {
|
|
|
495
495
|
return e ? typeof e == "function" ? (
|
|
496
496
|
// @ts-ignore
|
|
497
497
|
Or(e, "mapStateToProps")
|
|
498
|
-
) :
|
|
498
|
+
) : jt(e, "mapStateToProps") : Tt(() => ({}));
|
|
499
499
|
}
|
|
500
500
|
function li(e, t, n) {
|
|
501
501
|
return { ...n, ...e, ...t };
|
|
@@ -510,7 +510,7 @@ function di(e) {
|
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
function ui(e) {
|
|
513
|
-
return e ? typeof e == "function" ? di(e) :
|
|
513
|
+
return e ? typeof e == "function" ? di(e) : jt(e, "mergeProps") : () => li;
|
|
514
514
|
}
|
|
515
515
|
function pi(e) {
|
|
516
516
|
e();
|
|
@@ -548,13 +548,13 @@ function fi() {
|
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var Pn = {
|
|
552
552
|
notify() {
|
|
553
553
|
},
|
|
554
554
|
get: () => []
|
|
555
555
|
};
|
|
556
|
-
function
|
|
557
|
-
let n, r =
|
|
556
|
+
function Sr(e, t) {
|
|
557
|
+
let n, r = Pn, o = 0, i = !1;
|
|
558
558
|
function s(b) {
|
|
559
559
|
p();
|
|
560
560
|
const h = r.subscribe(b);
|
|
@@ -576,12 +576,12 @@ function wr(e, t) {
|
|
|
576
576
|
o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r = fi());
|
|
577
577
|
}
|
|
578
578
|
function l() {
|
|
579
|
-
o--, n && o === 0 && (n(), n = void 0, r.clear(), r =
|
|
579
|
+
o--, n && o === 0 && (n(), n = void 0, r.clear(), r = Pn);
|
|
580
580
|
}
|
|
581
581
|
function u() {
|
|
582
582
|
i || (i = !0, p());
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function g() {
|
|
585
585
|
i && (i = !1, l());
|
|
586
586
|
}
|
|
587
587
|
const m = {
|
|
@@ -590,23 +590,23 @@ function wr(e, t) {
|
|
|
590
590
|
handleChangeWrapper: a,
|
|
591
591
|
isSubscribed: d,
|
|
592
592
|
trySubscribe: u,
|
|
593
|
-
tryUnsubscribe:
|
|
593
|
+
tryUnsubscribe: g,
|
|
594
594
|
getListeners: () => r
|
|
595
595
|
};
|
|
596
596
|
return m;
|
|
597
597
|
}
|
|
598
|
-
var gi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", mi = /* @__PURE__ */ gi(), hi = () => typeof navigator < "u" && navigator.product === "ReactNative", bi = /* @__PURE__ */ hi(), vi = () => mi || bi ?
|
|
599
|
-
function
|
|
598
|
+
var gi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", mi = /* @__PURE__ */ gi(), hi = () => typeof navigator < "u" && navigator.product === "ReactNative", bi = /* @__PURE__ */ hi(), vi = () => mi || bi ? S.useLayoutEffect : S.useEffect, je = /* @__PURE__ */ vi();
|
|
599
|
+
function Rn(e, t) {
|
|
600
600
|
return e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
if (
|
|
602
|
+
function ht(e, t) {
|
|
603
|
+
if (Rn(e, t)) return !0;
|
|
604
604
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
605
605
|
return !1;
|
|
606
606
|
const n = Object.keys(e), r = Object.keys(t);
|
|
607
607
|
if (n.length !== r.length) return !1;
|
|
608
608
|
for (let o = 0; o < n.length; o++)
|
|
609
|
-
if (!Object.prototype.hasOwnProperty.call(t, n[o]) || !
|
|
609
|
+
if (!Object.prototype.hasOwnProperty.call(t, n[o]) || !Rn(e[n[o]], t[n[o]]))
|
|
610
610
|
return !1;
|
|
611
611
|
return !0;
|
|
612
612
|
}
|
|
@@ -636,7 +636,7 @@ var yi = {
|
|
|
636
636
|
defaultProps: !0,
|
|
637
637
|
displayName: !0,
|
|
638
638
|
propTypes: !0
|
|
639
|
-
},
|
|
639
|
+
}, wr = {
|
|
640
640
|
$$typeof: !0,
|
|
641
641
|
compare: !0,
|
|
642
642
|
defaultProps: !0,
|
|
@@ -645,21 +645,21 @@ var yi = {
|
|
|
645
645
|
type: !0
|
|
646
646
|
}, Ni = {
|
|
647
647
|
[Jo]: Di,
|
|
648
|
-
[Zo]:
|
|
648
|
+
[Zo]: wr
|
|
649
649
|
};
|
|
650
|
-
function
|
|
651
|
-
return ti(e) ?
|
|
650
|
+
function Tn(e) {
|
|
651
|
+
return ti(e) ? wr : Ni[e.$$typeof] || yi;
|
|
652
652
|
}
|
|
653
|
-
var xi = Object.defineProperty, Ii = Object.getOwnPropertyNames,
|
|
654
|
-
function
|
|
653
|
+
var xi = Object.defineProperty, Ii = Object.getOwnPropertyNames, Bn = Object.getOwnPropertySymbols, Ci = Object.getOwnPropertyDescriptor, Oi = Object.getPrototypeOf, Vn = Object.prototype;
|
|
654
|
+
function Bt(e, t) {
|
|
655
655
|
if (typeof t != "string") {
|
|
656
|
-
if (
|
|
656
|
+
if (Vn) {
|
|
657
657
|
const i = Oi(t);
|
|
658
|
-
i && i !==
|
|
658
|
+
i && i !== Vn && Bt(e, i);
|
|
659
659
|
}
|
|
660
660
|
let n = Ii(t);
|
|
661
|
-
|
|
662
|
-
const r =
|
|
661
|
+
Bn && (n = n.concat(Bn(t)));
|
|
662
|
+
const r = Tn(e), o = Tn(t);
|
|
663
663
|
for (let i = 0; i < n.length; ++i) {
|
|
664
664
|
const s = n[i];
|
|
665
665
|
if (!Ei[s] && !(o && o[s]) && !(r && r[s])) {
|
|
@@ -673,26 +673,26 @@ function Tt(e, t) {
|
|
|
673
673
|
}
|
|
674
674
|
return e;
|
|
675
675
|
}
|
|
676
|
-
var
|
|
676
|
+
var bt = /* @__PURE__ */ Symbol.for("react-redux-context"), vt = typeof globalThis < "u" ? globalThis : (
|
|
677
677
|
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
678
678
|
{}
|
|
679
679
|
);
|
|
680
|
-
function
|
|
681
|
-
if (!
|
|
682
|
-
const e = bt
|
|
683
|
-
let t = e.get(
|
|
684
|
-
return t || (t =
|
|
680
|
+
function Si() {
|
|
681
|
+
if (!S.createContext) return {};
|
|
682
|
+
const e = vt[bt] ?? (vt[bt] = /* @__PURE__ */ new Map());
|
|
683
|
+
let t = e.get(S.createContext);
|
|
684
|
+
return t || (t = S.createContext(
|
|
685
685
|
null
|
|
686
|
-
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(
|
|
686
|
+
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(S.createContext, t)), t;
|
|
687
687
|
}
|
|
688
|
-
var
|
|
688
|
+
var _r = /* @__PURE__ */ Si(), wi = [null, null], _i = (e) => {
|
|
689
689
|
try {
|
|
690
690
|
return JSON.stringify(e);
|
|
691
691
|
} catch {
|
|
692
692
|
return String(e);
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
function
|
|
695
|
+
function Ai(e, t, n) {
|
|
696
696
|
je(() => e(...t), n);
|
|
697
697
|
}
|
|
698
698
|
function Pi(e, t, n, r, o, i) {
|
|
@@ -702,7 +702,7 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
702
702
|
if (!e) return () => {
|
|
703
703
|
};
|
|
704
704
|
let l = !1, u = null;
|
|
705
|
-
const
|
|
705
|
+
const g = () => {
|
|
706
706
|
if (l || !c.current)
|
|
707
707
|
return;
|
|
708
708
|
const b = t.getState();
|
|
@@ -717,7 +717,7 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
717
717
|
}
|
|
718
718
|
y || (u = null), h === i.current ? s.current || d() : (i.current = h, a.current = h, s.current = !0, p());
|
|
719
719
|
};
|
|
720
|
-
return n.onStateChange =
|
|
720
|
+
return n.onStateChange = g, n.trySubscribe(), g(), () => {
|
|
721
721
|
if (l = !0, n.tryUnsubscribe(), n.onStateChange = null, u)
|
|
722
722
|
throw u;
|
|
723
723
|
};
|
|
@@ -725,28 +725,28 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
725
725
|
function Ti(e, t) {
|
|
726
726
|
return e === t;
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var Ln = !1;
|
|
729
729
|
function Bi(e, t, n, {
|
|
730
730
|
// The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
|
|
731
731
|
// @ts-ignore
|
|
732
732
|
pure: r,
|
|
733
733
|
areStatesEqual: o = Ti,
|
|
734
|
-
areOwnPropsEqual: i =
|
|
735
|
-
areStatePropsEqual: s =
|
|
736
|
-
areMergedPropsEqual: c =
|
|
734
|
+
areOwnPropsEqual: i = ht,
|
|
735
|
+
areStatePropsEqual: s = ht,
|
|
736
|
+
areMergedPropsEqual: c = ht,
|
|
737
737
|
// use React's forwardRef to expose a ref of the wrapped component
|
|
738
738
|
forwardRef: a = !1,
|
|
739
739
|
// the context consumer to use
|
|
740
|
-
context: d =
|
|
740
|
+
context: d = _r
|
|
741
741
|
} = {}) {
|
|
742
|
-
process.env.NODE_ENV !== "production" && r !== void 0 && !
|
|
742
|
+
process.env.NODE_ENV !== "production" && r !== void 0 && !Ln && (Ln = !0, qt(
|
|
743
743
|
'The `pure` option has been removed. `connect` is now always a "pure/memoized" component'
|
|
744
744
|
));
|
|
745
|
-
const p = d, l = ai(e), u = ci(t),
|
|
745
|
+
const p = d, l = ai(e), u = ci(t), g = ui(n), m = !!e;
|
|
746
746
|
return (h) => {
|
|
747
747
|
if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ Qo(h))
|
|
748
748
|
throw new Error(
|
|
749
|
-
`You must pass a component to the function returned by connect. Instead received ${
|
|
749
|
+
`You must pass a component to the function returned by connect. Instead received ${_i(
|
|
750
750
|
h
|
|
751
751
|
)}`
|
|
752
752
|
);
|
|
@@ -758,22 +758,22 @@ function Bi(e, t, n, {
|
|
|
758
758
|
// @ts-ignore
|
|
759
759
|
initMapStateToProps: l,
|
|
760
760
|
initMapDispatchToProps: u,
|
|
761
|
-
initMergeProps:
|
|
761
|
+
initMergeProps: g,
|
|
762
762
|
areStatesEqual: o,
|
|
763
763
|
areStatePropsEqual: s,
|
|
764
764
|
areOwnPropsEqual: i,
|
|
765
765
|
areMergedPropsEqual: c
|
|
766
766
|
};
|
|
767
|
-
function N(
|
|
768
|
-
const [P, U, T] =
|
|
769
|
-
const { reactReduxForwardedRef: z, ...ue } =
|
|
770
|
-
return [
|
|
771
|
-
}, [
|
|
767
|
+
function N(_) {
|
|
768
|
+
const [P, U, T] = S.useMemo(() => {
|
|
769
|
+
const { reactReduxForwardedRef: z, ...ue } = _;
|
|
770
|
+
return [_.context, z, ue];
|
|
771
|
+
}, [_]), H = S.useMemo(() => {
|
|
772
772
|
let z = p;
|
|
773
773
|
if (P != null && P.Consumer && process.env.NODE_ENV !== "production") {
|
|
774
774
|
if (!/* @__PURE__ */ ei(
|
|
775
775
|
// @ts-ignore
|
|
776
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ S.createElement(P.Consumer, null)
|
|
777
777
|
))
|
|
778
778
|
throw new Error(
|
|
779
779
|
"You must pass a valid React context consumer as `props.context`"
|
|
@@ -781,98 +781,98 @@ function Bi(e, t, n, {
|
|
|
781
781
|
z = P;
|
|
782
782
|
}
|
|
783
783
|
return z;
|
|
784
|
-
}, [P, p]), M =
|
|
784
|
+
}, [P, p]), M = S.useContext(H), Q = !!_.store && !!_.store.getState && !!_.store.dispatch, de = !!M && !!M.store;
|
|
785
785
|
if (process.env.NODE_ENV !== "production" && !Q && !de)
|
|
786
786
|
throw new Error(
|
|
787
787
|
`Could not find "store" in the context of "${v}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${v} in connect options.`
|
|
788
788
|
);
|
|
789
|
-
const ee = Q ?
|
|
790
|
-
if (!m) return
|
|
791
|
-
const z =
|
|
789
|
+
const ee = Q ? _.store : M.store, ke = de ? M.getServerState : ee.getState, ct = S.useMemo(() => oi(ee.dispatch, I), [ee]), [be, yn] = S.useMemo(() => {
|
|
790
|
+
if (!m) return wi;
|
|
791
|
+
const z = Sr(
|
|
792
792
|
ee,
|
|
793
793
|
Q ? void 0 : M.subscription
|
|
794
794
|
), ue = z.notifyNestedSubs.bind(z);
|
|
795
795
|
return [z, ue];
|
|
796
|
-
}, [ee, Q, M]),
|
|
796
|
+
}, [ee, Q, M]), En = S.useMemo(() => Q ? M : {
|
|
797
797
|
...M,
|
|
798
798
|
subscription: be
|
|
799
|
-
}, [Q, M, be]),
|
|
799
|
+
}, [Q, M, be]), at = S.useRef(void 0), lt = S.useRef(T), ve = S.useRef(void 0), Dn = S.useRef(!1), dt = S.useRef(!1), ut = S.useRef(
|
|
800
800
|
void 0
|
|
801
801
|
);
|
|
802
|
-
je(() => (
|
|
803
|
-
|
|
802
|
+
je(() => (dt.current = !0, () => {
|
|
803
|
+
dt.current = !1;
|
|
804
804
|
}), []);
|
|
805
|
-
const
|
|
805
|
+
const Nn = S.useMemo(() => () => ve.current && T === lt.current ? ve.current : ct(ee.getState(), T), [ee, T]), Bo = S.useMemo(() => (ue) => be ? Ri(
|
|
806
806
|
m,
|
|
807
807
|
ee,
|
|
808
808
|
be,
|
|
809
809
|
// @ts-ignore
|
|
810
|
-
st,
|
|
811
|
-
at,
|
|
812
810
|
ct,
|
|
813
|
-
yn,
|
|
814
811
|
lt,
|
|
812
|
+
at,
|
|
813
|
+
Dn,
|
|
814
|
+
dt,
|
|
815
815
|
ve,
|
|
816
|
-
|
|
816
|
+
yn,
|
|
817
817
|
ue
|
|
818
818
|
) : () => {
|
|
819
819
|
}, [be]);
|
|
820
|
-
|
|
820
|
+
Ai(Pi, [
|
|
821
|
+
lt,
|
|
821
822
|
at,
|
|
822
|
-
|
|
823
|
-
yn,
|
|
823
|
+
Dn,
|
|
824
824
|
T,
|
|
825
825
|
ve,
|
|
826
|
-
|
|
826
|
+
yn
|
|
827
827
|
]);
|
|
828
|
-
let
|
|
828
|
+
let Fe;
|
|
829
829
|
try {
|
|
830
|
-
|
|
830
|
+
Fe = S.useSyncExternalStore(
|
|
831
831
|
// TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
|
|
832
832
|
Bo,
|
|
833
833
|
// TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
|
|
834
834
|
// TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
|
|
835
|
-
|
|
836
|
-
|
|
835
|
+
Nn,
|
|
836
|
+
ke ? () => ct(ke(), T) : Nn
|
|
837
837
|
);
|
|
838
838
|
} catch (z) {
|
|
839
|
-
throw
|
|
839
|
+
throw ut.current && (z.message += `
|
|
840
840
|
The error may be correlated with this previous error:
|
|
841
|
-
${
|
|
841
|
+
${ut.current.stack}
|
|
842
842
|
|
|
843
843
|
`), z;
|
|
844
844
|
}
|
|
845
845
|
je(() => {
|
|
846
|
-
|
|
846
|
+
ut.current = void 0, ve.current = void 0, at.current = Fe;
|
|
847
847
|
});
|
|
848
|
-
const
|
|
848
|
+
const pt = S.useMemo(() => (
|
|
849
849
|
// @ts-ignore
|
|
850
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ S.createElement(
|
|
851
851
|
h,
|
|
852
852
|
{
|
|
853
|
-
...
|
|
853
|
+
...Fe,
|
|
854
854
|
ref: U
|
|
855
855
|
}
|
|
856
856
|
)
|
|
857
|
-
), [U, h,
|
|
858
|
-
return
|
|
857
|
+
), [U, h, Fe]);
|
|
858
|
+
return S.useMemo(() => m ? /* @__PURE__ */ S.createElement(H.Provider, { value: En }, pt) : pt, [H, pt, En]);
|
|
859
859
|
}
|
|
860
|
-
const x =
|
|
860
|
+
const x = S.memo(N);
|
|
861
861
|
if (x.WrappedComponent = h, x.displayName = N.displayName = v, a) {
|
|
862
|
-
const P =
|
|
862
|
+
const P = S.forwardRef(
|
|
863
863
|
function(T, H) {
|
|
864
|
-
return /* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ S.createElement(x, { ...T, reactReduxForwardedRef: H });
|
|
865
865
|
}
|
|
866
866
|
);
|
|
867
|
-
return P.displayName = v, P.WrappedComponent = h, /* @__PURE__ */
|
|
867
|
+
return P.displayName = v, P.WrappedComponent = h, /* @__PURE__ */ Bt(P, h);
|
|
868
868
|
}
|
|
869
|
-
return /* @__PURE__ */
|
|
869
|
+
return /* @__PURE__ */ Bt(x, h);
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
|
-
var
|
|
872
|
+
var Ar = Bi;
|
|
873
873
|
function Vi(e) {
|
|
874
|
-
const { children: t, context: n, serverState: r, store: o } = e, i =
|
|
875
|
-
const a =
|
|
874
|
+
const { children: t, context: n, serverState: r, store: o } = e, i = S.useMemo(() => {
|
|
875
|
+
const a = Sr(o), d = {
|
|
876
876
|
store: o,
|
|
877
877
|
subscription: a,
|
|
878
878
|
getServerState: r ? () => r : void 0
|
|
@@ -886,21 +886,21 @@ function Vi(e) {
|
|
|
886
886
|
identityFunctionCheck: p
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
-
}, [o, r]), s =
|
|
889
|
+
}, [o, r]), s = S.useMemo(() => o.getState(), [o]);
|
|
890
890
|
je(() => {
|
|
891
891
|
const { subscription: a } = i;
|
|
892
892
|
return a.onStateChange = a.notifyNestedSubs, a.trySubscribe(), s !== o.getState() && a.notifyNestedSubs(), () => {
|
|
893
893
|
a.tryUnsubscribe(), a.onStateChange = void 0;
|
|
894
894
|
};
|
|
895
895
|
}, [i, s]);
|
|
896
|
-
const c = n ||
|
|
897
|
-
return /* @__PURE__ */
|
|
896
|
+
const c = n || _r;
|
|
897
|
+
return /* @__PURE__ */ S.createElement(c.Provider, { value: i }, t);
|
|
898
898
|
}
|
|
899
|
-
var Li = Vi, Mi = process.env.NODE_ENV === "production",
|
|
900
|
-
function
|
|
899
|
+
var Li = Vi, Mi = process.env.NODE_ENV === "production", yt = "Invariant failed";
|
|
900
|
+
function Mn(e, t) {
|
|
901
901
|
if (Mi)
|
|
902
|
-
throw new Error(
|
|
903
|
-
var n = typeof t == "function" ? t() : t, r = n ? "".concat(
|
|
902
|
+
throw new Error(yt);
|
|
903
|
+
var n = typeof t == "function" ? t() : t, r = n ? "".concat(yt, ": ").concat(n) : yt;
|
|
904
904
|
throw new Error(r);
|
|
905
905
|
}
|
|
906
906
|
var Z = function(t) {
|
|
@@ -919,14 +919,14 @@ var Z = function(t) {
|
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
return a;
|
|
922
|
-
},
|
|
922
|
+
}, Yt = function(t, n) {
|
|
923
923
|
return {
|
|
924
924
|
top: t.top - n.top,
|
|
925
925
|
left: t.left - n.left,
|
|
926
926
|
bottom: t.bottom + n.bottom,
|
|
927
927
|
right: t.right + n.right
|
|
928
928
|
};
|
|
929
|
-
},
|
|
929
|
+
}, $n = function(t, n) {
|
|
930
930
|
return {
|
|
931
931
|
top: t.top + n.top,
|
|
932
932
|
left: t.left + n.left,
|
|
@@ -940,13 +940,13 @@ var Z = function(t) {
|
|
|
940
940
|
bottom: t.bottom + n.y,
|
|
941
941
|
right: t.right + n.x
|
|
942
942
|
};
|
|
943
|
-
},
|
|
943
|
+
}, Et = {
|
|
944
944
|
top: 0,
|
|
945
945
|
right: 0,
|
|
946
946
|
bottom: 0,
|
|
947
947
|
left: 0
|
|
948
|
-
},
|
|
949
|
-
var n = t.borderBox, r = t.margin, o = r === void 0 ?
|
|
948
|
+
}, Xt = function(t) {
|
|
949
|
+
var n = t.borderBox, r = t.margin, o = r === void 0 ? Et : r, i = t.border, s = i === void 0 ? Et : i, c = t.padding, a = c === void 0 ? Et : c, d = Z(Yt(n, o)), p = Z($n(n, s)), l = Z($n(p, a));
|
|
950
950
|
return {
|
|
951
951
|
marginBox: d,
|
|
952
952
|
borderBox: Z(n),
|
|
@@ -961,22 +961,22 @@ var Z = function(t) {
|
|
|
961
961
|
if (r !== "px")
|
|
962
962
|
return 0;
|
|
963
963
|
var o = Number(n);
|
|
964
|
-
return isNaN(o) && (process.env.NODE_ENV !== "production" ?
|
|
964
|
+
return isNaN(o) && (process.env.NODE_ENV !== "production" ? Mn(!1, "Could not parse value [raw: " + t + ", without suffix: " + n + "]") : Mn()), o;
|
|
965
965
|
}, Gi = function() {
|
|
966
966
|
return {
|
|
967
967
|
x: window.pageXOffset,
|
|
968
968
|
y: window.pageYOffset
|
|
969
969
|
};
|
|
970
|
-
},
|
|
970
|
+
}, Ye = function(t, n) {
|
|
971
971
|
var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c = $i(r, n);
|
|
972
|
-
return
|
|
972
|
+
return Xt({
|
|
973
973
|
borderBox: c,
|
|
974
974
|
border: o,
|
|
975
975
|
margin: i,
|
|
976
976
|
padding: s
|
|
977
977
|
});
|
|
978
|
-
},
|
|
979
|
-
return n === void 0 && (n = Gi()),
|
|
978
|
+
}, Xe = function(t, n) {
|
|
979
|
+
return n === void 0 && (n = Gi()), Ye(t, n);
|
|
980
980
|
}, Pr = function(t, n) {
|
|
981
981
|
var r = {
|
|
982
982
|
top: X(n.marginTop),
|
|
@@ -994,7 +994,7 @@ var Z = function(t) {
|
|
|
994
994
|
bottom: X(n.borderBottomWidth),
|
|
995
995
|
left: X(n.borderLeftWidth)
|
|
996
996
|
};
|
|
997
|
-
return
|
|
997
|
+
return Xt({
|
|
998
998
|
borderBox: t,
|
|
999
999
|
margin: r,
|
|
1000
1000
|
padding: o,
|
|
@@ -1015,29 +1015,29 @@ var Z = function(t) {
|
|
|
1015
1015
|
r && (cancelAnimationFrame(r), r = null);
|
|
1016
1016
|
}, o;
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1018
|
+
function Ke() {
|
|
1019
|
+
return Ke = Object.assign ? Object.assign.bind() : function(e) {
|
|
1020
1020
|
for (var t = 1; t < arguments.length; t++) {
|
|
1021
1021
|
var n = arguments[t];
|
|
1022
1022
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1023
1023
|
}
|
|
1024
1024
|
return e;
|
|
1025
|
-
},
|
|
1025
|
+
}, Ke.apply(null, arguments);
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1027
|
+
const ki = process.env.NODE_ENV === "production", Fi = /[ \t]{2,}/g, Wi = /^[ \t]*/gm, Gn = (e) => e.replace(Fi, " ").replace(Wi, "").trim(), Ui = (e) => Gn(`
|
|
1028
1028
|
%c@hello-pangea/dnd
|
|
1029
1029
|
|
|
1030
|
-
%c${
|
|
1030
|
+
%c${Gn(e)}
|
|
1031
1031
|
|
|
1032
1032
|
%c👷 This is a development only message. It will be removed in production builds.
|
|
1033
1033
|
`), Hi = (e) => [Ui(e), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"], zi = "__@hello-pangea/dnd-disable-dev-warnings";
|
|
1034
1034
|
function Tr(e, t) {
|
|
1035
|
-
|
|
1035
|
+
ki || typeof window < "u" && window[zi] || console[e](...Hi(t));
|
|
1036
1036
|
}
|
|
1037
|
-
const R = Tr.bind(null, "warn"),
|
|
1037
|
+
const R = Tr.bind(null, "warn"), Vt = Tr.bind(null, "error");
|
|
1038
1038
|
function re() {
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function qi(e, t) {
|
|
1041
1041
|
return {
|
|
1042
1042
|
...e,
|
|
1043
1043
|
...t
|
|
@@ -1045,7 +1045,7 @@ function ji(e, t) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
function K(e, t, n) {
|
|
1047
1047
|
const r = t.map((o) => {
|
|
1048
|
-
const i =
|
|
1048
|
+
const i = qi(n, o.options);
|
|
1049
1049
|
return e.addEventListener(o.eventName, o.fn, i), function() {
|
|
1050
1050
|
e.removeEventListener(o.eventName, o.fn, i);
|
|
1051
1051
|
};
|
|
@@ -1056,14 +1056,14 @@ function K(e, t, n) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const ji = process.env.NODE_ENV === "production", kn = "Invariant failed";
|
|
1060
1060
|
class Ce extends Error {
|
|
1061
1061
|
}
|
|
1062
1062
|
Ce.prototype.toString = function() {
|
|
1063
1063
|
return this.message;
|
|
1064
1064
|
};
|
|
1065
|
-
function
|
|
1066
|
-
throw
|
|
1065
|
+
function f(e, t) {
|
|
1066
|
+
throw ji ? new Ce(kn) : new Ce(`${kn}: ${t || ""}`);
|
|
1067
1067
|
}
|
|
1068
1068
|
class Yi extends L.Component {
|
|
1069
1069
|
constructor(...t) {
|
|
@@ -1074,7 +1074,7 @@ class Yi extends L.Component {
|
|
|
1074
1074
|
The active drag has been aborted.
|
|
1075
1075
|
`));
|
|
1076
1076
|
const o = n.error;
|
|
1077
|
-
o instanceof Ce && (n.preventDefault(), process.env.NODE_ENV !== "production" &&
|
|
1077
|
+
o instanceof Ce && (n.preventDefault(), process.env.NODE_ENV !== "production" && Vt(o.message));
|
|
1078
1078
|
}, this.getCallbacks = () => {
|
|
1079
1079
|
if (!this.callbacks)
|
|
1080
1080
|
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
|
|
@@ -1091,7 +1091,7 @@ class Yi extends L.Component {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
componentDidCatch(t) {
|
|
1093
1093
|
if (t instanceof Ce) {
|
|
1094
|
-
process.env.NODE_ENV !== "production" &&
|
|
1094
|
+
process.env.NODE_ENV !== "production" && Vt(t.message), this.setState({});
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
throw t;
|
|
@@ -1107,10 +1107,10 @@ const Xi = `
|
|
|
1107
1107
|
Press space bar to start a drag.
|
|
1108
1108
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
1109
1109
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
1110
|
-
`,
|
|
1111
|
-
You have lifted an item in position ${
|
|
1110
|
+
`, Je = (e) => e + 1, Ki = (e) => `
|
|
1111
|
+
You have lifted an item in position ${Je(e.source.index)}
|
|
1112
1112
|
`, Br = (e, t) => {
|
|
1113
|
-
const n = e.droppableId === t.droppableId, r =
|
|
1113
|
+
const n = e.droppableId === t.droppableId, r = Je(e.index), o = Je(t.index);
|
|
1114
1114
|
return n ? `
|
|
1115
1115
|
You have moved the item from position ${r}
|
|
1116
1116
|
to position ${o}
|
|
@@ -1133,14 +1133,14 @@ const Xi = `
|
|
|
1133
1133
|
return Br(e.source, t);
|
|
1134
1134
|
const n = e.combine;
|
|
1135
1135
|
return n ? Vr(e.draggableId, e.source, n) : "You are over an area that cannot be dropped on";
|
|
1136
|
-
},
|
|
1136
|
+
}, Fn = (e) => `
|
|
1137
1137
|
The item has returned to its starting position
|
|
1138
|
-
of ${
|
|
1138
|
+
of ${Je(e.index)}
|
|
1139
1139
|
`, Zi = (e) => {
|
|
1140
1140
|
if (e.reason === "CANCEL")
|
|
1141
1141
|
return `
|
|
1142
1142
|
Movement cancelled.
|
|
1143
|
-
${
|
|
1143
|
+
${Fn(e.source)}
|
|
1144
1144
|
`;
|
|
1145
1145
|
const t = e.destination, n = e.combine;
|
|
1146
1146
|
return t ? `
|
|
@@ -1151,7 +1151,7 @@ const Xi = `
|
|
|
1151
1151
|
${Vr(e.draggableId, e.source, n)}
|
|
1152
1152
|
` : `
|
|
1153
1153
|
The item has been dropped while not over a drop area.
|
|
1154
|
-
${
|
|
1154
|
+
${Fn(e.source)}
|
|
1155
1155
|
`;
|
|
1156
1156
|
}, ze = {
|
|
1157
1157
|
dragHandleUsageInstructions: Xi,
|
|
@@ -1188,10 +1188,10 @@ function D(e, t) {
|
|
|
1188
1188
|
const G = {
|
|
1189
1189
|
x: 0,
|
|
1190
1190
|
y: 0
|
|
1191
|
-
},
|
|
1191
|
+
}, k = (e, t) => ({
|
|
1192
1192
|
x: e.x + t.x,
|
|
1193
1193
|
y: e.y + t.y
|
|
1194
|
-
}),
|
|
1194
|
+
}), q = (e, t) => ({
|
|
1195
1195
|
x: e.x - t.x,
|
|
1196
1196
|
y: e.y - t.y
|
|
1197
1197
|
}), oe = (e, t) => e.x === t.x && e.y === t.y, me = (e) => ({
|
|
@@ -1203,7 +1203,7 @@ const G = {
|
|
|
1203
1203
|
} : {
|
|
1204
1204
|
x: n,
|
|
1205
1205
|
y: t
|
|
1206
|
-
}, Oe = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2),
|
|
1206
|
+
}, Oe = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2), Wn = (e, t) => Math.min(...t.map((n) => Oe(e, n))), Mr = (e) => (t) => ({
|
|
1207
1207
|
x: e(t.x),
|
|
1208
1208
|
y: e(t.y)
|
|
1209
1209
|
});
|
|
@@ -1221,7 +1221,7 @@ const Be = (e, t) => ({
|
|
|
1221
1221
|
left: e.left + t.x,
|
|
1222
1222
|
bottom: e.bottom + t.y,
|
|
1223
1223
|
right: e.right + t.x
|
|
1224
|
-
}),
|
|
1224
|
+
}), Un = (e) => [{
|
|
1225
1225
|
x: e.left,
|
|
1226
1226
|
y: e.top
|
|
1227
1227
|
}, {
|
|
@@ -1254,9 +1254,9 @@ var pe = ({
|
|
|
1254
1254
|
withPlaceholder: t,
|
|
1255
1255
|
active: s
|
|
1256
1256
|
};
|
|
1257
|
-
},
|
|
1258
|
-
e.frame || (process.env.NODE_ENV,
|
|
1259
|
-
const n = e.frame, r =
|
|
1257
|
+
}, Kt = (e, t) => {
|
|
1258
|
+
e.frame || (process.env.NODE_ENV, f());
|
|
1259
|
+
const n = e.frame, r = q(t, n.scroll.initial), o = me(r), i = {
|
|
1260
1260
|
...n,
|
|
1261
1261
|
scroll: {
|
|
1262
1262
|
initial: n.scroll.initial,
|
|
@@ -1295,28 +1295,28 @@ function $(e, t = Lr) {
|
|
|
1295
1295
|
n = null;
|
|
1296
1296
|
}, r;
|
|
1297
1297
|
}
|
|
1298
|
-
const $r = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})),
|
|
1298
|
+
const $r = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), tt = $((e) => Object.values(e)), is = $((e) => Object.values(e));
|
|
1299
1299
|
var le = $((e, t) => is(t).filter((r) => e === r.descriptor.droppableId).sort((r, o) => r.descriptor.index - o.descriptor.index));
|
|
1300
|
-
function
|
|
1300
|
+
function Jt(e) {
|
|
1301
1301
|
return e.at && e.at.type === "REORDER" ? e.at.destination : null;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function nt(e) {
|
|
1304
1304
|
return e.at && e.at.type === "COMBINE" ? e.at.combine : null;
|
|
1305
1305
|
}
|
|
1306
|
-
var
|
|
1306
|
+
var rt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss = ({
|
|
1307
1307
|
isMovingForward: e,
|
|
1308
1308
|
draggable: t,
|
|
1309
1309
|
destination: n,
|
|
1310
1310
|
insideDestination: r,
|
|
1311
1311
|
previousImpact: o
|
|
1312
1312
|
}) => {
|
|
1313
|
-
if (!n.isCombineEnabled || !
|
|
1313
|
+
if (!n.isCombineEnabled || !Jt(o))
|
|
1314
1314
|
return null;
|
|
1315
|
-
function s(
|
|
1315
|
+
function s(g) {
|
|
1316
1316
|
const m = {
|
|
1317
1317
|
type: "COMBINE",
|
|
1318
1318
|
combine: {
|
|
1319
|
-
draggableId:
|
|
1319
|
+
draggableId: g,
|
|
1320
1320
|
droppableId: n.descriptor.id
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
@@ -1328,34 +1328,34 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
|
|
|
1328
1328
|
const c = o.displaced.all, a = c.length ? c[0] : null;
|
|
1329
1329
|
if (e)
|
|
1330
1330
|
return a ? s(a) : null;
|
|
1331
|
-
const d =
|
|
1331
|
+
const d = rt(t, r);
|
|
1332
1332
|
if (!a) {
|
|
1333
1333
|
if (!d.length)
|
|
1334
1334
|
return null;
|
|
1335
|
-
const
|
|
1336
|
-
return s(
|
|
1335
|
+
const g = d[d.length - 1];
|
|
1336
|
+
return s(g.descriptor.id);
|
|
1337
1337
|
}
|
|
1338
|
-
const p = d.findIndex((
|
|
1339
|
-
p === -1 && (process.env.NODE_ENV !== "production" ?
|
|
1338
|
+
const p = d.findIndex((g) => g.descriptor.id === a);
|
|
1339
|
+
p === -1 && (process.env.NODE_ENV !== "production" ? f(!1, "Could not find displaced item in set") : f());
|
|
1340
1340
|
const l = p - 1;
|
|
1341
1341
|
if (l < 0)
|
|
1342
1342
|
return null;
|
|
1343
1343
|
const u = d[l];
|
|
1344
1344
|
return s(u.descriptor.id);
|
|
1345
1345
|
}, he = (e, t) => e.descriptor.droppableId === t.descriptor.id;
|
|
1346
|
-
const
|
|
1346
|
+
const kr = {
|
|
1347
1347
|
point: G,
|
|
1348
1348
|
value: 0
|
|
1349
|
-
},
|
|
1349
|
+
}, Se = {
|
|
1350
1350
|
invisible: {},
|
|
1351
1351
|
visible: {},
|
|
1352
1352
|
all: []
|
|
1353
1353
|
}, cs = {
|
|
1354
|
-
displaced:
|
|
1355
|
-
displacedBy:
|
|
1354
|
+
displaced: Se,
|
|
1355
|
+
displacedBy: kr,
|
|
1356
1356
|
at: null
|
|
1357
1357
|
};
|
|
1358
|
-
var J = (e, t) => (n) => e <= n && n <= t,
|
|
1358
|
+
var J = (e, t) => (n) => e <= n && n <= t, Fr = (e) => {
|
|
1359
1359
|
const t = J(e.top, e.bottom), n = J(e.left, e.right);
|
|
1360
1360
|
return (r) => {
|
|
1361
1361
|
if (t(r.top) && t(r.bottom) && n(r.left) && n(r.right))
|
|
@@ -1370,7 +1370,7 @@ var J = (e, t) => (n) => e <= n && n <= t, kr = (e) => {
|
|
|
1370
1370
|
const t = J(e.top, e.bottom), n = J(e.left, e.right);
|
|
1371
1371
|
return (r) => t(r.top) && t(r.bottom) && n(r.left) && n(r.right);
|
|
1372
1372
|
};
|
|
1373
|
-
const
|
|
1373
|
+
const Zt = {
|
|
1374
1374
|
direction: "vertical",
|
|
1375
1375
|
line: "y",
|
|
1376
1376
|
crossAxisLine: "x",
|
|
@@ -1393,12 +1393,12 @@ const Kt = {
|
|
|
1393
1393
|
};
|
|
1394
1394
|
var ls = (e) => (t) => {
|
|
1395
1395
|
const n = J(t.top, t.bottom), r = J(t.left, t.right);
|
|
1396
|
-
return (o) => e ===
|
|
1396
|
+
return (o) => e === Zt ? n(o.top) && n(o.bottom) : r(o.left) && r(o.right);
|
|
1397
1397
|
};
|
|
1398
1398
|
const ds = (e, t) => {
|
|
1399
1399
|
const n = t.frame ? t.frame.scroll.diff.displacement : G;
|
|
1400
1400
|
return Be(e, n);
|
|
1401
|
-
}, us = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ps = (e, t, n) => n(t)(e),
|
|
1401
|
+
}, us = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ps = (e, t, n) => n(t)(e), Qt = ({
|
|
1402
1402
|
target: e,
|
|
1403
1403
|
destination: t,
|
|
1404
1404
|
viewport: n,
|
|
@@ -1407,13 +1407,13 @@ const ds = (e, t) => {
|
|
|
1407
1407
|
}) => {
|
|
1408
1408
|
const i = r ? ds(e, t) : e;
|
|
1409
1409
|
return us(i, t, o) && ps(i, n, o);
|
|
1410
|
-
}, fs = (e) =>
|
|
1410
|
+
}, fs = (e) => Qt({
|
|
1411
1411
|
...e,
|
|
1412
|
-
isVisibleThroughFrameFn:
|
|
1413
|
-
}), Ur = (e) =>
|
|
1412
|
+
isVisibleThroughFrameFn: Fr
|
|
1413
|
+
}), Ur = (e) => Qt({
|
|
1414
1414
|
...e,
|
|
1415
1415
|
isVisibleThroughFrameFn: as
|
|
1416
|
-
}), gs = (e) =>
|
|
1416
|
+
}), gs = (e) => Qt({
|
|
1417
1417
|
...e,
|
|
1418
1418
|
isVisibleThroughFrameFn: ls(e.destination.axis)
|
|
1419
1419
|
}), ms = (e, t, n) => {
|
|
@@ -1437,9 +1437,9 @@ function hs(e, t) {
|
|
|
1437
1437
|
bottom: 0,
|
|
1438
1438
|
left: t.point.x
|
|
1439
1439
|
};
|
|
1440
|
-
return Z(
|
|
1440
|
+
return Z(Yt(n, r));
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function we({
|
|
1443
1443
|
afterDragging: e,
|
|
1444
1444
|
destination: t,
|
|
1445
1445
|
displacedBy: n,
|
|
@@ -1456,11 +1456,11 @@ function Se({
|
|
|
1456
1456
|
withDroppableDisplacement: !0
|
|
1457
1457
|
}))
|
|
1458
1458
|
return c.invisible[a.descriptor.id] = !0, c;
|
|
1459
|
-
const u = ms(p, i, o),
|
|
1459
|
+
const u = ms(p, i, o), g = {
|
|
1460
1460
|
draggableId: p,
|
|
1461
1461
|
shouldAnimate: u
|
|
1462
1462
|
};
|
|
1463
|
-
return c.visible[p] =
|
|
1463
|
+
return c.visible[p] = g, c;
|
|
1464
1464
|
}, {
|
|
1465
1465
|
all: [],
|
|
1466
1466
|
visible: {},
|
|
@@ -1473,7 +1473,7 @@ function bs(e, t) {
|
|
|
1473
1473
|
const n = e[e.length - 1].descriptor.index;
|
|
1474
1474
|
return t.inHomeList ? n : n + 1;
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Hn({
|
|
1477
1477
|
insideDestination: e,
|
|
1478
1478
|
inHomeList: t,
|
|
1479
1479
|
displacedBy: n,
|
|
@@ -1483,7 +1483,7 @@ function Wn({
|
|
|
1483
1483
|
inHomeList: t
|
|
1484
1484
|
});
|
|
1485
1485
|
return {
|
|
1486
|
-
displaced:
|
|
1486
|
+
displaced: Se,
|
|
1487
1487
|
displacedBy: n,
|
|
1488
1488
|
at: {
|
|
1489
1489
|
type: "REORDER",
|
|
@@ -1494,7 +1494,7 @@ function Wn({
|
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Ze({
|
|
1498
1498
|
draggable: e,
|
|
1499
1499
|
insideDestination: t,
|
|
1500
1500
|
destination: n,
|
|
@@ -1506,7 +1506,7 @@ function Je({
|
|
|
1506
1506
|
}) {
|
|
1507
1507
|
const a = he(e, n);
|
|
1508
1508
|
if (s == null)
|
|
1509
|
-
return
|
|
1509
|
+
return Hn({
|
|
1510
1510
|
insideDestination: t,
|
|
1511
1511
|
inHomeList: a,
|
|
1512
1512
|
displacedBy: o,
|
|
@@ -1514,15 +1514,15 @@ function Je({
|
|
|
1514
1514
|
});
|
|
1515
1515
|
const d = t.find((m) => m.descriptor.index === s);
|
|
1516
1516
|
if (!d)
|
|
1517
|
-
return
|
|
1517
|
+
return Hn({
|
|
1518
1518
|
insideDestination: t,
|
|
1519
1519
|
inHomeList: a,
|
|
1520
1520
|
displacedBy: o,
|
|
1521
1521
|
destination: n
|
|
1522
1522
|
});
|
|
1523
|
-
const p =
|
|
1523
|
+
const p = rt(e, t), l = t.indexOf(d), u = p.slice(l);
|
|
1524
1524
|
return {
|
|
1525
|
-
displaced:
|
|
1525
|
+
displaced: we({
|
|
1526
1526
|
afterDragging: u,
|
|
1527
1527
|
destination: n,
|
|
1528
1528
|
displacedBy: o,
|
|
@@ -1576,14 +1576,14 @@ var vs = ({
|
|
|
1576
1576
|
afterCritical: a
|
|
1577
1577
|
}) => {
|
|
1578
1578
|
const d = s.at;
|
|
1579
|
-
if (d || (process.env.NODE_ENV !== "production" ?
|
|
1579
|
+
if (d || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot move in direction without previous impact location") : f()), d.type === "REORDER") {
|
|
1580
1580
|
const l = ys({
|
|
1581
1581
|
isMovingForward: e,
|
|
1582
1582
|
isInHomeList: t,
|
|
1583
1583
|
location: d.destination,
|
|
1584
1584
|
insideDestination: i
|
|
1585
1585
|
});
|
|
1586
|
-
return l == null ? null :
|
|
1586
|
+
return l == null ? null : Ze({
|
|
1587
1587
|
draggable: n,
|
|
1588
1588
|
insideDestination: i,
|
|
1589
1589
|
destination: o,
|
|
@@ -1601,7 +1601,7 @@ var vs = ({
|
|
|
1601
1601
|
combine: d.combine,
|
|
1602
1602
|
afterCritical: a
|
|
1603
1603
|
});
|
|
1604
|
-
return p == null ? null :
|
|
1604
|
+
return p == null ? null : Ze({
|
|
1605
1605
|
draggable: n,
|
|
1606
1606
|
insideDestination: i,
|
|
1607
1607
|
destination: o,
|
|
@@ -1623,29 +1623,29 @@ var vs = ({
|
|
|
1623
1623
|
impact: t,
|
|
1624
1624
|
draggables: n
|
|
1625
1625
|
}) => {
|
|
1626
|
-
const r =
|
|
1627
|
-
r || (process.env.NODE_ENV,
|
|
1626
|
+
const r = nt(t);
|
|
1627
|
+
r || (process.env.NODE_ENV, f());
|
|
1628
1628
|
const o = r.draggableId, i = n[o].page.borderBox.center, s = Ds({
|
|
1629
1629
|
displaced: t.displaced,
|
|
1630
1630
|
afterCritical: e,
|
|
1631
1631
|
combineWith: o,
|
|
1632
1632
|
displacedBy: t.displacedBy
|
|
1633
1633
|
});
|
|
1634
|
-
return
|
|
1634
|
+
return k(i, s);
|
|
1635
1635
|
};
|
|
1636
|
-
const Hr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, xs = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2,
|
|
1636
|
+
const Hr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, xs = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2, en = (e, t, n) => t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2, zn = ({
|
|
1637
1637
|
axis: e,
|
|
1638
1638
|
moveRelativeTo: t,
|
|
1639
1639
|
isMoving: n
|
|
1640
|
-
}) => ae(e.line, t.marginBox[e.end] + Hr(e, n),
|
|
1640
|
+
}) => ae(e.line, t.marginBox[e.end] + Hr(e, n), en(e, t.marginBox, n)), qn = ({
|
|
1641
1641
|
axis: e,
|
|
1642
1642
|
moveRelativeTo: t,
|
|
1643
1643
|
isMoving: n
|
|
1644
|
-
}) => ae(e.line, t.marginBox[e.start] - xs(e, n),
|
|
1644
|
+
}) => ae(e.line, t.marginBox[e.start] - xs(e, n), en(e, t.marginBox, n)), Is = ({
|
|
1645
1645
|
axis: e,
|
|
1646
1646
|
moveInto: t,
|
|
1647
1647
|
isMoving: n
|
|
1648
|
-
}) => ae(e.line, t.contentBox[e.start] + Hr(e, n),
|
|
1648
|
+
}) => ae(e.line, t.contentBox[e.start] + Hr(e, n), en(e, t.contentBox, n));
|
|
1649
1649
|
var Cs = ({
|
|
1650
1650
|
impact: e,
|
|
1651
1651
|
draggable: t,
|
|
@@ -1667,15 +1667,15 @@ var Cs = ({
|
|
|
1667
1667
|
if (p) {
|
|
1668
1668
|
const u = n[p];
|
|
1669
1669
|
if (ie(p, o))
|
|
1670
|
-
return
|
|
1670
|
+
return qn({
|
|
1671
1671
|
axis: c,
|
|
1672
1672
|
moveRelativeTo: u.page,
|
|
1673
1673
|
isMoving: s
|
|
1674
1674
|
});
|
|
1675
|
-
const
|
|
1676
|
-
return
|
|
1675
|
+
const g = Ye(u.page, d.point);
|
|
1676
|
+
return qn({
|
|
1677
1677
|
axis: c,
|
|
1678
|
-
moveRelativeTo:
|
|
1678
|
+
moveRelativeTo: g,
|
|
1679
1679
|
isMoving: s
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
@@ -1683,21 +1683,21 @@ var Cs = ({
|
|
|
1683
1683
|
if (l.descriptor.id === t.descriptor.id)
|
|
1684
1684
|
return s.borderBox.center;
|
|
1685
1685
|
if (ie(l.descriptor.id, o)) {
|
|
1686
|
-
const u =
|
|
1687
|
-
return
|
|
1686
|
+
const u = Ye(l.page, me(o.displacedBy.point));
|
|
1687
|
+
return zn({
|
|
1688
1688
|
axis: c,
|
|
1689
1689
|
moveRelativeTo: u,
|
|
1690
1690
|
isMoving: s
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
|
-
return
|
|
1693
|
+
return zn({
|
|
1694
1694
|
axis: c,
|
|
1695
1695
|
moveRelativeTo: l.page,
|
|
1696
1696
|
isMoving: s
|
|
1697
1697
|
});
|
|
1698
|
-
},
|
|
1698
|
+
}, Lt = (e, t) => {
|
|
1699
1699
|
const n = e.frame;
|
|
1700
|
-
return n ?
|
|
1700
|
+
return n ? k(t, n.scroll.diff.displacement) : t;
|
|
1701
1701
|
};
|
|
1702
1702
|
const Os = ({
|
|
1703
1703
|
impact: e,
|
|
@@ -1719,11 +1719,11 @@ const Os = ({
|
|
|
1719
1719
|
afterCritical: o
|
|
1720
1720
|
});
|
|
1721
1721
|
};
|
|
1722
|
-
var
|
|
1722
|
+
var ot = (e) => {
|
|
1723
1723
|
const t = Os(e), n = e.droppable;
|
|
1724
|
-
return n ?
|
|
1724
|
+
return n ? Lt(n, t) : t;
|
|
1725
1725
|
}, zr = (e, t) => {
|
|
1726
|
-
const n =
|
|
1726
|
+
const n = q(t, e.scroll.initial), r = me(n);
|
|
1727
1727
|
return {
|
|
1728
1728
|
frame: Z({
|
|
1729
1729
|
top: t.y,
|
|
@@ -1742,10 +1742,10 @@ var rt = (e) => {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
1744
|
};
|
|
1745
|
-
function
|
|
1745
|
+
function jn(e, t) {
|
|
1746
1746
|
return e.map((n) => t[n]);
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function Ss(e, t) {
|
|
1749
1749
|
for (let n = 0; n < t.length; n++) {
|
|
1750
1750
|
const r = t[n].visible[e];
|
|
1751
1751
|
if (r)
|
|
@@ -1753,22 +1753,22 @@ function ws(e, t) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
return null;
|
|
1755
1755
|
}
|
|
1756
|
-
var
|
|
1756
|
+
var ws = ({
|
|
1757
1757
|
impact: e,
|
|
1758
1758
|
viewport: t,
|
|
1759
1759
|
destination: n,
|
|
1760
1760
|
draggables: r,
|
|
1761
1761
|
maxScrollChange: o
|
|
1762
1762
|
}) => {
|
|
1763
|
-
const i = zr(t,
|
|
1764
|
-
afterDragging:
|
|
1763
|
+
const i = zr(t, k(t.scroll.current, o)), s = n.frame ? Kt(n, k(n.frame.scroll.current, o)) : n, c = e.displaced, a = we({
|
|
1764
|
+
afterDragging: jn(c.all, r),
|
|
1765
1765
|
destination: n,
|
|
1766
1766
|
displacedBy: e.displacedBy,
|
|
1767
1767
|
viewport: i.frame,
|
|
1768
1768
|
last: c,
|
|
1769
1769
|
forceShouldAnimate: !1
|
|
1770
|
-
}), d =
|
|
1771
|
-
afterDragging:
|
|
1770
|
+
}), d = we({
|
|
1771
|
+
afterDragging: jn(c.all, r),
|
|
1772
1772
|
destination: s,
|
|
1773
1773
|
displacedBy: e.displacedBy,
|
|
1774
1774
|
viewport: t.frame,
|
|
@@ -1776,7 +1776,7 @@ var Ss = ({
|
|
|
1776
1776
|
forceShouldAnimate: !1
|
|
1777
1777
|
}), p = {}, l = {}, u = [c, a, d];
|
|
1778
1778
|
return c.all.forEach((m) => {
|
|
1779
|
-
const b =
|
|
1779
|
+
const b = Ss(m, u);
|
|
1780
1780
|
if (b) {
|
|
1781
1781
|
l[m] = b;
|
|
1782
1782
|
return;
|
|
@@ -1790,14 +1790,14 @@ var Ss = ({
|
|
|
1790
1790
|
visible: l
|
|
1791
1791
|
}
|
|
1792
1792
|
};
|
|
1793
|
-
},
|
|
1793
|
+
}, _s = (e, t) => k(e.scroll.diff.displacement, t), tn = ({
|
|
1794
1794
|
pageBorderBoxCenter: e,
|
|
1795
1795
|
draggable: t,
|
|
1796
1796
|
viewport: n
|
|
1797
1797
|
}) => {
|
|
1798
|
-
const r =
|
|
1799
|
-
return
|
|
1800
|
-
},
|
|
1798
|
+
const r = _s(n, e), o = q(r, t.page.borderBox.center);
|
|
1799
|
+
return k(t.client.borderBox.center, o);
|
|
1800
|
+
}, qr = ({
|
|
1801
1801
|
draggable: e,
|
|
1802
1802
|
destination: t,
|
|
1803
1803
|
newPageBorderBoxCenter: n,
|
|
@@ -1805,14 +1805,14 @@ var Ss = ({
|
|
|
1805
1805
|
withDroppableDisplacement: o,
|
|
1806
1806
|
onlyOnMainAxis: i = !1
|
|
1807
1807
|
}) => {
|
|
1808
|
-
const s =
|
|
1808
|
+
const s = q(n, e.page.borderBox.center), a = {
|
|
1809
1809
|
target: Be(e.page.borderBox, s),
|
|
1810
1810
|
destination: t,
|
|
1811
1811
|
withDroppableDisplacement: o,
|
|
1812
1812
|
viewport: r
|
|
1813
1813
|
};
|
|
1814
1814
|
return i ? gs(a) : Ur(a);
|
|
1815
|
-
},
|
|
1815
|
+
}, As = ({
|
|
1816
1816
|
isMovingForward: e,
|
|
1817
1817
|
draggable: t,
|
|
1818
1818
|
destination: n,
|
|
@@ -1844,14 +1844,14 @@ var Ss = ({
|
|
|
1844
1844
|
});
|
|
1845
1845
|
if (!l)
|
|
1846
1846
|
return null;
|
|
1847
|
-
const u =
|
|
1847
|
+
const u = ot({
|
|
1848
1848
|
impact: l,
|
|
1849
1849
|
draggable: t,
|
|
1850
1850
|
droppable: n,
|
|
1851
1851
|
draggables: r,
|
|
1852
1852
|
afterCritical: a
|
|
1853
1853
|
});
|
|
1854
|
-
if (
|
|
1854
|
+
if (qr({
|
|
1855
1855
|
draggable: t,
|
|
1856
1856
|
destination: n,
|
|
1857
1857
|
newPageBorderBoxCenter: u,
|
|
@@ -1860,7 +1860,7 @@ var Ss = ({
|
|
|
1860
1860
|
onlyOnMainAxis: !0
|
|
1861
1861
|
}))
|
|
1862
1862
|
return {
|
|
1863
|
-
clientSelection:
|
|
1863
|
+
clientSelection: tn({
|
|
1864
1864
|
pageBorderBoxCenter: u,
|
|
1865
1865
|
draggable: t,
|
|
1866
1866
|
viewport: i
|
|
@@ -1868,7 +1868,7 @@ var Ss = ({
|
|
|
1868
1868
|
impact: l,
|
|
1869
1869
|
scrollJumpRequest: null
|
|
1870
1870
|
};
|
|
1871
|
-
const m =
|
|
1871
|
+
const m = q(u, s), b = ws({
|
|
1872
1872
|
impact: l,
|
|
1873
1873
|
viewport: i,
|
|
1874
1874
|
destination: n,
|
|
@@ -1881,9 +1881,9 @@ var Ss = ({
|
|
|
1881
1881
|
scrollJumpRequest: m
|
|
1882
1882
|
};
|
|
1883
1883
|
};
|
|
1884
|
-
const
|
|
1884
|
+
const F = (e) => {
|
|
1885
1885
|
const t = e.subject.active;
|
|
1886
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
1886
|
+
return t || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get clipped area from droppable") : f()), t;
|
|
1887
1887
|
};
|
|
1888
1888
|
var Ps = ({
|
|
1889
1889
|
isMovingForward: e,
|
|
@@ -1895,29 +1895,29 @@ var Ps = ({
|
|
|
1895
1895
|
const i = n.subject.active;
|
|
1896
1896
|
if (!i)
|
|
1897
1897
|
return null;
|
|
1898
|
-
const s = n.axis, c = J(i[s.start], i[s.end]), a =
|
|
1899
|
-
const l =
|
|
1898
|
+
const s = n.axis, c = J(i[s.start], i[s.end]), a = tt(r).filter((p) => p !== n).filter((p) => p.isEnabled).filter((p) => !!p.subject.active).filter((p) => Fr(o.frame)(F(p))).filter((p) => {
|
|
1899
|
+
const l = F(p);
|
|
1900
1900
|
return e ? i[s.crossAxisEnd] < l[s.crossAxisEnd] : l[s.crossAxisStart] < i[s.crossAxisStart];
|
|
1901
1901
|
}).filter((p) => {
|
|
1902
|
-
const l =
|
|
1902
|
+
const l = F(p), u = J(l[s.start], l[s.end]);
|
|
1903
1903
|
return c(l[s.start]) || c(l[s.end]) || u(i[s.start]) || u(i[s.end]);
|
|
1904
1904
|
}).sort((p, l) => {
|
|
1905
|
-
const u =
|
|
1906
|
-
return e ? u -
|
|
1907
|
-
}).filter((p, l, u) =>
|
|
1905
|
+
const u = F(p)[s.crossAxisStart], g = F(l)[s.crossAxisStart];
|
|
1906
|
+
return e ? u - g : g - u;
|
|
1907
|
+
}).filter((p, l, u) => F(p)[s.crossAxisStart] === F(u[0])[s.crossAxisStart]);
|
|
1908
1908
|
if (!a.length)
|
|
1909
1909
|
return null;
|
|
1910
1910
|
if (a.length === 1)
|
|
1911
1911
|
return a[0];
|
|
1912
|
-
const d = a.filter((p) => J(
|
|
1913
|
-
return d.length === 1 ? d[0] : d.length > 1 ? d.sort((p, l) =>
|
|
1914
|
-
const u =
|
|
1915
|
-
return u !==
|
|
1912
|
+
const d = a.filter((p) => J(F(p)[s.start], F(p)[s.end])(t[s.line]));
|
|
1913
|
+
return d.length === 1 ? d[0] : d.length > 1 ? d.sort((p, l) => F(p)[s.start] - F(l)[s.start])[0] : a.sort((p, l) => {
|
|
1914
|
+
const u = Wn(t, Un(F(p))), g = Wn(t, Un(F(l)));
|
|
1915
|
+
return u !== g ? u - g : F(p)[s.start] - F(l)[s.start];
|
|
1916
1916
|
})[0];
|
|
1917
1917
|
};
|
|
1918
|
-
const
|
|
1918
|
+
const Yn = (e, t) => {
|
|
1919
1919
|
const n = e.page.borderBox.center;
|
|
1920
|
-
return ie(e.descriptor.id, t) ?
|
|
1920
|
+
return ie(e.descriptor.id, t) ? q(n, t.displacedBy.point) : n;
|
|
1921
1921
|
}, Rs = (e, t) => {
|
|
1922
1922
|
const n = e.page.borderBox;
|
|
1923
1923
|
return ie(e.descriptor.id, t) ? Be(n, me(t.displacedBy.point)) : n;
|
|
@@ -1934,7 +1934,7 @@ var Ts = ({
|
|
|
1934
1934
|
viewport: t.frame,
|
|
1935
1935
|
withDroppableDisplacement: !0
|
|
1936
1936
|
})).sort((s, c) => {
|
|
1937
|
-
const a = Oe(e,
|
|
1937
|
+
const a = Oe(e, Lt(n, Yn(s, o))), d = Oe(e, Lt(n, Yn(c, o)));
|
|
1938
1938
|
return a < d ? -1 : d < a ? 1 : s.descriptor.index - c.descriptor.index;
|
|
1939
1939
|
})[0] || null, Ve = $(function(t, n) {
|
|
1940
1940
|
const r = n[t.line];
|
|
@@ -1949,7 +1949,7 @@ const Bs = (e, t, n) => {
|
|
|
1949
1949
|
return ae(r.line, t[r.line]);
|
|
1950
1950
|
const o = e.subject.page.contentBox[r.size], a = le(e.descriptor.id, n).reduce((d, p) => d + p.client.marginBox[r.size], 0) + t[r.line] - o;
|
|
1951
1951
|
return a <= 0 ? null : ae(r.line, a);
|
|
1952
|
-
},
|
|
1952
|
+
}, jr = (e, t) => ({
|
|
1953
1953
|
...e,
|
|
1954
1954
|
scroll: {
|
|
1955
1955
|
...e.scroll,
|
|
@@ -1957,7 +1957,7 @@ const Bs = (e, t, n) => {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
}), Yr = (e, t, n) => {
|
|
1959
1959
|
const r = e.frame;
|
|
1960
|
-
he(t, e) && (process.env.NODE_ENV !== "production" ?
|
|
1960
|
+
he(t, e) && (process.env.NODE_ENV !== "production" ? f(!1, "Should not add placeholder space to home list") : f()), e.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot add placeholder size to a subject when it already has one") : f());
|
|
1961
1961
|
const o = Ve(e.axis, t.displaceBy).point, i = Bs(e, o, n), s = {
|
|
1962
1962
|
placeholderSize: o,
|
|
1963
1963
|
increasedBy: i,
|
|
@@ -1975,7 +1975,7 @@ const Bs = (e, t, n) => {
|
|
|
1975
1975
|
subject: p
|
|
1976
1976
|
};
|
|
1977
1977
|
}
|
|
1978
|
-
const c = i ?
|
|
1978
|
+
const c = i ? k(r.scroll.max, i) : r.scroll.max, a = jr(r, c), d = pe({
|
|
1979
1979
|
page: e.subject.page,
|
|
1980
1980
|
withPlaceholder: s,
|
|
1981
1981
|
axis: e.axis,
|
|
@@ -1988,7 +1988,7 @@ const Bs = (e, t, n) => {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
}, Vs = (e) => {
|
|
1990
1990
|
const t = e.subject.withPlaceholder;
|
|
1991
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
1991
|
+
t || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot remove placeholder form subject when there was none") : f());
|
|
1992
1992
|
const n = e.frame;
|
|
1993
1993
|
if (!n) {
|
|
1994
1994
|
const s = pe({
|
|
@@ -2003,8 +2003,8 @@ const Bs = (e, t, n) => {
|
|
|
2003
2003
|
};
|
|
2004
2004
|
}
|
|
2005
2005
|
const r = t.oldFrameMaxScroll;
|
|
2006
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
2007
|
-
const o =
|
|
2006
|
+
r || (process.env.NODE_ENV !== "production" ? f(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : f());
|
|
2007
|
+
const o = jr(n, r), i = pe({
|
|
2008
2008
|
page: e.subject.page,
|
|
2009
2009
|
axis: e.axis,
|
|
2010
2010
|
frame: o,
|
|
@@ -2030,8 +2030,8 @@ var Ls = ({
|
|
|
2030
2030
|
if (n.length)
|
|
2031
2031
|
return null;
|
|
2032
2032
|
const l = {
|
|
2033
|
-
displaced:
|
|
2034
|
-
displacedBy:
|
|
2033
|
+
displaced: Se,
|
|
2034
|
+
displacedBy: kr,
|
|
2035
2035
|
at: {
|
|
2036
2036
|
type: "REORDER",
|
|
2037
2037
|
destination: {
|
|
@@ -2039,16 +2039,16 @@ var Ls = ({
|
|
|
2039
2039
|
index: 0
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
}, u =
|
|
2042
|
+
}, u = ot({
|
|
2043
2043
|
impact: l,
|
|
2044
2044
|
draggable: r,
|
|
2045
2045
|
droppable: i,
|
|
2046
2046
|
draggables: o,
|
|
2047
2047
|
afterCritical: c
|
|
2048
|
-
}),
|
|
2049
|
-
return
|
|
2048
|
+
}), g = he(r, i) ? i : Yr(i, r, o);
|
|
2049
|
+
return qr({
|
|
2050
2050
|
draggable: r,
|
|
2051
|
-
destination:
|
|
2051
|
+
destination: g,
|
|
2052
2052
|
newPageBorderBoxCenter: u,
|
|
2053
2053
|
viewport: s.frame,
|
|
2054
2054
|
withDroppableDisplacement: !1,
|
|
@@ -2059,13 +2059,13 @@ var Ls = ({
|
|
|
2059
2059
|
const l = t.descriptor.index;
|
|
2060
2060
|
return t.descriptor.id === r.descriptor.id || a ? l : l + 1;
|
|
2061
2061
|
})(), p = Ve(i.axis, r.displaceBy);
|
|
2062
|
-
return
|
|
2062
|
+
return Ze({
|
|
2063
2063
|
draggable: r,
|
|
2064
2064
|
insideDestination: n,
|
|
2065
2065
|
destination: i,
|
|
2066
2066
|
viewport: s,
|
|
2067
2067
|
displacedBy: p,
|
|
2068
|
-
last:
|
|
2068
|
+
last: Se,
|
|
2069
2069
|
index: d
|
|
2070
2070
|
});
|
|
2071
2071
|
}, Ms = ({
|
|
@@ -2105,7 +2105,7 @@ var Ls = ({
|
|
|
2105
2105
|
});
|
|
2106
2106
|
if (!l)
|
|
2107
2107
|
return null;
|
|
2108
|
-
const u =
|
|
2108
|
+
const u = ot({
|
|
2109
2109
|
impact: l,
|
|
2110
2110
|
draggable: n,
|
|
2111
2111
|
droppable: a,
|
|
@@ -2113,7 +2113,7 @@ var Ls = ({
|
|
|
2113
2113
|
afterCritical: c
|
|
2114
2114
|
});
|
|
2115
2115
|
return {
|
|
2116
|
-
clientSelection:
|
|
2116
|
+
clientSelection: tn({
|
|
2117
2117
|
pageBorderBoxCenter: u,
|
|
2118
2118
|
draggable: n,
|
|
2119
2119
|
viewport: s
|
|
@@ -2121,12 +2121,12 @@ var Ls = ({
|
|
|
2121
2121
|
impact: l,
|
|
2122
2122
|
scrollJumpRequest: null
|
|
2123
2123
|
};
|
|
2124
|
-
},
|
|
2124
|
+
}, j = (e) => {
|
|
2125
2125
|
const t = e.at;
|
|
2126
2126
|
return t ? t.type === "REORDER" ? t.destination.droppableId : t.combine.droppableId : null;
|
|
2127
2127
|
};
|
|
2128
2128
|
const $s = (e, t) => {
|
|
2129
|
-
const n =
|
|
2129
|
+
const n = j(e);
|
|
2130
2130
|
return n ? t[n] : null;
|
|
2131
2131
|
};
|
|
2132
2132
|
var Gs = ({
|
|
@@ -2140,7 +2140,7 @@ var Gs = ({
|
|
|
2140
2140
|
draggables: l,
|
|
2141
2141
|
droppables: u
|
|
2142
2142
|
} = e.dimensions;
|
|
2143
|
-
return c ?
|
|
2143
|
+
return c ? As({
|
|
2144
2144
|
isMovingForward: a,
|
|
2145
2145
|
previousPageBorderBoxCenter: p,
|
|
2146
2146
|
draggable: d,
|
|
@@ -2170,10 +2170,10 @@ function Xr(e) {
|
|
|
2170
2170
|
return t(o.y) && n(o.x);
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function ks(e, t) {
|
|
2174
2174
|
return e.left < t.right && e.right > t.left && e.top < t.bottom && e.bottom > t.top;
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function Fs({
|
|
2177
2177
|
pageBorderBox: e,
|
|
2178
2178
|
draggable: t,
|
|
2179
2179
|
candidates: n
|
|
@@ -2192,18 +2192,18 @@ function Ws({
|
|
|
2192
2192
|
draggable: t,
|
|
2193
2193
|
droppables: n
|
|
2194
2194
|
}) {
|
|
2195
|
-
const r =
|
|
2195
|
+
const r = tt(n).filter((o) => {
|
|
2196
2196
|
if (!o.isEnabled)
|
|
2197
2197
|
return !1;
|
|
2198
2198
|
const i = o.subject.active;
|
|
2199
|
-
if (!i || !
|
|
2199
|
+
if (!i || !ks(e, i))
|
|
2200
2200
|
return !1;
|
|
2201
2201
|
if (Xr(i)(e.center))
|
|
2202
2202
|
return !0;
|
|
2203
2203
|
const s = o.axis, c = i.center[s.crossAxisLine], a = e[s.crossAxisStart], d = e[s.crossAxisEnd], p = J(i[s.crossAxisStart], i[s.crossAxisEnd]), l = p(a), u = p(d);
|
|
2204
2204
|
return !l && !u ? !0 : l ? a < c : d > c;
|
|
2205
2205
|
});
|
|
2206
|
-
return r.length ? r.length === 1 ? r[0].descriptor.id :
|
|
2206
|
+
return r.length ? r.length === 1 ? r[0].descriptor.id : Fs({
|
|
2207
2207
|
pageBorderBox: e,
|
|
2208
2208
|
draggable: t,
|
|
2209
2209
|
candidates: r
|
|
@@ -2236,7 +2236,7 @@ var zs = ({
|
|
|
2236
2236
|
viewport: i,
|
|
2237
2237
|
afterCritical: s
|
|
2238
2238
|
}) => {
|
|
2239
|
-
const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end],
|
|
2239
|
+
const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], g = rt(t, r).find((b) => {
|
|
2240
2240
|
const h = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(h, s), I = Jr({
|
|
2241
2241
|
displaced: o,
|
|
2242
2242
|
id: h
|
|
@@ -2244,10 +2244,10 @@ var zs = ({
|
|
|
2244
2244
|
return v ? I ? l <= y : p < y - d : I ? l <= y + d : p < y;
|
|
2245
2245
|
}) || null, m = Hs({
|
|
2246
2246
|
draggable: t,
|
|
2247
|
-
closest:
|
|
2247
|
+
closest: g,
|
|
2248
2248
|
inHomeList: he(t, n)
|
|
2249
2249
|
});
|
|
2250
|
-
return
|
|
2250
|
+
return Ze({
|
|
2251
2251
|
draggable: t,
|
|
2252
2252
|
insideDestination: r,
|
|
2253
2253
|
destination: n,
|
|
@@ -2257,8 +2257,8 @@ var zs = ({
|
|
|
2257
2257
|
index: m
|
|
2258
2258
|
});
|
|
2259
2259
|
};
|
|
2260
|
-
const
|
|
2261
|
-
var
|
|
2260
|
+
const qs = 4;
|
|
2261
|
+
var js = ({
|
|
2262
2262
|
draggable: e,
|
|
2263
2263
|
pageBorderBoxWithDroppableScroll: t,
|
|
2264
2264
|
previousImpact: n,
|
|
@@ -2268,8 +2268,8 @@ var qs = ({
|
|
|
2268
2268
|
}) => {
|
|
2269
2269
|
if (!r.isCombineEnabled)
|
|
2270
2270
|
return null;
|
|
2271
|
-
const s = r.axis, c = Ve(r.axis, e.displaceBy), a = c.value, d = t[s.start], p = t[s.end], u =
|
|
2272
|
-
const b = m.descriptor.id, h = m.page.borderBox, v = h[s.size] /
|
|
2271
|
+
const s = r.axis, c = Ve(r.axis, e.displaceBy), a = c.value, d = t[s.start], p = t[s.end], u = rt(e, o).find((m) => {
|
|
2272
|
+
const b = m.descriptor.id, h = m.page.borderBox, v = h[s.size] / qs, I = ie(b, i), N = Jr({
|
|
2273
2273
|
displaced: n.displaced,
|
|
2274
2274
|
id: b
|
|
2275
2275
|
});
|
|
@@ -2303,7 +2303,7 @@ var qs = ({
|
|
|
2303
2303
|
if (!a)
|
|
2304
2304
|
return cs;
|
|
2305
2305
|
const d = r[a], p = le(d.descriptor.id, n), l = Us(d, c);
|
|
2306
|
-
return
|
|
2306
|
+
return js({
|
|
2307
2307
|
pageBorderBoxWithDroppableScroll: l,
|
|
2308
2308
|
draggable: t,
|
|
2309
2309
|
previousImpact: o,
|
|
@@ -2319,7 +2319,7 @@ var qs = ({
|
|
|
2319
2319
|
viewport: i,
|
|
2320
2320
|
afterCritical: s
|
|
2321
2321
|
});
|
|
2322
|
-
},
|
|
2322
|
+
}, nn = (e, t) => ({
|
|
2323
2323
|
...e,
|
|
2324
2324
|
[t.descriptor.id]: t
|
|
2325
2325
|
});
|
|
@@ -2328,14 +2328,14 @@ const Ys = ({
|
|
|
2328
2328
|
impact: t,
|
|
2329
2329
|
droppables: n
|
|
2330
2330
|
}) => {
|
|
2331
|
-
const r =
|
|
2331
|
+
const r = j(e), o = j(t);
|
|
2332
2332
|
if (!r || r === o)
|
|
2333
2333
|
return n;
|
|
2334
2334
|
const i = n[r];
|
|
2335
2335
|
if (!i.subject.withPlaceholder)
|
|
2336
2336
|
return n;
|
|
2337
2337
|
const s = Vs(i);
|
|
2338
|
-
return
|
|
2338
|
+
return nn(n, s);
|
|
2339
2339
|
};
|
|
2340
2340
|
var Xs = ({
|
|
2341
2341
|
draggable: e,
|
|
@@ -2348,14 +2348,14 @@ var Xs = ({
|
|
|
2348
2348
|
previousImpact: r,
|
|
2349
2349
|
impact: o,
|
|
2350
2350
|
droppables: n
|
|
2351
|
-
}), s =
|
|
2351
|
+
}), s = j(o);
|
|
2352
2352
|
if (!s)
|
|
2353
2353
|
return i;
|
|
2354
2354
|
const c = n[s];
|
|
2355
2355
|
if (he(e, c) || c.subject.withPlaceholder)
|
|
2356
2356
|
return i;
|
|
2357
2357
|
const a = Yr(c, e, t);
|
|
2358
|
-
return
|
|
2358
|
+
return nn(i, a);
|
|
2359
2359
|
}, Ne = ({
|
|
2360
2360
|
state: e,
|
|
2361
2361
|
clientSelection: t,
|
|
@@ -2364,14 +2364,14 @@ var Xs = ({
|
|
|
2364
2364
|
impact: o,
|
|
2365
2365
|
scrollJumpRequest: i
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const s = r || e.viewport, c = n || e.dimensions, a = t || e.current.client.selection, d =
|
|
2367
|
+
const s = r || e.viewport, c = n || e.dimensions, a = t || e.current.client.selection, d = q(a, e.initial.client.selection), p = {
|
|
2368
2368
|
offset: d,
|
|
2369
2369
|
selection: a,
|
|
2370
|
-
borderBoxCenter:
|
|
2370
|
+
borderBoxCenter: k(e.initial.client.borderBoxCenter, d)
|
|
2371
2371
|
}, l = {
|
|
2372
|
-
selection:
|
|
2373
|
-
borderBoxCenter:
|
|
2374
|
-
offset:
|
|
2372
|
+
selection: k(p.selection, s.scroll.current),
|
|
2373
|
+
borderBoxCenter: k(p.borderBoxCenter, s.scroll.current),
|
|
2374
|
+
offset: k(p.offset, s.scroll.diff.value)
|
|
2375
2375
|
}, u = {
|
|
2376
2376
|
client: p,
|
|
2377
2377
|
page: l
|
|
@@ -2383,16 +2383,16 @@ var Xs = ({
|
|
|
2383
2383
|
viewport: s,
|
|
2384
2384
|
current: u
|
|
2385
2385
|
};
|
|
2386
|
-
const
|
|
2386
|
+
const g = c.draggables[e.critical.draggable.id], m = o || Zr({
|
|
2387
2387
|
pageOffset: l.offset,
|
|
2388
|
-
draggable:
|
|
2388
|
+
draggable: g,
|
|
2389
2389
|
draggables: c.draggables,
|
|
2390
2390
|
droppables: c.droppables,
|
|
2391
2391
|
previousImpact: e.impact,
|
|
2392
2392
|
viewport: s,
|
|
2393
2393
|
afterCritical: e.afterCritical
|
|
2394
2394
|
}), b = Xs({
|
|
2395
|
-
draggable:
|
|
2395
|
+
draggable: g,
|
|
2396
2396
|
impact: m,
|
|
2397
2397
|
previousImpact: e.impact,
|
|
2398
2398
|
draggables: c.draggables,
|
|
@@ -2421,7 +2421,7 @@ var Qr = ({
|
|
|
2421
2421
|
destination: r,
|
|
2422
2422
|
forceShouldAnimate: o
|
|
2423
2423
|
}) => {
|
|
2424
|
-
const i = e.displaced, s = Ks(i.all, n), c =
|
|
2424
|
+
const i = e.displaced, s = Ks(i.all, n), c = we({
|
|
2425
2425
|
afterDragging: s,
|
|
2426
2426
|
destination: r,
|
|
2427
2427
|
displacedBy: e.displacedBy,
|
|
@@ -2441,14 +2441,14 @@ var Qr = ({
|
|
|
2441
2441
|
viewport: o,
|
|
2442
2442
|
afterCritical: i
|
|
2443
2443
|
}) => {
|
|
2444
|
-
const s =
|
|
2444
|
+
const s = ot({
|
|
2445
2445
|
impact: e,
|
|
2446
2446
|
draggable: t,
|
|
2447
2447
|
draggables: r,
|
|
2448
2448
|
droppable: n,
|
|
2449
2449
|
afterCritical: i
|
|
2450
2450
|
});
|
|
2451
|
-
return
|
|
2451
|
+
return tn({
|
|
2452
2452
|
pageBorderBoxCenter: s,
|
|
2453
2453
|
draggable: t,
|
|
2454
2454
|
viewport: o
|
|
@@ -2458,12 +2458,12 @@ var Qr = ({
|
|
|
2458
2458
|
dimensions: t,
|
|
2459
2459
|
viewport: n
|
|
2460
2460
|
}) => {
|
|
2461
|
-
e.movementMode !== "SNAP" && (process.env.NODE_ENV,
|
|
2461
|
+
e.movementMode !== "SNAP" && (process.env.NODE_ENV, f());
|
|
2462
2462
|
const r = e.impact, o = n || e.viewport, i = t || e.dimensions, {
|
|
2463
2463
|
draggables: s,
|
|
2464
2464
|
droppables: c
|
|
2465
|
-
} = i, a = s[e.critical.draggable.id], d =
|
|
2466
|
-
d || (process.env.NODE_ENV !== "production" ?
|
|
2465
|
+
} = i, a = s[e.critical.draggable.id], d = j(r);
|
|
2466
|
+
d || (process.env.NODE_ENV !== "production" ? f(!1, "Must be over a destination in SNAP movement mode") : f());
|
|
2467
2467
|
const p = c[d], l = Qr({
|
|
2468
2468
|
impact: r,
|
|
2469
2469
|
viewport: o,
|
|
@@ -2494,15 +2494,15 @@ var Qr = ({
|
|
|
2494
2494
|
viewport: r
|
|
2495
2495
|
}) => {
|
|
2496
2496
|
const o = Ve(t.axis, e.displaceBy), i = le(t.descriptor.id, n), s = i.indexOf(e);
|
|
2497
|
-
s === -1 && (process.env.NODE_ENV !== "production" ?
|
|
2498
|
-
const c = i.slice(s + 1), a = c.reduce((u,
|
|
2497
|
+
s === -1 && (process.env.NODE_ENV !== "production" ? f(!1, "Expected draggable to be inside home list") : f());
|
|
2498
|
+
const c = i.slice(s + 1), a = c.reduce((u, g) => (u[g.descriptor.id] = !0, u), {}), d = {
|
|
2499
2499
|
inVirtualList: t.descriptor.mode === "virtual",
|
|
2500
2500
|
displacedBy: o,
|
|
2501
2501
|
effected: a
|
|
2502
2502
|
};
|
|
2503
2503
|
return {
|
|
2504
2504
|
impact: {
|
|
2505
|
-
displaced:
|
|
2505
|
+
displaced: we({
|
|
2506
2506
|
afterDragging: c,
|
|
2507
2507
|
destination: t,
|
|
2508
2508
|
displacedBy: o,
|
|
@@ -2520,7 +2520,7 @@ var Qr = ({
|
|
|
2520
2520
|
};
|
|
2521
2521
|
}, Zs = (e, t) => ({
|
|
2522
2522
|
draggables: e.draggables,
|
|
2523
|
-
droppables:
|
|
2523
|
+
droppables: nn(e.droppables, t)
|
|
2524
2524
|
});
|
|
2525
2525
|
const Le = (e) => {
|
|
2526
2526
|
process.env.NODE_ENV;
|
|
@@ -2532,7 +2532,7 @@ var Qs = ({
|
|
|
2532
2532
|
offset: t,
|
|
2533
2533
|
initialWindowScroll: n
|
|
2534
2534
|
}) => {
|
|
2535
|
-
const r =
|
|
2535
|
+
const r = Ye(e.client, t), o = Xe(r, n);
|
|
2536
2536
|
return {
|
|
2537
2537
|
...e,
|
|
2538
2538
|
placeholder: {
|
|
@@ -2544,7 +2544,7 @@ var Qs = ({
|
|
|
2544
2544
|
};
|
|
2545
2545
|
}, ec = (e) => {
|
|
2546
2546
|
const t = e.frame;
|
|
2547
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
2547
|
+
return t || (process.env.NODE_ENV !== "production" ? f(!1, "Expected Droppable to have a frame") : f()), t;
|
|
2548
2548
|
}, tc = ({
|
|
2549
2549
|
additions: e,
|
|
2550
2550
|
updatedDroppables: t,
|
|
@@ -2552,7 +2552,7 @@ var Qs = ({
|
|
|
2552
2552
|
}) => {
|
|
2553
2553
|
const r = n.scroll.diff.value;
|
|
2554
2554
|
return e.map((o) => {
|
|
2555
|
-
const i = o.descriptor.droppableId, s = t[i], a = ec(s).scroll.diff.value, d =
|
|
2555
|
+
const i = o.descriptor.droppableId, s = t[i], a = ec(s).scroll.diff.value, d = k(r, a);
|
|
2556
2556
|
return Qs({
|
|
2557
2557
|
draggable: o,
|
|
2558
2558
|
offset: d,
|
|
@@ -2566,7 +2566,7 @@ var Qs = ({
|
|
|
2566
2566
|
Le();
|
|
2567
2567
|
const n = t.modified.map((y) => {
|
|
2568
2568
|
const v = e.dimensions.droppables[y.droppableId];
|
|
2569
|
-
return
|
|
2569
|
+
return Kt(v, y.scroll);
|
|
2570
2570
|
}), r = {
|
|
2571
2571
|
...e.dimensions.droppables,
|
|
2572
2572
|
...$r(n)
|
|
@@ -2584,7 +2584,7 @@ var Qs = ({
|
|
|
2584
2584
|
const s = {
|
|
2585
2585
|
droppables: r,
|
|
2586
2586
|
draggables: i
|
|
2587
|
-
}, c =
|
|
2587
|
+
}, c = j(e.impact), a = c ? s.droppables[c] : null, d = s.draggables[e.critical.draggable.id], p = s.droppables[e.critical.droppable.id], {
|
|
2588
2588
|
impact: l,
|
|
2589
2589
|
afterCritical: u
|
|
2590
2590
|
} = no({
|
|
@@ -2592,12 +2592,12 @@ var Qs = ({
|
|
|
2592
2592
|
home: p,
|
|
2593
2593
|
draggables: i,
|
|
2594
2594
|
viewport: e.viewport
|
|
2595
|
-
}),
|
|
2595
|
+
}), g = a && a.isCombineEnabled ? e.impact : l, m = Zr({
|
|
2596
2596
|
pageOffset: e.current.page.offset,
|
|
2597
2597
|
draggable: s.draggables[e.critical.draggable.id],
|
|
2598
2598
|
draggables: s.draggables,
|
|
2599
2599
|
droppables: s.droppables,
|
|
2600
|
-
previousImpact:
|
|
2600
|
+
previousImpact: g,
|
|
2601
2601
|
viewport: e.viewport,
|
|
2602
2602
|
afterCritical: u
|
|
2603
2603
|
});
|
|
@@ -2618,9 +2618,9 @@ var Qs = ({
|
|
|
2618
2618
|
isWaiting: !1
|
|
2619
2619
|
};
|
|
2620
2620
|
};
|
|
2621
|
-
const
|
|
2621
|
+
const Mt = (e) => e.movementMode === "SNAP", Dt = (e, t, n) => {
|
|
2622
2622
|
const r = Zs(e.dimensions, t);
|
|
2623
|
-
return !
|
|
2623
|
+
return !Mt(e) || n ? Ne({
|
|
2624
2624
|
state: e,
|
|
2625
2625
|
dimensions: r
|
|
2626
2626
|
}) : to({
|
|
@@ -2628,25 +2628,25 @@ const Lt = (e) => e.movementMode === "SNAP", Et = (e, t, n) => {
|
|
|
2628
2628
|
dimensions: r
|
|
2629
2629
|
});
|
|
2630
2630
|
};
|
|
2631
|
-
function
|
|
2631
|
+
function Nt(e) {
|
|
2632
2632
|
return e.isDragging && e.movementMode === "SNAP" ? {
|
|
2633
2633
|
...e,
|
|
2634
2634
|
scrollJumpRequest: null
|
|
2635
2635
|
} : e;
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2637
|
+
const Xn = {
|
|
2638
2638
|
phase: "IDLE",
|
|
2639
2639
|
completed: null,
|
|
2640
2640
|
shouldFlush: !1
|
|
2641
2641
|
};
|
|
2642
|
-
var rc = (e =
|
|
2642
|
+
var rc = (e = Xn, t) => {
|
|
2643
2643
|
if (t.type === "FLUSH")
|
|
2644
2644
|
return {
|
|
2645
|
-
...
|
|
2645
|
+
...Xn,
|
|
2646
2646
|
shouldFlush: !0
|
|
2647
2647
|
};
|
|
2648
2648
|
if (t.type === "INITIAL_PUBLISH") {
|
|
2649
|
-
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
2649
|
+
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "INITIAL_PUBLISH must come after a IDLE phase") : f());
|
|
2650
2650
|
const {
|
|
2651
2651
|
critical: n,
|
|
2652
2652
|
clientSelection: r,
|
|
@@ -2660,13 +2660,13 @@ var rc = (e = qn, t) => {
|
|
|
2660
2660
|
}, p = {
|
|
2661
2661
|
client: d,
|
|
2662
2662
|
page: {
|
|
2663
|
-
selection:
|
|
2664
|
-
borderBoxCenter:
|
|
2665
|
-
offset:
|
|
2663
|
+
selection: k(d.selection, o.scroll.initial),
|
|
2664
|
+
borderBoxCenter: k(d.selection, o.scroll.initial),
|
|
2665
|
+
offset: k(d.selection, o.scroll.diff.value)
|
|
2666
2666
|
}
|
|
2667
|
-
}, l =
|
|
2667
|
+
}, l = tt(i.droppables).every((b) => !b.isFixedOnPage), {
|
|
2668
2668
|
impact: u,
|
|
2669
|
-
afterCritical:
|
|
2669
|
+
afterCritical: g
|
|
2670
2670
|
} = no({
|
|
2671
2671
|
draggable: c,
|
|
2672
2672
|
home: a,
|
|
@@ -2683,7 +2683,7 @@ var rc = (e = qn, t) => {
|
|
|
2683
2683
|
current: p,
|
|
2684
2684
|
isWindowScrollAllowed: l,
|
|
2685
2685
|
impact: u,
|
|
2686
|
-
afterCritical:
|
|
2686
|
+
afterCritical: g,
|
|
2687
2687
|
onLiftImpact: u,
|
|
2688
2688
|
viewport: o,
|
|
2689
2689
|
scrollJumpRequest: null,
|
|
@@ -2691,82 +2691,82 @@ var rc = (e = qn, t) => {
|
|
|
2691
2691
|
};
|
|
2692
2692
|
}
|
|
2693
2693
|
if (t.type === "COLLECTION_STARTING")
|
|
2694
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" ? e : (e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
2694
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" ? e : (e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? f(!1, `Collection cannot start from phase ${e.phase}`) : f()), {
|
|
2695
2695
|
...e,
|
|
2696
2696
|
phase: "COLLECTING"
|
|
2697
2697
|
});
|
|
2698
2698
|
if (t.type === "PUBLISH_WHILE_DRAGGING")
|
|
2699
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
2699
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? f(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : f()), nc({
|
|
2700
2700
|
state: e,
|
|
2701
2701
|
published: t.payload
|
|
2702
2702
|
});
|
|
2703
2703
|
if (t.type === "MOVE") {
|
|
2704
2704
|
if (e.phase === "DROP_PENDING")
|
|
2705
2705
|
return e;
|
|
2706
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2706
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? f(!1, `${t.type} not permitted in phase ${e.phase}`) : f());
|
|
2707
2707
|
const {
|
|
2708
2708
|
client: n
|
|
2709
2709
|
} = t.payload;
|
|
2710
2710
|
return oe(n, e.current.client.selection) ? e : Ne({
|
|
2711
2711
|
state: e,
|
|
2712
2712
|
clientSelection: n,
|
|
2713
|
-
impact:
|
|
2713
|
+
impact: Mt(e) ? e.impact : null
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
2716
|
if (t.type === "UPDATE_DROPPABLE_SCROLL") {
|
|
2717
2717
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
2718
|
-
return
|
|
2719
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2718
|
+
return Nt(e);
|
|
2719
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? f(!1, `${t.type} not permitted in phase ${e.phase}`) : f());
|
|
2720
2720
|
const {
|
|
2721
2721
|
id: n,
|
|
2722
2722
|
newScroll: r
|
|
2723
2723
|
} = t.payload, o = e.dimensions.droppables[n];
|
|
2724
2724
|
if (!o)
|
|
2725
2725
|
return e;
|
|
2726
|
-
const i =
|
|
2727
|
-
return
|
|
2726
|
+
const i = Kt(o, r);
|
|
2727
|
+
return Dt(e, i, !1);
|
|
2728
2728
|
}
|
|
2729
2729
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
2730
2730
|
if (e.phase === "DROP_PENDING")
|
|
2731
2731
|
return e;
|
|
2732
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2732
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? f(!1, `Attempting to move in an unsupported phase ${e.phase}`) : f());
|
|
2733
2733
|
const {
|
|
2734
2734
|
id: n,
|
|
2735
2735
|
isEnabled: r
|
|
2736
2736
|
} = t.payload, o = e.dimensions.droppables[n];
|
|
2737
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
2738
|
-
but it is already ${String(o.isEnabled)}`) :
|
|
2737
|
+
o || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot find Droppable[id: ${n}] to toggle its enabled state`) : f()), o.isEnabled === r && (process.env.NODE_ENV !== "production" ? f(!1, `Trying to set droppable isEnabled to ${String(r)}
|
|
2738
|
+
but it is already ${String(o.isEnabled)}`) : f());
|
|
2739
2739
|
const i = {
|
|
2740
2740
|
...o,
|
|
2741
2741
|
isEnabled: r
|
|
2742
2742
|
};
|
|
2743
|
-
return
|
|
2743
|
+
return Dt(e, i, !0);
|
|
2744
2744
|
}
|
|
2745
2745
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
2746
2746
|
if (e.phase === "DROP_PENDING")
|
|
2747
2747
|
return e;
|
|
2748
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2748
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? f(!1, `Attempting to move in an unsupported phase ${e.phase}`) : f());
|
|
2749
2749
|
const {
|
|
2750
2750
|
id: n,
|
|
2751
2751
|
isCombineEnabled: r
|
|
2752
2752
|
} = t.payload, o = e.dimensions.droppables[n];
|
|
2753
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
2754
|
-
but it is already ${String(o.isCombineEnabled)}`) :
|
|
2753
|
+
o || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot find Droppable[id: ${n}] to toggle its isCombineEnabled state`) : f()), o.isCombineEnabled === r && (process.env.NODE_ENV !== "production" ? f(!1, `Trying to set droppable isCombineEnabled to ${String(r)}
|
|
2754
|
+
but it is already ${String(o.isCombineEnabled)}`) : f());
|
|
2755
2755
|
const i = {
|
|
2756
2756
|
...o,
|
|
2757
2757
|
isCombineEnabled: r
|
|
2758
2758
|
};
|
|
2759
|
-
return
|
|
2759
|
+
return Dt(e, i, !0);
|
|
2760
2760
|
}
|
|
2761
2761
|
if (t.type === "MOVE_BY_WINDOW_SCROLL") {
|
|
2762
2762
|
if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
|
|
2763
2763
|
return e;
|
|
2764
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2764
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot move by window in phase ${e.phase}`) : f()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? f(!1, "Window scrolling is currently not supported for fixed lists") : f());
|
|
2765
2765
|
const n = t.payload.newScroll;
|
|
2766
2766
|
if (oe(e.viewport.scroll.current, n))
|
|
2767
|
-
return
|
|
2767
|
+
return Nt(e);
|
|
2768
2768
|
const r = zr(e.viewport, n);
|
|
2769
|
-
return
|
|
2769
|
+
return Mt(e) ? to({
|
|
2770
2770
|
state: e,
|
|
2771
2771
|
viewport: r
|
|
2772
2772
|
}) : Ne({
|
|
@@ -2795,7 +2795,7 @@ var rc = (e = qn, t) => {
|
|
|
2795
2795
|
if (t.type === "MOVE_UP" || t.type === "MOVE_DOWN" || t.type === "MOVE_LEFT" || t.type === "MOVE_RIGHT") {
|
|
2796
2796
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
2797
2797
|
return e;
|
|
2798
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
2798
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? f(!1, `${t.type} received while not in DRAGGING phase`) : f());
|
|
2799
2799
|
const n = Gs({
|
|
2800
2800
|
state: e,
|
|
2801
2801
|
type: t.type
|
|
@@ -2809,7 +2809,7 @@ var rc = (e = qn, t) => {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
if (t.type === "DROP_PENDING") {
|
|
2811
2811
|
const n = t.payload.reason;
|
|
2812
|
-
return e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ?
|
|
2812
|
+
return e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? f(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : f()), {
|
|
2813
2813
|
...e,
|
|
2814
2814
|
phase: "DROP_PENDING",
|
|
2815
2815
|
isWaiting: !0,
|
|
@@ -2822,7 +2822,7 @@ var rc = (e = qn, t) => {
|
|
|
2822
2822
|
dropDuration: r,
|
|
2823
2823
|
newHomeClientOffset: o
|
|
2824
2824
|
} = t.payload;
|
|
2825
|
-
return e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
2825
|
+
return e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot animate drop from phase ${e.phase}`) : f()), {
|
|
2826
2826
|
phase: "DROP_ANIMATING",
|
|
2827
2827
|
completed: n,
|
|
2828
2828
|
dropDuration: r,
|
|
@@ -2842,7 +2842,7 @@ var rc = (e = qn, t) => {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
return e;
|
|
2844
2844
|
};
|
|
2845
|
-
function
|
|
2845
|
+
function A(e, t) {
|
|
2846
2846
|
return e instanceof Object && "type" in e && e.type === t;
|
|
2847
2847
|
}
|
|
2848
2848
|
const oc = (e) => ({
|
|
@@ -2890,13 +2890,13 @@ const oc = (e) => ({
|
|
|
2890
2890
|
}), bc = () => ({
|
|
2891
2891
|
type: "MOVE_LEFT",
|
|
2892
2892
|
payload: null
|
|
2893
|
-
}),
|
|
2893
|
+
}), rn = () => ({
|
|
2894
2894
|
type: "FLUSH",
|
|
2895
2895
|
payload: null
|
|
2896
2896
|
}), vc = (e) => ({
|
|
2897
2897
|
type: "DROP_ANIMATE",
|
|
2898
2898
|
payload: e
|
|
2899
|
-
}),
|
|
2899
|
+
}), on = (e) => ({
|
|
2900
2900
|
type: "DROP_COMPLETE",
|
|
2901
2901
|
payload: e
|
|
2902
2902
|
}), oo = (e) => ({
|
|
@@ -2938,7 +2938,7 @@ var Nc = (e) => ({
|
|
|
2938
2938
|
getState: t,
|
|
2939
2939
|
dispatch: n
|
|
2940
2940
|
}) => (r) => (o) => {
|
|
2941
|
-
if (!
|
|
2941
|
+
if (!A(o, "LIFT")) {
|
|
2942
2942
|
r(o);
|
|
2943
2943
|
return;
|
|
2944
2944
|
}
|
|
@@ -2947,9 +2947,9 @@ var Nc = (e) => ({
|
|
|
2947
2947
|
clientSelection: s,
|
|
2948
2948
|
movementMode: c
|
|
2949
2949
|
} = o.payload, a = t();
|
|
2950
|
-
a.phase === "DROP_ANIMATING" && n(
|
|
2950
|
+
a.phase === "DROP_ANIMATING" && n(on({
|
|
2951
2951
|
completed: a.completed
|
|
2952
|
-
})), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
2952
|
+
})), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase to start a drag") : f()), n(rn()), n(oc({
|
|
2953
2953
|
draggableId: i,
|
|
2954
2954
|
movementMode: c
|
|
2955
2955
|
}));
|
|
@@ -2961,22 +2961,22 @@ var Nc = (e) => ({
|
|
|
2961
2961
|
}, {
|
|
2962
2962
|
critical: l,
|
|
2963
2963
|
dimensions: u,
|
|
2964
|
-
viewport:
|
|
2964
|
+
viewport: g
|
|
2965
2965
|
} = e.startPublishing(p);
|
|
2966
2966
|
Dc(l, u), n(sc({
|
|
2967
2967
|
critical: l,
|
|
2968
2968
|
dimensions: u,
|
|
2969
2969
|
clientSelection: s,
|
|
2970
2970
|
movementMode: c,
|
|
2971
|
-
viewport:
|
|
2971
|
+
viewport: g
|
|
2972
2972
|
}));
|
|
2973
2973
|
}, xc = (e) => () => (t) => (n) => {
|
|
2974
|
-
|
|
2974
|
+
A(n, "INITIAL_PUBLISH") && e.dragging(), A(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (A(n, "FLUSH") || A(n, "DROP_COMPLETE")) && e.resting(), t(n);
|
|
2975
2975
|
};
|
|
2976
|
-
const
|
|
2976
|
+
const sn = {
|
|
2977
2977
|
outOfTheWay: "cubic-bezier(0.2, 0, 0, 1)",
|
|
2978
2978
|
drop: "cubic-bezier(.2,1,.1,1)"
|
|
2979
|
-
},
|
|
2979
|
+
}, _e = {
|
|
2980
2980
|
opacity: {
|
|
2981
2981
|
drop: 0,
|
|
2982
2982
|
combining: 0.7
|
|
@@ -2988,26 +2988,26 @@ const rn = {
|
|
|
2988
2988
|
outOfTheWay: 0.2,
|
|
2989
2989
|
minDropTime: 0.33,
|
|
2990
2990
|
maxDropTime: 0.55
|
|
2991
|
-
}, se = `${so.outOfTheWay}s ${
|
|
2991
|
+
}, se = `${so.outOfTheWay}s ${sn.outOfTheWay}`, xe = {
|
|
2992
2992
|
fluid: `opacity ${se}`,
|
|
2993
2993
|
snap: `transform ${se}, opacity ${se}`,
|
|
2994
2994
|
drop: (e) => {
|
|
2995
|
-
const t = `${e}s ${
|
|
2995
|
+
const t = `${e}s ${sn.drop}`;
|
|
2996
2996
|
return `transform ${t}, opacity ${t}`;
|
|
2997
2997
|
},
|
|
2998
2998
|
outOfTheWay: `transform ${se}`,
|
|
2999
2999
|
placeholder: `height ${se}, width ${se}, margin ${se}`
|
|
3000
|
-
},
|
|
3001
|
-
moveTo:
|
|
3000
|
+
}, Kn = (e) => oe(e, G) ? void 0 : `translate(${e.x}px, ${e.y}px)`, $t = {
|
|
3001
|
+
moveTo: Kn,
|
|
3002
3002
|
drop: (e, t) => {
|
|
3003
|
-
const n =
|
|
3003
|
+
const n = Kn(e);
|
|
3004
3004
|
if (n)
|
|
3005
|
-
return t ? `${n} scale(${
|
|
3005
|
+
return t ? `${n} scale(${_e.scale.drop})` : n;
|
|
3006
3006
|
}
|
|
3007
3007
|
}, {
|
|
3008
|
-
minDropTime:
|
|
3008
|
+
minDropTime: Gt,
|
|
3009
3009
|
maxDropTime: co
|
|
3010
|
-
} = so, Ic = co -
|
|
3010
|
+
} = so, Ic = co - Gt, Jn = 1500, Cc = 0.6;
|
|
3011
3011
|
var Oc = ({
|
|
3012
3012
|
current: e,
|
|
3013
3013
|
destination: t,
|
|
@@ -3015,12 +3015,12 @@ var Oc = ({
|
|
|
3015
3015
|
}) => {
|
|
3016
3016
|
const r = Oe(e, t);
|
|
3017
3017
|
if (r <= 0)
|
|
3018
|
-
return
|
|
3019
|
-
if (r >=
|
|
3018
|
+
return Gt;
|
|
3019
|
+
if (r >= Jn)
|
|
3020
3020
|
return co;
|
|
3021
|
-
const o = r /
|
|
3021
|
+
const o = r / Jn, i = Gt + Ic * o, s = n === "CANCEL" ? i * Cc : i;
|
|
3022
3022
|
return Number(s.toFixed(2));
|
|
3023
|
-
},
|
|
3023
|
+
}, Sc = ({
|
|
3024
3024
|
impact: e,
|
|
3025
3025
|
draggable: t,
|
|
3026
3026
|
dimensions: n,
|
|
@@ -3030,7 +3030,7 @@ var Oc = ({
|
|
|
3030
3030
|
const {
|
|
3031
3031
|
draggables: i,
|
|
3032
3032
|
droppables: s
|
|
3033
|
-
} = n, c =
|
|
3033
|
+
} = n, c = j(e), a = c ? s[c] : null, d = s[t.descriptor.droppableId], p = eo({
|
|
3034
3034
|
impact: e,
|
|
3035
3035
|
draggable: t,
|
|
3036
3036
|
draggables: i,
|
|
@@ -3038,8 +3038,8 @@ var Oc = ({
|
|
|
3038
3038
|
droppable: a || d,
|
|
3039
3039
|
viewport: r
|
|
3040
3040
|
});
|
|
3041
|
-
return
|
|
3042
|
-
},
|
|
3041
|
+
return q(p, t.client.borderBox.center);
|
|
3042
|
+
}, wc = ({
|
|
3043
3043
|
draggables: e,
|
|
3044
3044
|
reason: t,
|
|
3045
3045
|
lastImpact: n,
|
|
@@ -3061,15 +3061,15 @@ var Oc = ({
|
|
|
3061
3061
|
} : {
|
|
3062
3062
|
impact: {
|
|
3063
3063
|
...n,
|
|
3064
|
-
displaced:
|
|
3064
|
+
displaced: Se
|
|
3065
3065
|
},
|
|
3066
3066
|
didDropInsideDroppable: !0
|
|
3067
3067
|
};
|
|
3068
|
-
const
|
|
3068
|
+
const _c = ({
|
|
3069
3069
|
getState: e,
|
|
3070
3070
|
dispatch: t
|
|
3071
3071
|
}) => (n) => (r) => {
|
|
3072
|
-
if (!
|
|
3072
|
+
if (!A(r, "DROP")) {
|
|
3073
3073
|
n(r);
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
@@ -3082,11 +3082,11 @@ const Ac = ({
|
|
|
3082
3082
|
}
|
|
3083
3083
|
if (o.phase === "IDLE")
|
|
3084
3084
|
return;
|
|
3085
|
-
o.phase === "DROP_PENDING" && o.isWaiting && (process.env.NODE_ENV !== "production" ?
|
|
3085
|
+
o.phase === "DROP_PENDING" && o.isWaiting && (process.env.NODE_ENV !== "production" ? f(!1, "A DROP action occurred while DROP_PENDING and still waiting") : f()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot drop in phase: ${o.phase}`) : f());
|
|
3086
3086
|
const c = o.critical, a = o.dimensions, d = a.draggables[o.critical.draggable.id], {
|
|
3087
3087
|
impact: p,
|
|
3088
3088
|
didDropInsideDroppable: l
|
|
3089
|
-
} =
|
|
3089
|
+
} = wc({
|
|
3090
3090
|
reason: i,
|
|
3091
3091
|
lastImpact: o.impact,
|
|
3092
3092
|
afterCritical: o.afterCritical,
|
|
@@ -3094,7 +3094,7 @@ const Ac = ({
|
|
|
3094
3094
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
3095
3095
|
viewport: o.viewport,
|
|
3096
3096
|
draggables: o.dimensions.draggables
|
|
3097
|
-
}), u = l ?
|
|
3097
|
+
}), u = l ? Jt(p) : null, g = l ? nt(p) : null, m = {
|
|
3098
3098
|
index: c.draggable.index,
|
|
3099
3099
|
droppableId: c.droppable.id
|
|
3100
3100
|
}, b = {
|
|
@@ -3104,8 +3104,8 @@ const Ac = ({
|
|
|
3104
3104
|
reason: i,
|
|
3105
3105
|
mode: o.movementMode,
|
|
3106
3106
|
destination: u,
|
|
3107
|
-
combine:
|
|
3108
|
-
}, h =
|
|
3107
|
+
combine: g
|
|
3108
|
+
}, h = Sc({
|
|
3109
3109
|
impact: p,
|
|
3110
3110
|
draggable: d,
|
|
3111
3111
|
dimensions: a,
|
|
@@ -3118,7 +3118,7 @@ const Ac = ({
|
|
|
3118
3118
|
impact: p
|
|
3119
3119
|
};
|
|
3120
3120
|
if (!(!oe(o.current.client.offset, h) || !!b.combine)) {
|
|
3121
|
-
t(
|
|
3121
|
+
t(on({
|
|
3122
3122
|
completed: y
|
|
3123
3123
|
}));
|
|
3124
3124
|
return;
|
|
@@ -3138,7 +3138,7 @@ var ao = () => ({
|
|
|
3138
3138
|
x: window.pageXOffset,
|
|
3139
3139
|
y: window.pageYOffset
|
|
3140
3140
|
});
|
|
3141
|
-
function
|
|
3141
|
+
function Ac(e) {
|
|
3142
3142
|
return {
|
|
3143
3143
|
eventName: "scroll",
|
|
3144
3144
|
options: {
|
|
@@ -3156,16 +3156,16 @@ function Pc({
|
|
|
3156
3156
|
function t() {
|
|
3157
3157
|
e(ao());
|
|
3158
3158
|
}
|
|
3159
|
-
const n = Ie(t), r =
|
|
3159
|
+
const n = Ie(t), r = Ac(n);
|
|
3160
3160
|
let o = re;
|
|
3161
3161
|
function i() {
|
|
3162
3162
|
return o !== re;
|
|
3163
3163
|
}
|
|
3164
3164
|
function s() {
|
|
3165
|
-
i() && (process.env.NODE_ENV !== "production" ?
|
|
3165
|
+
i() && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot start scroll listener when already active") : f()), o = K(window, [r]);
|
|
3166
3166
|
}
|
|
3167
3167
|
function c() {
|
|
3168
|
-
i() || (process.env.NODE_ENV !== "production" ?
|
|
3168
|
+
i() || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot stop scroll listener when not active") : f()), n.cancel(), o(), o = re;
|
|
3169
3169
|
}
|
|
3170
3170
|
return {
|
|
3171
3171
|
start: s,
|
|
@@ -3173,7 +3173,7 @@ function Pc({
|
|
|
3173
3173
|
isActive: i
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
const Rc = (e) =>
|
|
3176
|
+
const Rc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH"), Tc = (e) => {
|
|
3177
3177
|
const t = Pc({
|
|
3178
3178
|
onWindowScroll: (n) => {
|
|
3179
3179
|
e.dispatch(pc({
|
|
@@ -3182,7 +3182,7 @@ const Rc = (e) => _(e, "DROP_COMPLETE") || _(e, "DROP_ANIMATE") || _(e, "FLUSH")
|
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
return (n) => (r) => {
|
|
3185
|
-
!t.isActive() &&
|
|
3185
|
+
!t.isActive() && A(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Rc(r) && t.stop(), n(r);
|
|
3186
3186
|
};
|
|
3187
3187
|
};
|
|
3188
3188
|
var Bc = (e) => {
|
|
@@ -3207,7 +3207,7 @@ var Bc = (e) => {
|
|
|
3207
3207
|
}, Vc = () => {
|
|
3208
3208
|
const e = [], t = (o) => {
|
|
3209
3209
|
const i = e.findIndex((c) => c.timerId === o);
|
|
3210
|
-
i === -1 && (process.env.NODE_ENV !== "production" ?
|
|
3210
|
+
i === -1 && (process.env.NODE_ENV !== "production" ? f(!1, "Could not find timer") : f());
|
|
3211
3211
|
const [s] = e.splice(i, 1);
|
|
3212
3212
|
s.callback();
|
|
3213
3213
|
};
|
|
@@ -3245,7 +3245,7 @@ const Lc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 :
|
|
|
3245
3245
|
},
|
|
3246
3246
|
mode: t
|
|
3247
3247
|
});
|
|
3248
|
-
function
|
|
3248
|
+
function xt(e, t, n, r) {
|
|
3249
3249
|
if (!e) {
|
|
3250
3250
|
n(r(t));
|
|
3251
3251
|
return;
|
|
@@ -3259,51 +3259,51 @@ var Gc = (e, t) => {
|
|
|
3259
3259
|
const n = Vc();
|
|
3260
3260
|
let r = null;
|
|
3261
3261
|
const o = (l, u) => {
|
|
3262
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3263
|
-
const
|
|
3264
|
-
|
|
3262
|
+
r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : f()), ye("onBeforeCapture", () => {
|
|
3263
|
+
const g = e().onBeforeCapture;
|
|
3264
|
+
g && g({
|
|
3265
3265
|
draggableId: l,
|
|
3266
3266
|
mode: u
|
|
3267
3267
|
});
|
|
3268
3268
|
});
|
|
3269
3269
|
}, i = (l, u) => {
|
|
3270
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3271
|
-
const
|
|
3272
|
-
|
|
3270
|
+
r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : f()), ye("onBeforeDragStart", () => {
|
|
3271
|
+
const g = e().onBeforeDragStart;
|
|
3272
|
+
g && g(We(l, u));
|
|
3273
3273
|
});
|
|
3274
3274
|
}, s = (l, u) => {
|
|
3275
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3276
|
-
const
|
|
3275
|
+
r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : f());
|
|
3276
|
+
const g = We(l, u);
|
|
3277
3277
|
r = {
|
|
3278
3278
|
mode: u,
|
|
3279
3279
|
lastCritical: l,
|
|
3280
|
-
lastLocation:
|
|
3280
|
+
lastLocation: g.source,
|
|
3281
3281
|
lastCombine: null
|
|
3282
3282
|
}, n.add(() => {
|
|
3283
|
-
ye("onDragStart", () =>
|
|
3283
|
+
ye("onDragStart", () => xt(e().onDragStart, g, t, ze.onDragStart));
|
|
3284
3284
|
});
|
|
3285
3285
|
}, c = (l, u) => {
|
|
3286
|
-
const
|
|
3287
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3286
|
+
const g = Jt(u), m = nt(u);
|
|
3287
|
+
r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragMove when onDragStart has not been called") : f());
|
|
3288
3288
|
const b = !$c(l, r.lastCritical);
|
|
3289
3289
|
b && (r.lastCritical = l);
|
|
3290
|
-
const h = !Lc(r.lastLocation,
|
|
3291
|
-
h && (r.lastLocation =
|
|
3290
|
+
const h = !Lc(r.lastLocation, g);
|
|
3291
|
+
h && (r.lastLocation = g);
|
|
3292
3292
|
const y = !Mc(r.lastCombine, m);
|
|
3293
3293
|
if (y && (r.lastCombine = m), !b && !h && !y)
|
|
3294
3294
|
return;
|
|
3295
3295
|
const v = {
|
|
3296
3296
|
...We(l, r.mode),
|
|
3297
3297
|
combine: m,
|
|
3298
|
-
destination:
|
|
3298
|
+
destination: g
|
|
3299
3299
|
};
|
|
3300
3300
|
n.add(() => {
|
|
3301
|
-
ye("onDragUpdate", () =>
|
|
3301
|
+
ye("onDragUpdate", () => xt(e().onDragUpdate, v, t, ze.onDragUpdate));
|
|
3302
3302
|
});
|
|
3303
3303
|
}, a = () => {
|
|
3304
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3304
|
+
r || (process.env.NODE_ENV !== "production" ? f(!1, "Can only flush responders while dragging") : f()), n.flush();
|
|
3305
3305
|
}, d = (l) => {
|
|
3306
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3306
|
+
r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : f()), r = null, ye("onDragEnd", () => xt(e().onDragEnd, l, t, ze.onDragEnd));
|
|
3307
3307
|
};
|
|
3308
3308
|
return {
|
|
3309
3309
|
beforeCapture: o,
|
|
@@ -3324,24 +3324,24 @@ var Gc = (e, t) => {
|
|
|
3324
3324
|
d(l);
|
|
3325
3325
|
}
|
|
3326
3326
|
};
|
|
3327
|
-
},
|
|
3327
|
+
}, kc = (e, t) => {
|
|
3328
3328
|
const n = Gc(e, t);
|
|
3329
3329
|
return (r) => (o) => (i) => {
|
|
3330
|
-
if (
|
|
3330
|
+
if (A(i, "BEFORE_INITIAL_CAPTURE")) {
|
|
3331
3331
|
n.beforeCapture(i.payload.draggableId, i.payload.movementMode);
|
|
3332
3332
|
return;
|
|
3333
3333
|
}
|
|
3334
|
-
if (
|
|
3334
|
+
if (A(i, "INITIAL_PUBLISH")) {
|
|
3335
3335
|
const c = i.payload.critical;
|
|
3336
3336
|
n.beforeStart(c, i.payload.movementMode), o(i), n.start(c, i.payload.movementMode);
|
|
3337
3337
|
return;
|
|
3338
3338
|
}
|
|
3339
|
-
if (
|
|
3339
|
+
if (A(i, "DROP_COMPLETE")) {
|
|
3340
3340
|
const c = i.payload.completed.result;
|
|
3341
3341
|
n.flush(), o(i), n.drop(c);
|
|
3342
3342
|
return;
|
|
3343
3343
|
}
|
|
3344
|
-
if (o(i),
|
|
3344
|
+
if (o(i), A(i, "FLUSH")) {
|
|
3345
3345
|
n.abort();
|
|
3346
3346
|
return;
|
|
3347
3347
|
}
|
|
@@ -3349,13 +3349,13 @@ var Gc = (e, t) => {
|
|
|
3349
3349
|
s.phase === "DRAGGING" && n.update(s.critical, s.impact);
|
|
3350
3350
|
};
|
|
3351
3351
|
};
|
|
3352
|
-
const
|
|
3353
|
-
if (!
|
|
3352
|
+
const Fc = (e) => (t) => (n) => {
|
|
3353
|
+
if (!A(n, "DROP_ANIMATION_FINISHED")) {
|
|
3354
3354
|
t(n);
|
|
3355
3355
|
return;
|
|
3356
3356
|
}
|
|
3357
3357
|
const r = e.getState();
|
|
3358
|
-
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ?
|
|
3358
|
+
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot finish a drop animating when no drop is occurring") : f()), e.dispatch(on({
|
|
3359
3359
|
completed: r.completed
|
|
3360
3360
|
}));
|
|
3361
3361
|
}, Wc = (e) => {
|
|
@@ -3364,7 +3364,7 @@ const kc = (e) => (t) => (n) => {
|
|
|
3364
3364
|
n && (cancelAnimationFrame(n), n = null), t && (t(), t = null);
|
|
3365
3365
|
}
|
|
3366
3366
|
return (o) => (i) => {
|
|
3367
|
-
if ((
|
|
3367
|
+
if ((A(i, "FLUSH") || A(i, "DROP_COMPLETE") || A(i, "DROP_ANIMATION_FINISHED")) && r(), o(i), !A(i, "DROP_ANIMATE"))
|
|
3368
3368
|
return;
|
|
3369
3369
|
const s = {
|
|
3370
3370
|
eventName: "scroll",
|
|
@@ -3383,20 +3383,20 @@ const kc = (e) => (t) => (n) => {
|
|
|
3383
3383
|
};
|
|
3384
3384
|
};
|
|
3385
3385
|
var Uc = (e) => () => (t) => (n) => {
|
|
3386
|
-
(
|
|
3386
|
+
(A(n, "DROP_COMPLETE") || A(n, "FLUSH") || A(n, "DROP_ANIMATE")) && e.stopPublishing(), t(n);
|
|
3387
3387
|
}, Hc = (e) => {
|
|
3388
3388
|
let t = !1;
|
|
3389
3389
|
return () => (n) => (r) => {
|
|
3390
|
-
if (
|
|
3390
|
+
if (A(r, "INITIAL_PUBLISH")) {
|
|
3391
3391
|
t = !0, e.tryRecordFocus(r.payload.critical.draggable.id), n(r), e.tryRestoreFocusRecorded();
|
|
3392
3392
|
return;
|
|
3393
3393
|
}
|
|
3394
3394
|
if (n(r), !!t) {
|
|
3395
|
-
if (
|
|
3395
|
+
if (A(r, "FLUSH")) {
|
|
3396
3396
|
t = !1, e.tryRestoreFocusRecorded();
|
|
3397
3397
|
return;
|
|
3398
3398
|
}
|
|
3399
|
-
if (
|
|
3399
|
+
if (A(r, "DROP_COMPLETE")) {
|
|
3400
3400
|
t = !1;
|
|
3401
3401
|
const o = r.payload.completed.result;
|
|
3402
3402
|
o.combine && e.tryShiftRecord(o.draggableId, o.combine.draggableId), e.tryRestoreFocusRecorded();
|
|
@@ -3404,22 +3404,22 @@ var Uc = (e) => () => (t) => (n) => {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
};
|
|
3406
3406
|
};
|
|
3407
|
-
const zc = (e) =>
|
|
3408
|
-
var
|
|
3407
|
+
const zc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH");
|
|
3408
|
+
var qc = (e) => (t) => (n) => (r) => {
|
|
3409
3409
|
if (zc(r)) {
|
|
3410
3410
|
e.stop(), n(r);
|
|
3411
3411
|
return;
|
|
3412
3412
|
}
|
|
3413
|
-
if (
|
|
3413
|
+
if (A(r, "INITIAL_PUBLISH")) {
|
|
3414
3414
|
n(r);
|
|
3415
3415
|
const o = t.getState();
|
|
3416
|
-
o.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
3416
|
+
o.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? f(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : f()), e.start(o);
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
3419
|
n(r), e.scroll(t.getState());
|
|
3420
3420
|
};
|
|
3421
|
-
const
|
|
3422
|
-
if (t(n), !
|
|
3421
|
+
const jc = (e) => (t) => (n) => {
|
|
3422
|
+
if (t(n), !A(n, "PUBLISH_WHILE_DRAGGING"))
|
|
3423
3423
|
return;
|
|
3424
3424
|
const r = e.getState();
|
|
3425
3425
|
r.phase === "DROP_PENDING" && (r.isWaiting || e.dispatch(oo({
|
|
@@ -3435,8 +3435,8 @@ var Xc = ({
|
|
|
3435
3435
|
getResponders: r,
|
|
3436
3436
|
announce: o,
|
|
3437
3437
|
autoScroller: i
|
|
3438
|
-
}) => hr(rc, Yc(Ho(xc(n), Uc(e), Nc(e),
|
|
3439
|
-
const
|
|
3438
|
+
}) => hr(rc, Yc(Ho(xc(n), Uc(e), Nc(e), _c, Fc, Wc, jc, qc(i), Tc, Hc(t), kc(r, o))));
|
|
3439
|
+
const It = () => ({
|
|
3440
3440
|
additions: {},
|
|
3441
3441
|
removals: {},
|
|
3442
3442
|
modified: {}
|
|
@@ -3445,7 +3445,7 @@ function Kc({
|
|
|
3445
3445
|
registry: e,
|
|
3446
3446
|
callbacks: t
|
|
3447
3447
|
}) {
|
|
3448
|
-
let n =
|
|
3448
|
+
let n = It(), r = null;
|
|
3449
3449
|
const o = () => {
|
|
3450
3450
|
r || (t.collectionStarting(), r = requestAnimationFrame(() => {
|
|
3451
3451
|
r = null, Le();
|
|
@@ -3459,12 +3459,12 @@ function Kc({
|
|
|
3459
3459
|
droppableId: m,
|
|
3460
3460
|
scroll: h
|
|
3461
3461
|
};
|
|
3462
|
-
}),
|
|
3462
|
+
}), g = {
|
|
3463
3463
|
additions: l,
|
|
3464
3464
|
removals: Object.keys(d),
|
|
3465
3465
|
modified: u
|
|
3466
3466
|
};
|
|
3467
|
-
n =
|
|
3467
|
+
n = It(), Me(), t.publish(g);
|
|
3468
3468
|
}));
|
|
3469
3469
|
};
|
|
3470
3470
|
return {
|
|
@@ -3477,7 +3477,7 @@ function Kc({
|
|
|
3477
3477
|
n.removals[d.id] = !0, n.modified[d.droppableId] = !0, n.additions[d.id] && delete n.additions[d.id], o();
|
|
3478
3478
|
},
|
|
3479
3479
|
stop: () => {
|
|
3480
|
-
r && (cancelAnimationFrame(r), r = null, n =
|
|
3480
|
+
r && (cancelAnimationFrame(r), r = null, n = It());
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
3483
|
}
|
|
@@ -3487,7 +3487,7 @@ var lo = ({
|
|
|
3487
3487
|
height: n,
|
|
3488
3488
|
width: r
|
|
3489
3489
|
}) => {
|
|
3490
|
-
const o =
|
|
3490
|
+
const o = q({
|
|
3491
3491
|
x: t,
|
|
3492
3492
|
y: e
|
|
3493
3493
|
}, {
|
|
@@ -3500,7 +3500,7 @@ var lo = ({
|
|
|
3500
3500
|
};
|
|
3501
3501
|
}, uo = () => {
|
|
3502
3502
|
const e = document.documentElement;
|
|
3503
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
3503
|
+
return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find document.documentElement") : f()), e;
|
|
3504
3504
|
}, po = () => {
|
|
3505
3505
|
const e = uo();
|
|
3506
3506
|
return lo({
|
|
@@ -3544,7 +3544,7 @@ var lo = ({
|
|
|
3544
3544
|
viewport: r
|
|
3545
3545
|
};
|
|
3546
3546
|
};
|
|
3547
|
-
function
|
|
3547
|
+
function Zn(e, t, n) {
|
|
3548
3548
|
return n.descriptor.id === t.id || n.descriptor.type !== t.type ? !1 : e.droppable.getById(n.descriptor.droppableId).descriptor.mode !== "virtual" ? (process.env.NODE_ENV !== "production" && R(`
|
|
3549
3549
|
You are attempting to add or remove a Draggable [id: ${n.descriptor.id}]
|
|
3550
3550
|
while a drag is occurring. This is only supported for virtual lists.
|
|
@@ -3560,33 +3560,33 @@ var Qc = (e, t) => {
|
|
|
3560
3560
|
collectionStarting: t.collectionStarting
|
|
3561
3561
|
},
|
|
3562
3562
|
registry: e
|
|
3563
|
-
}), o = (u,
|
|
3564
|
-
e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3563
|
+
}), o = (u, g) => {
|
|
3564
|
+
e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot update is enabled flag of Droppable ${u} as it is not registered`) : f()), n && t.updateDroppableIsEnabled({
|
|
3565
3565
|
id: u,
|
|
3566
|
-
isEnabled:
|
|
3566
|
+
isEnabled: g
|
|
3567
3567
|
});
|
|
3568
|
-
}, i = (u,
|
|
3569
|
-
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3568
|
+
}, i = (u, g) => {
|
|
3569
|
+
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot update isCombineEnabled flag of Droppable ${u} as it is not registered`) : f()), t.updateDroppableIsCombineEnabled({
|
|
3570
3570
|
id: u,
|
|
3571
|
-
isCombineEnabled:
|
|
3571
|
+
isCombineEnabled: g
|
|
3572
3572
|
}));
|
|
3573
|
-
}, s = (u,
|
|
3574
|
-
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3573
|
+
}, s = (u, g) => {
|
|
3574
|
+
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot update the scroll on Droppable ${u} as it is not registered`) : f()), t.updateDroppableScroll({
|
|
3575
3575
|
id: u,
|
|
3576
|
-
newScroll:
|
|
3576
|
+
newScroll: g
|
|
3577
3577
|
}));
|
|
3578
|
-
}, c = (u,
|
|
3579
|
-
n && e.droppable.getById(u).callbacks.scroll(
|
|
3578
|
+
}, c = (u, g) => {
|
|
3579
|
+
n && e.droppable.getById(u).callbacks.scroll(g);
|
|
3580
3580
|
}, a = () => {
|
|
3581
3581
|
if (!n)
|
|
3582
3582
|
return;
|
|
3583
3583
|
r.stop();
|
|
3584
3584
|
const u = n.critical.droppable;
|
|
3585
|
-
e.droppable.getAllByType(u.type).forEach((
|
|
3585
|
+
e.droppable.getAllByType(u.type).forEach((g) => g.callbacks.dragStopped()), n.unsubscribe(), n = null;
|
|
3586
3586
|
}, d = (u) => {
|
|
3587
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
3588
|
-
const
|
|
3589
|
-
u.type === "ADDITION" &&
|
|
3587
|
+
n || (process.env.NODE_ENV !== "production" ? f(!1, "Should only be subscribed when a collection is occurring") : f());
|
|
3588
|
+
const g = n.critical.draggable;
|
|
3589
|
+
u.type === "ADDITION" && Zn(e, g, u.value) && r.add(u.value), u.type === "REMOVAL" && Zn(e, g, u.value) && r.remove(u.value);
|
|
3590
3590
|
};
|
|
3591
3591
|
return {
|
|
3592
3592
|
updateDroppableIsEnabled: o,
|
|
@@ -3594,9 +3594,9 @@ var Qc = (e, t) => {
|
|
|
3594
3594
|
scrollDroppable: c,
|
|
3595
3595
|
updateDroppableScroll: s,
|
|
3596
3596
|
startPublishing: (u) => {
|
|
3597
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
3598
|
-
const
|
|
3599
|
-
draggable:
|
|
3597
|
+
n && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot start capturing critical dimensions as there is already a collection") : f());
|
|
3598
|
+
const g = e.draggable.getById(u.draggableId), m = e.droppable.getById(g.descriptor.droppableId), b = {
|
|
3599
|
+
draggable: g.descriptor,
|
|
3600
3600
|
droppable: m.descriptor
|
|
3601
3601
|
}, h = e.subscribe(d);
|
|
3602
3602
|
return n = {
|
|
@@ -3613,7 +3613,7 @@ var Qc = (e, t) => {
|
|
|
3613
3613
|
}, fo = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP", ea = (e) => {
|
|
3614
3614
|
window.scrollBy(e.x, e.y);
|
|
3615
3615
|
};
|
|
3616
|
-
const ta = $((e) =>
|
|
3616
|
+
const ta = $((e) => tt(e).filter((t) => !(!t.isEnabled || !t.frame))), na = (e, t) => ta(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ? f(!1, "Invalid result") : f()), Xr(r.frame.pageMarginBox)(e))) || null;
|
|
3617
3617
|
var ra = ({
|
|
3618
3618
|
center: e,
|
|
3619
3619
|
destination: t,
|
|
@@ -3625,7 +3625,7 @@ var ra = ({
|
|
|
3625
3625
|
}
|
|
3626
3626
|
return na(e, n);
|
|
3627
3627
|
};
|
|
3628
|
-
const
|
|
3628
|
+
const Ae = {
|
|
3629
3629
|
startFromPercentage: 0.25,
|
|
3630
3630
|
maxScrollAtPercentage: 0.05,
|
|
3631
3631
|
maxPixelScroll: 28,
|
|
@@ -3636,7 +3636,7 @@ const _e = {
|
|
|
3636
3636
|
},
|
|
3637
3637
|
disabled: !1
|
|
3638
3638
|
};
|
|
3639
|
-
var oa = (e, t, n = () =>
|
|
3639
|
+
var oa = (e, t, n = () => Ae) => {
|
|
3640
3640
|
const r = n(), o = e[t.size] * r.startFromPercentage, i = e[t.size] * r.maxScrollAtPercentage;
|
|
3641
3641
|
return {
|
|
3642
3642
|
startScrollingFrom: o,
|
|
@@ -3653,14 +3653,14 @@ var oa = (e, t, n = () => _e) => {
|
|
|
3653
3653
|
This is unexpected and would cause a divide by 0 issue.
|
|
3654
3654
|
Not allowing an auto scroll
|
|
3655
3655
|
`), 0) : (n - e) / r;
|
|
3656
|
-
},
|
|
3656
|
+
}, cn = 1, ia = (e, t, n = () => Ae) => {
|
|
3657
3657
|
const r = n();
|
|
3658
3658
|
if (e > t.startScrollingFrom)
|
|
3659
3659
|
return 0;
|
|
3660
3660
|
if (e <= t.maxScrollValueAt)
|
|
3661
3661
|
return r.maxPixelScroll;
|
|
3662
3662
|
if (e === t.startScrollingFrom)
|
|
3663
|
-
return
|
|
3663
|
+
return cn;
|
|
3664
3664
|
const i = 1 - go({
|
|
3665
3665
|
startOfRange: t.maxScrollValueAt,
|
|
3666
3666
|
endOfRange: t.startScrollingFrom,
|
|
@@ -3672,14 +3672,14 @@ var oa = (e, t, n = () => _e) => {
|
|
|
3672
3672
|
if (d >= i)
|
|
3673
3673
|
return e;
|
|
3674
3674
|
if (d < o)
|
|
3675
|
-
return
|
|
3675
|
+
return cn;
|
|
3676
3676
|
const p = go({
|
|
3677
3677
|
startOfRange: o,
|
|
3678
3678
|
endOfRange: c,
|
|
3679
3679
|
current: d
|
|
3680
3680
|
}), l = e * r.ease(p);
|
|
3681
3681
|
return Math.ceil(l);
|
|
3682
|
-
},
|
|
3682
|
+
}, Qn = ({
|
|
3683
3683
|
distanceToEdge: e,
|
|
3684
3684
|
thresholds: t,
|
|
3685
3685
|
dragStartTime: n,
|
|
@@ -3687,8 +3687,8 @@ var oa = (e, t, n = () => _e) => {
|
|
|
3687
3687
|
getAutoScrollerOptions: o
|
|
3688
3688
|
}) => {
|
|
3689
3689
|
const i = ia(e, t, o);
|
|
3690
|
-
return i === 0 ? 0 : r ? Math.max(sa(i, n, o),
|
|
3691
|
-
},
|
|
3690
|
+
return i === 0 ? 0 : r ? Math.max(sa(i, n, o), cn) : i;
|
|
3691
|
+
}, er = ({
|
|
3692
3692
|
container: e,
|
|
3693
3693
|
distanceToEdges: t,
|
|
3694
3694
|
dragStartTime: n,
|
|
@@ -3697,13 +3697,13 @@ var oa = (e, t, n = () => _e) => {
|
|
|
3697
3697
|
getAutoScrollerOptions: i
|
|
3698
3698
|
}) => {
|
|
3699
3699
|
const s = oa(e, r, i);
|
|
3700
|
-
return t[r.end] < t[r.start] ?
|
|
3700
|
+
return t[r.end] < t[r.start] ? Qn({
|
|
3701
3701
|
distanceToEdge: t[r.end],
|
|
3702
3702
|
thresholds: s,
|
|
3703
3703
|
dragStartTime: n,
|
|
3704
3704
|
shouldUseTimeDampening: o,
|
|
3705
3705
|
getAutoScrollerOptions: i
|
|
3706
|
-
}) : -1 *
|
|
3706
|
+
}) : -1 * Qn({
|
|
3707
3707
|
distanceToEdge: t[r.start],
|
|
3708
3708
|
thresholds: s,
|
|
3709
3709
|
dragStartTime: n,
|
|
@@ -3735,14 +3735,14 @@ var mo = ({
|
|
|
3735
3735
|
right: t.right - r.x,
|
|
3736
3736
|
bottom: t.bottom - r.y,
|
|
3737
3737
|
left: r.x - t.left
|
|
3738
|
-
}, c =
|
|
3738
|
+
}, c = er({
|
|
3739
3739
|
container: t,
|
|
3740
3740
|
distanceToEdges: s,
|
|
3741
3741
|
dragStartTime: e,
|
|
3742
|
-
axis:
|
|
3742
|
+
axis: Zt,
|
|
3743
3743
|
shouldUseTimeDampening: o,
|
|
3744
3744
|
getAutoScrollerOptions: i
|
|
3745
|
-
}), a =
|
|
3745
|
+
}), a = er({
|
|
3746
3746
|
container: t,
|
|
3747
3747
|
distanceToEdges: s,
|
|
3748
3748
|
dragStartTime: e,
|
|
@@ -3762,14 +3762,14 @@ var mo = ({
|
|
|
3762
3762
|
});
|
|
3763
3763
|
return p ? oe(p, G) ? null : p : null;
|
|
3764
3764
|
};
|
|
3765
|
-
const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1),
|
|
3765
|
+
const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() => {
|
|
3766
3766
|
const e = (t, n) => t < 0 ? t : t > n ? t - n : 0;
|
|
3767
3767
|
return ({
|
|
3768
3768
|
current: t,
|
|
3769
3769
|
max: n,
|
|
3770
3770
|
change: r
|
|
3771
3771
|
}) => {
|
|
3772
|
-
const o =
|
|
3772
|
+
const o = k(t, r), i = {
|
|
3773
3773
|
x: e(o.x, n.x),
|
|
3774
3774
|
y: e(o.y, n.y)
|
|
3775
3775
|
};
|
|
@@ -3783,26 +3783,26 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), sn = /* @__PURE__ */ (() =>
|
|
|
3783
3783
|
const r = {
|
|
3784
3784
|
x: Math.max(t.x, e.x),
|
|
3785
3785
|
y: Math.max(t.y, e.y)
|
|
3786
|
-
}, o = la(n), i =
|
|
3786
|
+
}, o = la(n), i = an({
|
|
3787
3787
|
max: r,
|
|
3788
3788
|
current: t,
|
|
3789
3789
|
change: o
|
|
3790
3790
|
});
|
|
3791
3791
|
return !i || o.x !== 0 && i.x === 0 || o.y !== 0 && i.y === 0;
|
|
3792
|
-
},
|
|
3792
|
+
}, ln = (e, t) => ho({
|
|
3793
3793
|
current: e.scroll.current,
|
|
3794
3794
|
max: e.scroll.max,
|
|
3795
3795
|
change: t
|
|
3796
3796
|
}), da = (e, t) => {
|
|
3797
|
-
if (!
|
|
3797
|
+
if (!ln(e, t))
|
|
3798
3798
|
return null;
|
|
3799
3799
|
const n = e.scroll.max, r = e.scroll.current;
|
|
3800
|
-
return
|
|
3800
|
+
return an({
|
|
3801
3801
|
current: r,
|
|
3802
3802
|
max: n,
|
|
3803
3803
|
change: t
|
|
3804
3804
|
});
|
|
3805
|
-
},
|
|
3805
|
+
}, dn = (e, t) => {
|
|
3806
3806
|
const n = e.frame;
|
|
3807
3807
|
return n ? ho({
|
|
3808
3808
|
current: n.scroll.current,
|
|
@@ -3811,7 +3811,7 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), sn = /* @__PURE__ */ (() =>
|
|
|
3811
3811
|
}) : !1;
|
|
3812
3812
|
}, ua = (e, t) => {
|
|
3813
3813
|
const n = e.frame;
|
|
3814
|
-
return !n || !
|
|
3814
|
+
return !n || !dn(e, t) ? null : an({
|
|
3815
3815
|
current: n.scroll.current,
|
|
3816
3816
|
max: n.scroll.max,
|
|
3817
3817
|
change: t
|
|
@@ -3833,7 +3833,7 @@ var pa = ({
|
|
|
3833
3833
|
shouldUseTimeDampening: o,
|
|
3834
3834
|
getAutoScrollerOptions: i
|
|
3835
3835
|
});
|
|
3836
|
-
return s &&
|
|
3836
|
+
return s && ln(e, s) ? s : null;
|
|
3837
3837
|
}, fa = ({
|
|
3838
3838
|
droppable: e,
|
|
3839
3839
|
subject: t,
|
|
@@ -3853,8 +3853,8 @@ var pa = ({
|
|
|
3853
3853
|
shouldUseTimeDampening: o,
|
|
3854
3854
|
getAutoScrollerOptions: i
|
|
3855
3855
|
});
|
|
3856
|
-
return c &&
|
|
3857
|
-
},
|
|
3856
|
+
return c && dn(e, c) ? c : null;
|
|
3857
|
+
}, tr = ({
|
|
3858
3858
|
state: e,
|
|
3859
3859
|
dragStartTime: t,
|
|
3860
3860
|
shouldUseTimeDampening: n,
|
|
@@ -3879,7 +3879,7 @@ var pa = ({
|
|
|
3879
3879
|
}
|
|
3880
3880
|
const d = ra({
|
|
3881
3881
|
center: s,
|
|
3882
|
-
destination:
|
|
3882
|
+
destination: j(e.impact),
|
|
3883
3883
|
droppables: e.dimensions.droppables
|
|
3884
3884
|
});
|
|
3885
3885
|
if (!d)
|
|
@@ -3896,17 +3896,17 @@ var pa = ({
|
|
|
3896
3896
|
}, ga = ({
|
|
3897
3897
|
scrollWindow: e,
|
|
3898
3898
|
scrollDroppable: t,
|
|
3899
|
-
getAutoScrollerOptions: n = () =>
|
|
3899
|
+
getAutoScrollerOptions: n = () => Ae
|
|
3900
3900
|
}) => {
|
|
3901
3901
|
const r = Ie(e), o = Ie(t);
|
|
3902
3902
|
let i = null;
|
|
3903
3903
|
const s = (d) => {
|
|
3904
|
-
i || (process.env.NODE_ENV !== "production" ?
|
|
3904
|
+
i || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fluid scroll if not dragging") : f());
|
|
3905
3905
|
const {
|
|
3906
3906
|
shouldUseTimeDampening: p,
|
|
3907
3907
|
dragStartTime: l
|
|
3908
3908
|
} = i;
|
|
3909
|
-
|
|
3909
|
+
tr({
|
|
3910
3910
|
state: d,
|
|
3911
3911
|
scrollWindow: r,
|
|
3912
3912
|
scrollDroppable: o,
|
|
@@ -3917,13 +3917,13 @@ var pa = ({
|
|
|
3917
3917
|
};
|
|
3918
3918
|
return {
|
|
3919
3919
|
start: (d) => {
|
|
3920
|
-
Le(), i && (process.env.NODE_ENV !== "production" ?
|
|
3920
|
+
Le(), i && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot start auto scrolling when already started") : f());
|
|
3921
3921
|
const p = Date.now();
|
|
3922
3922
|
let l = !1;
|
|
3923
3923
|
const u = () => {
|
|
3924
3924
|
l = !0;
|
|
3925
3925
|
};
|
|
3926
|
-
|
|
3926
|
+
tr({
|
|
3927
3927
|
state: d,
|
|
3928
3928
|
dragStartTime: 0,
|
|
3929
3929
|
shouldUseTimeDampening: !1,
|
|
@@ -3946,33 +3946,33 @@ var pa = ({
|
|
|
3946
3946
|
scrollWindow: n
|
|
3947
3947
|
}) => {
|
|
3948
3948
|
const r = (c, a) => {
|
|
3949
|
-
const d =
|
|
3949
|
+
const d = k(c.current.client.selection, a);
|
|
3950
3950
|
e({
|
|
3951
3951
|
client: d
|
|
3952
3952
|
});
|
|
3953
3953
|
}, o = (c, a) => {
|
|
3954
|
-
if (!
|
|
3954
|
+
if (!dn(c, a))
|
|
3955
3955
|
return a;
|
|
3956
3956
|
const d = ua(c, a);
|
|
3957
3957
|
if (!d)
|
|
3958
3958
|
return t(c.descriptor.id, a), null;
|
|
3959
|
-
const p =
|
|
3960
|
-
return t(c.descriptor.id, p),
|
|
3959
|
+
const p = q(a, d);
|
|
3960
|
+
return t(c.descriptor.id, p), q(a, p);
|
|
3961
3961
|
}, i = (c, a, d) => {
|
|
3962
|
-
if (!c || !
|
|
3962
|
+
if (!c || !ln(a, d))
|
|
3963
3963
|
return d;
|
|
3964
3964
|
const p = da(a, d);
|
|
3965
3965
|
if (!p)
|
|
3966
3966
|
return n(d), null;
|
|
3967
|
-
const l =
|
|
3968
|
-
return n(l),
|
|
3967
|
+
const l = q(d, p);
|
|
3968
|
+
return n(l), q(d, l);
|
|
3969
3969
|
};
|
|
3970
3970
|
return (c) => {
|
|
3971
3971
|
const a = c.scrollJumpRequest;
|
|
3972
3972
|
if (!a)
|
|
3973
3973
|
return;
|
|
3974
|
-
const d =
|
|
3975
|
-
d || (process.env.NODE_ENV !== "production" ?
|
|
3974
|
+
const d = j(c.impact);
|
|
3975
|
+
d || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot perform a jump scroll when there is no destination") : f());
|
|
3976
3976
|
const p = o(c.dimensions.droppables[d], a);
|
|
3977
3977
|
if (!p)
|
|
3978
3978
|
return;
|
|
@@ -4015,7 +4015,7 @@ const fe = "data-rfd", ge = (() => {
|
|
|
4015
4015
|
draggableId: `${e}-draggable-id`,
|
|
4016
4016
|
contextId: `${e}-context-id`
|
|
4017
4017
|
};
|
|
4018
|
-
})(),
|
|
4018
|
+
})(), kt = (() => {
|
|
4019
4019
|
const e = `${fe}-draggable`;
|
|
4020
4020
|
return {
|
|
4021
4021
|
base: e,
|
|
@@ -4029,7 +4029,7 @@ const fe = "data-rfd", ge = (() => {
|
|
|
4029
4029
|
contextId: `${e}-context-id`,
|
|
4030
4030
|
id: `${e}-id`
|
|
4031
4031
|
};
|
|
4032
|
-
})(),
|
|
4032
|
+
})(), nr = {
|
|
4033
4033
|
contextId: `${fe}-scroll-container-context-id`
|
|
4034
4034
|
}, va = (e) => (t) => `[${t}="${e}"]`, Ee = (e, t) => e.map((n) => {
|
|
4035
4035
|
const r = n.styles[t];
|
|
@@ -4059,7 +4059,7 @@ var Ea = (e) => {
|
|
|
4059
4059
|
transition: ${xe.outOfTheWay};
|
|
4060
4060
|
`;
|
|
4061
4061
|
return {
|
|
4062
|
-
selector: t(
|
|
4062
|
+
selector: t(kt.contextId),
|
|
4063
4063
|
styles: {
|
|
4064
4064
|
dragging: c,
|
|
4065
4065
|
dropAnimating: c,
|
|
@@ -4093,30 +4093,30 @@ var Ea = (e) => {
|
|
|
4093
4093
|
userCancel: Ee(s, "userCancel")
|
|
4094
4094
|
};
|
|
4095
4095
|
};
|
|
4096
|
-
const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Vo : te,
|
|
4096
|
+
const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Vo : te, Ct = () => {
|
|
4097
4097
|
const e = document.querySelector("head");
|
|
4098
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
4099
|
-
},
|
|
4098
|
+
return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find the head to append a style to") : f()), e;
|
|
4099
|
+
}, rr = (e) => {
|
|
4100
4100
|
const t = document.createElement("style");
|
|
4101
4101
|
return e && t.setAttribute("nonce", e), t.type = "text/css", t;
|
|
4102
4102
|
};
|
|
4103
4103
|
function Da(e, t) {
|
|
4104
4104
|
const n = O(() => Ea(e), [e]), r = B(null), o = B(null), i = D($((l) => {
|
|
4105
4105
|
const u = o.current;
|
|
4106
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
4106
|
+
u || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot set dynamic style element if it is not set") : f()), u.textContent = l;
|
|
4107
4107
|
}), []), s = D((l) => {
|
|
4108
4108
|
const u = r.current;
|
|
4109
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
4109
|
+
u || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot set dynamic style element if it is not set") : f()), u.textContent = l;
|
|
4110
4110
|
}, []);
|
|
4111
4111
|
Y(() => {
|
|
4112
|
-
!r.current && !o.current || (process.env.NODE_ENV !== "production" ?
|
|
4113
|
-
const l =
|
|
4114
|
-
return r.current = l, o.current = u, l.setAttribute(`${fe}-always`, e), u.setAttribute(`${fe}-dynamic`, e),
|
|
4115
|
-
const
|
|
4112
|
+
!r.current && !o.current || (process.env.NODE_ENV !== "production" ? f(!1, "style elements already mounted") : f());
|
|
4113
|
+
const l = rr(t), u = rr(t);
|
|
4114
|
+
return r.current = l, o.current = u, l.setAttribute(`${fe}-always`, e), u.setAttribute(`${fe}-dynamic`, e), Ct().appendChild(l), Ct().appendChild(u), s(n.always), i(n.resting), () => {
|
|
4115
|
+
const g = (m) => {
|
|
4116
4116
|
const b = m.current;
|
|
4117
|
-
b || (process.env.NODE_ENV !== "production" ?
|
|
4117
|
+
b || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot unmount ref as it is not set") : f()), Ct().removeChild(b), m.current = null;
|
|
4118
4118
|
};
|
|
4119
|
-
|
|
4119
|
+
g(r), g(o);
|
|
4120
4120
|
};
|
|
4121
4121
|
}, [t, s, i, n.always, n.resting, e]);
|
|
4122
4122
|
const c = D(() => i(n.dragging), [i, n.dragging]), a = D((l) => {
|
|
@@ -4149,20 +4149,20 @@ function yo(e, t) {
|
|
|
4149
4149
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && R(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
|
|
4150
4150
|
}
|
|
4151
4151
|
function Na(e) {
|
|
4152
|
-
const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u,
|
|
4152
|
+
const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u, g) {
|
|
4153
4153
|
const m = {
|
|
4154
4154
|
id: u,
|
|
4155
|
-
focus:
|
|
4155
|
+
focus: g
|
|
4156
4156
|
};
|
|
4157
4157
|
return t.current[u] = m, function() {
|
|
4158
4158
|
const h = t.current;
|
|
4159
4159
|
h[u] !== m && delete h[u];
|
|
4160
4160
|
};
|
|
4161
4161
|
}, []), s = D(function(u) {
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4164
|
-
}, [e]), c = D(function(u,
|
|
4165
|
-
n.current === u && (n.current =
|
|
4162
|
+
const g = yo(e, u);
|
|
4163
|
+
g && g !== document.activeElement && g.focus();
|
|
4164
|
+
}, [e]), c = D(function(u, g) {
|
|
4165
|
+
n.current === u && (n.current = g);
|
|
4166
4166
|
}, []), a = D(function() {
|
|
4167
4167
|
r.current || o.current && (r.current = requestAnimationFrame(() => {
|
|
4168
4168
|
r.current = null;
|
|
@@ -4171,8 +4171,8 @@ function Na(e) {
|
|
|
4171
4171
|
}));
|
|
4172
4172
|
}, [s]), d = D(function(u) {
|
|
4173
4173
|
n.current = null;
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4174
|
+
const g = document.activeElement;
|
|
4175
|
+
g && g.getAttribute(ge.draggableId) === u && (n.current = u);
|
|
4176
4176
|
}, []);
|
|
4177
4177
|
return Y(() => (o.current = !0, function() {
|
|
4178
4178
|
o.current = !1;
|
|
@@ -4192,8 +4192,8 @@ function xa() {
|
|
|
4192
4192
|
}, t = [];
|
|
4193
4193
|
function n(l) {
|
|
4194
4194
|
return t.push(l), function() {
|
|
4195
|
-
const
|
|
4196
|
-
|
|
4195
|
+
const g = t.indexOf(l);
|
|
4196
|
+
g !== -1 && t.splice(g, 1);
|
|
4197
4197
|
};
|
|
4198
4198
|
}
|
|
4199
4199
|
function r(l) {
|
|
@@ -4204,7 +4204,7 @@ function xa() {
|
|
|
4204
4204
|
}
|
|
4205
4205
|
function i(l) {
|
|
4206
4206
|
const u = o(l);
|
|
4207
|
-
return u || (process.env.NODE_ENV !== "production" ?
|
|
4207
|
+
return u || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot find draggable entry with id [${l}]`) : f()), u;
|
|
4208
4208
|
}
|
|
4209
4209
|
const s = {
|
|
4210
4210
|
register: (l) => {
|
|
@@ -4214,12 +4214,12 @@ function xa() {
|
|
|
4214
4214
|
});
|
|
4215
4215
|
},
|
|
4216
4216
|
update: (l, u) => {
|
|
4217
|
-
const
|
|
4218
|
-
|
|
4217
|
+
const g = e.draggables[u.descriptor.id];
|
|
4218
|
+
g && g.uniqueId === l.uniqueId && (delete e.draggables[u.descriptor.id], e.draggables[l.descriptor.id] = l);
|
|
4219
4219
|
},
|
|
4220
4220
|
unregister: (l) => {
|
|
4221
|
-
const u = l.descriptor.id,
|
|
4222
|
-
|
|
4221
|
+
const u = l.descriptor.id, g = o(u);
|
|
4222
|
+
g && l.uniqueId === g.uniqueId && (delete e.draggables[u], e.droppables[l.descriptor.droppableId] && r({
|
|
4223
4223
|
type: "REMOVAL",
|
|
4224
4224
|
value: l
|
|
4225
4225
|
}));
|
|
@@ -4234,7 +4234,7 @@ function xa() {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
function a(l) {
|
|
4236
4236
|
const u = c(l);
|
|
4237
|
-
return u || (process.env.NODE_ENV !== "production" ?
|
|
4237
|
+
return u || (process.env.NODE_ENV !== "production" ? f(!1, `Cannot find droppable entry with id [${l}]`) : f()), u;
|
|
4238
4238
|
}
|
|
4239
4239
|
const d = {
|
|
4240
4240
|
register: (l) => {
|
|
@@ -4265,9 +4265,9 @@ function Ia() {
|
|
|
4265
4265
|
e.clean();
|
|
4266
4266
|
}, [e]), e;
|
|
4267
4267
|
}
|
|
4268
|
-
var
|
|
4268
|
+
var un = L.createContext(null), Pe = () => {
|
|
4269
4269
|
const e = document.body;
|
|
4270
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
4270
|
+
return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find document.body") : f()), e;
|
|
4271
4271
|
};
|
|
4272
4272
|
const Ca = {
|
|
4273
4273
|
position: "absolute",
|
|
@@ -4280,11 +4280,11 @@ const Ca = {
|
|
|
4280
4280
|
clip: "rect(0 0 0 0)",
|
|
4281
4281
|
"clip-path": "inset(100%)"
|
|
4282
4282
|
}, Oa = (e) => `rfd-announcement-${e}`;
|
|
4283
|
-
function
|
|
4283
|
+
function Sa(e) {
|
|
4284
4284
|
const t = O(() => Oa(e), [e]), n = B(null);
|
|
4285
4285
|
return te(function() {
|
|
4286
4286
|
const i = document.createElement("div");
|
|
4287
|
-
return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"),
|
|
4287
|
+
return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), Ke(i.style, Ca), Pe().appendChild(i), function() {
|
|
4288
4288
|
setTimeout(function() {
|
|
4289
4289
|
const a = Pe();
|
|
4290
4290
|
a.contains(i) && a.removeChild(i), i === n.current && (n.current = null);
|
|
@@ -4308,26 +4308,26 @@ function wa(e) {
|
|
|
4308
4308
|
`);
|
|
4309
4309
|
}, []);
|
|
4310
4310
|
}
|
|
4311
|
-
const
|
|
4311
|
+
const wa = {
|
|
4312
4312
|
separator: "::"
|
|
4313
4313
|
};
|
|
4314
|
-
function
|
|
4314
|
+
function pn(e, t = wa) {
|
|
4315
4315
|
const n = L.useId();
|
|
4316
4316
|
return O(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4318
|
+
function _a({
|
|
4319
4319
|
contextId: e,
|
|
4320
4320
|
uniqueId: t
|
|
4321
4321
|
}) {
|
|
4322
4322
|
return `rfd-hidden-text-${e}-${t}`;
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function Aa({
|
|
4325
4325
|
contextId: e,
|
|
4326
4326
|
text: t
|
|
4327
4327
|
}) {
|
|
4328
|
-
const n =
|
|
4328
|
+
const n = pn("hidden-text", {
|
|
4329
4329
|
separator: "-"
|
|
4330
|
-
}), r = O(() =>
|
|
4330
|
+
}), r = O(() => _a({
|
|
4331
4331
|
contextId: e,
|
|
4332
4332
|
uniqueId: n
|
|
4333
4333
|
}), [n, e]);
|
|
@@ -4339,12 +4339,12 @@ function _a({
|
|
|
4339
4339
|
};
|
|
4340
4340
|
}, [r, t]), r;
|
|
4341
4341
|
}
|
|
4342
|
-
var
|
|
4342
|
+
var it = L.createContext(null), Pa = {
|
|
4343
4343
|
react: "^18.0.0 || ^19.0.0"
|
|
4344
4344
|
};
|
|
4345
|
-
const Ra = /(\d+)\.(\d+)\.(\d+)/,
|
|
4345
|
+
const Ra = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
|
|
4346
4346
|
const t = Ra.exec(e);
|
|
4347
|
-
t == null && (process.env.NODE_ENV !== "production" ?
|
|
4347
|
+
t == null && (process.env.NODE_ENV !== "production" ? f(!1, `Unable to parse React version ${e}`) : f());
|
|
4348
4348
|
const n = Number(t[1]), r = Number(t[2]), o = Number(t[3]);
|
|
4349
4349
|
return {
|
|
4350
4350
|
major: n,
|
|
@@ -4354,7 +4354,7 @@ const Ra = /(\d+)\.(\d+)\.(\d+)/, nr = (e) => {
|
|
|
4354
4354
|
};
|
|
4355
4355
|
}, Ta = (e, t) => t.major > e.major ? !0 : t.major < e.major ? !1 : t.minor > e.minor ? !0 : t.minor < e.minor ? !1 : t.patch >= e.patch;
|
|
4356
4356
|
var Ba = (e, t) => {
|
|
4357
|
-
const n =
|
|
4357
|
+
const n = or(e), r = or(t);
|
|
4358
4358
|
Ta(n, r) || process.env.NODE_ENV !== "production" && R(`
|
|
4359
4359
|
React version: [${r.raw}]
|
|
4360
4360
|
does not satisfy expected peer dependency version: [${n.raw}]
|
|
@@ -4362,7 +4362,7 @@ var Ba = (e, t) => {
|
|
|
4362
4362
|
This can result in run time bugs, and even fatal crashes
|
|
4363
4363
|
`);
|
|
4364
4364
|
};
|
|
4365
|
-
const
|
|
4365
|
+
const Ot = `
|
|
4366
4366
|
We expect a html5 doctype: <!doctype html>
|
|
4367
4367
|
This is to ensure consistent browser layout and measurement
|
|
4368
4368
|
|
|
@@ -4374,31 +4374,31 @@ var Va = (e) => {
|
|
|
4374
4374
|
process.env.NODE_ENV !== "production" && R(`
|
|
4375
4375
|
No <!doctype html> found.
|
|
4376
4376
|
|
|
4377
|
-
${
|
|
4377
|
+
${Ot}
|
|
4378
4378
|
`);
|
|
4379
4379
|
return;
|
|
4380
4380
|
}
|
|
4381
4381
|
t.name.toLowerCase() !== "html" && process.env.NODE_ENV !== "production" && R(`
|
|
4382
4382
|
Unexpected <!doctype> found: (${t.name})
|
|
4383
4383
|
|
|
4384
|
-
${
|
|
4384
|
+
${Ot}
|
|
4385
4385
|
`), t.publicId !== "" && process.env.NODE_ENV !== "production" && R(`
|
|
4386
4386
|
Unexpected <!doctype> publicId found: (${t.publicId})
|
|
4387
4387
|
A html5 doctype does not have a publicId
|
|
4388
4388
|
|
|
4389
|
-
${
|
|
4389
|
+
${Ot}
|
|
4390
4390
|
`);
|
|
4391
4391
|
};
|
|
4392
|
-
function
|
|
4392
|
+
function fn(e) {
|
|
4393
4393
|
process.env.NODE_ENV !== "production" && e();
|
|
4394
4394
|
}
|
|
4395
4395
|
function Ge(e, t) {
|
|
4396
|
-
|
|
4396
|
+
fn(() => {
|
|
4397
4397
|
te(() => {
|
|
4398
4398
|
try {
|
|
4399
4399
|
e();
|
|
4400
4400
|
} catch (n) {
|
|
4401
|
-
|
|
4401
|
+
Vt(`
|
|
4402
4402
|
A setup problem was encountered.
|
|
4403
4403
|
|
|
4404
4404
|
> ${n.message}
|
|
@@ -4412,7 +4412,7 @@ function La() {
|
|
|
4412
4412
|
Ba(Pa.react, L.version), Va(document);
|
|
4413
4413
|
}, []);
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function gn(e) {
|
|
4416
4416
|
const t = B(e);
|
|
4417
4417
|
return te(() => {
|
|
4418
4418
|
t.current = e;
|
|
@@ -4427,14 +4427,14 @@ function Ma() {
|
|
|
4427
4427
|
return s === e;
|
|
4428
4428
|
}
|
|
4429
4429
|
function r(s) {
|
|
4430
|
-
e && (process.env.NODE_ENV !== "production" ?
|
|
4430
|
+
e && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot claim lock as it is already claimed") : f());
|
|
4431
4431
|
const c = {
|
|
4432
4432
|
abandon: s
|
|
4433
4433
|
};
|
|
4434
4434
|
return e = c, c;
|
|
4435
4435
|
}
|
|
4436
4436
|
function o() {
|
|
4437
|
-
e || (process.env.NODE_ENV !== "production" ?
|
|
4437
|
+
e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot release lock when there is no lock") : f()), e = null;
|
|
4438
4438
|
}
|
|
4439
4439
|
function i() {
|
|
4440
4440
|
e && (e.abandon(), o());
|
|
@@ -4450,21 +4450,21 @@ function Ma() {
|
|
|
4450
4450
|
function Re(e) {
|
|
4451
4451
|
return e.phase === "IDLE" || e.phase === "DROP_ANIMATING" ? !1 : e.isDragging;
|
|
4452
4452
|
}
|
|
4453
|
-
const $a = 9, Ga = 13,
|
|
4453
|
+
const $a = 9, Ga = 13, mn = 27, Eo = 32, ka = 33, Fa = 34, Wa = 35, Ua = 36, Ha = 37, za = 38, qa = 39, ja = 40, Ya = {
|
|
4454
4454
|
[Ga]: !0,
|
|
4455
4455
|
[$a]: !0
|
|
4456
4456
|
};
|
|
4457
4457
|
var Do = (e) => {
|
|
4458
4458
|
Ya[e.keyCode] && e.preventDefault();
|
|
4459
4459
|
};
|
|
4460
|
-
const
|
|
4460
|
+
const st = (() => {
|
|
4461
4461
|
const e = "visibilitychange";
|
|
4462
4462
|
return typeof document > "u" ? e : [e, `ms${e}`, `webkit${e}`, `moz${e}`, `o${e}`].find((r) => `on${r}` in document) || e;
|
|
4463
|
-
})(), No = 0,
|
|
4463
|
+
})(), No = 0, ir = 5;
|
|
4464
4464
|
function Xa(e, t) {
|
|
4465
|
-
return Math.abs(t.x - e.x) >=
|
|
4465
|
+
return Math.abs(t.x - e.x) >= ir || Math.abs(t.y - e.y) >= ir;
|
|
4466
4466
|
}
|
|
4467
|
-
const
|
|
4467
|
+
const sr = {
|
|
4468
4468
|
type: "IDLE"
|
|
4469
4469
|
};
|
|
4470
4470
|
function Ka({
|
|
@@ -4491,7 +4491,7 @@ function Ka({
|
|
|
4491
4491
|
o.preventDefault(), d.actions.move(a);
|
|
4492
4492
|
return;
|
|
4493
4493
|
}
|
|
4494
|
-
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
4494
|
+
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot be IDLE") : f());
|
|
4495
4495
|
const p = d.point;
|
|
4496
4496
|
if (!Xa(p, a))
|
|
4497
4497
|
return;
|
|
@@ -4526,7 +4526,7 @@ function Ka({
|
|
|
4526
4526
|
e();
|
|
4527
4527
|
return;
|
|
4528
4528
|
}
|
|
4529
|
-
if (o.keyCode ===
|
|
4529
|
+
if (o.keyCode === mn) {
|
|
4530
4530
|
o.preventDefault(), e();
|
|
4531
4531
|
return;
|
|
4532
4532
|
}
|
|
@@ -4548,19 +4548,19 @@ function Ka({
|
|
|
4548
4548
|
eventName: "webkitmouseforcedown",
|
|
4549
4549
|
fn: (o) => {
|
|
4550
4550
|
const i = n();
|
|
4551
|
-
if (i.type === "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4551
|
+
if (i.type === "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase") : f()), i.actions.shouldRespectForcePress()) {
|
|
4552
4552
|
e();
|
|
4553
4553
|
return;
|
|
4554
4554
|
}
|
|
4555
4555
|
o.preventDefault();
|
|
4556
4556
|
}
|
|
4557
4557
|
}, {
|
|
4558
|
-
eventName:
|
|
4558
|
+
eventName: st,
|
|
4559
4559
|
fn: e
|
|
4560
4560
|
}];
|
|
4561
4561
|
}
|
|
4562
4562
|
function Ja(e) {
|
|
4563
|
-
const t = B(
|
|
4563
|
+
const t = B(sr), n = B(re), r = O(() => ({
|
|
4564
4564
|
eventName: "mousedown",
|
|
4565
4565
|
fn: function(l) {
|
|
4566
4566
|
if (l.defaultPrevented || l.button !== No || l.ctrlKey || l.metaKey || l.shiftKey || l.altKey)
|
|
@@ -4568,17 +4568,17 @@ function Ja(e) {
|
|
|
4568
4568
|
const u = e.findClosestDraggableId(l);
|
|
4569
4569
|
if (!u)
|
|
4570
4570
|
return;
|
|
4571
|
-
const
|
|
4571
|
+
const g = e.tryGetLock(u, s, {
|
|
4572
4572
|
sourceEvent: l
|
|
4573
4573
|
});
|
|
4574
|
-
if (!
|
|
4574
|
+
if (!g)
|
|
4575
4575
|
return;
|
|
4576
4576
|
l.preventDefault();
|
|
4577
4577
|
const m = {
|
|
4578
4578
|
x: l.clientX,
|
|
4579
4579
|
y: l.clientY
|
|
4580
4580
|
};
|
|
4581
|
-
n.current(), d(
|
|
4581
|
+
n.current(), d(g, m);
|
|
4582
4582
|
}
|
|
4583
4583
|
}), [e]), o = O(() => ({
|
|
4584
4584
|
eventName: "webkitmouseforcewillbegin",
|
|
@@ -4598,7 +4598,7 @@ function Ja(e) {
|
|
|
4598
4598
|
};
|
|
4599
4599
|
n.current = K(window, [o, r], l);
|
|
4600
4600
|
}, [o, r]), s = D(() => {
|
|
4601
|
-
t.current.type !== "IDLE" && (t.current =
|
|
4601
|
+
t.current.type !== "IDLE" && (t.current = sr, n.current(), i());
|
|
4602
4602
|
}, [i]), c = D(() => {
|
|
4603
4603
|
const p = t.current;
|
|
4604
4604
|
s(), p.type === "DRAGGING" && p.actions.cancel({
|
|
@@ -4612,13 +4612,13 @@ function Ja(e) {
|
|
|
4612
4612
|
cancel: c,
|
|
4613
4613
|
completed: s,
|
|
4614
4614
|
getPhase: () => t.current,
|
|
4615
|
-
setPhase: (
|
|
4616
|
-
t.current =
|
|
4615
|
+
setPhase: (g) => {
|
|
4616
|
+
t.current = g;
|
|
4617
4617
|
}
|
|
4618
4618
|
});
|
|
4619
4619
|
n.current = K(window, u, l);
|
|
4620
4620
|
}, [c, s]), d = D(function(l, u) {
|
|
4621
|
-
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4621
|
+
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Expected to move from IDLE to PENDING drag") : f()), t.current = {
|
|
4622
4622
|
type: "PENDING",
|
|
4623
4623
|
point: u,
|
|
4624
4624
|
actions: l
|
|
@@ -4633,8 +4633,8 @@ function Ja(e) {
|
|
|
4633
4633
|
function Za() {
|
|
4634
4634
|
}
|
|
4635
4635
|
const Qa = {
|
|
4636
|
-
[ka]: !0,
|
|
4637
4636
|
[Fa]: !0,
|
|
4637
|
+
[ka]: !0,
|
|
4638
4638
|
[Ua]: !0,
|
|
4639
4639
|
[Wa]: !0
|
|
4640
4640
|
};
|
|
@@ -4648,7 +4648,7 @@ function el(e, t) {
|
|
|
4648
4648
|
return [{
|
|
4649
4649
|
eventName: "keydown",
|
|
4650
4650
|
fn: (o) => {
|
|
4651
|
-
if (o.keyCode ===
|
|
4651
|
+
if (o.keyCode === mn) {
|
|
4652
4652
|
o.preventDefault(), n();
|
|
4653
4653
|
return;
|
|
4654
4654
|
}
|
|
@@ -4656,7 +4656,7 @@ function el(e, t) {
|
|
|
4656
4656
|
o.preventDefault(), r();
|
|
4657
4657
|
return;
|
|
4658
4658
|
}
|
|
4659
|
-
if (o.keyCode ===
|
|
4659
|
+
if (o.keyCode === ja) {
|
|
4660
4660
|
o.preventDefault(), e.moveDown();
|
|
4661
4661
|
return;
|
|
4662
4662
|
}
|
|
@@ -4664,7 +4664,7 @@ function el(e, t) {
|
|
|
4664
4664
|
o.preventDefault(), e.moveUp();
|
|
4665
4665
|
return;
|
|
4666
4666
|
}
|
|
4667
|
-
if (o.keyCode ===
|
|
4667
|
+
if (o.keyCode === qa) {
|
|
4668
4668
|
o.preventDefault(), e.moveRight();
|
|
4669
4669
|
return;
|
|
4670
4670
|
}
|
|
@@ -4700,7 +4700,7 @@ function el(e, t) {
|
|
|
4700
4700
|
passive: !0
|
|
4701
4701
|
}
|
|
4702
4702
|
}, {
|
|
4703
|
-
eventName:
|
|
4703
|
+
eventName: st,
|
|
4704
4704
|
fn: n
|
|
4705
4705
|
}];
|
|
4706
4706
|
}
|
|
@@ -4723,7 +4723,7 @@ function tl(e) {
|
|
|
4723
4723
|
const d = c.snapLift();
|
|
4724
4724
|
t.current();
|
|
4725
4725
|
function p() {
|
|
4726
|
-
a || (process.env.NODE_ENV !== "production" ?
|
|
4726
|
+
a || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot stop capturing a keyboard drag when not capturing") : f()), a = !1, t.current(), r();
|
|
4727
4727
|
}
|
|
4728
4728
|
t.current = K(window, el(d, p), {
|
|
4729
4729
|
capture: !0,
|
|
@@ -4743,7 +4743,7 @@ function tl(e) {
|
|
|
4743
4743
|
};
|
|
4744
4744
|
}, [r]);
|
|
4745
4745
|
}
|
|
4746
|
-
const
|
|
4746
|
+
const St = {
|
|
4747
4747
|
type: "IDLE"
|
|
4748
4748
|
}, nl = 120, rl = 0.15;
|
|
4749
4749
|
function ol({
|
|
@@ -4768,10 +4768,10 @@ function ol({
|
|
|
4768
4768
|
e();
|
|
4769
4769
|
return;
|
|
4770
4770
|
}
|
|
4771
|
-
n.keyCode ===
|
|
4771
|
+
n.keyCode === mn && n.preventDefault(), e();
|
|
4772
4772
|
}
|
|
4773
4773
|
}, {
|
|
4774
|
-
eventName:
|
|
4774
|
+
eventName: st,
|
|
4775
4775
|
fn: e
|
|
4776
4776
|
}];
|
|
4777
4777
|
}
|
|
@@ -4826,7 +4826,7 @@ function il({
|
|
|
4826
4826
|
eventName: "touchforcechange",
|
|
4827
4827
|
fn: (r) => {
|
|
4828
4828
|
const o = n();
|
|
4829
|
-
o.type === "IDLE" && (process.env.NODE_ENV,
|
|
4829
|
+
o.type === "IDLE" && (process.env.NODE_ENV, f());
|
|
4830
4830
|
const i = r.touches[0];
|
|
4831
4831
|
if (!i || !(i.force >= rl))
|
|
4832
4832
|
return;
|
|
@@ -4846,29 +4846,29 @@ function il({
|
|
|
4846
4846
|
r.preventDefault();
|
|
4847
4847
|
}
|
|
4848
4848
|
}, {
|
|
4849
|
-
eventName:
|
|
4849
|
+
eventName: st,
|
|
4850
4850
|
fn: e
|
|
4851
4851
|
}];
|
|
4852
4852
|
}
|
|
4853
4853
|
function sl(e) {
|
|
4854
|
-
const t = B(
|
|
4854
|
+
const t = B(St), n = B(re), r = D(function() {
|
|
4855
4855
|
return t.current;
|
|
4856
|
-
}, []), o = D(function(
|
|
4857
|
-
t.current =
|
|
4856
|
+
}, []), o = D(function(g) {
|
|
4857
|
+
t.current = g;
|
|
4858
4858
|
}, []), i = O(() => ({
|
|
4859
4859
|
eventName: "touchstart",
|
|
4860
|
-
fn: function(
|
|
4861
|
-
if (
|
|
4860
|
+
fn: function(g) {
|
|
4861
|
+
if (g.defaultPrevented)
|
|
4862
4862
|
return;
|
|
4863
|
-
const m = e.findClosestDraggableId(
|
|
4863
|
+
const m = e.findClosestDraggableId(g);
|
|
4864
4864
|
if (!m)
|
|
4865
4865
|
return;
|
|
4866
4866
|
const b = e.tryGetLock(m, c, {
|
|
4867
|
-
sourceEvent:
|
|
4867
|
+
sourceEvent: g
|
|
4868
4868
|
});
|
|
4869
4869
|
if (!b)
|
|
4870
4870
|
return;
|
|
4871
|
-
const h =
|
|
4871
|
+
const h = g.touches[0], {
|
|
4872
4872
|
clientX: y,
|
|
4873
4873
|
clientY: v
|
|
4874
4874
|
} = h, I = {
|
|
@@ -4878,47 +4878,47 @@ function sl(e) {
|
|
|
4878
4878
|
n.current(), l(b, I);
|
|
4879
4879
|
}
|
|
4880
4880
|
}), [e]), s = D(function() {
|
|
4881
|
-
const
|
|
4881
|
+
const g = {
|
|
4882
4882
|
capture: !0,
|
|
4883
4883
|
passive: !1
|
|
4884
4884
|
};
|
|
4885
|
-
n.current = K(window, [i],
|
|
4885
|
+
n.current = K(window, [i], g);
|
|
4886
4886
|
}, [i]), c = D(() => {
|
|
4887
4887
|
const u = t.current;
|
|
4888
|
-
u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(
|
|
4888
|
+
u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(St), n.current(), s());
|
|
4889
4889
|
}, [s, o]), a = D(() => {
|
|
4890
4890
|
const u = t.current;
|
|
4891
4891
|
c(), u.type === "DRAGGING" && u.actions.cancel({
|
|
4892
4892
|
shouldBlockNextClick: !0
|
|
4893
4893
|
}), u.type === "PENDING" && u.actions.abort();
|
|
4894
4894
|
}, [c]), d = D(function() {
|
|
4895
|
-
const
|
|
4895
|
+
const g = {
|
|
4896
4896
|
capture: !0,
|
|
4897
4897
|
passive: !1
|
|
4898
4898
|
}, m = {
|
|
4899
4899
|
cancel: a,
|
|
4900
4900
|
completed: c,
|
|
4901
4901
|
getPhase: r
|
|
4902
|
-
}, b = K(window, il(m),
|
|
4902
|
+
}, b = K(window, il(m), g), h = K(window, ol(m), g);
|
|
4903
4903
|
n.current = function() {
|
|
4904
4904
|
b(), h();
|
|
4905
4905
|
};
|
|
4906
4906
|
}, [a, r, c]), p = D(function() {
|
|
4907
|
-
const
|
|
4908
|
-
|
|
4909
|
-
const m =
|
|
4907
|
+
const g = r();
|
|
4908
|
+
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? f(!1, `Cannot start dragging from phase ${g.type}`) : f());
|
|
4909
|
+
const m = g.actions.fluidLift(g.point);
|
|
4910
4910
|
o({
|
|
4911
4911
|
type: "DRAGGING",
|
|
4912
4912
|
actions: m,
|
|
4913
4913
|
hasMoved: !1
|
|
4914
4914
|
});
|
|
4915
|
-
}, [r, o]), l = D(function(
|
|
4916
|
-
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4915
|
+
}, [r, o]), l = D(function(g, m) {
|
|
4916
|
+
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Expected to move from IDLE to PENDING drag") : f());
|
|
4917
4917
|
const b = setTimeout(p, nl);
|
|
4918
4918
|
o({
|
|
4919
4919
|
type: "PENDING",
|
|
4920
4920
|
point: m,
|
|
4921
|
-
actions:
|
|
4921
|
+
actions: g,
|
|
4922
4922
|
longPressTimerId: b
|
|
4923
4923
|
}), d();
|
|
4924
4924
|
}, [d, r, o, p]);
|
|
@@ -4926,7 +4926,7 @@ function sl(e) {
|
|
|
4926
4926
|
return s(), function() {
|
|
4927
4927
|
n.current();
|
|
4928
4928
|
const m = r();
|
|
4929
|
-
m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(
|
|
4929
|
+
m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(St));
|
|
4930
4930
|
};
|
|
4931
4931
|
}, [r, s, o]), Y(function() {
|
|
4932
4932
|
return K(window, [{
|
|
@@ -4941,10 +4941,10 @@ function sl(e) {
|
|
|
4941
4941
|
}, []);
|
|
4942
4942
|
}
|
|
4943
4943
|
function cl(e) {
|
|
4944
|
-
|
|
4945
|
-
const t =
|
|
4944
|
+
fn(() => {
|
|
4945
|
+
const t = gn(e);
|
|
4946
4946
|
Ge(() => {
|
|
4947
|
-
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ?
|
|
4947
|
+
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot change the amount of sensor hooks after mounting") : f(!1));
|
|
4948
4948
|
});
|
|
4949
4949
|
});
|
|
4950
4950
|
}
|
|
@@ -4990,7 +4990,7 @@ function hl(e, t) {
|
|
|
4990
4990
|
return n ? n.getAttribute(ge.draggableId) : null;
|
|
4991
4991
|
}
|
|
4992
4992
|
function bl(e, t) {
|
|
4993
|
-
const n = `[${
|
|
4993
|
+
const n = `[${kt.contextId}="${e}"]`, o = bo(document, n).find((i) => i.getAttribute(kt.id) === t);
|
|
4994
4994
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("Draggable element is not a HTMLElement"), null) : null;
|
|
4995
4995
|
}
|
|
4996
4996
|
function vl(e) {
|
|
@@ -5059,14 +5059,14 @@ function yl({
|
|
|
5059
5059
|
function u() {
|
|
5060
5060
|
return a.options.shouldRespectForcePress;
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function g() {
|
|
5063
5063
|
return e.isActive(p);
|
|
5064
5064
|
}
|
|
5065
5065
|
function m(E, x) {
|
|
5066
5066
|
Ue({
|
|
5067
5067
|
expected: E,
|
|
5068
5068
|
phase: l,
|
|
5069
|
-
isLockActive:
|
|
5069
|
+
isLockActive: g,
|
|
5070
5070
|
shouldWarn: !0
|
|
5071
5071
|
}) && n.dispatch(x());
|
|
5072
5072
|
}
|
|
@@ -5075,8 +5075,8 @@ function yl({
|
|
|
5075
5075
|
function x() {
|
|
5076
5076
|
e.release(), l = "COMPLETED";
|
|
5077
5077
|
}
|
|
5078
|
-
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ?
|
|
5079
|
-
function
|
|
5078
|
+
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? f(!1, `Cannot lift in phase ${l}`) : f()), n.dispatch(ic(E.liftActionArgs)), l = "DRAGGING";
|
|
5079
|
+
function _(P, U = {
|
|
5080
5080
|
shouldBlockNextClick: !1
|
|
5081
5081
|
}) {
|
|
5082
5082
|
if (E.cleanup(), U.shouldBlockNextClick) {
|
|
@@ -5099,12 +5099,12 @@ function yl({
|
|
|
5099
5099
|
isActive: () => Ue({
|
|
5100
5100
|
expected: "DRAGGING",
|
|
5101
5101
|
phase: l,
|
|
5102
|
-
isLockActive:
|
|
5102
|
+
isLockActive: g,
|
|
5103
5103
|
shouldWarn: !1
|
|
5104
5104
|
}),
|
|
5105
5105
|
shouldRespectForcePress: u,
|
|
5106
|
-
drop: (P) =>
|
|
5107
|
-
cancel: (P) =>
|
|
5106
|
+
drop: (P) => _("DROP", P),
|
|
5107
|
+
cancel: (P) => _("CANCEL", P),
|
|
5108
5108
|
...E.actions
|
|
5109
5109
|
};
|
|
5110
5110
|
}
|
|
@@ -5150,7 +5150,7 @@ function yl({
|
|
|
5150
5150
|
Ue({
|
|
5151
5151
|
expected: "PRE_DRAG",
|
|
5152
5152
|
phase: l,
|
|
5153
|
-
isLockActive:
|
|
5153
|
+
isLockActive: g,
|
|
5154
5154
|
shouldWarn: !0
|
|
5155
5155
|
}) && e.release();
|
|
5156
5156
|
}
|
|
@@ -5158,7 +5158,7 @@ function yl({
|
|
|
5158
5158
|
isActive: () => Ue({
|
|
5159
5159
|
expected: "PRE_DRAG",
|
|
5160
5160
|
phase: l,
|
|
5161
|
-
isLockActive:
|
|
5161
|
+
isLockActive: g,
|
|
5162
5162
|
shouldWarn: !1
|
|
5163
5163
|
}),
|
|
5164
5164
|
shouldRespectForcePress: u,
|
|
@@ -5202,15 +5202,15 @@ function Dl({
|
|
|
5202
5202
|
const h = n.draggable.findById(b);
|
|
5203
5203
|
return h ? h.options : null;
|
|
5204
5204
|
}, [n.draggable]), u = D(function() {
|
|
5205
|
-
s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(
|
|
5206
|
-
}, [s, t]),
|
|
5205
|
+
s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(rn()));
|
|
5206
|
+
}, [s, t]), g = D(() => s.isClaimed(), [s]), m = O(() => ({
|
|
5207
5207
|
canGetLock: a,
|
|
5208
5208
|
tryGetLock: d,
|
|
5209
5209
|
findClosestDraggableId: p,
|
|
5210
5210
|
findOptionsForDraggable: l,
|
|
5211
5211
|
tryReleaseLock: u,
|
|
5212
|
-
isLockClaimed:
|
|
5213
|
-
}), [a, d, p, l, u,
|
|
5212
|
+
isLockClaimed: g
|
|
5213
|
+
}), [a, d, p, l, u, g]);
|
|
5214
5214
|
cl(i);
|
|
5215
5215
|
for (let b = 0; b < i.length; b++)
|
|
5216
5216
|
i[b](m);
|
|
@@ -5226,15 +5226,15 @@ const Nl = (e) => ({
|
|
|
5226
5226
|
onDragEnd: e.onDragEnd,
|
|
5227
5227
|
onDragUpdate: e.onDragUpdate
|
|
5228
5228
|
}), xl = (e) => ({
|
|
5229
|
-
...
|
|
5229
|
+
...Ae,
|
|
5230
5230
|
...e.autoScrollerOptions,
|
|
5231
5231
|
durationDampening: {
|
|
5232
|
-
...
|
|
5232
|
+
...Ae.durationDampening,
|
|
5233
5233
|
...e.autoScrollerOptions
|
|
5234
5234
|
}
|
|
5235
5235
|
});
|
|
5236
5236
|
function De(e) {
|
|
5237
|
-
return e.current || (process.env.NODE_ENV !== "production" ?
|
|
5237
|
+
return e.current || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find store from lazy ref") : f()), e.current;
|
|
5238
5238
|
}
|
|
5239
5239
|
function Il(e) {
|
|
5240
5240
|
const {
|
|
@@ -5245,25 +5245,25 @@ function Il(e) {
|
|
|
5245
5245
|
dragHandleUsageInstructions: i
|
|
5246
5246
|
} = e, s = B(null);
|
|
5247
5247
|
La();
|
|
5248
|
-
const c =
|
|
5248
|
+
const c = gn(e), a = D(() => Nl(c.current), [c]), d = D(() => xl(c.current), [c]), p = Sa(t), l = Aa({
|
|
5249
5249
|
contextId: t,
|
|
5250
5250
|
text: i
|
|
5251
|
-
}), u = Da(t, o),
|
|
5251
|
+
}), u = Da(t, o), g = D((T) => {
|
|
5252
5252
|
De(s).dispatch(T);
|
|
5253
|
-
}, []), m = O(() =>
|
|
5253
|
+
}, []), m = O(() => Sn({
|
|
5254
5254
|
publishWhileDragging: cc,
|
|
5255
5255
|
updateDroppableScroll: lc,
|
|
5256
5256
|
updateDroppableIsEnabled: dc,
|
|
5257
5257
|
updateDroppableIsCombineEnabled: uc,
|
|
5258
5258
|
collectionStarting: ac
|
|
5259
|
-
},
|
|
5259
|
+
}, g), [g]), b = Ia(), h = O(() => Qc(b, m), [b, m]), y = O(() => ha({
|
|
5260
5260
|
scrollWindow: ea,
|
|
5261
5261
|
scrollDroppable: h.scrollDroppable,
|
|
5262
5262
|
getAutoScrollerOptions: d,
|
|
5263
|
-
...
|
|
5263
|
+
...Sn({
|
|
5264
5264
|
move: ro
|
|
5265
|
-
},
|
|
5266
|
-
}), [h.scrollDroppable,
|
|
5265
|
+
}, g)
|
|
5266
|
+
}), [h.scrollDroppable, g, d]), v = Na(t), I = O(() => Xc({
|
|
5267
5267
|
announce: p,
|
|
5268
5268
|
autoScroller: y,
|
|
5269
5269
|
dimensionMarshal: h,
|
|
@@ -5274,7 +5274,7 @@ function Il(e) {
|
|
|
5274
5274
|
process.env.NODE_ENV !== "production" && s.current && s.current !== I && process.env.NODE_ENV !== "production" && R("unexpected store change"), s.current = I;
|
|
5275
5275
|
const N = D(() => {
|
|
5276
5276
|
const T = De(s);
|
|
5277
|
-
T.getState().phase !== "IDLE" && T.dispatch(
|
|
5277
|
+
T.getState().phase !== "IDLE" && T.dispatch(rn());
|
|
5278
5278
|
}, []), E = D(() => {
|
|
5279
5279
|
const T = De(s).getState();
|
|
5280
5280
|
return T.phase === "DROP_ANIMATING" ? !0 : T.phase === "IDLE" ? !1 : T.isDragging;
|
|
@@ -5283,25 +5283,25 @@ function Il(e) {
|
|
|
5283
5283
|
tryAbort: N
|
|
5284
5284
|
}), [E, N]);
|
|
5285
5285
|
n(x);
|
|
5286
|
-
const
|
|
5286
|
+
const _ = D((T) => fo(De(s).getState(), T), []), P = D(() => ce(De(s).getState()), []), U = O(() => ({
|
|
5287
5287
|
marshal: h,
|
|
5288
5288
|
focus: v,
|
|
5289
5289
|
contextId: t,
|
|
5290
|
-
canLift:
|
|
5290
|
+
canLift: _,
|
|
5291
5291
|
isMovementAllowed: P,
|
|
5292
5292
|
dragHandleUsageInstructionsId: l,
|
|
5293
5293
|
registry: b
|
|
5294
|
-
}), [t, h, l, v,
|
|
5294
|
+
}), [t, h, l, v, _, P, b]);
|
|
5295
5295
|
return Dl({
|
|
5296
5296
|
contextId: t,
|
|
5297
5297
|
store: I,
|
|
5298
5298
|
registry: b,
|
|
5299
5299
|
customSensors: r || null,
|
|
5300
5300
|
enableDefaultSensors: e.enableDefaultSensors !== !1
|
|
5301
|
-
}), te(() => N, [N]), L.createElement(
|
|
5301
|
+
}), te(() => N, [N]), L.createElement(it.Provider, {
|
|
5302
5302
|
value: U
|
|
5303
5303
|
}, L.createElement(Li, {
|
|
5304
|
-
context:
|
|
5304
|
+
context: un,
|
|
5305
5305
|
store: I
|
|
5306
5306
|
}, e.children));
|
|
5307
5307
|
}
|
|
@@ -5325,19 +5325,19 @@ function Ol(e) {
|
|
|
5325
5325
|
autoScrollerOptions: e.autoScrollerOptions
|
|
5326
5326
|
}, e.children));
|
|
5327
5327
|
}
|
|
5328
|
-
const
|
|
5328
|
+
const cr = {
|
|
5329
5329
|
dragging: 5e3,
|
|
5330
5330
|
dropAnimating: 4500
|
|
5331
|
-
},
|
|
5331
|
+
}, Sl = (e, t) => t ? xe.drop(t.duration) : e ? xe.snap : xe.fluid, wl = (e, t) => {
|
|
5332
5332
|
if (e)
|
|
5333
|
-
return t ?
|
|
5334
|
-
},
|
|
5335
|
-
function
|
|
5333
|
+
return t ? _e.opacity.drop : _e.opacity.combining;
|
|
5334
|
+
}, _l = (e) => e.forceShouldAnimate != null ? e.forceShouldAnimate : e.mode === "SNAP";
|
|
5335
|
+
function Al(e) {
|
|
5336
5336
|
const n = e.dimension.client, {
|
|
5337
5337
|
offset: r,
|
|
5338
5338
|
combineWith: o,
|
|
5339
5339
|
dropping: i
|
|
5340
|
-
} = e, s = !!o, c =
|
|
5340
|
+
} = e, s = !!o, c = _l(e), a = !!i, d = a ? $t.drop(r, s) : $t.moveTo(r);
|
|
5341
5341
|
return {
|
|
5342
5342
|
position: "fixed",
|
|
5343
5343
|
top: n.marginBox.top,
|
|
@@ -5345,24 +5345,24 @@ function _l(e) {
|
|
|
5345
5345
|
boxSizing: "border-box",
|
|
5346
5346
|
width: n.borderBox.width,
|
|
5347
5347
|
height: n.borderBox.height,
|
|
5348
|
-
transition:
|
|
5348
|
+
transition: Sl(c, i),
|
|
5349
5349
|
transform: d,
|
|
5350
|
-
opacity:
|
|
5351
|
-
zIndex: a ?
|
|
5350
|
+
opacity: wl(s, a),
|
|
5351
|
+
zIndex: a ? cr.dropAnimating : cr.dragging,
|
|
5352
5352
|
pointerEvents: "none"
|
|
5353
5353
|
};
|
|
5354
5354
|
}
|
|
5355
5355
|
function Pl(e) {
|
|
5356
5356
|
return {
|
|
5357
|
-
transform:
|
|
5357
|
+
transform: $t.moveTo(e.offset),
|
|
5358
5358
|
transition: e.shouldAnimateDisplacement ? void 0 : "none"
|
|
5359
5359
|
};
|
|
5360
5360
|
}
|
|
5361
5361
|
function Rl(e) {
|
|
5362
|
-
return e.type === "DRAGGING" ?
|
|
5362
|
+
return e.type === "DRAGGING" ? Al(e) : Pl(e);
|
|
5363
5363
|
}
|
|
5364
5364
|
function Tl(e, t, n = G) {
|
|
5365
|
-
const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Pr(o, r), s =
|
|
5365
|
+
const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Pr(o, r), s = Xe(i, n), c = {
|
|
5366
5366
|
client: i,
|
|
5367
5367
|
tagName: t.tagName.toLowerCase(),
|
|
5368
5368
|
display: r.display
|
|
@@ -5379,7 +5379,7 @@ function Tl(e, t, n = G) {
|
|
|
5379
5379
|
};
|
|
5380
5380
|
}
|
|
5381
5381
|
function Bl(e) {
|
|
5382
|
-
const t =
|
|
5382
|
+
const t = pn("draggable"), {
|
|
5383
5383
|
descriptor: n,
|
|
5384
5384
|
registry: r,
|
|
5385
5385
|
getDraggableRef: o,
|
|
@@ -5390,9 +5390,9 @@ function Bl(e) {
|
|
|
5390
5390
|
canDragInteractiveElements: i,
|
|
5391
5391
|
shouldRespectForcePress: s,
|
|
5392
5392
|
isEnabled: c
|
|
5393
|
-
}), [i, c, s]), d = D((
|
|
5393
|
+
}), [i, c, s]), d = D((g) => {
|
|
5394
5394
|
const m = o();
|
|
5395
|
-
return m || (process.env.NODE_ENV !== "production" ?
|
|
5395
|
+
return m || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get dimension when no ref is set") : f()), Tl(n, m, g);
|
|
5396
5396
|
}, [n, o]), p = O(() => ({
|
|
5397
5397
|
uniqueId: t,
|
|
5398
5398
|
descriptor: n,
|
|
@@ -5404,18 +5404,18 @@ function Bl(e) {
|
|
|
5404
5404
|
u.current = !1;
|
|
5405
5405
|
return;
|
|
5406
5406
|
}
|
|
5407
|
-
const
|
|
5408
|
-
l.current = p, r.draggable.update(p,
|
|
5407
|
+
const g = l.current;
|
|
5408
|
+
l.current = p, r.draggable.update(p, g);
|
|
5409
5409
|
}, [p, r.draggable]);
|
|
5410
5410
|
}
|
|
5411
|
-
var
|
|
5411
|
+
var hn = L.createContext(null);
|
|
5412
5412
|
function Oo(e) {
|
|
5413
|
-
e && $e(e) || (process.env.NODE_ENV !== "production" ?
|
|
5413
|
+
e && $e(e) || (process.env.NODE_ENV !== "production" ? f(!1, `
|
|
5414
5414
|
provided.innerRef has not been provided with a HTMLElement.
|
|
5415
5415
|
|
|
5416
5416
|
You can find a guide on using the innerRef callback functions at:
|
|
5417
5417
|
https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md
|
|
5418
|
-
`) :
|
|
5418
|
+
`) : f());
|
|
5419
5419
|
}
|
|
5420
5420
|
function Vl(e, t, n) {
|
|
5421
5421
|
Ge(() => {
|
|
@@ -5423,21 +5423,21 @@ function Vl(e, t, n) {
|
|
|
5423
5423
|
return `Draggable[id: ${i}]: `;
|
|
5424
5424
|
}
|
|
5425
5425
|
const o = e.draggableId;
|
|
5426
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
5427
|
-
Provided: [type: ${typeof o}] (value: ${o})`) :
|
|
5426
|
+
o || (process.env.NODE_ENV !== "production" ? f(!1, "Draggable requires a draggableId") : f(!1)), typeof o != "string" && (process.env.NODE_ENV !== "production" ? f(!1, `Draggable requires a [string] draggableId.
|
|
5427
|
+
Provided: [type: ${typeof o}] (value: ${o})`) : f(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} requires an integer index prop`) : f(!1)), e.mapped.type !== "DRAGGING" && (Oo(n()), e.isEnabled && (yo(t, o) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} Unable to find drag handle`) : f(!1))));
|
|
5428
5428
|
});
|
|
5429
5429
|
}
|
|
5430
5430
|
function Ll(e) {
|
|
5431
|
-
|
|
5431
|
+
fn(() => {
|
|
5432
5432
|
const t = B(e);
|
|
5433
5433
|
Ge(() => {
|
|
5434
|
-
e !== t.current && (process.env.NODE_ENV !== "production" ?
|
|
5434
|
+
e !== t.current && (process.env.NODE_ENV !== "production" ? f(!1, "Draggable isClone prop value changed during component life") : f(!1));
|
|
5435
5435
|
}, [e]);
|
|
5436
5436
|
});
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function Qe(e) {
|
|
5439
5439
|
const t = gr(e);
|
|
5440
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
5440
|
+
return t || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find required context") : f()), t;
|
|
5441
5441
|
}
|
|
5442
5442
|
function Ml(e) {
|
|
5443
5443
|
e.preventDefault();
|
|
@@ -5449,10 +5449,10 @@ const $l = (e) => {
|
|
|
5449
5449
|
contextId: o,
|
|
5450
5450
|
dragHandleUsageInstructionsId: i,
|
|
5451
5451
|
registry: s
|
|
5452
|
-
} =
|
|
5452
|
+
} = Qe(it), {
|
|
5453
5453
|
type: c,
|
|
5454
5454
|
droppableId: a
|
|
5455
|
-
} =
|
|
5455
|
+
} = Qe(hn), d = O(() => ({
|
|
5456
5456
|
id: e.draggableId,
|
|
5457
5457
|
index: e.index,
|
|
5458
5458
|
type: c,
|
|
@@ -5461,7 +5461,7 @@ const $l = (e) => {
|
|
|
5461
5461
|
children: p,
|
|
5462
5462
|
draggableId: l,
|
|
5463
5463
|
isEnabled: u,
|
|
5464
|
-
shouldRespectForcePress:
|
|
5464
|
+
shouldRespectForcePress: g,
|
|
5465
5465
|
canDragInteractiveElements: m,
|
|
5466
5466
|
isClone: b,
|
|
5467
5467
|
mapped: h,
|
|
@@ -5473,9 +5473,9 @@ const $l = (e) => {
|
|
|
5473
5473
|
registry: s,
|
|
5474
5474
|
getDraggableRef: r,
|
|
5475
5475
|
canDragInteractiveElements: m,
|
|
5476
|
-
shouldRespectForcePress:
|
|
5476
|
+
shouldRespectForcePress: g,
|
|
5477
5477
|
isEnabled: u
|
|
5478
|
-
}), [d, s, r, m,
|
|
5478
|
+
}), [d, s, r, m, g, u]);
|
|
5479
5479
|
Bl(x);
|
|
5480
5480
|
}
|
|
5481
5481
|
const v = O(() => u ? {
|
|
@@ -5489,14 +5489,14 @@ const $l = (e) => {
|
|
|
5489
5489
|
} : null, [o, i, l, u]), I = D((x) => {
|
|
5490
5490
|
h.type === "DRAGGING" && h.dropping && x.propertyName === "transform" && mr(y);
|
|
5491
5491
|
}, [y, h]), N = O(() => {
|
|
5492
|
-
const x = Rl(h),
|
|
5492
|
+
const x = Rl(h), _ = h.type === "DRAGGING" && h.dropping ? I : void 0;
|
|
5493
5493
|
return {
|
|
5494
5494
|
innerRef: n,
|
|
5495
5495
|
draggableProps: {
|
|
5496
5496
|
"data-rfd-draggable-context-id": o,
|
|
5497
5497
|
"data-rfd-draggable-id": l,
|
|
5498
5498
|
style: x,
|
|
5499
|
-
onTransitionEnd:
|
|
5499
|
+
onTransitionEnd: _
|
|
5500
5500
|
},
|
|
5501
5501
|
dragHandleProps: v
|
|
5502
5502
|
};
|
|
@@ -5510,15 +5510,15 @@ const $l = (e) => {
|
|
|
5510
5510
|
}), [d.droppableId, d.id, d.index, d.type]);
|
|
5511
5511
|
return L.createElement(L.Fragment, null, p(N, h.snapshot, E));
|
|
5512
5512
|
};
|
|
5513
|
-
var
|
|
5513
|
+
var So = (e, t) => e === t, wo = (e) => {
|
|
5514
5514
|
const {
|
|
5515
5515
|
combine: t,
|
|
5516
5516
|
destination: n
|
|
5517
5517
|
} = e;
|
|
5518
5518
|
return n ? n.droppableId : t ? t.droppableId : null;
|
|
5519
5519
|
};
|
|
5520
|
-
const Gl = (e) => e.combine ? e.combine.draggableId : null,
|
|
5521
|
-
function
|
|
5520
|
+
const Gl = (e) => e.combine ? e.combine.draggableId : null, kl = (e) => e.at && e.at.type === "COMBINE" ? e.at.combine.draggableId : null;
|
|
5521
|
+
function Fl() {
|
|
5522
5522
|
const e = $((o, i) => ({
|
|
5523
5523
|
x: o,
|
|
5524
5524
|
y: i
|
|
@@ -5548,19 +5548,19 @@ function kl() {
|
|
|
5548
5548
|
if (Re(o)) {
|
|
5549
5549
|
if (o.critical.draggable.id !== i.draggableId)
|
|
5550
5550
|
return null;
|
|
5551
|
-
const s = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], a =
|
|
5551
|
+
const s = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], a = j(o.impact), d = kl(o.impact), p = o.forceShouldAnimate;
|
|
5552
5552
|
return n(e(s.x, s.y), o.movementMode, c, i.isClone, a, d, p);
|
|
5553
5553
|
}
|
|
5554
5554
|
if (o.phase === "DROP_ANIMATING") {
|
|
5555
5555
|
const s = o.completed;
|
|
5556
5556
|
if (s.result.draggableId !== i.draggableId)
|
|
5557
5557
|
return null;
|
|
5558
|
-
const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l =
|
|
5558
|
+
const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l = wo(d), u = Gl(d), m = {
|
|
5559
5559
|
duration: o.dropDuration,
|
|
5560
|
-
curve:
|
|
5560
|
+
curve: sn.drop,
|
|
5561
5561
|
moveTo: o.newHomeClientOffset,
|
|
5562
|
-
opacity: u ?
|
|
5563
|
-
scale: u ?
|
|
5562
|
+
opacity: u ? _e.opacity.drop : null,
|
|
5563
|
+
scale: u ? _e.scale.drop : null
|
|
5564
5564
|
};
|
|
5565
5565
|
return {
|
|
5566
5566
|
mapped: {
|
|
@@ -5579,7 +5579,7 @@ function kl() {
|
|
|
5579
5579
|
return null;
|
|
5580
5580
|
};
|
|
5581
5581
|
}
|
|
5582
|
-
function
|
|
5582
|
+
function _o(e = null) {
|
|
5583
5583
|
return {
|
|
5584
5584
|
isDragging: !1,
|
|
5585
5585
|
isDropAnimating: !1,
|
|
@@ -5597,14 +5597,14 @@ const Wl = {
|
|
|
5597
5597
|
offset: G,
|
|
5598
5598
|
combineTargetFor: null,
|
|
5599
5599
|
shouldAnimateDisplacement: !0,
|
|
5600
|
-
snapshot:
|
|
5600
|
+
snapshot: _o(null)
|
|
5601
5601
|
}
|
|
5602
5602
|
};
|
|
5603
5603
|
function Ul() {
|
|
5604
5604
|
const e = $((s, c) => ({
|
|
5605
5605
|
x: s,
|
|
5606
5606
|
y: c
|
|
5607
|
-
})), t = $(
|
|
5607
|
+
})), t = $(_o), n = $((s, c = null, a) => ({
|
|
5608
5608
|
mapped: {
|
|
5609
5609
|
type: "SECONDARY",
|
|
5610
5610
|
offset: s,
|
|
@@ -5613,19 +5613,19 @@ function Ul() {
|
|
|
5613
5613
|
snapshot: t(c)
|
|
5614
5614
|
}
|
|
5615
5615
|
})), r = (s) => s ? n(G, s, !0) : null, o = (s, c, a, d) => {
|
|
5616
|
-
const p = a.displaced.visible[s], l = !!(d.inVirtualList && d.effected[s]), u =
|
|
5616
|
+
const p = a.displaced.visible[s], l = !!(d.inVirtualList && d.effected[s]), u = nt(a), g = u && u.draggableId === s ? c : null;
|
|
5617
5617
|
if (!p) {
|
|
5618
5618
|
if (!l)
|
|
5619
|
-
return r(
|
|
5619
|
+
return r(g);
|
|
5620
5620
|
if (a.displaced.invisible[s])
|
|
5621
5621
|
return null;
|
|
5622
5622
|
const h = me(d.displacedBy.point), y = e(h.x, h.y);
|
|
5623
|
-
return n(y,
|
|
5623
|
+
return n(y, g, !0);
|
|
5624
5624
|
}
|
|
5625
5625
|
if (l)
|
|
5626
|
-
return r(
|
|
5626
|
+
return r(g);
|
|
5627
5627
|
const m = a.displacedBy.point, b = e(m.x, m.y);
|
|
5628
|
-
return n(b,
|
|
5628
|
+
return n(b, g, p.shouldAnimate);
|
|
5629
5629
|
};
|
|
5630
5630
|
return (s, c) => {
|
|
5631
5631
|
if (Re(s))
|
|
@@ -5638,37 +5638,37 @@ function Ul() {
|
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
5640
|
const Hl = () => {
|
|
5641
|
-
const e =
|
|
5641
|
+
const e = Fl(), t = Ul();
|
|
5642
5642
|
return (r, o) => e(r, o) || t(r, o) || Wl;
|
|
5643
5643
|
}, zl = {
|
|
5644
5644
|
dropAnimationFinished: io
|
|
5645
|
-
},
|
|
5646
|
-
context:
|
|
5647
|
-
areStatePropsEqual:
|
|
5645
|
+
}, ql = Ar(Hl, zl, null, {
|
|
5646
|
+
context: un,
|
|
5647
|
+
areStatePropsEqual: So
|
|
5648
5648
|
})($l);
|
|
5649
|
-
function
|
|
5650
|
-
return
|
|
5649
|
+
function Ao(e) {
|
|
5650
|
+
return Qe(hn).isUsingCloneFor === e.draggableId && !e.isClone ? null : L.createElement(ql, e);
|
|
5651
5651
|
}
|
|
5652
|
-
function
|
|
5652
|
+
function jl(e) {
|
|
5653
5653
|
const t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
|
|
5654
|
-
return L.createElement(
|
|
5654
|
+
return L.createElement(Ao, Ke({}, e, {
|
|
5655
5655
|
isClone: !1,
|
|
5656
5656
|
isEnabled: t,
|
|
5657
5657
|
canDragInteractiveElements: n,
|
|
5658
5658
|
shouldRespectForcePress: r
|
|
5659
5659
|
}));
|
|
5660
5660
|
}
|
|
5661
|
-
const
|
|
5661
|
+
const bn = (e) => (t) => e === t, Yl = bn("scroll"), Xl = bn("auto"), Kl = bn("visible"), ar = (e, t) => t(e.overflowX) || t(e.overflowY), Jl = (e, t) => t(e.overflowX) && t(e.overflowY), Po = (e) => {
|
|
5662
5662
|
const t = window.getComputedStyle(e), n = {
|
|
5663
5663
|
overflowX: t.overflowX,
|
|
5664
5664
|
overflowY: t.overflowY
|
|
5665
5665
|
};
|
|
5666
|
-
return
|
|
5666
|
+
return ar(n, Yl) || ar(n, Xl);
|
|
5667
5667
|
}, Zl = () => {
|
|
5668
5668
|
if (process.env.NODE_ENV === "production")
|
|
5669
5669
|
return !1;
|
|
5670
5670
|
const e = Pe(), t = document.documentElement;
|
|
5671
|
-
if (t || (process.env.NODE_ENV,
|
|
5671
|
+
if (t || (process.env.NODE_ENV, f()), !Po(e))
|
|
5672
5672
|
return !1;
|
|
5673
5673
|
const n = window.getComputedStyle(t), r = {
|
|
5674
5674
|
overflowX: n.overflowX,
|
|
@@ -5684,9 +5684,9 @@ const mn = (e) => (t) => e === t, Yl = mn("scroll"), Xl = mn("auto"), Kl = mn("v
|
|
|
5684
5684
|
|
|
5685
5685
|
More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/how-we-detect-scroll-containers.md
|
|
5686
5686
|
`), !1;
|
|
5687
|
-
},
|
|
5687
|
+
}, vn = (e) => e == null ? null : e === document.body ? Zl() ? e : null : e === document.documentElement ? null : Po(e) ? e : vn(e.parentElement);
|
|
5688
5688
|
var Ql = (e) => {
|
|
5689
|
-
!e || !
|
|
5689
|
+
!e || !vn(e.parentElement) || process.env.NODE_ENV !== "production" && R(`
|
|
5690
5690
|
Droppable: unsupported nested scroll container detected.
|
|
5691
5691
|
A Droppable can only have one scroll parent (which can be itself)
|
|
5692
5692
|
Nested scroll containers are currently not supported.
|
|
@@ -5699,7 +5699,7 @@ var Ql = (e) => {
|
|
|
5699
5699
|
});
|
|
5700
5700
|
const Ro = (e) => e ? window.getComputedStyle(e).position === "fixed" ? !0 : Ro(e.parentElement) : !1;
|
|
5701
5701
|
var ed = (e) => {
|
|
5702
|
-
const t =
|
|
5702
|
+
const t = vn(e), n = Ro(e);
|
|
5703
5703
|
return {
|
|
5704
5704
|
closestScrollable: t,
|
|
5705
5705
|
isFixedOnPage: n
|
|
@@ -5719,16 +5719,16 @@ var ed = (e) => {
|
|
|
5719
5719
|
return null;
|
|
5720
5720
|
const {
|
|
5721
5721
|
scrollSize: u,
|
|
5722
|
-
client:
|
|
5722
|
+
client: g
|
|
5723
5723
|
} = c, m = lo({
|
|
5724
5724
|
scrollHeight: u.scrollHeight,
|
|
5725
5725
|
scrollWidth: u.scrollWidth,
|
|
5726
|
-
height:
|
|
5727
|
-
width:
|
|
5726
|
+
height: g.paddingBox.height,
|
|
5727
|
+
width: g.paddingBox.width
|
|
5728
5728
|
});
|
|
5729
5729
|
return {
|
|
5730
5730
|
pageMarginBox: c.page.marginBox,
|
|
5731
|
-
frameClient:
|
|
5731
|
+
frameClient: g,
|
|
5732
5732
|
scrollSize: u,
|
|
5733
5733
|
shouldClipSubject: c.shouldClipSubject,
|
|
5734
5734
|
scroll: {
|
|
@@ -5741,7 +5741,7 @@ var ed = (e) => {
|
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
5743
|
};
|
|
5744
|
-
})(), d = o === "vertical" ?
|
|
5744
|
+
})(), d = o === "vertical" ? Zt : Wr, p = pe({
|
|
5745
5745
|
page: s,
|
|
5746
5746
|
withPlaceholder: null,
|
|
5747
5747
|
axis: d,
|
|
@@ -5763,13 +5763,13 @@ const nd = (e, t) => {
|
|
|
5763
5763
|
const n = Rr(e);
|
|
5764
5764
|
if (!t || e !== t)
|
|
5765
5765
|
return n;
|
|
5766
|
-
const r = n.paddingBox.top - t.scrollTop, o = n.paddingBox.left - t.scrollLeft, i = r + t.scrollHeight, s = o + t.scrollWidth, a =
|
|
5766
|
+
const r = n.paddingBox.top - t.scrollTop, o = n.paddingBox.left - t.scrollLeft, i = r + t.scrollHeight, s = o + t.scrollWidth, a = Yt({
|
|
5767
5767
|
top: r,
|
|
5768
5768
|
right: s,
|
|
5769
5769
|
bottom: i,
|
|
5770
5770
|
left: o
|
|
5771
5771
|
}, n.border);
|
|
5772
|
-
return
|
|
5772
|
+
return Xt({
|
|
5773
5773
|
borderBox: a,
|
|
5774
5774
|
margin: n.margin,
|
|
5775
5775
|
border: n.border,
|
|
@@ -5786,16 +5786,16 @@ var rd = ({
|
|
|
5786
5786
|
isCombineEnabled: s,
|
|
5787
5787
|
shouldClipSubject: c
|
|
5788
5788
|
}) => {
|
|
5789
|
-
const a = n.closestScrollable, d = nd(e, a), p =
|
|
5789
|
+
const a = n.closestScrollable, d = nd(e, a), p = Xe(d, r), l = (() => {
|
|
5790
5790
|
if (!a)
|
|
5791
5791
|
return null;
|
|
5792
|
-
const
|
|
5792
|
+
const g = Rr(a), m = {
|
|
5793
5793
|
scrollHeight: a.scrollHeight,
|
|
5794
5794
|
scrollWidth: a.scrollWidth
|
|
5795
5795
|
};
|
|
5796
5796
|
return {
|
|
5797
|
-
client:
|
|
5798
|
-
page:
|
|
5797
|
+
client: g,
|
|
5798
|
+
page: Xe(g, r),
|
|
5799
5799
|
scroll: Ft(a),
|
|
5800
5800
|
scrollSize: m,
|
|
5801
5801
|
shouldClipSubject: c
|
|
@@ -5817,18 +5817,18 @@ const od = {
|
|
|
5817
5817
|
}, id = {
|
|
5818
5818
|
passive: !0
|
|
5819
5819
|
};
|
|
5820
|
-
var
|
|
5820
|
+
var lr = (e) => e.shouldPublishImmediately ? od : id;
|
|
5821
5821
|
const He = (e) => e && e.env.closestScrollable || null;
|
|
5822
5822
|
function sd(e) {
|
|
5823
|
-
const t = B(null), n =
|
|
5823
|
+
const t = B(null), n = Qe(it), r = pn("droppable"), {
|
|
5824
5824
|
registry: o,
|
|
5825
5825
|
marshal: i
|
|
5826
|
-
} = n, s =
|
|
5826
|
+
} = n, s = gn(e), c = O(() => ({
|
|
5827
5827
|
id: e.droppableId,
|
|
5828
5828
|
type: e.type,
|
|
5829
5829
|
mode: e.mode
|
|
5830
5830
|
}), [e.droppableId, e.mode, e.type]), a = B(c), d = O(() => $((N, E) => {
|
|
5831
|
-
t.current || (process.env.NODE_ENV !== "production" ?
|
|
5831
|
+
t.current || (process.env.NODE_ENV !== "production" ? f(!1, "Can only update scroll when dragging") : f());
|
|
5832
5832
|
const x = {
|
|
5833
5833
|
x: N,
|
|
5834
5834
|
y: E
|
|
@@ -5840,26 +5840,26 @@ function sd(e) {
|
|
|
5840
5840
|
}, []), l = D(() => {
|
|
5841
5841
|
const N = p();
|
|
5842
5842
|
d(N.x, N.y);
|
|
5843
|
-
}, [p, d]), u = O(() => Ie(l), [l]),
|
|
5843
|
+
}, [p, d]), u = O(() => Ie(l), [l]), g = D(() => {
|
|
5844
5844
|
const N = t.current, E = He(N);
|
|
5845
|
-
if (N && E || (process.env.NODE_ENV !== "production" ?
|
|
5845
|
+
if (N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find scroll options while scrolling") : f()), N.scrollOptions.shouldPublishImmediately) {
|
|
5846
5846
|
l();
|
|
5847
5847
|
return;
|
|
5848
5848
|
}
|
|
5849
5849
|
u();
|
|
5850
5850
|
}, [u, l]), m = D((N, E) => {
|
|
5851
|
-
t.current && (process.env.NODE_ENV !== "production" ?
|
|
5852
|
-
const x = s.current,
|
|
5853
|
-
|
|
5854
|
-
const P = ed(
|
|
5855
|
-
ref:
|
|
5851
|
+
t.current && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect a droppable while a drag is occurring") : f());
|
|
5852
|
+
const x = s.current, _ = x.getDroppableRef();
|
|
5853
|
+
_ || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect without a droppable ref") : f());
|
|
5854
|
+
const P = ed(_), U = {
|
|
5855
|
+
ref: _,
|
|
5856
5856
|
descriptor: c,
|
|
5857
5857
|
env: P,
|
|
5858
5858
|
scrollOptions: E
|
|
5859
5859
|
};
|
|
5860
5860
|
t.current = U;
|
|
5861
5861
|
const T = rd({
|
|
5862
|
-
ref:
|
|
5862
|
+
ref: _,
|
|
5863
5863
|
descriptor: c,
|
|
5864
5864
|
env: P,
|
|
5865
5865
|
windowScroll: N,
|
|
@@ -5868,20 +5868,20 @@ function sd(e) {
|
|
|
5868
5868
|
isCombineEnabled: x.isCombineEnabled,
|
|
5869
5869
|
shouldClipSubject: !x.ignoreContainerClipping
|
|
5870
5870
|
}), H = P.closestScrollable;
|
|
5871
|
-
return H && (H.setAttribute(
|
|
5872
|
-
}, [n.contextId, c,
|
|
5871
|
+
return H && (H.setAttribute(nr.contextId, n.contextId), H.addEventListener("scroll", g, lr(U.scrollOptions)), process.env.NODE_ENV !== "production" && Ql(H)), T;
|
|
5872
|
+
}, [n.contextId, c, g, s]), b = D(() => {
|
|
5873
5873
|
const N = t.current, E = He(N);
|
|
5874
|
-
return N && E || (process.env.NODE_ENV !== "production" ?
|
|
5874
|
+
return N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : f()), Ft(E);
|
|
5875
5875
|
}, []), h = D(() => {
|
|
5876
5876
|
const N = t.current;
|
|
5877
|
-
N || (process.env.NODE_ENV !== "production" ?
|
|
5877
|
+
N || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot stop drag when no active drag") : f());
|
|
5878
5878
|
const E = He(N);
|
|
5879
|
-
t.current = null, E && (u.cancel(), E.removeAttribute(
|
|
5880
|
-
}, [
|
|
5879
|
+
t.current = null, E && (u.cancel(), E.removeAttribute(nr.contextId), E.removeEventListener("scroll", g, lr(N.scrollOptions)));
|
|
5880
|
+
}, [g, u]), y = D((N) => {
|
|
5881
5881
|
const E = t.current;
|
|
5882
|
-
E || (process.env.NODE_ENV !== "production" ?
|
|
5882
|
+
E || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll when there is no drag") : f());
|
|
5883
5883
|
const x = He(E);
|
|
5884
|
-
x || (process.env.NODE_ENV !== "production" ?
|
|
5884
|
+
x || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll a droppable with no closest scrollable") : f()), x.scrollTop += N.y, x.scrollLeft += N.x;
|
|
5885
5885
|
}, []), v = O(() => ({
|
|
5886
5886
|
getDimensionAndWatchScroll: m,
|
|
5887
5887
|
getScrollWhileDragging: b,
|
|
@@ -5902,7 +5902,7 @@ function sd(e) {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
function wt() {
|
|
5904
5904
|
}
|
|
5905
|
-
const
|
|
5905
|
+
const dr = {
|
|
5906
5906
|
width: 0,
|
|
5907
5907
|
height: 0,
|
|
5908
5908
|
margin: ts
|
|
@@ -5910,7 +5910,7 @@ const ar = {
|
|
|
5910
5910
|
isAnimatingOpenOnMount: e,
|
|
5911
5911
|
placeholder: t,
|
|
5912
5912
|
animate: n
|
|
5913
|
-
}) => e || n === "close" ?
|
|
5913
|
+
}) => e || n === "close" ? dr : {
|
|
5914
5914
|
height: t.client.borderBox.height,
|
|
5915
5915
|
width: t.client.borderBox.width,
|
|
5916
5916
|
margin: t.client.margin
|
|
@@ -5965,7 +5965,7 @@ const ar = {
|
|
|
5965
5965
|
});
|
|
5966
5966
|
};
|
|
5967
5967
|
var dd = L.memo(ld);
|
|
5968
|
-
function
|
|
5968
|
+
function _t(e) {
|
|
5969
5969
|
return typeof e == "boolean";
|
|
5970
5970
|
}
|
|
5971
5971
|
function At(e, t) {
|
|
@@ -5974,11 +5974,11 @@ function At(e, t) {
|
|
|
5974
5974
|
const ud = [function({
|
|
5975
5975
|
props: t
|
|
5976
5976
|
}) {
|
|
5977
|
-
t.droppableId || (process.env.NODE_ENV !== "production" ?
|
|
5977
|
+
t.droppableId || (process.env.NODE_ENV !== "production" ? f(!1, "A Droppable requires a droppableId prop") : f()), typeof t.droppableId != "string" && (process.env.NODE_ENV !== "production" ? f(!1, `A Droppable requires a [string] droppableId. Provided: [${typeof t.droppableId}]`) : f());
|
|
5978
5978
|
}, function({
|
|
5979
5979
|
props: t
|
|
5980
5980
|
}) {
|
|
5981
|
-
|
|
5981
|
+
_t(t.isDropDisabled) || (process.env.NODE_ENV !== "production" ? f(!1, "isDropDisabled must be a boolean") : f()), _t(t.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? f(!1, "isCombineEnabled must be a boolean") : f()), _t(t.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? f(!1, "ignoreContainerClipping must be a boolean") : f());
|
|
5982
5982
|
}, function({
|
|
5983
5983
|
getDroppableRef: t
|
|
5984
5984
|
}) {
|
|
@@ -5997,11 +5997,11 @@ const ud = [function({
|
|
|
5997
5997
|
}], fd = [function({
|
|
5998
5998
|
props: t
|
|
5999
5999
|
}) {
|
|
6000
|
-
t.renderClone || (process.env.NODE_ENV !== "production" ?
|
|
6000
|
+
t.renderClone || (process.env.NODE_ENV !== "production" ? f(!1, "Must provide a clone render function (renderClone) for virtual lists") : f());
|
|
6001
6001
|
}, function({
|
|
6002
6002
|
getPlaceholderRef: t
|
|
6003
6003
|
}) {
|
|
6004
|
-
t() && (process.env.NODE_ENV !== "production" ?
|
|
6004
|
+
t() && (process.env.NODE_ENV !== "production" ? f(!1, "Expected virtual list to not have a placeholder") : f());
|
|
6005
6005
|
}];
|
|
6006
6006
|
function gd(e) {
|
|
6007
6007
|
Ge(() => {
|
|
@@ -6051,8 +6051,8 @@ class md extends L.PureComponent {
|
|
|
6051
6051
|
}
|
|
6052
6052
|
}
|
|
6053
6053
|
const hd = (e) => {
|
|
6054
|
-
const t = gr(
|
|
6055
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
6054
|
+
const t = gr(it);
|
|
6055
|
+
t || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find app context") : f());
|
|
6056
6056
|
const {
|
|
6057
6057
|
contextId: n,
|
|
6058
6058
|
isMovementAllowed: r
|
|
@@ -6064,7 +6064,7 @@ const hd = (e) => {
|
|
|
6064
6064
|
direction: p,
|
|
6065
6065
|
ignoreContainerClipping: l,
|
|
6066
6066
|
isDropDisabled: u,
|
|
6067
|
-
isCombineEnabled:
|
|
6067
|
+
isCombineEnabled: g,
|
|
6068
6068
|
snapshot: m,
|
|
6069
6069
|
useClone: b,
|
|
6070
6070
|
updateViewportMaxScroll: h,
|
|
@@ -6090,11 +6090,11 @@ const hd = (e) => {
|
|
|
6090
6090
|
mode: d,
|
|
6091
6091
|
direction: p,
|
|
6092
6092
|
isDropDisabled: u,
|
|
6093
|
-
isCombineEnabled:
|
|
6093
|
+
isCombineEnabled: g,
|
|
6094
6094
|
ignoreContainerClipping: l,
|
|
6095
6095
|
getDroppableRef: v
|
|
6096
6096
|
});
|
|
6097
|
-
const
|
|
6097
|
+
const _ = O(() => L.createElement(md, {
|
|
6098
6098
|
on: e.placeholder,
|
|
6099
6099
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
6100
6100
|
}, ({
|
|
@@ -6110,12 +6110,12 @@ const hd = (e) => {
|
|
|
6110
6110
|
onTransitionEnd: x
|
|
6111
6111
|
})), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), P = O(() => ({
|
|
6112
6112
|
innerRef: I,
|
|
6113
|
-
placeholder:
|
|
6113
|
+
placeholder: _,
|
|
6114
6114
|
droppableProps: {
|
|
6115
6115
|
"data-rfd-droppable-id": c,
|
|
6116
6116
|
"data-rfd-droppable-context-id": n
|
|
6117
6117
|
}
|
|
6118
|
-
}), [n, c,
|
|
6118
|
+
}), [n, c, _, I]), U = b ? b.dragging.draggableId : null, T = O(() => ({
|
|
6119
6119
|
droppableId: c,
|
|
6120
6120
|
type: a,
|
|
6121
6121
|
isUsingCloneFor: U
|
|
@@ -6126,24 +6126,24 @@ const hd = (e) => {
|
|
|
6126
6126
|
const {
|
|
6127
6127
|
dragging: M,
|
|
6128
6128
|
render: Q
|
|
6129
|
-
} = b, de = L.createElement(
|
|
6129
|
+
} = b, de = L.createElement(Ao, {
|
|
6130
6130
|
draggableId: M.draggableId,
|
|
6131
6131
|
index: M.source.index,
|
|
6132
6132
|
isClone: !0,
|
|
6133
6133
|
isEnabled: !0,
|
|
6134
6134
|
shouldRespectForcePress: !1,
|
|
6135
6135
|
canDragInteractiveElements: !0
|
|
6136
|
-
}, (ee,
|
|
6136
|
+
}, (ee, ke) => Q(ee, ke, M));
|
|
6137
6137
|
return Lo.createPortal(de, y());
|
|
6138
6138
|
}
|
|
6139
|
-
return L.createElement(
|
|
6139
|
+
return L.createElement(hn.Provider, {
|
|
6140
6140
|
value: T
|
|
6141
6141
|
}, s(P, m), H());
|
|
6142
6142
|
};
|
|
6143
6143
|
function bd() {
|
|
6144
|
-
return document.body || (process.env.NODE_ENV !== "production" ?
|
|
6144
|
+
return document.body || (process.env.NODE_ENV !== "production" ? f(!1, "document.body is not ready") : f()), document.body;
|
|
6145
6145
|
}
|
|
6146
|
-
const
|
|
6146
|
+
const ur = {
|
|
6147
6147
|
mode: "standard",
|
|
6148
6148
|
type: "DEFAULT",
|
|
6149
6149
|
direction: "vertical",
|
|
@@ -6156,13 +6156,13 @@ const lr = {
|
|
|
6156
6156
|
let t = {
|
|
6157
6157
|
...e
|
|
6158
6158
|
}, n;
|
|
6159
|
-
for (n in
|
|
6159
|
+
for (n in ur)
|
|
6160
6160
|
e[n] === void 0 && (t = {
|
|
6161
6161
|
...t,
|
|
6162
|
-
[n]:
|
|
6162
|
+
[n]: ur[n]
|
|
6163
6163
|
});
|
|
6164
6164
|
return t;
|
|
6165
|
-
},
|
|
6165
|
+
}, Pt = (e, t) => e === t.droppable.type, pr = (e, t) => t.draggables[e.draggable.id], vd = () => {
|
|
6166
6166
|
const e = {
|
|
6167
6167
|
placeholder: null,
|
|
6168
6168
|
shouldAnimatePlaceholder: !0,
|
|
@@ -6206,7 +6206,7 @@ const lr = {
|
|
|
6206
6206
|
return t;
|
|
6207
6207
|
if (!a)
|
|
6208
6208
|
return e;
|
|
6209
|
-
const
|
|
6209
|
+
const g = {
|
|
6210
6210
|
isDraggingOver: c,
|
|
6211
6211
|
draggingOverWith: l,
|
|
6212
6212
|
draggingFromThisWith: null,
|
|
@@ -6215,7 +6215,7 @@ const lr = {
|
|
|
6215
6215
|
return {
|
|
6216
6216
|
placeholder: d.placeholder,
|
|
6217
6217
|
shouldAnimatePlaceholder: !0,
|
|
6218
|
-
snapshot:
|
|
6218
|
+
snapshot: g,
|
|
6219
6219
|
useClone: null
|
|
6220
6220
|
};
|
|
6221
6221
|
});
|
|
@@ -6223,36 +6223,36 @@ const lr = {
|
|
|
6223
6223
|
const c = To(s), a = c.droppableId, d = c.type, p = !c.isDropDisabled, l = c.renderClone;
|
|
6224
6224
|
if (Re(i)) {
|
|
6225
6225
|
const u = i.critical;
|
|
6226
|
-
if (!
|
|
6226
|
+
if (!Pt(d, u))
|
|
6227
6227
|
return t;
|
|
6228
|
-
const
|
|
6229
|
-
return r(a, p, m, m,
|
|
6228
|
+
const g = pr(u, i.dimensions), m = j(i.impact) === a;
|
|
6229
|
+
return r(a, p, m, m, g, l);
|
|
6230
6230
|
}
|
|
6231
6231
|
if (i.phase === "DROP_ANIMATING") {
|
|
6232
6232
|
const u = i.completed;
|
|
6233
|
-
if (!
|
|
6233
|
+
if (!Pt(d, u.critical))
|
|
6234
6234
|
return t;
|
|
6235
|
-
const
|
|
6236
|
-
return r(a, p,
|
|
6235
|
+
const g = pr(u.critical, i.dimensions);
|
|
6236
|
+
return r(a, p, wo(u.result) === a, j(u.impact) === a, g, l);
|
|
6237
6237
|
}
|
|
6238
6238
|
if (i.phase === "IDLE" && i.completed && !i.shouldFlush) {
|
|
6239
6239
|
const u = i.completed;
|
|
6240
|
-
if (!
|
|
6240
|
+
if (!Pt(d, u.critical))
|
|
6241
6241
|
return t;
|
|
6242
|
-
const
|
|
6243
|
-
return
|
|
6242
|
+
const g = j(u.impact) === a, m = !!(u.impact.at && u.impact.at.type === "COMBINE"), b = u.critical.droppable.id === a;
|
|
6243
|
+
return g ? m ? e : t : b ? e : t;
|
|
6244
6244
|
}
|
|
6245
6245
|
return t;
|
|
6246
6246
|
};
|
|
6247
6247
|
}, yd = {
|
|
6248
6248
|
updateViewportMaxScroll: fc
|
|
6249
|
-
}, Ed =
|
|
6249
|
+
}, Ed = Ar(vd, yd, (e, t, n) => ({
|
|
6250
6250
|
...To(n),
|
|
6251
6251
|
...e,
|
|
6252
6252
|
...t
|
|
6253
6253
|
}), {
|
|
6254
|
-
context:
|
|
6255
|
-
areStatePropsEqual:
|
|
6254
|
+
context: un,
|
|
6255
|
+
areStatePropsEqual: So
|
|
6256
6256
|
})(hd), Dd = () => /* @__PURE__ */ V(
|
|
6257
6257
|
"svg",
|
|
6258
6258
|
{
|
|
@@ -6308,8 +6308,8 @@ const lr = {
|
|
|
6308
6308
|
), Id = () => /* @__PURE__ */ V(
|
|
6309
6309
|
"svg",
|
|
6310
6310
|
{
|
|
6311
|
-
width: "
|
|
6312
|
-
height: "
|
|
6311
|
+
width: "16",
|
|
6312
|
+
height: "16",
|
|
6313
6313
|
viewBox: "0 0 24 24",
|
|
6314
6314
|
fill: "none",
|
|
6315
6315
|
stroke: "currentColor",
|
|
@@ -6326,8 +6326,8 @@ const lr = {
|
|
|
6326
6326
|
), Cd = () => /* @__PURE__ */ V(
|
|
6327
6327
|
"svg",
|
|
6328
6328
|
{
|
|
6329
|
-
width: "
|
|
6330
|
-
height: "
|
|
6329
|
+
width: "16",
|
|
6330
|
+
height: "16",
|
|
6331
6331
|
viewBox: "0 0 24 24",
|
|
6332
6332
|
fill: "none",
|
|
6333
6333
|
stroke: "currentColor",
|
|
@@ -6341,16 +6341,13 @@ const lr = {
|
|
|
6341
6341
|
/* @__PURE__ */ C("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
6342
6342
|
]
|
|
6343
6343
|
}
|
|
6344
|
-
),
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
return
|
|
6351
|
-
}, pr = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, fr = (e) => {
|
|
6352
|
-
var t, n;
|
|
6353
|
-
return typeof e.status == "string" ? e.status.toLowerCase() === "completed" : ((n = (t = e.status) == null ? void 0 : t.code) == null ? void 0 : n.toLowerCase()) === "completed";
|
|
6344
|
+
), fr = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
|
|
6345
|
+
hour: "numeric",
|
|
6346
|
+
minute: "2-digit",
|
|
6347
|
+
hour12: !0
|
|
6348
|
+
}) : "--:--", Wt = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, qe = (e) => {
|
|
6349
|
+
var t;
|
|
6350
|
+
return e ? typeof e == "string" ? e.toLowerCase() === "completed" : ((t = e == null ? void 0 : e.code) == null ? void 0 : t.toLowerCase()) === "completed" : !1;
|
|
6354
6351
|
}, Od = (e) => {
|
|
6355
6352
|
const t = [];
|
|
6356
6353
|
return [...e].sort((r, o) => r.sequence_rank - o.sequence_rank).forEach((r) => {
|
|
@@ -6361,26 +6358,26 @@ const lr = {
|
|
|
6361
6358
|
orders: [r]
|
|
6362
6359
|
});
|
|
6363
6360
|
}), t;
|
|
6364
|
-
},
|
|
6365
|
-
var a, d, p, l, u,
|
|
6366
|
-
const [i, s] = Te(!1), c = (d = (a = e.customer) == null ? void 0 : a.address) != null && d.lat && ((l = (p = e.customer) == null ? void 0 : p.address) != null && l.long) ? `
|
|
6361
|
+
}, Sd = ({ order: e, pathPeriod: t, isFirst: n, isDone: r, renderOrderExtraData: o }) => {
|
|
6362
|
+
var a, d, p, l, u, g;
|
|
6363
|
+
const [i, s] = Te(!1), c = (d = (a = e.customer) == null ? void 0 : a.address) != null && d.lat && ((l = (p = e.customer) == null ? void 0 : p.address) != null && l.long) ? `http://googleusercontent.com/maps.google.com/4${e.customer.address.lat},${e.customer.address.long}` : "#";
|
|
6367
6364
|
return /* @__PURE__ */ V(
|
|
6368
6365
|
"div",
|
|
6369
6366
|
{
|
|
6370
6367
|
style: {
|
|
6371
|
-
...
|
|
6368
|
+
...w.orderBlock,
|
|
6372
6369
|
borderTop: n ? "none" : "1px solid #f3f4f6",
|
|
6373
6370
|
backgroundColor: r ? "#fafafa" : "transparent"
|
|
6374
6371
|
},
|
|
6375
6372
|
children: [
|
|
6376
|
-
/* @__PURE__ */ V("div", { style:
|
|
6377
|
-
/* @__PURE__ */ V("div", { style:
|
|
6378
|
-
/* @__PURE__ */ V("div", { style:
|
|
6373
|
+
/* @__PURE__ */ V("div", { style: w.orderHeader, children: [
|
|
6374
|
+
/* @__PURE__ */ V("div", { style: w.gridItem, children: [
|
|
6375
|
+
/* @__PURE__ */ V("div", { style: w.gridLabel, children: [
|
|
6379
6376
|
"ORDER",
|
|
6380
6377
|
" ",
|
|
6381
6378
|
r && /* @__PURE__ */ C("span", { style: { color: "#16a34a", marginLeft: "4px" }, children: "✓ DONE" })
|
|
6382
6379
|
] }),
|
|
6383
|
-
/* @__PURE__ */ V("div", { style:
|
|
6380
|
+
/* @__PURE__ */ V("div", { style: w.gridValue, children: [
|
|
6384
6381
|
"#",
|
|
6385
6382
|
e.order_id
|
|
6386
6383
|
] })
|
|
@@ -6389,15 +6386,15 @@ const lr = {
|
|
|
6389
6386
|
"button",
|
|
6390
6387
|
{
|
|
6391
6388
|
onClick: () => s(!i),
|
|
6392
|
-
style:
|
|
6389
|
+
style: w.expandButton,
|
|
6393
6390
|
children: i ? /* @__PURE__ */ C(Cd, {}) : /* @__PURE__ */ C(Id, {})
|
|
6394
6391
|
}
|
|
6395
6392
|
)
|
|
6396
6393
|
] }),
|
|
6397
|
-
/* @__PURE__ */ V("div", { style:
|
|
6398
|
-
/* @__PURE__ */ V("div", { style:
|
|
6399
|
-
/* @__PURE__ */ C("div", { style:
|
|
6400
|
-
/* @__PURE__ */ V("div", { style:
|
|
6394
|
+
/* @__PURE__ */ V("div", { style: w.detailsGrid, children: [
|
|
6395
|
+
/* @__PURE__ */ V("div", { style: w.gridItem, children: [
|
|
6396
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "LOCATION" }),
|
|
6397
|
+
/* @__PURE__ */ V("div", { style: w.gridValueWithIcon, children: [
|
|
6401
6398
|
/* @__PURE__ */ C(Dd, {}),
|
|
6402
6399
|
/* @__PURE__ */ C(
|
|
6403
6400
|
"a",
|
|
@@ -6405,34 +6402,34 @@ const lr = {
|
|
|
6405
6402
|
href: c,
|
|
6406
6403
|
target: "_blank",
|
|
6407
6404
|
rel: "noopener noreferrer",
|
|
6408
|
-
style:
|
|
6409
|
-
children: ((
|
|
6405
|
+
style: w.addressLink,
|
|
6406
|
+
children: ((g = (u = e.customer) == null ? void 0 : u.address) == null ? void 0 : g.street_area) || "N/A"
|
|
6410
6407
|
}
|
|
6411
6408
|
)
|
|
6412
6409
|
] })
|
|
6413
6410
|
] }),
|
|
6414
|
-
/* @__PURE__ */ V("div", { style:
|
|
6415
|
-
/* @__PURE__ */ C("div", { style:
|
|
6416
|
-
/* @__PURE__ */ C("div", { style:
|
|
6411
|
+
/* @__PURE__ */ V("div", { style: w.gridItem, children: [
|
|
6412
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "PERIOD" }),
|
|
6413
|
+
/* @__PURE__ */ C("div", { style: w.gridValue, children: t })
|
|
6417
6414
|
] }),
|
|
6418
|
-
/* @__PURE__ */ V("div", { style:
|
|
6419
|
-
/* @__PURE__ */ C("div", { style:
|
|
6420
|
-
/* @__PURE__ */ V("div", { style:
|
|
6415
|
+
/* @__PURE__ */ V("div", { style: w.gridItem, children: [
|
|
6416
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "TIME WINDOW" }),
|
|
6417
|
+
/* @__PURE__ */ V("div", { style: w.gridValueWithIcon, children: [
|
|
6421
6418
|
/* @__PURE__ */ C(Nd, {}),
|
|
6422
6419
|
" ",
|
|
6423
6420
|
/* @__PURE__ */ V("span", { children: [
|
|
6424
|
-
|
|
6421
|
+
fr(e.eta_start),
|
|
6425
6422
|
" - ",
|
|
6426
|
-
|
|
6423
|
+
fr(e.eta_end)
|
|
6427
6424
|
] })
|
|
6428
6425
|
] })
|
|
6429
6426
|
] })
|
|
6430
6427
|
] }),
|
|
6431
|
-
i && o && /* @__PURE__ */ C("div", { style:
|
|
6428
|
+
i && o && /* @__PURE__ */ C("div", { style: w.extraDataContainer, children: o(e) })
|
|
6432
6429
|
]
|
|
6433
6430
|
}
|
|
6434
6431
|
);
|
|
6435
|
-
},
|
|
6432
|
+
}, wd = ({
|
|
6436
6433
|
stopGroup: e,
|
|
6437
6434
|
index: t,
|
|
6438
6435
|
pathType: n,
|
|
@@ -6442,40 +6439,40 @@ const lr = {
|
|
|
6442
6439
|
renderStopActions: s,
|
|
6443
6440
|
renderOrderExtraData: c
|
|
6444
6441
|
}) => {
|
|
6445
|
-
const a = e.orders.every(
|
|
6442
|
+
const a = e.status ? qe(e.status) : e.orders.every((l) => qe(l.status)), d = e.status ? Wt(e.status) : a ? "Completed" : "Pending", p = !o || i || a;
|
|
6446
6443
|
return /* @__PURE__ */ C(
|
|
6447
|
-
|
|
6444
|
+
jl,
|
|
6448
6445
|
{
|
|
6449
6446
|
draggableId: e.stop_id.toString(),
|
|
6450
6447
|
index: t,
|
|
6451
|
-
isDragDisabled:
|
|
6452
|
-
children: (
|
|
6453
|
-
var
|
|
6448
|
+
isDragDisabled: p,
|
|
6449
|
+
children: (l) => {
|
|
6450
|
+
var u, g;
|
|
6454
6451
|
return /* @__PURE__ */ V(
|
|
6455
6452
|
"div",
|
|
6456
6453
|
{
|
|
6457
|
-
ref:
|
|
6458
|
-
...
|
|
6459
|
-
style: { ...
|
|
6454
|
+
ref: l.innerRef,
|
|
6455
|
+
...l.draggableProps,
|
|
6456
|
+
style: { ...w.timelineItem, ...l.draggableProps.style },
|
|
6460
6457
|
children: [
|
|
6461
6458
|
/* @__PURE__ */ C(
|
|
6462
6459
|
"div",
|
|
6463
6460
|
{
|
|
6464
6461
|
style: {
|
|
6465
|
-
...
|
|
6466
|
-
...a ?
|
|
6462
|
+
...w.bubble,
|
|
6463
|
+
...a ? w.bubbleCompleted : w.bubblePending
|
|
6467
6464
|
},
|
|
6468
6465
|
children: t + 1
|
|
6469
6466
|
}
|
|
6470
6467
|
),
|
|
6471
|
-
/* @__PURE__ */ V("div", { style:
|
|
6472
|
-
/* @__PURE__ */ V("div", { style:
|
|
6468
|
+
/* @__PURE__ */ V("div", { style: w.card, children: [
|
|
6469
|
+
/* @__PURE__ */ V("div", { style: w.cardHeader, children: [
|
|
6473
6470
|
/* @__PURE__ */ V(
|
|
6474
6471
|
"div",
|
|
6475
6472
|
{
|
|
6476
6473
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
6477
6474
|
children: [
|
|
6478
|
-
/* @__PURE__ */ V("span", { style:
|
|
6475
|
+
/* @__PURE__ */ V("span", { style: w.title, children: [
|
|
6479
6476
|
n,
|
|
6480
6477
|
" #",
|
|
6481
6478
|
e.sequence_rank
|
|
@@ -6483,31 +6480,31 @@ const lr = {
|
|
|
6483
6480
|
/* @__PURE__ */ C(
|
|
6484
6481
|
"span",
|
|
6485
6482
|
{
|
|
6486
|
-
style: a ?
|
|
6487
|
-
children:
|
|
6483
|
+
style: a ? w.badgeCompleted : w.badgePending,
|
|
6484
|
+
children: d
|
|
6488
6485
|
}
|
|
6489
6486
|
)
|
|
6490
6487
|
]
|
|
6491
6488
|
}
|
|
6492
6489
|
),
|
|
6493
|
-
!
|
|
6490
|
+
!p && /* @__PURE__ */ C("div", { ...l.dragHandleProps, children: /* @__PURE__ */ C(xd, {}) })
|
|
6494
6491
|
] }),
|
|
6495
|
-
/* @__PURE__ */ V("div", { style:
|
|
6492
|
+
/* @__PURE__ */ V("div", { style: w.customerName, children: [
|
|
6496
6493
|
"Customer: ",
|
|
6497
|
-
(
|
|
6494
|
+
(g = (u = e.orders[0]) == null ? void 0 : u.customer) == null ? void 0 : g.name
|
|
6498
6495
|
] }),
|
|
6499
|
-
/* @__PURE__ */ C("div", { style:
|
|
6500
|
-
|
|
6496
|
+
/* @__PURE__ */ C("div", { style: w.ordersList, children: e.orders.map((m, b) => /* @__PURE__ */ C(
|
|
6497
|
+
Sd,
|
|
6501
6498
|
{
|
|
6502
|
-
order:
|
|
6499
|
+
order: m,
|
|
6503
6500
|
pathPeriod: r,
|
|
6504
|
-
isFirst:
|
|
6505
|
-
isDone:
|
|
6501
|
+
isFirst: b === 0,
|
|
6502
|
+
isDone: qe(m.status),
|
|
6506
6503
|
renderOrderExtraData: c
|
|
6507
6504
|
},
|
|
6508
|
-
|
|
6505
|
+
m.id
|
|
6509
6506
|
)) }),
|
|
6510
|
-
s && /* @__PURE__ */ C("div", { style:
|
|
6507
|
+
s && /* @__PURE__ */ C("div", { style: w.actionsSlot, children: s(e) })
|
|
6511
6508
|
] })
|
|
6512
6509
|
]
|
|
6513
6510
|
}
|
|
@@ -6521,31 +6518,38 @@ const lr = {
|
|
|
6521
6518
|
renderStopActions: n,
|
|
6522
6519
|
renderOrderExtraData: r,
|
|
6523
6520
|
canEditPath: o = !0
|
|
6524
|
-
// Default to true so you don't break previous implementations
|
|
6525
6521
|
}) => {
|
|
6526
|
-
var d, p;
|
|
6527
6522
|
const [i, s] = Te([]);
|
|
6528
6523
|
te(() => {
|
|
6529
|
-
|
|
6524
|
+
if (e)
|
|
6525
|
+
if (e.stops && e.stops.length > 0) {
|
|
6526
|
+
const d = e.stops.map((p) => ({
|
|
6527
|
+
stop_id: p.id,
|
|
6528
|
+
sequence_rank: p.sequence_rank,
|
|
6529
|
+
status: p.status,
|
|
6530
|
+
orders: (e.path_orders || []).filter((l) => l.stop_id === p.id).sort((l, u) => l.sequence_rank - u.sequence_rank)
|
|
6531
|
+
})).sort((p, l) => p.sequence_rank - l.sequence_rank);
|
|
6532
|
+
s(d);
|
|
6533
|
+
} else e.path_orders && s(Od(e.path_orders));
|
|
6530
6534
|
}, [e]);
|
|
6531
|
-
const c = (
|
|
6532
|
-
if (!
|
|
6533
|
-
const
|
|
6534
|
-
|
|
6535
|
+
const c = (d) => {
|
|
6536
|
+
if (!d.destination) return;
|
|
6537
|
+
const p = Array.from(i), [l] = p.splice(d.source.index, 1);
|
|
6538
|
+
p.splice(d.destination.index, 0, l), s(p), t && t(
|
|
6535
6539
|
e.id,
|
|
6536
|
-
|
|
6540
|
+
p.map((u) => u.stop_id)
|
|
6537
6541
|
);
|
|
6538
6542
|
};
|
|
6539
6543
|
if (!e || !i.length) return /* @__PURE__ */ C("div", { children: "No Path Data" });
|
|
6540
|
-
const a =
|
|
6541
|
-
return /* @__PURE__ */ C("div", { style:
|
|
6544
|
+
const a = qe(e.status);
|
|
6545
|
+
return /* @__PURE__ */ C("div", { style: w.container, children: /* @__PURE__ */ C(Ol, { onDragEnd: c, children: /* @__PURE__ */ C(Ed, { droppableId: "path-list", children: (d) => /* @__PURE__ */ V(
|
|
6542
6546
|
"div",
|
|
6543
6547
|
{
|
|
6544
|
-
ref:
|
|
6545
|
-
...
|
|
6546
|
-
style:
|
|
6548
|
+
ref: d.innerRef,
|
|
6549
|
+
...d.droppableProps,
|
|
6550
|
+
style: w.timelineWrapper,
|
|
6547
6551
|
children: [
|
|
6548
|
-
/* @__PURE__ */ C("div", { style:
|
|
6552
|
+
/* @__PURE__ */ C("div", { style: w.verticalLine }),
|
|
6549
6553
|
/* @__PURE__ */ C(
|
|
6550
6554
|
"div",
|
|
6551
6555
|
{
|
|
@@ -6554,27 +6558,27 @@ const lr = {
|
|
|
6554
6558
|
flexDirection: "column",
|
|
6555
6559
|
gap: "24px"
|
|
6556
6560
|
},
|
|
6557
|
-
children: i.map((
|
|
6558
|
-
|
|
6561
|
+
children: i.map((p, l) => /* @__PURE__ */ C(
|
|
6562
|
+
wd,
|
|
6559
6563
|
{
|
|
6560
|
-
stopGroup:
|
|
6561
|
-
index:
|
|
6562
|
-
pathType:
|
|
6563
|
-
pathPeriod:
|
|
6564
|
+
stopGroup: p,
|
|
6565
|
+
index: l,
|
|
6566
|
+
pathType: Wt(e.type),
|
|
6567
|
+
pathPeriod: Wt(e.period),
|
|
6564
6568
|
canEditPath: o,
|
|
6565
6569
|
isPathCompleted: a,
|
|
6566
6570
|
renderStopActions: n,
|
|
6567
6571
|
renderOrderExtraData: r
|
|
6568
6572
|
},
|
|
6569
|
-
|
|
6573
|
+
p.stop_id
|
|
6570
6574
|
))
|
|
6571
6575
|
}
|
|
6572
6576
|
),
|
|
6573
|
-
|
|
6577
|
+
d.placeholder
|
|
6574
6578
|
]
|
|
6575
6579
|
}
|
|
6576
6580
|
) }) }) });
|
|
6577
|
-
},
|
|
6581
|
+
}, w = {
|
|
6578
6582
|
container: { fontFamily: "sans-serif", maxWidth: "800px", margin: "0 auto" },
|
|
6579
6583
|
timelineWrapper: { position: "relative", padding: "20px 0" },
|
|
6580
6584
|
verticalLine: {
|
|
@@ -6672,11 +6676,10 @@ const lr = {
|
|
|
6672
6676
|
lineHeight: "1.4"
|
|
6673
6677
|
},
|
|
6674
6678
|
expandButton: {
|
|
6675
|
-
|
|
6679
|
+
background: "none",
|
|
6676
6680
|
border: "none",
|
|
6677
6681
|
cursor: "pointer",
|
|
6678
|
-
|
|
6679
|
-
borderRadius: "5px",
|
|
6682
|
+
color: "#6b7280",
|
|
6680
6683
|
padding: "4px"
|
|
6681
6684
|
},
|
|
6682
6685
|
extraDataContainer: {
|