@restio/ui 0.0.2-SNAPSHOT → 0.0.4-SNAPSHOT

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as k from "react";
2
- import Ie, { useState as W, useRef as te, useCallback as q, useEffect as pe, useId as ti, isValidElement as Rt, forwardRef as Qe, useContext as yt, createContext as ft, useMemo as xe, useImperativeHandle as Cy, PureComponent as Fu, useLayoutEffect as _t, cloneElement as ca, createElement as zu, Children as Y1, memo as Ny, Component as X1 } from "react";
2
+ import Ie, { useState as W, useRef as ne, useCallback as q, useEffect as pe, useId as ti, isValidElement as Rt, forwardRef as Qe, useContext as yt, createContext as ft, useMemo as xe, useImperativeHandle as Cy, PureComponent as Fu, useLayoutEffect as _t, cloneElement as ca, createElement as zu, Children as Y1, memo as Ny, Component as X1 } from "react";
3
3
  import Z1, { createPortal as Ku } from "react-dom";
4
4
  function tn(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -271,7 +271,7 @@ const yK = ({
271
271
  ariaLabel: n = "One-time password input",
272
272
  className: a = ""
273
273
  }) => {
274
- const [i, o] = W(""), s = te([]), l = q(
274
+ const [i, o] = W(""), s = ne([]), l = q(
275
275
  (p) => {
276
276
  p >= 0 && p < e && (s.current[p]?.focus(), s.current[p]?.select());
277
277
  },
@@ -382,12 +382,17 @@ const yK = ({
382
382
  onError: g,
383
383
  style: { width: n || "100%", height: a || "100%", objectFit: "cover" }
384
384
  }
385
- ) : s ? /* @__PURE__ */ m.jsx("svg", { width: n || "1rem", height: a || "1rem", role: "application", "aria-disabled": t, className: v.icon, children: /* @__PURE__ */ m.jsx("rect", { width: "100%", height: "100%", fill: "currentColor", opacity: "0.3" }) }) : c || d ? /* @__PURE__ */ m.jsxs("svg", { width: n || "1rem", height: a || "1rem", role: "application", "aria-disabled": t, className: v.icon, children: [
385
+ ) : s ? /* @__PURE__ */ m.jsxs("svg", { "data-testid": "icon", width: n || "1rem", height: a || "1rem", role: "application", "aria-disabled": t, className: v.icon, children: [
386
+ /* @__PURE__ */ m.jsx("title", { children: e }),
387
+ /* @__PURE__ */ m.jsx("rect", { width: "100%", height: "100%", fill: "currentColor", opacity: "0.3" })
388
+ ] }) : c || d ? /* @__PURE__ */ m.jsxs("svg", { "data-testid": "icon", width: n || "1rem", height: a || "1rem", role: "application", "aria-disabled": t, className: v.icon, children: [
389
+ /* @__PURE__ */ m.jsx("title", { children: e }),
386
390
  /* @__PURE__ */ m.jsx("rect", { width: "100%", height: "100%", fill: "none", stroke: "currentColor", strokeWidth: "1" }),
387
391
  /* @__PURE__ */ m.jsx("text", { x: "50%", y: "50%", textAnchor: "middle", dominantBaseline: "middle", fontSize: "0.5rem", children: "X!X" })
388
392
  ] }) : /* @__PURE__ */ m.jsx(
389
393
  "svg",
390
394
  {
395
+ "data-testid": "icon",
391
396
  width: n || "1rem",
392
397
  height: a || "1rem",
393
398
  role: "application",
@@ -468,9 +473,9 @@ const Ln = {
468
473
  return /* @__PURE__ */ m.jsxs("span", { className: i.tag, children: [
469
474
  t && /* @__PURE__ */ m.jsx(je, { src: t }),
470
475
  /* @__PURE__ */ m.jsx(ie, { variant: "caption", children: e }),
471
- n && /* @__PURE__ */ m.jsx(ne, { leadingVisual: "delete", onClick: o, "aria-label": "Rimuovi tag", variant: "invisible", size: "small" })
476
+ n && /* @__PURE__ */ m.jsx(re, { leadingVisual: "delete", onClick: o, "aria-label": "Rimuovi tag", variant: "invisible", size: "small" })
472
477
  ] });
473
- }, ne = ({
478
+ }, re = ({
474
479
  variant: e = "base",
475
480
  size: t = "default",
476
481
  loading: r = !1,
@@ -514,8 +519,8 @@ const Ln = {
514
519
  /* @__PURE__ */ m.jsx("div", { className: zr["rst-banner-description"], children: /* @__PURE__ */ m.jsx(ie, { variant: "body", children: n }) })
515
520
  ] }),
516
521
  (t || a) && /* @__PURE__ */ m.jsxs("div", { className: zr["rst-banner-actions"], children: [
517
- t && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("a", { href: t, className: zr["rst-banner-link"], children: /* @__PURE__ */ m.jsx(ne, { value: o }) }) }),
518
- a && /* @__PURE__ */ m.jsx(ne, { leadingVisual: "close", onClick: u, "aria-label": "Chiudi banner", variant: "invisible", size: "small" })
522
+ t && /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx("a", { href: t, className: zr["rst-banner-link"], children: /* @__PURE__ */ m.jsx(re, { value: o }) }) }),
523
+ a && /* @__PURE__ */ m.jsx(re, { leadingVisual: "close", onClick: u, "aria-label": "Chiudi banner", variant: "invisible", size: "small" })
519
524
  ] })
520
525
  ] });
521
526
  }, nl = {
@@ -534,7 +539,7 @@ const Ln = {
534
539
  className: o,
535
540
  ...s
536
541
  }) => {
537
- const l = te(null);
542
+ const l = ne(null);
538
543
  pe(() => {
539
544
  l.current && (l.current.indeterminate = t);
540
545
  }, [t]);
@@ -559,7 +564,7 @@ const Ln = {
559
564
  anchorName: s,
560
565
  ...l
561
566
  }) => {
562
- const c = ti(), u = s || `anchor-${c}`, d = te(null), f = te(null), [p] = W(() => {
567
+ const c = ti(), u = s || `anchor-${c}`, d = ne(null), f = ne(null), [p] = W(() => {
563
568
  const g = document.createElement("div");
564
569
  return document.body.appendChild(g), g;
565
570
  });
@@ -5740,7 +5745,7 @@ var ld = () => yt(n0), mj = /* @__PURE__ */ Qe((e, t) => {
5740
5745
  className: f,
5741
5746
  onResize: p,
5742
5747
  style: h = {}
5743
- } = e, v = te(null), g = te();
5748
+ } = e, v = ne(null), g = ne();
5744
5749
  g.current = p, Cy(t, () => v.current);
5745
5750
  var [y, b] = W({
5746
5751
  containerWidth: n.width,
@@ -6968,7 +6973,7 @@ function ua(e) {
6968
6973
  onAnimationEnd: s,
6969
6974
  onAnimationStart: l,
6970
6975
  children: c
6971
- } = t, u = r === "auto" ? !ui.isSsr : r, d = TA(t.animationId, t.animationManager), [f, p] = W(u ? iv : oc), h = te(null);
6976
+ } = t, u = r === "auto" ? !ui.isSsr : r, d = TA(t.animationId, t.animationManager), [f, p] = W(u ? iv : oc), h = ne(null);
6972
6977
  return pe(() => {
6973
6978
  u || p(oc);
6974
6979
  }, [u]), pe(() => {
@@ -6983,7 +6988,7 @@ function ua(e) {
6983
6988
  }, [u, n, a, i, o, l, s, d]), c(f.t);
6984
6989
  }
6985
6990
  function da(e) {
6986
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", r = te(Wa(t)), n = te(e);
6991
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", r = ne(Wa(t)), n = ne(e);
6987
6992
  return n.current !== e && (r.current = Wa(t), n.current = e), r.current;
6988
6993
  }
6989
6994
  var $A = ["radius"], MA = ["radius"], ov, sv, lv, cv, uv, dv, fv, pv, hv, vv;
@@ -7092,7 +7097,7 @@ var bv = (e, t, r, n, a) => {
7092
7097
  animationDuration: 1500,
7093
7098
  animationEasing: "ease"
7094
7099
  }, g0 = (e) => {
7095
- var t = Ge(e, wv), r = te(null), [n, a] = W(-1);
7100
+ var t = Ge(e, wv), r = ne(null), [n, a] = W(-1);
7096
7101
  pe(() => {
7097
7102
  if (r.current && r.current.getTotalLength)
7098
7103
  try {
@@ -7114,7 +7119,7 @@ var bv = (e, t, r, n, a) => {
7114
7119
  animationBegin: p,
7115
7120
  isAnimationActive: h,
7116
7121
  isUpdateAnimationActive: v
7117
- } = t, g = te(s), y = te(l), b = te(i), w = te(o), _ = xe(() => ({
7122
+ } = t, g = ne(s), y = ne(l), b = ne(i), w = ne(o), _ = xe(() => ({
7118
7123
  x: i,
7119
7124
  y: o,
7120
7125
  width: s,
@@ -9813,12 +9818,12 @@ var pa = 1e9, DN = {
9813
9818
  // The natural logarithm of 10.
9814
9819
  // 115 digits
9815
9820
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
9816
- }, Md, Be = !0, Ht = "[DecimalError] ", En = Ht + "Invalid argument: ", $d = Ht + "Exponent out of range: ", ha = Math.floor, pn = Math.pow, $N = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Mt, ut = 1e7, Me = 7, aw = 9007199254740991, Mo = ha(aw / Me), re = {};
9817
- re.absoluteValue = re.abs = function() {
9821
+ }, Md, Be = !0, Ht = "[DecimalError] ", En = Ht + "Invalid argument: ", $d = Ht + "Exponent out of range: ", ha = Math.floor, pn = Math.pow, $N = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Mt, ut = 1e7, Me = 7, aw = 9007199254740991, Mo = ha(aw / Me), te = {};
9822
+ te.absoluteValue = te.abs = function() {
9818
9823
  var e = new this.constructor(this);
9819
9824
  return e.s && (e.s = 1), e;
9820
9825
  };
9821
- re.comparedTo = re.cmp = function(e) {
9826
+ te.comparedTo = te.cmp = function(e) {
9822
9827
  var t, r, n, a, i = this;
9823
9828
  if (e = new i.constructor(e), i.s !== e.s) return i.s || -e.s;
9824
9829
  if (i.e !== e.e) return i.e > e.e ^ i.s < 0 ? 1 : -1;
@@ -9826,49 +9831,49 @@ re.comparedTo = re.cmp = function(e) {
9826
9831
  if (i.d[t] !== e.d[t]) return i.d[t] > e.d[t] ^ i.s < 0 ? 1 : -1;
9827
9832
  return n === a ? 0 : n > a ^ i.s < 0 ? 1 : -1;
9828
9833
  };
9829
- re.decimalPlaces = re.dp = function() {
9834
+ te.decimalPlaces = te.dp = function() {
9830
9835
  var e = this, t = e.d.length - 1, r = (t - e.e) * Me;
9831
9836
  if (t = e.d[t], t) for (; t % 10 == 0; t /= 10) r--;
9832
9837
  return r < 0 ? 0 : r;
9833
9838
  };
9834
- re.dividedBy = re.div = function(e) {
9839
+ te.dividedBy = te.div = function(e) {
9835
9840
  return Or(this, new this.constructor(e));
9836
9841
  };
9837
- re.dividedToIntegerBy = re.idiv = function(e) {
9842
+ te.dividedToIntegerBy = te.idiv = function(e) {
9838
9843
  var t = this, r = t.constructor;
9839
9844
  return Ce(Or(t, new r(e), 0, 1), r.precision);
9840
9845
  };
9841
- re.equals = re.eq = function(e) {
9846
+ te.equals = te.eq = function(e) {
9842
9847
  return !this.cmp(e);
9843
9848
  };
9844
- re.exponent = function() {
9849
+ te.exponent = function() {
9845
9850
  return Je(this);
9846
9851
  };
9847
- re.greaterThan = re.gt = function(e) {
9852
+ te.greaterThan = te.gt = function(e) {
9848
9853
  return this.cmp(e) > 0;
9849
9854
  };
9850
- re.greaterThanOrEqualTo = re.gte = function(e) {
9855
+ te.greaterThanOrEqualTo = te.gte = function(e) {
9851
9856
  return this.cmp(e) >= 0;
9852
9857
  };
9853
- re.isInteger = re.isint = function() {
9858
+ te.isInteger = te.isint = function() {
9854
9859
  return this.e > this.d.length - 2;
9855
9860
  };
9856
- re.isNegative = re.isneg = function() {
9861
+ te.isNegative = te.isneg = function() {
9857
9862
  return this.s < 0;
9858
9863
  };
9859
- re.isPositive = re.ispos = function() {
9864
+ te.isPositive = te.ispos = function() {
9860
9865
  return this.s > 0;
9861
9866
  };
9862
- re.isZero = function() {
9867
+ te.isZero = function() {
9863
9868
  return this.s === 0;
9864
9869
  };
9865
- re.lessThan = re.lt = function(e) {
9870
+ te.lessThan = te.lt = function(e) {
9866
9871
  return this.cmp(e) < 0;
9867
9872
  };
9868
- re.lessThanOrEqualTo = re.lte = function(e) {
9873
+ te.lessThanOrEqualTo = te.lte = function(e) {
9869
9874
  return this.cmp(e) < 1;
9870
9875
  };
9871
- re.logarithm = re.log = function(e) {
9876
+ te.logarithm = te.log = function(e) {
9872
9877
  var t, r = this, n = r.constructor, a = n.precision, i = a + 5;
9873
9878
  if (e === void 0)
9874
9879
  e = new n(10);
@@ -9876,30 +9881,30 @@ re.logarithm = re.log = function(e) {
9876
9881
  if (r.s < 1) throw Error(Ht + (r.s ? "NaN" : "-Infinity"));
9877
9882
  return r.eq(Mt) ? new n(0) : (Be = !1, t = Or(Za(r, i), Za(e, i), i), Be = !0, Ce(t, a));
9878
9883
  };
9879
- re.minus = re.sub = function(e) {
9884
+ te.minus = te.sub = function(e) {
9880
9885
  var t = this;
9881
9886
  return e = new t.constructor(e), t.s == e.s ? sw(t, e) : iw(t, (e.s = -e.s, e));
9882
9887
  };
9883
- re.modulo = re.mod = function(e) {
9888
+ te.modulo = te.mod = function(e) {
9884
9889
  var t, r = this, n = r.constructor, a = n.precision;
9885
9890
  if (e = new n(e), !e.s) throw Error(Ht + "NaN");
9886
9891
  return r.s ? (Be = !1, t = Or(r, e, 0, 1).times(e), Be = !0, r.minus(t)) : Ce(new n(r), a);
9887
9892
  };
9888
- re.naturalExponential = re.exp = function() {
9893
+ te.naturalExponential = te.exp = function() {
9889
9894
  return ow(this);
9890
9895
  };
9891
- re.naturalLogarithm = re.ln = function() {
9896
+ te.naturalLogarithm = te.ln = function() {
9892
9897
  return Za(this);
9893
9898
  };
9894
- re.negated = re.neg = function() {
9899
+ te.negated = te.neg = function() {
9895
9900
  var e = new this.constructor(this);
9896
9901
  return e.s = -e.s || 0, e;
9897
9902
  };
9898
- re.plus = re.add = function(e) {
9903
+ te.plus = te.add = function(e) {
9899
9904
  var t = this;
9900
9905
  return e = new t.constructor(e), t.s == e.s ? iw(t, e) : sw(t, (e.s = -e.s, e));
9901
9906
  };
9902
- re.precision = re.sd = function(e) {
9907
+ te.precision = te.sd = function(e) {
9903
9908
  var t, r, n, a = this;
9904
9909
  if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(En + e);
9905
9910
  if (t = Je(a) + 1, n = a.d.length - 1, r = n * Me + 1, n = a.d[n], n) {
@@ -9908,7 +9913,7 @@ re.precision = re.sd = function(e) {
9908
9913
  }
9909
9914
  return e && t > r ? t : r;
9910
9915
  };
9911
- re.squareRoot = re.sqrt = function() {
9916
+ te.squareRoot = te.sqrt = function() {
9912
9917
  var e, t, r, n, a, i, o, s = this, l = s.constructor;
9913
9918
  if (s.s < 1) {
9914
9919
  if (!s.s) return new l(0);
@@ -9927,7 +9932,7 @@ re.squareRoot = re.sqrt = function() {
9927
9932
  }
9928
9933
  return Be = !0, Ce(n, r);
9929
9934
  };
9930
- re.times = re.mul = function(e) {
9935
+ te.times = te.mul = function(e) {
9931
9936
  var t, r, n, a, i, o, s, l, c, u = this, d = u.constructor, f = u.d, p = (e = new d(e)).d;
9932
9937
  if (!u.s || !e.s) return new d(0);
9933
9938
  for (e.s *= u.s, r = u.e + e.e, l = f.length, c = p.length, l < c && (i = f, f = p, p = i, o = l, l = c, c = o), i = [], o = l + c, n = o; n--; ) i.push(0);
@@ -9939,26 +9944,26 @@ re.times = re.mul = function(e) {
9939
9944
  for (; !i[--o]; ) i.pop();
9940
9945
  return t ? ++r : i.shift(), e.d = i, e.e = r, Be ? Ce(e, d.precision) : e;
9941
9946
  };
9942
- re.toDecimalPlaces = re.todp = function(e, t) {
9947
+ te.toDecimalPlaces = te.todp = function(e, t) {
9943
9948
  var r = this, n = r.constructor;
9944
9949
  return r = new n(r), e === void 0 ? r : (fr(e, 0, pa), t === void 0 ? t = n.rounding : fr(t, 0, 8), Ce(r, e + Je(r) + 1, t));
9945
9950
  };
9946
- re.toExponential = function(e, t) {
9951
+ te.toExponential = function(e, t) {
9947
9952
  var r, n = this, a = n.constructor;
9948
9953
  return e === void 0 ? r = Tn(n, !0) : (fr(e, 0, pa), t === void 0 ? t = a.rounding : fr(t, 0, 8), n = Ce(new a(n), e + 1, t), r = Tn(n, !0, e + 1)), r;
9949
9954
  };
9950
- re.toFixed = function(e, t) {
9955
+ te.toFixed = function(e, t) {
9951
9956
  var r, n, a = this, i = a.constructor;
9952
9957
  return e === void 0 ? Tn(a) : (fr(e, 0, pa), t === void 0 ? t = i.rounding : fr(t, 0, 8), n = Ce(new i(a), e + Je(a) + 1, t), r = Tn(n.abs(), !1, e + Je(n) + 1), a.isneg() && !a.isZero() ? "-" + r : r);
9953
9958
  };
9954
- re.toInteger = re.toint = function() {
9959
+ te.toInteger = te.toint = function() {
9955
9960
  var e = this, t = e.constructor;
9956
9961
  return Ce(new t(e), Je(e) + 1, t.rounding);
9957
9962
  };
9958
- re.toNumber = function() {
9963
+ te.toNumber = function() {
9959
9964
  return +this;
9960
9965
  };
9961
- re.toPower = re.pow = function(e) {
9966
+ te.toPower = te.pow = function(e) {
9962
9967
  var t, r, n, a, i, o, s = this, l = s.constructor, c = 12, u = +(e = new l(e));
9963
9968
  if (!e.s) return new l(Mt);
9964
9969
  if (s = new l(s), !s.s) {
@@ -9976,15 +9981,15 @@ re.toPower = re.pow = function(e) {
9976
9981
  } else if (i < 0) throw Error(Ht + "NaN");
9977
9982
  return i = i < 0 && e.d[Math.max(t, r)] & 1 ? -1 : 1, s.s = 1, Be = !1, a = e.times(Za(s, n + c)), Be = !0, a = ow(a), a.s = i, a;
9978
9983
  };
9979
- re.toPrecision = function(e, t) {
9984
+ te.toPrecision = function(e, t) {
9980
9985
  var r, n, a = this, i = a.constructor;
9981
9986
  return e === void 0 ? (r = Je(a), n = Tn(a, r <= i.toExpNeg || r >= i.toExpPos)) : (fr(e, 1, pa), t === void 0 ? t = i.rounding : fr(t, 0, 8), a = Ce(new i(a), e, t), r = Je(a), n = Tn(a, e <= r || r <= i.toExpNeg, e)), n;
9982
9987
  };
9983
- re.toSignificantDigits = re.tosd = function(e, t) {
9988
+ te.toSignificantDigits = te.tosd = function(e, t) {
9984
9989
  var r = this, n = r.constructor;
9985
9990
  return e === void 0 ? (e = n.precision, t = n.rounding) : (fr(e, 1, pa), t === void 0 ? t = n.rounding : fr(t, 0, 8)), Ce(new n(r), e, t);
9986
9991
  };
9987
- re.toString = re.valueOf = re.val = re.toJSON = re[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
9992
+ te.toString = te.valueOf = te.val = te.toJSON = te[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
9988
9993
  var e = this, t = Je(e), r = e.constructor;
9989
9994
  return Tn(e, t <= r.toExpNeg || t >= r.toExpPos);
9990
9995
  };
@@ -10212,7 +10217,7 @@ function lw(e) {
10212
10217
  if (i.charCodeAt(0) === 45 ? (i = i.slice(1), o.s = -1) : o.s = 1, $N.test(i)) yg(o, i);
10213
10218
  else throw Error(En + i);
10214
10219
  }
10215
- if (a.prototype = re, a.ROUND_UP = 0, a.ROUND_DOWN = 1, a.ROUND_CEIL = 2, a.ROUND_FLOOR = 3, a.ROUND_HALF_UP = 4, a.ROUND_HALF_DOWN = 5, a.ROUND_HALF_EVEN = 6, a.ROUND_HALF_CEIL = 7, a.ROUND_HALF_FLOOR = 8, a.clone = lw, a.config = a.set = MN, e === void 0 && (e = {}), e)
10220
+ if (a.prototype = te, a.ROUND_UP = 0, a.ROUND_DOWN = 1, a.ROUND_CEIL = 2, a.ROUND_FLOOR = 3, a.ROUND_HALF_UP = 4, a.ROUND_HALF_DOWN = 5, a.ROUND_HALF_EVEN = 6, a.ROUND_HALF_CEIL = 7, a.ROUND_HALF_FLOOR = 8, a.clone = lw, a.config = a.set = MN, e === void 0 && (e = {}), e)
10216
10221
  for (n = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < n.length; ) e.hasOwnProperty(r = n[t++]) || (e[r] = this[r]);
10217
10222
  return a.config(e), a;
10218
10223
  }
@@ -14074,7 +14079,7 @@ var xm = (e, t, r, n, a) => {
14074
14079
  animationDuration: c,
14075
14080
  animationBegin: u,
14076
14081
  isUpdateAnimationActive: d
14077
- } = t, f = te(null), [p, h] = W(-1), v = te(a), g = te(i), y = te(o), b = te(r), w = te(n), _ = da(e, "trapezoid-");
14082
+ } = t, f = ne(null), [p, h] = W(-1), v = ne(a), g = ne(i), y = ne(o), b = ne(r), w = ne(n), _ = da(e, "trapezoid-");
14078
14083
  if (pe(() => {
14079
14084
  if (f.current && f.current.getTotalLength)
14080
14085
  try {
@@ -14259,7 +14264,7 @@ var Af = (e, t, r) => {
14259
14264
  function Ks(e) {
14260
14265
  var {
14261
14266
  tooltipEntrySettings: t
14262
- } = e, r = De(), n = pt(), a = te(null);
14267
+ } = e, r = De(), n = pt(), a = ne(null);
14263
14268
  return _t(() => {
14264
14269
  n || (a.current === null ? r(QT(t)) : a.current !== t && r(eI({
14265
14270
  prev: a.current,
@@ -14272,7 +14277,7 @@ function Ks(e) {
14272
14277
  function Nf(e) {
14273
14278
  var {
14274
14279
  legendPayload: t
14275
- } = e, r = De(), n = pt(), a = te(null);
14280
+ } = e, r = De(), n = pt(), a = ne(null);
14276
14281
  return _t(() => {
14277
14282
  n || (a.current === null ? r(l0(t)) : a.current !== t && r(c0({
14278
14283
  prev: a.current,
@@ -14285,7 +14290,7 @@ function Nf(e) {
14285
14290
  function ZM(e) {
14286
14291
  var {
14287
14292
  legendPayload: t
14288
- } = e, r = De(), n = ae(me), a = te(null);
14293
+ } = e, r = De(), n = ae(me), a = ne(null);
14289
14294
  return _t(() => {
14290
14295
  n !== "centric" && n !== "radial" || (a.current === null ? r(l0(t)) : a.current !== t && r(c0({
14291
14296
  prev: a.current,
@@ -14363,7 +14368,7 @@ var tR = /* @__PURE__ */ ft(void 0), Ws = (e) => {
14363
14368
  addPolarGraphicalItem: oR,
14364
14369
  removePolarGraphicalItem: sR
14365
14370
  } = qx.actions, lR = qx.reducer, cR = (e) => {
14366
- var t = De(), r = te(null);
14371
+ var t = De(), r = ne(null);
14367
14372
  return _t(() => {
14368
14373
  r.current === null ? t(nR(e)) : r.current !== e && t(aR({
14369
14374
  prev: r.current,
@@ -14793,7 +14798,7 @@ function $R(e) {
14793
14798
  hide: n,
14794
14799
  className: a,
14795
14800
  rootTabIndex: i
14796
- } = e, o = xe(() => Ef(e.children, Rs), [e.children]), s = ae((u) => AM(u, t, o)), l = te(null), c = ye("recharts-pie", a);
14801
+ } = e, o = xe(() => Ef(e.children, Rs), [e.children]), s = ae((u) => AM(u, t, o)), l = ne(null), c = ye("recharts-pie", a);
14797
14802
  return n || s == null ? (l.current = null, /* @__PURE__ */ k.createElement(Ve, {
14798
14803
  tabIndex: i,
14799
14804
  className: c
@@ -16057,7 +16062,7 @@ var Y2 = /* @__PURE__ */ Qe((e, t) => {
16057
16062
  hide: o,
16058
16063
  ticks: s,
16059
16064
  axisType: l
16060
- } = e, c = B2(e, L2), [u, d] = W(""), [f, p] = W(""), h = te(null);
16065
+ } = e, c = B2(e, L2), [u, d] = W(""), [f, p] = W(""), h = ne(null);
16061
16066
  Cy(t, () => ({
16062
16067
  getCalculatedWidth: () => {
16063
16068
  var g;
@@ -17193,11 +17198,11 @@ function oB(e) {
17193
17198
  height: h,
17194
17199
  onAnimationEnd: v,
17195
17200
  onAnimationStart: g
17196
- } = r, y = a.current, b = da(o, "recharts-line-"), w = te(b), [_, x] = W(!1), O = !_, E = q(() => {
17201
+ } = r, y = a.current, b = da(o, "recharts-line-"), w = ne(b), [_, x] = W(!1), O = !_, E = q(() => {
17197
17202
  typeof v == "function" && v(), x(!1);
17198
17203
  }, [v]), j = q(() => {
17199
17204
  typeof g == "function" && g(), x(!0);
17200
- }, [g]), P = iB(n.current), N = te(0);
17205
+ }, [g]), P = iB(n.current), N = ne(0);
17201
17206
  w.current !== b && (N.current = i.current, w.current = b);
17202
17207
  var S = N.current;
17203
17208
  return /* @__PURE__ */ k.createElement(aB, {
@@ -17263,7 +17268,7 @@ function sB(e) {
17263
17268
  var {
17264
17269
  clipPathId: t,
17265
17270
  props: r
17266
- } = e, n = te(null), a = te(0), i = te(null);
17271
+ } = e, n = ne(null), a = ne(0), i = ne(null);
17267
17272
  return /* @__PURE__ */ k.createElement(oB, {
17268
17273
  props: r,
17269
17274
  clipPathId: t,
@@ -17909,7 +17914,7 @@ function IB(e) {
17909
17914
  needClip: t,
17910
17915
  clipPathId: r,
17911
17916
  props: n
17912
- } = e, a = te(null), i = te();
17917
+ } = e, a = ne(null), i = ne();
17913
17918
  return /* @__PURE__ */ k.createElement(TB, {
17914
17919
  needClip: t,
17915
17920
  clipPathId: r,
@@ -18662,7 +18667,7 @@ function jF(e) {
18662
18667
  }), t.children);
18663
18668
  }
18664
18669
  function AF(e) {
18665
- var t = te(null);
18670
+ var t = ne(null);
18666
18671
  return /* @__PURE__ */ k.createElement(jF, {
18667
18672
  previousRectanglesRef: t,
18668
18673
  props: e
@@ -18960,7 +18965,7 @@ function FF(e, t) {
18960
18965
  return r;
18961
18966
  }
18962
18967
  function zF(e) {
18963
- var t = De(), r = te(null);
18968
+ var t = De(), r = ne(null);
18964
18969
  return _t(() => {
18965
18970
  r.current === null ? t(HR(e)) : r.current !== e && t(YR({
18966
18971
  prev: r.current,
@@ -19076,7 +19081,7 @@ function GF(e, t) {
19076
19081
  return r;
19077
19082
  }
19078
19083
  function HF(e) {
19079
- var t = De(), r = te(null);
19084
+ var t = De(), r = ne(null);
19080
19085
  return _t(() => {
19081
19086
  r.current === null ? t(ZR(e)) : r.current !== e && t(JR({
19082
19087
  prev: r.current,
@@ -19092,7 +19097,7 @@ var YF = (e) => {
19092
19097
  className: r,
19093
19098
  width: n,
19094
19099
  label: a
19095
- } = e, i = te(null), o = te(null), s = ae(sd), l = pt(), c = De(), u = "yAxis", d = ae((O) => Gw(O, t)), f = ae((O) => UT(O, t)), p = ae((O) => Xw(O, u, t, l)), h = ae((O) => Aw(O, t));
19100
+ } = e, i = ne(null), o = ne(null), s = ae(sd), l = pt(), c = De(), u = "yAxis", d = ae((O) => Gw(O, t)), f = ae((O) => UT(O, t)), p = ae((O) => Xw(O, u, t, l)), h = ae((O) => Aw(O, t));
19096
19101
  if (_t(() => {
19097
19102
  if (!(n !== "auto" || !d || xf(a) || /* @__PURE__ */ Rt(a) || h == null)) {
19098
19103
  var O = i.current;
@@ -19474,7 +19479,7 @@ function N_(e) {
19474
19479
  preloadedState: t,
19475
19480
  children: r,
19476
19481
  reduxStoreName: n
19477
- } = e, a = pt(), i = te(null);
19482
+ } = e, a = pt(), i = ne(null);
19478
19483
  if (a)
19479
19484
  return r;
19480
19485
  i.current == null && (i.current = sz(t, n));
@@ -19504,7 +19509,7 @@ function Xm(e) {
19504
19509
  var {
19505
19510
  zIndex: t,
19506
19511
  isPanorama: r
19507
- } = e, n = te(null), a = De();
19512
+ } = e, n = ne(null), a = De();
19508
19513
  return _t(() => (n.current && a(ED({
19509
19514
  zIndex: t,
19510
19515
  element: n.current,
@@ -19696,7 +19701,7 @@ function Xo(e) {
19696
19701
  return 0;
19697
19702
  }
19698
19703
  var xz = /* @__PURE__ */ Qe((e, t) => {
19699
- var r, n, a = te(null), [i, o] = W({
19704
+ var r, n, a = ne(null), [i, o] = W({
19700
19705
  containerWidth: Xo((r = e.style) === null || r === void 0 ? void 0 : r.width),
19701
19706
  containerHeight: Xo((n = e.style) === null || n === void 0 ? void 0 : n.height)
19702
19707
  }), s = q((c, u) => {
@@ -19808,7 +19813,7 @@ var Sz = /* @__PURE__ */ Qe((e, t) => {
19808
19813
  width: y,
19809
19814
  responsive: b,
19810
19815
  dispatchTouchEvents: w = !0
19811
- } = e, _ = te(null), x = De(), [O, E] = W(null), [j, P] = W(null), N = vz(), S = ld(), A = S?.width > 0 ? S.width : y, C = S?.height > 0 ? S.height : a, I = q((M) => {
19816
+ } = e, _ = ne(null), x = De(), [O, E] = W(null), [j, P] = W(null), N = vz(), S = ld(), A = S?.width > 0 ? S.width : y, C = S?.height > 0 ? S.height : a, I = q((M) => {
19812
19817
  N(M), typeof t == "function" && t(M), E(M), P(M), M != null && (_.current = M);
19813
19818
  }, [N, t, E, P]), R = q((M) => {
19814
19819
  x(x_(M)), x(Kt({
@@ -23176,7 +23181,7 @@ function V_({
23176
23181
  containerHeight: r,
23177
23182
  overscan: n = 5
23178
23183
  }) {
23179
- const [a, i] = W(0), o = te(null), s = e.length * t, l = Math.max(0, Math.floor(a / t) - n), c = Math.min(
23184
+ const [a, i] = W(0), o = ne(null), s = e.length * t, l = Math.max(0, Math.floor(a / t) - n), c = Math.min(
23180
23185
  e.length - 1,
23181
23186
  Math.floor((a + r) / t) + n
23182
23187
  ), u = [];
@@ -23304,25 +23309,23 @@ const d4 = (e, t) => {
23304
23309
  }
23305
23310
  ) });
23306
23311
  }, G_ = ({ id: e, options: t, ref: r, activeIndex: n = [], width: a, onClick: i, onKeyDown: o, multiple: s = !1, selectedIndex: l = -1 }) => {
23307
- const c = te(null), [u, d] = W(""), f = 24, [p, h] = W(l);
23312
+ const [c, u] = W(""), d = 24, [f, p] = W(l);
23308
23313
  pe(() => {
23309
- c.current?.focus();
23310
- }, []), pe(() => {
23311
- h(l);
23314
+ p(l);
23312
23315
  }, [l]);
23313
- const { filteredOptions: v, fullOptions: g } = d4(t, u), { virtualItems: y, containerProps: b, innerProps: w, scrollToIndex: _ } = V_({
23314
- items: g,
23315
- itemHeight: f,
23316
+ const { filteredOptions: h, fullOptions: v } = d4(t, c), { virtualItems: g, containerProps: y, innerProps: b, scrollToIndex: w } = V_({
23317
+ items: v,
23318
+ itemHeight: d,
23316
23319
  containerHeight: 200,
23317
23320
  overscan: 5
23318
23321
  });
23319
23322
  pe(() => {
23320
23323
  if (Array.isArray(n) && n.length > 0) {
23321
- const O = v.findIndex((E) => E.value === n[0]);
23322
- O !== -1 && _(O);
23324
+ const x = h.findIndex((O) => O.value === n[0]);
23325
+ x !== -1 && w(x);
23323
23326
  }
23324
- }, [v, n, _]);
23325
- const x = {
23327
+ }, [h, n, w]);
23328
+ const _ = {
23326
23329
  wrapper: `${un["rst-list"]}`,
23327
23330
  input: `${un["rst-list-input"]}`,
23328
23331
  container: `${un["rst-list-container"]}`,
@@ -23331,19 +23334,20 @@ const d4 = (e, t) => {
23331
23334
  listItemCreate: `${un["rst-list-listItem-create"]}`,
23332
23335
  noElements: `${un["rst-list-noElements"]}`
23333
23336
  };
23334
- return /* @__PURE__ */ m.jsxs("div", { id: e, ref: r, className: x.wrapper, "data-component": "list", style: { width: a }, children: [
23335
- /* @__PURE__ */ m.jsx("div", { className: x.input, children: /* @__PURE__ */ m.jsx(
23337
+ return /* @__PURE__ */ m.jsxs("div", { id: e, ref: r, className: _.wrapper, "data-component": "list", style: { width: a }, children: [
23338
+ /* @__PURE__ */ m.jsx("div", { className: _.input, children: /* @__PURE__ */ m.jsx(
23336
23339
  la,
23337
23340
  {
23338
- value: u,
23341
+ autoFocus: !0,
23342
+ value: c,
23339
23343
  placeholder: "Search...",
23340
- onChange: (O) => d(O ?? ""),
23341
- onKeyDown: (O) => cy({
23342
- e: O,
23343
- localSelectedIndex: p,
23344
- setLocalSelectedIndex: h,
23345
- filteredOptions: v,
23346
- fullOptions: g,
23344
+ onChange: (x) => u(x ?? ""),
23345
+ onKeyDown: (x) => cy({
23346
+ e: x,
23347
+ localSelectedIndex: f,
23348
+ setLocalSelectedIndex: p,
23349
+ filteredOptions: h,
23350
+ fullOptions: v,
23347
23351
  onClick: i,
23348
23352
  onKeyDown: o
23349
23353
  })
@@ -23352,50 +23356,50 @@ const d4 = (e, t) => {
23352
23356
  /* @__PURE__ */ m.jsx(
23353
23357
  "div",
23354
23358
  {
23355
- ...b,
23356
- className: x.container,
23359
+ ...y,
23360
+ className: _.container,
23357
23361
  tabIndex: 0,
23358
23362
  role: "listbox",
23359
23363
  "aria-label": "List",
23360
23364
  "aria-multiselectable": s,
23361
- onKeyDown: (O) => cy({
23362
- e: O,
23363
- localSelectedIndex: p,
23364
- setLocalSelectedIndex: h,
23365
- filteredOptions: v,
23366
- fullOptions: g,
23365
+ onKeyDown: (x) => cy({
23366
+ e: x,
23367
+ localSelectedIndex: f,
23368
+ setLocalSelectedIndex: p,
23369
+ filteredOptions: h,
23370
+ fullOptions: v,
23367
23371
  onClick: i,
23368
23372
  onKeyDown: o
23369
23373
  }),
23370
- "aria-activedescendant": p >= 0 && p < v.length ? v[p]?.value : void 0,
23371
- children: /* @__PURE__ */ m.jsx("div", { ...w, className: x.virtualScroll, children: v.length === 0 ? /* @__PURE__ */ m.jsx("div", { className: x.noElements, children: "No elements" }) : y.map(({ item: O, index: E, offsetTop: j }) => {
23372
- const P = O.value, N = n.includes(O.value);
23374
+ "aria-activedescendant": f >= 0 && f < h.length ? h[f]?.value : void 0,
23375
+ children: /* @__PURE__ */ m.jsx("div", { ...b, className: _.virtualScroll, children: h.length === 0 ? /* @__PURE__ */ m.jsx("div", { className: _.noElements, children: "No elements" }) : g.map(({ item: x, index: O, offsetTop: E }) => {
23376
+ const j = x.value, P = n.includes(x.value);
23373
23377
  return /* @__PURE__ */ m.jsxs(
23374
23378
  "li",
23375
23379
  {
23376
23380
  role: "option",
23377
- id: O.value,
23378
- "aria-selected": p === E,
23381
+ id: x.value,
23382
+ "aria-selected": f === O,
23379
23383
  tabIndex: -1,
23380
- className: `${x.listItem} ${N ? "selected-item" : ""}`,
23381
- "aria-label": P,
23384
+ className: `${_.listItem} ${P ? "selected-item" : ""}`,
23385
+ "aria-label": j,
23382
23386
  style: {
23383
- height: `${f}px`,
23384
- lineHeight: `calc(${f}px - 2*2px)`,
23385
- transform: `translateY(${j}px)`
23387
+ height: `${d}px`,
23388
+ lineHeight: `calc(${d}px - 2*2px)`,
23389
+ transform: `translateY(${E}px)`
23386
23390
  },
23387
23391
  onClick: () => {
23388
- i?.(O), h(E);
23392
+ i?.(x), p(O);
23389
23393
  },
23390
23394
  children: [
23391
- /* @__PURE__ */ m.jsxs("span", { className: x.listItemCreate, children: [
23392
- O.leadingVisual && /* @__PURE__ */ m.jsx(je, { src: O.leadingVisual }),
23393
- u4(P, u)
23395
+ /* @__PURE__ */ m.jsxs("span", { className: _.listItemCreate, children: [
23396
+ x.leadingVisual && /* @__PURE__ */ m.jsx(je, { src: x.leadingVisual }),
23397
+ u4(j, c)
23394
23398
  ] }),
23395
- N && /* @__PURE__ */ m.jsx(je, { src: "check" })
23399
+ P && /* @__PURE__ */ m.jsx(je, { src: "check" })
23396
23400
  ]
23397
23401
  },
23398
- E
23402
+ O
23399
23403
  );
23400
23404
  }) })
23401
23405
  }
@@ -23440,7 +23444,7 @@ const d4 = (e, t) => {
23440
23444
  rs,
23441
23445
  {
23442
23446
  anchor: /* @__PURE__ */ m.jsx(
23443
- ne,
23447
+ re,
23444
23448
  {
23445
23449
  value: g(),
23446
23450
  count: i && u.length >= 4 ? u.length : void 0,
@@ -23834,9 +23838,9 @@ function FK(e) {
23834
23838
  children: [
23835
23839
  d.content,
23836
23840
  /* @__PURE__ */ m.jsx("div", { className: Ji["rst-tour-button-group"], children: /* @__PURE__ */ m.jsxs(kr, { direction: "row", gap: 8, children: [
23837
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "base", value: "Prev", onClick: c, disabled: t === 0 }),
23838
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "base", value: "Next", onClick: l, disabled: t === e.length - 1 }),
23839
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "primary", value: "Close", onClick: s })
23841
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "base", value: "Prev", onClick: c, disabled: t === 0 }),
23842
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "base", value: "Next", onClick: l, disabled: t === e.length - 1 }),
23843
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "primary", value: "Close", onClick: s })
23840
23844
  ] }) })
23841
23845
  ]
23842
23846
  }
@@ -23846,7 +23850,7 @@ function FK(e) {
23846
23850
  return { start: o, stop: s, next: l, prev: c, activeStep: t, render: u };
23847
23851
  }
23848
23852
  function E4(e, t = {}) {
23849
- const { maxHistory: r = 50, isEqual: n } = t, [a, i] = W([]), [o, s] = W(e), [l, c] = W([]), u = te(!1), d = q(
23853
+ const { maxHistory: r = 50, isEqual: n } = t, [a, i] = W([]), [o, s] = W(e), [l, c] = W([]), u = ne(!1), d = q(
23850
23854
  (g) => {
23851
23855
  n && n(o, g) || (u.current || (i((y) => {
23852
23856
  const b = [...y, o];
@@ -23940,7 +23944,7 @@ const Mc = {
23940
23944
  const r = [or["rst-menu-separator"], e].filter(Boolean).join(" ");
23941
23945
  return /* @__PURE__ */ m.jsx("hr", { className: r, role: "separator", ...t });
23942
23946
  }, A4 = ({ trigger: e, children: t, position: r = "right", align: n = "center", className: a, ...i }) => {
23943
- const [o, s] = W(!1), l = te(null), c = te(null), u = () => {
23947
+ const [o, s] = W(!1), l = ne(null), c = ne(null), u = () => {
23944
23948
  s(!0);
23945
23949
  }, d = (g) => {
23946
23950
  const y = c.current;
@@ -24412,7 +24416,7 @@ function D4({
24412
24416
  return l.grouping.length > 0 ? oo(S, l.grouping, r, l.expandedRows) : ra(S, n, l.expandedRows, s);
24413
24417
  }, [l.dataState, l.sorting, l.grouping, l.expandedRows, r, n, s]), w = q((S) => {
24414
24418
  c((A) => ({ ...A, globalFilter: S }));
24415
- }, []), _ = te(!0);
24419
+ }, []), _ = ne(!0);
24416
24420
  pe(() => {
24417
24421
  if (_.current) {
24418
24422
  _.current = !1;
@@ -24554,7 +24558,7 @@ const B4 = {
24554
24558
  t || s(u), r?.(u);
24555
24559
  };
24556
24560
  return /* @__PURE__ */ m.jsx("div", { className: B4["rst-button-group"], "aria-disabled": a, children: e.map((u) => /* @__PURE__ */ m.jsx(
24557
- ne,
24561
+ re,
24558
24562
  {
24559
24563
  value: i ? void 0 : u.value,
24560
24564
  leadingVisual: u.leadingVisual,
@@ -24698,7 +24702,7 @@ const gy = {
24698
24702
  return h || o ? /* @__PURE__ */ m.jsx("div", { style: { opacity: o ? 0.5 : 1, cursor: o ? "not-allowed" : "default" }, children: hy(v) }) : p || y ? /* @__PURE__ */ m.jsxs("div", { children: [
24699
24703
  s && _ && /* @__PURE__ */ m.jsx(H_, { label: _, id: w, required: t.required, disabled: o }),
24700
24704
  F4(v, t, g, O, j, P, !p, i, o),
24701
- l && i && /* @__PURE__ */ m.jsx(u1, { helperText: i, id: w, disabled: o, state: "danger" })
24705
+ l && i && /* @__PURE__ */ m.jsx(u1, { helperText: i, id: w, disabled: o, state: "base" })
24702
24706
  ] }) : /* @__PURE__ */ m.jsx(
24703
24707
  "div",
24704
24708
  {
@@ -25128,7 +25132,7 @@ function my({ row: e, onRowClick: t, isEnableEditing: r = !1, "aria-rowindex": n
25128
25132
  },
25129
25133
  children: /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-cell-wrapper"], children: [
25130
25134
  P && (g || h) && /* @__PURE__ */ m.jsx(
25131
- ne,
25135
+ re,
25132
25136
  {
25133
25137
  onClick: (Q) => {
25134
25138
  Q.stopPropagation(), o(e.id);
@@ -25181,46 +25185,43 @@ function p1(e) {
25181
25185
  return e == null ? "—" : typeof e == "string" ? e : Number.isInteger(e) ? String(e) : e.toFixed(2);
25182
25186
  }
25183
25187
  function q4({ columnOffsets: e }) {
25184
- const { columns: t, visibleColumns: r, data: n, options: a } = ln(), { stickyFooter: i, enableSelection: o } = a;
25185
- if (!i) return null;
25186
- const s = o && Gf(e), l = (c) => {
25187
- if (typeof c.footer == "function") return c.footer({ column: c });
25188
- if (typeof c.footer == "object" && c.footer !== null) {
25189
- const { aggregation: u } = c.footer, d = c.accessorKey;
25190
- if (!d) return c.footer.label ?? null;
25191
- const f = u === "count" ? n.map(() => 1) : n.map((p) => Number(p[d])).filter((p) => !isNaN(p));
25192
- return p1(Bu(f, u));
25193
- }
25194
- return c.footer ?? null;
25188
+ const { visibleColumns: t, data: r, options: n } = ln(), { stickyFooter: a, enableSelection: i } = n;
25189
+ if (!a) return null;
25190
+ const o = i && Gf(e), s = (l) => {
25191
+ if (typeof l.footer == "function") return l.footer({ column: l });
25192
+ if (typeof l.footer == "object" && l.footer !== null) {
25193
+ const { aggregation: c } = l.footer, u = l.accessorKey;
25194
+ if (!u) return l.footer.label ?? null;
25195
+ const d = c === "count" ? r.map(() => 1) : r.map((f) => Number(f[u])).filter((f) => !isNaN(f));
25196
+ return p1(Bu(d, c));
25197
+ }
25198
+ return l.footer ?? null;
25195
25199
  };
25196
- return /* @__PURE__ */ m.jsx("tfoot", { className: `${X["rst-table-footer"]} ${i ? X["rst-table-footer-sticky"] : ""}`, children: /* @__PURE__ */ m.jsxs("tr", { children: [
25197
- o && /* @__PURE__ */ m.jsx(
25200
+ return /* @__PURE__ */ m.jsx("tfoot", { className: `${X["rst-table-footer"]} ${a ? X["rst-table-footer-sticky"] : ""}`, children: /* @__PURE__ */ m.jsxs("tr", { children: [
25201
+ i && /* @__PURE__ */ m.jsx(
25198
25202
  "td",
25199
25203
  {
25200
- className: [
25201
- X["rst-table-selection-cell"],
25202
- s ? X["rst-table-cell-pinned"] : ""
25203
- ].filter(Boolean).join(" "),
25204
- style: s ? { left: 0 } : void 0
25204
+ className: [X["rst-table-selection-cell"], o ? X["rst-table-cell-pinned"] : ""].filter(Boolean).join(" "),
25205
+ style: o ? { left: 0 } : void 0
25205
25206
  }
25206
25207
  ),
25207
- r.map((c, u) => {
25208
- const d = Ut(c, u), f = e[d], p = !!f && f.left !== void 0, h = !!f && f.right !== void 0, v = p || h, g = v ? {
25209
- left: f.left,
25210
- right: f.right
25208
+ t.map((l, c) => {
25209
+ const u = Ut(l, c), d = e[u], f = !!d && d.left !== void 0, p = !!d && d.right !== void 0, h = f || p, v = h ? {
25210
+ left: d.left,
25211
+ right: d.right
25211
25212
  } : {};
25212
25213
  return /* @__PURE__ */ m.jsx(
25213
25214
  "td",
25214
25215
  {
25215
25216
  className: [
25216
- v ? X["rst-table-cell-pinned"] : "",
25217
- p ? X["rst-table-cell-pinned-left"] : "",
25218
- h ? X["rst-table-cell-pinned-right"] : ""
25217
+ h ? X["rst-table-cell-pinned"] : "",
25218
+ f ? X["rst-table-cell-pinned-left"] : "",
25219
+ p ? X["rst-table-cell-pinned-right"] : ""
25219
25220
  ].filter(Boolean).join(" "),
25220
- style: g,
25221
- children: l(c)
25221
+ style: v,
25222
+ children: s(l)
25222
25223
  },
25223
- d
25224
+ u
25224
25225
  );
25225
25226
  })
25226
25227
  ] }) });
@@ -25249,11 +25250,11 @@ const Qi = {
25249
25250
  }, f) => {
25250
25251
  const p = [Qi["rst-chip"], Qi[`rst-chip-variant-${a}`], Qi[`rst-chip-size-${i}`], o].filter(Boolean).join(" ");
25251
25252
  return /* @__PURE__ */ m.jsxs("div", { "data-component": "chip", ref: f, className: p, ...d, "data-draggable": s, "data-clearable": !!n, children: [
25252
- s && /* @__PURE__ */ m.jsx("span", { draggable: !0, onDragStart: l, onDragOver: c, onDragEnd: u, className: Qi["drag-handle"], children: /* @__PURE__ */ m.jsx(ne, { leadingVisual: "drag", variant: "invisible", "aria-label": "Drag", size: "small" }) }),
25253
+ s && /* @__PURE__ */ m.jsx("span", { draggable: !0, onDragStart: l, onDragOver: c, onDragEnd: u, className: Qi["drag-handle"], children: /* @__PURE__ */ m.jsx(re, { leadingVisual: "drag", variant: "invisible", "aria-label": "Drag", size: "small" }) }),
25253
25254
  t && /* @__PURE__ */ m.jsx(je, { src: t }),
25254
25255
  /* @__PURE__ */ m.jsx(ie, { variant: "caption", children: e }),
25255
25256
  r && !n && /* @__PURE__ */ m.jsx(je, { src: r }),
25256
- n && /* @__PURE__ */ m.jsx(ne, { onClick: n, variant: "invisible", "aria-label": "Remove", leadingVisual: "delete", size: "small" })
25257
+ n && /* @__PURE__ */ m.jsx(re, { onClick: n, variant: "invisible", "aria-label": "Remove", leadingVisual: "delete", size: "small" })
25257
25258
  ] });
25258
25259
  }
25259
25260
  ), Lc = {
@@ -25262,7 +25263,7 @@ const Qi = {
25262
25263
  "rst-chip-ghost": "_rst-chip-ghost_19fkn_15"
25263
25264
  };
25264
25265
  function U4({ grouping: e, columns: t, onGroupingChange: r }) {
25265
- const [n, a] = W(null), [i, o] = W(null), s = te(null), l = (h) => {
25266
+ const [n, a] = W(null), [i, o] = W(null), s = ne(null), l = (h) => {
25266
25267
  r(e.filter((v) => v !== h));
25267
25268
  }, c = (h, v) => {
25268
25269
  h.dataTransfer.setData("application/x-restio-group-index", String(v)), h.dataTransfer.effectAllowed = "move";
@@ -25408,9 +25409,9 @@ const $e = {
25408
25409
  align: u,
25409
25410
  target: /* @__PURE__ */ m.jsxs("div", { className: Kn["rst-anchored-navigation"], style: { width: i }, role: "menu", children: [
25410
25411
  /* @__PURE__ */ m.jsxs("div", { className: Kn["rst-anchored-navigation-header"], children: [
25411
- /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-back"], children: _ ? /* @__PURE__ */ m.jsx(ne, { leadingVisual: "arrow-left", variant: "invisible", onClick: v, "aria-label": "Back" }) : /* @__PURE__ */ m.jsx("div", { style: { width: 16 } }) }),
25412
+ /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-back"], children: _ ? /* @__PURE__ */ m.jsx(re, { leadingVisual: "arrow-left", variant: "invisible", onClick: v, "aria-label": "Back" }) : /* @__PURE__ */ m.jsx("div", { style: { width: 16 } }) }),
25412
25413
  /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-title"], children: w }),
25413
- /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-close"], children: /* @__PURE__ */ m.jsx(ne, { leadingVisual: "close", variant: "invisible", onClick: n, "aria-label": "Close" }) })
25414
+ /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-close"], children: /* @__PURE__ */ m.jsx(re, { leadingVisual: "close", variant: "invisible", onClick: n, "aria-label": "Close" }) })
25414
25415
  ] }),
25415
25416
  /* @__PURE__ */ m.jsx("div", { className: Kn["rst-anchored-navigation-content"], children: l === "stack" ? p.items.map(b) : e.map(y) })
25416
25417
  ] })
@@ -25530,7 +25531,7 @@ function yy({ columnOffsets: e, onGroupingChange: t }) {
25530
25531
  Q === -1 || Y === -1 || (z.splice(Q, 1), z.splice(Y, 0, R), s(z));
25531
25532
  }, S = () => b(null), A = (C) => {
25532
25533
  const I = a.sorting.find((R) => R.id === C);
25533
- return I ? I.desc ? /* @__PURE__ */ m.jsx(ne, { variant: "invisible", leadingVisual: "arrow-up" }) : /* @__PURE__ */ m.jsx(ne, { variant: "invisible", leadingVisual: "arrow-down" }) : /* @__PURE__ */ m.jsx(ne, { variant: "invisible", leadingVisual: "arrow-down-up" });
25534
+ return I ? I.desc ? /* @__PURE__ */ m.jsx(re, { variant: "invisible", leadingVisual: "arrow-up" }) : /* @__PURE__ */ m.jsx(re, { variant: "invisible", leadingVisual: "arrow-down" }) : /* @__PURE__ */ m.jsx(re, { variant: "invisible", leadingVisual: "arrow-down-up" });
25534
25535
  };
25535
25536
  return /* @__PURE__ */ m.jsxs("thead", { className: `${$e["rst-table-header"]} ${p ? $e["rst-table-header-sticky"] : ""}`, children: [
25536
25537
  f && /* @__PURE__ */ m.jsx("tr", { children: /* @__PURE__ */ m.jsx("td", { colSpan: n.length + (v ? 1 : 0), style: { padding: 0, borderBottom: "none" }, children: /* @__PURE__ */ m.jsx(U4, { grouping: a.grouping, columns: r, onGroupingChange: E }) }) }),
@@ -25834,10 +25835,10 @@ function Q4({
25834
25835
  onAIClick: s
25835
25836
  }) {
25836
25837
  return /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-sidebar"], children: [
25837
- e && /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "groups", title: "Pivot Mode", onClick: a }),
25838
- t && /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "pencil", title: "Formula Builder", onClick: i }),
25839
- r && /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "columns", title: "Column Visibility", onClick: o }),
25840
- n && /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "sparkle", title: "AI Assistant", onClick: s })
25838
+ e && /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "groups", title: "Pivot Mode", onClick: a }),
25839
+ t && /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "pencil", title: "Formula Builder", onClick: i }),
25840
+ r && /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "columns", title: "Column Visibility", onClick: o }),
25841
+ n && /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "sparkle", title: "AI Assistant", onClick: s })
25841
25842
  ] });
25842
25843
  }
25843
25844
  function e5({ onSave: e, onCancel: t, existingColumns: r, sampleRow: n }) {
@@ -25890,8 +25891,8 @@ function e5({ onSave: e, onCancel: t, existingColumns: r, sampleRow: n }) {
25890
25891
  u
25891
25892
  ] }),
25892
25893
  /* @__PURE__ */ m.jsxs(kr, { direction: "row", gap: 2, justify: "end", children: [
25893
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", onClick: t, value: "cancel" }),
25894
- /* @__PURE__ */ m.jsx(ne, { variant: "primary", onClick: f, disabled: !a || !o || !!u, value: "Add Column" })
25894
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", onClick: t, value: "cancel" }),
25895
+ /* @__PURE__ */ m.jsx(re, { variant: "primary", onClick: f, disabled: !a || !o || !!u, value: "Add Column" })
25895
25896
  ] })
25896
25897
  ] });
25897
25898
  }
@@ -26270,7 +26271,7 @@ const by = {
26270
26271
  "rst-chat-processing": "_rst-chat-processing_a2o46_118"
26271
26272
  };
26272
26273
  function d5({ messages: e, isProcessing: t, emptyStateText: r = "Ask me something...", inputValue: n, onInputChange: a, onKeyDown: i, onSubmit: o }) {
26273
- const s = te(null);
26274
+ const s = ne(null);
26274
26275
  return pe(() => {
26275
26276
  s.current?.scrollIntoView({ behavior: "smooth" });
26276
26277
  }, [e]), /* @__PURE__ */ m.jsxs("div", { className: Ot["rst-chat-container"], children: [
@@ -26295,8 +26296,8 @@ function d5({ messages: e, isProcessing: t, emptyStateText: r = "Ask me somethin
26295
26296
  /* @__PURE__ */ m.jsxs("form", { className: Ot["rst-chat-input-form"], onSubmit: o, children: [
26296
26297
  /* @__PURE__ */ m.jsx("div", { className: Ot["rst-chat-input-wrapper"], children: /* @__PURE__ */ m.jsx(u5, { value: n, onChange: a, onKeyDown: i, placeholder: "Ask something...", disabled: t, rows: 1 }) }),
26297
26298
  /* @__PURE__ */ m.jsxs("div", { className: Ot["rst-chat-actions"], children: [
26298
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", disabled: !0, leadingVisual: "plus", value: "Add files" }),
26299
- /* @__PURE__ */ m.jsx(ne, { variant: "primary", type: "submit", disabled: t || !n.trim(), leadingVisual: "send" })
26299
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", disabled: !0, leadingVisual: "plus", value: "Add files" }),
26300
+ /* @__PURE__ */ m.jsx(re, { variant: "primary", type: "submit", disabled: t || !n.trim(), leadingVisual: "send" })
26300
26301
  ] })
26301
26302
  ] })
26302
26303
  ] });
@@ -26502,14 +26503,14 @@ function g5({
26502
26503
  x === "pivot" && /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel"], children: [
26503
26504
  /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel-header"], children: [
26504
26505
  /* @__PURE__ */ m.jsx("span", { className: X["rst-table-tool-panel-title"], children: "Pivot" }),
26505
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26506
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26506
26507
  ] }),
26507
26508
  /* @__PURE__ */ m.jsx("div", { className: X["rst-table-tool-panel-body"], children: /* @__PURE__ */ m.jsx(Z4, { columns: p, config: E, onConfigChange: I }) })
26508
26509
  ] }),
26509
26510
  x === "formula" && /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel"], children: [
26510
26511
  /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel-header"], children: [
26511
26512
  /* @__PURE__ */ m.jsx("span", { className: X["rst-table-tool-panel-title"], children: "Formula Builder" }),
26512
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26513
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26513
26514
  ] }),
26514
26515
  /* @__PURE__ */ m.jsx("div", { className: X["rst-table-tool-panel-body"], children: /* @__PURE__ */ m.jsx(
26515
26516
  e5,
@@ -26526,7 +26527,7 @@ function g5({
26526
26527
  x === "columns" && /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel"], children: [
26527
26528
  /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel-header"], children: [
26528
26529
  /* @__PURE__ */ m.jsx("span", { className: X["rst-table-tool-panel-title"], children: "Columns" }),
26529
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26530
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26530
26531
  ] }),
26531
26532
  /* @__PURE__ */ m.jsx("div", { className: X["rst-table-tool-panel-body"], children: /* @__PURE__ */ m.jsx("div", { className: X["rst-column-visibility-list"], children: p.map((z, Q) => {
26532
26533
  const Y = z.id ?? z.accessorKey ?? String(Q), ce = typeof z.header == "string" ? z.header : Y, D = h.hiddenColumns.has(Y);
@@ -26539,7 +26540,7 @@ function g5({
26539
26540
  x === "ai" && i && /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel"], children: [
26540
26541
  /* @__PURE__ */ m.jsxs("div", { className: X["rst-table-tool-panel-header"], children: [
26541
26542
  /* @__PURE__ */ m.jsx("span", { className: X["rst-table-tool-panel-title"], children: "AI Assistant" }),
26542
- /* @__PURE__ */ m.jsx(ne, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26543
+ /* @__PURE__ */ m.jsx(re, { variant: "invisible", size: "small", leadingVisual: "close", onClick: () => O(null) })
26543
26544
  ] }),
26544
26545
  /* @__PURE__ */ m.jsx("div", { className: X["rst-table-tool-panel-body"], children: /* @__PURE__ */ m.jsx(p5, { aiProvider: i }) })
26545
26546
  ] })
@@ -26795,7 +26796,7 @@ const eo = {
26795
26796
  functionName: "",
26796
26797
  holdProgress: 0,
26797
26798
  position: { x: 0, y: 0 }
26798
- }), o = te(void 0), s = te(void 0), l = te({ x: 0, y: 0 }), c = te(/* @__PURE__ */ new Set()), u = te(null), d = te(/* @__PURE__ */ new Set());
26799
+ }), o = ne(void 0), s = ne(void 0), l = ne({ x: 0, y: 0 }), c = ne(/* @__PURE__ */ new Set()), u = ne(null), d = ne(/* @__PURE__ */ new Set());
26799
26800
  pe(() => {
26800
26801
  const w = (_) => {
26801
26802
  l.current = { x: _.clientX, y: _.clientY };
@@ -26888,7 +26889,7 @@ const eo = {
26888
26889
  /* @__PURE__ */ m.jsx(m5, { ...a })
26889
26890
  ] });
26890
26891
  }, wy = (e = {}) => {
26891
- const t = yt(v1), r = te([]), { scope: n = "component", enabled: a = !0 } = e, i = ti(), o = xe(
26892
+ const t = yt(v1), r = ne([]), { scope: n = "component", enabled: a = !0 } = e, i = ti(), o = xe(
26892
26893
  () => n === "component" ? `component-${i}` : void 0,
26893
26894
  [n, i]
26894
26895
  );
@@ -26942,7 +26943,7 @@ const eo = {
26942
26943
  return /* @__PURE__ */ m.jsx("div", { className: n, ...r, children: e });
26943
26944
  }, x5 = ({ onClick: e, "aria-label": t = "Toggle menu", ...r }) => {
26944
26945
  const { toggleSidebar: n } = m1(), a = e || n;
26945
- return /* @__PURE__ */ m.jsx(ne, { variant: "invisible", leadingVisual: "menu", onClick: a, "aria-label": t, ...r });
26946
+ return /* @__PURE__ */ m.jsx(re, { variant: "invisible", leadingVisual: "menu", onClick: a, "aria-label": t, ...r });
26946
26947
  }, _5 = Object.assign(y5, {
26947
26948
  Title: b5,
26948
26949
  Actions: w5,
@@ -26963,18 +26964,18 @@ const $a = {
26963
26964
  /* @__PURE__ */ m.jsx(ie, { variant: "title", children: u.label })
26964
26965
  ) : (
26965
26966
  // Interactive link items
26966
- /* @__PURE__ */ m.jsx(ne, { variant: "link", onClick: u.onClick, value: u.label })
26967
+ /* @__PURE__ */ m.jsx(re, { variant: "link", onClick: u.onClick, value: u.label })
26967
26968
  )
26968
26969
  ] }, u.value || d));
26969
26970
  const s = e[0], l = e[e.length - 1], c = e.slice(1, e.length - 1);
26970
26971
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
26971
- /* @__PURE__ */ m.jsx(ne, { variant: "link", onClick: s.onClick, value: s.label }),
26972
+ /* @__PURE__ */ m.jsx(re, { variant: "link", onClick: s.onClick, value: s.label }),
26972
26973
  /* @__PURE__ */ m.jsx("span", { className: $a["rst-breadcrumbs-separator"], children: "/" }),
26973
26974
  /* @__PURE__ */ m.jsx(
26974
26975
  rs,
26975
26976
  {
26976
26977
  isOpen: n,
26977
- anchor: /* @__PURE__ */ m.jsx(ne, { leadingVisual: "plus", variant: "invisible", onClick: () => a(!n) }),
26978
+ anchor: /* @__PURE__ */ m.jsx(re, { leadingVisual: "plus", variant: "invisible", onClick: () => a(!n) }),
26978
26979
  target: /* @__PURE__ */ m.jsx(
26979
26980
  G_,
26980
26981
  {
@@ -27005,8 +27006,8 @@ const $a = {
27005
27006
  logoContainer: `${k5["rst-logo-container"]}`
27006
27007
  };
27007
27008
  return /* @__PURE__ */ m.jsxs("div", { className: i.logoContainer, children: [
27008
- !t && n ? /* @__PURE__ */ m.jsx(ne, { leadingVisual: "dock-right-arrow", onClick: a }) : /* @__PURE__ */ m.jsx(ne, { leadingVisual: e, variant: "invisible", onMouseEnter: () => r(!0), onMouseLeave: () => r(!1) }),
27009
- t && /* @__PURE__ */ m.jsx(ne, { onClick: a, variant: "invisible", leadingVisual: "dock-left-arrow" })
27009
+ !t && n ? /* @__PURE__ */ m.jsx(re, { leadingVisual: "dock-right-arrow", onClick: a }) : /* @__PURE__ */ m.jsx(re, { leadingVisual: e, variant: "invisible", onMouseEnter: () => r(!0), onMouseLeave: () => r(!1) }),
27010
+ t && /* @__PURE__ */ m.jsx(re, { onClick: a, variant: "invisible", leadingVisual: "dock-left-arrow" })
27010
27011
  ] });
27011
27012
  }, Yf = {
27012
27013
  "rst-sidebar": "_rst-sidebar_nmzg6_1",
@@ -27029,7 +27030,7 @@ const $a = {
27029
27030
  ) });
27030
27031
  }, E5 = ({ leadingVisual: e, label: t, shortcut: r, onClick: n }) => {
27031
27032
  const { isOpen: a } = Xs();
27032
- return a ? /* @__PURE__ */ m.jsx(hn.Item, { leadingVisual: e, "aria-label": t, shortcut: r, label: t, onClick: n }) : /* @__PURE__ */ m.jsx(ne, { leadingVisual: e, "aria-label": t, variant: "invisible", onClick: () => n });
27033
+ return a ? /* @__PURE__ */ m.jsx(hn.Item, { leadingVisual: e, "aria-label": t, shortcut: r, label: t, onClick: n }) : /* @__PURE__ */ m.jsx(re, { leadingVisual: e, "aria-label": t, variant: "invisible", onClick: () => n });
27033
27034
  }, S5 = ({ title: e, children: t }) => {
27034
27035
  const r = {
27035
27036
  sectionContainer: `${Yf["rst-sidebar-section"]}`
@@ -27323,7 +27324,7 @@ function HK({
27323
27324
  layoutType: f = "hierarchical",
27324
27325
  className: p
27325
27326
  }) {
27326
- const [h, v] = W(/* @__PURE__ */ new Set()), [g, y] = W({ x: 0, y: 0, scale: 1 }), [b, w] = W(!1), [_, x] = W({ x: 0, y: 0 }), O = te(null), E = xe(() => [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3], []), j = E.findIndex((F) => Math.abs(F - g.scale) < 0.01) ?? E.reduce((F, ee, de) => Math.abs(ee - g.scale) < Math.abs(E[F] - g.scale) ? de : F, 0), P = xe(() => new N5({
27327
+ const [h, v] = W(/* @__PURE__ */ new Set()), [g, y] = W({ x: 0, y: 0, scale: 1 }), [b, w] = W(!1), [_, x] = W({ x: 0, y: 0 }), O = ne(null), E = xe(() => [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3], []), j = E.findIndex((F) => Math.abs(F - g.scale) < 0.01) ?? E.reduce((F, ee, de) => Math.abs(ee - g.scale) < Math.abs(E[F] - g.scale) ? de : F, 0), P = xe(() => new N5({
27327
27328
  siblingSpacing: n,
27328
27329
  levelSpacing: a,
27329
27330
  nodeWidth: i,
@@ -27484,15 +27485,15 @@ function HK({
27484
27485
  ),
27485
27486
  s && /* @__PURE__ */ m.jsxs("div", { className: Et["rst-mind-tree-controls"], children: [
27486
27487
  /* @__PURE__ */ m.jsxs("div", { className: Et["rst-mind-tree-zoom-group"], children: [
27487
- /* @__PURE__ */ m.jsx(ne, { onClick: Q, value: "-", disabled: j === 0, title: "Zoom Out" }),
27488
+ /* @__PURE__ */ m.jsx(re, { onClick: Q, value: "-", disabled: j === 0, title: "Zoom Out" }),
27488
27489
  /* @__PURE__ */ m.jsx("div", { className: Et["rst-mind-tree-zoom-slider-container"], children: /* @__PURE__ */ m.jsxs(ie, { variant: "body", children: [
27489
27490
  Math.round(g.scale * 100),
27490
27491
  "%"
27491
27492
  ] }) }),
27492
- /* @__PURE__ */ m.jsx(ne, { onClick: z, value: "+", title: "Zoom In", disabled: j === E.length - 1 })
27493
+ /* @__PURE__ */ m.jsx(re, { onClick: z, value: "+", title: "Zoom In", disabled: j === E.length - 1 })
27493
27494
  ] }),
27494
- /* @__PURE__ */ m.jsx(ne, { onClick: ce, value: "⌂", title: "Fit to View" }),
27495
- /* @__PURE__ */ m.jsx(ne, { onClick: Y, value: "⟲", title: "Reset View" })
27495
+ /* @__PURE__ */ m.jsx(re, { onClick: ce, value: "⌂", title: "Fit to View" }),
27496
+ /* @__PURE__ */ m.jsx(re, { onClick: Y, value: "⟲", title: "Reset View" })
27496
27497
  ] })
27497
27498
  ] }) : null;
27498
27499
  }
@@ -27581,7 +27582,7 @@ function XK({ data: e, columns: t, layout: r, onSubmit: n, onCancel: a }) {
27581
27582
  }, p = (b, w, _) => {
27582
27583
  const x = b.accessorKey;
27583
27584
  if (b.required && (w == null || w === ""))
27584
- return `${String(b.header || x)} is required`;
27585
+ return b.requiredMessage || `${String(b.header || x)} is required`;
27585
27586
  if (b.validate)
27586
27587
  return b.validate(w, _);
27587
27588
  }, h = () => {
@@ -27634,8 +27635,8 @@ function XK({ data: e, columns: t, layout: r, onSubmit: n, onCancel: a }) {
27634
27635
  return /* @__PURE__ */ m.jsxs("form", { className: ky["rst-form"], onSubmit: v, children: [
27635
27636
  g ? /* @__PURE__ */ m.jsx(r1, { layout: g, children: y }) : y,
27636
27637
  /* @__PURE__ */ m.jsxs("div", { className: ky["rst-form-actions"], children: [
27637
- a && /* @__PURE__ */ m.jsx(ne, { type: "button", variant: "invisible", onClick: a, value: "Cancel" }),
27638
- /* @__PURE__ */ m.jsx(ne, { type: "submit", variant: "primary", value: "Save" })
27638
+ a && /* @__PURE__ */ m.jsx(re, { type: "button", variant: "invisible", onClick: a, value: "Cancel" }),
27639
+ /* @__PURE__ */ m.jsx(re, { type: "submit", variant: "primary", value: "Save" })
27639
27640
  ] })
27640
27641
  ] });
27641
27642
  }
@@ -27693,7 +27694,7 @@ const he = {
27693
27694
  "rst-split-view-panel": "_rst-split-view-panel_1so51_194",
27694
27695
  "rst-split-view-divider": "_rst-split-view-divider_1so51_201"
27695
27696
  }, b1 = ({ value: e, onChange: t, errors: r, readOnly: n = !1, height: a, onActivate: i, onDeactivate: o }) => {
27696
- const s = te(null), l = te(null), [c, u] = W(e), [d, f] = W(null);
27697
+ const s = ne(null), l = ne(null), [c, u] = W(e), [d, f] = W(null);
27697
27698
  pe(() => {
27698
27699
  u(e);
27699
27700
  }, [e]);
@@ -27760,9 +27761,9 @@ const he = {
27760
27761
  ", Col ",
27761
27762
  d.column
27762
27763
  ] }),
27763
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "base", value: "Format", onClick: w, title: "Format JSON (Ctrl+Shift+F)" }),
27764
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "base", value: "Minify", onClick: _, title: "Minify JSON" }),
27765
- /* @__PURE__ */ m.jsx(ne, { size: "small", variant: "base", value: "Copy", onClick: x, title: "Copy to clipboard" })
27764
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "base", value: "Format", onClick: w, title: "Format JSON (Ctrl+Shift+F)" }),
27765
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "base", value: "Minify", onClick: _, title: "Minify JSON" }),
27766
+ /* @__PURE__ */ m.jsx(re, { size: "small", variant: "base", value: "Copy", onClick: x, title: "Copy to clipboard" })
27766
27767
  ] })
27767
27768
  ] }),
27768
27769
  /* @__PURE__ */ m.jsxs("div", { className: ze["rst-json-editor-container"], children: [
@@ -28421,7 +28422,7 @@ const ZK = ({
28421
28422
  } = E4(e || Oy, {
28422
28423
  maxHistory: 50,
28423
28424
  isEqual: ($, K) => JSON.stringify($) === JSON.stringify(K)
28424
- }), [w, _] = W("desktop"), [x, O] = W(/* @__PURE__ */ new Set()), [E, j] = W(!1), [P, N] = W(null), [S, A] = W(null), [C, I] = W(!1), [R, V] = W(null), [z, Q] = W(!1), [Y, ce] = W(null), [D, Z] = W(!1), [oe, F] = W(null), [ee, de] = W(null), [B, ge] = W(!0), [M, ue] = W(/* @__PURE__ */ new Set()), [G, U] = W(null), [We, be] = W({}), vt = te(null), fe = p[w], ot = fe.rows || es, It = fe.columns, er = M.has(w), Xf = Ey(p);
28425
+ }), [w, _] = W("desktop"), [x, O] = W(/* @__PURE__ */ new Set()), [E, j] = W(!1), [P, N] = W(null), [S, A] = W(null), [C, I] = W(!1), [R, V] = W(null), [z, Q] = W(!1), [Y, ce] = W(null), [D, Z] = W(!1), [oe, F] = W(null), [ee, de] = W(null), [B, ge] = W(!0), [M, ue] = W(/* @__PURE__ */ new Set()), [G, U] = W(null), [We, be] = W({}), vt = ne(null), fe = p[w], ot = fe.rows || es, It = fe.columns, er = M.has(w), Xf = Ey(p);
28425
28426
  pe(() => {
28426
28427
  d || (l(Xf), u([]));
28427
28428
  }, [Xf]);
@@ -28528,7 +28529,7 @@ const ZK = ({
28528
28529
  }
28529
28530
  O(/* @__PURE__ */ new Set([String(K)]));
28530
28531
  }
28531
- }, Qf = te(el);
28532
+ }, Qf = ne(el);
28532
28533
  pe(() => {
28533
28534
  Qf.current = el;
28534
28535
  });
@@ -28537,8 +28538,8 @@ const ZK = ({
28537
28538
  if (!$) return !1;
28538
28539
  const K = $.tagName.toLowerCase();
28539
28540
  return K === "input" || K === "textarea" || $.getAttribute("contenteditable") === "true";
28540
- }, { register: xa, activate: ep, deactivate: tp } = wy({ scope: "component" }), { register: Pi, activate: P1, deactivate: C1 } = wy({ scope: "component" }), rp = te(() => {
28541
- }), np = te(() => {
28541
+ }, { register: xa, activate: ep, deactivate: tp } = wy({ scope: "component" }), { register: Pi, activate: P1, deactivate: C1 } = wy({ scope: "component" }), rp = ne(() => {
28542
+ }), np = ne(() => {
28542
28543
  });
28543
28544
  pe(() => {
28544
28545
  xa("ctrl+z", {
@@ -28866,7 +28867,7 @@ const ZK = ({
28866
28867
  ve && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
28867
28868
  /* @__PURE__ */ m.jsxs("div", { className: he["rst-layout-builder-block-controls"], children: [
28868
28869
  /* @__PURE__ */ m.jsx(
28869
- ne,
28870
+ re,
28870
28871
  {
28871
28872
  value: "W-",
28872
28873
  size: "small",
@@ -28876,7 +28877,7 @@ const ZK = ({
28876
28877
  }
28877
28878
  ),
28878
28879
  /* @__PURE__ */ m.jsx(
28879
- ne,
28880
+ re,
28880
28881
  {
28881
28882
  value: "W+",
28882
28883
  size: "small",
@@ -28886,7 +28887,7 @@ const ZK = ({
28886
28887
  }
28887
28888
  ),
28888
28889
  /* @__PURE__ */ m.jsx(
28889
- ne,
28890
+ re,
28890
28891
  {
28891
28892
  value: "H-",
28892
28893
  size: "small",
@@ -28896,7 +28897,7 @@ const ZK = ({
28896
28897
  }
28897
28898
  ),
28898
28899
  /* @__PURE__ */ m.jsx(
28899
- ne,
28900
+ re,
28900
28901
  {
28901
28902
  value: "H+",
28902
28903
  size: "small",
@@ -28957,11 +28958,11 @@ const ZK = ({
28957
28958
  ]
28958
28959
  }
28959
28960
  ),
28960
- G && /* @__PURE__ */ m.jsx(ne, { value: "Clear", size: "small", variant: "base", onClick: O1 })
28961
+ G && /* @__PURE__ */ m.jsx(re, { value: "Clear", size: "small", variant: "base", onClick: O1 })
28961
28962
  ] }),
28962
28963
  /* @__PURE__ */ m.jsxs("div", { className: he["rst-layout-builder-group"], children: [
28963
- /* @__PURE__ */ m.jsx(ne, { value: "", leadingVisual: "arrow-left", size: "small", variant: "base", onClick: v, disabled: !y, title: "Undo (Cmd/Ctrl+Z)" }),
28964
- /* @__PURE__ */ m.jsx(ne, { value: "", leadingVisual: "arrow-right", size: "small", variant: "base", onClick: g, disabled: !b, title: "Redo (Cmd/Ctrl+Shift+Z)" })
28964
+ /* @__PURE__ */ m.jsx(re, { value: "", leadingVisual: "arrow-left", size: "small", variant: "base", onClick: v, disabled: !y, title: "Undo (Cmd/Ctrl+Z)" }),
28965
+ /* @__PURE__ */ m.jsx(re, { value: "", leadingVisual: "arrow-right", size: "small", variant: "base", onClick: g, disabled: !b, title: "Redo (Cmd/Ctrl+Shift+Z)" })
28965
28966
  ] })
28966
28967
  ] }),
28967
28968
  /* @__PURE__ */ m.jsxs("div", { className: he["rst-layout-builder-content-wrapper"], children: [
@@ -28975,7 +28976,7 @@ const ZK = ({
28975
28976
  ] }),
28976
28977
  /* @__PURE__ */ m.jsxs("div", { className: he["rst-layout-builder-footer"], children: [
28977
28978
  r && i !== "json" && /* @__PURE__ */ m.jsx("div", { className: he["rst-layout-builder-group"], children: /* @__PURE__ */ m.jsx(
28978
- ne,
28979
+ re,
28979
28980
  {
28980
28981
  value: `Auto-place (${Qs().length} fields, ${Js().length} slots)`,
28981
28982
  size: "small",
@@ -29011,7 +29012,7 @@ const ZK = ({
29011
29012
  }
29012
29013
  ),
29013
29014
  /* @__PURE__ */ m.jsx(
29014
- ne,
29015
+ re,
29015
29016
  {
29016
29017
  value: M.has(w) ? "Unlock" : "Lock",
29017
29018
  variant: M.has(w) ? "primary" : "base",
@@ -29024,7 +29025,7 @@ const ZK = ({
29024
29025
  /* @__PURE__ */ m.jsxs("div", { className: he["rst-layout-builder-group"], children: [
29025
29026
  /* @__PURE__ */ m.jsx(ie, { variant: "body", children: "Sync:" }),
29026
29027
  /* @__PURE__ */ m.jsx(
29027
- ne,
29028
+ re,
29028
29029
  {
29029
29030
  value: B ? "On" : "Off",
29030
29031
  variant: B ? "primary" : "base",
@@ -29041,7 +29042,7 @@ const ZK = ({
29041
29042
  " error",
29042
29043
  c.length !== 1 ? "s" : ""
29043
29044
  ] }),
29044
- d && c.length > 0 && /* @__PURE__ */ m.jsx(ne, { value: "Reset", size: "small", variant: "base", onClick: Zs, title: "Reset to last valid state" })
29045
+ d && c.length > 0 && /* @__PURE__ */ m.jsx(re, { value: "Reset", size: "small", variant: "base", onClick: Zs, title: "Reset to last valid state" })
29045
29046
  ] }),
29046
29047
  x.size > 0 && /* @__PURE__ */ m.jsx("div", { className: he["rst-layout-builder-group"], children: x.size === 1 && Rn ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
29047
29048
  /* @__PURE__ */ m.jsx(ie, { variant: "body", children: "Block:" }),
@@ -29051,13 +29052,13 @@ const ZK = ({
29051
29052
  " x ",
29052
29053
  fe.blocks[Rn]?.h
29053
29054
  ] }),
29054
- /* @__PURE__ */ m.jsx(ne, { value: "Delete", onClick: () => S1(Rn) })
29055
+ /* @__PURE__ */ m.jsx(re, { value: "Delete", onClick: () => S1(Rn) })
29055
29056
  ] }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
29056
29057
  /* @__PURE__ */ m.jsxs(ie, { variant: "body", children: [
29057
29058
  x.size,
29058
29059
  " blocks selected"
29059
29060
  ] }),
29060
- /* @__PURE__ */ m.jsx(ne, { value: `Delete ${x.size}`, variant: "danger", onClick: el })
29061
+ /* @__PURE__ */ m.jsx(re, { value: `Delete ${x.size}`, variant: "danger", onClick: el })
29061
29062
  ] }) })
29062
29063
  ] })
29063
29064
  ] });
@@ -29088,7 +29089,7 @@ const ZK = ({
29088
29089
  className: l,
29089
29090
  ...c
29090
29091
  }) => {
29091
- const [u, d] = W([]), [f, p] = W(!1), [h, v] = W(null), g = te(null), y = (S) => {
29092
+ const [u, d] = W([]), [f, p] = W(!1), [h, v] = W(null), g = ne(null), y = (S) => {
29092
29093
  S.preventDefault(), S.stopPropagation(), p(!0);
29093
29094
  }, b = (S) => {
29094
29095
  S.preventDefault(), S.stopPropagation(), p(!1);
@@ -29187,7 +29188,7 @@ const ZK = ({
29187
29188
  ] })
29188
29189
  ] }),
29189
29190
  /* @__PURE__ */ m.jsx(
29190
- ne,
29191
+ re,
29191
29192
  {
29192
29193
  leadingVisual: "delete",
29193
29194
  variant: "invisible",
@@ -29440,7 +29441,7 @@ function sK({ mode: e, onModeChange: t, zoom: r, onZoomChange: n, minZoom: a = 0
29440
29441
  }, u = Math.round(r * 100);
29441
29442
  return /* @__PURE__ */ m.jsxs("div", { className: [Py["rst-workflow-toolbar"], o].filter(Boolean).join(" "), children: [
29442
29443
  /* @__PURE__ */ m.jsx(
29443
- ne,
29444
+ re,
29444
29445
  {
29445
29446
  variant: e === "pointer" ? "primary" : "base",
29446
29447
  size: "small",
@@ -29452,7 +29453,7 @@ function sK({ mode: e, onModeChange: t, zoom: r, onZoomChange: n, minZoom: a = 0
29452
29453
  }
29453
29454
  ),
29454
29455
  /* @__PURE__ */ m.jsx(
29455
- ne,
29456
+ re,
29456
29457
  {
29457
29458
  variant: e === "drag" ? "primary" : "base",
29458
29459
  size: "small",
@@ -29465,7 +29466,7 @@ function sK({ mode: e, onModeChange: t, zoom: r, onZoomChange: n, minZoom: a = 0
29465
29466
  ),
29466
29467
  /* @__PURE__ */ m.jsx("div", { className: Py["rst-workflow-toolbar-divider"] }),
29467
29468
  /* @__PURE__ */ m.jsx(
29468
- ne,
29469
+ re,
29469
29470
  {
29470
29471
  variant: "base",
29471
29472
  size: "small",
@@ -29476,8 +29477,8 @@ function sK({ mode: e, onModeChange: t, zoom: r, onZoomChange: n, minZoom: a = 0
29476
29477
  title: "Zoom out"
29477
29478
  }
29478
29479
  ),
29479
- /* @__PURE__ */ m.jsx(ne, { variant: "base", size: "small", onClick: c, "aria-label": "Reset zoom", title: "Reset zoom to 100%", value: `${u}%` }),
29480
- /* @__PURE__ */ m.jsx(ne, { variant: "base", size: "small", leadingVisual: "zoom-plus", onClick: s, disabled: r >= i, "aria-label": "Zoom in", title: "Zoom in" })
29480
+ /* @__PURE__ */ m.jsx(re, { variant: "base", size: "small", onClick: c, "aria-label": "Reset zoom", title: "Reset zoom to 100%", value: `${u}%` }),
29481
+ /* @__PURE__ */ m.jsx(re, { variant: "base", size: "small", leadingVisual: "zoom-plus", onClick: s, disabled: r >= i, "aria-label": "Zoom in", title: "Zoom in" })
29481
29482
  ] });
29482
29483
  }
29483
29484
  const le = {
@@ -29587,7 +29588,7 @@ function lK({ selectedNode: e, allNodes: t, hasOutputs: r, onCreateNode: n, onCo
29587
29588
  ] }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
29588
29589
  /* @__PURE__ */ m.jsxs("div", { className: le["rst-workflow-panel-connection-group"], children: [
29589
29590
  /* @__PURE__ */ m.jsx("div", { className: le["rst-workflow-panel-connection-label"], children: "Create & Connect New Node" }),
29590
- /* @__PURE__ */ m.jsx(ne, { leadingVisual: "plus", variant: "primary", size: "small", onClick: f, type: "button", children: "Create Node" })
29591
+ /* @__PURE__ */ m.jsx(re, { leadingVisual: "plus", variant: "primary", size: "small", onClick: f, type: "button", children: "Create Node" })
29591
29592
  ] }),
29592
29593
  d.length > 0 && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
29593
29594
  /* @__PURE__ */ m.jsx("div", { className: le["rst-workflow-panel-connection-divider"], children: "OR" }),
@@ -29673,7 +29674,7 @@ function QK({
29673
29674
  className: f,
29674
29675
  ...p
29675
29676
  }) {
29676
- const [h, v] = W("pointer"), [g, y] = W(i), [b, w] = W({ x: 0, y: 0 }), [_, x] = W(!1), [O, E] = W({ x: 0, y: 0 }), [j, P] = W(null), N = te(null), S = xe(() => ({ ...x1, ...r }), [r]), A = xe(() => tK(e, t, S), [e, t, S]), { width: C, height: I } = xe(() => iK(A, S), [A, S]), R = xe(() => {
29677
+ const [h, v] = W("pointer"), [g, y] = W(i), [b, w] = W({ x: 0, y: 0 }), [_, x] = W(!1), [O, E] = W({ x: 0, y: 0 }), [j, P] = W(null), N = ne(null), S = xe(() => ({ ...x1, ...r }), [r]), A = xe(() => tK(e, t, S), [e, t, S]), { width: C, height: I } = xe(() => iK(A, S), [A, S]), R = xe(() => {
29677
29678
  const B = /* @__PURE__ */ new Map();
29678
29679
  return A.forEach((ge) => {
29679
29680
  B.set(ge.id, ge);
@@ -29902,7 +29903,7 @@ export {
29902
29903
  e3 as Avatar,
29903
29904
  rk as Banner,
29904
29905
  VK as Breadcrumbs,
29905
- ne as Button,
29906
+ re as Button,
29906
29907
  YK as Calendar,
29907
29908
  d1 as Cell,
29908
29909
  zK as Chart,