@spscommerce/ds-react 7.17.13 → 7.17.15
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/autocomplete/SpsAutocomplete.d.ts +1 -0
- package/lib/checkbox/SpsCheckbox.d.ts +1 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +1 -0
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +1 -0
- package/lib/datepicker/SpsDatepicker.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +1 -0
- package/lib/index.cjs.js +57 -57
- package/lib/index.es.js +881 -876
- package/lib/multi-select/SpsMultiSelect.d.ts +1 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +1 -0
- package/lib/radio-button/SpsRadioButton.d.ts +1 -0
- package/lib/text-input/SpsTextInput.d.ts +2 -0
- package/lib/textarea/SpsTextarea.d.ts +1 -0
- package/lib/time-input/SpsTimeInput.d.ts +2 -1
- package/lib/toggle/SpsToggle.d.ts +1 -0
- package/package.json +12 -12
package/lib/index.es.js
CHANGED
|
@@ -68,8 +68,8 @@ function je(e) {
|
|
|
68
68
|
u && "sps-button--disabled",
|
|
69
69
|
l && "sps-button--spinning",
|
|
70
70
|
n
|
|
71
|
-
), v = a && /* @__PURE__ */ s.createElement("i", { className: K("sps-icon", `sps-icon-${a}`), "aria-hidden": "true" }),
|
|
72
|
-
return /* @__PURE__ */ s.createElement("div", { className: g }, r ? /* @__PURE__ */ s.createElement("a", { ...m, href: r, className: "sps-button__clickable-element" }, v, t,
|
|
71
|
+
), v = a && /* @__PURE__ */ s.createElement("i", { className: K("sps-icon", `sps-icon-${a}`), "aria-hidden": "true" }), C = l && /* @__PURE__ */ s.createElement("div", { className: "sps-spinner" }, c || h("design-system:button.spinningTitle"));
|
|
72
|
+
return /* @__PURE__ */ s.createElement("div", { className: g }, r ? /* @__PURE__ */ s.createElement("a", { ...m, href: r, className: "sps-button__clickable-element" }, v, t, C) : /* @__PURE__ */ s.createElement(
|
|
73
73
|
"button",
|
|
74
74
|
{
|
|
75
75
|
...m,
|
|
@@ -79,7 +79,7 @@ function je(e) {
|
|
|
79
79
|
},
|
|
80
80
|
v,
|
|
81
81
|
t,
|
|
82
|
-
|
|
82
|
+
C
|
|
83
83
|
));
|
|
84
84
|
}
|
|
85
85
|
Object.assign(je, {
|
|
@@ -139,12 +139,12 @@ function Ad(e) {
|
|
|
139
139
|
function v() {
|
|
140
140
|
f && f();
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const C = K(
|
|
143
143
|
u || "sps-advanced-search",
|
|
144
144
|
p && "sps-advanced-search--open",
|
|
145
145
|
n
|
|
146
146
|
);
|
|
147
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
147
|
+
return /* @__PURE__ */ s.createElement("div", { className: C, ...h }, /* @__PURE__ */ s.createElement(
|
|
148
148
|
ca,
|
|
149
149
|
{
|
|
150
150
|
onSubmit: m,
|
|
@@ -1033,7 +1033,7 @@ function $b(e, t = {}) {
|
|
|
1033
1033
|
const m = Gs(e, [], p);
|
|
1034
1034
|
return t && Os(e, m, t, !1, !0), m;
|
|
1035
1035
|
}, []), r = Se(), a = Se(t), o = wn((m, u) => {
|
|
1036
|
-
var g, v,
|
|
1036
|
+
var g, v, C;
|
|
1037
1037
|
let h;
|
|
1038
1038
|
if (r.current = void 0, u)
|
|
1039
1039
|
if (u.path)
|
|
@@ -1075,7 +1075,7 @@ function $b(e, t = {}) {
|
|
|
1075
1075
|
m.formValue,
|
|
1076
1076
|
m.formMeta,
|
|
1077
1077
|
a.current,
|
|
1078
|
-
(
|
|
1078
|
+
(C = (v = u.updateFormOptions) == null ? void 0 : v.runValidators) != null ? C : !0
|
|
1079
1079
|
)), h) {
|
|
1080
1080
|
m.formMeta.submitted = !1, Vl(h);
|
|
1081
1081
|
const E = Wg(
|
|
@@ -1093,7 +1093,7 @@ function $b(e, t = {}) {
|
|
|
1093
1093
|
I
|
|
1094
1094
|
);
|
|
1095
1095
|
if (typeof x != "symbol" && B) {
|
|
1096
|
-
let
|
|
1096
|
+
let _;
|
|
1097
1097
|
switch (N) {
|
|
1098
1098
|
case Vn.ADDITION:
|
|
1099
1099
|
B.fields[x] = Gs(
|
|
@@ -1106,11 +1106,11 @@ function $b(e, t = {}) {
|
|
|
1106
1106
|
Array.isArray(B.fields) ? B.fields[x] = void 0 : delete B.fields[x];
|
|
1107
1107
|
break;
|
|
1108
1108
|
case Vn.ALTERATION:
|
|
1109
|
-
|
|
1109
|
+
_ = Gs(
|
|
1110
1110
|
k[x],
|
|
1111
1111
|
[...I, x],
|
|
1112
1112
|
p
|
|
1113
|
-
), (
|
|
1113
|
+
), (_ instanceof hr && !(B.fields[x] instanceof hr) || !(_ instanceof hr) && B.fields[x] instanceof hr) && (B.fields[x] = _);
|
|
1114
1114
|
break;
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
@@ -1136,13 +1136,13 @@ function $b(e, t = {}) {
|
|
|
1136
1136
|
objects: [, B]
|
|
1137
1137
|
} of E)
|
|
1138
1138
|
if (typeof I != "symbol") {
|
|
1139
|
-
let
|
|
1140
|
-
if (
|
|
1139
|
+
let _ = m.formMeta, w = h;
|
|
1140
|
+
if (_) {
|
|
1141
1141
|
for (const R of k)
|
|
1142
|
-
|
|
1142
|
+
_ = _.fields[R], w = w[R], N.has(_) || _.validate(w, cn.ON_CHANGE);
|
|
1143
1143
|
if (x === Vn.ADDITION || x === Vn.ALTERATION) {
|
|
1144
|
-
const R =
|
|
1145
|
-
if (!N.has(R) && (
|
|
1144
|
+
const R = _.fields[I];
|
|
1145
|
+
if (!N.has(R) && (_.fields[I].validate(B[I], cn.ON_CHANGE), x === Vn.ADDITION && R.fields))
|
|
1146
1146
|
for (const [L, V] of Object.entries(R.fields))
|
|
1147
1147
|
V.validate(B[I][L], cn.ON_CHANGE);
|
|
1148
1148
|
}
|
|
@@ -1197,7 +1197,7 @@ const ut = s.forwardRef(
|
|
|
1197
1197
|
function v() {
|
|
1198
1198
|
h && h !== t && h.current && l && l instanceof zs && l.markAsFocused();
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function C() {
|
|
1201
1201
|
h && h !== t && h.current && l && l instanceof zs && l.markAsBlurred();
|
|
1202
1202
|
}
|
|
1203
1203
|
const E = K(
|
|
@@ -1226,7 +1226,7 @@ const ut = s.forwardRef(
|
|
|
1226
1226
|
tabIndex: -1,
|
|
1227
1227
|
onClick: T,
|
|
1228
1228
|
onFocus: v,
|
|
1229
|
-
onBlur:
|
|
1229
|
+
onBlur: C
|
|
1230
1230
|
},
|
|
1231
1231
|
r
|
|
1232
1232
|
);
|
|
@@ -1275,19 +1275,19 @@ var Hl = function(e, t) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
g != null && g === document.body && Ga(g) && !Ga(document.documentElement) || g != null && Ga(g, c) && h.push(g);
|
|
1277
1277
|
}
|
|
1278
|
-
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth,
|
|
1279
|
-
var
|
|
1280
|
-
if (r === "if-needed" && k >= 0 &&
|
|
1278
|
+
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, C = n.visualViewport ? n.visualViewport.height : innerHeight, E = window.scrollX || pageXOffset, T = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), x = N.height, I = N.width, k = N.top, B = N.right, _ = N.bottom, w = N.left, R = a === "start" || a === "nearest" ? k : a === "end" ? _ : k + x / 2, L = o === "center" ? w + I / 2 : o === "end" ? B : w, V = [], H = 0; H < h.length; H++) {
|
|
1279
|
+
var M = h[H], $ = M.getBoundingClientRect(), G = $.height, q = $.width, A = $.top, ne = $.right, oe = $.bottom, O = $.left;
|
|
1280
|
+
if (r === "if-needed" && k >= 0 && w >= 0 && _ <= C && B <= v && k >= A && _ <= oe && w >= O && B <= ne)
|
|
1281
1281
|
return V;
|
|
1282
|
-
var Y = getComputedStyle(
|
|
1283
|
-
if (u ===
|
|
1284
|
-
Q = a === "start" ? R : a === "end" ? R -
|
|
1282
|
+
var Y = getComputedStyle(M), Z = parseInt(Y.borderLeftWidth, 10), U = parseInt(Y.borderTopWidth, 10), j = parseInt(Y.borderRightWidth, 10), W = parseInt(Y.borderBottomWidth, 10), Q = 0, ee = 0, le = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - Z - j : 0, re = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - U - W : 0, me = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : q / M.offsetWidth : 0, se = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : G / M.offsetHeight : 0;
|
|
1283
|
+
if (u === M)
|
|
1284
|
+
Q = a === "start" ? R : a === "end" ? R - C : a === "nearest" ? Ls(T, T + C, C, U, W, T + R, T + R + x, x) : R - C / 2, ee = o === "start" ? L : o === "center" ? L - v / 2 : o === "end" ? L - v : Ls(E, E + v, v, Z, j, E + L, E + L + I, I), Q = Math.max(0, Q + T), ee = Math.max(0, ee + E);
|
|
1285
1285
|
else {
|
|
1286
1286
|
Q = a === "start" ? R - A - U : a === "end" ? R - oe + W + re : a === "nearest" ? Ls(A, oe, G, U, W + re, R, R + x, x) : R - (A + G / 2) + re / 2, ee = o === "start" ? L - O - Z : o === "center" ? L - (O + q / 2) + le / 2 : o === "end" ? L - ne + j + le : Ls(O, ne, q, Z, j + le, L, L + I, I);
|
|
1287
|
-
var te =
|
|
1288
|
-
R += De - (Q = Math.max(0, Math.min(De + Q / se,
|
|
1287
|
+
var te = M.scrollLeft, De = M.scrollTop;
|
|
1288
|
+
R += De - (Q = Math.max(0, Math.min(De + Q / se, M.scrollHeight - G / se + re))), L += te - (ee = Math.max(0, Math.min(te + ee / me, M.scrollWidth - q / me + le)));
|
|
1289
1289
|
}
|
|
1290
|
-
V.push({ el:
|
|
1290
|
+
V.push({ el: M, top: Q, left: ee });
|
|
1291
1291
|
}
|
|
1292
1292
|
return V;
|
|
1293
1293
|
};
|
|
@@ -1386,7 +1386,7 @@ function Yd(e) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
function Ub(e, t, n, r, a, o, l, c) {
|
|
1388
1388
|
const p = l && l.current, f = p ? p.scrollTop : window.pageYOffset, m = c ? 0 : f, u = p ? p.scrollLeft : window.pageXOffset, h = c ? 0 : u, [g, v] = e.split(" ");
|
|
1389
|
-
let
|
|
1389
|
+
let C, E, T, N;
|
|
1390
1390
|
switch (g) {
|
|
1391
1391
|
case "top":
|
|
1392
1392
|
T = t.height - n.top - m - o[0];
|
|
@@ -1398,7 +1398,7 @@ function Ub(e, t, n, r, a, o, l, c) {
|
|
|
1398
1398
|
N = n.right + h - o[0];
|
|
1399
1399
|
break;
|
|
1400
1400
|
case "bottom":
|
|
1401
|
-
|
|
1401
|
+
C = n.bottom + m - o[0];
|
|
1402
1402
|
break;
|
|
1403
1403
|
default:
|
|
1404
1404
|
throw new Error(`Invalid position ${e}`);
|
|
@@ -1408,10 +1408,10 @@ function Ub(e, t, n, r, a, o, l, c) {
|
|
|
1408
1408
|
N = n.left + h + o[1];
|
|
1409
1409
|
break;
|
|
1410
1410
|
case "top":
|
|
1411
|
-
|
|
1411
|
+
C = n.top + m + o[1];
|
|
1412
1412
|
break;
|
|
1413
1413
|
case "middle":
|
|
1414
|
-
g === "top" || g === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (g === "left" || g === "right") && (
|
|
1414
|
+
g === "top" || g === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (g === "left" || g === "right") && (C = n.top + m + n.height / 2 - r.height / 2 + o[1]);
|
|
1415
1415
|
break;
|
|
1416
1416
|
case "bottom":
|
|
1417
1417
|
T = t.height - n.bottom - m + o[1];
|
|
@@ -1423,7 +1423,7 @@ function Ub(e, t, n, r, a, o, l, c) {
|
|
|
1423
1423
|
throw new Error(`Invalid position ${e}`);
|
|
1424
1424
|
}
|
|
1425
1425
|
return [
|
|
1426
|
-
|
|
1426
|
+
C,
|
|
1427
1427
|
E,
|
|
1428
1428
|
T,
|
|
1429
1429
|
N
|
|
@@ -1448,9 +1448,9 @@ function Er(e, t, n, {
|
|
|
1448
1448
|
left: 0,
|
|
1449
1449
|
bottom: f,
|
|
1450
1450
|
right: m
|
|
1451
|
-
} : u.getBoundingClientRect(), g = e.current.getBoundingClientRect(), v = t.current.getBoundingClientRect(), [
|
|
1451
|
+
} : u.getBoundingClientRect(), g = e.current.getBoundingClientRect(), v = t.current.getBoundingClientRect(), [C] = n.split(" ");
|
|
1452
1452
|
let E = n;
|
|
1453
|
-
r && (
|
|
1453
|
+
r && (C === "top" && v.top - g.height < Yb || C === "right" && v.right + g.width > m || C === "bottom" && v.bottom + g.height > f || C === "left" && v.left - g.width < 0) && (E = r);
|
|
1454
1454
|
const T = a ? Math.max(v.width, g.width) : g.width, N = o ? v.width : T, [
|
|
1455
1455
|
x,
|
|
1456
1456
|
I,
|
|
@@ -1465,13 +1465,13 @@ function Er(e, t, n, {
|
|
|
1465
1465
|
p,
|
|
1466
1466
|
l,
|
|
1467
1467
|
c
|
|
1468
|
-
),
|
|
1468
|
+
), _ = {
|
|
1469
1469
|
top: Rs(x),
|
|
1470
1470
|
right: Rs(I),
|
|
1471
1471
|
bottom: Rs(k),
|
|
1472
1472
|
left: Rs(B)
|
|
1473
1473
|
};
|
|
1474
|
-
return c && (
|
|
1474
|
+
return c && (_.position = "fixed", _.zIndex = Mg.BAR), a && (_.minWidth = `${v.width}px`), o && (_.width = `${v.width}px`), [_, E === r];
|
|
1475
1475
|
}
|
|
1476
1476
|
return [{}, !1];
|
|
1477
1477
|
}
|
|
@@ -1750,7 +1750,7 @@ const ls = s.forwardRef((e, t) => {
|
|
|
1750
1750
|
search: h,
|
|
1751
1751
|
searchDebounce: g,
|
|
1752
1752
|
searchPlaceholder: v,
|
|
1753
|
-
onSpecialActionSelect:
|
|
1753
|
+
onSpecialActionSelect: C,
|
|
1754
1754
|
attachTo: E,
|
|
1755
1755
|
className: T,
|
|
1756
1756
|
conformWidth: N,
|
|
@@ -1758,13 +1758,13 @@ const ls = s.forwardRef((e, t) => {
|
|
|
1758
1758
|
ignoreWidthStyles: I,
|
|
1759
1759
|
isOpen: k,
|
|
1760
1760
|
keepOpen: B,
|
|
1761
|
-
keyDown:
|
|
1762
|
-
nullOption:
|
|
1761
|
+
keyDown: _,
|
|
1762
|
+
nullOption: w,
|
|
1763
1763
|
onOptionListChanged: R,
|
|
1764
1764
|
onOptionSelected: L,
|
|
1765
1765
|
onPositionFlip: V,
|
|
1766
1766
|
onSelfToggle: H,
|
|
1767
|
-
optionRole:
|
|
1767
|
+
optionRole: M,
|
|
1768
1768
|
positionOverride: $,
|
|
1769
1769
|
selectedOption: G,
|
|
1770
1770
|
specialAction: q,
|
|
@@ -1841,7 +1841,7 @@ const ls = s.forwardRef((e, t) => {
|
|
|
1841
1841
|
}, [re, H]), _e = s.useCallback(() => {
|
|
1842
1842
|
re && (me(!1), le(-1), H && H(!1));
|
|
1843
1843
|
}, [re, H]), fn = s.useCallback((be, ye) => {
|
|
1844
|
-
ye || be && !be.disabled && (typeof be.value == "function" ? (be.value(),
|
|
1844
|
+
ye || be && !be.disabled && (typeof be.value == "function" ? (be.value(), C && C()) : typeof L == "function" && L(be.value), B || _e());
|
|
1845
1845
|
}, [L, _e]), Or = s.useCallback(
|
|
1846
1846
|
(be, ye, ze) => {
|
|
1847
1847
|
be.stopPropagation(), fn(ye, ze);
|
|
@@ -1925,8 +1925,8 @@ const ls = s.forwardRef((e, t) => {
|
|
|
1925
1925
|
}, [ee]), s.useEffect(() => {
|
|
1926
1926
|
me(k), k ? fe.current && fe.current.focus() : le(-1);
|
|
1927
1927
|
}, [k]), s.useEffect(() => {
|
|
1928
|
-
|
|
1929
|
-
}, [
|
|
1928
|
+
_ && Sn(_);
|
|
1929
|
+
}, [_]), s.useEffect(() => {
|
|
1930
1930
|
!re && te.current && (pe({ value: "" }), te.current.scrollTop = 0), re && V && V(Ke);
|
|
1931
1931
|
}, [re]);
|
|
1932
1932
|
const On = O ? O / 16 : Y, Ta = On ? { maxHeight: `${On}rem` } : {};
|
|
@@ -1969,7 +1969,7 @@ const ls = s.forwardRef((e, t) => {
|
|
|
1969
1969
|
{
|
|
1970
1970
|
key: ze,
|
|
1971
1971
|
id: ze,
|
|
1972
|
-
role:
|
|
1972
|
+
role: M,
|
|
1973
1973
|
"aria-selected": Ot,
|
|
1974
1974
|
href: be.href,
|
|
1975
1975
|
className: K(
|
|
@@ -2159,18 +2159,18 @@ function jo({
|
|
|
2159
2159
|
value: h = "",
|
|
2160
2160
|
zeroState: g,
|
|
2161
2161
|
loading: v,
|
|
2162
|
-
maxHeightOptionListPx:
|
|
2162
|
+
maxHeightOptionListPx: C,
|
|
2163
2163
|
maxHeightOptionListRem: E,
|
|
2164
2164
|
disableOptionsMemoization: T,
|
|
2165
2165
|
"data-testid": N,
|
|
2166
2166
|
...x
|
|
2167
2167
|
}) {
|
|
2168
|
-
const I = a || r, { wrapperId: k, controlId: B } = Et(c, I), [
|
|
2168
|
+
const I = a || r, { wrapperId: k, controlId: B } = Et(c, I), [_, w] = un({
|
|
2169
2169
|
keyDown: null,
|
|
2170
2170
|
opensUpward: !1
|
|
2171
2171
|
}), R = s.useRef(null), L = s.useRef(null), V = s.useRef(null), {
|
|
2172
2172
|
showPopup: H,
|
|
2173
|
-
doShowPopup:
|
|
2173
|
+
doShowPopup: M,
|
|
2174
2174
|
doHidePopup: $
|
|
2175
2175
|
} = cs(R, V);
|
|
2176
2176
|
function G(Z, U) {
|
|
@@ -2189,19 +2189,19 @@ function jo({
|
|
|
2189
2189
|
"Down",
|
|
2190
2190
|
"ArrowDown",
|
|
2191
2191
|
"Enter"
|
|
2192
|
-
].indexOf(Z.key) > -1 && (Z.preventDefault(), Z.persist()), Z.stopPropagation(),
|
|
2192
|
+
].indexOf(Z.key) > -1 && (Z.preventDefault(), Z.persist()), Z.stopPropagation(), w({ keyDown: Z })), Z.key === "Tab" && $();
|
|
2193
2193
|
}
|
|
2194
2194
|
function oe(Z) {
|
|
2195
|
-
Z ?
|
|
2195
|
+
Z ? M() : $();
|
|
2196
2196
|
}
|
|
2197
2197
|
function O(Z) {
|
|
2198
|
-
|
|
2198
|
+
w({ opensUpward: Z });
|
|
2199
2199
|
}
|
|
2200
2200
|
const Y = K(
|
|
2201
2201
|
m || "sps-autocomplete",
|
|
2202
2202
|
H && "sps-autocomplete--open",
|
|
2203
2203
|
H && "z-stratum-dropdown",
|
|
2204
|
-
|
|
2204
|
+
_.opensUpward && "sps-autocomplete--opens-upward",
|
|
2205
2205
|
n && "sps-form-control--disabled",
|
|
2206
2206
|
e
|
|
2207
2207
|
);
|
|
@@ -2226,8 +2226,8 @@ function jo({
|
|
|
2226
2226
|
value: h,
|
|
2227
2227
|
className: "sps-text-input__input",
|
|
2228
2228
|
placeholder: p,
|
|
2229
|
-
onFocus:
|
|
2230
|
-
onClick:
|
|
2229
|
+
onFocus: M,
|
|
2230
|
+
onClick: M,
|
|
2231
2231
|
onChange: A,
|
|
2232
2232
|
onKeyDown: ne,
|
|
2233
2233
|
disabled: n,
|
|
@@ -2252,7 +2252,7 @@ function jo({
|
|
|
2252
2252
|
isOpen: H,
|
|
2253
2253
|
options: f,
|
|
2254
2254
|
hideInlineSearch: !0,
|
|
2255
|
-
keyDown:
|
|
2255
|
+
keyDown: _.keyDown,
|
|
2256
2256
|
onOptionSelected: G,
|
|
2257
2257
|
onPositionFlip: O,
|
|
2258
2258
|
onSelfToggle: oe,
|
|
@@ -2262,7 +2262,7 @@ function jo({
|
|
|
2262
2262
|
tall: u,
|
|
2263
2263
|
zeroState: g,
|
|
2264
2264
|
loading: v,
|
|
2265
|
-
maxHeightPx:
|
|
2265
|
+
maxHeightPx: C,
|
|
2266
2266
|
maxHeightRem: E,
|
|
2267
2267
|
disableOptionsMemoization: T
|
|
2268
2268
|
}
|
|
@@ -2442,28 +2442,28 @@ function Nr(e) {
|
|
|
2442
2442
|
spinningTitle: h,
|
|
2443
2443
|
tallOptionList: g,
|
|
2444
2444
|
unsafelyReplaceClassName: v,
|
|
2445
|
-
onOpen:
|
|
2445
|
+
onOpen: C,
|
|
2446
2446
|
onClose: E,
|
|
2447
2447
|
loading: T,
|
|
2448
2448
|
maxHeightOptionListPx: N,
|
|
2449
2449
|
maxHeightOptionListRem: x,
|
|
2450
2450
|
disableOptionsMemoization: I,
|
|
2451
2451
|
...k
|
|
2452
|
-
} = e, { t: B } = s.useContext(We),
|
|
2452
|
+
} = e, { t: B } = s.useContext(We), _ = qn(l), [w, R] = s.useState(!1), [L, V] = s.useState(!1), [H, M] = s.useState(), $ = f.map((re) => typeof re == "function" ? re : Object.assign(re[1], {
|
|
2453
2453
|
...Md,
|
|
2454
2454
|
...re[0]
|
|
2455
|
-
})), G = `${
|
|
2455
|
+
})), G = `${_.current}-button`, q = `${_.current}-menu`;
|
|
2456
2456
|
let A, ne;
|
|
2457
2457
|
p ? (ne = c || Ha.DEFAULT, A = o) : (ne = Ha.ICON, A = o || tt.ELLIPSES);
|
|
2458
2458
|
const oe = s.useRef(null);
|
|
2459
2459
|
s.useEffect(() => {
|
|
2460
|
-
|
|
2461
|
-
}, [
|
|
2460
|
+
w && C ? C() : !w && E && E();
|
|
2461
|
+
}, [w]);
|
|
2462
2462
|
function O() {
|
|
2463
2463
|
R(!1);
|
|
2464
2464
|
}
|
|
2465
2465
|
function Y(re) {
|
|
2466
|
-
re.stopPropagation(), re.nativeEvent.stopImmediatePropagation(), re.preventDefault(), !a && !u && R(!
|
|
2466
|
+
re.stopPropagation(), re.nativeEvent.stopImmediatePropagation(), re.preventDefault(), !a && !u && R(!w);
|
|
2467
2467
|
}
|
|
2468
2468
|
function Z(re) {
|
|
2469
2469
|
R(re);
|
|
@@ -2477,23 +2477,23 @@ function Nr(e) {
|
|
|
2477
2477
|
"ArrowUp",
|
|
2478
2478
|
"Down",
|
|
2479
2479
|
"ArrowDown"
|
|
2480
|
-
].indexOf(re.key) > -1 && re.preventDefault(), re.persist(),
|
|
2480
|
+
].indexOf(re.key) > -1 && re.preventDefault(), re.persist(), M(re));
|
|
2481
2481
|
}
|
|
2482
2482
|
function W(re) {
|
|
2483
|
-
re.detail !==
|
|
2483
|
+
re.detail !== _.current && R(!1);
|
|
2484
2484
|
}
|
|
2485
2485
|
s.useEffect(() => (document.addEventListener("click", O), document.addEventListener("DropdownOpened", W), () => {
|
|
2486
2486
|
document.removeEventListener("click", O), document.removeEventListener("DropdownOpened", W);
|
|
2487
2487
|
}), []), s.useEffect(() => {
|
|
2488
|
-
if (
|
|
2488
|
+
if (w) {
|
|
2489
2489
|
const re = document.createEvent("CustomEvent");
|
|
2490
|
-
re.initCustomEvent("DropdownOpened", !1, !1,
|
|
2490
|
+
re.initCustomEvent("DropdownOpened", !1, !1, _.current), document.dispatchEvent(re);
|
|
2491
2491
|
}
|
|
2492
|
-
}, [
|
|
2492
|
+
}, [w]);
|
|
2493
2493
|
const Q = K(
|
|
2494
2494
|
v || "sps-dropdown",
|
|
2495
|
-
|
|
2496
|
-
|
|
2495
|
+
w && "sps-dropdown--open",
|
|
2496
|
+
w && "z-stratum-dropdown",
|
|
2497
2497
|
L && "sps-dropdown--opens-upward",
|
|
2498
2498
|
!p && "sps-dropdown--no-label",
|
|
2499
2499
|
a && "disabled",
|
|
@@ -2508,7 +2508,7 @@ function Nr(e) {
|
|
|
2508
2508
|
"div",
|
|
2509
2509
|
{
|
|
2510
2510
|
...k,
|
|
2511
|
-
id:
|
|
2511
|
+
id: _.current,
|
|
2512
2512
|
className: Q,
|
|
2513
2513
|
onKeyDown: j
|
|
2514
2514
|
},
|
|
@@ -2516,7 +2516,7 @@ function Nr(e) {
|
|
|
2516
2516
|
ls,
|
|
2517
2517
|
{
|
|
2518
2518
|
positionOverride: le,
|
|
2519
|
-
isOpen:
|
|
2519
|
+
isOpen: w,
|
|
2520
2520
|
"aria-labelledby": G,
|
|
2521
2521
|
keyDown: H,
|
|
2522
2522
|
onOptionSelected: U,
|
|
@@ -2542,7 +2542,7 @@ function Nr(e) {
|
|
|
2542
2542
|
id: G,
|
|
2543
2543
|
"aria-haspopup": "true",
|
|
2544
2544
|
"aria-controls": q,
|
|
2545
|
-
"aria-expanded":
|
|
2545
|
+
"aria-expanded": w ? !0 : void 0,
|
|
2546
2546
|
tabIndex: m,
|
|
2547
2547
|
disabled: a,
|
|
2548
2548
|
onClick: Y
|
|
@@ -3224,7 +3224,7 @@ function xr({
|
|
|
3224
3224
|
unsafelyReplaceClassName: u,
|
|
3225
3225
|
...h
|
|
3226
3226
|
}) {
|
|
3227
|
-
const g = a || r, v = s.useRef(null), [
|
|
3227
|
+
const g = a || r, v = s.useRef(null), [C, E] = s.useState(e), [T, N] = s.useState(l), { wrapperId: x, controlId: I } = Et(o, g);
|
|
3228
3228
|
s.useEffect(() => E(e), [e]), s.useEffect(() => N(l), [l]), s.useEffect(() => {
|
|
3229
3229
|
v.current && (v.current.indeterminate = T);
|
|
3230
3230
|
}, [T]);
|
|
@@ -3235,9 +3235,9 @@ function xr({
|
|
|
3235
3235
|
!p && "sps-checkable--no-label",
|
|
3236
3236
|
t
|
|
3237
3237
|
);
|
|
3238
|
-
function B(
|
|
3239
|
-
var
|
|
3240
|
-
E(
|
|
3238
|
+
function B(_) {
|
|
3239
|
+
var w;
|
|
3240
|
+
E(_.target.checked), N(!1), g && (g.setValue(_.target.checked), g.markAsDirty()), f && f(_), (w = v.current) == null || w.focus();
|
|
3241
3241
|
}
|
|
3242
3242
|
return /* @__PURE__ */ s.createElement(
|
|
3243
3243
|
ut,
|
|
@@ -3256,7 +3256,7 @@ function xr({
|
|
|
3256
3256
|
ref: v,
|
|
3257
3257
|
className: "sps-checkable__input",
|
|
3258
3258
|
id: I,
|
|
3259
|
-
checked:
|
|
3259
|
+
checked: C,
|
|
3260
3260
|
disabled: n,
|
|
3261
3261
|
"data-testid": `${m}__checkbox-input`,
|
|
3262
3262
|
onChange: B,
|
|
@@ -3442,7 +3442,7 @@ function da(e) {
|
|
|
3442
3442
|
"sps-clickable-tag__label",
|
|
3443
3443
|
(a || p) && "sps-clickable-tag__label--link"
|
|
3444
3444
|
), v = s.Children.toArray(t).filter((T) => typeof T == "string").join("");
|
|
3445
|
-
function
|
|
3445
|
+
function C(T) {
|
|
3446
3446
|
l ? l() : c && c(), T.stopPropagation();
|
|
3447
3447
|
}
|
|
3448
3448
|
s.useEffect(() => {
|
|
@@ -3465,7 +3465,7 @@ function da(e) {
|
|
|
3465
3465
|
"div",
|
|
3466
3466
|
{
|
|
3467
3467
|
className: "sps-clickable-tag__icon",
|
|
3468
|
-
onClick: r ? void 0 :
|
|
3468
|
+
onClick: r ? void 0 : C,
|
|
3469
3469
|
tabIndex: -1,
|
|
3470
3470
|
"aria-label": l ? "Add" : "Remove"
|
|
3471
3471
|
},
|
|
@@ -3774,31 +3774,31 @@ function Jd(e, t, n) {
|
|
|
3774
3774
|
throw new Error(process.env.NODE_ENV === "production" ? yt(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
3775
3775
|
return o;
|
|
3776
3776
|
}
|
|
3777
|
-
function u(
|
|
3778
|
-
if (typeof
|
|
3779
|
-
throw new Error(process.env.NODE_ENV === "production" ? yt(4) : "Expected the listener to be a function. Instead, received: '" + Hn(
|
|
3777
|
+
function u(C) {
|
|
3778
|
+
if (typeof C != "function")
|
|
3779
|
+
throw new Error(process.env.NODE_ENV === "production" ? yt(4) : "Expected the listener to be a function. Instead, received: '" + Hn(C) + "'");
|
|
3780
3780
|
if (p)
|
|
3781
3781
|
throw new Error(process.env.NODE_ENV === "production" ? yt(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3782
3782
|
var E = !0;
|
|
3783
|
-
return f(), c.push(
|
|
3783
|
+
return f(), c.push(C), function() {
|
|
3784
3784
|
if (!!E) {
|
|
3785
3785
|
if (p)
|
|
3786
3786
|
throw new Error(process.env.NODE_ENV === "production" ? yt(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3787
3787
|
E = !1, f();
|
|
3788
|
-
var N = c.indexOf(
|
|
3788
|
+
var N = c.indexOf(C);
|
|
3789
3789
|
c.splice(N, 1), l = null;
|
|
3790
3790
|
}
|
|
3791
3791
|
};
|
|
3792
3792
|
}
|
|
3793
|
-
function h(
|
|
3794
|
-
if (!Sv(
|
|
3795
|
-
throw new Error(process.env.NODE_ENV === "production" ? yt(7) : "Actions must be plain objects. Instead, the actual type was: '" + Hn(
|
|
3796
|
-
if (typeof
|
|
3793
|
+
function h(C) {
|
|
3794
|
+
if (!Sv(C))
|
|
3795
|
+
throw new Error(process.env.NODE_ENV === "production" ? yt(7) : "Actions must be plain objects. Instead, the actual type was: '" + Hn(C) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
3796
|
+
if (typeof C.type > "u")
|
|
3797
3797
|
throw new Error(process.env.NODE_ENV === "production" ? yt(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
3798
3798
|
if (p)
|
|
3799
3799
|
throw new Error(process.env.NODE_ENV === "production" ? yt(9) : "Reducers may not dispatch actions.");
|
|
3800
3800
|
try {
|
|
3801
|
-
p = !0, o = a(o,
|
|
3801
|
+
p = !0, o = a(o, C);
|
|
3802
3802
|
} finally {
|
|
3803
3803
|
p = !1;
|
|
3804
3804
|
}
|
|
@@ -3806,18 +3806,18 @@ function Jd(e, t, n) {
|
|
|
3806
3806
|
var N = E[T];
|
|
3807
3807
|
N();
|
|
3808
3808
|
}
|
|
3809
|
-
return
|
|
3809
|
+
return C;
|
|
3810
3810
|
}
|
|
3811
|
-
function g(
|
|
3812
|
-
if (typeof
|
|
3813
|
-
throw new Error(process.env.NODE_ENV === "production" ? yt(10) : "Expected the nextReducer to be a function. Instead, received: '" + Hn(
|
|
3814
|
-
a =
|
|
3811
|
+
function g(C) {
|
|
3812
|
+
if (typeof C != "function")
|
|
3813
|
+
throw new Error(process.env.NODE_ENV === "production" ? yt(10) : "Expected the nextReducer to be a function. Instead, received: '" + Hn(C));
|
|
3814
|
+
a = C, h({
|
|
3815
3815
|
type: zl.REPLACE
|
|
3816
3816
|
});
|
|
3817
3817
|
}
|
|
3818
3818
|
function v() {
|
|
3819
|
-
var
|
|
3820
|
-
return
|
|
3819
|
+
var C, E = u;
|
|
3820
|
+
return C = {
|
|
3821
3821
|
subscribe: function(N) {
|
|
3822
3822
|
if (typeof N != "object" || N === null)
|
|
3823
3823
|
throw new Error(process.env.NODE_ENV === "production" ? yt(11) : "Expected the observer to be an object. Instead, received: '" + Hn(N) + "'");
|
|
@@ -3830,9 +3830,9 @@ function Jd(e, t, n) {
|
|
|
3830
3830
|
unsubscribe: I
|
|
3831
3831
|
};
|
|
3832
3832
|
}
|
|
3833
|
-
},
|
|
3833
|
+
}, C[jl] = function() {
|
|
3834
3834
|
return this;
|
|
3835
|
-
},
|
|
3835
|
+
}, C;
|
|
3836
3836
|
}
|
|
3837
3837
|
return h({
|
|
3838
3838
|
type: zl.INIT
|
|
@@ -3906,7 +3906,7 @@ function Tv() {
|
|
|
3906
3906
|
if (Zl)
|
|
3907
3907
|
return Le;
|
|
3908
3908
|
Zl = 1;
|
|
3909
|
-
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, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116,
|
|
3909
|
+
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, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
3910
3910
|
function x(k) {
|
|
3911
3911
|
if (typeof k == "object" && k !== null) {
|
|
3912
3912
|
var B = k.$$typeof;
|
|
@@ -3965,7 +3965,7 @@ function Tv() {
|
|
|
3965
3965
|
}, Le.isSuspense = function(k) {
|
|
3966
3966
|
return x(k) === u;
|
|
3967
3967
|
}, Le.isValidElementType = function(k) {
|
|
3968
|
-
return typeof k == "string" || typeof k == "function" || k === r || k === f || k === o || k === a || k === u || k === h || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === g || k.$$typeof === l || k.$$typeof === c || k.$$typeof === m || k.$$typeof === E || k.$$typeof === T || k.$$typeof === N || k.$$typeof ===
|
|
3968
|
+
return typeof k == "string" || typeof k == "function" || k === r || k === f || k === o || k === a || k === u || k === h || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === g || k.$$typeof === l || k.$$typeof === c || k.$$typeof === m || k.$$typeof === E || k.$$typeof === T || k.$$typeof === N || k.$$typeof === C);
|
|
3969
3969
|
}, Le.typeOf = x, Le;
|
|
3970
3970
|
}
|
|
3971
3971
|
var Re = {};
|
|
@@ -3980,9 +3980,9 @@ var Re = {};
|
|
|
3980
3980
|
var Xl;
|
|
3981
3981
|
function wv() {
|
|
3982
3982
|
return Xl || (Xl = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3983
|
-
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, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116,
|
|
3983
|
+
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, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
3984
3984
|
function x(te) {
|
|
3985
|
-
return typeof te == "string" || typeof te == "function" || te === r || te === f || te === o || te === a || te === u || te === h || typeof te == "object" && te !== null && (te.$$typeof === v || te.$$typeof === g || te.$$typeof === l || te.$$typeof === c || te.$$typeof === m || te.$$typeof === E || te.$$typeof === T || te.$$typeof === N || te.$$typeof ===
|
|
3985
|
+
return typeof te == "string" || typeof te == "function" || te === r || te === f || te === o || te === a || te === u || te === h || typeof te == "object" && te !== null && (te.$$typeof === v || te.$$typeof === g || te.$$typeof === l || te.$$typeof === c || te.$$typeof === m || te.$$typeof === E || te.$$typeof === T || te.$$typeof === N || te.$$typeof === C);
|
|
3986
3986
|
}
|
|
3987
3987
|
function I(te) {
|
|
3988
3988
|
if (typeof te == "object" && te !== null) {
|
|
@@ -4016,7 +4016,7 @@ function wv() {
|
|
|
4016
4016
|
}
|
|
4017
4017
|
}
|
|
4018
4018
|
}
|
|
4019
|
-
var k = p, B = f,
|
|
4019
|
+
var k = p, B = f, _ = c, w = l, R = t, L = m, V = r, H = v, M = g, $ = n, G = o, q = a, A = u, ne = !1;
|
|
4020
4020
|
function oe(te) {
|
|
4021
4021
|
return ne || (ne = !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.")), O(te) || I(te) === p;
|
|
4022
4022
|
}
|
|
@@ -4056,7 +4056,7 @@ function wv() {
|
|
|
4056
4056
|
function se(te) {
|
|
4057
4057
|
return I(te) === u;
|
|
4058
4058
|
}
|
|
4059
|
-
Re.AsyncMode = k, Re.ConcurrentMode = B, Re.ContextConsumer =
|
|
4059
|
+
Re.AsyncMode = k, Re.ConcurrentMode = B, Re.ContextConsumer = _, Re.ContextProvider = w, Re.Element = R, Re.ForwardRef = L, Re.Fragment = V, Re.Lazy = H, Re.Memo = M, Re.Portal = $, Re.Profiler = G, Re.StrictMode = q, Re.Suspense = A, Re.isAsyncMode = oe, Re.isConcurrentMode = O, Re.isContextConsumer = Y, Re.isContextProvider = Z, Re.isElement = U, Re.isForwardRef = j, Re.isFragment = W, Re.isLazy = Q, Re.isMemo = ee, Re.isPortal = le, Re.isProfiler = re, Re.isStrictMode = me, Re.isSuspense = se, Re.isValidElementType = x, Re.typeOf = I;
|
|
4060
4060
|
}()), Re;
|
|
4061
4061
|
}
|
|
4062
4062
|
(function(e) {
|
|
@@ -4216,19 +4216,19 @@ function Nv() {
|
|
|
4216
4216
|
elementType: k(),
|
|
4217
4217
|
instanceOf: B,
|
|
4218
4218
|
node: L(),
|
|
4219
|
-
objectOf:
|
|
4220
|
-
oneOf:
|
|
4219
|
+
objectOf: w,
|
|
4220
|
+
oneOf: _,
|
|
4221
4221
|
oneOfType: R,
|
|
4222
4222
|
shape: H,
|
|
4223
|
-
exact:
|
|
4223
|
+
exact: M
|
|
4224
4224
|
};
|
|
4225
4225
|
function v(O, Y) {
|
|
4226
4226
|
return O === Y ? O !== 0 || 1 / O === 1 / Y : O !== O && Y !== Y;
|
|
4227
4227
|
}
|
|
4228
|
-
function
|
|
4228
|
+
function C(O, Y) {
|
|
4229
4229
|
this.message = O, this.data = Y && typeof Y == "object" ? Y : {}, this.stack = "";
|
|
4230
4230
|
}
|
|
4231
|
-
|
|
4231
|
+
C.prototype = Error.prototype;
|
|
4232
4232
|
function E(O) {
|
|
4233
4233
|
if (process.env.NODE_ENV !== "production")
|
|
4234
4234
|
var Y = {}, Z = 0;
|
|
@@ -4246,7 +4246,7 @@ function Nv() {
|
|
|
4246
4246
|
), Y[De] = !0, Z++);
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
return Q[ee] == null ? W ? Q[ee] === null ? new
|
|
4249
|
+
return Q[ee] == null ? W ? Q[ee] === null ? new C("The " + re + " `" + me + "` is marked as required " + ("in `" + le + "`, but its value is `null`.")) : new C("The " + re + " `" + me + "` is marked as required in " + ("`" + le + "`, but its value is `undefined`.")) : null : O(Q, ee, le, re, me);
|
|
4250
4250
|
}
|
|
4251
4251
|
var j = U.bind(null, !1);
|
|
4252
4252
|
return j.isRequired = U.bind(null, !0), j;
|
|
@@ -4256,7 +4256,7 @@ function Nv() {
|
|
|
4256
4256
|
var le = Z[U], re = q(le);
|
|
4257
4257
|
if (re !== O) {
|
|
4258
4258
|
var me = A(le);
|
|
4259
|
-
return new
|
|
4259
|
+
return new C(
|
|
4260
4260
|
"Invalid " + W + " `" + Q + "` of type " + ("`" + me + "` supplied to `" + j + "`, expected ") + ("`" + O + "`."),
|
|
4261
4261
|
{ expectedType: O }
|
|
4262
4262
|
);
|
|
@@ -4271,11 +4271,11 @@ function Nv() {
|
|
|
4271
4271
|
function x(O) {
|
|
4272
4272
|
function Y(Z, U, j, W, Q) {
|
|
4273
4273
|
if (typeof O != "function")
|
|
4274
|
-
return new
|
|
4274
|
+
return new C("Property `" + Q + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
4275
4275
|
var ee = Z[U];
|
|
4276
4276
|
if (!Array.isArray(ee)) {
|
|
4277
4277
|
var le = q(ee);
|
|
4278
|
-
return new
|
|
4278
|
+
return new C("Invalid " + W + " `" + Q + "` of type " + ("`" + le + "` supplied to `" + j + "`, expected an array."));
|
|
4279
4279
|
}
|
|
4280
4280
|
for (var re = 0; re < ee.length; re++) {
|
|
4281
4281
|
var me = O(ee, re, j, W, Q + "[" + re + "]", n);
|
|
@@ -4291,7 +4291,7 @@ function Nv() {
|
|
|
4291
4291
|
var Q = Y[Z];
|
|
4292
4292
|
if (!c(Q)) {
|
|
4293
4293
|
var ee = q(Q);
|
|
4294
|
-
return new
|
|
4294
|
+
return new C("Invalid " + j + " `" + W + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected a single ReactElement."));
|
|
4295
4295
|
}
|
|
4296
4296
|
return null;
|
|
4297
4297
|
}
|
|
@@ -4302,7 +4302,7 @@ function Nv() {
|
|
|
4302
4302
|
var Q = Y[Z];
|
|
4303
4303
|
if (!e.isValidElementType(Q)) {
|
|
4304
4304
|
var ee = q(Q);
|
|
4305
|
-
return new
|
|
4305
|
+
return new C("Invalid " + j + " `" + W + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected a single ReactElement type."));
|
|
4306
4306
|
}
|
|
4307
4307
|
return null;
|
|
4308
4308
|
}
|
|
@@ -4312,13 +4312,13 @@ function Nv() {
|
|
|
4312
4312
|
function Y(Z, U, j, W, Q) {
|
|
4313
4313
|
if (!(Z[U] instanceof O)) {
|
|
4314
4314
|
var ee = O.name || h, le = oe(Z[U]);
|
|
4315
|
-
return new
|
|
4315
|
+
return new C("Invalid " + W + " `" + Q + "` of type " + ("`" + le + "` supplied to `" + j + "`, expected ") + ("instance of `" + ee + "`."));
|
|
4316
4316
|
}
|
|
4317
4317
|
return null;
|
|
4318
4318
|
}
|
|
4319
4319
|
return E(Y);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function _(O) {
|
|
4322
4322
|
if (!Array.isArray(O))
|
|
4323
4323
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
4324
4324
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -4331,17 +4331,17 @@ function Nv() {
|
|
|
4331
4331
|
var De = A(te);
|
|
4332
4332
|
return De === "symbol" ? String(te) : te;
|
|
4333
4333
|
});
|
|
4334
|
-
return new
|
|
4334
|
+
return new C("Invalid " + W + " `" + Q + "` of value `" + String(ee) + "` " + ("supplied to `" + j + "`, expected one of " + re + "."));
|
|
4335
4335
|
}
|
|
4336
4336
|
return E(Y);
|
|
4337
4337
|
}
|
|
4338
|
-
function
|
|
4338
|
+
function w(O) {
|
|
4339
4339
|
function Y(Z, U, j, W, Q) {
|
|
4340
4340
|
if (typeof O != "function")
|
|
4341
|
-
return new
|
|
4341
|
+
return new C("Property `" + Q + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
4342
4342
|
var ee = Z[U], le = q(ee);
|
|
4343
4343
|
if (le !== "object")
|
|
4344
|
-
return new
|
|
4344
|
+
return new C("Invalid " + W + " `" + Q + "` of type " + ("`" + le + "` supplied to `" + j + "`, expected an object."));
|
|
4345
4345
|
for (var re in ee)
|
|
4346
4346
|
if (r(ee, re)) {
|
|
4347
4347
|
var me = O(ee, re, j, W, Q + "." + re, n);
|
|
@@ -4370,18 +4370,18 @@ function Nv() {
|
|
|
4370
4370
|
te.data && r(te.data, "expectedType") && re.push(te.data.expectedType);
|
|
4371
4371
|
}
|
|
4372
4372
|
var De = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
|
|
4373
|
-
return new
|
|
4373
|
+
return new C("Invalid " + ee + " `" + le + "` supplied to " + ("`" + Q + "`" + De + "."));
|
|
4374
4374
|
}
|
|
4375
4375
|
return E(U);
|
|
4376
4376
|
}
|
|
4377
4377
|
function L() {
|
|
4378
4378
|
function O(Y, Z, U, j, W) {
|
|
4379
|
-
return $(Y[Z]) ? null : new
|
|
4379
|
+
return $(Y[Z]) ? null : new C("Invalid " + j + " `" + W + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
|
|
4380
4380
|
}
|
|
4381
4381
|
return E(O);
|
|
4382
4382
|
}
|
|
4383
4383
|
function V(O, Y, Z, U, j) {
|
|
4384
|
-
return new
|
|
4384
|
+
return new C(
|
|
4385
4385
|
(O || "React class") + ": " + Y + " type `" + Z + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
4386
4386
|
);
|
|
4387
4387
|
}
|
|
@@ -4389,7 +4389,7 @@ function Nv() {
|
|
|
4389
4389
|
function Y(Z, U, j, W, Q) {
|
|
4390
4390
|
var ee = Z[U], le = q(ee);
|
|
4391
4391
|
if (le !== "object")
|
|
4392
|
-
return new
|
|
4392
|
+
return new C("Invalid " + W + " `" + Q + "` of type `" + le + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
4393
4393
|
for (var re in O) {
|
|
4394
4394
|
var me = O[re];
|
|
4395
4395
|
if (typeof me != "function")
|
|
@@ -4402,18 +4402,18 @@ function Nv() {
|
|
|
4402
4402
|
}
|
|
4403
4403
|
return E(Y);
|
|
4404
4404
|
}
|
|
4405
|
-
function
|
|
4405
|
+
function M(O) {
|
|
4406
4406
|
function Y(Z, U, j, W, Q) {
|
|
4407
4407
|
var ee = Z[U], le = q(ee);
|
|
4408
4408
|
if (le !== "object")
|
|
4409
|
-
return new
|
|
4409
|
+
return new C("Invalid " + W + " `" + Q + "` of type `" + le + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
4410
4410
|
var re = t({}, Z[U], O);
|
|
4411
4411
|
for (var me in re) {
|
|
4412
4412
|
var se = O[me];
|
|
4413
4413
|
if (r(O, me) && typeof se != "function")
|
|
4414
4414
|
return V(j, W, Q, me, A(se));
|
|
4415
4415
|
if (!se)
|
|
4416
|
-
return new
|
|
4416
|
+
return new C(
|
|
4417
4417
|
"Invalid " + W + " `" + Q + "` key `" + me + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(Z[U], null, " ") + `
|
|
4418
4418
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
4419
4419
|
);
|
|
@@ -4744,31 +4744,31 @@ function Kv() {
|
|
|
4744
4744
|
if (dc)
|
|
4745
4745
|
return Fe;
|
|
4746
4746
|
dc = 1;
|
|
4747
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117,
|
|
4747
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117, C = 60129, E = 60131;
|
|
4748
4748
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
4749
4749
|
var T = Symbol.for;
|
|
4750
|
-
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"),
|
|
4750
|
+
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), C = T("react.debug_trace_mode"), E = T("react.legacy_hidden");
|
|
4751
4751
|
}
|
|
4752
|
-
function N(
|
|
4753
|
-
if (typeof
|
|
4754
|
-
var $ =
|
|
4752
|
+
function N(M) {
|
|
4753
|
+
if (typeof M == "object" && M !== null) {
|
|
4754
|
+
var $ = M.$$typeof;
|
|
4755
4755
|
switch ($) {
|
|
4756
4756
|
case e:
|
|
4757
|
-
switch (
|
|
4757
|
+
switch (M = M.type, M) {
|
|
4758
4758
|
case n:
|
|
4759
4759
|
case a:
|
|
4760
4760
|
case r:
|
|
4761
4761
|
case p:
|
|
4762
4762
|
case f:
|
|
4763
|
-
return
|
|
4763
|
+
return M;
|
|
4764
4764
|
default:
|
|
4765
|
-
switch (
|
|
4765
|
+
switch (M = M && M.$$typeof, M) {
|
|
4766
4766
|
case l:
|
|
4767
4767
|
case c:
|
|
4768
4768
|
case u:
|
|
4769
4769
|
case m:
|
|
4770
4770
|
case o:
|
|
4771
|
-
return
|
|
4771
|
+
return M;
|
|
4772
4772
|
default:
|
|
4773
4773
|
return $;
|
|
4774
4774
|
}
|
|
@@ -4778,35 +4778,35 @@ function Kv() {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
4780
|
}
|
|
4781
|
-
var x = o, I = e, k = c, B = n,
|
|
4782
|
-
return Fe.ContextConsumer = l, Fe.ContextProvider = x, Fe.Element = I, Fe.ForwardRef = k, Fe.Fragment = B, Fe.Lazy =
|
|
4781
|
+
var x = o, I = e, k = c, B = n, _ = u, w = m, R = t, L = a, V = r, H = p;
|
|
4782
|
+
return Fe.ContextConsumer = l, Fe.ContextProvider = x, Fe.Element = I, Fe.ForwardRef = k, Fe.Fragment = B, Fe.Lazy = _, Fe.Memo = w, Fe.Portal = R, Fe.Profiler = L, Fe.StrictMode = V, Fe.Suspense = H, Fe.isAsyncMode = function() {
|
|
4783
4783
|
return !1;
|
|
4784
4784
|
}, Fe.isConcurrentMode = function() {
|
|
4785
4785
|
return !1;
|
|
4786
|
-
}, Fe.isContextConsumer = function(
|
|
4787
|
-
return N(
|
|
4788
|
-
}, Fe.isContextProvider = function(
|
|
4789
|
-
return N(
|
|
4790
|
-
}, Fe.isElement = function(
|
|
4791
|
-
return typeof
|
|
4792
|
-
}, Fe.isForwardRef = function(
|
|
4793
|
-
return N(
|
|
4794
|
-
}, Fe.isFragment = function(
|
|
4795
|
-
return N(
|
|
4796
|
-
}, Fe.isLazy = function(
|
|
4797
|
-
return N(
|
|
4798
|
-
}, Fe.isMemo = function(
|
|
4799
|
-
return N(
|
|
4800
|
-
}, Fe.isPortal = function(
|
|
4801
|
-
return N(
|
|
4802
|
-
}, Fe.isProfiler = function(
|
|
4803
|
-
return N(
|
|
4804
|
-
}, Fe.isStrictMode = function(
|
|
4805
|
-
return N(
|
|
4806
|
-
}, Fe.isSuspense = function(
|
|
4807
|
-
return N(
|
|
4808
|
-
}, Fe.isValidElementType = function(
|
|
4809
|
-
return typeof
|
|
4786
|
+
}, Fe.isContextConsumer = function(M) {
|
|
4787
|
+
return N(M) === l;
|
|
4788
|
+
}, Fe.isContextProvider = function(M) {
|
|
4789
|
+
return N(M) === o;
|
|
4790
|
+
}, Fe.isElement = function(M) {
|
|
4791
|
+
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
4792
|
+
}, Fe.isForwardRef = function(M) {
|
|
4793
|
+
return N(M) === c;
|
|
4794
|
+
}, Fe.isFragment = function(M) {
|
|
4795
|
+
return N(M) === n;
|
|
4796
|
+
}, Fe.isLazy = function(M) {
|
|
4797
|
+
return N(M) === u;
|
|
4798
|
+
}, Fe.isMemo = function(M) {
|
|
4799
|
+
return N(M) === m;
|
|
4800
|
+
}, Fe.isPortal = function(M) {
|
|
4801
|
+
return N(M) === t;
|
|
4802
|
+
}, Fe.isProfiler = function(M) {
|
|
4803
|
+
return N(M) === a;
|
|
4804
|
+
}, Fe.isStrictMode = function(M) {
|
|
4805
|
+
return N(M) === r;
|
|
4806
|
+
}, Fe.isSuspense = function(M) {
|
|
4807
|
+
return N(M) === p;
|
|
4808
|
+
}, Fe.isValidElementType = function(M) {
|
|
4809
|
+
return typeof M == "string" || typeof M == "function" || M === n || M === a || M === C || M === r || M === p || M === f || M === E || typeof M == "object" && M !== null && (M.$$typeof === u || M.$$typeof === m || M.$$typeof === o || M.$$typeof === l || M.$$typeof === c || M.$$typeof === v || M.$$typeof === h || M[0] === g);
|
|
4810
4810
|
}, Fe.typeOf = N, Fe;
|
|
4811
4811
|
}
|
|
4812
4812
|
var Ve = {};
|
|
@@ -4821,14 +4821,14 @@ var Ve = {};
|
|
|
4821
4821
|
var pc;
|
|
4822
4822
|
function Hv() {
|
|
4823
4823
|
return pc || (pc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4824
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117,
|
|
4824
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117, C = 60129, E = 60131;
|
|
4825
4825
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
4826
4826
|
var T = Symbol.for;
|
|
4827
|
-
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), T("react.scope"), T("react.opaque.id"),
|
|
4827
|
+
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), T("react.scope"), T("react.opaque.id"), C = T("react.debug_trace_mode"), T("react.offscreen"), E = T("react.legacy_hidden");
|
|
4828
4828
|
}
|
|
4829
4829
|
var N = !1;
|
|
4830
4830
|
function x(se) {
|
|
4831
|
-
return !!(typeof se == "string" || typeof se == "function" || se === n || se === a || se ===
|
|
4831
|
+
return !!(typeof se == "string" || typeof se == "function" || se === n || se === a || se === C || se === r || se === p || se === f || se === E || N || typeof se == "object" && se !== null && (se.$$typeof === u || se.$$typeof === m || se.$$typeof === o || se.$$typeof === l || se.$$typeof === c || se.$$typeof === v || se.$$typeof === h || se[0] === g));
|
|
4832
4832
|
}
|
|
4833
4833
|
function I(se) {
|
|
4834
4834
|
if (typeof se == "object" && se !== null) {
|
|
@@ -4861,7 +4861,7 @@ function Hv() {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
}
|
|
4863
4863
|
}
|
|
4864
|
-
var k = l, B = o,
|
|
4864
|
+
var k = l, B = o, _ = e, w = c, R = n, L = u, V = m, H = t, M = a, $ = r, G = p, q = !1, A = !1;
|
|
4865
4865
|
function ne(se) {
|
|
4866
4866
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
4867
4867
|
}
|
|
@@ -4901,7 +4901,7 @@ function Hv() {
|
|
|
4901
4901
|
function me(se) {
|
|
4902
4902
|
return I(se) === p;
|
|
4903
4903
|
}
|
|
4904
|
-
Ve.ContextConsumer = k, Ve.ContextProvider = B, Ve.Element =
|
|
4904
|
+
Ve.ContextConsumer = k, Ve.ContextProvider = B, Ve.Element = _, Ve.ForwardRef = w, Ve.Fragment = R, Ve.Lazy = L, Ve.Memo = V, Ve.Portal = H, Ve.Profiler = M, Ve.StrictMode = $, Ve.Suspense = G, Ve.isAsyncMode = ne, Ve.isConcurrentMode = oe, Ve.isContextConsumer = O, Ve.isContextProvider = Y, Ve.isElement = Z, Ve.isForwardRef = U, Ve.isFragment = j, Ve.isLazy = W, Ve.isMemo = Q, Ve.isPortal = ee, Ve.isProfiler = le, Ve.isStrictMode = re, Ve.isSuspense = me, Ve.isValidElementType = x, Ve.typeOf = I;
|
|
4905
4905
|
}()), Ve;
|
|
4906
4906
|
}
|
|
4907
4907
|
(function(e) {
|
|
@@ -4930,9 +4930,9 @@ function Jv(e, t, n, r, a, o, l, c, p, f) {
|
|
|
4930
4930
|
if (!!e) {
|
|
4931
4931
|
var m = !1, u = null, h = function() {
|
|
4932
4932
|
if (!m) {
|
|
4933
|
-
var
|
|
4933
|
+
var C = t.getState(), E, T;
|
|
4934
4934
|
try {
|
|
4935
|
-
E = r(
|
|
4935
|
+
E = r(C, a.current);
|
|
4936
4936
|
} catch (N) {
|
|
4937
4937
|
T = N, u = N;
|
|
4938
4938
|
}
|
|
@@ -4959,7 +4959,7 @@ function Xv(e, t) {
|
|
|
4959
4959
|
t === void 0 && (t = {});
|
|
4960
4960
|
var n = t, r = n.getDisplayName, a = r === void 0 ? function(B) {
|
|
4961
4961
|
return "ConnectAdvanced(" + B + ")";
|
|
4962
|
-
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, f = n.shouldHandleStateChanges, m = f === void 0 ? !0 : f, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g,
|
|
4962
|
+
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, f = n.shouldHandleStateChanges, m = f === void 0 ? !0 : f, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g, C = n.forwardRef, E = C === void 0 ? !1 : C, T = n.context, N = T === void 0 ? qo : T, x = qs(n, Wv);
|
|
4963
4963
|
if (process.env.NODE_ENV !== "production") {
|
|
4964
4964
|
if (p !== void 0)
|
|
4965
4965
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -4970,23 +4970,23 @@ function Xv(e, t) {
|
|
|
4970
4970
|
throw new Error("storeKey has been removed and does not do anything. " + I);
|
|
4971
4971
|
}
|
|
4972
4972
|
var k = N;
|
|
4973
|
-
return function(
|
|
4974
|
-
if (process.env.NODE_ENV !== "production" && !ko.exports.isValidElementType(
|
|
4975
|
-
throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + jv(
|
|
4976
|
-
var
|
|
4973
|
+
return function(_) {
|
|
4974
|
+
if (process.env.NODE_ENV !== "production" && !ko.exports.isValidElementType(_))
|
|
4975
|
+
throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + jv(_)));
|
|
4976
|
+
var w = _.displayName || _.name || "Component", R = a(w), L = ge({}, x, {
|
|
4977
4977
|
getDisplayName: a,
|
|
4978
4978
|
methodName: l,
|
|
4979
4979
|
renderCountProp: p,
|
|
4980
4980
|
shouldHandleStateChanges: m,
|
|
4981
4981
|
storeKey: h,
|
|
4982
4982
|
displayName: R,
|
|
4983
|
-
wrappedComponentName:
|
|
4984
|
-
WrappedComponent:
|
|
4983
|
+
wrappedComponentName: w,
|
|
4984
|
+
WrappedComponent: _
|
|
4985
4985
|
}), V = x.pure;
|
|
4986
4986
|
function H(A) {
|
|
4987
4987
|
return e(A.dispatch, L);
|
|
4988
4988
|
}
|
|
4989
|
-
var
|
|
4989
|
+
var M = V ? Qe : function(A) {
|
|
4990
4990
|
return A();
|
|
4991
4991
|
};
|
|
4992
4992
|
function $(A) {
|
|
@@ -5012,15 +5012,15 @@ function Xv(e, t) {
|
|
|
5012
5012
|
}, [j, U, re]), te = ia(zv, Yv, Zv), De = te[0], Oe = De[0], lt = te[1];
|
|
5013
5013
|
if (Oe && Oe.error)
|
|
5014
5014
|
throw Oe.error;
|
|
5015
|
-
var mt = Se(), nt = Se(Y), Ee = Se(), Ke = Se(!1), Ze =
|
|
5015
|
+
var mt = Se(), nt = Se(Y), Ee = Se(), Ke = Se(!1), Ze = M(function() {
|
|
5016
5016
|
return Ee.current && Y === nt.current ? Ee.current : ee(Q.getState(), Y);
|
|
5017
5017
|
}, [Q, Oe, Y]);
|
|
5018
5018
|
uc(qv, [nt, mt, Ke, Y, Ze, Ee, me]), uc(Jv, [m, Q, re, ee, nt, mt, Ke, Ee, me, lt], [Q, re, ee]);
|
|
5019
5019
|
var fe = Qe(function() {
|
|
5020
|
-
return /* @__PURE__ */ J.createElement(
|
|
5020
|
+
return /* @__PURE__ */ J.createElement(_, ge({}, Ze, {
|
|
5021
5021
|
ref: O
|
|
5022
5022
|
}));
|
|
5023
|
-
}, [O,
|
|
5023
|
+
}, [O, _, Ze]), Be = Qe(function() {
|
|
5024
5024
|
return m ? /* @__PURE__ */ J.createElement(Z.Provider, {
|
|
5025
5025
|
value: se
|
|
5026
5026
|
}, fe) : fe;
|
|
@@ -5028,15 +5028,15 @@ function Xv(e, t) {
|
|
|
5028
5028
|
return Be;
|
|
5029
5029
|
}
|
|
5030
5030
|
var G = V ? J.memo($) : $;
|
|
5031
|
-
if (G.WrappedComponent =
|
|
5031
|
+
if (G.WrappedComponent = _, G.displayName = $.displayName = R, E) {
|
|
5032
5032
|
var q = J.forwardRef(function(ne, oe) {
|
|
5033
5033
|
return /* @__PURE__ */ J.createElement(G, ge({}, ne, {
|
|
5034
5034
|
reactReduxForwardedRef: oe
|
|
5035
5035
|
}));
|
|
5036
5036
|
});
|
|
5037
|
-
return q.displayName = R, q.WrappedComponent =
|
|
5037
|
+
return q.displayName = R, q.WrappedComponent = _, cc(q, _);
|
|
5038
5038
|
}
|
|
5039
|
-
return cc(G,
|
|
5039
|
+
return cc(G, _);
|
|
5040
5040
|
};
|
|
5041
5041
|
}
|
|
5042
5042
|
function mc(e, t) {
|
|
@@ -5176,7 +5176,7 @@ function Sy(e, t, n, r, a) {
|
|
|
5176
5176
|
function v(x, I) {
|
|
5177
5177
|
return f = x, m = I, u = e(f, m), h = t(r, m), g = n(u, h, m), p = !0, g;
|
|
5178
5178
|
}
|
|
5179
|
-
function
|
|
5179
|
+
function C() {
|
|
5180
5180
|
return u = e(f, m), t.dependsOnOwnProps && (h = t(r, m)), g = n(u, h, m), g;
|
|
5181
5181
|
}
|
|
5182
5182
|
function E() {
|
|
@@ -5188,7 +5188,7 @@ function Sy(e, t, n, r, a) {
|
|
|
5188
5188
|
}
|
|
5189
5189
|
function N(x, I) {
|
|
5190
5190
|
var k = !l(I, m), B = !o(x, f, I, m);
|
|
5191
|
-
return f = x, m = I, k && B ?
|
|
5191
|
+
return f = x, m = I, k && B ? C() : k ? E() : B ? T() : g;
|
|
5192
5192
|
}
|
|
5193
5193
|
return function(I, k) {
|
|
5194
5194
|
return p ? N(I, k) : v(I, k);
|
|
@@ -5216,21 +5216,21 @@ function vy(e, t) {
|
|
|
5216
5216
|
}
|
|
5217
5217
|
function yy(e) {
|
|
5218
5218
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? Xv : n, a = t.mapStateToPropsFactories, o = a === void 0 ? iy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? sy : l, p = t.mergePropsFactories, f = p === void 0 ? uy : p, m = t.selectorFactory, u = m === void 0 ? gy : m;
|
|
5219
|
-
return function(g, v,
|
|
5219
|
+
return function(g, v, C, E) {
|
|
5220
5220
|
E === void 0 && (E = {});
|
|
5221
|
-
var T = E, N = T.pure, x = N === void 0 ? !0 : N, I = T.areStatesEqual, k = I === void 0 ? vy : I, B = T.areOwnPropsEqual,
|
|
5221
|
+
var T = E, N = T.pure, x = N === void 0 ? !0 : N, I = T.areStatesEqual, k = I === void 0 ? vy : I, B = T.areOwnPropsEqual, _ = B === void 0 ? Xa : B, w = T.areStatePropsEqual, R = w === void 0 ? Xa : w, L = T.areMergedPropsEqual, V = L === void 0 ? Xa : L, H = qs(T, by), M = eo(g, o, "mapStateToProps"), $ = eo(v, c, "mapDispatchToProps"), G = eo(C, f, "mergeProps");
|
|
5222
5222
|
return r(u, ge({
|
|
5223
5223
|
methodName: "connect",
|
|
5224
5224
|
getDisplayName: function(A) {
|
|
5225
5225
|
return "Connect(" + A + ")";
|
|
5226
5226
|
},
|
|
5227
5227
|
shouldHandleStateChanges: Boolean(g),
|
|
5228
|
-
initMapStateToProps:
|
|
5228
|
+
initMapStateToProps: M,
|
|
5229
5229
|
initMapDispatchToProps: $,
|
|
5230
5230
|
initMergeProps: G,
|
|
5231
5231
|
pure: x,
|
|
5232
5232
|
areStatesEqual: k,
|
|
5233
|
-
areOwnPropsEqual:
|
|
5233
|
+
areOwnPropsEqual: _,
|
|
5234
5234
|
areStatePropsEqual: R,
|
|
5235
5235
|
areMergedPropsEqual: V
|
|
5236
5236
|
}, H));
|
|
@@ -5733,11 +5733,11 @@ var fa = st(function(e, t) {
|
|
|
5733
5733
|
var l = ri(o);
|
|
5734
5734
|
if (!l)
|
|
5735
5735
|
return null;
|
|
5736
|
-
function c(
|
|
5736
|
+
function c(C) {
|
|
5737
5737
|
var E = {
|
|
5738
5738
|
type: "COMBINE",
|
|
5739
5739
|
combine: {
|
|
5740
|
-
draggableId:
|
|
5740
|
+
draggableId: C,
|
|
5741
5741
|
droppableId: r.descriptor.id
|
|
5742
5742
|
}
|
|
5743
5743
|
};
|
|
@@ -5755,8 +5755,8 @@ var fa = st(function(e, t) {
|
|
|
5755
5755
|
var u = m[m.length - 1];
|
|
5756
5756
|
return c(u.descriptor.id);
|
|
5757
5757
|
}
|
|
5758
|
-
var h = ni(m, function(
|
|
5759
|
-
return
|
|
5758
|
+
var h = ni(m, function(C) {
|
|
5759
|
+
return C.descriptor.id === f;
|
|
5760
5760
|
});
|
|
5761
5761
|
h === -1 && (process.env.NODE_ENV !== "production" ? F(!1, "Could not find displaced item in set") : F(!1));
|
|
5762
5762
|
var g = h - 1;
|
|
@@ -5926,8 +5926,8 @@ function ea(e) {
|
|
|
5926
5926
|
displacedBy: o,
|
|
5927
5927
|
destination: r
|
|
5928
5928
|
});
|
|
5929
|
-
var m = Mn(n, function(
|
|
5930
|
-
return
|
|
5929
|
+
var m = Mn(n, function(C) {
|
|
5930
|
+
return C.descriptor.index === c;
|
|
5931
5931
|
});
|
|
5932
5932
|
if (!m)
|
|
5933
5933
|
return wc({
|
|
@@ -6063,10 +6063,10 @@ var iE = function(e) {
|
|
|
6063
6063
|
if (v.descriptor.id === n.descriptor.id)
|
|
6064
6064
|
return c.borderBox.center;
|
|
6065
6065
|
if (xn(v.descriptor.id, o)) {
|
|
6066
|
-
var
|
|
6066
|
+
var C = Js(v.page, kr(o.displacedBy.point));
|
|
6067
6067
|
return Cc({
|
|
6068
6068
|
axis: p,
|
|
6069
|
-
moveRelativeTo:
|
|
6069
|
+
moveRelativeTo: C,
|
|
6070
6070
|
isMoving: c
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
@@ -6143,13 +6143,13 @@ var gE = function(e) {
|
|
|
6143
6143
|
last: p,
|
|
6144
6144
|
forceShouldAnimate: !1
|
|
6145
6145
|
}), u = {}, h = {}, g = [p, f, m];
|
|
6146
|
-
p.all.forEach(function(
|
|
6147
|
-
var E = SE(
|
|
6146
|
+
p.all.forEach(function(C) {
|
|
6147
|
+
var E = SE(C, g);
|
|
6148
6148
|
if (E) {
|
|
6149
|
-
h[
|
|
6149
|
+
h[C] = E;
|
|
6150
6150
|
return;
|
|
6151
6151
|
}
|
|
6152
|
-
u[
|
|
6152
|
+
u[C] = !0;
|
|
6153
6153
|
});
|
|
6154
6154
|
var v = ge({}, t, {
|
|
6155
6155
|
displaced: {
|
|
@@ -6210,13 +6210,13 @@ var gE = function(e) {
|
|
|
6210
6210
|
onlyOnMainAxis: !0
|
|
6211
6211
|
});
|
|
6212
6212
|
if (v) {
|
|
6213
|
-
var
|
|
6213
|
+
var C = ii({
|
|
6214
6214
|
pageBorderBoxCenter: g,
|
|
6215
6215
|
draggable: n,
|
|
6216
6216
|
viewport: l
|
|
6217
6217
|
});
|
|
6218
6218
|
return {
|
|
6219
|
-
clientSelection:
|
|
6219
|
+
clientSelection: C,
|
|
6220
6220
|
impact: h,
|
|
6221
6221
|
scrollJumpRequest: null
|
|
6222
6222
|
};
|
|
@@ -6403,13 +6403,13 @@ var gE = function(e) {
|
|
|
6403
6403
|
var g = Boolean(t[l.axis.line] <= n.page.borderBox.center[l.axis.line]), v = function() {
|
|
6404
6404
|
var E = n.descriptor.index;
|
|
6405
6405
|
return n.descriptor.id === a.descriptor.id || g ? E : E + 1;
|
|
6406
|
-
}(),
|
|
6406
|
+
}(), C = ps(l.axis, a.displaceBy);
|
|
6407
6407
|
return ea({
|
|
6408
6408
|
draggable: a,
|
|
6409
6409
|
insideDestination: r,
|
|
6410
6410
|
destination: l,
|
|
6411
6411
|
viewport: c,
|
|
6412
|
-
displacedBy:
|
|
6412
|
+
displacedBy: C,
|
|
6413
6413
|
last: ts,
|
|
6414
6414
|
index: v
|
|
6415
6415
|
});
|
|
@@ -6552,7 +6552,7 @@ var RE = function(e) {
|
|
|
6552
6552
|
id: T
|
|
6553
6553
|
});
|
|
6554
6554
|
return x ? I ? h <= N : u < N - m : I ? h <= N + m : u < N;
|
|
6555
|
-
}),
|
|
6555
|
+
}), C = LE({
|
|
6556
6556
|
draggable: n,
|
|
6557
6557
|
closest: v,
|
|
6558
6558
|
inHomeList: Ir(n, r)
|
|
@@ -6564,14 +6564,14 @@ var RE = function(e) {
|
|
|
6564
6564
|
viewport: l,
|
|
6565
6565
|
last: o,
|
|
6566
6566
|
displacedBy: f,
|
|
6567
|
-
index:
|
|
6567
|
+
index: C
|
|
6568
6568
|
});
|
|
6569
6569
|
}, BE = 4, PE = function(e) {
|
|
6570
6570
|
var t = e.draggable, n = e.pageBorderBoxWithDroppableScroll, r = e.previousImpact, a = e.destination, o = e.insideDestination, l = e.afterCritical;
|
|
6571
6571
|
if (!a.isCombineEnabled)
|
|
6572
6572
|
return null;
|
|
6573
|
-
var c = a.axis, p = ps(a.axis, t.displaceBy), f = p.value, m = n[c.start], u = n[c.end], h = fa(t, o), g = Mn(h, function(
|
|
6574
|
-
var E =
|
|
6573
|
+
var c = a.axis, p = ps(a.axis, t.displaceBy), f = p.value, m = n[c.start], u = n[c.end], h = fa(t, o), g = Mn(h, function(C) {
|
|
6574
|
+
var E = C.descriptor.id, T = C.page.borderBox, N = T[c.size], x = N / BE, I = xn(E, l), k = Mp({
|
|
6575
6575
|
displaced: r.displaced,
|
|
6576
6576
|
id: E
|
|
6577
6577
|
});
|
|
@@ -6662,7 +6662,7 @@ var RE = function(e) {
|
|
|
6662
6662
|
viewport: c,
|
|
6663
6663
|
current: g
|
|
6664
6664
|
});
|
|
6665
|
-
var v = p.draggables[t.critical.draggable.id],
|
|
6665
|
+
var v = p.draggables[t.critical.draggable.id], C = o || _p({
|
|
6666
6666
|
pageOffset: h.offset,
|
|
6667
6667
|
draggable: v,
|
|
6668
6668
|
draggables: p.draggables,
|
|
@@ -6672,7 +6672,7 @@ var RE = function(e) {
|
|
|
6672
6672
|
afterCritical: t.afterCritical
|
|
6673
6673
|
}), E = FE({
|
|
6674
6674
|
draggable: v,
|
|
6675
|
-
impact:
|
|
6675
|
+
impact: C,
|
|
6676
6676
|
previousImpact: t.impact,
|
|
6677
6677
|
draggables: p.draggables,
|
|
6678
6678
|
droppables: p.droppables
|
|
@@ -6682,7 +6682,7 @@ var RE = function(e) {
|
|
|
6682
6682
|
draggables: p.draggables,
|
|
6683
6683
|
droppables: E
|
|
6684
6684
|
},
|
|
6685
|
-
impact:
|
|
6685
|
+
impact: C,
|
|
6686
6686
|
viewport: c,
|
|
6687
6687
|
scrollJumpRequest: l || null,
|
|
6688
6688
|
forceShouldAnimate: l ? !1 : null
|
|
@@ -6830,12 +6830,12 @@ var Op = function(e) {
|
|
|
6830
6830
|
home: u,
|
|
6831
6831
|
draggables: l,
|
|
6832
6832
|
viewport: t.viewport
|
|
6833
|
-
}), g = h.impact, v = h.afterCritical,
|
|
6833
|
+
}), g = h.impact, v = h.afterCritical, C = f && f.isCombineEnabled ? t.impact : g, E = _p({
|
|
6834
6834
|
pageOffset: t.current.page.offset,
|
|
6835
6835
|
draggable: c.draggables[t.critical.draggable.id],
|
|
6836
6836
|
draggables: c.draggables,
|
|
6837
6837
|
droppables: c.droppables,
|
|
6838
|
-
previousImpact:
|
|
6838
|
+
previousImpact: C,
|
|
6839
6839
|
viewport: t.viewport,
|
|
6840
6840
|
afterCritical: v
|
|
6841
6841
|
});
|
|
@@ -6908,7 +6908,7 @@ var kc = {
|
|
|
6908
6908
|
home: f,
|
|
6909
6909
|
draggables: l.draggables,
|
|
6910
6910
|
viewport: o
|
|
6911
|
-
}), v = g.impact,
|
|
6911
|
+
}), v = g.impact, C = g.afterCritical, E = {
|
|
6912
6912
|
phase: "DRAGGING",
|
|
6913
6913
|
isDragging: !0,
|
|
6914
6914
|
critical: r,
|
|
@@ -6918,7 +6918,7 @@ var kc = {
|
|
|
6918
6918
|
current: u,
|
|
6919
6919
|
isWindowScrollAllowed: h,
|
|
6920
6920
|
impact: v,
|
|
6921
|
-
afterCritical:
|
|
6921
|
+
afterCritical: C,
|
|
6922
6922
|
onLiftImpact: v,
|
|
6923
6923
|
viewport: o,
|
|
6924
6924
|
scrollJumpRequest: null,
|
|
@@ -6960,14 +6960,14 @@ var kc = {
|
|
|
6960
6960
|
var x = t.payload, I = x.id, k = x.newScroll, B = e.dimensions.droppables[I];
|
|
6961
6961
|
if (!B)
|
|
6962
6962
|
return e;
|
|
6963
|
-
var
|
|
6964
|
-
return ro(e,
|
|
6963
|
+
var _ = ti(B, k);
|
|
6964
|
+
return ro(e, _, !1);
|
|
6965
6965
|
}
|
|
6966
6966
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
6967
6967
|
if (e.phase === "DROP_PENDING")
|
|
6968
6968
|
return e;
|
|
6969
6969
|
Wn(e) || (process.env.NODE_ENV !== "production" ? F(!1, "Attempting to move in an unsupported phase " + e.phase) : F(!1));
|
|
6970
|
-
var
|
|
6970
|
+
var w = t.payload, R = w.id, L = w.isEnabled, V = e.dimensions.droppables[R];
|
|
6971
6971
|
V || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot find Droppable[id: " + R + "] to toggle its enabled state") : F(!1)), V.isEnabled === L && (process.env.NODE_ENV !== "production" ? F(!1, "Trying to set droppable isEnabled to " + String(L) + `
|
|
6972
6972
|
but it is already ` + String(V.isEnabled)) : F(!1));
|
|
6973
6973
|
var H = ge({}, V, {
|
|
@@ -6979,7 +6979,7 @@ var kc = {
|
|
|
6979
6979
|
if (e.phase === "DROP_PENDING")
|
|
6980
6980
|
return e;
|
|
6981
6981
|
Wn(e) || (process.env.NODE_ENV !== "production" ? F(!1, "Attempting to move in an unsupported phase " + e.phase) : F(!1));
|
|
6982
|
-
var
|
|
6982
|
+
var M = t.payload, $ = M.id, G = M.isCombineEnabled, q = e.dimensions.droppables[$];
|
|
6983
6983
|
q || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot find Droppable[id: " + $ + "] to toggle its isCombineEnabled state") : F(!1)), q.isCombineEnabled === G && (process.env.NODE_ENV !== "production" ? F(!1, "Trying to set droppable isCombineEnabled to " + String(G) + `
|
|
6984
6984
|
but it is already ` + String(q.isCombineEnabled)) : F(!1));
|
|
6985
6985
|
var A = ge({}, q, {
|
|
@@ -7224,10 +7224,10 @@ var pT = function(e) {
|
|
|
7224
7224
|
}, h = {
|
|
7225
7225
|
draggableId: c,
|
|
7226
7226
|
scrollOptions: u
|
|
7227
|
-
}, g = e.startPublishing(h), v = g.critical,
|
|
7228
|
-
dT(v,
|
|
7227
|
+
}, g = e.startPublishing(h), v = g.critical, C = g.dimensions, E = g.viewport;
|
|
7228
|
+
dT(v, C), r(qE({
|
|
7229
7229
|
critical: v,
|
|
7230
|
-
dimensions:
|
|
7230
|
+
dimensions: C,
|
|
7231
7231
|
clientSelection: p,
|
|
7232
7232
|
movementMode: f,
|
|
7233
7233
|
viewport: E
|
|
@@ -7346,7 +7346,7 @@ var pT = function(e) {
|
|
|
7346
7346
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
7347
7347
|
viewport: o.viewport,
|
|
7348
7348
|
draggables: o.dimensions.draggables
|
|
7349
|
-
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? ri(h) : null,
|
|
7349
|
+
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? ri(h) : null, C = g ? ma(h) : null, E = {
|
|
7350
7350
|
index: p.draggable.index,
|
|
7351
7351
|
droppableId: p.droppable.id
|
|
7352
7352
|
}, T = {
|
|
@@ -7356,7 +7356,7 @@ var pT = function(e) {
|
|
|
7356
7356
|
reason: l,
|
|
7357
7357
|
mode: o.movementMode,
|
|
7358
7358
|
destination: v,
|
|
7359
|
-
combine:
|
|
7359
|
+
combine: C
|
|
7360
7360
|
}, N = ST({
|
|
7361
7361
|
impact: h,
|
|
7362
7362
|
draggable: m,
|
|
@@ -7525,11 +7525,11 @@ var ET = function(t) {
|
|
|
7525
7525
|
r && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : F(!1)), Hr("onBeforeCapture", function() {
|
|
7526
7526
|
var v = e().onBeforeCapture;
|
|
7527
7527
|
if (v) {
|
|
7528
|
-
var
|
|
7528
|
+
var C = {
|
|
7529
7529
|
draggableId: h,
|
|
7530
7530
|
mode: g
|
|
7531
7531
|
};
|
|
7532
|
-
v(
|
|
7532
|
+
v(C);
|
|
7533
7533
|
}
|
|
7534
7534
|
});
|
|
7535
7535
|
}, o = function(h, g) {
|
|
@@ -7551,16 +7551,16 @@ var ET = function(t) {
|
|
|
7551
7551
|
});
|
|
7552
7552
|
});
|
|
7553
7553
|
}, c = function(h, g) {
|
|
7554
|
-
var v = ri(g),
|
|
7554
|
+
var v = ri(g), C = ma(g);
|
|
7555
7555
|
r || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot fire onDragMove when onDragStart has not been called") : F(!1));
|
|
7556
7556
|
var E = !xT(h, r.lastCritical);
|
|
7557
7557
|
E && (r.lastCritical = h);
|
|
7558
7558
|
var T = !DT(r.lastLocation, v);
|
|
7559
7559
|
T && (r.lastLocation = v);
|
|
7560
|
-
var N = !NT(r.lastCombine,
|
|
7561
|
-
if (N && (r.lastCombine =
|
|
7560
|
+
var N = !NT(r.lastCombine, C);
|
|
7561
|
+
if (N && (r.lastCombine = C), !(!E && !T && !N)) {
|
|
7562
7562
|
var x = ge({}, Bs(h, r.mode), {
|
|
7563
|
-
combine:
|
|
7563
|
+
combine: C,
|
|
7564
7564
|
destination: v
|
|
7565
7565
|
});
|
|
7566
7566
|
n.add(function() {
|
|
@@ -7743,7 +7743,7 @@ function VT(e) {
|
|
|
7743
7743
|
return t.draggable.getById(T).getDimension(at);
|
|
7744
7744
|
}).sort(function(T, N) {
|
|
7745
7745
|
return T.descriptor.index - N.descriptor.index;
|
|
7746
|
-
}),
|
|
7746
|
+
}), C = Object.keys(g).map(function(T) {
|
|
7747
7747
|
var N = t.droppable.getById(T), x = N.callbacks.getScrollWhileDragging();
|
|
7748
7748
|
return {
|
|
7749
7749
|
droppableId: T,
|
|
@@ -7752,7 +7752,7 @@ function VT(e) {
|
|
|
7752
7752
|
}), E = {
|
|
7753
7753
|
additions: v,
|
|
7754
7754
|
removals: Object.keys(h),
|
|
7755
|
-
modified:
|
|
7755
|
+
modified: C
|
|
7756
7756
|
};
|
|
7757
7757
|
r = oo(), ms(), n.publish(E);
|
|
7758
7758
|
}));
|
|
@@ -7881,9 +7881,9 @@ var HT = function(e, t) {
|
|
|
7881
7881
|
g.type === "ADDITION" && _c(e, v, g.value) && r.add(g.value), g.type === "REMOVAL" && _c(e, v, g.value) && r.remove(g.value);
|
|
7882
7882
|
}, m = function(g) {
|
|
7883
7883
|
n && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot start capturing critical dimensions as there is already a collection") : F(!1));
|
|
7884
|
-
var v = e.draggable.getById(g.draggableId),
|
|
7884
|
+
var v = e.draggable.getById(g.draggableId), C = e.droppable.getById(v.descriptor.droppableId), E = {
|
|
7885
7885
|
draggable: v.descriptor,
|
|
7886
|
-
droppable:
|
|
7886
|
+
droppable: C.descriptor
|
|
7887
7887
|
}, T = e.subscribe(f);
|
|
7888
7888
|
return n = {
|
|
7889
7889
|
critical: E,
|
|
@@ -8337,9 +8337,9 @@ function dw(e, t) {
|
|
|
8337
8337
|
!r.current && !a.current || (process.env.NODE_ENV !== "production" ? F(!1, "style elements already mounted") : F(!1));
|
|
8338
8338
|
var u = Fc(t), h = Fc(t);
|
|
8339
8339
|
return r.current = u, a.current = h, u.setAttribute(wr + "-always", e), h.setAttribute(wr + "-dynamic", e), io().appendChild(u), io().appendChild(h), l(n.always), o(n.resting), function() {
|
|
8340
|
-
var g = function(
|
|
8341
|
-
var E =
|
|
8342
|
-
E || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot unmount ref as it is not set") : F(!1)), io().removeChild(E),
|
|
8340
|
+
var g = function(C) {
|
|
8341
|
+
var E = C.current;
|
|
8342
|
+
E || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot unmount ref as it is not set") : F(!1)), io().removeChild(E), C.current = null;
|
|
8343
8343
|
};
|
|
8344
8344
|
g(r), g(a);
|
|
8345
8345
|
};
|
|
@@ -9108,15 +9108,15 @@ function Jw(e) {
|
|
|
9108
9108
|
if (!g.defaultPrevented) {
|
|
9109
9109
|
var v = e.findClosestDraggableId(g);
|
|
9110
9110
|
if (!!v) {
|
|
9111
|
-
var
|
|
9111
|
+
var C = e.tryGetLock(v, c, {
|
|
9112
9112
|
sourceEvent: g
|
|
9113
9113
|
});
|
|
9114
|
-
if (!!
|
|
9114
|
+
if (!!C) {
|
|
9115
9115
|
var E = g.touches[0], T = E.clientX, N = E.clientY, x = {
|
|
9116
9116
|
x: T,
|
|
9117
9117
|
y: N
|
|
9118
9118
|
};
|
|
9119
|
-
n.current(), u(
|
|
9119
|
+
n.current(), u(C, x);
|
|
9120
9120
|
}
|
|
9121
9121
|
}
|
|
9122
9122
|
}
|
|
@@ -9144,9 +9144,9 @@ function Jw(e) {
|
|
|
9144
9144
|
cancel: p,
|
|
9145
9145
|
completed: c,
|
|
9146
9146
|
getPhase: r
|
|
9147
|
-
},
|
|
9147
|
+
}, C = kt(window, qw(v), g), E = kt(window, zw(v), g);
|
|
9148
9148
|
n.current = function() {
|
|
9149
|
-
|
|
9149
|
+
C(), E();
|
|
9150
9150
|
};
|
|
9151
9151
|
}, [p, r, c]), m = he(function() {
|
|
9152
9152
|
var g = r();
|
|
@@ -9159,12 +9159,12 @@ function Jw(e) {
|
|
|
9159
9159
|
});
|
|
9160
9160
|
}, [r, a]), u = he(function(g, v) {
|
|
9161
9161
|
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? F(!1, "Expected to move from IDLE to PENDING drag") : F(!1));
|
|
9162
|
-
var
|
|
9162
|
+
var C = setTimeout(m, Uw);
|
|
9163
9163
|
a({
|
|
9164
9164
|
type: "PENDING",
|
|
9165
9165
|
point: v,
|
|
9166
9166
|
actions: g,
|
|
9167
|
-
longPressTimerId:
|
|
9167
|
+
longPressTimerId: C
|
|
9168
9168
|
}), f();
|
|
9169
9169
|
}, [f, r, a, m]);
|
|
9170
9170
|
Dt(function() {
|
|
@@ -9311,21 +9311,21 @@ function cC(e) {
|
|
|
9311
9311
|
function v() {
|
|
9312
9312
|
return t.isActive(u);
|
|
9313
9313
|
}
|
|
9314
|
-
function
|
|
9314
|
+
function C(B, _) {
|
|
9315
9315
|
As({
|
|
9316
9316
|
expected: B,
|
|
9317
9317
|
phase: h,
|
|
9318
9318
|
isLockActive: v,
|
|
9319
9319
|
shouldWarn: !0
|
|
9320
|
-
}) && r.dispatch(
|
|
9320
|
+
}) && r.dispatch(_());
|
|
9321
9321
|
}
|
|
9322
|
-
var E =
|
|
9322
|
+
var E = C.bind(null, "DRAGGING");
|
|
9323
9323
|
function T(B) {
|
|
9324
|
-
function
|
|
9324
|
+
function _() {
|
|
9325
9325
|
t.release(), h = "COMPLETED";
|
|
9326
9326
|
}
|
|
9327
|
-
h !== "PRE_DRAG" && (
|
|
9328
|
-
function
|
|
9327
|
+
h !== "PRE_DRAG" && (_(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot lift in phase " + h) : F(!1))), r.dispatch(zE(B.liftActionArgs)), h = "DRAGGING";
|
|
9328
|
+
function w(R, L) {
|
|
9329
9329
|
if (L === void 0 && (L = {
|
|
9330
9330
|
shouldBlockNextClick: !1
|
|
9331
9331
|
}), B.cleanup(), L.shouldBlockNextClick) {
|
|
@@ -9340,7 +9340,7 @@ function cC(e) {
|
|
|
9340
9340
|
}]);
|
|
9341
9341
|
setTimeout(V);
|
|
9342
9342
|
}
|
|
9343
|
-
|
|
9343
|
+
_(), r.dispatch(Ap({
|
|
9344
9344
|
reason: R
|
|
9345
9345
|
}));
|
|
9346
9346
|
}
|
|
@@ -9355,35 +9355,35 @@ function cC(e) {
|
|
|
9355
9355
|
},
|
|
9356
9356
|
shouldRespectForcePress: g,
|
|
9357
9357
|
drop: function(L) {
|
|
9358
|
-
return
|
|
9358
|
+
return w("DROP", L);
|
|
9359
9359
|
},
|
|
9360
9360
|
cancel: function(L) {
|
|
9361
|
-
return
|
|
9361
|
+
return w("CANCEL", L);
|
|
9362
9362
|
}
|
|
9363
9363
|
}, B.actions);
|
|
9364
9364
|
}
|
|
9365
9365
|
function N(B) {
|
|
9366
|
-
var
|
|
9366
|
+
var _ = Xr(function(R) {
|
|
9367
9367
|
E(function() {
|
|
9368
9368
|
return Pp({
|
|
9369
9369
|
client: R
|
|
9370
9370
|
});
|
|
9371
9371
|
});
|
|
9372
|
-
}),
|
|
9372
|
+
}), w = T({
|
|
9373
9373
|
liftActionArgs: {
|
|
9374
9374
|
id: o,
|
|
9375
9375
|
clientSelection: B,
|
|
9376
9376
|
movementMode: "FLUID"
|
|
9377
9377
|
},
|
|
9378
9378
|
cleanup: function() {
|
|
9379
|
-
return
|
|
9379
|
+
return _.cancel();
|
|
9380
9380
|
},
|
|
9381
9381
|
actions: {
|
|
9382
|
-
move:
|
|
9382
|
+
move: _
|
|
9383
9383
|
}
|
|
9384
9384
|
});
|
|
9385
|
-
return ge({},
|
|
9386
|
-
move:
|
|
9385
|
+
return ge({}, w, {
|
|
9386
|
+
move: _
|
|
9387
9387
|
});
|
|
9388
9388
|
}
|
|
9389
9389
|
function x() {
|
|
@@ -9476,7 +9476,7 @@ function pC(e) {
|
|
|
9476
9476
|
return N ? N.options : null;
|
|
9477
9477
|
}, [r.draggable]), g = he(function() {
|
|
9478
9478
|
!c.isClaimed() || (c.tryAbandon(), n.getState().phase !== "IDLE" && n.dispatch(ci()));
|
|
9479
|
-
}, [c, n]), v = he(c.isClaimed, [c]),
|
|
9479
|
+
}, [c, n]), v = he(c.isClaimed, [c]), C = Ie(function() {
|
|
9480
9480
|
return {
|
|
9481
9481
|
canGetLock: f,
|
|
9482
9482
|
tryGetLock: m,
|
|
@@ -9488,7 +9488,7 @@ function pC(e) {
|
|
|
9488
9488
|
}, [f, m, u, h, g, v]);
|
|
9489
9489
|
Zw(l);
|
|
9490
9490
|
for (var E = 0; E < l.length; E++)
|
|
9491
|
-
l[E](
|
|
9491
|
+
l[E](C);
|
|
9492
9492
|
}
|
|
9493
9493
|
var uC = function(t) {
|
|
9494
9494
|
return {
|
|
@@ -9520,25 +9520,25 @@ function mC(e) {
|
|
|
9520
9520
|
updateDroppableIsCombineEnabled: eT,
|
|
9521
9521
|
collectionStarting: ZE
|
|
9522
9522
|
}, h);
|
|
9523
|
-
}, [h]), v = mw(),
|
|
9523
|
+
}, [h]), v = mw(), C = Ie(function() {
|
|
9524
9524
|
return HT(v, g);
|
|
9525
9525
|
}, [v, g]), E = Ie(function() {
|
|
9526
9526
|
return aw(ge({
|
|
9527
9527
|
scrollWindow: WT,
|
|
9528
|
-
scrollDroppable:
|
|
9528
|
+
scrollDroppable: C.scrollDroppable
|
|
9529
9529
|
}, Jl({
|
|
9530
9530
|
move: Pp
|
|
9531
9531
|
}, h)));
|
|
9532
|
-
}, [
|
|
9532
|
+
}, [C.scrollDroppable, h]), T = pw(t), N = Ie(function() {
|
|
9533
9533
|
return FT({
|
|
9534
9534
|
announce: f,
|
|
9535
9535
|
autoScroller: E,
|
|
9536
|
-
dimensionMarshal:
|
|
9536
|
+
dimensionMarshal: C,
|
|
9537
9537
|
focusMarshal: T,
|
|
9538
9538
|
getResponders: p,
|
|
9539
9539
|
styleMarshal: u
|
|
9540
9540
|
});
|
|
9541
|
-
}, [f, E,
|
|
9541
|
+
}, [f, E, C, T, p, u]);
|
|
9542
9542
|
process.env.NODE_ENV !== "production" && l.current && l.current !== N && process.env.NODE_ENV !== "production" && He("unexpected store change"), l.current = N;
|
|
9543
9543
|
var x = he(function() {
|
|
9544
9544
|
var R = Gr(l), L = R.getState();
|
|
@@ -9555,19 +9555,19 @@ function mC(e) {
|
|
|
9555
9555
|
n(k);
|
|
9556
9556
|
var B = he(function(R) {
|
|
9557
9557
|
return Gp(Gr(l).getState(), R);
|
|
9558
|
-
}, []),
|
|
9558
|
+
}, []), _ = he(function() {
|
|
9559
9559
|
return Wn(Gr(l).getState());
|
|
9560
|
-
}, []),
|
|
9560
|
+
}, []), w = Ie(function() {
|
|
9561
9561
|
return {
|
|
9562
|
-
marshal:
|
|
9562
|
+
marshal: C,
|
|
9563
9563
|
focus: T,
|
|
9564
9564
|
contextId: t,
|
|
9565
9565
|
canLift: B,
|
|
9566
|
-
isMovementAllowed:
|
|
9566
|
+
isMovementAllowed: _,
|
|
9567
9567
|
dragHandleUsageInstructionsId: m,
|
|
9568
9568
|
registry: v
|
|
9569
9569
|
};
|
|
9570
|
-
}, [t,
|
|
9570
|
+
}, [t, C, m, T, B, _, v]);
|
|
9571
9571
|
return pC({
|
|
9572
9572
|
contextId: t,
|
|
9573
9573
|
store: N,
|
|
@@ -9577,7 +9577,7 @@ function mC(e) {
|
|
|
9577
9577
|
}), $e(function() {
|
|
9578
9578
|
return x;
|
|
9579
9579
|
}, [x]), J.createElement(Sa.Provider, {
|
|
9580
|
-
value:
|
|
9580
|
+
value: w
|
|
9581
9581
|
}, J.createElement(np, {
|
|
9582
9582
|
context: gi,
|
|
9583
9583
|
store: N
|
|
@@ -9680,7 +9680,7 @@ var Ti = function(t) {
|
|
|
9680
9680
|
var t = e.descriptor, n = e.isEnabled, r = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, l = e.client, c = e.page, p = e.closest, f = function() {
|
|
9681
9681
|
if (!p)
|
|
9682
9682
|
return null;
|
|
9683
|
-
var g = p.scrollSize, v = p.client,
|
|
9683
|
+
var g = p.scrollSize, v = p.client, C = Kp({
|
|
9684
9684
|
scrollHeight: g.scrollHeight,
|
|
9685
9685
|
scrollWidth: g.scrollWidth,
|
|
9686
9686
|
height: v.paddingBox.height,
|
|
@@ -9694,7 +9694,7 @@ var Ti = function(t) {
|
|
|
9694
9694
|
scroll: {
|
|
9695
9695
|
initial: p.scroll,
|
|
9696
9696
|
current: p.scroll,
|
|
9697
|
-
max:
|
|
9697
|
+
max: C,
|
|
9698
9698
|
diff: {
|
|
9699
9699
|
value: at,
|
|
9700
9700
|
displacement: at
|
|
@@ -9738,7 +9738,7 @@ var Ti = function(t) {
|
|
|
9738
9738
|
var t = e.ref, n = e.descriptor, r = e.env, a = e.windowScroll, o = e.direction, l = e.isDropDisabled, c = e.isCombineEnabled, p = e.shouldClipSubject, f = r.closestScrollable, m = NC(t, f), u = Zs(m, a), h = function() {
|
|
9739
9739
|
if (!f)
|
|
9740
9740
|
return null;
|
|
9741
|
-
var v = pp(f),
|
|
9741
|
+
var v = pp(f), C = {
|
|
9742
9742
|
scrollHeight: f.scrollHeight,
|
|
9743
9743
|
scrollWidth: f.scrollWidth
|
|
9744
9744
|
};
|
|
@@ -9746,7 +9746,7 @@ var Ti = function(t) {
|
|
|
9746
9746
|
client: v,
|
|
9747
9747
|
page: Zs(v, a),
|
|
9748
9748
|
scroll: Bo(f),
|
|
9749
|
-
scrollSize:
|
|
9749
|
+
scrollSize: C,
|
|
9750
9750
|
shouldClipSubject: p
|
|
9751
9751
|
};
|
|
9752
9752
|
}(), g = DC({
|
|
@@ -9809,27 +9809,27 @@ function MC(e) {
|
|
|
9809
9809
|
h();
|
|
9810
9810
|
}, [h, u]), v = he(function(I, k) {
|
|
9811
9811
|
t.current && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot collect a droppable while a drag is occurring") : F(!1));
|
|
9812
|
-
var B = l.current,
|
|
9813
|
-
|
|
9814
|
-
var
|
|
9815
|
-
ref:
|
|
9812
|
+
var B = l.current, _ = B.getDroppableRef();
|
|
9813
|
+
_ || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot collect without a droppable ref") : F(!1));
|
|
9814
|
+
var w = CC(_), R = {
|
|
9815
|
+
ref: _,
|
|
9816
9816
|
descriptor: c,
|
|
9817
|
-
env:
|
|
9817
|
+
env: w,
|
|
9818
9818
|
scrollOptions: k
|
|
9819
9819
|
};
|
|
9820
9820
|
t.current = R;
|
|
9821
9821
|
var L = xC({
|
|
9822
|
-
ref:
|
|
9822
|
+
ref: _,
|
|
9823
9823
|
descriptor: c,
|
|
9824
|
-
env:
|
|
9824
|
+
env: w,
|
|
9825
9825
|
windowScroll: I,
|
|
9826
9826
|
direction: B.direction,
|
|
9827
9827
|
isDropDisabled: B.isDropDisabled,
|
|
9828
9828
|
isCombineEnabled: B.isCombineEnabled,
|
|
9829
9829
|
shouldClipSubject: !B.ignoreContainerClipping
|
|
9830
|
-
}), V =
|
|
9830
|
+
}), V = w.closestScrollable;
|
|
9831
9831
|
return V && (V.setAttribute(Ac.contextId, n.contextId), V.addEventListener("scroll", g, Wc(R.scrollOptions)), process.env.NODE_ENV !== "production" && TC(V)), L;
|
|
9832
|
-
}, [n.contextId, c, g, l]),
|
|
9832
|
+
}, [n.contextId, c, g, l]), C = he(function() {
|
|
9833
9833
|
var I = t.current, k = Fs(I);
|
|
9834
9834
|
return I && k || (process.env.NODE_ENV !== "production" ? F(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : F(!1)), Bo(k);
|
|
9835
9835
|
}, []), E = he(function() {
|
|
@@ -9845,11 +9845,11 @@ function MC(e) {
|
|
|
9845
9845
|
}, []), N = Ie(function() {
|
|
9846
9846
|
return {
|
|
9847
9847
|
getDimensionAndWatchScroll: v,
|
|
9848
|
-
getScrollWhileDragging:
|
|
9848
|
+
getScrollWhileDragging: C,
|
|
9849
9849
|
dragStopped: E,
|
|
9850
9850
|
scroll: T
|
|
9851
9851
|
};
|
|
9852
|
-
}, [E, v,
|
|
9852
|
+
}, [E, v, C, T]), x = Ie(function() {
|
|
9853
9853
|
return {
|
|
9854
9854
|
uniqueId: r,
|
|
9855
9855
|
descriptor: c,
|
|
@@ -10135,7 +10135,7 @@ function ZC(e) {
|
|
|
10135
10135
|
type: f,
|
|
10136
10136
|
droppableId: m
|
|
10137
10137
|
};
|
|
10138
|
-
}, [e.draggableId, e.index, f, m]), h = e.children, g = e.draggableId, v = e.isEnabled,
|
|
10138
|
+
}, [e.draggableId, e.index, f, m]), h = e.children, g = e.draggableId, v = e.isEnabled, C = e.shouldRespectForcePress, E = e.canDragInteractiveElements, T = e.isClone, N = e.mapped, x = e.dropAnimationFinished;
|
|
10139
10139
|
if (zC(e, o, r), qC(T), !T) {
|
|
10140
10140
|
var I = Ie(function() {
|
|
10141
10141
|
return {
|
|
@@ -10143,10 +10143,10 @@ function ZC(e) {
|
|
|
10143
10143
|
registry: c,
|
|
10144
10144
|
getDraggableRef: r,
|
|
10145
10145
|
canDragInteractiveElements: E,
|
|
10146
|
-
shouldRespectForcePress:
|
|
10146
|
+
shouldRespectForcePress: C,
|
|
10147
10147
|
isEnabled: v
|
|
10148
10148
|
};
|
|
10149
|
-
}, [u, c, r, E,
|
|
10149
|
+
}, [u, c, r, E, C, v]);
|
|
10150
10150
|
jC(I);
|
|
10151
10151
|
}
|
|
10152
10152
|
var k = Ie(function() {
|
|
@@ -10161,7 +10161,7 @@ function ZC(e) {
|
|
|
10161
10161
|
} : null;
|
|
10162
10162
|
}, [o, l, g, v]), B = he(function(R) {
|
|
10163
10163
|
N.type === "DRAGGING" && (!N.dropping || R.propertyName === "transform" && x());
|
|
10164
|
-
}, [x, N]),
|
|
10164
|
+
}, [x, N]), _ = Ie(function() {
|
|
10165
10165
|
var R = YC(N), L = N.type === "DRAGGING" && N.dropping ? B : null, V = {
|
|
10166
10166
|
innerRef: n,
|
|
10167
10167
|
draggableProps: {
|
|
@@ -10173,7 +10173,7 @@ function ZC(e) {
|
|
|
10173
10173
|
dragHandleProps: k
|
|
10174
10174
|
};
|
|
10175
10175
|
return V;
|
|
10176
|
-
}, [o, k, g, N, B, n]),
|
|
10176
|
+
}, [o, k, g, N, B, n]), w = Ie(function() {
|
|
10177
10177
|
return {
|
|
10178
10178
|
draggableId: u.id,
|
|
10179
10179
|
type: u.type,
|
|
@@ -10183,7 +10183,7 @@ function ZC(e) {
|
|
|
10183
10183
|
}
|
|
10184
10184
|
};
|
|
10185
10185
|
}, [u.droppableId, u.id, u.index, u.type]);
|
|
10186
|
-
return h(
|
|
10186
|
+
return h(_, N.snapshot, w);
|
|
10187
10187
|
}
|
|
10188
10188
|
var iu = function(e, t) {
|
|
10189
10189
|
return e === t;
|
|
@@ -10237,7 +10237,7 @@ function eD() {
|
|
|
10237
10237
|
var h = o.completed;
|
|
10238
10238
|
if (h.result.draggableId !== l.draggableId)
|
|
10239
10239
|
return null;
|
|
10240
|
-
var g = l.isClone, v = o.dimensions.draggables[l.draggableId],
|
|
10240
|
+
var g = l.isClone, v = o.dimensions.draggables[l.draggableId], C = h.result, E = C.mode, T = lu(C), N = XC(C), x = o.dropDuration, I = {
|
|
10241
10241
|
duration: x,
|
|
10242
10242
|
curve: pi.drop,
|
|
10243
10243
|
moveTo: o.newHomeClientOffset,
|
|
@@ -10308,7 +10308,7 @@ function nD() {
|
|
|
10308
10308
|
return r(v);
|
|
10309
10309
|
if (f.displaced.invisible[c])
|
|
10310
10310
|
return null;
|
|
10311
|
-
var
|
|
10311
|
+
var C = kr(m.displacedBy.point), E = e(C.x, C.y);
|
|
10312
10312
|
return n(E, v, !0);
|
|
10313
10313
|
}
|
|
10314
10314
|
if (h)
|
|
@@ -10354,7 +10354,7 @@ function oD(e) {
|
|
|
10354
10354
|
function iD(e) {
|
|
10355
10355
|
var t = jt(Sa);
|
|
10356
10356
|
t || (process.env.NODE_ENV !== "production" ? F(!1, "Could not find app context") : F(!1));
|
|
10357
|
-
var n = t.contextId, r = t.isMovementAllowed, a = Se(null), o = Se(null), l = e.children, c = e.droppableId, p = e.type, f = e.mode, m = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot,
|
|
10357
|
+
var n = t.contextId, r = t.isMovementAllowed, a = Se(null), o = Se(null), l = e.children, c = e.droppableId, p = e.type, f = e.mode, m = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, C = e.useClone, E = e.updateViewportMaxScroll, T = e.getContainerForClone, N = he(function() {
|
|
10358
10358
|
return a.current;
|
|
10359
10359
|
}, []), x = he(function(H) {
|
|
10360
10360
|
a.current = H;
|
|
@@ -10383,29 +10383,29 @@ function iD(e) {
|
|
|
10383
10383
|
ignoreContainerClipping: u,
|
|
10384
10384
|
getDroppableRef: N
|
|
10385
10385
|
});
|
|
10386
|
-
var
|
|
10386
|
+
var _ = J.createElement(VC, {
|
|
10387
10387
|
on: e.placeholder,
|
|
10388
10388
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
10389
10389
|
}, function(H) {
|
|
10390
|
-
var
|
|
10390
|
+
var M = H.onClose, $ = H.data, G = H.animate;
|
|
10391
10391
|
return J.createElement(RC, {
|
|
10392
10392
|
placeholder: $,
|
|
10393
|
-
onClose:
|
|
10393
|
+
onClose: M,
|
|
10394
10394
|
innerRef: k,
|
|
10395
10395
|
animate: G,
|
|
10396
10396
|
contextId: n,
|
|
10397
10397
|
onTransitionEnd: B
|
|
10398
10398
|
});
|
|
10399
|
-
}),
|
|
10399
|
+
}), w = Ie(function() {
|
|
10400
10400
|
return {
|
|
10401
10401
|
innerRef: x,
|
|
10402
|
-
placeholder:
|
|
10402
|
+
placeholder: _,
|
|
10403
10403
|
droppableProps: {
|
|
10404
10404
|
"data-rbd-droppable-id": c,
|
|
10405
10405
|
"data-rbd-droppable-context-id": n
|
|
10406
10406
|
}
|
|
10407
10407
|
};
|
|
10408
|
-
}, [n, c,
|
|
10408
|
+
}, [n, c, _, x]), R = C ? C.dragging.draggableId : null, L = Ie(function() {
|
|
10409
10409
|
return {
|
|
10410
10410
|
droppableId: c,
|
|
10411
10411
|
type: p,
|
|
@@ -10413,9 +10413,9 @@ function iD(e) {
|
|
|
10413
10413
|
};
|
|
10414
10414
|
}, [c, R, p]);
|
|
10415
10415
|
function V() {
|
|
10416
|
-
if (!
|
|
10416
|
+
if (!C)
|
|
10417
10417
|
return null;
|
|
10418
|
-
var H =
|
|
10418
|
+
var H = C.dragging, M = C.render, $ = J.createElement(du, {
|
|
10419
10419
|
draggableId: H.draggableId,
|
|
10420
10420
|
index: H.source.index,
|
|
10421
10421
|
isClone: !0,
|
|
@@ -10423,13 +10423,13 @@ function iD(e) {
|
|
|
10423
10423
|
shouldRespectForcePress: !1,
|
|
10424
10424
|
canDragInteractiveElements: !0
|
|
10425
10425
|
}, function(G, q) {
|
|
10426
|
-
return
|
|
10426
|
+
return M(G, q, H);
|
|
10427
10427
|
});
|
|
10428
10428
|
return Zg.createPortal($, T());
|
|
10429
10429
|
}
|
|
10430
10430
|
return J.createElement(wi.Provider, {
|
|
10431
10431
|
value: L
|
|
10432
|
-
}, l(
|
|
10432
|
+
}, l(w, v), V());
|
|
10433
10433
|
}
|
|
10434
10434
|
var fo = function(t, n) {
|
|
10435
10435
|
return t === n.droppable.type;
|
|
@@ -10463,7 +10463,7 @@ var fo = function(t, n) {
|
|
|
10463
10463
|
var v = u ? {
|
|
10464
10464
|
render: u,
|
|
10465
10465
|
dragging: r(m.descriptor)
|
|
10466
|
-
} : null,
|
|
10466
|
+
} : null, C = {
|
|
10467
10467
|
isDraggingOver: p,
|
|
10468
10468
|
draggingOverWith: p ? h : null,
|
|
10469
10469
|
draggingFromThisWith: h,
|
|
@@ -10472,7 +10472,7 @@ var fo = function(t, n) {
|
|
|
10472
10472
|
return {
|
|
10473
10473
|
placeholder: m.placeholder,
|
|
10474
10474
|
shouldAnimatePlaceholder: !1,
|
|
10475
|
-
snapshot:
|
|
10475
|
+
snapshot: C,
|
|
10476
10476
|
useClone: v
|
|
10477
10477
|
};
|
|
10478
10478
|
}
|
|
@@ -10498,8 +10498,8 @@ var fo = function(t, n) {
|
|
|
10498
10498
|
var g = c.critical;
|
|
10499
10499
|
if (!fo(m, g))
|
|
10500
10500
|
return n;
|
|
10501
|
-
var v = Uc(g, c.dimensions),
|
|
10502
|
-
return a(f, u,
|
|
10501
|
+
var v = Uc(g, c.dimensions), C = Ct(c.impact) === f;
|
|
10502
|
+
return a(f, u, C, C, v, h);
|
|
10503
10503
|
}
|
|
10504
10504
|
if (c.phase === "DROP_ANIMATING") {
|
|
10505
10505
|
var E = c.completed;
|
|
@@ -10616,7 +10616,7 @@ function mu(e) {
|
|
|
10616
10616
|
"data-testid": h,
|
|
10617
10617
|
unsafelyReplaceClassName: g,
|
|
10618
10618
|
...v
|
|
10619
|
-
} = e,
|
|
10619
|
+
} = e, C = () => {
|
|
10620
10620
|
t && t(this, p, r);
|
|
10621
10621
|
}, E = (N) => {
|
|
10622
10622
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), N.stopPropagation(), t && t(this, p, r));
|
|
@@ -10630,7 +10630,7 @@ function mu(e) {
|
|
|
10630
10630
|
"a",
|
|
10631
10631
|
{
|
|
10632
10632
|
className: T,
|
|
10633
|
-
onClick:
|
|
10633
|
+
onClick: C,
|
|
10634
10634
|
"data-toggle": "tab",
|
|
10635
10635
|
id: c,
|
|
10636
10636
|
role: "tab",
|
|
@@ -10711,7 +10711,7 @@ function fu(e) {
|
|
|
10711
10711
|
"data-testid": p,
|
|
10712
10712
|
unsafelyReplaceClassName: f,
|
|
10713
10713
|
...m
|
|
10714
|
-
} = e, u = s.Children.toArray(n).some((
|
|
10714
|
+
} = e, u = s.Children.toArray(n).some((C) => s.isValidElement(C) && C.type === mu), [h, g] = hD(n, t, u), v = K(
|
|
10715
10715
|
f || "sps-card",
|
|
10716
10716
|
r
|
|
10717
10717
|
);
|
|
@@ -10730,9 +10730,9 @@ function fu(e) {
|
|
|
10730
10730
|
role: "tablist",
|
|
10731
10731
|
"data-testid": `${p}__tabs`
|
|
10732
10732
|
},
|
|
10733
|
-
s.Children.map(n, (
|
|
10734
|
-
if (s.isValidElement(
|
|
10735
|
-
return s.cloneElement(
|
|
10733
|
+
s.Children.map(n, (C, E) => {
|
|
10734
|
+
if (s.isValidElement(C))
|
|
10735
|
+
return s.cloneElement(C, {
|
|
10736
10736
|
active: E === h.index,
|
|
10737
10737
|
index: E,
|
|
10738
10738
|
activateTab: g,
|
|
@@ -11244,17 +11244,17 @@ function Su(e) {
|
|
|
11244
11244
|
isVisible: !1,
|
|
11245
11245
|
unselectedColumns: [
|
|
11246
11246
|
...t.map(
|
|
11247
|
-
(
|
|
11248
|
-
...
|
|
11249
|
-
label:
|
|
11247
|
+
(_) => ({
|
|
11248
|
+
..._,
|
|
11249
|
+
label: _.name,
|
|
11250
11250
|
columnId: gt()
|
|
11251
11251
|
})
|
|
11252
11252
|
)
|
|
11253
11253
|
],
|
|
11254
11254
|
selectedColumns: [
|
|
11255
11255
|
...n.map(
|
|
11256
|
-
(
|
|
11257
|
-
...
|
|
11256
|
+
(_) => ({
|
|
11257
|
+
..._,
|
|
11258
11258
|
columnId: gt()
|
|
11259
11259
|
})
|
|
11260
11260
|
)
|
|
@@ -11262,66 +11262,66 @@ function Su(e) {
|
|
|
11262
11262
|
searchSelectedColumn: null,
|
|
11263
11263
|
pendingUnselectedColumns: [
|
|
11264
11264
|
...t.map(
|
|
11265
|
-
(
|
|
11266
|
-
...
|
|
11267
|
-
label:
|
|
11265
|
+
(_) => ({
|
|
11266
|
+
..._,
|
|
11267
|
+
label: _.name,
|
|
11268
11268
|
columnId: gt()
|
|
11269
11269
|
})
|
|
11270
11270
|
)
|
|
11271
11271
|
],
|
|
11272
11272
|
pendingSelectedColumns: [
|
|
11273
11273
|
...n.map(
|
|
11274
|
-
(
|
|
11275
|
-
...
|
|
11274
|
+
(_) => ({
|
|
11275
|
+
..._,
|
|
11276
11276
|
columnId: gt()
|
|
11277
11277
|
})
|
|
11278
11278
|
)
|
|
11279
11279
|
]
|
|
11280
|
-
}), h = { searchSelectedColumn: "" }, g = K(m.isVisible && "sps-button--open", c), { formMeta: v, formValue:
|
|
11281
|
-
function T(
|
|
11282
|
-
if (
|
|
11283
|
-
const
|
|
11280
|
+
}), h = { searchSelectedColumn: "" }, g = K(m.isVisible && "sps-button--open", c), { formMeta: v, formValue: C, updateForm: E } = $b(h);
|
|
11281
|
+
function T(_) {
|
|
11282
|
+
if (_.target.value) {
|
|
11283
|
+
const w = [...m.pendingSelectedColumns], R = [];
|
|
11284
11284
|
m.pendingUnselectedColumns.forEach((L) => {
|
|
11285
|
-
|
|
11285
|
+
_.target.value === L.name ? (E(h), w.push({
|
|
11286
11286
|
columnId: gt(),
|
|
11287
11287
|
name: L.name,
|
|
11288
11288
|
value: L.value
|
|
11289
11289
|
})) : R.push(L);
|
|
11290
11290
|
}), u({
|
|
11291
|
-
pendingSelectedColumns:
|
|
11291
|
+
pendingSelectedColumns: w,
|
|
11292
11292
|
pendingUnselectedColumns: R
|
|
11293
11293
|
});
|
|
11294
11294
|
}
|
|
11295
11295
|
}
|
|
11296
|
-
function N(
|
|
11297
|
-
const
|
|
11296
|
+
function N(_) {
|
|
11297
|
+
const w = [], R = [...m.pendingUnselectedColumns];
|
|
11298
11298
|
m.pendingSelectedColumns.forEach((L) => {
|
|
11299
|
-
|
|
11299
|
+
_ === L.value ? R.push({
|
|
11300
11300
|
columnId: gt(),
|
|
11301
11301
|
name: L.name,
|
|
11302
11302
|
value: L.value
|
|
11303
|
-
}) :
|
|
11303
|
+
}) : w.push(L);
|
|
11304
11304
|
}), u({
|
|
11305
|
-
pendingSelectedColumns:
|
|
11305
|
+
pendingSelectedColumns: w,
|
|
11306
11306
|
pendingUnselectedColumns: R
|
|
11307
11307
|
});
|
|
11308
11308
|
}
|
|
11309
|
-
function x(
|
|
11310
|
-
if (!
|
|
11309
|
+
function x(_) {
|
|
11310
|
+
if (!_.destination)
|
|
11311
11311
|
return;
|
|
11312
|
-
const
|
|
11313
|
-
|
|
11312
|
+
const w = [...m.pendingSelectedColumns], [R] = w.splice(_.source.index, 1);
|
|
11313
|
+
w.splice(_.destination.index, 0, R), u({ pendingSelectedColumns: w });
|
|
11314
11314
|
}
|
|
11315
11315
|
function I() {
|
|
11316
|
-
const
|
|
11317
|
-
const R = { ...
|
|
11316
|
+
const _ = m.pendingSelectedColumns.map((w) => {
|
|
11317
|
+
const R = { ...w };
|
|
11318
11318
|
return R.columnId && delete R.columnId, R;
|
|
11319
11319
|
});
|
|
11320
11320
|
E(h), u({
|
|
11321
11321
|
isVisible: !1,
|
|
11322
11322
|
selectedColumns: [...m.pendingSelectedColumns],
|
|
11323
11323
|
unselectedColumns: [...m.pendingUnselectedColumns]
|
|
11324
|
-
}), a && a(
|
|
11324
|
+
}), a && a(_);
|
|
11325
11325
|
}
|
|
11326
11326
|
function k() {
|
|
11327
11327
|
u({ isVisible: !m.isVisible }), m.isVisible && u({
|
|
@@ -11330,9 +11330,9 @@ function Su(e) {
|
|
|
11330
11330
|
});
|
|
11331
11331
|
}
|
|
11332
11332
|
const B = s.useCallback(
|
|
11333
|
-
(
|
|
11334
|
-
const
|
|
11335
|
-
return o ? m.pendingUnselectedColumns.filter((R) =>
|
|
11333
|
+
(_) => {
|
|
11334
|
+
const w = new RegExp(_ != null ? _ : "", "i");
|
|
11335
|
+
return o ? m.pendingUnselectedColumns.filter((R) => w.test(R.name)).map((R) => R.name).slice(0, o) : m.pendingUnselectedColumns.map((R) => R.name);
|
|
11336
11336
|
},
|
|
11337
11337
|
[m.pendingUnselectedColumns, o]
|
|
11338
11338
|
);
|
|
@@ -11340,18 +11340,18 @@ function Su(e) {
|
|
|
11340
11340
|
l && u({
|
|
11341
11341
|
unselectedColumns: [
|
|
11342
11342
|
...t.map(
|
|
11343
|
-
(
|
|
11344
|
-
...
|
|
11345
|
-
label:
|
|
11343
|
+
(_) => ({
|
|
11344
|
+
..._,
|
|
11345
|
+
label: _.name,
|
|
11346
11346
|
columnId: gt()
|
|
11347
11347
|
})
|
|
11348
11348
|
)
|
|
11349
11349
|
],
|
|
11350
11350
|
pendingUnselectedColumns: [
|
|
11351
11351
|
...t.map(
|
|
11352
|
-
(
|
|
11353
|
-
...
|
|
11354
|
-
label:
|
|
11352
|
+
(_) => ({
|
|
11353
|
+
..._,
|
|
11354
|
+
label: _.name,
|
|
11355
11355
|
columnId: gt()
|
|
11356
11356
|
})
|
|
11357
11357
|
)
|
|
@@ -11361,16 +11361,16 @@ function Su(e) {
|
|
|
11361
11361
|
l && u({
|
|
11362
11362
|
selectedColumns: [
|
|
11363
11363
|
...n.map(
|
|
11364
|
-
(
|
|
11365
|
-
...
|
|
11364
|
+
(_) => ({
|
|
11365
|
+
..._,
|
|
11366
11366
|
columnId: gt()
|
|
11367
11367
|
})
|
|
11368
11368
|
)
|
|
11369
11369
|
],
|
|
11370
11370
|
pendingSelectedColumns: [
|
|
11371
11371
|
...n.map(
|
|
11372
|
-
(
|
|
11373
|
-
...
|
|
11372
|
+
(_) => ({
|
|
11373
|
+
..._,
|
|
11374
11374
|
columnId: gt()
|
|
11375
11375
|
})
|
|
11376
11376
|
)
|
|
@@ -11399,7 +11399,7 @@ function Su(e) {
|
|
|
11399
11399
|
disabled: Boolean(
|
|
11400
11400
|
r && m.pendingSelectedColumns.length >= r
|
|
11401
11401
|
),
|
|
11402
|
-
value:
|
|
11402
|
+
value: C.searchSelectedColumn ? C.searchSelectedColumn : "",
|
|
11403
11403
|
formMeta: v.fields.searchSelectedColumn,
|
|
11404
11404
|
onChange: T,
|
|
11405
11405
|
placeholder: "Find Columns to Add",
|
|
@@ -11408,18 +11408,18 @@ function Su(e) {
|
|
|
11408
11408
|
}
|
|
11409
11409
|
)),
|
|
11410
11410
|
/* @__PURE__ */ s.createElement("div", { className: "sps-column-chooser__selected-title" }, "Selected"),
|
|
11411
|
-
/* @__PURE__ */ s.createElement(SC, { onDragEnd: x }, /* @__PURE__ */ s.createElement(pu, { droppableId: "column-chooser" }, (
|
|
11411
|
+
/* @__PURE__ */ s.createElement(SC, { onDragEnd: x }, /* @__PURE__ */ s.createElement(pu, { droppableId: "column-chooser" }, (_) => /* @__PURE__ */ s.createElement("div", { ..._.droppableProps, ref: _.innerRef }, m.pendingSelectedColumns.map((w, R) => /* @__PURE__ */ s.createElement(
|
|
11412
11412
|
Ci,
|
|
11413
11413
|
{
|
|
11414
11414
|
index: R,
|
|
11415
|
-
key:
|
|
11416
|
-
columnId:
|
|
11417
|
-
name:
|
|
11418
|
-
value:
|
|
11415
|
+
key: w.columnId,
|
|
11416
|
+
columnId: w.columnId,
|
|
11417
|
+
name: w.name,
|
|
11418
|
+
value: w.value,
|
|
11419
11419
|
onDelete: N,
|
|
11420
|
-
mandatory:
|
|
11420
|
+
mandatory: w.mandatory
|
|
11421
11421
|
}
|
|
11422
|
-
)),
|
|
11422
|
+
)), _.placeholder)))
|
|
11423
11423
|
));
|
|
11424
11424
|
}
|
|
11425
11425
|
Object.assign(Su, {
|
|
@@ -11570,13 +11570,13 @@ function gu(e) {
|
|
|
11570
11570
|
selectable: h = !1,
|
|
11571
11571
|
selected: g,
|
|
11572
11572
|
"data-testid": v,
|
|
11573
|
-
unsafelyReplaceClassName:
|
|
11573
|
+
unsafelyReplaceClassName: C,
|
|
11574
11574
|
...E
|
|
11575
11575
|
} = e, { t: T } = s.useContext(We), [N, x] = s.useState(m), I = typeof a == "boolean" ? a : N;
|
|
11576
11576
|
function k(V) {
|
|
11577
11577
|
V.stopPropagation(), I && (!o || o()) ? (x(!1), p && p()) : !I && (!l || l()) && (x(!0), f && f());
|
|
11578
11578
|
}
|
|
11579
|
-
const B = () => /* @__PURE__ */ s.createElement(xr, { checked: g, onChange: c }),
|
|
11579
|
+
const B = () => /* @__PURE__ */ s.createElement(xr, { checked: g, onChange: c }), _ = () => /* @__PURE__ */ s.createElement(
|
|
11580
11580
|
"button",
|
|
11581
11581
|
{
|
|
11582
11582
|
type: "button",
|
|
@@ -11585,8 +11585,8 @@ function gu(e) {
|
|
|
11585
11585
|
"aria-label": T(`design-system:contentRow.${I ? "collapse" : "expand"}`)
|
|
11586
11586
|
},
|
|
11587
11587
|
/* @__PURE__ */ s.createElement(qt, { icon: I ? tt.MINUS_CIRCLE : tt.PLUS_CIRCLE })
|
|
11588
|
-
),
|
|
11589
|
-
|
|
11588
|
+
), w = K(
|
|
11589
|
+
C || "sps-content-row",
|
|
11590
11590
|
I && "sps-content-row--expanded",
|
|
11591
11591
|
u && "sps-content-row--card-spaced",
|
|
11592
11592
|
g && "sps-content-row--selected",
|
|
@@ -11596,7 +11596,7 @@ function gu(e) {
|
|
|
11596
11596
|
{ type: Sr },
|
|
11597
11597
|
{ type: Di }
|
|
11598
11598
|
]);
|
|
11599
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
11599
|
+
return /* @__PURE__ */ s.createElement("div", { className: w, "data-testid": v, ...E }, /* @__PURE__ */ s.createElement("div", { className: "sps-content-row__col-group", "data-testid": `${v}__children` }, h && !t && /* @__PURE__ */ s.createElement(Sr, { widthPx: 46 }, /* @__PURE__ */ s.createElement(B, null)), L && !t && /* @__PURE__ */ s.createElement(Sr, { widthPx: 44 }, /* @__PURE__ */ s.createElement(_, null)), L && h && t && /* @__PURE__ */ s.createElement(Sr, { widthPx: 46 }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(B, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(_, null))), R), L);
|
|
11600
11600
|
}
|
|
11601
11601
|
Object.assign(gu, {
|
|
11602
11602
|
props: CD,
|
|
@@ -12169,13 +12169,13 @@ function ba(e) {
|
|
|
12169
12169
|
showTwoMonths: m = !1,
|
|
12170
12170
|
"data-testid": u,
|
|
12171
12171
|
...h
|
|
12172
|
-
} = e, { t: g } = s.useContext(We), [v,
|
|
12172
|
+
} = e, { t: g } = s.useContext(We), [v, C] = s.useState(() => Yr(e)), [E, T] = s.useState(
|
|
12173
12173
|
X.nextMonth({ ...v, date: 15 })
|
|
12174
12174
|
), N = s.useMemo(() => X.create(), []);
|
|
12175
12175
|
s.useEffect(() => {
|
|
12176
12176
|
if (p && p[0] && p[1] && p[0].month !== v.month && p[0].month !== E.month && p[1].month !== v.month && p[1].month !== E.month) {
|
|
12177
12177
|
const G = Yr(e);
|
|
12178
|
-
|
|
12178
|
+
C(G), T(
|
|
12179
12179
|
X.nextMonth({
|
|
12180
12180
|
month: G.month,
|
|
12181
12181
|
date: 15,
|
|
@@ -12184,7 +12184,7 @@ function ba(e) {
|
|
|
12184
12184
|
);
|
|
12185
12185
|
} else if (p && p[0] && !p[1] && p[0].month !== v.month && p[0].month !== E.month) {
|
|
12186
12186
|
const G = Yr(e);
|
|
12187
|
-
|
|
12187
|
+
C(G), T(
|
|
12188
12188
|
X.nextMonth({
|
|
12189
12189
|
month: G.month,
|
|
12190
12190
|
date: 15,
|
|
@@ -12193,7 +12193,7 @@ function ba(e) {
|
|
|
12193
12193
|
);
|
|
12194
12194
|
} else if (p && !p[0] && p[1] && p[1].month !== v.month && p[1].month !== E.month) {
|
|
12195
12195
|
const G = Yr(e);
|
|
12196
|
-
|
|
12196
|
+
C(G), T(
|
|
12197
12197
|
X.nextMonth({
|
|
12198
12198
|
month: G.month,
|
|
12199
12199
|
date: 15,
|
|
@@ -12201,28 +12201,28 @@ function ba(e) {
|
|
|
12201
12201
|
})
|
|
12202
12202
|
);
|
|
12203
12203
|
} else
|
|
12204
|
-
|
|
12204
|
+
C(Yr(e));
|
|
12205
12205
|
}, [
|
|
12206
12206
|
c,
|
|
12207
12207
|
p,
|
|
12208
12208
|
a,
|
|
12209
12209
|
r
|
|
12210
12210
|
]);
|
|
12211
|
-
const x = qc(v), I = zc(v), k = qc(E), B = zc(E), [
|
|
12211
|
+
const x = qc(v), I = zc(v), k = qc(E), B = zc(E), [_, w] = s.useState();
|
|
12212
12212
|
function R() {
|
|
12213
|
-
|
|
12213
|
+
C(X.prevMonth({ ...v, date: 15 })), m && T(X.prevMonth({ ...E, date: 15 }));
|
|
12214
12214
|
}
|
|
12215
12215
|
function L() {
|
|
12216
|
-
|
|
12216
|
+
C(X.nextMonth({ ...v, date: 15 })), m && T(X.nextMonth({ ...E, date: 15 }));
|
|
12217
12217
|
}
|
|
12218
12218
|
function V(G) {
|
|
12219
|
-
G.target && G.target.classList.contains(`${St}-day`) ? m && G.target.classList.contains(`${E.month}`) ?
|
|
12219
|
+
G.target && G.target.classList.contains(`${St}-day`) ? m && G.target.classList.contains(`${E.month}`) ? w({
|
|
12220
12220
|
...E,
|
|
12221
12221
|
date: Number(G.target.textContent)
|
|
12222
|
-
}) :
|
|
12222
|
+
}) : w({
|
|
12223
12223
|
...v,
|
|
12224
12224
|
date: Number(G.target.textContent)
|
|
12225
|
-
}) : (!G.target || !G.target.classList.contains(`${St}-row`)) &&
|
|
12225
|
+
}) : (!G.target || !G.target.classList.contains(`${St}-row`)) && w(void 0);
|
|
12226
12226
|
}
|
|
12227
12227
|
function H(G) {
|
|
12228
12228
|
const q = `${St}-day`;
|
|
@@ -12237,9 +12237,9 @@ function ba(e) {
|
|
|
12237
12237
|
X.isInRange(G, p, !1) && `${q}--selection-middle`,
|
|
12238
12238
|
p && X.isSameDate(G, p[1]) && !X.isSameDate(G, p[0]) && `${q}--selection-end`,
|
|
12239
12239
|
p && p[0] && !p[1] && (!o && !a || X.isInRange(
|
|
12240
|
-
|
|
12240
|
+
_,
|
|
12241
12241
|
[o, a]
|
|
12242
|
-
)) && X.isInRange(G, [p[0],
|
|
12242
|
+
)) && X.isInRange(G, [p[0], _], !1) && `${q}--pending-selection`,
|
|
12243
12243
|
f && f === "After" && p && p[0] && p[1] === null && (!o && !a || X.isInRange(
|
|
12244
12244
|
G,
|
|
12245
12245
|
[p[0], a]
|
|
@@ -12254,7 +12254,7 @@ function ba(e) {
|
|
|
12254
12254
|
)) && X.isInRange(G, [{ month: 1, date: 1, year: 1900 }, p[1]]) && `${q}--selected`
|
|
12255
12255
|
);
|
|
12256
12256
|
}
|
|
12257
|
-
function
|
|
12257
|
+
function M(G) {
|
|
12258
12258
|
G && v && G.month === v.month && X.isInRange(G, [o, a]) !== !1 && l(G), G && m && E && G.month === E.month && X.isInRange(G, [o, a]) !== !1 && l(G);
|
|
12259
12259
|
}
|
|
12260
12260
|
const $ = K(
|
|
@@ -12290,7 +12290,7 @@ function ba(e) {
|
|
|
12290
12290
|
{
|
|
12291
12291
|
key: ne,
|
|
12292
12292
|
className: H(A),
|
|
12293
|
-
onClick: () =>
|
|
12293
|
+
onClick: () => M(A),
|
|
12294
12294
|
"data-testid": `${u}_${X.toString(A)}`
|
|
12295
12295
|
},
|
|
12296
12296
|
A ? A.date : ""
|
|
@@ -12311,7 +12311,7 @@ function ba(e) {
|
|
|
12311
12311
|
{
|
|
12312
12312
|
key: ne,
|
|
12313
12313
|
className: K(H(A), `${E.month.toString()}`),
|
|
12314
|
-
onClick: () =>
|
|
12314
|
+
onClick: () => M(A),
|
|
12315
12315
|
"data-testid": `${u}_${X.toString(A)}`
|
|
12316
12316
|
},
|
|
12317
12317
|
A ? A.date : ""
|
|
@@ -12366,7 +12366,7 @@ function bu({
|
|
|
12366
12366
|
"data-testid": f,
|
|
12367
12367
|
...m
|
|
12368
12368
|
}) {
|
|
12369
|
-
const { wrapperId: u, controlId: h } = Et(a, r), g = s.useRef(null), v = s.useRef(null),
|
|
12369
|
+
const { wrapperId: u, controlId: h } = Et(a, r), g = s.useRef(null), v = s.useRef(null), C = s.useRef(null), [E, T] = s.useState(
|
|
12370
12370
|
X.toString(p)
|
|
12371
12371
|
), {
|
|
12372
12372
|
showPopup: N,
|
|
@@ -12377,14 +12377,14 @@ function bu({
|
|
|
12377
12377
|
r && (r.setValue(H), r.markAsDirty()), c && c(H);
|
|
12378
12378
|
}
|
|
12379
12379
|
function B(H) {
|
|
12380
|
-
k(H), T(X.toString(H)),
|
|
12380
|
+
k(H), T(X.toString(H)), C && C.current && C.current.focus();
|
|
12381
12381
|
}
|
|
12382
|
-
function
|
|
12382
|
+
function _(H) {
|
|
12383
12383
|
T(H.target.value);
|
|
12384
|
-
const
|
|
12385
|
-
k(
|
|
12384
|
+
const M = X.createFrom(H.target.value);
|
|
12385
|
+
k(M);
|
|
12386
12386
|
}
|
|
12387
|
-
function
|
|
12387
|
+
function w() {
|
|
12388
12388
|
I(), T(""), k();
|
|
12389
12389
|
}
|
|
12390
12390
|
function R(H) {
|
|
@@ -12393,7 +12393,7 @@ function bu({
|
|
|
12393
12393
|
I();
|
|
12394
12394
|
break;
|
|
12395
12395
|
case "Backspace":
|
|
12396
|
-
H.target.selectionStart === 0 && p && !Array.isArray(p) &&
|
|
12396
|
+
H.target.selectionStart === 0 && p && !Array.isArray(p) && w();
|
|
12397
12397
|
break;
|
|
12398
12398
|
}
|
|
12399
12399
|
}
|
|
@@ -12404,14 +12404,14 @@ function bu({
|
|
|
12404
12404
|
t
|
|
12405
12405
|
), V = s.useRef(!1);
|
|
12406
12406
|
return s.useEffect(() => {
|
|
12407
|
-
V.current ? p ? X.isValid(p) && T(X.toString(p)) :
|
|
12407
|
+
V.current ? p ? X.isValid(p) && T(X.toString(p)) : w() : V.current = !0;
|
|
12408
12408
|
}, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
12409
12409
|
ut,
|
|
12410
12410
|
{
|
|
12411
12411
|
id: u,
|
|
12412
12412
|
className: L,
|
|
12413
12413
|
formMeta: r,
|
|
12414
|
-
inputRef:
|
|
12414
|
+
inputRef: C,
|
|
12415
12415
|
focusInputOnClick: !0,
|
|
12416
12416
|
ref: g
|
|
12417
12417
|
},
|
|
@@ -12419,11 +12419,11 @@ function bu({
|
|
|
12419
12419
|
"input",
|
|
12420
12420
|
{
|
|
12421
12421
|
type: "text",
|
|
12422
|
-
ref:
|
|
12422
|
+
ref: C,
|
|
12423
12423
|
className: "sps-text-input__input",
|
|
12424
12424
|
id: h,
|
|
12425
12425
|
placeholder: yr,
|
|
12426
|
-
onChange:
|
|
12426
|
+
onChange: _,
|
|
12427
12427
|
onClick: x,
|
|
12428
12428
|
onFocus: x,
|
|
12429
12429
|
onKeyDown: R,
|
|
@@ -12436,7 +12436,7 @@ function bu({
|
|
|
12436
12436
|
"i",
|
|
12437
12437
|
{
|
|
12438
12438
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
12439
|
-
onClick:
|
|
12439
|
+
onClick: w
|
|
12440
12440
|
}
|
|
12441
12441
|
))
|
|
12442
12442
|
), /* @__PURE__ */ s.createElement(va, { isOpen: N, attachTo: g, ref: v }, /* @__PURE__ */ s.createElement(
|
|
@@ -12651,63 +12651,63 @@ function vu({
|
|
|
12651
12651
|
"data-testid": g,
|
|
12652
12652
|
...v
|
|
12653
12653
|
}) {
|
|
12654
|
-
const { t:
|
|
12654
|
+
const { t: C } = s.useContext(We), { wrapperId: E, controlId: T } = Et(a, r), N = s.useRef(null), x = s.useRef(null), I = s.useRef(null), [k, B] = s.useState(
|
|
12655
12655
|
Array.isArray(u) ? X.toStringRange(u) : ""
|
|
12656
|
-
), [
|
|
12656
|
+
), [_, w] = s.useState(
|
|
12657
12657
|
td(p, f) || null
|
|
12658
12658
|
), [R, L] = s.useState(), {
|
|
12659
12659
|
showPopup: V,
|
|
12660
12660
|
doShowPopup: H,
|
|
12661
|
-
doHidePopup:
|
|
12661
|
+
doHidePopup: M
|
|
12662
12662
|
} = cs(N, I);
|
|
12663
12663
|
function $(U, j) {
|
|
12664
12664
|
r && (r.setValue(U), r.markAsDirty()), c && c(U, j);
|
|
12665
12665
|
}
|
|
12666
12666
|
s.useEffect(() => {
|
|
12667
|
-
|
|
12667
|
+
w(td(p, f) || null);
|
|
12668
12668
|
}, [f]);
|
|
12669
12669
|
function G(U) {
|
|
12670
12670
|
var j;
|
|
12671
|
-
return U && /^design-system:/.test(U.label) ?
|
|
12671
|
+
return U && /^design-system:/.test(U.label) ? C(U.label) : (j = U == null ? void 0 : U.label) != null ? j : "";
|
|
12672
12672
|
}
|
|
12673
12673
|
function q(U) {
|
|
12674
12674
|
const j = u || [];
|
|
12675
|
-
let W, Q =
|
|
12675
|
+
let W, Q = _;
|
|
12676
12676
|
const ee = Q ? G(Q) : "";
|
|
12677
|
-
ee === "Before" ? W = [null, U] : ee === "After" ? W = [U, null] : !j[0] || j[1] || X.isBefore(U, j[0]) ? W = [U, null] : W = [j[0], U], (W[0] && W[1] || ee === "Before" || ee === "After") && (
|
|
12677
|
+
ee === "Before" ? W = [null, U] : ee === "After" ? W = [U, null] : !j[0] || j[1] || X.isBefore(U, j[0]) ? W = [U, null] : W = [j[0], U], (W[0] && W[1] || ee === "Before" || ee === "After") && (M(!0), x && x.current && x.current.focus()), Q && ee !== "Before" && ee !== "After" && (w(null), Q = null), $(W, Q == null ? void 0 : Q.definition), B(X.toStringRange(W)), L(void 0);
|
|
12678
12678
|
}
|
|
12679
12679
|
function A(U) {
|
|
12680
12680
|
B(U.target.value);
|
|
12681
|
-
let j = X.createRangeFrom(U.target.value), W =
|
|
12681
|
+
let j = X.createRangeFrom(U.target.value), W = _;
|
|
12682
12682
|
const Q = W ? G(W) : "";
|
|
12683
|
-
Array.isArray(j) && (j[0] && j[1] && (Q === "Before" || Q === "After") ? (
|
|
12683
|
+
Array.isArray(j) && (j[0] && j[1] && (Q === "Before" || Q === "After") ? (w(null), W = null) : Q === "Before" && j[0] !== null ? j = [null, j[0]] : Q === "After" && j[0] !== null && (j = [j[0], null])), $(j, W == null ? void 0 : W.definition), L(void 0);
|
|
12684
12684
|
}
|
|
12685
12685
|
function ne() {
|
|
12686
|
-
B(""), $(), L(void 0),
|
|
12686
|
+
B(""), $(), L(void 0), w(null);
|
|
12687
12687
|
}
|
|
12688
12688
|
function oe(U) {
|
|
12689
12689
|
switch (U.key) {
|
|
12690
12690
|
case "Tab":
|
|
12691
|
-
|
|
12691
|
+
M();
|
|
12692
12692
|
break;
|
|
12693
12693
|
case "Backspace":
|
|
12694
|
-
U.target.selectionStart === 0 && u &&
|
|
12694
|
+
U.target.selectionStart === 0 && u && _ && ne();
|
|
12695
12695
|
break;
|
|
12696
12696
|
}
|
|
12697
12697
|
}
|
|
12698
12698
|
function O(U) {
|
|
12699
12699
|
if (m && (U == null ? void 0 : U.definition) !== f && m(typeof (U == null ? void 0 : U.definition) == "string" ? U == null ? void 0 : U.definition : ""), !U) {
|
|
12700
|
-
|
|
12700
|
+
w(null), $();
|
|
12701
12701
|
return;
|
|
12702
12702
|
}
|
|
12703
|
-
|
|
12703
|
+
w(U);
|
|
12704
12704
|
let j = X.createRangeFromPreset(U);
|
|
12705
12705
|
const W = U && G(U);
|
|
12706
12706
|
(W === "Before" || W === "After") && u && u[0] && u[1] ? j = X.createRangeFrom("-") : W === "Before" ? j = X.createRangeFrom(`-${X.toString(u && (u[0] || u[1]))}`) : W === "After" && (j = X.createRangeFrom(`${X.toString(u && (u[0] || u[1]))}-`)), JSON.stringify(u) !== JSON.stringify(j) && $(j, U == null ? void 0 : U.definition);
|
|
12707
12707
|
}
|
|
12708
12708
|
s.useEffect(() => {
|
|
12709
12709
|
if (!u) {
|
|
12710
|
-
|
|
12710
|
+
w(null);
|
|
12711
12711
|
return;
|
|
12712
12712
|
}
|
|
12713
12713
|
if (!_D(p, ed) && Array.isArray(u)) {
|
|
@@ -12716,12 +12716,12 @@ function vu({
|
|
|
12716
12716
|
X.createRangeFromPreset(W)
|
|
12717
12717
|
)
|
|
12718
12718
|
);
|
|
12719
|
-
j ? O(j) : u[0] && u[1] &&
|
|
12719
|
+
j ? O(j) : u[0] && u[1] && w(null);
|
|
12720
12720
|
}
|
|
12721
12721
|
}, [u]), s.useEffect(() => {
|
|
12722
|
-
const U = ["Before", "After"].includes(G(
|
|
12723
|
-
!u ||
|
|
12724
|
-
}, [u,
|
|
12722
|
+
const U = ["Before", "After"].includes(G(_));
|
|
12723
|
+
!u || _ && !U ? B("") : Array.isArray(u) && ((!u[0] || !u[0].hasOwnProperty(Jr)) && (!u[1] || !u[1].hasOwnProperty(Jr)) && B(X.toStringRange(u)), _ || L(void 0));
|
|
12724
|
+
}, [u, _]);
|
|
12725
12725
|
const Y = K(
|
|
12726
12726
|
Qc,
|
|
12727
12727
|
"sps-text-input",
|
|
@@ -12729,7 +12729,7 @@ function vu({
|
|
|
12729
12729
|
t
|
|
12730
12730
|
);
|
|
12731
12731
|
let Z = k;
|
|
12732
|
-
return
|
|
12732
|
+
return _ && G(_) === "Before" && k.startsWith("-") ? Z = k.substring(1) : _ && G(_) === "After" && k.endsWith("-") && (Z = k.substring(0, k.length - 1)), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
12733
12733
|
ut,
|
|
12734
12734
|
{
|
|
12735
12735
|
id: E,
|
|
@@ -12739,7 +12739,7 @@ function vu({
|
|
|
12739
12739
|
focusInputOnClick: !0,
|
|
12740
12740
|
ref: N
|
|
12741
12741
|
},
|
|
12742
|
-
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", n && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }),
|
|
12742
|
+
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", n && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }), _ && /* @__PURE__ */ s.createElement("div", { "data-testid": `${g}_selected_preset`, className: "sps-datepicker__selected-preset" }, /* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, G(_))), /* @__PURE__ */ s.createElement(
|
|
12743
12743
|
"input",
|
|
12744
12744
|
{
|
|
12745
12745
|
type: "text",
|
|
@@ -12747,7 +12747,7 @@ function vu({
|
|
|
12747
12747
|
className: "sps-text-input__input",
|
|
12748
12748
|
"data-testid": `${g}_date_input`,
|
|
12749
12749
|
id: T,
|
|
12750
|
-
placeholder: !k && !
|
|
12750
|
+
placeholder: !k && !_ ? yr : void 0,
|
|
12751
12751
|
onChange: A,
|
|
12752
12752
|
onClick: H,
|
|
12753
12753
|
onFocus: H,
|
|
@@ -12763,14 +12763,14 @@ function vu({
|
|
|
12763
12763
|
onClick: ne
|
|
12764
12764
|
}
|
|
12765
12765
|
))
|
|
12766
|
-
), /* @__PURE__ */ s.createElement(va, { isOpen: V, attachTo: N, ref: I }, /* @__PURE__ */ s.createElement("div", { className: "sps-datepicker__presets" }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", { className: "sps-datepicker__presets-label" },
|
|
12766
|
+
), /* @__PURE__ */ s.createElement(va, { isOpen: V, attachTo: N, ref: I }, /* @__PURE__ */ s.createElement("div", { className: "sps-datepicker__presets" }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", { className: "sps-datepicker__presets-label" }, C("design-system:datepicker.presetsLabel")), /* @__PURE__ */ s.createElement("div", { className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
12767
12767
|
"input",
|
|
12768
12768
|
{
|
|
12769
12769
|
"data-testid": `${g}_presets_custom_input`,
|
|
12770
12770
|
type: "radio",
|
|
12771
12771
|
id: `sps-date-range-picker-${E}__range-custom`,
|
|
12772
12772
|
className: "sps-custom-control__input",
|
|
12773
|
-
checked: !
|
|
12773
|
+
checked: !_,
|
|
12774
12774
|
name: `sps-date-range-picker-${E}__range`,
|
|
12775
12775
|
onChange: () => O()
|
|
12776
12776
|
}
|
|
@@ -12780,7 +12780,7 @@ function vu({
|
|
|
12780
12780
|
className: "sps-custom-control__label",
|
|
12781
12781
|
htmlFor: `sps-date-range-picker-${E}__range-custom`
|
|
12782
12782
|
},
|
|
12783
|
-
|
|
12783
|
+
C("design-system:datepicker.preset.custom")
|
|
12784
12784
|
)), p.map((U, j) => /* @__PURE__ */ s.createElement("div", { key: G(U), className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
12785
12785
|
"input",
|
|
12786
12786
|
{
|
|
@@ -12789,7 +12789,7 @@ function vu({
|
|
|
12789
12789
|
id: `sps-date-range-picker-${E}__range-${j}`,
|
|
12790
12790
|
name: `sps-date-range-picker-${E}__range`,
|
|
12791
12791
|
onChange: () => O(U),
|
|
12792
|
-
checked:
|
|
12792
|
+
checked: _ != null && _.definition ? _.definition === U.definition : !1,
|
|
12793
12793
|
className: "sps-custom-control__input"
|
|
12794
12794
|
}
|
|
12795
12795
|
), /* @__PURE__ */ s.createElement(
|
|
@@ -12808,7 +12808,7 @@ function vu({
|
|
|
12808
12808
|
minDate: l,
|
|
12809
12809
|
maxDate: o,
|
|
12810
12810
|
showTwoMonths: h,
|
|
12811
|
-
selectedPreset:
|
|
12811
|
+
selectedPreset: _ && G(_),
|
|
12812
12812
|
isOpen: V
|
|
12813
12813
|
}
|
|
12814
12814
|
)));
|
|
@@ -13031,7 +13031,7 @@ const OD = {
|
|
|
13031
13031
|
options: h,
|
|
13032
13032
|
onChange: g,
|
|
13033
13033
|
onClick: v,
|
|
13034
|
-
onOpen:
|
|
13034
|
+
onOpen: C,
|
|
13035
13035
|
placeholder: E,
|
|
13036
13036
|
searchDebounce: T,
|
|
13037
13037
|
searchPlaceholder: N = "Search\u2026",
|
|
@@ -13039,19 +13039,19 @@ const OD = {
|
|
|
13039
13039
|
textKey: I,
|
|
13040
13040
|
valueKey: k,
|
|
13041
13041
|
unsafelyReplaceClassName: B,
|
|
13042
|
-
value:
|
|
13043
|
-
zeroState:
|
|
13042
|
+
value: _,
|
|
13043
|
+
zeroState: w,
|
|
13044
13044
|
loading: R,
|
|
13045
13045
|
filterByTextAndCaptionKey: L,
|
|
13046
13046
|
maxHeightOptionListPx: V,
|
|
13047
13047
|
maxHeightOptionListRem: H,
|
|
13048
|
-
"data-testid":
|
|
13048
|
+
"data-testid": M,
|
|
13049
13049
|
disableOptionsMemoization: $,
|
|
13050
13050
|
disableDefaultOptionsFiltering: G,
|
|
13051
13051
|
...q
|
|
13052
13052
|
} = e, A = f || p, { wrapperId: ne, controlId: oe } = Et(m, A), O = s.useRef(null), Y = s.useRef(null), Z = s.useRef(null), { t: U } = s.useContext(We), [j, W] = un({
|
|
13053
13053
|
isOpen: !1,
|
|
13054
|
-
value:
|
|
13054
|
+
value: _,
|
|
13055
13055
|
text: "",
|
|
13056
13056
|
keyDown: null,
|
|
13057
13057
|
opensUpward: !1,
|
|
@@ -13071,8 +13071,8 @@ const OD = {
|
|
|
13071
13071
|
);
|
|
13072
13072
|
}
|
|
13073
13073
|
s.useEffect(() => {
|
|
13074
|
-
Q(
|
|
13075
|
-
}, [
|
|
13074
|
+
Q(_);
|
|
13075
|
+
}, [_, I]);
|
|
13076
13076
|
function le() {
|
|
13077
13077
|
ee(void 0);
|
|
13078
13078
|
}
|
|
@@ -13117,7 +13117,7 @@ const OD = {
|
|
|
13117
13117
|
}), jd(() => {
|
|
13118
13118
|
var Ee;
|
|
13119
13119
|
if (j.isOpen) {
|
|
13120
|
-
|
|
13120
|
+
C == null || C();
|
|
13121
13121
|
const Ke = document.createEvent("CustomEvent");
|
|
13122
13122
|
Ke.initCustomEvent("DropdownOpened", !1, !1, ne), document.dispatchEvent(Ke);
|
|
13123
13123
|
} else
|
|
@@ -13146,7 +13146,7 @@ const OD = {
|
|
|
13146
13146
|
ref: Y,
|
|
13147
13147
|
role: "listbox",
|
|
13148
13148
|
"aria-owns": j.optionIds,
|
|
13149
|
-
"data-testid":
|
|
13149
|
+
"data-testid": M,
|
|
13150
13150
|
onClick: v,
|
|
13151
13151
|
...q
|
|
13152
13152
|
},
|
|
@@ -13159,7 +13159,7 @@ const OD = {
|
|
|
13159
13159
|
onClick: me,
|
|
13160
13160
|
ref: Z,
|
|
13161
13161
|
title: nt,
|
|
13162
|
-
"data-testid": `${
|
|
13162
|
+
"data-testid": `${M}-dropctrl`
|
|
13163
13163
|
},
|
|
13164
13164
|
/* @__PURE__ */ s.createElement("div", { className: "sps-select__dropctrl-content" }, /* @__PURE__ */ s.createElement(
|
|
13165
13165
|
"span",
|
|
@@ -13168,7 +13168,7 @@ const OD = {
|
|
|
13168
13168
|
"sps-select__value",
|
|
13169
13169
|
!j.text && "sps-select__value--placeholder"
|
|
13170
13170
|
),
|
|
13171
|
-
"data-testid": `${
|
|
13171
|
+
"data-testid": `${M}-value`
|
|
13172
13172
|
},
|
|
13173
13173
|
nt
|
|
13174
13174
|
), j.value && !u && !c && /* @__PURE__ */ s.createElement(
|
|
@@ -13176,7 +13176,7 @@ const OD = {
|
|
|
13176
13176
|
{
|
|
13177
13177
|
className: "sps-icon sps-icon-x-circle sps-select__clear-btn",
|
|
13178
13178
|
onClick: le,
|
|
13179
|
-
"data-testid": `${
|
|
13179
|
+
"data-testid": `${M}-clear-value`
|
|
13180
13180
|
}
|
|
13181
13181
|
), /* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-chevron-down" }))
|
|
13182
13182
|
),
|
|
@@ -13204,14 +13204,14 @@ const OD = {
|
|
|
13204
13204
|
optionRole: "option",
|
|
13205
13205
|
valueKey: k,
|
|
13206
13206
|
onOptionListChanged: lt,
|
|
13207
|
-
zeroState:
|
|
13207
|
+
zeroState: w,
|
|
13208
13208
|
ignoreWidthStyles: r,
|
|
13209
13209
|
loading: R,
|
|
13210
13210
|
maxHeightPx: V,
|
|
13211
13211
|
maxHeightRem: H,
|
|
13212
13212
|
disableOptionsMemoization: $,
|
|
13213
13213
|
disableDefaultOptionsFiltering: G,
|
|
13214
|
-
"data-testid": `${
|
|
13214
|
+
"data-testid": `${M}-option-list`
|
|
13215
13215
|
}
|
|
13216
13216
|
)
|
|
13217
13217
|
);
|
|
@@ -13595,7 +13595,7 @@ const RD = {
|
|
|
13595
13595
|
value: h = "",
|
|
13596
13596
|
additionalText: g,
|
|
13597
13597
|
notClearable: v,
|
|
13598
|
-
...
|
|
13598
|
+
...C
|
|
13599
13599
|
}, E) => {
|
|
13600
13600
|
const T = r || n, { wrapperId: N, controlId: x } = Et(o, T), I = s.useRef(null);
|
|
13601
13601
|
function k(R, L) {
|
|
@@ -13604,10 +13604,10 @@ const RD = {
|
|
|
13604
13604
|
function B() {
|
|
13605
13605
|
I.current && (I.current.value = "", k(""));
|
|
13606
13606
|
}
|
|
13607
|
-
function
|
|
13607
|
+
function _(R) {
|
|
13608
13608
|
k(R.target.value, R);
|
|
13609
13609
|
}
|
|
13610
|
-
const
|
|
13610
|
+
const w = K(
|
|
13611
13611
|
u || "sps-text-input",
|
|
13612
13612
|
e
|
|
13613
13613
|
);
|
|
@@ -13615,7 +13615,7 @@ const RD = {
|
|
|
13615
13615
|
ut,
|
|
13616
13616
|
{
|
|
13617
13617
|
id: N,
|
|
13618
|
-
className:
|
|
13618
|
+
className: w,
|
|
13619
13619
|
formControl: n,
|
|
13620
13620
|
formMeta: r,
|
|
13621
13621
|
inputRef: I,
|
|
@@ -13633,11 +13633,11 @@ const RD = {
|
|
|
13633
13633
|
id: x,
|
|
13634
13634
|
name: l,
|
|
13635
13635
|
placeholder: p,
|
|
13636
|
-
onChange:
|
|
13636
|
+
onChange: _,
|
|
13637
13637
|
title: m,
|
|
13638
13638
|
value: h,
|
|
13639
13639
|
disabled: t,
|
|
13640
|
-
...
|
|
13640
|
+
...C
|
|
13641
13641
|
}
|
|
13642
13642
|
), !v && h && !t && /* @__PURE__ */ s.createElement(
|
|
13643
13643
|
"i",
|
|
@@ -13847,23 +13847,23 @@ function yu({
|
|
|
13847
13847
|
const { t: h } = s.useContext(We), { wrapperId: g, controlId: v } = Et(
|
|
13848
13848
|
r && `${r}_from`,
|
|
13849
13849
|
n
|
|
13850
|
-
), { wrapperId:
|
|
13850
|
+
), { wrapperId: C, controlId: E } = Et(
|
|
13851
13851
|
r && `${r}_to`,
|
|
13852
13852
|
n
|
|
13853
13853
|
), T = s.useRef(null), N = s.useRef(null), x = s.useRef(null), I = s.useRef(null), k = s.useRef(null), B = X.splitMomentInDateTimeParts(
|
|
13854
13854
|
Array.isArray(p) ? p[0] : void 0,
|
|
13855
13855
|
m
|
|
13856
|
-
),
|
|
13856
|
+
), _ = X.splitMomentInDateTimeParts(
|
|
13857
13857
|
Array.isArray(p) ? p[1] : void 0,
|
|
13858
13858
|
m
|
|
13859
|
-
), [
|
|
13859
|
+
), [w, R] = s.useState(
|
|
13860
13860
|
B[0]
|
|
13861
|
-
), [L, V] = s.useState(
|
|
13861
|
+
), [L, V] = s.useState(_[0]), [H, M] = s.useState(
|
|
13862
13862
|
B[1]
|
|
13863
|
-
), [$, G] = s.useState(
|
|
13863
|
+
), [$, G] = s.useState(_[1]), [q, A] = s.useState(
|
|
13864
13864
|
B[2]
|
|
13865
13865
|
), [ne, oe] = s.useState(
|
|
13866
|
-
|
|
13866
|
+
_[2]
|
|
13867
13867
|
), [O, Y] = s.useState(null), { showPopup: Z, doShowPopup: U, doHidePopup: j } = cs(T, k);
|
|
13868
13868
|
function W(pe) {
|
|
13869
13869
|
n && (n.setValue(pe), n.markAsDirty()), l && l(pe);
|
|
@@ -13902,12 +13902,12 @@ function yu({
|
|
|
13902
13902
|
R(pe.target.value);
|
|
13903
13903
|
}
|
|
13904
13904
|
function se(pe) {
|
|
13905
|
-
X.validateTimeString(pe.target.value, m) &&
|
|
13905
|
+
X.validateTimeString(pe.target.value, m) && M(pe.target.value);
|
|
13906
13906
|
}
|
|
13907
13907
|
function te() {
|
|
13908
|
-
if (
|
|
13908
|
+
if (w === B[0] && H === B[1] && q === B[2])
|
|
13909
13909
|
return;
|
|
13910
|
-
const pe = X.createFrom(
|
|
13910
|
+
const pe = X.createFrom(w);
|
|
13911
13911
|
if (pe && X.isValid(pe)) {
|
|
13912
13912
|
const ue = X.toMoment(pe);
|
|
13913
13913
|
let ve = parseInt((H == null ? void 0 : H.split(":")[0]) || "0", 10);
|
|
@@ -13925,7 +13925,7 @@ function yu({
|
|
|
13925
13925
|
}
|
|
13926
13926
|
}
|
|
13927
13927
|
function De() {
|
|
13928
|
-
X.validateTimeString(H, m) && (
|
|
13928
|
+
X.validateTimeString(H, m) && (M(X.padIncompleteTimeString(H, m)), setTimeout(te, 0));
|
|
13929
13929
|
}
|
|
13930
13930
|
function Oe(pe) {
|
|
13931
13931
|
A(pe.target.value);
|
|
@@ -13940,7 +13940,7 @@ function yu({
|
|
|
13940
13940
|
X.validateTimeString(pe.target.value, m) && G(pe.target.value);
|
|
13941
13941
|
}
|
|
13942
13942
|
function nt() {
|
|
13943
|
-
if (L ===
|
|
13943
|
+
if (L === _[0] && $ === _[1] && ne === _[2])
|
|
13944
13944
|
return;
|
|
13945
13945
|
const pe = X.createFrom(L);
|
|
13946
13946
|
if (pe && X.isValid(pe)) {
|
|
@@ -13966,7 +13966,7 @@ function yu({
|
|
|
13966
13966
|
oe(pe.target.value);
|
|
13967
13967
|
}
|
|
13968
13968
|
s.useEffect(() => {
|
|
13969
|
-
ne !==
|
|
13969
|
+
ne !== _[2] && nt();
|
|
13970
13970
|
}, [ne]);
|
|
13971
13971
|
function Ze() {
|
|
13972
13972
|
W([null, null]), Y(null);
|
|
@@ -14014,14 +14014,14 @@ function yu({
|
|
|
14014
14014
|
}
|
|
14015
14015
|
}
|
|
14016
14016
|
}, []), s.useEffect(() => {
|
|
14017
|
-
B[0] ? R(B[0]) : R(""), B[1] ?
|
|
14017
|
+
B[0] ? R(B[0]) : R(""), B[1] ? M(B[1]) : M(m ? "00:00" : "12:00"), m || (B[2] ? A(B[2]) : A("AM")), _[0] ? V(_[0]) : V(""), _[1] ? G(_[1]) : G(m ? "00:00" : "12:00"), m || (_[2] ? oe(_[2]) : oe("AM"));
|
|
14018
14018
|
}, [
|
|
14019
14019
|
B[0],
|
|
14020
14020
|
B[1],
|
|
14021
14021
|
B[2],
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14022
|
+
_[0],
|
|
14023
|
+
_[1],
|
|
14024
|
+
_[2],
|
|
14025
14025
|
m
|
|
14026
14026
|
]);
|
|
14027
14027
|
const Pe = K(nd, "sps-text-input", Z && `${nd}--open`, e);
|
|
@@ -14050,13 +14050,13 @@ function yu({
|
|
|
14050
14050
|
className: "sps-text-input__input",
|
|
14051
14051
|
"data-testid": `${u}_from_date_input`,
|
|
14052
14052
|
id: v,
|
|
14053
|
-
placeholder: !
|
|
14053
|
+
placeholder: !w && !O ? yr : ee ? _[0] : le ? B[0] : void 0,
|
|
14054
14054
|
onChange: me,
|
|
14055
14055
|
onClick: U,
|
|
14056
14056
|
onFocus: U,
|
|
14057
14057
|
onBlur: te,
|
|
14058
14058
|
onKeyDown: fe("from"),
|
|
14059
|
-
value: O ? "" :
|
|
14059
|
+
value: O ? "" : w,
|
|
14060
14060
|
disabled: t
|
|
14061
14061
|
}
|
|
14062
14062
|
), p && !t && /* @__PURE__ */ s.createElement(
|
|
@@ -14100,7 +14100,7 @@ function yu({
|
|
|
14100
14100
|
)), !O && /* @__PURE__ */ s.createElement("span", { className: K("sps-datepicker__to") }, "to"), !O && /* @__PURE__ */ s.createElement("div", { className: K("sps-datetime-range-picker__pair") }, /* @__PURE__ */ s.createElement(
|
|
14101
14101
|
ut,
|
|
14102
14102
|
{
|
|
14103
|
-
id:
|
|
14103
|
+
id: C,
|
|
14104
14104
|
className: Pe,
|
|
14105
14105
|
formMeta: n,
|
|
14106
14106
|
inputRef: I,
|
|
@@ -14442,7 +14442,7 @@ function mn() {
|
|
|
14442
14442
|
function v(i, d, S, b) {
|
|
14443
14443
|
return dl(i, d, S, b, !0).utc();
|
|
14444
14444
|
}
|
|
14445
|
-
function
|
|
14445
|
+
function C() {
|
|
14446
14446
|
return {
|
|
14447
14447
|
empty: !1,
|
|
14448
14448
|
unusedTokens: [],
|
|
@@ -14463,7 +14463,7 @@ function mn() {
|
|
|
14463
14463
|
};
|
|
14464
14464
|
}
|
|
14465
14465
|
function E(i) {
|
|
14466
|
-
return i._pf == null && (i._pf =
|
|
14466
|
+
return i._pf == null && (i._pf = C()), i._pf;
|
|
14467
14467
|
}
|
|
14468
14468
|
var T;
|
|
14469
14469
|
Array.prototype.some ? T = Array.prototype.some : T = function(i) {
|
|
@@ -14495,11 +14495,11 @@ function mn() {
|
|
|
14495
14495
|
b = I[S], D = d[b], f(D) || (i[b] = D);
|
|
14496
14496
|
return i;
|
|
14497
14497
|
}
|
|
14498
|
-
function
|
|
14498
|
+
function _(i) {
|
|
14499
14499
|
B(this, i), this._d = new Date(i._d != null ? i._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), k === !1 && (k = !0, r.updateOffset(this), k = !1);
|
|
14500
14500
|
}
|
|
14501
|
-
function
|
|
14502
|
-
return i instanceof
|
|
14501
|
+
function w(i) {
|
|
14502
|
+
return i instanceof _ || i != null && i._isAMomentObject != null;
|
|
14503
14503
|
}
|
|
14504
14504
|
function R(i) {
|
|
14505
14505
|
r.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + i);
|
|
@@ -14534,13 +14534,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14534
14534
|
r.deprecationHandler != null && r.deprecationHandler(i, d), V[i] || (R(d), V[i] = !0);
|
|
14535
14535
|
}
|
|
14536
14536
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
14537
|
-
function
|
|
14537
|
+
function M(i) {
|
|
14538
14538
|
return typeof Function < "u" && i instanceof Function || Object.prototype.toString.call(i) === "[object Function]";
|
|
14539
14539
|
}
|
|
14540
14540
|
function $(i) {
|
|
14541
14541
|
var d, S;
|
|
14542
14542
|
for (S in i)
|
|
14543
|
-
c(i, S) && (d = i[S],
|
|
14543
|
+
c(i, S) && (d = i[S], M(d) ? this[S] = d : this["_" + S] = d);
|
|
14544
14544
|
this._config = i, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
14545
14545
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
14546
14546
|
);
|
|
@@ -14573,7 +14573,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14573
14573
|
};
|
|
14574
14574
|
function oe(i, d, S) {
|
|
14575
14575
|
var b = this._calendar[i] || this._calendar.sameElse;
|
|
14576
|
-
return
|
|
14576
|
+
return M(b) ? b.call(d, S) : b;
|
|
14577
14577
|
}
|
|
14578
14578
|
function O(i, d, S) {
|
|
14579
14579
|
var b = "" + Math.abs(i), D = d - b.length, P = i >= 0;
|
|
@@ -14603,7 +14603,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14603
14603
|
return function(D) {
|
|
14604
14604
|
var P = "", z;
|
|
14605
14605
|
for (z = 0; z < b; z++)
|
|
14606
|
-
P +=
|
|
14606
|
+
P += M(d[z]) ? d[z].call(D, i) : d[z];
|
|
14607
14607
|
return P;
|
|
14608
14608
|
};
|
|
14609
14609
|
}
|
|
@@ -14664,11 +14664,11 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14664
14664
|
};
|
|
14665
14665
|
function Ee(i, d, S, b) {
|
|
14666
14666
|
var D = this._relativeTime[S];
|
|
14667
|
-
return
|
|
14667
|
+
return M(D) ? D(i, d, S, b) : D.replace(/%d/i, i);
|
|
14668
14668
|
}
|
|
14669
14669
|
function Ke(i, d) {
|
|
14670
14670
|
var S = this._relativeTime[i > 0 ? "future" : "past"];
|
|
14671
|
-
return
|
|
14671
|
+
return M(S) ? S(d) : S.replace(/%s/i, d);
|
|
14672
14672
|
}
|
|
14673
14673
|
var Ze = {
|
|
14674
14674
|
D: "date",
|
|
@@ -14758,7 +14758,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14758
14758
|
var ue = /\d/, ve = /\d\d/, vt = /\d{3}/, et = /\d{4}/, Tt = /[+-]?\d{6}/, _e = /\d\d?/, fn = /\d\d\d\d?/, Or = /\d\d\d\d\d\d?/, hn = /\d{1,3}/, Lr = /\d{1,4}/, er = /[+-]?\d{1,6}/, Sn = /\d+/, On = /[+-]?\d+/, Ta = /Z|[+-]\d\d:?\d\d/gi, Ln = /Z|[+-]\d\d(?::?\d\d)?/gi, be = /[+-]?\d+(\.\d{1,3})?/, ye = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, ze = /^[1-9]\d?/, Ot = /^([1-9]\d|\d)/, Rn;
|
|
14759
14759
|
Rn = {};
|
|
14760
14760
|
function ce(i, d, S) {
|
|
14761
|
-
Rn[i] =
|
|
14761
|
+
Rn[i] = M(d) ? d : function(b, D) {
|
|
14762
14762
|
return b && S ? S : d;
|
|
14763
14763
|
};
|
|
14764
14764
|
}
|
|
@@ -14880,7 +14880,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14880
14880
|
}
|
|
14881
14881
|
}
|
|
14882
14882
|
function Xm(i) {
|
|
14883
|
-
return i = fe(i),
|
|
14883
|
+
return i = fe(i), M(this[i]) ? this[i]() : this;
|
|
14884
14884
|
}
|
|
14885
14885
|
function Qm(i, d) {
|
|
14886
14886
|
if (typeof i == "object") {
|
|
@@ -14888,7 +14888,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14888
14888
|
var S = pe(i), b, D = S.length;
|
|
14889
14889
|
for (b = 0; b < D; b++)
|
|
14890
14890
|
this[S[b].unit](i[S[b].unit]);
|
|
14891
|
-
} else if (i = fe(i),
|
|
14891
|
+
} else if (i = fe(i), M(this[i]))
|
|
14892
14892
|
return this[i](d);
|
|
14893
14893
|
return this;
|
|
14894
14894
|
}
|
|
@@ -15575,12 +15575,12 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15575
15575
|
}
|
|
15576
15576
|
}
|
|
15577
15577
|
function dh(i) {
|
|
15578
|
-
var d = new
|
|
15578
|
+
var d = new _(Ia(cl(i)));
|
|
15579
15579
|
return d._nextDay && (d.add(1, "d"), d._nextDay = void 0), d;
|
|
15580
15580
|
}
|
|
15581
15581
|
function cl(i) {
|
|
15582
15582
|
var d = i._i, S = i._f;
|
|
15583
|
-
return i._locale = i._locale || tn(i._l), d === null || S === void 0 && d === "" ? x({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)),
|
|
15583
|
+
return i._locale = i._locale || tn(i._l), d === null || S === void 0 && d === "" ? x({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)), w(d) ? new _(Ia(d)) : (u(d) ? i._d = d : o(S) ? lh(i) : S ? Oa(i) : ph(i), N(i) || (i._d = null), i));
|
|
15584
15584
|
}
|
|
15585
15585
|
function ph(i) {
|
|
15586
15586
|
var d = i._i;
|
|
@@ -15688,7 +15688,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15688
15688
|
}
|
|
15689
15689
|
function Ba(i, d) {
|
|
15690
15690
|
var S, b;
|
|
15691
|
-
return d._isUTC ? (S = d.clone(), b = (
|
|
15691
|
+
return d._isUTC ? (S = d.clone(), b = (w(i) || u(i) ? i.valueOf() : Ge(i).valueOf()) - S.valueOf(), S._d.setTime(S._d.valueOf() + b), r.updateOffset(S, !1), S) : Ge(i).local();
|
|
15692
15692
|
}
|
|
15693
15693
|
function Pa(i) {
|
|
15694
15694
|
return -Math.round(i._d.getTimezoneOffset());
|
|
@@ -15811,7 +15811,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15811
15811
|
return typeof i == "string" || i instanceof String;
|
|
15812
15812
|
}
|
|
15813
15813
|
function Ah(i) {
|
|
15814
|
-
return
|
|
15814
|
+
return w(i) || u(i) || gl(i) || m(i) || Vh(i) || Fh(i) || i === null || i === void 0;
|
|
15815
15815
|
}
|
|
15816
15816
|
function Fh(i) {
|
|
15817
15817
|
var d = l(i) && !p(i), S = !1, b = [
|
|
@@ -15869,28 +15869,28 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15869
15869
|
}
|
|
15870
15870
|
function Hh(i, d) {
|
|
15871
15871
|
arguments.length === 1 && (arguments[0] ? Ah(arguments[0]) ? (i = arguments[0], d = void 0) : $h(arguments[0]) && (d = arguments[0], i = void 0) : (i = void 0, d = void 0));
|
|
15872
|
-
var S = i || Ge(), b = Ba(S, this).startOf("day"), D = r.calendarFormat(this, b) || "sameElse", P = d && (
|
|
15872
|
+
var S = i || Ge(), b = Ba(S, this).startOf("day"), D = r.calendarFormat(this, b) || "sameElse", P = d && (M(d[D]) ? d[D].call(this, S) : d[D]);
|
|
15873
15873
|
return this.format(
|
|
15874
15874
|
P || this.localeData().calendar(D, this, Ge(S))
|
|
15875
15875
|
);
|
|
15876
15876
|
}
|
|
15877
15877
|
function Wh() {
|
|
15878
|
-
return new
|
|
15878
|
+
return new _(this);
|
|
15879
15879
|
}
|
|
15880
15880
|
function Gh(i, d) {
|
|
15881
|
-
var S =
|
|
15881
|
+
var S = w(i) ? i : Ge(i);
|
|
15882
15882
|
return this.isValid() && S.isValid() ? (d = fe(d) || "millisecond", d === "millisecond" ? this.valueOf() > S.valueOf() : S.valueOf() < this.clone().startOf(d).valueOf()) : !1;
|
|
15883
15883
|
}
|
|
15884
15884
|
function Yh(i, d) {
|
|
15885
|
-
var S =
|
|
15885
|
+
var S = w(i) ? i : Ge(i);
|
|
15886
15886
|
return this.isValid() && S.isValid() ? (d = fe(d) || "millisecond", d === "millisecond" ? this.valueOf() < S.valueOf() : this.clone().endOf(d).valueOf() < S.valueOf()) : !1;
|
|
15887
15887
|
}
|
|
15888
15888
|
function Uh(i, d, S, b) {
|
|
15889
|
-
var D =
|
|
15889
|
+
var D = w(i) ? i : Ge(i), P = w(d) ? d : Ge(d);
|
|
15890
15890
|
return this.isValid() && D.isValid() && P.isValid() ? (b = b || "()", (b[0] === "(" ? this.isAfter(D, S) : !this.isBefore(D, S)) && (b[1] === ")" ? this.isBefore(P, S) : !this.isAfter(P, S))) : !1;
|
|
15891
15891
|
}
|
|
15892
15892
|
function jh(i, d) {
|
|
15893
|
-
var S =
|
|
15893
|
+
var S = w(i) ? i : Ge(i), b;
|
|
15894
15894
|
return this.isValid() && S.isValid() ? (d = fe(d) || "millisecond", d === "millisecond" ? this.valueOf() === S.valueOf() : (b = S.valueOf(), this.clone().startOf(d).valueOf() <= b && b <= this.clone().endOf(d).valueOf())) : !1;
|
|
15895
15895
|
}
|
|
15896
15896
|
function zh(i, d) {
|
|
@@ -15952,7 +15952,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15952
15952
|
return S.year() < 0 || S.year() > 9999 ? le(
|
|
15953
15953
|
S,
|
|
15954
15954
|
d ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
15955
|
-
) :
|
|
15955
|
+
) : M(Date.prototype.toISOString) ? d ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", le(S, "Z")) : le(
|
|
15956
15956
|
S,
|
|
15957
15957
|
d ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
15958
15958
|
);
|
|
@@ -15969,13 +15969,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15969
15969
|
return this.localeData().postformat(d);
|
|
15970
15970
|
}
|
|
15971
15971
|
function tS(i, d) {
|
|
15972
|
-
return this.isValid() && (
|
|
15972
|
+
return this.isValid() && (w(i) && i.isValid() || Ge(i).isValid()) ? Rt({ to: this, from: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
15973
15973
|
}
|
|
15974
15974
|
function nS(i) {
|
|
15975
15975
|
return this.from(Ge(), i);
|
|
15976
15976
|
}
|
|
15977
15977
|
function rS(i, d) {
|
|
15978
|
-
return this.isValid() && (
|
|
15978
|
+
return this.isValid() && (w(i) && i.isValid() || Ge(i).isValid()) ? Rt({ from: this, to: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
15979
15979
|
}
|
|
15980
15980
|
function sS(i) {
|
|
15981
15981
|
return this.to(Ge(), i);
|
|
@@ -16388,7 +16388,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
16388
16388
|
function WS() {
|
|
16389
16389
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
16390
16390
|
}
|
|
16391
|
-
var ae =
|
|
16391
|
+
var ae = _.prototype;
|
|
16392
16392
|
ae.add = Bh, ae.calendar = Hh, ae.clone = Wh, ae.diff = Jh, ae.endOf = oS, ae.format = eS, ae.from = tS, ae.fromNow = nS, ae.to = rS, ae.toNow = sS, ae.get = Xm, ae.invalidAt = hS, ae.isAfter = Gh, ae.isBefore = Yh, ae.isBetween = Uh, ae.isSame = jh, ae.isSameOrAfter = zh, ae.isSameOrBefore = qh, ae.isValid = mS, ae.lang = vl, ae.locale = bl, ae.localeData = yl, ae.max = mh, ae.min = uh, ae.parsingFlags = fS, ae.set = Qm, ae.startOf = aS, ae.subtract = Ph, ae.toArray = dS, ae.toObject = pS, ae.toDate = cS, ae.toISOString = Xh, ae.inspect = Qh, typeof Symbol < "u" && Symbol.for != null && (ae[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
16393
16393
|
return "Moment<" + this.format() + ">";
|
|
16394
16394
|
}), ae.toJSON = uS, ae.toString = Zh, ae.unix = lS, ae.valueOf = iS, ae.creationData = SS, ae.eraName = yS, ae.eraNarrow = ES, ae.eraAbbr = TS, ae.eraYear = wS, ae.year = zi, ae.isLeapYear = Zm, ae.weekYear = MS, ae.isoWeekYear = _S, ae.quarter = ae.quarters = AS, ae.month = Qi, ae.daysInMonth = cf, ae.week = ae.weeks = gf, ae.isoWeek = ae.isoWeeks = bf, ae.weeksInYear = RS, ae.weeksInWeekYear = BS, ae.isoWeeksInYear = OS, ae.isoWeeksInISOWeekYear = LS, ae.date = Dl, ae.day = ae.days = _f, ae.weekday = Of, ae.isoWeekday = Lf, ae.dayOfYear = FS, ae.hour = ae.hours = $f, ae.minute = ae.minutes = VS, ae.second = ae.seconds = $S, ae.millisecond = ae.milliseconds = Nl, ae.utcOffset = Th, ae.utc = Ch, ae.local = Dh, ae.parseZone = Nh, ae.hasAlignedHourOffset = xh, ae.isDST = kh, ae.isLocal = Mh, ae.isUtcOffset = _h, ae.isUtc = ml, ae.isUTC = ml, ae.zoneAbbr = HS, ae.zoneName = WS, ae.dates = L(
|
|
@@ -16613,7 +16613,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
16613
16613
|
S._d = new Date(Ce(i));
|
|
16614
16614
|
});
|
|
16615
16615
|
//! moment.js
|
|
16616
|
-
return r.version = "2.30.1", a(Ge), r.fn = ae, r.min = fh, r.max = hh, r.now = Sh, r.utc = v, r.unix = GS, r.months = US, r.isDate = u, r.locale = gn, r.invalid = x, r.duration = Rt, r.isMoment =
|
|
16616
|
+
return r.version = "2.30.1", a(Ge), r.fn = ae, r.min = fh, r.max = hh, r.now = Sh, r.utc = v, r.unix = GS, r.months = US, r.isDate = u, r.locale = gn, r.invalid = x, r.duration = Rt, r.isMoment = w, r.weekdays = zS, r.parseZone = YS, r.localeData = tn, r.isDuration = ws, r.monthsShort = jS, r.weekdaysMin = JS, r.defineLocale = ka, r.updateLocale = Yf, r.locales = Uf, r.weekdaysShort = qS, r.normalizeUnits = fe, r.relativeTimeRounding = wg, r.relativeTimeThreshold = Cg, r.calendarFormat = Kh, r.prototype = ae, r.HTML5_FMT = {
|
|
16617
16617
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
16618
16618
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
16619
16619
|
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
@@ -17457,16 +17457,16 @@ function Ni(e) {
|
|
|
17457
17457
|
...p
|
|
17458
17458
|
} = e, f = s.Children.map(t, (u, h) => {
|
|
17459
17459
|
if (u.type.toString() !== s.Fragment.toString()) {
|
|
17460
|
-
const
|
|
17460
|
+
const C = parseInt(`${h / 2}`, 10) + 1;
|
|
17461
17461
|
return s.cloneElement(u, {
|
|
17462
|
-
style: { ...u.props.style, msGridRow:
|
|
17462
|
+
style: { ...u.props.style, msGridRow: C }
|
|
17463
17463
|
});
|
|
17464
17464
|
}
|
|
17465
17465
|
const g = u.props.children;
|
|
17466
17466
|
return s.Children.map(
|
|
17467
17467
|
g,
|
|
17468
|
-
(
|
|
17469
|
-
style: { ...
|
|
17468
|
+
(C) => s.cloneElement(C, {
|
|
17469
|
+
style: { ...C.props.style, msGridRow: h + 1 }
|
|
17470
17470
|
})
|
|
17471
17471
|
);
|
|
17472
17472
|
}), m = K(
|
|
@@ -17547,15 +17547,15 @@ function Vt({
|
|
|
17547
17547
|
title: g,
|
|
17548
17548
|
unsafelyReplaceClassName: v
|
|
17549
17549
|
}) {
|
|
17550
|
-
const
|
|
17550
|
+
const C = s.useRef({
|
|
17551
17551
|
instanceKey: Symbol("ds-react:tooltip:instance-key"),
|
|
17552
17552
|
prevIsShown: o,
|
|
17553
17553
|
hideTimer: null
|
|
17554
17554
|
}), [E, T] = s.useState(!1), N = s.useRef(null), x = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, I = s.useRef(null), k = s.useCallback(() => {
|
|
17555
|
-
|
|
17555
|
+
C.current.hideTimer && (window.clearTimeout(C.current.hideTimer), C.current.hideTimer = null);
|
|
17556
17556
|
}, []), B = s.useCallback(() => {
|
|
17557
17557
|
k(), T(!1);
|
|
17558
|
-
}, []),
|
|
17558
|
+
}, []), _ = s.useCallback((ne = !1) => {
|
|
17559
17559
|
var oe;
|
|
17560
17560
|
if (ne === !0 && Kn.size > 0)
|
|
17561
17561
|
return p && p(), !1;
|
|
@@ -17565,12 +17565,12 @@ function Vt({
|
|
|
17565
17565
|
for (const O of Kn.values())
|
|
17566
17566
|
O();
|
|
17567
17567
|
return T(!0), !0;
|
|
17568
|
-
}, []),
|
|
17569
|
-
ne && ne.stopPropagation(), T((oe) => oe ? (B(), !1) :
|
|
17568
|
+
}, []), w = s.useCallback((ne) => {
|
|
17569
|
+
ne && ne.stopPropagation(), T((oe) => oe ? (B(), !1) : _());
|
|
17570
17570
|
}, []), R = s.useCallback((ne) => {
|
|
17571
17571
|
N.current && !N.current.contains(ne.target) && B();
|
|
17572
17572
|
}, []), L = s.useCallback(() => {
|
|
17573
|
-
k(),
|
|
17573
|
+
k(), C.current.hideTimer = window.setTimeout(B, a);
|
|
17574
17574
|
}, []), V = s.useCallback((ne) => {
|
|
17575
17575
|
var W, Q, ee, le, re, me;
|
|
17576
17576
|
const [oe, O] = ne.split(" "), Y = (W = x == null ? void 0 : x.current) == null ? void 0 : W.getBoundingClientRect(), Z = I.current ? parseInt(((Q = getComputedStyle(I.current)) == null ? void 0 : Q.width) || "0", 10) : 0, U = Z * Math.sqrt(2), j = (U - Z) / 2;
|
|
@@ -17588,14 +17588,14 @@ function Vt({
|
|
|
17588
17588
|
return 0;
|
|
17589
17589
|
}, []);
|
|
17590
17590
|
s.useEffect(() => {
|
|
17591
|
-
if (typeof n == "string" && (x.current = document.getElementById(n)), E ? Kn.set(
|
|
17592
|
-
if (o !==
|
|
17591
|
+
if (typeof n == "string" && (x.current = document.getElementById(n)), E ? Kn.set(C.current.instanceKey, B) : Kn.has(C.current.instanceKey) && Kn.delete(C.current.instanceKey), u === bt.MANUAL) {
|
|
17592
|
+
if (o !== C.current.prevIsShown)
|
|
17593
17593
|
switch (o) {
|
|
17594
17594
|
case "visible":
|
|
17595
|
-
|
|
17595
|
+
_();
|
|
17596
17596
|
break;
|
|
17597
17597
|
case "defer_visible":
|
|
17598
|
-
|
|
17598
|
+
_(!0);
|
|
17599
17599
|
break;
|
|
17600
17600
|
case "hidden":
|
|
17601
17601
|
B();
|
|
@@ -17604,36 +17604,36 @@ function Vt({
|
|
|
17604
17604
|
L();
|
|
17605
17605
|
break;
|
|
17606
17606
|
}
|
|
17607
|
-
|
|
17607
|
+
C.current.prevIsShown = o;
|
|
17608
17608
|
}
|
|
17609
17609
|
}, [E, o]), s.useEffect(() => {
|
|
17610
17610
|
if (x.current)
|
|
17611
17611
|
switch (u) {
|
|
17612
17612
|
case bt.MOUSEOVER:
|
|
17613
|
-
x.current.addEventListener("mouseenter",
|
|
17613
|
+
x.current.addEventListener("mouseenter", _), x.current.addEventListener("mouseleave", L);
|
|
17614
17614
|
break;
|
|
17615
17615
|
case bt.CLICK:
|
|
17616
|
-
x.current.addEventListener("click",
|
|
17616
|
+
x.current.addEventListener("click", w), document.addEventListener("click", R);
|
|
17617
17617
|
break;
|
|
17618
17618
|
case bt.MANUAL:
|
|
17619
17619
|
break;
|
|
17620
17620
|
}
|
|
17621
17621
|
}, [x]), s.useEffect(() => {
|
|
17622
17622
|
var ne;
|
|
17623
|
-
((ne = N.current) == null ? void 0 : ne.textContent) === "" && E && (
|
|
17623
|
+
((ne = N.current) == null ? void 0 : ne.textContent) === "" && E && (C.current.hideTimer && (clearTimeout(C.current.hideTimer), C.current.hideTimer = null), T(!1));
|
|
17624
17624
|
}, [e, E]), s.useEffect(
|
|
17625
17625
|
() => () => {
|
|
17626
|
-
Kn.has(
|
|
17626
|
+
Kn.has(C.current.instanceKey) && Kn.delete(C.current.instanceKey), x.current && (x.current.removeEventListener("mouseenter", _), x.current.removeEventListener("mouseleave", L), x.current.removeEventListener("click", w), document.removeEventListener("click", R));
|
|
17627
17627
|
},
|
|
17628
17628
|
[]
|
|
17629
17629
|
);
|
|
17630
|
-
const H = is("sps-tooltip-portal"),
|
|
17630
|
+
const H = is("sps-tooltip-portal"), M = s.useContext($t), [[$, G], q] = s.useState([{}, !1]);
|
|
17631
17631
|
s.useEffect(() => {
|
|
17632
17632
|
q(E ? Er(N, x, f, {
|
|
17633
17633
|
altPosition: m,
|
|
17634
17634
|
setMinWidth: !1,
|
|
17635
17635
|
offsets: [c[0] - ad, c[1] + V(f)],
|
|
17636
|
-
...
|
|
17636
|
+
...M
|
|
17637
17637
|
}) : [{}, !1]);
|
|
17638
17638
|
}, [E, f, m, c[0], c[1], e]), s.useEffect(() => {
|
|
17639
17639
|
const ne = () => {
|
|
@@ -17642,7 +17642,7 @@ function Vt({
|
|
|
17642
17642
|
altPosition: m,
|
|
17643
17643
|
setMinWidth: !1,
|
|
17644
17644
|
offsets: [c[0] - ad, c[1] + V(f)],
|
|
17645
|
-
...
|
|
17645
|
+
...M
|
|
17646
17646
|
})
|
|
17647
17647
|
);
|
|
17648
17648
|
};
|
|
@@ -17707,14 +17707,14 @@ function ki(e) {
|
|
|
17707
17707
|
function v() {
|
|
17708
17708
|
return l && !l.isPristine() && !l.isValid();
|
|
17709
17709
|
}
|
|
17710
|
-
const [
|
|
17710
|
+
const [C, E] = s.useState(), [T, N] = s.useState(xe.HIDDEN);
|
|
17711
17711
|
s.useEffect(() => {
|
|
17712
17712
|
E(
|
|
17713
17713
|
v() || g() ? Yt.ERROR : Yt.HELP
|
|
17714
17714
|
);
|
|
17715
17715
|
}), s.useEffect(() => {
|
|
17716
|
-
var
|
|
17717
|
-
h.current = (
|
|
17716
|
+
var _;
|
|
17717
|
+
h.current = (_ = u == null ? void 0 : u.current) == null ? void 0 : _.getElementsByClassName("sps-form-group__label")[0];
|
|
17718
17718
|
const k = () => N(xe.VISIBLE), B = () => N(xe.HIDDEN);
|
|
17719
17719
|
return h.current && (h.current.addEventListener("focus", k), h.current.addEventListener("blur", B)), () => {
|
|
17720
17720
|
h.current && (h.current.removeEventListener("focus", k), h.current.removeEventListener("blur", B));
|
|
@@ -17744,12 +17744,12 @@ function ki(e) {
|
|
|
17744
17744
|
), /* @__PURE__ */ s.createElement(
|
|
17745
17745
|
Vt,
|
|
17746
17746
|
{
|
|
17747
|
-
kind:
|
|
17747
|
+
kind: C,
|
|
17748
17748
|
for: u,
|
|
17749
17749
|
showOn: bt.MANUAL,
|
|
17750
17750
|
isShown: T
|
|
17751
17751
|
},
|
|
17752
|
-
It(
|
|
17752
|
+
It(C === Yt.ERROR ? a : o)
|
|
17753
17753
|
));
|
|
17754
17754
|
}
|
|
17755
17755
|
Object.assign(ki, {
|
|
@@ -18697,18 +18697,18 @@ function Nu({
|
|
|
18697
18697
|
applyNestedStyles: g,
|
|
18698
18698
|
"data-testid": v
|
|
18699
18699
|
}) {
|
|
18700
|
-
const
|
|
18700
|
+
const C = a || r, E = s.useRef(null), T = s.useRef(null), [N, x] = s.useState(xe.HIDDEN), [I, k] = s.useState(!1), [B, _] = s.useState(m);
|
|
18701
18701
|
jd(() => {
|
|
18702
18702
|
u == null || u(B);
|
|
18703
18703
|
}, [B]), s.useEffect(() => {
|
|
18704
|
-
if (
|
|
18705
|
-
const L =
|
|
18704
|
+
if (C || o) {
|
|
18705
|
+
const L = C && C.isFocused() || o && o.isFocused();
|
|
18706
18706
|
!I && L ? x(xe.VISIBLE) : I && !L && x(xe.HIDDEN), k(L || !1);
|
|
18707
18707
|
}
|
|
18708
18708
|
});
|
|
18709
|
-
const
|
|
18709
|
+
const w = K(
|
|
18710
18710
|
c || g ? "nested-styles-fieldset" : "sps-fieldset",
|
|
18711
|
-
(
|
|
18711
|
+
(C && !C.isPristine() && C.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
|
|
18712
18712
|
t,
|
|
18713
18713
|
f && !B && "sps-fieldset--collapsed",
|
|
18714
18714
|
p && "sps-fieldset--required-fields"
|
|
@@ -18716,7 +18716,7 @@ function Nu({
|
|
|
18716
18716
|
function R() {
|
|
18717
18717
|
x(N === xe.VISIBLE ? xe.HIDDEN : xe.VISIBLE);
|
|
18718
18718
|
}
|
|
18719
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className:
|
|
18719
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className: w, "data-testid": v }, /* @__PURE__ */ s.createElement(
|
|
18720
18720
|
"legend",
|
|
18721
18721
|
{
|
|
18722
18722
|
className: "sps-fieldset__legend",
|
|
@@ -18731,7 +18731,7 @@ function Nu({
|
|
|
18731
18731
|
checked: B,
|
|
18732
18732
|
className: "d-inline-flex pr-1",
|
|
18733
18733
|
onChange: () => {
|
|
18734
|
-
|
|
18734
|
+
_(!B);
|
|
18735
18735
|
},
|
|
18736
18736
|
"data-testid": `${v}__checkbox`
|
|
18737
18737
|
}
|
|
@@ -19260,10 +19260,10 @@ function _i(e) {
|
|
|
19260
19260
|
s.useEffect(() => {
|
|
19261
19261
|
m.current = o;
|
|
19262
19262
|
}, [o]);
|
|
19263
|
-
const { t: u } = s.useContext(We), [h, g] = s.useState(!0), [v,
|
|
19263
|
+
const { t: u } = s.useContext(We), [h, g] = s.useState(!0), [v, C] = s.useState(!1);
|
|
19264
19264
|
function E() {
|
|
19265
19265
|
return [
|
|
19266
|
-
window.setTimeout(() =>
|
|
19266
|
+
window.setTimeout(() => C(!0), Rl),
|
|
19267
19267
|
window.setTimeout(() => {
|
|
19268
19268
|
g(!1), m.current && m.current();
|
|
19269
19269
|
}, Rl + Rg)
|
|
@@ -19279,12 +19279,12 @@ function _i(e) {
|
|
|
19279
19279
|
T.current = [];
|
|
19280
19280
|
}
|
|
19281
19281
|
function I() {
|
|
19282
|
-
x(), g(!0),
|
|
19282
|
+
x(), g(!0), C(!1);
|
|
19283
19283
|
}
|
|
19284
19284
|
function k() {
|
|
19285
|
-
I(),
|
|
19285
|
+
I(), C(!1), g(!1), o && o();
|
|
19286
19286
|
}
|
|
19287
|
-
const B = a === wo.PROGRESS ? "sps-spinner" : K("sps-icon", `sps-icon-${Lg.get(a)}`),
|
|
19287
|
+
const B = a === wo.PROGRESS ? "sps-spinner" : K("sps-icon", `sps-icon-${Lg.get(a)}`), _ = K(
|
|
19288
19288
|
p || "sps-growler",
|
|
19289
19289
|
h && "show",
|
|
19290
19290
|
v && "fade",
|
|
@@ -19298,7 +19298,7 @@ function _i(e) {
|
|
|
19298
19298
|
"div",
|
|
19299
19299
|
{
|
|
19300
19300
|
role: "alert",
|
|
19301
|
-
className:
|
|
19301
|
+
className: _,
|
|
19302
19302
|
onMouseEnter: I,
|
|
19303
19303
|
onMouseLeave: N,
|
|
19304
19304
|
...f
|
|
@@ -19705,50 +19705,52 @@ const oN = {
|
|
|
19705
19705
|
};
|
|
19706
19706
|
function xu(e) {
|
|
19707
19707
|
const {
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19708
|
+
autoComplete: t,
|
|
19709
|
+
disabled: n,
|
|
19710
|
+
min: r = Number.MIN_SAFE_INTEGER,
|
|
19711
|
+
max: a = Number.MAX_SAFE_INTEGER,
|
|
19712
|
+
step: o = 1,
|
|
19713
|
+
onValueChange: l,
|
|
19714
|
+
unsafelyReplaceClassName: c,
|
|
19715
|
+
className: p,
|
|
19716
|
+
"data-testid": f,
|
|
19717
|
+
...m
|
|
19718
|
+
} = e, [u, h] = s.useState(Math.max(r, 0)), [g, v] = s.useState(!1);
|
|
19718
19719
|
s.useEffect(() => {
|
|
19719
|
-
|
|
19720
|
-
}, [
|
|
19721
|
-
const
|
|
19722
|
-
|
|
19723
|
-
},
|
|
19724
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
19720
|
+
l && typeof l == "function" && l(u), v(u < r || u > a);
|
|
19721
|
+
}, [u]);
|
|
19722
|
+
const C = () => u <= r ? !1 : (u > a ? h(a) : h((x) => x - o), !0), E = () => u >= a ? !1 : (u < r ? h(r) : h((x) => x + o), !0), T = (x) => {
|
|
19723
|
+
x.target.value !== "" && h(parseInt(x.target.value, 10));
|
|
19724
|
+
}, N = c || K("sps-incrementor sps-input-group sps-input-group__append", p);
|
|
19725
|
+
return /* @__PURE__ */ s.createElement("div", { className: N, ...m, "data-testid": f }, /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--icon" }, /* @__PURE__ */ s.createElement(
|
|
19725
19726
|
"button",
|
|
19726
19727
|
{
|
|
19727
19728
|
type: "button",
|
|
19728
|
-
"data-testid": `${
|
|
19729
|
-
onClick:
|
|
19730
|
-
disabled:
|
|
19731
|
-
"aria-label": `Subtract ${
|
|
19729
|
+
"data-testid": `${f}__minus`,
|
|
19730
|
+
onClick: C,
|
|
19731
|
+
disabled: n,
|
|
19732
|
+
"aria-label": `Subtract ${o}`
|
|
19732
19733
|
},
|
|
19733
19734
|
/* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-minus", "aria-hidden": "true" })
|
|
19734
19735
|
)), /* @__PURE__ */ s.createElement("div", { className: "sps-text-input" }, /* @__PURE__ */ s.createElement(
|
|
19735
19736
|
"input",
|
|
19736
19737
|
{
|
|
19737
19738
|
type: "text",
|
|
19738
|
-
className: K("sps-form-control",
|
|
19739
|
-
value:
|
|
19740
|
-
onChange:
|
|
19741
|
-
disabled:
|
|
19742
|
-
"data-testid": `${
|
|
19739
|
+
className: K("sps-form-control", g && "sps-input--error"),
|
|
19740
|
+
value: u,
|
|
19741
|
+
onChange: T,
|
|
19742
|
+
disabled: n,
|
|
19743
|
+
"data-testid": `${f}__input`,
|
|
19744
|
+
autoComplete: t
|
|
19743
19745
|
}
|
|
19744
19746
|
)), /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--icon" }, /* @__PURE__ */ s.createElement(
|
|
19745
19747
|
"button",
|
|
19746
19748
|
{
|
|
19747
19749
|
type: "button",
|
|
19748
|
-
"data-testid": `${
|
|
19749
|
-
onClick:
|
|
19750
|
-
disabled:
|
|
19751
|
-
"aria-label": `Add ${
|
|
19750
|
+
"data-testid": `${f}__plus`,
|
|
19751
|
+
onClick: E,
|
|
19752
|
+
disabled: n,
|
|
19753
|
+
"aria-label": `Add ${o}`
|
|
19752
19754
|
},
|
|
19753
19755
|
/* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-plus-sign", "aria-hidden": "true" })
|
|
19754
19756
|
)));
|
|
@@ -19810,11 +19812,11 @@ function ku({
|
|
|
19810
19812
|
"data-testid": m,
|
|
19811
19813
|
...u
|
|
19812
19814
|
}) {
|
|
19813
|
-
const { t: h } = s.useContext(We), g = s.useRef(null), v = s.useRef(null),
|
|
19815
|
+
const { t: h } = s.useContext(We), g = s.useRef(null), v = s.useRef(null), C = s.useRef(null), E = s.useRef(null), [T, N] = s.useState(xe.HIDDEN), [x, I] = s.useState(xe.HIDDEN), [k, B] = s.useState(xe.HIDDEN), [_, w] = s.useState(
|
|
19814
19816
|
xe.HIDDEN
|
|
19815
19817
|
);
|
|
19816
19818
|
function R() {
|
|
19817
|
-
N(xe.HIDDEN), I(xe.HIDDEN), B(xe.HIDDEN),
|
|
19819
|
+
N(xe.HIDDEN), I(xe.HIDDEN), B(xe.HIDDEN), w(xe.HIDDEN);
|
|
19818
19820
|
}
|
|
19819
19821
|
function L() {
|
|
19820
19822
|
N(xe.DELAYED_HIDDEN), I(xe.DELAYED_HIDDEN), B(xe.DELAYED_HIDDEN);
|
|
@@ -19823,10 +19825,10 @@ function ku({
|
|
|
19823
19825
|
U.preventDefault(), R(), B(So(k));
|
|
19824
19826
|
}
|
|
19825
19827
|
function H() {
|
|
19826
|
-
return r && (r instanceof fr && r.isVisibilyInvalid() || !(r instanceof fr) && !r.isValid()) ? [x, I] : r && r instanceof fr && r.hasPreventativeErrors() ? [
|
|
19828
|
+
return r && (r instanceof fr && r.isVisibilyInvalid() || !(r instanceof fr) && !r.isValid()) ? [x, I] : r && r instanceof fr && r.hasPreventativeErrors() ? [_, w] : o ? [T, N] : a ? [k, B] : [xe.HIDDEN, () => {
|
|
19827
19829
|
}];
|
|
19828
19830
|
}
|
|
19829
|
-
function
|
|
19831
|
+
function M() {
|
|
19830
19832
|
R();
|
|
19831
19833
|
const [U, j] = H();
|
|
19832
19834
|
j(So(U));
|
|
@@ -19874,7 +19876,7 @@ function ku({
|
|
|
19874
19876
|
{ type: qt }
|
|
19875
19877
|
]);
|
|
19876
19878
|
return s.useEffect(() => {
|
|
19877
|
-
A != null && A.hasPreventativeErrors() &&
|
|
19879
|
+
A != null && A.hasPreventativeErrors() && w(xe.VISIBLE);
|
|
19878
19880
|
}, [A == null ? void 0 : A.hasPreventativeErrors()]), /* @__PURE__ */ s.createElement(ut, { formMeta: A, formControl: ne }, /* @__PURE__ */ s.createElement(
|
|
19879
19881
|
"label",
|
|
19880
19882
|
{
|
|
@@ -19909,7 +19911,7 @@ function ku({
|
|
|
19909
19911
|
"sps-icon-exclamation-circle",
|
|
19910
19912
|
"sps-form-group__label--error-icon"
|
|
19911
19913
|
),
|
|
19912
|
-
onClick:
|
|
19914
|
+
onClick: M,
|
|
19913
19915
|
onMouseLeave: L
|
|
19914
19916
|
}
|
|
19915
19917
|
),
|
|
@@ -19924,7 +19926,7 @@ function ku({
|
|
|
19924
19926
|
/* @__PURE__ */ s.createElement(
|
|
19925
19927
|
"i",
|
|
19926
19928
|
{
|
|
19927
|
-
ref:
|
|
19929
|
+
ref: C,
|
|
19928
19930
|
"data-testid": `${m}__help-icon`,
|
|
19929
19931
|
className: K(
|
|
19930
19932
|
"sps-icon",
|
|
@@ -19941,7 +19943,7 @@ function ku({
|
|
|
19941
19943
|
Vt,
|
|
19942
19944
|
{
|
|
19943
19945
|
kind: Yt.DEFAULT,
|
|
19944
|
-
for:
|
|
19946
|
+
for: C,
|
|
19945
19947
|
showOn: bt.MANUAL,
|
|
19946
19948
|
isShown: T,
|
|
19947
19949
|
altPosition: we.TOP_MIDDLE
|
|
@@ -19963,7 +19965,7 @@ function ku({
|
|
|
19963
19965
|
kind: Yt.WARNING,
|
|
19964
19966
|
for: E,
|
|
19965
19967
|
showOn: bt.MANUAL,
|
|
19966
|
-
isShown:
|
|
19968
|
+
isShown: _,
|
|
19967
19969
|
altPosition: we.LEFT_MIDDLE
|
|
19968
19970
|
},
|
|
19969
19971
|
It(p) || O()
|
|
@@ -20288,7 +20290,7 @@ const ya = s.createContext({
|
|
|
20288
20290
|
});
|
|
20289
20291
|
},
|
|
20290
20292
|
[]
|
|
20291
|
-
),
|
|
20293
|
+
), C = s.useMemo(
|
|
20292
20294
|
() => ({
|
|
20293
20295
|
resizeable: t,
|
|
20294
20296
|
resizeState: l,
|
|
@@ -20306,7 +20308,7 @@ const ya = s.createContext({
|
|
|
20306
20308
|
h
|
|
20307
20309
|
]
|
|
20308
20310
|
);
|
|
20309
|
-
return /* @__PURE__ */ s.createElement(ya.Provider, { value:
|
|
20311
|
+
return /* @__PURE__ */ s.createElement(ya.Provider, { value: C }, e);
|
|
20310
20312
|
}, mN = (e) => {
|
|
20311
20313
|
const t = /(auto|scroll)/, n = (c, p) => c.parentNode === null ? p : n(c.parentNode, p.concat([c])), r = (c, p) => getComputedStyle(c, null).getPropertyValue(p), a = (c) => r(c, "overflow") + r(c, "overflow-y"), o = (c) => t.test(a(c));
|
|
20312
20314
|
return ((c) => {
|
|
@@ -20409,8 +20411,8 @@ const ya = s.createContext({
|
|
|
20409
20411
|
const T = r.scrollLeft, N = a == null ? void 0 : a.getBoundingClientRect(), x = r.getBoundingClientRect();
|
|
20410
20412
|
if (E && N && N.top <= E && E <= x.bottom - N.height && x.top <= E) {
|
|
20411
20413
|
if (c && Array.from(c).forEach((I, k) => {
|
|
20412
|
-
const B = I.getBoundingClientRect().width,
|
|
20413
|
-
p[k].style.minWidth =
|
|
20414
|
+
const B = I.getBoundingClientRect().width, _ = p[k].getBoundingClientRect().width, w = `${Math.max(B, _)}px`;
|
|
20415
|
+
p[k].style.minWidth = w, p[k].style.width = w, p[k].style.maxWidth = w, I.style.minWidth = w, I.style.width = w, I.style.maxWidth = w;
|
|
20414
20416
|
}), a && e.current) {
|
|
20415
20417
|
a.style.position = "fixed", a.style.top = `${E}px`, a.style.overflow = "hidden";
|
|
20416
20418
|
const I = e.current.offsetWidth - e.current.clientWidth, k = `${x.width - I}px`;
|
|
@@ -20420,11 +20422,11 @@ const ya = s.createContext({
|
|
|
20420
20422
|
} else
|
|
20421
20423
|
m && (r.removeChild(m), m = null, h());
|
|
20422
20424
|
r.scrollLeft = T, g();
|
|
20423
|
-
},
|
|
20425
|
+
}, C = () => {
|
|
20424
20426
|
h(), v(), g();
|
|
20425
20427
|
};
|
|
20426
|
-
return a && a.classList.contains("sps-table__head--pinned") && (u = mN(r) || window, u.addEventListener("scroll", v), window.addEventListener("resize",
|
|
20427
|
-
u && (u.removeEventListener("scroll", v), window.removeEventListener("resize",
|
|
20428
|
+
return a && a.classList.contains("sps-table__head--pinned") && (u = mN(r) || window, u.addEventListener("scroll", v), window.addEventListener("resize", C), r.addEventListener("scroll", g), C()), () => {
|
|
20429
|
+
u && (u.removeEventListener("scroll", v), window.removeEventListener("resize", C)), r.removeEventListener("scroll", g);
|
|
20428
20430
|
};
|
|
20429
20431
|
});
|
|
20430
20432
|
}, SN = (e, t) => {
|
|
@@ -20473,8 +20475,8 @@ function _r({
|
|
|
20473
20475
|
onResizeStateChange: m,
|
|
20474
20476
|
...u
|
|
20475
20477
|
}) {
|
|
20476
|
-
const h = K(o || "sps-table-container", t), g = l ? l / 16 : c, v = g ? { maxHeight: `${g}rem` } : {},
|
|
20477
|
-
return SN(
|
|
20478
|
+
const h = K(o || "sps-table-container", t), g = l ? l / 16 : c, v = g ? { maxHeight: `${g}rem` } : {}, C = s.useRef(null);
|
|
20479
|
+
return SN(C, g), fN(C), hN(C, g, f), /* @__PURE__ */ s.createElement(
|
|
20478
20480
|
uN,
|
|
20479
20481
|
{
|
|
20480
20482
|
resizeable: p,
|
|
@@ -20483,7 +20485,7 @@ function _r({
|
|
|
20483
20485
|
sort: r,
|
|
20484
20486
|
onSortChange: n
|
|
20485
20487
|
},
|
|
20486
|
-
/* @__PURE__ */ s.createElement("div", { ref:
|
|
20488
|
+
/* @__PURE__ */ s.createElement("div", { ref: C, className: h, style: v }, /* @__PURE__ */ s.createElement("div", { className: "sps-table__shadow shadow--top" }), /* @__PURE__ */ s.createElement("div", { className: "sps-table__shadow shadow--bottom" }), /* @__PURE__ */ s.createElement("table", { className: "sps-table", role: "table", "data-testid": `${a}`, ...u }, e))
|
|
20487
20489
|
);
|
|
20488
20490
|
}
|
|
20489
20491
|
Object.assign(_r, {
|
|
@@ -20508,42 +20510,42 @@ const bN = ({
|
|
|
20508
20510
|
}) => {
|
|
20509
20511
|
const { resizeable: r, resizeState: a, setSingleResizeState: o } = s.useContext(ya), l = !!r && !!n, c = l ? a == null ? void 0 : a[n] : 0;
|
|
20510
20512
|
return s.useLayoutEffect(() => {
|
|
20511
|
-
var B,
|
|
20513
|
+
var B, _;
|
|
20512
20514
|
let p, f = c, m = 0;
|
|
20513
|
-
const u = _u(e.current), h = (B = e.current) == null ? void 0 : B.querySelector(".sps-table__column-resizer"), g = (
|
|
20515
|
+
const u = _u(e.current), h = (B = e.current) == null ? void 0 : B.querySelector(".sps-table__column-resizer"), g = (_ = e.current) == null ? void 0 : _.querySelector(".sps-table__column-resizer-guide");
|
|
20514
20516
|
function v() {
|
|
20515
20517
|
if (e.current && p && (h && (h.style.backgroundColor = Co.blue200), g && u && (g.style.height = `${u.getBoundingClientRect().height}px`, g.style.display = "block"), u)) {
|
|
20516
|
-
const
|
|
20517
|
-
for (let R = 0; R <
|
|
20518
|
-
const L =
|
|
20519
|
-
|
|
20518
|
+
const w = u.querySelectorAll("thead > tr > th");
|
|
20519
|
+
for (let R = 0; R < w.length; R += 1) {
|
|
20520
|
+
const L = w[R].querySelector(".sps-table__column-resizer");
|
|
20521
|
+
w[R].style.cursor = "col-resize", w[R] !== e.current && L && (w[R].classList.remove("sps-table__header--resizeable"), L.style.display = "none");
|
|
20520
20522
|
}
|
|
20521
20523
|
}
|
|
20522
20524
|
}
|
|
20523
|
-
function
|
|
20525
|
+
function C() {
|
|
20524
20526
|
e.current && p && h && g && (h.style.right = `${m}px`, g.style.right = `${m}px`);
|
|
20525
20527
|
}
|
|
20526
20528
|
function E() {
|
|
20527
20529
|
if (e.current) {
|
|
20528
|
-
const
|
|
20529
|
-
e.current.style.width =
|
|
20530
|
+
const w = f ? `${f}px` : "";
|
|
20531
|
+
e.current.style.width = w, e.current.style.maxWidth = w, e.current.style.minWidth = w;
|
|
20530
20532
|
const R = e.current.querySelector(".sps-table__header-cell-body");
|
|
20531
|
-
if (R && (R.style.overflow =
|
|
20533
|
+
if (R && (R.style.overflow = w ? "hidden" : "", R.style.textOverflow = w ? "ellipsis" : ""), h && g && (h.style.right = "0", h.style.backgroundColor = "", g.style.right = "0", g.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), u) {
|
|
20532
20534
|
const L = u.querySelectorAll("thead > tr > th");
|
|
20533
20535
|
for (let V = 0; V < L.length; V += 1) {
|
|
20534
|
-
const H = L[V].querySelector(".sps-table__header-cell-body"),
|
|
20535
|
-
L[V].style.cursor = "default", L[V] !== e.current &&
|
|
20536
|
+
const H = L[V].querySelector(".sps-table__header-cell-body"), M = L[V].querySelector(".sps-table__column-resizer");
|
|
20537
|
+
L[V].style.cursor = "default", L[V] !== e.current && M && (L[V].classList.add("sps-table__header--resizeable"), M.style.display = "block"), (H == null ? void 0 : H.textContent) && !H.title && (H.title = H.textContent);
|
|
20536
20538
|
}
|
|
20537
20539
|
}
|
|
20538
20540
|
}
|
|
20539
20541
|
}
|
|
20540
|
-
const T = (
|
|
20541
|
-
!e.current || (
|
|
20542
|
-
}, N = (
|
|
20542
|
+
const T = (w) => {
|
|
20543
|
+
!e.current || (w.preventDefault(), p = w.clientX, f = e.current.clientWidth, v());
|
|
20544
|
+
}, N = (w) => {
|
|
20543
20545
|
if (!p || !e.current)
|
|
20544
20546
|
return;
|
|
20545
|
-
const R = Math.max(Math.min(p -
|
|
20546
|
-
R !== 0 && (p =
|
|
20547
|
+
const R = Math.max(Math.min(p - w.clientX, 40), -40);
|
|
20548
|
+
R !== 0 && (p = w.clientX, m += R, f = Math.max(f - R, 40), C());
|
|
20547
20549
|
}, x = () => {
|
|
20548
20550
|
!e.current || !p || (p = 0, m = 0, E(), o(n, f));
|
|
20549
20551
|
}, I = () => {
|
|
@@ -20604,7 +20606,7 @@ function it({
|
|
|
20604
20606
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), h());
|
|
20605
20607
|
}, v = s.useRef(null);
|
|
20606
20608
|
Mu(c, v);
|
|
20607
|
-
const
|
|
20609
|
+
const C = s.useRef(null), { isResizeable: E } = bN({ tableHeaderRef: v, resizerRef: C, resizeKey: a }), T = K(
|
|
20608
20610
|
l || "sps-table__header",
|
|
20609
20611
|
n && "sps-table__header--control",
|
|
20610
20612
|
!r && "sps-table__header--sort-disabled",
|
|
@@ -20636,7 +20638,7 @@ function it({
|
|
|
20636
20638
|
},
|
|
20637
20639
|
e
|
|
20638
20640
|
),
|
|
20639
|
-
E && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { ref:
|
|
20641
|
+
E && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { ref: C, className: K("sps-table__column-resizer") }), /* @__PURE__ */ s.createElement("span", { className: K("sps-table__column-resizer-guide") }))
|
|
20640
20642
|
);
|
|
20641
20643
|
}
|
|
20642
20644
|
Object.assign(it, {
|
|
@@ -22334,7 +22336,7 @@ function Oi(e) {
|
|
|
22334
22336
|
unsafelyReplaceClassName: c,
|
|
22335
22337
|
...p
|
|
22336
22338
|
} = e, { t: f } = s.useContext(We), m = K(c || "sps-search-results-bar-v2", t), u = r ? Object.keys(r).reduce((h, g) => (r[g].length > 0 && (h[g] = r[g]), h), {}) : {};
|
|
22337
|
-
return /* @__PURE__ */ s.createElement("div", { className: m, "data-testid": `${l}`, ...p }, n != null && /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__results" }, /* @__PURE__ */ s.createElement("span", { "data-testid": `${l}__label` }, f("design-system:searchResultsBar.results")), /* @__PURE__ */ s.createElement(Ut, { kind: br.INFO }, /* @__PURE__ */ s.createElement("span", null, n))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__selections" }, Object.keys(u).length > 0 ? Object.keys(u).map((h, g) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { key: g, className: "sps-search-results-bar-v2__selection" }, h, ":"), u[h].map((v,
|
|
22339
|
+
return /* @__PURE__ */ s.createElement("div", { className: m, "data-testid": `${l}`, ...p }, n != null && /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__results" }, /* @__PURE__ */ s.createElement("span", { "data-testid": `${l}__label` }, f("design-system:searchResultsBar.results")), /* @__PURE__ */ s.createElement(Ut, { kind: br.INFO }, /* @__PURE__ */ s.createElement("span", null, n))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__selections" }, Object.keys(u).length > 0 ? Object.keys(u).map((h, g) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { key: g, className: "sps-search-results-bar-v2__selection" }, h, ":"), u[h].map((v, C) => /* @__PURE__ */ s.createElement(Ut, { key: C, kind: br.KEY }, /* @__PURE__ */ s.createElement("span", null, v))))) : /* @__PURE__ */ s.createElement("span", { className: "font-italic" }, a || f("design-system:searchResultsBar.noAdvancedSearchSelections"))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__buttons", "data-testid": `${l}__button` }, /* @__PURE__ */ s.createElement(je, { kind: Je.LINK, onClick: o }, f("design-system:searchResultsBar.clearResults"))));
|
|
22338
22340
|
}
|
|
22339
22341
|
Object.assign(Oi, {
|
|
22340
22342
|
props: ON,
|
|
@@ -22648,15 +22650,15 @@ function Fu(e) {
|
|
|
22648
22650
|
isSelected: h,
|
|
22649
22651
|
isIndeterminate: g,
|
|
22650
22652
|
onSelectionChange: v,
|
|
22651
|
-
pinResultsBar:
|
|
22653
|
+
pinResultsBar: C,
|
|
22652
22654
|
pinToolbar: E = !0,
|
|
22653
22655
|
"data-testid": T,
|
|
22654
22656
|
...N
|
|
22655
22657
|
} = e, { t: x } = s.useContext(We);
|
|
22656
22658
|
let I = null;
|
|
22657
|
-
const [k, B] = s.useState(!1),
|
|
22658
|
-
if (
|
|
22659
|
-
const oe =
|
|
22659
|
+
const [k, B] = s.useState(!1), _ = s.useRef(null), w = s.useRef(null), R = qg(() => {
|
|
22660
|
+
if (_.current && E) {
|
|
22661
|
+
const oe = _.current.getBoundingClientRect();
|
|
22660
22662
|
oe && oe.height > 0 && oe.top <= 60 && (typeof I == "number" ? window.scrollY < I && (I = null, B(!1)) : (I = window.scrollY, B(!0), o && o(!1)));
|
|
22661
22663
|
}
|
|
22662
22664
|
});
|
|
@@ -22665,12 +22667,12 @@ function Fu(e) {
|
|
|
22665
22667
|
}), []);
|
|
22666
22668
|
const L = s.useRef();
|
|
22667
22669
|
s.useLayoutEffect(() => {
|
|
22668
|
-
if (
|
|
22670
|
+
if (w.current && _.current && E) {
|
|
22669
22671
|
if (k && L.current)
|
|
22670
|
-
|
|
22672
|
+
w.current.style.height = L.current.height, w.current.style.width = L.current.width, w.current.style.marginBottom = L.current.marginBottom;
|
|
22671
22673
|
else if (!k) {
|
|
22672
|
-
|
|
22673
|
-
const oe = window.getComputedStyle(
|
|
22674
|
+
w.current.style.height = "", w.current.style.width = "", w.current.style.marginBottom = "";
|
|
22675
|
+
const oe = window.getComputedStyle(_.current);
|
|
22674
22676
|
L.current = {
|
|
22675
22677
|
height: oe.height,
|
|
22676
22678
|
width: oe.width,
|
|
@@ -22685,11 +22687,11 @@ function Fu(e) {
|
|
|
22685
22687
|
function H() {
|
|
22686
22688
|
o && o(!(n != null && n.isOpen));
|
|
22687
22689
|
}
|
|
22688
|
-
function
|
|
22690
|
+
function M(oe) {
|
|
22689
22691
|
m && m(oe);
|
|
22690
22692
|
}
|
|
22691
22693
|
s.useEffect(() => {
|
|
22692
|
-
|
|
22694
|
+
M(k);
|
|
22693
22695
|
}, [k]);
|
|
22694
22696
|
const $ = K(
|
|
22695
22697
|
f || "sps-list-toolbar",
|
|
@@ -22707,7 +22709,7 @@ function Fu(e) {
|
|
|
22707
22709
|
{ type: Ri },
|
|
22708
22710
|
{ type: Oi }
|
|
22709
22711
|
]);
|
|
22710
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref:
|
|
22712
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref: w }, /* @__PURE__ */ s.createElement("div", { className: $, "data-testid": T, ref: _, ...N }, /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__content" }, !!u && /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__selection-controls" }, /* @__PURE__ */ s.createElement(
|
|
22711
22713
|
xr,
|
|
22712
22714
|
{
|
|
22713
22715
|
checked: h,
|
|
@@ -22739,7 +22741,7 @@ function Fu(e) {
|
|
|
22739
22741
|
className: "sps-list-toolbar__advanced-search-title"
|
|
22740
22742
|
},
|
|
22741
22743
|
p
|
|
22742
|
-
)), k ? /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, /* @__PURE__ */ s.createElement($t.Provider, { value: { fixed: !0 } }, ne)) : /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, ne)), /* @__PURE__ */ s.createElement("div", null, (!k || k &&
|
|
22744
|
+
)), k ? /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, /* @__PURE__ */ s.createElement($t.Provider, { value: { fixed: !0 } }, ne)) : /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, ne)), /* @__PURE__ */ s.createElement("div", null, (!k || k && C) && A)));
|
|
22743
22745
|
}
|
|
22744
22746
|
Object.assign(Fu, {
|
|
22745
22747
|
props: PN,
|
|
@@ -23731,7 +23733,7 @@ function Ku({
|
|
|
23731
23733
|
`sps-modal--${r}`,
|
|
23732
23734
|
`sps-modal--${a}`,
|
|
23733
23735
|
t
|
|
23734
|
-
), { t: h } = s.useContext(We), g = s.useRef(null), v = s.useRef(document.body.style.overflow || ""),
|
|
23736
|
+
), { t: h } = s.useContext(We), g = s.useRef(null), v = s.useRef(document.body.style.overflow || ""), C = s.useRef(document.body.style.paddingRight || "");
|
|
23735
23737
|
s.useLayoutEffect(() => {
|
|
23736
23738
|
let x = !1;
|
|
23737
23739
|
if (document.body.style.overflow !== "hidden") {
|
|
@@ -23739,7 +23741,7 @@ function Ku({
|
|
|
23739
23741
|
document.body.style.paddingRight = I, document.body.style.overflow = "hidden", x = !0;
|
|
23740
23742
|
}
|
|
23741
23743
|
return () => {
|
|
23742
|
-
x && (document.body.style.overflow = v.current, document.body.style.paddingRight =
|
|
23744
|
+
x && (document.body.style.overflow = v.current, document.body.style.paddingRight = C.current);
|
|
23743
23745
|
};
|
|
23744
23746
|
}, []), s.useEffect(() => {
|
|
23745
23747
|
l && l.current ? l.current.focus() : g.current && g.current.focus();
|
|
@@ -23833,7 +23835,7 @@ function Hu({
|
|
|
23833
23835
|
}, [r]), s.useEffect(() => {
|
|
23834
23836
|
l && l.current ? l.current.focus() : v.current && v.current.focus();
|
|
23835
23837
|
}, [l]);
|
|
23836
|
-
const
|
|
23838
|
+
const C = s.useCallback(
|
|
23837
23839
|
(T) => {
|
|
23838
23840
|
if (a && T && T.key === "Escape" && o && o(), T && T.key === "Tab" && v.current) {
|
|
23839
23841
|
const N = v.current.querySelectorAll(
|
|
@@ -23844,9 +23846,9 @@ function Hu({
|
|
|
23844
23846
|
},
|
|
23845
23847
|
[o]
|
|
23846
23848
|
);
|
|
23847
|
-
s.useEffect(() => (window.addEventListener("keydown",
|
|
23848
|
-
window.removeEventListener("keydown",
|
|
23849
|
-
}), [
|
|
23849
|
+
s.useEffect(() => (window.addEventListener("keydown", C), () => {
|
|
23850
|
+
window.removeEventListener("keydown", C);
|
|
23851
|
+
}), [C]);
|
|
23850
23852
|
const [E] = Kt(e);
|
|
23851
23853
|
return /* @__PURE__ */ s.createElement(
|
|
23852
23854
|
"div",
|
|
@@ -24512,7 +24514,7 @@ function Wu({
|
|
|
24512
24514
|
onChange: h,
|
|
24513
24515
|
onSearchChange: g,
|
|
24514
24516
|
options: v,
|
|
24515
|
-
placeholder:
|
|
24517
|
+
placeholder: C,
|
|
24516
24518
|
tallOptionList: E,
|
|
24517
24519
|
textKey: T,
|
|
24518
24520
|
unsafelyReplaceClassName: N,
|
|
@@ -24520,13 +24522,13 @@ function Wu({
|
|
|
24520
24522
|
zeroState: I = "There are no matching options.",
|
|
24521
24523
|
loading: k,
|
|
24522
24524
|
icon: B,
|
|
24523
|
-
maxHeightOptionListPx:
|
|
24524
|
-
maxHeightOptionListRem:
|
|
24525
|
+
maxHeightOptionListPx: _,
|
|
24526
|
+
maxHeightOptionListRem: w,
|
|
24525
24527
|
disableOptionsMemoization: R,
|
|
24526
24528
|
"data-testid": L,
|
|
24527
24529
|
...V
|
|
24528
24530
|
}) {
|
|
24529
|
-
const H = x != null ? x : [],
|
|
24531
|
+
const H = x != null ? x : [], M = f || p, { wrapperId: $, controlId: G } = Et(u, M), [q, A] = un({
|
|
24530
24532
|
keyDown: null,
|
|
24531
24533
|
opensUpward: !1,
|
|
24532
24534
|
searchText: "",
|
|
@@ -24563,7 +24565,7 @@ function Wu({
|
|
|
24563
24565
|
}
|
|
24564
24566
|
}
|
|
24565
24567
|
function me(fe) {
|
|
24566
|
-
A({ searchText: "" }),
|
|
24568
|
+
A({ searchText: "" }), M && (M.setValue(fe), M.markAsDirty()), h && h(
|
|
24567
24569
|
new Jn({ value: fe })
|
|
24568
24570
|
);
|
|
24569
24571
|
}
|
|
@@ -24702,7 +24704,7 @@ function Wu({
|
|
|
24702
24704
|
"data-testid": `${L}__option-list-input`,
|
|
24703
24705
|
value: q.searchText,
|
|
24704
24706
|
className: "sps-text-input__input",
|
|
24705
|
-
placeholder: H.length === 0 ?
|
|
24707
|
+
placeholder: H.length === 0 ? C : void 0,
|
|
24706
24708
|
id: G,
|
|
24707
24709
|
onClick: ee,
|
|
24708
24710
|
onChange: De,
|
|
@@ -24750,8 +24752,8 @@ function Wu({
|
|
|
24750
24752
|
textKey: T,
|
|
24751
24753
|
zeroState: I,
|
|
24752
24754
|
loading: k,
|
|
24753
|
-
maxHeightPx:
|
|
24754
|
-
maxHeightRem:
|
|
24755
|
+
maxHeightPx: _,
|
|
24756
|
+
maxHeightRem: w,
|
|
24755
24757
|
disableOptionsMemoization: R,
|
|
24756
24758
|
onSpecialActionSelect: Ee
|
|
24757
24759
|
}
|
|
@@ -25258,13 +25260,13 @@ function Pi(e) {
|
|
|
25258
25260
|
unknownPageCount: p = !1,
|
|
25259
25261
|
nextPageBtnDisabled: f = !1,
|
|
25260
25262
|
...m
|
|
25261
|
-
} = e, { t: u } = s.useContext(We), [h, g] = s.useState(r), [v,
|
|
25263
|
+
} = e, { t: u } = s.useContext(We), [h, g] = s.useState(r), [v, C] = s.useState(r);
|
|
25262
25264
|
s.useEffect(() => {
|
|
25263
|
-
|
|
25265
|
+
C(r), g(r);
|
|
25264
25266
|
}, [r]);
|
|
25265
25267
|
function E(I) {
|
|
25266
25268
|
const k = Jg(I, [1, t]);
|
|
25267
|
-
I !== v && (
|
|
25269
|
+
I !== v && (C(k), g(k), n && typeof n == "function" && n(k));
|
|
25268
25270
|
}
|
|
25269
25271
|
function T(I) {
|
|
25270
25272
|
g(Number(I.target.value) || "");
|
|
@@ -25353,37 +25355,37 @@ function Gu(e) {
|
|
|
25353
25355
|
nextPageBtnDisabled: u = !1,
|
|
25354
25356
|
resultsOnPage: h,
|
|
25355
25357
|
...g
|
|
25356
|
-
} = e, [v,
|
|
25358
|
+
} = e, [v, C] = un({
|
|
25357
25359
|
page: r,
|
|
25358
25360
|
pageSize: o,
|
|
25359
25361
|
numPages: 0,
|
|
25360
25362
|
indices: [0, 0]
|
|
25361
25363
|
});
|
|
25362
|
-
function E(
|
|
25363
|
-
return c !== void 0 ? Math.ceil(c /
|
|
25364
|
+
function E(w = v.pageSize) {
|
|
25365
|
+
return c !== void 0 ? Math.ceil(c / w) : NaN;
|
|
25364
25366
|
}
|
|
25365
|
-
function T(
|
|
25366
|
-
const L = E(R), V =
|
|
25367
|
-
return L === 0 ? [0, 0] : [
|
|
25367
|
+
function T(w = v.page, R = v.pageSize) {
|
|
25368
|
+
const L = E(R), V = w === L && c !== void 0 && c % R || R, H = h || (L === 0 ? 0 : V), M = (w - 1) * R;
|
|
25369
|
+
return L === 0 ? [0, 0] : [M + 1, M + H];
|
|
25368
25370
|
}
|
|
25369
|
-
function N(
|
|
25371
|
+
function N(w) {
|
|
25370
25372
|
const R = {
|
|
25371
|
-
page:
|
|
25372
|
-
indices: T(
|
|
25373
|
+
page: w,
|
|
25374
|
+
indices: T(w)
|
|
25373
25375
|
};
|
|
25374
|
-
return
|
|
25376
|
+
return C(R), R;
|
|
25375
25377
|
}
|
|
25376
|
-
function x(
|
|
25378
|
+
function x(w, R) {
|
|
25377
25379
|
const L = {
|
|
25378
25380
|
page: R,
|
|
25379
|
-
pageSize:
|
|
25380
|
-
numPages: E(
|
|
25381
|
-
indices: T(R,
|
|
25381
|
+
pageSize: w,
|
|
25382
|
+
numPages: E(w),
|
|
25383
|
+
indices: T(R, w)
|
|
25382
25384
|
};
|
|
25383
|
-
return
|
|
25385
|
+
return C(L), L;
|
|
25384
25386
|
}
|
|
25385
25387
|
s.useEffect(() => {
|
|
25386
|
-
|
|
25388
|
+
C({
|
|
25387
25389
|
numPages: E(),
|
|
25388
25390
|
indices: T()
|
|
25389
25391
|
});
|
|
@@ -25395,16 +25397,16 @@ function Gu(e) {
|
|
|
25395
25397
|
function I() {
|
|
25396
25398
|
return typeof c == "number" ? c : "many";
|
|
25397
25399
|
}
|
|
25398
|
-
function k(
|
|
25399
|
-
const R = x(
|
|
25400
|
+
function k(w) {
|
|
25401
|
+
const R = x(w.target.value, 1);
|
|
25400
25402
|
n(R.page, R.pageSize, R.indices);
|
|
25401
25403
|
}
|
|
25402
|
-
function B(
|
|
25403
|
-
const R = N(
|
|
25404
|
+
function B(w) {
|
|
25405
|
+
const R = N(w);
|
|
25404
25406
|
n(R.page, v.pageSize, R.indices);
|
|
25405
25407
|
}
|
|
25406
|
-
const
|
|
25407
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
25408
|
+
const _ = K(p || "sps-pagination", t);
|
|
25409
|
+
return /* @__PURE__ */ s.createElement("div", { className: _, "data-testid": l, ...g }, /* @__PURE__ */ s.createElement("div", { "data-testid": `${l}__size-selector`, className: "sps-page-size-selector" }, "View", /* @__PURE__ */ s.createElement(
|
|
25408
25410
|
Dr,
|
|
25409
25411
|
{
|
|
25410
25412
|
options: a,
|
|
@@ -25415,7 +25417,7 @@ function Gu(e) {
|
|
|
25415
25417
|
className: "ml-1 mr-1",
|
|
25416
25418
|
disabled: f
|
|
25417
25419
|
}
|
|
25418
|
-
), "Per Page"), m ? /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__details" }, `Viewing ${v.indices[0]} - ${v.indices[1]}`) : /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__details" }, `Viewing ${v.indices[0]} - ${v.indices[1]} of ${I()}`), /* @__PURE__ */ s.createElement(
|
|
25420
|
+
), "Per Page"), m ? /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__details" }, `Viewing ${v.indices[0]} - ${v.indices[1]} of many`) : /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__details" }, `Viewing ${v.indices[0]} - ${v.indices[1]} of ${I()}`), /* @__PURE__ */ s.createElement(
|
|
25419
25421
|
Pi,
|
|
25420
25422
|
{
|
|
25421
25423
|
numPages: v.numPages,
|
|
@@ -26439,7 +26441,7 @@ function zu({
|
|
|
26439
26441
|
ref: h,
|
|
26440
26442
|
unsafelyReplaceClassName: g,
|
|
26441
26443
|
value: v,
|
|
26442
|
-
...
|
|
26444
|
+
...C
|
|
26443
26445
|
}) {
|
|
26444
26446
|
const E = o || a, T = s.useRef(null), { wrapperId: N, controlId: x } = Et(l), I = K(
|
|
26445
26447
|
g || "sps-radio-button",
|
|
@@ -26450,8 +26452,8 @@ function zu({
|
|
|
26450
26452
|
t
|
|
26451
26453
|
);
|
|
26452
26454
|
function k(B) {
|
|
26453
|
-
var
|
|
26454
|
-
E && (E.setValue(v), E.markAsDirty()), u && u(B), (
|
|
26455
|
+
var _;
|
|
26456
|
+
E && (E.setValue(v), E.markAsDirty()), u && u(B), (_ = T.current) == null || _.focus();
|
|
26455
26457
|
}
|
|
26456
26458
|
return /* @__PURE__ */ s.createElement(
|
|
26457
26459
|
ut,
|
|
@@ -26480,7 +26482,7 @@ function zu({
|
|
|
26480
26482
|
checked: e,
|
|
26481
26483
|
disabled: r,
|
|
26482
26484
|
onChange: k,
|
|
26483
|
-
...
|
|
26485
|
+
...C
|
|
26484
26486
|
}
|
|
26485
26487
|
),
|
|
26486
26488
|
/* @__PURE__ */ s.createElement("label", { className: "sps-checkable__label", htmlFor: x }, f || "")
|
|
@@ -27179,14 +27181,14 @@ const sx = {
|
|
|
27179
27181
|
a
|
|
27180
27182
|
), [g, v] = qe(
|
|
27181
27183
|
c || (o ? o[0] : "")
|
|
27182
|
-
), [
|
|
27184
|
+
), [C, E] = qe(""), T = (k, B) => {
|
|
27183
27185
|
h(k), r && r(k, B);
|
|
27184
27186
|
}, N = (k) => {
|
|
27185
27187
|
v(k), l && l(k);
|
|
27186
|
-
}, x = (k) => k ? k.some((B) => B.name.toLowerCase().includes(
|
|
27188
|
+
}, x = (k) => k ? k.some((B) => B.name.toLowerCase().includes(C)) || k.some((B) => x(B.subNavItems || [])) : !1, I = n.map(
|
|
27187
27189
|
(k) => ({
|
|
27188
27190
|
...k,
|
|
27189
|
-
navItems: k.navItems.filter((B) => B.name.toLowerCase().includes(
|
|
27191
|
+
navItems: k.navItems.filter((B) => B.name.toLowerCase().includes(C) || x(B.subNavItems || []))
|
|
27190
27192
|
})
|
|
27191
27193
|
);
|
|
27192
27194
|
return a !== m.current && (h(a), m.current = a), /* @__PURE__ */ s.createElement("div", { className: "sps-side-nav sps-card" }, e && /* @__PURE__ */ s.createElement("div", { className: "sps-card__header", title: e }, /* @__PURE__ */ s.createElement("div", { className: "sps-card__title" }, t && /* @__PURE__ */ s.createElement("i", { className: `sps-icon sps-icon-${t}` }), e)), o && /* @__PURE__ */ s.createElement("nav", { className: "sps-nav sps-nav--tabs" }, o.map((k) => /* @__PURE__ */ s.createElement(
|
|
@@ -27233,15 +27235,15 @@ const sx = {
|
|
|
27233
27235
|
},
|
|
27234
27236
|
k.sectionTitle
|
|
27235
27237
|
),
|
|
27236
|
-
k.navItems.map((
|
|
27237
|
-
var
|
|
27238
|
+
k.navItems.map((_) => {
|
|
27239
|
+
var w;
|
|
27238
27240
|
return /* @__PURE__ */ s.createElement(
|
|
27239
27241
|
qu,
|
|
27240
27242
|
{
|
|
27241
27243
|
branch: {
|
|
27242
|
-
...
|
|
27244
|
+
..._,
|
|
27243
27245
|
expanded: Ai(
|
|
27244
|
-
|
|
27246
|
+
_.subNavItems || [],
|
|
27245
27247
|
a
|
|
27246
27248
|
)
|
|
27247
27249
|
},
|
|
@@ -27249,7 +27251,7 @@ const sx = {
|
|
|
27249
27251
|
setActiveBranch: (R, L) => {
|
|
27250
27252
|
T(R, L);
|
|
27251
27253
|
},
|
|
27252
|
-
key: (
|
|
27254
|
+
key: (w = _.key) != null ? w : _.name
|
|
27253
27255
|
}
|
|
27254
27256
|
);
|
|
27255
27257
|
})
|
|
@@ -27651,7 +27653,7 @@ function Ju(e) {
|
|
|
27651
27653
|
spinningTitle: u,
|
|
27652
27654
|
unsafelyReplaceClassName: h,
|
|
27653
27655
|
...g
|
|
27654
|
-
} = e, v = s.useRef(null), [
|
|
27656
|
+
} = e, v = s.useRef(null), [C, E] = s.useState({ width: 0 }), [T, N] = s.useState(!1), [x, I] = s.useState(!1);
|
|
27655
27657
|
s.useLayoutEffect(() => {
|
|
27656
27658
|
v.current && E({
|
|
27657
27659
|
width: v.current.offsetWidth
|
|
@@ -27663,7 +27665,7 @@ function Ju(e) {
|
|
|
27663
27665
|
N(!0);
|
|
27664
27666
|
}, B = () => {
|
|
27665
27667
|
N(!1);
|
|
27666
|
-
},
|
|
27668
|
+
}, _ = K(
|
|
27667
27669
|
h || "sps-split-button",
|
|
27668
27670
|
`sps-split-button--${f}`,
|
|
27669
27671
|
T && "sps-split-button--open",
|
|
@@ -27674,7 +27676,7 @@ function Ju(e) {
|
|
|
27674
27676
|
{
|
|
27675
27677
|
className: n,
|
|
27676
27678
|
"data-testid": r,
|
|
27677
|
-
style: { width:
|
|
27679
|
+
style: { width: C.width },
|
|
27678
27680
|
kind: f,
|
|
27679
27681
|
icon: p,
|
|
27680
27682
|
href: o,
|
|
@@ -27682,7 +27684,7 @@ function Ju(e) {
|
|
|
27682
27684
|
spinningTitle: u
|
|
27683
27685
|
},
|
|
27684
27686
|
l
|
|
27685
|
-
) : /* @__PURE__ */ s.createElement("div", { ref: v, className:
|
|
27687
|
+
) : /* @__PURE__ */ s.createElement("div", { ref: v, className: _, "data-testid": r, ...g }, /* @__PURE__ */ s.createElement(
|
|
27686
27688
|
je,
|
|
27687
27689
|
{
|
|
27688
27690
|
kind: f,
|
|
@@ -27879,7 +27881,7 @@ function Zu(e) {
|
|
|
27879
27881
|
o && "sps-summary-list-row--selected",
|
|
27880
27882
|
n
|
|
27881
27883
|
), [
|
|
27882
|
-
|
|
27884
|
+
C,
|
|
27883
27885
|
E
|
|
27884
27886
|
] = Kt(t, [
|
|
27885
27887
|
{ type: na }
|
|
@@ -27908,7 +27910,7 @@ function Zu(e) {
|
|
|
27908
27910
|
},
|
|
27909
27911
|
E
|
|
27910
27912
|
),
|
|
27911
|
-
|
|
27913
|
+
C
|
|
27912
27914
|
);
|
|
27913
27915
|
}
|
|
27914
27916
|
Object.assign(Zu, {
|
|
@@ -28311,13 +28313,13 @@ function Qu({
|
|
|
28311
28313
|
suppressTooltips: m = !1,
|
|
28312
28314
|
...u
|
|
28313
28315
|
}) {
|
|
28314
|
-
const { t: h } = s.useContext(We), g = !!e.length, [v,
|
|
28315
|
-
|
|
28316
|
+
const { t: h } = s.useContext(We), g = !!e.length, [v, C] = s.useState(!1), [E, T] = s.useState(g), N = s.useRef(null), x = s.useRef(null), I = s.useCallback(() => {
|
|
28317
|
+
C(!1), o && o();
|
|
28316
28318
|
}, []);
|
|
28317
28319
|
s.useEffect(() => {
|
|
28318
28320
|
v ? window.addEventListener("resize", I) : window.removeEventListener("resize", I);
|
|
28319
28321
|
}, [v]);
|
|
28320
|
-
const k = is("sps-task-queue-portal"), B = s.useContext($t), [
|
|
28322
|
+
const k = is("sps-task-queue-portal"), B = s.useContext($t), [_] = v ? Er(
|
|
28321
28323
|
x,
|
|
28322
28324
|
N,
|
|
28323
28325
|
t,
|
|
@@ -28325,13 +28327,13 @@ function Qu({
|
|
|
28325
28327
|
altPosition: t,
|
|
28326
28328
|
...B
|
|
28327
28329
|
}
|
|
28328
|
-
) : [{}, !1],
|
|
28329
|
-
|
|
28330
|
+
) : [{}, !1], w = r.position || we.BOTTOM_RIGHT, R = r.kind || Yt.DEFAULT, L = e.filter((O) => O.unread).length, V = e.filter((O) => O.status === _s.IN_PROGRESS).length, H = e.some((O) => O.status === _s.COMPLETED || O.status === _s.ERRORED), M = s.useRef(o);
|
|
28331
|
+
M.current = o;
|
|
28330
28332
|
const $ = s.useRef(null), G = () => {
|
|
28331
|
-
g && !v ? (
|
|
28333
|
+
g && !v ? (C(!0), a && a()) : v && (C(!1), o && o()), $.current && ($.current.scrollTop = 0);
|
|
28332
28334
|
}, q = (O) => O.status === _s.IN_PROGRESS ? Al[O.status] : `sps-icon sps-icon-${Al[O.status]}`;
|
|
28333
28335
|
s.useEffect(() => {
|
|
28334
|
-
v && !g && (
|
|
28336
|
+
v && !g && (C(!1), M.current && M.current());
|
|
28335
28337
|
}, [v, g]);
|
|
28336
28338
|
const A = s.useRef();
|
|
28337
28339
|
s.useEffect(() => {
|
|
@@ -28340,7 +28342,7 @@ function Qu({
|
|
|
28340
28342
|
}, Pl)) : (A.current && (window.clearTimeout(A.current), A.current = void 0), T(!1));
|
|
28341
28343
|
}, [L]), s.useEffect(() => {
|
|
28342
28344
|
const O = () => {
|
|
28343
|
-
|
|
28345
|
+
C((Y) => (Y && M.current && M.current(), !1));
|
|
28344
28346
|
};
|
|
28345
28347
|
return document.addEventListener("click", O), () => {
|
|
28346
28348
|
document.removeEventListener("click", O);
|
|
@@ -28412,7 +28414,7 @@ function Qu({
|
|
|
28412
28414
|
Vt,
|
|
28413
28415
|
{
|
|
28414
28416
|
for: N,
|
|
28415
|
-
position:
|
|
28417
|
+
position: w,
|
|
28416
28418
|
kind: R,
|
|
28417
28419
|
showOn: g ? bt.MANUAL : bt.MOUSEOVER,
|
|
28418
28420
|
isShown: E && !v ? xe.VISIBLE : xe.HIDDEN,
|
|
@@ -28431,7 +28433,7 @@ function Qu({
|
|
|
28431
28433
|
v && "sps-task-queue__task-list--open",
|
|
28432
28434
|
"z-stratum-dropdown"
|
|
28433
28435
|
),
|
|
28434
|
-
style:
|
|
28436
|
+
style: _
|
|
28435
28437
|
},
|
|
28436
28438
|
/* @__PURE__ */ s.createElement("div", { ref: $, className: "sps-task-queue__task-list-tasks" }, e.map((O, Y) => /* @__PURE__ */ s.createElement(
|
|
28437
28439
|
"div",
|
|
@@ -28815,15 +28817,15 @@ function em({
|
|
|
28815
28817
|
additionalText: g,
|
|
28816
28818
|
...v
|
|
28817
28819
|
}) {
|
|
28818
|
-
const
|
|
28819
|
-
function x(
|
|
28820
|
-
|
|
28820
|
+
const C = r || n, { wrapperId: E, controlId: T } = Et(a, C), N = s.useRef(null);
|
|
28821
|
+
function x(_, w) {
|
|
28822
|
+
C && (C.setValue(_), C.markAsDirty()), l && N.current && l(w || new Jn(N.current));
|
|
28821
28823
|
}
|
|
28822
28824
|
function I() {
|
|
28823
28825
|
N.current && (N.current.value = "", x(""));
|
|
28824
28826
|
}
|
|
28825
|
-
function k(
|
|
28826
|
-
x(
|
|
28827
|
+
function k(_) {
|
|
28828
|
+
x(_.target.value, _);
|
|
28827
28829
|
}
|
|
28828
28830
|
const B = K(
|
|
28829
28831
|
u || "sps-textarea",
|
|
@@ -29010,13 +29012,13 @@ function nm(e) {
|
|
|
29010
29012
|
...v
|
|
29011
29013
|
} = e;
|
|
29012
29014
|
tv("SpsToggle", tm, e);
|
|
29013
|
-
const
|
|
29015
|
+
const C = l || o, [E, T] = s.useState(t), { wrapperId: N, controlId: x } = Et(c, C), I = `${N}_status-label`, k = `${N}_description`, B = s.useRef(null);
|
|
29014
29016
|
s.useEffect(() => T(t), [t]);
|
|
29015
|
-
function
|
|
29017
|
+
function _(R) {
|
|
29016
29018
|
var L;
|
|
29017
|
-
T(R.target.checked),
|
|
29019
|
+
T(R.target.checked), C && (C.setValue(R.target.checked), C.markAsDirty()), m && m(R.target.checked), (L = B.current) == null || L.focus();
|
|
29018
29020
|
}
|
|
29019
|
-
const
|
|
29021
|
+
const w = K(
|
|
29020
29022
|
g || "sps-toggle",
|
|
29021
29023
|
E && "sps-toggle--active",
|
|
29022
29024
|
f && "sps-toggle--large",
|
|
@@ -29033,7 +29035,7 @@ function nm(e) {
|
|
|
29033
29035
|
ref: u,
|
|
29034
29036
|
"data-testid": `${h}`
|
|
29035
29037
|
},
|
|
29036
|
-
/* @__PURE__ */ s.createElement("div", { className:
|
|
29038
|
+
/* @__PURE__ */ s.createElement("div", { className: w }, /* @__PURE__ */ s.createElement(
|
|
29037
29039
|
"input",
|
|
29038
29040
|
{
|
|
29039
29041
|
type: "checkbox",
|
|
@@ -29042,7 +29044,7 @@ function nm(e) {
|
|
|
29042
29044
|
id: x,
|
|
29043
29045
|
checked: E || !1,
|
|
29044
29046
|
disabled: a,
|
|
29045
|
-
onChange:
|
|
29047
|
+
onChange: _,
|
|
29046
29048
|
"aria-describedby": `${I},${k}`,
|
|
29047
29049
|
"data-testid": `${h}__input`,
|
|
29048
29050
|
...v
|
|
@@ -30455,7 +30457,7 @@ function hm({
|
|
|
30455
30457
|
"data-testid": h,
|
|
30456
30458
|
...g
|
|
30457
30459
|
}) {
|
|
30458
|
-
const v = r || n, { wrapperId:
|
|
30460
|
+
const v = r || n, { wrapperId: C, controlId: E } = Et(a, v), [T, N] = un({
|
|
30459
30461
|
keyDown: null,
|
|
30460
30462
|
searchText: "",
|
|
30461
30463
|
activeTagIndex: null,
|
|
@@ -30471,14 +30473,14 @@ function hm({
|
|
|
30471
30473
|
(A = I.current) == null || A.focus();
|
|
30472
30474
|
}, 0);
|
|
30473
30475
|
}
|
|
30474
|
-
function
|
|
30476
|
+
function _(A) {
|
|
30475
30477
|
N({ searchText: "" }), v && (v.setValue(A), v.markAsDirty()), o && o(
|
|
30476
30478
|
new Jn({ value: A })
|
|
30477
30479
|
);
|
|
30478
30480
|
}
|
|
30479
|
-
function
|
|
30481
|
+
function w(A) {
|
|
30480
30482
|
const ne = (f || []).filter((oe, O) => O !== A);
|
|
30481
|
-
|
|
30483
|
+
_(ne);
|
|
30482
30484
|
}
|
|
30483
30485
|
function R(A) {
|
|
30484
30486
|
N({ searchText: A.target.value });
|
|
@@ -30493,7 +30495,7 @@ function hm({
|
|
|
30493
30495
|
(A) => {
|
|
30494
30496
|
N({ activeTagIndex: null, searchText: "" });
|
|
30495
30497
|
const ne = T.searchText.trim(), oe = f || [];
|
|
30496
|
-
ne && oe.indexOf(ne) === -1 &&
|
|
30498
|
+
ne && oe.indexOf(ne) === -1 && _([...oe, ...od(ne, u)]), !((A.key === "Tab" || A.key === "Enter") && !T.searchText) && A.preventDefault();
|
|
30497
30499
|
},
|
|
30498
30500
|
[
|
|
30499
30501
|
T.searchText,
|
|
@@ -30504,27 +30506,27 @@ function hm({
|
|
|
30504
30506
|
function H(A) {
|
|
30505
30507
|
V(A);
|
|
30506
30508
|
}
|
|
30507
|
-
function
|
|
30509
|
+
function M(A) {
|
|
30508
30510
|
var ne;
|
|
30509
30511
|
if (!t) {
|
|
30510
30512
|
const oe = !A.target.selectionStart && f && f.length, O = f ? f.length : 0;
|
|
30511
30513
|
switch (A.key) {
|
|
30512
30514
|
case "Backspace":
|
|
30513
30515
|
if (T.activeTagIndex === O - 1) {
|
|
30514
|
-
|
|
30516
|
+
w(T.activeTagIndex), B();
|
|
30515
30517
|
return;
|
|
30516
30518
|
}
|
|
30517
30519
|
if (T.activeTagIndex !== null) {
|
|
30518
|
-
|
|
30520
|
+
w(T.activeTagIndex);
|
|
30519
30521
|
return;
|
|
30520
30522
|
}
|
|
30521
30523
|
if (oe) {
|
|
30522
|
-
|
|
30524
|
+
_(f.slice(0, O - 1)), B();
|
|
30523
30525
|
return;
|
|
30524
30526
|
}
|
|
30525
30527
|
break;
|
|
30526
30528
|
case "Delete":
|
|
30527
|
-
T.activeTagIndex !== null && (
|
|
30529
|
+
T.activeTagIndex !== null && (w(T.activeTagIndex), B());
|
|
30528
30530
|
break;
|
|
30529
30531
|
case "Enter":
|
|
30530
30532
|
case "Tab":
|
|
@@ -30557,24 +30559,24 @@ function hm({
|
|
|
30557
30559
|
}
|
|
30558
30560
|
}
|
|
30559
30561
|
function $(A) {
|
|
30560
|
-
|
|
30562
|
+
_([]), A.stopPropagation();
|
|
30561
30563
|
}
|
|
30562
30564
|
const G = K(
|
|
30563
30565
|
p || "sps-multi-select",
|
|
30564
30566
|
t && "sps-form-control--disabled",
|
|
30565
30567
|
e
|
|
30566
|
-
), q = new Array((f == null ? void 0 : f.length) || 0).fill(0).map((A, ne) => `${
|
|
30568
|
+
), q = new Array((f == null ? void 0 : f.length) || 0).fill(0).map((A, ne) => `${C}_tag-${ne}`);
|
|
30567
30569
|
return /* @__PURE__ */ s.createElement(
|
|
30568
30570
|
ut,
|
|
30569
30571
|
{
|
|
30570
|
-
id:
|
|
30572
|
+
id: C,
|
|
30571
30573
|
className: G,
|
|
30572
30574
|
formControl: n,
|
|
30573
30575
|
formMeta: r,
|
|
30574
30576
|
ref: x,
|
|
30575
30577
|
inputRef: I,
|
|
30576
30578
|
focusInputOnClick: !0,
|
|
30577
|
-
onKeyDown:
|
|
30579
|
+
onKeyDown: M,
|
|
30578
30580
|
role: "listbox",
|
|
30579
30581
|
"aria-multiselectable": !0,
|
|
30580
30582
|
"aria-activedescendant": q[T.activeTagIndex || 0],
|
|
@@ -30602,7 +30604,7 @@ function hm({
|
|
|
30602
30604
|
disabled: t,
|
|
30603
30605
|
"aria-selected": "true",
|
|
30604
30606
|
key: q[ne],
|
|
30605
|
-
onRemove: () =>
|
|
30607
|
+
onRemove: () => w(ne)
|
|
30606
30608
|
},
|
|
30607
30609
|
/* @__PURE__ */ s.createElement("span", null, A)
|
|
30608
30610
|
)), /* @__PURE__ */ s.createElement(
|
|
@@ -30617,7 +30619,7 @@ function hm({
|
|
|
30617
30619
|
id: E,
|
|
30618
30620
|
onBlur: H,
|
|
30619
30621
|
onChange: R,
|
|
30620
|
-
onKeyDown:
|
|
30622
|
+
onKeyDown: M,
|
|
30621
30623
|
disabled: t,
|
|
30622
30624
|
role: "listbox",
|
|
30623
30625
|
"aria-multiselectable": "true",
|
|
@@ -30836,74 +30838,77 @@ function Sm({
|
|
|
30836
30838
|
onChange: a,
|
|
30837
30839
|
value: o,
|
|
30838
30840
|
twentyFourHour: l = !1,
|
|
30839
|
-
"data-testid": c
|
|
30841
|
+
"data-testid": c,
|
|
30842
|
+
...p
|
|
30840
30843
|
}) {
|
|
30841
|
-
var
|
|
30842
|
-
const { current:
|
|
30843
|
-
function
|
|
30844
|
-
n && (n.setValue(
|
|
30844
|
+
var _;
|
|
30845
|
+
const { current: f } = qn(r), m = l ? o : o == null ? void 0 : o.split(" ")[0], u = X.validateTimeString(m, l) ? X.padIncompleteTimeString(m, l) : "", h = l ? "" : (_ = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : _.toUpperCase(), g = u && id.find((w) => w === h) || "", [v, C] = s.useState(u), [E, T] = s.useState(g || "AM");
|
|
30846
|
+
function N(w) {
|
|
30847
|
+
n && (n.setValue(w || ""), n.markAsDirty()), a && a(w || "");
|
|
30845
30848
|
}
|
|
30846
|
-
function
|
|
30847
|
-
X.validateTimeString(
|
|
30849
|
+
function x(w) {
|
|
30850
|
+
X.validateTimeString(w.target.value, l) && C(w.target.value);
|
|
30848
30851
|
}
|
|
30849
|
-
function
|
|
30850
|
-
if (X.validateTimeString(
|
|
30851
|
-
const
|
|
30852
|
-
|
|
30852
|
+
function I() {
|
|
30853
|
+
if (X.validateTimeString(v, l)) {
|
|
30854
|
+
const w = X.padIncompleteTimeString(v, l);
|
|
30855
|
+
C(w), N(w && !l ? `${w} ${E}` : w || "");
|
|
30853
30856
|
} else
|
|
30854
|
-
|
|
30857
|
+
N("");
|
|
30855
30858
|
}
|
|
30856
|
-
function
|
|
30857
|
-
|
|
30858
|
-
const
|
|
30859
|
-
|
|
30859
|
+
function k(w) {
|
|
30860
|
+
T(w.target.value);
|
|
30861
|
+
const R = X.padIncompleteTimeString(v, l);
|
|
30862
|
+
R && !l && N(`${R} ${w.target.value}`);
|
|
30860
30863
|
}
|
|
30861
30864
|
s.useEffect(() => {
|
|
30862
|
-
|
|
30863
|
-
}, [
|
|
30864
|
-
|
|
30865
|
-
}, [
|
|
30866
|
-
const
|
|
30865
|
+
u !== v && C(u);
|
|
30866
|
+
}, [u]), s.useEffect(() => {
|
|
30867
|
+
g && g !== E && T(g);
|
|
30868
|
+
}, [g]);
|
|
30869
|
+
const B = K("sps-time-input", e);
|
|
30867
30870
|
return l ? /* @__PURE__ */ s.createElement(
|
|
30868
30871
|
dn,
|
|
30869
30872
|
{
|
|
30870
|
-
id:
|
|
30873
|
+
id: f,
|
|
30871
30874
|
"data-testid": c,
|
|
30872
|
-
className:
|
|
30875
|
+
className: B,
|
|
30873
30876
|
placeholder: "00:00",
|
|
30874
|
-
value:
|
|
30875
|
-
onChange:
|
|
30876
|
-
onBlur:
|
|
30877
|
-
onKeyDown: (
|
|
30878
|
-
|
|
30877
|
+
value: v,
|
|
30878
|
+
onChange: x,
|
|
30879
|
+
onBlur: I,
|
|
30880
|
+
onKeyDown: (w) => {
|
|
30881
|
+
w.key === "Enter" && I();
|
|
30879
30882
|
},
|
|
30880
30883
|
disabled: t,
|
|
30881
|
-
notClearable: !0
|
|
30884
|
+
notClearable: !0,
|
|
30885
|
+
...p
|
|
30882
30886
|
}
|
|
30883
30887
|
) : /* @__PURE__ */ s.createElement(as, null, /* @__PURE__ */ s.createElement(
|
|
30884
30888
|
dn,
|
|
30885
30889
|
{
|
|
30886
|
-
id:
|
|
30890
|
+
id: f,
|
|
30887
30891
|
"data-testid": c,
|
|
30888
|
-
className:
|
|
30892
|
+
className: B,
|
|
30889
30893
|
placeholder: "12:00",
|
|
30890
|
-
value:
|
|
30891
|
-
onChange:
|
|
30892
|
-
onBlur:
|
|
30893
|
-
onKeyDown: (
|
|
30894
|
-
|
|
30894
|
+
value: v,
|
|
30895
|
+
onChange: x,
|
|
30896
|
+
onBlur: I,
|
|
30897
|
+
onKeyDown: (w) => {
|
|
30898
|
+
w.key === "Enter" && I();
|
|
30895
30899
|
},
|
|
30896
30900
|
disabled: t,
|
|
30897
|
-
notClearable: !0
|
|
30901
|
+
notClearable: !0,
|
|
30902
|
+
...p
|
|
30898
30903
|
}
|
|
30899
30904
|
), /* @__PURE__ */ s.createElement(
|
|
30900
30905
|
Dr,
|
|
30901
30906
|
{
|
|
30902
|
-
id: `${
|
|
30907
|
+
id: `${f}__select`,
|
|
30903
30908
|
"data-testid": `${c}__select`,
|
|
30904
30909
|
options: id,
|
|
30905
|
-
value:
|
|
30906
|
-
onChange:
|
|
30910
|
+
value: E,
|
|
30911
|
+
onChange: k,
|
|
30907
30912
|
disabled: t,
|
|
30908
30913
|
notClearable: !0
|
|
30909
30914
|
}
|
|
@@ -31211,8 +31216,8 @@ function gm(e, t, n) {
|
|
|
31211
31216
|
n && (Object.is(c, h) || n(h, ...g)), l || (c = h);
|
|
31212
31217
|
};
|
|
31213
31218
|
typeof f == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((g, ...v) => {
|
|
31214
|
-
let
|
|
31215
|
-
return u(
|
|
31219
|
+
let C = f(l ? c : g, ...v);
|
|
31220
|
+
return u(C, ...m), l ? g : C;
|
|
31216
31221
|
})) : (l || a(f), u(f, ...m));
|
|
31217
31222
|
}, [
|
|
31218
31223
|
l,
|
|
@@ -31767,7 +31772,7 @@ function _m(e) {
|
|
|
31767
31772
|
allowTextSelectionOnPress: m,
|
|
31768
31773
|
ref: u,
|
|
31769
31774
|
...h
|
|
31770
|
-
} = wk(e), [g, v] = qe(!1),
|
|
31775
|
+
} = wk(e), [g, v] = qe(!1), C = Se({
|
|
31771
31776
|
isPressed: !1,
|
|
31772
31777
|
ignoreEmulatedMouseEvents: !1,
|
|
31773
31778
|
ignoreClickAfterPress: !1,
|
|
@@ -31777,84 +31782,84 @@ function _m(e) {
|
|
|
31777
31782
|
target: null,
|
|
31778
31783
|
isOverTarget: !1,
|
|
31779
31784
|
pointerType: null
|
|
31780
|
-
}), { addGlobalListener: E, removeAllGlobalListeners: T } = Nm(), N = pr((
|
|
31781
|
-
let L =
|
|
31785
|
+
}), { addGlobalListener: E, removeAllGlobalListeners: T } = Nm(), N = pr((w, R) => {
|
|
31786
|
+
let L = C.current;
|
|
31782
31787
|
if (l || L.didFirePressStart)
|
|
31783
31788
|
return !1;
|
|
31784
31789
|
let V = !0;
|
|
31785
31790
|
if (L.isTriggeringEvent = !0, r) {
|
|
31786
|
-
let H = new Hs("pressstart", R,
|
|
31791
|
+
let H = new Hs("pressstart", R, w);
|
|
31787
31792
|
r(H), V = H.shouldStopPropagation;
|
|
31788
31793
|
}
|
|
31789
31794
|
return n && n(!0), L.isTriggeringEvent = !1, L.didFirePressStart = !0, v(!0), V;
|
|
31790
|
-
}), x = pr((
|
|
31791
|
-
let V =
|
|
31795
|
+
}), x = pr((w, R, L = !0) => {
|
|
31796
|
+
let V = C.current;
|
|
31792
31797
|
if (!V.didFirePressStart)
|
|
31793
31798
|
return !1;
|
|
31794
31799
|
V.ignoreClickAfterPress = !0, V.didFirePressStart = !1, V.isTriggeringEvent = !0;
|
|
31795
31800
|
let H = !0;
|
|
31796
31801
|
if (a) {
|
|
31797
|
-
let
|
|
31798
|
-
a(
|
|
31802
|
+
let M = new Hs("pressend", R, w);
|
|
31803
|
+
a(M), H = M.shouldStopPropagation;
|
|
31799
31804
|
}
|
|
31800
31805
|
if (n && n(!1), v(!1), t && L && !l) {
|
|
31801
|
-
let
|
|
31802
|
-
t(
|
|
31806
|
+
let M = new Hs("press", R, w);
|
|
31807
|
+
t(M), H && (H = M.shouldStopPropagation);
|
|
31803
31808
|
}
|
|
31804
31809
|
return V.isTriggeringEvent = !1, H;
|
|
31805
|
-
}), I = pr((
|
|
31806
|
-
let L =
|
|
31810
|
+
}), I = pr((w, R) => {
|
|
31811
|
+
let L = C.current;
|
|
31807
31812
|
if (l)
|
|
31808
31813
|
return !1;
|
|
31809
31814
|
if (o) {
|
|
31810
31815
|
L.isTriggeringEvent = !0;
|
|
31811
|
-
let V = new Hs("pressup", R,
|
|
31816
|
+
let V = new Hs("pressup", R, w);
|
|
31812
31817
|
return o(V), L.isTriggeringEvent = !1, V.shouldStopPropagation;
|
|
31813
31818
|
}
|
|
31814
31819
|
return !0;
|
|
31815
|
-
}), k = pr((
|
|
31816
|
-
let R =
|
|
31817
|
-
R.isPressed && R.target && (R.isOverTarget && R.pointerType != null && x(ln(R.target,
|
|
31818
|
-
}), B = pr((
|
|
31819
|
-
f && k(
|
|
31820
|
-
}),
|
|
31821
|
-
let
|
|
31820
|
+
}), k = pr((w) => {
|
|
31821
|
+
let R = C.current;
|
|
31822
|
+
R.isPressed && R.target && (R.isOverTarget && R.pointerType != null && x(ln(R.target, w), R.pointerType, !1), R.isPressed = !1, R.isOverTarget = !1, R.activePointerId = null, R.pointerType = null, T(), m || $s(R.target));
|
|
31823
|
+
}), B = pr((w) => {
|
|
31824
|
+
f && k(w);
|
|
31825
|
+
}), _ = Qe(() => {
|
|
31826
|
+
let w = C.current, R = {
|
|
31822
31827
|
onKeyDown(V) {
|
|
31823
31828
|
if (vo(V.nativeEvent, V.currentTarget) && V.currentTarget.contains(V.target)) {
|
|
31824
31829
|
var H;
|
|
31825
31830
|
gd(V.target, V.key) && V.preventDefault();
|
|
31826
|
-
let
|
|
31827
|
-
!
|
|
31831
|
+
let M = !0;
|
|
31832
|
+
!w.isPressed && !V.repeat && (w.target = V.currentTarget, w.isPressed = !0, M = N(V, "keyboard"), E(Gt(V.currentTarget), "keyup", L, !1)), M && V.stopPropagation(), V.metaKey && Un() && ((H = w.metaKeyEvents) === null || H === void 0 || H.set(V.key, V.nativeEvent));
|
|
31828
31833
|
} else
|
|
31829
|
-
V.key === "Meta" && (
|
|
31834
|
+
V.key === "Meta" && (w.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
31830
31835
|
},
|
|
31831
31836
|
onKeyUp(V) {
|
|
31832
|
-
vo(V.nativeEvent, V.currentTarget) && !V.repeat && V.currentTarget.contains(V.target) &&
|
|
31837
|
+
vo(V.nativeEvent, V.currentTarget) && !V.repeat && V.currentTarget.contains(V.target) && w.target && I(ln(w.target, V), "keyboard");
|
|
31833
31838
|
},
|
|
31834
31839
|
onClick(V) {
|
|
31835
|
-
if (!(V && !V.currentTarget.contains(V.target)) && V && V.button === 0 && !
|
|
31840
|
+
if (!(V && !V.currentTarget.contains(V.target)) && V && V.button === 0 && !w.isTriggeringEvent && !jn.isOpening) {
|
|
31836
31841
|
let H = !0;
|
|
31837
|
-
if (l && V.preventDefault(), !
|
|
31842
|
+
if (l && V.preventDefault(), !w.ignoreClickAfterPress && !w.ignoreEmulatedMouseEvents && !w.isPressed && (w.pointerType === "virtual" || Ao(V.nativeEvent))) {
|
|
31838
31843
|
!l && !p && pn(V.currentTarget);
|
|
31839
|
-
let
|
|
31840
|
-
H =
|
|
31844
|
+
let M = N(V, "virtual"), $ = I(V, "virtual"), G = x(V, "virtual");
|
|
31845
|
+
H = M && $ && G;
|
|
31841
31846
|
}
|
|
31842
|
-
|
|
31847
|
+
w.ignoreEmulatedMouseEvents = !1, w.ignoreClickAfterPress = !1, H && V.stopPropagation();
|
|
31843
31848
|
}
|
|
31844
31849
|
}
|
|
31845
31850
|
}, L = (V) => {
|
|
31846
31851
|
var H;
|
|
31847
|
-
if (
|
|
31848
|
-
var
|
|
31852
|
+
if (w.isPressed && w.target && vo(V, w.target)) {
|
|
31853
|
+
var M;
|
|
31849
31854
|
gd(V.target, V.key) && V.preventDefault();
|
|
31850
|
-
let G = V.target, q = x(ln(
|
|
31851
|
-
T(), q && V.stopPropagation(), V.key !== "Enter" && Gi(
|
|
31852
|
-
} else if (V.key === "Meta" && ((H =
|
|
31855
|
+
let G = V.target, q = x(ln(w.target, V), "keyboard", w.target.contains(G));
|
|
31856
|
+
T(), q && V.stopPropagation(), V.key !== "Enter" && Gi(w.target) && w.target.contains(G) && !V[hd] && (V[hd] = !0, jn(w.target, V, !1)), w.isPressed = !1, (M = w.metaKeyEvents) === null || M === void 0 || M.delete(V.key);
|
|
31857
|
+
} else if (V.key === "Meta" && ((H = w.metaKeyEvents) === null || H === void 0 ? void 0 : H.size)) {
|
|
31853
31858
|
var $;
|
|
31854
|
-
let G =
|
|
31855
|
-
|
|
31859
|
+
let G = w.metaKeyEvents;
|
|
31860
|
+
w.metaKeyEvents = void 0;
|
|
31856
31861
|
for (let q of G.values())
|
|
31857
|
-
($ =
|
|
31862
|
+
($ = w.target) === null || $ === void 0 || $.dispatchEvent(new KeyboardEvent("keyup", q));
|
|
31858
31863
|
}
|
|
31859
31864
|
};
|
|
31860
31865
|
if (typeof PointerEvent < "u") {
|
|
@@ -31862,97 +31867,97 @@ function _m(e) {
|
|
|
31862
31867
|
if ($.button !== 0 || !$.currentTarget.contains($.target))
|
|
31863
31868
|
return;
|
|
31864
31869
|
if (gk($.nativeEvent)) {
|
|
31865
|
-
|
|
31870
|
+
w.pointerType = "virtual";
|
|
31866
31871
|
return;
|
|
31867
31872
|
}
|
|
31868
|
-
yo($.currentTarget) && $.preventDefault(),
|
|
31873
|
+
yo($.currentTarget) && $.preventDefault(), w.pointerType = $.pointerType;
|
|
31869
31874
|
let G = !0;
|
|
31870
|
-
|
|
31875
|
+
w.isPressed || (w.isPressed = !0, w.isOverTarget = !0, w.activePointerId = $.pointerId, w.target = $.currentTarget, !l && !p && pn($.currentTarget), m || fd(w.target), G = N($, w.pointerType), E(Gt($.currentTarget), "pointermove", V, !1), E(Gt($.currentTarget), "pointerup", H, !1), E(Gt($.currentTarget), "pointercancel", M, !1)), G && $.stopPropagation();
|
|
31871
31876
|
}, R.onMouseDown = ($) => {
|
|
31872
31877
|
!$.currentTarget.contains($.target) || $.button === 0 && (yo($.currentTarget) && $.preventDefault(), $.stopPropagation());
|
|
31873
31878
|
}, R.onPointerUp = ($) => {
|
|
31874
|
-
!$.currentTarget.contains($.target) ||
|
|
31879
|
+
!$.currentTarget.contains($.target) || w.pointerType === "virtual" || $.button === 0 && cr($, $.currentTarget) && I($, w.pointerType || $.pointerType);
|
|
31875
31880
|
};
|
|
31876
31881
|
let V = ($) => {
|
|
31877
|
-
$.pointerId ===
|
|
31882
|
+
$.pointerId === w.activePointerId && (w.target && cr($, w.target) ? !w.isOverTarget && w.pointerType != null && (w.isOverTarget = !0, N(ln(w.target, $), w.pointerType)) : w.target && w.isOverTarget && w.pointerType != null && (w.isOverTarget = !1, x(ln(w.target, $), w.pointerType, !1), B($)));
|
|
31878
31883
|
}, H = ($) => {
|
|
31879
|
-
$.pointerId ===
|
|
31880
|
-
},
|
|
31884
|
+
$.pointerId === w.activePointerId && w.isPressed && $.button === 0 && w.target && (cr($, w.target) && w.pointerType != null ? x(ln(w.target, $), w.pointerType) : w.isOverTarget && w.pointerType != null && x(ln(w.target, $), w.pointerType, !1), w.isPressed = !1, w.isOverTarget = !1, w.activePointerId = null, w.pointerType = null, T(), m || $s(w.target));
|
|
31885
|
+
}, M = ($) => {
|
|
31881
31886
|
k($);
|
|
31882
31887
|
};
|
|
31883
31888
|
R.onDragStart = ($) => {
|
|
31884
31889
|
!$.currentTarget.contains($.target) || k($);
|
|
31885
31890
|
};
|
|
31886
31891
|
} else {
|
|
31887
|
-
R.onMouseDown = (
|
|
31888
|
-
if (
|
|
31892
|
+
R.onMouseDown = (M) => {
|
|
31893
|
+
if (M.button !== 0 || !M.currentTarget.contains(M.target))
|
|
31889
31894
|
return;
|
|
31890
|
-
if (yo(
|
|
31891
|
-
|
|
31895
|
+
if (yo(M.currentTarget) && M.preventDefault(), w.ignoreEmulatedMouseEvents) {
|
|
31896
|
+
M.stopPropagation();
|
|
31892
31897
|
return;
|
|
31893
31898
|
}
|
|
31894
|
-
|
|
31895
|
-
}, R.onMouseEnter = (
|
|
31896
|
-
if (!
|
|
31899
|
+
w.isPressed = !0, w.isOverTarget = !0, w.target = M.currentTarget, w.pointerType = Ao(M.nativeEvent) ? "virtual" : "mouse", !l && !p && pn(M.currentTarget), N(M, w.pointerType) && M.stopPropagation(), E(Gt(M.currentTarget), "mouseup", V, !1);
|
|
31900
|
+
}, R.onMouseEnter = (M) => {
|
|
31901
|
+
if (!M.currentTarget.contains(M.target))
|
|
31897
31902
|
return;
|
|
31898
31903
|
let $ = !0;
|
|
31899
|
-
|
|
31900
|
-
}, R.onMouseLeave = (
|
|
31901
|
-
if (!
|
|
31904
|
+
w.isPressed && !w.ignoreEmulatedMouseEvents && w.pointerType != null && (w.isOverTarget = !0, $ = N(M, w.pointerType)), $ && M.stopPropagation();
|
|
31905
|
+
}, R.onMouseLeave = (M) => {
|
|
31906
|
+
if (!M.currentTarget.contains(M.target))
|
|
31902
31907
|
return;
|
|
31903
31908
|
let $ = !0;
|
|
31904
|
-
|
|
31905
|
-
}, R.onMouseUp = (
|
|
31906
|
-
!
|
|
31909
|
+
w.isPressed && !w.ignoreEmulatedMouseEvents && w.pointerType != null && (w.isOverTarget = !1, $ = x(M, w.pointerType, !1), B(M)), $ && M.stopPropagation();
|
|
31910
|
+
}, R.onMouseUp = (M) => {
|
|
31911
|
+
!M.currentTarget.contains(M.target) || !w.ignoreEmulatedMouseEvents && M.button === 0 && I(M, w.pointerType || "mouse");
|
|
31907
31912
|
};
|
|
31908
|
-
let V = (
|
|
31909
|
-
if (
|
|
31910
|
-
if (
|
|
31911
|
-
|
|
31913
|
+
let V = (M) => {
|
|
31914
|
+
if (M.button === 0) {
|
|
31915
|
+
if (w.isPressed = !1, T(), w.ignoreEmulatedMouseEvents) {
|
|
31916
|
+
w.ignoreEmulatedMouseEvents = !1;
|
|
31912
31917
|
return;
|
|
31913
31918
|
}
|
|
31914
|
-
|
|
31919
|
+
w.target && cr(M, w.target) && w.pointerType != null ? x(ln(w.target, M), w.pointerType) : w.target && w.isOverTarget && w.pointerType != null && x(ln(w.target, M), w.pointerType, !1), w.isOverTarget = !1;
|
|
31915
31920
|
}
|
|
31916
31921
|
};
|
|
31917
|
-
R.onTouchStart = (
|
|
31918
|
-
if (!
|
|
31922
|
+
R.onTouchStart = (M) => {
|
|
31923
|
+
if (!M.currentTarget.contains(M.target))
|
|
31919
31924
|
return;
|
|
31920
|
-
let $ = Ck(
|
|
31925
|
+
let $ = Ck(M.nativeEvent);
|
|
31921
31926
|
if (!$)
|
|
31922
31927
|
return;
|
|
31923
|
-
|
|
31924
|
-
}, R.onTouchMove = (
|
|
31925
|
-
if (!
|
|
31928
|
+
w.activePointerId = $.identifier, w.ignoreEmulatedMouseEvents = !0, w.isOverTarget = !0, w.isPressed = !0, w.target = M.currentTarget, w.pointerType = "touch", !l && !p && pn(M.currentTarget), m || fd(w.target), N(M, w.pointerType) && M.stopPropagation(), E(aa(M.currentTarget), "scroll", H, !0);
|
|
31929
|
+
}, R.onTouchMove = (M) => {
|
|
31930
|
+
if (!M.currentTarget.contains(M.target))
|
|
31926
31931
|
return;
|
|
31927
|
-
if (!
|
|
31928
|
-
|
|
31932
|
+
if (!w.isPressed) {
|
|
31933
|
+
M.stopPropagation();
|
|
31929
31934
|
return;
|
|
31930
31935
|
}
|
|
31931
|
-
let $ = Sd(
|
|
31932
|
-
$ && cr($,
|
|
31933
|
-
}, R.onTouchEnd = (
|
|
31934
|
-
if (!
|
|
31936
|
+
let $ = Sd(M.nativeEvent, w.activePointerId), G = !0;
|
|
31937
|
+
$ && cr($, M.currentTarget) ? !w.isOverTarget && w.pointerType != null && (w.isOverTarget = !0, G = N(M, w.pointerType)) : w.isOverTarget && w.pointerType != null && (w.isOverTarget = !1, G = x(M, w.pointerType, !1), B(M)), G && M.stopPropagation();
|
|
31938
|
+
}, R.onTouchEnd = (M) => {
|
|
31939
|
+
if (!M.currentTarget.contains(M.target))
|
|
31935
31940
|
return;
|
|
31936
|
-
if (!
|
|
31937
|
-
|
|
31941
|
+
if (!w.isPressed) {
|
|
31942
|
+
M.stopPropagation();
|
|
31938
31943
|
return;
|
|
31939
31944
|
}
|
|
31940
|
-
let $ = Sd(
|
|
31941
|
-
$ && cr($,
|
|
31942
|
-
}, R.onTouchCancel = (
|
|
31943
|
-
!
|
|
31945
|
+
let $ = Sd(M.nativeEvent, w.activePointerId), G = !0;
|
|
31946
|
+
$ && cr($, M.currentTarget) && w.pointerType != null ? (I(M, w.pointerType), G = x(M, w.pointerType)) : w.isOverTarget && w.pointerType != null && (G = x(M, w.pointerType, !1)), G && M.stopPropagation(), w.isPressed = !1, w.activePointerId = null, w.isOverTarget = !1, w.ignoreEmulatedMouseEvents = !0, w.target && !m && $s(w.target), T();
|
|
31947
|
+
}, R.onTouchCancel = (M) => {
|
|
31948
|
+
!M.currentTarget.contains(M.target) || (M.stopPropagation(), w.isPressed && k(M));
|
|
31944
31949
|
};
|
|
31945
|
-
let H = (
|
|
31946
|
-
|
|
31947
|
-
currentTarget:
|
|
31950
|
+
let H = (M) => {
|
|
31951
|
+
w.isPressed && M.target.contains(w.target) && k({
|
|
31952
|
+
currentTarget: w.target,
|
|
31948
31953
|
shiftKey: !1,
|
|
31949
31954
|
ctrlKey: !1,
|
|
31950
31955
|
metaKey: !1,
|
|
31951
31956
|
altKey: !1
|
|
31952
31957
|
});
|
|
31953
31958
|
};
|
|
31954
|
-
R.onDragStart = (
|
|
31955
|
-
!
|
|
31959
|
+
R.onDragStart = (M) => {
|
|
31960
|
+
!M.currentTarget.contains(M.target) || k(M);
|
|
31956
31961
|
};
|
|
31957
31962
|
}
|
|
31958
31963
|
return R;
|
|
@@ -31969,13 +31974,13 @@ function _m(e) {
|
|
|
31969
31974
|
I
|
|
31970
31975
|
]);
|
|
31971
31976
|
return $e(() => () => {
|
|
31972
|
-
var
|
|
31973
|
-
m || $s((
|
|
31977
|
+
var w;
|
|
31978
|
+
m || $s((w = C.current.target) !== null && w !== void 0 ? w : void 0);
|
|
31974
31979
|
}, [
|
|
31975
31980
|
m
|
|
31976
31981
|
]), {
|
|
31977
31982
|
isPressed: c || g,
|
|
31978
|
-
pressProps: _n(h,
|
|
31983
|
+
pressProps: _n(h, _)
|
|
31979
31984
|
};
|
|
31980
31985
|
}
|
|
31981
31986
|
function Gi(e) {
|
|
@@ -32377,7 +32382,7 @@ function zk(e) {
|
|
|
32377
32382
|
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
|
|
32378
32383
|
}
|
|
32379
32384
|
function qk(e) {
|
|
32380
|
-
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: f = !1, shouldUseVirtualFocus: m, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction:
|
|
32385
|
+
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: f = !1, shouldUseVirtualFocus: m, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction: C } = Am(), E = Cm(), T = (L) => {
|
|
32381
32386
|
if (L.altKey && L.key === "Tab" && L.preventDefault(), !r.current.contains(L.target))
|
|
32382
32387
|
return;
|
|
32383
32388
|
const V = (O, Y) => {
|
|
@@ -32398,10 +32403,10 @@ function qk(e) {
|
|
|
32398
32403
|
switch (L.key) {
|
|
32399
32404
|
case "ArrowDown":
|
|
32400
32405
|
if (n.getKeyBelow) {
|
|
32401
|
-
var H,
|
|
32406
|
+
var H, M;
|
|
32402
32407
|
L.preventDefault();
|
|
32403
32408
|
let O = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (H = n.getFirstKey) === null || H === void 0 ? void 0 : H.call(n);
|
|
32404
|
-
O == null && o && (O = (
|
|
32409
|
+
O == null && o && (O = (M = n.getFirstKey) === null || M === void 0 ? void 0 : M.call(n, t.focusedKey)), V(O);
|
|
32405
32410
|
}
|
|
32406
32411
|
break;
|
|
32407
32412
|
case "ArrowUp":
|
|
@@ -32417,7 +32422,7 @@ function qk(e) {
|
|
|
32417
32422
|
var q, A;
|
|
32418
32423
|
L.preventDefault();
|
|
32419
32424
|
let O = n.getKeyLeftOf(t.focusedKey);
|
|
32420
|
-
O == null && o && (O =
|
|
32425
|
+
O == null && o && (O = C === "rtl" ? (q = n.getFirstKey) === null || q === void 0 ? void 0 : q.call(n, t.focusedKey) : (A = n.getLastKey) === null || A === void 0 ? void 0 : A.call(n, t.focusedKey)), V(O, C === "rtl" ? "first" : "last");
|
|
32421
32426
|
}
|
|
32422
32427
|
break;
|
|
32423
32428
|
case "ArrowRight":
|
|
@@ -32425,7 +32430,7 @@ function qk(e) {
|
|
|
32425
32430
|
var ne, oe;
|
|
32426
32431
|
L.preventDefault();
|
|
32427
32432
|
let O = n.getKeyRightOf(t.focusedKey);
|
|
32428
|
-
O == null && o && (O =
|
|
32433
|
+
O == null && o && (O = C === "rtl" ? (ne = n.getLastKey) === null || ne === void 0 ? void 0 : ne.call(n, t.focusedKey) : (oe = n.getFirstKey) === null || oe === void 0 ? void 0 : oe.call(n, t.focusedKey)), V(O, C === "rtl" ? "last" : "first");
|
|
32429
32434
|
}
|
|
32430
32435
|
break;
|
|
32431
32436
|
case "Home":
|
|
@@ -32495,16 +32500,16 @@ function qk(e) {
|
|
|
32495
32500
|
}
|
|
32496
32501
|
if (!!L.currentTarget.contains(L.target)) {
|
|
32497
32502
|
if (t.setFocused(!0), t.focusedKey == null) {
|
|
32498
|
-
let
|
|
32503
|
+
let M = (G) => {
|
|
32499
32504
|
G != null && (t.setFocusedKey(G), p && t.replaceSelection(G));
|
|
32500
32505
|
}, $ = L.relatedTarget;
|
|
32501
32506
|
var V, H;
|
|
32502
|
-
$ && L.currentTarget.compareDocumentPosition($) & Node.DOCUMENT_POSITION_FOLLOWING ?
|
|
32507
|
+
$ && L.currentTarget.compareDocumentPosition($) & Node.DOCUMENT_POSITION_FOLLOWING ? M((V = t.lastSelectedKey) !== null && V !== void 0 ? V : n.getLastKey()) : M((H = t.firstSelectedKey) !== null && H !== void 0 ? H : n.getFirstKey());
|
|
32503
32508
|
} else
|
|
32504
32509
|
h || (g.current.scrollTop = N.current.top, g.current.scrollLeft = N.current.left);
|
|
32505
32510
|
if (!h && t.focusedKey != null) {
|
|
32506
|
-
let
|
|
32507
|
-
|
|
32511
|
+
let M = g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);
|
|
32512
|
+
M && (M.contains(document.activeElement) || pn(M), $o() === "keyboard" && ud(M, {
|
|
32508
32513
|
containingElement: r.current
|
|
32509
32514
|
}));
|
|
32510
32515
|
}
|
|
@@ -32545,22 +32550,22 @@ function qk(e) {
|
|
|
32545
32550
|
t.isFocused,
|
|
32546
32551
|
r
|
|
32547
32552
|
]);
|
|
32548
|
-
let
|
|
32553
|
+
let _ = {
|
|
32549
32554
|
onKeyDown: T,
|
|
32550
32555
|
onFocus: x,
|
|
32551
32556
|
onBlur: I,
|
|
32552
32557
|
onMouseDown(L) {
|
|
32553
32558
|
g.current === L.target && L.preventDefault();
|
|
32554
32559
|
}
|
|
32555
|
-
}, { typeSelectProps:
|
|
32560
|
+
}, { typeSelectProps: w } = jk({
|
|
32556
32561
|
keyboardDelegate: n,
|
|
32557
32562
|
selectionManager: t
|
|
32558
32563
|
});
|
|
32559
|
-
f || (
|
|
32564
|
+
f || (_ = _n(w, _));
|
|
32560
32565
|
let R;
|
|
32561
32566
|
return m || (R = t.focusedKey == null ? 0 : -1), {
|
|
32562
32567
|
collectionProps: {
|
|
32563
|
-
...
|
|
32568
|
+
..._,
|
|
32564
32569
|
tabIndex: R
|
|
32565
32570
|
}
|
|
32566
32571
|
};
|
|
@@ -32601,11 +32606,11 @@ function Jk(e) {
|
|
|
32601
32606
|
} : c && (g.onMouseDown = (A) => {
|
|
32602
32607
|
A.preventDefault();
|
|
32603
32608
|
});
|
|
32604
|
-
let v = t.isLink(n) && m === "override",
|
|
32605
|
-
p && p(),
|
|
32609
|
+
let v = t.isLink(n) && m === "override", C = t.isLink(n) && m !== "selection" && m !== "none", E = !c && t.canSelectItem(n) && !v, T = (p || C) && !c, N = T && (t.selectionBehavior === "replace" ? !E : !E || t.isEmpty), x = T && E && t.selectionBehavior === "replace", I = N || x, k = Se(null), B = I && E, _ = Se(!1), w = Se(!1), R = (A) => {
|
|
32610
|
+
p && p(), C && u.open(r.current, A);
|
|
32606
32611
|
}, L = {};
|
|
32607
32612
|
a ? (L.onPressStart = (A) => {
|
|
32608
|
-
k.current = A.pointerType,
|
|
32613
|
+
k.current = A.pointerType, _.current = B, A.pointerType === "keyboard" && (!I || Cd()) && h(A);
|
|
32609
32614
|
}, f ? (L.onPressUp = N ? null : (A) => {
|
|
32610
32615
|
A.pointerType !== "keyboard" && E && h(A);
|
|
32611
32616
|
}, L.onPress = N ? R : null) : L.onPress = (A) => {
|
|
@@ -32616,11 +32621,11 @@ function Jk(e) {
|
|
|
32616
32621
|
} else
|
|
32617
32622
|
A.pointerType !== "keyboard" && E && h(A);
|
|
32618
32623
|
}) : (L.onPressStart = (A) => {
|
|
32619
|
-
k.current = A.pointerType,
|
|
32624
|
+
k.current = A.pointerType, _.current = B, w.current = N, E && (A.pointerType === "mouse" && !N || A.pointerType === "keyboard" && (!T || Cd())) && h(A);
|
|
32620
32625
|
}, L.onPress = (A) => {
|
|
32621
|
-
(A.pointerType === "touch" || A.pointerType === "pen" || A.pointerType === "virtual" || A.pointerType === "keyboard" && I && wd() || A.pointerType === "mouse" &&
|
|
32626
|
+
(A.pointerType === "touch" || A.pointerType === "pen" || A.pointerType === "virtual" || A.pointerType === "keyboard" && I && wd() || A.pointerType === "mouse" && w.current) && (I ? R(A) : E && h(A));
|
|
32622
32627
|
}), g["data-key"] = n, L.preventFocusOnPress = o;
|
|
32623
|
-
let { pressProps: V, isPressed: H } = _m(L),
|
|
32628
|
+
let { pressProps: V, isPressed: H } = _m(L), M = x ? (A) => {
|
|
32624
32629
|
k.current === "mouse" && (A.stopPropagation(), A.preventDefault(), R(A));
|
|
32625
32630
|
} : void 0, { longPressProps: $ } = Rk({
|
|
32626
32631
|
isDisabled: !B,
|
|
@@ -32628,13 +32633,13 @@ function Jk(e) {
|
|
|
32628
32633
|
A.pointerType === "touch" && (h(A), t.setSelectionBehavior("toggle"));
|
|
32629
32634
|
}
|
|
32630
32635
|
}), G = (A) => {
|
|
32631
|
-
k.current === "touch" &&
|
|
32636
|
+
k.current === "touch" && _.current && A.preventDefault();
|
|
32632
32637
|
}, q = t.isLink(n) ? (A) => {
|
|
32633
32638
|
jn.isOpening || A.preventDefault();
|
|
32634
32639
|
} : void 0;
|
|
32635
32640
|
return {
|
|
32636
32641
|
itemProps: _n(g, E || N ? V : {}, B ? $ : {}, {
|
|
32637
|
-
onDoubleClick:
|
|
32642
|
+
onDoubleClick: M,
|
|
32638
32643
|
onDragStartCapture: G,
|
|
32639
32644
|
onClick: q
|
|
32640
32645
|
}),
|
|
@@ -32667,7 +32672,7 @@ function Zk(e, t, n) {
|
|
|
32667
32672
|
isDisabled: m,
|
|
32668
32673
|
shouldSelectOnPressUp: l,
|
|
32669
32674
|
linkBehavior: "selection"
|
|
32670
|
-
}), g = oa(t, a, "tab"), v = oa(t, a, "tabpanel"), { tabIndex:
|
|
32675
|
+
}), g = oa(t, a, "tab"), v = oa(t, a, "tabpanel"), { tabIndex: C } = u, E = t.collection.getItem(a), T = tk(E == null ? void 0 : E.props, {
|
|
32671
32676
|
isLink: !!(!(E == null || (r = E.props) === null || r === void 0) && r.href),
|
|
32672
32677
|
labelable: !0
|
|
32673
32678
|
});
|
|
@@ -32677,7 +32682,7 @@ function Zk(e, t, n) {
|
|
|
32677
32682
|
"aria-selected": f,
|
|
32678
32683
|
"aria-disabled": m || void 0,
|
|
32679
32684
|
"aria-controls": f ? v : void 0,
|
|
32680
|
-
tabIndex: m ? void 0 :
|
|
32685
|
+
tabIndex: m ? void 0 : C,
|
|
32681
32686
|
role: "tab"
|
|
32682
32687
|
}),
|
|
32683
32688
|
isSelected: f,
|
|
@@ -32821,7 +32826,7 @@ function sI(e) {
|
|
|
32821
32826
|
e.selectedKeys
|
|
32822
32827
|
]), h = Qe(() => Dd(e.defaultSelectedKeys, new At()), [
|
|
32823
32828
|
e.defaultSelectedKeys
|
|
32824
|
-
]), [g, v] = gm(u, h, e.onSelectionChange),
|
|
32829
|
+
]), [g, v] = gm(u, h, e.onSelectionChange), C = Qe(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
32825
32830
|
e.disabledKeys
|
|
32826
32831
|
]), [E, T] = qe(a);
|
|
32827
32832
|
a === "replace" && E === "toggle" && typeof g == "object" && g.size === 0 && T("replace");
|
|
@@ -32854,7 +32859,7 @@ function sI(e) {
|
|
|
32854
32859
|
setSelectedKeys(x) {
|
|
32855
32860
|
(r || !rI(x, g)) && v(x);
|
|
32856
32861
|
},
|
|
32857
|
-
disabledKeys:
|
|
32862
|
+
disabledKeys: C,
|
|
32858
32863
|
disabledBehavior: o
|
|
32859
32864
|
};
|
|
32860
32865
|
}
|
|
@@ -33134,15 +33139,15 @@ function oI(e) {
|
|
|
33134
33139
|
if (n.focusedKey != null && !l.getItem(n.focusedKey)) {
|
|
33135
33140
|
const f = p.current.getItem(n.focusedKey), m = [
|
|
33136
33141
|
...p.current.getKeys()
|
|
33137
|
-
].map((
|
|
33138
|
-
const E = p.current.getItem(
|
|
33142
|
+
].map((C) => {
|
|
33143
|
+
const E = p.current.getItem(C);
|
|
33139
33144
|
return E.type === "item" ? E : null;
|
|
33140
|
-
}).filter((
|
|
33145
|
+
}).filter((C) => C !== null), u = [
|
|
33141
33146
|
...l.getKeys()
|
|
33142
|
-
].map((
|
|
33143
|
-
const E = l.getItem(
|
|
33147
|
+
].map((C) => {
|
|
33148
|
+
const E = l.getItem(C);
|
|
33144
33149
|
return E.type === "item" ? E : null;
|
|
33145
|
-
}).filter((
|
|
33150
|
+
}).filter((C) => C !== null), h = m.length - u.length;
|
|
33146
33151
|
let g = Math.min(h > 1 ? Math.max(f.index - h + 1, 0) : f.index, u.length - 1), v;
|
|
33147
33152
|
for (; g >= 0; ) {
|
|
33148
33153
|
if (!c.isDisabled(u[g].key)) {
|
|
@@ -33342,7 +33347,7 @@ function yI({
|
|
|
33342
33347
|
function v() {
|
|
33343
33348
|
g(null);
|
|
33344
33349
|
}
|
|
33345
|
-
function
|
|
33350
|
+
function C(N) {
|
|
33346
33351
|
g(bI(N.target.value));
|
|
33347
33352
|
}
|
|
33348
33353
|
function E(N) {
|
|
@@ -33374,7 +33379,7 @@ function yI({
|
|
|
33374
33379
|
id: u,
|
|
33375
33380
|
name: a,
|
|
33376
33381
|
placeholder: "0.00",
|
|
33377
|
-
onChange:
|
|
33382
|
+
onChange: C,
|
|
33378
33383
|
title: c,
|
|
33379
33384
|
value: vI(p),
|
|
33380
33385
|
disabled: t,
|
|
@@ -33673,7 +33678,7 @@ function CI(e) {
|
|
|
33673
33678
|
t && "sps-insight-tile--has-detail"
|
|
33674
33679
|
), { t: g } = s.useContext(We), [
|
|
33675
33680
|
v,
|
|
33676
|
-
|
|
33681
|
+
C,
|
|
33677
33682
|
E
|
|
33678
33683
|
] = (p ? g("design-system:insightTile.partnerCount", {
|
|
33679
33684
|
count: p,
|
|
@@ -33686,7 +33691,7 @@ function CI(e) {
|
|
|
33686
33691
|
style: { "-webkit-box-orient": "vertical" }
|
|
33687
33692
|
},
|
|
33688
33693
|
l
|
|
33689
|
-
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === f ? /* @__PURE__ */ s.createElement("div", null, g("design-system:insightTile.all")) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", null, v), /* @__PURE__ */ s.createElement("div", null,
|
|
33694
|
+
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === f ? /* @__PURE__ */ s.createElement("div", null, g("design-system:insightTile.all")) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", null, v), /* @__PURE__ */ s.createElement("div", null, C), /* @__PURE__ */ s.createElement("div", null, E)), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partners-text" }, g("design-system:insightTile.partners")))));
|
|
33690
33695
|
}
|
|
33691
33696
|
Object.assign(CI, {
|
|
33692
33697
|
props: wI,
|
|
@@ -34026,7 +34031,7 @@ function FI(e) {
|
|
|
34026
34031
|
tabs: m = [],
|
|
34027
34032
|
unsafelyReplaceClassName: u,
|
|
34028
34033
|
...h
|
|
34029
|
-
} = e, g = s.useRef(null), [v,
|
|
34034
|
+
} = e, g = s.useRef(null), [v, C] = Kt(n, [{ type: Hm }]), [E, T] = s.useState(t || m[0]);
|
|
34030
34035
|
s.useEffect(() => {
|
|
34031
34036
|
T(t || m[0]);
|
|
34032
34037
|
}, [t]);
|
|
@@ -34066,7 +34071,7 @@ function FI(e) {
|
|
|
34066
34071
|
/* @__PURE__ */ s.createElement("span", null, I),
|
|
34067
34072
|
I === E && /* @__PURE__ */ s.createElement("span", { className: "sr-only" }, "(current)")
|
|
34068
34073
|
)), v),
|
|
34069
|
-
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__content" }, /* @__PURE__ */ s.createElement($t.Provider, { value: { parentElementRef: g, fixed: !0 } },
|
|
34074
|
+
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__content" }, /* @__PURE__ */ s.createElement($t.Provider, { value: { parentElementRef: g, fixed: !0 } }, C))
|
|
34070
34075
|
));
|
|
34071
34076
|
}
|
|
34072
34077
|
Object.assign(FI, {
|
|
@@ -34313,7 +34318,7 @@ function Wm({
|
|
|
34313
34318
|
g === Wt.DESCENDING && "sps-sorting-header__cell--sorted-desc",
|
|
34314
34319
|
o && "sps-sorting-header__cell--sort-disabled",
|
|
34315
34320
|
e
|
|
34316
|
-
),
|
|
34321
|
+
), C = f ? f / 16 : m, E = C ? { ...u, width: `${C}rem` } : u;
|
|
34317
34322
|
return /* @__PURE__ */ s.createElement(
|
|
34318
34323
|
"div",
|
|
34319
34324
|
{
|