@sme.up/ketchup2 2.0.0-SNAPSHOT-20250624105358 → 2.0.0-SNAPSHOT-20250624130438

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.
@@ -55,17 +55,17 @@ function Br() {
55
55
  return p.$$typeof === k ? null : p.displayName || p.name || null;
56
56
  if (typeof p == "string") return p;
57
57
  switch (p) {
58
- case v:
58
+ case b:
59
59
  return "Fragment";
60
- case S:
60
+ case w:
61
61
  return "Profiler";
62
- case x:
62
+ case v:
63
63
  return "StrictMode";
64
- case g:
64
+ case y:
65
65
  return "Suspense";
66
- case E:
67
- return "SuspenseList";
68
66
  case P:
67
+ return "SuspenseList";
68
+ case D:
69
69
  return "Activity";
70
70
  }
71
71
  if (typeof p == "object")
@@ -74,19 +74,19 @@ function Br() {
74
74
  ), p.$$typeof) {
75
75
  case h:
76
76
  return "Portal";
77
- case R:
77
+ case _:
78
78
  return (p.displayName || "Context") + ".Provider";
79
- case w:
79
+ case S:
80
80
  return (p._context.displayName || "Context") + ".Consumer";
81
+ case O:
82
+ var x = p.render;
83
+ return p = p.displayName, p || (p = x.displayName || x.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
84
+ case E:
85
+ return x = p.displayName || null, x !== null ? x : r(p.type) || "Memo";
81
86
  case T:
82
- var b = p.render;
83
- return p = p.displayName, p || (p = b.displayName || b.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
84
- case _:
85
- return b = p.displayName || null, b !== null ? b : r(p.type) || "Memo";
86
- case $:
87
- b = p._payload, p = p._init;
87
+ x = p._payload, p = p._init;
88
88
  try {
89
- return r(p(b));
89
+ return r(p(x));
90
90
  } catch {
91
91
  }
92
92
  }
@@ -98,27 +98,27 @@ function Br() {
98
98
  function t(p) {
99
99
  try {
100
100
  e(p);
101
- var b = !1;
101
+ var x = !1;
102
102
  } catch {
103
- b = !0;
103
+ x = !0;
104
104
  }
105
- if (b) {
106
- b = console;
107
- var j = b.error, A = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
108
- return j.call(
109
- b,
105
+ if (x) {
106
+ x = console;
107
+ var R = x.error, A = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
108
+ return R.call(
109
+ x,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
111
  A
112
112
  ), e(p);
113
113
  }
114
114
  }
115
115
  function n(p) {
116
- if (p === v) return "<>";
117
- if (typeof p == "object" && p !== null && p.$$typeof === $)
116
+ if (p === b) return "<>";
117
+ if (typeof p == "object" && p !== null && p.$$typeof === T)
118
118
  return "<...>";
119
119
  try {
120
- var b = r(p);
121
- return b ? "<" + b + ">" : "<...>";
120
+ var x = r(p);
121
+ return x ? "<" + x + ">" : "<...>";
122
122
  } catch {
123
123
  return "<...>";
124
124
  }
@@ -132,20 +132,20 @@ function Br() {
132
132
  }
133
133
  function i(p) {
134
134
  if (C.call(p, "key")) {
135
- var b = Object.getOwnPropertyDescriptor(p, "key").get;
136
- if (b && b.isReactWarning) return !1;
135
+ var x = Object.getOwnPropertyDescriptor(p, "key").get;
136
+ if (x && x.isReactWarning) return !1;
137
137
  }
138
138
  return p.key !== void 0;
139
139
  }
140
- function o(p, b) {
141
- function j() {
140
+ function o(p, x) {
141
+ function R() {
142
142
  B || (B = !0, console.error(
143
143
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
144
- b
144
+ x
145
145
  ));
146
146
  }
147
- j.isReactWarning = !0, Object.defineProperty(p, "key", {
148
- get: j,
147
+ R.isReactWarning = !0, Object.defineProperty(p, "key", {
148
+ get: R,
149
149
  configurable: !0
150
150
  });
151
151
  }
@@ -155,14 +155,14 @@ function Br() {
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), p = this.props.ref, p !== void 0 ? p : null;
157
157
  }
158
- function l(p, b, j, A, D, L, V, Y) {
159
- return j = L.ref, p = {
158
+ function l(p, x, R, A, $, L, V, Y) {
159
+ return R = L.ref, p = {
160
160
  $$typeof: m,
161
161
  type: p,
162
- key: b,
162
+ key: x,
163
163
  props: L,
164
- _owner: D
165
- }, (j !== void 0 ? j : null) !== null ? Object.defineProperty(p, "ref", {
164
+ _owner: $
165
+ }, (R !== void 0 ? R : null) !== null ? Object.defineProperty(p, "ref", {
166
166
  enumerable: !1,
167
167
  get: c
168
168
  }) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
@@ -187,11 +187,11 @@ function Br() {
187
187
  value: Y
188
188
  }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
189
189
  }
190
- function f(p, b, j, A, D, L, V, Y) {
191
- var F = b.children;
190
+ function f(p, x, R, A, $, L, V, Y) {
191
+ var F = x.children;
192
192
  if (F !== void 0)
193
193
  if (A)
194
- if (O(F)) {
194
+ if (j(F)) {
195
195
  for (A = 0; A < F.length; A++)
196
196
  u(F[A]);
197
197
  Object.freeze && Object.freeze(F);
@@ -200,9 +200,9 @@ function Br() {
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
202
  else u(F);
203
- if (C.call(b, "key")) {
203
+ if (C.call(x, "key")) {
204
204
  F = r(p);
205
- var J = Object.keys(b).filter(function(ae) {
205
+ var J = Object.keys(x).filter(function(ae) {
206
206
  return ae !== "key";
207
207
  });
208
208
  A = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", I[F + A] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -218,21 +218,21 @@ React keys must be passed directly to JSX without using spread:
218
218
  F
219
219
  ), I[F + A] = !0);
220
220
  }
221
- if (F = null, j !== void 0 && (t(j), F = "" + j), i(b) && (t(b.key), F = "" + b.key), "key" in b) {
222
- j = {};
223
- for (var G in b)
224
- G !== "key" && (j[G] = b[G]);
225
- } else j = b;
221
+ if (F = null, R !== void 0 && (t(R), F = "" + R), i(x) && (t(x.key), F = "" + x.key), "key" in x) {
222
+ R = {};
223
+ for (var G in x)
224
+ G !== "key" && (R[G] = x[G]);
225
+ } else R = x;
226
226
  return F && o(
227
- j,
227
+ R,
228
228
  typeof p == "function" ? p.displayName || p.name || "Unknown" : p
229
229
  ), l(
230
230
  p,
231
231
  F,
232
232
  L,
233
- D,
233
+ $,
234
234
  s(),
235
- j,
235
+ R,
236
236
  V,
237
237
  Y
238
238
  );
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  function u(p) {
241
241
  typeof p == "object" && p !== null && p.$$typeof === m && p._store && (p._store.validated = 1);
242
242
  }
243
- var d = nt, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), R = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), W = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, O = Array.isArray, M = console.createTask ? console.createTask : function() {
243
+ var d = nt, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), W = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  d = {
@@ -252,27 +252,27 @@ React keys must be passed directly to JSX without using spread:
252
252
  d,
253
253
  a
254
254
  )(), Z = M(n(a)), I = {};
255
- Ne.Fragment = v, Ne.jsx = function(p, b, j, A, D) {
255
+ Ne.Fragment = b, Ne.jsx = function(p, x, R, A, $) {
256
256
  var L = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return f(
258
258
  p,
259
- b,
260
- j,
259
+ x,
260
+ R,
261
261
  !1,
262
262
  A,
263
- D,
263
+ $,
264
264
  L ? Error("react-stack-top-frame") : z,
265
265
  L ? M(n(p)) : Z
266
266
  );
267
- }, Ne.jsxs = function(p, b, j, A, D) {
267
+ }, Ne.jsxs = function(p, x, R, A, $) {
268
268
  var L = 1e4 > W.recentlyCreatedOwnerStacks++;
269
269
  return f(
270
270
  p,
271
- b,
272
- j,
271
+ x,
272
+ R,
273
273
  !0,
274
274
  A,
275
- D,
275
+ $,
276
276
  L ? Error("react-stack-top-frame") : z,
277
277
  L ? M(n(p)) : Z
278
278
  );
@@ -283,12 +283,12 @@ var Mt;
283
283
  function Hr() {
284
284
  return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? Ge.exports = Wr() : Ge.exports = Br()), Ge.exports;
285
285
  }
286
- var y = Hr();
286
+ var g = Hr();
287
287
  const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
288
288
  const n = {
289
289
  container: `smp-label ${e ? "smp-label-disabled" : ""}`
290
290
  };
291
- return /* @__PURE__ */ y.jsx("label", { className: n.container, htmlFor: t, children: r });
291
+ return /* @__PURE__ */ g.jsx("label", { className: n.container, htmlFor: t, children: r });
292
292
  }, ge = {
293
293
  "smp-layout": "_smp-layout_xrjwg_1",
294
294
  "smp-layout-horizontal": "_smp-layout-horizontal_xrjwg_9",
@@ -365,48 +365,48 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
365
365
  e.sections ?? [],
366
366
  Object.keys(t)
367
367
  ), i = (d) => d.reduce((m, h) => {
368
- var R, T;
369
- let v = "", x = {}, S = {}, w = "";
370
- return (R = h.sections) != null && R.length ? (v = ge["smp-layout-section-grid"], x = i(h.sections), h.gridCols === void 0 && (w = ge[h.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (h.horizontal || Vt(h.sections)) && (S = Ft(
368
+ var _, O;
369
+ let b = "", v = {}, w = {}, S = "";
370
+ return (_ = h.sections) != null && _.length ? (b = ge["smp-layout-section-grid"], v = i(h.sections), h.gridCols === void 0 && (S = ge[h.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (h.horizontal || Vt(h.sections)) && (w = Ft(
371
371
  h.sections,
372
372
  h.horizontal ? n : s
373
- )))) : (T = h.content) != null && T.length && (h.gridCols !== void 0 && h.gridCols > 0 ? (v = ge["smp-layout-section-grid"], w = ge["smp-grid-template-cols"], S = {
373
+ )))) : (O = h.content) != null && O.length && (h.gridCols !== void 0 && h.gridCols > 0 ? (b = ge["smp-layout-section-grid"], S = ge["smp-grid-template-cols"], w = {
374
374
  [n]: `repeat(${h.gridCols}, 1fr)`
375
- }) : v = ge["smp-layout-section-flex"]), {
375
+ }) : b = ge["smp-layout-section-flex"]), {
376
376
  ...m,
377
- ...x,
377
+ ...v,
378
378
  [h.id]: {
379
- classes: `${v} ${ge[h.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${h.justify ? `smp-justifyContent-${h.justify}` : ""} ${h.align ? `smp-alignItems-${h.align}` : ""}`,
380
- styles: S
379
+ classes: `${b} ${ge[h.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${S} ${h.justify ? `smp-justifyContent-${h.justify}` : ""} ${h.align ? `smp-alignItems-${h.align}` : ""}`,
380
+ styles: w
381
381
  }
382
382
  };
383
383
  }, {}), o = i(a), c = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, l = e.horizontal || Vt(e.sections || []) ? Ft(
384
384
  a,
385
385
  e.horizontal ? n : s
386
386
  ) : {}, f = (d) => {
387
- var h, v;
388
- const m = /* @__PURE__ */ y.jsx(
387
+ var h, b;
388
+ const m = /* @__PURE__ */ g.jsx(
389
389
  "div",
390
390
  {
391
391
  "smp-id": `section-${d.id}`,
392
392
  className: o[d.id].classes,
393
393
  style: o[d.id].styles,
394
- children: (h = d.sections) != null && h.length ? d.sections.map((x) => f(x)) : (v = d.content) == null ? void 0 : v.map(
395
- (x) => u(x, d.justify, d.align)
394
+ children: (h = d.sections) != null && h.length ? d.sections.map((v) => f(v)) : (b = d.content) == null ? void 0 : b.map(
395
+ (v) => u(v, d.justify, d.align)
396
396
  )
397
397
  },
398
398
  `section-${d.id}`
399
399
  );
400
- return d.title ? /* @__PURE__ */ y.jsxs(
400
+ return d.title ? /* @__PURE__ */ g.jsxs(
401
401
  "div",
402
402
  {
403
403
  className: ge["smp-layout-section-with-title"],
404
404
  children: [
405
- /* @__PURE__ */ y.jsx(
405
+ /* @__PURE__ */ g.jsx(
406
406
  "span",
407
407
  {
408
408
  className: `${ge["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
409
- children: /* @__PURE__ */ y.jsx(Ae, { label: d.title })
409
+ children: /* @__PURE__ */ g.jsx(Ae, { label: d.title })
410
410
  }
411
411
  ),
412
412
  m
@@ -415,24 +415,24 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
415
415
  `title-section-${d.id}`
416
416
  ) : m;
417
417
  }, u = (d, m, h) => {
418
- const v = t[d.id];
419
- if (!v) return null;
420
- const S = {
418
+ const b = t[d.id];
419
+ if (!b) return null;
420
+ const w = {
421
421
  gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
422
422
  gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
423
- }, w = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${h ? `smp-alignItems-${h}` : ""}`;
424
- return /* @__PURE__ */ y.jsx(
423
+ }, S = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${h ? `smp-alignItems-${h}` : ""}`;
424
+ return /* @__PURE__ */ g.jsx(
425
425
  "div",
426
426
  {
427
- className: w,
428
- style: S,
427
+ className: S,
428
+ style: w,
429
429
  "smp-id": d.id,
430
- children: v
430
+ children: b
431
431
  },
432
432
  d.id
433
433
  );
434
434
  };
435
- return /* @__PURE__ */ y.jsx("div", { className: c, style: l, "smp-id": "layout", children: a.map((d) => f(d)) });
435
+ return /* @__PURE__ */ g.jsx("div", { className: c, style: l, "smp-id": "layout", children: a.map((d) => f(d)) });
436
436
  }, re = {
437
437
  AUTOCOMPLETE: "ACP",
438
438
  BUTTON_LIST: "BTL",
@@ -630,23 +630,23 @@ function dt({
630
630
  requestAnimationFrame(i);
631
631
  return;
632
632
  }
633
- let v = l + window.scrollY, x = f + window.scrollX;
633
+ let b = l + window.scrollY, v = f + window.scrollX;
634
634
  switch (r) {
635
635
  case "top":
636
- v -= m;
636
+ b -= m;
637
637
  break;
638
638
  case "bottom":
639
- v += d;
639
+ b += d;
640
640
  break;
641
641
  case "left":
642
- x -= h;
642
+ v -= h;
643
643
  break;
644
644
  case "right":
645
- x += u;
645
+ v += u;
646
646
  break;
647
647
  }
648
648
  requestAnimationFrame(() => {
649
- c.style.transform = `translate(${x}px, ${v}px)`, c.style.opacity = "1";
649
+ c.style.transform = `translate(${v}px, ${b}px)`, c.style.opacity = "1";
650
650
  });
651
651
  }, [r]);
652
652
  return Vr(() => {
@@ -683,7 +683,7 @@ const Fe = (r, e, t) => {
683
683
  const s = {
684
684
  container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${t ? `smp-helper-text-${t}` : ""}`
685
685
  };
686
- return /* @__PURE__ */ y.jsx("label", { className: s.container, id: n, children: r });
686
+ return /* @__PURE__ */ g.jsx("label", { className: s.container, id: n, children: r });
687
687
  };
688
688
  function en(r, e) {
689
689
  if (r == null) return {};
@@ -736,10 +736,10 @@ function rn() {
736
736
  throw new TypeError("invalid type");
737
737
  var h = m;
738
738
  if (d && typeof d == "object")
739
- for (var v, x = Object.keys(d).sort(), S = 0; S < x.length; S++) {
740
- if (v = x[S], !t.test(v))
739
+ for (var b, v = Object.keys(d).sort(), w = 0; w < v.length; w++) {
740
+ if (b = v[w], !t.test(b))
741
741
  throw new TypeError("invalid parameter name");
742
- h += "; " + v + "=" + l(d[v]);
742
+ h += "; " + b + "=" + l(d[b]);
743
743
  }
744
744
  return h;
745
745
  }
@@ -752,18 +752,18 @@ function rn() {
752
752
  var m = d.indexOf(";"), h = m !== -1 ? d.slice(0, m).trim() : d.trim();
753
753
  if (!a.test(h))
754
754
  throw new TypeError("invalid media type");
755
- var v = new f(h.toLowerCase());
755
+ var b = new f(h.toLowerCase());
756
756
  if (m !== -1) {
757
- var x, S, w;
758
- for (r.lastIndex = m; S = r.exec(d); ) {
759
- if (S.index !== m)
757
+ var v, w, S;
758
+ for (r.lastIndex = m; w = r.exec(d); ) {
759
+ if (w.index !== m)
760
760
  throw new TypeError("invalid parameter format");
761
- m += S[0].length, x = S[1].toLowerCase(), w = S[2], w.charCodeAt(0) === 34 && (w = w.slice(1, -1), w.indexOf("\\") !== -1 && (w = w.replace(n, "$1"))), v.parameters[x] = w;
761
+ m += w[0].length, v = w[1].toLowerCase(), S = w[2], S.charCodeAt(0) === 34 && (S = S.slice(1, -1), S.indexOf("\\") !== -1 && (S = S.replace(n, "$1"))), b.parameters[v] = S;
762
762
  }
763
763
  if (m !== d.length)
764
764
  throw new TypeError("invalid parameter format");
765
765
  }
766
- return v;
766
+ return b;
767
767
  }
768
768
  function c(u) {
769
769
  var d;
@@ -873,19 +873,19 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
873
873
  m && u.setAttribute("title", m);
874
874
  var h = e.getAttribute("width");
875
875
  h && u.setAttribute("width", h);
876
- var v = e.getAttribute("height");
877
- v && u.setAttribute("height", v);
878
- var x = Array.from(new Set(gt(gt(gt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
879
- u.setAttribute("class", x);
880
- var S = e.getAttribute("style");
881
- S && u.setAttribute("style", S), u.setAttribute("data-src", c);
882
- var w = [].filter.call(e.attributes, function(Z) {
876
+ var b = e.getAttribute("height");
877
+ b && u.setAttribute("height", b);
878
+ var v = Array.from(new Set(gt(gt(gt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
879
+ u.setAttribute("class", v);
880
+ var w = e.getAttribute("style");
881
+ w && u.setAttribute("style", w), u.setAttribute("data-src", c);
882
+ var S = [].filter.call(e.attributes, function(Z) {
883
883
  return /^data-\w[\w-]*$/.test(Z.name);
884
884
  });
885
- if (Array.prototype.forEach.call(w, function(Z) {
885
+ if (Array.prototype.forEach.call(S, function(Z) {
886
886
  Z.name && Z.value && u.setAttribute(Z.name, Z.value);
887
887
  }), n) {
888
- var R = {
888
+ var _ = {
889
889
  clipPath: ["clip-path"],
890
890
  "color-profile": ["color-profile"],
891
891
  cursor: ["cursor"],
@@ -896,33 +896,33 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
896
896
  path: [],
897
897
  pattern: ["fill", "stroke"],
898
898
  radialGradient: ["fill", "stroke"]
899
- }, T, g, E, _, $;
900
- Object.keys(R).forEach(function(Z) {
901
- T = Z, E = R[Z], g = u.querySelectorAll(T + "[id]");
902
- for (var I = function(A, D) {
903
- _ = g[A].id, $ = _ + "-" + cn();
899
+ }, O, y, P, E, T;
900
+ Object.keys(_).forEach(function(Z) {
901
+ O = Z, P = _[Z], y = u.querySelectorAll(O + "[id]");
902
+ for (var I = function(A, $) {
903
+ E = y[A].id, T = E + "-" + cn();
904
904
  var L;
905
- Array.prototype.forEach.call(E, function(U) {
906
- L = u.querySelectorAll("[" + U + '*="' + _ + '"]');
905
+ Array.prototype.forEach.call(P, function(U) {
906
+ L = u.querySelectorAll("[" + U + '*="' + E + '"]');
907
907
  for (var X = 0, te = L.length; X < te; X++) {
908
908
  var se = L[X].getAttribute(U);
909
- se && !se.match(new RegExp('url\\("?#' + _ + '"?\\)')) || L[X].setAttribute(U, "url(#" + $ + ")");
909
+ se && !se.match(new RegExp('url\\("?#' + E + '"?\\)')) || L[X].setAttribute(U, "url(#" + T + ")");
910
910
  }
911
911
  });
912
912
  for (var V = u.querySelectorAll("[*|href]"), Y = [], F = 0, J = V.length; F < J; F++) {
913
913
  var G = V[F].getAttributeNS(yt, "href");
914
- G && G.toString() === "#" + g[A].id && Y.push(V[F]);
914
+ G && G.toString() === "#" + y[A].id && Y.push(V[F]);
915
915
  }
916
916
  for (var ae = 0, N = Y.length; ae < N; ae++)
917
- Y[ae].setAttributeNS(yt, "href", "#" + $);
918
- g[A].id = $;
919
- }, p = 0, b = g.length; p < b; p++)
917
+ Y[ae].setAttributeNS(yt, "href", "#" + T);
918
+ y[A].id = T;
919
+ }, p = 0, x = y.length; p < x; p++)
920
920
  I(p);
921
921
  });
922
922
  }
923
923
  u.removeAttribute("xmlns:a");
924
- for (var P = u.querySelectorAll("script"), k = [], W, C, O = 0, M = P.length; O < M; O++)
925
- C = P[O].getAttribute("type"), (!C || C === "application/ecmascript" || C === "application/javascript" || C === "text/javascript") && (W = P[O].innerText || P[O].textContent, W && k.push(W), u.removeChild(P[O]));
924
+ for (var D = u.querySelectorAll("script"), k = [], W, C, j = 0, M = D.length; j < M; j++)
925
+ C = D[j].getAttribute("type"), (!C || C === "application/ecmascript" || C === "application/javascript" || C === "text/javascript") && (W = D[j].innerText || D[j].textContent, W && k.push(W), u.removeChild(D[j]));
926
926
  if (k.length > 0 && (t === "always" || t === "once" && !Ht[c])) {
927
927
  for (var B = 0, H = k.length; B < H; B++)
928
928
  new Function(k[B])(window);
@@ -941,14 +941,14 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
941
941
  var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
942
942
  } : s, i = n.afterEach, o = i === void 0 ? function() {
943
943
  } : i, c = n.beforeEach, l = c === void 0 ? function() {
944
- } : c, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d, h = n.httpRequestWithCredentials, v = h === void 0 ? !1 : h, x = n.renumerateIRIElements, S = x === void 0 ? !0 : x;
944
+ } : c, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d, h = n.httpRequestWithCredentials, b = h === void 0 ? !1 : h, v = n.renumerateIRIElements, w = v === void 0 ? !0 : v;
945
945
  if (e && "length" in e)
946
- for (var w = 0, R = 0, T = e.length; R < T; R++)
947
- Gt(e[R], m, S, u, v, l, function(g, E) {
948
- o(g, E), e && "length" in e && e.length === ++w && a(w);
946
+ for (var S = 0, _ = 0, O = e.length; _ < O; _++)
947
+ Gt(e[_], m, w, u, b, l, function(y, P) {
948
+ o(y, P), e && "length" in e && e.length === ++S && a(S);
949
949
  });
950
- else e ? Gt(e, m, S, u, v, l, function(g, E) {
951
- o(g, E), a(1), e = null;
950
+ else e ? Gt(e, m, w, u, b, l, function(y, P) {
951
+ o(y, P), a(1), e = null;
952
952
  }) : a(0);
953
953
  }, ze = { exports: {} }, Je = { exports: {} }, Q = {};
954
954
  /** @license React v16.13.1
@@ -963,67 +963,67 @@ var Kt;
963
963
  function dn() {
964
964
  if (Kt) return Q;
965
965
  Kt = 1;
966
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
967
- function R(g) {
968
- if (typeof g == "object" && g !== null) {
969
- var E = g.$$typeof;
970
- switch (E) {
966
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
967
+ function _(y) {
968
+ if (typeof y == "object" && y !== null) {
969
+ var P = y.$$typeof;
970
+ switch (P) {
971
971
  case e:
972
- switch (g = g.type, g) {
972
+ switch (y = y.type, y) {
973
973
  case c:
974
974
  case l:
975
975
  case n:
976
976
  case a:
977
977
  case s:
978
978
  case u:
979
- return g;
979
+ return y;
980
980
  default:
981
- switch (g = g && g.$$typeof, g) {
981
+ switch (y = y && y.$$typeof, y) {
982
982
  case o:
983
983
  case f:
984
984
  case h:
985
985
  case m:
986
986
  case i:
987
- return g;
987
+ return y;
988
988
  default:
989
- return E;
989
+ return P;
990
990
  }
991
991
  }
992
992
  case t:
993
- return E;
993
+ return P;
994
994
  }
995
995
  }
996
996
  }
997
- function T(g) {
998
- return R(g) === l;
999
- }
1000
- return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = h, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(g) {
1001
- return T(g) || R(g) === c;
1002
- }, Q.isConcurrentMode = T, Q.isContextConsumer = function(g) {
1003
- return R(g) === o;
1004
- }, Q.isContextProvider = function(g) {
1005
- return R(g) === i;
1006
- }, Q.isElement = function(g) {
1007
- return typeof g == "object" && g !== null && g.$$typeof === e;
1008
- }, Q.isForwardRef = function(g) {
1009
- return R(g) === f;
1010
- }, Q.isFragment = function(g) {
1011
- return R(g) === n;
1012
- }, Q.isLazy = function(g) {
1013
- return R(g) === h;
1014
- }, Q.isMemo = function(g) {
1015
- return R(g) === m;
1016
- }, Q.isPortal = function(g) {
1017
- return R(g) === t;
1018
- }, Q.isProfiler = function(g) {
1019
- return R(g) === a;
1020
- }, Q.isStrictMode = function(g) {
1021
- return R(g) === s;
1022
- }, Q.isSuspense = function(g) {
1023
- return R(g) === u;
1024
- }, Q.isValidElementType = function(g) {
1025
- return typeof g == "string" || typeof g == "function" || g === n || g === l || g === a || g === s || g === u || g === d || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === m || g.$$typeof === i || g.$$typeof === o || g.$$typeof === f || g.$$typeof === x || g.$$typeof === S || g.$$typeof === w || g.$$typeof === v);
1026
- }, Q.typeOf = R, Q;
997
+ function O(y) {
998
+ return _(y) === l;
999
+ }
1000
+ return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = h, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(y) {
1001
+ return O(y) || _(y) === c;
1002
+ }, Q.isConcurrentMode = O, Q.isContextConsumer = function(y) {
1003
+ return _(y) === o;
1004
+ }, Q.isContextProvider = function(y) {
1005
+ return _(y) === i;
1006
+ }, Q.isElement = function(y) {
1007
+ return typeof y == "object" && y !== null && y.$$typeof === e;
1008
+ }, Q.isForwardRef = function(y) {
1009
+ return _(y) === f;
1010
+ }, Q.isFragment = function(y) {
1011
+ return _(y) === n;
1012
+ }, Q.isLazy = function(y) {
1013
+ return _(y) === h;
1014
+ }, Q.isMemo = function(y) {
1015
+ return _(y) === m;
1016
+ }, Q.isPortal = function(y) {
1017
+ return _(y) === t;
1018
+ }, Q.isProfiler = function(y) {
1019
+ return _(y) === a;
1020
+ }, Q.isStrictMode = function(y) {
1021
+ return _(y) === s;
1022
+ }, Q.isSuspense = function(y) {
1023
+ return _(y) === u;
1024
+ }, Q.isValidElementType = function(y) {
1025
+ return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === u || y === d || typeof y == "object" && y !== null && (y.$$typeof === h || y.$$typeof === m || y.$$typeof === i || y.$$typeof === o || y.$$typeof === f || y.$$typeof === v || y.$$typeof === w || y.$$typeof === S || y.$$typeof === b);
1026
+ }, Q.typeOf = _, Q;
1027
1027
  }
1028
1028
  var ee = {};
1029
1029
  /** @license React v16.13.1
@@ -1037,12 +1037,12 @@ var ee = {};
1037
1037
  var qt;
1038
1038
  function pn() {
1039
1039
  return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
1040
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
1041
- function R(N) {
1040
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
1041
+ function _(N) {
1042
1042
  return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1043
- N === n || N === l || N === a || N === s || N === u || N === d || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === m || N.$$typeof === i || N.$$typeof === o || N.$$typeof === f || N.$$typeof === x || N.$$typeof === S || N.$$typeof === w || N.$$typeof === v);
1043
+ N === n || N === l || N === a || N === s || N === u || N === d || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === m || N.$$typeof === i || N.$$typeof === o || N.$$typeof === f || N.$$typeof === v || N.$$typeof === w || N.$$typeof === S || N.$$typeof === b);
1044
1044
  }
1045
- function T(N) {
1045
+ function O(N) {
1046
1046
  if (typeof N == "object" && N !== null) {
1047
1047
  var U = N.$$typeof;
1048
1048
  switch (U) {
@@ -1074,47 +1074,47 @@ function pn() {
1074
1074
  }
1075
1075
  }
1076
1076
  }
1077
- var g = c, E = l, _ = o, $ = i, P = e, k = f, W = n, C = h, O = m, M = t, B = a, H = s, z = u, Z = !1;
1077
+ var y = c, P = l, E = o, T = i, D = e, k = f, W = n, C = h, j = m, M = t, B = a, H = s, z = u, Z = !1;
1078
1078
  function I(N) {
1079
- return Z || (Z = !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.")), p(N) || T(N) === c;
1079
+ return Z || (Z = !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.")), p(N) || O(N) === c;
1080
1080
  }
1081
1081
  function p(N) {
1082
- return T(N) === l;
1082
+ return O(N) === l;
1083
1083
  }
1084
- function b(N) {
1085
- return T(N) === o;
1084
+ function x(N) {
1085
+ return O(N) === o;
1086
1086
  }
1087
- function j(N) {
1088
- return T(N) === i;
1087
+ function R(N) {
1088
+ return O(N) === i;
1089
1089
  }
1090
1090
  function A(N) {
1091
1091
  return typeof N == "object" && N !== null && N.$$typeof === e;
1092
1092
  }
1093
- function D(N) {
1094
- return T(N) === f;
1093
+ function $(N) {
1094
+ return O(N) === f;
1095
1095
  }
1096
1096
  function L(N) {
1097
- return T(N) === n;
1097
+ return O(N) === n;
1098
1098
  }
1099
1099
  function V(N) {
1100
- return T(N) === h;
1100
+ return O(N) === h;
1101
1101
  }
1102
1102
  function Y(N) {
1103
- return T(N) === m;
1103
+ return O(N) === m;
1104
1104
  }
1105
1105
  function F(N) {
1106
- return T(N) === t;
1106
+ return O(N) === t;
1107
1107
  }
1108
1108
  function J(N) {
1109
- return T(N) === a;
1109
+ return O(N) === a;
1110
1110
  }
1111
1111
  function G(N) {
1112
- return T(N) === s;
1112
+ return O(N) === s;
1113
1113
  }
1114
1114
  function ae(N) {
1115
- return T(N) === u;
1115
+ return O(N) === u;
1116
1116
  }
1117
- ee.AsyncMode = g, ee.ConcurrentMode = E, ee.ContextConsumer = _, ee.ContextProvider = $, ee.Element = P, ee.ForwardRef = k, ee.Fragment = W, ee.Lazy = C, ee.Memo = O, ee.Portal = M, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = z, ee.isAsyncMode = I, ee.isConcurrentMode = p, ee.isContextConsumer = b, ee.isContextProvider = j, ee.isElement = A, ee.isForwardRef = D, ee.isFragment = L, ee.isLazy = V, ee.isMemo = Y, ee.isPortal = F, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = R, ee.typeOf = T;
1117
+ ee.AsyncMode = y, ee.ConcurrentMode = P, ee.ContextConsumer = E, ee.ContextProvider = T, ee.Element = D, ee.ForwardRef = k, ee.Fragment = W, ee.Lazy = C, ee.Memo = j, ee.Portal = M, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = z, ee.isAsyncMode = I, ee.isConcurrentMode = p, ee.isContextConsumer = x, ee.isContextProvider = R, ee.isElement = A, ee.isForwardRef = $, ee.isFragment = L, ee.isLazy = V, ee.isMemo = Y, ee.isPortal = F, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = _, ee.typeOf = O;
1118
1118
  }()), ee;
1119
1119
  }
1120
1120
  var zt;
@@ -1252,41 +1252,41 @@ function gn() {
1252
1252
  return wt = function(o, c) {
1253
1253
  var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
1254
1254
  function u(p) {
1255
- var b = p && (l && p[l] || p[f]);
1256
- if (typeof b == "function")
1257
- return b;
1255
+ var x = p && (l && p[l] || p[f]);
1256
+ if (typeof x == "function")
1257
+ return x;
1258
1258
  }
1259
1259
  var d = "<<anonymous>>", m = {
1260
- array: S("array"),
1261
- bigint: S("bigint"),
1262
- bool: S("boolean"),
1263
- func: S("function"),
1264
- number: S("number"),
1265
- object: S("object"),
1266
- string: S("string"),
1267
- symbol: S("symbol"),
1268
- any: w(),
1269
- arrayOf: R,
1270
- element: T(),
1271
- elementType: g(),
1272
- instanceOf: E,
1260
+ array: w("array"),
1261
+ bigint: w("bigint"),
1262
+ bool: w("boolean"),
1263
+ func: w("function"),
1264
+ number: w("number"),
1265
+ object: w("object"),
1266
+ string: w("string"),
1267
+ symbol: w("symbol"),
1268
+ any: S(),
1269
+ arrayOf: _,
1270
+ element: O(),
1271
+ elementType: y(),
1272
+ instanceOf: P,
1273
1273
  node: k(),
1274
- objectOf: $,
1275
- oneOf: _,
1276
- oneOfType: P,
1274
+ objectOf: T,
1275
+ oneOf: E,
1276
+ oneOfType: D,
1277
1277
  shape: C,
1278
- exact: O
1278
+ exact: j
1279
1279
  };
1280
- function h(p, b) {
1281
- return p === b ? p !== 0 || 1 / p === 1 / b : p !== p && b !== b;
1280
+ function h(p, x) {
1281
+ return p === x ? p !== 0 || 1 / p === 1 / x : p !== p && x !== x;
1282
1282
  }
1283
- function v(p, b) {
1284
- this.message = p, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
1283
+ function b(p, x) {
1284
+ this.message = p, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
1285
1285
  }
1286
- v.prototype = Error.prototype;
1287
- function x(p) {
1286
+ b.prototype = Error.prototype;
1287
+ function v(p) {
1288
1288
  if (process.env.NODE_ENV !== "production")
1289
- var b = {}, j = 0;
1289
+ var x = {}, R = 0;
1290
1290
  function A(L, V, Y, F, J, G, ae) {
1291
1291
  if (F = F || d, G = G || Y, ae !== t) {
1292
1292
  if (c) {
@@ -1296,190 +1296,190 @@ function gn() {
1296
1296
  throw N.name = "Invariant Violation", N;
1297
1297
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1298
1298
  var U = F + ":" + Y;
1299
- !b[U] && // Avoid spamming the console because they are often not actionable except for lib authors
1300
- j < 3 && (a(
1299
+ !x[U] && // Avoid spamming the console because they are often not actionable except for lib authors
1300
+ R < 3 && (a(
1301
1301
  "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1302
- ), b[U] = !0, j++);
1302
+ ), x[U] = !0, R++);
1303
1303
  }
1304
1304
  }
1305
- return V[Y] == null ? L ? V[Y] === null ? new v("The " + J + " `" + G + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new v("The " + J + " `" + G + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : p(V, Y, F, J, G);
1305
+ return V[Y] == null ? L ? V[Y] === null ? new b("The " + J + " `" + G + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new b("The " + J + " `" + G + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : p(V, Y, F, J, G);
1306
1306
  }
1307
- var D = A.bind(null, !1);
1308
- return D.isRequired = A.bind(null, !0), D;
1307
+ var $ = A.bind(null, !1);
1308
+ return $.isRequired = A.bind(null, !0), $;
1309
1309
  }
1310
- function S(p) {
1311
- function b(j, A, D, L, V, Y) {
1312
- var F = j[A], J = H(F);
1310
+ function w(p) {
1311
+ function x(R, A, $, L, V, Y) {
1312
+ var F = R[A], J = H(F);
1313
1313
  if (J !== p) {
1314
1314
  var G = z(F);
1315
- return new v(
1316
- "Invalid " + L + " `" + V + "` of type " + ("`" + G + "` supplied to `" + D + "`, expected ") + ("`" + p + "`."),
1315
+ return new b(
1316
+ "Invalid " + L + " `" + V + "` of type " + ("`" + G + "` supplied to `" + $ + "`, expected ") + ("`" + p + "`."),
1317
1317
  { expectedType: p }
1318
1318
  );
1319
1319
  }
1320
1320
  return null;
1321
1321
  }
1322
- return x(b);
1322
+ return v(x);
1323
1323
  }
1324
- function w() {
1325
- return x(i);
1324
+ function S() {
1325
+ return v(i);
1326
1326
  }
1327
- function R(p) {
1328
- function b(j, A, D, L, V) {
1327
+ function _(p) {
1328
+ function x(R, A, $, L, V) {
1329
1329
  if (typeof p != "function")
1330
- return new v("Property `" + V + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
1331
- var Y = j[A];
1330
+ return new b("Property `" + V + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
1331
+ var Y = R[A];
1332
1332
  if (!Array.isArray(Y)) {
1333
1333
  var F = H(Y);
1334
- return new v("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + D + "`, expected an array."));
1334
+ return new b("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected an array."));
1335
1335
  }
1336
1336
  for (var J = 0; J < Y.length; J++) {
1337
- var G = p(Y, J, D, L, V + "[" + J + "]", t);
1337
+ var G = p(Y, J, $, L, V + "[" + J + "]", t);
1338
1338
  if (G instanceof Error)
1339
1339
  return G;
1340
1340
  }
1341
1341
  return null;
1342
1342
  }
1343
- return x(b);
1343
+ return v(x);
1344
1344
  }
1345
- function T() {
1346
- function p(b, j, A, D, L) {
1347
- var V = b[j];
1345
+ function O() {
1346
+ function p(x, R, A, $, L) {
1347
+ var V = x[R];
1348
1348
  if (!o(V)) {
1349
1349
  var Y = H(V);
1350
- return new v("Invalid " + D + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement."));
1350
+ return new b("Invalid " + $ + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement."));
1351
1351
  }
1352
1352
  return null;
1353
1353
  }
1354
- return x(p);
1354
+ return v(p);
1355
1355
  }
1356
- function g() {
1357
- function p(b, j, A, D, L) {
1358
- var V = b[j];
1356
+ function y() {
1357
+ function p(x, R, A, $, L) {
1358
+ var V = x[R];
1359
1359
  if (!r.isValidElementType(V)) {
1360
1360
  var Y = H(V);
1361
- return new v("Invalid " + D + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement type."));
1361
+ return new b("Invalid " + $ + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement type."));
1362
1362
  }
1363
1363
  return null;
1364
1364
  }
1365
- return x(p);
1365
+ return v(p);
1366
1366
  }
1367
- function E(p) {
1368
- function b(j, A, D, L, V) {
1369
- if (!(j[A] instanceof p)) {
1370
- var Y = p.name || d, F = I(j[A]);
1371
- return new v("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + D + "`, expected ") + ("instance of `" + Y + "`."));
1367
+ function P(p) {
1368
+ function x(R, A, $, L, V) {
1369
+ if (!(R[A] instanceof p)) {
1370
+ var Y = p.name || d, F = I(R[A]);
1371
+ return new b("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected ") + ("instance of `" + Y + "`."));
1372
1372
  }
1373
1373
  return null;
1374
1374
  }
1375
- return x(b);
1375
+ return v(x);
1376
1376
  }
1377
- function _(p) {
1377
+ function E(p) {
1378
1378
  if (!Array.isArray(p))
1379
1379
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1380
1380
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1381
1381
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1382
- function b(j, A, D, L, V) {
1383
- for (var Y = j[A], F = 0; F < p.length; F++)
1382
+ function x(R, A, $, L, V) {
1383
+ for (var Y = R[A], F = 0; F < p.length; F++)
1384
1384
  if (h(Y, p[F]))
1385
1385
  return null;
1386
1386
  var J = JSON.stringify(p, function(ae, N) {
1387
1387
  var U = z(N);
1388
1388
  return U === "symbol" ? String(N) : N;
1389
1389
  });
1390
- return new v("Invalid " + L + " `" + V + "` of value `" + String(Y) + "` " + ("supplied to `" + D + "`, expected one of " + J + "."));
1390
+ return new b("Invalid " + L + " `" + V + "` of value `" + String(Y) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
1391
1391
  }
1392
- return x(b);
1392
+ return v(x);
1393
1393
  }
1394
- function $(p) {
1395
- function b(j, A, D, L, V) {
1394
+ function T(p) {
1395
+ function x(R, A, $, L, V) {
1396
1396
  if (typeof p != "function")
1397
- return new v("Property `" + V + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
1398
- var Y = j[A], F = H(Y);
1397
+ return new b("Property `" + V + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
1398
+ var Y = R[A], F = H(Y);
1399
1399
  if (F !== "object")
1400
- return new v("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + D + "`, expected an object."));
1400
+ return new b("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected an object."));
1401
1401
  for (var J in Y)
1402
1402
  if (n(Y, J)) {
1403
- var G = p(Y, J, D, L, V + "." + J, t);
1403
+ var G = p(Y, J, $, L, V + "." + J, t);
1404
1404
  if (G instanceof Error)
1405
1405
  return G;
1406
1406
  }
1407
1407
  return null;
1408
1408
  }
1409
- return x(b);
1409
+ return v(x);
1410
1410
  }
1411
- function P(p) {
1411
+ function D(p) {
1412
1412
  if (!Array.isArray(p))
1413
1413
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1414
- for (var b = 0; b < p.length; b++) {
1415
- var j = p[b];
1416
- if (typeof j != "function")
1414
+ for (var x = 0; x < p.length; x++) {
1415
+ var R = p[x];
1416
+ if (typeof R != "function")
1417
1417
  return a(
1418
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(j) + " at index " + b + "."
1418
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(R) + " at index " + x + "."
1419
1419
  ), i;
1420
1420
  }
1421
- function A(D, L, V, Y, F) {
1421
+ function A($, L, V, Y, F) {
1422
1422
  for (var J = [], G = 0; G < p.length; G++) {
1423
- var ae = p[G], N = ae(D, L, V, Y, F, t);
1423
+ var ae = p[G], N = ae($, L, V, Y, F, t);
1424
1424
  if (N == null)
1425
1425
  return null;
1426
1426
  N.data && n(N.data, "expectedType") && J.push(N.data.expectedType);
1427
1427
  }
1428
1428
  var U = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
1429
- return new v("Invalid " + Y + " `" + F + "` supplied to " + ("`" + V + "`" + U + "."));
1429
+ return new b("Invalid " + Y + " `" + F + "` supplied to " + ("`" + V + "`" + U + "."));
1430
1430
  }
1431
- return x(A);
1431
+ return v(A);
1432
1432
  }
1433
1433
  function k() {
1434
- function p(b, j, A, D, L) {
1435
- return M(b[j]) ? null : new v("Invalid " + D + " `" + L + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
1434
+ function p(x, R, A, $, L) {
1435
+ return M(x[R]) ? null : new b("Invalid " + $ + " `" + L + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
1436
1436
  }
1437
- return x(p);
1437
+ return v(p);
1438
1438
  }
1439
- function W(p, b, j, A, D) {
1440
- return new v(
1441
- (p || "React class") + ": " + b + " type `" + j + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
1439
+ function W(p, x, R, A, $) {
1440
+ return new b(
1441
+ (p || "React class") + ": " + x + " type `" + R + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
1442
1442
  );
1443
1443
  }
1444
1444
  function C(p) {
1445
- function b(j, A, D, L, V) {
1446
- var Y = j[A], F = H(Y);
1445
+ function x(R, A, $, L, V) {
1446
+ var Y = R[A], F = H(Y);
1447
1447
  if (F !== "object")
1448
- return new v("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + D + "`, expected `object`."));
1448
+ return new b("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + $ + "`, expected `object`."));
1449
1449
  for (var J in p) {
1450
1450
  var G = p[J];
1451
1451
  if (typeof G != "function")
1452
- return W(D, L, V, J, z(G));
1453
- var ae = G(Y, J, D, L, V + "." + J, t);
1452
+ return W($, L, V, J, z(G));
1453
+ var ae = G(Y, J, $, L, V + "." + J, t);
1454
1454
  if (ae)
1455
1455
  return ae;
1456
1456
  }
1457
1457
  return null;
1458
1458
  }
1459
- return x(b);
1459
+ return v(x);
1460
1460
  }
1461
- function O(p) {
1462
- function b(j, A, D, L, V) {
1463
- var Y = j[A], F = H(Y);
1461
+ function j(p) {
1462
+ function x(R, A, $, L, V) {
1463
+ var Y = R[A], F = H(Y);
1464
1464
  if (F !== "object")
1465
- return new v("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + D + "`, expected `object`."));
1466
- var J = e({}, j[A], p);
1465
+ return new b("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + $ + "`, expected `object`."));
1466
+ var J = e({}, R[A], p);
1467
1467
  for (var G in J) {
1468
1468
  var ae = p[G];
1469
1469
  if (n(p, G) && typeof ae != "function")
1470
- return W(D, L, V, G, z(ae));
1470
+ return W($, L, V, G, z(ae));
1471
1471
  if (!ae)
1472
- return new v(
1473
- "Invalid " + L + " `" + V + "` key `" + G + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(j[A], null, " ") + `
1472
+ return new b(
1473
+ "Invalid " + L + " `" + V + "` key `" + G + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(R[A], null, " ") + `
1474
1474
  Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1475
1475
  );
1476
- var N = ae(Y, G, D, L, V + "." + G, t);
1476
+ var N = ae(Y, G, $, L, V + "." + G, t);
1477
1477
  if (N)
1478
1478
  return N;
1479
1479
  }
1480
1480
  return null;
1481
1481
  }
1482
- return x(b);
1482
+ return v(x);
1483
1483
  }
1484
1484
  function M(p) {
1485
1485
  switch (typeof p) {
@@ -1494,17 +1494,17 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1494
1494
  return p.every(M);
1495
1495
  if (p === null || o(p))
1496
1496
  return !0;
1497
- var b = u(p);
1498
- if (b) {
1499
- var j = b.call(p), A;
1500
- if (b !== p.entries) {
1501
- for (; !(A = j.next()).done; )
1497
+ var x = u(p);
1498
+ if (x) {
1499
+ var R = x.call(p), A;
1500
+ if (x !== p.entries) {
1501
+ for (; !(A = R.next()).done; )
1502
1502
  if (!M(A.value))
1503
1503
  return !1;
1504
1504
  } else
1505
- for (; !(A = j.next()).done; ) {
1506
- var D = A.value;
1507
- if (D && !M(D[1]))
1505
+ for (; !(A = R.next()).done; ) {
1506
+ var $ = A.value;
1507
+ if ($ && !M($[1]))
1508
1508
  return !1;
1509
1509
  }
1510
1510
  } else
@@ -1514,37 +1514,37 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1514
1514
  return !1;
1515
1515
  }
1516
1516
  }
1517
- function B(p, b) {
1518
- return p === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
1517
+ function B(p, x) {
1518
+ return p === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
1519
1519
  }
1520
1520
  function H(p) {
1521
- var b = typeof p;
1522
- return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : B(b, p) ? "symbol" : b;
1521
+ var x = typeof p;
1522
+ return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : B(x, p) ? "symbol" : x;
1523
1523
  }
1524
1524
  function z(p) {
1525
1525
  if (typeof p > "u" || p === null)
1526
1526
  return "" + p;
1527
- var b = H(p);
1528
- if (b === "object") {
1527
+ var x = H(p);
1528
+ if (x === "object") {
1529
1529
  if (p instanceof Date)
1530
1530
  return "date";
1531
1531
  if (p instanceof RegExp)
1532
1532
  return "regexp";
1533
1533
  }
1534
- return b;
1534
+ return x;
1535
1535
  }
1536
1536
  function Z(p) {
1537
- var b = z(p);
1538
- switch (b) {
1537
+ var x = z(p);
1538
+ switch (x) {
1539
1539
  case "array":
1540
1540
  case "object":
1541
- return "an " + b;
1541
+ return "an " + x;
1542
1542
  case "boolean":
1543
1543
  case "date":
1544
1544
  case "regexp":
1545
- return "a " + b;
1545
+ return "a " + x;
1546
1546
  default:
1547
- return b;
1547
+ return x;
1548
1548
  }
1549
1549
  }
1550
1550
  function I(p) {
@@ -1638,11 +1638,11 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
1638
1638
  return t.renderSVG = function() {
1639
1639
  var s = this;
1640
1640
  if (this.reactWrapper instanceof xn(this.reactWrapper).Node) {
1641
- var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError, h = this.props.beforeInjection, v = this.props.afterInjection, x = this.props.wrapper, S, w;
1642
- x === "svg" ? (S = document.createElementNS(Xe, x), S.setAttribute("xmlns", Xe), S.setAttribute("xmlns:xlink", nr), w = document.createElementNS(Xe, x)) : (S = document.createElement(x), w = document.createElement(x)), S.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(S);
1643
- var R = function(_) {
1641
+ var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError, h = this.props.beforeInjection, b = this.props.afterInjection, v = this.props.wrapper, w, S;
1642
+ v === "svg" ? (w = document.createElementNS(Xe, v), w.setAttribute("xmlns", Xe), w.setAttribute("xmlns:xlink", nr), S = document.createElementNS(Xe, v)) : (w = document.createElement(v), S = document.createElement(v)), w.appendChild(S), S.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(w);
1643
+ var _ = function(E) {
1644
1644
  if (s.removeSVG(), !s._isMounted) {
1645
- m(_);
1645
+ m(E);
1646
1646
  return;
1647
1647
  }
1648
1648
  s.setState(function() {
@@ -1651,11 +1651,11 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
1651
1651
  isLoading: !1
1652
1652
  };
1653
1653
  }, function() {
1654
- m(_);
1654
+ m(E);
1655
1655
  });
1656
- }, T = function(_, $) {
1657
- if (_) {
1658
- R(_);
1656
+ }, O = function(E, T) {
1657
+ if (E) {
1658
+ _(E);
1659
1659
  return;
1660
1660
  }
1661
1661
  s._isMounted && s.setState(function() {
@@ -1664,33 +1664,33 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
1664
1664
  };
1665
1665
  }, function() {
1666
1666
  try {
1667
- v($);
1668
- } catch (P) {
1669
- R(P);
1667
+ b(T);
1668
+ } catch (D) {
1669
+ _(D);
1670
1670
  }
1671
1671
  });
1672
- }, g = function(_) {
1673
- if (_.setAttribute("role", "img"), i) {
1674
- var $ = _.querySelector(":scope > desc");
1675
- $ && _.removeChild($);
1676
- var P = document.createElement("desc");
1677
- P.innerHTML = i, _.prepend(P);
1672
+ }, y = function(E) {
1673
+ if (E.setAttribute("role", "img"), i) {
1674
+ var T = E.querySelector(":scope > desc");
1675
+ T && E.removeChild(T);
1676
+ var D = document.createElement("desc");
1677
+ D.innerHTML = i, E.prepend(D);
1678
1678
  }
1679
1679
  if (u) {
1680
- var k = _.querySelector(":scope > title");
1681
- k && _.removeChild(k);
1680
+ var k = E.querySelector(":scope > title");
1681
+ k && E.removeChild(k);
1682
1682
  var W = document.createElement("title");
1683
- W.innerHTML = u, _.prepend(W);
1683
+ W.innerHTML = u, E.prepend(W);
1684
1684
  }
1685
1685
  try {
1686
- h(_);
1686
+ h(E);
1687
1687
  } catch (C) {
1688
- R(C);
1688
+ _(C);
1689
1689
  }
1690
1690
  };
1691
- fn(w, {
1692
- afterEach: T,
1693
- beforeEach: g,
1691
+ fn(S, {
1692
+ afterEach: O,
1693
+ beforeEach: y,
1694
1694
  cacheRequests: d,
1695
1695
  evalScripts: o,
1696
1696
  httpRequestWithCredentials: c,
@@ -1781,21 +1781,21 @@ const Js = (r) => {
1781
1781
  title: u,
1782
1782
  tabIndex: d
1783
1783
  }) => {
1784
- const [m, h] = q(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = v && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), S = sr(`assets/svg/${r}.svg`), w = sr(
1784
+ const [m, h] = q(r), b = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), v = b && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = sr(`assets/svg/${r}.svg`), S = sr(
1785
1785
  `assets/svg/${n}.svg`
1786
- ), R = {
1786
+ ), _ = {
1787
1787
  img: `${l ? "smp-image-interactable" : ""}`,
1788
1788
  svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
1789
- }, T = () => {
1789
+ }, O = () => {
1790
1790
  !a && l && c && c();
1791
- }, g = (E) => {
1792
- !a && l && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), T());
1791
+ }, y = (P) => {
1792
+ !a && l && (P.key === "Enter" || P.key === " ") && (P.preventDefault(), O());
1793
1793
  };
1794
- return /* @__PURE__ */ y.jsx(y.Fragment, { children: x ? /* @__PURE__ */ y.jsx(
1794
+ return /* @__PURE__ */ g.jsx(g.Fragment, { children: v ? /* @__PURE__ */ g.jsx(
1795
1795
  $e,
1796
1796
  {
1797
1797
  src: r,
1798
- fallback: () => /* @__PURE__ */ y.jsx($e, { src: w, wrapper: "svg" }),
1798
+ fallback: () => /* @__PURE__ */ g.jsx($e, { src: S, wrapper: "svg" }),
1799
1799
  width: e || "1rem",
1800
1800
  height: t || "1rem",
1801
1801
  wrapper: "svg",
@@ -1803,34 +1803,34 @@ const Js = (r) => {
1803
1803
  role: "application",
1804
1804
  fill: s,
1805
1805
  "aria-disabled": a,
1806
- className: R.svg,
1807
- onClick: T,
1808
- onKeyDown: g,
1806
+ className: _.svg,
1807
+ onClick: O,
1808
+ onKeyDown: y,
1809
1809
  tabIndex: d
1810
1810
  }
1811
- ) : v ? (
1811
+ ) : b ? (
1812
1812
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
1813
- /* @__PURE__ */ y.jsx(
1813
+ /* @__PURE__ */ g.jsx(
1814
1814
  "img",
1815
1815
  {
1816
1816
  src: m,
1817
1817
  width: e || "16px",
1818
1818
  height: t || "auto",
1819
1819
  alt: u,
1820
- onError: () => h(w),
1821
- onClick: T,
1822
- className: R.img,
1820
+ onError: () => h(S),
1821
+ onClick: O,
1822
+ className: _.img,
1823
1823
  title: u,
1824
- onKeyDown: (E) => {
1825
- (E.key === "Enter" || E.key === " ") && T();
1824
+ onKeyDown: (P) => {
1825
+ (P.key === "Enter" || P.key === " ") && O();
1826
1826
  }
1827
1827
  }
1828
1828
  )
1829
- ) : /* @__PURE__ */ y.jsx(
1829
+ ) : /* @__PURE__ */ g.jsx(
1830
1830
  $e,
1831
1831
  {
1832
- src: S,
1833
- fallback: () => /* @__PURE__ */ y.jsx($e, { src: w, wrapper: "svg" }),
1832
+ src: w,
1833
+ fallback: () => /* @__PURE__ */ g.jsx($e, { src: S, wrapper: "svg" }),
1834
1834
  width: e || "1rem",
1835
1835
  height: t || "1rem",
1836
1836
  wrapper: "svg",
@@ -1838,9 +1838,9 @@ const Js = (r) => {
1838
1838
  role: "application",
1839
1839
  fill: s,
1840
1840
  "aria-disabled": a,
1841
- className: R.svg,
1842
- onClick: T,
1843
- onKeyDown: g,
1841
+ className: _.svg,
1842
+ onClick: O,
1843
+ onKeyDown: y,
1844
1844
  tabIndex: d
1845
1845
  }
1846
1846
  ) });
@@ -1876,48 +1876,48 @@ const Js = (r) => {
1876
1876
  onShapeIconClick: d,
1877
1877
  ref: m,
1878
1878
  inputRef: h,
1879
- onKeyDown: v,
1880
- inputType: x = "text",
1881
- ariaLabel: S = "input field",
1882
- label: w,
1883
- helperText: R = !1,
1884
- error: T,
1885
- appearance: g = "base",
1886
- fullWidth: E = !1,
1887
- _dataComponent: _ = "textfield",
1888
- min: $,
1889
- max: P,
1879
+ onKeyDown: b,
1880
+ inputType: v = "text",
1881
+ ariaLabel: w = "input field",
1882
+ label: S,
1883
+ helperText: _ = !1,
1884
+ error: O,
1885
+ appearance: y = "base",
1886
+ fullWidth: P = !1,
1887
+ _dataComponent: E = "textfield",
1888
+ min: T,
1889
+ max: D,
1890
1890
  step: k,
1891
1891
  inputMode: W = "text",
1892
1892
  width: C
1893
1893
  }) => {
1894
- const O = We(), M = `${O}-helper`, B = T ? "danger" : l, H = T || l == "danger" ? "error" : o, z = R || !!T, Z = (b) => {
1895
- s == null || s(b.target.value);
1894
+ const j = We(), M = `${j}-helper`, B = O ? "danger" : l, H = O || l == "danger" ? "error" : o, z = _ || !!O, Z = (x) => {
1895
+ s == null || s(x.target.value);
1896
1896
  }, I = {
1897
- wrapper: `${ve["smp-textfield-wrapper"]} ${E ? ve["smp-textfield-fullWidth"] : ""}`,
1898
- container: `${ve["smp-textfield"]} ${r ? ve["smp-textfield-disabled"] : ""} ${a ? ve["smp-textfield-placeholder"] : ""} ${c ? ve[`smp-textfield-${c}`] : ""} ${B ? ve[`smp-textfield-${B}`] : ""} ${g ? ve[`smp-textfield-${g}`] : ""} ${i ? "" : ve["smp-textfield-readOnly"]}`,
1897
+ wrapper: `${ve["smp-textfield-wrapper"]} ${P ? ve["smp-textfield-fullWidth"] : ""}`,
1898
+ container: `${ve["smp-textfield"]} ${r ? ve["smp-textfield-disabled"] : ""} ${a ? ve["smp-textfield-placeholder"] : ""} ${c ? ve[`smp-textfield-${c}`] : ""} ${B ? ve[`smp-textfield-${B}`] : ""} ${y ? ve[`smp-textfield-${y}`] : ""} ${i ? "" : ve["smp-textfield-readOnly"]}`,
1899
1899
  input: `${ve["smp-textfield-input"]}`
1900
1900
  };
1901
1901
  if (f && (f !== "notSelectable" || i)) {
1902
- const b = ve[`smp-textfield-variant-${f}`];
1903
- b && (I.container += ` ${b}`);
1902
+ const x = ve[`smp-textfield-variant-${f}`];
1903
+ x && (I.container += ` ${x}`);
1904
1904
  }
1905
1905
  const p = C ? { "--smp-textField-width-base": C } : void 0;
1906
- return /* @__PURE__ */ y.jsxs("div", { className: I.wrapper, "data-component": _, children: [
1907
- w && /* @__PURE__ */ y.jsx(Ae, { label: w, disabled: r, htmlFor: O }),
1908
- /* @__PURE__ */ y.jsxs(
1906
+ return /* @__PURE__ */ g.jsxs("div", { className: I.wrapper, "data-component": E, children: [
1907
+ S && /* @__PURE__ */ g.jsx(Ae, { label: S, disabled: r, htmlFor: j }),
1908
+ /* @__PURE__ */ g.jsxs(
1909
1909
  "div",
1910
1910
  {
1911
1911
  className: I.container,
1912
1912
  ref: m,
1913
1913
  style: p,
1914
1914
  children: [
1915
- t && /* @__PURE__ */ y.jsx(fe, { icon: t, disabled: r }),
1916
- /* @__PURE__ */ y.jsx(
1915
+ t && /* @__PURE__ */ g.jsx(fe, { icon: t, disabled: r }),
1916
+ /* @__PURE__ */ g.jsx(
1917
1917
  "input",
1918
1918
  {
1919
- id: O,
1920
- type: x,
1919
+ id: j,
1920
+ type: v,
1921
1921
  value: e,
1922
1922
  placeholder: a,
1923
1923
  onChange: Z,
@@ -1925,17 +1925,17 @@ const Js = (r) => {
1925
1925
  className: I.input,
1926
1926
  disabled: r,
1927
1927
  readOnly: !i,
1928
- onKeyDown: v,
1929
- "aria-label": S,
1928
+ onKeyDown: b,
1929
+ "aria-label": w,
1930
1930
  ref: h,
1931
1931
  "aria-describedby": z ? M : void 0,
1932
- min: $,
1933
- max: P,
1932
+ min: T,
1933
+ max: D,
1934
1934
  step: k,
1935
1935
  inputMode: W
1936
1936
  }
1937
1937
  ),
1938
- H && /* @__PURE__ */ y.jsx(
1938
+ H && /* @__PURE__ */ g.jsx(
1939
1939
  fe,
1940
1940
  {
1941
1941
  icon: H,
@@ -1950,10 +1950,10 @@ const Js = (r) => {
1950
1950
  ]
1951
1951
  }
1952
1952
  ),
1953
- z && /* @__PURE__ */ y.jsx(
1953
+ z && /* @__PURE__ */ g.jsx(
1954
1954
  jr,
1955
1955
  {
1956
- helperText: T,
1956
+ helperText: O,
1957
1957
  disabled: r,
1958
1958
  state: B,
1959
1959
  id: M
@@ -1982,8 +1982,8 @@ function Pr({
1982
1982
  a(h);
1983
1983
  }, []), d = (m) => {
1984
1984
  if (!i.current) return;
1985
- const h = m * e, v = h + e, x = i.current, S = x.scrollTop, w = S + t;
1986
- h < S ? x.scrollTop = h : v > w && (x.scrollTop = v - t);
1985
+ const h = m * e, b = h + e, v = i.current, w = v.scrollTop, S = w + t;
1986
+ h < w ? v.scrollTop = h : b > S && (v.scrollTop = b - t);
1987
1987
  };
1988
1988
  return {
1989
1989
  virtualItems: f,
@@ -2034,34 +2034,34 @@ const Ze = {
2034
2034
  isOpen: f
2035
2035
  }) => {
2036
2036
  var C;
2037
- const [u, d] = q(""), m = 24, [h, v] = q(
2037
+ const [u, d] = q(""), m = 24, [h, b] = q(
2038
2038
  a !== null ? a : -1
2039
- ), x = s !== void 0 ? s : e.length > wn, S = u ? e.filter(
2040
- (O) => O.label.toLowerCase().includes(u.toLowerCase())
2041
- ) : e, w = (O) => {
2042
- d(O);
2043
- }, { virtualItems: R, containerProps: T, innerProps: g, scrollToIndex: E } = Pr({
2044
- items: S,
2039
+ ), v = s !== void 0 ? s : e.length > wn, w = u ? e.filter(
2040
+ (j) => j.label.toLowerCase().includes(u.toLowerCase())
2041
+ ) : e, S = (j) => {
2042
+ d(j);
2043
+ }, { virtualItems: _, containerProps: O, innerProps: y, scrollToIndex: P } = Pr({
2044
+ items: w,
2045
2045
  itemHeight: m,
2046
2046
  containerHeight: 200,
2047
2047
  overscan: 5
2048
2048
  });
2049
2049
  ne(() => {
2050
- a !== null && a !== h && v(a);
2050
+ a !== null && a !== h && b(a);
2051
2051
  }, [a]), ne(() => {
2052
- h >= 0 && h < S.length && E(h);
2053
- }, [h, S]);
2054
- const _ = (O) => {
2055
- if (O.key === "ArrowDown" || O.key === "ArrowUp") {
2056
- O.preventDefault();
2052
+ h >= 0 && h < w.length && P(h);
2053
+ }, [h, w]);
2054
+ const E = (j) => {
2055
+ if (j.key === "ArrowDown" || j.key === "ArrowUp") {
2056
+ j.preventDefault();
2057
2057
  let M = h;
2058
- O.key === "ArrowDown" ? M = h < S.length - 1 ? h + 1 : 0 : O.key === "ArrowUp" && (M = h > 0 ? h - 1 : S.length - 1), v(M);
2059
- } else O.key === "Enter" ? h >= 0 && h < S.length && (c == null || c(S[h])) : O.key === "Escape" && (O.preventDefault(), O.stopPropagation());
2060
- l && l(O);
2061
- }, $ = (O) => {
2062
- _(O);
2063
- }, P = (O) => {
2064
- _(O);
2058
+ j.key === "ArrowDown" ? M = h < w.length - 1 ? h + 1 : 0 : j.key === "ArrowUp" && (M = h > 0 ? h - 1 : w.length - 1), b(M);
2059
+ } else j.key === "Enter" ? h >= 0 && h < w.length && (c == null || c(w[h])) : j.key === "Escape" && (j.preventDefault(), j.stopPropagation());
2060
+ l && l(j);
2061
+ }, T = (j) => {
2062
+ E(j);
2063
+ }, D = (j) => {
2064
+ E(j);
2065
2065
  }, k = {
2066
2066
  wrapper: `${Ze["smp-list"]}`,
2067
2067
  container: `${Ze["smp-list-container"]}`,
@@ -2070,7 +2070,7 @@ const Ze = {
2070
2070
  }, W = ce(null);
2071
2071
  return ne(() => {
2072
2072
  f && (W != null && W.current) && W.current.focus();
2073
- }, [f, W]), /* @__PURE__ */ y.jsxs(
2073
+ }, [f, W]), /* @__PURE__ */ g.jsxs(
2074
2074
  "div",
2075
2075
  {
2076
2076
  id: r,
@@ -2081,39 +2081,39 @@ const Ze = {
2081
2081
  width: o
2082
2082
  },
2083
2083
  children: [
2084
- x && /* @__PURE__ */ y.jsx(
2084
+ v && /* @__PURE__ */ g.jsx(
2085
2085
  Oe,
2086
2086
  {
2087
2087
  bindValue: u,
2088
2088
  placeholder: "Search...",
2089
- onChange: w,
2090
- onKeyDown: $,
2089
+ onChange: S,
2090
+ onKeyDown: T,
2091
2091
  inputRef: W
2092
2092
  }
2093
2093
  ),
2094
- /* @__PURE__ */ y.jsx(
2094
+ /* @__PURE__ */ g.jsx(
2095
2095
  "div",
2096
2096
  {
2097
- ...T,
2097
+ ...O,
2098
2098
  className: k.container,
2099
2099
  tabIndex: 0,
2100
2100
  role: "listbox",
2101
2101
  "aria-label": "List",
2102
- onKeyDown: P,
2103
- "aria-activedescendant": h >= 0 && h < S.length ? (C = S[h]) == null ? void 0 : C.id : void 0,
2104
- children: /* @__PURE__ */ y.jsx("div", { ...g, className: k.virtualScroll, children: R.map(({ item: O, index: M, offsetTop: B }) => {
2105
- const H = i.includes(O.id);
2102
+ onKeyDown: D,
2103
+ "aria-activedescendant": h >= 0 && h < w.length ? (C = w[h]) == null ? void 0 : C.id : void 0,
2104
+ children: /* @__PURE__ */ g.jsx("div", { ...y, className: k.virtualScroll, children: _.map(({ item: j, index: M, offsetTop: B }) => {
2105
+ const H = i.includes(j.id);
2106
2106
  return (
2107
2107
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
2108
- /* @__PURE__ */ y.jsxs(
2108
+ /* @__PURE__ */ g.jsxs(
2109
2109
  "li",
2110
2110
  {
2111
2111
  role: "option",
2112
- id: O.id,
2112
+ id: j.id,
2113
2113
  "aria-selected": h === M ? "true" : "false",
2114
2114
  tabIndex: -1,
2115
2115
  className: `${k.listItem} ${h === M ? "selected-item" : ""}`,
2116
- "aria-label": O.id + "-" + O.label,
2116
+ "aria-label": j.id + "-" + j.label,
2117
2117
  style: {
2118
2118
  height: `${m}px`,
2119
2119
  lineHeight: `calc(${m}px - 2*2px)`,
@@ -2121,14 +2121,14 @@ const Ze = {
2121
2121
  transform: `translateY(${B}px)`
2122
2122
  },
2123
2123
  onClick: () => {
2124
- c == null || c(O), v(M);
2124
+ c == null || c(j), b(M);
2125
2125
  },
2126
2126
  children: [
2127
- Fe(O.id, O.label, t),
2128
- H && /* @__PURE__ */ y.jsx(fe, { icon: "check", width: 16 })
2127
+ Fe(j.id, j.label, t),
2128
+ H && /* @__PURE__ */ g.jsx(fe, { icon: "check", width: 16 })
2129
2129
  ]
2130
2130
  },
2131
- O.id
2131
+ j.id
2132
2132
  )
2133
2133
  );
2134
2134
  }) })
@@ -2152,7 +2152,7 @@ const Ze = {
2152
2152
  a(
2153
2153
  Fe(e, t, r)
2154
2154
  );
2155
- }, [t, r]), /* @__PURE__ */ y.jsx(Oe, { ...n, bindValue: s });
2155
+ }, [t, r]), /* @__PURE__ */ g.jsx(Oe, { ...n, bindValue: s });
2156
2156
  }, En = (r) => {
2157
2157
  const e = ce(null);
2158
2158
  return ne(() => () => {
@@ -2187,46 +2187,46 @@ const Ar = ({
2187
2187
  _multiActiveIndex: d,
2188
2188
  ...m
2189
2189
  }) => {
2190
- const h = ce(null), [v, x] = q(r), [S, w] = q(e), [R, T] = q(!1), [g, E] = q(t || []), [_, $] = q(0), [P, k] = q([r]), { anchorRef: W, targetRef: C, anchorWidth: O } = dt({
2190
+ const h = ce(null), [b, v] = q(r), [w, S] = q(e), [_, O] = q(!1), [y, P] = q(t || []), [E, T] = q(0), [D, k] = q([r]), { anchorRef: W, targetRef: C, anchorWidth: j } = dt({
2191
2191
  position: "bottom",
2192
- enabled: R
2192
+ enabled: _
2193
2193
  }), M = le(() => {
2194
2194
  var p;
2195
- T(!1), (p = h == null ? void 0 : h.current) == null || p.focus();
2195
+ O(!1), (p = h == null ? void 0 : h.current) == null || p.focus();
2196
2196
  }, []);
2197
2197
  Pe(C, () => M());
2198
2198
  const B = En(400), H = (p) => {
2199
2199
  p.length >= a ? c && u && B(async () => {
2200
- const b = await u(c, p);
2201
- E(b), $(b.length > 0 ? 0 : -1), T(!0);
2202
- }) : M(), x(p), w(e), l || f == null || f(p, e);
2200
+ const x = await u(c, p);
2201
+ P(x), T(x.length > 0 ? 0 : -1), O(!0);
2202
+ }) : M(), v(p), S(e), l || f == null || f(p, e);
2203
2203
  }, z = (p) => {
2204
- l ? (x(""), w("")) : (x(p.id), w(p.label)), f == null || f(p.id, p.label);
2205
- const b = g.findIndex((j) => j.id === p.id);
2206
- $(b), k([p.id]), M();
2204
+ l ? (v(""), S("")) : (v(p.id), S(p.label)), f == null || f(p.id, p.label);
2205
+ const x = y.findIndex((R) => R.id === p.id);
2206
+ T(x), k([p.id]), M();
2207
2207
  }, Z = (p) => {
2208
- p.key === "Escape" && (M(), $(-1));
2208
+ p.key === "Escape" && (M(), T(-1));
2209
2209
  }, I = (p) => {
2210
- if ((p.key === "ArrowDown" || p.key === "ArrowUp") && (p.preventDefault(), R)) {
2211
- const b = p.key === "ArrowDown" ? (_ + 1) % g.length : (_ - 1 + g.length) % g.length;
2212
- $(b);
2210
+ if ((p.key === "ArrowDown" || p.key === "ArrowUp") && (p.preventDefault(), _)) {
2211
+ const x = p.key === "ArrowDown" ? (E + 1) % y.length : (E - 1 + y.length) % y.length;
2212
+ T(x);
2213
2213
  }
2214
2214
  switch (p.key) {
2215
2215
  case "Enter":
2216
- _ >= 0 && _ < g.length ? z(g[_]) : l && (f == null || f(v, ""), M(), x(""), w(""));
2216
+ E >= 0 && E < y.length ? z(y[E]) : l && (f == null || f(b, ""), M(), v(""), S(""));
2217
2217
  break;
2218
2218
  case "Escape":
2219
- M(), $(-1);
2219
+ M(), T(-1);
2220
2220
  break;
2221
2221
  }
2222
2222
  };
2223
- return /* @__PURE__ */ y.jsxs("div", { "data-component": "autocomplete", children: [
2224
- /* @__PURE__ */ y.jsx(
2223
+ return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
2224
+ /* @__PURE__ */ g.jsx(
2225
2225
  At,
2226
2226
  {
2227
2227
  ...m,
2228
- bindValue: v,
2229
- optionalDisplayValue: S,
2228
+ bindValue: b,
2229
+ optionalDisplayValue: w,
2230
2230
  displayMode: n,
2231
2231
  isEditable: i,
2232
2232
  shapeIcon: "magnify",
@@ -2238,19 +2238,19 @@ const Ar = ({
2238
2238
  "aria-autocomplete": "list"
2239
2239
  }
2240
2240
  ),
2241
- R && /* @__PURE__ */ y.jsx(pt, { children: /* @__PURE__ */ y.jsx(
2241
+ _ && /* @__PURE__ */ g.jsx(pt, { children: /* @__PURE__ */ g.jsx(
2242
2242
  Cr,
2243
2243
  {
2244
- options: g,
2244
+ options: y,
2245
2245
  displayMode: s,
2246
2246
  onClick: z,
2247
2247
  ref: C,
2248
- selectedIndex: _,
2249
- activeIndex: d || P,
2250
- width: O,
2248
+ selectedIndex: E,
2249
+ activeIndex: d || D,
2250
+ width: j,
2251
2251
  showFilter: !1,
2252
2252
  onKeyDown: Z,
2253
- isOpen: R
2253
+ isOpen: _
2254
2254
  }
2255
2255
  ) })
2256
2256
  ] });
@@ -2280,23 +2280,23 @@ const Ar = ({
2280
2280
  loading: d = !1,
2281
2281
  justify: m = "center",
2282
2282
  title: h,
2283
- optionalDisplayValue: v
2283
+ optionalDisplayValue: b
2284
2284
  }) => {
2285
- const x = {
2285
+ const v = {
2286
2286
  container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${m}`
2287
2287
  };
2288
- return /* @__PURE__ */ y.jsx(
2288
+ return /* @__PURE__ */ g.jsx(
2289
2289
  "button",
2290
2290
  {
2291
2291
  "data-component": "button",
2292
- className: x.container,
2292
+ className: v.container,
2293
2293
  onClick: t,
2294
2294
  "aria-label": n,
2295
2295
  disabled: a,
2296
2296
  "aria-busy": d,
2297
- title: h || r || v,
2298
- children: d ? /* @__PURE__ */ y.jsx(fe, { icon: "spinner", state: ir(o), spin: !0 }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
2299
- s && l && /* @__PURE__ */ y.jsx(
2297
+ title: h || r || b,
2298
+ children: d ? /* @__PURE__ */ g.jsx(fe, { icon: "spinner", state: ir(o), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
2299
+ s && l && /* @__PURE__ */ g.jsx(
2300
2300
  fe,
2301
2301
  {
2302
2302
  icon: s,
@@ -2306,7 +2306,7 @@ const Ar = ({
2306
2306
  height: ar(i)
2307
2307
  }
2308
2308
  ),
2309
- f && /* @__PURE__ */ y.jsx("span", { children: v || e })
2309
+ f && /* @__PURE__ */ g.jsx("span", { children: b || e })
2310
2310
  ] })
2311
2311
  }
2312
2312
  );
@@ -2326,23 +2326,23 @@ const Ar = ({
2326
2326
  onClick: d,
2327
2327
  onOptionsRequest: m
2328
2328
  }) => {
2329
- const [h, v] = q(r);
2329
+ const [h, b] = q(r);
2330
2330
  ne(() => {
2331
- !h && m && e && m(e, void 0).then((w) => v(w)).catch((w) => {
2331
+ !h && m && e && m(e, void 0).then((S) => b(S)).catch((S) => {
2332
2332
  console.error(
2333
2333
  "Errore nel caricamento delle opzioni per ButtonList",
2334
- w
2334
+ S
2335
2335
  );
2336
2336
  });
2337
2337
  }, [h, e, m]);
2338
- const x = {
2338
+ const v = {
2339
2339
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
2340
- }, S = h == null ? void 0 : h.map((w, R) => {
2341
- const T = {
2342
- bindValue: w.id,
2343
- optionalDisplayValue: w.label,
2344
- fun: w.fun,
2345
- icon: w.icon,
2340
+ }, w = h == null ? void 0 : h.map((S, _) => {
2341
+ const O = {
2342
+ bindValue: S.id,
2343
+ optionalDisplayValue: S.label,
2344
+ fun: S.fun,
2345
+ icon: S.icon,
2346
2346
  variant: a,
2347
2347
  appearance: i,
2348
2348
  showText: o,
@@ -2352,12 +2352,12 @@ const Ar = ({
2352
2352
  sizing: s,
2353
2353
  justify: u,
2354
2354
  onClick: () => {
2355
- d == null || d(w.id, w.fun);
2355
+ d == null || d(S.id, S.fun);
2356
2356
  }
2357
2357
  };
2358
- return /* @__PURE__ */ y.jsx(Ce, { ...T }, `button-${R}`);
2358
+ return /* @__PURE__ */ g.jsx(Ce, { ...O }, `button-${_}`);
2359
2359
  });
2360
- return /* @__PURE__ */ y.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: S });
2360
+ return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: v.container, children: w });
2361
2361
  }, On = {
2362
2362
  "smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
2363
2363
  }, jn = ({
@@ -2375,9 +2375,9 @@ const Ar = ({
2375
2375
  }, f = {
2376
2376
  wrapper: `${On["smp-checkbox-wrapper"]}`
2377
2377
  };
2378
- return /* @__PURE__ */ y.jsxs("div", { className: f.wrapper, "data-component": e, children: [
2379
- n && /* @__PURE__ */ y.jsx(Ae, { label: n, disabled: t, htmlFor: c }),
2380
- /* @__PURE__ */ y.jsx(
2378
+ return /* @__PURE__ */ g.jsxs("div", { className: f.wrapper, "data-component": e, children: [
2379
+ n && /* @__PURE__ */ g.jsx(Ae, { label: n, disabled: t, htmlFor: c }),
2380
+ /* @__PURE__ */ g.jsx(
2381
2381
  "input",
2382
2382
  {
2383
2383
  "data-component": "checkbox",
@@ -2404,7 +2404,7 @@ const Ar = ({
2404
2404
  const s = Rn[r], a = {
2405
2405
  container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
2406
2406
  };
2407
- return /* @__PURE__ */ y.jsx(
2407
+ return /* @__PURE__ */ g.jsx(
2408
2408
  s,
2409
2409
  {
2410
2410
  className: a.container,
@@ -2428,35 +2428,35 @@ const Ar = ({
2428
2428
  container: `${["smp-chips-container"]}`,
2429
2429
  element: "smp-chips-element"
2430
2430
  }, f = (m) => {
2431
- n == null || n(r.filter((h, v) => v !== m));
2431
+ n == null || n(r.filter((h, b) => b !== m));
2432
2432
  }, u = (m) => {
2433
2433
  c(m);
2434
2434
  }, d = (m) => {
2435
2435
  if (o === null || o === m) return;
2436
- const h = [...r], [v] = h.splice(o, 1);
2437
- h.splice(m, 0, v), n == null || n(h), c(null);
2436
+ const h = [...r], [b] = h.splice(o, 1);
2437
+ h.splice(m, 0, b), n == null || n(h), c(null);
2438
2438
  };
2439
- return /* @__PURE__ */ y.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((m, h) => {
2440
- const v = Fe(
2439
+ return /* @__PURE__ */ g.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((m, h) => {
2440
+ const b = Fe(
2441
2441
  m.bindValue,
2442
2442
  m.optionalDisplayValue,
2443
2443
  t
2444
- ), x = /* @__PURE__ */ y.jsxs(
2444
+ ), v = /* @__PURE__ */ g.jsxs(
2445
2445
  "div",
2446
2446
  {
2447
2447
  className: l.element,
2448
2448
  role: "listitem",
2449
2449
  draggable: i,
2450
2450
  onDragStart: () => u(h),
2451
- onDragOver: (w) => i && w.preventDefault(),
2451
+ onDragOver: (S) => i && S.preventDefault(),
2452
2452
  onDrop: () => i && d(h),
2453
2453
  style: {
2454
2454
  "--smp-chips-backgroundColor-base": a
2455
2455
  },
2456
2456
  children: [
2457
- i && /* @__PURE__ */ y.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
2458
- /* @__PURE__ */ y.jsx(Ve, { variant: "label", bindValue: v, color: s }),
2459
- e && /* @__PURE__ */ y.jsx(
2457
+ i && /* @__PURE__ */ g.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
2458
+ /* @__PURE__ */ g.jsx(Ve, { variant: "label", bindValue: b, color: s }),
2459
+ e && /* @__PURE__ */ g.jsx(
2460
2460
  fe,
2461
2461
  {
2462
2462
  icon: "close",
@@ -2468,7 +2468,7 @@ const Ar = ({
2468
2468
  ]
2469
2469
  },
2470
2470
  `chip-${h}`
2471
- ), S = i && h < r.length - 1 ? /* @__PURE__ */ y.jsx(
2471
+ ), w = i && h < r.length - 1 ? /* @__PURE__ */ g.jsx(
2472
2472
  fe,
2473
2473
  {
2474
2474
  icon: "chevron-right",
@@ -2476,7 +2476,7 @@ const Ar = ({
2476
2476
  },
2477
2477
  `separator-${h}`
2478
2478
  ) : null;
2479
- return [x, S].filter(Boolean);
2479
+ return [v, w].filter(Boolean);
2480
2480
  }) });
2481
2481
  };
2482
2482
  function kt(r, e) {
@@ -2531,37 +2531,37 @@ const Dn = ({
2531
2531
  multiActiveIndex: l,
2532
2532
  ...f
2533
2533
  }) => {
2534
- const u = ce(null), [d, m] = q(!1), [h, v] = q(t), [x, S] = q(-1), [w, R] = q([r]), T = We(), { anchorRef: g, targetRef: E, anchorWidth: _ } = dt({
2534
+ const u = ce(null), [d, m] = q(!1), [h, b] = q(t), [v, w] = q(-1), [S, _] = q([r]), O = We(), { anchorRef: y, targetRef: P, anchorWidth: E } = dt({
2535
2535
  position: "bottom",
2536
2536
  enabled: d
2537
- }), $ = le(() => {
2538
- var O;
2539
- m(!1), (O = u == null ? void 0 : u.current) == null || O.focus();
2537
+ }), T = le(() => {
2538
+ var j;
2539
+ m(!1), (j = u == null ? void 0 : u.current) == null || j.focus();
2540
2540
  }, []);
2541
- Pe(E, () => $()), kt(d, E);
2542
- const P = (O) => {
2543
- e == null || e(O.id, O.label);
2544
- const M = h.findIndex((B) => B.id === O.id);
2545
- S(M), R([O.id]), $();
2546
- }, k = (O) => {
2547
- O.key === "Escape" && ($(), S(-1));
2548
- }, W = (O) => {
2549
- (O.key === "ArrowDown" || O.key === "ArrowUp") && (O.preventDefault(), C());
2541
+ Pe(P, () => T()), kt(d, P);
2542
+ const D = (j) => {
2543
+ e == null || e(j.id, j.label);
2544
+ const M = h.findIndex((B) => B.id === j.id);
2545
+ w(M), _([j.id]), T();
2546
+ }, k = (j) => {
2547
+ j.key === "Escape" && (T(), w(-1));
2548
+ }, W = (j) => {
2549
+ (j.key === "ArrowDown" || j.key === "ArrowUp") && (j.preventDefault(), C());
2550
2550
  }, C = () => {
2551
- o && c && c(o, void 0).then((O) => {
2552
- v(O), S(O.length > 0 ? 0 : -1), m(!0);
2551
+ o && c && c(o, void 0).then((j) => {
2552
+ b(j), w(j.length > 0 ? 0 : -1), m(!0);
2553
2553
  });
2554
2554
  };
2555
- return /* @__PURE__ */ y.jsxs(
2555
+ return /* @__PURE__ */ g.jsxs(
2556
2556
  "div",
2557
2557
  {
2558
2558
  role: "combobox",
2559
2559
  "aria-expanded": d,
2560
- "aria-controls": T,
2561
- "aria-owns": T,
2560
+ "aria-controls": O,
2561
+ "aria-owns": O,
2562
2562
  "data-component": "combobox",
2563
2563
  children: [
2564
- /* @__PURE__ */ y.jsx(
2564
+ /* @__PURE__ */ g.jsx(
2565
2565
  At,
2566
2566
  {
2567
2567
  ...f,
@@ -2573,24 +2573,24 @@ const Dn = ({
2573
2573
  shapeIcon: "arrow_drop_down",
2574
2574
  rotatedShapeIcon: d,
2575
2575
  isEditable: s,
2576
- ref: g,
2576
+ ref: y,
2577
2577
  inputRef: u,
2578
2578
  "aria-autocomplete": "list",
2579
2579
  variant: "notSelectable"
2580
2580
  }
2581
2581
  ),
2582
- d && /* @__PURE__ */ y.jsx(pt, { children: /* @__PURE__ */ y.jsx(
2582
+ d && /* @__PURE__ */ g.jsx(pt, { children: /* @__PURE__ */ g.jsx(
2583
2583
  Cr,
2584
2584
  {
2585
- id: T,
2585
+ id: O,
2586
2586
  options: h,
2587
2587
  displayMode: i,
2588
- ref: E,
2588
+ ref: P,
2589
2589
  isOpen: d,
2590
- selectedIndex: x,
2591
- activeIndex: l || w,
2592
- width: _,
2593
- onClick: P,
2590
+ selectedIndex: v,
2591
+ activeIndex: l || S,
2592
+ width: E,
2593
+ onClick: D,
2594
2594
  onKeyDown: k
2595
2595
  }
2596
2596
  ) })
@@ -2938,29 +2938,29 @@ class ct extends ht {
2938
2938
  } : o;
2939
2939
  const m = this.resolve(e, s);
2940
2940
  let h = m == null ? void 0 : m.res;
2941
- const v = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, S = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, T = s.count !== void 0 && !K(s.count), g = ct.hasDefaultValue(s), E = T ? this.pluralResolver.getSuffix(u, s.count, s) : "", _ = s.ordinal && T ? this.pluralResolver.getSuffix(u, s.count, {
2941
+ const b = (m == null ? void 0 : m.usedKey) || o, v = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !K(s.count), y = ct.hasDefaultValue(s), P = O ? this.pluralResolver.getSuffix(u, s.count, s) : "", E = s.ordinal && O ? this.pluralResolver.getSuffix(u, s.count, {
2942
2942
  ordinal: !1
2943
- }) : "", $ = T && !s.ordinal && s.count === 0, P = $ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${E}`] || s[`defaultValue${_}`] || s.defaultValue;
2943
+ }) : "", T = O && !s.ordinal && s.count === 0, D = T && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${P}`] || s[`defaultValue${E}`] || s.defaultValue;
2944
2944
  let k = h;
2945
- R && !h && g && (k = P);
2945
+ _ && !h && y && (k = D);
2946
2946
  const W = pr(k), C = Object.prototype.toString.apply(k);
2947
- if (R && k && W && S.indexOf(C) < 0 && !(K(w) && Array.isArray(k))) {
2947
+ if (_ && k && W && w.indexOf(C) < 0 && !(K(S) && Array.isArray(k))) {
2948
2948
  if (!s.returnObjects && !this.options.returnObjects) {
2949
2949
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2950
- const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, k, {
2950
+ const j = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, k, {
2951
2951
  ...s,
2952
2952
  ns: c
2953
2953
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
2954
- return a ? (m.res = O, m.usedParams = this.getUsedParamsDetails(s), m) : O;
2954
+ return a ? (m.res = j, m.usedParams = this.getUsedParamsDetails(s), m) : j;
2955
2955
  }
2956
2956
  if (i) {
2957
- const O = Array.isArray(k), M = O ? [] : {}, B = O ? x : v;
2957
+ const j = Array.isArray(k), M = j ? [] : {}, B = j ? v : b;
2958
2958
  for (const H in k)
2959
2959
  if (Object.prototype.hasOwnProperty.call(k, H)) {
2960
2960
  const z = `${B}${i}${H}`;
2961
- g && !h ? M[H] = this.translate(z, {
2961
+ y && !h ? M[H] = this.translate(z, {
2962
2962
  ...s,
2963
- defaultValue: pr(P) ? P[H] : void 0,
2963
+ defaultValue: pr(D) ? D[H] : void 0,
2964
2964
  joinArrays: !1,
2965
2965
  ns: c
2966
2966
  }) : M[H] = this.translate(z, {
@@ -2971,39 +2971,39 @@ class ct extends ht {
2971
2971
  }
2972
2972
  h = M;
2973
2973
  }
2974
- } else if (R && K(w) && Array.isArray(h))
2975
- h = h.join(w), h && (h = this.extendTranslation(h, e, s, n));
2974
+ } else if (_ && K(S) && Array.isArray(h))
2975
+ h = h.join(S), h && (h = this.extendTranslation(h, e, s, n));
2976
2976
  else {
2977
- let O = !1, M = !1;
2978
- !this.isValidLookup(h) && g && (O = !0, h = P), this.isValidLookup(h) || (M = !0, h = o);
2979
- const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : h, z = g && P !== h && this.options.updateMissing;
2980
- if (M || O || z) {
2981
- if (this.logger.log(z ? "updateKey" : "missingKey", u, l, o, z ? P : h), i) {
2982
- const b = this.resolve(o, {
2977
+ let j = !1, M = !1;
2978
+ !this.isValidLookup(h) && y && (j = !0, h = D), this.isValidLookup(h) || (M = !0, h = o);
2979
+ const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : h, z = y && D !== h && this.options.updateMissing;
2980
+ if (M || j || z) {
2981
+ if (this.logger.log(z ? "updateKey" : "missingKey", u, l, o, z ? D : h), i) {
2982
+ const x = this.resolve(o, {
2983
2983
  ...s,
2984
2984
  keySeparator: !1
2985
2985
  });
2986
- b && b.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2986
+ x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2987
2987
  }
2988
2988
  let Z = [];
2989
2989
  const I = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
2990
2990
  if (this.options.saveMissingTo === "fallback" && I && I[0])
2991
- for (let b = 0; b < I.length; b++)
2992
- Z.push(I[b]);
2991
+ for (let x = 0; x < I.length; x++)
2992
+ Z.push(I[x]);
2993
2993
  else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
2994
- const p = (b, j, A) => {
2994
+ const p = (x, R, A) => {
2995
2995
  var L;
2996
- const D = g && A !== h ? A : H;
2997
- this.options.missingKeyHandler ? this.options.missingKeyHandler(b, l, j, D, z, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(b, l, j, D, z, s), this.emit("missingKey", b, l, j, h);
2996
+ const $ = y && A !== h ? A : H;
2997
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, R, $, z, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(x, l, R, $, z, s), this.emit("missingKey", x, l, R, h);
2998
2998
  };
2999
- this.options.saveMissing && (this.options.saveMissingPlurals && T ? Z.forEach((b) => {
3000
- const j = this.pluralResolver.getSuffixes(b, s);
3001
- $ && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((A) => {
3002
- p([b], o + A, s[`defaultValue${A}`] || P);
2999
+ this.options.saveMissing && (this.options.saveMissingPlurals && O ? Z.forEach((x) => {
3000
+ const R = this.pluralResolver.getSuffixes(x, s);
3001
+ T && s[`defaultValue${this.options.pluralSeparator}zero`] && R.indexOf(`${this.options.pluralSeparator}zero`) < 0 && R.push(`${this.options.pluralSeparator}zero`), R.forEach((A) => {
3002
+ p([x], o + A, s[`defaultValue${A}`] || D);
3003
3003
  });
3004
- }) : p(Z, o, P));
3004
+ }) : p(Z, o, D));
3005
3005
  }
3006
- h = this.extendTranslation(h, e, s, m, n), M && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${f}${o}`), (M || O) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, O ? h : void 0, s));
3006
+ h = this.extendTranslation(h, e, s, m, n), M && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${f}${o}`), (M || j) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, j ? h : void 0, s));
3007
3007
  }
3008
3008
  return a ? (m.res = h, m.usedParams = this.getUsedParamsDetails(s), m) : h;
3009
3009
  }
@@ -3057,28 +3057,28 @@ class ct extends ht {
3057
3057
  s = f;
3058
3058
  let u = l.namespaces;
3059
3059
  this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
3060
- const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0, h = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
3061
- u.forEach((x) => {
3062
- var S, w;
3063
- this.isValidLookup(n) || (o = x, !dr[`${v[0]}-${x}`] && ((S = this.utils) != null && S.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(o)) && (dr[`${v[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((R) => {
3064
- var E;
3060
+ const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0, h = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", b = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
3061
+ u.forEach((v) => {
3062
+ var w, S;
3063
+ this.isValidLookup(n) || (o = v, !dr[`${b[0]}-${v}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(o)) && (dr[`${b[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${b.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((_) => {
3064
+ var P;
3065
3065
  if (this.isValidLookup(n)) return;
3066
- i = R;
3067
- const T = [f];
3068
- if ((E = this.i18nFormat) != null && E.addLookupKeys)
3069
- this.i18nFormat.addLookupKeys(T, f, R, x, t);
3066
+ i = _;
3067
+ const O = [f];
3068
+ if ((P = this.i18nFormat) != null && P.addLookupKeys)
3069
+ this.i18nFormat.addLookupKeys(O, f, _, v, t);
3070
3070
  else {
3071
- let _;
3072
- d && (_ = this.pluralResolver.getSuffix(R, t.count, t));
3073
- const $ = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
3074
- if (d && (T.push(f + _), t.ordinal && _.indexOf(P) === 0 && T.push(f + _.replace(P, this.options.pluralSeparator)), m && T.push(f + $)), h) {
3071
+ let E;
3072
+ d && (E = this.pluralResolver.getSuffix(_, t.count, t));
3073
+ const T = `${this.options.pluralSeparator}zero`, D = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
3074
+ if (d && (O.push(f + E), t.ordinal && E.indexOf(D) === 0 && O.push(f + E.replace(D, this.options.pluralSeparator)), m && O.push(f + T)), h) {
3075
3075
  const k = `${f}${this.options.contextSeparator}${t.context}`;
3076
- T.push(k), d && (T.push(k + _), t.ordinal && _.indexOf(P) === 0 && T.push(k + _.replace(P, this.options.pluralSeparator)), m && T.push(k + $));
3076
+ O.push(k), d && (O.push(k + E), t.ordinal && E.indexOf(D) === 0 && O.push(k + E.replace(D, this.options.pluralSeparator)), m && O.push(k + T));
3077
3077
  }
3078
3078
  }
3079
- let g;
3080
- for (; g = T.pop(); )
3081
- this.isValidLookup(n) || (a = g, n = this.getResource(R, x, g, t));
3079
+ let y;
3080
+ for (; y = O.pop(); )
3081
+ this.isValidLookup(n) || (a = y, n = this.getResource(_, v, y, t));
3082
3082
  }));
3083
3083
  });
3084
3084
  }), {
@@ -3270,12 +3270,12 @@ class Yn {
3270
3270
  nestingPrefix: d,
3271
3271
  nestingPrefixEscaped: m,
3272
3272
  nestingSuffix: h,
3273
- nestingSuffixEscaped: v,
3274
- nestingOptionsSeparator: x,
3275
- maxReplaces: S,
3276
- alwaysFormat: w
3273
+ nestingSuffixEscaped: b,
3274
+ nestingOptionsSeparator: v,
3275
+ maxReplaces: w,
3276
+ alwaysFormat: S
3277
3277
  } = e.interpolation;
3278
- this.escape = t !== void 0 ? t : Ln, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Re(a) : i || "{{", this.suffix = o ? Re(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Re(d) : m || Re("$t("), this.nestingSuffix = h ? Re(h) : v || Re(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
3278
+ this.escape = t !== void 0 ? t : Ln, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Re(a) : i || "{{", this.suffix = o ? Re(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Re(d) : m || Re("$t("), this.nestingSuffix = h ? Re(h) : b || Re(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
3279
3279
  }
3280
3280
  reset() {
3281
3281
  this.options && this.init(this.options);
@@ -3289,18 +3289,18 @@ class Yn {
3289
3289
  let a, i, o;
3290
3290
  const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (h) => {
3291
3291
  if (h.indexOf(this.formatSeparator) < 0) {
3292
- const w = yr(t, c, h, this.options.keySeparator, this.options.ignoreJSONStructure);
3293
- return this.alwaysFormat ? this.format(w, void 0, n, {
3292
+ const S = yr(t, c, h, this.options.keySeparator, this.options.ignoreJSONStructure);
3293
+ return this.alwaysFormat ? this.format(S, void 0, n, {
3294
3294
  ...s,
3295
3295
  ...t,
3296
3296
  interpolationkey: h
3297
- }) : w;
3297
+ }) : S;
3298
3298
  }
3299
- const v = h.split(this.formatSeparator), x = v.shift().trim(), S = v.join(this.formatSeparator).trim();
3300
- return this.format(yr(t, c, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, n, {
3299
+ const b = h.split(this.formatSeparator), v = b.shift().trim(), w = b.join(this.formatSeparator).trim();
3300
+ return this.format(yr(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3301
3301
  ...s,
3302
3302
  ...t,
3303
- interpolationkey: x
3303
+ interpolationkey: v
3304
3304
  });
3305
3305
  };
3306
3306
  this.resetRegExp();
@@ -3313,21 +3313,21 @@ class Yn {
3313
3313
  safeValue: (h) => this.escapeValue ? Tt(this.escape(h)) : Tt(h)
3314
3314
  }].forEach((h) => {
3315
3315
  for (o = 0; a = h.regex.exec(e); ) {
3316
- const v = a[1].trim();
3317
- if (i = l(v), i === void 0)
3316
+ const b = a[1].trim();
3317
+ if (i = l(b), i === void 0)
3318
3318
  if (typeof f == "function") {
3319
- const S = f(e, a, s);
3320
- i = K(S) ? S : "";
3321
- } else if (s && Object.prototype.hasOwnProperty.call(s, v))
3319
+ const w = f(e, a, s);
3320
+ i = K(w) ? w : "";
3321
+ } else if (s && Object.prototype.hasOwnProperty.call(s, b))
3322
3322
  i = "";
3323
3323
  else if (u) {
3324
3324
  i = a[0];
3325
3325
  continue;
3326
3326
  } else
3327
- this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), i = "";
3327
+ this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`), i = "";
3328
3328
  else !K(i) && !this.useRawValueToEscape && (i = or(i));
3329
- const x = h.safeValue(i);
3330
- if (e = e.replace(a[0], x), u ? (h.regex.lastIndex += i.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3329
+ const v = h.safeValue(i);
3330
+ if (e = e.replace(a[0], v), u ? (h.regex.lastIndex += i.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3331
3331
  break;
3332
3332
  }
3333
3333
  }), e;
@@ -3347,8 +3347,8 @@ class Yn {
3347
3347
  ...l,
3348
3348
  ...i
3349
3349
  });
3350
- } catch (v) {
3351
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, v), `${c}${f}${d}`;
3350
+ } catch (b) {
3351
+ return this.logger.warn(`failed parsing options string in nesting for key ${c}`, b), `${c}${f}${d}`;
3352
3352
  }
3353
3353
  return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
3354
3354
  };
@@ -3605,10 +3605,10 @@ class Gn extends ht {
3605
3605
  }, h = this.backend.create.bind(this.backend);
3606
3606
  if (h.length < 6)
3607
3607
  try {
3608
- let v;
3609
- h.length === 5 ? v = h(e, t, n, s, m) : v = h(e, t, n, s), v && typeof v.then == "function" ? v.then((x) => o(null, x)).catch(o) : o(null, v);
3610
- } catch (v) {
3611
- o(v);
3608
+ let b;
3609
+ h.length === 5 ? b = h(e, t, n, s, m) : b = h(e, t, n, s), b && typeof b.then == "function" ? b.then((v) => o(null, v)).catch(o) : o(null, b);
3610
+ } catch (b) {
3611
+ o(b);
3612
3612
  }
3613
3613
  else
3614
3614
  h(e, t, n, s, o, m);
@@ -4066,9 +4066,9 @@ function ps({
4066
4066
  c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
4067
4067
  ), [d, m] = q(
4068
4068
  c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
4069
- ), [h, v] = q(
4069
+ ), [h, b] = q(
4070
4070
  c ? c.getDate() : null
4071
- ), x = ce(null), S = ce([]), w = [
4071
+ ), v = ce(null), w = ce([]), S = [
4072
4072
  a(pe.JANUARY),
4073
4073
  a(pe.FEBRUARY),
4074
4074
  a(pe.MARCH),
@@ -4081,7 +4081,7 @@ function ps({
4081
4081
  a(pe.OCTOBER),
4082
4082
  a(pe.NOVEMBER),
4083
4083
  a(pe.DECEMBER)
4084
- ], R = [
4084
+ ], _ = [
4085
4085
  {
4086
4086
  value: a(ue.SUNDAY_SHORT),
4087
4087
  full: a(ue.SUNDAY)
@@ -4110,38 +4110,38 @@ function ps({
4110
4110
  value: a(ue.SATURDAY_SHORT),
4111
4111
  full: a(ue.SATURDAY)
4112
4112
  }
4113
- ], T = (I) => t.some((p) => {
4114
- const b = p.start.getTime(), j = p.end.getTime(), A = I.getTime();
4115
- return A >= b && A <= j;
4116
- }), g = (I) => {
4117
- T(I) || (l(I), v(I.getDate()), e && e(Qr(I)));
4113
+ ], O = (I) => t.some((p) => {
4114
+ const x = p.start.getTime(), R = p.end.getTime(), A = I.getTime();
4115
+ return A >= x && A <= R;
4116
+ }), y = (I) => {
4117
+ O(I) || (l(I), b(I.getDate()), e && e(Qr(I)));
4118
+ }, P = () => {
4119
+ f === 0 ? (u(11), m(d - 1)) : u(f - 1), b(1);
4118
4120
  }, E = () => {
4119
- f === 0 ? (u(11), m(d - 1)) : u(f - 1), v(1);
4120
- }, _ = () => {
4121
- f === 11 ? (u(0), m(d + 1)) : u(f + 1), v(1);
4122
- }, $ = (I, p) => new Date(I, p + 1, 0).getDate(), P = (I, p) => new Date(I, p, 1).getDay(), k = (I) => {
4123
- var b;
4121
+ f === 11 ? (u(0), m(d + 1)) : u(f + 1), b(1);
4122
+ }, T = (I, p) => new Date(I, p + 1, 0).getDate(), D = (I, p) => new Date(I, p, 1).getDay(), k = (I) => {
4123
+ var x;
4124
4124
  const p = M.findIndex(
4125
- (j) => j !== null && j.getDate() === I
4125
+ (R) => R !== null && R.getDate() === I
4126
4126
  );
4127
- p !== -1 && S.current[p] && ((b = S.current[p]) == null || b.focus(), v(I));
4127
+ p !== -1 && w.current[p] && ((x = w.current[p]) == null || x.focus(), b(I));
4128
4128
  }, W = (I, p) => {
4129
- const b = M[p];
4130
- if (!b) return;
4131
- const j = $(d, f), A = b.getDate();
4129
+ const x = M[p];
4130
+ if (!x) return;
4131
+ const R = T(d, f), A = x.getDate();
4132
4132
  switch (I.key) {
4133
4133
  case "ArrowRight":
4134
4134
  I.preventDefault();
4135
4135
  {
4136
- let D = A + 1, L = new Date(d, f, D);
4137
- if (D > j) {
4136
+ let $ = A + 1, L = new Date(d, f, $);
4137
+ if ($ > R) {
4138
4138
  const V = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
4139
- D = 1, L = new Date(V, Y, D), _(), setTimeout(() => {
4139
+ $ = 1, L = new Date(V, Y, $), E(), setTimeout(() => {
4140
4140
  C(1, "forward");
4141
4141
  }, 0);
4142
4142
  return;
4143
4143
  }
4144
- T(L) ? C(D, "forward") : k(D);
4144
+ O(L) ? C($, "forward") : k($);
4145
4145
  }
4146
4146
  break;
4147
4147
  case "Tab":
@@ -4149,113 +4149,113 @@ function ps({
4149
4149
  case "ArrowLeft":
4150
4150
  I.preventDefault();
4151
4151
  {
4152
- let D = A - 1, L = new Date(d, f, D);
4153
- if (D < 1) {
4154
- const V = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, F = $(V, Y);
4155
- D = F, L = new Date(V, Y, D), E(), setTimeout(() => {
4152
+ let $ = A - 1, L = new Date(d, f, $);
4153
+ if ($ < 1) {
4154
+ const V = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, F = T(V, Y);
4155
+ $ = F, L = new Date(V, Y, $), P(), setTimeout(() => {
4156
4156
  C(F, "backward");
4157
4157
  }, 0);
4158
4158
  return;
4159
4159
  }
4160
- T(L) ? C(D, "backward") : k(D);
4160
+ O(L) ? C($, "backward") : k($);
4161
4161
  }
4162
4162
  break;
4163
4163
  case "ArrowUp":
4164
4164
  I.preventDefault();
4165
4165
  {
4166
- let D = A - 7, L = new Date(d, f, D);
4167
- if (D < 1) {
4166
+ let $ = A - 7, L = new Date(d, f, $);
4167
+ if ($ < 1) {
4168
4168
  const V = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1;
4169
- D = $(V, Y) + D, L = new Date(V, Y, D), E(), setTimeout(() => {
4170
- C(D, "backward");
4169
+ $ = T(V, Y) + $, L = new Date(V, Y, $), P(), setTimeout(() => {
4170
+ C($, "backward");
4171
4171
  }, 0);
4172
4172
  return;
4173
4173
  }
4174
- T(L) ? C(D, "backward") : k(D);
4174
+ O(L) ? C($, "backward") : k($);
4175
4175
  }
4176
4176
  break;
4177
4177
  case "ArrowDown":
4178
4178
  I.preventDefault();
4179
4179
  {
4180
- let D = A + 7, L = new Date(d, f, D);
4181
- if (D > j) {
4180
+ let $ = A + 7, L = new Date(d, f, $);
4181
+ if ($ > R) {
4182
4182
  const V = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
4183
- D = D - j, L = new Date(V, Y, D), _(), setTimeout(() => {
4184
- C(D, "forward");
4183
+ $ = $ - R, L = new Date(V, Y, $), E(), setTimeout(() => {
4184
+ C($, "forward");
4185
4185
  }, 0);
4186
4186
  return;
4187
4187
  }
4188
- T(L) ? C(D, "forward") : k(D);
4188
+ O(L) ? C($, "forward") : k($);
4189
4189
  }
4190
4190
  break;
4191
4191
  case "Home":
4192
4192
  I.preventDefault(), C(1, "forward");
4193
4193
  break;
4194
4194
  case "End":
4195
- I.preventDefault(), C(j, "backward");
4195
+ I.preventDefault(), C(R, "backward");
4196
4196
  break;
4197
4197
  case "PageUp":
4198
- I.preventDefault(), E(), setTimeout(() => {
4199
- const D = $(
4198
+ I.preventDefault(), P(), setTimeout(() => {
4199
+ const $ = T(
4200
4200
  f === 0 ? d - 1 : d,
4201
4201
  f === 0 ? 11 : f - 1
4202
- ), L = Math.min(A, D);
4202
+ ), L = Math.min(A, $);
4203
4203
  C(L, "forward");
4204
4204
  }, 0);
4205
4205
  break;
4206
4206
  case "PageDown":
4207
- I.preventDefault(), _(), setTimeout(() => {
4208
- const D = $(
4207
+ I.preventDefault(), E(), setTimeout(() => {
4208
+ const $ = T(
4209
4209
  f === 11 ? d + 1 : d,
4210
4210
  f === 11 ? 0 : f + 1
4211
- ), L = Math.min(A, D);
4211
+ ), L = Math.min(A, $);
4212
4212
  C(L, "forward");
4213
4213
  }, 0);
4214
4214
  break;
4215
4215
  case " ":
4216
4216
  case "Space":
4217
- if (T(b)) return;
4218
- v(b.getDate()), l(b);
4217
+ if (O(x)) return;
4218
+ b(x.getDate()), l(x);
4219
4219
  break;
4220
4220
  case "Enter":
4221
- I.preventDefault(), g(b);
4221
+ I.preventDefault(), y(x);
4222
4222
  break;
4223
4223
  }
4224
4224
  }, C = (I, p) => {
4225
- const b = $(d, f);
4225
+ const x = T(d, f);
4226
4226
  if (p === "forward") {
4227
- for (let j = I; j <= b; j++) {
4228
- const A = new Date(d, f, j);
4229
- if (!T(A)) {
4230
- k(j);
4227
+ for (let R = I; R <= x; R++) {
4228
+ const A = new Date(d, f, R);
4229
+ if (!O(A)) {
4230
+ k(R);
4231
4231
  return;
4232
4232
  }
4233
4233
  }
4234
- _(), setTimeout(() => {
4234
+ E(), setTimeout(() => {
4235
4235
  C(1, "forward");
4236
4236
  }, 0);
4237
4237
  } else {
4238
4238
  for (let L = I; L >= 1; L--) {
4239
4239
  const V = new Date(d, f, L);
4240
- if (!T(V)) {
4240
+ if (!O(V)) {
4241
4241
  k(L);
4242
4242
  return;
4243
4243
  }
4244
4244
  }
4245
- const j = f === 0 ? d - 1 : d, A = f === 0 ? 11 : f - 1, D = $(j, A);
4246
- E(), setTimeout(() => {
4247
- C(D, "backward");
4245
+ const R = f === 0 ? d - 1 : d, A = f === 0 ? 11 : f - 1, $ = T(R, A);
4246
+ P(), setTimeout(() => {
4247
+ C($, "backward");
4248
4248
  }, 0);
4249
4249
  }
4250
4250
  }, M = (() => {
4251
- const I = $(d, f), p = P(d, f), b = [];
4252
- for (let j = 0; j < p; j++)
4253
- b.push(null);
4254
- for (let j = 1; j <= I; j++) {
4255
- const A = new Date(d, f, j);
4256
- b.push(A);
4257
- }
4258
- return b;
4251
+ const I = T(d, f), p = D(d, f), x = [];
4252
+ for (let R = 0; R < p; R++)
4253
+ x.push(null);
4254
+ for (let R = 1; R <= I; R++) {
4255
+ const A = new Date(d, f, R);
4256
+ x.push(A);
4257
+ }
4258
+ return x;
4259
4259
  })(), B = [];
4260
4260
  let H = [];
4261
4261
  M.forEach((I, p) => {
@@ -4268,9 +4268,9 @@ function ps({
4268
4268
  var I;
4269
4269
  if (h !== null) {
4270
4270
  const p = M.findIndex(
4271
- (b) => b !== null && b.getDate() === h
4271
+ (x) => x !== null && x.getDate() === h
4272
4272
  );
4273
- p !== -1 && S.current[p] && ((I = S.current[p]) == null || I.focus());
4273
+ p !== -1 && w.current[p] && ((I = w.current[p]) == null || I.focus());
4274
4274
  }
4275
4275
  }, [f, d, h, M]);
4276
4276
  const z = {
@@ -4279,13 +4279,13 @@ function ps({
4279
4279
  calendar: "smp-datepickercalendar",
4280
4280
  table: "smp-datepickercalendar-table",
4281
4281
  th: "smp-datepickercalendar-th",
4282
- td: (I, p, b, j) => `smp-datepickercalendar-td
4282
+ td: (I, p, x, R) => `smp-datepickercalendar-td
4283
4283
  ${I ? "smp-datepickercalendar-td-today" : ""}
4284
4284
  ${p ? "smp-datepickercalendar-td-selected" : ""}
4285
- ${b ? "smp-datepickercalendar-td-focused" : ""}
4286
- ${j ? "smp-datepickercalendar-td-disabled" : ""}`
4287
- }, Z = () => `${w[f]} ${d.toString()}`;
4288
- return /* @__PURE__ */ y.jsxs(
4285
+ ${x ? "smp-datepickercalendar-td-focused" : ""}
4286
+ ${R ? "smp-datepickercalendar-td-disabled" : ""}`
4287
+ }, Z = () => `${S[f]} ${d.toString()}`;
4288
+ return /* @__PURE__ */ g.jsxs(
4289
4289
  "div",
4290
4290
  {
4291
4291
  className: z.wrapper,
@@ -4295,7 +4295,7 @@ function ps({
4295
4295
  "aria-modal": "true",
4296
4296
  "data-component": "datepicker-calendar",
4297
4297
  children: [
4298
- /* @__PURE__ */ y.jsxs(
4298
+ /* @__PURE__ */ g.jsxs(
4299
4299
  "div",
4300
4300
  {
4301
4301
  style: {
@@ -4305,10 +4305,10 @@ function ps({
4305
4305
  marginBottom: "16px"
4306
4306
  },
4307
4307
  children: [
4308
- /* @__PURE__ */ y.jsx(
4308
+ /* @__PURE__ */ g.jsx(
4309
4309
  Ce,
4310
4310
  {
4311
- onClick: E,
4311
+ onClick: P,
4312
4312
  ariaLabel: a(_t.PREVIOUS_MONTH),
4313
4313
  optionalDisplayValue: "<",
4314
4314
  appearance: "ghost",
@@ -4316,7 +4316,7 @@ function ps({
4316
4316
  bindValue: "<"
4317
4317
  }
4318
4318
  ),
4319
- /* @__PURE__ */ y.jsx(
4319
+ /* @__PURE__ */ g.jsx(
4320
4320
  "div",
4321
4321
  {
4322
4322
  "aria-label": Z(),
@@ -4324,10 +4324,10 @@ function ps({
4324
4324
  children: Z()
4325
4325
  }
4326
4326
  ),
4327
- /* @__PURE__ */ y.jsx(
4327
+ /* @__PURE__ */ g.jsx(
4328
4328
  Ce,
4329
4329
  {
4330
- onClick: _,
4330
+ onClick: E,
4331
4331
  ariaLabel: a(_t.NEXT_MONTH),
4332
4332
  bindValue: ">",
4333
4333
  optionalDisplayValue: ">",
@@ -4338,15 +4338,15 @@ function ps({
4338
4338
  ]
4339
4339
  }
4340
4340
  ),
4341
- /* @__PURE__ */ y.jsxs(
4341
+ /* @__PURE__ */ g.jsxs(
4342
4342
  "table",
4343
4343
  {
4344
- ref: x,
4344
+ ref: v,
4345
4345
  role: "grid",
4346
- "aria-label": `${a(mt.CALENDAR_FOR)} ${w[f]} ${d}`,
4346
+ "aria-label": `${a(mt.CALENDAR_FOR)} ${S[f]} ${d}`,
4347
4347
  className: z.table,
4348
4348
  children: [
4349
- /* @__PURE__ */ y.jsx("thead", { children: /* @__PURE__ */ y.jsx("tr", { children: R.map((I) => /* @__PURE__ */ y.jsx(
4349
+ /* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: _.map((I) => /* @__PURE__ */ g.jsx(
4350
4350
  "th",
4351
4351
  {
4352
4352
  scope: "col",
@@ -4356,10 +4356,10 @@ function ps({
4356
4356
  },
4357
4357
  I.value
4358
4358
  )) }) }),
4359
- /* @__PURE__ */ y.jsx("tbody", { children: B.map((I, p) => /* @__PURE__ */ y.jsx("tr", { children: I.map((b, j) => {
4360
- const A = p * 7 + j;
4361
- if (b === null)
4362
- return /* @__PURE__ */ y.jsx(
4359
+ /* @__PURE__ */ g.jsx("tbody", { children: B.map((I, p) => /* @__PURE__ */ g.jsx("tr", { children: I.map((x, R) => {
4360
+ const A = p * 7 + R;
4361
+ if (x === null)
4362
+ return /* @__PURE__ */ g.jsx(
4363
4363
  "td",
4364
4364
  {
4365
4365
  className: z.td(
@@ -4369,32 +4369,32 @@ function ps({
4369
4369
  !0
4370
4370
  )
4371
4371
  },
4372
- `empty-${j}`
4372
+ `empty-${R}`
4373
4373
  );
4374
- const D = b.getDate() === o.getDate() && b.getMonth() === o.getMonth() && b.getFullYear() === o.getFullYear(), L = c && b.getDate() === c.getDate() && b.getMonth() === c.getMonth() && b.getFullYear() === c.getFullYear(), V = h === b.getDate(), Y = T(b);
4375
- return /* @__PURE__ */ y.jsx(
4374
+ const $ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = c && x.getDate() === c.getDate() && x.getMonth() === c.getMonth() && x.getFullYear() === c.getFullYear(), V = h === x.getDate(), Y = O(x);
4375
+ return /* @__PURE__ */ g.jsx(
4376
4376
  "td",
4377
4377
  {
4378
4378
  role: "gridcell",
4379
4379
  "aria-selected": L,
4380
4380
  tabIndex: V ? 0 : -1,
4381
- onClick: () => g(b),
4381
+ onClick: () => y(x),
4382
4382
  onKeyDown: (F) => W(F, A),
4383
- "aria-label": `${b.getDate()} ${w[b.getMonth()]} ${b.getFullYear()}`,
4383
+ "aria-label": `${x.getDate()} ${S[x.getMonth()]} ${x.getFullYear()}`,
4384
4384
  "data-selected": L,
4385
4385
  "aria-disabled": Y,
4386
4386
  ref: (F) => {
4387
- S.current[A] = F;
4387
+ w.current[A] = F;
4388
4388
  },
4389
4389
  className: z.td(
4390
- D,
4390
+ $,
4391
4391
  L,
4392
4392
  V,
4393
4393
  Y
4394
4394
  ),
4395
- children: b.getDate()
4395
+ children: x.getDate()
4396
4396
  },
4397
- `day-${j}`
4397
+ `day-${R}`
4398
4398
  );
4399
4399
  }) }, `week-${p}`)) })
4400
4400
  ]
@@ -4415,74 +4415,74 @@ const hs = ({
4415
4415
  const i = ce(null), [o, c] = q(!1), [l, f] = q(r || ""), [u, d] = q(""), { anchorRef: m, targetRef: h } = dt({
4416
4416
  position: "bottom",
4417
4417
  enabled: o
4418
- }), v = le(() => {
4419
- var P;
4420
- c(!1), (P = i == null ? void 0 : i.current) == null || P.focus();
4418
+ }), b = le(() => {
4419
+ var D;
4420
+ c(!1), (D = i == null ? void 0 : i.current) == null || D.focus();
4421
4421
  }, []);
4422
4422
  Pe(h, () => {
4423
- v();
4423
+ b();
4424
4424
  }), Pe(m, () => {
4425
4425
  if (
4426
4426
  // FIXME: Copied from useClickOutside.
4427
4427
  typeof m == "object" && m !== null && "current" in m
4428
4428
  ) {
4429
- const P = m.current.querySelector("input");
4430
- P && P === document.activeElement && T();
4429
+ const D = m.current.querySelector("input");
4430
+ D && D === document.activeElement && O();
4431
4431
  }
4432
- v();
4432
+ b();
4433
4433
  }), kt(o, h);
4434
- const { format: x, getCurrentLanguage: S } = Le(), w = le(
4435
- (P) => {
4436
- const k = P.length > 5 && Jr(P, S()) || P, W = x(k, void 0, void 0, {
4434
+ const { format: v, getCurrentLanguage: w } = Le(), S = le(
4435
+ (D) => {
4436
+ const k = D.length > 5 && Jr(D, w()) || D, W = v(k, void 0, void 0, {
4437
4437
  type: "date"
4438
- }), C = typeof k != "string", O = C && k.toISOString().substring(0, 10) || "";
4438
+ }), C = typeof k != "string", j = C && k.toISOString().substring(0, 10) || "";
4439
4439
  return {
4440
4440
  isValid: C,
4441
4441
  formattedDate: W,
4442
- isoDate: O,
4442
+ isoDate: j,
4443
4443
  normalizedDate: k
4444
4444
  };
4445
4445
  },
4446
- [S, x]
4446
+ [w, v]
4447
4447
  );
4448
4448
  ne(() => {
4449
- const { formattedDate: P, isoDate: k, isValid: W } = w(r);
4450
- f(W && k || r), d(W && P || r);
4451
- }, [r, x, w]);
4452
- const R = () => c((P) => !P), T = () => {
4453
- E(u);
4454
- }, g = (P) => {
4455
- E(P), v();
4456
- }, E = (P) => {
4457
- const { isoDate: k, isValid: W } = w(P);
4458
- t && t(W && k || P);
4459
- }, _ = (P) => {
4460
- d(P);
4461
- }, $ = (P) => {
4462
- P.key === "Enter" && (P.preventDefault(), E(u));
4449
+ const { formattedDate: D, isoDate: k, isValid: W } = S(r);
4450
+ f(W && k || r), d(W && D || r);
4451
+ }, [r, v, S]);
4452
+ const _ = () => c((D) => !D), O = () => {
4453
+ P(u);
4454
+ }, y = (D) => {
4455
+ P(D), b();
4456
+ }, P = (D) => {
4457
+ const { isoDate: k, isValid: W } = S(D);
4458
+ t && t(W && k || D);
4459
+ }, E = (D) => {
4460
+ d(D);
4461
+ }, T = (D) => {
4462
+ D.key === "Enter" && (D.preventDefault(), P(u));
4463
4463
  };
4464
- return /* @__PURE__ */ y.jsxs("div", { "data-component": "date-picker", children: [
4465
- /* @__PURE__ */ y.jsx(
4464
+ return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
4465
+ /* @__PURE__ */ g.jsx(
4466
4466
  Oe,
4467
4467
  {
4468
4468
  ...a,
4469
4469
  bindValue: u,
4470
4470
  placeholder: e,
4471
- onBlur: T,
4472
- onChange: _,
4473
- onKeyDown: $,
4471
+ onBlur: O,
4472
+ onChange: E,
4473
+ onKeyDown: T,
4474
4474
  shapeIcon: "calendar",
4475
- onShapeIconClick: R,
4475
+ onShapeIconClick: _,
4476
4476
  ref: m,
4477
4477
  inputRef: i,
4478
4478
  isEditable: s
4479
4479
  }
4480
4480
  ),
4481
- o && /* @__PURE__ */ y.jsx(pt, { children: /* @__PURE__ */ y.jsx(
4481
+ o && /* @__PURE__ */ g.jsx(pt, { children: /* @__PURE__ */ g.jsx(
4482
4482
  ps,
4483
4483
  {
4484
4484
  disabledDateRanges: n,
4485
- onDateChange: g,
4485
+ onDateChange: y,
4486
4486
  initialValue: Pt(l) && l || "",
4487
4487
  targetRef: h
4488
4488
  }
@@ -4503,42 +4503,42 @@ const hs = ({
4503
4503
  onChange: u,
4504
4504
  onBlur: d
4505
4505
  }) => {
4506
- const m = r.map((x) => x.bindValue), h = (x, S) => {
4507
- const w = [...r];
4508
- if (x == "")
4509
- w.pop();
4506
+ const m = r.map((v) => v.bindValue), h = (v, w) => {
4507
+ const S = [...r];
4508
+ if (v == "")
4509
+ S.pop();
4510
4510
  else {
4511
- const R = w.findIndex(
4512
- (T) => T.bindValue === x && T.optionalDisplayValue === S
4511
+ const _ = S.findIndex(
4512
+ (O) => O.bindValue === v && O.optionalDisplayValue === w
4513
4513
  );
4514
- R >= 0 ? w.splice(R, 1) : w.push({
4515
- bindValue: x,
4516
- optionalDisplayValue: S
4514
+ _ >= 0 ? S.splice(_, 1) : S.push({
4515
+ bindValue: v,
4516
+ optionalDisplayValue: w
4517
4517
  });
4518
4518
  }
4519
- u == null || u(w);
4520
- }, v = {
4519
+ u == null || u(S);
4520
+ }, b = {
4521
4521
  container: "smp-multipleAutocomplete-container"
4522
4522
  };
4523
- return /* @__PURE__ */ y.jsxs(
4523
+ return /* @__PURE__ */ g.jsxs(
4524
4524
  "div",
4525
4525
  {
4526
- className: v.container,
4526
+ className: b.container,
4527
4527
  "data-component": "multiple-autocomplete",
4528
4528
  children: [
4529
- i && /* @__PURE__ */ y.jsx(Ae, { label: i, disabled: o }),
4530
- /* @__PURE__ */ y.jsx(
4529
+ i && /* @__PURE__ */ g.jsx(Ae, { label: i, disabled: o }),
4530
+ /* @__PURE__ */ g.jsx(
4531
4531
  Lt,
4532
4532
  {
4533
4533
  elements: r,
4534
4534
  displayMode: e,
4535
4535
  isEditable: s,
4536
- onChange: (x) => {
4537
- u == null || u(x);
4536
+ onChange: (v) => {
4537
+ u == null || u(v);
4538
4538
  }
4539
4539
  }
4540
4540
  ),
4541
- /* @__PURE__ */ y.jsx(
4541
+ /* @__PURE__ */ g.jsx(
4542
4542
  Ar,
4543
4543
  {
4544
4544
  bindValue: "",
@@ -4558,54 +4558,9 @@ const hs = ({
4558
4558
  ]
4559
4559
  }
4560
4560
  );
4561
- }, et = {
4562
- "smp-radio": "_smp-radio_1vo2u_1",
4563
- "smp-radio-horizontal": "_smp-radio-horizontal_1vo2u_10",
4564
- "smp-radio-element": "_smp-radio-element_1vo2u_14",
4565
- "smp-radio-disabled": "_smp-radio-disabled_1vo2u_20"
4566
- }, gs = ({
4567
- disabled: r = !1,
4568
- displayMode: e = "DescOnly",
4569
- horizontal: t = !1,
4570
- options: n,
4571
- onOptionsRequest: s,
4572
- fun: a,
4573
- ...i
4574
- }) => {
4575
- const [o, c] = q(n);
4576
- ne(() => {
4577
- !o && s && a && s(a, void 0).then((m) => c(m)).catch((m) => {
4578
- console.error("Error during loading options (radio)", m);
4579
- });
4580
- }, [o, s, a]);
4581
- const l = {
4582
- container: `${et["smp-radio"]} ${t ? et["smp-radio-horizontal"] : ""}`,
4583
- option: `${et["smp-radio-element"]} ${r ? et["smp-radio-disabled"] : ""}`
4584
- }, f = () => {
4585
- var m;
4586
- r || (m = i.onBlur) == null || m.call(i);
4587
- }, u = (m) => {
4588
- var h;
4589
- r || (h = i.onChange) == null || h.call(i, m.id, m.label);
4590
- }, d = We();
4591
- return /* @__PURE__ */ y.jsx("div", { "smp-id": "radio-container", className: l.container, children: o == null ? void 0 : o.map((m, h) => /* @__PURE__ */ y.jsxs("label", { className: l.option, children: [
4592
- /* @__PURE__ */ y.jsx(
4593
- "input",
4594
- {
4595
- type: "radio",
4596
- name: d,
4597
- value: m.id,
4598
- disabled: r,
4599
- checked: m.id === i.bindValue,
4600
- onChange: () => u(m),
4601
- onBlur: f
4602
- }
4603
- ),
4604
- Fe(m.id, m.label, e)
4605
- ] }, h)) });
4606
- }, ys = ({ ...r }) => {
4561
+ }, gs = ({ ...r }) => {
4607
4562
  const [e, t] = q(!1), n = e ? "visibility-off" : "visibility";
4608
- return /* @__PURE__ */ y.jsx(
4563
+ return /* @__PURE__ */ g.jsx(
4609
4564
  Oe,
4610
4565
  {
4611
4566
  ...r,
@@ -4616,12 +4571,12 @@ const hs = ({
4616
4571
  "data-component": "password"
4617
4572
  }
4618
4573
  );
4619
- }, vs = ({ ...r }) => {
4574
+ }, ys = ({ ...r }) => {
4620
4575
  const [e, t] = q(r.bindValue), { translate: n } = Le(), s = (a) => {
4621
4576
  var i;
4622
4577
  a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
4623
4578
  };
4624
- return /* @__PURE__ */ y.jsx(
4579
+ return /* @__PURE__ */ g.jsx(
4625
4580
  Oe,
4626
4581
  {
4627
4582
  ...r,
@@ -4635,7 +4590,7 @@ const hs = ({
4635
4590
  _dataComponent: "search-bar"
4636
4591
  }
4637
4592
  );
4638
- }, xs = ({
4593
+ }, vs = ({
4639
4594
  bindValue: r,
4640
4595
  optionalDisplayValue: e,
4641
4596
  label: t
@@ -4643,16 +4598,16 @@ const hs = ({
4643
4598
  const n = {
4644
4599
  wrapper: "smp-text-wrapper"
4645
4600
  };
4646
- return t ? /* @__PURE__ */ y.jsxs("div", { className: n.wrapper, children: [
4647
- /* @__PURE__ */ y.jsx(Ae, { label: t }),
4648
- /* @__PURE__ */ y.jsx(
4601
+ return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
4602
+ /* @__PURE__ */ g.jsx(Ae, { label: t }),
4603
+ /* @__PURE__ */ g.jsx(
4649
4604
  Ve,
4650
4605
  {
4651
4606
  variant: "body",
4652
4607
  bindValue: e || r
4653
4608
  }
4654
4609
  )
4655
- ] }) : /* @__PURE__ */ y.jsx(
4610
+ ] }) : /* @__PURE__ */ g.jsx(
4656
4611
  Ve,
4657
4612
  {
4658
4613
  variant: "body",
@@ -4700,7 +4655,7 @@ const _e = (r, e, t) => ({
4700
4655
  bindValue: n,
4701
4656
  optionalDisplayValue: t.length >= s ? t[s] : ""
4702
4657
  }));
4703
- }, bs = (r, e) => {
4658
+ }, xs = (r, e) => {
4704
4659
  const t = new Te(
4705
4660
  r.obj,
4706
4661
  e.map((s) => s.bindValue)
@@ -4709,7 +4664,7 @@ const _e = (r, e, t) => ({
4709
4664
  e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
4710
4665
  ).getLegacyValue();
4711
4666
  return _e(r, t, n);
4712
- }, Ss = ({
4667
+ }, bs = ({
4713
4668
  min: r,
4714
4669
  max: e,
4715
4670
  step: t = 1,
@@ -4724,90 +4679,90 @@ const _e = (r, e, t) => ({
4724
4679
  () => ss(u, s),
4725
4680
  [u, s]
4726
4681
  ), h = le(
4727
- (C, O) => new Intl.NumberFormat(u, {
4728
- minimumFractionDigits: O,
4729
- maximumFractionDigits: O,
4682
+ (C, j) => new Intl.NumberFormat(u, {
4683
+ minimumFractionDigits: j,
4684
+ maximumFractionDigits: j,
4730
4685
  useGrouping: !0
4731
4686
  }).format(C),
4732
4687
  [u]
4733
- ), v = le(os, [d, m]), x = le(ns, [r, e]), S = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, R] = q(S), [T, g] = q(
4734
- a != null ? h(a, w) : ""
4735
- ), E = ce(a ?? null);
4688
+ ), b = le(os, [d, m]), v = le(ns, [r, e]), w = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [S, _] = q(w), [O, y] = q(
4689
+ a != null ? h(a, S) : ""
4690
+ ), P = ce(a ?? null);
4736
4691
  ne(() => {
4737
4692
  if (a == null) {
4738
- g(""), E.current = null;
4693
+ y(""), P.current = null;
4739
4694
  return;
4740
4695
  }
4741
- const C = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, O = C === 0 ? w : C;
4742
- O !== w && R(O), g(h(a, O)), E.current = a;
4696
+ const C = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, j = C === 0 ? S : C;
4697
+ j !== S && _(j), y(h(a, j)), P.current = a;
4743
4698
  }, [a, h]);
4744
- const _ = le(
4745
- (C, O = !1) => {
4699
+ const E = le(
4700
+ (C, j = !1) => {
4746
4701
  if (C.trim() === "") {
4747
- g(""), E.current = null, i == null || i(void 0, ""), O && (o == null || o(void 0));
4702
+ y(""), P.current = null, i == null || i(void 0, ""), j && (o == null || o(void 0));
4748
4703
  return;
4749
4704
  }
4750
- const M = v(C, d, m);
4705
+ const M = b(C, d, m);
4751
4706
  if (isNaN(M))
4752
- if (E.current != null) {
4753
- const B = h(E.current, w);
4754
- g(B);
4707
+ if (P.current != null) {
4708
+ const B = h(P.current, S);
4709
+ y(B);
4755
4710
  } else
4756
- g("");
4711
+ y("");
4757
4712
  else {
4758
- const B = x(M, r, e), H = is(
4713
+ const B = v(M, r, e), H = is(
4759
4714
  C,
4760
4715
  d,
4761
4716
  m
4762
4717
  );
4763
- R(H);
4718
+ _(H);
4764
4719
  const z = h(B, H);
4765
- g(z), E.current = B, i == null || i(B, z), O && (o == null || o(B));
4720
+ y(z), P.current = B, i == null || i(B, z), j && (o == null || o(B));
4766
4721
  }
4767
4722
  },
4768
4723
  [
4769
- v,
4724
+ b,
4770
4725
  d,
4771
4726
  m,
4772
- x,
4727
+ v,
4773
4728
  r,
4774
4729
  e,
4775
4730
  h,
4776
4731
  i,
4777
4732
  o,
4778
- w
4733
+ S
4779
4734
  ]
4780
- ), $ = (C) => g(C), P = () => _(T), k = (C) => {
4735
+ ), T = (C) => y(C), D = () => E(O), k = (C) => {
4781
4736
  if (C.key === "Enter") {
4782
- C.preventDefault(), _(T, !0);
4737
+ C.preventDefault(), E(O, !0);
4783
4738
  return;
4784
4739
  }
4785
4740
  if (C.key === "ArrowUp" || C.key === "ArrowDown") {
4786
4741
  C.preventDefault();
4787
- const O = C.key === "ArrowUp" ? 1 : -1, M = E.current ?? 0, B = x(M + O * t, r, e);
4788
- _(h(B, w));
4742
+ const j = C.key === "ArrowUp" ? 1 : -1, M = P.current ?? 0, B = v(M + j * t, r, e);
4743
+ E(h(B, S));
4789
4744
  }
4790
4745
  }, W = (C) => {
4791
4746
  if (!C.currentTarget.contains(document.activeElement)) return;
4792
4747
  C.preventDefault();
4793
- const O = C.deltaY < 0 ? 1 : -1, M = E.current ?? 0, B = x(M + O * t, r, e);
4794
- _(h(B, w));
4748
+ const j = C.deltaY < 0 ? 1 : -1, M = P.current ?? 0, B = v(M + j * t, r, e);
4749
+ E(h(B, S));
4795
4750
  };
4796
- return Pe(f, P), /* @__PURE__ */ y.jsx("div", { ref: f, "data-component": "input-number", onWheel: W, children: /* @__PURE__ */ y.jsx(
4751
+ return Pe(f, D), /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: W, children: /* @__PURE__ */ g.jsx(
4797
4752
  Oe,
4798
4753
  {
4799
4754
  ...c,
4800
4755
  "aria-valuemin": r,
4801
4756
  "aria-valuemax": e,
4802
- "aria-valuenow": E.current ?? void 0,
4803
- bindValue: T,
4757
+ "aria-valuenow": P.current ?? void 0,
4758
+ bindValue: O,
4804
4759
  inputType: "text",
4805
4760
  inputMode: n,
4806
4761
  min: r,
4807
4762
  max: e,
4808
4763
  step: t,
4809
- onChange: $,
4810
- onBlur: P,
4764
+ onChange: T,
4765
+ onBlur: D,
4811
4766
  onKeyDown: k
4812
4767
  }
4813
4768
  ) });
@@ -4852,7 +4807,7 @@ class ut {
4852
4807
  return this.value;
4853
4808
  }
4854
4809
  }
4855
- const ws = ({
4810
+ const Ss = ({
4856
4811
  disabled: r,
4857
4812
  bindValue: e,
4858
4813
  onChange: t,
@@ -4867,41 +4822,86 @@ const ws = ({
4867
4822
  onBlur: u,
4868
4823
  onKeyDown: d
4869
4824
  }) => {
4870
- const m = We(), h = `${m}-helper`, v = f ? "danger" : s, x = l || !!f, S = (R) => {
4871
- t == null || t(R.target.value);
4872
- }, w = {
4825
+ const m = We(), h = `${m}-helper`, b = f ? "danger" : s, v = l || !!f, w = (_) => {
4826
+ t == null || t(_.target.value);
4827
+ }, S = {
4873
4828
  wrapper: "smp-textarea-wrapper",
4874
- container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${v ? `smp-textarea-${v}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4829
+ container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${b ? `smp-textarea-${b}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4875
4830
  };
4876
- return /* @__PURE__ */ y.jsxs("div", { className: w.wrapper, "data-component": "textarea", children: [
4877
- o && /* @__PURE__ */ y.jsx(Ae, { htmlFor: m, label: o, disabled: r }),
4878
- /* @__PURE__ */ y.jsx(
4831
+ return /* @__PURE__ */ g.jsxs("div", { className: S.wrapper, "data-component": "textarea", children: [
4832
+ o && /* @__PURE__ */ g.jsx(Ae, { htmlFor: m, label: o, disabled: r }),
4833
+ /* @__PURE__ */ g.jsx(
4879
4834
  "textarea",
4880
4835
  {
4881
4836
  id: m,
4882
4837
  value: e,
4883
4838
  placeholder: n,
4884
- onChange: S,
4839
+ onChange: w,
4885
4840
  onBlur: u,
4886
- className: w.container,
4841
+ className: S.container,
4887
4842
  disabled: r,
4888
4843
  readOnly: !i,
4889
4844
  onKeyDown: d,
4890
4845
  "aria-label": o ? void 0 : c,
4891
4846
  "aria-labelledby": o ? m : void 0,
4892
- "aria-describedby": x ? h : void 0
4847
+ "aria-describedby": v ? h : void 0
4893
4848
  }
4894
4849
  ),
4895
- x && /* @__PURE__ */ y.jsx(
4850
+ v && /* @__PURE__ */ g.jsx(
4896
4851
  jr,
4897
4852
  {
4898
4853
  id: h,
4899
4854
  helperText: f,
4900
4855
  disabled: r,
4901
- state: v
4856
+ state: b
4902
4857
  }
4903
4858
  )
4904
4859
  ] });
4860
+ }, et = {
4861
+ "smp-radio": "_smp-radio_1vo2u_1",
4862
+ "smp-radio-horizontal": "_smp-radio-horizontal_1vo2u_10",
4863
+ "smp-radio-element": "_smp-radio-element_1vo2u_14",
4864
+ "smp-radio-disabled": "_smp-radio-disabled_1vo2u_20"
4865
+ }, ws = ({
4866
+ disabled: r = !1,
4867
+ displayMode: e = "DescOnly",
4868
+ horizontal: t = !1,
4869
+ options: n,
4870
+ onOptionsRequest: s,
4871
+ fun: a,
4872
+ ...i
4873
+ }) => {
4874
+ const [o, c] = q(n);
4875
+ ne(() => {
4876
+ !o && s && a && s(a, void 0).then((m) => c(m)).catch((m) => {
4877
+ console.error("Error during loading options (radio)", m);
4878
+ });
4879
+ }, [o, s, a]);
4880
+ const l = {
4881
+ container: `${et["smp-radio"]} ${t ? et["smp-radio-horizontal"] : ""}`,
4882
+ option: `${et["smp-radio-element"]} ${r ? et["smp-radio-disabled"] : ""}`
4883
+ }, f = () => {
4884
+ var m;
4885
+ r || (m = i.onBlur) == null || m.call(i);
4886
+ }, u = (m) => {
4887
+ var h;
4888
+ r || (h = i.onChange) == null || h.call(i, m.id, m.label);
4889
+ }, d = We();
4890
+ return /* @__PURE__ */ g.jsx("div", { "smp-id": "radio-container", className: l.container, children: o == null ? void 0 : o.map((m, h) => /* @__PURE__ */ g.jsxs("label", { className: l.option, children: [
4891
+ /* @__PURE__ */ g.jsx(
4892
+ "input",
4893
+ {
4894
+ type: "radio",
4895
+ name: d,
4896
+ value: m.id,
4897
+ disabled: r,
4898
+ checked: m.id === i.bindValue,
4899
+ onChange: () => u(m),
4900
+ onBlur: f
4901
+ }
4902
+ ),
4903
+ Fe(m.id, m.label, e)
4904
+ ] }, h)) });
4905
4905
  }, Es = ({
4906
4906
  value: r,
4907
4907
  onChange: e,
@@ -4912,14 +4912,14 @@ const ws = ({
4912
4912
  ne(() => {
4913
4913
  n && (s != null && s.current) && s.current.focus();
4914
4914
  }, [n, s]);
4915
- const [a, i, o] = r, c = (l) => Array.from({ length: l }, (f, u) => /* @__PURE__ */ y.jsx("option", { value: u, children: u.toString().padStart(2, "0") }, u));
4916
- return /* @__PURE__ */ y.jsxs(
4915
+ const [a, i, o] = r, c = (l) => Array.from({ length: l }, (f, u) => /* @__PURE__ */ g.jsx("option", { value: u, children: u.toString().padStart(2, "0") }, u));
4916
+ return /* @__PURE__ */ g.jsxs(
4917
4917
  "div",
4918
4918
  {
4919
4919
  className: "smp-timepicker-widget",
4920
4920
  ref: t,
4921
4921
  children: [
4922
- /* @__PURE__ */ y.jsx(
4922
+ /* @__PURE__ */ g.jsx(
4923
4923
  "select",
4924
4924
  {
4925
4925
  value: a,
@@ -4930,7 +4930,7 @@ const ws = ({
4930
4930
  }
4931
4931
  ),
4932
4932
  ":",
4933
- /* @__PURE__ */ y.jsx(
4933
+ /* @__PURE__ */ g.jsx(
4934
4934
  "select",
4935
4935
  {
4936
4936
  value: i,
@@ -4940,7 +4940,7 @@ const ws = ({
4940
4940
  }
4941
4941
  ),
4942
4942
  ":",
4943
- /* @__PURE__ */ y.jsx(
4943
+ /* @__PURE__ */ g.jsx(
4944
4944
  "select",
4945
4945
  {
4946
4946
  value: o || 0,
@@ -4974,60 +4974,60 @@ const ws = ({
4974
4974
  position: "bottom",
4975
4975
  enabled: i
4976
4976
  }), h = le(() => {
4977
- var g;
4978
- o(!1), (g = a == null ? void 0 : a.current) == null || g.focus();
4977
+ var y;
4978
+ o(!1), (y = a == null ? void 0 : a.current) == null || y.focus();
4979
4979
  }, []);
4980
4980
  Pe(m, () => o(!1)), kt(i, m), ne(() => {
4981
- const g = r || "", E = Er(g) ? g : r || "";
4982
- l(g), u(E);
4981
+ const y = r || "", P = Er(y) ? y : r || "";
4982
+ l(y), u(P);
4983
4983
  }, [r]), ne(() => {
4984
- const g = (E) => {
4985
- E.key === "Escape" && o(!1);
4984
+ const y = (P) => {
4985
+ P.key === "Escape" && o(!1);
4986
4986
  };
4987
- return i && document.addEventListener("keydown", g), () => {
4988
- document.removeEventListener("keydown", g);
4987
+ return i && document.addEventListener("keydown", y), () => {
4988
+ document.removeEventListener("keydown", y);
4989
4989
  };
4990
4990
  }, [i]);
4991
- const v = () => {
4992
- n && o((g) => !g);
4993
- }, x = (g) => {
4994
- u(g);
4995
- }, S = (g, E, _) => {
4996
- const $ = Os(g, E, _);
4997
- l($), u($), t == null || t($), h();
4998
- }, w = () => {
4999
- T(f);
5000
- }, R = (g) => {
5001
- g.key === "Enter" && (g.preventDefault(), T(f));
5002
- }, T = (g) => {
5003
- if (g.trim() === "") {
4991
+ const b = () => {
4992
+ n && o((y) => !y);
4993
+ }, v = (y) => {
4994
+ u(y);
4995
+ }, w = (y, P, E) => {
4996
+ const T = Os(y, P, E);
4997
+ l(T), u(T), t == null || t(T), h();
4998
+ }, S = () => {
4999
+ O(f);
5000
+ }, _ = (y) => {
5001
+ y.key === "Enter" && (y.preventDefault(), O(f));
5002
+ }, O = (y) => {
5003
+ if (y.trim() === "") {
5004
5004
  l(""), u(""), t == null || t("");
5005
5005
  return;
5006
5006
  }
5007
- Er(g) ? (l(g), u(g), t == null || t(g)) : u(g);
5007
+ Er(y) ? (l(y), u(y), t == null || t(y)) : u(y);
5008
5008
  };
5009
- return /* @__PURE__ */ y.jsxs("div", { "data-component": "time-picker", children: [
5010
- /* @__PURE__ */ y.jsx(
5009
+ return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
5010
+ /* @__PURE__ */ g.jsx(
5011
5011
  At,
5012
5012
  {
5013
5013
  ...s,
5014
5014
  bindValue: f,
5015
5015
  placeholder: e,
5016
- onChange: x,
5017
- onBlur: w,
5018
- onKeyDown: R,
5016
+ onChange: v,
5017
+ onBlur: S,
5018
+ onKeyDown: _,
5019
5019
  shapeIcon: "clock",
5020
- onShapeIconClick: v,
5020
+ onShapeIconClick: b,
5021
5021
  isEditable: n,
5022
5022
  ref: d,
5023
5023
  inputRef: a
5024
5024
  }
5025
5025
  ),
5026
- i && /* @__PURE__ */ y.jsx(pt, { children: /* @__PURE__ */ y.jsx(
5026
+ i && /* @__PURE__ */ g.jsx(pt, { children: /* @__PURE__ */ g.jsx(
5027
5027
  Es,
5028
5028
  {
5029
5029
  value: Ts(c),
5030
- onChange: S,
5030
+ onChange: w,
5031
5031
  targetRef: m,
5032
5032
  isOpen: i
5033
5033
  }
@@ -5088,7 +5088,8 @@ const Tr = /* @__PURE__ */ new Map([
5088
5088
  onEnter: u,
5089
5089
  onBlur: d,
5090
5090
  onOptionsRequest: m,
5091
- isEditable: h
5091
+ onContextMenu: h,
5092
+ isEditable: b
5092
5093
  }) => {
5093
5094
  const v = {
5094
5095
  obj: t,
@@ -5096,241 +5097,260 @@ const Tr = /* @__PURE__ */ new Map([
5096
5097
  decode: r,
5097
5098
  icon: s,
5098
5099
  fun: a
5099
- }, x = {
5100
+ }, w = {
5100
5101
  onBlur: d,
5101
5102
  onOptionsRequest: m,
5102
5103
  fun: a,
5103
5104
  icon: s,
5104
5105
  label: o,
5105
- isEditable: h,
5106
+ isEditable: b,
5106
5107
  ...n
5107
- }, S = (g, E, _) => Kr(t) ? _e(g, new at(t, E).getLegacyValue()) : qr(t) ? _e(g, new ft(t, E).getLegacyValue()) : _e(g, E, _), w = (g, E) => _e(
5108
- g,
5109
- new ut(t, E, ".").getLegacyValue()
5110
- ), R = (g) => _e(v, new st(t, g).getLegacyValue()), T = (g) => bs(v, g);
5111
- switch (e) {
5112
- case re.AUTOCOMPLETE: {
5113
- const g = {
5114
- ...x,
5115
- bindValue: t.k,
5116
- optionalDisplayValue: r,
5117
- onChange: (E, _) => {
5118
- l == null || l(S(v, E, _));
5119
- }
5120
- };
5121
- return /* @__PURE__ */ y.jsx(Ar, { ...g });
5122
- }
5123
- case re.BUTTON: {
5124
- const g = {
5125
- ...x,
5126
- bindValue: t.k,
5127
- optionalDisplayValue: r,
5128
- onClick: () => {
5129
- f == null || f(S(v, t.k));
5130
- }
5131
- };
5132
- return /* @__PURE__ */ y.jsx(Ce, { ...g });
5133
- }
5134
- case re.BUTTON_LIST: {
5135
- const g = {
5136
- ...x,
5137
- options: c,
5138
- onClick: (E, _) => {
5139
- const $ = { ...v, fun: _ };
5140
- f == null || f(S($, E));
5141
- }
5142
- };
5143
- return /* @__PURE__ */ y.jsx(Tn, { ...g });
5144
- }
5145
- case re.COMBOBOX: {
5146
- const g = {
5147
- ...x,
5148
- bindValue: t.k,
5149
- optionalDisplayValue: r,
5150
- onChange: (E, _) => {
5151
- l == null || l(S(v, E, _));
5152
- }
5153
- };
5154
- return /* @__PURE__ */ y.jsx(Dn, { ...g });
5155
- }
5156
- case re.RADIO: {
5157
- const g = {
5158
- ...x,
5159
- bindValue: t.k,
5160
- onChange: (E, _) => {
5161
- l == null || l(S(v, E, _));
5162
- }
5163
- };
5164
- return /* @__PURE__ */ y.jsx(gs, { ...g });
5165
- }
5166
- case re.SWITCH:
5167
- case re.CHECKBOX: {
5168
- const g = e === re.SWITCH, E = {
5169
- ...x,
5170
- bindValue: st.fromDataObj(t).getValue(),
5171
- optionalDisplayValue: r,
5172
- onChange: (_) => {
5173
- l == null || l(R(_));
5174
- },
5175
- ...g && { variant: "switch" }
5176
- };
5177
- return /* @__PURE__ */ y.jsx(jn, { ...E });
5178
- }
5179
- case re.CHIP: {
5180
- const g = {
5181
- ...x,
5182
- elements: wr(v)
5183
- };
5184
- return /* @__PURE__ */ y.jsx(Lt, { ...g });
5185
- }
5186
- case re.DATE: {
5187
- const g = {
5188
- ...x,
5189
- bindValue: at.fromDataObj(t).getValue(),
5190
- onChange: (E) => {
5191
- l == null || l(S(v, E));
5192
- }
5193
- };
5194
- return /* @__PURE__ */ y.jsx(hs, { ...g });
5195
- }
5196
- case re.ICON:
5197
- case re.IMAGE: {
5198
- const g = {
5199
- ...x,
5200
- icon: s,
5201
- placeholderIcon: i,
5202
- isInteractable: !!x.fun,
5203
- onClick: () => {
5204
- f == null || f(S(v, t.k));
5205
- }
5206
- };
5207
- return /* @__PURE__ */ y.jsx(fe, { ...g });
5208
- }
5209
- case re.INPUT_NUMBER: {
5210
- const g = {
5211
- ...x,
5212
- bindValue: ut.fromDataObj(t, ".").getValue(),
5213
- onChange: (E) => {
5214
- l == null || l(w(v, E));
5215
- }
5216
- };
5217
- return /* @__PURE__ */ y.jsx(Ss, { ...g });
5218
- }
5219
- case re.MULTI_AUTOCOMPLETE: {
5220
- const g = {
5221
- ...x,
5222
- elements: wr(v),
5223
- onChange: (E) => {
5224
- l == null || l(T(E));
5225
- }
5226
- };
5227
- return /* @__PURE__ */ y.jsx(ms, { ...g });
5228
- }
5229
- case re.MEMO: {
5230
- const g = {
5231
- ...x,
5232
- bindValue: t.k,
5233
- optionalDisplayValue: r,
5234
- onChange: (E) => {
5235
- l == null || l(S(v, E));
5236
- }
5237
- };
5238
- return /* @__PURE__ */ y.jsx(ws, { ...g });
5239
- }
5240
- case re.PASSWORD: {
5241
- const g = {
5242
- ...x,
5243
- bindValue: t.k,
5244
- onChange: (E) => {
5245
- l == null || l(S(v, E));
5246
- }
5247
- };
5248
- return /* @__PURE__ */ y.jsx(ys, { ...g });
5249
- }
5250
- case re.SPOTLIGHT: {
5251
- const g = {
5252
- ...x,
5253
- bindValue: t.k,
5254
- onEnter: (E) => {
5255
- u == null || u(S(v, E));
5256
- }
5257
- };
5258
- return /* @__PURE__ */ y.jsx(vs, { ...g });
5259
- }
5260
- case re.TEXT_FIELD: {
5261
- const g = {
5262
- ...x,
5263
- bindValue: t.k,
5264
- optionalDisplayValue: r,
5265
- onChange: (E) => {
5266
- l == null || l(S(v, E));
5267
- }
5268
- };
5269
- return /* @__PURE__ */ y.jsx(Oe, { ...g });
5270
- }
5271
- case re.TIME: {
5272
- const g = {
5273
- ...x,
5274
- bindValue: ft.fromDataObj(t).getValue(),
5275
- onChange: (E) => {
5276
- l == null || l(S(v, E));
5277
- }
5278
- };
5279
- return /* @__PURE__ */ y.jsx(js, { ...g });
5108
+ }, S = (E, T, D) => Kr(t) ? _e(E, new at(t, T).getLegacyValue()) : qr(t) ? _e(E, new ft(t, T).getLegacyValue()) : _e(E, T, D), _ = (E, T) => _e(
5109
+ E,
5110
+ new ut(t, T, ".").getLegacyValue()
5111
+ ), O = (E) => _e(v, new st(t, E).getLegacyValue()), y = (E) => xs(v, E), P = () => {
5112
+ switch (e) {
5113
+ case re.AUTOCOMPLETE: {
5114
+ const E = {
5115
+ ...w,
5116
+ bindValue: t.k,
5117
+ optionalDisplayValue: r,
5118
+ onChange: (T, D) => {
5119
+ l == null || l(S(v, T, D));
5120
+ }
5121
+ };
5122
+ return /* @__PURE__ */ g.jsx(Ar, { ...E });
5123
+ }
5124
+ case re.BUTTON: {
5125
+ const E = {
5126
+ ...w,
5127
+ bindValue: t.k,
5128
+ optionalDisplayValue: r,
5129
+ onClick: () => {
5130
+ f == null || f(S(v, t.k));
5131
+ }
5132
+ };
5133
+ return /* @__PURE__ */ g.jsx(Ce, { ...E });
5134
+ }
5135
+ case re.BUTTON_LIST: {
5136
+ const E = {
5137
+ ...w,
5138
+ options: c,
5139
+ onClick: (T, D) => {
5140
+ const k = { ...v, fun: D };
5141
+ f == null || f(S(k, T));
5142
+ }
5143
+ };
5144
+ return /* @__PURE__ */ g.jsx(Tn, { ...E });
5145
+ }
5146
+ case re.CHIP: {
5147
+ const E = {
5148
+ ...w,
5149
+ elements: wr(v)
5150
+ };
5151
+ return /* @__PURE__ */ g.jsx(Lt, { ...E });
5152
+ }
5153
+ case re.CHECKBOX:
5154
+ case re.SWITCH: {
5155
+ const E = e === re.SWITCH, T = {
5156
+ ...w,
5157
+ bindValue: st.fromDataObj(t).getValue(),
5158
+ optionalDisplayValue: r,
5159
+ onChange: (D) => {
5160
+ l == null || l(O(D));
5161
+ },
5162
+ ...E && { variant: "switch" }
5163
+ };
5164
+ return /* @__PURE__ */ g.jsx(jn, { ...T });
5165
+ }
5166
+ case re.COMBOBOX: {
5167
+ const E = {
5168
+ ...w,
5169
+ bindValue: t.k,
5170
+ optionalDisplayValue: r,
5171
+ onChange: (T, D) => {
5172
+ l == null || l(S(v, T, D));
5173
+ }
5174
+ };
5175
+ return /* @__PURE__ */ g.jsx(Dn, { ...E });
5176
+ }
5177
+ case re.DATE: {
5178
+ const E = {
5179
+ ...w,
5180
+ bindValue: at.fromDataObj(t).getValue(),
5181
+ onChange: (T) => {
5182
+ l == null || l(S(v, T));
5183
+ }
5184
+ };
5185
+ return /* @__PURE__ */ g.jsx(hs, { ...E });
5186
+ }
5187
+ case re.ICON:
5188
+ case re.IMAGE: {
5189
+ const E = {
5190
+ ...w,
5191
+ icon: s,
5192
+ placeholderIcon: i,
5193
+ isInteractable: !!w.fun,
5194
+ onClick: () => {
5195
+ f == null || f(S(v, t.k));
5196
+ }
5197
+ };
5198
+ return /* @__PURE__ */ g.jsx(fe, { ...E });
5199
+ }
5200
+ case re.INPUT_NUMBER: {
5201
+ const E = {
5202
+ ...w,
5203
+ bindValue: ut.fromDataObj(t, ".").getValue(),
5204
+ onChange: (T) => {
5205
+ l == null || l(_(v, T));
5206
+ }
5207
+ };
5208
+ return /* @__PURE__ */ g.jsx(bs, { ...E });
5209
+ }
5210
+ case re.MEMO: {
5211
+ const E = {
5212
+ ...w,
5213
+ bindValue: t.k,
5214
+ optionalDisplayValue: r,
5215
+ onChange: (T) => {
5216
+ l == null || l(S(v, T));
5217
+ }
5218
+ };
5219
+ return /* @__PURE__ */ g.jsx(Ss, { ...E });
5220
+ }
5221
+ case re.MULTI_AUTOCOMPLETE: {
5222
+ const E = {
5223
+ ...w,
5224
+ elements: wr(v),
5225
+ onChange: (T) => {
5226
+ l == null || l(y(T));
5227
+ }
5228
+ };
5229
+ return /* @__PURE__ */ g.jsx(ms, { ...E });
5230
+ }
5231
+ case re.PASSWORD: {
5232
+ const E = {
5233
+ ...w,
5234
+ bindValue: t.k,
5235
+ onChange: (T) => {
5236
+ l == null || l(S(v, T));
5237
+ }
5238
+ };
5239
+ return /* @__PURE__ */ g.jsx(gs, { ...E });
5240
+ }
5241
+ case re.RADIO: {
5242
+ const E = {
5243
+ ...w,
5244
+ bindValue: t.k,
5245
+ onChange: (T, D) => {
5246
+ l == null || l(S(v, T, D));
5247
+ }
5248
+ };
5249
+ return /* @__PURE__ */ g.jsx(ws, { ...E });
5250
+ }
5251
+ case re.SPOTLIGHT: {
5252
+ const E = {
5253
+ ...w,
5254
+ bindValue: t.k,
5255
+ onEnter: (T) => {
5256
+ u == null || u(S(v, T));
5257
+ }
5258
+ };
5259
+ return /* @__PURE__ */ g.jsx(ys, { ...E });
5260
+ }
5261
+ case re.TEXT_FIELD: {
5262
+ const E = {
5263
+ ...w,
5264
+ bindValue: t.k,
5265
+ optionalDisplayValue: r,
5266
+ onChange: (T) => {
5267
+ l == null || l(S(v, T));
5268
+ }
5269
+ };
5270
+ return /* @__PURE__ */ g.jsx(Oe, { ...E });
5271
+ }
5272
+ case re.TIME: {
5273
+ const E = {
5274
+ ...w,
5275
+ bindValue: ft.fromDataObj(t).getValue(),
5276
+ onChange: (T) => {
5277
+ l == null || l(S(v, T));
5278
+ }
5279
+ };
5280
+ return /* @__PURE__ */ g.jsx(js, { ...E });
5281
+ }
5282
+ default: {
5283
+ const E = {
5284
+ ...w,
5285
+ bindValue: t.k,
5286
+ optionalDisplayValue: r
5287
+ };
5288
+ return /* @__PURE__ */ g.jsx(vs, { ...E });
5289
+ }
5280
5290
  }
5281
- default: {
5282
- const g = {
5283
- ...x,
5284
- bindValue: t.k,
5285
- optionalDisplayValue: r
5286
- };
5287
- return /* @__PURE__ */ y.jsx(xs, { ...g });
5291
+ };
5292
+ return /* @__PURE__ */ g.jsx(
5293
+ "span",
5294
+ {
5295
+ className: "smp-cell-wrapper",
5296
+ onContextMenu: (E) => {
5297
+ h && (E.preventDefault(), h(v, E.currentTarget));
5298
+ },
5299
+ children: P()
5288
5300
  }
5289
- }
5290
- }, Xs = ({ data: r, onClick: e, onEnter: t }) => {
5291
- var i, o;
5292
- const [n, s] = q(), a = le(
5293
- (c) => {
5294
- var f, u;
5295
- if (!((f = c.rows) != null && f.length) || !((u = c.columns) != null && u.length))
5301
+ );
5302
+ }, Xs = ({
5303
+ data: r,
5304
+ onClick: e,
5305
+ onEnter: t,
5306
+ onContextMenu: n
5307
+ }) => {
5308
+ var o, c;
5309
+ const [s, a] = q(), i = le(
5310
+ (l) => {
5311
+ var u, d;
5312
+ if (!((u = l.rows) != null && u.length) || !((d = l.columns) != null && d.length))
5296
5313
  return {};
5297
- const l = c.rows[0];
5298
- return c.columns.filter((d) => d.visible).reduce((d, m) => {
5299
- const h = l.cells[m.name], v = {
5300
- ...h,
5301
- id: m.name,
5302
- onChange: (x) => {
5303
- s((S) => S && {
5314
+ const f = l.rows[0];
5315
+ return l.columns.filter((m) => m.visible).reduce((m, h) => {
5316
+ const b = f.cells[h.name], v = {
5317
+ ...b,
5318
+ id: h.name,
5319
+ onChange: (w) => {
5320
+ a((S) => S && {
5304
5321
  ...S,
5305
- [m.name]: {
5306
- ...S[m.name],
5322
+ [h.name]: {
5323
+ ...S[h.name],
5307
5324
  obj: {
5308
- ...S[m.name].obj,
5309
- k: x.obj.k
5325
+ ...S[h.name].obj,
5326
+ k: w.obj.k
5310
5327
  }
5311
5328
  }
5312
5329
  });
5313
5330
  },
5314
5331
  onClick: () => {
5315
- h.fun && e && e({
5316
- ...h
5332
+ b.fun && e && e({
5333
+ ...b
5317
5334
  });
5318
5335
  },
5319
- onEnter: (x) => {
5320
- t && t(x);
5336
+ onEnter: (w) => {
5337
+ t && t(w);
5338
+ },
5339
+ onContextMenu: (w, S) => {
5340
+ n && n(w, S);
5321
5341
  }
5322
5342
  };
5323
5343
  return {
5324
- ...d,
5325
- [m.name]: v
5344
+ ...m,
5345
+ [h.name]: v
5326
5346
  };
5327
5347
  }, {});
5328
5348
  },
5329
- [e, t]
5349
+ [e, t, n]
5330
5350
  );
5331
5351
  return ne(() => {
5332
- r && s(a(r));
5333
- }, [r, a]), !((i = r == null ? void 0 : r.rows) != null && i.length) || !((o = r.columns) != null && o.length) ? null : n && /* @__PURE__ */ y.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ y.jsx($t, { layout: r.rows[0].layout, children: Object.values(n).map((c) => /* @__PURE__ */ y.jsx(Be, { ...c })) }) });
5352
+ r && a(i(r));
5353
+ }, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((c = r.columns) != null && c.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx($t, { layout: r.rows[0].layout, children: Object.values(s).map((l) => /* @__PURE__ */ g.jsx(Be, { ...l })) }) });
5334
5354
  }, Ds = (r) => {
5335
5355
  var e;
5336
5356
  return (e = r.children) != null && e.length ? r.children.map((t) => {
@@ -5353,72 +5373,72 @@ const Tr = /* @__PURE__ */ new Map([
5353
5373
  onClose: o,
5354
5374
  loadOptions: c
5355
5375
  }) => {
5356
- var R, T;
5357
- const [l, f] = q(), [u, d] = q(t ?? !0), m = ce(null), h = s.trim() ? s : "100vh", v = le(
5358
- (g) => {
5359
- var _, $;
5360
- if (!((_ = g == null ? void 0 : g.rows) != null && _.length) || !(($ = g == null ? void 0 : g.columns) != null && $.length))
5376
+ var _, O;
5377
+ const [l, f] = q(), [u, d] = q(t ?? !0), m = ce(null), h = s.trim() ? s : "100vh", b = le(
5378
+ (y) => {
5379
+ var E, T;
5380
+ if (!((E = y == null ? void 0 : y.rows) != null && E.length) || !((T = y == null ? void 0 : y.columns) != null && T.length))
5361
5381
  return {};
5362
- const E = g.rows[0];
5363
- return g.columns.filter((P) => P.visible ?? !0).reduce((P, k) => {
5364
- const W = E.cells[k.name];
5382
+ const P = y.rows[0];
5383
+ return y.columns.filter((D) => D.visible ?? !0).reduce((D, k) => {
5384
+ const W = P.cells[k.name];
5365
5385
  if (!W || !u && de(n) && W.shape !== re.BUTTON && W.shape !== re.BUTTON_LIST)
5366
- return P;
5386
+ return D;
5367
5387
  const C = {
5368
5388
  ...W,
5369
5389
  id: k.name,
5370
- onChange: (O) => {
5390
+ onChange: (j) => {
5371
5391
  f((M) => {
5372
5392
  const B = { ...M };
5373
- return B != null && B[k.name] && (B[k.name].obj.k = O.obj.k), B;
5393
+ return B != null && B[k.name] && (B[k.name].obj.k = j.obj.k), B;
5374
5394
  });
5375
5395
  },
5376
- onClick: (O) => {
5377
- O.fun && a && a(O);
5396
+ onClick: (j) => {
5397
+ j.fun && a && a(j);
5378
5398
  },
5379
- onEnter: (O) => {
5380
- i && i(O);
5399
+ onEnter: (j) => {
5400
+ i && i(j);
5381
5401
  }
5382
5402
  };
5383
- return c && W.shape == re.BUTTON_LIST && (C.onOptionsRequest = (O, M) => c(O, M).then(
5403
+ return c && W.shape == re.BUTTON_LIST && (C.onOptionsRequest = (j, M) => c(j, M).then(
5384
5404
  (B) => Ds(B)
5385
5405
  )), !u && de(n) && (C.data = {
5386
5406
  ...C.data,
5387
5407
  showText: !1,
5388
5408
  justify: "center"
5389
5409
  }), {
5390
- ...P,
5410
+ ...D,
5391
5411
  [k.name]: C
5392
5412
  };
5393
5413
  }, {});
5394
5414
  },
5395
5415
  [u, n, a, i, c]
5396
- ), x = le(() => {
5416
+ ), v = le(() => {
5397
5417
  o == null || o();
5398
- }, [o]), S = () => {
5399
- de(n) ? d((g) => !g) : (d(!1), o == null || o());
5418
+ }, [o]), w = () => {
5419
+ de(n) ? d((y) => !y) : (d(!1), o == null || o());
5400
5420
  };
5401
5421
  if (ne(() => {
5402
- f(v(r));
5422
+ f(b(r));
5403
5423
  }, [r]), ne(() => {
5404
5424
  if (!m.current)
5405
5425
  return;
5406
5426
  if (!de(n)) {
5407
- f(v(r));
5427
+ f(b(r));
5408
5428
  return;
5409
5429
  }
5410
- const g = getComputedStyle(m.current).getPropertyValue(
5430
+ const y = getComputedStyle(m.current).getPropertyValue(
5411
5431
  "--smp-drawer-slide-transition"
5412
5432
  );
5413
- let E = Number(g);
5414
- g.endsWith("ms") ? E = parseFloat(g) : g.endsWith("s") && (E = parseFloat(g) * 1e3), setTimeout(() => {
5415
- f(v(r));
5416
- }, E / 2);
5433
+ let P = Number(y);
5434
+ y.endsWith("ms") ? P = parseFloat(y) : y.endsWith("s") && (P = parseFloat(y) * 1e3), setTimeout(() => {
5435
+ f(b(r));
5436
+ }, P / 2);
5417
5437
  }, [u, n]), ne(() => {
5418
5438
  t !== void 0 && !de(n) && d(t);
5419
- }, [n, t]), !((R = r == null ? void 0 : r.rows) != null && R.length) || !((T = r.columns) != null && T.length))
5439
+ }, [n, t]), !((_ = r == null ? void 0 : r.rows) != null && _.length) || !((O = r.columns) != null && O.length))
5420
5440
  return null;
5421
- const w = {
5441
+ const S = {
5422
5442
  drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""} ${!de(n) && !u ? "smp-drawer-no-border" : ""}`,
5423
5443
  container: "smp-drawer-container",
5424
5444
  containerHeader: "smp-drawer-container-header",
@@ -5427,27 +5447,27 @@ const Tr = /* @__PURE__ */ new Map([
5427
5447
  containerLogo: "smp-drawer-container-logo",
5428
5448
  backdrop: `smp-drawer-backdrop ${u ? "smp-drawer-backdrop-open" : ""}`
5429
5449
  };
5430
- return l && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
5431
- !de(n) && /* @__PURE__ */ y.jsx(
5450
+ return l && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
5451
+ !de(n) && /* @__PURE__ */ g.jsx(
5432
5452
  "div",
5433
5453
  {
5434
5454
  "aria-hidden": "true",
5435
5455
  "aria-label": "drawer-backdrop",
5436
- className: w.backdrop,
5437
- onClick: x
5456
+ className: S.backdrop,
5457
+ onClick: v
5438
5458
  }
5439
5459
  ),
5440
- /* @__PURE__ */ y.jsx(
5460
+ /* @__PURE__ */ g.jsx(
5441
5461
  "aside",
5442
5462
  {
5443
5463
  ref: m,
5444
- className: w.drawer,
5464
+ className: S.drawer,
5445
5465
  style: { height: h },
5446
5466
  "aria-label": "Drawer",
5447
5467
  "smp-id": "drawer",
5448
- children: /* @__PURE__ */ y.jsxs("div", { className: w.container, children: [
5449
- /* @__PURE__ */ y.jsxs("div", { className: w.containerHeader, children: [
5450
- e && /* @__PURE__ */ y.jsx("div", { className: w.containerLogo, children: /* @__PURE__ */ y.jsx(
5468
+ children: /* @__PURE__ */ g.jsxs("div", { className: S.container, children: [
5469
+ /* @__PURE__ */ g.jsxs("div", { className: S.containerHeader, children: [
5470
+ e && /* @__PURE__ */ g.jsx("div", { className: S.containerLogo, children: /* @__PURE__ */ g.jsx(
5451
5471
  fe,
5452
5472
  {
5453
5473
  icon: e,
@@ -5456,20 +5476,20 @@ const Tr = /* @__PURE__ */ new Map([
5456
5476
  height: 24
5457
5477
  }
5458
5478
  ) }),
5459
- /* @__PURE__ */ y.jsx("div", { className: w.containerIcon, children: /* @__PURE__ */ y.jsx(
5479
+ /* @__PURE__ */ g.jsx("div", { className: S.containerIcon, children: /* @__PURE__ */ g.jsx(
5460
5480
  fe,
5461
5481
  {
5462
5482
  icon: de(n) ? "menu_close" : "close",
5463
5483
  title: "drawer_icon",
5464
5484
  rotated: !u,
5465
5485
  isInteractable: !0,
5466
- onClick: S,
5486
+ onClick: w,
5467
5487
  width: 20,
5468
5488
  height: 20
5469
5489
  }
5470
5490
  ) })
5471
5491
  ] }),
5472
- /* @__PURE__ */ y.jsx("div", { className: w.containerLayout, children: /* @__PURE__ */ y.jsx($t, { layout: r.rows[0].layout, children: Object.values(l).map((g) => /* @__PURE__ */ y.jsx(Be, { ...g })) }) })
5492
+ /* @__PURE__ */ g.jsx("div", { className: S.containerLayout, children: /* @__PURE__ */ g.jsx($t, { layout: r.rows[0].layout, children: Object.values(l).map((y) => /* @__PURE__ */ g.jsx(Be, { ...y })) }) })
5473
5493
  ] })
5474
5494
  }
5475
5495
  )
@@ -5490,15 +5510,15 @@ const Tr = /* @__PURE__ */ new Map([
5490
5510
  ForceUM: d,
5491
5511
  UmColName: m,
5492
5512
  UmColor: h = "var(--smp-dashList-color-base)",
5493
- ForceValue: v,
5494
- ValueColName: x,
5495
- ValueColor: S = "var(--smp-dashList-color-base)",
5496
- SelectLayout: w = "1",
5497
- onClick: R
5513
+ ForceValue: b,
5514
+ ValueColName: v,
5515
+ ValueColor: w = "var(--smp-dashList-color-base)",
5516
+ SelectLayout: S = "1",
5517
+ onClick: _
5498
5518
  }) => {
5499
- const T = "N/A", g = (e == null ? void 0 : e.columns) || [], E = (e == null ? void 0 : e.rows) || [], _ = E.length > 0, $ = "--smp-dashList-color", P = "smp-layout", k = "descr", W = "icon", C = "um", O = "value", M = i || "1em", B = "18px", H = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
5519
+ const O = "N/A", y = (e == null ? void 0 : e.columns) || [], P = (e == null ? void 0 : e.rows) || [], E = P.length > 0, T = "--smp-dashList-color", D = "smp-layout", k = "descr", W = "icon", C = "um", j = "value", M = i || "1em", B = "18px", H = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
5500
5520
  dash: (U = "1") => {
5501
- const X = p(U), te = X, se = b(X, k), he = b(X, W), Se = b(X, C), ye = b(X, O);
5521
+ const X = p(U), te = X, se = x(X, k), he = x(X, W), Se = x(X, C), ye = x(X, j);
5502
5522
  return {
5503
5523
  container: te,
5504
5524
  descr: se,
@@ -5509,7 +5529,7 @@ const Tr = /* @__PURE__ */ new Map([
5509
5529
  },
5510
5530
  dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
5511
5531
  ${de(o) ? "smp-dash-list-horizontal" : ""}`
5512
- }, { format: I } = Le(), p = (U) => `${P}-${U}`, b = (U, X) => `${U}__${X}`, j = (U) => `${$}-${U}`, A = (U) => {
5532
+ }, { format: I } = Le(), p = (U) => `${D}-${U}`, x = (U, X) => `${U}__${X}`, R = (U) => `${T}-${U}`, A = (U) => {
5513
5533
  const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
5514
5534
  if (X.test(U)) {
5515
5535
  const se = U.match(X) || [];
@@ -5517,7 +5537,7 @@ const Tr = /* @__PURE__ */ new Map([
5517
5537
  return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
5518
5538
  }
5519
5539
  return U;
5520
- }, D = (U) => {
5540
+ }, $ = (U) => {
5521
5541
  if (!u) return U;
5522
5542
  const [X, te] = L(u).map(
5523
5543
  (je) => parseInt(je || "0")
@@ -5532,25 +5552,25 @@ const Tr = /* @__PURE__ */ new Map([
5532
5552
  return (he = U == null ? void 0 : U.cells[se]) == null ? void 0 : he.obj.k;
5533
5553
  }, te = (se) => {
5534
5554
  var he, Se;
5535
- if (!(g.length <= se))
5536
- return (Se = (he = U == null ? void 0 : U.cells[g[se].name]) == null ? void 0 : he.obj) == null ? void 0 : Se.k;
5555
+ if (!(y.length <= se))
5556
+ return (Se = (he = U == null ? void 0 : U.cells[y[se].name]) == null ? void 0 : he.obj) == null ? void 0 : Se.k;
5537
5557
  };
5538
5558
  return {
5539
5559
  descr: t || X(n) || te(2) || "",
5540
5560
  icon: c || X(l) || te(3) || "",
5541
5561
  um: d || X(m) || te(1) || "",
5542
- value: v || X(x) || te(0) || ""
5562
+ value: b || X(v) || te(0) || ""
5543
5563
  };
5544
5564
  }, Y = (U) => {
5545
- R == null || R(U);
5565
+ _ == null || _(U);
5546
5566
  }, F = (U, X) => {
5547
5567
  (U.key === "Enter" || U.key === " ") && (U.preventDefault(), U.stopPropagation(), Y(X));
5548
5568
  }, G = ((U) => {
5549
5569
  const X = Z.dash(U);
5550
5570
  return {
5551
5571
  className: X,
5552
- descr: (te) => /* @__PURE__ */ y.jsx("div", { className: X.descr, children: te }, `${U}-${k}`),
5553
- icon: (te) => /* @__PURE__ */ y.jsx("div", { className: X.icon, children: /* @__PURE__ */ y.jsx(
5572
+ descr: (te) => /* @__PURE__ */ g.jsx("div", { className: X.descr, children: te }, `${U}-${k}`),
5573
+ icon: (te) => /* @__PURE__ */ g.jsx("div", { className: X.icon, children: /* @__PURE__ */ g.jsx(
5554
5574
  fe,
5555
5575
  {
5556
5576
  color: f,
@@ -5559,16 +5579,16 @@ const Tr = /* @__PURE__ */ new Map([
5559
5579
  width: B
5560
5580
  }
5561
5581
  ) }, `${U}-${W}`),
5562
- um: (te) => /* @__PURE__ */ y.jsx("div", { className: X.um, children: te }, `${U}-${C}`),
5563
- value: (te) => /* @__PURE__ */ y.jsx("div", { className: X.value, children: te }, `${U}-${O}`)
5582
+ um: (te) => /* @__PURE__ */ g.jsx("div", { className: X.um, children: te }, `${U}-${C}`),
5583
+ value: (te) => /* @__PURE__ */ g.jsx("div", { className: X.value, children: te }, `${U}-${j}`)
5564
5584
  };
5565
- })(w), ae = (U) => {
5585
+ })(S), ae = (U) => {
5566
5586
  const { descr: X, icon: te, um: se, value: he } = V(U), Se = {
5567
- [j(k)]: A(s),
5568
- [j(C)]: A(h),
5569
- [j(O)]: A(S)
5570
- }, ye = [], je = D(he);
5571
- switch (w) {
5587
+ [R(k)]: A(s),
5588
+ [R(C)]: A(h),
5589
+ [R(j)]: A(w)
5590
+ }, ye = [], je = $(he);
5591
+ switch (S) {
5572
5592
  case "2":
5573
5593
  te && ye.push(G.icon(te)), ye.push(G.descr(X)), ye.push(
5574
5594
  G.value(se ? je + " " + se : je)
@@ -5580,7 +5600,7 @@ const Tr = /* @__PURE__ */ new Map([
5580
5600
  G.value(se ? je + " " + se : je)
5581
5601
  );
5582
5602
  }
5583
- return /* @__PURE__ */ y.jsx(
5603
+ return /* @__PURE__ */ g.jsx(
5584
5604
  "div",
5585
5605
  {
5586
5606
  className: G.className.container,
@@ -5597,7 +5617,7 @@ const Tr = /* @__PURE__ */ new Map([
5597
5617
  [H]: String(r),
5598
5618
  [z]: M
5599
5619
  };
5600
- return /* @__PURE__ */ y.jsx("div", { className: Z.dashList, style: N, children: _ ? E.map((U) => ae(U)) : T });
5620
+ return /* @__PURE__ */ g.jsx("div", { className: Z.dashList, style: N, children: E ? P.map((U) => ae(U)) : O });
5601
5621
  }, tt = {
5602
5622
  "smp-table": "_smp-table_1qmju_1",
5603
5623
  "smp-headerCell": "_smp-headerCell_1qmju_35",
@@ -5631,30 +5651,30 @@ const Nr = ({
5631
5651
  rowHeight: n = 26,
5632
5652
  offsetTop: s
5633
5653
  }) => {
5634
- var w;
5635
- const [a, i] = q(!1), o = rt(r) && !!((w = r.children) != null && w.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, f = t * 20, u = () => {
5654
+ var S;
5655
+ const [a, i] = q(!1), o = rt(r) && !!((S = r.children) != null && S.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, f = t * 20, u = () => {
5636
5656
  o && i(!a);
5637
5657
  }, d = {
5638
5658
  content: `${Ee.rowContent} ${o ? Ee.clickable : ""}`,
5639
5659
  toggle: `${Ee.toggle}`,
5640
5660
  indent: `${Ee.indent}`,
5641
5661
  cell: `${Ee.cell}`
5642
- }, m = (R) => /* @__PURE__ */ y.jsx(Be, { ...R }), h = () => /* @__PURE__ */ y.jsx("span", { className: d.toggle, children: l && /* @__PURE__ */ y.jsx(
5662
+ }, m = (_) => /* @__PURE__ */ g.jsx(Be, { ..._ }), h = () => /* @__PURE__ */ g.jsx("span", { className: d.toggle, children: l && /* @__PURE__ */ g.jsx(
5643
5663
  fe,
5644
5664
  {
5645
5665
  icon: a ? "arrow_drop_right" : "arrow_drop_down",
5646
5666
  width: 16
5647
5667
  }
5648
- ) }), v = () => /* @__PURE__ */ y.jsx(
5668
+ ) }), b = () => /* @__PURE__ */ g.jsx(
5649
5669
  "span",
5650
5670
  {
5651
5671
  className: d.indent,
5652
5672
  style: { width: `${f}px` },
5653
5673
  "aria-hidden": "true"
5654
5674
  }
5655
- ), x = () => {
5656
- const R = ks(r) ? "" : r.decode || (c ? "" : "Untitled"), T = s ?? n * t;
5657
- return /* @__PURE__ */ y.jsxs(
5675
+ ), v = () => {
5676
+ const _ = ks(r) ? "" : r.decode || (c ? "" : "Untitled"), O = s ?? n * t;
5677
+ return /* @__PURE__ */ g.jsxs(
5658
5678
  "tr",
5659
5679
  {
5660
5680
  className: d.content,
@@ -5664,10 +5684,10 @@ const Nr = ({
5664
5684
  style: {
5665
5685
  height: `${n}px`,
5666
5686
  lineHeight: `calc(${n}px - 2*2px)`,
5667
- transform: `translateY(${T}px)`
5687
+ transform: `translateY(${O}px)`
5668
5688
  },
5669
5689
  children: [
5670
- rt(r) && /* @__PURE__ */ y.jsxs(
5690
+ rt(r) && /* @__PURE__ */ g.jsxs(
5671
5691
  "td",
5672
5692
  {
5673
5693
  className: Ee.leftSection,
@@ -5675,38 +5695,38 @@ const Nr = ({
5675
5695
  height: `${n}px`
5676
5696
  },
5677
5697
  children: [
5678
- v(),
5698
+ b(),
5679
5699
  h(),
5680
- /* @__PURE__ */ y.jsx("span", { className: Ee.rowLabel, children: R })
5700
+ /* @__PURE__ */ g.jsx("span", { className: Ee.rowLabel, children: _ })
5681
5701
  ]
5682
5702
  }
5683
5703
  ),
5684
- r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([g, E]) => /* @__PURE__ */ y.jsx(
5704
+ r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([y, P]) => /* @__PURE__ */ g.jsx(
5685
5705
  "td",
5686
5706
  {
5687
5707
  className: d.cell,
5688
5708
  style: {
5689
- width: e[g],
5690
- minWidth: e[g],
5709
+ width: e[y],
5710
+ minWidth: e[y],
5691
5711
  height: `${n}px`
5692
5712
  },
5693
5713
  children: m({
5694
- ...E,
5695
- id: g
5714
+ ...P,
5715
+ id: y
5696
5716
  })
5697
5717
  },
5698
- Ns(E) || g
5718
+ Ns(P) || y
5699
5719
  ))
5700
5720
  ]
5701
5721
  }
5702
5722
  );
5703
- }, S = () => {
5704
- var R;
5705
- return a || !o ? null : /* @__PURE__ */ y.jsx(y.Fragment, { children: rt(r) && ((R = r.children) == null ? void 0 : R.map((T, g) => /* @__PURE__ */ y.jsx(Nr, { row: T, level: t + 1 }, `child-${g}`))) });
5723
+ }, w = () => {
5724
+ var _;
5725
+ return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: rt(r) && ((_ = r.children) == null ? void 0 : _.map((O, y) => /* @__PURE__ */ g.jsx(Nr, { row: O, level: t + 1 }, `child-${y}`))) });
5706
5726
  };
5707
- return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
5708
- x(),
5709
- S()
5727
+ return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
5728
+ v(),
5729
+ w()
5710
5730
  ] });
5711
5731
  }, Is = ({
5712
5732
  label: r,
@@ -5720,7 +5740,7 @@ const Nr = ({
5720
5740
  tr: "smp-groupRow-tr",
5721
5741
  td: "smp-groupRow-td"
5722
5742
  };
5723
- return /* @__PURE__ */ y.jsx(
5743
+ return /* @__PURE__ */ g.jsx(
5724
5744
  "tr",
5725
5745
  {
5726
5746
  className: i.tr,
@@ -5730,7 +5750,7 @@ const Nr = ({
5730
5750
  lineHeight: `${e}px`
5731
5751
  },
5732
5752
  onClick: s,
5733
- children: /* @__PURE__ */ y.jsxs(
5753
+ children: /* @__PURE__ */ g.jsxs(
5734
5754
  "td",
5735
5755
  {
5736
5756
  className: i.td,
@@ -5738,14 +5758,14 @@ const Nr = ({
5738
5758
  paddingLeft: 10 + n * 20
5739
5759
  },
5740
5760
  children: [
5741
- /* @__PURE__ */ y.jsx(
5761
+ /* @__PURE__ */ g.jsx(
5742
5762
  fe,
5743
5763
  {
5744
5764
  icon: a ? "arrow_drop_down" : "arrow_drop_right",
5745
5765
  width: 16
5746
5766
  }
5747
5767
  ),
5748
- /* @__PURE__ */ y.jsx(Ve, { variant: "title", bindValue: r })
5768
+ /* @__PURE__ */ g.jsx(Ve, { variant: "title", bindValue: r })
5749
5769
  ]
5750
5770
  }
5751
5771
  )
@@ -5774,18 +5794,18 @@ function Vs(r, e, t, n) {
5774
5794
  f(u);
5775
5795
  return;
5776
5796
  }
5777
- const h = e[d].column, v = o(u, h);
5778
- for (const [x, S] of v) {
5779
- const w = [...m, x], R = c(w, d), T = n.has(R);
5780
- s.push(l(x, R, d, T)), a += t, T && i(S, d + 1, w);
5797
+ const h = e[d].column, b = o(u, h);
5798
+ for (const [v, w] of b) {
5799
+ const S = [...m, v], _ = c(S, d), O = n.has(_);
5800
+ s.push(l(v, _, d, O)), a += t, O && i(w, d + 1, S);
5781
5801
  }
5782
5802
  }
5783
5803
  function o(u, d) {
5784
5804
  var h;
5785
5805
  const m = /* @__PURE__ */ new Map();
5786
- for (const v of u) {
5787
- const x = ((h = v.cells[d]) == null ? void 0 : h.decode) ?? "N/D";
5788
- m.has(x) || m.set(x, []), m.get(x).push(v);
5806
+ for (const b of u) {
5807
+ const v = ((h = b.cells[d]) == null ? void 0 : h.decode) ?? "N/D";
5808
+ m.has(v) || m.set(v, []), m.get(v).push(b);
5789
5809
  }
5790
5810
  return m;
5791
5811
  }
@@ -5820,15 +5840,15 @@ const Ys = ({
5820
5840
  bindValue: o.column
5821
5841
  })
5822
5842
  );
5823
- return /* @__PURE__ */ y.jsxs(
5843
+ return /* @__PURE__ */ g.jsxs(
5824
5844
  "tr",
5825
5845
  {
5826
5846
  className: "smp-groupBar-container",
5827
5847
  onDragOver: a,
5828
5848
  onDrop: s,
5829
5849
  children: [
5830
- /* @__PURE__ */ y.jsx("td", { children: /* @__PURE__ */ y.jsx(fe, { icon: "groups" }) }),
5831
- /* @__PURE__ */ y.jsx("td", { children: /* @__PURE__ */ y.jsx(
5850
+ /* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(fe, { icon: "groups" }) }),
5851
+ /* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(
5832
5852
  Lt,
5833
5853
  {
5834
5854
  elements: i,
@@ -5841,8 +5861,8 @@ const Ys = ({
5841
5861
  ]
5842
5862
  }
5843
5863
  );
5844
- }, Us = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ y.jsx("tfoot", { children: /* @__PURE__ */ y.jsx("tr", { children: r.map(
5845
- (t) => t.visible && /* @__PURE__ */ y.jsx(
5864
+ }, Us = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ g.jsx("tfoot", { children: /* @__PURE__ */ g.jsx("tr", { children: r.map(
5865
+ (t) => t.visible && /* @__PURE__ */ g.jsx(
5846
5866
  "td",
5847
5867
  {
5848
5868
  className: tt["smp-headerCell"],
@@ -5880,8 +5900,8 @@ const Ys = ({
5880
5900
  if (!l.visible) continue;
5881
5901
  const f = ((o = l.title) == null ? void 0 : o.length) || 0, u = Math.max(
5882
5902
  ...e.map((d) => {
5883
- var m, h, v, x;
5884
- return `${((h = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : h.decode) || ((x = (v = d.cells) == null ? void 0 : v[l.name]) == null ? void 0 : x.value) || ""}`.length;
5903
+ var m, h, b, v;
5904
+ return `${((h = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : h.decode) || ((v = (b = d.cells) == null ? void 0 : b[l.name]) == null ? void 0 : v.value) || ""}`.length;
5885
5905
  }),
5886
5906
  f
5887
5907
  );
@@ -5900,7 +5920,7 @@ const Ys = ({
5900
5920
  showGroupBar: a = !0
5901
5921
  // isEditable = false,
5902
5922
  }) => {
5903
- var _;
5923
+ var E;
5904
5924
  const [i, o] = q(
5905
5925
  r ?? { columns: [], rows: [] }
5906
5926
  ), [c, l] = q(n || []), [f, u] = q(/* @__PURE__ */ new Set()), d = ce(null), [m, h] = Ws({
@@ -5911,121 +5931,121 @@ const Ys = ({
5911
5931
  });
5912
5932
  ne(() => {
5913
5933
  if (c != null && c.length && r.rows) {
5914
- const { flatRows: $ } = Vs(
5934
+ const { flatRows: T } = Vs(
5915
5935
  r.rows,
5916
5936
  c,
5917
5937
  e,
5918
5938
  f
5919
5939
  );
5920
- o({ ...r, rows: $ });
5940
+ o({ ...r, rows: T });
5921
5941
  } else
5922
5942
  o(r);
5923
5943
  }, [r, c, f, e]);
5924
- const v = ($) => {
5925
- l(Fs($, c));
5926
- }, x = ($) => {
5927
- $.preventDefault();
5928
- const P = $.dataTransfer.getData("text/plain");
5929
- if (!P || c.some((C) => C.column === P))
5944
+ const b = (T) => {
5945
+ l(Fs(T, c));
5946
+ }, v = (T) => {
5947
+ T.preventDefault();
5948
+ const D = T.dataTransfer.getData("text/plain");
5949
+ if (!D || c.some((C) => C.column === D))
5930
5950
  return;
5931
- const W = [...c, { column: P, visible: !0 }];
5951
+ const W = [...c, { column: D, visible: !0 }];
5932
5952
  l(W);
5933
- }, S = ($) => {
5934
- $.preventDefault();
5935
- }, { virtualItems: w, containerProps: R, innerProps: T } = Pr({
5953
+ }, w = (T) => {
5954
+ T.preventDefault();
5955
+ }, { virtualItems: S, containerProps: _, innerProps: O } = Pr({
5936
5956
  items: (i == null ? void 0 : i.rows) ?? [],
5937
5957
  itemHeight: e,
5938
5958
  containerHeight: t,
5939
5959
  overscan: 5
5940
- }), g = ($, P) => {
5941
- const k = $.clientX, W = m[P], C = (M) => {
5960
+ }), y = (T, D) => {
5961
+ const k = T.clientX, W = m[D], C = (M) => {
5942
5962
  const B = M.clientX - k, H = Math.max(50, W + B);
5943
5963
  h((z) => ({
5944
5964
  ...z,
5945
- [P]: H
5965
+ [D]: H
5946
5966
  }));
5947
- }, O = () => {
5948
- window.removeEventListener("mousemove", C), window.removeEventListener("mouseup", O);
5967
+ }, j = () => {
5968
+ window.removeEventListener("mousemove", C), window.removeEventListener("mouseup", j);
5949
5969
  };
5950
- window.addEventListener("mousemove", C), window.addEventListener("mouseup", O);
5951
- }, E = {
5970
+ window.addEventListener("mousemove", C), window.addEventListener("mouseup", j);
5971
+ }, P = {
5952
5972
  smpTable: `${tt["smp-table"]}`,
5953
5973
  headerCell: `${tt["smp-headerCell"]}`,
5954
5974
  resizer: `${tt["smp-resizer"]}`
5955
5975
  };
5956
- return i && /* @__PURE__ */ y.jsx(
5976
+ return i && /* @__PURE__ */ g.jsx(
5957
5977
  "div",
5958
5978
  {
5959
- className: E.smpTable,
5960
- ...R,
5979
+ className: P.smpTable,
5980
+ ..._,
5961
5981
  ref: d,
5962
- children: /* @__PURE__ */ y.jsxs("table", { children: [
5963
- /* @__PURE__ */ y.jsxs("thead", { children: [
5964
- (n || a) && /* @__PURE__ */ y.jsx(
5982
+ children: /* @__PURE__ */ g.jsxs("table", { children: [
5983
+ /* @__PURE__ */ g.jsxs("thead", { children: [
5984
+ (n || a) && /* @__PURE__ */ g.jsx(
5965
5985
  Ys,
5966
5986
  {
5967
5987
  groups: c,
5968
- onChange: v,
5969
- onDrop: x,
5970
- onDragOver: S
5988
+ onChange: b,
5989
+ onDrop: v,
5990
+ onDragOver: w
5971
5991
  }
5972
5992
  ),
5973
- /* @__PURE__ */ y.jsx("tr", { children: i.columns && ((_ = i.columns) == null ? void 0 : _.map(
5974
- ($) => $.visible && /* @__PURE__ */ y.jsxs(
5993
+ /* @__PURE__ */ g.jsx("tr", { children: i.columns && ((E = i.columns) == null ? void 0 : E.map(
5994
+ (T) => T.visible && /* @__PURE__ */ g.jsxs(
5975
5995
  "th",
5976
5996
  {
5977
- className: E.headerCell,
5997
+ className: P.headerCell,
5978
5998
  draggable: !0,
5979
- onDragStart: (P) => {
5980
- P.dataTransfer.setData("text/plain", $.name);
5999
+ onDragStart: (D) => {
6000
+ D.dataTransfer.setData("text/plain", T.name);
5981
6001
  },
5982
6002
  style: {
5983
- width: m[$.name],
5984
- minWidth: m[$.name],
5985
- maxWidth: m[$.name]
6003
+ width: m[T.name],
6004
+ minWidth: m[T.name],
6005
+ maxWidth: m[T.name]
5986
6006
  },
5987
6007
  children: [
5988
- /* @__PURE__ */ y.jsx(
6008
+ /* @__PURE__ */ g.jsx(
5989
6009
  Ve,
5990
6010
  {
5991
6011
  variant: "title",
5992
- bindValue: $.title
6012
+ bindValue: T.title
5993
6013
  }
5994
6014
  ),
5995
- /* @__PURE__ */ y.jsx(
6015
+ /* @__PURE__ */ g.jsx(
5996
6016
  "div",
5997
6017
  {
5998
- className: E.resizer,
5999
- onMouseDown: (P) => g(P, $.name),
6018
+ className: P.resizer,
6019
+ onMouseDown: (D) => y(D, T.name),
6000
6020
  role: "region"
6001
6021
  }
6002
6022
  )
6003
6023
  ]
6004
6024
  },
6005
- $.name
6025
+ T.name
6006
6026
  )
6007
6027
  )) })
6008
6028
  ] }),
6009
- /* @__PURE__ */ y.jsx("tbody", { ...T, children: w.map(({ item: $, index: P, offsetTop: k }) => {
6010
- const W = $.rowId || $.value || `${$.isGroup ? "group" : "row"}-${P}`;
6011
- return $.isGroup ? /* @__PURE__ */ y.jsx(
6029
+ /* @__PURE__ */ g.jsx("tbody", { ...O, children: S.map(({ item: T, index: D, offsetTop: k }) => {
6030
+ const W = T.rowId || T.value || `${T.isGroup ? "group" : "row"}-${D}`;
6031
+ return T.isGroup ? /* @__PURE__ */ g.jsx(
6012
6032
  Is,
6013
6033
  {
6014
- label: $.value || "",
6034
+ label: T.value || "",
6015
6035
  rowHeight: e,
6016
6036
  offsetTop: k,
6017
- level: $.level,
6037
+ level: T.level,
6018
6038
  onClick: () => {
6019
- const C = $.rowId;
6020
- C && u((O) => Ms(O, C));
6039
+ const C = T.rowId;
6040
+ C && u((j) => Ms(j, C));
6021
6041
  },
6022
- isExpanded: $.isExpanded
6042
+ isExpanded: T.isExpanded
6023
6043
  },
6024
6044
  `group-${W}`
6025
- ) : /* @__PURE__ */ y.jsx(
6045
+ ) : /* @__PURE__ */ g.jsx(
6026
6046
  Nr,
6027
6047
  {
6028
- row: $,
6048
+ row: T,
6029
6049
  columnWidths: m,
6030
6050
  rowHeight: e,
6031
6051
  offsetTop: k,
@@ -6034,7 +6054,7 @@ const Ys = ({
6034
6054
  `row-${W}`
6035
6055
  );
6036
6056
  }) }),
6037
- /* @__PURE__ */ y.jsx(Us, { columns: i.columns, columnWidths: m })
6057
+ /* @__PURE__ */ g.jsx(Us, { columns: i.columns, columnWidths: m })
6038
6058
  ] })
6039
6059
  }
6040
6060
  );
@@ -6055,8 +6075,8 @@ const Ys = ({
6055
6075
  u(() => {
6056
6076
  if (!r)
6057
6077
  return;
6058
- const v = { ...r };
6059
- return e && (v.shape = e), v.shape == null && (v.shape = re.TEXT_FIELD), s && (v.obj = zr(s)), v;
6078
+ const b = { ...r };
6079
+ return e && (b.shape = e), b.shape == null && (b.shape = re.TEXT_FIELD), s && (b.obj = zr(s)), b;
6060
6080
  });
6061
6081
  }, [r, s, e]);
6062
6082
  const m = {
@@ -6065,8 +6085,8 @@ const Ys = ({
6065
6085
  de(t) || o == null || o(f);
6066
6086
  };
6067
6087
  if (f)
6068
- return /* @__PURE__ */ y.jsxs("div", { className: m.container, children: [
6069
- /* @__PURE__ */ y.jsx(
6088
+ return /* @__PURE__ */ g.jsxs("div", { className: m.container, children: [
6089
+ /* @__PURE__ */ g.jsx(
6070
6090
  "div",
6071
6091
  {
6072
6092
  style: {
@@ -6075,7 +6095,7 @@ const Ys = ({
6075
6095
  gap: "8px",
6076
6096
  font: "var(--smp-fontLabel-base)"
6077
6097
  },
6078
- children: /* @__PURE__ */ y.jsx(
6098
+ children: /* @__PURE__ */ g.jsx(
6079
6099
  Be,
6080
6100
  {
6081
6101
  ...f,
@@ -6091,7 +6111,7 @@ const Ys = ({
6091
6111
  }
6092
6112
  ),
6093
6113
  de(t) && //TODO: translation
6094
- /* @__PURE__ */ y.jsx(
6114
+ /* @__PURE__ */ g.jsx(
6095
6115
  Ce,
6096
6116
  {
6097
6117
  optionalDisplayValue: "Confirm",
@@ -6125,68 +6145,68 @@ const Ys = ({
6125
6145
  ne(() => {
6126
6146
  l(h(r));
6127
6147
  }, [r]);
6128
- const u = (x, S) => {
6129
- l((w) => ({
6130
- ...w,
6131
- [x]: {
6132
- ...w[x],
6148
+ const u = (v, w) => {
6149
+ l((S) => ({
6150
+ ...S,
6151
+ [v]: {
6152
+ ...S[v],
6133
6153
  obj: {
6134
- ...w[x].obj,
6135
- k: S.obj.k
6154
+ ...S[v].obj,
6155
+ k: w.obj.k
6136
6156
  },
6137
- decode: S.decode,
6157
+ decode: w.decode,
6138
6158
  data: {
6139
- ...w[x].data,
6159
+ ...S[v].data,
6140
6160
  error: void 0
6141
6161
  }
6142
6162
  }
6143
- })), n && (S.shape == re.CHECKBOX || S.shape == re.SWITCH) && d();
6163
+ })), n && (w.shape == re.CHECKBOX || w.shape == re.SWITCH) && d();
6144
6164
  }, d = () => {
6145
- const x = v();
6165
+ const v = b();
6146
6166
  a({
6147
- value: x
6167
+ value: v
6148
6168
  });
6149
- }, m = async (x) => {
6150
- var S, w;
6151
- if ((S = c[x].inputSettings) != null && S.checkObject && o && ((await o({
6152
- obj: c[x].obj,
6153
- fun: c[x].fun,
6154
- cellId: x
6155
- })).valid || l((T) => ({
6156
- ...T,
6157
- [x]: {
6158
- ...T[x],
6169
+ }, m = async (v) => {
6170
+ var w, S;
6171
+ if ((w = c[v].inputSettings) != null && w.checkObject && o && ((await o({
6172
+ obj: c[v].obj,
6173
+ fun: c[v].fun,
6174
+ cellId: v
6175
+ })).valid || l((O) => ({
6176
+ ...O,
6177
+ [v]: {
6178
+ ...O[v],
6159
6179
  data: {
6160
- ...T[x].data,
6180
+ ...O[v].data,
6161
6181
  error: f(mt.CHECK_OBJECT_WRONG_VALIDATION)
6162
6182
  }
6163
6183
  }
6164
- }))), (w = c[x].inputSettings) != null && w.checkValueOnExit) {
6165
- const R = v();
6184
+ }))), (S = c[v].inputSettings) != null && S.checkValueOnExit) {
6185
+ const _ = b();
6166
6186
  i == null || i({
6167
- value: R,
6168
- cell: x
6187
+ value: _,
6188
+ cell: v
6169
6189
  });
6170
6190
  }
6171
- }, h = (x) => {
6172
- var w, R, T;
6173
- if (!((w = x.rows) != null && w.length) || !((R = x.columns) != null && R.length))
6191
+ }, h = (v) => {
6192
+ var S, _, O;
6193
+ if (!((S = v.rows) != null && S.length) || !((_ = v.columns) != null && _.length))
6174
6194
  return {};
6175
- const S = (T = x.rows) == null ? void 0 : T[0];
6176
- return x.columns.filter((g) => g.visible ?? !0).reduce((g, E) => {
6177
- const _ = {
6178
- ...S.cells[E.name],
6179
- id: E.name,
6180
- label: E.title
6195
+ const w = (O = v.rows) == null ? void 0 : O[0];
6196
+ return v.columns.filter((y) => y.visible ?? !0).reduce((y, P) => {
6197
+ const E = {
6198
+ ...w.cells[P.name],
6199
+ id: P.name,
6200
+ label: P.title
6181
6201
  };
6182
- return _.fun && (_.onOptionsRequest = async ($, P) => Gs(
6183
- await s($, P, r, E.name)
6184
- )), _.isEditable == null && (_.isEditable = !0), e && (_.isEditable = !1), _.isEditable && _.shape == null && (_.shape = re.TEXT_FIELD), {
6185
- ...g,
6186
- [E.name]: _
6202
+ return E.fun && (E.onOptionsRequest = async (T, D) => Gs(
6203
+ await s(T, D, r, P.name)
6204
+ )), E.isEditable == null && (E.isEditable = !0), e && (E.isEditable = !1), E.isEditable && E.shape == null && (E.shape = re.TEXT_FIELD), {
6205
+ ...y,
6206
+ [P.name]: E
6187
6207
  };
6188
6208
  }, {});
6189
- }, v = () => ({
6209
+ }, b = () => ({
6190
6210
  before: r,
6191
6211
  after: {
6192
6212
  type: "SmeupDataTable",
@@ -6198,7 +6218,7 @@ const Ys = ({
6198
6218
  ]
6199
6219
  }
6200
6220
  });
6201
- return c && /* @__PURE__ */ y.jsxs(
6221
+ return c && /* @__PURE__ */ g.jsxs(
6202
6222
  "div",
6203
6223
  {
6204
6224
  "data-component": "input-panel",
@@ -6209,15 +6229,15 @@ const Ys = ({
6209
6229
  padding: "2rem"
6210
6230
  },
6211
6231
  children: [
6212
- /* @__PURE__ */ y.jsx($t, { layout: r.rows[0].layout, children: Object.values(c).map((x) => /* @__PURE__ */ y.jsx(
6232
+ /* @__PURE__ */ g.jsx($t, { layout: r.rows[0].layout, children: Object.values(c).map((v) => /* @__PURE__ */ g.jsx(
6213
6233
  Be,
6214
6234
  {
6215
- ...x,
6216
- onChange: (S) => u(x.id, S),
6217
- onBlur: () => m(x.id)
6235
+ ...v,
6236
+ onChange: (w) => u(v.id, w),
6237
+ onBlur: () => m(v.id)
6218
6238
  }
6219
6239
  )) }),
6220
- !t && /* @__PURE__ */ y.jsx(
6240
+ !t && /* @__PURE__ */ g.jsx(
6221
6241
  Ce,
6222
6242
  {
6223
6243
  onClick: d,
@@ -6243,7 +6263,7 @@ export {
6243
6263
  ta as Field,
6244
6264
  fe as Icon,
6245
6265
  ra as InputPanel,
6246
- ys as Password,
6266
+ gs as Password,
6247
6267
  Oe as Textfield,
6248
6268
  Js as configurePaths
6249
6269
  };