@spscommerce/ds-react 8.23.3 → 8.23.5
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/lib/index.js +260 -248
- package/lib/index.umd.cjs +123 -111
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -808,8 +808,8 @@ function av(e, t = {}) {
|
|
|
808
808
|
if (k === Un.ADDITION || k === Un.ALTERATION) {
|
|
809
809
|
const _ = C.fields[x];
|
|
810
810
|
if (!I.has(_) && (C.fields[x].validate(L[x], bn.ON_CHANGE), k === Un.ADDITION && _.fields))
|
|
811
|
-
for (const [
|
|
812
|
-
U.validate(L[x][
|
|
811
|
+
for (const [V, U] of Object.entries(_.fields))
|
|
812
|
+
U.validate(L[x][V], bn.ON_CHANGE);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -938,9 +938,9 @@ var ec = function(e, t) {
|
|
|
938
938
|
}
|
|
939
939
|
g != null && g === document.body && qa(g) && !qa(document.documentElement) || g != null && qa(g, c) && h.push(g);
|
|
940
940
|
}
|
|
941
|
-
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, T = n.visualViewport ? n.visualViewport.height : innerHeight, E = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), I = N.height, k = N.width, x = N.top, A = N.right, L = N.bottom, C = N.left, O = a === "start" || a === "nearest" ? x : a === "end" ? L : x + I / 2, _ = o === "center" ? C + k / 2 : o === "end" ? A : C,
|
|
941
|
+
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, T = n.visualViewport ? n.visualViewport.height : innerHeight, E = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), I = N.height, k = N.width, x = N.top, A = N.right, L = N.bottom, C = N.left, O = a === "start" || a === "nearest" ? x : a === "end" ? L : x + I / 2, _ = o === "center" ? C + k / 2 : o === "end" ? A : C, V = [], U = 0; U < h.length; U++) {
|
|
942
942
|
var M = h[U], X = M.getBoundingClientRect(), P = X.height, Q = X.width, F = X.top, j = X.right, re = X.bottom, K = X.left;
|
|
943
|
-
if (r === "if-needed" && x >= 0 && C >= 0 && L <= T && A <= v && x >= F && L <= re && C >= K && A <= j) return
|
|
943
|
+
if (r === "if-needed" && x >= 0 && C >= 0 && L <= T && A <= v && x >= F && L <= re && C >= K && A <= j) return V;
|
|
944
944
|
var G = getComputedStyle(M), te = parseInt(G.borderLeftWidth, 10), ee = parseInt(G.borderTopWidth, 10), W = parseInt(G.borderRightWidth, 10), R = parseInt(G.borderBottomWidth, 10), Y = 0, q = 0, ne = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - te - W : 0, oe = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - ee - R : 0, le = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : Q / M.offsetWidth : 0, ae = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : P / M.offsetHeight : 0;
|
|
945
945
|
if (u === M) Y = a === "start" ? O : a === "end" ? O - T : a === "nearest" ? $s(w, w + T, T, ee, R, w + O, w + O + I, I) : O - T / 2, q = o === "start" ? _ : o === "center" ? _ - v / 2 : o === "end" ? _ - v : $s(E, E + v, v, te, W, E + _, E + _ + k, k), Y = Math.max(0, Y + w), q = Math.max(0, q + E);
|
|
946
946
|
else {
|
|
@@ -948,9 +948,9 @@ var ec = function(e, t) {
|
|
|
948
948
|
var se = M.scrollLeft, we = M.scrollTop;
|
|
949
949
|
O += we - (Y = Math.max(0, Math.min(we + Y / ae, M.scrollHeight - P / ae + oe))), _ += se - (q = Math.max(0, Math.min(se + q / le, M.scrollWidth - Q / le + ne)));
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
V.push({ el: M, top: Y, left: q });
|
|
952
952
|
}
|
|
953
|
-
return
|
|
953
|
+
return V;
|
|
954
954
|
};
|
|
955
955
|
function qd(e) {
|
|
956
956
|
return e === Object(e) && Object.keys(e).length !== 0;
|
|
@@ -1439,7 +1439,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1439
1439
|
nullOption: C,
|
|
1440
1440
|
onOptionListChanged: O,
|
|
1441
1441
|
onOptionSelected: _,
|
|
1442
|
-
onPositionFlip:
|
|
1442
|
+
onPositionFlip: V,
|
|
1443
1443
|
onSelfToggle: U,
|
|
1444
1444
|
optionRole: M,
|
|
1445
1445
|
positionOverride: X,
|
|
@@ -1604,7 +1604,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1604
1604
|
}, [x]), s.useEffect(() => {
|
|
1605
1605
|
L && Le(L);
|
|
1606
1606
|
}, [L]), s.useEffect(() => {
|
|
1607
|
-
!oe && se.current && (nt({ value: "" }), se.current.scrollTop = 0), oe &&
|
|
1607
|
+
!oe && se.current && (nt({ value: "" }), se.current.scrollTop = 0), oe && V && V(ge);
|
|
1608
1608
|
}, [oe]);
|
|
1609
1609
|
const dt = K ? K / 16 : G, $n = dt ? { maxHeight: `${dt}rem` } : {};
|
|
1610
1610
|
function $t(Se, ye) {
|
|
@@ -1891,7 +1891,7 @@ function vn({
|
|
|
1891
1891
|
"data-testid": x,
|
|
1892
1892
|
...A
|
|
1893
1893
|
}) {
|
|
1894
|
-
const L = a || r, { wrapperId: C, controlId: O } = xt(p, L), [_,
|
|
1894
|
+
const L = a || r, { wrapperId: C, controlId: O } = xt(p, L), [_, V] = wn({
|
|
1895
1895
|
keyDown: null,
|
|
1896
1896
|
opensUpward: !1
|
|
1897
1897
|
}), U = s.useRef(null), M = s.useRef(null), X = s.useRef(null), {
|
|
@@ -1915,13 +1915,13 @@ function vn({
|
|
|
1915
1915
|
"Down",
|
|
1916
1916
|
"ArrowDown",
|
|
1917
1917
|
"Enter"
|
|
1918
|
-
].indexOf(R.key) > -1 && (R.preventDefault(), R.persist()), R.stopPropagation(),
|
|
1918
|
+
].indexOf(R.key) > -1 && (R.preventDefault(), R.persist()), R.stopPropagation(), V({ keyDown: R })), R.key === "Tab" && F();
|
|
1919
1919
|
}
|
|
1920
1920
|
function te(R) {
|
|
1921
1921
|
R ? Q() : F();
|
|
1922
1922
|
}
|
|
1923
1923
|
function ee(R) {
|
|
1924
|
-
|
|
1924
|
+
V({ opensUpward: R });
|
|
1925
1925
|
}
|
|
1926
1926
|
const W = H(
|
|
1927
1927
|
u || "sps-autocomplete",
|
|
@@ -2962,7 +2962,7 @@ function Bv() {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
var x = p, A = m, L = c, C = l, O = t, _ = f,
|
|
2965
|
+
var x = p, A = m, L = c, C = l, O = t, _ = f, V = r, U = v, M = g, X = n, P = o, Q = a, F = u, j = !1;
|
|
2966
2966
|
function re(se) {
|
|
2967
2967
|
return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), K(se) || k(se) === p;
|
|
2968
2968
|
}
|
|
@@ -3002,7 +3002,7 @@ function Bv() {
|
|
|
3002
3002
|
function ae(se) {
|
|
3003
3003
|
return k(se) === u;
|
|
3004
3004
|
}
|
|
3005
|
-
Be.AsyncMode = x, Be.ConcurrentMode = A, Be.ContextConsumer = L, Be.ContextProvider = C, Be.Element = O, Be.ForwardRef = _, Be.Fragment =
|
|
3005
|
+
Be.AsyncMode = x, Be.ConcurrentMode = A, Be.ContextConsumer = L, Be.ContextProvider = C, Be.Element = O, Be.ForwardRef = _, Be.Fragment = V, Be.Lazy = U, Be.Memo = M, Be.Portal = X, Be.Profiler = P, Be.StrictMode = Q, Be.Suspense = F, Be.isAsyncMode = re, Be.isConcurrentMode = K, Be.isContextConsumer = G, Be.isContextProvider = te, Be.isElement = ee, Be.isForwardRef = W, Be.isFragment = R, Be.isLazy = Y, Be.isMemo = q, Be.isPortal = ne, Be.isProfiler = oe, Be.isStrictMode = le, Be.isSuspense = ae, Be.isValidElementType = I, Be.typeOf = k;
|
|
3006
3006
|
}()), Be;
|
|
3007
3007
|
}
|
|
3008
3008
|
process.env.NODE_ENV === "production" ? Fo.exports = Pv() : Fo.exports = Bv();
|
|
@@ -3322,7 +3322,7 @@ function Vv() {
|
|
|
3322
3322
|
}
|
|
3323
3323
|
return E(K);
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function V(K, G, te, ee, W) {
|
|
3326
3326
|
return new T(
|
|
3327
3327
|
(K || "React class") + ": " + G + " type `" + te + "." + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
3328
3328
|
);
|
|
@@ -3335,7 +3335,7 @@ function Vv() {
|
|
|
3335
3335
|
for (var oe in K) {
|
|
3336
3336
|
var le = K[oe];
|
|
3337
3337
|
if (typeof le != "function")
|
|
3338
|
-
return
|
|
3338
|
+
return V(W, R, Y, oe, F(le));
|
|
3339
3339
|
var ae = le(q, oe, W, R, Y + "." + oe, n);
|
|
3340
3340
|
if (ae)
|
|
3341
3341
|
return ae;
|
|
@@ -3353,7 +3353,7 @@ function Vv() {
|
|
|
3353
3353
|
for (var le in oe) {
|
|
3354
3354
|
var ae = K[le];
|
|
3355
3355
|
if (r(K, le) && typeof ae != "function")
|
|
3356
|
-
return
|
|
3356
|
+
return V(W, R, Y, le, F(ae));
|
|
3357
3357
|
if (!ae)
|
|
3358
3358
|
return new T(
|
|
3359
3359
|
"Invalid " + R + " `" + Y + "` key `" + le + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(te[ee], null, " ") + `
|
|
@@ -3723,8 +3723,8 @@ function ny() {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
|
-
var I = o, k = e, x = c, A = n, L = u, C = f, O = t, _ = a,
|
|
3727
|
-
return $e.ContextConsumer = l, $e.ContextProvider = I, $e.Element = k, $e.ForwardRef = x, $e.Fragment = A, $e.Lazy = L, $e.Memo = C, $e.Portal = O, $e.Profiler = _, $e.StrictMode =
|
|
3726
|
+
var I = o, k = e, x = c, A = n, L = u, C = f, O = t, _ = a, V = r, U = p;
|
|
3727
|
+
return $e.ContextConsumer = l, $e.ContextProvider = I, $e.Element = k, $e.ForwardRef = x, $e.Fragment = A, $e.Lazy = L, $e.Memo = C, $e.Portal = O, $e.Profiler = _, $e.StrictMode = V, $e.Suspense = U, $e.isAsyncMode = function() {
|
|
3728
3728
|
return !1;
|
|
3729
3729
|
}, $e.isConcurrentMode = function() {
|
|
3730
3730
|
return !1;
|
|
@@ -3806,7 +3806,7 @@ function ry() {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
|
-
var x = l, A = o, L = e, C = c, O = n, _ = u,
|
|
3809
|
+
var x = l, A = o, L = e, C = c, O = n, _ = u, V = f, U = t, M = a, X = r, P = p, Q = !1, F = !1;
|
|
3810
3810
|
function j(ae) {
|
|
3811
3811
|
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3812
3812
|
}
|
|
@@ -3846,7 +3846,7 @@ function ry() {
|
|
|
3846
3846
|
function le(ae) {
|
|
3847
3847
|
return k(ae) === p;
|
|
3848
3848
|
}
|
|
3849
|
-
Ke.ContextConsumer = x, Ke.ContextProvider = A, Ke.Element = L, Ke.ForwardRef = C, Ke.Fragment = O, Ke.Lazy = _, Ke.Memo =
|
|
3849
|
+
Ke.ContextConsumer = x, Ke.ContextProvider = A, Ke.Element = L, Ke.ForwardRef = C, Ke.Fragment = O, Ke.Lazy = _, Ke.Memo = V, Ke.Portal = U, Ke.Profiler = M, Ke.StrictMode = X, Ke.Suspense = P, Ke.isAsyncMode = j, Ke.isConcurrentMode = re, Ke.isContextConsumer = K, Ke.isContextProvider = G, Ke.isElement = te, Ke.isForwardRef = ee, Ke.isFragment = W, Ke.isLazy = R, Ke.isMemo = Y, Ke.isPortal = q, Ke.isProfiler = ne, Ke.isStrictMode = oe, Ke.isSuspense = le, Ke.isValidElementType = I, Ke.typeOf = k;
|
|
3850
3850
|
}()), Ke;
|
|
3851
3851
|
}
|
|
3852
3852
|
process.env.NODE_ENV === "production" ? Vo.exports = ny() : Vo.exports = ry();
|
|
@@ -3925,11 +3925,11 @@ function my(e, t) {
|
|
|
3925
3925
|
displayName: O,
|
|
3926
3926
|
wrappedComponentName: C,
|
|
3927
3927
|
WrappedComponent: L
|
|
3928
|
-
}),
|
|
3928
|
+
}), V = I.pure;
|
|
3929
3929
|
function U(F) {
|
|
3930
3930
|
return e(F.dispatch, _);
|
|
3931
3931
|
}
|
|
3932
|
-
var M =
|
|
3932
|
+
var M = V ? tt : function(F) {
|
|
3933
3933
|
return F();
|
|
3934
3934
|
};
|
|
3935
3935
|
function X(F) {
|
|
@@ -3969,7 +3969,7 @@ function my(e, t) {
|
|
|
3969
3969
|
}, [te, De, ae]);
|
|
3970
3970
|
return ve;
|
|
3971
3971
|
}
|
|
3972
|
-
var P =
|
|
3972
|
+
var P = V ? J.memo(X) : X;
|
|
3973
3973
|
if (P.WrappedComponent = L, P.displayName = X.displayName = O, E) {
|
|
3974
3974
|
var Q = J.forwardRef(function(j, re) {
|
|
3975
3975
|
return /* @__PURE__ */ J.createElement(P, be({}, j, {
|
|
@@ -4154,7 +4154,7 @@ function Py(e) {
|
|
|
4154
4154
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? my : n, a = t.mapStateToPropsFactories, o = a === void 0 ? Ey : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? vy : l, p = t.mergePropsFactories, m = p === void 0 ? xy : p, f = t.selectorFactory, u = f === void 0 ? Oy : f;
|
|
4155
4155
|
return function(g, v, T, E) {
|
|
4156
4156
|
E === void 0 && (E = {});
|
|
4157
|
-
var w = E, N = w.pure, I = N === void 0 ? !0 : N, k = w.areStatesEqual, x = k === void 0 ? Ly : k, A = w.areOwnPropsEqual, L = A === void 0 ? so : A, C = w.areStatePropsEqual, O = C === void 0 ? so : C, _ = w.areMergedPropsEqual,
|
|
4157
|
+
var w = E, N = w.pure, I = N === void 0 ? !0 : N, k = w.areStatesEqual, x = k === void 0 ? Ly : k, A = w.areOwnPropsEqual, L = A === void 0 ? so : A, C = w.areStatePropsEqual, O = C === void 0 ? so : C, _ = w.areMergedPropsEqual, V = _ === void 0 ? so : _, U = na(w, Ry), M = oo(g, o, "mapStateToProps"), X = oo(v, c, "mapDispatchToProps"), P = oo(T, m, "mergeProps");
|
|
4158
4158
|
return r(u, be({
|
|
4159
4159
|
// used in error messages
|
|
4160
4160
|
methodName: "connect",
|
|
@@ -4172,7 +4172,7 @@ function Py(e) {
|
|
|
4172
4172
|
areStatesEqual: x,
|
|
4173
4173
|
areOwnPropsEqual: L,
|
|
4174
4174
|
areStatePropsEqual: O,
|
|
4175
|
-
areMergedPropsEqual:
|
|
4175
|
+
areMergedPropsEqual: V
|
|
4176
4176
|
}, U));
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
@@ -4390,7 +4390,7 @@ function os(e) {
|
|
|
4390
4390
|
os.prototype.toString = function() {
|
|
4391
4391
|
return this.message;
|
|
4392
4392
|
};
|
|
4393
|
-
function
|
|
4393
|
+
function $(e, t) {
|
|
4394
4394
|
throw Jy ? new os(Lc) : new os(Lc + ": " + (t || ""));
|
|
4395
4395
|
}
|
|
4396
4396
|
var Zy = function(e) {
|
|
@@ -4583,7 +4583,7 @@ var Zy = function(e) {
|
|
|
4583
4583
|
active: c
|
|
4584
4584
|
};
|
|
4585
4585
|
}, gi = function(e, t) {
|
|
4586
|
-
e.frame || (process.env.NODE_ENV,
|
|
4586
|
+
e.frame || (process.env.NODE_ENV, $());
|
|
4587
4587
|
var n = e.frame, r = Mt(t, n.scroll.initial), a = Lr(r), o = be({}, n, {
|
|
4588
4588
|
scroll: {
|
|
4589
4589
|
initial: n.scroll.initial,
|
|
@@ -4693,7 +4693,7 @@ var va = it(function(e, t) {
|
|
|
4693
4693
|
var h = Si(f, function(T) {
|
|
4694
4694
|
return T.descriptor.id === m;
|
|
4695
4695
|
});
|
|
4696
|
-
h === -1 && (process.env.NODE_ENV !== "production" ?
|
|
4696
|
+
h === -1 && (process.env.NODE_ENV !== "production" ? $(!1, "Could not find displaced item in set") : $());
|
|
4697
4697
|
var g = h - 1;
|
|
4698
4698
|
if (g < 0)
|
|
4699
4699
|
return null;
|
|
@@ -4908,7 +4908,7 @@ var TT = function(e) {
|
|
|
4908
4908
|
return l < c || l > m ? null : l;
|
|
4909
4909
|
}, wT = function(e) {
|
|
4910
4910
|
var t = e.isMovingForward, n = e.isInHomeList, r = e.draggable, a = e.draggables, o = e.destination, l = e.insideDestination, c = e.previousImpact, p = e.viewport, m = e.afterCritical, f = c.at;
|
|
4911
|
-
if (f || (process.env.NODE_ENV !== "production" ?
|
|
4911
|
+
if (f || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot move in direction without previous impact location") : $()), f.type === "REORDER") {
|
|
4912
4912
|
var u = ET({
|
|
4913
4913
|
isMovingForward: t,
|
|
4914
4914
|
isInHomeList: n,
|
|
@@ -4947,7 +4947,7 @@ var TT = function(e) {
|
|
|
4947
4947
|
return An(r, n) ? o ? lt : Lr(a.point) : o ? a.point : lt;
|
|
4948
4948
|
}, DT = function(e) {
|
|
4949
4949
|
var t = e.afterCritical, n = e.impact, r = e.draggables, a = ba(n);
|
|
4950
|
-
a || (process.env.NODE_ENV,
|
|
4950
|
+
a || (process.env.NODE_ENV, $());
|
|
4951
4951
|
var o = a.draggableId, l = r[o].page.borderBox.center, c = CT({
|
|
4952
4952
|
displaced: n.displaced,
|
|
4953
4953
|
afterCritical: t,
|
|
@@ -5170,7 +5170,7 @@ var _T = function(e) {
|
|
|
5170
5170
|
};
|
|
5171
5171
|
}, Tt = function(t) {
|
|
5172
5172
|
var n = t.subject.active;
|
|
5173
|
-
return n || (process.env.NODE_ENV !== "production" ?
|
|
5173
|
+
return n || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot get clipped area from droppable") : $()), n;
|
|
5174
5174
|
}, LT = function(e) {
|
|
5175
5175
|
var t = e.isMovingForward, n = e.pageBorderBoxCenter, r = e.source, a = e.droppables, o = e.viewport, l = r.subject.active;
|
|
5176
5176
|
if (!l)
|
|
@@ -5250,7 +5250,7 @@ var _T = function(e) {
|
|
|
5250
5250
|
});
|
|
5251
5251
|
}, Rp = function(t, n, r) {
|
|
5252
5252
|
var a = t.frame;
|
|
5253
|
-
Pr(n, t) && (process.env.NODE_ENV !== "production" ?
|
|
5253
|
+
Pr(n, t) && (process.env.NODE_ENV !== "production" ? $(!1, "Should not add placeholder space to home list") : $()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot add placeholder size to a subject when it already has one") : $());
|
|
5254
5254
|
var o = bs(t.axis, n.displaceBy).point, l = AT(t, o, r), c = {
|
|
5255
5255
|
placeholderSize: o,
|
|
5256
5256
|
increasedBy: l,
|
|
@@ -5279,7 +5279,7 @@ var _T = function(e) {
|
|
|
5279
5279
|
});
|
|
5280
5280
|
}, FT = function(t) {
|
|
5281
5281
|
var n = t.subject.withPlaceholder;
|
|
5282
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
5282
|
+
n || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot remove placeholder form subject when there was none") : $());
|
|
5283
5283
|
var r = t.frame;
|
|
5284
5284
|
if (!r) {
|
|
5285
5285
|
var a = Ir({
|
|
@@ -5293,7 +5293,7 @@ var _T = function(e) {
|
|
|
5293
5293
|
});
|
|
5294
5294
|
}
|
|
5295
5295
|
var o = n.oldFrameMaxScroll;
|
|
5296
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
5296
|
+
o || (process.env.NODE_ENV !== "production" ? $(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : $());
|
|
5297
5297
|
var l = Op(r, o), c = Ir({
|
|
5298
5298
|
page: t.subject.page,
|
|
5299
5299
|
axis: t.axis,
|
|
@@ -5656,9 +5656,9 @@ var Fp = function(e) {
|
|
|
5656
5656
|
});
|
|
5657
5657
|
}, $p = function(e) {
|
|
5658
5658
|
var t = e.state, n = e.dimensions, r = e.viewport;
|
|
5659
|
-
t.movementMode !== "SNAP" && (process.env.NODE_ENV,
|
|
5659
|
+
t.movementMode !== "SNAP" && (process.env.NODE_ENV, $());
|
|
5660
5660
|
var a = t.impact, o = r || t.viewport, l = n || t.dimensions, c = l.draggables, p = l.droppables, m = c[t.critical.draggable.id], f = _t(a);
|
|
5661
|
-
f || (process.env.NODE_ENV !== "production" ?
|
|
5661
|
+
f || (process.env.NODE_ENV !== "production" ? $(!1, "Must be over a destination in SNAP movement mode") : $());
|
|
5662
5662
|
var u = p[f], h = Fp({
|
|
5663
5663
|
impact: a,
|
|
5664
5664
|
viewport: o,
|
|
@@ -5686,7 +5686,7 @@ var Fp = function(e) {
|
|
|
5686
5686
|
};
|
|
5687
5687
|
}, Kp = function(e) {
|
|
5688
5688
|
var t = e.draggable, n = e.home, r = e.draggables, a = e.viewport, o = bs(n.axis, t.displaceBy), l = ar(n.descriptor.id, r), c = l.indexOf(t);
|
|
5689
|
-
c === -1 && (process.env.NODE_ENV !== "production" ?
|
|
5689
|
+
c === -1 && (process.env.NODE_ENV !== "production" ? $(!1, "Expected draggable to be inside home list") : $());
|
|
5690
5690
|
var p = l.slice(c + 1), m = p.reduce(function(g, v) {
|
|
5691
5691
|
return g[v.descriptor.id] = !0, g;
|
|
5692
5692
|
}, {}), f = {
|
|
@@ -5732,7 +5732,7 @@ var Fp = function(e) {
|
|
|
5732
5732
|
return l;
|
|
5733
5733
|
}, rE = function(e) {
|
|
5734
5734
|
var t = e.frame;
|
|
5735
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
5735
|
+
return t || (process.env.NODE_ENV !== "production" ? $(!1, "Expected Droppable to have a frame") : $()), t;
|
|
5736
5736
|
}, sE = function(e) {
|
|
5737
5737
|
var t = e.additions, n = e.updatedDroppables, r = e.viewport, a = r.scroll.diff.value;
|
|
5738
5738
|
return t.map(function(o) {
|
|
@@ -5824,7 +5824,7 @@ var Wc = {
|
|
|
5824
5824
|
shouldFlush: !0
|
|
5825
5825
|
});
|
|
5826
5826
|
if (t.type === "INITIAL_PUBLISH") {
|
|
5827
|
-
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
5827
|
+
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? $(!1, "INITIAL_PUBLISH must come after a IDLE phase") : $());
|
|
5828
5828
|
var n = t.payload, r = n.critical, a = n.clientSelection, o = n.viewport, l = n.dimensions, c = n.movementMode, p = l.draggables[r.draggable.id], m = l.droppables[r.droppable.id], f = {
|
|
5829
5829
|
selection: a,
|
|
5830
5830
|
borderBoxCenter: p.client.borderBox.center,
|
|
@@ -5864,7 +5864,7 @@ var Wc = {
|
|
|
5864
5864
|
if (t.type === "COLLECTION_STARTING") {
|
|
5865
5865
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
5866
5866
|
return e;
|
|
5867
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
5867
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? $(!1, "Collection cannot start from phase " + e.phase) : $());
|
|
5868
5868
|
var w = be({
|
|
5869
5869
|
phase: "COLLECTING"
|
|
5870
5870
|
}, e, {
|
|
@@ -5873,14 +5873,14 @@ var Wc = {
|
|
|
5873
5873
|
return w;
|
|
5874
5874
|
}
|
|
5875
5875
|
if (t.type === "PUBLISH_WHILE_DRAGGING")
|
|
5876
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
5876
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? $(!1, "Unexpected " + t.type + " received in phase " + e.phase) : $()), aE({
|
|
5877
5877
|
state: e,
|
|
5878
5878
|
published: t.payload
|
|
5879
5879
|
});
|
|
5880
5880
|
if (t.type === "MOVE") {
|
|
5881
5881
|
if (e.phase === "DROP_PENDING")
|
|
5882
5882
|
return e;
|
|
5883
|
-
Jn(e) || (process.env.NODE_ENV !== "production" ?
|
|
5883
|
+
Jn(e) || (process.env.NODE_ENV !== "production" ? $(!1, t.type + " not permitted in phase " + e.phase) : $());
|
|
5884
5884
|
var N = t.payload.client;
|
|
5885
5885
|
return Pn(N, e.current.client.selection) ? e : es({
|
|
5886
5886
|
state: e,
|
|
@@ -5891,7 +5891,7 @@ var Wc = {
|
|
|
5891
5891
|
if (t.type === "UPDATE_DROPPABLE_SCROLL") {
|
|
5892
5892
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
5893
5893
|
return po(e);
|
|
5894
|
-
Jn(e) || (process.env.NODE_ENV !== "production" ?
|
|
5894
|
+
Jn(e) || (process.env.NODE_ENV !== "production" ? $(!1, t.type + " not permitted in phase " + e.phase) : $());
|
|
5895
5895
|
var I = t.payload, k = I.id, x = I.newScroll, A = e.dimensions.droppables[k];
|
|
5896
5896
|
if (!A)
|
|
5897
5897
|
return e;
|
|
@@ -5901,11 +5901,11 @@ var Wc = {
|
|
|
5901
5901
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
5902
5902
|
if (e.phase === "DROP_PENDING")
|
|
5903
5903
|
return e;
|
|
5904
|
-
Jn(e) || (process.env.NODE_ENV !== "production" ?
|
|
5905
|
-
var C = t.payload, O = C.id, _ = C.isEnabled,
|
|
5906
|
-
|
|
5907
|
-
but it is already ` + String(
|
|
5908
|
-
var U = be({},
|
|
5904
|
+
Jn(e) || (process.env.NODE_ENV !== "production" ? $(!1, "Attempting to move in an unsupported phase " + e.phase) : $());
|
|
5905
|
+
var C = t.payload, O = C.id, _ = C.isEnabled, V = e.dimensions.droppables[O];
|
|
5906
|
+
V || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find Droppable[id: " + O + "] to toggle its enabled state") : $()), V.isEnabled === _ && (process.env.NODE_ENV !== "production" ? $(!1, "Trying to set droppable isEnabled to " + String(_) + `
|
|
5907
|
+
but it is already ` + String(V.isEnabled)) : $());
|
|
5908
|
+
var U = be({}, V, {
|
|
5909
5909
|
isEnabled: _
|
|
5910
5910
|
});
|
|
5911
5911
|
return co(e, U, !0);
|
|
@@ -5913,10 +5913,10 @@ var Wc = {
|
|
|
5913
5913
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
5914
5914
|
if (e.phase === "DROP_PENDING")
|
|
5915
5915
|
return e;
|
|
5916
|
-
Jn(e) || (process.env.NODE_ENV !== "production" ?
|
|
5916
|
+
Jn(e) || (process.env.NODE_ENV !== "production" ? $(!1, "Attempting to move in an unsupported phase " + e.phase) : $());
|
|
5917
5917
|
var M = t.payload, X = M.id, P = M.isCombineEnabled, Q = e.dimensions.droppables[X];
|
|
5918
|
-
Q || (process.env.NODE_ENV !== "production" ?
|
|
5919
|
-
but it is already ` + String(Q.isCombineEnabled)) :
|
|
5918
|
+
Q || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find Droppable[id: " + X + "] to toggle its isCombineEnabled state") : $()), Q.isCombineEnabled === P && (process.env.NODE_ENV !== "production" ? $(!1, "Trying to set droppable isCombineEnabled to " + String(P) + `
|
|
5919
|
+
but it is already ` + String(Q.isCombineEnabled)) : $());
|
|
5920
5920
|
var F = be({}, Q, {
|
|
5921
5921
|
isCombineEnabled: P
|
|
5922
5922
|
});
|
|
@@ -5925,7 +5925,7 @@ var Wc = {
|
|
|
5925
5925
|
if (t.type === "MOVE_BY_WINDOW_SCROLL") {
|
|
5926
5926
|
if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
|
|
5927
5927
|
return e;
|
|
5928
|
-
Jn(e) || (process.env.NODE_ENV !== "production" ?
|
|
5928
|
+
Jn(e) || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot move by window in phase " + e.phase) : $()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? $(!1, "Window scrolling is currently not supported for fixed lists") : $());
|
|
5929
5929
|
var j = t.payload.newScroll;
|
|
5930
5930
|
if (Pn(e.viewport.scroll.current, j))
|
|
5931
5931
|
return po(e);
|
|
@@ -5958,7 +5958,7 @@ var Wc = {
|
|
|
5958
5958
|
if (t.type === "MOVE_UP" || t.type === "MOVE_DOWN" || t.type === "MOVE_LEFT" || t.type === "MOVE_RIGHT") {
|
|
5959
5959
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
5960
5960
|
return e;
|
|
5961
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
5961
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? $(!1, t.type + " received while not in DRAGGING phase") : $());
|
|
5962
5962
|
var te = HT({
|
|
5963
5963
|
state: e,
|
|
5964
5964
|
type: t.type
|
|
@@ -5972,7 +5972,7 @@ var Wc = {
|
|
|
5972
5972
|
}
|
|
5973
5973
|
if (t.type === "DROP_PENDING") {
|
|
5974
5974
|
var ee = t.payload.reason;
|
|
5975
|
-
e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ?
|
|
5975
|
+
e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? $(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : $());
|
|
5976
5976
|
var W = be({
|
|
5977
5977
|
phase: "DROP_PENDING"
|
|
5978
5978
|
}, e, {
|
|
@@ -5984,7 +5984,7 @@ var Wc = {
|
|
|
5984
5984
|
}
|
|
5985
5985
|
if (t.type === "DROP_ANIMATE") {
|
|
5986
5986
|
var R = t.payload, Y = R.completed, q = R.dropDuration, ne = R.newHomeClientOffset;
|
|
5987
|
-
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
5987
|
+
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot animate drop from phase " + e.phase) : $());
|
|
5988
5988
|
var oe = {
|
|
5989
5989
|
phase: "DROP_ANIMATING",
|
|
5990
5990
|
completed: Y,
|
|
@@ -6150,7 +6150,7 @@ var DE = function(e) {
|
|
|
6150
6150
|
var l = o.payload, c = l.id, p = l.clientSelection, m = l.movementMode, f = n();
|
|
6151
6151
|
f.phase === "DROP_ANIMATING" && r(Di({
|
|
6152
6152
|
completed: f.completed
|
|
6153
|
-
})), n().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
6153
|
+
})), n().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? $(!1, "Unexpected phase to start a drag") : $()), r(Ci()), r(iE({
|
|
6154
6154
|
draggableId: c,
|
|
6155
6155
|
movementMode: m
|
|
6156
6156
|
}));
|
|
@@ -6272,7 +6272,7 @@ var DE = function(e) {
|
|
|
6272
6272
|
}
|
|
6273
6273
|
if (o.phase !== "IDLE") {
|
|
6274
6274
|
var c = o.phase === "DROP_PENDING" && o.isWaiting;
|
|
6275
|
-
c && (process.env.NODE_ENV !== "production" ?
|
|
6275
|
+
c && (process.env.NODE_ENV !== "production" ? $(!1, "A DROP action occurred while DROP_PENDING and still waiting") : $()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot drop in phase: " + o.phase) : $());
|
|
6276
6276
|
var p = o.critical, m = o.dimensions, f = m.draggables[o.critical.draggable.id], u = _E({
|
|
6277
6277
|
reason: l,
|
|
6278
6278
|
lastImpact: o.impact,
|
|
@@ -6351,10 +6351,10 @@ function LE(e) {
|
|
|
6351
6351
|
return o !== Ln;
|
|
6352
6352
|
}
|
|
6353
6353
|
function c() {
|
|
6354
|
-
l() && (process.env.NODE_ENV !== "production" ?
|
|
6354
|
+
l() && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot start scroll listener when already active") : $()), o = At(window, [a]);
|
|
6355
6355
|
}
|
|
6356
6356
|
function p() {
|
|
6357
|
-
l() || (process.env.NODE_ENV !== "production" ?
|
|
6357
|
+
l() || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot stop scroll listener when not active") : $()), r.cancel(), o(), o = Ln;
|
|
6358
6358
|
}
|
|
6359
6359
|
return {
|
|
6360
6360
|
start: c,
|
|
@@ -6402,7 +6402,7 @@ var PE = function(t) {
|
|
|
6402
6402
|
var l = Si(e, function(m) {
|
|
6403
6403
|
return m.timerId === o;
|
|
6404
6404
|
});
|
|
6405
|
-
l === -1 && (process.env.NODE_ENV !== "production" ?
|
|
6405
|
+
l === -1 && (process.env.NODE_ENV !== "production" ? $(!1, "Could not find timer") : $());
|
|
6406
6406
|
var c = e.splice(l, 1), p = c[0];
|
|
6407
6407
|
p.callback();
|
|
6408
6408
|
}, n = function(o) {
|
|
@@ -6457,7 +6457,7 @@ var PE = function(t) {
|
|
|
6457
6457
|
t(n, l), o.wasCalled() || r(a(n));
|
|
6458
6458
|
}, HE = function(e, t) {
|
|
6459
6459
|
var n = FE(), r = null, a = function(h, g) {
|
|
6460
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
6460
|
+
r && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : $()), zr("onBeforeCapture", function() {
|
|
6461
6461
|
var v = e().onBeforeCapture;
|
|
6462
6462
|
if (v) {
|
|
6463
6463
|
var T = {
|
|
@@ -6468,12 +6468,12 @@ var PE = function(t) {
|
|
|
6468
6468
|
}
|
|
6469
6469
|
});
|
|
6470
6470
|
}, o = function(h, g) {
|
|
6471
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
6471
|
+
r && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : $()), zr("onBeforeDragStart", function() {
|
|
6472
6472
|
var v = e().onBeforeDragStart;
|
|
6473
6473
|
v && v(Hs(h, g));
|
|
6474
6474
|
});
|
|
6475
6475
|
}, l = function(h, g) {
|
|
6476
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
6476
|
+
r && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : $());
|
|
6477
6477
|
var v = Hs(h, g);
|
|
6478
6478
|
r = {
|
|
6479
6479
|
mode: g,
|
|
@@ -6487,7 +6487,7 @@ var PE = function(t) {
|
|
|
6487
6487
|
});
|
|
6488
6488
|
}, c = function(h, g) {
|
|
6489
6489
|
var v = bi(g), T = ba(g);
|
|
6490
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
6490
|
+
r || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onDragMove when onDragStart has not been called") : $());
|
|
6491
6491
|
var E = !KE(h, r.lastCritical);
|
|
6492
6492
|
E && (r.lastCritical = h);
|
|
6493
6493
|
var w = !VE(r.lastLocation, v);
|
|
@@ -6505,9 +6505,9 @@ var PE = function(t) {
|
|
|
6505
6505
|
});
|
|
6506
6506
|
}
|
|
6507
6507
|
}, p = function() {
|
|
6508
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
6508
|
+
r || (process.env.NODE_ENV !== "production" ? $(!1, "Can only flush responders while dragging") : $()), n.flush();
|
|
6509
6509
|
}, m = function(h) {
|
|
6510
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
6510
|
+
r || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : $()), r = null, zr("onDragEnd", function() {
|
|
6511
6511
|
return uo(e().onDragEnd, h, t, Zs.onDragEnd);
|
|
6512
6512
|
});
|
|
6513
6513
|
}, f = function() {
|
|
@@ -6565,7 +6565,7 @@ var PE = function(t) {
|
|
|
6565
6565
|
return;
|
|
6566
6566
|
}
|
|
6567
6567
|
var r = e.getState();
|
|
6568
|
-
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ?
|
|
6568
|
+
r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot finish a drop animating when no drop is occurring") : $()), e.dispatch(Di({
|
|
6569
6569
|
completed: r.completed
|
|
6570
6570
|
}));
|
|
6571
6571
|
};
|
|
@@ -6640,7 +6640,7 @@ var PE = function(t) {
|
|
|
6640
6640
|
if (r.type === "INITIAL_PUBLISH") {
|
|
6641
6641
|
n(r);
|
|
6642
6642
|
var a = t.getState();
|
|
6643
|
-
a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
6643
|
+
a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? $(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : $()), e.start(a);
|
|
6644
6644
|
return;
|
|
6645
6645
|
}
|
|
6646
6646
|
n(r), e.scroll(t.getState());
|
|
@@ -6720,7 +6720,7 @@ var zp = function(e) {
|
|
|
6720
6720
|
return l;
|
|
6721
6721
|
}, jp = function() {
|
|
6722
6722
|
var e = document.documentElement;
|
|
6723
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
6723
|
+
return e || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find document.documentElement") : $()), e;
|
|
6724
6724
|
}, qp = function() {
|
|
6725
6725
|
var e = jp(), t = zp({
|
|
6726
6726
|
scrollHeight: e.scrollHeight,
|
|
@@ -6786,17 +6786,17 @@ var nw = function(e, t) {
|
|
|
6786
6786
|
},
|
|
6787
6787
|
registry: e
|
|
6788
6788
|
}), a = function(g, v) {
|
|
6789
|
-
e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6789
|
+
e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot update is enabled flag of Droppable " + g + " as it is not registered") : $()), n && t.updateDroppableIsEnabled({
|
|
6790
6790
|
id: g,
|
|
6791
6791
|
isEnabled: v
|
|
6792
6792
|
});
|
|
6793
6793
|
}, o = function(g, v) {
|
|
6794
|
-
n && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6794
|
+
n && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot update isCombineEnabled flag of Droppable " + g + " as it is not registered") : $()), t.updateDroppableIsCombineEnabled({
|
|
6795
6795
|
id: g,
|
|
6796
6796
|
isCombineEnabled: v
|
|
6797
6797
|
}));
|
|
6798
6798
|
}, l = function(g, v) {
|
|
6799
|
-
n && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6799
|
+
n && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot update the scroll on Droppable " + g + " as it is not registered") : $()), t.updateDroppableScroll({
|
|
6800
6800
|
id: g,
|
|
6801
6801
|
newScroll: v
|
|
6802
6802
|
}));
|
|
@@ -6811,11 +6811,11 @@ var nw = function(e, t) {
|
|
|
6811
6811
|
}), n.unsubscribe(), n = null;
|
|
6812
6812
|
}
|
|
6813
6813
|
}, m = function(g) {
|
|
6814
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
6814
|
+
n || (process.env.NODE_ENV !== "production" ? $(!1, "Should only be subscribed when a collection is occurring") : $());
|
|
6815
6815
|
var v = n.critical.draggable;
|
|
6816
6816
|
g.type === "ADDITION" && Uc(e, v, g.value) && r.add(g.value), g.type === "REMOVAL" && Uc(e, v, g.value) && r.remove(g.value);
|
|
6817
6817
|
}, f = function(g) {
|
|
6818
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
6818
|
+
n && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot start capturing critical dimensions as there is already a collection") : $());
|
|
6819
6819
|
var v = e.draggable.getById(g.draggableId), T = e.droppable.getById(v.descriptor.droppableId), E = {
|
|
6820
6820
|
draggable: v.descriptor,
|
|
6821
6821
|
droppable: T.descriptor
|
|
@@ -6847,7 +6847,7 @@ var nw = function(e, t) {
|
|
|
6847
6847
|
});
|
|
6848
6848
|
}), aw = function(t, n) {
|
|
6849
6849
|
var r = Fn(sw(n), function(a) {
|
|
6850
|
-
return a.frame || (process.env.NODE_ENV !== "production" ?
|
|
6850
|
+
return a.frame || (process.env.NODE_ENV !== "production" ? $(!1, "Invalid result") : $()), Lp(a.frame.pageMarginBox)(t);
|
|
6851
6851
|
});
|
|
6852
6852
|
return r;
|
|
6853
6853
|
}, ow = function(e) {
|
|
@@ -7069,7 +7069,7 @@ var nw = function(e, t) {
|
|
|
7069
7069
|
}
|
|
7070
7070
|
}, Sw = function(e) {
|
|
7071
7071
|
var t = e.scrollWindow, n = e.scrollDroppable, r = as(t), a = as(n), o = null, l = function(f) {
|
|
7072
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
7072
|
+
o || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fluid scroll if not dragging") : $());
|
|
7073
7073
|
var u = o, h = u.shouldUseTimeDampening, g = u.dragStartTime;
|
|
7074
7074
|
Zc({
|
|
7075
7075
|
state: f,
|
|
@@ -7079,7 +7079,7 @@ var nw = function(e, t) {
|
|
|
7079
7079
|
shouldUseTimeDampening: h
|
|
7080
7080
|
});
|
|
7081
7081
|
}, c = function(f) {
|
|
7082
|
-
vs(), o && (process.env.NODE_ENV !== "production" ?
|
|
7082
|
+
vs(), o && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot start auto scrolling when already started") : $());
|
|
7083
7083
|
var u = Date.now(), h = !1, g = function() {
|
|
7084
7084
|
h = !0;
|
|
7085
7085
|
};
|
|
@@ -7131,7 +7131,7 @@ var nw = function(e, t) {
|
|
|
7131
7131
|
var f = m.scrollJumpRequest;
|
|
7132
7132
|
if (f) {
|
|
7133
7133
|
var u = _t(m.impact);
|
|
7134
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
7134
|
+
u || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot perform a jump scroll when there is no destination") : $());
|
|
7135
7135
|
var h = o(m.dimensions.droppables[u], f);
|
|
7136
7136
|
if (h) {
|
|
7137
7137
|
var g = m.viewport, v = l(m.isWindowScrollAllowed, g, h);
|
|
@@ -7253,7 +7253,7 @@ var nw = function(e, t) {
|
|
|
7253
7253
|
};
|
|
7254
7254
|
}, Ot = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Kd : We, fo = function() {
|
|
7255
7255
|
var t = document.querySelector("head");
|
|
7256
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
7256
|
+
return t || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find the head to append a style to") : $()), t;
|
|
7257
7257
|
}, Qc = function(t) {
|
|
7258
7258
|
var n = document.createElement("style");
|
|
7259
7259
|
return t && n.setAttribute("nonce", t), n.type = "text/css", n;
|
|
@@ -7263,18 +7263,18 @@ function Cw(e, t) {
|
|
|
7263
7263
|
return ww(e);
|
|
7264
7264
|
}, [e]), r = fe(null), a = fe(null), o = he(it(function(u) {
|
|
7265
7265
|
var h = a.current;
|
|
7266
|
-
h || (process.env.NODE_ENV !== "production" ?
|
|
7266
|
+
h || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot set dynamic style element if it is not set") : $()), h.textContent = u;
|
|
7267
7267
|
}), []), l = he(function(u) {
|
|
7268
7268
|
var h = r.current;
|
|
7269
|
-
h || (process.env.NODE_ENV !== "production" ?
|
|
7269
|
+
h || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot set dynamic style element if it is not set") : $()), h.textContent = u;
|
|
7270
7270
|
}, []);
|
|
7271
7271
|
Ot(function() {
|
|
7272
|
-
!r.current && !a.current || (process.env.NODE_ENV !== "production" ?
|
|
7272
|
+
!r.current && !a.current || (process.env.NODE_ENV !== "production" ? $(!1, "style elements already mounted") : $());
|
|
7273
7273
|
var u = Qc(t), h = Qc(t);
|
|
7274
7274
|
return r.current = u, a.current = h, u.setAttribute(Mr + "-always", e), h.setAttribute(Mr + "-dynamic", e), fo().appendChild(u), fo().appendChild(h), l(n.always), o(n.resting), function() {
|
|
7275
7275
|
var g = function(T) {
|
|
7276
7276
|
var E = T.current;
|
|
7277
|
-
E || (process.env.NODE_ENV !== "production" ?
|
|
7277
|
+
E || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot unmount ref as it is not set") : $()), fo().removeChild(E), T.current = null;
|
|
7278
7278
|
};
|
|
7279
7279
|
g(r), g(a);
|
|
7280
7280
|
};
|
|
@@ -7377,7 +7377,7 @@ function Nw() {
|
|
|
7377
7377
|
}
|
|
7378
7378
|
function o(u) {
|
|
7379
7379
|
var h = a(u);
|
|
7380
|
-
return h || (process.env.NODE_ENV !== "production" ?
|
|
7380
|
+
return h || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find draggable entry with id [" + u + "]") : $()), h;
|
|
7381
7381
|
}
|
|
7382
7382
|
var l = {
|
|
7383
7383
|
register: function(h) {
|
|
@@ -7413,7 +7413,7 @@ function Nw() {
|
|
|
7413
7413
|
}
|
|
7414
7414
|
function p(u) {
|
|
7415
7415
|
var h = c(u);
|
|
7416
|
-
return h || (process.env.NODE_ENV !== "production" ?
|
|
7416
|
+
return h || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find droppable entry with id [" + u + "]") : $()), h;
|
|
7417
7417
|
}
|
|
7418
7418
|
var m = {
|
|
7419
7419
|
register: function(h) {
|
|
@@ -7454,7 +7454,7 @@ function xw() {
|
|
|
7454
7454
|
}
|
|
7455
7455
|
var Oi = J.createContext(null), ps = function() {
|
|
7456
7456
|
var e = document.body;
|
|
7457
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
7457
|
+
return e || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find document.body") : $()), e;
|
|
7458
7458
|
}, kw = {
|
|
7459
7459
|
position: "absolute",
|
|
7460
7460
|
width: "1px",
|
|
@@ -7537,7 +7537,7 @@ var Ta = J.createContext(null), Pw = {
|
|
|
7537
7537
|
"react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
|
|
7538
7538
|
}, Bw = /(\d+)\.(\d+)\.(\d+)/, ed = function(t) {
|
|
7539
7539
|
var n = Bw.exec(t);
|
|
7540
|
-
n == null && (process.env.NODE_ENV !== "production" ?
|
|
7540
|
+
n == null && (process.env.NODE_ENV !== "production" ? $(!1, "Unable to parse React version " + t) : $());
|
|
7541
7541
|
var r = Number(n[1]), a = Number(n[2]), o = Number(n[3]);
|
|
7542
7542
|
return {
|
|
7543
7543
|
major: r,
|
|
@@ -7619,14 +7619,14 @@ function Kw() {
|
|
|
7619
7619
|
return l === e;
|
|
7620
7620
|
}
|
|
7621
7621
|
function r(l) {
|
|
7622
|
-
e && (process.env.NODE_ENV !== "production" ?
|
|
7622
|
+
e && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot claim lock as it is already claimed") : $());
|
|
7623
7623
|
var c = {
|
|
7624
7624
|
abandon: l
|
|
7625
7625
|
};
|
|
7626
7626
|
return e = c, c;
|
|
7627
7627
|
}
|
|
7628
7628
|
function a() {
|
|
7629
|
-
e || (process.env.NODE_ENV !== "production" ?
|
|
7629
|
+
e || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot release lock when there is no lock") : $()), e = null;
|
|
7630
7630
|
}
|
|
7631
7631
|
function o() {
|
|
7632
7632
|
e && (e.abandon(), a());
|
|
@@ -7671,7 +7671,7 @@ function eC(e) {
|
|
|
7671
7671
|
l.preventDefault(), u.actions.move(f);
|
|
7672
7672
|
return;
|
|
7673
7673
|
}
|
|
7674
|
-
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
7674
|
+
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot be IDLE") : $());
|
|
7675
7675
|
var h = u.point;
|
|
7676
7676
|
if (Qw(h, f)) {
|
|
7677
7677
|
l.preventDefault();
|
|
@@ -7730,7 +7730,7 @@ function eC(e) {
|
|
|
7730
7730
|
eventName: "webkitmouseforcedown",
|
|
7731
7731
|
fn: function(l) {
|
|
7732
7732
|
var c = r();
|
|
7733
|
-
if (c.type === "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
7733
|
+
if (c.type === "IDLE" && (process.env.NODE_ENV !== "production" ? $(!1, "Unexpected phase") : $()), c.actions.shouldRespectForcePress()) {
|
|
7734
7734
|
t();
|
|
7735
7735
|
return;
|
|
7736
7736
|
}
|
|
@@ -7807,7 +7807,7 @@ function tC(e) {
|
|
|
7807
7807
|
});
|
|
7808
7808
|
n.current = At(window, h, u);
|
|
7809
7809
|
}, [c, l]), m = he(function(u, h) {
|
|
7810
|
-
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
7810
|
+
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? $(!1, "Expected to move from IDLE to PENDING drag") : $()), t.current = {
|
|
7811
7811
|
type: "PENDING",
|
|
7812
7812
|
point: h,
|
|
7813
7813
|
actions: u
|
|
@@ -7908,7 +7908,7 @@ function aC(e) {
|
|
|
7908
7908
|
var p = !0, m = c.snapLift();
|
|
7909
7909
|
t.current();
|
|
7910
7910
|
function f() {
|
|
7911
|
-
p || (process.env.NODE_ENV !== "production" ?
|
|
7911
|
+
p || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot stop capturing a keyboard drag when not capturing") : $()), p = !1, t.current(), r();
|
|
7912
7912
|
}
|
|
7913
7913
|
t.current = At(window, sC(m, f), {
|
|
7914
7914
|
capture: !0,
|
|
@@ -8004,7 +8004,7 @@ function cC(e) {
|
|
|
8004
8004
|
eventName: "touchforcechange",
|
|
8005
8005
|
fn: function(o) {
|
|
8006
8006
|
var l = r();
|
|
8007
|
-
l.type === "IDLE" && (process.env.NODE_ENV,
|
|
8007
|
+
l.type === "IDLE" && (process.env.NODE_ENV, $());
|
|
8008
8008
|
var c = o.touches[0];
|
|
8009
8009
|
if (c) {
|
|
8010
8010
|
var p = c.force >= iC;
|
|
@@ -8085,7 +8085,7 @@ function dC(e) {
|
|
|
8085
8085
|
};
|
|
8086
8086
|
}, [p, r, c]), f = he(function() {
|
|
8087
8087
|
var g = r();
|
|
8088
|
-
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
8088
|
+
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot start dragging from phase " + g.type) : $());
|
|
8089
8089
|
var v = g.actions.fluidLift(g.point);
|
|
8090
8090
|
a({
|
|
8091
8091
|
type: "DRAGGING",
|
|
@@ -8093,7 +8093,7 @@ function dC(e) {
|
|
|
8093
8093
|
hasMoved: !1
|
|
8094
8094
|
});
|
|
8095
8095
|
}, [r, a]), u = he(function(g, v) {
|
|
8096
|
-
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
8096
|
+
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? $(!1, "Expected to move from IDLE to PENDING drag") : $());
|
|
8097
8097
|
var T = setTimeout(f, oC);
|
|
8098
8098
|
a({
|
|
8099
8099
|
type: "PENDING",
|
|
@@ -8125,7 +8125,7 @@ function pC(e) {
|
|
|
8125
8125
|
Li(function() {
|
|
8126
8126
|
var t = Pi(e);
|
|
8127
8127
|
Es(function() {
|
|
8128
|
-
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ?
|
|
8128
|
+
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot change the amount of sensor hooks after mounting") : $(!1));
|
|
8129
8129
|
});
|
|
8130
8130
|
});
|
|
8131
8131
|
}
|
|
@@ -8259,12 +8259,12 @@ function wC(e) {
|
|
|
8259
8259
|
function L() {
|
|
8260
8260
|
t.release(), h = "COMPLETED";
|
|
8261
8261
|
}
|
|
8262
|
-
h !== "PRE_DRAG" && (L(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ?
|
|
8262
|
+
h !== "PRE_DRAG" && (L(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot lift in phase " + h) : $())), r.dispatch(lE(A.liftActionArgs)), h = "DRAGGING";
|
|
8263
8263
|
function C(O, _) {
|
|
8264
8264
|
if (_ === void 0 && (_ = {
|
|
8265
8265
|
shouldBlockNextClick: !1
|
|
8266
8266
|
}), A.cleanup(), _.shouldBlockNextClick) {
|
|
8267
|
-
var
|
|
8267
|
+
var V = At(window, [{
|
|
8268
8268
|
eventName: "click",
|
|
8269
8269
|
fn: EC,
|
|
8270
8270
|
options: {
|
|
@@ -8273,7 +8273,7 @@ function wC(e) {
|
|
|
8273
8273
|
capture: !0
|
|
8274
8274
|
}
|
|
8275
8275
|
}]);
|
|
8276
|
-
setTimeout(
|
|
8276
|
+
setTimeout(V);
|
|
8277
8277
|
}
|
|
8278
8278
|
L(), r.dispatch(Wp({
|
|
8279
8279
|
reason: O
|
|
@@ -8435,7 +8435,7 @@ var NC = function(t) {
|
|
|
8435
8435
|
};
|
|
8436
8436
|
};
|
|
8437
8437
|
function qr(e) {
|
|
8438
|
-
return e.current || (process.env.NODE_ENV !== "production" ?
|
|
8438
|
+
return e.current || (process.env.NODE_ENV !== "production" ? $(!1, "Could not find store from lazy ref") : $()), e.current;
|
|
8439
8439
|
}
|
|
8440
8440
|
function xC(e) {
|
|
8441
8441
|
var t = e.contextId, n = e.setCallbacks, r = e.sensors, a = e.nonce, o = e.dragHandleUsageInstructions, l = fe(null);
|
|
@@ -8566,7 +8566,7 @@ var Ai = function(t) {
|
|
|
8566
8566
|
if (process.env.NODE_ENV === "production")
|
|
8567
8567
|
return !1;
|
|
8568
8568
|
var t = ps(), n = document.documentElement;
|
|
8569
|
-
if (n || (process.env.NODE_ENV,
|
|
8569
|
+
if (n || (process.env.NODE_ENV, $()), !du(t))
|
|
8570
8570
|
return !1;
|
|
8571
8571
|
var r = window.getComputedStyle(n), a = {
|
|
8572
8572
|
overflowX: r.overflowX,
|
|
@@ -8704,7 +8704,7 @@ var Ai = function(t) {
|
|
|
8704
8704
|
};
|
|
8705
8705
|
function la(e) {
|
|
8706
8706
|
var t = nn(e);
|
|
8707
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
8707
|
+
return t || (process.env.NODE_ENV !== "production" ? $(!1, "Could not find required context") : $()), t;
|
|
8708
8708
|
}
|
|
8709
8709
|
var Ys = function(t) {
|
|
8710
8710
|
return t && t.env.closestScrollable || null;
|
|
@@ -8718,7 +8718,7 @@ function GC(e) {
|
|
|
8718
8718
|
};
|
|
8719
8719
|
}, [e.droppableId, e.mode, e.type]), p = fe(c), m = Me(function() {
|
|
8720
8720
|
return it(function(k, x) {
|
|
8721
|
-
t.current || (process.env.NODE_ENV !== "production" ?
|
|
8721
|
+
t.current || (process.env.NODE_ENV !== "production" ? $(!1, "Can only update scroll when dragging") : $());
|
|
8722
8722
|
var A = {
|
|
8723
8723
|
x: k,
|
|
8724
8724
|
y: x
|
|
@@ -8735,7 +8735,7 @@ function GC(e) {
|
|
|
8735
8735
|
return as(u);
|
|
8736
8736
|
}, [u]), g = he(function() {
|
|
8737
8737
|
var k = t.current, x = Ys(k);
|
|
8738
|
-
k && x || (process.env.NODE_ENV !== "production" ?
|
|
8738
|
+
k && x || (process.env.NODE_ENV !== "production" ? $(!1, "Could not find scroll options while scrolling") : $());
|
|
8739
8739
|
var A = k.scrollOptions;
|
|
8740
8740
|
if (A.shouldPublishImmediately) {
|
|
8741
8741
|
u();
|
|
@@ -8743,9 +8743,9 @@ function GC(e) {
|
|
|
8743
8743
|
}
|
|
8744
8744
|
h();
|
|
8745
8745
|
}, [h, u]), v = he(function(k, x) {
|
|
8746
|
-
t.current && (process.env.NODE_ENV !== "production" ?
|
|
8746
|
+
t.current && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot collect a droppable while a drag is occurring") : $());
|
|
8747
8747
|
var A = l.current, L = A.getDroppableRef();
|
|
8748
|
-
L || (process.env.NODE_ENV !== "production" ?
|
|
8748
|
+
L || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot collect without a droppable ref") : $());
|
|
8749
8749
|
var C = FC(L), O = {
|
|
8750
8750
|
ref: L,
|
|
8751
8751
|
descriptor: c,
|
|
@@ -8762,21 +8762,21 @@ function GC(e) {
|
|
|
8762
8762
|
isDropDisabled: A.isDropDisabled,
|
|
8763
8763
|
isCombineEnabled: A.isCombineEnabled,
|
|
8764
8764
|
shouldClipSubject: !A.ignoreContainerClipping
|
|
8765
|
-
}),
|
|
8766
|
-
return
|
|
8765
|
+
}), V = C.closestScrollable;
|
|
8766
|
+
return V && (V.setAttribute(Xc.contextId, n.contextId), V.addEventListener("scroll", g, sd(O.scrollOptions)), process.env.NODE_ENV !== "production" && BC(V)), _;
|
|
8767
8767
|
}, [n.contextId, c, g, l]), T = he(function() {
|
|
8768
8768
|
var k = t.current, x = Ys(k);
|
|
8769
|
-
return k && x || (process.env.NODE_ENV !== "production" ?
|
|
8769
|
+
return k && x || (process.env.NODE_ENV !== "production" ? $(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : $()), Uo(x);
|
|
8770
8770
|
}, []), E = he(function() {
|
|
8771
8771
|
var k = t.current;
|
|
8772
|
-
k || (process.env.NODE_ENV !== "production" ?
|
|
8772
|
+
k || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot stop drag when no active drag") : $());
|
|
8773
8773
|
var x = Ys(k);
|
|
8774
8774
|
t.current = null, x && (h.cancel(), x.removeAttribute(Xc.contextId), x.removeEventListener("scroll", g, sd(k.scrollOptions)));
|
|
8775
8775
|
}, [g, h]), w = he(function(k) {
|
|
8776
8776
|
var x = t.current;
|
|
8777
|
-
x || (process.env.NODE_ENV !== "production" ?
|
|
8777
|
+
x || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot scroll when there is no drag") : $());
|
|
8778
8778
|
var A = Ys(x);
|
|
8779
|
-
A || (process.env.NODE_ENV !== "production" ?
|
|
8779
|
+
A || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot scroll a droppable with no closest scrollable") : $()), A.scrollTop += k.y, A.scrollLeft += k.x;
|
|
8780
8780
|
}, []), N = Me(function() {
|
|
8781
8781
|
return {
|
|
8782
8782
|
getDimensionAndWatchScroll: v,
|
|
@@ -8860,12 +8860,12 @@ function zC(e) {
|
|
|
8860
8860
|
}
|
|
8861
8861
|
var jC = J.memo(zC), Fi = J.createContext(null);
|
|
8862
8862
|
function uu(e) {
|
|
8863
|
-
e && Ts(e) || (process.env.NODE_ENV !== "production" ?
|
|
8863
|
+
e && Ts(e) || (process.env.NODE_ENV !== "production" ? $(!1, `
|
|
8864
8864
|
provided.innerRef has not been provided with a HTMLElement.
|
|
8865
8865
|
|
|
8866
8866
|
You can find a guide on using the innerRef callback functions at:
|
|
8867
8867
|
https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md
|
|
8868
|
-
`) :
|
|
8868
|
+
`) : $());
|
|
8869
8869
|
}
|
|
8870
8870
|
function bo(e) {
|
|
8871
8871
|
return typeof e == "boolean";
|
|
@@ -8877,10 +8877,10 @@ function vo(e, t) {
|
|
|
8877
8877
|
}
|
|
8878
8878
|
var qC = [function(t) {
|
|
8879
8879
|
var n = t.props;
|
|
8880
|
-
n.droppableId || (process.env.NODE_ENV !== "production" ?
|
|
8880
|
+
n.droppableId || (process.env.NODE_ENV !== "production" ? $(!1, "A Droppable requires a droppableId prop") : $()), typeof n.droppableId != "string" && (process.env.NODE_ENV !== "production" ? $(!1, "A Droppable requires a [string] droppableId. Provided: [" + typeof n.droppableId + "]") : $());
|
|
8881
8881
|
}, function(t) {
|
|
8882
8882
|
var n = t.props;
|
|
8883
|
-
bo(n.isDropDisabled) || (process.env.NODE_ENV !== "production" ?
|
|
8883
|
+
bo(n.isDropDisabled) || (process.env.NODE_ENV !== "production" ? $(!1, "isDropDisabled must be a boolean") : $()), bo(n.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? $(!1, "isCombineEnabled must be a boolean") : $()), bo(n.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? $(!1, "ignoreContainerClipping must be a boolean") : $());
|
|
8884
8884
|
}, function(t) {
|
|
8885
8885
|
var n = t.getDroppableRef;
|
|
8886
8886
|
uu(n());
|
|
@@ -8898,10 +8898,10 @@ var qC = [function(t) {
|
|
|
8898
8898
|
}
|
|
8899
8899
|
}], ZC = [function(t) {
|
|
8900
8900
|
var n = t.props;
|
|
8901
|
-
n.renderClone || (process.env.NODE_ENV !== "production" ?
|
|
8901
|
+
n.renderClone || (process.env.NODE_ENV !== "production" ? $(!1, "Must provide a clone render function (renderClone) for virtual lists") : $());
|
|
8902
8902
|
}, function(t) {
|
|
8903
8903
|
var n = t.getPlaceholderRef;
|
|
8904
|
-
n() && (process.env.NODE_ENV !== "production" ?
|
|
8904
|
+
n() && (process.env.NODE_ENV !== "production" ? $(!1, "Expected virtual list to not have a placeholder") : $());
|
|
8905
8905
|
}];
|
|
8906
8906
|
function XC(e) {
|
|
8907
8907
|
Es(function() {
|
|
@@ -9015,7 +9015,7 @@ function iD(e) {
|
|
|
9015
9015
|
};
|
|
9016
9016
|
}, [o, c, l]), m = he(function(g) {
|
|
9017
9017
|
var v = a();
|
|
9018
|
-
return v || (process.env.NODE_ENV !== "production" ?
|
|
9018
|
+
return v || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot get dimension when no ref is set") : $()), oD(n, v, g);
|
|
9019
9019
|
}, [n, a]), f = Me(function() {
|
|
9020
9020
|
return {
|
|
9021
9021
|
uniqueId: t,
|
|
@@ -9043,15 +9043,15 @@ function lD(e, t, n) {
|
|
|
9043
9043
|
return "Draggable[id: " + o + "]: ";
|
|
9044
9044
|
}
|
|
9045
9045
|
var a = e.draggableId;
|
|
9046
|
-
a || (process.env.NODE_ENV !== "production" ?
|
|
9047
|
-
Provided: [type: ` + typeof a + "] (value: " + a + ")") :
|
|
9046
|
+
a || (process.env.NODE_ENV !== "production" ? $(!1, "Draggable requires a draggableId") : $(!1)), typeof a != "string" && (process.env.NODE_ENV !== "production" ? $(!1, `Draggable requires a [string] draggableId.
|
|
9047
|
+
Provided: [type: ` + typeof a + "] (value: " + a + ")") : $(!1)), iT(e.index) || (process.env.NODE_ENV !== "production" ? $(!1, r(a) + " requires an integer index prop") : $(!1)), e.mapped.type !== "DRAGGING" && (uu(n()), e.isEnabled && (tu(t, a) || (process.env.NODE_ENV !== "production" ? $(!1, r(a) + " Unable to find drag handle") : $(!1))));
|
|
9048
9048
|
});
|
|
9049
9049
|
}
|
|
9050
9050
|
function cD(e) {
|
|
9051
9051
|
Li(function() {
|
|
9052
9052
|
var t = fe(e);
|
|
9053
9053
|
Es(function() {
|
|
9054
|
-
e !== t.current && (process.env.NODE_ENV !== "production" ?
|
|
9054
|
+
e !== t.current && (process.env.NODE_ENV !== "production" ? $(!1, "Draggable isClone prop value changed during component life") : $(!1));
|
|
9055
9055
|
}, [e]);
|
|
9056
9056
|
});
|
|
9057
9057
|
}
|
|
@@ -9097,7 +9097,7 @@ function pD(e) {
|
|
|
9097
9097
|
}, [o, l, g, v]), A = he(function(O) {
|
|
9098
9098
|
N.type === "DRAGGING" && N.dropping && O.propertyName === "transform" && I();
|
|
9099
9099
|
}, [I, N]), L = Me(function() {
|
|
9100
|
-
var O = aD(N), _ = N.type === "DRAGGING" && N.dropping ? A : null,
|
|
9100
|
+
var O = aD(N), _ = N.type === "DRAGGING" && N.dropping ? A : null, V = {
|
|
9101
9101
|
innerRef: n,
|
|
9102
9102
|
draggableProps: {
|
|
9103
9103
|
"data-rbd-draggable-context-id": o,
|
|
@@ -9107,7 +9107,7 @@ function pD(e) {
|
|
|
9107
9107
|
},
|
|
9108
9108
|
dragHandleProps: x
|
|
9109
9109
|
};
|
|
9110
|
-
return
|
|
9110
|
+
return V;
|
|
9111
9111
|
}, [o, x, g, N, A, n]), C = Me(function() {
|
|
9112
9112
|
return {
|
|
9113
9113
|
draggableId: u.id,
|
|
@@ -9288,7 +9288,7 @@ function yD(e) {
|
|
|
9288
9288
|
}
|
|
9289
9289
|
function TD(e) {
|
|
9290
9290
|
var t = nn(Ta);
|
|
9291
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
9291
|
+
t || (process.env.NODE_ENV !== "production" ? $(!1, "Could not find app context") : $());
|
|
9292
9292
|
var n = t.contextId, r = t.isMovementAllowed, a = fe(null), o = fe(null), l = e.children, c = e.droppableId, p = e.type, m = e.mode, f = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, T = e.useClone, E = e.updateViewportMaxScroll, w = e.getContainerForClone, N = he(function() {
|
|
9293
9293
|
return a.current;
|
|
9294
9294
|
}, []), I = he(function(U) {
|
|
@@ -9347,7 +9347,7 @@ function TD(e) {
|
|
|
9347
9347
|
isUsingCloneFor: O
|
|
9348
9348
|
};
|
|
9349
9349
|
}, [c, O, p]);
|
|
9350
|
-
function
|
|
9350
|
+
function V() {
|
|
9351
9351
|
if (!T)
|
|
9352
9352
|
return null;
|
|
9353
9353
|
var U = T.dragging, M = T.render, X = J.createElement(gu, {
|
|
@@ -9364,7 +9364,7 @@ function TD(e) {
|
|
|
9364
9364
|
}
|
|
9365
9365
|
return J.createElement(Fi.Provider, {
|
|
9366
9366
|
value: _
|
|
9367
|
-
}, l(C, v),
|
|
9367
|
+
}, l(C, v), V());
|
|
9368
9368
|
}
|
|
9369
9369
|
var yo = function(t, n) {
|
|
9370
9370
|
return t === n.droppable.type;
|
|
@@ -9457,7 +9457,7 @@ var yo = function(t, n) {
|
|
|
9457
9457
|
updateViewportMaxScroll: gE
|
|
9458
9458
|
};
|
|
9459
9459
|
function CD() {
|
|
9460
|
-
return document.body || (process.env.NODE_ENV !== "production" ?
|
|
9460
|
+
return document.body || (process.env.NODE_ENV !== "production" ? $(!1, "document.body is not ready") : $()), document.body;
|
|
9461
9461
|
}
|
|
9462
9462
|
var DD = {
|
|
9463
9463
|
mode: "standard",
|
|
@@ -10579,8 +10579,8 @@ function Cu(e) {
|
|
|
10579
10579
|
unsafelyReplaceClassName: T,
|
|
10580
10580
|
...E
|
|
10581
10581
|
} = e, { t: w } = s.useContext(Ge), [N, I] = s.useState(f), k = typeof a == "boolean" ? a : N;
|
|
10582
|
-
function x(
|
|
10583
|
-
|
|
10582
|
+
function x(V) {
|
|
10583
|
+
V.stopPropagation(), k && (!o || o()) ? (I(!1), p && p()) : !k && (!l || l()) && (I(!0), m && m());
|
|
10584
10584
|
}
|
|
10585
10585
|
const A = () => /* @__PURE__ */ s.createElement(Rr, { checked: g, onChange: c }), L = () => /* @__PURE__ */ s.createElement(
|
|
10586
10586
|
"button",
|
|
@@ -11221,7 +11221,7 @@ function Ca(e) {
|
|
|
11221
11221
|
function _() {
|
|
11222
11222
|
T(Z.nextMonth({ ...v, date: 15 })), f && w(Z.nextMonth({ ...E, date: 15 }));
|
|
11223
11223
|
}
|
|
11224
|
-
function
|
|
11224
|
+
function V(P) {
|
|
11225
11225
|
P.target && P.target.classList.contains(`${Et}-day`) ? f && P.target.classList.contains(`${E.month}`) ? C({
|
|
11226
11226
|
...E,
|
|
11227
11227
|
date: Number(P.target.textContent)
|
|
@@ -11270,7 +11270,7 @@ function Ca(e) {
|
|
|
11270
11270
|
Et,
|
|
11271
11271
|
n
|
|
11272
11272
|
);
|
|
11273
|
-
return v ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver:
|
|
11273
|
+
return v ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver: V }, /* @__PURE__ */ s.createElement("div", { className: `${Et}-head` }, /* @__PURE__ */ s.createElement(
|
|
11274
11274
|
"button",
|
|
11275
11275
|
{
|
|
11276
11276
|
"data-testid": `${u}_prev_month`,
|
|
@@ -11303,7 +11303,7 @@ function Ca(e) {
|
|
|
11303
11303
|
"data-testid": `${u}_${Z.toString(F)}`
|
|
11304
11304
|
},
|
|
11305
11305
|
F ? F.date : ""
|
|
11306
|
-
)))))), f && /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver:
|
|
11306
|
+
)))))), f && /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver: V }, /* @__PURE__ */ s.createElement("div", { className: `${Et}-head` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-month` }, x ? x.format("MMMM") : ""), /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-year` }, E.year)), /* @__PURE__ */ s.createElement(
|
|
11307
11307
|
"button",
|
|
11308
11308
|
{
|
|
11309
11309
|
type: "button",
|
|
@@ -11408,7 +11408,7 @@ function Du({
|
|
|
11408
11408
|
break;
|
|
11409
11409
|
}
|
|
11410
11410
|
}
|
|
11411
|
-
const
|
|
11411
|
+
const V = H(
|
|
11412
11412
|
md,
|
|
11413
11413
|
"sps-text-input",
|
|
11414
11414
|
I && `${md}--open`,
|
|
@@ -11420,7 +11420,7 @@ function Du({
|
|
|
11420
11420
|
St,
|
|
11421
11421
|
{
|
|
11422
11422
|
id: h,
|
|
11423
|
-
className:
|
|
11423
|
+
className: V,
|
|
11424
11424
|
formMeta: r,
|
|
11425
11425
|
inputRef: E,
|
|
11426
11426
|
focusInputOnClick: !0,
|
|
@@ -11707,7 +11707,7 @@ function Nu({
|
|
|
11707
11707
|
Array.isArray(u) ? Z.toStringRange(u, g) : ""
|
|
11708
11708
|
), [C, O] = s.useState(
|
|
11709
11709
|
gd(p, m) || null
|
|
11710
|
-
), [_,
|
|
11710
|
+
), [_, V] = s.useState(), {
|
|
11711
11711
|
showPopup: U,
|
|
11712
11712
|
doShowPopup: M,
|
|
11713
11713
|
doHidePopup: X
|
|
@@ -11725,16 +11725,16 @@ function Nu({
|
|
|
11725
11725
|
const Y = u || [];
|
|
11726
11726
|
let q, ne = C;
|
|
11727
11727
|
const oe = ne ? Q(ne) : "";
|
|
11728
|
-
oe === "Before" ? q = [null, R] : oe === "After" ? q = [R, null] : !Y[0] || Y[1] || Z.isBefore(R, Y[0]) ? q = [R, null] : q = [Y[0], R], (q[0] && q[1] || oe === "Before" || oe === "After") && (X(!0), k && k.current && k.current.focus()), ne && oe !== "Before" && oe !== "After" && (O(null), ne = null), P(q, ne == null ? void 0 : ne.definition), L(Z.toStringRange(q, g)),
|
|
11728
|
+
oe === "Before" ? q = [null, R] : oe === "After" ? q = [R, null] : !Y[0] || Y[1] || Z.isBefore(R, Y[0]) ? q = [R, null] : q = [Y[0], R], (q[0] && q[1] || oe === "Before" || oe === "After") && (X(!0), k && k.current && k.current.focus()), ne && oe !== "Before" && oe !== "After" && (O(null), ne = null), P(q, ne == null ? void 0 : ne.definition), L(Z.toStringRange(q, g)), V(void 0);
|
|
11729
11729
|
}
|
|
11730
11730
|
function j(R) {
|
|
11731
11731
|
L(R.target.value);
|
|
11732
11732
|
let Y = Z.createRangeFrom(R.target.value, g), q = C;
|
|
11733
11733
|
const ne = q ? Q(q) : "";
|
|
11734
|
-
Array.isArray(Y) && (Y[0] && Y[1] && (ne === "Before" || ne === "After") ? (O(null), q = null) : ne === "Before" && Y[0] !== null ? Y = [null, Y[0]] : ne === "After" && Y[0] !== null && (Y = [Y[0], null])), P(Y, q == null ? void 0 : q.definition),
|
|
11734
|
+
Array.isArray(Y) && (Y[0] && Y[1] && (ne === "Before" || ne === "After") ? (O(null), q = null) : ne === "Before" && Y[0] !== null ? Y = [null, Y[0]] : ne === "After" && Y[0] !== null && (Y = [Y[0], null])), P(Y, q == null ? void 0 : q.definition), V(void 0);
|
|
11735
11735
|
}
|
|
11736
11736
|
function re() {
|
|
11737
|
-
L(""), P(),
|
|
11737
|
+
L(""), P(), V(void 0), O(null);
|
|
11738
11738
|
}
|
|
11739
11739
|
function K(R) {
|
|
11740
11740
|
switch (R.key) {
|
|
@@ -11772,7 +11772,7 @@ function Nu({
|
|
|
11772
11772
|
}
|
|
11773
11773
|
}, [u, g]), s.useEffect(() => {
|
|
11774
11774
|
const R = ["Before", "After"].includes(Q(C));
|
|
11775
|
-
!u || C && !R ? L("") : Array.isArray(u) && ((!u[0] || !u[0].hasOwnProperty(rs)) && (!u[1] || !u[1].hasOwnProperty(rs)) && L(Z.toStringRange(u, g)), C ||
|
|
11775
|
+
!u || C && !R ? L("") : Array.isArray(u) && ((!u[0] || !u[0].hasOwnProperty(rs)) && (!u[1] || !u[1].hasOwnProperty(rs)) && L(Z.toStringRange(u, g)), C || V(void 0));
|
|
11776
11776
|
}, [
|
|
11777
11777
|
u,
|
|
11778
11778
|
C,
|
|
@@ -12181,7 +12181,7 @@ const zD = {
|
|
|
12181
12181
|
zeroState: C,
|
|
12182
12182
|
loading: O,
|
|
12183
12183
|
filterByTextAndCaptionKey: _,
|
|
12184
|
-
maxHeightOptionListPx:
|
|
12184
|
+
maxHeightOptionListPx: V,
|
|
12185
12185
|
maxHeightOptionListRem: U,
|
|
12186
12186
|
"data-testid": M,
|
|
12187
12187
|
disableOptionsMemoization: X,
|
|
@@ -12352,7 +12352,7 @@ const zD = {
|
|
|
12352
12352
|
zeroState: C,
|
|
12353
12353
|
ignoreWidthStyles: r,
|
|
12354
12354
|
loading: O,
|
|
12355
|
-
maxHeightPx:
|
|
12355
|
+
maxHeightPx: V,
|
|
12356
12356
|
maxHeightRem: U,
|
|
12357
12357
|
disableOptionsMemoization: X,
|
|
12358
12358
|
disableDefaultOptionsFiltering: P,
|
|
@@ -12860,7 +12860,7 @@ function xu({
|
|
|
12860
12860
|
Array.isArray(p) ? p[1] : void 0,
|
|
12861
12861
|
f,
|
|
12862
12862
|
u
|
|
12863
|
-
), [
|
|
12863
|
+
), [V, U] = s.useState(
|
|
12864
12864
|
O[0]
|
|
12865
12865
|
), [M, X] = s.useState(_[0]), [P, Q] = s.useState(
|
|
12866
12866
|
O[1]
|
|
@@ -12909,7 +12909,7 @@ function xu({
|
|
|
12909
12909
|
Z.validateTimeString(ce.target.value, f) && Q(ce.target.value);
|
|
12910
12910
|
}
|
|
12911
12911
|
function Qe(ce, me, _e) {
|
|
12912
|
-
const ct =
|
|
12912
|
+
const ct = V, Ne = me ?? P, vt = re;
|
|
12913
12913
|
if (ct === O[0] && Ne === O[1] && vt === O[2])
|
|
12914
12914
|
return;
|
|
12915
12915
|
const Dt = Z.createFrom(ct, u);
|
|
@@ -13067,13 +13067,13 @@ function xu({
|
|
|
13067
13067
|
className: "sps-text-input__input",
|
|
13068
13068
|
"data-testid": `${h}_from_date_input`,
|
|
13069
13069
|
id: w,
|
|
13070
|
-
placeholder:
|
|
13070
|
+
placeholder: !V && !ee ? (u == null ? void 0 : u.toUpperCase()) || xr : le ? _[0] : ae ? O[0] : void 0,
|
|
13071
13071
|
onChange: we,
|
|
13072
13072
|
onClick: Y,
|
|
13073
13073
|
onFocus: Y,
|
|
13074
13074
|
onBlur: () => Qe(),
|
|
13075
13075
|
onKeyDown: st("from"),
|
|
13076
|
-
value: ee ? "" :
|
|
13076
|
+
value: ee ? "" : V,
|
|
13077
13077
|
disabled: t
|
|
13078
13078
|
}
|
|
13079
13079
|
), p && !t && /* @__PURE__ */ s.createElement(
|
|
@@ -13601,9 +13601,9 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13601
13601
|
return d.apply(this, arguments);
|
|
13602
13602
|
}, d);
|
|
13603
13603
|
}
|
|
13604
|
-
var
|
|
13604
|
+
var V = {};
|
|
13605
13605
|
function U(i, d) {
|
|
13606
|
-
r.deprecationHandler != null && r.deprecationHandler(i, d),
|
|
13606
|
+
r.deprecationHandler != null && r.deprecationHandler(i, d), V[i] || (O(d), V[i] = !0);
|
|
13607
13607
|
}
|
|
13608
13608
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
13609
13609
|
function M(i) {
|
|
@@ -16693,7 +16693,7 @@ function jt({
|
|
|
16693
16693
|
N.current && !N.current.contains(j.target) && A();
|
|
16694
16694
|
}, []), _ = s.useCallback(() => {
|
|
16695
16695
|
x(), T.current.hideTimer = window.setTimeout(A, a);
|
|
16696
|
-
}, []),
|
|
16696
|
+
}, []), V = s.useCallback((j) => {
|
|
16697
16697
|
var R, Y, q, ne, oe, le;
|
|
16698
16698
|
const [re, K] = j.split(" "), G = (R = I == null ? void 0 : I.current) == null ? void 0 : R.getBoundingClientRect(), te = k.current ? parseInt(((Y = getComputedStyle(k.current)) == null ? void 0 : Y.width) || "0", 10) : 0, ee = te * Math.sqrt(2), W = (ee - te) / 2;
|
|
16699
16699
|
if (["top", "bottom"].includes(re) && K !== "middle") {
|
|
@@ -16754,7 +16754,7 @@ function jt({
|
|
|
16754
16754
|
Q(E ? kr(N, I, m, {
|
|
16755
16755
|
altPosition: f,
|
|
16756
16756
|
setMinWidth: !1,
|
|
16757
|
-
offsets: [c[0] - yd, c[1] +
|
|
16757
|
+
offsets: [c[0] - yd, c[1] + V(m)],
|
|
16758
16758
|
...M
|
|
16759
16759
|
}) : [{}, !1]);
|
|
16760
16760
|
}, [E, m, f, c[0], c[1], e]), s.useEffect(() => {
|
|
@@ -16763,7 +16763,7 @@ function jt({
|
|
|
16763
16763
|
kr(N, I, m, {
|
|
16764
16764
|
altPosition: f,
|
|
16765
16765
|
setMinWidth: !1,
|
|
16766
|
-
offsets: [c[0] - yd, c[1] +
|
|
16766
|
+
offsets: [c[0] - yd, c[1] + V(m)],
|
|
16767
16767
|
...M
|
|
16768
16768
|
})
|
|
16769
16769
|
);
|
|
@@ -17464,7 +17464,7 @@ function Ar(e) {
|
|
|
17464
17464
|
maxHeightOptionListRem: I,
|
|
17465
17465
|
disableOptionsMemoization: k,
|
|
17466
17466
|
...x
|
|
17467
|
-
} = e, { t: A } = s.useContext(Ge), L = rr(l), [C, O] = s.useState(!1), [_,
|
|
17467
|
+
} = e, { t: A } = s.useContext(Ge), L = rr(l), [C, O] = s.useState(!1), [_, V] = s.useState(!1), [U, M] = s.useState(), X = s.useRef(null), P = m.map(
|
|
17468
17468
|
(le) => typeof le == "function" ? le : Object.assign(le[1], {
|
|
17469
17469
|
...Hd,
|
|
17470
17470
|
...le[0]
|
|
@@ -17552,7 +17552,7 @@ function Ar(e) {
|
|
|
17552
17552
|
onOptionSelected: W,
|
|
17553
17553
|
id: F,
|
|
17554
17554
|
attachTo: K,
|
|
17555
|
-
onPositionFlip:
|
|
17555
|
+
onPositionFlip: V,
|
|
17556
17556
|
onSelfToggle: ee,
|
|
17557
17557
|
options: P,
|
|
17558
17558
|
offsets: [0, 0],
|
|
@@ -18479,7 +18479,7 @@ function Pu({
|
|
|
18479
18479
|
function _() {
|
|
18480
18480
|
k(Re.HIDDEN), C(Re.HIDDEN);
|
|
18481
18481
|
}
|
|
18482
|
-
function
|
|
18482
|
+
function V(W) {
|
|
18483
18483
|
W.preventDefault(), _(), A(Eo(x));
|
|
18484
18484
|
}
|
|
18485
18485
|
function U() {
|
|
@@ -18562,7 +18562,7 @@ function Pu({
|
|
|
18562
18562
|
!a && "d-none"
|
|
18563
18563
|
),
|
|
18564
18564
|
tabIndex: 0,
|
|
18565
|
-
onClick:
|
|
18565
|
+
onClick: V
|
|
18566
18566
|
},
|
|
18567
18567
|
/* @__PURE__ */ s.createElement(
|
|
18568
18568
|
"i",
|
|
@@ -19206,9 +19206,9 @@ const kN = ({
|
|
|
19206
19206
|
const O = e.current.querySelector(".sps-table__header-cell-body");
|
|
19207
19207
|
if (O && (O.style.overflow = C ? "hidden" : "", O.style.textOverflow = C ? "ellipsis" : ""), h && g && (h.style.right = "0", h.style.backgroundColor = "", g.style.right = "0", g.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), u) {
|
|
19208
19208
|
const _ = u.querySelectorAll("thead > tr > th");
|
|
19209
|
-
for (let
|
|
19210
|
-
const U = _[
|
|
19211
|
-
_[
|
|
19209
|
+
for (let V = 0; V < _.length; V += 1) {
|
|
19210
|
+
const U = _[V].querySelector(".sps-table__header-cell-body"), M = _[V].querySelector(".sps-table__column-resizer");
|
|
19211
|
+
_[V].style.cursor = "default", _[V] !== e.current && M && (_[V].classList.add("sps-table__header--resizeable"), M.style.display = "block"), U != null && U.textContent && !U.title && (U.title = U.textContent);
|
|
19212
19212
|
}
|
|
19213
19213
|
}
|
|
19214
19214
|
}
|
|
@@ -22439,7 +22439,7 @@ function zu({
|
|
|
22439
22439
|
maxHeightOptionListPx: C,
|
|
22440
22440
|
maxHeightOptionListRem: O,
|
|
22441
22441
|
disableOptionsMemoization: _,
|
|
22442
|
-
"data-testid":
|
|
22442
|
+
"data-testid": V,
|
|
22443
22443
|
...U
|
|
22444
22444
|
}) {
|
|
22445
22445
|
const M = I ?? [], X = m || p, { wrapperId: P, controlId: Q } = xt(u, X), [F, j] = wn({
|
|
@@ -22625,7 +22625,7 @@ function zu({
|
|
|
22625
22625
|
{
|
|
22626
22626
|
type: "text",
|
|
22627
22627
|
ref: G,
|
|
22628
|
-
"data-testid": `${
|
|
22628
|
+
"data-testid": `${V}__option-list-input`,
|
|
22629
22629
|
value: F.searchText,
|
|
22630
22630
|
className: "sps-text-input__input",
|
|
22631
22631
|
placeholder: M.length === 0 ? T : void 0,
|
|
@@ -22655,7 +22655,7 @@ function zu({
|
|
|
22655
22655
|
{
|
|
22656
22656
|
id: `${P}_options`,
|
|
22657
22657
|
ref: te,
|
|
22658
|
-
"data-testid": `${
|
|
22658
|
+
"data-testid": `${V}__option-list`,
|
|
22659
22659
|
attachTo: K,
|
|
22660
22660
|
captionKey: t,
|
|
22661
22661
|
disabledOptions: l ? M : null,
|
|
@@ -23296,8 +23296,8 @@ function ju(e) {
|
|
|
23296
23296
|
return c !== void 0 ? Math.ceil(c / O) : NaN;
|
|
23297
23297
|
}
|
|
23298
23298
|
function N(O = T.page, _ = T.pageSize) {
|
|
23299
|
-
const
|
|
23300
|
-
return
|
|
23299
|
+
const V = w(_), U = O === V && c !== void 0 && c % _ || _, M = h || (V === 0 ? 0 : U), X = (O - 1) * _;
|
|
23300
|
+
return V === 0 ? [0, 0] : [X + 1, X + M];
|
|
23301
23301
|
}
|
|
23302
23302
|
function I(O) {
|
|
23303
23303
|
const _ = {
|
|
@@ -23307,13 +23307,13 @@ function ju(e) {
|
|
|
23307
23307
|
return E(_), _;
|
|
23308
23308
|
}
|
|
23309
23309
|
function k(O, _) {
|
|
23310
|
-
const
|
|
23310
|
+
const V = {
|
|
23311
23311
|
page: _,
|
|
23312
23312
|
pageSize: O,
|
|
23313
23313
|
numPages: w(O),
|
|
23314
23314
|
indices: N(_, O)
|
|
23315
23315
|
};
|
|
23316
|
-
return E(
|
|
23316
|
+
return E(V), V;
|
|
23317
23317
|
}
|
|
23318
23318
|
s.useEffect(() => {
|
|
23319
23319
|
E({
|
|
@@ -25427,7 +25427,7 @@ function em({
|
|
|
25427
25427
|
altPosition: t,
|
|
25428
25428
|
...A
|
|
25429
25429
|
}
|
|
25430
|
-
) : [{}, !1], C = r.position || Ee.BOTTOM_RIGHT, O = r.kind || en.DEFAULT, _ = e.filter((K) => K.unread).length,
|
|
25430
|
+
) : [{}, !1], C = r.position || Ee.BOTTOM_RIGHT, O = r.kind || en.DEFAULT, _ = e.filter((K) => K.unread).length, V = e.filter((K) => K.status === Fs.IN_PROGRESS).length, U = e.some((K) => K.status === Fs.COMPLETED || K.status === Fs.ERRORED), M = s.useRef(o);
|
|
25431
25431
|
M.current = o;
|
|
25432
25432
|
const X = s.useRef(null), P = () => {
|
|
25433
25433
|
g && !v ? (T(!0), a && a()) : v && (T(!1), o && o()), X.current && (X.current.scrollTop = 0);
|
|
@@ -25513,7 +25513,7 @@ function em({
|
|
|
25513
25513
|
onClick: P
|
|
25514
25514
|
},
|
|
25515
25515
|
!!_ && /* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, _),
|
|
25516
|
-
|
|
25516
|
+
V ? /* @__PURE__ */ s.createElement("span", { className: "sps-spinner sps-spinner--small" }) : /* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-list", "aria-hidden": "true" })
|
|
25517
25517
|
),
|
|
25518
25518
|
/* @__PURE__ */ s.createElement(
|
|
25519
25519
|
jt,
|
|
@@ -26321,13 +26321,13 @@ function rm(e) {
|
|
|
26321
26321
|
vv("SpsToggle", nm, e);
|
|
26322
26322
|
const T = l || o, [E, w] = s.useState(t), { wrapperId: N, controlId: I } = xt(c, T), k = `${N}_status-label`, x = `${N}_description`, A = s.useRef(null);
|
|
26323
26323
|
s.useEffect(() => w(t), [t]);
|
|
26324
|
-
function L(
|
|
26325
|
-
var
|
|
26326
|
-
w(
|
|
26324
|
+
function L(_) {
|
|
26325
|
+
var V;
|
|
26326
|
+
w(_.target.checked), T && (T.setValue(_.target.checked), T.markAsDirty()), f && f(_.target.checked), (V = A.current) == null || V.focus();
|
|
26327
26327
|
}
|
|
26328
|
-
const C = H(
|
|
26328
|
+
const C = t ?? E, O = H(
|
|
26329
26329
|
g || "sps-toggle",
|
|
26330
|
-
|
|
26330
|
+
C && "sps-toggle--active",
|
|
26331
26331
|
m && "sps-toggle--large",
|
|
26332
26332
|
a && "sps-toggle--disabled",
|
|
26333
26333
|
n
|
|
@@ -26342,14 +26342,14 @@ function rm(e) {
|
|
|
26342
26342
|
ref: u,
|
|
26343
26343
|
"data-testid": `${h}`
|
|
26344
26344
|
},
|
|
26345
|
-
/* @__PURE__ */ s.createElement("div", { className:
|
|
26345
|
+
/* @__PURE__ */ s.createElement("div", { className: O }, /* @__PURE__ */ s.createElement(
|
|
26346
26346
|
"input",
|
|
26347
26347
|
{
|
|
26348
26348
|
type: "checkbox",
|
|
26349
26349
|
ref: A,
|
|
26350
26350
|
className: "sps-toggle__input",
|
|
26351
26351
|
id: I,
|
|
26352
|
-
checked:
|
|
26352
|
+
checked: C || !1,
|
|
26353
26353
|
disabled: a,
|
|
26354
26354
|
onChange: L,
|
|
26355
26355
|
"aria-describedby": `${k},${x}`,
|
|
@@ -26399,6 +26399,7 @@ const hx = {
|
|
|
26399
26399
|
return (
|
|
26400
26400
|
<SpsToggle
|
|
26401
26401
|
active={formValue.toggle}
|
|
26402
|
+
formMeta={formMeta.fields.toggle}
|
|
26402
26403
|
/>
|
|
26403
26404
|
)
|
|
26404
26405
|
}
|
|
@@ -26417,6 +26418,7 @@ const hx = {
|
|
|
26417
26418
|
<SpsToggle
|
|
26418
26419
|
active={formValue.toggle}
|
|
26419
26420
|
label="Label"
|
|
26421
|
+
formMeta={formMeta.fields.toggle}
|
|
26420
26422
|
/>
|
|
26421
26423
|
)
|
|
26422
26424
|
}
|
|
@@ -26436,6 +26438,7 @@ const hx = {
|
|
|
26436
26438
|
active={formValue.toggle}
|
|
26437
26439
|
label="Label"
|
|
26438
26440
|
description="(optional extended description)"
|
|
26441
|
+
formMeta={formMeta.fields.toggle}
|
|
26439
26442
|
/>
|
|
26440
26443
|
)
|
|
26441
26444
|
}
|
|
@@ -26466,15 +26469,18 @@ const hx = {
|
|
|
26466
26469
|
active={formValue.toggle1}
|
|
26467
26470
|
label="Label"
|
|
26468
26471
|
description="(optional extended description)"
|
|
26472
|
+
formMeta={formMeta.fields.toggle1}
|
|
26469
26473
|
/>
|
|
26470
26474
|
<SpsToggle
|
|
26471
26475
|
active={formValue.toggle2}
|
|
26472
26476
|
label="Label"
|
|
26477
|
+
formMeta={formMeta.fields.toggle2}
|
|
26473
26478
|
/>
|
|
26474
26479
|
<SpsToggle
|
|
26475
26480
|
active={formValue.toggle3}
|
|
26476
26481
|
label="Label"
|
|
26477
26482
|
description="(optional extended description)"
|
|
26483
|
+
formMeta={formMeta.fields.toggle3}
|
|
26478
26484
|
/>
|
|
26479
26485
|
</>
|
|
26480
26486
|
)
|
|
@@ -26505,6 +26511,7 @@ const hx = {
|
|
|
26505
26511
|
<div className="sfg-col-6">
|
|
26506
26512
|
<SpsToggle
|
|
26507
26513
|
active={formValue.toggle1}
|
|
26514
|
+
formMeta={formMeta.fields.toggle1}
|
|
26508
26515
|
/>
|
|
26509
26516
|
</div>
|
|
26510
26517
|
</div>
|
|
@@ -26515,6 +26522,7 @@ const hx = {
|
|
|
26515
26522
|
<div className="sfg-col-6">
|
|
26516
26523
|
<SpsToggle
|
|
26517
26524
|
active={formValue.toggle2}
|
|
26525
|
+
formMeta={formMeta.fields.toggle2}
|
|
26518
26526
|
/>
|
|
26519
26527
|
</div>
|
|
26520
26528
|
</div>
|
|
@@ -26525,6 +26533,7 @@ const hx = {
|
|
|
26525
26533
|
<div className="sfg-col-6">
|
|
26526
26534
|
<SpsToggle
|
|
26527
26535
|
active={formValue.toggle3}
|
|
26536
|
+
formMeta={formMeta.fields.toggle3}
|
|
26528
26537
|
/>
|
|
26529
26538
|
</div>
|
|
26530
26539
|
</div>
|
|
@@ -26553,6 +26562,7 @@ const hx = {
|
|
|
26553
26562
|
<SpsToggle
|
|
26554
26563
|
active={formValue.toggle}
|
|
26555
26564
|
disabled
|
|
26565
|
+
formMeta={formMeta.fields.toggle}
|
|
26556
26566
|
/>
|
|
26557
26567
|
)
|
|
26558
26568
|
}
|
|
@@ -26571,6 +26581,7 @@ const hx = {
|
|
|
26571
26581
|
active={formValue.toggle}
|
|
26572
26582
|
label="Label"
|
|
26573
26583
|
disabled
|
|
26584
|
+
formMeta={formMeta.fields.toggle}
|
|
26574
26585
|
/>
|
|
26575
26586
|
)
|
|
26576
26587
|
}
|
|
@@ -26590,6 +26601,7 @@ const hx = {
|
|
|
26590
26601
|
label="Label"
|
|
26591
26602
|
description="(optional extended description)"
|
|
26592
26603
|
disabled
|
|
26604
|
+
formMeta={formMeta.fields.toggle}
|
|
26593
26605
|
/>
|
|
26594
26606
|
)
|
|
26595
26607
|
}
|
|
@@ -28519,7 +28531,7 @@ function bm({
|
|
|
28519
28531
|
function _(j) {
|
|
28520
28532
|
I({ searchText: j.target.value });
|
|
28521
28533
|
}
|
|
28522
|
-
function
|
|
28534
|
+
function V(j) {
|
|
28523
28535
|
if (A.current && A.current.children.length && typeof j == "number") {
|
|
28524
28536
|
const re = A.current.children[j], K = re == null ? void 0 : re.querySelector(".sps-clickable-tag__icon");
|
|
28525
28537
|
K && K.focus();
|
|
@@ -28571,14 +28583,14 @@ function bm({
|
|
|
28571
28583
|
case "Left":
|
|
28572
28584
|
case "ArrowLeft":
|
|
28573
28585
|
if (K) {
|
|
28574
|
-
N.activeTagIndex === null ? (I({ activeTagIndex: G - 1 }),
|
|
28586
|
+
N.activeTagIndex === null ? (I({ activeTagIndex: G - 1 }), V(G - 1)) : N.activeTagIndex > 0 && (I({ activeTagIndex: N.activeTagIndex - 1 }), V(N.activeTagIndex - 1));
|
|
28575
28587
|
return;
|
|
28576
28588
|
}
|
|
28577
28589
|
break;
|
|
28578
28590
|
case "Right":
|
|
28579
28591
|
case "ArrowRight":
|
|
28580
28592
|
if (N.activeTagIndex !== null) {
|
|
28581
|
-
N.activeTagIndex === G - 1 ? (I({ activeTagIndex: null }), (re = x.current) == null || re.focus()) : (I({ activeTagIndex: N.activeTagIndex + 1 }),
|
|
28593
|
+
N.activeTagIndex === G - 1 ? (I({ activeTagIndex: null }), (re = x.current) == null || re.focus()) : (I({ activeTagIndex: N.activeTagIndex + 1 }), V(N.activeTagIndex + 1));
|
|
28582
28594
|
return;
|
|
28583
28595
|
}
|
|
28584
28596
|
break;
|
|
@@ -28904,27 +28916,27 @@ function vm({
|
|
|
28904
28916
|
...f
|
|
28905
28917
|
}) {
|
|
28906
28918
|
var _;
|
|
28907
|
-
const { current: u } = rr(r), h = l ? o : o == null ? void 0 : o.split(" ")[0], g = Z.validateTimeString(h, l) ? Z.padIncompleteTimeString(h, l) : "", v = l ? "" : (_ = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : _.toUpperCase(), T = g && Ed.find((
|
|
28908
|
-
function k(
|
|
28909
|
-
n && (n.setValue(
|
|
28919
|
+
const { current: u } = rr(r), h = l ? o : o == null ? void 0 : o.split(" ")[0], g = Z.validateTimeString(h, l) ? Z.padIncompleteTimeString(h, l) : "", v = l ? "" : (_ = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : _.toUpperCase(), T = g && Ed.find((V) => V === v) || "", [E, w] = s.useState(g), [N, I] = s.useState(T || "AM");
|
|
28920
|
+
function k(V) {
|
|
28921
|
+
n && (n.setValue(V || ""), n.markAsDirty()), a && a(V || "");
|
|
28910
28922
|
}
|
|
28911
|
-
function x(
|
|
28912
|
-
Z.validateTimeString(
|
|
28923
|
+
function x(V) {
|
|
28924
|
+
Z.validateTimeString(V.target.value, l) && w(V.target.value);
|
|
28913
28925
|
}
|
|
28914
|
-
function A(
|
|
28915
|
-
if (Z.validateTimeString(
|
|
28916
|
-
const U = Z.padIncompleteTimeString(
|
|
28926
|
+
function A(V) {
|
|
28927
|
+
if (Z.validateTimeString(V ?? E, l)) {
|
|
28928
|
+
const U = Z.padIncompleteTimeString(V ?? E, l);
|
|
28917
28929
|
w(U), k(U && !l ? `${U} ${N}` : U || "");
|
|
28918
28930
|
} else
|
|
28919
28931
|
k("");
|
|
28920
28932
|
}
|
|
28921
|
-
function L(
|
|
28922
|
-
I(
|
|
28933
|
+
function L(V) {
|
|
28934
|
+
I(V.target.value);
|
|
28923
28935
|
const U = Z.padIncompleteTimeString(E, l);
|
|
28924
|
-
U && !l && k(`${U} ${
|
|
28936
|
+
U && !l && k(`${U} ${V.target.value}`);
|
|
28925
28937
|
}
|
|
28926
|
-
function C(
|
|
28927
|
-
Z.validateTimeString(
|
|
28938
|
+
function C(V) {
|
|
28939
|
+
Z.validateTimeString(V, l) && (w(V ?? ""), setTimeout(() => A(V), 0));
|
|
28928
28940
|
}
|
|
28929
28941
|
s.useEffect(() => {
|
|
28930
28942
|
g !== E && w(g);
|
|
@@ -28945,8 +28957,8 @@ function vm({
|
|
|
28945
28957
|
onChange: x,
|
|
28946
28958
|
onBlur: () => A(),
|
|
28947
28959
|
onSelectionChange: C,
|
|
28948
|
-
onKeyDown: (
|
|
28949
|
-
|
|
28960
|
+
onKeyDown: (V) => {
|
|
28961
|
+
V.key === "Enter" && A();
|
|
28950
28962
|
},
|
|
28951
28963
|
disabled: t,
|
|
28952
28964
|
inputNotClearable: !0,
|
|
@@ -28966,8 +28978,8 @@ function vm({
|
|
|
28966
28978
|
onChange: x,
|
|
28967
28979
|
onBlur: () => A(),
|
|
28968
28980
|
onSelectionChange: C,
|
|
28969
|
-
onKeyDown: (
|
|
28970
|
-
|
|
28981
|
+
onKeyDown: (V) => {
|
|
28982
|
+
V.key === "Enter" && A();
|
|
28971
28983
|
},
|
|
28972
28984
|
disabled: t,
|
|
28973
28985
|
inputNotClearable: !0,
|
|
@@ -29870,16 +29882,16 @@ function Pm(e) {
|
|
|
29870
29882
|
}), { addGlobalListener: E, removeAllGlobalListeners: w } = Im(), N = br((C, O) => {
|
|
29871
29883
|
let _ = T.current;
|
|
29872
29884
|
if (l || _.didFirePressStart) return !1;
|
|
29873
|
-
let
|
|
29885
|
+
let V = !0;
|
|
29874
29886
|
if (_.isTriggeringEvent = !0, r) {
|
|
29875
29887
|
let U = new qs("pressstart", O, C);
|
|
29876
|
-
r(U),
|
|
29888
|
+
r(U), V = U.shouldStopPropagation;
|
|
29877
29889
|
}
|
|
29878
|
-
return n && n(!0), _.isTriggeringEvent = !1, _.didFirePressStart = !0, v(!0),
|
|
29890
|
+
return n && n(!0), _.isTriggeringEvent = !1, _.didFirePressStart = !0, v(!0), V;
|
|
29879
29891
|
}), I = br((C, O, _ = !0) => {
|
|
29880
|
-
let
|
|
29881
|
-
if (
|
|
29882
|
-
|
|
29892
|
+
let V = T.current;
|
|
29893
|
+
if (!V.didFirePressStart) return !1;
|
|
29894
|
+
V.ignoreClickAfterPress = !0, V.didFirePressStart = !1, V.isTriggeringEvent = !0;
|
|
29883
29895
|
let U = !0;
|
|
29884
29896
|
if (a) {
|
|
29885
29897
|
let M = new qs("pressend", O, C);
|
|
@@ -29889,14 +29901,14 @@ function Pm(e) {
|
|
|
29889
29901
|
let M = new qs("press", O, C);
|
|
29890
29902
|
t(M), U && (U = M.shouldStopPropagation);
|
|
29891
29903
|
}
|
|
29892
|
-
return
|
|
29904
|
+
return V.isTriggeringEvent = !1, U;
|
|
29893
29905
|
}), k = br((C, O) => {
|
|
29894
29906
|
let _ = T.current;
|
|
29895
29907
|
if (l) return !1;
|
|
29896
29908
|
if (o) {
|
|
29897
29909
|
_.isTriggeringEvent = !0;
|
|
29898
|
-
let
|
|
29899
|
-
return o(
|
|
29910
|
+
let V = new qs("pressup", O, C);
|
|
29911
|
+
return o(V), _.isTriggeringEvent = !1, V.shouldStopPropagation;
|
|
29900
29912
|
}
|
|
29901
29913
|
return !0;
|
|
29902
29914
|
}), x = br((C) => {
|
|
@@ -29906,40 +29918,40 @@ function Pm(e) {
|
|
|
29906
29918
|
m && x(C);
|
|
29907
29919
|
}), L = tt(() => {
|
|
29908
29920
|
let C = T.current, O = {
|
|
29909
|
-
onKeyDown(
|
|
29910
|
-
if (Do(
|
|
29921
|
+
onKeyDown(V) {
|
|
29922
|
+
if (Do(V.nativeEvent, V.currentTarget) && V.currentTarget.contains(V.target)) {
|
|
29911
29923
|
var U;
|
|
29912
|
-
_d(
|
|
29924
|
+
_d(V.target, V.key) && V.preventDefault();
|
|
29913
29925
|
let M = !0;
|
|
29914
|
-
if (!C.isPressed &&
|
|
29915
|
-
C.target =
|
|
29916
|
-
let X =
|
|
29926
|
+
if (!C.isPressed && !V.repeat) {
|
|
29927
|
+
C.target = V.currentTarget, C.isPressed = !0, M = N(V, "keyboard");
|
|
29928
|
+
let X = V.currentTarget, P = (Q) => {
|
|
29917
29929
|
Do(Q, X) && !Q.repeat && X.contains(Q.target) && C.target && k(Sn(C.target, Q), "keyboard");
|
|
29918
29930
|
};
|
|
29919
|
-
E(kt(
|
|
29931
|
+
E(kt(V.currentTarget), "keyup", Cm(P, _), !0);
|
|
29920
29932
|
}
|
|
29921
|
-
M &&
|
|
29922
|
-
} else
|
|
29933
|
+
M && V.stopPropagation(), V.metaKey && er() && ((U = C.metaKeyEvents) === null || U === void 0 || U.set(V.key, V.nativeEvent));
|
|
29934
|
+
} else V.key === "Meta" && (C.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
29923
29935
|
},
|
|
29924
|
-
onClick(
|
|
29925
|
-
if (!(
|
|
29936
|
+
onClick(V) {
|
|
29937
|
+
if (!(V && !V.currentTarget.contains(V.target)) && V && V.button === 0 && !C.isTriggeringEvent && !tr.isOpening) {
|
|
29926
29938
|
let U = !0;
|
|
29927
|
-
if (l &&
|
|
29928
|
-
!l && !p && yn(
|
|
29929
|
-
let M = N(
|
|
29939
|
+
if (l && V.preventDefault(), !C.ignoreClickAfterPress && !C.ignoreEmulatedMouseEvents && !C.isPressed && (C.pointerType === "virtual" || jo(V.nativeEvent))) {
|
|
29940
|
+
!l && !p && yn(V.currentTarget);
|
|
29941
|
+
let M = N(V, "virtual"), X = k(V, "virtual"), P = I(V, "virtual");
|
|
29930
29942
|
U = M && X && P;
|
|
29931
29943
|
}
|
|
29932
|
-
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1, U &&
|
|
29944
|
+
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1, U && V.stopPropagation();
|
|
29933
29945
|
}
|
|
29934
29946
|
}
|
|
29935
|
-
}, _ = (
|
|
29947
|
+
}, _ = (V) => {
|
|
29936
29948
|
var U;
|
|
29937
|
-
if (C.isPressed && C.target && Do(
|
|
29949
|
+
if (C.isPressed && C.target && Do(V, C.target)) {
|
|
29938
29950
|
var M;
|
|
29939
|
-
_d(
|
|
29940
|
-
let P =
|
|
29941
|
-
I(Sn(C.target,
|
|
29942
|
-
} else if (
|
|
29951
|
+
_d(V.target, V.key) && V.preventDefault();
|
|
29952
|
+
let P = V.target;
|
|
29953
|
+
I(Sn(C.target, V), "keyboard", C.target.contains(P)), w(), V.key !== "Enter" && tl(C.target) && C.target.contains(P) && !V[Id] && (V[Id] = !0, tr(C.target, V, !1)), C.isPressed = !1, (M = C.metaKeyEvents) === null || M === void 0 || M.delete(V.key);
|
|
29954
|
+
} else if (V.key === "Meta" && (!((U = C.metaKeyEvents) === null || U === void 0) && U.size)) {
|
|
29943
29955
|
var X;
|
|
29944
29956
|
let P = C.metaKeyEvents;
|
|
29945
29957
|
C.metaKeyEvents = void 0;
|
|
@@ -29955,13 +29967,13 @@ function Pm(e) {
|
|
|
29955
29967
|
}
|
|
29956
29968
|
No(P.currentTarget) && P.preventDefault(), C.pointerType = P.pointerType;
|
|
29957
29969
|
let Q = !0;
|
|
29958
|
-
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = P.pointerId, C.target = P.currentTarget, !l && !p && yn(P.currentTarget), f || xd(C.target), Q = N(P, C.pointerType), E(kt(P.currentTarget), "pointermove",
|
|
29970
|
+
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = P.pointerId, C.target = P.currentTarget, !l && !p && yn(P.currentTarget), f || xd(C.target), Q = N(P, C.pointerType), E(kt(P.currentTarget), "pointermove", V, !1), E(kt(P.currentTarget), "pointerup", U, !1), E(kt(P.currentTarget), "pointercancel", X, !1)), Q && P.stopPropagation();
|
|
29959
29971
|
}, O.onMouseDown = (P) => {
|
|
29960
29972
|
P.currentTarget.contains(P.target) && P.button === 0 && (No(P.currentTarget) && P.preventDefault(), P.stopPropagation());
|
|
29961
29973
|
}, O.onPointerUp = (P) => {
|
|
29962
29974
|
!P.currentTarget.contains(P.target) || C.pointerType === "virtual" || P.button === 0 && Sr(P, P.currentTarget) && k(P, C.pointerType || P.pointerType);
|
|
29963
29975
|
};
|
|
29964
|
-
let
|
|
29976
|
+
let V = (P) => {
|
|
29965
29977
|
P.pointerId === C.activePointerId && (C.target && Sr(P, C.target) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, N(Sn(C.target, P), C.pointerType)) : C.target && C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, I(Sn(C.target, P), C.pointerType, !1), A(P)));
|
|
29966
29978
|
}, U = (P) => {
|
|
29967
29979
|
P.pointerId === C.activePointerId && C.isPressed && P.button === 0 && C.target && (Sr(P, C.target) && C.pointerType != null ? I(Sn(C.target, P), C.pointerType) : C.isOverTarget && C.pointerType != null && I(Sn(C.target, P), C.pointerType, !1), C.isPressed = !1, C.isOverTarget = !1, C.activePointerId = null, C.pointerType = null, w(), f || zs(C.target), "ontouchend" in C.target && P.pointerType !== "mouse" && E(C.target, "touchend", M, {
|
|
@@ -29982,7 +29994,7 @@ function Pm(e) {
|
|
|
29982
29994
|
M.stopPropagation();
|
|
29983
29995
|
return;
|
|
29984
29996
|
}
|
|
29985
|
-
C.isPressed = !0, C.isOverTarget = !0, C.target = M.currentTarget, C.pointerType = jo(M.nativeEvent) ? "virtual" : "mouse", !l && !p && yn(M.currentTarget), N(M, C.pointerType) && M.stopPropagation(), E(kt(M.currentTarget), "mouseup",
|
|
29997
|
+
C.isPressed = !0, C.isOverTarget = !0, C.target = M.currentTarget, C.pointerType = jo(M.nativeEvent) ? "virtual" : "mouse", !l && !p && yn(M.currentTarget), N(M, C.pointerType) && M.stopPropagation(), E(kt(M.currentTarget), "mouseup", V, !1);
|
|
29986
29998
|
}, O.onMouseEnter = (M) => {
|
|
29987
29999
|
if (!M.currentTarget.contains(M.target)) return;
|
|
29988
30000
|
let X = !0;
|
|
@@ -29994,7 +30006,7 @@ function Pm(e) {
|
|
|
29994
30006
|
}, O.onMouseUp = (M) => {
|
|
29995
30007
|
M.currentTarget.contains(M.target) && !C.ignoreEmulatedMouseEvents && M.button === 0 && k(M, C.pointerType || "mouse");
|
|
29996
30008
|
};
|
|
29997
|
-
let
|
|
30009
|
+
let V = (M) => {
|
|
29998
30010
|
if (M.button === 0) {
|
|
29999
30011
|
if (C.isPressed = !1, w(), C.ignoreEmulatedMouseEvents) {
|
|
30000
30012
|
C.ignoreEmulatedMouseEvents = !1;
|
|
@@ -30458,7 +30470,7 @@ function Um() {
|
|
|
30458
30470
|
function Jk(e) {
|
|
30459
30471
|
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: m = !1, shouldUseVirtualFocus: f, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction: T } = Um(), E = el(), w = (_) => {
|
|
30460
30472
|
if (_.altKey && _.key === "Tab" && _.preventDefault(), !r.current.contains(_.target)) return;
|
|
30461
|
-
const
|
|
30473
|
+
const V = (W, R) => {
|
|
30462
30474
|
if (W != null) {
|
|
30463
30475
|
if (t.isLink(W) && v === "selection" && p && !qo(_)) {
|
|
30464
30476
|
hb(() => {
|
|
@@ -30477,28 +30489,28 @@ function Jk(e) {
|
|
|
30477
30489
|
if (n.getKeyBelow) {
|
|
30478
30490
|
var U, M, X;
|
|
30479
30491
|
let W = t.focusedKey != null ? (U = n.getKeyBelow) === null || U === void 0 ? void 0 : U.call(n, t.focusedKey) : (M = n.getFirstKey) === null || M === void 0 ? void 0 : M.call(n);
|
|
30480
|
-
W == null && o && (W = (X = n.getFirstKey) === null || X === void 0 ? void 0 : X.call(n, t.focusedKey)), W != null && (_.preventDefault(),
|
|
30492
|
+
W == null && o && (W = (X = n.getFirstKey) === null || X === void 0 ? void 0 : X.call(n, t.focusedKey)), W != null && (_.preventDefault(), V(W));
|
|
30481
30493
|
}
|
|
30482
30494
|
break;
|
|
30483
30495
|
case "ArrowUp":
|
|
30484
30496
|
if (n.getKeyAbove) {
|
|
30485
30497
|
var P, Q, F;
|
|
30486
30498
|
let W = t.focusedKey != null ? (P = n.getKeyAbove) === null || P === void 0 ? void 0 : P.call(n, t.focusedKey) : (Q = n.getLastKey) === null || Q === void 0 ? void 0 : Q.call(n);
|
|
30487
|
-
W == null && o && (W = (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, t.focusedKey)), W != null && (_.preventDefault(),
|
|
30499
|
+
W == null && o && (W = (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, t.focusedKey)), W != null && (_.preventDefault(), V(W));
|
|
30488
30500
|
}
|
|
30489
30501
|
break;
|
|
30490
30502
|
case "ArrowLeft":
|
|
30491
30503
|
if (n.getKeyLeftOf) {
|
|
30492
30504
|
var j, re, K;
|
|
30493
30505
|
let W = (j = n.getKeyLeftOf) === null || j === void 0 ? void 0 : j.call(n, t.focusedKey);
|
|
30494
|
-
W == null && o && (W = T === "rtl" ? (re = n.getFirstKey) === null || re === void 0 ? void 0 : re.call(n, t.focusedKey) : (K = n.getLastKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), W != null && (_.preventDefault(),
|
|
30506
|
+
W == null && o && (W = T === "rtl" ? (re = n.getFirstKey) === null || re === void 0 ? void 0 : re.call(n, t.focusedKey) : (K = n.getLastKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), W != null && (_.preventDefault(), V(W, T === "rtl" ? "first" : "last"));
|
|
30495
30507
|
}
|
|
30496
30508
|
break;
|
|
30497
30509
|
case "ArrowRight":
|
|
30498
30510
|
if (n.getKeyRightOf) {
|
|
30499
30511
|
var G, te, ee;
|
|
30500
30512
|
let W = (G = n.getKeyRightOf) === null || G === void 0 ? void 0 : G.call(n, t.focusedKey);
|
|
30501
|
-
W == null && o && (W = T === "rtl" ? (te = n.getLastKey) === null || te === void 0 ? void 0 : te.call(n, t.focusedKey) : (ee = n.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(n, t.focusedKey)), W != null && (_.preventDefault(),
|
|
30513
|
+
W == null && o && (W = T === "rtl" ? (te = n.getLastKey) === null || te === void 0 ? void 0 : te.call(n, t.focusedKey) : (ee = n.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(n, t.focusedKey)), W != null && (_.preventDefault(), V(W, T === "rtl" ? "last" : "first"));
|
|
30502
30514
|
}
|
|
30503
30515
|
break;
|
|
30504
30516
|
case "Home":
|
|
@@ -30518,13 +30530,13 @@ function Jk(e) {
|
|
|
30518
30530
|
case "PageDown":
|
|
30519
30531
|
if (n.getKeyPageBelow) {
|
|
30520
30532
|
let W = n.getKeyPageBelow(t.focusedKey);
|
|
30521
|
-
W != null && (_.preventDefault(),
|
|
30533
|
+
W != null && (_.preventDefault(), V(W));
|
|
30522
30534
|
}
|
|
30523
30535
|
break;
|
|
30524
30536
|
case "PageUp":
|
|
30525
30537
|
if (n.getKeyPageAbove) {
|
|
30526
30538
|
let W = n.getKeyPageAbove(t.focusedKey);
|
|
30527
|
-
W != null && (_.preventDefault(),
|
|
30539
|
+
W != null && (_.preventDefault(), V(W));
|
|
30528
30540
|
}
|
|
30529
30541
|
break;
|
|
30530
30542
|
case "a":
|
|
@@ -30568,8 +30580,8 @@ function Jk(e) {
|
|
|
30568
30580
|
let M = (P) => {
|
|
30569
30581
|
P != null && (t.setFocusedKey(P), p && t.replaceSelection(P));
|
|
30570
30582
|
}, X = _.relatedTarget;
|
|
30571
|
-
var
|
|
30572
|
-
X && _.currentTarget.compareDocumentPosition(X) & Node.DOCUMENT_POSITION_FOLLOWING ? M((
|
|
30583
|
+
var V, U;
|
|
30584
|
+
X && _.currentTarget.compareDocumentPosition(X) & Node.DOCUMENT_POSITION_FOLLOWING ? M((V = t.lastSelectedKey) !== null && V !== void 0 ? V : n.getLastKey()) : M((U = t.firstSelectedKey) !== null && U !== void 0 ? U : n.getFirstKey());
|
|
30573
30585
|
} else h || (g.current.scrollTop = N.current.top, g.current.scrollLeft = N.current.left);
|
|
30574
30586
|
if (t.focusedKey != null) {
|
|
30575
30587
|
let M = g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);
|
|
@@ -30586,9 +30598,9 @@ function Jk(e) {
|
|
|
30586
30598
|
if (x.current) {
|
|
30587
30599
|
let _ = null;
|
|
30588
30600
|
a === "first" && (_ = n.getFirstKey()), a === "last" && (_ = n.getLastKey());
|
|
30589
|
-
let
|
|
30590
|
-
if (
|
|
30591
|
-
for (let U of
|
|
30601
|
+
let V = t.selectedKeys;
|
|
30602
|
+
if (V.size) {
|
|
30603
|
+
for (let U of V) if (t.canSelectItem(U)) {
|
|
30592
30604
|
_ = U;
|
|
30593
30605
|
break;
|
|
30594
30606
|
}
|
|
@@ -30599,10 +30611,10 @@ function Jk(e) {
|
|
|
30599
30611
|
let A = fe(t.focusedKey);
|
|
30600
30612
|
We(() => {
|
|
30601
30613
|
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== A.current || x.current) && (g != null && g.current)) {
|
|
30602
|
-
let _ = Xo(),
|
|
30603
|
-
if (
|
|
30614
|
+
let _ = Xo(), V = r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);
|
|
30615
|
+
if (!V)
|
|
30604
30616
|
return;
|
|
30605
|
-
(_ === "keyboard" || x.current) && (_m(g.current,
|
|
30617
|
+
(_ === "keyboard" || x.current) && (_m(g.current, V), _ !== "virtual" && Nd(V, {
|
|
30606
30618
|
containingElement: r.current
|
|
30607
30619
|
}));
|
|
30608
30620
|
}
|
|
@@ -30684,7 +30696,7 @@ function Zk(e) {
|
|
|
30684
30696
|
}, _.onPress = (F) => {
|
|
30685
30697
|
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && k && Pd() || F.pointerType === "mouse" && C.current) && (k ? O(F) : E && h(F));
|
|
30686
30698
|
}), g["data-key"] = n, _.preventFocusOnPress = o;
|
|
30687
|
-
let { pressProps:
|
|
30699
|
+
let { pressProps: V, isPressed: U } = Pm(_), M = I ? (F) => {
|
|
30688
30700
|
x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), O(F));
|
|
30689
30701
|
} : void 0, { longPressProps: X } = Fk({
|
|
30690
30702
|
isDisabled: !A,
|
|
@@ -30697,7 +30709,7 @@ function Zk(e) {
|
|
|
30697
30709
|
tr.isOpening || F.preventDefault();
|
|
30698
30710
|
} : void 0;
|
|
30699
30711
|
return {
|
|
30700
|
-
itemProps: Vn(g, E || N ?
|
|
30712
|
+
itemProps: Vn(g, E || N ? V : {}, A ? X : {}, {
|
|
30701
30713
|
onDoubleClick: M,
|
|
30702
30714
|
onDragStartCapture: P,
|
|
30703
30715
|
onClick: Q
|
|
@@ -33201,7 +33213,7 @@ function KI(e) {
|
|
|
33201
33213
|
}
|
|
33202
33214
|
}
|
|
33203
33215
|
}, [x]);
|
|
33204
|
-
function
|
|
33216
|
+
function V(re) {
|
|
33205
33217
|
l && l(re);
|
|
33206
33218
|
}
|
|
33207
33219
|
function U() {
|
|
@@ -33242,7 +33254,7 @@ function KI(e) {
|
|
|
33242
33254
|
Qm,
|
|
33243
33255
|
{
|
|
33244
33256
|
tabs: c,
|
|
33245
|
-
onTabChange:
|
|
33257
|
+
onTabChange: V,
|
|
33246
33258
|
activeTab: t,
|
|
33247
33259
|
"data-testid": `${w}__tabs`
|
|
33248
33260
|
}
|