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