@wilow_app/design-system 0.1.7 → 0.1.9
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.es.js +923 -918
- package/dist/index.umd.js +41 -41
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as C, jsxs as A, Fragment as
|
|
1
|
+
import { jsx as C, jsxs as A, Fragment as Mo } from "react/jsx-runtime";
|
|
2
2
|
import * as S from "react";
|
|
3
|
-
import L, { useRef as V, useEffect as te, useContext as mr, useState as me, useLayoutEffect as
|
|
4
|
-
import
|
|
3
|
+
import L, { useRef as V, useEffect as te, useContext as mr, useState as me, useLayoutEffect as $o } from "react";
|
|
4
|
+
import Go, { flushSync as hr } 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
|
|
9
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
10
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
11
|
-
},
|
|
12
|
-
function
|
|
8
|
+
var ko = typeof Symbol == "function" && Symbol.observable || "@@observable", xn = ko, In = () => Math.random().toString(36).substring(7).split("").join("."), Fo = {
|
|
9
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ In()}`,
|
|
10
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ In()}`
|
|
11
|
+
}, Cn = Fo;
|
|
12
|
+
function Wo(e) {
|
|
13
13
|
if (typeof e != "object" || e === null)
|
|
14
14
|
return !1;
|
|
15
15
|
let t = e;
|
|
@@ -17,7 +17,7 @@ function Fo(e) {
|
|
|
17
17
|
t = Object.getPrototypeOf(t);
|
|
18
18
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Uo(e) {
|
|
21
21
|
if (e === void 0)
|
|
22
22
|
return "undefined";
|
|
23
23
|
if (e === null)
|
|
@@ -33,11 +33,11 @@ function Wo(e) {
|
|
|
33
33
|
}
|
|
34
34
|
if (Array.isArray(e))
|
|
35
35
|
return "array";
|
|
36
|
-
if (
|
|
36
|
+
if (qo(e))
|
|
37
37
|
return "date";
|
|
38
|
-
if (
|
|
38
|
+
if (zo(e))
|
|
39
39
|
return "error";
|
|
40
|
-
const n =
|
|
40
|
+
const n = Ho(e);
|
|
41
41
|
switch (n) {
|
|
42
42
|
case "Symbol":
|
|
43
43
|
case "Promise":
|
|
@@ -49,18 +49,18 @@ function Wo(e) {
|
|
|
49
49
|
}
|
|
50
50
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ho(e) {
|
|
53
53
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function zo(e) {
|
|
56
56
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function qo(e) {
|
|
59
59
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
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 = Uo(e)), t;
|
|
64
64
|
}
|
|
65
65
|
function br(e, t, n) {
|
|
66
66
|
if (typeof e != "function")
|
|
@@ -100,7 +100,7 @@ function br(e, t, n) {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
function u(m) {
|
|
103
|
-
if (!
|
|
103
|
+
if (!Wo(m))
|
|
104
104
|
throw new Error(process.env.NODE_ENV === "production" ? W(7) : `Actions must be plain objects. Instead, the actual type was: '${ne(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
105
105
|
if (typeof m.type > "u")
|
|
106
106
|
throw new Error(process.env.NODE_ENV === "production" ? W(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -121,7 +121,7 @@ function br(e, t, n) {
|
|
|
121
121
|
if (typeof m != "function")
|
|
122
122
|
throw new Error(process.env.NODE_ENV === "production" ? W(10) : `Expected the nextReducer to be a function. Instead, received: '${ne(m)}`);
|
|
123
123
|
r = m, u({
|
|
124
|
-
type:
|
|
124
|
+
type: Cn.REPLACE
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
function h() {
|
|
@@ -146,19 +146,19 @@ function br(e, t, n) {
|
|
|
146
146
|
unsubscribe: m(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
160
|
replaceReducer: f,
|
|
161
|
-
[
|
|
161
|
+
[xn]: h
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
function wn(e, t) {
|
|
@@ -166,7 +166,7 @@ function wn(e, t) {
|
|
|
166
166
|
return t(e.apply(this, n));
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function On(e, t) {
|
|
170
170
|
if (typeof e == "function")
|
|
171
171
|
return wn(e, t);
|
|
172
172
|
if (typeof e != "object" || e === null)
|
|
@@ -181,7 +181,7 @@ function Sn(e, t) {
|
|
|
181
181
|
function vr(...e) {
|
|
182
182
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, n) => (...r) => t(n(...r)));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function jo(...e) {
|
|
185
185
|
return (t) => (n, r) => {
|
|
186
186
|
const o = t(n, r);
|
|
187
187
|
let i = () => {
|
|
@@ -197,7 +197,7 @@ function qo(...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,16 +207,16 @@ var gt = {};
|
|
|
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
|
|
211
|
-
function
|
|
212
|
-
if (
|
|
213
|
-
|
|
210
|
+
var Sn;
|
|
211
|
+
function Yo() {
|
|
212
|
+
if (Sn) return ft;
|
|
213
|
+
Sn = 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
|
|
219
|
+
return ft.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
220
220
|
var f = o(null);
|
|
221
221
|
if (f.current === null) {
|
|
222
222
|
var h = { hasValue: !1, value: null };
|
|
@@ -256,9 +256,9 @@ function jo() {
|
|
|
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,15 +268,15 @@ var mt = {};
|
|
|
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 Xo() {
|
|
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
|
-
|
|
279
|
+
gt.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
280
280
|
var f = o(null);
|
|
281
281
|
if (f.current === null) {
|
|
282
282
|
var h = { hasValue: !1, value: null };
|
|
@@ -318,24 +318,24 @@ function Yo() {
|
|
|
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" ?
|
|
324
|
-
var yr = /* @__PURE__ */ S.version.startsWith("19"),
|
|
323
|
+
process.env.NODE_ENV === "production" ? Yo() : Xo();
|
|
324
|
+
var yr = /* @__PURE__ */ S.version.startsWith("19"), Ko = /* @__PURE__ */ Symbol.for(
|
|
325
325
|
yr ? "react.transitional.element" : "react.element"
|
|
326
|
-
),
|
|
326
|
+
), Jo = /* @__PURE__ */ Symbol.for("react.portal"), Er = /* @__PURE__ */ Symbol.for("react.fragment"), Dr = /* @__PURE__ */ Symbol.for("react.strict_mode"), Nr = /* @__PURE__ */ Symbol.for("react.profiler"), Ut = /* @__PURE__ */ Symbol.for("react.consumer"), Ht = /* @__PURE__ */ Symbol.for("react.context"), zt = /* @__PURE__ */ Symbol.for("react.forward_ref"), xr = /* @__PURE__ */ Symbol.for("react.suspense"), Ir = /* @__PURE__ */ Symbol.for(
|
|
327
327
|
"react.suspense_list"
|
|
328
|
-
),
|
|
328
|
+
), et = /* @__PURE__ */ Symbol.for("react.memo"), Cr = /* @__PURE__ */ Symbol.for("react.lazy"), Zo = /* @__PURE__ */ Symbol.for("react.offscreen"), Qo = /* @__PURE__ */ Symbol.for(
|
|
329
329
|
"react.client.reference"
|
|
330
|
-
),
|
|
331
|
-
function
|
|
332
|
-
return typeof e == "string" || typeof e == "function" || e === Er || e === Nr || e === Dr || e === xr || e === Ir || e ===
|
|
330
|
+
), ei = zt, ti = et;
|
|
331
|
+
function ni(e) {
|
|
332
|
+
return typeof e == "string" || typeof e == "function" || e === Er || e === Nr || e === Dr || e === xr || e === Ir || e === Zo || typeof e == "object" && e !== null && (e.$$typeof === Cr || e.$$typeof === et || e.$$typeof === Ht || e.$$typeof === Ut || e.$$typeof === zt || e.$$typeof === Qo || 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 Ko:
|
|
339
339
|
switch (e = e.type, e) {
|
|
340
340
|
case Er:
|
|
341
341
|
case Nr:
|
|
@@ -345,46 +345,46 @@ function Tt(e) {
|
|
|
345
345
|
return e;
|
|
346
346
|
default:
|
|
347
347
|
switch (e = e && e.$$typeof, e) {
|
|
348
|
+
case Ht:
|
|
348
349
|
case zt:
|
|
349
|
-
case qt:
|
|
350
350
|
case Cr:
|
|
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;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
case
|
|
359
|
+
case Jo:
|
|
360
360
|
return t;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function ni(e) {
|
|
365
|
-
return yr ? Tt(e) === Ht : Tt(e) === zt;
|
|
366
|
-
}
|
|
367
364
|
function ri(e) {
|
|
368
|
-
return
|
|
365
|
+
return yr ? Rt(e) === Ut : Rt(e) === Ht;
|
|
369
366
|
}
|
|
370
|
-
function
|
|
367
|
+
function oi(e) {
|
|
368
|
+
return Rt(e) === et;
|
|
369
|
+
}
|
|
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
|
-
function
|
|
385
|
-
|
|
384
|
+
function ii(e, t, n) {
|
|
385
|
+
mt(e, "mapStateToProps"), mt(t, "mapDispatchToProps"), mt(n, "mergeProps");
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function si(e, t, n, r, {
|
|
388
388
|
areStatesEqual: o,
|
|
389
389
|
areOwnPropsEqual: i,
|
|
390
390
|
areStatePropsEqual: s
|
|
@@ -416,16 +416,16 @@ function ii(e, t, n, r, {
|
|
|
416
416
|
return c ? y(I, N) : f(I, N);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function ci(e, {
|
|
420
420
|
initMapStateToProps: t,
|
|
421
421
|
initMapDispatchToProps: n,
|
|
422
422
|
initMergeProps: r,
|
|
423
423
|
...o
|
|
424
424
|
}) {
|
|
425
425
|
const i = t(e, o), s = n(e, o), c = r(e, o);
|
|
426
|
-
return process.env.NODE_ENV !== "production" &&
|
|
426
|
+
return process.env.NODE_ENV !== "production" && ii(i, s, c), si(i, s, c, e, o);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function ai(e, t) {
|
|
429
429
|
const n = {};
|
|
430
430
|
for (const r in e) {
|
|
431
431
|
const o = e[r];
|
|
@@ -433,7 +433,7 @@ function ci(e, t) {
|
|
|
433
433
|
}
|
|
434
434
|
return n;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function li(e) {
|
|
437
437
|
if (typeof e != "object" || e === null) return !1;
|
|
438
438
|
const t = Object.getPrototypeOf(e);
|
|
439
439
|
if (t === null) return !0;
|
|
@@ -442,12 +442,12 @@ function ai(e) {
|
|
|
442
442
|
n = Object.getPrototypeOf(n);
|
|
443
443
|
return t === n;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
445
|
+
function wr(e, t, n) {
|
|
446
|
+
li(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,73 +456,73 @@ function Bt(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
|
-
function
|
|
462
|
+
function Or(e, t) {
|
|
463
463
|
return function(r, { displayName: o }) {
|
|
464
464
|
const i = function(c, a) {
|
|
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" && wr(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}.`
|
|
478
478
|
);
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return e && typeof e == "object" ?
|
|
481
|
+
function di(e) {
|
|
482
|
+
return e && typeof e == "object" ? Tt(
|
|
483
483
|
(t) => (
|
|
484
484
|
// @ts-ignore
|
|
485
|
-
|
|
485
|
+
ai(e, t)
|
|
486
486
|
)
|
|
487
487
|
) : e ? typeof e == "function" ? (
|
|
488
488
|
// @ts-ignore
|
|
489
|
-
|
|
490
|
-
) :
|
|
489
|
+
Or(e, "mapDispatchToProps")
|
|
490
|
+
) : jt(e, "mapDispatchToProps") : Tt((t) => ({
|
|
491
491
|
dispatch: t
|
|
492
492
|
}));
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function ui(e) {
|
|
495
495
|
return e ? typeof e == "function" ? (
|
|
496
496
|
// @ts-ignore
|
|
497
|
-
|
|
498
|
-
) :
|
|
497
|
+
Or(e, "mapStateToProps")
|
|
498
|
+
) : jt(e, "mapStateToProps") : Tt(() => ({}));
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function pi(e, t, n) {
|
|
501
501
|
return { ...n, ...e, ...t };
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function fi(e) {
|
|
504
504
|
return function(n, { displayName: r, areMergedPropsEqual: o }) {
|
|
505
505
|
let i = !1, s;
|
|
506
506
|
return function(a, d, p) {
|
|
507
507
|
const l = e(a, d, p);
|
|
508
|
-
return i ? o(l, s) || (s = l) : (i = !0, s = l, process.env.NODE_ENV !== "production" &&
|
|
508
|
+
return i ? o(l, s) || (s = l) : (i = !0, s = l, process.env.NODE_ENV !== "production" && wr(s, r, "mergeProps")), s;
|
|
509
509
|
};
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
function fi(e) {
|
|
513
|
-
return e ? typeof e == "function" ? pi(e) : Yt(e, "mergeProps") : () => ui;
|
|
514
|
-
}
|
|
515
512
|
function gi(e) {
|
|
513
|
+
return e ? typeof e == "function" ? fi(e) : jt(e, "mergeProps") : () => pi;
|
|
514
|
+
}
|
|
515
|
+
function mi(e) {
|
|
516
516
|
e();
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function hi() {
|
|
519
519
|
let e = null, t = null;
|
|
520
520
|
return {
|
|
521
521
|
clear() {
|
|
522
522
|
e = null, t = null;
|
|
523
523
|
},
|
|
524
524
|
notify() {
|
|
525
|
-
|
|
525
|
+
mi(() => {
|
|
526
526
|
let n = e;
|
|
527
527
|
for (; n; )
|
|
528
528
|
n.callback(), n = n.next;
|
|
@@ -548,13 +548,13 @@ function mi() {
|
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var Pn = {
|
|
552
552
|
notify() {
|
|
553
553
|
},
|
|
554
554
|
get: () => []
|
|
555
555
|
};
|
|
556
556
|
function Sr(e, t) {
|
|
557
|
-
let n, r =
|
|
557
|
+
let n, r = Pn, o = 0, i = !1;
|
|
558
558
|
function s(b) {
|
|
559
559
|
p();
|
|
560
560
|
const m = r.subscribe(b);
|
|
@@ -573,10 +573,10 @@ function Sr(e, t) {
|
|
|
573
573
|
return i;
|
|
574
574
|
}
|
|
575
575
|
function p() {
|
|
576
|
-
o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r =
|
|
576
|
+
o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r = hi());
|
|
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());
|
|
@@ -595,22 +595,22 @@ function Sr(e, t) {
|
|
|
595
595
|
};
|
|
596
596
|
return h;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
function
|
|
598
|
+
var bi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", vi = /* @__PURE__ */ bi(), yi = () => typeof navigator < "u" && navigator.product === "ReactNative", Ei = /* @__PURE__ */ yi(), Di = () => vi || Ei ? S.useLayoutEffect : S.useEffect, je = /* @__PURE__ */ Di();
|
|
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
|
}
|
|
613
|
-
var
|
|
613
|
+
var Ni = {
|
|
614
614
|
childContextTypes: !0,
|
|
615
615
|
contextType: !0,
|
|
616
616
|
contextTypes: !0,
|
|
@@ -622,7 +622,7 @@ var Di = {
|
|
|
622
622
|
mixins: !0,
|
|
623
623
|
propTypes: !0,
|
|
624
624
|
type: !0
|
|
625
|
-
},
|
|
625
|
+
}, xi = {
|
|
626
626
|
name: !0,
|
|
627
627
|
length: !0,
|
|
628
628
|
prototype: !0,
|
|
@@ -630,7 +630,7 @@ var Di = {
|
|
|
630
630
|
callee: !0,
|
|
631
631
|
arguments: !0,
|
|
632
632
|
arity: !0
|
|
633
|
-
},
|
|
633
|
+
}, Ii = {
|
|
634
634
|
$$typeof: !0,
|
|
635
635
|
render: !0,
|
|
636
636
|
defaultProps: !0,
|
|
@@ -643,29 +643,29 @@ var Di = {
|
|
|
643
643
|
displayName: !0,
|
|
644
644
|
propTypes: !0,
|
|
645
645
|
type: !0
|
|
646
|
-
},
|
|
647
|
-
[
|
|
648
|
-
[
|
|
646
|
+
}, Ci = {
|
|
647
|
+
[ei]: Ii,
|
|
648
|
+
[ti]: _r
|
|
649
649
|
};
|
|
650
|
-
function
|
|
651
|
-
return
|
|
650
|
+
function Tn(e) {
|
|
651
|
+
return oi(e) ? _r : Ci[e.$$typeof] || Ni;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
653
|
+
var wi = Object.defineProperty, Oi = Object.getOwnPropertyNames, Bn = Object.getOwnPropertySymbols, Si = Object.getOwnPropertyDescriptor, _i = Object.getPrototypeOf, Vn = Object.prototype;
|
|
654
|
+
function Bt(e, t) {
|
|
655
655
|
if (typeof t != "string") {
|
|
656
|
-
if (
|
|
657
|
-
const i =
|
|
658
|
-
i && i !==
|
|
656
|
+
if (Vn) {
|
|
657
|
+
const i = _i(t);
|
|
658
|
+
i && i !== Vn && Bt(e, i);
|
|
659
659
|
}
|
|
660
660
|
let n = Oi(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
|
-
if (!
|
|
666
|
-
const c =
|
|
665
|
+
if (!xi[s] && !(o && o[s]) && !(r && r[s])) {
|
|
666
|
+
const c = Si(t, s);
|
|
667
667
|
try {
|
|
668
|
-
|
|
668
|
+
wi(e, s, c);
|
|
669
669
|
} catch {
|
|
670
670
|
}
|
|
671
671
|
}
|
|
@@ -673,32 +673,32 @@ function Vt(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
|
|
680
|
+
function Ai() {
|
|
681
681
|
if (!S.createContext) return {};
|
|
682
|
-
const e =
|
|
682
|
+
const e = vt[bt] ?? (vt[bt] = /* @__PURE__ */ new Map());
|
|
683
683
|
let t = e.get(S.createContext);
|
|
684
684
|
return t || (t = S.createContext(
|
|
685
685
|
null
|
|
686
686
|
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(S.createContext, t)), t;
|
|
687
687
|
}
|
|
688
|
-
var Ar = /* @__PURE__ */
|
|
688
|
+
var Ar = /* @__PURE__ */ Ai(), Pi = [null, null], Ri = (e) => {
|
|
689
689
|
try {
|
|
690
690
|
return JSON.stringify(e);
|
|
691
691
|
} catch {
|
|
692
692
|
return String(e);
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
function
|
|
696
|
-
|
|
695
|
+
function Ti(e, t, n) {
|
|
696
|
+
je(() => e(...t), n);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Bi(e, t, n, r, o, i) {
|
|
699
699
|
e.current = r, n.current = !1, o.current && (o.current = null, i());
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Vi(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;
|
|
@@ -722,31 +722,31 @@ function Bi(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
722
722
|
throw u;
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Li(e, t) {
|
|
726
726
|
return e === t;
|
|
727
727
|
}
|
|
728
|
-
var
|
|
729
|
-
function
|
|
728
|
+
var Ln = !1;
|
|
729
|
+
function Mi(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
|
-
areStatesEqual: o =
|
|
734
|
-
areOwnPropsEqual: i =
|
|
735
|
-
areStatePropsEqual: s =
|
|
736
|
-
areMergedPropsEqual: c =
|
|
733
|
+
areStatesEqual: o = Li,
|
|
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
740
|
context: d = Ar
|
|
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 =
|
|
745
|
+
const p = d, l = ui(e), u = di(t), f = gi(n), h = !!e;
|
|
746
746
|
return (m) => {
|
|
747
|
-
if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */
|
|
747
|
+
if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ ni(m))
|
|
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 ${Ri(
|
|
750
750
|
m
|
|
751
751
|
)}`
|
|
752
752
|
);
|
|
@@ -771,7 +771,7 @@ function Li(e, t, n, {
|
|
|
771
771
|
}, [_]), H = S.useMemo(() => {
|
|
772
772
|
let z = p;
|
|
773
773
|
if (R != null && R.Consumer && process.env.NODE_ENV !== "production") {
|
|
774
|
-
if (!/* @__PURE__ */
|
|
774
|
+
if (!/* @__PURE__ */ ri(
|
|
775
775
|
// @ts-ignore
|
|
776
776
|
/* @__PURE__ */ S.createElement(R.Consumer, null)
|
|
777
777
|
))
|
|
@@ -786,66 +786,66 @@ function Li(e, t, n, {
|
|
|
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 ? _.store : M.store, ke = de ? M.getServerState : ee.getState,
|
|
790
|
-
if (!h) return
|
|
789
|
+
const ee = Q ? _.store : M.store, ke = de ? M.getServerState : ee.getState, ct = S.useMemo(() => ci(ee.dispatch, I), [ee]), [ve, yn] = S.useMemo(() => {
|
|
790
|
+
if (!h) return Pi;
|
|
791
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: ve
|
|
799
|
-
}, [Q, M, ve]),
|
|
799
|
+
}, [Q, M, ve]), at = S.useRef(void 0), lt = S.useRef(B), ye = S.useRef(void 0), Dn = S.useRef(!1), dt = S.useRef(!1), ut = S.useRef(
|
|
800
800
|
void 0
|
|
801
801
|
);
|
|
802
|
-
|
|
803
|
-
|
|
802
|
+
je(() => (dt.current = !0, () => {
|
|
803
|
+
dt.current = !1;
|
|
804
804
|
}), []);
|
|
805
|
-
const
|
|
805
|
+
const Nn = S.useMemo(() => () => ye.current && B === lt.current ? ye.current : ct(ee.getState(), B), [ee, B]), Lo = S.useMemo(() => (ue) => ve ? Vi(
|
|
806
806
|
h,
|
|
807
807
|
ee,
|
|
808
808
|
ve,
|
|
809
809
|
// @ts-ignore
|
|
810
|
+
ct,
|
|
811
|
+
lt,
|
|
810
812
|
at,
|
|
813
|
+
Dn,
|
|
811
814
|
dt,
|
|
812
|
-
lt,
|
|
813
|
-
Nn,
|
|
814
|
-
ut,
|
|
815
815
|
ye,
|
|
816
|
-
|
|
816
|
+
yn,
|
|
817
817
|
ue
|
|
818
818
|
) : () => {
|
|
819
819
|
}, [ve]);
|
|
820
|
-
|
|
821
|
-
dt,
|
|
820
|
+
Ti(Bi, [
|
|
822
821
|
lt,
|
|
823
|
-
|
|
822
|
+
at,
|
|
823
|
+
Dn,
|
|
824
824
|
B,
|
|
825
825
|
ye,
|
|
826
|
-
|
|
826
|
+
yn
|
|
827
827
|
]);
|
|
828
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
|
+
Lo,
|
|
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
|
-
ke ? () =>
|
|
835
|
+
Nn,
|
|
836
|
+
ke ? () => ct(ke(), B) : 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
|
-
|
|
846
|
-
|
|
845
|
+
je(() => {
|
|
846
|
+
ut.current = void 0, ye.current = void 0, at.current = Fe;
|
|
847
847
|
});
|
|
848
|
-
const
|
|
848
|
+
const pt = S.useMemo(() => (
|
|
849
849
|
// @ts-ignore
|
|
850
850
|
/* @__PURE__ */ S.createElement(
|
|
851
851
|
m,
|
|
@@ -855,7 +855,7 @@ ${pt.current.stack}
|
|
|
855
855
|
}
|
|
856
856
|
)
|
|
857
857
|
), [U, m, Fe]);
|
|
858
|
-
return S.useMemo(() => h ? /* @__PURE__ */ S.createElement(H.Provider, { value:
|
|
858
|
+
return S.useMemo(() => h ? /* @__PURE__ */ S.createElement(H.Provider, { value: En }, pt) : pt, [H, pt, En]);
|
|
859
859
|
}
|
|
860
860
|
const x = S.memo(N);
|
|
861
861
|
if (x.WrappedComponent = m, x.displayName = N.displayName = v, a) {
|
|
@@ -864,13 +864,13 @@ ${pt.current.stack}
|
|
|
864
864
|
return /* @__PURE__ */ S.createElement(x, { ...B, reactReduxForwardedRef: H });
|
|
865
865
|
}
|
|
866
866
|
);
|
|
867
|
-
return R.displayName = v, R.WrappedComponent = m, /* @__PURE__ */
|
|
867
|
+
return R.displayName = v, R.WrappedComponent = m, /* @__PURE__ */ Bt(R, m);
|
|
868
868
|
}
|
|
869
|
-
return /* @__PURE__ */
|
|
869
|
+
return /* @__PURE__ */ Bt(x, m);
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
|
-
var Pr =
|
|
873
|
-
function
|
|
872
|
+
var Pr = Mi;
|
|
873
|
+
function $i(e) {
|
|
874
874
|
const { children: t, context: n, serverState: r, store: o } = e, i = S.useMemo(() => {
|
|
875
875
|
const a = Sr(o), d = {
|
|
876
876
|
store: o,
|
|
@@ -887,7 +887,7 @@ function Mi(e) {
|
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
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;
|
|
@@ -896,11 +896,11 @@ function Mi(e) {
|
|
|
896
896
|
const c = n || Ar;
|
|
897
897
|
return /* @__PURE__ */ S.createElement(c.Provider, { value: i }, t);
|
|
898
898
|
}
|
|
899
|
-
var
|
|
900
|
-
function
|
|
901
|
-
if (
|
|
902
|
-
throw new Error(
|
|
903
|
-
var n = typeof t == "function" ? t() : t, r = n ? "".concat(
|
|
899
|
+
var Gi = $i, ki = process.env.NODE_ENV === "production", yt = "Invariant failed";
|
|
900
|
+
function Mn(e, t) {
|
|
901
|
+
if (ki)
|
|
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,34 +919,34 @@ 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,
|
|
933
933
|
bottom: t.bottom - n.bottom,
|
|
934
934
|
right: t.right - n.right
|
|
935
935
|
};
|
|
936
|
-
},
|
|
936
|
+
}, Fi = function(t, n) {
|
|
937
937
|
return {
|
|
938
938
|
top: t.top + n.y,
|
|
939
939
|
left: t.left + n.x,
|
|
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" ?
|
|
965
|
-
},
|
|
964
|
+
return isNaN(o) && (process.env.NODE_ENV !== "production" ? Mn(!1, "Could not parse value [raw: " + t + ", without suffix: " + n + "]") : Mn()), o;
|
|
965
|
+
}, Wi = function() {
|
|
966
966
|
return {
|
|
967
967
|
x: window.pageXOffset,
|
|
968
968
|
y: window.pageYOffset
|
|
969
969
|
};
|
|
970
|
-
},
|
|
971
|
-
var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c =
|
|
972
|
-
return
|
|
970
|
+
}, Ye = function(t, n) {
|
|
971
|
+
var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c = Fi(r, n);
|
|
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 =
|
|
978
|
+
}, Xe = function(t, n) {
|
|
979
|
+
return n === void 0 && (n = Wi()), Ye(t, n);
|
|
980
980
|
}, Rr = 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 Ui = process.env.NODE_ENV === "production", Hi = /[ \t]{2,}/g, zi = /^[ \t]*/gm, Gn = (e) => e.replace(Hi, " ").replace(zi, "").trim(), qi = (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
|
+
`), ji = (e) => [qi(e), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"], Yi = "__@hello-pangea/dnd-disable-dev-warnings";
|
|
1034
1034
|
function Br(e, t) {
|
|
1035
|
-
|
|
1035
|
+
Ui || typeof window < "u" && window[Yi] || console[e](...ji(t));
|
|
1036
1036
|
}
|
|
1037
|
-
const T = Br.bind(null, "warn"),
|
|
1037
|
+
const T = Br.bind(null, "warn"), Vt = Br.bind(null, "error");
|
|
1038
1038
|
function re() {
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Xi(e, t) {
|
|
1041
1041
|
return {
|
|
1042
1042
|
...e,
|
|
1043
1043
|
...t
|
|
@@ -1045,7 +1045,7 @@ function Yi(e, t) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
function K(e, t, n) {
|
|
1047
1047
|
const r = t.map((o) => {
|
|
1048
|
-
const i =
|
|
1048
|
+
const i = Xi(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,16 +1056,16 @@ function K(e, t, n) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
class
|
|
1059
|
+
const Ki = process.env.NODE_ENV === "production", kn = "Invariant failed";
|
|
1060
|
+
class we extends Error {
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1062
|
+
we.prototype.toString = function() {
|
|
1063
1063
|
return this.message;
|
|
1064
1064
|
};
|
|
1065
1065
|
function g(e, t) {
|
|
1066
|
-
throw
|
|
1066
|
+
throw Ki ? new we(kn) : new we(`${kn}: ${t || ""}`);
|
|
1067
1067
|
}
|
|
1068
|
-
class
|
|
1068
|
+
class Ji extends L.Component {
|
|
1069
1069
|
constructor(...t) {
|
|
1070
1070
|
super(...t), this.callbacks = null, this.unbind = re, this.onWindowError = (n) => {
|
|
1071
1071
|
const r = this.getCallbacks();
|
|
@@ -1074,7 +1074,7 @@ class Ki extends L.Component {
|
|
|
1074
1074
|
The active drag has been aborted.
|
|
1075
1075
|
`));
|
|
1076
1076
|
const o = n.error;
|
|
1077
|
-
o instanceof
|
|
1077
|
+
o instanceof we && (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/>");
|
|
@@ -1090,8 +1090,8 @@ class Ki extends L.Component {
|
|
|
1090
1090
|
}]);
|
|
1091
1091
|
}
|
|
1092
1092
|
componentDidCatch(t) {
|
|
1093
|
-
if (t instanceof
|
|
1094
|
-
process.env.NODE_ENV !== "production" &&
|
|
1093
|
+
if (t instanceof we) {
|
|
1094
|
+
process.env.NODE_ENV !== "production" && Vt(t.message), this.setState({});
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
throw t;
|
|
@@ -1103,14 +1103,14 @@ class Ki extends L.Component {
|
|
|
1103
1103
|
return this.props.children(this.setCallbacks);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const Zi = `
|
|
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, Qi = (e) => `
|
|
1111
|
+
You have lifted an item in position ${Je(e.source.index)}
|
|
1112
1112
|
`, Vr = (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}
|
|
@@ -1127,20 +1127,20 @@ const Ji = `
|
|
|
1127
1127
|
in list ${t.droppableId}
|
|
1128
1128
|
has been combined with ${n.draggableId}
|
|
1129
1129
|
in list ${n.droppableId}
|
|
1130
|
-
`,
|
|
1130
|
+
`, es = (e) => {
|
|
1131
1131
|
const t = e.destination;
|
|
1132
1132
|
if (t)
|
|
1133
1133
|
return Vr(e.source, t);
|
|
1134
1134
|
const n = e.combine;
|
|
1135
1135
|
return n ? Lr(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 ${
|
|
1139
|
-
`,
|
|
1138
|
+
of ${Je(e.index)}
|
|
1139
|
+
`, ts = (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,26 +1151,26 @@ const Ji = `
|
|
|
1151
1151
|
${Lr(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
|
-
dragHandleUsageInstructions:
|
|
1158
|
-
onDragStart:
|
|
1159
|
-
onDragUpdate:
|
|
1160
|
-
onDragEnd:
|
|
1157
|
+
dragHandleUsageInstructions: Zi,
|
|
1158
|
+
onDragStart: Qi,
|
|
1159
|
+
onDragUpdate: es,
|
|
1160
|
+
onDragEnd: ts
|
|
1161
1161
|
};
|
|
1162
|
-
function
|
|
1162
|
+
function ns(e, t) {
|
|
1163
1163
|
return !!(e === t || Number.isNaN(e) && Number.isNaN(t));
|
|
1164
1164
|
}
|
|
1165
1165
|
function Mr(e, t) {
|
|
1166
1166
|
if (e.length !== t.length)
|
|
1167
1167
|
return !1;
|
|
1168
1168
|
for (let n = 0; n < e.length; n++)
|
|
1169
|
-
if (!
|
|
1169
|
+
if (!ns(e[n], t[n]))
|
|
1170
1170
|
return !1;
|
|
1171
1171
|
return !0;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function O(e, t) {
|
|
1174
1174
|
const n = me(() => ({
|
|
1175
1175
|
inputs: t,
|
|
1176
1176
|
result: e()
|
|
@@ -1183,7 +1183,7 @@ function w(e, t) {
|
|
|
1183
1183
|
}, [s]), s.result;
|
|
1184
1184
|
}
|
|
1185
1185
|
function D(e, t) {
|
|
1186
|
-
return
|
|
1186
|
+
return O(() => e, t);
|
|
1187
1187
|
}
|
|
1188
1188
|
const G = {
|
|
1189
1189
|
x: 0,
|
|
@@ -1203,11 +1203,11 @@ const G = {
|
|
|
1203
1203
|
} : {
|
|
1204
1204
|
x: n,
|
|
1205
1205
|
y: t
|
|
1206
|
-
},
|
|
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))), $r = (e) => (t) => ({
|
|
1207
1207
|
x: e(t.x),
|
|
1208
1208
|
y: e(t.y)
|
|
1209
1209
|
});
|
|
1210
|
-
var
|
|
1210
|
+
var rs = (e, t) => {
|
|
1211
1211
|
const n = Z({
|
|
1212
1212
|
top: Math.max(t.top, e.top),
|
|
1213
1213
|
right: Math.min(t.right, e.right),
|
|
@@ -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
|
}, {
|
|
@@ -1233,28 +1233,28 @@ const Be = (e, t) => ({
|
|
|
1233
1233
|
}, {
|
|
1234
1234
|
x: e.right,
|
|
1235
1235
|
y: e.bottom
|
|
1236
|
-
}],
|
|
1236
|
+
}], os = {
|
|
1237
1237
|
top: 0,
|
|
1238
1238
|
right: 0,
|
|
1239
1239
|
bottom: 0,
|
|
1240
1240
|
left: 0
|
|
1241
|
-
},
|
|
1241
|
+
}, is = (e, t) => t ? Be(e, t.scroll.diff.displacement) : e, ss = (e, t, n) => n && n.increasedBy ? {
|
|
1242
1242
|
...e,
|
|
1243
1243
|
[t.end]: e[t.end] + n.increasedBy[t.line]
|
|
1244
|
-
} : e,
|
|
1244
|
+
} : e, cs = (e, t) => t && t.shouldClipSubject ? rs(t.pageMarginBox, e) : Z(e);
|
|
1245
1245
|
var pe = ({
|
|
1246
1246
|
page: e,
|
|
1247
1247
|
withPlaceholder: t,
|
|
1248
1248
|
axis: n,
|
|
1249
1249
|
frame: r
|
|
1250
1250
|
}) => {
|
|
1251
|
-
const o =
|
|
1251
|
+
const o = is(e.marginBox, r), i = ss(o, n, t), s = cs(i, r);
|
|
1252
1252
|
return {
|
|
1253
1253
|
page: e,
|
|
1254
1254
|
withPlaceholder: t,
|
|
1255
1255
|
active: s
|
|
1256
1256
|
};
|
|
1257
|
-
},
|
|
1257
|
+
}, Kt = (e, t) => {
|
|
1258
1258
|
e.frame || (process.env.NODE_ENV, g());
|
|
1259
1259
|
const n = e.frame, r = q(t, n.scroll.initial), o = he(r), i = {
|
|
1260
1260
|
...n,
|
|
@@ -1295,22 +1295,22 @@ function $(e, t = Mr) {
|
|
|
1295
1295
|
n = null;
|
|
1296
1296
|
}, r;
|
|
1297
1297
|
}
|
|
1298
|
-
const Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), kr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})),
|
|
1299
|
-
var le = $((e, t) =>
|
|
1300
|
-
function
|
|
1298
|
+
const Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), kr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), tt = $((e) => Object.values(e)), as = $((e) => Object.values(e));
|
|
1299
|
+
var le = $((e, t) => as(t).filter((r) => e === r.descriptor.droppableId).sort((r, o) => r.descriptor.index - o.descriptor.index));
|
|
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)), ls = ({
|
|
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
1315
|
function s(f) {
|
|
1316
1316
|
const h = {
|
|
@@ -1328,7 +1328,7 @@ var ot = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), as =
|
|
|
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;
|
|
@@ -1350,7 +1350,7 @@ const Fr = {
|
|
|
1350
1350
|
invisible: {},
|
|
1351
1351
|
visible: {},
|
|
1352
1352
|
all: []
|
|
1353
|
-
},
|
|
1353
|
+
}, ds = {
|
|
1354
1354
|
displaced: Se,
|
|
1355
1355
|
displacedBy: Fr,
|
|
1356
1356
|
at: null
|
|
@@ -1366,11 +1366,11 @@ var J = (e, t) => (n) => e <= n && n <= t, Wr = (e) => {
|
|
|
1366
1366
|
const a = r.top < e.top && r.bottom > e.bottom, d = r.left < e.left && r.right > e.right;
|
|
1367
1367
|
return a && d ? !0 : a && s || d && i;
|
|
1368
1368
|
};
|
|
1369
|
-
},
|
|
1369
|
+
}, us = (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",
|
|
@@ -1391,32 +1391,32 @@ const Qt = {
|
|
|
1391
1391
|
crossAxisEnd: "bottom",
|
|
1392
1392
|
crossAxisSize: "height"
|
|
1393
1393
|
};
|
|
1394
|
-
var
|
|
1394
|
+
var ps = (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
|
-
const
|
|
1398
|
+
const fs = (e, t) => {
|
|
1399
1399
|
const n = t.frame ? t.frame.scroll.diff.displacement : G;
|
|
1400
1400
|
return Be(e, n);
|
|
1401
|
-
},
|
|
1401
|
+
}, gs = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ms = (e, t, n) => n(t)(e), Qt = ({
|
|
1402
1402
|
target: e,
|
|
1403
1403
|
destination: t,
|
|
1404
1404
|
viewport: n,
|
|
1405
1405
|
withDroppableDisplacement: r,
|
|
1406
1406
|
isVisibleThroughFrameFn: o
|
|
1407
1407
|
}) => {
|
|
1408
|
-
const i = r ?
|
|
1409
|
-
return
|
|
1410
|
-
},
|
|
1408
|
+
const i = r ? fs(e, t) : e;
|
|
1409
|
+
return gs(i, t, o) && ms(i, n, o);
|
|
1410
|
+
}, hs = (e) => Qt({
|
|
1411
1411
|
...e,
|
|
1412
1412
|
isVisibleThroughFrameFn: Wr
|
|
1413
|
-
}), Hr = (e) =>
|
|
1413
|
+
}), Hr = (e) => Qt({
|
|
1414
1414
|
...e,
|
|
1415
|
-
isVisibleThroughFrameFn:
|
|
1416
|
-
}),
|
|
1415
|
+
isVisibleThroughFrameFn: us
|
|
1416
|
+
}), bs = (e) => Qt({
|
|
1417
1417
|
...e,
|
|
1418
|
-
isVisibleThroughFrameFn:
|
|
1419
|
-
}),
|
|
1418
|
+
isVisibleThroughFrameFn: ps(e.destination.axis)
|
|
1419
|
+
}), vs = (e, t, n) => {
|
|
1420
1420
|
if (typeof n == "boolean")
|
|
1421
1421
|
return n;
|
|
1422
1422
|
if (!t)
|
|
@@ -1430,14 +1430,14 @@ const ps = (e, t) => {
|
|
|
1430
1430
|
const i = o[e];
|
|
1431
1431
|
return i ? i.shouldAnimate : !0;
|
|
1432
1432
|
};
|
|
1433
|
-
function
|
|
1433
|
+
function ys(e, t) {
|
|
1434
1434
|
const n = e.page.marginBox, r = {
|
|
1435
1435
|
top: t.point.y,
|
|
1436
1436
|
right: 0,
|
|
1437
1437
|
bottom: 0,
|
|
1438
1438
|
left: t.point.x
|
|
1439
1439
|
};
|
|
1440
|
-
return Z(
|
|
1440
|
+
return Z(Yt(n, r));
|
|
1441
1441
|
}
|
|
1442
1442
|
function _e({
|
|
1443
1443
|
afterDragging: e,
|
|
@@ -1448,15 +1448,15 @@ function _e({
|
|
|
1448
1448
|
last: i
|
|
1449
1449
|
}) {
|
|
1450
1450
|
return e.reduce(function(c, a) {
|
|
1451
|
-
const d =
|
|
1452
|
-
if (c.all.push(p), !
|
|
1451
|
+
const d = ys(a, n), p = a.descriptor.id;
|
|
1452
|
+
if (c.all.push(p), !hs({
|
|
1453
1453
|
target: d,
|
|
1454
1454
|
destination: t,
|
|
1455
1455
|
viewport: r,
|
|
1456
1456
|
withDroppableDisplacement: !0
|
|
1457
1457
|
}))
|
|
1458
1458
|
return c.invisible[a.descriptor.id] = !0, c;
|
|
1459
|
-
const u =
|
|
1459
|
+
const u = vs(p, i, o), f = {
|
|
1460
1460
|
draggableId: p,
|
|
1461
1461
|
shouldAnimate: u
|
|
1462
1462
|
};
|
|
@@ -1467,19 +1467,19 @@ function _e({
|
|
|
1467
1467
|
invisible: {}
|
|
1468
1468
|
});
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Es(e, t) {
|
|
1471
1471
|
if (!e.length)
|
|
1472
1472
|
return 0;
|
|
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,
|
|
1480
1480
|
destination: r
|
|
1481
1481
|
}) {
|
|
1482
|
-
const o =
|
|
1482
|
+
const o = Es(e, {
|
|
1483
1483
|
inHomeList: t
|
|
1484
1484
|
});
|
|
1485
1485
|
return {
|
|
@@ -1494,7 +1494,7 @@ function zn({
|
|
|
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 Qe({
|
|
|
1506
1506
|
}) {
|
|
1507
1507
|
const a = be(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,13 +1514,13 @@ function Qe({
|
|
|
1514
1514
|
});
|
|
1515
1515
|
const d = t.find((h) => h.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
1525
|
displaced: _e({
|
|
1526
1526
|
afterDragging: u,
|
|
@@ -1543,7 +1543,7 @@ function Qe({
|
|
|
1543
1543
|
function ie(e, t) {
|
|
1544
1544
|
return !!t.effected[e];
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var Ds = ({
|
|
1547
1547
|
isMovingForward: e,
|
|
1548
1548
|
destination: t,
|
|
1549
1549
|
draggables: n,
|
|
@@ -1554,7 +1554,7 @@ var Es = ({
|
|
|
1554
1554
|
return null;
|
|
1555
1555
|
const i = r.draggableId, c = n[i].descriptor.index;
|
|
1556
1556
|
return ie(i, o) ? e ? c : c - 1 : e ? c + 1 : c;
|
|
1557
|
-
},
|
|
1557
|
+
}, Ns = ({
|
|
1558
1558
|
isMovingForward: e,
|
|
1559
1559
|
isInHomeList: t,
|
|
1560
1560
|
insideDestination: n,
|
|
@@ -1564,7 +1564,7 @@ var Es = ({
|
|
|
1564
1564
|
return null;
|
|
1565
1565
|
const o = r.index, i = e ? o + 1 : o - 1, s = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, a = t ? c : c + 1;
|
|
1566
1566
|
return i < s || i > a ? null : i;
|
|
1567
|
-
},
|
|
1567
|
+
}, xs = ({
|
|
1568
1568
|
isMovingForward: e,
|
|
1569
1569
|
isInHomeList: t,
|
|
1570
1570
|
draggable: n,
|
|
@@ -1577,13 +1577,13 @@ var Es = ({
|
|
|
1577
1577
|
}) => {
|
|
1578
1578
|
const d = s.at;
|
|
1579
1579
|
if (d || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot move in direction without previous impact location") : g()), d.type === "REORDER") {
|
|
1580
|
-
const l =
|
|
1580
|
+
const l = Ns({
|
|
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,
|
|
@@ -1593,7 +1593,7 @@ var Es = ({
|
|
|
1593
1593
|
index: l
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
|
-
const p =
|
|
1596
|
+
const p = Ds({
|
|
1597
1597
|
isMovingForward: e,
|
|
1598
1598
|
destination: o,
|
|
1599
1599
|
displaced: s.displaced,
|
|
@@ -1601,7 +1601,7 @@ var Es = ({
|
|
|
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,
|
|
@@ -1610,7 +1610,7 @@ var Es = ({
|
|
|
1610
1610
|
displacedBy: s.displacedBy,
|
|
1611
1611
|
index: p
|
|
1612
1612
|
});
|
|
1613
|
-
},
|
|
1613
|
+
}, Is = ({
|
|
1614
1614
|
displaced: e,
|
|
1615
1615
|
afterCritical: t,
|
|
1616
1616
|
combineWith: n,
|
|
@@ -1618,14 +1618,14 @@ var Es = ({
|
|
|
1618
1618
|
}) => {
|
|
1619
1619
|
const o = !!(e.visible[n] || e.invisible[n]);
|
|
1620
1620
|
return ie(n, t) ? o ? G : he(r.point) : o ? r.point : G;
|
|
1621
|
-
},
|
|
1621
|
+
}, Cs = ({
|
|
1622
1622
|
afterCritical: e,
|
|
1623
1623
|
impact: t,
|
|
1624
1624
|
draggables: n
|
|
1625
1625
|
}) => {
|
|
1626
|
-
const r =
|
|
1626
|
+
const r = nt(t);
|
|
1627
1627
|
r || (process.env.NODE_ENV, g());
|
|
1628
|
-
const o = r.draggableId, i = n[o].page.borderBox.center, s =
|
|
1628
|
+
const o = r.draggableId, i = n[o].page.borderBox.center, s = Is({
|
|
1629
1629
|
displaced: t.displaced,
|
|
1630
1630
|
afterCritical: e,
|
|
1631
1631
|
combineWith: o,
|
|
@@ -1633,20 +1633,20 @@ var Es = ({
|
|
|
1633
1633
|
});
|
|
1634
1634
|
return k(i, s);
|
|
1635
1635
|
};
|
|
1636
|
-
const zr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2,
|
|
1636
|
+
const zr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, ws = (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] + zr(e, n),
|
|
1640
|
+
}) => ae(e.line, t.marginBox[e.end] + zr(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] -
|
|
1644
|
+
}) => ae(e.line, t.marginBox[e.start] - ws(e, n), en(e, t.marginBox, n)), Os = ({
|
|
1645
1645
|
axis: e,
|
|
1646
1646
|
moveInto: t,
|
|
1647
1647
|
isMoving: n
|
|
1648
|
-
}) => ae(e.line, t.contentBox[e.start] + zr(e, n),
|
|
1649
|
-
var
|
|
1648
|
+
}) => ae(e.line, t.contentBox[e.start] + zr(e, n), en(e, t.contentBox, n));
|
|
1649
|
+
var Ss = ({
|
|
1650
1650
|
impact: e,
|
|
1651
1651
|
draggable: t,
|
|
1652
1652
|
draggables: n,
|
|
@@ -1667,13 +1667,13 @@ var ws = ({
|
|
|
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 f =
|
|
1676
|
-
return
|
|
1675
|
+
const f = Ye(u.page, d.point);
|
|
1676
|
+
return qn({
|
|
1677
1677
|
axis: c,
|
|
1678
1678
|
moveRelativeTo: f,
|
|
1679
1679
|
isMoving: s
|
|
@@ -1683,23 +1683,23 @@ var ws = ({
|
|
|
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, he(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
1700
|
return n ? k(t, n.scroll.diff.displacement) : t;
|
|
1701
1701
|
};
|
|
1702
|
-
const
|
|
1702
|
+
const _s = ({
|
|
1703
1703
|
impact: e,
|
|
1704
1704
|
draggable: t,
|
|
1705
1705
|
droppable: n,
|
|
@@ -1707,21 +1707,21 @@ const Ss = ({
|
|
|
1707
1707
|
afterCritical: o
|
|
1708
1708
|
}) => {
|
|
1709
1709
|
const i = t.page.borderBox.center, s = e.at;
|
|
1710
|
-
return !n || !s ? i : s.type === "REORDER" ?
|
|
1710
|
+
return !n || !s ? i : s.type === "REORDER" ? Ss({
|
|
1711
1711
|
impact: e,
|
|
1712
1712
|
draggable: t,
|
|
1713
1713
|
draggables: r,
|
|
1714
1714
|
droppable: n,
|
|
1715
1715
|
afterCritical: o
|
|
1716
|
-
}) :
|
|
1716
|
+
}) : Cs({
|
|
1717
1717
|
impact: e,
|
|
1718
1718
|
draggables: r,
|
|
1719
1719
|
afterCritical: o
|
|
1720
1720
|
});
|
|
1721
1721
|
};
|
|
1722
|
-
var
|
|
1723
|
-
const t =
|
|
1724
|
-
return n ?
|
|
1722
|
+
var ot = (e) => {
|
|
1723
|
+
const t = _s(e), n = e.droppable;
|
|
1724
|
+
return n ? Lt(n, t) : t;
|
|
1725
1725
|
}, qr = (e, t) => {
|
|
1726
1726
|
const n = q(t, e.scroll.initial), r = he(n);
|
|
1727
1727
|
return {
|
|
@@ -1742,10 +1742,10 @@ var it = (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 As(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 _s(e, t) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
return null;
|
|
1755
1755
|
}
|
|
1756
|
-
var
|
|
1756
|
+
var Ps = ({
|
|
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 = qr(t, k(t.scroll.current, o)), s = n.frame ?
|
|
1764
|
-
afterDragging:
|
|
1763
|
+
const i = qr(t, k(t.scroll.current, o)), s = n.frame ? Kt(n, k(n.frame.scroll.current, o)) : n, c = e.displaced, a = _e({
|
|
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
1770
|
}), d = _e({
|
|
1771
|
-
afterDragging:
|
|
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 As = ({
|
|
|
1776
1776
|
forceShouldAnimate: !1
|
|
1777
1777
|
}), p = {}, l = {}, u = [c, a, d];
|
|
1778
1778
|
return c.all.forEach((h) => {
|
|
1779
|
-
const b =
|
|
1779
|
+
const b = As(h, u);
|
|
1780
1780
|
if (b) {
|
|
1781
1781
|
l[h] = b;
|
|
1782
1782
|
return;
|
|
@@ -1790,12 +1790,12 @@ var As = ({
|
|
|
1790
1790
|
visible: l
|
|
1791
1791
|
}
|
|
1792
1792
|
};
|
|
1793
|
-
},
|
|
1793
|
+
}, Rs = (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 =
|
|
1798
|
+
const r = Rs(n, e), o = q(r, t.page.borderBox.center);
|
|
1799
1799
|
return k(t.client.borderBox.center, o);
|
|
1800
1800
|
}, jr = ({
|
|
1801
1801
|
draggable: e,
|
|
@@ -1811,8 +1811,8 @@ var As = ({
|
|
|
1811
1811
|
withDroppableDisplacement: o,
|
|
1812
1812
|
viewport: r
|
|
1813
1813
|
};
|
|
1814
|
-
return i ?
|
|
1815
|
-
},
|
|
1814
|
+
return i ? bs(a) : Hr(a);
|
|
1815
|
+
}, Ts = ({
|
|
1816
1816
|
isMovingForward: e,
|
|
1817
1817
|
draggable: t,
|
|
1818
1818
|
destination: n,
|
|
@@ -1825,13 +1825,13 @@ var As = ({
|
|
|
1825
1825
|
}) => {
|
|
1826
1826
|
if (!n.isEnabled)
|
|
1827
1827
|
return null;
|
|
1828
|
-
const d = le(n.descriptor.id, r), p = be(t, n), l =
|
|
1828
|
+
const d = le(n.descriptor.id, r), p = be(t, n), l = ls({
|
|
1829
1829
|
isMovingForward: e,
|
|
1830
1830
|
draggable: t,
|
|
1831
1831
|
destination: n,
|
|
1832
1832
|
insideDestination: d,
|
|
1833
1833
|
previousImpact: o
|
|
1834
|
-
}) ||
|
|
1834
|
+
}) || xs({
|
|
1835
1835
|
isMovingForward: e,
|
|
1836
1836
|
isInHomeList: p,
|
|
1837
1837
|
draggable: t,
|
|
@@ -1844,7 +1844,7 @@ var As = ({
|
|
|
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,
|
|
@@ -1860,7 +1860,7 @@ var As = ({
|
|
|
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 As = ({
|
|
|
1868
1868
|
impact: l,
|
|
1869
1869
|
scrollJumpRequest: null
|
|
1870
1870
|
};
|
|
1871
|
-
const h = q(u, s), b =
|
|
1871
|
+
const h = q(u, s), b = Ps({
|
|
1872
1872
|
impact: l,
|
|
1873
1873
|
viewport: i,
|
|
1874
1874
|
destination: n,
|
|
@@ -1885,7 +1885,7 @@ const F = (e) => {
|
|
|
1885
1885
|
const t = e.subject.active;
|
|
1886
1886
|
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot get clipped area from droppable") : g()), t;
|
|
1887
1887
|
};
|
|
1888
|
-
var
|
|
1888
|
+
var Bs = ({
|
|
1889
1889
|
isMovingForward: e,
|
|
1890
1890
|
pageBorderBoxCenter: t,
|
|
1891
1891
|
source: n,
|
|
@@ -1895,7 +1895,7 @@ var Ts = ({
|
|
|
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 =
|
|
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) => Wr(o.frame)(F(p))).filter((p) => {
|
|
1899
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) => {
|
|
@@ -1911,30 +1911,30 @@ var Ts = ({
|
|
|
1911
1911
|
return a[0];
|
|
1912
1912
|
const d = a.filter((p) => J(F(p)[s.start], F(p)[s.end])(t[s.line]));
|
|
1913
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 =
|
|
1914
|
+
const u = Wn(t, Un(F(p))), f = Wn(t, Un(F(l)));
|
|
1915
1915
|
return u !== f ? u - f : 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
1920
|
return ie(e.descriptor.id, t) ? q(n, t.displacedBy.point) : n;
|
|
1921
|
-
},
|
|
1921
|
+
}, Vs = (e, t) => {
|
|
1922
1922
|
const n = e.page.borderBox;
|
|
1923
1923
|
return ie(e.descriptor.id, t) ? Be(n, he(t.displacedBy.point)) : n;
|
|
1924
1924
|
};
|
|
1925
|
-
var
|
|
1925
|
+
var Ls = ({
|
|
1926
1926
|
pageBorderBoxCenter: e,
|
|
1927
1927
|
viewport: t,
|
|
1928
1928
|
destination: n,
|
|
1929
1929
|
insideDestination: r,
|
|
1930
1930
|
afterCritical: o
|
|
1931
1931
|
}) => r.filter((s) => Hr({
|
|
1932
|
-
target:
|
|
1932
|
+
target: Vs(s, o),
|
|
1933
1933
|
destination: n,
|
|
1934
1934
|
viewport: t.frame,
|
|
1935
1935
|
withDroppableDisplacement: !0
|
|
1936
1936
|
})).sort((s, c) => {
|
|
1937
|
-
const a =
|
|
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];
|
|
@@ -1943,7 +1943,7 @@ var Vs = ({
|
|
|
1943
1943
|
point: ae(t.line, r)
|
|
1944
1944
|
};
|
|
1945
1945
|
});
|
|
1946
|
-
const
|
|
1946
|
+
const Ms = (e, t, n) => {
|
|
1947
1947
|
const r = e.axis;
|
|
1948
1948
|
if (e.descriptor.mode === "virtual")
|
|
1949
1949
|
return ae(r.line, t[r.line]);
|
|
@@ -1958,7 +1958,7 @@ const Ls = (e, t, n) => {
|
|
|
1958
1958
|
}), Xr = (e, t, n) => {
|
|
1959
1959
|
const r = e.frame;
|
|
1960
1960
|
be(t, e) && (process.env.NODE_ENV !== "production" ? g(!1, "Should not add placeholder space to home list") : g()), e.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot add placeholder size to a subject when it already has one") : g());
|
|
1961
|
-
const o = Ve(e.axis, t.displaceBy).point, i =
|
|
1961
|
+
const o = Ve(e.axis, t.displaceBy).point, i = Ms(e, o, n), s = {
|
|
1962
1962
|
placeholderSize: o,
|
|
1963
1963
|
increasedBy: i,
|
|
1964
1964
|
oldFrameMaxScroll: e.frame ? e.frame.scroll.max : null
|
|
@@ -1986,7 +1986,7 @@ const Ls = (e, t, n) => {
|
|
|
1986
1986
|
subject: d,
|
|
1987
1987
|
frame: a
|
|
1988
1988
|
};
|
|
1989
|
-
},
|
|
1989
|
+
}, $s = (e) => {
|
|
1990
1990
|
const t = e.subject.withPlaceholder;
|
|
1991
1991
|
t || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot remove placeholder form subject when there was none") : g());
|
|
1992
1992
|
const n = e.frame;
|
|
@@ -2016,7 +2016,7 @@ const Ls = (e, t, n) => {
|
|
|
2016
2016
|
frame: o
|
|
2017
2017
|
};
|
|
2018
2018
|
};
|
|
2019
|
-
var
|
|
2019
|
+
var Gs = ({
|
|
2020
2020
|
previousPageBorderBoxCenter: e,
|
|
2021
2021
|
moveRelativeTo: t,
|
|
2022
2022
|
insideDestination: n,
|
|
@@ -2039,7 +2039,7 @@ var $s = ({
|
|
|
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,
|
|
@@ -2059,7 +2059,7 @@ var $s = ({
|
|
|
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,
|
|
@@ -2068,7 +2068,7 @@ var $s = ({
|
|
|
2068
2068
|
last: Se,
|
|
2069
2069
|
index: d
|
|
2070
2070
|
});
|
|
2071
|
-
},
|
|
2071
|
+
}, ks = ({
|
|
2072
2072
|
isMovingForward: e,
|
|
2073
2073
|
previousPageBorderBoxCenter: t,
|
|
2074
2074
|
draggable: n,
|
|
@@ -2078,7 +2078,7 @@ var $s = ({
|
|
|
2078
2078
|
viewport: s,
|
|
2079
2079
|
afterCritical: c
|
|
2080
2080
|
}) => {
|
|
2081
|
-
const a =
|
|
2081
|
+
const a = Bs({
|
|
2082
2082
|
isMovingForward: e,
|
|
2083
2083
|
pageBorderBoxCenter: t,
|
|
2084
2084
|
source: r,
|
|
@@ -2087,13 +2087,13 @@ var $s = ({
|
|
|
2087
2087
|
});
|
|
2088
2088
|
if (!a)
|
|
2089
2089
|
return null;
|
|
2090
|
-
const d = le(a.descriptor.id, o), p =
|
|
2090
|
+
const d = le(a.descriptor.id, o), p = Ls({
|
|
2091
2091
|
pageBorderBoxCenter: t,
|
|
2092
2092
|
viewport: s,
|
|
2093
2093
|
destination: a,
|
|
2094
2094
|
insideDestination: d,
|
|
2095
2095
|
afterCritical: c
|
|
2096
|
-
}), l =
|
|
2096
|
+
}), l = Gs({
|
|
2097
2097
|
previousPageBorderBoxCenter: t,
|
|
2098
2098
|
destination: a,
|
|
2099
2099
|
draggable: n,
|
|
@@ -2105,7 +2105,7 @@ var $s = ({
|
|
|
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 $s = ({
|
|
|
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
|
|
@@ -2125,22 +2125,22 @@ var $s = ({
|
|
|
2125
2125
|
const t = e.at;
|
|
2126
2126
|
return t ? t.type === "REORDER" ? t.destination.droppableId : t.combine.droppableId : null;
|
|
2127
2127
|
};
|
|
2128
|
-
const
|
|
2128
|
+
const Fs = (e, t) => {
|
|
2129
2129
|
const n = j(e);
|
|
2130
2130
|
return n ? t[n] : null;
|
|
2131
2131
|
};
|
|
2132
|
-
var
|
|
2132
|
+
var Ws = ({
|
|
2133
2133
|
state: e,
|
|
2134
2134
|
type: t
|
|
2135
2135
|
}) => {
|
|
2136
|
-
const n =
|
|
2136
|
+
const n = Fs(e.impact, e.dimensions.droppables), r = !!n, o = e.dimensions.droppables[e.critical.droppable.id], i = n || o, s = i.axis.direction, c = s === "vertical" && (t === "MOVE_UP" || t === "MOVE_DOWN") || s === "horizontal" && (t === "MOVE_LEFT" || t === "MOVE_RIGHT");
|
|
2137
2137
|
if (c && !r)
|
|
2138
2138
|
return null;
|
|
2139
2139
|
const a = t === "MOVE_DOWN" || t === "MOVE_RIGHT", d = e.dimensions.draggables[e.critical.draggable.id], p = e.current.page.borderBoxCenter, {
|
|
2140
2140
|
draggables: l,
|
|
2141
2141
|
droppables: u
|
|
2142
2142
|
} = e.dimensions;
|
|
2143
|
-
return c ?
|
|
2143
|
+
return c ? Ts({
|
|
2144
2144
|
isMovingForward: a,
|
|
2145
2145
|
previousPageBorderBoxCenter: p,
|
|
2146
2146
|
draggable: d,
|
|
@@ -2150,7 +2150,7 @@ var Fs = ({
|
|
|
2150
2150
|
previousClientSelection: e.current.client.selection,
|
|
2151
2151
|
previousImpact: e.impact,
|
|
2152
2152
|
afterCritical: e.afterCritical
|
|
2153
|
-
}) :
|
|
2153
|
+
}) : ks({
|
|
2154
2154
|
isMovingForward: a,
|
|
2155
2155
|
previousPageBorderBoxCenter: p,
|
|
2156
2156
|
draggable: d,
|
|
@@ -2170,10 +2170,10 @@ function Kr(e) {
|
|
|
2170
2170
|
return t(o.y) && n(o.x);
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function Us(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 Hs({
|
|
2177
2177
|
pageBorderBox: e,
|
|
2178
2178
|
draggable: t,
|
|
2179
2179
|
candidates: n
|
|
@@ -2182,35 +2182,35 @@ function Us({
|
|
|
2182
2182
|
const s = i.axis, c = ae(i.axis.line, e.center[s.line], i.page.borderBox.center[s.crossAxisLine]);
|
|
2183
2183
|
return {
|
|
2184
2184
|
id: i.descriptor.id,
|
|
2185
|
-
distance:
|
|
2185
|
+
distance: Oe(r, c)
|
|
2186
2186
|
};
|
|
2187
2187
|
}).sort((i, s) => s.distance - i.distance);
|
|
2188
2188
|
return o[0] ? o[0].id : null;
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function zs({
|
|
2191
2191
|
pageBorderBox: e,
|
|
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 || !Us(e, i))
|
|
2200
2200
|
return !1;
|
|
2201
2201
|
if (Kr(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 : Hs({
|
|
2207
2207
|
pageBorderBox: e,
|
|
2208
2208
|
draggable: t,
|
|
2209
2209
|
candidates: r
|
|
2210
2210
|
}) : null;
|
|
2211
2211
|
}
|
|
2212
2212
|
const Jr = (e, t) => Z(Be(e, t));
|
|
2213
|
-
var
|
|
2213
|
+
var qs = (e, t) => {
|
|
2214
2214
|
const n = e.frame;
|
|
2215
2215
|
return n ? Jr(t, n.scroll.diff.value) : t;
|
|
2216
2216
|
};
|
|
@@ -2220,14 +2220,14 @@ function Zr({
|
|
|
2220
2220
|
}) {
|
|
2221
2221
|
return !!(e.visible[t] || e.invisible[t]);
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function js({
|
|
2224
2224
|
draggable: e,
|
|
2225
2225
|
closest: t,
|
|
2226
2226
|
inHomeList: n
|
|
2227
2227
|
}) {
|
|
2228
2228
|
return t ? n && t.descriptor.index > e.descriptor.index ? t.descriptor.index - 1 : t.descriptor.index : null;
|
|
2229
2229
|
}
|
|
2230
|
-
var
|
|
2230
|
+
var Ys = ({
|
|
2231
2231
|
pageBorderBoxWithDroppableScroll: e,
|
|
2232
2232
|
draggable: t,
|
|
2233
2233
|
destination: n,
|
|
@@ -2236,18 +2236,18 @@ var js = ({
|
|
|
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], f =
|
|
2239
|
+
const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], f = rt(t, r).find((b) => {
|
|
2240
2240
|
const m = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(m, s), I = Zr({
|
|
2241
2241
|
displaced: o,
|
|
2242
2242
|
id: m
|
|
2243
2243
|
});
|
|
2244
2244
|
return v ? I ? l <= y : p < y - d : I ? l <= y + d : p < y;
|
|
2245
|
-
}) || null, h =
|
|
2245
|
+
}) || null, h = js({
|
|
2246
2246
|
draggable: t,
|
|
2247
2247
|
closest: f,
|
|
2248
2248
|
inHomeList: be(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 js = ({
|
|
|
2257
2257
|
index: h
|
|
2258
2258
|
});
|
|
2259
2259
|
};
|
|
2260
|
-
const
|
|
2261
|
-
var
|
|
2260
|
+
const Xs = 4;
|
|
2261
|
+
var Ks = ({
|
|
2262
2262
|
draggable: e,
|
|
2263
2263
|
pageBorderBoxWithDroppableScroll: t,
|
|
2264
2264
|
previousImpact: n,
|
|
@@ -2268,8 +2268,8 @@ var Xs = ({
|
|
|
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 = h.descriptor.id, m = h.page.borderBox, v = m[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((h) => {
|
|
2272
|
+
const b = h.descriptor.id, m = h.page.borderBox, v = m[s.size] / Xs, I = ie(b, i), N = Zr({
|
|
2273
2273
|
displaced: n.displaced,
|
|
2274
2274
|
id: b
|
|
2275
2275
|
});
|
|
@@ -2295,22 +2295,22 @@ var Xs = ({
|
|
|
2295
2295
|
viewport: i,
|
|
2296
2296
|
afterCritical: s
|
|
2297
2297
|
}) => {
|
|
2298
|
-
const c = Jr(t.page.borderBox, e), a =
|
|
2298
|
+
const c = Jr(t.page.borderBox, e), a = zs({
|
|
2299
2299
|
pageBorderBox: c,
|
|
2300
2300
|
draggable: t,
|
|
2301
2301
|
droppables: r
|
|
2302
2302
|
});
|
|
2303
2303
|
if (!a)
|
|
2304
|
-
return
|
|
2305
|
-
const d = r[a], p = le(d.descriptor.id, n), l =
|
|
2306
|
-
return
|
|
2304
|
+
return ds;
|
|
2305
|
+
const d = r[a], p = le(d.descriptor.id, n), l = qs(d, c);
|
|
2306
|
+
return Ks({
|
|
2307
2307
|
pageBorderBoxWithDroppableScroll: l,
|
|
2308
2308
|
draggable: t,
|
|
2309
2309
|
previousImpact: o,
|
|
2310
2310
|
destination: d,
|
|
2311
2311
|
insideDestination: p,
|
|
2312
2312
|
afterCritical: s
|
|
2313
|
-
}) ||
|
|
2313
|
+
}) || Ys({
|
|
2314
2314
|
pageBorderBoxWithDroppableScroll: l,
|
|
2315
2315
|
draggable: t,
|
|
2316
2316
|
destination: d,
|
|
@@ -2319,11 +2319,11 @@ var Xs = ({
|
|
|
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
|
});
|
|
2326
|
-
const
|
|
2326
|
+
const Js = ({
|
|
2327
2327
|
previousImpact: e,
|
|
2328
2328
|
impact: t,
|
|
2329
2329
|
droppables: n
|
|
@@ -2334,17 +2334,17 @@ const Ks = ({
|
|
|
2334
2334
|
const i = n[r];
|
|
2335
2335
|
if (!i.subject.withPlaceholder)
|
|
2336
2336
|
return n;
|
|
2337
|
-
const s =
|
|
2338
|
-
return
|
|
2337
|
+
const s = $s(i);
|
|
2338
|
+
return nn(n, s);
|
|
2339
2339
|
};
|
|
2340
|
-
var
|
|
2340
|
+
var Zs = ({
|
|
2341
2341
|
draggable: e,
|
|
2342
2342
|
draggables: t,
|
|
2343
2343
|
droppables: n,
|
|
2344
2344
|
previousImpact: r,
|
|
2345
2345
|
impact: o
|
|
2346
2346
|
}) => {
|
|
2347
|
-
const i =
|
|
2347
|
+
const i = Js({
|
|
2348
2348
|
previousImpact: r,
|
|
2349
2349
|
impact: o,
|
|
2350
2350
|
droppables: n
|
|
@@ -2355,7 +2355,7 @@ var Js = ({
|
|
|
2355
2355
|
if (be(e, c) || c.subject.withPlaceholder)
|
|
2356
2356
|
return i;
|
|
2357
2357
|
const a = Xr(c, e, t);
|
|
2358
|
-
return
|
|
2358
|
+
return nn(i, a);
|
|
2359
2359
|
}, xe = ({
|
|
2360
2360
|
state: e,
|
|
2361
2361
|
clientSelection: t,
|
|
@@ -2391,7 +2391,7 @@ var Js = ({
|
|
|
2391
2391
|
previousImpact: e.impact,
|
|
2392
2392
|
viewport: s,
|
|
2393
2393
|
afterCritical: e.afterCritical
|
|
2394
|
-
}), b =
|
|
2394
|
+
}), b = Zs({
|
|
2395
2395
|
draggable: f,
|
|
2396
2396
|
impact: h,
|
|
2397
2397
|
previousImpact: e.impact,
|
|
@@ -2411,7 +2411,7 @@ var Js = ({
|
|
|
2411
2411
|
forceShouldAnimate: i ? !1 : null
|
|
2412
2412
|
};
|
|
2413
2413
|
};
|
|
2414
|
-
function
|
|
2414
|
+
function Qs(e, t) {
|
|
2415
2415
|
return e.map((n) => t[n]);
|
|
2416
2416
|
}
|
|
2417
2417
|
var eo = ({
|
|
@@ -2421,7 +2421,7 @@ var eo = ({
|
|
|
2421
2421
|
destination: r,
|
|
2422
2422
|
forceShouldAnimate: o
|
|
2423
2423
|
}) => {
|
|
2424
|
-
const i = e.displaced, s =
|
|
2424
|
+
const i = e.displaced, s = Qs(i.all, n), c = _e({
|
|
2425
2425
|
afterDragging: s,
|
|
2426
2426
|
destination: r,
|
|
2427
2427
|
displacedBy: e.displacedBy,
|
|
@@ -2441,14 +2441,14 @@ var eo = ({
|
|
|
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
|
|
@@ -2484,7 +2484,7 @@ var eo = ({
|
|
|
2484
2484
|
dimensions: i,
|
|
2485
2485
|
viewport: o
|
|
2486
2486
|
});
|
|
2487
|
-
},
|
|
2487
|
+
}, ec = (e) => ({
|
|
2488
2488
|
index: e.index,
|
|
2489
2489
|
droppableId: e.droppableId
|
|
2490
2490
|
}), ro = ({
|
|
@@ -2513,26 +2513,26 @@ var eo = ({
|
|
|
2513
2513
|
displacedBy: o,
|
|
2514
2514
|
at: {
|
|
2515
2515
|
type: "REORDER",
|
|
2516
|
-
destination:
|
|
2516
|
+
destination: ec(e.descriptor)
|
|
2517
2517
|
}
|
|
2518
2518
|
},
|
|
2519
2519
|
afterCritical: d
|
|
2520
2520
|
};
|
|
2521
|
-
},
|
|
2521
|
+
}, tc = (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;
|
|
2527
2527
|
}, Me = (e) => {
|
|
2528
2528
|
process.env.NODE_ENV;
|
|
2529
2529
|
};
|
|
2530
|
-
var
|
|
2530
|
+
var nc = ({
|
|
2531
2531
|
draggable: e,
|
|
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: {
|
|
@@ -2542,35 +2542,35 @@ var tc = ({
|
|
|
2542
2542
|
client: r,
|
|
2543
2543
|
page: o
|
|
2544
2544
|
};
|
|
2545
|
-
},
|
|
2545
|
+
}, rc = (e) => {
|
|
2546
2546
|
const t = e.frame;
|
|
2547
2547
|
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Expected Droppable to have a frame") : g()), t;
|
|
2548
|
-
},
|
|
2548
|
+
}, oc = ({
|
|
2549
2549
|
additions: e,
|
|
2550
2550
|
updatedDroppables: t,
|
|
2551
2551
|
viewport: n
|
|
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 =
|
|
2556
|
-
return
|
|
2555
|
+
const i = o.descriptor.droppableId, s = t[i], a = rc(s).scroll.diff.value, d = k(r, a);
|
|
2556
|
+
return nc({
|
|
2557
2557
|
draggable: o,
|
|
2558
2558
|
offset: d,
|
|
2559
2559
|
initialWindowScroll: n.scroll.initial
|
|
2560
2560
|
});
|
|
2561
2561
|
});
|
|
2562
|
-
},
|
|
2562
|
+
}, ic = ({
|
|
2563
2563
|
state: e,
|
|
2564
2564
|
published: t
|
|
2565
2565
|
}) => {
|
|
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
|
...Gr(n)
|
|
2573
|
-
}, o = kr(
|
|
2573
|
+
}, o = kr(oc({
|
|
2574
2574
|
additions: t.additions,
|
|
2575
2575
|
updatedDroppables: r,
|
|
2576
2576
|
viewport: e.viewport
|
|
@@ -2618,9 +2618,9 @@ var tc = ({
|
|
|
2618
2618
|
isWaiting: !1
|
|
2619
2619
|
};
|
|
2620
2620
|
};
|
|
2621
|
-
const
|
|
2622
|
-
const r =
|
|
2623
|
-
return
|
|
2621
|
+
const Mt = (e) => e.movementMode === "SNAP", Dt = (e, t, n) => {
|
|
2622
|
+
const r = tc(e.dimensions, t);
|
|
2623
|
+
return !Mt(e) || n ? xe({
|
|
2624
2624
|
state: e,
|
|
2625
2625
|
dimensions: r
|
|
2626
2626
|
}) : no({
|
|
@@ -2628,21 +2628,21 @@ const $t = (e) => e.movementMode === "SNAP", Nt = (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
|
|
2642
|
+
var sc = (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") {
|
|
@@ -2664,7 +2664,7 @@ var ic = (e = Kn, t) => {
|
|
|
2664
2664
|
borderBoxCenter: k(d.selection, o.scroll.initial),
|
|
2665
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
2669
|
afterCritical: f
|
|
2670
2670
|
} = ro({
|
|
@@ -2696,7 +2696,7 @@ var ic = (e = Kn, t) => {
|
|
|
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" ? g(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : g()),
|
|
2699
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? g(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : g()), ic({
|
|
2700
2700
|
state: e,
|
|
2701
2701
|
published: t.payload
|
|
2702
2702
|
});
|
|
@@ -2710,12 +2710,12 @@ var ic = (e = Kn, t) => {
|
|
|
2710
2710
|
return oe(n, e.current.client.selection) ? e : xe({
|
|
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
|
|
2718
|
+
return Nt(e);
|
|
2719
2719
|
ce(e) || (process.env.NODE_ENV !== "production" ? g(!1, `${t.type} not permitted in phase ${e.phase}`) : g());
|
|
2720
2720
|
const {
|
|
2721
2721
|
id: n,
|
|
@@ -2723,8 +2723,8 @@ var ic = (e = Kn, t) => {
|
|
|
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")
|
|
@@ -2740,7 +2740,7 @@ var ic = (e = Kn, t) => {
|
|
|
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")
|
|
@@ -2756,7 +2756,7 @@ var ic = (e = Kn, t) => {
|
|
|
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")
|
|
@@ -2764,9 +2764,9 @@ var ic = (e = Kn, t) => {
|
|
|
2764
2764
|
ce(e) || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot move by window in phase ${e.phase}`) : g()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? g(!1, "Window scrolling is currently not supported for fixed lists") : g());
|
|
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 = qr(e.viewport, n);
|
|
2769
|
-
return
|
|
2769
|
+
return Mt(e) ? no({
|
|
2770
2770
|
state: e,
|
|
2771
2771
|
viewport: r
|
|
2772
2772
|
}) : xe({
|
|
@@ -2796,7 +2796,7 @@ var ic = (e = Kn, t) => {
|
|
|
2796
2796
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
2797
2797
|
return e;
|
|
2798
2798
|
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? g(!1, `${t.type} received while not in DRAGGING phase`) : g());
|
|
2799
|
-
const n =
|
|
2799
|
+
const n = Ws({
|
|
2800
2800
|
state: e,
|
|
2801
2801
|
type: t.type
|
|
2802
2802
|
});
|
|
@@ -2845,71 +2845,71 @@ var ic = (e = Kn, t) => {
|
|
|
2845
2845
|
function P(e, t) {
|
|
2846
2846
|
return e instanceof Object && "type" in e && e.type === t;
|
|
2847
2847
|
}
|
|
2848
|
-
const
|
|
2848
|
+
const cc = (e) => ({
|
|
2849
2849
|
type: "BEFORE_INITIAL_CAPTURE",
|
|
2850
2850
|
payload: e
|
|
2851
|
-
}),
|
|
2851
|
+
}), ac = (e) => ({
|
|
2852
2852
|
type: "LIFT",
|
|
2853
2853
|
payload: e
|
|
2854
|
-
}),
|
|
2854
|
+
}), lc = (e) => ({
|
|
2855
2855
|
type: "INITIAL_PUBLISH",
|
|
2856
2856
|
payload: e
|
|
2857
|
-
}),
|
|
2857
|
+
}), dc = (e) => ({
|
|
2858
2858
|
type: "PUBLISH_WHILE_DRAGGING",
|
|
2859
2859
|
payload: e
|
|
2860
|
-
}),
|
|
2860
|
+
}), uc = () => ({
|
|
2861
2861
|
type: "COLLECTION_STARTING",
|
|
2862
2862
|
payload: null
|
|
2863
|
-
}),
|
|
2863
|
+
}), pc = (e) => ({
|
|
2864
2864
|
type: "UPDATE_DROPPABLE_SCROLL",
|
|
2865
2865
|
payload: e
|
|
2866
|
-
}),
|
|
2866
|
+
}), fc = (e) => ({
|
|
2867
2867
|
type: "UPDATE_DROPPABLE_IS_ENABLED",
|
|
2868
2868
|
payload: e
|
|
2869
|
-
}),
|
|
2869
|
+
}), gc = (e) => ({
|
|
2870
2870
|
type: "UPDATE_DROPPABLE_IS_COMBINE_ENABLED",
|
|
2871
2871
|
payload: e
|
|
2872
2872
|
}), oo = (e) => ({
|
|
2873
2873
|
type: "MOVE",
|
|
2874
2874
|
payload: e
|
|
2875
|
-
}),
|
|
2875
|
+
}), mc = (e) => ({
|
|
2876
2876
|
type: "MOVE_BY_WINDOW_SCROLL",
|
|
2877
2877
|
payload: e
|
|
2878
|
-
}),
|
|
2878
|
+
}), hc = (e) => ({
|
|
2879
2879
|
type: "UPDATE_VIEWPORT_MAX_SCROLL",
|
|
2880
2880
|
payload: e
|
|
2881
|
-
}),
|
|
2881
|
+
}), bc = () => ({
|
|
2882
2882
|
type: "MOVE_UP",
|
|
2883
2883
|
payload: null
|
|
2884
|
-
}),
|
|
2884
|
+
}), vc = () => ({
|
|
2885
2885
|
type: "MOVE_DOWN",
|
|
2886
2886
|
payload: null
|
|
2887
|
-
}),
|
|
2887
|
+
}), yc = () => ({
|
|
2888
2888
|
type: "MOVE_RIGHT",
|
|
2889
2889
|
payload: null
|
|
2890
|
-
}),
|
|
2890
|
+
}), Ec = () => ({
|
|
2891
2891
|
type: "MOVE_LEFT",
|
|
2892
2892
|
payload: null
|
|
2893
|
-
}),
|
|
2893
|
+
}), rn = () => ({
|
|
2894
2894
|
type: "FLUSH",
|
|
2895
2895
|
payload: null
|
|
2896
|
-
}),
|
|
2896
|
+
}), Dc = (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
|
}), io = (e) => ({
|
|
2903
2903
|
type: "DROP",
|
|
2904
2904
|
payload: e
|
|
2905
|
-
}),
|
|
2905
|
+
}), Nc = (e) => ({
|
|
2906
2906
|
type: "DROP_PENDING",
|
|
2907
2907
|
payload: e
|
|
2908
2908
|
}), so = () => ({
|
|
2909
2909
|
type: "DROP_ANIMATION_FINISHED",
|
|
2910
2910
|
payload: null
|
|
2911
2911
|
});
|
|
2912
|
-
function
|
|
2912
|
+
function xc(e) {
|
|
2913
2913
|
if (e.length <= 1)
|
|
2914
2914
|
return;
|
|
2915
2915
|
const t = e.map((o) => o.descriptor.index), n = {};
|
|
@@ -2928,13 +2928,13 @@ function Nc(e) {
|
|
|
2928
2928
|
${r}
|
|
2929
2929
|
`);
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Ic(e, t) {
|
|
2932
2932
|
if (process.env.NODE_ENV !== "production") {
|
|
2933
2933
|
const n = le(e.droppable.id, t.draggables);
|
|
2934
|
-
|
|
2934
|
+
xc(n);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
|
-
var
|
|
2937
|
+
var Cc = (e) => ({
|
|
2938
2938
|
getState: t,
|
|
2939
2939
|
dispatch: n
|
|
2940
2940
|
}) => (r) => (o) => {
|
|
@@ -2947,9 +2947,9 @@ var Ic = (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" ? g(!1, "Unexpected phase to start a drag") : g()), n(
|
|
2952
|
+
})), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Unexpected phase to start a drag") : g()), n(rn()), n(cc({
|
|
2953
2953
|
draggableId: i,
|
|
2954
2954
|
movementMode: c
|
|
2955
2955
|
}));
|
|
@@ -2963,17 +2963,17 @@ var Ic = (e) => ({
|
|
|
2963
2963
|
dimensions: u,
|
|
2964
2964
|
viewport: f
|
|
2965
2965
|
} = e.startPublishing(p);
|
|
2966
|
-
|
|
2966
|
+
Ic(l, u), n(lc({
|
|
2967
2967
|
critical: l,
|
|
2968
2968
|
dimensions: u,
|
|
2969
2969
|
clientSelection: s,
|
|
2970
2970
|
movementMode: c,
|
|
2971
2971
|
viewport: f
|
|
2972
2972
|
}));
|
|
2973
|
-
},
|
|
2973
|
+
}, wc = (e) => () => (t) => (n) => {
|
|
2974
2974
|
P(n, "INITIAL_PUBLISH") && e.dragging(), P(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (P(n, "FLUSH") || P(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
|
}, Ae = {
|
|
@@ -2988,39 +2988,39 @@ const cn = {
|
|
|
2988
2988
|
outOfTheWay: 0.2,
|
|
2989
2989
|
minDropTime: 0.33,
|
|
2990
2990
|
maxDropTime: 0.55
|
|
2991
|
-
}, se = `${co.outOfTheWay}s ${
|
|
2991
|
+
}, se = `${co.outOfTheWay}s ${sn.outOfTheWay}`, Ie = {
|
|
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
3005
|
return t ? `${n} scale(${Ae.scale.drop})` : n;
|
|
3006
3006
|
}
|
|
3007
3007
|
}, {
|
|
3008
|
-
minDropTime:
|
|
3008
|
+
minDropTime: Gt,
|
|
3009
3009
|
maxDropTime: ao
|
|
3010
|
-
} = co, Oc = ao -
|
|
3011
|
-
var
|
|
3010
|
+
} = co, Oc = ao - Gt, Jn = 1500, Sc = 0.6;
|
|
3011
|
+
var _c = ({
|
|
3012
3012
|
current: e,
|
|
3013
3013
|
destination: t,
|
|
3014
3014
|
reason: n
|
|
3015
3015
|
}) => {
|
|
3016
|
-
const r =
|
|
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 ao;
|
|
3021
|
-
const o = r /
|
|
3021
|
+
const o = r / Jn, i = Gt + Oc * o, s = n === "CANCEL" ? i * Sc : i;
|
|
3022
3022
|
return Number(s.toFixed(2));
|
|
3023
|
-
},
|
|
3023
|
+
}, Ac = ({
|
|
3024
3024
|
impact: e,
|
|
3025
3025
|
draggable: t,
|
|
3026
3026
|
dimensions: n,
|
|
@@ -3039,7 +3039,7 @@ var Sc = ({
|
|
|
3039
3039
|
viewport: r
|
|
3040
3040
|
});
|
|
3041
3041
|
return q(p, t.client.borderBox.center);
|
|
3042
|
-
},
|
|
3042
|
+
}, Pc = ({
|
|
3043
3043
|
draggables: e,
|
|
3044
3044
|
reason: t,
|
|
3045
3045
|
lastImpact: n,
|
|
@@ -3065,7 +3065,7 @@ var Sc = ({
|
|
|
3065
3065
|
},
|
|
3066
3066
|
didDropInsideDroppable: !0
|
|
3067
3067
|
};
|
|
3068
|
-
const
|
|
3068
|
+
const Rc = ({
|
|
3069
3069
|
getState: e,
|
|
3070
3070
|
dispatch: t
|
|
3071
3071
|
}) => (n) => (r) => {
|
|
@@ -3075,7 +3075,7 @@ const Pc = ({
|
|
|
3075
3075
|
}
|
|
3076
3076
|
const o = e(), i = r.payload.reason;
|
|
3077
3077
|
if (o.phase === "COLLECTING") {
|
|
3078
|
-
t(
|
|
3078
|
+
t(Nc({
|
|
3079
3079
|
reason: i
|
|
3080
3080
|
}));
|
|
3081
3081
|
return;
|
|
@@ -3086,7 +3086,7 @@ const Pc = ({
|
|
|
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
|
+
} = Pc({
|
|
3090
3090
|
reason: i,
|
|
3091
3091
|
lastImpact: o.impact,
|
|
3092
3092
|
afterCritical: o.afterCritical,
|
|
@@ -3094,7 +3094,7 @@ const Pc = ({
|
|
|
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, f = l ? nt(p) : null, h = {
|
|
3098
3098
|
index: c.draggable.index,
|
|
3099
3099
|
droppableId: c.droppable.id
|
|
3100
3100
|
}, b = {
|
|
@@ -3105,7 +3105,7 @@ const Pc = ({
|
|
|
3105
3105
|
mode: o.movementMode,
|
|
3106
3106
|
destination: u,
|
|
3107
3107
|
combine: f
|
|
3108
|
-
}, m =
|
|
3108
|
+
}, m = Ac({
|
|
3109
3109
|
impact: p,
|
|
3110
3110
|
draggable: d,
|
|
3111
3111
|
dimensions: a,
|
|
@@ -3118,17 +3118,17 @@ const Pc = ({
|
|
|
3118
3118
|
impact: p
|
|
3119
3119
|
};
|
|
3120
3120
|
if (!(!oe(o.current.client.offset, m) || !!b.combine)) {
|
|
3121
|
-
t(
|
|
3121
|
+
t(on({
|
|
3122
3122
|
completed: y
|
|
3123
3123
|
}));
|
|
3124
3124
|
return;
|
|
3125
3125
|
}
|
|
3126
|
-
const I =
|
|
3126
|
+
const I = _c({
|
|
3127
3127
|
current: o.current.client.offset,
|
|
3128
3128
|
destination: m,
|
|
3129
3129
|
reason: i
|
|
3130
3130
|
});
|
|
3131
|
-
t(
|
|
3131
|
+
t(Dc({
|
|
3132
3132
|
newHomeClientOffset: m,
|
|
3133
3133
|
dropDuration: I,
|
|
3134
3134
|
completed: y
|
|
@@ -3138,7 +3138,7 @@ var lo = () => ({
|
|
|
3138
3138
|
x: window.pageXOffset,
|
|
3139
3139
|
y: window.pageYOffset
|
|
3140
3140
|
});
|
|
3141
|
-
function
|
|
3141
|
+
function Tc(e) {
|
|
3142
3142
|
return {
|
|
3143
3143
|
eventName: "scroll",
|
|
3144
3144
|
options: {
|
|
@@ -3150,13 +3150,13 @@ function Rc(e) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function Bc({
|
|
3154
3154
|
onWindowScroll: e
|
|
3155
3155
|
}) {
|
|
3156
3156
|
function t() {
|
|
3157
3157
|
e(lo());
|
|
3158
3158
|
}
|
|
3159
|
-
const n = Ce(t), r =
|
|
3159
|
+
const n = Ce(t), r = Tc(n);
|
|
3160
3160
|
let o = re;
|
|
3161
3161
|
function i() {
|
|
3162
3162
|
return o !== re;
|
|
@@ -3173,19 +3173,19 @@ function Tc({
|
|
|
3173
3173
|
isActive: i
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
const
|
|
3177
|
-
const t =
|
|
3176
|
+
const Vc = (e) => P(e, "DROP_COMPLETE") || P(e, "DROP_ANIMATE") || P(e, "FLUSH"), Lc = (e) => {
|
|
3177
|
+
const t = Bc({
|
|
3178
3178
|
onWindowScroll: (n) => {
|
|
3179
|
-
e.dispatch(
|
|
3179
|
+
e.dispatch(mc({
|
|
3180
3180
|
newScroll: n
|
|
3181
3181
|
}));
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
return (n) => (r) => {
|
|
3185
|
-
!t.isActive() && P(r, "INITIAL_PUBLISH") && t.start(), t.isActive() &&
|
|
3185
|
+
!t.isActive() && P(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Vc(r) && t.stop(), n(r);
|
|
3186
3186
|
};
|
|
3187
3187
|
};
|
|
3188
|
-
var
|
|
3188
|
+
var Mc = (e) => {
|
|
3189
3189
|
let t = !1, n = !1;
|
|
3190
3190
|
const r = setTimeout(() => {
|
|
3191
3191
|
n = !0;
|
|
@@ -3204,7 +3204,7 @@ var Lc = (e) => {
|
|
|
3204
3204
|
t = !0, e(i), clearTimeout(r);
|
|
3205
3205
|
};
|
|
3206
3206
|
return o.wasCalled = () => t, o;
|
|
3207
|
-
},
|
|
3207
|
+
}, $c = () => {
|
|
3208
3208
|
const e = [], t = (o) => {
|
|
3209
3209
|
const i = e.findIndex((c) => c.timerId === o);
|
|
3210
3210
|
i === -1 && (process.env.NODE_ENV !== "production" ? g(!1, "Could not find timer") : g());
|
|
@@ -3229,7 +3229,7 @@ var Lc = (e) => {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
};
|
|
3231
3231
|
};
|
|
3232
|
-
const
|
|
3232
|
+
const Gc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.droppableId === t.droppableId && e.index === t.index, kc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.draggableId === t.draggableId && e.droppableId === t.droppableId, Fc = (e, t) => {
|
|
3233
3233
|
if (e === t)
|
|
3234
3234
|
return !0;
|
|
3235
3235
|
const n = e.draggable.id === t.draggable.id && e.draggable.droppableId === t.draggable.droppableId && e.draggable.type === t.draggable.type && e.draggable.index === t.draggable.index, r = e.droppable.id === t.droppable.id && e.droppable.type === t.droppable.type;
|
|
@@ -3245,18 +3245,18 @@ const $c = (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;
|
|
3252
3252
|
}
|
|
3253
|
-
const o =
|
|
3253
|
+
const o = Mc(n);
|
|
3254
3254
|
e(t, {
|
|
3255
3255
|
announce: o
|
|
3256
3256
|
}), o.wasCalled() || n(r(t));
|
|
3257
3257
|
}
|
|
3258
|
-
var
|
|
3259
|
-
const n =
|
|
3258
|
+
var Wc = (e, t) => {
|
|
3259
|
+
const n = $c();
|
|
3260
3260
|
let r = null;
|
|
3261
3261
|
const o = (l, u) => {
|
|
3262
3262
|
r && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : g()), Ee("onBeforeCapture", () => {
|
|
@@ -3280,16 +3280,16 @@ var Fc = (e, t) => {
|
|
|
3280
3280
|
lastLocation: f.source,
|
|
3281
3281
|
lastCombine: null
|
|
3282
3282
|
}, n.add(() => {
|
|
3283
|
-
Ee("onDragStart", () =>
|
|
3283
|
+
Ee("onDragStart", () => xt(e().onDragStart, f, t, ze.onDragStart));
|
|
3284
3284
|
});
|
|
3285
3285
|
}, c = (l, u) => {
|
|
3286
|
-
const f =
|
|
3286
|
+
const f = Jt(u), h = nt(u);
|
|
3287
3287
|
r || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onDragMove when onDragStart has not been called") : g());
|
|
3288
|
-
const b = !
|
|
3288
|
+
const b = !Fc(l, r.lastCritical);
|
|
3289
3289
|
b && (r.lastCritical = l);
|
|
3290
|
-
const m =
|
|
3290
|
+
const m = !Gc(r.lastLocation, f);
|
|
3291
3291
|
m && (r.lastLocation = f);
|
|
3292
|
-
const y = !
|
|
3292
|
+
const y = !kc(r.lastCombine, h);
|
|
3293
3293
|
if (y && (r.lastCombine = h), !b && !m && !y)
|
|
3294
3294
|
return;
|
|
3295
3295
|
const v = {
|
|
@@ -3298,12 +3298,12 @@ var Fc = (e, t) => {
|
|
|
3298
3298
|
destination: f
|
|
3299
3299
|
};
|
|
3300
3300
|
n.add(() => {
|
|
3301
|
-
Ee("onDragUpdate", () =>
|
|
3301
|
+
Ee("onDragUpdate", () => xt(e().onDragUpdate, v, t, ze.onDragUpdate));
|
|
3302
3302
|
});
|
|
3303
3303
|
}, a = () => {
|
|
3304
3304
|
r || (process.env.NODE_ENV !== "production" ? g(!1, "Can only flush responders while dragging") : g()), n.flush();
|
|
3305
3305
|
}, d = (l) => {
|
|
3306
|
-
r || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : g()), r = null, Ee("onDragEnd", () =>
|
|
3306
|
+
r || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : g()), r = null, Ee("onDragEnd", () => xt(e().onDragEnd, l, t, ze.onDragEnd));
|
|
3307
3307
|
};
|
|
3308
3308
|
return {
|
|
3309
3309
|
beforeCapture: o,
|
|
@@ -3324,8 +3324,8 @@ var Fc = (e, t) => {
|
|
|
3324
3324
|
d(l);
|
|
3325
3325
|
}
|
|
3326
3326
|
};
|
|
3327
|
-
},
|
|
3328
|
-
const n =
|
|
3327
|
+
}, Uc = (e, t) => {
|
|
3328
|
+
const n = Wc(e, t);
|
|
3329
3329
|
return (r) => (o) => (i) => {
|
|
3330
3330
|
if (P(i, "BEFORE_INITIAL_CAPTURE")) {
|
|
3331
3331
|
n.beforeCapture(i.payload.draggableId, i.payload.movementMode);
|
|
@@ -3349,16 +3349,16 @@ var Fc = (e, t) => {
|
|
|
3349
3349
|
s.phase === "DRAGGING" && n.update(s.critical, s.impact);
|
|
3350
3350
|
};
|
|
3351
3351
|
};
|
|
3352
|
-
const
|
|
3352
|
+
const Hc = (e) => (t) => (n) => {
|
|
3353
3353
|
if (!P(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" ? g(!1, "Cannot finish a drop animating when no drop is occurring") : g()), e.dispatch(
|
|
3358
|
+
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot finish a drop animating when no drop is occurring") : g()), e.dispatch(on({
|
|
3359
3359
|
completed: r.completed
|
|
3360
3360
|
}));
|
|
3361
|
-
},
|
|
3361
|
+
}, zc = (e) => {
|
|
3362
3362
|
let t = null, n = null;
|
|
3363
3363
|
function r() {
|
|
3364
3364
|
n && (cancelAnimationFrame(n), n = null), t && (t(), t = null);
|
|
@@ -3382,9 +3382,9 @@ const Uc = (e) => (t) => (n) => {
|
|
|
3382
3382
|
});
|
|
3383
3383
|
};
|
|
3384
3384
|
};
|
|
3385
|
-
var
|
|
3385
|
+
var qc = (e) => () => (t) => (n) => {
|
|
3386
3386
|
(P(n, "DROP_COMPLETE") || P(n, "FLUSH") || P(n, "DROP_ANIMATE")) && e.stopPublishing(), t(n);
|
|
3387
|
-
},
|
|
3387
|
+
}, jc = (e) => {
|
|
3388
3388
|
let t = !1;
|
|
3389
3389
|
return () => (n) => (r) => {
|
|
3390
3390
|
if (P(r, "INITIAL_PUBLISH")) {
|
|
@@ -3404,9 +3404,9 @@ var zc = (e) => () => (t) => (n) => {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
};
|
|
3406
3406
|
};
|
|
3407
|
-
const
|
|
3408
|
-
var
|
|
3409
|
-
if (
|
|
3407
|
+
const Yc = (e) => P(e, "DROP_COMPLETE") || P(e, "DROP_ANIMATE") || P(e, "FLUSH");
|
|
3408
|
+
var Xc = (e) => (t) => (n) => (r) => {
|
|
3409
|
+
if (Yc(r)) {
|
|
3410
3410
|
e.stop(), n(r);
|
|
3411
3411
|
return;
|
|
3412
3412
|
}
|
|
@@ -3418,34 +3418,34 @@ var Yc = (e) => (t) => (n) => (r) => {
|
|
|
3418
3418
|
}
|
|
3419
3419
|
n(r), e.scroll(t.getState());
|
|
3420
3420
|
};
|
|
3421
|
-
const
|
|
3421
|
+
const Kc = (e) => (t) => (n) => {
|
|
3422
3422
|
if (t(n), !P(n, "PUBLISH_WHILE_DRAGGING"))
|
|
3423
3423
|
return;
|
|
3424
3424
|
const r = e.getState();
|
|
3425
3425
|
r.phase === "DROP_PENDING" && (r.isWaiting || e.dispatch(io({
|
|
3426
3426
|
reason: r.reason
|
|
3427
3427
|
})));
|
|
3428
|
-
},
|
|
3428
|
+
}, Jc = process.env.NODE_ENV !== "production" && typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
|
|
3429
3429
|
name: "@hello-pangea/dnd"
|
|
3430
3430
|
}) : vr;
|
|
3431
|
-
var
|
|
3431
|
+
var Zc = ({
|
|
3432
3432
|
dimensionMarshal: e,
|
|
3433
3433
|
focusMarshal: t,
|
|
3434
3434
|
styleMarshal: n,
|
|
3435
3435
|
getResponders: r,
|
|
3436
3436
|
announce: o,
|
|
3437
3437
|
autoScroller: i
|
|
3438
|
-
}) => br(
|
|
3439
|
-
const
|
|
3438
|
+
}) => br(sc, Jc(jo(wc(n), qc(e), Cc(e), Rc, Hc, zc, Kc, Xc(i), Lc, jc(t), Uc(r, o))));
|
|
3439
|
+
const It = () => ({
|
|
3440
3440
|
additions: {},
|
|
3441
3441
|
removals: {},
|
|
3442
3442
|
modified: {}
|
|
3443
3443
|
});
|
|
3444
|
-
function
|
|
3444
|
+
function Qc({
|
|
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();
|
|
@@ -3464,7 +3464,7 @@ function Zc({
|
|
|
3464
3464
|
removals: Object.keys(d),
|
|
3465
3465
|
modified: u
|
|
3466
3466
|
};
|
|
3467
|
-
n =
|
|
3467
|
+
n = It(), Me(), t.publish(f);
|
|
3468
3468
|
}));
|
|
3469
3469
|
};
|
|
3470
3470
|
return {
|
|
@@ -3477,7 +3477,7 @@ function Zc({
|
|
|
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
|
}
|
|
@@ -3509,7 +3509,7 @@ var uo = ({
|
|
|
3509
3509
|
width: e.clientWidth,
|
|
3510
3510
|
height: e.clientHeight
|
|
3511
3511
|
});
|
|
3512
|
-
},
|
|
3512
|
+
}, ea = () => {
|
|
3513
3513
|
const e = lo(), t = fo(), n = e.y, r = e.x, o = po(), i = o.clientWidth, s = o.clientHeight, c = r + i, a = n + s;
|
|
3514
3514
|
return {
|
|
3515
3515
|
frame: Z({
|
|
@@ -3528,13 +3528,13 @@ var uo = ({
|
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
3530
|
};
|
|
3531
|
-
},
|
|
3531
|
+
}, ta = ({
|
|
3532
3532
|
critical: e,
|
|
3533
3533
|
scrollOptions: t,
|
|
3534
3534
|
registry: n
|
|
3535
3535
|
}) => {
|
|
3536
3536
|
Le();
|
|
3537
|
-
const r =
|
|
3537
|
+
const r = ea(), o = r.scroll.current, i = e.droppable, s = n.droppable.getAllByType(i.type).map((p) => p.callbacks.getDimensionAndWatchScroll(o, t)), c = n.draggable.getAllByType(e.draggable.type).map((p) => p.getDimension(o)), a = {
|
|
3538
3538
|
draggables: kr(c),
|
|
3539
3539
|
droppables: Gr(s)
|
|
3540
3540
|
};
|
|
@@ -3544,7 +3544,7 @@ var uo = ({
|
|
|
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" && T(`
|
|
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.
|
|
@@ -3552,9 +3552,9 @@ function Qn(e, t, n) {
|
|
|
3552
3552
|
See https://github.com/hello-pangea/dnd/blob/main/docs/patterns/virtual-lists.md
|
|
3553
3553
|
`), !1) : !0;
|
|
3554
3554
|
}
|
|
3555
|
-
var
|
|
3555
|
+
var na = (e, t) => {
|
|
3556
3556
|
let n = null;
|
|
3557
|
-
const r =
|
|
3557
|
+
const r = Qc({
|
|
3558
3558
|
callbacks: {
|
|
3559
3559
|
publish: t.publishWhileDragging,
|
|
3560
3560
|
collectionStarting: t.collectionStarting
|
|
@@ -3586,7 +3586,7 @@ var ta = (e, t) => {
|
|
|
3586
3586
|
}, d = (u) => {
|
|
3587
3587
|
n || (process.env.NODE_ENV !== "production" ? g(!1, "Should only be subscribed when a collection is occurring") : g());
|
|
3588
3588
|
const f = n.critical.draggable;
|
|
3589
|
-
u.type === "ADDITION" &&
|
|
3589
|
+
u.type === "ADDITION" && Zn(e, f, u.value) && r.add(u.value), u.type === "REMOVAL" && Zn(e, f, u.value) && r.remove(u.value);
|
|
3590
3590
|
};
|
|
3591
3591
|
return {
|
|
3592
3592
|
updateDroppableIsEnabled: o,
|
|
@@ -3602,7 +3602,7 @@ var ta = (e, t) => {
|
|
|
3602
3602
|
return n = {
|
|
3603
3603
|
critical: b,
|
|
3604
3604
|
unsubscribe: m
|
|
3605
|
-
},
|
|
3605
|
+
}, ta({
|
|
3606
3606
|
critical: b,
|
|
3607
3607
|
registry: e,
|
|
3608
3608
|
scrollOptions: u.scrollOptions
|
|
@@ -3610,11 +3610,11 @@ var ta = (e, t) => {
|
|
|
3610
3610
|
},
|
|
3611
3611
|
stopPublishing: a
|
|
3612
3612
|
};
|
|
3613
|
-
}, go = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP",
|
|
3613
|
+
}, go = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP", ra = (e) => {
|
|
3614
3614
|
window.scrollBy(e.x, e.y);
|
|
3615
3615
|
};
|
|
3616
|
-
const
|
|
3617
|
-
var
|
|
3616
|
+
const oa = $((e) => tt(e).filter((t) => !(!t.isEnabled || !t.frame))), ia = (e, t) => oa(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ? g(!1, "Invalid result") : g()), Kr(r.frame.pageMarginBox)(e))) || null;
|
|
3617
|
+
var sa = ({
|
|
3618
3618
|
center: e,
|
|
3619
3619
|
destination: t,
|
|
3620
3620
|
droppables: n
|
|
@@ -3623,7 +3623,7 @@ var ia = ({
|
|
|
3623
3623
|
const o = n[t];
|
|
3624
3624
|
return o.frame ? o : null;
|
|
3625
3625
|
}
|
|
3626
|
-
return
|
|
3626
|
+
return ia(e, n);
|
|
3627
3627
|
};
|
|
3628
3628
|
const Pe = {
|
|
3629
3629
|
startFromPercentage: 0.25,
|
|
@@ -3636,7 +3636,7 @@ const Pe = {
|
|
|
3636
3636
|
},
|
|
3637
3637
|
disabled: !1
|
|
3638
3638
|
};
|
|
3639
|
-
var
|
|
3639
|
+
var ca = (e, t, n = () => Pe) => {
|
|
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,42 +3653,42 @@ var sa = (e, t, n = () => Pe) => {
|
|
|
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, aa = (e, t, n = () => Pe) => {
|
|
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 - mo({
|
|
3665
3665
|
startOfRange: t.maxScrollValueAt,
|
|
3666
3666
|
endOfRange: t.startScrollingFrom,
|
|
3667
3667
|
current: e
|
|
3668
3668
|
}), s = r.maxPixelScroll * r.ease(i);
|
|
3669
3669
|
return Math.ceil(s);
|
|
3670
|
-
},
|
|
3670
|
+
}, la = (e, t, n) => {
|
|
3671
3671
|
const r = n(), o = r.durationDampening.accelerateAt, i = r.durationDampening.stopDampeningAt, s = t, c = i, d = Date.now() - s;
|
|
3672
3672
|
if (d >= i)
|
|
3673
3673
|
return e;
|
|
3674
3674
|
if (d < o)
|
|
3675
|
-
return
|
|
3675
|
+
return cn;
|
|
3676
3676
|
const p = mo({
|
|
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,
|
|
3686
3686
|
shouldUseTimeDampening: r,
|
|
3687
3687
|
getAutoScrollerOptions: o
|
|
3688
3688
|
}) => {
|
|
3689
|
-
const i =
|
|
3690
|
-
return i === 0 ? 0 : r ? Math.max(
|
|
3691
|
-
},
|
|
3689
|
+
const i = aa(e, t, o);
|
|
3690
|
+
return i === 0 ? 0 : r ? Math.max(la(i, n, o), cn) : i;
|
|
3691
|
+
}, er = ({
|
|
3692
3692
|
container: e,
|
|
3693
3693
|
distanceToEdges: t,
|
|
3694
3694
|
dragStartTime: n,
|
|
@@ -3696,21 +3696,21 @@ var sa = (e, t, n = () => Pe) => {
|
|
|
3696
3696
|
shouldUseTimeDampening: o,
|
|
3697
3697
|
getAutoScrollerOptions: i
|
|
3698
3698
|
}) => {
|
|
3699
|
-
const s =
|
|
3700
|
-
return t[r.end] < t[r.start] ?
|
|
3699
|
+
const s = ca(e, r, i);
|
|
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,
|
|
3710
3710
|
shouldUseTimeDampening: o,
|
|
3711
3711
|
getAutoScrollerOptions: i
|
|
3712
3712
|
});
|
|
3713
|
-
},
|
|
3713
|
+
}, da = ({
|
|
3714
3714
|
container: e,
|
|
3715
3715
|
subject: t,
|
|
3716
3716
|
proposedScroll: n
|
|
@@ -3721,7 +3721,7 @@ var sa = (e, t, n = () => Pe) => {
|
|
|
3721
3721
|
y: r ? 0 : n.y
|
|
3722
3722
|
};
|
|
3723
3723
|
};
|
|
3724
|
-
const
|
|
3724
|
+
const ua = $r((e) => e === 0 ? 0 : e);
|
|
3725
3725
|
var ho = ({
|
|
3726
3726
|
dragStartTime: e,
|
|
3727
3727
|
container: t,
|
|
@@ -3735,34 +3735,34 @@ var ho = ({
|
|
|
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,
|
|
3749
3749
|
axis: Ur,
|
|
3750
3750
|
shouldUseTimeDampening: o,
|
|
3751
3751
|
getAutoScrollerOptions: i
|
|
3752
|
-
}), d =
|
|
3752
|
+
}), d = ua({
|
|
3753
3753
|
x: a,
|
|
3754
3754
|
y: c
|
|
3755
3755
|
});
|
|
3756
3756
|
if (oe(d, G))
|
|
3757
3757
|
return null;
|
|
3758
|
-
const p =
|
|
3758
|
+
const p = da({
|
|
3759
3759
|
container: t,
|
|
3760
3760
|
subject: n,
|
|
3761
3761
|
proposedScroll: d
|
|
3762
3762
|
});
|
|
3763
3763
|
return p ? oe(p, G) ? null : p : null;
|
|
3764
3764
|
};
|
|
3765
|
-
const
|
|
3765
|
+
const pa = $r((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,
|
|
@@ -3783,41 +3783,41 @@ const ua = $r((e) => e === 0 ? 0 : e > 0 ? 1 : -1), ln = /* @__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 =
|
|
3786
|
+
}, o = pa(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) => bo({
|
|
3793
3793
|
current: e.scroll.current,
|
|
3794
3794
|
max: e.scroll.max,
|
|
3795
3795
|
change: t
|
|
3796
|
-
}),
|
|
3797
|
-
if (!
|
|
3796
|
+
}), fa = (e, t) => {
|
|
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 ? bo({
|
|
3808
3808
|
current: n.scroll.current,
|
|
3809
3809
|
max: n.scroll.max,
|
|
3810
3810
|
change: t
|
|
3811
3811
|
}) : !1;
|
|
3812
|
-
},
|
|
3812
|
+
}, ga = (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
|
|
3818
3818
|
});
|
|
3819
3819
|
};
|
|
3820
|
-
var
|
|
3820
|
+
var ma = ({
|
|
3821
3821
|
viewport: e,
|
|
3822
3822
|
subject: t,
|
|
3823
3823
|
center: n,
|
|
@@ -3833,8 +3833,8 @@ var ga = ({
|
|
|
3833
3833
|
shouldUseTimeDampening: o,
|
|
3834
3834
|
getAutoScrollerOptions: i
|
|
3835
3835
|
});
|
|
3836
|
-
return s &&
|
|
3837
|
-
},
|
|
3836
|
+
return s && ln(e, s) ? s : null;
|
|
3837
|
+
}, ha = ({
|
|
3838
3838
|
droppable: e,
|
|
3839
3839
|
subject: t,
|
|
3840
3840
|
center: n,
|
|
@@ -3853,8 +3853,8 @@ var ga = ({
|
|
|
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,
|
|
@@ -3864,7 +3864,7 @@ var ga = ({
|
|
|
3864
3864
|
}) => {
|
|
3865
3865
|
const s = e.current.page.borderBoxCenter, a = e.dimensions.draggables[e.critical.draggable.id].page.marginBox;
|
|
3866
3866
|
if (e.isWindowScrollAllowed) {
|
|
3867
|
-
const l = e.viewport, u =
|
|
3867
|
+
const l = e.viewport, u = ma({
|
|
3868
3868
|
dragStartTime: t,
|
|
3869
3869
|
viewport: l,
|
|
3870
3870
|
subject: a,
|
|
@@ -3877,14 +3877,14 @@ var ga = ({
|
|
|
3877
3877
|
return;
|
|
3878
3878
|
}
|
|
3879
3879
|
}
|
|
3880
|
-
const d =
|
|
3880
|
+
const d = sa({
|
|
3881
3881
|
center: s,
|
|
3882
3882
|
destination: j(e.impact),
|
|
3883
3883
|
droppables: e.dimensions.droppables
|
|
3884
3884
|
});
|
|
3885
3885
|
if (!d)
|
|
3886
3886
|
return;
|
|
3887
|
-
const p =
|
|
3887
|
+
const p = ha({
|
|
3888
3888
|
dragStartTime: t,
|
|
3889
3889
|
droppable: d,
|
|
3890
3890
|
subject: a,
|
|
@@ -3893,7 +3893,7 @@ var ga = ({
|
|
|
3893
3893
|
getAutoScrollerOptions: i
|
|
3894
3894
|
});
|
|
3895
3895
|
p && o(d.descriptor.id, p);
|
|
3896
|
-
},
|
|
3896
|
+
}, ba = ({
|
|
3897
3897
|
scrollWindow: e,
|
|
3898
3898
|
scrollDroppable: t,
|
|
3899
3899
|
getAutoScrollerOptions: n = () => Pe
|
|
@@ -3906,7 +3906,7 @@ var ga = ({
|
|
|
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,
|
|
@@ -3923,7 +3923,7 @@ var ga = ({
|
|
|
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,
|
|
@@ -3940,7 +3940,7 @@ var ga = ({
|
|
|
3940
3940
|
},
|
|
3941
3941
|
scroll: s
|
|
3942
3942
|
};
|
|
3943
|
-
},
|
|
3943
|
+
}, va = ({
|
|
3944
3944
|
move: e,
|
|
3945
3945
|
scrollDroppable: t,
|
|
3946
3946
|
scrollWindow: n
|
|
@@ -3951,17 +3951,17 @@ var ga = ({
|
|
|
3951
3951
|
client: d
|
|
3952
3952
|
});
|
|
3953
3953
|
}, o = (c, a) => {
|
|
3954
|
-
if (!
|
|
3954
|
+
if (!dn(c, a))
|
|
3955
3955
|
return a;
|
|
3956
|
-
const d =
|
|
3956
|
+
const d = ga(c, a);
|
|
3957
3957
|
if (!d)
|
|
3958
3958
|
return t(c.descriptor.id, a), null;
|
|
3959
3959
|
const p = q(a, d);
|
|
3960
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
|
-
const p =
|
|
3964
|
+
const p = fa(a, d);
|
|
3965
3965
|
if (!p)
|
|
3966
3966
|
return n(d), null;
|
|
3967
3967
|
const l = q(d, p);
|
|
@@ -3979,17 +3979,17 @@ var ga = ({
|
|
|
3979
3979
|
const l = c.viewport, u = i(c.isWindowScrollAllowed, l, p);
|
|
3980
3980
|
u && r(c, u);
|
|
3981
3981
|
};
|
|
3982
|
-
},
|
|
3982
|
+
}, ya = ({
|
|
3983
3983
|
scrollDroppable: e,
|
|
3984
3984
|
scrollWindow: t,
|
|
3985
3985
|
move: n,
|
|
3986
3986
|
getAutoScrollerOptions: r
|
|
3987
3987
|
}) => {
|
|
3988
|
-
const o =
|
|
3988
|
+
const o = ba({
|
|
3989
3989
|
scrollWindow: t,
|
|
3990
3990
|
scrollDroppable: e,
|
|
3991
3991
|
getAutoScrollerOptions: r
|
|
3992
|
-
}), i =
|
|
3992
|
+
}), i = va({
|
|
3993
3993
|
move: n,
|
|
3994
3994
|
scrollWindow: t,
|
|
3995
3995
|
scrollDroppable: e
|
|
@@ -4015,28 +4015,28 @@ 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,
|
|
4022
4022
|
contextId: `${e}-context-id`,
|
|
4023
4023
|
id: `${e}-id`
|
|
4024
4024
|
};
|
|
4025
|
-
})(),
|
|
4025
|
+
})(), Ea = (() => {
|
|
4026
4026
|
const e = `${fe}-droppable`;
|
|
4027
4027
|
return {
|
|
4028
4028
|
base: e,
|
|
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
|
+
}, Da = (e) => (t) => `[${t}="${e}"]`, De = (e, t) => e.map((n) => {
|
|
4035
4035
|
const r = n.styles[t];
|
|
4036
4036
|
return r ? `${n.selector} { ${r} }` : "";
|
|
4037
|
-
}).join(" "),
|
|
4038
|
-
var
|
|
4039
|
-
const t =
|
|
4037
|
+
}).join(" "), Na = "pointer-events: none;";
|
|
4038
|
+
var xa = (e) => {
|
|
4039
|
+
const t = Da(e), n = (() => {
|
|
4040
4040
|
const c = `
|
|
4041
4041
|
cursor: -webkit-grab;
|
|
4042
4042
|
cursor: grab;
|
|
@@ -4050,7 +4050,7 @@ var Na = (e) => {
|
|
|
4050
4050
|
touch-action: manipulation;
|
|
4051
4051
|
`,
|
|
4052
4052
|
resting: c,
|
|
4053
|
-
dragging:
|
|
4053
|
+
dragging: Na,
|
|
4054
4054
|
dropAnimating: c
|
|
4055
4055
|
}
|
|
4056
4056
|
};
|
|
@@ -4059,7 +4059,7 @@ var Na = (e) => {
|
|
|
4059
4059
|
transition: ${Ie.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,
|
|
@@ -4067,7 +4067,7 @@ var Na = (e) => {
|
|
|
4067
4067
|
}
|
|
4068
4068
|
};
|
|
4069
4069
|
})(), o = {
|
|
4070
|
-
selector: t(
|
|
4070
|
+
selector: t(Ea.contextId),
|
|
4071
4071
|
styles: {
|
|
4072
4072
|
always: "overflow-anchor: none;"
|
|
4073
4073
|
}
|
|
@@ -4093,15 +4093,15 @@ var Na = (e) => {
|
|
|
4093
4093
|
userCancel: De(s, "userCancel")
|
|
4094
4094
|
};
|
|
4095
4095
|
};
|
|
4096
|
-
const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ?
|
|
4096
|
+
const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? $o : te, Ct = () => {
|
|
4097
4097
|
const e = document.querySelector("head");
|
|
4098
4098
|
return e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot find the head to append a style to") : g()), e;
|
|
4099
|
-
},
|
|
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
|
-
function
|
|
4104
|
-
const n =
|
|
4103
|
+
function Ia(e, t) {
|
|
4104
|
+
const n = O(() => xa(e), [e]), r = V(null), o = V(null), i = D($((l) => {
|
|
4105
4105
|
const u = o.current;
|
|
4106
4106
|
u || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot set dynamic style element if it is not set") : g()), u.textContent = l;
|
|
4107
4107
|
}), []), s = D((l) => {
|
|
@@ -4110,11 +4110,11 @@ function xa(e, t) {
|
|
|
4110
4110
|
}, []);
|
|
4111
4111
|
Y(() => {
|
|
4112
4112
|
!r.current && !o.current || (process.env.NODE_ENV !== "production" ? g(!1, "style elements already mounted") : g());
|
|
4113
|
-
const l =
|
|
4114
|
-
return r.current = l, o.current = u, l.setAttribute(`${fe}-always`, e), u.setAttribute(`${fe}-dynamic`, e),
|
|
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
4115
|
const f = (h) => {
|
|
4116
4116
|
const b = h.current;
|
|
4117
|
-
b || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot unmount ref as it is not set") : g()),
|
|
4117
|
+
b || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot unmount ref as it is not set") : g()), Ct().removeChild(b), h.current = null;
|
|
4118
4118
|
};
|
|
4119
4119
|
f(r), f(o);
|
|
4120
4120
|
};
|
|
@@ -4128,7 +4128,7 @@ function xa(e, t) {
|
|
|
4128
4128
|
}, [i, n.dropAnimating, n.userCancel]), d = D(() => {
|
|
4129
4129
|
o.current && i(n.resting);
|
|
4130
4130
|
}, [i, n.resting]);
|
|
4131
|
-
return
|
|
4131
|
+
return O(() => ({
|
|
4132
4132
|
dragging: c,
|
|
4133
4133
|
dropping: a,
|
|
4134
4134
|
resting: d
|
|
@@ -4148,7 +4148,7 @@ function Eo(e, t) {
|
|
|
4148
4148
|
const o = r.find((i) => i.getAttribute(ge.draggableId) === t);
|
|
4149
4149
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && T("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && T(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
|
|
4150
4150
|
}
|
|
4151
|
-
function
|
|
4151
|
+
function Ca(e) {
|
|
4152
4152
|
const t = V({}), n = V(null), r = V(null), o = V(!1), i = D(function(u, f) {
|
|
4153
4153
|
const h = {
|
|
4154
4154
|
id: u,
|
|
@@ -4178,14 +4178,14 @@ function Ia(e) {
|
|
|
4178
4178
|
o.current = !1;
|
|
4179
4179
|
const u = r.current;
|
|
4180
4180
|
u && cancelAnimationFrame(u);
|
|
4181
|
-
}), []),
|
|
4181
|
+
}), []), O(() => ({
|
|
4182
4182
|
register: i,
|
|
4183
4183
|
tryRecordFocus: d,
|
|
4184
4184
|
tryRestoreFocusRecorded: a,
|
|
4185
4185
|
tryShiftRecord: c
|
|
4186
4186
|
}), [i, d, a, c]);
|
|
4187
4187
|
}
|
|
4188
|
-
function
|
|
4188
|
+
function wa() {
|
|
4189
4189
|
const e = {
|
|
4190
4190
|
draggables: {},
|
|
4191
4191
|
droppables: {}
|
|
@@ -4260,16 +4260,16 @@ function Ca() {
|
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
4262
|
function Oa() {
|
|
4263
|
-
const e =
|
|
4263
|
+
const e = O(wa, []);
|
|
4264
4264
|
return te(() => function() {
|
|
4265
4265
|
e.clean();
|
|
4266
4266
|
}, [e]), e;
|
|
4267
4267
|
}
|
|
4268
|
-
var
|
|
4268
|
+
var un = L.createContext(null), Re = () => {
|
|
4269
4269
|
const e = document.body;
|
|
4270
4270
|
return e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot find document.body") : g()), e;
|
|
4271
4271
|
};
|
|
4272
|
-
const
|
|
4272
|
+
const Sa = {
|
|
4273
4273
|
position: "absolute",
|
|
4274
4274
|
width: "1px",
|
|
4275
4275
|
height: "1px",
|
|
@@ -4279,12 +4279,12 @@ const wa = {
|
|
|
4279
4279
|
overflow: "hidden",
|
|
4280
4280
|
clip: "rect(0 0 0 0)",
|
|
4281
4281
|
"clip-path": "inset(100%)"
|
|
4282
|
-
},
|
|
4283
|
-
function
|
|
4284
|
-
const t =
|
|
4282
|
+
}, _a = (e) => `rfd-announcement-${e}`;
|
|
4283
|
+
function Aa(e) {
|
|
4284
|
+
const t = O(() => _a(e), [e]), n = V(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, Sa), Re().appendChild(i), function() {
|
|
4288
4288
|
setTimeout(function() {
|
|
4289
4289
|
const a = Re();
|
|
4290
4290
|
a.contains(i) && a.removeChild(i), i === n.current && (n.current = null);
|
|
@@ -4308,26 +4308,26 @@ function _a(e) {
|
|
|
4308
4308
|
`);
|
|
4309
4309
|
}, []);
|
|
4310
4310
|
}
|
|
4311
|
-
const
|
|
4311
|
+
const Pa = {
|
|
4312
4312
|
separator: "::"
|
|
4313
4313
|
};
|
|
4314
|
-
function
|
|
4314
|
+
function pn(e, t = Pa) {
|
|
4315
4315
|
const n = L.useId();
|
|
4316
|
-
return
|
|
4316
|
+
return O(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4318
|
+
function Ra({
|
|
4319
4319
|
contextId: e,
|
|
4320
4320
|
uniqueId: t
|
|
4321
4321
|
}) {
|
|
4322
4322
|
return `rfd-hidden-text-${e}-${t}`;
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function Ta({
|
|
4325
4325
|
contextId: e,
|
|
4326
4326
|
text: t
|
|
4327
4327
|
}) {
|
|
4328
|
-
const n =
|
|
4328
|
+
const n = pn("hidden-text", {
|
|
4329
4329
|
separator: "-"
|
|
4330
|
-
}), r =
|
|
4330
|
+
}), r = O(() => Ra({
|
|
4331
4331
|
contextId: e,
|
|
4332
4332
|
uniqueId: n
|
|
4333
4333
|
}), [n, e]);
|
|
@@ -4339,11 +4339,11 @@ function Ra({
|
|
|
4339
4339
|
};
|
|
4340
4340
|
}, [r, t]), r;
|
|
4341
4341
|
}
|
|
4342
|
-
var
|
|
4342
|
+
var it = L.createContext(null), Ba = {
|
|
4343
4343
|
react: "^18.0.0 || ^19.0.0"
|
|
4344
4344
|
};
|
|
4345
|
-
const
|
|
4346
|
-
const t =
|
|
4345
|
+
const Va = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
|
|
4346
|
+
const t = Va.exec(e);
|
|
4347
4347
|
t == null && (process.env.NODE_ENV !== "production" ? g(!1, `Unable to parse React version ${e}`) : g());
|
|
4348
4348
|
const n = Number(t[1]), r = Number(t[2]), o = Number(t[3]);
|
|
4349
4349
|
return {
|
|
@@ -4352,10 +4352,10 @@ const Ba = /(\d+)\.(\d+)\.(\d+)/, ir = (e) => {
|
|
|
4352
4352
|
patch: o,
|
|
4353
4353
|
raw: e
|
|
4354
4354
|
};
|
|
4355
|
-
},
|
|
4356
|
-
var
|
|
4357
|
-
const n =
|
|
4358
|
-
|
|
4355
|
+
}, La = (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
|
+
var Ma = (e, t) => {
|
|
4357
|
+
const n = or(e), r = or(t);
|
|
4358
|
+
La(n, r) || process.env.NODE_ENV !== "production" && T(`
|
|
4359
4359
|
React version: [${r.raw}]
|
|
4360
4360
|
does not satisfy expected peer dependency version: [${n.raw}]
|
|
4361
4361
|
|
|
@@ -4368,7 +4368,7 @@ const wt = `
|
|
|
4368
4368
|
|
|
4369
4369
|
More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/doctype.md
|
|
4370
4370
|
`;
|
|
4371
|
-
var
|
|
4371
|
+
var $a = (e) => {
|
|
4372
4372
|
const t = e.doctype;
|
|
4373
4373
|
if (!t) {
|
|
4374
4374
|
process.env.NODE_ENV !== "production" && T(`
|
|
@@ -4389,16 +4389,16 @@ var Ma = (e) => {
|
|
|
4389
4389
|
${wt}
|
|
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}
|
|
@@ -4407,18 +4407,18 @@ function Ge(e, t) {
|
|
|
4407
4407
|
}, t);
|
|
4408
4408
|
});
|
|
4409
4409
|
}
|
|
4410
|
-
function
|
|
4410
|
+
function Ga() {
|
|
4411
4411
|
Ge(() => {
|
|
4412
|
-
|
|
4412
|
+
Ma(Ba.react, L.version), $a(document);
|
|
4413
4413
|
}, []);
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function gn(e) {
|
|
4416
4416
|
const t = V(e);
|
|
4417
4417
|
return te(() => {
|
|
4418
4418
|
t.current = e;
|
|
4419
4419
|
}), t;
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4421
|
+
function ka() {
|
|
4422
4422
|
let e = null;
|
|
4423
4423
|
function t() {
|
|
4424
4424
|
return !!e;
|
|
@@ -4450,24 +4450,24 @@ function Ga() {
|
|
|
4450
4450
|
function Te(e) {
|
|
4451
4451
|
return e.phase === "IDLE" || e.phase === "DROP_ANIMATING" ? !1 : e.isDragging;
|
|
4452
4452
|
}
|
|
4453
|
-
const
|
|
4454
|
-
[
|
|
4455
|
-
[
|
|
4453
|
+
const Fa = 9, Wa = 13, mn = 27, Do = 32, Ua = 33, Ha = 34, za = 35, qa = 36, ja = 37, Ya = 38, Xa = 39, Ka = 40, Ja = {
|
|
4454
|
+
[Wa]: !0,
|
|
4455
|
+
[Fa]: !0
|
|
4456
4456
|
};
|
|
4457
4457
|
var No = (e) => {
|
|
4458
|
-
|
|
4458
|
+
Ja[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
|
-
})(), xo = 0,
|
|
4464
|
-
function
|
|
4465
|
-
return Math.abs(t.x - e.x) >=
|
|
4463
|
+
})(), xo = 0, ir = 5;
|
|
4464
|
+
function Za(e, t) {
|
|
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
|
-
function
|
|
4470
|
+
function Qa({
|
|
4471
4471
|
cancel: e,
|
|
4472
4472
|
completed: t,
|
|
4473
4473
|
getPhase: n,
|
|
@@ -4493,7 +4493,7 @@ function Za({
|
|
|
4493
4493
|
}
|
|
4494
4494
|
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot be IDLE") : g());
|
|
4495
4495
|
const p = d.point;
|
|
4496
|
-
if (!
|
|
4496
|
+
if (!Za(p, a))
|
|
4497
4497
|
return;
|
|
4498
4498
|
o.preventDefault();
|
|
4499
4499
|
const l = d.actions.fluidLift(a);
|
|
@@ -4526,7 +4526,7 @@ function Za({
|
|
|
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
|
}
|
|
@@ -4555,12 +4555,12 @@ function Za({
|
|
|
4555
4555
|
o.preventDefault();
|
|
4556
4556
|
}
|
|
4557
4557
|
}, {
|
|
4558
|
-
eventName:
|
|
4558
|
+
eventName: st,
|
|
4559
4559
|
fn: e
|
|
4560
4560
|
}];
|
|
4561
4561
|
}
|
|
4562
|
-
function
|
|
4563
|
-
const t = V(
|
|
4562
|
+
function el(e) {
|
|
4563
|
+
const t = V(sr), n = V(re), r = O(() => ({
|
|
4564
4564
|
eventName: "mousedown",
|
|
4565
4565
|
fn: function(l) {
|
|
4566
4566
|
if (l.defaultPrevented || l.button !== xo || l.ctrlKey || l.metaKey || l.shiftKey || l.altKey)
|
|
@@ -4580,7 +4580,7 @@ function Qa(e) {
|
|
|
4580
4580
|
};
|
|
4581
4581
|
n.current(), d(f, h);
|
|
4582
4582
|
}
|
|
4583
|
-
}), [e]), o =
|
|
4583
|
+
}), [e]), o = O(() => ({
|
|
4584
4584
|
eventName: "webkitmouseforcewillbegin",
|
|
4585
4585
|
fn: (p) => {
|
|
4586
4586
|
if (p.defaultPrevented)
|
|
@@ -4598,7 +4598,7 @@ function Qa(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({
|
|
@@ -4608,7 +4608,7 @@ function Qa(e) {
|
|
|
4608
4608
|
const l = {
|
|
4609
4609
|
capture: !0,
|
|
4610
4610
|
passive: !1
|
|
4611
|
-
}, u =
|
|
4611
|
+
}, u = Qa({
|
|
4612
4612
|
cancel: c,
|
|
4613
4613
|
completed: s,
|
|
4614
4614
|
getPhase: () => t.current,
|
|
@@ -4630,15 +4630,15 @@ function Qa(e) {
|
|
|
4630
4630
|
};
|
|
4631
4631
|
}, [i]);
|
|
4632
4632
|
}
|
|
4633
|
-
function
|
|
4633
|
+
function tl() {
|
|
4634
4634
|
}
|
|
4635
|
-
const
|
|
4635
|
+
const nl = {
|
|
4636
|
+
[Ha]: !0,
|
|
4636
4637
|
[Ua]: !0,
|
|
4637
|
-
[
|
|
4638
|
-
[za]: !0
|
|
4639
|
-
[Ha]: !0
|
|
4638
|
+
[qa]: !0,
|
|
4639
|
+
[za]: !0
|
|
4640
4640
|
};
|
|
4641
|
-
function
|
|
4641
|
+
function rl(e, t) {
|
|
4642
4642
|
function n() {
|
|
4643
4643
|
t(), e.cancel();
|
|
4644
4644
|
}
|
|
@@ -4648,7 +4648,7 @@ function nl(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,23 +4656,23 @@ function nl(e, t) {
|
|
|
4656
4656
|
o.preventDefault(), r();
|
|
4657
4657
|
return;
|
|
4658
4658
|
}
|
|
4659
|
-
if (o.keyCode ===
|
|
4659
|
+
if (o.keyCode === Ka) {
|
|
4660
4660
|
o.preventDefault(), e.moveDown();
|
|
4661
4661
|
return;
|
|
4662
4662
|
}
|
|
4663
|
-
if (o.keyCode ===
|
|
4663
|
+
if (o.keyCode === Ya) {
|
|
4664
4664
|
o.preventDefault(), e.moveUp();
|
|
4665
4665
|
return;
|
|
4666
4666
|
}
|
|
4667
|
-
if (o.keyCode ===
|
|
4667
|
+
if (o.keyCode === Xa) {
|
|
4668
4668
|
o.preventDefault(), e.moveRight();
|
|
4669
4669
|
return;
|
|
4670
4670
|
}
|
|
4671
|
-
if (o.keyCode ===
|
|
4671
|
+
if (o.keyCode === ja) {
|
|
4672
4672
|
o.preventDefault(), e.moveLeft();
|
|
4673
4673
|
return;
|
|
4674
4674
|
}
|
|
4675
|
-
if (
|
|
4675
|
+
if (nl[o.keyCode]) {
|
|
4676
4676
|
o.preventDefault();
|
|
4677
4677
|
return;
|
|
4678
4678
|
}
|
|
@@ -4700,12 +4700,12 @@ function nl(e, t) {
|
|
|
4700
4700
|
passive: !0
|
|
4701
4701
|
}
|
|
4702
4702
|
}, {
|
|
4703
|
-
eventName:
|
|
4703
|
+
eventName: st,
|
|
4704
4704
|
fn: n
|
|
4705
4705
|
}];
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4708
|
-
const t = V(
|
|
4707
|
+
function ol(e) {
|
|
4708
|
+
const t = V(tl), n = O(() => ({
|
|
4709
4709
|
eventName: "keydown",
|
|
4710
4710
|
fn: function(i) {
|
|
4711
4711
|
if (i.defaultPrevented || i.keyCode !== Do)
|
|
@@ -4725,7 +4725,7 @@ function rl(e) {
|
|
|
4725
4725
|
function p() {
|
|
4726
4726
|
a || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot stop capturing a keyboard drag when not capturing") : g()), a = !1, t.current(), r();
|
|
4727
4727
|
}
|
|
4728
|
-
t.current = K(window,
|
|
4728
|
+
t.current = K(window, rl(d, p), {
|
|
4729
4729
|
capture: !0,
|
|
4730
4730
|
passive: !1
|
|
4731
4731
|
});
|
|
@@ -4743,10 +4743,10 @@ function rl(e) {
|
|
|
4743
4743
|
};
|
|
4744
4744
|
}, [r]);
|
|
4745
4745
|
}
|
|
4746
|
-
const
|
|
4746
|
+
const Ot = {
|
|
4747
4747
|
type: "IDLE"
|
|
4748
|
-
},
|
|
4749
|
-
function
|
|
4748
|
+
}, il = 120, sl = 0.15;
|
|
4749
|
+
function cl({
|
|
4750
4750
|
cancel: e,
|
|
4751
4751
|
getPhase: t
|
|
4752
4752
|
}) {
|
|
@@ -4768,14 +4768,14 @@ function sl({
|
|
|
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
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function al({
|
|
4779
4779
|
cancel: e,
|
|
4780
4780
|
completed: t,
|
|
4781
4781
|
getPhase: n
|
|
@@ -4828,7 +4828,7 @@ function cl({
|
|
|
4828
4828
|
const o = n();
|
|
4829
4829
|
o.type === "IDLE" && (process.env.NODE_ENV, g());
|
|
4830
4830
|
const i = r.touches[0];
|
|
4831
|
-
if (!i || !(i.force >=
|
|
4831
|
+
if (!i || !(i.force >= sl))
|
|
4832
4832
|
return;
|
|
4833
4833
|
const c = o.actions.shouldRespectForcePress();
|
|
4834
4834
|
if (o.type === "PENDING") {
|
|
@@ -4846,16 +4846,16 @@ function cl({
|
|
|
4846
4846
|
r.preventDefault();
|
|
4847
4847
|
}
|
|
4848
4848
|
}, {
|
|
4849
|
-
eventName:
|
|
4849
|
+
eventName: st,
|
|
4850
4850
|
fn: e
|
|
4851
4851
|
}];
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4854
|
-
const t = V(
|
|
4853
|
+
function ll(e) {
|
|
4854
|
+
const t = V(Ot), n = V(re), r = D(function() {
|
|
4855
4855
|
return t.current;
|
|
4856
4856
|
}, []), o = D(function(f) {
|
|
4857
4857
|
t.current = f;
|
|
4858
|
-
}, []), i =
|
|
4858
|
+
}, []), i = O(() => ({
|
|
4859
4859
|
eventName: "touchstart",
|
|
4860
4860
|
fn: function(f) {
|
|
4861
4861
|
if (f.defaultPrevented)
|
|
@@ -4885,7 +4885,7 @@ function al(e) {
|
|
|
4885
4885
|
n.current = K(window, [i], f);
|
|
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(Ot), n.current(), s());
|
|
4889
4889
|
}, [s, o]), a = D(() => {
|
|
4890
4890
|
const u = t.current;
|
|
4891
4891
|
c(), u.type === "DRAGGING" && u.actions.cancel({
|
|
@@ -4899,7 +4899,7 @@ function al(e) {
|
|
|
4899
4899
|
cancel: a,
|
|
4900
4900
|
completed: c,
|
|
4901
4901
|
getPhase: r
|
|
4902
|
-
}, b = K(window,
|
|
4902
|
+
}, b = K(window, al(h), f), m = K(window, cl(h), f);
|
|
4903
4903
|
n.current = function() {
|
|
4904
4904
|
b(), m();
|
|
4905
4905
|
};
|
|
@@ -4914,7 +4914,7 @@ function al(e) {
|
|
|
4914
4914
|
});
|
|
4915
4915
|
}, [r, o]), l = D(function(f, h) {
|
|
4916
4916
|
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Expected to move from IDLE to PENDING drag") : g());
|
|
4917
|
-
const b = setTimeout(p,
|
|
4917
|
+
const b = setTimeout(p, il);
|
|
4918
4918
|
o({
|
|
4919
4919
|
type: "PENDING",
|
|
4920
4920
|
point: h,
|
|
@@ -4926,7 +4926,7 @@ function al(e) {
|
|
|
4926
4926
|
return s(), function() {
|
|
4927
4927
|
n.current();
|
|
4928
4928
|
const h = r();
|
|
4929
|
-
h.type === "PENDING" && (clearTimeout(h.longPressTimerId), o(
|
|
4929
|
+
h.type === "PENDING" && (clearTimeout(h.longPressTimerId), o(Ot));
|
|
4930
4930
|
};
|
|
4931
4931
|
}, [r, s, o]), Y(function() {
|
|
4932
4932
|
return K(window, [{
|
|
@@ -4940,60 +4940,60 @@ function al(e) {
|
|
|
4940
4940
|
}]);
|
|
4941
4941
|
}, []);
|
|
4942
4942
|
}
|
|
4943
|
-
function
|
|
4944
|
-
|
|
4945
|
-
const t =
|
|
4943
|
+
function dl(e) {
|
|
4944
|
+
fn(() => {
|
|
4945
|
+
const t = gn(e);
|
|
4946
4946
|
Ge(() => {
|
|
4947
4947
|
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot change the amount of sensor hooks after mounting") : g(!1));
|
|
4948
4948
|
});
|
|
4949
4949
|
});
|
|
4950
4950
|
}
|
|
4951
|
-
const
|
|
4951
|
+
const ul = ["input", "button", "textarea", "select", "option", "optgroup", "video", "audio"];
|
|
4952
4952
|
function Io(e, t) {
|
|
4953
4953
|
if (t == null)
|
|
4954
4954
|
return !1;
|
|
4955
|
-
if (
|
|
4955
|
+
if (ul.includes(t.tagName.toLowerCase()))
|
|
4956
4956
|
return !0;
|
|
4957
4957
|
const r = t.getAttribute("contenteditable");
|
|
4958
4958
|
return r === "true" || r === "" ? !0 : t === e ? !1 : Io(e, t.parentElement);
|
|
4959
4959
|
}
|
|
4960
|
-
function
|
|
4960
|
+
function pl(e, t) {
|
|
4961
4961
|
const n = t.target;
|
|
4962
4962
|
return $e(n) ? Io(e, n) : !1;
|
|
4963
4963
|
}
|
|
4964
|
-
var
|
|
4965
|
-
function
|
|
4964
|
+
var fl = (e) => Z(e.getBoundingClientRect()).center;
|
|
4965
|
+
function gl(e) {
|
|
4966
4966
|
return e instanceof yo(e).Element;
|
|
4967
4967
|
}
|
|
4968
|
-
const
|
|
4968
|
+
const ml = (() => {
|
|
4969
4969
|
const e = "matches";
|
|
4970
4970
|
return typeof document > "u" ? e : [e, "msMatchesSelector", "webkitMatchesSelector"].find((r) => r in Element.prototype) || e;
|
|
4971
4971
|
})();
|
|
4972
4972
|
function Co(e, t) {
|
|
4973
|
-
return e == null ? null : e[
|
|
4973
|
+
return e == null ? null : e[ml](t) ? e : Co(e.parentElement, t);
|
|
4974
4974
|
}
|
|
4975
|
-
function
|
|
4975
|
+
function hl(e, t) {
|
|
4976
4976
|
return e.closest ? e.closest(t) : Co(e, t);
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4978
|
+
function bl(e) {
|
|
4979
4979
|
return `[${ge.contextId}="${e}"]`;
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function vl(e, t) {
|
|
4982
4982
|
const n = t.target;
|
|
4983
|
-
if (!
|
|
4983
|
+
if (!gl(n))
|
|
4984
4984
|
return process.env.NODE_ENV !== "production" && T("event.target must be a Element"), null;
|
|
4985
|
-
const r =
|
|
4985
|
+
const r = bl(e), o = hl(n, r);
|
|
4986
4986
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && T("drag handle must be a HTMLElement"), null) : null;
|
|
4987
4987
|
}
|
|
4988
|
-
function
|
|
4989
|
-
const n =
|
|
4988
|
+
function yl(e, t) {
|
|
4989
|
+
const n = vl(e, t);
|
|
4990
4990
|
return n ? n.getAttribute(ge.draggableId) : null;
|
|
4991
4991
|
}
|
|
4992
|
-
function
|
|
4993
|
-
const n = `[${
|
|
4992
|
+
function El(e, t) {
|
|
4993
|
+
const n = `[${kt.contextId}="${e}"]`, o = vo(document, n).find((i) => i.getAttribute(kt.id) === t);
|
|
4994
4994
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && T("Draggable element is not a HTMLElement"), null) : null;
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4996
|
+
function Dl(e) {
|
|
4997
4997
|
e.preventDefault();
|
|
4998
4998
|
}
|
|
4999
4999
|
function Ue({
|
|
@@ -5022,7 +5022,7 @@ function Ue({
|
|
|
5022
5022
|
- Check actions.isActive() if you really need to
|
|
5023
5023
|
`), !1);
|
|
5024
5024
|
}
|
|
5025
|
-
function
|
|
5025
|
+
function wo({
|
|
5026
5026
|
lockAPI: e,
|
|
5027
5027
|
store: t,
|
|
5028
5028
|
registry: n,
|
|
@@ -5033,7 +5033,7 @@ function Oo({
|
|
|
5033
5033
|
const o = n.draggable.findById(r);
|
|
5034
5034
|
return o ? !(!o.options.isEnabled || !go(t.getState(), r)) : (process.env.NODE_ENV !== "production" && T(`Unable to find draggable with id: ${r}`), !1);
|
|
5035
5035
|
}
|
|
5036
|
-
function
|
|
5036
|
+
function Nl({
|
|
5037
5037
|
lockAPI: e,
|
|
5038
5038
|
contextId: t,
|
|
5039
5039
|
store: n,
|
|
@@ -5042,17 +5042,17 @@ function Dl({
|
|
|
5042
5042
|
forceSensorStop: i,
|
|
5043
5043
|
sourceEvent: s
|
|
5044
5044
|
}) {
|
|
5045
|
-
if (!
|
|
5045
|
+
if (!wo({
|
|
5046
5046
|
lockAPI: e,
|
|
5047
5047
|
store: n,
|
|
5048
5048
|
registry: r,
|
|
5049
5049
|
draggableId: o
|
|
5050
5050
|
}))
|
|
5051
5051
|
return null;
|
|
5052
|
-
const a = r.draggable.getById(o), d =
|
|
5052
|
+
const a = r.draggable.getById(o), d = El(t, a.descriptor.id);
|
|
5053
5053
|
if (!d)
|
|
5054
5054
|
return process.env.NODE_ENV !== "production" && T(`Unable to find draggable element with id: ${o}`), null;
|
|
5055
|
-
if (s && !a.options.canDragInteractiveElements &&
|
|
5055
|
+
if (s && !a.options.canDragInteractiveElements && pl(d, s))
|
|
5056
5056
|
return null;
|
|
5057
5057
|
const p = e.claim(i || re);
|
|
5058
5058
|
let l = "PRE_DRAG";
|
|
@@ -5075,14 +5075,14 @@ function Dl({
|
|
|
5075
5075
|
function x() {
|
|
5076
5076
|
e.release(), l = "COMPLETED";
|
|
5077
5077
|
}
|
|
5078
|
-
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? g(!1, `Cannot lift in phase ${l}`) : g()), n.dispatch(
|
|
5078
|
+
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? g(!1, `Cannot lift in phase ${l}`) : g()), n.dispatch(ac(E.liftActionArgs)), l = "DRAGGING";
|
|
5079
5079
|
function _(R, U = {
|
|
5080
5080
|
shouldBlockNextClick: !1
|
|
5081
5081
|
}) {
|
|
5082
5082
|
if (E.cleanup(), U.shouldBlockNextClick) {
|
|
5083
5083
|
const B = K(window, [{
|
|
5084
5084
|
eventName: "click",
|
|
5085
|
-
fn:
|
|
5085
|
+
fn: Dl,
|
|
5086
5086
|
options: {
|
|
5087
5087
|
once: !0,
|
|
5088
5088
|
passive: !1,
|
|
@@ -5131,15 +5131,15 @@ function Dl({
|
|
|
5131
5131
|
}
|
|
5132
5132
|
function v() {
|
|
5133
5133
|
const E = {
|
|
5134
|
-
moveUp: () => b(
|
|
5135
|
-
moveRight: () => b(
|
|
5136
|
-
moveDown: () => b(
|
|
5137
|
-
moveLeft: () => b(
|
|
5134
|
+
moveUp: () => b(bc),
|
|
5135
|
+
moveRight: () => b(yc),
|
|
5136
|
+
moveDown: () => b(vc),
|
|
5137
|
+
moveLeft: () => b(Ec)
|
|
5138
5138
|
};
|
|
5139
5139
|
return m({
|
|
5140
5140
|
liftActionArgs: {
|
|
5141
5141
|
id: o,
|
|
5142
|
-
clientSelection:
|
|
5142
|
+
clientSelection: fl(d),
|
|
5143
5143
|
movementMode: "SNAP"
|
|
5144
5144
|
},
|
|
5145
5145
|
cleanup: re,
|
|
@@ -5167,15 +5167,15 @@ function Dl({
|
|
|
5167
5167
|
abort: I
|
|
5168
5168
|
};
|
|
5169
5169
|
}
|
|
5170
|
-
const
|
|
5171
|
-
function
|
|
5170
|
+
const xl = [el, ol, ll];
|
|
5171
|
+
function Il({
|
|
5172
5172
|
contextId: e,
|
|
5173
5173
|
store: t,
|
|
5174
5174
|
registry: n,
|
|
5175
5175
|
customSensors: r,
|
|
5176
5176
|
enableDefaultSensors: o
|
|
5177
5177
|
}) {
|
|
5178
|
-
const i = [...o ?
|
|
5178
|
+
const i = [...o ? xl : [], ...r || []], s = me(() => ka())[0], c = D(function(m, y) {
|
|
5179
5179
|
Te(m) && !Te(y) && s.tryAbandon();
|
|
5180
5180
|
}, [s]);
|
|
5181
5181
|
Y(function() {
|
|
@@ -5185,12 +5185,12 @@ function xl({
|
|
|
5185
5185
|
c(m, v), m = v;
|
|
5186
5186
|
});
|
|
5187
5187
|
}, [s, t, c]), Y(() => s.tryAbandon, [s.tryAbandon]);
|
|
5188
|
-
const a = D((b) =>
|
|
5188
|
+
const a = D((b) => wo({
|
|
5189
5189
|
lockAPI: s,
|
|
5190
5190
|
registry: n,
|
|
5191
5191
|
store: t,
|
|
5192
5192
|
draggableId: b
|
|
5193
|
-
}), [s, n, t]), d = D((b, m, y) =>
|
|
5193
|
+
}), [s, n, t]), d = D((b, m, y) => Nl({
|
|
5194
5194
|
lockAPI: s,
|
|
5195
5195
|
registry: n,
|
|
5196
5196
|
contextId: e,
|
|
@@ -5198,12 +5198,12 @@ function xl({
|
|
|
5198
5198
|
draggableId: b,
|
|
5199
5199
|
forceSensorStop: m || null,
|
|
5200
5200
|
sourceEvent: y && y.sourceEvent ? y.sourceEvent : null
|
|
5201
|
-
}), [e, s, n, t]), p = D((b) =>
|
|
5201
|
+
}), [e, s, n, t]), p = D((b) => yl(e, b), [e]), l = D((b) => {
|
|
5202
5202
|
const m = n.draggable.findById(b);
|
|
5203
5203
|
return m ? m.options : null;
|
|
5204
5204
|
}, [n.draggable]), u = D(function() {
|
|
5205
|
-
s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(
|
|
5206
|
-
}, [s, t]), f = D(() => s.isClaimed(), [s]), h =
|
|
5205
|
+
s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(rn()));
|
|
5206
|
+
}, [s, t]), f = D(() => s.isClaimed(), [s]), h = O(() => ({
|
|
5207
5207
|
canGetLock: a,
|
|
5208
5208
|
tryGetLock: d,
|
|
5209
5209
|
findClosestDraggableId: p,
|
|
@@ -5211,11 +5211,11 @@ function xl({
|
|
|
5211
5211
|
tryReleaseLock: u,
|
|
5212
5212
|
isLockClaimed: f
|
|
5213
5213
|
}), [a, d, p, l, u, f]);
|
|
5214
|
-
|
|
5214
|
+
dl(i);
|
|
5215
5215
|
for (let b = 0; b < i.length; b++)
|
|
5216
5216
|
i[b](h);
|
|
5217
5217
|
}
|
|
5218
|
-
const
|
|
5218
|
+
const Cl = (e) => ({
|
|
5219
5219
|
onBeforeCapture: (t) => {
|
|
5220
5220
|
hr(() => {
|
|
5221
5221
|
e.onBeforeCapture && e.onBeforeCapture(t);
|
|
@@ -5225,7 +5225,7 @@ const Il = (e) => ({
|
|
|
5225
5225
|
onDragStart: e.onDragStart,
|
|
5226
5226
|
onDragEnd: e.onDragEnd,
|
|
5227
5227
|
onDragUpdate: e.onDragUpdate
|
|
5228
|
-
}),
|
|
5228
|
+
}), wl = (e) => ({
|
|
5229
5229
|
...Pe,
|
|
5230
5230
|
...e.autoScrollerOptions,
|
|
5231
5231
|
durationDampening: {
|
|
@@ -5244,26 +5244,26 @@ function Ol(e) {
|
|
|
5244
5244
|
nonce: o,
|
|
5245
5245
|
dragHandleUsageInstructions: i
|
|
5246
5246
|
} = e, s = V(null);
|
|
5247
|
-
|
|
5248
|
-
const c =
|
|
5247
|
+
Ga();
|
|
5248
|
+
const c = gn(e), a = D(() => Cl(c.current), [c]), d = D(() => wl(c.current), [c]), p = Aa(t), l = Ta({
|
|
5249
5249
|
contextId: t,
|
|
5250
5250
|
text: i
|
|
5251
|
-
}), u =
|
|
5251
|
+
}), u = Ia(t, o), f = D((B) => {
|
|
5252
5252
|
Ne(s).dispatch(B);
|
|
5253
|
-
}, []), h =
|
|
5254
|
-
publishWhileDragging:
|
|
5255
|
-
updateDroppableScroll:
|
|
5256
|
-
updateDroppableIsEnabled:
|
|
5257
|
-
updateDroppableIsCombineEnabled:
|
|
5258
|
-
collectionStarting:
|
|
5259
|
-
}, f), [f]), b = Oa(), m =
|
|
5260
|
-
scrollWindow:
|
|
5253
|
+
}, []), h = O(() => On({
|
|
5254
|
+
publishWhileDragging: dc,
|
|
5255
|
+
updateDroppableScroll: pc,
|
|
5256
|
+
updateDroppableIsEnabled: fc,
|
|
5257
|
+
updateDroppableIsCombineEnabled: gc,
|
|
5258
|
+
collectionStarting: uc
|
|
5259
|
+
}, f), [f]), b = Oa(), m = O(() => na(b, h), [b, h]), y = O(() => ya({
|
|
5260
|
+
scrollWindow: ra,
|
|
5261
5261
|
scrollDroppable: m.scrollDroppable,
|
|
5262
5262
|
getAutoScrollerOptions: d,
|
|
5263
|
-
...
|
|
5263
|
+
...On({
|
|
5264
5264
|
move: oo
|
|
5265
5265
|
}, f)
|
|
5266
|
-
}), [m.scrollDroppable, f, d]), v =
|
|
5266
|
+
}), [m.scrollDroppable, f, d]), v = Ca(t), I = O(() => Zc({
|
|
5267
5267
|
announce: p,
|
|
5268
5268
|
autoScroller: y,
|
|
5269
5269
|
dimensionMarshal: m,
|
|
@@ -5274,16 +5274,16 @@ function Ol(e) {
|
|
|
5274
5274
|
process.env.NODE_ENV !== "production" && s.current && s.current !== I && process.env.NODE_ENV !== "production" && T("unexpected store change"), s.current = I;
|
|
5275
5275
|
const N = D(() => {
|
|
5276
5276
|
const B = Ne(s);
|
|
5277
|
-
B.getState().phase !== "IDLE" && B.dispatch(
|
|
5277
|
+
B.getState().phase !== "IDLE" && B.dispatch(rn());
|
|
5278
5278
|
}, []), E = D(() => {
|
|
5279
5279
|
const B = Ne(s).getState();
|
|
5280
5280
|
return B.phase === "DROP_ANIMATING" ? !0 : B.phase === "IDLE" ? !1 : B.isDragging;
|
|
5281
|
-
}, []), x =
|
|
5281
|
+
}, []), x = O(() => ({
|
|
5282
5282
|
isDragging: E,
|
|
5283
5283
|
tryAbort: N
|
|
5284
5284
|
}), [E, N]);
|
|
5285
5285
|
n(x);
|
|
5286
|
-
const _ = D((B) => go(Ne(s).getState(), B), []), R = D(() => ce(Ne(s).getState()), []), U =
|
|
5286
|
+
const _ = D((B) => go(Ne(s).getState(), B), []), R = D(() => ce(Ne(s).getState()), []), U = O(() => ({
|
|
5287
5287
|
marshal: m,
|
|
5288
5288
|
focus: v,
|
|
5289
5289
|
contextId: t,
|
|
@@ -5292,25 +5292,25 @@ function Ol(e) {
|
|
|
5292
5292
|
dragHandleUsageInstructionsId: l,
|
|
5293
5293
|
registry: b
|
|
5294
5294
|
}), [t, m, l, v, _, R, b]);
|
|
5295
|
-
return
|
|
5295
|
+
return Il({
|
|
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
|
-
}, L.createElement(
|
|
5304
|
-
context:
|
|
5303
|
+
}, L.createElement(Gi, {
|
|
5304
|
+
context: un,
|
|
5305
5305
|
store: I
|
|
5306
5306
|
}, e.children));
|
|
5307
5307
|
}
|
|
5308
|
-
function
|
|
5308
|
+
function Sl() {
|
|
5309
5309
|
return L.useId();
|
|
5310
5310
|
}
|
|
5311
|
-
function
|
|
5312
|
-
const t =
|
|
5313
|
-
return L.createElement(
|
|
5311
|
+
function _l(e) {
|
|
5312
|
+
const t = Sl(), n = e.dragHandleUsageInstructions || ze.dragHandleUsageInstructions;
|
|
5313
|
+
return L.createElement(Ji, null, (r) => L.createElement(Ol, {
|
|
5314
5314
|
nonce: e.nonce,
|
|
5315
5315
|
contextId: t,
|
|
5316
5316
|
setCallbacks: r,
|
|
@@ -5325,19 +5325,19 @@ function Sl(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
|
+
}, Al = (e, t) => t ? Ie.drop(t.duration) : e ? Ie.snap : Ie.fluid, Pl = (e, t) => {
|
|
5332
5332
|
if (e)
|
|
5333
5333
|
return t ? Ae.opacity.drop : Ae.opacity.combining;
|
|
5334
|
-
},
|
|
5335
|
-
function
|
|
5334
|
+
}, Rl = (e) => e.forceShouldAnimate != null ? e.forceShouldAnimate : e.mode === "SNAP";
|
|
5335
|
+
function Tl(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 = Rl(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 Rl(e) {
|
|
|
5345
5345
|
boxSizing: "border-box",
|
|
5346
5346
|
width: n.borderBox.width,
|
|
5347
5347
|
height: n.borderBox.height,
|
|
5348
|
-
transition:
|
|
5348
|
+
transition: Al(c, i),
|
|
5349
5349
|
transform: d,
|
|
5350
|
-
opacity:
|
|
5351
|
-
zIndex: a ?
|
|
5350
|
+
opacity: Pl(s, a),
|
|
5351
|
+
zIndex: a ? cr.dropAnimating : cr.dragging,
|
|
5352
5352
|
pointerEvents: "none"
|
|
5353
5353
|
};
|
|
5354
5354
|
}
|
|
5355
|
-
function
|
|
5355
|
+
function Bl(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
|
-
function
|
|
5362
|
-
return e.type === "DRAGGING" ?
|
|
5361
|
+
function Vl(e) {
|
|
5362
|
+
return e.type === "DRAGGING" ? Tl(e) : Bl(e);
|
|
5363
5363
|
}
|
|
5364
|
-
function
|
|
5365
|
-
const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Rr(o, r), s =
|
|
5364
|
+
function Ll(e, t, n = G) {
|
|
5365
|
+
const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Rr(o, r), s = Xe(i, n), c = {
|
|
5366
5366
|
client: i,
|
|
5367
5367
|
tagName: t.tagName.toLowerCase(),
|
|
5368
5368
|
display: r.display
|
|
@@ -5378,22 +5378,22 @@ function Vl(e, t, n = G) {
|
|
|
5378
5378
|
page: s
|
|
5379
5379
|
};
|
|
5380
5380
|
}
|
|
5381
|
-
function
|
|
5382
|
-
const t =
|
|
5381
|
+
function Ml(e) {
|
|
5382
|
+
const t = pn("draggable"), {
|
|
5383
5383
|
descriptor: n,
|
|
5384
5384
|
registry: r,
|
|
5385
5385
|
getDraggableRef: o,
|
|
5386
5386
|
canDragInteractiveElements: i,
|
|
5387
5387
|
shouldRespectForcePress: s,
|
|
5388
5388
|
isEnabled: c
|
|
5389
|
-
} = e, a =
|
|
5389
|
+
} = e, a = O(() => ({
|
|
5390
5390
|
canDragInteractiveElements: i,
|
|
5391
5391
|
shouldRespectForcePress: s,
|
|
5392
5392
|
isEnabled: c
|
|
5393
5393
|
}), [i, c, s]), d = D((f) => {
|
|
5394
5394
|
const h = o();
|
|
5395
|
-
return h || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot get dimension when no ref is set") : g()),
|
|
5396
|
-
}, [n, o]), p =
|
|
5395
|
+
return h || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot get dimension when no ref is set") : g()), Ll(n, h, f);
|
|
5396
|
+
}, [n, o]), p = O(() => ({
|
|
5397
5397
|
uniqueId: t,
|
|
5398
5398
|
descriptor: n,
|
|
5399
5399
|
options: a,
|
|
@@ -5408,8 +5408,8 @@ function Ll(e) {
|
|
|
5408
5408
|
l.current = p, r.draggable.update(p, f);
|
|
5409
5409
|
}, [p, r.draggable]);
|
|
5410
5410
|
}
|
|
5411
|
-
var
|
|
5412
|
-
function
|
|
5411
|
+
var hn = L.createContext(null);
|
|
5412
|
+
function Oo(e) {
|
|
5413
5413
|
e && $e(e) || (process.env.NODE_ENV !== "production" ? g(!1, `
|
|
5414
5414
|
provided.innerRef has not been provided with a HTMLElement.
|
|
5415
5415
|
|
|
@@ -5417,42 +5417,42 @@ function wo(e) {
|
|
|
5417
5417
|
https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md
|
|
5418
5418
|
`) : g());
|
|
5419
5419
|
}
|
|
5420
|
-
function
|
|
5420
|
+
function $l(e, t, n) {
|
|
5421
5421
|
Ge(() => {
|
|
5422
5422
|
function r(i) {
|
|
5423
5423
|
return `Draggable[id: ${i}]: `;
|
|
5424
5424
|
}
|
|
5425
5425
|
const o = e.draggableId;
|
|
5426
5426
|
o || (process.env.NODE_ENV !== "production" ? g(!1, "Draggable requires a draggableId") : g(!1)), typeof o != "string" && (process.env.NODE_ENV !== "production" ? g(!1, `Draggable requires a [string] draggableId.
|
|
5427
|
-
Provided: [type: ${typeof o}] (value: ${o})`) : g(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? g(!1, `${r(o)} requires an integer index prop`) : g(!1)), e.mapped.type !== "DRAGGING" && (
|
|
5427
|
+
Provided: [type: ${typeof o}] (value: ${o})`) : g(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? g(!1, `${r(o)} requires an integer index prop`) : g(!1)), e.mapped.type !== "DRAGGING" && (Oo(n()), e.isEnabled && (Eo(t, o) || (process.env.NODE_ENV !== "production" ? g(!1, `${r(o)} Unable to find drag handle`) : g(!1))));
|
|
5428
5428
|
});
|
|
5429
5429
|
}
|
|
5430
|
-
function
|
|
5431
|
-
|
|
5430
|
+
function Gl(e) {
|
|
5431
|
+
fn(() => {
|
|
5432
5432
|
const t = V(e);
|
|
5433
5433
|
Ge(() => {
|
|
5434
5434
|
e !== t.current && (process.env.NODE_ENV !== "production" ? g(!1, "Draggable isClone prop value changed during component life") : g(!1));
|
|
5435
5435
|
}, [e]);
|
|
5436
5436
|
});
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function Qe(e) {
|
|
5439
5439
|
const t = mr(e);
|
|
5440
5440
|
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find required context") : g()), t;
|
|
5441
5441
|
}
|
|
5442
|
-
function
|
|
5442
|
+
function kl(e) {
|
|
5443
5443
|
e.preventDefault();
|
|
5444
5444
|
}
|
|
5445
|
-
const
|
|
5445
|
+
const Fl = (e) => {
|
|
5446
5446
|
const t = V(null), n = D((x = null) => {
|
|
5447
5447
|
t.current = x;
|
|
5448
5448
|
}, []), r = D(() => t.current, []), {
|
|
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,
|
|
@@ -5467,8 +5467,8 @@ const kl = (e) => {
|
|
|
5467
5467
|
mapped: m,
|
|
5468
5468
|
dropAnimationFinished: y
|
|
5469
5469
|
} = e;
|
|
5470
|
-
if (
|
|
5471
|
-
const x =
|
|
5470
|
+
if ($l(e, o, r), Gl(b), !b) {
|
|
5471
|
+
const x = O(() => ({
|
|
5472
5472
|
descriptor: d,
|
|
5473
5473
|
registry: s,
|
|
5474
5474
|
getDraggableRef: r,
|
|
@@ -5476,20 +5476,20 @@ const kl = (e) => {
|
|
|
5476
5476
|
shouldRespectForcePress: f,
|
|
5477
5477
|
isEnabled: u
|
|
5478
5478
|
}), [d, s, r, h, f, u]);
|
|
5479
|
-
|
|
5479
|
+
Ml(x);
|
|
5480
5480
|
}
|
|
5481
|
-
const v =
|
|
5481
|
+
const v = O(() => u ? {
|
|
5482
5482
|
tabIndex: 0,
|
|
5483
5483
|
role: "button",
|
|
5484
5484
|
"aria-describedby": i,
|
|
5485
5485
|
"data-rfd-drag-handle-draggable-id": l,
|
|
5486
5486
|
"data-rfd-drag-handle-context-id": o,
|
|
5487
5487
|
draggable: !1,
|
|
5488
|
-
onDragStart:
|
|
5488
|
+
onDragStart: kl
|
|
5489
5489
|
} : null, [o, i, l, u]), I = D((x) => {
|
|
5490
5490
|
m.type === "DRAGGING" && m.dropping && x.propertyName === "transform" && hr(y);
|
|
5491
|
-
}, [y, m]), N =
|
|
5492
|
-
const x =
|
|
5491
|
+
}, [y, m]), N = O(() => {
|
|
5492
|
+
const x = Vl(m), _ = m.type === "DRAGGING" && m.dropping ? I : void 0;
|
|
5493
5493
|
return {
|
|
5494
5494
|
innerRef: n,
|
|
5495
5495
|
draggableProps: {
|
|
@@ -5500,7 +5500,7 @@ const kl = (e) => {
|
|
|
5500
5500
|
},
|
|
5501
5501
|
dragHandleProps: v
|
|
5502
5502
|
};
|
|
5503
|
-
}, [o, v, l, m, I, n]), E =
|
|
5503
|
+
}, [o, v, l, m, I, n]), E = O(() => ({
|
|
5504
5504
|
draggableId: d.id,
|
|
5505
5505
|
type: d.type,
|
|
5506
5506
|
source: {
|
|
@@ -5517,8 +5517,8 @@ var So = (e, t) => e === t, _o = (e) => {
|
|
|
5517
5517
|
} = e;
|
|
5518
5518
|
return n ? n.droppableId : t ? t.droppableId : null;
|
|
5519
5519
|
};
|
|
5520
|
-
const
|
|
5521
|
-
function
|
|
5520
|
+
const Wl = (e) => e.combine ? e.combine.draggableId : null, Ul = (e) => e.at && e.at.type === "COMBINE" ? e.at.combine.draggableId : null;
|
|
5521
|
+
function Hl() {
|
|
5522
5522
|
const e = $((o, i) => ({
|
|
5523
5523
|
x: o,
|
|
5524
5524
|
y: i
|
|
@@ -5548,16 +5548,16 @@ function Ul() {
|
|
|
5548
5548
|
if (Te(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 = j(o.impact), d =
|
|
5551
|
+
const s = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], a = j(o.impact), d = Ul(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 = _o(d), u =
|
|
5558
|
+
const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l = _o(d), u = Wl(d), h = {
|
|
5559
5559
|
duration: o.dropDuration,
|
|
5560
|
-
curve:
|
|
5560
|
+
curve: sn.drop,
|
|
5561
5561
|
moveTo: o.newHomeClientOffset,
|
|
5562
5562
|
opacity: u ? Ae.opacity.drop : null,
|
|
5563
5563
|
scale: u ? Ae.scale.drop : null
|
|
@@ -5591,7 +5591,7 @@ function Ao(e = null) {
|
|
|
5591
5591
|
combineWith: null
|
|
5592
5592
|
};
|
|
5593
5593
|
}
|
|
5594
|
-
const
|
|
5594
|
+
const zl = {
|
|
5595
5595
|
mapped: {
|
|
5596
5596
|
type: "SECONDARY",
|
|
5597
5597
|
offset: G,
|
|
@@ -5600,7 +5600,7 @@ const Hl = {
|
|
|
5600
5600
|
snapshot: Ao(null)
|
|
5601
5601
|
}
|
|
5602
5602
|
};
|
|
5603
|
-
function
|
|
5603
|
+
function ql() {
|
|
5604
5604
|
const e = $((s, c) => ({
|
|
5605
5605
|
x: s,
|
|
5606
5606
|
y: c
|
|
@@ -5613,7 +5613,7 @@ function zl() {
|
|
|
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), f = u && u.draggableId === s ? c : null;
|
|
5617
5617
|
if (!p) {
|
|
5618
5618
|
if (!l)
|
|
5619
5619
|
return r(f);
|
|
@@ -5637,34 +5637,34 @@ function zl() {
|
|
|
5637
5637
|
return null;
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
|
-
const
|
|
5641
|
-
const e =
|
|
5642
|
-
return (r, o) => e(r, o) || t(r, o) ||
|
|
5643
|
-
},
|
|
5640
|
+
const jl = () => {
|
|
5641
|
+
const e = Hl(), t = ql();
|
|
5642
|
+
return (r, o) => e(r, o) || t(r, o) || zl;
|
|
5643
|
+
}, Yl = {
|
|
5644
5644
|
dropAnimationFinished: so
|
|
5645
|
-
},
|
|
5646
|
-
context:
|
|
5645
|
+
}, Xl = Pr(jl, Yl, null, {
|
|
5646
|
+
context: un,
|
|
5647
5647
|
areStatePropsEqual: So
|
|
5648
|
-
})(
|
|
5648
|
+
})(Fl);
|
|
5649
5649
|
function Po(e) {
|
|
5650
|
-
return
|
|
5650
|
+
return Qe(hn).isUsingCloneFor === e.draggableId && !e.isClone ? null : L.createElement(Xl, e);
|
|
5651
5651
|
}
|
|
5652
|
-
function
|
|
5652
|
+
function Kl(e) {
|
|
5653
5653
|
const t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
|
|
5654
|
-
return L.createElement(Po,
|
|
5654
|
+
return L.createElement(Po, 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, Jl = bn("scroll"), Zl = bn("auto"), Ql = bn("visible"), ar = (e, t) => t(e.overflowX) || t(e.overflowY), ed = (e, t) => t(e.overflowX) && t(e.overflowY), Ro = (e) => {
|
|
5662
5662
|
const t = window.getComputedStyle(e), n = {
|
|
5663
5663
|
overflowX: t.overflowX,
|
|
5664
5664
|
overflowY: t.overflowY
|
|
5665
5665
|
};
|
|
5666
|
-
return
|
|
5667
|
-
},
|
|
5666
|
+
return ar(n, Jl) || ar(n, Zl);
|
|
5667
|
+
}, td = () => {
|
|
5668
5668
|
if (process.env.NODE_ENV === "production")
|
|
5669
5669
|
return !1;
|
|
5670
5670
|
const e = Re(), t = document.documentElement;
|
|
@@ -5674,7 +5674,7 @@ const vn = (e) => (t) => e === t, Kl = vn("scroll"), Jl = vn("auto"), Zl = vn("v
|
|
|
5674
5674
|
overflowX: n.overflowX,
|
|
5675
5675
|
overflowY: n.overflowY
|
|
5676
5676
|
};
|
|
5677
|
-
return
|
|
5677
|
+
return ed(r, Ql) || process.env.NODE_ENV !== "production" && T(`
|
|
5678
5678
|
We have detected that your <body> element might be a scroll container.
|
|
5679
5679
|
We have found no reliable way of detecting whether the <body> element is a scroll container.
|
|
5680
5680
|
Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)
|
|
@@ -5684,27 +5684,27 @@ const vn = (e) => (t) => e === t, Kl = vn("scroll"), Jl = vn("auto"), Zl = vn("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
|
-
},
|
|
5688
|
-
var
|
|
5689
|
-
!e || !
|
|
5687
|
+
}, vn = (e) => e == null ? null : e === document.body ? td() ? e : null : e === document.documentElement ? null : Ro(e) ? e : vn(e.parentElement);
|
|
5688
|
+
var nd = (e) => {
|
|
5689
|
+
!e || !vn(e.parentElement) || process.env.NODE_ENV !== "production" && T(`
|
|
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.
|
|
5693
5693
|
|
|
5694
5694
|
We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131
|
|
5695
5695
|
`);
|
|
5696
|
-
},
|
|
5696
|
+
}, Ft = (e) => ({
|
|
5697
5697
|
x: e.scrollLeft,
|
|
5698
5698
|
y: e.scrollTop
|
|
5699
5699
|
});
|
|
5700
5700
|
const To = (e) => e ? window.getComputedStyle(e).position === "fixed" ? !0 : To(e.parentElement) : !1;
|
|
5701
|
-
var
|
|
5702
|
-
const t =
|
|
5701
|
+
var rd = (e) => {
|
|
5702
|
+
const t = vn(e), n = To(e);
|
|
5703
5703
|
return {
|
|
5704
5704
|
closestScrollable: t,
|
|
5705
5705
|
isFixedOnPage: n
|
|
5706
5706
|
};
|
|
5707
|
-
},
|
|
5707
|
+
}, od = ({
|
|
5708
5708
|
descriptor: e,
|
|
5709
5709
|
isEnabled: t,
|
|
5710
5710
|
isCombineEnabled: n,
|
|
@@ -5741,7 +5741,7 @@ var nd = (e) => {
|
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
5743
|
};
|
|
5744
|
-
})(), d = o === "vertical" ?
|
|
5744
|
+
})(), d = o === "vertical" ? Zt : Ur, p = pe({
|
|
5745
5745
|
page: s,
|
|
5746
5746
|
withPlaceholder: null,
|
|
5747
5747
|
axis: d,
|
|
@@ -5759,24 +5759,24 @@ var nd = (e) => {
|
|
|
5759
5759
|
subject: p
|
|
5760
5760
|
};
|
|
5761
5761
|
};
|
|
5762
|
-
const
|
|
5762
|
+
const id = (e, t) => {
|
|
5763
5763
|
const n = Tr(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,
|
|
5776
5776
|
padding: n.padding
|
|
5777
5777
|
});
|
|
5778
5778
|
};
|
|
5779
|
-
var
|
|
5779
|
+
var sd = ({
|
|
5780
5780
|
ref: e,
|
|
5781
5781
|
descriptor: t,
|
|
5782
5782
|
env: n,
|
|
@@ -5786,7 +5786,7 @@ var id = ({
|
|
|
5786
5786
|
isCombineEnabled: s,
|
|
5787
5787
|
shouldClipSubject: c
|
|
5788
5788
|
}) => {
|
|
5789
|
-
const a = n.closestScrollable, d =
|
|
5789
|
+
const a = n.closestScrollable, d = id(e, a), p = Xe(d, r), l = (() => {
|
|
5790
5790
|
if (!a)
|
|
5791
5791
|
return null;
|
|
5792
5792
|
const f = Tr(a), h = {
|
|
@@ -5795,13 +5795,13 @@ var id = ({
|
|
|
5795
5795
|
};
|
|
5796
5796
|
return {
|
|
5797
5797
|
client: f,
|
|
5798
|
-
page:
|
|
5799
|
-
scroll:
|
|
5798
|
+
page: Xe(f, r),
|
|
5799
|
+
scroll: Ft(a),
|
|
5800
5800
|
scrollSize: h,
|
|
5801
5801
|
shouldClipSubject: c
|
|
5802
5802
|
};
|
|
5803
5803
|
})();
|
|
5804
|
-
return
|
|
5804
|
+
return od({
|
|
5805
5805
|
descriptor: t,
|
|
5806
5806
|
isEnabled: !i,
|
|
5807
5807
|
isCombineEnabled: s,
|
|
@@ -5812,22 +5812,22 @@ var id = ({
|
|
|
5812
5812
|
closest: l
|
|
5813
5813
|
});
|
|
5814
5814
|
};
|
|
5815
|
-
const
|
|
5815
|
+
const cd = {
|
|
5816
5816
|
passive: !1
|
|
5817
|
-
},
|
|
5817
|
+
}, ad = {
|
|
5818
5818
|
passive: !0
|
|
5819
5819
|
};
|
|
5820
|
-
var
|
|
5820
|
+
var lr = (e) => e.shouldPublishImmediately ? cd : ad;
|
|
5821
5821
|
const He = (e) => e && e.env.closestScrollable || null;
|
|
5822
|
-
function
|
|
5823
|
-
const t = V(null), n =
|
|
5822
|
+
function ld(e) {
|
|
5823
|
+
const t = V(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
|
-
}), [e.droppableId, e.mode, e.type]), a = V(c), d =
|
|
5830
|
+
}), [e.droppableId, e.mode, e.type]), a = V(c), d = O(() => $((N, E) => {
|
|
5831
5831
|
t.current || (process.env.NODE_ENV !== "production" ? g(!1, "Can only update scroll when dragging") : g());
|
|
5832
5832
|
const x = {
|
|
5833
5833
|
x: N,
|
|
@@ -5836,11 +5836,11 @@ function ad(e) {
|
|
|
5836
5836
|
i.updateDroppableScroll(c.id, x);
|
|
5837
5837
|
}), [c.id, i]), p = D(() => {
|
|
5838
5838
|
const N = t.current;
|
|
5839
|
-
return !N || !N.env.closestScrollable ? G :
|
|
5839
|
+
return !N || !N.env.closestScrollable ? G : Ft(N.env.closestScrollable);
|
|
5840
5840
|
}, []), l = D(() => {
|
|
5841
5841
|
const N = p();
|
|
5842
5842
|
d(N.x, N.y);
|
|
5843
|
-
}, [p, d]), u =
|
|
5843
|
+
}, [p, d]), u = O(() => Ce(l), [l]), f = D(() => {
|
|
5844
5844
|
const N = t.current, E = He(N);
|
|
5845
5845
|
if (N && E || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find scroll options while scrolling") : g()), N.scrollOptions.shouldPublishImmediately) {
|
|
5846
5846
|
l();
|
|
@@ -5851,14 +5851,14 @@ function ad(e) {
|
|
|
5851
5851
|
t.current && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot collect a droppable while a drag is occurring") : g());
|
|
5852
5852
|
const x = s.current, _ = x.getDroppableRef();
|
|
5853
5853
|
_ || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot collect without a droppable ref") : g());
|
|
5854
|
-
const R =
|
|
5854
|
+
const R = rd(_), U = {
|
|
5855
5855
|
ref: _,
|
|
5856
5856
|
descriptor: c,
|
|
5857
5857
|
env: R,
|
|
5858
5858
|
scrollOptions: E
|
|
5859
5859
|
};
|
|
5860
5860
|
t.current = U;
|
|
5861
|
-
const B =
|
|
5861
|
+
const B = sd({
|
|
5862
5862
|
ref: _,
|
|
5863
5863
|
descriptor: c,
|
|
5864
5864
|
env: R,
|
|
@@ -5868,26 +5868,26 @@ function ad(e) {
|
|
|
5868
5868
|
isCombineEnabled: x.isCombineEnabled,
|
|
5869
5869
|
shouldClipSubject: !x.ignoreContainerClipping
|
|
5870
5870
|
}), H = R.closestScrollable;
|
|
5871
|
-
return H && (H.setAttribute(
|
|
5871
|
+
return H && (H.setAttribute(nr.contextId, n.contextId), H.addEventListener("scroll", f, lr(U.scrollOptions)), process.env.NODE_ENV !== "production" && nd(H)), B;
|
|
5872
5872
|
}, [n.contextId, c, f, s]), b = D(() => {
|
|
5873
5873
|
const N = t.current, E = He(N);
|
|
5874
|
-
return N && E || (process.env.NODE_ENV !== "production" ? g(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : g()),
|
|
5874
|
+
return N && E || (process.env.NODE_ENV !== "production" ? g(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : g()), Ft(E);
|
|
5875
5875
|
}, []), m = D(() => {
|
|
5876
5876
|
const N = t.current;
|
|
5877
5877
|
N || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot stop drag when no active drag") : g());
|
|
5878
5878
|
const E = He(N);
|
|
5879
|
-
t.current = null, E && (u.cancel(), E.removeAttribute(
|
|
5879
|
+
t.current = null, E && (u.cancel(), E.removeAttribute(nr.contextId), E.removeEventListener("scroll", f, lr(N.scrollOptions)));
|
|
5880
5880
|
}, [f, u]), y = D((N) => {
|
|
5881
5881
|
const E = t.current;
|
|
5882
5882
|
E || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot scroll when there is no drag") : g());
|
|
5883
5883
|
const x = He(E);
|
|
5884
5884
|
x || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot scroll a droppable with no closest scrollable") : g()), x.scrollTop += N.y, x.scrollLeft += N.x;
|
|
5885
|
-
}, []), v =
|
|
5885
|
+
}, []), v = O(() => ({
|
|
5886
5886
|
getDimensionAndWatchScroll: h,
|
|
5887
5887
|
getScrollWhileDragging: b,
|
|
5888
5888
|
dragStopped: m,
|
|
5889
5889
|
scroll: y
|
|
5890
|
-
}), [m, h, b, y]), I =
|
|
5890
|
+
}), [m, h, b, y]), I = O(() => ({
|
|
5891
5891
|
uniqueId: r,
|
|
5892
5892
|
descriptor: c,
|
|
5893
5893
|
callbacks: v
|
|
@@ -5900,26 +5900,26 @@ function ad(e) {
|
|
|
5900
5900
|
t.current && i.updateDroppableIsCombineEnabled(a.current.id, e.isCombineEnabled);
|
|
5901
5901
|
}, [e.isCombineEnabled, i]);
|
|
5902
5902
|
}
|
|
5903
|
-
function
|
|
5903
|
+
function St() {
|
|
5904
5904
|
}
|
|
5905
|
-
const
|
|
5905
|
+
const dr = {
|
|
5906
5906
|
width: 0,
|
|
5907
5907
|
height: 0,
|
|
5908
|
-
margin:
|
|
5909
|
-
},
|
|
5908
|
+
margin: os
|
|
5909
|
+
}, dd = ({
|
|
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
|
|
5917
|
-
},
|
|
5917
|
+
}, ud = ({
|
|
5918
5918
|
isAnimatingOpenOnMount: e,
|
|
5919
5919
|
placeholder: t,
|
|
5920
5920
|
animate: n
|
|
5921
5921
|
}) => {
|
|
5922
|
-
const r =
|
|
5922
|
+
const r = dd({
|
|
5923
5923
|
isAnimatingOpenOnMount: e,
|
|
5924
5924
|
placeholder: t,
|
|
5925
5925
|
animate: n
|
|
@@ -5938,7 +5938,7 @@ const ur = {
|
|
|
5938
5938
|
pointerEvents: "none",
|
|
5939
5939
|
transition: n !== "none" ? Ie.placeholder : null
|
|
5940
5940
|
};
|
|
5941
|
-
},
|
|
5941
|
+
}, pd = (e) => {
|
|
5942
5942
|
const t = V(null), n = D(() => {
|
|
5943
5943
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
5944
5944
|
}, []), {
|
|
@@ -5947,12 +5947,12 @@ const ur = {
|
|
|
5947
5947
|
onClose: i,
|
|
5948
5948
|
contextId: s
|
|
5949
5949
|
} = e, [c, a] = me(e.animate === "open");
|
|
5950
|
-
te(() => c ? r !== "open" ? (n(), a(!1),
|
|
5950
|
+
te(() => c ? r !== "open" ? (n(), a(!1), St) : t.current ? St : (t.current = setTimeout(() => {
|
|
5951
5951
|
t.current = null, a(!1);
|
|
5952
|
-
}), n) :
|
|
5952
|
+
}), n) : St, [r, c, n]);
|
|
5953
5953
|
const d = D((l) => {
|
|
5954
5954
|
l.propertyName === "height" && (o(), r === "close" && i());
|
|
5955
|
-
}, [r, i, o]), p =
|
|
5955
|
+
}, [r, i, o]), p = ud({
|
|
5956
5956
|
isAnimatingOpenOnMount: c,
|
|
5957
5957
|
animate: e.animate,
|
|
5958
5958
|
placeholder: e.placeholder
|
|
@@ -5964,26 +5964,26 @@ const ur = {
|
|
|
5964
5964
|
ref: e.innerRef
|
|
5965
5965
|
});
|
|
5966
5966
|
};
|
|
5967
|
-
var
|
|
5968
|
-
function
|
|
5967
|
+
var fd = L.memo(pd);
|
|
5968
|
+
function _t(e) {
|
|
5969
5969
|
return typeof e == "boolean";
|
|
5970
5970
|
}
|
|
5971
|
-
function
|
|
5971
|
+
function At(e, t) {
|
|
5972
5972
|
t.forEach((n) => n(e));
|
|
5973
5973
|
}
|
|
5974
|
-
const
|
|
5974
|
+
const gd = [function({
|
|
5975
5975
|
props: t
|
|
5976
5976
|
}) {
|
|
5977
5977
|
t.droppableId || (process.env.NODE_ENV !== "production" ? g(!1, "A Droppable requires a droppableId prop") : g()), typeof t.droppableId != "string" && (process.env.NODE_ENV !== "production" ? g(!1, `A Droppable requires a [string] droppableId. Provided: [${typeof t.droppableId}]`) : g());
|
|
5978
5978
|
}, function({
|
|
5979
5979
|
props: t
|
|
5980
5980
|
}) {
|
|
5981
|
-
|
|
5981
|
+
_t(t.isDropDisabled) || (process.env.NODE_ENV !== "production" ? g(!1, "isDropDisabled must be a boolean") : g()), _t(t.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? g(!1, "isCombineEnabled must be a boolean") : g()), _t(t.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? g(!1, "ignoreContainerClipping must be a boolean") : g());
|
|
5982
5982
|
}, function({
|
|
5983
5983
|
getDroppableRef: t
|
|
5984
5984
|
}) {
|
|
5985
|
-
|
|
5986
|
-
}],
|
|
5985
|
+
Oo(t());
|
|
5986
|
+
}], md = [function({
|
|
5987
5987
|
props: t,
|
|
5988
5988
|
getPlaceholderRef: n
|
|
5989
5989
|
}) {
|
|
@@ -5994,7 +5994,7 @@ const fd = [function({
|
|
|
5994
5994
|
Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.
|
|
5995
5995
|
More information: https://github.com/hello-pangea/dnd/blob/main/docs/api/droppable.md
|
|
5996
5996
|
`);
|
|
5997
|
-
}],
|
|
5997
|
+
}], hd = [function({
|
|
5998
5998
|
props: t
|
|
5999
5999
|
}) {
|
|
6000
6000
|
t.renderClone || (process.env.NODE_ENV !== "production" ? g(!1, "Must provide a clone render function (renderClone) for virtual lists") : g());
|
|
@@ -6003,12 +6003,12 @@ const fd = [function({
|
|
|
6003
6003
|
}) {
|
|
6004
6004
|
t() && (process.env.NODE_ENV !== "production" ? g(!1, "Expected virtual list to not have a placeholder") : g());
|
|
6005
6005
|
}];
|
|
6006
|
-
function
|
|
6006
|
+
function bd(e) {
|
|
6007
6007
|
Ge(() => {
|
|
6008
|
-
|
|
6008
|
+
At(e, gd), e.props.mode === "standard" && At(e, md), e.props.mode === "virtual" && At(e, hd);
|
|
6009
6009
|
});
|
|
6010
6010
|
}
|
|
6011
|
-
class
|
|
6011
|
+
class vd extends L.PureComponent {
|
|
6012
6012
|
constructor(...t) {
|
|
6013
6013
|
super(...t), this.state = {
|
|
6014
6014
|
isVisible: !!this.props.on,
|
|
@@ -6050,8 +6050,8 @@ class bd extends L.PureComponent {
|
|
|
6050
6050
|
return this.props.children(t);
|
|
6051
6051
|
}
|
|
6052
6052
|
}
|
|
6053
|
-
const
|
|
6054
|
-
const t = mr(
|
|
6053
|
+
const yd = (e) => {
|
|
6054
|
+
const t = mr(it);
|
|
6055
6055
|
t || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find app context") : g());
|
|
6056
6056
|
const {
|
|
6057
6057
|
contextId: n,
|
|
@@ -6074,7 +6074,7 @@ const vd = (e) => {
|
|
|
6074
6074
|
}, []), N = D(() => i.current, []), E = D((M = null) => {
|
|
6075
6075
|
i.current = M;
|
|
6076
6076
|
}, []);
|
|
6077
|
-
|
|
6077
|
+
bd({
|
|
6078
6078
|
props: e,
|
|
6079
6079
|
getDroppableRef: v,
|
|
6080
6080
|
getPlaceholderRef: N
|
|
@@ -6084,7 +6084,7 @@ const vd = (e) => {
|
|
|
6084
6084
|
maxScroll: fo()
|
|
6085
6085
|
});
|
|
6086
6086
|
}, [r, m]);
|
|
6087
|
-
|
|
6087
|
+
ld({
|
|
6088
6088
|
droppableId: c,
|
|
6089
6089
|
type: a,
|
|
6090
6090
|
mode: d,
|
|
@@ -6094,28 +6094,28 @@ const vd = (e) => {
|
|
|
6094
6094
|
ignoreContainerClipping: l,
|
|
6095
6095
|
getDroppableRef: v
|
|
6096
6096
|
});
|
|
6097
|
-
const _ =
|
|
6097
|
+
const _ = O(() => L.createElement(vd, {
|
|
6098
6098
|
on: e.placeholder,
|
|
6099
6099
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
6100
6100
|
}, ({
|
|
6101
6101
|
onClose: M,
|
|
6102
6102
|
data: Q,
|
|
6103
6103
|
animate: de
|
|
6104
|
-
}) => L.createElement(
|
|
6104
|
+
}) => L.createElement(fd, {
|
|
6105
6105
|
placeholder: Q,
|
|
6106
6106
|
onClose: M,
|
|
6107
6107
|
innerRef: E,
|
|
6108
6108
|
animate: de,
|
|
6109
6109
|
contextId: n,
|
|
6110
6110
|
onTransitionEnd: x
|
|
6111
|
-
})), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), R =
|
|
6111
|
+
})), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), R = O(() => ({
|
|
6112
6112
|
innerRef: I,
|
|
6113
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, _, I]), U = b ? b.dragging.draggableId : null, B =
|
|
6118
|
+
}), [n, c, _, I]), U = b ? b.dragging.draggableId : null, B = O(() => ({
|
|
6119
6119
|
droppableId: c,
|
|
6120
6120
|
type: a,
|
|
6121
6121
|
isUsingCloneFor: U
|
|
@@ -6134,16 +6134,16 @@ const vd = (e) => {
|
|
|
6134
6134
|
shouldRespectForcePress: !1,
|
|
6135
6135
|
canDragInteractiveElements: !0
|
|
6136
6136
|
}, (ee, ke) => Q(ee, ke, M));
|
|
6137
|
-
return
|
|
6137
|
+
return Go.createPortal(de, y());
|
|
6138
6138
|
}
|
|
6139
|
-
return L.createElement(
|
|
6139
|
+
return L.createElement(hn.Provider, {
|
|
6140
6140
|
value: B
|
|
6141
6141
|
}, s(R, h), H());
|
|
6142
6142
|
};
|
|
6143
|
-
function
|
|
6143
|
+
function Ed() {
|
|
6144
6144
|
return document.body || (process.env.NODE_ENV !== "production" ? g(!1, "document.body is not ready") : g()), document.body;
|
|
6145
6145
|
}
|
|
6146
|
-
const
|
|
6146
|
+
const ur = {
|
|
6147
6147
|
mode: "standard",
|
|
6148
6148
|
type: "DEFAULT",
|
|
6149
6149
|
direction: "vertical",
|
|
@@ -6151,18 +6151,18 @@ const pr = {
|
|
|
6151
6151
|
isCombineEnabled: !1,
|
|
6152
6152
|
ignoreContainerClipping: !1,
|
|
6153
6153
|
renderClone: null,
|
|
6154
|
-
getContainerForClone:
|
|
6154
|
+
getContainerForClone: Ed
|
|
6155
6155
|
}, Bo = (e) => {
|
|
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], Dd = () => {
|
|
6166
6166
|
const e = {
|
|
6167
6167
|
placeholder: null,
|
|
6168
6168
|
shouldAnimatePlaceholder: !0,
|
|
@@ -6223,37 +6223,37 @@ const pr = {
|
|
|
6223
6223
|
const c = Bo(s), a = c.droppableId, d = c.type, p = !c.isDropDisabled, l = c.renderClone;
|
|
6224
6224
|
if (Te(i)) {
|
|
6225
6225
|
const u = i.critical;
|
|
6226
|
-
if (!
|
|
6226
|
+
if (!Pt(d, u))
|
|
6227
6227
|
return t;
|
|
6228
|
-
const f =
|
|
6228
|
+
const f = pr(u, i.dimensions), h = j(i.impact) === a;
|
|
6229
6229
|
return r(a, p, h, h, f, 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 f =
|
|
6235
|
+
const f = pr(u.critical, i.dimensions);
|
|
6236
6236
|
return r(a, p, _o(u.result) === a, j(u.impact) === a, f, 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
6242
|
const f = j(u.impact) === a, h = !!(u.impact.at && u.impact.at.type === "COMBINE"), b = u.critical.droppable.id === a;
|
|
6243
6243
|
return f ? h ? e : t : b ? e : t;
|
|
6244
6244
|
}
|
|
6245
6245
|
return t;
|
|
6246
6246
|
};
|
|
6247
|
-
},
|
|
6248
|
-
updateViewportMaxScroll:
|
|
6249
|
-
},
|
|
6247
|
+
}, Nd = {
|
|
6248
|
+
updateViewportMaxScroll: hc
|
|
6249
|
+
}, xd = Pr(Dd, Nd, (e, t, n) => ({
|
|
6250
6250
|
...Bo(n),
|
|
6251
6251
|
...e,
|
|
6252
6252
|
...t
|
|
6253
6253
|
}), {
|
|
6254
|
-
context:
|
|
6254
|
+
context: un,
|
|
6255
6255
|
areStatePropsEqual: So
|
|
6256
|
-
})(
|
|
6256
|
+
})(yd), Id = () => /* @__PURE__ */ A(
|
|
6257
6257
|
"svg",
|
|
6258
6258
|
{
|
|
6259
6259
|
width: "16",
|
|
@@ -6270,7 +6270,7 @@ const pr = {
|
|
|
6270
6270
|
/* @__PURE__ */ C("circle", { cx: "12", cy: "10", r: "3" })
|
|
6271
6271
|
]
|
|
6272
6272
|
}
|
|
6273
|
-
),
|
|
6273
|
+
), fr = () => /* @__PURE__ */ A(
|
|
6274
6274
|
"svg",
|
|
6275
6275
|
{
|
|
6276
6276
|
width: "16",
|
|
@@ -6287,7 +6287,7 @@ const pr = {
|
|
|
6287
6287
|
/* @__PURE__ */ C("polyline", { points: "12 6 12 12 16 14" })
|
|
6288
6288
|
]
|
|
6289
6289
|
}
|
|
6290
|
-
),
|
|
6290
|
+
), Cd = () => /* @__PURE__ */ A(
|
|
6291
6291
|
"svg",
|
|
6292
6292
|
{
|
|
6293
6293
|
width: "20",
|
|
@@ -6305,7 +6305,7 @@ const pr = {
|
|
|
6305
6305
|
/* @__PURE__ */ C("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
6306
6306
|
]
|
|
6307
6307
|
}
|
|
6308
|
-
),
|
|
6308
|
+
), wd = () => /* @__PURE__ */ C(
|
|
6309
6309
|
"svg",
|
|
6310
6310
|
{
|
|
6311
6311
|
width: "25",
|
|
@@ -6349,7 +6349,7 @@ const pr = {
|
|
|
6349
6349
|
/* @__PURE__ */ C("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
6350
6350
|
]
|
|
6351
6351
|
}
|
|
6352
|
-
),
|
|
6352
|
+
), Sd = () => /* @__PURE__ */ A(
|
|
6353
6353
|
"svg",
|
|
6354
6354
|
{
|
|
6355
6355
|
width: "25",
|
|
@@ -6367,14 +6367,18 @@ const pr = {
|
|
|
6367
6367
|
/* @__PURE__ */ C("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
6368
6368
|
]
|
|
6369
6369
|
}
|
|
6370
|
-
),
|
|
6370
|
+
), Vo = (e) => {
|
|
6371
|
+
if (!e) return "--:--";
|
|
6372
|
+
const t = new Date(e), n = t.getHours(), r = t.getMinutes(), o = n >= 12 ? "PM" : "AM";
|
|
6373
|
+
return `${n % 12 || 12}:${r.toString().padStart(2, "0")} ${o}`;
|
|
6374
|
+
}, gr = (e) => {
|
|
6371
6375
|
if (!e) return "--:--";
|
|
6372
6376
|
const t = e.split("T")[1], [n, r] = t.split(":"), o = Number(n), i = o >= 12 ? "PM" : "AM";
|
|
6373
6377
|
return `${o % 12 || 12}:${r} ${i}`;
|
|
6374
|
-
},
|
|
6378
|
+
}, Wt = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, qe = (e) => {
|
|
6375
6379
|
var t;
|
|
6376
6380
|
return e ? typeof e == "string" ? e.toLowerCase() === "completed" : ((t = e == null ? void 0 : e.code) == null ? void 0 : t.toLowerCase()) === "completed" : !1;
|
|
6377
|
-
},
|
|
6381
|
+
}, _d = (e) => {
|
|
6378
6382
|
const t = [];
|
|
6379
6383
|
return [...e].sort((r, o) => r.sequence_rank - o.sequence_rank).forEach((r) => {
|
|
6380
6384
|
const o = t[t.length - 1];
|
|
@@ -6384,26 +6388,26 @@ const pr = {
|
|
|
6384
6388
|
orders: [r]
|
|
6385
6389
|
});
|
|
6386
6390
|
}), t;
|
|
6387
|
-
},
|
|
6391
|
+
}, Ad = ({ order: e, pathPeriod: t, isFirst: n, isDone: r, renderOrderExtraData: o }) => {
|
|
6388
6392
|
var a, d, p, l, u, f;
|
|
6389
6393
|
const [i, s] = me(!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) ? `https://maps.google.com/?q=${e.customer.address.lat},${e.customer.address.long}` : "#";
|
|
6390
6394
|
return /* @__PURE__ */ A(
|
|
6391
6395
|
"div",
|
|
6392
6396
|
{
|
|
6393
6397
|
style: {
|
|
6394
|
-
...
|
|
6398
|
+
...w.orderBlock,
|
|
6395
6399
|
borderTop: n ? "none" : "1px solid #f3f4f6",
|
|
6396
6400
|
backgroundColor: r ? "#fafafa" : "transparent"
|
|
6397
6401
|
},
|
|
6398
6402
|
children: [
|
|
6399
|
-
/* @__PURE__ */ A("div", { style:
|
|
6400
|
-
/* @__PURE__ */ A("div", { style:
|
|
6401
|
-
/* @__PURE__ */ A("div", { style:
|
|
6403
|
+
/* @__PURE__ */ A("div", { style: w.orderHeader, children: [
|
|
6404
|
+
/* @__PURE__ */ A("div", { style: w.gridItem, children: [
|
|
6405
|
+
/* @__PURE__ */ A("div", { style: w.gridLabel, children: [
|
|
6402
6406
|
"ORDER",
|
|
6403
6407
|
" ",
|
|
6404
6408
|
r && /* @__PURE__ */ C("span", { style: { color: "#16a34a", marginLeft: "4px" }, children: "✓ DONE" })
|
|
6405
6409
|
] }),
|
|
6406
|
-
/* @__PURE__ */ A("div", { style:
|
|
6410
|
+
/* @__PURE__ */ A("div", { style: w.gridValue, children: [
|
|
6407
6411
|
"#",
|
|
6408
6412
|
e.order_id
|
|
6409
6413
|
] })
|
|
@@ -6412,58 +6416,58 @@ const pr = {
|
|
|
6412
6416
|
"button",
|
|
6413
6417
|
{
|
|
6414
6418
|
onClick: () => s(!i),
|
|
6415
|
-
style:
|
|
6416
|
-
children: i ? /* @__PURE__ */ C(
|
|
6419
|
+
style: w.expandButton,
|
|
6420
|
+
children: i ? /* @__PURE__ */ C(Sd, {}) : /* @__PURE__ */ C(Od, {})
|
|
6417
6421
|
}
|
|
6418
6422
|
)
|
|
6419
6423
|
] }),
|
|
6420
|
-
/* @__PURE__ */ A("div", { style:
|
|
6421
|
-
/* @__PURE__ */ A("div", { style:
|
|
6422
|
-
/* @__PURE__ */ C("div", { style:
|
|
6423
|
-
/* @__PURE__ */ A("div", { style:
|
|
6424
|
-
/* @__PURE__ */ C(
|
|
6424
|
+
/* @__PURE__ */ A("div", { style: w.detailsGrid, children: [
|
|
6425
|
+
/* @__PURE__ */ A("div", { style: w.gridItem, children: [
|
|
6426
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "LOCATION" }),
|
|
6427
|
+
/* @__PURE__ */ A("div", { style: w.gridValueWithIcon, children: [
|
|
6428
|
+
/* @__PURE__ */ C(Id, {}),
|
|
6425
6429
|
/* @__PURE__ */ C(
|
|
6426
6430
|
"a",
|
|
6427
6431
|
{
|
|
6428
6432
|
href: c,
|
|
6429
6433
|
target: "_blank",
|
|
6430
6434
|
rel: "noopener noreferrer",
|
|
6431
|
-
style:
|
|
6435
|
+
style: w.addressLink,
|
|
6432
6436
|
children: ((f = (u = e.customer) == null ? void 0 : u.address) == null ? void 0 : f.street_area) || "N/A"
|
|
6433
6437
|
}
|
|
6434
6438
|
)
|
|
6435
6439
|
] })
|
|
6436
6440
|
] }),
|
|
6437
|
-
/* @__PURE__ */ A("div", { style:
|
|
6438
|
-
/* @__PURE__ */ C("div", { style:
|
|
6439
|
-
/* @__PURE__ */ C("div", { style:
|
|
6441
|
+
/* @__PURE__ */ A("div", { style: w.gridItem, children: [
|
|
6442
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "PERIOD" }),
|
|
6443
|
+
/* @__PURE__ */ C("div", { style: w.gridValue, children: t })
|
|
6440
6444
|
] }),
|
|
6441
|
-
/* @__PURE__ */ A("div", { style:
|
|
6442
|
-
/* @__PURE__ */ C("div", { style:
|
|
6443
|
-
/* @__PURE__ */ A("div", { style:
|
|
6444
|
-
/* @__PURE__ */ C(
|
|
6445
|
+
/* @__PURE__ */ A("div", { style: w.gridItem, children: [
|
|
6446
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "TIME WINDOW" }),
|
|
6447
|
+
/* @__PURE__ */ A("div", { style: w.gridValueWithIcon, children: [
|
|
6448
|
+
/* @__PURE__ */ C(fr, {}),
|
|
6445
6449
|
" ",
|
|
6446
|
-
/* @__PURE__ */ A("span", { style:
|
|
6447
|
-
|
|
6450
|
+
/* @__PURE__ */ A("span", { style: w.direction, children: [
|
|
6451
|
+
gr(e.eta_start),
|
|
6448
6452
|
" - ",
|
|
6449
|
-
|
|
6453
|
+
gr(e.eta_end)
|
|
6450
6454
|
] })
|
|
6451
6455
|
] })
|
|
6452
6456
|
] }),
|
|
6453
|
-
e.completed_at && /* @__PURE__ */ A("div", { style:
|
|
6454
|
-
/* @__PURE__ */ C("div", { style:
|
|
6455
|
-
/* @__PURE__ */ A("div", { style:
|
|
6456
|
-
/* @__PURE__ */ C(
|
|
6457
|
+
e.completed_at && /* @__PURE__ */ A("div", { style: w.gridItem, children: [
|
|
6458
|
+
/* @__PURE__ */ C("div", { style: w.gridLabel, children: "COMPLETED AT" }),
|
|
6459
|
+
/* @__PURE__ */ A("div", { style: w.gridValueWithIcon, children: [
|
|
6460
|
+
/* @__PURE__ */ C(fr, {}),
|
|
6457
6461
|
" ",
|
|
6458
|
-
/* @__PURE__ */ C("span", { style:
|
|
6462
|
+
/* @__PURE__ */ C("span", { style: w.direction, children: Vo(e.completed_at) })
|
|
6459
6463
|
] })
|
|
6460
6464
|
] })
|
|
6461
6465
|
] }),
|
|
6462
|
-
i && o && /* @__PURE__ */ C("div", { style:
|
|
6466
|
+
i && o && /* @__PURE__ */ C("div", { style: w.extraDataContainer, children: o(e) })
|
|
6463
6467
|
]
|
|
6464
6468
|
}
|
|
6465
6469
|
);
|
|
6466
|
-
},
|
|
6470
|
+
}, Pd = ({
|
|
6467
6471
|
stopGroup: e,
|
|
6468
6472
|
index: t,
|
|
6469
6473
|
pathType: n,
|
|
@@ -6473,9 +6477,11 @@ const pr = {
|
|
|
6473
6477
|
renderStopActions: s,
|
|
6474
6478
|
renderOrderExtraData: c
|
|
6475
6479
|
}) => {
|
|
6476
|
-
const a = e.status ?
|
|
6480
|
+
const a = e.status ? qe(e.status) : e.orders.every((f) => qe(f.status)), [d, p] = me(
|
|
6481
|
+
c ? !a : !0
|
|
6482
|
+
), l = e.status ? Wt(e.status) : a ? "Completed" : "Pending", u = !o || i || a;
|
|
6477
6483
|
return /* @__PURE__ */ C(
|
|
6478
|
-
|
|
6484
|
+
Kl,
|
|
6479
6485
|
{
|
|
6480
6486
|
draggableId: e.stop_id.toString(),
|
|
6481
6487
|
index: t,
|
|
@@ -6487,26 +6493,26 @@ const pr = {
|
|
|
6487
6493
|
{
|
|
6488
6494
|
ref: f.innerRef,
|
|
6489
6495
|
...f.draggableProps,
|
|
6490
|
-
style: { ...
|
|
6496
|
+
style: { ...w.timelineItem, ...f.draggableProps.style },
|
|
6491
6497
|
children: [
|
|
6492
6498
|
/* @__PURE__ */ C(
|
|
6493
6499
|
"div",
|
|
6494
6500
|
{
|
|
6495
6501
|
style: {
|
|
6496
|
-
...
|
|
6497
|
-
...a ?
|
|
6502
|
+
...w.bubble,
|
|
6503
|
+
...a ? w.bubbleCompleted : w.bubblePending
|
|
6498
6504
|
},
|
|
6499
6505
|
children: t + 1
|
|
6500
6506
|
}
|
|
6501
6507
|
),
|
|
6502
|
-
/* @__PURE__ */ A("div", { style:
|
|
6503
|
-
/* @__PURE__ */ A("div", { style:
|
|
6508
|
+
/* @__PURE__ */ A("div", { style: w.card, children: [
|
|
6509
|
+
/* @__PURE__ */ A("div", { style: w.cardHeader, children: [
|
|
6504
6510
|
/* @__PURE__ */ A(
|
|
6505
6511
|
"div",
|
|
6506
6512
|
{
|
|
6507
6513
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
6508
6514
|
children: [
|
|
6509
|
-
/* @__PURE__ */ A("span", { style:
|
|
6515
|
+
/* @__PURE__ */ A("span", { style: w.title, children: [
|
|
6510
6516
|
n,
|
|
6511
6517
|
" #",
|
|
6512
6518
|
e.sequence_rank
|
|
@@ -6514,13 +6520,13 @@ const pr = {
|
|
|
6514
6520
|
/* @__PURE__ */ C(
|
|
6515
6521
|
"span",
|
|
6516
6522
|
{
|
|
6517
|
-
style: a ?
|
|
6523
|
+
style: a ? w.badgeCompleted : w.badgePending,
|
|
6518
6524
|
children: l
|
|
6519
6525
|
}
|
|
6520
6526
|
),
|
|
6521
6527
|
e.completed_at && /* @__PURE__ */ A("span", { style: { fontSize: "12px", color: "#6b7280" }, children: [
|
|
6522
6528
|
"(",
|
|
6523
|
-
|
|
6529
|
+
Vo(e.completed_at),
|
|
6524
6530
|
")"
|
|
6525
6531
|
] })
|
|
6526
6532
|
]
|
|
@@ -6535,34 +6541,33 @@ const pr = {
|
|
|
6535
6541
|
"button",
|
|
6536
6542
|
{
|
|
6537
6543
|
onClick: () => {
|
|
6538
|
-
a && p((m) => !m);
|
|
6544
|
+
a && c && p((m) => !m);
|
|
6539
6545
|
},
|
|
6540
|
-
|
|
6541
|
-
children: a && /* @__PURE__ */ C(Cd, {})
|
|
6546
|
+
children: a && /* @__PURE__ */ C(wd, {})
|
|
6542
6547
|
}
|
|
6543
6548
|
),
|
|
6544
|
-
!u && /* @__PURE__ */ C("div", { ...f.dragHandleProps, children: /* @__PURE__ */ C(
|
|
6549
|
+
!u && /* @__PURE__ */ C("div", { ...f.dragHandleProps, children: /* @__PURE__ */ C(Cd, {}) })
|
|
6545
6550
|
]
|
|
6546
6551
|
}
|
|
6547
6552
|
)
|
|
6548
6553
|
] }),
|
|
6549
|
-
d && /* @__PURE__ */ A(
|
|
6550
|
-
/* @__PURE__ */ A("div", { style:
|
|
6554
|
+
d && /* @__PURE__ */ A(Mo, { children: [
|
|
6555
|
+
/* @__PURE__ */ A("div", { style: w.customerName, children: [
|
|
6551
6556
|
"Customer: ",
|
|
6552
6557
|
(b = (h = e.orders[0]) == null ? void 0 : h.customer) == null ? void 0 : b.name
|
|
6553
6558
|
] }),
|
|
6554
|
-
/* @__PURE__ */ C("div", { style:
|
|
6555
|
-
|
|
6559
|
+
/* @__PURE__ */ C("div", { style: w.ordersList, children: e.orders.map((m, y) => /* @__PURE__ */ C(
|
|
6560
|
+
Ad,
|
|
6556
6561
|
{
|
|
6557
6562
|
order: m,
|
|
6558
6563
|
pathPeriod: r,
|
|
6559
6564
|
isFirst: y === 0,
|
|
6560
|
-
isDone:
|
|
6565
|
+
isDone: qe(m.status),
|
|
6561
6566
|
renderOrderExtraData: c
|
|
6562
6567
|
},
|
|
6563
6568
|
m.id
|
|
6564
6569
|
)) }),
|
|
6565
|
-
s && /* @__PURE__ */ C("div", { style:
|
|
6570
|
+
s && /* @__PURE__ */ C("div", { style: w.actionsSlot, children: s(e) })
|
|
6566
6571
|
] })
|
|
6567
6572
|
] })
|
|
6568
6573
|
]
|
|
@@ -6571,7 +6576,7 @@ const pr = {
|
|
|
6571
6576
|
}
|
|
6572
6577
|
}
|
|
6573
6578
|
);
|
|
6574
|
-
},
|
|
6579
|
+
}, Ld = ({
|
|
6575
6580
|
path: e,
|
|
6576
6581
|
onReorder: t,
|
|
6577
6582
|
renderStopActions: n,
|
|
@@ -6591,7 +6596,7 @@ const pr = {
|
|
|
6591
6596
|
orders: (e.path_orders || []).filter((l) => l.stop_id === p.id).sort((l, u) => l.sequence_rank - u.sequence_rank)
|
|
6592
6597
|
})).sort((p, l) => p.sequence_rank - l.sequence_rank);
|
|
6593
6598
|
s(d);
|
|
6594
|
-
} else e.path_orders && s(
|
|
6599
|
+
} else e.path_orders && s(_d(e.path_orders));
|
|
6595
6600
|
}, [e]);
|
|
6596
6601
|
const c = (d) => {
|
|
6597
6602
|
if (!d.destination) return;
|
|
@@ -6602,15 +6607,15 @@ const pr = {
|
|
|
6602
6607
|
);
|
|
6603
6608
|
};
|
|
6604
6609
|
if (!e || !i.length) return /* @__PURE__ */ C("div", { children: "No Path Data" });
|
|
6605
|
-
const a =
|
|
6606
|
-
return /* @__PURE__ */ C("div", { style:
|
|
6610
|
+
const a = qe(e.status);
|
|
6611
|
+
return /* @__PURE__ */ C("div", { style: w.container, children: /* @__PURE__ */ C(_l, { onDragEnd: c, children: /* @__PURE__ */ C(xd, { droppableId: "path-list", children: (d) => /* @__PURE__ */ A(
|
|
6607
6612
|
"div",
|
|
6608
6613
|
{
|
|
6609
6614
|
ref: d.innerRef,
|
|
6610
6615
|
...d.droppableProps,
|
|
6611
|
-
style:
|
|
6616
|
+
style: w.timelineWrapper,
|
|
6612
6617
|
children: [
|
|
6613
|
-
/* @__PURE__ */ C("div", { style:
|
|
6618
|
+
/* @__PURE__ */ C("div", { style: w.verticalLine }),
|
|
6614
6619
|
/* @__PURE__ */ C(
|
|
6615
6620
|
"div",
|
|
6616
6621
|
{
|
|
@@ -6620,12 +6625,12 @@ const pr = {
|
|
|
6620
6625
|
gap: "24px"
|
|
6621
6626
|
},
|
|
6622
6627
|
children: i.map((p, l) => /* @__PURE__ */ C(
|
|
6623
|
-
|
|
6628
|
+
Pd,
|
|
6624
6629
|
{
|
|
6625
6630
|
stopGroup: p,
|
|
6626
6631
|
index: l,
|
|
6627
|
-
pathType:
|
|
6628
|
-
pathPeriod:
|
|
6632
|
+
pathType: Wt(e.type),
|
|
6633
|
+
pathPeriod: Wt(e.period),
|
|
6629
6634
|
canEditPath: o,
|
|
6630
6635
|
isPathCompleted: a,
|
|
6631
6636
|
renderStopActions: n,
|
|
@@ -6639,7 +6644,7 @@ const pr = {
|
|
|
6639
6644
|
]
|
|
6640
6645
|
}
|
|
6641
6646
|
) }) }) });
|
|
6642
|
-
},
|
|
6647
|
+
}, w = {
|
|
6643
6648
|
container: { fontFamily: "sans-serif", maxWidth: "800px", margin: "0 auto" },
|
|
6644
6649
|
timelineWrapper: { position: "relative", padding: "20px 0" },
|
|
6645
6650
|
verticalLine: {
|
|
@@ -6760,5 +6765,5 @@ const pr = {
|
|
|
6760
6765
|
actionsSlot: { marginTop: "16px" }
|
|
6761
6766
|
};
|
|
6762
6767
|
export {
|
|
6763
|
-
|
|
6768
|
+
Ld as LogisticsDashboard
|
|
6764
6769
|
};
|