@spscommerce/ds-react 7.10.7 → 7.10.8
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.cjs.js +37 -37
- package/lib/index.es.js +347 -346
- package/package.json +12 -12
package/lib/index.es.js
CHANGED
|
@@ -999,7 +999,7 @@ function zb(e, t = {}) {
|
|
|
999
999
|
const n = He(() => {
|
|
1000
1000
|
jl(e);
|
|
1001
1001
|
const m = Vs(e, [], p);
|
|
1002
|
-
return t && Is(e, m, t, !
|
|
1002
|
+
return t && Is(e, m, t, !1, !0), m;
|
|
1003
1003
|
}, []), r = pe(), a = pe(t), o = nn((m, f) => {
|
|
1004
1004
|
var S, y, w;
|
|
1005
1005
|
let h;
|
|
@@ -1054,33 +1054,34 @@ function zb(e, t = {}) {
|
|
|
1054
1054
|
type: D,
|
|
1055
1055
|
key: x,
|
|
1056
1056
|
parentPath: k,
|
|
1057
|
-
objects: [
|
|
1057
|
+
objects: [, b]
|
|
1058
1058
|
} of T) {
|
|
1059
|
-
const
|
|
1059
|
+
const I = Ks(
|
|
1060
1060
|
m.formMeta,
|
|
1061
1061
|
k
|
|
1062
1062
|
);
|
|
1063
|
-
if (typeof x != "symbol" &&
|
|
1063
|
+
if (typeof x != "symbol" && I) {
|
|
1064
|
+
let O;
|
|
1064
1065
|
switch (D) {
|
|
1065
1066
|
case Yn.ADDITION:
|
|
1066
|
-
|
|
1067
|
-
|
|
1067
|
+
I.fields[x] = Vs(
|
|
1068
|
+
b[x],
|
|
1068
1069
|
[...k, x],
|
|
1069
1070
|
p
|
|
1070
1071
|
);
|
|
1071
1072
|
break;
|
|
1072
1073
|
case Yn.DELETION:
|
|
1073
|
-
Array.isArray(
|
|
1074
|
+
Array.isArray(I.fields) ? I.fields.splice(Number(x), 1) : delete I.fields[x];
|
|
1074
1075
|
break;
|
|
1075
1076
|
case Yn.ALTERATION:
|
|
1076
|
-
|
|
1077
|
-
|
|
1077
|
+
O = Vs(
|
|
1078
|
+
b[x],
|
|
1078
1079
|
[...k, x],
|
|
1079
1080
|
p
|
|
1080
|
-
);
|
|
1081
|
-
(M instanceof sr && !(L.fields[x] instanceof sr) || !(M instanceof sr) && L.fields[x] instanceof sr) && (L.fields[x] = M);
|
|
1081
|
+
), (O instanceof sr && !(I.fields[x] instanceof sr) || !(O instanceof sr) && I.fields[x] instanceof sr) && (I.fields[x] = O);
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
1084
|
+
}
|
|
1084
1085
|
}
|
|
1085
1086
|
if (a.current) {
|
|
1086
1087
|
Is(
|
|
@@ -1099,14 +1100,14 @@ function zb(e, t = {}) {
|
|
|
1099
1100
|
objects: [, I]
|
|
1100
1101
|
} of T)
|
|
1101
1102
|
if (typeof k != "symbol") {
|
|
1102
|
-
let
|
|
1103
|
-
if (
|
|
1104
|
-
for (const
|
|
1105
|
-
|
|
1103
|
+
let O = m.formMeta, M = h;
|
|
1104
|
+
if (O) {
|
|
1105
|
+
for (const L of b)
|
|
1106
|
+
O = O.fields[L], M = M[L], D.has(O) || O.validate(M, tn.ON_CHANGE);
|
|
1106
1107
|
if (x === Yn.ADDITION || x === Yn.ALTERATION) {
|
|
1107
|
-
const
|
|
1108
|
-
if (!D.has(
|
|
1109
|
-
for (const [R, K] of Object.entries(
|
|
1108
|
+
const L = O.fields[k];
|
|
1109
|
+
if (!D.has(L) && (O.fields[k].validate(I[k], tn.ON_CHANGE), x === Yn.ADDITION && L.fields))
|
|
1110
|
+
for (const [R, K] of Object.entries(L.fields))
|
|
1110
1111
|
K.validate(I[k][R], tn.ON_CHANGE);
|
|
1111
1112
|
}
|
|
1112
1113
|
}
|
|
@@ -1234,17 +1235,17 @@ function Jl(e, t) {
|
|
|
1234
1235
|
}
|
|
1235
1236
|
f != null && f === document.body && Ka(f) && !Ka(document.documentElement) || f != null && Ka(f, c) && m.push(f);
|
|
1236
1237
|
}
|
|
1237
|
-
for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom,
|
|
1238
|
+
for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + x / 2 : o === "end" ? b : O, R = [], K = 0; K < m.length; K++) {
|
|
1238
1239
|
var _ = m[K], $ = _.getBoundingClientRect(), N = $.height, A = $.width, Q = $.top, q = $.right, W = $.bottom, J = $.left;
|
|
1239
|
-
if (r === "if-needed" && k >= 0 &&
|
|
1240
|
+
if (r === "if-needed" && k >= 0 && O >= 0 && I <= S && b <= h && k >= Q && I <= W && O >= J && b <= q)
|
|
1240
1241
|
return R;
|
|
1241
1242
|
var H = getComputedStyle(_), F = parseInt(H.borderLeftWidth, 10), z = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), te = parseInt(H.borderBottomWidth, 10), X = 0, G = 0, oe = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - F - j : 0, ne = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - z - te : 0;
|
|
1242
1243
|
if (u === _)
|
|
1243
|
-
X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? ks(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ?
|
|
1244
|
+
X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? ks(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ? L : o === "center" ? L - h / 2 : o === "end" ? L - h : ks(y, y + h, h, F, j, y + L, y + L + x, x), X = Math.max(0, X + w), G = Math.max(0, G + y);
|
|
1244
1245
|
else {
|
|
1245
|
-
X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ? ks(Q, W, N, z, te + ne, M, M + D, D) : M - (Q + N / 2) + ne / 2, G = o === "start" ?
|
|
1246
|
+
X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ? ks(Q, W, N, z, te + ne, M, M + D, D) : M - (Q + N / 2) + ne / 2, G = o === "start" ? L - J - F : o === "center" ? L - (J + A / 2) + oe / 2 : o === "end" ? L - q + j + oe : ks(J, q, A, F, j + oe, L, L + x, x);
|
|
1246
1247
|
var le = _.scrollLeft, ee = _.scrollTop;
|
|
1247
|
-
M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - N + ne))),
|
|
1248
|
+
M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - N + ne))), L += le - (G = Math.max(0, Math.min(le + G, _.scrollWidth - A + oe)));
|
|
1248
1249
|
}
|
|
1249
1250
|
R.push({ el: _, top: X, left: G });
|
|
1250
1251
|
}
|
|
@@ -1419,7 +1420,7 @@ function ur(e, t, n, {
|
|
|
1419
1420
|
k,
|
|
1420
1421
|
b,
|
|
1421
1422
|
I,
|
|
1422
|
-
|
|
1423
|
+
O
|
|
1423
1424
|
] = ev(
|
|
1424
1425
|
T,
|
|
1425
1426
|
h,
|
|
@@ -1433,7 +1434,7 @@ function ur(e, t, n, {
|
|
|
1433
1434
|
top: Ms(k),
|
|
1434
1435
|
right: Ms(b),
|
|
1435
1436
|
bottom: Ms(I),
|
|
1436
|
-
left: Ms(
|
|
1437
|
+
left: Ms(O)
|
|
1437
1438
|
};
|
|
1438
1439
|
return c && (M.position = "fixed", M.zIndex = WS.BAR), a && (M.minWidth = `${y.width}px`), o && (M.width = `${y.width}px`), [M, T === r];
|
|
1439
1440
|
}
|
|
@@ -1727,9 +1728,9 @@ const es = s.forwardRef((e, t) => {
|
|
|
1727
1728
|
id: k,
|
|
1728
1729
|
ignoreWidthStyles: b,
|
|
1729
1730
|
isOpen: I,
|
|
1730
|
-
keepOpen:
|
|
1731
|
+
keepOpen: O,
|
|
1731
1732
|
keyDown: M,
|
|
1732
|
-
nullOption:
|
|
1733
|
+
nullOption: L,
|
|
1733
1734
|
onOptionListChanged: R,
|
|
1734
1735
|
onOptionSelected: K,
|
|
1735
1736
|
onPositionFlip: _,
|
|
@@ -1811,7 +1812,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1811
1812
|
}, [ee, $]), bt = s.useCallback(() => {
|
|
1812
1813
|
ee && (Te(!1), le(-1), $ && $(!1));
|
|
1813
1814
|
}, [ee, $]), Pt = s.useCallback((he, ce) => {
|
|
1814
|
-
ce || he && !he.disabled && (typeof he.value == "function" ? (he.value(), w && w()) : typeof K == "function" && K(he.value),
|
|
1815
|
+
ce || he && !he.disabled && (typeof he.value == "function" ? (he.value(), w && w()) : typeof K == "function" && K(he.value), O || bt());
|
|
1815
1816
|
}, [K, bt]), Cr = s.useCallback(
|
|
1816
1817
|
(he, ce, rt) => {
|
|
1817
1818
|
he.stopPropagation(), Pt(ce, rt);
|
|
@@ -2133,7 +2134,7 @@ function Uo({
|
|
|
2133
2134
|
"data-testid": x,
|
|
2134
2135
|
...k
|
|
2135
2136
|
}) {
|
|
2136
|
-
const b = a || r, { wrapperId: I, controlId:
|
|
2137
|
+
const b = a || r, { wrapperId: I, controlId: O } = wt(c, b), [M, L] = sn({
|
|
2137
2138
|
keyDown: null,
|
|
2138
2139
|
opensUpward: !1
|
|
2139
2140
|
}), R = s.useRef(null), K = s.useRef(null), _ = s.useRef(null), {
|
|
@@ -2157,13 +2158,13 @@ function Uo({
|
|
|
2157
2158
|
"Down",
|
|
2158
2159
|
"ArrowDown",
|
|
2159
2160
|
"Enter"
|
|
2160
|
-
].indexOf(j.key) > -1 && (j.preventDefault(), j.persist()), j.stopPropagation(),
|
|
2161
|
+
].indexOf(j.key) > -1 && (j.preventDefault(), j.persist()), j.stopPropagation(), L({ keyDown: j })), j.key === "Tab" && A();
|
|
2161
2162
|
}
|
|
2162
2163
|
function H(j) {
|
|
2163
2164
|
j ? N() : A();
|
|
2164
2165
|
}
|
|
2165
2166
|
function F(j) {
|
|
2166
|
-
|
|
2167
|
+
L({ opensUpward: j });
|
|
2167
2168
|
}
|
|
2168
2169
|
const z = V(
|
|
2169
2170
|
m || "sps-autocomplete",
|
|
@@ -2200,7 +2201,7 @@ function Uo({
|
|
|
2200
2201
|
onChange: W,
|
|
2201
2202
|
onKeyDown: J,
|
|
2202
2203
|
disabled: n,
|
|
2203
|
-
id:
|
|
2204
|
+
id: O,
|
|
2204
2205
|
"data-testid": `${x}__input`,
|
|
2205
2206
|
...k
|
|
2206
2207
|
}), h && !n && /* @__PURE__ */ s.createElement("i", {
|
|
@@ -2409,7 +2410,7 @@ function br(e) {
|
|
|
2409
2410
|
maxHeightOptionListRem: k,
|
|
2410
2411
|
disableOptionsMemoization: b,
|
|
2411
2412
|
...I
|
|
2412
|
-
} = e, { t:
|
|
2413
|
+
} = e, { t: O } = s.useContext(Be), M = Sr(l), [L, R] = s.useState(!1), [K, _] = s.useState(!1), [$, N] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
|
|
2413
2414
|
...Kd,
|
|
2414
2415
|
...ee[0]
|
|
2415
2416
|
})), Q = `${M.current}-button`, q = `${M.current}-menu`;
|
|
@@ -2417,13 +2418,13 @@ function br(e) {
|
|
|
2417
2418
|
p ? (J = c || $a.DEFAULT, W = o) : (J = $a.ICON, W = o || je.ELLIPSES);
|
|
2418
2419
|
const H = s.useRef(null);
|
|
2419
2420
|
s.useEffect(() => {
|
|
2420
|
-
|
|
2421
|
-
}, [
|
|
2421
|
+
L && w ? w() : !L && T && T();
|
|
2422
|
+
}, [L]);
|
|
2422
2423
|
function F() {
|
|
2423
2424
|
R(!1);
|
|
2424
2425
|
}
|
|
2425
2426
|
function z(ee) {
|
|
2426
|
-
ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && R(!
|
|
2427
|
+
ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && R(!L);
|
|
2427
2428
|
}
|
|
2428
2429
|
function j(ee) {
|
|
2429
2430
|
R(ee);
|
|
@@ -2445,15 +2446,15 @@ function br(e) {
|
|
|
2445
2446
|
s.useEffect(() => (document.addEventListener("click", F), document.addEventListener("DropdownOpened", G), () => {
|
|
2446
2447
|
document.removeEventListener("click", F), document.removeEventListener("DropdownOpened", G);
|
|
2447
2448
|
}), []), s.useEffect(() => {
|
|
2448
|
-
if (
|
|
2449
|
+
if (L) {
|
|
2449
2450
|
const ee = document.createEvent("CustomEvent");
|
|
2450
2451
|
ee.initCustomEvent("DropdownOpened", !1, !1, M.current), document.dispatchEvent(ee);
|
|
2451
2452
|
}
|
|
2452
|
-
}, [
|
|
2453
|
+
}, [L]);
|
|
2453
2454
|
const oe = V(
|
|
2454
2455
|
y || "sps-dropdown",
|
|
2455
|
-
|
|
2456
|
-
|
|
2456
|
+
L && "sps-dropdown--open",
|
|
2457
|
+
L && "z-stratum-dropdown",
|
|
2457
2458
|
K && "sps-dropdown--opens-upward",
|
|
2458
2459
|
!p && "sps-dropdown--no-label",
|
|
2459
2460
|
a && "disabled",
|
|
@@ -2471,7 +2472,7 @@ function br(e) {
|
|
|
2471
2472
|
onKeyDown: X
|
|
2472
2473
|
}, /* @__PURE__ */ s.createElement(es, {
|
|
2473
2474
|
positionOverride: le,
|
|
2474
|
-
isOpen:
|
|
2475
|
+
isOpen: L,
|
|
2475
2476
|
"aria-labelledby": Q,
|
|
2476
2477
|
keyDown: $,
|
|
2477
2478
|
onOptionSelected: te,
|
|
@@ -2497,7 +2498,7 @@ function br(e) {
|
|
|
2497
2498
|
id: Q,
|
|
2498
2499
|
"aria-haspopup": "true",
|
|
2499
2500
|
"aria-controls": q,
|
|
2500
|
-
"aria-expanded":
|
|
2501
|
+
"aria-expanded": L ? !0 : void 0,
|
|
2501
2502
|
tabIndex: m,
|
|
2502
2503
|
disabled: a,
|
|
2503
2504
|
onClick: z
|
|
@@ -2506,7 +2507,7 @@ function br(e) {
|
|
|
2506
2507
|
}), p && /* @__PURE__ */ s.createElement("span", null, p), f && /* @__PURE__ */ s.createElement("div", {
|
|
2507
2508
|
className: "sps-spinner",
|
|
2508
2509
|
key: 1
|
|
2509
|
-
}, h ||
|
|
2510
|
+
}, h || O("design-system:button.spinningTitle")))));
|
|
2510
2511
|
}
|
|
2511
2512
|
Object.assign(br, {
|
|
2512
2513
|
props: fv,
|
|
@@ -3147,9 +3148,9 @@ function vr({
|
|
|
3147
3148
|
!p && "sps-checkable--no-label",
|
|
3148
3149
|
t
|
|
3149
3150
|
);
|
|
3150
|
-
function
|
|
3151
|
-
var
|
|
3152
|
-
T(M.target.checked), x(!1), S && (S.setValue(M.target.checked), S.markAsDirty()), u && u(M), (
|
|
3151
|
+
function O(M) {
|
|
3152
|
+
var L;
|
|
3153
|
+
T(M.target.checked), x(!1), S && (S.setValue(M.target.checked), S.markAsDirty()), u && u(M), (L = y.current) == null || L.focus();
|
|
3153
3154
|
}
|
|
3154
3155
|
return /* @__PURE__ */ s.createElement(ut, {
|
|
3155
3156
|
id: k,
|
|
@@ -3166,7 +3167,7 @@ function vr({
|
|
|
3166
3167
|
checked: w,
|
|
3167
3168
|
disabled: n,
|
|
3168
3169
|
"data-testid": `${m}__checkbox-input`,
|
|
3169
|
-
onChange:
|
|
3170
|
+
onChange: O,
|
|
3170
3171
|
...h
|
|
3171
3172
|
}), /* @__PURE__ */ s.createElement("label", {
|
|
3172
3173
|
className: "sps-checkable__label",
|
|
@@ -3797,8 +3798,8 @@ function kv() {
|
|
|
3797
3798
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
3798
3799
|
function k(I) {
|
|
3799
3800
|
if (typeof I == "object" && I !== null) {
|
|
3800
|
-
var
|
|
3801
|
-
switch (
|
|
3801
|
+
var O = I.$$typeof;
|
|
3802
|
+
switch (O) {
|
|
3802
3803
|
case t:
|
|
3803
3804
|
switch (I = I.type, I) {
|
|
3804
3805
|
case p:
|
|
@@ -3817,11 +3818,11 @@ function kv() {
|
|
|
3817
3818
|
case l:
|
|
3818
3819
|
return I;
|
|
3819
3820
|
default:
|
|
3820
|
-
return
|
|
3821
|
+
return O;
|
|
3821
3822
|
}
|
|
3822
3823
|
}
|
|
3823
3824
|
case n:
|
|
3824
|
-
return
|
|
3825
|
+
return O;
|
|
3825
3826
|
}
|
|
3826
3827
|
}
|
|
3827
3828
|
}
|
|
@@ -3904,7 +3905,7 @@ function Mv() {
|
|
|
3904
3905
|
}
|
|
3905
3906
|
}
|
|
3906
3907
|
}
|
|
3907
|
-
var I = p,
|
|
3908
|
+
var I = p, O = u, M = c, L = l, R = t, K = m, _ = r, $ = y, N = S, A = n, Q = o, q = a, W = f, J = !1;
|
|
3908
3909
|
function H(re) {
|
|
3909
3910
|
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.")), F(re) || b(re) === p;
|
|
3910
3911
|
}
|
|
@@ -3944,7 +3945,7 @@ function Mv() {
|
|
|
3944
3945
|
function De(re) {
|
|
3945
3946
|
return b(re) === f;
|
|
3946
3947
|
}
|
|
3947
|
-
ke.AsyncMode = I, ke.ConcurrentMode =
|
|
3948
|
+
ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element = R, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = N, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
|
|
3948
3949
|
}()), ke;
|
|
3949
3950
|
}
|
|
3950
3951
|
(function(e) {
|
|
@@ -4097,9 +4098,9 @@ function Ov() {
|
|
|
4097
4098
|
arrayOf: k,
|
|
4098
4099
|
element: b(),
|
|
4099
4100
|
elementType: I(),
|
|
4100
|
-
instanceOf:
|
|
4101
|
+
instanceOf: O,
|
|
4101
4102
|
node: K(),
|
|
4102
|
-
objectOf:
|
|
4103
|
+
objectOf: L,
|
|
4103
4104
|
oneOf: M,
|
|
4104
4105
|
oneOfType: R,
|
|
4105
4106
|
shape: _,
|
|
@@ -4188,7 +4189,7 @@ function Ov() {
|
|
|
4188
4189
|
}
|
|
4189
4190
|
return T(H);
|
|
4190
4191
|
}
|
|
4191
|
-
function
|
|
4192
|
+
function O(H) {
|
|
4192
4193
|
function F(z, j, te, X, G) {
|
|
4193
4194
|
if (!(z[j] instanceof H)) {
|
|
4194
4195
|
var oe = H.name || h, ne = J(z[j]);
|
|
@@ -4215,7 +4216,7 @@ function Ov() {
|
|
|
4215
4216
|
}
|
|
4216
4217
|
return T(F);
|
|
4217
4218
|
}
|
|
4218
|
-
function
|
|
4219
|
+
function L(H) {
|
|
4219
4220
|
function F(z, j, te, X, G) {
|
|
4220
4221
|
if (typeof H != "function")
|
|
4221
4222
|
return new w("Property `" + G + "` of component `" + te + "` has invalid PropType notation inside objectOf.");
|
|
@@ -4650,8 +4651,8 @@ var ny = function() {
|
|
|
4650
4651
|
};
|
|
4651
4652
|
function ry(e, t) {
|
|
4652
4653
|
t === void 0 && (t = {});
|
|
4653
|
-
var n = t, r = n.getDisplayName, a = r === void 0 ? function(
|
|
4654
|
-
return "ConnectAdvanced(" +
|
|
4654
|
+
var n = t, r = n.getDisplayName, a = r === void 0 ? function(O) {
|
|
4655
|
+
return "ConnectAdvanced(" + O + ")";
|
|
4655
4656
|
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, u = n.shouldHandleStateChanges, m = u === void 0 ? !0 : u, f = n.storeKey, h = f === void 0 ? "store" : f, S = n.withRef, y = S === void 0 ? !1 : S, w = n.forwardRef, T = w === void 0 ? !1 : w, D = n.context, x = D === void 0 ? jo : D, k = js(n, zv);
|
|
4656
4657
|
if (process.env.NODE_ENV !== "production") {
|
|
4657
4658
|
if (p !== void 0)
|
|
@@ -4666,14 +4667,14 @@ function ry(e, t) {
|
|
|
4666
4667
|
return function(M) {
|
|
4667
4668
|
if (process.env.NODE_ENV !== "production" && !mr.exports.isValidElementType(M))
|
|
4668
4669
|
throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + Xv(M)));
|
|
4669
|
-
var
|
|
4670
|
+
var L = M.displayName || M.name || "Component", R = a(L), K = ue({}, k, {
|
|
4670
4671
|
getDisplayName: a,
|
|
4671
4672
|
methodName: l,
|
|
4672
4673
|
renderCountProp: p,
|
|
4673
4674
|
shouldHandleStateChanges: m,
|
|
4674
4675
|
storeKey: h,
|
|
4675
4676
|
displayName: R,
|
|
4676
|
-
wrappedComponentName:
|
|
4677
|
+
wrappedComponentName: L,
|
|
4677
4678
|
WrappedComponent: M
|
|
4678
4679
|
}), _ = k.pure;
|
|
4679
4680
|
function $(W) {
|
|
@@ -4880,8 +4881,8 @@ function Ey(e, t, n, r, a) {
|
|
|
4880
4881
|
return f = k, b && (S = n(f, h, m)), S;
|
|
4881
4882
|
}
|
|
4882
4883
|
function x(k, b) {
|
|
4883
|
-
var I = !l(b, m),
|
|
4884
|
-
return u = k, m = b, I &&
|
|
4884
|
+
var I = !l(b, m), O = !o(k, u);
|
|
4885
|
+
return u = k, m = b, I && O ? w() : I ? T() : O ? D() : S;
|
|
4885
4886
|
}
|
|
4886
4887
|
return function(b, I) {
|
|
4887
4888
|
return p ? x(b, I) : y(b, I);
|
|
@@ -4911,7 +4912,7 @@ function Dy(e) {
|
|
|
4911
4912
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? ry : n, a = t.mapStateToPropsFactories, o = a === void 0 ? uy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? cy : l, p = t.mergePropsFactories, u = p === void 0 ? Sy : p, m = t.selectorFactory, f = m === void 0 ? Ty : m;
|
|
4912
4913
|
return function(S, y, w, T) {
|
|
4913
4914
|
T === void 0 && (T = {});
|
|
4914
|
-
var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b,
|
|
4915
|
+
var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual, R = L === void 0 ? za : L, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), N = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
|
|
4915
4916
|
return r(f, ue({
|
|
4916
4917
|
methodName: "connect",
|
|
4917
4918
|
getDisplayName: function(W) {
|
|
@@ -6646,17 +6647,17 @@ var Pc = {
|
|
|
6646
6647
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
6647
6648
|
return Qa(e);
|
|
6648
6649
|
kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, t.type + " not permitted in phase " + e.phase) : B(!1));
|
|
6649
|
-
var k = t.payload, b = k.id, I = k.newScroll,
|
|
6650
|
-
if (!
|
|
6650
|
+
var k = t.payload, b = k.id, I = k.newScroll, O = e.dimensions.droppables[b];
|
|
6651
|
+
if (!O)
|
|
6651
6652
|
return e;
|
|
6652
|
-
var M = Qo(
|
|
6653
|
+
var M = Qo(O, I);
|
|
6653
6654
|
return Xa(e, M, !1);
|
|
6654
6655
|
}
|
|
6655
6656
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
6656
6657
|
if (e.phase === "DROP_PENDING")
|
|
6657
6658
|
return e;
|
|
6658
6659
|
kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
|
|
6659
|
-
var
|
|
6660
|
+
var L = t.payload, R = L.id, K = L.isEnabled, _ = e.dimensions.droppables[R];
|
|
6660
6661
|
_ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + R + "] to toggle its enabled state") : B(!1)), _.isEnabled === K && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isEnabled to " + String(K) + `
|
|
6661
6662
|
but it is already ` + String(_.isEnabled)) : B(!1));
|
|
6662
6663
|
var $ = ue({}, _, {
|
|
@@ -7068,12 +7069,12 @@ var gT = function(e) {
|
|
|
7068
7069
|
current: o.current.client.offset,
|
|
7069
7070
|
destination: x,
|
|
7070
7071
|
reason: l
|
|
7071
|
-
}),
|
|
7072
|
+
}), O = {
|
|
7072
7073
|
newHomeClientOffset: x,
|
|
7073
7074
|
dropDuration: I,
|
|
7074
7075
|
completed: k
|
|
7075
7076
|
};
|
|
7076
|
-
n(uT(
|
|
7077
|
+
n(uT(O));
|
|
7077
7078
|
}
|
|
7078
7079
|
};
|
|
7079
7080
|
};
|
|
@@ -9000,24 +9001,24 @@ function fC(e) {
|
|
|
9000
9001
|
function y() {
|
|
9001
9002
|
return t.isActive(f);
|
|
9002
9003
|
}
|
|
9003
|
-
function w(
|
|
9004
|
+
function w(O, M) {
|
|
9004
9005
|
Os({
|
|
9005
|
-
expected:
|
|
9006
|
+
expected: O,
|
|
9006
9007
|
phase: h,
|
|
9007
9008
|
isLockActive: y,
|
|
9008
9009
|
shouldWarn: !0
|
|
9009
9010
|
}) && r.dispatch(M());
|
|
9010
9011
|
}
|
|
9011
9012
|
var T = w.bind(null, "DRAGGING");
|
|
9012
|
-
function D(
|
|
9013
|
+
function D(O) {
|
|
9013
9014
|
function M() {
|
|
9014
9015
|
t.release(), h = "COMPLETED";
|
|
9015
9016
|
}
|
|
9016
|
-
h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(
|
|
9017
|
-
function
|
|
9017
|
+
h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(O.liftActionArgs)), h = "DRAGGING";
|
|
9018
|
+
function L(R, K) {
|
|
9018
9019
|
if (K === void 0 && (K = {
|
|
9019
9020
|
shouldBlockNextClick: !1
|
|
9020
|
-
}),
|
|
9021
|
+
}), O.cleanup(), K.shouldBlockNextClick) {
|
|
9021
9022
|
var _ = yt(window, [{
|
|
9022
9023
|
eventName: "click",
|
|
9023
9024
|
fn: mC,
|
|
@@ -9044,24 +9045,24 @@ function fC(e) {
|
|
|
9044
9045
|
},
|
|
9045
9046
|
shouldRespectForcePress: S,
|
|
9046
9047
|
drop: function(K) {
|
|
9047
|
-
return
|
|
9048
|
+
return L("DROP", K);
|
|
9048
9049
|
},
|
|
9049
9050
|
cancel: function(K) {
|
|
9050
|
-
return
|
|
9051
|
+
return L("CANCEL", K);
|
|
9051
9052
|
}
|
|
9052
|
-
},
|
|
9053
|
+
}, O.actions);
|
|
9053
9054
|
}
|
|
9054
|
-
function x(
|
|
9055
|
+
function x(O) {
|
|
9055
9056
|
var M = Ur(function(R) {
|
|
9056
9057
|
T(function() {
|
|
9057
9058
|
return jp({
|
|
9058
9059
|
client: R
|
|
9059
9060
|
});
|
|
9060
9061
|
});
|
|
9061
|
-
}),
|
|
9062
|
+
}), L = D({
|
|
9062
9063
|
liftActionArgs: {
|
|
9063
9064
|
id: o,
|
|
9064
|
-
clientSelection:
|
|
9065
|
+
clientSelection: O,
|
|
9065
9066
|
movementMode: "FLUID"
|
|
9066
9067
|
},
|
|
9067
9068
|
cleanup: function() {
|
|
@@ -9071,12 +9072,12 @@ function fC(e) {
|
|
|
9071
9072
|
move: M
|
|
9072
9073
|
}
|
|
9073
9074
|
});
|
|
9074
|
-
return ue({},
|
|
9075
|
+
return ue({}, L, {
|
|
9075
9076
|
move: M
|
|
9076
9077
|
});
|
|
9077
9078
|
}
|
|
9078
9079
|
function k() {
|
|
9079
|
-
var
|
|
9080
|
+
var O = {
|
|
9080
9081
|
moveUp: function() {
|
|
9081
9082
|
return T(lT);
|
|
9082
9083
|
},
|
|
@@ -9097,17 +9098,17 @@ function fC(e) {
|
|
|
9097
9098
|
movementMode: "SNAP"
|
|
9098
9099
|
},
|
|
9099
9100
|
cleanup: mn,
|
|
9100
|
-
actions:
|
|
9101
|
+
actions: O
|
|
9101
9102
|
});
|
|
9102
9103
|
}
|
|
9103
9104
|
function b() {
|
|
9104
|
-
var
|
|
9105
|
+
var O = Os({
|
|
9105
9106
|
expected: "PRE_DRAG",
|
|
9106
9107
|
phase: h,
|
|
9107
9108
|
isLockActive: y,
|
|
9108
9109
|
shouldWarn: !0
|
|
9109
9110
|
});
|
|
9110
|
-
|
|
9111
|
+
O && t.release();
|
|
9111
9112
|
}
|
|
9112
9113
|
var I = {
|
|
9113
9114
|
isActive: function() {
|
|
@@ -9242,21 +9243,21 @@ function bC(e) {
|
|
|
9242
9243
|
};
|
|
9243
9244
|
}, [b, k]);
|
|
9244
9245
|
n(I);
|
|
9245
|
-
var
|
|
9246
|
+
var O = me(function(R) {
|
|
9246
9247
|
return tu($r(l).getState(), R);
|
|
9247
9248
|
}, []), M = me(function() {
|
|
9248
9249
|
return kn($r(l).getState());
|
|
9249
|
-
}, []),
|
|
9250
|
+
}, []), L = Ce(function() {
|
|
9250
9251
|
return {
|
|
9251
9252
|
marshal: w,
|
|
9252
9253
|
focus: D,
|
|
9253
9254
|
contextId: t,
|
|
9254
|
-
canLift:
|
|
9255
|
+
canLift: O,
|
|
9255
9256
|
isMovementAllowed: M,
|
|
9256
9257
|
dragHandleUsageInstructionsId: m,
|
|
9257
9258
|
registry: y
|
|
9258
9259
|
};
|
|
9259
|
-
}, [t, w, m, D,
|
|
9260
|
+
}, [t, w, m, D, O, M, y]);
|
|
9260
9261
|
return gC({
|
|
9261
9262
|
contextId: t,
|
|
9262
9263
|
store: x,
|
|
@@ -9266,7 +9267,7 @@ function bC(e) {
|
|
|
9266
9267
|
}), Le(function() {
|
|
9267
9268
|
return k;
|
|
9268
9269
|
}, [k]), Y.createElement(ha.Provider, {
|
|
9269
|
-
value:
|
|
9270
|
+
value: L
|
|
9270
9271
|
}, Y.createElement(mp, {
|
|
9271
9272
|
context: hi,
|
|
9272
9273
|
store: x
|
|
@@ -9473,11 +9474,11 @@ function PC(e) {
|
|
|
9473
9474
|
}, [e.droppableId, e.mode, e.type]), p = pe(c), u = Ce(function() {
|
|
9474
9475
|
return qe(function(b, I) {
|
|
9475
9476
|
t.current || (process.env.NODE_ENV !== "production" ? B(!1, "Can only update scroll when dragging") : B(!1));
|
|
9476
|
-
var
|
|
9477
|
+
var O = {
|
|
9477
9478
|
x: b,
|
|
9478
9479
|
y: I
|
|
9479
9480
|
};
|
|
9480
|
-
o.updateDroppableScroll(c.id,
|
|
9481
|
+
o.updateDroppableScroll(c.id, O);
|
|
9481
9482
|
});
|
|
9482
9483
|
}, [c.id, o]), m = me(function() {
|
|
9483
9484
|
var b = t.current;
|
|
@@ -9490,33 +9491,33 @@ function PC(e) {
|
|
|
9490
9491
|
}, [f]), S = me(function() {
|
|
9491
9492
|
var b = t.current, I = Rs(b);
|
|
9492
9493
|
b && I || (process.env.NODE_ENV !== "production" ? B(!1, "Could not find scroll options while scrolling") : B(!1));
|
|
9493
|
-
var
|
|
9494
|
-
if (
|
|
9494
|
+
var O = b.scrollOptions;
|
|
9495
|
+
if (O.shouldPublishImmediately) {
|
|
9495
9496
|
f();
|
|
9496
9497
|
return;
|
|
9497
9498
|
}
|
|
9498
9499
|
h();
|
|
9499
9500
|
}, [h, f]), y = me(function(b, I) {
|
|
9500
9501
|
t.current && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect a droppable while a drag is occurring") : B(!1));
|
|
9501
|
-
var
|
|
9502
|
+
var O = l.current, M = O.getDroppableRef();
|
|
9502
9503
|
M || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect without a droppable ref") : B(!1));
|
|
9503
|
-
var
|
|
9504
|
+
var L = kC(M), R = {
|
|
9504
9505
|
ref: M,
|
|
9505
9506
|
descriptor: c,
|
|
9506
|
-
env:
|
|
9507
|
+
env: L,
|
|
9507
9508
|
scrollOptions: I
|
|
9508
9509
|
};
|
|
9509
9510
|
t.current = R;
|
|
9510
9511
|
var K = LC({
|
|
9511
9512
|
ref: M,
|
|
9512
9513
|
descriptor: c,
|
|
9513
|
-
env:
|
|
9514
|
+
env: L,
|
|
9514
9515
|
windowScroll: b,
|
|
9515
|
-
direction:
|
|
9516
|
-
isDropDisabled:
|
|
9517
|
-
isCombineEnabled:
|
|
9518
|
-
shouldClipSubject: !
|
|
9519
|
-
}), _ =
|
|
9516
|
+
direction: O.direction,
|
|
9517
|
+
isDropDisabled: O.isDropDisabled,
|
|
9518
|
+
isCombineEnabled: O.isCombineEnabled,
|
|
9519
|
+
shouldClipSubject: !O.ignoreContainerClipping
|
|
9520
|
+
}), _ = L.closestScrollable;
|
|
9520
9521
|
return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(R.scrollOptions)), process.env.NODE_ENV !== "production" && xC(_)), K;
|
|
9521
9522
|
}, [n.contextId, c, S, l]), w = me(function() {
|
|
9522
9523
|
var b = t.current, I = Rs(b);
|
|
@@ -9529,8 +9530,8 @@ function PC(e) {
|
|
|
9529
9530
|
}, [S, h]), D = me(function(b) {
|
|
9530
9531
|
var I = t.current;
|
|
9531
9532
|
I || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll when there is no drag") : B(!1));
|
|
9532
|
-
var
|
|
9533
|
-
|
|
9533
|
+
var O = Rs(I);
|
|
9534
|
+
O || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll a droppable with no closest scrollable") : B(!1)), O.scrollTop += b.y, O.scrollLeft += b.x;
|
|
9534
9535
|
}, []), x = Ce(function() {
|
|
9535
9536
|
return {
|
|
9536
9537
|
getDimensionAndWatchScroll: y,
|
|
@@ -9848,10 +9849,10 @@ function nD(e) {
|
|
|
9848
9849
|
draggable: !1,
|
|
9849
9850
|
onDragStart: tD
|
|
9850
9851
|
} : null;
|
|
9851
|
-
}, [o, l, S, y]),
|
|
9852
|
+
}, [o, l, S, y]), O = me(function(R) {
|
|
9852
9853
|
x.type === "DRAGGING" && (!x.dropping || R.propertyName === "transform" && k());
|
|
9853
9854
|
}, [k, x]), M = Ce(function() {
|
|
9854
|
-
var R = JC(x), K = x.type === "DRAGGING" && x.dropping ?
|
|
9855
|
+
var R = JC(x), K = x.type === "DRAGGING" && x.dropping ? O : null, _ = {
|
|
9855
9856
|
innerRef: n,
|
|
9856
9857
|
draggableProps: {
|
|
9857
9858
|
"data-rbd-draggable-context-id": o,
|
|
@@ -9862,7 +9863,7 @@ function nD(e) {
|
|
|
9862
9863
|
dragHandleProps: I
|
|
9863
9864
|
};
|
|
9864
9865
|
return _;
|
|
9865
|
-
}, [o, I, S, x,
|
|
9866
|
+
}, [o, I, S, x, O, n]), L = Ce(function() {
|
|
9866
9867
|
return {
|
|
9867
9868
|
draggableId: f.id,
|
|
9868
9869
|
type: f.type,
|
|
@@ -9872,7 +9873,7 @@ function nD(e) {
|
|
|
9872
9873
|
}
|
|
9873
9874
|
};
|
|
9874
9875
|
}, [f.droppableId, f.id, f.index, f.type]);
|
|
9875
|
-
return h(M, x.snapshot,
|
|
9876
|
+
return h(M, x.snapshot, L);
|
|
9876
9877
|
}
|
|
9877
9878
|
var bu = function(e, t) {
|
|
9878
9879
|
return e === t;
|
|
@@ -10057,7 +10058,7 @@ function uD(e) {
|
|
|
10057
10058
|
getDroppableRef: x,
|
|
10058
10059
|
getPlaceholderRef: b
|
|
10059
10060
|
});
|
|
10060
|
-
var
|
|
10061
|
+
var O = me(function() {
|
|
10061
10062
|
r() && T({
|
|
10062
10063
|
maxScroll: eu()
|
|
10063
10064
|
});
|
|
@@ -10083,9 +10084,9 @@ function uD(e) {
|
|
|
10083
10084
|
innerRef: I,
|
|
10084
10085
|
animate: Q,
|
|
10085
10086
|
contextId: n,
|
|
10086
|
-
onTransitionEnd:
|
|
10087
|
+
onTransitionEnd: O
|
|
10087
10088
|
});
|
|
10088
|
-
}),
|
|
10089
|
+
}), L = Ce(function() {
|
|
10089
10090
|
return {
|
|
10090
10091
|
innerRef: k,
|
|
10091
10092
|
placeholder: M,
|
|
@@ -10118,7 +10119,7 @@ function uD(e) {
|
|
|
10118
10119
|
}
|
|
10119
10120
|
return Y.createElement(Ei.Provider, {
|
|
10120
10121
|
value: K
|
|
10121
|
-
}, l(
|
|
10122
|
+
}, l(L, y), _());
|
|
10122
10123
|
}
|
|
10123
10124
|
var lo = function(t, n) {
|
|
10124
10125
|
return t === n.droppable.type;
|
|
@@ -10998,41 +10999,41 @@ function xu(e) {
|
|
|
10998
10999
|
}), h = { searchSelectedColumn: "" }, S = V(m.isVisible && "sps-button--open", c), { formMeta: y, formValue: w, updateForm: T } = zb(h);
|
|
10999
11000
|
function D(M) {
|
|
11000
11001
|
if (M.target.value) {
|
|
11001
|
-
const
|
|
11002
|
+
const L = [...m.pendingSelectedColumns], R = [];
|
|
11002
11003
|
m.pendingUnselectedColumns.forEach((K) => {
|
|
11003
|
-
M.target.value === K.name ? (T(h),
|
|
11004
|
+
M.target.value === K.name ? (T(h), L.push({
|
|
11004
11005
|
columnId: ot(),
|
|
11005
11006
|
name: K.name,
|
|
11006
11007
|
value: K.value
|
|
11007
11008
|
})) : R.push(K);
|
|
11008
11009
|
}), f({
|
|
11009
|
-
pendingSelectedColumns:
|
|
11010
|
+
pendingSelectedColumns: L,
|
|
11010
11011
|
pendingUnselectedColumns: R
|
|
11011
11012
|
});
|
|
11012
11013
|
}
|
|
11013
11014
|
}
|
|
11014
11015
|
function x(M) {
|
|
11015
|
-
const
|
|
11016
|
+
const L = [], R = [...m.pendingUnselectedColumns];
|
|
11016
11017
|
m.pendingSelectedColumns.forEach((K) => {
|
|
11017
11018
|
M === K.value ? R.push({
|
|
11018
11019
|
columnId: ot(),
|
|
11019
11020
|
name: K.name,
|
|
11020
11021
|
value: K.value
|
|
11021
|
-
}) :
|
|
11022
|
+
}) : L.push(K);
|
|
11022
11023
|
}), f({
|
|
11023
|
-
pendingSelectedColumns:
|
|
11024
|
+
pendingSelectedColumns: L,
|
|
11024
11025
|
pendingUnselectedColumns: R
|
|
11025
11026
|
});
|
|
11026
11027
|
}
|
|
11027
11028
|
function k(M) {
|
|
11028
11029
|
if (!M.destination)
|
|
11029
11030
|
return;
|
|
11030
|
-
const
|
|
11031
|
-
|
|
11031
|
+
const L = [...m.pendingSelectedColumns], [R] = L.splice(M.source.index, 1);
|
|
11032
|
+
L.splice(M.destination.index, 0, R), f({ pendingSelectedColumns: L });
|
|
11032
11033
|
}
|
|
11033
11034
|
function b() {
|
|
11034
|
-
const M = m.pendingSelectedColumns.map((
|
|
11035
|
-
const R = { ...
|
|
11035
|
+
const M = m.pendingSelectedColumns.map((L) => {
|
|
11036
|
+
const R = { ...L };
|
|
11036
11037
|
return R.columnId && delete R.columnId, R;
|
|
11037
11038
|
});
|
|
11038
11039
|
T(h), f({
|
|
@@ -11047,10 +11048,10 @@ function xu(e) {
|
|
|
11047
11048
|
pendingUnselectedColumns: [...m.unselectedColumns]
|
|
11048
11049
|
});
|
|
11049
11050
|
}
|
|
11050
|
-
const
|
|
11051
|
+
const O = s.useCallback(
|
|
11051
11052
|
(M) => {
|
|
11052
|
-
const
|
|
11053
|
-
return o ? m.pendingUnselectedColumns.filter((R) =>
|
|
11053
|
+
const L = new RegExp(M != null ? M : "", "i");
|
|
11054
|
+
return o ? m.pendingUnselectedColumns.filter((R) => L.test(R.name)).map((R) => R.name).slice(0, o) : m.pendingUnselectedColumns.map((R) => R.name);
|
|
11054
11055
|
},
|
|
11055
11056
|
[m.pendingUnselectedColumns, o]
|
|
11056
11057
|
);
|
|
@@ -11114,7 +11115,7 @@ function xu(e) {
|
|
|
11114
11115
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
11115
11116
|
className: "sps-column-chooser__search-container"
|
|
11116
11117
|
}, /* @__PURE__ */ s.createElement(Uo, {
|
|
11117
|
-
suggestions:
|
|
11118
|
+
suggestions: O,
|
|
11118
11119
|
disabled: Boolean(
|
|
11119
11120
|
r && m.pendingSelectedColumns.length >= r
|
|
11120
11121
|
),
|
|
@@ -11133,14 +11134,14 @@ function xu(e) {
|
|
|
11133
11134
|
}, (M) => /* @__PURE__ */ s.createElement("div", {
|
|
11134
11135
|
...M.droppableProps,
|
|
11135
11136
|
ref: M.innerRef
|
|
11136
|
-
}, m.pendingSelectedColumns.map((
|
|
11137
|
+
}, m.pendingSelectedColumns.map((L, R) => /* @__PURE__ */ s.createElement(Ti, {
|
|
11137
11138
|
index: R,
|
|
11138
|
-
key:
|
|
11139
|
-
columnId:
|
|
11140
|
-
name:
|
|
11141
|
-
value:
|
|
11139
|
+
key: L.columnId,
|
|
11140
|
+
columnId: L.columnId,
|
|
11141
|
+
name: L.name,
|
|
11142
|
+
value: L.value,
|
|
11142
11143
|
onDelete: x,
|
|
11143
|
-
mandatory:
|
|
11144
|
+
mandatory: L.mandatory
|
|
11144
11145
|
})), M.placeholder)))));
|
|
11145
11146
|
}
|
|
11146
11147
|
Object.assign(xu, {
|
|
@@ -11310,7 +11311,7 @@ function Iu(e) {
|
|
|
11310
11311
|
function I(_) {
|
|
11311
11312
|
_.stopPropagation(), b && (!o || o()) ? (k(!1), p && p()) : !b && (!l || l()) && (k(!0), u && u());
|
|
11312
11313
|
}
|
|
11313
|
-
const
|
|
11314
|
+
const O = () => /* @__PURE__ */ s.createElement(vr, {
|
|
11314
11315
|
checked: S,
|
|
11315
11316
|
onChange: c
|
|
11316
11317
|
}), M = () => /* @__PURE__ */ s.createElement("button", {
|
|
@@ -11320,7 +11321,7 @@ function Iu(e) {
|
|
|
11320
11321
|
"aria-label": D(`design-system:contentRow.${b ? "collapse" : "expand"}`)
|
|
11321
11322
|
}, /* @__PURE__ */ s.createElement(Ht, {
|
|
11322
11323
|
icon: b ? je.MINUS_CIRCLE : je.PLUS_CIRCLE
|
|
11323
|
-
})),
|
|
11324
|
+
})), L = V(
|
|
11324
11325
|
w || "sps-content-row",
|
|
11325
11326
|
b && "sps-content-row--expanded",
|
|
11326
11327
|
f && "sps-content-row--card-spaced",
|
|
@@ -11332,7 +11333,7 @@ function Iu(e) {
|
|
|
11332
11333
|
{ type: wi }
|
|
11333
11334
|
]);
|
|
11334
11335
|
return /* @__PURE__ */ s.createElement("div", {
|
|
11335
|
-
className:
|
|
11336
|
+
className: L,
|
|
11336
11337
|
"data-testid": y,
|
|
11337
11338
|
...T
|
|
11338
11339
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
@@ -11340,11 +11341,11 @@ function Iu(e) {
|
|
|
11340
11341
|
"data-testid": `${y}__children`
|
|
11341
11342
|
}, h && !t && /* @__PURE__ */ s.createElement(ar, {
|
|
11342
11343
|
widthPx: 46
|
|
11343
|
-
}, /* @__PURE__ */ s.createElement(
|
|
11344
|
+
}, /* @__PURE__ */ s.createElement(O, null)), K && !t && /* @__PURE__ */ s.createElement(ar, {
|
|
11344
11345
|
widthPx: 44
|
|
11345
11346
|
}, /* @__PURE__ */ s.createElement(M, null)), K && h && t && /* @__PURE__ */ s.createElement(ar, {
|
|
11346
11347
|
widthPx: 46
|
|
11347
|
-
}, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(
|
|
11348
|
+
}, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), R), K);
|
|
11348
11349
|
}
|
|
11349
11350
|
Object.assign(Iu, {
|
|
11350
11351
|
props: kD,
|
|
@@ -11934,21 +11935,21 @@ function Ci(e) {
|
|
|
11934
11935
|
c,
|
|
11935
11936
|
r
|
|
11936
11937
|
]);
|
|
11937
|
-
const D = nd(S), x = td(S), k = nd(w), b = td(w), [I,
|
|
11938
|
+
const D = nd(S), x = td(S), k = nd(w), b = td(w), [I, O] = s.useState();
|
|
11938
11939
|
function M() {
|
|
11939
11940
|
y(se.prevMonth({ ...S, date: 15 })), u && T(se.prevMonth({ ...w, date: 15 }));
|
|
11940
11941
|
}
|
|
11941
|
-
function
|
|
11942
|
+
function L() {
|
|
11942
11943
|
y(se.nextMonth({ ...S, date: 15 })), u && T(se.nextMonth({ ...w, date: 15 }));
|
|
11943
11944
|
}
|
|
11944
11945
|
function R(N) {
|
|
11945
|
-
N.target && N.target.classList.contains(`${at}-day`) ? u && N.target.classList.contains(`${w.month}`) ?
|
|
11946
|
+
N.target && N.target.classList.contains(`${at}-day`) ? u && N.target.classList.contains(`${w.month}`) ? O({
|
|
11946
11947
|
...w,
|
|
11947
11948
|
date: Number(N.target.textContent)
|
|
11948
|
-
}) :
|
|
11949
|
+
}) : O({
|
|
11949
11950
|
...S,
|
|
11950
11951
|
date: Number(N.target.textContent)
|
|
11951
|
-
}) : (!N.target || !N.target.classList.contains(`${at}-row`)) &&
|
|
11952
|
+
}) : (!N.target || !N.target.classList.contains(`${at}-row`)) && O(void 0);
|
|
11952
11953
|
}
|
|
11953
11954
|
function K(N) {
|
|
11954
11955
|
const A = `${at}-day`;
|
|
@@ -12012,7 +12013,7 @@ function Ci(e) {
|
|
|
12012
12013
|
disabled: se.isSameMonth(S, r),
|
|
12013
12014
|
title: h("design-system:datepicker.calendar.nextMonth"),
|
|
12014
12015
|
className: "sps-datepicker__button sps-datepicker__button-next-month",
|
|
12015
|
-
onClick:
|
|
12016
|
+
onClick: L
|
|
12016
12017
|
}, /* @__PURE__ */ s.createElement("i", {
|
|
12017
12018
|
className: "sps-icon sps-icon-chevron-right"
|
|
12018
12019
|
}))), /* @__PURE__ */ s.createElement("div", {
|
|
@@ -12050,7 +12051,7 @@ function Ci(e) {
|
|
|
12050
12051
|
disabled: se.isSameMonth(w, r),
|
|
12051
12052
|
title: h("design-system:datepicker.calendar.nextMonth"),
|
|
12052
12053
|
className: "sps-datepicker__button sps-datepicker__button-next-month",
|
|
12053
|
-
onClick:
|
|
12054
|
+
onClick: L
|
|
12054
12055
|
}, /* @__PURE__ */ s.createElement("i", {
|
|
12055
12056
|
className: "sps-icon sps-icon-chevron-right"
|
|
12056
12057
|
}))), /* @__PURE__ */ s.createElement("div", {
|
|
@@ -12136,7 +12137,7 @@ function ku({
|
|
|
12136
12137
|
function I(R) {
|
|
12137
12138
|
b(R), D(se.toString(R)), w && w.current && w.current.focus();
|
|
12138
12139
|
}
|
|
12139
|
-
function
|
|
12140
|
+
function O(R) {
|
|
12140
12141
|
D(R.target.value);
|
|
12141
12142
|
const K = se.createFrom(R.target.value);
|
|
12142
12143
|
b(K);
|
|
@@ -12144,7 +12145,7 @@ function ku({
|
|
|
12144
12145
|
function M() {
|
|
12145
12146
|
D(""), b();
|
|
12146
12147
|
}
|
|
12147
|
-
const
|
|
12148
|
+
const L = V(
|
|
12148
12149
|
ad,
|
|
12149
12150
|
"sps-text-input",
|
|
12150
12151
|
x && `${ad}--open`,
|
|
@@ -12154,7 +12155,7 @@ function ku({
|
|
|
12154
12155
|
(!p || se.isValid(p)) && D(se.toString(p));
|
|
12155
12156
|
}, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
|
|
12156
12157
|
id: f,
|
|
12157
|
-
className:
|
|
12158
|
+
className: L,
|
|
12158
12159
|
formMeta: r,
|
|
12159
12160
|
inputRef: w,
|
|
12160
12161
|
focusInputOnClick: !0,
|
|
@@ -12169,7 +12170,7 @@ function ku({
|
|
|
12169
12170
|
className: "sps-text-input__input",
|
|
12170
12171
|
id: h,
|
|
12171
12172
|
placeholder: la,
|
|
12172
|
-
onChange:
|
|
12173
|
+
onChange: O,
|
|
12173
12174
|
onClick: k,
|
|
12174
12175
|
onFocus: k,
|
|
12175
12176
|
value: T,
|
|
@@ -12346,7 +12347,7 @@ function Mu({
|
|
|
12346
12347
|
}) {
|
|
12347
12348
|
const { t: S } = s.useContext(Be), { wrapperId: y, controlId: w } = wt(a, r), T = s.useRef(null), D = s.useRef(null), x = s.useRef(null), [k, b] = s.useState(
|
|
12348
12349
|
Array.isArray(u) ? se.toStringRange(u) : ""
|
|
12349
|
-
), [I,
|
|
12350
|
+
), [I, O] = s.useState(null), [M, L] = s.useState(), {
|
|
12350
12351
|
showPopup: R,
|
|
12351
12352
|
doShowPopup: K,
|
|
12352
12353
|
doHidePopup: _
|
|
@@ -12357,15 +12358,15 @@ function Mu({
|
|
|
12357
12358
|
function N(F) {
|
|
12358
12359
|
const z = u || [];
|
|
12359
12360
|
let j;
|
|
12360
|
-
!z[0] || z[1] || se.isBefore(F, z[0]) ? j = [F, null] : (j = [z[0], F], _(!0), D && D.current && D.current.focus()), I && J(I) === "Before" && z[0] === null && z[1] === null && (j = [null, F], _(!0), D && D.current && D.current.focus()), I && J(I) === "After" && (_(!0), D && D.current && D.current.focus()), $(j), b(se.toStringRange(j)),
|
|
12361
|
+
!z[0] || z[1] || se.isBefore(F, z[0]) ? j = [F, null] : (j = [z[0], F], _(!0), D && D.current && D.current.focus()), I && J(I) === "Before" && z[0] === null && z[1] === null && (j = [null, F], _(!0), D && D.current && D.current.focus()), I && J(I) === "After" && (_(!0), D && D.current && D.current.focus()), $(j), b(se.toStringRange(j)), L(void 0), (I && J(I) === "Before" && j && j[0] !== null || I && J(I) !== "Before" && J(I) !== "After") && O(null);
|
|
12361
12362
|
}
|
|
12362
12363
|
function A(F) {
|
|
12363
12364
|
b(F.target.value);
|
|
12364
12365
|
const z = se.createRangeFrom(F.target.value);
|
|
12365
|
-
$(z),
|
|
12366
|
+
$(z), L(void 0);
|
|
12366
12367
|
}
|
|
12367
12368
|
function Q() {
|
|
12368
|
-
b(""), $(),
|
|
12369
|
+
b(""), $(), L(void 0), O(null);
|
|
12369
12370
|
}
|
|
12370
12371
|
function q(F) {
|
|
12371
12372
|
switch (F.key) {
|
|
@@ -12379,10 +12380,10 @@ function Mu({
|
|
|
12379
12380
|
}
|
|
12380
12381
|
function W(F) {
|
|
12381
12382
|
if (!F) {
|
|
12382
|
-
|
|
12383
|
+
O(null), $(void 0);
|
|
12383
12384
|
return;
|
|
12384
12385
|
}
|
|
12385
|
-
|
|
12386
|
+
O(F);
|
|
12386
12387
|
const z = se.createRangeFromPreset(F);
|
|
12387
12388
|
if (F && J(F) === "Before")
|
|
12388
12389
|
if (u && u[0] && u[1]) {
|
|
@@ -12410,10 +12411,10 @@ function Mu({
|
|
|
12410
12411
|
se.createRangeFromPreset(j)
|
|
12411
12412
|
)
|
|
12412
12413
|
);
|
|
12413
|
-
z ? W(z) : u[0] === null || u[1] === null ||
|
|
12414
|
+
z ? W(z) : u[0] === null || u[1] === null || O(null);
|
|
12414
12415
|
}
|
|
12415
12416
|
}, [u]), s.useEffect(() => {
|
|
12416
|
-
u ? Array.isArray(u) && !I ? (u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)),
|
|
12417
|
+
u ? Array.isArray(u) && !I ? (u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)), L(void 0)) : Array.isArray(u) && I && J(I) === "Before" ? u && u[0] && u[1] ? O(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && J(I) === "After" ? u && u[0] && u[1] ? O(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && b("") : Q();
|
|
12417
12418
|
}, [u, I]);
|
|
12418
12419
|
function J(F) {
|
|
12419
12420
|
return F && /^design-system:/.test(F.label) ? S(F.label) : F.label;
|
|
@@ -12786,7 +12787,7 @@ function an() {
|
|
|
12786
12787
|
return i != null ? S(T(d), i) : T(d).userInvalidated = !0, d;
|
|
12787
12788
|
}
|
|
12788
12789
|
var b = r.momentProperties = [], I = !1;
|
|
12789
|
-
function
|
|
12790
|
+
function O(i, d) {
|
|
12790
12791
|
var g, v, C;
|
|
12791
12792
|
if (u(d._isAMomentObject) || (i._isAMomentObject = d._isAMomentObject), u(d._i) || (i._i = d._i), u(d._f) || (i._f = d._f), u(d._l) || (i._l = d._l), u(d._strict) || (i._strict = d._strict), u(d._tzm) || (i._tzm = d._tzm), u(d._isUTC) || (i._isUTC = d._isUTC), u(d._offset) || (i._offset = d._offset), u(d._pf) || (i._pf = T(d)), u(d._locale) || (i._locale = d._locale), b.length > 0)
|
|
12792
12793
|
for (g = 0; g < b.length; g++)
|
|
@@ -12794,9 +12795,9 @@ function an() {
|
|
|
12794
12795
|
return i;
|
|
12795
12796
|
}
|
|
12796
12797
|
function M(i) {
|
|
12797
|
-
|
|
12798
|
+
O(this, i), this._d = new Date(i._d != null ? i._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), I === !1 && (I = !0, r.updateOffset(this), I = !1);
|
|
12798
12799
|
}
|
|
12799
|
-
function
|
|
12800
|
+
function L(i) {
|
|
12800
12801
|
return i instanceof M || i != null && i._isAMomentObject != null;
|
|
12801
12802
|
}
|
|
12802
12803
|
function R(i) {
|
|
@@ -13761,7 +13762,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13761
13762
|
return;
|
|
13762
13763
|
}
|
|
13763
13764
|
for (C = 0; C < i._f.length; C++)
|
|
13764
|
-
P = 0, U = !1, d =
|
|
13765
|
+
P = 0, U = !1, d = O({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), x(d) && (U = !0), P += T(d).charsLeftOver, P += T(d).unusedTokens.length * 10, T(d).score = P, fe ? P < v && (v = P, g = d) : (v == null || P < v || U) && (v = P, g = d, U && (fe = !0));
|
|
13765
13766
|
S(i, g || d);
|
|
13766
13767
|
}
|
|
13767
13768
|
function yh(i) {
|
|
@@ -13781,7 +13782,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13781
13782
|
}
|
|
13782
13783
|
function bl(i) {
|
|
13783
13784
|
var d = i._i, g = i._f;
|
|
13784
|
-
return i._locale = i._locale || jt(i._l), d === null || g === void 0 && d === "" ? k({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)),
|
|
13785
|
+
return i._locale = i._locale || jt(i._l), d === null || g === void 0 && d === "" ? k({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)), L(d) ? new M(Na(d)) : (f(d) ? i._d = d : o(g) ? vh(i) : g ? ka(i) : Th(i), x(i) || (i._d = null), i));
|
|
13785
13786
|
}
|
|
13786
13787
|
function Th(i) {
|
|
13787
13788
|
var d = i._i;
|
|
@@ -13889,7 +13890,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13889
13890
|
}
|
|
13890
13891
|
function La(i, d) {
|
|
13891
13892
|
var g, v;
|
|
13892
|
-
return d._isUTC ? (g = d.clone(), v = (
|
|
13893
|
+
return d._isUTC ? (g = d.clone(), v = (L(i) || f(i) ? i.valueOf() : Pe(i).valueOf()) - g.valueOf(), g._d.setTime(g._d.valueOf() + v), r.updateOffset(g, !1), g) : Pe(i).local();
|
|
13893
13894
|
}
|
|
13894
13895
|
function Oa(i) {
|
|
13895
13896
|
return -Math.round(i._d.getTimezoneOffset());
|
|
@@ -13943,7 +13944,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13943
13944
|
if (!u(this._isDSTShifted))
|
|
13944
13945
|
return this._isDSTShifted;
|
|
13945
13946
|
var i = {}, d;
|
|
13946
|
-
return
|
|
13947
|
+
return O(i, this), i = bl(i), i._a ? (d = i._isUTC ? y(i._a) : Pe(i._a), this._isDSTShifted = this.isValid() && _h(i._a, d.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
13947
13948
|
}
|
|
13948
13949
|
function Kh() {
|
|
13949
13950
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -14012,7 +14013,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14012
14013
|
return typeof i == "string" || i instanceof String;
|
|
14013
14014
|
}
|
|
14014
14015
|
function zh(i) {
|
|
14015
|
-
return
|
|
14016
|
+
return L(i) || f(i) || Nl(i) || m(i) || Jh(i) || qh(i) || i === null || i === void 0;
|
|
14016
14017
|
}
|
|
14017
14018
|
function qh(i) {
|
|
14018
14019
|
var d = l(i) && !p(i), g = !1, v = [
|
|
@@ -14079,19 +14080,19 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14079
14080
|
return new M(this);
|
|
14080
14081
|
}
|
|
14081
14082
|
function tg(i, d) {
|
|
14082
|
-
var g =
|
|
14083
|
+
var g = L(i) ? i : Pe(i);
|
|
14083
14084
|
return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() > g.valueOf() : g.valueOf() < this.clone().startOf(d).valueOf()) : !1;
|
|
14084
14085
|
}
|
|
14085
14086
|
function ng(i, d) {
|
|
14086
|
-
var g =
|
|
14087
|
+
var g = L(i) ? i : Pe(i);
|
|
14087
14088
|
return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() < g.valueOf() : this.clone().endOf(d).valueOf() < g.valueOf()) : !1;
|
|
14088
14089
|
}
|
|
14089
14090
|
function rg(i, d, g, v) {
|
|
14090
|
-
var C =
|
|
14091
|
+
var C = L(i) ? i : Pe(i), P = L(d) ? d : Pe(d);
|
|
14091
14092
|
return this.isValid() && C.isValid() && P.isValid() ? (v = v || "()", (v[0] === "(" ? this.isAfter(C, g) : !this.isBefore(C, g)) && (v[1] === ")" ? this.isBefore(P, g) : !this.isAfter(P, g))) : !1;
|
|
14092
14093
|
}
|
|
14093
14094
|
function sg(i, d) {
|
|
14094
|
-
var g =
|
|
14095
|
+
var g = L(i) ? i : Pe(i), v;
|
|
14095
14096
|
return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() === g.valueOf() : (v = g.valueOf(), this.clone().startOf(d).valueOf() <= v && v <= this.clone().endOf(d).valueOf())) : !1;
|
|
14096
14097
|
}
|
|
14097
14098
|
function ag(i, d) {
|
|
@@ -14170,13 +14171,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14170
14171
|
return this.localeData().postformat(d);
|
|
14171
14172
|
}
|
|
14172
14173
|
function ug(i, d) {
|
|
14173
|
-
return this.isValid() && (
|
|
14174
|
+
return this.isValid() && (L(i) && i.isValid() || Pe(i).isValid()) ? xt({ to: this, from: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
14174
14175
|
}
|
|
14175
14176
|
function mg(i) {
|
|
14176
14177
|
return this.from(Pe(), i);
|
|
14177
14178
|
}
|
|
14178
14179
|
function fg(i, d) {
|
|
14179
|
-
return this.isValid() && (
|
|
14180
|
+
return this.isValid() && (L(i) && i.isValid() || Pe(i).isValid()) ? xt({ from: this, to: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
14180
14181
|
}
|
|
14181
14182
|
function hg(i) {
|
|
14182
14183
|
return this.to(Pe(), i);
|
|
@@ -14811,7 +14812,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14811
14812
|
g._d = new Date(Se(i));
|
|
14812
14813
|
});
|
|
14813
14814
|
//! moment.js
|
|
14814
|
-
return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment =
|
|
14815
|
+
return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment = L, r.weekdays = aS, r.parseZone = nS, r.localeData = jt, r.isDuration = vs, r.monthsShort = sS, r.weekdaysMin = iS, r.defineLocale = Da, r.updateLocale = nh, r.locales = rh, r.weekdaysShort = oS, r.normalizeUnits = Ne, r.relativeTimeRounding = PS, r.relativeTimeThreshold = BS, r.calendarFormat = Xh, r.prototype = Z, r.HTML5_FMT = {
|
|
14815
14816
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
14816
14817
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
14817
14818
|
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
@@ -15766,7 +15767,7 @@ function Lt({
|
|
|
15766
15767
|
hideTimer: null
|
|
15767
15768
|
}), [T, D] = s.useState(!1), x = s.useRef(null), k = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, b = s.useRef(null), I = s.useCallback(() => {
|
|
15768
15769
|
w.current.hideTimer && (window.clearTimeout(w.current.hideTimer), w.current.hideTimer = null);
|
|
15769
|
-
}, []),
|
|
15770
|
+
}, []), O = s.useCallback(() => {
|
|
15770
15771
|
I(), D(!1);
|
|
15771
15772
|
}, []), M = s.useCallback((J = !1) => {
|
|
15772
15773
|
var H;
|
|
@@ -15778,12 +15779,12 @@ function Lt({
|
|
|
15778
15779
|
for (const F of xn.values())
|
|
15779
15780
|
F();
|
|
15780
15781
|
return D(!0), !0;
|
|
15781
|
-
}, []),
|
|
15782
|
-
J && J.stopPropagation(), D((H) => H ? (
|
|
15782
|
+
}, []), L = s.useCallback((J) => {
|
|
15783
|
+
J && J.stopPropagation(), D((H) => H ? (O(), !1) : M());
|
|
15783
15784
|
}, []), R = s.useCallback((J) => {
|
|
15784
|
-
x.current && !x.current.contains(J.target) &&
|
|
15785
|
+
x.current && !x.current.contains(J.target) && O();
|
|
15785
15786
|
}, []), K = s.useCallback(() => {
|
|
15786
|
-
I(), w.current.hideTimer = window.setTimeout(
|
|
15787
|
+
I(), w.current.hideTimer = window.setTimeout(O, a);
|
|
15787
15788
|
}, []), _ = s.useCallback((J) => {
|
|
15788
15789
|
var G, oe, ne, le, ee, Te;
|
|
15789
15790
|
const [H, F] = J.split(" "), z = (G = k == null ? void 0 : k.current) == null ? void 0 : G.getBoundingClientRect(), j = b.current ? parseInt(((oe = getComputedStyle(b.current)) == null ? void 0 : oe.width) || "0", 10) : 0, te = j * Math.sqrt(2), X = (te - j) / 2;
|
|
@@ -15801,7 +15802,7 @@ function Lt({
|
|
|
15801
15802
|
return 0;
|
|
15802
15803
|
}, []);
|
|
15803
15804
|
s.useEffect(() => {
|
|
15804
|
-
if (typeof n == "string" && (k.current = document.getElementById(n)), T ? xn.set(w.current.instanceKey,
|
|
15805
|
+
if (typeof n == "string" && (k.current = document.getElementById(n)), T ? xn.set(w.current.instanceKey, O) : xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), f === it.MANUAL) {
|
|
15805
15806
|
if (o !== w.current.prevIsShown)
|
|
15806
15807
|
switch (o) {
|
|
15807
15808
|
case "visible":
|
|
@@ -15811,7 +15812,7 @@ function Lt({
|
|
|
15811
15812
|
M(!0);
|
|
15812
15813
|
break;
|
|
15813
15814
|
case "hidden":
|
|
15814
|
-
|
|
15815
|
+
O();
|
|
15815
15816
|
break;
|
|
15816
15817
|
case "delayed_hidden":
|
|
15817
15818
|
K();
|
|
@@ -15826,7 +15827,7 @@ function Lt({
|
|
|
15826
15827
|
k.current.addEventListener("mouseenter", M), k.current.addEventListener("mouseleave", K);
|
|
15827
15828
|
break;
|
|
15828
15829
|
case it.CLICK:
|
|
15829
|
-
k.current.addEventListener("click",
|
|
15830
|
+
k.current.addEventListener("click", L), document.addEventListener("click", R);
|
|
15830
15831
|
break;
|
|
15831
15832
|
case it.MANUAL:
|
|
15832
15833
|
break;
|
|
@@ -15836,7 +15837,7 @@ function Lt({
|
|
|
15836
15837
|
((J = x.current) == null ? void 0 : J.textContent) === "" && T && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), D(!1));
|
|
15837
15838
|
}, [e, T]), s.useEffect(
|
|
15838
15839
|
() => () => {
|
|
15839
|
-
xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click",
|
|
15840
|
+
xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", L), document.removeEventListener("click", R));
|
|
15840
15841
|
},
|
|
15841
15842
|
[]
|
|
15842
15843
|
);
|
|
@@ -15929,9 +15930,9 @@ function Ii(e) {
|
|
|
15929
15930
|
}), s.useEffect(() => {
|
|
15930
15931
|
var M;
|
|
15931
15932
|
h.current = (M = f == null ? void 0 : f.current) == null ? void 0 : M.getElementsByClassName("sps-form-group__label")[0];
|
|
15932
|
-
const I = () => x(ye.VISIBLE),
|
|
15933
|
-
return h.current && (h.current.addEventListener("focus", I), h.current.addEventListener("blur",
|
|
15934
|
-
h.current && (h.current.removeEventListener("focus", I), h.current.removeEventListener("blur",
|
|
15933
|
+
const I = () => x(ye.VISIBLE), O = () => x(ye.HIDDEN);
|
|
15934
|
+
return h.current && (h.current.addEventListener("focus", I), h.current.addEventListener("blur", O)), () => {
|
|
15935
|
+
h.current && (h.current.removeEventListener("focus", I), h.current.removeEventListener("blur", O));
|
|
15935
15936
|
};
|
|
15936
15937
|
}), l && (l.onFocus = () => x(ye.VISIBLE), l.onBlur = () => x(ye.HIDDEN));
|
|
15937
15938
|
const k = V(
|
|
@@ -16911,20 +16912,20 @@ function Bu({
|
|
|
16911
16912
|
applyNestedStyles: S,
|
|
16912
16913
|
"data-testid": y
|
|
16913
16914
|
}) {
|
|
16914
|
-
const w = a || r, T = s.useRef(null), D = s.useRef(null), [x, k] = s.useState(ye.HIDDEN), [b, I] = s.useState(!1), [
|
|
16915
|
+
const w = a || r, T = s.useRef(null), D = s.useRef(null), [x, k] = s.useState(ye.HIDDEN), [b, I] = s.useState(!1), [O, M] = s.useState(m);
|
|
16915
16916
|
ap(() => {
|
|
16916
|
-
f == null || f(
|
|
16917
|
-
}, [
|
|
16917
|
+
f == null || f(O);
|
|
16918
|
+
}, [O]), s.useEffect(() => {
|
|
16918
16919
|
if (w || o) {
|
|
16919
16920
|
const K = w && w.isFocused() || o && o.isFocused();
|
|
16920
16921
|
!b && K ? k(ye.VISIBLE) : b && !K && k(ye.HIDDEN), I(K || !1);
|
|
16921
16922
|
}
|
|
16922
16923
|
});
|
|
16923
|
-
const
|
|
16924
|
+
const L = V(
|
|
16924
16925
|
c || S ? "nested-styles-fieldset" : "sps-fieldset",
|
|
16925
16926
|
(w && !w.isPristine() && w.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
|
|
16926
16927
|
t,
|
|
16927
|
-
u && !
|
|
16928
|
+
u && !O && "sps-fieldset--collapsed",
|
|
16928
16929
|
p && "sps-fieldset--required-fields"
|
|
16929
16930
|
);
|
|
16930
16931
|
function R() {
|
|
@@ -16933,7 +16934,7 @@ function Bu({
|
|
|
16933
16934
|
return /* @__PURE__ */ s.createElement("div", {
|
|
16934
16935
|
className: "sps-fieldset-container"
|
|
16935
16936
|
}, /* @__PURE__ */ s.createElement("fieldset", {
|
|
16936
|
-
className:
|
|
16937
|
+
className: L,
|
|
16937
16938
|
"data-testid": y
|
|
16938
16939
|
}, /* @__PURE__ */ s.createElement("legend", {
|
|
16939
16940
|
className: "sps-fieldset__legend",
|
|
@@ -16942,10 +16943,10 @@ function Bu({
|
|
|
16942
16943
|
onMouseLeave: () => k(ye.DELAYED_HIDDEN),
|
|
16943
16944
|
onClick: R
|
|
16944
16945
|
}, u && /* @__PURE__ */ s.createElement(vr, {
|
|
16945
|
-
checked:
|
|
16946
|
+
checked: O,
|
|
16946
16947
|
className: "d-inline-flex pr-1",
|
|
16947
16948
|
onChange: () => {
|
|
16948
|
-
M(!
|
|
16949
|
+
M(!O);
|
|
16949
16950
|
},
|
|
16950
16951
|
"data-testid": `${y}__checkbox`
|
|
16951
16952
|
}), l, h && /* @__PURE__ */ s.createElement("span", {
|
|
@@ -17513,7 +17514,7 @@ function _i(e) {
|
|
|
17513
17514
|
function I() {
|
|
17514
17515
|
b(), w(!1), S(!1), o && o();
|
|
17515
17516
|
}
|
|
17516
|
-
const
|
|
17517
|
+
const O = a === vo.PROGRESS ? "sps-spinner" : V("sps-icon", `sps-icon-${YS.get(a)}`), M = V(
|
|
17517
17518
|
p || "sps-growler",
|
|
17518
17519
|
h && "show",
|
|
17519
17520
|
y && "fade",
|
|
@@ -17535,7 +17536,7 @@ function _i(e) {
|
|
|
17535
17536
|
src: r,
|
|
17536
17537
|
alt: ""
|
|
17537
17538
|
}), !r && /* @__PURE__ */ s.createElement("i", {
|
|
17538
|
-
className:
|
|
17539
|
+
className: O,
|
|
17539
17540
|
"aria-hidden": "true"
|
|
17540
17541
|
})), /* @__PURE__ */ s.createElement("div", {
|
|
17541
17542
|
className: "sps-growler__message-box"
|
|
@@ -18050,20 +18051,20 @@ function Fu({
|
|
|
18050
18051
|
"data-testid": m,
|
|
18051
18052
|
...f
|
|
18052
18053
|
}) {
|
|
18053
|
-
const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, x] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I,
|
|
18054
|
+
const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, x] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I, O] = s.useState(ye.HIDDEN), [M, L] = s.useState(
|
|
18054
18055
|
ye.HIDDEN
|
|
18055
18056
|
);
|
|
18056
18057
|
function R() {
|
|
18057
|
-
x(ye.HIDDEN), b(ye.HIDDEN),
|
|
18058
|
+
x(ye.HIDDEN), b(ye.HIDDEN), O(ye.HIDDEN), L(ye.HIDDEN);
|
|
18058
18059
|
}
|
|
18059
18060
|
function K() {
|
|
18060
|
-
x(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN),
|
|
18061
|
+
x(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN), O(ye.DELAYED_HIDDEN);
|
|
18061
18062
|
}
|
|
18062
18063
|
function _(te) {
|
|
18063
|
-
te.preventDefault(), R(),
|
|
18064
|
+
te.preventDefault(), R(), O(po(I));
|
|
18064
18065
|
}
|
|
18065
18066
|
function $() {
|
|
18066
|
-
return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M,
|
|
18067
|
+
return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M, L] : o ? [D, x] : a ? [I, O] : [ye.HIDDEN, () => {
|
|
18067
18068
|
}];
|
|
18068
18069
|
}
|
|
18069
18070
|
function N() {
|
|
@@ -18113,7 +18114,7 @@ function Fu({
|
|
|
18113
18114
|
{ type: Ht }
|
|
18114
18115
|
]);
|
|
18115
18116
|
return s.useEffect(() => {
|
|
18116
|
-
W != null && W.hasPreventativeErrors() &&
|
|
18117
|
+
W != null && W.hasPreventativeErrors() && L(ye.VISIBLE);
|
|
18117
18118
|
}, [W == null ? void 0 : W.hasPreventativeErrors()]), /* @__PURE__ */ s.createElement(ut, {
|
|
18118
18119
|
formMeta: W,
|
|
18119
18120
|
formControl: J
|
|
@@ -18627,8 +18628,8 @@ const Sa = s.createContext({
|
|
|
18627
18628
|
const D = r.scrollLeft, x = a == null ? void 0 : a.getBoundingClientRect(), k = r.getBoundingClientRect();
|
|
18628
18629
|
if (T && x && x.top <= T && T <= k.bottom - x.height && k.top <= T) {
|
|
18629
18630
|
if (c && Array.from(c).forEach((b, I) => {
|
|
18630
|
-
const
|
|
18631
|
-
p[I].style.minWidth =
|
|
18631
|
+
const O = b.getBoundingClientRect().width, M = p[I].getBoundingClientRect().width, L = `${Math.max(O, M)}px`;
|
|
18632
|
+
p[I].style.minWidth = L, p[I].style.width = L, p[I].style.maxWidth = L, b.style.minWidth = L, b.style.width = L, b.style.maxWidth = L;
|
|
18632
18633
|
}), a && e.current) {
|
|
18633
18634
|
a.style.position = "fixed", a.style.top = `${T}px`, a.style.overflow = "hidden";
|
|
18634
18635
|
const b = e.current.offsetWidth - e.current.clientWidth, I = `${k.width - b}px`;
|
|
@@ -18735,15 +18736,15 @@ const fN = ({
|
|
|
18735
18736
|
}) => {
|
|
18736
18737
|
const { resizeable: r, resizeState: a, setSingleResizeState: o } = s.useContext(Sa), l = !!r && !!n, c = l ? a == null ? void 0 : a[n] : 0;
|
|
18737
18738
|
return s.useLayoutEffect(() => {
|
|
18738
|
-
var
|
|
18739
|
+
var O, M;
|
|
18739
18740
|
let p, u = c, m = 0;
|
|
18740
|
-
const f = Ku(e.current), h = (
|
|
18741
|
+
const f = Ku(e.current), h = (O = e.current) == null ? void 0 : O.querySelector(".sps-table__column-resizer"), S = (M = e.current) == null ? void 0 : M.querySelector(".sps-table__column-resizer-guide");
|
|
18741
18742
|
function y() {
|
|
18742
18743
|
if (e.current && p && (h && (h.style.backgroundColor = yo.blue200), S && f && (S.style.height = `${f.getBoundingClientRect().height}px`, S.style.display = "block"), f)) {
|
|
18743
|
-
const
|
|
18744
|
-
for (let R = 0; R <
|
|
18745
|
-
const K =
|
|
18746
|
-
|
|
18744
|
+
const L = f.querySelectorAll("thead > tr > th");
|
|
18745
|
+
for (let R = 0; R < L.length; R += 1) {
|
|
18746
|
+
const K = L[R].querySelector(".sps-table__column-resizer");
|
|
18747
|
+
L[R].style.cursor = "col-resize", L[R] !== e.current && K && (L[R].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
|
|
18747
18748
|
}
|
|
18748
18749
|
}
|
|
18749
18750
|
}
|
|
@@ -18752,10 +18753,10 @@ const fN = ({
|
|
|
18752
18753
|
}
|
|
18753
18754
|
function T() {
|
|
18754
18755
|
if (e.current) {
|
|
18755
|
-
const
|
|
18756
|
-
e.current.style.width =
|
|
18756
|
+
const L = u ? `${u}px` : "";
|
|
18757
|
+
e.current.style.width = L, e.current.style.maxWidth = L, e.current.style.minWidth = L;
|
|
18757
18758
|
const R = e.current.querySelector(".sps-table__header-cell-body");
|
|
18758
|
-
if (R && (R.style.overflow =
|
|
18759
|
+
if (R && (R.style.overflow = L ? "hidden" : "", R.style.textOverflow = L ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
|
|
18759
18760
|
const K = f.querySelectorAll("thead > tr > th");
|
|
18760
18761
|
for (let _ = 0; _ < K.length; _ += 1) {
|
|
18761
18762
|
const $ = K[_].querySelector(".sps-table__header-cell-body"), N = K[_].querySelector(".sps-table__column-resizer");
|
|
@@ -18764,13 +18765,13 @@ const fN = ({
|
|
|
18764
18765
|
}
|
|
18765
18766
|
}
|
|
18766
18767
|
}
|
|
18767
|
-
const D = (
|
|
18768
|
-
!e.current || (
|
|
18769
|
-
}, x = (
|
|
18768
|
+
const D = (L) => {
|
|
18769
|
+
!e.current || (L.preventDefault(), p = L.clientX, u = e.current.clientWidth, y());
|
|
18770
|
+
}, x = (L) => {
|
|
18770
18771
|
if (!p || !e.current)
|
|
18771
18772
|
return;
|
|
18772
|
-
const R = Math.max(Math.min(p -
|
|
18773
|
-
R !== 0 && (p =
|
|
18773
|
+
const R = Math.max(Math.min(p - L.clientX, 40), -40);
|
|
18774
|
+
R !== 0 && (p = L.clientX, m += R, u = Math.max(u - R, 40), w());
|
|
18774
18775
|
}, k = () => {
|
|
18775
18776
|
!e.current || (p = 0, m = 0, T(), o(n, u));
|
|
18776
18777
|
}, b = () => {
|
|
@@ -21024,10 +21025,10 @@ function qu(e) {
|
|
|
21024
21025
|
...x
|
|
21025
21026
|
} = e, { t: k } = s.useContext(Be);
|
|
21026
21027
|
let b = null;
|
|
21027
|
-
const [I,
|
|
21028
|
+
const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null), R = lb(() => {
|
|
21028
21029
|
if (M.current && T) {
|
|
21029
21030
|
const H = M.current.getBoundingClientRect();
|
|
21030
|
-
H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null,
|
|
21031
|
+
H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, O(!1)) : (b = window.scrollY, O(!0), o && o(!1)));
|
|
21031
21032
|
}
|
|
21032
21033
|
});
|
|
21033
21034
|
s.useEffect(() => (window.addEventListener("scroll", R), () => {
|
|
@@ -21035,11 +21036,11 @@ function qu(e) {
|
|
|
21035
21036
|
}), []);
|
|
21036
21037
|
const K = s.useRef();
|
|
21037
21038
|
s.useLayoutEffect(() => {
|
|
21038
|
-
if (
|
|
21039
|
+
if (L.current && M.current && T) {
|
|
21039
21040
|
if (I && K.current)
|
|
21040
|
-
|
|
21041
|
+
L.current.style.height = K.current.height, L.current.style.width = K.current.width, L.current.style.marginBottom = K.current.marginBottom;
|
|
21041
21042
|
else if (!I) {
|
|
21042
|
-
|
|
21043
|
+
L.current.style.height = "", L.current.style.width = "", L.current.style.marginBottom = "";
|
|
21043
21044
|
const H = window.getComputedStyle(M.current);
|
|
21044
21045
|
K.current = {
|
|
21045
21046
|
height: H.height,
|
|
@@ -21079,7 +21080,7 @@ function qu(e) {
|
|
|
21079
21080
|
]);
|
|
21080
21081
|
return /* @__PURE__ */ s.createElement("div", {
|
|
21081
21082
|
className: "sps-list-toolbar__wrapper",
|
|
21082
|
-
ref:
|
|
21083
|
+
ref: L
|
|
21083
21084
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
21084
21085
|
className: A,
|
|
21085
21086
|
"data-testid": D,
|
|
@@ -22175,8 +22176,8 @@ function Xu({
|
|
|
22175
22176
|
if (k && k.key === "Escape" && o && o(), k && k.key === "Tab" && S.current) {
|
|
22176
22177
|
const b = S.current.querySelectorAll(
|
|
22177
22178
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
22178
|
-
), I = b[0],
|
|
22179
|
-
b.length === 0 ? k.preventDefault() : k.shiftKey && k.target === I ? (k.preventDefault(),
|
|
22179
|
+
), I = b[0], O = b[b.length - 1];
|
|
22180
|
+
b.length === 0 ? k.preventDefault() : k.shiftKey && k.target === I ? (k.preventDefault(), O.focus()) : !k.shiftKey && k.target === O && (k.preventDefault(), I.focus());
|
|
22180
22181
|
}
|
|
22181
22182
|
},
|
|
22182
22183
|
[o]
|
|
@@ -22960,9 +22961,9 @@ function em({
|
|
|
22960
22961
|
value: k,
|
|
22961
22962
|
zeroState: b = "There are no matching options.",
|
|
22962
22963
|
loading: I,
|
|
22963
|
-
icon:
|
|
22964
|
+
icon: O,
|
|
22964
22965
|
maxHeightOptionListPx: M,
|
|
22965
|
-
maxHeightOptionListRem:
|
|
22966
|
+
maxHeightOptionListRem: L,
|
|
22966
22967
|
disableOptionsMemoization: R,
|
|
22967
22968
|
"data-testid": K,
|
|
22968
22969
|
..._
|
|
@@ -23114,8 +23115,8 @@ function em({
|
|
|
23114
23115
|
"sps-form-control",
|
|
23115
23116
|
$ && !o && "sps-form-control--clearable"
|
|
23116
23117
|
)
|
|
23117
|
-
},
|
|
23118
|
-
className: V("sps-text-input__icon", "sps-icon", `sps-icon-${
|
|
23118
|
+
}, O && /* @__PURE__ */ s.createElement("i", {
|
|
23119
|
+
className: V("sps-text-input__icon", "sps-icon", `sps-icon-${O}`)
|
|
23119
23120
|
}), /* @__PURE__ */ s.createElement("div", {
|
|
23120
23121
|
className: "sps-multi-select__tags-and-input",
|
|
23121
23122
|
ref: j
|
|
@@ -23171,7 +23172,7 @@ function em({
|
|
|
23171
23172
|
zeroState: b,
|
|
23172
23173
|
loading: I,
|
|
23173
23174
|
maxHeightPx: M,
|
|
23174
|
-
maxHeightRem:
|
|
23175
|
+
maxHeightRem: L,
|
|
23175
23176
|
disableOptionsMemoization: R,
|
|
23176
23177
|
onSpecialActionSelect: ge
|
|
23177
23178
|
}));
|
|
@@ -23717,9 +23718,9 @@ const GN = {
|
|
|
23717
23718
|
tallOptionList: k,
|
|
23718
23719
|
textKey: b,
|
|
23719
23720
|
valueKey: I,
|
|
23720
|
-
unsafelyReplaceClassName:
|
|
23721
|
+
unsafelyReplaceClassName: O,
|
|
23721
23722
|
value: M,
|
|
23722
|
-
zeroState:
|
|
23723
|
+
zeroState: L,
|
|
23723
23724
|
loading: R,
|
|
23724
23725
|
filterByTextAndCaptionKey: K,
|
|
23725
23726
|
maxHeightOptionListPx: _,
|
|
@@ -23808,7 +23809,7 @@ const GN = {
|
|
|
23808
23809
|
}
|
|
23809
23810
|
}));
|
|
23810
23811
|
const St = V(
|
|
23811
|
-
|
|
23812
|
+
O || "sps-select",
|
|
23812
23813
|
X.isOpen && "sps-select--open",
|
|
23813
23814
|
X.isOpen && "z-stratum-dropdown",
|
|
23814
23815
|
X.opensUpward && "sps-select--opens-upward",
|
|
@@ -23870,7 +23871,7 @@ const GN = {
|
|
|
23870
23871
|
optionRole: "option",
|
|
23871
23872
|
valueKey: I,
|
|
23872
23873
|
onOptionListChanged: lt,
|
|
23873
|
-
zeroState:
|
|
23874
|
+
zeroState: L,
|
|
23874
23875
|
ignoreWidthStyles: r,
|
|
23875
23876
|
loading: R,
|
|
23876
23877
|
maxHeightPx: _,
|
|
@@ -24013,26 +24014,26 @@ function tm(e) {
|
|
|
24013
24014
|
numPages: 0,
|
|
24014
24015
|
indices: [0, 0]
|
|
24015
24016
|
});
|
|
24016
|
-
function T(
|
|
24017
|
-
return c !== void 0 ? Math.ceil(c /
|
|
24017
|
+
function T(L = y.pageSize) {
|
|
24018
|
+
return c !== void 0 ? Math.ceil(c / L) : NaN;
|
|
24018
24019
|
}
|
|
24019
|
-
function D(
|
|
24020
|
-
const K = T(R), _ =
|
|
24020
|
+
function D(L = y.page, R = y.pageSize) {
|
|
24021
|
+
const K = T(R), _ = L === K && c !== void 0 && c % R || R, $ = h || (K === 0 ? 0 : _), N = (L - 1) * R;
|
|
24021
24022
|
return K === 0 ? [0, 0] : [N + 1, N + $];
|
|
24022
24023
|
}
|
|
24023
|
-
function x(
|
|
24024
|
+
function x(L) {
|
|
24024
24025
|
const R = {
|
|
24025
|
-
page:
|
|
24026
|
-
indices: D(
|
|
24026
|
+
page: L,
|
|
24027
|
+
indices: D(L)
|
|
24027
24028
|
};
|
|
24028
24029
|
return w(R), R;
|
|
24029
24030
|
}
|
|
24030
|
-
function k(
|
|
24031
|
+
function k(L, R) {
|
|
24031
24032
|
const K = {
|
|
24032
24033
|
page: R,
|
|
24033
|
-
pageSize:
|
|
24034
|
-
numPages: T(
|
|
24035
|
-
indices: D(R,
|
|
24034
|
+
pageSize: L,
|
|
24035
|
+
numPages: T(L),
|
|
24036
|
+
indices: D(R, L)
|
|
24036
24037
|
};
|
|
24037
24038
|
return w(K), K;
|
|
24038
24039
|
}
|
|
@@ -24049,12 +24050,12 @@ function tm(e) {
|
|
|
24049
24050
|
function b() {
|
|
24050
24051
|
return typeof c == "number" ? c : "many";
|
|
24051
24052
|
}
|
|
24052
|
-
function I(
|
|
24053
|
-
const R = k(
|
|
24053
|
+
function I(L) {
|
|
24054
|
+
const R = k(L.target.value, 1);
|
|
24054
24055
|
n(R.page, R.pageSize, R.indices);
|
|
24055
24056
|
}
|
|
24056
|
-
function L
|
|
24057
|
-
const R = x(
|
|
24057
|
+
function O(L) {
|
|
24058
|
+
const R = x(L);
|
|
24058
24059
|
n(R.page, y.pageSize, R.indices);
|
|
24059
24060
|
}
|
|
24060
24061
|
const M = V(p || "sps-pagination", t);
|
|
@@ -24080,7 +24081,7 @@ function tm(e) {
|
|
|
24080
24081
|
}, `Viewing ${y.indices[0]} - ${y.indices[1]} of ${b()}`), /* @__PURE__ */ s.createElement(Ai, {
|
|
24081
24082
|
numPages: y.numPages,
|
|
24082
24083
|
page: y.page,
|
|
24083
|
-
onPageChange:
|
|
24084
|
+
onPageChange: O,
|
|
24084
24085
|
disabled: u,
|
|
24085
24086
|
unknownPageCount: m,
|
|
24086
24087
|
nextPageBtnDisabled: f
|
|
@@ -25182,9 +25183,9 @@ function am({
|
|
|
25182
25183
|
!u && "sps-checkable--no-label",
|
|
25183
25184
|
t
|
|
25184
25185
|
);
|
|
25185
|
-
function I(
|
|
25186
|
+
function I(O) {
|
|
25186
25187
|
var M;
|
|
25187
|
-
T && (T.setValue(y), T.markAsDirty()), f && f(
|
|
25188
|
+
T && (T.setValue(y), T.markAsDirty()), f && f(O), (M = D.current) == null || M.focus();
|
|
25188
25189
|
}
|
|
25189
25190
|
return /* @__PURE__ */ s.createElement(ut, {
|
|
25190
25191
|
id: x,
|
|
@@ -25195,8 +25196,8 @@ function am({
|
|
|
25195
25196
|
ref: h,
|
|
25196
25197
|
"data-testid": `${n}`,
|
|
25197
25198
|
onClick: () => {
|
|
25198
|
-
var
|
|
25199
|
-
return (
|
|
25199
|
+
var O;
|
|
25200
|
+
return (O = D.current) == null ? void 0 : O.click();
|
|
25200
25201
|
}
|
|
25201
25202
|
}, /* @__PURE__ */ s.createElement("input", {
|
|
25202
25203
|
type: "radio",
|
|
@@ -26256,14 +26257,14 @@ const nx = {
|
|
|
26256
26257
|
a
|
|
26257
26258
|
), [S, y] = Ve(
|
|
26258
26259
|
c || (o ? o[0] : "")
|
|
26259
|
-
), [w, T] = Ve(""), D = (I,
|
|
26260
|
-
h(I), r && r(I,
|
|
26260
|
+
), [w, T] = Ve(""), D = (I, O) => {
|
|
26261
|
+
h(I), r && r(I, O);
|
|
26261
26262
|
}, x = (I) => {
|
|
26262
26263
|
y(I), l && l(I);
|
|
26263
|
-
}, k = (I) => I ? I.some((
|
|
26264
|
+
}, k = (I) => I ? I.some((O) => O.name.toLowerCase().includes(w)) || I.some((O) => k(O.subNavItems || [])) : !1, b = n.map(
|
|
26264
26265
|
(I) => ({
|
|
26265
26266
|
...I,
|
|
26266
|
-
navItems: I.navItems.filter((
|
|
26267
|
+
navItems: I.navItems.filter((O) => O.name.toLowerCase().includes(w) || k(O.subNavItems || []))
|
|
26267
26268
|
})
|
|
26268
26269
|
);
|
|
26269
26270
|
return a !== m.current && (h(a), m.current = a), /* @__PURE__ */ s.createElement("div", {
|
|
@@ -26288,8 +26289,8 @@ const nx = {
|
|
|
26288
26289
|
tabIndex: 0,
|
|
26289
26290
|
key: I,
|
|
26290
26291
|
onClick: () => x(I),
|
|
26291
|
-
onKeyDown: (
|
|
26292
|
-
(
|
|
26292
|
+
onKeyDown: (O) => {
|
|
26293
|
+
(O.key === "Enter" || O.key === " ") && (O.stopPropagation(), O.preventDefault(), x(I));
|
|
26293
26294
|
}
|
|
26294
26295
|
}, /* @__PURE__ */ s.createElement("span", null, I)))), /* @__PURE__ */ s.createElement("div", {
|
|
26295
26296
|
className: "sps-card__body"
|
|
@@ -26309,15 +26310,15 @@ const nx = {
|
|
|
26309
26310
|
T(I.target.value);
|
|
26310
26311
|
}
|
|
26311
26312
|
})))), b.map((I) => {
|
|
26312
|
-
var
|
|
26313
|
+
var O;
|
|
26313
26314
|
return /* @__PURE__ */ s.createElement("section", {
|
|
26314
26315
|
className: "sps-side-nav__section",
|
|
26315
|
-
key: (
|
|
26316
|
+
key: (O = I.key) != null ? O : I.sectionTitle
|
|
26316
26317
|
}, I.sectionTitle && /* @__PURE__ */ s.createElement("div", {
|
|
26317
26318
|
className: "sps-side-nav__section-title",
|
|
26318
26319
|
style: { fontWeight: 400 }
|
|
26319
26320
|
}, I.sectionTitle), I.navItems.map((M) => {
|
|
26320
|
-
var
|
|
26321
|
+
var L;
|
|
26321
26322
|
return /* @__PURE__ */ s.createElement(om, {
|
|
26322
26323
|
branch: {
|
|
26323
26324
|
...M,
|
|
@@ -26330,7 +26331,7 @@ const nx = {
|
|
|
26330
26331
|
setActiveBranch: (R, K) => {
|
|
26331
26332
|
D(R, K);
|
|
26332
26333
|
},
|
|
26333
|
-
key: (
|
|
26334
|
+
key: (L = M.key) != null ? L : M.name
|
|
26334
26335
|
});
|
|
26335
26336
|
}));
|
|
26336
26337
|
})));
|
|
@@ -27373,15 +27374,15 @@ function dm({
|
|
|
27373
27374
|
s.useEffect(() => {
|
|
27374
27375
|
y ? window.addEventListener("resize", b) : window.removeEventListener("resize", b);
|
|
27375
27376
|
}, [y]);
|
|
27376
|
-
const I = Qr("sps-task-queue-portal"),
|
|
27377
|
+
const I = Qr("sps-task-queue-portal"), O = s.useContext(Ot), [M] = y ? ur(
|
|
27377
27378
|
k,
|
|
27378
27379
|
x,
|
|
27379
27380
|
t,
|
|
27380
27381
|
{
|
|
27381
27382
|
altPosition: t,
|
|
27382
|
-
...
|
|
27383
|
+
...O
|
|
27383
27384
|
}
|
|
27384
|
-
) : [{}, !1],
|
|
27385
|
+
) : [{}, !1], L = r.position || be.BOTTOM_RIGHT, R = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === xs.IN_PROGRESS).length, $ = e.some((F) => F.status === xs.COMPLETED || F.status === xs.ERRORED), N = s.useRef(o);
|
|
27385
27386
|
N.current = o;
|
|
27386
27387
|
const A = s.useRef(null), Q = () => {
|
|
27387
27388
|
S && !y ? (w(!0), a && a()) : y && (w(!1), o && o()), A.current && (A.current.scrollTop = 0);
|
|
@@ -27459,7 +27460,7 @@ function dm({
|
|
|
27459
27460
|
"aria-hidden": "true"
|
|
27460
27461
|
})), /* @__PURE__ */ s.createElement(Lt, {
|
|
27461
27462
|
for: x,
|
|
27462
|
-
position:
|
|
27463
|
+
position: L,
|
|
27463
27464
|
kind: R,
|
|
27464
27465
|
showOn: S ? it.MANUAL : it.MOUSEOVER,
|
|
27465
27466
|
isShown: T && !y ? ye.VISIBLE : ye.HIDDEN,
|
|
@@ -27861,14 +27862,14 @@ const mx = {
|
|
|
27861
27862
|
...y
|
|
27862
27863
|
}, w) => {
|
|
27863
27864
|
const T = r || n, { wrapperId: D, controlId: x } = wt(o, T), k = s.useRef(null);
|
|
27864
|
-
function b(
|
|
27865
|
-
T && (T.setValue(
|
|
27865
|
+
function b(L, R) {
|
|
27866
|
+
T && (T.setValue(L), T.markAsDirty()), c && k.current && c(R || new Pn(k.current));
|
|
27866
27867
|
}
|
|
27867
27868
|
function I() {
|
|
27868
27869
|
k.current && (k.current.value = "", b(""));
|
|
27869
27870
|
}
|
|
27870
|
-
function L
|
|
27871
|
-
b(
|
|
27871
|
+
function O(L) {
|
|
27872
|
+
b(L.target.value, L);
|
|
27872
27873
|
}
|
|
27873
27874
|
const M = V(
|
|
27874
27875
|
f || "sps-text-input",
|
|
@@ -27895,7 +27896,7 @@ const mx = {
|
|
|
27895
27896
|
id: x,
|
|
27896
27897
|
name: l,
|
|
27897
27898
|
placeholder: p,
|
|
27898
|
-
onChange:
|
|
27899
|
+
onChange: O,
|
|
27899
27900
|
title: m,
|
|
27900
27901
|
value: h,
|
|
27901
27902
|
disabled: t,
|
|
@@ -28073,8 +28074,8 @@ function pm({
|
|
|
28073
28074
|
...y
|
|
28074
28075
|
}) {
|
|
28075
28076
|
const w = r || n, { wrapperId: T, controlId: D } = wt(a, w), x = s.useRef(null);
|
|
28076
|
-
function k(M,
|
|
28077
|
-
w && (w.setValue(M), w.markAsDirty()), l && x.current && l(
|
|
28077
|
+
function k(M, L) {
|
|
28078
|
+
w && (w.setValue(M), w.markAsDirty()), l && x.current && l(L || new Pn(x.current));
|
|
28078
28079
|
}
|
|
28079
28080
|
function b() {
|
|
28080
28081
|
x.current && (x.current.value = "", k(""));
|
|
@@ -28082,13 +28083,13 @@ function pm({
|
|
|
28082
28083
|
function I(M) {
|
|
28083
28084
|
k(M.target.value, M);
|
|
28084
28085
|
}
|
|
28085
|
-
const
|
|
28086
|
+
const O = V(
|
|
28086
28087
|
f || "sps-textarea",
|
|
28087
28088
|
e
|
|
28088
28089
|
);
|
|
28089
28090
|
return /* @__PURE__ */ s.createElement(ut, {
|
|
28090
28091
|
id: T,
|
|
28091
|
-
className:
|
|
28092
|
+
className: O,
|
|
28092
28093
|
formControl: n,
|
|
28093
28094
|
formMeta: r,
|
|
28094
28095
|
inputRef: x,
|
|
@@ -28276,13 +28277,13 @@ function mm(e) {
|
|
|
28276
28277
|
...y
|
|
28277
28278
|
} = e;
|
|
28278
28279
|
cv("SpsToggle", um, e);
|
|
28279
|
-
const w = l || o, [T, D] = s.useState(t), { wrapperId: x, controlId: k } = wt(c, w), b = `${x}_status-label`, I = `${x}_description`,
|
|
28280
|
+
const w = l || o, [T, D] = s.useState(t), { wrapperId: x, controlId: k } = wt(c, w), b = `${x}_status-label`, I = `${x}_description`, O = s.useRef(null);
|
|
28280
28281
|
s.useEffect(() => D(t), [t]);
|
|
28281
28282
|
function M(R) {
|
|
28282
28283
|
var K;
|
|
28283
|
-
D(R.target.checked), w && (w.setValue(R.target.checked), w.markAsDirty()), m && m(R.target.checked), (K =
|
|
28284
|
+
D(R.target.checked), w && (w.setValue(R.target.checked), w.markAsDirty()), m && m(R.target.checked), (K = O.current) == null || K.focus();
|
|
28284
28285
|
}
|
|
28285
|
-
const
|
|
28286
|
+
const L = V(
|
|
28286
28287
|
S || "sps-toggle",
|
|
28287
28288
|
T && "sps-toggle--active",
|
|
28288
28289
|
u && "sps-toggle--large",
|
|
@@ -28293,14 +28294,14 @@ function mm(e) {
|
|
|
28293
28294
|
id: x,
|
|
28294
28295
|
formControl: o,
|
|
28295
28296
|
formMeta: l,
|
|
28296
|
-
inputRef:
|
|
28297
|
+
inputRef: O,
|
|
28297
28298
|
ref: f,
|
|
28298
28299
|
"data-testid": `${h}`
|
|
28299
28300
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
28300
|
-
className:
|
|
28301
|
+
className: L
|
|
28301
28302
|
}, /* @__PURE__ */ s.createElement("input", {
|
|
28302
28303
|
type: "checkbox",
|
|
28303
|
-
ref:
|
|
28304
|
+
ref: O,
|
|
28304
28305
|
className: "sps-toggle__input",
|
|
28305
28306
|
id: k,
|
|
28306
28307
|
checked: T || !1,
|
|
@@ -29699,7 +29700,7 @@ function Nm({
|
|
|
29699
29700
|
l && l(D.searchText);
|
|
29700
29701
|
}, [D.searchText]);
|
|
29701
29702
|
const k = s.useRef(null), b = s.useRef(null), I = s.useRef(null);
|
|
29702
|
-
function
|
|
29703
|
+
function O() {
|
|
29703
29704
|
setTimeout(() => {
|
|
29704
29705
|
var W;
|
|
29705
29706
|
(W = b.current) == null || W.focus();
|
|
@@ -29710,7 +29711,7 @@ function Nm({
|
|
|
29710
29711
|
new Pn({ value: W })
|
|
29711
29712
|
);
|
|
29712
29713
|
}
|
|
29713
|
-
function
|
|
29714
|
+
function L(W) {
|
|
29714
29715
|
const J = (u || []).filter((H, F) => F !== W);
|
|
29715
29716
|
M(J);
|
|
29716
29717
|
}
|
|
@@ -29745,20 +29746,20 @@ function Nm({
|
|
|
29745
29746
|
switch (W.key) {
|
|
29746
29747
|
case "Backspace":
|
|
29747
29748
|
if (D.activeTagIndex === F - 1) {
|
|
29748
|
-
|
|
29749
|
+
L(D.activeTagIndex), O();
|
|
29749
29750
|
return;
|
|
29750
29751
|
}
|
|
29751
29752
|
if (D.activeTagIndex !== null) {
|
|
29752
|
-
|
|
29753
|
+
L(D.activeTagIndex);
|
|
29753
29754
|
return;
|
|
29754
29755
|
}
|
|
29755
29756
|
if (H) {
|
|
29756
|
-
M(u.slice(0, F - 1)),
|
|
29757
|
+
M(u.slice(0, F - 1)), O();
|
|
29757
29758
|
return;
|
|
29758
29759
|
}
|
|
29759
29760
|
break;
|
|
29760
29761
|
case "Delete":
|
|
29761
|
-
D.activeTagIndex !== null && (
|
|
29762
|
+
D.activeTagIndex !== null && (L(D.activeTagIndex), O());
|
|
29762
29763
|
break;
|
|
29763
29764
|
case "Enter":
|
|
29764
29765
|
case "Tab":
|
|
@@ -29829,7 +29830,7 @@ function Nm({
|
|
|
29829
29830
|
disabled: t,
|
|
29830
29831
|
"aria-selected": "true",
|
|
29831
29832
|
key: q[J],
|
|
29832
|
-
onRemove: () =>
|
|
29833
|
+
onRemove: () => L(J)
|
|
29833
29834
|
}, /* @__PURE__ */ s.createElement("span", null, W))), /* @__PURE__ */ s.createElement("input", {
|
|
29834
29835
|
type: "text",
|
|
29835
29836
|
ref: b,
|
|
@@ -30945,7 +30946,7 @@ function Vm(e) {
|
|
|
30945
30946
|
ctrlKey: _.ctrlKey,
|
|
30946
30947
|
altKey: _.altKey
|
|
30947
30948
|
}), A && A(!0), b.didFirePressStart = !0, w(!0));
|
|
30948
|
-
},
|
|
30949
|
+
}, O = (_, $, N = !0) => {
|
|
30949
30950
|
let { onPressEnd: A, onPressChange: Q, onPress: q, isDisabled: W } = S.current;
|
|
30950
30951
|
!b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, A && A({
|
|
30951
30952
|
type: "pressend",
|
|
@@ -30975,8 +30976,8 @@ function Vm(e) {
|
|
|
30975
30976
|
ctrlKey: _.ctrlKey,
|
|
30976
30977
|
altKey: _.altKey
|
|
30977
30978
|
});
|
|
30978
|
-
},
|
|
30979
|
-
b.isPressed && (b.isOverTarget &&
|
|
30979
|
+
}, L = (_) => {
|
|
30980
|
+
b.isPressed && (b.isOverTarget && O(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || As(b.target));
|
|
30980
30981
|
}, R = {
|
|
30981
30982
|
onKeyDown(_) {
|
|
30982
30983
|
mo(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Po(_.currentTarget) && _.stopPropagation();
|
|
@@ -30985,13 +30986,13 @@ function Vm(e) {
|
|
|
30985
30986
|
mo(_.nativeEvent, _.currentTarget) && !_.repeat && _.currentTarget.contains(_.target) && M(Qt(b.target, _), "keyboard");
|
|
30986
30987
|
},
|
|
30987
30988
|
onClick(_) {
|
|
30988
|
-
_ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || na(_.nativeEvent)) && (!l && !p && ir(_.currentTarget), I(_, "virtual"), M(_, "virtual"),
|
|
30989
|
+
_ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || na(_.nativeEvent)) && (!l && !p && ir(_.currentTarget), I(_, "virtual"), M(_, "virtual"), O(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
|
|
30989
30990
|
}
|
|
30990
30991
|
}, K = (_) => {
|
|
30991
30992
|
if (b.isPressed && mo(_, b.target)) {
|
|
30992
30993
|
Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
|
|
30993
30994
|
let $ = _.target;
|
|
30994
|
-
|
|
30995
|
+
O(Qt(b.target, _), "keyboard", b.target.contains($)), x(), b.target instanceof HTMLElement && b.target.contains($) && (Po(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
|
|
30995
30996
|
}
|
|
30996
30997
|
};
|
|
30997
30998
|
if (typeof PointerEvent < "u") {
|
|
@@ -31009,14 +31010,14 @@ function Vm(e) {
|
|
|
31009
31010
|
!A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && qn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
|
|
31010
31011
|
};
|
|
31011
31012
|
let _ = (A) => {
|
|
31012
|
-
A.pointerId === b.activePointerId && (qn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(Qt(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1,
|
|
31013
|
+
A.pointerId === b.activePointerId && (qn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(Qt(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(Qt(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
|
|
31013
31014
|
}, $ = (A) => {
|
|
31014
|
-
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ?
|
|
31015
|
+
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ? O(Qt(b.target, A), b.pointerType) : b.isOverTarget && O(Qt(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || As(b.target));
|
|
31015
31016
|
}, N = (A) => {
|
|
31016
|
-
|
|
31017
|
+
L(A);
|
|
31017
31018
|
};
|
|
31018
31019
|
R.onDragStart = (A) => {
|
|
31019
|
-
!A.currentTarget.contains(A.target) ||
|
|
31020
|
+
!A.currentTarget.contains(A.target) || L(A);
|
|
31020
31021
|
};
|
|
31021
31022
|
} else {
|
|
31022
31023
|
R.onMouseDown = (N) => {
|
|
@@ -31024,7 +31025,7 @@ function Vm(e) {
|
|
|
31024
31025
|
}, R.onMouseEnter = (N) => {
|
|
31025
31026
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
|
|
31026
31027
|
}, R.onMouseLeave = (N) => {
|
|
31027
|
-
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1,
|
|
31028
|
+
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
|
|
31028
31029
|
}, R.onMouseUp = (N) => {
|
|
31029
31030
|
!N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
|
|
31030
31031
|
};
|
|
@@ -31034,7 +31035,7 @@ function Vm(e) {
|
|
|
31034
31035
|
b.ignoreEmulatedMouseEvents = !1;
|
|
31035
31036
|
return;
|
|
31036
31037
|
}
|
|
31037
|
-
qn(N, b.target) ?
|
|
31038
|
+
qn(N, b.target) ? O(Qt(b.target, N), b.pointerType) : b.isOverTarget && O(Qt(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
|
|
31038
31039
|
}
|
|
31039
31040
|
};
|
|
31040
31041
|
R.onTouchStart = (N) => {
|
|
@@ -31047,17 +31048,17 @@ function Vm(e) {
|
|
|
31047
31048
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31048
31049
|
return;
|
|
31049
31050
|
let A = Ed(N.nativeEvent, b.activePointerId);
|
|
31050
|
-
A && qn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1,
|
|
31051
|
+
A && qn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
|
|
31051
31052
|
}, R.onTouchEnd = (N) => {
|
|
31052
31053
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31053
31054
|
return;
|
|
31054
31055
|
let A = Ed(N.nativeEvent, b.activePointerId);
|
|
31055
|
-
A && qn(A, N.currentTarget) ? (M(N, b.pointerType),
|
|
31056
|
+
A && qn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || As(b.target), x();
|
|
31056
31057
|
}, R.onTouchCancel = (N) => {
|
|
31057
|
-
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed &&
|
|
31058
|
+
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
|
|
31058
31059
|
};
|
|
31059
31060
|
let $ = (N) => {
|
|
31060
|
-
b.isPressed && N.target.contains(b.target) &&
|
|
31061
|
+
b.isPressed && N.target.contains(b.target) && L({
|
|
31061
31062
|
currentTarget: b.target,
|
|
31062
31063
|
shiftKey: !1,
|
|
31063
31064
|
ctrlKey: !1,
|
|
@@ -31066,7 +31067,7 @@ function Vm(e) {
|
|
|
31066
31067
|
});
|
|
31067
31068
|
};
|
|
31068
31069
|
R.onDragStart = (N) => {
|
|
31069
|
-
!N.currentTarget.contains(N.target) ||
|
|
31070
|
+
!N.currentTarget.contains(N.target) || L(N);
|
|
31070
31071
|
};
|
|
31071
31072
|
}
|
|
31072
31073
|
return R;
|
|
@@ -31507,7 +31508,7 @@ function ZI(e) {
|
|
|
31507
31508
|
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: u = !1, shouldUseVirtualFocus: m, allowsTabNavigation: f = !1, isVirtualized: h, scrollRef: S = r } = e, { direction: y } = km(), w = (M) => {
|
|
31508
31509
|
if (M.altKey && M.key === "Tab" && M.preventDefault(), !r.current.contains(M.target))
|
|
31509
31510
|
return;
|
|
31510
|
-
const
|
|
31511
|
+
const L = (N, A) => {
|
|
31511
31512
|
N != null && (t.setFocusedKey(N, A), M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(N) : p && !jm(M) && t.replaceSelection(N));
|
|
31512
31513
|
};
|
|
31513
31514
|
switch (M.key) {
|
|
@@ -31516,7 +31517,7 @@ function ZI(e) {
|
|
|
31516
31517
|
var R, K;
|
|
31517
31518
|
M.preventDefault();
|
|
31518
31519
|
let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (R = n.getFirstKey) === null || R === void 0 ? void 0 : R.call(n);
|
|
31519
|
-
N == null && o && (N = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)),
|
|
31520
|
+
N == null && o && (N = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), L(N);
|
|
31520
31521
|
}
|
|
31521
31522
|
break;
|
|
31522
31523
|
case "ArrowUp":
|
|
@@ -31524,21 +31525,21 @@ function ZI(e) {
|
|
|
31524
31525
|
var _, $;
|
|
31525
31526
|
M.preventDefault();
|
|
31526
31527
|
let N = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (_ = n.getLastKey) === null || _ === void 0 ? void 0 : _.call(n);
|
|
31527
|
-
N == null && o && (N = ($ = n.getLastKey) === null || $ === void 0 ? void 0 : $.call(n, t.focusedKey)),
|
|
31528
|
+
N == null && o && (N = ($ = n.getLastKey) === null || $ === void 0 ? void 0 : $.call(n, t.focusedKey)), L(N);
|
|
31528
31529
|
}
|
|
31529
31530
|
break;
|
|
31530
31531
|
case "ArrowLeft":
|
|
31531
31532
|
if (n.getKeyLeftOf) {
|
|
31532
31533
|
M.preventDefault();
|
|
31533
31534
|
let N = n.getKeyLeftOf(t.focusedKey);
|
|
31534
|
-
|
|
31535
|
+
L(N, y === "rtl" ? "first" : "last");
|
|
31535
31536
|
}
|
|
31536
31537
|
break;
|
|
31537
31538
|
case "ArrowRight":
|
|
31538
31539
|
if (n.getKeyRightOf) {
|
|
31539
31540
|
M.preventDefault();
|
|
31540
31541
|
let N = n.getKeyRightOf(t.focusedKey);
|
|
31541
|
-
|
|
31542
|
+
L(N, y === "rtl" ? "last" : "first");
|
|
31542
31543
|
}
|
|
31543
31544
|
break;
|
|
31544
31545
|
case "Home":
|
|
@@ -31559,14 +31560,14 @@ function ZI(e) {
|
|
|
31559
31560
|
if (n.getKeyPageBelow) {
|
|
31560
31561
|
M.preventDefault();
|
|
31561
31562
|
let N = n.getKeyPageBelow(t.focusedKey);
|
|
31562
|
-
|
|
31563
|
+
L(N);
|
|
31563
31564
|
}
|
|
31564
31565
|
break;
|
|
31565
31566
|
case "PageUp":
|
|
31566
31567
|
if (n.getKeyPageAbove) {
|
|
31567
31568
|
M.preventDefault();
|
|
31568
31569
|
let N = n.getKeyPageAbove(t.focusedKey);
|
|
31569
|
-
|
|
31570
|
+
L(N);
|
|
31570
31571
|
}
|
|
31571
31572
|
break;
|
|
31572
31573
|
case "a":
|
|
@@ -31611,8 +31612,8 @@ function ZI(e) {
|
|
|
31611
31612
|
let K = ($) => {
|
|
31612
31613
|
$ != null && (t.setFocusedKey($), p && t.replaceSelection($));
|
|
31613
31614
|
}, _ = M.relatedTarget;
|
|
31614
|
-
var
|
|
31615
|
-
_ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((
|
|
31615
|
+
var L, R;
|
|
31616
|
+
_ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((R = t.firstSelectedKey) !== null && R !== void 0 ? R : n.getFirstKey());
|
|
31616
31617
|
} else if (!h) {
|
|
31617
31618
|
S.current.scrollTop = T.current.top, S.current.scrollLeft = T.current.left;
|
|
31618
31619
|
let K = S.current.querySelector(`[data-key="${t.focusedKey}"]`);
|
|
@@ -31627,8 +31628,8 @@ function ZI(e) {
|
|
|
31627
31628
|
if (k.current) {
|
|
31628
31629
|
let M = null;
|
|
31629
31630
|
a === "first" && (M = n.getFirstKey()), a === "last" && (M = n.getLastKey());
|
|
31630
|
-
let
|
|
31631
|
-
|
|
31631
|
+
let L = t.selectedKeys;
|
|
31632
|
+
L.size && (M = L.values().next().value), t.setFocused(!0), t.setFocusedKey(M), M == null && !m && Gm(r.current);
|
|
31632
31633
|
}
|
|
31633
31634
|
k.current = !1;
|
|
31634
31635
|
}, []), Le(() => {
|
|
@@ -31653,11 +31654,11 @@ function ZI(e) {
|
|
|
31653
31654
|
selectionManager: t
|
|
31654
31655
|
});
|
|
31655
31656
|
u || (b = ba(I, b));
|
|
31656
|
-
let
|
|
31657
|
-
return m || (
|
|
31657
|
+
let O;
|
|
31658
|
+
return m || (O = t.focusedKey == null ? 0 : -1), {
|
|
31658
31659
|
collectionProps: {
|
|
31659
31660
|
...b,
|
|
31660
|
-
tabIndex:
|
|
31661
|
+
tabIndex: O
|
|
31661
31662
|
}
|
|
31662
31663
|
};
|
|
31663
31664
|
}
|
|
@@ -31688,24 +31689,24 @@ function XI(e) {
|
|
|
31688
31689
|
$.target === r.current && t.setFocusedKey(n);
|
|
31689
31690
|
}
|
|
31690
31691
|
}), p = p || t.isDisabled(n);
|
|
31691
|
-
let S = !p && t.canSelectItem(n), y = u && !p, w = y && (t.selectionBehavior === "replace" ? !S : t.isEmpty), T = y && S && t.selectionBehavior === "replace", D = w || T, x = pe(null), k = D && S, b = pe(!1), I = pe(!1),
|
|
31692
|
-
a ? (
|
|
31692
|
+
let S = !p && t.canSelectItem(n), y = u && !p, w = y && (t.selectionBehavior === "replace" ? !S : t.isEmpty), T = y && S && t.selectionBehavior === "replace", D = w || T, x = pe(null), k = D && S, b = pe(!1), I = pe(!1), O = {};
|
|
31693
|
+
a ? (O.onPressStart = ($) => {
|
|
31693
31694
|
x.current = $.pointerType, b.current = k, $.pointerType === "keyboard" && (!D || Ld()) && f($);
|
|
31694
|
-
}, m ? (
|
|
31695
|
+
}, m ? (O.onPressUp = ($) => {
|
|
31695
31696
|
$.pointerType !== "keyboard" && f($);
|
|
31696
|
-
},
|
|
31697
|
+
}, O.onPress = w ? () => u() : null) : O.onPress = ($) => {
|
|
31697
31698
|
if (w || T && $.pointerType !== "mouse") {
|
|
31698
31699
|
if ($.pointerType === "keyboard" && !_d())
|
|
31699
31700
|
return;
|
|
31700
31701
|
u();
|
|
31701
31702
|
} else
|
|
31702
31703
|
$.pointerType !== "keyboard" && f($);
|
|
31703
|
-
}) : (
|
|
31704
|
+
}) : (O.onPressStart = ($) => {
|
|
31704
31705
|
x.current = $.pointerType, b.current = k, I.current = w, ($.pointerType === "mouse" && !w || $.pointerType === "keyboard" && (!u || Ld())) && f($);
|
|
31705
|
-
},
|
|
31706
|
+
}, O.onPress = ($) => {
|
|
31706
31707
|
($.pointerType === "touch" || $.pointerType === "pen" || $.pointerType === "virtual" || $.pointerType === "keyboard" && D && _d() || $.pointerType === "mouse" && I.current) && (D ? u() : f($));
|
|
31707
|
-
}), o || (h["data-key"] = n),
|
|
31708
|
-
let { pressProps: M, isPressed:
|
|
31708
|
+
}), o || (h["data-key"] = n), O.preventFocusOnPress = l;
|
|
31709
|
+
let { pressProps: M, isPressed: L } = Vm(O), R = T ? ($) => {
|
|
31709
31710
|
x.current === "mouse" && ($.stopPropagation(), $.preventDefault(), u());
|
|
31710
31711
|
} : void 0, { longPressProps: K } = _I({
|
|
31711
31712
|
isDisabled: !k,
|
|
@@ -31720,7 +31721,7 @@ function XI(e) {
|
|
|
31720
31721
|
x.current === "touch" && b.current && $.preventDefault();
|
|
31721
31722
|
}
|
|
31722
31723
|
}),
|
|
31723
|
-
isPressed:
|
|
31724
|
+
isPressed: L,
|
|
31724
31725
|
isSelected: t.isSelected(n),
|
|
31725
31726
|
isDisabled: p,
|
|
31726
31727
|
allowsSelection: S,
|
|
@@ -31811,7 +31812,7 @@ function ek(e) {
|
|
|
31811
31812
|
ctrlKey: _.ctrlKey,
|
|
31812
31813
|
altKey: _.altKey
|
|
31813
31814
|
}), A && A(!0), b.didFirePressStart = !0, w(!0));
|
|
31814
|
-
},
|
|
31815
|
+
}, O = (_, $, N = !0) => {
|
|
31815
31816
|
let { onPressEnd: A, onPressChange: Q, onPress: q, isDisabled: W } = S.current;
|
|
31816
31817
|
!b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, A && A({
|
|
31817
31818
|
type: "pressend",
|
|
@@ -31841,8 +31842,8 @@ function ek(e) {
|
|
|
31841
31842
|
ctrlKey: _.ctrlKey,
|
|
31842
31843
|
altKey: _.altKey
|
|
31843
31844
|
});
|
|
31844
|
-
},
|
|
31845
|
-
b.isPressed && (b.isOverTarget &&
|
|
31845
|
+
}, L = (_) => {
|
|
31846
|
+
b.isPressed && (b.isOverTarget && O(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
|
|
31846
31847
|
}, R = {
|
|
31847
31848
|
onKeyDown(_) {
|
|
31848
31849
|
ho(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Vo(_.currentTarget) && _.stopPropagation();
|
|
@@ -31851,13 +31852,13 @@ function ek(e) {
|
|
|
31851
31852
|
ho(_.nativeEvent, _.currentTarget) && !_.repeat && _.currentTarget.contains(_.target) && M(en(b.target, _), "keyboard");
|
|
31852
31853
|
},
|
|
31853
31854
|
onClick(_) {
|
|
31854
|
-
_ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || $o(_.nativeEvent)) && (!l && !p && or(_.currentTarget), I(_, "virtual"), M(_, "virtual"),
|
|
31855
|
+
_ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || $o(_.nativeEvent)) && (!l && !p && or(_.currentTarget), I(_, "virtual"), M(_, "virtual"), O(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
|
|
31855
31856
|
}
|
|
31856
31857
|
}, K = (_) => {
|
|
31857
31858
|
if (b.isPressed && ho(_, b.target)) {
|
|
31858
31859
|
Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
|
|
31859
31860
|
let $ = _.target;
|
|
31860
|
-
|
|
31861
|
+
O(en(b.target, _), "keyboard", b.target.contains($)), x(), b.target instanceof HTMLElement && b.target.contains($) && (Vo(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
|
|
31861
31862
|
}
|
|
31862
31863
|
};
|
|
31863
31864
|
if (typeof PointerEvent < "u") {
|
|
@@ -31875,14 +31876,14 @@ function ek(e) {
|
|
|
31875
31876
|
!A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && Xn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
|
|
31876
31877
|
};
|
|
31877
31878
|
let _ = (A) => {
|
|
31878
|
-
A.pointerId === b.activePointerId && (Xn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(en(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1,
|
|
31879
|
+
A.pointerId === b.activePointerId && (Xn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(en(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(en(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
|
|
31879
31880
|
}, $ = (A) => {
|
|
31880
|
-
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ?
|
|
31881
|
+
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ? O(en(b.target, A), b.pointerType) : b.isOverTarget && O(en(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
|
|
31881
31882
|
}, N = (A) => {
|
|
31882
|
-
|
|
31883
|
+
L(A);
|
|
31883
31884
|
};
|
|
31884
31885
|
R.onDragStart = (A) => {
|
|
31885
|
-
!A.currentTarget.contains(A.target) ||
|
|
31886
|
+
!A.currentTarget.contains(A.target) || L(A);
|
|
31886
31887
|
};
|
|
31887
31888
|
} else {
|
|
31888
31889
|
R.onMouseDown = (N) => {
|
|
@@ -31890,7 +31891,7 @@ function ek(e) {
|
|
|
31890
31891
|
}, R.onMouseEnter = (N) => {
|
|
31891
31892
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
|
|
31892
31893
|
}, R.onMouseLeave = (N) => {
|
|
31893
|
-
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1,
|
|
31894
|
+
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
|
|
31894
31895
|
}, R.onMouseUp = (N) => {
|
|
31895
31896
|
!N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
|
|
31896
31897
|
};
|
|
@@ -31900,7 +31901,7 @@ function ek(e) {
|
|
|
31900
31901
|
b.ignoreEmulatedMouseEvents = !1;
|
|
31901
31902
|
return;
|
|
31902
31903
|
}
|
|
31903
|
-
Xn(N, b.target) ?
|
|
31904
|
+
Xn(N, b.target) ? O(en(b.target, N), b.pointerType) : b.isOverTarget && O(en(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
|
|
31904
31905
|
}
|
|
31905
31906
|
};
|
|
31906
31907
|
R.onTouchStart = (N) => {
|
|
@@ -31913,17 +31914,17 @@ function ek(e) {
|
|
|
31913
31914
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31914
31915
|
return;
|
|
31915
31916
|
let A = Rd(N.nativeEvent, b.activePointerId);
|
|
31916
|
-
A && Xn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1,
|
|
31917
|
+
A && Xn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
|
|
31917
31918
|
}, R.onTouchEnd = (N) => {
|
|
31918
31919
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31919
31920
|
return;
|
|
31920
31921
|
let A = Rd(N.nativeEvent, b.activePointerId);
|
|
31921
|
-
A && Xn(A, N.currentTarget) ? (M(N, b.pointerType),
|
|
31922
|
+
A && Xn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || Fs(b.target), x();
|
|
31922
31923
|
}, R.onTouchCancel = (N) => {
|
|
31923
|
-
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed &&
|
|
31924
|
+
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
|
|
31924
31925
|
};
|
|
31925
31926
|
let $ = (N) => {
|
|
31926
|
-
b.isPressed && N.target.contains(b.target) &&
|
|
31927
|
+
b.isPressed && N.target.contains(b.target) && L({
|
|
31927
31928
|
currentTarget: b.target,
|
|
31928
31929
|
shiftKey: !1,
|
|
31929
31930
|
ctrlKey: !1,
|
|
@@ -31932,7 +31933,7 @@ function ek(e) {
|
|
|
31932
31933
|
});
|
|
31933
31934
|
};
|
|
31934
31935
|
R.onDragStart = (N) => {
|
|
31935
|
-
!N.currentTarget.contains(N.target) ||
|
|
31936
|
+
!N.currentTarget.contains(N.target) || L(N);
|
|
31936
31937
|
};
|
|
31937
31938
|
}
|
|
31938
31939
|
return R;
|