@sme.up/ketchup2 2.0.0-SNAPSHOT-20250904122118 → 2.0.0-SNAPSHOT-20250904123131

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.
@@ -1,6 +1,6 @@
1
1
  import * as st from "react";
2
- import mt, { useState as z, useEffect as re, useRef as ue, useCallback as oe, useLayoutEffect as wn, useId as ke, useMemo as Qe, createElement as Sn } from "react";
3
- import { createPortal as En } from "react-dom";
2
+ import mt, { useState as z, useEffect as re, useRef as ue, useCallback as oe, useLayoutEffect as En, useId as ke, useMemo as Qe, createElement as Tn } from "react";
3
+ import { createPortal as Cn } from "react-dom";
4
4
  var ot = { exports: {} }, qe = {};
5
5
  /**
6
6
  * @license React
@@ -11,10 +11,10 @@ var ot = { exports: {} }, qe = {};
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var ar;
15
- function Cn() {
16
- if (ar) return qe;
17
- ar = 1;
14
+ var ir;
15
+ function _n() {
16
+ if (ir) return qe;
17
+ ir = 1;
18
18
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
19
19
  function r(n, s, o) {
20
20
  var a = null;
@@ -43,9 +43,9 @@ var ze = {};
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
- var ir;
47
- function Tn() {
48
- return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
46
+ var lr;
47
+ function jn() {
48
+ return lr || (lr = 1, process.env.NODE_ENV !== "production" && function() {
49
49
  function t(m) {
50
50
  if (m == null) return null;
51
51
  if (typeof m == "function")
@@ -75,7 +75,7 @@ function Tn() {
75
75
  return (m.displayName || "Context") + ".Provider";
76
76
  case _:
77
77
  return (m._context.displayName || "Context") + ".Consumer";
78
- case T:
78
+ case C:
79
79
  var S = m.render;
80
80
  return m = m.displayName, m || (m = S.displayName || S.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
81
81
  case O:
@@ -121,7 +121,7 @@ function Tn() {
121
121
  }
122
122
  }
123
123
  function s() {
124
- var m = C.A;
124
+ var m = T.A;
125
125
  return m === null ? null : m.getOwner();
126
126
  }
127
127
  function o() {
@@ -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 = mt, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), v = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, A = Array.isArray, I = console.createTask ? console.createTask : function() {
240
+ var f = mt, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), v = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), T = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, A = Array.isArray, I = console.createTask ? console.createTask : function() {
241
241
  return null;
242
242
  };
243
243
  f = {
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
250
250
  o
251
251
  )(), N = I(n(o)), j = {};
252
252
  ze.Fragment = b, ze.jsx = function(m, S, L, D, $) {
253
- var P = 1e4 > C.recentlyCreatedOwnerStacks++;
253
+ var P = 1e4 > T.recentlyCreatedOwnerStacks++;
254
254
  return d(
255
255
  m,
256
256
  S,
@@ -262,7 +262,7 @@ React keys must be passed directly to JSX without using spread:
262
262
  P ? I(n(m)) : N
263
263
  );
264
264
  }, ze.jsxs = function(m, S, L, D, $) {
265
- var P = 1e4 > C.recentlyCreatedOwnerStacks++;
265
+ var P = 1e4 > T.recentlyCreatedOwnerStacks++;
266
266
  return d(
267
267
  m,
268
268
  S,
@@ -276,12 +276,12 @@ React keys must be passed directly to JSX without using spread:
276
276
  };
277
277
  }()), ze;
278
278
  }
279
- var lr;
280
- function _n() {
281
- return lr || (lr = 1, process.env.NODE_ENV === "production" ? ot.exports = Cn() : ot.exports = Tn()), ot.exports;
279
+ var cr;
280
+ function On() {
281
+ return cr || (cr = 1, process.env.NODE_ENV === "production" ? ot.exports = _n() : ot.exports = jn()), ot.exports;
282
282
  }
283
- var p = _n();
284
- function jn(t, e) {
283
+ var p = On();
284
+ function Rn(t, e) {
285
285
  if (t == null) return {};
286
286
  var r = {};
287
287
  for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
@@ -304,7 +304,7 @@ function Ft(t, e) {
304
304
  return r.__proto__ = n, r;
305
305
  }, Ft(t, e);
306
306
  }
307
- function On(t, e) {
307
+ function Dn(t, e) {
308
308
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ft(t, e);
309
309
  }
310
310
  function _t(t, e, r) {
@@ -318,10 +318,10 @@ var at = {};
318
318
  * Copyright(c) 2015 Douglas Christopher Wilson
319
319
  * MIT Licensed
320
320
  */
321
- var cr;
322
- function Rn() {
323
- if (cr) return at;
324
- cr = 1;
321
+ var ur;
322
+ function kn() {
323
+ if (ur) return at;
324
+ ur = 1;
325
325
  var t = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, r = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, o = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
326
326
  at.format = a, at.parse = i;
327
327
  function a(u) {
@@ -380,11 +380,11 @@ function Rn() {
380
380
  }
381
381
  return at;
382
382
  }
383
- var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
383
+ var Nn = kn(), Be = /* @__PURE__ */ new Map(), Qr = function(e) {
384
384
  return e.cloneNode(!0);
385
- }, ur = function() {
385
+ }, dr = function() {
386
386
  return window.location.protocol === "file:";
387
- }, Qr = function(e, r, n) {
387
+ }, Zr = function(e, r, n) {
388
388
  var s = new XMLHttpRequest();
389
389
  s.onreadystatechange = function() {
390
390
  try {
@@ -392,14 +392,14 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
392
392
  var o = s.getResponseHeader("Content-Type");
393
393
  if (!o)
394
394
  throw new Error("Content type not found");
395
- var a = Dn.parse(o).type;
395
+ var a = Nn.parse(o).type;
396
396
  if (!(a === "image/svg+xml" || a === "text/plain"))
397
397
  throw new Error("Invalid content type: ".concat(a));
398
398
  }
399
399
  if (s.readyState === 4) {
400
400
  if (s.status === 404 || s.responseXML === null)
401
- throw new Error(ur() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
402
- if (s.status === 200 || ur() && s.status === 0)
401
+ throw new Error(dr() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
402
+ if (s.status === 200 || dr() && s.status === 0)
403
403
  n(null, s);
404
404
  else
405
405
  throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
@@ -411,42 +411,42 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
411
411
  throw i;
412
412
  }
413
413
  }, s.open("GET", e), s.withCredentials = r, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
414
- }, De = {}, dr = function(e, r) {
414
+ }, De = {}, fr = function(e, r) {
415
415
  De[e] = De[e] || [], De[e].push(r);
416
- }, kn = function(e) {
416
+ }, $n = function(e) {
417
417
  for (var r = function(a, i) {
418
418
  setTimeout(function() {
419
419
  if (Array.isArray(De[e])) {
420
420
  var l = Be.get(e), c = De[e][a];
421
- l instanceof SVGSVGElement && c(null, Xr(l)), l instanceof Error && c(l), a === De[e].length - 1 && delete De[e];
421
+ l instanceof SVGSVGElement && c(null, Qr(l)), l instanceof Error && c(l), a === De[e].length - 1 && delete De[e];
422
422
  }
423
423
  }, 0);
424
424
  }, n = 0, s = De[e].length; n < s; n++)
425
425
  r(n);
426
- }, Nn = function(e, r, n) {
426
+ }, Ln = function(e, r, n) {
427
427
  if (Be.has(e)) {
428
428
  var s = Be.get(e);
429
429
  if (s === void 0) {
430
- dr(e, n);
430
+ fr(e, n);
431
431
  return;
432
432
  }
433
433
  if (s instanceof SVGSVGElement) {
434
- n(null, Xr(s));
434
+ n(null, Qr(s));
435
435
  return;
436
436
  }
437
437
  }
438
- Be.set(e, void 0), dr(e, n), Qr(e, r, function(o, a) {
438
+ Be.set(e, void 0), fr(e, n), Zr(e, r, function(o, a) {
439
439
  var i;
440
- o ? Be.set(e, o) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Be.set(e, a.responseXML.documentElement), kn(e);
440
+ o ? Be.set(e, o) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Be.set(e, a.responseXML.documentElement), $n(e);
441
441
  });
442
- }, $n = function(e, r, n) {
443
- Qr(e, r, function(s, o) {
442
+ }, An = function(e, r, n) {
443
+ Zr(e, r, function(s, o) {
444
444
  var a;
445
445
  s ? n(s) : ((a = o.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && n(null, o.responseXML.documentElement);
446
446
  });
447
- }, Ln = 0, An = function() {
448
- return ++Ln;
449
- }, Se = [], fr = {}, In = "http://www.w3.org/2000/svg", jt = "http://www.w3.org/1999/xlink", pr = function(e, r, n, s, o, a, i) {
447
+ }, In = 0, Pn = function() {
448
+ return ++In;
449
+ }, Se = [], pr = {}, Fn = "http://www.w3.org/2000/svg", jt = "http://www.w3.org/1999/xlink", hr = function(e, r, n, s, o, a, i) {
450
450
  var l = e.getAttribute("data-src") || e.getAttribute("src");
451
451
  if (!l) {
452
452
  i(new Error("Invalid data-src or src attribute"));
@@ -457,7 +457,7 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
457
457
  return;
458
458
  }
459
459
  Se.push(e), e.setAttribute("src", "");
460
- var c = s ? Nn : $n;
460
+ var c = s ? Ln : An;
461
461
  c(l, o, function(d, u) {
462
462
  if (!u) {
463
463
  Se.splice(Se.indexOf(e), 1), e = null, i(d);
@@ -492,11 +492,11 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
492
492
  path: [],
493
493
  pattern: ["fill", "stroke"],
494
494
  radialGradient: ["fill", "stroke"]
495
- }, T, y, R, O, F;
495
+ }, C, y, R, O, F;
496
496
  Object.keys(v).forEach(function(N) {
497
- T = N, R = v[N], y = u.querySelectorAll(T + "[id]");
497
+ C = N, R = v[N], y = u.querySelectorAll(C + "[id]");
498
498
  for (var j = function(D, $) {
499
- O = y[D].id, F = O + "-" + An();
499
+ O = y[D].id, F = O + "-" + Pn();
500
500
  var P;
501
501
  Array.prototype.forEach.call(R, function(H) {
502
502
  P = u.querySelectorAll("[" + H + '*="' + O + '"]');
@@ -517,33 +517,33 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
517
517
  });
518
518
  }
519
519
  u.removeAttribute("xmlns:a");
520
- for (var W = u.querySelectorAll("script"), k = [], C, E, A = 0, I = W.length; A < I; A++)
521
- E = W[A].getAttribute("type"), (!E || E === "application/ecmascript" || E === "application/javascript" || E === "text/javascript") && (C = W[A].innerText || W[A].textContent, C && k.push(C), u.removeChild(W[A]));
522
- if (k.length > 0 && (r === "always" || r === "once" && !fr[l])) {
520
+ for (var W = u.querySelectorAll("script"), k = [], T, E, A = 0, I = W.length; A < I; A++)
521
+ E = W[A].getAttribute("type"), (!E || E === "application/ecmascript" || E === "application/javascript" || E === "text/javascript") && (T = W[A].innerText || W[A].textContent, T && k.push(T), u.removeChild(W[A]));
522
+ if (k.length > 0 && (r === "always" || r === "once" && !pr[l])) {
523
523
  for (var V = 0, U = k.length; V < U; V++)
524
524
  new Function(k[V])(window);
525
- fr[l] = !0;
525
+ pr[l] = !0;
526
526
  }
527
527
  var X = u.querySelectorAll("style");
528
528
  if (Array.prototype.forEach.call(X, function(N) {
529
529
  N.textContent += "";
530
- }), u.setAttribute("xmlns", In), u.setAttribute("xmlns:xlink", jt), a(u), !e.parentNode) {
530
+ }), u.setAttribute("xmlns", Fn), u.setAttribute("xmlns:xlink", jt), a(u), !e.parentNode) {
531
531
  Se.splice(Se.indexOf(e), 1), e = null, i(new Error("Parent node is null"));
532
532
  return;
533
533
  }
534
534
  e.parentNode.replaceChild(u, e), Se.splice(Se.indexOf(e), 1), e = null, i(null, u);
535
535
  });
536
- }, Pn = function(e, r) {
536
+ }, Mn = function(e, r) {
537
537
  var n = r === void 0 ? {} : r, s = n.afterAll, o = s === void 0 ? function() {
538
538
  } : s, a = n.afterEach, i = a === void 0 ? function() {
539
539
  } : a, l = n.beforeEach, c = l === void 0 ? function() {
540
540
  } : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, h = n.httpRequestWithCredentials, b = h === void 0 ? !1 : h, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
541
541
  if (e && "length" in e)
542
- for (var _ = 0, v = 0, T = e.length; v < T; v++)
543
- pr(e[v], g, w, u, b, c, function(y, R) {
542
+ for (var _ = 0, v = 0, C = e.length; v < C; v++)
543
+ hr(e[v], g, w, u, b, c, function(y, R) {
544
544
  i(y, R), e && "length" in e && e.length === ++_ && o(_);
545
545
  });
546
- else e ? pr(e, g, w, u, b, c, function(y, R) {
546
+ else e ? hr(e, g, w, u, b, c, function(y, R) {
547
547
  i(y, R), o(1), e = null;
548
548
  }) : o(0);
549
549
  }, it = { exports: {} }, lt = { exports: {} }, ne = {};
@@ -555,10 +555,10 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
555
555
  * This source code is licensed under the MIT license found in the
556
556
  * LICENSE file in the root directory of this source tree.
557
557
  */
558
- var hr;
559
- function Fn() {
560
- if (hr) return ne;
561
- hr = 1;
558
+ var mr;
559
+ function Vn() {
560
+ if (mr) return ne;
561
+ mr = 1;
562
562
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
563
563
  function v(y) {
564
564
  if (typeof y == "object" && y !== null) {
@@ -590,12 +590,12 @@ function Fn() {
590
590
  }
591
591
  }
592
592
  }
593
- function T(y) {
593
+ function C(y) {
594
594
  return v(y) === c;
595
595
  }
596
596
  return ne.AsyncMode = l, ne.ConcurrentMode = c, ne.ContextConsumer = i, ne.ContextProvider = a, ne.Element = e, ne.ForwardRef = d, ne.Fragment = n, ne.Lazy = h, ne.Memo = g, ne.Portal = r, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = u, ne.isAsyncMode = function(y) {
597
- return T(y) || v(y) === l;
598
- }, ne.isConcurrentMode = T, ne.isContextConsumer = function(y) {
597
+ return C(y) || v(y) === l;
598
+ }, ne.isConcurrentMode = C, ne.isContextConsumer = function(y) {
599
599
  return v(y) === i;
600
600
  }, ne.isContextProvider = function(y) {
601
601
  return v(y) === a;
@@ -630,15 +630,15 @@ var se = {};
630
630
  * This source code is licensed under the MIT license found in the
631
631
  * LICENSE file in the root directory of this source tree.
632
632
  */
633
- var mr;
634
- function Mn() {
635
- return mr || (mr = 1, process.env.NODE_ENV !== "production" && function() {
633
+ var gr;
634
+ function Un() {
635
+ return gr || (gr = 1, process.env.NODE_ENV !== "production" && function() {
636
636
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
637
637
  function v(M) {
638
638
  return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
639
639
  M === n || M === c || M === o || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === h || M.$$typeof === g || M.$$typeof === a || M.$$typeof === i || M.$$typeof === d || M.$$typeof === x || M.$$typeof === w || M.$$typeof === _ || M.$$typeof === b);
640
640
  }
641
- function T(M) {
641
+ function C(M) {
642
642
  if (typeof M == "object" && M !== null) {
643
643
  var H = M.$$typeof;
644
644
  switch (H) {
@@ -670,62 +670,62 @@ function Mn() {
670
670
  }
671
671
  }
672
672
  }
673
- var y = l, R = c, O = i, F = a, W = e, k = d, C = n, E = h, A = g, I = r, V = o, U = s, X = u, N = !1;
673
+ var y = l, R = c, O = i, F = a, W = e, k = d, T = n, E = h, A = g, I = r, V = o, U = s, X = u, N = !1;
674
674
  function j(M) {
675
- return N || (N = !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(M) || T(M) === l;
675
+ return N || (N = !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(M) || C(M) === l;
676
676
  }
677
677
  function m(M) {
678
- return T(M) === c;
678
+ return C(M) === c;
679
679
  }
680
680
  function S(M) {
681
- return T(M) === i;
681
+ return C(M) === i;
682
682
  }
683
683
  function L(M) {
684
- return T(M) === a;
684
+ return C(M) === a;
685
685
  }
686
686
  function D(M) {
687
687
  return typeof M == "object" && M !== null && M.$$typeof === e;
688
688
  }
689
689
  function $(M) {
690
- return T(M) === d;
690
+ return C(M) === d;
691
691
  }
692
692
  function P(M) {
693
- return T(M) === n;
693
+ return C(M) === n;
694
694
  }
695
695
  function G(M) {
696
- return T(M) === h;
696
+ return C(M) === h;
697
697
  }
698
698
  function q(M) {
699
- return T(M) === g;
699
+ return C(M) === g;
700
700
  }
701
701
  function Y(M) {
702
- return T(M) === r;
702
+ return C(M) === r;
703
703
  }
704
704
  function Q(M) {
705
- return T(M) === o;
705
+ return C(M) === o;
706
706
  }
707
707
  function K(M) {
708
- return T(M) === s;
708
+ return C(M) === s;
709
709
  }
710
710
  function ae(M) {
711
- return T(M) === u;
711
+ return C(M) === u;
712
712
  }
713
- se.AsyncMode = y, se.ConcurrentMode = R, se.ContextConsumer = O, se.ContextProvider = F, se.Element = W, se.ForwardRef = k, se.Fragment = C, se.Lazy = E, se.Memo = A, se.Portal = I, se.Profiler = V, se.StrictMode = U, se.Suspense = X, se.isAsyncMode = j, se.isConcurrentMode = m, se.isContextConsumer = S, se.isContextProvider = L, se.isElement = D, se.isForwardRef = $, se.isFragment = P, se.isLazy = G, se.isMemo = q, se.isPortal = Y, se.isProfiler = Q, se.isStrictMode = K, se.isSuspense = ae, se.isValidElementType = v, se.typeOf = T;
713
+ se.AsyncMode = y, se.ConcurrentMode = R, se.ContextConsumer = O, se.ContextProvider = F, se.Element = W, se.ForwardRef = k, se.Fragment = T, se.Lazy = E, se.Memo = A, se.Portal = I, se.Profiler = V, se.StrictMode = U, se.Suspense = X, se.isAsyncMode = j, se.isConcurrentMode = m, se.isContextConsumer = S, se.isContextProvider = L, se.isElement = D, se.isForwardRef = $, se.isFragment = P, se.isLazy = G, se.isMemo = q, se.isPortal = Y, se.isProfiler = Q, se.isStrictMode = K, se.isSuspense = ae, se.isValidElementType = v, se.typeOf = C;
714
714
  }()), se;
715
715
  }
716
- var gr;
717
- function Zr() {
718
- return gr || (gr = 1, process.env.NODE_ENV === "production" ? lt.exports = Fn() : lt.exports = Mn()), lt.exports;
716
+ var br;
717
+ function en() {
718
+ return br || (br = 1, process.env.NODE_ENV === "production" ? lt.exports = Vn() : lt.exports = Un()), lt.exports;
719
719
  }
720
720
  /*
721
721
  object-assign
722
722
  (c) Sindre Sorhus
723
723
  @license MIT
724
724
  */
725
- var Ot, br;
726
- function Vn() {
727
- if (br) return Ot;
728
- br = 1;
725
+ var Ot, yr;
726
+ function Bn() {
727
+ if (yr) return Ot;
728
+ yr = 1;
729
729
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
730
730
  function n(o) {
731
731
  if (o == null)
@@ -768,25 +768,25 @@ function Vn() {
768
768
  return l;
769
769
  }, Ot;
770
770
  }
771
- var Rt, yr;
772
- function Jt() {
773
- if (yr) return Rt;
774
- yr = 1;
771
+ var Rt, vr;
772
+ function Xt() {
773
+ if (vr) return Rt;
774
+ vr = 1;
775
775
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
776
776
  return Rt = t, Rt;
777
777
  }
778
- var Dt, vr;
779
- function en() {
780
- return vr || (vr = 1, Dt = Function.call.bind(Object.prototype.hasOwnProperty)), Dt;
778
+ var Dt, xr;
779
+ function tn() {
780
+ return xr || (xr = 1, Dt = Function.call.bind(Object.prototype.hasOwnProperty)), Dt;
781
781
  }
782
- var kt, xr;
783
- function Un() {
784
- if (xr) return kt;
785
- xr = 1;
782
+ var kt, wr;
783
+ function Wn() {
784
+ if (wr) return kt;
785
+ wr = 1;
786
786
  var t = function() {
787
787
  };
788
788
  if (process.env.NODE_ENV !== "production") {
789
- var e = /* @__PURE__ */ Jt(), r = {}, n = /* @__PURE__ */ en();
789
+ var e = /* @__PURE__ */ Xt(), r = {}, n = /* @__PURE__ */ tn();
790
790
  t = function(o) {
791
791
  var a = "Warning: " + o;
792
792
  typeof console < "u" && console.error(a);
@@ -828,11 +828,11 @@ function Un() {
828
828
  process.env.NODE_ENV !== "production" && (r = {});
829
829
  }, kt = s, kt;
830
830
  }
831
- var Nt, wr;
832
- function Bn() {
833
- if (wr) return Nt;
834
- wr = 1;
835
- var t = Zr(), e = Vn(), r = /* @__PURE__ */ Jt(), n = /* @__PURE__ */ en(), s = /* @__PURE__ */ Un(), o = function() {
831
+ var Nt, Sr;
832
+ function Yn() {
833
+ if (Sr) return Nt;
834
+ Sr = 1;
835
+ var t = en(), e = Bn(), r = /* @__PURE__ */ Xt(), n = /* @__PURE__ */ tn(), s = /* @__PURE__ */ Wn(), o = function() {
836
836
  };
837
837
  process.env.NODE_ENV !== "production" && (o = function(i) {
838
838
  var l = "Warning: " + i;
@@ -863,7 +863,7 @@ function Bn() {
863
863
  symbol: w("symbol"),
864
864
  any: _(),
865
865
  arrayOf: v,
866
- element: T(),
866
+ element: C(),
867
867
  elementType: y(),
868
868
  instanceOf: R,
869
869
  node: k(),
@@ -938,7 +938,7 @@ function Bn() {
938
938
  }
939
939
  return x(S);
940
940
  }
941
- function T() {
941
+ function C() {
942
942
  function m(S, L, D, $, P) {
943
943
  var G = S[L];
944
944
  if (!i(G)) {
@@ -1032,7 +1032,7 @@ function Bn() {
1032
1032
  }
1033
1033
  return x(m);
1034
1034
  }
1035
- function C(m, S, L, D, $) {
1035
+ function T(m, S, L, D, $) {
1036
1036
  return new b(
1037
1037
  (m || "React class") + ": " + S + " type `" + L + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
1038
1038
  );
@@ -1045,7 +1045,7 @@ function Bn() {
1045
1045
  for (var Q in m) {
1046
1046
  var K = m[Q];
1047
1047
  if (typeof K != "function")
1048
- return C($, P, G, Q, X(K));
1048
+ return T($, P, G, Q, X(K));
1049
1049
  var ae = K(q, Q, $, P, G + "." + Q, r);
1050
1050
  if (ae)
1051
1051
  return ae;
@@ -1063,7 +1063,7 @@ function Bn() {
1063
1063
  for (var K in Q) {
1064
1064
  var ae = m[K];
1065
1065
  if (n(m, K) && typeof ae != "function")
1066
- return C($, P, G, K, X(ae));
1066
+ return T($, P, G, K, X(ae));
1067
1067
  if (!ae)
1068
1068
  return new b(
1069
1069
  "Invalid " + P + " `" + G + "` key `" + K + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(L[D], null, " ") + `
@@ -1149,11 +1149,11 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1149
1149
  return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
1150
1150
  }, Nt;
1151
1151
  }
1152
- var $t, Sr;
1153
- function Wn() {
1154
- if (Sr) return $t;
1155
- Sr = 1;
1156
- var t = /* @__PURE__ */ Jt();
1152
+ var $t, Er;
1153
+ function Gn() {
1154
+ if (Er) return $t;
1155
+ Er = 1;
1156
+ var t = /* @__PURE__ */ Xt();
1157
1157
  function e() {
1158
1158
  }
1159
1159
  function r() {
@@ -1197,20 +1197,20 @@ function Wn() {
1197
1197
  return o.PropTypes = o, o;
1198
1198
  }, $t;
1199
1199
  }
1200
- var Er;
1201
- function Yn() {
1202
- if (Er) return it.exports;
1203
- if (Er = 1, process.env.NODE_ENV !== "production") {
1204
- var t = Zr(), e = !0;
1205
- it.exports = /* @__PURE__ */ Bn()(t.isElement, e);
1200
+ var Tr;
1201
+ function qn() {
1202
+ if (Tr) return it.exports;
1203
+ if (Tr = 1, process.env.NODE_ENV !== "production") {
1204
+ var t = en(), e = !0;
1205
+ it.exports = /* @__PURE__ */ Yn()(t.isElement, e);
1206
1206
  } else
1207
- it.exports = /* @__PURE__ */ Wn()();
1207
+ it.exports = /* @__PURE__ */ Gn()();
1208
1208
  return it.exports;
1209
1209
  }
1210
- var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1210
+ var pe = /* @__PURE__ */ qn(), zn = function(e) {
1211
1211
  var r = e?.ownerDocument || document;
1212
1212
  return r.defaultView || window;
1213
- }, qn = function(e, r) {
1213
+ }, Hn = function(e, r) {
1214
1214
  for (var n in e)
1215
1215
  if (!(n in r))
1216
1216
  return !0;
@@ -1218,7 +1218,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1218
1218
  if (e[s] !== r[s])
1219
1219
  return !0;
1220
1220
  return !1;
1221
- }, zn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], ct = "http://www.w3.org/2000/svg", Cr = "http://www.w3.org/1999/xlink", Xt = /* @__PURE__ */ function(t) {
1221
+ }, Kn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], ct = "http://www.w3.org/2000/svg", Cr = "http://www.w3.org/1999/xlink", Qt = /* @__PURE__ */ function(t) {
1222
1222
  function e() {
1223
1223
  for (var n, s = arguments.length, o = new Array(s), a = 0; a < s; a++)
1224
1224
  o[a] = arguments[a];
@@ -1229,11 +1229,11 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1229
1229
  n.reactWrapper = i;
1230
1230
  }, n;
1231
1231
  }
1232
- On(e, t);
1232
+ Dn(e, t);
1233
1233
  var r = e.prototype;
1234
1234
  return r.renderSVG = function() {
1235
1235
  var s = this;
1236
- if (this.reactWrapper instanceof Gn(this.reactWrapper).Node) {
1236
+ if (this.reactWrapper instanceof zn(this.reactWrapper).Node) {
1237
1237
  var o = this.props, a = o.desc, i = o.evalScripts, l = o.httpRequestWithCredentials, c = o.renumerateIRIElements, d = o.src, u = o.title, f = o.useRequestCache, g = this.props.onError, h = this.props.beforeInjection, b = this.props.afterInjection, x = this.props.wrapper, w, _;
1238
1238
  x === "svg" ? (w = document.createElementNS(ct, x), w.setAttribute("xmlns", ct), w.setAttribute("xmlns:xlink", Cr), _ = document.createElementNS(ct, x)) : (w = document.createElement(x), _ = document.createElement(x)), w.appendChild(_), _.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(w);
1239
1239
  var v = function(O) {
@@ -1249,7 +1249,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1249
1249
  }, function() {
1250
1250
  g(O);
1251
1251
  });
1252
- }, T = function(O, F) {
1252
+ }, C = function(O, F) {
1253
1253
  if (O) {
1254
1254
  v(O);
1255
1255
  return;
@@ -1275,8 +1275,8 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1275
1275
  if (u) {
1276
1276
  var k = O.querySelector(":scope > title");
1277
1277
  k && O.removeChild(k);
1278
- var C = document.createElement("title");
1279
- C.innerHTML = u, O.prepend(C);
1278
+ var T = document.createElement("title");
1279
+ T.innerHTML = u, O.prepend(T);
1280
1280
  }
1281
1281
  try {
1282
1282
  h(O);
@@ -1284,8 +1284,8 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1284
1284
  v(E);
1285
1285
  }
1286
1286
  };
1287
- Pn(_, {
1288
- afterEach: T,
1287
+ Mn(_, {
1288
+ afterEach: C,
1289
1289
  beforeEach: y,
1290
1290
  cacheRequests: f,
1291
1291
  evalScripts: i,
@@ -1300,7 +1300,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1300
1300
  this._isMounted = !0, this.renderSVG();
1301
1301
  }, r.componentDidUpdate = function(s) {
1302
1302
  var o = this;
1303
- qn(gt({}, s), this.props) && this.setState(function() {
1303
+ Hn(gt({}, s), this.props) && this.setState(function() {
1304
1304
  return o.initialState;
1305
1305
  }, function() {
1306
1306
  o.removeSVG(), o.renderSVG();
@@ -1314,7 +1314,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1314
1314
  s.httpRequestWithCredentials;
1315
1315
  var a = s.loading;
1316
1316
  s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
1317
- var i = s.wrapper, l = jn(s, zn), c = i;
1317
+ var i = s.wrapper, l = Rn(s, Kn), c = i;
1318
1318
  return /* @__PURE__ */ st.createElement(c, gt({}, l, {
1319
1319
  ref: this.refCallback
1320
1320
  }, i === "svg" ? {
@@ -1323,7 +1323,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
1323
1323
  } : {}), this.state.isLoading && a && /* @__PURE__ */ st.createElement(a, null), this.state.hasError && o && /* @__PURE__ */ st.createElement(o, null));
1324
1324
  }, e;
1325
1325
  }(st.Component);
1326
- Xt.defaultProps = {
1326
+ Qt.defaultProps = {
1327
1327
  afterInjection: function() {
1328
1328
  },
1329
1329
  beforeInjection: function() {
@@ -1340,7 +1340,7 @@ Xt.defaultProps = {
1340
1340
  useRequestCache: !0,
1341
1341
  wrapper: "div"
1342
1342
  };
1343
- Xt.propTypes = {
1343
+ Qt.propTypes = {
1344
1344
  afterInjection: pe.func,
1345
1345
  beforeInjection: pe.func,
1346
1346
  desc: pe.string,
@@ -1359,9 +1359,9 @@ let Mt = {
1359
1359
  assets: "/"
1360
1360
  // Default for storybook isolation development
1361
1361
  };
1362
- const Jo = (t) => {
1362
+ const Zo = (t) => {
1363
1363
  Mt = { ...Mt, ...t };
1364
- }, Hn = (t) => {
1364
+ }, Jn = (t) => {
1365
1365
  const e = `${Mt.assets}/${t}`.replace(/\/+/g, "/");
1366
1366
  return e.endsWith(".svg") ? e : e + ".svg";
1367
1367
  }, ie = mt.memo(
@@ -1386,10 +1386,10 @@ const Jo = (t) => {
1386
1386
  svg: `smp-icon ${a ? `smp-icon-${a}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
1387
1387
  }, v = (E) => {
1388
1388
  !o && c && l && l(E);
1389
- }, T = (E) => {
1389
+ }, C = (E) => {
1390
1390
  !o && c && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), v(E));
1391
- }, y = h ? n : t, R = x(y), F = w(y) ? y : Hn(`assets/svg/${y}`), W = () => /* @__PURE__ */ p.jsx(
1392
- Xt,
1391
+ }, y = h ? n : t, R = x(y), F = w(y) ? y : Jn(`assets/svg/${y}`), W = () => /* @__PURE__ */ p.jsx(
1392
+ Qt,
1393
1393
  {
1394
1394
  src: F,
1395
1395
  onError: () => b(!0),
@@ -1402,7 +1402,7 @@ const Jo = (t) => {
1402
1402
  "aria-disabled": o,
1403
1403
  className: _.svg,
1404
1404
  onClick: v,
1405
- onKeyDown: T,
1405
+ onKeyDown: C,
1406
1406
  tabIndex: f
1407
1407
  }
1408
1408
  ), k = () => (
@@ -1436,7 +1436,7 @@ function Ne({
1436
1436
  const [e, r] = z(!1);
1437
1437
  return re(() => {
1438
1438
  r(!0);
1439
- }, []), e ? En(t, document.body) : null;
1439
+ }, []), e ? Cn(t, document.body) : null;
1440
1440
  }
1441
1441
  function $e({
1442
1442
  position: t = "bottom",
@@ -1453,7 +1453,7 @@ function $e({
1453
1453
  return;
1454
1454
  }
1455
1455
  const b = window.scrollY, x = window.scrollX, w = window.innerWidth, _ = window.innerHeight;
1456
- let v = c + b, T = d + x, y = t;
1456
+ let v = c + b, C = d + x, y = t;
1457
1457
  const R = {
1458
1458
  top: c - g < 0,
1459
1459
  bottom: c + f + g > _,
@@ -1482,23 +1482,23 @@ function $e({
1482
1482
  v = c + b + f;
1483
1483
  break;
1484
1484
  case "left":
1485
- T = d + x - h;
1485
+ C = d + x - h;
1486
1486
  break;
1487
1487
  case "right":
1488
- T = d + x + u;
1488
+ C = d + x + u;
1489
1489
  break;
1490
1490
  }
1491
1491
  v = Math.max(
1492
1492
  b,
1493
1493
  Math.min(v, b + _ - g)
1494
- ), T = Math.max(
1494
+ ), C = Math.max(
1495
1495
  x,
1496
- Math.min(T, x + w - h)
1496
+ Math.min(C, x + w - h)
1497
1497
  ), requestAnimationFrame(() => {
1498
- l.style.transform = `translate(${T}px, ${v}px)`, l.style.opacity = "1";
1498
+ l.style.transform = `translate(${C}px, ${v}px)`, l.style.opacity = "1";
1499
1499
  });
1500
1500
  }, [t]);
1501
- return wn(() => {
1501
+ return En(() => {
1502
1502
  if (!e) return;
1503
1503
  let i;
1504
1504
  const l = () => {
@@ -1518,7 +1518,7 @@ const Lt = {
1518
1518
  "smp-label": "_smp-label_zl3eb_1",
1519
1519
  "smp-label-disabled": "_smp-label-disabled_zl3eb_6",
1520
1520
  "smp-label-wrapper": "_smp-label-wrapper_zl3eb_10"
1521
- }, Qt = ({
1521
+ }, Zt = ({
1522
1522
  helperText: t,
1523
1523
  disabled: e,
1524
1524
  state: r,
@@ -1528,16 +1528,16 @@ const Lt = {
1528
1528
  container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${r ? `smp-helper-text-${r}` : ""}`
1529
1529
  };
1530
1530
  return /* @__PURE__ */ p.jsx("label", { className: s.container, id: n, children: t });
1531
- }, Kn = {
1531
+ }, Xn = {
1532
1532
  "smp-helper-tooltip": "_smp-helper-tooltip_2mlq3_1"
1533
- }, Jn = ({
1533
+ }, Qn = ({
1534
1534
  helperTooltip: t,
1535
1535
  ref: e
1536
1536
  }) => {
1537
1537
  const r = {
1538
- container: `${Kn["smp-helper-tooltip"]}`
1538
+ container: `${Xn["smp-helper-tooltip"]}`
1539
1539
  };
1540
- return /* @__PURE__ */ p.jsx("div", { className: r.container, ref: e, children: /* @__PURE__ */ p.jsx(Qt, { helperText: t }) });
1540
+ return /* @__PURE__ */ p.jsx("div", { className: r.container, ref: e, children: /* @__PURE__ */ p.jsx(Zt, { helperText: t }) });
1541
1541
  }, Le = ({
1542
1542
  label: t,
1543
1543
  disabled: e,
@@ -1573,7 +1573,7 @@ const Lt = {
1573
1573
  )
1574
1574
  }
1575
1575
  ),
1576
- /* @__PURE__ */ p.jsx(Ne, { children: s && n && /* @__PURE__ */ p.jsx(Jn, { helperTooltip: n, ref: i }) })
1576
+ /* @__PURE__ */ p.jsx(Ne, { children: s && n && /* @__PURE__ */ p.jsx(Qn, { helperTooltip: n, ref: i }) })
1577
1577
  ] });
1578
1578
  }, ye = {
1579
1579
  "smp-layout": "_smp-layout_wqmhx_1",
@@ -1589,20 +1589,20 @@ const Lt = {
1589
1589
  "smp-layout-section-with-title": "_smp-layout-section-with-title_wqmhx_63",
1590
1590
  "smp-layout-section-title": "_smp-layout-section-title_wqmhx_69",
1591
1591
  "smp-layout-inline": "_smp-layout-inline_wqmhx_75"
1592
- }, Xn = (t, e) => {
1592
+ }, Zn = (t, e) => {
1593
1593
  const r = [];
1594
1594
  for (let n = 0; n < t.length; n += e)
1595
1595
  r.push(t.slice(n, n + e));
1596
1596
  return r;
1597
- }, tn = (t, e) => t.map((r) => {
1597
+ }, rn = (t, e) => t.map((r) => {
1598
1598
  if (r.sections?.length)
1599
1599
  return {
1600
1600
  ...r,
1601
- sections: tn(r.sections, e),
1601
+ sections: rn(r.sections, e),
1602
1602
  content: r.content
1603
1603
  };
1604
1604
  let n = r.sections, s = r.content;
1605
- return r.content?.length && r.columns && +r.columns > 1 && (n = Xn(
1605
+ return r.content?.length && r.columns && +r.columns > 1 && (n = Zn(
1606
1606
  r.content.filter((a) => e.includes(a.id)),
1607
1607
  +r.columns
1608
1608
  ).map(
@@ -1618,20 +1618,20 @@ const Lt = {
1618
1618
  sections: n,
1619
1619
  content: s
1620
1620
  };
1621
- }), Tr = (t, e) => {
1621
+ }), _r = (t, e) => {
1622
1622
  if (!e)
1623
1623
  return {};
1624
1624
  const r = t.some((n) => n.dim) ? t.map((n) => n.dim || "auto").join(" ") : `repeat(${t.length}, 1fr)`;
1625
1625
  return {
1626
1626
  [e]: r
1627
1627
  };
1628
- }, _r = (t) => t.some((e) => e.dim && !e.dim.endsWith("%")), jr = (t) => ({
1628
+ }, jr = (t) => t.some((e) => e.dim && !e.dim.endsWith("%")), Or = (t) => ({
1629
1629
  extraSmall: 12,
1630
1630
  small: 14,
1631
1631
  base: 18,
1632
1632
  large: 20,
1633
1633
  extraLarge: 24
1634
- })[t], Or = (t) => ({
1634
+ })[t], Rr = (t) => ({
1635
1635
  primary: "onPrimary",
1636
1636
  danger: "onDanger",
1637
1637
  base: "base"
@@ -1657,7 +1657,7 @@ const Lt = {
1657
1657
  active: _ = !1,
1658
1658
  buttonExt: v
1659
1659
  }) => {
1660
- const T = {
1660
+ const C = {
1661
1661
  container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${g} ${x && !d ? "smp-button-squared" : ""} ${_ ? "smp-buttonActive" : ""} ${v ? `smp-buttonExt-${v}` : ""}`
1662
1662
  };
1663
1663
  return /* @__PURE__ */ p.jsx(
@@ -1665,29 +1665,29 @@ const Lt = {
1665
1665
  {
1666
1666
  "data-component": "button",
1667
1667
  type: w ? "submit" : "button",
1668
- className: T.container,
1668
+ className: C.container,
1669
1669
  onClick: e,
1670
1670
  "aria-label": r,
1671
1671
  disabled: o,
1672
1672
  "aria-busy": f,
1673
1673
  title: h || b,
1674
- children: f ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", state: Or(i), spin: !0 }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1674
+ children: f ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", state: Rr(i), spin: !0 }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
1675
1675
  n && c && /* @__PURE__ */ p.jsx(
1676
1676
  ie,
1677
1677
  {
1678
1678
  icon: n,
1679
1679
  placeholderIcon: s,
1680
1680
  disabled: o,
1681
- state: Or(i),
1682
- width: jr(a),
1683
- height: jr(a)
1681
+ state: Rr(i),
1682
+ width: Or(a),
1683
+ height: Or(a)
1684
1684
  }
1685
1685
  ),
1686
1686
  d && /* @__PURE__ */ p.jsx("span", { children: b || t })
1687
1687
  ] })
1688
1688
  }
1689
1689
  );
1690
- }, Qn = {
1690
+ }, es = {
1691
1691
  titleLarge: "h2",
1692
1692
  title: "h3",
1693
1693
  body: "h6",
@@ -1701,7 +1701,7 @@ const Lt = {
1701
1701
  style: o,
1702
1702
  ...a
1703
1703
  }) => {
1704
- const i = Qn[t], l = {
1704
+ const i = es[t], l = {
1705
1705
  container: `smp-typography ${t ? `smp-typography-${t}` : ""} ${a.disabled ? "smp-typography-disabled" : ""} ${s ?? ""}`
1706
1706
  };
1707
1707
  return /* @__PURE__ */ p.jsx(
@@ -1739,7 +1739,7 @@ const Lt = {
1739
1739
  "smp-toolbar-node": "_smp-toolbar-node_dcszf_21",
1740
1740
  "smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_dcszf_139",
1741
1741
  "smp-toolbar-node-text": "_smp-toolbar-node-text_dcszf_153"
1742
- }, Zt = "smp-toolbar", Zn = [
1742
+ }, er = "smp-toolbar", ts = [
1743
1743
  "ArrowDown",
1744
1744
  "ArrowUp",
1745
1745
  "ArrowRight",
@@ -1747,7 +1747,7 @@ const Lt = {
1747
1747
  "Enter",
1748
1748
  "Escape",
1749
1749
  " "
1750
- ], Vt = (t) => t.replace(`${Zt}-`, "").split("-").map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)), es = (t) => `${Zt}-${t.filter((e) => !isNaN(e)).join("-")}`, Ut = (t, e) => e ? `${e}-${t}` : `${Zt}-${t}`, Bt = (t) => !!t.fun && t.forcedLeaf === !1 && !(t.children && t.children.length > 0), Wt = (t, e, r, n) => {
1750
+ ], Vt = (t) => t.replace(`${er}-`, "").split("-").map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)), rs = (t) => `${er}-${t.filter((e) => !isNaN(e)).join("-")}`, Ut = (t, e) => e ? `${e}-${t}` : `${er}-${t}`, Bt = (t) => !!t.fun && t.forcedLeaf === !1 && !(t.children && t.children.length > 0), Wt = (t, e, r, n) => {
1751
1751
  if (!t || e.length === 0) return t;
1752
1752
  const s = { ...t };
1753
1753
  s.children = [...t.children ?? []];
@@ -1781,10 +1781,10 @@ const Lt = {
1781
1781
  t.current.get(e)?.focus();
1782
1782
  });
1783
1783
  };
1784
- function ts(t, e, r) {
1784
+ function ns(t, e, r) {
1785
1785
  return { handleKeyDown: oe(
1786
1786
  async (s, o, a) => {
1787
- if (!Zn.includes(s.key)) return;
1787
+ if (!ts.includes(s.key)) return;
1788
1788
  s.preventDefault(), s.stopPropagation();
1789
1789
  const i = e.current.get(a), l = Vt(a);
1790
1790
  if (i)
@@ -1807,7 +1807,7 @@ function ts(t, e, r) {
1807
1807
  case "ArrowLeft":
1808
1808
  case "Escape": {
1809
1809
  l.pop();
1810
- const c = es(l);
1810
+ const c = rs(l);
1811
1811
  e.current.has(c) && (t((d) => d && Wt(d, l, (u) => ({
1812
1812
  ...u,
1813
1813
  isExpanded: !1
@@ -1846,7 +1846,7 @@ const te = {
1846
1846
  CODE_ONLY: "CodeOnly",
1847
1847
  DESC_ONLY: "DescOnly",
1848
1848
  BOTH: "Both"
1849
- }, rs = {
1849
+ }, ss = {
1850
1850
  obj: { t: "", p: "", k: "" },
1851
1851
  fun: "",
1852
1852
  isEditable: !1,
@@ -1854,7 +1854,7 @@ const te = {
1854
1854
  icon: "error",
1855
1855
  value: "No data found"
1856
1856
  };
1857
- function ns(t, e, r) {
1857
+ function os(t, e, r) {
1858
1858
  const n = async (i, l) => {
1859
1859
  if (!Bt(i))
1860
1860
  o(l, { isExpanded: !0 });
@@ -1866,7 +1866,7 @@ function ns(t, e, r) {
1866
1866
  l,
1867
1867
  {
1868
1868
  isLoading: !1,
1869
- children: c?.children && c.children.length > 0 ? c.children : [rs],
1869
+ children: c?.children && c.children.length > 0 ? c.children : [ss],
1870
1870
  isExpanded: !0
1871
1871
  },
1872
1872
  { isExpanded: !1 }
@@ -1905,7 +1905,7 @@ function ns(t, e, r) {
1905
1905
  ));
1906
1906
  } };
1907
1907
  }
1908
- const rn = (t) => {
1908
+ const nn = (t) => {
1909
1909
  const e = ue(null);
1910
1910
  return re(() => () => {
1911
1911
  e.current && clearTimeout(e.current);
@@ -1965,14 +1965,14 @@ const rn = (t) => {
1965
1965
  label: w,
1966
1966
  helperText: _ = !1,
1967
1967
  error: v,
1968
- appearance: T = "base",
1968
+ appearance: C = "base",
1969
1969
  isClearable: y = !1,
1970
1970
  fullWidth: R = !1,
1971
1971
  _dataComponent: O = "textfield",
1972
1972
  min: F,
1973
1973
  max: W,
1974
1974
  step: k,
1975
- inputMode: C = "text",
1975
+ inputMode: T = "text",
1976
1976
  width: E,
1977
1977
  autocomplete: A,
1978
1978
  size: I,
@@ -1991,7 +1991,7 @@ const rn = (t) => {
1991
1991
  r && r != "" && N?.("");
1992
1992
  }, Q = {
1993
1993
  wrapper: `${ve["smp-textfield-wrapper"]} ${R ? ve["smp-textfield-fullWidth"] : ""}`,
1994
- container: `${ve["smp-textfield"]} ${e ? ve["smp-textfield-disabled"] : ""} ${o ? ve["smp-textfield-placeholder"] : ""} ${l ? ve[`smp-textfield-${l}`] : ""} ${P ? ve[`smp-textfield-${P}`] : ""} ${T ? ve[`smp-textfield-${T}`] : ""} ${a ? "" : ve["smp-textfield-readOnly"]} ${u ? ve["smp-textfield-top-right-indicator"] : ""}`,
1994
+ container: `${ve["smp-textfield"]} ${e ? ve["smp-textfield-disabled"] : ""} ${o ? ve["smp-textfield-placeholder"] : ""} ${l ? ve[`smp-textfield-${l}`] : ""} ${P ? ve[`smp-textfield-${P}`] : ""} ${C ? ve[`smp-textfield-${C}`] : ""} ${a ? "" : ve["smp-textfield-readOnly"]} ${u ? ve["smp-textfield-top-right-indicator"] : ""}`,
1995
1995
  input: `${ve["smp-textfield-input"]}`,
1996
1996
  decodeWrapper: ` ${n ? ve["smp-textfield-decode-wrapper"] : ""}`
1997
1997
  };
@@ -2021,7 +2021,7 @@ const rn = (t) => {
2021
2021
  min: F,
2022
2022
  max: W,
2023
2023
  step: k,
2024
- inputMode: C,
2024
+ inputMode: T,
2025
2025
  autoComplete: A,
2026
2026
  size: I,
2027
2027
  maxLength: V,
@@ -2071,7 +2071,7 @@ const rn = (t) => {
2071
2071
  )
2072
2072
  ] }),
2073
2073
  G && /* @__PURE__ */ p.jsx(
2074
- Qt,
2074
+ Zt,
2075
2075
  {
2076
2076
  helperText: v,
2077
2077
  disabled: e,
@@ -2081,7 +2081,7 @@ const rn = (t) => {
2081
2081
  )
2082
2082
  ] });
2083
2083
  };
2084
- function nn({
2084
+ function sn({
2085
2085
  items: t,
2086
2086
  itemHeight: e,
2087
2087
  containerHeight: r,
@@ -2140,7 +2140,7 @@ const He = {
2140
2140
  "smp-list-container": "_smp-list-container_1mnl7_15",
2141
2141
  "smp-list-listItem": "_smp-list-listItem_1mnl7_20"
2142
2142
  };
2143
- function ss(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
2143
+ function as(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
2144
2144
  const o = document.createElement("canvas").getContext("2d");
2145
2145
  if (!o) return 200;
2146
2146
  o.font = r;
@@ -2155,7 +2155,7 @@ function ss(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
2155
2155
  }
2156
2156
  return Math.ceil(a + n);
2157
2157
  }
2158
- const os = 10, er = ({
2158
+ const is = 10, tr = ({
2159
2159
  id: t,
2160
2160
  options: e,
2161
2161
  displayMode: r = "Both",
@@ -2173,11 +2173,11 @@ const os = 10, er = ({
2173
2173
  }) => {
2174
2174
  const [f, g] = z(""), h = 40, [b, x] = z(
2175
2175
  o !== null ? o : -1
2176
- ), [w, _] = z(i || 200), v = ue(null), T = s !== void 0 ? s : e.length > os, y = f ? e.filter(
2176
+ ), [w, _] = z(i || 200), v = ue(null), C = s !== void 0 ? s : e.length > is, y = f ? e.filter(
2177
2177
  (V) => V.decode?.toLowerCase()?.includes(f.toLowerCase())
2178
2178
  ) : e, R = (V) => {
2179
2179
  g(V);
2180
- }, { virtualItems: O, containerProps: F, innerProps: W, scrollToIndex: k } = nn({
2180
+ }, { virtualItems: O, containerProps: F, innerProps: W, scrollToIndex: k } = sn({
2181
2181
  items: y,
2182
2182
  itemHeight: h,
2183
2183
  containerHeight: 200,
@@ -2190,10 +2190,10 @@ const os = 10, er = ({
2190
2190
  }, [b, y]), re(() => {
2191
2191
  d && v?.current && v.current.focus();
2192
2192
  }, [d, v]), re(() => {
2193
- const V = ss(e, r);
2193
+ const V = as(e, r);
2194
2194
  _(V);
2195
2195
  }, [e, r]);
2196
- const C = (V) => {
2196
+ const T = (V) => {
2197
2197
  if (V.key === "ArrowDown" || V.key === "ArrowUp") {
2198
2198
  V.preventDefault();
2199
2199
  let U = b;
@@ -2201,9 +2201,9 @@ const os = 10, er = ({
2201
2201
  } else V.key === "Enter" ? b >= 0 && b < y.length && l?.(y[b]) : V.key === "Escape" && (V.preventDefault(), V.stopPropagation());
2202
2202
  c && c(V);
2203
2203
  }, E = (V) => {
2204
- C(V);
2204
+ T(V);
2205
2205
  }, A = (V) => {
2206
- C(V);
2206
+ T(V);
2207
2207
  }, I = {
2208
2208
  wrapper: `${He["smp-list"]} ${u ? He["smp-list-floating"] : ""}`,
2209
2209
  container: `${He["smp-list-container"]}`,
@@ -2222,7 +2222,7 @@ const os = 10, er = ({
2222
2222
  minWidth: i
2223
2223
  },
2224
2224
  children: [
2225
- T && /* @__PURE__ */ p.jsx(
2225
+ C && /* @__PURE__ */ p.jsx(
2226
2226
  _e,
2227
2227
  {
2228
2228
  bindValue: f,
@@ -2279,22 +2279,22 @@ const os = 10, er = ({
2279
2279
  ]
2280
2280
  }
2281
2281
  );
2282
- }, as = ({
2282
+ }, ls = ({
2283
2283
  data: t,
2284
2284
  ref: e,
2285
2285
  onToolbarLoadNodeData: r,
2286
2286
  onToolbarLeafNodeClick: n,
2287
2287
  onToolbarLoadInitialData: s
2288
2288
  }) => {
2289
- const o = ue(/* @__PURE__ */ new Map()), [a, i] = z(t), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: d } = ns(
2289
+ const o = ue(/* @__PURE__ */ new Map()), [a, i] = z(t), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: d } = os(
2290
2290
  i,
2291
2291
  r,
2292
2292
  n
2293
- ), { handleKeyDown: u } = ts(
2293
+ ), { handleKeyDown: u } = ns(
2294
2294
  i,
2295
2295
  o,
2296
2296
  l
2297
- ), f = rn(400), g = {
2297
+ ), f = nn(400), g = {
2298
2298
  node: Ae["smp-toolbar-node"],
2299
2299
  nodeContent: Ae["smp-toolbar-node-content"],
2300
2300
  clickable: Ae["smp-clickable"],
@@ -2310,7 +2310,7 @@ const os = 10, er = ({
2310
2310
  }, [t, f, s, a]);
2311
2311
  const h = oe(
2312
2312
  (b, x = null) => b?.length ? /* @__PURE__ */ p.jsx(p.Fragment, { children: b.map((w, _) => {
2313
- const v = Ut(_, x ?? ""), T = (w.children?.length ?? 0) > 0, y = !T && !w?.isLoading && !Bt(w);
2313
+ const v = Ut(_, x ?? ""), C = (w.children?.length ?? 0) > 0, y = !C && !w?.isLoading && !Bt(w);
2314
2314
  return w?.shape !== "RAD" ? (
2315
2315
  // Normal nodes rendering
2316
2316
  /* @__PURE__ */ p.jsxs(
@@ -2349,11 +2349,11 @@ const os = 10, er = ({
2349
2349
  }
2350
2350
  ) })
2351
2351
  ] }),
2352
- w.isLoading ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", spin: !0 }) : T || Bt(w) ? /* @__PURE__ */ p.jsx(ie, { icon: "chevron-right" }) : /* @__PURE__ */ p.jsx(ie, { icon: "" })
2352
+ w.isLoading ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", spin: !0 }) : C || Bt(w) ? /* @__PURE__ */ p.jsx(ie, { icon: "chevron-right" }) : /* @__PURE__ */ p.jsx(ie, { icon: "" })
2353
2353
  ]
2354
2354
  }
2355
2355
  ),
2356
- T && /* @__PURE__ */ p.jsx("div", { className: g.childrenContainer, children: h(w.children ?? [], v) })
2356
+ C && /* @__PURE__ */ p.jsx("div", { className: g.childrenContainer, children: h(w.children ?? [], v) })
2357
2357
  ]
2358
2358
  },
2359
2359
  v
@@ -2369,7 +2369,7 @@ const os = 10, er = ({
2369
2369
  tabIndex: -1,
2370
2370
  "smp-id": `toolbar-item-${_}`,
2371
2371
  children: /* @__PURE__ */ p.jsx(
2372
- er,
2372
+ tr,
2373
2373
  {
2374
2374
  options: w.options ? w.options : [],
2375
2375
  isOpen: !0,
@@ -2431,7 +2431,7 @@ const os = 10, er = ({
2431
2431
  document.removeEventListener("mousedown", n);
2432
2432
  };
2433
2433
  }, [t, r, e]);
2434
- }, is = ({
2434
+ }, cs = ({
2435
2435
  data: t,
2436
2436
  sizing: e = "large",
2437
2437
  toolbar: r = !0,
@@ -2449,9 +2449,9 @@ const os = 10, er = ({
2449
2449
  const k = x.current;
2450
2450
  if (!k) return;
2451
2451
  R();
2452
- const C = () => R();
2453
- return k.addEventListener("scroll", C), window.addEventListener("resize", R), () => {
2454
- k.removeEventListener("scroll", C), window.removeEventListener("resize", R);
2452
+ const T = () => R();
2453
+ return k.addEventListener("scroll", T), window.addEventListener("resize", R), () => {
2454
+ k.removeEventListener("scroll", T), window.removeEventListener("resize", R);
2455
2455
  };
2456
2456
  }, []), re(() => {
2457
2457
  n !== void 0 && c(n);
@@ -2465,15 +2465,15 @@ const os = 10, er = ({
2465
2465
  scrollButtonRight: `${Ee["smp-tabbar-scroll-button"]} ${Ee["smp-tabbar-scroll-buttonRight"]}`,
2466
2466
  scrollButtonLeft: `${Ee["smp-tabbar-scroll-button"]} ${Ee["smp-tabbar-scroll-buttonLeft"]}`,
2467
2467
  active: Ee["smp-active"]
2468
- }, T = 100, y = 2, R = () => {
2468
+ }, C = 100, y = 2, R = () => {
2469
2469
  const k = x.current;
2470
2470
  k && (g(k.scrollLeft > 0), b(
2471
2471
  k.scrollLeft + k.clientWidth < k.scrollWidth - y
2472
2472
  ));
2473
2473
  }, O = () => {
2474
- x.current?.scrollBy({ left: -T, behavior: "smooth" });
2474
+ x.current?.scrollBy({ left: -C, behavior: "smooth" });
2475
2475
  }, F = () => {
2476
- x.current?.scrollBy({ left: T, behavior: "smooth" });
2476
+ x.current?.scrollBy({ left: C, behavior: "smooth" });
2477
2477
  }, W = (k) => {
2478
2478
  i && i(k), u(!1);
2479
2479
  };
@@ -2494,17 +2494,17 @@ const os = 10, er = ({
2494
2494
  sizing: e
2495
2495
  }
2496
2496
  ) }),
2497
- /* @__PURE__ */ p.jsx("div", { className: v.listWrapper, children: /* @__PURE__ */ p.jsx("div", { className: v.list, ref: x, role: "tablist", children: t.children.map((k, C) => /* @__PURE__ */ p.jsxs(
2497
+ /* @__PURE__ */ p.jsx("div", { className: v.listWrapper, children: /* @__PURE__ */ p.jsx("div", { className: v.list, ref: x, role: "tablist", children: t.children.map((k, T) => /* @__PURE__ */ p.jsxs(
2498
2498
  "button",
2499
2499
  {
2500
2500
  type: "button",
2501
2501
  "data-comp-id-tab": k.data?.["data-comp-id"] ?? void 0,
2502
- className: `${C === l ? v.active : ""} ${v.tab} `,
2502
+ className: `${T === l ? v.active : ""} ${v.tab} `,
2503
2503
  role: "tab",
2504
- "aria-selected": C === l,
2505
- tabIndex: C === l ? 0 : -1,
2504
+ "aria-selected": T === l,
2505
+ tabIndex: T === l ? 0 : -1,
2506
2506
  onClick: () => {
2507
- s?.(C, k), c(C);
2507
+ s?.(T, k), c(T);
2508
2508
  },
2509
2509
  children: [
2510
2510
  k.icon && /* @__PURE__ */ p.jsx(
@@ -2518,13 +2518,13 @@ const os = 10, er = ({
2518
2518
  Oe,
2519
2519
  {
2520
2520
  variant: "body",
2521
- bindValue: k.decode || `Tab ${C + 1}`
2521
+ bindValue: k.decode || `Tab ${T + 1}`
2522
2522
  }
2523
2523
  ),
2524
- r && (l === C ? /* @__PURE__ */ p.jsx(
2524
+ r && (l === T ? /* @__PURE__ */ p.jsx(
2525
2525
  "div",
2526
2526
  {
2527
- ref: l === C ? w : void 0,
2527
+ ref: l === T ? w : void 0,
2528
2528
  "smp-id": "tab-toolbar-button",
2529
2529
  children: /* @__PURE__ */ p.jsx(
2530
2530
  ie,
@@ -2540,7 +2540,7 @@ const os = 10, er = ({
2540
2540
  ) : /* @__PURE__ */ p.jsx("span", { style: { width: "1rem" } }))
2541
2541
  ]
2542
2542
  },
2543
- C
2543
+ T
2544
2544
  )) }) }),
2545
2545
  h && /* @__PURE__ */ p.jsx("div", { className: v.scrollButtonRight, children: /* @__PURE__ */ p.jsx(
2546
2546
  me,
@@ -2553,7 +2553,7 @@ const os = 10, er = ({
2553
2553
  }
2554
2554
  ) }),
2555
2555
  d && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
2556
- as,
2556
+ ls,
2557
2557
  {
2558
2558
  ref: _,
2559
2559
  onToolbarLeafNodeClick: W,
@@ -2587,30 +2587,30 @@ const os = 10, er = ({
2587
2587
  mt.Children.forEach(t, (h) => {
2588
2588
  mt.isValidElement(h) && (s[h.props.id] = h);
2589
2589
  });
2590
- const o = "--smp-grid-template-cols", a = "--smp-grid-template-rows", i = tn(
2590
+ const o = "--smp-grid-template-cols", a = "--smp-grid-template-rows", i = rn(
2591
2591
  e.sections ?? [],
2592
2592
  Object.keys(s)
2593
2593
  ), l = (h) => h.reduce((b, x) => {
2594
- let w = "", _ = {}, v = {}, T = "";
2595
- return x.sections?.length ? (w = ye["smp-layout-section-grid"], _ = l(x.sections), x.gridCols === void 0 && (T = ye[x.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], x.horizontal || _r(x.sections) ? v = Tr(
2594
+ let w = "", _ = {}, v = {}, C = "";
2595
+ return x.sections?.length ? (w = ye["smp-layout-section-grid"], _ = l(x.sections), x.gridCols === void 0 && (C = ye[x.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], x.horizontal || jr(x.sections) ? v = _r(
2596
2596
  x.sections,
2597
2597
  x.horizontal ? o : a
2598
2598
  ) : v = {
2599
2599
  [o]: "auto",
2600
2600
  [a]: "auto"
2601
- })) : x.content?.length && (x.gridCols !== void 0 && x.gridCols > 0 ? (w = ye["smp-layout-section-grid"], T = ye["smp-grid-template-cols"], v = {
2601
+ })) : x.content?.length && (x.gridCols !== void 0 && x.gridCols > 0 ? (w = ye["smp-layout-section-grid"], C = ye["smp-grid-template-cols"], v = {
2602
2602
  [o]: `repeat(${x.gridCols}, 1fr)`
2603
2603
  }) : w = ye["smp-layout-section-flex"]), {
2604
2604
  ...b,
2605
2605
  ..._,
2606
2606
  [x.id]: {
2607
- classes: `${w} ${ye[x.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${T} ${x.justify ? `smp-justifyContent-${x.justify}` : ""} ${x.align ? `smp-alignItems-${x.align}` : ""}`,
2607
+ classes: `${w} ${ye[x.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${C} ${x.justify ? `smp-justifyContent-${x.justify}` : ""} ${x.align ? `smp-alignItems-${x.align}` : ""}`,
2608
2608
  styles: v
2609
2609
  }
2610
2610
  };
2611
2611
  }, {}), c = l(i), d = `${ye["smp-layout"]} ${e.horizontal ? ye["smp-layout-horizontal"] : ye["smp-layout-vertical"]} ${e.inline ? ye["smp-layout-inline"] : ""}`;
2612
2612
  let u = {};
2613
- (e.horizontal || _r(e.sections || [])) && (u = Tr(
2613
+ (e.horizontal || jr(e.sections || [])) && (u = _r(
2614
2614
  i,
2615
2615
  e.horizontal ? o : a
2616
2616
  ));
@@ -2650,11 +2650,11 @@ const os = 10, er = ({
2650
2650
  const v = {
2651
2651
  gridColumnStart: (h.colSpan && h.colSpan > 0 ? `span ${h.colSpan}` : h.colStart && h.colStart < 1 ? "1" : void 0) ?? h.colStart,
2652
2652
  gridColumnEnd: h.colEnd && h.colEnd > 0 ? h.colEnd : void 0
2653
- }, T = `${ye["smp-layout-cell-container"]} ${b ? `smp-justifyContent-${b}` : ""} ${x ? `smp-alignItems-${x}` : ""}`;
2653
+ }, C = `${ye["smp-layout-cell-container"]} ${b ? `smp-justifyContent-${b}` : ""} ${x ? `smp-alignItems-${x}` : ""}`;
2654
2654
  return /* @__PURE__ */ p.jsx(
2655
2655
  "div",
2656
2656
  {
2657
- className: T,
2657
+ className: C,
2658
2658
  style: v,
2659
2659
  "smp-id": h.id,
2660
2660
  children: w
@@ -2664,7 +2664,7 @@ const os = 10, er = ({
2664
2664
  };
2665
2665
  return /* @__PURE__ */ p.jsxs("div", { className: d, style: u, "smp-id": "layout", children: [
2666
2666
  e.sectionsType === "tab" && e.sections && e?.sections.length > 1 && /* @__PURE__ */ p.jsx(
2667
- is,
2667
+ cs,
2668
2668
  {
2669
2669
  data: {
2670
2670
  type: "SmeupDataTree",
@@ -2684,7 +2684,7 @@ const os = 10, er = ({
2684
2684
  ),
2685
2685
  e.sectionsType ? f(i[r], !0) : i.map((h) => f(h))
2686
2686
  ] });
2687
- }, Yt = (t) => t.t == "D8" || t.t == "A8", sn = (t) => t.t == "NR", ls = (t) => t.t == "I1", cs = (t) => {
2687
+ }, Yt = (t) => t.t == "D8" || t.t == "A8", on = (t) => t.t == "NR", us = (t) => t.t == "I1", ds = (t) => {
2688
2688
  if (t) {
2689
2689
  const e = t.split(";");
2690
2690
  if (e.length == 3)
@@ -2722,8 +2722,8 @@ class yt {
2722
2722
  return this.value ? "true" : "false";
2723
2723
  }
2724
2724
  }
2725
- function us(t, e) {
2726
- if (tr(t)) {
2725
+ function fs(t, e) {
2726
+ if (rr(t)) {
2727
2727
  const d = new Date(t);
2728
2728
  if (!isNaN(d.getTime()))
2729
2729
  return d;
@@ -2757,13 +2757,13 @@ function us(t, e) {
2757
2757
  }
2758
2758
  return t;
2759
2759
  }
2760
- function tr(t) {
2760
+ function rr(t) {
2761
2761
  return /^\d{4}-\d{2}-\d{2}$/.test(t) && t.length === 10;
2762
2762
  }
2763
2763
  function ut(t) {
2764
2764
  return t instanceof Date && !isNaN(t.getTime());
2765
2765
  }
2766
- function ds(t) {
2766
+ function ps(t) {
2767
2767
  if (!/^\d{8}$/.test(t)) return !1;
2768
2768
  const e = parseInt(t.slice(0, 4), 10), r = parseInt(t.slice(4, 6), 10), n = parseInt(t.slice(6, 8), 10);
2769
2769
  return Gt(n, r - 1, e);
@@ -2772,7 +2772,7 @@ function Gt(t, e, r) {
2772
2772
  const n = [
2773
2773
  31,
2774
2774
  // January
2775
- fs(r) ? 29 : 28,
2775
+ hs(r) ? 29 : 28,
2776
2776
  // February
2777
2777
  31,
2778
2778
  // March
@@ -2797,10 +2797,10 @@ function Gt(t, e, r) {
2797
2797
  ];
2798
2798
  return !(e < 0 || e > 11 || t < 1 || t > n[e]);
2799
2799
  }
2800
- function fs(t) {
2800
+ function hs(t) {
2801
2801
  return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
2802
2802
  }
2803
- function ps(t) {
2803
+ function ms(t) {
2804
2804
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), n = String(t.getDate()).padStart(2, "0");
2805
2805
  return isNaN(e) || isNaN(Number(r)) || isNaN(Number(n)) ? t.toString() : `${e}-${r}-${n}`;
2806
2806
  }
@@ -2811,13 +2811,13 @@ class vt {
2811
2811
  this.class = e, this.date = r;
2812
2812
  }
2813
2813
  static fromDataObj(e) {
2814
- const r = Rr.get(`${e.t}${e.p}`);
2814
+ const r = Dr.get(`${e.t}${e.p}`);
2815
2815
  if (r)
2816
2816
  return new vt(e, r.legacyToIso(e.k));
2817
2817
  throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
2818
2818
  }
2819
2819
  getLegacyValue() {
2820
- const e = Rr.get(`${this.class.t}${this.class.p}`);
2820
+ const e = Dr.get(`${this.class.t}${this.class.p}`);
2821
2821
  if (e)
2822
2822
  return e.isoToLegacy(this.date);
2823
2823
  throw new Error(
@@ -2828,15 +2828,15 @@ class vt {
2828
2828
  return this.date;
2829
2829
  }
2830
2830
  }
2831
- const Rr = /* @__PURE__ */ new Map([
2831
+ const Dr = /* @__PURE__ */ new Map([
2832
2832
  [
2833
2833
  "D8*YYMD",
2834
2834
  {
2835
2835
  legacyToIso(t) {
2836
- return ds(t) && `${t.substring(0, 4)}-${t.substring(4, 6)}-${t.substring(6, 8)}` || t;
2836
+ return ps(t) && `${t.substring(0, 4)}-${t.substring(4, 6)}-${t.substring(6, 8)}` || t;
2837
2837
  },
2838
2838
  isoToLegacy(t) {
2839
- return tr(t) && t.replaceAll("-", "") || t;
2839
+ return rr(t) && t.replaceAll("-", "") || t;
2840
2840
  }
2841
2841
  }
2842
2842
  ],
@@ -2857,23 +2857,23 @@ const Rr = /* @__PURE__ */ new Map([
2857
2857
  t = n, e = s;
2858
2858
  });
2859
2859
  return r.resolve = t, r.reject = e, r;
2860
- }, Dr = (t) => t == null ? "" : "" + t, hs = (t, e, r) => {
2860
+ }, kr = (t) => t == null ? "" : "" + t, gs = (t, e, r) => {
2861
2861
  t.forEach((n) => {
2862
2862
  e[n] && (r[n] = e[n]);
2863
2863
  });
2864
- }, ms = /###/g, kr = (t) => t && t.indexOf("###") > -1 ? t.replace(ms, ".") : t, Nr = (t) => !t || Z(t), Xe = (t, e, r) => {
2864
+ }, bs = /###/g, Nr = (t) => t && t.indexOf("###") > -1 ? t.replace(bs, ".") : t, $r = (t) => !t || Z(t), Xe = (t, e, r) => {
2865
2865
  const n = Z(e) ? e.split(".") : e;
2866
2866
  let s = 0;
2867
2867
  for (; s < n.length - 1; ) {
2868
- if (Nr(t)) return {};
2869
- const o = kr(n[s]);
2868
+ if ($r(t)) return {};
2869
+ const o = Nr(n[s]);
2870
2870
  !t[o] && r && (t[o] = new r()), Object.prototype.hasOwnProperty.call(t, o) ? t = t[o] : t = {}, ++s;
2871
2871
  }
2872
- return Nr(t) ? {} : {
2872
+ return $r(t) ? {} : {
2873
2873
  obj: t,
2874
- k: kr(n[s])
2874
+ k: Nr(n[s])
2875
2875
  };
2876
- }, $r = (t, e, r) => {
2876
+ }, Lr = (t, e, r) => {
2877
2877
  const {
2878
2878
  obj: n,
2879
2879
  k: s
@@ -2886,7 +2886,7 @@ const Rr = /* @__PURE__ */ new Map([
2886
2886
  for (; i.obj === void 0 && a.length; )
2887
2887
  o = `${a[a.length - 1]}.${o}`, a = a.slice(0, a.length - 1), i = Xe(t, a, Object), i?.obj && typeof i.obj[`${i.k}.${o}`] < "u" && (i.obj = void 0);
2888
2888
  i.obj[`${i.k}.${o}`] = r;
2889
- }, gs = (t, e, r, n) => {
2889
+ }, ys = (t, e, r, n) => {
2890
2890
  const {
2891
2891
  obj: s,
2892
2892
  k: o
@@ -2899,15 +2899,15 @@ const Rr = /* @__PURE__ */ new Map([
2899
2899
  } = Xe(t, e);
2900
2900
  if (r && Object.prototype.hasOwnProperty.call(r, n))
2901
2901
  return r[n];
2902
- }, bs = (t, e, r) => {
2902
+ }, vs = (t, e, r) => {
2903
2903
  const n = xt(t, r);
2904
2904
  return n !== void 0 ? n : xt(e, r);
2905
- }, on = (t, e, r) => {
2905
+ }, an = (t, e, r) => {
2906
2906
  for (const n in e)
2907
- n !== "__proto__" && n !== "constructor" && (n in t ? Z(t[n]) || t[n] instanceof String || Z(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) : on(t[n], e[n], r) : t[n] = e[n]);
2907
+ n !== "__proto__" && n !== "constructor" && (n in t ? Z(t[n]) || t[n] instanceof String || Z(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) : an(t[n], e[n], r) : t[n] = e[n]);
2908
2908
  return t;
2909
2909
  }, Ve = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2910
- var ys = {
2910
+ var xs = {
2911
2911
  "&": "&amp;",
2912
2912
  "<": "&lt;",
2913
2913
  ">": "&gt;",
@@ -2915,8 +2915,8 @@ var ys = {
2915
2915
  "'": "&#39;",
2916
2916
  "/": "&#x2F;"
2917
2917
  };
2918
- const vs = (t) => Z(t) ? t.replace(/[&<>"'\/]/g, (e) => ys[e]) : t;
2919
- class xs {
2918
+ const ws = (t) => Z(t) ? t.replace(/[&<>"'\/]/g, (e) => xs[e]) : t;
2919
+ class Ss {
2920
2920
  constructor(e) {
2921
2921
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2922
2922
  }
@@ -2928,11 +2928,11 @@ class xs {
2928
2928
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2929
2929
  }
2930
2930
  }
2931
- const ws = [" ", ",", "?", "!", ";"], Ss = new xs(20), Es = (t, e, r) => {
2931
+ const Es = [" ", ",", "?", "!", ";"], Ts = new Ss(20), Cs = (t, e, r) => {
2932
2932
  e = e || "", r = r || "";
2933
- const n = ws.filter((a) => e.indexOf(a) < 0 && r.indexOf(a) < 0);
2933
+ const n = Es.filter((a) => e.indexOf(a) < 0 && r.indexOf(a) < 0);
2934
2934
  if (n.length === 0) return !0;
2935
- const s = Ss.getRegExp(`(${n.map((a) => a === "?" ? "\\?" : a).join("|")})`);
2935
+ const s = Ts.getRegExp(`(${n.map((a) => a === "?" ? "\\?" : a).join("|")})`);
2936
2936
  let o = !s.test(t);
2937
2937
  if (!o) {
2938
2938
  const a = t.indexOf(r);
@@ -2959,7 +2959,7 @@ const ws = [" ", ",", "?", "!", ";"], Ss = new xs(20), Es = (t, e, r) => {
2959
2959
  s = a;
2960
2960
  }
2961
2961
  return s;
2962
- }, Ze = (t) => t?.replace("_", "-"), Cs = {
2962
+ }, Ze = (t) => t?.replace("_", "-"), _s = {
2963
2963
  type: "logger",
2964
2964
  log(t) {
2965
2965
  this.output("log", t);
@@ -2979,7 +2979,7 @@ class wt {
2979
2979
  this.init(e, r);
2980
2980
  }
2981
2981
  init(e, r = {}) {
2982
- this.prefix = r.prefix || "i18next:", this.logger = e || Cs, this.options = r, this.debug = r.debug;
2982
+ this.prefix = r.prefix || "i18next:", this.logger = e || _s, this.options = r, this.debug = r.debug;
2983
2983
  }
2984
2984
  log(...e) {
2985
2985
  return this.forward(e, "log", "", !0);
@@ -3006,8 +3006,8 @@ class wt {
3006
3006
  return e = e || this.options, e.prefix = e.prefix || this.prefix, new wt(this.logger, e);
3007
3007
  }
3008
3008
  }
3009
- var Te = new wt();
3010
- class Ct {
3009
+ var Ce = new wt();
3010
+ class Tt {
3011
3011
  constructor() {
3012
3012
  this.observers = {};
3013
3013
  }
@@ -3037,7 +3037,7 @@ class Ct {
3037
3037
  });
3038
3038
  }
3039
3039
  }
3040
- class Lr extends Ct {
3040
+ class Ar extends Tt {
3041
3041
  constructor(e, r = {
3042
3042
  ns: ["translation"],
3043
3043
  defaultNS: "translation"
@@ -3063,7 +3063,7 @@ class Lr extends Ct {
3063
3063
  }) {
3064
3064
  const a = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
3065
3065
  let i = [e, r];
3066
- n && (i = i.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (i = e.split("."), s = r, r = i[1]), this.addNamespaces(r), $r(this.data, i, s), o.silent || this.emit("added", e, r, n, s);
3066
+ n && (i = i.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (i = e.split("."), s = r, r = i[1]), this.addNamespaces(r), Lr(this.data, i, s), o.silent || this.emit("added", e, r, n, s);
3067
3067
  }
3068
3068
  addResources(e, r, n, s = {
3069
3069
  silent: !1
@@ -3081,10 +3081,10 @@ class Lr extends Ct {
3081
3081
  let i = [e, r];
3082
3082
  e.indexOf(".") > -1 && (i = e.split("."), s = n, n = r, r = i[1]), this.addNamespaces(r);
3083
3083
  let l = xt(this.data, i) || {};
3084
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? on(l, n, o) : l = {
3084
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? an(l, n, o) : l = {
3085
3085
  ...l,
3086
3086
  ...n
3087
- }, $r(this.data, i, l), a.silent || this.emit("added", e, r, n);
3087
+ }, Lr(this.data, i, l), a.silent || this.emit("added", e, r, n);
3088
3088
  }
3089
3089
  removeResourceBundle(e, r) {
3090
3090
  this.hasResourceBundle(e, r) && delete this.data[e][r], this.removeNamespaces(r), this.emit("removed", e, r);
@@ -3106,7 +3106,7 @@ class Lr extends Ct {
3106
3106
  return this.data;
3107
3107
  }
3108
3108
  }
3109
- var an = {
3109
+ var ln = {
3110
3110
  processors: {},
3111
3111
  addPostProcessor(t) {
3112
3112
  this.processors[t.name] = t;
@@ -3117,10 +3117,22 @@ var an = {
3117
3117
  }), e;
3118
3118
  }
3119
3119
  };
3120
- const Ar = {}, Ir = (t) => !Z(t) && typeof t != "boolean" && typeof t != "number";
3121
- class St extends Ct {
3120
+ const cn = Symbol("i18next/PATH_KEY");
3121
+ function js() {
3122
+ const t = [], e = /* @__PURE__ */ Object.create(null);
3123
+ let r;
3124
+ return e.get = (n, s) => (r?.revoke?.(), s === cn ? t : (t.push(s), r = Proxy.revocable(n, e), r.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
3125
+ }
3126
+ function zt(t, e) {
3127
+ const {
3128
+ [cn]: r
3129
+ } = t(js());
3130
+ return r.join(e?.keySeparator ?? ".");
3131
+ }
3132
+ const Ir = {}, Pr = (t) => !Z(t) && typeof t != "boolean" && typeof t != "number";
3133
+ class St extends Tt {
3122
3134
  constructor(e, r = {}) {
3123
- super(), hs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Te.create("translator");
3135
+ super(), gs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Ce.create("translator");
3124
3136
  }
3125
3137
  changeLanguage(e) {
3126
3138
  e && (this.language = e);
@@ -3138,7 +3150,7 @@ class St extends Ct {
3138
3150
  n === void 0 && (n = ":");
3139
3151
  const s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
3140
3152
  let o = r.ns || this.options.defaultNS || [];
3141
- const a = n && e.indexOf(n) > -1, i = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !Es(e, n, s);
3153
+ const a = n && e.indexOf(n) > -1, i = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !Cs(e, n, s);
3142
3154
  if (a && !i) {
3143
3155
  const l = e.match(this.interpolator.nestingRegexp);
3144
3156
  if (l && l.length > 0)
@@ -3158,10 +3170,13 @@ class St extends Ct {
3158
3170
  let s = typeof r == "object" ? {
3159
3171
  ...r
3160
3172
  } : r;
3161
- if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (s = {
3173
+ if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
3162
3174
  ...s
3163
3175
  }), s || (s = {}), e == null) return "";
3164
- Array.isArray(e) || (e = [String(e)]);
3176
+ typeof e == "function" && (e = zt(e, {
3177
+ ...this.options,
3178
+ ...s
3179
+ })), Array.isArray(e) || (e = [String(e)]);
3165
3180
  const o = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
3166
3181
  key: i,
3167
3182
  namespaces: l
@@ -3187,13 +3202,13 @@ class St extends Ct {
3187
3202
  } : i;
3188
3203
  const g = this.resolve(e, s);
3189
3204
  let h = g?.res;
3190
- const b = g?.usedKey || i, x = g?.exactUsedKey || i, w = ["[object Number]", "[object Function]", "[object RegExp]"], _ = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, T = s.count !== void 0 && !Z(s.count), y = St.hasDefaultValue(s), R = T ? this.pluralResolver.getSuffix(u, s.count, s) : "", O = s.ordinal && T ? this.pluralResolver.getSuffix(u, s.count, {
3205
+ const b = g?.usedKey || i, x = g?.exactUsedKey || i, w = ["[object Number]", "[object Function]", "[object RegExp]"], _ = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, C = s.count !== void 0 && !Z(s.count), y = St.hasDefaultValue(s), R = C ? this.pluralResolver.getSuffix(u, s.count, s) : "", O = s.ordinal && C ? this.pluralResolver.getSuffix(u, s.count, {
3191
3206
  ordinal: !1
3192
- }) : "", F = T && !s.ordinal && s.count === 0, W = F && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${O}`] || s.defaultValue;
3207
+ }) : "", F = C && !s.ordinal && s.count === 0, W = F && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${O}`] || s.defaultValue;
3193
3208
  let k = h;
3194
3209
  v && !h && y && (k = W);
3195
- const C = Ir(k), E = Object.prototype.toString.apply(k);
3196
- if (v && k && C && w.indexOf(E) < 0 && !(Z(_) && Array.isArray(k))) {
3210
+ const T = Pr(k), E = Object.prototype.toString.apply(k);
3211
+ if (v && k && T && w.indexOf(E) < 0 && !(Z(_) && Array.isArray(k))) {
3197
3212
  if (!s.returnObjects && !this.options.returnObjects) {
3198
3213
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
3199
3214
  const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, k, {
@@ -3209,7 +3224,7 @@ class St extends Ct {
3209
3224
  const X = `${V}${a}${U}`;
3210
3225
  y && !h ? I[U] = this.translate(X, {
3211
3226
  ...s,
3212
- defaultValue: Ir(W) ? W[U] : void 0,
3227
+ defaultValue: Pr(W) ? W[U] : void 0,
3213
3228
  joinArrays: !1,
3214
3229
  ns: l
3215
3230
  }) : I[U] = this.translate(X, {
@@ -3244,7 +3259,7 @@ class St extends Ct {
3244
3259
  const $ = y && D !== h ? D : U;
3245
3260
  this.options.missingKeyHandler ? this.options.missingKeyHandler(S, c, L, $, X, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(S, c, L, $, X, s), this.emit("missingKey", S, c, L, h);
3246
3261
  };
3247
- this.options.saveMissing && (this.options.saveMissingPlurals && T ? N.forEach((S) => {
3262
+ this.options.saveMissing && (this.options.saveMissingPlurals && C ? N.forEach((S) => {
3248
3263
  const L = this.pluralResolver.getSuffixes(S, s);
3249
3264
  F && s[`defaultValue${this.options.pluralSeparator}zero`] && L.indexOf(`${this.options.pluralSeparator}zero`) < 0 && L.push(`${this.options.pluralSeparator}zero`), L.forEach((D) => {
3250
3265
  m([S], i + D, s[`defaultValue${D}`] || W);
@@ -3288,7 +3303,7 @@ class St extends Ct {
3288
3303
  !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...u) => o?.[0] === u[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${r[0]}`), null) : this.translate(...u, r), n)), n.interpolation && this.interpolator.reset();
3289
3304
  }
3290
3305
  const a = n.postProcess || this.options.postProcess, i = Z(a) ? [a] : a;
3291
- return e != null && i?.length && n.applyPostProcessor !== !1 && (e = an.handle(i, e, r, this.options && this.options.postProcessPassResolved ? {
3306
+ return e != null && i?.length && n.applyPostProcessor !== !1 && (e = ln.handle(i, e, r, this.options && this.options.postProcessPassResolved ? {
3292
3307
  i18nResolved: {
3293
3308
  ...s,
3294
3309
  usedParams: this.getUsedParamsDetails(n)
@@ -3306,19 +3321,19 @@ class St extends Ct {
3306
3321
  this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
3307
3322
  const f = r.count !== void 0 && !Z(r.count), g = f && !r.ordinal && r.count === 0, h = r.context !== void 0 && (Z(r.context) || typeof r.context == "number") && r.context !== "", b = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
3308
3323
  u.forEach((x) => {
3309
- this.isValidLookup(n) || (i = x, !Ar[`${b[0]}-${x}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (Ar[`${b[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${b.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), b.forEach((w) => {
3324
+ this.isValidLookup(n) || (i = x, !Ir[`${b[0]}-${x}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (Ir[`${b[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${b.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), b.forEach((w) => {
3310
3325
  if (this.isValidLookup(n)) return;
3311
3326
  a = w;
3312
3327
  const _ = [d];
3313
3328
  if (this.i18nFormat?.addLookupKeys)
3314
3329
  this.i18nFormat.addLookupKeys(_, d, w, x, r);
3315
3330
  else {
3316
- let T;
3317
- f && (T = this.pluralResolver.getSuffix(w, r.count, r));
3331
+ let C;
3332
+ f && (C = this.pluralResolver.getSuffix(w, r.count, r));
3318
3333
  const y = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
3319
- if (f && (r.ordinal && T.indexOf(R) === 0 && _.push(d + T.replace(R, this.options.pluralSeparator)), _.push(d + T), g && _.push(d + y)), h) {
3320
- const O = `${d}${this.options.contextSeparator}${r.context}`;
3321
- _.push(O), f && (_.push(O + T), r.ordinal && T.indexOf(R) === 0 && _.push(O + T.replace(R, this.options.pluralSeparator)), g && _.push(O + y));
3334
+ if (f && (r.ordinal && C.indexOf(R) === 0 && _.push(d + C.replace(R, this.options.pluralSeparator)), _.push(d + C), g && _.push(d + y)), h) {
3335
+ const O = `${d}${this.options.contextSeparator || "_"}${r.context}`;
3336
+ _.push(O), f && (r.ordinal && C.indexOf(R) === 0 && _.push(O + C.replace(R, this.options.pluralSeparator)), _.push(O + C), g && _.push(O + y));
3322
3337
  }
3323
3338
  }
3324
3339
  let v;
@@ -3363,9 +3378,9 @@ class St extends Ct {
3363
3378
  return !1;
3364
3379
  }
3365
3380
  }
3366
- class Pr {
3381
+ class Fr {
3367
3382
  constructor(e) {
3368
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Te.create("languageUtils");
3383
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Ce.create("languageUtils");
3369
3384
  }
3370
3385
  getScriptPartFromCode(e) {
3371
3386
  if (e = Ze(e), !e || e.indexOf("-") < 0) return null;
@@ -3427,22 +3442,22 @@ class Pr {
3427
3442
  }), s;
3428
3443
  }
3429
3444
  }
3430
- const Fr = {
3445
+ const Mr = {
3431
3446
  zero: 0,
3432
3447
  one: 1,
3433
3448
  two: 2,
3434
3449
  few: 3,
3435
3450
  many: 4,
3436
3451
  other: 5
3437
- }, Mr = {
3452
+ }, Vr = {
3438
3453
  select: (t) => t === 1 ? "one" : "other",
3439
3454
  resolvedOptions: () => ({
3440
3455
  pluralCategories: ["one", "other"]
3441
3456
  })
3442
3457
  };
3443
- class Ts {
3458
+ class Os {
3444
3459
  constructor(e, r = {}) {
3445
- this.languageUtils = e, this.options = r, this.logger = Te.create("pluralResolver"), this.pluralRulesCache = {};
3460
+ this.languageUtils = e, this.options = r, this.logger = Ce.create("pluralResolver"), this.pluralRulesCache = {};
3446
3461
  }
3447
3462
  addRule(e, r) {
3448
3463
  this.rules[e] = r;
@@ -3464,8 +3479,8 @@ class Ts {
3464
3479
  });
3465
3480
  } catch {
3466
3481
  if (!Intl)
3467
- return this.logger.error("No Intl support, please use an Intl polyfill!"), Mr;
3468
- if (!e.match(/-|_/)) return Mr;
3482
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), Vr;
3483
+ if (!e.match(/-|_/)) return Vr;
3469
3484
  const l = this.languageUtils.getLanguagePartFromCode(e);
3470
3485
  a = this.getRule(l, r);
3471
3486
  }
@@ -3480,20 +3495,20 @@ class Ts {
3480
3495
  }
3481
3496
  getSuffixes(e, r = {}) {
3482
3497
  let n = this.getRule(e, r);
3483
- return n || (n = this.getRule("dev", r)), n ? n.resolvedOptions().pluralCategories.sort((s, o) => Fr[s] - Fr[o]).map((s) => `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
3498
+ return n || (n = this.getRule("dev", r)), n ? n.resolvedOptions().pluralCategories.sort((s, o) => Mr[s] - Mr[o]).map((s) => `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
3484
3499
  }
3485
3500
  getSuffix(e, r, n = {}) {
3486
3501
  const s = this.getRule(e, n);
3487
3502
  return s ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(r)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", r, n));
3488
3503
  }
3489
3504
  }
3490
- const Vr = (t, e, r, n = ".", s = !0) => {
3491
- let o = bs(t, e, r);
3505
+ const Ur = (t, e, r, n = ".", s = !0) => {
3506
+ let o = vs(t, e, r);
3492
3507
  return !o && s && Z(r) && (o = qt(t, r, n), o === void 0 && (o = qt(e, r, n))), o;
3493
3508
  }, At = (t) => t.replace(/\$/g, "$$$$");
3494
- class _s {
3509
+ class Rs {
3495
3510
  constructor(e = {}) {
3496
- this.logger = Te.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((r) => r), this.init(e);
3511
+ this.logger = Ce.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((r) => r), this.init(e);
3497
3512
  }
3498
3513
  init(e = {}) {
3499
3514
  e.interpolation || (e.interpolation = {
@@ -3518,7 +3533,7 @@ class _s {
3518
3533
  maxReplaces: w,
3519
3534
  alwaysFormat: _
3520
3535
  } = e.interpolation;
3521
- this.escape = r !== void 0 ? r : vs, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? Ve(o) : a || "{{", this.suffix = i ? Ve(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Ve(f) : g || Ve("$t("), this.nestingSuffix = h ? Ve(h) : b || Ve(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = _ !== void 0 ? _ : !1, this.resetRegExp();
3536
+ this.escape = r !== void 0 ? r : ws, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? Ve(o) : a || "{{", this.suffix = i ? Ve(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Ve(f) : g || Ve("$t("), this.nestingSuffix = h ? Ve(h) : b || Ve(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = _ !== void 0 ? _ : !1, this.resetRegExp();
3522
3537
  }
3523
3538
  reset() {
3524
3539
  this.options && this.init(this.options);
@@ -3531,7 +3546,7 @@ class _s {
3531
3546
  let o, a, i;
3532
3547
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
3533
3548
  if (g.indexOf(this.formatSeparator) < 0) {
3534
- const w = Vr(r, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
3549
+ const w = Ur(r, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
3535
3550
  return this.alwaysFormat ? this.format(w, void 0, n, {
3536
3551
  ...s,
3537
3552
  ...r,
@@ -3539,7 +3554,7 @@ class _s {
3539
3554
  }) : w;
3540
3555
  }
3541
3556
  const h = g.split(this.formatSeparator), b = h.shift().trim(), x = h.join(this.formatSeparator).trim();
3542
- return this.format(Vr(r, l, b, this.options.keySeparator, this.options.ignoreJSONStructure), x, n, {
3557
+ return this.format(Ur(r, l, b, this.options.keySeparator, this.options.ignoreJSONStructure), x, n, {
3543
3558
  ...s,
3544
3559
  ...r,
3545
3560
  interpolationkey: b
@@ -3567,7 +3582,7 @@ class _s {
3567
3582
  continue;
3568
3583
  } else
3569
3584
  this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`), a = "";
3570
- else !Z(a) && !this.useRawValueToEscape && (a = Dr(a));
3585
+ else !Z(a) && !this.useRawValueToEscape && (a = kr(a));
3571
3586
  const b = g.safeValue(a);
3572
3587
  if (e = e.replace(o[0], b), u ? (g.regex.lastIndex += a.length, g.regex.lastIndex -= o[0].length) : g.regex.lastIndex = 0, i++, i >= this.maxReplaces)
3573
3588
  break;
@@ -3601,7 +3616,7 @@ class _s {
3601
3616
  }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3602
3617
  const c = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
3603
3618
  if (c !== -1 && (l = s[1].slice(c).split(this.formatSeparator).map((d) => d.trim()).filter(Boolean), s[1] = s[1].slice(0, c)), o = r(i.call(this, s[1].trim(), a), a), o && s[0] === e && !Z(o)) return o;
3604
- Z(o) || (o = Dr(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""), l.length && (o = l.reduce((d, u) => this.format(d, u, n.lng, {
3619
+ Z(o) || (o = kr(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""), l.length && (o = l.reduce((d, u) => this.format(d, u, n.lng, {
3605
3620
  ...n,
3606
3621
  interpolationkey: s[1].trim()
3607
3622
  }), o.trim())), e = e.replace(s[0], o), this.regexp.lastIndex = 0;
@@ -3609,7 +3624,7 @@ class _s {
3609
3624
  return e;
3610
3625
  }
3611
3626
  }
3612
- const js = (t) => {
3627
+ const Ds = (t) => {
3613
3628
  let e = t.toLowerCase().trim();
3614
3629
  const r = {};
3615
3630
  if (t.indexOf("(") > -1) {
@@ -3627,7 +3642,7 @@ const js = (t) => {
3627
3642
  formatName: e,
3628
3643
  formatOptions: r
3629
3644
  };
3630
- }, Ur = (t) => {
3645
+ }, Br = (t) => {
3631
3646
  const e = {};
3632
3647
  return (r, n, s) => {
3633
3648
  let o = s;
@@ -3639,16 +3654,16 @@ const js = (t) => {
3639
3654
  let i = e[a];
3640
3655
  return i || (i = t(Ze(n), s), e[a] = i), i(r);
3641
3656
  };
3642
- }, Os = (t) => (e, r, n) => t(Ze(r), n)(e);
3643
- class Rs {
3657
+ }, ks = (t) => (e, r, n) => t(Ze(r), n)(e);
3658
+ class Ns {
3644
3659
  constructor(e = {}) {
3645
- this.logger = Te.create("formatter"), this.options = e, this.init(e);
3660
+ this.logger = Ce.create("formatter"), this.options = e, this.init(e);
3646
3661
  }
3647
3662
  init(e, r = {
3648
3663
  interpolation: {}
3649
3664
  }) {
3650
3665
  this.formatSeparator = r.interpolation.formatSeparator || ",";
3651
- const n = r.cacheInBuiltFormats ? Ur : Os;
3666
+ const n = r.cacheInBuiltFormats ? Br : ks;
3652
3667
  this.formats = {
3653
3668
  number: n((s, o) => {
3654
3669
  const a = new Intl.NumberFormat(s, {
@@ -3687,7 +3702,7 @@ class Rs {
3687
3702
  this.formats[e.toLowerCase().trim()] = r;
3688
3703
  }
3689
3704
  addCached(e, r) {
3690
- this.formats[e.toLowerCase().trim()] = Ur(r);
3705
+ this.formats[e.toLowerCase().trim()] = Br(r);
3691
3706
  }
3692
3707
  format(e, r, n, s = {}) {
3693
3708
  const o = r.split(this.formatSeparator);
@@ -3699,7 +3714,7 @@ class Rs {
3699
3714
  const {
3700
3715
  formatName: c,
3701
3716
  formatOptions: d
3702
- } = js(l);
3717
+ } = Ds(l);
3703
3718
  if (this.formats[c]) {
3704
3719
  let u = i;
3705
3720
  try {
@@ -3719,12 +3734,12 @@ class Rs {
3719
3734
  }, e);
3720
3735
  }
3721
3736
  }
3722
- const Ds = (t, e) => {
3737
+ const $s = (t, e) => {
3723
3738
  t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--);
3724
3739
  };
3725
- class ks extends Ct {
3740
+ class Ls extends Tt {
3726
3741
  constructor(e, r, n, s = {}) {
3727
- super(), this.backend = e, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = Te.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, s.backend, s);
3742
+ super(), this.backend = e, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = Ce.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, s.backend, s);
3728
3743
  }
3729
3744
  queueLoad(e, r, n, s) {
3730
3745
  const o = {}, a = {}, i = {}, l = {};
@@ -3754,7 +3769,7 @@ class ks extends Ct {
3754
3769
  }), this.state[e] = r ? -1 : 2, r && n && (this.state[e] = 0);
3755
3770
  const i = {};
3756
3771
  this.queue.forEach((l) => {
3757
- gs(l.loaded, [o], a), Ds(l, e), r && l.errors.push(r), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
3772
+ ys(l.loaded, [o], a), $s(l, e), r && l.errors.push(r), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
3758
3773
  i[c] || (i[c] = {});
3759
3774
  const d = l.loaded[c];
3760
3775
  d.length && d.forEach((u) => {
@@ -3852,7 +3867,7 @@ class ks extends Ct {
3852
3867
  }
3853
3868
  }
3854
3869
  }
3855
- const Br = () => ({
3870
+ const Wr = () => ({
3856
3871
  debug: !1,
3857
3872
  initAsync: !0,
3858
3873
  ns: ["translation"],
@@ -3909,17 +3924,17 @@ const Br = () => ({
3909
3924
  skipOnVariables: !0
3910
3925
  },
3911
3926
  cacheInBuiltFormats: !0
3912
- }), Wr = (t) => (Z(t.ns) && (t.ns = [t.ns]), Z(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), Z(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs?.indexOf?.("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t), dt = () => {
3913
- }, Ns = (t) => {
3927
+ }), Yr = (t) => (Z(t.ns) && (t.ns = [t.ns]), Z(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), Z(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs?.indexOf?.("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t), dt = () => {
3928
+ }, As = (t) => {
3914
3929
  Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((r) => {
3915
3930
  typeof t[r] == "function" && (t[r] = t[r].bind(t));
3916
3931
  });
3917
3932
  };
3918
- class et extends Ct {
3933
+ class et extends Tt {
3919
3934
  constructor(e = {}, r) {
3920
- if (super(), this.options = Wr(e), this.services = {}, this.logger = Te, this.modules = {
3935
+ if (super(), this.options = Yr(e), this.services = {}, this.logger = Ce, this.modules = {
3921
3936
  external: []
3922
- }, Ns(this), r && !this.isInitialized && !e.isClone) {
3937
+ }, As(this), r && !this.isInitialized && !e.isClone) {
3923
3938
  if (!this.options.initAsync)
3924
3939
  return this.init(e, r), this;
3925
3940
  setTimeout(() => {
@@ -3929,29 +3944,29 @@ class et extends Ct {
3929
3944
  }
3930
3945
  init(e = {}, r) {
3931
3946
  this.isInitializing = !0, typeof e == "function" && (r = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3932
- const n = Br();
3947
+ const n = Wr();
3933
3948
  this.options = {
3934
3949
  ...n,
3935
3950
  ...this.options,
3936
- ...Wr(e)
3951
+ ...Yr(e)
3937
3952
  }, this.options.interpolation = {
3938
3953
  ...n.interpolation,
3939
3954
  ...this.options.interpolation
3940
3955
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
3941
3956
  const s = (c) => c ? typeof c == "function" ? new c() : c : null;
3942
3957
  if (!this.options.isClone) {
3943
- this.modules.logger ? Te.init(s(this.modules.logger), this.options) : Te.init(null, this.options);
3958
+ this.modules.logger ? Ce.init(s(this.modules.logger), this.options) : Ce.init(null, this.options);
3944
3959
  let c;
3945
- this.modules.formatter ? c = this.modules.formatter : c = Rs;
3946
- const d = new Pr(this.options);
3947
- this.store = new Lr(this.options.resources, this.options);
3960
+ this.modules.formatter ? c = this.modules.formatter : c = Ns;
3961
+ const d = new Fr(this.options);
3962
+ this.store = new Ar(this.options.resources, this.options);
3948
3963
  const u = this.services;
3949
- u.logger = Te, u.resourceStore = this.store, u.languageUtils = d, u.pluralResolver = new Ts(d, {
3964
+ u.logger = Ce, u.resourceStore = this.store, u.languageUtils = d, u.pluralResolver = new Os(d, {
3950
3965
  prepend: this.options.pluralSeparator,
3951
3966
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3952
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new _s(this.options), u.utils = {
3967
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Rs(this.options), u.utils = {
3953
3968
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3954
- }, u.backendConnector = new ks(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (g, ...h) => {
3969
+ }, u.backendConnector = new Ls(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (g, ...h) => {
3955
3970
  this.emit(g, ...h);
3956
3971
  }), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new St(this.services, this.options), this.translator.on("*", (g, ...h) => {
3957
3972
  this.emit(g, ...h);
@@ -4003,7 +4018,7 @@ class et extends Ct {
4003
4018
  use(e) {
4004
4019
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
4005
4020
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
4006
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && an.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
4021
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ln.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
4007
4022
  }
4008
4023
  setResolvedLanguage(e) {
4009
4024
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -4042,7 +4057,13 @@ class et extends Ct {
4042
4057
  }, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || n || s.keyPrefix);
4043
4058
  const c = this.options.keySeparator || ".";
4044
4059
  let d;
4045
- return l.keyPrefix && Array.isArray(o) ? d = o.map((u) => `${l.keyPrefix}${c}${u}`) : d = l.keyPrefix ? `${l.keyPrefix}${c}${o}` : o, this.t(d, l);
4060
+ return l.keyPrefix && Array.isArray(o) ? d = o.map((u) => (typeof u == "function" && (u = zt(u, {
4061
+ ...this.options,
4062
+ ...a
4063
+ })), `${l.keyPrefix}${c}${u}`)) : (typeof o == "function" && (o = zt(o, {
4064
+ ...this.options,
4065
+ ...a
4066
+ })), d = l.keyPrefix ? `${l.keyPrefix}${c}${o}` : o), this.t(d, l);
4046
4067
  };
4047
4068
  return Z(e) ? s.lng = e : s.lngs = e, s.ns = r, s.keyPrefix = n, s;
4048
4069
  }
@@ -4098,7 +4119,7 @@ class et extends Ct {
4098
4119
  }
4099
4120
  } catch {
4100
4121
  }
4101
- const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new Pr(Br());
4122
+ const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new Fr(Wr());
4102
4123
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : r.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
4103
4124
  }
4104
4125
  static createInstance(e = {}, r) {
@@ -4124,7 +4145,7 @@ class et extends Ct {
4124
4145
  }, l[c] = Object.keys(l[c]).reduce((d, u) => (d[u] = {
4125
4146
  ...l[c][u]
4126
4147
  }, d), l[c]), l), {});
4127
- o.store = new Lr(i, s), o.services.resourceStore = o.store;
4148
+ o.store = new Ar(i, s), o.services.resourceStore = o.store;
4128
4149
  }
4129
4150
  return o.translator = new St(o.services, s), o.translator.on("*", (i, ...l) => {
4130
4151
  o.emit(i, ...l);
@@ -4158,48 +4179,48 @@ fe.setDefaultNamespace;
4158
4179
  fe.hasLoadedNamespace;
4159
4180
  fe.loadNamespaces;
4160
4181
  fe.loadLanguages;
4161
- const $s = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Ls = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, As = { AddSubGroup: "Aggiungi sottogruppo", AddFilter: "Aggiungi Filtro", Operator: { String: { Starts: "Inizia per", Contains: "Contiene", Equals: "È uguale a" }, Number: { Greater: "Maggiore di", GreaterOrEqual: "Maggiore o uguale a", Less: "Minore di", LessOrEqual: "Minore o uguale a", Equals: "Uguale a", NotEquals: "Diverso da" }, Date: { Before: "Prima del", After: "Dopo del", On: "Il giorno" } } }, Is = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, Ps = {
4182
+ const Is = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Ps = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Fs = { AddSubGroup: "Aggiungi sottogruppo", AddFilter: "Aggiungi Filtro", Operator: { String: { Starts: "Inizia per", Contains: "Contiene", Equals: "È uguale a" }, Number: { Greater: "Maggiore di", GreaterOrEqual: "Maggiore o uguale a", Less: "Minore di", LessOrEqual: "Minore o uguale a", Equals: "Uguale a", NotEquals: "Diverso da" }, Date: { Before: "Prima del", After: "Dopo del", On: "Il giorno" } } }, Ms = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, Vs = {
4162
4183
  Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
4163
- Day: $s,
4164
- Month: Ls,
4165
- FilterBuilder: As,
4166
- Generic: Is
4167
- }, Fs = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Ms = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Vs = { AddSubGroup: "Add Sub Group", AddFilter: "Add Filter", Operator: { String: { Starts: "Starts with", Contains: "Contains", Equals: "Equal to" }, Number: { Greater: "Greater than", GreaterOrEqual: "Greater or equal than", Less: "Less than", LessOrEqual: "Less or equal than", Equals: "Equal to", NotEquals: "Other than" }, Date: { Before: "Before date", After: "After date", On: "On" } } }, Us = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Bs = {
4184
+ Day: Is,
4185
+ Month: Ps,
4186
+ FilterBuilder: Fs,
4187
+ Generic: Ms
4188
+ }, Us = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Bs = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Ws = { AddSubGroup: "Add Sub Group", AddFilter: "Add Filter", Operator: { String: { Starts: "Starts with", Contains: "Contains", Equals: "Equal to" }, Number: { Greater: "Greater than", GreaterOrEqual: "Greater or equal than", Less: "Less than", LessOrEqual: "Less or equal than", Equals: "Equal to", NotEquals: "Other than" }, Date: { Before: "Before date", After: "After date", On: "On" } } }, Ys = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Gs = {
4168
4189
  Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
4169
- Day: Fs,
4170
- Month: Ms,
4171
- FilterBuilder: Vs,
4172
- Generic: Us
4190
+ Day: Us,
4191
+ Month: Bs,
4192
+ FilterBuilder: Ws,
4193
+ Generic: Ys
4173
4194
  };
4174
- function Yr(t, e) {
4175
- return new RegExp(Ws(t), e);
4195
+ function Gr(t, e) {
4196
+ return new RegExp(qs(t), e);
4176
4197
  }
4177
- function Ws(t) {
4198
+ function qs(t) {
4178
4199
  return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4179
4200
  }
4180
- const Ys = (t, e, r) => {
4201
+ const zs = (t, e, r) => {
4181
4202
  let n = t;
4182
4203
  return isNaN(n) || (e != null && (n = Math.max(n, e)), r != null && (n = Math.min(n, r))), n;
4183
- }, Gs = (t, e) => {
4204
+ }, Hs = (t, e) => {
4184
4205
  const n = Intl.NumberFormat(t).formatToParts(1000.1), s = n.find((a) => a.type === "group")?.value ?? ",", o = e ?? n.find((a) => a.type === "decimal")?.value ?? ".";
4185
4206
  return { groupingChar: s, decimalChar: o };
4186
4207
  };
4187
- function qs(t, e, r, n) {
4208
+ function Ks(t, e, r, n) {
4188
4209
  let s = e;
4189
- const o = Ks(t, r);
4210
+ const o = Qs(t, r);
4190
4211
  if (!s) {
4191
4212
  const i = Math.abs(o);
4192
4213
  i - Math.floor(i) ? s = "0,0.00" : s = "0,0";
4193
4214
  }
4194
- const a = Js(s);
4215
+ const a = Zs(s);
4195
4216
  return new Intl.NumberFormat(n, a).format(o);
4196
4217
  }
4197
- const zs = (t, e, r) => {
4218
+ const Js = (t, e, r) => {
4198
4219
  const n = t.lastIndexOf(r);
4199
4220
  if (n !== -1) return t.length - n - 1;
4200
4221
  const s = r === "." ? "," : ".", o = t.lastIndexOf(s);
4201
4222
  return o !== -1 && !(s === e && t.length - o - 1 === 3) ? t.length - o - 1 : 0;
4202
- }, Hs = (t, e, r) => {
4223
+ }, Xs = (t, e, r) => {
4203
4224
  if (!t) return NaN;
4204
4225
  let n = t.replace(/\s/g, ""), s = r;
4205
4226
  const o = (n.match(/\./g) || []).length, a = (n.match(/,/g) || []).length;
@@ -4212,18 +4233,18 @@ const zs = (t, e, r) => {
4212
4233
  const i = s === "." ? "," : ".";
4213
4234
  return n = n.replace(new RegExp(`\\${i}`, "g"), ""), s !== "." && (n = n.replace(new RegExp(`\\${s}`, "g"), ".")), parseFloat(n);
4214
4235
  };
4215
- function Ks(t, e, r, n, s) {
4236
+ function Qs(t, e, r, n, s) {
4216
4237
  let o = t;
4217
4238
  if (typeof o != "number") {
4218
4239
  let i;
4219
4240
  e && n === void 0 ? i = "," : i = ".";
4220
4241
  const l = i == "." ? "," : ".";
4221
- o = o.replace(Yr(l, "g"), ""), o = o.replace(Yr(i, "g"), "."), o = Number(o);
4242
+ o = o.replace(Gr(l, "g"), ""), o = o.replace(Gr(i, "g"), "."), o = Number(o);
4222
4243
  }
4223
4244
  const a = Number(o);
4224
4245
  return isNaN(a) ? NaN : a;
4225
4246
  }
4226
- function Js(t) {
4247
+ function Zs(t) {
4227
4248
  const e = {};
4228
4249
  t.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
4229
4250
  const r = t.indexOf(".");
@@ -4253,7 +4274,7 @@ fe.init({
4253
4274
  default:
4254
4275
  case "number": {
4255
4276
  const o = n?.inputIsLocalized ?? !1;
4256
- return qs(t, e, o, r);
4277
+ return Ks(t, e, o, r);
4257
4278
  }
4258
4279
  }
4259
4280
  } catch {
@@ -4263,31 +4284,31 @@ fe.init({
4263
4284
  },
4264
4285
  resources: {
4265
4286
  en: {
4266
- translation: Bs
4287
+ translation: Gs
4267
4288
  },
4268
4289
  it: {
4269
- translation: Ps
4290
+ translation: Vs
4270
4291
  }
4271
4292
  }
4272
4293
  });
4273
- const Xs = (t, e, r, n) => fe.format(t, e, r || fe.language, n), Qs = (t, e) => fe.t(t, e);
4294
+ const eo = (t, e, r, n) => fe.format(t, e, r || fe.language, n), to = (t, e) => fe.t(t, e);
4274
4295
  function Re() {
4275
4296
  const t = oe(
4276
- (n, s, o, a) => Xs(n, s, o || void 0, a),
4297
+ (n, s, o, a) => eo(n, s, o || void 0, a),
4277
4298
  []
4278
4299
  ), e = oe(() => fe.languages[0], []), r = oe(
4279
- (n, s) => Qs(n, s),
4300
+ (n, s) => to(n, s),
4280
4301
  []
4281
4302
  );
4282
4303
  return { format: t, getCurrentLanguage: e, translate: r };
4283
4304
  }
4284
- var je = /* @__PURE__ */ ((t) => (t.CALENDAR_FOR = "Date.CalendarFor", t.CLOSE = "Generic.Close", t.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", t.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", t.CONFIRM_BUTTON = "Generic.ConfirmButton", t.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", t))(je || {}), be = /* @__PURE__ */ ((t) => (t.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", t.ADD_FILTER = "FilterBuilder.AddFilter", t.STRING_STARTS = "FilterBuilder.Operator.String.Starts", t.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", t.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", t.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", t.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", t.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", t.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", t.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", t.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", t.DATE_BEFORE = "FilterBuilder.Operator.Date.Before", t.DATE_AFTER = "FilterBuilder.Operator.Date.After", t.DATE_ON = "FilterBuilder.Operator.Date.On", t))(be || {}), ge = /* @__PURE__ */ ((t) => (t.MONDAY = "Day.Monday", t.MONDAY_SHORT = "Day.MondayShort", t.TUESDAY = "Day.Tuesday", t.TUESDAY_SHORT = "Day.TuesdayShort", t.WEDNESDAY = "Day.Wednesday", t.WEDNESDAY_SHORT = "Day.WednesdayShort", t.THURSDAY = "Day.Thursday", t.THURSDAY_SHORT = "Day.ThursdayShort", t.FRIDAY = "Day.Friday", t.FRIDAY_SHORT = "Day.FridayShort", t.SATURDAY = "Day.Saturday", t.SATURDAY_SHORT = "Day.SaturdayShort", t.SUNDAY = "Day.Sunday", t.SUNDAY_SHORT = "Day.SundayShort", t))(ge || {}), xe = /* @__PURE__ */ ((t) => (t.JANUARY = "Month.January", t.FEBRUARY = "Month.February", t.MARCH = "Month.March", t.APRIL = "Month.April", t.MAY = "Month.May", t.JUNE = "Month.June", t.JULY = "Month.July", t.AUGUST = "Month.August", t.SEPTEMBER = "Month.September", t.OCTOBER = "Month.October", t.NOVEMBER = "Month.November", t.DECEMBER = "Month.December", t))(xe || {}), zt = /* @__PURE__ */ ((t) => (t.PREVIOUS_DAY = "Date.PreviousDay", t.PREVIOUS_WEEK = "Date.PreviousWeek", t.PREVIOUS_MONTH = "Date.PreviousMonth", t.PREVIOUS_YEAR = "Date.PreviousYear", t.NEXT_DAY = "Date.NextDay", t.NEXT_WEEK = "Date.NextWeek", t.NEXT_MONTH = "Date.NextMonth", t.NEXT_YEAR = "Date.NextYear", t.YESTERDAY = "Date.Yesterday", t.TODAY = "Date.Today", t.TOMORROW = "Date.Tomorrow", t))(zt || {});
4285
- const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDataTable", ht = {
4305
+ var je = /* @__PURE__ */ ((t) => (t.CALENDAR_FOR = "Date.CalendarFor", t.CLOSE = "Generic.Close", t.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", t.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", t.CONFIRM_BUTTON = "Generic.ConfirmButton", t.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", t))(je || {}), be = /* @__PURE__ */ ((t) => (t.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", t.ADD_FILTER = "FilterBuilder.AddFilter", t.STRING_STARTS = "FilterBuilder.Operator.String.Starts", t.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", t.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", t.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", t.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", t.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", t.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", t.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", t.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", t.DATE_BEFORE = "FilterBuilder.Operator.Date.Before", t.DATE_AFTER = "FilterBuilder.Operator.Date.After", t.DATE_ON = "FilterBuilder.Operator.Date.On", t))(be || {}), ge = /* @__PURE__ */ ((t) => (t.MONDAY = "Day.Monday", t.MONDAY_SHORT = "Day.MondayShort", t.TUESDAY = "Day.Tuesday", t.TUESDAY_SHORT = "Day.TuesdayShort", t.WEDNESDAY = "Day.Wednesday", t.WEDNESDAY_SHORT = "Day.WednesdayShort", t.THURSDAY = "Day.Thursday", t.THURSDAY_SHORT = "Day.ThursdayShort", t.FRIDAY = "Day.Friday", t.FRIDAY_SHORT = "Day.FridayShort", t.SATURDAY = "Day.Saturday", t.SATURDAY_SHORT = "Day.SaturdayShort", t.SUNDAY = "Day.Sunday", t.SUNDAY_SHORT = "Day.SundayShort", t))(ge || {}), xe = /* @__PURE__ */ ((t) => (t.JANUARY = "Month.January", t.FEBRUARY = "Month.February", t.MARCH = "Month.March", t.APRIL = "Month.April", t.MAY = "Month.May", t.JUNE = "Month.June", t.JULY = "Month.July", t.AUGUST = "Month.August", t.SEPTEMBER = "Month.September", t.OCTOBER = "Month.October", t.NOVEMBER = "Month.November", t.DECEMBER = "Month.December", t))(xe || {}), Ht = /* @__PURE__ */ ((t) => (t.PREVIOUS_DAY = "Date.PreviousDay", t.PREVIOUS_WEEK = "Date.PreviousWeek", t.PREVIOUS_MONTH = "Date.PreviousMonth", t.PREVIOUS_YEAR = "Date.PreviousYear", t.NEXT_DAY = "Date.NextDay", t.NEXT_WEEK = "Date.NextWeek", t.NEXT_MONTH = "Date.NextMonth", t.NEXT_YEAR = "Date.NextYear", t.YESTERDAY = "Date.Yesterday", t.TODAY = "Date.Today", t.TOMORROW = "Date.Tomorrow", t))(Ht || {});
4306
+ const ro = (t) => t?.type === "SmeupDataTree", no = (t) => t?.type === "SmeupDataTable", ht = {
4286
4307
  obj: { t: "", p: "", k: "" },
4287
4308
  decode: "",
4288
4309
  shape: void 0
4289
4310
  }, Ge = (t) => {
4290
- if (eo(t)) {
4311
+ if (no(t)) {
4291
4312
  const e = t, r = e.columns.filter((o) => o.visible !== !1), n = r[0]?.name ?? "", s = r[1]?.name ?? n;
4292
4313
  return e.rows.reduce((o, a) => {
4293
4314
  const i = {
@@ -4296,13 +4317,13 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4296
4317
  };
4297
4318
  return [...o, i];
4298
4319
  }, []);
4299
- } else if (Zs(t))
4300
- return ln(t.children ?? []);
4301
- }, ln = (t) => t?.map((e) => ({
4320
+ } else if (ro(t))
4321
+ return un(t.children ?? []);
4322
+ }, un = (t) => t?.map((e) => ({
4302
4323
  ...e,
4303
4324
  decode: e.decode || e.value || e.obj?.k || "",
4304
- children: ln(e.children ?? [])
4305
- })), cn = ({
4325
+ children: un(e.children ?? [])
4326
+ })), dn = ({
4306
4327
  bindValue: t,
4307
4328
  optionalDisplayValue: e,
4308
4329
  options: r,
@@ -4318,16 +4339,16 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4318
4339
  _multiActiveIndex: f,
4319
4340
  ...g
4320
4341
  }) => {
4321
- const h = ue(null), [b, x] = z(t), [w, _] = z(e), { translate: v } = Re(), [T, y] = z(!1), [R, O] = z(
4342
+ const h = ue(null), [b, x] = z(t), [w, _] = z(e), { translate: v } = Re(), [C, y] = z(!1), [R, O] = z(
4322
4343
  r || []
4323
- ), [F, W] = z(0), [k, C] = z([t]), { anchorRef: E, targetRef: A, anchorWidth: I } = $e({
4344
+ ), [F, W] = z(0), [k, T] = z([t]), { anchorRef: E, targetRef: A, anchorWidth: I } = $e({
4324
4345
  position: "bottom",
4325
- open: T
4346
+ open: C
4326
4347
  }), V = oe(() => {
4327
4348
  y(!1), h?.current?.focus();
4328
4349
  }, []);
4329
- nt([A], T, () => V());
4330
- const U = rn(400), X = (D) => {
4350
+ nt([A], C, () => V());
4351
+ const U = nn(400), X = (D) => {
4331
4352
  D.length >= o ? N(D) : V(), x(D), _(""), l || c?.(D, e);
4332
4353
  }, N = (D) => {
4333
4354
  U(async () => {
@@ -4337,17 +4358,17 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4337
4358
  }
4338
4359
  });
4339
4360
  }, j = () => {
4340
- T || u?.();
4361
+ C || u?.();
4341
4362
  }, m = (D) => {
4342
4363
  l ? (x(""), _("")) : (x(D.obj?.k), _(D.decode)), c?.(D.obj?.k, D.decode);
4343
4364
  const $ = R.findIndex(
4344
4365
  (P) => P.obj?.k === D.obj?.k
4345
4366
  );
4346
- W($), C([D.obj?.k]), V();
4367
+ W($), T([D.obj?.k]), V();
4347
4368
  }, S = (D) => {
4348
4369
  D.key === "Escape" && (V(), W(-1));
4349
4370
  }, L = (D) => {
4350
- if ((D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), T)) {
4371
+ if ((D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), C)) {
4351
4372
  const $ = D.key === "ArrowDown" ? (F + 1) % R.length : (F - 1 + R.length) % R.length;
4352
4373
  W($);
4353
4374
  }
@@ -4382,8 +4403,8 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4382
4403
  "aria-autocomplete": "list"
4383
4404
  }
4384
4405
  ),
4385
- T && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
4386
- er,
4406
+ C && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
4407
+ tr,
4387
4408
  {
4388
4409
  options: R,
4389
4410
  displayMode: n,
@@ -4394,12 +4415,12 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4394
4415
  width: I,
4395
4416
  showFilter: !1,
4396
4417
  onKeyDown: S,
4397
- isOpen: T,
4418
+ isOpen: C,
4398
4419
  floating: !0
4399
4420
  }
4400
4421
  ) })
4401
4422
  ] });
4402
- }, to = ({
4423
+ }, so = ({
4403
4424
  options: t,
4404
4425
  fun: e,
4405
4426
  direction: r = "row",
@@ -4429,7 +4450,7 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4429
4450
  }, [b, e, h]);
4430
4451
  const w = {
4431
4452
  container: `smp-button-list smp-button-list-${r} smp-justifyContent-${n}`
4432
- }, _ = b?.map((v, T) => {
4453
+ }, _ = b?.map((v, C) => {
4433
4454
  const y = {
4434
4455
  bindValue: v.obj.k,
4435
4456
  optionalDisplayValue: v.decode,
@@ -4448,12 +4469,12 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4448
4469
  g?.(v.obj.k, v.fun);
4449
4470
  }
4450
4471
  };
4451
- return /* @__PURE__ */ p.jsx(me, { ...y }, `button-${T}`);
4472
+ return /* @__PURE__ */ p.jsx(me, { ...y }, `button-${C}`);
4452
4473
  });
4453
4474
  return /* @__PURE__ */ p.jsx("div", { role: "list", "data-component": "button-list", className: w.container, children: _ });
4454
- }, ro = {
4475
+ }, oo = {
4455
4476
  "smp-checkbox-wrapper": "_smp-checkbox-wrapper_d8uan_2"
4456
- }, rr = ({
4477
+ }, nr = ({
4457
4478
  bindValue: t,
4458
4479
  _dataComponent: e = "checkbox",
4459
4480
  disabled: r,
@@ -4467,7 +4488,7 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4467
4488
  const c = ke(), d = (f) => {
4468
4489
  s && o && o(f.target.checked);
4469
4490
  }, u = {
4470
- wrapper: `${ro["smp-checkbox-wrapper"]}`
4491
+ wrapper: `${oo["smp-checkbox-wrapper"]}`
4471
4492
  };
4472
4493
  return /* @__PURE__ */ p.jsxs("div", { className: u.wrapper, "data-component": e, children: [
4473
4494
  n && /* @__PURE__ */ p.jsx(Le, { label: n, disabled: r, htmlFor: c, helper: l.helper }),
@@ -4485,7 +4506,7 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
4485
4506
  )
4486
4507
  ] });
4487
4508
  };
4488
- function nr(t, e) {
4509
+ function sr(t, e) {
4489
4510
  const r = ue(null);
4490
4511
  re(() => {
4491
4512
  if (!t) return;
@@ -4523,7 +4544,7 @@ function nr(t, e) {
4523
4544
  };
4524
4545
  }, [t, e]);
4525
4546
  }
4526
- const Ht = ({
4547
+ const Kt = ({
4527
4548
  bindValue: t,
4528
4549
  onChange: e,
4529
4550
  options: r = [],
@@ -4535,13 +4556,13 @@ const Ht = ({
4535
4556
  multiActiveIndex: l,
4536
4557
  ...c
4537
4558
  }) => {
4538
- const d = ue(null), [u, f] = z(!1), [g, h] = z(r), [b, x] = z(-1), [w, _] = z([t]), v = ke(), { anchorRef: T, targetRef: y, anchorWidth: R } = $e({
4559
+ const d = ue(null), [u, f] = z(!1), [g, h] = z(r), [b, x] = z(-1), [w, _] = z([t]), v = ke(), { anchorRef: C, targetRef: y, anchorWidth: R } = $e({
4539
4560
  position: "bottom",
4540
4561
  open: u
4541
4562
  }), O = oe(() => {
4542
4563
  f(!1), d?.current?.focus();
4543
4564
  }, []);
4544
- nt([y, T], u, () => O()), nr(u, y);
4565
+ nt([y, C], u, () => O()), sr(u, y);
4545
4566
  const F = (E) => {
4546
4567
  e?.(E.obj.k, E.decode);
4547
4568
  const A = g.findIndex((I) => I.obj.k === E.obj.k);
@@ -4549,8 +4570,8 @@ const Ht = ({
4549
4570
  }, W = (E) => {
4550
4571
  E.key === "Escape" && (O(), x(-1));
4551
4572
  }, k = (E) => {
4552
- (E.key === "ArrowDown" || E.key === "ArrowUp") && (E.preventDefault(), C());
4553
- }, C = () => {
4573
+ (E.key === "ArrowDown" || E.key === "ArrowUp") && (E.preventDefault(), T());
4574
+ }, T = () => {
4554
4575
  s && (a && i ? u ? f(!1) : i(a, void 0).then((E) => {
4555
4576
  const A = Ge(E) || [];
4556
4577
  h(A), x(A.length > 0 ? 0 : -1), f(!0);
@@ -4571,20 +4592,20 @@ const Ht = ({
4571
4592
  ...c,
4572
4593
  bindValue: t,
4573
4594
  optionalDisplayValue: n,
4574
- onShapeIconClick: C,
4595
+ onShapeIconClick: T,
4575
4596
  onKeyDown: k,
4576
- onClick: C,
4597
+ onClick: T,
4577
4598
  shapeIcon: "arrow_drop_down",
4578
4599
  rotatedShapeIcon: u,
4579
4600
  isEditable: s,
4580
- ref: T,
4601
+ ref: C,
4581
4602
  inputRef: d,
4582
4603
  "aria-autocomplete": "list",
4583
4604
  variant: "notSelectable"
4584
4605
  }
4585
4606
  ),
4586
4607
  u && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
4587
- er,
4608
+ tr,
4588
4609
  {
4589
4610
  id: v,
4590
4611
  options: g,
@@ -4602,10 +4623,10 @@ const Ht = ({
4602
4623
  ]
4603
4624
  }
4604
4625
  );
4605
- }, no = {
4626
+ }, ao = {
4606
4627
  "smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
4607
4628
  };
4608
- function so({
4629
+ function io({
4609
4630
  selectedDate: t,
4610
4631
  onDateChange: e,
4611
4632
  disabledDateRanges: r = [],
@@ -4666,11 +4687,11 @@ function so({
4666
4687
  value: o(ge.SATURDAY_SHORT),
4667
4688
  full: o(ge.SATURDAY)
4668
4689
  }
4669
- ], T = (j) => r.some((m) => {
4690
+ ], C = (j) => r.some((m) => {
4670
4691
  const S = m.start.getTime(), L = m.end.getTime(), D = j.getTime();
4671
4692
  return D >= S && D <= L;
4672
4693
  }), y = (j) => {
4673
- T(j) || (c(j), b(j.getDate()), e && e(ps(j)));
4694
+ C(j) || (c(j), b(j.getDate()), e && e(ms(j)));
4674
4695
  }, R = () => {
4675
4696
  d === 0 ? (u(11), g(f - 1)) : u(d - 1), b(1);
4676
4697
  }, O = () => {
@@ -4680,7 +4701,7 @@ function so({
4680
4701
  (S) => S !== null && S.getDate() === j
4681
4702
  );
4682
4703
  m !== -1 && w.current[m] && (w.current[m]?.focus(), b(j));
4683
- }, C = (j, m) => {
4704
+ }, T = (j, m) => {
4684
4705
  const S = I[m];
4685
4706
  if (!S) return;
4686
4707
  const L = F(f, d), D = S.getDate();
@@ -4696,7 +4717,7 @@ function so({
4696
4717
  }, 0);
4697
4718
  return;
4698
4719
  }
4699
- T(P) ? E($, "forward") : k($);
4720
+ C(P) ? E($, "forward") : k($);
4700
4721
  }
4701
4722
  break;
4702
4723
  case "Tab":
@@ -4712,7 +4733,7 @@ function so({
4712
4733
  }, 0);
4713
4734
  return;
4714
4735
  }
4715
- T(P) ? E($, "backward") : k($);
4736
+ C(P) ? E($, "backward") : k($);
4716
4737
  }
4717
4738
  break;
4718
4739
  case "ArrowUp":
@@ -4726,7 +4747,7 @@ function so({
4726
4747
  }, 0);
4727
4748
  return;
4728
4749
  }
4729
- T(P) ? E($, "backward") : k($);
4750
+ C(P) ? E($, "backward") : k($);
4730
4751
  }
4731
4752
  break;
4732
4753
  case "ArrowDown":
@@ -4740,7 +4761,7 @@ function so({
4740
4761
  }, 0);
4741
4762
  return;
4742
4763
  }
4743
- T(P) ? E($, "forward") : k($);
4764
+ C(P) ? E($, "forward") : k($);
4744
4765
  }
4745
4766
  break;
4746
4767
  case "Home":
@@ -4769,7 +4790,7 @@ function so({
4769
4790
  break;
4770
4791
  case " ":
4771
4792
  case "Space":
4772
- if (T(S)) return;
4793
+ if (C(S)) return;
4773
4794
  b(S.getDate()), c(S);
4774
4795
  break;
4775
4796
  case "Enter":
@@ -4781,7 +4802,7 @@ function so({
4781
4802
  if (m === "forward") {
4782
4803
  for (let L = j; L <= S; L++) {
4783
4804
  const D = new Date(f, d, L);
4784
- if (!T(D)) {
4805
+ if (!C(D)) {
4785
4806
  k(L);
4786
4807
  return;
4787
4808
  }
@@ -4792,7 +4813,7 @@ function so({
4792
4813
  } else {
4793
4814
  for (let P = j; P >= 1; P--) {
4794
4815
  const G = new Date(f, d, P);
4795
- if (!T(G)) {
4816
+ if (!C(G)) {
4796
4817
  k(P);
4797
4818
  return;
4798
4819
  }
@@ -4829,7 +4850,7 @@ function so({
4829
4850
  }, [d, f, h, I]);
4830
4851
  const X = {
4831
4852
  label: "smp-datepickercalendar-label",
4832
- wrapper: `smp-datepickercalendar ${no["smp-datepickercalendar-position"]}`,
4853
+ wrapper: `smp-datepickercalendar ${ao["smp-datepickercalendar-position"]}`,
4833
4854
  calendar: "smp-datepickercalendar",
4834
4855
  table: "smp-datepickercalendar-table",
4835
4856
  th: "smp-datepickercalendar-th",
@@ -4863,7 +4884,7 @@ function so({
4863
4884
  me,
4864
4885
  {
4865
4886
  onClick: R,
4866
- ariaLabel: o(zt.PREVIOUS_MONTH),
4887
+ ariaLabel: o(Ht.PREVIOUS_MONTH),
4867
4888
  optionalDisplayValue: "<",
4868
4889
  appearance: "ghost",
4869
4890
  variant: "base",
@@ -4882,7 +4903,7 @@ function so({
4882
4903
  me,
4883
4904
  {
4884
4905
  onClick: O,
4885
- ariaLabel: o(zt.NEXT_MONTH),
4906
+ ariaLabel: o(Ht.NEXT_MONTH),
4886
4907
  bindValue: ">",
4887
4908
  optionalDisplayValue: ">",
4888
4909
  appearance: "ghost",
@@ -4925,7 +4946,7 @@ function so({
4925
4946
  },
4926
4947
  `empty-${L}`
4927
4948
  );
4928
- const $ = S.getDate() === i.getDate() && S.getMonth() === i.getMonth() && S.getFullYear() === i.getFullYear(), P = l && S.getDate() === l.getDate() && S.getMonth() === l.getMonth() && S.getFullYear() === l.getFullYear(), G = h === S.getDate(), q = T(S);
4949
+ const $ = S.getDate() === i.getDate() && S.getMonth() === i.getMonth() && S.getFullYear() === i.getFullYear(), P = l && S.getDate() === l.getDate() && S.getMonth() === l.getMonth() && S.getFullYear() === l.getFullYear(), G = h === S.getDate(), q = C(S);
4929
4950
  return /* @__PURE__ */ p.jsx(
4930
4951
  "td",
4931
4952
  {
@@ -4933,7 +4954,7 @@ function so({
4933
4954
  "aria-selected": P,
4934
4955
  tabIndex: G ? 0 : -1,
4935
4956
  onClick: () => y(S),
4936
- onKeyDown: (Y) => C(Y, D),
4957
+ onKeyDown: (Y) => T(Y, D),
4937
4958
  "aria-label": `${S.getDate()} ${_[S.getMonth()]} ${S.getFullYear()}`,
4938
4959
  "data-selected": P,
4939
4960
  "aria-disabled": q,
@@ -4958,7 +4979,7 @@ function so({
4958
4979
  }
4959
4980
  );
4960
4981
  }
4961
- const sr = ({
4982
+ const or = ({
4962
4983
  bindValue: t,
4963
4984
  optionalDisplayValue: e,
4964
4985
  label: r,
@@ -4989,7 +5010,7 @@ const sr = ({
4989
5010
  style: s
4990
5011
  }
4991
5012
  );
4992
- }, un = ({
5013
+ }, fn = ({
4993
5014
  bindValue: t,
4994
5015
  placeholder: e,
4995
5016
  onChange: r,
@@ -5006,38 +5027,38 @@ const sr = ({
5006
5027
  }, []);
5007
5028
  nt([b, h], l, () => {
5008
5029
  x();
5009
- }), nr(l, b);
5030
+ }), sr(l, b);
5010
5031
  const { format: w, getCurrentLanguage: _ } = Re(), v = oe(
5011
5032
  (k) => {
5012
- const C = k.length > 5 && us(k, _()) || k, E = w(C, void 0, void 0, {
5033
+ const T = k.length > 5 && fs(k, _()) || k, E = w(T, void 0, void 0, {
5013
5034
  type: "date"
5014
- }), A = typeof C != "string", I = A && C.toISOString().substring(0, 10) || "";
5035
+ }), A = typeof T != "string", I = A && T.toISOString().substring(0, 10) || "";
5015
5036
  return {
5016
5037
  isValid: A,
5017
5038
  formattedDate: E,
5018
5039
  isoDate: I,
5019
- normalizedDate: C
5040
+ normalizedDate: T
5020
5041
  };
5021
5042
  },
5022
5043
  [_, w]
5023
5044
  );
5024
5045
  re(() => {
5025
- const { formattedDate: k, isoDate: C, isValid: E } = v(t);
5026
- u(E && C || t), g(E && k || t);
5046
+ const { formattedDate: k, isoDate: T, isValid: E } = v(t);
5047
+ u(E && T || t), g(E && k || t);
5027
5048
  }, [t, w, v]);
5028
- const T = () => c((k) => !k), y = () => {
5049
+ const C = () => c((k) => !k), y = () => {
5029
5050
  O(f);
5030
5051
  }, R = (k) => {
5031
5052
  O(k), x();
5032
5053
  }, O = (k) => {
5033
- const { isoDate: C, isValid: E } = v(k);
5034
- r && r(E && C || k);
5054
+ const { isoDate: T, isValid: E } = v(k);
5055
+ r && r(E && T || k);
5035
5056
  }, F = (k) => {
5036
5057
  g(k);
5037
5058
  }, W = (k) => {
5038
5059
  k.key === "Enter" && (k.preventDefault(), O(f));
5039
5060
  };
5040
- return /* @__PURE__ */ p.jsx("div", { "data-component": "date-picker", children: o ? /* @__PURE__ */ p.jsx(sr, { bindValue: f }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
5061
+ return /* @__PURE__ */ p.jsx("div", { "data-component": "date-picker", children: o ? /* @__PURE__ */ p.jsx(or, { bindValue: f }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
5041
5062
  /* @__PURE__ */ p.jsx(
5042
5063
  _e,
5043
5064
  {
@@ -5048,7 +5069,7 @@ const sr = ({
5048
5069
  onChange: F,
5049
5070
  onKeyDown: W,
5050
5071
  shapeIcon: "calendar",
5051
- onShapeIconClick: T,
5072
+ onShapeIconClick: C,
5052
5073
  ref: h,
5053
5074
  inputRef: i,
5054
5075
  isEditable: s,
@@ -5057,16 +5078,16 @@ const sr = ({
5057
5078
  }
5058
5079
  ),
5059
5080
  l && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
5060
- so,
5081
+ io,
5061
5082
  {
5062
5083
  disabledDateRanges: n,
5063
5084
  onDateChange: R,
5064
- initialValue: tr(d) && d || "",
5085
+ initialValue: rr(d) && d || "",
5065
5086
  targetRef: b
5066
5087
  }
5067
5088
  ) })
5068
5089
  ] }) });
5069
- }, dn = ({
5090
+ }, pn = ({
5070
5091
  elements: t,
5071
5092
  isEditable: e = !1,
5072
5093
  displayMode: r = "Both",
@@ -5129,7 +5150,7 @@ const sr = ({
5129
5150
  ) : null;
5130
5151
  return [x, w].filter(Boolean);
5131
5152
  }) });
5132
- }, oo = ({
5153
+ }, lo = ({
5133
5154
  elements: t,
5134
5155
  displayMode: e,
5135
5156
  minimumChars: r,
@@ -5147,19 +5168,19 @@ const sr = ({
5147
5168
  ...h
5148
5169
  }) => {
5149
5170
  const b = t.map((_) => _.bindValue), x = (_, v) => {
5150
- const T = [...t];
5171
+ const C = [...t];
5151
5172
  if (_ == "")
5152
- T.pop();
5173
+ C.pop();
5153
5174
  else {
5154
- const y = T.findIndex(
5175
+ const y = C.findIndex(
5155
5176
  (R) => R.bindValue === _ && R.optionalDisplayValue === v
5156
5177
  );
5157
- y >= 0 ? T.splice(y, 1) : T.push({
5178
+ y >= 0 ? C.splice(y, 1) : C.push({
5158
5179
  bindValue: _,
5159
5180
  optionalDisplayValue: v
5160
5181
  });
5161
5182
  }
5162
- u?.(T);
5183
+ u?.(C);
5163
5184
  }, w = {
5164
5185
  container: "smp-multipleAutocomplete-container"
5165
5186
  };
@@ -5171,7 +5192,7 @@ const sr = ({
5171
5192
  children: [
5172
5193
  a && /* @__PURE__ */ p.jsx(Le, { label: a, disabled: i, helper: h.helper }),
5173
5194
  /* @__PURE__ */ p.jsx(
5174
- dn,
5195
+ pn,
5175
5196
  {
5176
5197
  elements: t,
5177
5198
  displayMode: e,
@@ -5182,7 +5203,7 @@ const sr = ({
5182
5203
  }
5183
5204
  ),
5184
5205
  g && /* @__PURE__ */ p.jsx(
5185
- cn,
5206
+ dn,
5186
5207
  {
5187
5208
  ...h,
5188
5209
  bindValue: "",
@@ -5202,7 +5223,7 @@ const sr = ({
5202
5223
  ]
5203
5224
  }
5204
5225
  );
5205
- }, ao = ({ ...t }) => {
5226
+ }, co = ({ ...t }) => {
5206
5227
  const [e, r] = z(!1), n = e ? "visibility-off" : "visibility";
5207
5228
  return /* @__PURE__ */ p.jsx(
5208
5229
  _e,
@@ -5215,7 +5236,7 @@ const sr = ({
5215
5236
  "data-component": "password"
5216
5237
  }
5217
5238
  );
5218
- }, io = ({ ...t }) => {
5239
+ }, uo = ({ ...t }) => {
5219
5240
  const [e, r] = z(t.bindValue), { translate: n } = Re(), s = (a) => {
5220
5241
  a.key === "Enter" && (a.preventDefault(), t.onEnter?.(e));
5221
5242
  }, o = (a) => {
@@ -5271,13 +5292,13 @@ const Pe = (t, e, r) => ({
5271
5292
  shape: t.shape,
5272
5293
  fun: t.fun,
5273
5294
  data: t.data
5274
- }), lo = (t) => {
5295
+ }), fo = (t) => {
5275
5296
  const e = Me.fromDataObj(t.obj), r = t.decode ? Me.fromString(t.decode).getValue() : [];
5276
5297
  return e.getValue().map((n, s) => ({
5277
5298
  bindValue: n,
5278
5299
  optionalDisplayValue: r.length >= s ? r[s] : ""
5279
5300
  }));
5280
- }, co = (t, e) => {
5301
+ }, po = (t, e) => {
5281
5302
  const r = new Me(
5282
5303
  t.obj,
5283
5304
  e.map((s) => s.bindValue)
@@ -5286,7 +5307,7 @@ const Pe = (t, e, r) => ({
5286
5307
  e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
5287
5308
  ).getLegacyValue();
5288
5309
  return Pe(t, r, n);
5289
- }, fn = ({
5310
+ }, hn = ({
5290
5311
  min: t,
5291
5312
  max: e,
5292
5313
  step: r = 1,
@@ -5299,7 +5320,7 @@ const Pe = (t, e, r) => ({
5299
5320
  ...c
5300
5321
  }) => {
5301
5322
  const { getCurrentLanguage: d } = Re(), u = ue(null), f = d(), { groupingChar: g, decimalChar: h } = Qe(
5302
- () => Gs(f, s),
5323
+ () => Hs(f, s),
5303
5324
  [f, s]
5304
5325
  ), b = oe(
5305
5326
  (A, I) => new Intl.NumberFormat(f, {
@@ -5308,7 +5329,7 @@ const Pe = (t, e, r) => ({
5308
5329
  useGrouping: !0
5309
5330
  }).format(A),
5310
5331
  [f]
5311
- ), x = oe(Hs, [g, h]), w = oe(Ys, [t, e]), _ = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [v, T] = z(_), [y, R] = z(
5332
+ ), x = oe(Xs, [g, h]), w = oe(zs, [t, e]), _ = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [v, C] = z(_), [y, R] = z(
5312
5333
  o != null ? b(o, v) : ""
5313
5334
  ), O = ue(o ?? null);
5314
5335
  re(() => {
@@ -5317,7 +5338,7 @@ const Pe = (t, e, r) => ({
5317
5338
  return;
5318
5339
  }
5319
5340
  const A = o.toString().includes(".") ? o.toString().split(".")[1].length : 0, I = A === 0 ? v : A;
5320
- I !== v && T(I), R(b(o, I)), O.current = o;
5341
+ I !== v && C(I), R(b(o, I)), O.current = o;
5321
5342
  }, [o, b]);
5322
5343
  const F = oe(
5323
5344
  (A, I = !1) => {
@@ -5333,12 +5354,12 @@ const Pe = (t, e, r) => ({
5333
5354
  } else
5334
5355
  R("");
5335
5356
  else {
5336
- const U = w(V, t, e), X = zs(
5357
+ const U = w(V, t, e), X = Js(
5337
5358
  A,
5338
5359
  g,
5339
5360
  h
5340
5361
  );
5341
- T(X);
5362
+ C(X);
5342
5363
  const N = b(U, X);
5343
5364
  R(N), O.current = U, a?.(U, N), I && i?.(U);
5344
5365
  }
@@ -5355,7 +5376,7 @@ const Pe = (t, e, r) => ({
5355
5376
  i,
5356
5377
  v
5357
5378
  ]
5358
- ), W = (A) => R(A), k = () => F(y), C = (A) => {
5379
+ ), W = (A) => R(A), k = () => F(y), T = (A) => {
5359
5380
  if (A.key === "Enter") {
5360
5381
  A.preventDefault(), F(y, !0);
5361
5382
  return;
@@ -5372,7 +5393,7 @@ const Pe = (t, e, r) => ({
5372
5393
  F(b(U, v));
5373
5394
  };
5374
5395
  return /* @__PURE__ */ p.jsx("div", { ref: u, "data-component": "input-number", onWheel: E, children: l ? /* @__PURE__ */ p.jsx(
5375
- sr,
5396
+ or,
5376
5397
  {
5377
5398
  bindValue: y,
5378
5399
  className: `smp-text-number${O.current != null && O.current < 0 ? " smp-text-negative" : ""}`
@@ -5392,7 +5413,7 @@ const Pe = (t, e, r) => ({
5392
5413
  step: r,
5393
5414
  onChange: W,
5394
5415
  onBlur: k,
5395
- onKeyDown: C
5416
+ onKeyDown: T
5396
5417
  }
5397
5418
  ) });
5398
5419
  };
@@ -5442,7 +5463,7 @@ class tt {
5442
5463
  return this.value;
5443
5464
  }
5444
5465
  }
5445
- const uo = ({
5466
+ const ho = ({
5446
5467
  disabled: t,
5447
5468
  bindValue: e,
5448
5469
  onChange: r,
@@ -5462,11 +5483,11 @@ const uo = ({
5462
5483
  cols: x = 35,
5463
5484
  ...w
5464
5485
  }) => {
5465
- const _ = ke(), v = `${_}-helper`, T = f ? "danger" : s, y = d || !!f, R = (F) => {
5486
+ const _ = ke(), v = `${_}-helper`, C = f ? "danger" : s, y = d || !!f, R = (F) => {
5466
5487
  r?.(F.target.value);
5467
5488
  }, O = {
5468
5489
  wrapper: "smp-textarea-wrapper",
5469
- container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${T ? `smp-textarea-${T}` : ""} ${o ? `smp-textarea-${o}` : ""} ${a ? "" : "smp-textarea-readOnly"}`
5490
+ container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${C ? `smp-textarea-${C}` : ""} ${o ? `smp-textarea-${o}` : ""} ${a ? "" : "smp-textarea-readOnly"}`
5470
5491
  };
5471
5492
  return /* @__PURE__ */ p.jsxs("div", { className: O.wrapper, "data-component": "textarea", children: [
5472
5493
  l && /* @__PURE__ */ p.jsx(
@@ -5500,17 +5521,17 @@ const uo = ({
5500
5521
  }
5501
5522
  ),
5502
5523
  y && /* @__PURE__ */ p.jsx(
5503
- Qt,
5524
+ Zt,
5504
5525
  {
5505
5526
  id: v,
5506
5527
  helperText: f,
5507
5528
  disabled: t,
5508
- state: T
5529
+ state: C
5509
5530
  }
5510
5531
  )
5511
5532
  ] });
5512
5533
  };
5513
- var Kt = /* @__PURE__ */ ((t) => (t.PAGE_DIRECTION = "pageDirection", t.LINE_DIRECTION = "lineDirection", t))(Kt || {});
5534
+ var Jt = /* @__PURE__ */ ((t) => (t.PAGE_DIRECTION = "pageDirection", t.LINE_DIRECTION = "lineDirection", t))(Jt || {});
5514
5535
  const Ue = {
5515
5536
  "smp-radio": "_smp-radio_1fqe8_1",
5516
5537
  "smp-radio-options-container": "_smp-radio-options-container_1fqe8_10",
@@ -5518,10 +5539,10 @@ const Ue = {
5518
5539
  "smp-radio-element": "_smp-radio-element_1fqe8_20",
5519
5540
  "smp-radio-disabled": "_smp-radio-disabled_1fqe8_26",
5520
5541
  "smp-radio-horizontal-grid": "_smp-radio-horizontal-grid_1fqe8_32"
5521
- }, fo = ({
5542
+ }, mo = ({
5522
5543
  disabled: t = !1,
5523
5544
  displayMode: e = "DescOnly",
5524
- RadLay: r = Kt.PAGE_DIRECTION,
5545
+ RadLay: r = Jt.PAGE_DIRECTION,
5525
5546
  RadCol: n,
5526
5547
  options: s,
5527
5548
  onOptionsRequest: o,
@@ -5537,7 +5558,7 @@ const Ue = {
5537
5558
  console.error("Error during loading options (radio)", y);
5538
5559
  });
5539
5560
  }, [c, o, a]);
5540
- const f = parseInt(n ?? "", 10), g = r === Kt.LINE_DIRECTION, h = g && !isNaN(f), b = h ? Ue["smp-radio-horizontal-grid"] : g ? Ue["smp-radio-horizontal"] : "", x = h ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0, w = {
5561
+ const f = parseInt(n ?? "", 10), g = r === Jt.LINE_DIRECTION, h = g && !isNaN(f), b = h ? Ue["smp-radio-horizontal-grid"] : g ? Ue["smp-radio-horizontal"] : "", x = h ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0, w = {
5541
5562
  container: Ue["smp-radio"],
5542
5563
  optionsContainer: `${Ue["smp-radio-options-container"]} ${b}`,
5543
5564
  option: `${Ue["smp-radio-element"]} ${t ? Ue["smp-radio-disabled"] : ""}`
@@ -5545,7 +5566,7 @@ const Ue = {
5545
5566
  t || l.onBlur?.();
5546
5567
  }, v = (y) => {
5547
5568
  t || l.onChange?.(y.obj.k, y.decode);
5548
- }, T = ke();
5569
+ }, C = ke();
5549
5570
  return /* @__PURE__ */ p.jsxs("div", { "smp-id": "radio-container", className: w.container, id: u, children: [
5550
5571
  i && /* @__PURE__ */ p.jsx(Le, { label: i, disabled: t, htmlFor: u, helper: l.helper }),
5551
5572
  /* @__PURE__ */ p.jsx("div", { className: w.optionsContainer, style: x, children: c?.map((y, R) => /* @__PURE__ */ p.jsxs("label", { className: w.option, children: [
@@ -5553,7 +5574,7 @@ const Ue = {
5553
5574
  "input",
5554
5575
  {
5555
5576
  type: "radio",
5556
- name: T,
5577
+ name: C,
5557
5578
  value: y.obj.k,
5558
5579
  disabled: t,
5559
5580
  checked: y.obj.k === l.bindValue,
@@ -5574,7 +5595,7 @@ const Ue = {
5574
5595
  )
5575
5596
  ] }, R)) })
5576
5597
  ] });
5577
- }, po = ({
5598
+ }, go = ({
5578
5599
  value: t,
5579
5600
  onChange: e,
5580
5601
  targetRef: r,
@@ -5624,18 +5645,18 @@ const Ue = {
5624
5645
  ]
5625
5646
  }
5626
5647
  );
5627
- }, Gr = (t) => {
5648
+ }, qr = (t) => {
5628
5649
  const e = t.match(/^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/);
5629
5650
  if (!e) return !1;
5630
5651
  const [, r, n, s] = e, o = parseInt(r, 10), a = parseInt(n, 10), i = s ? parseInt(s, 10) : 0;
5631
5652
  return o >= 0 && o <= 23 && a >= 0 && a <= 59 && (s === void 0 || i >= 0 && i <= 59);
5632
- }, ho = (t) => {
5653
+ }, bo = (t) => {
5633
5654
  const e = t.split(":").map((r) => parseInt(r, 10));
5634
5655
  return [e[0] || 0, e[1] || 0, e[2] || 0];
5635
- }, mo = (t, e, r) => {
5656
+ }, yo = (t, e, r) => {
5636
5657
  const n = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", o = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "";
5637
5658
  return n && s ? `${n}:${s}:${o}` : s ? `${s}:${o}` : o;
5638
- }, go = ({
5659
+ }, vo = ({
5639
5660
  bindValue: t,
5640
5661
  placeholder: e = "HH:MM:SS",
5641
5662
  onChange: r,
@@ -5648,8 +5669,8 @@ const Ue = {
5648
5669
  }), h = oe(() => {
5649
5670
  i(!1), o?.current?.focus();
5650
5671
  }, []);
5651
- nt([g, f], a, () => i(!1)), nr(a, g), re(() => {
5652
- const y = t || "", R = Gr(y) ? y : t || "";
5672
+ nt([g, f], a, () => i(!1)), sr(a, g), re(() => {
5673
+ const y = t || "", R = qr(y) ? y : t || "";
5653
5674
  c(y), u(R);
5654
5675
  }, [t]), re(() => {
5655
5676
  const y = (R) => {
@@ -5664,18 +5685,18 @@ const Ue = {
5664
5685
  }, x = (y) => {
5665
5686
  u(y);
5666
5687
  }, w = (y, R, O) => {
5667
- const F = mo(y, R, O);
5688
+ const F = yo(y, R, O);
5668
5689
  c(F), u(F), r?.(F), h();
5669
5690
  }, _ = () => {
5670
- T(d);
5691
+ C(d);
5671
5692
  }, v = (y) => {
5672
- y.key === "Enter" && (y.preventDefault(), T(d));
5673
- }, T = (y) => {
5693
+ y.key === "Enter" && (y.preventDefault(), C(d));
5694
+ }, C = (y) => {
5674
5695
  if (y.trim() === "") {
5675
5696
  c(""), u(""), r?.("");
5676
5697
  return;
5677
5698
  }
5678
- Gr(y) ? (c(y), u(y), r?.(y)) : u(y);
5699
+ qr(y) ? (c(y), u(y), r?.(y)) : u(y);
5679
5700
  };
5680
5701
  return /* @__PURE__ */ p.jsxs("div", { "data-component": "time-picker", children: [
5681
5702
  /* @__PURE__ */ p.jsx(
@@ -5695,9 +5716,9 @@ const Ue = {
5695
5716
  }
5696
5717
  ),
5697
5718
  a && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
5698
- po,
5719
+ go,
5699
5720
  {
5700
- value: ho(l),
5721
+ value: bo(l),
5701
5722
  onChange: w,
5702
5723
  targetRef: g,
5703
5724
  isOpen: a
@@ -5705,7 +5726,7 @@ const Ue = {
5705
5726
  ) })
5706
5727
  ] });
5707
5728
  };
5708
- function bo(t) {
5729
+ function xo(t) {
5709
5730
  return typeof t == "string" && /^\d{6}$/.test(t);
5710
5731
  }
5711
5732
  class Et {
@@ -5715,13 +5736,13 @@ class Et {
5715
5736
  this.class = e, this.time = r;
5716
5737
  }
5717
5738
  static fromDataObj(e) {
5718
- const r = qr.get(`${e.t}${e.p}`);
5739
+ const r = zr.get(`${e.t}${e.p}`);
5719
5740
  if (r)
5720
5741
  return new Et(e, r.legacyToIso(e.k));
5721
5742
  throw new Error(`time creation from ${e.t}${e.p} not implemented yet`);
5722
5743
  }
5723
5744
  getLegacyValue() {
5724
- const e = qr.get(`${this.class.t}${this.class.p}`);
5745
+ const e = zr.get(`${this.class.t}${this.class.p}`);
5725
5746
  if (e)
5726
5747
  return e.isoToLegacy(this.time);
5727
5748
  throw new Error(
@@ -5732,21 +5753,21 @@ class Et {
5732
5753
  return this.time;
5733
5754
  }
5734
5755
  }
5735
- const qr = /* @__PURE__ */ new Map([
5756
+ const zr = /* @__PURE__ */ new Map([
5736
5757
  [
5737
5758
  "I12",
5738
5759
  {
5739
5760
  legacyToIso(t) {
5740
- return bo(t) && `${t.substring(0, 2)}:${t.substring(2, 4)}:${t.substring(4, 6)}` || t;
5761
+ return xo(t) && `${t.substring(0, 2)}:${t.substring(2, 4)}:${t.substring(4, 6)}` || t;
5741
5762
  },
5742
5763
  isoToLegacy(t) {
5743
5764
  return t.replaceAll(":", "") || t;
5744
5765
  }
5745
5766
  }
5746
5767
  ]
5747
- ]), yo = {
5768
+ ]), wo = {
5748
5769
  "smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
5749
- }, de = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t, pn = ({
5770
+ }, de = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t, mn = ({
5750
5771
  bindValue: t,
5751
5772
  disabled: e = !1,
5752
5773
  label: r,
@@ -5810,7 +5831,7 @@ function We(t) {
5810
5831
  function ft(t) {
5811
5832
  return !We(t);
5812
5833
  }
5813
- const Ce = {
5834
+ const Te = {
5814
5835
  "smp-row": "_smp-row_qr95z_2",
5815
5836
  "smp-row-data": "_smp-row-data_qr95z_15",
5816
5837
  "smp-row-selected": "_smp-row-selected_qr95z_26",
@@ -5821,7 +5842,7 @@ const Ce = {
5821
5842
  "smp-row-wrapperCell": "_smp-row-wrapperCell_qr95z_58",
5822
5843
  "smp-row-leftSection": "_smp-row-leftSection_qr95z_65",
5823
5844
  "smp-row-node-label": "_smp-row-node-label_qr95z_73"
5824
- }, or = ({
5845
+ }, ar = ({
5825
5846
  row: t,
5826
5847
  columns: e,
5827
5848
  columnWidths: r = {},
@@ -5838,22 +5859,22 @@ const Ce = {
5838
5859
  const [f, g] = z(We(t)), h = We(t) && !!t.children?.length, b = t.cells && Object.keys(t.cells).length > 0, x = h, w = n * 16, _ = () => {
5839
5860
  h && g(!f);
5840
5861
  }, v = {
5841
- content: `${Ce["smp-row"]} ${ft(t) ? Ce["smp-row-data"] : ""} ${We(t) ? Ce["smp-row-clickable"] : ""} ${i ? Ce["smp-row-selected"] : ""}`,
5842
- toggle: `${Ce["smp-row-toggle"]} ${Ce["smp-row-icon"]}`,
5843
- indent: `${Ce["smp-row-indent"]}`,
5844
- cell: `${Ce["smp-row-wrapperCell"]}`,
5845
- leftSection: `${Ce["smp-row-leftSection"]}`,
5846
- nodeLabel: Ce["smp-row-node-label"]
5847
- }, T = (C) => {
5848
- let E = C.shape;
5849
- return C.shape === "ACP" || C.shape === "CMB" || C.shape === "ITX" ? E = "LBL" : C.shape === "AML" && (E = "CHI"), /* @__PURE__ */ p.jsx(
5862
+ content: `${Te["smp-row"]} ${ft(t) ? Te["smp-row-data"] : ""} ${We(t) ? Te["smp-row-clickable"] : ""} ${i ? Te["smp-row-selected"] : ""}`,
5863
+ toggle: `${Te["smp-row-toggle"]} ${Te["smp-row-icon"]}`,
5864
+ indent: `${Te["smp-row-indent"]}`,
5865
+ cell: `${Te["smp-row-wrapperCell"]}`,
5866
+ leftSection: `${Te["smp-row-leftSection"]}`,
5867
+ nodeLabel: Te["smp-row-node-label"]
5868
+ }, C = (T) => {
5869
+ let E = T.shape;
5870
+ return T.shape === "ACP" || T.shape === "CMB" || T.shape === "ITX" ? E = "LBL" : T.shape === "AML" && (E = "CHI"), /* @__PURE__ */ p.jsx(
5850
5871
  Fe,
5851
5872
  {
5852
- ...C,
5873
+ ...T,
5853
5874
  shape: E,
5854
5875
  onContextMenu: u,
5855
5876
  data: {
5856
- ...C.data,
5877
+ ...T.data,
5857
5878
  isOptimized: !0
5858
5879
  }
5859
5880
  }
@@ -5864,7 +5885,7 @@ const Ce = {
5864
5885
  icon: f ? "arrow_drop_right" : "arrow_drop_down",
5865
5886
  width: 16
5866
5887
  }
5867
- ) }), R = (C, E) => /* @__PURE__ */ p.jsx("span", { className: v.toggle, children: /* @__PURE__ */ p.jsx(ie, { icon: C, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
5888
+ ) }), R = (T, E) => /* @__PURE__ */ p.jsx("span", { className: v.toggle, children: /* @__PURE__ */ p.jsx(ie, { icon: T, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
5868
5889
  "span",
5869
5890
  {
5870
5891
  className: v.indent,
@@ -5874,7 +5895,7 @@ const Ce = {
5874
5895
  ), F = () => {
5875
5896
  if (l)
5876
5897
  return /* @__PURE__ */ p.jsx(
5877
- rr,
5898
+ nr,
5878
5899
  {
5879
5900
  bindValue: i,
5880
5901
  onChange: () => {
@@ -5883,7 +5904,7 @@ const Ce = {
5883
5904
  }
5884
5905
  );
5885
5906
  }, W = () => {
5886
- const C = ft(t) ? "" : t.decode || (b ? "" : "Untitled"), E = o ?? s * n, A = {
5907
+ const T = ft(t) ? "" : t.decode || (b ? "" : "Untitled"), E = o ?? s * n, A = {
5887
5908
  height: `${s}px`,
5888
5909
  lineHeight: `calc(${s}px - 2*2px)`,
5889
5910
  ...ft(t) && {
@@ -5923,7 +5944,7 @@ const Ce = {
5923
5944
  O(),
5924
5945
  y(),
5925
5946
  t.icon && R(t.icon, t.placeholderIcon),
5926
- /* @__PURE__ */ p.jsx("span", { className: v.nodeLabel, children: C })
5947
+ /* @__PURE__ */ p.jsx("span", { className: v.nodeLabel, children: T })
5927
5948
  ]
5928
5949
  }
5929
5950
  ),
@@ -5941,7 +5962,7 @@ const Ce = {
5941
5962
  minWidth: r[I.name],
5942
5963
  height: `${s}px`
5943
5964
  },
5944
- children: T({
5965
+ children: C({
5945
5966
  ...U,
5946
5967
  id: I.name
5947
5968
  })
@@ -5957,7 +5978,7 @@ const Ce = {
5957
5978
  style: {
5958
5979
  height: `${s}px`
5959
5980
  },
5960
- children: T({
5981
+ children: C({
5961
5982
  ...U,
5962
5983
  id: I
5963
5984
  })
@@ -5968,14 +5989,14 @@ const Ce = {
5968
5989
  ]
5969
5990
  }
5970
5991
  );
5971
- }, k = () => f || !h || ft(t) ? null : /* @__PURE__ */ p.jsx(p.Fragment, { children: t.children?.map((C, E) => /* @__PURE__ */ p.jsx(
5972
- or,
5992
+ }, k = () => f || !h || ft(t) ? null : /* @__PURE__ */ p.jsx(p.Fragment, { children: t.children?.map((T, E) => /* @__PURE__ */ p.jsx(
5993
+ ar,
5973
5994
  {
5974
- row: C,
5995
+ row: T,
5975
5996
  level: n + 1,
5976
5997
  columns: e,
5977
5998
  columnWidths: r,
5978
- onNodeClick: () => d?.(C),
5999
+ onNodeClick: () => d?.(T),
5979
6000
  onContextMenu: u
5980
6001
  },
5981
6002
  `child-${E}`
@@ -5984,9 +6005,9 @@ const Ce = {
5984
6005
  W(),
5985
6006
  k()
5986
6007
  ] });
5987
- }, vo = {
6008
+ }, So = {
5988
6009
  "smp-tree": "_smp-tree_19u9h_1"
5989
- }, xo = ({ fun: t, onOptionsRequest: e, onClick: r }) => {
6010
+ }, Eo = ({ fun: t, onOptionsRequest: e, onClick: r }) => {
5990
6011
  const [n, s] = z(void 0);
5991
6012
  re(() => {
5992
6013
  !n && e && t && e(t, void 0).then((a) => s(Ge(a))).catch((a) => {
@@ -5994,9 +6015,9 @@ const Ce = {
5994
6015
  });
5995
6016
  }, [n, t, e]);
5996
6017
  const o = {
5997
- table: vo["smp-tree"]
6018
+ table: So["smp-tree"]
5998
6019
  };
5999
- return n && n.length && /* @__PURE__ */ p.jsx("table", { className: o.table, children: /* @__PURE__ */ p.jsx("tbody", { children: n.map((a, i) => /* @__PURE__ */ p.jsx(or, { row: a, onNodeClick: r }, i)) }) });
6020
+ return n && n.length && /* @__PURE__ */ p.jsx("table", { className: o.table, children: /* @__PURE__ */ p.jsx("tbody", { children: n.map((a, i) => /* @__PURE__ */ p.jsx(ar, { row: a, onNodeClick: r }, i)) }) });
6000
6021
  }, Fe = ({
6001
6022
  id: t,
6002
6023
  decode: e,
@@ -6018,7 +6039,7 @@ const Ce = {
6018
6039
  onBlur: w,
6019
6040
  onOptionsRequest: _,
6020
6041
  onContextMenu: v,
6021
- isEditable: T,
6042
+ isEditable: C,
6022
6043
  dSep: y = ".",
6023
6044
  value: R
6024
6045
  }) => {
@@ -6033,7 +6054,7 @@ const Ce = {
6033
6054
  fun: a,
6034
6055
  data: s,
6035
6056
  style: g
6036
- }, F = () => sn(O.obj) ? "INR" : Yt(O.obj) ? "CAL" : r, W = O.data && O.data.size && O.data.size >= 256 && (F() === "ITX" || !F()) ? "MEM" : F(), k = e || R, C = {
6057
+ }, F = () => on(O.obj) ? "INR" : Yt(O.obj) ? "CAL" : r, W = O.data && O.data.size && O.data.size >= 256 && (F() === "ITX" || !F()) ? "MEM" : F(), k = e || R, T = {
6037
6058
  id: t,
6038
6059
  onBlur: w,
6039
6060
  onOptionsRequest: _,
@@ -6043,34 +6064,34 @@ const Ce = {
6043
6064
  tooltip: d,
6044
6065
  label: l,
6045
6066
  helper: c,
6046
- isEditable: T,
6067
+ isEditable: C,
6047
6068
  style: g,
6048
6069
  size: O.data && O.data.size ? O.data.size : 20,
6049
6070
  isOptimized: O.data?.isOptimized,
6050
6071
  ...s
6051
- }, E = (N, j, m) => Yt(n) ? Pe(N, new vt(n, j).getLegacyValue()) : ls(n) ? Pe(N, new Et(n, j).getLegacyValue()) : f?.forceUppercase ? Pe(
6072
+ }, E = (N, j, m) => Yt(n) ? Pe(N, new vt(n, j).getLegacyValue()) : us(n) ? Pe(N, new Et(n, j).getLegacyValue()) : f?.forceUppercase ? Pe(
6052
6073
  N,
6053
6074
  j.toLocaleUpperCase(),
6054
6075
  m
6055
6076
  ) : Pe(N, j, m), A = (N, j) => Pe(
6056
6077
  N,
6057
6078
  new tt(n, j, y).getLegacyValue()
6058
- ), I = (N) => Pe(O, new yt(n, N).getLegacyValue()), V = (N) => co(O, N), U = () => {
6079
+ ), I = (N) => Pe(O, new yt(n, N).getLegacyValue()), V = (N) => po(O, N), U = () => {
6059
6080
  switch (W) {
6060
6081
  case te.AUTOCOMPLETE: {
6061
6082
  const N = {
6062
- ...C,
6083
+ ...T,
6063
6084
  bindValue: O.obj.k,
6064
6085
  optionalDisplayValue: k,
6065
6086
  onChange: (j, m) => {
6066
6087
  h?.(E(O, j, m));
6067
6088
  }
6068
6089
  };
6069
- return /* @__PURE__ */ p.jsx(cn, { ...N });
6090
+ return /* @__PURE__ */ p.jsx(dn, { ...N });
6070
6091
  }
6071
6092
  case te.BUTTON: {
6072
6093
  const N = s?.label && typeof s.label == "string" ? s.label : void 0, j = {
6073
- ...C,
6094
+ ...T,
6074
6095
  bindValue: N || "",
6075
6096
  showText: !!N,
6076
6097
  onClick: () => {
@@ -6081,19 +6102,19 @@ const Ce = {
6081
6102
  }
6082
6103
  case te.BUTTON_LIST: {
6083
6104
  const N = {
6084
- ...C,
6105
+ ...T,
6085
6106
  options: u,
6086
6107
  onClick: (j, m) => {
6087
6108
  const S = { ...O, fun: m };
6088
6109
  b?.(E(S, j));
6089
6110
  }
6090
6111
  };
6091
- return /* @__PURE__ */ p.jsx(to, { ...N });
6112
+ return /* @__PURE__ */ p.jsx(so, { ...N });
6092
6113
  }
6093
6114
  case te.CHECKBOX:
6094
6115
  case te.SWITCH: {
6095
6116
  const N = r === te.SWITCH, j = {
6096
- ...C,
6117
+ ...T,
6097
6118
  bindValue: yt.fromDataObj(n).getValue(),
6098
6119
  optionalDisplayValue: k,
6099
6120
  onChange: (m) => {
@@ -6101,35 +6122,35 @@ const Ce = {
6101
6122
  },
6102
6123
  ...N && { variant: "switch" }
6103
6124
  };
6104
- return /* @__PURE__ */ p.jsx(rr, { ...j });
6125
+ return /* @__PURE__ */ p.jsx(nr, { ...j });
6105
6126
  }
6106
6127
  case te.COMBOBOX: {
6107
6128
  const N = {
6108
- ...C,
6129
+ ...T,
6109
6130
  bindValue: O.obj.k,
6110
6131
  optionalDisplayValue: k,
6111
6132
  onChange: (j, m) => {
6112
6133
  h?.(E(O, j, m));
6113
6134
  }
6114
6135
  };
6115
- return /* @__PURE__ */ p.jsx(Ht, { ...N });
6136
+ return /* @__PURE__ */ p.jsx(Kt, { ...N });
6116
6137
  }
6117
6138
  case te.DATE: {
6118
6139
  const N = {
6119
- ...C,
6140
+ ...T,
6120
6141
  bindValue: vt.fromDataObj(n).getValue(),
6121
6142
  onChange: (j) => {
6122
6143
  h?.(E(O, j));
6123
6144
  }
6124
6145
  };
6125
- return /* @__PURE__ */ p.jsx(un, { ...N });
6146
+ return /* @__PURE__ */ p.jsx(fn, { ...N });
6126
6147
  }
6127
6148
  case te.ICON:
6128
6149
  case te.IMAGE: {
6129
6150
  const N = {
6130
- ...C,
6151
+ ...T,
6131
6152
  icon: o,
6132
- isInteractable: !!C.fun,
6153
+ isInteractable: !!T.fun,
6133
6154
  onClick: () => {
6134
6155
  b?.(E(O, n.k));
6135
6156
  }
@@ -6138,41 +6159,41 @@ const Ce = {
6138
6159
  }
6139
6160
  case te.INPUT_NUMBER: {
6140
6161
  const N = {
6141
- ...C,
6162
+ ...T,
6142
6163
  bindValue: tt.fromDataObj(n, y).getValue(),
6143
6164
  onChange: (j) => {
6144
6165
  h?.(A(O, j));
6145
6166
  }
6146
6167
  };
6147
- return /* @__PURE__ */ p.jsx(fn, { ...N });
6168
+ return /* @__PURE__ */ p.jsx(hn, { ...N });
6148
6169
  }
6149
6170
  case te.EDITOR:
6150
6171
  case te.MEMO: {
6151
6172
  const N = {
6152
- ...C,
6173
+ ...T,
6153
6174
  bindValue: n.k,
6154
6175
  optionalDisplayValue: k,
6155
6176
  onChange: (j) => {
6156
6177
  h?.(E(O, j));
6157
6178
  }
6158
6179
  };
6159
- return /* @__PURE__ */ p.jsx(uo, { ...N });
6180
+ return /* @__PURE__ */ p.jsx(ho, { ...N });
6160
6181
  }
6161
6182
  case te.CHIP:
6162
6183
  case te.MULTI_AUTOCOMPLETE: {
6163
6184
  const N = r === te.CHIP, j = {
6164
- ...C,
6165
- elements: lo(O),
6185
+ ...T,
6186
+ elements: fo(O),
6166
6187
  onChange: (m) => {
6167
6188
  h?.(V(m));
6168
6189
  },
6169
- ...N && !T && { autocomplete: !1 }
6190
+ ...N && !C && { autocomplete: !1 }
6170
6191
  };
6171
- return /* @__PURE__ */ p.jsx(oo, { ...j });
6192
+ return /* @__PURE__ */ p.jsx(lo, { ...j });
6172
6193
  }
6173
6194
  case te.MULTI_CONFIG: {
6174
6195
  const N = {
6175
- ...C,
6196
+ ...T,
6176
6197
  bindValue: l || "",
6177
6198
  showText: !!l,
6178
6199
  icon: o ?? "list",
@@ -6184,27 +6205,27 @@ const Ce = {
6184
6205
  }
6185
6206
  case te.PASSWORD: {
6186
6207
  const N = {
6187
- ...C,
6208
+ ...T,
6188
6209
  bindValue: O.obj.k,
6189
6210
  onChange: (j) => {
6190
6211
  h?.(E(O, j));
6191
6212
  }
6192
6213
  };
6193
- return /* @__PURE__ */ p.jsx(ao, { ...N });
6214
+ return /* @__PURE__ */ p.jsx(co, { ...N });
6194
6215
  }
6195
6216
  case te.RADIO: {
6196
6217
  const N = {
6197
- ...C,
6218
+ ...T,
6198
6219
  bindValue: n.k,
6199
6220
  onChange: (j, m) => {
6200
6221
  h?.(E(O, j, m));
6201
6222
  }
6202
6223
  };
6203
- return /* @__PURE__ */ p.jsx(fo, { ...N });
6224
+ return /* @__PURE__ */ p.jsx(mo, { ...N });
6204
6225
  }
6205
6226
  case te.SPOTLIGHT: {
6206
6227
  const N = {
6207
- ...C,
6228
+ ...T,
6208
6229
  bindValue: O.obj.k,
6209
6230
  onEnter: (j) => {
6210
6231
  x?.(E(O, j));
@@ -6213,11 +6234,11 @@ const Ce = {
6213
6234
  h?.(E(O, j, m));
6214
6235
  }
6215
6236
  };
6216
- return /* @__PURE__ */ p.jsx(io, { ...N });
6237
+ return /* @__PURE__ */ p.jsx(uo, { ...N });
6217
6238
  }
6218
6239
  case te.TEXT_FIELD: {
6219
6240
  const N = {
6220
- ...C,
6241
+ ...T,
6221
6242
  bindValue: O.obj.k,
6222
6243
  optionalDisplayValue: k,
6223
6244
  onChange: (j) => {
@@ -6228,44 +6249,44 @@ const Ce = {
6228
6249
  }
6229
6250
  case te.BUTTON_GROUP: {
6230
6251
  const N = {
6231
- ...C,
6252
+ ...T,
6232
6253
  bindValue: n.k,
6233
6254
  onChange: (j, m) => {
6234
6255
  h?.(E(O, j, m));
6235
6256
  }
6236
6257
  };
6237
- return /* @__PURE__ */ p.jsx(pn, { ...N });
6258
+ return /* @__PURE__ */ p.jsx(mn, { ...N });
6238
6259
  }
6239
6260
  case te.TIME: {
6240
6261
  const N = {
6241
- ...C,
6262
+ ...T,
6242
6263
  bindValue: Et.fromDataObj(n).getValue(),
6243
6264
  onChange: (j) => {
6244
6265
  h?.(E(O, j));
6245
6266
  }
6246
6267
  };
6247
- return /* @__PURE__ */ p.jsx(go, { ...N });
6268
+ return /* @__PURE__ */ p.jsx(vo, { ...N });
6248
6269
  }
6249
6270
  case te.TREE: {
6250
6271
  const N = {
6251
- ...C,
6272
+ ...T,
6252
6273
  onClick: (j) => {
6253
6274
  b?.(j);
6254
6275
  }
6255
6276
  };
6256
- return /* @__PURE__ */ p.jsx(xo, { ...N });
6277
+ return /* @__PURE__ */ p.jsx(Eo, { ...N });
6257
6278
  }
6258
6279
  default: {
6259
6280
  const N = {
6260
- ...C,
6281
+ ...T,
6261
6282
  bindValue: O.obj.k,
6262
6283
  optionalDisplayValue: k
6263
6284
  };
6264
- return /* @__PURE__ */ p.jsx(sr, { ...N });
6285
+ return /* @__PURE__ */ p.jsx(or, { ...N });
6265
6286
  }
6266
6287
  }
6267
6288
  }, X = {
6268
- wrapper: `${yo["smp-cell-wrapper"]}`
6289
+ wrapper: `${wo["smp-cell-wrapper"]}`
6269
6290
  };
6270
6291
  return /* @__PURE__ */ p.jsx(
6271
6292
  "span",
@@ -6277,7 +6298,7 @@ const Ce = {
6277
6298
  children: U()
6278
6299
  }
6279
6300
  );
6280
- }, Xo = ({
6301
+ }, ea = ({
6281
6302
  data: t,
6282
6303
  onClick: e,
6283
6304
  onEnter: r,
@@ -6327,7 +6348,7 @@ const Ce = {
6327
6348
  return re(() => {
6328
6349
  t && o(a(t));
6329
6350
  }, [t, a]), !t?.rows?.length || !t.columns?.length ? null : s && /* @__PURE__ */ p.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(s).map((i) => /* @__PURE__ */ p.jsx(Fe, { ...i })) }) });
6330
- }, Qo = ({
6351
+ }, ta = ({
6331
6352
  ColumnsNumber: t = 1,
6332
6353
  data: e = {},
6333
6354
  ForceText: r,
@@ -6349,9 +6370,9 @@ const Ce = {
6349
6370
  SelectLayout: _ = "1",
6350
6371
  onClick: v
6351
6372
  }) => {
6352
- const T = "N/A", y = e?.columns || [], R = e?.rows || [], O = R.length > 0, F = "--smp-dashList-color", W = "smp-layout", k = "descr", C = "icon", E = "um", A = "value", I = a || "1em", V = "18px", U = "--smp-dashList-columns", X = "--smp-dashList-fontSize", N = {
6373
+ const C = "N/A", y = e?.columns || [], R = e?.rows || [], O = R.length > 0, F = "--smp-dashList-color", W = "smp-layout", k = "descr", T = "icon", E = "um", A = "value", I = a || "1em", V = "18px", U = "--smp-dashList-columns", X = "--smp-dashList-fontSize", N = {
6353
6374
  dash: (H = "1") => {
6354
- const ee = m(H), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), le = S(ee, A);
6375
+ const ee = m(H), B = ee, J = S(ee, k), ce = S(ee, T), he = S(ee, E), le = S(ee, A);
6355
6376
  return {
6356
6377
  container: B,
6357
6378
  descr: J,
@@ -6409,7 +6430,7 @@ const Ce = {
6409
6430
  icon: B,
6410
6431
  width: V
6411
6432
  }
6412
- ) }, `${H}-${C}`),
6433
+ ) }, `${H}-${T}`),
6413
6434
  um: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.um, children: B }, `${H}-${E}`),
6414
6435
  value: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.value, children: B }, `${H}-${A}`)
6415
6436
  };
@@ -6439,7 +6460,7 @@ const Ce = {
6439
6460
  style: he,
6440
6461
  tabIndex: 0,
6441
6462
  onClick: () => q(H),
6442
- onKeyDown: (Tt) => Y(Tt, H),
6463
+ onKeyDown: (Ct) => Y(Ct, H),
6443
6464
  children: le
6444
6465
  },
6445
6466
  H.rowId
@@ -6448,15 +6469,15 @@ const Ce = {
6448
6469
  [U]: String(t),
6449
6470
  [X]: I
6450
6471
  };
6451
- return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? R.map((H) => ae(H)) : T });
6452
- }, hn = {
6472
+ return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? R.map((H) => ae(H)) : C });
6473
+ }, gn = {
6453
6474
  "smp-table": "_smp-table_v715o_1"
6454
6475
  };
6455
- function wo(t, e) {
6476
+ function To(t, e) {
6456
6477
  const r = new Set(t);
6457
6478
  return r.has(e) ? r.delete(e) : r.add(e), r;
6458
6479
  }
6459
- function So(t, e) {
6480
+ function Co(t, e) {
6460
6481
  return t.map((r) => {
6461
6482
  const n = e.find((s) => s.column === r.bindValue);
6462
6483
  return {
@@ -6465,7 +6486,7 @@ function So(t, e) {
6465
6486
  };
6466
6487
  });
6467
6488
  }
6468
- function Eo(t, e, r, n) {
6489
+ function _o(t, e, r, n) {
6469
6490
  const s = [];
6470
6491
  let o = 0;
6471
6492
  return a(t, 0, []), { flatRows: s, offset: o };
@@ -6476,8 +6497,8 @@ function Eo(t, e, r, n) {
6476
6497
  }
6477
6498
  const h = e[f].column, b = i(u, h);
6478
6499
  for (const [x, w] of b) {
6479
- const _ = [...g, x], v = l(_, f), T = n.has(v);
6480
- s.push(c(x, v, f, T)), o += r, T && a(w, f + 1, _);
6500
+ const _ = [...g, x], v = l(_, f), C = n.has(v);
6501
+ s.push(c(x, v, f, C)), o += r, C && a(w, f + 1, _);
6481
6502
  }
6482
6503
  }
6483
6504
  function i(u, f) {
@@ -6506,7 +6527,7 @@ function Eo(t, e, r, n) {
6506
6527
  s.push(f), o += r;
6507
6528
  }
6508
6529
  }
6509
- const Co = ({
6530
+ const jo = ({
6510
6531
  columns: t,
6511
6532
  rows: e,
6512
6533
  containerRef: r,
@@ -6543,9 +6564,9 @@ const Co = ({
6543
6564
  }
6544
6565
  }, [t, e, r, n]), [s, o];
6545
6566
  };
6546
- function To(t, e) {
6567
+ function Oo(t, e) {
6547
6568
  return t.map((r) => {
6548
- const n = e?.[r.name], s = _o(r);
6569
+ const n = e?.[r.name], s = Ro(r);
6549
6570
  return {
6550
6571
  obj: {
6551
6572
  t: "",
@@ -6558,21 +6579,21 @@ function To(t, e) {
6558
6579
  };
6559
6580
  });
6560
6581
  }
6561
- function _o(t) {
6562
- return t.obj && sn(t.obj) ? "number" : t.obj && Yt(t.obj) ? "date" : "string";
6582
+ function Ro(t) {
6583
+ return t.obj && on(t.obj) ? "number" : t.obj && Yt(t.obj) ? "date" : "string";
6563
6584
  }
6564
- function zr(t, e) {
6565
- return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ? jo(t, e) : { logic: "and", filters: [] } : { logic: "and", filters: [] };
6585
+ function Hr(t, e) {
6586
+ return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ? Do(t, e) : { logic: "and", filters: [] } : { logic: "and", filters: [] };
6566
6587
  }
6567
- function jo(t, e) {
6588
+ function Do(t, e) {
6568
6589
  const r = t.split("|").map((s) => s.trim()).filter(Boolean), n = [];
6569
6590
  for (const s of r) {
6570
- const o = Oo(s, e);
6591
+ const o = ko(s, e);
6571
6592
  o && n.push(o);
6572
6593
  }
6573
6594
  return { logic: "and", filters: n };
6574
6595
  }
6575
- function Oo(t, e) {
6596
+ function ko(t, e) {
6576
6597
  if (!t.trim()) return null;
6577
6598
  if (t.includes(";OR;")) {
6578
6599
  const n = t.split(";OR;").map((l) => l.trim()).filter(Boolean);
@@ -6618,7 +6639,7 @@ function It(t, e, r, n) {
6618
6639
  const c = {
6619
6640
  ...ht,
6620
6641
  obj: { t: "", p: "", k: a }
6621
- }, d = Ro(i, l.type);
6642
+ }, d = No(i, l.type);
6622
6643
  return {
6623
6644
  field: l,
6624
6645
  columnsType: l.type,
@@ -6626,7 +6647,7 @@ function It(t, e, r, n) {
6626
6647
  value: d
6627
6648
  };
6628
6649
  }
6629
- function Ro(t, e) {
6650
+ function No(t, e) {
6630
6651
  switch (e) {
6631
6652
  case "number":
6632
6653
  return Number(t);
@@ -6636,38 +6657,38 @@ function Ro(t, e) {
6636
6657
  return t;
6637
6658
  }
6638
6659
  }
6639
- function Do(t, e) {
6640
- return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) => mn(e, r));
6660
+ function $o(t, e) {
6661
+ return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) => bn(e, r));
6641
6662
  }
6642
- function mn(t, e) {
6663
+ function bn(t, e) {
6643
6664
  if ("filters" in t) {
6644
6665
  const { logic: r, filters: n } = t;
6645
6666
  if (n.length === 0) return !0;
6646
- const s = n.map((o) => mn(o, e));
6667
+ const s = n.map((o) => bn(o, e));
6647
6668
  return r === "and" ? s.every(Boolean) : s.some(Boolean);
6648
6669
  }
6649
- return ko(t, e);
6670
+ return Lo(t, e);
6650
6671
  }
6651
- function ko(t, e) {
6652
- const { field: r, operator: n, value: s, columnsType: o } = t, a = e.cells?.[r?.obj?.k], i = No(a);
6672
+ function Lo(t, e) {
6673
+ const { field: r, operator: n, value: s, columnsType: o } = t, a = e.cells?.[r?.obj?.k], i = Ao(a);
6653
6674
  if (i == null) return !1;
6654
6675
  switch (o) {
6655
6676
  case "string":
6656
- return $o(i, n.obj.k, s);
6677
+ return Io(i, n.obj.k, s);
6657
6678
  case "number":
6658
- return Lo(i, n.obj.k, s);
6679
+ return Po(i, n.obj.k, s);
6659
6680
  case "date":
6660
- return Ao(i, n.obj.k, s);
6681
+ return Fo(i, n.obj.k, s);
6661
6682
  default:
6662
6683
  return !1;
6663
6684
  }
6664
6685
  }
6665
- function No(t) {
6686
+ function Ao(t) {
6666
6687
  if (t == null || typeof t != "object") return t;
6667
6688
  if ("value" in t) return t.value;
6668
6689
  if ("decode" in t) return t.decode;
6669
6690
  }
6670
- function $o(t, e, r) {
6691
+ function Io(t, e, r) {
6671
6692
  const n = String(t).toLowerCase(), s = String(r).toLowerCase();
6672
6693
  switch (e.toLowerCase()) {
6673
6694
  case "contains":
@@ -6682,7 +6703,7 @@ function $o(t, e, r) {
6682
6703
  return !1;
6683
6704
  }
6684
6705
  }
6685
- function Lo(t, e, r) {
6706
+ function Po(t, e, r) {
6686
6707
  const n = Number(t), s = Number(r);
6687
6708
  if (isNaN(n) || isNaN(s)) return !1;
6688
6709
  switch (e.toLowerCase()) {
@@ -6702,7 +6723,7 @@ function Lo(t, e, r) {
6702
6723
  return !1;
6703
6724
  }
6704
6725
  }
6705
- function Ao(t, e, r) {
6726
+ function Fo(t, e, r) {
6706
6727
  const n = new Date(t), s = new Date(r);
6707
6728
  if (isNaN(n.getTime()) || isNaN(s.getTime())) return !1;
6708
6729
  switch (e.toLowerCase()) {
@@ -6721,16 +6742,16 @@ function Ao(t, e, r) {
6721
6742
  return !1;
6722
6743
  }
6723
6744
  }
6724
- const Io = (t, e) => {
6745
+ const Mo = (t, e) => {
6725
6746
  const r = (n) => n.filters.some(
6726
6747
  (s) => "filters" in s ? r(s) : s.field?.obj?.k === t && s.operator && s.value !== ""
6727
6748
  );
6728
6749
  return r(e);
6729
- }, Po = (t) => {
6750
+ }, Vo = (t) => {
6730
6751
  const e = (r) => r.filters.reduce((n, s) => "filters" in s ? n + e(s) : n + 1, 0);
6731
6752
  return e(t);
6732
6753
  };
6733
- function Fo(t, e) {
6754
+ function Uo(t, e) {
6734
6755
  const r = ue(null), n = oe((a) => {
6735
6756
  r.current = a;
6736
6757
  }, []), s = oe((a) => {
@@ -6752,7 +6773,7 @@ function Fo(t, e) {
6752
6773
  handleDrop: o
6753
6774
  };
6754
6775
  }
6755
- function gn(t, e, r) {
6776
+ function yn(t, e, r) {
6756
6777
  const s = t.columns.find((a) => a.name === e)?.obj?.t, o = [...t.rows].sort((a, i) => {
6757
6778
  const l = a.cells[e]?.obj?.k, c = i.cells[e]?.obj?.k;
6758
6779
  if (l == null && c != null) return r === "asc" ? 1 : -1;
@@ -6776,10 +6797,10 @@ function gn(t, e, r) {
6776
6797
  rows: o
6777
6798
  };
6778
6799
  }
6779
- function Mo(t) {
6800
+ function Bo(t) {
6780
6801
  const [e, r] = z(null), [n, s] = z("asc");
6781
6802
  return {
6782
- sortedRows: Qe(() => e ? gn({ ...t, rows: t.rows }, e, n).rows : t.rows, [t, e, n]),
6803
+ sortedRows: Qe(() => e ? yn({ ...t, rows: t.rows }, e, n).rows : t.rows, [t, e, n]),
6783
6804
  sortBy: e,
6784
6805
  sortOrder: n,
6785
6806
  handleSort: (i) => {
@@ -6787,11 +6808,11 @@ function Mo(t) {
6787
6808
  }
6788
6809
  };
6789
6810
  }
6790
- const Vo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", { children: /* @__PURE__ */ p.jsx("tr", { children: t.map(
6811
+ const Wo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", { children: /* @__PURE__ */ p.jsx("tr", { children: t.map(
6791
6812
  (r) => r.visible && /* @__PURE__ */ p.jsx(
6792
6813
  "td",
6793
6814
  {
6794
- className: hn["smp-headerCell"],
6815
+ className: gn["smp-headerCell"],
6795
6816
  style: {
6796
6817
  width: e[r.name],
6797
6818
  minWidth: e[r.name],
@@ -6800,7 +6821,7 @@ const Vo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
6800
6821
  },
6801
6822
  r.name
6802
6823
  )
6803
- ) }) }), Uo = ({
6824
+ ) }) }), Yo = ({
6804
6825
  label: t,
6805
6826
  rowHeight: e = 28,
6806
6827
  offsetTop: r = 0,
@@ -6844,10 +6865,10 @@ const Vo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
6844
6865
  }
6845
6866
  );
6846
6867
  };
6847
- function Bo(t) {
6868
+ function Go(t) {
6848
6869
  return t.split("|");
6849
6870
  }
6850
- function Wo(t, e) {
6871
+ function qo(t, e) {
6851
6872
  return t.columns.map((r) => ({
6852
6873
  ...r,
6853
6874
  visible: e.includes(r.name)
@@ -6860,7 +6881,7 @@ const Ye = {
6860
6881
  "smp-filter-list": "_smp-filter-list_1dest_24",
6861
6882
  "smp-filter-toolbar": "_smp-filter-toolbar_1dest_31",
6862
6883
  "smp-filter-actionButtons": "_smp-filter-actionButtons_1dest_41"
6863
- }, Yo = ({ filter: t, onChange: e, onDelete: r, fieldOptions: n, hasCurrentColumn: s }) => {
6884
+ }, zo = ({ filter: t, onChange: e, onDelete: r, fieldOptions: n, hasCurrentColumn: s }) => {
6864
6885
  const { translate: o } = Re(), a = {
6865
6886
  string: [
6866
6887
  {
@@ -6959,7 +6980,7 @@ const Ye = {
6959
6980
  );
6960
6981
  case "number":
6961
6982
  return /* @__PURE__ */ p.jsx(
6962
- fn,
6983
+ hn,
6963
6984
  {
6964
6985
  bindValue: t.value,
6965
6986
  onChange: c
@@ -6967,7 +6988,7 @@ const Ye = {
6967
6988
  );
6968
6989
  case "date":
6969
6990
  return /* @__PURE__ */ p.jsx(
6970
- un,
6991
+ fn,
6971
6992
  {
6972
6993
  bindValue: t.value,
6973
6994
  onChange: c
@@ -6979,7 +7000,7 @@ const Ye = {
6979
7000
  };
6980
7001
  return /* @__PURE__ */ p.jsxs("div", { className: u.row, children: [
6981
7002
  !s && /* @__PURE__ */ p.jsx(
6982
- Ht,
7003
+ Kt,
6983
7004
  {
6984
7005
  bindValue: t.field.obj.k,
6985
7006
  options: n.map((f) => ({
@@ -6994,7 +7015,7 @@ const Ye = {
6994
7015
  }
6995
7016
  ),
6996
7017
  /* @__PURE__ */ p.jsx(
6997
- Ht,
7018
+ Kt,
6998
7019
  {
6999
7020
  bindValue: t.operator?.obj?.k,
7000
7021
  options: a[t.columnsType],
@@ -7019,7 +7040,7 @@ const Ye = {
7019
7040
  }
7020
7041
  )
7021
7042
  ] });
7022
- }, bn = ({
7043
+ }, vn = ({
7023
7044
  group: t,
7024
7045
  onChange: e,
7025
7046
  onDelete: r,
@@ -7050,11 +7071,11 @@ const Ye = {
7050
7071
  if (l) {
7051
7072
  const v = o.find(
7052
7073
  (y) => y.obj.k === l
7053
- ), T = { ...ht };
7074
+ ), C = { ...ht };
7054
7075
  w = {
7055
7076
  field: v || o[0] || "",
7056
7077
  columnsType: v?.type || o[0]?.type || "string",
7057
- operator: T,
7078
+ operator: C,
7058
7079
  value: ""
7059
7080
  };
7060
7081
  } else {
@@ -7088,7 +7109,7 @@ const Ye = {
7088
7109
  children: [
7089
7110
  /* @__PURE__ */ p.jsxs("div", { className: x.filterToolbar, children: [
7090
7111
  c && /* @__PURE__ */ p.jsx(
7091
- pn,
7112
+ mn,
7092
7113
  {
7093
7114
  options: [
7094
7115
  {
@@ -7155,7 +7176,7 @@ const Ye = {
7155
7176
  ] }),
7156
7177
  /* @__PURE__ */ p.jsx("div", { className: x.filterList, children: t.filters.map((w, _) => ({ filter: w, index: _ })).filter(({ filter: w }) => l ? "logic" in w ? w.filters.some((_) => "logic" in _ ? !1 : _.field?.obj?.k === l) : w.field?.obj?.k === l : !0).map(
7157
7178
  ({ filter: w, index: _ }) => "logic" in w ? /* @__PURE__ */ p.jsx(
7158
- bn,
7179
+ vn,
7159
7180
  {
7160
7181
  group: w,
7161
7182
  onChange: (v) => u(_, v),
@@ -7169,7 +7190,7 @@ const Ye = {
7169
7190
  },
7170
7191
  _
7171
7192
  ) : /* @__PURE__ */ p.jsx(
7172
- Yo,
7193
+ zo,
7173
7194
  {
7174
7195
  filter: w,
7175
7196
  onChange: (v) => u(_, v),
@@ -7183,7 +7204,7 @@ const Ye = {
7183
7204
  ]
7184
7205
  }
7185
7206
  );
7186
- }, Hr = ({
7207
+ }, Kr = ({
7187
7208
  filters: t,
7188
7209
  onChange: e,
7189
7210
  fieldOptions: r,
@@ -7198,7 +7219,7 @@ const Ye = {
7198
7219
  filterWrapper: `${Ye["smp-filter-wrapper"]}`
7199
7220
  };
7200
7221
  return /* @__PURE__ */ p.jsx("div", { className: c.filterWrapper, ref: o, children: /* @__PURE__ */ p.jsx(
7201
- bn,
7222
+ vn,
7202
7223
  {
7203
7224
  group: t,
7204
7225
  onChange: e,
@@ -7210,7 +7231,7 @@ const Ye = {
7210
7231
  onClose: l
7211
7232
  }
7212
7233
  ) });
7213
- }, Go = ({
7234
+ }, Ho = ({
7214
7235
  groups: t = [],
7215
7236
  isDraggable: e = !0,
7216
7237
  isEditable: r = !0,
@@ -7232,7 +7253,7 @@ const Ye = {
7232
7253
  children: [
7233
7254
  /* @__PURE__ */ p.jsx(ie, { icon: "groups" }),
7234
7255
  /* @__PURE__ */ p.jsx(
7235
- dn,
7256
+ pn,
7236
7257
  {
7237
7258
  elements: a,
7238
7259
  isEditable: r,
@@ -7251,7 +7272,7 @@ const Ye = {
7251
7272
  "smp-resizer": "_smp-resizer_laepr_34",
7252
7273
  "smp-datatable-toolbar": "_smp-datatable-toolbar_laepr_52",
7253
7274
  "smp-datatable-filter": "_smp-datatable-filter_laepr_53"
7254
- }, qo = ({
7275
+ }, Ko = ({
7255
7276
  columns: t,
7256
7277
  columnWidths: e,
7257
7278
  groups: r,
@@ -7272,7 +7293,7 @@ const Ye = {
7272
7293
  onResetFilters: w,
7273
7294
  onGroupChange: _,
7274
7295
  onGroupDrop: v,
7275
- onGroupDragOver: T,
7296
+ onGroupDragOver: C,
7276
7297
  onMouseDown: y,
7277
7298
  onToggleAllRows: R,
7278
7299
  onSort: O,
@@ -7280,17 +7301,17 @@ const Ye = {
7280
7301
  onDragOver: W,
7281
7302
  onDrop: k
7282
7303
  }) => {
7283
- const C = ue({}), { anchorRef: E, targetRef: A } = $e({
7304
+ const T = ue({}), { anchorRef: E, targetRef: A } = $e({
7284
7305
  position: "bottom",
7285
7306
  open: o
7286
7307
  }), { anchorRef: I, targetRef: V } = $e({
7287
7308
  position: "bottom",
7288
7309
  open: a !== null
7289
7310
  }), U = oe(
7290
- (j) => Io(j, i),
7311
+ (j) => Mo(j, i),
7291
7312
  [i]
7292
7313
  ), X = Qe(
7293
- () => Po(i),
7314
+ () => Vo(i),
7294
7315
  [i]
7295
7316
  ), N = {
7296
7317
  headerCell: `${Ie["smp-headerCell"]}`,
@@ -7325,17 +7346,17 @@ const Ye = {
7325
7346
  ) })
7326
7347
  ] }) }),
7327
7348
  (r || s) && /* @__PURE__ */ p.jsx(
7328
- Go,
7349
+ Ho,
7329
7350
  {
7330
7351
  groups: n,
7331
7352
  onChange: _,
7332
7353
  onDrop: v,
7333
- onDragOver: T
7354
+ onDragOver: C
7334
7355
  }
7335
7356
  )
7336
7357
  ] }),
7337
7358
  o && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
7338
- Hr,
7359
+ Kr,
7339
7360
  {
7340
7361
  filters: i,
7341
7362
  fieldOptions: l,
@@ -7353,7 +7374,7 @@ const Ye = {
7353
7374
  className: N.headerCell,
7354
7375
  style: { minWidth: 40, justifyContent: "center" },
7355
7376
  children: /* @__PURE__ */ p.jsx(
7356
- rr,
7377
+ nr,
7357
7378
  {
7358
7379
  bindValue: u,
7359
7380
  onChange: R
@@ -7381,7 +7402,7 @@ const Ye = {
7381
7402
  maxWidth: e[j.name]
7382
7403
  },
7383
7404
  ref: (m) => {
7384
- C.current[j.name] = m, a === j.name && m && (typeof I == "function" ? I(m) : I && "current" in I && (I.current = m));
7405
+ T.current[j.name] = m, a === j.name && m && (typeof I == "function" ? I(m) : I && "current" in I && (I.current = m));
7385
7406
  },
7386
7407
  children: /* @__PURE__ */ p.jsxs(
7387
7408
  "div",
@@ -7420,7 +7441,7 @@ const Ye = {
7420
7441
  )
7421
7442
  ] }),
7422
7443
  a === j.name && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
7423
- Hr,
7444
+ Kr,
7424
7445
  {
7425
7446
  filters: i,
7426
7447
  fieldOptions: l.filter(
@@ -7454,7 +7475,7 @@ const Ye = {
7454
7475
  )
7455
7476
  ] })
7456
7477
  ] });
7457
- }, Zo = ({
7478
+ }, ra = ({
7458
7479
  data: t,
7459
7480
  lineHeight: e = 28,
7460
7481
  TableHeight: r = 400,
@@ -7469,23 +7490,23 @@ const Ye = {
7469
7490
  onContextMenu: u
7470
7491
  }) => {
7471
7492
  const [f, g] = z(() => t ? {
7472
- columns: l ? Wo(t, Bo(l)) : t.columns,
7493
+ columns: l ? qo(t, Go(l)) : t.columns,
7473
7494
  rows: t.rows ?? []
7474
- } : { columns: [], rows: [] }), [h, b] = z(n || []), [x, w] = z(/* @__PURE__ */ new Set()), [_, v] = z(!1), [T, y] = z(/* @__PURE__ */ new Set()), [R, O] = z(null), F = Qe(() => To(t?.columns || []), [t?.columns]), [W, k] = z(() => zr(a, F)), C = ue(null), [E, A] = Co({
7495
+ } : { columns: [], rows: [] }), [h, b] = z(n || []), [x, w] = z(/* @__PURE__ */ new Set()), [_, v] = z(!1), [C, y] = z(/* @__PURE__ */ new Set()), [R, O] = z(null), F = Qe(() => Oo(t?.columns || []), [t?.columns]), [W, k] = z(() => Hr(a, F)), T = ue(null), [E, A] = jo({
7475
7496
  columns: f?.columns ?? [],
7476
7497
  rows: f?.rows ?? [],
7477
- containerRef: C,
7498
+ containerRef: T,
7478
7499
  sizingMode: s
7479
- }), { handleDragStart: I, handleDragOver: V, handleDrop: U } = Fo(
7500
+ }), { handleDragStart: I, handleDragOver: V, handleDrop: U } = Uo(
7480
7501
  f.columns,
7481
7502
  (B) => g((J) => ({ ...J, columns: B }))
7482
7503
  ), X = Qe(() => {
7483
7504
  const B = f.rows.map((J, ce) => ce);
7484
- return B.every((J) => T.has(J)) && B.length > 0;
7485
- }, [T, f.rows]), { sortBy: N, sortOrder: j, handleSort: m } = Mo({
7505
+ return B.every((J) => C.has(J)) && B.length > 0;
7506
+ }, [C, f.rows]), { sortBy: N, sortOrder: j, handleSort: m } = Bo({
7486
7507
  ...f,
7487
7508
  rows: f.rows
7488
- }), { virtualItems: S, containerProps: L, innerProps: D } = nn({
7509
+ }), { virtualItems: S, containerProps: L, innerProps: D } = sn({
7489
7510
  items: f?.rows ?? [],
7490
7511
  itemHeight: e,
7491
7512
  containerHeight: r,
@@ -7493,21 +7514,21 @@ const Ye = {
7493
7514
  });
7494
7515
  re(() => {
7495
7516
  if (de(i) && d) {
7496
- const B = Array.from(T).map((J) => f.rows[J]).filter(Boolean);
7517
+ const B = Array.from(C).map((J) => f.rows[J]).filter(Boolean);
7497
7518
  d(B);
7498
7519
  }
7499
- }, [T, i, f.rows, d]), re(() => {
7520
+ }, [C, i, f.rows, d]), re(() => {
7500
7521
  let B = t?.rows ?? [];
7501
- W?.filters?.length > 0 && (B = Do(B, W));
7522
+ W?.filters?.length > 0 && (B = $o(B, W));
7502
7523
  let J = B;
7503
- N && (J = gn(
7524
+ N && (J = yn(
7504
7525
  { ...t ?? { columns: [], rows: [] }, rows: B },
7505
7526
  N,
7506
7527
  j
7507
7528
  ).rows);
7508
7529
  let ce = J;
7509
7530
  if (h?.length && J.length > 0) {
7510
- const { flatRows: he } = Eo(
7531
+ const { flatRows: he } = _o(
7511
7532
  J,
7512
7533
  h,
7513
7534
  e,
@@ -7531,13 +7552,13 @@ const Ye = {
7531
7552
  const $ = oe((B) => {
7532
7553
  k(B);
7533
7554
  }, []), P = oe(() => {
7534
- k(zr(a, F));
7555
+ k(Hr(a, F));
7535
7556
  }, [a, F]), G = oe(() => {
7536
7557
  v((B) => !B);
7537
7558
  }, []), q = oe((B) => {
7538
7559
  O((J) => J === B ? null : B);
7539
7560
  }, []), Y = (B) => {
7540
- b(So(B, h));
7561
+ b(Co(B, h));
7541
7562
  }, Q = (B) => {
7542
7563
  B.preventDefault();
7543
7564
  const J = B.dataTransfer.getData("text/plain");
@@ -7548,11 +7569,11 @@ const Ye = {
7548
7569
  }, K = (B) => {
7549
7570
  B.preventDefault();
7550
7571
  }, ae = (B, J) => {
7551
- const ce = B.clientX, he = E[J], le = (Tt) => {
7552
- const yn = Tt.clientX - ce, vn = Math.max(50, he + yn);
7553
- A((xn) => ({
7554
- ...xn,
7555
- [J]: vn
7572
+ const ce = B.clientX, he = E[J], le = (Ct) => {
7573
+ const xn = Ct.clientX - ce, wn = Math.max(50, he + xn);
7574
+ A((Sn) => ({
7575
+ ...Sn,
7576
+ [J]: wn
7556
7577
  }));
7557
7578
  }, we = () => {
7558
7579
  window.removeEventListener("mousemove", le), window.removeEventListener("mouseup", we);
@@ -7567,17 +7588,17 @@ const Ye = {
7567
7588
  const B = f.rows.map((J, ce) => ce);
7568
7589
  M(B);
7569
7590
  }, ee = {
7570
- smpTable: `${hn["smp-table"]}`
7591
+ smpTable: `${gn["smp-table"]}`
7571
7592
  };
7572
7593
  return f && /* @__PURE__ */ p.jsx(
7573
7594
  "div",
7574
7595
  {
7575
7596
  className: ee.smpTable,
7576
7597
  ...L,
7577
- ref: C,
7598
+ ref: T,
7578
7599
  children: /* @__PURE__ */ p.jsxs("table", { children: [
7579
7600
  /* @__PURE__ */ p.jsx(
7580
- qo,
7601
+ Ko,
7581
7602
  {
7582
7603
  columns: f.columns,
7583
7604
  columnWidths: E,
@@ -7611,7 +7632,7 @@ const Ye = {
7611
7632
  /* @__PURE__ */ p.jsx("tbody", { ...D, children: S.map(({ item: B, index: J, offsetTop: ce }) => {
7612
7633
  const he = B.id || B.value || `${B.isGroup ? "group" : "row"}-${J}`;
7613
7634
  return B.isGroup ? /* @__PURE__ */ p.jsx(
7614
- Uo,
7635
+ Yo,
7615
7636
  {
7616
7637
  label: B.value || "",
7617
7638
  rowHeight: e,
@@ -7619,13 +7640,13 @@ const Ye = {
7619
7640
  level: B.level,
7620
7641
  onClick: () => {
7621
7642
  const le = B.id;
7622
- le && w((we) => wo(we, le));
7643
+ le && w((we) => To(we, le));
7623
7644
  },
7624
7645
  isExpanded: B.isExpanded
7625
7646
  },
7626
7647
  `group-${he}`
7627
7648
  ) : /* @__PURE__ */ p.jsx(
7628
- or,
7649
+ ar,
7629
7650
  {
7630
7651
  row: B,
7631
7652
  columns: f.columns,
@@ -7634,7 +7655,7 @@ const Ye = {
7634
7655
  offsetTop: ce,
7635
7656
  isGroup: !1,
7636
7657
  enableSelection: de(i),
7637
- isSelected: T.has(J),
7658
+ isSelected: C.has(J),
7638
7659
  onToggleSelect: () => {
7639
7660
  M([J]);
7640
7661
  },
@@ -7644,11 +7665,11 @@ const Ye = {
7644
7665
  `row-${he}`
7645
7666
  );
7646
7667
  }) }),
7647
- /* @__PURE__ */ p.jsx(Vo, { columns: f.columns, columnWidths: E })
7668
+ /* @__PURE__ */ p.jsx(Wo, { columns: f.columns, columnWidths: E })
7648
7669
  ] })
7649
7670
  }
7650
7671
  );
7651
- }, ea = ({
7672
+ }, na = ({
7652
7673
  data: t,
7653
7674
  logo: e,
7654
7675
  open: r,
@@ -7661,11 +7682,11 @@ const Ye = {
7661
7682
  onContextMenu: c
7662
7683
  }) => {
7663
7684
  const [d, u] = z(), [f, g] = z(r ?? !0), h = ue(null), b = s.trim() ? s : "100vh", x = oe(
7664
- (T) => {
7665
- if (!T?.rows?.length || !T?.columns?.length)
7685
+ (C) => {
7686
+ if (!C?.rows?.length || !C?.columns?.length)
7666
7687
  return {};
7667
- const y = T.rows[0];
7668
- return T.columns.filter((R) => R.visible ?? !0).reduce((R, O) => {
7688
+ const y = C.rows[0];
7689
+ return C.columns.filter((R) => R.visible ?? !0).reduce((R, O) => {
7669
7690
  const F = y.cells[O.name];
7670
7691
  if (!F || !f && de(n) && F.shape !== te.BUTTON && F.shape !== te.BUTTON_LIST)
7671
7692
  return R;
@@ -7674,8 +7695,8 @@ const Ye = {
7674
7695
  id: O.name,
7675
7696
  onOptionsRequest: l,
7676
7697
  onChange: (k) => {
7677
- u((C) => {
7678
- const E = { ...C };
7698
+ u((T) => {
7699
+ const E = { ...T };
7679
7700
  return E?.[O.name] && (E[O.name].obj.k = k.obj.k), E;
7680
7701
  });
7681
7702
  },
@@ -7685,8 +7706,8 @@ const Ye = {
7685
7706
  onEnter: (k) => {
7686
7707
  a && a(k);
7687
7708
  },
7688
- onContextMenu: (k, C) => {
7689
- c && c(k, C);
7709
+ onContextMenu: (k, T) => {
7710
+ c && c(k, T);
7690
7711
  }
7691
7712
  };
7692
7713
  return !f && de(n) && (W.data = {
@@ -7704,7 +7725,7 @@ const Ye = {
7704
7725
  ), w = oe(() => {
7705
7726
  i?.();
7706
7727
  }, [i]), _ = () => {
7707
- de(n) ? g((T) => !T) : (g(!1), i?.());
7728
+ de(n) ? g((C) => !C) : (g(!1), i?.());
7708
7729
  };
7709
7730
  if (re(() => {
7710
7731
  u(x(t));
@@ -7715,11 +7736,11 @@ const Ye = {
7715
7736
  u(x(t));
7716
7737
  return;
7717
7738
  }
7718
- const T = getComputedStyle(h.current).getPropertyValue(
7739
+ const C = getComputedStyle(h.current).getPropertyValue(
7719
7740
  "--smp-drawer-slide-transition"
7720
7741
  );
7721
- let y = Number(T);
7722
- T.endsWith("ms") ? y = parseFloat(T) : T.endsWith("s") && (y = parseFloat(T) * 1e3), setTimeout(() => {
7742
+ let y = Number(C);
7743
+ C.endsWith("ms") ? y = parseFloat(C) : C.endsWith("s") && (y = parseFloat(C) * 1e3), setTimeout(() => {
7723
7744
  u(x(t));
7724
7745
  }, y / 2);
7725
7746
  }, [f, n]), re(() => {
@@ -7777,12 +7798,12 @@ const Ye = {
7777
7798
  }
7778
7799
  ) })
7779
7800
  ] }),
7780
- /* @__PURE__ */ p.jsx("div", { className: v.containerLayout, children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(d).map((T) => /* @__PURE__ */ p.jsx(Fe, { ...T })) }) })
7801
+ /* @__PURE__ */ p.jsx("div", { className: v.containerLayout, children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(d).map((C) => /* @__PURE__ */ p.jsx(Fe, { ...C })) }) })
7781
7802
  ] })
7782
7803
  }
7783
7804
  )
7784
7805
  ] });
7785
- }, ta = ({
7806
+ }, sa = ({
7786
7807
  data: t,
7787
7808
  Type: e,
7788
7809
  ShowSubmit: r = !1,
@@ -7801,7 +7822,7 @@ const Ye = {
7801
7822
  if (!t)
7802
7823
  return;
7803
7824
  const x = { ...t };
7804
- return e && (x.shape = e), x.shape == null && (x.shape = te.TEXT_FIELD), s && (x.obj = cs(s)), x;
7825
+ return e && (x.shape = e), x.shape == null && (x.shape = te.TEXT_FIELD), s && (x.obj = ds(s)), x;
7805
7826
  });
7806
7827
  }, [t, s, e]);
7807
7828
  const h = {
@@ -7846,7 +7867,7 @@ const Ye = {
7846
7867
  }
7847
7868
  )
7848
7869
  ] });
7849
- }, Kr = "command-submit", Pt = (t, e) => ({
7870
+ }, Jr = "command-submit", Pt = (t, e) => ({
7850
7871
  before: t,
7851
7872
  after: {
7852
7873
  type: "SmeupDataTable",
@@ -7858,7 +7879,7 @@ const Ye = {
7858
7879
  }
7859
7880
  ]
7860
7881
  }
7861
- }), Jr = (t, e, r) => {
7882
+ }), Xr = (t, e, r) => {
7862
7883
  if (!t.rows?.length || !t.columns?.length)
7863
7884
  return {};
7864
7885
  const n = t.rows?.[0];
@@ -7879,9 +7900,9 @@ const Ye = {
7879
7900
  [o.name]: a
7880
7901
  };
7881
7902
  }, {});
7882
- }, zo = {
7903
+ }, Jo = {
7883
7904
  "smp-form": "_smp-form_9ox03_1"
7884
- }, ra = ({
7905
+ }, oa = ({
7885
7906
  data: t,
7886
7907
  id: e,
7887
7908
  readOnly: r = !1,
@@ -7898,42 +7919,42 @@ const Ye = {
7898
7919
  onButtonClick: g
7899
7920
  }) => {
7900
7921
  const h = ue(!1), b = ue([]), [x, w] = z(
7901
- () => Jr(t, o, r)
7902
- ), { translate: _ } = Re(), v = ke(), T = ue(null);
7922
+ () => Xr(t, o, r)
7923
+ ), { translate: _ } = Re(), v = ke(), C = ue(null);
7903
7924
  re(() => {
7904
- const C = T.current;
7905
- if (!C) return;
7925
+ const T = C.current;
7926
+ if (!T) return;
7906
7927
  const E = (A) => {
7907
7928
  R(A.detail.id);
7908
7929
  };
7909
- return C.addEventListener(
7910
- Kr,
7930
+ return T.addEventListener(
7931
+ Jr,
7911
7932
  E
7912
7933
  ), () => {
7913
- C.removeEventListener(
7914
- Kr,
7934
+ T.removeEventListener(
7935
+ Jr,
7915
7936
  E
7916
7937
  );
7917
7938
  };
7918
7939
  }, []), re(() => {
7919
- h.current ? w(Jr(t, o, r)) : (h.current = !0, T.current && T.current.querySelectorAll('[type="text"]').forEach((E) => {
7940
+ h.current ? w(Xr(t, o, r)) : (h.current = !0, C.current && C.current.querySelectorAll('[type="text"]').forEach((E) => {
7920
7941
  E instanceof HTMLInputElement && b.current.push(E);
7921
7942
  }));
7922
7943
  }, [t]), re(() => {
7923
- a && T.current && b.current.length > 0 && b.current[0].focus();
7944
+ a && C.current && b.current.length > 0 && b.current[0].focus();
7924
7945
  }, [a]);
7925
- const y = (C, E) => {
7946
+ const y = (T, E) => {
7926
7947
  if (w((A) => ({
7927
7948
  ...A,
7928
- [C]: {
7929
- ...A[C],
7949
+ [T]: {
7950
+ ...A[T],
7930
7951
  obj: {
7931
- ...A[C].obj,
7952
+ ...A[T].obj,
7932
7953
  k: E.obj.k
7933
7954
  },
7934
7955
  decode: E.decode,
7935
7956
  data: {
7936
- ...A[C].data,
7957
+ ...A[T].data,
7937
7958
  error: void 0
7938
7959
  },
7939
7960
  // FIXME: remove this when webup.js will not use value
@@ -7941,26 +7962,26 @@ const Ye = {
7941
7962
  }
7942
7963
  })), s && (E.shape == te.CHECKBOX || E.shape == te.SWITCH)) {
7943
7964
  const A = structuredClone(x);
7944
- A[C].obj.k = E.obj.k, A[C].value = E.obj.k, c({
7965
+ A[T].obj.k = E.obj.k, A[T].value = E.obj.k, c({
7945
7966
  value: Pt(t, A),
7946
- cell: C
7967
+ cell: T
7947
7968
  });
7948
7969
  }
7949
7970
  if (i && E.data?.maxLength && E.data.maxLength <= E.obj.k.length) {
7950
7971
  const A = b.current.findIndex(
7951
- (I) => I.name == C
7972
+ (I) => I.name == T
7952
7973
  );
7953
7974
  A < b.current.length - 1 && b.current[A + 1].focus();
7954
7975
  }
7955
- }, R = (C) => {
7976
+ }, R = (T) => {
7956
7977
  const E = Pt(t, x);
7957
7978
  c({
7958
7979
  value: E,
7959
- cell: C
7980
+ cell: T
7960
7981
  });
7961
- }, O = (C, E) => {
7982
+ }, O = (T, E) => {
7962
7983
  g?.({
7963
- cellId: C,
7984
+ cellId: T,
7964
7985
  currentState: {
7965
7986
  type: "SmeupDataTable",
7966
7987
  columns: t.columns,
@@ -7973,39 +7994,39 @@ const Ye = {
7973
7994
  },
7974
7995
  fun: E || ""
7975
7996
  });
7976
- }, F = async (C) => {
7977
- if (x[C].obj.k != t.rows[0].cells[C].obj.k && (x[C].inputSettings?.checkObject && u && ((await u({
7978
- obj: x[C].obj,
7979
- fun: x[C].fun,
7980
- cellId: C
7997
+ }, F = async (T) => {
7998
+ if (x[T].obj.k != t.rows[0].cells[T].obj.k && (x[T].inputSettings?.checkObject && u && ((await u({
7999
+ obj: x[T].obj,
8000
+ fun: x[T].fun,
8001
+ cellId: T
7981
8002
  })).valid || w((A) => ({
7982
8003
  ...A,
7983
- [C]: {
7984
- ...A[C],
8004
+ [T]: {
8005
+ ...A[T],
7985
8006
  data: {
7986
- ...A[C].data,
8007
+ ...A[T].data,
7987
8008
  error: _(je.CHECK_OBJECT_WRONG_VALIDATION)
7988
8009
  }
7989
8010
  }
7990
- }))), x[C].inputSettings?.checkValueOnExit)) {
8011
+ }))), x[T].inputSettings?.checkValueOnExit)) {
7991
8012
  const E = Pt(t, x);
7992
8013
  d?.({
7993
8014
  value: E,
7994
- cell: C
8015
+ cell: T
7995
8016
  });
7996
8017
  }
7997
- }, W = t.setup?.commands?.map((C, E) => /* @__PURE__ */ Sn(
8018
+ }, W = t.setup?.commands?.map((T, E) => /* @__PURE__ */ Tn(
7998
8019
  Fe,
7999
8020
  {
8000
- ...C,
8001
- decode: C.value,
8021
+ ...T,
8022
+ decode: T.value,
8002
8023
  data: {
8003
- label: C.value
8024
+ label: T.value
8004
8025
  },
8005
8026
  id: `command-${E}`,
8006
8027
  key: `command-${E}`,
8007
8028
  shape: te.BUTTON,
8008
- onClick: () => R(C.obj.k)
8029
+ onClick: () => R(T.obj.k)
8009
8030
  }
8010
8031
  )) || [];
8011
8032
  n || W.unshift(
@@ -8030,7 +8051,7 @@ const Ye = {
8030
8051
  )
8031
8052
  );
8032
8053
  const k = {
8033
- smpForm: `${zo["smp-form"]}`
8054
+ smpForm: `${Jo["smp-form"]}`
8034
8055
  };
8035
8056
  return x && // eslint-disable-next-line jsx-a11y/no-redundant-roles
8036
8057
  /* @__PURE__ */ p.jsxs(
@@ -8039,25 +8060,25 @@ const Ye = {
8039
8060
  "data-component": "input-panel",
8040
8061
  className: k.smpForm,
8041
8062
  id: e || v,
8042
- onSubmit: (C) => {
8043
- C.preventDefault(), R();
8063
+ onSubmit: (T) => {
8064
+ T.preventDefault(), R();
8044
8065
  },
8045
- ref: T,
8066
+ ref: C,
8046
8067
  role: "form",
8047
8068
  children: [
8048
- t.rows?.length > 0 && /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(x).map((C) => /* @__PURE__ */ p.jsx(
8069
+ t.rows?.length > 0 && /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(x).map((T) => /* @__PURE__ */ p.jsx(
8049
8070
  Fe,
8050
8071
  {
8051
- ...C,
8052
- onOptionsRequest: C.fun ? async (E, A) => await l(E, A, t, C.id) : void 0,
8053
- onChange: (E) => y(C.id, E),
8054
- onBlur: () => F(C.id),
8072
+ ...T,
8073
+ onOptionsRequest: T.fun ? async (E, A) => await l(E, A, t, T.id) : void 0,
8074
+ onChange: (E) => y(T.id, E),
8075
+ onBlur: () => F(T.id),
8055
8076
  onContextMenu: f,
8056
8077
  onClick: () => {
8057
- (C.shape == "BTN" || C.shape == "CFM") && O(C.id, C.fun);
8078
+ (T.shape == "BTN" || T.shape == "CFM") && O(T.id, T.fun);
8058
8079
  },
8059
8080
  data: {
8060
- ...C.data,
8081
+ ...T.data,
8061
8082
  autocomplete: "off"
8062
8083
  }
8063
8084
  }
@@ -8071,8 +8092,8 @@ const Ye = {
8071
8092
  id: "1",
8072
8093
  horizontal: !0,
8073
8094
  justify: "start",
8074
- content: W.map((C) => ({
8075
- id: C.props.id
8095
+ content: W.map((T) => ({
8096
+ id: T.props.id
8076
8097
  }))
8077
8098
  }
8078
8099
  ]
@@ -8085,24 +8106,24 @@ const Ye = {
8085
8106
  );
8086
8107
  };
8087
8108
  export {
8088
- Xo as AppBar,
8089
- cn as Autocomplete,
8109
+ ea as AppBar,
8110
+ dn as Autocomplete,
8090
8111
  me as Button,
8091
- to as ButtonList,
8092
- rr as Checkbox,
8093
- dn as Chips,
8094
- Ht as Combobox,
8095
- Qo as DashList,
8096
- Zo as DataTableComponent,
8097
- un as DatePicker,
8098
- ea as Drawer,
8099
- ta as Field,
8100
- Kr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
8112
+ so as ButtonList,
8113
+ nr as Checkbox,
8114
+ pn as Chips,
8115
+ Kt as Combobox,
8116
+ ta as DashList,
8117
+ ra as DataTableComponent,
8118
+ fn as DatePicker,
8119
+ na as Drawer,
8120
+ sa as Field,
8121
+ Jr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
8101
8122
  ie as Icon,
8102
- ra as InputPanel,
8103
- ao as Password,
8104
- is as TabBar,
8105
- uo as Textarea,
8123
+ oa as InputPanel,
8124
+ co as Password,
8125
+ cs as TabBar,
8126
+ ho as Textarea,
8106
8127
  _e as Textfield,
8107
- Jo as configurePaths
8128
+ Zo as configurePaths
8108
8129
  };