@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/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 H = getComputedStyle(O), V = parseInt(H.borderLeftWidth, 10), X = parseInt(H.borderTopWidth, 10), G = parseInt(H.borderRightWidth, 10), q = parseInt(H.borderBottomWidth, 10), j = 0, W = 0, ae = "offsetWidth" in O ? O.offsetWidth - O.clientWidth - V - G : 0, ne = "offsetHeight" in O ? O.offsetHeight - O.clientHeight - X - q : 0;
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, W = 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), W = Math.max(0, W + y);
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, W = 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);
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 - (W = Math.max(0, Math.min(pe + W, O.scrollWidth - _ + ae)));
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: W });
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: H,
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
- ...W
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
- ...W
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 H(G) {
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: H,
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 H = s.useRef(null);
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 W(re) {
2495
+ function H(re) {
2496
2496
  re.detail !== N.current && P(!1);
2497
2497
  }
2498
- s.useEffect(() => (document.addEventListener("click", V), document.addEventListener("DropdownOpened", W), () => {
2499
- document.removeEventListener("click", V), document.removeEventListener("DropdownOpened", W);
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: H,
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: H
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 H(se) {
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 W(se) {
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 = H, Oe.isConcurrentMode = V, Oe.isContextConsumer = X, Oe.isContextProvider = G, Oe.isElement = q, Oe.isForwardRef = j, Oe.isFragment = W, Oe.isLazy = ae, Oe.isMemo = ne, Oe.isPortal = pe, Oe.isProfiler = re, Oe.isStrictMode = Ce, Oe.isSuspense = De, Oe.isValidElementType = k, Oe.typeOf = b;
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(H) {
4217
- var V = H && (f && H[f] || H[m]);
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(H, V) {
4242
- return H === V ? H !== 0 || 1 / H === 1 / V : H !== H && V !== V;
4241
+ function y(W, V) {
4242
+ return W === V ? W !== 0 || 1 / W === 1 / V : W !== W && V !== V;
4243
4243
  }
4244
- function w(H) {
4245
- this.message = H, this.stack = "";
4244
+ function w(W) {
4245
+ this.message = W, this.stack = "";
4246
4246
  }
4247
4247
  w.prototype = Error.prototype;
4248
- function E(H) {
4248
+ function E(W) {
4249
4249
  if (process.env.NODE_ENV !== "production")
4250
4250
  var V = {}, X = 0;
4251
- function G(j, W, ae, ne, pe, re, Ce) {
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 W[ae] == null ? j ? W[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 : H(W, ae, ne, pe, re);
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(H) {
4271
- function V(X, G, q, j, W, ae) {
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 !== H) {
4273
+ if (pe !== W) {
4274
4274
  var re = J(ne);
4275
- return new w("Invalid " + j + " `" + W + "` of type " + ("`" + re + "` supplied to `" + q + "`, expected ") + ("`" + H + "`."));
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(H) {
4285
- function V(X, G, q, j, W) {
4286
- if (typeof H != "function")
4287
- return new w("Property `" + W + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
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 + " `" + W + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected an array."));
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 = H(ae, pe, q, j, W + "[" + pe + "]", n);
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 H(V, X, G, q, j) {
4304
- var W = V[X];
4305
- if (!c(W)) {
4306
- var ae = Q(W);
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(H);
4311
+ return E(W);
4312
4312
  }
4313
4313
  function I() {
4314
- function H(V, X, G, q, j) {
4315
- var W = V[X];
4316
- if (!e.isValidElementType(W)) {
4317
- var ae = Q(W);
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(H);
4322
+ return E(W);
4323
4323
  }
4324
- function L(H) {
4325
- function V(X, G, q, j, W) {
4326
- if (!(X[G] instanceof H)) {
4327
- var ae = H.name || h, ne = te(X[G]);
4328
- return new w("Invalid " + j + " `" + W + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected ") + ("instance of `" + ae + "`."));
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(H) {
4335
- if (!Array.isArray(H))
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, W) {
4340
- for (var ae = X[G], ne = 0; ne < H.length; ne++)
4341
- if (y(ae, H[ne]))
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(H, function(Ce, De) {
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 + " `" + W + "` of value `" + String(ae) + "` " + ("supplied to `" + q + "`, expected one of " + pe + "."));
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(H) {
4352
- function V(X, G, q, j, W) {
4353
- if (typeof H != "function")
4354
- return new w("Property `" + W + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
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 + " `" + W + "` of type " + ("`" + ne + "` supplied to `" + q + "`, expected an object."));
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 = H(ae, pe, q, j, W + "." + pe, n);
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(H) {
4369
- if (!Array.isArray(H))
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 < H.length; V++) {
4372
- var X = H[V];
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, W, ae, ne) {
4379
- for (var pe = 0; pe < H.length; pe++) {
4380
- var re = H[pe];
4381
- if (re(q, j, W, ae, ne, n) == null)
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 " + ("`" + W + "`."));
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 H(V, X, G, q, j) {
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(H);
4392
+ return E(W);
4393
4393
  }
4394
- function O(H) {
4395
- function V(X, G, q, j, W) {
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 + " `" + W + "` of type `" + ne + "` " + ("supplied to `" + q + "`, expected `object`."));
4399
- for (var pe in H) {
4400
- var re = H[pe];
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, W + "." + pe, n);
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(H) {
4412
- function V(X, G, q, j, W) {
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 + " `" + W + "` of type `" + ne + "` " + ("supplied to `" + q + "`, expected `object`."));
4416
- var pe = t({}, X[G], H);
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 = H[re];
4418
+ var Ce = W[re];
4419
4419
  if (!Ce)
4420
4420
  return new w(
4421
- "Invalid " + j + " `" + W + "` key `" + re + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(X[G], null, " ") + `
4422
- Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
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, W + "." + re, n);
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(H) {
4433
- switch (typeof H) {
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 !H;
4439
+ return !W;
4440
4440
  case "object":
4441
- if (Array.isArray(H))
4442
- return H.every(M);
4443
- if (H === null || c(H))
4441
+ if (Array.isArray(W))
4442
+ return W.every(M);
4443
+ if (W === null || c(W))
4444
4444
  return !0;
4445
- var V = u(H);
4445
+ var V = u(W);
4446
4446
  if (V) {
4447
- var X = V.call(H), G;
4448
- if (V !== H.entries) {
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 _(H, V) {
4466
- return H === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
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(H) {
4469
- var V = typeof H;
4470
- return Array.isArray(H) ? "array" : H instanceof RegExp ? "object" : _(V, H) ? "symbol" : V;
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(H) {
4473
- if (typeof H > "u" || H === null)
4474
- return "" + H;
4475
- var V = Q(H);
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 (H instanceof Date)
4477
+ if (W instanceof Date)
4478
4478
  return "date";
4479
- if (H instanceof RegExp)
4479
+ if (W instanceof RegExp)
4480
4480
  return "regexp";
4481
4481
  }
4482
4482
  return V;
4483
4483
  }
4484
- function U(H) {
4485
- var V = J(H);
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(H) {
4499
- return !H.constructor || !H.constructor.name ? h : H.constructor.name;
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]), H = te[0], V = te[1], X = te[2], G = je(function() {
4823
- return H && H.Consumer && Sr.exports.isContextConsumer(/* @__PURE__ */ z.createElement(H.Consumer, null)) ? H : I;
4824
- }, [H, I]), q = cn(G), j = Boolean(U.store) && Boolean(U.store.getState) && Boolean(U.store.dispatch), W = Boolean(q) && Boolean(q.store);
4825
- if (process.env.NODE_ENV !== "production" && !j && !W)
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, H) {
4858
+ var J = z.forwardRef(function(te, W) {
4859
4859
  return /* @__PURE__ */ z.createElement(Q, fe({}, te, {
4860
- reactReduxForwardedRef: H
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 H = Dp(e.viewport, te);
6819
+ var W = Dp(e.viewport, te);
6820
6820
  return xo(e) ? Pp({
6821
6821
  state: e,
6822
- viewport: H
6822
+ viewport: W
6823
6823
  }) : jr({
6824
6824
  state: e,
6825
- viewport: H
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 W = t.payload, ae = W.completed, ne = W.dropDuration, pe = W.newHomeClientOffset;
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: "(newDateRange: SimpleDateRange | DatePreset | null, preset?: string | null) => void",
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 W = N && Q(N);
12585
- W === "Before" && q[0] === null && q[1] === null && (j = [null, G]), (j[0] && j[1] || W === "Before" || W === "After") && (M(!0), k && k.current && k.current.focus()), (W === "Before" && j && j[0] !== null || N && W !== "Before" && W !== "After") && (R(null), W = null), _(j, W), L(Z.toStringRange(j)), K(void 0);
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 && Q(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 H(G) {
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, j);
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 (!!u && p !== Qc && Array.isArray(u)) {
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: H,
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: H } = bt(m, U), V = s.useRef(null), X = s.useRef(null), G = s.useRef(null), { t: q } = s.useContext(Ve), [j, W] = dn({
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
- W({
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
- W({ isOpen: !1 });
12982
+ H({ isOpen: !1 });
12979
12983
  }
12980
12984
  function Ce(be) {
12981
- be.nativeEvent.stopImmediatePropagation(), c || W({ isOpen: !j.isOpen });
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(), W({ keyDown: be }));
12995
+ ].indexOf(be.key) > -1 && be.preventDefault(), be.persist(), H({ keyDown: be }));
12992
12996
  }
12993
12997
  function se(be) {
12994
- W({ isOpen: be });
12998
+ H({ isOpen: be });
12995
12999
  }
12996
13000
  function Je(be) {
12997
- W({ opensUpward: be });
13001
+ H({ opensUpward: be });
12998
13002
  }
12999
13003
  function $e(be) {
13000
- be.detail !== te && W({ isOpen: !1 });
13004
+ be.detail !== te && H({ isOpen: !1 });
13001
13005
  }
13002
13006
  function at(be) {
13003
- W({
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: H,
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, H] = s.useState(
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 W(ce) {
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
- W(ot);
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
- W(Le);
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
- W(Le);
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
- H(ce.target.value);
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
- W([null, null]), X(null);
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), W([null, 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] ? W([null, null]) : Array.isArray(p) && p[0] ? W([null, Z.toMoment(Z.createFrom(p[0]))]) : Array.isArray(p) && p[1] && W([null, Z.toMoment(Z.createFrom(p[1]))]) : ce && ae(ce) === "After" ? !p || Array.isArray(p) && p[0] && p[1] ? W([null, null]) : Array.isArray(p) && p[0] ? W([Z.toMoment(Z.createFrom(p[0])), null]) : Array.isArray(p) && p[1] && W([Z.toMoment(Z.createFrom(p[1])), null]) : JSON.stringify(p) !== JSON.stringify(oe) && W([oe[0], oe[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] ? H(N[2]) : H("AM"));
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 H(i, d, g) {
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 W(i, d, g, v) {
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
- W("M", ["MM", 2], "Mo", function() {
14677
+ H("M", ["MM", 2], "Mo", function() {
14674
14678
  return this.month() + 1;
14675
- }), W("MMM", 0, 0, function(i) {
14679
+ }), H("MMM", 0, 0, function(i) {
14676
14680
  return this.localeData().monthsShort(this, i);
14677
- }), W("MMMM", 0, 0, function(i) {
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
- W("Y", 0, 0, function() {
14776
+ H("Y", 0, 0, function() {
14773
14777
  var i = this.year();
14774
14778
  return i <= 9999 ? V(i, 4) : "+" + i;
14775
- }), W(0, ["YY", 2], 0, function() {
14779
+ }), H(0, ["YY", 2], 0, function() {
14776
14780
  return this.year() % 100;
14777
- }), W(0, ["YYYY", 4], 0, "year"), W(0, ["YYYYY", 5], 0, "year"), W(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) {
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
- W("w", ["ww", 2], "wo", "week"), W("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) {
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
- W("d", 0, "do", "day"), W("dd", 0, 0, function(i) {
14852
+ H("d", 0, "do", "day"), H("dd", 0, 0, function(i) {
14849
14853
  return this.localeData().weekdaysMin(this, i);
14850
- }), W("ddd", 0, 0, function(i) {
14854
+ }), H("ddd", 0, 0, function(i) {
14851
14855
  return this.localeData().weekdaysShort(this, i);
14852
- }), W("dddd", 0, 0, function(i) {
14856
+ }), H("dddd", 0, 0, function(i) {
14853
14857
  return this.localeData().weekdays(this, i);
14854
- }), W("e", 0, 0, "weekday"), W("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) {
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
- W("H", ["HH", 2], 0, "hour"), W("h", ["hh", 2], 0, Na), W("k", ["kk", 2], 0, Vf), W("hmm", 0, 0, function() {
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
- }), W("hmmss", 0, 0, function() {
14985
+ }), H("hmmss", 0, 0, function() {
14982
14986
  return "" + Na.apply(this) + V(this.minutes(), 2) + V(this.seconds(), 2);
14983
- }), W("Hmm", 0, 0, function() {
14987
+ }), H("Hmm", 0, 0, function() {
14984
14988
  return "" + this.hours() + V(this.minutes(), 2);
14985
- }), W("Hmmss", 0, 0, function() {
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
- W(i, 0, 0, function() {
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
- W(i, 0, 0, function() {
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
- W("N", 0, 0, "eraAbbr"), W("NN", 0, 0, "eraAbbr"), W("NNN", 0, 0, "eraAbbr"), W("NNNN", 0, 0, "eraName"), W("NNNNN", 0, 0, "eraNarrow"), W("y", ["y", 1], "yo", "eraYear"), W("y", ["yy", 2], 0, "eraYear"), W("y", ["yyy", 3], 0, "eraYear"), W("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) {
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
- W(0, ["gg", 2], 0, function() {
16062
+ H(0, ["gg", 2], 0, function() {
16059
16063
  return this.weekYear() % 100;
16060
- }), W(0, ["GG", 2], 0, function() {
16064
+ }), H(0, ["GG", 2], 0, function() {
16061
16065
  return this.isoWeekYear() % 100;
16062
16066
  });
16063
16067
  function Ms(i, d) {
16064
- W(0, [i, i.length], 0, d);
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
- W("Q", 0, "Qo", "quarter"), ue("quarter", "Q"), oe("quarter", 7), de("Q", Ss), Re("Q", function(i, d) {
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
- W("D", ["DD", 2], "Do", "date"), ue("date", "D"), oe("date", 9), de("D", le), de("DD", le, ut), de("Do", function(i, d) {
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
- W("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), ue("dayOfYear", "DDD"), oe("dayOfYear", 4), de("DDD", Ct), de("DDDD", Mr), Re(["DDD", "DDDD"], function(i, d, g) {
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
- W("m", ["mm", 2], 0, "minute"), ue("minute", "m"), oe("minute", 14), de("m", le), de("mm", le, ut), Re(["m", "mm"], _t);
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
- W("s", ["ss", 2], 0, "second"), ue("second", "s"), oe("second", 15), de("s", le), de("ss", le, ut), Re(["s", "ss"], Jt);
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
- W("S", 0, 0, function() {
16142
+ H("S", 0, 0, function() {
16139
16143
  return ~~(this.millisecond() / 100);
16140
- }), W(0, ["SS", 2], 0, function() {
16144
+ }), H(0, ["SS", 2], 0, function() {
16141
16145
  return ~~(this.millisecond() / 10);
16142
- }), W(0, ["SSS", 3], 0, "millisecond"), W(0, ["SSSS", 4], 0, function() {
16146
+ }), H(0, ["SSS", 3], 0, "millisecond"), H(0, ["SSSS", 4], 0, function() {
16143
16147
  return this.millisecond() * 10;
16144
- }), W(0, ["SSSSS", 5], 0, function() {
16148
+ }), H(0, ["SSSSS", 5], 0, function() {
16145
16149
  return this.millisecond() * 100;
16146
- }), W(0, ["SSSSSS", 6], 0, function() {
16150
+ }), H(0, ["SSSSSS", 6], 0, function() {
16147
16151
  return this.millisecond() * 1e3;
16148
- }), W(0, ["SSSSSSS", 7], 0, function() {
16152
+ }), H(0, ["SSSSSSS", 7], 0, function() {
16149
16153
  return this.millisecond() * 1e4;
16150
- }), W(0, ["SSSSSSSS", 8], 0, function() {
16154
+ }), H(0, ["SSSSSSSS", 8], 0, function() {
16151
16155
  return this.millisecond() * 1e5;
16152
- }), W(0, ["SSSSSSSSS", 9], 0, function() {
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), W("z", 0, 0, "zoneAbbr"), W("zz", 0, 0, "zoneName");
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 = H, 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;
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, W("X", 0, 0, "unix"), W("x", 0, 0, "valueOf"), de("x", bs), de("X", qm), Re("X", function(i, d, g) {
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 H;
17360
+ var W;
17357
17361
  if (te === !0 && On.size > 0)
17358
17362
  return p && p(), !1;
17359
- if (((H = x.current) == null ? void 0 : H.textContent) === "")
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((H) => H ? (L(), !1) : N());
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 W, ae, ne, pe, re, Ce;
17373
- const [H, V] = te.split(" "), X = (W = k == null ? void 0 : k.current) == null ? void 0 : W.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;
17374
- if (["top", "bottom"].includes(H) && V !== "middle") {
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(H) && V !== "middle") {
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 H() {
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, W = j.minExceeded ? "min" : "max";
19684
- return h(`design-system:label.errors.dateConstraint.${W}`, { context: j });
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) || H()), (U == null ? void 0 : U.hasPreventativeErrors()) && /* @__PURE__ */ s.createElement(At, {
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 H = N.current.getBoundingClientRect();
22578
- H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, L(!1)) : (b = window.scrollY, L(!0), o && o(!1)));
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 H = window.getComputedStyle(N.current);
22595
+ const W = window.getComputedStyle(N.current);
22592
22596
  K.current = {
22593
- height: H.height,
22594
- width: H.width,
22595
- marginBottom: H.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(H) {
22601
- l && l(H);
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(H) {
22607
- m && m(H);
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), H = s.useRef(null), V = s.useRef(null), X = s.useRef(null), G = 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: W,
24540
+ doShowPopup: H,
24537
24541
  doHidePopup: ae
24538
24542
  } = is(te, X, q);
24539
24543
  function ne() {
24540
- U({ activeTagIndex: null }), W();
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 }), W(), (ye = V.current) == null || ye.focus()) : (U({ activeTagIndex: J.activeTagIndex + 1 }), re(J.activeTagIndex + 1));
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: H
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: H,
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 H(V) {
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
- }, H(V))))), A && l && /* @__PURE__ */ s.createElement("div", {
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((H, V) => V !== U);
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], H = te == null ? void 0 : te.querySelector(".sps-clickable-tag__icon");
30592
- H && H.focus();
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(), H = f || [];
30599
- te && H.indexOf(te) === -1 && N([...H, ...ad(te, u)]), !((U.key === "Tab" || U.key === "Enter") && !C.searchText) && U.preventDefault();
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 H = !U.target.selectionStart && f && f.length, V = f ? f.length : 0;
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 (H) {
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 (H) {
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
  }