@sme.up/ketchup2 2.0.0-SNAPSHOT-20250730145444 → 2.0.0-SNAPSHOT-20250731075301

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.
@@ -80,7 +80,7 @@ function hn() {
80
80
  return m = m.displayName, m || (m = x.displayName || x.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
81
81
  case L:
82
82
  return x = m.displayName || null, x !== null ? x : t(m.type) || "Memo";
83
- case M:
83
+ case V:
84
84
  x = m._payload, m = m._init;
85
85
  try {
86
86
  return t(m(x));
@@ -111,7 +111,7 @@ function hn() {
111
111
  }
112
112
  function n(m) {
113
113
  if (m === v) return "<>";
114
- if (typeof m == "object" && m !== null && m.$$typeof === M)
114
+ if (typeof m == "object" && m !== null && m.$$typeof === V)
115
115
  return "<...>";
116
116
  try {
117
117
  var x = t(m);
@@ -136,7 +136,7 @@ function hn() {
136
136
  }
137
137
  function i(m, x) {
138
138
  function k() {
139
- U || (U = !0, console.error(
139
+ M || (M = !0, console.error(
140
140
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
141
141
  x
142
142
  ));
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
237
237
  function u(m) {
238
238
  typeof m == "object" && m !== null && m.$$typeof === g && m._store && (m._store.validated = 1);
239
239
  }
240
- var f = pt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, O = Array.isArray, _ = console.createTask ? console.createTask : function() {
240
+ var f = pt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, O = Array.isArray, _ = console.createTask ? console.createTask : function() {
241
241
  return null;
242
242
  };
243
243
  f = {
@@ -245,7 +245,7 @@ React keys must be passed directly to JSX without using spread:
245
245
  return m();
246
246
  }
247
247
  };
248
- var U, H = {}, X = f.react_stack_bottom_frame.bind(
248
+ var M, H = {}, X = f.react_stack_bottom_frame.bind(
249
249
  f,
250
250
  a
251
251
  )(), J = _(n(a)), N = {};
@@ -548,17 +548,17 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
548
548
  path: [],
549
549
  pattern: ["fill", "stroke"],
550
550
  radialGradient: ["fill", "stroke"]
551
- }, y, b, j, L, M;
551
+ }, y, b, j, L, V;
552
552
  Object.keys(C).forEach(function(J) {
553
553
  y = J, j = C[J], b = u.querySelectorAll(y + "[id]");
554
554
  for (var N = function(D, $) {
555
- L = b[D].id, M = L + "-" + Tn();
555
+ L = b[D].id, V = L + "-" + Tn();
556
556
  var A;
557
557
  Array.prototype.forEach.call(j, function(G) {
558
558
  A = u.querySelectorAll("[" + G + '*="' + L + '"]');
559
- for (var ee = 0, V = A.length; ee < V; ee++) {
559
+ for (var ee = 0, U = A.length; ee < U; ee++) {
560
560
  var K = A[ee].getAttribute(G);
561
- K && !K.match(new RegExp('url\\("?#' + L + '"?\\)')) || A[ee].setAttribute(G, "url(#" + M + ")");
561
+ K && !K.match(new RegExp('url\\("?#' + L + '"?\\)')) || A[ee].setAttribute(G, "url(#" + V + ")");
562
562
  }
563
563
  });
564
564
  for (var Y = u.querySelectorAll("[*|href]"), B = [], W = 0, Z = Y.length; W < Z; W++) {
@@ -566,8 +566,8 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
566
566
  z && z.toString() === "#" + b[D].id && B.push(Y[W]);
567
567
  }
568
568
  for (var ie = 0, F = B.length; ie < F; ie++)
569
- B[ie].setAttributeNS(Ot, "href", "#" + M);
570
- b[D].id = M;
569
+ B[ie].setAttributeNS(Ot, "href", "#" + V);
570
+ b[D].id = V;
571
571
  }, m = 0, x = b.length; m < x; m++)
572
572
  N(m);
573
573
  });
@@ -576,8 +576,8 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
576
576
  for (var I = u.querySelectorAll("script"), P = [], R, T, O = 0, _ = I.length; O < _; O++)
577
577
  T = I[O].getAttribute("type"), (!T || T === "application/ecmascript" || T === "application/javascript" || T === "text/javascript") && (R = I[O].innerText || I[O].textContent, R && P.push(R), u.removeChild(I[O]));
578
578
  if (P.length > 0 && (r === "always" || r === "once" && !sr[l])) {
579
- for (var U = 0, H = P.length; U < H; U++)
580
- new Function(P[U])(window);
579
+ for (var M = 0, H = P.length; M < H; M++)
580
+ new Function(P[M])(window);
581
581
  sr[l] = !0;
582
582
  }
583
583
  var X = u.querySelectorAll("style");
@@ -709,14 +709,14 @@ function Rn() {
709
709
  case u:
710
710
  return ee;
711
711
  default:
712
- var V = ee && ee.$$typeof;
713
- switch (V) {
712
+ var U = ee && ee.$$typeof;
713
+ switch (U) {
714
714
  case i:
715
715
  case d:
716
716
  case p:
717
717
  case g:
718
718
  case o:
719
- return V;
719
+ return U;
720
720
  default:
721
721
  return G;
722
722
  }
@@ -726,7 +726,7 @@ function Rn() {
726
726
  }
727
727
  }
728
728
  }
729
- var b = l, j = c, L = i, M = o, I = e, P = d, R = n, T = p, O = g, _ = r, U = a, H = s, X = u, J = !1;
729
+ var b = l, j = c, L = i, V = o, I = e, P = d, R = n, T = p, O = g, _ = r, M = a, H = s, X = u, J = !1;
730
730
  function N(F) {
731
731
  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.")), m(F) || y(F) === l;
732
732
  }
@@ -766,7 +766,7 @@ function Rn() {
766
766
  function ie(F) {
767
767
  return y(F) === u;
768
768
  }
769
- se.AsyncMode = b, se.ConcurrentMode = j, se.ContextConsumer = L, se.ContextProvider = M, se.Element = I, se.ForwardRef = P, se.Fragment = R, se.Lazy = T, se.Memo = O, se.Portal = _, se.Profiler = U, se.StrictMode = H, se.Suspense = X, se.isAsyncMode = N, se.isConcurrentMode = m, se.isContextConsumer = x, se.isContextProvider = k, se.isElement = D, se.isForwardRef = $, se.isFragment = A, se.isLazy = Y, se.isMemo = B, se.isPortal = W, se.isProfiler = Z, se.isStrictMode = z, se.isSuspense = ie, se.isValidElementType = C, se.typeOf = y;
769
+ se.AsyncMode = b, se.ConcurrentMode = j, se.ContextConsumer = L, se.ContextProvider = V, se.Element = I, se.ForwardRef = P, se.Fragment = R, se.Lazy = T, se.Memo = O, se.Portal = _, se.Profiler = M, se.StrictMode = H, se.Suspense = X, se.isAsyncMode = N, se.isConcurrentMode = m, se.isContextConsumer = x, se.isContextProvider = k, se.isElement = D, se.isForwardRef = $, se.isFragment = A, se.isLazy = Y, se.isMemo = B, se.isPortal = W, se.isProfiler = Z, se.isStrictMode = z, se.isSuspense = ie, se.isValidElementType = C, se.typeOf = y;
770
770
  }()), se;
771
771
  }
772
772
  var lr;
@@ -923,7 +923,7 @@ function $n() {
923
923
  elementType: b(),
924
924
  instanceOf: j,
925
925
  node: P(),
926
- objectOf: M,
926
+ objectOf: V,
927
927
  oneOf: L,
928
928
  oneOfType: I,
929
929
  shape: T,
@@ -1043,7 +1043,7 @@ function $n() {
1043
1043
  }
1044
1044
  return w(x);
1045
1045
  }
1046
- function M(m) {
1046
+ function V(m) {
1047
1047
  function x(k, D, $, A, Y) {
1048
1048
  if (typeof m != "function")
1049
1049
  return new v("Property `" + Y + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
@@ -1166,12 +1166,12 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1166
1166
  return !1;
1167
1167
  }
1168
1168
  }
1169
- function U(m, x) {
1169
+ function M(m, x) {
1170
1170
  return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
1171
1171
  }
1172
1172
  function H(m) {
1173
1173
  var x = typeof m;
1174
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : U(x, m) ? "symbol" : x;
1174
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : M(x, m) ? "symbol" : x;
1175
1175
  }
1176
1176
  function X(m) {
1177
1177
  if (typeof m > "u" || m === null)
@@ -1305,7 +1305,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
1305
1305
  }, function() {
1306
1306
  g(L);
1307
1307
  });
1308
- }, y = function(L, M) {
1308
+ }, y = function(L, V) {
1309
1309
  if (L) {
1310
1310
  C(L);
1311
1311
  return;
@@ -1316,15 +1316,15 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
1316
1316
  };
1317
1317
  }, function() {
1318
1318
  try {
1319
- v(M);
1319
+ v(V);
1320
1320
  } catch (I) {
1321
1321
  C(I);
1322
1322
  }
1323
1323
  });
1324
1324
  }, b = function(L) {
1325
1325
  if (L.setAttribute("role", "img"), o) {
1326
- var M = L.querySelector(":scope > desc");
1327
- M && L.removeChild(M);
1326
+ var V = L.querySelector(":scope > desc");
1327
+ V && L.removeChild(V);
1328
1328
  var I = document.createElement("desc");
1329
1329
  I.innerHTML = o, L.prepend(I);
1330
1330
  }
@@ -1444,10 +1444,10 @@ const Da = (t) => {
1444
1444
  !a && c && l && l(T);
1445
1445
  }, y = (T) => {
1446
1446
  !a && c && (T.key === "Enter" || T.key === " ") && (T.preventDefault(), C(T));
1447
- }, b = p ? n : t, j = w(b), M = E(b) ? b : Fn(`assets/svg/${b}`), I = () => /* @__PURE__ */ h.jsx(
1447
+ }, b = p ? n : t, j = w(b), V = E(b) ? b : Fn(`assets/svg/${b}`), I = () => /* @__PURE__ */ h.jsx(
1448
1448
  Yt,
1449
1449
  {
1450
- src: M,
1450
+ src: V,
1451
1451
  onError: () => v(!0),
1452
1452
  width: e || "1rem",
1453
1453
  height: r || "1rem",
@@ -2140,14 +2140,14 @@ const Ze = (t, e, r) => {
2140
2140
  isClearable: b = !1,
2141
2141
  fullWidth: j = !1,
2142
2142
  _dataComponent: L = "textfield",
2143
- min: M,
2143
+ min: V,
2144
2144
  max: I,
2145
2145
  step: P,
2146
2146
  inputMode: R = "text",
2147
2147
  width: T,
2148
2148
  autocomplete: O,
2149
2149
  size: _,
2150
- maxLength: U,
2150
+ maxLength: M,
2151
2151
  onBlur: H,
2152
2152
  onChange: X,
2153
2153
  onKeyDown: J,
@@ -2187,13 +2187,13 @@ const Ze = (t, e, r) => {
2187
2187
  "aria-label": w,
2188
2188
  ref: p,
2189
2189
  "aria-describedby": $ ? k : void 0,
2190
- min: M,
2190
+ min: V,
2191
2191
  max: I,
2192
2192
  step: P,
2193
2193
  inputMode: R,
2194
2194
  autoComplete: O,
2195
2195
  size: _,
2196
- maxLength: U,
2196
+ maxLength: M,
2197
2197
  onClick: m
2198
2198
  }
2199
2199
  ),
@@ -2336,7 +2336,7 @@ const Kn = 10, Kr = ({
2336
2336
  (_) => _.decode?.toLowerCase()?.includes(u.toLowerCase())
2337
2337
  ) : e, b = (_) => {
2338
2338
  f(_);
2339
- }, { virtualItems: j, containerProps: L, innerProps: M, scrollToIndex: I } = zr({
2339
+ }, { virtualItems: j, containerProps: L, innerProps: V, scrollToIndex: I } = zr({
2340
2340
  items: y,
2341
2341
  itemHeight: g,
2342
2342
  containerHeight: 200,
@@ -2355,8 +2355,8 @@ const Kn = 10, Kr = ({
2355
2355
  const P = (_) => {
2356
2356
  if (_.key === "ArrowDown" || _.key === "ArrowUp") {
2357
2357
  _.preventDefault();
2358
- let U = p;
2359
- _.key === "ArrowDown" ? U = p < y.length - 1 ? p + 1 : 0 : _.key === "ArrowUp" && (U = p > 0 ? p - 1 : y.length - 1), v(U);
2358
+ let M = p;
2359
+ _.key === "ArrowDown" ? M = p < y.length - 1 ? p + 1 : 0 : _.key === "ArrowUp" && (M = p > 0 ? p - 1 : y.length - 1), v(M);
2360
2360
  } else _.key === "Enter" ? p >= 0 && p < y.length && l?.(y[p]) : _.key === "Escape" && (_.preventDefault(), _.stopPropagation());
2361
2361
  c && c(_);
2362
2362
  }, R = (_) => {
@@ -2402,7 +2402,7 @@ const Kn = 10, Kr = ({
2402
2402
  "aria-label": "List",
2403
2403
  onKeyDown: T,
2404
2404
  "aria-activedescendant": p >= 0 && p < y.length ? y[p]?.obj?.k : void 0,
2405
- children: /* @__PURE__ */ h.jsx("div", { ...M, className: O.virtualScroll, children: j.map(({ item: _, index: U, offsetTop: H }) => {
2405
+ children: /* @__PURE__ */ h.jsx("div", { ...V, className: O.virtualScroll, children: j.map(({ item: _, index: M, offsetTop: H }) => {
2406
2406
  const X = o.includes(_.obj?.k);
2407
2407
  return (
2408
2408
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -2411,9 +2411,9 @@ const Kn = 10, Kr = ({
2411
2411
  {
2412
2412
  role: "option",
2413
2413
  id: _.obj?.k,
2414
- "aria-selected": p === U ? "true" : "false",
2414
+ "aria-selected": p === M ? "true" : "false",
2415
2415
  tabIndex: -1,
2416
- className: `${O.listItem} ${p === U ? "selected-item" : ""}`,
2416
+ className: `${O.listItem} ${p === M ? "selected-item" : ""}`,
2417
2417
  "aria-label": _.obj?.k + "-" + _.decode,
2418
2418
  style: {
2419
2419
  height: `${g}px`,
@@ -2422,7 +2422,7 @@ const Kn = 10, Kr = ({
2422
2422
  transform: `translateY(${H}px)`
2423
2423
  },
2424
2424
  onClick: () => {
2425
- l?.(_), v(U);
2425
+ l?.(_), v(M);
2426
2426
  },
2427
2427
  children: [
2428
2428
  Ze(_.obj?.k, _.decode, r),
@@ -2809,7 +2809,7 @@ class xt extends Et {
2809
2809
  let p = g?.res;
2810
2810
  const v = g?.usedKey || i, w = g?.exactUsedKey || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, y = s.count !== void 0 && !Q(s.count), b = xt.hasDefaultValue(s), j = y ? this.pluralResolver.getSuffix(u, s.count, s) : "", L = s.ordinal && y ? this.pluralResolver.getSuffix(u, s.count, {
2811
2811
  ordinal: !1
2812
- }) : "", M = y && !s.ordinal && s.count === 0, I = M && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${L}`] || s.defaultValue;
2812
+ }) : "", V = y && !s.ordinal && s.count === 0, I = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${L}`] || s.defaultValue;
2813
2813
  let P = p;
2814
2814
  C && !p && b && (P = I);
2815
2815
  const R = Or(P), T = Object.prototype.toString.apply(P);
@@ -2823,10 +2823,10 @@ class xt extends Et {
2823
2823
  return a ? (g.res = O, g.usedParams = this.getUsedParamsDetails(s), g) : O;
2824
2824
  }
2825
2825
  if (o) {
2826
- const O = Array.isArray(P), _ = O ? [] : {}, U = O ? w : v;
2826
+ const O = Array.isArray(P), _ = O ? [] : {}, M = O ? w : v;
2827
2827
  for (const H in P)
2828
2828
  if (Object.prototype.hasOwnProperty.call(P, H)) {
2829
- const X = `${U}${o}${H}`;
2829
+ const X = `${M}${o}${H}`;
2830
2830
  b && !p ? _[H] = this.translate(X, {
2831
2831
  ...s,
2832
2832
  defaultValue: Or(I) ? I[H] : void 0,
@@ -2866,7 +2866,7 @@ class xt extends Et {
2866
2866
  };
2867
2867
  this.options.saveMissing && (this.options.saveMissingPlurals && y ? J.forEach((x) => {
2868
2868
  const k = this.pluralResolver.getSuffixes(x, s);
2869
- M && s[`defaultValue${this.options.pluralSeparator}zero`] && k.indexOf(`${this.options.pluralSeparator}zero`) < 0 && k.push(`${this.options.pluralSeparator}zero`), k.forEach((D) => {
2869
+ V && s[`defaultValue${this.options.pluralSeparator}zero`] && k.indexOf(`${this.options.pluralSeparator}zero`) < 0 && k.push(`${this.options.pluralSeparator}zero`), k.forEach((D) => {
2870
2870
  m([x], i + D, s[`defaultValue${D}`] || I);
2871
2871
  });
2872
2872
  }) : m(J, i, I));
@@ -3949,15 +3949,15 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
3949
3949
  }) => {
3950
3950
  const p = ce(null), [v, w] = q(t), [E, S] = q(e), { translate: C } = _e(), [y, b] = q(!1), [j, L] = q(
3951
3951
  r || []
3952
- ), [M, I] = q(0), [P, R] = q([t]), { anchorRef: T, targetRef: O, anchorWidth: _ } = Be({
3952
+ ), [V, I] = q(0), [P, R] = q([t]), { anchorRef: T, targetRef: O, anchorWidth: _ } = Be({
3953
3953
  position: "bottom",
3954
3954
  enabled: y
3955
- }), U = oe(() => {
3955
+ }), M = oe(() => {
3956
3956
  b(!1), p?.current?.focus();
3957
3957
  }, []);
3958
- St([O], y, () => U());
3958
+ St([O], y, () => M());
3959
3959
  const H = Jn(400), X = (D) => {
3960
- D.length >= a ? J(D) : U(), w(D), S(""), l || c?.(D, e);
3960
+ D.length >= a ? J(D) : M(), w(D), S(""), l || c?.(D, e);
3961
3961
  }, J = (D) => {
3962
3962
  H(async () => {
3963
3963
  if (i && d) {
@@ -3972,20 +3972,20 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
3972
3972
  const $ = j.findIndex(
3973
3973
  (A) => A.obj?.k === D.obj?.k
3974
3974
  );
3975
- I($), R([D.obj?.k]), U();
3975
+ I($), R([D.obj?.k]), M();
3976
3976
  }, x = (D) => {
3977
- D.key === "Escape" && (U(), I(-1));
3977
+ D.key === "Escape" && (M(), I(-1));
3978
3978
  }, k = (D) => {
3979
3979
  if ((D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), y)) {
3980
- const $ = D.key === "ArrowDown" ? (M + 1) % j.length : (M - 1 + j.length) % j.length;
3980
+ const $ = D.key === "ArrowDown" ? (V + 1) % j.length : (V - 1 + j.length) % j.length;
3981
3981
  I($);
3982
3982
  }
3983
3983
  switch (D.key) {
3984
3984
  case "Enter":
3985
- M >= 0 && M < j.length ? m(j[M]) : l && (c?.(v, ""), U(), w(""), S(""));
3985
+ V >= 0 && V < j.length ? m(j[V]) : l && (c?.(v, ""), M(), w(""), S(""));
3986
3986
  break;
3987
3987
  case "Escape":
3988
- U(), I(-1);
3988
+ M(), I(-1);
3989
3989
  break;
3990
3990
  }
3991
3991
  };
@@ -4018,7 +4018,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
4018
4018
  displayMode: n,
4019
4019
  onClick: m,
4020
4020
  ref: O,
4021
- selectedIndex: M,
4021
+ selectedIndex: V,
4022
4022
  activeIndex: f || P,
4023
4023
  width: _,
4024
4024
  showFilter: !1,
@@ -4232,7 +4232,7 @@ const Ut = ({
4232
4232
  f(!1), d?.current?.focus();
4233
4233
  }, []);
4234
4234
  St([b, y], u, () => L()), zt(u, b);
4235
- const M = (T) => {
4235
+ const V = (T) => {
4236
4236
  e?.(T.obj.k, T.decode);
4237
4237
  const O = g.findIndex((_) => _.obj.k === T.obj.k);
4238
4238
  w(O), S([T.obj.k]), L();
@@ -4284,7 +4284,7 @@ const Ut = ({
4284
4284
  selectedIndex: v,
4285
4285
  activeIndex: l || E,
4286
4286
  width: j,
4287
- onClick: M,
4287
+ onClick: V,
4288
4288
  onKeyDown: I
4289
4289
  }
4290
4290
  ) })
@@ -4364,7 +4364,7 @@ function Us({
4364
4364
  d === 0 ? (u(11), g(f - 1)) : u(d - 1), v(1);
4365
4365
  }, L = () => {
4366
4366
  d === 11 ? (u(0), g(f + 1)) : u(d + 1), v(1);
4367
- }, M = (N, m) => new Date(N, m + 1, 0).getDate(), I = (N, m) => new Date(N, m, 1).getDay(), P = (N) => {
4367
+ }, V = (N, m) => new Date(N, m + 1, 0).getDate(), I = (N, m) => new Date(N, m, 1).getDay(), P = (N) => {
4368
4368
  const m = _.findIndex(
4369
4369
  (x) => x !== null && x.getDate() === N
4370
4370
  );
@@ -4372,7 +4372,7 @@ function Us({
4372
4372
  }, R = (N, m) => {
4373
4373
  const x = _[m];
4374
4374
  if (!x) return;
4375
- const k = M(f, d), D = x.getDate();
4375
+ const k = V(f, d), D = x.getDate();
4376
4376
  switch (N.key) {
4377
4377
  case "ArrowRight":
4378
4378
  N.preventDefault();
@@ -4395,7 +4395,7 @@ function Us({
4395
4395
  {
4396
4396
  let $ = D - 1, A = new Date(f, d, $);
4397
4397
  if ($ < 1) {
4398
- const Y = d === 0 ? f - 1 : f, B = d === 0 ? 11 : d - 1, W = M(Y, B);
4398
+ const Y = d === 0 ? f - 1 : f, B = d === 0 ? 11 : d - 1, W = V(Y, B);
4399
4399
  $ = W, A = new Date(Y, B, $), j(), setTimeout(() => {
4400
4400
  T(W, "backward");
4401
4401
  }, 0);
@@ -4410,7 +4410,7 @@ function Us({
4410
4410
  let $ = D - 7, A = new Date(f, d, $);
4411
4411
  if ($ < 1) {
4412
4412
  const Y = d === 0 ? f - 1 : f, B = d === 0 ? 11 : d - 1;
4413
- $ = M(Y, B) + $, A = new Date(Y, B, $), j(), setTimeout(() => {
4413
+ $ = V(Y, B) + $, A = new Date(Y, B, $), j(), setTimeout(() => {
4414
4414
  T($, "backward");
4415
4415
  }, 0);
4416
4416
  return;
@@ -4440,7 +4440,7 @@ function Us({
4440
4440
  break;
4441
4441
  case "PageUp":
4442
4442
  N.preventDefault(), j(), setTimeout(() => {
4443
- const $ = M(
4443
+ const $ = V(
4444
4444
  d === 0 ? f - 1 : f,
4445
4445
  d === 0 ? 11 : d - 1
4446
4446
  ), A = Math.min(D, $);
@@ -4449,7 +4449,7 @@ function Us({
4449
4449
  break;
4450
4450
  case "PageDown":
4451
4451
  N.preventDefault(), L(), setTimeout(() => {
4452
- const $ = M(
4452
+ const $ = V(
4453
4453
  d === 11 ? f + 1 : f,
4454
4454
  d === 11 ? 0 : d + 1
4455
4455
  ), A = Math.min(D, $);
@@ -4466,7 +4466,7 @@ function Us({
4466
4466
  break;
4467
4467
  }
4468
4468
  }, T = (N, m) => {
4469
- const x = M(f, d);
4469
+ const x = V(f, d);
4470
4470
  if (m === "forward") {
4471
4471
  for (let k = N; k <= x; k++) {
4472
4472
  const D = new Date(f, d, k);
@@ -4486,13 +4486,13 @@ function Us({
4486
4486
  return;
4487
4487
  }
4488
4488
  }
4489
- const k = d === 0 ? f - 1 : f, D = d === 0 ? 11 : d - 1, $ = M(k, D);
4489
+ const k = d === 0 ? f - 1 : f, D = d === 0 ? 11 : d - 1, $ = V(k, D);
4490
4490
  j(), setTimeout(() => {
4491
4491
  T($, "backward");
4492
4492
  }, 0);
4493
4493
  }
4494
4494
  }, _ = (() => {
4495
- const N = M(f, d), m = I(f, d), x = [];
4495
+ const N = V(f, d), m = I(f, d), x = [];
4496
4496
  for (let k = 0; k < m; k++)
4497
4497
  x.push(null);
4498
4498
  for (let k = 1; k <= N; k++) {
@@ -4500,13 +4500,13 @@ function Us({
4500
4500
  x.push(D);
4501
4501
  }
4502
4502
  return x;
4503
- })(), U = [];
4503
+ })(), M = [];
4504
4504
  let H = [];
4505
4505
  _.forEach((N, m) => {
4506
4506
  if (H.push(N), H.length === 7 || m === _.length - 1) {
4507
4507
  for (; H.length < 7; )
4508
4508
  H.push(null);
4509
- U.push(H), H = [];
4509
+ M.push(H), H = [];
4510
4510
  }
4511
4511
  }), re(() => {
4512
4512
  if (p !== null) {
@@ -4599,7 +4599,7 @@ function Us({
4599
4599
  },
4600
4600
  N.value
4601
4601
  )) }) }),
4602
- /* @__PURE__ */ h.jsx("tbody", { children: U.map((N, m) => /* @__PURE__ */ h.jsx("tr", { children: N.map((x, k) => {
4602
+ /* @__PURE__ */ h.jsx("tbody", { children: M.map((N, m) => /* @__PURE__ */ h.jsx("tr", { children: N.map((x, k) => {
4603
4603
  const D = m * 7 + k;
4604
4604
  if (x === null)
4605
4605
  return /* @__PURE__ */ h.jsx(
@@ -4691,7 +4691,7 @@ const Zr = ({
4691
4691
  r && r(R && P || I);
4692
4692
  }, L = (I) => {
4693
4693
  f(I);
4694
- }, M = (I) => {
4694
+ }, V = (I) => {
4695
4695
  I.key === "Enter" && (I.preventDefault(), j(u));
4696
4696
  };
4697
4697
  return /* @__PURE__ */ h.jsxs("div", { "data-component": "date-picker", children: [
@@ -4703,7 +4703,7 @@ const Zr = ({
4703
4703
  placeholder: e,
4704
4704
  onBlur: y,
4705
4705
  onChange: L,
4706
- onKeyDown: M,
4706
+ onKeyDown: V,
4707
4707
  shapeIcon: "calendar",
4708
4708
  onShapeIconClick: C,
4709
4709
  ref: g,
@@ -4809,8 +4809,10 @@ const Zr = ({
4809
4809
  }
4810
4810
  );
4811
4811
  }, Ys = ({ ...t }) => {
4812
- const [e, r] = q(t.bindValue), { translate: n } = _e(), s = (a) => {
4813
- a.key === "Enter" && (a.preventDefault(), t.onEnter?.(e));
4812
+ const [e, r] = q(t.bindValue), { translate: n } = _e(), s = (o) => {
4813
+ o.key === "Enter" && (o.preventDefault(), t.onEnter?.(e));
4814
+ }, a = (o) => {
4815
+ r(o), t.onChange?.(o);
4814
4816
  };
4815
4817
  return /* @__PURE__ */ h.jsx(
4816
4818
  Oe,
@@ -4820,7 +4822,7 @@ const Zr = ({
4820
4822
  icon: "magnify",
4821
4823
  inputType: "search",
4822
4824
  bindValue: e,
4823
- onChange: r,
4825
+ onChange: a,
4824
4826
  onKeyDown: s,
4825
4827
  ariaLabel: "search bar",
4826
4828
  _dataComponent: "search-bar"
@@ -4942,19 +4944,19 @@ const Le = (t, e, r) => ({
4942
4944
  const _ = v(T, f, g);
4943
4945
  if (isNaN(_))
4944
4946
  if (j.current != null) {
4945
- const U = p(j.current, S);
4946
- b(U);
4947
+ const M = p(j.current, S);
4948
+ b(M);
4947
4949
  } else
4948
4950
  b("");
4949
4951
  else {
4950
- const U = w(_, t, e), H = Ds(
4952
+ const M = w(_, t, e), H = Ds(
4951
4953
  T,
4952
4954
  f,
4953
4955
  g
4954
4956
  );
4955
4957
  C(H);
4956
- const X = p(U, H);
4957
- b(X), j.current = U, o?.(U, X), O && i?.(U);
4958
+ const X = p(M, H);
4959
+ b(X), j.current = M, o?.(M, X), O && i?.(M);
4958
4960
  }
4959
4961
  },
4960
4962
  [
@@ -4969,21 +4971,21 @@ const Le = (t, e, r) => ({
4969
4971
  i,
4970
4972
  S
4971
4973
  ]
4972
- ), M = (T) => b(T), I = () => L(y), P = (T) => {
4974
+ ), V = (T) => b(T), I = () => L(y), P = (T) => {
4973
4975
  if (T.key === "Enter") {
4974
4976
  T.preventDefault(), L(y, !0);
4975
4977
  return;
4976
4978
  }
4977
4979
  if (T.key === "ArrowUp" || T.key === "ArrowDown") {
4978
4980
  T.preventDefault();
4979
- const O = T.key === "ArrowUp" ? 1 : -1, _ = j.current ?? 0, U = w(_ + O * r, t, e);
4980
- L(p(U, S));
4981
+ const O = T.key === "ArrowUp" ? 1 : -1, _ = j.current ?? 0, M = w(_ + O * r, t, e);
4982
+ L(p(M, S));
4981
4983
  }
4982
4984
  }, R = (T) => {
4983
4985
  if (!T.currentTarget.contains(document.activeElement)) return;
4984
4986
  T.preventDefault();
4985
- const O = T.deltaY < 0 ? 1 : -1, _ = j.current ?? 0, U = w(_ + O * r, t, e);
4986
- L(p(U, S));
4987
+ const O = T.deltaY < 0 ? 1 : -1, _ = j.current ?? 0, M = w(_ + O * r, t, e);
4988
+ L(p(M, S));
4987
4989
  };
4988
4990
  return /* @__PURE__ */ h.jsx("div", { ref: d, "data-component": "input-number", onWheel: R, children: /* @__PURE__ */ h.jsx(
4989
4991
  Oe,
@@ -4998,7 +5000,7 @@ const Le = (t, e, r) => ({
4998
5000
  min: t,
4999
5001
  max: e,
5000
5002
  step: r,
5001
- onChange: M,
5003
+ onChange: V,
5002
5004
  onBlur: I,
5003
5005
  onKeyDown: P
5004
5006
  }
@@ -5256,8 +5258,8 @@ const Fe = {
5256
5258
  }, w = (b) => {
5257
5259
  u(b);
5258
5260
  }, E = (b, j, L) => {
5259
- const M = Xs(b, j, L);
5260
- c(M), u(M), r?.(M), p();
5261
+ const V = Xs(b, j, L);
5262
+ c(V), u(V), r?.(V), p();
5261
5263
  }, S = () => {
5262
5264
  y(d);
5263
5265
  }, C = (b) => {
@@ -5460,7 +5462,7 @@ const Ce = {
5460
5462
  style: { width: `${E}px` },
5461
5463
  "aria-hidden": "true"
5462
5464
  }
5463
- ), M = () => {
5465
+ ), V = () => {
5464
5466
  if (l)
5465
5467
  return /* @__PURE__ */ h.jsx(
5466
5468
  qt,
@@ -5497,7 +5499,7 @@ const Ce = {
5497
5499
  minWidth: 40,
5498
5500
  justifyContent: "center"
5499
5501
  },
5500
- children: M()
5502
+ children: V()
5501
5503
  }
5502
5504
  ),
5503
5505
  Ve(t) && /* @__PURE__ */ h.jsxs(
@@ -5516,7 +5518,7 @@ const Ce = {
5516
5518
  ]
5517
5519
  }
5518
5520
  ),
5519
- e && e.length > 0 ? e.filter((_) => _.visible !== !1).map((_, U) => {
5521
+ e && e.length > 0 ? e.filter((_) => _.visible !== !1).map((_, M) => {
5520
5522
  const H = t.cells?.[_.name];
5521
5523
  return H ? /* @__PURE__ */ h.jsx(
5522
5524
  "td",
@@ -5535,9 +5537,9 @@ const Ce = {
5535
5537
  id: _.name
5536
5538
  })
5537
5539
  },
5538
- _.name + U
5540
+ _.name + M
5539
5541
  ) : null;
5540
- }) : t.cells && Object.entries(t.cells).map(([_, U]) => {
5542
+ }) : t.cells && Object.entries(t.cells).map(([_, M]) => {
5541
5543
  const H = t.cells?.[_];
5542
5544
  return H ? /* @__PURE__ */ h.jsx(
5543
5545
  "td",
@@ -5551,7 +5553,7 @@ const Ce = {
5551
5553
  id: _
5552
5554
  })
5553
5555
  },
5554
- _ + U
5556
+ _ + M
5555
5557
  ) : null;
5556
5558
  })
5557
5559
  ]
@@ -5624,11 +5626,11 @@ const Ce = {
5624
5626
  isEditable: S,
5625
5627
  size: y.data && y.data.size ? y.data.size : 20,
5626
5628
  ...s
5627
- }, L = (O, _, U) => Un(n) ? Le(O, new bt(n, _).getLegacyValue()) : Bn(n) ? Le(O, new wt(n, _).getLegacyValue()) : u?.forceUppercase ? Le(
5629
+ }, L = (O, _, M) => Un(n) ? Le(O, new bt(n, _).getLegacyValue()) : Bn(n) ? Le(O, new wt(n, _).getLegacyValue()) : u?.forceUppercase ? Le(
5628
5630
  O,
5629
5631
  _.toLocaleUpperCase(),
5630
- U
5631
- ) : Le(O, _, U), M = (O, _) => Le(
5632
+ M
5633
+ ) : Le(O, _, M), V = (O, _) => Le(
5632
5634
  O,
5633
5635
  new Qe(n, _, C).getLegacyValue()
5634
5636
  ), I = (O) => Le(y, new gt(n, O).getLegacyValue()), P = (O) => qs(y, O), R = () => {
@@ -5638,8 +5640,8 @@ const Ce = {
5638
5640
  ...j,
5639
5641
  bindValue: y.obj.k,
5640
5642
  optionalDisplayValue: e,
5641
- onChange: (_, U) => {
5642
- f?.(L(y, _, U));
5643
+ onChange: (_, M) => {
5644
+ f?.(L(y, _, M));
5643
5645
  }
5644
5646
  };
5645
5647
  return /* @__PURE__ */ h.jsx(Qr, { ...O });
@@ -5660,8 +5662,8 @@ const Ce = {
5660
5662
  const O = {
5661
5663
  ...j,
5662
5664
  options: d,
5663
- onClick: (_, U) => {
5664
- const H = { ...y, fun: U };
5665
+ onClick: (_, M) => {
5666
+ const H = { ...y, fun: M };
5665
5667
  g?.(L(H, _));
5666
5668
  }
5667
5669
  };
@@ -5680,8 +5682,8 @@ const Ce = {
5680
5682
  ...j,
5681
5683
  bindValue: gt.fromDataObj(n).getValue(),
5682
5684
  optionalDisplayValue: e,
5683
- onChange: (U) => {
5684
- f?.(I(U));
5685
+ onChange: (M) => {
5686
+ f?.(I(M));
5685
5687
  },
5686
5688
  ...O && { variant: "switch" }
5687
5689
  };
@@ -5692,8 +5694,8 @@ const Ce = {
5692
5694
  ...j,
5693
5695
  bindValue: y.obj.k,
5694
5696
  optionalDisplayValue: e,
5695
- onChange: (_, U) => {
5696
- f?.(L(y, _, U));
5697
+ onChange: (_, M) => {
5698
+ f?.(L(y, _, M));
5697
5699
  }
5698
5700
  };
5699
5701
  return /* @__PURE__ */ h.jsx(Ut, { ...O });
@@ -5725,7 +5727,7 @@ const Ce = {
5725
5727
  ...j,
5726
5728
  bindValue: Qe.fromDataObj(n, C).getValue(),
5727
5729
  onChange: (_) => {
5728
- f?.(M(y, _));
5730
+ f?.(V(y, _));
5729
5731
  }
5730
5732
  };
5731
5733
  return /* @__PURE__ */ h.jsx(en, { ...O });
@@ -5779,8 +5781,8 @@ const Ce = {
5779
5781
  const O = {
5780
5782
  ...j,
5781
5783
  bindValue: n.k,
5782
- onChange: (_, U) => {
5783
- f?.(L(y, _, U));
5784
+ onChange: (_, M) => {
5785
+ f?.(L(y, _, M));
5784
5786
  }
5785
5787
  };
5786
5788
  return /* @__PURE__ */ h.jsx(zs, { ...O });
@@ -5791,6 +5793,9 @@ const Ce = {
5791
5793
  bindValue: y.obj.k,
5792
5794
  onEnter: (_) => {
5793
5795
  p?.(L(y, _));
5796
+ },
5797
+ onChange: (_, M) => {
5798
+ f?.(L(y, _, M));
5794
5799
  }
5795
5800
  };
5796
5801
  return /* @__PURE__ */ h.jsx(Ys, { ...O });
@@ -5810,8 +5815,8 @@ const Ce = {
5810
5815
  const O = {
5811
5816
  ...j,
5812
5817
  bindValue: n.k,
5813
- onChange: (_, U) => {
5814
- f?.(L(y, _, U));
5818
+ onChange: (_, M) => {
5819
+ f?.(L(y, _, M));
5815
5820
  }
5816
5821
  };
5817
5822
  return /* @__PURE__ */ h.jsx(tn, { ...O });
@@ -5925,11 +5930,11 @@ const Ce = {
5925
5930
  return {};
5926
5931
  const b = y.rows[0];
5927
5932
  return y.columns.filter((j) => j.visible ?? !0).reduce((j, L) => {
5928
- const M = b.cells[L.name];
5929
- if (!M || !f && ue(n) && M.shape !== te.BUTTON && M.shape !== te.BUTTON_LIST)
5933
+ const V = b.cells[L.name];
5934
+ if (!V || !f && ue(n) && V.shape !== te.BUTTON && V.shape !== te.BUTTON_LIST)
5930
5935
  return j;
5931
5936
  const I = {
5932
- ...M,
5937
+ ...V,
5933
5938
  id: L.name,
5934
5939
  onOptionsRequest: l,
5935
5940
  onChange: (P) => {
@@ -6063,11 +6068,11 @@ const Ce = {
6063
6068
  SelectLayout: S = "1",
6064
6069
  onClick: C
6065
6070
  }) => {
6066
- const y = "N/A", b = e?.columns || [], j = e?.rows || [], L = j.length > 0, M = "--smp-dashList-color", I = "smp-layout", P = "descr", R = "icon", T = "um", O = "value", _ = o || "1em", U = "18px", H = "--smp-dashList-columns", X = "--smp-dashList-fontSize", J = {
6071
+ const y = "N/A", b = e?.columns || [], j = e?.rows || [], L = j.length > 0, V = "--smp-dashList-color", I = "smp-layout", P = "descr", R = "icon", T = "um", O = "value", _ = o || "1em", M = "18px", H = "--smp-dashList-columns", X = "--smp-dashList-fontSize", J = {
6067
6072
  dash: (G = "1") => {
6068
- const ee = m(G), V = ee, K = x(ee, P), le = x(ee, R), he = x(ee, T), ae = x(ee, O);
6073
+ const ee = m(G), U = ee, K = x(ee, P), le = x(ee, R), he = x(ee, T), ae = x(ee, O);
6069
6074
  return {
6070
- container: V,
6075
+ container: U,
6071
6076
  descr: K,
6072
6077
  icon: le,
6073
6078
  um: he,
@@ -6076,7 +6081,7 @@ const Ce = {
6076
6081
  },
6077
6082
  dashList: `smp-dash-list ${ue(a) ? "smp-dash-list-fill-space" : ""}
6078
6083
  ${ue(i) ? "smp-dash-list-horizontal" : ""}`
6079
- }, { format: N } = _e(), m = (G) => `${I}-${G}`, x = (G, ee) => `${G}__${ee}`, k = (G) => `${M}-${G}`, D = (G) => {
6084
+ }, { format: N } = _e(), m = (G) => `${I}-${G}`, x = (G, ee) => `${G}__${ee}`, k = (G) => `${V}-${G}`, D = (G) => {
6080
6085
  const ee = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
6081
6086
  if (ee.test(G)) {
6082
6087
  const K = G.match(ee) || [];
@@ -6086,9 +6091,9 @@ const Ce = {
6086
6091
  return G;
6087
6092
  }, $ = (G) => {
6088
6093
  if (!u) return G;
6089
- const [ee, V] = A(u).map(
6094
+ const [ee, U] = A(u).map(
6090
6095
  (xe) => parseInt(xe || "0")
6091
- ), K = "0,0" + (V ? "." + "0".repeat(V) : ""), le = N(G, K, "it");
6096
+ ), K = "0,0" + (U ? "." + "0".repeat(U) : ""), le = N(G, K, "it");
6092
6097
  if (!ee) return le;
6093
6098
  const [he, ae] = le.split(",");
6094
6099
  return he + (ae ? `,${ae}` : "");
@@ -6096,15 +6101,15 @@ const Ce = {
6096
6101
  const ee = (K) => {
6097
6102
  if (K)
6098
6103
  return G?.cells[K]?.obj.k;
6099
- }, V = (K) => {
6104
+ }, U = (K) => {
6100
6105
  if (!(b.length <= K))
6101
6106
  return G?.cells[b[K].name]?.obj?.k;
6102
6107
  };
6103
6108
  return {
6104
- descr: r || ee(n) || V(2) || "",
6105
- icon: l || ee(c) || V(3) || "",
6106
- um: f || ee(g) || V(1) || "",
6107
- value: v || ee(w) || V(0) || ""
6109
+ descr: r || ee(n) || U(2) || "",
6110
+ icon: l || ee(c) || U(3) || "",
6111
+ um: f || ee(g) || U(1) || "",
6112
+ value: v || ee(w) || U(0) || ""
6108
6113
  };
6109
6114
  }, B = (G) => {
6110
6115
  C?.(G);
@@ -6114,28 +6119,28 @@ const Ce = {
6114
6119
  const ee = J.dash(G);
6115
6120
  return {
6116
6121
  className: ee,
6117
- descr: (V) => /* @__PURE__ */ h.jsx("div", { className: ee.descr, children: V }, `${G}-${P}`),
6118
- icon: (V) => /* @__PURE__ */ h.jsx("div", { className: ee.icon, children: /* @__PURE__ */ h.jsx(
6122
+ descr: (U) => /* @__PURE__ */ h.jsx("div", { className: ee.descr, children: U }, `${G}-${P}`),
6123
+ icon: (U) => /* @__PURE__ */ h.jsx("div", { className: ee.icon, children: /* @__PURE__ */ h.jsx(
6119
6124
  de,
6120
6125
  {
6121
6126
  color: d,
6122
- height: U,
6123
- icon: V,
6124
- width: U
6127
+ height: M,
6128
+ icon: U,
6129
+ width: M
6125
6130
  }
6126
6131
  ) }, `${G}-${R}`),
6127
- um: (V) => /* @__PURE__ */ h.jsx("div", { className: ee.um, children: V }, `${G}-${T}`),
6128
- value: (V) => /* @__PURE__ */ h.jsx("div", { className: ee.value, children: V }, `${G}-${O}`)
6132
+ um: (U) => /* @__PURE__ */ h.jsx("div", { className: ee.um, children: U }, `${G}-${T}`),
6133
+ value: (U) => /* @__PURE__ */ h.jsx("div", { className: ee.value, children: U }, `${G}-${O}`)
6129
6134
  };
6130
6135
  })(S), ie = (G) => {
6131
- const { descr: ee, icon: V, um: K, value: le } = Y(G), he = {
6136
+ const { descr: ee, icon: U, um: K, value: le } = Y(G), he = {
6132
6137
  [k(P)]: D(s),
6133
6138
  [k(T)]: D(p),
6134
6139
  [k(O)]: D(E)
6135
6140
  }, ae = [], xe = $(le);
6136
6141
  switch (S) {
6137
6142
  case "2":
6138
- V && ae.push(z.icon(V)), ae.push(z.descr(ee)), ae.push(
6143
+ U && ae.push(z.icon(U)), ae.push(z.descr(ee)), ae.push(
6139
6144
  z.value(K ? xe + " " + K : xe)
6140
6145
  );
6141
6146
  break;
@@ -6909,14 +6914,14 @@ const Ue = {
6909
6914
  onMouseDown: b,
6910
6915
  onToggleAllRows: j,
6911
6916
  onSort: L,
6912
- onDragStart: M,
6917
+ onDragStart: V,
6913
6918
  onDragOver: I,
6914
6919
  onDrop: P
6915
6920
  }) => {
6916
6921
  const R = ce({}), { anchorRef: T, targetRef: O } = Be({
6917
6922
  position: "bottom",
6918
6923
  enabled: a
6919
- }), { anchorRef: _, targetRef: U } = Be({
6924
+ }), { anchorRef: _, targetRef: M } = Be({
6920
6925
  position: "bottom",
6921
6926
  enabled: o !== null
6922
6927
  }), H = oe(
@@ -7004,7 +7009,7 @@ const Ue = {
7004
7009
  onKeyDown: (m) => {
7005
7010
  (m.key === "Enter" || m.key === " ") && (m.preventDefault(), L(N.name));
7006
7011
  },
7007
- onDragStart: () => M(N.name),
7012
+ onDragStart: () => V(N.name),
7008
7013
  onDragOver: I,
7009
7014
  onDrop: () => P(N.name),
7010
7015
  className: J.headerCell,
@@ -7061,7 +7066,7 @@ const Ue = {
7061
7066
  ),
7062
7067
  onChange: w,
7063
7068
  hasSubGroups: !0,
7064
- ref: U,
7069
+ ref: M,
7065
7070
  hasSubFilters: !1,
7066
7071
  currentColumnName: o,
7067
7072
  hasButtonGroup: !1,
@@ -7104,17 +7109,17 @@ const Ue = {
7104
7109
  const [f, g] = q(() => t ? {
7105
7110
  columns: l ? Ea(t, Sa(l)) : t.columns,
7106
7111
  rows: t.rows ?? []
7107
- } : { columns: [], rows: [] }), [p, v] = q(n || []), [w, E] = q(/* @__PURE__ */ new Set()), [S, C] = q(!1), [y, b] = q(/* @__PURE__ */ new Set()), [j, L] = q(null), M = Ke(() => oa(t?.columns || []), [t?.columns]), [I, P] = q(() => Fr(o, M)), R = ce(null), [T, O] = aa({
7112
+ } : { columns: [], rows: [] }), [p, v] = q(n || []), [w, E] = q(/* @__PURE__ */ new Set()), [S, C] = q(!1), [y, b] = q(/* @__PURE__ */ new Set()), [j, L] = q(null), V = Ke(() => oa(t?.columns || []), [t?.columns]), [I, P] = q(() => Fr(o, V)), R = ce(null), [T, O] = aa({
7108
7113
  columns: f?.columns ?? [],
7109
7114
  rows: f?.rows ?? [],
7110
7115
  containerRef: R,
7111
7116
  sizingMode: s
7112
- }), { handleDragStart: _, handleDragOver: U, handleDrop: H } = ya(
7117
+ }), { handleDragStart: _, handleDragOver: M, handleDrop: H } = ya(
7113
7118
  f.columns,
7114
- (V) => g((K) => ({ ...K, columns: V }))
7119
+ (U) => g((K) => ({ ...K, columns: U }))
7115
7120
  ), X = Ke(() => {
7116
- const V = f.rows.map((K, le) => le);
7117
- return V.every((K) => y.has(K)) && V.length > 0;
7121
+ const U = f.rows.map((K, le) => le);
7122
+ return U.every((K) => y.has(K)) && U.length > 0;
7118
7123
  }, [y, f.rows]), { sortBy: J, sortOrder: N, handleSort: m } = va({
7119
7124
  ...f,
7120
7125
  rows: f.rows
@@ -7126,15 +7131,15 @@ const Ue = {
7126
7131
  });
7127
7132
  re(() => {
7128
7133
  if (ue(i) && d) {
7129
- const V = Array.from(y).map((K) => f.rows[K]).filter(Boolean);
7130
- d(V);
7134
+ const U = Array.from(y).map((K) => f.rows[K]).filter(Boolean);
7135
+ d(U);
7131
7136
  }
7132
7137
  }, [y, i, f.rows, d]), re(() => {
7133
- let V = t?.rows ?? [];
7134
- I?.filters?.length > 0 && (V = ua(V, I));
7135
- let K = V;
7138
+ let U = t?.rows ?? [];
7139
+ I?.filters?.length > 0 && (U = ua(U, I));
7140
+ let K = U;
7136
7141
  J && (K = sn(
7137
- { ...t ?? { columns: [], rows: [] }, rows: V },
7142
+ { ...t ?? { columns: [], rows: [] }, rows: U },
7138
7143
  J,
7139
7144
  N
7140
7145
  ).rows);
@@ -7161,27 +7166,27 @@ const Ue = {
7161
7166
  J,
7162
7167
  N
7163
7168
  ]);
7164
- const $ = oe((V) => {
7165
- P(V);
7169
+ const $ = oe((U) => {
7170
+ P(U);
7166
7171
  }, []), A = oe(() => {
7167
- P(Fr(o, M));
7168
- }, [o, M]), Y = oe(() => {
7169
- C((V) => !V);
7170
- }, []), B = oe((V) => {
7171
- L((K) => K === V ? null : V);
7172
- }, []), W = (V) => {
7173
- v(na(V, p));
7174
- }, Z = (V) => {
7175
- V.preventDefault();
7176
- const K = V.dataTransfer.getData("text/plain");
7172
+ P(Fr(o, V));
7173
+ }, [o, V]), Y = oe(() => {
7174
+ C((U) => !U);
7175
+ }, []), B = oe((U) => {
7176
+ L((K) => K === U ? null : U);
7177
+ }, []), W = (U) => {
7178
+ v(na(U, p));
7179
+ }, Z = (U) => {
7180
+ U.preventDefault();
7181
+ const K = U.dataTransfer.getData("text/plain");
7177
7182
  if (!K || p.some((ae) => ae.column === K))
7178
7183
  return;
7179
7184
  const he = [...p, { column: K, visible: !0 }];
7180
7185
  v(he);
7181
- }, z = (V) => {
7182
- V.preventDefault();
7183
- }, ie = (V, K) => {
7184
- const le = V.clientX, he = T[K], ae = (Ct) => {
7186
+ }, z = (U) => {
7187
+ U.preventDefault();
7188
+ }, ie = (U, K) => {
7189
+ const le = U.clientX, he = T[K], ae = (Ct) => {
7185
7190
  const on = Ct.clientX - le, ln = Math.max(50, he + on);
7186
7191
  O((cn) => ({
7187
7192
  ...cn,
@@ -7191,14 +7196,14 @@ const Ue = {
7191
7196
  window.removeEventListener("mousemove", ae), window.removeEventListener("mouseup", xe);
7192
7197
  };
7193
7198
  window.addEventListener("mousemove", ae), window.addEventListener("mouseup", xe);
7194
- }, F = (V) => {
7199
+ }, F = (U) => {
7195
7200
  b((K) => {
7196
7201
  const le = new Set(K);
7197
- return V.every((ae) => le.has(ae)) ? V.forEach((ae) => le.delete(ae)) : V.forEach((ae) => le.add(ae)), le;
7202
+ return U.every((ae) => le.has(ae)) ? U.forEach((ae) => le.delete(ae)) : U.forEach((ae) => le.add(ae)), le;
7198
7203
  });
7199
7204
  }, G = () => {
7200
- const V = f.rows.map((K, le) => le);
7201
- F(V);
7205
+ const U = f.rows.map((K, le) => le);
7206
+ F(U);
7202
7207
  }, ee = {
7203
7208
  smpTable: `${rn["smp-table"]}`
7204
7209
  };
@@ -7220,7 +7225,7 @@ const Ue = {
7220
7225
  showFilter: S,
7221
7226
  filterColumn: j,
7222
7227
  activeFilters: I,
7223
- fieldOptions: M,
7228
+ fieldOptions: V,
7224
7229
  Filter: o,
7225
7230
  enableSelection: ue(i),
7226
7231
  allVisibleRowsSelected: X,
@@ -7237,30 +7242,30 @@ const Ue = {
7237
7242
  onToggleAllRows: G,
7238
7243
  onSort: m,
7239
7244
  onDragStart: _,
7240
- onDragOver: U,
7245
+ onDragOver: M,
7241
7246
  onDrop: H
7242
7247
  }
7243
7248
  ),
7244
- /* @__PURE__ */ h.jsx("tbody", { ...D, children: x.map(({ item: V, index: K, offsetTop: le }) => {
7245
- const he = V.id || V.value || `${V.isGroup ? "group" : "row"}-${K}`;
7246
- return V.isGroup ? /* @__PURE__ */ h.jsx(
7249
+ /* @__PURE__ */ h.jsx("tbody", { ...D, children: x.map(({ item: U, index: K, offsetTop: le }) => {
7250
+ const he = U.id || U.value || `${U.isGroup ? "group" : "row"}-${K}`;
7251
+ return U.isGroup ? /* @__PURE__ */ h.jsx(
7247
7252
  wa,
7248
7253
  {
7249
- label: V.value || "",
7254
+ label: U.value || "",
7250
7255
  rowHeight: e,
7251
7256
  offsetTop: le,
7252
- level: V.level,
7257
+ level: U.level,
7253
7258
  onClick: () => {
7254
- const ae = V.id;
7259
+ const ae = U.id;
7255
7260
  ae && E((xe) => ra(xe, ae));
7256
7261
  },
7257
- isExpanded: V.isExpanded
7262
+ isExpanded: U.isExpanded
7258
7263
  },
7259
7264
  `group-${he}`
7260
7265
  ) : /* @__PURE__ */ h.jsx(
7261
7266
  Kt,
7262
7267
  {
7263
- row: V,
7268
+ row: U,
7264
7269
  columns: f.columns,
7265
7270
  columnWidths: T,
7266
7271
  rowHeight: e,
@@ -7469,7 +7474,7 @@ const Ue = {
7469
7474
  },
7470
7475
  fun: T || ""
7471
7476
  });
7472
- }, M = async (R) => {
7477
+ }, V = async (R) => {
7473
7478
  if (w[R].obj.k != t.rows[0].cells[R].obj.k && (w[R].inputSettings?.checkObject && u && ((await u({
7474
7479
  obj: w[R].obj,
7475
7480
  fun: w[R].fun,
@@ -7546,7 +7551,7 @@ const Ue = {
7546
7551
  ...R,
7547
7552
  onOptionsRequest: R.fun ? async (T, O) => await l(T, O, t, R.id) : void 0,
7548
7553
  onChange: (T) => b(R.id, T),
7549
- onBlur: () => M(R.id),
7554
+ onBlur: () => V(R.id),
7550
7555
  onContextMenu: f,
7551
7556
  onClick: () => {
7552
7557
  (R.shape == "BTN" || R.shape == "CFM") && L(R.id, R.fun);