@spscommerce/ds-react 7.17.8 → 7.17.9
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/dateRangePicker/SpsDateRangePicker.d.ts +1 -1
- package/lib/index.cjs.js +29 -29
- package/lib/index.es.js +234 -230
- package/package.json +12 -12
package/lib/index.es.js
CHANGED
|
@@ -1292,15 +1292,15 @@ function Hl(e, t) {
|
|
|
1292
1292
|
var O = m[K], A = O.getBoundingClientRect(), M = A.height, _ = A.width, Q = A.top, J = A.right, U = A.bottom, te = A.left;
|
|
1293
1293
|
if (r === "if-needed" && k >= 0 && L >= 0 && I <= S && b <= h && k >= Q && I <= U && L >= te && b <= J)
|
|
1294
1294
|
return P;
|
|
1295
|
-
var
|
|
1295
|
+
var W = getComputedStyle(O), V = parseInt(W.borderLeftWidth, 10), X = parseInt(W.borderTopWidth, 10), G = parseInt(W.borderRightWidth, 10), q = parseInt(W.borderBottomWidth, 10), j = 0, H = 0, ae = "offsetWidth" in O ? O.offsetWidth - O.clientWidth - V - G : 0, ne = "offsetHeight" in O ? O.offsetHeight - O.clientHeight - X - q : 0;
|
|
1296
1296
|
if (f === O)
|
|
1297
|
-
j = a === "start" ? N : a === "end" ? N - S : a === "nearest" ? Bs(w, w + S, S, X, q, w + N, w + N + C, C) : N - S / 2,
|
|
1297
|
+
j = a === "start" ? N : a === "end" ? N - S : a === "nearest" ? Bs(w, w + S, S, X, q, w + N, w + N + C, C) : N - S / 2, H = o === "start" ? R : o === "center" ? R - h / 2 : o === "end" ? R - h : Bs(y, y + h, h, V, G, y + R, y + R + x, x), j = Math.max(0, j + w), H = Math.max(0, H + y);
|
|
1298
1298
|
else {
|
|
1299
|
-
j = a === "start" ? N - Q - X : a === "end" ? N - U + q + ne : a === "nearest" ? Bs(Q, U, M, X, q + ne, N, N + C, C) : N - (Q + M / 2) + ne / 2,
|
|
1299
|
+
j = a === "start" ? N - Q - X : a === "end" ? N - U + q + ne : a === "nearest" ? Bs(Q, U, M, X, q + ne, N, N + C, C) : N - (Q + M / 2) + ne / 2, H = o === "start" ? R - te - V : o === "center" ? R - (te + _ / 2) + ae / 2 : o === "end" ? R - J + G + ae : Bs(te, J, _, V, G + ae, R, R + x, x);
|
|
1300
1300
|
var pe = O.scrollLeft, re = O.scrollTop;
|
|
1301
|
-
N += re - (j = Math.max(0, Math.min(re + j, O.scrollHeight - M + ne))), R += pe - (
|
|
1301
|
+
N += re - (j = Math.max(0, Math.min(re + j, O.scrollHeight - M + ne))), R += pe - (H = Math.max(0, Math.min(pe + H, O.scrollWidth - _ + ae)));
|
|
1302
1302
|
}
|
|
1303
|
-
P.push({ el: O, top: j, left:
|
|
1303
|
+
P.push({ el: O, top: j, left: H });
|
|
1304
1304
|
}
|
|
1305
1305
|
return P;
|
|
1306
1306
|
}
|
|
@@ -1794,13 +1794,13 @@ const os = s.forwardRef((e, t) => {
|
|
|
1794
1794
|
specialAction: J,
|
|
1795
1795
|
unsafelyReplaceClassName: U,
|
|
1796
1796
|
loading: te,
|
|
1797
|
-
filterByTextAndCaptionKey:
|
|
1797
|
+
filterByTextAndCaptionKey: W,
|
|
1798
1798
|
maxHeightPx: V,
|
|
1799
1799
|
maxHeightRem: X,
|
|
1800
1800
|
disableOptionsMemoization: G,
|
|
1801
1801
|
disableDefaultOptionsFiltering: q,
|
|
1802
1802
|
"data-testid": j,
|
|
1803
|
-
...
|
|
1803
|
+
...H
|
|
1804
1804
|
} = e, ae = s.useMemo(
|
|
1805
1805
|
() => J ? new vo(J, {
|
|
1806
1806
|
textKey: "label",
|
|
@@ -1971,7 +1971,7 @@ const os = s.forwardRef((e, t) => {
|
|
|
1971
1971
|
style: be,
|
|
1972
1972
|
onMouseLeave: () => pe(-1),
|
|
1973
1973
|
"data-testid": j,
|
|
1974
|
-
...
|
|
1974
|
+
...H
|
|
1975
1975
|
}, ye, /* @__PURE__ */ s.createElement("div", {
|
|
1976
1976
|
className: Le,
|
|
1977
1977
|
ref: se,
|
|
@@ -2212,7 +2212,7 @@ function Uo({
|
|
|
2212
2212
|
"Enter"
|
|
2213
2213
|
].indexOf(G.key) > -1 && (G.preventDefault(), G.persist()), G.stopPropagation(), R({ keyDown: G })), G.key === "Tab" && _();
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function W(G) {
|
|
2216
2216
|
G ? M() : _();
|
|
2217
2217
|
}
|
|
2218
2218
|
function V(G) {
|
|
@@ -2270,7 +2270,7 @@ function Uo({
|
|
|
2270
2270
|
keyDown: N.keyDown,
|
|
2271
2271
|
onOptionSelected: Q,
|
|
2272
2272
|
onPositionFlip: V,
|
|
2273
|
-
onSelfToggle:
|
|
2273
|
+
onSelfToggle: W,
|
|
2274
2274
|
offsets: [1, 0],
|
|
2275
2275
|
search: h,
|
|
2276
2276
|
searchDebounce: t,
|
|
@@ -2468,7 +2468,7 @@ function Er(e) {
|
|
|
2468
2468
|
})), Q = `${N.current}-button`, J = `${N.current}-menu`;
|
|
2469
2469
|
let U, te;
|
|
2470
2470
|
p ? (te = c || Ka.DEFAULT, U = o) : (te = Ka.ICON, U = o || Ze.ELLIPSES);
|
|
2471
|
-
const
|
|
2471
|
+
const W = s.useRef(null);
|
|
2472
2472
|
s.useEffect(() => {
|
|
2473
2473
|
R && w ? w() : !R && E && E();
|
|
2474
2474
|
}, [R]);
|
|
@@ -2492,11 +2492,11 @@ function Er(e) {
|
|
|
2492
2492
|
"ArrowDown"
|
|
2493
2493
|
].indexOf(re.key) > -1 && re.preventDefault(), re.persist(), M(re));
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function H(re) {
|
|
2496
2496
|
re.detail !== N.current && P(!1);
|
|
2497
2497
|
}
|
|
2498
|
-
s.useEffect(() => (document.addEventListener("click", V), document.addEventListener("DropdownOpened",
|
|
2499
|
-
document.removeEventListener("click", V), document.removeEventListener("DropdownOpened",
|
|
2498
|
+
s.useEffect(() => (document.addEventListener("click", V), document.addEventListener("DropdownOpened", H), () => {
|
|
2499
|
+
document.removeEventListener("click", V), document.removeEventListener("DropdownOpened", H);
|
|
2500
2500
|
}), []), s.useEffect(() => {
|
|
2501
2501
|
if (R) {
|
|
2502
2502
|
const re = document.createEvent("CustomEvent");
|
|
@@ -2529,7 +2529,7 @@ function Er(e) {
|
|
|
2529
2529
|
keyDown: A,
|
|
2530
2530
|
onOptionSelected: q,
|
|
2531
2531
|
id: J,
|
|
2532
|
-
attachTo:
|
|
2532
|
+
attachTo: W,
|
|
2533
2533
|
onPositionFlip: O,
|
|
2534
2534
|
onSelfToggle: G,
|
|
2535
2535
|
options: _,
|
|
@@ -2544,7 +2544,7 @@ function Er(e) {
|
|
|
2544
2544
|
}), /* @__PURE__ */ s.createElement("div", {
|
|
2545
2545
|
onClick: X,
|
|
2546
2546
|
className: ne,
|
|
2547
|
-
ref:
|
|
2547
|
+
ref: W
|
|
2548
2548
|
}, /* @__PURE__ */ s.createElement("button", {
|
|
2549
2549
|
type: "button",
|
|
2550
2550
|
id: Q,
|
|
@@ -4038,7 +4038,7 @@ function Ev() {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
4040
|
var I = p, L = f, N = c, R = l, P = t, K = m, O = r, A = y, M = S, _ = n, Q = o, J = a, U = u, te = !1;
|
|
4041
|
-
function
|
|
4041
|
+
function W(se) {
|
|
4042
4042
|
return te || (te = !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.")), V(se) || b(se) === p;
|
|
4043
4043
|
}
|
|
4044
4044
|
function V(se) {
|
|
@@ -4056,7 +4056,7 @@ function Ev() {
|
|
|
4056
4056
|
function j(se) {
|
|
4057
4057
|
return b(se) === m;
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4059
|
+
function H(se) {
|
|
4060
4060
|
return b(se) === r;
|
|
4061
4061
|
}
|
|
4062
4062
|
function ae(se) {
|
|
@@ -4077,7 +4077,7 @@ function Ev() {
|
|
|
4077
4077
|
function De(se) {
|
|
4078
4078
|
return b(se) === u;
|
|
4079
4079
|
}
|
|
4080
|
-
Oe.AsyncMode = I, Oe.ConcurrentMode = L, Oe.ContextConsumer = N, Oe.ContextProvider = R, Oe.Element = P, Oe.ForwardRef = K, Oe.Fragment = O, Oe.Lazy = A, Oe.Memo = M, Oe.Portal = _, Oe.Profiler = Q, Oe.StrictMode = J, Oe.Suspense = U, Oe.isAsyncMode =
|
|
4080
|
+
Oe.AsyncMode = I, Oe.ConcurrentMode = L, Oe.ContextConsumer = N, Oe.ContextProvider = R, Oe.Element = P, Oe.ForwardRef = K, Oe.Fragment = O, Oe.Lazy = A, Oe.Memo = M, Oe.Portal = _, Oe.Profiler = Q, Oe.StrictMode = J, Oe.Suspense = U, Oe.isAsyncMode = W, Oe.isConcurrentMode = V, Oe.isContextConsumer = X, Oe.isContextProvider = G, Oe.isElement = q, Oe.isForwardRef = j, Oe.isFragment = H, Oe.isLazy = ae, Oe.isMemo = ne, Oe.isPortal = pe, Oe.isProfiler = re, Oe.isStrictMode = Ce, Oe.isSuspense = De, Oe.isValidElementType = k, Oe.typeOf = b;
|
|
4081
4081
|
}()), Oe;
|
|
4082
4082
|
}
|
|
4083
4083
|
(function(e) {
|
|
@@ -4213,8 +4213,8 @@ function Dv() {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
return ja = function(c, p) {
|
|
4215
4215
|
var f = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
4216
|
-
function u(
|
|
4217
|
-
var V =
|
|
4216
|
+
function u(W) {
|
|
4217
|
+
var V = W && (f && W[f] || W[m]);
|
|
4218
4218
|
if (typeof V == "function")
|
|
4219
4219
|
return V;
|
|
4220
4220
|
}
|
|
@@ -4238,17 +4238,17 @@ function Dv() {
|
|
|
4238
4238
|
shape: O,
|
|
4239
4239
|
exact: A
|
|
4240
4240
|
};
|
|
4241
|
-
function y(
|
|
4242
|
-
return
|
|
4241
|
+
function y(W, V) {
|
|
4242
|
+
return W === V ? W !== 0 || 1 / W === 1 / V : W !== W && V !== V;
|
|
4243
4243
|
}
|
|
4244
|
-
function w(
|
|
4245
|
-
this.message =
|
|
4244
|
+
function w(W) {
|
|
4245
|
+
this.message = W, this.stack = "";
|
|
4246
4246
|
}
|
|
4247
4247
|
w.prototype = Error.prototype;
|
|
4248
|
-
function E(
|
|
4248
|
+
function E(W) {
|
|
4249
4249
|
if (process.env.NODE_ENV !== "production")
|
|
4250
4250
|
var V = {}, X = 0;
|
|
4251
|
-
function G(j,
|
|
4251
|
+
function G(j, H, ae, ne, pe, re, Ce) {
|
|
4252
4252
|
if (ne = ne || h, re = re || ae, Ce !== n) {
|
|
4253
4253
|
if (p) {
|
|
4254
4254
|
var De = new Error(
|
|
@@ -4262,17 +4262,17 @@ function Dv() {
|
|
|
4262
4262
|
), V[se] = !0, X++);
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
|
-
return
|
|
4265
|
+
return H[ae] == null ? j ? H[ae] === null ? new w("The " + pe + " `" + re + "` is marked as required " + ("in `" + ne + "`, but its value is `null`.")) : new w("The " + pe + " `" + re + "` is marked as required in " + ("`" + ne + "`, but its value is `undefined`.")) : null : W(H, ae, ne, pe, re);
|
|
4266
4266
|
}
|
|
4267
4267
|
var q = G.bind(null, !1);
|
|
4268
4268
|
return q.isRequired = G.bind(null, !0), q;
|
|
4269
4269
|
}
|
|
4270
|
-
function C(
|
|
4271
|
-
function V(X, G, q, j,
|
|
4270
|
+
function C(W) {
|
|
4271
|
+
function V(X, G, q, j, H, ae) {
|
|
4272
4272
|
var ne = X[G], pe = Q(ne);
|
|
4273
|
-
if (pe !==
|
|
4273
|
+
if (pe !== W) {
|
|
4274
4274
|
var re = J(ne);
|
|
4275
|
-
return new w("Invalid " + j + " `" +
|
|
4275
|
+
return new w("Invalid " + j + " `" + H + "` of type " + ("`" + re + "` supplied to `" + q + "`, expected ") + ("`" + W + "`."));
|
|
4276
4276
|
}
|
|
4277
4277
|
return null;
|
|
4278
4278
|
}
|
|
@@ -4281,17 +4281,17 @@ function Dv() {
|
|
|
4281
4281
|
function x() {
|
|
4282
4282
|
return E(l);
|
|
4283
4283
|
}
|
|
4284
|
-
function k(
|
|
4285
|
-
function V(X, G, q, j,
|
|
4286
|
-
if (typeof
|
|
4287
|
-
return new w("Property `" +
|
|
4284
|
+
function k(W) {
|
|
4285
|
+
function V(X, G, q, j, H) {
|
|
4286
|
+
if (typeof W != "function")
|
|
4287
|
+
return new w("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
|
|
4288
4288
|
var ae = X[G];
|
|
4289
4289
|
if (!Array.isArray(ae)) {
|
|
4290
4290
|
var ne = Q(ae);
|
|
4291
|
-
return new w("Invalid " + j + " `" +
|
|
4291
|
+
return new w("Invalid " + j + " `" + H + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected an array."));
|
|
4292
4292
|
}
|
|
4293
4293
|
for (var pe = 0; pe < ae.length; pe++) {
|
|
4294
|
-
var re =
|
|
4294
|
+
var re = W(ae, pe, q, j, H + "[" + pe + "]", n);
|
|
4295
4295
|
if (re instanceof Error)
|
|
4296
4296
|
return re;
|
|
4297
4297
|
}
|
|
@@ -4300,64 +4300,64 @@ function Dv() {
|
|
|
4300
4300
|
return E(V);
|
|
4301
4301
|
}
|
|
4302
4302
|
function b() {
|
|
4303
|
-
function
|
|
4304
|
-
var
|
|
4305
|
-
if (!c(
|
|
4306
|
-
var ae = Q(
|
|
4303
|
+
function W(V, X, G, q, j) {
|
|
4304
|
+
var H = V[X];
|
|
4305
|
+
if (!c(H)) {
|
|
4306
|
+
var ae = Q(H);
|
|
4307
4307
|
return new w("Invalid " + q + " `" + j + "` of type " + ("`" + ae + "` supplied to `" + G + "`, expected a single ReactElement."));
|
|
4308
4308
|
}
|
|
4309
4309
|
return null;
|
|
4310
4310
|
}
|
|
4311
|
-
return E(
|
|
4311
|
+
return E(W);
|
|
4312
4312
|
}
|
|
4313
4313
|
function I() {
|
|
4314
|
-
function
|
|
4315
|
-
var
|
|
4316
|
-
if (!e.isValidElementType(
|
|
4317
|
-
var ae = Q(
|
|
4314
|
+
function W(V, X, G, q, j) {
|
|
4315
|
+
var H = V[X];
|
|
4316
|
+
if (!e.isValidElementType(H)) {
|
|
4317
|
+
var ae = Q(H);
|
|
4318
4318
|
return new w("Invalid " + q + " `" + j + "` of type " + ("`" + ae + "` supplied to `" + G + "`, expected a single ReactElement type."));
|
|
4319
4319
|
}
|
|
4320
4320
|
return null;
|
|
4321
4321
|
}
|
|
4322
|
-
return E(
|
|
4322
|
+
return E(W);
|
|
4323
4323
|
}
|
|
4324
|
-
function L(
|
|
4325
|
-
function V(X, G, q, j,
|
|
4326
|
-
if (!(X[G] instanceof
|
|
4327
|
-
var ae =
|
|
4328
|
-
return new w("Invalid " + j + " `" +
|
|
4324
|
+
function L(W) {
|
|
4325
|
+
function V(X, G, q, j, H) {
|
|
4326
|
+
if (!(X[G] instanceof W)) {
|
|
4327
|
+
var ae = W.name || h, ne = te(X[G]);
|
|
4328
|
+
return new w("Invalid " + j + " `" + H + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected ") + ("instance of `" + ae + "`."));
|
|
4329
4329
|
}
|
|
4330
4330
|
return null;
|
|
4331
4331
|
}
|
|
4332
4332
|
return E(V);
|
|
4333
4333
|
}
|
|
4334
|
-
function N(
|
|
4335
|
-
if (!Array.isArray(
|
|
4334
|
+
function N(W) {
|
|
4335
|
+
if (!Array.isArray(W))
|
|
4336
4336
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
4337
4337
|
"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])."
|
|
4338
4338
|
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
4339
|
-
function V(X, G, q, j,
|
|
4340
|
-
for (var ae = X[G], ne = 0; ne <
|
|
4341
|
-
if (y(ae,
|
|
4339
|
+
function V(X, G, q, j, H) {
|
|
4340
|
+
for (var ae = X[G], ne = 0; ne < W.length; ne++)
|
|
4341
|
+
if (y(ae, W[ne]))
|
|
4342
4342
|
return null;
|
|
4343
|
-
var pe = JSON.stringify(
|
|
4343
|
+
var pe = JSON.stringify(W, function(Ce, De) {
|
|
4344
4344
|
var se = J(De);
|
|
4345
4345
|
return se === "symbol" ? String(De) : De;
|
|
4346
4346
|
});
|
|
4347
|
-
return new w("Invalid " + j + " `" +
|
|
4347
|
+
return new w("Invalid " + j + " `" + H + "` of value `" + String(ae) + "` " + ("supplied to `" + q + "`, expected one of " + pe + "."));
|
|
4348
4348
|
}
|
|
4349
4349
|
return E(V);
|
|
4350
4350
|
}
|
|
4351
|
-
function R(
|
|
4352
|
-
function V(X, G, q, j,
|
|
4353
|
-
if (typeof
|
|
4354
|
-
return new w("Property `" +
|
|
4351
|
+
function R(W) {
|
|
4352
|
+
function V(X, G, q, j, H) {
|
|
4353
|
+
if (typeof W != "function")
|
|
4354
|
+
return new w("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
|
|
4355
4355
|
var ae = X[G], ne = Q(ae);
|
|
4356
4356
|
if (ne !== "object")
|
|
4357
|
-
return new w("Invalid " + j + " `" +
|
|
4357
|
+
return new w("Invalid " + j + " `" + H + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected an object."));
|
|
4358
4358
|
for (var pe in ae)
|
|
4359
4359
|
if (a(ae, pe)) {
|
|
4360
|
-
var re =
|
|
4360
|
+
var re = W(ae, pe, q, j, H + "." + pe, n);
|
|
4361
4361
|
if (re instanceof Error)
|
|
4362
4362
|
return re;
|
|
4363
4363
|
}
|
|
@@ -4365,41 +4365,41 @@ function Dv() {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
return E(V);
|
|
4367
4367
|
}
|
|
4368
|
-
function P(
|
|
4369
|
-
if (!Array.isArray(
|
|
4368
|
+
function P(W) {
|
|
4369
|
+
if (!Array.isArray(W))
|
|
4370
4370
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
4371
|
-
for (var V = 0; V <
|
|
4372
|
-
var X =
|
|
4371
|
+
for (var V = 0; V < W.length; V++) {
|
|
4372
|
+
var X = W[V];
|
|
4373
4373
|
if (typeof X != "function")
|
|
4374
4374
|
return o(
|
|
4375
4375
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(X) + " at index " + V + "."
|
|
4376
4376
|
), l;
|
|
4377
4377
|
}
|
|
4378
|
-
function G(q, j,
|
|
4379
|
-
for (var pe = 0; pe <
|
|
4380
|
-
var re =
|
|
4381
|
-
if (re(q, j,
|
|
4378
|
+
function G(q, j, H, ae, ne) {
|
|
4379
|
+
for (var pe = 0; pe < W.length; pe++) {
|
|
4380
|
+
var re = W[pe];
|
|
4381
|
+
if (re(q, j, H, ae, ne, n) == null)
|
|
4382
4382
|
return null;
|
|
4383
4383
|
}
|
|
4384
|
-
return new w("Invalid " + ae + " `" + ne + "` supplied to " + ("`" +
|
|
4384
|
+
return new w("Invalid " + ae + " `" + ne + "` supplied to " + ("`" + H + "`."));
|
|
4385
4385
|
}
|
|
4386
4386
|
return E(G);
|
|
4387
4387
|
}
|
|
4388
4388
|
function K() {
|
|
4389
|
-
function
|
|
4389
|
+
function W(V, X, G, q, j) {
|
|
4390
4390
|
return M(V[X]) ? null : new w("Invalid " + q + " `" + j + "` supplied to " + ("`" + G + "`, expected a ReactNode."));
|
|
4391
4391
|
}
|
|
4392
|
-
return E(
|
|
4392
|
+
return E(W);
|
|
4393
4393
|
}
|
|
4394
|
-
function O(
|
|
4395
|
-
function V(X, G, q, j,
|
|
4394
|
+
function O(W) {
|
|
4395
|
+
function V(X, G, q, j, H) {
|
|
4396
4396
|
var ae = X[G], ne = Q(ae);
|
|
4397
4397
|
if (ne !== "object")
|
|
4398
|
-
return new w("Invalid " + j + " `" +
|
|
4399
|
-
for (var pe in
|
|
4400
|
-
var re =
|
|
4398
|
+
return new w("Invalid " + j + " `" + H + "` of type `" + ne + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
4399
|
+
for (var pe in W) {
|
|
4400
|
+
var re = W[pe];
|
|
4401
4401
|
if (!!re) {
|
|
4402
|
-
var Ce = re(ae, pe, q, j,
|
|
4402
|
+
var Ce = re(ae, pe, q, j, H + "." + pe, n);
|
|
4403
4403
|
if (Ce)
|
|
4404
4404
|
return Ce;
|
|
4405
4405
|
}
|
|
@@ -4408,20 +4408,20 @@ function Dv() {
|
|
|
4408
4408
|
}
|
|
4409
4409
|
return E(V);
|
|
4410
4410
|
}
|
|
4411
|
-
function A(
|
|
4412
|
-
function V(X, G, q, j,
|
|
4411
|
+
function A(W) {
|
|
4412
|
+
function V(X, G, q, j, H) {
|
|
4413
4413
|
var ae = X[G], ne = Q(ae);
|
|
4414
4414
|
if (ne !== "object")
|
|
4415
|
-
return new w("Invalid " + j + " `" +
|
|
4416
|
-
var pe = t({}, X[G],
|
|
4415
|
+
return new w("Invalid " + j + " `" + H + "` of type `" + ne + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
4416
|
+
var pe = t({}, X[G], W);
|
|
4417
4417
|
for (var re in pe) {
|
|
4418
|
-
var Ce =
|
|
4418
|
+
var Ce = W[re];
|
|
4419
4419
|
if (!Ce)
|
|
4420
4420
|
return new w(
|
|
4421
|
-
"Invalid " + j + " `" +
|
|
4422
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
4421
|
+
"Invalid " + j + " `" + H + "` key `" + re + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(X[G], null, " ") + `
|
|
4422
|
+
Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
|
|
4423
4423
|
);
|
|
4424
|
-
var De = Ce(ae, re, q, j,
|
|
4424
|
+
var De = Ce(ae, re, q, j, H + "." + re, n);
|
|
4425
4425
|
if (De)
|
|
4426
4426
|
return De;
|
|
4427
4427
|
}
|
|
@@ -4429,23 +4429,23 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
4429
4429
|
}
|
|
4430
4430
|
return E(V);
|
|
4431
4431
|
}
|
|
4432
|
-
function M(
|
|
4433
|
-
switch (typeof
|
|
4432
|
+
function M(W) {
|
|
4433
|
+
switch (typeof W) {
|
|
4434
4434
|
case "number":
|
|
4435
4435
|
case "string":
|
|
4436
4436
|
case "undefined":
|
|
4437
4437
|
return !0;
|
|
4438
4438
|
case "boolean":
|
|
4439
|
-
return !
|
|
4439
|
+
return !W;
|
|
4440
4440
|
case "object":
|
|
4441
|
-
if (Array.isArray(
|
|
4442
|
-
return
|
|
4443
|
-
if (
|
|
4441
|
+
if (Array.isArray(W))
|
|
4442
|
+
return W.every(M);
|
|
4443
|
+
if (W === null || c(W))
|
|
4444
4444
|
return !0;
|
|
4445
|
-
var V = u(
|
|
4445
|
+
var V = u(W);
|
|
4446
4446
|
if (V) {
|
|
4447
|
-
var X = V.call(
|
|
4448
|
-
if (V !==
|
|
4447
|
+
var X = V.call(W), G;
|
|
4448
|
+
if (V !== W.entries) {
|
|
4449
4449
|
for (; !(G = X.next()).done; )
|
|
4450
4450
|
if (!M(G.value))
|
|
4451
4451
|
return !1;
|
|
@@ -4462,27 +4462,27 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
4462
4462
|
return !1;
|
|
4463
4463
|
}
|
|
4464
4464
|
}
|
|
4465
|
-
function _(
|
|
4466
|
-
return
|
|
4465
|
+
function _(W, V) {
|
|
4466
|
+
return W === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
|
|
4467
4467
|
}
|
|
4468
|
-
function Q(
|
|
4469
|
-
var V = typeof
|
|
4470
|
-
return Array.isArray(
|
|
4468
|
+
function Q(W) {
|
|
4469
|
+
var V = typeof W;
|
|
4470
|
+
return Array.isArray(W) ? "array" : W instanceof RegExp ? "object" : _(V, W) ? "symbol" : V;
|
|
4471
4471
|
}
|
|
4472
|
-
function J(
|
|
4473
|
-
if (typeof
|
|
4474
|
-
return "" +
|
|
4475
|
-
var V = Q(
|
|
4472
|
+
function J(W) {
|
|
4473
|
+
if (typeof W > "u" || W === null)
|
|
4474
|
+
return "" + W;
|
|
4475
|
+
var V = Q(W);
|
|
4476
4476
|
if (V === "object") {
|
|
4477
|
-
if (
|
|
4477
|
+
if (W instanceof Date)
|
|
4478
4478
|
return "date";
|
|
4479
|
-
if (
|
|
4479
|
+
if (W instanceof RegExp)
|
|
4480
4480
|
return "regexp";
|
|
4481
4481
|
}
|
|
4482
4482
|
return V;
|
|
4483
4483
|
}
|
|
4484
|
-
function U(
|
|
4485
|
-
var V = J(
|
|
4484
|
+
function U(W) {
|
|
4485
|
+
var V = J(W);
|
|
4486
4486
|
switch (V) {
|
|
4487
4487
|
case "array":
|
|
4488
4488
|
case "object":
|
|
@@ -4495,8 +4495,8 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
4495
4495
|
return V;
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
function te(
|
|
4499
|
-
return !
|
|
4498
|
+
function te(W) {
|
|
4499
|
+
return !W.constructor || !W.constructor.name ? h : W.constructor.name;
|
|
4500
4500
|
}
|
|
4501
4501
|
return S.checkPropTypes = r, S.resetWarningCache = r.resetWarningCache, S.PropTypes = S, S;
|
|
4502
4502
|
}, ja;
|
|
@@ -4819,10 +4819,10 @@ function qv(e, t) {
|
|
|
4819
4819
|
var te = je(function() {
|
|
4820
4820
|
var Me = U.reactReduxForwardedRef, ce = Xs(U, Kv);
|
|
4821
4821
|
return [U.context, Me, ce];
|
|
4822
|
-
}, [U]),
|
|
4823
|
-
return
|
|
4824
|
-
}, [
|
|
4825
|
-
if (process.env.NODE_ENV !== "production" && !j && !
|
|
4822
|
+
}, [U]), W = te[0], V = te[1], X = te[2], G = je(function() {
|
|
4823
|
+
return W && W.Consumer && Sr.exports.isContextConsumer(/* @__PURE__ */ z.createElement(W.Consumer, null)) ? W : I;
|
|
4824
|
+
}, [W, I]), q = cn(G), j = Boolean(U.store) && Boolean(U.store.getState) && Boolean(U.store.dispatch), H = Boolean(q) && Boolean(q.store);
|
|
4825
|
+
if (process.env.NODE_ENV !== "production" && !j && !H)
|
|
4826
4826
|
throw new Error('Could not find "store" in the context of ' + ('"' + P + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + P + " in connect options."));
|
|
4827
4827
|
var ae = j ? U.store : q.store, ne = je(function() {
|
|
4828
4828
|
return A(ae);
|
|
@@ -4855,9 +4855,9 @@ function qv(e, t) {
|
|
|
4855
4855
|
}
|
|
4856
4856
|
var Q = O ? z.memo(_) : _;
|
|
4857
4857
|
if (Q.WrappedComponent = N, Q.displayName = _.displayName = P, E) {
|
|
4858
|
-
var J = z.forwardRef(function(te,
|
|
4858
|
+
var J = z.forwardRef(function(te, W) {
|
|
4859
4859
|
return /* @__PURE__ */ z.createElement(Q, fe({}, te, {
|
|
4860
|
-
reactReduxForwardedRef:
|
|
4860
|
+
reactReduxForwardedRef: W
|
|
4861
4861
|
}));
|
|
4862
4862
|
});
|
|
4863
4863
|
return J.displayName = P, J.WrappedComponent = N, cc(J, N);
|
|
@@ -6816,13 +6816,13 @@ var xc = {
|
|
|
6816
6816
|
var te = t.payload.newScroll;
|
|
6817
6817
|
if (vn(e.viewport.scroll.current, te))
|
|
6818
6818
|
return eo(e);
|
|
6819
|
-
var
|
|
6819
|
+
var W = Dp(e.viewport, te);
|
|
6820
6820
|
return xo(e) ? Pp({
|
|
6821
6821
|
state: e,
|
|
6822
|
-
viewport:
|
|
6822
|
+
viewport: W
|
|
6823
6823
|
}) : jr({
|
|
6824
6824
|
state: e,
|
|
6825
|
-
viewport:
|
|
6825
|
+
viewport: W
|
|
6826
6826
|
});
|
|
6827
6827
|
}
|
|
6828
6828
|
if (t.type === "UPDATE_VIEWPORT_MAX_SCROLL") {
|
|
@@ -6870,7 +6870,7 @@ var xc = {
|
|
|
6870
6870
|
return j;
|
|
6871
6871
|
}
|
|
6872
6872
|
if (t.type === "DROP_ANIMATE") {
|
|
6873
|
-
var
|
|
6873
|
+
var H = t.payload, ae = H.completed, ne = H.dropDuration, pe = H.newHomeClientOffset;
|
|
6874
6874
|
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? F(!1, "Cannot animate drop from phase " + e.phase) : F(!1));
|
|
6875
6875
|
var re = {
|
|
6876
6876
|
phase: "DROP_ANIMATING",
|
|
@@ -12522,7 +12522,7 @@ const ND = {
|
|
|
12522
12522
|
formMeta: "SpsFormFieldMeta<SimpleDateRange | DatePreset>",
|
|
12523
12523
|
maxDate: "SimpleDate",
|
|
12524
12524
|
minDate: "SimpleDate",
|
|
12525
|
-
onChange:
|
|
12525
|
+
onChange: '(newDateRange: SimpleDateRange | DatePreset | null, preset?: DatePreset["definition"]) => void',
|
|
12526
12526
|
presets: "Array<DatePreset>",
|
|
12527
12527
|
selectedPreset: "string",
|
|
12528
12528
|
onPresetChange: "(newPreset?: string) => void",
|
|
@@ -12581,19 +12581,19 @@ function yu({
|
|
|
12581
12581
|
const q = u || [];
|
|
12582
12582
|
let j;
|
|
12583
12583
|
!q[0] || q[1] || Z.isBefore(G, q[0]) ? j = [G, null] : j = [q[0], G];
|
|
12584
|
-
let
|
|
12585
|
-
|
|
12584
|
+
let H = N;
|
|
12585
|
+
(H == null ? void 0 : H.label) === "Before" && q[0] === null && q[1] === null && (j = [null, G]), (j[0] && j[1] || (H == null ? void 0 : H.label) === "Before" || (H == null ? void 0 : H.label) === "After") && (M(!0), k && k.current && k.current.focus()), ((H == null ? void 0 : H.label) === "Before" && j && j[0] !== null || H && (H == null ? void 0 : H.label) !== "Before" && (H == null ? void 0 : H.label) !== "After") && (R(null), H = null), _(j, H == null ? void 0 : H.definition), L(Z.toStringRange(j)), K(void 0);
|
|
12586
12586
|
}
|
|
12587
12587
|
function U(G) {
|
|
12588
12588
|
L(G.target.value);
|
|
12589
12589
|
const q = Z.createRangeFrom(G.target.value);
|
|
12590
|
-
let j = N
|
|
12591
|
-
Array.isArray(q) && q[0] && q[1] && (j === "Before" || j === "After") && (R(null), j = null), _(q, j), K(void 0);
|
|
12590
|
+
let j = N;
|
|
12591
|
+
Array.isArray(q) && q[0] && q[1] && ((j == null ? void 0 : j.label) === "Before" || (j == null ? void 0 : j.label) === "After") && (R(null), j = null), _(q, j == null ? void 0 : j.definition), K(void 0);
|
|
12592
12592
|
}
|
|
12593
12593
|
function te() {
|
|
12594
12594
|
L(""), _(), K(void 0), R(null);
|
|
12595
12595
|
}
|
|
12596
|
-
function
|
|
12596
|
+
function W(G) {
|
|
12597
12597
|
switch (G.key) {
|
|
12598
12598
|
case "Tab":
|
|
12599
12599
|
M();
|
|
@@ -12611,10 +12611,14 @@ function yu({
|
|
|
12611
12611
|
R(G);
|
|
12612
12612
|
let q = Z.createRangeFromPreset(G);
|
|
12613
12613
|
const j = G && Q(G);
|
|
12614
|
-
(j === "Before" || j === "After") && u && u[0] && u[1] ? q = Z.createRangeFrom("-") : j === "Before" ? q = Z.createRangeFrom(`-${Z.toString(u && u[0])}`) : j === "After" && (q = Z.createRangeFrom(`${Z.toString(u && u[0])}-`)), JSON.stringify(u) !== JSON.stringify(q) && _(q,
|
|
12614
|
+
(j === "Before" || j === "After") && u && u[0] && u[1] ? q = Z.createRangeFrom("-") : j === "Before" ? q = Z.createRangeFrom(`-${Z.toString(u && u[0])}`) : j === "After" && (q = Z.createRangeFrom(`${Z.toString(u && u[0])}-`)), JSON.stringify(u) !== JSON.stringify(q) && _(q, G == null ? void 0 : G.definition);
|
|
12615
12615
|
}
|
|
12616
12616
|
s.useEffect(() => {
|
|
12617
|
-
if (
|
|
12617
|
+
if (!u) {
|
|
12618
|
+
R(null);
|
|
12619
|
+
return;
|
|
12620
|
+
}
|
|
12621
|
+
if (p !== Qc && Array.isArray(u)) {
|
|
12618
12622
|
const G = Z.toStringRange(u), q = p.find(
|
|
12619
12623
|
(j) => G === Z.toStringRange(
|
|
12620
12624
|
Z.createRangeFromPreset(j)
|
|
@@ -12658,7 +12662,7 @@ function yu({
|
|
|
12658
12662
|
onChange: U,
|
|
12659
12663
|
onClick: A,
|
|
12660
12664
|
onFocus: A,
|
|
12661
|
-
onKeyDown:
|
|
12665
|
+
onKeyDown: W,
|
|
12662
12666
|
value: I,
|
|
12663
12667
|
disabled: n,
|
|
12664
12668
|
...y
|
|
@@ -12947,7 +12951,7 @@ const ID = {
|
|
|
12947
12951
|
disableOptionsMemoization: _,
|
|
12948
12952
|
disableDefaultOptionsFiltering: Q,
|
|
12949
12953
|
...J
|
|
12950
|
-
} = e, U = f || p, { wrapperId: te, controlId:
|
|
12954
|
+
} = e, U = f || p, { wrapperId: te, controlId: W } = bt(m, U), V = s.useRef(null), X = s.useRef(null), G = s.useRef(null), { t: q } = s.useContext(Ve), [j, H] = dn({
|
|
12951
12955
|
isOpen: !1,
|
|
12952
12956
|
value: N,
|
|
12953
12957
|
text: "",
|
|
@@ -12956,7 +12960,7 @@ const ID = {
|
|
|
12956
12960
|
optionIds: ""
|
|
12957
12961
|
});
|
|
12958
12962
|
function ae(be) {
|
|
12959
|
-
|
|
12963
|
+
H({
|
|
12960
12964
|
value: be,
|
|
12961
12965
|
text: be && b ? be[b] : be
|
|
12962
12966
|
});
|
|
@@ -12975,10 +12979,10 @@ const ID = {
|
|
|
12975
12979
|
ne(void 0);
|
|
12976
12980
|
}
|
|
12977
12981
|
function re() {
|
|
12978
|
-
|
|
12982
|
+
H({ isOpen: !1 });
|
|
12979
12983
|
}
|
|
12980
12984
|
function Ce(be) {
|
|
12981
|
-
be.nativeEvent.stopImmediatePropagation(), c ||
|
|
12985
|
+
be.nativeEvent.stopImmediatePropagation(), c || H({ isOpen: !j.isOpen });
|
|
12982
12986
|
}
|
|
12983
12987
|
function De(be) {
|
|
12984
12988
|
c || ([
|
|
@@ -12988,19 +12992,19 @@ const ID = {
|
|
|
12988
12992
|
"ArrowDown",
|
|
12989
12993
|
" ",
|
|
12990
12994
|
"Spacebar"
|
|
12991
|
-
].indexOf(be.key) > -1 && be.preventDefault(), be.persist(),
|
|
12995
|
+
].indexOf(be.key) > -1 && be.preventDefault(), be.persist(), H({ keyDown: be }));
|
|
12992
12996
|
}
|
|
12993
12997
|
function se(be) {
|
|
12994
|
-
|
|
12998
|
+
H({ isOpen: be });
|
|
12995
12999
|
}
|
|
12996
13000
|
function Je(be) {
|
|
12997
|
-
|
|
13001
|
+
H({ opensUpward: be });
|
|
12998
13002
|
}
|
|
12999
13003
|
function $e(be) {
|
|
13000
|
-
be.detail !== te &&
|
|
13004
|
+
be.detail !== te && H({ isOpen: !1 });
|
|
13001
13005
|
}
|
|
13002
13006
|
function at(be) {
|
|
13003
|
-
|
|
13007
|
+
H({
|
|
13004
13008
|
optionIds: new Array(be).fill("").map((Pe, He) => `${te}-options-option-${He}`).join(",")
|
|
13005
13009
|
});
|
|
13006
13010
|
}
|
|
@@ -13047,7 +13051,7 @@ const ID = {
|
|
|
13047
13051
|
...J
|
|
13048
13052
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
13049
13053
|
className: $("sps-select__dropctrl", c && "disabled"),
|
|
13050
|
-
id:
|
|
13054
|
+
id: W,
|
|
13051
13055
|
tabIndex: 0,
|
|
13052
13056
|
onClick: Ce,
|
|
13053
13057
|
ref: G,
|
|
@@ -13780,10 +13784,10 @@ function Tu({
|
|
|
13780
13784
|
L[1]
|
|
13781
13785
|
), [_, Q] = s.useState(N[1]), [J, U] = s.useState(
|
|
13782
13786
|
L[2]
|
|
13783
|
-
), [te,
|
|
13787
|
+
), [te, W] = s.useState(
|
|
13784
13788
|
N[2]
|
|
13785
13789
|
), [V, X] = s.useState(null), { showPopup: G, doShowPopup: q, doHidePopup: j } = is(C, I);
|
|
13786
|
-
function
|
|
13790
|
+
function H(ce) {
|
|
13787
13791
|
n && (n.setValue(ce), n.markAsDirty()), l && l(ce);
|
|
13788
13792
|
}
|
|
13789
13793
|
function ae(ce) {
|
|
@@ -13814,7 +13818,7 @@ function Tu({
|
|
|
13814
13818
|
te === "PM" ? 12 + Le : Le
|
|
13815
13819
|
), we == null || we.set("minute", Se), ot = [oe[0], we], j(!0), X(null);
|
|
13816
13820
|
}
|
|
13817
|
-
|
|
13821
|
+
H(ot);
|
|
13818
13822
|
}
|
|
13819
13823
|
function Ce(ce) {
|
|
13820
13824
|
P(ce.target.value);
|
|
@@ -13839,7 +13843,7 @@ function Tu({
|
|
|
13839
13843
|
oe,
|
|
13840
13844
|
(oe == null ? void 0 : oe.isBefore(p == null ? void 0 : p[1])) && (p == null ? void 0 : p[1]) || null
|
|
13841
13845
|
];
|
|
13842
|
-
|
|
13846
|
+
H(Le);
|
|
13843
13847
|
}
|
|
13844
13848
|
}
|
|
13845
13849
|
function Je() {
|
|
@@ -13874,20 +13878,20 @@ function Tu({
|
|
|
13874
13878
|
(oe == null ? void 0 : oe.isAfter(p == null ? void 0 : p[0])) && (p == null ? void 0 : p[0]) || null,
|
|
13875
13879
|
oe
|
|
13876
13880
|
];
|
|
13877
|
-
|
|
13881
|
+
H(Le);
|
|
13878
13882
|
}
|
|
13879
13883
|
}
|
|
13880
13884
|
function be() {
|
|
13881
13885
|
Z.validateTimeString(_, m) && (Q(Z.padIncompleteTimeString(_, m)), setTimeout(Xe, 0));
|
|
13882
13886
|
}
|
|
13883
13887
|
function Pe(ce) {
|
|
13884
|
-
|
|
13888
|
+
W(ce.target.value);
|
|
13885
13889
|
}
|
|
13886
13890
|
s.useEffect(() => {
|
|
13887
13891
|
te !== N[2] && Xe();
|
|
13888
13892
|
}, [te]);
|
|
13889
13893
|
function He() {
|
|
13890
|
-
|
|
13894
|
+
H([null, null]), X(null);
|
|
13891
13895
|
}
|
|
13892
13896
|
function ue(ce) {
|
|
13893
13897
|
return function(oe) {
|
|
@@ -13906,12 +13910,12 @@ function Tu({
|
|
|
13906
13910
|
}
|
|
13907
13911
|
function ye(ce) {
|
|
13908
13912
|
if (!ce) {
|
|
13909
|
-
X(null),
|
|
13913
|
+
X(null), H([null, null]);
|
|
13910
13914
|
return;
|
|
13911
13915
|
}
|
|
13912
13916
|
X(ce);
|
|
13913
13917
|
const oe = Z.createDateTimeRangeFromPreset(ce);
|
|
13914
|
-
ce && ae(ce) === "Before" ? !p || Array.isArray(p) && p[0] && p[1] ?
|
|
13918
|
+
ce && ae(ce) === "Before" ? !p || Array.isArray(p) && p[0] && p[1] ? H([null, null]) : Array.isArray(p) && p[0] ? H([null, Z.toMoment(Z.createFrom(p[0]))]) : Array.isArray(p) && p[1] && H([null, Z.toMoment(Z.createFrom(p[1]))]) : ce && ae(ce) === "After" ? !p || Array.isArray(p) && p[0] && p[1] ? H([null, null]) : Array.isArray(p) && p[0] ? H([Z.toMoment(Z.createFrom(p[0])), null]) : Array.isArray(p) && p[1] && H([Z.toMoment(Z.createFrom(p[1])), null]) : JSON.stringify(p) !== JSON.stringify(oe) && H([oe[0], oe[1]]);
|
|
13915
13919
|
}
|
|
13916
13920
|
s.useEffect(() => {
|
|
13917
13921
|
if (!!p && Array.isArray(p)) {
|
|
@@ -13932,7 +13936,7 @@ function Tu({
|
|
|
13932
13936
|
}
|
|
13933
13937
|
}
|
|
13934
13938
|
}, []), s.useEffect(() => {
|
|
13935
|
-
L[0] ? P(L[0]) : P(""), L[1] ? M(L[1]) : M(m ? "00:00" : "12:00"), m || (L[2] ? U(L[2]) : U("AM")), N[0] ? O(N[0]) : O(""), N[1] ? Q(N[1]) : Q(m ? "00:00" : "12:00"), m || (N[2] ?
|
|
13939
|
+
L[0] ? P(L[0]) : P(""), L[1] ? M(L[1]) : M(m ? "00:00" : "12:00"), m || (L[2] ? U(L[2]) : U("AM")), N[0] ? O(N[0]) : O(""), N[1] ? Q(N[1]) : Q(m ? "00:00" : "12:00"), m || (N[2] ? W(N[2]) : W("AM"));
|
|
13936
13940
|
}, [
|
|
13937
13941
|
L[0],
|
|
13938
13942
|
L[1],
|
|
@@ -14453,7 +14457,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14453
14457
|
lastWeek: "[Last] dddd [at] LT",
|
|
14454
14458
|
sameElse: "L"
|
|
14455
14459
|
};
|
|
14456
|
-
function
|
|
14460
|
+
function W(i, d, g) {
|
|
14457
14461
|
var v = this._calendar[i] || this._calendar.sameElse;
|
|
14458
14462
|
return M(v) ? v.call(d, g) : v;
|
|
14459
14463
|
}
|
|
@@ -14462,7 +14466,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14462
14466
|
return (B ? g ? "+" : "" : "-") + Math.pow(10, Math.max(0, D)).toString().substr(1) + v;
|
|
14463
14467
|
}
|
|
14464
14468
|
var X = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, G = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, q = {}, j = {};
|
|
14465
|
-
function
|
|
14469
|
+
function H(i, d, g, v) {
|
|
14466
14470
|
var D = v;
|
|
14467
14471
|
typeof v == "string" && (D = function() {
|
|
14468
14472
|
return this[v]();
|
|
@@ -14670,11 +14674,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14670
14674
|
var g = tf(d, 12);
|
|
14671
14675
|
return i += (d - g) / 12, g === 1 ? ot(i) ? 29 : 28 : 31 - g % 7 % 2;
|
|
14672
14676
|
}
|
|
14673
|
-
|
|
14677
|
+
H("M", ["MM", 2], "Mo", function() {
|
|
14674
14678
|
return this.month() + 1;
|
|
14675
|
-
}),
|
|
14679
|
+
}), H("MMM", 0, 0, function(i) {
|
|
14676
14680
|
return this.localeData().monthsShort(this, i);
|
|
14677
|
-
}),
|
|
14681
|
+
}), H("MMMM", 0, 0, function(i) {
|
|
14678
14682
|
return this.localeData().months(this, i);
|
|
14679
14683
|
}), ue("month", "M"), oe("month", 8), de("M", le), de("MM", le, ut), de("MMM", function(i, d) {
|
|
14680
14684
|
return d.monthsShortRegex(i);
|
|
@@ -14769,12 +14773,12 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14769
14773
|
"i"
|
|
14770
14774
|
);
|
|
14771
14775
|
}
|
|
14772
|
-
|
|
14776
|
+
H("Y", 0, 0, function() {
|
|
14773
14777
|
var i = this.year();
|
|
14774
14778
|
return i <= 9999 ? V(i, 4) : "+" + i;
|
|
14775
|
-
}),
|
|
14779
|
+
}), H(0, ["YY", 2], 0, function() {
|
|
14776
14780
|
return this.year() % 100;
|
|
14777
|
-
}),
|
|
14781
|
+
}), H(0, ["YYYY", 4], 0, "year"), H(0, ["YYYYY", 5], 0, "year"), H(0, ["YYYYYY", 6, !0], 0, "year"), ue("year", "y"), oe("year", 1), de("Y", bs), de("YY", le, ut), de("YYYY", Un, _r), de("YYYYY", Yn, Dn), de("YYYYYY", Yn, Dn), Re(["YYYYY", "YYYYYY"], it), Re("YYYY", function(i, d) {
|
|
14778
14782
|
d[it] = i.length === 2 ? r.parseTwoDigitYear(i) : Se(i);
|
|
14779
14783
|
}), Re("YY", function(i, d) {
|
|
14780
14784
|
d[it] = r.parseTwoDigitYear(i);
|
|
@@ -14821,7 +14825,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14821
14825
|
var v = Es(i, d, g), D = Es(i + 1, d, g);
|
|
14822
14826
|
return (Rr(i) - v + D) / 7;
|
|
14823
14827
|
}
|
|
14824
|
-
|
|
14828
|
+
H("w", ["ww", 2], "wo", "week"), H("W", ["WW", 2], "Wo", "isoWeek"), ue("week", "w"), ue("isoWeek", "W"), oe("week", 5), oe("isoWeek", 5), de("w", le), de("ww", le, ut), de("W", le), de("WW", le, ut), Lr(["w", "ww", "W", "WW"], function(i, d, g, v) {
|
|
14825
14829
|
d[v.substr(0, 1)] = Se(i);
|
|
14826
14830
|
});
|
|
14827
14831
|
function hf(i) {
|
|
@@ -14845,13 +14849,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14845
14849
|
var d = Br(this, 1, 4).week;
|
|
14846
14850
|
return i == null ? d : this.add((i - d) * 7, "d");
|
|
14847
14851
|
}
|
|
14848
|
-
|
|
14852
|
+
H("d", 0, "do", "day"), H("dd", 0, 0, function(i) {
|
|
14849
14853
|
return this.localeData().weekdaysMin(this, i);
|
|
14850
|
-
}),
|
|
14854
|
+
}), H("ddd", 0, 0, function(i) {
|
|
14851
14855
|
return this.localeData().weekdaysShort(this, i);
|
|
14852
|
-
}),
|
|
14856
|
+
}), H("dddd", 0, 0, function(i) {
|
|
14853
14857
|
return this.localeData().weekdays(this, i);
|
|
14854
|
-
}),
|
|
14858
|
+
}), H("e", 0, 0, "weekday"), H("E", 0, 0, "isoWeekday"), ue("day", "d"), ue("weekday", "e"), ue("isoWeekday", "E"), oe("day", 11), oe("weekday", 11), oe("isoWeekday", 11), de("d", le), de("e", le), de("E", le), de("dd", function(i, d) {
|
|
14855
14859
|
return d.weekdaysMinRegex(i);
|
|
14856
14860
|
}), de("ddd", function(i, d) {
|
|
14857
14861
|
return d.weekdaysShortRegex(i);
|
|
@@ -14976,17 +14980,17 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14976
14980
|
function Vf() {
|
|
14977
14981
|
return this.hours() || 24;
|
|
14978
14982
|
}
|
|
14979
|
-
|
|
14983
|
+
H("H", ["HH", 2], 0, "hour"), H("h", ["hh", 2], 0, Na), H("k", ["kk", 2], 0, Vf), H("hmm", 0, 0, function() {
|
|
14980
14984
|
return "" + Na.apply(this) + V(this.minutes(), 2);
|
|
14981
|
-
}),
|
|
14985
|
+
}), H("hmmss", 0, 0, function() {
|
|
14982
14986
|
return "" + Na.apply(this) + V(this.minutes(), 2) + V(this.seconds(), 2);
|
|
14983
|
-
}),
|
|
14987
|
+
}), H("Hmm", 0, 0, function() {
|
|
14984
14988
|
return "" + this.hours() + V(this.minutes(), 2);
|
|
14985
|
-
}),
|
|
14989
|
+
}), H("Hmmss", 0, 0, function() {
|
|
14986
14990
|
return "" + this.hours() + V(this.minutes(), 2) + V(this.seconds(), 2);
|
|
14987
14991
|
});
|
|
14988
14992
|
function sl(i, d) {
|
|
14989
|
-
|
|
14993
|
+
H(i, 0, 0, function() {
|
|
14990
14994
|
return this.localeData().meridiem(
|
|
14991
14995
|
this.hours(),
|
|
14992
14996
|
this.minutes(),
|
|
@@ -15458,7 +15462,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
15458
15462
|
return B + D;
|
|
15459
15463
|
}
|
|
15460
15464
|
function ml(i, d) {
|
|
15461
|
-
|
|
15465
|
+
H(i, 0, 0, function() {
|
|
15462
15466
|
var g = this.utcOffset(), v = "+";
|
|
15463
15467
|
return g < 0 && (g = -g, v = "-"), v + V(~~(g / 60), 2) + d + V(~~g % 60, 2);
|
|
15464
15468
|
});
|
|
@@ -15944,7 +15948,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
15944
15948
|
strict: this._strict
|
|
15945
15949
|
};
|
|
15946
15950
|
}
|
|
15947
|
-
|
|
15951
|
+
H("N", 0, 0, "eraAbbr"), H("NN", 0, 0, "eraAbbr"), H("NNN", 0, 0, "eraAbbr"), H("NNNN", 0, 0, "eraName"), H("NNNNN", 0, 0, "eraNarrow"), H("y", ["y", 1], "yo", "eraYear"), H("y", ["yy", 2], 0, "eraYear"), H("y", ["yyy", 3], 0, "eraYear"), H("y", ["yyyy", 4], 0, "eraYear"), de("N", Ba), de("NN", Ba), de("NNN", Ba), de("NNNN", Ig), de("NNNNN", kg), Re(["N", "NN", "NNN", "NNNN", "NNNNN"], function(i, d, g, v) {
|
|
15948
15952
|
var D = g._locale.erasParse(i, v, g._strict);
|
|
15949
15953
|
D ? E(g).era = D : E(g).invalidEra = i;
|
|
15950
15954
|
}), de("y", jn), de("yy", jn), de("yyy", jn), de("yyyy", jn), de("yo", Mg), Re(["y", "yy", "yyy", "yyyy"], it), Re(["yo"], function(i, d, g, v) {
|
|
@@ -16055,13 +16059,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16055
16059
|
"i"
|
|
16056
16060
|
);
|
|
16057
16061
|
}
|
|
16058
|
-
|
|
16062
|
+
H(0, ["gg", 2], 0, function() {
|
|
16059
16063
|
return this.weekYear() % 100;
|
|
16060
|
-
}),
|
|
16064
|
+
}), H(0, ["GG", 2], 0, function() {
|
|
16061
16065
|
return this.isoWeekYear() % 100;
|
|
16062
16066
|
});
|
|
16063
16067
|
function Ms(i, d) {
|
|
16064
|
-
|
|
16068
|
+
H(0, [i, i.length], 0, d);
|
|
16065
16069
|
}
|
|
16066
16070
|
Ms("gggg", "weekYear"), Ms("ggggg", "weekYear"), Ms("GGGG", "isoWeekYear"), Ms("GGGGG", "isoWeekYear"), ue("weekYear", "gg"), ue("isoWeekYear", "GG"), oe("weekYear", 1), oe("isoWeekYear", 1), de("G", bs), de("g", bs), de("GG", le, ut), de("gg", le, ut), de("GGGG", Un, _r), de("gggg", Un, _r), de("GGGGG", Yn, Dn), de("ggggg", Yn, Dn), Lr(["gggg", "ggggg", "GGGG", "GGGGG"], function(i, d, g, v) {
|
|
16067
16071
|
d[v.substr(0, 2)] = Se(i);
|
|
@@ -16110,19 +16114,19 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16110
16114
|
var B = nl(i, d, g, v, D), Y = Pr(B.year, 0, B.dayOfYear);
|
|
16111
16115
|
return this.year(Y.getUTCFullYear()), this.month(Y.getUTCMonth()), this.date(Y.getUTCDate()), this;
|
|
16112
16116
|
}
|
|
16113
|
-
|
|
16117
|
+
H("Q", 0, "Qo", "quarter"), ue("quarter", "Q"), oe("quarter", 7), de("Q", Ss), Re("Q", function(i, d) {
|
|
16114
16118
|
d[qt] = (Se(i) - 1) * 3;
|
|
16115
16119
|
});
|
|
16116
16120
|
function Fg(i) {
|
|
16117
16121
|
return i == null ? Math.ceil((this.month() + 1) / 3) : this.month((i - 1) * 3 + this.month() % 3);
|
|
16118
16122
|
}
|
|
16119
|
-
|
|
16123
|
+
H("D", ["DD", 2], "Do", "date"), ue("date", "D"), oe("date", 9), de("D", le), de("DD", le, ut), de("Do", function(i, d) {
|
|
16120
16124
|
return i ? d._dayOfMonthOrdinalParse || d._ordinalParse : d._dayOfMonthOrdinalParseLenient;
|
|
16121
16125
|
}), Re(["D", "DD"], Kt), Re("Do", function(i, d) {
|
|
16122
16126
|
d[Kt] = Se(i.match(le)[0]);
|
|
16123
16127
|
});
|
|
16124
16128
|
var Nl = wt("Date", !0);
|
|
16125
|
-
|
|
16129
|
+
H("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), ue("dayOfYear", "DDD"), oe("dayOfYear", 4), de("DDD", Ct), de("DDDD", Mr), Re(["DDD", "DDDD"], function(i, d, g) {
|
|
16126
16130
|
g._dayOfYear = Se(i);
|
|
16127
16131
|
});
|
|
16128
16132
|
function Vg(i) {
|
|
@@ -16131,25 +16135,25 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16131
16135
|
) + 1;
|
|
16132
16136
|
return i == null ? d : this.add(i - d, "d");
|
|
16133
16137
|
}
|
|
16134
|
-
|
|
16138
|
+
H("m", ["mm", 2], 0, "minute"), ue("minute", "m"), oe("minute", 14), de("m", le), de("mm", le, ut), Re(["m", "mm"], _t);
|
|
16135
16139
|
var $g = wt("Minutes", !1);
|
|
16136
|
-
|
|
16140
|
+
H("s", ["ss", 2], 0, "second"), ue("second", "s"), oe("second", 15), de("s", le), de("ss", le, ut), Re(["s", "ss"], Jt);
|
|
16137
16141
|
var Kg = wt("Seconds", !1);
|
|
16138
|
-
|
|
16142
|
+
H("S", 0, 0, function() {
|
|
16139
16143
|
return ~~(this.millisecond() / 100);
|
|
16140
|
-
}),
|
|
16144
|
+
}), H(0, ["SS", 2], 0, function() {
|
|
16141
16145
|
return ~~(this.millisecond() / 10);
|
|
16142
|
-
}),
|
|
16146
|
+
}), H(0, ["SSS", 3], 0, "millisecond"), H(0, ["SSSS", 4], 0, function() {
|
|
16143
16147
|
return this.millisecond() * 10;
|
|
16144
|
-
}),
|
|
16148
|
+
}), H(0, ["SSSSS", 5], 0, function() {
|
|
16145
16149
|
return this.millisecond() * 100;
|
|
16146
|
-
}),
|
|
16150
|
+
}), H(0, ["SSSSSS", 6], 0, function() {
|
|
16147
16151
|
return this.millisecond() * 1e3;
|
|
16148
|
-
}),
|
|
16152
|
+
}), H(0, ["SSSSSSS", 7], 0, function() {
|
|
16149
16153
|
return this.millisecond() * 1e4;
|
|
16150
|
-
}),
|
|
16154
|
+
}), H(0, ["SSSSSSSS", 8], 0, function() {
|
|
16151
16155
|
return this.millisecond() * 1e5;
|
|
16152
|
-
}),
|
|
16156
|
+
}), H(0, ["SSSSSSSSS", 9], 0, function() {
|
|
16153
16157
|
return this.millisecond() * 1e6;
|
|
16154
16158
|
}), ue("millisecond", "ms"), oe("millisecond", 16), de("S", Ct, Ss), de("SS", Ct, ut), de("SSS", Ct, Mr);
|
|
16155
16159
|
var mn, xl;
|
|
@@ -16160,7 +16164,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16160
16164
|
}
|
|
16161
16165
|
for (mn = "S"; mn.length <= 9; mn += "S")
|
|
16162
16166
|
Re(mn, Hg);
|
|
16163
|
-
xl = wt("Milliseconds", !1),
|
|
16167
|
+
xl = wt("Milliseconds", !1), H("z", 0, 0, "zoneAbbr"), H("zz", 0, 0, "zoneName");
|
|
16164
16168
|
function Wg() {
|
|
16165
16169
|
return this._isUTC ? "UTC" : "";
|
|
16166
16170
|
}
|
|
@@ -16196,7 +16200,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16196
16200
|
return i;
|
|
16197
16201
|
}
|
|
16198
16202
|
var ke = J.prototype;
|
|
16199
|
-
ke.calendar =
|
|
16203
|
+
ke.calendar = W, ke.longDateFormat = De, ke.invalidDate = Je, ke.ordinal = pt, ke.preparse = Il, ke.postformat = Il, ke.relativeTime = be, ke.pastFuture = Pe, ke.set = _, ke.eras = bg, ke.erasParse = vg, ke.erasConvertYear = yg, ke.erasAbbrRegex = Ng, ke.erasNameRegex = Dg, ke.erasNarrowRegex = xg, ke.months = af, ke.monthsShort = of, ke.monthsParse = cf, ke.monthsRegex = uf, ke.monthsShortRegex = pf, ke.week = hf, ke.firstDayOfYear = bf, ke.firstDayOfWeek = Sf, ke.weekdays = If, ke.weekdaysMin = Mf, ke.weekdaysShort = kf, ke.weekdaysParse = Of, ke.weekdaysRegex = Bf, ke.weekdaysShortRegex = Af, ke.weekdaysMinRegex = Ff, ke.isPM = $f, ke.meridiem = Wf;
|
|
16200
16204
|
function _s(i, d, g, v) {
|
|
16201
16205
|
var D = Xt(), B = y().set(v, d);
|
|
16202
16206
|
return D[g](B, i);
|
|
@@ -16389,7 +16393,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
16389
16393
|
xe.isValid = vh, xe.abs = Xg, xe.add = Qg, xe.subtract = eS, xe.as = nS, xe.asMilliseconds = sS, xe.asSeconds = aS, xe.asMinutes = oS, xe.asHours = iS, xe.asDays = lS, xe.asWeeks = cS, xe.asMonths = dS, xe.asQuarters = pS, xe.asYears = uS, xe.valueOf = rS, xe._bubble = tS, xe.clone = mS, xe.get = fS, xe.milliseconds = hS, xe.seconds = gS, xe.minutes = SS, xe.hours = bS, xe.days = vS, xe.weeks = ES, xe.months = yS, xe.years = TS, xe.humanize = xS, xe.toISOString = Os, xe.toString = Os, xe.toJSON = Os, xe.locale = vl, xe.localeData = Tl, xe.toIsoString = K(
|
|
16390
16394
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
16391
16395
|
Os
|
|
16392
|
-
), xe.lang = yl,
|
|
16396
|
+
), xe.lang = yl, H("X", 0, 0, "unix"), H("x", 0, 0, "valueOf"), de("x", bs), de("X", qm), Re("X", function(i, d, g) {
|
|
16393
16397
|
g._d = new Date(parseFloat(i) * 1e3);
|
|
16394
16398
|
}), Re("x", function(i, d, g) {
|
|
16395
16399
|
g._d = new Date(Se(i));
|
|
@@ -17353,30 +17357,30 @@ function At({
|
|
|
17353
17357
|
}, []), L = s.useCallback(() => {
|
|
17354
17358
|
I(), C(!1);
|
|
17355
17359
|
}, []), N = s.useCallback((te = !1) => {
|
|
17356
|
-
var
|
|
17360
|
+
var W;
|
|
17357
17361
|
if (te === !0 && On.size > 0)
|
|
17358
17362
|
return p && p(), !1;
|
|
17359
|
-
if (((
|
|
17363
|
+
if (((W = x.current) == null ? void 0 : W.textContent) === "")
|
|
17360
17364
|
return console.warn("SpsTooltip is empty; aborting show"), !1;
|
|
17361
17365
|
I();
|
|
17362
17366
|
for (const V of On.values())
|
|
17363
17367
|
V();
|
|
17364
17368
|
return C(!0), !0;
|
|
17365
17369
|
}, []), R = s.useCallback((te) => {
|
|
17366
|
-
te && te.stopPropagation(), C((
|
|
17370
|
+
te && te.stopPropagation(), C((W) => W ? (L(), !1) : N());
|
|
17367
17371
|
}, []), P = s.useCallback((te) => {
|
|
17368
17372
|
x.current && !x.current.contains(te.target) && L();
|
|
17369
17373
|
}, []), K = s.useCallback(() => {
|
|
17370
17374
|
I(), w.current.hideTimer = window.setTimeout(L, a);
|
|
17371
17375
|
}, []), O = s.useCallback((te) => {
|
|
17372
|
-
var
|
|
17373
|
-
const [
|
|
17374
|
-
if (["top", "bottom"].includes(
|
|
17376
|
+
var H, ae, ne, pe, re, Ce;
|
|
17377
|
+
const [W, V] = te.split(" "), X = (H = k == null ? void 0 : k.current) == null ? void 0 : H.getBoundingClientRect(), G = b.current ? parseInt(((ae = getComputedStyle(b.current)) == null ? void 0 : ae.width) || "0", 10) : 0, q = G * Math.sqrt(2), j = (q - G) / 2;
|
|
17378
|
+
if (["top", "bottom"].includes(W) && V !== "middle") {
|
|
17375
17379
|
if (!(X != null && X.width) || X.width > 50)
|
|
17376
17380
|
return 0;
|
|
17377
17381
|
const De = b.current ? parseInt(((ne = getComputedStyle(b.current)) == null ? void 0 : ne.left) || "0", 10) : 0, se = b.current ? parseInt(((pe = getComputedStyle(b.current)) == null ? void 0 : pe.right) || "0", 10) : 0, $e = (De < se ? De : se) - j + q / 2;
|
|
17378
17382
|
return X.width / 2 - $e;
|
|
17379
|
-
} else if (["left", "right"].includes(
|
|
17383
|
+
} else if (["left", "right"].includes(W) && V !== "middle") {
|
|
17380
17384
|
if ((X == null ? void 0 : X.height) && X.height > 50)
|
|
17381
17385
|
return 0;
|
|
17382
17386
|
const De = b.current ? parseInt(((re = getComputedStyle(b.current)) == null ? void 0 : re.top) || "0", 10) : 0, se = b.current ? parseInt(((Ce = getComputedStyle(b.current)) == null ? void 0 : Ce.bottom) || "0", 10) : 0, $e = (De < se ? De : se) - j + q / 2;
|
|
@@ -19667,7 +19671,7 @@ function ku({
|
|
|
19667
19671
|
r && (r.onFocus = _, r.onBlur = P);
|
|
19668
19672
|
}, [r]);
|
|
19669
19673
|
const J = $(f || "sps-form-group__label", t), [U, te] = r instanceof ir ? [r, void 0] : [void 0, r];
|
|
19670
|
-
function
|
|
19674
|
+
function W() {
|
|
19671
19675
|
var q;
|
|
19672
19676
|
if (U) {
|
|
19673
19677
|
for (const j of [
|
|
@@ -19680,8 +19684,8 @@ function ku({
|
|
|
19680
19684
|
if (U.hasError(j))
|
|
19681
19685
|
return h(`design-system:label.errors.${j}`, { context: U.errors ? U.errors[j] : "" });
|
|
19682
19686
|
if (U.hasError("dateConstraint")) {
|
|
19683
|
-
const j = (q = U.errors) == null ? void 0 : q.dateConstraint,
|
|
19684
|
-
return h(`design-system:label.errors.dateConstraint.${
|
|
19687
|
+
const j = (q = U.errors) == null ? void 0 : q.dateConstraint, H = j.minExceeded ? "min" : "max";
|
|
19688
|
+
return h(`design-system:label.errors.dateConstraint.${H}`, { context: j });
|
|
19685
19689
|
}
|
|
19686
19690
|
}
|
|
19687
19691
|
return null;
|
|
@@ -19755,7 +19759,7 @@ function ku({
|
|
|
19755
19759
|
showOn: gt.MANUAL,
|
|
19756
19760
|
isShown: k,
|
|
19757
19761
|
altPosition: Te.LEFT_MIDDLE
|
|
19758
|
-
}, It(p) ||
|
|
19762
|
+
}, It(p) || W()), (U == null ? void 0 : U.hasPreventativeErrors()) && /* @__PURE__ */ s.createElement(At, {
|
|
19759
19763
|
kind: Gt.WARNING,
|
|
19760
19764
|
for: E,
|
|
19761
19765
|
showOn: gt.MANUAL,
|
|
@@ -22574,8 +22578,8 @@ function Vu(e) {
|
|
|
22574
22578
|
let b = null;
|
|
22575
22579
|
const [I, L] = s.useState(!1), N = s.useRef(null), R = s.useRef(null), P = XS(() => {
|
|
22576
22580
|
if (N.current && E) {
|
|
22577
|
-
const
|
|
22578
|
-
|
|
22581
|
+
const W = N.current.getBoundingClientRect();
|
|
22582
|
+
W && W.height > 0 && W.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, L(!1)) : (b = window.scrollY, L(!0), o && o(!1)));
|
|
22579
22583
|
}
|
|
22580
22584
|
});
|
|
22581
22585
|
s.useEffect(() => (window.addEventListener("scroll", P), () => {
|
|
@@ -22588,23 +22592,23 @@ function Vu(e) {
|
|
|
22588
22592
|
R.current.style.height = K.current.height, R.current.style.width = K.current.width, R.current.style.marginBottom = K.current.marginBottom;
|
|
22589
22593
|
else if (!I) {
|
|
22590
22594
|
R.current.style.height = "", R.current.style.width = "", R.current.style.marginBottom = "";
|
|
22591
|
-
const
|
|
22595
|
+
const W = window.getComputedStyle(N.current);
|
|
22592
22596
|
K.current = {
|
|
22593
|
-
height:
|
|
22594
|
-
width:
|
|
22595
|
-
marginBottom:
|
|
22597
|
+
height: W.height,
|
|
22598
|
+
width: W.width,
|
|
22599
|
+
marginBottom: W.marginBottom
|
|
22596
22600
|
};
|
|
22597
22601
|
}
|
|
22598
22602
|
}
|
|
22599
22603
|
}, [I]);
|
|
22600
|
-
function O(
|
|
22601
|
-
l && l(
|
|
22604
|
+
function O(W) {
|
|
22605
|
+
l && l(W);
|
|
22602
22606
|
}
|
|
22603
22607
|
function A() {
|
|
22604
22608
|
o && o(!(n != null && n.isOpen));
|
|
22605
22609
|
}
|
|
22606
|
-
function M(
|
|
22607
|
-
m && m(
|
|
22610
|
+
function M(W) {
|
|
22611
|
+
m && m(W);
|
|
22608
22612
|
}
|
|
22609
22613
|
s.useEffect(() => {
|
|
22610
22614
|
M(I);
|
|
@@ -24525,7 +24529,7 @@ function Gu({
|
|
|
24525
24529
|
s.useEffect(() => {
|
|
24526
24530
|
S && S(J.searchText);
|
|
24527
24531
|
}, [J.searchText]);
|
|
24528
|
-
const te = s.useRef(null),
|
|
24532
|
+
const te = s.useRef(null), W = s.useRef(null), V = s.useRef(null), X = s.useRef(null), G = s.useRef(null);
|
|
24529
24533
|
function q() {
|
|
24530
24534
|
r && U({
|
|
24531
24535
|
searchText: ""
|
|
@@ -24533,11 +24537,11 @@ function Gu({
|
|
|
24533
24537
|
}
|
|
24534
24538
|
const {
|
|
24535
24539
|
showPopup: j,
|
|
24536
|
-
doShowPopup:
|
|
24540
|
+
doShowPopup: H,
|
|
24537
24541
|
doHidePopup: ae
|
|
24538
24542
|
} = is(te, X, q);
|
|
24539
24543
|
function ne() {
|
|
24540
|
-
U({ activeTagIndex: null }),
|
|
24544
|
+
U({ activeTagIndex: null }), H();
|
|
24541
24545
|
}
|
|
24542
24546
|
function pe() {
|
|
24543
24547
|
setTimeout(() => {
|
|
@@ -24607,7 +24611,7 @@ function Gu({
|
|
|
24607
24611
|
case "Right":
|
|
24608
24612
|
case "ArrowRight":
|
|
24609
24613
|
if (J.activeTagIndex !== null) {
|
|
24610
|
-
J.activeTagIndex === A.length - 1 ? (U({ activeTagIndex: null }),
|
|
24614
|
+
J.activeTagIndex === A.length - 1 ? (U({ activeTagIndex: null }), H(), (ye = V.current) == null || ye.focus()) : (U({ activeTagIndex: J.activeTagIndex + 1 }), re(J.activeTagIndex + 1));
|
|
24611
24615
|
return;
|
|
24612
24616
|
}
|
|
24613
24617
|
break;
|
|
@@ -24656,7 +24660,7 @@ function Gu({
|
|
|
24656
24660
|
"aria-owns": J.optionIds
|
|
24657
24661
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
24658
24662
|
className: "sps-text-input",
|
|
24659
|
-
ref:
|
|
24663
|
+
ref: W
|
|
24660
24664
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
24661
24665
|
className: $(
|
|
24662
24666
|
"sps-form-control",
|
|
@@ -24698,7 +24702,7 @@ function Gu({
|
|
|
24698
24702
|
id: `${_}_options`,
|
|
24699
24703
|
ref: X,
|
|
24700
24704
|
"data-testid": `${K}__option-list`,
|
|
24701
|
-
attachTo:
|
|
24705
|
+
attachTo: W,
|
|
24702
24706
|
captionKey: t,
|
|
24703
24707
|
disabledOptions: l ? A : null,
|
|
24704
24708
|
isOpen: j,
|
|
@@ -28403,7 +28407,7 @@ function em({
|
|
|
28403
28407
|
!S && "sps-task-queue--no-tasks",
|
|
28404
28408
|
c
|
|
28405
28409
|
);
|
|
28406
|
-
function
|
|
28410
|
+
function W(V) {
|
|
28407
28411
|
return (V.actions || []).map((X) => {
|
|
28408
28412
|
if (s.isValidElement(X)) {
|
|
28409
28413
|
if (X.type !== Ye || X.props.kind !== ze.ICON)
|
|
@@ -28482,7 +28486,7 @@ function em({
|
|
|
28482
28486
|
title: V.subheading
|
|
28483
28487
|
}, V.subheading)), V.actions && !!V.actions.length && /* @__PURE__ */ s.createElement("div", {
|
|
28484
28488
|
className: "sps-task-queue__task-actions"
|
|
28485
|
-
},
|
|
28489
|
+
}, W(V))))), A && l && /* @__PURE__ */ s.createElement("div", {
|
|
28486
28490
|
className: "sps-task-queue__footer"
|
|
28487
28491
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
28488
28492
|
className: "sps-button sps-button--link"
|
|
@@ -30580,7 +30584,7 @@ function gm({
|
|
|
30580
30584
|
);
|
|
30581
30585
|
}
|
|
30582
30586
|
function R(U) {
|
|
30583
|
-
const te = (f || []).filter((
|
|
30587
|
+
const te = (f || []).filter((W, V) => V !== U);
|
|
30584
30588
|
N(te);
|
|
30585
30589
|
}
|
|
30586
30590
|
function P(U) {
|
|
@@ -30588,15 +30592,15 @@ function gm({
|
|
|
30588
30592
|
}
|
|
30589
30593
|
function K(U) {
|
|
30590
30594
|
if (I.current && I.current.children.length && typeof U == "number") {
|
|
30591
|
-
const te = I.current.children[U],
|
|
30592
|
-
|
|
30595
|
+
const te = I.current.children[U], W = te == null ? void 0 : te.querySelector(".sps-clickable-tag__icon");
|
|
30596
|
+
W && W.focus();
|
|
30593
30597
|
}
|
|
30594
30598
|
}
|
|
30595
30599
|
const O = s.useCallback(
|
|
30596
30600
|
(U) => {
|
|
30597
30601
|
x({ activeTagIndex: null, searchText: "" });
|
|
30598
|
-
const te = C.searchText.trim(),
|
|
30599
|
-
te &&
|
|
30602
|
+
const te = C.searchText.trim(), W = f || [];
|
|
30603
|
+
te && W.indexOf(te) === -1 && N([...W, ...ad(te, u)]), !((U.key === "Tab" || U.key === "Enter") && !C.searchText) && U.preventDefault();
|
|
30600
30604
|
},
|
|
30601
30605
|
[
|
|
30602
30606
|
C.searchText,
|
|
@@ -30610,7 +30614,7 @@ function gm({
|
|
|
30610
30614
|
function M(U) {
|
|
30611
30615
|
var te;
|
|
30612
30616
|
if (!t) {
|
|
30613
|
-
const
|
|
30617
|
+
const W = !U.target.selectionStart && f && f.length, V = f ? f.length : 0;
|
|
30614
30618
|
switch (U.key) {
|
|
30615
30619
|
case "Backspace":
|
|
30616
30620
|
if (C.activeTagIndex === V - 1) {
|
|
@@ -30621,7 +30625,7 @@ function gm({
|
|
|
30621
30625
|
R(C.activeTagIndex);
|
|
30622
30626
|
return;
|
|
30623
30627
|
}
|
|
30624
|
-
if (
|
|
30628
|
+
if (W) {
|
|
30625
30629
|
N(f.slice(0, V - 1)), L();
|
|
30626
30630
|
return;
|
|
30627
30631
|
}
|
|
@@ -30641,7 +30645,7 @@ function gm({
|
|
|
30641
30645
|
break;
|
|
30642
30646
|
case "Left":
|
|
30643
30647
|
case "ArrowLeft":
|
|
30644
|
-
if (
|
|
30648
|
+
if (W) {
|
|
30645
30649
|
C.activeTagIndex === null ? (x({ activeTagIndex: V - 1 }), K(V - 1)) : C.activeTagIndex > 0 && (x({ activeTagIndex: C.activeTagIndex - 1 }), K(C.activeTagIndex - 1));
|
|
30646
30650
|
return;
|
|
30647
30651
|
}
|