@spscommerce/ds-react 8.4.0 → 8.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/autocomplete/SpsAutocomplete.d.ts +1 -0
- package/lib/checkbox/SpsCheckbox.d.ts +1 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +1 -0
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +1 -0
- package/lib/datepicker/SpsDatepicker.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +1 -0
- package/lib/index.cjs.js +59 -59
- package/lib/index.es.js +878 -874
- package/lib/multi-select/SpsMultiSelect.d.ts +1 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +1 -0
- package/lib/radio-button/SpsRadioButton.d.ts +1 -0
- package/lib/text-input/SpsTextInput.d.ts +2 -0
- package/lib/textarea/SpsTextarea.d.ts +1 -0
- package/lib/time-input/SpsTimeInput.d.ts +2 -1
- package/lib/toggle/SpsToggle.d.ts +1 -0
- package/package.json +12 -12
package/lib/index.es.js
CHANGED
|
@@ -658,7 +658,7 @@ function Kb(e, t = {}) {
|
|
|
658
658
|
const m = Us(e, [], p);
|
|
659
659
|
return t && Rs(e, m, t, !1, !0), m;
|
|
660
660
|
}, []), r = Se(), a = Se(t), o = xn((m, u) => {
|
|
661
|
-
var g, v,
|
|
661
|
+
var g, v, w;
|
|
662
662
|
let h;
|
|
663
663
|
if (r.current = void 0, u)
|
|
664
664
|
if (u.path)
|
|
@@ -700,7 +700,7 @@ function Kb(e, t = {}) {
|
|
|
700
700
|
m.formValue,
|
|
701
701
|
m.formMeta,
|
|
702
702
|
a.current,
|
|
703
|
-
(
|
|
703
|
+
(w = (v = u.updateFormOptions) == null ? void 0 : v.runValidators) != null ? w : !0
|
|
704
704
|
)), h) {
|
|
705
705
|
m.formMeta.submitted = !1, Ll(h);
|
|
706
706
|
const E = _g(
|
|
@@ -761,14 +761,14 @@ function Kb(e, t = {}) {
|
|
|
761
761
|
objects: [, A]
|
|
762
762
|
} of E)
|
|
763
763
|
if (typeof I != "symbol") {
|
|
764
|
-
let _ = m.formMeta,
|
|
764
|
+
let _ = m.formMeta, C = h;
|
|
765
765
|
if (_) {
|
|
766
|
-
for (const
|
|
767
|
-
_ = _.fields[
|
|
766
|
+
for (const O of k)
|
|
767
|
+
_ = _.fields[O], C = C[O], N.has(_) || _.validate(C, Sn.ON_CHANGE);
|
|
768
768
|
if (x === Wn.ADDITION || x === Wn.ALTERATION) {
|
|
769
|
-
const
|
|
770
|
-
if (!N.has(
|
|
771
|
-
for (const [R, $] of Object.entries(
|
|
769
|
+
const O = _.fields[I];
|
|
770
|
+
if (!N.has(O) && (_.fields[I].validate(A[I], Sn.ON_CHANGE), x === Wn.ADDITION && O.fields))
|
|
771
|
+
for (const [R, $] of Object.entries(O.fields))
|
|
772
772
|
$.validate(A[I][R], Sn.ON_CHANGE);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
@@ -822,7 +822,7 @@ const St = s.forwardRef(
|
|
|
822
822
|
function v() {
|
|
823
823
|
h && h !== t && h.current && l && l instanceof Js && l.markAsFocused();
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function w() {
|
|
826
826
|
h && h !== t && h.current && l && l instanceof Js && l.markAsBlurred();
|
|
827
827
|
}
|
|
828
828
|
const E = K(
|
|
@@ -851,7 +851,7 @@ const St = s.forwardRef(
|
|
|
851
851
|
tabIndex: -1,
|
|
852
852
|
onClick: T,
|
|
853
853
|
onFocus: v,
|
|
854
|
-
onBlur:
|
|
854
|
+
onBlur: w
|
|
855
855
|
},
|
|
856
856
|
r
|
|
857
857
|
);
|
|
@@ -900,17 +900,17 @@ var Kl = function(e, t) {
|
|
|
900
900
|
}
|
|
901
901
|
g != null && g === document.body && Ua(g) && !Ua(document.documentElement) || g != null && Ua(g, c) && h.push(g);
|
|
902
902
|
}
|
|
903
|
-
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth,
|
|
904
|
-
var M = h[G], H = M.getBoundingClientRect(), W = H.height, z = H.width, B = H.top, oe = H.right, ie = H.bottom,
|
|
905
|
-
if (r === "if-needed" && k >= 0 &&
|
|
903
|
+
for (var v = n.visualViewport ? n.visualViewport.width : innerWidth, w = n.visualViewport ? n.visualViewport.height : innerHeight, E = window.scrollX || pageXOffset, T = window.scrollY || pageYOffset, N = e.getBoundingClientRect(), x = N.height, I = N.width, k = N.top, A = N.right, _ = N.bottom, C = N.left, O = a === "start" || a === "nearest" ? k : a === "end" ? _ : k + x / 2, R = o === "center" ? C + I / 2 : o === "end" ? A : C, $ = [], G = 0; G < h.length; G++) {
|
|
904
|
+
var M = h[G], H = M.getBoundingClientRect(), W = H.height, z = H.width, B = H.top, oe = H.right, ie = H.bottom, L = H.left;
|
|
905
|
+
if (r === "if-needed" && k >= 0 && C >= 0 && _ <= w && A <= v && k >= B && _ <= ie && C >= L && A <= oe)
|
|
906
906
|
return $;
|
|
907
907
|
var j = getComputedStyle(M), te = parseInt(j.borderLeftWidth, 10), Y = parseInt(j.borderTopWidth, 10), U = parseInt(j.borderRightWidth, 10), V = parseInt(j.borderBottomWidth, 10), X = 0, Q = 0, ce = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - te - U : 0, re = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - Y - V : 0, ue = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : z / M.offsetWidth : 0, ae = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : W / M.offsetHeight : 0;
|
|
908
908
|
if (u === M)
|
|
909
|
-
X = a === "start" ?
|
|
909
|
+
X = a === "start" ? O : a === "end" ? O - w : a === "nearest" ? As(T, T + w, w, Y, V, T + O, T + O + x, x) : O - w / 2, Q = o === "start" ? R : o === "center" ? R - v / 2 : o === "end" ? R - v : As(E, E + v, v, te, U, E + R, E + R + I, I), X = Math.max(0, X + T), Q = Math.max(0, Q + E);
|
|
910
910
|
else {
|
|
911
|
-
X = a === "start" ?
|
|
911
|
+
X = a === "start" ? O - B - Y : a === "end" ? O - ie + V + re : a === "nearest" ? As(B, ie, W, Y, V + re, O, O + x, x) : O - (B + W / 2) + re / 2, Q = o === "start" ? R - L - te : o === "center" ? R - (L + z / 2) + ce / 2 : o === "end" ? R - oe + U + ce : As(L, oe, z, te, U + ce, R, R + I, I);
|
|
912
912
|
var ee = M.scrollLeft, Te = M.scrollTop;
|
|
913
|
-
|
|
913
|
+
O += Te - (X = Math.max(0, Math.min(Te + X / ae, M.scrollHeight - W / ae + re))), R += ee - (Q = Math.max(0, Math.min(ee + Q / ue, M.scrollWidth - z / ue + ce)));
|
|
914
914
|
}
|
|
915
915
|
$.push({ el: M, top: X, left: Q });
|
|
916
916
|
}
|
|
@@ -1011,7 +1011,7 @@ function $d(e) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
function jb(e, t, n, r, a, o, l, c) {
|
|
1013
1013
|
const p = l && l.current, f = p ? p.scrollTop : window.pageYOffset, m = c ? 0 : f, u = p ? p.scrollLeft : window.pageXOffset, h = c ? 0 : u, [g, v] = e.split(" ");
|
|
1014
|
-
let
|
|
1014
|
+
let w, E, T, N;
|
|
1015
1015
|
switch (g) {
|
|
1016
1016
|
case "top":
|
|
1017
1017
|
T = t.height - n.top - m - o[0];
|
|
@@ -1023,7 +1023,7 @@ function jb(e, t, n, r, a, o, l, c) {
|
|
|
1023
1023
|
N = n.right + h - o[0];
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "bottom":
|
|
1026
|
-
|
|
1026
|
+
w = n.bottom + m - o[0];
|
|
1027
1027
|
break;
|
|
1028
1028
|
default:
|
|
1029
1029
|
throw new Error(`Invalid position ${e}`);
|
|
@@ -1033,10 +1033,10 @@ function jb(e, t, n, r, a, o, l, c) {
|
|
|
1033
1033
|
N = n.left + h + o[1];
|
|
1034
1034
|
break;
|
|
1035
1035
|
case "top":
|
|
1036
|
-
|
|
1036
|
+
w = n.top + m + o[1];
|
|
1037
1037
|
break;
|
|
1038
1038
|
case "middle":
|
|
1039
|
-
g === "top" || g === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (g === "left" || g === "right") && (
|
|
1039
|
+
g === "top" || g === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (g === "left" || g === "right") && (w = n.top + m + n.height / 2 - r.height / 2 + o[1]);
|
|
1040
1040
|
break;
|
|
1041
1041
|
case "bottom":
|
|
1042
1042
|
T = t.height - n.bottom - m + o[1];
|
|
@@ -1048,7 +1048,7 @@ function jb(e, t, n, r, a, o, l, c) {
|
|
|
1048
1048
|
throw new Error(`Invalid position ${e}`);
|
|
1049
1049
|
}
|
|
1050
1050
|
return [
|
|
1051
|
-
|
|
1051
|
+
w,
|
|
1052
1052
|
E,
|
|
1053
1053
|
T,
|
|
1054
1054
|
N
|
|
@@ -1073,9 +1073,9 @@ function qn(e, t, n, {
|
|
|
1073
1073
|
left: 0,
|
|
1074
1074
|
bottom: f,
|
|
1075
1075
|
right: m
|
|
1076
|
-
} : u.getBoundingClientRect(), g = e.current.getBoundingClientRect(), v = t.current.getBoundingClientRect(), [
|
|
1076
|
+
} : u.getBoundingClientRect(), g = e.current.getBoundingClientRect(), v = t.current.getBoundingClientRect(), [w] = n.split(" ");
|
|
1077
1077
|
let E = n;
|
|
1078
|
-
r && (
|
|
1078
|
+
r && (w === "top" && v.top - g.height < Ub || w === "right" && v.right + g.width > m || w === "bottom" && v.bottom + g.height > f || w === "left" && v.left - g.width < 0) && (E = r);
|
|
1079
1079
|
const T = a ? Math.max(v.width, g.width) : g.width, N = o ? v.width : T, [
|
|
1080
1080
|
x,
|
|
1081
1081
|
I,
|
|
@@ -1375,7 +1375,7 @@ const ds = s.forwardRef((e, t) => {
|
|
|
1375
1375
|
search: h,
|
|
1376
1376
|
searchDebounce: g,
|
|
1377
1377
|
searchPlaceholder: v,
|
|
1378
|
-
onSpecialActionSelect:
|
|
1378
|
+
onSpecialActionSelect: w,
|
|
1379
1379
|
attachTo: E,
|
|
1380
1380
|
className: T,
|
|
1381
1381
|
conformWidth: N,
|
|
@@ -1384,8 +1384,8 @@ const ds = s.forwardRef((e, t) => {
|
|
|
1384
1384
|
isOpen: k,
|
|
1385
1385
|
keepOpen: A,
|
|
1386
1386
|
keyDown: _,
|
|
1387
|
-
nullOption:
|
|
1388
|
-
onOptionListChanged:
|
|
1387
|
+
nullOption: C,
|
|
1388
|
+
onOptionListChanged: O,
|
|
1389
1389
|
onOptionSelected: R,
|
|
1390
1390
|
onPositionFlip: $,
|
|
1391
1391
|
onSelfToggle: G,
|
|
@@ -1396,7 +1396,7 @@ const ds = s.forwardRef((e, t) => {
|
|
|
1396
1396
|
unsafelyReplaceClassName: B,
|
|
1397
1397
|
loading: oe,
|
|
1398
1398
|
filterByTextAndCaptionKey: ie,
|
|
1399
|
-
maxHeightPx:
|
|
1399
|
+
maxHeightPx: L,
|
|
1400
1400
|
maxHeightRem: j,
|
|
1401
1401
|
disableOptionsMemoization: te,
|
|
1402
1402
|
disableDefaultOptionsFiltering: Y,
|
|
@@ -1466,7 +1466,7 @@ const ds = s.forwardRef((e, t) => {
|
|
|
1466
1466
|
}, [re, G]), fe = s.useCallback(() => {
|
|
1467
1467
|
re && (ue(!1), ce(-1), G && G(!1));
|
|
1468
1468
|
}, [re, G]), ot = s.useCallback((be, ye) => {
|
|
1469
|
-
ye || be && !be.disabled && (typeof be.value == "function" ? (be.value(),
|
|
1469
|
+
ye || be && !be.disabled && (typeof be.value == "function" ? (be.value(), w && w()) : typeof R == "function" && R(be.value), A || fe());
|
|
1470
1470
|
}, [R, fe]), Nt = s.useCallback(
|
|
1471
1471
|
(be, ye, ze) => {
|
|
1472
1472
|
be.stopPropagation(), ot(ye, ze);
|
|
@@ -1554,7 +1554,7 @@ const ds = s.forwardRef((e, t) => {
|
|
|
1554
1554
|
}, [_]), s.useEffect(() => {
|
|
1555
1555
|
!re && ee.current && (ut({ value: "" }), ee.current.scrollTop = 0), re && $ && $(Pe);
|
|
1556
1556
|
}, [re]);
|
|
1557
|
-
const Pn =
|
|
1557
|
+
const Pn = L ? L / 16 : j, Ca = Pn ? { maxHeight: `${Pn}rem` } : {};
|
|
1558
1558
|
function Bn(be, ye) {
|
|
1559
1559
|
return ye ? /* @__PURE__ */ s.createElement(s.Fragment, null, be.split(ye).map((ze, Vt) => ye.test(ze) ? /* @__PURE__ */ s.createElement("u", { key: Vt }, ze) : /* @__PURE__ */ s.createElement(s.Fragment, { key: Vt }, ze))) : /* @__PURE__ */ s.createElement(s.Fragment, null, be);
|
|
1560
1560
|
}
|
|
@@ -1794,7 +1794,7 @@ function gn({
|
|
|
1794
1794
|
tallOptionList: h,
|
|
1795
1795
|
value: g = "",
|
|
1796
1796
|
zeroState: v,
|
|
1797
|
-
loading:
|
|
1797
|
+
loading: w,
|
|
1798
1798
|
maxHeightOptionListPx: E,
|
|
1799
1799
|
maxHeightOptionListRem: T,
|
|
1800
1800
|
disableOptionsMemoization: N,
|
|
@@ -1803,7 +1803,7 @@ function gn({
|
|
|
1803
1803
|
"data-testid": k,
|
|
1804
1804
|
...A
|
|
1805
1805
|
}) {
|
|
1806
|
-
const _ = a || r, { wrapperId:
|
|
1806
|
+
const _ = a || r, { wrapperId: C, controlId: O } = Dt(p, _), [R, $] = vn({
|
|
1807
1807
|
keyDown: null,
|
|
1808
1808
|
opensUpward: !1
|
|
1809
1809
|
}), G = s.useRef(null), M = s.useRef(null), H = s.useRef(null), {
|
|
@@ -1817,7 +1817,7 @@ function gn({
|
|
|
1817
1817
|
function ie(V) {
|
|
1818
1818
|
M.current && (M.current.value = "", oe("")), V.stopPropagation();
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1820
|
+
function L(V) {
|
|
1821
1821
|
oe(V.target.value, V);
|
|
1822
1822
|
}
|
|
1823
1823
|
function j(V) {
|
|
@@ -1846,7 +1846,7 @@ function gn({
|
|
|
1846
1846
|
return /* @__PURE__ */ s.createElement(
|
|
1847
1847
|
St,
|
|
1848
1848
|
{
|
|
1849
|
-
id:
|
|
1849
|
+
id: C,
|
|
1850
1850
|
className: U,
|
|
1851
1851
|
formControl: r,
|
|
1852
1852
|
formMeta: a,
|
|
@@ -1866,10 +1866,10 @@ function gn({
|
|
|
1866
1866
|
placeholder: f,
|
|
1867
1867
|
onFocus: z,
|
|
1868
1868
|
onClick: z,
|
|
1869
|
-
onChange:
|
|
1869
|
+
onChange: L,
|
|
1870
1870
|
onKeyDown: j,
|
|
1871
1871
|
disabled: n,
|
|
1872
|
-
id:
|
|
1872
|
+
id: O,
|
|
1873
1873
|
"data-testid": `${k}__input`,
|
|
1874
1874
|
...A
|
|
1875
1875
|
}
|
|
@@ -1884,7 +1884,7 @@ function gn({
|
|
|
1884
1884
|
/* @__PURE__ */ s.createElement(
|
|
1885
1885
|
ds,
|
|
1886
1886
|
{
|
|
1887
|
-
id: `${
|
|
1887
|
+
id: `${C}_options`,
|
|
1888
1888
|
ref: H,
|
|
1889
1889
|
attachTo: G,
|
|
1890
1890
|
isOpen: W,
|
|
@@ -1902,7 +1902,7 @@ function gn({
|
|
|
1902
1902
|
searchDebounce: t,
|
|
1903
1903
|
tall: h,
|
|
1904
1904
|
zeroState: v,
|
|
1905
|
-
loading:
|
|
1905
|
+
loading: w,
|
|
1906
1906
|
maxHeightPx: E,
|
|
1907
1907
|
maxHeightRem: T,
|
|
1908
1908
|
disableOptionsMemoization: N
|
|
@@ -2074,7 +2074,7 @@ function Ir({
|
|
|
2074
2074
|
unsafelyReplaceClassName: u,
|
|
2075
2075
|
...h
|
|
2076
2076
|
}) {
|
|
2077
|
-
const g = a || r, v = s.useRef(null), [
|
|
2077
|
+
const g = a || r, v = s.useRef(null), [w, E] = s.useState(e), [T, N] = s.useState(l), { wrapperId: x, controlId: I } = Dt(o, g);
|
|
2078
2078
|
s.useEffect(() => E(e), [e]), s.useEffect(() => N(l), [l]), s.useEffect(() => {
|
|
2079
2079
|
v.current && (v.current.indeterminate = T);
|
|
2080
2080
|
}, [T]);
|
|
@@ -2086,8 +2086,8 @@ function Ir({
|
|
|
2086
2086
|
t
|
|
2087
2087
|
);
|
|
2088
2088
|
function A(_) {
|
|
2089
|
-
var
|
|
2090
|
-
E(_.target.checked), N(!1), g && (g.setValue(_.target.checked), g.markAsDirty()), f && f(_), (
|
|
2089
|
+
var C;
|
|
2090
|
+
E(_.target.checked), N(!1), g && (g.setValue(_.target.checked), g.markAsDirty()), f && f(_), (C = v.current) == null || C.focus();
|
|
2091
2091
|
}
|
|
2092
2092
|
return /* @__PURE__ */ s.createElement(
|
|
2093
2093
|
St,
|
|
@@ -2106,7 +2106,7 @@ function Ir({
|
|
|
2106
2106
|
ref: v,
|
|
2107
2107
|
className: "sps-checkable__input",
|
|
2108
2108
|
id: I,
|
|
2109
|
-
checked:
|
|
2109
|
+
checked: w,
|
|
2110
2110
|
disabled: n,
|
|
2111
2111
|
"data-testid": `${m}__checkbox-input`,
|
|
2112
2112
|
onChange: A,
|
|
@@ -2292,7 +2292,7 @@ function pa(e) {
|
|
|
2292
2292
|
"sps-clickable-tag__label",
|
|
2293
2293
|
(a || p) && "sps-clickable-tag__label--link"
|
|
2294
2294
|
), v = s.Children.toArray(t).filter((T) => typeof T == "string").join("");
|
|
2295
|
-
function
|
|
2295
|
+
function w(T) {
|
|
2296
2296
|
l ? l() : c && c(), T.stopPropagation();
|
|
2297
2297
|
}
|
|
2298
2298
|
s.useEffect(() => {
|
|
@@ -2315,7 +2315,7 @@ function pa(e) {
|
|
|
2315
2315
|
"div",
|
|
2316
2316
|
{
|
|
2317
2317
|
className: "sps-clickable-tag__icon",
|
|
2318
|
-
onClick: r ? void 0 :
|
|
2318
|
+
onClick: r ? void 0 : w,
|
|
2319
2319
|
tabIndex: -1,
|
|
2320
2320
|
"aria-label": l ? "Add" : "Remove"
|
|
2321
2321
|
},
|
|
@@ -2624,31 +2624,31 @@ function Gd(e, t, n) {
|
|
|
2624
2624
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
2625
2625
|
return o;
|
|
2626
2626
|
}
|
|
2627
|
-
function u(
|
|
2628
|
-
if (typeof
|
|
2629
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(4) : "Expected the listener to be a function. Instead, received: '" + Un(
|
|
2627
|
+
function u(w) {
|
|
2628
|
+
if (typeof w != "function")
|
|
2629
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(4) : "Expected the listener to be a function. Instead, received: '" + Un(w) + "'");
|
|
2630
2630
|
if (p)
|
|
2631
2631
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(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.");
|
|
2632
2632
|
var E = !0;
|
|
2633
|
-
return f(), c.push(
|
|
2633
|
+
return f(), c.push(w), function() {
|
|
2634
2634
|
if (!!E) {
|
|
2635
2635
|
if (p)
|
|
2636
2636
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(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.");
|
|
2637
2637
|
E = !1, f();
|
|
2638
|
-
var N = c.indexOf(
|
|
2638
|
+
var N = c.indexOf(w);
|
|
2639
2639
|
c.splice(N, 1), l = null;
|
|
2640
2640
|
}
|
|
2641
2641
|
};
|
|
2642
2642
|
}
|
|
2643
|
-
function h(
|
|
2644
|
-
if (!uv(
|
|
2645
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(7) : "Actions must be plain objects. Instead, the actual type was: '" + Un(
|
|
2646
|
-
if (typeof
|
|
2643
|
+
function h(w) {
|
|
2644
|
+
if (!uv(w))
|
|
2645
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(7) : "Actions must be plain objects. Instead, the actual type was: '" + Un(w) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
2646
|
+
if (typeof w.type > "u")
|
|
2647
2647
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
2648
2648
|
if (p)
|
|
2649
2649
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(9) : "Reducers may not dispatch actions.");
|
|
2650
2650
|
try {
|
|
2651
|
-
p = !0, o = a(o,
|
|
2651
|
+
p = !0, o = a(o, w);
|
|
2652
2652
|
} finally {
|
|
2653
2653
|
p = !1;
|
|
2654
2654
|
}
|
|
@@ -2656,18 +2656,18 @@ function Gd(e, t, n) {
|
|
|
2656
2656
|
var N = E[T];
|
|
2657
2657
|
N();
|
|
2658
2658
|
}
|
|
2659
|
-
return
|
|
2659
|
+
return w;
|
|
2660
2660
|
}
|
|
2661
|
-
function g(
|
|
2662
|
-
if (typeof
|
|
2663
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(10) : "Expected the nextReducer to be a function. Instead, received: '" + Un(
|
|
2664
|
-
a =
|
|
2661
|
+
function g(w) {
|
|
2662
|
+
if (typeof w != "function")
|
|
2663
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(10) : "Expected the nextReducer to be a function. Instead, received: '" + Un(w));
|
|
2664
|
+
a = w, h({
|
|
2665
2665
|
type: ql.REPLACE
|
|
2666
2666
|
});
|
|
2667
2667
|
}
|
|
2668
2668
|
function v() {
|
|
2669
|
-
var
|
|
2670
|
-
return
|
|
2669
|
+
var w, E = u;
|
|
2670
|
+
return w = {
|
|
2671
2671
|
subscribe: function(N) {
|
|
2672
2672
|
if (typeof N != "object" || N === null)
|
|
2673
2673
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(11) : "Expected the observer to be an object. Instead, received: '" + Un(N) + "'");
|
|
@@ -2680,9 +2680,9 @@ function Gd(e, t, n) {
|
|
|
2680
2680
|
unsubscribe: I
|
|
2681
2681
|
};
|
|
2682
2682
|
}
|
|
2683
|
-
},
|
|
2683
|
+
}, w[zl] = function() {
|
|
2684
2684
|
return this;
|
|
2685
|
-
},
|
|
2685
|
+
}, w;
|
|
2686
2686
|
}
|
|
2687
2687
|
return h({
|
|
2688
2688
|
type: ql.INIT
|
|
@@ -2756,7 +2756,7 @@ function bv() {
|
|
|
2756
2756
|
if (Xl)
|
|
2757
2757
|
return Le;
|
|
2758
2758
|
Xl = 1;
|
|
2759
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116,
|
|
2759
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
2760
2760
|
function x(k) {
|
|
2761
2761
|
if (typeof k == "object" && k !== null) {
|
|
2762
2762
|
var A = k.$$typeof;
|
|
@@ -2815,7 +2815,7 @@ function bv() {
|
|
|
2815
2815
|
}, Le.isSuspense = function(k) {
|
|
2816
2816
|
return x(k) === u;
|
|
2817
2817
|
}, Le.isValidElementType = function(k) {
|
|
2818
|
-
return typeof k == "string" || typeof k == "function" || k === r || k === f || k === o || k === a || k === u || k === h || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === g || k.$$typeof === l || k.$$typeof === c || k.$$typeof === m || k.$$typeof === E || k.$$typeof === T || k.$$typeof === N || k.$$typeof ===
|
|
2818
|
+
return typeof k == "string" || typeof k == "function" || k === r || k === f || k === o || k === a || k === u || k === h || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === g || k.$$typeof === l || k.$$typeof === c || k.$$typeof === m || k.$$typeof === E || k.$$typeof === T || k.$$typeof === N || k.$$typeof === w);
|
|
2819
2819
|
}, Le.typeOf = x, Le;
|
|
2820
2820
|
}
|
|
2821
2821
|
var Re = {};
|
|
@@ -2830,9 +2830,9 @@ var Re = {};
|
|
|
2830
2830
|
var Ql;
|
|
2831
2831
|
function vv() {
|
|
2832
2832
|
return Ql || (Ql = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2833
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116,
|
|
2833
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
2834
2834
|
function x(ee) {
|
|
2835
|
-
return typeof ee == "string" || typeof ee == "function" || ee === r || ee === f || ee === o || ee === a || ee === u || ee === h || typeof ee == "object" && ee !== null && (ee.$$typeof === v || ee.$$typeof === g || ee.$$typeof === l || ee.$$typeof === c || ee.$$typeof === m || ee.$$typeof === E || ee.$$typeof === T || ee.$$typeof === N || ee.$$typeof ===
|
|
2835
|
+
return typeof ee == "string" || typeof ee == "function" || ee === r || ee === f || ee === o || ee === a || ee === u || ee === h || typeof ee == "object" && ee !== null && (ee.$$typeof === v || ee.$$typeof === g || ee.$$typeof === l || ee.$$typeof === c || ee.$$typeof === m || ee.$$typeof === E || ee.$$typeof === T || ee.$$typeof === N || ee.$$typeof === w);
|
|
2836
2836
|
}
|
|
2837
2837
|
function I(ee) {
|
|
2838
2838
|
if (typeof ee == "object" && ee !== null) {
|
|
@@ -2866,11 +2866,11 @@ function vv() {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
|
-
var k = p, A = f, _ = c,
|
|
2869
|
+
var k = p, A = f, _ = c, C = l, O = t, R = m, $ = r, G = v, M = g, H = n, W = o, z = a, B = u, oe = !1;
|
|
2870
2870
|
function ie(ee) {
|
|
2871
|
-
return oe || (oe = !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.")),
|
|
2871
|
+
return oe || (oe = !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.")), L(ee) || I(ee) === p;
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2873
|
+
function L(ee) {
|
|
2874
2874
|
return I(ee) === f;
|
|
2875
2875
|
}
|
|
2876
2876
|
function j(ee) {
|
|
@@ -2906,7 +2906,7 @@ function vv() {
|
|
|
2906
2906
|
function ae(ee) {
|
|
2907
2907
|
return I(ee) === u;
|
|
2908
2908
|
}
|
|
2909
|
-
Re.AsyncMode = k, Re.ConcurrentMode = A, Re.ContextConsumer = _, Re.ContextProvider =
|
|
2909
|
+
Re.AsyncMode = k, Re.ConcurrentMode = A, Re.ContextConsumer = _, Re.ContextProvider = C, Re.Element = O, Re.ForwardRef = R, Re.Fragment = $, Re.Lazy = G, Re.Memo = M, Re.Portal = H, Re.Profiler = W, Re.StrictMode = z, Re.Suspense = B, Re.isAsyncMode = ie, Re.isConcurrentMode = L, Re.isContextConsumer = j, Re.isContextProvider = te, Re.isElement = Y, Re.isForwardRef = U, Re.isFragment = V, Re.isLazy = X, Re.isMemo = Q, Re.isPortal = ce, Re.isProfiler = re, Re.isStrictMode = ue, Re.isSuspense = ae, Re.isValidElementType = x, Re.typeOf = I;
|
|
2910
2910
|
}()), Re;
|
|
2911
2911
|
}
|
|
2912
2912
|
(function(e) {
|
|
@@ -3046,8 +3046,8 @@ function Tv() {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
return Xa = function(c, p) {
|
|
3048
3048
|
var f = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
3049
|
-
function u(
|
|
3050
|
-
var j =
|
|
3049
|
+
function u(L) {
|
|
3050
|
+
var j = L && (f && L[f] || L[m]);
|
|
3051
3051
|
if (typeof j == "function")
|
|
3052
3052
|
return j;
|
|
3053
3053
|
}
|
|
@@ -3066,20 +3066,20 @@ function Tv() {
|
|
|
3066
3066
|
elementType: k(),
|
|
3067
3067
|
instanceOf: A,
|
|
3068
3068
|
node: R(),
|
|
3069
|
-
objectOf:
|
|
3069
|
+
objectOf: C,
|
|
3070
3070
|
oneOf: _,
|
|
3071
|
-
oneOfType:
|
|
3071
|
+
oneOfType: O,
|
|
3072
3072
|
shape: G,
|
|
3073
3073
|
exact: M
|
|
3074
3074
|
};
|
|
3075
|
-
function v(
|
|
3076
|
-
return
|
|
3075
|
+
function v(L, j) {
|
|
3076
|
+
return L === j ? L !== 0 || 1 / L === 1 / j : L !== L && j !== j;
|
|
3077
3077
|
}
|
|
3078
|
-
function
|
|
3079
|
-
this.message =
|
|
3078
|
+
function w(L, j) {
|
|
3079
|
+
this.message = L, this.data = j && typeof j == "object" ? j : {}, this.stack = "";
|
|
3080
3080
|
}
|
|
3081
|
-
|
|
3082
|
-
function E(
|
|
3081
|
+
w.prototype = Error.prototype;
|
|
3082
|
+
function E(L) {
|
|
3083
3083
|
if (process.env.NODE_ENV !== "production")
|
|
3084
3084
|
var j = {}, te = 0;
|
|
3085
3085
|
function Y(V, X, Q, ce, re, ue, ae) {
|
|
@@ -3096,19 +3096,19 @@ function Tv() {
|
|
|
3096
3096
|
), j[Te] = !0, te++);
|
|
3097
3097
|
}
|
|
3098
3098
|
}
|
|
3099
|
-
return X[Q] == null ? V ? X[Q] === null ? new
|
|
3099
|
+
return X[Q] == null ? V ? X[Q] === null ? new w("The " + re + " `" + ue + "` is marked as required " + ("in `" + ce + "`, but its value is `null`.")) : new w("The " + re + " `" + ue + "` is marked as required in " + ("`" + ce + "`, but its value is `undefined`.")) : null : L(X, Q, ce, re, ue);
|
|
3100
3100
|
}
|
|
3101
3101
|
var U = Y.bind(null, !1);
|
|
3102
3102
|
return U.isRequired = Y.bind(null, !0), U;
|
|
3103
3103
|
}
|
|
3104
|
-
function T(
|
|
3104
|
+
function T(L) {
|
|
3105
3105
|
function j(te, Y, U, V, X, Q) {
|
|
3106
3106
|
var ce = te[Y], re = z(ce);
|
|
3107
|
-
if (re !==
|
|
3107
|
+
if (re !== L) {
|
|
3108
3108
|
var ue = B(ce);
|
|
3109
|
-
return new
|
|
3110
|
-
"Invalid " + V + " `" + X + "` of type " + ("`" + ue + "` supplied to `" + U + "`, expected ") + ("`" +
|
|
3111
|
-
{ expectedType:
|
|
3109
|
+
return new w(
|
|
3110
|
+
"Invalid " + V + " `" + X + "` of type " + ("`" + ue + "` supplied to `" + U + "`, expected ") + ("`" + L + "`."),
|
|
3111
|
+
{ expectedType: L }
|
|
3112
3112
|
);
|
|
3113
3113
|
}
|
|
3114
3114
|
return null;
|
|
@@ -3118,17 +3118,17 @@ function Tv() {
|
|
|
3118
3118
|
function N() {
|
|
3119
3119
|
return E(l);
|
|
3120
3120
|
}
|
|
3121
|
-
function x(
|
|
3121
|
+
function x(L) {
|
|
3122
3122
|
function j(te, Y, U, V, X) {
|
|
3123
|
-
if (typeof
|
|
3124
|
-
return new
|
|
3123
|
+
if (typeof L != "function")
|
|
3124
|
+
return new w("Property `" + X + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
3125
3125
|
var Q = te[Y];
|
|
3126
3126
|
if (!Array.isArray(Q)) {
|
|
3127
3127
|
var ce = z(Q);
|
|
3128
|
-
return new
|
|
3128
|
+
return new w("Invalid " + V + " `" + X + "` of type " + ("`" + ce + "` supplied to `" + U + "`, expected an array."));
|
|
3129
3129
|
}
|
|
3130
3130
|
for (var re = 0; re < Q.length; re++) {
|
|
3131
|
-
var ue =
|
|
3131
|
+
var ue = L(Q, re, U, V, X + "[" + re + "]", n);
|
|
3132
3132
|
if (ue instanceof Error)
|
|
3133
3133
|
return ue;
|
|
3134
3134
|
}
|
|
@@ -3137,64 +3137,64 @@ function Tv() {
|
|
|
3137
3137
|
return E(j);
|
|
3138
3138
|
}
|
|
3139
3139
|
function I() {
|
|
3140
|
-
function
|
|
3140
|
+
function L(j, te, Y, U, V) {
|
|
3141
3141
|
var X = j[te];
|
|
3142
3142
|
if (!c(X)) {
|
|
3143
3143
|
var Q = z(X);
|
|
3144
|
-
return new
|
|
3144
|
+
return new w("Invalid " + U + " `" + V + "` of type " + ("`" + Q + "` supplied to `" + Y + "`, expected a single ReactElement."));
|
|
3145
3145
|
}
|
|
3146
3146
|
return null;
|
|
3147
3147
|
}
|
|
3148
|
-
return E(
|
|
3148
|
+
return E(L);
|
|
3149
3149
|
}
|
|
3150
3150
|
function k() {
|
|
3151
|
-
function
|
|
3151
|
+
function L(j, te, Y, U, V) {
|
|
3152
3152
|
var X = j[te];
|
|
3153
3153
|
if (!e.isValidElementType(X)) {
|
|
3154
3154
|
var Q = z(X);
|
|
3155
|
-
return new
|
|
3155
|
+
return new w("Invalid " + U + " `" + V + "` of type " + ("`" + Q + "` supplied to `" + Y + "`, expected a single ReactElement type."));
|
|
3156
3156
|
}
|
|
3157
3157
|
return null;
|
|
3158
3158
|
}
|
|
3159
|
-
return E(
|
|
3159
|
+
return E(L);
|
|
3160
3160
|
}
|
|
3161
|
-
function A(
|
|
3161
|
+
function A(L) {
|
|
3162
3162
|
function j(te, Y, U, V, X) {
|
|
3163
|
-
if (!(te[Y] instanceof
|
|
3164
|
-
var Q =
|
|
3165
|
-
return new
|
|
3163
|
+
if (!(te[Y] instanceof L)) {
|
|
3164
|
+
var Q = L.name || h, ce = ie(te[Y]);
|
|
3165
|
+
return new w("Invalid " + V + " `" + X + "` of type " + ("`" + ce + "` supplied to `" + U + "`, expected ") + ("instance of `" + Q + "`."));
|
|
3166
3166
|
}
|
|
3167
3167
|
return null;
|
|
3168
3168
|
}
|
|
3169
3169
|
return E(j);
|
|
3170
3170
|
}
|
|
3171
|
-
function _(
|
|
3172
|
-
if (!Array.isArray(
|
|
3171
|
+
function _(L) {
|
|
3172
|
+
if (!Array.isArray(L))
|
|
3173
3173
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
3174
3174
|
"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])."
|
|
3175
3175
|
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
3176
3176
|
function j(te, Y, U, V, X) {
|
|
3177
|
-
for (var Q = te[Y], ce = 0; ce <
|
|
3178
|
-
if (v(Q,
|
|
3177
|
+
for (var Q = te[Y], ce = 0; ce < L.length; ce++)
|
|
3178
|
+
if (v(Q, L[ce]))
|
|
3179
3179
|
return null;
|
|
3180
|
-
var re = JSON.stringify(
|
|
3180
|
+
var re = JSON.stringify(L, function(ae, ee) {
|
|
3181
3181
|
var Te = B(ee);
|
|
3182
3182
|
return Te === "symbol" ? String(ee) : ee;
|
|
3183
3183
|
});
|
|
3184
|
-
return new
|
|
3184
|
+
return new w("Invalid " + V + " `" + X + "` of value `" + String(Q) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
|
|
3185
3185
|
}
|
|
3186
3186
|
return E(j);
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function C(L) {
|
|
3189
3189
|
function j(te, Y, U, V, X) {
|
|
3190
|
-
if (typeof
|
|
3191
|
-
return new
|
|
3190
|
+
if (typeof L != "function")
|
|
3191
|
+
return new w("Property `" + X + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
3192
3192
|
var Q = te[Y], ce = z(Q);
|
|
3193
3193
|
if (ce !== "object")
|
|
3194
|
-
return new
|
|
3194
|
+
return new w("Invalid " + V + " `" + X + "` of type " + ("`" + ce + "` supplied to `" + U + "`, expected an object."));
|
|
3195
3195
|
for (var re in Q)
|
|
3196
3196
|
if (r(Q, re)) {
|
|
3197
|
-
var ue =
|
|
3197
|
+
var ue = L(Q, re, U, V, X + "." + re, n);
|
|
3198
3198
|
if (ue instanceof Error)
|
|
3199
3199
|
return ue;
|
|
3200
3200
|
}
|
|
@@ -3202,46 +3202,46 @@ function Tv() {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
return E(j);
|
|
3204
3204
|
}
|
|
3205
|
-
function L
|
|
3206
|
-
if (!Array.isArray(
|
|
3205
|
+
function O(L) {
|
|
3206
|
+
if (!Array.isArray(L))
|
|
3207
3207
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
3208
|
-
for (var j = 0; j <
|
|
3209
|
-
var te =
|
|
3208
|
+
for (var j = 0; j < L.length; j++) {
|
|
3209
|
+
var te = L[j];
|
|
3210
3210
|
if (typeof te != "function")
|
|
3211
3211
|
return o(
|
|
3212
3212
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(te) + " at index " + j + "."
|
|
3213
3213
|
), l;
|
|
3214
3214
|
}
|
|
3215
3215
|
function Y(U, V, X, Q, ce) {
|
|
3216
|
-
for (var re = [], ue = 0; ue <
|
|
3217
|
-
var ae =
|
|
3216
|
+
for (var re = [], ue = 0; ue < L.length; ue++) {
|
|
3217
|
+
var ae = L[ue], ee = ae(U, V, X, Q, ce, n);
|
|
3218
3218
|
if (ee == null)
|
|
3219
3219
|
return null;
|
|
3220
3220
|
ee.data && r(ee.data, "expectedType") && re.push(ee.data.expectedType);
|
|
3221
3221
|
}
|
|
3222
3222
|
var Te = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
|
|
3223
|
-
return new
|
|
3223
|
+
return new w("Invalid " + Q + " `" + ce + "` supplied to " + ("`" + X + "`" + Te + "."));
|
|
3224
3224
|
}
|
|
3225
3225
|
return E(Y);
|
|
3226
3226
|
}
|
|
3227
3227
|
function R() {
|
|
3228
|
-
function
|
|
3229
|
-
return H(j[te]) ? null : new
|
|
3228
|
+
function L(j, te, Y, U, V) {
|
|
3229
|
+
return H(j[te]) ? null : new w("Invalid " + U + " `" + V + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
|
|
3230
3230
|
}
|
|
3231
|
-
return E(
|
|
3231
|
+
return E(L);
|
|
3232
3232
|
}
|
|
3233
|
-
function $(
|
|
3234
|
-
return new
|
|
3235
|
-
(
|
|
3233
|
+
function $(L, j, te, Y, U) {
|
|
3234
|
+
return new w(
|
|
3235
|
+
(L || "React class") + ": " + j + " type `" + te + "." + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
3236
3236
|
);
|
|
3237
3237
|
}
|
|
3238
|
-
function G(
|
|
3238
|
+
function G(L) {
|
|
3239
3239
|
function j(te, Y, U, V, X) {
|
|
3240
3240
|
var Q = te[Y], ce = z(Q);
|
|
3241
3241
|
if (ce !== "object")
|
|
3242
|
-
return new
|
|
3243
|
-
for (var re in
|
|
3244
|
-
var ue =
|
|
3242
|
+
return new w("Invalid " + V + " `" + X + "` of type `" + ce + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
3243
|
+
for (var re in L) {
|
|
3244
|
+
var ue = L[re];
|
|
3245
3245
|
if (typeof ue != "function")
|
|
3246
3246
|
return $(U, V, X, re, B(ue));
|
|
3247
3247
|
var ae = ue(Q, re, U, V, X + "." + re, n);
|
|
@@ -3252,20 +3252,20 @@ function Tv() {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
return E(j);
|
|
3254
3254
|
}
|
|
3255
|
-
function M(
|
|
3255
|
+
function M(L) {
|
|
3256
3256
|
function j(te, Y, U, V, X) {
|
|
3257
3257
|
var Q = te[Y], ce = z(Q);
|
|
3258
3258
|
if (ce !== "object")
|
|
3259
|
-
return new
|
|
3260
|
-
var re = t({}, te[Y],
|
|
3259
|
+
return new w("Invalid " + V + " `" + X + "` of type `" + ce + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
3260
|
+
var re = t({}, te[Y], L);
|
|
3261
3261
|
for (var ue in re) {
|
|
3262
|
-
var ae =
|
|
3263
|
-
if (r(
|
|
3262
|
+
var ae = L[ue];
|
|
3263
|
+
if (r(L, ue) && typeof ae != "function")
|
|
3264
3264
|
return $(U, V, X, ue, B(ae));
|
|
3265
3265
|
if (!ae)
|
|
3266
|
-
return new
|
|
3266
|
+
return new w(
|
|
3267
3267
|
"Invalid " + V + " `" + X + "` key `" + ue + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(te[Y], null, " ") + `
|
|
3268
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
3268
|
+
Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
3269
3269
|
);
|
|
3270
3270
|
var ee = ae(Q, ue, U, V, X + "." + ue, n);
|
|
3271
3271
|
if (ee)
|
|
@@ -3275,23 +3275,23 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
3275
3275
|
}
|
|
3276
3276
|
return E(j);
|
|
3277
3277
|
}
|
|
3278
|
-
function H(
|
|
3279
|
-
switch (typeof
|
|
3278
|
+
function H(L) {
|
|
3279
|
+
switch (typeof L) {
|
|
3280
3280
|
case "number":
|
|
3281
3281
|
case "string":
|
|
3282
3282
|
case "undefined":
|
|
3283
3283
|
return !0;
|
|
3284
3284
|
case "boolean":
|
|
3285
|
-
return !
|
|
3285
|
+
return !L;
|
|
3286
3286
|
case "object":
|
|
3287
|
-
if (Array.isArray(
|
|
3288
|
-
return
|
|
3289
|
-
if (
|
|
3287
|
+
if (Array.isArray(L))
|
|
3288
|
+
return L.every(H);
|
|
3289
|
+
if (L === null || c(L))
|
|
3290
3290
|
return !0;
|
|
3291
|
-
var j = u(
|
|
3291
|
+
var j = u(L);
|
|
3292
3292
|
if (j) {
|
|
3293
|
-
var te = j.call(
|
|
3294
|
-
if (j !==
|
|
3293
|
+
var te = j.call(L), Y;
|
|
3294
|
+
if (j !== L.entries) {
|
|
3295
3295
|
for (; !(Y = te.next()).done; )
|
|
3296
3296
|
if (!H(Y.value))
|
|
3297
3297
|
return !1;
|
|
@@ -3308,27 +3308,27 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
3308
3308
|
return !1;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
function W(
|
|
3312
|
-
return
|
|
3311
|
+
function W(L, j) {
|
|
3312
|
+
return L === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1;
|
|
3313
3313
|
}
|
|
3314
|
-
function z(
|
|
3315
|
-
var j = typeof
|
|
3316
|
-
return Array.isArray(
|
|
3314
|
+
function z(L) {
|
|
3315
|
+
var j = typeof L;
|
|
3316
|
+
return Array.isArray(L) ? "array" : L instanceof RegExp ? "object" : W(j, L) ? "symbol" : j;
|
|
3317
3317
|
}
|
|
3318
|
-
function B(
|
|
3319
|
-
if (typeof
|
|
3320
|
-
return "" +
|
|
3321
|
-
var j = z(
|
|
3318
|
+
function B(L) {
|
|
3319
|
+
if (typeof L > "u" || L === null)
|
|
3320
|
+
return "" + L;
|
|
3321
|
+
var j = z(L);
|
|
3322
3322
|
if (j === "object") {
|
|
3323
|
-
if (
|
|
3323
|
+
if (L instanceof Date)
|
|
3324
3324
|
return "date";
|
|
3325
|
-
if (
|
|
3325
|
+
if (L instanceof RegExp)
|
|
3326
3326
|
return "regexp";
|
|
3327
3327
|
}
|
|
3328
3328
|
return j;
|
|
3329
3329
|
}
|
|
3330
|
-
function oe(
|
|
3331
|
-
var j = B(
|
|
3330
|
+
function oe(L) {
|
|
3331
|
+
var j = B(L);
|
|
3332
3332
|
switch (j) {
|
|
3333
3333
|
case "array":
|
|
3334
3334
|
case "object":
|
|
@@ -3341,8 +3341,8 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
3341
3341
|
return j;
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
function ie(
|
|
3345
|
-
return !
|
|
3344
|
+
function ie(L) {
|
|
3345
|
+
return !L.constructor || !L.constructor.name ? h : L.constructor.name;
|
|
3346
3346
|
}
|
|
3347
3347
|
return g.checkPropTypes = a, g.resetWarningCache = a.resetWarningCache, g.PropTypes = g, g;
|
|
3348
3348
|
}, Xa;
|
|
@@ -3594,10 +3594,10 @@ function Bv() {
|
|
|
3594
3594
|
if (pc)
|
|
3595
3595
|
return Ve;
|
|
3596
3596
|
pc = 1;
|
|
3597
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117,
|
|
3597
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117, w = 60129, E = 60131;
|
|
3598
3598
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3599
3599
|
var T = Symbol.for;
|
|
3600
|
-
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"),
|
|
3600
|
+
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), w = T("react.debug_trace_mode"), E = T("react.legacy_hidden");
|
|
3601
3601
|
}
|
|
3602
3602
|
function N(M) {
|
|
3603
3603
|
if (typeof M == "object" && M !== null) {
|
|
@@ -3628,8 +3628,8 @@ function Bv() {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
3630
|
}
|
|
3631
|
-
var x = o, I = e, k = c, A = n, _ = u,
|
|
3632
|
-
return Ve.ContextConsumer = l, Ve.ContextProvider = x, Ve.Element = I, Ve.ForwardRef = k, Ve.Fragment = A, Ve.Lazy = _, Ve.Memo =
|
|
3631
|
+
var x = o, I = e, k = c, A = n, _ = u, C = m, O = t, R = a, $ = r, G = p;
|
|
3632
|
+
return Ve.ContextConsumer = l, Ve.ContextProvider = x, Ve.Element = I, Ve.ForwardRef = k, Ve.Fragment = A, Ve.Lazy = _, Ve.Memo = C, Ve.Portal = O, Ve.Profiler = R, Ve.StrictMode = $, Ve.Suspense = G, Ve.isAsyncMode = function() {
|
|
3633
3633
|
return !1;
|
|
3634
3634
|
}, Ve.isConcurrentMode = function() {
|
|
3635
3635
|
return !1;
|
|
@@ -3656,7 +3656,7 @@ function Bv() {
|
|
|
3656
3656
|
}, Ve.isSuspense = function(M) {
|
|
3657
3657
|
return N(M) === p;
|
|
3658
3658
|
}, Ve.isValidElementType = function(M) {
|
|
3659
|
-
return typeof M == "string" || typeof M == "function" || M === n || M === a || M ===
|
|
3659
|
+
return typeof M == "string" || typeof M == "function" || M === n || M === a || M === w || M === r || M === p || M === f || M === E || typeof M == "object" && M !== null && (M.$$typeof === u || M.$$typeof === m || M.$$typeof === o || M.$$typeof === l || M.$$typeof === c || M.$$typeof === v || M.$$typeof === h || M[0] === g);
|
|
3660
3660
|
}, Ve.typeOf = N, Ve;
|
|
3661
3661
|
}
|
|
3662
3662
|
var $e = {};
|
|
@@ -3671,14 +3671,14 @@ var $e = {};
|
|
|
3671
3671
|
var uc;
|
|
3672
3672
|
function Fv() {
|
|
3673
3673
|
return uc || (uc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3674
|
-
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117,
|
|
3674
|
+
var e = 60103, t = 60106, n = 60107, r = 60108, a = 60114, o = 60109, l = 60110, c = 60112, p = 60113, f = 60120, m = 60115, u = 60116, h = 60121, g = 60122, v = 60117, w = 60129, E = 60131;
|
|
3675
3675
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3676
3676
|
var T = Symbol.for;
|
|
3677
|
-
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), T("react.scope"), T("react.opaque.id"),
|
|
3677
|
+
e = T("react.element"), t = T("react.portal"), n = T("react.fragment"), r = T("react.strict_mode"), a = T("react.profiler"), o = T("react.provider"), l = T("react.context"), c = T("react.forward_ref"), p = T("react.suspense"), f = T("react.suspense_list"), m = T("react.memo"), u = T("react.lazy"), h = T("react.block"), g = T("react.server.block"), v = T("react.fundamental"), T("react.scope"), T("react.opaque.id"), w = T("react.debug_trace_mode"), T("react.offscreen"), E = T("react.legacy_hidden");
|
|
3678
3678
|
}
|
|
3679
3679
|
var N = !1;
|
|
3680
3680
|
function x(ae) {
|
|
3681
|
-
return !!(typeof ae == "string" || typeof ae == "function" || ae === n || ae === a || ae ===
|
|
3681
|
+
return !!(typeof ae == "string" || typeof ae == "function" || ae === n || ae === a || ae === w || ae === r || ae === p || ae === f || ae === E || N || typeof ae == "object" && ae !== null && (ae.$$typeof === u || ae.$$typeof === m || ae.$$typeof === o || ae.$$typeof === l || ae.$$typeof === c || ae.$$typeof === v || ae.$$typeof === h || ae[0] === g));
|
|
3682
3682
|
}
|
|
3683
3683
|
function I(ae) {
|
|
3684
3684
|
if (typeof ae == "object" && ae !== null) {
|
|
@@ -3711,14 +3711,14 @@ function Fv() {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
3713
|
}
|
|
3714
|
-
var k = l, A = o, _ = e,
|
|
3714
|
+
var k = l, A = o, _ = e, C = c, O = n, R = u, $ = m, G = t, M = a, H = r, W = p, z = !1, B = !1;
|
|
3715
3715
|
function oe(ae) {
|
|
3716
3716
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3717
3717
|
}
|
|
3718
3718
|
function ie(ae) {
|
|
3719
3719
|
return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3720
3720
|
}
|
|
3721
|
-
function
|
|
3721
|
+
function L(ae) {
|
|
3722
3722
|
return I(ae) === l;
|
|
3723
3723
|
}
|
|
3724
3724
|
function j(ae) {
|
|
@@ -3751,7 +3751,7 @@ function Fv() {
|
|
|
3751
3751
|
function ue(ae) {
|
|
3752
3752
|
return I(ae) === p;
|
|
3753
3753
|
}
|
|
3754
|
-
$e.ContextConsumer = k, $e.ContextProvider = A, $e.Element = _, $e.ForwardRef =
|
|
3754
|
+
$e.ContextConsumer = k, $e.ContextProvider = A, $e.Element = _, $e.ForwardRef = C, $e.Fragment = O, $e.Lazy = R, $e.Memo = $, $e.Portal = G, $e.Profiler = M, $e.StrictMode = H, $e.Suspense = W, $e.isAsyncMode = oe, $e.isConcurrentMode = ie, $e.isContextConsumer = L, $e.isContextProvider = j, $e.isElement = te, $e.isForwardRef = Y, $e.isFragment = U, $e.isLazy = V, $e.isMemo = X, $e.isPortal = Q, $e.isProfiler = ce, $e.isStrictMode = re, $e.isSuspense = ue, $e.isValidElementType = x, $e.typeOf = I;
|
|
3755
3755
|
}()), $e;
|
|
3756
3756
|
}
|
|
3757
3757
|
(function(e) {
|
|
@@ -3780,9 +3780,9 @@ function Uv(e, t, n, r, a, o, l, c, p, f) {
|
|
|
3780
3780
|
if (!!e) {
|
|
3781
3781
|
var m = !1, u = null, h = function() {
|
|
3782
3782
|
if (!m) {
|
|
3783
|
-
var
|
|
3783
|
+
var w = t.getState(), E, T;
|
|
3784
3784
|
try {
|
|
3785
|
-
E = r(
|
|
3785
|
+
E = r(w, a.current);
|
|
3786
3786
|
} catch (N) {
|
|
3787
3787
|
T = N, u = N;
|
|
3788
3788
|
}
|
|
@@ -3809,7 +3809,7 @@ function zv(e, t) {
|
|
|
3809
3809
|
t === void 0 && (t = {});
|
|
3810
3810
|
var n = t, r = n.getDisplayName, a = r === void 0 ? function(A) {
|
|
3811
3811
|
return "ConnectAdvanced(" + A + ")";
|
|
3812
|
-
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, f = n.shouldHandleStateChanges, m = f === void 0 ? !0 : f, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g,
|
|
3812
|
+
} : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, f = n.shouldHandleStateChanges, m = f === void 0 ? !0 : f, u = n.storeKey, h = u === void 0 ? "store" : u, g = n.withRef, v = g === void 0 ? !1 : g, w = n.forwardRef, E = w === void 0 ? !1 : w, T = n.context, N = T === void 0 ? Qo : T, x = Zs(n, Vv);
|
|
3813
3813
|
if (process.env.NODE_ENV !== "production") {
|
|
3814
3814
|
if (p !== void 0)
|
|
3815
3815
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -3823,14 +3823,14 @@ function zv(e, t) {
|
|
|
3823
3823
|
return function(_) {
|
|
3824
3824
|
if (process.env.NODE_ENV !== "production" && !Lo.exports.isValidElementType(_))
|
|
3825
3825
|
throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + Wv(_)));
|
|
3826
|
-
var
|
|
3826
|
+
var C = _.displayName || _.name || "Component", O = a(C), R = ge({}, x, {
|
|
3827
3827
|
getDisplayName: a,
|
|
3828
3828
|
methodName: l,
|
|
3829
3829
|
renderCountProp: p,
|
|
3830
3830
|
shouldHandleStateChanges: m,
|
|
3831
3831
|
storeKey: h,
|
|
3832
|
-
displayName:
|
|
3833
|
-
wrappedComponentName:
|
|
3832
|
+
displayName: O,
|
|
3833
|
+
wrappedComponentName: C,
|
|
3834
3834
|
WrappedComponent: _
|
|
3835
3835
|
}), $ = x.pure;
|
|
3836
3836
|
function G(B) {
|
|
@@ -3843,11 +3843,11 @@ function zv(e, t) {
|
|
|
3843
3843
|
var oe = nt(function() {
|
|
3844
3844
|
var Be = B.reactReduxForwardedRef, ut = Zs(B, $v);
|
|
3845
3845
|
return [B.context, Be, ut];
|
|
3846
|
-
}, [B]), ie = oe[0],
|
|
3846
|
+
}, [B]), ie = oe[0], L = oe[1], j = oe[2], te = nt(function() {
|
|
3847
3847
|
return ie && ie.Consumer && Lo.exports.isContextConsumer(/* @__PURE__ */ J.createElement(ie.Consumer, null)) ? ie : k;
|
|
3848
3848
|
}, [ie, k]), Y = en(te), U = Boolean(B.store) && Boolean(B.store.getState) && Boolean(B.store.dispatch), V = Boolean(Y) && Boolean(Y.store);
|
|
3849
3849
|
if (process.env.NODE_ENV !== "production" && !U && !V)
|
|
3850
|
-
throw new Error('Could not find "store" in the context of ' + ('"' +
|
|
3850
|
+
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."));
|
|
3851
3851
|
var X = U ? B.store : Y.store, Q = nt(function() {
|
|
3852
3852
|
return G(X);
|
|
3853
3853
|
}, [X]), ce = nt(function() {
|
|
@@ -3868,9 +3868,9 @@ function zv(e, t) {
|
|
|
3868
3868
|
mc(Yv, [ct, wt, Pe, j, st, ve, ue]), mc(Uv, [m, X, re, Q, ct, wt, Pe, ve, ue, Qe], [X, re, Q]);
|
|
3869
3869
|
var me = nt(function() {
|
|
3870
3870
|
return /* @__PURE__ */ J.createElement(_, ge({}, st, {
|
|
3871
|
-
ref:
|
|
3871
|
+
ref: L
|
|
3872
3872
|
}));
|
|
3873
|
-
}, [
|
|
3873
|
+
}, [L, _, st]), Ke = nt(function() {
|
|
3874
3874
|
return m ? /* @__PURE__ */ J.createElement(te.Provider, {
|
|
3875
3875
|
value: ae
|
|
3876
3876
|
}, me) : me;
|
|
@@ -3878,13 +3878,13 @@ function zv(e, t) {
|
|
|
3878
3878
|
return Ke;
|
|
3879
3879
|
}
|
|
3880
3880
|
var W = $ ? J.memo(H) : H;
|
|
3881
|
-
if (W.WrappedComponent = _, W.displayName = H.displayName =
|
|
3881
|
+
if (W.WrappedComponent = _, W.displayName = H.displayName = O, E) {
|
|
3882
3882
|
var z = J.forwardRef(function(oe, ie) {
|
|
3883
3883
|
return /* @__PURE__ */ J.createElement(W, ge({}, oe, {
|
|
3884
3884
|
reactReduxForwardedRef: ie
|
|
3885
3885
|
}));
|
|
3886
3886
|
});
|
|
3887
|
-
return z.displayName =
|
|
3887
|
+
return z.displayName = O, z.WrappedComponent = _, dc(z, _);
|
|
3888
3888
|
}
|
|
3889
3889
|
return dc(W, _);
|
|
3890
3890
|
};
|
|
@@ -4026,7 +4026,7 @@ function uy(e, t, n, r, a) {
|
|
|
4026
4026
|
function v(x, I) {
|
|
4027
4027
|
return f = x, m = I, u = e(f, m), h = t(r, m), g = n(u, h, m), p = !0, g;
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4029
|
+
function w() {
|
|
4030
4030
|
return u = e(f, m), t.dependsOnOwnProps && (h = t(r, m)), g = n(u, h, m), g;
|
|
4031
4031
|
}
|
|
4032
4032
|
function E() {
|
|
@@ -4038,7 +4038,7 @@ function uy(e, t, n, r, a) {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
function N(x, I) {
|
|
4040
4040
|
var k = !l(I, m), A = !o(x, f, I, m);
|
|
4041
|
-
return f = x, m = I, k && A ?
|
|
4041
|
+
return f = x, m = I, k && A ? w() : k ? E() : A ? T() : g;
|
|
4042
4042
|
}
|
|
4043
4043
|
return function(I, k) {
|
|
4044
4044
|
return p ? N(I, k) : v(I, k);
|
|
@@ -4066,9 +4066,9 @@ function hy(e, t) {
|
|
|
4066
4066
|
}
|
|
4067
4067
|
function Sy(e) {
|
|
4068
4068
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? zv : n, a = t.mapStateToPropsFactories, o = a === void 0 ? ry : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? ey : l, p = t.mergePropsFactories, f = p === void 0 ? ly : p, m = t.selectorFactory, u = m === void 0 ? my : m;
|
|
4069
|
-
return function(g, v,
|
|
4069
|
+
return function(g, v, w, E) {
|
|
4070
4070
|
E === void 0 && (E = {});
|
|
4071
|
-
var T = E, N = T.pure, x = N === void 0 ? !0 : N, I = T.areStatesEqual, k = I === void 0 ? hy : I, A = T.areOwnPropsEqual, _ = A === void 0 ? eo : A,
|
|
4071
|
+
var T = E, N = T.pure, x = N === void 0 ? !0 : N, I = T.areStatesEqual, k = I === void 0 ? hy : I, A = T.areOwnPropsEqual, _ = A === void 0 ? eo : A, C = T.areStatePropsEqual, O = C === void 0 ? eo : C, R = T.areMergedPropsEqual, $ = R === void 0 ? eo : R, G = Zs(T, fy), M = no(g, o, "mapStateToProps"), H = no(v, c, "mapDispatchToProps"), W = no(w, f, "mergeProps");
|
|
4072
4072
|
return r(u, ge({
|
|
4073
4073
|
methodName: "connect",
|
|
4074
4074
|
getDisplayName: function(B) {
|
|
@@ -4081,7 +4081,7 @@ function Sy(e) {
|
|
|
4081
4081
|
pure: x,
|
|
4082
4082
|
areStatesEqual: k,
|
|
4083
4083
|
areOwnPropsEqual: _,
|
|
4084
|
-
areStatePropsEqual:
|
|
4084
|
+
areStatePropsEqual: O,
|
|
4085
4085
|
areMergedPropsEqual: $
|
|
4086
4086
|
}, G));
|
|
4087
4087
|
};
|
|
@@ -4583,11 +4583,11 @@ var ha = it(function(e, t) {
|
|
|
4583
4583
|
var l = ii(o);
|
|
4584
4584
|
if (!l)
|
|
4585
4585
|
return null;
|
|
4586
|
-
function c(
|
|
4586
|
+
function c(w) {
|
|
4587
4587
|
var E = {
|
|
4588
4588
|
type: "COMBINE",
|
|
4589
4589
|
combine: {
|
|
4590
|
-
draggableId:
|
|
4590
|
+
draggableId: w,
|
|
4591
4591
|
droppableId: r.descriptor.id
|
|
4592
4592
|
}
|
|
4593
4593
|
};
|
|
@@ -4605,8 +4605,8 @@ var ha = it(function(e, t) {
|
|
|
4605
4605
|
var u = m[m.length - 1];
|
|
4606
4606
|
return c(u.descriptor.id);
|
|
4607
4607
|
}
|
|
4608
|
-
var h = oi(m, function(
|
|
4609
|
-
return
|
|
4608
|
+
var h = oi(m, function(w) {
|
|
4609
|
+
return w.descriptor.id === f;
|
|
4610
4610
|
});
|
|
4611
4611
|
h === -1 && (process.env.NODE_ENV !== "production" ? F(!1, "Could not find displaced item in set") : F(!1));
|
|
4612
4612
|
var g = h - 1;
|
|
@@ -4776,8 +4776,8 @@ function na(e) {
|
|
|
4776
4776
|
displacedBy: o,
|
|
4777
4777
|
destination: r
|
|
4778
4778
|
});
|
|
4779
|
-
var m = Rn(n, function(
|
|
4780
|
-
return
|
|
4779
|
+
var m = Rn(n, function(w) {
|
|
4780
|
+
return w.descriptor.index === c;
|
|
4781
4781
|
});
|
|
4782
4782
|
if (!m)
|
|
4783
4783
|
return Cc({
|
|
@@ -4913,10 +4913,10 @@ var rE = function(e) {
|
|
|
4913
4913
|
if (v.descriptor.id === n.descriptor.id)
|
|
4914
4914
|
return c.borderBox.center;
|
|
4915
4915
|
if (_n(v.descriptor.id, o)) {
|
|
4916
|
-
var
|
|
4916
|
+
var w = Xs(v.page, Mr(o.displacedBy.point));
|
|
4917
4917
|
return Dc({
|
|
4918
4918
|
axis: p,
|
|
4919
|
-
moveRelativeTo:
|
|
4919
|
+
moveRelativeTo: w,
|
|
4920
4920
|
isMoving: c
|
|
4921
4921
|
});
|
|
4922
4922
|
}
|
|
@@ -4993,13 +4993,13 @@ var mE = function(e) {
|
|
|
4993
4993
|
last: p,
|
|
4994
4994
|
forceShouldAnimate: !1
|
|
4995
4995
|
}), u = {}, h = {}, g = [p, f, m];
|
|
4996
|
-
p.all.forEach(function(
|
|
4997
|
-
var E = uE(
|
|
4996
|
+
p.all.forEach(function(w) {
|
|
4997
|
+
var E = uE(w, g);
|
|
4998
4998
|
if (E) {
|
|
4999
|
-
h[
|
|
4999
|
+
h[w] = E;
|
|
5000
5000
|
return;
|
|
5001
5001
|
}
|
|
5002
|
-
u[
|
|
5002
|
+
u[w] = !0;
|
|
5003
5003
|
});
|
|
5004
5004
|
var v = ge({}, t, {
|
|
5005
5005
|
displaced: {
|
|
@@ -5060,13 +5060,13 @@ var mE = function(e) {
|
|
|
5060
5060
|
onlyOnMainAxis: !0
|
|
5061
5061
|
});
|
|
5062
5062
|
if (v) {
|
|
5063
|
-
var
|
|
5063
|
+
var w = pi({
|
|
5064
5064
|
pageBorderBoxCenter: g,
|
|
5065
5065
|
draggable: n,
|
|
5066
5066
|
viewport: l
|
|
5067
5067
|
});
|
|
5068
5068
|
return {
|
|
5069
|
-
clientSelection:
|
|
5069
|
+
clientSelection: w,
|
|
5070
5070
|
impact: h,
|
|
5071
5071
|
scrollJumpRequest: null
|
|
5072
5072
|
};
|
|
@@ -5253,13 +5253,13 @@ var mE = function(e) {
|
|
|
5253
5253
|
var g = Boolean(t[l.axis.line] <= n.page.borderBox.center[l.axis.line]), v = function() {
|
|
5254
5254
|
var E = n.descriptor.index;
|
|
5255
5255
|
return n.descriptor.id === a.descriptor.id || g ? E : E + 1;
|
|
5256
|
-
}(),
|
|
5256
|
+
}(), w = ms(l.axis, a.displaceBy);
|
|
5257
5257
|
return na({
|
|
5258
5258
|
draggable: a,
|
|
5259
5259
|
insideDestination: r,
|
|
5260
5260
|
destination: l,
|
|
5261
5261
|
viewport: c,
|
|
5262
|
-
displacedBy:
|
|
5262
|
+
displacedBy: w,
|
|
5263
5263
|
last: rs,
|
|
5264
5264
|
index: v
|
|
5265
5265
|
});
|
|
@@ -5402,7 +5402,7 @@ var ME = function(e) {
|
|
|
5402
5402
|
id: T
|
|
5403
5403
|
});
|
|
5404
5404
|
return x ? I ? h <= N : u < N - m : I ? h <= N + m : u < N;
|
|
5405
|
-
}),
|
|
5405
|
+
}), w = IE({
|
|
5406
5406
|
draggable: n,
|
|
5407
5407
|
closest: v,
|
|
5408
5408
|
inHomeList: _r(n, r)
|
|
@@ -5414,14 +5414,14 @@ var ME = function(e) {
|
|
|
5414
5414
|
viewport: l,
|
|
5415
5415
|
last: o,
|
|
5416
5416
|
displacedBy: f,
|
|
5417
|
-
index:
|
|
5417
|
+
index: w
|
|
5418
5418
|
});
|
|
5419
5419
|
}, _E = 4, OE = function(e) {
|
|
5420
5420
|
var t = e.draggable, n = e.pageBorderBoxWithDroppableScroll, r = e.previousImpact, a = e.destination, o = e.insideDestination, l = e.afterCritical;
|
|
5421
5421
|
if (!a.isCombineEnabled)
|
|
5422
5422
|
return null;
|
|
5423
|
-
var c = a.axis, p = ms(a.axis, t.displaceBy), f = p.value, m = n[c.start], u = n[c.end], h = ha(t, o), g = Rn(h, function(
|
|
5424
|
-
var E =
|
|
5423
|
+
var c = a.axis, p = ms(a.axis, t.displaceBy), f = p.value, m = n[c.start], u = n[c.end], h = ha(t, o), g = Rn(h, function(w) {
|
|
5424
|
+
var E = w.descriptor.id, T = w.page.borderBox, N = T[c.size], x = N / _E, I = _n(E, l), k = Cp({
|
|
5425
5425
|
displaced: r.displaced,
|
|
5426
5426
|
id: E
|
|
5427
5427
|
});
|
|
@@ -5512,7 +5512,7 @@ var ME = function(e) {
|
|
|
5512
5512
|
viewport: c,
|
|
5513
5513
|
current: g
|
|
5514
5514
|
});
|
|
5515
|
-
var v = p.draggables[t.critical.draggable.id],
|
|
5515
|
+
var v = p.draggables[t.critical.draggable.id], w = o || Dp({
|
|
5516
5516
|
pageOffset: h.offset,
|
|
5517
5517
|
draggable: v,
|
|
5518
5518
|
draggables: p.draggables,
|
|
@@ -5522,7 +5522,7 @@ var ME = function(e) {
|
|
|
5522
5522
|
afterCritical: t.afterCritical
|
|
5523
5523
|
}), E = RE({
|
|
5524
5524
|
draggable: v,
|
|
5525
|
-
impact:
|
|
5525
|
+
impact: w,
|
|
5526
5526
|
previousImpact: t.impact,
|
|
5527
5527
|
draggables: p.draggables,
|
|
5528
5528
|
droppables: p.droppables
|
|
@@ -5532,7 +5532,7 @@ var ME = function(e) {
|
|
|
5532
5532
|
draggables: p.draggables,
|
|
5533
5533
|
droppables: E
|
|
5534
5534
|
},
|
|
5535
|
-
impact:
|
|
5535
|
+
impact: w,
|
|
5536
5536
|
viewport: c,
|
|
5537
5537
|
scrollJumpRequest: l || null,
|
|
5538
5538
|
forceShouldAnimate: l ? !1 : null
|
|
@@ -5680,12 +5680,12 @@ var Np = function(e) {
|
|
|
5680
5680
|
home: u,
|
|
5681
5681
|
draggables: l,
|
|
5682
5682
|
viewport: t.viewport
|
|
5683
|
-
}), g = h.impact, v = h.afterCritical,
|
|
5683
|
+
}), g = h.impact, v = h.afterCritical, w = f && f.isCombineEnabled ? t.impact : g, E = Dp({
|
|
5684
5684
|
pageOffset: t.current.page.offset,
|
|
5685
5685
|
draggable: c.draggables[t.critical.draggable.id],
|
|
5686
5686
|
draggables: c.draggables,
|
|
5687
5687
|
droppables: c.droppables,
|
|
5688
|
-
previousImpact:
|
|
5688
|
+
previousImpact: w,
|
|
5689
5689
|
viewport: t.viewport,
|
|
5690
5690
|
afterCritical: v
|
|
5691
5691
|
});
|
|
@@ -5758,7 +5758,7 @@ var Ic = {
|
|
|
5758
5758
|
home: f,
|
|
5759
5759
|
draggables: l.draggables,
|
|
5760
5760
|
viewport: o
|
|
5761
|
-
}), v = g.impact,
|
|
5761
|
+
}), v = g.impact, w = g.afterCritical, E = {
|
|
5762
5762
|
phase: "DRAGGING",
|
|
5763
5763
|
isDragging: !0,
|
|
5764
5764
|
critical: r,
|
|
@@ -5768,7 +5768,7 @@ var Ic = {
|
|
|
5768
5768
|
current: u,
|
|
5769
5769
|
isWindowScrollAllowed: h,
|
|
5770
5770
|
impact: v,
|
|
5771
|
-
afterCritical:
|
|
5771
|
+
afterCritical: w,
|
|
5772
5772
|
onLiftImpact: v,
|
|
5773
5773
|
viewport: o,
|
|
5774
5774
|
scrollJumpRequest: null,
|
|
@@ -5817,8 +5817,8 @@ var Ic = {
|
|
|
5817
5817
|
if (e.phase === "DROP_PENDING")
|
|
5818
5818
|
return e;
|
|
5819
5819
|
jn(e) || (process.env.NODE_ENV !== "production" ? F(!1, "Attempting to move in an unsupported phase " + e.phase) : F(!1));
|
|
5820
|
-
var
|
|
5821
|
-
$ || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot find Droppable[id: " +
|
|
5820
|
+
var C = t.payload, O = C.id, R = C.isEnabled, $ = e.dimensions.droppables[O];
|
|
5821
|
+
$ || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot find Droppable[id: " + O + "] to toggle its enabled state") : F(!1)), $.isEnabled === R && (process.env.NODE_ENV !== "production" ? F(!1, "Trying to set droppable isEnabled to " + String(R) + `
|
|
5822
5822
|
but it is already ` + String($.isEnabled)) : F(!1));
|
|
5823
5823
|
var G = ge({}, $, {
|
|
5824
5824
|
isEnabled: R
|
|
@@ -5856,12 +5856,12 @@ var Ic = {
|
|
|
5856
5856
|
if (t.type === "UPDATE_VIEWPORT_MAX_SCROLL") {
|
|
5857
5857
|
if (!jn(e))
|
|
5858
5858
|
return e;
|
|
5859
|
-
var
|
|
5860
|
-
if (In(
|
|
5859
|
+
var L = t.payload.maxScroll;
|
|
5860
|
+
if (In(L, e.viewport.scroll.max))
|
|
5861
5861
|
return e;
|
|
5862
5862
|
var j = ge({}, e.viewport, {
|
|
5863
5863
|
scroll: ge({}, e.viewport.scroll, {
|
|
5864
|
-
max:
|
|
5864
|
+
max: L
|
|
5865
5865
|
})
|
|
5866
5866
|
});
|
|
5867
5867
|
return ge({
|
|
@@ -6074,10 +6074,10 @@ var iT = function(e) {
|
|
|
6074
6074
|
}, h = {
|
|
6075
6075
|
draggableId: c,
|
|
6076
6076
|
scrollOptions: u
|
|
6077
|
-
}, g = e.startPublishing(h), v = g.critical,
|
|
6078
|
-
oT(v,
|
|
6077
|
+
}, g = e.startPublishing(h), v = g.critical, w = g.dimensions, E = g.viewport;
|
|
6078
|
+
oT(v, w), r(YE({
|
|
6079
6079
|
critical: v,
|
|
6080
|
-
dimensions:
|
|
6080
|
+
dimensions: w,
|
|
6081
6081
|
clientSelection: p,
|
|
6082
6082
|
movementMode: f,
|
|
6083
6083
|
viewport: E
|
|
@@ -6196,7 +6196,7 @@ var iT = function(e) {
|
|
|
6196
6196
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
6197
6197
|
viewport: o.viewport,
|
|
6198
6198
|
draggables: o.dimensions.draggables
|
|
6199
|
-
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? ii(h) : null,
|
|
6199
|
+
}), h = u.impact, g = u.didDropInsideDroppable, v = g ? ii(h) : null, w = g ? fa(h) : null, E = {
|
|
6200
6200
|
index: p.draggable.index,
|
|
6201
6201
|
droppableId: p.droppable.id
|
|
6202
6202
|
}, T = {
|
|
@@ -6206,7 +6206,7 @@ var iT = function(e) {
|
|
|
6206
6206
|
reason: l,
|
|
6207
6207
|
mode: o.movementMode,
|
|
6208
6208
|
destination: v,
|
|
6209
|
-
combine:
|
|
6209
|
+
combine: w
|
|
6210
6210
|
}, N = uT({
|
|
6211
6211
|
impact: h,
|
|
6212
6212
|
draggable: m,
|
|
@@ -6375,11 +6375,11 @@ var gT = function(t) {
|
|
|
6375
6375
|
r && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : F(!1)), Wr("onBeforeCapture", function() {
|
|
6376
6376
|
var v = e().onBeforeCapture;
|
|
6377
6377
|
if (v) {
|
|
6378
|
-
var
|
|
6378
|
+
var w = {
|
|
6379
6379
|
draggableId: h,
|
|
6380
6380
|
mode: g
|
|
6381
6381
|
};
|
|
6382
|
-
v(
|
|
6382
|
+
v(w);
|
|
6383
6383
|
}
|
|
6384
6384
|
});
|
|
6385
6385
|
}, o = function(h, g) {
|
|
@@ -6401,16 +6401,16 @@ var gT = function(t) {
|
|
|
6401
6401
|
});
|
|
6402
6402
|
});
|
|
6403
6403
|
}, c = function(h, g) {
|
|
6404
|
-
var v = ii(g),
|
|
6404
|
+
var v = ii(g), w = fa(g);
|
|
6405
6405
|
r || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot fire onDragMove when onDragStart has not been called") : F(!1));
|
|
6406
6406
|
var E = !wT(h, r.lastCritical);
|
|
6407
6407
|
E && (r.lastCritical = h);
|
|
6408
6408
|
var T = !ET(r.lastLocation, v);
|
|
6409
6409
|
T && (r.lastLocation = v);
|
|
6410
|
-
var N = !TT(r.lastCombine,
|
|
6411
|
-
if (N && (r.lastCombine =
|
|
6410
|
+
var N = !TT(r.lastCombine, w);
|
|
6411
|
+
if (N && (r.lastCombine = w), !(!E && !T && !N)) {
|
|
6412
6412
|
var x = ge({}, Bs(h, r.mode), {
|
|
6413
|
-
combine:
|
|
6413
|
+
combine: w,
|
|
6414
6414
|
destination: v
|
|
6415
6415
|
});
|
|
6416
6416
|
n.add(function() {
|
|
@@ -6593,7 +6593,7 @@ function AT(e) {
|
|
|
6593
6593
|
return t.draggable.getById(T).getDimension(lt);
|
|
6594
6594
|
}).sort(function(T, N) {
|
|
6595
6595
|
return T.descriptor.index - N.descriptor.index;
|
|
6596
|
-
}),
|
|
6596
|
+
}), w = Object.keys(g).map(function(T) {
|
|
6597
6597
|
var N = t.droppable.getById(T), x = N.callbacks.getScrollWhileDragging();
|
|
6598
6598
|
return {
|
|
6599
6599
|
droppableId: T,
|
|
@@ -6602,7 +6602,7 @@ function AT(e) {
|
|
|
6602
6602
|
}), E = {
|
|
6603
6603
|
additions: v,
|
|
6604
6604
|
removals: Object.keys(h),
|
|
6605
|
-
modified:
|
|
6605
|
+
modified: w
|
|
6606
6606
|
};
|
|
6607
6607
|
r = lo(), hs(), n.publish(E);
|
|
6608
6608
|
}));
|
|
@@ -6731,9 +6731,9 @@ var FT = function(e, t) {
|
|
|
6731
6731
|
g.type === "ADDITION" && Oc(e, v, g.value) && r.add(g.value), g.type === "REMOVAL" && Oc(e, v, g.value) && r.remove(g.value);
|
|
6732
6732
|
}, m = function(g) {
|
|
6733
6733
|
n && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot start capturing critical dimensions as there is already a collection") : F(!1));
|
|
6734
|
-
var v = e.draggable.getById(g.draggableId),
|
|
6734
|
+
var v = e.draggable.getById(g.draggableId), w = e.droppable.getById(v.descriptor.droppableId), E = {
|
|
6735
6735
|
draggable: v.descriptor,
|
|
6736
|
-
droppable:
|
|
6736
|
+
droppable: w.descriptor
|
|
6737
6737
|
}, T = e.subscribe(f);
|
|
6738
6738
|
return n = {
|
|
6739
6739
|
critical: E,
|
|
@@ -7187,9 +7187,9 @@ function ow(e, t) {
|
|
|
7187
7187
|
!r.current && !a.current || (process.env.NODE_ENV !== "production" ? F(!1, "style elements already mounted") : F(!1));
|
|
7188
7188
|
var u = Vc(t), h = Vc(t);
|
|
7189
7189
|
return r.current = u, a.current = h, u.setAttribute(Nr + "-always", e), h.setAttribute(Nr + "-dynamic", e), co().appendChild(u), co().appendChild(h), l(n.always), o(n.resting), function() {
|
|
7190
|
-
var g = function(
|
|
7191
|
-
var E =
|
|
7192
|
-
E || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot unmount ref as it is not set") : F(!1)), co().removeChild(E),
|
|
7190
|
+
var g = function(w) {
|
|
7191
|
+
var E = w.current;
|
|
7192
|
+
E || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot unmount ref as it is not set") : F(!1)), co().removeChild(E), w.current = null;
|
|
7193
7193
|
};
|
|
7194
7194
|
g(r), g(a);
|
|
7195
7195
|
};
|
|
@@ -7958,15 +7958,15 @@ function Uw(e) {
|
|
|
7958
7958
|
if (!g.defaultPrevented) {
|
|
7959
7959
|
var v = e.findClosestDraggableId(g);
|
|
7960
7960
|
if (!!v) {
|
|
7961
|
-
var
|
|
7961
|
+
var w = e.tryGetLock(v, c, {
|
|
7962
7962
|
sourceEvent: g
|
|
7963
7963
|
});
|
|
7964
|
-
if (!!
|
|
7964
|
+
if (!!w) {
|
|
7965
7965
|
var E = g.touches[0], T = E.clientX, N = E.clientY, x = {
|
|
7966
7966
|
x: T,
|
|
7967
7967
|
y: N
|
|
7968
7968
|
};
|
|
7969
|
-
n.current(), u(
|
|
7969
|
+
n.current(), u(w, x);
|
|
7970
7970
|
}
|
|
7971
7971
|
}
|
|
7972
7972
|
}
|
|
@@ -7994,9 +7994,9 @@ function Uw(e) {
|
|
|
7994
7994
|
cancel: p,
|
|
7995
7995
|
completed: c,
|
|
7996
7996
|
getPhase: r
|
|
7997
|
-
},
|
|
7997
|
+
}, w = At(window, Yw(v), g), E = At(window, Gw(v), g);
|
|
7998
7998
|
n.current = function() {
|
|
7999
|
-
|
|
7999
|
+
w(), E();
|
|
8000
8000
|
};
|
|
8001
8001
|
}, [p, r, c]), m = he(function() {
|
|
8002
8002
|
var g = r();
|
|
@@ -8009,12 +8009,12 @@ function Uw(e) {
|
|
|
8009
8009
|
});
|
|
8010
8010
|
}, [r, a]), u = he(function(g, v) {
|
|
8011
8011
|
r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? F(!1, "Expected to move from IDLE to PENDING drag") : F(!1));
|
|
8012
|
-
var
|
|
8012
|
+
var w = setTimeout(m, Hw);
|
|
8013
8013
|
a({
|
|
8014
8014
|
type: "PENDING",
|
|
8015
8015
|
point: v,
|
|
8016
8016
|
actions: g,
|
|
8017
|
-
longPressTimerId:
|
|
8017
|
+
longPressTimerId: w
|
|
8018
8018
|
}), f();
|
|
8019
8019
|
}, [f, r, a, m]);
|
|
8020
8020
|
Mt(function() {
|
|
@@ -8161,7 +8161,7 @@ function aC(e) {
|
|
|
8161
8161
|
function v() {
|
|
8162
8162
|
return t.isActive(u);
|
|
8163
8163
|
}
|
|
8164
|
-
function
|
|
8164
|
+
function w(A, _) {
|
|
8165
8165
|
Vs({
|
|
8166
8166
|
expected: A,
|
|
8167
8167
|
phase: h,
|
|
@@ -8169,13 +8169,13 @@ function aC(e) {
|
|
|
8169
8169
|
shouldWarn: !0
|
|
8170
8170
|
}) && r.dispatch(_());
|
|
8171
8171
|
}
|
|
8172
|
-
var E =
|
|
8172
|
+
var E = w.bind(null, "DRAGGING");
|
|
8173
8173
|
function T(A) {
|
|
8174
8174
|
function _() {
|
|
8175
8175
|
t.release(), h = "COMPLETED";
|
|
8176
8176
|
}
|
|
8177
8177
|
h !== "PRE_DRAG" && (_(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot lift in phase " + h) : F(!1))), r.dispatch(GE(A.liftActionArgs)), h = "DRAGGING";
|
|
8178
|
-
function
|
|
8178
|
+
function C(O, R) {
|
|
8179
8179
|
if (R === void 0 && (R = {
|
|
8180
8180
|
shouldBlockNextClick: !1
|
|
8181
8181
|
}), A.cleanup(), R.shouldBlockNextClick) {
|
|
@@ -8191,7 +8191,7 @@ function aC(e) {
|
|
|
8191
8191
|
setTimeout($);
|
|
8192
8192
|
}
|
|
8193
8193
|
_(), r.dispatch(_p({
|
|
8194
|
-
reason:
|
|
8194
|
+
reason: O
|
|
8195
8195
|
}));
|
|
8196
8196
|
}
|
|
8197
8197
|
return ge({
|
|
@@ -8205,21 +8205,21 @@ function aC(e) {
|
|
|
8205
8205
|
},
|
|
8206
8206
|
shouldRespectForcePress: g,
|
|
8207
8207
|
drop: function(R) {
|
|
8208
|
-
return
|
|
8208
|
+
return C("DROP", R);
|
|
8209
8209
|
},
|
|
8210
8210
|
cancel: function(R) {
|
|
8211
|
-
return
|
|
8211
|
+
return C("CANCEL", R);
|
|
8212
8212
|
}
|
|
8213
8213
|
}, A.actions);
|
|
8214
8214
|
}
|
|
8215
8215
|
function N(A) {
|
|
8216
|
-
var _ = es(function(
|
|
8216
|
+
var _ = es(function(O) {
|
|
8217
8217
|
E(function() {
|
|
8218
8218
|
return Mp({
|
|
8219
|
-
client:
|
|
8219
|
+
client: O
|
|
8220
8220
|
});
|
|
8221
8221
|
});
|
|
8222
|
-
}),
|
|
8222
|
+
}), C = T({
|
|
8223
8223
|
liftActionArgs: {
|
|
8224
8224
|
id: o,
|
|
8225
8225
|
clientSelection: A,
|
|
@@ -8232,7 +8232,7 @@ function aC(e) {
|
|
|
8232
8232
|
move: _
|
|
8233
8233
|
}
|
|
8234
8234
|
});
|
|
8235
|
-
return ge({},
|
|
8235
|
+
return ge({}, C, {
|
|
8236
8236
|
move: _
|
|
8237
8237
|
});
|
|
8238
8238
|
}
|
|
@@ -8326,7 +8326,7 @@ function iC(e) {
|
|
|
8326
8326
|
return N ? N.options : null;
|
|
8327
8327
|
}, [r.draggable]), g = he(function() {
|
|
8328
8328
|
!c.isClaimed() || (c.tryAbandon(), n.getState().phase !== "IDLE" && n.dispatch(mi()));
|
|
8329
|
-
}, [c, n]), v = he(c.isClaimed, [c]),
|
|
8329
|
+
}, [c, n]), v = he(c.isClaimed, [c]), w = Me(function() {
|
|
8330
8330
|
return {
|
|
8331
8331
|
canGetLock: f,
|
|
8332
8332
|
tryGetLock: m,
|
|
@@ -8338,7 +8338,7 @@ function iC(e) {
|
|
|
8338
8338
|
}, [f, m, u, h, g, v]);
|
|
8339
8339
|
jw(l);
|
|
8340
8340
|
for (var E = 0; E < l.length; E++)
|
|
8341
|
-
l[E](
|
|
8341
|
+
l[E](w);
|
|
8342
8342
|
}
|
|
8343
8343
|
var lC = function(t) {
|
|
8344
8344
|
return {
|
|
@@ -8360,8 +8360,8 @@ function cC(e) {
|
|
|
8360
8360
|
}, [c]), f = uw(t), m = Sw({
|
|
8361
8361
|
contextId: t,
|
|
8362
8362
|
text: o
|
|
8363
|
-
}), u = ow(t, a), h = he(function(
|
|
8364
|
-
Yr(l).dispatch(
|
|
8363
|
+
}), u = ow(t, a), h = he(function(O) {
|
|
8364
|
+
Yr(l).dispatch(O);
|
|
8365
8365
|
}, []), g = Me(function() {
|
|
8366
8366
|
return Zl({
|
|
8367
8367
|
publishWhileDragging: UE,
|
|
@@ -8370,32 +8370,32 @@ function cC(e) {
|
|
|
8370
8370
|
updateDroppableIsCombineEnabled: JE,
|
|
8371
8371
|
collectionStarting: jE
|
|
8372
8372
|
}, h);
|
|
8373
|
-
}, [h]), v = cw(),
|
|
8373
|
+
}, [h]), v = cw(), w = Me(function() {
|
|
8374
8374
|
return FT(v, g);
|
|
8375
8375
|
}, [v, g]), E = Me(function() {
|
|
8376
8376
|
return tw(ge({
|
|
8377
8377
|
scrollWindow: VT,
|
|
8378
|
-
scrollDroppable:
|
|
8378
|
+
scrollDroppable: w.scrollDroppable
|
|
8379
8379
|
}, Zl({
|
|
8380
8380
|
move: Mp
|
|
8381
8381
|
}, h)));
|
|
8382
|
-
}, [
|
|
8382
|
+
}, [w.scrollDroppable, h]), T = iw(t), N = Me(function() {
|
|
8383
8383
|
return RT({
|
|
8384
8384
|
announce: f,
|
|
8385
8385
|
autoScroller: E,
|
|
8386
|
-
dimensionMarshal:
|
|
8386
|
+
dimensionMarshal: w,
|
|
8387
8387
|
focusMarshal: T,
|
|
8388
8388
|
getResponders: p,
|
|
8389
8389
|
styleMarshal: u
|
|
8390
8390
|
});
|
|
8391
|
-
}, [f, E,
|
|
8391
|
+
}, [f, E, w, T, p, u]);
|
|
8392
8392
|
process.env.NODE_ENV !== "production" && l.current && l.current !== N && process.env.NODE_ENV !== "production" && We("unexpected store change"), l.current = N;
|
|
8393
8393
|
var x = he(function() {
|
|
8394
|
-
var
|
|
8395
|
-
R.phase !== "IDLE" &&
|
|
8394
|
+
var O = Yr(l), R = O.getState();
|
|
8395
|
+
R.phase !== "IDLE" && O.dispatch(mi());
|
|
8396
8396
|
}, []), I = he(function() {
|
|
8397
|
-
var
|
|
8398
|
-
return
|
|
8397
|
+
var O = Yr(l).getState();
|
|
8398
|
+
return O.isDragging || O.phase === "DROP_ANIMATING";
|
|
8399
8399
|
}, []), k = Me(function() {
|
|
8400
8400
|
return {
|
|
8401
8401
|
isDragging: I,
|
|
@@ -8403,13 +8403,13 @@ function cC(e) {
|
|
|
8403
8403
|
};
|
|
8404
8404
|
}, [I, x]);
|
|
8405
8405
|
n(k);
|
|
8406
|
-
var A = he(function(
|
|
8407
|
-
return Fp(Yr(l).getState(),
|
|
8406
|
+
var A = he(function(O) {
|
|
8407
|
+
return Fp(Yr(l).getState(), O);
|
|
8408
8408
|
}, []), _ = he(function() {
|
|
8409
8409
|
return jn(Yr(l).getState());
|
|
8410
|
-
}, []),
|
|
8410
|
+
}, []), C = Me(function() {
|
|
8411
8411
|
return {
|
|
8412
|
-
marshal:
|
|
8412
|
+
marshal: w,
|
|
8413
8413
|
focus: T,
|
|
8414
8414
|
contextId: t,
|
|
8415
8415
|
canLift: A,
|
|
@@ -8417,7 +8417,7 @@ function cC(e) {
|
|
|
8417
8417
|
dragHandleUsageInstructionsId: m,
|
|
8418
8418
|
registry: v
|
|
8419
8419
|
};
|
|
8420
|
-
}, [t,
|
|
8420
|
+
}, [t, w, m, T, A, _, v]);
|
|
8421
8421
|
return iC({
|
|
8422
8422
|
contextId: t,
|
|
8423
8423
|
store: N,
|
|
@@ -8427,7 +8427,7 @@ function cC(e) {
|
|
|
8427
8427
|
}), He(function() {
|
|
8428
8428
|
return x;
|
|
8429
8429
|
}, [x]), J.createElement(ga.Provider, {
|
|
8430
|
-
value:
|
|
8430
|
+
value: C
|
|
8431
8431
|
}, J.createElement(Jd, {
|
|
8432
8432
|
context: Ei,
|
|
8433
8433
|
store: N
|
|
@@ -8530,7 +8530,7 @@ var Ni = function(t) {
|
|
|
8530
8530
|
var t = e.descriptor, n = e.isEnabled, r = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, l = e.client, c = e.page, p = e.closest, f = function() {
|
|
8531
8531
|
if (!p)
|
|
8532
8532
|
return null;
|
|
8533
|
-
var g = p.scrollSize, v = p.client,
|
|
8533
|
+
var g = p.scrollSize, v = p.client, w = Ap({
|
|
8534
8534
|
scrollHeight: g.scrollHeight,
|
|
8535
8535
|
scrollWidth: g.scrollWidth,
|
|
8536
8536
|
height: v.paddingBox.height,
|
|
@@ -8544,7 +8544,7 @@ var Ni = function(t) {
|
|
|
8544
8544
|
scroll: {
|
|
8545
8545
|
initial: p.scroll,
|
|
8546
8546
|
current: p.scroll,
|
|
8547
|
-
max:
|
|
8547
|
+
max: w,
|
|
8548
8548
|
diff: {
|
|
8549
8549
|
value: lt,
|
|
8550
8550
|
displacement: lt
|
|
@@ -8588,7 +8588,7 @@ var Ni = function(t) {
|
|
|
8588
8588
|
var t = e.ref, n = e.descriptor, r = e.env, a = e.windowScroll, o = e.direction, l = e.isDropDisabled, c = e.isCombineEnabled, p = e.shouldClipSubject, f = r.closestScrollable, m = TC(t, f), u = Qs(m, a), h = function() {
|
|
8589
8589
|
if (!f)
|
|
8590
8590
|
return null;
|
|
8591
|
-
var v = ap(f),
|
|
8591
|
+
var v = ap(f), w = {
|
|
8592
8592
|
scrollHeight: f.scrollHeight,
|
|
8593
8593
|
scrollWidth: f.scrollWidth
|
|
8594
8594
|
};
|
|
@@ -8596,7 +8596,7 @@ var Ni = function(t) {
|
|
|
8596
8596
|
client: v,
|
|
8597
8597
|
page: Qs(v, a),
|
|
8598
8598
|
scroll: $o(f),
|
|
8599
|
-
scrollSize:
|
|
8599
|
+
scrollSize: w,
|
|
8600
8600
|
shouldClipSubject: p
|
|
8601
8601
|
};
|
|
8602
8602
|
}(), g = EC({
|
|
@@ -8661,25 +8661,25 @@ function NC(e) {
|
|
|
8661
8661
|
t.current && (process.env.NODE_ENV !== "production" ? F(!1, "Cannot collect a droppable while a drag is occurring") : F(!1));
|
|
8662
8662
|
var A = l.current, _ = A.getDroppableRef();
|
|
8663
8663
|
_ || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot collect without a droppable ref") : F(!1));
|
|
8664
|
-
var
|
|
8664
|
+
var C = yC(_), O = {
|
|
8665
8665
|
ref: _,
|
|
8666
8666
|
descriptor: c,
|
|
8667
|
-
env:
|
|
8667
|
+
env: C,
|
|
8668
8668
|
scrollOptions: k
|
|
8669
8669
|
};
|
|
8670
|
-
t.current =
|
|
8670
|
+
t.current = O;
|
|
8671
8671
|
var R = wC({
|
|
8672
8672
|
ref: _,
|
|
8673
8673
|
descriptor: c,
|
|
8674
|
-
env:
|
|
8674
|
+
env: C,
|
|
8675
8675
|
windowScroll: I,
|
|
8676
8676
|
direction: A.direction,
|
|
8677
8677
|
isDropDisabled: A.isDropDisabled,
|
|
8678
8678
|
isCombineEnabled: A.isCombineEnabled,
|
|
8679
8679
|
shouldClipSubject: !A.ignoreContainerClipping
|
|
8680
|
-
}), $ =
|
|
8681
|
-
return $ && ($.setAttribute(Fc.contextId, n.contextId), $.addEventListener("scroll", g, Gc(
|
|
8682
|
-
}, [n.contextId, c, g, l]),
|
|
8680
|
+
}), $ = C.closestScrollable;
|
|
8681
|
+
return $ && ($.setAttribute(Fc.contextId, n.contextId), $.addEventListener("scroll", g, Gc(O.scrollOptions)), process.env.NODE_ENV !== "production" && bC($)), R;
|
|
8682
|
+
}, [n.contextId, c, g, l]), w = he(function() {
|
|
8683
8683
|
var I = t.current, k = $s(I);
|
|
8684
8684
|
return I && k || (process.env.NODE_ENV !== "production" ? F(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : F(!1)), $o(k);
|
|
8685
8685
|
}, []), E = he(function() {
|
|
@@ -8695,11 +8695,11 @@ function NC(e) {
|
|
|
8695
8695
|
}, []), N = Me(function() {
|
|
8696
8696
|
return {
|
|
8697
8697
|
getDimensionAndWatchScroll: v,
|
|
8698
|
-
getScrollWhileDragging:
|
|
8698
|
+
getScrollWhileDragging: w,
|
|
8699
8699
|
dragStopped: E,
|
|
8700
8700
|
scroll: T
|
|
8701
8701
|
};
|
|
8702
|
-
}, [E, v,
|
|
8702
|
+
}, [E, v, w, T]), x = Me(function() {
|
|
8703
8703
|
return {
|
|
8704
8704
|
uniqueId: r,
|
|
8705
8705
|
descriptor: c,
|
|
@@ -8974,8 +8974,8 @@ function UC(e) {
|
|
|
8974
8974
|
e.preventDefault();
|
|
8975
8975
|
}
|
|
8976
8976
|
function jC(e) {
|
|
8977
|
-
var t = Se(null), n = he(function(
|
|
8978
|
-
t.current =
|
|
8977
|
+
var t = Se(null), n = he(function(O) {
|
|
8978
|
+
t.current = O;
|
|
8979
8979
|
}, []), r = he(function() {
|
|
8980
8980
|
return t.current;
|
|
8981
8981
|
}, []), a = ra(ga), o = a.contextId, l = a.dragHandleUsageInstructionsId, c = a.registry, p = ra(xi), f = p.type, m = p.droppableId, u = Me(function() {
|
|
@@ -8985,7 +8985,7 @@ function jC(e) {
|
|
|
8985
8985
|
type: f,
|
|
8986
8986
|
droppableId: m
|
|
8987
8987
|
};
|
|
8988
|
-
}, [e.draggableId, e.index, f, m]), h = e.children, g = e.draggableId, v = e.isEnabled,
|
|
8988
|
+
}, [e.draggableId, e.index, f, m]), h = e.children, g = e.draggableId, v = e.isEnabled, w = e.shouldRespectForcePress, E = e.canDragInteractiveElements, T = e.isClone, N = e.mapped, x = e.dropAnimationFinished;
|
|
8989
8989
|
if (GC(e, o, r), YC(T), !T) {
|
|
8990
8990
|
var I = Me(function() {
|
|
8991
8991
|
return {
|
|
@@ -8993,10 +8993,10 @@ function jC(e) {
|
|
|
8993
8993
|
registry: c,
|
|
8994
8994
|
getDraggableRef: r,
|
|
8995
8995
|
canDragInteractiveElements: E,
|
|
8996
|
-
shouldRespectForcePress:
|
|
8996
|
+
shouldRespectForcePress: w,
|
|
8997
8997
|
isEnabled: v
|
|
8998
8998
|
};
|
|
8999
|
-
}, [u, c, r, E,
|
|
8999
|
+
}, [u, c, r, E, w, v]);
|
|
9000
9000
|
WC(I);
|
|
9001
9001
|
}
|
|
9002
9002
|
var k = Me(function() {
|
|
@@ -9009,21 +9009,21 @@ function jC(e) {
|
|
|
9009
9009
|
draggable: !1,
|
|
9010
9010
|
onDragStart: UC
|
|
9011
9011
|
} : null;
|
|
9012
|
-
}, [o, l, g, v]), A = he(function(
|
|
9013
|
-
N.type === "DRAGGING" && (!N.dropping ||
|
|
9012
|
+
}, [o, l, g, v]), A = he(function(O) {
|
|
9013
|
+
N.type === "DRAGGING" && (!N.dropping || O.propertyName === "transform" && x());
|
|
9014
9014
|
}, [x, N]), _ = Me(function() {
|
|
9015
|
-
var
|
|
9015
|
+
var O = KC(N), R = N.type === "DRAGGING" && N.dropping ? A : null, $ = {
|
|
9016
9016
|
innerRef: n,
|
|
9017
9017
|
draggableProps: {
|
|
9018
9018
|
"data-rbd-draggable-context-id": o,
|
|
9019
9019
|
"data-rbd-draggable-id": g,
|
|
9020
|
-
style:
|
|
9020
|
+
style: O,
|
|
9021
9021
|
onTransitionEnd: R
|
|
9022
9022
|
},
|
|
9023
9023
|
dragHandleProps: k
|
|
9024
9024
|
};
|
|
9025
9025
|
return $;
|
|
9026
|
-
}, [o, k, g, N, A, n]),
|
|
9026
|
+
}, [o, k, g, N, A, n]), C = Me(function() {
|
|
9027
9027
|
return {
|
|
9028
9028
|
draggableId: u.id,
|
|
9029
9029
|
type: u.type,
|
|
@@ -9033,7 +9033,7 @@ function jC(e) {
|
|
|
9033
9033
|
}
|
|
9034
9034
|
};
|
|
9035
9035
|
}, [u.droppableId, u.id, u.index, u.type]);
|
|
9036
|
-
return h(_, N.snapshot,
|
|
9036
|
+
return h(_, N.snapshot, C);
|
|
9037
9037
|
}
|
|
9038
9038
|
var tu = function(e, t) {
|
|
9039
9039
|
return e === t;
|
|
@@ -9087,7 +9087,7 @@ function JC() {
|
|
|
9087
9087
|
var h = o.completed;
|
|
9088
9088
|
if (h.result.draggableId !== l.draggableId)
|
|
9089
9089
|
return null;
|
|
9090
|
-
var g = l.isClone, v = o.dimensions.draggables[l.draggableId],
|
|
9090
|
+
var g = l.isClone, v = o.dimensions.draggables[l.draggableId], w = h.result, E = w.mode, T = nu(w), N = zC(w), x = o.dropDuration, I = {
|
|
9091
9091
|
duration: x,
|
|
9092
9092
|
curve: hi.drop,
|
|
9093
9093
|
moveTo: o.newHomeClientOffset,
|
|
@@ -9158,7 +9158,7 @@ function XC() {
|
|
|
9158
9158
|
return r(v);
|
|
9159
9159
|
if (f.displaced.invisible[c])
|
|
9160
9160
|
return null;
|
|
9161
|
-
var
|
|
9161
|
+
var w = Mr(m.displacedBy.point), E = e(w.x, w.y);
|
|
9162
9162
|
return n(E, v, !0);
|
|
9163
9163
|
}
|
|
9164
9164
|
if (h)
|
|
@@ -9204,7 +9204,7 @@ function nD(e) {
|
|
|
9204
9204
|
function rD(e) {
|
|
9205
9205
|
var t = en(ga);
|
|
9206
9206
|
t || (process.env.NODE_ENV !== "production" ? F(!1, "Could not find app context") : F(!1));
|
|
9207
|
-
var n = t.contextId, r = t.isMovementAllowed, a = Se(null), o = Se(null), l = e.children, c = e.droppableId, p = e.type, f = e.mode, m = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot,
|
|
9207
|
+
var n = t.contextId, r = t.isMovementAllowed, a = Se(null), o = Se(null), l = e.children, c = e.droppableId, p = e.type, f = e.mode, m = e.direction, u = e.ignoreContainerClipping, h = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, w = e.useClone, E = e.updateViewportMaxScroll, T = e.getContainerForClone, N = he(function() {
|
|
9208
9208
|
return a.current;
|
|
9209
9209
|
}, []), x = he(function(G) {
|
|
9210
9210
|
a.current = G;
|
|
@@ -9246,7 +9246,7 @@ function rD(e) {
|
|
|
9246
9246
|
contextId: n,
|
|
9247
9247
|
onTransitionEnd: A
|
|
9248
9248
|
});
|
|
9249
|
-
}),
|
|
9249
|
+
}), C = Me(function() {
|
|
9250
9250
|
return {
|
|
9251
9251
|
innerRef: x,
|
|
9252
9252
|
placeholder: _,
|
|
@@ -9255,17 +9255,17 @@ function rD(e) {
|
|
|
9255
9255
|
"data-rbd-droppable-context-id": n
|
|
9256
9256
|
}
|
|
9257
9257
|
};
|
|
9258
|
-
}, [n, c, _, x]),
|
|
9258
|
+
}, [n, c, _, x]), O = w ? w.dragging.draggableId : null, R = Me(function() {
|
|
9259
9259
|
return {
|
|
9260
9260
|
droppableId: c,
|
|
9261
9261
|
type: p,
|
|
9262
|
-
isUsingCloneFor:
|
|
9262
|
+
isUsingCloneFor: O
|
|
9263
9263
|
};
|
|
9264
|
-
}, [c,
|
|
9264
|
+
}, [c, O, p]);
|
|
9265
9265
|
function $() {
|
|
9266
|
-
if (!
|
|
9266
|
+
if (!w)
|
|
9267
9267
|
return null;
|
|
9268
|
-
var G =
|
|
9268
|
+
var G = w.dragging, M = w.render, H = J.createElement(su, {
|
|
9269
9269
|
draggableId: G.draggableId,
|
|
9270
9270
|
index: G.source.index,
|
|
9271
9271
|
isClone: !0,
|
|
@@ -9279,7 +9279,7 @@ function rD(e) {
|
|
|
9279
9279
|
}
|
|
9280
9280
|
return J.createElement(xi.Provider, {
|
|
9281
9281
|
value: R
|
|
9282
|
-
}, l(
|
|
9282
|
+
}, l(C, v), $());
|
|
9283
9283
|
}
|
|
9284
9284
|
var So = function(t, n) {
|
|
9285
9285
|
return t === n.droppable.type;
|
|
@@ -9313,7 +9313,7 @@ var So = function(t, n) {
|
|
|
9313
9313
|
var v = u ? {
|
|
9314
9314
|
render: u,
|
|
9315
9315
|
dragging: r(m.descriptor)
|
|
9316
|
-
} : null,
|
|
9316
|
+
} : null, w = {
|
|
9317
9317
|
isDraggingOver: p,
|
|
9318
9318
|
draggingOverWith: p ? h : null,
|
|
9319
9319
|
draggingFromThisWith: h,
|
|
@@ -9322,7 +9322,7 @@ var So = function(t, n) {
|
|
|
9322
9322
|
return {
|
|
9323
9323
|
placeholder: m.placeholder,
|
|
9324
9324
|
shouldAnimatePlaceholder: !1,
|
|
9325
|
-
snapshot:
|
|
9325
|
+
snapshot: w,
|
|
9326
9326
|
useClone: v
|
|
9327
9327
|
};
|
|
9328
9328
|
}
|
|
@@ -9348,8 +9348,8 @@ var So = function(t, n) {
|
|
|
9348
9348
|
var g = c.critical;
|
|
9349
9349
|
if (!So(m, g))
|
|
9350
9350
|
return n;
|
|
9351
|
-
var v = jc(g, c.dimensions),
|
|
9352
|
-
return a(f, u,
|
|
9351
|
+
var v = jc(g, c.dimensions), w = It(c.impact) === f;
|
|
9352
|
+
return a(f, u, w, w, v, h);
|
|
9353
9353
|
}
|
|
9354
9354
|
if (c.phase === "DROP_ANIMATING") {
|
|
9355
9355
|
var E = c.completed;
|
|
@@ -9419,8 +9419,8 @@ function Je(e) {
|
|
|
9419
9419
|
u && "sps-button--disabled",
|
|
9420
9420
|
l && "sps-button--spinning",
|
|
9421
9421
|
n
|
|
9422
|
-
), v = a && /* @__PURE__ */ s.createElement("i", { className: K("sps-icon", `sps-icon-${a}`), "aria-hidden": "true" }),
|
|
9423
|
-
return /* @__PURE__ */ s.createElement("div", { className: g }, r ? /* @__PURE__ */ s.createElement("a", { ...m, href: r, className: "sps-button__clickable-element" }, v, t,
|
|
9422
|
+
), v = a && /* @__PURE__ */ s.createElement("i", { className: K("sps-icon", `sps-icon-${a}`), "aria-hidden": "true" }), w = l && /* @__PURE__ */ s.createElement("div", { className: "sps-spinner" }, c || h("design-system:button.spinningTitle"));
|
|
9423
|
+
return /* @__PURE__ */ s.createElement("div", { className: g }, r ? /* @__PURE__ */ s.createElement("a", { ...m, href: r, className: "sps-button__clickable-element" }, v, t, w) : /* @__PURE__ */ s.createElement(
|
|
9424
9424
|
"button",
|
|
9425
9425
|
{
|
|
9426
9426
|
...m,
|
|
@@ -9430,7 +9430,7 @@ function Je(e) {
|
|
|
9430
9430
|
},
|
|
9431
9431
|
v,
|
|
9432
9432
|
t,
|
|
9433
|
-
|
|
9433
|
+
w
|
|
9434
9434
|
));
|
|
9435
9435
|
}
|
|
9436
9436
|
Object.assign(Je, {
|
|
@@ -9514,7 +9514,7 @@ function iu(e) {
|
|
|
9514
9514
|
"data-testid": h,
|
|
9515
9515
|
unsafelyReplaceClassName: g,
|
|
9516
9516
|
...v
|
|
9517
|
-
} = e,
|
|
9517
|
+
} = e, w = () => {
|
|
9518
9518
|
t && t(this, p, r);
|
|
9519
9519
|
}, E = (N) => {
|
|
9520
9520
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), N.stopPropagation(), t && t(this, p, r));
|
|
@@ -9528,7 +9528,7 @@ function iu(e) {
|
|
|
9528
9528
|
"a",
|
|
9529
9529
|
{
|
|
9530
9530
|
className: T,
|
|
9531
|
-
onClick:
|
|
9531
|
+
onClick: w,
|
|
9532
9532
|
"data-toggle": "tab",
|
|
9533
9533
|
id: c,
|
|
9534
9534
|
role: "tab",
|
|
@@ -9609,7 +9609,7 @@ function lu(e) {
|
|
|
9609
9609
|
"data-testid": p,
|
|
9610
9610
|
unsafelyReplaceClassName: f,
|
|
9611
9611
|
...m
|
|
9612
|
-
} = e, u = s.Children.toArray(n).some((
|
|
9612
|
+
} = e, u = s.Children.toArray(n).some((w) => s.isValidElement(w) && w.type === iu), [h, g] = uD(n, t, u), v = K(
|
|
9613
9613
|
f || "sps-card",
|
|
9614
9614
|
r
|
|
9615
9615
|
);
|
|
@@ -9628,9 +9628,9 @@ function lu(e) {
|
|
|
9628
9628
|
role: "tablist",
|
|
9629
9629
|
"data-testid": `${p}__tabs`
|
|
9630
9630
|
},
|
|
9631
|
-
s.Children.map(n, (
|
|
9632
|
-
if (s.isValidElement(
|
|
9633
|
-
return s.cloneElement(
|
|
9631
|
+
s.Children.map(n, (w, E) => {
|
|
9632
|
+
if (s.isValidElement(w))
|
|
9633
|
+
return s.cloneElement(w, {
|
|
9634
9634
|
active: E === h.index,
|
|
9635
9635
|
index: E,
|
|
9636
9636
|
activateTab: g,
|
|
@@ -10198,45 +10198,45 @@ function pu(e) {
|
|
|
10198
10198
|
})
|
|
10199
10199
|
)
|
|
10200
10200
|
]
|
|
10201
|
-
}), h = { searchSelectedColumn: "" }, g = K(m.isVisible && "sps-button--open", c), { formMeta: v, formValue:
|
|
10201
|
+
}), h = { searchSelectedColumn: "" }, g = K(m.isVisible && "sps-button--open", c), { formMeta: v, formValue: w, updateForm: E } = Kb(h);
|
|
10202
10202
|
function T(_) {
|
|
10203
10203
|
if (_.target.value) {
|
|
10204
|
-
const
|
|
10204
|
+
const C = [...m.pendingSelectedColumns], O = [];
|
|
10205
10205
|
m.pendingUnselectedColumns.forEach((R) => {
|
|
10206
|
-
_.target.value === R.name ? (E(h),
|
|
10206
|
+
_.target.value === R.name ? (E(h), C.push({
|
|
10207
10207
|
columnId: Et(),
|
|
10208
10208
|
name: R.name,
|
|
10209
10209
|
value: R.value
|
|
10210
|
-
})) :
|
|
10210
|
+
})) : O.push(R);
|
|
10211
10211
|
}), u({
|
|
10212
|
-
pendingSelectedColumns:
|
|
10213
|
-
pendingUnselectedColumns:
|
|
10212
|
+
pendingSelectedColumns: C,
|
|
10213
|
+
pendingUnselectedColumns: O
|
|
10214
10214
|
});
|
|
10215
10215
|
}
|
|
10216
10216
|
}
|
|
10217
10217
|
function N(_) {
|
|
10218
|
-
const
|
|
10218
|
+
const C = [], O = [...m.pendingUnselectedColumns];
|
|
10219
10219
|
m.pendingSelectedColumns.forEach((R) => {
|
|
10220
|
-
_ === R.value ?
|
|
10220
|
+
_ === R.value ? O.push({
|
|
10221
10221
|
columnId: Et(),
|
|
10222
10222
|
name: R.name,
|
|
10223
10223
|
value: R.value
|
|
10224
|
-
}) :
|
|
10224
|
+
}) : C.push(R);
|
|
10225
10225
|
}), u({
|
|
10226
|
-
pendingSelectedColumns:
|
|
10227
|
-
pendingUnselectedColumns:
|
|
10226
|
+
pendingSelectedColumns: C,
|
|
10227
|
+
pendingUnselectedColumns: O
|
|
10228
10228
|
});
|
|
10229
10229
|
}
|
|
10230
10230
|
function x(_) {
|
|
10231
10231
|
if (!_.destination)
|
|
10232
10232
|
return;
|
|
10233
|
-
const
|
|
10234
|
-
|
|
10233
|
+
const C = [...m.pendingSelectedColumns], [O] = C.splice(_.source.index, 1);
|
|
10234
|
+
C.splice(_.destination.index, 0, O), u({ pendingSelectedColumns: C });
|
|
10235
10235
|
}
|
|
10236
10236
|
function I() {
|
|
10237
|
-
const _ = m.pendingSelectedColumns.map((
|
|
10238
|
-
const
|
|
10239
|
-
return
|
|
10237
|
+
const _ = m.pendingSelectedColumns.map((C) => {
|
|
10238
|
+
const O = { ...C };
|
|
10239
|
+
return O.columnId && delete O.columnId, O;
|
|
10240
10240
|
});
|
|
10241
10241
|
E(h), u({
|
|
10242
10242
|
isVisible: !1,
|
|
@@ -10252,8 +10252,8 @@ function pu(e) {
|
|
|
10252
10252
|
}
|
|
10253
10253
|
const A = s.useCallback(
|
|
10254
10254
|
(_) => {
|
|
10255
|
-
const
|
|
10256
|
-
return o ? m.pendingUnselectedColumns.filter((
|
|
10255
|
+
const C = new RegExp(_ != null ? _ : "", "i");
|
|
10256
|
+
return o ? m.pendingUnselectedColumns.filter((O) => C.test(O.name)).map((O) => O.name).slice(0, o) : m.pendingUnselectedColumns.map((O) => O.name);
|
|
10257
10257
|
},
|
|
10258
10258
|
[m.pendingUnselectedColumns, o]
|
|
10259
10259
|
);
|
|
@@ -10320,7 +10320,7 @@ function pu(e) {
|
|
|
10320
10320
|
disabled: Boolean(
|
|
10321
10321
|
r && m.pendingSelectedColumns.length >= r
|
|
10322
10322
|
),
|
|
10323
|
-
value:
|
|
10323
|
+
value: w.searchSelectedColumn ? w.searchSelectedColumn : "",
|
|
10324
10324
|
formMeta: v.fields.searchSelectedColumn,
|
|
10325
10325
|
onChange: T,
|
|
10326
10326
|
placeholder: "Find Columns to Add",
|
|
@@ -10329,16 +10329,16 @@ function pu(e) {
|
|
|
10329
10329
|
}
|
|
10330
10330
|
)),
|
|
10331
10331
|
/* @__PURE__ */ s.createElement("div", { className: "sps-column-chooser__selected-title" }, "Selected"),
|
|
10332
|
-
/* @__PURE__ */ s.createElement(uC, { onDragEnd: x }, /* @__PURE__ */ s.createElement(au, { droppableId: "column-chooser" }, (_) => /* @__PURE__ */ s.createElement("div", { ..._.droppableProps, ref: _.innerRef }, m.pendingSelectedColumns.map((
|
|
10332
|
+
/* @__PURE__ */ s.createElement(uC, { onDragEnd: x }, /* @__PURE__ */ s.createElement(au, { droppableId: "column-chooser" }, (_) => /* @__PURE__ */ s.createElement("div", { ..._.droppableProps, ref: _.innerRef }, m.pendingSelectedColumns.map((C, O) => /* @__PURE__ */ s.createElement(
|
|
10333
10333
|
ki,
|
|
10334
10334
|
{
|
|
10335
|
-
index:
|
|
10336
|
-
key:
|
|
10337
|
-
columnId:
|
|
10338
|
-
name:
|
|
10339
|
-
value:
|
|
10335
|
+
index: O,
|
|
10336
|
+
key: C.columnId,
|
|
10337
|
+
columnId: C.columnId,
|
|
10338
|
+
name: C.name,
|
|
10339
|
+
value: C.value,
|
|
10340
10340
|
onDelete: N,
|
|
10341
|
-
mandatory:
|
|
10341
|
+
mandatory: C.mandatory
|
|
10342
10342
|
}
|
|
10343
10343
|
)), _.placeholder)))
|
|
10344
10344
|
));
|
|
@@ -10491,7 +10491,7 @@ function uu(e) {
|
|
|
10491
10491
|
selectable: h = !1,
|
|
10492
10492
|
selected: g,
|
|
10493
10493
|
"data-testid": v,
|
|
10494
|
-
unsafelyReplaceClassName:
|
|
10494
|
+
unsafelyReplaceClassName: w,
|
|
10495
10495
|
...E
|
|
10496
10496
|
} = e, { t: T } = s.useContext(Ge), [N, x] = s.useState(m), I = typeof a == "boolean" ? a : N;
|
|
10497
10497
|
function k($) {
|
|
@@ -10506,18 +10506,18 @@ function uu(e) {
|
|
|
10506
10506
|
"aria-label": T(`design-system:contentRow.${I ? "collapse" : "expand"}`)
|
|
10507
10507
|
},
|
|
10508
10508
|
/* @__PURE__ */ s.createElement(nn, { icon: I ? rt.MINUS_CIRCLE : rt.PLUS_CIRCLE })
|
|
10509
|
-
),
|
|
10510
|
-
|
|
10509
|
+
), C = K(
|
|
10510
|
+
w || "sps-content-row",
|
|
10511
10511
|
I && "sps-content-row--expanded",
|
|
10512
10512
|
u && "sps-content-row--card-spaced",
|
|
10513
10513
|
g && "sps-content-row--selected",
|
|
10514
10514
|
t && "sps-content-row--alternate-layout",
|
|
10515
10515
|
r
|
|
10516
|
-
), [
|
|
10516
|
+
), [O, [R]] = zt(n, [
|
|
10517
10517
|
{ type: yr },
|
|
10518
10518
|
{ type: Ii }
|
|
10519
10519
|
]);
|
|
10520
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
10520
|
+
return /* @__PURE__ */ s.createElement("div", { className: C, "data-testid": v, ...E }, /* @__PURE__ */ s.createElement("div", { className: "sps-content-row__col-group", "data-testid": `${v}__children` }, h && !t && /* @__PURE__ */ s.createElement(yr, { widthPx: 46 }, /* @__PURE__ */ s.createElement(A, null)), R && !t && /* @__PURE__ */ s.createElement(yr, { widthPx: 44 }, /* @__PURE__ */ s.createElement(_, null)), R && h && t && /* @__PURE__ */ s.createElement(yr, { widthPx: 46 }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(A, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(_, null))), O), R);
|
|
10521
10521
|
}
|
|
10522
10522
|
Object.assign(uu, {
|
|
10523
10523
|
props: ED,
|
|
@@ -11090,13 +11090,13 @@ function ya(e) {
|
|
|
11090
11090
|
showTwoMonths: m = !1,
|
|
11091
11091
|
"data-testid": u,
|
|
11092
11092
|
...h
|
|
11093
|
-
} = e, { t: g } = s.useContext(Ge), [v,
|
|
11093
|
+
} = e, { t: g } = s.useContext(Ge), [v, w] = s.useState(() => Ur(e)), [E, T] = s.useState(
|
|
11094
11094
|
Z.nextMonth({ ...v, date: 15 })
|
|
11095
11095
|
), N = s.useMemo(() => Z.create(), []);
|
|
11096
11096
|
s.useEffect(() => {
|
|
11097
11097
|
if (p && p[0] && p[1] && p[0].month !== v.month && p[0].month !== E.month && p[1].month !== v.month && p[1].month !== E.month) {
|
|
11098
11098
|
const W = Ur(e);
|
|
11099
|
-
|
|
11099
|
+
w(W), T(
|
|
11100
11100
|
Z.nextMonth({
|
|
11101
11101
|
month: W.month,
|
|
11102
11102
|
date: 15,
|
|
@@ -11105,7 +11105,7 @@ function ya(e) {
|
|
|
11105
11105
|
);
|
|
11106
11106
|
} else if (p && p[0] && !p[1] && p[0].month !== v.month && p[0].month !== E.month) {
|
|
11107
11107
|
const W = Ur(e);
|
|
11108
|
-
|
|
11108
|
+
w(W), T(
|
|
11109
11109
|
Z.nextMonth({
|
|
11110
11110
|
month: W.month,
|
|
11111
11111
|
date: 15,
|
|
@@ -11114,7 +11114,7 @@ function ya(e) {
|
|
|
11114
11114
|
);
|
|
11115
11115
|
} else if (p && !p[0] && p[1] && p[1].month !== v.month && p[1].month !== E.month) {
|
|
11116
11116
|
const W = Ur(e);
|
|
11117
|
-
|
|
11117
|
+
w(W), T(
|
|
11118
11118
|
Z.nextMonth({
|
|
11119
11119
|
month: W.month,
|
|
11120
11120
|
date: 15,
|
|
@@ -11122,28 +11122,28 @@ function ya(e) {
|
|
|
11122
11122
|
})
|
|
11123
11123
|
);
|
|
11124
11124
|
} else
|
|
11125
|
-
|
|
11125
|
+
w(Ur(e));
|
|
11126
11126
|
}, [
|
|
11127
11127
|
c,
|
|
11128
11128
|
p,
|
|
11129
11129
|
a,
|
|
11130
11130
|
r
|
|
11131
11131
|
]);
|
|
11132
|
-
const x = Jc(v), I = qc(v), k = Jc(E), A = qc(E), [_,
|
|
11133
|
-
function
|
|
11134
|
-
|
|
11132
|
+
const x = Jc(v), I = qc(v), k = Jc(E), A = qc(E), [_, C] = s.useState();
|
|
11133
|
+
function O() {
|
|
11134
|
+
w(Z.prevMonth({ ...v, date: 15 })), m && T(Z.prevMonth({ ...E, date: 15 }));
|
|
11135
11135
|
}
|
|
11136
11136
|
function R() {
|
|
11137
|
-
|
|
11137
|
+
w(Z.nextMonth({ ...v, date: 15 })), m && T(Z.nextMonth({ ...E, date: 15 }));
|
|
11138
11138
|
}
|
|
11139
11139
|
function $(W) {
|
|
11140
|
-
W.target && W.target.classList.contains(`${yt}-day`) ? m && W.target.classList.contains(`${E.month}`) ?
|
|
11140
|
+
W.target && W.target.classList.contains(`${yt}-day`) ? m && W.target.classList.contains(`${E.month}`) ? C({
|
|
11141
11141
|
...E,
|
|
11142
11142
|
date: Number(W.target.textContent)
|
|
11143
|
-
}) :
|
|
11143
|
+
}) : C({
|
|
11144
11144
|
...v,
|
|
11145
11145
|
date: Number(W.target.textContent)
|
|
11146
|
-
}) : (!W.target || !W.target.classList.contains(`${yt}-row`)) &&
|
|
11146
|
+
}) : (!W.target || !W.target.classList.contains(`${yt}-row`)) && C(void 0);
|
|
11147
11147
|
}
|
|
11148
11148
|
function G(W) {
|
|
11149
11149
|
const z = `${yt}-day`;
|
|
@@ -11191,7 +11191,7 @@ function ya(e) {
|
|
|
11191
11191
|
disabled: Z.isSameMonth(v, o),
|
|
11192
11192
|
title: g("design-system:datepicker.calendar.prevMonth"),
|
|
11193
11193
|
className: "sps-datepicker__button sps-datepicker__button-previous-month",
|
|
11194
|
-
onClick:
|
|
11194
|
+
onClick: O
|
|
11195
11195
|
},
|
|
11196
11196
|
/* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-chevron-left" })
|
|
11197
11197
|
), /* @__PURE__ */ s.createElement("span", { className: `${yt}-head-label` }, /* @__PURE__ */ s.createElement("span", { className: `${yt}-head-label-month` }, x ? x.format("MMMM") : ""), /* @__PURE__ */ s.createElement("span", { className: `${yt}-head-label-year` }, v.year)), !m && /* @__PURE__ */ s.createElement(
|
|
@@ -11287,7 +11287,7 @@ function mu({
|
|
|
11287
11287
|
"data-testid": f,
|
|
11288
11288
|
...m
|
|
11289
11289
|
}) {
|
|
11290
|
-
const { wrapperId: u, controlId: h } = Dt(a, r), g = s.useRef(null), v = s.useRef(null),
|
|
11290
|
+
const { wrapperId: u, controlId: h } = Dt(a, r), g = s.useRef(null), v = s.useRef(null), w = s.useRef(null), [E, T] = s.useState(
|
|
11291
11291
|
Z.toString(p)
|
|
11292
11292
|
), {
|
|
11293
11293
|
showPopup: N,
|
|
@@ -11298,23 +11298,23 @@ function mu({
|
|
|
11298
11298
|
r && (r.setValue(G), r.markAsDirty()), c && c(G);
|
|
11299
11299
|
}
|
|
11300
11300
|
function A(G) {
|
|
11301
|
-
k(G), T(Z.toString(G)),
|
|
11301
|
+
k(G), T(Z.toString(G)), w && w.current && w.current.focus();
|
|
11302
11302
|
}
|
|
11303
11303
|
function _(G) {
|
|
11304
11304
|
T(G.target.value);
|
|
11305
11305
|
const M = Z.createFrom(G.target.value);
|
|
11306
11306
|
k(M);
|
|
11307
11307
|
}
|
|
11308
|
-
function
|
|
11308
|
+
function C() {
|
|
11309
11309
|
I(), T(""), k();
|
|
11310
11310
|
}
|
|
11311
|
-
function
|
|
11311
|
+
function O(G) {
|
|
11312
11312
|
switch (G.key) {
|
|
11313
11313
|
case "Tab":
|
|
11314
11314
|
I();
|
|
11315
11315
|
break;
|
|
11316
11316
|
case "Backspace":
|
|
11317
|
-
G.target.selectionStart === 0 && p && !Array.isArray(p) &&
|
|
11317
|
+
G.target.selectionStart === 0 && p && !Array.isArray(p) && C();
|
|
11318
11318
|
break;
|
|
11319
11319
|
}
|
|
11320
11320
|
}
|
|
@@ -11325,14 +11325,14 @@ function mu({
|
|
|
11325
11325
|
t
|
|
11326
11326
|
), $ = s.useRef(!1);
|
|
11327
11327
|
return s.useEffect(() => {
|
|
11328
|
-
$.current ? p ? Z.isValid(p) && T(Z.toString(p)) :
|
|
11328
|
+
$.current ? p ? Z.isValid(p) && T(Z.toString(p)) : C() : $.current = !0;
|
|
11329
11329
|
}, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
11330
11330
|
St,
|
|
11331
11331
|
{
|
|
11332
11332
|
id: u,
|
|
11333
11333
|
className: R,
|
|
11334
11334
|
formMeta: r,
|
|
11335
|
-
inputRef:
|
|
11335
|
+
inputRef: w,
|
|
11336
11336
|
focusInputOnClick: !0,
|
|
11337
11337
|
ref: g
|
|
11338
11338
|
},
|
|
@@ -11340,14 +11340,14 @@ function mu({
|
|
|
11340
11340
|
"input",
|
|
11341
11341
|
{
|
|
11342
11342
|
type: "text",
|
|
11343
|
-
ref:
|
|
11343
|
+
ref: w,
|
|
11344
11344
|
className: "sps-text-input__input",
|
|
11345
11345
|
id: h,
|
|
11346
11346
|
placeholder: Cr,
|
|
11347
11347
|
onChange: _,
|
|
11348
11348
|
onClick: x,
|
|
11349
11349
|
onFocus: x,
|
|
11350
|
-
onKeyDown:
|
|
11350
|
+
onKeyDown: O,
|
|
11351
11351
|
value: E,
|
|
11352
11352
|
disabled: n,
|
|
11353
11353
|
"data-testid": `${f}_date_input`,
|
|
@@ -11357,7 +11357,7 @@ function mu({
|
|
|
11357
11357
|
"i",
|
|
11358
11358
|
{
|
|
11359
11359
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
11360
|
-
onClick:
|
|
11360
|
+
onClick: C
|
|
11361
11361
|
}
|
|
11362
11362
|
))
|
|
11363
11363
|
), /* @__PURE__ */ s.createElement(Ea, { isOpen: N, attachTo: g, ref: v }, /* @__PURE__ */ s.createElement(
|
|
@@ -11572,11 +11572,11 @@ function fu({
|
|
|
11572
11572
|
"data-testid": g,
|
|
11573
11573
|
...v
|
|
11574
11574
|
}) {
|
|
11575
|
-
const { t:
|
|
11575
|
+
const { t: w } = s.useContext(Ge), { wrapperId: E, controlId: T } = Dt(a, r), N = s.useRef(null), x = s.useRef(null), I = s.useRef(null), [k, A] = s.useState(
|
|
11576
11576
|
Array.isArray(u) ? Z.toStringRange(u) : ""
|
|
11577
|
-
), [_,
|
|
11577
|
+
), [_, C] = s.useState(
|
|
11578
11578
|
nd(p, f) || null
|
|
11579
|
-
), [
|
|
11579
|
+
), [O, R] = s.useState(), {
|
|
11580
11580
|
showPopup: $,
|
|
11581
11581
|
doShowPopup: G,
|
|
11582
11582
|
doHidePopup: M
|
|
@@ -11585,26 +11585,26 @@ function fu({
|
|
|
11585
11585
|
r && (r.setValue(Y), r.markAsDirty()), c && c(Y, U);
|
|
11586
11586
|
}
|
|
11587
11587
|
s.useEffect(() => {
|
|
11588
|
-
|
|
11588
|
+
C(nd(p, f) || null);
|
|
11589
11589
|
}, [f]);
|
|
11590
11590
|
function W(Y) {
|
|
11591
11591
|
var U;
|
|
11592
|
-
return Y && /^design-system:/.test(Y.label) ?
|
|
11592
|
+
return Y && /^design-system:/.test(Y.label) ? w(Y.label) : (U = Y == null ? void 0 : Y.label) != null ? U : "";
|
|
11593
11593
|
}
|
|
11594
11594
|
function z(Y) {
|
|
11595
11595
|
const U = u || [];
|
|
11596
11596
|
let V, X = _;
|
|
11597
11597
|
const Q = X ? W(X) : "";
|
|
11598
|
-
Q === "Before" ? V = [null, Y] : Q === "After" ? V = [Y, null] : !U[0] || U[1] || Z.isBefore(Y, U[0]) ? V = [Y, null] : V = [U[0], Y], (V[0] && V[1] || Q === "Before" || Q === "After") && (M(!0), x && x.current && x.current.focus()), X && Q !== "Before" && Q !== "After" && (
|
|
11598
|
+
Q === "Before" ? V = [null, Y] : Q === "After" ? V = [Y, null] : !U[0] || U[1] || Z.isBefore(Y, U[0]) ? V = [Y, null] : V = [U[0], Y], (V[0] && V[1] || Q === "Before" || Q === "After") && (M(!0), x && x.current && x.current.focus()), X && Q !== "Before" && Q !== "After" && (C(null), X = null), H(V, X == null ? void 0 : X.definition), A(Z.toStringRange(V)), R(void 0);
|
|
11599
11599
|
}
|
|
11600
11600
|
function B(Y) {
|
|
11601
11601
|
A(Y.target.value);
|
|
11602
11602
|
let U = Z.createRangeFrom(Y.target.value), V = _;
|
|
11603
11603
|
const X = V ? W(V) : "";
|
|
11604
|
-
Array.isArray(U) && (U[0] && U[1] && (X === "Before" || X === "After") ? (
|
|
11604
|
+
Array.isArray(U) && (U[0] && U[1] && (X === "Before" || X === "After") ? (C(null), V = null) : X === "Before" && U[0] !== null ? U = [null, U[0]] : X === "After" && U[0] !== null && (U = [U[0], null])), H(U, V == null ? void 0 : V.definition), R(void 0);
|
|
11605
11605
|
}
|
|
11606
11606
|
function oe() {
|
|
11607
|
-
A(""), H(), R(void 0),
|
|
11607
|
+
A(""), H(), R(void 0), C(null);
|
|
11608
11608
|
}
|
|
11609
11609
|
function ie(Y) {
|
|
11610
11610
|
switch (Y.key) {
|
|
@@ -11616,19 +11616,19 @@ function fu({
|
|
|
11616
11616
|
break;
|
|
11617
11617
|
}
|
|
11618
11618
|
}
|
|
11619
|
-
function
|
|
11619
|
+
function L(Y) {
|
|
11620
11620
|
if (m && (Y == null ? void 0 : Y.definition) !== f && m(typeof (Y == null ? void 0 : Y.definition) == "string" ? Y == null ? void 0 : Y.definition : ""), !Y) {
|
|
11621
|
-
|
|
11621
|
+
C(null), H();
|
|
11622
11622
|
return;
|
|
11623
11623
|
}
|
|
11624
|
-
|
|
11624
|
+
C(Y);
|
|
11625
11625
|
let U = Z.createRangeFromPreset(Y);
|
|
11626
11626
|
const V = Y && W(Y);
|
|
11627
11627
|
(V === "Before" || V === "After") && u && u[0] && u[1] ? U = Z.createRangeFrom("-") : V === "Before" ? U = Z.createRangeFrom(`-${Z.toString(u && (u[0] || u[1]))}`) : V === "After" && (U = Z.createRangeFrom(`${Z.toString(u && (u[0] || u[1]))}-`)), JSON.stringify(u) !== JSON.stringify(U) && H(U, Y == null ? void 0 : Y.definition);
|
|
11628
11628
|
}
|
|
11629
11629
|
s.useEffect(() => {
|
|
11630
11630
|
if (!u) {
|
|
11631
|
-
|
|
11631
|
+
C(null);
|
|
11632
11632
|
return;
|
|
11633
11633
|
}
|
|
11634
11634
|
if (!kD(p, td) && Array.isArray(u)) {
|
|
@@ -11637,7 +11637,7 @@ function fu({
|
|
|
11637
11637
|
Z.createRangeFromPreset(V)
|
|
11638
11638
|
)
|
|
11639
11639
|
);
|
|
11640
|
-
U ?
|
|
11640
|
+
U ? L(U) : u[0] && u[1] && C(null);
|
|
11641
11641
|
}
|
|
11642
11642
|
}, [u]), s.useEffect(() => {
|
|
11643
11643
|
const Y = ["Before", "After"].includes(W(_));
|
|
@@ -11684,7 +11684,7 @@ function fu({
|
|
|
11684
11684
|
onClick: oe
|
|
11685
11685
|
}
|
|
11686
11686
|
))
|
|
11687
|
-
), /* @__PURE__ */ s.createElement(Ea, { isOpen: $, attachTo: N, ref: I }, /* @__PURE__ */ s.createElement("div", { className: "sps-datepicker__presets" }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", { className: "sps-datepicker__presets-label" },
|
|
11687
|
+
), /* @__PURE__ */ s.createElement(Ea, { isOpen: $, attachTo: N, ref: I }, /* @__PURE__ */ s.createElement("div", { className: "sps-datepicker__presets" }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", { className: "sps-datepicker__presets-label" }, w("design-system:datepicker.presetsLabel")), /* @__PURE__ */ s.createElement("div", { className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
11688
11688
|
"input",
|
|
11689
11689
|
{
|
|
11690
11690
|
"data-testid": `${g}_presets_custom_input`,
|
|
@@ -11693,7 +11693,7 @@ function fu({
|
|
|
11693
11693
|
className: "sps-custom-control__input",
|
|
11694
11694
|
checked: !_,
|
|
11695
11695
|
name: `sps-date-range-picker-${E}__range`,
|
|
11696
|
-
onChange: () =>
|
|
11696
|
+
onChange: () => L()
|
|
11697
11697
|
}
|
|
11698
11698
|
), /* @__PURE__ */ s.createElement(
|
|
11699
11699
|
"label",
|
|
@@ -11701,7 +11701,7 @@ function fu({
|
|
|
11701
11701
|
className: "sps-custom-control__label",
|
|
11702
11702
|
htmlFor: `sps-date-range-picker-${E}__range-custom`
|
|
11703
11703
|
},
|
|
11704
|
-
|
|
11704
|
+
w("design-system:datepicker.preset.custom")
|
|
11705
11705
|
)), p.map((Y, U) => /* @__PURE__ */ s.createElement("div", { key: W(Y), className: "sps-custom-control sps-custom-radio sps-custom-control--no-error" }, /* @__PURE__ */ s.createElement(
|
|
11706
11706
|
"input",
|
|
11707
11707
|
{
|
|
@@ -11709,7 +11709,7 @@ function fu({
|
|
|
11709
11709
|
"data-testid": `${g}_preset_option_${Y.label}`,
|
|
11710
11710
|
id: `sps-date-range-picker-${E}__range-${U}`,
|
|
11711
11711
|
name: `sps-date-range-picker-${E}__range`,
|
|
11712
|
-
onChange: () =>
|
|
11712
|
+
onChange: () => L(Y),
|
|
11713
11713
|
checked: _ != null && _.definition ? _.definition === Y.definition : !1,
|
|
11714
11714
|
className: "sps-custom-control__input"
|
|
11715
11715
|
}
|
|
@@ -11724,7 +11724,7 @@ function fu({
|
|
|
11724
11724
|
ya,
|
|
11725
11725
|
{
|
|
11726
11726
|
"data-testid": `${g}_calendar`,
|
|
11727
|
-
selectedRange: Array.isArray(u) ? u :
|
|
11727
|
+
selectedRange: Array.isArray(u) ? u : O,
|
|
11728
11728
|
onNewSelection: z,
|
|
11729
11729
|
minDate: l,
|
|
11730
11730
|
maxDate: o,
|
|
@@ -11952,7 +11952,7 @@ const ID = {
|
|
|
11952
11952
|
options: h,
|
|
11953
11953
|
onChange: g,
|
|
11954
11954
|
onClick: v,
|
|
11955
|
-
onOpen:
|
|
11955
|
+
onOpen: w,
|
|
11956
11956
|
placeholder: E,
|
|
11957
11957
|
searchDebounce: T,
|
|
11958
11958
|
searchPlaceholder: N = "Search\u2026",
|
|
@@ -11961,8 +11961,8 @@ const ID = {
|
|
|
11961
11961
|
valueKey: k,
|
|
11962
11962
|
unsafelyReplaceClassName: A,
|
|
11963
11963
|
value: _,
|
|
11964
|
-
zeroState:
|
|
11965
|
-
loading:
|
|
11964
|
+
zeroState: C,
|
|
11965
|
+
loading: O,
|
|
11966
11966
|
filterByTextAndCaptionKey: R,
|
|
11967
11967
|
maxHeightOptionListPx: $,
|
|
11968
11968
|
maxHeightOptionListRem: G,
|
|
@@ -11970,7 +11970,7 @@ const ID = {
|
|
|
11970
11970
|
disableOptionsMemoization: H,
|
|
11971
11971
|
disableDefaultOptionsFiltering: W,
|
|
11972
11972
|
...z
|
|
11973
|
-
} = e, B = f || p, { wrapperId: oe, controlId: ie } = Dt(m, B),
|
|
11973
|
+
} = e, B = f || p, { wrapperId: oe, controlId: ie } = Dt(m, B), L = s.useRef(null), j = s.useRef(null), te = s.useRef(null), { t: Y } = s.useContext(Ge), [U, V] = vn({
|
|
11974
11974
|
isOpen: !1,
|
|
11975
11975
|
value: _,
|
|
11976
11976
|
text: "",
|
|
@@ -12030,15 +12030,15 @@ const ID = {
|
|
|
12030
12030
|
s.useEffect(() => (document.addEventListener("click", re), document.addEventListener("DropdownOpened", Ae), () => {
|
|
12031
12031
|
document.removeEventListener("click", re), document.removeEventListener("DropdownOpened", Ae);
|
|
12032
12032
|
}), []), s.useLayoutEffect(() => {
|
|
12033
|
-
if (r && te.current &&
|
|
12034
|
-
|
|
12035
|
-
const Pe = `${
|
|
12036
|
-
|
|
12033
|
+
if (r && te.current && L.current) {
|
|
12034
|
+
L.current.style.width = "";
|
|
12035
|
+
const Pe = `${L.current.getBoundingClientRect().width + 6}px`;
|
|
12036
|
+
L.current.style.width = Pe, te.current.style.width = Pe, te.current.style.maxWidth = Pe;
|
|
12037
12037
|
}
|
|
12038
12038
|
}), Hd(() => {
|
|
12039
12039
|
var ve;
|
|
12040
12040
|
if (U.isOpen) {
|
|
12041
|
-
|
|
12041
|
+
w == null || w();
|
|
12042
12042
|
const Pe = document.createEvent("CustomEvent");
|
|
12043
12043
|
Pe.initCustomEvent("DropdownOpened", !1, !1, oe), document.dispatchEvent(Pe);
|
|
12044
12044
|
} else
|
|
@@ -12105,7 +12105,7 @@ const ID = {
|
|
|
12105
12105
|
ds,
|
|
12106
12106
|
{
|
|
12107
12107
|
id: `${oe}-options`,
|
|
12108
|
-
ref:
|
|
12108
|
+
ref: L,
|
|
12109
12109
|
attachTo: te,
|
|
12110
12110
|
captionKey: a,
|
|
12111
12111
|
comparisonKey: l,
|
|
@@ -12125,9 +12125,9 @@ const ID = {
|
|
|
12125
12125
|
optionRole: "option",
|
|
12126
12126
|
valueKey: k,
|
|
12127
12127
|
onOptionListChanged: Qe,
|
|
12128
|
-
zeroState:
|
|
12128
|
+
zeroState: C,
|
|
12129
12129
|
ignoreWidthStyles: r,
|
|
12130
|
-
loading:
|
|
12130
|
+
loading: O,
|
|
12131
12131
|
maxHeightPx: $,
|
|
12132
12132
|
maxHeightRem: G,
|
|
12133
12133
|
disableOptionsMemoization: H,
|
|
@@ -12566,7 +12566,7 @@ function hu({
|
|
|
12566
12566
|
const { t: h } = s.useContext(Ge), { wrapperId: g, controlId: v } = Dt(
|
|
12567
12567
|
r && `${r}_from`,
|
|
12568
12568
|
n
|
|
12569
|
-
), { wrapperId:
|
|
12569
|
+
), { wrapperId: w, controlId: E } = Dt(
|
|
12570
12570
|
r && `${r}_to`,
|
|
12571
12571
|
n
|
|
12572
12572
|
), T = s.useRef(null), N = s.useRef(null), x = s.useRef(null), I = s.useRef(null), k = s.useRef(null), A = Z.splitMomentInDateTimeParts(
|
|
@@ -12575,7 +12575,7 @@ function hu({
|
|
|
12575
12575
|
), _ = Z.splitMomentInDateTimeParts(
|
|
12576
12576
|
Array.isArray(p) ? p[1] : void 0,
|
|
12577
12577
|
m
|
|
12578
|
-
), [
|
|
12578
|
+
), [C, O] = s.useState(
|
|
12579
12579
|
A[0]
|
|
12580
12580
|
), [R, $] = s.useState(_[0]), [G, M] = s.useState(
|
|
12581
12581
|
A[1]
|
|
@@ -12583,14 +12583,14 @@ function hu({
|
|
|
12583
12583
|
A[2]
|
|
12584
12584
|
), [oe, ie] = s.useState(
|
|
12585
12585
|
_[2]
|
|
12586
|
-
), [
|
|
12586
|
+
), [L, j] = s.useState(null), { showPopup: te, doShowPopup: Y, doHidePopup: U } = ps(T, k);
|
|
12587
12587
|
function V(ne) {
|
|
12588
12588
|
n && (n.setValue(ne), n.markAsDirty()), l && l(ne);
|
|
12589
12589
|
}
|
|
12590
12590
|
function X(ne) {
|
|
12591
12591
|
return ne && /^design-system:/.test(ne.label) ? h(ne.label) : ne.label;
|
|
12592
12592
|
}
|
|
12593
|
-
const Q =
|
|
12593
|
+
const Q = L && X(L) === "Before", ce = L && X(L) === "After";
|
|
12594
12594
|
function re(ne) {
|
|
12595
12595
|
const ke = p || [], De = Z.toMoment(ne);
|
|
12596
12596
|
let et;
|
|
@@ -12618,13 +12618,13 @@ function hu({
|
|
|
12618
12618
|
V(et);
|
|
12619
12619
|
}
|
|
12620
12620
|
function ue(ne) {
|
|
12621
|
-
|
|
12621
|
+
O(ne.target.value);
|
|
12622
12622
|
}
|
|
12623
12623
|
function ae(ne) {
|
|
12624
12624
|
Z.validateTimeString(ne.target.value, m) && M(ne.target.value);
|
|
12625
12625
|
}
|
|
12626
12626
|
function ee(ne, ke, De) {
|
|
12627
|
-
const et = ne != null ? ne :
|
|
12627
|
+
const et = ne != null ? ne : C, fe = ke != null ? ke : G, ot = De != null ? De : z;
|
|
12628
12628
|
if (et === A[0] && fe === A[1] && ot === A[2])
|
|
12629
12629
|
return;
|
|
12630
12630
|
const Nt = Z.createFrom(et);
|
|
@@ -12741,7 +12741,7 @@ function hu({
|
|
|
12741
12741
|
}
|
|
12742
12742
|
}
|
|
12743
12743
|
}, []), s.useEffect(() => {
|
|
12744
|
-
A[0] ?
|
|
12744
|
+
A[0] ? O(A[0]) : O(""), A[1] ? M(A[1]) : M(m ? "00:00" : "12:00"), m || (A[2] ? B(A[2]) : B("AM")), _[0] ? $(_[0]) : $(""), _[1] ? W(_[1]) : W(m ? "00:00" : "12:00"), m || (_[2] ? ie(_[2]) : ie("AM"));
|
|
12745
12745
|
}, [
|
|
12746
12746
|
A[0],
|
|
12747
12747
|
A[1],
|
|
@@ -12762,13 +12762,13 @@ function hu({
|
|
|
12762
12762
|
focusInputOnClick: !0,
|
|
12763
12763
|
ref: T
|
|
12764
12764
|
},
|
|
12765
|
-
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", t && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }),
|
|
12765
|
+
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", t && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }), L && /* @__PURE__ */ s.createElement(
|
|
12766
12766
|
"div",
|
|
12767
12767
|
{
|
|
12768
12768
|
"data-testid": `${u}_selected_preset`,
|
|
12769
12769
|
className: "sps-datepicker__selected-preset"
|
|
12770
12770
|
},
|
|
12771
|
-
/* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, X(
|
|
12771
|
+
/* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, X(L))
|
|
12772
12772
|
), /* @__PURE__ */ s.createElement(
|
|
12773
12773
|
"input",
|
|
12774
12774
|
{
|
|
@@ -12777,13 +12777,13 @@ function hu({
|
|
|
12777
12777
|
className: "sps-text-input__input",
|
|
12778
12778
|
"data-testid": `${u}_from_date_input`,
|
|
12779
12779
|
id: v,
|
|
12780
|
-
placeholder: !
|
|
12780
|
+
placeholder: !C && !L ? Cr : Q ? _[0] : ce ? A[0] : void 0,
|
|
12781
12781
|
onChange: ue,
|
|
12782
12782
|
onClick: Y,
|
|
12783
12783
|
onFocus: Y,
|
|
12784
12784
|
onBlur: () => ee(),
|
|
12785
12785
|
onKeyDown: Be("from"),
|
|
12786
|
-
value:
|
|
12786
|
+
value: L ? "" : C,
|
|
12787
12787
|
disabled: t
|
|
12788
12788
|
}
|
|
12789
12789
|
), p && !t && /* @__PURE__ */ s.createElement(
|
|
@@ -12793,7 +12793,7 @@ function hu({
|
|
|
12793
12793
|
onClick: Ke
|
|
12794
12794
|
}
|
|
12795
12795
|
))
|
|
12796
|
-
), !
|
|
12796
|
+
), !L && !m ? /* @__PURE__ */ s.createElement(is, null, /* @__PURE__ */ s.createElement(
|
|
12797
12797
|
gn,
|
|
12798
12798
|
{
|
|
12799
12799
|
className: "sps-time-input",
|
|
@@ -12832,23 +12832,23 @@ function hu({
|
|
|
12832
12832
|
inputNotClearable: !0,
|
|
12833
12833
|
autoFocusOnSelection: !0
|
|
12834
12834
|
}
|
|
12835
|
-
)), !
|
|
12835
|
+
)), !L && /* @__PURE__ */ s.createElement("span", { className: K("sps-datepicker__to") }, "to"), !L && /* @__PURE__ */ s.createElement("div", { className: K("sps-datetime-range-picker__pair") }, /* @__PURE__ */ s.createElement(
|
|
12836
12836
|
St,
|
|
12837
12837
|
{
|
|
12838
|
-
id:
|
|
12838
|
+
id: w,
|
|
12839
12839
|
className: Ze,
|
|
12840
12840
|
formMeta: n,
|
|
12841
12841
|
inputRef: I,
|
|
12842
12842
|
focusInputOnClick: !0,
|
|
12843
12843
|
ref: x
|
|
12844
12844
|
},
|
|
12845
|
-
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", t && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }),
|
|
12845
|
+
/* @__PURE__ */ s.createElement("div", { className: K("sps-form-control", t && "disabled") }, /* @__PURE__ */ s.createElement("i", { className: K("sps-text-input__icon", "sps-icon", "sps-icon-calendar") }), L && /* @__PURE__ */ s.createElement(
|
|
12846
12846
|
"div",
|
|
12847
12847
|
{
|
|
12848
12848
|
"data-testid": `${u}_selected_preset`,
|
|
12849
12849
|
className: "sps-datepicker__selected-preset"
|
|
12850
12850
|
},
|
|
12851
|
-
/* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, X(
|
|
12851
|
+
/* @__PURE__ */ s.createElement("span", { className: "sps-tag sps-tag--info" }, X(L))
|
|
12852
12852
|
), /* @__PURE__ */ s.createElement(
|
|
12853
12853
|
"input",
|
|
12854
12854
|
{
|
|
@@ -12857,7 +12857,7 @@ function hu({
|
|
|
12857
12857
|
className: "sps-text-input__input",
|
|
12858
12858
|
"data-testid": `${u}_to_date_input`,
|
|
12859
12859
|
id: E,
|
|
12860
|
-
placeholder: !R && !
|
|
12860
|
+
placeholder: !R && !L ? Cr : void 0,
|
|
12861
12861
|
onChange: wt,
|
|
12862
12862
|
onClick: Y,
|
|
12863
12863
|
onFocus: Y,
|
|
@@ -12919,7 +12919,7 @@ function hu({
|
|
|
12919
12919
|
type: "radio",
|
|
12920
12920
|
id: `sps-date-range-picker-${g}__range-custom`,
|
|
12921
12921
|
className: "sps-custom-control__input",
|
|
12922
|
-
checked: !
|
|
12922
|
+
checked: !L,
|
|
12923
12923
|
name: `sps-date-range-picker-${g}__range`,
|
|
12924
12924
|
onChange: () => ut()
|
|
12925
12925
|
}
|
|
@@ -12944,7 +12944,7 @@ function hu({
|
|
|
12944
12944
|
id: `sps-date-range-picker-${g}__range-${ke}`,
|
|
12945
12945
|
name: `sps-date-range-picker-${g}__range`,
|
|
12946
12946
|
onChange: () => ut(ne),
|
|
12947
|
-
checked:
|
|
12947
|
+
checked: L != null && L.definition ? L.definition === ne.definition : !1,
|
|
12948
12948
|
className: "sps-custom-control__input"
|
|
12949
12949
|
}
|
|
12950
12950
|
),
|
|
@@ -12968,7 +12968,7 @@ function hu({
|
|
|
12968
12968
|
minDate: o,
|
|
12969
12969
|
maxDate: a,
|
|
12970
12970
|
showTwoMonths: f,
|
|
12971
|
-
selectedPreset:
|
|
12971
|
+
selectedPreset: L && X(L)
|
|
12972
12972
|
}
|
|
12973
12973
|
)));
|
|
12974
12974
|
}
|
|
@@ -13185,7 +13185,7 @@ function yn() {
|
|
|
13185
13185
|
function v(i, d, S, b) {
|
|
13186
13186
|
return cl(i, d, S, b, !0).utc();
|
|
13187
13187
|
}
|
|
13188
|
-
function
|
|
13188
|
+
function w() {
|
|
13189
13189
|
return {
|
|
13190
13190
|
empty: !1,
|
|
13191
13191
|
unusedTokens: [],
|
|
@@ -13206,7 +13206,7 @@ function yn() {
|
|
|
13206
13206
|
};
|
|
13207
13207
|
}
|
|
13208
13208
|
function E(i) {
|
|
13209
|
-
return i._pf == null && (i._pf =
|
|
13209
|
+
return i._pf == null && (i._pf = w()), i._pf;
|
|
13210
13210
|
}
|
|
13211
13211
|
var T;
|
|
13212
13212
|
Array.prototype.some ? T = Array.prototype.some : T = function(i) {
|
|
@@ -13241,10 +13241,10 @@ function yn() {
|
|
|
13241
13241
|
function _(i) {
|
|
13242
13242
|
A(this, i), this._d = new Date(i._d != null ? i._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), k === !1 && (k = !0, r.updateOffset(this), k = !1);
|
|
13243
13243
|
}
|
|
13244
|
-
function
|
|
13244
|
+
function C(i) {
|
|
13245
13245
|
return i instanceof _ || i != null && i._isAMomentObject != null;
|
|
13246
13246
|
}
|
|
13247
|
-
function
|
|
13247
|
+
function O(i) {
|
|
13248
13248
|
r.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + i);
|
|
13249
13249
|
}
|
|
13250
13250
|
function R(i, d) {
|
|
@@ -13263,7 +13263,7 @@ function yn() {
|
|
|
13263
13263
|
D = arguments[P];
|
|
13264
13264
|
b.push(D);
|
|
13265
13265
|
}
|
|
13266
|
-
|
|
13266
|
+
O(
|
|
13267
13267
|
i + `
|
|
13268
13268
|
Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
13269
13269
|
` + new Error().stack
|
|
@@ -13274,7 +13274,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13274
13274
|
}
|
|
13275
13275
|
var $ = {};
|
|
13276
13276
|
function G(i, d) {
|
|
13277
|
-
r.deprecationHandler != null && r.deprecationHandler(i, d), $[i] || (
|
|
13277
|
+
r.deprecationHandler != null && r.deprecationHandler(i, d), $[i] || (O(d), $[i] = !0);
|
|
13278
13278
|
}
|
|
13279
13279
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
13280
13280
|
function M(i) {
|
|
@@ -13318,7 +13318,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13318
13318
|
var b = this._calendar[i] || this._calendar.sameElse;
|
|
13319
13319
|
return M(b) ? b.call(d, S) : b;
|
|
13320
13320
|
}
|
|
13321
|
-
function
|
|
13321
|
+
function L(i, d, S) {
|
|
13322
13322
|
var b = "" + Math.abs(i), D = d - b.length, P = i >= 0;
|
|
13323
13323
|
return (P ? S ? "+" : "" : "-") + Math.pow(10, Math.max(0, D)).toString().substr(1) + b;
|
|
13324
13324
|
}
|
|
@@ -13328,7 +13328,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13328
13328
|
typeof b == "string" && (D = function() {
|
|
13329
13329
|
return this[b]();
|
|
13330
13330
|
}), i && (U[i] = D), d && (U[d[0]] = function() {
|
|
13331
|
-
return
|
|
13331
|
+
return L(D.apply(this, arguments), d[1], d[2]);
|
|
13332
13332
|
}), S && (U[S] = function() {
|
|
13333
13333
|
return this.localeData().ordinal(
|
|
13334
13334
|
D.apply(this, arguments),
|
|
@@ -13550,7 +13550,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13550
13550
|
var mt = 0, an = 1, Jt = 2, at = 3, $t = 4, on = 5, Vn = 6, Zm = 7, Xm = 8;
|
|
13551
13551
|
V("Y", 0, 0, function() {
|
|
13552
13552
|
var i = this.year();
|
|
13553
|
-
return i <= 9999 ?
|
|
13553
|
+
return i <= 9999 ? L(i, 4) : "+" + i;
|
|
13554
13554
|
}), V(0, ["YY", 2], 0, function() {
|
|
13555
13555
|
return this.year() % 100;
|
|
13556
13556
|
}), V(0, ["YYYY", 4], 0, "year"), V(0, ["YYYYY", 5], 0, "year"), V(0, ["YYYYYY", 6, !0], 0, "year"), de("Y", Pn), de("YY", fe, ne), de("YYYY", gt, De), de("YYYYY", qt, et), de("YYYYYY", qt, et), Fe(["YYYYY", "YYYYYY"], mt), Fe("YYYY", function(i, d) {
|
|
@@ -13932,13 +13932,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
13932
13932
|
return this.hours() || 24;
|
|
13933
13933
|
}
|
|
13934
13934
|
V("H", ["HH", 2], 0, "hour"), V("h", ["hh", 2], 0, Ia), V("k", ["kk", 2], 0, Vf), V("hmm", 0, 0, function() {
|
|
13935
|
-
return "" + Ia.apply(this) +
|
|
13935
|
+
return "" + Ia.apply(this) + L(this.minutes(), 2);
|
|
13936
13936
|
}), V("hmmss", 0, 0, function() {
|
|
13937
|
-
return "" + Ia.apply(this) +
|
|
13937
|
+
return "" + Ia.apply(this) + L(this.minutes(), 2) + L(this.seconds(), 2);
|
|
13938
13938
|
}), V("Hmm", 0, 0, function() {
|
|
13939
|
-
return "" + this.hours() +
|
|
13939
|
+
return "" + this.hours() + L(this.minutes(), 2);
|
|
13940
13940
|
}), V("Hmmss", 0, 0, function() {
|
|
13941
|
-
return "" + this.hours() +
|
|
13941
|
+
return "" + this.hours() + L(this.minutes(), 2) + L(this.seconds(), 2);
|
|
13942
13942
|
});
|
|
13943
13943
|
function nl(i, d) {
|
|
13944
13944
|
V(i, 0, 0, function() {
|
|
@@ -14323,7 +14323,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14323
14323
|
}
|
|
14324
14324
|
function ll(i) {
|
|
14325
14325
|
var d = i._i, S = i._f;
|
|
14326
|
-
return i._locale = i._locale || cn(i._l), d === null || S === void 0 && d === "" ? x({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)),
|
|
14326
|
+
return i._locale = i._locale || cn(i._l), d === null || S === void 0 && d === "" ? x({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)), C(d) ? new _(_a(d)) : (u(d) ? i._d = d : o(S) ? dh(i) : S ? Ra(i) : mh(i), N(i) || (i._d = null), i));
|
|
14327
14327
|
}
|
|
14328
14328
|
function mh(i) {
|
|
14329
14329
|
var d = i._i;
|
|
@@ -14418,7 +14418,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14418
14418
|
function pl(i, d) {
|
|
14419
14419
|
V(i, 0, 0, function() {
|
|
14420
14420
|
var S = this.utcOffset(), b = "+";
|
|
14421
|
-
return S < 0 && (S = -S, b = "-"), b +
|
|
14421
|
+
return S < 0 && (S = -S, b = "-"), b + L(~~(S / 60), 2) + d + L(~~S % 60, 2);
|
|
14422
14422
|
});
|
|
14423
14423
|
}
|
|
14424
14424
|
pl("Z", ":"), pl("ZZ", ""), de("Z", Bn), de("ZZ", Bn), Fe(["Z", "ZZ"], function(i, d, S) {
|
|
@@ -14431,7 +14431,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14431
14431
|
}
|
|
14432
14432
|
function Ba(i, d) {
|
|
14433
14433
|
var S, b;
|
|
14434
|
-
return d._isUTC ? (S = d.clone(), b = (
|
|
14434
|
+
return d._isUTC ? (S = d.clone(), b = (C(i) || u(i) ? i.valueOf() : Ye(i).valueOf()) - S.valueOf(), S._d.setTime(S._d.valueOf() + b), r.updateOffset(S, !1), S) : Ye(i).local();
|
|
14435
14435
|
}
|
|
14436
14436
|
function Fa(i) {
|
|
14437
14437
|
return -Math.round(i._d.getTimezoneOffset());
|
|
@@ -14554,7 +14554,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14554
14554
|
return typeof i == "string" || i instanceof String;
|
|
14555
14555
|
}
|
|
14556
14556
|
function Vh(i) {
|
|
14557
|
-
return
|
|
14557
|
+
return C(i) || u(i) || Sl(i) || m(i) || Kh(i) || $h(i) || i === null || i === void 0;
|
|
14558
14558
|
}
|
|
14559
14559
|
function $h(i) {
|
|
14560
14560
|
var d = l(i) && !p(i), S = !1, b = [
|
|
@@ -14621,19 +14621,19 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14621
14621
|
return new _(this);
|
|
14622
14622
|
}
|
|
14623
14623
|
function Uh(i, d) {
|
|
14624
|
-
var S =
|
|
14624
|
+
var S = C(i) ? i : Ye(i);
|
|
14625
14625
|
return this.isValid() && S.isValid() ? (d = me(d) || "millisecond", d === "millisecond" ? this.valueOf() > S.valueOf() : S.valueOf() < this.clone().startOf(d).valueOf()) : !1;
|
|
14626
14626
|
}
|
|
14627
14627
|
function jh(i, d) {
|
|
14628
|
-
var S =
|
|
14628
|
+
var S = C(i) ? i : Ye(i);
|
|
14629
14629
|
return this.isValid() && S.isValid() ? (d = me(d) || "millisecond", d === "millisecond" ? this.valueOf() < S.valueOf() : this.clone().endOf(d).valueOf() < S.valueOf()) : !1;
|
|
14630
14630
|
}
|
|
14631
14631
|
function zh(i, d, S, b) {
|
|
14632
|
-
var D =
|
|
14632
|
+
var D = C(i) ? i : Ye(i), P = C(d) ? d : Ye(d);
|
|
14633
14633
|
return this.isValid() && D.isValid() && P.isValid() ? (b = b || "()", (b[0] === "(" ? this.isAfter(D, S) : !this.isBefore(D, S)) && (b[1] === ")" ? this.isBefore(P, S) : !this.isAfter(P, S))) : !1;
|
|
14634
14634
|
}
|
|
14635
14635
|
function qh(i, d) {
|
|
14636
|
-
var S =
|
|
14636
|
+
var S = C(i) ? i : Ye(i), b;
|
|
14637
14637
|
return this.isValid() && S.isValid() ? (d = me(d) || "millisecond", d === "millisecond" ? this.valueOf() === S.valueOf() : (b = S.valueOf(), this.clone().startOf(d).valueOf() <= b && b <= this.clone().endOf(d).valueOf())) : !1;
|
|
14638
14638
|
}
|
|
14639
14639
|
function Jh(i, d) {
|
|
@@ -14712,13 +14712,13 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
14712
14712
|
return this.localeData().postformat(d);
|
|
14713
14713
|
}
|
|
14714
14714
|
function rS(i, d) {
|
|
14715
|
-
return this.isValid() && (
|
|
14715
|
+
return this.isValid() && (C(i) && i.isValid() || Ye(i).isValid()) ? Kt({ to: this, from: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
14716
14716
|
}
|
|
14717
14717
|
function sS(i) {
|
|
14718
14718
|
return this.from(Ye(), i);
|
|
14719
14719
|
}
|
|
14720
14720
|
function aS(i, d) {
|
|
14721
|
-
return this.isValid() && (
|
|
14721
|
+
return this.isValid() && (C(i) && i.isValid() || Ye(i).isValid()) ? Kt({ from: this, to: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
|
|
14722
14722
|
}
|
|
14723
14723
|
function oS(i) {
|
|
14724
14724
|
return this.to(Ye(), i);
|
|
@@ -15356,7 +15356,7 @@ Arguments: ` + Array.prototype.slice.call(b).join("") + `
|
|
|
15356
15356
|
S._d = new Date(Ce(i));
|
|
15357
15357
|
});
|
|
15358
15358
|
//! moment.js
|
|
15359
|
-
return r.version = "2.30.1", a(Ye), r.fn = se, r.min = Sh, r.max = gh, r.now = bh, r.utc = v, r.unix = US, r.months = zS, r.isDate = u, r.locale = En, r.invalid = x, r.duration = Kt, r.isMoment =
|
|
15359
|
+
return r.version = "2.30.1", a(Ye), r.fn = se, r.min = Sh, r.max = gh, r.now = bh, r.utc = v, r.unix = US, r.months = zS, r.isDate = u, r.locale = En, r.invalid = x, r.duration = Kt, r.isMoment = C, r.weekdays = JS, r.parseZone = jS, r.localeData = cn, r.isDuration = Ds, r.monthsShort = qS, r.weekdaysMin = XS, r.defineLocale = Ma, r.updateLocale = jf, r.locales = zf, r.weekdaysShort = ZS, r.normalizeUnits = me, r.relativeTimeRounding = Dg, r.relativeTimeThreshold = Ng, r.calendarFormat = Wh, r.prototype = se, r.HTML5_FMT = {
|
|
15360
15360
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
15361
15361
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
15362
15362
|
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
@@ -16200,16 +16200,16 @@ function Mi(e) {
|
|
|
16200
16200
|
...p
|
|
16201
16201
|
} = e, f = s.Children.map(t, (u, h) => {
|
|
16202
16202
|
if (u.type.toString() !== s.Fragment.toString()) {
|
|
16203
|
-
const
|
|
16203
|
+
const w = parseInt(`${h / 2}`, 10) + 1;
|
|
16204
16204
|
return s.cloneElement(u, {
|
|
16205
|
-
style: { ...u.props.style, msGridRow:
|
|
16205
|
+
style: { ...u.props.style, msGridRow: w }
|
|
16206
16206
|
});
|
|
16207
16207
|
}
|
|
16208
16208
|
const g = u.props.children;
|
|
16209
16209
|
return s.Children.map(
|
|
16210
16210
|
g,
|
|
16211
|
-
(
|
|
16212
|
-
style: { ...
|
|
16211
|
+
(w) => s.cloneElement(w, {
|
|
16212
|
+
style: { ...w.props.style, msGridRow: h + 1 }
|
|
16213
16213
|
})
|
|
16214
16214
|
);
|
|
16215
16215
|
}), m = K(
|
|
@@ -16290,39 +16290,39 @@ function Ut({
|
|
|
16290
16290
|
title: g,
|
|
16291
16291
|
unsafelyReplaceClassName: v
|
|
16292
16292
|
}) {
|
|
16293
|
-
const
|
|
16293
|
+
const w = s.useRef({
|
|
16294
16294
|
instanceKey: Symbol("ds-react:tooltip:instance-key"),
|
|
16295
16295
|
prevIsShown: o,
|
|
16296
16296
|
hideTimer: null
|
|
16297
16297
|
}), [E, T] = s.useState(!1), N = s.useRef(null), x = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, I = s.useRef(null), k = s.useCallback(() => {
|
|
16298
|
-
|
|
16298
|
+
w.current.hideTimer && (window.clearTimeout(w.current.hideTimer), w.current.hideTimer = null);
|
|
16299
16299
|
}, []), A = s.useCallback(() => {
|
|
16300
16300
|
k(), T(!1);
|
|
16301
16301
|
}, []), _ = s.useCallback((ie = !1) => {
|
|
16302
|
-
var
|
|
16302
|
+
var L;
|
|
16303
16303
|
if (ie === !0 && Yn.size > 0)
|
|
16304
16304
|
return p && p(), !1;
|
|
16305
|
-
if (((
|
|
16305
|
+
if (((L = N.current) == null ? void 0 : L.textContent) === "")
|
|
16306
16306
|
return console.warn("SpsTooltip is empty; aborting show"), !1;
|
|
16307
16307
|
k();
|
|
16308
16308
|
for (const j of Yn.values())
|
|
16309
16309
|
j();
|
|
16310
16310
|
return T(!0), !0;
|
|
16311
|
-
}, []),
|
|
16312
|
-
ie && ie.stopPropagation(), T((
|
|
16313
|
-
}, []),
|
|
16311
|
+
}, []), C = s.useCallback((ie) => {
|
|
16312
|
+
ie && ie.stopPropagation(), T((L) => L ? (A(), !1) : _());
|
|
16313
|
+
}, []), O = s.useCallback((ie) => {
|
|
16314
16314
|
N.current && !N.current.contains(ie.target) && A();
|
|
16315
16315
|
}, []), R = s.useCallback(() => {
|
|
16316
|
-
k(),
|
|
16316
|
+
k(), w.current.hideTimer = window.setTimeout(A, a);
|
|
16317
16317
|
}, []), $ = s.useCallback((ie) => {
|
|
16318
16318
|
var X, Q, ce, re, ue, ae;
|
|
16319
|
-
const [
|
|
16320
|
-
if (["top", "bottom"].includes(
|
|
16319
|
+
const [L, j] = ie.split(" "), te = (X = x == null ? void 0 : x.current) == null ? void 0 : X.getBoundingClientRect(), Y = I.current ? parseInt(((Q = getComputedStyle(I.current)) == null ? void 0 : Q.width) || "0", 10) : 0, U = Y * Math.sqrt(2), V = (U - Y) / 2;
|
|
16320
|
+
if (["top", "bottom"].includes(L) && j !== "middle") {
|
|
16321
16321
|
if (!(te != null && te.width) || te.width > 50)
|
|
16322
16322
|
return 0;
|
|
16323
16323
|
const ee = I.current ? parseInt(((ce = getComputedStyle(I.current)) == null ? void 0 : ce.left) || "0", 10) : 0, Te = I.current ? parseInt(((re = getComputedStyle(I.current)) == null ? void 0 : re.right) || "0", 10) : 0, Qe = (ee < Te ? ee : Te) - V + U / 2;
|
|
16324
16324
|
return te.width / 2 - Qe;
|
|
16325
|
-
} else if (["left", "right"].includes(
|
|
16325
|
+
} else if (["left", "right"].includes(L) && j !== "middle") {
|
|
16326
16326
|
if ((te == null ? void 0 : te.height) && te.height > 50)
|
|
16327
16327
|
return 0;
|
|
16328
16328
|
const ee = I.current ? parseInt(((ue = getComputedStyle(I.current)) == null ? void 0 : ue.top) || "0", 10) : 0, Te = I.current ? parseInt(((ae = getComputedStyle(I.current)) == null ? void 0 : ae.bottom) || "0", 10) : 0, Qe = (ee < Te ? ee : Te) - V + U / 2;
|
|
@@ -16331,8 +16331,8 @@ function Ut({
|
|
|
16331
16331
|
return 0;
|
|
16332
16332
|
}, []);
|
|
16333
16333
|
s.useEffect(() => {
|
|
16334
|
-
if (typeof n == "string" && (x.current = document.getElementById(n)), E ? Yn.set(
|
|
16335
|
-
if (o !==
|
|
16334
|
+
if (typeof n == "string" && (x.current = document.getElementById(n)), E ? Yn.set(w.current.instanceKey, A) : Yn.has(w.current.instanceKey) && Yn.delete(w.current.instanceKey), u === Tt.MANUAL) {
|
|
16335
|
+
if (o !== w.current.prevIsShown)
|
|
16336
16336
|
switch (o) {
|
|
16337
16337
|
case "visible":
|
|
16338
16338
|
_();
|
|
@@ -16347,7 +16347,7 @@ function Ut({
|
|
|
16347
16347
|
R();
|
|
16348
16348
|
break;
|
|
16349
16349
|
}
|
|
16350
|
-
|
|
16350
|
+
w.current.prevIsShown = o;
|
|
16351
16351
|
}
|
|
16352
16352
|
}, [E, o]), s.useEffect(() => {
|
|
16353
16353
|
if (x.current)
|
|
@@ -16356,17 +16356,17 @@ function Ut({
|
|
|
16356
16356
|
x.current.addEventListener("mouseenter", _), x.current.addEventListener("mouseleave", R);
|
|
16357
16357
|
break;
|
|
16358
16358
|
case Tt.CLICK:
|
|
16359
|
-
x.current.addEventListener("click",
|
|
16359
|
+
x.current.addEventListener("click", C), document.addEventListener("click", O);
|
|
16360
16360
|
break;
|
|
16361
16361
|
case Tt.MANUAL:
|
|
16362
16362
|
break;
|
|
16363
16363
|
}
|
|
16364
16364
|
}, [x]), s.useEffect(() => {
|
|
16365
16365
|
var ie;
|
|
16366
|
-
((ie = N.current) == null ? void 0 : ie.textContent) === "" && E && (
|
|
16366
|
+
((ie = N.current) == null ? void 0 : ie.textContent) === "" && E && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), T(!1));
|
|
16367
16367
|
}, [e, E]), s.useEffect(
|
|
16368
16368
|
() => () => {
|
|
16369
|
-
Yn.has(
|
|
16369
|
+
Yn.has(w.current.instanceKey) && Yn.delete(w.current.instanceKey), x.current && (x.current.removeEventListener("mouseenter", _), x.current.removeEventListener("mouseleave", R), x.current.removeEventListener("click", C), document.removeEventListener("click", O));
|
|
16370
16370
|
},
|
|
16371
16371
|
[]
|
|
16372
16372
|
);
|
|
@@ -16394,13 +16394,13 @@ function Ut({
|
|
|
16394
16394
|
};
|
|
16395
16395
|
}, [E]);
|
|
16396
16396
|
function B(ie) {
|
|
16397
|
-
const
|
|
16397
|
+
const L = s.useRef(ie);
|
|
16398
16398
|
s.useEffect(() => {
|
|
16399
|
-
|
|
16399
|
+
L.current = ie;
|
|
16400
16400
|
}, [ie]), s.useLayoutEffect(() => {
|
|
16401
16401
|
const j = new MutationObserver((te) => {
|
|
16402
16402
|
for (let Y of te)
|
|
16403
|
-
(Y.type === "childList" || Y.type === "attributes") &&
|
|
16403
|
+
(Y.type === "childList" || Y.type === "attributes") && L.current();
|
|
16404
16404
|
});
|
|
16405
16405
|
return j.observe(document.body, {
|
|
16406
16406
|
attributes: !0,
|
|
@@ -16478,7 +16478,7 @@ function Oi(e) {
|
|
|
16478
16478
|
function v() {
|
|
16479
16479
|
return l && !l.isPristine() && !l.isValid();
|
|
16480
16480
|
}
|
|
16481
|
-
const [
|
|
16481
|
+
const [w, E] = s.useState(), [T, N] = s.useState(xe.HIDDEN);
|
|
16482
16482
|
s.useEffect(() => {
|
|
16483
16483
|
E(
|
|
16484
16484
|
v() || g() ? Xt.ERROR : Xt.HELP
|
|
@@ -16515,12 +16515,12 @@ function Oi(e) {
|
|
|
16515
16515
|
), /* @__PURE__ */ s.createElement(
|
|
16516
16516
|
Ut,
|
|
16517
16517
|
{
|
|
16518
|
-
kind:
|
|
16518
|
+
kind: w,
|
|
16519
16519
|
for: u,
|
|
16520
16520
|
showOn: Tt.MANUAL,
|
|
16521
16521
|
isShown: T
|
|
16522
16522
|
},
|
|
16523
|
-
Pt(
|
|
16523
|
+
Pt(w === Xt.ERROR ? a : o)
|
|
16524
16524
|
));
|
|
16525
16525
|
}
|
|
16526
16526
|
Object.assign(Oi, {
|
|
@@ -17106,14 +17106,14 @@ function Lr(e) {
|
|
|
17106
17106
|
spinningTitle: h,
|
|
17107
17107
|
tallOptionList: g,
|
|
17108
17108
|
unsafelyReplaceClassName: v,
|
|
17109
|
-
onOpen:
|
|
17109
|
+
onOpen: w,
|
|
17110
17110
|
onClose: E,
|
|
17111
17111
|
loading: T,
|
|
17112
17112
|
maxHeightOptionListPx: N,
|
|
17113
17113
|
maxHeightOptionListRem: x,
|
|
17114
17114
|
disableOptionsMemoization: I,
|
|
17115
17115
|
...k
|
|
17116
|
-
} = e, { t: A } = s.useContext(Ge), _ = tr(l), [
|
|
17116
|
+
} = e, { t: A } = s.useContext(Ge), _ = tr(l), [C, O] = s.useState(!1), [R, $] = s.useState(!1), [G, M] = s.useState(), H = f.map((re) => typeof re == "function" ? re : Object.assign(re[1], {
|
|
17117
17117
|
...kd,
|
|
17118
17118
|
...re[0]
|
|
17119
17119
|
})), W = `${_.current}-button`, z = `${_.current}-menu`;
|
|
@@ -17121,19 +17121,19 @@ function Lr(e) {
|
|
|
17121
17121
|
p ? (oe = c || Ga.DEFAULT, B = o) : (oe = Ga.ICON, B = o || rt.ELLIPSES);
|
|
17122
17122
|
const ie = s.useRef(null);
|
|
17123
17123
|
s.useEffect(() => {
|
|
17124
|
-
|
|
17125
|
-
}, [
|
|
17126
|
-
function
|
|
17127
|
-
|
|
17124
|
+
C && w ? w() : !C && E && E();
|
|
17125
|
+
}, [C]);
|
|
17126
|
+
function L() {
|
|
17127
|
+
O(!1);
|
|
17128
17128
|
}
|
|
17129
17129
|
function j(re) {
|
|
17130
|
-
re.stopPropagation(), re.nativeEvent.stopImmediatePropagation(), re.preventDefault(), !a && !u &&
|
|
17130
|
+
re.stopPropagation(), re.nativeEvent.stopImmediatePropagation(), re.preventDefault(), !a && !u && O(!C);
|
|
17131
17131
|
}
|
|
17132
17132
|
function te(re) {
|
|
17133
|
-
|
|
17133
|
+
O(re);
|
|
17134
17134
|
}
|
|
17135
17135
|
function Y() {
|
|
17136
|
-
|
|
17136
|
+
O(!1);
|
|
17137
17137
|
}
|
|
17138
17138
|
function U(re) {
|
|
17139
17139
|
a || ([
|
|
@@ -17144,20 +17144,20 @@ function Lr(e) {
|
|
|
17144
17144
|
].indexOf(re.key) > -1 && re.preventDefault(), re.persist(), M(re));
|
|
17145
17145
|
}
|
|
17146
17146
|
function V(re) {
|
|
17147
|
-
re.detail !== _.current &&
|
|
17147
|
+
re.detail !== _.current && O(!1);
|
|
17148
17148
|
}
|
|
17149
|
-
s.useEffect(() => (document.addEventListener("click",
|
|
17150
|
-
document.removeEventListener("click",
|
|
17149
|
+
s.useEffect(() => (document.addEventListener("click", L), document.addEventListener("DropdownOpened", V), () => {
|
|
17150
|
+
document.removeEventListener("click", L), document.removeEventListener("DropdownOpened", V);
|
|
17151
17151
|
}), []), s.useEffect(() => {
|
|
17152
|
-
if (
|
|
17152
|
+
if (C) {
|
|
17153
17153
|
const re = document.createEvent("CustomEvent");
|
|
17154
17154
|
re.initCustomEvent("DropdownOpened", !1, !1, _.current), document.dispatchEvent(re);
|
|
17155
17155
|
}
|
|
17156
|
-
}, [
|
|
17156
|
+
}, [C]);
|
|
17157
17157
|
const X = K(
|
|
17158
17158
|
v || "sps-dropdown",
|
|
17159
|
-
|
|
17160
|
-
|
|
17159
|
+
C && "sps-dropdown--open",
|
|
17160
|
+
C && "z-stratum-dropdown",
|
|
17161
17161
|
R && "sps-dropdown--opens-upward",
|
|
17162
17162
|
!p && "sps-dropdown--no-label",
|
|
17163
17163
|
a && "disabled",
|
|
@@ -17180,7 +17180,7 @@ function Lr(e) {
|
|
|
17180
17180
|
ds,
|
|
17181
17181
|
{
|
|
17182
17182
|
positionOverride: ce,
|
|
17183
|
-
isOpen:
|
|
17183
|
+
isOpen: C,
|
|
17184
17184
|
"aria-labelledby": W,
|
|
17185
17185
|
keyDown: G,
|
|
17186
17186
|
onOptionSelected: Y,
|
|
@@ -17206,7 +17206,7 @@ function Lr(e) {
|
|
|
17206
17206
|
id: W,
|
|
17207
17207
|
"aria-haspopup": "true",
|
|
17208
17208
|
"aria-controls": z,
|
|
17209
|
-
"aria-expanded":
|
|
17209
|
+
"aria-expanded": C ? !0 : void 0,
|
|
17210
17210
|
tabIndex: m,
|
|
17211
17211
|
disabled: a,
|
|
17212
17212
|
onClick: j
|
|
@@ -17616,33 +17616,33 @@ function Eu({
|
|
|
17616
17616
|
applyNestedStyles: g,
|
|
17617
17617
|
"data-testid": v
|
|
17618
17618
|
}) {
|
|
17619
|
-
const
|
|
17619
|
+
const w = a || r, E = s.useRef(null), T = s.useRef(null), [N, x] = s.useState(xe.HIDDEN), [I, k] = s.useState(!1), [A, _] = s.useState(m);
|
|
17620
17620
|
Hd(() => {
|
|
17621
17621
|
u == null || u(A);
|
|
17622
17622
|
}, [A]), s.useEffect(() => {
|
|
17623
|
-
if (
|
|
17624
|
-
const R =
|
|
17623
|
+
if (w || o) {
|
|
17624
|
+
const R = w && w.isFocused() || o && o.isFocused();
|
|
17625
17625
|
!I && R ? x(xe.VISIBLE) : I && !R && x(xe.HIDDEN), k(R || !1);
|
|
17626
17626
|
}
|
|
17627
17627
|
});
|
|
17628
|
-
const
|
|
17628
|
+
const C = K(
|
|
17629
17629
|
c || g ? "nested-styles-fieldset" : "sps-fieldset",
|
|
17630
|
-
(
|
|
17630
|
+
(w && !w.isPristine() && w.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
|
|
17631
17631
|
t,
|
|
17632
17632
|
f && !A && "sps-fieldset--collapsed",
|
|
17633
17633
|
p && "sps-fieldset--required-fields"
|
|
17634
17634
|
);
|
|
17635
|
-
function
|
|
17635
|
+
function O() {
|
|
17636
17636
|
x(N === xe.VISIBLE ? xe.HIDDEN : xe.VISIBLE);
|
|
17637
17637
|
}
|
|
17638
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className:
|
|
17638
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-fieldset-container" }, /* @__PURE__ */ s.createElement("fieldset", { className: C, "data-testid": v }, /* @__PURE__ */ s.createElement(
|
|
17639
17639
|
"legend",
|
|
17640
17640
|
{
|
|
17641
17641
|
className: "sps-fieldset__legend",
|
|
17642
17642
|
ref: E,
|
|
17643
17643
|
onMouseEnter: () => x(xe.VISIBLE),
|
|
17644
17644
|
onMouseLeave: () => x(xe.DELAYED_HIDDEN),
|
|
17645
|
-
onClick:
|
|
17645
|
+
onClick: O
|
|
17646
17646
|
},
|
|
17647
17647
|
f && /* @__PURE__ */ s.createElement(
|
|
17648
17648
|
Ir,
|
|
@@ -18004,50 +18004,52 @@ const ZD = {
|
|
|
18004
18004
|
};
|
|
18005
18005
|
function Tu(e) {
|
|
18006
18006
|
const {
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
|
|
18007
|
+
autoComplete: t,
|
|
18008
|
+
disabled: n,
|
|
18009
|
+
min: r = Number.MIN_SAFE_INTEGER,
|
|
18010
|
+
max: a = Number.MAX_SAFE_INTEGER,
|
|
18011
|
+
step: o = 1,
|
|
18012
|
+
onValueChange: l,
|
|
18013
|
+
unsafelyReplaceClassName: c,
|
|
18014
|
+
className: p,
|
|
18015
|
+
"data-testid": f,
|
|
18016
|
+
...m
|
|
18017
|
+
} = e, [u, h] = s.useState(Math.max(r, 0)), [g, v] = s.useState(!1);
|
|
18017
18018
|
s.useEffect(() => {
|
|
18018
|
-
|
|
18019
|
-
}, [
|
|
18020
|
-
const
|
|
18021
|
-
|
|
18022
|
-
},
|
|
18023
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
18019
|
+
l && typeof l == "function" && l(u), v(u < r || u > a);
|
|
18020
|
+
}, [u]);
|
|
18021
|
+
const w = () => u <= r ? !1 : (u > a ? h(a) : h((x) => x - o), !0), E = () => u >= a ? !1 : (u < r ? h(r) : h((x) => x + o), !0), T = (x) => {
|
|
18022
|
+
x.target.value !== "" && h(parseInt(x.target.value, 10));
|
|
18023
|
+
}, N = c || K("sps-incrementor sps-input-group sps-input-group__append", p);
|
|
18024
|
+
return /* @__PURE__ */ s.createElement("div", { className: N, ...m, "data-testid": f }, /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--icon" }, /* @__PURE__ */ s.createElement(
|
|
18024
18025
|
"button",
|
|
18025
18026
|
{
|
|
18026
18027
|
type: "button",
|
|
18027
|
-
"data-testid": `${
|
|
18028
|
-
onClick:
|
|
18029
|
-
disabled:
|
|
18030
|
-
"aria-label": `Subtract ${
|
|
18028
|
+
"data-testid": `${f}__minus`,
|
|
18029
|
+
onClick: w,
|
|
18030
|
+
disabled: n,
|
|
18031
|
+
"aria-label": `Subtract ${o}`
|
|
18031
18032
|
},
|
|
18032
18033
|
/* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-minus", "aria-hidden": "true" })
|
|
18033
18034
|
)), /* @__PURE__ */ s.createElement("div", { className: "sps-text-input" }, /* @__PURE__ */ s.createElement(
|
|
18034
18035
|
"input",
|
|
18035
18036
|
{
|
|
18036
18037
|
type: "text",
|
|
18037
|
-
className: K("sps-form-control",
|
|
18038
|
-
value:
|
|
18039
|
-
onChange:
|
|
18040
|
-
disabled:
|
|
18041
|
-
"data-testid": `${
|
|
18038
|
+
className: K("sps-form-control", g && "sps-input--error"),
|
|
18039
|
+
value: u,
|
|
18040
|
+
onChange: T,
|
|
18041
|
+
disabled: n,
|
|
18042
|
+
"data-testid": `${f}__input`,
|
|
18043
|
+
autoComplete: t
|
|
18042
18044
|
}
|
|
18043
18045
|
)), /* @__PURE__ */ s.createElement("div", { className: "sps-button sps-button--icon" }, /* @__PURE__ */ s.createElement(
|
|
18044
18046
|
"button",
|
|
18045
18047
|
{
|
|
18046
18048
|
type: "button",
|
|
18047
|
-
"data-testid": `${
|
|
18048
|
-
onClick:
|
|
18049
|
-
disabled:
|
|
18050
|
-
"aria-label": `Add ${
|
|
18049
|
+
"data-testid": `${f}__plus`,
|
|
18050
|
+
onClick: E,
|
|
18051
|
+
disabled: n,
|
|
18052
|
+
"aria-label": `Add ${o}`
|
|
18051
18053
|
},
|
|
18052
18054
|
/* @__PURE__ */ s.createElement("i", { className: "sps-icon sps-icon-plus-sign", "aria-hidden": "true" })
|
|
18053
18055
|
)));
|
|
@@ -18109,37 +18111,37 @@ function wu({
|
|
|
18109
18111
|
"data-testid": m,
|
|
18110
18112
|
...u
|
|
18111
18113
|
}) {
|
|
18112
|
-
const { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(null),
|
|
18114
|
+
const { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(null), w = s.useRef(null), E = s.useRef(null), [T, N] = s.useState(xe.HIDDEN), [x, I] = s.useState(xe.HIDDEN), [k, A] = s.useState(xe.HIDDEN), [_, C] = s.useState(
|
|
18113
18115
|
xe.HIDDEN
|
|
18114
18116
|
);
|
|
18115
|
-
function
|
|
18116
|
-
N(xe.HIDDEN), I(xe.HIDDEN), A(xe.HIDDEN),
|
|
18117
|
+
function O() {
|
|
18118
|
+
N(xe.HIDDEN), I(xe.HIDDEN), A(xe.HIDDEN), C(xe.HIDDEN);
|
|
18117
18119
|
}
|
|
18118
18120
|
function R() {
|
|
18119
18121
|
N(xe.DELAYED_HIDDEN), I(xe.DELAYED_HIDDEN), A(xe.DELAYED_HIDDEN);
|
|
18120
18122
|
}
|
|
18121
18123
|
function $(Y) {
|
|
18122
|
-
Y.preventDefault(),
|
|
18124
|
+
Y.preventDefault(), O(), A(bo(k));
|
|
18123
18125
|
}
|
|
18124
18126
|
function G() {
|
|
18125
|
-
return r && (r instanceof br && r.isVisibilyInvalid() || !(r instanceof br) && !r.isValid()) ? [x, I] : r && r instanceof br && r.hasPreventativeErrors() ? [_,
|
|
18127
|
+
return r && (r instanceof br && r.isVisibilyInvalid() || !(r instanceof br) && !r.isValid()) ? [x, I] : r && r instanceof br && r.hasPreventativeErrors() ? [_, C] : o ? [T, N] : a ? [k, A] : [xe.HIDDEN, () => {
|
|
18126
18128
|
}];
|
|
18127
18129
|
}
|
|
18128
18130
|
function M() {
|
|
18129
|
-
|
|
18131
|
+
O();
|
|
18130
18132
|
const [Y, U] = G();
|
|
18131
18133
|
U(bo(Y));
|
|
18132
18134
|
}
|
|
18133
18135
|
function H() {
|
|
18134
|
-
|
|
18136
|
+
O();
|
|
18135
18137
|
const [, Y] = G();
|
|
18136
18138
|
Y(xe.VISIBLE);
|
|
18137
18139
|
}
|
|
18138
18140
|
function W(Y) {
|
|
18139
|
-
Y.preventDefault(),
|
|
18141
|
+
Y.preventDefault(), O(), N(bo(T));
|
|
18140
18142
|
}
|
|
18141
18143
|
s.useEffect(() => {
|
|
18142
|
-
r && (r.onFocus = H, r.onBlur =
|
|
18144
|
+
r && (r.onFocus = H, r.onBlur = O);
|
|
18143
18145
|
}, [r]);
|
|
18144
18146
|
const z = K(f || "sps-form-group__label", t), [B, oe] = r instanceof br ? [r, void 0] : [void 0, r];
|
|
18145
18147
|
function ie() {
|
|
@@ -18161,7 +18163,7 @@ function wu({
|
|
|
18161
18163
|
}
|
|
18162
18164
|
return null;
|
|
18163
18165
|
}
|
|
18164
|
-
function
|
|
18166
|
+
function L() {
|
|
18165
18167
|
if (B) {
|
|
18166
18168
|
for (const Y of On)
|
|
18167
18169
|
if (B.hasPreventativeError(Y))
|
|
@@ -18173,7 +18175,7 @@ function wu({
|
|
|
18173
18175
|
{ type: nn }
|
|
18174
18176
|
]);
|
|
18175
18177
|
return s.useEffect(() => {
|
|
18176
|
-
B != null && B.hasPreventativeErrors() &&
|
|
18178
|
+
B != null && B.hasPreventativeErrors() && C(xe.VISIBLE);
|
|
18177
18179
|
}, [B == null ? void 0 : B.hasPreventativeErrors()]), /* @__PURE__ */ s.createElement(St, { formMeta: B, formControl: oe }, /* @__PURE__ */ s.createElement(
|
|
18178
18180
|
"label",
|
|
18179
18181
|
{
|
|
@@ -18223,7 +18225,7 @@ function wu({
|
|
|
18223
18225
|
/* @__PURE__ */ s.createElement(
|
|
18224
18226
|
"i",
|
|
18225
18227
|
{
|
|
18226
|
-
ref:
|
|
18228
|
+
ref: w,
|
|
18227
18229
|
"data-testid": `${m}__help-icon`,
|
|
18228
18230
|
className: K(
|
|
18229
18231
|
"sps-icon",
|
|
@@ -18240,7 +18242,7 @@ function wu({
|
|
|
18240
18242
|
Ut,
|
|
18241
18243
|
{
|
|
18242
18244
|
kind: Xt.DEFAULT,
|
|
18243
|
-
for:
|
|
18245
|
+
for: w,
|
|
18244
18246
|
showOn: Tt.MANUAL,
|
|
18245
18247
|
isShown: T,
|
|
18246
18248
|
altPosition: we.TOP_MIDDLE
|
|
@@ -18265,7 +18267,7 @@ function wu({
|
|
|
18265
18267
|
isShown: _,
|
|
18266
18268
|
altPosition: we.LEFT_MIDDLE
|
|
18267
18269
|
},
|
|
18268
|
-
Pt(p) ||
|
|
18270
|
+
Pt(p) || L()
|
|
18269
18271
|
), /* @__PURE__ */ s.createElement(
|
|
18270
18272
|
Ut,
|
|
18271
18273
|
{
|
|
@@ -18587,7 +18589,7 @@ const Ta = s.createContext({
|
|
|
18587
18589
|
});
|
|
18588
18590
|
},
|
|
18589
18591
|
[]
|
|
18590
|
-
),
|
|
18592
|
+
), w = s.useMemo(
|
|
18591
18593
|
() => ({
|
|
18592
18594
|
resizeable: t,
|
|
18593
18595
|
resizeState: l,
|
|
@@ -18605,7 +18607,7 @@ const Ta = s.createContext({
|
|
|
18605
18607
|
h
|
|
18606
18608
|
]
|
|
18607
18609
|
);
|
|
18608
|
-
return /* @__PURE__ */ s.createElement(Ta.Provider, { value:
|
|
18610
|
+
return /* @__PURE__ */ s.createElement(Ta.Provider, { value: w }, e);
|
|
18609
18611
|
}, sN = (e) => {
|
|
18610
18612
|
const t = /(auto|scroll)/, n = (c, p) => c.parentNode === null ? p : n(c.parentNode, p.concat([c])), r = (c, p) => getComputedStyle(c, null).getPropertyValue(p), a = (c) => r(c, "overflow") + r(c, "overflow-y"), o = (c) => t.test(a(c));
|
|
18611
18613
|
return ((c) => {
|
|
@@ -18708,8 +18710,8 @@ const Ta = s.createContext({
|
|
|
18708
18710
|
const T = r.scrollLeft, N = a == null ? void 0 : a.getBoundingClientRect(), x = r.getBoundingClientRect();
|
|
18709
18711
|
if (E && N && N.top <= E && E <= x.bottom - N.height && x.top <= E) {
|
|
18710
18712
|
if (c && Array.from(c).forEach((I, k) => {
|
|
18711
|
-
const A = I.getBoundingClientRect().width, _ = p[k].getBoundingClientRect().width,
|
|
18712
|
-
p[k].style.minWidth =
|
|
18713
|
+
const A = I.getBoundingClientRect().width, _ = p[k].getBoundingClientRect().width, C = `${Math.max(A, _)}px`;
|
|
18714
|
+
p[k].style.minWidth = C, p[k].style.width = C, p[k].style.maxWidth = C, I.style.minWidth = C, I.style.width = C, I.style.maxWidth = C;
|
|
18713
18715
|
}), a && e.current) {
|
|
18714
18716
|
a.style.position = "fixed", a.style.top = `${E}px`, a.style.overflow = "hidden";
|
|
18715
18717
|
const I = e.current.offsetWidth - e.current.clientWidth, k = `${x.width - I}px`;
|
|
@@ -18719,11 +18721,11 @@ const Ta = s.createContext({
|
|
|
18719
18721
|
} else
|
|
18720
18722
|
m && (r.removeChild(m), m = null, h());
|
|
18721
18723
|
r.scrollLeft = T, g();
|
|
18722
|
-
},
|
|
18724
|
+
}, w = () => {
|
|
18723
18725
|
h(), v(), g();
|
|
18724
18726
|
};
|
|
18725
|
-
return a && a.classList.contains("sps-table__head--pinned") && (u = sN(r) || window, u.addEventListener("scroll", v), window.addEventListener("resize",
|
|
18726
|
-
u && (u.removeEventListener("scroll", v), window.removeEventListener("resize",
|
|
18727
|
+
return a && a.classList.contains("sps-table__head--pinned") && (u = sN(r) || window, u.addEventListener("scroll", v), window.addEventListener("resize", w), r.addEventListener("scroll", g), w()), () => {
|
|
18728
|
+
u && (u.removeEventListener("scroll", v), window.removeEventListener("resize", w)), r.removeEventListener("scroll", g);
|
|
18727
18729
|
};
|
|
18728
18730
|
});
|
|
18729
18731
|
}, iN = (e, t) => {
|
|
@@ -18772,8 +18774,8 @@ function Rr({
|
|
|
18772
18774
|
onResizeStateChange: m,
|
|
18773
18775
|
...u
|
|
18774
18776
|
}) {
|
|
18775
|
-
const h = K(o || "sps-table-container", t), g = l ? l / 16 : c, v = g ? { maxHeight: `${g}rem` } : {},
|
|
18776
|
-
return iN(
|
|
18777
|
+
const h = K(o || "sps-table-container", t), g = l ? l / 16 : c, v = g ? { maxHeight: `${g}rem` } : {}, w = s.useRef(null);
|
|
18778
|
+
return iN(w, g), aN(w), oN(w, g, f), /* @__PURE__ */ s.createElement(
|
|
18777
18779
|
rN,
|
|
18778
18780
|
{
|
|
18779
18781
|
resizeable: p,
|
|
@@ -18782,7 +18784,7 @@ function Rr({
|
|
|
18782
18784
|
sort: r,
|
|
18783
18785
|
onSortChange: n
|
|
18784
18786
|
},
|
|
18785
|
-
/* @__PURE__ */ s.createElement("div", { ref:
|
|
18787
|
+
/* @__PURE__ */ s.createElement("div", { ref: w, className: h, style: v }, /* @__PURE__ */ s.createElement("div", { className: "sps-table__shadow shadow--top" }), /* @__PURE__ */ s.createElement("div", { className: "sps-table__shadow shadow--bottom" }), /* @__PURE__ */ s.createElement("table", { className: "sps-table", role: "table", "data-testid": `${a}`, ...u }, e))
|
|
18786
18788
|
);
|
|
18787
18789
|
}
|
|
18788
18790
|
Object.assign(Rr, {
|
|
@@ -18812,22 +18814,22 @@ const cN = ({
|
|
|
18812
18814
|
const u = Nu(e.current), h = (A = e.current) == null ? void 0 : A.querySelector(".sps-table__column-resizer"), g = (_ = e.current) == null ? void 0 : _.querySelector(".sps-table__column-resizer-guide");
|
|
18813
18815
|
function v() {
|
|
18814
18816
|
if (e.current && p && (h && (h.style.backgroundColor = xo.blue200), g && u && (g.style.height = `${u.getBoundingClientRect().height}px`, g.style.display = "block"), u)) {
|
|
18815
|
-
const
|
|
18816
|
-
for (let
|
|
18817
|
-
const R =
|
|
18818
|
-
|
|
18817
|
+
const C = u.querySelectorAll("thead > tr > th");
|
|
18818
|
+
for (let O = 0; O < C.length; O += 1) {
|
|
18819
|
+
const R = C[O].querySelector(".sps-table__column-resizer");
|
|
18820
|
+
C[O].style.cursor = "col-resize", C[O] !== e.current && R && (C[O].classList.remove("sps-table__header--resizeable"), R.style.display = "none");
|
|
18819
18821
|
}
|
|
18820
18822
|
}
|
|
18821
18823
|
}
|
|
18822
|
-
function
|
|
18824
|
+
function w() {
|
|
18823
18825
|
e.current && p && h && g && (h.style.right = `${m}px`, g.style.right = `${m}px`);
|
|
18824
18826
|
}
|
|
18825
18827
|
function E() {
|
|
18826
18828
|
if (e.current) {
|
|
18827
|
-
const
|
|
18828
|
-
e.current.style.width =
|
|
18829
|
-
const
|
|
18830
|
-
if (
|
|
18829
|
+
const C = f ? `${f}px` : "";
|
|
18830
|
+
e.current.style.width = C, e.current.style.maxWidth = C, e.current.style.minWidth = C;
|
|
18831
|
+
const O = e.current.querySelector(".sps-table__header-cell-body");
|
|
18832
|
+
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) {
|
|
18831
18833
|
const R = u.querySelectorAll("thead > tr > th");
|
|
18832
18834
|
for (let $ = 0; $ < R.length; $ += 1) {
|
|
18833
18835
|
const G = R[$].querySelector(".sps-table__header-cell-body"), M = R[$].querySelector(".sps-table__column-resizer");
|
|
@@ -18836,13 +18838,13 @@ const cN = ({
|
|
|
18836
18838
|
}
|
|
18837
18839
|
}
|
|
18838
18840
|
}
|
|
18839
|
-
const T = (
|
|
18840
|
-
!e.current || (
|
|
18841
|
-
}, N = (
|
|
18841
|
+
const T = (C) => {
|
|
18842
|
+
!e.current || (C.preventDefault(), p = C.clientX, f = e.current.clientWidth, v());
|
|
18843
|
+
}, N = (C) => {
|
|
18842
18844
|
if (!p || !e.current)
|
|
18843
18845
|
return;
|
|
18844
|
-
const
|
|
18845
|
-
|
|
18846
|
+
const O = Math.max(Math.min(p - C.clientX, 40), -40);
|
|
18847
|
+
O !== 0 && (p = C.clientX, m += O, f = Math.max(f - O, 40), w());
|
|
18846
18848
|
}, x = () => {
|
|
18847
18849
|
!e.current || !p || (p = 0, m = 0, E(), o(n, f));
|
|
18848
18850
|
}, I = () => {
|
|
@@ -18903,7 +18905,7 @@ function pt({
|
|
|
18903
18905
|
(N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), h());
|
|
18904
18906
|
}, v = s.useRef(null);
|
|
18905
18907
|
Du(c, v);
|
|
18906
|
-
const
|
|
18908
|
+
const w = s.useRef(null), { isResizeable: E } = cN({ tableHeaderRef: v, resizerRef: w, resizeKey: a }), T = K(
|
|
18907
18909
|
l || "sps-table__header",
|
|
18908
18910
|
n && "sps-table__header--control",
|
|
18909
18911
|
!r && "sps-table__header--sort-disabled",
|
|
@@ -18935,7 +18937,7 @@ function pt({
|
|
|
18935
18937
|
},
|
|
18936
18938
|
e
|
|
18937
18939
|
),
|
|
18938
|
-
E && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { ref:
|
|
18940
|
+
E && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { ref: w, className: K("sps-table__column-resizer") }), /* @__PURE__ */ s.createElement("span", { className: K("sps-table__column-resizer-guide") }))
|
|
18939
18941
|
);
|
|
18940
18942
|
}
|
|
18941
18943
|
Object.assign(pt, {
|
|
@@ -21268,7 +21270,7 @@ function Lu({
|
|
|
21268
21270
|
`sps-modal--${r}`,
|
|
21269
21271
|
`sps-modal--${a}`,
|
|
21270
21272
|
t
|
|
21271
|
-
), { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(document.body.style.overflow || ""),
|
|
21273
|
+
), { t: h } = s.useContext(Ge), g = s.useRef(null), v = s.useRef(document.body.style.overflow || ""), w = s.useRef(document.body.style.paddingRight || "");
|
|
21272
21274
|
s.useLayoutEffect(() => {
|
|
21273
21275
|
let x = !1;
|
|
21274
21276
|
if (document.body.style.overflow !== "hidden") {
|
|
@@ -21276,7 +21278,7 @@ function Lu({
|
|
|
21276
21278
|
document.body.style.paddingRight = I, document.body.style.overflow = "hidden", x = !0;
|
|
21277
21279
|
}
|
|
21278
21280
|
return () => {
|
|
21279
|
-
x && (document.body.style.overflow = v.current, document.body.style.paddingRight =
|
|
21281
|
+
x && (document.body.style.overflow = v.current, document.body.style.paddingRight = w.current);
|
|
21280
21282
|
};
|
|
21281
21283
|
}, []), s.useEffect(() => {
|
|
21282
21284
|
l && l.current ? l.current.focus() : g.current && g.current.focus();
|
|
@@ -21370,7 +21372,7 @@ function Ru({
|
|
|
21370
21372
|
}, [r]), s.useEffect(() => {
|
|
21371
21373
|
l && l.current ? l.current.focus() : v.current && v.current.focus();
|
|
21372
21374
|
}, [l]);
|
|
21373
|
-
const
|
|
21375
|
+
const w = s.useCallback(
|
|
21374
21376
|
(T) => {
|
|
21375
21377
|
if (a && T && T.key === "Escape" && o && o(), T && T.key === "Tab" && v.current) {
|
|
21376
21378
|
const N = v.current.querySelectorAll(
|
|
@@ -21381,9 +21383,9 @@ function Ru({
|
|
|
21381
21383
|
},
|
|
21382
21384
|
[o]
|
|
21383
21385
|
);
|
|
21384
|
-
s.useEffect(() => (window.addEventListener("keydown",
|
|
21385
|
-
window.removeEventListener("keydown",
|
|
21386
|
-
}), [
|
|
21386
|
+
s.useEffect(() => (window.addEventListener("keydown", w), () => {
|
|
21387
|
+
window.removeEventListener("keydown", w);
|
|
21388
|
+
}), [w]);
|
|
21387
21389
|
const [E] = zt(e);
|
|
21388
21390
|
return /* @__PURE__ */ s.createElement(
|
|
21389
21391
|
"div",
|
|
@@ -22049,7 +22051,7 @@ function Au({
|
|
|
22049
22051
|
onChange: h,
|
|
22050
22052
|
onSearchChange: g,
|
|
22051
22053
|
options: v,
|
|
22052
|
-
placeholder:
|
|
22054
|
+
placeholder: w,
|
|
22053
22055
|
tallOptionList: E,
|
|
22054
22056
|
textKey: T,
|
|
22055
22057
|
unsafelyReplaceClassName: N,
|
|
@@ -22058,8 +22060,8 @@ function Au({
|
|
|
22058
22060
|
loading: k,
|
|
22059
22061
|
icon: A,
|
|
22060
22062
|
maxHeightOptionListPx: _,
|
|
22061
|
-
maxHeightOptionListRem:
|
|
22062
|
-
disableOptionsMemoization:
|
|
22063
|
+
maxHeightOptionListRem: C,
|
|
22064
|
+
disableOptionsMemoization: O,
|
|
22063
22065
|
"data-testid": R,
|
|
22064
22066
|
...$
|
|
22065
22067
|
}) {
|
|
@@ -22073,7 +22075,7 @@ function Au({
|
|
|
22073
22075
|
s.useEffect(() => {
|
|
22074
22076
|
g && g(z.searchText);
|
|
22075
22077
|
}, [z.searchText]);
|
|
22076
|
-
const oe = s.useRef(null), ie = s.useRef(null),
|
|
22078
|
+
const oe = s.useRef(null), ie = s.useRef(null), L = s.useRef(null), j = s.useRef(null), te = s.useRef(null);
|
|
22077
22079
|
function Y() {
|
|
22078
22080
|
r && B({
|
|
22079
22081
|
searchText: ""
|
|
@@ -22090,7 +22092,7 @@ function Au({
|
|
|
22090
22092
|
function ce() {
|
|
22091
22093
|
setTimeout(() => {
|
|
22092
22094
|
var me;
|
|
22093
|
-
(me =
|
|
22095
|
+
(me = L.current) == null || me.focus();
|
|
22094
22096
|
}, 0);
|
|
22095
22097
|
}
|
|
22096
22098
|
function re(me) {
|
|
@@ -22155,7 +22157,7 @@ function Au({
|
|
|
22155
22157
|
case "Right":
|
|
22156
22158
|
case "ArrowRight":
|
|
22157
22159
|
if (z.activeTagIndex !== null) {
|
|
22158
|
-
z.activeTagIndex === G.length - 1 ? (B({ activeTagIndex: null }), V(), (Ke =
|
|
22160
|
+
z.activeTagIndex === G.length - 1 ? (B({ activeTagIndex: null }), V(), (Ke = L.current) == null || Ke.focus()) : (B({ activeTagIndex: z.activeTagIndex + 1 }), re(z.activeTagIndex + 1));
|
|
22159
22161
|
return;
|
|
22160
22162
|
}
|
|
22161
22163
|
break;
|
|
@@ -22197,7 +22199,7 @@ function Au({
|
|
|
22197
22199
|
formControl: p,
|
|
22198
22200
|
formMeta: f,
|
|
22199
22201
|
ref: oe,
|
|
22200
|
-
inputRef:
|
|
22202
|
+
inputRef: L,
|
|
22201
22203
|
focusInputOnClick: !0,
|
|
22202
22204
|
onKeyDown: Ae,
|
|
22203
22205
|
role: "listbox",
|
|
@@ -22235,11 +22237,11 @@ function Au({
|
|
|
22235
22237
|
"input",
|
|
22236
22238
|
{
|
|
22237
22239
|
type: "text",
|
|
22238
|
-
ref:
|
|
22240
|
+
ref: L,
|
|
22239
22241
|
"data-testid": `${R}__option-list-input`,
|
|
22240
22242
|
value: z.searchText,
|
|
22241
22243
|
className: "sps-text-input__input",
|
|
22242
|
-
placeholder: G.length === 0 ?
|
|
22244
|
+
placeholder: G.length === 0 ? w : void 0,
|
|
22243
22245
|
id: W,
|
|
22244
22246
|
onClick: Q,
|
|
22245
22247
|
onChange: Te,
|
|
@@ -22288,8 +22290,8 @@ function Au({
|
|
|
22288
22290
|
zeroState: I,
|
|
22289
22291
|
loading: k,
|
|
22290
22292
|
maxHeightPx: _,
|
|
22291
|
-
maxHeightRem:
|
|
22292
|
-
disableOptionsMemoization:
|
|
22293
|
+
maxHeightRem: C,
|
|
22294
|
+
disableOptionsMemoization: O,
|
|
22293
22295
|
onSpecialActionSelect: ve
|
|
22294
22296
|
}
|
|
22295
22297
|
)
|
|
@@ -22795,13 +22797,13 @@ function Ri(e) {
|
|
|
22795
22797
|
unknownPageCount: p = !1,
|
|
22796
22798
|
nextPageBtnDisabled: f = !1,
|
|
22797
22799
|
...m
|
|
22798
|
-
} = e, { t: u } = s.useContext(Ge), [h, g] = s.useState(r), [v,
|
|
22800
|
+
} = e, { t: u } = s.useContext(Ge), [h, g] = s.useState(r), [v, w] = s.useState(r);
|
|
22799
22801
|
s.useEffect(() => {
|
|
22800
|
-
|
|
22802
|
+
w(r), g(r);
|
|
22801
22803
|
}, [r]);
|
|
22802
22804
|
function E(I) {
|
|
22803
22805
|
const k = Bg(I, [1, t]);
|
|
22804
|
-
I !== v && (
|
|
22806
|
+
I !== v && (w(k), g(k), n && typeof n == "function" && n(k));
|
|
22805
22807
|
}
|
|
22806
22808
|
function T(I) {
|
|
22807
22809
|
g(Number(I.target.value) || "");
|
|
@@ -22890,37 +22892,37 @@ function Pu(e) {
|
|
|
22890
22892
|
nextPageBtnDisabled: u = !1,
|
|
22891
22893
|
resultsOnPage: h,
|
|
22892
22894
|
...g
|
|
22893
|
-
} = e, [v,
|
|
22895
|
+
} = e, [v, w] = vn({
|
|
22894
22896
|
page: r,
|
|
22895
22897
|
pageSize: o,
|
|
22896
22898
|
numPages: 0,
|
|
22897
22899
|
indices: [0, 0]
|
|
22898
22900
|
});
|
|
22899
|
-
function E(
|
|
22900
|
-
return c !== void 0 ? Math.ceil(c /
|
|
22901
|
+
function E(C = v.pageSize) {
|
|
22902
|
+
return c !== void 0 ? Math.ceil(c / C) : NaN;
|
|
22901
22903
|
}
|
|
22902
|
-
function T(
|
|
22903
|
-
const R = E(
|
|
22904
|
+
function T(C = v.page, O = v.pageSize) {
|
|
22905
|
+
const R = E(O), $ = C === R && c !== void 0 && c % O || O, G = h || (R === 0 ? 0 : $), M = (C - 1) * O;
|
|
22904
22906
|
return R === 0 ? [0, 0] : [M + 1, M + G];
|
|
22905
22907
|
}
|
|
22906
|
-
function N(
|
|
22907
|
-
const
|
|
22908
|
-
page:
|
|
22909
|
-
indices: T(
|
|
22908
|
+
function N(C) {
|
|
22909
|
+
const O = {
|
|
22910
|
+
page: C,
|
|
22911
|
+
indices: T(C)
|
|
22910
22912
|
};
|
|
22911
|
-
return
|
|
22913
|
+
return w(O), O;
|
|
22912
22914
|
}
|
|
22913
|
-
function x(
|
|
22915
|
+
function x(C, O) {
|
|
22914
22916
|
const R = {
|
|
22915
|
-
page:
|
|
22916
|
-
pageSize:
|
|
22917
|
-
numPages: E(
|
|
22918
|
-
indices: T(
|
|
22917
|
+
page: O,
|
|
22918
|
+
pageSize: C,
|
|
22919
|
+
numPages: E(C),
|
|
22920
|
+
indices: T(O, C)
|
|
22919
22921
|
};
|
|
22920
|
-
return
|
|
22922
|
+
return w(R), R;
|
|
22921
22923
|
}
|
|
22922
22924
|
s.useEffect(() => {
|
|
22923
|
-
|
|
22925
|
+
w({
|
|
22924
22926
|
numPages: E(),
|
|
22925
22927
|
indices: T()
|
|
22926
22928
|
});
|
|
@@ -22932,13 +22934,13 @@ function Pu(e) {
|
|
|
22932
22934
|
function I() {
|
|
22933
22935
|
return typeof c == "number" ? c : "many";
|
|
22934
22936
|
}
|
|
22935
|
-
function k(
|
|
22936
|
-
const
|
|
22937
|
-
n(
|
|
22937
|
+
function k(C) {
|
|
22938
|
+
const O = x(C.target.value, 1);
|
|
22939
|
+
n(O.page, O.pageSize, O.indices);
|
|
22938
22940
|
}
|
|
22939
|
-
function A(
|
|
22940
|
-
const
|
|
22941
|
-
n(
|
|
22941
|
+
function A(C) {
|
|
22942
|
+
const O = N(C);
|
|
22943
|
+
n(O.page, v.pageSize, O.indices);
|
|
22942
22944
|
}
|
|
22943
22945
|
const _ = K(p || "sps-pagination", t);
|
|
22944
22946
|
return /* @__PURE__ */ s.createElement("div", { className: _, "data-testid": l, ...g }, /* @__PURE__ */ s.createElement("div", { "data-testid": `${l}__size-selector`, className: "sps-page-size-selector" }, "View", /* @__PURE__ */ s.createElement(
|
|
@@ -23110,7 +23112,7 @@ function Bu({
|
|
|
23110
23112
|
ref: h,
|
|
23111
23113
|
unsafelyReplaceClassName: g,
|
|
23112
23114
|
value: v,
|
|
23113
|
-
...
|
|
23115
|
+
...w
|
|
23114
23116
|
}) {
|
|
23115
23117
|
const E = o || a, T = s.useRef(null), { wrapperId: N, controlId: x } = Dt(l), I = K(
|
|
23116
23118
|
g || "sps-radio-button",
|
|
@@ -23151,7 +23153,7 @@ function Bu({
|
|
|
23151
23153
|
checked: e,
|
|
23152
23154
|
disabled: r,
|
|
23153
23155
|
onChange: k,
|
|
23154
|
-
...
|
|
23156
|
+
...w
|
|
23155
23157
|
}
|
|
23156
23158
|
),
|
|
23157
23159
|
/* @__PURE__ */ s.createElement("label", { className: "sps-checkable__label", htmlFor: x }, f || "")
|
|
@@ -23850,14 +23852,14 @@ const AN = {
|
|
|
23850
23852
|
a
|
|
23851
23853
|
), [g, v] = qe(
|
|
23852
23854
|
c || (o ? o[0] : "")
|
|
23853
|
-
), [
|
|
23855
|
+
), [w, E] = qe(""), T = (k, A) => {
|
|
23854
23856
|
h(k), r && r(k, A);
|
|
23855
23857
|
}, N = (k) => {
|
|
23856
23858
|
v(k), l && l(k);
|
|
23857
|
-
}, x = (k) => k ? k.some((A) => A.name.toLowerCase().includes(
|
|
23859
|
+
}, x = (k) => k ? k.some((A) => A.name.toLowerCase().includes(w)) || k.some((A) => x(A.subNavItems || [])) : !1, I = n.map(
|
|
23858
23860
|
(k) => ({
|
|
23859
23861
|
...k,
|
|
23860
|
-
navItems: k.navItems.filter((A) => A.name.toLowerCase().includes(
|
|
23862
|
+
navItems: k.navItems.filter((A) => A.name.toLowerCase().includes(w) || x(A.subNavItems || []))
|
|
23861
23863
|
})
|
|
23862
23864
|
);
|
|
23863
23865
|
return a !== m.current && (h(a), m.current = a), /* @__PURE__ */ s.createElement("div", { className: "sps-side-nav sps-card" }, e && /* @__PURE__ */ s.createElement("div", { className: "sps-card__header", title: e }, /* @__PURE__ */ s.createElement("div", { className: "sps-card__title" }, t && /* @__PURE__ */ s.createElement("i", { className: `sps-icon sps-icon-${t}` }), e)), o && /* @__PURE__ */ s.createElement("nav", { className: "sps-nav sps-nav--tabs" }, o.map((k) => /* @__PURE__ */ s.createElement(
|
|
@@ -23905,7 +23907,7 @@ const AN = {
|
|
|
23905
23907
|
k.sectionTitle
|
|
23906
23908
|
),
|
|
23907
23909
|
k.navItems.map((_) => {
|
|
23908
|
-
var
|
|
23910
|
+
var C;
|
|
23909
23911
|
return /* @__PURE__ */ s.createElement(
|
|
23910
23912
|
Fu,
|
|
23911
23913
|
{
|
|
@@ -23917,10 +23919,10 @@ const AN = {
|
|
|
23917
23919
|
)
|
|
23918
23920
|
},
|
|
23919
23921
|
activeBranch: u,
|
|
23920
|
-
setActiveBranch: (
|
|
23921
|
-
T(
|
|
23922
|
+
setActiveBranch: (O, R) => {
|
|
23923
|
+
T(O, R);
|
|
23922
23924
|
},
|
|
23923
|
-
key: (
|
|
23925
|
+
key: (C = _.key) != null ? C : _.name
|
|
23924
23926
|
}
|
|
23925
23927
|
);
|
|
23926
23928
|
})
|
|
@@ -24322,7 +24324,7 @@ function Vu(e) {
|
|
|
24322
24324
|
spinningTitle: u,
|
|
24323
24325
|
unsafelyReplaceClassName: h,
|
|
24324
24326
|
...g
|
|
24325
|
-
} = e, v = s.useRef(null), [
|
|
24327
|
+
} = e, v = s.useRef(null), [w, E] = s.useState({ width: 0 }), [T, N] = s.useState(!1), [x, I] = s.useState(!1);
|
|
24326
24328
|
s.useLayoutEffect(() => {
|
|
24327
24329
|
v.current && E({
|
|
24328
24330
|
width: v.current.offsetWidth
|
|
@@ -24345,7 +24347,7 @@ function Vu(e) {
|
|
|
24345
24347
|
{
|
|
24346
24348
|
className: n,
|
|
24347
24349
|
"data-testid": r,
|
|
24348
|
-
style: { width:
|
|
24350
|
+
style: { width: w.width },
|
|
24349
24351
|
kind: f,
|
|
24350
24352
|
icon: p,
|
|
24351
24353
|
href: o,
|
|
@@ -24550,7 +24552,7 @@ function $u(e) {
|
|
|
24550
24552
|
o && "sps-summary-list-row--selected",
|
|
24551
24553
|
n
|
|
24552
24554
|
), [
|
|
24553
|
-
|
|
24555
|
+
w,
|
|
24554
24556
|
E
|
|
24555
24557
|
] = zt(t, [
|
|
24556
24558
|
{ type: sa }
|
|
@@ -24579,7 +24581,7 @@ function $u(e) {
|
|
|
24579
24581
|
},
|
|
24580
24582
|
E
|
|
24581
24583
|
),
|
|
24582
|
-
|
|
24584
|
+
w
|
|
24583
24585
|
);
|
|
24584
24586
|
}
|
|
24585
24587
|
Object.assign($u, {
|
|
@@ -24982,8 +24984,8 @@ function Hu({
|
|
|
24982
24984
|
suppressTooltips: m = !1,
|
|
24983
24985
|
...u
|
|
24984
24986
|
}) {
|
|
24985
|
-
const { t: h } = s.useContext(Ge), g = !!e.length, [v,
|
|
24986
|
-
|
|
24987
|
+
const { t: h } = s.useContext(Ge), g = !!e.length, [v, w] = s.useState(!1), [E, T] = s.useState(g), N = s.useRef(null), x = s.useRef(null), I = s.useCallback(() => {
|
|
24988
|
+
w(!1), o && o();
|
|
24987
24989
|
}, []);
|
|
24988
24990
|
s.useEffect(() => {
|
|
24989
24991
|
v ? window.addEventListener("resize", I) : window.removeEventListener("resize", I);
|
|
@@ -24996,13 +24998,13 @@ function Hu({
|
|
|
24996
24998
|
altPosition: t,
|
|
24997
24999
|
...A
|
|
24998
25000
|
}
|
|
24999
|
-
) : [{}, !1],
|
|
25001
|
+
) : [{}, !1], C = r.position || we.BOTTOM_RIGHT, O = r.kind || Xt.DEFAULT, R = e.filter((L) => L.unread).length, $ = e.filter((L) => L.status === Ls.IN_PROGRESS).length, G = e.some((L) => L.status === Ls.COMPLETED || L.status === Ls.ERRORED), M = s.useRef(o);
|
|
25000
25002
|
M.current = o;
|
|
25001
25003
|
const H = s.useRef(null), W = () => {
|
|
25002
|
-
g && !v ? (
|
|
25003
|
-
}, z = (
|
|
25004
|
+
g && !v ? (w(!0), a && a()) : v && (w(!1), o && o()), H.current && (H.current.scrollTop = 0);
|
|
25005
|
+
}, z = (L) => L.status === Ls.IN_PROGRESS ? Pl[L.status] : `sps-icon sps-icon-${Pl[L.status]}`;
|
|
25004
25006
|
s.useEffect(() => {
|
|
25005
|
-
v && !g && (
|
|
25007
|
+
v && !g && (w(!1), M.current && M.current());
|
|
25006
25008
|
}, [v, g]);
|
|
25007
25009
|
const B = s.useRef();
|
|
25008
25010
|
s.useEffect(() => {
|
|
@@ -25010,11 +25012,11 @@ function Hu({
|
|
|
25010
25012
|
B.current = void 0, T(!1);
|
|
25011
25013
|
}, Al)) : (B.current && (window.clearTimeout(B.current), B.current = void 0), T(!1));
|
|
25012
25014
|
}, [R]), s.useEffect(() => {
|
|
25013
|
-
const
|
|
25014
|
-
|
|
25015
|
+
const L = () => {
|
|
25016
|
+
w((j) => (j && M.current && M.current(), !1));
|
|
25015
25017
|
};
|
|
25016
|
-
return document.addEventListener("click",
|
|
25017
|
-
document.removeEventListener("click",
|
|
25018
|
+
return document.addEventListener("click", L), () => {
|
|
25019
|
+
document.removeEventListener("click", L);
|
|
25018
25020
|
};
|
|
25019
25021
|
}, []), s.useEffect(
|
|
25020
25022
|
() => () => {
|
|
@@ -25029,8 +25031,8 @@ function Hu({
|
|
|
25029
25031
|
!g && "sps-task-queue--no-tasks",
|
|
25030
25032
|
c
|
|
25031
25033
|
);
|
|
25032
|
-
function ie(
|
|
25033
|
-
return (
|
|
25034
|
+
function ie(L) {
|
|
25035
|
+
return (L.actions || []).map((j) => {
|
|
25034
25036
|
if (s.isValidElement(j)) {
|
|
25035
25037
|
if (j.type !== Je || j.props.kind !== Xe.ICON)
|
|
25036
25038
|
throw new Error("Task queue task action must be a config object or an SpsButton of kind ICON");
|
|
@@ -25043,7 +25045,7 @@ function Hu({
|
|
|
25043
25045
|
title: j.label,
|
|
25044
25046
|
disabled: j.disabled,
|
|
25045
25047
|
onClick: () => {
|
|
25046
|
-
j.onClick && j.onClick(
|
|
25048
|
+
j.onClick && j.onClick(L);
|
|
25047
25049
|
}
|
|
25048
25050
|
},
|
|
25049
25051
|
j.caption,
|
|
@@ -25061,8 +25063,8 @@ function Hu({
|
|
|
25061
25063
|
"div",
|
|
25062
25064
|
{
|
|
25063
25065
|
className: oe,
|
|
25064
|
-
onClick: (
|
|
25065
|
-
|
|
25066
|
+
onClick: (L) => {
|
|
25067
|
+
L.nativeEvent.stopImmediatePropagation();
|
|
25066
25068
|
},
|
|
25067
25069
|
"data-testid": p,
|
|
25068
25070
|
...u
|
|
@@ -25083,8 +25085,8 @@ function Hu({
|
|
|
25083
25085
|
Ut,
|
|
25084
25086
|
{
|
|
25085
25087
|
for: N,
|
|
25086
|
-
position:
|
|
25087
|
-
kind:
|
|
25088
|
+
position: C,
|
|
25089
|
+
kind: O,
|
|
25088
25090
|
showOn: g ? Tt.MANUAL : Tt.MOUSEOVER,
|
|
25089
25091
|
isShown: E && !v ? xe.VISIBLE : xe.HIDDEN,
|
|
25090
25092
|
hideDelay: Number(g) && Al
|
|
@@ -25104,25 +25106,25 @@ function Hu({
|
|
|
25104
25106
|
),
|
|
25105
25107
|
style: _
|
|
25106
25108
|
},
|
|
25107
|
-
/* @__PURE__ */ s.createElement("div", { ref: H, className: "sps-task-queue__task-list-tasks" }, e.map((
|
|
25109
|
+
/* @__PURE__ */ s.createElement("div", { ref: H, className: "sps-task-queue__task-list-tasks" }, e.map((L, j) => /* @__PURE__ */ s.createElement(
|
|
25108
25110
|
"div",
|
|
25109
25111
|
{
|
|
25110
25112
|
key: j,
|
|
25111
25113
|
className: K(
|
|
25112
25114
|
"sps-task-queue__task",
|
|
25113
|
-
|
|
25115
|
+
L.unread && "sps-task-queue__task--unread"
|
|
25114
25116
|
)
|
|
25115
25117
|
},
|
|
25116
|
-
/* @__PURE__ */ s.createElement("i", { className: z(
|
|
25117
|
-
/* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-description" }, /* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-heading" },
|
|
25118
|
+
/* @__PURE__ */ s.createElement("i", { className: z(L) }),
|
|
25119
|
+
/* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-description" }, /* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-heading" }, L.heading), L.subheading && /* @__PURE__ */ s.createElement(
|
|
25118
25120
|
"div",
|
|
25119
25121
|
{
|
|
25120
25122
|
className: "sps-task-queue__task-subheading",
|
|
25121
|
-
title:
|
|
25123
|
+
title: L.subheading
|
|
25122
25124
|
},
|
|
25123
|
-
|
|
25125
|
+
L.subheading
|
|
25124
25126
|
)),
|
|
25125
|
-
|
|
25127
|
+
L.actions && !!L.actions.length && /* @__PURE__ */ s.createElement("div", { className: "sps-task-queue__task-actions" }, ie(L))
|
|
25126
25128
|
))),
|
|
25127
25129
|
G && 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"))))
|
|
25128
25130
|
)
|
|
@@ -25485,19 +25487,19 @@ const YN = {
|
|
|
25485
25487
|
value: h = "",
|
|
25486
25488
|
additionalText: g,
|
|
25487
25489
|
notClearable: v,
|
|
25488
|
-
...
|
|
25490
|
+
...w
|
|
25489
25491
|
}, E) => {
|
|
25490
25492
|
const T = r || n, { wrapperId: N, controlId: x } = Dt(o, T), I = s.useRef(null);
|
|
25491
|
-
function k(
|
|
25492
|
-
T && (T.setValue(
|
|
25493
|
+
function k(O, R) {
|
|
25494
|
+
T && (T.setValue(O), T.markAsDirty()), c && I.current && c(R || new nr(I.current));
|
|
25493
25495
|
}
|
|
25494
25496
|
function A() {
|
|
25495
25497
|
I.current && (I.current.value = "", k(""));
|
|
25496
25498
|
}
|
|
25497
|
-
function _(
|
|
25498
|
-
k(
|
|
25499
|
+
function _(O) {
|
|
25500
|
+
k(O.target.value, O);
|
|
25499
25501
|
}
|
|
25500
|
-
const
|
|
25502
|
+
const C = K(
|
|
25501
25503
|
u || "sps-text-input",
|
|
25502
25504
|
e
|
|
25503
25505
|
);
|
|
@@ -25505,7 +25507,7 @@ const YN = {
|
|
|
25505
25507
|
St,
|
|
25506
25508
|
{
|
|
25507
25509
|
id: N,
|
|
25508
|
-
className:
|
|
25510
|
+
className: C,
|
|
25509
25511
|
formControl: n,
|
|
25510
25512
|
formMeta: r,
|
|
25511
25513
|
inputRef: I,
|
|
@@ -25527,7 +25529,7 @@ const YN = {
|
|
|
25527
25529
|
title: m,
|
|
25528
25530
|
value: h,
|
|
25529
25531
|
disabled: t,
|
|
25530
|
-
...
|
|
25532
|
+
...w
|
|
25531
25533
|
}
|
|
25532
25534
|
), !v && h && !t && /* @__PURE__ */ s.createElement(
|
|
25533
25535
|
"i",
|
|
@@ -25688,9 +25690,9 @@ function Wu({
|
|
|
25688
25690
|
additionalText: g,
|
|
25689
25691
|
...v
|
|
25690
25692
|
}) {
|
|
25691
|
-
const
|
|
25692
|
-
function x(_,
|
|
25693
|
-
|
|
25693
|
+
const w = r || n, { wrapperId: E, controlId: T } = Dt(a, w), N = s.useRef(null);
|
|
25694
|
+
function x(_, C) {
|
|
25695
|
+
w && (w.setValue(_), w.markAsDirty()), l && N.current && l(C || new nr(N.current));
|
|
25694
25696
|
}
|
|
25695
25697
|
function I() {
|
|
25696
25698
|
N.current && (N.current.value = "", x(""));
|
|
@@ -25883,13 +25885,13 @@ function Yu(e) {
|
|
|
25883
25885
|
...v
|
|
25884
25886
|
} = e;
|
|
25885
25887
|
nv("SpsToggle", Gu, e);
|
|
25886
|
-
const
|
|
25888
|
+
const w = l || o, [E, T] = s.useState(t), { wrapperId: N, controlId: x } = Dt(c, w), I = `${N}_status-label`, k = `${N}_description`, A = s.useRef(null);
|
|
25887
25889
|
s.useEffect(() => T(t), [t]);
|
|
25888
|
-
function _(
|
|
25890
|
+
function _(O) {
|
|
25889
25891
|
var R;
|
|
25890
|
-
T(
|
|
25892
|
+
T(O.target.checked), w && (w.setValue(O.target.checked), w.markAsDirty()), m && m(O.target.checked), (R = A.current) == null || R.focus();
|
|
25891
25893
|
}
|
|
25892
|
-
const
|
|
25894
|
+
const C = K(
|
|
25893
25895
|
g || "sps-toggle",
|
|
25894
25896
|
E && "sps-toggle--active",
|
|
25895
25897
|
f && "sps-toggle--large",
|
|
@@ -25906,7 +25908,7 @@ function Yu(e) {
|
|
|
25906
25908
|
ref: u,
|
|
25907
25909
|
"data-testid": `${h}`
|
|
25908
25910
|
},
|
|
25909
|
-
/* @__PURE__ */ s.createElement("div", { className:
|
|
25911
|
+
/* @__PURE__ */ s.createElement("div", { className: C }, /* @__PURE__ */ s.createElement(
|
|
25910
25912
|
"input",
|
|
25911
25913
|
{
|
|
25912
25914
|
type: "checkbox",
|
|
@@ -27891,7 +27893,7 @@ function am({
|
|
|
27891
27893
|
"data-testid": h,
|
|
27892
27894
|
...g
|
|
27893
27895
|
}) {
|
|
27894
|
-
const v = r || n, { wrapperId:
|
|
27896
|
+
const v = r || n, { wrapperId: w, controlId: E } = Dt(a, v), [T, N] = vn({
|
|
27895
27897
|
keyDown: null,
|
|
27896
27898
|
searchText: "",
|
|
27897
27899
|
activeTagIndex: null,
|
|
@@ -27912,11 +27914,11 @@ function am({
|
|
|
27912
27914
|
new nr({ value: B })
|
|
27913
27915
|
);
|
|
27914
27916
|
}
|
|
27915
|
-
function
|
|
27916
|
-
const oe = (f || []).filter((ie,
|
|
27917
|
+
function C(B) {
|
|
27918
|
+
const oe = (f || []).filter((ie, L) => L !== B);
|
|
27917
27919
|
_(oe);
|
|
27918
27920
|
}
|
|
27919
|
-
function
|
|
27921
|
+
function O(B) {
|
|
27920
27922
|
N({ searchText: B.target.value });
|
|
27921
27923
|
}
|
|
27922
27924
|
function R(B) {
|
|
@@ -27943,24 +27945,24 @@ function am({
|
|
|
27943
27945
|
function M(B) {
|
|
27944
27946
|
var oe;
|
|
27945
27947
|
if (!t) {
|
|
27946
|
-
const ie = !B.target.selectionStart && f && f.length,
|
|
27948
|
+
const ie = !B.target.selectionStart && f && f.length, L = f ? f.length : 0;
|
|
27947
27949
|
switch (B.key) {
|
|
27948
27950
|
case "Backspace":
|
|
27949
|
-
if (T.activeTagIndex ===
|
|
27950
|
-
|
|
27951
|
+
if (T.activeTagIndex === L - 1) {
|
|
27952
|
+
C(T.activeTagIndex), A();
|
|
27951
27953
|
return;
|
|
27952
27954
|
}
|
|
27953
27955
|
if (T.activeTagIndex !== null) {
|
|
27954
|
-
|
|
27956
|
+
C(T.activeTagIndex);
|
|
27955
27957
|
return;
|
|
27956
27958
|
}
|
|
27957
27959
|
if (ie) {
|
|
27958
|
-
_(f.slice(0,
|
|
27960
|
+
_(f.slice(0, L - 1)), A();
|
|
27959
27961
|
return;
|
|
27960
27962
|
}
|
|
27961
27963
|
break;
|
|
27962
27964
|
case "Delete":
|
|
27963
|
-
T.activeTagIndex !== null && (
|
|
27965
|
+
T.activeTagIndex !== null && (C(T.activeTagIndex), A());
|
|
27964
27966
|
break;
|
|
27965
27967
|
case "Enter":
|
|
27966
27968
|
case "Tab":
|
|
@@ -27975,14 +27977,14 @@ function am({
|
|
|
27975
27977
|
case "Left":
|
|
27976
27978
|
case "ArrowLeft":
|
|
27977
27979
|
if (ie) {
|
|
27978
|
-
T.activeTagIndex === null ? (N({ activeTagIndex:
|
|
27980
|
+
T.activeTagIndex === null ? (N({ activeTagIndex: L - 1 }), R(L - 1)) : T.activeTagIndex > 0 && (N({ activeTagIndex: T.activeTagIndex - 1 }), R(T.activeTagIndex - 1));
|
|
27979
27981
|
return;
|
|
27980
27982
|
}
|
|
27981
27983
|
break;
|
|
27982
27984
|
case "Right":
|
|
27983
27985
|
case "ArrowRight":
|
|
27984
27986
|
if (T.activeTagIndex !== null) {
|
|
27985
|
-
T.activeTagIndex ===
|
|
27987
|
+
T.activeTagIndex === L - 1 ? (N({ activeTagIndex: null }), (oe = I.current) == null || oe.focus()) : (N({ activeTagIndex: T.activeTagIndex + 1 }), R(T.activeTagIndex + 1));
|
|
27986
27988
|
return;
|
|
27987
27989
|
}
|
|
27988
27990
|
break;
|
|
@@ -27999,11 +28001,11 @@ function am({
|
|
|
27999
28001
|
p || "sps-multi-select",
|
|
28000
28002
|
t && "sps-form-control--disabled",
|
|
28001
28003
|
e
|
|
28002
|
-
), z = new Array((f == null ? void 0 : f.length) || 0).fill(0).map((B, oe) => `${
|
|
28004
|
+
), z = new Array((f == null ? void 0 : f.length) || 0).fill(0).map((B, oe) => `${w}_tag-${oe}`);
|
|
28003
28005
|
return /* @__PURE__ */ s.createElement(
|
|
28004
28006
|
St,
|
|
28005
28007
|
{
|
|
28006
|
-
id:
|
|
28008
|
+
id: w,
|
|
28007
28009
|
className: W,
|
|
28008
28010
|
formControl: n,
|
|
28009
28011
|
formMeta: r,
|
|
@@ -28038,7 +28040,7 @@ function am({
|
|
|
28038
28040
|
disabled: t,
|
|
28039
28041
|
"aria-selected": "true",
|
|
28040
28042
|
key: z[oe],
|
|
28041
|
-
onRemove: () =>
|
|
28043
|
+
onRemove: () => C(oe)
|
|
28042
28044
|
},
|
|
28043
28045
|
/* @__PURE__ */ s.createElement("span", null, B)
|
|
28044
28046
|
)), /* @__PURE__ */ s.createElement(
|
|
@@ -28052,7 +28054,7 @@ function am({
|
|
|
28052
28054
|
placeholder: T.searchText.length === 0 && (!f || f.length === 0) ? c : void 0,
|
|
28053
28055
|
id: E,
|
|
28054
28056
|
onBlur: G,
|
|
28055
|
-
onChange:
|
|
28057
|
+
onChange: O,
|
|
28056
28058
|
onKeyDown: M,
|
|
28057
28059
|
disabled: t,
|
|
28058
28060
|
role: "listbox",
|
|
@@ -28272,72 +28274,74 @@ function om({
|
|
|
28272
28274
|
onChange: a,
|
|
28273
28275
|
value: o,
|
|
28274
28276
|
twentyFourHour: l = !1,
|
|
28275
|
-
"data-testid": c
|
|
28277
|
+
"data-testid": c,
|
|
28278
|
+
...p
|
|
28276
28279
|
}) {
|
|
28277
|
-
var
|
|
28278
|
-
const { current:
|
|
28279
|
-
function
|
|
28280
|
-
n && (n.setValue(
|
|
28281
|
-
}
|
|
28282
|
-
function
|
|
28283
|
-
Z.validateTimeString(
|
|
28284
|
-
}
|
|
28285
|
-
function
|
|
28286
|
-
if (Z.validateTimeString(
|
|
28287
|
-
const
|
|
28288
|
-
|
|
28280
|
+
var C;
|
|
28281
|
+
const { current: f } = tr(r), m = l ? o : o == null ? void 0 : o.split(" ")[0], u = Z.validateTimeString(m, l) ? Z.padIncompleteTimeString(m, l) : "", h = l ? "" : (C = o == null ? void 0 : o.split(" ")[1]) == null ? void 0 : C.toUpperCase(), g = u && id.find((O) => O === h) || "", [v, w] = s.useState(u), [E, T] = s.useState(g || "AM");
|
|
28282
|
+
function N(O) {
|
|
28283
|
+
n && (n.setValue(O || ""), n.markAsDirty()), a && a(O || "");
|
|
28284
|
+
}
|
|
28285
|
+
function x(O) {
|
|
28286
|
+
Z.validateTimeString(O.target.value, l) && w(O.target.value);
|
|
28287
|
+
}
|
|
28288
|
+
function I(O) {
|
|
28289
|
+
if (Z.validateTimeString(O != null ? O : v, l)) {
|
|
28290
|
+
const R = Z.padIncompleteTimeString(O != null ? O : v, l);
|
|
28291
|
+
w(R), N(R && !l ? `${R} ${E}` : R || "");
|
|
28289
28292
|
} else
|
|
28290
|
-
|
|
28293
|
+
N("");
|
|
28291
28294
|
}
|
|
28292
|
-
function
|
|
28293
|
-
|
|
28294
|
-
const
|
|
28295
|
-
|
|
28295
|
+
function k(O) {
|
|
28296
|
+
T(O.target.value);
|
|
28297
|
+
const R = Z.padIncompleteTimeString(v, l);
|
|
28298
|
+
R && !l && N(`${R} ${O.target.value}`);
|
|
28296
28299
|
}
|
|
28297
|
-
function
|
|
28298
|
-
Z.validateTimeString(
|
|
28300
|
+
function A(O) {
|
|
28301
|
+
Z.validateTimeString(O, l) && (w(O != null ? O : ""), setTimeout(() => I(O), 0));
|
|
28299
28302
|
}
|
|
28300
28303
|
s.useEffect(() => {
|
|
28301
|
-
|
|
28302
|
-
}, [
|
|
28303
|
-
|
|
28304
|
-
}, [
|
|
28305
|
-
const
|
|
28304
|
+
u !== v && w(u);
|
|
28305
|
+
}, [u]), s.useEffect(() => {
|
|
28306
|
+
g && g !== E && T(g);
|
|
28307
|
+
}, [g]);
|
|
28308
|
+
const _ = K("sps-time-input", e);
|
|
28306
28309
|
return l ? /* @__PURE__ */ s.createElement(
|
|
28307
28310
|
gn,
|
|
28308
28311
|
{
|
|
28309
|
-
id:
|
|
28312
|
+
id: f,
|
|
28310
28313
|
"data-testid": c,
|
|
28311
|
-
className:
|
|
28314
|
+
className: _,
|
|
28312
28315
|
suggestions: Io,
|
|
28313
28316
|
zeroState: "Custom time",
|
|
28314
28317
|
placeholder: "00:00",
|
|
28315
|
-
value:
|
|
28316
|
-
onChange:
|
|
28317
|
-
onBlur: () =>
|
|
28318
|
-
onSelectionChange:
|
|
28319
|
-
onKeyDown: (
|
|
28320
|
-
|
|
28318
|
+
value: v,
|
|
28319
|
+
onChange: x,
|
|
28320
|
+
onBlur: () => I(),
|
|
28321
|
+
onSelectionChange: A,
|
|
28322
|
+
onKeyDown: (O) => {
|
|
28323
|
+
O.key === "Enter" && I();
|
|
28321
28324
|
},
|
|
28322
28325
|
disabled: t,
|
|
28323
28326
|
inputNotClearable: !0,
|
|
28324
|
-
autoFocusOnSelection: !0
|
|
28327
|
+
autoFocusOnSelection: !0,
|
|
28328
|
+
...p
|
|
28325
28329
|
}
|
|
28326
28330
|
) : /* @__PURE__ */ s.createElement(is, null, /* @__PURE__ */ s.createElement(
|
|
28327
28331
|
gn,
|
|
28328
28332
|
{
|
|
28329
|
-
id:
|
|
28333
|
+
id: f,
|
|
28330
28334
|
"data-testid": c,
|
|
28331
|
-
className:
|
|
28335
|
+
className: _,
|
|
28332
28336
|
suggestions: ko,
|
|
28333
28337
|
zeroState: "Custom time",
|
|
28334
28338
|
placeholder: "12:00",
|
|
28335
|
-
value:
|
|
28336
|
-
onChange:
|
|
28337
|
-
onBlur: () =>
|
|
28338
|
-
onSelectionChange:
|
|
28339
|
-
onKeyDown: (
|
|
28340
|
-
|
|
28339
|
+
value: v,
|
|
28340
|
+
onChange: x,
|
|
28341
|
+
onBlur: () => I(),
|
|
28342
|
+
onSelectionChange: A,
|
|
28343
|
+
onKeyDown: (O) => {
|
|
28344
|
+
O.key === "Enter" && I();
|
|
28341
28345
|
},
|
|
28342
28346
|
disabled: t,
|
|
28343
28347
|
inputNotClearable: !0,
|
|
@@ -28346,11 +28350,11 @@ function om({
|
|
|
28346
28350
|
), /* @__PURE__ */ s.createElement(
|
|
28347
28351
|
kr,
|
|
28348
28352
|
{
|
|
28349
|
-
id: `${
|
|
28353
|
+
id: `${f}__select`,
|
|
28350
28354
|
"data-testid": `${c}__select`,
|
|
28351
28355
|
options: id,
|
|
28352
|
-
value:
|
|
28353
|
-
onChange:
|
|
28356
|
+
value: E,
|
|
28357
|
+
onChange: k,
|
|
28354
28358
|
disabled: t,
|
|
28355
28359
|
notClearable: !0
|
|
28356
28360
|
}
|
|
@@ -28617,8 +28621,8 @@ function im(e, t, n) {
|
|
|
28617
28621
|
n && (Object.is(c, h) || n(h, ...g)), l || (c = h);
|
|
28618
28622
|
};
|
|
28619
28623
|
typeof f == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((g, ...v) => {
|
|
28620
|
-
let
|
|
28621
|
-
return u(
|
|
28624
|
+
let w = f(l ? c : g, ...v);
|
|
28625
|
+
return u(w, ...m), l ? g : w;
|
|
28622
28626
|
})) : (l || a(f), u(f, ...m));
|
|
28623
28627
|
}, [
|
|
28624
28628
|
l,
|
|
@@ -29183,7 +29187,7 @@ function Tm(e) {
|
|
|
29183
29187
|
allowTextSelectionOnPress: m,
|
|
29184
29188
|
ref: u,
|
|
29185
29189
|
...h
|
|
29186
|
-
} = rk(e), [g, v] = qe(!1),
|
|
29190
|
+
} = rk(e), [g, v] = qe(!1), w = Se({
|
|
29187
29191
|
isPressed: !1,
|
|
29188
29192
|
ignoreEmulatedMouseEvents: !1,
|
|
29189
29193
|
ignoreClickAfterPress: !1,
|
|
@@ -29193,189 +29197,189 @@ function Tm(e) {
|
|
|
29193
29197
|
target: null,
|
|
29194
29198
|
isOverTarget: !1,
|
|
29195
29199
|
pointerType: null
|
|
29196
|
-
}), { addGlobalListener: E, removeAllGlobalListeners: T } = gm(), N = hr((
|
|
29197
|
-
let R =
|
|
29200
|
+
}), { addGlobalListener: E, removeAllGlobalListeners: T } = gm(), N = hr((C, O) => {
|
|
29201
|
+
let R = w.current;
|
|
29198
29202
|
if (l || R.didFirePressStart)
|
|
29199
29203
|
return !1;
|
|
29200
29204
|
let $ = !0;
|
|
29201
29205
|
if (R.isTriggeringEvent = !0, r) {
|
|
29202
|
-
let G = new Gs("pressstart",
|
|
29206
|
+
let G = new Gs("pressstart", O, C);
|
|
29203
29207
|
r(G), $ = G.shouldStopPropagation;
|
|
29204
29208
|
}
|
|
29205
29209
|
return n && n(!0), R.isTriggeringEvent = !1, R.didFirePressStart = !0, v(!0), $;
|
|
29206
|
-
}), x = hr((
|
|
29207
|
-
let $ =
|
|
29210
|
+
}), x = hr((C, O, R = !0) => {
|
|
29211
|
+
let $ = w.current;
|
|
29208
29212
|
if (!$.didFirePressStart)
|
|
29209
29213
|
return !1;
|
|
29210
29214
|
$.ignoreClickAfterPress = !0, $.didFirePressStart = !1, $.isTriggeringEvent = !0;
|
|
29211
29215
|
let G = !0;
|
|
29212
29216
|
if (a) {
|
|
29213
|
-
let M = new Gs("pressend",
|
|
29217
|
+
let M = new Gs("pressend", O, C);
|
|
29214
29218
|
a(M), G = M.shouldStopPropagation;
|
|
29215
29219
|
}
|
|
29216
29220
|
if (n && n(!1), v(!1), t && R && !l) {
|
|
29217
|
-
let M = new Gs("press",
|
|
29221
|
+
let M = new Gs("press", O, C);
|
|
29218
29222
|
t(M), G && (G = M.shouldStopPropagation);
|
|
29219
29223
|
}
|
|
29220
29224
|
return $.isTriggeringEvent = !1, G;
|
|
29221
|
-
}), I = hr((
|
|
29222
|
-
let R =
|
|
29225
|
+
}), I = hr((C, O) => {
|
|
29226
|
+
let R = w.current;
|
|
29223
29227
|
if (l)
|
|
29224
29228
|
return !1;
|
|
29225
29229
|
if (o) {
|
|
29226
29230
|
R.isTriggeringEvent = !0;
|
|
29227
|
-
let $ = new Gs("pressup",
|
|
29231
|
+
let $ = new Gs("pressup", O, C);
|
|
29228
29232
|
return o($), R.isTriggeringEvent = !1, $.shouldStopPropagation;
|
|
29229
29233
|
}
|
|
29230
29234
|
return !0;
|
|
29231
|
-
}), k = hr((
|
|
29232
|
-
let
|
|
29233
|
-
|
|
29234
|
-
}), A = hr((
|
|
29235
|
-
f && k(
|
|
29235
|
+
}), k = hr((C) => {
|
|
29236
|
+
let O = w.current;
|
|
29237
|
+
O.isPressed && O.target && (O.isOverTarget && O.pointerType != null && x(hn(O.target, C), O.pointerType, !1), O.isPressed = !1, O.isOverTarget = !1, O.activePointerId = null, O.pointerType = null, T(), m || Hs(O.target));
|
|
29238
|
+
}), A = hr((C) => {
|
|
29239
|
+
f && k(C);
|
|
29236
29240
|
}), _ = nt(() => {
|
|
29237
|
-
let
|
|
29241
|
+
let C = w.current, O = {
|
|
29238
29242
|
onKeyDown($) {
|
|
29239
29243
|
if (To($.nativeEvent, $.currentTarget) && $.currentTarget.contains($.target)) {
|
|
29240
29244
|
var G;
|
|
29241
29245
|
gd($.target, $.key) && $.preventDefault();
|
|
29242
29246
|
let M = !0;
|
|
29243
|
-
if (!
|
|
29244
|
-
|
|
29247
|
+
if (!C.isPressed && !$.repeat) {
|
|
29248
|
+
C.target = $.currentTarget, C.isPressed = !0, M = N($, "keyboard");
|
|
29245
29249
|
let H = $.currentTarget, W = (z) => {
|
|
29246
|
-
To(z, H) && !z.repeat && H.contains(z.target) &&
|
|
29250
|
+
To(z, H) && !z.repeat && H.contains(z.target) && C.target && I(hn(C.target, z), "keyboard");
|
|
29247
29251
|
};
|
|
29248
29252
|
E(xt($.currentTarget), "keyup", um(W, R), !0);
|
|
29249
29253
|
}
|
|
29250
|
-
M && $.stopPropagation(), $.metaKey && Xn() && ((G =
|
|
29254
|
+
M && $.stopPropagation(), $.metaKey && Xn() && ((G = C.metaKeyEvents) === null || G === void 0 || G.set($.key, $.nativeEvent));
|
|
29251
29255
|
} else
|
|
29252
|
-
$.key === "Meta" && (
|
|
29256
|
+
$.key === "Meta" && (C.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
29253
29257
|
},
|
|
29254
29258
|
onClick($) {
|
|
29255
|
-
if (!($ && !$.currentTarget.contains($.target)) && $ && $.button === 0 && !
|
|
29259
|
+
if (!($ && !$.currentTarget.contains($.target)) && $ && $.button === 0 && !C.isTriggeringEvent && !Qn.isOpening) {
|
|
29256
29260
|
let G = !0;
|
|
29257
|
-
if (l && $.preventDefault(), !
|
|
29261
|
+
if (l && $.preventDefault(), !C.ignoreClickAfterPress && !C.ignoreEmulatedMouseEvents && !C.isPressed && (C.pointerType === "virtual" || Ho($.nativeEvent))) {
|
|
29258
29262
|
!l && !p && bn($.currentTarget);
|
|
29259
29263
|
let M = N($, "virtual"), H = I($, "virtual"), W = x($, "virtual");
|
|
29260
29264
|
G = M && H && W;
|
|
29261
29265
|
}
|
|
29262
|
-
|
|
29266
|
+
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1, G && $.stopPropagation();
|
|
29263
29267
|
}
|
|
29264
29268
|
}
|
|
29265
29269
|
}, R = ($) => {
|
|
29266
29270
|
var G;
|
|
29267
|
-
if (
|
|
29271
|
+
if (C.isPressed && C.target && To($, C.target)) {
|
|
29268
29272
|
var M;
|
|
29269
29273
|
gd($.target, $.key) && $.preventDefault();
|
|
29270
29274
|
let W = $.target;
|
|
29271
|
-
x(hn(
|
|
29272
|
-
} else if ($.key === "Meta" && ((G =
|
|
29275
|
+
x(hn(C.target, $), "keyboard", C.target.contains(W)), T(), $.key !== "Enter" && Wi(C.target) && C.target.contains(W) && !$[hd] && ($[hd] = !0, Qn(C.target, $, !1)), C.isPressed = !1, (M = C.metaKeyEvents) === null || M === void 0 || M.delete($.key);
|
|
29276
|
+
} else if ($.key === "Meta" && ((G = C.metaKeyEvents) === null || G === void 0 ? void 0 : G.size)) {
|
|
29273
29277
|
var H;
|
|
29274
|
-
let W =
|
|
29275
|
-
|
|
29278
|
+
let W = C.metaKeyEvents;
|
|
29279
|
+
C.metaKeyEvents = void 0;
|
|
29276
29280
|
for (let z of W.values())
|
|
29277
|
-
(H =
|
|
29281
|
+
(H = C.target) === null || H === void 0 || H.dispatchEvent(new KeyboardEvent("keyup", z));
|
|
29278
29282
|
}
|
|
29279
29283
|
};
|
|
29280
29284
|
if (typeof PointerEvent < "u") {
|
|
29281
|
-
|
|
29285
|
+
O.onPointerDown = (H) => {
|
|
29282
29286
|
if (H.button !== 0 || !H.currentTarget.contains(H.target))
|
|
29283
29287
|
return;
|
|
29284
29288
|
if (Zx(H.nativeEvent)) {
|
|
29285
|
-
|
|
29289
|
+
C.pointerType = "virtual";
|
|
29286
29290
|
return;
|
|
29287
29291
|
}
|
|
29288
|
-
wo(H.currentTarget) && H.preventDefault(),
|
|
29292
|
+
wo(H.currentTarget) && H.preventDefault(), C.pointerType = H.pointerType;
|
|
29289
29293
|
let W = !0;
|
|
29290
|
-
|
|
29291
|
-
},
|
|
29294
|
+
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = H.pointerId, C.target = H.currentTarget, !l && !p && bn(H.currentTarget), m || fd(C.target), W = N(H, C.pointerType), E(xt(H.currentTarget), "pointermove", $, !1), E(xt(H.currentTarget), "pointerup", G, !1), E(xt(H.currentTarget), "pointercancel", M, !1)), W && H.stopPropagation();
|
|
29295
|
+
}, O.onMouseDown = (H) => {
|
|
29292
29296
|
!H.currentTarget.contains(H.target) || H.button === 0 && (wo(H.currentTarget) && H.preventDefault(), H.stopPropagation());
|
|
29293
|
-
},
|
|
29294
|
-
!H.currentTarget.contains(H.target) ||
|
|
29297
|
+
}, O.onPointerUp = (H) => {
|
|
29298
|
+
!H.currentTarget.contains(H.target) || C.pointerType === "virtual" || H.button === 0 && fr(H, H.currentTarget) && I(H, C.pointerType || H.pointerType);
|
|
29295
29299
|
};
|
|
29296
29300
|
let $ = (H) => {
|
|
29297
|
-
H.pointerId ===
|
|
29301
|
+
H.pointerId === C.activePointerId && (C.target && fr(H, C.target) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, N(hn(C.target, H), C.pointerType)) : C.target && C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, x(hn(C.target, H), C.pointerType, !1), A(H)));
|
|
29298
29302
|
}, G = (H) => {
|
|
29299
|
-
H.pointerId ===
|
|
29303
|
+
H.pointerId === C.activePointerId && C.isPressed && H.button === 0 && C.target && (fr(H, C.target) && C.pointerType != null ? x(hn(C.target, H), C.pointerType) : C.isOverTarget && C.pointerType != null && x(hn(C.target, H), C.pointerType, !1), C.isPressed = !1, C.isOverTarget = !1, C.activePointerId = null, C.pointerType = null, T(), m || Hs(C.target));
|
|
29300
29304
|
}, M = (H) => {
|
|
29301
29305
|
k(H);
|
|
29302
29306
|
};
|
|
29303
|
-
|
|
29307
|
+
O.onDragStart = (H) => {
|
|
29304
29308
|
!H.currentTarget.contains(H.target) || k(H);
|
|
29305
29309
|
};
|
|
29306
29310
|
} else {
|
|
29307
|
-
|
|
29311
|
+
O.onMouseDown = (M) => {
|
|
29308
29312
|
if (M.button !== 0 || !M.currentTarget.contains(M.target))
|
|
29309
29313
|
return;
|
|
29310
|
-
if (wo(M.currentTarget) && M.preventDefault(),
|
|
29314
|
+
if (wo(M.currentTarget) && M.preventDefault(), C.ignoreEmulatedMouseEvents) {
|
|
29311
29315
|
M.stopPropagation();
|
|
29312
29316
|
return;
|
|
29313
29317
|
}
|
|
29314
|
-
|
|
29315
|
-
},
|
|
29318
|
+
C.isPressed = !0, C.isOverTarget = !0, C.target = M.currentTarget, C.pointerType = Ho(M.nativeEvent) ? "virtual" : "mouse", !l && !p && bn(M.currentTarget), N(M, C.pointerType) && M.stopPropagation(), E(xt(M.currentTarget), "mouseup", $, !1);
|
|
29319
|
+
}, O.onMouseEnter = (M) => {
|
|
29316
29320
|
if (!M.currentTarget.contains(M.target))
|
|
29317
29321
|
return;
|
|
29318
29322
|
let H = !0;
|
|
29319
|
-
|
|
29320
|
-
},
|
|
29323
|
+
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !0, H = N(M, C.pointerType)), H && M.stopPropagation();
|
|
29324
|
+
}, O.onMouseLeave = (M) => {
|
|
29321
29325
|
if (!M.currentTarget.contains(M.target))
|
|
29322
29326
|
return;
|
|
29323
29327
|
let H = !0;
|
|
29324
|
-
|
|
29325
|
-
},
|
|
29326
|
-
!M.currentTarget.contains(M.target) || !
|
|
29328
|
+
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !1, H = x(M, C.pointerType, !1), A(M)), H && M.stopPropagation();
|
|
29329
|
+
}, O.onMouseUp = (M) => {
|
|
29330
|
+
!M.currentTarget.contains(M.target) || !C.ignoreEmulatedMouseEvents && M.button === 0 && I(M, C.pointerType || "mouse");
|
|
29327
29331
|
};
|
|
29328
29332
|
let $ = (M) => {
|
|
29329
29333
|
if (M.button === 0) {
|
|
29330
|
-
if (
|
|
29331
|
-
|
|
29334
|
+
if (C.isPressed = !1, T(), C.ignoreEmulatedMouseEvents) {
|
|
29335
|
+
C.ignoreEmulatedMouseEvents = !1;
|
|
29332
29336
|
return;
|
|
29333
29337
|
}
|
|
29334
|
-
|
|
29338
|
+
C.target && fr(M, C.target) && C.pointerType != null ? x(hn(C.target, M), C.pointerType) : C.target && C.isOverTarget && C.pointerType != null && x(hn(C.target, M), C.pointerType, !1), C.isOverTarget = !1;
|
|
29335
29339
|
}
|
|
29336
29340
|
};
|
|
29337
|
-
|
|
29341
|
+
O.onTouchStart = (M) => {
|
|
29338
29342
|
if (!M.currentTarget.contains(M.target))
|
|
29339
29343
|
return;
|
|
29340
29344
|
let H = sk(M.nativeEvent);
|
|
29341
29345
|
if (!H)
|
|
29342
29346
|
return;
|
|
29343
|
-
|
|
29344
|
-
},
|
|
29347
|
+
C.activePointerId = H.identifier, C.ignoreEmulatedMouseEvents = !0, C.isOverTarget = !0, C.isPressed = !0, C.target = M.currentTarget, C.pointerType = "touch", !l && !p && bn(M.currentTarget), m || fd(C.target), N(M, C.pointerType) && M.stopPropagation(), E(Zn(M.currentTarget), "scroll", G, !0);
|
|
29348
|
+
}, O.onTouchMove = (M) => {
|
|
29345
29349
|
if (!M.currentTarget.contains(M.target))
|
|
29346
29350
|
return;
|
|
29347
|
-
if (!
|
|
29351
|
+
if (!C.isPressed) {
|
|
29348
29352
|
M.stopPropagation();
|
|
29349
29353
|
return;
|
|
29350
29354
|
}
|
|
29351
|
-
let H = Sd(M.nativeEvent,
|
|
29352
|
-
H && fr(H, M.currentTarget) ? !
|
|
29353
|
-
},
|
|
29355
|
+
let H = Sd(M.nativeEvent, C.activePointerId), W = !0;
|
|
29356
|
+
H && fr(H, M.currentTarget) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, W = N(M, C.pointerType)) : C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, W = x(M, C.pointerType, !1), A(M)), W && M.stopPropagation();
|
|
29357
|
+
}, O.onTouchEnd = (M) => {
|
|
29354
29358
|
if (!M.currentTarget.contains(M.target))
|
|
29355
29359
|
return;
|
|
29356
|
-
if (!
|
|
29360
|
+
if (!C.isPressed) {
|
|
29357
29361
|
M.stopPropagation();
|
|
29358
29362
|
return;
|
|
29359
29363
|
}
|
|
29360
|
-
let H = Sd(M.nativeEvent,
|
|
29361
|
-
H && fr(H, M.currentTarget) &&
|
|
29362
|
-
},
|
|
29363
|
-
!M.currentTarget.contains(M.target) || (M.stopPropagation(),
|
|
29364
|
+
let H = Sd(M.nativeEvent, C.activePointerId), W = !0;
|
|
29365
|
+
H && fr(H, M.currentTarget) && C.pointerType != null ? (I(M, C.pointerType), W = x(M, C.pointerType)) : C.isOverTarget && C.pointerType != null && (W = x(M, C.pointerType, !1)), W && M.stopPropagation(), C.isPressed = !1, C.activePointerId = null, C.isOverTarget = !1, C.ignoreEmulatedMouseEvents = !0, C.target && !m && Hs(C.target), T();
|
|
29366
|
+
}, O.onTouchCancel = (M) => {
|
|
29367
|
+
!M.currentTarget.contains(M.target) || (M.stopPropagation(), C.isPressed && k(M));
|
|
29364
29368
|
};
|
|
29365
29369
|
let G = (M) => {
|
|
29366
|
-
|
|
29367
|
-
currentTarget:
|
|
29370
|
+
C.isPressed && M.target.contains(C.target) && k({
|
|
29371
|
+
currentTarget: C.target,
|
|
29368
29372
|
shiftKey: !1,
|
|
29369
29373
|
ctrlKey: !1,
|
|
29370
29374
|
metaKey: !1,
|
|
29371
29375
|
altKey: !1
|
|
29372
29376
|
});
|
|
29373
29377
|
};
|
|
29374
|
-
|
|
29378
|
+
O.onDragStart = (M) => {
|
|
29375
29379
|
!M.currentTarget.contains(M.target) || k(M);
|
|
29376
29380
|
};
|
|
29377
29381
|
}
|
|
29378
|
-
return
|
|
29382
|
+
return O;
|
|
29379
29383
|
}, [
|
|
29380
29384
|
E,
|
|
29381
29385
|
l,
|
|
@@ -29389,8 +29393,8 @@ function Tm(e) {
|
|
|
29389
29393
|
I
|
|
29390
29394
|
]);
|
|
29391
29395
|
return He(() => () => {
|
|
29392
|
-
var
|
|
29393
|
-
m || Hs((
|
|
29396
|
+
var C;
|
|
29397
|
+
m || Hs((C = w.current.target) !== null && C !== void 0 ? C : void 0);
|
|
29394
29398
|
}, [
|
|
29395
29399
|
m
|
|
29396
29400
|
]), {
|
|
@@ -29815,22 +29819,22 @@ function Nk(e) {
|
|
|
29815
29819
|
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
|
|
29816
29820
|
}
|
|
29817
29821
|
function xk(e) {
|
|
29818
|
-
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: f = !1, shouldUseVirtualFocus: m, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction:
|
|
29822
|
+
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: f = !1, shouldUseVirtualFocus: m, allowsTabNavigation: u = !1, isVirtualized: h, scrollRef: g = r, linkBehavior: v = "action" } = e, { direction: w } = Om(), E = hm(), T = (R) => {
|
|
29819
29823
|
if (R.altKey && R.key === "Tab" && R.preventDefault(), !r.current.contains(R.target))
|
|
29820
29824
|
return;
|
|
29821
|
-
const $ = (
|
|
29822
|
-
if (
|
|
29823
|
-
if (t.isLink(
|
|
29825
|
+
const $ = (L, j) => {
|
|
29826
|
+
if (L != null) {
|
|
29827
|
+
if (t.isLink(L) && v === "selection" && p && !zo(R)) {
|
|
29824
29828
|
nb(() => {
|
|
29825
|
-
t.setFocusedKey(
|
|
29829
|
+
t.setFocusedKey(L, j);
|
|
29826
29830
|
});
|
|
29827
|
-
let te = g.current.querySelector(`[data-key="${CSS.escape(
|
|
29831
|
+
let te = g.current.querySelector(`[data-key="${CSS.escape(L.toString())}"]`);
|
|
29828
29832
|
E.open(te, R);
|
|
29829
29833
|
return;
|
|
29830
29834
|
}
|
|
29831
|
-
if (t.setFocusedKey(
|
|
29835
|
+
if (t.setFocusedKey(L, j), t.isLink(L) && v === "override")
|
|
29832
29836
|
return;
|
|
29833
|
-
R.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(
|
|
29837
|
+
R.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(L) : p && !zo(R) && t.replaceSelection(L);
|
|
29834
29838
|
}
|
|
29835
29839
|
};
|
|
29836
29840
|
switch (R.key) {
|
|
@@ -29838,60 +29842,60 @@ function xk(e) {
|
|
|
29838
29842
|
if (n.getKeyBelow) {
|
|
29839
29843
|
var G, M;
|
|
29840
29844
|
R.preventDefault();
|
|
29841
|
-
let
|
|
29842
|
-
|
|
29845
|
+
let L = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (G = n.getFirstKey) === null || G === void 0 ? void 0 : G.call(n);
|
|
29846
|
+
L == null && o && (L = (M = n.getFirstKey) === null || M === void 0 ? void 0 : M.call(n, t.focusedKey)), $(L);
|
|
29843
29847
|
}
|
|
29844
29848
|
break;
|
|
29845
29849
|
case "ArrowUp":
|
|
29846
29850
|
if (n.getKeyAbove) {
|
|
29847
29851
|
var H, W;
|
|
29848
29852
|
R.preventDefault();
|
|
29849
|
-
let
|
|
29850
|
-
|
|
29853
|
+
let L = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (H = n.getLastKey) === null || H === void 0 ? void 0 : H.call(n);
|
|
29854
|
+
L == null && o && (L = (W = n.getLastKey) === null || W === void 0 ? void 0 : W.call(n, t.focusedKey)), $(L);
|
|
29851
29855
|
}
|
|
29852
29856
|
break;
|
|
29853
29857
|
case "ArrowLeft":
|
|
29854
29858
|
if (n.getKeyLeftOf) {
|
|
29855
29859
|
var z, B;
|
|
29856
29860
|
R.preventDefault();
|
|
29857
|
-
let
|
|
29858
|
-
|
|
29861
|
+
let L = n.getKeyLeftOf(t.focusedKey);
|
|
29862
|
+
L == null && o && (L = w === "rtl" ? (z = n.getFirstKey) === null || z === void 0 ? void 0 : z.call(n, t.focusedKey) : (B = n.getLastKey) === null || B === void 0 ? void 0 : B.call(n, t.focusedKey)), $(L, w === "rtl" ? "first" : "last");
|
|
29859
29863
|
}
|
|
29860
29864
|
break;
|
|
29861
29865
|
case "ArrowRight":
|
|
29862
29866
|
if (n.getKeyRightOf) {
|
|
29863
29867
|
var oe, ie;
|
|
29864
29868
|
R.preventDefault();
|
|
29865
|
-
let
|
|
29866
|
-
|
|
29869
|
+
let L = n.getKeyRightOf(t.focusedKey);
|
|
29870
|
+
L == null && o && (L = w === "rtl" ? (oe = n.getLastKey) === null || oe === void 0 ? void 0 : oe.call(n, t.focusedKey) : (ie = n.getFirstKey) === null || ie === void 0 ? void 0 : ie.call(n, t.focusedKey)), $(L, w === "rtl" ? "last" : "first");
|
|
29867
29871
|
}
|
|
29868
29872
|
break;
|
|
29869
29873
|
case "Home":
|
|
29870
29874
|
if (n.getFirstKey) {
|
|
29871
29875
|
R.preventDefault();
|
|
29872
|
-
let
|
|
29873
|
-
t.setFocusedKey(
|
|
29876
|
+
let L = n.getFirstKey(t.focusedKey, gr(R));
|
|
29877
|
+
t.setFocusedKey(L), gr(R) && R.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(L) : p && t.replaceSelection(L);
|
|
29874
29878
|
}
|
|
29875
29879
|
break;
|
|
29876
29880
|
case "End":
|
|
29877
29881
|
if (n.getLastKey) {
|
|
29878
29882
|
R.preventDefault();
|
|
29879
|
-
let
|
|
29880
|
-
t.setFocusedKey(
|
|
29883
|
+
let L = n.getLastKey(t.focusedKey, gr(R));
|
|
29884
|
+
t.setFocusedKey(L), gr(R) && R.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(L) : p && t.replaceSelection(L);
|
|
29881
29885
|
}
|
|
29882
29886
|
break;
|
|
29883
29887
|
case "PageDown":
|
|
29884
29888
|
if (n.getKeyPageBelow) {
|
|
29885
29889
|
R.preventDefault();
|
|
29886
|
-
let
|
|
29887
|
-
$(
|
|
29890
|
+
let L = n.getKeyPageBelow(t.focusedKey);
|
|
29891
|
+
$(L);
|
|
29888
29892
|
}
|
|
29889
29893
|
break;
|
|
29890
29894
|
case "PageUp":
|
|
29891
29895
|
if (n.getKeyPageAbove) {
|
|
29892
29896
|
R.preventDefault();
|
|
29893
|
-
let
|
|
29894
|
-
$(
|
|
29897
|
+
let L = n.getKeyPageAbove(t.focusedKey);
|
|
29898
|
+
$(L);
|
|
29895
29899
|
}
|
|
29896
29900
|
break;
|
|
29897
29901
|
case "a":
|
|
@@ -29905,11 +29909,11 @@ function xk(e) {
|
|
|
29905
29909
|
if (R.shiftKey)
|
|
29906
29910
|
r.current.focus();
|
|
29907
29911
|
else {
|
|
29908
|
-
let
|
|
29912
|
+
let L = Mm(r.current, {
|
|
29909
29913
|
tabbable: !0
|
|
29910
29914
|
}), j, te;
|
|
29911
29915
|
do
|
|
29912
|
-
te =
|
|
29916
|
+
te = L.lastChild(), te && (j = te);
|
|
29913
29917
|
while (te);
|
|
29914
29918
|
j && !j.contains(document.activeElement) && bn(j);
|
|
29915
29919
|
}
|
|
@@ -29990,16 +29994,16 @@ function xk(e) {
|
|
|
29990
29994
|
onMouseDown(R) {
|
|
29991
29995
|
g.current === R.target && R.preventDefault();
|
|
29992
29996
|
}
|
|
29993
|
-
}, { typeSelectProps:
|
|
29997
|
+
}, { typeSelectProps: C } = Dk({
|
|
29994
29998
|
keyboardDelegate: n,
|
|
29995
29999
|
selectionManager: t
|
|
29996
30000
|
});
|
|
29997
|
-
f || (_ = An(
|
|
29998
|
-
let
|
|
29999
|
-
return m || (
|
|
30001
|
+
f || (_ = An(C, _));
|
|
30002
|
+
let O;
|
|
30003
|
+
return m || (O = t.focusedKey == null ? 0 : -1), {
|
|
30000
30004
|
collectionProps: {
|
|
30001
30005
|
..._,
|
|
30002
|
-
tabIndex:
|
|
30006
|
+
tabIndex: O
|
|
30003
30007
|
}
|
|
30004
30008
|
};
|
|
30005
30009
|
}
|
|
@@ -30039,27 +30043,27 @@ function kk(e) {
|
|
|
30039
30043
|
} : c && (g.onMouseDown = (B) => {
|
|
30040
30044
|
B.preventDefault();
|
|
30041
30045
|
});
|
|
30042
|
-
let v = t.isLink(n) && m === "override",
|
|
30043
|
-
p && p(),
|
|
30046
|
+
let v = t.isLink(n) && m === "override", w = t.isLink(n) && m !== "selection" && m !== "none", E = !c && t.canSelectItem(n) && !v, T = (p || w) && !c, N = T && (t.selectionBehavior === "replace" ? !E : !E || t.isEmpty), x = T && E && t.selectionBehavior === "replace", I = N || x, k = Se(null), A = I && E, _ = Se(!1), C = Se(!1), O = (B) => {
|
|
30047
|
+
p && p(), w && u.open(r.current, B);
|
|
30044
30048
|
}, R = {};
|
|
30045
30049
|
a ? (R.onPressStart = (B) => {
|
|
30046
30050
|
k.current = B.pointerType, _.current = A, B.pointerType === "keyboard" && (!I || Td()) && h(B);
|
|
30047
30051
|
}, f ? (R.onPressUp = N ? null : (B) => {
|
|
30048
30052
|
B.pointerType !== "keyboard" && E && h(B);
|
|
30049
|
-
}, R.onPress = N ?
|
|
30053
|
+
}, R.onPress = N ? O : null) : R.onPress = (B) => {
|
|
30050
30054
|
if (N || x && B.pointerType !== "mouse") {
|
|
30051
30055
|
if (B.pointerType === "keyboard" && !Ed())
|
|
30052
30056
|
return;
|
|
30053
|
-
|
|
30057
|
+
O(B);
|
|
30054
30058
|
} else
|
|
30055
30059
|
B.pointerType !== "keyboard" && E && h(B);
|
|
30056
30060
|
}) : (R.onPressStart = (B) => {
|
|
30057
|
-
k.current = B.pointerType, _.current = A,
|
|
30061
|
+
k.current = B.pointerType, _.current = A, C.current = N, E && (B.pointerType === "mouse" && !N || B.pointerType === "keyboard" && (!T || Td())) && h(B);
|
|
30058
30062
|
}, R.onPress = (B) => {
|
|
30059
|
-
(B.pointerType === "touch" || B.pointerType === "pen" || B.pointerType === "virtual" || B.pointerType === "keyboard" && I && Ed() || B.pointerType === "mouse" &&
|
|
30063
|
+
(B.pointerType === "touch" || B.pointerType === "pen" || B.pointerType === "virtual" || B.pointerType === "keyboard" && I && Ed() || B.pointerType === "mouse" && C.current) && (I ? O(B) : E && h(B));
|
|
30060
30064
|
}), g["data-key"] = n, R.preventFocusOnPress = o;
|
|
30061
30065
|
let { pressProps: $, isPressed: G } = Tm(R), M = x ? (B) => {
|
|
30062
|
-
k.current === "mouse" && (B.stopPropagation(), B.preventDefault(),
|
|
30066
|
+
k.current === "mouse" && (B.stopPropagation(), B.preventDefault(), O(B));
|
|
30063
30067
|
} : void 0, { longPressProps: H } = uk({
|
|
30064
30068
|
isDisabled: !A,
|
|
30065
30069
|
onLongPress(B) {
|
|
@@ -30105,7 +30109,7 @@ function Ik(e, t, n) {
|
|
|
30105
30109
|
isDisabled: m,
|
|
30106
30110
|
shouldSelectOnPressUp: l,
|
|
30107
30111
|
linkBehavior: "selection"
|
|
30108
|
-
}), g = la(t, a, "tab"), v = la(t, a, "tabpanel"), { tabIndex:
|
|
30112
|
+
}), g = la(t, a, "tab"), v = la(t, a, "tabpanel"), { tabIndex: w } = u, E = t.collection.getItem(a), T = Ax(E == null ? void 0 : E.props, {
|
|
30109
30113
|
isLink: !!(!(E == null || (r = E.props) === null || r === void 0) && r.href),
|
|
30110
30114
|
labelable: !0
|
|
30111
30115
|
});
|
|
@@ -30115,7 +30119,7 @@ function Ik(e, t, n) {
|
|
|
30115
30119
|
"aria-selected": f,
|
|
30116
30120
|
"aria-disabled": m || void 0,
|
|
30117
30121
|
"aria-controls": f ? v : void 0,
|
|
30118
|
-
tabIndex: m ? void 0 :
|
|
30122
|
+
tabIndex: m ? void 0 : w,
|
|
30119
30123
|
role: "tab"
|
|
30120
30124
|
}),
|
|
30121
30125
|
isSelected: f,
|
|
@@ -30259,7 +30263,7 @@ function Pk(e) {
|
|
|
30259
30263
|
e.selectedKeys
|
|
30260
30264
|
]), h = nt(() => wd(e.defaultSelectedKeys, new Gt()), [
|
|
30261
30265
|
e.defaultSelectedKeys
|
|
30262
|
-
]), [g, v] = im(u, h, e.onSelectionChange),
|
|
30266
|
+
]), [g, v] = im(u, h, e.onSelectionChange), w = nt(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
30263
30267
|
e.disabledKeys
|
|
30264
30268
|
]), [E, T] = qe(a);
|
|
30265
30269
|
a === "replace" && E === "toggle" && typeof g == "object" && g.size === 0 && T("replace");
|
|
@@ -30292,7 +30296,7 @@ function Pk(e) {
|
|
|
30292
30296
|
setSelectedKeys(x) {
|
|
30293
30297
|
(r || !Ak(x, g)) && v(x);
|
|
30294
30298
|
},
|
|
30295
|
-
disabledKeys:
|
|
30299
|
+
disabledKeys: w,
|
|
30296
30300
|
disabledBehavior: o
|
|
30297
30301
|
};
|
|
30298
30302
|
}
|
|
@@ -30572,15 +30576,15 @@ function Fk(e) {
|
|
|
30572
30576
|
if (n.focusedKey != null && !l.getItem(n.focusedKey)) {
|
|
30573
30577
|
const f = p.current.getItem(n.focusedKey), m = [
|
|
30574
30578
|
...p.current.getKeys()
|
|
30575
|
-
].map((
|
|
30576
|
-
const E = p.current.getItem(
|
|
30579
|
+
].map((w) => {
|
|
30580
|
+
const E = p.current.getItem(w);
|
|
30577
30581
|
return E.type === "item" ? E : null;
|
|
30578
|
-
}).filter((
|
|
30582
|
+
}).filter((w) => w !== null), u = [
|
|
30579
30583
|
...l.getKeys()
|
|
30580
|
-
].map((
|
|
30581
|
-
const E = l.getItem(
|
|
30584
|
+
].map((w) => {
|
|
30585
|
+
const E = l.getItem(w);
|
|
30582
30586
|
return E.type === "item" ? E : null;
|
|
30583
|
-
}).filter((
|
|
30587
|
+
}).filter((w) => w !== null), h = m.length - u.length;
|
|
30584
30588
|
let g = Math.min(h > 1 ? Math.max(f.index - h + 1, 0) : f.index, u.length - 1), v;
|
|
30585
30589
|
for (; g >= 0; ) {
|
|
30586
30590
|
if (!c.isDisabled(u[g].key)) {
|
|
@@ -30761,12 +30765,12 @@ function Jk(e) {
|
|
|
30761
30765
|
function v() {
|
|
30762
30766
|
f && f();
|
|
30763
30767
|
}
|
|
30764
|
-
const
|
|
30768
|
+
const w = K(
|
|
30765
30769
|
u || "sps-advanced-search",
|
|
30766
30770
|
p && "sps-advanced-search--open",
|
|
30767
30771
|
n
|
|
30768
30772
|
);
|
|
30769
|
-
return /* @__PURE__ */ s.createElement("div", { className:
|
|
30773
|
+
return /* @__PURE__ */ s.createElement("div", { className: w, ...h }, /* @__PURE__ */ s.createElement(
|
|
30770
30774
|
va,
|
|
30771
30775
|
{
|
|
30772
30776
|
onSubmit: m,
|
|
@@ -31118,7 +31122,7 @@ function eI({
|
|
|
31118
31122
|
function v() {
|
|
31119
31123
|
g(null);
|
|
31120
31124
|
}
|
|
31121
|
-
function
|
|
31125
|
+
function w(N) {
|
|
31122
31126
|
g(Xk(N.target.value));
|
|
31123
31127
|
}
|
|
31124
31128
|
function E(N) {
|
|
@@ -31150,7 +31154,7 @@ function eI({
|
|
|
31150
31154
|
id: u,
|
|
31151
31155
|
name: a,
|
|
31152
31156
|
placeholder: "0.00",
|
|
31153
|
-
onChange:
|
|
31157
|
+
onChange: w,
|
|
31154
31158
|
title: c,
|
|
31155
31159
|
value: Qk(p),
|
|
31156
31160
|
disabled: t,
|
|
@@ -31571,10 +31575,10 @@ function Vm(e) {
|
|
|
31571
31575
|
s.useEffect(() => {
|
|
31572
31576
|
m.current = o;
|
|
31573
31577
|
}, [o]);
|
|
31574
|
-
const { t: u } = s.useContext(Ge), [h, g] = s.useState(!0), [v,
|
|
31578
|
+
const { t: u } = s.useContext(Ge), [h, g] = s.useState(!0), [v, w] = s.useState(!1);
|
|
31575
31579
|
function E() {
|
|
31576
31580
|
return [
|
|
31577
|
-
window.setTimeout(() =>
|
|
31581
|
+
window.setTimeout(() => w(!0), Fl),
|
|
31578
31582
|
window.setTimeout(() => {
|
|
31579
31583
|
g(!1), m.current && m.current();
|
|
31580
31584
|
}, Fl + zg)
|
|
@@ -31585,15 +31589,15 @@ function Vm(e) {
|
|
|
31585
31589
|
l || (T.current = E());
|
|
31586
31590
|
}
|
|
31587
31591
|
function x() {
|
|
31588
|
-
for (const
|
|
31589
|
-
window.clearTimeout(
|
|
31592
|
+
for (const O of T.current)
|
|
31593
|
+
window.clearTimeout(O);
|
|
31590
31594
|
T.current = [];
|
|
31591
31595
|
}
|
|
31592
31596
|
function I() {
|
|
31593
|
-
x(), g(!0),
|
|
31597
|
+
x(), g(!0), w(!1);
|
|
31594
31598
|
}
|
|
31595
31599
|
function k() {
|
|
31596
|
-
I(),
|
|
31600
|
+
I(), w(!1), g(!1), o && o();
|
|
31597
31601
|
}
|
|
31598
31602
|
const A = a === No.PROGRESS ? "sps-spinner" : K("sps-icon", `sps-icon-${jg.get(a)}`), _ = K(
|
|
31599
31603
|
p || "sps-growler",
|
|
@@ -32069,7 +32073,7 @@ function iI(e) {
|
|
|
32069
32073
|
t && "sps-insight-tile--has-detail"
|
|
32070
32074
|
), { t: g } = s.useContext(Ge), [
|
|
32071
32075
|
v,
|
|
32072
|
-
|
|
32076
|
+
w,
|
|
32073
32077
|
E
|
|
32074
32078
|
] = (p ? g("design-system:insightTile.partnerCount", {
|
|
32075
32079
|
count: p,
|
|
@@ -32082,7 +32086,7 @@ function iI(e) {
|
|
|
32082
32086
|
style: { "-webkit-box-orient": "vertical" }
|
|
32083
32087
|
},
|
|
32084
32088
|
l
|
|
32085
|
-
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === f ? /* @__PURE__ */ s.createElement("div", null, g("design-system:insightTile.all")) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", null, v), /* @__PURE__ */ s.createElement("div", null,
|
|
32089
|
+
), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__detail" }, t))), p && /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partner-count" }, p === f ? /* @__PURE__ */ s.createElement("div", null, g("design-system:insightTile.all")) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", null, v), /* @__PURE__ */ s.createElement("div", null, w), /* @__PURE__ */ s.createElement("div", null, E)), /* @__PURE__ */ s.createElement("div", { className: "sps-insight-tile__partners-text" }, g("design-system:insightTile.partners")))));
|
|
32086
32090
|
}
|
|
32087
32091
|
Object.assign(iI, {
|
|
32088
32092
|
props: oI,
|
|
@@ -32322,7 +32326,7 @@ function Km(e) {
|
|
|
32322
32326
|
unsafelyReplaceClassName: c,
|
|
32323
32327
|
...p
|
|
32324
32328
|
} = e, { t: f } = s.useContext(Ge), m = K(c || "sps-search-results-bar-v2", t), u = r ? Object.keys(r).reduce((h, g) => (r[g].length > 0 && (h[g] = r[g]), h), {}) : {};
|
|
32325
|
-
return /* @__PURE__ */ s.createElement("div", { className: m, "data-testid": `${l}`, ...p }, n != null && /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__results" }, /* @__PURE__ */ s.createElement("span", { "data-testid": `${l}__label` }, f("design-system:searchResultsBar.results")), /* @__PURE__ */ s.createElement(Qt, { kind: wr.INFO }, /* @__PURE__ */ s.createElement("span", null, n))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__selections" }, Object.keys(u).length > 0 ? Object.keys(u).map((h, g) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { key: g, className: "sps-search-results-bar-v2__selection" }, h, ":"), u[h].map((v,
|
|
32329
|
+
return /* @__PURE__ */ s.createElement("div", { className: m, "data-testid": `${l}`, ...p }, n != null && /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__results" }, /* @__PURE__ */ s.createElement("span", { "data-testid": `${l}__label` }, f("design-system:searchResultsBar.results")), /* @__PURE__ */ s.createElement(Qt, { kind: wr.INFO }, /* @__PURE__ */ s.createElement("span", null, n))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__selections" }, Object.keys(u).length > 0 ? Object.keys(u).map((h, g) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("span", { key: g, className: "sps-search-results-bar-v2__selection" }, h, ":"), u[h].map((v, w) => /* @__PURE__ */ s.createElement(Qt, { key: w, kind: wr.KEY }, /* @__PURE__ */ s.createElement("span", null, v))))) : /* @__PURE__ */ s.createElement("span", { className: "font-italic" }, a || f("design-system:searchResultsBar.noAdvancedSearchSelections"))), /* @__PURE__ */ s.createElement("div", { className: "sps-search-results-bar-v2__buttons", "data-testid": `${l}__button` }, /* @__PURE__ */ s.createElement(Je, { kind: Xe.LINK, onClick: o }, f("design-system:searchResultsBar.clearResults"))));
|
|
32326
32330
|
}
|
|
32327
32331
|
Object.assign(Km, {
|
|
32328
32332
|
props: SI,
|
|
@@ -32636,28 +32640,28 @@ function yI(e) {
|
|
|
32636
32640
|
isSelected: h,
|
|
32637
32641
|
isIndeterminate: g,
|
|
32638
32642
|
onSelectionChange: v,
|
|
32639
|
-
pinResultsBar:
|
|
32643
|
+
pinResultsBar: w,
|
|
32640
32644
|
pinToolbar: E = !0,
|
|
32641
32645
|
"data-testid": T,
|
|
32642
32646
|
...N
|
|
32643
32647
|
} = e, { t: x } = s.useContext(Ge);
|
|
32644
32648
|
let I = null;
|
|
32645
|
-
const [k, A] = s.useState(!1), _ = s.useRef(null),
|
|
32649
|
+
const [k, A] = s.useState(!1), _ = s.useRef(null), C = s.useRef(null), O = Fg(() => {
|
|
32646
32650
|
if (_.current && E) {
|
|
32647
32651
|
const ie = _.current.getBoundingClientRect();
|
|
32648
32652
|
ie && ie.height > 0 && ie.top <= 60 && (typeof I == "number" ? window.scrollY < I && (I = null, A(!1)) : (I = window.scrollY, A(!0), o && o(!1)));
|
|
32649
32653
|
}
|
|
32650
32654
|
});
|
|
32651
|
-
s.useEffect(() => (window.addEventListener("scroll",
|
|
32652
|
-
window.removeEventListener("scroll",
|
|
32655
|
+
s.useEffect(() => (window.addEventListener("scroll", O), () => {
|
|
32656
|
+
window.removeEventListener("scroll", O);
|
|
32653
32657
|
}), []);
|
|
32654
32658
|
const R = s.useRef();
|
|
32655
32659
|
s.useLayoutEffect(() => {
|
|
32656
|
-
if (
|
|
32660
|
+
if (C.current && _.current && E) {
|
|
32657
32661
|
if (k && R.current)
|
|
32658
|
-
|
|
32662
|
+
C.current.style.height = R.current.height, C.current.style.width = R.current.width, C.current.style.marginBottom = R.current.marginBottom;
|
|
32659
32663
|
else if (!k) {
|
|
32660
|
-
|
|
32664
|
+
C.current.style.height = "", C.current.style.width = "", C.current.style.marginBottom = "";
|
|
32661
32665
|
const ie = window.getComputedStyle(_.current);
|
|
32662
32666
|
R.current = {
|
|
32663
32667
|
height: ie.height,
|
|
@@ -32695,7 +32699,7 @@ function yI(e) {
|
|
|
32695
32699
|
{ type: Wm },
|
|
32696
32700
|
{ type: Km }
|
|
32697
32701
|
]);
|
|
32698
|
-
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref:
|
|
32702
|
+
return /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__wrapper", ref: C }, /* @__PURE__ */ s.createElement("div", { className: H, "data-testid": T, ref: _, ...N }, /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__content" }, !!u && /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__selection-controls" }, /* @__PURE__ */ s.createElement(
|
|
32699
32703
|
Ir,
|
|
32700
32704
|
{
|
|
32701
32705
|
checked: h,
|
|
@@ -32727,7 +32731,7 @@ function yI(e) {
|
|
|
32727
32731
|
className: "sps-list-toolbar__advanced-search-title"
|
|
32728
32732
|
},
|
|
32729
32733
|
p
|
|
32730
|
-
)), k ? /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, /* @__PURE__ */ s.createElement(jt.Provider, { value: { fixed: !0 } }, oe)) : /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, oe)), /* @__PURE__ */ s.createElement("div", null, (!k || k &&
|
|
32734
|
+
)), k ? /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, /* @__PURE__ */ s.createElement(jt.Provider, { value: { fixed: !0 } }, oe)) : /* @__PURE__ */ s.createElement("div", { className: "sps-list-toolbar__header-content" }, oe)), /* @__PURE__ */ s.createElement("div", null, (!k || k && w) && B)));
|
|
32731
32735
|
}
|
|
32732
32736
|
Object.assign(yI, {
|
|
32733
32737
|
props: vI,
|
|
@@ -33783,7 +33787,7 @@ function _I(e) {
|
|
|
33783
33787
|
tabs: m = [],
|
|
33784
33788
|
unsafelyReplaceClassName: u,
|
|
33785
33789
|
...h
|
|
33786
|
-
} = e, g = s.useRef(null), [v,
|
|
33790
|
+
} = e, g = s.useRef(null), [v, w] = zt(n, [{ type: Gm }]), [E, T] = s.useState(t || m[0]);
|
|
33787
33791
|
s.useEffect(() => {
|
|
33788
33792
|
T(t || m[0]);
|
|
33789
33793
|
}, [t]);
|
|
@@ -33823,7 +33827,7 @@ function _I(e) {
|
|
|
33823
33827
|
/* @__PURE__ */ s.createElement("span", null, I),
|
|
33824
33828
|
I === E && /* @__PURE__ */ s.createElement("span", { className: "sr-only" }, "(current)")
|
|
33825
33829
|
)), v),
|
|
33826
|
-
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__content" }, /* @__PURE__ */ s.createElement(jt.Provider, { value: { parentElementRef: g, fixed: !0 } },
|
|
33830
|
+
/* @__PURE__ */ s.createElement("div", { className: "sps-navbar__content" }, /* @__PURE__ */ s.createElement(jt.Provider, { value: { parentElementRef: g, fixed: !0 } }, w))
|
|
33827
33831
|
));
|
|
33828
33832
|
}
|
|
33829
33833
|
Object.assign(_I, {
|
|
@@ -34199,7 +34203,7 @@ function Ym({
|
|
|
34199
34203
|
g === Zt.DESCENDING && "sps-sorting-header__cell--sorted-desc",
|
|
34200
34204
|
o && "sps-sorting-header__cell--sort-disabled",
|
|
34201
34205
|
e
|
|
34202
|
-
),
|
|
34206
|
+
), w = f ? f / 16 : m, E = w ? { ...u, width: `${w}rem` } : u;
|
|
34203
34207
|
return /* @__PURE__ */ s.createElement(
|
|
34204
34208
|
"div",
|
|
34205
34209
|
{
|