@wilow_app/design-system 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +446 -390
- package/dist/index.umd.js +22 -22
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as O, jsxs as
|
|
1
|
+
import { jsx as O, jsxs as V } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import
|
|
3
|
+
import L, { useRef as B, useEffect as te, useContext as gr, useState as Te, useLayoutEffect as Vo } from "react";
|
|
4
4
|
import Lo, { flushSync as mr } from "react-dom";
|
|
5
5
|
function W(e) {
|
|
6
6
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
@@ -117,7 +117,7 @@ function hr(e, t, n) {
|
|
|
117
117
|
v();
|
|
118
118
|
}), h;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function f(h) {
|
|
121
121
|
if (typeof h != "function")
|
|
122
122
|
throw new Error(process.env.NODE_ENV === "production" ? W(10) : `Expected the nextReducer to be a function. Instead, received: '${ne(h)}`);
|
|
123
123
|
r = h, u({
|
|
@@ -157,7 +157,7 @@ function hr(e, t, n) {
|
|
|
157
157
|
dispatch: u,
|
|
158
158
|
subscribe: l,
|
|
159
159
|
getState: p,
|
|
160
|
-
replaceReducer:
|
|
160
|
+
replaceReducer: f,
|
|
161
161
|
[Dn]: m
|
|
162
162
|
};
|
|
163
163
|
}
|
|
@@ -211,18 +211,18 @@ var Cn;
|
|
|
211
211
|
function zo() {
|
|
212
212
|
if (Cn) return pt;
|
|
213
213
|
Cn = 1;
|
|
214
|
-
var e =
|
|
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
219
|
return pt.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
220
|
+
var f = o(null);
|
|
221
|
+
if (f.current === null) {
|
|
222
222
|
var m = { hasValue: !1, value: null };
|
|
223
|
-
|
|
224
|
-
} else m =
|
|
225
|
-
|
|
223
|
+
f.current = m;
|
|
224
|
+
} else m = f.current;
|
|
225
|
+
f = s(
|
|
226
226
|
function() {
|
|
227
227
|
function h(E) {
|
|
228
228
|
if (!y) {
|
|
@@ -234,8 +234,8 @@ function zo() {
|
|
|
234
234
|
return I = E;
|
|
235
235
|
}
|
|
236
236
|
if (x = I, n(v, E)) return x;
|
|
237
|
-
var
|
|
238
|
-
return u !== void 0 && u(x,
|
|
237
|
+
var A = l(E);
|
|
238
|
+
return u !== void 0 && u(x, A) ? (v = E, x) : (v = E, I = A);
|
|
239
239
|
}
|
|
240
240
|
var y = !1, v, I, N = p === void 0 ? null : p;
|
|
241
241
|
return [
|
|
@@ -249,7 +249,7 @@ function zo() {
|
|
|
249
249
|
},
|
|
250
250
|
[d, p, l, u]
|
|
251
251
|
);
|
|
252
|
-
var b = r(a,
|
|
252
|
+
var b = r(a, f[0], f[1]);
|
|
253
253
|
return i(
|
|
254
254
|
function() {
|
|
255
255
|
m.hasValue = !0, m.value = b;
|
|
@@ -275,14 +275,14 @@ function jo() {
|
|
|
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
|
-
var t =
|
|
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
|
ft.useSyncExternalStoreWithSelector = function(a, d, p, l, u) {
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
280
|
+
var f = o(null);
|
|
281
|
+
if (f.current === null) {
|
|
282
282
|
var m = { hasValue: !1, value: null };
|
|
283
|
-
|
|
284
|
-
} else m =
|
|
285
|
-
|
|
283
|
+
f.current = m;
|
|
284
|
+
} else m = f.current;
|
|
285
|
+
f = s(
|
|
286
286
|
function() {
|
|
287
287
|
function h(E) {
|
|
288
288
|
if (!y) {
|
|
@@ -295,8 +295,8 @@ function jo() {
|
|
|
295
295
|
}
|
|
296
296
|
if (x = I, n(v, E))
|
|
297
297
|
return x;
|
|
298
|
-
var
|
|
299
|
-
return u !== void 0 && u(x,
|
|
298
|
+
var A = l(E);
|
|
299
|
+
return u !== void 0 && u(x, A) ? (v = E, x) : (v = E, I = A);
|
|
300
300
|
}
|
|
301
301
|
var y = !1, v, I, N = p === void 0 ? null : p;
|
|
302
302
|
return [
|
|
@@ -310,7 +310,7 @@ function jo() {
|
|
|
310
310
|
},
|
|
311
311
|
[d, p, l, u]
|
|
312
312
|
);
|
|
313
|
-
var b = r(a,
|
|
313
|
+
var b = r(a, f[0], f[1]);
|
|
314
314
|
return i(
|
|
315
315
|
function() {
|
|
316
316
|
m.hasValue = !0, m.value = b;
|
|
@@ -390,7 +390,7 @@ function ri(e, t, n, r, {
|
|
|
390
390
|
areStatePropsEqual: s
|
|
391
391
|
}) {
|
|
392
392
|
let c = !1, a, d, p, l, u;
|
|
393
|
-
function
|
|
393
|
+
function f(v, I) {
|
|
394
394
|
return a = v, d = I, p = e(a, d), l = t(r, d), u = n(p, l, d), c = !0, u;
|
|
395
395
|
}
|
|
396
396
|
function m() {
|
|
@@ -413,7 +413,7 @@ function ri(e, t, n, r, {
|
|
|
413
413
|
return a = v, d = I, N && E ? m() : N ? b() : E ? h() : u;
|
|
414
414
|
}
|
|
415
415
|
return function(I, N) {
|
|
416
|
-
return c ? y(I, N) :
|
|
416
|
+
return c ? y(I, N) : f(I, N);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
function oi(e, {
|
|
@@ -581,7 +581,7 @@ function wr(e, t) {
|
|
|
581
581
|
function u() {
|
|
582
582
|
i || (i = !0, p());
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function f() {
|
|
585
585
|
i && (i = !1, l());
|
|
586
586
|
}
|
|
587
587
|
const m = {
|
|
@@ -590,7 +590,7 @@ function wr(e, t) {
|
|
|
590
590
|
handleChangeWrapper: a,
|
|
591
591
|
isSubscribed: d,
|
|
592
592
|
trySubscribe: u,
|
|
593
|
-
tryUnsubscribe:
|
|
593
|
+
tryUnsubscribe: f,
|
|
594
594
|
getListeners: () => r
|
|
595
595
|
};
|
|
596
596
|
return m;
|
|
@@ -702,7 +702,7 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
702
702
|
if (!e) return () => {
|
|
703
703
|
};
|
|
704
704
|
let l = !1, u = null;
|
|
705
|
-
const
|
|
705
|
+
const f = () => {
|
|
706
706
|
if (l || !c.current)
|
|
707
707
|
return;
|
|
708
708
|
const b = t.getState();
|
|
@@ -717,7 +717,7 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
|
|
|
717
717
|
}
|
|
718
718
|
y || (u = null), h === i.current ? s.current || d() : (i.current = h, a.current = h, s.current = !0, p());
|
|
719
719
|
};
|
|
720
|
-
return n.onStateChange =
|
|
720
|
+
return n.onStateChange = f, n.trySubscribe(), f(), () => {
|
|
721
721
|
if (l = !0, n.tryUnsubscribe(), n.onStateChange = null, u)
|
|
722
722
|
throw u;
|
|
723
723
|
};
|
|
@@ -742,7 +742,7 @@ function Bi(e, t, n, {
|
|
|
742
742
|
process.env.NODE_ENV !== "production" && r !== void 0 && !Bn && (Bn = !0, Ht(
|
|
743
743
|
'The `pure` option has been removed. `connect` is now always a "pure/memoized" component'
|
|
744
744
|
));
|
|
745
|
-
const p = d, l = ai(e), u = ci(t),
|
|
745
|
+
const p = d, l = ai(e), u = ci(t), f = ui(n), m = !!e;
|
|
746
746
|
return (h) => {
|
|
747
747
|
if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ Qo(h))
|
|
748
748
|
throw new Error(
|
|
@@ -758,17 +758,17 @@ function Bi(e, t, n, {
|
|
|
758
758
|
// @ts-ignore
|
|
759
759
|
initMapStateToProps: l,
|
|
760
760
|
initMapDispatchToProps: u,
|
|
761
|
-
initMergeProps:
|
|
761
|
+
initMergeProps: f,
|
|
762
762
|
areStatesEqual: o,
|
|
763
763
|
areStatePropsEqual: s,
|
|
764
764
|
areOwnPropsEqual: i,
|
|
765
765
|
areMergedPropsEqual: c
|
|
766
766
|
};
|
|
767
|
-
function N(
|
|
767
|
+
function N(A) {
|
|
768
768
|
const [P, U, T] = w.useMemo(() => {
|
|
769
|
-
const { reactReduxForwardedRef: z, ...ue } =
|
|
770
|
-
return [
|
|
771
|
-
}, [
|
|
769
|
+
const { reactReduxForwardedRef: z, ...ue } = A;
|
|
770
|
+
return [A.context, z, ue];
|
|
771
|
+
}, [A]), H = w.useMemo(() => {
|
|
772
772
|
let z = p;
|
|
773
773
|
if (P != null && P.Consumer && process.env.NODE_ENV !== "production") {
|
|
774
774
|
if (!/* @__PURE__ */ ei(
|
|
@@ -781,12 +781,12 @@ function Bi(e, t, n, {
|
|
|
781
781
|
z = P;
|
|
782
782
|
}
|
|
783
783
|
return z;
|
|
784
|
-
}, [P, p]), M = w.useContext(H), Q = !!
|
|
784
|
+
}, [P, p]), M = w.useContext(H), Q = !!A.store && !!A.store.getState && !!A.store.dispatch, de = !!M && !!M.store;
|
|
785
785
|
if (process.env.NODE_ENV !== "production" && !Q && !de)
|
|
786
786
|
throw new Error(
|
|
787
787
|
`Could not find "store" in the context of "${v}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${v} in connect options.`
|
|
788
788
|
);
|
|
789
|
-
const ee = Q ?
|
|
789
|
+
const ee = Q ? A.store : M.store, Fe = de ? M.getServerState : ee.getState, st = w.useMemo(() => oi(ee.dispatch, I), [ee]), [be, bn] = w.useMemo(() => {
|
|
790
790
|
if (!m) return Si;
|
|
791
791
|
const z = wr(
|
|
792
792
|
ee,
|
|
@@ -1062,10 +1062,10 @@ class Oe extends Error {
|
|
|
1062
1062
|
Oe.prototype.toString = function() {
|
|
1063
1063
|
return this.message;
|
|
1064
1064
|
};
|
|
1065
|
-
function
|
|
1065
|
+
function g(e, t) {
|
|
1066
1066
|
throw qi ? new Oe($n) : new Oe(`${$n}: ${t || ""}`);
|
|
1067
1067
|
}
|
|
1068
|
-
class Yi extends
|
|
1068
|
+
class Yi 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();
|
|
@@ -1255,7 +1255,7 @@ var pe = ({
|
|
|
1255
1255
|
active: s
|
|
1256
1256
|
};
|
|
1257
1257
|
}, Yt = (e, t) => {
|
|
1258
|
-
e.frame || (process.env.NODE_ENV,
|
|
1258
|
+
e.frame || (process.env.NODE_ENV, g());
|
|
1259
1259
|
const n = e.frame, r = j(t, n.scroll.initial), o = me(r), i = {
|
|
1260
1260
|
...n,
|
|
1261
1261
|
scroll: {
|
|
@@ -1312,11 +1312,11 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
|
|
|
1312
1312
|
}) => {
|
|
1313
1313
|
if (!n.isCombineEnabled || !Xt(o))
|
|
1314
1314
|
return null;
|
|
1315
|
-
function s(
|
|
1315
|
+
function s(f) {
|
|
1316
1316
|
const m = {
|
|
1317
1317
|
type: "COMBINE",
|
|
1318
1318
|
combine: {
|
|
1319
|
-
draggableId:
|
|
1319
|
+
draggableId: f,
|
|
1320
1320
|
droppableId: n.descriptor.id
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
@@ -1332,11 +1332,11 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
|
|
|
1332
1332
|
if (!a) {
|
|
1333
1333
|
if (!d.length)
|
|
1334
1334
|
return null;
|
|
1335
|
-
const
|
|
1336
|
-
return s(
|
|
1335
|
+
const f = d[d.length - 1];
|
|
1336
|
+
return s(f.descriptor.id);
|
|
1337
1337
|
}
|
|
1338
|
-
const p = d.findIndex((
|
|
1339
|
-
p === -1 && (process.env.NODE_ENV !== "production" ?
|
|
1338
|
+
const p = d.findIndex((f) => f.descriptor.id === a);
|
|
1339
|
+
p === -1 && (process.env.NODE_ENV !== "production" ? g(!1, "Could not find displaced item in set") : g());
|
|
1340
1340
|
const l = p - 1;
|
|
1341
1341
|
if (l < 0)
|
|
1342
1342
|
return null;
|
|
@@ -1456,11 +1456,11 @@ function Se({
|
|
|
1456
1456
|
withDroppableDisplacement: !0
|
|
1457
1457
|
}))
|
|
1458
1458
|
return c.invisible[a.descriptor.id] = !0, c;
|
|
1459
|
-
const u = ms(p, i, o),
|
|
1459
|
+
const u = ms(p, i, o), f = {
|
|
1460
1460
|
draggableId: p,
|
|
1461
1461
|
shouldAnimate: u
|
|
1462
1462
|
};
|
|
1463
|
-
return c.visible[p] =
|
|
1463
|
+
return c.visible[p] = f, c;
|
|
1464
1464
|
}, {
|
|
1465
1465
|
all: [],
|
|
1466
1466
|
visible: {},
|
|
@@ -1576,7 +1576,7 @@ var vs = ({
|
|
|
1576
1576
|
afterCritical: a
|
|
1577
1577
|
}) => {
|
|
1578
1578
|
const d = s.at;
|
|
1579
|
-
if (d || (process.env.NODE_ENV !== "production" ?
|
|
1579
|
+
if (d || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot move in direction without previous impact location") : g()), d.type === "REORDER") {
|
|
1580
1580
|
const l = ys({
|
|
1581
1581
|
isMovingForward: e,
|
|
1582
1582
|
isInHomeList: t,
|
|
@@ -1624,7 +1624,7 @@ var vs = ({
|
|
|
1624
1624
|
draggables: n
|
|
1625
1625
|
}) => {
|
|
1626
1626
|
const r = tt(t);
|
|
1627
|
-
r || (process.env.NODE_ENV,
|
|
1627
|
+
r || (process.env.NODE_ENV, g());
|
|
1628
1628
|
const o = r.draggableId, i = n[o].page.borderBox.center, s = Ds({
|
|
1629
1629
|
displaced: t.displaced,
|
|
1630
1630
|
afterCritical: e,
|
|
@@ -1672,10 +1672,10 @@ var Os = ({
|
|
|
1672
1672
|
moveRelativeTo: u.page,
|
|
1673
1673
|
isMoving: s
|
|
1674
1674
|
});
|
|
1675
|
-
const
|
|
1675
|
+
const f = qe(u.page, d.point);
|
|
1676
1676
|
return Hn({
|
|
1677
1677
|
axis: c,
|
|
1678
|
-
moveRelativeTo:
|
|
1678
|
+
moveRelativeTo: f,
|
|
1679
1679
|
isMoving: s
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
@@ -1883,7 +1883,7 @@ var Ss = ({
|
|
|
1883
1883
|
};
|
|
1884
1884
|
const k = (e) => {
|
|
1885
1885
|
const t = e.subject.active;
|
|
1886
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
1886
|
+
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot get clipped area from droppable") : g()), t;
|
|
1887
1887
|
};
|
|
1888
1888
|
var Ps = ({
|
|
1889
1889
|
isMovingForward: e,
|
|
@@ -1902,8 +1902,8 @@ var Ps = ({
|
|
|
1902
1902
|
const l = k(p), u = J(l[s.start], l[s.end]);
|
|
1903
1903
|
return c(l[s.start]) || c(l[s.end]) || u(i[s.start]) || u(i[s.end]);
|
|
1904
1904
|
}).sort((p, l) => {
|
|
1905
|
-
const u = k(p)[s.crossAxisStart],
|
|
1906
|
-
return e ? u -
|
|
1905
|
+
const u = k(p)[s.crossAxisStart], f = k(l)[s.crossAxisStart];
|
|
1906
|
+
return e ? u - f : f - u;
|
|
1907
1907
|
}).filter((p, l, u) => k(p)[s.crossAxisStart] === k(u[0])[s.crossAxisStart]);
|
|
1908
1908
|
if (!a.length)
|
|
1909
1909
|
return null;
|
|
@@ -1911,8 +1911,8 @@ var Ps = ({
|
|
|
1911
1911
|
return a[0];
|
|
1912
1912
|
const d = a.filter((p) => J(k(p)[s.start], k(p)[s.end])(t[s.line]));
|
|
1913
1913
|
return d.length === 1 ? d[0] : d.length > 1 ? d.sort((p, l) => k(p)[s.start] - k(l)[s.start])[0] : a.sort((p, l) => {
|
|
1914
|
-
const u = Fn(t, kn(k(p))),
|
|
1915
|
-
return u !==
|
|
1914
|
+
const u = Fn(t, kn(k(p))), f = Fn(t, kn(k(l)));
|
|
1915
|
+
return u !== f ? u - f : k(p)[s.start] - k(l)[s.start];
|
|
1916
1916
|
})[0];
|
|
1917
1917
|
};
|
|
1918
1918
|
const jn = (e, t) => {
|
|
@@ -1957,7 +1957,7 @@ const Bs = (e, t, n) => {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
}), Yr = (e, t, n) => {
|
|
1959
1959
|
const r = e.frame;
|
|
1960
|
-
he(t, e) && (process.env.NODE_ENV !== "production" ?
|
|
1960
|
+
he(t, e) && (process.env.NODE_ENV !== "production" ? 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
1961
|
const o = Ve(e.axis, t.displaceBy).point, i = Bs(e, o, n), s = {
|
|
1962
1962
|
placeholderSize: o,
|
|
1963
1963
|
increasedBy: i,
|
|
@@ -1988,7 +1988,7 @@ const Bs = (e, t, n) => {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
}, Vs = (e) => {
|
|
1990
1990
|
const t = e.subject.withPlaceholder;
|
|
1991
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
1991
|
+
t || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot remove placeholder form subject when there was none") : g());
|
|
1992
1992
|
const n = e.frame;
|
|
1993
1993
|
if (!n) {
|
|
1994
1994
|
const s = pe({
|
|
@@ -2003,7 +2003,7 @@ const Bs = (e, t, n) => {
|
|
|
2003
2003
|
};
|
|
2004
2004
|
}
|
|
2005
2005
|
const r = t.oldFrameMaxScroll;
|
|
2006
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
2006
|
+
r || (process.env.NODE_ENV !== "production" ? g(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : g());
|
|
2007
2007
|
const o = qr(n, r), i = pe({
|
|
2008
2008
|
page: e.subject.page,
|
|
2009
2009
|
axis: e.axis,
|
|
@@ -2045,10 +2045,10 @@ var Ls = ({
|
|
|
2045
2045
|
droppable: i,
|
|
2046
2046
|
draggables: o,
|
|
2047
2047
|
afterCritical: c
|
|
2048
|
-
}),
|
|
2048
|
+
}), f = he(r, i) ? i : Yr(i, r, o);
|
|
2049
2049
|
return jr({
|
|
2050
2050
|
draggable: r,
|
|
2051
|
-
destination:
|
|
2051
|
+
destination: f,
|
|
2052
2052
|
newPageBorderBoxCenter: u,
|
|
2053
2053
|
viewport: s.frame,
|
|
2054
2054
|
withDroppableDisplacement: !1,
|
|
@@ -2236,7 +2236,7 @@ var zs = ({
|
|
|
2236
2236
|
viewport: i,
|
|
2237
2237
|
afterCritical: s
|
|
2238
2238
|
}) => {
|
|
2239
|
-
const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end],
|
|
2239
|
+
const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], f = nt(t, r).find((b) => {
|
|
2240
2240
|
const h = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(h, s), I = Jr({
|
|
2241
2241
|
displaced: o,
|
|
2242
2242
|
id: h
|
|
@@ -2244,7 +2244,7 @@ var zs = ({
|
|
|
2244
2244
|
return v ? I ? l <= y : p < y - d : I ? l <= y + d : p < y;
|
|
2245
2245
|
}) || null, m = Hs({
|
|
2246
2246
|
draggable: t,
|
|
2247
|
-
closest:
|
|
2247
|
+
closest: f,
|
|
2248
2248
|
inHomeList: he(t, n)
|
|
2249
2249
|
});
|
|
2250
2250
|
return Je({
|
|
@@ -2383,16 +2383,16 @@ var Xs = ({
|
|
|
2383
2383
|
viewport: s,
|
|
2384
2384
|
current: u
|
|
2385
2385
|
};
|
|
2386
|
-
const
|
|
2386
|
+
const f = c.draggables[e.critical.draggable.id], m = o || Zr({
|
|
2387
2387
|
pageOffset: l.offset,
|
|
2388
|
-
draggable:
|
|
2388
|
+
draggable: f,
|
|
2389
2389
|
draggables: c.draggables,
|
|
2390
2390
|
droppables: c.droppables,
|
|
2391
2391
|
previousImpact: e.impact,
|
|
2392
2392
|
viewport: s,
|
|
2393
2393
|
afterCritical: e.afterCritical
|
|
2394
2394
|
}), b = Xs({
|
|
2395
|
-
draggable:
|
|
2395
|
+
draggable: f,
|
|
2396
2396
|
impact: m,
|
|
2397
2397
|
previousImpact: e.impact,
|
|
2398
2398
|
draggables: c.draggables,
|
|
@@ -2458,12 +2458,12 @@ var Qr = ({
|
|
|
2458
2458
|
dimensions: t,
|
|
2459
2459
|
viewport: n
|
|
2460
2460
|
}) => {
|
|
2461
|
-
e.movementMode !== "SNAP" && (process.env.NODE_ENV,
|
|
2461
|
+
e.movementMode !== "SNAP" && (process.env.NODE_ENV, g());
|
|
2462
2462
|
const r = e.impact, o = n || e.viewport, i = t || e.dimensions, {
|
|
2463
2463
|
draggables: s,
|
|
2464
2464
|
droppables: c
|
|
2465
2465
|
} = i, a = s[e.critical.draggable.id], d = q(r);
|
|
2466
|
-
d || (process.env.NODE_ENV !== "production" ?
|
|
2466
|
+
d || (process.env.NODE_ENV !== "production" ? g(!1, "Must be over a destination in SNAP movement mode") : g());
|
|
2467
2467
|
const p = c[d], l = Qr({
|
|
2468
2468
|
impact: r,
|
|
2469
2469
|
viewport: o,
|
|
@@ -2494,8 +2494,8 @@ var Qr = ({
|
|
|
2494
2494
|
viewport: r
|
|
2495
2495
|
}) => {
|
|
2496
2496
|
const o = Ve(t.axis, e.displaceBy), i = le(t.descriptor.id, n), s = i.indexOf(e);
|
|
2497
|
-
s === -1 && (process.env.NODE_ENV !== "production" ?
|
|
2498
|
-
const c = i.slice(s + 1), a = c.reduce((u,
|
|
2497
|
+
s === -1 && (process.env.NODE_ENV !== "production" ? g(!1, "Expected draggable to be inside home list") : g());
|
|
2498
|
+
const c = i.slice(s + 1), a = c.reduce((u, f) => (u[f.descriptor.id] = !0, u), {}), d = {
|
|
2499
2499
|
inVirtualList: t.descriptor.mode === "virtual",
|
|
2500
2500
|
displacedBy: o,
|
|
2501
2501
|
effected: a
|
|
@@ -2544,7 +2544,7 @@ var Qs = ({
|
|
|
2544
2544
|
};
|
|
2545
2545
|
}, ec = (e) => {
|
|
2546
2546
|
const t = e.frame;
|
|
2547
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
2547
|
+
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Expected Droppable to have a frame") : g()), t;
|
|
2548
2548
|
}, tc = ({
|
|
2549
2549
|
additions: e,
|
|
2550
2550
|
updatedDroppables: t,
|
|
@@ -2592,12 +2592,12 @@ var Qs = ({
|
|
|
2592
2592
|
home: p,
|
|
2593
2593
|
draggables: i,
|
|
2594
2594
|
viewport: e.viewport
|
|
2595
|
-
}),
|
|
2595
|
+
}), f = a && a.isCombineEnabled ? e.impact : l, m = Zr({
|
|
2596
2596
|
pageOffset: e.current.page.offset,
|
|
2597
2597
|
draggable: s.draggables[e.critical.draggable.id],
|
|
2598
2598
|
draggables: s.draggables,
|
|
2599
2599
|
droppables: s.droppables,
|
|
2600
|
-
previousImpact:
|
|
2600
|
+
previousImpact: f,
|
|
2601
2601
|
viewport: e.viewport,
|
|
2602
2602
|
afterCritical: u
|
|
2603
2603
|
});
|
|
@@ -2646,7 +2646,7 @@ var rc = (e = qn, t) => {
|
|
|
2646
2646
|
shouldFlush: !0
|
|
2647
2647
|
};
|
|
2648
2648
|
if (t.type === "INITIAL_PUBLISH") {
|
|
2649
|
-
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
2649
|
+
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "INITIAL_PUBLISH must come after a IDLE phase") : g());
|
|
2650
2650
|
const {
|
|
2651
2651
|
critical: n,
|
|
2652
2652
|
clientSelection: r,
|
|
@@ -2666,7 +2666,7 @@ var rc = (e = qn, t) => {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
}, l = et(i.droppables).every((b) => !b.isFixedOnPage), {
|
|
2668
2668
|
impact: u,
|
|
2669
|
-
afterCritical:
|
|
2669
|
+
afterCritical: f
|
|
2670
2670
|
} = no({
|
|
2671
2671
|
draggable: c,
|
|
2672
2672
|
home: a,
|
|
@@ -2683,7 +2683,7 @@ var rc = (e = qn, t) => {
|
|
|
2683
2683
|
current: p,
|
|
2684
2684
|
isWindowScrollAllowed: l,
|
|
2685
2685
|
impact: u,
|
|
2686
|
-
afterCritical:
|
|
2686
|
+
afterCritical: f,
|
|
2687
2687
|
onLiftImpact: u,
|
|
2688
2688
|
viewport: o,
|
|
2689
2689
|
scrollJumpRequest: null,
|
|
@@ -2691,19 +2691,19 @@ var rc = (e = qn, t) => {
|
|
|
2691
2691
|
};
|
|
2692
2692
|
}
|
|
2693
2693
|
if (t.type === "COLLECTION_STARTING")
|
|
2694
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" ? e : (e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
2694
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" ? e : (e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? g(!1, `Collection cannot start from phase ${e.phase}`) : g()), {
|
|
2695
2695
|
...e,
|
|
2696
2696
|
phase: "COLLECTING"
|
|
2697
2697
|
});
|
|
2698
2698
|
if (t.type === "PUBLISH_WHILE_DRAGGING")
|
|
2699
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
2699
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? g(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : g()), nc({
|
|
2700
2700
|
state: e,
|
|
2701
2701
|
published: t.payload
|
|
2702
2702
|
});
|
|
2703
2703
|
if (t.type === "MOVE") {
|
|
2704
2704
|
if (e.phase === "DROP_PENDING")
|
|
2705
2705
|
return e;
|
|
2706
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2706
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? g(!1, `${t.type} not permitted in phase ${e.phase}`) : g());
|
|
2707
2707
|
const {
|
|
2708
2708
|
client: n
|
|
2709
2709
|
} = t.payload;
|
|
@@ -2716,7 +2716,7 @@ var rc = (e = qn, t) => {
|
|
|
2716
2716
|
if (t.type === "UPDATE_DROPPABLE_SCROLL") {
|
|
2717
2717
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
2718
2718
|
return Dt(e);
|
|
2719
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
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,
|
|
2722
2722
|
newScroll: r
|
|
@@ -2729,13 +2729,13 @@ var rc = (e = qn, t) => {
|
|
|
2729
2729
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
2730
2730
|
if (e.phase === "DROP_PENDING")
|
|
2731
2731
|
return e;
|
|
2732
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2732
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? g(!1, `Attempting to move in an unsupported phase ${e.phase}`) : g());
|
|
2733
2733
|
const {
|
|
2734
2734
|
id: n,
|
|
2735
2735
|
isEnabled: r
|
|
2736
2736
|
} = t.payload, o = e.dimensions.droppables[n];
|
|
2737
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
2738
|
-
but it is already ${String(o.isEnabled)}`) :
|
|
2737
|
+
o || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot find Droppable[id: ${n}] to toggle its enabled state`) : g()), o.isEnabled === r && (process.env.NODE_ENV !== "production" ? g(!1, `Trying to set droppable isEnabled to ${String(r)}
|
|
2738
|
+
but it is already ${String(o.isEnabled)}`) : g());
|
|
2739
2739
|
const i = {
|
|
2740
2740
|
...o,
|
|
2741
2741
|
isEnabled: r
|
|
@@ -2745,13 +2745,13 @@ var rc = (e = qn, t) => {
|
|
|
2745
2745
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
2746
2746
|
if (e.phase === "DROP_PENDING")
|
|
2747
2747
|
return e;
|
|
2748
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2748
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? g(!1, `Attempting to move in an unsupported phase ${e.phase}`) : g());
|
|
2749
2749
|
const {
|
|
2750
2750
|
id: n,
|
|
2751
2751
|
isCombineEnabled: r
|
|
2752
2752
|
} = t.payload, o = e.dimensions.droppables[n];
|
|
2753
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
2754
|
-
but it is already ${String(o.isCombineEnabled)}`) :
|
|
2753
|
+
o || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot find Droppable[id: ${n}] to toggle its isCombineEnabled state`) : g()), o.isCombineEnabled === r && (process.env.NODE_ENV !== "production" ? g(!1, `Trying to set droppable isCombineEnabled to ${String(r)}
|
|
2754
|
+
but it is already ${String(o.isCombineEnabled)}`) : g());
|
|
2755
2755
|
const i = {
|
|
2756
2756
|
...o,
|
|
2757
2757
|
isCombineEnabled: r
|
|
@@ -2761,7 +2761,7 @@ var rc = (e = qn, t) => {
|
|
|
2761
2761
|
if (t.type === "MOVE_BY_WINDOW_SCROLL") {
|
|
2762
2762
|
if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
|
|
2763
2763
|
return e;
|
|
2764
|
-
ce(e) || (process.env.NODE_ENV !== "production" ?
|
|
2764
|
+
ce(e) || (process.env.NODE_ENV !== "production" ? 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
2767
|
return Dt(e);
|
|
@@ -2795,7 +2795,7 @@ var rc = (e = qn, t) => {
|
|
|
2795
2795
|
if (t.type === "MOVE_UP" || t.type === "MOVE_DOWN" || t.type === "MOVE_LEFT" || t.type === "MOVE_RIGHT") {
|
|
2796
2796
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
2797
2797
|
return e;
|
|
2798
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
2798
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? g(!1, `${t.type} received while not in DRAGGING phase`) : g());
|
|
2799
2799
|
const n = Gs({
|
|
2800
2800
|
state: e,
|
|
2801
2801
|
type: t.type
|
|
@@ -2809,7 +2809,7 @@ var rc = (e = qn, t) => {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
if (t.type === "DROP_PENDING") {
|
|
2811
2811
|
const n = t.payload.reason;
|
|
2812
|
-
return e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ?
|
|
2812
|
+
return e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? g(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : g()), {
|
|
2813
2813
|
...e,
|
|
2814
2814
|
phase: "DROP_PENDING",
|
|
2815
2815
|
isWaiting: !0,
|
|
@@ -2822,7 +2822,7 @@ var rc = (e = qn, t) => {
|
|
|
2822
2822
|
dropDuration: r,
|
|
2823
2823
|
newHomeClientOffset: o
|
|
2824
2824
|
} = t.payload;
|
|
2825
|
-
return e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
2825
|
+
return e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot animate drop from phase ${e.phase}`) : g()), {
|
|
2826
2826
|
phase: "DROP_ANIMATING",
|
|
2827
2827
|
completed: n,
|
|
2828
2828
|
dropDuration: r,
|
|
@@ -2949,7 +2949,7 @@ var Nc = (e) => ({
|
|
|
2949
2949
|
} = o.payload, a = t();
|
|
2950
2950
|
a.phase === "DROP_ANIMATING" && n(nn({
|
|
2951
2951
|
completed: a.completed
|
|
2952
|
-
})), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
2952
|
+
})), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Unexpected phase to start a drag") : g()), n(tn()), n(oc({
|
|
2953
2953
|
draggableId: i,
|
|
2954
2954
|
movementMode: c
|
|
2955
2955
|
}));
|
|
@@ -2961,14 +2961,14 @@ var Nc = (e) => ({
|
|
|
2961
2961
|
}, {
|
|
2962
2962
|
critical: l,
|
|
2963
2963
|
dimensions: u,
|
|
2964
|
-
viewport:
|
|
2964
|
+
viewport: f
|
|
2965
2965
|
} = e.startPublishing(p);
|
|
2966
2966
|
Dc(l, u), n(sc({
|
|
2967
2967
|
critical: l,
|
|
2968
2968
|
dimensions: u,
|
|
2969
2969
|
clientSelection: s,
|
|
2970
2970
|
movementMode: c,
|
|
2971
|
-
viewport:
|
|
2971
|
+
viewport: f
|
|
2972
2972
|
}));
|
|
2973
2973
|
}, xc = (e) => () => (t) => (n) => {
|
|
2974
2974
|
_(n, "INITIAL_PUBLISH") && e.dragging(), _(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (_(n, "FLUSH") || _(n, "DROP_COMPLETE")) && e.resting(), t(n);
|
|
@@ -3082,7 +3082,7 @@ const Ac = ({
|
|
|
3082
3082
|
}
|
|
3083
3083
|
if (o.phase === "IDLE")
|
|
3084
3084
|
return;
|
|
3085
|
-
o.phase === "DROP_PENDING" && o.isWaiting && (process.env.NODE_ENV !== "production" ?
|
|
3085
|
+
o.phase === "DROP_PENDING" && o.isWaiting && (process.env.NODE_ENV !== "production" ? g(!1, "A DROP action occurred while DROP_PENDING and still waiting") : g()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot drop in phase: ${o.phase}`) : g());
|
|
3086
3086
|
const c = o.critical, a = o.dimensions, d = a.draggables[o.critical.draggable.id], {
|
|
3087
3087
|
impact: p,
|
|
3088
3088
|
didDropInsideDroppable: l
|
|
@@ -3094,7 +3094,7 @@ const Ac = ({
|
|
|
3094
3094
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
3095
3095
|
viewport: o.viewport,
|
|
3096
3096
|
draggables: o.dimensions.draggables
|
|
3097
|
-
}), u = l ? Xt(p) : null,
|
|
3097
|
+
}), u = l ? Xt(p) : null, f = l ? tt(p) : null, m = {
|
|
3098
3098
|
index: c.draggable.index,
|
|
3099
3099
|
droppableId: c.droppable.id
|
|
3100
3100
|
}, b = {
|
|
@@ -3104,7 +3104,7 @@ const Ac = ({
|
|
|
3104
3104
|
reason: i,
|
|
3105
3105
|
mode: o.movementMode,
|
|
3106
3106
|
destination: u,
|
|
3107
|
-
combine:
|
|
3107
|
+
combine: f
|
|
3108
3108
|
}, h = wc({
|
|
3109
3109
|
impact: p,
|
|
3110
3110
|
draggable: d,
|
|
@@ -3162,10 +3162,10 @@ function Pc({
|
|
|
3162
3162
|
return o !== re;
|
|
3163
3163
|
}
|
|
3164
3164
|
function s() {
|
|
3165
|
-
i() && (process.env.NODE_ENV !== "production" ?
|
|
3165
|
+
i() && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot start scroll listener when already active") : g()), o = K(window, [r]);
|
|
3166
3166
|
}
|
|
3167
3167
|
function c() {
|
|
3168
|
-
i() || (process.env.NODE_ENV !== "production" ?
|
|
3168
|
+
i() || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot stop scroll listener when not active") : g()), n.cancel(), o(), o = re;
|
|
3169
3169
|
}
|
|
3170
3170
|
return {
|
|
3171
3171
|
start: s,
|
|
@@ -3207,7 +3207,7 @@ var Bc = (e) => {
|
|
|
3207
3207
|
}, Vc = () => {
|
|
3208
3208
|
const e = [], t = (o) => {
|
|
3209
3209
|
const i = e.findIndex((c) => c.timerId === o);
|
|
3210
|
-
i === -1 && (process.env.NODE_ENV !== "production" ?
|
|
3210
|
+
i === -1 && (process.env.NODE_ENV !== "production" ? g(!1, "Could not find timer") : g());
|
|
3211
3211
|
const [s] = e.splice(i, 1);
|
|
3212
3212
|
s.callback();
|
|
3213
3213
|
};
|
|
@@ -3259,51 +3259,51 @@ var Gc = (e, t) => {
|
|
|
3259
3259
|
const n = Vc();
|
|
3260
3260
|
let r = null;
|
|
3261
3261
|
const o = (l, u) => {
|
|
3262
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3263
|
-
const
|
|
3264
|
-
|
|
3262
|
+
r && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : g()), ye("onBeforeCapture", () => {
|
|
3263
|
+
const f = e().onBeforeCapture;
|
|
3264
|
+
f && f({
|
|
3265
3265
|
draggableId: l,
|
|
3266
3266
|
mode: u
|
|
3267
3267
|
});
|
|
3268
3268
|
});
|
|
3269
3269
|
}, i = (l, u) => {
|
|
3270
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3271
|
-
const
|
|
3272
|
-
|
|
3270
|
+
r && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : g()), ye("onBeforeDragStart", () => {
|
|
3271
|
+
const f = e().onBeforeDragStart;
|
|
3272
|
+
f && f(We(l, u));
|
|
3273
3273
|
});
|
|
3274
3274
|
}, s = (l, u) => {
|
|
3275
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
3276
|
-
const
|
|
3275
|
+
r && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : g());
|
|
3276
|
+
const f = We(l, u);
|
|
3277
3277
|
r = {
|
|
3278
3278
|
mode: u,
|
|
3279
3279
|
lastCritical: l,
|
|
3280
|
-
lastLocation:
|
|
3280
|
+
lastLocation: f.source,
|
|
3281
3281
|
lastCombine: null
|
|
3282
3282
|
}, n.add(() => {
|
|
3283
|
-
ye("onDragStart", () => Nt(e().onDragStart,
|
|
3283
|
+
ye("onDragStart", () => Nt(e().onDragStart, f, t, ze.onDragStart));
|
|
3284
3284
|
});
|
|
3285
3285
|
}, c = (l, u) => {
|
|
3286
|
-
const
|
|
3287
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3286
|
+
const f = Xt(u), m = tt(u);
|
|
3287
|
+
r || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onDragMove when onDragStart has not been called") : g());
|
|
3288
3288
|
const b = !$c(l, r.lastCritical);
|
|
3289
3289
|
b && (r.lastCritical = l);
|
|
3290
|
-
const h = !Lc(r.lastLocation,
|
|
3291
|
-
h && (r.lastLocation =
|
|
3290
|
+
const h = !Lc(r.lastLocation, f);
|
|
3291
|
+
h && (r.lastLocation = f);
|
|
3292
3292
|
const y = !Mc(r.lastCombine, m);
|
|
3293
3293
|
if (y && (r.lastCombine = m), !b && !h && !y)
|
|
3294
3294
|
return;
|
|
3295
3295
|
const v = {
|
|
3296
3296
|
...We(l, r.mode),
|
|
3297
3297
|
combine: m,
|
|
3298
|
-
destination:
|
|
3298
|
+
destination: f
|
|
3299
3299
|
};
|
|
3300
3300
|
n.add(() => {
|
|
3301
3301
|
ye("onDragUpdate", () => Nt(e().onDragUpdate, v, t, ze.onDragUpdate));
|
|
3302
3302
|
});
|
|
3303
3303
|
}, a = () => {
|
|
3304
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3304
|
+
r || (process.env.NODE_ENV !== "production" ? g(!1, "Can only flush responders while dragging") : g()), n.flush();
|
|
3305
3305
|
}, d = (l) => {
|
|
3306
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
3306
|
+
r || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : g()), r = null, ye("onDragEnd", () => Nt(e().onDragEnd, l, t, ze.onDragEnd));
|
|
3307
3307
|
};
|
|
3308
3308
|
return {
|
|
3309
3309
|
beforeCapture: o,
|
|
@@ -3355,7 +3355,7 @@ const kc = (e) => (t) => (n) => {
|
|
|
3355
3355
|
return;
|
|
3356
3356
|
}
|
|
3357
3357
|
const r = e.getState();
|
|
3358
|
-
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ?
|
|
3358
|
+
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot finish a drop animating when no drop is occurring") : g()), e.dispatch(nn({
|
|
3359
3359
|
completed: r.completed
|
|
3360
3360
|
}));
|
|
3361
3361
|
}, Wc = (e) => {
|
|
@@ -3413,7 +3413,7 @@ var jc = (e) => (t) => (n) => (r) => {
|
|
|
3413
3413
|
if (_(r, "INITIAL_PUBLISH")) {
|
|
3414
3414
|
n(r);
|
|
3415
3415
|
const o = t.getState();
|
|
3416
|
-
o.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
3416
|
+
o.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? g(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : g()), e.start(o);
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
3419
|
n(r), e.scroll(t.getState());
|
|
@@ -3459,12 +3459,12 @@ function Kc({
|
|
|
3459
3459
|
droppableId: m,
|
|
3460
3460
|
scroll: h
|
|
3461
3461
|
};
|
|
3462
|
-
}),
|
|
3462
|
+
}), f = {
|
|
3463
3463
|
additions: l,
|
|
3464
3464
|
removals: Object.keys(d),
|
|
3465
3465
|
modified: u
|
|
3466
3466
|
};
|
|
3467
|
-
n = xt(), Me(), t.publish(
|
|
3467
|
+
n = xt(), Me(), t.publish(f);
|
|
3468
3468
|
}));
|
|
3469
3469
|
};
|
|
3470
3470
|
return {
|
|
@@ -3500,7 +3500,7 @@ var lo = ({
|
|
|
3500
3500
|
};
|
|
3501
3501
|
}, uo = () => {
|
|
3502
3502
|
const e = document.documentElement;
|
|
3503
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
3503
|
+
return e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot find document.documentElement") : g()), e;
|
|
3504
3504
|
}, po = () => {
|
|
3505
3505
|
const e = uo();
|
|
3506
3506
|
return lo({
|
|
@@ -3560,33 +3560,33 @@ var Qc = (e, t) => {
|
|
|
3560
3560
|
collectionStarting: t.collectionStarting
|
|
3561
3561
|
},
|
|
3562
3562
|
registry: e
|
|
3563
|
-
}), o = (u,
|
|
3564
|
-
e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3563
|
+
}), o = (u, f) => {
|
|
3564
|
+
e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot update is enabled flag of Droppable ${u} as it is not registered`) : g()), n && t.updateDroppableIsEnabled({
|
|
3565
3565
|
id: u,
|
|
3566
|
-
isEnabled:
|
|
3566
|
+
isEnabled: f
|
|
3567
3567
|
});
|
|
3568
|
-
}, i = (u,
|
|
3569
|
-
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3568
|
+
}, i = (u, f) => {
|
|
3569
|
+
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot update isCombineEnabled flag of Droppable ${u} as it is not registered`) : g()), t.updateDroppableIsCombineEnabled({
|
|
3570
3570
|
id: u,
|
|
3571
|
-
isCombineEnabled:
|
|
3571
|
+
isCombineEnabled: f
|
|
3572
3572
|
}));
|
|
3573
|
-
}, s = (u,
|
|
3574
|
-
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ?
|
|
3573
|
+
}, s = (u, f) => {
|
|
3574
|
+
n && (e.droppable.exists(u) || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot update the scroll on Droppable ${u} as it is not registered`) : g()), t.updateDroppableScroll({
|
|
3575
3575
|
id: u,
|
|
3576
|
-
newScroll:
|
|
3576
|
+
newScroll: f
|
|
3577
3577
|
}));
|
|
3578
|
-
}, c = (u,
|
|
3579
|
-
n && e.droppable.getById(u).callbacks.scroll(
|
|
3578
|
+
}, c = (u, f) => {
|
|
3579
|
+
n && e.droppable.getById(u).callbacks.scroll(f);
|
|
3580
3580
|
}, a = () => {
|
|
3581
3581
|
if (!n)
|
|
3582
3582
|
return;
|
|
3583
3583
|
r.stop();
|
|
3584
3584
|
const u = n.critical.droppable;
|
|
3585
|
-
e.droppable.getAllByType(u.type).forEach((
|
|
3585
|
+
e.droppable.getAllByType(u.type).forEach((f) => f.callbacks.dragStopped()), n.unsubscribe(), n = null;
|
|
3586
3586
|
}, d = (u) => {
|
|
3587
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
3588
|
-
const
|
|
3589
|
-
u.type === "ADDITION" && Kn(e,
|
|
3587
|
+
n || (process.env.NODE_ENV !== "production" ? g(!1, "Should only be subscribed when a collection is occurring") : g());
|
|
3588
|
+
const f = n.critical.draggable;
|
|
3589
|
+
u.type === "ADDITION" && Kn(e, f, u.value) && r.add(u.value), u.type === "REMOVAL" && Kn(e, f, u.value) && r.remove(u.value);
|
|
3590
3590
|
};
|
|
3591
3591
|
return {
|
|
3592
3592
|
updateDroppableIsEnabled: o,
|
|
@@ -3594,9 +3594,9 @@ var Qc = (e, t) => {
|
|
|
3594
3594
|
scrollDroppable: c,
|
|
3595
3595
|
updateDroppableScroll: s,
|
|
3596
3596
|
startPublishing: (u) => {
|
|
3597
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
3598
|
-
const
|
|
3599
|
-
draggable:
|
|
3597
|
+
n && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot start capturing critical dimensions as there is already a collection") : g());
|
|
3598
|
+
const f = e.draggable.getById(u.draggableId), m = e.droppable.getById(f.descriptor.droppableId), b = {
|
|
3599
|
+
draggable: f.descriptor,
|
|
3600
3600
|
droppable: m.descriptor
|
|
3601
3601
|
}, h = e.subscribe(d);
|
|
3602
3602
|
return n = {
|
|
@@ -3613,7 +3613,7 @@ var Qc = (e, t) => {
|
|
|
3613
3613
|
}, fo = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP", ea = (e) => {
|
|
3614
3614
|
window.scrollBy(e.x, e.y);
|
|
3615
3615
|
};
|
|
3616
|
-
const ta = $((e) => et(e).filter((t) => !(!t.isEnabled || !t.frame))), na = (e, t) => ta(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ?
|
|
3616
|
+
const ta = $((e) => et(e).filter((t) => !(!t.isEnabled || !t.frame))), na = (e, t) => ta(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ? g(!1, "Invalid result") : g()), Xr(r.frame.pageMarginBox)(e))) || null;
|
|
3617
3617
|
var ra = ({
|
|
3618
3618
|
center: e,
|
|
3619
3619
|
destination: t,
|
|
@@ -3901,7 +3901,7 @@ var pa = ({
|
|
|
3901
3901
|
const r = Ie(e), o = Ie(t);
|
|
3902
3902
|
let i = null;
|
|
3903
3903
|
const s = (d) => {
|
|
3904
|
-
i || (process.env.NODE_ENV !== "production" ?
|
|
3904
|
+
i || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot fluid scroll if not dragging") : g());
|
|
3905
3905
|
const {
|
|
3906
3906
|
shouldUseTimeDampening: p,
|
|
3907
3907
|
dragStartTime: l
|
|
@@ -3917,7 +3917,7 @@ var pa = ({
|
|
|
3917
3917
|
};
|
|
3918
3918
|
return {
|
|
3919
3919
|
start: (d) => {
|
|
3920
|
-
Le(), i && (process.env.NODE_ENV !== "production" ?
|
|
3920
|
+
Le(), i && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot start auto scrolling when already started") : g());
|
|
3921
3921
|
const p = Date.now();
|
|
3922
3922
|
let l = !1;
|
|
3923
3923
|
const u = () => {
|
|
@@ -3972,7 +3972,7 @@ var pa = ({
|
|
|
3972
3972
|
if (!a)
|
|
3973
3973
|
return;
|
|
3974
3974
|
const d = q(c.impact);
|
|
3975
|
-
d || (process.env.NODE_ENV !== "production" ?
|
|
3975
|
+
d || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot perform a jump scroll when there is no destination") : g());
|
|
3976
3976
|
const p = o(c.dimensions.droppables[d], a);
|
|
3977
3977
|
if (!p)
|
|
3978
3978
|
return;
|
|
@@ -4095,7 +4095,7 @@ var Ea = (e) => {
|
|
|
4095
4095
|
};
|
|
4096
4096
|
const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Vo : te, It = () => {
|
|
4097
4097
|
const e = document.querySelector("head");
|
|
4098
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
4098
|
+
return e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot find the head to append a style to") : g()), e;
|
|
4099
4099
|
}, tr = (e) => {
|
|
4100
4100
|
const t = document.createElement("style");
|
|
4101
4101
|
return e && t.setAttribute("nonce", e), t.type = "text/css", t;
|
|
@@ -4103,20 +4103,20 @@ const Y = typeof window < "u" && typeof window.document < "u" && typeof window.d
|
|
|
4103
4103
|
function Da(e, t) {
|
|
4104
4104
|
const n = C(() => Ea(e), [e]), r = B(null), o = B(null), i = D($((l) => {
|
|
4105
4105
|
const u = o.current;
|
|
4106
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
4106
|
+
u || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot set dynamic style element if it is not set") : g()), u.textContent = l;
|
|
4107
4107
|
}), []), s = D((l) => {
|
|
4108
4108
|
const u = r.current;
|
|
4109
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
4109
|
+
u || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot set dynamic style element if it is not set") : g()), u.textContent = l;
|
|
4110
4110
|
}, []);
|
|
4111
4111
|
Y(() => {
|
|
4112
|
-
!r.current && !o.current || (process.env.NODE_ENV !== "production" ?
|
|
4112
|
+
!r.current && !o.current || (process.env.NODE_ENV !== "production" ? g(!1, "style elements already mounted") : g());
|
|
4113
4113
|
const l = tr(t), u = tr(t);
|
|
4114
4114
|
return r.current = l, o.current = u, l.setAttribute(`${fe}-always`, e), u.setAttribute(`${fe}-dynamic`, e), It().appendChild(l), It().appendChild(u), s(n.always), i(n.resting), () => {
|
|
4115
|
-
const
|
|
4115
|
+
const f = (m) => {
|
|
4116
4116
|
const b = m.current;
|
|
4117
|
-
b || (process.env.NODE_ENV !== "production" ?
|
|
4117
|
+
b || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot unmount ref as it is not set") : g()), It().removeChild(b), m.current = null;
|
|
4118
4118
|
};
|
|
4119
|
-
|
|
4119
|
+
f(r), f(o);
|
|
4120
4120
|
};
|
|
4121
4121
|
}, [t, s, i, n.always, n.resting, e]);
|
|
4122
4122
|
const c = D(() => i(n.dragging), [i, n.dragging]), a = D((l) => {
|
|
@@ -4149,20 +4149,20 @@ function yo(e, t) {
|
|
|
4149
4149
|
return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && R(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
|
|
4150
4150
|
}
|
|
4151
4151
|
function Na(e) {
|
|
4152
|
-
const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u,
|
|
4152
|
+
const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u, f) {
|
|
4153
4153
|
const m = {
|
|
4154
4154
|
id: u,
|
|
4155
|
-
focus:
|
|
4155
|
+
focus: f
|
|
4156
4156
|
};
|
|
4157
4157
|
return t.current[u] = m, function() {
|
|
4158
4158
|
const h = t.current;
|
|
4159
4159
|
h[u] !== m && delete h[u];
|
|
4160
4160
|
};
|
|
4161
4161
|
}, []), s = D(function(u) {
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4164
|
-
}, [e]), c = D(function(u,
|
|
4165
|
-
n.current === u && (n.current =
|
|
4162
|
+
const f = yo(e, u);
|
|
4163
|
+
f && f !== document.activeElement && f.focus();
|
|
4164
|
+
}, [e]), c = D(function(u, f) {
|
|
4165
|
+
n.current === u && (n.current = f);
|
|
4166
4166
|
}, []), a = D(function() {
|
|
4167
4167
|
r.current || o.current && (r.current = requestAnimationFrame(() => {
|
|
4168
4168
|
r.current = null;
|
|
@@ -4171,8 +4171,8 @@ function Na(e) {
|
|
|
4171
4171
|
}));
|
|
4172
4172
|
}, [s]), d = D(function(u) {
|
|
4173
4173
|
n.current = null;
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4174
|
+
const f = document.activeElement;
|
|
4175
|
+
f && f.getAttribute(ge.draggableId) === u && (n.current = u);
|
|
4176
4176
|
}, []);
|
|
4177
4177
|
return Y(() => (o.current = !0, function() {
|
|
4178
4178
|
o.current = !1;
|
|
@@ -4192,8 +4192,8 @@ function xa() {
|
|
|
4192
4192
|
}, t = [];
|
|
4193
4193
|
function n(l) {
|
|
4194
4194
|
return t.push(l), function() {
|
|
4195
|
-
const
|
|
4196
|
-
|
|
4195
|
+
const f = t.indexOf(l);
|
|
4196
|
+
f !== -1 && t.splice(f, 1);
|
|
4197
4197
|
};
|
|
4198
4198
|
}
|
|
4199
4199
|
function r(l) {
|
|
@@ -4204,7 +4204,7 @@ function xa() {
|
|
|
4204
4204
|
}
|
|
4205
4205
|
function i(l) {
|
|
4206
4206
|
const u = o(l);
|
|
4207
|
-
return u || (process.env.NODE_ENV !== "production" ?
|
|
4207
|
+
return u || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot find draggable entry with id [${l}]`) : g()), u;
|
|
4208
4208
|
}
|
|
4209
4209
|
const s = {
|
|
4210
4210
|
register: (l) => {
|
|
@@ -4214,12 +4214,12 @@ function xa() {
|
|
|
4214
4214
|
});
|
|
4215
4215
|
},
|
|
4216
4216
|
update: (l, u) => {
|
|
4217
|
-
const
|
|
4218
|
-
|
|
4217
|
+
const f = e.draggables[u.descriptor.id];
|
|
4218
|
+
f && f.uniqueId === l.uniqueId && (delete e.draggables[u.descriptor.id], e.draggables[l.descriptor.id] = l);
|
|
4219
4219
|
},
|
|
4220
4220
|
unregister: (l) => {
|
|
4221
|
-
const u = l.descriptor.id,
|
|
4222
|
-
|
|
4221
|
+
const u = l.descriptor.id, f = o(u);
|
|
4222
|
+
f && l.uniqueId === f.uniqueId && (delete e.draggables[u], e.droppables[l.descriptor.droppableId] && r({
|
|
4223
4223
|
type: "REMOVAL",
|
|
4224
4224
|
value: l
|
|
4225
4225
|
}));
|
|
@@ -4234,7 +4234,7 @@ function xa() {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
function a(l) {
|
|
4236
4236
|
const u = c(l);
|
|
4237
|
-
return u || (process.env.NODE_ENV !== "production" ?
|
|
4237
|
+
return u || (process.env.NODE_ENV !== "production" ? g(!1, `Cannot find droppable entry with id [${l}]`) : g()), u;
|
|
4238
4238
|
}
|
|
4239
4239
|
const d = {
|
|
4240
4240
|
register: (l) => {
|
|
@@ -4265,9 +4265,9 @@ function Ia() {
|
|
|
4265
4265
|
e.clean();
|
|
4266
4266
|
}, [e]), e;
|
|
4267
4267
|
}
|
|
4268
|
-
var ln =
|
|
4268
|
+
var ln = L.createContext(null), Pe = () => {
|
|
4269
4269
|
const e = document.body;
|
|
4270
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
4270
|
+
return e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot find document.body") : g()), e;
|
|
4271
4271
|
};
|
|
4272
4272
|
const Oa = {
|
|
4273
4273
|
position: "absolute",
|
|
@@ -4312,7 +4312,7 @@ const Sa = {
|
|
|
4312
4312
|
separator: "::"
|
|
4313
4313
|
};
|
|
4314
4314
|
function dn(e, t = Sa) {
|
|
4315
|
-
const n =
|
|
4315
|
+
const n = L.useId();
|
|
4316
4316
|
return C(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
|
|
4317
4317
|
}
|
|
4318
4318
|
function Aa({
|
|
@@ -4339,12 +4339,12 @@ function _a({
|
|
|
4339
4339
|
};
|
|
4340
4340
|
}, [r, t]), r;
|
|
4341
4341
|
}
|
|
4342
|
-
var ot =
|
|
4342
|
+
var ot = L.createContext(null), Pa = {
|
|
4343
4343
|
react: "^18.0.0 || ^19.0.0"
|
|
4344
4344
|
};
|
|
4345
4345
|
const Ra = /(\d+)\.(\d+)\.(\d+)/, nr = (e) => {
|
|
4346
4346
|
const t = Ra.exec(e);
|
|
4347
|
-
t == null && (process.env.NODE_ENV !== "production" ?
|
|
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 {
|
|
4350
4350
|
major: n,
|
|
@@ -4409,7 +4409,7 @@ function Ge(e, t) {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
function La() {
|
|
4411
4411
|
Ge(() => {
|
|
4412
|
-
Ba(Pa.react,
|
|
4412
|
+
Ba(Pa.react, L.version), Va(document);
|
|
4413
4413
|
}, []);
|
|
4414
4414
|
}
|
|
4415
4415
|
function pn(e) {
|
|
@@ -4427,14 +4427,14 @@ function Ma() {
|
|
|
4427
4427
|
return s === e;
|
|
4428
4428
|
}
|
|
4429
4429
|
function r(s) {
|
|
4430
|
-
e && (process.env.NODE_ENV !== "production" ?
|
|
4430
|
+
e && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot claim lock as it is already claimed") : g());
|
|
4431
4431
|
const c = {
|
|
4432
4432
|
abandon: s
|
|
4433
4433
|
};
|
|
4434
4434
|
return e = c, c;
|
|
4435
4435
|
}
|
|
4436
4436
|
function o() {
|
|
4437
|
-
e || (process.env.NODE_ENV !== "production" ?
|
|
4437
|
+
e || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot release lock when there is no lock") : g()), e = null;
|
|
4438
4438
|
}
|
|
4439
4439
|
function i() {
|
|
4440
4440
|
e && (e.abandon(), o());
|
|
@@ -4491,7 +4491,7 @@ function Ka({
|
|
|
4491
4491
|
o.preventDefault(), d.actions.move(a);
|
|
4492
4492
|
return;
|
|
4493
4493
|
}
|
|
4494
|
-
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
4494
|
+
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot be IDLE") : g());
|
|
4495
4495
|
const p = d.point;
|
|
4496
4496
|
if (!Xa(p, a))
|
|
4497
4497
|
return;
|
|
@@ -4548,7 +4548,7 @@ function Ka({
|
|
|
4548
4548
|
eventName: "webkitmouseforcedown",
|
|
4549
4549
|
fn: (o) => {
|
|
4550
4550
|
const i = n();
|
|
4551
|
-
if (i.type === "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4551
|
+
if (i.type === "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Unexpected phase") : g()), i.actions.shouldRespectForcePress()) {
|
|
4552
4552
|
e();
|
|
4553
4553
|
return;
|
|
4554
4554
|
}
|
|
@@ -4568,17 +4568,17 @@ function Ja(e) {
|
|
|
4568
4568
|
const u = e.findClosestDraggableId(l);
|
|
4569
4569
|
if (!u)
|
|
4570
4570
|
return;
|
|
4571
|
-
const
|
|
4571
|
+
const f = e.tryGetLock(u, s, {
|
|
4572
4572
|
sourceEvent: l
|
|
4573
4573
|
});
|
|
4574
|
-
if (!
|
|
4574
|
+
if (!f)
|
|
4575
4575
|
return;
|
|
4576
4576
|
l.preventDefault();
|
|
4577
4577
|
const m = {
|
|
4578
4578
|
x: l.clientX,
|
|
4579
4579
|
y: l.clientY
|
|
4580
4580
|
};
|
|
4581
|
-
n.current(), d(
|
|
4581
|
+
n.current(), d(f, m);
|
|
4582
4582
|
}
|
|
4583
4583
|
}), [e]), o = C(() => ({
|
|
4584
4584
|
eventName: "webkitmouseforcewillbegin",
|
|
@@ -4612,13 +4612,13 @@ function Ja(e) {
|
|
|
4612
4612
|
cancel: c,
|
|
4613
4613
|
completed: s,
|
|
4614
4614
|
getPhase: () => t.current,
|
|
4615
|
-
setPhase: (
|
|
4616
|
-
t.current =
|
|
4615
|
+
setPhase: (f) => {
|
|
4616
|
+
t.current = f;
|
|
4617
4617
|
}
|
|
4618
4618
|
});
|
|
4619
4619
|
n.current = K(window, u, l);
|
|
4620
4620
|
}, [c, s]), d = D(function(l, u) {
|
|
4621
|
-
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4621
|
+
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Expected to move from IDLE to PENDING drag") : g()), t.current = {
|
|
4622
4622
|
type: "PENDING",
|
|
4623
4623
|
point: u,
|
|
4624
4624
|
actions: l
|
|
@@ -4723,7 +4723,7 @@ function tl(e) {
|
|
|
4723
4723
|
const d = c.snapLift();
|
|
4724
4724
|
t.current();
|
|
4725
4725
|
function p() {
|
|
4726
|
-
a || (process.env.NODE_ENV !== "production" ?
|
|
4726
|
+
a || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot stop capturing a keyboard drag when not capturing") : g()), a = !1, t.current(), r();
|
|
4727
4727
|
}
|
|
4728
4728
|
t.current = K(window, el(d, p), {
|
|
4729
4729
|
capture: !0,
|
|
@@ -4826,7 +4826,7 @@ function il({
|
|
|
4826
4826
|
eventName: "touchforcechange",
|
|
4827
4827
|
fn: (r) => {
|
|
4828
4828
|
const o = n();
|
|
4829
|
-
o.type === "IDLE" && (process.env.NODE_ENV,
|
|
4829
|
+
o.type === "IDLE" && (process.env.NODE_ENV, g());
|
|
4830
4830
|
const i = r.touches[0];
|
|
4831
4831
|
if (!i || !(i.force >= rl))
|
|
4832
4832
|
return;
|
|
@@ -4853,22 +4853,22 @@ function il({
|
|
|
4853
4853
|
function sl(e) {
|
|
4854
4854
|
const t = B(Ct), n = B(re), r = D(function() {
|
|
4855
4855
|
return t.current;
|
|
4856
|
-
}, []), o = D(function(
|
|
4857
|
-
t.current =
|
|
4856
|
+
}, []), o = D(function(f) {
|
|
4857
|
+
t.current = f;
|
|
4858
4858
|
}, []), i = C(() => ({
|
|
4859
4859
|
eventName: "touchstart",
|
|
4860
|
-
fn: function(
|
|
4861
|
-
if (
|
|
4860
|
+
fn: function(f) {
|
|
4861
|
+
if (f.defaultPrevented)
|
|
4862
4862
|
return;
|
|
4863
|
-
const m = e.findClosestDraggableId(
|
|
4863
|
+
const m = e.findClosestDraggableId(f);
|
|
4864
4864
|
if (!m)
|
|
4865
4865
|
return;
|
|
4866
4866
|
const b = e.tryGetLock(m, c, {
|
|
4867
|
-
sourceEvent:
|
|
4867
|
+
sourceEvent: f
|
|
4868
4868
|
});
|
|
4869
4869
|
if (!b)
|
|
4870
4870
|
return;
|
|
4871
|
-
const h =
|
|
4871
|
+
const h = f.touches[0], {
|
|
4872
4872
|
clientX: y,
|
|
4873
4873
|
clientY: v
|
|
4874
4874
|
} = h, I = {
|
|
@@ -4878,11 +4878,11 @@ function sl(e) {
|
|
|
4878
4878
|
n.current(), l(b, I);
|
|
4879
4879
|
}
|
|
4880
4880
|
}), [e]), s = D(function() {
|
|
4881
|
-
const
|
|
4881
|
+
const f = {
|
|
4882
4882
|
capture: !0,
|
|
4883
4883
|
passive: !1
|
|
4884
4884
|
};
|
|
4885
|
-
n.current = K(window, [i],
|
|
4885
|
+
n.current = K(window, [i], f);
|
|
4886
4886
|
}, [i]), c = D(() => {
|
|
4887
4887
|
const u = t.current;
|
|
4888
4888
|
u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(Ct), n.current(), s());
|
|
@@ -4892,33 +4892,33 @@ function sl(e) {
|
|
|
4892
4892
|
shouldBlockNextClick: !0
|
|
4893
4893
|
}), u.type === "PENDING" && u.actions.abort();
|
|
4894
4894
|
}, [c]), d = D(function() {
|
|
4895
|
-
const
|
|
4895
|
+
const f = {
|
|
4896
4896
|
capture: !0,
|
|
4897
4897
|
passive: !1
|
|
4898
4898
|
}, m = {
|
|
4899
4899
|
cancel: a,
|
|
4900
4900
|
completed: c,
|
|
4901
4901
|
getPhase: r
|
|
4902
|
-
}, b = K(window, il(m),
|
|
4902
|
+
}, b = K(window, il(m), f), h = K(window, ol(m), f);
|
|
4903
4903
|
n.current = function() {
|
|
4904
4904
|
b(), h();
|
|
4905
4905
|
};
|
|
4906
4906
|
}, [a, r, c]), p = D(function() {
|
|
4907
|
-
const
|
|
4908
|
-
|
|
4909
|
-
const m =
|
|
4907
|
+
const f = r();
|
|
4908
|
+
f.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? g(!1, `Cannot start dragging from phase ${f.type}`) : g());
|
|
4909
|
+
const m = f.actions.fluidLift(f.point);
|
|
4910
4910
|
o({
|
|
4911
4911
|
type: "DRAGGING",
|
|
4912
4912
|
actions: m,
|
|
4913
4913
|
hasMoved: !1
|
|
4914
4914
|
});
|
|
4915
|
-
}, [r, o]), l = D(function(
|
|
4916
|
-
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
4915
|
+
}, [r, o]), l = D(function(f, m) {
|
|
4916
|
+
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? g(!1, "Expected to move from IDLE to PENDING drag") : g());
|
|
4917
4917
|
const b = setTimeout(p, nl);
|
|
4918
4918
|
o({
|
|
4919
4919
|
type: "PENDING",
|
|
4920
4920
|
point: m,
|
|
4921
|
-
actions:
|
|
4921
|
+
actions: f,
|
|
4922
4922
|
longPressTimerId: b
|
|
4923
4923
|
}), d();
|
|
4924
4924
|
}, [d, r, o, p]);
|
|
@@ -4944,7 +4944,7 @@ function cl(e) {
|
|
|
4944
4944
|
un(() => {
|
|
4945
4945
|
const t = pn(e);
|
|
4946
4946
|
Ge(() => {
|
|
4947
|
-
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ?
|
|
4947
|
+
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot change the amount of sensor hooks after mounting") : g(!1));
|
|
4948
4948
|
});
|
|
4949
4949
|
});
|
|
4950
4950
|
}
|
|
@@ -5059,14 +5059,14 @@ function yl({
|
|
|
5059
5059
|
function u() {
|
|
5060
5060
|
return a.options.shouldRespectForcePress;
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function f() {
|
|
5063
5063
|
return e.isActive(p);
|
|
5064
5064
|
}
|
|
5065
5065
|
function m(E, x) {
|
|
5066
5066
|
Ue({
|
|
5067
5067
|
expected: E,
|
|
5068
5068
|
phase: l,
|
|
5069
|
-
isLockActive:
|
|
5069
|
+
isLockActive: f,
|
|
5070
5070
|
shouldWarn: !0
|
|
5071
5071
|
}) && n.dispatch(x());
|
|
5072
5072
|
}
|
|
@@ -5075,8 +5075,8 @@ function yl({
|
|
|
5075
5075
|
function x() {
|
|
5076
5076
|
e.release(), l = "COMPLETED";
|
|
5077
5077
|
}
|
|
5078
|
-
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ?
|
|
5079
|
-
function
|
|
5078
|
+
l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? g(!1, `Cannot lift in phase ${l}`) : g()), n.dispatch(ic(E.liftActionArgs)), l = "DRAGGING";
|
|
5079
|
+
function A(P, U = {
|
|
5080
5080
|
shouldBlockNextClick: !1
|
|
5081
5081
|
}) {
|
|
5082
5082
|
if (E.cleanup(), U.shouldBlockNextClick) {
|
|
@@ -5099,12 +5099,12 @@ function yl({
|
|
|
5099
5099
|
isActive: () => Ue({
|
|
5100
5100
|
expected: "DRAGGING",
|
|
5101
5101
|
phase: l,
|
|
5102
|
-
isLockActive:
|
|
5102
|
+
isLockActive: f,
|
|
5103
5103
|
shouldWarn: !1
|
|
5104
5104
|
}),
|
|
5105
5105
|
shouldRespectForcePress: u,
|
|
5106
|
-
drop: (P) =>
|
|
5107
|
-
cancel: (P) =>
|
|
5106
|
+
drop: (P) => A("DROP", P),
|
|
5107
|
+
cancel: (P) => A("CANCEL", P),
|
|
5108
5108
|
...E.actions
|
|
5109
5109
|
};
|
|
5110
5110
|
}
|
|
@@ -5150,7 +5150,7 @@ function yl({
|
|
|
5150
5150
|
Ue({
|
|
5151
5151
|
expected: "PRE_DRAG",
|
|
5152
5152
|
phase: l,
|
|
5153
|
-
isLockActive:
|
|
5153
|
+
isLockActive: f,
|
|
5154
5154
|
shouldWarn: !0
|
|
5155
5155
|
}) && e.release();
|
|
5156
5156
|
}
|
|
@@ -5158,7 +5158,7 @@ function yl({
|
|
|
5158
5158
|
isActive: () => Ue({
|
|
5159
5159
|
expected: "PRE_DRAG",
|
|
5160
5160
|
phase: l,
|
|
5161
|
-
isLockActive:
|
|
5161
|
+
isLockActive: f,
|
|
5162
5162
|
shouldWarn: !1
|
|
5163
5163
|
}),
|
|
5164
5164
|
shouldRespectForcePress: u,
|
|
@@ -5203,14 +5203,14 @@ function Dl({
|
|
|
5203
5203
|
return h ? h.options : null;
|
|
5204
5204
|
}, [n.draggable]), u = D(function() {
|
|
5205
5205
|
s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(tn()));
|
|
5206
|
-
}, [s, t]),
|
|
5206
|
+
}, [s, t]), f = D(() => s.isClaimed(), [s]), m = C(() => ({
|
|
5207
5207
|
canGetLock: a,
|
|
5208
5208
|
tryGetLock: d,
|
|
5209
5209
|
findClosestDraggableId: p,
|
|
5210
5210
|
findOptionsForDraggable: l,
|
|
5211
5211
|
tryReleaseLock: u,
|
|
5212
|
-
isLockClaimed:
|
|
5213
|
-
}), [a, d, p, l, u,
|
|
5212
|
+
isLockClaimed: f
|
|
5213
|
+
}), [a, d, p, l, u, f]);
|
|
5214
5214
|
cl(i);
|
|
5215
5215
|
for (let b = 0; b < i.length; b++)
|
|
5216
5216
|
i[b](m);
|
|
@@ -5234,7 +5234,7 @@ const Nl = (e) => ({
|
|
|
5234
5234
|
}
|
|
5235
5235
|
});
|
|
5236
5236
|
function De(e) {
|
|
5237
|
-
return e.current || (process.env.NODE_ENV !== "production" ?
|
|
5237
|
+
return e.current || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find store from lazy ref") : g()), e.current;
|
|
5238
5238
|
}
|
|
5239
5239
|
function Il(e) {
|
|
5240
5240
|
const {
|
|
@@ -5248,7 +5248,7 @@ function Il(e) {
|
|
|
5248
5248
|
const c = pn(e), a = D(() => Nl(c.current), [c]), d = D(() => xl(c.current), [c]), p = wa(t), l = _a({
|
|
5249
5249
|
contextId: t,
|
|
5250
5250
|
text: i
|
|
5251
|
-
}), u = Da(t, o),
|
|
5251
|
+
}), u = Da(t, o), f = D((T) => {
|
|
5252
5252
|
De(s).dispatch(T);
|
|
5253
5253
|
}, []), m = C(() => On({
|
|
5254
5254
|
publishWhileDragging: cc,
|
|
@@ -5256,14 +5256,14 @@ function Il(e) {
|
|
|
5256
5256
|
updateDroppableIsEnabled: dc,
|
|
5257
5257
|
updateDroppableIsCombineEnabled: uc,
|
|
5258
5258
|
collectionStarting: ac
|
|
5259
|
-
},
|
|
5259
|
+
}, f), [f]), b = Ia(), h = C(() => Qc(b, m), [b, m]), y = C(() => ha({
|
|
5260
5260
|
scrollWindow: ea,
|
|
5261
5261
|
scrollDroppable: h.scrollDroppable,
|
|
5262
5262
|
getAutoScrollerOptions: d,
|
|
5263
5263
|
...On({
|
|
5264
5264
|
move: ro
|
|
5265
|
-
},
|
|
5266
|
-
}), [h.scrollDroppable,
|
|
5265
|
+
}, f)
|
|
5266
|
+
}), [h.scrollDroppable, f, d]), v = Na(t), I = C(() => Xc({
|
|
5267
5267
|
announce: p,
|
|
5268
5268
|
autoScroller: y,
|
|
5269
5269
|
dimensionMarshal: h,
|
|
@@ -5283,34 +5283,34 @@ function Il(e) {
|
|
|
5283
5283
|
tryAbort: N
|
|
5284
5284
|
}), [E, N]);
|
|
5285
5285
|
n(x);
|
|
5286
|
-
const
|
|
5286
|
+
const A = D((T) => fo(De(s).getState(), T), []), P = D(() => ce(De(s).getState()), []), U = C(() => ({
|
|
5287
5287
|
marshal: h,
|
|
5288
5288
|
focus: v,
|
|
5289
5289
|
contextId: t,
|
|
5290
|
-
canLift:
|
|
5290
|
+
canLift: A,
|
|
5291
5291
|
isMovementAllowed: P,
|
|
5292
5292
|
dragHandleUsageInstructionsId: l,
|
|
5293
5293
|
registry: b
|
|
5294
|
-
}), [t, h, l, v,
|
|
5294
|
+
}), [t, h, l, v, A, P, b]);
|
|
5295
5295
|
return Dl({
|
|
5296
5296
|
contextId: t,
|
|
5297
5297
|
store: I,
|
|
5298
5298
|
registry: b,
|
|
5299
5299
|
customSensors: r || null,
|
|
5300
5300
|
enableDefaultSensors: e.enableDefaultSensors !== !1
|
|
5301
|
-
}), te(() => N, [N]),
|
|
5301
|
+
}), te(() => N, [N]), L.createElement(ot.Provider, {
|
|
5302
5302
|
value: U
|
|
5303
|
-
},
|
|
5303
|
+
}, L.createElement(Li, {
|
|
5304
5304
|
context: ln,
|
|
5305
5305
|
store: I
|
|
5306
5306
|
}, e.children));
|
|
5307
5307
|
}
|
|
5308
5308
|
function Ol() {
|
|
5309
|
-
return
|
|
5309
|
+
return L.useId();
|
|
5310
5310
|
}
|
|
5311
5311
|
function Cl(e) {
|
|
5312
5312
|
const t = Ol(), n = e.dragHandleUsageInstructions || ze.dragHandleUsageInstructions;
|
|
5313
|
-
return
|
|
5313
|
+
return L.createElement(Yi, null, (r) => L.createElement(Il, {
|
|
5314
5314
|
nonce: e.nonce,
|
|
5315
5315
|
contextId: t,
|
|
5316
5316
|
setCallbacks: r,
|
|
@@ -5390,9 +5390,9 @@ function Bl(e) {
|
|
|
5390
5390
|
canDragInteractiveElements: i,
|
|
5391
5391
|
shouldRespectForcePress: s,
|
|
5392
5392
|
isEnabled: c
|
|
5393
|
-
}), [i, c, s]), d = D((
|
|
5393
|
+
}), [i, c, s]), d = D((f) => {
|
|
5394
5394
|
const m = o();
|
|
5395
|
-
return m || (process.env.NODE_ENV !== "production" ?
|
|
5395
|
+
return m || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot get dimension when no ref is set") : g()), Tl(n, m, f);
|
|
5396
5396
|
}, [n, o]), p = C(() => ({
|
|
5397
5397
|
uniqueId: t,
|
|
5398
5398
|
descriptor: n,
|
|
@@ -5404,18 +5404,18 @@ function Bl(e) {
|
|
|
5404
5404
|
u.current = !1;
|
|
5405
5405
|
return;
|
|
5406
5406
|
}
|
|
5407
|
-
const
|
|
5408
|
-
l.current = p, r.draggable.update(p,
|
|
5407
|
+
const f = l.current;
|
|
5408
|
+
l.current = p, r.draggable.update(p, f);
|
|
5409
5409
|
}, [p, r.draggable]);
|
|
5410
5410
|
}
|
|
5411
|
-
var gn =
|
|
5411
|
+
var gn = L.createContext(null);
|
|
5412
5412
|
function Co(e) {
|
|
5413
|
-
e && $e(e) || (process.env.NODE_ENV !== "production" ?
|
|
5413
|
+
e && $e(e) || (process.env.NODE_ENV !== "production" ? g(!1, `
|
|
5414
5414
|
provided.innerRef has not been provided with a HTMLElement.
|
|
5415
5415
|
|
|
5416
5416
|
You can find a guide on using the innerRef callback functions at:
|
|
5417
5417
|
https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md
|
|
5418
|
-
`) :
|
|
5418
|
+
`) : g());
|
|
5419
5419
|
}
|
|
5420
5420
|
function Vl(e, t, n) {
|
|
5421
5421
|
Ge(() => {
|
|
@@ -5423,21 +5423,21 @@ function Vl(e, t, n) {
|
|
|
5423
5423
|
return `Draggable[id: ${i}]: `;
|
|
5424
5424
|
}
|
|
5425
5425
|
const o = e.draggableId;
|
|
5426
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
5427
|
-
Provided: [type: ${typeof o}] (value: ${o})`) :
|
|
5426
|
+
o || (process.env.NODE_ENV !== "production" ? 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" && (Co(n()), e.isEnabled && (yo(t, o) || (process.env.NODE_ENV !== "production" ? g(!1, `${r(o)} Unable to find drag handle`) : g(!1))));
|
|
5428
5428
|
});
|
|
5429
5429
|
}
|
|
5430
5430
|
function Ll(e) {
|
|
5431
5431
|
un(() => {
|
|
5432
5432
|
const t = B(e);
|
|
5433
5433
|
Ge(() => {
|
|
5434
|
-
e !== t.current && (process.env.NODE_ENV !== "production" ?
|
|
5434
|
+
e !== t.current && (process.env.NODE_ENV !== "production" ? g(!1, "Draggable isClone prop value changed during component life") : g(!1));
|
|
5435
5435
|
}, [e]);
|
|
5436
5436
|
});
|
|
5437
5437
|
}
|
|
5438
5438
|
function Ze(e) {
|
|
5439
5439
|
const t = gr(e);
|
|
5440
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
5440
|
+
return t || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find required context") : g()), t;
|
|
5441
5441
|
}
|
|
5442
5442
|
function Ml(e) {
|
|
5443
5443
|
e.preventDefault();
|
|
@@ -5461,7 +5461,7 @@ const $l = (e) => {
|
|
|
5461
5461
|
children: p,
|
|
5462
5462
|
draggableId: l,
|
|
5463
5463
|
isEnabled: u,
|
|
5464
|
-
shouldRespectForcePress:
|
|
5464
|
+
shouldRespectForcePress: f,
|
|
5465
5465
|
canDragInteractiveElements: m,
|
|
5466
5466
|
isClone: b,
|
|
5467
5467
|
mapped: h,
|
|
@@ -5473,9 +5473,9 @@ const $l = (e) => {
|
|
|
5473
5473
|
registry: s,
|
|
5474
5474
|
getDraggableRef: r,
|
|
5475
5475
|
canDragInteractiveElements: m,
|
|
5476
|
-
shouldRespectForcePress:
|
|
5476
|
+
shouldRespectForcePress: f,
|
|
5477
5477
|
isEnabled: u
|
|
5478
|
-
}), [d, s, r, m,
|
|
5478
|
+
}), [d, s, r, m, f, u]);
|
|
5479
5479
|
Bl(x);
|
|
5480
5480
|
}
|
|
5481
5481
|
const v = C(() => u ? {
|
|
@@ -5489,14 +5489,14 @@ const $l = (e) => {
|
|
|
5489
5489
|
} : null, [o, i, l, u]), I = D((x) => {
|
|
5490
5490
|
h.type === "DRAGGING" && h.dropping && x.propertyName === "transform" && mr(y);
|
|
5491
5491
|
}, [y, h]), N = C(() => {
|
|
5492
|
-
const x = Rl(h),
|
|
5492
|
+
const x = Rl(h), A = h.type === "DRAGGING" && h.dropping ? I : void 0;
|
|
5493
5493
|
return {
|
|
5494
5494
|
innerRef: n,
|
|
5495
5495
|
draggableProps: {
|
|
5496
5496
|
"data-rfd-draggable-context-id": o,
|
|
5497
5497
|
"data-rfd-draggable-id": l,
|
|
5498
5498
|
style: x,
|
|
5499
|
-
onTransitionEnd:
|
|
5499
|
+
onTransitionEnd: A
|
|
5500
5500
|
},
|
|
5501
5501
|
dragHandleProps: v
|
|
5502
5502
|
};
|
|
@@ -5508,7 +5508,7 @@ const $l = (e) => {
|
|
|
5508
5508
|
droppableId: d.droppableId
|
|
5509
5509
|
}
|
|
5510
5510
|
}), [d.droppableId, d.id, d.index, d.type]);
|
|
5511
|
-
return
|
|
5511
|
+
return L.createElement(L.Fragment, null, p(N, h.snapshot, E));
|
|
5512
5512
|
};
|
|
5513
5513
|
var wo = (e, t) => e === t, So = (e) => {
|
|
5514
5514
|
const {
|
|
@@ -5613,19 +5613,19 @@ function Ul() {
|
|
|
5613
5613
|
snapshot: t(c)
|
|
5614
5614
|
}
|
|
5615
5615
|
})), r = (s) => s ? n(G, s, !0) : null, o = (s, c, a, d) => {
|
|
5616
|
-
const p = a.displaced.visible[s], l = !!(d.inVirtualList && d.effected[s]), u = tt(a),
|
|
5616
|
+
const p = a.displaced.visible[s], l = !!(d.inVirtualList && d.effected[s]), u = tt(a), f = u && u.draggableId === s ? c : null;
|
|
5617
5617
|
if (!p) {
|
|
5618
5618
|
if (!l)
|
|
5619
|
-
return r(
|
|
5619
|
+
return r(f);
|
|
5620
5620
|
if (a.displaced.invisible[s])
|
|
5621
5621
|
return null;
|
|
5622
5622
|
const h = me(d.displacedBy.point), y = e(h.x, h.y);
|
|
5623
|
-
return n(y,
|
|
5623
|
+
return n(y, f, !0);
|
|
5624
5624
|
}
|
|
5625
5625
|
if (l)
|
|
5626
|
-
return r(
|
|
5626
|
+
return r(f);
|
|
5627
5627
|
const m = a.displacedBy.point, b = e(m.x, m.y);
|
|
5628
|
-
return n(b,
|
|
5628
|
+
return n(b, f, p.shouldAnimate);
|
|
5629
5629
|
};
|
|
5630
5630
|
return (s, c) => {
|
|
5631
5631
|
if (Re(s))
|
|
@@ -5647,11 +5647,11 @@ const Hl = () => {
|
|
|
5647
5647
|
areStatePropsEqual: wo
|
|
5648
5648
|
})($l);
|
|
5649
5649
|
function _o(e) {
|
|
5650
|
-
return Ze(gn).isUsingCloneFor === e.draggableId && !e.isClone ? null :
|
|
5650
|
+
return Ze(gn).isUsingCloneFor === e.draggableId && !e.isClone ? null : L.createElement(jl, e);
|
|
5651
5651
|
}
|
|
5652
5652
|
function ql(e) {
|
|
5653
5653
|
const t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
|
|
5654
|
-
return
|
|
5654
|
+
return L.createElement(_o, Xe({}, e, {
|
|
5655
5655
|
isClone: !1,
|
|
5656
5656
|
isEnabled: t,
|
|
5657
5657
|
canDragInteractiveElements: n,
|
|
@@ -5668,7 +5668,7 @@ const mn = (e) => (t) => e === t, Yl = mn("scroll"), Xl = mn("auto"), Kl = mn("v
|
|
|
5668
5668
|
if (process.env.NODE_ENV === "production")
|
|
5669
5669
|
return !1;
|
|
5670
5670
|
const e = Pe(), t = document.documentElement;
|
|
5671
|
-
if (t || (process.env.NODE_ENV,
|
|
5671
|
+
if (t || (process.env.NODE_ENV, g()), !Po(e))
|
|
5672
5672
|
return !1;
|
|
5673
5673
|
const n = window.getComputedStyle(t), r = {
|
|
5674
5674
|
overflowX: n.overflowX,
|
|
@@ -5719,16 +5719,16 @@ var ed = (e) => {
|
|
|
5719
5719
|
return null;
|
|
5720
5720
|
const {
|
|
5721
5721
|
scrollSize: u,
|
|
5722
|
-
client:
|
|
5722
|
+
client: f
|
|
5723
5723
|
} = c, m = lo({
|
|
5724
5724
|
scrollHeight: u.scrollHeight,
|
|
5725
5725
|
scrollWidth: u.scrollWidth,
|
|
5726
|
-
height:
|
|
5727
|
-
width:
|
|
5726
|
+
height: f.paddingBox.height,
|
|
5727
|
+
width: f.paddingBox.width
|
|
5728
5728
|
});
|
|
5729
5729
|
return {
|
|
5730
5730
|
pageMarginBox: c.page.marginBox,
|
|
5731
|
-
frameClient:
|
|
5731
|
+
frameClient: f,
|
|
5732
5732
|
scrollSize: u,
|
|
5733
5733
|
shouldClipSubject: c.shouldClipSubject,
|
|
5734
5734
|
scroll: {
|
|
@@ -5789,13 +5789,13 @@ var rd = ({
|
|
|
5789
5789
|
const a = n.closestScrollable, d = nd(e, a), p = Ye(d, r), l = (() => {
|
|
5790
5790
|
if (!a)
|
|
5791
5791
|
return null;
|
|
5792
|
-
const
|
|
5792
|
+
const f = Rr(a), m = {
|
|
5793
5793
|
scrollHeight: a.scrollHeight,
|
|
5794
5794
|
scrollWidth: a.scrollWidth
|
|
5795
5795
|
};
|
|
5796
5796
|
return {
|
|
5797
|
-
client:
|
|
5798
|
-
page: Ye(
|
|
5797
|
+
client: f,
|
|
5798
|
+
page: Ye(f, r),
|
|
5799
5799
|
scroll: Ft(a),
|
|
5800
5800
|
scrollSize: m,
|
|
5801
5801
|
shouldClipSubject: c
|
|
@@ -5828,7 +5828,7 @@ function sd(e) {
|
|
|
5828
5828
|
type: e.type,
|
|
5829
5829
|
mode: e.mode
|
|
5830
5830
|
}), [e.droppableId, e.mode, e.type]), a = B(c), d = C(() => $((N, E) => {
|
|
5831
|
-
t.current || (process.env.NODE_ENV !== "production" ?
|
|
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,
|
|
5834
5834
|
y: E
|
|
@@ -5840,26 +5840,26 @@ function sd(e) {
|
|
|
5840
5840
|
}, []), l = D(() => {
|
|
5841
5841
|
const N = p();
|
|
5842
5842
|
d(N.x, N.y);
|
|
5843
|
-
}, [p, d]), u = C(() => Ie(l), [l]),
|
|
5843
|
+
}, [p, d]), u = C(() => Ie(l), [l]), f = D(() => {
|
|
5844
5844
|
const N = t.current, E = He(N);
|
|
5845
|
-
if (N && E || (process.env.NODE_ENV !== "production" ?
|
|
5845
|
+
if (N && E || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find scroll options while scrolling") : g()), N.scrollOptions.shouldPublishImmediately) {
|
|
5846
5846
|
l();
|
|
5847
5847
|
return;
|
|
5848
5848
|
}
|
|
5849
5849
|
u();
|
|
5850
5850
|
}, [u, l]), m = D((N, E) => {
|
|
5851
|
-
t.current && (process.env.NODE_ENV !== "production" ?
|
|
5852
|
-
const x = s.current,
|
|
5853
|
-
|
|
5854
|
-
const P = ed(
|
|
5855
|
-
ref:
|
|
5851
|
+
t.current && (process.env.NODE_ENV !== "production" ? g(!1, "Cannot collect a droppable while a drag is occurring") : g());
|
|
5852
|
+
const x = s.current, A = x.getDroppableRef();
|
|
5853
|
+
A || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot collect without a droppable ref") : g());
|
|
5854
|
+
const P = ed(A), U = {
|
|
5855
|
+
ref: A,
|
|
5856
5856
|
descriptor: c,
|
|
5857
5857
|
env: P,
|
|
5858
5858
|
scrollOptions: E
|
|
5859
5859
|
};
|
|
5860
5860
|
t.current = U;
|
|
5861
5861
|
const T = rd({
|
|
5862
|
-
ref:
|
|
5862
|
+
ref: A,
|
|
5863
5863
|
descriptor: c,
|
|
5864
5864
|
env: P,
|
|
5865
5865
|
windowScroll: N,
|
|
@@ -5868,20 +5868,20 @@ function sd(e) {
|
|
|
5868
5868
|
isCombineEnabled: x.isCombineEnabled,
|
|
5869
5869
|
shouldClipSubject: !x.ignoreContainerClipping
|
|
5870
5870
|
}), H = P.closestScrollable;
|
|
5871
|
-
return H && (H.setAttribute(er.contextId, n.contextId), H.addEventListener("scroll",
|
|
5872
|
-
}, [n.contextId, c,
|
|
5871
|
+
return H && (H.setAttribute(er.contextId, n.contextId), H.addEventListener("scroll", f, cr(U.scrollOptions)), process.env.NODE_ENV !== "production" && Ql(H)), T;
|
|
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" ?
|
|
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
|
}, []), h = D(() => {
|
|
5876
5876
|
const N = t.current;
|
|
5877
|
-
N || (process.env.NODE_ENV !== "production" ?
|
|
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(er.contextId), E.removeEventListener("scroll",
|
|
5880
|
-
}, [
|
|
5879
|
+
t.current = null, E && (u.cancel(), E.removeAttribute(er.contextId), E.removeEventListener("scroll", f, cr(N.scrollOptions)));
|
|
5880
|
+
}, [f, u]), y = D((N) => {
|
|
5881
5881
|
const E = t.current;
|
|
5882
|
-
E || (process.env.NODE_ENV !== "production" ?
|
|
5882
|
+
E || (process.env.NODE_ENV !== "production" ? g(!1, "Cannot scroll when there is no drag") : g());
|
|
5883
5883
|
const x = He(E);
|
|
5884
|
-
x || (process.env.NODE_ENV !== "production" ?
|
|
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
5885
|
}, []), v = C(() => ({
|
|
5886
5886
|
getDimensionAndWatchScroll: m,
|
|
5887
5887
|
getScrollWhileDragging: b,
|
|
@@ -5957,14 +5957,14 @@ const ar = {
|
|
|
5957
5957
|
animate: e.animate,
|
|
5958
5958
|
placeholder: e.placeholder
|
|
5959
5959
|
});
|
|
5960
|
-
return
|
|
5960
|
+
return L.createElement(e.placeholder.tagName, {
|
|
5961
5961
|
style: p,
|
|
5962
5962
|
"data-rfd-placeholder-context-id": s,
|
|
5963
5963
|
onTransitionEnd: d,
|
|
5964
5964
|
ref: e.innerRef
|
|
5965
5965
|
});
|
|
5966
5966
|
};
|
|
5967
|
-
var dd =
|
|
5967
|
+
var dd = L.memo(ld);
|
|
5968
5968
|
function St(e) {
|
|
5969
5969
|
return typeof e == "boolean";
|
|
5970
5970
|
}
|
|
@@ -5974,11 +5974,11 @@ function At(e, t) {
|
|
|
5974
5974
|
const ud = [function({
|
|
5975
5975
|
props: t
|
|
5976
5976
|
}) {
|
|
5977
|
-
t.droppableId || (process.env.NODE_ENV !== "production" ?
|
|
5977
|
+
t.droppableId || (process.env.NODE_ENV !== "production" ? 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
|
-
St(t.isDropDisabled) || (process.env.NODE_ENV !== "production" ?
|
|
5981
|
+
St(t.isDropDisabled) || (process.env.NODE_ENV !== "production" ? g(!1, "isDropDisabled must be a boolean") : g()), St(t.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? g(!1, "isCombineEnabled must be a boolean") : g()), St(t.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? g(!1, "ignoreContainerClipping must be a boolean") : g());
|
|
5982
5982
|
}, function({
|
|
5983
5983
|
getDroppableRef: t
|
|
5984
5984
|
}) {
|
|
@@ -5997,18 +5997,18 @@ const ud = [function({
|
|
|
5997
5997
|
}], fd = [function({
|
|
5998
5998
|
props: t
|
|
5999
5999
|
}) {
|
|
6000
|
-
t.renderClone || (process.env.NODE_ENV !== "production" ?
|
|
6000
|
+
t.renderClone || (process.env.NODE_ENV !== "production" ? g(!1, "Must provide a clone render function (renderClone) for virtual lists") : g());
|
|
6001
6001
|
}, function({
|
|
6002
6002
|
getPlaceholderRef: t
|
|
6003
6003
|
}) {
|
|
6004
|
-
t() && (process.env.NODE_ENV !== "production" ?
|
|
6004
|
+
t() && (process.env.NODE_ENV !== "production" ? g(!1, "Expected virtual list to not have a placeholder") : g());
|
|
6005
6005
|
}];
|
|
6006
6006
|
function gd(e) {
|
|
6007
6007
|
Ge(() => {
|
|
6008
6008
|
At(e, ud), e.props.mode === "standard" && At(e, pd), e.props.mode === "virtual" && At(e, fd);
|
|
6009
6009
|
});
|
|
6010
6010
|
}
|
|
6011
|
-
class md extends
|
|
6011
|
+
class md extends L.PureComponent {
|
|
6012
6012
|
constructor(...t) {
|
|
6013
6013
|
super(...t), this.state = {
|
|
6014
6014
|
isVisible: !!this.props.on,
|
|
@@ -6052,7 +6052,7 @@ class md extends V.PureComponent {
|
|
|
6052
6052
|
}
|
|
6053
6053
|
const hd = (e) => {
|
|
6054
6054
|
const t = gr(ot);
|
|
6055
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
6055
|
+
t || (process.env.NODE_ENV !== "production" ? g(!1, "Could not find app context") : g());
|
|
6056
6056
|
const {
|
|
6057
6057
|
contextId: n,
|
|
6058
6058
|
isMovementAllowed: r
|
|
@@ -6064,7 +6064,7 @@ const hd = (e) => {
|
|
|
6064
6064
|
direction: p,
|
|
6065
6065
|
ignoreContainerClipping: l,
|
|
6066
6066
|
isDropDisabled: u,
|
|
6067
|
-
isCombineEnabled:
|
|
6067
|
+
isCombineEnabled: f,
|
|
6068
6068
|
snapshot: m,
|
|
6069
6069
|
useClone: b,
|
|
6070
6070
|
updateViewportMaxScroll: h,
|
|
@@ -6090,18 +6090,18 @@ const hd = (e) => {
|
|
|
6090
6090
|
mode: d,
|
|
6091
6091
|
direction: p,
|
|
6092
6092
|
isDropDisabled: u,
|
|
6093
|
-
isCombineEnabled:
|
|
6093
|
+
isCombineEnabled: f,
|
|
6094
6094
|
ignoreContainerClipping: l,
|
|
6095
6095
|
getDroppableRef: v
|
|
6096
6096
|
});
|
|
6097
|
-
const
|
|
6097
|
+
const A = C(() => L.createElement(md, {
|
|
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
|
-
}) =>
|
|
6104
|
+
}) => L.createElement(dd, {
|
|
6105
6105
|
placeholder: Q,
|
|
6106
6106
|
onClose: M,
|
|
6107
6107
|
innerRef: E,
|
|
@@ -6110,12 +6110,12 @@ const hd = (e) => {
|
|
|
6110
6110
|
onTransitionEnd: x
|
|
6111
6111
|
})), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), P = C(() => ({
|
|
6112
6112
|
innerRef: I,
|
|
6113
|
-
placeholder:
|
|
6113
|
+
placeholder: A,
|
|
6114
6114
|
droppableProps: {
|
|
6115
6115
|
"data-rfd-droppable-id": c,
|
|
6116
6116
|
"data-rfd-droppable-context-id": n
|
|
6117
6117
|
}
|
|
6118
|
-
}), [n, c,
|
|
6118
|
+
}), [n, c, A, I]), U = b ? b.dragging.draggableId : null, T = C(() => ({
|
|
6119
6119
|
droppableId: c,
|
|
6120
6120
|
type: a,
|
|
6121
6121
|
isUsingCloneFor: U
|
|
@@ -6126,7 +6126,7 @@ const hd = (e) => {
|
|
|
6126
6126
|
const {
|
|
6127
6127
|
dragging: M,
|
|
6128
6128
|
render: Q
|
|
6129
|
-
} = b, de =
|
|
6129
|
+
} = b, de = L.createElement(_o, {
|
|
6130
6130
|
draggableId: M.draggableId,
|
|
6131
6131
|
index: M.source.index,
|
|
6132
6132
|
isClone: !0,
|
|
@@ -6136,12 +6136,12 @@ const hd = (e) => {
|
|
|
6136
6136
|
}, (ee, Fe) => Q(ee, Fe, M));
|
|
6137
6137
|
return Lo.createPortal(de, y());
|
|
6138
6138
|
}
|
|
6139
|
-
return
|
|
6139
|
+
return L.createElement(gn.Provider, {
|
|
6140
6140
|
value: T
|
|
6141
6141
|
}, s(P, m), H());
|
|
6142
6142
|
};
|
|
6143
6143
|
function bd() {
|
|
6144
|
-
return document.body || (process.env.NODE_ENV !== "production" ?
|
|
6144
|
+
return document.body || (process.env.NODE_ENV !== "production" ? g(!1, "document.body is not ready") : g()), document.body;
|
|
6145
6145
|
}
|
|
6146
6146
|
const lr = {
|
|
6147
6147
|
mode: "standard",
|
|
@@ -6206,7 +6206,7 @@ const lr = {
|
|
|
6206
6206
|
return t;
|
|
6207
6207
|
if (!a)
|
|
6208
6208
|
return e;
|
|
6209
|
-
const
|
|
6209
|
+
const f = {
|
|
6210
6210
|
isDraggingOver: c,
|
|
6211
6211
|
draggingOverWith: l,
|
|
6212
6212
|
draggingFromThisWith: null,
|
|
@@ -6215,7 +6215,7 @@ const lr = {
|
|
|
6215
6215
|
return {
|
|
6216
6216
|
placeholder: d.placeholder,
|
|
6217
6217
|
shouldAnimatePlaceholder: !0,
|
|
6218
|
-
snapshot:
|
|
6218
|
+
snapshot: f,
|
|
6219
6219
|
useClone: null
|
|
6220
6220
|
};
|
|
6221
6221
|
});
|
|
@@ -6225,22 +6225,22 @@ const lr = {
|
|
|
6225
6225
|
const u = i.critical;
|
|
6226
6226
|
if (!_t(d, u))
|
|
6227
6227
|
return t;
|
|
6228
|
-
const
|
|
6229
|
-
return r(a, p, m, m,
|
|
6228
|
+
const f = dr(u, i.dimensions), m = q(i.impact) === a;
|
|
6229
|
+
return r(a, p, m, m, f, l);
|
|
6230
6230
|
}
|
|
6231
6231
|
if (i.phase === "DROP_ANIMATING") {
|
|
6232
6232
|
const u = i.completed;
|
|
6233
6233
|
if (!_t(d, u.critical))
|
|
6234
6234
|
return t;
|
|
6235
|
-
const
|
|
6236
|
-
return r(a, p, So(u.result) === a, q(u.impact) === a,
|
|
6235
|
+
const f = dr(u.critical, i.dimensions);
|
|
6236
|
+
return r(a, p, So(u.result) === a, q(u.impact) === a, f, l);
|
|
6237
6237
|
}
|
|
6238
6238
|
if (i.phase === "IDLE" && i.completed && !i.shouldFlush) {
|
|
6239
6239
|
const u = i.completed;
|
|
6240
6240
|
if (!_t(d, u.critical))
|
|
6241
6241
|
return t;
|
|
6242
|
-
const
|
|
6243
|
-
return
|
|
6242
|
+
const f = q(u.impact) === a, m = !!(u.impact.at && u.impact.at.type === "COMBINE"), b = u.critical.droppable.id === a;
|
|
6243
|
+
return f ? m ? e : t : b ? e : t;
|
|
6244
6244
|
}
|
|
6245
6245
|
return t;
|
|
6246
6246
|
};
|
|
@@ -6253,7 +6253,7 @@ const lr = {
|
|
|
6253
6253
|
}), {
|
|
6254
6254
|
context: ln,
|
|
6255
6255
|
areStatePropsEqual: wo
|
|
6256
|
-
})(hd), Dd = () => /* @__PURE__ */
|
|
6256
|
+
})(hd), Dd = () => /* @__PURE__ */ V(
|
|
6257
6257
|
"svg",
|
|
6258
6258
|
{
|
|
6259
6259
|
width: "16",
|
|
@@ -6264,12 +6264,13 @@ const lr = {
|
|
|
6264
6264
|
strokeWidth: "2",
|
|
6265
6265
|
strokeLinecap: "round",
|
|
6266
6266
|
strokeLinejoin: "round",
|
|
6267
|
+
style: { flexShrink: 0 },
|
|
6267
6268
|
children: [
|
|
6268
6269
|
/* @__PURE__ */ O("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
|
|
6269
6270
|
/* @__PURE__ */ O("circle", { cx: "12", cy: "10", r: "3" })
|
|
6270
6271
|
]
|
|
6271
6272
|
}
|
|
6272
|
-
), Nd = () => /* @__PURE__ */
|
|
6273
|
+
), Nd = () => /* @__PURE__ */ V(
|
|
6273
6274
|
"svg",
|
|
6274
6275
|
{
|
|
6275
6276
|
width: "16",
|
|
@@ -6280,12 +6281,13 @@ const lr = {
|
|
|
6280
6281
|
strokeWidth: "2",
|
|
6281
6282
|
strokeLinecap: "round",
|
|
6282
6283
|
strokeLinejoin: "round",
|
|
6284
|
+
style: { flexShrink: 0 },
|
|
6283
6285
|
children: [
|
|
6284
6286
|
/* @__PURE__ */ O("circle", { cx: "12", cy: "12", r: "10" }),
|
|
6285
6287
|
/* @__PURE__ */ O("polyline", { points: "12 6 12 12 16 14" })
|
|
6286
6288
|
]
|
|
6287
6289
|
}
|
|
6288
|
-
), xd = () => /* @__PURE__ */
|
|
6290
|
+
), xd = () => /* @__PURE__ */ V(
|
|
6289
6291
|
"svg",
|
|
6290
6292
|
{
|
|
6291
6293
|
width: "20",
|
|
@@ -6303,7 +6305,7 @@ const lr = {
|
|
|
6303
6305
|
/* @__PURE__ */ O("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
6304
6306
|
]
|
|
6305
6307
|
}
|
|
6306
|
-
), Id = () => /* @__PURE__ */
|
|
6308
|
+
), Id = () => /* @__PURE__ */ V(
|
|
6307
6309
|
"svg",
|
|
6308
6310
|
{
|
|
6309
6311
|
width: "16",
|
|
@@ -6321,7 +6323,7 @@ const lr = {
|
|
|
6321
6323
|
/* @__PURE__ */ O("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
6322
6324
|
]
|
|
6323
6325
|
}
|
|
6324
|
-
), Od = () => /* @__PURE__ */
|
|
6326
|
+
), Od = () => /* @__PURE__ */ V(
|
|
6325
6327
|
"svg",
|
|
6326
6328
|
{
|
|
6327
6329
|
width: "16",
|
|
@@ -6357,24 +6359,25 @@ const lr = {
|
|
|
6357
6359
|
});
|
|
6358
6360
|
}), t;
|
|
6359
6361
|
}, wd = ({ order: e, pathPeriod: t, isFirst: n, isDone: r, renderOrderExtraData: o }) => {
|
|
6360
|
-
var
|
|
6361
|
-
const [i, s] = Te(!1);
|
|
6362
|
-
return /* @__PURE__ */
|
|
6362
|
+
var a, d, p, l, u, f;
|
|
6363
|
+
const [i, s] = Te(!1), c = (d = (a = e.customer) == null ? void 0 : a.address) != null && d.lat && ((l = (p = e.customer) == null ? void 0 : p.address) != null && l.long) ? `https://maps.google.com/?q=${e.customer.address.lat},${e.customer.address.long}` : "#";
|
|
6364
|
+
return /* @__PURE__ */ V(
|
|
6363
6365
|
"div",
|
|
6364
6366
|
{
|
|
6365
6367
|
style: {
|
|
6366
|
-
...
|
|
6367
|
-
borderTop: n ? "none" : "1px solid #f3f4f6"
|
|
6368
|
+
...S.orderBlock,
|
|
6369
|
+
borderTop: n ? "none" : "1px solid #f3f4f6",
|
|
6370
|
+
backgroundColor: r ? "#fafafa" : "transparent"
|
|
6368
6371
|
},
|
|
6369
6372
|
children: [
|
|
6370
|
-
/* @__PURE__ */
|
|
6371
|
-
/* @__PURE__ */
|
|
6372
|
-
/* @__PURE__ */
|
|
6373
|
+
/* @__PURE__ */ V("div", { style: S.orderHeader, children: [
|
|
6374
|
+
/* @__PURE__ */ V("div", { style: S.gridItem, children: [
|
|
6375
|
+
/* @__PURE__ */ V("div", { style: S.gridLabel, children: [
|
|
6373
6376
|
"ORDER",
|
|
6374
6377
|
" ",
|
|
6375
6378
|
r && /* @__PURE__ */ O("span", { style: { color: "#16a34a", marginLeft: "4px" }, children: "✓ DONE" })
|
|
6376
6379
|
] }),
|
|
6377
|
-
/* @__PURE__ */
|
|
6380
|
+
/* @__PURE__ */ V("div", { style: S.gridValue, children: [
|
|
6378
6381
|
"#",
|
|
6379
6382
|
e.order_id
|
|
6380
6383
|
] })
|
|
@@ -6383,30 +6386,38 @@ const lr = {
|
|
|
6383
6386
|
"button",
|
|
6384
6387
|
{
|
|
6385
6388
|
onClick: () => s(!i),
|
|
6386
|
-
style:
|
|
6389
|
+
style: S.expandButton,
|
|
6387
6390
|
children: i ? /* @__PURE__ */ O(Od, {}) : /* @__PURE__ */ O(Id, {})
|
|
6388
6391
|
}
|
|
6389
6392
|
)
|
|
6390
6393
|
] }),
|
|
6391
|
-
/* @__PURE__ */
|
|
6392
|
-
/* @__PURE__ */
|
|
6393
|
-
/* @__PURE__ */ O("div", { style:
|
|
6394
|
-
/* @__PURE__ */
|
|
6394
|
+
/* @__PURE__ */ V("div", { style: S.detailsGrid, children: [
|
|
6395
|
+
/* @__PURE__ */ V("div", { style: S.gridItem, children: [
|
|
6396
|
+
/* @__PURE__ */ O("div", { style: S.gridLabel, children: "LOCATION" }),
|
|
6397
|
+
/* @__PURE__ */ V("div", { style: S.gridValueWithIcon, children: [
|
|
6395
6398
|
/* @__PURE__ */ O(Dd, {}),
|
|
6396
|
-
|
|
6397
|
-
|
|
6399
|
+
/* @__PURE__ */ O(
|
|
6400
|
+
"a",
|
|
6401
|
+
{
|
|
6402
|
+
href: c,
|
|
6403
|
+
target: "_blank",
|
|
6404
|
+
rel: "noopener noreferrer",
|
|
6405
|
+
style: S.addressLink,
|
|
6406
|
+
children: ((f = (u = e.customer) == null ? void 0 : u.address) == null ? void 0 : f.street_area) || "N/A"
|
|
6407
|
+
}
|
|
6408
|
+
)
|
|
6398
6409
|
] })
|
|
6399
6410
|
] }),
|
|
6400
|
-
/* @__PURE__ */
|
|
6401
|
-
/* @__PURE__ */ O("div", { style:
|
|
6402
|
-
/* @__PURE__ */ O("div", { style:
|
|
6411
|
+
/* @__PURE__ */ V("div", { style: S.gridItem, children: [
|
|
6412
|
+
/* @__PURE__ */ O("div", { style: S.gridLabel, children: "PERIOD" }),
|
|
6413
|
+
/* @__PURE__ */ O("div", { style: S.gridValue, children: t })
|
|
6403
6414
|
] }),
|
|
6404
|
-
/* @__PURE__ */
|
|
6405
|
-
/* @__PURE__ */ O("div", { style:
|
|
6406
|
-
/* @__PURE__ */
|
|
6415
|
+
/* @__PURE__ */ V("div", { style: S.gridItem, children: [
|
|
6416
|
+
/* @__PURE__ */ O("div", { style: S.gridLabel, children: "TIME WINDOW" }),
|
|
6417
|
+
/* @__PURE__ */ V("div", { style: S.gridValueWithIcon, children: [
|
|
6407
6418
|
/* @__PURE__ */ O(Nd, {}),
|
|
6408
6419
|
" ",
|
|
6409
|
-
/* @__PURE__ */
|
|
6420
|
+
/* @__PURE__ */ V("span", { children: [
|
|
6410
6421
|
ur(e.eta_start),
|
|
6411
6422
|
" - ",
|
|
6412
6423
|
ur(e.eta_end)
|
|
@@ -6414,7 +6425,7 @@ const lr = {
|
|
|
6414
6425
|
] })
|
|
6415
6426
|
] })
|
|
6416
6427
|
] }),
|
|
6417
|
-
i && o && /* @__PURE__ */ O("div", { style:
|
|
6428
|
+
i && o && /* @__PURE__ */ O("div", { style: S.extraDataContainer, children: o(e) })
|
|
6418
6429
|
]
|
|
6419
6430
|
}
|
|
6420
6431
|
);
|
|
@@ -6423,60 +6434,77 @@ const lr = {
|
|
|
6423
6434
|
index: t,
|
|
6424
6435
|
pathType: n,
|
|
6425
6436
|
pathPeriod: r,
|
|
6426
|
-
|
|
6427
|
-
|
|
6437
|
+
canEditPath: o,
|
|
6438
|
+
isPathCompleted: i,
|
|
6439
|
+
renderStopActions: s,
|
|
6440
|
+
renderOrderExtraData: c
|
|
6428
6441
|
}) => {
|
|
6429
|
-
const
|
|
6442
|
+
const a = e.orders.every(fr), d = !o || i || a;
|
|
6430
6443
|
return /* @__PURE__ */ O(
|
|
6431
6444
|
ql,
|
|
6432
6445
|
{
|
|
6433
6446
|
draggableId: e.stop_id.toString(),
|
|
6434
6447
|
index: t,
|
|
6435
|
-
isDragDisabled:
|
|
6436
|
-
children: (
|
|
6437
|
-
var
|
|
6438
|
-
return /* @__PURE__ */
|
|
6448
|
+
isDragDisabled: d,
|
|
6449
|
+
children: (p) => {
|
|
6450
|
+
var l, u;
|
|
6451
|
+
return /* @__PURE__ */ V(
|
|
6439
6452
|
"div",
|
|
6440
6453
|
{
|
|
6441
|
-
ref:
|
|
6442
|
-
...
|
|
6443
|
-
style: { ...
|
|
6454
|
+
ref: p.innerRef,
|
|
6455
|
+
...p.draggableProps,
|
|
6456
|
+
style: { ...S.timelineItem, ...p.draggableProps.style },
|
|
6444
6457
|
children: [
|
|
6445
6458
|
/* @__PURE__ */ O(
|
|
6446
6459
|
"div",
|
|
6447
6460
|
{
|
|
6448
6461
|
style: {
|
|
6449
|
-
...
|
|
6450
|
-
...
|
|
6462
|
+
...S.bubble,
|
|
6463
|
+
...a ? S.bubbleCompleted : S.bubblePending
|
|
6451
6464
|
},
|
|
6452
6465
|
children: t + 1
|
|
6453
6466
|
}
|
|
6454
6467
|
),
|
|
6455
|
-
/* @__PURE__ */
|
|
6456
|
-
/* @__PURE__ */
|
|
6457
|
-
/* @__PURE__ */
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6468
|
+
/* @__PURE__ */ V("div", { style: S.card, children: [
|
|
6469
|
+
/* @__PURE__ */ V("div", { style: S.cardHeader, children: [
|
|
6470
|
+
/* @__PURE__ */ V(
|
|
6471
|
+
"div",
|
|
6472
|
+
{
|
|
6473
|
+
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
6474
|
+
children: [
|
|
6475
|
+
/* @__PURE__ */ V("span", { style: S.title, children: [
|
|
6476
|
+
n,
|
|
6477
|
+
" #",
|
|
6478
|
+
e.sequence_rank
|
|
6479
|
+
] }),
|
|
6480
|
+
/* @__PURE__ */ O(
|
|
6481
|
+
"span",
|
|
6482
|
+
{
|
|
6483
|
+
style: a ? S.badgeCompleted : S.badgePending,
|
|
6484
|
+
children: a ? "Completed" : "Pending"
|
|
6485
|
+
}
|
|
6486
|
+
)
|
|
6487
|
+
]
|
|
6488
|
+
}
|
|
6489
|
+
),
|
|
6490
|
+
!d && /* @__PURE__ */ O("div", { ...p.dragHandleProps, children: /* @__PURE__ */ O(xd, {}) })
|
|
6463
6491
|
] }),
|
|
6464
|
-
/* @__PURE__ */
|
|
6492
|
+
/* @__PURE__ */ V("div", { style: S.customerName, children: [
|
|
6465
6493
|
"Customer: ",
|
|
6466
|
-
(
|
|
6494
|
+
(u = (l = e.orders[0]) == null ? void 0 : l.customer) == null ? void 0 : u.name
|
|
6467
6495
|
] }),
|
|
6468
|
-
/* @__PURE__ */ O("div", { style:
|
|
6496
|
+
/* @__PURE__ */ O("div", { style: S.ordersList, children: e.orders.map((f, m) => /* @__PURE__ */ O(
|
|
6469
6497
|
wd,
|
|
6470
6498
|
{
|
|
6471
|
-
order:
|
|
6499
|
+
order: f,
|
|
6472
6500
|
pathPeriod: r,
|
|
6473
|
-
isFirst:
|
|
6474
|
-
isDone: fr(
|
|
6475
|
-
renderOrderExtraData:
|
|
6501
|
+
isFirst: m === 0,
|
|
6502
|
+
isDone: fr(f),
|
|
6503
|
+
renderOrderExtraData: c
|
|
6476
6504
|
},
|
|
6477
|
-
|
|
6505
|
+
f.id
|
|
6478
6506
|
)) }),
|
|
6479
|
-
|
|
6507
|
+
s && /* @__PURE__ */ O("div", { style: S.actionsSlot, children: s(e) })
|
|
6480
6508
|
] })
|
|
6481
6509
|
]
|
|
6482
6510
|
}
|
|
@@ -6488,28 +6516,33 @@ const lr = {
|
|
|
6488
6516
|
path: e,
|
|
6489
6517
|
onReorder: t,
|
|
6490
6518
|
renderStopActions: n,
|
|
6491
|
-
renderOrderExtraData: r
|
|
6519
|
+
renderOrderExtraData: r,
|
|
6520
|
+
canEditPath: o = !0
|
|
6521
|
+
// Default to true so you don't break previous implementations
|
|
6492
6522
|
}) => {
|
|
6493
|
-
|
|
6523
|
+
var d, p;
|
|
6524
|
+
const [i, s] = Te([]);
|
|
6494
6525
|
te(() => {
|
|
6495
|
-
e != null && e.path_orders &&
|
|
6526
|
+
e != null && e.path_orders && s(Cd(e.path_orders));
|
|
6496
6527
|
}, [e]);
|
|
6497
|
-
const
|
|
6498
|
-
if (!
|
|
6499
|
-
const
|
|
6500
|
-
|
|
6528
|
+
const c = (l) => {
|
|
6529
|
+
if (!l.destination) return;
|
|
6530
|
+
const u = Array.from(i), [f] = u.splice(l.source.index, 1);
|
|
6531
|
+
u.splice(l.destination.index, 0, f), s(u), t && t(
|
|
6501
6532
|
e.id,
|
|
6502
|
-
|
|
6533
|
+
u.map((m) => m.stop_id)
|
|
6503
6534
|
);
|
|
6504
6535
|
};
|
|
6505
|
-
|
|
6536
|
+
if (!e || !i.length) return /* @__PURE__ */ O("div", { children: "No Path Data" });
|
|
6537
|
+
const a = typeof e.status == "string" ? e.status.toLowerCase() === "completed" : ((p = (d = e.status) == null ? void 0 : d.code) == null ? void 0 : p.toLowerCase()) === "completed";
|
|
6538
|
+
return /* @__PURE__ */ O("div", { style: S.container, children: /* @__PURE__ */ O(Cl, { onDragEnd: c, children: /* @__PURE__ */ O(Ed, { droppableId: "path-list", children: (l) => /* @__PURE__ */ V(
|
|
6506
6539
|
"div",
|
|
6507
6540
|
{
|
|
6508
|
-
ref:
|
|
6509
|
-
...
|
|
6510
|
-
style:
|
|
6541
|
+
ref: l.innerRef,
|
|
6542
|
+
...l.droppableProps,
|
|
6543
|
+
style: S.timelineWrapper,
|
|
6511
6544
|
children: [
|
|
6512
|
-
/* @__PURE__ */ O("div", { style:
|
|
6545
|
+
/* @__PURE__ */ O("div", { style: S.verticalLine }),
|
|
6513
6546
|
/* @__PURE__ */ O(
|
|
6514
6547
|
"div",
|
|
6515
6548
|
{
|
|
@@ -6518,25 +6551,27 @@ const lr = {
|
|
|
6518
6551
|
flexDirection: "column",
|
|
6519
6552
|
gap: "24px"
|
|
6520
6553
|
},
|
|
6521
|
-
children:
|
|
6554
|
+
children: i.map((u, f) => /* @__PURE__ */ O(
|
|
6522
6555
|
Sd,
|
|
6523
6556
|
{
|
|
6524
|
-
stopGroup:
|
|
6525
|
-
index:
|
|
6557
|
+
stopGroup: u,
|
|
6558
|
+
index: f,
|
|
6526
6559
|
pathType: pr(e.type),
|
|
6527
6560
|
pathPeriod: pr(e.period),
|
|
6561
|
+
canEditPath: o,
|
|
6562
|
+
isPathCompleted: a,
|
|
6528
6563
|
renderStopActions: n,
|
|
6529
6564
|
renderOrderExtraData: r
|
|
6530
6565
|
},
|
|
6531
|
-
|
|
6566
|
+
u.stop_id
|
|
6532
6567
|
))
|
|
6533
6568
|
}
|
|
6534
6569
|
),
|
|
6535
|
-
|
|
6570
|
+
l.placeholder
|
|
6536
6571
|
]
|
|
6537
6572
|
}
|
|
6538
6573
|
) }) }) });
|
|
6539
|
-
},
|
|
6574
|
+
}, S = {
|
|
6540
6575
|
container: { fontFamily: "sans-serif", maxWidth: "800px", margin: "0 auto" },
|
|
6541
6576
|
timelineWrapper: { position: "relative", padding: "20px 0" },
|
|
6542
6577
|
verticalLine: {
|
|
@@ -6563,7 +6598,8 @@ const lr = {
|
|
|
6563
6598
|
justifyContent: "center",
|
|
6564
6599
|
fontWeight: "bold",
|
|
6565
6600
|
backgroundColor: "#fff",
|
|
6566
|
-
border: "2px solid"
|
|
6601
|
+
border: "2px solid",
|
|
6602
|
+
flexShrink: 0
|
|
6567
6603
|
},
|
|
6568
6604
|
bubblePending: { borderColor: "#f3f4f6", color: "#9ca3af" },
|
|
6569
6605
|
bubbleCompleted: {
|
|
@@ -6582,16 +6618,33 @@ const lr = {
|
|
|
6582
6618
|
cardHeader: {
|
|
6583
6619
|
display: "flex",
|
|
6584
6620
|
justifyContent: "space-between",
|
|
6585
|
-
marginBottom: "8px"
|
|
6621
|
+
marginBottom: "8px",
|
|
6622
|
+
alignItems: "center"
|
|
6586
6623
|
},
|
|
6587
6624
|
title: { fontSize: "16px", fontWeight: "bold" },
|
|
6625
|
+
badgePending: {
|
|
6626
|
+
fontSize: "11px",
|
|
6627
|
+
padding: "2px 8px",
|
|
6628
|
+
borderRadius: "12px",
|
|
6629
|
+
backgroundColor: "#f3f4f6",
|
|
6630
|
+
color: "#4b5563",
|
|
6631
|
+
fontWeight: "600"
|
|
6632
|
+
},
|
|
6633
|
+
badgeCompleted: {
|
|
6634
|
+
fontSize: "11px",
|
|
6635
|
+
padding: "2px 8px",
|
|
6636
|
+
borderRadius: "12px",
|
|
6637
|
+
backgroundColor: "#dcfce7",
|
|
6638
|
+
color: "#16a34a",
|
|
6639
|
+
fontWeight: "600"
|
|
6640
|
+
},
|
|
6588
6641
|
customerName: { fontSize: "14px", color: "#6b7280", marginBottom: "12px" },
|
|
6589
6642
|
ordersList: {
|
|
6590
6643
|
backgroundColor: "#f9fafb",
|
|
6591
6644
|
borderRadius: "8px",
|
|
6592
6645
|
overflow: "hidden"
|
|
6593
6646
|
},
|
|
6594
|
-
orderBlock: { padding: "12px" },
|
|
6647
|
+
orderBlock: { padding: "12px", transition: "background-color 0.2s" },
|
|
6595
6648
|
orderHeader: {
|
|
6596
6649
|
display: "flex",
|
|
6597
6650
|
justifyContent: "space-between",
|
|
@@ -6605,28 +6658,31 @@ const lr = {
|
|
|
6605
6658
|
gridValueWithIcon: {
|
|
6606
6659
|
fontSize: "13px",
|
|
6607
6660
|
display: "flex",
|
|
6608
|
-
alignItems: "
|
|
6661
|
+
alignItems: "flex-start",
|
|
6609
6662
|
gap: "4px",
|
|
6610
6663
|
color: "#374151"
|
|
6611
6664
|
},
|
|
6665
|
+
addressLink: {
|
|
6666
|
+
color: "#3b82f6",
|
|
6667
|
+
textDecoration: "underline",
|
|
6668
|
+
wordBreak: "break-word",
|
|
6669
|
+
lineHeight: "1.4"
|
|
6670
|
+
},
|
|
6612
6671
|
expandButton: {
|
|
6613
6672
|
background: "none",
|
|
6614
6673
|
border: "none",
|
|
6615
6674
|
cursor: "pointer",
|
|
6616
|
-
color: "#6b7280"
|
|
6675
|
+
color: "#6b7280",
|
|
6676
|
+
padding: "4px"
|
|
6617
6677
|
},
|
|
6618
6678
|
extraDataContainer: {
|
|
6619
6679
|
marginTop: "12px",
|
|
6620
6680
|
padding: "12px",
|
|
6621
|
-
borderTop: "1px dashed #e5e7eb"
|
|
6681
|
+
borderTop: "1px dashed #e5e7eb",
|
|
6682
|
+
backgroundColor: "#fff",
|
|
6683
|
+
borderRadius: "4px"
|
|
6622
6684
|
},
|
|
6623
|
-
actionsSlot: { marginTop: "16px" }
|
|
6624
|
-
truncate: {
|
|
6625
|
-
whiteSpace: "nowrap",
|
|
6626
|
-
overflow: "hidden",
|
|
6627
|
-
textOverflow: "ellipsis",
|
|
6628
|
-
maxWidth: "150px"
|
|
6629
|
-
}
|
|
6685
|
+
actionsSlot: { marginTop: "16px" }
|
|
6630
6686
|
};
|
|
6631
6687
|
export {
|
|
6632
6688
|
Td as LogisticsDashboard
|