@spscommerce/ds-react 8.23.5 → 8.23.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/fieldset/SpsFieldset.d.ts +4 -1
- package/lib/index.js +757 -754
- package/lib/index.umd.cjs +62 -62
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -697,24 +697,24 @@ function av(e, t = {}) {
|
|
|
697
697
|
const [, n] = qe({}), r = fe(!1);
|
|
698
698
|
r.current = !1;
|
|
699
699
|
const a = fe(t), o = Bt((h) => {
|
|
700
|
-
var T,
|
|
700
|
+
var T, w;
|
|
701
701
|
const g = u.current;
|
|
702
702
|
let v;
|
|
703
703
|
if (h)
|
|
704
704
|
if (h.path)
|
|
705
705
|
if (h.markAsBlurred) {
|
|
706
|
-
const
|
|
707
|
-
if (
|
|
708
|
-
|
|
706
|
+
const E = Xr(g.formMeta, h.path);
|
|
707
|
+
if (E) {
|
|
708
|
+
E.focused = !1;
|
|
709
709
|
const N = Zr(g.formValue, h.path);
|
|
710
|
-
|
|
710
|
+
E.validate(N, bn.ON_BLUR);
|
|
711
711
|
}
|
|
712
712
|
} else if (h.newValidators) {
|
|
713
713
|
if (a.current) {
|
|
714
|
-
const
|
|
714
|
+
const E = h.path.join(".");
|
|
715
715
|
a.current = {
|
|
716
716
|
...a.current,
|
|
717
|
-
[
|
|
717
|
+
[E]: h.newValidators
|
|
718
718
|
}, Vs(
|
|
719
719
|
g.formValue,
|
|
720
720
|
g.formMeta,
|
|
@@ -723,11 +723,11 @@ function av(e, t = {}) {
|
|
|
723
723
|
);
|
|
724
724
|
}
|
|
725
725
|
} else if (h.markAsSubmitted) {
|
|
726
|
-
const
|
|
727
|
-
if (
|
|
728
|
-
|
|
726
|
+
const E = Xr(g.formMeta, h.path);
|
|
727
|
+
if (E) {
|
|
728
|
+
E.submitted = !0;
|
|
729
729
|
const N = Zr(g.formValue, h.path);
|
|
730
|
-
|
|
730
|
+
E.validate(N, bn.ON_SUBMIT);
|
|
731
731
|
}
|
|
732
732
|
} else
|
|
733
733
|
v = Po(g.formValue, h.path), WS(v, h.path, h.value);
|
|
@@ -740,10 +740,10 @@ function av(e, t = {}) {
|
|
|
740
740
|
g.formValue,
|
|
741
741
|
g.formMeta,
|
|
742
742
|
a.current,
|
|
743
|
-
((
|
|
743
|
+
((w = h.updateFormOptions) == null ? void 0 : w.runValidators) ?? !0
|
|
744
744
|
)), v) {
|
|
745
745
|
g.formMeta.submitted = !1, Ul(v);
|
|
746
|
-
const
|
|
746
|
+
const E = GS(
|
|
747
747
|
g.formValue,
|
|
748
748
|
v
|
|
749
749
|
);
|
|
@@ -752,7 +752,7 @@ function av(e, t = {}) {
|
|
|
752
752
|
key: k,
|
|
753
753
|
parentPath: x,
|
|
754
754
|
objects: [, A]
|
|
755
|
-
} of
|
|
755
|
+
} of E) {
|
|
756
756
|
const L = Xr(
|
|
757
757
|
g.formMeta,
|
|
758
758
|
x
|
|
@@ -781,7 +781,7 @@ function av(e, t = {}) {
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
const N = /* @__PURE__ */ new Set();
|
|
784
|
-
if (
|
|
784
|
+
if (E.filter((I) => I.type === Un.DELETION).reduce((I, k) => (I.has(k.parentPath) || I.add(k.parentPath), I), N), Array.from(N).forEach((I) => {
|
|
785
785
|
const k = Xr(g.formMeta, I);
|
|
786
786
|
Array.isArray(k.fields) && (k.fields = k.fields.filter((x) => x !== void 0));
|
|
787
787
|
}), a.current) {
|
|
@@ -799,7 +799,7 @@ function av(e, t = {}) {
|
|
|
799
799
|
key: x,
|
|
800
800
|
parentPath: A,
|
|
801
801
|
objects: [, L]
|
|
802
|
-
} of
|
|
802
|
+
} of E)
|
|
803
803
|
if (typeof x != "symbol") {
|
|
804
804
|
let C = g.formMeta, O = v;
|
|
805
805
|
if (C) {
|
|
@@ -808,8 +808,8 @@ function av(e, t = {}) {
|
|
|
808
808
|
if (k === Un.ADDITION || k === Un.ALTERATION) {
|
|
809
809
|
const _ = C.fields[x];
|
|
810
810
|
if (!I.has(_) && (C.fields[x].validate(L[x], bn.ON_CHANGE), k === Un.ADDITION && _.fields))
|
|
811
|
-
for (const [V,
|
|
812
|
-
|
|
811
|
+
for (const [V, Y] of Object.entries(_.fields))
|
|
812
|
+
Y.validate(L[x][V], bn.ON_CHANGE);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -821,13 +821,13 @@ function av(e, t = {}) {
|
|
|
821
821
|
}, r.current || n({});
|
|
822
822
|
}, []), l = Bt((h, g) => {
|
|
823
823
|
h || g ? o({ value: h, updateFormOptions: g }) : o();
|
|
824
|
-
}, [o]), c = Bt((h, g, v = !1, T,
|
|
824
|
+
}, [o]), c = Bt((h, g, v = !1, T, w = !1) => {
|
|
825
825
|
h ? o({
|
|
826
826
|
path: h,
|
|
827
827
|
value: g,
|
|
828
828
|
markAsBlurred: v,
|
|
829
829
|
newValidators: T,
|
|
830
|
-
markAsSubmitted:
|
|
830
|
+
markAsSubmitted: w
|
|
831
831
|
}) : l();
|
|
832
832
|
}, [o, l]), p = tt(() => {
|
|
833
833
|
Ul(e);
|
|
@@ -865,14 +865,14 @@ const St = s.forwardRef(
|
|
|
865
865
|
function T() {
|
|
866
866
|
h && h !== t && h.current && l && l instanceof ta && l.markAsBlurred();
|
|
867
867
|
}
|
|
868
|
-
const
|
|
868
|
+
const w = H(
|
|
869
869
|
"sps-form-group",
|
|
870
870
|
(o && o.isRequired() || l && l.isRequired()) && "sps-form-group--required",
|
|
871
871
|
(o && !o.isValid() || l && l.isVisibilyInvalid()) && "sps-form-group--error",
|
|
872
872
|
l && l.hasPreventativeErrors() && "sps-form-group--preventative-error",
|
|
873
873
|
n
|
|
874
874
|
);
|
|
875
|
-
function
|
|
875
|
+
function E(N) {
|
|
876
876
|
a && g(), p && p(N);
|
|
877
877
|
}
|
|
878
878
|
return s.useEffect(() => {
|
|
@@ -886,10 +886,10 @@ const St = s.forwardRef(
|
|
|
886
886
|
"div",
|
|
887
887
|
{
|
|
888
888
|
...m,
|
|
889
|
-
className:
|
|
889
|
+
className: w,
|
|
890
890
|
ref: t,
|
|
891
891
|
tabIndex: -1,
|
|
892
|
-
onClick:
|
|
892
|
+
onClick: E,
|
|
893
893
|
onFocus: v,
|
|
894
894
|
onBlur: T
|
|
895
895
|
},
|
|
@@ -938,17 +938,17 @@ var ec = function(e, t) {
|
|
|
938
938
|
}
|
|
939
939
|
g != null && g === document.body && qa(g) && !qa(document.documentElement) || g != null && qa(g, c) && h.push(g);
|
|
940
940
|
}
|
|
941
|
-
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, T = n.visualViewport ? n.visualViewport.height : innerHeight,
|
|
942
|
-
var M = h[
|
|
941
|
+
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, T = n.visualViewport ? n.visualViewport.height : innerHeight, w = window.scrollX || pageXOffset, E = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), I = N.height, k = N.width, x = N.top, A = N.right, L = N.bottom, C = N.left, O = a === "start" || a === "nearest" ? x : a === "end" ? L : x + I / 2, _ = o === "center" ? C + k / 2 : o === "end" ? A : C, V = [], Y = 0; Y < h.length; Y++) {
|
|
942
|
+
var M = h[Y], X = M.getBoundingClientRect(), P = X.height, Q = X.width, F = X.top, j = X.right, re = X.bottom, K = X.left;
|
|
943
943
|
if (r === "if-needed" && x >= 0 && C >= 0 && L <= T && A <= v && x >= F && L <= re && C >= K && A <= j) return V;
|
|
944
|
-
var G = getComputedStyle(M), te = parseInt(G.borderLeftWidth, 10), ee = parseInt(G.borderTopWidth, 10), W = parseInt(G.borderRightWidth, 10), R = parseInt(G.borderBottomWidth, 10),
|
|
945
|
-
if (u === M)
|
|
944
|
+
var G = getComputedStyle(M), te = parseInt(G.borderLeftWidth, 10), ee = parseInt(G.borderTopWidth, 10), W = parseInt(G.borderRightWidth, 10), R = parseInt(G.borderBottomWidth, 10), U = 0, q = 0, ne = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - te - W : 0, oe = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - ee - R : 0, le = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : Q / M.offsetWidth : 0, ae = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : P / M.offsetHeight : 0;
|
|
945
|
+
if (u === M) U = a === "start" ? O : a === "end" ? O - T : a === "nearest" ? $s(E, E + T, T, ee, R, E + O, E + O + I, I) : O - T / 2, q = o === "start" ? _ : o === "center" ? _ - v / 2 : o === "end" ? _ - v : $s(w, w + v, v, te, W, w + _, w + _ + k, k), U = Math.max(0, U + E), q = Math.max(0, q + w);
|
|
946
946
|
else {
|
|
947
|
-
|
|
947
|
+
U = a === "start" ? O - F - ee : a === "end" ? O - re + R + oe : a === "nearest" ? $s(F, re, P, ee, R + oe, O, O + I, I) : O - (F + P / 2) + oe / 2, q = o === "start" ? _ - K - te : o === "center" ? _ - (K + Q / 2) + ne / 2 : o === "end" ? _ - j + W + ne : $s(K, j, Q, te, W + ne, _, _ + k, k);
|
|
948
948
|
var se = M.scrollLeft, we = M.scrollTop;
|
|
949
|
-
O += we - (
|
|
949
|
+
O += we - (U = Math.max(0, Math.min(we + U / ae, M.scrollHeight - P / ae + oe))), _ += se - (q = Math.max(0, Math.min(se + q / le, M.scrollWidth - Q / le + ne)));
|
|
950
950
|
}
|
|
951
|
-
V.push({ el: M, top:
|
|
951
|
+
V.push({ el: M, top: U, left: q });
|
|
952
952
|
}
|
|
953
953
|
return V;
|
|
954
954
|
};
|
|
@@ -1047,13 +1047,13 @@ function Zd(e) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
function dv(e, t, n, r, a, o, l, c) {
|
|
1049
1049
|
const p = l && l.current, m = p ? p.scrollTop : window.pageYOffset, f = c ? 0 : m, u = p ? p.scrollLeft : window.pageXOffset, h = c ? 0 : u, [g, v] = e.split(" ");
|
|
1050
|
-
let T,
|
|
1050
|
+
let T, w, E, N;
|
|
1051
1051
|
switch (g) {
|
|
1052
1052
|
case "top":
|
|
1053
|
-
|
|
1053
|
+
E = t.height - n.top - f - o[0];
|
|
1054
1054
|
break;
|
|
1055
1055
|
case "left":
|
|
1056
|
-
|
|
1056
|
+
w = t.width - n.left - h - o[0];
|
|
1057
1057
|
break;
|
|
1058
1058
|
case "right":
|
|
1059
1059
|
N = n.right + h - o[0];
|
|
@@ -1075,15 +1075,15 @@ function dv(e, t, n, r, a, o, l, c) {
|
|
|
1075
1075
|
g === "top" || g === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (g === "left" || g === "right") && (T = n.top + f + n.height / 2 - r.height / 2 + o[1]);
|
|
1076
1076
|
break;
|
|
1077
1077
|
case "bottom":
|
|
1078
|
-
|
|
1078
|
+
E = t.height - n.bottom - f + o[1];
|
|
1079
1079
|
break;
|
|
1080
1080
|
case "right":
|
|
1081
|
-
|
|
1081
|
+
w = t.width - n.right - h + o[1];
|
|
1082
1082
|
break;
|
|
1083
1083
|
default:
|
|
1084
1084
|
throw new Error(`Invalid position ${e}`);
|
|
1085
1085
|
}
|
|
1086
|
-
return [T,
|
|
1086
|
+
return [T, w, E, N];
|
|
1087
1087
|
}
|
|
1088
1088
|
function kr(e, t, n, {
|
|
1089
1089
|
altPosition: r,
|
|
@@ -1116,23 +1116,23 @@ function kr(e, t, n, {
|
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
|
-
const [T,
|
|
1120
|
-
let
|
|
1121
|
-
if (r && (T === "top" && f.top - m.height < cv || T === "right" && f.right + m.width > h || T === "bottom" && f.bottom + m.height > u || T === "left" && f.left - m.width < 0) && (
|
|
1119
|
+
const [T, w] = n.split(" ");
|
|
1120
|
+
let E = n;
|
|
1121
|
+
if (r && (T === "top" && f.top - m.height < cv || T === "right" && f.right + m.width > h || T === "bottom" && f.bottom + m.height > u || T === "left" && f.left - m.width < 0) && (E = r), w === "left" && f.left + m.width + ((p == null ? void 0 : p[1]) ?? 0) > /*
|
|
1122
1122
|
* use the right because this captures the users's actual viewable content and the farthest
|
|
1123
1123
|
* most right viewable portion of it.
|
|
1124
1124
|
*/
|
|
1125
1125
|
document.documentElement.getBoundingClientRect().right)
|
|
1126
1126
|
switch (T) {
|
|
1127
1127
|
case "bottom":
|
|
1128
|
-
|
|
1128
|
+
E = Ee.BOTTOM_RIGHT;
|
|
1129
1129
|
break;
|
|
1130
1130
|
case "top":
|
|
1131
|
-
|
|
1131
|
+
E = Ee.TOP_RIGHT;
|
|
1132
1132
|
break;
|
|
1133
1133
|
}
|
|
1134
1134
|
const N = a ? Math.max(f.width, m.width) : m.width, I = o ? f.width : N, [k, x, A, L] = dv(
|
|
1135
|
-
|
|
1135
|
+
E,
|
|
1136
1136
|
v,
|
|
1137
1137
|
f,
|
|
1138
1138
|
m,
|
|
@@ -1146,7 +1146,7 @@ function kr(e, t, n, {
|
|
|
1146
1146
|
bottom: Ks(A),
|
|
1147
1147
|
left: Ks(L)
|
|
1148
1148
|
};
|
|
1149
|
-
return c && (C.position = "fixed", C.zIndex = eb.BAR), a && (C.minWidth = `${f.width}px`), o && (C.width = `${f.width}px`), [C,
|
|
1149
|
+
return c && (C.position = "fixed", C.zIndex = eb.BAR), a && (C.minWidth = `${f.width}px`), o && (C.width = `${f.width}px`), [C, E === r];
|
|
1150
1150
|
}
|
|
1151
1151
|
return [{}, !1];
|
|
1152
1152
|
}
|
|
@@ -1428,8 +1428,8 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1428
1428
|
searchDebounce: g,
|
|
1429
1429
|
searchPlaceholder: v,
|
|
1430
1430
|
onSpecialActionSelect: T,
|
|
1431
|
-
attachTo:
|
|
1432
|
-
className:
|
|
1431
|
+
attachTo: w,
|
|
1432
|
+
className: E,
|
|
1433
1433
|
conformWidth: N,
|
|
1434
1434
|
id: I,
|
|
1435
1435
|
ignoreWidthStyles: k,
|
|
@@ -1440,7 +1440,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1440
1440
|
onOptionListChanged: O,
|
|
1441
1441
|
onOptionSelected: _,
|
|
1442
1442
|
onPositionFlip: V,
|
|
1443
|
-
onSelfToggle:
|
|
1443
|
+
onSelfToggle: Y,
|
|
1444
1444
|
optionRole: M,
|
|
1445
1445
|
positionOverride: X,
|
|
1446
1446
|
selectedOption: P,
|
|
@@ -1454,7 +1454,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1454
1454
|
disableDefaultOptionsFiltering: ee,
|
|
1455
1455
|
"data-testid": W,
|
|
1456
1456
|
...R
|
|
1457
|
-
} = e,
|
|
1457
|
+
} = e, U = s.useMemo(
|
|
1458
1458
|
() => Q ? new xo(Q, {
|
|
1459
1459
|
textKey: "label",
|
|
1460
1460
|
captionKey: "caption"
|
|
@@ -1473,7 +1473,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1473
1473
|
);
|
|
1474
1474
|
s.useEffect(() => {
|
|
1475
1475
|
Ue(
|
|
1476
|
-
oe ? kr(ae,
|
|
1476
|
+
oe ? kr(ae, w, mt, {
|
|
1477
1477
|
altPosition: bt,
|
|
1478
1478
|
setMinWidth: !k,
|
|
1479
1479
|
setWidth: !k && N,
|
|
@@ -1489,7 +1489,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1489
1489
|
let Se;
|
|
1490
1490
|
return oe && (Se = () => {
|
|
1491
1491
|
oe && Ue(
|
|
1492
|
-
kr(ae,
|
|
1492
|
+
kr(ae, w, mt, {
|
|
1493
1493
|
altPosition: bt,
|
|
1494
1494
|
setMinWidth: !k,
|
|
1495
1495
|
setWidth: !k && N,
|
|
@@ -1509,15 +1509,15 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1509
1509
|
ke.isAsync && "sps-option-list--searchable",
|
|
1510
1510
|
ge && "sps-option-list--opens-upward",
|
|
1511
1511
|
Q && Q.label && "sps-option-list--has-special-action",
|
|
1512
|
-
|
|
1512
|
+
E
|
|
1513
1513
|
), Nn = H(
|
|
1514
1514
|
F || "sps-option-list__options",
|
|
1515
1515
|
l && "sps-option-list__options--tall"
|
|
1516
1516
|
), ce = s.useCallback(() => {
|
|
1517
|
-
oe || (le(!0), De.current && De.current.focus(), ne(-1),
|
|
1518
|
-
}, [oe,
|
|
1519
|
-
oe && (le(!1), ne(-1),
|
|
1520
|
-
}, [oe,
|
|
1517
|
+
oe || (le(!0), De.current && De.current.focus(), ne(-1), Y && Y(!0));
|
|
1518
|
+
}, [oe, Y]), me = s.useCallback(() => {
|
|
1519
|
+
oe && (le(!1), ne(-1), Y && Y(!1));
|
|
1520
|
+
}, [oe, Y]), _e = s.useCallback((Se, ye) => {
|
|
1521
1521
|
ye || Se && !Se.disabled && (typeof Se.value == "function" ? (Se.value(), T && T()) : typeof _ == "function" && _(Se.value), A || me());
|
|
1522
1522
|
}, [_, me]), ct = s.useCallback(
|
|
1523
1523
|
(Se, ye, Je) => {
|
|
@@ -1534,7 +1534,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1534
1534
|
break;
|
|
1535
1535
|
case "Enter":
|
|
1536
1536
|
if (q > -1) {
|
|
1537
|
-
const ye = Fe[q] ||
|
|
1537
|
+
const ye = Fe[q] || U;
|
|
1538
1538
|
Se.preventDefault();
|
|
1539
1539
|
const Je = !!ye && nc(Ne.current, r || "", ye);
|
|
1540
1540
|
!Je && ye && typeof _ == "function" && typeof ye.value == "function" ? ye.value() : ye && _e(ye, Je);
|
|
@@ -1587,7 +1587,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1587
1587
|
s.useEffect(() => {
|
|
1588
1588
|
if (Qe !== null && document.getElementsByClassName("sps-modal__body").length > 0) {
|
|
1589
1589
|
const Se = () => {
|
|
1590
|
-
|
|
1590
|
+
Y && Y(!1);
|
|
1591
1591
|
}, ye = document.getElementsByClassName("sps-modal__body")[0];
|
|
1592
1592
|
return ye.addEventListener("scroll", Se), () => {
|
|
1593
1593
|
ye.removeEventListener("scroll", Se);
|
|
@@ -1679,7 +1679,7 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1679
1679
|
);
|
|
1680
1680
|
})
|
|
1681
1681
|
),
|
|
1682
|
-
|
|
1682
|
+
U && (Q == null ? void 0 : Q.label) && /* @__PURE__ */ s.createElement(
|
|
1683
1683
|
"a",
|
|
1684
1684
|
{
|
|
1685
1685
|
className: H(
|
|
@@ -1688,9 +1688,9 @@ const hs = s.forwardRef((e, t) => {
|
|
|
1688
1688
|
q === Fe.length && "sps-option-list__option--highlighted",
|
|
1689
1689
|
Q.disabled && "sps-option-list__special-action--disabled"
|
|
1690
1690
|
),
|
|
1691
|
-
href:
|
|
1692
|
-
target:
|
|
1693
|
-
onClick: (Se) => ct(Se,
|
|
1691
|
+
href: U.href,
|
|
1692
|
+
target: U.href && Q.newTab ? "_blank" : "_self",
|
|
1693
|
+
onClick: (Se) => ct(Se, U),
|
|
1694
1694
|
onMouseOver: () => ne(Fe.length),
|
|
1695
1695
|
"data-testid": `${W}-special-action`
|
|
1696
1696
|
},
|
|
@@ -1883,8 +1883,8 @@ function vn({
|
|
|
1883
1883
|
value: g = "",
|
|
1884
1884
|
zeroState: v,
|
|
1885
1885
|
loading: T,
|
|
1886
|
-
maxHeightOptionListPx:
|
|
1887
|
-
maxHeightOptionListRem:
|
|
1886
|
+
maxHeightOptionListPx: w,
|
|
1887
|
+
maxHeightOptionListRem: E,
|
|
1888
1888
|
disableOptionsMemoization: N,
|
|
1889
1889
|
inputNotClearable: I,
|
|
1890
1890
|
autoFocusOnSelection: k,
|
|
@@ -1894,13 +1894,13 @@ function vn({
|
|
|
1894
1894
|
const L = a || r, { wrapperId: C, controlId: O } = xt(p, L), [_, V] = wn({
|
|
1895
1895
|
keyDown: null,
|
|
1896
1896
|
opensUpward: !1
|
|
1897
|
-
}),
|
|
1897
|
+
}), Y = s.useRef(null), M = s.useRef(null), X = s.useRef(null), {
|
|
1898
1898
|
showPopup: P,
|
|
1899
1899
|
doShowPopup: Q,
|
|
1900
1900
|
doHidePopup: F
|
|
1901
|
-
} = gs(
|
|
1902
|
-
function j(R,
|
|
1903
|
-
L && (L.setValue(R), L.markAsDirty()), l && q ? l(R) : o && o(
|
|
1901
|
+
} = gs(Y, X);
|
|
1902
|
+
function j(R, U, q = !1) {
|
|
1903
|
+
L && (L.setValue(R), L.markAsDirty()), l && q ? l(R) : o && o(U || new sr({ value: R }));
|
|
1904
1904
|
}
|
|
1905
1905
|
function re(R) {
|
|
1906
1906
|
M.current && (M.current.value = "", j("")), R.stopPropagation();
|
|
@@ -1938,7 +1938,7 @@ function vn({
|
|
|
1938
1938
|
}, window.addEventListener("resize", R)), () => {
|
|
1939
1939
|
R && window.removeEventListener("resize", R);
|
|
1940
1940
|
};
|
|
1941
|
-
}, [P]), ha({ isOpen: P, rootRef:
|
|
1941
|
+
}, [P]), ha({ isOpen: P, rootRef: Y }), /* @__PURE__ */ s.createElement(
|
|
1942
1942
|
St,
|
|
1943
1943
|
{
|
|
1944
1944
|
id: C,
|
|
@@ -1946,7 +1946,7 @@ function vn({
|
|
|
1946
1946
|
formControl: r,
|
|
1947
1947
|
formMeta: a,
|
|
1948
1948
|
inputRef: M,
|
|
1949
|
-
ref:
|
|
1949
|
+
ref: Y,
|
|
1950
1950
|
focusInputOnClick: !0,
|
|
1951
1951
|
onClick: (R) => R.nativeEvent.stopImmediatePropagation(),
|
|
1952
1952
|
"data-testid": `${x}`
|
|
@@ -1981,14 +1981,14 @@ function vn({
|
|
|
1981
1981
|
{
|
|
1982
1982
|
id: `${C}_options`,
|
|
1983
1983
|
ref: X,
|
|
1984
|
-
attachTo:
|
|
1984
|
+
attachTo: Y,
|
|
1985
1985
|
isOpen: P,
|
|
1986
1986
|
options: f,
|
|
1987
1987
|
hideInlineSearch: !0,
|
|
1988
1988
|
keyDown: _.keyDown,
|
|
1989
1989
|
onOptionSelected: (R) => {
|
|
1990
|
-
var
|
|
1991
|
-
j(R, void 0, !0), k && ((
|
|
1990
|
+
var U;
|
|
1991
|
+
j(R, void 0, !0), k && ((U = M.current) == null || U.focus());
|
|
1992
1992
|
},
|
|
1993
1993
|
onPositionFlip: ee,
|
|
1994
1994
|
onSelfToggle: te,
|
|
@@ -1998,8 +1998,8 @@ function vn({
|
|
|
1998
1998
|
tall: h,
|
|
1999
1999
|
zeroState: v,
|
|
2000
2000
|
loading: T,
|
|
2001
|
-
maxHeightPx:
|
|
2002
|
-
maxHeightRem:
|
|
2001
|
+
maxHeightPx: w,
|
|
2002
|
+
maxHeightRem: E,
|
|
2003
2003
|
disableOptionsMemoization: N
|
|
2004
2004
|
}
|
|
2005
2005
|
)
|
|
@@ -2169,10 +2169,10 @@ function Rr({
|
|
|
2169
2169
|
unsafelyReplaceClassName: u,
|
|
2170
2170
|
...h
|
|
2171
2171
|
}) {
|
|
2172
|
-
const g = a || r, v = s.useRef(null), [T,
|
|
2173
|
-
s.useEffect(() =>
|
|
2174
|
-
v.current && (v.current.indeterminate =
|
|
2175
|
-
}, [
|
|
2172
|
+
const g = a || r, v = s.useRef(null), [T, w] = s.useState(e), [E, N] = s.useState(l), { wrapperId: I, controlId: k } = xt(o, g);
|
|
2173
|
+
s.useEffect(() => w(e), [e]), s.useEffect(() => N(l), [l]), s.useEffect(() => {
|
|
2174
|
+
v.current && (v.current.indeterminate = E);
|
|
2175
|
+
}, [E]);
|
|
2176
2176
|
const x = H(
|
|
2177
2177
|
u || "sps-checkbox",
|
|
2178
2178
|
"sps-checkable",
|
|
@@ -2182,7 +2182,7 @@ function Rr({
|
|
|
2182
2182
|
);
|
|
2183
2183
|
function A(L) {
|
|
2184
2184
|
var C;
|
|
2185
|
-
|
|
2185
|
+
w(L.target.checked), N(!1), g && (g.setValue(L.target.checked), g.markAsDirty()), m && m(L), (C = v.current) == null || C.focus();
|
|
2186
2186
|
}
|
|
2187
2187
|
return /* @__PURE__ */ s.createElement(
|
|
2188
2188
|
St,
|
|
@@ -2387,23 +2387,23 @@ function ga(e) {
|
|
|
2387
2387
|
), g = H(
|
|
2388
2388
|
"sps-clickable-tag__label",
|
|
2389
2389
|
(a || p) && "sps-clickable-tag__label--link"
|
|
2390
|
-
), v = s.Children.toArray(t).filter((
|
|
2391
|
-
function T(
|
|
2392
|
-
l ? l() : c && c(),
|
|
2390
|
+
), v = s.Children.toArray(t).filter((E) => typeof E == "string").join("");
|
|
2391
|
+
function T(E) {
|
|
2392
|
+
l ? l() : c && c(), E.stopPropagation();
|
|
2393
2393
|
}
|
|
2394
2394
|
s.useEffect(() => {
|
|
2395
2395
|
if (c && l)
|
|
2396
2396
|
throw new Error("Clickable tag should have onRemove or onAdd, not both");
|
|
2397
2397
|
}, [l, c]);
|
|
2398
|
-
function E
|
|
2399
|
-
|
|
2398
|
+
function w(E) {
|
|
2399
|
+
E.stopPropagation(), p && p(E);
|
|
2400
2400
|
}
|
|
2401
2401
|
return /* @__PURE__ */ s.createElement("div", { className: h, "data-testid": m, ...u }, /* @__PURE__ */ s.createElement(
|
|
2402
2402
|
"span",
|
|
2403
2403
|
{
|
|
2404
2404
|
className: g,
|
|
2405
2405
|
title: v,
|
|
2406
|
-
onClick:
|
|
2406
|
+
onClick: w
|
|
2407
2407
|
},
|
|
2408
2408
|
a && /* @__PURE__ */ s.createElement("a", { href: a }, t),
|
|
2409
2409
|
!a && t
|
|
@@ -2717,12 +2717,12 @@ function np(e, t, n) {
|
|
|
2717
2717
|
throw new Error(process.env.NODE_ENV === "production" ? Nt(4) : "Expected the listener to be a function. Instead, received: '" + qn(T) + "'");
|
|
2718
2718
|
if (p)
|
|
2719
2719
|
throw new Error(process.env.NODE_ENV === "production" ? Nt(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.");
|
|
2720
|
-
var
|
|
2720
|
+
var w = !0;
|
|
2721
2721
|
return m(), c.push(T), function() {
|
|
2722
|
-
if (
|
|
2722
|
+
if (w) {
|
|
2723
2723
|
if (p)
|
|
2724
2724
|
throw new Error(process.env.NODE_ENV === "production" ? Nt(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.");
|
|
2725
|
-
|
|
2725
|
+
w = !1, m();
|
|
2726
2726
|
var N = c.indexOf(T);
|
|
2727
2727
|
c.splice(N, 1), l = null;
|
|
2728
2728
|
}
|
|
@@ -2740,8 +2740,8 @@ function np(e, t, n) {
|
|
|
2740
2740
|
} finally {
|
|
2741
2741
|
p = !1;
|
|
2742
2742
|
}
|
|
2743
|
-
for (var
|
|
2744
|
-
var N = E
|
|
2743
|
+
for (var w = l = c, E = 0; E < w.length; E++) {
|
|
2744
|
+
var N = w[E];
|
|
2745
2745
|
N();
|
|
2746
2746
|
}
|
|
2747
2747
|
return T;
|
|
@@ -2754,7 +2754,7 @@ function np(e, t, n) {
|
|
|
2754
2754
|
});
|
|
2755
2755
|
}
|
|
2756
2756
|
function v() {
|
|
2757
|
-
var T,
|
|
2757
|
+
var T, w = u;
|
|
2758
2758
|
return T = {
|
|
2759
2759
|
/**
|
|
2760
2760
|
* The minimal observable subscription method.
|
|
@@ -2771,7 +2771,7 @@ function np(e, t, n) {
|
|
|
2771
2771
|
N.next && N.next(f());
|
|
2772
2772
|
}
|
|
2773
2773
|
I();
|
|
2774
|
-
var k =
|
|
2774
|
+
var k = w(I);
|
|
2775
2775
|
return {
|
|
2776
2776
|
unsubscribe: k
|
|
2777
2777
|
};
|
|
@@ -2851,7 +2851,7 @@ var pc;
|
|
|
2851
2851
|
function Pv() {
|
|
2852
2852
|
if (pc) return Pe;
|
|
2853
2853
|
pc = 1;
|
|
2854
|
-
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, f = 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, T = e ? Symbol.for("react.block") : 60121,
|
|
2854
|
+
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, f = 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, T = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
2855
2855
|
function I(x) {
|
|
2856
2856
|
if (typeof x == "object" && x !== null) {
|
|
2857
2857
|
var A = x.$$typeof;
|
|
@@ -2910,7 +2910,7 @@ function Pv() {
|
|
|
2910
2910
|
}, Pe.isSuspense = function(x) {
|
|
2911
2911
|
return I(x) === u;
|
|
2912
2912
|
}, Pe.isValidElementType = function(x) {
|
|
2913
|
-
return typeof x == "string" || typeof x == "function" || x === r || x === m || x === o || x === a || x === u || x === h || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === g || x.$$typeof === l || x.$$typeof === c || x.$$typeof === f || x.$$typeof ===
|
|
2913
|
+
return typeof x == "string" || typeof x == "function" || x === r || x === m || x === o || x === a || x === u || x === h || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === g || x.$$typeof === l || x.$$typeof === c || x.$$typeof === f || x.$$typeof === w || x.$$typeof === E || x.$$typeof === N || x.$$typeof === T);
|
|
2914
2914
|
}, Pe.typeOf = I, Pe;
|
|
2915
2915
|
}
|
|
2916
2916
|
var Be = {};
|
|
@@ -2925,10 +2925,10 @@ var Be = {};
|
|
|
2925
2925
|
var uc;
|
|
2926
2926
|
function Bv() {
|
|
2927
2927
|
return uc || (uc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2928
|
-
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, f = 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, T = e ? Symbol.for("react.block") : 60121,
|
|
2928
|
+
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, m = e ? Symbol.for("react.concurrent_mode") : 60111, f = 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, T = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
2929
2929
|
function I(se) {
|
|
2930
2930
|
return typeof se == "string" || typeof se == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2931
|
-
se === r || se === m || se === o || se === a || se === u || se === h || typeof se == "object" && se !== null && (se.$$typeof === v || se.$$typeof === g || se.$$typeof === l || se.$$typeof === c || se.$$typeof === f || se.$$typeof ===
|
|
2931
|
+
se === r || se === m || se === o || se === a || se === u || se === h || typeof se == "object" && se !== null && (se.$$typeof === v || se.$$typeof === g || se.$$typeof === l || se.$$typeof === c || se.$$typeof === f || se.$$typeof === w || se.$$typeof === E || se.$$typeof === N || se.$$typeof === T);
|
|
2932
2932
|
}
|
|
2933
2933
|
function k(se) {
|
|
2934
2934
|
if (typeof se == "object" && se !== null) {
|
|
@@ -2962,7 +2962,7 @@ function Bv() {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
var x = p, A = m, L = c, C = l, O = t, _ = f, V = r,
|
|
2965
|
+
var x = p, A = m, L = c, C = l, O = t, _ = f, V = r, Y = v, M = g, X = n, P = o, Q = a, F = u, j = !1;
|
|
2966
2966
|
function re(se) {
|
|
2967
2967
|
return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), K(se) || k(se) === p;
|
|
2968
2968
|
}
|
|
@@ -2984,7 +2984,7 @@ function Bv() {
|
|
|
2984
2984
|
function R(se) {
|
|
2985
2985
|
return k(se) === r;
|
|
2986
2986
|
}
|
|
2987
|
-
function
|
|
2987
|
+
function U(se) {
|
|
2988
2988
|
return k(se) === v;
|
|
2989
2989
|
}
|
|
2990
2990
|
function q(se) {
|
|
@@ -3002,7 +3002,7 @@ function Bv() {
|
|
|
3002
3002
|
function ae(se) {
|
|
3003
3003
|
return k(se) === u;
|
|
3004
3004
|
}
|
|
3005
|
-
Be.AsyncMode = x, Be.ConcurrentMode = A, Be.ContextConsumer = L, Be.ContextProvider = C, Be.Element = O, Be.ForwardRef = _, Be.Fragment = V, Be.Lazy =
|
|
3005
|
+
Be.AsyncMode = x, Be.ConcurrentMode = A, Be.ContextConsumer = L, Be.ContextProvider = C, Be.Element = O, Be.ForwardRef = _, Be.Fragment = V, Be.Lazy = Y, Be.Memo = M, Be.Portal = X, Be.Profiler = P, Be.StrictMode = Q, Be.Suspense = F, Be.isAsyncMode = re, Be.isConcurrentMode = K, Be.isContextConsumer = G, Be.isContextProvider = te, Be.isElement = ee, Be.isForwardRef = W, Be.isFragment = R, Be.isLazy = U, Be.isMemo = q, Be.isPortal = ne, Be.isProfiler = oe, Be.isStrictMode = le, Be.isSuspense = ae, Be.isValidElementType = I, Be.typeOf = k;
|
|
3006
3006
|
}()), Be;
|
|
3007
3007
|
}
|
|
3008
3008
|
process.env.NODE_ENV === "production" ? Fo.exports = Pv() : Fo.exports = Bv();
|
|
@@ -3143,14 +3143,14 @@ function Vv() {
|
|
|
3143
3143
|
return G;
|
|
3144
3144
|
}
|
|
3145
3145
|
var h = "<<anonymous>>", g = {
|
|
3146
|
-
array:
|
|
3147
|
-
bigint:
|
|
3148
|
-
bool:
|
|
3149
|
-
func:
|
|
3150
|
-
number:
|
|
3151
|
-
object:
|
|
3152
|
-
string:
|
|
3153
|
-
symbol:
|
|
3146
|
+
array: E("array"),
|
|
3147
|
+
bigint: E("bigint"),
|
|
3148
|
+
bool: E("boolean"),
|
|
3149
|
+
func: E("function"),
|
|
3150
|
+
number: E("number"),
|
|
3151
|
+
object: E("object"),
|
|
3152
|
+
string: E("string"),
|
|
3153
|
+
symbol: E("symbol"),
|
|
3154
3154
|
any: N(),
|
|
3155
3155
|
arrayOf: I,
|
|
3156
3156
|
element: k(),
|
|
@@ -3160,7 +3160,7 @@ function Vv() {
|
|
|
3160
3160
|
objectOf: C,
|
|
3161
3161
|
oneOf: L,
|
|
3162
3162
|
oneOfType: O,
|
|
3163
|
-
shape:
|
|
3163
|
+
shape: Y,
|
|
3164
3164
|
exact: M
|
|
3165
3165
|
};
|
|
3166
3166
|
function v(K, G) {
|
|
@@ -3170,10 +3170,10 @@ function Vv() {
|
|
|
3170
3170
|
this.message = K, this.data = G && typeof G == "object" ? G : {}, this.stack = "";
|
|
3171
3171
|
}
|
|
3172
3172
|
T.prototype = Error.prototype;
|
|
3173
|
-
function
|
|
3173
|
+
function w(K) {
|
|
3174
3174
|
if (process.env.NODE_ENV !== "production")
|
|
3175
3175
|
var G = {}, te = 0;
|
|
3176
|
-
function ee(R,
|
|
3176
|
+
function ee(R, U, q, ne, oe, le, ae) {
|
|
3177
3177
|
if (ne = ne || h, le = le || q, ae !== n) {
|
|
3178
3178
|
if (p) {
|
|
3179
3179
|
var se = new Error(
|
|
@@ -3188,84 +3188,84 @@ function Vv() {
|
|
|
3188
3188
|
), G[we] = !0, te++);
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
3191
|
-
return
|
|
3191
|
+
return U[q] == null ? R ? U[q] === null ? new T("The " + oe + " `" + le + "` is marked as required " + ("in `" + ne + "`, but its value is `null`.")) : new T("The " + oe + " `" + le + "` is marked as required in " + ("`" + ne + "`, but its value is `undefined`.")) : null : K(U, q, ne, oe, le);
|
|
3192
3192
|
}
|
|
3193
3193
|
var W = ee.bind(null, !1);
|
|
3194
3194
|
return W.isRequired = ee.bind(null, !0), W;
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
function G(te, ee, W, R,
|
|
3196
|
+
function E(K) {
|
|
3197
|
+
function G(te, ee, W, R, U, q) {
|
|
3198
3198
|
var ne = te[ee], oe = Q(ne);
|
|
3199
3199
|
if (oe !== K) {
|
|
3200
3200
|
var le = F(ne);
|
|
3201
3201
|
return new T(
|
|
3202
|
-
"Invalid " + R + " `" +
|
|
3202
|
+
"Invalid " + R + " `" + U + "` of type " + ("`" + le + "` supplied to `" + W + "`, expected ") + ("`" + K + "`."),
|
|
3203
3203
|
{ expectedType: K }
|
|
3204
3204
|
);
|
|
3205
3205
|
}
|
|
3206
3206
|
return null;
|
|
3207
3207
|
}
|
|
3208
|
-
return
|
|
3208
|
+
return w(G);
|
|
3209
3209
|
}
|
|
3210
3210
|
function N() {
|
|
3211
|
-
return
|
|
3211
|
+
return w(l);
|
|
3212
3212
|
}
|
|
3213
3213
|
function I(K) {
|
|
3214
|
-
function G(te, ee, W, R,
|
|
3214
|
+
function G(te, ee, W, R, U) {
|
|
3215
3215
|
if (typeof K != "function")
|
|
3216
|
-
return new T("Property `" +
|
|
3216
|
+
return new T("Property `" + U + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
3217
3217
|
var q = te[ee];
|
|
3218
3218
|
if (!Array.isArray(q)) {
|
|
3219
3219
|
var ne = Q(q);
|
|
3220
|
-
return new T("Invalid " + R + " `" +
|
|
3220
|
+
return new T("Invalid " + R + " `" + U + "` of type " + ("`" + ne + "` supplied to `" + W + "`, expected an array."));
|
|
3221
3221
|
}
|
|
3222
3222
|
for (var oe = 0; oe < q.length; oe++) {
|
|
3223
|
-
var le = K(q, oe, W, R,
|
|
3223
|
+
var le = K(q, oe, W, R, U + "[" + oe + "]", n);
|
|
3224
3224
|
if (le instanceof Error)
|
|
3225
3225
|
return le;
|
|
3226
3226
|
}
|
|
3227
3227
|
return null;
|
|
3228
3228
|
}
|
|
3229
|
-
return
|
|
3229
|
+
return w(G);
|
|
3230
3230
|
}
|
|
3231
3231
|
function k() {
|
|
3232
3232
|
function K(G, te, ee, W, R) {
|
|
3233
|
-
var
|
|
3234
|
-
if (!c(
|
|
3235
|
-
var q = Q(
|
|
3233
|
+
var U = G[te];
|
|
3234
|
+
if (!c(U)) {
|
|
3235
|
+
var q = Q(U);
|
|
3236
3236
|
return new T("Invalid " + W + " `" + R + "` of type " + ("`" + q + "` supplied to `" + ee + "`, expected a single ReactElement."));
|
|
3237
3237
|
}
|
|
3238
3238
|
return null;
|
|
3239
3239
|
}
|
|
3240
|
-
return
|
|
3240
|
+
return w(K);
|
|
3241
3241
|
}
|
|
3242
3242
|
function x() {
|
|
3243
3243
|
function K(G, te, ee, W, R) {
|
|
3244
|
-
var
|
|
3245
|
-
if (!e.isValidElementType(
|
|
3246
|
-
var q = Q(
|
|
3244
|
+
var U = G[te];
|
|
3245
|
+
if (!e.isValidElementType(U)) {
|
|
3246
|
+
var q = Q(U);
|
|
3247
3247
|
return new T("Invalid " + W + " `" + R + "` of type " + ("`" + q + "` supplied to `" + ee + "`, expected a single ReactElement type."));
|
|
3248
3248
|
}
|
|
3249
3249
|
return null;
|
|
3250
3250
|
}
|
|
3251
|
-
return
|
|
3251
|
+
return w(K);
|
|
3252
3252
|
}
|
|
3253
3253
|
function A(K) {
|
|
3254
|
-
function G(te, ee, W, R,
|
|
3254
|
+
function G(te, ee, W, R, U) {
|
|
3255
3255
|
if (!(te[ee] instanceof K)) {
|
|
3256
3256
|
var q = K.name || h, ne = re(te[ee]);
|
|
3257
|
-
return new T("Invalid " + R + " `" +
|
|
3257
|
+
return new T("Invalid " + R + " `" + U + "` of type " + ("`" + ne + "` supplied to `" + W + "`, expected ") + ("instance of `" + q + "`."));
|
|
3258
3258
|
}
|
|
3259
3259
|
return null;
|
|
3260
3260
|
}
|
|
3261
|
-
return
|
|
3261
|
+
return w(G);
|
|
3262
3262
|
}
|
|
3263
3263
|
function L(K) {
|
|
3264
3264
|
if (!Array.isArray(K))
|
|
3265
3265
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
3266
3266
|
"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])."
|
|
3267
3267
|
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
3268
|
-
function G(te, ee, W, R,
|
|
3268
|
+
function G(te, ee, W, R, U) {
|
|
3269
3269
|
for (var q = te[ee], ne = 0; ne < K.length; ne++)
|
|
3270
3270
|
if (v(q, K[ne]))
|
|
3271
3271
|
return null;
|
|
@@ -3273,26 +3273,26 @@ function Vv() {
|
|
|
3273
3273
|
var we = F(se);
|
|
3274
3274
|
return we === "symbol" ? String(se) : se;
|
|
3275
3275
|
});
|
|
3276
|
-
return new T("Invalid " + R + " `" +
|
|
3276
|
+
return new T("Invalid " + R + " `" + U + "` of value `" + String(q) + "` " + ("supplied to `" + W + "`, expected one of " + oe + "."));
|
|
3277
3277
|
}
|
|
3278
|
-
return
|
|
3278
|
+
return w(G);
|
|
3279
3279
|
}
|
|
3280
3280
|
function C(K) {
|
|
3281
|
-
function G(te, ee, W, R,
|
|
3281
|
+
function G(te, ee, W, R, U) {
|
|
3282
3282
|
if (typeof K != "function")
|
|
3283
|
-
return new T("Property `" +
|
|
3283
|
+
return new T("Property `" + U + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
3284
3284
|
var q = te[ee], ne = Q(q);
|
|
3285
3285
|
if (ne !== "object")
|
|
3286
|
-
return new T("Invalid " + R + " `" +
|
|
3286
|
+
return new T("Invalid " + R + " `" + U + "` of type " + ("`" + ne + "` supplied to `" + W + "`, expected an object."));
|
|
3287
3287
|
for (var oe in q)
|
|
3288
3288
|
if (r(q, oe)) {
|
|
3289
|
-
var le = K(q, oe, W, R,
|
|
3289
|
+
var le = K(q, oe, W, R, U + "." + oe, n);
|
|
3290
3290
|
if (le instanceof Error)
|
|
3291
3291
|
return le;
|
|
3292
3292
|
}
|
|
3293
3293
|
return null;
|
|
3294
3294
|
}
|
|
3295
|
-
return
|
|
3295
|
+
return w(G);
|
|
3296
3296
|
}
|
|
3297
3297
|
function O(K) {
|
|
3298
3298
|
if (!Array.isArray(K))
|
|
@@ -3304,68 +3304,68 @@ function Vv() {
|
|
|
3304
3304
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(te) + " at index " + G + "."
|
|
3305
3305
|
), l;
|
|
3306
3306
|
}
|
|
3307
|
-
function ee(W, R,
|
|
3307
|
+
function ee(W, R, U, q, ne) {
|
|
3308
3308
|
for (var oe = [], le = 0; le < K.length; le++) {
|
|
3309
|
-
var ae = K[le], se = ae(W, R,
|
|
3309
|
+
var ae = K[le], se = ae(W, R, U, q, ne, n);
|
|
3310
3310
|
if (se == null)
|
|
3311
3311
|
return null;
|
|
3312
3312
|
se.data && r(se.data, "expectedType") && oe.push(se.data.expectedType);
|
|
3313
3313
|
}
|
|
3314
3314
|
var we = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
|
|
3315
|
-
return new T("Invalid " + q + " `" + ne + "` supplied to " + ("`" +
|
|
3315
|
+
return new T("Invalid " + q + " `" + ne + "` supplied to " + ("`" + U + "`" + we + "."));
|
|
3316
3316
|
}
|
|
3317
|
-
return
|
|
3317
|
+
return w(ee);
|
|
3318
3318
|
}
|
|
3319
3319
|
function _() {
|
|
3320
3320
|
function K(G, te, ee, W, R) {
|
|
3321
3321
|
return X(G[te]) ? null : new T("Invalid " + W + " `" + R + "` supplied to " + ("`" + ee + "`, expected a ReactNode."));
|
|
3322
3322
|
}
|
|
3323
|
-
return
|
|
3323
|
+
return w(K);
|
|
3324
3324
|
}
|
|
3325
3325
|
function V(K, G, te, ee, W) {
|
|
3326
3326
|
return new T(
|
|
3327
3327
|
(K || "React class") + ": " + G + " type `" + te + "." + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
3328
3328
|
);
|
|
3329
3329
|
}
|
|
3330
|
-
function
|
|
3331
|
-
function G(te, ee, W, R,
|
|
3330
|
+
function Y(K) {
|
|
3331
|
+
function G(te, ee, W, R, U) {
|
|
3332
3332
|
var q = te[ee], ne = Q(q);
|
|
3333
3333
|
if (ne !== "object")
|
|
3334
|
-
return new T("Invalid " + R + " `" +
|
|
3334
|
+
return new T("Invalid " + R + " `" + U + "` of type `" + ne + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
3335
3335
|
for (var oe in K) {
|
|
3336
3336
|
var le = K[oe];
|
|
3337
3337
|
if (typeof le != "function")
|
|
3338
|
-
return V(W, R,
|
|
3339
|
-
var ae = le(q, oe, W, R,
|
|
3338
|
+
return V(W, R, U, oe, F(le));
|
|
3339
|
+
var ae = le(q, oe, W, R, U + "." + oe, n);
|
|
3340
3340
|
if (ae)
|
|
3341
3341
|
return ae;
|
|
3342
3342
|
}
|
|
3343
3343
|
return null;
|
|
3344
3344
|
}
|
|
3345
|
-
return
|
|
3345
|
+
return w(G);
|
|
3346
3346
|
}
|
|
3347
3347
|
function M(K) {
|
|
3348
|
-
function G(te, ee, W, R,
|
|
3348
|
+
function G(te, ee, W, R, U) {
|
|
3349
3349
|
var q = te[ee], ne = Q(q);
|
|
3350
3350
|
if (ne !== "object")
|
|
3351
|
-
return new T("Invalid " + R + " `" +
|
|
3351
|
+
return new T("Invalid " + R + " `" + U + "` of type `" + ne + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
3352
3352
|
var oe = t({}, te[ee], K);
|
|
3353
3353
|
for (var le in oe) {
|
|
3354
3354
|
var ae = K[le];
|
|
3355
3355
|
if (r(K, le) && typeof ae != "function")
|
|
3356
|
-
return V(W, R,
|
|
3356
|
+
return V(W, R, U, le, F(ae));
|
|
3357
3357
|
if (!ae)
|
|
3358
3358
|
return new T(
|
|
3359
|
-
"Invalid " + R + " `" +
|
|
3359
|
+
"Invalid " + R + " `" + U + "` key `" + le + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(te[ee], null, " ") + `
|
|
3360
3360
|
Valid keys: ` + JSON.stringify(Object.keys(K), null, " ")
|
|
3361
3361
|
);
|
|
3362
|
-
var se = ae(q, le, W, R,
|
|
3362
|
+
var se = ae(q, le, W, R, U + "." + le, n);
|
|
3363
3363
|
if (se)
|
|
3364
3364
|
return se;
|
|
3365
3365
|
}
|
|
3366
3366
|
return null;
|
|
3367
3367
|
}
|
|
3368
|
-
return
|
|
3368
|
+
return w(G);
|
|
3369
3369
|
}
|
|
3370
3370
|
function X(K) {
|
|
3371
3371
|
switch (typeof K) {
|
|
@@ -3689,10 +3689,10 @@ var Cc;
|
|
|
3689
3689
|
function ny() {
|
|
3690
3690
|
if (Cc) return $e;
|
|
3691
3691
|
Cc = 1;
|
|
3692
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, m = 60120, f = 60115, u = 60116, h = 60121, g = 60122, v = 60117, T = 60129,
|
|
3692
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, m = 60120, f = 60115, u = 60116, h = 60121, g = 60122, v = 60117, T = 60129, w = 60131;
|
|
3693
3693
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3694
|
-
var
|
|
3695
|
-
e =
|
|
3694
|
+
var E = Symbol.for;
|
|
3695
|
+
e = E("react.element"), t = E("react.portal"), n = E("react.fragment"), r = E("react.strict_mode"), a = E("react.profiler"), o = E("react.provider"), l = E("react.context"), c = E("react.forward_ref"), p = E("react.suspense"), m = E("react.suspense_list"), f = E("react.memo"), u = E("react.lazy"), h = E("react.block"), g = E("react.server.block"), v = E("react.fundamental"), T = E("react.debug_trace_mode"), w = E("react.legacy_hidden");
|
|
3696
3696
|
}
|
|
3697
3697
|
function N(M) {
|
|
3698
3698
|
if (typeof M == "object" && M !== null) {
|
|
@@ -3723,8 +3723,8 @@ function ny() {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
|
-
var I = o, k = e, x = c, A = n, L = u, C = f, O = t, _ = a, V = r,
|
|
3727
|
-
return $e.ContextConsumer = l, $e.ContextProvider = I, $e.Element = k, $e.ForwardRef = x, $e.Fragment = A, $e.Lazy = L, $e.Memo = C, $e.Portal = O, $e.Profiler = _, $e.StrictMode = V, $e.Suspense =
|
|
3726
|
+
var I = o, k = e, x = c, A = n, L = u, C = f, O = t, _ = a, V = r, Y = p;
|
|
3727
|
+
return $e.ContextConsumer = l, $e.ContextProvider = I, $e.Element = k, $e.ForwardRef = x, $e.Fragment = A, $e.Lazy = L, $e.Memo = C, $e.Portal = O, $e.Profiler = _, $e.StrictMode = V, $e.Suspense = Y, $e.isAsyncMode = function() {
|
|
3728
3728
|
return !1;
|
|
3729
3729
|
}, $e.isConcurrentMode = function() {
|
|
3730
3730
|
return !1;
|
|
@@ -3751,7 +3751,7 @@ function ny() {
|
|
|
3751
3751
|
}, $e.isSuspense = function(M) {
|
|
3752
3752
|
return N(M) === p;
|
|
3753
3753
|
}, $e.isValidElementType = function(M) {
|
|
3754
|
-
return typeof M == "string" || typeof M == "function" || M === n || M === a || M === T || M === r || M === p || M === m || M ===
|
|
3754
|
+
return typeof M == "string" || typeof M == "function" || M === n || M === a || M === T || M === r || M === p || M === m || M === w || typeof M == "object" && M !== null && (M.$$typeof === u || M.$$typeof === f || M.$$typeof === o || M.$$typeof === l || M.$$typeof === c || M.$$typeof === v || M.$$typeof === h || M[0] === g);
|
|
3755
3755
|
}, $e.typeOf = N, $e;
|
|
3756
3756
|
}
|
|
3757
3757
|
var Ke = {};
|
|
@@ -3766,14 +3766,14 @@ var Ke = {};
|
|
|
3766
3766
|
var Dc;
|
|
3767
3767
|
function ry() {
|
|
3768
3768
|
return Dc || (Dc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3769
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, m = 60120, f = 60115, u = 60116, h = 60121, g = 60122, v = 60117, T = 60129,
|
|
3769
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, m = 60120, f = 60115, u = 60116, h = 60121, g = 60122, v = 60117, T = 60129, w = 60131;
|
|
3770
3770
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3771
|
-
var
|
|
3772
|
-
e =
|
|
3771
|
+
var E = Symbol.for;
|
|
3772
|
+
e = E("react.element"), t = E("react.portal"), n = E("react.fragment"), r = E("react.strict_mode"), a = E("react.profiler"), o = E("react.provider"), l = E("react.context"), c = E("react.forward_ref"), p = E("react.suspense"), m = E("react.suspense_list"), f = E("react.memo"), u = E("react.lazy"), h = E("react.block"), g = E("react.server.block"), v = E("react.fundamental"), E("react.scope"), E("react.opaque.id"), T = E("react.debug_trace_mode"), E("react.offscreen"), w = E("react.legacy_hidden");
|
|
3773
3773
|
}
|
|
3774
3774
|
var N = !1;
|
|
3775
3775
|
function I(ae) {
|
|
3776
|
-
return !!(typeof ae == "string" || typeof ae == "function" || ae === n || ae === a || ae === T || ae === r || ae === p || ae === m || ae ===
|
|
3776
|
+
return !!(typeof ae == "string" || typeof ae == "function" || ae === n || ae === a || ae === T || ae === r || ae === p || ae === m || ae === w || N || typeof ae == "object" && ae !== null && (ae.$$typeof === u || ae.$$typeof === f || ae.$$typeof === o || ae.$$typeof === l || ae.$$typeof === c || ae.$$typeof === v || ae.$$typeof === h || ae[0] === g));
|
|
3777
3777
|
}
|
|
3778
3778
|
function k(ae) {
|
|
3779
3779
|
if (typeof ae == "object" && ae !== null) {
|
|
@@ -3806,7 +3806,7 @@ function ry() {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
|
-
var x = l, A = o, L = e, C = c, O = n, _ = u, V = f,
|
|
3809
|
+
var x = l, A = o, L = e, C = c, O = n, _ = u, V = f, Y = t, M = a, X = r, P = p, Q = !1, F = !1;
|
|
3810
3810
|
function j(ae) {
|
|
3811
3811
|
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3812
3812
|
}
|
|
@@ -3831,7 +3831,7 @@ function ry() {
|
|
|
3831
3831
|
function R(ae) {
|
|
3832
3832
|
return k(ae) === u;
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3834
|
+
function U(ae) {
|
|
3835
3835
|
return k(ae) === f;
|
|
3836
3836
|
}
|
|
3837
3837
|
function q(ae) {
|
|
@@ -3846,7 +3846,7 @@ function ry() {
|
|
|
3846
3846
|
function le(ae) {
|
|
3847
3847
|
return k(ae) === p;
|
|
3848
3848
|
}
|
|
3849
|
-
Ke.ContextConsumer = x, Ke.ContextProvider = A, Ke.Element = L, Ke.ForwardRef = C, Ke.Fragment = O, Ke.Lazy = _, Ke.Memo = V, Ke.Portal =
|
|
3849
|
+
Ke.ContextConsumer = x, Ke.ContextProvider = A, Ke.Element = L, Ke.ForwardRef = C, Ke.Fragment = O, Ke.Lazy = _, Ke.Memo = V, Ke.Portal = Y, Ke.Profiler = M, Ke.StrictMode = X, Ke.Suspense = P, Ke.isAsyncMode = j, Ke.isConcurrentMode = re, Ke.isContextConsumer = K, Ke.isContextProvider = G, Ke.isElement = te, Ke.isForwardRef = ee, Ke.isFragment = W, Ke.isLazy = R, Ke.isMemo = U, Ke.isPortal = q, Ke.isProfiler = ne, Ke.isStrictMode = oe, Ke.isSuspense = le, Ke.isValidElementType = I, Ke.typeOf = k;
|
|
3850
3850
|
}()), Ke;
|
|
3851
3851
|
}
|
|
3852
3852
|
process.env.NODE_ENV === "production" ? Vo.exports = ny() : Vo.exports = ry();
|
|
@@ -3873,16 +3873,16 @@ function py(e, t, n, r, a, o, l, c, p, m) {
|
|
|
3873
3873
|
if (e) {
|
|
3874
3874
|
var f = !1, u = null, h = function() {
|
|
3875
3875
|
if (!f) {
|
|
3876
|
-
var T = t.getState(),
|
|
3876
|
+
var T = t.getState(), w, E;
|
|
3877
3877
|
try {
|
|
3878
|
-
|
|
3878
|
+
w = r(T, a.current);
|
|
3879
3879
|
} catch (N) {
|
|
3880
|
-
|
|
3880
|
+
E = N, u = N;
|
|
3881
3881
|
}
|
|
3882
|
-
|
|
3882
|
+
E || (u = null), w === o.current ? l.current || p() : (o.current = w, c.current = w, l.current = !0, m({
|
|
3883
3883
|
type: "STORE_UPDATED",
|
|
3884
3884
|
payload: {
|
|
3885
|
-
error:
|
|
3885
|
+
error: E
|
|
3886
3886
|
}
|
|
3887
3887
|
}));
|
|
3888
3888
|
}
|
|
@@ -3902,7 +3902,7 @@ function my(e, t) {
|
|
|
3902
3902
|
t === void 0 && (t = {});
|
|
3903
3903
|
var n = t, r = n.getDisplayName, a = r === void 0 ? function(A) {
|
|
3904
3904
|
return "ConnectAdvanced(" + A + ")";
|
|
3905
|
-
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, m = n.shouldHandleStateChanges, f = m === void 0 ? !0 : m, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g, T = n.forwardRef,
|
|
3905
|
+
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, m = n.shouldHandleStateChanges, f = m === void 0 ? !0 : m, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g, T = n.forwardRef, w = T === void 0 ? !1 : T, E = n.context, N = E === void 0 ? di : E, I = na(n, sy);
|
|
3906
3906
|
if (process.env.NODE_ENV !== "production") {
|
|
3907
3907
|
if (p !== void 0)
|
|
3908
3908
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -3926,7 +3926,7 @@ function my(e, t) {
|
|
|
3926
3926
|
wrappedComponentName: C,
|
|
3927
3927
|
WrappedComponent: L
|
|
3928
3928
|
}), V = I.pure;
|
|
3929
|
-
function
|
|
3929
|
+
function Y(F) {
|
|
3930
3930
|
return e(F.dispatch, _);
|
|
3931
3931
|
}
|
|
3932
3932
|
var M = V ? tt : function(F) {
|
|
@@ -3941,13 +3941,13 @@ function my(e, t) {
|
|
|
3941
3941
|
}, [re, x]), ee = nn(te), W = !!F.store && !!F.store.getState && !!F.store.dispatch, R = !!ee && !!ee.store;
|
|
3942
3942
|
if (process.env.NODE_ENV !== "production" && !W && !R)
|
|
3943
3943
|
throw new Error('Could not find "store" in the context of ' + ('"' + O + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + O + " in connect options."));
|
|
3944
|
-
var
|
|
3945
|
-
return U
|
|
3946
|
-
}, [
|
|
3944
|
+
var U = W ? F.store : ee.store, q = tt(function() {
|
|
3945
|
+
return Y(U);
|
|
3946
|
+
}, [U]), ne = tt(function() {
|
|
3947
3947
|
if (!f) return iy;
|
|
3948
|
-
var ke = op(
|
|
3948
|
+
var ke = op(U, W ? null : ee.subscription), nt = ke.notifyNestedSubs.bind(ke);
|
|
3949
3949
|
return [ke, nt];
|
|
3950
|
-
}, [
|
|
3950
|
+
}, [U, W, ee]), oe = ne[0], le = ne[1], ae = tt(function() {
|
|
3951
3951
|
return W ? ee : be({}, ee, {
|
|
3952
3952
|
subscription: oe
|
|
3953
3953
|
});
|
|
@@ -3955,9 +3955,9 @@ function my(e, t) {
|
|
|
3955
3955
|
if (Ae && Ae.error)
|
|
3956
3956
|
throw Ae.error;
|
|
3957
3957
|
var mt = fe(), bt = fe(G), ft = fe(), ge = fe(!1), Ue = M(function() {
|
|
3958
|
-
return ft.current && G === bt.current ? ft.current : q(
|
|
3959
|
-
}, [
|
|
3960
|
-
xc(dy, [bt, mt, ge, G, Ue, ft, le]), xc(py, [f,
|
|
3958
|
+
return ft.current && G === bt.current ? ft.current : q(U.getState(), G);
|
|
3959
|
+
}, [U, Ae, G]);
|
|
3960
|
+
xc(dy, [bt, mt, ge, G, Ue, ft, le]), xc(py, [f, U, oe, q, bt, mt, ge, ft, le, Qe], [U, oe, q]);
|
|
3961
3961
|
var De = tt(function() {
|
|
3962
3962
|
return /* @__PURE__ */ J.createElement(L, be({}, Ue, {
|
|
3963
3963
|
ref: K
|
|
@@ -3970,7 +3970,7 @@ function my(e, t) {
|
|
|
3970
3970
|
return ve;
|
|
3971
3971
|
}
|
|
3972
3972
|
var P = V ? J.memo(X) : X;
|
|
3973
|
-
if (P.WrappedComponent = L, P.displayName = X.displayName = O,
|
|
3973
|
+
if (P.WrappedComponent = L, P.displayName = X.displayName = O, w) {
|
|
3974
3974
|
var Q = J.forwardRef(function(j, re) {
|
|
3975
3975
|
return /* @__PURE__ */ J.createElement(P, be({}, j, {
|
|
3976
3976
|
reactReduxForwardedRef: re
|
|
@@ -4116,16 +4116,16 @@ function _y(e, t, n, r, a) {
|
|
|
4116
4116
|
function T() {
|
|
4117
4117
|
return u = e(m, f), t.dependsOnOwnProps && (h = t(r, f)), g = n(u, h, f), g;
|
|
4118
4118
|
}
|
|
4119
|
-
function
|
|
4119
|
+
function w() {
|
|
4120
4120
|
return e.dependsOnOwnProps && (u = e(m, f)), t.dependsOnOwnProps && (h = t(r, f)), g = n(u, h, f), g;
|
|
4121
4121
|
}
|
|
4122
|
-
function
|
|
4122
|
+
function E() {
|
|
4123
4123
|
var I = e(m, f), k = !c(I, u);
|
|
4124
4124
|
return u = I, k && (g = n(u, h, f)), g;
|
|
4125
4125
|
}
|
|
4126
4126
|
function N(I, k) {
|
|
4127
4127
|
var x = !l(k, f), A = !o(I, m, k, f);
|
|
4128
|
-
return m = I, f = k, x && A ? T() : x ?
|
|
4128
|
+
return m = I, f = k, x && A ? T() : x ? w() : A ? E() : g;
|
|
4129
4129
|
}
|
|
4130
4130
|
return function(k, x) {
|
|
4131
4131
|
return p ? N(k, x) : v(k, x);
|
|
@@ -4152,9 +4152,9 @@ function Ly(e, t) {
|
|
|
4152
4152
|
}
|
|
4153
4153
|
function Py(e) {
|
|
4154
4154
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? my : n, a = t.mapStateToPropsFactories, o = a === void 0 ? Ey : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? vy : l, p = t.mergePropsFactories, m = p === void 0 ? xy : p, f = t.selectorFactory, u = f === void 0 ? Oy : f;
|
|
4155
|
-
return function(g, v, T,
|
|
4156
|
-
|
|
4157
|
-
var
|
|
4155
|
+
return function(g, v, T, w) {
|
|
4156
|
+
w === void 0 && (w = {});
|
|
4157
|
+
var E = w, N = E.pure, I = N === void 0 ? !0 : N, k = E.areStatesEqual, x = k === void 0 ? Ly : k, A = E.areOwnPropsEqual, L = A === void 0 ? so : A, C = E.areStatePropsEqual, O = C === void 0 ? so : C, _ = E.areMergedPropsEqual, V = _ === void 0 ? so : _, Y = na(E, Ry), M = oo(g, o, "mapStateToProps"), X = oo(v, c, "mapDispatchToProps"), P = oo(T, m, "mergeProps");
|
|
4158
4158
|
return r(u, be({
|
|
4159
4159
|
// used in error messages
|
|
4160
4160
|
methodName: "connect",
|
|
@@ -4173,7 +4173,7 @@ function Py(e) {
|
|
|
4173
4173
|
areOwnPropsEqual: L,
|
|
4174
4174
|
areStatePropsEqual: O,
|
|
4175
4175
|
areMergedPropsEqual: V
|
|
4176
|
-
},
|
|
4176
|
+
}, Y));
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
4179
4179
|
const fp = /* @__PURE__ */ Py();
|
|
@@ -4669,7 +4669,7 @@ var va = it(function(e, t) {
|
|
|
4669
4669
|
if (!l)
|
|
4670
4670
|
return null;
|
|
4671
4671
|
function c(T) {
|
|
4672
|
-
var
|
|
4672
|
+
var w = {
|
|
4673
4673
|
type: "COMBINE",
|
|
4674
4674
|
combine: {
|
|
4675
4675
|
draggableId: T,
|
|
@@ -4677,7 +4677,7 @@ var va = it(function(e, t) {
|
|
|
4677
4677
|
}
|
|
4678
4678
|
};
|
|
4679
4679
|
return be({}, o, {
|
|
4680
|
-
at:
|
|
4680
|
+
at: w
|
|
4681
4681
|
});
|
|
4682
4682
|
}
|
|
4683
4683
|
var p = o.displaced.all, m = p.length ? p[0] : null;
|
|
@@ -5079,9 +5079,9 @@ var _T = function(e) {
|
|
|
5079
5079
|
forceShouldAnimate: !1
|
|
5080
5080
|
}), u = {}, h = {}, g = [p, m, f];
|
|
5081
5081
|
p.all.forEach(function(T) {
|
|
5082
|
-
var
|
|
5083
|
-
if (
|
|
5084
|
-
h[T] =
|
|
5082
|
+
var w = MT(T, g);
|
|
5083
|
+
if (w) {
|
|
5084
|
+
h[T] = w;
|
|
5085
5085
|
return;
|
|
5086
5086
|
}
|
|
5087
5087
|
u[T] = !0;
|
|
@@ -5156,17 +5156,17 @@ var _T = function(e) {
|
|
|
5156
5156
|
scrollJumpRequest: null
|
|
5157
5157
|
};
|
|
5158
5158
|
}
|
|
5159
|
-
var
|
|
5159
|
+
var w = Mt(g, c), E = _T({
|
|
5160
5160
|
impact: h,
|
|
5161
5161
|
viewport: l,
|
|
5162
5162
|
destination: r,
|
|
5163
5163
|
draggables: a,
|
|
5164
|
-
maxScrollChange:
|
|
5164
|
+
maxScrollChange: w
|
|
5165
5165
|
});
|
|
5166
5166
|
return {
|
|
5167
5167
|
clientSelection: p,
|
|
5168
|
-
impact:
|
|
5169
|
-
scrollJumpRequest:
|
|
5168
|
+
impact: E,
|
|
5169
|
+
scrollJumpRequest: w
|
|
5170
5170
|
};
|
|
5171
5171
|
}, Tt = function(t) {
|
|
5172
5172
|
var n = t.subject.active;
|
|
@@ -5336,8 +5336,8 @@ var _T = function(e) {
|
|
|
5336
5336
|
return h ? m : null;
|
|
5337
5337
|
}
|
|
5338
5338
|
var g = t[l.axis.line] <= n.page.borderBox.center[l.axis.line], v = function() {
|
|
5339
|
-
var
|
|
5340
|
-
return n.descriptor.id === a.descriptor.id || g ?
|
|
5339
|
+
var w = n.descriptor.index;
|
|
5340
|
+
return n.descriptor.id === a.descriptor.id || g ? w : w + 1;
|
|
5341
5341
|
}(), T = bs(l.axis, a.displaceBy);
|
|
5342
5342
|
return ia({
|
|
5343
5343
|
draggable: a,
|
|
@@ -5481,10 +5481,10 @@ function zT(e) {
|
|
|
5481
5481
|
return n ? r && n.descriptor.index > t.descriptor.index ? n.descriptor.index - 1 : n.descriptor.index : null;
|
|
5482
5482
|
}
|
|
5483
5483
|
var jT = function(e) {
|
|
5484
|
-
var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, a = e.insideDestination, o = e.last, l = e.viewport, c = e.afterCritical, p = r.axis, m = bs(r.axis, n.displaceBy), f = m.value, u = t[p.start], h = t[p.end], g = va(n, a), v = Fn(g, function(
|
|
5485
|
-
var
|
|
5484
|
+
var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, a = e.insideDestination, o = e.last, l = e.viewport, c = e.afterCritical, p = r.axis, m = bs(r.axis, n.displaceBy), f = m.value, u = t[p.start], h = t[p.end], g = va(n, a), v = Fn(g, function(w) {
|
|
5485
|
+
var E = w.descriptor.id, N = w.page.borderBox.center[p.line], I = An(E, c), k = Bp({
|
|
5486
5486
|
displaced: o,
|
|
5487
|
-
id:
|
|
5487
|
+
id: E
|
|
5488
5488
|
});
|
|
5489
5489
|
return I ? k ? h <= N : u < N - f : k ? h <= N + f : u < N;
|
|
5490
5490
|
}), T = zT({
|
|
@@ -5506,11 +5506,11 @@ var jT = function(e) {
|
|
|
5506
5506
|
if (!a.isCombineEnabled)
|
|
5507
5507
|
return null;
|
|
5508
5508
|
var c = a.axis, p = bs(a.axis, t.displaceBy), m = p.value, f = n[c.start], u = n[c.end], h = va(t, o), g = Fn(h, function(T) {
|
|
5509
|
-
var
|
|
5509
|
+
var w = T.descriptor.id, E = T.page.borderBox, N = E[c.size], I = N / qT, k = An(w, l), x = Bp({
|
|
5510
5510
|
displaced: r.displaced,
|
|
5511
|
-
id:
|
|
5511
|
+
id: w
|
|
5512
5512
|
});
|
|
5513
|
-
return k ? x ? u >
|
|
5513
|
+
return k ? x ? u > E[c.start] + I && u < E[c.end] - I : f > E[c.start] - m + I && f < E[c.end] - m - I : x ? u > E[c.start] + m + I && u < E[c.end] + m - I : f > E[c.start] + I && f < E[c.end] - I;
|
|
5514
5514
|
});
|
|
5515
5515
|
if (!g)
|
|
5516
5516
|
return null;
|
|
@@ -5605,24 +5605,24 @@ var jT = function(e) {
|
|
|
5605
5605
|
previousImpact: t.impact,
|
|
5606
5606
|
viewport: c,
|
|
5607
5607
|
afterCritical: t.afterCritical
|
|
5608
|
-
}),
|
|
5608
|
+
}), w = XT({
|
|
5609
5609
|
draggable: v,
|
|
5610
5610
|
impact: T,
|
|
5611
5611
|
previousImpact: t.impact,
|
|
5612
5612
|
draggables: p.draggables,
|
|
5613
5613
|
droppables: p.droppables
|
|
5614
|
-
}),
|
|
5614
|
+
}), E = be({}, t, {
|
|
5615
5615
|
current: g,
|
|
5616
5616
|
dimensions: {
|
|
5617
5617
|
draggables: p.draggables,
|
|
5618
|
-
droppables:
|
|
5618
|
+
droppables: w
|
|
5619
5619
|
},
|
|
5620
5620
|
impact: T,
|
|
5621
5621
|
viewport: c,
|
|
5622
5622
|
scrollJumpRequest: l || null,
|
|
5623
5623
|
forceShouldAnimate: l ? !1 : null
|
|
5624
5624
|
});
|
|
5625
|
-
return
|
|
5625
|
+
return E;
|
|
5626
5626
|
};
|
|
5627
5627
|
function QT(e, t) {
|
|
5628
5628
|
return e.map(function(n) {
|
|
@@ -5765,7 +5765,7 @@ var Fp = function(e) {
|
|
|
5765
5765
|
home: u,
|
|
5766
5766
|
draggables: l,
|
|
5767
5767
|
viewport: t.viewport
|
|
5768
|
-
}), g = h.impact, v = h.afterCritical, T = m && m.isCombineEnabled ? t.impact : g,
|
|
5768
|
+
}), g = h.impact, v = h.afterCritical, T = m && m.isCombineEnabled ? t.impact : g, w = Ap({
|
|
5769
5769
|
pageOffset: t.current.page.offset,
|
|
5770
5770
|
draggable: c.draggables[t.critical.draggable.id],
|
|
5771
5771
|
draggables: c.draggables,
|
|
@@ -5775,21 +5775,21 @@ var Fp = function(e) {
|
|
|
5775
5775
|
afterCritical: v
|
|
5776
5776
|
});
|
|
5777
5777
|
ys();
|
|
5778
|
-
var
|
|
5778
|
+
var E = be({
|
|
5779
5779
|
phase: "DRAGGING"
|
|
5780
5780
|
}, t, {
|
|
5781
5781
|
phase: "DRAGGING",
|
|
5782
|
-
impact:
|
|
5782
|
+
impact: w,
|
|
5783
5783
|
onLiftImpact: g,
|
|
5784
5784
|
dimensions: c,
|
|
5785
5785
|
afterCritical: v,
|
|
5786
5786
|
forceShouldAnimate: !1
|
|
5787
5787
|
});
|
|
5788
5788
|
if (t.phase === "COLLECTING")
|
|
5789
|
-
return
|
|
5789
|
+
return E;
|
|
5790
5790
|
var N = be({
|
|
5791
5791
|
phase: "DROP_PENDING"
|
|
5792
|
-
},
|
|
5792
|
+
}, E, {
|
|
5793
5793
|
phase: "DROP_PENDING",
|
|
5794
5794
|
reason: t.reason,
|
|
5795
5795
|
isWaiting: !1
|
|
@@ -5843,7 +5843,7 @@ var Wc = {
|
|
|
5843
5843
|
home: m,
|
|
5844
5844
|
draggables: l.draggables,
|
|
5845
5845
|
viewport: o
|
|
5846
|
-
}), v = g.impact, T = g.afterCritical,
|
|
5846
|
+
}), v = g.impact, T = g.afterCritical, w = {
|
|
5847
5847
|
phase: "DRAGGING",
|
|
5848
5848
|
isDragging: !0,
|
|
5849
5849
|
critical: r,
|
|
@@ -5859,18 +5859,18 @@ var Wc = {
|
|
|
5859
5859
|
scrollJumpRequest: null,
|
|
5860
5860
|
forceShouldAnimate: null
|
|
5861
5861
|
};
|
|
5862
|
-
return
|
|
5862
|
+
return w;
|
|
5863
5863
|
}
|
|
5864
5864
|
if (t.type === "COLLECTION_STARTING") {
|
|
5865
5865
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
5866
5866
|
return e;
|
|
5867
5867
|
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? $(!1, "Collection cannot start from phase " + e.phase) : $());
|
|
5868
|
-
var
|
|
5868
|
+
var E = be({
|
|
5869
5869
|
phase: "COLLECTING"
|
|
5870
5870
|
}, e, {
|
|
5871
5871
|
phase: "COLLECTING"
|
|
5872
5872
|
});
|
|
5873
|
-
return
|
|
5873
|
+
return E;
|
|
5874
5874
|
}
|
|
5875
5875
|
if (t.type === "PUBLISH_WHILE_DRAGGING")
|
|
5876
5876
|
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? $(!1, "Unexpected " + t.type + " received in phase " + e.phase) : $()), aE({
|
|
@@ -5905,10 +5905,10 @@ var Wc = {
|
|
|
5905
5905
|
var C = t.payload, O = C.id, _ = C.isEnabled, V = e.dimensions.droppables[O];
|
|
5906
5906
|
V || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot find Droppable[id: " + O + "] to toggle its enabled state") : $()), V.isEnabled === _ && (process.env.NODE_ENV !== "production" ? $(!1, "Trying to set droppable isEnabled to " + String(_) + `
|
|
5907
5907
|
but it is already ` + String(V.isEnabled)) : $());
|
|
5908
|
-
var
|
|
5908
|
+
var Y = be({}, V, {
|
|
5909
5909
|
isEnabled: _
|
|
5910
5910
|
});
|
|
5911
|
-
return co(e,
|
|
5911
|
+
return co(e, Y, !0);
|
|
5912
5912
|
}
|
|
5913
5913
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
5914
5914
|
if (e.phase === "DROP_PENDING")
|
|
@@ -5983,11 +5983,11 @@ var Wc = {
|
|
|
5983
5983
|
return W;
|
|
5984
5984
|
}
|
|
5985
5985
|
if (t.type === "DROP_ANIMATE") {
|
|
5986
|
-
var R = t.payload,
|
|
5986
|
+
var R = t.payload, U = R.completed, q = R.dropDuration, ne = R.newHomeClientOffset;
|
|
5987
5987
|
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot animate drop from phase " + e.phase) : $());
|
|
5988
5988
|
var oe = {
|
|
5989
5989
|
phase: "DROP_ANIMATING",
|
|
5990
|
-
completed:
|
|
5990
|
+
completed: U,
|
|
5991
5991
|
dropDuration: q,
|
|
5992
5992
|
newHomeClientOffset: ne,
|
|
5993
5993
|
dimensions: e.dimensions
|
|
@@ -6159,13 +6159,13 @@ var DE = function(e) {
|
|
|
6159
6159
|
}, h = {
|
|
6160
6160
|
draggableId: c,
|
|
6161
6161
|
scrollOptions: u
|
|
6162
|
-
}, g = e.startPublishing(h), v = g.critical, T = g.dimensions,
|
|
6162
|
+
}, g = e.startPublishing(h), v = g.critical, T = g.dimensions, w = g.viewport;
|
|
6163
6163
|
CE(v, T), r(cE({
|
|
6164
6164
|
critical: v,
|
|
6165
6165
|
dimensions: T,
|
|
6166
6166
|
clientSelection: p,
|
|
6167
6167
|
movementMode: m,
|
|
6168
|
-
viewport:
|
|
6168
|
+
viewport: w
|
|
6169
6169
|
}));
|
|
6170
6170
|
};
|
|
6171
6171
|
};
|
|
@@ -6281,13 +6281,13 @@ var DE = function(e) {
|
|
|
6281
6281
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
6282
6282
|
viewport: o.viewport,
|
|
6283
6283
|
draggables: o.dimensions.draggables
|
|
6284
|
-
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? bi(h) : null, T = g ? ba(h) : null,
|
|
6284
|
+
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? bi(h) : null, T = g ? ba(h) : null, w = {
|
|
6285
6285
|
index: p.draggable.index,
|
|
6286
6286
|
droppableId: p.droppable.id
|
|
6287
|
-
},
|
|
6287
|
+
}, E = {
|
|
6288
6288
|
draggableId: f.descriptor.id,
|
|
6289
6289
|
type: f.descriptor.type,
|
|
6290
|
-
source:
|
|
6290
|
+
source: w,
|
|
6291
6291
|
reason: l,
|
|
6292
6292
|
mode: o.movementMode,
|
|
6293
6293
|
destination: v,
|
|
@@ -6301,9 +6301,9 @@ var DE = function(e) {
|
|
|
6301
6301
|
}), I = {
|
|
6302
6302
|
critical: o.critical,
|
|
6303
6303
|
afterCritical: o.afterCritical,
|
|
6304
|
-
result:
|
|
6304
|
+
result: E,
|
|
6305
6305
|
impact: h
|
|
6306
|
-
}, k = !Pn(o.current.client.offset, N) || !!
|
|
6306
|
+
}, k = !Pn(o.current.client.offset, N) || !!E.combine;
|
|
6307
6307
|
if (!k) {
|
|
6308
6308
|
n(Di({
|
|
6309
6309
|
completed: I
|
|
@@ -6488,12 +6488,12 @@ var PE = function(t) {
|
|
|
6488
6488
|
}, c = function(h, g) {
|
|
6489
6489
|
var v = bi(g), T = ba(g);
|
|
6490
6490
|
r || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot fire onDragMove when onDragStart has not been called") : $());
|
|
6491
|
-
var
|
|
6492
|
-
|
|
6493
|
-
var
|
|
6494
|
-
|
|
6491
|
+
var w = !KE(h, r.lastCritical);
|
|
6492
|
+
w && (r.lastCritical = h);
|
|
6493
|
+
var E = !VE(r.lastLocation, v);
|
|
6494
|
+
E && (r.lastLocation = v);
|
|
6495
6495
|
var N = !$E(r.lastCombine, T);
|
|
6496
|
-
if (N && (r.lastCombine = T), !(!
|
|
6496
|
+
if (N && (r.lastCombine = T), !(!w && !E && !N)) {
|
|
6497
6497
|
var I = be({}, Hs(h, r.mode), {
|
|
6498
6498
|
combine: T,
|
|
6499
6499
|
destination: v
|
|
@@ -6674,22 +6674,22 @@ function QE(e) {
|
|
|
6674
6674
|
var t = e.registry, n = e.callbacks, r = mo(), a = null, o = function() {
|
|
6675
6675
|
a || (n.collectionStarting(), a = requestAnimationFrame(function() {
|
|
6676
6676
|
a = null, vs();
|
|
6677
|
-
var f = r, u = f.additions, h = f.removals, g = f.modified, v = Object.keys(u).map(function(
|
|
6678
|
-
return t.draggable.getById(
|
|
6679
|
-
}).sort(function(
|
|
6680
|
-
return
|
|
6681
|
-
}), T = Object.keys(g).map(function(
|
|
6682
|
-
var N = t.droppable.getById(
|
|
6677
|
+
var f = r, u = f.additions, h = f.removals, g = f.modified, v = Object.keys(u).map(function(E) {
|
|
6678
|
+
return t.draggable.getById(E).getDimension(lt);
|
|
6679
|
+
}).sort(function(E, N) {
|
|
6680
|
+
return E.descriptor.index - N.descriptor.index;
|
|
6681
|
+
}), T = Object.keys(g).map(function(E) {
|
|
6682
|
+
var N = t.droppable.getById(E), I = N.callbacks.getScrollWhileDragging();
|
|
6683
6683
|
return {
|
|
6684
|
-
droppableId:
|
|
6684
|
+
droppableId: E,
|
|
6685
6685
|
scroll: I
|
|
6686
6686
|
};
|
|
6687
|
-
}),
|
|
6687
|
+
}), w = {
|
|
6688
6688
|
additions: v,
|
|
6689
6689
|
removals: Object.keys(h),
|
|
6690
6690
|
modified: T
|
|
6691
6691
|
};
|
|
6692
|
-
r = mo(), ys(), n.publish(
|
|
6692
|
+
r = mo(), ys(), n.publish(w);
|
|
6693
6693
|
}));
|
|
6694
6694
|
}, l = function(f) {
|
|
6695
6695
|
var u = f.descriptor.id;
|
|
@@ -6816,15 +6816,15 @@ var nw = function(e, t) {
|
|
|
6816
6816
|
g.type === "ADDITION" && Uc(e, v, g.value) && r.add(g.value), g.type === "REMOVAL" && Uc(e, v, g.value) && r.remove(g.value);
|
|
6817
6817
|
}, f = function(g) {
|
|
6818
6818
|
n && (process.env.NODE_ENV !== "production" ? $(!1, "Cannot start capturing critical dimensions as there is already a collection") : $());
|
|
6819
|
-
var v = e.draggable.getById(g.draggableId), T = e.droppable.getById(v.descriptor.droppableId),
|
|
6819
|
+
var v = e.draggable.getById(g.draggableId), T = e.droppable.getById(v.descriptor.droppableId), w = {
|
|
6820
6820
|
draggable: v.descriptor,
|
|
6821
6821
|
droppable: T.descriptor
|
|
6822
|
-
},
|
|
6822
|
+
}, E = e.subscribe(m);
|
|
6823
6823
|
return n = {
|
|
6824
|
-
critical:
|
|
6825
|
-
unsubscribe:
|
|
6824
|
+
critical: w,
|
|
6825
|
+
unsubscribe: E
|
|
6826
6826
|
}, tw({
|
|
6827
|
-
critical:
|
|
6827
|
+
critical: w,
|
|
6828
6828
|
registry: e,
|
|
6829
6829
|
scrollOptions: g.scrollOptions
|
|
6830
6830
|
});
|
|
@@ -7273,8 +7273,8 @@ function Cw(e, t) {
|
|
|
7273
7273
|
var u = Qc(t), h = Qc(t);
|
|
7274
7274
|
return r.current = u, a.current = h, u.setAttribute(Mr + "-always", e), h.setAttribute(Mr + "-dynamic", e), fo().appendChild(u), fo().appendChild(h), l(n.always), o(n.resting), function() {
|
|
7275
7275
|
var g = function(T) {
|
|
7276
|
-
var
|
|
7277
|
-
|
|
7276
|
+
var w = T.current;
|
|
7277
|
+
w || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot unmount ref as it is not set") : $()), fo().removeChild(w), T.current = null;
|
|
7278
7278
|
};
|
|
7279
7279
|
g(r), g(a);
|
|
7280
7280
|
};
|
|
@@ -7320,8 +7320,8 @@ function Dw(e) {
|
|
|
7320
7320
|
focus: g
|
|
7321
7321
|
};
|
|
7322
7322
|
return t.current[h] = v, function() {
|
|
7323
|
-
var
|
|
7324
|
-
|
|
7323
|
+
var w = t.current, E = w[h];
|
|
7324
|
+
E !== v && delete w[h];
|
|
7325
7325
|
};
|
|
7326
7326
|
}, []), l = he(function(h) {
|
|
7327
7327
|
var g = tu(e, h);
|
|
@@ -8047,8 +8047,8 @@ function dC(e) {
|
|
|
8047
8047
|
sourceEvent: g
|
|
8048
8048
|
});
|
|
8049
8049
|
if (T) {
|
|
8050
|
-
var
|
|
8051
|
-
x:
|
|
8050
|
+
var w = g.touches[0], E = w.clientX, N = w.clientY, I = {
|
|
8051
|
+
x: E,
|
|
8052
8052
|
y: N
|
|
8053
8053
|
};
|
|
8054
8054
|
n.current(), u(T, I);
|
|
@@ -8079,9 +8079,9 @@ function dC(e) {
|
|
|
8079
8079
|
cancel: p,
|
|
8080
8080
|
completed: c,
|
|
8081
8081
|
getPhase: r
|
|
8082
|
-
}, T = At(window, cC(v), g),
|
|
8082
|
+
}, T = At(window, cC(v), g), w = At(window, lC(v), g);
|
|
8083
8083
|
n.current = function() {
|
|
8084
|
-
T(),
|
|
8084
|
+
T(), w();
|
|
8085
8085
|
};
|
|
8086
8086
|
}, [p, r, c]), f = he(function() {
|
|
8087
8087
|
var g = r();
|
|
@@ -8254,8 +8254,8 @@ function wC(e) {
|
|
|
8254
8254
|
shouldWarn: !0
|
|
8255
8255
|
}) && r.dispatch(L());
|
|
8256
8256
|
}
|
|
8257
|
-
var
|
|
8258
|
-
function
|
|
8257
|
+
var w = T.bind(null, "DRAGGING");
|
|
8258
|
+
function E(A) {
|
|
8259
8259
|
function L() {
|
|
8260
8260
|
t.release(), h = "COMPLETED";
|
|
8261
8261
|
}
|
|
@@ -8299,12 +8299,12 @@ function wC(e) {
|
|
|
8299
8299
|
}
|
|
8300
8300
|
function N(A) {
|
|
8301
8301
|
var L = as(function(O) {
|
|
8302
|
-
|
|
8302
|
+
w(function() {
|
|
8303
8303
|
return Hp({
|
|
8304
8304
|
client: O
|
|
8305
8305
|
});
|
|
8306
8306
|
});
|
|
8307
|
-
}), C =
|
|
8307
|
+
}), C = E({
|
|
8308
8308
|
liftActionArgs: {
|
|
8309
8309
|
id: o,
|
|
8310
8310
|
clientSelection: A,
|
|
@@ -8324,19 +8324,19 @@ function wC(e) {
|
|
|
8324
8324
|
function I() {
|
|
8325
8325
|
var A = {
|
|
8326
8326
|
moveUp: function() {
|
|
8327
|
-
return
|
|
8327
|
+
return w(SE);
|
|
8328
8328
|
},
|
|
8329
8329
|
moveRight: function() {
|
|
8330
|
-
return
|
|
8330
|
+
return w(vE);
|
|
8331
8331
|
},
|
|
8332
8332
|
moveDown: function() {
|
|
8333
|
-
return
|
|
8333
|
+
return w(bE);
|
|
8334
8334
|
},
|
|
8335
8335
|
moveLeft: function() {
|
|
8336
|
-
return
|
|
8336
|
+
return w(yE);
|
|
8337
8337
|
}
|
|
8338
8338
|
};
|
|
8339
|
-
return
|
|
8339
|
+
return E({
|
|
8340
8340
|
liftActionArgs: {
|
|
8341
8341
|
id: o,
|
|
8342
8342
|
clientSelection: fC(f),
|
|
@@ -8387,27 +8387,27 @@ function DC(e) {
|
|
|
8387
8387
|
}, [c, n, p]), Ot(function() {
|
|
8388
8388
|
return c.tryAbandon;
|
|
8389
8389
|
}, [c.tryAbandon]);
|
|
8390
|
-
var m = he(function(
|
|
8390
|
+
var m = he(function(E) {
|
|
8391
8391
|
return lu({
|
|
8392
8392
|
lockAPI: c,
|
|
8393
8393
|
registry: r,
|
|
8394
8394
|
store: n,
|
|
8395
|
-
draggableId:
|
|
8395
|
+
draggableId: E
|
|
8396
8396
|
});
|
|
8397
|
-
}, [c, r, n]), f = he(function(
|
|
8397
|
+
}, [c, r, n]), f = he(function(E, N, I) {
|
|
8398
8398
|
return wC({
|
|
8399
8399
|
lockAPI: c,
|
|
8400
8400
|
registry: r,
|
|
8401
8401
|
contextId: t,
|
|
8402
8402
|
store: n,
|
|
8403
|
-
draggableId:
|
|
8403
|
+
draggableId: E,
|
|
8404
8404
|
forceSensorStop: N,
|
|
8405
8405
|
sourceEvent: I && I.sourceEvent ? I.sourceEvent : null
|
|
8406
8406
|
});
|
|
8407
|
-
}, [t, c, r, n]), u = he(function(
|
|
8408
|
-
return yC(t,
|
|
8409
|
-
}, [t]), h = he(function(
|
|
8410
|
-
var N = r.draggable.findById(
|
|
8407
|
+
}, [t, c, r, n]), u = he(function(E) {
|
|
8408
|
+
return yC(t, E);
|
|
8409
|
+
}, [t]), h = he(function(E) {
|
|
8410
|
+
var N = r.draggable.findById(E);
|
|
8411
8411
|
return N ? N.options : null;
|
|
8412
8412
|
}, [r.draggable]), g = he(function() {
|
|
8413
8413
|
c.isClaimed() && (c.tryAbandon(), n.getState().phase !== "IDLE" && n.dispatch(Ci()));
|
|
@@ -8422,8 +8422,8 @@ function DC(e) {
|
|
|
8422
8422
|
};
|
|
8423
8423
|
}, [m, f, u, h, g, v]);
|
|
8424
8424
|
pC(l);
|
|
8425
|
-
for (var
|
|
8426
|
-
l[
|
|
8425
|
+
for (var w = 0; w < l.length; w++)
|
|
8426
|
+
l[w](T);
|
|
8427
8427
|
}
|
|
8428
8428
|
var NC = function(t) {
|
|
8429
8429
|
return {
|
|
@@ -8457,23 +8457,23 @@ function xC(e) {
|
|
|
8457
8457
|
}, h);
|
|
8458
8458
|
}, [h]), v = xw(), T = Me(function() {
|
|
8459
8459
|
return nw(v, g);
|
|
8460
|
-
}, [v, g]),
|
|
8460
|
+
}, [v, g]), w = Me(function() {
|
|
8461
8461
|
return vw(be({
|
|
8462
8462
|
scrollWindow: rw,
|
|
8463
8463
|
scrollDroppable: T.scrollDroppable
|
|
8464
8464
|
}, dc({
|
|
8465
8465
|
move: Hp
|
|
8466
8466
|
}, h)));
|
|
8467
|
-
}, [T.scrollDroppable, h]),
|
|
8467
|
+
}, [T.scrollDroppable, h]), E = Dw(t), N = Me(function() {
|
|
8468
8468
|
return XE({
|
|
8469
8469
|
announce: m,
|
|
8470
|
-
autoScroller:
|
|
8470
|
+
autoScroller: w,
|
|
8471
8471
|
dimensionMarshal: T,
|
|
8472
|
-
focusMarshal:
|
|
8472
|
+
focusMarshal: E,
|
|
8473
8473
|
getResponders: p,
|
|
8474
8474
|
styleMarshal: u
|
|
8475
8475
|
});
|
|
8476
|
-
}, [m,
|
|
8476
|
+
}, [m, w, T, E, p, u]);
|
|
8477
8477
|
process.env.NODE_ENV !== "production" && l.current && l.current !== N && process.env.NODE_ENV !== "production" && He("unexpected store change"), l.current = N;
|
|
8478
8478
|
var I = he(function() {
|
|
8479
8479
|
var O = qr(l), _ = O.getState();
|
|
@@ -8495,14 +8495,14 @@ function xC(e) {
|
|
|
8495
8495
|
}, []), C = Me(function() {
|
|
8496
8496
|
return {
|
|
8497
8497
|
marshal: T,
|
|
8498
|
-
focus:
|
|
8498
|
+
focus: E,
|
|
8499
8499
|
contextId: t,
|
|
8500
8500
|
canLift: A,
|
|
8501
8501
|
isMovementAllowed: L,
|
|
8502
8502
|
dragHandleUsageInstructionsId: f,
|
|
8503
8503
|
registry: v
|
|
8504
8504
|
};
|
|
8505
|
-
}, [t, T, f,
|
|
8505
|
+
}, [t, T, f, E, A, L, v]);
|
|
8506
8506
|
return DC({
|
|
8507
8507
|
contextId: t,
|
|
8508
8508
|
store: N,
|
|
@@ -8767,12 +8767,12 @@ function GC(e) {
|
|
|
8767
8767
|
}, [n.contextId, c, g, l]), T = he(function() {
|
|
8768
8768
|
var k = t.current, x = Ys(k);
|
|
8769
8769
|
return k && x || (process.env.NODE_ENV !== "production" ? $(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : $()), Uo(x);
|
|
8770
|
-
}, []),
|
|
8770
|
+
}, []), w = he(function() {
|
|
8771
8771
|
var k = t.current;
|
|
8772
8772
|
k || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot stop drag when no active drag") : $());
|
|
8773
8773
|
var x = Ys(k);
|
|
8774
8774
|
t.current = null, x && (h.cancel(), x.removeAttribute(Xc.contextId), x.removeEventListener("scroll", g, sd(k.scrollOptions)));
|
|
8775
|
-
}, [g, h]),
|
|
8775
|
+
}, [g, h]), E = he(function(k) {
|
|
8776
8776
|
var x = t.current;
|
|
8777
8777
|
x || (process.env.NODE_ENV !== "production" ? $(!1, "Cannot scroll when there is no drag") : $());
|
|
8778
8778
|
var A = Ys(x);
|
|
@@ -8781,10 +8781,10 @@ function GC(e) {
|
|
|
8781
8781
|
return {
|
|
8782
8782
|
getDimensionAndWatchScroll: v,
|
|
8783
8783
|
getScrollWhileDragging: T,
|
|
8784
|
-
dragStopped:
|
|
8785
|
-
scroll:
|
|
8784
|
+
dragStopped: w,
|
|
8785
|
+
scroll: E
|
|
8786
8786
|
};
|
|
8787
|
-
}, [
|
|
8787
|
+
}, [w, v, T, E]), I = Me(function() {
|
|
8788
8788
|
return {
|
|
8789
8789
|
uniqueId: r,
|
|
8790
8790
|
descriptor: c,
|
|
@@ -8793,9 +8793,9 @@ function GC(e) {
|
|
|
8793
8793
|
}, [N, c, r]);
|
|
8794
8794
|
Ot(function() {
|
|
8795
8795
|
return p.current = I.descriptor, a.droppable.register(I), function() {
|
|
8796
|
-
t.current && (process.env.NODE_ENV !== "production" && He("Unsupported: changing the droppableId or type of a Droppable during a drag"),
|
|
8796
|
+
t.current && (process.env.NODE_ENV !== "production" && He("Unsupported: changing the droppableId or type of a Droppable during a drag"), w()), a.droppable.unregister(I);
|
|
8797
8797
|
};
|
|
8798
|
-
}, [N, c,
|
|
8798
|
+
}, [N, c, w, I, o, a.droppable]), Ot(function() {
|
|
8799
8799
|
t.current && o.updateDroppableIsEnabled(p.current.id, !e.isDropDisabled);
|
|
8800
8800
|
}, [e.isDropDisabled, o]), Ot(function() {
|
|
8801
8801
|
t.current && o.updateDroppableIsCombineEnabled(p.current.id, e.isCombineEnabled);
|
|
@@ -9070,18 +9070,18 @@ function pD(e) {
|
|
|
9070
9070
|
type: m,
|
|
9071
9071
|
droppableId: f
|
|
9072
9072
|
};
|
|
9073
|
-
}, [e.draggableId, e.index, m, f]), h = e.children, g = e.draggableId, v = e.isEnabled, T = e.shouldRespectForcePress,
|
|
9074
|
-
if (lD(e, o, r), cD(
|
|
9073
|
+
}, [e.draggableId, e.index, m, f]), h = e.children, g = e.draggableId, v = e.isEnabled, T = e.shouldRespectForcePress, w = e.canDragInteractiveElements, E = e.isClone, N = e.mapped, I = e.dropAnimationFinished;
|
|
9074
|
+
if (lD(e, o, r), cD(E), !E) {
|
|
9075
9075
|
var k = Me(function() {
|
|
9076
9076
|
return {
|
|
9077
9077
|
descriptor: u,
|
|
9078
9078
|
registry: c,
|
|
9079
9079
|
getDraggableRef: r,
|
|
9080
|
-
canDragInteractiveElements:
|
|
9080
|
+
canDragInteractiveElements: w,
|
|
9081
9081
|
shouldRespectForcePress: T,
|
|
9082
9082
|
isEnabled: v
|
|
9083
9083
|
};
|
|
9084
|
-
}, [u, c, r,
|
|
9084
|
+
}, [u, c, r, w, T, v]);
|
|
9085
9085
|
iD(k);
|
|
9086
9086
|
}
|
|
9087
9087
|
var x = Me(function() {
|
|
@@ -9172,7 +9172,7 @@ function fD() {
|
|
|
9172
9172
|
var h = o.completed;
|
|
9173
9173
|
if (h.result.draggableId !== l.draggableId)
|
|
9174
9174
|
return null;
|
|
9175
|
-
var g = l.isClone, v = o.dimensions.draggables[l.draggableId], T = h.result,
|
|
9175
|
+
var g = l.isClone, v = o.dimensions.draggables[l.draggableId], T = h.result, w = T.mode, E = fu(T), N = uD(T), I = o.dropDuration, k = {
|
|
9176
9176
|
duration: I,
|
|
9177
9177
|
curve: Ni.drop,
|
|
9178
9178
|
moveTo: o.newHomeClientOffset,
|
|
@@ -9185,11 +9185,11 @@ function fD() {
|
|
|
9185
9185
|
offset: o.newHomeClientOffset,
|
|
9186
9186
|
dimension: v,
|
|
9187
9187
|
dropping: k,
|
|
9188
|
-
draggingOver:
|
|
9188
|
+
draggingOver: E,
|
|
9189
9189
|
combineWith: N,
|
|
9190
|
-
mode:
|
|
9190
|
+
mode: w,
|
|
9191
9191
|
forceShouldAnimate: null,
|
|
9192
|
-
snapshot: t(
|
|
9192
|
+
snapshot: t(w, g, E, N, k)
|
|
9193
9193
|
}
|
|
9194
9194
|
};
|
|
9195
9195
|
}
|
|
@@ -9243,12 +9243,12 @@ function gD() {
|
|
|
9243
9243
|
return r(v);
|
|
9244
9244
|
if (m.displaced.invisible[c])
|
|
9245
9245
|
return null;
|
|
9246
|
-
var T = Lr(f.displacedBy.point),
|
|
9247
|
-
return n(
|
|
9246
|
+
var T = Lr(f.displacedBy.point), w = e(T.x, T.y);
|
|
9247
|
+
return n(w, v, !0);
|
|
9248
9248
|
}
|
|
9249
9249
|
if (h)
|
|
9250
9250
|
return r(v);
|
|
9251
|
-
var
|
|
9251
|
+
var E = m.displacedBy.point, N = e(E.x, E.y);
|
|
9252
9252
|
return n(N, v, u.shouldAnimate);
|
|
9253
9253
|
}, o = function(c, p) {
|
|
9254
9254
|
if (c.isDragging)
|
|
@@ -9289,14 +9289,14 @@ function yD(e) {
|
|
|
9289
9289
|
function TD(e) {
|
|
9290
9290
|
var t = nn(Ta);
|
|
9291
9291
|
t || (process.env.NODE_ENV !== "production" ? $(!1, "Could not find app context") : $());
|
|
9292
|
-
var n = t.contextId, r = t.isMovementAllowed, a = fe(null), o = fe(null), l = e.children, c = e.droppableId, p = e.type, m = e.mode, f = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, T = e.useClone,
|
|
9292
|
+
var n = t.contextId, r = t.isMovementAllowed, a = fe(null), o = fe(null), l = e.children, c = e.droppableId, p = e.type, m = e.mode, f = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, T = e.useClone, w = e.updateViewportMaxScroll, E = e.getContainerForClone, N = he(function() {
|
|
9293
9293
|
return a.current;
|
|
9294
|
-
}, []), I = he(function(
|
|
9295
|
-
a.current =
|
|
9294
|
+
}, []), I = he(function(Y) {
|
|
9295
|
+
a.current = Y;
|
|
9296
9296
|
}, []), k = he(function() {
|
|
9297
9297
|
return o.current;
|
|
9298
|
-
}, []), x = he(function(
|
|
9299
|
-
o.current =
|
|
9298
|
+
}, []), x = he(function(Y) {
|
|
9299
|
+
o.current = Y;
|
|
9300
9300
|
}, []);
|
|
9301
9301
|
XC({
|
|
9302
9302
|
props: e,
|
|
@@ -9304,10 +9304,10 @@ function TD(e) {
|
|
|
9304
9304
|
getPlaceholderRef: k
|
|
9305
9305
|
});
|
|
9306
9306
|
var A = he(function() {
|
|
9307
|
-
r() &&
|
|
9307
|
+
r() && w({
|
|
9308
9308
|
maxScroll: qp()
|
|
9309
9309
|
});
|
|
9310
|
-
}, [r,
|
|
9310
|
+
}, [r, w]);
|
|
9311
9311
|
GC({
|
|
9312
9312
|
droppableId: c,
|
|
9313
9313
|
type: p,
|
|
@@ -9321,8 +9321,8 @@ function TD(e) {
|
|
|
9321
9321
|
var L = J.createElement(QC, {
|
|
9322
9322
|
on: e.placeholder,
|
|
9323
9323
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
9324
|
-
}, function(
|
|
9325
|
-
var M =
|
|
9324
|
+
}, function(Y) {
|
|
9325
|
+
var M = Y.onClose, X = Y.data, P = Y.animate;
|
|
9326
9326
|
return J.createElement(jC, {
|
|
9327
9327
|
placeholder: X,
|
|
9328
9328
|
onClose: M,
|
|
@@ -9350,17 +9350,17 @@ function TD(e) {
|
|
|
9350
9350
|
function V() {
|
|
9351
9351
|
if (!T)
|
|
9352
9352
|
return null;
|
|
9353
|
-
var
|
|
9354
|
-
draggableId:
|
|
9355
|
-
index:
|
|
9353
|
+
var Y = T.dragging, M = T.render, X = J.createElement(gu, {
|
|
9354
|
+
draggableId: Y.draggableId,
|
|
9355
|
+
index: Y.source.index,
|
|
9356
9356
|
isClone: !0,
|
|
9357
9357
|
isEnabled: !0,
|
|
9358
9358
|
shouldRespectForcePress: !1,
|
|
9359
9359
|
canDragInteractiveElements: !0
|
|
9360
9360
|
}, function(P, Q) {
|
|
9361
|
-
return M(P, Q,
|
|
9361
|
+
return M(P, Q, Y);
|
|
9362
9362
|
});
|
|
9363
|
-
return ub.createPortal(X,
|
|
9363
|
+
return ub.createPortal(X, E());
|
|
9364
9364
|
}
|
|
9365
9365
|
return J.createElement(Fi.Provider, {
|
|
9366
9366
|
value: _
|
|
@@ -9415,7 +9415,7 @@ var yo = function(t, n) {
|
|
|
9415
9415
|
return n;
|
|
9416
9416
|
if (!m)
|
|
9417
9417
|
return t;
|
|
9418
|
-
var
|
|
9418
|
+
var w = {
|
|
9419
9419
|
isDraggingOver: p,
|
|
9420
9420
|
draggingOverWith: h,
|
|
9421
9421
|
draggingFromThisWith: null,
|
|
@@ -9424,7 +9424,7 @@ var yo = function(t, n) {
|
|
|
9424
9424
|
return {
|
|
9425
9425
|
placeholder: f.placeholder,
|
|
9426
9426
|
shouldAnimatePlaceholder: !0,
|
|
9427
|
-
snapshot:
|
|
9427
|
+
snapshot: w,
|
|
9428
9428
|
useClone: null
|
|
9429
9429
|
};
|
|
9430
9430
|
}), o = function(c, p) {
|
|
@@ -9437,11 +9437,11 @@ var yo = function(t, n) {
|
|
|
9437
9437
|
return a(m, u, T, T, v, h);
|
|
9438
9438
|
}
|
|
9439
9439
|
if (c.phase === "DROP_ANIMATING") {
|
|
9440
|
-
var
|
|
9441
|
-
if (!yo(f,
|
|
9440
|
+
var w = c.completed;
|
|
9441
|
+
if (!yo(f, w.critical))
|
|
9442
9442
|
return n;
|
|
9443
|
-
var
|
|
9444
|
-
return a(m, u, fu(
|
|
9443
|
+
var E = id(w.critical, c.dimensions);
|
|
9444
|
+
return a(m, u, fu(w.result) === m, _t(w.impact) === m, E, h);
|
|
9445
9445
|
}
|
|
9446
9446
|
if (c.phase === "IDLE" && c.completed && !c.shouldFlush) {
|
|
9447
9447
|
var N = c.completed;
|
|
@@ -9601,9 +9601,9 @@ function vu(e) {
|
|
|
9601
9601
|
...v
|
|
9602
9602
|
} = e, T = () => {
|
|
9603
9603
|
t && t(this, p, r);
|
|
9604
|
-
},
|
|
9604
|
+
}, w = (N) => {
|
|
9605
9605
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), N.stopPropagation(), t && t(this, p, r));
|
|
9606
|
-
},
|
|
9606
|
+
}, E = H(
|
|
9607
9607
|
g || "sps-nav__item",
|
|
9608
9608
|
"sps-nav__link",
|
|
9609
9609
|
n && "active",
|
|
@@ -9612,7 +9612,7 @@ function vu(e) {
|
|
|
9612
9612
|
return /* @__PURE__ */ s.createElement(
|
|
9613
9613
|
"a",
|
|
9614
9614
|
{
|
|
9615
|
-
className:
|
|
9615
|
+
className: E,
|
|
9616
9616
|
onClick: T,
|
|
9617
9617
|
"data-toggle": "tab",
|
|
9618
9618
|
id: c,
|
|
@@ -9620,7 +9620,7 @@ function vu(e) {
|
|
|
9620
9620
|
"aria-controls": c,
|
|
9621
9621
|
...v,
|
|
9622
9622
|
tabIndex: 0,
|
|
9623
|
-
onKeyDown:
|
|
9623
|
+
onKeyDown: w
|
|
9624
9624
|
},
|
|
9625
9625
|
l && /* @__PURE__ */ s.createElement("i", { className: `sps-icon sps-icon-${l}` }),
|
|
9626
9626
|
/* @__PURE__ */ s.createElement("span", null, o),
|
|
@@ -9713,11 +9713,11 @@ function yu(e) {
|
|
|
9713
9713
|
role: "tablist",
|
|
9714
9714
|
"data-testid": `${p}__tabs`
|
|
9715
9715
|
},
|
|
9716
|
-
s.Children.map(n, (T,
|
|
9716
|
+
s.Children.map(n, (T, w) => {
|
|
9717
9717
|
if (s.isValidElement(T))
|
|
9718
9718
|
return s.cloneElement(T, {
|
|
9719
|
-
active:
|
|
9720
|
-
index:
|
|
9719
|
+
active: w === h.index,
|
|
9720
|
+
index: w,
|
|
9721
9721
|
activateTab: g,
|
|
9722
9722
|
"data-testid": `${p}__tab`
|
|
9723
9723
|
});
|
|
@@ -10285,12 +10285,12 @@ function wu(e) {
|
|
|
10285
10285
|
})
|
|
10286
10286
|
)
|
|
10287
10287
|
]
|
|
10288
|
-
}), h = { searchSelectedColumn: "" }, g = H(f.isVisible && "sps-button--open", c), { formMeta: v, formValue: T, updateForm:
|
|
10289
|
-
function
|
|
10288
|
+
}), h = { searchSelectedColumn: "" }, g = H(f.isVisible && "sps-button--open", c), { formMeta: v, formValue: T, updateForm: w } = av(h);
|
|
10289
|
+
function E(L) {
|
|
10290
10290
|
if (L.target.value) {
|
|
10291
10291
|
const C = [...f.pendingSelectedColumns], O = [];
|
|
10292
10292
|
f.pendingUnselectedColumns.forEach((_) => {
|
|
10293
|
-
L.target.value === _.name ? (
|
|
10293
|
+
L.target.value === _.name ? (w(h), C.push({
|
|
10294
10294
|
columnId: wt(),
|
|
10295
10295
|
name: _.name,
|
|
10296
10296
|
value: _.value
|
|
@@ -10325,7 +10325,7 @@ function wu(e) {
|
|
|
10325
10325
|
const O = { ...C };
|
|
10326
10326
|
return O.columnId && delete O.columnId, O;
|
|
10327
10327
|
});
|
|
10328
|
-
|
|
10328
|
+
w(h), u({
|
|
10329
10329
|
isVisible: !1,
|
|
10330
10330
|
selectedColumns: [...f.pendingSelectedColumns],
|
|
10331
10331
|
unselectedColumns: [...f.pendingUnselectedColumns]
|
|
@@ -10407,7 +10407,7 @@ function wu(e) {
|
|
|
10407
10407
|
disabled: !!(r && f.pendingSelectedColumns.length >= r),
|
|
10408
10408
|
value: T.searchSelectedColumn ? T.searchSelectedColumn : "",
|
|
10409
10409
|
formMeta: v.fields.searchSelectedColumn,
|
|
10410
|
-
onChange:
|
|
10410
|
+
onChange: E,
|
|
10411
10411
|
placeholder: "Find Columns to Add",
|
|
10412
10412
|
"data-testid": "autocomplete",
|
|
10413
10413
|
disableOptionsMemoization: !0
|
|
@@ -10577,8 +10577,8 @@ function Cu(e) {
|
|
|
10577
10577
|
selected: g,
|
|
10578
10578
|
"data-testid": v,
|
|
10579
10579
|
unsafelyReplaceClassName: T,
|
|
10580
|
-
...
|
|
10581
|
-
} = e, { t:
|
|
10580
|
+
...w
|
|
10581
|
+
} = e, { t: E } = s.useContext(Ge), [N, I] = s.useState(f), k = typeof a == "boolean" ? a : N;
|
|
10582
10582
|
function x(V) {
|
|
10583
10583
|
V.stopPropagation(), k && (!o || o()) ? (I(!1), p && p()) : !k && (!l || l()) && (I(!0), m && m());
|
|
10584
10584
|
}
|
|
@@ -10588,7 +10588,7 @@ function Cu(e) {
|
|
|
10588
10588
|
type: "button",
|
|
10589
10589
|
className: "sps-content-row__expand-btn",
|
|
10590
10590
|
onClick: x,
|
|
10591
|
-
"aria-label":
|
|
10591
|
+
"aria-label": E(`design-system:contentRow.${k ? "collapse" : "expand"}`)
|
|
10592
10592
|
},
|
|
10593
10593
|
/* @__PURE__ */ s.createElement(sn, { icon: k ? rt.MINUS_CIRCLE : rt.PLUS_CIRCLE })
|
|
10594
10594
|
), C = H(
|
|
@@ -10602,7 +10602,7 @@ function Cu(e) {
|
|
|
10602
10602
|
{ type: wr },
|
|
10603
10603
|
{ type: $i }
|
|
10604
10604
|
]);
|
|
10605
|
-
return /* @__PURE__ */ s.createElement("div", { className: C, "data-testid": v, ...
|
|
10605
|
+
return /* @__PURE__ */ s.createElement("div", { className: C, "data-testid": v, ...w }, /* @__PURE__ */ s.createElement("div", { className: "sps-content-row__col-group", "data-testid": `${v}__children` }, h && !t && /* @__PURE__ */ s.createElement(wr, { widthPx: 46 }, /* @__PURE__ */ s.createElement(A, null)), _ && !t && /* @__PURE__ */ s.createElement(wr, { widthPx: 44 }, /* @__PURE__ */ s.createElement(L, null)), _ && h && t && /* @__PURE__ */ s.createElement(wr, { widthPx: 46 }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(A, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(L, null))), O), _);
|
|
10606
10606
|
}
|
|
10607
10607
|
Object.assign(Cu, {
|
|
10608
10608
|
props: VD,
|
|
@@ -11175,31 +11175,31 @@ function Ca(e) {
|
|
|
11175
11175
|
showTwoMonths: f = !1,
|
|
11176
11176
|
"data-testid": u,
|
|
11177
11177
|
...h
|
|
11178
|
-
} = e, { t: g } = s.useContext(Ge), [v, T] = s.useState(() => Jr(e)), [
|
|
11178
|
+
} = e, { t: g } = s.useContext(Ge), [v, T] = s.useState(() => Jr(e)), [w, E] = s.useState(
|
|
11179
11179
|
Z.nextMonth({ ...v, date: 15 })
|
|
11180
11180
|
), N = s.useMemo(() => Z.create(), []);
|
|
11181
11181
|
s.useEffect(() => {
|
|
11182
|
-
if (p && p[0] && p[1] && p[0].month !== v.month && p[0].month !==
|
|
11182
|
+
if (p && p[0] && p[1] && p[0].month !== v.month && p[0].month !== w.month && p[1].month !== v.month && p[1].month !== w.month) {
|
|
11183
11183
|
const P = Jr(e);
|
|
11184
|
-
T(P),
|
|
11184
|
+
T(P), E(
|
|
11185
11185
|
Z.nextMonth({
|
|
11186
11186
|
month: P.month,
|
|
11187
11187
|
date: 15,
|
|
11188
11188
|
year: P.year
|
|
11189
11189
|
})
|
|
11190
11190
|
);
|
|
11191
|
-
} else if (p && p[0] && !p[1] && p[0].month !== v.month && p[0].month !==
|
|
11191
|
+
} else if (p && p[0] && !p[1] && p[0].month !== v.month && p[0].month !== w.month) {
|
|
11192
11192
|
const P = Jr(e);
|
|
11193
|
-
T(P),
|
|
11193
|
+
T(P), E(
|
|
11194
11194
|
Z.nextMonth({
|
|
11195
11195
|
month: P.month,
|
|
11196
11196
|
date: 15,
|
|
11197
11197
|
year: P.year
|
|
11198
11198
|
})
|
|
11199
11199
|
);
|
|
11200
|
-
} else if (p && !p[0] && p[1] && p[1].month !== v.month && p[1].month !==
|
|
11200
|
+
} else if (p && !p[0] && p[1] && p[1].month !== v.month && p[1].month !== w.month) {
|
|
11201
11201
|
const P = Jr(e);
|
|
11202
|
-
T(P),
|
|
11202
|
+
T(P), E(
|
|
11203
11203
|
Z.nextMonth({
|
|
11204
11204
|
month: P.month,
|
|
11205
11205
|
date: 15,
|
|
@@ -11214,28 +11214,28 @@ function Ca(e) {
|
|
|
11214
11214
|
a,
|
|
11215
11215
|
r
|
|
11216
11216
|
]);
|
|
11217
|
-
const I = dd(v), k = cd(v), x = dd(
|
|
11217
|
+
const I = dd(v), k = cd(v), x = dd(w), A = cd(w), [L, C] = s.useState();
|
|
11218
11218
|
function O() {
|
|
11219
|
-
T(Z.prevMonth({ ...v, date: 15 })), f &&
|
|
11219
|
+
T(Z.prevMonth({ ...v, date: 15 })), f && E(Z.prevMonth({ ...w, date: 15 }));
|
|
11220
11220
|
}
|
|
11221
11221
|
function _() {
|
|
11222
|
-
T(Z.nextMonth({ ...v, date: 15 })), f &&
|
|
11222
|
+
T(Z.nextMonth({ ...v, date: 15 })), f && E(Z.nextMonth({ ...w, date: 15 }));
|
|
11223
11223
|
}
|
|
11224
11224
|
function V(P) {
|
|
11225
|
-
P.target && P.target.classList.contains(`${Et}-day`) ? f && P.target.classList.contains(`${
|
|
11226
|
-
...
|
|
11225
|
+
P.target && P.target.classList.contains(`${Et}-day`) ? f && P.target.classList.contains(`${w.month}`) ? C({
|
|
11226
|
+
...w,
|
|
11227
11227
|
date: Number(P.target.textContent)
|
|
11228
11228
|
}) : C({
|
|
11229
11229
|
...v,
|
|
11230
11230
|
date: Number(P.target.textContent)
|
|
11231
11231
|
}) : (!P.target || !P.target.classList.contains(`${Et}-row`)) && C(void 0);
|
|
11232
11232
|
}
|
|
11233
|
-
function
|
|
11233
|
+
function Y(P, Q = !1) {
|
|
11234
11234
|
const F = `${Et}-day`;
|
|
11235
11235
|
return H(
|
|
11236
11236
|
`${Et}-cell`,
|
|
11237
11237
|
P && v && P.month === v.month && !Q && F,
|
|
11238
|
-
f && P.month ===
|
|
11238
|
+
f && P.month === w.month && Q && F,
|
|
11239
11239
|
Z.isSameDate(N, P) && `${F}--current-day`,
|
|
11240
11240
|
(Z.isSameDate(P, c) && Z.isInRange(P, [o, a]) !== !1 || p && Z.isSameDate(P, p[0]) || Z.isInRange(P, p)) && `${F}--selected`,
|
|
11241
11241
|
// explicit check for false because SimpleDateUtils.isInRange can return undefined
|
|
@@ -11264,7 +11264,7 @@ function Ca(e) {
|
|
|
11264
11264
|
);
|
|
11265
11265
|
}
|
|
11266
11266
|
function M(P) {
|
|
11267
|
-
P && v && P.month === v.month && Z.isInRange(P, [o, a]) !== !1 && l(P), P && f &&
|
|
11267
|
+
P && v && P.month === v.month && Z.isInRange(P, [o, a]) !== !1 && l(P), P && f && w && P.month === w.month && Z.isInRange(P, [o, a]) !== !1 && l(P);
|
|
11268
11268
|
}
|
|
11269
11269
|
const X = H(
|
|
11270
11270
|
Et,
|
|
@@ -11298,18 +11298,18 @@ function Ca(e) {
|
|
|
11298
11298
|
"div",
|
|
11299
11299
|
{
|
|
11300
11300
|
key: j,
|
|
11301
|
-
className:
|
|
11301
|
+
className: Y(F),
|
|
11302
11302
|
onClick: () => M(F),
|
|
11303
11303
|
"data-testid": `${u}_${Z.toString(F)}`
|
|
11304
11304
|
},
|
|
11305
11305
|
F ? F.date : ""
|
|
11306
|
-
)))))), f && /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver: V }, /* @__PURE__ */ s.createElement("div", { className: `${Et}-head` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-month` }, x ? x.format("MMMM") : ""), /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-year` },
|
|
11306
|
+
)))))), f && /* @__PURE__ */ s.createElement("div", { "data-testid": `${u}`, className: X, ...h, onMouseOver: V }, /* @__PURE__ */ s.createElement("div", { className: `${Et}-head` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label` }, /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-month` }, x ? x.format("MMMM") : ""), /* @__PURE__ */ s.createElement("span", { className: `${Et}-head-label-year` }, w.year)), /* @__PURE__ */ s.createElement(
|
|
11307
11307
|
"button",
|
|
11308
11308
|
{
|
|
11309
11309
|
type: "button",
|
|
11310
11310
|
"data-testid": `${u}_next_month`,
|
|
11311
11311
|
tabIndex: -1,
|
|
11312
|
-
disabled: Z.isSameMonth(
|
|
11312
|
+
disabled: Z.isSameMonth(w, a),
|
|
11313
11313
|
title: g("design-system:datepicker.calendar.nextMonth"),
|
|
11314
11314
|
className: "sps-datepicker__button sps-datepicker__button-next-month",
|
|
11315
11315
|
onClick: _
|
|
@@ -11319,7 +11319,7 @@ function Ca(e) {
|
|
|
11319
11319
|
"div",
|
|
11320
11320
|
{
|
|
11321
11321
|
key: j,
|
|
11322
|
-
className: H(
|
|
11322
|
+
className: H(Y(F, !0), `${w.month.toString()}`),
|
|
11323
11323
|
onClick: () => M(F),
|
|
11324
11324
|
"data-testid": `${u}_${Z.toString(F)}`
|
|
11325
11325
|
},
|
|
@@ -11377,7 +11377,7 @@ function Du({
|
|
|
11377
11377
|
"data-testid": f,
|
|
11378
11378
|
...u
|
|
11379
11379
|
}) {
|
|
11380
|
-
const { wrapperId: h, controlId: g } = xt(a, r), v = s.useRef(null), T = s.useRef(null),
|
|
11380
|
+
const { wrapperId: h, controlId: g } = xt(a, r), v = s.useRef(null), T = s.useRef(null), w = s.useRef(null), [E, N] = s.useState(
|
|
11381
11381
|
Z.toString(p, m)
|
|
11382
11382
|
), {
|
|
11383
11383
|
showPopup: I,
|
|
@@ -11388,7 +11388,7 @@ function Du({
|
|
|
11388
11388
|
r && (r.setValue(M), r.markAsDirty()), c && c(M);
|
|
11389
11389
|
}
|
|
11390
11390
|
function L(M) {
|
|
11391
|
-
A(M), N(Z.toString(M, m)),
|
|
11391
|
+
A(M), N(Z.toString(M, m)), w && w.current && w.current.focus();
|
|
11392
11392
|
}
|
|
11393
11393
|
function C(M) {
|
|
11394
11394
|
N(M.target.value);
|
|
@@ -11413,16 +11413,16 @@ function Du({
|
|
|
11413
11413
|
"sps-text-input",
|
|
11414
11414
|
I && `${md}--open`,
|
|
11415
11415
|
t
|
|
11416
|
-
),
|
|
11416
|
+
), Y = s.useRef(!1);
|
|
11417
11417
|
return s.useEffect(() => {
|
|
11418
|
-
|
|
11418
|
+
Y.current ? p ? Z.isValid(p) && N(Z.toString(p, m)) : O() : Y.current = !0;
|
|
11419
11419
|
}, [p, m]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
11420
11420
|
St,
|
|
11421
11421
|
{
|
|
11422
11422
|
id: h,
|
|
11423
11423
|
className: V,
|
|
11424
11424
|
formMeta: r,
|
|
11425
|
-
inputRef:
|
|
11425
|
+
inputRef: w,
|
|
11426
11426
|
focusInputOnClick: !0,
|
|
11427
11427
|
ref: v
|
|
11428
11428
|
},
|
|
@@ -11430,7 +11430,7 @@ function Du({
|
|
|
11430
11430
|
"input",
|
|
11431
11431
|
{
|
|
11432
11432
|
type: "text",
|
|
11433
|
-
ref:
|
|
11433
|
+
ref: w,
|
|
11434
11434
|
className: "sps-text-input__input",
|
|
11435
11435
|
id: g,
|
|
11436
11436
|
placeholder: (m == null ? void 0 : m.toUpperCase()) || xr,
|
|
@@ -11438,7 +11438,7 @@ function Du({
|
|
|
11438
11438
|
onClick: k,
|
|
11439
11439
|
onFocus: k,
|
|
11440
11440
|
onKeyDown: _,
|
|
11441
|
-
value:
|
|
11441
|
+
value: E,
|
|
11442
11442
|
disabled: n,
|
|
11443
11443
|
"data-testid": `${f}_date_input`,
|
|
11444
11444
|
...u
|
|
@@ -11703,35 +11703,35 @@ function Nu({
|
|
|
11703
11703
|
"data-testid": v,
|
|
11704
11704
|
...T
|
|
11705
11705
|
}) {
|
|
11706
|
-
const { t:
|
|
11706
|
+
const { t: w } = s.useContext(Ge), { wrapperId: E, controlId: N } = xt(a, r), I = s.useRef(null), k = s.useRef(null), x = s.useRef(null), [A, L] = s.useState(
|
|
11707
11707
|
Array.isArray(u) ? Z.toStringRange(u, g) : ""
|
|
11708
11708
|
), [C, O] = s.useState(
|
|
11709
11709
|
gd(p, m) || null
|
|
11710
11710
|
), [_, V] = s.useState(), {
|
|
11711
|
-
showPopup:
|
|
11711
|
+
showPopup: Y,
|
|
11712
11712
|
doShowPopup: M,
|
|
11713
11713
|
doHidePopup: X
|
|
11714
11714
|
} = gs(I, x);
|
|
11715
|
-
function P(R,
|
|
11716
|
-
r && (r.setValue(R), r.markAsDirty()), c && c(R,
|
|
11715
|
+
function P(R, U) {
|
|
11716
|
+
r && (r.setValue(R), r.markAsDirty()), c && c(R, U);
|
|
11717
11717
|
}
|
|
11718
11718
|
s.useEffect(() => {
|
|
11719
11719
|
O(gd(p, m) || null);
|
|
11720
11720
|
}, [m]);
|
|
11721
11721
|
function Q(R) {
|
|
11722
|
-
return R && /^design-system:/.test(R.label) ?
|
|
11722
|
+
return R && /^design-system:/.test(R.label) ? w(R.label) : (R == null ? void 0 : R.label) ?? "";
|
|
11723
11723
|
}
|
|
11724
11724
|
function F(R) {
|
|
11725
|
-
const
|
|
11725
|
+
const U = u || [];
|
|
11726
11726
|
let q, ne = C;
|
|
11727
11727
|
const oe = ne ? Q(ne) : "";
|
|
11728
|
-
oe === "Before" ? q = [null, R] : oe === "After" ? q = [R, null] : !
|
|
11728
|
+
oe === "Before" ? q = [null, R] : oe === "After" ? q = [R, null] : !U[0] || U[1] || Z.isBefore(R, U[0]) ? q = [R, null] : q = [U[0], R], (q[0] && q[1] || oe === "Before" || oe === "After") && (X(!0), k && k.current && k.current.focus()), ne && oe !== "Before" && oe !== "After" && (O(null), ne = null), P(q, ne == null ? void 0 : ne.definition), L(Z.toStringRange(q, g)), V(void 0);
|
|
11729
11729
|
}
|
|
11730
11730
|
function j(R) {
|
|
11731
11731
|
L(R.target.value);
|
|
11732
|
-
let
|
|
11732
|
+
let U = Z.createRangeFrom(R.target.value, g), q = C;
|
|
11733
11733
|
const ne = q ? Q(q) : "";
|
|
11734
|
-
Array.isArray(
|
|
11734
|
+
Array.isArray(U) && (U[0] && U[1] && (ne === "Before" || ne === "After") ? (O(null), q = null) : ne === "Before" && U[0] !== null ? U = [null, U[0]] : ne === "After" && U[0] !== null && (U = [U[0], null])), P(U, q == null ? void 0 : q.definition), V(void 0);
|
|
11735
11735
|
}
|
|
11736
11736
|
function re() {
|
|
11737
11737
|
L(""), P(), V(void 0), O(null);
|
|
@@ -11752,9 +11752,9 @@ function Nu({
|
|
|
11752
11752
|
return;
|
|
11753
11753
|
}
|
|
11754
11754
|
O(R);
|
|
11755
|
-
let
|
|
11755
|
+
let U = Z.createRangeFromPreset(R, g);
|
|
11756
11756
|
const q = R && Q(R), ne = Z.getRangeSeparator(g);
|
|
11757
|
-
(q === "Before" || q === "After") && u && u[0] && u[1] ?
|
|
11757
|
+
(q === "Before" || q === "After") && u && u[0] && u[1] ? U = Z.createRangeFrom(ne, g) : q === "Before" ? U = Z.createRangeFrom(`${ne}${Z.toString(u && (u[0] || u[1]), g)}`) : q === "After" && (U = Z.createRangeFrom(`${Z.toString(u && (u[0] || u[1]), g)}${ne}`)), JSON.stringify(u) !== JSON.stringify(U) && P(U, R == null ? void 0 : R.definition);
|
|
11758
11758
|
}
|
|
11759
11759
|
s.useEffect(() => {
|
|
11760
11760
|
if (!u) {
|
|
@@ -11762,13 +11762,13 @@ function Nu({
|
|
|
11762
11762
|
return;
|
|
11763
11763
|
}
|
|
11764
11764
|
if (!UD(p, hd) && Array.isArray(u)) {
|
|
11765
|
-
const R = Z.toStringRange(u, g),
|
|
11765
|
+
const R = Z.toStringRange(u, g), U = p.find(
|
|
11766
11766
|
(q) => R === Z.toStringRange(
|
|
11767
11767
|
Z.createRangeFromPreset(q, g),
|
|
11768
11768
|
g
|
|
11769
11769
|
)
|
|
11770
11770
|
);
|
|
11771
|
-
|
|
11771
|
+
U ? G(U) : u[0] && u[1] && O(null);
|
|
11772
11772
|
}
|
|
11773
11773
|
}, [u, g]), s.useEffect(() => {
|
|
11774
11774
|
const R = ["Before", "After"].includes(Q(C));
|
|
@@ -11781,7 +11781,7 @@ function Nu({
|
|
|
11781
11781
|
const te = H(
|
|
11782
11782
|
fd,
|
|
11783
11783
|
"sps-text-input",
|
|
11784
|
-
|
|
11784
|
+
Y && `${fd}--open`,
|
|
11785
11785
|
t
|
|
11786
11786
|
);
|
|
11787
11787
|
let ee = A;
|
|
@@ -11789,7 +11789,7 @@ function Nu({
|
|
|
11789
11789
|
return C && Q(C) === "Before" && A.startsWith(W) ? ee = A.substring(1) : C && Q(C) === "After" && A.endsWith(W) && (ee = A.substring(0, A.length - 1)), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
11790
11790
|
St,
|
|
11791
11791
|
{
|
|
11792
|
-
id:
|
|
11792
|
+
id: E,
|
|
11793
11793
|
className: te,
|
|
11794
11794
|
formMeta: r,
|
|
11795
11795
|
inputRef: k,
|
|
@@ -11820,31 +11820,31 @@ function Nu({
|
|
|
11820
11820
|
onClick: re
|
|
11821
11821
|
}
|
|
11822
11822
|
))
|
|
11823
|
-
), /* @__PURE__ */ s.createElement(Da, { isOpen:
|
|
11823
|
+
), /* @__PURE__ */ s.createElement(Da, { isOpen: Y, attachTo: I, ref: x }, /* @__PURE__ */ s.createElement("div", { className: "sps-datepicker__presets" }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", { className: "sps-datepicker__presets-label" }, w("design-system:datepicker.presetsLabel")), /* @__PURE__ */ s.createElement("div", { className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
11824
11824
|
"input",
|
|
11825
11825
|
{
|
|
11826
11826
|
"data-testid": `${v}_presets_custom_input`,
|
|
11827
11827
|
type: "radio",
|
|
11828
|
-
id: `sps-date-range-picker-${
|
|
11828
|
+
id: `sps-date-range-picker-${E}__range-custom`,
|
|
11829
11829
|
className: "sps-custom-control__input",
|
|
11830
11830
|
checked: !C,
|
|
11831
|
-
name: `sps-date-range-picker-${
|
|
11831
|
+
name: `sps-date-range-picker-${E}__range`,
|
|
11832
11832
|
onChange: () => G()
|
|
11833
11833
|
}
|
|
11834
11834
|
), /* @__PURE__ */ s.createElement(
|
|
11835
11835
|
"label",
|
|
11836
11836
|
{
|
|
11837
11837
|
className: "sps-custom-control__label",
|
|
11838
|
-
htmlFor: `sps-date-range-picker-${
|
|
11838
|
+
htmlFor: `sps-date-range-picker-${E}__range-custom`
|
|
11839
11839
|
},
|
|
11840
|
-
|
|
11841
|
-
)), p.map((R,
|
|
11840
|
+
w("design-system:datepicker.preset.custom")
|
|
11841
|
+
)), p.map((R, U) => /* @__PURE__ */ s.createElement("div", { key: Q(R), className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
11842
11842
|
"input",
|
|
11843
11843
|
{
|
|
11844
11844
|
type: "radio",
|
|
11845
11845
|
"data-testid": `${v}_preset_option_${R.label}`,
|
|
11846
|
-
id: `sps-date-range-picker-${
|
|
11847
|
-
name: `sps-date-range-picker-${
|
|
11846
|
+
id: `sps-date-range-picker-${E}__range-${U}`,
|
|
11847
|
+
name: `sps-date-range-picker-${E}__range`,
|
|
11848
11848
|
onChange: () => G(R),
|
|
11849
11849
|
checked: C != null && C.definition ? C.definition === R.definition : !1,
|
|
11850
11850
|
className: "sps-custom-control__input"
|
|
@@ -11853,7 +11853,7 @@ function Nu({
|
|
|
11853
11853
|
"label",
|
|
11854
11854
|
{
|
|
11855
11855
|
className: "sps-custom-control__label",
|
|
11856
|
-
htmlFor: `sps-date-range-picker-${
|
|
11856
|
+
htmlFor: `sps-date-range-picker-${E}__range-${U}`
|
|
11857
11857
|
},
|
|
11858
11858
|
Q(R)
|
|
11859
11859
|
))))), /* @__PURE__ */ s.createElement(
|
|
@@ -11866,7 +11866,7 @@ function Nu({
|
|
|
11866
11866
|
maxDate: o,
|
|
11867
11867
|
showTwoMonths: h,
|
|
11868
11868
|
selectedPreset: C && Q(C),
|
|
11869
|
-
isOpen:
|
|
11869
|
+
isOpen: Y
|
|
11870
11870
|
}
|
|
11871
11871
|
)));
|
|
11872
11872
|
}
|
|
@@ -12170,8 +12170,8 @@ const zD = {
|
|
|
12170
12170
|
onChange: g,
|
|
12171
12171
|
onClick: v,
|
|
12172
12172
|
onOpen: T,
|
|
12173
|
-
placeholder:
|
|
12174
|
-
searchDebounce:
|
|
12173
|
+
placeholder: w,
|
|
12174
|
+
searchDebounce: E,
|
|
12175
12175
|
searchPlaceholder: N = "Search…",
|
|
12176
12176
|
tallOptionList: I,
|
|
12177
12177
|
textKey: k,
|
|
@@ -12182,13 +12182,13 @@ const zD = {
|
|
|
12182
12182
|
loading: O,
|
|
12183
12183
|
filterByTextAndCaptionKey: _,
|
|
12184
12184
|
maxHeightOptionListPx: V,
|
|
12185
|
-
maxHeightOptionListRem:
|
|
12185
|
+
maxHeightOptionListRem: Y,
|
|
12186
12186
|
"data-testid": M,
|
|
12187
12187
|
disableOptionsMemoization: X,
|
|
12188
12188
|
disableDefaultOptionsFiltering: P,
|
|
12189
12189
|
onBeforeChange: Q,
|
|
12190
12190
|
...F
|
|
12191
|
-
} = e, j = m || p, { wrapperId: re, controlId: K } = xt(f, j), G = s.useRef(null), te = s.useRef(null), ee = s.useRef(null), { t: W } = s.useContext(Ge), [R,
|
|
12191
|
+
} = e, j = m || p, { wrapperId: re, controlId: K } = xt(f, j), G = s.useRef(null), te = s.useRef(null), ee = s.useRef(null), { t: W } = s.useContext(Ge), [R, U] = wn({
|
|
12192
12192
|
isOpen: !1,
|
|
12193
12193
|
value: L,
|
|
12194
12194
|
text: "",
|
|
@@ -12197,7 +12197,7 @@ const zD = {
|
|
|
12197
12197
|
optionIds: ""
|
|
12198
12198
|
});
|
|
12199
12199
|
function q(ge) {
|
|
12200
|
-
|
|
12200
|
+
U({
|
|
12201
12201
|
value: ge,
|
|
12202
12202
|
text: ge && k ? ge[k] : ge
|
|
12203
12203
|
});
|
|
@@ -12215,10 +12215,10 @@ const zD = {
|
|
|
12215
12215
|
ne(void 0);
|
|
12216
12216
|
}
|
|
12217
12217
|
function le() {
|
|
12218
|
-
|
|
12218
|
+
U({ isOpen: !1 });
|
|
12219
12219
|
}
|
|
12220
12220
|
function ae(ge) {
|
|
12221
|
-
ge.nativeEvent.stopImmediatePropagation(), c ||
|
|
12221
|
+
ge.nativeEvent.stopImmediatePropagation(), c || U({ isOpen: !R.isOpen });
|
|
12222
12222
|
}
|
|
12223
12223
|
function se(ge) {
|
|
12224
12224
|
c || ([
|
|
@@ -12228,19 +12228,19 @@ const zD = {
|
|
|
12228
12228
|
"ArrowDown",
|
|
12229
12229
|
" ",
|
|
12230
12230
|
"Spacebar"
|
|
12231
|
-
].indexOf(ge.key) > -1 && ge.preventDefault(), ge.persist(),
|
|
12231
|
+
].indexOf(ge.key) > -1 && ge.preventDefault(), ge.persist(), U({ keyDown: ge }));
|
|
12232
12232
|
}
|
|
12233
12233
|
function we(ge) {
|
|
12234
|
-
|
|
12234
|
+
U({ isOpen: ge });
|
|
12235
12235
|
}
|
|
12236
12236
|
function Ae(ge) {
|
|
12237
|
-
|
|
12237
|
+
U({ opensUpward: ge });
|
|
12238
12238
|
}
|
|
12239
12239
|
function Qe(ge) {
|
|
12240
|
-
ge.detail !== re &&
|
|
12240
|
+
ge.detail !== re && U({ isOpen: !1 });
|
|
12241
12241
|
}
|
|
12242
12242
|
function mt(ge) {
|
|
12243
|
-
|
|
12243
|
+
U({
|
|
12244
12244
|
optionIds: new Array(ge).fill("").map((Ue, De) => `${re}-options-option-${De}`).join(",")
|
|
12245
12245
|
});
|
|
12246
12246
|
}
|
|
@@ -12268,7 +12268,7 @@ const zD = {
|
|
|
12268
12268
|
})), s.useEffect(() => {
|
|
12269
12269
|
let ge;
|
|
12270
12270
|
return R.isOpen && (ge = () => {
|
|
12271
|
-
|
|
12271
|
+
U({ isOpen: !1 });
|
|
12272
12272
|
}, window.addEventListener("resize", ge)), () => {
|
|
12273
12273
|
ge && window.removeEventListener("resize", ge);
|
|
12274
12274
|
};
|
|
@@ -12279,7 +12279,7 @@ const zD = {
|
|
|
12279
12279
|
R.isOpen && "z-stratum-dropdown",
|
|
12280
12280
|
R.opensUpward && "sps-select--opens-upward",
|
|
12281
12281
|
o
|
|
12282
|
-
), ft = R.text ||
|
|
12282
|
+
), ft = R.text || w || W("design-system:select.defaultPlaceholder");
|
|
12283
12283
|
return /* @__PURE__ */ s.createElement(
|
|
12284
12284
|
St,
|
|
12285
12285
|
{
|
|
@@ -12339,7 +12339,7 @@ const zD = {
|
|
|
12339
12339
|
onOptionSelected: ne,
|
|
12340
12340
|
onPositionFlip: Ae,
|
|
12341
12341
|
onSelfToggle: we,
|
|
12342
|
-
searchDebounce:
|
|
12342
|
+
searchDebounce: E,
|
|
12343
12343
|
searchPlaceholder: N,
|
|
12344
12344
|
selectedOption: R.value,
|
|
12345
12345
|
specialAction: n,
|
|
@@ -12353,7 +12353,7 @@ const zD = {
|
|
|
12353
12353
|
ignoreWidthStyles: r,
|
|
12354
12354
|
loading: O,
|
|
12355
12355
|
maxHeightPx: V,
|
|
12356
|
-
maxHeightRem:
|
|
12356
|
+
maxHeightRem: Y,
|
|
12357
12357
|
disableOptionsMemoization: X,
|
|
12358
12358
|
disableDefaultOptionsFiltering: P,
|
|
12359
12359
|
"data-testid": `${M}-option-list`
|
|
@@ -12846,7 +12846,7 @@ function xu({
|
|
|
12846
12846
|
placeholder24h: g = "00:00",
|
|
12847
12847
|
placeholder12h: v = "12:00"
|
|
12848
12848
|
}) {
|
|
12849
|
-
const { t: T } = s.useContext(Ge), { wrapperId:
|
|
12849
|
+
const { t: T } = s.useContext(Ge), { wrapperId: w, controlId: E } = xt(
|
|
12850
12850
|
r && `${r}_from`,
|
|
12851
12851
|
n
|
|
12852
12852
|
), { wrapperId: N, controlId: I } = xt(
|
|
@@ -12860,7 +12860,7 @@ function xu({
|
|
|
12860
12860
|
Array.isArray(p) ? p[1] : void 0,
|
|
12861
12861
|
f,
|
|
12862
12862
|
u
|
|
12863
|
-
), [V,
|
|
12863
|
+
), [V, Y] = s.useState(
|
|
12864
12864
|
O[0]
|
|
12865
12865
|
), [M, X] = s.useState(_[0]), [P, Q] = s.useState(
|
|
12866
12866
|
O[1]
|
|
@@ -12868,7 +12868,7 @@ function xu({
|
|
|
12868
12868
|
O[2]
|
|
12869
12869
|
), [G, te] = s.useState(
|
|
12870
12870
|
_[2]
|
|
12871
|
-
), [ee, W] = s.useState(null), { showPopup: R, doShowPopup:
|
|
12871
|
+
), [ee, W] = s.useState(null), { showPopup: R, doShowPopup: U, doHidePopup: q } = gs(k, C);
|
|
12872
12872
|
function ne(ce) {
|
|
12873
12873
|
n && (n.setValue(ce), n.markAsDirty()), l && l(ce);
|
|
12874
12874
|
}
|
|
@@ -12903,7 +12903,7 @@ function xu({
|
|
|
12903
12903
|
ne(ct);
|
|
12904
12904
|
}
|
|
12905
12905
|
function we(ce) {
|
|
12906
|
-
|
|
12906
|
+
Y(ce.target.value);
|
|
12907
12907
|
}
|
|
12908
12908
|
function Ae(ce) {
|
|
12909
12909
|
Z.validateTimeString(ce.target.value, f) && Q(ce.target.value);
|
|
@@ -13031,7 +13031,7 @@ function xu({
|
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
13033
|
}, []), s.useEffect(() => {
|
|
13034
|
-
O[0] ?
|
|
13034
|
+
O[0] ? Y(O[0]) : Y(""), O[1] ? Q(O[1]) : Q(f ? "00:00" : "12:00"), f || (O[2] ? K(O[2]) : K("AM")), _[0] ? X(_[0]) : X(""), _[1] ? j(_[1]) : j(f ? "00:00" : "12:00"), f || (_[2] ? te(_[2]) : te("AM"));
|
|
13035
13035
|
}, [
|
|
13036
13036
|
O[0],
|
|
13037
13037
|
O[1],
|
|
@@ -13045,7 +13045,7 @@ function xu({
|
|
|
13045
13045
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", { className: H("sps-datetime-range-picker") }, /* @__PURE__ */ s.createElement("div", { className: H("sps-datetime-range-picker__pair") }, /* @__PURE__ */ s.createElement(
|
|
13046
13046
|
St,
|
|
13047
13047
|
{
|
|
13048
|
-
id:
|
|
13048
|
+
id: w,
|
|
13049
13049
|
className: Nn,
|
|
13050
13050
|
formMeta: n,
|
|
13051
13051
|
inputRef: x,
|
|
@@ -13066,11 +13066,11 @@ function xu({
|
|
|
13066
13066
|
ref: x,
|
|
13067
13067
|
className: "sps-text-input__input",
|
|
13068
13068
|
"data-testid": `${h}_from_date_input`,
|
|
13069
|
-
id:
|
|
13069
|
+
id: E,
|
|
13070
13070
|
placeholder: !V && !ee ? (u == null ? void 0 : u.toUpperCase()) || xr : le ? _[0] : ae ? O[0] : void 0,
|
|
13071
13071
|
onChange: we,
|
|
13072
|
-
onClick:
|
|
13073
|
-
onFocus:
|
|
13072
|
+
onClick: U,
|
|
13073
|
+
onFocus: U,
|
|
13074
13074
|
onBlur: () => Qe(),
|
|
13075
13075
|
onKeyDown: st("from"),
|
|
13076
13076
|
value: ee ? "" : V,
|
|
@@ -13149,8 +13149,8 @@ function xu({
|
|
|
13149
13149
|
id: I,
|
|
13150
13150
|
placeholder: !M && !ee ? (u == null ? void 0 : u.toUpperCase()) || xr : void 0,
|
|
13151
13151
|
onChange: ge,
|
|
13152
|
-
onClick:
|
|
13153
|
-
onFocus:
|
|
13152
|
+
onClick: U,
|
|
13153
|
+
onFocus: U,
|
|
13154
13154
|
onKeyDown: st("to"),
|
|
13155
13155
|
onBlur: () => De(),
|
|
13156
13156
|
value: M,
|
|
@@ -13207,17 +13207,17 @@ function xu({
|
|
|
13207
13207
|
{
|
|
13208
13208
|
"data-testid": `${h}_presets_custom_input`,
|
|
13209
13209
|
type: "radio",
|
|
13210
|
-
id: `sps-date-range-picker-${
|
|
13210
|
+
id: `sps-date-range-picker-${w}__range-custom`,
|
|
13211
13211
|
className: "sps-custom-control__input",
|
|
13212
13212
|
checked: !ee,
|
|
13213
|
-
name: `sps-date-range-picker-${
|
|
13213
|
+
name: `sps-date-range-picker-${w}__range`,
|
|
13214
13214
|
onChange: () => Zt()
|
|
13215
13215
|
}
|
|
13216
13216
|
), /* @__PURE__ */ s.createElement(
|
|
13217
13217
|
"label",
|
|
13218
13218
|
{
|
|
13219
13219
|
className: "sps-custom-control__label",
|
|
13220
|
-
htmlFor: `sps-date-range-picker-${
|
|
13220
|
+
htmlFor: `sps-date-range-picker-${w}__range-custom`
|
|
13221
13221
|
},
|
|
13222
13222
|
T("design-system:datepicker.preset.custom")
|
|
13223
13223
|
)), c.map((ce, me) => /* @__PURE__ */ s.createElement(
|
|
@@ -13231,8 +13231,8 @@ function xu({
|
|
|
13231
13231
|
{
|
|
13232
13232
|
type: "radio",
|
|
13233
13233
|
"data-testid": `${h}_preset_option_${ce.label}`,
|
|
13234
|
-
id: `sps-date-range-picker-${
|
|
13235
|
-
name: `sps-date-range-picker-${
|
|
13234
|
+
id: `sps-date-range-picker-${w}__range-${me}`,
|
|
13235
|
+
name: `sps-date-range-picker-${w}__range`,
|
|
13236
13236
|
onChange: () => Zt(ce),
|
|
13237
13237
|
checked: ee != null && ee.definition ? ee.definition === ce.definition : !1,
|
|
13238
13238
|
className: "sps-custom-control__input"
|
|
@@ -13242,7 +13242,7 @@ function xu({
|
|
|
13242
13242
|
"label",
|
|
13243
13243
|
{
|
|
13244
13244
|
className: "sps-custom-control__label",
|
|
13245
|
-
htmlFor: `sps-date-range-picker-${
|
|
13245
|
+
htmlFor: `sps-date-range-picker-${w}__range-${me}`
|
|
13246
13246
|
},
|
|
13247
13247
|
oe(ce)
|
|
13248
13248
|
)
|
|
@@ -13534,11 +13534,11 @@ function Cn() {
|
|
|
13534
13534
|
weekdayMismatch: !1
|
|
13535
13535
|
};
|
|
13536
13536
|
}
|
|
13537
|
-
function
|
|
13537
|
+
function w(i) {
|
|
13538
13538
|
return i._pf == null && (i._pf = T()), i._pf;
|
|
13539
13539
|
}
|
|
13540
|
-
var
|
|
13541
|
-
Array.prototype.some ?
|
|
13540
|
+
var E;
|
|
13541
|
+
Array.prototype.some ? E = Array.prototype.some : E = function(i) {
|
|
13542
13542
|
var d = Object(this), S = d.length >>> 0, b;
|
|
13543
13543
|
for (b = 0; b < S; b++)
|
|
13544
13544
|
if (b in d && i.call(this, d[b], b, d))
|
|
@@ -13547,7 +13547,7 @@ function Cn() {
|
|
|
13547
13547
|
};
|
|
13548
13548
|
function N(i) {
|
|
13549
13549
|
var d = null, S = !1, b = i._d && !isNaN(i._d.getTime());
|
|
13550
|
-
if (b && (d =
|
|
13550
|
+
if (b && (d = w(i), S = E.call(d.parsedDateParts, function(D) {
|
|
13551
13551
|
return D != null;
|
|
13552
13552
|
}), b = d.overflow < 0 && !d.empty && !d.invalidEra && !d.invalidMonth && !d.invalidWeekday && !d.weekdayMismatch && !d.nullInput && !d.invalidFormat && !d.userInvalidated && (!d.meridiem || d.meridiem && S), i._strict && (b = b && d.charsLeftOver === 0 && d.unusedTokens.length === 0 && d.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(i))
|
|
13553
13553
|
i._isValid = b;
|
|
@@ -13557,12 +13557,12 @@ function Cn() {
|
|
|
13557
13557
|
}
|
|
13558
13558
|
function I(i) {
|
|
13559
13559
|
var d = v(NaN);
|
|
13560
|
-
return i != null ? g(
|
|
13560
|
+
return i != null ? g(w(d), i) : w(d).userInvalidated = !0, d;
|
|
13561
13561
|
}
|
|
13562
13562
|
var k = r.momentProperties = [], x = !1;
|
|
13563
13563
|
function A(i, d) {
|
|
13564
13564
|
var S, b, D, B = k.length;
|
|
13565
|
-
if (m(d._isAMomentObject) || (i._isAMomentObject = d._isAMomentObject), m(d._i) || (i._i = d._i), m(d._f) || (i._f = d._f), m(d._l) || (i._l = d._l), m(d._strict) || (i._strict = d._strict), m(d._tzm) || (i._tzm = d._tzm), m(d._isUTC) || (i._isUTC = d._isUTC), m(d._offset) || (i._offset = d._offset), m(d._pf) || (i._pf =
|
|
13565
|
+
if (m(d._isAMomentObject) || (i._isAMomentObject = d._isAMomentObject), m(d._i) || (i._i = d._i), m(d._f) || (i._f = d._f), m(d._l) || (i._l = d._l), m(d._strict) || (i._strict = d._strict), m(d._tzm) || (i._tzm = d._tzm), m(d._isUTC) || (i._isUTC = d._isUTC), m(d._offset) || (i._offset = d._offset), m(d._pf) || (i._pf = w(d)), m(d._locale) || (i._locale = d._locale), B > 0)
|
|
13566
13566
|
for (S = 0; S < B; S++)
|
|
13567
13567
|
b = k[S], D = d[b], m(D) || (i[b] = D);
|
|
13568
13568
|
return i;
|
|
@@ -13602,7 +13602,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13602
13602
|
}, d);
|
|
13603
13603
|
}
|
|
13604
13604
|
var V = {};
|
|
13605
|
-
function
|
|
13605
|
+
function Y(i, d) {
|
|
13606
13606
|
r.deprecationHandler != null && r.deprecationHandler(i, d), V[i] || (O(d), V[i] = !0);
|
|
13607
13607
|
}
|
|
13608
13608
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
@@ -13665,13 +13665,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13665
13665
|
);
|
|
13666
13666
|
});
|
|
13667
13667
|
}
|
|
13668
|
-
function
|
|
13668
|
+
function U(i) {
|
|
13669
13669
|
return i.match(/\[[\s\S]/) ? i.replace(/^\[|\]$/g, "") : i.replace(/\\/g, "");
|
|
13670
13670
|
}
|
|
13671
13671
|
function q(i) {
|
|
13672
13672
|
var d = i.match(G), S, b;
|
|
13673
13673
|
for (S = 0, b = d.length; S < b; S++)
|
|
13674
|
-
W[d[S]] ? d[S] = W[d[S]] : d[S] =
|
|
13674
|
+
W[d[S]] ? d[S] = W[d[S]] : d[S] = U(d[S]);
|
|
13675
13675
|
return function(D) {
|
|
13676
13676
|
var B = "", z;
|
|
13677
13677
|
for (z = 0; z < b; z++)
|
|
@@ -13995,7 +13995,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13995
13995
|
d[ln] = Ce(i) - 1;
|
|
13996
13996
|
}), Ve(["MMM", "MMMM"], function(i, d, S, b) {
|
|
13997
13997
|
var D = S._locale.monthsParse(i, b, S._strict);
|
|
13998
|
-
D != null ? d[ln] = D :
|
|
13998
|
+
D != null ? d[ln] = D : w(S).invalidMonth = i;
|
|
13999
13999
|
});
|
|
14000
14000
|
var Sf = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
14001
14001
|
"_"
|
|
@@ -14147,7 +14147,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14147
14147
|
return d.weekdaysRegex(i);
|
|
14148
14148
|
}), Vr(["dd", "ddd", "dddd"], function(i, d, S, b) {
|
|
14149
14149
|
var D = S._locale.weekdaysParse(i, b, S._strict);
|
|
14150
|
-
D != null ? d.d = D :
|
|
14150
|
+
D != null ? d.d = D : w(S).invalidWeekday = i;
|
|
14151
14151
|
}), Vr(["d", "e", "E"], function(i, d, S, b) {
|
|
14152
14152
|
d[b] = Ce(i);
|
|
14153
14153
|
});
|
|
@@ -14290,13 +14290,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14290
14290
|
}), Ve(["a", "A"], function(i, d, S) {
|
|
14291
14291
|
S._isPm = S._locale.isPM(i), S._meridiem = i;
|
|
14292
14292
|
}), Ve(["h", "hh"], function(i, d, S) {
|
|
14293
|
-
d[at] = Ce(i),
|
|
14293
|
+
d[at] = Ce(i), w(S).bigHour = !0;
|
|
14294
14294
|
}), Ve("hmm", function(i, d, S) {
|
|
14295
14295
|
var b = i.length - 2;
|
|
14296
|
-
d[at] = Ce(i.substr(0, b)), d[Ht] = Ce(i.substr(b)),
|
|
14296
|
+
d[at] = Ce(i.substr(0, b)), d[Ht] = Ce(i.substr(b)), w(S).bigHour = !0;
|
|
14297
14297
|
}), Ve("hmmss", function(i, d, S) {
|
|
14298
14298
|
var b = i.length - 4, D = i.length - 2;
|
|
14299
|
-
d[at] = Ce(i.substr(0, b)), d[Ht] = Ce(i.substr(b, 2)), d[cn] = Ce(i.substr(D)),
|
|
14299
|
+
d[at] = Ce(i.substr(0, b)), d[Ht] = Ce(i.substr(b, 2)), d[cn] = Ce(i.substr(D)), w(S).bigHour = !0;
|
|
14300
14300
|
}), Ve("Hmm", function(i, d, S) {
|
|
14301
14301
|
var b = i.length - 2;
|
|
14302
14302
|
d[at] = Ce(i.substr(0, b)), d[Ht] = Ce(i.substr(b));
|
|
@@ -14372,7 +14372,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14372
14372
|
if (d !== null) {
|
|
14373
14373
|
var S, b = gl;
|
|
14374
14374
|
if (d.abbr = i, ze[i] != null)
|
|
14375
|
-
|
|
14375
|
+
Y(
|
|
14376
14376
|
"defineLocaleOverride",
|
|
14377
14377
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
14378
14378
|
), b = ze[i]._config;
|
|
@@ -14416,7 +14416,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14416
14416
|
}
|
|
14417
14417
|
function La(i) {
|
|
14418
14418
|
var d, S = i._a;
|
|
14419
|
-
return S &&
|
|
14419
|
+
return S && w(i).overflow === -2 && (d = S[ln] < 0 || S[ln] > 11 ? ln : S[Xt] < 1 || S[Xt] > Ia(S[ht], S[ln]) ? Xt : S[at] < 0 || S[at] > 24 || S[at] === 24 && (S[Ht] !== 0 || S[cn] !== 0 || S[Hn] !== 0) ? at : S[Ht] < 0 || S[Ht] > 59 ? Ht : S[cn] < 0 || S[cn] > 59 ? cn : S[Hn] < 0 || S[Hn] > 999 ? Hn : -1, w(i)._overflowDayOfYear && (d < ht || d > Xt) && (d = Xt), w(i)._overflowWeeks && d === -1 && (d = pf), w(i)._overflowWeekday && d === -1 && (d = uf), w(i).overflow = d), i;
|
|
14420
14420
|
}
|
|
14421
14421
|
var lh = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ch = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, dh = /Z|[+-]\d\d(?::?\d\d)?/, ks = [
|
|
14422
14422
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -14457,7 +14457,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14457
14457
|
function bl(i) {
|
|
14458
14458
|
var d, S, b = i._i, D = lh.exec(b) || ch.exec(b), B, z, ue, Te, xe = ks.length, yt = Pa.length;
|
|
14459
14459
|
if (D) {
|
|
14460
|
-
for (
|
|
14460
|
+
for (w(i).iso = !0, d = 0, S = xe; d < S; d++)
|
|
14461
14461
|
if (ks[d][1].exec(D[1])) {
|
|
14462
14462
|
z = ks[d][0], B = ks[d][2] !== !1;
|
|
14463
14463
|
break;
|
|
@@ -14517,7 +14517,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14517
14517
|
d[2]
|
|
14518
14518
|
).getDay();
|
|
14519
14519
|
if (b !== D)
|
|
14520
|
-
return
|
|
14520
|
+
return w(S).weekdayMismatch = !0, S._isValid = !1, !1;
|
|
14521
14521
|
}
|
|
14522
14522
|
return !0;
|
|
14523
14523
|
}
|
|
@@ -14541,7 +14541,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14541
14541
|
d[7]
|
|
14542
14542
|
), !Sh(d[1], S, i))
|
|
14543
14543
|
return;
|
|
14544
|
-
i._a = S, i._tzm = bh(d[8], d[9], d[10]), i._d = Hr.apply(null, i._a), i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm),
|
|
14544
|
+
i._a = S, i._tzm = bh(d[8], d[9], d[10]), i._d = Hr.apply(null, i._a), i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), w(i).rfc2822 = !0;
|
|
14545
14545
|
} else
|
|
14546
14546
|
i._isValid = !1;
|
|
14547
14547
|
}
|
|
@@ -14581,14 +14581,14 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14581
14581
|
function Ba(i) {
|
|
14582
14582
|
var d, S, b = [], D, B, z;
|
|
14583
14583
|
if (!i._d) {
|
|
14584
|
-
for (D = yh(i), i._w && i._a[Xt] == null && i._a[ln] == null && Th(i), i._dayOfYear != null && (z = cr(i._a[ht], D[ht]), (i._dayOfYear > $r(z) || i._dayOfYear === 0) && (
|
|
14584
|
+
for (D = yh(i), i._w && i._a[Xt] == null && i._a[ln] == null && Th(i), i._dayOfYear != null && (z = cr(i._a[ht], D[ht]), (i._dayOfYear > $r(z) || i._dayOfYear === 0) && (w(i)._overflowDayOfYear = !0), S = Hr(z, 0, i._dayOfYear), i._a[ln] = S.getUTCMonth(), i._a[Xt] = S.getUTCDate()), d = 0; d < 3 && i._a[d] == null; ++d)
|
|
14585
14585
|
i._a[d] = b[d] = D[d];
|
|
14586
14586
|
for (; d < 7; d++)
|
|
14587
14587
|
i._a[d] = b[d] = i._a[d] == null ? d === 2 ? 1 : 0 : i._a[d];
|
|
14588
14588
|
i._a[at] === 24 && i._a[Ht] === 0 && i._a[cn] === 0 && i._a[Hn] === 0 && (i._nextDay = !0, i._a[at] = 0), i._d = (i._useUTC ? Hr : xf).apply(
|
|
14589
14589
|
null,
|
|
14590
14590
|
b
|
|
14591
|
-
), B = i._useUTC ? i._d.getUTCDay() : i._d.getDay(), i._tzm != null && i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), i._nextDay && (i._a[at] = 24), i._w && typeof i._w.d < "u" && i._w.d !== B && (
|
|
14591
|
+
), B = i._useUTC ? i._d.getUTCDay() : i._d.getDay(), i._tzm != null && i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), i._nextDay && (i._a[at] = 24), i._w && typeof i._w.d < "u" && i._w.d !== B && (w(i).weekdayMismatch = !0);
|
|
14592
14592
|
}
|
|
14593
14593
|
}
|
|
14594
14594
|
function Th(i) {
|
|
@@ -14597,7 +14597,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14597
14597
|
d.GG,
|
|
14598
14598
|
i._a[ht],
|
|
14599
14599
|
Wr(Ye(), 1, 4).year
|
|
14600
|
-
), b = cr(d.W, 1), D = cr(d.E, 1), (D < 1 || D > 7) && (Te = !0)) : (B = i._locale._week.dow, z = i._locale._week.doy, xe = Wr(Ye(), B, z), S = cr(d.gg, i._a[ht], xe.year), b = cr(d.w, xe.week), d.d != null ? (D = d.d, (D < 0 || D > 6) && (Te = !0)) : d.e != null ? (D = d.e + B, (d.e < 0 || d.e > 6) && (Te = !0)) : D = B), b < 1 || b > dn(S, B, z) ?
|
|
14600
|
+
), b = cr(d.W, 1), D = cr(d.E, 1), (D < 1 || D > 7) && (Te = !0)) : (B = i._locale._week.dow, z = i._locale._week.doy, xe = Wr(Ye(), B, z), S = cr(d.gg, i._a[ht], xe.year), b = cr(d.w, xe.week), d.d != null ? (D = d.d, (D < 0 || D > 6) && (Te = !0)) : d.e != null ? (D = d.e + B, (d.e < 0 || d.e > 6) && (Te = !0)) : D = B), b < 1 || b > dn(S, B, z) ? w(i)._overflowWeeks = !0 : Te != null ? w(i)._overflowWeekday = !0 : (ue = ul(S, b, D, B, z), i._a[ht] = ue.year, i._dayOfYear = ue.dayOfYear);
|
|
14601
14601
|
}
|
|
14602
14602
|
r.ISO_8601 = function() {
|
|
14603
14603
|
}, r.RFC_2822 = function() {
|
|
@@ -14611,17 +14611,17 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14611
14611
|
vl(i);
|
|
14612
14612
|
return;
|
|
14613
14613
|
}
|
|
14614
|
-
i._a = [],
|
|
14614
|
+
i._a = [], w(i).empty = !0;
|
|
14615
14615
|
var d = "" + i._i, S, b, D, B, z, ue = d.length, Te = 0, xe, yt;
|
|
14616
14616
|
for (D = oe(i._f, i._locale).match(G) || [], yt = D.length, S = 0; S < yt; S++)
|
|
14617
|
-
B = D[S], b = (d.match(lf(B, i)) || [])[0], b && (z = d.substr(0, d.indexOf(b)), z.length > 0 &&
|
|
14617
|
+
B = D[S], b = (d.match(lf(B, i)) || [])[0], b && (z = d.substr(0, d.indexOf(b)), z.length > 0 && w(i).unusedInput.push(z), d = d.slice(
|
|
14618
14618
|
d.indexOf(b) + b.length
|
|
14619
|
-
), Te += b.length), W[B] ? (b ?
|
|
14620
|
-
|
|
14619
|
+
), Te += b.length), W[B] ? (b ? w(i).empty = !1 : w(i).unusedTokens.push(B), df(B, b, i)) : i._strict && !b && w(i).unusedTokens.push(B);
|
|
14620
|
+
w(i).charsLeftOver = ue - Te, d.length > 0 && w(i).unusedInput.push(d), i._a[at] <= 12 && w(i).bigHour === !0 && i._a[at] > 0 && (w(i).bigHour = void 0), w(i).parsedDateParts = i._a.slice(0), w(i).meridiem = i._meridiem, i._a[at] = Eh(
|
|
14621
14621
|
i._locale,
|
|
14622
14622
|
i._a[at],
|
|
14623
14623
|
i._meridiem
|
|
14624
|
-
), xe =
|
|
14624
|
+
), xe = w(i).era, xe !== null && (i._a[ht] = i._locale.erasConvertYear(xe, i._a[ht])), Ba(i), La(i);
|
|
14625
14625
|
}
|
|
14626
14626
|
function Eh(i, d, S) {
|
|
14627
14627
|
var b;
|
|
@@ -14630,11 +14630,11 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14630
14630
|
function wh(i) {
|
|
14631
14631
|
var d, S, b, D, B, z, ue = !1, Te = i._f.length;
|
|
14632
14632
|
if (Te === 0) {
|
|
14633
|
-
|
|
14633
|
+
w(i).invalidFormat = !0, i._d = /* @__PURE__ */ new Date(NaN);
|
|
14634
14634
|
return;
|
|
14635
14635
|
}
|
|
14636
14636
|
for (D = 0; D < Te; D++)
|
|
14637
|
-
B = 0, z = !1, d = A({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[D], Aa(d), N(d) && (z = !0), B +=
|
|
14637
|
+
B = 0, z = !1, d = A({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[D], Aa(d), N(d) && (z = !0), B += w(d).charsLeftOver, B += w(d).unusedTokens.length * 10, w(d).score = B, ue ? B < b && (b = B, S = d) : (b == null || B < b || z) && (b = B, S = d, z && (ue = !0));
|
|
14638
14638
|
g(i, S || d);
|
|
14639
14639
|
}
|
|
14640
14640
|
function Ch(i) {
|
|
@@ -14872,7 +14872,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14872
14872
|
function Nl(i, d) {
|
|
14873
14873
|
return function(S, b) {
|
|
14874
14874
|
var D, B;
|
|
14875
|
-
return b !== null && !isNaN(+b) && (
|
|
14875
|
+
return b !== null && !isNaN(+b) && (Y(
|
|
14876
14876
|
d,
|
|
14877
14877
|
"moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
14878
14878
|
), B = S, S = b, b = B), D = Wt(S, b), xl(this, D, i), this;
|
|
@@ -15221,10 +15221,10 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15221
15221
|
return N(this);
|
|
15222
15222
|
}
|
|
15223
15223
|
function Ig() {
|
|
15224
|
-
return g({},
|
|
15224
|
+
return g({}, w(this));
|
|
15225
15225
|
}
|
|
15226
15226
|
function Mg() {
|
|
15227
|
-
return
|
|
15227
|
+
return w(this).overflow;
|
|
15228
15228
|
}
|
|
15229
15229
|
function _g() {
|
|
15230
15230
|
return {
|
|
@@ -15239,7 +15239,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15239
15239
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
15240
15240
|
function(i, d, S, b) {
|
|
15241
15241
|
var D = S._locale.erasParse(i, b, S._strict);
|
|
15242
|
-
D ?
|
|
15242
|
+
D ? w(S).era = D : w(S).invalidEra = i;
|
|
15243
15243
|
}
|
|
15244
15244
|
), pe("y", Le), pe("yy", Le), pe("yyy", Le), pe("yyyy", Le), pe("yo", Gg), Ve(["y", "yy", "yyy", "yyyy"], ht), Ve(["yo"], function(i, d, S, b) {
|
|
15245
15245
|
var D;
|
|
@@ -16673,10 +16673,10 @@ function jt({
|
|
|
16673
16673
|
instanceKey: Symbol("ds-react:tooltip:instance-key"),
|
|
16674
16674
|
prevIsShown: o,
|
|
16675
16675
|
hideTimer: null
|
|
16676
|
-
}), [
|
|
16676
|
+
}), [w, E] = s.useState(!1), N = s.useRef(null), I = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, k = s.useRef(null), x = s.useCallback(() => {
|
|
16677
16677
|
T.current.hideTimer && (window.clearTimeout(T.current.hideTimer), T.current.hideTimer = null);
|
|
16678
16678
|
}, []), A = s.useCallback(() => {
|
|
16679
|
-
x(),
|
|
16679
|
+
x(), E(!1);
|
|
16680
16680
|
}, []), L = s.useCallback((j = !1) => {
|
|
16681
16681
|
var re;
|
|
16682
16682
|
if (j === !0 && jn.size > 0)
|
|
@@ -16686,16 +16686,16 @@ function jt({
|
|
|
16686
16686
|
x();
|
|
16687
16687
|
for (const K of jn.values())
|
|
16688
16688
|
K();
|
|
16689
|
-
return
|
|
16689
|
+
return E(!0), !0;
|
|
16690
16690
|
}, []), C = s.useCallback((j) => {
|
|
16691
|
-
j && j.stopPropagation(),
|
|
16691
|
+
j && j.stopPropagation(), E((re) => re ? (A(), !1) : L());
|
|
16692
16692
|
}, []), O = s.useCallback((j) => {
|
|
16693
16693
|
N.current && !N.current.contains(j.target) && A();
|
|
16694
16694
|
}, []), _ = s.useCallback(() => {
|
|
16695
16695
|
x(), T.current.hideTimer = window.setTimeout(A, a);
|
|
16696
16696
|
}, []), V = s.useCallback((j) => {
|
|
16697
|
-
var R,
|
|
16698
|
-
const [re, K] = j.split(" "), G = (R = I == null ? void 0 : I.current) == null ? void 0 : R.getBoundingClientRect(), te = k.current ? parseInt(((
|
|
16697
|
+
var R, U, q, ne, oe, le;
|
|
16698
|
+
const [re, K] = j.split(" "), G = (R = I == null ? void 0 : I.current) == null ? void 0 : R.getBoundingClientRect(), te = k.current ? parseInt(((U = getComputedStyle(k.current)) == null ? void 0 : U.width) || "0", 10) : 0, ee = te * Math.sqrt(2), W = (ee - te) / 2;
|
|
16699
16699
|
if (["top", "bottom"].includes(re) && K !== "middle") {
|
|
16700
16700
|
if (!(G != null && G.width) || G.width > 50)
|
|
16701
16701
|
return 0;
|
|
@@ -16710,7 +16710,7 @@ function jt({
|
|
|
16710
16710
|
return 0;
|
|
16711
16711
|
}, []);
|
|
16712
16712
|
s.useEffect(() => {
|
|
16713
|
-
if (typeof n == "string" && (I.current = document.getElementById(n)),
|
|
16713
|
+
if (typeof n == "string" && (I.current = document.getElementById(n)), w ? jn.set(T.current.instanceKey, A) : jn.has(T.current.instanceKey) && jn.delete(T.current.instanceKey), u === Ct.MANUAL) {
|
|
16714
16714
|
if (o !== T.current.prevIsShown)
|
|
16715
16715
|
switch (o) {
|
|
16716
16716
|
case "visible":
|
|
@@ -16728,7 +16728,7 @@ function jt({
|
|
|
16728
16728
|
}
|
|
16729
16729
|
T.current.prevIsShown = o;
|
|
16730
16730
|
}
|
|
16731
|
-
}, [
|
|
16731
|
+
}, [w, o]), s.useEffect(() => {
|
|
16732
16732
|
if (I.current)
|
|
16733
16733
|
switch (u) {
|
|
16734
16734
|
case Ct.MOUSEOVER:
|
|
@@ -16742,24 +16742,24 @@ function jt({
|
|
|
16742
16742
|
}
|
|
16743
16743
|
}, [I]), s.useEffect(() => {
|
|
16744
16744
|
var j;
|
|
16745
|
-
((j = N.current) == null ? void 0 : j.textContent) === "" &&
|
|
16746
|
-
}, [e,
|
|
16745
|
+
((j = N.current) == null ? void 0 : j.textContent) === "" && w && (T.current.hideTimer && (clearTimeout(T.current.hideTimer), T.current.hideTimer = null), E(!1));
|
|
16746
|
+
}, [e, w]), s.useEffect(
|
|
16747
16747
|
() => () => {
|
|
16748
16748
|
jn.has(T.current.instanceKey) && jn.delete(T.current.instanceKey), I.current && (I.current.removeEventListener("mouseenter", L), I.current.removeEventListener("mouseleave", _), I.current.removeEventListener("click", C), document.removeEventListener("click", O));
|
|
16749
16749
|
},
|
|
16750
16750
|
[]
|
|
16751
16751
|
);
|
|
16752
|
-
const
|
|
16752
|
+
const Y = fs("sps-tooltip-portal"), M = s.useContext(qt), [[X, P], Q] = s.useState([{}, !1]);
|
|
16753
16753
|
s.useEffect(() => {
|
|
16754
|
-
Q(
|
|
16754
|
+
Q(w ? kr(N, I, m, {
|
|
16755
16755
|
altPosition: f,
|
|
16756
16756
|
setMinWidth: !1,
|
|
16757
16757
|
offsets: [c[0] - yd, c[1] + V(m)],
|
|
16758
16758
|
...M
|
|
16759
16759
|
}) : [{}, !1]);
|
|
16760
|
-
}, [
|
|
16760
|
+
}, [w, m, f, c[0], c[1], e]), s.useEffect(() => {
|
|
16761
16761
|
const j = () => {
|
|
16762
|
-
|
|
16762
|
+
w && Q(
|
|
16763
16763
|
kr(N, I, m, {
|
|
16764
16764
|
altPosition: f,
|
|
16765
16765
|
setMinWidth: !1,
|
|
@@ -16771,16 +16771,16 @@ function jt({
|
|
|
16771
16771
|
return document.addEventListener("scroll", j), () => {
|
|
16772
16772
|
document.removeEventListener("scroll", j);
|
|
16773
16773
|
};
|
|
16774
|
-
}, [
|
|
16774
|
+
}, [w]);
|
|
16775
16775
|
const F = H(
|
|
16776
16776
|
v || "sps-tooltip",
|
|
16777
16777
|
"z-stratum-tip",
|
|
16778
16778
|
`sps-tooltip--${l}`,
|
|
16779
16779
|
`sps-tooltip--pos-${(P ? f : m).replace(" ", "-")}`,
|
|
16780
|
-
|
|
16780
|
+
w && "sps-tooltip--shown",
|
|
16781
16781
|
t
|
|
16782
16782
|
);
|
|
16783
|
-
return
|
|
16783
|
+
return Y(
|
|
16784
16784
|
/* @__PURE__ */ s.createElement(
|
|
16785
16785
|
"div",
|
|
16786
16786
|
{
|
|
@@ -16829,9 +16829,9 @@ function Wi(e) {
|
|
|
16829
16829
|
function v() {
|
|
16830
16830
|
return l && !l.isPristine() && !l.isValid();
|
|
16831
16831
|
}
|
|
16832
|
-
const [T,
|
|
16832
|
+
const [T, w] = s.useState(), [E, N] = s.useState(Re.HIDDEN);
|
|
16833
16833
|
s.useEffect(() => {
|
|
16834
|
-
|
|
16834
|
+
w(
|
|
16835
16835
|
v() || g() ? en.ERROR : en.HELP
|
|
16836
16836
|
);
|
|
16837
16837
|
}), s.useEffect(() => {
|
|
@@ -16849,7 +16849,7 @@ function Wi(e) {
|
|
|
16849
16849
|
n
|
|
16850
16850
|
);
|
|
16851
16851
|
function k() {
|
|
16852
|
-
N(
|
|
16852
|
+
N(E === Re.VISIBLE ? Re.HIDDEN : Re.VISIBLE);
|
|
16853
16853
|
}
|
|
16854
16854
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
16855
16855
|
"dt",
|
|
@@ -16869,7 +16869,7 @@ function Wi(e) {
|
|
|
16869
16869
|
kind: T,
|
|
16870
16870
|
for: u,
|
|
16871
16871
|
showOn: Ct.MANUAL,
|
|
16872
|
-
isShown:
|
|
16872
|
+
isShown: E
|
|
16873
16873
|
},
|
|
16874
16874
|
It(T === en.ERROR ? a : o)
|
|
16875
16875
|
));
|
|
@@ -17458,13 +17458,13 @@ function Ar(e) {
|
|
|
17458
17458
|
tallOptionList: g,
|
|
17459
17459
|
unsafelyReplaceClassName: v,
|
|
17460
17460
|
onOpen: T,
|
|
17461
|
-
onClose:
|
|
17462
|
-
loading:
|
|
17461
|
+
onClose: w,
|
|
17462
|
+
loading: E,
|
|
17463
17463
|
maxHeightOptionListPx: N,
|
|
17464
17464
|
maxHeightOptionListRem: I,
|
|
17465
17465
|
disableOptionsMemoization: k,
|
|
17466
17466
|
...x
|
|
17467
|
-
} = e, { t: A } = s.useContext(Ge), L = rr(l), [C, O] = s.useState(!1), [_, V] = s.useState(!1), [
|
|
17467
|
+
} = e, { t: A } = s.useContext(Ge), L = rr(l), [C, O] = s.useState(!1), [_, V] = s.useState(!1), [Y, M] = s.useState(), X = s.useRef(null), P = m.map(
|
|
17468
17468
|
(le) => typeof le == "function" ? le : Object.assign(le[1], {
|
|
17469
17469
|
...Hd,
|
|
17470
17470
|
...le[0]
|
|
@@ -17474,7 +17474,7 @@ function Ar(e) {
|
|
|
17474
17474
|
p ? (re = c || za.DEFAULT, j = o) : (re = za.ICON, j = o || rt.ELLIPSES);
|
|
17475
17475
|
const K = s.useRef(null);
|
|
17476
17476
|
s.useEffect(() => {
|
|
17477
|
-
C && T ? T() : !C &&
|
|
17477
|
+
C && T ? T() : !C && w && w();
|
|
17478
17478
|
}, [C]);
|
|
17479
17479
|
function G() {
|
|
17480
17480
|
O(!1);
|
|
@@ -17491,11 +17491,11 @@ function Ar(e) {
|
|
|
17491
17491
|
function R(le) {
|
|
17492
17492
|
a || (["Up", "ArrowUp", "Down", "ArrowDown"].indexOf(le.key) > -1 && le.preventDefault(), le.persist(), M(le));
|
|
17493
17493
|
}
|
|
17494
|
-
function
|
|
17494
|
+
function U(le) {
|
|
17495
17495
|
le.detail !== L.current && O(!1);
|
|
17496
17496
|
}
|
|
17497
|
-
s.useEffect(() => (document.addEventListener("click", G), document.addEventListener("DropdownOpened",
|
|
17498
|
-
document.removeEventListener("click", G), document.removeEventListener("DropdownOpened",
|
|
17497
|
+
s.useEffect(() => (document.addEventListener("click", G), document.addEventListener("DropdownOpened", U), () => {
|
|
17498
|
+
document.removeEventListener("click", G), document.removeEventListener("DropdownOpened", U);
|
|
17499
17499
|
}), []), s.useEffect(() => {
|
|
17500
17500
|
if (C) {
|
|
17501
17501
|
X.current && uN(X.current, {
|
|
@@ -17548,7 +17548,7 @@ function Ar(e) {
|
|
|
17548
17548
|
positionOverride: oe,
|
|
17549
17549
|
isOpen: C,
|
|
17550
17550
|
"aria-labelledby": Q,
|
|
17551
|
-
keyDown:
|
|
17551
|
+
keyDown: Y,
|
|
17552
17552
|
onOptionSelected: W,
|
|
17553
17553
|
id: F,
|
|
17554
17554
|
attachTo: K,
|
|
@@ -17558,7 +17558,7 @@ function Ar(e) {
|
|
|
17558
17558
|
offsets: [0, 0],
|
|
17559
17559
|
tall: g,
|
|
17560
17560
|
optionRole: "option",
|
|
17561
|
-
loading:
|
|
17561
|
+
loading: E,
|
|
17562
17562
|
maxHeightPx: N,
|
|
17563
17563
|
maxHeightRem: I,
|
|
17564
17564
|
disableOptionsMemoization: k,
|
|
@@ -17963,56 +17963,59 @@ function Ru({
|
|
|
17963
17963
|
onToggled: u,
|
|
17964
17964
|
tooltip: h,
|
|
17965
17965
|
applyNestedStyles: g,
|
|
17966
|
-
"data-testid": v
|
|
17966
|
+
"data-testid": v,
|
|
17967
|
+
errorsTooltipTrigger: T = Ct.CLICK,
|
|
17968
|
+
errorsTooltipPosition: w = Ee.LEFT_MIDDLE
|
|
17967
17969
|
}) {
|
|
17968
|
-
const
|
|
17970
|
+
const E = a || r, N = s.useRef(null), I = s.useRef(null), [k, x] = s.useState(Re.HIDDEN), [A, L] = s.useState(!1), [C, O] = s.useState(f);
|
|
17969
17971
|
Qd(() => {
|
|
17970
|
-
u == null || u(
|
|
17971
|
-
}, [
|
|
17972
|
-
if (
|
|
17973
|
-
const
|
|
17974
|
-
!
|
|
17972
|
+
u == null || u(C);
|
|
17973
|
+
}, [C]), s.useEffect(() => {
|
|
17974
|
+
if (E || o) {
|
|
17975
|
+
const Y = E && E.isFocused() || o && o.isFocused();
|
|
17976
|
+
!A && Y ? x(Re.VISIBLE) : A && !Y && x(Re.HIDDEN), L(Y || !1);
|
|
17975
17977
|
}
|
|
17976
17978
|
});
|
|
17977
|
-
const
|
|
17979
|
+
const _ = H(
|
|
17978
17980
|
c || g ? "nested-styles-fieldset" : "sps-fieldset",
|
|
17979
|
-
(
|
|
17981
|
+
(E && !E.isPristine() && E.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
|
|
17980
17982
|
t,
|
|
17981
|
-
m && !
|
|
17983
|
+
m && !C && "sps-fieldset--collapsed",
|
|
17982
17984
|
p && "sps-fieldset--required-fields"
|
|
17983
17985
|
);
|
|
17984
|
-
function
|
|
17985
|
-
|
|
17986
|
+
function V() {
|
|
17987
|
+
x(k === Re.VISIBLE ? Re.HIDDEN : Re.VISIBLE);
|
|
17986
17988
|
}
|
|
17987
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className:
|
|
17989
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className: _, "data-testid": v }, /* @__PURE__ */ s.createElement(
|
|
17988
17990
|
"legend",
|
|
17989
17991
|
{
|
|
17990
17992
|
className: "sps-fieldset__legend",
|
|
17991
|
-
ref:
|
|
17992
|
-
onMouseEnter: () =>
|
|
17993
|
-
onMouseLeave: () =>
|
|
17994
|
-
onClick:
|
|
17993
|
+
ref: N,
|
|
17994
|
+
onMouseEnter: () => x(Re.VISIBLE),
|
|
17995
|
+
onMouseLeave: () => x(Re.DELAYED_HIDDEN),
|
|
17996
|
+
onClick: V
|
|
17995
17997
|
},
|
|
17996
17998
|
m && /* @__PURE__ */ s.createElement(
|
|
17997
17999
|
Rr,
|
|
17998
18000
|
{
|
|
17999
|
-
checked:
|
|
18001
|
+
checked: C,
|
|
18000
18002
|
className: "d-inline-flex pr-1",
|
|
18001
|
-
onChange: () => {
|
|
18002
|
-
|
|
18003
|
+
onChange: (Y) => {
|
|
18004
|
+
O(Y.target.checked);
|
|
18003
18005
|
},
|
|
18004
18006
|
"data-testid": `${v}__checkbox`
|
|
18005
18007
|
}
|
|
18006
18008
|
),
|
|
18007
18009
|
l,
|
|
18008
|
-
h && /* @__PURE__ */ s.createElement("span", { className: "sps-fieldset__legend-icon", ref:
|
|
18009
|
-
), h && /* @__PURE__ */ s.createElement(jt, { for:
|
|
18010
|
+
h && /* @__PURE__ */ s.createElement("span", { className: "sps-fieldset__legend-icon", ref: I }, /* @__PURE__ */ s.createElement(sn, { icon: rt.INFO_CIRCLE, "data-testid": `${v}__info-icon` }))
|
|
18011
|
+
), h && /* @__PURE__ */ s.createElement(jt, { for: I }, h), !!n && /* @__PURE__ */ s.createElement(
|
|
18010
18012
|
jt,
|
|
18011
18013
|
{
|
|
18012
|
-
for:
|
|
18014
|
+
for: N,
|
|
18013
18015
|
kind: en.ERROR,
|
|
18014
|
-
showOn:
|
|
18015
|
-
|
|
18016
|
+
showOn: T,
|
|
18017
|
+
position: w,
|
|
18018
|
+
isShown: k
|
|
18016
18019
|
},
|
|
18017
18020
|
It(n)
|
|
18018
18021
|
), e));
|
|
@@ -18376,7 +18379,7 @@ function Lu(e) {
|
|
|
18376
18379
|
s.useEffect(() => {
|
|
18377
18380
|
c && typeof c == "function" && c(h), T(h < a || h > o);
|
|
18378
18381
|
}, [h]);
|
|
18379
|
-
const
|
|
18382
|
+
const w = () => h <= a ? !1 : (h > o ? g(o) : g((k) => Math.max(k - l, a)), !0), E = () => h >= o ? !1 : (h < a ? g(a) : g((k) => k + l), !0), N = (k) => {
|
|
18380
18383
|
k.target.value !== "" && g(parseInt(k.target.value, 10));
|
|
18381
18384
|
}, I = p || H("sps-incrementor sps-input-group sps-input-group__append", m);
|
|
18382
18385
|
return /* @__PURE__ */ s.createElement("div", { className: I, ...u, "data-testid": f }, /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--icon" }, /* @__PURE__ */ s.createElement(
|
|
@@ -18384,7 +18387,7 @@ function Lu(e) {
|
|
|
18384
18387
|
{
|
|
18385
18388
|
type: "button",
|
|
18386
18389
|
"data-testid": `${f}__minus`,
|
|
18387
|
-
onClick:
|
|
18390
|
+
onClick: w,
|
|
18388
18391
|
disabled: n,
|
|
18389
18392
|
"aria-label": `Subtract ${l}`
|
|
18390
18393
|
},
|
|
@@ -18405,7 +18408,7 @@ function Lu(e) {
|
|
|
18405
18408
|
{
|
|
18406
18409
|
type: "button",
|
|
18407
18410
|
"data-testid": `${f}__plus`,
|
|
18408
|
-
onClick:
|
|
18411
|
+
onClick: E,
|
|
18409
18412
|
disabled: n,
|
|
18410
18413
|
"aria-label": `Add ${l}`
|
|
18411
18414
|
},
|
|
@@ -18470,7 +18473,7 @@ function Pu({
|
|
|
18470
18473
|
"data-testid": f,
|
|
18471
18474
|
...u
|
|
18472
18475
|
}) {
|
|
18473
|
-
const { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(null), T = s.useRef(null),
|
|
18476
|
+
const { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(null), T = s.useRef(null), w = s.useRef(null), [E, N] = s.useState(Re.HIDDEN), [I, k] = s.useState(Re.HIDDEN), [x, A] = s.useState(Re.HIDDEN), [L, C] = s.useState(
|
|
18474
18477
|
Re.HIDDEN
|
|
18475
18478
|
);
|
|
18476
18479
|
function O() {
|
|
@@ -18482,22 +18485,22 @@ function Pu({
|
|
|
18482
18485
|
function V(W) {
|
|
18483
18486
|
W.preventDefault(), _(), A(Eo(x));
|
|
18484
18487
|
}
|
|
18485
|
-
function
|
|
18488
|
+
function Y() {
|
|
18486
18489
|
return r && (r instanceof Tr && r.isVisibilyInvalid() || !(r instanceof Tr) && !r.isValid()) ? [I, k] : r && r instanceof Tr && r.hasPreventativeErrors() ? [L, C] : [Re.HIDDEN, () => {
|
|
18487
18490
|
}];
|
|
18488
18491
|
}
|
|
18489
18492
|
function M() {
|
|
18490
18493
|
_();
|
|
18491
|
-
const [W, R] =
|
|
18494
|
+
const [W, R] = Y();
|
|
18492
18495
|
R(Eo(W));
|
|
18493
18496
|
}
|
|
18494
18497
|
function X() {
|
|
18495
18498
|
_();
|
|
18496
|
-
const [, W] =
|
|
18499
|
+
const [, W] = Y();
|
|
18497
18500
|
W(Re.VISIBLE);
|
|
18498
18501
|
}
|
|
18499
18502
|
function P(W) {
|
|
18500
|
-
W.preventDefault(), _(), N(Eo(
|
|
18503
|
+
W.preventDefault(), _(), N(Eo(E));
|
|
18501
18504
|
}
|
|
18502
18505
|
s.useEffect(() => {
|
|
18503
18506
|
r && (r.onFocus = X, r.onBlur = _);
|
|
@@ -18516,8 +18519,8 @@ function Pu({
|
|
|
18516
18519
|
if (F.hasError(R))
|
|
18517
18520
|
return h(`design-system:label.errors.${R}`, { context: F.errors ? F.errors[R] : "" });
|
|
18518
18521
|
if (F.hasError("dateConstraint")) {
|
|
18519
|
-
const R = (W = F.errors) == null ? void 0 : W.dateConstraint,
|
|
18520
|
-
return h(`design-system:label.errors.dateConstraint.${
|
|
18522
|
+
const R = (W = F.errors) == null ? void 0 : W.dateConstraint, U = R.minExceeded ? "min" : "max";
|
|
18523
|
+
return h(`design-system:label.errors.dateConstraint.${U}`, { context: R });
|
|
18521
18524
|
}
|
|
18522
18525
|
}
|
|
18523
18526
|
return null;
|
|
@@ -18539,8 +18542,8 @@ function Pu({
|
|
|
18539
18542
|
const ee = s.useRef(null);
|
|
18540
18543
|
return s.useEffect(() => {
|
|
18541
18544
|
function W(R) {
|
|
18542
|
-
var
|
|
18543
|
-
(
|
|
18545
|
+
var U;
|
|
18546
|
+
(U = ee.current) != null && U.contains(R.target) || O();
|
|
18544
18547
|
}
|
|
18545
18548
|
return document.addEventListener("click", W), () => {
|
|
18546
18549
|
document.removeEventListener("click", W);
|
|
@@ -18595,7 +18598,7 @@ function Pu({
|
|
|
18595
18598
|
/* @__PURE__ */ s.createElement(
|
|
18596
18599
|
"span",
|
|
18597
18600
|
{
|
|
18598
|
-
ref:
|
|
18601
|
+
ref: w,
|
|
18599
18602
|
className: "sps-form-group__label-content"
|
|
18600
18603
|
},
|
|
18601
18604
|
te
|
|
@@ -18632,7 +18635,7 @@ function Pu({
|
|
|
18632
18635
|
kind: en.DEFAULT,
|
|
18633
18636
|
for: T,
|
|
18634
18637
|
showOn: Ct.MANUAL,
|
|
18635
|
-
isShown:
|
|
18638
|
+
isShown: E,
|
|
18636
18639
|
altPosition: Ee.TOP_MIDDLE
|
|
18637
18640
|
},
|
|
18638
18641
|
It(o)
|
|
@@ -18650,7 +18653,7 @@ function Pu({
|
|
|
18650
18653
|
jt,
|
|
18651
18654
|
{
|
|
18652
18655
|
kind: en.WARNING,
|
|
18653
|
-
for:
|
|
18656
|
+
for: w,
|
|
18654
18657
|
showOn: Ct.MANUAL,
|
|
18655
18658
|
isShown: L,
|
|
18656
18659
|
altPosition: Ee.LEFT_MIDDLE
|
|
@@ -18961,17 +18964,17 @@ const Na = s.createContext({
|
|
|
18961
18964
|
u.current = r, s.useEffect(() => {
|
|
18962
18965
|
a && a !== p && m(a);
|
|
18963
18966
|
}, [a]);
|
|
18964
|
-
const h = s.useCallback((
|
|
18965
|
-
var
|
|
18966
|
-
m(
|
|
18967
|
-
}, []), g = s.useCallback((
|
|
18968
|
-
var
|
|
18969
|
-
c(
|
|
18967
|
+
const h = s.useCallback((w) => {
|
|
18968
|
+
var E;
|
|
18969
|
+
m(w), (E = f.current) == null || E.call(f, w);
|
|
18970
|
+
}, []), g = s.useCallback((w) => {
|
|
18971
|
+
var E;
|
|
18972
|
+
c(w), (E = u.current) == null || E.call(u, w);
|
|
18970
18973
|
}, []), v = s.useCallback(
|
|
18971
|
-
(
|
|
18974
|
+
(w, E) => {
|
|
18972
18975
|
c((N) => {
|
|
18973
18976
|
var k;
|
|
18974
|
-
const I = { ...N, [
|
|
18977
|
+
const I = { ...N, [w]: E };
|
|
18975
18978
|
return (k = u.current) == null || k.call(u, I), I;
|
|
18976
18979
|
});
|
|
18977
18980
|
},
|
|
@@ -19066,36 +19069,36 @@ const Na = s.createContext({
|
|
|
19066
19069
|
const a = r == null ? void 0 : r.querySelector("thead"), o = r == null ? void 0 : r.querySelector("table"), l = o == null ? void 0 : o.querySelector("tbody>tr"), c = l == null ? void 0 : l.querySelectorAll("td"), p = (a == null ? void 0 : a.querySelectorAll("th")) || [], m = document.body.querySelector(".sps-navbar-container");
|
|
19067
19070
|
let f = r == null ? void 0 : r.querySelector(".placeholder-head"), u;
|
|
19068
19071
|
const h = () => {
|
|
19069
|
-
a && (a.style.position = t ? "sticky" : "", a.style.top = t ? "0" : "", a.style.overflow = "", a.style.maxWidth = "", a.style.width = "", a.style.minWidth = ""), f && (f.style.width = "", f.style.height = ""), c && Array.from(c).forEach((
|
|
19070
|
-
const N = p[
|
|
19072
|
+
a && (a.style.position = t ? "sticky" : "", a.style.top = t ? "0" : "", a.style.overflow = "", a.style.maxWidth = "", a.style.width = "", a.style.minWidth = ""), f && (f.style.width = "", f.style.height = ""), c && Array.from(c).forEach((w, E) => {
|
|
19073
|
+
const N = p[E];
|
|
19071
19074
|
if (N) {
|
|
19072
19075
|
const I = N.getAttribute("data-resizekey"), k = I && n ? n[I] : void 0;
|
|
19073
19076
|
if (k) {
|
|
19074
19077
|
const x = `${k}px`;
|
|
19075
|
-
N.style.minWidth = x, N.style.maxWidth = x, N.style.width = x,
|
|
19078
|
+
N.style.minWidth = x, N.style.maxWidth = x, N.style.width = x, w.style.minWidth = x, w.style.maxWidth = x, w.style.width = x;
|
|
19076
19079
|
} else
|
|
19077
|
-
N.style.minWidth = "", N.style.width = "", N.style.maxWidth = "",
|
|
19080
|
+
N.style.minWidth = "", N.style.width = "", N.style.maxWidth = "", w.style.minWidth = "", w.style.width = "", w.style.maxWidth = "";
|
|
19078
19081
|
} else
|
|
19079
|
-
|
|
19082
|
+
w.style.minWidth = "", w.style.width = "", w.style.maxWidth = "";
|
|
19080
19083
|
});
|
|
19081
19084
|
}, g = () => {
|
|
19082
19085
|
a && r && (a.scrollLeft = r.scrollLeft);
|
|
19083
19086
|
}, v = () => {
|
|
19084
|
-
let
|
|
19085
|
-
u === window ?
|
|
19086
|
-
const
|
|
19087
|
-
if (
|
|
19087
|
+
let w = null;
|
|
19088
|
+
u === window ? w = m ? m.getBoundingClientRect().height : 0 : u instanceof HTMLElement && (w = u.getBoundingClientRect().top);
|
|
19089
|
+
const E = r.scrollLeft, N = a == null ? void 0 : a.getBoundingClientRect(), I = r.getBoundingClientRect();
|
|
19090
|
+
if (w && N && N.top <= w && w <= I.bottom - N.height && I.top <= w) {
|
|
19088
19091
|
if (c && Array.from(c).forEach((k, x) => {
|
|
19089
19092
|
const A = k.getBoundingClientRect().width, L = p[x].getBoundingClientRect().width, C = `${Math.max(A, L)}px`;
|
|
19090
19093
|
p[x].style.minWidth = C, p[x].style.width = C, p[x].style.maxWidth = C, k.style.minWidth = C, k.style.width = C, k.style.maxWidth = C;
|
|
19091
19094
|
}), a && e.current) {
|
|
19092
|
-
a.style.position = "fixed", a.style.top = `${
|
|
19095
|
+
a.style.position = "fixed", a.style.top = `${w}px`, a.style.overflow = "hidden";
|
|
19093
19096
|
const k = e.current.offsetWidth - e.current.clientWidth, x = `${I.width - k}px`;
|
|
19094
19097
|
a.style.maxWidth = x, a.style.width = x, a.style.minWidth = x;
|
|
19095
19098
|
}
|
|
19096
19099
|
f || (f = document.createElement("div"), f.style.width = `${N.width}px`, f.style.height = `${N.height}px`, f.className = "placeholder-head", r.insertBefore(f, o));
|
|
19097
19100
|
} else f && (r.removeChild(f), f = null, h());
|
|
19098
|
-
r.scrollLeft =
|
|
19101
|
+
r.scrollLeft = E, g();
|
|
19099
19102
|
}, T = () => {
|
|
19100
19103
|
h(), v(), g();
|
|
19101
19104
|
};
|
|
@@ -19199,7 +19202,7 @@ const kN = ({
|
|
|
19199
19202
|
function T() {
|
|
19200
19203
|
e.current && p && h && g && (h.style.right = `${f}px`, g.style.right = `${f}px`);
|
|
19201
19204
|
}
|
|
19202
|
-
function
|
|
19205
|
+
function w() {
|
|
19203
19206
|
if (e.current) {
|
|
19204
19207
|
const C = m ? `${m}px` : "";
|
|
19205
19208
|
e.current.style.width = C, e.current.style.maxWidth = C, e.current.style.minWidth = C;
|
|
@@ -19207,13 +19210,13 @@ const kN = ({
|
|
|
19207
19210
|
if (O && (O.style.overflow = C ? "hidden" : "", O.style.textOverflow = C ? "ellipsis" : ""), h && g && (h.style.right = "0", h.style.backgroundColor = "", g.style.right = "0", g.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), u) {
|
|
19208
19211
|
const _ = u.querySelectorAll("thead > tr > th");
|
|
19209
19212
|
for (let V = 0; V < _.length; V += 1) {
|
|
19210
|
-
const
|
|
19211
|
-
_[V].style.cursor = "default", _[V] !== e.current && M && (_[V].classList.add("sps-table__header--resizeable"), M.style.display = "block"),
|
|
19213
|
+
const Y = _[V].querySelector(".sps-table__header-cell-body"), M = _[V].querySelector(".sps-table__column-resizer");
|
|
19214
|
+
_[V].style.cursor = "default", _[V] !== e.current && M && (_[V].classList.add("sps-table__header--resizeable"), M.style.display = "block"), Y != null && Y.textContent && !Y.title && (Y.title = Y.textContent);
|
|
19212
19215
|
}
|
|
19213
19216
|
}
|
|
19214
19217
|
}
|
|
19215
19218
|
}
|
|
19216
|
-
const
|
|
19219
|
+
const E = (C) => {
|
|
19217
19220
|
e.current && (C.preventDefault(), p = C.clientX, m = e.current.clientWidth, v());
|
|
19218
19221
|
}, N = (C) => {
|
|
19219
19222
|
if (!p || !e.current)
|
|
@@ -19221,13 +19224,13 @@ const kN = ({
|
|
|
19221
19224
|
const O = Math.max(Math.min(p - C.clientX, 40), -40);
|
|
19222
19225
|
O !== 0 && (p = C.clientX, f += O, m = Math.max(m - O, 40), T());
|
|
19223
19226
|
}, I = () => {
|
|
19224
|
-
!e.current || !p || (p = 0, f = 0,
|
|
19227
|
+
!e.current || !p || (p = 0, f = 0, w(), o(n, m));
|
|
19225
19228
|
}, k = () => {
|
|
19226
|
-
m = 0,
|
|
19229
|
+
m = 0, w(), o(n, m);
|
|
19227
19230
|
};
|
|
19228
19231
|
let x = !1;
|
|
19229
|
-
return l && t.current && (t.current.addEventListener("dragstart",
|
|
19230
|
-
t.current && x && (t.current.removeEventListener("dragstart",
|
|
19232
|
+
return l && t.current && (t.current.addEventListener("dragstart", E), t.current.addEventListener("mousedown", E), t.current.addEventListener("dblclick", k), window.addEventListener("mousemove", N), window.addEventListener("dragend", I), window.addEventListener("mouseup", I), x = !0, w()), () => {
|
|
19233
|
+
t.current && x && (t.current.removeEventListener("dragstart", E), t.current.removeEventListener("mousedown", E), t.current.removeEventListener("dblclick", k)), x && (window.removeEventListener("mousemove", N), window.removeEventListener("dragend", I), window.removeEventListener("mouseup", I));
|
|
19231
19234
|
};
|
|
19232
19235
|
}, [
|
|
19233
19236
|
l,
|
|
@@ -19280,20 +19283,20 @@ function ut({
|
|
|
19280
19283
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), h());
|
|
19281
19284
|
}, v = s.useRef(null);
|
|
19282
19285
|
Au(c, v);
|
|
19283
|
-
const T = s.useRef(null), { isResizeable:
|
|
19286
|
+
const T = s.useRef(null), { isResizeable: w } = kN({ tableHeaderRef: v, resizerRef: T, resizeKey: a }), E = H(
|
|
19284
19287
|
l || "sps-table__header",
|
|
19285
19288
|
n && "sps-table__header--control",
|
|
19286
19289
|
!r && "sps-table__header--sort-disabled",
|
|
19287
19290
|
(u == null ? void 0 : u.direction) === Qt.ASCENDING && "sps-table__header--sorted-asc",
|
|
19288
19291
|
(u == null ? void 0 : u.direction) === Qt.DESCENDING && "sps-table__header--sorted-desc",
|
|
19289
19292
|
c && "sps-table__cell--pinned",
|
|
19290
|
-
|
|
19293
|
+
w && "sps-table__header--resizeable",
|
|
19291
19294
|
t
|
|
19292
19295
|
);
|
|
19293
19296
|
return /* @__PURE__ */ s.createElement(
|
|
19294
19297
|
"th",
|
|
19295
19298
|
{
|
|
19296
|
-
className:
|
|
19299
|
+
className: E,
|
|
19297
19300
|
ref: v,
|
|
19298
19301
|
role: "columnheader",
|
|
19299
19302
|
"aria-sort": (u == null ? void 0 : u.direction) || "none",
|
|
@@ -19312,7 +19315,7 @@ function ut({
|
|
|
19312
19315
|
},
|
|
19313
19316
|
e
|
|
19314
19317
|
),
|
|
19315
|
-
|
|
19318
|
+
w && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { ref: T, className: H("sps-table__column-resizer") }), /* @__PURE__ */ s.createElement("span", { className: H("sps-table__column-resizer-guide") }))
|
|
19316
19319
|
);
|
|
19317
19320
|
}
|
|
19318
19321
|
Object.assign(ut, {
|
|
@@ -21658,7 +21661,7 @@ function Yu({
|
|
|
21658
21661
|
}, []), s.useEffect(() => {
|
|
21659
21662
|
l && l.current ? l.current.focus() : g.current && g.current.focus();
|
|
21660
21663
|
}, [l]);
|
|
21661
|
-
const
|
|
21664
|
+
const w = s.useCallback(
|
|
21662
21665
|
(I) => {
|
|
21663
21666
|
if (I && I.key === "Escape" && o && o(), I && I.key === "Tab" && g.current) {
|
|
21664
21667
|
const k = g.current.querySelectorAll(
|
|
@@ -21669,7 +21672,7 @@ function Yu({
|
|
|
21669
21672
|
},
|
|
21670
21673
|
[o]
|
|
21671
21674
|
), [
|
|
21672
|
-
[
|
|
21675
|
+
[E],
|
|
21673
21676
|
N
|
|
21674
21677
|
] = Jt(e, [{ type: Gi }]);
|
|
21675
21678
|
return /* @__PURE__ */ s.createElement(
|
|
@@ -21680,7 +21683,7 @@ function Yu({
|
|
|
21680
21683
|
"aria-modal": !0,
|
|
21681
21684
|
"aria-labelledby": `${f.current}-title`,
|
|
21682
21685
|
className: u,
|
|
21683
|
-
onKeyDown:
|
|
21686
|
+
onKeyDown: w,
|
|
21684
21687
|
tabIndex: -1,
|
|
21685
21688
|
ref: g
|
|
21686
21689
|
},
|
|
@@ -21701,7 +21704,7 @@ function Yu({
|
|
|
21701
21704
|
},
|
|
21702
21705
|
N
|
|
21703
21706
|
)),
|
|
21704
|
-
|
|
21707
|
+
E || /* @__PURE__ */ s.createElement("div", { className: "sps-modal__footer" }, /* @__PURE__ */ s.createElement(
|
|
21705
21708
|
Ze,
|
|
21706
21709
|
{
|
|
21707
21710
|
kind: r === zl.SERIOUS_WARNING ? Xe.DELETE : Xe.KEY,
|
|
@@ -21736,24 +21739,24 @@ function Uu({
|
|
|
21736
21739
|
}) {
|
|
21737
21740
|
const m = rr(n), f = H("sps-slide-in-panel", "z-stratum-dialog", r ? "open" : "", t), { t: u } = s.useContext(Ge), h = s.useRef(null), g = s.useRef(document.body.style.paddingRight || ""), v = s.useRef(document.body.style.overflow || "");
|
|
21738
21741
|
v.current === "hidden" && (v.current = "", g.current = ""), s.useLayoutEffect(() => {
|
|
21739
|
-
let
|
|
21742
|
+
let E = !1;
|
|
21740
21743
|
if (r && document.body.style.overflow !== "hidden") {
|
|
21741
21744
|
const N = `${window.innerWidth - document.body.clientWidth}px`;
|
|
21742
|
-
document.body.style.paddingRight = N, document.body.style.overflow = "hidden",
|
|
21745
|
+
document.body.style.paddingRight = N, document.body.style.overflow = "hidden", E = !0;
|
|
21743
21746
|
}
|
|
21744
21747
|
return () => {
|
|
21745
|
-
|
|
21748
|
+
E && (document.body.style.overflow = v.current, document.body.style.paddingRight = g.current);
|
|
21746
21749
|
};
|
|
21747
21750
|
}, [r]), s.useEffect(() => {
|
|
21748
21751
|
l && l.current ? l.current.focus() : h.current && h.current.focus();
|
|
21749
21752
|
}, [l]);
|
|
21750
21753
|
const T = s.useCallback(
|
|
21751
|
-
(
|
|
21752
|
-
if (a &&
|
|
21754
|
+
(E) => {
|
|
21755
|
+
if (a && E && E.key === "Escape" && o && o(), E && E.key === "Tab" && h.current) {
|
|
21753
21756
|
const N = h.current.querySelectorAll(
|
|
21754
21757
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
21755
21758
|
), I = N[0], k = N[N.length - 1];
|
|
21756
|
-
N.length === 0 ?
|
|
21759
|
+
N.length === 0 ? E.preventDefault() : E.shiftKey && E.target === I ? (E.preventDefault(), k.focus()) : !E.shiftKey && E.target === k && (E.preventDefault(), I.focus());
|
|
21757
21760
|
}
|
|
21758
21761
|
},
|
|
21759
21762
|
[o]
|
|
@@ -21761,7 +21764,7 @@ function Uu({
|
|
|
21761
21764
|
s.useEffect(() => (window.addEventListener("keydown", T), () => {
|
|
21762
21765
|
window.removeEventListener("keydown", T);
|
|
21763
21766
|
}), [T]);
|
|
21764
|
-
const [
|
|
21767
|
+
const [w] = Jt(e);
|
|
21765
21768
|
return /* @__PURE__ */ s.createElement(
|
|
21766
21769
|
"div",
|
|
21767
21770
|
{
|
|
@@ -21780,7 +21783,7 @@ function Uu({
|
|
|
21780
21783
|
fixed: !0
|
|
21781
21784
|
}
|
|
21782
21785
|
},
|
|
21783
|
-
|
|
21786
|
+
w
|
|
21784
21787
|
)))
|
|
21785
21788
|
);
|
|
21786
21789
|
}
|
|
@@ -22428,8 +22431,8 @@ function zu({
|
|
|
22428
22431
|
onSearchChange: g,
|
|
22429
22432
|
options: v,
|
|
22430
22433
|
placeholder: T,
|
|
22431
|
-
tallOptionList:
|
|
22432
|
-
textKey:
|
|
22434
|
+
tallOptionList: w,
|
|
22435
|
+
textKey: E,
|
|
22433
22436
|
unsafelyReplaceClassName: N,
|
|
22434
22437
|
value: I,
|
|
22435
22438
|
zeroState: k = "There are no matching options.",
|
|
@@ -22440,7 +22443,7 @@ function zu({
|
|
|
22440
22443
|
maxHeightOptionListRem: O,
|
|
22441
22444
|
disableOptionsMemoization: _,
|
|
22442
22445
|
"data-testid": V,
|
|
22443
|
-
...
|
|
22446
|
+
...Y
|
|
22444
22447
|
}) {
|
|
22445
22448
|
const M = I ?? [], X = m || p, { wrapperId: P, controlId: Q } = xt(u, X), [F, j] = wn({
|
|
22446
22449
|
keyDown: null,
|
|
@@ -22460,11 +22463,11 @@ function zu({
|
|
|
22460
22463
|
}
|
|
22461
22464
|
const {
|
|
22462
22465
|
showPopup: R,
|
|
22463
|
-
doShowPopup:
|
|
22466
|
+
doShowPopup: U,
|
|
22464
22467
|
doHidePopup: q
|
|
22465
22468
|
} = gs(re, te, W);
|
|
22466
22469
|
function ne() {
|
|
22467
|
-
j({ activeTagIndex: null }),
|
|
22470
|
+
j({ activeTagIndex: null }), U();
|
|
22468
22471
|
}
|
|
22469
22472
|
function oe() {
|
|
22470
22473
|
setTimeout(() => {
|
|
@@ -22534,7 +22537,7 @@ function zu({
|
|
|
22534
22537
|
case "Right":
|
|
22535
22538
|
case "ArrowRight":
|
|
22536
22539
|
if (F.activeTagIndex !== null) {
|
|
22537
|
-
F.activeTagIndex === M.length - 1 ? (j({ activeTagIndex: null }),
|
|
22540
|
+
F.activeTagIndex === M.length - 1 ? (j({ activeTagIndex: null }), U(), (ke = G.current) == null || ke.focus()) : (j({ activeTagIndex: F.activeTagIndex + 1 }), le(F.activeTagIndex + 1));
|
|
22538
22541
|
return;
|
|
22539
22542
|
}
|
|
22540
22543
|
break;
|
|
@@ -22619,7 +22622,7 @@ function zu({
|
|
|
22619
22622
|
key: De[ke],
|
|
22620
22623
|
onRemove: () => we(ke)
|
|
22621
22624
|
},
|
|
22622
|
-
|
|
22625
|
+
E ? ve[E] : ve
|
|
22623
22626
|
)), /* @__PURE__ */ s.createElement(
|
|
22624
22627
|
"input",
|
|
22625
22628
|
{
|
|
@@ -22638,7 +22641,7 @@ function zu({
|
|
|
22638
22641
|
role: "listbox",
|
|
22639
22642
|
"aria-multiselectable": "true",
|
|
22640
22643
|
"aria-owns": De.join(" "),
|
|
22641
|
-
...
|
|
22644
|
+
...Y
|
|
22642
22645
|
}
|
|
22643
22646
|
)),
|
|
22644
22647
|
M.length !== 0 && !o ? /* @__PURE__ */ s.createElement(
|
|
@@ -22673,8 +22676,8 @@ function zu({
|
|
|
22673
22676
|
filterByTextAndCaptionKey: A,
|
|
22674
22677
|
searchDebounce: a,
|
|
22675
22678
|
search: F.searchText,
|
|
22676
|
-
tall:
|
|
22677
|
-
textKey:
|
|
22679
|
+
tall: w,
|
|
22680
|
+
textKey: E,
|
|
22678
22681
|
zeroState: k,
|
|
22679
22682
|
loading: x,
|
|
22680
22683
|
maxHeightPx: C,
|
|
@@ -23187,21 +23190,21 @@ function Yi(e) {
|
|
|
23187
23190
|
nextPageBtnDisabled: m = !1,
|
|
23188
23191
|
onBeforeChange: f,
|
|
23189
23192
|
...u
|
|
23190
|
-
} = e, { t: h } = s.useContext(Ge), [g, v] = s.useState(r), [T,
|
|
23193
|
+
} = e, { t: h } = s.useContext(Ge), [g, v] = s.useState(r), [T, w] = s.useState(r);
|
|
23191
23194
|
s.useEffect(() => {
|
|
23192
|
-
|
|
23195
|
+
w(r), v(r);
|
|
23193
23196
|
}, [r]);
|
|
23194
|
-
async function
|
|
23197
|
+
async function E(x) {
|
|
23195
23198
|
if (f && !await f(x))
|
|
23196
23199
|
return;
|
|
23197
23200
|
const A = JS(x, [1, t]);
|
|
23198
|
-
x !== T && (
|
|
23201
|
+
x !== T && (w(A), v(A), n && typeof n == "function" && n(A));
|
|
23199
23202
|
}
|
|
23200
23203
|
function N(x) {
|
|
23201
23204
|
v(Number(x.target.value) || "");
|
|
23202
23205
|
}
|
|
23203
23206
|
const I = H(a || "sps-page-selector", o), k = rr();
|
|
23204
|
-
return /* @__PURE__ */ s.createElement("div", { className: I, "data-testid": l, ...u }, !p && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__input-wrapper", "data-testid": `${l}__input` }, /* @__PURE__ */ s.createElement("div", { className: "sps-form-control sps-pagination__input-sizer" }, g), /* @__PURE__ */ s.createElement("label", { htmlFor: k.current, className: "sr-only" }, h("design-system:pagination.page")), /* @__PURE__ */ s.createElement(wa, { onSubmit: () =>
|
|
23207
|
+
return /* @__PURE__ */ s.createElement("div", { className: I, "data-testid": l, ...u }, !p && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", { className: "sps-pagination__input-wrapper", "data-testid": `${l}__input` }, /* @__PURE__ */ s.createElement("div", { className: "sps-form-control sps-pagination__input-sizer" }, g), /* @__PURE__ */ s.createElement("label", { htmlFor: k.current, className: "sr-only" }, h("design-system:pagination.page")), /* @__PURE__ */ s.createElement(wa, { onSubmit: () => E(Number(g)) }, /* @__PURE__ */ s.createElement(
|
|
23205
23208
|
"input",
|
|
23206
23209
|
{
|
|
23207
23210
|
id: k.current,
|
|
@@ -23212,7 +23215,7 @@ function Yi(e) {
|
|
|
23212
23215
|
},
|
|
23213
23216
|
className: "sps-form-control sps-pagination__input",
|
|
23214
23217
|
disabled: c,
|
|
23215
|
-
onBlur: () =>
|
|
23218
|
+
onBlur: () => E(Number(g))
|
|
23216
23219
|
}
|
|
23217
23220
|
))), /* @__PURE__ */ s.createElement("span", { className: "sps-page-selector__total-pages", "data-testid": `${l}_page-count` }, Number.isNaN(t) ? h("design-system:pagination.ofMany") : h("design-system:pagination.ofPageCount", { pageCount: t }))), /* @__PURE__ */ s.createElement("div", { className: "sps-icon-button-panel", "data-testid": `${l}__buttons` }, /* @__PURE__ */ s.createElement(
|
|
23218
23221
|
"div",
|
|
@@ -23227,7 +23230,7 @@ function Yi(e) {
|
|
|
23227
23230
|
"button",
|
|
23228
23231
|
{
|
|
23229
23232
|
type: "button",
|
|
23230
|
-
onClick: () =>
|
|
23233
|
+
onClick: () => E(T - 1),
|
|
23231
23234
|
disabled: T === 1 || c,
|
|
23232
23235
|
title: h("design-system:pagination.prevPage")
|
|
23233
23236
|
},
|
|
@@ -23246,7 +23249,7 @@ function Yi(e) {
|
|
|
23246
23249
|
"button",
|
|
23247
23250
|
{
|
|
23248
23251
|
type: "button",
|
|
23249
|
-
onClick: () =>
|
|
23252
|
+
onClick: () => E(T + 1),
|
|
23250
23253
|
disabled: T === t || c || m,
|
|
23251
23254
|
title: h("design-system:pagination.nextPage")
|
|
23252
23255
|
},
|
|
@@ -23286,17 +23289,17 @@ function ju(e) {
|
|
|
23286
23289
|
resultsOnPage: h,
|
|
23287
23290
|
onBeforeChange: g,
|
|
23288
23291
|
...v
|
|
23289
|
-
} = e, [T,
|
|
23292
|
+
} = e, [T, w] = wn({
|
|
23290
23293
|
page: r,
|
|
23291
23294
|
pageSize: o,
|
|
23292
23295
|
numPages: 0,
|
|
23293
23296
|
indices: [0, 0]
|
|
23294
23297
|
});
|
|
23295
|
-
function
|
|
23298
|
+
function E(O = T.pageSize) {
|
|
23296
23299
|
return c !== void 0 ? Math.ceil(c / O) : NaN;
|
|
23297
23300
|
}
|
|
23298
23301
|
function N(O = T.page, _ = T.pageSize) {
|
|
23299
|
-
const V =
|
|
23302
|
+
const V = E(_), Y = O === V && c !== void 0 && c % _ || _, M = h || (V === 0 ? 0 : Y), X = (O - 1) * _;
|
|
23300
23303
|
return V === 0 ? [0, 0] : [X + 1, X + M];
|
|
23301
23304
|
}
|
|
23302
23305
|
function I(O) {
|
|
@@ -23304,20 +23307,20 @@ function ju(e) {
|
|
|
23304
23307
|
page: O,
|
|
23305
23308
|
indices: N(O)
|
|
23306
23309
|
};
|
|
23307
|
-
return
|
|
23310
|
+
return w(_), _;
|
|
23308
23311
|
}
|
|
23309
23312
|
function k(O, _) {
|
|
23310
23313
|
const V = {
|
|
23311
23314
|
page: _,
|
|
23312
23315
|
pageSize: O,
|
|
23313
|
-
numPages:
|
|
23316
|
+
numPages: E(O),
|
|
23314
23317
|
indices: N(_, O)
|
|
23315
23318
|
};
|
|
23316
|
-
return
|
|
23319
|
+
return w(V), V;
|
|
23317
23320
|
}
|
|
23318
23321
|
s.useEffect(() => {
|
|
23319
|
-
|
|
23320
|
-
numPages:
|
|
23322
|
+
w({
|
|
23323
|
+
numPages: E(),
|
|
23321
23324
|
indices: N()
|
|
23322
23325
|
});
|
|
23323
23326
|
}, [c, h]), s.useEffect(() => {
|
|
@@ -23551,7 +23554,7 @@ function qu({
|
|
|
23551
23554
|
value: v,
|
|
23552
23555
|
...T
|
|
23553
23556
|
}) {
|
|
23554
|
-
const
|
|
23557
|
+
const w = o || a, E = s.useRef(null), { wrapperId: N, controlId: I } = xt(l), k = H(
|
|
23555
23558
|
g || "sps-radio-button",
|
|
23556
23559
|
"sps-checkable",
|
|
23557
23560
|
c && "sps-checkable--inline",
|
|
@@ -23561,7 +23564,7 @@ function qu({
|
|
|
23561
23564
|
);
|
|
23562
23565
|
function x(A) {
|
|
23563
23566
|
var L;
|
|
23564
|
-
|
|
23567
|
+
w && (w.setValue(v), w.markAsDirty()), u && u(A), (L = E.current) == null || L.focus();
|
|
23565
23568
|
}
|
|
23566
23569
|
return /* @__PURE__ */ s.createElement(
|
|
23567
23570
|
St,
|
|
@@ -23570,19 +23573,19 @@ function qu({
|
|
|
23570
23573
|
className: k,
|
|
23571
23574
|
formControl: a,
|
|
23572
23575
|
formMeta: o,
|
|
23573
|
-
inputRef:
|
|
23576
|
+
inputRef: E,
|
|
23574
23577
|
ref: h,
|
|
23575
23578
|
"data-testid": `${n}`,
|
|
23576
23579
|
onClick: () => {
|
|
23577
23580
|
var A;
|
|
23578
|
-
return (A =
|
|
23581
|
+
return (A = E.current) == null ? void 0 : A.click();
|
|
23579
23582
|
}
|
|
23580
23583
|
},
|
|
23581
23584
|
/* @__PURE__ */ s.createElement(
|
|
23582
23585
|
"input",
|
|
23583
23586
|
{
|
|
23584
23587
|
type: "radio",
|
|
23585
|
-
ref:
|
|
23588
|
+
ref: E,
|
|
23586
23589
|
className: "sps-checkable__input",
|
|
23587
23590
|
"data-checked": e ? "checked" : void 0,
|
|
23588
23591
|
"data-testid": `${n}__radio-input`,
|
|
@@ -24287,7 +24290,7 @@ const ex = {
|
|
|
24287
24290
|
a
|
|
24288
24291
|
), [g, v] = qe(
|
|
24289
24292
|
c || (o ? o[0] : "")
|
|
24290
|
-
), [T,
|
|
24293
|
+
), [T, w] = qe(""), E = (x, A) => {
|
|
24291
24294
|
h(x), r && r(x, A);
|
|
24292
24295
|
}, N = (x) => {
|
|
24293
24296
|
v(x), l && l(x);
|
|
@@ -24322,7 +24325,7 @@ const ex = {
|
|
|
24322
24325
|
className: "sps-text-input__input",
|
|
24323
24326
|
placeholder: m,
|
|
24324
24327
|
onChange: (x) => {
|
|
24325
|
-
|
|
24328
|
+
w(x.target.value);
|
|
24326
24329
|
}
|
|
24327
24330
|
}
|
|
24328
24331
|
)))), k.map((x) => /* @__PURE__ */ s.createElement(
|
|
@@ -24351,7 +24354,7 @@ const ex = {
|
|
|
24351
24354
|
},
|
|
24352
24355
|
activeBranch: u,
|
|
24353
24356
|
setActiveBranch: (L, C) => {
|
|
24354
|
-
|
|
24357
|
+
E(L, C);
|
|
24355
24358
|
},
|
|
24356
24359
|
key: A.key ?? A.name
|
|
24357
24360
|
}
|
|
@@ -24753,9 +24756,9 @@ function Zu(e) {
|
|
|
24753
24756
|
spinningTitle: u,
|
|
24754
24757
|
unsafelyReplaceClassName: h,
|
|
24755
24758
|
...g
|
|
24756
|
-
} = e, v = s.useRef(null), [T,
|
|
24759
|
+
} = e, v = s.useRef(null), [T, w] = s.useState({ width: 0 }), [E, N] = s.useState(!1), [I, k] = s.useState(!1);
|
|
24757
24760
|
s.useLayoutEffect(() => {
|
|
24758
|
-
v.current &&
|
|
24761
|
+
v.current && w({
|
|
24759
24762
|
width: v.current.offsetWidth
|
|
24760
24763
|
});
|
|
24761
24764
|
}, []), s.useEffect(() => {
|
|
@@ -24768,7 +24771,7 @@ function Zu(e) {
|
|
|
24768
24771
|
}, L = H(
|
|
24769
24772
|
h || "sps-split-button",
|
|
24770
24773
|
`sps-split-button--${m}`,
|
|
24771
|
-
|
|
24774
|
+
E && "sps-split-button--open",
|
|
24772
24775
|
n
|
|
24773
24776
|
);
|
|
24774
24777
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, I ? /* @__PURE__ */ s.createElement(
|
|
@@ -24960,18 +24963,18 @@ function Xu(e) {
|
|
|
24960
24963
|
expandable: !1
|
|
24961
24964
|
});
|
|
24962
24965
|
s.useEffect(() => {
|
|
24963
|
-
const
|
|
24964
|
-
f({ expandable:
|
|
24966
|
+
const E = s.Children.toArray(t).some((N) => s.isValidElement(N) && N.type === ca);
|
|
24967
|
+
f({ expandable: E });
|
|
24965
24968
|
}, []);
|
|
24966
24969
|
function u() {
|
|
24967
|
-
const
|
|
24968
|
-
f({ isExpanded:
|
|
24970
|
+
const E = !m.isExpanded;
|
|
24971
|
+
f({ isExpanded: E }), a && a(E);
|
|
24969
24972
|
}
|
|
24970
|
-
function h(
|
|
24971
|
-
|
|
24973
|
+
function h(E) {
|
|
24974
|
+
E.stopPropagation(), u();
|
|
24972
24975
|
}
|
|
24973
|
-
function g(
|
|
24974
|
-
(
|
|
24976
|
+
function g(E) {
|
|
24977
|
+
(E.key === "Enter" || E.key === " " || E.key === "Spacebar") && (E.preventDefault(), E.stopPropagation(), u());
|
|
24975
24978
|
}
|
|
24976
24979
|
const v = H(
|
|
24977
24980
|
c || "sps-summary-list-row",
|
|
@@ -24982,7 +24985,7 @@ function Xu(e) {
|
|
|
24982
24985
|
n
|
|
24983
24986
|
), [
|
|
24984
24987
|
T,
|
|
24985
|
-
|
|
24988
|
+
w
|
|
24986
24989
|
] = Jt(t, [
|
|
24987
24990
|
{ type: ca }
|
|
24988
24991
|
]);
|
|
@@ -25008,7 +25011,7 @@ function Xu(e) {
|
|
|
25008
25011
|
onKeyDown: g,
|
|
25009
25012
|
tabIndex: 0
|
|
25010
25013
|
},
|
|
25011
|
-
|
|
25014
|
+
w
|
|
25012
25015
|
),
|
|
25013
25016
|
T
|
|
25014
25017
|
);
|
|
@@ -25413,7 +25416,7 @@ function em({
|
|
|
25413
25416
|
suppressTooltips: f = !1,
|
|
25414
25417
|
...u
|
|
25415
25418
|
}) {
|
|
25416
|
-
const { t: h } = s.useContext(Ge), g = !!e.length, [v, T] = s.useState(!1), [
|
|
25419
|
+
const { t: h } = s.useContext(Ge), g = !!e.length, [v, T] = s.useState(!1), [w, E] = s.useState(g), N = s.useRef(null), I = s.useRef(null), k = s.useCallback(() => {
|
|
25417
25420
|
T(!1), o && o();
|
|
25418
25421
|
}, []);
|
|
25419
25422
|
s.useEffect(() => {
|
|
@@ -25427,7 +25430,7 @@ function em({
|
|
|
25427
25430
|
altPosition: t,
|
|
25428
25431
|
...A
|
|
25429
25432
|
}
|
|
25430
|
-
) : [{}, !1], C = r.position || Ee.BOTTOM_RIGHT, O = r.kind || en.DEFAULT, _ = e.filter((K) => K.unread).length, V = e.filter((K) => K.status === Fs.IN_PROGRESS).length,
|
|
25433
|
+
) : [{}, !1], C = r.position || Ee.BOTTOM_RIGHT, O = r.kind || en.DEFAULT, _ = e.filter((K) => K.unread).length, V = e.filter((K) => K.status === Fs.IN_PROGRESS).length, Y = e.some((K) => K.status === Fs.COMPLETED || K.status === Fs.ERRORED), M = s.useRef(o);
|
|
25431
25434
|
M.current = o;
|
|
25432
25435
|
const X = s.useRef(null), P = () => {
|
|
25433
25436
|
g && !v ? (T(!0), a && a()) : v && (T(!1), o && o()), X.current && (X.current.scrollTop = 0);
|
|
@@ -25437,9 +25440,9 @@ function em({
|
|
|
25437
25440
|
}, [v, g]);
|
|
25438
25441
|
const F = s.useRef();
|
|
25439
25442
|
s.useEffect(() => {
|
|
25440
|
-
_ > 0 ? (
|
|
25441
|
-
F.current = void 0,
|
|
25442
|
-
}, jl)) : (F.current && (window.clearTimeout(F.current), F.current = void 0),
|
|
25443
|
+
_ > 0 ? (E(!0), F.current && window.clearTimeout(F.current), F.current = window.setTimeout(() => {
|
|
25444
|
+
F.current = void 0, E(!1);
|
|
25445
|
+
}, jl)) : (F.current && (window.clearTimeout(F.current), F.current = void 0), E(!1));
|
|
25443
25446
|
}, [_]), s.useEffect(() => {
|
|
25444
25447
|
var G;
|
|
25445
25448
|
const K = () => {
|
|
@@ -25522,11 +25525,11 @@ function em({
|
|
|
25522
25525
|
position: C,
|
|
25523
25526
|
kind: O,
|
|
25524
25527
|
showOn: g ? Ct.MANUAL : Ct.MOUSEOVER,
|
|
25525
|
-
isShown:
|
|
25528
|
+
isShown: w && !v ? Re.VISIBLE : Re.HIDDEN,
|
|
25526
25529
|
hideDelay: Number(g) && jl
|
|
25527
25530
|
},
|
|
25528
|
-
!f &&
|
|
25529
|
-
!f && !
|
|
25531
|
+
!f && w && (n || h("design-system:taskQueue.newTask")),
|
|
25532
|
+
!f && !w && !g && h("design-system:taskQueue.noTasks")
|
|
25530
25533
|
),
|
|
25531
25534
|
x(
|
|
25532
25535
|
/* @__PURE__ */ s.createElement(
|
|
@@ -25560,7 +25563,7 @@ function em({
|
|
|
25560
25563
|
)),
|
|
25561
25564
|
K.actions && !!K.actions.length && /* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-actions" }, re(K))
|
|
25562
25565
|
))),
|
|
25563
|
-
|
|
25566
|
+
Y && l && /* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__footer" }, /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--link" }, /* @__PURE__ */ s.createElement("button", { type: "button", onClick: l }, h("design-system:taskQueue.clearCompleted"))))
|
|
25564
25567
|
)
|
|
25565
25568
|
)
|
|
25566
25569
|
);
|
|
@@ -25922,10 +25925,10 @@ const dx = {
|
|
|
25922
25925
|
additionalText: g,
|
|
25923
25926
|
notClearable: v,
|
|
25924
25927
|
...T
|
|
25925
|
-
},
|
|
25926
|
-
const
|
|
25928
|
+
}, w) => {
|
|
25929
|
+
const E = r || n, { wrapperId: N, controlId: I } = xt(o, E), k = s.useRef(null);
|
|
25927
25930
|
function x(O, _) {
|
|
25928
|
-
|
|
25931
|
+
E && (E.setValue(O), E.markAsDirty()), c && k.current && c(_ || new sr(k.current));
|
|
25929
25932
|
}
|
|
25930
25933
|
function A() {
|
|
25931
25934
|
k.current && (k.current.value = "", x(""));
|
|
@@ -25945,7 +25948,7 @@ const dx = {
|
|
|
25945
25948
|
formControl: n,
|
|
25946
25949
|
formMeta: r,
|
|
25947
25950
|
inputRef: k,
|
|
25948
|
-
ref:
|
|
25951
|
+
ref: w,
|
|
25949
25952
|
focusInputOnClick: !0,
|
|
25950
25953
|
"data-testid": `${m}`
|
|
25951
25954
|
},
|
|
@@ -26124,7 +26127,7 @@ function tm({
|
|
|
26124
26127
|
additionalText: g,
|
|
26125
26128
|
...v
|
|
26126
26129
|
}) {
|
|
26127
|
-
const T = r || n, { wrapperId:
|
|
26130
|
+
const T = r || n, { wrapperId: w, controlId: E } = xt(a, T), N = s.useRef(null);
|
|
26128
26131
|
function I(L, C) {
|
|
26129
26132
|
T && (T.setValue(L), T.markAsDirty()), l && N.current && l(C || new sr(N.current));
|
|
26130
26133
|
}
|
|
@@ -26141,7 +26144,7 @@ function tm({
|
|
|
26141
26144
|
return /* @__PURE__ */ s.createElement(
|
|
26142
26145
|
St,
|
|
26143
26146
|
{
|
|
26144
|
-
id:
|
|
26147
|
+
id: w,
|
|
26145
26148
|
className: A,
|
|
26146
26149
|
formControl: n,
|
|
26147
26150
|
formMeta: r,
|
|
@@ -26156,7 +26159,7 @@ function tm({
|
|
|
26156
26159
|
rows: m,
|
|
26157
26160
|
"data-testid": `${f}__input`,
|
|
26158
26161
|
className: "sps-form-control input--clearable",
|
|
26159
|
-
id:
|
|
26162
|
+
id: E,
|
|
26160
26163
|
name: o,
|
|
26161
26164
|
placeholder: c,
|
|
26162
26165
|
onChange: x,
|
|
@@ -26319,13 +26322,13 @@ function rm(e) {
|
|
|
26319
26322
|
...v
|
|
26320
26323
|
} = e;
|
|
26321
26324
|
vv("SpsToggle", nm, e);
|
|
26322
|
-
const T = l || o, [
|
|
26323
|
-
s.useEffect(() =>
|
|
26325
|
+
const T = l || o, [w, E] = s.useState(t), { wrapperId: N, controlId: I } = xt(c, T), k = `${N}_status-label`, x = `${N}_description`, A = s.useRef(null);
|
|
26326
|
+
s.useEffect(() => E(t), [t]);
|
|
26324
26327
|
function L(_) {
|
|
26325
26328
|
var V;
|
|
26326
|
-
|
|
26329
|
+
E(_.target.checked), T && (T.setValue(_.target.checked), T.markAsDirty()), f && f(_.target.checked), (V = A.current) == null || V.focus();
|
|
26327
26330
|
}
|
|
26328
|
-
const C = t ??
|
|
26331
|
+
const C = t ?? w, O = H(
|
|
26329
26332
|
g || "sps-toggle",
|
|
26330
26333
|
C && "sps-toggle--active",
|
|
26331
26334
|
m && "sps-toggle--large",
|
|
@@ -28505,7 +28508,7 @@ function bm({
|
|
|
28505
28508
|
isSingleLine: g,
|
|
28506
28509
|
...v
|
|
28507
28510
|
}) {
|
|
28508
|
-
const T = r || n, { wrapperId:
|
|
28511
|
+
const T = r || n, { wrapperId: w, controlId: E } = xt(a, T), [N, I] = wn({
|
|
28509
28512
|
keyDown: null,
|
|
28510
28513
|
searchText: "",
|
|
28511
28514
|
activeTagIndex: null,
|
|
@@ -28537,7 +28540,7 @@ function bm({
|
|
|
28537
28540
|
K && K.focus();
|
|
28538
28541
|
}
|
|
28539
28542
|
}
|
|
28540
|
-
const
|
|
28543
|
+
const Y = s.useCallback(
|
|
28541
28544
|
(j) => {
|
|
28542
28545
|
I({ activeTagIndex: null, searchText: "" });
|
|
28543
28546
|
const re = N.searchText.trim(), K = m || [];
|
|
@@ -28546,7 +28549,7 @@ function bm({
|
|
|
28546
28549
|
[N.searchText, m, Td]
|
|
28547
28550
|
);
|
|
28548
28551
|
function M(j) {
|
|
28549
|
-
|
|
28552
|
+
Y(j);
|
|
28550
28553
|
}
|
|
28551
28554
|
function X(j) {
|
|
28552
28555
|
var re;
|
|
@@ -28572,7 +28575,7 @@ function bm({
|
|
|
28572
28575
|
break;
|
|
28573
28576
|
case "Enter":
|
|
28574
28577
|
case "Tab":
|
|
28575
|
-
|
|
28578
|
+
Y(j);
|
|
28576
28579
|
break;
|
|
28577
28580
|
case "Up":
|
|
28578
28581
|
case "ArrowUp":
|
|
@@ -28596,7 +28599,7 @@ function bm({
|
|
|
28596
28599
|
break;
|
|
28597
28600
|
}
|
|
28598
28601
|
for (const te of u)
|
|
28599
|
-
j.key === te &&
|
|
28602
|
+
j.key === te && Y(j);
|
|
28600
28603
|
j.persist(), I({ keyDown: j });
|
|
28601
28604
|
}
|
|
28602
28605
|
}
|
|
@@ -28607,11 +28610,11 @@ function bm({
|
|
|
28607
28610
|
p || "sps-multi-select",
|
|
28608
28611
|
t && "sps-form-control--disabled",
|
|
28609
28612
|
e
|
|
28610
|
-
), F = new Array((m == null ? void 0 : m.length) || 0).fill(0).map((j, re) => `${
|
|
28613
|
+
), F = new Array((m == null ? void 0 : m.length) || 0).fill(0).map((j, re) => `${w}_tag-${re}`);
|
|
28611
28614
|
return /* @__PURE__ */ s.createElement(
|
|
28612
28615
|
St,
|
|
28613
28616
|
{
|
|
28614
|
-
id:
|
|
28617
|
+
id: w,
|
|
28615
28618
|
className: Q,
|
|
28616
28619
|
formControl: n,
|
|
28617
28620
|
formMeta: r,
|
|
@@ -28653,7 +28656,7 @@ function bm({
|
|
|
28653
28656
|
value: N.searchText,
|
|
28654
28657
|
className: "sps-text-input__input",
|
|
28655
28658
|
placeholder: N.searchText.length === 0 && (!m || m.length === 0) ? c : void 0,
|
|
28656
|
-
id:
|
|
28659
|
+
id: E,
|
|
28657
28660
|
onBlur: M,
|
|
28658
28661
|
onChange: _,
|
|
28659
28662
|
onKeyDown: X,
|
|
@@ -28916,30 +28919,30 @@ function vm({
|
|
|
28916
28919
|
...f
|
|
28917
28920
|
}) {
|
|
28918
28921
|
var _;
|
|
28919
|
-
const { current: u } = rr(r), h = l ? o : o == null ? void 0 : o.split(" ")[0], g = Z.validateTimeString(h, l) ? Z.padIncompleteTimeString(h, l) : "", v = l ? "" : (_ = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : _.toUpperCase(), T = g && Ed.find((V) => V === v) || "", [
|
|
28922
|
+
const { current: u } = rr(r), h = l ? o : o == null ? void 0 : o.split(" ")[0], g = Z.validateTimeString(h, l) ? Z.padIncompleteTimeString(h, l) : "", v = l ? "" : (_ = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : _.toUpperCase(), T = g && Ed.find((V) => V === v) || "", [w, E] = s.useState(g), [N, I] = s.useState(T || "AM");
|
|
28920
28923
|
function k(V) {
|
|
28921
28924
|
n && (n.setValue(V || ""), n.markAsDirty()), a && a(V || "");
|
|
28922
28925
|
}
|
|
28923
28926
|
function x(V) {
|
|
28924
|
-
Z.validateTimeString(V.target.value, l) &&
|
|
28927
|
+
Z.validateTimeString(V.target.value, l) && E(V.target.value);
|
|
28925
28928
|
}
|
|
28926
28929
|
function A(V) {
|
|
28927
|
-
if (Z.validateTimeString(V ??
|
|
28928
|
-
const
|
|
28929
|
-
|
|
28930
|
+
if (Z.validateTimeString(V ?? w, l)) {
|
|
28931
|
+
const Y = Z.padIncompleteTimeString(V ?? w, l);
|
|
28932
|
+
E(Y), k(Y && !l ? `${Y} ${N}` : Y || "");
|
|
28930
28933
|
} else
|
|
28931
28934
|
k("");
|
|
28932
28935
|
}
|
|
28933
28936
|
function L(V) {
|
|
28934
28937
|
I(V.target.value);
|
|
28935
|
-
const
|
|
28936
|
-
|
|
28938
|
+
const Y = Z.padIncompleteTimeString(w, l);
|
|
28939
|
+
Y && !l && k(`${Y} ${V.target.value}`);
|
|
28937
28940
|
}
|
|
28938
28941
|
function C(V) {
|
|
28939
|
-
Z.validateTimeString(V, l) && (
|
|
28942
|
+
Z.validateTimeString(V, l) && (E(V ?? ""), setTimeout(() => A(V), 0));
|
|
28940
28943
|
}
|
|
28941
28944
|
s.useEffect(() => {
|
|
28942
|
-
g !==
|
|
28945
|
+
g !== w && E(g);
|
|
28943
28946
|
}, [g]), s.useEffect(() => {
|
|
28944
28947
|
T && T !== N && I(T);
|
|
28945
28948
|
}, [T]);
|
|
@@ -28953,7 +28956,7 @@ function vm({
|
|
|
28953
28956
|
suggestions: Oo,
|
|
28954
28957
|
zeroState: "Custom time",
|
|
28955
28958
|
placeholder: c,
|
|
28956
|
-
value:
|
|
28959
|
+
value: w,
|
|
28957
28960
|
onChange: x,
|
|
28958
28961
|
onBlur: () => A(),
|
|
28959
28962
|
onSelectionChange: C,
|
|
@@ -28974,7 +28977,7 @@ function vm({
|
|
|
28974
28977
|
suggestions: _o,
|
|
28975
28978
|
zeroState: "Custom time",
|
|
28976
28979
|
placeholder: p,
|
|
28977
|
-
value:
|
|
28980
|
+
value: w,
|
|
28978
28981
|
onChange: x,
|
|
28979
28982
|
onBlur: () => A(),
|
|
28980
28983
|
onSelectionChange: C,
|
|
@@ -29879,29 +29882,29 @@ function Pm(e) {
|
|
|
29879
29882
|
target: null,
|
|
29880
29883
|
isOverTarget: !1,
|
|
29881
29884
|
pointerType: null
|
|
29882
|
-
}), { addGlobalListener:
|
|
29885
|
+
}), { addGlobalListener: w, removeAllGlobalListeners: E } = Im(), N = br((C, O) => {
|
|
29883
29886
|
let _ = T.current;
|
|
29884
29887
|
if (l || _.didFirePressStart) return !1;
|
|
29885
29888
|
let V = !0;
|
|
29886
29889
|
if (_.isTriggeringEvent = !0, r) {
|
|
29887
|
-
let
|
|
29888
|
-
r(
|
|
29890
|
+
let Y = new qs("pressstart", O, C);
|
|
29891
|
+
r(Y), V = Y.shouldStopPropagation;
|
|
29889
29892
|
}
|
|
29890
29893
|
return n && n(!0), _.isTriggeringEvent = !1, _.didFirePressStart = !0, v(!0), V;
|
|
29891
29894
|
}), I = br((C, O, _ = !0) => {
|
|
29892
29895
|
let V = T.current;
|
|
29893
29896
|
if (!V.didFirePressStart) return !1;
|
|
29894
29897
|
V.ignoreClickAfterPress = !0, V.didFirePressStart = !1, V.isTriggeringEvent = !0;
|
|
29895
|
-
let
|
|
29898
|
+
let Y = !0;
|
|
29896
29899
|
if (a) {
|
|
29897
29900
|
let M = new qs("pressend", O, C);
|
|
29898
|
-
a(M),
|
|
29901
|
+
a(M), Y = M.shouldStopPropagation;
|
|
29899
29902
|
}
|
|
29900
29903
|
if (n && n(!1), v(!1), t && _ && !l) {
|
|
29901
29904
|
let M = new qs("press", O, C);
|
|
29902
|
-
t(M),
|
|
29905
|
+
t(M), Y && (Y = M.shouldStopPropagation);
|
|
29903
29906
|
}
|
|
29904
|
-
return V.isTriggeringEvent = !1,
|
|
29907
|
+
return V.isTriggeringEvent = !1, Y;
|
|
29905
29908
|
}), k = br((C, O) => {
|
|
29906
29909
|
let _ = T.current;
|
|
29907
29910
|
if (l) return !1;
|
|
@@ -29913,14 +29916,14 @@ function Pm(e) {
|
|
|
29913
29916
|
return !0;
|
|
29914
29917
|
}), x = br((C) => {
|
|
29915
29918
|
let O = T.current;
|
|
29916
|
-
O.isPressed && O.target && (O.isOverTarget && O.pointerType != null && I(Sn(O.target, C), O.pointerType, !1), O.isPressed = !1, O.isOverTarget = !1, O.activePointerId = null, O.pointerType = null,
|
|
29919
|
+
O.isPressed && O.target && (O.isOverTarget && O.pointerType != null && I(Sn(O.target, C), O.pointerType, !1), O.isPressed = !1, O.isOverTarget = !1, O.activePointerId = null, O.pointerType = null, E(), f || zs(O.target));
|
|
29917
29920
|
}), A = br((C) => {
|
|
29918
29921
|
m && x(C);
|
|
29919
29922
|
}), L = tt(() => {
|
|
29920
29923
|
let C = T.current, O = {
|
|
29921
29924
|
onKeyDown(V) {
|
|
29922
29925
|
if (Do(V.nativeEvent, V.currentTarget) && V.currentTarget.contains(V.target)) {
|
|
29923
|
-
var
|
|
29926
|
+
var Y;
|
|
29924
29927
|
_d(V.target, V.key) && V.preventDefault();
|
|
29925
29928
|
let M = !0;
|
|
29926
29929
|
if (!C.isPressed && !V.repeat) {
|
|
@@ -29928,30 +29931,30 @@ function Pm(e) {
|
|
|
29928
29931
|
let X = V.currentTarget, P = (Q) => {
|
|
29929
29932
|
Do(Q, X) && !Q.repeat && X.contains(Q.target) && C.target && k(Sn(C.target, Q), "keyboard");
|
|
29930
29933
|
};
|
|
29931
|
-
|
|
29934
|
+
w(kt(V.currentTarget), "keyup", Cm(P, _), !0);
|
|
29932
29935
|
}
|
|
29933
|
-
M && V.stopPropagation(), V.metaKey && er() && ((
|
|
29936
|
+
M && V.stopPropagation(), V.metaKey && er() && ((Y = C.metaKeyEvents) === null || Y === void 0 || Y.set(V.key, V.nativeEvent));
|
|
29934
29937
|
} else V.key === "Meta" && (C.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
29935
29938
|
},
|
|
29936
29939
|
onClick(V) {
|
|
29937
29940
|
if (!(V && !V.currentTarget.contains(V.target)) && V && V.button === 0 && !C.isTriggeringEvent && !tr.isOpening) {
|
|
29938
|
-
let
|
|
29941
|
+
let Y = !0;
|
|
29939
29942
|
if (l && V.preventDefault(), !C.ignoreClickAfterPress && !C.ignoreEmulatedMouseEvents && !C.isPressed && (C.pointerType === "virtual" || jo(V.nativeEvent))) {
|
|
29940
29943
|
!l && !p && yn(V.currentTarget);
|
|
29941
29944
|
let M = N(V, "virtual"), X = k(V, "virtual"), P = I(V, "virtual");
|
|
29942
|
-
|
|
29945
|
+
Y = M && X && P;
|
|
29943
29946
|
}
|
|
29944
|
-
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1,
|
|
29947
|
+
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1, Y && V.stopPropagation();
|
|
29945
29948
|
}
|
|
29946
29949
|
}
|
|
29947
29950
|
}, _ = (V) => {
|
|
29948
|
-
var
|
|
29951
|
+
var Y;
|
|
29949
29952
|
if (C.isPressed && C.target && Do(V, C.target)) {
|
|
29950
29953
|
var M;
|
|
29951
29954
|
_d(V.target, V.key) && V.preventDefault();
|
|
29952
29955
|
let P = V.target;
|
|
29953
|
-
I(Sn(C.target, V), "keyboard", C.target.contains(P)),
|
|
29954
|
-
} else if (V.key === "Meta" && (!((
|
|
29956
|
+
I(Sn(C.target, V), "keyboard", C.target.contains(P)), E(), V.key !== "Enter" && tl(C.target) && C.target.contains(P) && !V[Id] && (V[Id] = !0, tr(C.target, V, !1)), C.isPressed = !1, (M = C.metaKeyEvents) === null || M === void 0 || M.delete(V.key);
|
|
29957
|
+
} else if (V.key === "Meta" && (!((Y = C.metaKeyEvents) === null || Y === void 0) && Y.size)) {
|
|
29955
29958
|
var X;
|
|
29956
29959
|
let P = C.metaKeyEvents;
|
|
29957
29960
|
C.metaKeyEvents = void 0;
|
|
@@ -29967,7 +29970,7 @@ function Pm(e) {
|
|
|
29967
29970
|
}
|
|
29968
29971
|
No(P.currentTarget) && P.preventDefault(), C.pointerType = P.pointerType;
|
|
29969
29972
|
let Q = !0;
|
|
29970
|
-
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = P.pointerId, C.target = P.currentTarget, !l && !p && yn(P.currentTarget), f || xd(C.target), Q = N(P, C.pointerType),
|
|
29973
|
+
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = P.pointerId, C.target = P.currentTarget, !l && !p && yn(P.currentTarget), f || xd(C.target), Q = N(P, C.pointerType), w(kt(P.currentTarget), "pointermove", V, !1), w(kt(P.currentTarget), "pointerup", Y, !1), w(kt(P.currentTarget), "pointercancel", X, !1)), Q && P.stopPropagation();
|
|
29971
29974
|
}, O.onMouseDown = (P) => {
|
|
29972
29975
|
P.currentTarget.contains(P.target) && P.button === 0 && (No(P.currentTarget) && P.preventDefault(), P.stopPropagation());
|
|
29973
29976
|
}, O.onPointerUp = (P) => {
|
|
@@ -29975,8 +29978,8 @@ function Pm(e) {
|
|
|
29975
29978
|
};
|
|
29976
29979
|
let V = (P) => {
|
|
29977
29980
|
P.pointerId === C.activePointerId && (C.target && Sr(P, C.target) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, N(Sn(C.target, P), C.pointerType)) : C.target && C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, I(Sn(C.target, P), C.pointerType, !1), A(P)));
|
|
29978
|
-
},
|
|
29979
|
-
P.pointerId === C.activePointerId && C.isPressed && P.button === 0 && C.target && (Sr(P, C.target) && C.pointerType != null ? I(Sn(C.target, P), C.pointerType) : C.isOverTarget && C.pointerType != null && I(Sn(C.target, P), C.pointerType, !1), C.isPressed = !1, C.isOverTarget = !1, C.activePointerId = null, C.pointerType = null,
|
|
29981
|
+
}, Y = (P) => {
|
|
29982
|
+
P.pointerId === C.activePointerId && C.isPressed && P.button === 0 && C.target && (Sr(P, C.target) && C.pointerType != null ? I(Sn(C.target, P), C.pointerType) : C.isOverTarget && C.pointerType != null && I(Sn(C.target, P), C.pointerType, !1), C.isPressed = !1, C.isOverTarget = !1, C.activePointerId = null, C.pointerType = null, E(), f || zs(C.target), "ontouchend" in C.target && P.pointerType !== "mouse" && w(C.target, "touchend", M, {
|
|
29980
29983
|
once: !0
|
|
29981
29984
|
}));
|
|
29982
29985
|
}, M = (P) => {
|
|
@@ -29994,7 +29997,7 @@ function Pm(e) {
|
|
|
29994
29997
|
M.stopPropagation();
|
|
29995
29998
|
return;
|
|
29996
29999
|
}
|
|
29997
|
-
C.isPressed = !0, C.isOverTarget = !0, C.target = M.currentTarget, C.pointerType = jo(M.nativeEvent) ? "virtual" : "mouse", !l && !p && yn(M.currentTarget), N(M, C.pointerType) && M.stopPropagation(),
|
|
30000
|
+
C.isPressed = !0, C.isOverTarget = !0, C.target = M.currentTarget, C.pointerType = jo(M.nativeEvent) ? "virtual" : "mouse", !l && !p && yn(M.currentTarget), N(M, C.pointerType) && M.stopPropagation(), w(kt(M.currentTarget), "mouseup", V, !1);
|
|
29998
30001
|
}, O.onMouseEnter = (M) => {
|
|
29999
30002
|
if (!M.currentTarget.contains(M.target)) return;
|
|
30000
30003
|
let X = !0;
|
|
@@ -30008,7 +30011,7 @@ function Pm(e) {
|
|
|
30008
30011
|
};
|
|
30009
30012
|
let V = (M) => {
|
|
30010
30013
|
if (M.button === 0) {
|
|
30011
|
-
if (C.isPressed = !1,
|
|
30014
|
+
if (C.isPressed = !1, E(), C.ignoreEmulatedMouseEvents) {
|
|
30012
30015
|
C.ignoreEmulatedMouseEvents = !1;
|
|
30013
30016
|
return;
|
|
30014
30017
|
}
|
|
@@ -30019,7 +30022,7 @@ function Pm(e) {
|
|
|
30019
30022
|
if (!M.currentTarget.contains(M.target)) return;
|
|
30020
30023
|
let X = Mk(M.nativeEvent);
|
|
30021
30024
|
if (!X) return;
|
|
30022
|
-
C.activePointerId = X.identifier, C.ignoreEmulatedMouseEvents = !0, C.isOverTarget = !0, C.isPressed = !0, C.target = M.currentTarget, C.pointerType = "touch", !l && !p && yn(M.currentTarget), f || xd(C.target), N(Mn(C.target, M), C.pointerType) && M.stopPropagation(),
|
|
30025
|
+
C.activePointerId = X.identifier, C.ignoreEmulatedMouseEvents = !0, C.isOverTarget = !0, C.isPressed = !0, C.target = M.currentTarget, C.pointerType = "touch", !l && !p && yn(M.currentTarget), f || xd(C.target), N(Mn(C.target, M), C.pointerType) && M.stopPropagation(), w(Qn(M.currentTarget), "scroll", Y, !0);
|
|
30023
30026
|
}, O.onTouchMove = (M) => {
|
|
30024
30027
|
if (!M.currentTarget.contains(M.target)) return;
|
|
30025
30028
|
if (!C.isPressed) {
|
|
@@ -30035,11 +30038,11 @@ function Pm(e) {
|
|
|
30035
30038
|
return;
|
|
30036
30039
|
}
|
|
30037
30040
|
let X = Md(M.nativeEvent, C.activePointerId), P = !0;
|
|
30038
|
-
X && Sr(X, M.currentTarget) && C.pointerType != null ? (k(Mn(C.target, M), C.pointerType), P = I(Mn(C.target, M), C.pointerType)) : C.isOverTarget && C.pointerType != null && (P = I(Mn(C.target, M), C.pointerType, !1)), P && M.stopPropagation(), C.isPressed = !1, C.activePointerId = null, C.isOverTarget = !1, C.ignoreEmulatedMouseEvents = !0, C.target && !f && zs(C.target),
|
|
30041
|
+
X && Sr(X, M.currentTarget) && C.pointerType != null ? (k(Mn(C.target, M), C.pointerType), P = I(Mn(C.target, M), C.pointerType)) : C.isOverTarget && C.pointerType != null && (P = I(Mn(C.target, M), C.pointerType, !1)), P && M.stopPropagation(), C.isPressed = !1, C.activePointerId = null, C.isOverTarget = !1, C.ignoreEmulatedMouseEvents = !0, C.target && !f && zs(C.target), E();
|
|
30039
30042
|
}, O.onTouchCancel = (M) => {
|
|
30040
30043
|
M.currentTarget.contains(M.target) && (M.stopPropagation(), C.isPressed && x(Mn(C.target, M)));
|
|
30041
30044
|
};
|
|
30042
|
-
let
|
|
30045
|
+
let Y = (M) => {
|
|
30043
30046
|
C.isPressed && M.target.contains(C.target) && x({
|
|
30044
30047
|
currentTarget: C.target,
|
|
30045
30048
|
shiftKey: !1,
|
|
@@ -30054,10 +30057,10 @@ function Pm(e) {
|
|
|
30054
30057
|
}
|
|
30055
30058
|
return O;
|
|
30056
30059
|
}, [
|
|
30057
|
-
|
|
30060
|
+
w,
|
|
30058
30061
|
l,
|
|
30059
30062
|
p,
|
|
30060
|
-
|
|
30063
|
+
E,
|
|
30061
30064
|
f,
|
|
30062
30065
|
x,
|
|
30063
30066
|
A,
|
|
@@ -30468,7 +30471,7 @@ function Um() {
|
|
|
30468
30471
|
return nn(qk) || e;
|
|
30469
30472
|
}
|
|
30470
30473
|
function Jk(e) {
|
|
30471
|
-
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: m = !1, shouldUseVirtualFocus: f, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction: T } = Um(),
|
|
30474
|
+
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: m = !1, shouldUseVirtualFocus: f, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction: T } = Um(), w = el(), E = (_) => {
|
|
30472
30475
|
if (_.altKey && _.key === "Tab" && _.preventDefault(), !r.current.contains(_.target)) return;
|
|
30473
30476
|
const V = (W, R) => {
|
|
30474
30477
|
if (W != null) {
|
|
@@ -30476,8 +30479,8 @@ function Jk(e) {
|
|
|
30476
30479
|
hb(() => {
|
|
30477
30480
|
t.setFocusedKey(W, R);
|
|
30478
30481
|
});
|
|
30479
|
-
let
|
|
30480
|
-
|
|
30482
|
+
let U = g.current.querySelector(`[data-key="${CSS.escape(W.toString())}"]`), q = t.getItemProps(W);
|
|
30483
|
+
w.open(U, _, q.href, q.routerOptions);
|
|
30481
30484
|
return;
|
|
30482
30485
|
}
|
|
30483
30486
|
if (t.setFocusedKey(W, R), t.isLink(W) && v === "override") return;
|
|
@@ -30487,8 +30490,8 @@ function Jk(e) {
|
|
|
30487
30490
|
switch (_.key) {
|
|
30488
30491
|
case "ArrowDown":
|
|
30489
30492
|
if (n.getKeyBelow) {
|
|
30490
|
-
var
|
|
30491
|
-
let W = t.focusedKey != null ? (
|
|
30493
|
+
var Y, M, X;
|
|
30494
|
+
let W = t.focusedKey != null ? (Y = n.getKeyBelow) === null || Y === void 0 ? void 0 : Y.call(n, t.focusedKey) : (M = n.getFirstKey) === null || M === void 0 ? void 0 : M.call(n);
|
|
30492
30495
|
W == null && o && (W = (X = n.getFirstKey) === null || X === void 0 ? void 0 : X.call(n, t.focusedKey)), W != null && (_.preventDefault(), V(W));
|
|
30493
30496
|
}
|
|
30494
30497
|
break;
|
|
@@ -30551,10 +30554,10 @@ function Jk(e) {
|
|
|
30551
30554
|
else {
|
|
30552
30555
|
let W = Gm(r.current, {
|
|
30553
30556
|
tabbable: !0
|
|
30554
|
-
}), R,
|
|
30557
|
+
}), R, U;
|
|
30555
30558
|
do
|
|
30556
|
-
|
|
30557
|
-
while (
|
|
30559
|
+
U = W.lastChild(), U && (R = U);
|
|
30560
|
+
while (U);
|
|
30558
30561
|
R && !R.contains(document.activeElement) && yn(R);
|
|
30559
30562
|
}
|
|
30560
30563
|
break;
|
|
@@ -30580,8 +30583,8 @@ function Jk(e) {
|
|
|
30580
30583
|
let M = (P) => {
|
|
30581
30584
|
P != null && (t.setFocusedKey(P), p && t.replaceSelection(P));
|
|
30582
30585
|
}, X = _.relatedTarget;
|
|
30583
|
-
var V,
|
|
30584
|
-
X && _.currentTarget.compareDocumentPosition(X) & Node.DOCUMENT_POSITION_FOLLOWING ? M((V = t.lastSelectedKey) !== null && V !== void 0 ? V : n.getLastKey()) : M((
|
|
30586
|
+
var V, Y;
|
|
30587
|
+
X && _.currentTarget.compareDocumentPosition(X) & Node.DOCUMENT_POSITION_FOLLOWING ? M((V = t.lastSelectedKey) !== null && V !== void 0 ? V : n.getLastKey()) : M((Y = t.firstSelectedKey) !== null && Y !== void 0 ? Y : n.getFirstKey());
|
|
30585
30588
|
} else h || (g.current.scrollTop = N.current.top, g.current.scrollLeft = N.current.left);
|
|
30586
30589
|
if (t.focusedKey != null) {
|
|
30587
30590
|
let M = g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);
|
|
@@ -30600,8 +30603,8 @@ function Jk(e) {
|
|
|
30600
30603
|
a === "first" && (_ = n.getFirstKey()), a === "last" && (_ = n.getLastKey());
|
|
30601
30604
|
let V = t.selectedKeys;
|
|
30602
30605
|
if (V.size) {
|
|
30603
|
-
for (let
|
|
30604
|
-
_ =
|
|
30606
|
+
for (let Y of V) if (t.canSelectItem(Y)) {
|
|
30607
|
+
_ = Y;
|
|
30605
30608
|
break;
|
|
30606
30609
|
}
|
|
30607
30610
|
}
|
|
@@ -30623,7 +30626,7 @@ function Jk(e) {
|
|
|
30623
30626
|
_.preventDefault(), t.setFocused(!0);
|
|
30624
30627
|
});
|
|
30625
30628
|
let L = {
|
|
30626
|
-
onKeyDown:
|
|
30629
|
+
onKeyDown: E,
|
|
30627
30630
|
onFocus: I,
|
|
30628
30631
|
onBlur: k,
|
|
30629
30632
|
onMouseDown(_) {
|
|
@@ -30676,7 +30679,7 @@ function Zk(e) {
|
|
|
30676
30679
|
} : c && (g.onMouseDown = (F) => {
|
|
30677
30680
|
F.preventDefault();
|
|
30678
30681
|
});
|
|
30679
|
-
let v = t.isLink(n) && f === "override", T = t.isLink(n) && f !== "selection" && f !== "none",
|
|
30682
|
+
let v = t.isLink(n) && f === "override", T = t.isLink(n) && f !== "selection" && f !== "none", w = !c && t.canSelectItem(n) && !v, E = (p || T) && !c, N = E && (t.selectionBehavior === "replace" ? !w : !w || t.isEmpty), I = E && w && t.selectionBehavior === "replace", k = N || I, x = fe(null), A = k && w, L = fe(!1), C = fe(!1), O = (F) => {
|
|
30680
30683
|
if (p && p(), T) {
|
|
30681
30684
|
let j = t.getItemProps(n);
|
|
30682
30685
|
u.open(r.current, F, j.href, j.routerOptions);
|
|
@@ -30685,18 +30688,18 @@ function Zk(e) {
|
|
|
30685
30688
|
a ? (_.onPressStart = (F) => {
|
|
30686
30689
|
x.current = F.pointerType, L.current = A, F.pointerType === "keyboard" && (!k || Bd()) && h(F);
|
|
30687
30690
|
}, m ? (_.onPressUp = N ? null : (F) => {
|
|
30688
|
-
F.pointerType !== "keyboard" &&
|
|
30691
|
+
F.pointerType !== "keyboard" && w && h(F);
|
|
30689
30692
|
}, _.onPress = N ? O : null) : _.onPress = (F) => {
|
|
30690
30693
|
if (N || I && F.pointerType !== "mouse") {
|
|
30691
30694
|
if (F.pointerType === "keyboard" && !Pd()) return;
|
|
30692
30695
|
O(F);
|
|
30693
|
-
} else F.pointerType !== "keyboard" &&
|
|
30696
|
+
} else F.pointerType !== "keyboard" && w && h(F);
|
|
30694
30697
|
}) : (_.onPressStart = (F) => {
|
|
30695
|
-
x.current = F.pointerType, L.current = A, C.current = N,
|
|
30698
|
+
x.current = F.pointerType, L.current = A, C.current = N, w && (F.pointerType === "mouse" && !N || F.pointerType === "keyboard" && (!E || Bd())) && h(F);
|
|
30696
30699
|
}, _.onPress = (F) => {
|
|
30697
|
-
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && k && Pd() || F.pointerType === "mouse" && C.current) && (k ? O(F) :
|
|
30700
|
+
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && k && Pd() || F.pointerType === "mouse" && C.current) && (k ? O(F) : w && h(F));
|
|
30698
30701
|
}), g["data-key"] = n, _.preventFocusOnPress = o;
|
|
30699
|
-
let { pressProps: V, isPressed:
|
|
30702
|
+
let { pressProps: V, isPressed: Y } = Pm(_), M = I ? (F) => {
|
|
30700
30703
|
x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), O(F));
|
|
30701
30704
|
} : void 0, { longPressProps: X } = Fk({
|
|
30702
30705
|
isDisabled: !A,
|
|
@@ -30709,16 +30712,16 @@ function Zk(e) {
|
|
|
30709
30712
|
tr.isOpening || F.preventDefault();
|
|
30710
30713
|
} : void 0;
|
|
30711
30714
|
return {
|
|
30712
|
-
itemProps: Vn(g,
|
|
30715
|
+
itemProps: Vn(g, w || N ? V : {}, A ? X : {}, {
|
|
30713
30716
|
onDoubleClick: M,
|
|
30714
30717
|
onDragStartCapture: P,
|
|
30715
30718
|
onClick: Q
|
|
30716
30719
|
}),
|
|
30717
|
-
isPressed:
|
|
30720
|
+
isPressed: Y,
|
|
30718
30721
|
isSelected: t.isSelected(n),
|
|
30719
30722
|
isFocused: t.isFocused && t.focusedKey === n,
|
|
30720
30723
|
isDisabled: c,
|
|
30721
|
-
allowsSelection:
|
|
30724
|
+
allowsSelection: w,
|
|
30722
30725
|
hasAction: k
|
|
30723
30726
|
};
|
|
30724
30727
|
}
|
|
@@ -30738,13 +30741,13 @@ function Xk(e, t, n) {
|
|
|
30738
30741
|
isDisabled: m,
|
|
30739
30742
|
shouldSelectOnPressUp: o,
|
|
30740
30743
|
linkBehavior: "selection"
|
|
30741
|
-
}), h = da(t, r, "tab"), g = da(t, r, "tabpanel"), { tabIndex: v } = f, T = t.collection.getItem(r),
|
|
30744
|
+
}), h = da(t, r, "tab"), g = da(t, r, "tabpanel"), { tabIndex: v } = f, T = t.collection.getItem(r), w = nk(T == null ? void 0 : T.props, {
|
|
30742
30745
|
labelable: !0
|
|
30743
30746
|
});
|
|
30744
|
-
delete
|
|
30745
|
-
let
|
|
30747
|
+
delete w.id;
|
|
30748
|
+
let E = fk(T == null ? void 0 : T.props);
|
|
30746
30749
|
return {
|
|
30747
|
-
tabProps: Vn(
|
|
30750
|
+
tabProps: Vn(w, E, f, {
|
|
30748
30751
|
id: h,
|
|
30749
30752
|
"aria-selected": p,
|
|
30750
30753
|
"aria-disabled": m || void 0,
|
|
@@ -30950,18 +30953,18 @@ function aI(e) {
|
|
|
30950
30953
|
e.defaultSelectedKeys
|
|
30951
30954
|
]), [g, v] = Om(u, h, e.onSelectionChange), T = tt(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
30952
30955
|
e.disabledKeys
|
|
30953
|
-
]), [
|
|
30954
|
-
a === "replace" &&
|
|
30956
|
+
]), [w, E] = qe(a);
|
|
30957
|
+
a === "replace" && w === "toggle" && typeof g == "object" && g.size === 0 && E("replace");
|
|
30955
30958
|
let N = fe(a);
|
|
30956
30959
|
return We(() => {
|
|
30957
|
-
a !== N.current && (
|
|
30960
|
+
a !== N.current && (E(a), N.current = a);
|
|
30958
30961
|
}, [
|
|
30959
30962
|
a
|
|
30960
30963
|
]), {
|
|
30961
30964
|
selectionMode: t,
|
|
30962
30965
|
disallowEmptySelection: n,
|
|
30963
|
-
selectionBehavior:
|
|
30964
|
-
setSelectionBehavior:
|
|
30966
|
+
selectionBehavior: w,
|
|
30967
|
+
setSelectionBehavior: E,
|
|
30965
30968
|
get isFocused() {
|
|
30966
30969
|
return l.current;
|
|
30967
30970
|
},
|
|
@@ -31267,7 +31270,7 @@ function iI(e) {
|
|
|
31267
31270
|
const m = fe(null);
|
|
31268
31271
|
return We(() => {
|
|
31269
31272
|
if (r.focusedKey != null && !c.getItem(r.focusedKey) && m.current) {
|
|
31270
|
-
const
|
|
31273
|
+
const E = m.current.getItem(r.focusedKey), N = [
|
|
31271
31274
|
...m.current.getKeys()
|
|
31272
31275
|
].map((C) => {
|
|
31273
31276
|
const O = m.current.getItem(C);
|
|
@@ -31281,7 +31284,7 @@ function iI(e) {
|
|
|
31281
31284
|
var f, u;
|
|
31282
31285
|
const k = ((f = N == null ? void 0 : N.length) !== null && f !== void 0 ? f : 0) - ((u = I == null ? void 0 : I.length) !== null && u !== void 0 ? u : 0);
|
|
31283
31286
|
var h, g, v;
|
|
31284
|
-
let x = Math.min(k > 1 ? Math.max(((h =
|
|
31287
|
+
let x = Math.min(k > 1 ? Math.max(((h = E == null ? void 0 : E.index) !== null && h !== void 0 ? h : 0) - k + 1, 0) : (g = E == null ? void 0 : E.index) !== null && g !== void 0 ? g : 0, ((v = I == null ? void 0 : I.length) !== null && v !== void 0 ? v : 0) - 1), A = null, L = !1;
|
|
31285
31288
|
for (; x >= 0; ) {
|
|
31286
31289
|
if (!p.isDisabled(I[x].key)) {
|
|
31287
31290
|
A = I[x];
|
|
@@ -31290,8 +31293,8 @@ function iI(e) {
|
|
|
31290
31293
|
if (x < I.length - 1 && !L) x++;
|
|
31291
31294
|
else {
|
|
31292
31295
|
L = !0;
|
|
31293
|
-
var T,
|
|
31294
|
-
x > ((T =
|
|
31296
|
+
var T, w;
|
|
31297
|
+
x > ((T = E == null ? void 0 : E.index) !== null && T !== void 0 ? T : 0) && (x = (w = E == null ? void 0 : E.index) !== null && w !== void 0 ? w : 0), x--;
|
|
31295
31298
|
}
|
|
31296
31299
|
}
|
|
31297
31300
|
r.setFocusedKey(A ? A.key : null);
|
|
@@ -31827,13 +31830,13 @@ function wI({
|
|
|
31827
31830
|
function T(N) {
|
|
31828
31831
|
g(TI(N.target.value));
|
|
31829
31832
|
}
|
|
31830
|
-
function
|
|
31833
|
+
function w(N) {
|
|
31831
31834
|
N.currentTarget.setSelectionRange(
|
|
31832
31835
|
N.currentTarget.value.length,
|
|
31833
31836
|
N.currentTarget.value.length
|
|
31834
31837
|
);
|
|
31835
31838
|
}
|
|
31836
|
-
const
|
|
31839
|
+
const E = H(
|
|
31837
31840
|
"sps-text-input",
|
|
31838
31841
|
e
|
|
31839
31842
|
);
|
|
@@ -31841,7 +31844,7 @@ function wI({
|
|
|
31841
31844
|
St,
|
|
31842
31845
|
{
|
|
31843
31846
|
id: f,
|
|
31844
|
-
className:
|
|
31847
|
+
className: E,
|
|
31845
31848
|
formMeta: n,
|
|
31846
31849
|
inputRef: h,
|
|
31847
31850
|
ref: l
|
|
@@ -31851,7 +31854,7 @@ function wI({
|
|
|
31851
31854
|
{
|
|
31852
31855
|
type: "text",
|
|
31853
31856
|
ref: h,
|
|
31854
|
-
onFocus:
|
|
31857
|
+
onFocus: w,
|
|
31855
31858
|
className: "sps-text-input__input",
|
|
31856
31859
|
id: u,
|
|
31857
31860
|
name: a,
|
|
@@ -32118,7 +32121,7 @@ function Xm(e) {
|
|
|
32118
32121
|
f.current = o;
|
|
32119
32122
|
}, [o]);
|
|
32120
32123
|
const { t: u } = s.useContext(Ge), [h, g] = s.useState(!0), [v, T] = s.useState(!1);
|
|
32121
|
-
function
|
|
32124
|
+
function w() {
|
|
32122
32125
|
return [
|
|
32123
32126
|
window.setTimeout(() => T(!0), Zl),
|
|
32124
32127
|
window.setTimeout(() => {
|
|
@@ -32126,14 +32129,14 @@ function Xm(e) {
|
|
|
32126
32129
|
}, Zl + ib)
|
|
32127
32130
|
];
|
|
32128
32131
|
}
|
|
32129
|
-
const
|
|
32132
|
+
const E = s.useRef([]);
|
|
32130
32133
|
function N() {
|
|
32131
|
-
l || (
|
|
32134
|
+
l || (E.current = w());
|
|
32132
32135
|
}
|
|
32133
32136
|
function I() {
|
|
32134
|
-
for (const O of
|
|
32137
|
+
for (const O of E.current)
|
|
32135
32138
|
window.clearTimeout(O);
|
|
32136
|
-
|
|
32139
|
+
E.current = [];
|
|
32137
32140
|
}
|
|
32138
32141
|
function k() {
|
|
32139
32142
|
I(), g(!0), T(!1);
|
|
@@ -32616,7 +32619,7 @@ function kI(e) {
|
|
|
32616
32619
|
), { t: g } = s.useContext(Ge), [
|
|
32617
32620
|
v,
|
|
32618
32621
|
T,
|
|
32619
|
-
|
|
32622
|
+
w
|
|
32620
32623
|
] = (p ? g("design-system:insightTile.partnerCount", {
|
|
32621
32624
|
count: p,
|
|
32622
32625
|
total: m
|
|
@@ -32628,7 +32631,7 @@ function kI(e) {
|
|
|
32628
32631
|
style: { "-webkit-box-orient": "vertical" }
|
|
32629
32632
|
},
|
|
32630
32633
|
l
|
|
32631
|
-
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === m ? /* @__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, T), /* @__PURE__ */ s.createElement("div", null,
|
|
32634
|
+
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === m ? /* @__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, T), /* @__PURE__ */ s.createElement("div", null, w)), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partners-text" }, g("design-system:insightTile.partners")))));
|
|
32632
32635
|
}
|
|
32633
32636
|
Object.assign(kI, {
|
|
32634
32637
|
props: xI,
|
|
@@ -33183,13 +33186,13 @@ function KI(e) {
|
|
|
33183
33186
|
isIndeterminate: g,
|
|
33184
33187
|
onSelectionChange: v,
|
|
33185
33188
|
pinResultsBar: T,
|
|
33186
|
-
pinToolbar:
|
|
33187
|
-
"data-testid":
|
|
33189
|
+
pinToolbar: w = !0,
|
|
33190
|
+
"data-testid": E,
|
|
33188
33191
|
...N
|
|
33189
33192
|
} = e, { t: I } = s.useContext(Ge);
|
|
33190
33193
|
let k = null;
|
|
33191
33194
|
const [x, A] = s.useState(!1), L = s.useRef(null), C = s.useRef(null), O = ZS(() => {
|
|
33192
|
-
if (L.current &&
|
|
33195
|
+
if (L.current && w) {
|
|
33193
33196
|
const re = L.current.getBoundingClientRect();
|
|
33194
33197
|
re && re.height > 0 && re.top <= 60 && (typeof k == "number" ? window.scrollY < k && (k = null, A(!1)) : (k = window.scrollY, A(!0), o && o(!1)));
|
|
33195
33198
|
}
|
|
@@ -33199,7 +33202,7 @@ function KI(e) {
|
|
|
33199
33202
|
}), []);
|
|
33200
33203
|
const _ = s.useRef();
|
|
33201
33204
|
s.useLayoutEffect(() => {
|
|
33202
|
-
if (C.current && L.current &&
|
|
33205
|
+
if (C.current && L.current && w) {
|
|
33203
33206
|
if (x && _.current)
|
|
33204
33207
|
C.current.style.height = _.current.height, C.current.style.width = _.current.width, C.current.style.marginBottom = _.current.marginBottom;
|
|
33205
33208
|
else if (!x) {
|
|
@@ -33216,7 +33219,7 @@ function KI(e) {
|
|
|
33216
33219
|
function V(re) {
|
|
33217
33220
|
l && l(re);
|
|
33218
33221
|
}
|
|
33219
|
-
function
|
|
33222
|
+
function Y() {
|
|
33220
33223
|
o && o(!(n != null && n.isOpen));
|
|
33221
33224
|
}
|
|
33222
33225
|
function M(re) {
|
|
@@ -33227,8 +33230,8 @@ function KI(e) {
|
|
|
33227
33230
|
}, [x]);
|
|
33228
33231
|
const X = H(
|
|
33229
33232
|
m || "sps-list-toolbar",
|
|
33230
|
-
x &&
|
|
33231
|
-
x &&
|
|
33233
|
+
x && w && "sps-list-toolbar--pinned",
|
|
33234
|
+
x && w && "z-stratum-toolbar",
|
|
33232
33235
|
n && n.isOpen && "sps-list-toolbar--advanced-search-open",
|
|
33233
33236
|
a
|
|
33234
33237
|
), [
|
|
@@ -33241,7 +33244,7 @@ function KI(e) {
|
|
|
33241
33244
|
{ type: nf },
|
|
33242
33245
|
{ type: ef }
|
|
33243
33246
|
]);
|
|
33244
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref: C }, /* @__PURE__ */ s.createElement("div", { className: X, "data-testid":
|
|
33247
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref: C }, /* @__PURE__ */ s.createElement("div", { className: X, "data-testid": E, ref: L, ...N }, /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__content" }, !!u && /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__selection-controls" }, /* @__PURE__ */ s.createElement(
|
|
33245
33248
|
Rr,
|
|
33246
33249
|
{
|
|
33247
33250
|
checked: h,
|
|
@@ -33256,20 +33259,20 @@ function KI(e) {
|
|
|
33256
33259
|
tabs: c,
|
|
33257
33260
|
onTabChange: V,
|
|
33258
33261
|
activeTab: t,
|
|
33259
|
-
"data-testid": `${
|
|
33262
|
+
"data-testid": `${E}__tabs`
|
|
33260
33263
|
}
|
|
33261
33264
|
), /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__search-controls" }, !p && P, !p && Q, P.length > 0 && n && /* @__PURE__ */ s.createElement(
|
|
33262
33265
|
"div",
|
|
33263
33266
|
{
|
|
33264
33267
|
className: "sps-list-toolbar__advanced-search-toggle",
|
|
33265
|
-
"data-testid": `${
|
|
33268
|
+
"data-testid": `${E}__advanced-search`
|
|
33266
33269
|
},
|
|
33267
|
-
/* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__advanced-search-toggle-button-wrapper" }, /* @__PURE__ */ s.createElement(Ze, { kind: Xe.LINK, onClick:
|
|
33268
|
-
(n.enteredFields || 0) > 0 && /* @__PURE__ */ s.createElement(tn, { "data-testid": `${
|
|
33270
|
+
/* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__advanced-search-toggle-button-wrapper" }, /* @__PURE__ */ s.createElement(Ze, { kind: Xe.LINK, onClick: Y }, I("design-system:listToolbar.advancedSearchToggle"))),
|
|
33271
|
+
(n.enteredFields || 0) > 0 && /* @__PURE__ */ s.createElement(tn, { "data-testid": `${E}__entered_fields`, kind: Nr.INFO }, /* @__PURE__ */ s.createElement("span", null, n.enteredFields))
|
|
33269
33272
|
), p && /* @__PURE__ */ s.createElement(
|
|
33270
33273
|
"div",
|
|
33271
33274
|
{
|
|
33272
|
-
"data-testid": `${
|
|
33275
|
+
"data-testid": `${E}-title`,
|
|
33273
33276
|
className: "sps-list-toolbar__advanced-search-title"
|
|
33274
33277
|
},
|
|
33275
33278
|
p
|
|
@@ -34488,12 +34491,12 @@ function XI(e) {
|
|
|
34488
34491
|
tabs: f = [],
|
|
34489
34492
|
unsafelyReplaceClassName: u,
|
|
34490
34493
|
...h
|
|
34491
|
-
} = e, g = s.useRef(null), [v, T] = Jt(n, [{ type: rf }]), [
|
|
34494
|
+
} = e, g = s.useRef(null), [v, T] = Jt(n, [{ type: rf }]), [w, E] = s.useState(t || f[0]);
|
|
34492
34495
|
s.useEffect(() => {
|
|
34493
|
-
|
|
34496
|
+
E(t || f[0]);
|
|
34494
34497
|
}, [t]);
|
|
34495
34498
|
function N(k) {
|
|
34496
|
-
|
|
34499
|
+
E(k), l && l(k);
|
|
34497
34500
|
}
|
|
34498
34501
|
const I = H(
|
|
34499
34502
|
u || "sps-navbar-container",
|
|
@@ -34521,12 +34524,12 @@ function XI(e) {
|
|
|
34521
34524
|
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__nav" }, f.map((k) => /* @__PURE__ */ s.createElement(
|
|
34522
34525
|
"a",
|
|
34523
34526
|
{
|
|
34524
|
-
className: H("sps-nav__item", "sps-nav__link", k ===
|
|
34527
|
+
className: H("sps-nav__item", "sps-nav__link", k === w && "active"),
|
|
34525
34528
|
key: k,
|
|
34526
34529
|
onClick: () => N(k)
|
|
34527
34530
|
},
|
|
34528
34531
|
/* @__PURE__ */ s.createElement("span", null, k),
|
|
34529
|
-
k ===
|
|
34532
|
+
k === w && /* @__PURE__ */ s.createElement("span", { className: "sr-only" }, "(current)")
|
|
34530
34533
|
)), v),
|
|
34531
34534
|
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__content" }, /* @__PURE__ */ s.createElement(qt.Provider, { value: { parentElementRef: g, fixed: !0 } }, T))
|
|
34532
34535
|
));
|
|
@@ -34892,8 +34895,8 @@ function sf({
|
|
|
34892
34895
|
...h
|
|
34893
34896
|
}) {
|
|
34894
34897
|
const g = s.useMemo(() => {
|
|
34895
|
-
const
|
|
34896
|
-
return
|
|
34898
|
+
const E = !!r && !o && Array.isArray(a) && a.find((N) => N.key === r);
|
|
34899
|
+
return E ? E.direction : void 0;
|
|
34897
34900
|
}, [
|
|
34898
34901
|
a,
|
|
34899
34902
|
r,
|
|
@@ -34904,21 +34907,21 @@ function sf({
|
|
|
34904
34907
|
g === Qt.DESCENDING && "sps-sorting-header__cell--sorted-desc",
|
|
34905
34908
|
o && "sps-sorting-header__cell--sort-disabled",
|
|
34906
34909
|
e
|
|
34907
|
-
), T = m ? m / 16 : f,
|
|
34910
|
+
), T = m ? m / 16 : f, w = T ? { ...u, width: `${T}rem` } : u;
|
|
34908
34911
|
return /* @__PURE__ */ s.createElement(
|
|
34909
34912
|
"div",
|
|
34910
34913
|
{
|
|
34911
34914
|
className: v,
|
|
34912
|
-
onClick: (
|
|
34915
|
+
onClick: (E) => {
|
|
34913
34916
|
r && !o && l && l([
|
|
34914
34917
|
{
|
|
34915
34918
|
key: r,
|
|
34916
34919
|
direction: g === Qt.ASCENDING ? Qt.DESCENDING : Qt.ASCENDING
|
|
34917
34920
|
}
|
|
34918
|
-
]), c && c(
|
|
34921
|
+
]), c && c(E);
|
|
34919
34922
|
},
|
|
34920
34923
|
"data-testid": t,
|
|
34921
|
-
style:
|
|
34924
|
+
style: w,
|
|
34922
34925
|
...h
|
|
34923
34926
|
},
|
|
34924
34927
|
p
|