@sme.up/ketchup2 2.0.0-SNAPSHOT-20250630074320 → 2.0.0-SNAPSHOT-20250630131738

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.
@@ -63,9 +63,9 @@ function Gr() {
63
63
  return "StrictMode";
64
64
  case v:
65
65
  return "Suspense";
66
- case w:
67
- return "SuspenseList";
68
66
  case S:
67
+ return "SuspenseList";
68
+ case w:
69
69
  return "Activity";
70
70
  }
71
71
  if (typeof h == "object")
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  function f(h) {
241
241
  typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
242
242
  }
243
- var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), F = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, A = Array.isArray, M = console.createTask ? console.createTask : function() {
243
+ var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), w = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), F = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, A = Array.isArray, M = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  d = {
@@ -891,13 +891,13 @@ var an = sn(), Ce = /* @__PURE__ */ new Map(), jr = function(e) {
891
891
  path: [],
892
892
  pattern: ["fill", "stroke"],
893
893
  radialGradient: ["fill", "stroke"]
894
- }, D, v, w, C, _;
894
+ }, D, v, S, C, _;
895
895
  Object.keys(O).forEach(function(X) {
896
- D = X, w = O[X], v = f.querySelectorAll(D + "[id]");
896
+ D = X, S = O[X], v = f.querySelectorAll(D + "[id]");
897
897
  for (var V = function(L, $) {
898
898
  C = v[L].id, _ = C + "-" + fn();
899
899
  var I;
900
- Array.prototype.forEach.call(w, function(H) {
900
+ Array.prototype.forEach.call(S, function(H) {
901
901
  I = f.querySelectorAll("[" + H + '*="' + C + '"]');
902
902
  for (var Z = 0, re = I.length; Z < re; Z++) {
903
903
  var se = I[Z].getAttribute(H);
@@ -916,8 +916,8 @@ var an = sn(), Ce = /* @__PURE__ */ new Map(), jr = function(e) {
916
916
  });
917
917
  }
918
918
  f.removeAttribute("xmlns:a");
919
- for (var S = f.querySelectorAll("script"), R = [], F, P, A = 0, M = S.length; A < M; A++)
920
- P = S[A].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (F = S[A].innerText || S[A].textContent, F && R.push(F), f.removeChild(S[A]));
919
+ for (var w = f.querySelectorAll("script"), R = [], F, P, A = 0, M = w.length; A < M; A++)
920
+ P = w[A].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (F = w[A].innerText || w[A].textContent, F && R.push(F), f.removeChild(w[A]));
921
921
  if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
922
922
  for (var N = 0, W = R.length; N < W; N++)
923
923
  new Function(R[N])(window);
@@ -939,11 +939,11 @@ var an = sn(), Ce = /* @__PURE__ */ new Map(), jr = function(e) {
939
939
  } : l, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, y = p === void 0 ? !1 : p, E = n.renumerateIRIElements, T = E === void 0 ? !0 : E;
940
940
  if (e && "length" in e)
941
941
  for (var b = 0, O = 0, D = e.length; O < D; O++)
942
- Kt(e[O], m, T, f, y, c, function(v, w) {
943
- o(v, w), e && "length" in e && e.length === ++b && a(b);
942
+ Kt(e[O], m, T, f, y, c, function(v, S) {
943
+ o(v, S), e && "length" in e && e.length === ++b && a(b);
944
944
  });
945
- else e ? Kt(e, m, T, f, y, c, function(v, w) {
946
- o(v, w), a(1), e = null;
945
+ else e ? Kt(e, m, T, f, y, c, function(v, S) {
946
+ o(v, S), a(1), e = null;
947
947
  }) : a(0);
948
948
  }, Xe = { exports: {} }, Ze = { exports: {} }, Q = {};
949
949
  /** @license React v16.13.1
@@ -961,8 +961,8 @@ function hn() {
961
961
  var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, T = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
962
962
  function O(v) {
963
963
  if (typeof v == "object" && v !== null) {
964
- var w = v.$$typeof;
965
- switch (w) {
964
+ var S = v.$$typeof;
965
+ switch (S) {
966
966
  case e:
967
967
  switch (v = v.type, v) {
968
968
  case l:
@@ -981,11 +981,11 @@ function hn() {
981
981
  case i:
982
982
  return v;
983
983
  default:
984
- return w;
984
+ return S;
985
985
  }
986
986
  }
987
987
  case t:
988
- return w;
988
+ return S;
989
989
  }
990
990
  }
991
991
  }
@@ -1069,7 +1069,7 @@ function mn() {
1069
1069
  }
1070
1070
  }
1071
1071
  }
1072
- var v = l, w = c, C = o, _ = i, S = e, R = u, F = n, P = p, A = m, M = t, N = a, W = s, z = f, X = !1;
1072
+ var v = l, S = c, C = o, _ = i, w = e, R = u, F = n, P = p, A = m, M = t, N = a, W = s, z = f, X = !1;
1073
1073
  function V(k) {
1074
1074
  return X || (X = !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.")), h(k) || D(k) === l;
1075
1075
  }
@@ -1109,7 +1109,7 @@ function mn() {
1109
1109
  function ae(k) {
1110
1110
  return D(k) === f;
1111
1111
  }
1112
- ee.AsyncMode = v, ee.ConcurrentMode = w, ee.ContextConsumer = C, ee.ContextProvider = _, ee.Element = S, ee.ForwardRef = R, ee.Fragment = F, ee.Lazy = P, ee.Memo = A, ee.Portal = M, ee.Profiler = N, ee.StrictMode = W, ee.Suspense = z, ee.isAsyncMode = V, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = j, ee.isElement = L, ee.isForwardRef = $, ee.isFragment = I, ee.isLazy = U, ee.isMemo = B, ee.isPortal = Y, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = O, ee.typeOf = D;
1112
+ ee.AsyncMode = v, ee.ConcurrentMode = S, ee.ContextConsumer = C, ee.ContextProvider = _, ee.Element = w, ee.ForwardRef = R, ee.Fragment = F, ee.Lazy = P, ee.Memo = A, ee.Portal = M, ee.Profiler = N, ee.StrictMode = W, ee.Suspense = z, ee.isAsyncMode = V, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = j, ee.isElement = L, ee.isForwardRef = $, ee.isFragment = I, ee.isLazy = U, ee.isMemo = B, ee.isPortal = Y, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = O, ee.typeOf = D;
1113
1113
  }()), ee;
1114
1114
  }
1115
1115
  var Jt;
@@ -1264,11 +1264,11 @@ function vn() {
1264
1264
  arrayOf: O,
1265
1265
  element: D(),
1266
1266
  elementType: v(),
1267
- instanceOf: w,
1267
+ instanceOf: S,
1268
1268
  node: R(),
1269
1269
  objectOf: _,
1270
1270
  oneOf: C,
1271
- oneOfType: S,
1271
+ oneOfType: w,
1272
1272
  shape: P,
1273
1273
  exact: A
1274
1274
  };
@@ -1359,7 +1359,7 @@ function vn() {
1359
1359
  }
1360
1360
  return E(h);
1361
1361
  }
1362
- function w(h) {
1362
+ function S(h) {
1363
1363
  function x(j, L, $, I, U) {
1364
1364
  if (!(j[L] instanceof h)) {
1365
1365
  var B = h.name || d, Y = V(j[L]);
@@ -1403,7 +1403,7 @@ function vn() {
1403
1403
  }
1404
1404
  return E(x);
1405
1405
  }
1406
- function S(h) {
1406
+ function w(h) {
1407
1407
  if (!Array.isArray(h))
1408
1408
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1409
1409
  for (var x = 0; x < h.length; x++) {
@@ -1660,16 +1660,16 @@ var oe = /* @__PURE__ */ bn(), Sn = function(e) {
1660
1660
  }, function() {
1661
1661
  try {
1662
1662
  y(_);
1663
- } catch (S) {
1664
- O(S);
1663
+ } catch (w) {
1664
+ O(w);
1665
1665
  }
1666
1666
  });
1667
1667
  }, v = function(C) {
1668
1668
  if (C.setAttribute("role", "img"), i) {
1669
1669
  var _ = C.querySelector(":scope > desc");
1670
1670
  _ && C.removeChild(_);
1671
- var S = document.createElement("desc");
1672
- S.innerHTML = i, C.prepend(S);
1671
+ var w = document.createElement("desc");
1672
+ w.innerHTML = i, C.prepend(w);
1673
1673
  }
1674
1674
  if (f) {
1675
1675
  var R = C.querySelector(":scope > title");
@@ -1783,8 +1783,8 @@ const ea = (r) => {
1783
1783
  svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1784
1784
  }, D = () => {
1785
1785
  !a && c && l && l();
1786
- }, v = (w) => {
1787
- !a && c && (w.key === "Enter" || w.key === " ") && (w.preventDefault(), D());
1786
+ }, v = (S) => {
1787
+ !a && c && (S.key === "Enter" || S.key === " ") && (S.preventDefault(), D());
1788
1788
  };
1789
1789
  return /* @__PURE__ */ g.jsx(g.Fragment, { children: E ? /* @__PURE__ */ g.jsx(
1790
1790
  Ae,
@@ -1816,8 +1816,8 @@ const ea = (r) => {
1816
1816
  onClick: D,
1817
1817
  className: O.img,
1818
1818
  title: f,
1819
- onKeyDown: (w) => {
1820
- (w.key === "Enter" || w.key === " ") && D();
1819
+ onKeyDown: (S) => {
1820
+ (S.key === "Enter" || S.key === " ") && D();
1821
1821
  }
1822
1822
  }
1823
1823
  )
@@ -1879,10 +1879,10 @@ const ea = (r) => {
1879
1879
  label: O,
1880
1880
  helperText: D = !1,
1881
1881
  error: v,
1882
- appearance: w = "base",
1882
+ appearance: S = "base",
1883
1883
  fullWidth: C = !1,
1884
1884
  _dataComponent: _ = "textfield",
1885
- min: S,
1885
+ min: w,
1886
1886
  max: R,
1887
1887
  step: F,
1888
1888
  inputMode: P = "text",
@@ -1895,7 +1895,7 @@ const ea = (r) => {
1895
1895
  s == null || s(I.target.value);
1896
1896
  }, L = {
1897
1897
  wrapper: `${ye["smp-textfield-wrapper"]} ${C ? ye["smp-textfield-fullWidth"] : ""}`,
1898
- container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${l ? ye[`smp-textfield-${l}`] : ""} ${V ? ye[`smp-textfield-${V}`] : ""} ${w ? ye[`smp-textfield-${w}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${f ? ye["smp-textfield-top-right-indicator"] : ""}`,
1898
+ container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${l ? ye[`smp-textfield-${l}`] : ""} ${V ? ye[`smp-textfield-${V}`] : ""} ${S ? ye[`smp-textfield-${S}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${f ? ye["smp-textfield-top-right-indicator"] : ""}`,
1899
1899
  input: `${ye["smp-textfield-input"]}`
1900
1900
  };
1901
1901
  if (u && (u !== "notSelectable" || i)) {
@@ -1929,7 +1929,7 @@ const ea = (r) => {
1929
1929
  "aria-label": b,
1930
1930
  ref: y,
1931
1931
  "aria-describedby": x ? X : void 0,
1932
- min: S,
1932
+ min: w,
1933
1933
  max: R,
1934
1934
  step: F,
1935
1935
  inputMode: P,
@@ -2055,7 +2055,7 @@ const On = 10, Ar = ({
2055
2055
  (N) => N.label.toLowerCase().includes(f.toLowerCase())
2056
2056
  ) : e, v = (N) => {
2057
2057
  d(N);
2058
- }, { virtualItems: w, containerProps: C, innerProps: _, scrollToIndex: S } = Pr({
2058
+ }, { virtualItems: S, containerProps: C, innerProps: _, scrollToIndex: w } = Pr({
2059
2059
  items: D,
2060
2060
  itemHeight: m,
2061
2061
  containerHeight: 200,
@@ -2064,7 +2064,7 @@ const On = 10, Ar = ({
2064
2064
  ne(() => {
2065
2065
  a !== null && a !== p && y(a);
2066
2066
  }, [a]), ne(() => {
2067
- p >= 0 && p < D.length && S(p);
2067
+ p >= 0 && p < D.length && w(p);
2068
2068
  }, [p, D]), ne(() => {
2069
2069
  u && (b != null && b.current) && b.current.focus();
2070
2070
  }, [u, b]), ne(() => {
@@ -2121,7 +2121,7 @@ const On = 10, Ar = ({
2121
2121
  "aria-label": "List",
2122
2122
  onKeyDown: P,
2123
2123
  "aria-activedescendant": p >= 0 && p < D.length ? (M = D[p]) == null ? void 0 : M.id : void 0,
2124
- children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children: w.map(({ item: N, index: W, offsetTop: z }) => {
2124
+ children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children: S.map(({ item: N, index: W, offsetTop: z }) => {
2125
2125
  const X = i.includes(N.id);
2126
2126
  return (
2127
2127
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -2542,11 +2542,11 @@ class dt extends gt {
2542
2542
  } : o;
2543
2543
  const m = this.resolve(e, s);
2544
2544
  let p = m == null ? void 0 : m.res;
2545
- const y = (m == null ? void 0 : m.usedKey) || o, E = (m == null ? void 0 : m.exactUsedKey) || o, T = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, D = s.count !== void 0 && !K(s.count), v = dt.hasDefaultValue(s), w = D ? this.pluralResolver.getSuffix(f, s.count, s) : "", C = s.ordinal && D ? this.pluralResolver.getSuffix(f, s.count, {
2545
+ const y = (m == null ? void 0 : m.usedKey) || o, E = (m == null ? void 0 : m.exactUsedKey) || o, T = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, D = s.count !== void 0 && !K(s.count), v = dt.hasDefaultValue(s), S = D ? this.pluralResolver.getSuffix(f, s.count, s) : "", C = s.ordinal && D ? this.pluralResolver.getSuffix(f, s.count, {
2546
2546
  ordinal: !1
2547
- }) : "", _ = D && !s.ordinal && s.count === 0, S = _ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${w}`] || s[`defaultValue${C}`] || s.defaultValue;
2547
+ }) : "", _ = D && !s.ordinal && s.count === 0, w = _ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${S}`] || s[`defaultValue${C}`] || s.defaultValue;
2548
2548
  let R = p;
2549
- O && !p && v && (R = S);
2549
+ O && !p && v && (R = w);
2550
2550
  const F = dr(R), P = Object.prototype.toString.apply(R);
2551
2551
  if (O && R && F && T.indexOf(P) < 0 && !(K(b) && Array.isArray(R))) {
2552
2552
  if (!s.returnObjects && !this.options.returnObjects) {
@@ -2564,7 +2564,7 @@ class dt extends gt {
2564
2564
  const z = `${N}${i}${W}`;
2565
2565
  v && !p ? M[W] = this.translate(z, {
2566
2566
  ...s,
2567
- defaultValue: dr(S) ? S[W] : void 0,
2567
+ defaultValue: dr(w) ? w[W] : void 0,
2568
2568
  joinArrays: !1,
2569
2569
  ns: l
2570
2570
  }) : M[W] = this.translate(z, {
@@ -2579,10 +2579,10 @@ class dt extends gt {
2579
2579
  p = p.join(b), p && (p = this.extendTranslation(p, e, s, n));
2580
2580
  else {
2581
2581
  let A = !1, M = !1;
2582
- !this.isValidLookup(p) && v && (A = !0, p = S), this.isValidLookup(p) || (M = !0, p = o);
2583
- const W = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : p, z = v && S !== p && this.options.updateMissing;
2582
+ !this.isValidLookup(p) && v && (A = !0, p = w), this.isValidLookup(p) || (M = !0, p = o);
2583
+ const W = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : p, z = v && w !== p && this.options.updateMissing;
2584
2584
  if (M || A || z) {
2585
- if (this.logger.log(z ? "updateKey" : "missingKey", f, c, o, z ? S : p), i) {
2585
+ if (this.logger.log(z ? "updateKey" : "missingKey", f, c, o, z ? w : p), i) {
2586
2586
  const x = this.resolve(o, {
2587
2587
  ...s,
2588
2588
  keySeparator: !1
@@ -2603,9 +2603,9 @@ class dt extends gt {
2603
2603
  this.options.saveMissing && (this.options.saveMissingPlurals && D ? X.forEach((x) => {
2604
2604
  const j = this.pluralResolver.getSuffixes(x, s);
2605
2605
  _ && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((L) => {
2606
- h([x], o + L, s[`defaultValue${L}`] || S);
2606
+ h([x], o + L, s[`defaultValue${L}`] || w);
2607
2607
  });
2608
- }) : h(X, o, S));
2608
+ }) : h(X, o, w));
2609
2609
  }
2610
2610
  p = this.extendTranslation(p, e, s, m, n), M && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${u}${o}`), (M || A) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${o}` : o, A ? p : void 0, s));
2611
2611
  }
@@ -2665,19 +2665,19 @@ class dt extends gt {
2665
2665
  f.forEach((E) => {
2666
2666
  var T, b;
2667
2667
  this.isValidLookup(n) || (o = E, !fr[`${y[0]}-${E}`] && ((T = this.utils) != null && T.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(o)) && (fr[`${y[0]}-${E}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((O) => {
2668
- var w;
2668
+ var S;
2669
2669
  if (this.isValidLookup(n)) return;
2670
2670
  i = O;
2671
2671
  const D = [u];
2672
- if ((w = this.i18nFormat) != null && w.addLookupKeys)
2672
+ if ((S = this.i18nFormat) != null && S.addLookupKeys)
2673
2673
  this.i18nFormat.addLookupKeys(D, u, O, E, t);
2674
2674
  else {
2675
2675
  let C;
2676
2676
  d && (C = this.pluralResolver.getSuffix(O, t.count, t));
2677
- const _ = `${this.options.pluralSeparator}zero`, S = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2678
- if (d && (D.push(u + C), t.ordinal && C.indexOf(S) === 0 && D.push(u + C.replace(S, this.options.pluralSeparator)), m && D.push(u + _)), p) {
2677
+ const _ = `${this.options.pluralSeparator}zero`, w = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2678
+ if (d && (D.push(u + C), t.ordinal && C.indexOf(w) === 0 && D.push(u + C.replace(w, this.options.pluralSeparator)), m && D.push(u + _)), p) {
2679
2679
  const R = `${u}${this.options.contextSeparator}${t.context}`;
2680
- D.push(R), d && (D.push(R + C), t.ordinal && C.indexOf(S) === 0 && D.push(R + C.replace(S, this.options.pluralSeparator)), m && D.push(R + _));
2680
+ D.push(R), d && (D.push(R + C), t.ordinal && C.indexOf(w) === 0 && D.push(R + C.replace(w, this.options.pluralSeparator)), m && D.push(R + _));
2681
2681
  }
2682
2682
  }
2683
2683
  let v;
@@ -3665,7 +3665,7 @@ const Nr = ({
3665
3665
  _multiActiveIndex: f,
3666
3666
  ...d
3667
3667
  }) => {
3668
- const m = ce(null), [p, y] = q(r), [E, T] = q(e), { translate: b } = je(), [O, D] = q(!1), [v, w] = q(t || []), [C, _] = q(0), [S, R] = q([r]), { anchorRef: F, targetRef: P, anchorWidth: A } = ht({
3668
+ const m = ce(null), [p, y] = q(r), [E, T] = q(e), { translate: b } = je(), [O, D] = q(!1), [v, S] = q(t || []), [C, _] = q(0), [w, R] = q([r]), { anchorRef: F, targetRef: P, anchorWidth: A } = ht({
3669
3669
  position: "bottom",
3670
3670
  enabled: O
3671
3671
  }), M = le(() => {
@@ -3676,7 +3676,7 @@ const Nr = ({
3676
3676
  const N = Dn(400), W = (h) => {
3677
3677
  h.length >= a ? o && u && N(async () => {
3678
3678
  const x = await u(o, h);
3679
- w(x), _(x.length > 0 ? 0 : -1), D(!0);
3679
+ S(x), _(x.length > 0 ? 0 : -1), D(!0);
3680
3680
  }) : M(), y(h), T(e), l || c == null || c(h, e);
3681
3681
  }, z = (h) => {
3682
3682
  l ? (y(""), T("")) : (y(h.id), T(h.label)), c == null || c(h.id, h.label);
@@ -3726,7 +3726,7 @@ const Nr = ({
3726
3726
  onClick: z,
3727
3727
  ref: P,
3728
3728
  selectedIndex: C,
3729
- activeIndex: f || S,
3729
+ activeIndex: f || w,
3730
3730
  width: A,
3731
3731
  showFilter: !1,
3732
3732
  onKeyDown: X,
@@ -3761,16 +3761,18 @@ const Nr = ({
3761
3761
  justify: m = "center",
3762
3762
  title: p,
3763
3763
  optionalDisplayValue: y,
3764
- squared: E = !1
3764
+ squared: E = !1,
3765
+ submit: T = !1
3765
3766
  }) => {
3766
- const T = {
3767
+ const b = {
3767
3768
  container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${m} ${E && !u ? "smp-button-squared" : ""}`
3768
3769
  };
3769
3770
  return /* @__PURE__ */ g.jsx(
3770
3771
  "button",
3771
3772
  {
3772
3773
  "data-component": "button",
3773
- className: T.container,
3774
+ type: T ? "submit" : "button",
3775
+ className: b.container,
3774
3776
  onClick: t,
3775
3777
  "aria-label": n,
3776
3778
  disabled: a,
@@ -4014,15 +4016,15 @@ const hs = ({
4014
4016
  multiActiveIndex: c,
4015
4017
  ...u
4016
4018
  }) => {
4017
- const f = ce(null), [d, m] = q(!1), [p, y] = q(t), [E, T] = q(-1), [b, O] = q([r]), D = ke(), { anchorRef: v, targetRef: w, anchorWidth: C } = ht({
4019
+ const f = ce(null), [d, m] = q(!1), [p, y] = q(t), [E, T] = q(-1), [b, O] = q([r]), D = ke(), { anchorRef: v, targetRef: S, anchorWidth: C } = ht({
4018
4020
  position: "bottom",
4019
4021
  enabled: d
4020
4022
  }), _ = le(() => {
4021
4023
  var A;
4022
4024
  m(!1), (A = f == null ? void 0 : f.current) == null || A.focus();
4023
4025
  }, []);
4024
- Ue(w, d, () => _()), Nt(d, w);
4025
- const S = (A) => {
4026
+ Ue(S, d, () => _()), Nt(d, S);
4027
+ const w = (A) => {
4026
4028
  e == null || e(A.id, A.label);
4027
4029
  const M = p.findIndex((N) => N.id === A.id);
4028
4030
  T(M), O([A.id]), _();
@@ -4068,12 +4070,12 @@ const hs = ({
4068
4070
  id: D,
4069
4071
  options: p,
4070
4072
  displayMode: i,
4071
- ref: w,
4073
+ ref: S,
4072
4074
  isOpen: d,
4073
4075
  selectedIndex: E,
4074
4076
  activeIndex: c || b,
4075
4077
  width: C,
4076
- onClick: S,
4078
+ onClick: w,
4077
4079
  onKeyDown: R
4078
4080
  }
4079
4081
  ) })
@@ -4149,11 +4151,11 @@ function gs({
4149
4151
  return L >= x && L <= j;
4150
4152
  }), v = (V) => {
4151
4153
  D(V) || (c(V), y(V.getDate()), e && e(tn(V)));
4152
- }, w = () => {
4154
+ }, S = () => {
4153
4155
  u === 0 ? (f(11), m(d - 1)) : f(u - 1), y(1);
4154
4156
  }, C = () => {
4155
4157
  u === 11 ? (f(0), m(d + 1)) : f(u + 1), y(1);
4156
- }, _ = (V, h) => new Date(V, h + 1, 0).getDate(), S = (V, h) => new Date(V, h, 1).getDay(), R = (V) => {
4158
+ }, _ = (V, h) => new Date(V, h + 1, 0).getDate(), w = (V, h) => new Date(V, h, 1).getDay(), R = (V) => {
4157
4159
  var x;
4158
4160
  const h = M.findIndex(
4159
4161
  (j) => j !== null && j.getDate() === V
@@ -4186,7 +4188,7 @@ function gs({
4186
4188
  let $ = L - 1, I = new Date(d, u, $);
4187
4189
  if ($ < 1) {
4188
4190
  const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1, Y = _(U, B);
4189
- $ = Y, I = new Date(U, B, $), w(), setTimeout(() => {
4191
+ $ = Y, I = new Date(U, B, $), S(), setTimeout(() => {
4190
4192
  P(Y, "backward");
4191
4193
  }, 0);
4192
4194
  return;
@@ -4200,7 +4202,7 @@ function gs({
4200
4202
  let $ = L - 7, I = new Date(d, u, $);
4201
4203
  if ($ < 1) {
4202
4204
  const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1;
4203
- $ = _(U, B) + $, I = new Date(U, B, $), w(), setTimeout(() => {
4205
+ $ = _(U, B) + $, I = new Date(U, B, $), S(), setTimeout(() => {
4204
4206
  P($, "backward");
4205
4207
  }, 0);
4206
4208
  return;
@@ -4229,7 +4231,7 @@ function gs({
4229
4231
  V.preventDefault(), P(j, "backward");
4230
4232
  break;
4231
4233
  case "PageUp":
4232
- V.preventDefault(), w(), setTimeout(() => {
4234
+ V.preventDefault(), S(), setTimeout(() => {
4233
4235
  const $ = _(
4234
4236
  u === 0 ? d - 1 : d,
4235
4237
  u === 0 ? 11 : u - 1
@@ -4277,12 +4279,12 @@ function gs({
4277
4279
  }
4278
4280
  }
4279
4281
  const j = u === 0 ? d - 1 : d, L = u === 0 ? 11 : u - 1, $ = _(j, L);
4280
- w(), setTimeout(() => {
4282
+ S(), setTimeout(() => {
4281
4283
  P($, "backward");
4282
4284
  }, 0);
4283
4285
  }
4284
4286
  }, M = (() => {
4285
- const V = _(d, u), h = S(d, u), x = [];
4287
+ const V = _(d, u), h = w(d, u), x = [];
4286
4288
  for (let j = 0; j < h; j++)
4287
4289
  x.push(null);
4288
4290
  for (let j = 1; j <= V; j++) {
@@ -4342,7 +4344,7 @@ function gs({
4342
4344
  /* @__PURE__ */ g.jsx(
4343
4345
  He,
4344
4346
  {
4345
- onClick: w,
4347
+ onClick: S,
4346
4348
  ariaLabel: a($t.PREVIOUS_MONTH),
4347
4349
  optionalDisplayValue: "<",
4348
4350
  appearance: "ghost",
@@ -4450,8 +4452,8 @@ const ys = ({
4450
4452
  position: "bottom",
4451
4453
  enabled: o
4452
4454
  }), y = le(() => {
4453
- var S;
4454
- l(!1), (S = i == null ? void 0 : i.current) == null || S.focus();
4455
+ var w;
4456
+ l(!1), (w = i == null ? void 0 : i.current) == null || w.focus();
4455
4457
  }, []);
4456
4458
  Ue(p, o, () => {
4457
4459
  y();
@@ -4460,14 +4462,14 @@ const ys = ({
4460
4462
  // FIXME: Copied from useClickOutside.
4461
4463
  typeof m == "object" && m !== null && "current" in m
4462
4464
  ) {
4463
- const S = m.current.querySelector("input");
4464
- S && S === document.activeElement && D();
4465
+ const w = m.current.querySelector("input");
4466
+ w && w === document.activeElement && D();
4465
4467
  }
4466
4468
  y();
4467
4469
  }), Nt(o, p);
4468
4470
  const { format: E, getCurrentLanguage: T } = je(), b = le(
4469
- (S) => {
4470
- const R = S.length > 5 && Zr(S, T()) || S, F = E(R, void 0, void 0, {
4471
+ (w) => {
4472
+ const R = w.length > 5 && Zr(w, T()) || w, F = E(R, void 0, void 0, {
4471
4473
  type: "date"
4472
4474
  }), P = typeof R != "string", A = P && R.toISOString().substring(0, 10) || "";
4473
4475
  return {
@@ -4480,20 +4482,20 @@ const ys = ({
4480
4482
  [T, E]
4481
4483
  );
4482
4484
  ne(() => {
4483
- const { formattedDate: S, isoDate: R, isValid: F } = b(r);
4484
- u(F && R || r), d(F && S || r);
4485
+ const { formattedDate: w, isoDate: R, isValid: F } = b(r);
4486
+ u(F && R || r), d(F && w || r);
4485
4487
  }, [r, E, b]);
4486
- const O = () => l((S) => !S), D = () => {
4487
- w(f);
4488
- }, v = (S) => {
4489
- w(S), y();
4490
- }, w = (S) => {
4491
- const { isoDate: R, isValid: F } = b(S);
4492
- t && t(F && R || S);
4493
- }, C = (S) => {
4494
- d(S);
4495
- }, _ = (S) => {
4496
- S.key === "Enter" && (S.preventDefault(), w(f));
4488
+ const O = () => l((w) => !w), D = () => {
4489
+ S(f);
4490
+ }, v = (w) => {
4491
+ S(w), y();
4492
+ }, S = (w) => {
4493
+ const { isoDate: R, isValid: F } = b(w);
4494
+ t && t(F && R || w);
4495
+ }, C = (w) => {
4496
+ d(w);
4497
+ }, _ = (w) => {
4498
+ w.key === "Enter" && (w.preventDefault(), S(f));
4497
4499
  };
4498
4500
  return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
4499
4501
  /* @__PURE__ */ g.jsx(
@@ -4723,25 +4725,25 @@ const Pe = (r, e, t) => ({
4723
4725
  [f]
4724
4726
  ), y = le(as, [d, m]), E = le(ts, [r, e]), T = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, O] = q(T), [D, v] = q(
4725
4727
  a != null ? p(a, b) : ""
4726
- ), w = ce(a ?? null);
4728
+ ), S = ce(a ?? null);
4727
4729
  ne(() => {
4728
4730
  if (a == null) {
4729
- v(""), w.current = null;
4731
+ v(""), S.current = null;
4730
4732
  return;
4731
4733
  }
4732
4734
  const P = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = P === 0 ? b : P;
4733
- A !== b && O(A), v(p(a, A)), w.current = a;
4735
+ A !== b && O(A), v(p(a, A)), S.current = a;
4734
4736
  }, [a, p]);
4735
4737
  const C = le(
4736
4738
  (P, A = !1) => {
4737
4739
  if (P.trim() === "") {
4738
- v(""), w.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
4740
+ v(""), S.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
4739
4741
  return;
4740
4742
  }
4741
4743
  const M = y(P, d, m);
4742
4744
  if (isNaN(M))
4743
- if (w.current != null) {
4744
- const N = p(w.current, b);
4745
+ if (S.current != null) {
4746
+ const N = p(S.current, b);
4745
4747
  v(N);
4746
4748
  } else
4747
4749
  v("");
@@ -4753,7 +4755,7 @@ const Pe = (r, e, t) => ({
4753
4755
  );
4754
4756
  O(W);
4755
4757
  const z = p(N, W);
4756
- v(z), w.current = N, i == null || i(N, z), A && (o == null || o(N));
4758
+ v(z), S.current = N, i == null || i(N, z), A && (o == null || o(N));
4757
4759
  }
4758
4760
  },
4759
4761
  [
@@ -4768,20 +4770,20 @@ const Pe = (r, e, t) => ({
4768
4770
  o,
4769
4771
  b
4770
4772
  ]
4771
- ), _ = (P) => v(P), S = () => C(D), R = (P) => {
4773
+ ), _ = (P) => v(P), w = () => C(D), R = (P) => {
4772
4774
  if (P.key === "Enter") {
4773
4775
  P.preventDefault(), C(D, !0);
4774
4776
  return;
4775
4777
  }
4776
4778
  if (P.key === "ArrowUp" || P.key === "ArrowDown") {
4777
4779
  P.preventDefault();
4778
- const A = P.key === "ArrowUp" ? 1 : -1, M = w.current ?? 0, N = E(M + A * t, r, e);
4780
+ const A = P.key === "ArrowUp" ? 1 : -1, M = S.current ?? 0, N = E(M + A * t, r, e);
4779
4781
  C(p(N, b));
4780
4782
  }
4781
4783
  }, F = (P) => {
4782
4784
  if (!P.currentTarget.contains(document.activeElement)) return;
4783
4785
  P.preventDefault();
4784
- const A = P.deltaY < 0 ? 1 : -1, M = w.current ?? 0, N = E(M + A * t, r, e);
4786
+ const A = P.deltaY < 0 ? 1 : -1, M = S.current ?? 0, N = E(M + A * t, r, e);
4785
4787
  C(p(N, b));
4786
4788
  };
4787
4789
  return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel: F, children: /* @__PURE__ */ g.jsx(
@@ -4790,7 +4792,7 @@ const Pe = (r, e, t) => ({
4790
4792
  ...l,
4791
4793
  "aria-valuemin": r,
4792
4794
  "aria-valuemax": e,
4793
- "aria-valuenow": w.current ?? void 0,
4795
+ "aria-valuenow": S.current ?? void 0,
4794
4796
  bindValue: D,
4795
4797
  inputType: "text",
4796
4798
  inputMode: n,
@@ -4798,7 +4800,7 @@ const Pe = (r, e, t) => ({
4798
4800
  max: e,
4799
4801
  step: t,
4800
4802
  onChange: _,
4801
- onBlur: S,
4803
+ onBlur: w,
4802
4804
  onKeyDown: R
4803
4805
  }
4804
4806
  ) });
@@ -5033,11 +5035,11 @@ const rt = {
5033
5035
  o(!1), (v = a == null ? void 0 : a.current) == null || v.focus();
5034
5036
  }, []);
5035
5037
  Ue(m, i, () => o(!1)), Nt(i, m), ne(() => {
5036
- const v = r || "", w = Tr(v) ? v : r || "";
5037
- c(v), f(w);
5038
+ const v = r || "", S = Tr(v) ? v : r || "";
5039
+ c(v), f(S);
5038
5040
  }, [r]), ne(() => {
5039
- const v = (w) => {
5040
- w.key === "Escape" && o(!1);
5041
+ const v = (S) => {
5042
+ S.key === "Escape" && o(!1);
5041
5043
  };
5042
5044
  return i && document.addEventListener("keydown", v), () => {
5043
5045
  document.removeEventListener("keydown", v);
@@ -5047,8 +5049,8 @@ const rt = {
5047
5049
  n && o((v) => !v);
5048
5050
  }, E = (v) => {
5049
5051
  f(v);
5050
- }, T = (v, w, C) => {
5051
- const _ = js(v, w, C);
5052
+ }, T = (v, S, C) => {
5053
+ const _ = js(v, S, C);
5052
5054
  c(_), f(_), t == null || t(_), p();
5053
5055
  }, b = () => {
5054
5056
  D(u);
@@ -5164,13 +5166,13 @@ const Or = /* @__PURE__ */ new Map([
5164
5166
  label: o,
5165
5167
  isEditable: E,
5166
5168
  ...n
5167
- }, O = (S, R, F) => zr(t) ? Pe(S, new lt(t, R).getLegacyValue()) : Jr(t) ? Pe(S, new pt(t, R).getLegacyValue()) : Pe(S, R, F), D = (S, R) => Pe(
5168
- S,
5169
+ }, O = (w, R, F) => zr(t) ? Pe(w, new lt(t, R).getLegacyValue()) : Jr(t) ? Pe(w, new pt(t, R).getLegacyValue()) : Pe(w, R, F), D = (w, R) => Pe(
5170
+ w,
5169
5171
  new Ge(t, R, ".").getLegacyValue()
5170
- ), v = (S) => Pe(T, new ot(t, S).getLegacyValue()), w = (S) => ws(T, S), C = () => {
5172
+ ), v = (w) => Pe(T, new ot(t, w).getLegacyValue()), S = (w) => ws(T, w), C = () => {
5171
5173
  switch (e) {
5172
5174
  case te.AUTOCOMPLETE: {
5173
- const S = {
5175
+ const w = {
5174
5176
  ...b,
5175
5177
  bindValue: t.k,
5176
5178
  optionalDisplayValue: r,
@@ -5178,10 +5180,10 @@ const Or = /* @__PURE__ */ new Map([
5178
5180
  u == null || u(O(T, R, F));
5179
5181
  }
5180
5182
  };
5181
- return /* @__PURE__ */ g.jsx(Nr, { ...S });
5183
+ return /* @__PURE__ */ g.jsx(Nr, { ...w });
5182
5184
  }
5183
5185
  case te.BUTTON: {
5184
- const S = {
5186
+ const w = {
5185
5187
  ...b,
5186
5188
  bindValue: t.k,
5187
5189
  optionalDisplayValue: r,
@@ -5189,10 +5191,10 @@ const Or = /* @__PURE__ */ new Map([
5189
5191
  f == null || f(O(T, t.k));
5190
5192
  }
5191
5193
  };
5192
- return /* @__PURE__ */ g.jsx(He, { ...S });
5194
+ return /* @__PURE__ */ g.jsx(He, { ...w });
5193
5195
  }
5194
5196
  case te.BUTTON_LIST: {
5195
- const S = {
5197
+ const w = {
5196
5198
  ...b,
5197
5199
  options: c,
5198
5200
  onClick: (R, F) => {
@@ -5200,30 +5202,30 @@ const Or = /* @__PURE__ */ new Map([
5200
5202
  f == null || f(O(P, R));
5201
5203
  }
5202
5204
  };
5203
- return /* @__PURE__ */ g.jsx(us, { ...S });
5205
+ return /* @__PURE__ */ g.jsx(us, { ...w });
5204
5206
  }
5205
5207
  case te.CHIP: {
5206
- const S = {
5208
+ const w = {
5207
5209
  ...b,
5208
5210
  elements: Er(T)
5209
5211
  };
5210
- return /* @__PURE__ */ g.jsx(It, { ...S });
5212
+ return /* @__PURE__ */ g.jsx(It, { ...w });
5211
5213
  }
5212
5214
  case te.CHECKBOX:
5213
5215
  case te.SWITCH: {
5214
- const S = e === te.SWITCH, R = {
5216
+ const w = e === te.SWITCH, R = {
5215
5217
  ...b,
5216
5218
  bindValue: ot.fromDataObj(t).getValue(),
5217
5219
  optionalDisplayValue: r,
5218
5220
  onChange: (F) => {
5219
5221
  u == null || u(v(F));
5220
5222
  },
5221
- ...S && { variant: "switch" }
5223
+ ...w && { variant: "switch" }
5222
5224
  };
5223
5225
  return /* @__PURE__ */ g.jsx(ds, { ...R });
5224
5226
  }
5225
5227
  case te.COMBOBOX: {
5226
- const S = {
5228
+ const w = {
5227
5229
  ...b,
5228
5230
  bindValue: t.k,
5229
5231
  optionalDisplayValue: r,
@@ -5231,21 +5233,21 @@ const Or = /* @__PURE__ */ new Map([
5231
5233
  u == null || u(O(T, R, F));
5232
5234
  }
5233
5235
  };
5234
- return /* @__PURE__ */ g.jsx(hs, { ...S });
5236
+ return /* @__PURE__ */ g.jsx(hs, { ...w });
5235
5237
  }
5236
5238
  case te.DATE: {
5237
- const S = {
5239
+ const w = {
5238
5240
  ...b,
5239
5241
  bindValue: lt.fromDataObj(t).getValue(),
5240
5242
  onChange: (R) => {
5241
5243
  u == null || u(O(T, R));
5242
5244
  }
5243
5245
  };
5244
- return /* @__PURE__ */ g.jsx(ys, { ...S });
5246
+ return /* @__PURE__ */ g.jsx(ys, { ...w });
5245
5247
  }
5246
5248
  case te.ICON:
5247
5249
  case te.IMAGE: {
5248
- const S = {
5250
+ const w = {
5249
5251
  ...b,
5250
5252
  icon: s,
5251
5253
  placeholderIcon: i,
@@ -5254,20 +5256,20 @@ const Or = /* @__PURE__ */ new Map([
5254
5256
  f == null || f(O(T, t.k));
5255
5257
  }
5256
5258
  };
5257
- return /* @__PURE__ */ g.jsx(fe, { ...S });
5259
+ return /* @__PURE__ */ g.jsx(fe, { ...w });
5258
5260
  }
5259
5261
  case te.INPUT_NUMBER: {
5260
- const S = {
5262
+ const w = {
5261
5263
  ...b,
5262
5264
  bindValue: Ge.fromDataObj(t, ".").getValue(),
5263
5265
  onChange: (R) => {
5264
5266
  u == null || u(D(T, R));
5265
5267
  }
5266
5268
  };
5267
- return /* @__PURE__ */ g.jsx(Es, { ...S });
5269
+ return /* @__PURE__ */ g.jsx(Es, { ...w });
5268
5270
  }
5269
5271
  case te.MEMO: {
5270
- const S = {
5272
+ const w = {
5271
5273
  ...b,
5272
5274
  bindValue: t.k,
5273
5275
  optionalDisplayValue: r,
@@ -5275,50 +5277,50 @@ const Or = /* @__PURE__ */ new Map([
5275
5277
  u == null || u(O(T, R));
5276
5278
  }
5277
5279
  };
5278
- return /* @__PURE__ */ g.jsx(Ts, { ...S });
5280
+ return /* @__PURE__ */ g.jsx(Ts, { ...w });
5279
5281
  }
5280
5282
  case te.MULTI_AUTOCOMPLETE: {
5281
- const S = {
5283
+ const w = {
5282
5284
  ...b,
5283
5285
  elements: Er(T),
5284
5286
  onChange: (R) => {
5285
- u == null || u(w(R));
5287
+ u == null || u(S(R));
5286
5288
  }
5287
5289
  };
5288
- return /* @__PURE__ */ g.jsx(vs, { ...S });
5290
+ return /* @__PURE__ */ g.jsx(vs, { ...w });
5289
5291
  }
5290
5292
  case te.PASSWORD: {
5291
- const S = {
5293
+ const w = {
5292
5294
  ...b,
5293
5295
  bindValue: t.k,
5294
5296
  onChange: (R) => {
5295
5297
  u == null || u(O(T, R));
5296
5298
  }
5297
5299
  };
5298
- return /* @__PURE__ */ g.jsx(xs, { ...S });
5300
+ return /* @__PURE__ */ g.jsx(xs, { ...w });
5299
5301
  }
5300
5302
  case te.RADIO: {
5301
- const S = {
5303
+ const w = {
5302
5304
  ...b,
5303
5305
  bindValue: t.k,
5304
5306
  onChange: (R, F) => {
5305
5307
  u == null || u(O(T, R, F));
5306
5308
  }
5307
5309
  };
5308
- return /* @__PURE__ */ g.jsx(Os, { ...S });
5310
+ return /* @__PURE__ */ g.jsx(Os, { ...w });
5309
5311
  }
5310
5312
  case te.SPOTLIGHT: {
5311
- const S = {
5313
+ const w = {
5312
5314
  ...b,
5313
5315
  bindValue: t.k,
5314
5316
  onEnter: (R) => {
5315
5317
  d == null || d(O(T, R));
5316
5318
  }
5317
5319
  };
5318
- return /* @__PURE__ */ g.jsx(bs, { ...S });
5320
+ return /* @__PURE__ */ g.jsx(bs, { ...w });
5319
5321
  }
5320
5322
  case te.TEXT_FIELD: {
5321
- const S = {
5323
+ const w = {
5322
5324
  ...b,
5323
5325
  bindValue: t.k,
5324
5326
  optionalDisplayValue: r,
@@ -5326,25 +5328,25 @@ const Or = /* @__PURE__ */ new Map([
5326
5328
  u == null || u(O(T, R));
5327
5329
  }
5328
5330
  };
5329
- return /* @__PURE__ */ g.jsx(Re, { ...S });
5331
+ return /* @__PURE__ */ g.jsx(Re, { ...w });
5330
5332
  }
5331
5333
  case te.TIME: {
5332
- const S = {
5334
+ const w = {
5333
5335
  ...b,
5334
5336
  bindValue: pt.fromDataObj(t).getValue(),
5335
5337
  onChange: (R) => {
5336
5338
  u == null || u(O(T, R));
5337
5339
  }
5338
5340
  };
5339
- return /* @__PURE__ */ g.jsx(_s, { ...S });
5341
+ return /* @__PURE__ */ g.jsx(_s, { ...w });
5340
5342
  }
5341
5343
  default: {
5342
- const S = {
5344
+ const w = {
5343
5345
  ...b,
5344
5346
  bindValue: t.k,
5345
5347
  optionalDisplayValue: r
5346
5348
  };
5347
- return /* @__PURE__ */ g.jsx(Ss, { ...S });
5349
+ return /* @__PURE__ */ g.jsx(Ss, { ...w });
5348
5350
  }
5349
5351
  }
5350
5352
  }, _ = {
@@ -5354,8 +5356,8 @@ const Or = /* @__PURE__ */ new Map([
5354
5356
  "span",
5355
5357
  {
5356
5358
  className: _.wrapper,
5357
- onContextMenu: (S) => {
5358
- y && l && (S.preventDefault(), y(T, S.currentTarget));
5359
+ onContextMenu: (w) => {
5360
+ y && l && (w.preventDefault(), y(T, w.currentTarget));
5359
5361
  },
5360
5362
  children: C()
5361
5363
  }
@@ -5437,12 +5439,12 @@ const Or = /* @__PURE__ */ new Map([
5437
5439
  }) => {
5438
5440
  var D, v;
5439
5441
  const [u, f] = q(), [d, m] = q(t ?? !0), p = ce(null), y = s.trim() ? s : "100vh", E = le(
5440
- (w) => {
5441
- var _, S;
5442
- if (!((_ = w == null ? void 0 : w.rows) != null && _.length) || !((S = w == null ? void 0 : w.columns) != null && S.length))
5442
+ (S) => {
5443
+ var _, w;
5444
+ if (!((_ = S == null ? void 0 : S.rows) != null && _.length) || !((w = S == null ? void 0 : S.columns) != null && w.length))
5443
5445
  return {};
5444
- const C = w.rows[0];
5445
- return w.columns.filter((R) => R.visible ?? !0).reduce((R, F) => {
5446
+ const C = S.rows[0];
5447
+ return S.columns.filter((R) => R.visible ?? !0).reduce((R, F) => {
5446
5448
  const P = C.cells[F.name];
5447
5449
  if (!P || !d && de(n) && P.shape !== te.BUTTON && P.shape !== te.BUTTON_LIST)
5448
5450
  return R;
@@ -5482,7 +5484,7 @@ const Or = /* @__PURE__ */ new Map([
5482
5484
  ), T = le(() => {
5483
5485
  o == null || o();
5484
5486
  }, [o]), b = () => {
5485
- de(n) ? m((w) => !w) : (m(!1), o == null || o());
5487
+ de(n) ? m((S) => !S) : (m(!1), o == null || o());
5486
5488
  };
5487
5489
  if (ne(() => {
5488
5490
  f(E(r));
@@ -5493,11 +5495,11 @@ const Or = /* @__PURE__ */ new Map([
5493
5495
  f(E(r));
5494
5496
  return;
5495
5497
  }
5496
- const w = getComputedStyle(p.current).getPropertyValue(
5498
+ const S = getComputedStyle(p.current).getPropertyValue(
5497
5499
  "--smp-drawer-slide-transition"
5498
5500
  );
5499
- let C = Number(w);
5500
- w.endsWith("ms") ? C = parseFloat(w) : w.endsWith("s") && (C = parseFloat(w) * 1e3), setTimeout(() => {
5501
+ let C = Number(S);
5502
+ S.endsWith("ms") ? C = parseFloat(S) : S.endsWith("s") && (C = parseFloat(S) * 1e3), setTimeout(() => {
5501
5503
  f(E(r));
5502
5504
  }, C / 2);
5503
5505
  }, [d, n]), ne(() => {
@@ -5555,7 +5557,7 @@ const Or = /* @__PURE__ */ new Map([
5555
5557
  }
5556
5558
  ) })
5557
5559
  ] }),
5558
- /* @__PURE__ */ g.jsx("div", { className: O.containerLayout, children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((w) => /* @__PURE__ */ g.jsx(Te, { ...w })) }) })
5560
+ /* @__PURE__ */ g.jsx("div", { className: O.containerLayout, children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((S) => /* @__PURE__ */ g.jsx(Te, { ...S })) }) })
5559
5561
  ] })
5560
5562
  }
5561
5563
  )
@@ -5582,7 +5584,7 @@ const Or = /* @__PURE__ */ new Map([
5582
5584
  SelectLayout: b = "1",
5583
5585
  onClick: O
5584
5586
  }) => {
5585
- const D = "N/A", v = (e == null ? void 0 : e.columns) || [], w = (e == null ? void 0 : e.rows) || [], C = w.length > 0, _ = "--smp-dashList-color", S = "smp-layout", R = "descr", F = "icon", P = "um", A = "value", M = i || "1em", N = "18px", W = "--smp-dashList-columns", z = "--smp-dashList-fontSize", X = {
5587
+ const D = "N/A", v = (e == null ? void 0 : e.columns) || [], S = (e == null ? void 0 : e.rows) || [], C = S.length > 0, _ = "--smp-dashList-color", w = "smp-layout", R = "descr", F = "icon", P = "um", A = "value", M = i || "1em", N = "18px", W = "--smp-dashList-columns", z = "--smp-dashList-fontSize", X = {
5586
5588
  dash: (H = "1") => {
5587
5589
  const Z = h(H), re = Z, se = x(Z, R), he = x(Z, F), Se = x(Z, P), ve = x(Z, A);
5588
5590
  return {
@@ -5595,7 +5597,7 @@ const Or = /* @__PURE__ */ new Map([
5595
5597
  },
5596
5598
  dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
5597
5599
  ${de(o) ? "smp-dash-list-horizontal" : ""}`
5598
- }, { format: V } = je(), h = (H) => `${S}-${H}`, x = (H, Z) => `${H}__${Z}`, j = (H) => `${_}-${H}`, L = (H) => {
5600
+ }, { format: V } = je(), h = (H) => `${w}-${H}`, x = (H, Z) => `${H}__${Z}`, j = (H) => `${_}-${H}`, L = (H) => {
5599
5601
  const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
5600
5602
  if (Z.test(H)) {
5601
5603
  const se = H.match(Z) || [];
@@ -5683,7 +5685,7 @@ const Or = /* @__PURE__ */ new Map([
5683
5685
  [W]: String(r),
5684
5686
  [z]: M
5685
5687
  };
5686
- return /* @__PURE__ */ g.jsx("div", { className: X.dashList, style: k, children: C ? w.map((H) => ae(H)) : D });
5688
+ return /* @__PURE__ */ g.jsx("div", { className: X.dashList, style: k, children: C ? S.map((H) => ae(H)) : D });
5687
5689
  }, nt = {
5688
5690
  "smp-table": "_smp-table_1qmju_1",
5689
5691
  "smp-headerCell": "_smp-headerCell_1qmju_35",
@@ -5767,7 +5769,7 @@ const kr = ({
5767
5769
  ]
5768
5770
  }
5769
5771
  ),
5770
- r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, w]) => /* @__PURE__ */ g.jsx(
5772
+ r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, S]) => /* @__PURE__ */ g.jsx(
5771
5773
  "td",
5772
5774
  {
5773
5775
  className: d.cell,
@@ -5777,11 +5779,11 @@ const kr = ({
5777
5779
  height: `${n}px`
5778
5780
  },
5779
5781
  children: m({
5780
- ...w,
5782
+ ...S,
5781
5783
  id: v
5782
5784
  })
5783
5785
  },
5784
- Vs(w) || v
5786
+ Vs(S) || v
5785
5787
  ))
5786
5788
  ]
5787
5789
  }
@@ -6011,10 +6013,10 @@ const Hs = ({
6011
6013
  c(Ws(_, l));
6012
6014
  }, E = (_) => {
6013
6015
  _.preventDefault();
6014
- const S = _.dataTransfer.getData("text/plain");
6015
- if (!S || l.some((P) => P.column === S))
6016
+ const w = _.dataTransfer.getData("text/plain");
6017
+ if (!w || l.some((P) => P.column === w))
6016
6018
  return;
6017
- const F = [...l, { column: S, visible: !0 }];
6019
+ const F = [...l, { column: w, visible: !0 }];
6018
6020
  c(F);
6019
6021
  }, T = (_) => {
6020
6022
  _.preventDefault();
@@ -6023,18 +6025,18 @@ const Hs = ({
6023
6025
  itemHeight: e,
6024
6026
  containerHeight: t,
6025
6027
  overscan: 5
6026
- }), v = (_, S) => {
6027
- const R = _.clientX, F = m[S], P = (M) => {
6028
+ }), v = (_, w) => {
6029
+ const R = _.clientX, F = m[w], P = (M) => {
6028
6030
  const N = M.clientX - R, W = Math.max(50, F + N);
6029
6031
  p((z) => ({
6030
6032
  ...z,
6031
- [S]: W
6033
+ [w]: W
6032
6034
  }));
6033
6035
  }, A = () => {
6034
6036
  window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", A);
6035
6037
  };
6036
6038
  window.addEventListener("mousemove", P), window.addEventListener("mouseup", A);
6037
- }, w = {
6039
+ }, S = {
6038
6040
  smpTable: `${nt["smp-table"]}`,
6039
6041
  headerCell: `${nt["smp-headerCell"]}`,
6040
6042
  resizer: `${nt["smp-resizer"]}`
@@ -6042,7 +6044,7 @@ const Hs = ({
6042
6044
  return i && /* @__PURE__ */ g.jsx(
6043
6045
  "div",
6044
6046
  {
6045
- className: w.smpTable,
6047
+ className: S.smpTable,
6046
6048
  ...O,
6047
6049
  ref: d,
6048
6050
  children: /* @__PURE__ */ g.jsxs("table", { children: [
@@ -6060,10 +6062,10 @@ const Hs = ({
6060
6062
  (_) => _.visible && /* @__PURE__ */ g.jsxs(
6061
6063
  "th",
6062
6064
  {
6063
- className: w.headerCell,
6065
+ className: S.headerCell,
6064
6066
  draggable: !0,
6065
- onDragStart: (S) => {
6066
- S.dataTransfer.setData("text/plain", _.name);
6067
+ onDragStart: (w) => {
6068
+ w.dataTransfer.setData("text/plain", _.name);
6067
6069
  },
6068
6070
  style: {
6069
6071
  width: m[_.name],
@@ -6081,8 +6083,8 @@ const Hs = ({
6081
6083
  /* @__PURE__ */ g.jsx(
6082
6084
  "div",
6083
6085
  {
6084
- className: w.resizer,
6085
- onMouseDown: (S) => v(S, _.name),
6086
+ className: S.resizer,
6087
+ onMouseDown: (w) => v(w, _.name),
6086
6088
  role: "region"
6087
6089
  }
6088
6090
  )
@@ -6092,8 +6094,8 @@ const Hs = ({
6092
6094
  )
6093
6095
  )) })
6094
6096
  ] }),
6095
- /* @__PURE__ */ g.jsx("tbody", { ...D, children: b.map(({ item: _, index: S, offsetTop: R }) => {
6096
- const F = _.rowId || _.value || `${_.isGroup ? "group" : "row"}-${S}`;
6097
+ /* @__PURE__ */ g.jsx("tbody", { ...D, children: b.map(({ item: _, index: w, offsetTop: R }) => {
6098
+ const F = _.rowId || _.value || `${_.isGroup ? "group" : "row"}-${w}`;
6097
6099
  return _.isGroup ? /* @__PURE__ */ g.jsx(
6098
6100
  Ys,
6099
6101
  {
@@ -6214,58 +6216,58 @@ const Hs = ({
6214
6216
  ne(() => {
6215
6217
  f(T(r));
6216
6218
  }, [r]);
6217
- const p = (w, C) => {
6219
+ const p = (S, C) => {
6218
6220
  f((_) => ({
6219
6221
  ..._,
6220
- [w]: {
6221
- ..._[w],
6222
+ [S]: {
6223
+ ..._[S],
6222
6224
  obj: {
6223
- ..._[w].obj,
6225
+ ..._[S].obj,
6224
6226
  k: C.obj.k
6225
6227
  },
6226
6228
  decode: C.decode,
6227
6229
  data: {
6228
- ..._[w].data,
6230
+ ..._[S].data,
6229
6231
  error: void 0
6230
6232
  },
6231
6233
  // FIXME: remove this when webup.js will not use value
6232
6234
  value: C.obj.k
6233
6235
  }
6234
6236
  })), s && (C.shape == te.CHECKBOX || C.shape == te.SWITCH) && y();
6235
- }, y = (w) => {
6237
+ }, y = (S) => {
6236
6238
  const C = b();
6237
6239
  i({
6238
6240
  value: C,
6239
- cell: w
6241
+ cell: S
6240
6242
  });
6241
- }, E = async (w) => {
6243
+ }, E = async (S) => {
6242
6244
  var C, _;
6243
- if (u[w].obj.k != r.rows[0].cells[w].obj.k && ((C = u[w].inputSettings) != null && C.checkObject && l && ((await l({
6244
- obj: u[w].obj,
6245
- fun: u[w].fun,
6246
- cellId: w
6245
+ if (u[S].obj.k != r.rows[0].cells[S].obj.k && ((C = u[S].inputSettings) != null && C.checkObject && l && ((await l({
6246
+ obj: u[S].obj,
6247
+ fun: u[S].fun,
6248
+ cellId: S
6247
6249
  })).valid || f((R) => ({
6248
6250
  ...R,
6249
- [w]: {
6250
- ...R[w],
6251
+ [S]: {
6252
+ ...R[S],
6251
6253
  data: {
6252
- ...R[w].data,
6254
+ ...R[S].data,
6253
6255
  error: d(Ie.CHECK_OBJECT_WRONG_VALIDATION)
6254
6256
  }
6255
6257
  }
6256
- }))), (_ = u[w].inputSettings) != null && _.checkValueOnExit)) {
6257
- const S = b();
6258
+ }))), (_ = u[S].inputSettings) != null && _.checkValueOnExit)) {
6259
+ const w = b();
6258
6260
  o == null || o({
6259
- value: S,
6260
- cell: w
6261
+ value: w,
6262
+ cell: S
6261
6263
  });
6262
6264
  }
6263
- }, T = (w) => {
6264
- var _, S, R;
6265
- if (!((_ = w.rows) != null && _.length) || !((S = w.columns) != null && S.length))
6265
+ }, T = (S) => {
6266
+ var _, w, R;
6267
+ if (!((_ = S.rows) != null && _.length) || !((w = S.columns) != null && w.length))
6266
6268
  return {};
6267
- const C = (R = w.rows) == null ? void 0 : R[0];
6268
- return w.columns.filter((F) => F.visible ?? !0).reduce((F, P) => {
6269
+ const C = (R = S.rows) == null ? void 0 : R[0];
6270
+ return S.columns.filter((F) => F.visible ?? !0).reduce((F, P) => {
6269
6271
  const A = {
6270
6272
  ...C.cells[P.name],
6271
6273
  id: P.name,
@@ -6289,22 +6291,21 @@ const Hs = ({
6289
6291
  }
6290
6292
  ]
6291
6293
  }
6292
- }), O = ((v = (D = r.setup) == null ? void 0 : D.commands) == null ? void 0 : v.map((w, C) => /* @__PURE__ */ Wr(
6294
+ }), O = ((v = (D = r.setup) == null ? void 0 : D.commands) == null ? void 0 : v.map((S, C) => /* @__PURE__ */ Wr(
6293
6295
  Te,
6294
6296
  {
6295
- ...w,
6296
- decode: w.value,
6297
+ ...S,
6298
+ decode: S.value,
6297
6299
  id: `command-${C}`,
6298
6300
  key: `command-${C}`,
6299
6301
  shape: te.BUTTON,
6300
- onClick: () => y(w.obj.k)
6302
+ onClick: () => y(S.obj.k)
6301
6303
  }
6302
6304
  ))) || [];
6303
6305
  return n || O.unshift(
6304
6306
  /* @__PURE__ */ g.jsx(
6305
6307
  Te,
6306
6308
  {
6307
- onClick: () => y(),
6308
6309
  decode: d(Ie.CONFIRM_BUTTON),
6309
6310
  shape: te.BUTTON,
6310
6311
  id: "",
@@ -6312,51 +6313,64 @@ const Hs = ({
6312
6313
  t: "",
6313
6314
  p: "",
6314
6315
  k: ""
6316
+ },
6317
+ data: {
6318
+ submit: !0
6315
6319
  }
6316
6320
  },
6317
6321
  "submit-command"
6318
6322
  )
6319
- ), u && /* @__PURE__ */ g.jsxs("div", { "data-component": "input-panel", id: e || m, children: [
6320
- /* @__PURE__ */ g.jsx(
6321
- "div",
6322
- {
6323
- style: {
6324
- padding: "1em 0"
6325
- },
6326
- children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((w) => /* @__PURE__ */ g.jsx(
6327
- Te,
6323
+ ), u && /* @__PURE__ */ g.jsxs(
6324
+ "form",
6325
+ {
6326
+ "data-component": "input-panel",
6327
+ id: e || m,
6328
+ onSubmit: (S) => {
6329
+ S.preventDefault(), y();
6330
+ },
6331
+ children: [
6332
+ /* @__PURE__ */ g.jsx(
6333
+ "div",
6328
6334
  {
6329
- ...w,
6330
- onChange: (C) => p(w.id, C),
6331
- onBlur: () => E(w.id),
6332
- onContextMenu: c,
6333
- data: {
6334
- ...w.data,
6335
- autocomplete: "off"
6336
- }
6335
+ style: {
6336
+ padding: "1em 0"
6337
+ },
6338
+ children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((S) => /* @__PURE__ */ g.jsx(
6339
+ Te,
6340
+ {
6341
+ ...S,
6342
+ onChange: (C) => p(S.id, C),
6343
+ onBlur: () => E(S.id),
6344
+ onContextMenu: c,
6345
+ data: {
6346
+ ...S.data,
6347
+ autocomplete: "off"
6348
+ }
6349
+ }
6350
+ )) })
6337
6351
  }
6338
- )) })
6339
- }
6340
- ),
6341
- O.length > 0 && /* @__PURE__ */ g.jsx(
6342
- it,
6343
- {
6344
- layout: {
6345
- sections: [
6346
- {
6347
- id: "1",
6348
- horizontal: !0,
6349
- justify: "start",
6350
- content: O.map((w) => ({
6351
- id: w.props.id
6352
- }))
6353
- }
6354
- ]
6355
- },
6356
- children: O
6357
- }
6358
- )
6359
- ] });
6352
+ ),
6353
+ O.length > 0 && /* @__PURE__ */ g.jsx(
6354
+ it,
6355
+ {
6356
+ layout: {
6357
+ sections: [
6358
+ {
6359
+ id: "1",
6360
+ horizontal: !0,
6361
+ justify: "start",
6362
+ content: O.map((S) => ({
6363
+ id: S.props.id
6364
+ }))
6365
+ }
6366
+ ]
6367
+ },
6368
+ children: O
6369
+ }
6370
+ )
6371
+ ]
6372
+ }
6373
+ );
6360
6374
  };
6361
6375
  export {
6362
6376
  ta as AppBar,