@spscommerce/ds-react 7.10.3 → 7.10.5

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
@@ -1052,33 +1052,33 @@ function zb(e, t = {}) {
1052
1052
  );
1053
1053
  for (const {
1054
1054
  type: D,
1055
- key: N,
1055
+ key: x,
1056
1056
  parentPath: k,
1057
1057
  objects: [b, I]
1058
1058
  } of T) {
1059
- const O = Ks(
1059
+ const L = Ks(
1060
1060
  m.formMeta,
1061
1061
  k
1062
1062
  );
1063
- if (typeof N != "symbol" && O)
1063
+ if (typeof x != "symbol" && L)
1064
1064
  switch (D) {
1065
1065
  case Yn.ADDITION:
1066
- O.fields[N] = Vs(
1067
- I[N],
1068
- [...k, N],
1066
+ L.fields[x] = Vs(
1067
+ I[x],
1068
+ [...k, x],
1069
1069
  p
1070
1070
  );
1071
1071
  break;
1072
1072
  case Yn.DELETION:
1073
- Array.isArray(O.fields) ? O.fields.splice(Number(N), 1) : delete O.fields[N];
1073
+ Array.isArray(L.fields) ? L.fields.splice(Number(x), 1) : delete L.fields[x];
1074
1074
  break;
1075
1075
  case Yn.ALTERATION:
1076
1076
  const M = Vs(
1077
- I[N],
1078
- [...k, N],
1077
+ I[x],
1078
+ [...k, x],
1079
1079
  p
1080
1080
  );
1081
- (M instanceof sr && !(O.fields[N] instanceof sr) || !(M instanceof sr) && O.fields[N] instanceof sr) && (O.fields[N] = M);
1081
+ (M instanceof sr && !(L.fields[x] instanceof sr) || !(M instanceof sr) && L.fields[x] instanceof sr) && (L.fields[x] = M);
1082
1082
  break;
1083
1083
  }
1084
1084
  }
@@ -1089,24 +1089,24 @@ function zb(e, t = {}) {
1089
1089
  a.current
1090
1090
  );
1091
1091
  const D = /* @__PURE__ */ new Set();
1092
- t && Qd(m.formMeta, t, (N, k) => {
1093
- typeof k == "function" && (N.validate($s(h, N.path)), D.add(N));
1092
+ t && Qd(m.formMeta, t, (x, k) => {
1093
+ typeof k == "function" && (x.validate($s(h, x.path)), D.add(x));
1094
1094
  });
1095
1095
  for (const {
1096
- type: N,
1096
+ type: x,
1097
1097
  key: k,
1098
1098
  parentPath: b,
1099
1099
  objects: [, I]
1100
1100
  } of T)
1101
1101
  if (typeof k != "symbol") {
1102
- let O = m.formMeta, M = h;
1103
- if (O) {
1104
- for (const L of b)
1105
- O = O.fields[L], M = M[L], D.has(O) || O.validate(M, tn.ON_CHANGE);
1106
- if (N === Yn.ADDITION || N === Yn.ALTERATION) {
1107
- const L = O.fields[k];
1108
- if (!D.has(L) && (O.fields[k].validate(I[k], tn.ON_CHANGE), N === Yn.ADDITION && L.fields))
1109
- for (const [R, K] of Object.entries(L.fields))
1102
+ let L = m.formMeta, M = h;
1103
+ if (L) {
1104
+ for (const O of b)
1105
+ L = L.fields[O], M = M[O], D.has(L) || L.validate(M, tn.ON_CHANGE);
1106
+ if (x === Yn.ADDITION || x === Yn.ALTERATION) {
1107
+ const O = L.fields[k];
1108
+ if (!D.has(O) && (L.fields[k].validate(I[k], tn.ON_CHANGE), x === Yn.ADDITION && O.fields))
1109
+ for (const [R, K] of Object.entries(O.fields))
1110
1110
  K.validate(I[k][R], tn.ON_CHANGE);
1111
1111
  }
1112
1112
  }
@@ -1170,15 +1170,15 @@ const ut = s.forwardRef(
1170
1170
  l && l.hasPreventativeErrors() && "sps-form-group--preventative-error",
1171
1171
  n
1172
1172
  );
1173
- function D(N) {
1174
- a && S(), p && p(N);
1173
+ function D(x) {
1174
+ a && S(), p && p(x);
1175
1175
  }
1176
1176
  return s.useEffect(() => {
1177
- function N(k) {
1177
+ function x(k) {
1178
1178
  k.target.classList.contains("sps-form-control__clear-btn") && k.preventDefault();
1179
1179
  }
1180
- return document.addEventListener("mousedown", N), () => {
1181
- document.removeEventListener("mousedown", N);
1180
+ return document.addEventListener("mousedown", x), () => {
1181
+ document.removeEventListener("mousedown", x);
1182
1182
  };
1183
1183
  }, []), /* @__PURE__ */ s.createElement("div", {
1184
1184
  ...u,
@@ -1234,17 +1234,17 @@ function Jl(e, t) {
1234
1234
  }
1235
1235
  f != null && f === document.body && Ka(f) && !Ka(document.documentElement) || f != null && Ka(f, c) && m.push(f);
1236
1236
  }
1237
- for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, N = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + N / 2 : o === "end" ? b : O, R = [], K = 0; K < m.length; K++) {
1238
- var _ = m[K], $ = _.getBoundingClientRect(), x = $.height, A = $.width, Q = $.top, q = $.right, W = $.bottom, J = $.left;
1239
- if (r === "if-needed" && k >= 0 && O >= 0 && I <= S && b <= h && k >= Q && I <= W && O >= J && b <= q)
1237
+ for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, L = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, O = o === "center" ? L + x / 2 : o === "end" ? b : L, R = [], K = 0; K < m.length; K++) {
1238
+ var _ = m[K], $ = _.getBoundingClientRect(), N = $.height, A = $.width, Q = $.top, q = $.right, W = $.bottom, J = $.left;
1239
+ if (r === "if-needed" && k >= 0 && L >= 0 && I <= S && b <= h && k >= Q && I <= W && L >= J && b <= q)
1240
1240
  return R;
1241
1241
  var H = getComputedStyle(_), F = parseInt(H.borderLeftWidth, 10), z = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), te = parseInt(H.borderBottomWidth, 10), X = 0, G = 0, oe = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - F - j : 0, ne = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - z - te : 0;
1242
1242
  if (u === _)
1243
- X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? ks(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ? L : o === "center" ? L - h / 2 : o === "end" ? L - h : ks(y, y + h, h, F, j, y + L, y + L + N, N), X = Math.max(0, X + w), G = Math.max(0, G + y);
1243
+ X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? ks(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ? O : o === "center" ? O - h / 2 : o === "end" ? O - h : ks(y, y + h, h, F, j, y + O, y + O + x, x), X = Math.max(0, X + w), G = Math.max(0, G + y);
1244
1244
  else {
1245
- X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ? ks(Q, W, x, z, te + ne, M, M + D, D) : M - (Q + x / 2) + ne / 2, G = o === "start" ? L - J - F : o === "center" ? L - (J + A / 2) + oe / 2 : o === "end" ? L - q + j + oe : ks(J, q, A, F, j + oe, L, L + N, N);
1245
+ X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ? ks(Q, W, N, z, te + ne, M, M + D, D) : M - (Q + N / 2) + ne / 2, G = o === "start" ? O - J - F : o === "center" ? O - (J + A / 2) + oe / 2 : o === "end" ? O - q + j + oe : ks(J, q, A, F, j + oe, O, O + x, x);
1246
1246
  var le = _.scrollLeft, ee = _.scrollTop;
1247
- M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - x + ne))), L += le - (G = Math.max(0, Math.min(le + G, _.scrollWidth - A + oe)));
1247
+ M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - N + ne))), O += le - (G = Math.max(0, Math.min(le + G, _.scrollWidth - A + oe)));
1248
1248
  }
1249
1249
  R.push({ el: _, top: X, left: G });
1250
1250
  }
@@ -1350,7 +1350,7 @@ function rp(e) {
1350
1350
  }
1351
1351
  function ev(e, t, n, r, a, o, l, c) {
1352
1352
  const p = l && l.current, u = p ? p.scrollTop : window.pageYOffset, m = c ? 0 : u, f = p ? p.scrollLeft : window.pageXOffset, h = c ? 0 : f, [S, y] = e.split(" ");
1353
- let w, T, D, N;
1353
+ let w, T, D, x;
1354
1354
  switch (S) {
1355
1355
  case "top":
1356
1356
  D = t.height - n.top - m - o[0];
@@ -1359,7 +1359,7 @@ function ev(e, t, n, r, a, o, l, c) {
1359
1359
  T = t.width - n.left - h - o[0];
1360
1360
  break;
1361
1361
  case "right":
1362
- N = n.right + h - o[0];
1362
+ x = n.right + h - o[0];
1363
1363
  break;
1364
1364
  case "bottom":
1365
1365
  w = n.bottom + m - o[0];
@@ -1369,13 +1369,13 @@ function ev(e, t, n, r, a, o, l, c) {
1369
1369
  }
1370
1370
  switch (y) {
1371
1371
  case "left":
1372
- N = n.left + h + o[1];
1372
+ x = n.left + h + o[1];
1373
1373
  break;
1374
1374
  case "top":
1375
1375
  w = n.top + m + o[1];
1376
1376
  break;
1377
1377
  case "middle":
1378
- S === "top" || S === "bottom" ? N = n.left + h + n.width / 2 - a / 2 + o[1] : (S === "left" || S === "right") && (w = n.top + m + n.height / 2 - r.height / 2 + o[1]);
1378
+ S === "top" || S === "bottom" ? x = n.left + h + n.width / 2 - a / 2 + o[1] : (S === "left" || S === "right") && (w = n.top + m + n.height / 2 - r.height / 2 + o[1]);
1379
1379
  break;
1380
1380
  case "bottom":
1381
1381
  D = t.height - n.bottom - m + o[1];
@@ -1390,7 +1390,7 @@ function ev(e, t, n, r, a, o, l, c) {
1390
1390
  w,
1391
1391
  T,
1392
1392
  D,
1393
- N
1393
+ x
1394
1394
  ];
1395
1395
  }
1396
1396
  function ur(e, t, n, {
@@ -1415,17 +1415,17 @@ function ur(e, t, n, {
1415
1415
  } : f.getBoundingClientRect(), S = e.current.getBoundingClientRect(), y = t.current.getBoundingClientRect(), [w] = n.split(" ");
1416
1416
  let T = n;
1417
1417
  r && (w === "top" && y.top - S.height < Qb || w === "right" && y.right + S.width > m || w === "bottom" && y.bottom + S.height > u || w === "left" && y.left - S.width < 0) && (T = r);
1418
- const D = a ? Math.max(y.width, S.width) : S.width, N = o ? y.width : D, [
1418
+ const D = a ? Math.max(y.width, S.width) : S.width, x = o ? y.width : D, [
1419
1419
  k,
1420
1420
  b,
1421
1421
  I,
1422
- O
1422
+ L
1423
1423
  ] = ev(
1424
1424
  T,
1425
1425
  h,
1426
1426
  y,
1427
1427
  S,
1428
- N,
1428
+ x,
1429
1429
  p,
1430
1430
  l,
1431
1431
  c
@@ -1433,7 +1433,7 @@ function ur(e, t, n, {
1433
1433
  top: Ms(k),
1434
1434
  right: Ms(b),
1435
1435
  bottom: Ms(I),
1436
- left: Ms(O)
1436
+ left: Ms(L)
1437
1437
  };
1438
1438
  return c && (M.position = "fixed", M.zIndex = WS.BAR), a && (M.minWidth = `${y.width}px`), o && (M.width = `${y.width}px`), [M, T === r];
1439
1439
  }
@@ -1723,18 +1723,18 @@ const es = s.forwardRef((e, t) => {
1723
1723
  onSpecialActionSelect: w,
1724
1724
  attachTo: T,
1725
1725
  className: D,
1726
- conformWidth: N,
1726
+ conformWidth: x,
1727
1727
  id: k,
1728
1728
  ignoreWidthStyles: b,
1729
1729
  isOpen: I,
1730
- keepOpen: O,
1730
+ keepOpen: L,
1731
1731
  keyDown: M,
1732
- nullOption: L,
1732
+ nullOption: O,
1733
1733
  onOptionListChanged: R,
1734
1734
  onOptionSelected: K,
1735
1735
  onPositionFlip: _,
1736
1736
  onSelfToggle: $,
1737
- optionRole: x,
1737
+ optionRole: N,
1738
1738
  positionOverride: A,
1739
1739
  selectedOption: Q,
1740
1740
  specialAction: q,
@@ -1769,7 +1769,7 @@ const es = s.forwardRef((e, t) => {
1769
1769
  ee ? ur(De, T, St, {
1770
1770
  altPosition: ct,
1771
1771
  setMinWidth: !b,
1772
- setWidth: !b && N,
1772
+ setWidth: !b && x,
1773
1773
  ...lt
1774
1774
  }) : [{}, !1]
1775
1775
  );
@@ -1784,7 +1784,7 @@ const es = s.forwardRef((e, t) => {
1784
1784
  ur(De, T, St, {
1785
1785
  altPosition: ct,
1786
1786
  setMinWidth: !b,
1787
- setWidth: !b && N,
1787
+ setWidth: !b && x,
1788
1788
  ...lt
1789
1789
  })
1790
1790
  );
@@ -1811,7 +1811,7 @@ const es = s.forwardRef((e, t) => {
1811
1811
  }, [ee, $]), bt = s.useCallback(() => {
1812
1812
  ee && (Te(!1), le(-1), $ && $(!1));
1813
1813
  }, [ee, $]), Pt = s.useCallback((he, ce) => {
1814
- ce || he && !he.disabled && (typeof he.value == "function" ? (he.value(), w && w()) : typeof K == "function" && K(he.value), O || bt());
1814
+ ce || he && !he.disabled && (typeof he.value == "function" ? (he.value(), w && w()) : typeof K == "function" && K(he.value), L || bt());
1815
1815
  }, [K, bt]), Cr = s.useCallback(
1816
1816
  (he, ce, rt) => {
1817
1817
  he.stopPropagation(), Pt(ce, rt);
@@ -1929,7 +1929,7 @@ const es = s.forwardRef((e, t) => {
1929
1929
  return /* @__PURE__ */ s.createElement("a", {
1930
1930
  key: rt,
1931
1931
  id: rt,
1932
- role: x,
1932
+ role: N,
1933
1933
  "aria-selected": yn,
1934
1934
  href: he.href,
1935
1935
  className: V(
@@ -2130,15 +2130,15 @@ function Uo({
2130
2130
  maxHeightOptionListPx: w,
2131
2131
  maxHeightOptionListRem: T,
2132
2132
  disableOptionsMemoization: D,
2133
- "data-testid": N,
2133
+ "data-testid": x,
2134
2134
  ...k
2135
2135
  }) {
2136
- const b = a || r, { wrapperId: I, controlId: O } = wt(c, b), [M, L] = sn({
2136
+ const b = a || r, { wrapperId: I, controlId: L } = wt(c, b), [M, O] = sn({
2137
2137
  keyDown: null,
2138
2138
  opensUpward: !1
2139
2139
  }), R = s.useRef(null), K = s.useRef(null), _ = s.useRef(null), {
2140
2140
  showPopup: $,
2141
- doShowPopup: x,
2141
+ doShowPopup: N,
2142
2142
  doHidePopup: A
2143
2143
  } = ca(R, _);
2144
2144
  function Q(j, te) {
@@ -2157,13 +2157,13 @@ function Uo({
2157
2157
  "Down",
2158
2158
  "ArrowDown",
2159
2159
  "Enter"
2160
- ].indexOf(j.key) > -1 && (j.preventDefault(), j.persist()), j.stopPropagation(), L({ keyDown: j })), j.key === "Tab" && A();
2160
+ ].indexOf(j.key) > -1 && (j.preventDefault(), j.persist()), j.stopPropagation(), O({ keyDown: j })), j.key === "Tab" && A();
2161
2161
  }
2162
2162
  function H(j) {
2163
- j ? x() : A();
2163
+ j ? N() : A();
2164
2164
  }
2165
2165
  function F(j) {
2166
- L({ opensUpward: j });
2166
+ O({ opensUpward: j });
2167
2167
  }
2168
2168
  const z = V(
2169
2169
  m || "sps-autocomplete",
@@ -2182,7 +2182,7 @@ function Uo({
2182
2182
  ref: R,
2183
2183
  focusInputOnClick: !0,
2184
2184
  onClick: (j) => j.nativeEvent.stopImmediatePropagation(),
2185
- "data-testId": `${N}`
2185
+ "data-testId": `${x}`
2186
2186
  }, /* @__PURE__ */ s.createElement("div", {
2187
2187
  className: "sps-text-input"
2188
2188
  }, /* @__PURE__ */ s.createElement("div", {
@@ -2195,13 +2195,13 @@ function Uo({
2195
2195
  value: h,
2196
2196
  className: "sps-text-input__input",
2197
2197
  placeholder: p,
2198
- onFocus: x,
2199
- onClick: x,
2198
+ onFocus: N,
2199
+ onClick: N,
2200
2200
  onChange: W,
2201
2201
  onKeyDown: J,
2202
2202
  disabled: n,
2203
- id: O,
2204
- "data-testid": `${N}__input`,
2203
+ id: L,
2204
+ "data-testid": `${x}__input`,
2205
2205
  ...k
2206
2206
  }), h && !n && /* @__PURE__ */ s.createElement("i", {
2207
2207
  "aria-label": "clear",
@@ -2405,11 +2405,11 @@ function br(e) {
2405
2405
  onOpen: w,
2406
2406
  onClose: T,
2407
2407
  loading: D,
2408
- maxHeightOptionListPx: N,
2408
+ maxHeightOptionListPx: x,
2409
2409
  maxHeightOptionListRem: k,
2410
2410
  disableOptionsMemoization: b,
2411
2411
  ...I
2412
- } = e, { t: O } = s.useContext(Be), M = Sr(l), [L, R] = s.useState(!1), [K, _] = s.useState(!1), [$, x] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
2412
+ } = e, { t: L } = s.useContext(Be), M = Sr(l), [O, R] = s.useState(!1), [K, _] = s.useState(!1), [$, N] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
2413
2413
  ...Kd,
2414
2414
  ...ee[0]
2415
2415
  })), Q = `${M.current}-button`, q = `${M.current}-menu`;
@@ -2417,13 +2417,13 @@ function br(e) {
2417
2417
  p ? (J = c || $a.DEFAULT, W = o) : (J = $a.ICON, W = o || je.ELLIPSES);
2418
2418
  const H = s.useRef(null);
2419
2419
  s.useEffect(() => {
2420
- L && w ? w() : !L && T && T();
2421
- }, [L]);
2420
+ O && w ? w() : !O && T && T();
2421
+ }, [O]);
2422
2422
  function F() {
2423
2423
  R(!1);
2424
2424
  }
2425
2425
  function z(ee) {
2426
- ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && R(!L);
2426
+ ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && R(!O);
2427
2427
  }
2428
2428
  function j(ee) {
2429
2429
  R(ee);
@@ -2437,7 +2437,7 @@ function br(e) {
2437
2437
  "ArrowUp",
2438
2438
  "Down",
2439
2439
  "ArrowDown"
2440
- ].indexOf(ee.key) > -1 && ee.preventDefault(), ee.persist(), x(ee));
2440
+ ].indexOf(ee.key) > -1 && ee.preventDefault(), ee.persist(), N(ee));
2441
2441
  }
2442
2442
  function G(ee) {
2443
2443
  ee.detail !== M.current && R(!1);
@@ -2445,15 +2445,15 @@ function br(e) {
2445
2445
  s.useEffect(() => (document.addEventListener("click", F), document.addEventListener("DropdownOpened", G), () => {
2446
2446
  document.removeEventListener("click", F), document.removeEventListener("DropdownOpened", G);
2447
2447
  }), []), s.useEffect(() => {
2448
- if (L) {
2448
+ if (O) {
2449
2449
  const ee = document.createEvent("CustomEvent");
2450
2450
  ee.initCustomEvent("DropdownOpened", !1, !1, M.current), document.dispatchEvent(ee);
2451
2451
  }
2452
- }, [L]);
2452
+ }, [O]);
2453
2453
  const oe = V(
2454
2454
  y || "sps-dropdown",
2455
- L && "sps-dropdown--open",
2456
- L && "z-stratum-dropdown",
2455
+ O && "sps-dropdown--open",
2456
+ O && "z-stratum-dropdown",
2457
2457
  K && "sps-dropdown--opens-upward",
2458
2458
  !p && "sps-dropdown--no-label",
2459
2459
  a && "disabled",
@@ -2471,7 +2471,7 @@ function br(e) {
2471
2471
  onKeyDown: X
2472
2472
  }, /* @__PURE__ */ s.createElement(es, {
2473
2473
  positionOverride: le,
2474
- isOpen: L,
2474
+ isOpen: O,
2475
2475
  "aria-labelledby": Q,
2476
2476
  keyDown: $,
2477
2477
  onOptionSelected: te,
@@ -2484,7 +2484,7 @@ function br(e) {
2484
2484
  tall: S,
2485
2485
  optionRole: "option",
2486
2486
  loading: D,
2487
- maxHeightPx: N,
2487
+ maxHeightPx: x,
2488
2488
  maxHeightRem: k,
2489
2489
  disableOptionsMemoization: b,
2490
2490
  specialAction: t
@@ -2497,7 +2497,7 @@ function br(e) {
2497
2497
  id: Q,
2498
2498
  "aria-haspopup": "true",
2499
2499
  "aria-controls": q,
2500
- "aria-expanded": L ? !0 : void 0,
2500
+ "aria-expanded": O ? !0 : void 0,
2501
2501
  tabIndex: m,
2502
2502
  disabled: a,
2503
2503
  onClick: z
@@ -2506,7 +2506,7 @@ function br(e) {
2506
2506
  }), p && /* @__PURE__ */ s.createElement("span", null, p), f && /* @__PURE__ */ s.createElement("div", {
2507
2507
  className: "sps-spinner",
2508
2508
  key: 1
2509
- }, h || O("design-system:button.spinningTitle")))));
2509
+ }, h || L("design-system:button.spinningTitle")))));
2510
2510
  }
2511
2511
  Object.assign(br, {
2512
2512
  props: fv,
@@ -3136,8 +3136,8 @@ function vr({
3136
3136
  unsafelyReplaceClassName: f,
3137
3137
  ...h
3138
3138
  }) {
3139
- const S = a || r, y = s.useRef(null), [w, T] = s.useState(e), [D, N] = s.useState(l), { wrapperId: k, controlId: b } = wt(o, S);
3140
- s.useEffect(() => T(e), [e]), s.useEffect(() => N(l), [l]), s.useEffect(() => {
3139
+ const S = a || r, y = s.useRef(null), [w, T] = s.useState(e), [D, x] = s.useState(l), { wrapperId: k, controlId: b } = wt(o, S);
3140
+ s.useEffect(() => T(e), [e]), s.useEffect(() => x(l), [l]), s.useEffect(() => {
3141
3141
  y.current && (y.current.indeterminate = D);
3142
3142
  }, [D]);
3143
3143
  const I = V(
@@ -3147,9 +3147,9 @@ function vr({
3147
3147
  !p && "sps-checkable--no-label",
3148
3148
  t
3149
3149
  );
3150
- function O(M) {
3151
- var L;
3152
- T(M.target.checked), N(!1), S && (S.setValue(M.target.checked), S.markAsDirty()), u && u(M), (L = y.current) == null || L.focus();
3150
+ function L(M) {
3151
+ var O;
3152
+ T(M.target.checked), x(!1), S && (S.setValue(M.target.checked), S.markAsDirty()), u && u(M), (O = y.current) == null || O.focus();
3153
3153
  }
3154
3154
  return /* @__PURE__ */ s.createElement(ut, {
3155
3155
  id: k,
@@ -3166,7 +3166,7 @@ function vr({
3166
3166
  checked: w,
3167
3167
  disabled: n,
3168
3168
  "data-testid": `${m}__checkbox-input`,
3169
- onChange: O,
3169
+ onChange: L,
3170
3170
  ...h
3171
3171
  }), /* @__PURE__ */ s.createElement("label", {
3172
3172
  className: "sps-checkable__label",
@@ -3663,8 +3663,8 @@ function lp(e, t, n) {
3663
3663
  if (p)
3664
3664
  throw new Error(process.env.NODE_ENV === "production" ? pt(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
3665
3665
  T = !1, u();
3666
- var N = c.indexOf(w);
3667
- c.splice(N, 1), l = null;
3666
+ var x = c.indexOf(w);
3667
+ c.splice(x, 1), l = null;
3668
3668
  }
3669
3669
  };
3670
3670
  }
@@ -3681,8 +3681,8 @@ function lp(e, t, n) {
3681
3681
  p = !1;
3682
3682
  }
3683
3683
  for (var T = l = c, D = 0; D < T.length; D++) {
3684
- var N = T[D];
3685
- N();
3684
+ var x = T[D];
3685
+ x();
3686
3686
  }
3687
3687
  return w;
3688
3688
  }
@@ -3696,11 +3696,11 @@ function lp(e, t, n) {
3696
3696
  function y() {
3697
3697
  var w, T = f;
3698
3698
  return w = {
3699
- subscribe: function(N) {
3700
- if (typeof N != "object" || N === null)
3701
- throw new Error(process.env.NODE_ENV === "production" ? pt(11) : "Expected the observer to be an object. Instead, received: '" + In(N) + "'");
3699
+ subscribe: function(x) {
3700
+ if (typeof x != "object" || x === null)
3701
+ throw new Error(process.env.NODE_ENV === "production" ? pt(11) : "Expected the observer to be an object. Instead, received: '" + In(x) + "'");
3702
3702
  function k() {
3703
- N.next && N.next(m());
3703
+ x.next && x.next(m());
3704
3704
  }
3705
3705
  k();
3706
3706
  var b = T(k);
@@ -3794,11 +3794,11 @@ function kv() {
3794
3794
  if (oc)
3795
3795
  return Ie;
3796
3796
  oc = 1;
3797
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
3797
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
3798
3798
  function k(I) {
3799
3799
  if (typeof I == "object" && I !== null) {
3800
- var O = I.$$typeof;
3801
- switch (O) {
3800
+ var L = I.$$typeof;
3801
+ switch (L) {
3802
3802
  case t:
3803
3803
  switch (I = I.type, I) {
3804
3804
  case p:
@@ -3817,11 +3817,11 @@ function kv() {
3817
3817
  case l:
3818
3818
  return I;
3819
3819
  default:
3820
- return O;
3820
+ return L;
3821
3821
  }
3822
3822
  }
3823
3823
  case n:
3824
- return O;
3824
+ return L;
3825
3825
  }
3826
3826
  }
3827
3827
  }
@@ -3853,7 +3853,7 @@ function kv() {
3853
3853
  }, Ie.isSuspense = function(I) {
3854
3854
  return k(I) === f;
3855
3855
  }, Ie.isValidElementType = function(I) {
3856
- return typeof I == "string" || typeof I == "function" || I === r || I === u || I === o || I === a || I === f || I === h || typeof I == "object" && I !== null && (I.$$typeof === y || I.$$typeof === S || I.$$typeof === l || I.$$typeof === c || I.$$typeof === m || I.$$typeof === T || I.$$typeof === D || I.$$typeof === N || I.$$typeof === w);
3856
+ return typeof I == "string" || typeof I == "function" || I === r || I === u || I === o || I === a || I === f || I === h || typeof I == "object" && I !== null && (I.$$typeof === y || I.$$typeof === S || I.$$typeof === l || I.$$typeof === c || I.$$typeof === m || I.$$typeof === T || I.$$typeof === D || I.$$typeof === x || I.$$typeof === w);
3857
3857
  }, Ie.typeOf = k, Ie;
3858
3858
  }
3859
3859
  var ke = {};
@@ -3868,9 +3868,9 @@ var ke = {};
3868
3868
  var ic;
3869
3869
  function Mv() {
3870
3870
  return ic || (ic = 1, process.env.NODE_ENV !== "production" && function() {
3871
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
3871
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
3872
3872
  function k(re) {
3873
- return typeof re == "string" || typeof re == "function" || re === r || re === u || re === o || re === a || re === f || re === h || typeof re == "object" && re !== null && (re.$$typeof === y || re.$$typeof === S || re.$$typeof === l || re.$$typeof === c || re.$$typeof === m || re.$$typeof === T || re.$$typeof === D || re.$$typeof === N || re.$$typeof === w);
3873
+ return typeof re == "string" || typeof re == "function" || re === r || re === u || re === o || re === a || re === f || re === h || typeof re == "object" && re !== null && (re.$$typeof === y || re.$$typeof === S || re.$$typeof === l || re.$$typeof === c || re.$$typeof === m || re.$$typeof === T || re.$$typeof === D || re.$$typeof === x || re.$$typeof === w);
3874
3874
  }
3875
3875
  function b(re) {
3876
3876
  if (typeof re == "object" && re !== null) {
@@ -3904,7 +3904,7 @@ function Mv() {
3904
3904
  }
3905
3905
  }
3906
3906
  }
3907
- var I = p, O = u, M = c, L = l, R = t, K = m, _ = r, $ = y, x = S, A = n, Q = o, q = a, W = f, J = !1;
3907
+ var I = p, L = u, M = c, O = l, R = t, K = m, _ = r, $ = y, N = S, A = n, Q = o, q = a, W = f, J = !1;
3908
3908
  function H(re) {
3909
3909
  return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(re) || b(re) === p;
3910
3910
  }
@@ -3944,7 +3944,7 @@ function Mv() {
3944
3944
  function De(re) {
3945
3945
  return b(re) === f;
3946
3946
  }
3947
- ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element = R, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = x, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
3947
+ ke.AsyncMode = I, ke.ConcurrentMode = L, ke.ContextConsumer = M, ke.ContextProvider = O, ke.Element = R, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = N, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
3948
3948
  }()), ke;
3949
3949
  }
3950
3950
  (function(e) {
@@ -4093,13 +4093,13 @@ function Ov() {
4093
4093
  object: D("object"),
4094
4094
  string: D("string"),
4095
4095
  symbol: D("symbol"),
4096
- any: N(),
4096
+ any: x(),
4097
4097
  arrayOf: k,
4098
4098
  element: b(),
4099
4099
  elementType: I(),
4100
- instanceOf: O,
4100
+ instanceOf: L,
4101
4101
  node: K(),
4102
- objectOf: L,
4102
+ objectOf: O,
4103
4103
  oneOf: M,
4104
4104
  oneOfType: R,
4105
4105
  shape: _,
@@ -4145,7 +4145,7 @@ function Ov() {
4145
4145
  }
4146
4146
  return T(F);
4147
4147
  }
4148
- function N() {
4148
+ function x() {
4149
4149
  return T(l);
4150
4150
  }
4151
4151
  function k(H) {
@@ -4188,7 +4188,7 @@ function Ov() {
4188
4188
  }
4189
4189
  return T(H);
4190
4190
  }
4191
- function O(H) {
4191
+ function L(H) {
4192
4192
  function F(z, j, te, X, G) {
4193
4193
  if (!(z[j] instanceof H)) {
4194
4194
  var oe = H.name || h, ne = J(z[j]);
@@ -4215,7 +4215,7 @@ function Ov() {
4215
4215
  }
4216
4216
  return T(F);
4217
4217
  }
4218
- function L(H) {
4218
+ function O(H) {
4219
4219
  function F(z, j, te, X, G) {
4220
4220
  if (typeof H != "function")
4221
4221
  return new w("Property `" + G + "` of component `" + te + "` has invalid PropType notation inside objectOf.");
@@ -4254,7 +4254,7 @@ function Ov() {
4254
4254
  }
4255
4255
  function K() {
4256
4256
  function H(F, z, j, te, X) {
4257
- return x(F[z]) ? null : new w("Invalid " + te + " `" + X + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
4257
+ return N(F[z]) ? null : new w("Invalid " + te + " `" + X + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
4258
4258
  }
4259
4259
  return T(H);
4260
4260
  }
@@ -4296,7 +4296,7 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
4296
4296
  }
4297
4297
  return T(F);
4298
4298
  }
4299
- function x(H) {
4299
+ function N(H) {
4300
4300
  switch (typeof H) {
4301
4301
  case "number":
4302
4302
  case "string":
@@ -4306,7 +4306,7 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
4306
4306
  return !H;
4307
4307
  case "object":
4308
4308
  if (Array.isArray(H))
4309
- return H.every(x);
4309
+ return H.every(N);
4310
4310
  if (H === null || c(H))
4311
4311
  return !0;
4312
4312
  var F = f(H);
@@ -4314,12 +4314,12 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
4314
4314
  var z = F.call(H), j;
4315
4315
  if (F !== H.entries) {
4316
4316
  for (; !(j = z.next()).done; )
4317
- if (!x(j.value))
4317
+ if (!N(j.value))
4318
4318
  return !1;
4319
4319
  } else
4320
4320
  for (; !(j = z.next()).done; ) {
4321
4321
  var te = j.value;
4322
- if (te && !x(te[1]))
4322
+ if (te && !N(te[1]))
4323
4323
  return !1;
4324
4324
  }
4325
4325
  } else
@@ -4626,8 +4626,8 @@ function ty(e, t, n, r, a, o, l, c, p, u) {
4626
4626
  var w = t.getState(), T, D;
4627
4627
  try {
4628
4628
  T = r(w, a.current);
4629
- } catch (N) {
4630
- D = N, f = N;
4629
+ } catch (x) {
4630
+ D = x, f = x;
4631
4631
  }
4632
4632
  D || (f = null), T === o.current ? l.current || p() : (o.current = T, c.current = T, l.current = !0, u({
4633
4633
  type: "STORE_UPDATED",
@@ -4650,9 +4650,9 @@ var ny = function() {
4650
4650
  };
4651
4651
  function ry(e, t) {
4652
4652
  t === void 0 && (t = {});
4653
- var n = t, r = n.getDisplayName, a = r === void 0 ? function(O) {
4654
- return "ConnectAdvanced(" + O + ")";
4655
- } : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, u = n.shouldHandleStateChanges, m = u === void 0 ? !0 : u, f = n.storeKey, h = f === void 0 ? "store" : f, S = n.withRef, y = S === void 0 ? !1 : S, w = n.forwardRef, T = w === void 0 ? !1 : w, D = n.context, N = D === void 0 ? jo : D, k = js(n, zv);
4653
+ var n = t, r = n.getDisplayName, a = r === void 0 ? function(L) {
4654
+ return "ConnectAdvanced(" + L + ")";
4655
+ } : r, o = n.methodName, l = o === void 0 ? "connectAdvanced" : o, c = n.renderCountProp, p = c === void 0 ? void 0 : c, u = n.shouldHandleStateChanges, m = u === void 0 ? !0 : u, f = n.storeKey, h = f === void 0 ? "store" : f, S = n.withRef, y = S === void 0 ? !1 : S, w = n.forwardRef, T = w === void 0 ? !1 : w, D = n.context, x = D === void 0 ? jo : D, k = js(n, zv);
4656
4656
  if (process.env.NODE_ENV !== "production") {
4657
4657
  if (p !== void 0)
4658
4658
  throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
@@ -4662,24 +4662,24 @@ function ry(e, t) {
4662
4662
  if (h !== "store")
4663
4663
  throw new Error("storeKey has been removed and does not do anything. " + b);
4664
4664
  }
4665
- var I = N;
4665
+ var I = x;
4666
4666
  return function(M) {
4667
4667
  if (process.env.NODE_ENV !== "production" && !mr.exports.isValidElementType(M))
4668
4668
  throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + Xv(M)));
4669
- var L = M.displayName || M.name || "Component", R = a(L), K = ue({}, k, {
4669
+ var O = M.displayName || M.name || "Component", R = a(O), K = ue({}, k, {
4670
4670
  getDisplayName: a,
4671
4671
  methodName: l,
4672
4672
  renderCountProp: p,
4673
4673
  shouldHandleStateChanges: m,
4674
4674
  storeKey: h,
4675
4675
  displayName: R,
4676
- wrappedComponentName: L,
4676
+ wrappedComponentName: O,
4677
4677
  WrappedComponent: M
4678
4678
  }), _ = k.pure;
4679
4679
  function $(W) {
4680
4680
  return e(W.dispatch, K);
4681
4681
  }
4682
- var x = _ ? He : function(W) {
4682
+ var N = _ ? He : function(W) {
4683
4683
  return W();
4684
4684
  };
4685
4685
  function A(W) {
@@ -4705,7 +4705,7 @@ function ry(e, t) {
4705
4705
  }, [X, te, ee]), re = sa(Qv, Jv, ny), Ze = re[0], Ke = Ze[0], lt = re[1];
4706
4706
  if (Ke && Ke.error)
4707
4707
  throw Ke.error;
4708
- var St = pe(), ct = pe(z), ge = pe(), Ae = pe(!1), Ye = x(function() {
4708
+ var St = pe(), ct = pe(z), ge = pe(), Ae = pe(!1), Ye = N(function() {
4709
4709
  return ge.current && z === ct.current ? ge.current : ne(oe.getState(), z);
4710
4710
  }, [oe, Ke, z]);
4711
4711
  bc(ey, [ct, St, Ae, z, Ye, ge, Te]), bc(ty, [m, oe, ee, ne, ct, St, Ae, ge, Te, lt], [oe, ee, ne]);
@@ -4879,12 +4879,12 @@ function Ey(e, t, n, r, a) {
4879
4879
  var k = e(u, m), b = !c(k, f);
4880
4880
  return f = k, b && (S = n(f, h, m)), S;
4881
4881
  }
4882
- function N(k, b) {
4883
- var I = !l(b, m), O = !o(k, u);
4884
- return u = k, m = b, I && O ? w() : I ? T() : O ? D() : S;
4882
+ function x(k, b) {
4883
+ var I = !l(b, m), L = !o(k, u);
4884
+ return u = k, m = b, I && L ? w() : I ? T() : L ? D() : S;
4885
4885
  }
4886
4886
  return function(b, I) {
4887
- return p ? N(b, I) : y(b, I);
4887
+ return p ? x(b, I) : y(b, I);
4888
4888
  };
4889
4889
  }
4890
4890
  function Ty(e, t) {
@@ -4911,14 +4911,14 @@ function Dy(e) {
4911
4911
  var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? ry : n, a = t.mapStateToPropsFactories, o = a === void 0 ? uy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? cy : l, p = t.mergePropsFactories, u = p === void 0 ? Sy : p, m = t.selectorFactory, f = m === void 0 ? Ty : m;
4912
4912
  return function(S, y, w, T) {
4913
4913
  T === void 0 && (T = {});
4914
- var D = T, N = D.pure, k = N === void 0 ? !0 : N, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual, R = L === void 0 ? za : L, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), x = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
4914
+ var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, L = D.areOwnPropsEqual, M = L === void 0 ? za : L, O = D.areStatePropsEqual, R = O === void 0 ? za : O, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), N = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
4915
4915
  return r(f, ue({
4916
4916
  methodName: "connect",
4917
4917
  getDisplayName: function(W) {
4918
4918
  return "Connect(" + W + ")";
4919
4919
  },
4920
4920
  shouldHandleStateChanges: Boolean(S),
4921
- initMapStateToProps: x,
4921
+ initMapStateToProps: N,
4922
4922
  initMapDispatchToProps: A,
4923
4923
  initMergeProps: Q,
4924
4924
  pure: k,
@@ -6236,11 +6236,11 @@ function FE(e) {
6236
6236
  }
6237
6237
  var $E = function(e) {
6238
6238
  var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, a = e.insideDestination, o = e.last, l = e.viewport, c = e.afterCritical, p = r.axis, u = ns(r.axis, n.displaceBy), m = u.value, f = t[p.start], h = t[p.end], S = ma(n, a), y = vn(S, function(T) {
6239
- var D = T.descriptor.id, N = T.page.borderBox.center[p.line], k = gn(D, c), b = Kp({
6239
+ var D = T.descriptor.id, x = T.page.borderBox.center[p.line], k = gn(D, c), b = Kp({
6240
6240
  displaced: o,
6241
6241
  id: D
6242
6242
  });
6243
- return k ? b ? h <= N : f < N - m : b ? h <= N + m : f < N;
6243
+ return k ? b ? h <= x : f < x - m : b ? h <= x + m : f < x;
6244
6244
  }), w = FE({
6245
6245
  draggable: n,
6246
6246
  closest: y,
@@ -6260,7 +6260,7 @@ var $E = function(e) {
6260
6260
  if (!a.isCombineEnabled)
6261
6261
  return null;
6262
6262
  var c = a.axis, p = ns(a.axis, t.displaceBy), u = p.value, m = n[c.start], f = n[c.end], h = ma(t, o), S = vn(h, function(w) {
6263
- var T = w.descriptor.id, D = w.page.borderBox, N = D[c.size], k = N / VE, b = gn(T, l), I = Kp({
6263
+ var T = w.descriptor.id, D = w.page.borderBox, x = D[c.size], k = x / VE, b = gn(T, l), I = Kp({
6264
6264
  displaced: r.displaced,
6265
6265
  id: T
6266
6266
  });
@@ -6541,14 +6541,14 @@ var Wp = function(e) {
6541
6541
  });
6542
6542
  if (t.phase === "COLLECTING")
6543
6543
  return D;
6544
- var N = ue({
6544
+ var x = ue({
6545
6545
  phase: "DROP_PENDING"
6546
6546
  }, D, {
6547
6547
  phase: "DROP_PENDING",
6548
6548
  reason: t.reason,
6549
6549
  isWaiting: !1
6550
6550
  });
6551
- return N;
6551
+ return x;
6552
6552
  }, No = function(t) {
6553
6553
  return t.movementMode === "SNAP";
6554
6554
  }, Xa = function(t, n, r) {
@@ -6635,10 +6635,10 @@ var Pc = {
6635
6635
  if (e.phase === "DROP_PENDING")
6636
6636
  return e;
6637
6637
  kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, t.type + " not permitted in phase " + e.phase) : B(!1));
6638
- var N = t.payload.client;
6639
- return fn(N, e.current.client.selection) ? e : Wr({
6638
+ var x = t.payload.client;
6639
+ return fn(x, e.current.client.selection) ? e : Wr({
6640
6640
  state: e,
6641
- clientSelection: N,
6641
+ clientSelection: x,
6642
6642
  impact: No(e) ? e.impact : null
6643
6643
  });
6644
6644
  }
@@ -6646,17 +6646,17 @@ var Pc = {
6646
6646
  if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
6647
6647
  return Qa(e);
6648
6648
  kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, t.type + " not permitted in phase " + e.phase) : B(!1));
6649
- var k = t.payload, b = k.id, I = k.newScroll, O = e.dimensions.droppables[b];
6650
- if (!O)
6649
+ var k = t.payload, b = k.id, I = k.newScroll, L = e.dimensions.droppables[b];
6650
+ if (!L)
6651
6651
  return e;
6652
- var M = Qo(O, I);
6652
+ var M = Qo(L, I);
6653
6653
  return Xa(e, M, !1);
6654
6654
  }
6655
6655
  if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
6656
6656
  if (e.phase === "DROP_PENDING")
6657
6657
  return e;
6658
6658
  kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
6659
- var L = t.payload, R = L.id, K = L.isEnabled, _ = e.dimensions.droppables[R];
6659
+ var O = t.payload, R = O.id, K = O.isEnabled, _ = e.dimensions.droppables[R];
6660
6660
  _ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + R + "] to toggle its enabled state") : B(!1)), _.isEnabled === K && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isEnabled to " + String(K) + `
6661
6661
  but it is already ` + String(_.isEnabled)) : B(!1));
6662
6662
  var $ = ue({}, _, {
@@ -6668,7 +6668,7 @@ var Pc = {
6668
6668
  if (e.phase === "DROP_PENDING")
6669
6669
  return e;
6670
6670
  kn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
6671
- var x = t.payload, A = x.id, Q = x.isCombineEnabled, q = e.dimensions.droppables[A];
6671
+ var N = t.payload, A = N.id, Q = N.isCombineEnabled, q = e.dimensions.droppables[A];
6672
6672
  q || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + A + "] to toggle its isCombineEnabled state") : B(!1)), q.isCombineEnabled === Q && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isCombineEnabled to " + String(Q) + `
6673
6673
  but it is already ` + String(q.isCombineEnabled)) : B(!1));
6674
6674
  var W = ue({}, q, {
@@ -7046,7 +7046,7 @@ var gT = function(e) {
7046
7046
  mode: o.movementMode,
7047
7047
  destination: y,
7048
7048
  combine: w
7049
- }, N = ET({
7049
+ }, x = ET({
7050
7050
  impact: h,
7051
7051
  draggable: m,
7052
7052
  dimensions: u,
@@ -7057,7 +7057,7 @@ var gT = function(e) {
7057
7057
  afterCritical: o.afterCritical,
7058
7058
  result: D,
7059
7059
  impact: h
7060
- }, b = !fn(o.current.client.offset, N) || Boolean(D.combine);
7060
+ }, b = !fn(o.current.client.offset, x) || Boolean(D.combine);
7061
7061
  if (!b) {
7062
7062
  n(li({
7063
7063
  completed: k
@@ -7066,14 +7066,14 @@ var gT = function(e) {
7066
7066
  }
7067
7067
  var I = yT({
7068
7068
  current: o.current.client.offset,
7069
- destination: N,
7069
+ destination: x,
7070
7070
  reason: l
7071
- }), O = {
7072
- newHomeClientOffset: N,
7071
+ }), L = {
7072
+ newHomeClientOffset: x,
7073
7073
  dropDuration: I,
7074
7074
  completed: k
7075
7075
  };
7076
- n(uT(O));
7076
+ n(uT(L));
7077
7077
  }
7078
7078
  };
7079
7079
  };
@@ -7246,8 +7246,8 @@ var NT = function(t) {
7246
7246
  T && (r.lastCritical = h);
7247
7247
  var D = !MT(r.lastLocation, y);
7248
7248
  D && (r.lastLocation = y);
7249
- var N = !_T(r.lastCombine, w);
7250
- if (N && (r.lastCombine = w), !(!T && !D && !N)) {
7249
+ var x = !_T(r.lastCombine, w);
7250
+ if (x && (r.lastCombine = w), !(!T && !D && !x)) {
7251
7251
  var k = ue({}, _s(h, r.mode), {
7252
7252
  combine: w,
7253
7253
  destination: y
@@ -7430,10 +7430,10 @@ function GT(e) {
7430
7430
  a = null, rs();
7431
7431
  var m = r, f = m.additions, h = m.removals, S = m.modified, y = Object.keys(f).map(function(D) {
7432
7432
  return t.draggable.getById(D).getDimension(Je);
7433
- }).sort(function(D, N) {
7434
- return D.descriptor.index - N.descriptor.index;
7433
+ }).sort(function(D, x) {
7434
+ return D.descriptor.index - x.descriptor.index;
7435
7435
  }), w = Object.keys(S).map(function(D) {
7436
- var N = t.droppable.getById(D), k = N.callbacks.getScrollWhileDragging();
7436
+ var x = t.droppable.getById(D), k = x.callbacks.getScrollWhileDragging();
7437
7437
  return {
7438
7438
  droppableId: D,
7439
7439
  scroll: k
@@ -8801,9 +8801,9 @@ function tC(e) {
8801
8801
  sourceEvent: S
8802
8802
  });
8803
8803
  if (!!w) {
8804
- var T = S.touches[0], D = T.clientX, N = T.clientY, k = {
8804
+ var T = S.touches[0], D = T.clientX, x = T.clientY, k = {
8805
8805
  x: D,
8806
- y: N
8806
+ y: x
8807
8807
  };
8808
8808
  n.current(), f(w, k);
8809
8809
  }
@@ -9000,24 +9000,24 @@ function fC(e) {
9000
9000
  function y() {
9001
9001
  return t.isActive(f);
9002
9002
  }
9003
- function w(O, M) {
9003
+ function w(L, M) {
9004
9004
  Os({
9005
- expected: O,
9005
+ expected: L,
9006
9006
  phase: h,
9007
9007
  isLockActive: y,
9008
9008
  shouldWarn: !0
9009
9009
  }) && r.dispatch(M());
9010
9010
  }
9011
9011
  var T = w.bind(null, "DRAGGING");
9012
- function D(O) {
9012
+ function D(L) {
9013
9013
  function M() {
9014
9014
  t.release(), h = "COMPLETED";
9015
9015
  }
9016
- h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(O.liftActionArgs)), h = "DRAGGING";
9017
- function L(R, K) {
9016
+ h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(L.liftActionArgs)), h = "DRAGGING";
9017
+ function O(R, K) {
9018
9018
  if (K === void 0 && (K = {
9019
9019
  shouldBlockNextClick: !1
9020
- }), O.cleanup(), K.shouldBlockNextClick) {
9020
+ }), L.cleanup(), K.shouldBlockNextClick) {
9021
9021
  var _ = yt(window, [{
9022
9022
  eventName: "click",
9023
9023
  fn: mC,
@@ -9044,24 +9044,24 @@ function fC(e) {
9044
9044
  },
9045
9045
  shouldRespectForcePress: S,
9046
9046
  drop: function(K) {
9047
- return L("DROP", K);
9047
+ return O("DROP", K);
9048
9048
  },
9049
9049
  cancel: function(K) {
9050
- return L("CANCEL", K);
9050
+ return O("CANCEL", K);
9051
9051
  }
9052
- }, O.actions);
9052
+ }, L.actions);
9053
9053
  }
9054
- function N(O) {
9054
+ function x(L) {
9055
9055
  var M = Ur(function(R) {
9056
9056
  T(function() {
9057
9057
  return jp({
9058
9058
  client: R
9059
9059
  });
9060
9060
  });
9061
- }), L = D({
9061
+ }), O = D({
9062
9062
  liftActionArgs: {
9063
9063
  id: o,
9064
- clientSelection: O,
9064
+ clientSelection: L,
9065
9065
  movementMode: "FLUID"
9066
9066
  },
9067
9067
  cleanup: function() {
@@ -9071,12 +9071,12 @@ function fC(e) {
9071
9071
  move: M
9072
9072
  }
9073
9073
  });
9074
- return ue({}, L, {
9074
+ return ue({}, O, {
9075
9075
  move: M
9076
9076
  });
9077
9077
  }
9078
9078
  function k() {
9079
- var O = {
9079
+ var L = {
9080
9080
  moveUp: function() {
9081
9081
  return T(lT);
9082
9082
  },
@@ -9097,17 +9097,17 @@ function fC(e) {
9097
9097
  movementMode: "SNAP"
9098
9098
  },
9099
9099
  cleanup: mn,
9100
- actions: O
9100
+ actions: L
9101
9101
  });
9102
9102
  }
9103
9103
  function b() {
9104
- var O = Os({
9104
+ var L = Os({
9105
9105
  expected: "PRE_DRAG",
9106
9106
  phase: h,
9107
9107
  isLockActive: y,
9108
9108
  shouldWarn: !0
9109
9109
  });
9110
- O && t.release();
9110
+ L && t.release();
9111
9111
  }
9112
9112
  var I = {
9113
9113
  isActive: function() {
@@ -9119,7 +9119,7 @@ function fC(e) {
9119
9119
  });
9120
9120
  },
9121
9121
  shouldRespectForcePress: S,
9122
- fluidLift: N,
9122
+ fluidLift: x,
9123
9123
  snapLift: k,
9124
9124
  abort: b
9125
9125
  };
@@ -9129,13 +9129,13 @@ var hC = [Yw, Jw, tC];
9129
9129
  function gC(e) {
9130
9130
  var t = e.contextId, n = e.store, r = e.registry, a = e.customSensors, o = e.enableDefaultSensors, l = [].concat(o ? hC : [], a || []), c = Ve(function() {
9131
9131
  return Lw();
9132
- })[0], p = me(function(N, k) {
9133
- N.isDragging && !k.isDragging && c.tryAbandon();
9132
+ })[0], p = me(function(x, k) {
9133
+ x.isDragging && !k.isDragging && c.tryAbandon();
9134
9134
  }, [c]);
9135
9135
  gt(function() {
9136
- var N = n.getState(), k = n.subscribe(function() {
9136
+ var x = n.getState(), k = n.subscribe(function() {
9137
9137
  var b = n.getState();
9138
- p(N, b), N = b;
9138
+ p(x, b), x = b;
9139
9139
  });
9140
9140
  return k;
9141
9141
  }, [c, n, p]), gt(function() {
@@ -9148,21 +9148,21 @@ function gC(e) {
9148
9148
  store: n,
9149
9149
  draggableId: D
9150
9150
  });
9151
- }, [c, r, n]), m = me(function(D, N, k) {
9151
+ }, [c, r, n]), m = me(function(D, x, k) {
9152
9152
  return fC({
9153
9153
  lockAPI: c,
9154
9154
  registry: r,
9155
9155
  contextId: t,
9156
9156
  store: n,
9157
9157
  draggableId: D,
9158
- forceSensorStop: N,
9158
+ forceSensorStop: x,
9159
9159
  sourceEvent: k && k.sourceEvent ? k.sourceEvent : null
9160
9160
  });
9161
9161
  }, [t, c, r, n]), f = me(function(D) {
9162
9162
  return pC(t, D);
9163
9163
  }, [t]), h = me(function(D) {
9164
- var N = r.draggable.findById(D);
9165
- return N ? N.options : null;
9164
+ var x = r.draggable.findById(D);
9165
+ return x ? x.options : null;
9166
9166
  }, [r.draggable]), S = me(function() {
9167
9167
  !c.isClaimed() || (c.tryAbandon(), n.getState().phase !== "IDLE" && n.dispatch(ii()));
9168
9168
  }, [c, n]), y = me(c.isClaimed, [c]), w = Ce(function() {
@@ -9218,7 +9218,7 @@ function bC(e) {
9218
9218
  }, sc({
9219
9219
  move: jp
9220
9220
  }, h)));
9221
- }, [w.scrollDroppable, h]), D = gw(t), N = Ce(function() {
9221
+ }, [w.scrollDroppable, h]), D = gw(t), x = Ce(function() {
9222
9222
  return WT({
9223
9223
  announce: u,
9224
9224
  autoScroller: T,
@@ -9228,7 +9228,7 @@ function bC(e) {
9228
9228
  styleMarshal: f
9229
9229
  });
9230
9230
  }, [u, T, w, D, p, f]);
9231
- process.env.NODE_ENV !== "production" && l.current && l.current !== N && process.env.NODE_ENV !== "production" && Re("unexpected store change"), l.current = N;
9231
+ process.env.NODE_ENV !== "production" && l.current && l.current !== x && process.env.NODE_ENV !== "production" && Re("unexpected store change"), l.current = x;
9232
9232
  var k = me(function() {
9233
9233
  var R = $r(l), K = R.getState();
9234
9234
  K.phase !== "IDLE" && R.dispatch(ii());
@@ -9242,34 +9242,34 @@ function bC(e) {
9242
9242
  };
9243
9243
  }, [b, k]);
9244
9244
  n(I);
9245
- var O = me(function(R) {
9245
+ var L = me(function(R) {
9246
9246
  return tu($r(l).getState(), R);
9247
9247
  }, []), M = me(function() {
9248
9248
  return kn($r(l).getState());
9249
- }, []), L = Ce(function() {
9249
+ }, []), O = Ce(function() {
9250
9250
  return {
9251
9251
  marshal: w,
9252
9252
  focus: D,
9253
9253
  contextId: t,
9254
- canLift: O,
9254
+ canLift: L,
9255
9255
  isMovementAllowed: M,
9256
9256
  dragHandleUsageInstructionsId: m,
9257
9257
  registry: y
9258
9258
  };
9259
- }, [t, w, m, D, O, M, y]);
9259
+ }, [t, w, m, D, L, M, y]);
9260
9260
  return gC({
9261
9261
  contextId: t,
9262
- store: N,
9262
+ store: x,
9263
9263
  registry: y,
9264
9264
  customSensors: r,
9265
9265
  enableDefaultSensors: e.enableDefaultSensors !== !1
9266
9266
  }), Le(function() {
9267
9267
  return k;
9268
9268
  }, [k]), Y.createElement(ha.Provider, {
9269
- value: L
9269
+ value: O
9270
9270
  }, Y.createElement(mp, {
9271
9271
  context: hi,
9272
- store: N
9272
+ store: x
9273
9273
  }, e.children));
9274
9274
  }
9275
9275
  var fu = 0;
@@ -9473,11 +9473,11 @@ function PC(e) {
9473
9473
  }, [e.droppableId, e.mode, e.type]), p = pe(c), u = Ce(function() {
9474
9474
  return qe(function(b, I) {
9475
9475
  t.current || (process.env.NODE_ENV !== "production" ? B(!1, "Can only update scroll when dragging") : B(!1));
9476
- var O = {
9476
+ var L = {
9477
9477
  x: b,
9478
9478
  y: I
9479
9479
  };
9480
- o.updateDroppableScroll(c.id, O);
9480
+ o.updateDroppableScroll(c.id, L);
9481
9481
  });
9482
9482
  }, [c.id, o]), m = me(function() {
9483
9483
  var b = t.current;
@@ -9490,33 +9490,33 @@ function PC(e) {
9490
9490
  }, [f]), S = me(function() {
9491
9491
  var b = t.current, I = Rs(b);
9492
9492
  b && I || (process.env.NODE_ENV !== "production" ? B(!1, "Could not find scroll options while scrolling") : B(!1));
9493
- var O = b.scrollOptions;
9494
- if (O.shouldPublishImmediately) {
9493
+ var L = b.scrollOptions;
9494
+ if (L.shouldPublishImmediately) {
9495
9495
  f();
9496
9496
  return;
9497
9497
  }
9498
9498
  h();
9499
9499
  }, [h, f]), y = me(function(b, I) {
9500
9500
  t.current && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect a droppable while a drag is occurring") : B(!1));
9501
- var O = l.current, M = O.getDroppableRef();
9501
+ var L = l.current, M = L.getDroppableRef();
9502
9502
  M || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect without a droppable ref") : B(!1));
9503
- var L = kC(M), R = {
9503
+ var O = kC(M), R = {
9504
9504
  ref: M,
9505
9505
  descriptor: c,
9506
- env: L,
9506
+ env: O,
9507
9507
  scrollOptions: I
9508
9508
  };
9509
9509
  t.current = R;
9510
9510
  var K = LC({
9511
9511
  ref: M,
9512
9512
  descriptor: c,
9513
- env: L,
9513
+ env: O,
9514
9514
  windowScroll: b,
9515
- direction: O.direction,
9516
- isDropDisabled: O.isDropDisabled,
9517
- isCombineEnabled: O.isCombineEnabled,
9518
- shouldClipSubject: !O.ignoreContainerClipping
9519
- }), _ = L.closestScrollable;
9515
+ direction: L.direction,
9516
+ isDropDisabled: L.isDropDisabled,
9517
+ isCombineEnabled: L.isCombineEnabled,
9518
+ shouldClipSubject: !L.ignoreContainerClipping
9519
+ }), _ = O.closestScrollable;
9520
9520
  return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(R.scrollOptions)), process.env.NODE_ENV !== "production" && xC(_)), K;
9521
9521
  }, [n.contextId, c, S, l]), w = me(function() {
9522
9522
  var b = t.current, I = Rs(b);
@@ -9529,9 +9529,9 @@ function PC(e) {
9529
9529
  }, [S, h]), D = me(function(b) {
9530
9530
  var I = t.current;
9531
9531
  I || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll when there is no drag") : B(!1));
9532
- var O = Rs(I);
9533
- O || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll a droppable with no closest scrollable") : B(!1)), O.scrollTop += b.y, O.scrollLeft += b.x;
9534
- }, []), N = Ce(function() {
9532
+ var L = Rs(I);
9533
+ L || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll a droppable with no closest scrollable") : B(!1)), L.scrollTop += b.y, L.scrollLeft += b.x;
9534
+ }, []), x = Ce(function() {
9535
9535
  return {
9536
9536
  getDimensionAndWatchScroll: y,
9537
9537
  getScrollWhileDragging: w,
@@ -9542,14 +9542,14 @@ function PC(e) {
9542
9542
  return {
9543
9543
  uniqueId: r,
9544
9544
  descriptor: c,
9545
- callbacks: N
9545
+ callbacks: x
9546
9546
  };
9547
- }, [N, c, r]);
9547
+ }, [x, c, r]);
9548
9548
  gt(function() {
9549
9549
  return p.current = k.descriptor, a.droppable.register(k), function() {
9550
9550
  t.current && (process.env.NODE_ENV !== "production" && Re("Unsupported: changing the droppableId or type of a Droppable during a drag"), T()), a.droppable.unregister(k);
9551
9551
  };
9552
- }, [N, c, T, k, o, a.droppable]), gt(function() {
9552
+ }, [x, c, T, k, o, a.droppable]), gt(function() {
9553
9553
  !t.current || o.updateDroppableIsEnabled(p.current.id, !e.isDropDisabled);
9554
9554
  }, [e.isDropDisabled, o]), gt(function() {
9555
9555
  !t.current || o.updateDroppableIsCombineEnabled(p.current.id, e.isCombineEnabled);
@@ -9824,7 +9824,7 @@ function nD(e) {
9824
9824
  type: u,
9825
9825
  droppableId: m
9826
9826
  };
9827
- }, [e.draggableId, e.index, u, m]), h = e.children, S = e.draggableId, y = e.isEnabled, w = e.shouldRespectForcePress, T = e.canDragInteractiveElements, D = e.isClone, N = e.mapped, k = e.dropAnimationFinished;
9827
+ }, [e.draggableId, e.index, u, m]), h = e.children, S = e.draggableId, y = e.isEnabled, w = e.shouldRespectForcePress, T = e.canDragInteractiveElements, D = e.isClone, x = e.mapped, k = e.dropAnimationFinished;
9828
9828
  if (QC(e, o, r), eD(D), !D) {
9829
9829
  var b = Ce(function() {
9830
9830
  return {
@@ -9848,10 +9848,10 @@ function nD(e) {
9848
9848
  draggable: !1,
9849
9849
  onDragStart: tD
9850
9850
  } : null;
9851
- }, [o, l, S, y]), O = me(function(R) {
9852
- N.type === "DRAGGING" && (!N.dropping || R.propertyName === "transform" && k());
9853
- }, [k, N]), M = Ce(function() {
9854
- var R = JC(N), K = N.type === "DRAGGING" && N.dropping ? O : null, _ = {
9851
+ }, [o, l, S, y]), L = me(function(R) {
9852
+ x.type === "DRAGGING" && (!x.dropping || R.propertyName === "transform" && k());
9853
+ }, [k, x]), M = Ce(function() {
9854
+ var R = JC(x), K = x.type === "DRAGGING" && x.dropping ? L : null, _ = {
9855
9855
  innerRef: n,
9856
9856
  draggableProps: {
9857
9857
  "data-rbd-draggable-context-id": o,
@@ -9862,7 +9862,7 @@ function nD(e) {
9862
9862
  dragHandleProps: I
9863
9863
  };
9864
9864
  return _;
9865
- }, [o, I, S, N, O, n]), L = Ce(function() {
9865
+ }, [o, I, S, x, L, n]), O = Ce(function() {
9866
9866
  return {
9867
9867
  draggableId: f.id,
9868
9868
  type: f.type,
@@ -9872,7 +9872,7 @@ function nD(e) {
9872
9872
  }
9873
9873
  };
9874
9874
  }, [f.droppableId, f.id, f.index, f.type]);
9875
- return h(M, N.snapshot, L);
9875
+ return h(M, x.snapshot, O);
9876
9876
  }
9877
9877
  var bu = function(e, t) {
9878
9878
  return e === t;
@@ -9926,12 +9926,12 @@ function aD() {
9926
9926
  var h = o.completed;
9927
9927
  if (h.result.draggableId !== l.draggableId)
9928
9928
  return null;
9929
- var S = l.isClone, y = o.dimensions.draggables[l.draggableId], w = h.result, T = w.mode, D = vu(w), N = rD(w), k = o.dropDuration, b = {
9929
+ var S = l.isClone, y = o.dimensions.draggables[l.draggableId], w = h.result, T = w.mode, D = vu(w), x = rD(w), k = o.dropDuration, b = {
9930
9930
  duration: k,
9931
9931
  curve: ci.drop,
9932
9932
  moveTo: o.newHomeClientOffset,
9933
- opacity: N ? Jr.opacity.drop : null,
9934
- scale: N ? Jr.scale.drop : null
9933
+ opacity: x ? Jr.opacity.drop : null,
9934
+ scale: x ? Jr.scale.drop : null
9935
9935
  };
9936
9936
  return {
9937
9937
  mapped: {
@@ -9940,10 +9940,10 @@ function aD() {
9940
9940
  dimension: y,
9941
9941
  dropping: b,
9942
9942
  draggingOver: D,
9943
- combineWith: N,
9943
+ combineWith: x,
9944
9944
  mode: T,
9945
9945
  forceShouldAnimate: null,
9946
- snapshot: t(T, S, D, N, b)
9946
+ snapshot: t(T, S, D, x, b)
9947
9947
  }
9948
9948
  };
9949
9949
  }
@@ -10002,8 +10002,8 @@ function iD() {
10002
10002
  }
10003
10003
  if (h)
10004
10004
  return r(y);
10005
- var D = u.displacedBy.point, N = e(D.x, D.y);
10006
- return n(N, y, f.shouldAnimate);
10005
+ var D = u.displacedBy.point, x = e(D.x, D.y);
10006
+ return n(x, y, f.shouldAnimate);
10007
10007
  }, o = function(c, p) {
10008
10008
  if (c.isDragging)
10009
10009
  return c.critical.draggable.id === p.draggableId ? null : a(p.draggableId, c.critical.draggable.id, c.impact, c.afterCritical);
@@ -10043,7 +10043,7 @@ function pD(e) {
10043
10043
  function uD(e) {
10044
10044
  var t = rn(ha);
10045
10045
  t || (process.env.NODE_ENV !== "production" ? B(!1, "Could not find app context") : B(!1));
10046
- var n = t.contextId, r = t.isMovementAllowed, a = pe(null), o = pe(null), l = e.children, c = e.droppableId, p = e.type, u = e.mode, m = e.direction, f = e.ignoreContainerClipping, h = e.isDropDisabled, S = e.isCombineEnabled, y = e.snapshot, w = e.useClone, T = e.updateViewportMaxScroll, D = e.getContainerForClone, N = me(function() {
10046
+ var n = t.contextId, r = t.isMovementAllowed, a = pe(null), o = pe(null), l = e.children, c = e.droppableId, p = e.type, u = e.mode, m = e.direction, f = e.ignoreContainerClipping, h = e.isDropDisabled, S = e.isCombineEnabled, y = e.snapshot, w = e.useClone, T = e.updateViewportMaxScroll, D = e.getContainerForClone, x = me(function() {
10047
10047
  return a.current;
10048
10048
  }, []), k = me(function($) {
10049
10049
  a.current = $;
@@ -10054,10 +10054,10 @@ function uD(e) {
10054
10054
  }, []);
10055
10055
  WC({
10056
10056
  props: e,
10057
- getDroppableRef: N,
10057
+ getDroppableRef: x,
10058
10058
  getPlaceholderRef: b
10059
10059
  });
10060
- var O = me(function() {
10060
+ var L = me(function() {
10061
10061
  r() && T({
10062
10062
  maxScroll: eu()
10063
10063
  });
@@ -10070,22 +10070,22 @@ function uD(e) {
10070
10070
  isDropDisabled: h,
10071
10071
  isCombineEnabled: S,
10072
10072
  ignoreContainerClipping: f,
10073
- getDroppableRef: N
10073
+ getDroppableRef: x
10074
10074
  });
10075
10075
  var M = Y.createElement(GC, {
10076
10076
  on: e.placeholder,
10077
10077
  shouldAnimate: e.shouldAnimatePlaceholder
10078
10078
  }, function($) {
10079
- var x = $.onClose, A = $.data, Q = $.animate;
10079
+ var N = $.onClose, A = $.data, Q = $.animate;
10080
10080
  return Y.createElement($C, {
10081
10081
  placeholder: A,
10082
- onClose: x,
10082
+ onClose: N,
10083
10083
  innerRef: I,
10084
10084
  animate: Q,
10085
10085
  contextId: n,
10086
- onTransitionEnd: O
10086
+ onTransitionEnd: L
10087
10087
  });
10088
- }), L = Ce(function() {
10088
+ }), O = Ce(function() {
10089
10089
  return {
10090
10090
  innerRef: k,
10091
10091
  placeholder: M,
@@ -10104,7 +10104,7 @@ function uD(e) {
10104
10104
  function _() {
10105
10105
  if (!w)
10106
10106
  return null;
10107
- var $ = w.dragging, x = w.render, A = Y.createElement(Eu, {
10107
+ var $ = w.dragging, N = w.render, A = Y.createElement(Eu, {
10108
10108
  draggableId: $.draggableId,
10109
10109
  index: $.source.index,
10110
10110
  isClone: !0,
@@ -10112,13 +10112,13 @@ function uD(e) {
10112
10112
  shouldRespectForcePress: !1,
10113
10113
  canDragInteractiveElements: !0
10114
10114
  }, function(Q, q) {
10115
- return x(Q, q, $);
10115
+ return N(Q, q, $);
10116
10116
  });
10117
10117
  return db.createPortal(A, D());
10118
10118
  }
10119
10119
  return Y.createElement(Ei.Provider, {
10120
10120
  value: K
10121
- }, l(L, y), _());
10121
+ }, l(O, y), _());
10122
10122
  }
10123
10123
  var lo = function(t, n) {
10124
10124
  return t === n.droppable.type;
@@ -10198,10 +10198,10 @@ var lo = function(t, n) {
10198
10198
  return a(u, f, vu(T.result) === u, ht(T.impact) === u, D, h);
10199
10199
  }
10200
10200
  if (c.phase === "IDLE" && c.completed && !c.shouldFlush) {
10201
- var N = c.completed;
10202
- if (!lo(m, N.critical))
10201
+ var x = c.completed;
10202
+ if (!lo(m, x.critical))
10203
10203
  return n;
10204
- var k = ht(N.impact) === u, b = Boolean(N.impact.at && N.impact.at.type === "COMBINE"), I = N.critical.droppable.id === u;
10204
+ var k = ht(x.impact) === u, b = Boolean(x.impact.at && x.impact.at.type === "COMBINE"), I = x.critical.droppable.id === u;
10205
10205
  return k ? b ? t : n : I ? t : n;
10206
10206
  }
10207
10207
  return n;
@@ -10320,8 +10320,8 @@ function Cu(e) {
10320
10320
  ...y
10321
10321
  } = e, w = () => {
10322
10322
  t && t(this, p, r);
10323
- }, T = (N) => {
10324
- (N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), N.stopPropagation(), t && t(this, p, r));
10323
+ }, T = (x) => {
10324
+ (x.key === "Enter" || x.key === " " || x.key === "Spacebar") && (x.preventDefault(), x.stopPropagation(), t && t(this, p, r));
10325
10325
  }, D = V(
10326
10326
  S || "sps-nav__item",
10327
10327
  "sps-nav__link",
@@ -10998,41 +10998,41 @@ function xu(e) {
10998
10998
  }), h = { searchSelectedColumn: "" }, S = V(m.isVisible && "sps-button--open", c), { formMeta: y, formValue: w, updateForm: T } = zb(h);
10999
10999
  function D(M) {
11000
11000
  if (M.target.value) {
11001
- const L = [...m.pendingSelectedColumns], R = [];
11001
+ const O = [...m.pendingSelectedColumns], R = [];
11002
11002
  m.pendingUnselectedColumns.forEach((K) => {
11003
- M.target.value === K.name ? (T(h), L.push({
11003
+ M.target.value === K.name ? (T(h), O.push({
11004
11004
  columnId: ot(),
11005
11005
  name: K.name,
11006
11006
  value: K.value
11007
11007
  })) : R.push(K);
11008
11008
  }), f({
11009
- pendingSelectedColumns: L,
11009
+ pendingSelectedColumns: O,
11010
11010
  pendingUnselectedColumns: R
11011
11011
  });
11012
11012
  }
11013
11013
  }
11014
- function N(M) {
11015
- const L = [], R = [...m.pendingUnselectedColumns];
11014
+ function x(M) {
11015
+ const O = [], R = [...m.pendingUnselectedColumns];
11016
11016
  m.pendingSelectedColumns.forEach((K) => {
11017
11017
  M === K.value ? R.push({
11018
11018
  columnId: ot(),
11019
11019
  name: K.name,
11020
11020
  value: K.value
11021
- }) : L.push(K);
11021
+ }) : O.push(K);
11022
11022
  }), f({
11023
- pendingSelectedColumns: L,
11023
+ pendingSelectedColumns: O,
11024
11024
  pendingUnselectedColumns: R
11025
11025
  });
11026
11026
  }
11027
11027
  function k(M) {
11028
11028
  if (!M.destination)
11029
11029
  return;
11030
- const L = [...m.pendingSelectedColumns], [R] = L.splice(M.source.index, 1);
11031
- L.splice(M.destination.index, 0, R), f({ pendingSelectedColumns: L });
11030
+ const O = [...m.pendingSelectedColumns], [R] = O.splice(M.source.index, 1);
11031
+ O.splice(M.destination.index, 0, R), f({ pendingSelectedColumns: O });
11032
11032
  }
11033
11033
  function b() {
11034
- const M = m.pendingSelectedColumns.map((L) => {
11035
- const R = { ...L };
11034
+ const M = m.pendingSelectedColumns.map((O) => {
11035
+ const R = { ...O };
11036
11036
  return R.columnId && delete R.columnId, R;
11037
11037
  });
11038
11038
  T(h), f({
@@ -11047,10 +11047,10 @@ function xu(e) {
11047
11047
  pendingUnselectedColumns: [...m.unselectedColumns]
11048
11048
  });
11049
11049
  }
11050
- const O = s.useCallback(
11050
+ const L = s.useCallback(
11051
11051
  (M) => {
11052
- const L = new RegExp(M != null ? M : "", "i");
11053
- return o ? m.pendingUnselectedColumns.filter((R) => L.test(R.name)).map((R) => R.name).slice(0, o) : m.pendingUnselectedColumns.map((R) => R.name);
11052
+ const O = new RegExp(M != null ? M : "", "i");
11053
+ return o ? m.pendingUnselectedColumns.filter((R) => O.test(R.name)).map((R) => R.name).slice(0, o) : m.pendingUnselectedColumns.map((R) => R.name);
11054
11054
  },
11055
11055
  [m.pendingUnselectedColumns, o]
11056
11056
  );
@@ -11114,7 +11114,7 @@ function xu(e) {
11114
11114
  }, /* @__PURE__ */ s.createElement("div", {
11115
11115
  className: "sps-column-chooser__search-container"
11116
11116
  }, /* @__PURE__ */ s.createElement(Uo, {
11117
- suggestions: O,
11117
+ suggestions: L,
11118
11118
  disabled: Boolean(
11119
11119
  r && m.pendingSelectedColumns.length >= r
11120
11120
  ),
@@ -11133,14 +11133,14 @@ function xu(e) {
11133
11133
  }, (M) => /* @__PURE__ */ s.createElement("div", {
11134
11134
  ...M.droppableProps,
11135
11135
  ref: M.innerRef
11136
- }, m.pendingSelectedColumns.map((L, R) => /* @__PURE__ */ s.createElement(Ti, {
11136
+ }, m.pendingSelectedColumns.map((O, R) => /* @__PURE__ */ s.createElement(Ti, {
11137
11137
  index: R,
11138
- key: L.columnId,
11139
- columnId: L.columnId,
11140
- name: L.name,
11141
- value: L.value,
11142
- onDelete: N,
11143
- mandatory: L.mandatory
11138
+ key: O.columnId,
11139
+ columnId: O.columnId,
11140
+ name: O.name,
11141
+ value: O.value,
11142
+ onDelete: x,
11143
+ mandatory: O.mandatory
11144
11144
  })), M.placeholder)))));
11145
11145
  }
11146
11146
  Object.assign(xu, {
@@ -11306,11 +11306,11 @@ function Iu(e) {
11306
11306
  "data-testid": y,
11307
11307
  unsafelyReplaceClassName: w,
11308
11308
  ...T
11309
- } = e, { t: D } = s.useContext(Be), [N, k] = s.useState(m), b = typeof a == "boolean" ? a : N;
11309
+ } = e, { t: D } = s.useContext(Be), [x, k] = s.useState(m), b = typeof a == "boolean" ? a : x;
11310
11310
  function I(_) {
11311
11311
  _.stopPropagation(), b && (!o || o()) ? (k(!1), p && p()) : !b && (!l || l()) && (k(!0), u && u());
11312
11312
  }
11313
- const O = () => /* @__PURE__ */ s.createElement(vr, {
11313
+ const L = () => /* @__PURE__ */ s.createElement(vr, {
11314
11314
  checked: S,
11315
11315
  onChange: c
11316
11316
  }), M = () => /* @__PURE__ */ s.createElement("button", {
@@ -11320,7 +11320,7 @@ function Iu(e) {
11320
11320
  "aria-label": D(`design-system:contentRow.${b ? "collapse" : "expand"}`)
11321
11321
  }, /* @__PURE__ */ s.createElement(Ht, {
11322
11322
  icon: b ? je.MINUS_CIRCLE : je.PLUS_CIRCLE
11323
- })), L = V(
11323
+ })), O = V(
11324
11324
  w || "sps-content-row",
11325
11325
  b && "sps-content-row--expanded",
11326
11326
  f && "sps-content-row--card-spaced",
@@ -11332,7 +11332,7 @@ function Iu(e) {
11332
11332
  { type: wi }
11333
11333
  ]);
11334
11334
  return /* @__PURE__ */ s.createElement("div", {
11335
- className: L,
11335
+ className: O,
11336
11336
  "data-testid": y,
11337
11337
  ...T
11338
11338
  }, /* @__PURE__ */ s.createElement("div", {
@@ -11340,11 +11340,11 @@ function Iu(e) {
11340
11340
  "data-testid": `${y}__children`
11341
11341
  }, h && !t && /* @__PURE__ */ s.createElement(ar, {
11342
11342
  widthPx: 46
11343
- }, /* @__PURE__ */ s.createElement(O, null)), K && !t && /* @__PURE__ */ s.createElement(ar, {
11343
+ }, /* @__PURE__ */ s.createElement(L, null)), K && !t && /* @__PURE__ */ s.createElement(ar, {
11344
11344
  widthPx: 44
11345
11345
  }, /* @__PURE__ */ s.createElement(M, null)), K && h && t && /* @__PURE__ */ s.createElement(ar, {
11346
11346
  widthPx: 46
11347
- }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), R), K);
11347
+ }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(L, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), R), K);
11348
11348
  }
11349
11349
  Object.assign(Iu, {
11350
11350
  props: kD,
@@ -11919,14 +11919,14 @@ function Ci(e) {
11919
11919
  } = e, { t: h } = s.useContext(Be), [S, y] = s.useState(() => Vr(e)), [w, T] = s.useState(se.nextMonth({ ...S, date: 15 }));
11920
11920
  s.useEffect(() => {
11921
11921
  if (c && c[0] && c[1] && c[0].month !== S.month && c[0].month !== w.month && c[1].month !== S.month && c[1].month !== w.month) {
11922
- let x = Vr(e);
11923
- y(x), T(se.nextMonth({ month: x.month, date: 15, year: x.year }));
11922
+ let N = Vr(e);
11923
+ y(N), T(se.nextMonth({ month: N.month, date: 15, year: N.year }));
11924
11924
  } else if (c && c[0] && c[1] === null && c[0].month !== S.month && c[0].month !== w.month) {
11925
- let x = Vr(e);
11926
- y(x), T(se.nextMonth({ month: x.month, date: 15, year: x.year }));
11925
+ let N = Vr(e);
11926
+ y(N), T(se.nextMonth({ month: N.month, date: 15, year: N.year }));
11927
11927
  } else if (c && c[0] === null && c[1] && c[1].month !== S.month && c[1].month !== w.month) {
11928
- let x = Vr(e);
11929
- y(x), T(se.nextMonth({ month: x.month, date: 15, year: x.year }));
11928
+ let N = Vr(e);
11929
+ y(N), T(se.nextMonth({ month: N.month, date: 15, year: N.year }));
11930
11930
  }
11931
11931
  l && y(Vr(e));
11932
11932
  }, [
@@ -11934,49 +11934,49 @@ function Ci(e) {
11934
11934
  c,
11935
11935
  r
11936
11936
  ]);
11937
- const D = nd(S), N = td(S), k = nd(w), b = td(w), [I, O] = s.useState();
11937
+ const D = nd(S), x = td(S), k = nd(w), b = td(w), [I, L] = s.useState();
11938
11938
  function M() {
11939
11939
  y(se.prevMonth({ ...S, date: 15 })), u && T(se.prevMonth({ ...w, date: 15 }));
11940
11940
  }
11941
- function L() {
11941
+ function O() {
11942
11942
  y(se.nextMonth({ ...S, date: 15 })), u && T(se.nextMonth({ ...w, date: 15 }));
11943
11943
  }
11944
- function R(x) {
11945
- x.target && x.target.classList.contains(`${at}-day`) ? u && x.target.classList.contains(`${w.month}`) ? O({
11944
+ function R(N) {
11945
+ N.target && N.target.classList.contains(`${at}-day`) ? u && N.target.classList.contains(`${w.month}`) ? L({
11946
11946
  ...w,
11947
- date: Number(x.target.textContent)
11948
- }) : O({
11947
+ date: Number(N.target.textContent)
11948
+ }) : L({
11949
11949
  ...S,
11950
- date: Number(x.target.textContent)
11951
- }) : (!x.target || !x.target.classList.contains(`${at}-row`)) && O(void 0);
11950
+ date: Number(N.target.textContent)
11951
+ }) : (!N.target || !N.target.classList.contains(`${at}-row`)) && L(void 0);
11952
11952
  }
11953
- function K(x) {
11953
+ function K(N) {
11954
11954
  const A = `${at}-day`;
11955
11955
  return V(
11956
11956
  `${at}-cell`,
11957
- x && S && x.month === S.month && A,
11958
- u && x.month === w.month && A,
11959
- (se.isSameDate(x, l) && se.isInRange(x, [a, r]) !== !1 || c && se.isSameDate(x, c[0]) || se.isInRange(x, c)) && `${A}--selected`,
11960
- se.isInRange(x, [a, r]) === !1 && `${A}--disabled`,
11961
- c && c[1] && se.isSameDate(x, c[0]) && !se.isSameDate(x, c[1]) && `${A}--selection-start`,
11962
- se.isInRange(x, c, !1) && `${A}--selection-middle`,
11963
- c && se.isSameDate(x, c[1]) && !se.isSameDate(x, c[0]) && `${A}--selection-end`,
11957
+ N && S && N.month === S.month && A,
11958
+ u && N.month === w.month && A,
11959
+ (se.isSameDate(N, l) && se.isInRange(N, [a, r]) !== !1 || c && se.isSameDate(N, c[0]) || se.isInRange(N, c)) && `${A}--selected`,
11960
+ se.isInRange(N, [a, r]) === !1 && `${A}--disabled`,
11961
+ c && c[1] && se.isSameDate(N, c[0]) && !se.isSameDate(N, c[1]) && `${A}--selection-start`,
11962
+ se.isInRange(N, c, !1) && `${A}--selection-middle`,
11963
+ c && se.isSameDate(N, c[1]) && !se.isSameDate(N, c[0]) && `${A}--selection-end`,
11964
11964
  c && c[0] && !c[1] && (!a && !r || se.isInRange(
11965
11965
  I,
11966
11966
  [a, r]
11967
- )) && se.isInRange(x, [c[0], I], !1) && `${A}--pending-selection`,
11967
+ )) && se.isInRange(N, [c[0], I], !1) && `${A}--pending-selection`,
11968
11968
  p && p === "After" && c && c[0] && c[1] === null && (!a && !r || se.isInRange(
11969
- x,
11969
+ N,
11970
11970
  [c[0], r]
11971
- )) && se.isInRange(x, [c[0], { month: 12, date: 31, year: 3e3 }], !1) && `${A}--selected`,
11971
+ )) && se.isInRange(N, [c[0], { month: 12, date: 31, year: 3e3 }], !1) && `${A}--selected`,
11972
11972
  p && p === "Before" && c && c[0] === null && c[1] && (!a && !r || se.isInRange(
11973
- x,
11973
+ N,
11974
11974
  [a, c[1]]
11975
- )) && se.isInRange(x, [{ month: 1, date: 1, year: 1900 }, c[1]]) && `${A}--selected`
11975
+ )) && se.isInRange(N, [{ month: 1, date: 1, year: 1900 }, c[1]]) && `${A}--selected`
11976
11976
  );
11977
11977
  }
11978
- function _(x) {
11979
- x && S && x.month === S.month && se.isInRange(x, [a, r]) !== !1 && o(x), x && u && w && x.month === w.month && se.isInRange(x, [a, r]) !== !1 && o(x);
11978
+ function _(N) {
11979
+ N && S && N.month === S.month && se.isInRange(N, [a, r]) !== !1 && o(N), N && u && w && N.month === w.month && se.isInRange(N, [a, r]) !== !1 && o(N);
11980
11980
  }
11981
11981
  const $ = V(
11982
11982
  at,
@@ -12012,20 +12012,20 @@ function Ci(e) {
12012
12012
  disabled: se.isSameMonth(S, r),
12013
12013
  title: h("design-system:datepicker.calendar.nextMonth"),
12014
12014
  className: "sps-datepicker__button sps-datepicker__button-next-month",
12015
- onClick: L
12015
+ onClick: O
12016
12016
  }, /* @__PURE__ */ s.createElement("i", {
12017
12017
  className: "sps-icon sps-icon-chevron-right"
12018
12018
  }))), /* @__PURE__ */ s.createElement("div", {
12019
12019
  className: `${at}-body`
12020
12020
  }, /* @__PURE__ */ s.createElement("div", {
12021
12021
  className: "sps-datepicker__calendar-row"
12022
- }, rd.weekdaysShort().map((x) => /* @__PURE__ */ s.createElement("div", {
12023
- key: x,
12022
+ }, rd.weekdaysShort().map((N) => /* @__PURE__ */ s.createElement("div", {
12023
+ key: N,
12024
12024
  className: "sps-datepicker__calendar-header-cell"
12025
- }, x))), N.map((x, A) => /* @__PURE__ */ s.createElement("div", {
12025
+ }, N))), x.map((N, A) => /* @__PURE__ */ s.createElement("div", {
12026
12026
  key: A,
12027
12027
  className: "sps-datepicker__calendar-row"
12028
- }, x.map((Q, q) => /* @__PURE__ */ s.createElement("div", {
12028
+ }, N.map((Q, q) => /* @__PURE__ */ s.createElement("div", {
12029
12029
  key: q,
12030
12030
  className: K(Q),
12031
12031
  onClick: () => _(Q),
@@ -12050,20 +12050,20 @@ function Ci(e) {
12050
12050
  disabled: se.isSameMonth(w, r),
12051
12051
  title: h("design-system:datepicker.calendar.nextMonth"),
12052
12052
  className: "sps-datepicker__button sps-datepicker__button-next-month",
12053
- onClick: L
12053
+ onClick: O
12054
12054
  }, /* @__PURE__ */ s.createElement("i", {
12055
12055
  className: "sps-icon sps-icon-chevron-right"
12056
12056
  }))), /* @__PURE__ */ s.createElement("div", {
12057
12057
  className: `${at}-body`
12058
12058
  }, /* @__PURE__ */ s.createElement("div", {
12059
12059
  className: "sps-datepicker__calendar-row"
12060
- }, rd.weekdaysShort().map((x) => /* @__PURE__ */ s.createElement("div", {
12061
- key: x,
12060
+ }, rd.weekdaysShort().map((N) => /* @__PURE__ */ s.createElement("div", {
12061
+ key: N,
12062
12062
  className: "sps-datepicker__calendar-header-cell"
12063
- }, x))), b.map((x, A) => /* @__PURE__ */ s.createElement("div", {
12063
+ }, N))), b.map((N, A) => /* @__PURE__ */ s.createElement("div", {
12064
12064
  key: A,
12065
12065
  className: "sps-datepicker__calendar-row"
12066
- }, x.map((Q, q) => /* @__PURE__ */ s.createElement("div", {
12066
+ }, N.map((Q, q) => /* @__PURE__ */ s.createElement("div", {
12067
12067
  key: q,
12068
12068
  className: V(K(Q), `${w.month.toString()}`),
12069
12069
  onClick: () => _(Q),
@@ -12127,7 +12127,7 @@ function ku({
12127
12127
  const { wrapperId: f, controlId: h } = wt(a, r), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), [T, D] = s.useState(
12128
12128
  se.toString(p)
12129
12129
  ), {
12130
- showPopup: N,
12130
+ showPopup: x,
12131
12131
  doShowPopup: k
12132
12132
  } = ca(S, y);
12133
12133
  function b(R) {
@@ -12136,7 +12136,7 @@ function ku({
12136
12136
  function I(R) {
12137
12137
  b(R), D(se.toString(R)), w && w.current && w.current.focus();
12138
12138
  }
12139
- function O(R) {
12139
+ function L(R) {
12140
12140
  D(R.target.value);
12141
12141
  const K = se.createFrom(R.target.value);
12142
12142
  b(K);
@@ -12144,17 +12144,17 @@ function ku({
12144
12144
  function M() {
12145
12145
  D(""), b();
12146
12146
  }
12147
- const L = V(
12147
+ const O = V(
12148
12148
  ad,
12149
12149
  "sps-text-input",
12150
- N && `${ad}--open`,
12150
+ x && `${ad}--open`,
12151
12151
  t
12152
12152
  );
12153
12153
  return s.useEffect(() => {
12154
12154
  (!p || se.isValid(p)) && D(se.toString(p));
12155
12155
  }, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
12156
12156
  id: f,
12157
- className: L,
12157
+ className: O,
12158
12158
  formMeta: r,
12159
12159
  inputRef: w,
12160
12160
  focusInputOnClick: !0,
@@ -12169,7 +12169,7 @@ function ku({
12169
12169
  className: "sps-text-input__input",
12170
12170
  id: h,
12171
12171
  placeholder: la,
12172
- onChange: O,
12172
+ onChange: L,
12173
12173
  onClick: k,
12174
12174
  onFocus: k,
12175
12175
  value: T,
@@ -12180,7 +12180,7 @@ function ku({
12180
12180
  className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
12181
12181
  onClick: M
12182
12182
  }))), /* @__PURE__ */ s.createElement(Di, {
12183
- isOpen: N,
12183
+ isOpen: x,
12184
12184
  attachTo: S,
12185
12185
  ref: y
12186
12186
  }, /* @__PURE__ */ s.createElement(Ci, {
@@ -12344,28 +12344,28 @@ function Mu({
12344
12344
  "data-testid": f,
12345
12345
  ...h
12346
12346
  }) {
12347
- const { t: S } = s.useContext(Be), { wrapperId: y, controlId: w } = wt(a, r), T = s.useRef(null), D = s.useRef(null), N = s.useRef(null), [k, b] = s.useState(
12347
+ const { t: S } = s.useContext(Be), { wrapperId: y, controlId: w } = wt(a, r), T = s.useRef(null), D = s.useRef(null), x = s.useRef(null), [k, b] = s.useState(
12348
12348
  Array.isArray(u) ? se.toStringRange(u) : ""
12349
- ), [I, O] = s.useState(null), [M, L] = s.useState(), {
12349
+ ), [I, L] = s.useState(null), [M, O] = s.useState(), {
12350
12350
  showPopup: R,
12351
12351
  doShowPopup: K,
12352
12352
  doHidePopup: _
12353
- } = ca(T, N);
12353
+ } = ca(T, x);
12354
12354
  function $(F) {
12355
12355
  r && (r.setValue(F), r.markAsDirty()), c && c(F);
12356
12356
  }
12357
- function x(F) {
12357
+ function N(F) {
12358
12358
  const z = u || [];
12359
12359
  let j;
12360
- !z[0] || z[1] || se.isBefore(F, z[0]) ? j = [F, null] : (j = [z[0], F], _(!0), D && D.current && D.current.focus()), I && J(I) === "Before" && z[0] === null && z[1] === null && (j = [null, F], _(!0), D && D.current && D.current.focus()), I && J(I) === "After" && (_(!0), D && D.current && D.current.focus()), $(j), b(se.toStringRange(j)), L(void 0), (I && J(I) === "Before" && j && j[0] !== null || I && J(I) !== "Before" && J(I) !== "After") && O(null);
12360
+ !z[0] || z[1] || se.isBefore(F, z[0]) ? j = [F, null] : (j = [z[0], F], _(!0), D && D.current && D.current.focus()), I && J(I) === "Before" && z[0] === null && z[1] === null && (j = [null, F], _(!0), D && D.current && D.current.focus()), I && J(I) === "After" && (_(!0), D && D.current && D.current.focus()), $(j), b(se.toStringRange(j)), O(void 0), (I && J(I) === "Before" && j && j[0] !== null || I && J(I) !== "Before" && J(I) !== "After") && L(null);
12361
12361
  }
12362
12362
  function A(F) {
12363
12363
  b(F.target.value);
12364
12364
  const z = se.createRangeFrom(F.target.value);
12365
- $(z), L(void 0);
12365
+ $(z), O(void 0);
12366
12366
  }
12367
12367
  function Q() {
12368
- b(""), $(), L(void 0), O(null);
12368
+ b(""), $(), O(void 0), L(null);
12369
12369
  }
12370
12370
  function q(F) {
12371
12371
  switch (F.key) {
@@ -12379,10 +12379,10 @@ function Mu({
12379
12379
  }
12380
12380
  function W(F) {
12381
12381
  if (!F) {
12382
- O(null), $(void 0);
12382
+ L(null), $(void 0);
12383
12383
  return;
12384
12384
  }
12385
- O(F);
12385
+ L(F);
12386
12386
  const z = se.createRangeFromPreset(F);
12387
12387
  if (F && J(F) === "Before")
12388
12388
  if (u && u[0] && u[1]) {
@@ -12410,10 +12410,10 @@ function Mu({
12410
12410
  se.createRangeFromPreset(j)
12411
12411
  )
12412
12412
  );
12413
- z ? W(z) : u[0] === null || u[1] === null || O(null);
12413
+ z ? W(z) : u[0] === null || u[1] === null || L(null);
12414
12414
  }
12415
12415
  }, [u]), s.useEffect(() => {
12416
- u ? Array.isArray(u) && !I ? (u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)), L(void 0)) : Array.isArray(u) && I && J(I) === "Before" ? u && u[0] && u[1] ? O(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && J(I) === "After" ? u && u[0] && u[1] ? O(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && b("") : Q();
12416
+ u ? Array.isArray(u) && !I ? (u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)), O(void 0)) : Array.isArray(u) && I && J(I) === "Before" ? u && u[0] && u[1] ? L(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && J(I) === "After" ? u && u[0] && u[1] ? L(null) : u.every((F) => se.isValid(F) || F === null) && b(se.toStringRange(u)) : Array.isArray(u) && I && b("") : Q();
12417
12417
  }, [u, I]);
12418
12418
  function J(F) {
12419
12419
  return F && /^design-system:/.test(F.label) ? S(F.label) : F.label;
@@ -12460,7 +12460,7 @@ function Mu({
12460
12460
  }))), /* @__PURE__ */ s.createElement(Di, {
12461
12461
  isOpen: R,
12462
12462
  attachTo: T,
12463
- ref: N
12463
+ ref: x
12464
12464
  }, /* @__PURE__ */ s.createElement("div", {
12465
12465
  className: "sps-datepicker__presets"
12466
12466
  }, /* @__PURE__ */ s.createElement("fieldset", null, /* @__PURE__ */ s.createElement("legend", {
@@ -12495,7 +12495,7 @@ function Mu({
12495
12495
  }, J(F)))))), /* @__PURE__ */ s.createElement(Ci, {
12496
12496
  "data-testid": `${f}_calendar`,
12497
12497
  selectedRange: Array.isArray(u) ? u : M,
12498
- onNewSelection: x,
12498
+ onNewSelection: N,
12499
12499
  minDate: l,
12500
12500
  maxDate: o,
12501
12501
  showTwoMonths: m,
@@ -12769,7 +12769,7 @@ function an() {
12769
12769
  return !0;
12770
12770
  return !1;
12771
12771
  };
12772
- function N(i) {
12772
+ function x(i) {
12773
12773
  if (i._isValid == null) {
12774
12774
  var d = T(i), g = D.call(d.parsedDateParts, function(C) {
12775
12775
  return C != null;
@@ -12786,7 +12786,7 @@ function an() {
12786
12786
  return i != null ? S(T(d), i) : T(d).userInvalidated = !0, d;
12787
12787
  }
12788
12788
  var b = r.momentProperties = [], I = !1;
12789
- function O(i, d) {
12789
+ function L(i, d) {
12790
12790
  var g, v, C;
12791
12791
  if (u(d._isAMomentObject) || (i._isAMomentObject = d._isAMomentObject), u(d._i) || (i._i = d._i), u(d._f) || (i._f = d._f), u(d._l) || (i._l = d._l), u(d._strict) || (i._strict = d._strict), u(d._tzm) || (i._tzm = d._tzm), u(d._isUTC) || (i._isUTC = d._isUTC), u(d._offset) || (i._offset = d._offset), u(d._pf) || (i._pf = T(d)), u(d._locale) || (i._locale = d._locale), b.length > 0)
12792
12792
  for (g = 0; g < b.length; g++)
@@ -12794,9 +12794,9 @@ function an() {
12794
12794
  return i;
12795
12795
  }
12796
12796
  function M(i) {
12797
- O(this, i), this._d = new Date(i._d != null ? i._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), I === !1 && (I = !0, r.updateOffset(this), I = !1);
12797
+ L(this, i), this._d = new Date(i._d != null ? i._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), I === !1 && (I = !0, r.updateOffset(this), I = !1);
12798
12798
  }
12799
- function L(i) {
12799
+ function O(i) {
12800
12800
  return i instanceof M || i != null && i._isAMomentObject != null;
12801
12801
  }
12802
12802
  function R(i) {
@@ -12832,13 +12832,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12832
12832
  r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (R(d), _[i] = !0);
12833
12833
  }
12834
12834
  r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
12835
- function x(i) {
12835
+ function N(i) {
12836
12836
  return typeof Function < "u" && i instanceof Function || Object.prototype.toString.call(i) === "[object Function]";
12837
12837
  }
12838
12838
  function A(i) {
12839
12839
  var d, g;
12840
12840
  for (g in i)
12841
- c(i, g) && (d = i[g], x(d) ? this[g] = d : this["_" + g] = d);
12841
+ c(i, g) && (d = i[g], N(d) ? this[g] = d : this["_" + g] = d);
12842
12842
  this._config = i, this._dayOfMonthOrdinalParseLenient = new RegExp(
12843
12843
  (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
12844
12844
  );
@@ -12871,7 +12871,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12871
12871
  };
12872
12872
  function H(i, d, g) {
12873
12873
  var v = this._calendar[i] || this._calendar.sameElse;
12874
- return x(v) ? v.call(d, g) : v;
12874
+ return N(v) ? v.call(d, g) : v;
12875
12875
  }
12876
12876
  function F(i, d, g) {
12877
12877
  var v = "" + Math.abs(i), C = d - v.length, P = i >= 0;
@@ -12901,7 +12901,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12901
12901
  return function(C) {
12902
12902
  var P = "", U;
12903
12903
  for (U = 0; U < v; U++)
12904
- P += x(d[U]) ? d[U].call(C, i) : d[U];
12904
+ P += N(d[U]) ? d[U].call(C, i) : d[U];
12905
12905
  return P;
12906
12906
  };
12907
12907
  }
@@ -12962,11 +12962,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12962
12962
  };
12963
12963
  function ge(i, d, g, v) {
12964
12964
  var C = this._relativeTime[g];
12965
- return x(C) ? C(i, d, g, v) : C.replace(/%d/i, i);
12965
+ return N(C) ? C(i, d, g, v) : C.replace(/%d/i, i);
12966
12966
  }
12967
12967
  function Ae(i, d) {
12968
12968
  var g = this._relativeTime[i > 0 ? "future" : "past"];
12969
- return x(g) ? g(d) : g.replace(/%s/i, d);
12969
+ return N(g) ? g(d) : g.replace(/%s/i, d);
12970
12970
  }
12971
12971
  var Ye = {};
12972
12972
  function de(i, d) {
@@ -13020,7 +13020,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13020
13020
  )) : i._d["set" + (i._isUTC ? "UTC" : "") + d](g));
13021
13021
  }
13022
13022
  function Dr(i) {
13023
- return i = Ne(i), x(this[i]) ? this[i]() : this;
13023
+ return i = Ne(i), N(this[i]) ? this[i]() : this;
13024
13024
  }
13025
13025
  function ya(i, d) {
13026
13026
  if (typeof i == "object") {
@@ -13028,14 +13028,14 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13028
13028
  var g = ls(i), v;
13029
13029
  for (v = 0; v < g.length; v++)
13030
13030
  this[g[v].unit](i[g[v].unit]);
13031
- } else if (i = Ne(i), x(this[i]))
13031
+ } else if (i = Ne(i), N(this[i]))
13032
13032
  return this[i](d);
13033
13033
  return this;
13034
13034
  }
13035
13035
  var cs = /\d/, nt = /\d\d/, Nr = /\d{3}/, xr = /\d{4}/, he = /[+-]?\d{6}/, ce = /\d\d?/, rt = /\d\d\d\d?/, yn = /\d\d\d\d\d\d?/, En = /\d{1,3}/, Ir = /\d{1,4}/, ds = /[+-]?\d{1,6}/, Vn = /\d+/, ps = /[+-]?\d+/, sf = /Z|[+-]\d\d:?\d\d/gi, us = /Z|[+-]\d\d(?::?\d\d)?/gi, af = /[+-]?\d+(\.\d{1,3})?/, kr = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, ms;
13036
13036
  ms = {};
13037
13037
  function ie(i, d, g) {
13038
- ms[i] = x(d) ? d : function(v, C) {
13038
+ ms[i] = N(d) ? d : function(v, C) {
13039
13039
  return v && g ? g : d;
13040
13040
  };
13041
13041
  }
@@ -13761,7 +13761,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13761
13761
  return;
13762
13762
  }
13763
13763
  for (C = 0; C < i._f.length; C++)
13764
- P = 0, U = !1, d = O({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), N(d) && (U = !0), P += T(d).charsLeftOver, P += T(d).unusedTokens.length * 10, T(d).score = P, fe ? P < v && (v = P, g = d) : (v == null || P < v || U) && (v = P, g = d, U && (fe = !0));
13764
+ P = 0, U = !1, d = L({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), x(d) && (U = !0), P += T(d).charsLeftOver, P += T(d).unusedTokens.length * 10, T(d).score = P, fe ? P < v && (v = P, g = d) : (v == null || P < v || U) && (v = P, g = d, U && (fe = !0));
13765
13765
  S(i, g || d);
13766
13766
  }
13767
13767
  function yh(i) {
@@ -13781,7 +13781,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13781
13781
  }
13782
13782
  function bl(i) {
13783
13783
  var d = i._i, g = i._f;
13784
- return i._locale = i._locale || jt(i._l), d === null || g === void 0 && d === "" ? k({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)), L(d) ? new M(Na(d)) : (f(d) ? i._d = d : o(g) ? vh(i) : g ? ka(i) : Th(i), N(i) || (i._d = null), i));
13784
+ return i._locale = i._locale || jt(i._l), d === null || g === void 0 && d === "" ? k({ nullInput: !0 }) : (typeof d == "string" && (i._i = d = i._locale.preparse(d)), O(d) ? new M(Na(d)) : (f(d) ? i._d = d : o(g) ? vh(i) : g ? ka(i) : Th(i), x(i) || (i._d = null), i));
13785
13785
  }
13786
13786
  function Th(i) {
13787
13787
  var d = i._i;
@@ -13889,7 +13889,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13889
13889
  }
13890
13890
  function La(i, d) {
13891
13891
  var g, v;
13892
- return d._isUTC ? (g = d.clone(), v = (L(i) || f(i) ? i.valueOf() : Pe(i).valueOf()) - g.valueOf(), g._d.setTime(g._d.valueOf() + v), r.updateOffset(g, !1), g) : Pe(i).local();
13892
+ return d._isUTC ? (g = d.clone(), v = (O(i) || f(i) ? i.valueOf() : Pe(i).valueOf()) - g.valueOf(), g._d.setTime(g._d.valueOf() + v), r.updateOffset(g, !1), g) : Pe(i).local();
13893
13893
  }
13894
13894
  function Oa(i) {
13895
13895
  return -Math.round(i._d.getTimezoneOffset());
@@ -13943,7 +13943,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13943
13943
  if (!u(this._isDSTShifted))
13944
13944
  return this._isDSTShifted;
13945
13945
  var i = {}, d;
13946
- return O(i, this), i = bl(i), i._a ? (d = i._isUTC ? y(i._a) : Pe(i._a), this._isDSTShifted = this.isValid() && _h(i._a, d.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
13946
+ return L(i, this), i = bl(i), i._a ? (d = i._isUTC ? y(i._a) : Pe(i._a), this._isDSTShifted = this.isValid() && _h(i._a, d.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
13947
13947
  }
13948
13948
  function Kh() {
13949
13949
  return this.isValid() ? !this._isUTC : !1;
@@ -14012,7 +14012,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14012
14012
  return typeof i == "string" || i instanceof String;
14013
14013
  }
14014
14014
  function zh(i) {
14015
- return L(i) || f(i) || Nl(i) || m(i) || Jh(i) || qh(i) || i === null || i === void 0;
14015
+ return O(i) || f(i) || Nl(i) || m(i) || Jh(i) || qh(i) || i === null || i === void 0;
14016
14016
  }
14017
14017
  function qh(i) {
14018
14018
  var d = l(i) && !p(i), g = !1, v = [
@@ -14070,7 +14070,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14070
14070
  }
14071
14071
  function Qh(i, d) {
14072
14072
  arguments.length === 1 && (arguments[0] ? zh(arguments[0]) ? (i = arguments[0], d = void 0) : Zh(arguments[0]) && (d = arguments[0], i = void 0) : (i = void 0, d = void 0));
14073
- var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse", P = d && (x(d[C]) ? d[C].call(this, g) : d[C]);
14073
+ var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse", P = d && (N(d[C]) ? d[C].call(this, g) : d[C]);
14074
14074
  return this.format(
14075
14075
  P || this.localeData().calendar(C, this, Pe(g))
14076
14076
  );
@@ -14079,19 +14079,19 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14079
14079
  return new M(this);
14080
14080
  }
14081
14081
  function tg(i, d) {
14082
- var g = L(i) ? i : Pe(i);
14082
+ var g = O(i) ? i : Pe(i);
14083
14083
  return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() > g.valueOf() : g.valueOf() < this.clone().startOf(d).valueOf()) : !1;
14084
14084
  }
14085
14085
  function ng(i, d) {
14086
- var g = L(i) ? i : Pe(i);
14086
+ var g = O(i) ? i : Pe(i);
14087
14087
  return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() < g.valueOf() : this.clone().endOf(d).valueOf() < g.valueOf()) : !1;
14088
14088
  }
14089
14089
  function rg(i, d, g, v) {
14090
- var C = L(i) ? i : Pe(i), P = L(d) ? d : Pe(d);
14090
+ var C = O(i) ? i : Pe(i), P = O(d) ? d : Pe(d);
14091
14091
  return this.isValid() && C.isValid() && P.isValid() ? (v = v || "()", (v[0] === "(" ? this.isAfter(C, g) : !this.isBefore(C, g)) && (v[1] === ")" ? this.isBefore(P, g) : !this.isAfter(P, g))) : !1;
14092
14092
  }
14093
14093
  function sg(i, d) {
14094
- var g = L(i) ? i : Pe(i), v;
14094
+ var g = O(i) ? i : Pe(i), v;
14095
14095
  return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() === g.valueOf() : (v = g.valueOf(), this.clone().startOf(d).valueOf() <= v && v <= this.clone().endOf(d).valueOf())) : !1;
14096
14096
  }
14097
14097
  function ag(i, d) {
@@ -14153,7 +14153,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14153
14153
  return g.year() < 0 || g.year() > 9999 ? le(
14154
14154
  g,
14155
14155
  d ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
14156
- ) : x(Date.prototype.toISOString) ? d ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", le(g, "Z")) : le(
14156
+ ) : N(Date.prototype.toISOString) ? d ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", le(g, "Z")) : le(
14157
14157
  g,
14158
14158
  d ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
14159
14159
  );
@@ -14170,13 +14170,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14170
14170
  return this.localeData().postformat(d);
14171
14171
  }
14172
14172
  function ug(i, d) {
14173
- return this.isValid() && (L(i) && i.isValid() || Pe(i).isValid()) ? xt({ to: this, from: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
14173
+ return this.isValid() && (O(i) && i.isValid() || Pe(i).isValid()) ? xt({ to: this, from: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
14174
14174
  }
14175
14175
  function mg(i) {
14176
14176
  return this.from(Pe(), i);
14177
14177
  }
14178
14178
  function fg(i, d) {
14179
- return this.isValid() && (L(i) && i.isValid() || Pe(i).isValid()) ? xt({ from: this, to: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
14179
+ return this.isValid() && (O(i) && i.isValid() || Pe(i).isValid()) ? xt({ from: this, to: i }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
14180
14180
  }
14181
14181
  function hg(i) {
14182
14182
  return this.to(Pe(), i);
@@ -14343,7 +14343,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14343
14343
  return this.isValid() ? this.toISOString() : null;
14344
14344
  }
14345
14345
  function Cg() {
14346
- return N(this);
14346
+ return x(this);
14347
14347
  }
14348
14348
  function Dg() {
14349
14349
  return S({}, T(this));
@@ -14811,7 +14811,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14811
14811
  g._d = new Date(Se(i));
14812
14812
  });
14813
14813
  //! moment.js
14814
- return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment = L, r.weekdays = aS, r.parseZone = nS, r.localeData = jt, r.isDuration = vs, r.monthsShort = sS, r.weekdaysMin = iS, r.defineLocale = Da, r.updateLocale = nh, r.locales = rh, r.weekdaysShort = oS, r.normalizeUnits = Ne, r.relativeTimeRounding = PS, r.relativeTimeThreshold = BS, r.calendarFormat = Xh, r.prototype = Z, r.HTML5_FMT = {
14814
+ return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment = O, r.weekdays = aS, r.parseZone = nS, r.localeData = jt, r.isDuration = vs, r.monthsShort = sS, r.weekdaysMin = iS, r.defineLocale = Da, r.updateLocale = nh, r.locales = rh, r.weekdaysShort = oS, r.normalizeUnits = Ne, r.relativeTimeRounding = PS, r.relativeTimeThreshold = BS, r.calendarFormat = Xh, r.prototype = Z, r.HTML5_FMT = {
14815
14815
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
14816
14816
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
14817
14817
  DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
@@ -15764,26 +15764,26 @@ function Lt({
15764
15764
  instanceKey: Symbol("ds-react:tooltip:instance-key"),
15765
15765
  prevIsShown: o,
15766
15766
  hideTimer: null
15767
- }), [T, D] = s.useState(!1), N = s.useRef(null), k = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, b = s.useRef(null), I = s.useCallback(() => {
15767
+ }), [T, D] = s.useState(!1), x = s.useRef(null), k = typeof n == "string" ? s.useRef(document.getElementById(n)) : n, b = s.useRef(null), I = s.useCallback(() => {
15768
15768
  w.current.hideTimer && (window.clearTimeout(w.current.hideTimer), w.current.hideTimer = null);
15769
- }, []), O = s.useCallback(() => {
15769
+ }, []), L = s.useCallback(() => {
15770
15770
  I(), D(!1);
15771
15771
  }, []), M = s.useCallback((J = !1) => {
15772
15772
  var H;
15773
15773
  if (J === !0 && xn.size > 0)
15774
15774
  return p && p(), !1;
15775
- if (((H = N.current) == null ? void 0 : H.textContent) === "")
15775
+ if (((H = x.current) == null ? void 0 : H.textContent) === "")
15776
15776
  return console.warn("SpsTooltip is empty; aborting show"), !1;
15777
15777
  I();
15778
15778
  for (const F of xn.values())
15779
15779
  F();
15780
15780
  return D(!0), !0;
15781
- }, []), L = s.useCallback((J) => {
15782
- J && J.stopPropagation(), D((H) => H ? (O(), !1) : M());
15781
+ }, []), O = s.useCallback((J) => {
15782
+ J && J.stopPropagation(), D((H) => H ? (L(), !1) : M());
15783
15783
  }, []), R = s.useCallback((J) => {
15784
- N.current && !N.current.contains(J.target) && O();
15784
+ x.current && !x.current.contains(J.target) && L();
15785
15785
  }, []), K = s.useCallback(() => {
15786
- I(), w.current.hideTimer = window.setTimeout(O, a);
15786
+ I(), w.current.hideTimer = window.setTimeout(L, a);
15787
15787
  }, []), _ = s.useCallback((J) => {
15788
15788
  var G, oe, ne, le, ee, Te;
15789
15789
  const [H, F] = J.split(" "), z = (G = k == null ? void 0 : k.current) == null ? void 0 : G.getBoundingClientRect(), j = b.current ? parseInt(((oe = getComputedStyle(b.current)) == null ? void 0 : oe.width) || "0", 10) : 0, te = j * Math.sqrt(2), X = (te - j) / 2;
@@ -15801,7 +15801,7 @@ function Lt({
15801
15801
  return 0;
15802
15802
  }, []);
15803
15803
  s.useEffect(() => {
15804
- if (typeof n == "string" && (k.current = document.getElementById(n)), T ? xn.set(w.current.instanceKey, O) : xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), f === it.MANUAL) {
15804
+ if (typeof n == "string" && (k.current = document.getElementById(n)), T ? xn.set(w.current.instanceKey, L) : xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), f === it.MANUAL) {
15805
15805
  if (o !== w.current.prevIsShown)
15806
15806
  switch (o) {
15807
15807
  case "visible":
@@ -15811,7 +15811,7 @@ function Lt({
15811
15811
  M(!0);
15812
15812
  break;
15813
15813
  case "hidden":
15814
- O();
15814
+ L();
15815
15815
  break;
15816
15816
  case "delayed_hidden":
15817
15817
  K();
@@ -15826,36 +15826,36 @@ function Lt({
15826
15826
  k.current.addEventListener("mouseenter", M), k.current.addEventListener("mouseleave", K);
15827
15827
  break;
15828
15828
  case it.CLICK:
15829
- k.current.addEventListener("click", L), document.addEventListener("click", R);
15829
+ k.current.addEventListener("click", O), document.addEventListener("click", R);
15830
15830
  break;
15831
15831
  case it.MANUAL:
15832
15832
  break;
15833
15833
  }
15834
15834
  }, [k]), s.useEffect(() => {
15835
15835
  var J;
15836
- ((J = N.current) == null ? void 0 : J.textContent) === "" && T && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), D(!1));
15836
+ ((J = x.current) == null ? void 0 : J.textContent) === "" && T && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), D(!1));
15837
15837
  }, [e, T]), s.useEffect(
15838
15838
  () => () => {
15839
- xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", L), document.removeEventListener("click", R));
15839
+ xn.has(w.current.instanceKey) && xn.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", O), document.removeEventListener("click", R));
15840
15840
  },
15841
15841
  []
15842
15842
  );
15843
- const $ = Qr("sps-tooltip-portal"), x = s.useContext(Ot), [[A, Q], q] = s.useState([{}, !1]);
15843
+ const $ = Qr("sps-tooltip-portal"), N = s.useContext(Ot), [[A, Q], q] = s.useState([{}, !1]);
15844
15844
  s.useEffect(() => {
15845
- q(T ? ur(N, k, u, {
15845
+ q(T ? ur(x, k, u, {
15846
15846
  altPosition: m,
15847
15847
  setMinWidth: !1,
15848
15848
  offsets: [c[0] - cd, c[1] + _(u)],
15849
- ...x
15849
+ ...N
15850
15850
  }) : [{}, !1]);
15851
15851
  }, [T, u, m, c[0], c[1], e]), s.useEffect(() => {
15852
15852
  const J = () => {
15853
15853
  T && q(
15854
- ur(N, k, u, {
15854
+ ur(x, k, u, {
15855
15855
  altPosition: m,
15856
15856
  setMinWidth: !1,
15857
15857
  offsets: [c[0] - cd, c[1] + _(u)],
15858
- ...x
15858
+ ...N
15859
15859
  })
15860
15860
  );
15861
15861
  };
@@ -15876,7 +15876,7 @@ function Lt({
15876
15876
  role: "tooltip",
15877
15877
  className: W,
15878
15878
  "data-testid": r,
15879
- ref: N,
15879
+ ref: x,
15880
15880
  style: { ...h, ...A },
15881
15881
  onMouseEnter: f === it.MOUSEOVER ? I : void 0,
15882
15882
  onMouseLeave: f === it.MOUSEOVER ? K : void 0
@@ -15921,7 +15921,7 @@ function Ii(e) {
15921
15921
  function y() {
15922
15922
  return l && !l.isPristine() && !l.isValid();
15923
15923
  }
15924
- const [w, T] = s.useState(), [D, N] = s.useState(ye.HIDDEN);
15924
+ const [w, T] = s.useState(), [D, x] = s.useState(ye.HIDDEN);
15925
15925
  s.useEffect(() => {
15926
15926
  T(
15927
15927
  y() || S() ? $t.ERROR : $t.HELP
@@ -15929,11 +15929,11 @@ function Ii(e) {
15929
15929
  }), s.useEffect(() => {
15930
15930
  var M;
15931
15931
  h.current = (M = f == null ? void 0 : f.current) == null ? void 0 : M.getElementsByClassName("sps-form-group__label")[0];
15932
- const I = () => N(ye.VISIBLE), O = () => N(ye.HIDDEN);
15933
- return h.current && (h.current.addEventListener("focus", I), h.current.addEventListener("blur", O)), () => {
15934
- h.current && (h.current.removeEventListener("focus", I), h.current.removeEventListener("blur", O));
15932
+ const I = () => x(ye.VISIBLE), L = () => x(ye.HIDDEN);
15933
+ return h.current && (h.current.addEventListener("focus", I), h.current.addEventListener("blur", L)), () => {
15934
+ h.current && (h.current.removeEventListener("focus", I), h.current.removeEventListener("blur", L));
15935
15935
  };
15936
- }), l && (l.onFocus = () => N(ye.VISIBLE), l.onBlur = () => N(ye.HIDDEN));
15936
+ }), l && (l.onFocus = () => x(ye.VISIBLE), l.onBlur = () => x(ye.HIDDEN));
15937
15937
  const k = V(
15938
15938
  u || "sps-description-list__term",
15939
15939
  (c || l && l.isRequired()) && "sps-description-list__term--required",
@@ -15941,14 +15941,14 @@ function Ii(e) {
15941
15941
  n
15942
15942
  );
15943
15943
  function b() {
15944
- N(D === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
15944
+ x(D === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
15945
15945
  }
15946
15946
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("dt", {
15947
15947
  className: k,
15948
15948
  "data-testid": `${p}`,
15949
15949
  ref: f,
15950
- onMouseEnter: () => N(ye.VISIBLE),
15951
- onMouseLeave: () => N(ye.DELAYED_HIDDEN),
15950
+ onMouseEnter: () => x(ye.VISIBLE),
15951
+ onMouseLeave: () => x(ye.DELAYED_HIDDEN),
15952
15952
  onClick: b,
15953
15953
  ...m
15954
15954
  }, t), /* @__PURE__ */ s.createElement(Lt, {
@@ -16887,6 +16887,7 @@ const JD = {
16887
16887
  errors: "ReactNodeOrRenderFn",
16888
16888
  formMeta: "SpsFormSetMeta<any>",
16889
16889
  legend: "string",
16890
+ hasRequiredFields: "boolean",
16890
16891
  optional: "boolean",
16891
16892
  enabled: "boolean",
16892
16893
  onToggled: "(isEnabled: boolean) => void",
@@ -16902,62 +16903,64 @@ function Bu({
16902
16903
  formMeta: o,
16903
16904
  legend: l,
16904
16905
  unsafelyReplaceClassName: c,
16905
- optional: p = !1,
16906
- enabled: u = !1,
16907
- onToggled: m,
16908
- tooltip: f,
16909
- applyNestedStyles: h,
16910
- "data-testid": S
16906
+ hasRequiredFields: p = !1,
16907
+ optional: u = !1,
16908
+ enabled: m = !1,
16909
+ onToggled: f,
16910
+ tooltip: h,
16911
+ applyNestedStyles: S,
16912
+ "data-testid": y
16911
16913
  }) {
16912
- const y = a || r, w = s.useRef(null), T = s.useRef(null), [D, N] = s.useState(ye.HIDDEN), [k, b] = s.useState(!1), [I, O] = s.useState(u);
16914
+ const w = a || r, T = s.useRef(null), D = s.useRef(null), [x, k] = s.useState(ye.HIDDEN), [b, I] = s.useState(!1), [L, M] = s.useState(m);
16913
16915
  ap(() => {
16914
- m == null || m(I);
16915
- }, [I]), s.useEffect(() => {
16916
- if (y || o) {
16917
- const R = y && y.isFocused() || o && o.isFocused();
16918
- !k && R ? N(ye.VISIBLE) : k && !R && N(ye.HIDDEN), b(R || !1);
16916
+ f == null || f(L);
16917
+ }, [L]), s.useEffect(() => {
16918
+ if (w || o) {
16919
+ const K = w && w.isFocused() || o && o.isFocused();
16920
+ !b && K ? k(ye.VISIBLE) : b && !K && k(ye.HIDDEN), I(K || !1);
16919
16921
  }
16920
16922
  });
16921
- const M = V(
16922
- c || h ? "nested-styles-fieldset" : "sps-fieldset",
16923
- (y && !y.isPristine() && y.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
16923
+ const O = V(
16924
+ c || S ? "nested-styles-fieldset" : "sps-fieldset",
16925
+ (w && !w.isPristine() && w.invalid || o && (!o.isValid() || !o.contentsAreValid())) && "sps-fieldset--error",
16924
16926
  t,
16925
- p && !I && "sps-fieldset--collapsed"
16927
+ u && !L && "sps-fieldset--collapsed",
16928
+ p && "sps-fieldset--required-fields"
16926
16929
  );
16927
- function L() {
16928
- N(D === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
16930
+ function R() {
16931
+ k(x === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
16929
16932
  }
16930
16933
  return /* @__PURE__ */ s.createElement("div", {
16931
16934
  className: "sps-fieldset-container"
16932
16935
  }, /* @__PURE__ */ s.createElement("fieldset", {
16933
- className: M,
16934
- "data-testid": S
16936
+ className: O,
16937
+ "data-testid": y
16935
16938
  }, /* @__PURE__ */ s.createElement("legend", {
16936
16939
  className: "sps-fieldset__legend",
16937
- ref: w,
16938
- onMouseEnter: () => N(ye.VISIBLE),
16939
- onMouseLeave: () => N(ye.DELAYED_HIDDEN),
16940
- onClick: L
16941
- }, p && /* @__PURE__ */ s.createElement(vr, {
16942
- checked: I,
16940
+ ref: T,
16941
+ onMouseEnter: () => k(ye.VISIBLE),
16942
+ onMouseLeave: () => k(ye.DELAYED_HIDDEN),
16943
+ onClick: R
16944
+ }, u && /* @__PURE__ */ s.createElement(vr, {
16945
+ checked: L,
16943
16946
  className: "d-inline-flex pr-1",
16944
16947
  onChange: () => {
16945
- O(!I);
16948
+ M(!L);
16946
16949
  },
16947
- "data-testid": `${S}__checkbox`
16948
- }), l, f && /* @__PURE__ */ s.createElement("span", {
16950
+ "data-testid": `${y}__checkbox`
16951
+ }), l, h && /* @__PURE__ */ s.createElement("span", {
16949
16952
  className: "sps-fieldset__legend-icon",
16950
- ref: T
16953
+ ref: D
16951
16954
  }, /* @__PURE__ */ s.createElement(Ht, {
16952
16955
  icon: je.INFO_CIRCLE,
16953
- "data-testid": `${S}__info-icon`
16954
- }))), f && /* @__PURE__ */ s.createElement(Lt, {
16955
- for: T
16956
- }, f), /* @__PURE__ */ s.createElement(Lt, {
16957
- for: w,
16956
+ "data-testid": `${y}__info-icon`
16957
+ }))), h && /* @__PURE__ */ s.createElement(Lt, {
16958
+ for: D
16959
+ }, h), /* @__PURE__ */ s.createElement(Lt, {
16960
+ for: T,
16958
16961
  kind: $t.ERROR,
16959
16962
  showOn: it.MANUAL,
16960
- isShown: D
16963
+ isShown: x
16961
16964
  }, Et(n)), e));
16962
16965
  }
16963
16966
  Object.assign(Bu, {
@@ -17496,7 +17499,7 @@ function _i(e) {
17496
17499
  ];
17497
17500
  }
17498
17501
  const D = s.useRef([]);
17499
- function N() {
17502
+ function x() {
17500
17503
  l || (D.current = T());
17501
17504
  }
17502
17505
  function k() {
@@ -17510,21 +17513,21 @@ function _i(e) {
17510
17513
  function I() {
17511
17514
  b(), w(!1), S(!1), o && o();
17512
17515
  }
17513
- const O = a === vo.PROGRESS ? "sps-spinner" : V("sps-icon", `sps-icon-${YS.get(a)}`), M = V(
17516
+ const L = a === vo.PROGRESS ? "sps-spinner" : V("sps-icon", `sps-icon-${YS.get(a)}`), M = V(
17514
17517
  p || "sps-growler",
17515
17518
  h && "show",
17516
17519
  y && "fade",
17517
17520
  `sps-growler--${a}`,
17518
17521
  n
17519
17522
  );
17520
- return s.useEffect(() => (N(), () => {
17523
+ return s.useEffect(() => (x(), () => {
17521
17524
  k();
17522
17525
  }), []), Qr("sps-growler-display-area", ["sps-growler-area", "z-stratum-growlers"])(
17523
17526
  /* @__PURE__ */ s.createElement("div", {
17524
17527
  role: "alert",
17525
17528
  className: M,
17526
17529
  onMouseEnter: b,
17527
- onMouseLeave: N,
17530
+ onMouseLeave: x,
17528
17531
  ...u
17529
17532
  }, /* @__PURE__ */ s.createElement("div", {
17530
17533
  className: "sps-growler__icon-box"
@@ -17532,7 +17535,7 @@ function _i(e) {
17532
17535
  src: r,
17533
17536
  alt: ""
17534
17537
  }), !r && /* @__PURE__ */ s.createElement("i", {
17535
- className: O,
17538
+ className: L,
17536
17539
  "aria-hidden": "true"
17537
17540
  })), /* @__PURE__ */ s.createElement("div", {
17538
17541
  className: "sps-growler__message-box"
@@ -17950,8 +17953,8 @@ function Au(e) {
17950
17953
  s.useEffect(() => {
17951
17954
  o && typeof o == "function" && o(m), S(m < n || m > r);
17952
17955
  }, [m]);
17953
- const y = () => m <= n ? !1 : (m > r ? f(r) : f((N) => N - a), !0), w = () => m >= r ? !1 : (m < n ? f(n) : f((N) => N + a), !0), T = (N) => {
17954
- N.target.value !== "" && f(parseInt(N.target.value, 10));
17956
+ const y = () => m <= n ? !1 : (m > r ? f(r) : f((x) => x - a), !0), w = () => m >= r ? !1 : (m < n ? f(n) : f((x) => x + a), !0), T = (x) => {
17957
+ x.target.value !== "" && f(parseInt(x.target.value, 10));
17955
17958
  }, D = l || V("sps-incrementor sps-input-group sps-input-group__append", c);
17956
17959
  return /* @__PURE__ */ s.createElement("div", {
17957
17960
  className: D,
@@ -18047,23 +18050,23 @@ function Fu({
18047
18050
  "data-testid": m,
18048
18051
  ...f
18049
18052
  }) {
18050
- const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, N] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I, O] = s.useState(ye.HIDDEN), [M, L] = s.useState(
18053
+ const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, x] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I, L] = s.useState(ye.HIDDEN), [M, O] = s.useState(
18051
18054
  ye.HIDDEN
18052
18055
  );
18053
18056
  function R() {
18054
- N(ye.HIDDEN), b(ye.HIDDEN), O(ye.HIDDEN), L(ye.HIDDEN);
18057
+ x(ye.HIDDEN), b(ye.HIDDEN), L(ye.HIDDEN), O(ye.HIDDEN);
18055
18058
  }
18056
18059
  function K() {
18057
- N(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN), O(ye.DELAYED_HIDDEN);
18060
+ x(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN), L(ye.DELAYED_HIDDEN);
18058
18061
  }
18059
18062
  function _(te) {
18060
- te.preventDefault(), R(), O(po(I));
18063
+ te.preventDefault(), R(), L(po(I));
18061
18064
  }
18062
18065
  function $() {
18063
- return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M, L] : o ? [D, N] : a ? [I, O] : [ye.HIDDEN, () => {
18066
+ return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M, O] : o ? [D, x] : a ? [I, L] : [ye.HIDDEN, () => {
18064
18067
  }];
18065
18068
  }
18066
- function x() {
18069
+ function N() {
18067
18070
  R();
18068
18071
  const [te, X] = $();
18069
18072
  X(po(te));
@@ -18074,7 +18077,7 @@ function Fu({
18074
18077
  te(ye.VISIBLE);
18075
18078
  }
18076
18079
  function Q(te) {
18077
- te.preventDefault(), R(), N(po(D));
18080
+ te.preventDefault(), R(), x(po(D));
18078
18081
  }
18079
18082
  s.useEffect(() => {
18080
18083
  r && (r.onFocus = A, r.onBlur = R);
@@ -18110,7 +18113,7 @@ function Fu({
18110
18113
  { type: Ht }
18111
18114
  ]);
18112
18115
  return s.useEffect(() => {
18113
- W != null && W.hasPreventativeErrors() && L(ye.VISIBLE);
18116
+ W != null && W.hasPreventativeErrors() && O(ye.VISIBLE);
18114
18117
  }, [W == null ? void 0 : W.hasPreventativeErrors()]), /* @__PURE__ */ s.createElement(ut, {
18115
18118
  formMeta: W,
18116
18119
  formControl: J
@@ -18139,7 +18142,7 @@ function Fu({
18139
18142
  "sps-icon-exclamation-circle",
18140
18143
  "sps-form-group__label--error-icon"
18141
18144
  ),
18142
- onClick: x,
18145
+ onClick: N,
18143
18146
  onMouseLeave: K
18144
18147
  }), /* @__PURE__ */ s.createElement("span", {
18145
18148
  ref: T,
@@ -18494,9 +18497,9 @@ const Sa = s.createContext({
18494
18497
  c(T), (D = f.current) == null || D.call(f, T);
18495
18498
  }, []), y = s.useCallback(
18496
18499
  (T, D) => {
18497
- c((N) => {
18500
+ c((x) => {
18498
18501
  var b;
18499
- const k = { ...N, [T]: D };
18502
+ const k = { ...x, [T]: D };
18500
18503
  return (b = f.current) == null || b.call(f, k), k;
18501
18504
  });
18502
18505
  },
@@ -18605,14 +18608,14 @@ const Sa = s.createContext({
18605
18608
  let m = r == null ? void 0 : r.querySelector(".placeholder-head"), f;
18606
18609
  const h = () => {
18607
18610
  a && (a.style.position = t ? "sticky" : "", a.style.top = t ? "0" : "", a.style.overflow = "", a.style.maxWidth = "", a.style.width = "", a.style.minWidth = ""), m && (m.style.width = "", m.style.height = ""), c && Array.from(c).forEach((T, D) => {
18608
- const N = p[D];
18609
- if (N) {
18610
- const k = N.getAttribute("data-resizekey"), b = k && n ? n[k] : void 0;
18611
+ const x = p[D];
18612
+ if (x) {
18613
+ const k = x.getAttribute("data-resizekey"), b = k && n ? n[k] : void 0;
18611
18614
  if (b) {
18612
18615
  const I = `${b}px`;
18613
- N.style.minWidth = I, N.style.maxWidth = I, N.style.width = I, T.style.minWidth = I, T.style.maxWidth = I, T.style.width = I;
18616
+ x.style.minWidth = I, x.style.maxWidth = I, x.style.width = I, T.style.minWidth = I, T.style.maxWidth = I, T.style.width = I;
18614
18617
  } else
18615
- N.style.minWidth = "", N.style.width = "", N.style.maxWidth = "", T.style.minWidth = "", T.style.width = "", T.style.maxWidth = "";
18618
+ x.style.minWidth = "", x.style.width = "", x.style.maxWidth = "", T.style.minWidth = "", T.style.width = "", T.style.maxWidth = "";
18616
18619
  } else
18617
18620
  T.style.minWidth = "", T.style.width = "", T.style.maxWidth = "";
18618
18621
  });
@@ -18621,17 +18624,17 @@ const Sa = s.createContext({
18621
18624
  }, y = () => {
18622
18625
  let T = null;
18623
18626
  f === window ? T = u ? u.getBoundingClientRect().height : 0 : f instanceof HTMLElement && (T = f.getBoundingClientRect().top);
18624
- const D = r.scrollLeft, N = a == null ? void 0 : a.getBoundingClientRect(), k = r.getBoundingClientRect();
18625
- if (T && N && N.top <= T && T <= k.bottom - N.height && k.top <= T) {
18627
+ const D = r.scrollLeft, x = a == null ? void 0 : a.getBoundingClientRect(), k = r.getBoundingClientRect();
18628
+ if (T && x && x.top <= T && T <= k.bottom - x.height && k.top <= T) {
18626
18629
  if (c && Array.from(c).forEach((b, I) => {
18627
- const O = b.getBoundingClientRect().width, M = p[I].getBoundingClientRect().width, L = `${Math.max(O, M)}px`;
18628
- p[I].style.minWidth = L, p[I].style.width = L, p[I].style.maxWidth = L, b.style.minWidth = L, b.style.width = L, b.style.maxWidth = L;
18630
+ const L = b.getBoundingClientRect().width, M = p[I].getBoundingClientRect().width, O = `${Math.max(L, M)}px`;
18631
+ p[I].style.minWidth = O, p[I].style.width = O, p[I].style.maxWidth = O, b.style.minWidth = O, b.style.width = O, b.style.maxWidth = O;
18629
18632
  }), a && e.current) {
18630
18633
  a.style.position = "fixed", a.style.top = `${T}px`, a.style.overflow = "hidden";
18631
18634
  const b = e.current.offsetWidth - e.current.clientWidth, I = `${k.width - b}px`;
18632
18635
  a.style.maxWidth = I, a.style.width = I, a.style.minWidth = I;
18633
18636
  }
18634
- m || (m = document.createElement("div"), m.style.width = `${N.width}px`, m.style.height = `${N.height}px`, m.className = "placeholder-head", r.insertBefore(m, o));
18637
+ m || (m = document.createElement("div"), m.style.width = `${x.width}px`, m.style.height = `${x.height}px`, m.className = "placeholder-head", r.insertBefore(m, o));
18635
18638
  } else
18636
18639
  m && (r.removeChild(m), m = null, h());
18637
18640
  r.scrollLeft = D, S();
@@ -18732,15 +18735,15 @@ const fN = ({
18732
18735
  }) => {
18733
18736
  const { resizeable: r, resizeState: a, setSingleResizeState: o } = s.useContext(Sa), l = !!r && !!n, c = l ? a == null ? void 0 : a[n] : 0;
18734
18737
  return s.useLayoutEffect(() => {
18735
- var O, M;
18738
+ var L, M;
18736
18739
  let p, u = c, m = 0;
18737
- const f = Ku(e.current), h = (O = e.current) == null ? void 0 : O.querySelector(".sps-table__column-resizer"), S = (M = e.current) == null ? void 0 : M.querySelector(".sps-table__column-resizer-guide");
18740
+ const f = Ku(e.current), h = (L = e.current) == null ? void 0 : L.querySelector(".sps-table__column-resizer"), S = (M = e.current) == null ? void 0 : M.querySelector(".sps-table__column-resizer-guide");
18738
18741
  function y() {
18739
18742
  if (e.current && p && (h && (h.style.backgroundColor = yo.blue200), S && f && (S.style.height = `${f.getBoundingClientRect().height}px`, S.style.display = "block"), f)) {
18740
- const L = f.querySelectorAll("thead > tr > th");
18741
- for (let R = 0; R < L.length; R += 1) {
18742
- const K = L[R].querySelector(".sps-table__column-resizer");
18743
- L[R].style.cursor = "col-resize", L[R] !== e.current && K && (L[R].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
18743
+ const O = f.querySelectorAll("thead > tr > th");
18744
+ for (let R = 0; R < O.length; R += 1) {
18745
+ const K = O[R].querySelector(".sps-table__column-resizer");
18746
+ O[R].style.cursor = "col-resize", O[R] !== e.current && K && (O[R].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
18744
18747
  }
18745
18748
  }
18746
18749
  }
@@ -18749,33 +18752,33 @@ const fN = ({
18749
18752
  }
18750
18753
  function T() {
18751
18754
  if (e.current) {
18752
- const L = u ? `${u}px` : "";
18753
- e.current.style.width = L, e.current.style.maxWidth = L, e.current.style.minWidth = L;
18755
+ const O = u ? `${u}px` : "";
18756
+ e.current.style.width = O, e.current.style.maxWidth = O, e.current.style.minWidth = O;
18754
18757
  const R = e.current.querySelector(".sps-table__header-cell-body");
18755
- if (R && (R.style.overflow = L ? "hidden" : "", R.style.textOverflow = L ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
18758
+ if (R && (R.style.overflow = O ? "hidden" : "", R.style.textOverflow = O ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
18756
18759
  const K = f.querySelectorAll("thead > tr > th");
18757
18760
  for (let _ = 0; _ < K.length; _ += 1) {
18758
- const $ = K[_].querySelector(".sps-table__header-cell-body"), x = K[_].querySelector(".sps-table__column-resizer");
18759
- K[_].style.cursor = "default", K[_] !== e.current && x && (K[_].classList.add("sps-table__header--resizeable"), x.style.display = "block"), ($ == null ? void 0 : $.textContent) && !$.title && ($.title = $.textContent);
18761
+ const $ = K[_].querySelector(".sps-table__header-cell-body"), N = K[_].querySelector(".sps-table__column-resizer");
18762
+ K[_].style.cursor = "default", K[_] !== e.current && N && (K[_].classList.add("sps-table__header--resizeable"), N.style.display = "block"), ($ == null ? void 0 : $.textContent) && !$.title && ($.title = $.textContent);
18760
18763
  }
18761
18764
  }
18762
18765
  }
18763
18766
  }
18764
- const D = (L) => {
18765
- !e.current || (L.preventDefault(), p = L.clientX, u = e.current.clientWidth, y());
18766
- }, N = (L) => {
18767
+ const D = (O) => {
18768
+ !e.current || (O.preventDefault(), p = O.clientX, u = e.current.clientWidth, y());
18769
+ }, x = (O) => {
18767
18770
  if (!p || !e.current)
18768
18771
  return;
18769
- const R = Math.max(Math.min(p - L.clientX, 40), -40);
18770
- R !== 0 && (p = L.clientX, m += R, u = Math.max(u - R, 40), w());
18772
+ const R = Math.max(Math.min(p - O.clientX, 40), -40);
18773
+ R !== 0 && (p = O.clientX, m += R, u = Math.max(u - R, 40), w());
18771
18774
  }, k = () => {
18772
18775
  !e.current || (p = 0, m = 0, T(), o(n, u));
18773
18776
  }, b = () => {
18774
18777
  u = 0, T(), o(n, u);
18775
18778
  };
18776
18779
  let I = !1;
18777
- return l && t.current && (t.current.addEventListener("dragstart", D), t.current.addEventListener("mousedown", D), t.current.addEventListener("dblclick", b), window.addEventListener("mousemove", N), window.addEventListener("dragend", k), window.addEventListener("mouseup", k), I = !0, T()), () => {
18778
- t.current && I && (t.current.removeEventListener("dragstart", D), t.current.removeEventListener("mousedown", D), t.current.removeEventListener("dblclick", b)), I && (window.removeEventListener("mousemove", N), window.removeEventListener("dragend", k), window.removeEventListener("mouseup", k));
18780
+ return l && t.current && (t.current.addEventListener("dragstart", D), t.current.addEventListener("mousedown", D), t.current.addEventListener("dblclick", b), window.addEventListener("mousemove", x), window.addEventListener("dragend", k), window.addEventListener("mouseup", k), I = !0, T()), () => {
18781
+ t.current && I && (t.current.removeEventListener("dragstart", D), t.current.removeEventListener("mousedown", D), t.current.removeEventListener("dblclick", b)), I && (window.removeEventListener("mousemove", x), window.removeEventListener("dragend", k), window.removeEventListener("mouseup", k));
18779
18782
  };
18780
18783
  }, [
18781
18784
  l,
@@ -18819,13 +18822,13 @@ function Qe({
18819
18822
  pinned: c = !1,
18820
18823
  ...p
18821
18824
  }) {
18822
- const { sort: u, setSort: m } = s.useContext(Sa), f = u == null ? void 0 : u.find((N) => N.key === r), h = () => {
18825
+ const { sort: u, setSort: m } = s.useContext(Sa), f = u == null ? void 0 : u.find((x) => x.key === r), h = () => {
18823
18826
  if (r && !n) {
18824
- const N = (f == null ? void 0 : f.direction) === Ft.ASCENDING ? Ft.DESCENDING : Ft.ASCENDING;
18825
- m([{ key: r, direction: N }]);
18827
+ const x = (f == null ? void 0 : f.direction) === Ft.ASCENDING ? Ft.DESCENDING : Ft.ASCENDING;
18828
+ m([{ key: r, direction: x }]);
18826
18829
  }
18827
- }, S = (N) => {
18828
- (N.key === "Enter" || N.key === " " || N.key === "Spacebar") && (N.preventDefault(), h());
18830
+ }, S = (x) => {
18831
+ (x.key === "Enter" || x.key === " " || x.key === "Spacebar") && (x.preventDefault(), h());
18829
18832
  }, y = s.useRef(null);
18830
18833
  Vu(c, y);
18831
18834
  const w = s.useRef(null), { isResizeable: T } = fN({ tableHeaderRef: y, resizerRef: w, resizeKey: a }), D = V(
@@ -21018,13 +21021,13 @@ function qu(e) {
21018
21021
  pinResultsBar: w,
21019
21022
  pinToolbar: T = !0,
21020
21023
  "data-testid": D,
21021
- ...N
21024
+ ...x
21022
21025
  } = e, { t: k } = s.useContext(Be);
21023
21026
  let b = null;
21024
- const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null), R = lb(() => {
21027
+ const [I, L] = s.useState(!1), M = s.useRef(null), O = s.useRef(null), R = lb(() => {
21025
21028
  if (M.current && T) {
21026
21029
  const H = M.current.getBoundingClientRect();
21027
- H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, O(!1)) : (b = window.scrollY, O(!0), o && o(!1)));
21030
+ 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)));
21028
21031
  }
21029
21032
  });
21030
21033
  s.useEffect(() => (window.addEventListener("scroll", R), () => {
@@ -21032,11 +21035,11 @@ function qu(e) {
21032
21035
  }), []);
21033
21036
  const K = s.useRef();
21034
21037
  s.useLayoutEffect(() => {
21035
- if (L.current && M.current && T) {
21038
+ if (O.current && M.current && T) {
21036
21039
  if (I && K.current)
21037
- L.current.style.height = K.current.height, L.current.style.width = K.current.width, L.current.style.marginBottom = K.current.marginBottom;
21040
+ O.current.style.height = K.current.height, O.current.style.width = K.current.width, O.current.style.marginBottom = K.current.marginBottom;
21038
21041
  else if (!I) {
21039
- L.current.style.height = "", L.current.style.width = "", L.current.style.marginBottom = "";
21042
+ O.current.style.height = "", O.current.style.width = "", O.current.style.marginBottom = "";
21040
21043
  const H = window.getComputedStyle(M.current);
21041
21044
  K.current = {
21042
21045
  height: H.height,
@@ -21052,11 +21055,11 @@ function qu(e) {
21052
21055
  function $() {
21053
21056
  o && o(!(n != null && n.isOpen));
21054
21057
  }
21055
- function x(H) {
21058
+ function N(H) {
21056
21059
  m && m(H);
21057
21060
  }
21058
21061
  s.useEffect(() => {
21059
- x(I);
21062
+ N(I);
21060
21063
  }, [I]);
21061
21064
  const A = V(
21062
21065
  u || "sps-list-toolbar",
@@ -21076,12 +21079,12 @@ function qu(e) {
21076
21079
  ]);
21077
21080
  return /* @__PURE__ */ s.createElement("div", {
21078
21081
  className: "sps-list-toolbar__wrapper",
21079
- ref: L
21082
+ ref: O
21080
21083
  }, /* @__PURE__ */ s.createElement("div", {
21081
21084
  className: A,
21082
21085
  "data-testid": D,
21083
21086
  ref: M,
21084
- ...N
21087
+ ...x
21085
21088
  }, /* @__PURE__ */ s.createElement("div", {
21086
21089
  className: "sps-list-toolbar__content"
21087
21090
  }, !!f && /* @__PURE__ */ s.createElement("div", {
@@ -22172,14 +22175,14 @@ function Xu({
22172
22175
  if (k && k.key === "Escape" && o && o(), k && k.key === "Tab" && S.current) {
22173
22176
  const b = S.current.querySelectorAll(
22174
22177
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
22175
- ), I = b[0], O = b[b.length - 1];
22176
- b.length === 0 ? k.preventDefault() : k.shiftKey && k.target === I ? (k.preventDefault(), O.focus()) : !k.shiftKey && k.target === O && (k.preventDefault(), I.focus());
22178
+ ), I = b[0], L = b[b.length - 1];
22179
+ b.length === 0 ? k.preventDefault() : k.shiftKey && k.target === I ? (k.preventDefault(), L.focus()) : !k.shiftKey && k.target === L && (k.preventDefault(), I.focus());
22177
22180
  }
22178
22181
  },
22179
22182
  [o]
22180
22183
  ), [
22181
22184
  [D],
22182
- N
22185
+ x
22183
22186
  ] = Rt(e, [{ type: Pi }]);
22184
22187
  return /* @__PURE__ */ s.createElement("div", {
22185
22188
  id: m.current,
@@ -22213,7 +22216,7 @@ function Xu({
22213
22216
  parentElementRef: S,
22214
22217
  fixed: !0
22215
22218
  }
22216
- }, N)), D || /* @__PURE__ */ s.createElement("div", {
22219
+ }, x)), D || /* @__PURE__ */ s.createElement("div", {
22217
22220
  className: "sps-modal__footer"
22218
22221
  }, /* @__PURE__ */ s.createElement(We, {
22219
22222
  kind: r === Wl.SERIOUS_WARNING ? Ge.DELETE : Ge.KEY,
@@ -22258,10 +22261,10 @@ function Qu({
22258
22261
  const w = s.useCallback(
22259
22262
  (D) => {
22260
22263
  if (a && D && D.key === "Escape" && o && o(), D && D.key === "Tab" && y.current) {
22261
- const N = y.current.querySelectorAll(
22264
+ const x = y.current.querySelectorAll(
22262
22265
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
22263
- ), k = N[0], b = N[N.length - 1];
22264
- N.length === 0 ? D.preventDefault() : D.shiftKey && D.target === k ? (D.preventDefault(), b.focus()) : !D.shiftKey && D.target === b && (D.preventDefault(), k.focus());
22266
+ ), k = x[0], b = x[x.length - 1];
22267
+ x.length === 0 ? D.preventDefault() : D.shiftKey && D.target === k ? (D.preventDefault(), b.focus()) : !D.shiftKey && D.target === b && (D.preventDefault(), k.focus());
22265
22268
  }
22266
22269
  },
22267
22270
  [o]
@@ -22953,18 +22956,18 @@ function em({
22953
22956
  placeholder: w,
22954
22957
  tallOptionList: T,
22955
22958
  textKey: D,
22956
- unsafelyReplaceClassName: N,
22959
+ unsafelyReplaceClassName: x,
22957
22960
  value: k,
22958
22961
  zeroState: b = "There are no matching options.",
22959
22962
  loading: I,
22960
- icon: O,
22963
+ icon: L,
22961
22964
  maxHeightOptionListPx: M,
22962
- maxHeightOptionListRem: L,
22965
+ maxHeightOptionListRem: O,
22963
22966
  disableOptionsMemoization: R,
22964
22967
  "data-testid": K,
22965
22968
  ..._
22966
22969
  }) {
22967
- const $ = k != null ? k : [], x = u || p, { wrapperId: A, controlId: Q } = wt(f, x), [q, W] = sn({
22970
+ const $ = k != null ? k : [], N = u || p, { wrapperId: A, controlId: Q } = wt(f, N), [q, W] = sn({
22968
22971
  keyDown: null,
22969
22972
  opensUpward: !1,
22970
22973
  searchText: "",
@@ -23001,7 +23004,7 @@ function em({
23001
23004
  }
23002
23005
  }
23003
23006
  function Te(de) {
23004
- W({ searchText: "" }), x && (x.setValue(de), x.markAsDirty()), h && h(
23007
+ W({ searchText: "" }), N && (N.setValue(de), N.markAsDirty()), h && h(
23005
23008
  new Pn({ value: de })
23006
23009
  );
23007
23010
  }
@@ -23083,7 +23086,7 @@ function em({
23083
23086
  searchText: ""
23084
23087
  }), le();
23085
23088
  }, []), Ae = V(
23086
- N || "sps-multi-select",
23089
+ x || "sps-multi-select",
23087
23090
  X && "sps-multi-select--open",
23088
23091
  X && "z-stratum-dropdown",
23089
23092
  q.opensUpward && "sps-multi-select--opens-upward",
@@ -23111,8 +23114,8 @@ function em({
23111
23114
  "sps-form-control",
23112
23115
  $ && !o && "sps-form-control--clearable"
23113
23116
  )
23114
- }, O && /* @__PURE__ */ s.createElement("i", {
23115
- className: V("sps-text-input__icon", "sps-icon", `sps-icon-${O}`)
23117
+ }, L && /* @__PURE__ */ s.createElement("i", {
23118
+ className: V("sps-text-input__icon", "sps-icon", `sps-icon-${L}`)
23116
23119
  }), /* @__PURE__ */ s.createElement("div", {
23117
23120
  className: "sps-multi-select__tags-and-input",
23118
23121
  ref: j
@@ -23168,7 +23171,7 @@ function em({
23168
23171
  zeroState: b,
23169
23172
  loading: I,
23170
23173
  maxHeightPx: M,
23171
- maxHeightRem: L,
23174
+ maxHeightRem: O,
23172
23175
  disableOptionsMemoization: R,
23173
23176
  onSpecialActionSelect: ge
23174
23177
  }));
@@ -23710,18 +23713,18 @@ const GN = {
23710
23713
  onOpen: w,
23711
23714
  placeholder: T,
23712
23715
  searchDebounce: D,
23713
- searchPlaceholder: N = "Search\u2026",
23716
+ searchPlaceholder: x = "Search\u2026",
23714
23717
  tallOptionList: k,
23715
23718
  textKey: b,
23716
23719
  valueKey: I,
23717
- unsafelyReplaceClassName: O,
23720
+ unsafelyReplaceClassName: L,
23718
23721
  value: M,
23719
- zeroState: L,
23722
+ zeroState: O,
23720
23723
  loading: R,
23721
23724
  filterByTextAndCaptionKey: K,
23722
23725
  maxHeightOptionListPx: _,
23723
23726
  maxHeightOptionListRem: $,
23724
- "data-testid": x,
23727
+ "data-testid": N,
23725
23728
  disableOptionsMemoization: A,
23726
23729
  disableDefaultOptionsFiltering: Q,
23727
23730
  ...q
@@ -23805,7 +23808,7 @@ const GN = {
23805
23808
  }
23806
23809
  }));
23807
23810
  const St = V(
23808
- O || "sps-select",
23811
+ L || "sps-select",
23809
23812
  X.isOpen && "sps-select--open",
23810
23813
  X.isOpen && "z-stratum-dropdown",
23811
23814
  X.opensUpward && "sps-select--opens-upward",
@@ -23820,7 +23823,7 @@ const GN = {
23820
23823
  ref: z,
23821
23824
  role: "listbox",
23822
23825
  "aria-owns": X.optionIds,
23823
- "data-testid": x,
23826
+ "data-testid": N,
23824
23827
  onClick: y,
23825
23828
  ...q
23826
23829
  }, /* @__PURE__ */ s.createElement("div", {
@@ -23830,7 +23833,7 @@ const GN = {
23830
23833
  onClick: Te,
23831
23834
  ref: j,
23832
23835
  title: ct,
23833
- "data-testid": `${x}-dropctrl`
23836
+ "data-testid": `${N}-dropctrl`
23834
23837
  }, /* @__PURE__ */ s.createElement("div", {
23835
23838
  className: "sps-select__dropctrl-content"
23836
23839
  }, /* @__PURE__ */ s.createElement("span", {
@@ -23838,11 +23841,11 @@ const GN = {
23838
23841
  "sps-select__value",
23839
23842
  !X.text && "sps-select__value--placeholder"
23840
23843
  ),
23841
- "data-testid": `${x}-value`
23844
+ "data-testid": `${N}-value`
23842
23845
  }, ct), X.value && !f && !c && /* @__PURE__ */ s.createElement("i", {
23843
23846
  className: "sps-icon sps-icon-x-circle sps-select__clear-btn",
23844
23847
  onClick: le,
23845
- "data-testid": `${x}-clear-value`
23848
+ "data-testid": `${N}-clear-value`
23846
23849
  }), /* @__PURE__ */ s.createElement("i", {
23847
23850
  className: "sps-icon sps-icon-chevron-down"
23848
23851
  }))), /* @__PURE__ */ s.createElement(es, {
@@ -23858,7 +23861,7 @@ const GN = {
23858
23861
  onPositionFlip: Ze,
23859
23862
  onSelfToggle: re,
23860
23863
  searchDebounce: D,
23861
- searchPlaceholder: N,
23864
+ searchPlaceholder: x,
23862
23865
  selectedOption: X.value,
23863
23866
  specialAction: n,
23864
23867
  tall: k,
@@ -23867,14 +23870,14 @@ const GN = {
23867
23870
  optionRole: "option",
23868
23871
  valueKey: I,
23869
23872
  onOptionListChanged: lt,
23870
- zeroState: L,
23873
+ zeroState: O,
23871
23874
  ignoreWidthStyles: r,
23872
23875
  loading: R,
23873
23876
  maxHeightPx: _,
23874
23877
  maxHeightRem: $,
23875
23878
  disableOptionsMemoization: A,
23876
23879
  disableDefaultOptionsFiltering: Q,
23877
- "data-testid": `${x}-option-list`
23880
+ "data-testid": `${N}-option-list`
23878
23881
  }));
23879
23882
  }
23880
23883
  );
@@ -23913,9 +23916,9 @@ function Ai(e) {
23913
23916
  function D(b) {
23914
23917
  S(Number(b.target.value) || "");
23915
23918
  }
23916
- const N = V(a || "sps-page-selector", o), k = Sr();
23919
+ const x = V(a || "sps-page-selector", o), k = Sr();
23917
23920
  return /* @__PURE__ */ s.createElement("div", {
23918
- className: N,
23921
+ className: x,
23919
23922
  "data-testid": l,
23920
23923
  ...m
23921
23924
  }, !p && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
@@ -24010,26 +24013,26 @@ function tm(e) {
24010
24013
  numPages: 0,
24011
24014
  indices: [0, 0]
24012
24015
  });
24013
- function T(L = y.pageSize) {
24014
- return c !== void 0 ? Math.ceil(c / L) : NaN;
24016
+ function T(O = y.pageSize) {
24017
+ return c !== void 0 ? Math.ceil(c / O) : NaN;
24015
24018
  }
24016
- function D(L = y.page, R = y.pageSize) {
24017
- const K = T(R), _ = L === K && c !== void 0 && c % R || R, $ = h || (K === 0 ? 0 : _), x = (L - 1) * R;
24018
- return K === 0 ? [0, 0] : [x + 1, x + $];
24019
+ function D(O = y.page, R = y.pageSize) {
24020
+ const K = T(R), _ = O === K && c !== void 0 && c % R || R, $ = h || (K === 0 ? 0 : _), N = (O - 1) * R;
24021
+ return K === 0 ? [0, 0] : [N + 1, N + $];
24019
24022
  }
24020
- function N(L) {
24023
+ function x(O) {
24021
24024
  const R = {
24022
- page: L,
24023
- indices: D(L)
24025
+ page: O,
24026
+ indices: D(O)
24024
24027
  };
24025
24028
  return w(R), R;
24026
24029
  }
24027
- function k(L, R) {
24030
+ function k(O, R) {
24028
24031
  const K = {
24029
24032
  page: R,
24030
- pageSize: L,
24031
- numPages: T(L),
24032
- indices: D(R, L)
24033
+ pageSize: O,
24034
+ numPages: T(O),
24035
+ indices: D(R, O)
24033
24036
  };
24034
24037
  return w(K), K;
24035
24038
  }
@@ -24039,19 +24042,19 @@ function tm(e) {
24039
24042
  indices: D()
24040
24043
  });
24041
24044
  }, [c, h]), s.useEffect(() => {
24042
- r !== y.page && N(r);
24045
+ r !== y.page && x(r);
24043
24046
  }, [r]), s.useEffect(() => {
24044
24047
  o !== y.pageSize && k(o, r !== y.page ? r : y.page);
24045
24048
  }, [o]);
24046
24049
  function b() {
24047
24050
  return typeof c == "number" ? c : "many";
24048
24051
  }
24049
- function I(L) {
24050
- const R = k(L.target.value, 1);
24052
+ function I(O) {
24053
+ const R = k(O.target.value, 1);
24051
24054
  n(R.page, R.pageSize, R.indices);
24052
24055
  }
24053
- function O(L) {
24054
- const R = N(L);
24056
+ function L(O) {
24057
+ const R = x(O);
24055
24058
  n(R.page, y.pageSize, R.indices);
24056
24059
  }
24057
24060
  const M = V(p || "sps-pagination", t);
@@ -24077,7 +24080,7 @@ function tm(e) {
24077
24080
  }, `Viewing ${y.indices[0]} - ${y.indices[1]} of ${b()}`), /* @__PURE__ */ s.createElement(Ai, {
24078
24081
  numPages: y.numPages,
24079
24082
  page: y.page,
24080
- onPageChange: O,
24083
+ onPageChange: L,
24081
24084
  disabled: u,
24082
24085
  unknownPageCount: m,
24083
24086
  nextPageBtnDisabled: f
@@ -25171,7 +25174,7 @@ function am({
25171
25174
  value: y,
25172
25175
  ...w
25173
25176
  }) {
25174
- const T = o || a, D = s.useRef(null), { wrapperId: N, controlId: k } = wt(l), b = V(
25177
+ const T = o || a, D = s.useRef(null), { wrapperId: x, controlId: k } = wt(l), b = V(
25175
25178
  S || "sps-radio-button",
25176
25179
  "sps-checkable",
25177
25180
  c && "sps-checkable--inline",
@@ -25179,12 +25182,12 @@ function am({
25179
25182
  !u && "sps-checkable--no-label",
25180
25183
  t
25181
25184
  );
25182
- function I(O) {
25185
+ function I(L) {
25183
25186
  var M;
25184
- T && (T.setValue(y), T.markAsDirty()), f && f(O), (M = D.current) == null || M.focus();
25187
+ T && (T.setValue(y), T.markAsDirty()), f && f(L), (M = D.current) == null || M.focus();
25185
25188
  }
25186
25189
  return /* @__PURE__ */ s.createElement(ut, {
25187
- id: N,
25190
+ id: x,
25188
25191
  className: b,
25189
25192
  formControl: a,
25190
25193
  formMeta: o,
@@ -25192,8 +25195,8 @@ function am({
25192
25195
  ref: h,
25193
25196
  "data-testid": `${n}`,
25194
25197
  onClick: () => {
25195
- var O;
25196
- return (O = D.current) == null ? void 0 : O.click();
25198
+ var L;
25199
+ return (L = D.current) == null ? void 0 : L.click();
25197
25200
  }
25198
25201
  }, /* @__PURE__ */ s.createElement("input", {
25199
25202
  type: "radio",
@@ -26253,14 +26256,14 @@ const nx = {
26253
26256
  a
26254
26257
  ), [S, y] = Ve(
26255
26258
  c || (o ? o[0] : "")
26256
- ), [w, T] = Ve(""), D = (I, O) => {
26257
- h(I), r && r(I, O);
26258
- }, N = (I) => {
26259
+ ), [w, T] = Ve(""), D = (I, L) => {
26260
+ h(I), r && r(I, L);
26261
+ }, x = (I) => {
26259
26262
  y(I), l && l(I);
26260
- }, k = (I) => I ? I.some((O) => O.name.toLowerCase().includes(w)) || I.some((O) => k(O.subNavItems || [])) : !1, b = n.map(
26263
+ }, k = (I) => I ? I.some((L) => L.name.toLowerCase().includes(w)) || I.some((L) => k(L.subNavItems || [])) : !1, b = n.map(
26261
26264
  (I) => ({
26262
26265
  ...I,
26263
- navItems: I.navItems.filter((O) => O.name.toLowerCase().includes(w) || k(O.subNavItems || []))
26266
+ navItems: I.navItems.filter((L) => L.name.toLowerCase().includes(w) || k(L.subNavItems || []))
26264
26267
  })
26265
26268
  );
26266
26269
  return a !== m.current && (h(a), m.current = a), /* @__PURE__ */ s.createElement("div", {
@@ -26284,9 +26287,9 @@ const nx = {
26284
26287
  role: "tab",
26285
26288
  tabIndex: 0,
26286
26289
  key: I,
26287
- onClick: () => N(I),
26288
- onKeyDown: (O) => {
26289
- (O.key === "Enter" || O.key === " ") && (O.stopPropagation(), O.preventDefault(), N(I));
26290
+ onClick: () => x(I),
26291
+ onKeyDown: (L) => {
26292
+ (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), L.preventDefault(), x(I));
26290
26293
  }
26291
26294
  }, /* @__PURE__ */ s.createElement("span", null, I)))), /* @__PURE__ */ s.createElement("div", {
26292
26295
  className: "sps-card__body"
@@ -26306,15 +26309,15 @@ const nx = {
26306
26309
  T(I.target.value);
26307
26310
  }
26308
26311
  })))), b.map((I) => {
26309
- var O;
26312
+ var L;
26310
26313
  return /* @__PURE__ */ s.createElement("section", {
26311
26314
  className: "sps-side-nav__section",
26312
- key: (O = I.key) != null ? O : I.sectionTitle
26315
+ key: (L = I.key) != null ? L : I.sectionTitle
26313
26316
  }, I.sectionTitle && /* @__PURE__ */ s.createElement("div", {
26314
26317
  className: "sps-side-nav__section-title",
26315
26318
  style: { fontWeight: 400 }
26316
26319
  }, I.sectionTitle), I.navItems.map((M) => {
26317
- var L;
26320
+ var O;
26318
26321
  return /* @__PURE__ */ s.createElement(om, {
26319
26322
  branch: {
26320
26323
  ...M,
@@ -26327,7 +26330,7 @@ const nx = {
26327
26330
  setActiveBranch: (R, K) => {
26328
26331
  D(R, K);
26329
26332
  },
26330
- key: (L = M.key) != null ? L : M.name
26333
+ key: (O = M.key) != null ? O : M.name
26331
26334
  });
26332
26335
  }));
26333
26336
  })));
@@ -26924,7 +26927,7 @@ function lm(e) {
26924
26927
  expandable: !1
26925
26928
  });
26926
26929
  s.useEffect(() => {
26927
- const D = s.Children.toArray(t).some((N) => s.isValidElement(N) && N.type === ea);
26930
+ const D = s.Children.toArray(t).some((x) => s.isValidElement(x) && x.type === ea);
26928
26931
  m({ expandable: D });
26929
26932
  }, []);
26930
26933
  function f() {
@@ -27364,27 +27367,27 @@ function dm({
27364
27367
  suppressTooltips: m = !1,
27365
27368
  ...f
27366
27369
  }) {
27367
- const { t: h } = s.useContext(Be), S = !!e.length, [y, w] = s.useState(!1), [T, D] = s.useState(S), N = s.useRef(null), k = s.useRef(null), b = s.useCallback(() => {
27370
+ const { t: h } = s.useContext(Be), S = !!e.length, [y, w] = s.useState(!1), [T, D] = s.useState(S), x = s.useRef(null), k = s.useRef(null), b = s.useCallback(() => {
27368
27371
  w(!1), o && o();
27369
27372
  }, []);
27370
27373
  s.useEffect(() => {
27371
27374
  y ? window.addEventListener("resize", b) : window.removeEventListener("resize", b);
27372
27375
  }, [y]);
27373
- const I = Qr("sps-task-queue-portal"), O = s.useContext(Ot), [M] = y ? ur(
27376
+ const I = Qr("sps-task-queue-portal"), L = s.useContext(Ot), [M] = y ? ur(
27374
27377
  k,
27375
- N,
27378
+ x,
27376
27379
  t,
27377
27380
  {
27378
27381
  altPosition: t,
27379
- ...O
27382
+ ...L
27380
27383
  }
27381
- ) : [{}, !1], L = r.position || be.BOTTOM_RIGHT, R = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === xs.IN_PROGRESS).length, $ = e.some((F) => F.status === xs.COMPLETED || F.status === xs.ERRORED), x = s.useRef(o);
27382
- x.current = o;
27384
+ ) : [{}, !1], O = r.position || be.BOTTOM_RIGHT, R = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === xs.IN_PROGRESS).length, $ = e.some((F) => F.status === xs.COMPLETED || F.status === xs.ERRORED), N = s.useRef(o);
27385
+ N.current = o;
27383
27386
  const A = s.useRef(null), Q = () => {
27384
27387
  S && !y ? (w(!0), a && a()) : y && (w(!1), o && o()), A.current && (A.current.scrollTop = 0);
27385
27388
  }, q = (F) => F.status === xs.IN_PROGRESS ? Ul[F.status] : `sps-icon sps-icon-${Ul[F.status]}`;
27386
27389
  s.useEffect(() => {
27387
- y && !S && (w(!1), x.current && x.current());
27390
+ y && !S && (w(!1), N.current && N.current());
27388
27391
  }, [y, S]);
27389
27392
  const W = s.useRef();
27390
27393
  s.useEffect(() => {
@@ -27393,7 +27396,7 @@ function dm({
27393
27396
  }, Gl)) : (W.current && (window.clearTimeout(W.current), W.current = void 0), D(!1));
27394
27397
  }, [K]), s.useEffect(() => {
27395
27398
  const F = () => {
27396
- w((z) => (z && x.current && x.current(), !1));
27399
+ w((z) => (z && N.current && N.current(), !1));
27397
27400
  };
27398
27401
  return document.addEventListener("click", F), () => {
27399
27402
  document.removeEventListener("click", F);
@@ -27443,7 +27446,7 @@ function dm({
27443
27446
  ...f
27444
27447
  }, /* @__PURE__ */ s.createElement("button", {
27445
27448
  type: "button",
27446
- ref: N,
27449
+ ref: x,
27447
27450
  className: "sps-task-queue__button",
27448
27451
  title: "Task Queue",
27449
27452
  onClick: Q
@@ -27455,8 +27458,8 @@ function dm({
27455
27458
  className: "sps-icon sps-icon-list",
27456
27459
  "aria-hidden": "true"
27457
27460
  })), /* @__PURE__ */ s.createElement(Lt, {
27458
- for: N,
27459
- position: L,
27461
+ for: x,
27462
+ position: O,
27460
27463
  kind: R,
27461
27464
  showOn: S ? it.MANUAL : it.MOUSEOVER,
27462
27465
  isShown: T && !y ? ye.VISIBLE : ye.HIDDEN,
@@ -27857,15 +27860,15 @@ const mx = {
27857
27860
  additionalText: S,
27858
27861
  ...y
27859
27862
  }, w) => {
27860
- const T = r || n, { wrapperId: D, controlId: N } = wt(o, T), k = s.useRef(null);
27861
- function b(L, R) {
27862
- T && (T.setValue(L), T.markAsDirty()), c && k.current && c(R || new Pn(k.current));
27863
+ const T = r || n, { wrapperId: D, controlId: x } = wt(o, T), k = s.useRef(null);
27864
+ function b(O, R) {
27865
+ T && (T.setValue(O), T.markAsDirty()), c && k.current && c(R || new Pn(k.current));
27863
27866
  }
27864
27867
  function I() {
27865
27868
  k.current && (k.current.value = "", b(""));
27866
27869
  }
27867
- function O(L) {
27868
- b(L.target.value, L);
27870
+ function L(O) {
27871
+ b(O.target.value, O);
27869
27872
  }
27870
27873
  const M = V(
27871
27874
  f || "sps-text-input",
@@ -27889,10 +27892,10 @@ const mx = {
27889
27892
  ref: k,
27890
27893
  "data-testid": `${u}__input`,
27891
27894
  className: "sps-text-input__input",
27892
- id: N,
27895
+ id: x,
27893
27896
  name: l,
27894
27897
  placeholder: p,
27895
- onChange: O,
27898
+ onChange: L,
27896
27899
  title: m,
27897
27900
  value: h,
27898
27901
  disabled: t,
@@ -28069,32 +28072,32 @@ function pm({
28069
28072
  additionalText: S,
28070
28073
  ...y
28071
28074
  }) {
28072
- const w = r || n, { wrapperId: T, controlId: D } = wt(a, w), N = s.useRef(null);
28073
- function k(M, L) {
28074
- w && (w.setValue(M), w.markAsDirty()), l && N.current && l(L || new Pn(N.current));
28075
+ const w = r || n, { wrapperId: T, controlId: D } = wt(a, w), x = s.useRef(null);
28076
+ function k(M, O) {
28077
+ w && (w.setValue(M), w.markAsDirty()), l && x.current && l(O || new Pn(x.current));
28075
28078
  }
28076
28079
  function b() {
28077
- N.current && (N.current.value = "", k(""));
28080
+ x.current && (x.current.value = "", k(""));
28078
28081
  }
28079
28082
  function I(M) {
28080
28083
  k(M.target.value, M);
28081
28084
  }
28082
- const O = V(
28085
+ const L = V(
28083
28086
  f || "sps-textarea",
28084
28087
  e
28085
28088
  );
28086
28089
  return /* @__PURE__ */ s.createElement(ut, {
28087
28090
  id: T,
28088
- className: O,
28091
+ className: L,
28089
28092
  formControl: n,
28090
28093
  formMeta: r,
28091
- inputRef: N,
28094
+ inputRef: x,
28092
28095
  ref: p,
28093
28096
  "data-testid": m
28094
28097
  }, /* @__PURE__ */ s.createElement("div", {
28095
28098
  className: "position-relative"
28096
28099
  }, /* @__PURE__ */ s.createElement("textarea", {
28097
- ref: N,
28100
+ ref: x,
28098
28101
  rows: u,
28099
28102
  "data-testid": `${m}__input`,
28100
28103
  className: "sps-form-control input--clearable",
@@ -28273,13 +28276,13 @@ function mm(e) {
28273
28276
  ...y
28274
28277
  } = e;
28275
28278
  cv("SpsToggle", um, e);
28276
- const w = l || o, [T, D] = s.useState(t), { wrapperId: N, controlId: k } = wt(c, w), b = `${N}_status-label`, I = `${N}_description`, O = s.useRef(null);
28279
+ const w = l || o, [T, D] = s.useState(t), { wrapperId: x, controlId: k } = wt(c, w), b = `${x}_status-label`, I = `${x}_description`, L = s.useRef(null);
28277
28280
  s.useEffect(() => D(t), [t]);
28278
28281
  function M(R) {
28279
28282
  var K;
28280
- D(R.target.checked), w && (w.setValue(R.target.checked), w.markAsDirty()), m && m(R.target.checked), (K = O.current) == null || K.focus();
28283
+ D(R.target.checked), w && (w.setValue(R.target.checked), w.markAsDirty()), m && m(R.target.checked), (K = L.current) == null || K.focus();
28281
28284
  }
28282
- const L = V(
28285
+ const O = V(
28283
28286
  S || "sps-toggle",
28284
28287
  T && "sps-toggle--active",
28285
28288
  u && "sps-toggle--large",
@@ -28287,17 +28290,17 @@ function mm(e) {
28287
28290
  n
28288
28291
  );
28289
28292
  return /* @__PURE__ */ s.createElement(ut, {
28290
- id: N,
28293
+ id: x,
28291
28294
  formControl: o,
28292
28295
  formMeta: l,
28293
- inputRef: O,
28296
+ inputRef: L,
28294
28297
  ref: f,
28295
28298
  "data-testid": `${h}`
28296
28299
  }, /* @__PURE__ */ s.createElement("div", {
28297
- className: L
28300
+ className: O
28298
28301
  }, /* @__PURE__ */ s.createElement("input", {
28299
28302
  type: "checkbox",
28300
- ref: O,
28303
+ ref: L,
28301
28304
  className: "sps-toggle__input",
28302
28305
  id: k,
28303
28306
  checked: T || !1,
@@ -29686,7 +29689,7 @@ function Nm({
29686
29689
  "data-testid": h,
29687
29690
  ...S
29688
29691
  }) {
29689
- const y = r || n, { wrapperId: w, controlId: T } = wt(a, y), [D, N] = sn({
29692
+ const y = r || n, { wrapperId: w, controlId: T } = wt(a, y), [D, x] = sn({
29690
29693
  keyDown: null,
29691
29694
  searchText: "",
29692
29695
  activeTagIndex: null,
@@ -29696,23 +29699,23 @@ function Nm({
29696
29699
  l && l(D.searchText);
29697
29700
  }, [D.searchText]);
29698
29701
  const k = s.useRef(null), b = s.useRef(null), I = s.useRef(null);
29699
- function O() {
29702
+ function L() {
29700
29703
  setTimeout(() => {
29701
29704
  var W;
29702
29705
  (W = b.current) == null || W.focus();
29703
29706
  }, 0);
29704
29707
  }
29705
29708
  function M(W) {
29706
- N({ searchText: "" }), y && (y.setValue(W), y.markAsDirty()), o && o(
29709
+ x({ searchText: "" }), y && (y.setValue(W), y.markAsDirty()), o && o(
29707
29710
  new Pn({ value: W })
29708
29711
  );
29709
29712
  }
29710
- function L(W) {
29713
+ function O(W) {
29711
29714
  const J = (u || []).filter((H, F) => F !== W);
29712
29715
  M(J);
29713
29716
  }
29714
29717
  function R(W) {
29715
- N({ searchText: W.target.value });
29718
+ x({ searchText: W.target.value });
29716
29719
  }
29717
29720
  function K(W) {
29718
29721
  if (I.current && I.current.children.length && typeof W == "number") {
@@ -29722,7 +29725,7 @@ function Nm({
29722
29725
  }
29723
29726
  const _ = s.useCallback(
29724
29727
  (W) => {
29725
- N({ activeTagIndex: null, searchText: "" });
29728
+ x({ activeTagIndex: null, searchText: "" });
29726
29729
  const J = D.searchText.trim(), H = u || [];
29727
29730
  J && H.indexOf(J) === -1 && M([...H, ...dd(J, f)]), !((W.key === "Tab" || W.key === "Enter") && !D.searchText) && W.preventDefault();
29728
29731
  },
@@ -29735,27 +29738,27 @@ function Nm({
29735
29738
  function $(W) {
29736
29739
  _(W);
29737
29740
  }
29738
- function x(W) {
29741
+ function N(W) {
29739
29742
  var J;
29740
29743
  if (!t) {
29741
29744
  const H = !W.target.selectionStart && u && u.length, F = u ? u.length : 0;
29742
29745
  switch (W.key) {
29743
29746
  case "Backspace":
29744
29747
  if (D.activeTagIndex === F - 1) {
29745
- L(D.activeTagIndex), O();
29748
+ O(D.activeTagIndex), L();
29746
29749
  return;
29747
29750
  }
29748
29751
  if (D.activeTagIndex !== null) {
29749
- L(D.activeTagIndex);
29752
+ O(D.activeTagIndex);
29750
29753
  return;
29751
29754
  }
29752
29755
  if (H) {
29753
- M(u.slice(0, F - 1)), O();
29756
+ M(u.slice(0, F - 1)), L();
29754
29757
  return;
29755
29758
  }
29756
29759
  break;
29757
29760
  case "Delete":
29758
- D.activeTagIndex !== null && (L(D.activeTagIndex), O());
29761
+ D.activeTagIndex !== null && (O(D.activeTagIndex), L());
29759
29762
  break;
29760
29763
  case "Enter":
29761
29764
  case "Tab":
@@ -29770,21 +29773,21 @@ function Nm({
29770
29773
  case "Left":
29771
29774
  case "ArrowLeft":
29772
29775
  if (H) {
29773
- D.activeTagIndex === null ? (N({ activeTagIndex: F - 1 }), K(F - 1)) : D.activeTagIndex > 0 && (N({ activeTagIndex: D.activeTagIndex - 1 }), K(D.activeTagIndex - 1));
29776
+ D.activeTagIndex === null ? (x({ activeTagIndex: F - 1 }), K(F - 1)) : D.activeTagIndex > 0 && (x({ activeTagIndex: D.activeTagIndex - 1 }), K(D.activeTagIndex - 1));
29774
29777
  return;
29775
29778
  }
29776
29779
  break;
29777
29780
  case "Right":
29778
29781
  case "ArrowRight":
29779
29782
  if (D.activeTagIndex !== null) {
29780
- D.activeTagIndex === F - 1 ? (N({ activeTagIndex: null }), (J = b.current) == null || J.focus()) : (N({ activeTagIndex: D.activeTagIndex + 1 }), K(D.activeTagIndex + 1));
29783
+ D.activeTagIndex === F - 1 ? (x({ activeTagIndex: null }), (J = b.current) == null || J.focus()) : (x({ activeTagIndex: D.activeTagIndex + 1 }), K(D.activeTagIndex + 1));
29781
29784
  return;
29782
29785
  }
29783
29786
  break;
29784
29787
  }
29785
29788
  for (const z of f)
29786
29789
  W.key === z && _(W);
29787
- W.persist(), N({ keyDown: W });
29790
+ W.persist(), x({ keyDown: W });
29788
29791
  }
29789
29792
  }
29790
29793
  function A(W) {
@@ -29803,7 +29806,7 @@ function Nm({
29803
29806
  ref: k,
29804
29807
  inputRef: b,
29805
29808
  focusInputOnClick: !0,
29806
- onKeyDown: x,
29809
+ onKeyDown: N,
29807
29810
  role: "listbox",
29808
29811
  "aria-multiselectable": !0,
29809
29812
  "aria-activedescendant": q[D.activeTagIndex || 0],
@@ -29826,7 +29829,7 @@ function Nm({
29826
29829
  disabled: t,
29827
29830
  "aria-selected": "true",
29828
29831
  key: q[J],
29829
- onRemove: () => L(J)
29832
+ onRemove: () => O(J)
29830
29833
  }, /* @__PURE__ */ s.createElement("span", null, W))), /* @__PURE__ */ s.createElement("input", {
29831
29834
  type: "text",
29832
29835
  ref: b,
@@ -29837,7 +29840,7 @@ function Nm({
29837
29840
  id: T,
29838
29841
  onBlur: $,
29839
29842
  onChange: R,
29840
- onKeyDown: x,
29843
+ onKeyDown: N,
29841
29844
  disabled: t,
29842
29845
  role: "listbox",
29843
29846
  "aria-multiselectable": "true",
@@ -30930,10 +30933,10 @@ function Vm(e) {
30930
30933
  target: null,
30931
30934
  isOverTarget: !1,
30932
30935
  pointerType: null
30933
- }), { addGlobalListener: D, removeAllGlobalListeners: N } = Am(), k = He(() => {
30936
+ }), { addGlobalListener: D, removeAllGlobalListeners: x } = Am(), k = He(() => {
30934
30937
  let b = T.current, I = (_, $) => {
30935
- let { onPressStart: x, onPressChange: A, isDisabled: Q } = S.current;
30936
- Q || b.didFirePressStart || (x && x({
30938
+ let { onPressStart: N, onPressChange: A, isDisabled: Q } = S.current;
30939
+ Q || b.didFirePressStart || (N && N({
30937
30940
  type: "pressstart",
30938
30941
  pointerType: $,
30939
30942
  target: _.currentTarget,
@@ -30942,7 +30945,7 @@ function Vm(e) {
30942
30945
  ctrlKey: _.ctrlKey,
30943
30946
  altKey: _.altKey
30944
30947
  }), A && A(!0), b.didFirePressStart = !0, w(!0));
30945
- }, O = (_, $, x = !0) => {
30948
+ }, L = (_, $, N = !0) => {
30946
30949
  let { onPressEnd: A, onPressChange: Q, onPress: q, isDisabled: W } = S.current;
30947
30950
  !b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, A && A({
30948
30951
  type: "pressend",
@@ -30952,7 +30955,7 @@ function Vm(e) {
30952
30955
  metaKey: _.metaKey,
30953
30956
  ctrlKey: _.ctrlKey,
30954
30957
  altKey: _.altKey
30955
- }), Q && Q(!1), w(!1), q && x && !W && q({
30958
+ }), Q && Q(!1), w(!1), q && N && !W && q({
30956
30959
  type: "press",
30957
30960
  pointerType: $,
30958
30961
  target: _.currentTarget,
@@ -30962,8 +30965,8 @@ function Vm(e) {
30962
30965
  altKey: _.altKey
30963
30966
  }));
30964
30967
  }, M = (_, $) => {
30965
- let { onPressUp: x, isDisabled: A } = S.current;
30966
- A || x && x({
30968
+ let { onPressUp: N, isDisabled: A } = S.current;
30969
+ A || N && N({
30967
30970
  type: "pressup",
30968
30971
  pointerType: $,
30969
30972
  target: _.currentTarget,
@@ -30972,8 +30975,8 @@ function Vm(e) {
30972
30975
  ctrlKey: _.ctrlKey,
30973
30976
  altKey: _.altKey
30974
30977
  });
30975
- }, L = (_) => {
30976
- b.isPressed && (b.isOverTarget && O(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, N(), m || As(b.target));
30978
+ }, O = (_) => {
30979
+ b.isPressed && (b.isOverTarget && L(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || As(b.target));
30977
30980
  }, R = {
30978
30981
  onKeyDown(_) {
30979
30982
  mo(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Po(_.currentTarget) && _.stopPropagation();
@@ -30982,13 +30985,13 @@ function Vm(e) {
30982
30985
  mo(_.nativeEvent, _.currentTarget) && !_.repeat && _.currentTarget.contains(_.target) && M(Qt(b.target, _), "keyboard");
30983
30986
  },
30984
30987
  onClick(_) {
30985
- _ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || na(_.nativeEvent)) && (!l && !p && ir(_.currentTarget), I(_, "virtual"), M(_, "virtual"), O(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
30988
+ _ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || na(_.nativeEvent)) && (!l && !p && ir(_.currentTarget), I(_, "virtual"), M(_, "virtual"), L(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
30986
30989
  }
30987
30990
  }, K = (_) => {
30988
30991
  if (b.isPressed && mo(_, b.target)) {
30989
30992
  Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
30990
30993
  let $ = _.target;
30991
- O(Qt(b.target, _), "keyboard", b.target.contains($)), N(), b.target instanceof HTMLElement && b.target.contains($) && (Po(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
30994
+ L(Qt(b.target, _), "keyboard", b.target.contains($)), x(), b.target instanceof HTMLElement && b.target.contains($) && (Po(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
30992
30995
  }
30993
30996
  };
30994
30997
  if (typeof PointerEvent < "u") {
@@ -30998,7 +31001,7 @@ function Vm(e) {
30998
31001
  b.pointerType = "virtual";
30999
31002
  return;
31000
31003
  }
31001
- fo(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && ir(A.currentTarget), m || yd(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", x, !1));
31004
+ fo(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && ir(A.currentTarget), m || yd(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
31002
31005
  }
31003
31006
  }, R.onMouseDown = (A) => {
31004
31007
  !A.currentTarget.contains(A.target) || A.button === 0 && (fo(A.currentTarget) && A.preventDefault(), A.stopPropagation());
@@ -31006,55 +31009,55 @@ function Vm(e) {
31006
31009
  !A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && qn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
31007
31010
  };
31008
31011
  let _ = (A) => {
31009
- A.pointerId === b.activePointerId && (qn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(Qt(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(Qt(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
31012
+ A.pointerId === b.activePointerId && (qn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(Qt(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(Qt(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(A)));
31010
31013
  }, $ = (A) => {
31011
- A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ? O(Qt(b.target, A), b.pointerType) : b.isOverTarget && O(Qt(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, N(), m || As(b.target));
31012
- }, x = (A) => {
31013
- L(A);
31014
+ A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ? L(Qt(b.target, A), b.pointerType) : b.isOverTarget && L(Qt(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || As(b.target));
31015
+ }, N = (A) => {
31016
+ O(A);
31014
31017
  };
31015
31018
  R.onDragStart = (A) => {
31016
- !A.currentTarget.contains(A.target) || L(A);
31019
+ !A.currentTarget.contains(A.target) || O(A);
31017
31020
  };
31018
31021
  } else {
31019
- R.onMouseDown = (x) => {
31020
- x.button !== 0 || !x.currentTarget.contains(x.target) || (fo(x.currentTarget) && x.preventDefault(), x.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = x.currentTarget, b.pointerType = na(x.nativeEvent) ? "virtual" : "mouse", !l && !p && ir(x.currentTarget), I(x, b.pointerType), D(document, "mouseup", _, !1)));
31021
- }, R.onMouseEnter = (x) => {
31022
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(x, b.pointerType)));
31023
- }, R.onMouseLeave = (x) => {
31024
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(x, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(x)));
31025
- }, R.onMouseUp = (x) => {
31026
- !x.currentTarget.contains(x.target) || !b.ignoreEmulatedMouseEvents && x.button === 0 && M(x, b.pointerType);
31022
+ R.onMouseDown = (N) => {
31023
+ N.button !== 0 || !N.currentTarget.contains(N.target) || (fo(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = na(N.nativeEvent) ? "virtual" : "mouse", !l && !p && ir(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
31024
+ }, R.onMouseEnter = (N) => {
31025
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
31026
+ }, R.onMouseLeave = (N) => {
31027
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, L(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(N)));
31028
+ }, R.onMouseUp = (N) => {
31029
+ !N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
31027
31030
  };
31028
- let _ = (x) => {
31029
- if (x.button === 0) {
31030
- if (b.isPressed = !1, N(), b.ignoreEmulatedMouseEvents) {
31031
+ let _ = (N) => {
31032
+ if (N.button === 0) {
31033
+ if (b.isPressed = !1, x(), b.ignoreEmulatedMouseEvents) {
31031
31034
  b.ignoreEmulatedMouseEvents = !1;
31032
31035
  return;
31033
31036
  }
31034
- qn(x, b.target) ? O(Qt(b.target, x), b.pointerType) : b.isOverTarget && O(Qt(b.target, x), b.pointerType, !1), b.isOverTarget = !1;
31037
+ qn(N, b.target) ? L(Qt(b.target, N), b.pointerType) : b.isOverTarget && L(Qt(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
31035
31038
  }
31036
31039
  };
31037
- R.onTouchStart = (x) => {
31038
- if (!x.currentTarget.contains(x.target))
31040
+ R.onTouchStart = (N) => {
31041
+ if (!N.currentTarget.contains(N.target))
31039
31042
  return;
31040
- x.stopPropagation();
31041
- let A = EI(x.nativeEvent);
31042
- !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = x.currentTarget, b.pointerType = "touch", !l && !p && ir(x.currentTarget), m || yd(b.target), I(x, b.pointerType), D(window, "scroll", $, !0));
31043
- }, R.onTouchMove = (x) => {
31044
- if (!x.currentTarget.contains(x.target) || (x.stopPropagation(), !b.isPressed))
31043
+ N.stopPropagation();
31044
+ let A = EI(N.nativeEvent);
31045
+ !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && ir(N.currentTarget), m || yd(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
31046
+ }, R.onTouchMove = (N) => {
31047
+ if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31045
31048
  return;
31046
- let A = Ed(x.nativeEvent, b.activePointerId);
31047
- A && qn(A, x.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(x, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(x, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(x));
31048
- }, R.onTouchEnd = (x) => {
31049
- if (!x.currentTarget.contains(x.target) || (x.stopPropagation(), !b.isPressed))
31049
+ let A = Ed(N.nativeEvent, b.activePointerId);
31050
+ A && qn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(N));
31051
+ }, R.onTouchEnd = (N) => {
31052
+ if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31050
31053
  return;
31051
- let A = Ed(x.nativeEvent, b.activePointerId);
31052
- A && qn(A, x.currentTarget) ? (M(x, b.pointerType), O(x, b.pointerType)) : b.isOverTarget && O(x, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || As(b.target), N();
31053
- }, R.onTouchCancel = (x) => {
31054
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && L(x));
31054
+ let A = Ed(N.nativeEvent, b.activePointerId);
31055
+ A && qn(A, N.currentTarget) ? (M(N, b.pointerType), L(N, b.pointerType)) : b.isOverTarget && L(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || As(b.target), x();
31056
+ }, R.onTouchCancel = (N) => {
31057
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && O(N));
31055
31058
  };
31056
- let $ = (x) => {
31057
- b.isPressed && x.target.contains(b.target) && L({
31059
+ let $ = (N) => {
31060
+ b.isPressed && N.target.contains(b.target) && O({
31058
31061
  currentTarget: b.target,
31059
31062
  shiftKey: !1,
31060
31063
  ctrlKey: !1,
@@ -31062,8 +31065,8 @@ function Vm(e) {
31062
31065
  altKey: !1
31063
31066
  });
31064
31067
  };
31065
- R.onDragStart = (x) => {
31066
- !x.currentTarget.contains(x.target) || L(x);
31068
+ R.onDragStart = (N) => {
31069
+ !N.currentTarget.contains(N.target) || O(N);
31067
31070
  };
31068
31071
  }
31069
31072
  return R;
@@ -31071,7 +31074,7 @@ function Vm(e) {
31071
31074
  D,
31072
31075
  l,
31073
31076
  p,
31074
- N,
31077
+ x,
31075
31078
  m
31076
31079
  ]);
31077
31080
  return Le(() => () => {
@@ -31504,66 +31507,66 @@ function ZI(e) {
31504
31507
  let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: a = !1, shouldFocusWrap: o = !1, disallowEmptySelection: l = !1, disallowSelectAll: c = !1, selectOnFocus: p = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: m, allowsTabNavigation: f = !1, isVirtualized: h, scrollRef: S = r } = e, { direction: y } = km(), w = (M) => {
31505
31508
  if (M.altKey && M.key === "Tab" && M.preventDefault(), !r.current.contains(M.target))
31506
31509
  return;
31507
- const L = (x, A) => {
31508
- x != null && (t.setFocusedKey(x, A), M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(x) : p && !jm(M) && t.replaceSelection(x));
31510
+ const O = (N, A) => {
31511
+ N != null && (t.setFocusedKey(N, A), M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(N) : p && !jm(M) && t.replaceSelection(N));
31509
31512
  };
31510
31513
  switch (M.key) {
31511
31514
  case "ArrowDown":
31512
31515
  if (n.getKeyBelow) {
31513
31516
  var R, K;
31514
31517
  M.preventDefault();
31515
- let x = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (R = n.getFirstKey) === null || R === void 0 ? void 0 : R.call(n);
31516
- x == null && o && (x = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), L(x);
31518
+ let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (R = n.getFirstKey) === null || R === void 0 ? void 0 : R.call(n);
31519
+ N == null && o && (N = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), O(N);
31517
31520
  }
31518
31521
  break;
31519
31522
  case "ArrowUp":
31520
31523
  if (n.getKeyAbove) {
31521
31524
  var _, $;
31522
31525
  M.preventDefault();
31523
- let x = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (_ = n.getLastKey) === null || _ === void 0 ? void 0 : _.call(n);
31524
- x == null && o && (x = ($ = n.getLastKey) === null || $ === void 0 ? void 0 : $.call(n, t.focusedKey)), L(x);
31526
+ let N = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (_ = n.getLastKey) === null || _ === void 0 ? void 0 : _.call(n);
31527
+ N == null && o && (N = ($ = n.getLastKey) === null || $ === void 0 ? void 0 : $.call(n, t.focusedKey)), O(N);
31525
31528
  }
31526
31529
  break;
31527
31530
  case "ArrowLeft":
31528
31531
  if (n.getKeyLeftOf) {
31529
31532
  M.preventDefault();
31530
- let x = n.getKeyLeftOf(t.focusedKey);
31531
- L(x, y === "rtl" ? "first" : "last");
31533
+ let N = n.getKeyLeftOf(t.focusedKey);
31534
+ O(N, y === "rtl" ? "first" : "last");
31532
31535
  }
31533
31536
  break;
31534
31537
  case "ArrowRight":
31535
31538
  if (n.getKeyRightOf) {
31536
31539
  M.preventDefault();
31537
- let x = n.getKeyRightOf(t.focusedKey);
31538
- L(x, y === "rtl" ? "last" : "first");
31540
+ let N = n.getKeyRightOf(t.focusedKey);
31541
+ O(N, y === "rtl" ? "last" : "first");
31539
31542
  }
31540
31543
  break;
31541
31544
  case "Home":
31542
31545
  if (n.getFirstKey) {
31543
31546
  M.preventDefault();
31544
- let x = n.getFirstKey(t.focusedKey, nr(M));
31545
- t.setFocusedKey(x), nr(M) && M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(x) : p && t.replaceSelection(x);
31547
+ let N = n.getFirstKey(t.focusedKey, nr(M));
31548
+ t.setFocusedKey(N), nr(M) && M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(N) : p && t.replaceSelection(N);
31546
31549
  }
31547
31550
  break;
31548
31551
  case "End":
31549
31552
  if (n.getLastKey) {
31550
31553
  M.preventDefault();
31551
- let x = n.getLastKey(t.focusedKey, nr(M));
31552
- t.setFocusedKey(x), nr(M) && M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(x) : p && t.replaceSelection(x);
31554
+ let N = n.getLastKey(t.focusedKey, nr(M));
31555
+ t.setFocusedKey(N), nr(M) && M.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(N) : p && t.replaceSelection(N);
31553
31556
  }
31554
31557
  break;
31555
31558
  case "PageDown":
31556
31559
  if (n.getKeyPageBelow) {
31557
31560
  M.preventDefault();
31558
- let x = n.getKeyPageBelow(t.focusedKey);
31559
- L(x);
31561
+ let N = n.getKeyPageBelow(t.focusedKey);
31562
+ O(N);
31560
31563
  }
31561
31564
  break;
31562
31565
  case "PageUp":
31563
31566
  if (n.getKeyPageAbove) {
31564
31567
  M.preventDefault();
31565
- let x = n.getKeyPageAbove(t.focusedKey);
31566
- L(x);
31568
+ let N = n.getKeyPageAbove(t.focusedKey);
31569
+ O(N);
31567
31570
  }
31568
31571
  break;
31569
31572
  case "a":
@@ -31577,11 +31580,11 @@ function ZI(e) {
31577
31580
  if (M.shiftKey)
31578
31581
  r.current.focus();
31579
31582
  else {
31580
- let x = zI(r.current, {
31583
+ let N = zI(r.current, {
31581
31584
  tabbable: !0
31582
31585
  }), A, Q;
31583
31586
  do
31584
- Q = x.lastChild(), Q && (A = Q);
31587
+ Q = N.lastChild(), Q && (A = Q);
31585
31588
  while (Q);
31586
31589
  A && !A.contains(document.activeElement) && or(A);
31587
31590
  }
@@ -31608,15 +31611,15 @@ function ZI(e) {
31608
31611
  let K = ($) => {
31609
31612
  $ != null && (t.setFocusedKey($), p && t.replaceSelection($));
31610
31613
  }, _ = M.relatedTarget;
31611
- var L, R;
31612
- _ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((R = t.firstSelectedKey) !== null && R !== void 0 ? R : n.getFirstKey());
31614
+ var O, R;
31615
+ _ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((O = t.lastSelectedKey) !== null && O !== void 0 ? O : n.getLastKey()) : K((R = t.firstSelectedKey) !== null && R !== void 0 ? R : n.getFirstKey());
31613
31616
  } else if (!h) {
31614
31617
  S.current.scrollTop = T.current.top, S.current.scrollLeft = T.current.left;
31615
31618
  let K = S.current.querySelector(`[data-key="${t.focusedKey}"]`);
31616
31619
  K && (or(K), gd(S.current, K));
31617
31620
  }
31618
31621
  }
31619
- }, N = (M) => {
31622
+ }, x = (M) => {
31620
31623
  M.currentTarget.contains(M.relatedTarget) || t.setFocused(!1);
31621
31624
  };
31622
31625
  const k = pe(a);
@@ -31624,8 +31627,8 @@ function ZI(e) {
31624
31627
  if (k.current) {
31625
31628
  let M = null;
31626
31629
  a === "first" && (M = n.getFirstKey()), a === "last" && (M = n.getLastKey());
31627
- let L = t.selectedKeys;
31628
- L.size && (M = L.values().next().value), t.setFocused(!0), t.setFocusedKey(M), M == null && !m && Gm(r.current);
31630
+ let O = t.selectedKeys;
31631
+ O.size && (M = O.values().next().value), t.setFocused(!0), t.setFocusedKey(M), M == null && !m && Gm(r.current);
31629
31632
  }
31630
31633
  k.current = !1;
31631
31634
  }, []), Le(() => {
@@ -31641,7 +31644,7 @@ function ZI(e) {
31641
31644
  let b = {
31642
31645
  onKeyDown: w,
31643
31646
  onFocus: D,
31644
- onBlur: N,
31647
+ onBlur: x,
31645
31648
  onMouseDown(M) {
31646
31649
  M.currentTarget.contains(M.target) && M.preventDefault();
31647
31650
  }
@@ -31650,11 +31653,11 @@ function ZI(e) {
31650
31653
  selectionManager: t
31651
31654
  });
31652
31655
  u || (b = ba(I, b));
31653
- let O;
31654
- return m || (O = t.focusedKey == null ? 0 : -1), {
31656
+ let L;
31657
+ return m || (L = t.focusedKey == null ? 0 : -1), {
31655
31658
  collectionProps: {
31656
31659
  ...b,
31657
- tabIndex: O
31660
+ tabIndex: L
31658
31661
  }
31659
31662
  };
31660
31663
  }
@@ -31685,25 +31688,25 @@ function XI(e) {
31685
31688
  $.target === r.current && t.setFocusedKey(n);
31686
31689
  }
31687
31690
  }), p = p || t.isDisabled(n);
31688
- let S = !p && t.canSelectItem(n), y = u && !p, w = y && (t.selectionBehavior === "replace" ? !S : t.isEmpty), T = y && S && t.selectionBehavior === "replace", D = w || T, N = pe(null), k = D && S, b = pe(!1), I = pe(!1), O = {};
31689
- a ? (O.onPressStart = ($) => {
31690
- N.current = $.pointerType, b.current = k, $.pointerType === "keyboard" && (!D || Ld()) && f($);
31691
- }, m ? (O.onPressUp = ($) => {
31691
+ let S = !p && t.canSelectItem(n), y = u && !p, w = y && (t.selectionBehavior === "replace" ? !S : t.isEmpty), T = y && S && t.selectionBehavior === "replace", D = w || T, x = pe(null), k = D && S, b = pe(!1), I = pe(!1), L = {};
31692
+ a ? (L.onPressStart = ($) => {
31693
+ x.current = $.pointerType, b.current = k, $.pointerType === "keyboard" && (!D || Ld()) && f($);
31694
+ }, m ? (L.onPressUp = ($) => {
31692
31695
  $.pointerType !== "keyboard" && f($);
31693
- }, O.onPress = w ? () => u() : null) : O.onPress = ($) => {
31696
+ }, L.onPress = w ? () => u() : null) : L.onPress = ($) => {
31694
31697
  if (w || T && $.pointerType !== "mouse") {
31695
31698
  if ($.pointerType === "keyboard" && !_d())
31696
31699
  return;
31697
31700
  u();
31698
31701
  } else
31699
31702
  $.pointerType !== "keyboard" && f($);
31700
- }) : (O.onPressStart = ($) => {
31701
- N.current = $.pointerType, b.current = k, I.current = w, ($.pointerType === "mouse" && !w || $.pointerType === "keyboard" && (!u || Ld())) && f($);
31702
- }, O.onPress = ($) => {
31703
+ }) : (L.onPressStart = ($) => {
31704
+ x.current = $.pointerType, b.current = k, I.current = w, ($.pointerType === "mouse" && !w || $.pointerType === "keyboard" && (!u || Ld())) && f($);
31705
+ }, L.onPress = ($) => {
31703
31706
  ($.pointerType === "touch" || $.pointerType === "pen" || $.pointerType === "virtual" || $.pointerType === "keyboard" && D && _d() || $.pointerType === "mouse" && I.current) && (D ? u() : f($));
31704
- }), o || (h["data-key"] = n), O.preventFocusOnPress = l;
31705
- let { pressProps: M, isPressed: L } = Vm(O), R = T ? ($) => {
31706
- N.current === "mouse" && ($.stopPropagation(), $.preventDefault(), u());
31707
+ }), o || (h["data-key"] = n), L.preventFocusOnPress = l;
31708
+ let { pressProps: M, isPressed: O } = Vm(L), R = T ? ($) => {
31709
+ x.current === "mouse" && ($.stopPropagation(), $.preventDefault(), u());
31707
31710
  } : void 0, { longPressProps: K } = _I({
31708
31711
  isDisabled: !k,
31709
31712
  onLongPress($) {
@@ -31714,10 +31717,10 @@ function XI(e) {
31714
31717
  itemProps: ba(h, S || w ? M : {}, k ? K : {}, {
31715
31718
  onDoubleClick: R,
31716
31719
  onDragStart: ($) => {
31717
- N.current === "touch" && b.current && $.preventDefault();
31720
+ x.current === "touch" && b.current && $.preventDefault();
31718
31721
  }
31719
31722
  }),
31720
- isPressed: L,
31723
+ isPressed: O,
31721
31724
  isSelected: t.isSelected(n),
31722
31725
  isDisabled: p,
31723
31726
  allowsSelection: S,
@@ -31796,10 +31799,10 @@ function ek(e) {
31796
31799
  target: null,
31797
31800
  isOverTarget: !1,
31798
31801
  pointerType: null
31799
- }), { addGlobalListener: D, removeAllGlobalListeners: N } = tI(), k = He(() => {
31802
+ }), { addGlobalListener: D, removeAllGlobalListeners: x } = tI(), k = He(() => {
31800
31803
  let b = T.current, I = (_, $) => {
31801
- let { onPressStart: x, onPressChange: A, isDisabled: Q } = S.current;
31802
- Q || b.didFirePressStart || (x && x({
31804
+ let { onPressStart: N, onPressChange: A, isDisabled: Q } = S.current;
31805
+ Q || b.didFirePressStart || (N && N({
31803
31806
  type: "pressstart",
31804
31807
  pointerType: $,
31805
31808
  target: _.currentTarget,
@@ -31808,7 +31811,7 @@ function ek(e) {
31808
31811
  ctrlKey: _.ctrlKey,
31809
31812
  altKey: _.altKey
31810
31813
  }), A && A(!0), b.didFirePressStart = !0, w(!0));
31811
- }, O = (_, $, x = !0) => {
31814
+ }, L = (_, $, N = !0) => {
31812
31815
  let { onPressEnd: A, onPressChange: Q, onPress: q, isDisabled: W } = S.current;
31813
31816
  !b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, A && A({
31814
31817
  type: "pressend",
@@ -31818,7 +31821,7 @@ function ek(e) {
31818
31821
  metaKey: _.metaKey,
31819
31822
  ctrlKey: _.ctrlKey,
31820
31823
  altKey: _.altKey
31821
- }), Q && Q(!1), w(!1), q && x && !W && q({
31824
+ }), Q && Q(!1), w(!1), q && N && !W && q({
31822
31825
  type: "press",
31823
31826
  pointerType: $,
31824
31827
  target: _.currentTarget,
@@ -31828,8 +31831,8 @@ function ek(e) {
31828
31831
  altKey: _.altKey
31829
31832
  }));
31830
31833
  }, M = (_, $) => {
31831
- let { onPressUp: x, isDisabled: A } = S.current;
31832
- A || x && x({
31834
+ let { onPressUp: N, isDisabled: A } = S.current;
31835
+ A || N && N({
31833
31836
  type: "pressup",
31834
31837
  pointerType: $,
31835
31838
  target: _.currentTarget,
@@ -31838,8 +31841,8 @@ function ek(e) {
31838
31841
  ctrlKey: _.ctrlKey,
31839
31842
  altKey: _.altKey
31840
31843
  });
31841
- }, L = (_) => {
31842
- b.isPressed && (b.isOverTarget && O(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, N(), m || Fs(b.target));
31844
+ }, O = (_) => {
31845
+ b.isPressed && (b.isOverTarget && L(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
31843
31846
  }, R = {
31844
31847
  onKeyDown(_) {
31845
31848
  ho(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Vo(_.currentTarget) && _.stopPropagation();
@@ -31848,13 +31851,13 @@ function ek(e) {
31848
31851
  ho(_.nativeEvent, _.currentTarget) && !_.repeat && _.currentTarget.contains(_.target) && M(en(b.target, _), "keyboard");
31849
31852
  },
31850
31853
  onClick(_) {
31851
- _ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || $o(_.nativeEvent)) && (!l && !p && or(_.currentTarget), I(_, "virtual"), M(_, "virtual"), O(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
31854
+ _ && !_.currentTarget.contains(_.target) || _ && _.button === 0 && (_.stopPropagation(), l && _.preventDefault(), !b.ignoreClickAfterPress && !b.ignoreEmulatedMouseEvents && (b.pointerType === "virtual" || $o(_.nativeEvent)) && (!l && !p && or(_.currentTarget), I(_, "virtual"), M(_, "virtual"), L(_, "virtual")), b.ignoreEmulatedMouseEvents = !1, b.ignoreClickAfterPress = !1);
31852
31855
  }
31853
31856
  }, K = (_) => {
31854
31857
  if (b.isPressed && ho(_, b.target)) {
31855
31858
  Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
31856
31859
  let $ = _.target;
31857
- O(en(b.target, _), "keyboard", b.target.contains($)), N(), b.target instanceof HTMLElement && b.target.contains($) && (Vo(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
31860
+ L(en(b.target, _), "keyboard", b.target.contains($)), x(), b.target instanceof HTMLElement && b.target.contains($) && (Vo(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
31858
31861
  }
31859
31862
  };
31860
31863
  if (typeof PointerEvent < "u") {
@@ -31864,7 +31867,7 @@ function ek(e) {
31864
31867
  b.pointerType = "virtual";
31865
31868
  return;
31866
31869
  }
31867
- go(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && or(A.currentTarget), m || Od(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", x, !1));
31870
+ go(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && or(A.currentTarget), m || Od(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
31868
31871
  }
31869
31872
  }, R.onMouseDown = (A) => {
31870
31873
  !A.currentTarget.contains(A.target) || A.button === 0 && (go(A.currentTarget) && A.preventDefault(), A.stopPropagation());
@@ -31872,55 +31875,55 @@ function ek(e) {
31872
31875
  !A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && Xn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
31873
31876
  };
31874
31877
  let _ = (A) => {
31875
- A.pointerId === b.activePointerId && (Xn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(en(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(en(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
31878
+ A.pointerId === b.activePointerId && (Xn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(en(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(en(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(A)));
31876
31879
  }, $ = (A) => {
31877
- A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ? O(en(b.target, A), b.pointerType) : b.isOverTarget && O(en(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, N(), m || Fs(b.target));
31878
- }, x = (A) => {
31879
- L(A);
31880
+ A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ? L(en(b.target, A), b.pointerType) : b.isOverTarget && L(en(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
31881
+ }, N = (A) => {
31882
+ O(A);
31880
31883
  };
31881
31884
  R.onDragStart = (A) => {
31882
- !A.currentTarget.contains(A.target) || L(A);
31885
+ !A.currentTarget.contains(A.target) || O(A);
31883
31886
  };
31884
31887
  } else {
31885
- R.onMouseDown = (x) => {
31886
- x.button !== 0 || !x.currentTarget.contains(x.target) || (go(x.currentTarget) && x.preventDefault(), x.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = x.currentTarget, b.pointerType = $o(x.nativeEvent) ? "virtual" : "mouse", !l && !p && or(x.currentTarget), I(x, b.pointerType), D(document, "mouseup", _, !1)));
31887
- }, R.onMouseEnter = (x) => {
31888
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(x, b.pointerType)));
31889
- }, R.onMouseLeave = (x) => {
31890
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(x, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(x)));
31891
- }, R.onMouseUp = (x) => {
31892
- !x.currentTarget.contains(x.target) || !b.ignoreEmulatedMouseEvents && x.button === 0 && M(x, b.pointerType);
31888
+ R.onMouseDown = (N) => {
31889
+ N.button !== 0 || !N.currentTarget.contains(N.target) || (go(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = $o(N.nativeEvent) ? "virtual" : "mouse", !l && !p && or(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
31890
+ }, R.onMouseEnter = (N) => {
31891
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
31892
+ }, R.onMouseLeave = (N) => {
31893
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, L(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(N)));
31894
+ }, R.onMouseUp = (N) => {
31895
+ !N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
31893
31896
  };
31894
- let _ = (x) => {
31895
- if (x.button === 0) {
31896
- if (b.isPressed = !1, N(), b.ignoreEmulatedMouseEvents) {
31897
+ let _ = (N) => {
31898
+ if (N.button === 0) {
31899
+ if (b.isPressed = !1, x(), b.ignoreEmulatedMouseEvents) {
31897
31900
  b.ignoreEmulatedMouseEvents = !1;
31898
31901
  return;
31899
31902
  }
31900
- Xn(x, b.target) ? O(en(b.target, x), b.pointerType) : b.isOverTarget && O(en(b.target, x), b.pointerType, !1), b.isOverTarget = !1;
31903
+ Xn(N, b.target) ? L(en(b.target, N), b.pointerType) : b.isOverTarget && L(en(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
31901
31904
  }
31902
31905
  };
31903
- R.onTouchStart = (x) => {
31904
- if (!x.currentTarget.contains(x.target))
31906
+ R.onTouchStart = (N) => {
31907
+ if (!N.currentTarget.contains(N.target))
31905
31908
  return;
31906
- x.stopPropagation();
31907
- let A = tk(x.nativeEvent);
31908
- !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = x.currentTarget, b.pointerType = "touch", !l && !p && or(x.currentTarget), m || Od(b.target), I(x, b.pointerType), D(window, "scroll", $, !0));
31909
- }, R.onTouchMove = (x) => {
31910
- if (!x.currentTarget.contains(x.target) || (x.stopPropagation(), !b.isPressed))
31909
+ N.stopPropagation();
31910
+ let A = tk(N.nativeEvent);
31911
+ !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && or(N.currentTarget), m || Od(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
31912
+ }, R.onTouchMove = (N) => {
31913
+ if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31911
31914
  return;
31912
- let A = Rd(x.nativeEvent, b.activePointerId);
31913
- A && Xn(A, x.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(x, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(x, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(x));
31914
- }, R.onTouchEnd = (x) => {
31915
- if (!x.currentTarget.contains(x.target) || (x.stopPropagation(), !b.isPressed))
31915
+ let A = Rd(N.nativeEvent, b.activePointerId);
31916
+ A && Xn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(N));
31917
+ }, R.onTouchEnd = (N) => {
31918
+ if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31916
31919
  return;
31917
- let A = Rd(x.nativeEvent, b.activePointerId);
31918
- A && Xn(A, x.currentTarget) ? (M(x, b.pointerType), O(x, b.pointerType)) : b.isOverTarget && O(x, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || Fs(b.target), N();
31919
- }, R.onTouchCancel = (x) => {
31920
- !x.currentTarget.contains(x.target) || (x.stopPropagation(), b.isPressed && L(x));
31920
+ let A = Rd(N.nativeEvent, b.activePointerId);
31921
+ A && Xn(A, N.currentTarget) ? (M(N, b.pointerType), L(N, b.pointerType)) : b.isOverTarget && L(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || Fs(b.target), x();
31922
+ }, R.onTouchCancel = (N) => {
31923
+ !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && O(N));
31921
31924
  };
31922
- let $ = (x) => {
31923
- b.isPressed && x.target.contains(b.target) && L({
31925
+ let $ = (N) => {
31926
+ b.isPressed && N.target.contains(b.target) && O({
31924
31927
  currentTarget: b.target,
31925
31928
  shiftKey: !1,
31926
31929
  ctrlKey: !1,
@@ -31928,8 +31931,8 @@ function ek(e) {
31928
31931
  altKey: !1
31929
31932
  });
31930
31933
  };
31931
- R.onDragStart = (x) => {
31932
- !x.currentTarget.contains(x.target) || L(x);
31934
+ R.onDragStart = (N) => {
31935
+ !N.currentTarget.contains(N.target) || O(N);
31933
31936
  };
31934
31937
  }
31935
31938
  return R;
@@ -31937,7 +31940,7 @@ function ek(e) {
31937
31940
  D,
31938
31941
  l,
31939
31942
  p,
31940
- N,
31943
+ x,
31941
31944
  m
31942
31945
  ]);
31943
31946
  return Le(() => () => {
@@ -32237,9 +32240,9 @@ function bk(e) {
32237
32240
  e.disabledKeys
32238
32241
  ]), [T, D] = Ve(a);
32239
32242
  a === "replace" && T === "toggle" && typeof S == "object" && S.size === 0 && D("replace");
32240
- let N = pe(a);
32243
+ let x = pe(a);
32241
32244
  return Le(() => {
32242
- a !== N.current && (D(a), N.current = a);
32245
+ a !== x.current && (D(a), x.current = a);
32243
32246
  }, [
32244
32247
  a
32245
32248
  ]), {
@@ -32760,19 +32763,19 @@ function Bk({
32760
32763
  ...u
32761
32764
  }) {
32762
32765
  const { wrapperId: m, controlId: f } = wt(r, n), h = s.useRef(null);
32763
- function S(N) {
32764
- n && (n.setValue(N), n.markAsDirty()), o && o(N);
32766
+ function S(x) {
32767
+ n && (n.setValue(x), n.markAsDirty()), o && o(x);
32765
32768
  }
32766
32769
  function y() {
32767
32770
  S(null);
32768
32771
  }
32769
- function w(N) {
32770
- S(Rk(N.target.value));
32772
+ function w(x) {
32773
+ S(Rk(x.target.value));
32771
32774
  }
32772
- function T(N) {
32773
- N.currentTarget.setSelectionRange(
32774
- N.currentTarget.value.length,
32775
- N.currentTarget.value.length
32775
+ function T(x) {
32776
+ x.currentTarget.setSelectionRange(
32777
+ x.currentTarget.value.length,
32778
+ x.currentTarget.value.length
32776
32779
  );
32777
32780
  }
32778
32781
  const D = V(
@@ -33513,7 +33516,7 @@ function eM(e) {
33513
33516
  s.useEffect(() => {
33514
33517
  D(t || m[0]);
33515
33518
  }, [t]);
33516
- function N(b) {
33519
+ function x(b) {
33517
33520
  D(b), l && l(b);
33518
33521
  }
33519
33522
  const k = V(
@@ -33549,7 +33552,7 @@ function eM(e) {
33549
33552
  }, m.map((b) => /* @__PURE__ */ s.createElement("a", {
33550
33553
  className: V("sps-nav__item", "sps-nav__link", b === T && "active"),
33551
33554
  key: b,
33552
- onClick: () => N(b)
33555
+ onClick: () => x(b)
33553
33556
  }, /* @__PURE__ */ s.createElement("span", null, b), b === T && /* @__PURE__ */ s.createElement("span", {
33554
33557
  className: "sr-only"
33555
33558
  }, "(current)"))), y), /* @__PURE__ */ s.createElement("div", {
@@ -33791,7 +33794,7 @@ function tf({
33791
33794
  ...h
33792
33795
  }) {
33793
33796
  const S = s.useMemo(() => {
33794
- const D = !!r && !o && Array.isArray(a) && a.find((N) => N.key === r);
33797
+ const D = !!r && !o && Array.isArray(a) && a.find((x) => x.key === r);
33795
33798
  return D ? D.direction : void 0;
33796
33799
  }, [
33797
33800
  a,