@bluealba/pae-ui-react-core 4.2.1-develop-1353 → 4.2.1-develop-1355

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.
package/dist/index.esm.js CHANGED
@@ -124,14 +124,14 @@ function Wd() {
124
124
  se.unshift("Warning: " + P), Function.prototype.apply.call(console[b], console, se);
125
125
  }
126
126
  }
127
- var E = !1, _ = !1, T = !1, R = !1, j = !1, I;
128
- I = Symbol.for("react.module.reference");
127
+ var E = !1, _ = !1, T = !1, R = !1, N = !1, j;
128
+ j = Symbol.for("react.module.reference");
129
129
  function D(b) {
130
- return !!(typeof b == "string" || typeof b == "function" || b === r || b === s || j || b === o || b === u || b === f || R || b === g || E || _ || T || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === a || b.$$typeof === c || // This needs to include all possible module reference object
130
+ return !!(typeof b == "string" || typeof b == "function" || b === r || b === s || N || b === o || b === u || b === f || R || b === g || E || _ || T || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === a || b.$$typeof === c || // This needs to include all possible module reference object
131
131
  // types supported by any Flight configuration anywhere since
132
132
  // we don't know which Flight build this will end up being used
133
133
  // with.
134
- b.$$typeof === I || b.getModuleId !== void 0));
134
+ b.$$typeof === j || b.getModuleId !== void 0));
135
135
  }
136
136
  function F(b, P, O) {
137
137
  var $ = b.displayName;
@@ -2821,14 +2821,14 @@ var Xe, qa, Vh = (qa = class extends kn {
2821
2821
  this.execute(this.state.variables);
2822
2822
  }
2823
2823
  async execute(t) {
2824
- var s, i, a, c, u, f, p, m, g, x, h, v, y, w, S, E, _, T, R, j;
2824
+ var s, i, a, c, u, f, p, m, g, x, h, v, y, w, S, E, _, T, R, N;
2825
2825
  const n = () => {
2826
2826
  W(this, et, Et).call(this, { type: "continue" });
2827
2827
  };
2828
2828
  A(this, Xt, Tc({
2829
2829
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
2830
- onFail: (I, D) => {
2831
- W(this, et, Et).call(this, { type: "failed", failureCount: I, error: D });
2830
+ onFail: (j, D) => {
2831
+ W(this, et, Et).call(this, { type: "failed", failureCount: j, error: D });
2832
2832
  },
2833
2833
  onPause: () => {
2834
2834
  W(this, et, Et).call(this, { type: "pause" });
@@ -2857,50 +2857,50 @@ var Xe, qa, Vh = (qa = class extends kn {
2857
2857
  isPaused: o
2858
2858
  });
2859
2859
  }
2860
- const I = await C(this, Xt).start();
2860
+ const j = await C(this, Xt).start();
2861
2861
  return await ((f = (u = C(this, xe).config).onSuccess) == null ? void 0 : f.call(
2862
2862
  u,
2863
- I,
2863
+ j,
2864
2864
  t,
2865
2865
  this.state.context,
2866
2866
  this
2867
- )), await ((m = (p = this.options).onSuccess) == null ? void 0 : m.call(p, I, t, this.state.context)), await ((x = (g = C(this, xe).config).onSettled) == null ? void 0 : x.call(
2867
+ )), await ((m = (p = this.options).onSuccess) == null ? void 0 : m.call(p, j, t, this.state.context)), await ((x = (g = C(this, xe).config).onSettled) == null ? void 0 : x.call(
2868
2868
  g,
2869
- I,
2869
+ j,
2870
2870
  null,
2871
2871
  this.state.variables,
2872
2872
  this.state.context,
2873
2873
  this
2874
- )), await ((v = (h = this.options).onSettled) == null ? void 0 : v.call(h, I, null, t, this.state.context)), W(this, et, Et).call(this, { type: "success", data: I }), I;
2875
- } catch (I) {
2874
+ )), await ((v = (h = this.options).onSettled) == null ? void 0 : v.call(h, j, null, t, this.state.context)), W(this, et, Et).call(this, { type: "success", data: j }), j;
2875
+ } catch (j) {
2876
2876
  try {
2877
2877
  throw await ((w = (y = C(this, xe).config).onError) == null ? void 0 : w.call(
2878
2878
  y,
2879
- I,
2879
+ j,
2880
2880
  t,
2881
2881
  this.state.context,
2882
2882
  this
2883
2883
  )), await ((E = (S = this.options).onError) == null ? void 0 : E.call(
2884
2884
  S,
2885
- I,
2885
+ j,
2886
2886
  t,
2887
2887
  this.state.context
2888
2888
  )), await ((T = (_ = C(this, xe).config).onSettled) == null ? void 0 : T.call(
2889
2889
  _,
2890
2890
  void 0,
2891
- I,
2891
+ j,
2892
2892
  this.state.variables,
2893
2893
  this.state.context,
2894
2894
  this
2895
- )), await ((j = (R = this.options).onSettled) == null ? void 0 : j.call(
2895
+ )), await ((N = (R = this.options).onSettled) == null ? void 0 : N.call(
2896
2896
  R,
2897
2897
  void 0,
2898
- I,
2898
+ j,
2899
2899
  t,
2900
2900
  this.state.context
2901
- )), I;
2901
+ )), j;
2902
2902
  } finally {
2903
- W(this, et, Et).call(this, { type: "error", error: I });
2903
+ W(this, et, Et).call(this, { type: "error", error: j });
2904
2904
  }
2905
2905
  } finally {
2906
2906
  C(this, xe).runNext(this);
@@ -3110,10 +3110,10 @@ function Hi(e) {
3110
3110
  meta: t.options.meta
3111
3111
  };
3112
3112
  return v(F), F;
3113
- })(), j = await y(R), { maxPages: I } = t.options, D = _ ? Mh : Lh;
3113
+ })(), N = await y(R), { maxPages: j } = t.options, D = _ ? Mh : Lh;
3114
3114
  return {
3115
- pages: D(S.pages, j, I),
3116
- pageParams: D(S.pageParams, E, I)
3115
+ pages: D(S.pages, N, j),
3116
+ pageParams: D(S.pageParams, E, j)
3117
3117
  };
3118
3118
  };
3119
3119
  if (o && s.length) {
@@ -3475,7 +3475,7 @@ var de, Ot, jt, Rn, Pn, It, An, On, Ka, Kh = (Ka = class {
3475
3475
  }).then(() => (this.updateResult(), C(this, Se)));
3476
3476
  }
3477
3477
  createResult(t, n) {
3478
- var I;
3478
+ var j;
3479
3479
  const r = C(this, G), o = this.options, s = C(this, Se), i = C(this, Jt), a = C(this, jn), u = t !== r ? t.state : C(this, rr), { state: f } = t;
3480
3480
  let p = { ...f }, m = !1, g;
3481
3481
  if (n._optimisticResults) {
@@ -3491,7 +3491,7 @@ var de, Ot, jt, Rn, Pn, It, An, On, Ka, Kh = (Ka = class {
3491
3491
  if (n.placeholderData !== void 0 && g === void 0 && v === "pending") {
3492
3492
  let D;
3493
3493
  s != null && s.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData) ? (D = s.data, y = !0) : D = typeof n.placeholderData == "function" ? n.placeholderData(
3494
- (I = C(this, Nn)) == null ? void 0 : I.state.data,
3494
+ (j = C(this, Nn)) == null ? void 0 : j.state.data,
3495
3495
  C(this, Nn)
3496
3496
  ) : n.placeholderData, D !== void 0 && (v = "success", g = as(
3497
3497
  s == null ? void 0 : s.data,
@@ -3509,7 +3509,7 @@ var de, Ot, jt, Rn, Pn, It, An, On, Ka, Kh = (Ka = class {
3509
3509
  A(this, Dt, D);
3510
3510
  }
3511
3511
  C(this, Dt) && (x = C(this, Dt), g = C(this, In), h = Date.now(), v = "error");
3512
- const w = p.fetchStatus === "fetching", S = v === "pending", E = v === "error", _ = S && w, T = g !== void 0, j = {
3512
+ const w = p.fetchStatus === "fetching", S = v === "pending", E = v === "error", _ = S && w, T = g !== void 0, N = {
3513
3513
  status: v,
3514
3514
  fetchStatus: p.fetchStatus,
3515
3515
  isPending: S,
@@ -3538,9 +3538,9 @@ var de, Ot, jt, Rn, Pn, It, An, On, Ka, Kh = (Ka = class {
3538
3538
  };
3539
3539
  if (this.options.experimental_prefetchInRender) {
3540
3540
  const D = (U) => {
3541
- j.status === "error" ? U.reject(j.error) : j.data !== void 0 && U.resolve(j.data);
3541
+ N.status === "error" ? U.reject(N.error) : N.data !== void 0 && U.resolve(N.data);
3542
3542
  }, F = () => {
3543
- const U = A(this, Nt, j.promise = cs());
3543
+ const U = A(this, Nt, N.promise = cs());
3544
3544
  D(U);
3545
3545
  }, B = C(this, Nt);
3546
3546
  switch (B.status) {
@@ -3548,14 +3548,14 @@ var de, Ot, jt, Rn, Pn, It, An, On, Ka, Kh = (Ka = class {
3548
3548
  t.queryHash === r.queryHash && D(B);
3549
3549
  break;
3550
3550
  case "fulfilled":
3551
- (j.status === "error" || j.data !== B.value) && F();
3551
+ (N.status === "error" || N.data !== B.value) && F();
3552
3552
  break;
3553
3553
  case "rejected":
3554
- (j.status !== "error" || j.error !== B.reason) && F();
3554
+ (N.status !== "error" || N.error !== B.reason) && F();
3555
3555
  break;
3556
3556
  }
3557
3557
  }
3558
- return j;
3558
+ return N;
3559
3559
  }
3560
3560
  updateResult() {
3561
3561
  const t = C(this, Se), n = this.createResult(C(this, G), this.options);
@@ -4355,7 +4355,7 @@ function Bc(e) {
4355
4355
  } else for (n in e) e[n] && (r && (r += " "), r += n);
4356
4356
  return r;
4357
4357
  }
4358
- function N() {
4358
+ function I() {
4359
4359
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Bc(e)) && (r && (r += " "), r += t);
4360
4360
  return r;
4361
4361
  }
@@ -4396,7 +4396,7 @@ const kp = (e) => e.toLowerCase().trim().split(" ").join("-"), $p = (e) => `${kp
4396
4396
  children: s,
4397
4397
  ...i
4398
4398
  }, a) => {
4399
- const c = N(
4399
+ const c = I(
4400
4400
  xr.button,
4401
4401
  xr[`button--${e}-${t}`],
4402
4402
  o
@@ -4654,7 +4654,7 @@ const l1 = (e, t) => {
4654
4654
  style: s,
4655
4655
  ...i
4656
4656
  }, a) => {
4657
- const c = r ? { color: r, background: l1(r, 0.1) } : {}, u = N(
4657
+ const c = r ? { color: r, background: l1(r, 0.1) } : {}, u = I(
4658
4658
  Mr.Badge,
4659
4659
  Mr[`Badge--${o}`],
4660
4660
  {
@@ -4670,7 +4670,7 @@ const Wc = z(({
4670
4670
  className: t,
4671
4671
  ...n
4672
4672
  }, r) => {
4673
- const o = N(Mr.Badges, t);
4673
+ const o = I(Mr.Badges, t);
4674
4674
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
4675
4675
  });
4676
4676
  Wc.displayName = "Badges";
@@ -4756,7 +4756,7 @@ const u1 = ({
4756
4756
  orientation: n = "vertical",
4757
4757
  ...r
4758
4758
  }, o) => {
4759
- const s = N(
4759
+ const s = I(
4760
4760
  ra.FieldGroup,
4761
4761
  ra[`FieldGroup--${n}`],
4762
4762
  t
@@ -4772,7 +4772,7 @@ const w1 = "Input__uS0sb", oa = {
4772
4772
  error: t,
4773
4773
  ...n
4774
4774
  }, r) => {
4775
- const o = N(oa.Input, t && oa.Error, e);
4775
+ const o = I(oa.Input, t && oa.Error, e);
4776
4776
  return /* @__PURE__ */ l.jsx("input", { ref: r, className: o, ...n });
4777
4777
  });
4778
4778
  Vs.displayName = "Input";
@@ -4783,7 +4783,7 @@ const C1 = {
4783
4783
  className: t,
4784
4784
  ...n
4785
4785
  }, r) => {
4786
- const o = N(C1.Error, t);
4786
+ const o = I(C1.Error, t);
4787
4787
  return /* @__PURE__ */ l.jsx("span", { ref: r, className: o, ...n, children: e });
4788
4788
  });
4789
4789
  x1.displayName = "InputError";
@@ -4796,7 +4796,7 @@ const S1 = "Label__VYUvW", sa = {
4796
4796
  error: n,
4797
4797
  ...r
4798
4798
  }, o) => {
4799
- const s = N(sa.Label, n && sa.Error, t);
4799
+ const s = I(sa.Label, n && sa.Error, t);
4800
4800
  return /* @__PURE__ */ l.jsx("label", { ref: o, className: s, ...r, children: e });
4801
4801
  });
4802
4802
  E1.displayName = "Label";
@@ -4808,7 +4808,7 @@ const _1 = "Select__giqpe", T1 = "Chevron__YvhBd", Cs = {
4808
4808
  className: t,
4809
4809
  ...n
4810
4810
  }, r) => {
4811
- const o = N(Cs.Option, t);
4811
+ const o = I(Cs.Option, t);
4812
4812
  return /* @__PURE__ */ l.jsx("option", { ref: r, className: o, ...n, children: e });
4813
4813
  });
4814
4814
  Hc.displayName = "Option";
@@ -4817,7 +4817,7 @@ const Vc = z(({
4817
4817
  className: t,
4818
4818
  ...n
4819
4819
  }, r) => {
4820
- const o = N(Cs.Select, t);
4820
+ const o = I(Cs.Select, t);
4821
4821
  return /* @__PURE__ */ l.jsxs("div", { className: o, children: [
4822
4822
  /* @__PURE__ */ l.jsx("select", { ref: r, ...n, children: e }),
4823
4823
  /* @__PURE__ */ l.jsx("div", { className: Cs.Chevron, children: /* @__PURE__ */ l.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4 6L8 10L12 6", stroke: "#818181", strokeWidth: "1.33333", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
@@ -5116,11 +5116,11 @@ var G1 = "DismissableLayer", xs = "dismissableLayer.update", z1 = "dismissableLa
5116
5116
  onDismiss: a,
5117
5117
  ...c
5118
5118
  } = e, u = d.useContext(qc), [f, p] = d.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = d.useState({}), x = ue(t, (R) => p(R)), h = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = f ? h.indexOf(f) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, E = w >= y, _ = Z1((R) => {
5119
- const j = R.target, I = [...u.branches].some((D) => D.contains(j));
5120
- !E || I || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
5119
+ const N = R.target, j = [...u.branches].some((D) => D.contains(N));
5120
+ !E || j || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
5121
5121
  }, m), T = X1((R) => {
5122
- const j = R.target;
5123
- [...u.branches].some((D) => D.contains(j)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
5122
+ const N = R.target;
5123
+ [...u.branches].some((D) => D.contains(N)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
5124
5124
  }, m);
5125
5125
  return q1((R) => {
5126
5126
  w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
@@ -5655,7 +5655,7 @@ const wm = async (e, t, n) => {
5655
5655
  }, g = Ks(o), x = zs(g), h = await i.getDimensions(u), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", S = v ? "clientHeight" : "clientWidth", E = s.reference[x] + s.reference[g] - m[g] - s.floating[x], _ = m[g] - s.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
5656
5656
  let R = T ? T[S] : 0;
5657
5657
  (!R || !await (i.isElement == null ? void 0 : i.isElement(T))) && (R = a.floating[S] || s.floating[x]);
5658
- const j = E / 2 - _ / 2, I = R / 2 - h[x] / 2 - 1, D = Bt(p[y], I), F = Bt(p[w], I), B = D, U = R - h[x] - F, H = R / 2 - h[x] / 2 + j, re = Ss(B, H, U), V = !c.arrow && Fn(o) != null && H !== re && s.reference[x] / 2 - (H < B ? D : F) - h[x] / 2 < 0, Q = V ? H < B ? H - B : H - U : 0;
5658
+ const N = E / 2 - _ / 2, j = R / 2 - h[x] / 2 - 1, D = Bt(p[y], j), F = Bt(p[w], j), B = D, U = R - h[x] - F, H = R / 2 - h[x] / 2 + N, re = Ss(B, H, U), V = !c.arrow && Fn(o) != null && H !== re && s.reference[x] / 2 - (H < B ? D : F) - h[x] / 2 < 0, Q = V ? H < B ? H - B : H - U : 0;
5659
5659
  return {
5660
5660
  [g]: m[g] + Q,
5661
5661
  data: {
@@ -5694,16 +5694,16 @@ const wm = async (e, t, n) => {
5694
5694
  return {};
5695
5695
  const y = vt(o), w = ot(a), S = vt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), _ = m || (S || !h ? [zr(a)] : hm(a)), T = x !== "none";
5696
5696
  !m && T && _.push(...vm(a, h, x, E));
5697
- const R = [a, ..._], j = await c.detectOverflow(t, v), I = [];
5697
+ const R = [a, ..._], N = await c.detectOverflow(t, v), j = [];
5698
5698
  let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
5699
- if (f && I.push(j[y]), p) {
5699
+ if (f && j.push(N[y]), p) {
5700
5700
  const H = fm(o, i, E);
5701
- I.push(j[H[0]], j[H[1]]);
5701
+ j.push(N[H[0]], N[H[1]]);
5702
5702
  }
5703
5703
  if (D = [...D, {
5704
5704
  placement: o,
5705
- overflows: I
5706
- }], !I.every((H) => H <= 0)) {
5705
+ overflows: j
5706
+ }], !j.every((H) => H <= 0)) {
5707
5707
  var F, B;
5708
5708
  const H = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, re = R[H];
5709
5709
  if (re && (!(p === "alignment" ? w !== ot(re) : !1) || // We leave the current main axis only if every placement on that axis
@@ -5974,18 +5974,18 @@ const _m = function(e) {
5974
5974
  let v, y;
5975
5975
  p === "top" || p === "bottom" ? (v = p, y = m === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = p, v = m === "end" ? "top" : "bottom");
5976
5976
  const w = h - f.top - f.bottom, S = x - f.left - f.right, E = Bt(h - f[v], w), _ = Bt(x - f[y], S), T = !t.middlewareData.shift;
5977
- let R = E, j = _;
5978
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = S), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), T && !m) {
5977
+ let R = E, N = _;
5978
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = S), (r = t.middlewareData.shift) != null && r.enabled.y && (R = w), T && !m) {
5979
5979
  const D = Oe(f.left, 0), F = Oe(f.right, 0), B = Oe(f.top, 0), U = Oe(f.bottom, 0);
5980
- g ? j = x - 2 * (D !== 0 || F !== 0 ? D + F : Oe(f.left, f.right)) : R = h - 2 * (B !== 0 || U !== 0 ? B + U : Oe(f.top, f.bottom));
5980
+ g ? N = x - 2 * (D !== 0 || F !== 0 ? D + F : Oe(f.left, f.right)) : R = h - 2 * (B !== 0 || U !== 0 ? B + U : Oe(f.top, f.bottom));
5981
5981
  }
5982
5982
  await c({
5983
5983
  ...t,
5984
- availableWidth: j,
5984
+ availableWidth: N,
5985
5985
  availableHeight: R
5986
5986
  });
5987
- const I = await i.getDimensions(a.floating);
5988
- return x !== I.width || h !== I.height ? {
5987
+ const j = await i.getDimensions(a.floating);
5988
+ return x !== j.width || h !== j.height ? {
5989
5989
  reset: {
5990
5990
  rects: !0
5991
5991
  }
@@ -6565,7 +6565,7 @@ function ug(e) {
6565
6565
  k !== T.current && (T.current = k, h(k));
6566
6566
  }, []), S = d.useCallback((k) => {
6567
6567
  k !== R.current && (R.current = k, y(k));
6568
- }, []), E = s || x, _ = i || v, T = d.useRef(null), R = d.useRef(null), j = d.useRef(f), I = c != null, D = Uo(c), F = Uo(o), B = Uo(u), U = d.useCallback(() => {
6568
+ }, []), E = s || x, _ = i || v, T = d.useRef(null), R = d.useRef(null), N = d.useRef(f), j = c != null, D = Uo(c), F = Uo(o), B = Uo(u), U = d.useCallback(() => {
6569
6569
  if (!T.current || !R.current)
6570
6570
  return;
6571
6571
  const k = {
@@ -6582,13 +6582,13 @@ function ug(e) {
6582
6582
  // setting it to `true` when `open === false` (must be specified).
6583
6583
  isPositioned: B.current !== !1
6584
6584
  };
6585
- H.current && !Qr(j.current, ve) && (j.current = ve, no.flushSync(() => {
6585
+ H.current && !Qr(N.current, ve) && (N.current = ve, no.flushSync(() => {
6586
6586
  p(ve);
6587
6587
  }));
6588
6588
  });
6589
6589
  }, [m, t, n, F, B]);
6590
6590
  kr(() => {
6591
- u === !1 && j.current.isPositioned && (j.current.isPositioned = !1, p((k) => ({
6591
+ u === !1 && N.current.isPositioned && (N.current.isPositioned = !1, p((k) => ({
6592
6592
  ...k,
6593
6593
  isPositioned: !1
6594
6594
  })));
@@ -6602,7 +6602,7 @@ function ug(e) {
6602
6602
  return D.current(E, _, U);
6603
6603
  U();
6604
6604
  }
6605
- }, [E, _, U, D, I]);
6605
+ }, [E, _, U, D, j]);
6606
6606
  const re = d.useMemo(() => ({
6607
6607
  reference: T,
6608
6608
  floating: R,
@@ -6755,7 +6755,7 @@ var Js = "PopperContent", [Sg, Eg] = al(Js), fl = d.forwardRef(
6755
6755
  updatePositionStrategy: g = "optimized",
6756
6756
  onPlaced: x,
6757
6757
  ...h
6758
- } = e, v = cl(Js, n), [y, w] = d.useState(null), S = ue(t, (we) => w(we)), [E, _] = d.useState(null), T = Cg(E), R = (T == null ? void 0 : T.width) ?? 0, j = (T == null ? void 0 : T.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, F = Array.isArray(u) ? u : [u], B = F.length > 0, U = {
6758
+ } = e, v = cl(Js, n), [y, w] = d.useState(null), S = ue(t, (we) => w(we)), [E, _] = d.useState(null), T = Cg(E), R = (T == null ? void 0 : T.width) ?? 0, N = (T == null ? void 0 : T.height) ?? 0, j = r + (s !== "center" ? "-" + s : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, F = Array.isArray(u) ? u : [u], B = F.length > 0, U = {
6759
6759
  padding: D,
6760
6760
  boundary: F.filter(Tg),
6761
6761
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6763,7 +6763,7 @@ var Js = "PopperContent", [Sg, Eg] = al(Js), fl = d.forwardRef(
6763
6763
  }, { refs: H, floatingStyles: re, placement: V, isPositioned: Q, middlewareData: k } = ug({
6764
6764
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6765
6765
  strategy: "fixed",
6766
- placement: I,
6766
+ placement: j,
6767
6767
  whileElementsMounted: (...we) => eg(...we, {
6768
6768
  animationFrame: g === "always"
6769
6769
  }),
@@ -6771,7 +6771,7 @@ var Js = "PopperContent", [Sg, Eg] = al(Js), fl = d.forwardRef(
6771
6771
  reference: v.anchor
6772
6772
  },
6773
6773
  middleware: [
6774
- fg({ mainAxis: o + j, alignmentAxis: i }),
6774
+ fg({ mainAxis: o + N, alignmentAxis: i }),
6775
6775
  c && hg({
6776
6776
  mainAxis: !0,
6777
6777
  crossAxis: !1,
@@ -6787,7 +6787,7 @@ var Js = "PopperContent", [Sg, Eg] = al(Js), fl = d.forwardRef(
6787
6787
  }
6788
6788
  }),
6789
6789
  E && yg({ element: E, padding: a }),
6790
- Rg({ arrowWidth: R, arrowHeight: j }),
6790
+ Rg({ arrowWidth: R, arrowHeight: N }),
6791
6791
  m && vg({ strategy: "referenceHidden", ...U })
6792
6792
  ]
6793
6793
  }), [oe, ve] = ml(V), Ne = an(x);
@@ -7477,7 +7477,7 @@ function xv(e) {
7477
7477
  var y = Rr(h), w = n.current, S = "deltaX" in h ? h.deltaX : w[0] - y[0], E = "deltaY" in h ? h.deltaY : w[1] - y[1], _, T = h.target, R = Math.abs(S) > Math.abs(E) ? "h" : "v";
7478
7478
  if ("touches" in h && R === "h" && T.type === "range")
7479
7479
  return !1;
7480
- var j = window.getSelection(), I = j && j.anchorNode, D = I ? I === T || I.contains(T) : !1;
7480
+ var N = window.getSelection(), j = N && N.anchorNode, D = j ? j === T || j.contains(T) : !1;
7481
7481
  if (D)
7482
7482
  return !1;
7483
7483
  var F = Aa(R, T);
@@ -7568,12 +7568,12 @@ var _v = [" ", "Enter", "ArrowUp", "ArrowDown"], Tv = [" ", "Enter"], ln = "Sele
7568
7568
  disabled: m,
7569
7569
  required: g,
7570
7570
  form: x
7571
- } = e, h = wo(t), [v, y] = d.useState(null), [w, S] = d.useState(null), [E, _] = d.useState(!1), T = M1(u), [R, j] = Yr({
7571
+ } = e, h = wo(t), [v, y] = d.useState(null), [w, S] = d.useState(null), [E, _] = d.useState(!1), T = M1(u), [R, N] = Yr({
7572
7572
  prop: r,
7573
7573
  defaultProp: o ?? !1,
7574
7574
  onChange: s,
7575
7575
  caller: ln
7576
- }), [I, D] = Yr({
7576
+ }), [j, D] = Yr({
7577
7577
  prop: i,
7578
7578
  defaultProp: a,
7579
7579
  onChange: c,
@@ -7591,10 +7591,10 @@ var _v = [" ", "Enter", "ArrowUp", "ArrowDown"], Tv = [" ", "Enter"], ln = "Sele
7591
7591
  valueNodeHasChildren: E,
7592
7592
  onValueNodeHasChildrenChange: _,
7593
7593
  contentId: nn(),
7594
- value: I,
7594
+ value: j,
7595
7595
  onValueChange: D,
7596
7596
  open: R,
7597
- onOpenChange: j,
7597
+ onOpenChange: N,
7598
7598
  dir: T,
7599
7599
  triggerPointerDownPosRef: F,
7600
7600
  disabled: m,
@@ -7623,12 +7623,12 @@ var _v = [" ", "Enter", "ArrowUp", "ArrowDown"], Tv = [" ", "Enter"], ln = "Sele
7623
7623
  tabIndex: -1,
7624
7624
  name: f,
7625
7625
  autoComplete: p,
7626
- value: I,
7626
+ value: j,
7627
7627
  onChange: (V) => D(V.target.value),
7628
7628
  disabled: m,
7629
7629
  form: x,
7630
7630
  children: [
7631
- I === void 0 ? /* @__PURE__ */ l.jsx("option", { value: "" }) : null,
7631
+ j === void 0 ? /* @__PURE__ */ l.jsx("option", { value: "" }) : null,
7632
7632
  Array.from(U)
7633
7633
  ]
7634
7634
  },
@@ -7745,7 +7745,7 @@ var Fe = 10, [kl, Vt] = Un(un), Iv = "SelectContentImpl", Nv = /* @__PURE__ */ A
7745
7745
  avoidCollisions: v,
7746
7746
  //
7747
7747
  ...y
7748
- } = e, w = Ht(un, n), [S, E] = d.useState(null), [_, T] = d.useState(null), R = ue(t, (M) => E(M)), [j, I] = d.useState(null), [D, F] = d.useState(
7748
+ } = e, w = Ht(un, n), [S, E] = d.useState(null), [_, T] = d.useState(null), R = ue(t, (M) => E(M)), [N, j] = d.useState(null), [D, F] = d.useState(
7749
7749
  null
7750
7750
  ), B = bo(n), [U, H] = d.useState(!1), re = d.useRef(!1);
7751
7751
  d.useEffect(() => {
@@ -7759,8 +7759,8 @@ var Fe = 10, [kl, Vt] = Un(un), Iv = "SelectContentImpl", Nv = /* @__PURE__ */ A
7759
7759
  },
7760
7760
  [B, _]
7761
7761
  ), Q = d.useCallback(
7762
- () => V([j, S]),
7763
- [V, j, S]
7762
+ () => V([N, S]),
7763
+ [V, N, S]
7764
7764
  );
7765
7765
  d.useEffect(() => {
7766
7766
  U && Q();
@@ -7794,7 +7794,7 @@ var Fe = 10, [kl, Vt] = Un(un), Iv = "SelectContentImpl", Nv = /* @__PURE__ */ A
7794
7794
  }), wt = d.useCallback(
7795
7795
  (M, J, he) => {
7796
7796
  const Y = !re.current && !he;
7797
- (w.value !== void 0 && w.value === J || Y) && (I(M), Y && (re.current = !0));
7797
+ (w.value !== void 0 && w.value === J || Y) && (j(M), Y && (re.current = !0));
7798
7798
  },
7799
7799
  [w.value]
7800
7800
  ), Ct = d.useCallback(() => S == null ? void 0 : S.focus(), [S]), Ke = d.useCallback(
@@ -7823,7 +7823,7 @@ var Fe = 10, [kl, Vt] = Un(un), Iv = "SelectContentImpl", Nv = /* @__PURE__ */ A
7823
7823
  viewport: _,
7824
7824
  onViewportChange: T,
7825
7825
  itemRefCallback: wt,
7826
- selectedItem: j,
7826
+ selectedItem: N,
7827
7827
  onItemLeave: Ct,
7828
7828
  itemTextRefCallback: Ke,
7829
7829
  focusSelectedItem: Q,
@@ -7897,9 +7897,9 @@ $l.displayName = Iv;
7897
7897
  var Dv = "SelectItemAlignedPosition", Fl = d.forwardRef((e, t) => {
7898
7898
  const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Ht(un, n), i = Vt(un, n), [a, c] = d.useState(null), [u, f] = d.useState(null), p = ue(t, (R) => f(R)), m = bo(n), g = d.useRef(!1), x = d.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = i, S = d.useCallback(() => {
7899
7899
  if (s.trigger && s.valueNode && a && u && h && v && y) {
7900
- const R = s.trigger.getBoundingClientRect(), j = u.getBoundingClientRect(), I = s.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
7900
+ const R = s.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(), j = s.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
7901
7901
  if (s.dir !== "rtl") {
7902
- const ee = D.left - j.left, Z = I.left - ee, we = R.left - Z, De = R.width + we, Qe = Math.max(De, j.width), $e = window.innerWidth - Fe, St = ia(Z, [
7902
+ const ee = D.left - N.left, Z = j.left - ee, we = R.left - Z, De = R.width + we, Qe = Math.max(De, N.width), $e = window.innerWidth - Fe, St = ia(Z, [
7903
7903
  Fe,
7904
7904
  // Prevents the content from going off the starting edge of the
7905
7905
  // viewport. It may still go off the ending edge, but this can be
@@ -7910,7 +7910,7 @@ var Dv = "SelectItemAlignedPosition", Fl = d.forwardRef((e, t) => {
7910
7910
  ]);
7911
7911
  a.style.minWidth = De + "px", a.style.left = St + "px";
7912
7912
  } else {
7913
- const ee = j.right - D.right, Z = window.innerWidth - I.right - ee, we = window.innerWidth - R.right - Z, De = R.width + we, Qe = Math.max(De, j.width), $e = window.innerWidth - Fe, St = ia(Z, [
7913
+ const ee = N.right - D.right, Z = window.innerWidth - j.right - ee, we = window.innerWidth - R.right - Z, De = R.width + we, Qe = Math.max(De, N.width), $e = window.innerWidth - Fe, St = ia(Z, [
7914
7914
  Fe,
7915
7915
  Math.max(Fe, $e - Qe)
7916
7916
  ]);
@@ -8373,7 +8373,7 @@ const oy = "Container__xcHXp", sy = "Label__0cZB9", iy = "HelperText__m1nA9", ay
8373
8373
  disabled: i = !1,
8374
8374
  className: a,
8375
8375
  name: c
8376
- }, u) => /* @__PURE__ */ l.jsxs("div", { className: N(Ye.Container, a), children: [
8376
+ }, u) => /* @__PURE__ */ l.jsxs("div", { className: I(Ye.Container, a), children: [
8377
8377
  e && /* @__PURE__ */ l.jsx("label", { className: Ye.Label, children: e }),
8378
8378
  /* @__PURE__ */ l.jsxs(Kv, { value: n, onValueChange: r, disabled: i, name: c, children: [
8379
8379
  /* @__PURE__ */ l.jsxs(Qv, { ref: u, className: Ye.Trigger, children: [
@@ -8407,7 +8407,7 @@ const my = () => /* @__PURE__ */ l.jsxs("svg", { width: "18", height: "18", view
8407
8407
  className: t,
8408
8408
  ...n
8409
8409
  }, r) => {
8410
- const o = N(yy.TextArea, t);
8410
+ const o = I(yy.TextArea, t);
8411
8411
  return /* @__PURE__ */ l.jsx("textarea", { ref: r, className: o, ...n, children: e });
8412
8412
  });
8413
8413
  by.displayName = "TextArea";
@@ -8812,7 +8812,7 @@ const Gy = "tooltip__nUuSh", zy = "tooltipArrow__W2w-f", Ia = {
8812
8812
  };
8813
8813
  return /* @__PURE__ */ l.jsx(By, { delayDuration: i, children: /* @__PURE__ */ l.jsxs(Uy, { open: g, onOpenChange: x, children: [
8814
8814
  /* @__PURE__ */ l.jsx(Wy, { asChild: !0, children: e }),
8815
- /* @__PURE__ */ l.jsx(Hy, { children: /* @__PURE__ */ l.jsxs(Vy, { className: N(Ia.tooltip, o), side: a, sideOffset: c, children: [
8815
+ /* @__PURE__ */ l.jsx(Hy, { children: /* @__PURE__ */ l.jsxs(Vy, { className: I(Ia.tooltip, o), side: a, sideOffset: c, children: [
8816
8816
  n,
8817
8817
  r,
8818
8818
  /* @__PURE__ */ l.jsx(qy, { className: Ia.tooltipArrow })
@@ -8845,7 +8845,7 @@ const Ky = "truncatedText__Y-jSd", Qy = "overflowing__o8TC-", Na = {
8845
8845
  "span",
8846
8846
  {
8847
8847
  ref: o,
8848
- className: N(Na.truncatedText, s ? Na.overflowing : "", t || ""),
8848
+ className: I(Na.truncatedText, s ? Na.overflowing : "", t || ""),
8849
8849
  children: e
8850
8850
  }
8851
8851
  );
@@ -8874,12 +8874,12 @@ const Zy = "SearchInput__4OFyE", Xy = "SearchIcon__YgnQy", Jy = "ClearIcon__ukRV
8874
8874
  onClear: o,
8875
8875
  ...s
8876
8876
  }, i) => {
8877
- const a = N(
8877
+ const a = I(
8878
8878
  Vn.SearchInput,
8879
8879
  n && Vn.SearchInput__ClearIcon,
8880
8880
  r && Vn.SearchInput__SearchIcon,
8881
8881
  e
8882
- ), c = N(Vn.SearchIcon), u = N(Vn.ClearIcon);
8882
+ ), c = I(Vn.SearchIcon), u = I(Vn.ClearIcon);
8883
8883
  return /* @__PURE__ */ l.jsxs("div", { className: a, children: [
8884
8884
  /* @__PURE__ */ l.jsx(Vs, { ref: i, type: "text", placeholder: t, ...s }),
8885
8885
  r && /* @__PURE__ */ l.jsx(
@@ -8934,7 +8934,7 @@ const n0 = "SearchAutocomplete__vR9Hk", r0 = "AutocompleteItem__YIm7R", o0 = "Au
8934
8934
  align: r = "right",
8935
8935
  ...o
8936
8936
  }, s) => {
8937
- const i = N(
8937
+ const i = I(
8938
8938
  bn.DropdownList,
8939
8939
  {
8940
8940
  [bn["DropdownList--open"]]: n,
@@ -8952,7 +8952,7 @@ const Kn = z(({
8952
8952
  canBeSelected: n = !1,
8953
8953
  ...r
8954
8954
  }, o) => {
8955
- const s = N(
8955
+ const s = I(
8956
8956
  rn.AutocompleteItem,
8957
8957
  {
8958
8958
  [rn["AutocompleteItem--canBeSelected"]]: n
@@ -9018,7 +9018,7 @@ const h0 = 300, p0 = {
9018
9018
  className: n,
9019
9019
  ...r
9020
9020
  }, o) => {
9021
- const s = N(rn.AutocompleteHighlighter, n), i = (a, c) => {
9021
+ const s = I(rn.AutocompleteHighlighter, n), i = (a, c) => {
9022
9022
  const u = a.toLowerCase().indexOf(c.toLowerCase());
9023
9023
  if (u === -1 || c.length === 0)
9024
9024
  return a;
@@ -9057,7 +9057,7 @@ const g0 = 5, v0 = z(({
9057
9057
  a == null || a(R), s ? (h(R), p(R.value)) : p("");
9058
9058
  }, S = () => {
9059
9059
  a == null || a(null), h(null), p("");
9060
- }, E = N(rn.SearchAutocomplete, t), _ = m.slice(0, r), T = m.slice(r);
9060
+ }, E = I(rn.SearchAutocomplete, t), _ = m.slice(0, r), T = m.slice(r);
9061
9061
  return /* @__PURE__ */ l.jsxs("div", { ref: u, className: E, ...c, children: [
9062
9062
  /* @__PURE__ */ l.jsx(lu, { ...o, value: f, onChange: y, showClearButton: !!x, onClear: S }),
9063
9063
  e,
@@ -9151,7 +9151,7 @@ const R0 = "SkeletonListContainer__MKJhE", P0 = "Skeleton__Ovpiw", fu = {
9151
9151
  {
9152
9152
  ref: t,
9153
9153
  "aria-hidden": !0,
9154
- className: N(fu.Skeleton, r),
9154
+ className: I(fu.Skeleton, r),
9155
9155
  style: { ...c, width: i, minWidth: i, height: s, borderRadius: a },
9156
9156
  "data-inline-skeleton": Ri(n) ? void 0 : !0,
9157
9157
  tabIndex: -1,
@@ -9163,7 +9163,7 @@ const R0 = "SkeletonListContainer__MKJhE", P0 = "Skeleton__Ovpiw", fu = {
9163
9163
  ii.displayName = "Skeleton";
9164
9164
  const A0 = (e) => {
9165
9165
  const { numberOfItems: t, itemsGap: n = 2, itemProps: r } = e, o = Array.from({ length: t }, (s, i) => i + 1);
9166
- return /* @__PURE__ */ l.jsx("div", { className: N(fu.SkeletonListContainer), style: { gap: n }, children: o.map((s) => /* @__PURE__ */ l.jsx(ii, { loading: !0, ...r }, s)) });
9166
+ return /* @__PURE__ */ l.jsx("div", { className: I(fu.SkeletonListContainer), style: { gap: n }, children: o.map((s) => /* @__PURE__ */ l.jsx(ii, { loading: !0, ...r }, s)) });
9167
9167
  };
9168
9168
  A0.displayName = "SkeletonList";
9169
9169
  const O0 = "spinner__qa7F6", j0 = "rotate__EqlXe", I0 = "spinner-dark__9A9-q", N0 = "spinner-white__gRbtI", D0 = "spinner-success__otWGm", L0 = "spinner-danger__Bq5DM", M0 = "spinner-warning__U900K", Da = {
@@ -9180,7 +9180,7 @@ const O0 = "spinner__qa7F6", j0 = "rotate__EqlXe", I0 = "spinner-dark__9A9-q", N
9180
9180
  "spinner-warning": "spinner-warning__U900K",
9181
9181
  spinnerWarning: M0
9182
9182
  }, k0 = ({ className: e, color: t = "white", size: n = 80, thickness: r }) => {
9183
- const o = N(
9183
+ const o = I(
9184
9184
  Da.spinner,
9185
9185
  Da[`spinner-${t}`],
9186
9186
  e
@@ -9227,7 +9227,7 @@ const $0 = "disabled__KpauE", F0 = "checked__2-JV-", B0 = "thumb__fEuKD", Ar = {
9227
9227
  disabled: r,
9228
9228
  id: o,
9229
9229
  name: i,
9230
- className: N(Ar.switch, {
9230
+ className: I(Ar.switch, {
9231
9231
  [Ar.checked]: h,
9232
9232
  [Ar.disabled]: r
9233
9233
  }),
@@ -9267,7 +9267,7 @@ const W0 = "tabs-root__ELmdj", H0 = "tabs-list__rc10N", V0 = "tabs-list--horizon
9267
9267
  const [i, a] = ae(e || ""), c = t !== void 0, u = c ? t : i, f = (p) => {
9268
9268
  c || a(p), n == null || n(p);
9269
9269
  };
9270
- return /* @__PURE__ */ l.jsx(hu.Provider, { value: { value: u, onValueChange: f, orientation: r }, children: /* @__PURE__ */ l.jsx("div", { className: N(rt.tabsRoot, o), children: s }) });
9270
+ return /* @__PURE__ */ l.jsx(hu.Provider, { value: { value: u, onValueChange: f, orientation: r }, children: /* @__PURE__ */ l.jsx("div", { className: I(rt.tabsRoot, o), children: s }) });
9271
9271
  }, Bb = ({ className: e = "", children: t }) => {
9272
9272
  const { orientation: n } = ai(), r = tt(null), o = (s) => {
9273
9273
  var u;
@@ -9309,7 +9309,7 @@ const W0 = "tabs-root__ELmdj", H0 = "tabs-list__rc10N", V0 = "tabs-list--horizon
9309
9309
  role: "tablist",
9310
9310
  "aria-orientation": n,
9311
9311
  onKeyDown: o,
9312
- className: N(
9312
+ className: I(
9313
9313
  rt.tabsList,
9314
9314
  n === "horizontal" ? rt.tabsListHorizontal : rt.tabsListVertical,
9315
9315
  e
@@ -9335,7 +9335,7 @@ const W0 = "tabs-root__ELmdj", H0 = "tabs-list__rc10N", V0 = "tabs-list--horizon
9335
9335
  tabIndex: a ? 0 : -1,
9336
9336
  disabled: t,
9337
9337
  onClick: c,
9338
- className: N(
9338
+ className: I(
9339
9339
  rt.tabsTrigger,
9340
9340
  i === "horizontal" ? rt.tabsTriggerHorizontal : rt.tabsTriggerVertical,
9341
9341
  a && rt.tabsTriggerActive,
@@ -9358,7 +9358,7 @@ const W0 = "tabs-root__ELmdj", H0 = "tabs-list__rc10N", V0 = "tabs-list--horizon
9358
9358
  id: `content-${e}`,
9359
9359
  "aria-labelledby": `trigger-${e}`,
9360
9360
  tabIndex: 0,
9361
- className: N(rt.tabsContent, t),
9361
+ className: I(rt.tabsContent, t),
9362
9362
  children: n
9363
9363
  }
9364
9364
  ) : null;
@@ -9372,7 +9372,7 @@ const W0 = "tabs-root__ELmdj", H0 = "tabs-list__rc10N", V0 = "tabs-list--horizon
9372
9372
  const [n, r] = ae("password"), o = ge(() => {
9373
9373
  r((s) => s === "password" ? "text" : "password");
9374
9374
  }, [r]);
9375
- return /* @__PURE__ */ l.jsxs("div", { className: N(La.PasswordInput, e.className), children: [
9375
+ return /* @__PURE__ */ l.jsxs("div", { className: I(La.PasswordInput, e.className), children: [
9376
9376
  /* @__PURE__ */ l.jsx(Vs, { type: n, ...e, ref: t }),
9377
9377
  /* @__PURE__ */ l.jsx(X0, { className: La.eyeIcon, onClick: o, state: n === "password" ? "open" : "closed" })
9378
9378
  ] });
@@ -9662,7 +9662,7 @@ const E2 = "Overlay__M5Z83", _2 = "Content__wAkP4", Ma = {
9662
9662
  className: t,
9663
9663
  ...n
9664
9664
  }, r) => {
9665
- const o = N(hn.Header, t);
9665
+ const o = I(hn.Header, t);
9666
9666
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9667
9667
  });
9668
9668
  Au.displayName = "Header";
@@ -9671,7 +9671,7 @@ const Ou = z(({
9671
9671
  className: t,
9672
9672
  ...n
9673
9673
  }, r) => {
9674
- const o = N(hn.Content, t);
9674
+ const o = I(hn.Content, t);
9675
9675
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9676
9676
  });
9677
9677
  Ou.displayName = "Content";
@@ -9680,7 +9680,7 @@ const ju = z(({
9680
9680
  className: t,
9681
9681
  ...n
9682
9682
  }, r) => {
9683
- const o = N(hn.Footer, t);
9683
+ const o = I(hn.Footer, t);
9684
9684
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9685
9685
  });
9686
9686
  ju.displayName = "Footer";
@@ -9689,7 +9689,7 @@ const Iu = z(({
9689
9689
  className: t,
9690
9690
  ...n
9691
9691
  }, r) => {
9692
- const o = N(hn.Title, t);
9692
+ const o = I(hn.Title, t);
9693
9693
  return /* @__PURE__ */ l.jsx(C2, { ref: r, className: o, ...n, children: e });
9694
9694
  });
9695
9695
  Iu.displayName = "Title";
@@ -9697,7 +9697,7 @@ const Nu = z(({
9697
9697
  className: e,
9698
9698
  ...t
9699
9699
  }, n) => {
9700
- const r = N(hn.Close, e);
9700
+ const r = I(hn.Close, e);
9701
9701
  return /* @__PURE__ */ l.jsx(S2, { ref: n, asChild: !0, className: r, ...t, children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M11 1L1 11M1 1L11 11", stroke: "#A9A9A9", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) });
9702
9702
  });
9703
9703
  Nu.displayName = "Close";
@@ -9706,7 +9706,7 @@ const Du = z(({
9706
9706
  className: t,
9707
9707
  ...n
9708
9708
  }, r) => {
9709
- const o = N(hn.Actions, t);
9709
+ const o = I(hn.Actions, t);
9710
9710
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9711
9711
  });
9712
9712
  Du.displayName = "Actions";
@@ -9715,7 +9715,7 @@ const Lu = z(({
9715
9715
  className: t,
9716
9716
  ...n
9717
9717
  }, r) => {
9718
- const o = N(hn.Description, t);
9718
+ const o = I(hn.Description, t);
9719
9719
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9720
9720
  });
9721
9721
  Lu.displayName = "Description";
@@ -9732,7 +9732,7 @@ const _e = ({
9732
9732
  /* @__PURE__ */ l.jsx(b2, { className: Ma.Overlay }),
9733
9733
  /* @__PURE__ */ l.jsxs(w2, { children: [
9734
9734
  /* @__PURE__ */ l.jsx(x2, {}),
9735
- /* @__PURE__ */ l.jsx("div", { className: N(Ma.Content, r), children: e })
9735
+ /* @__PURE__ */ l.jsx("div", { className: I(Ma.Content, r), children: e })
9736
9736
  ] })
9737
9737
  ] }) });
9738
9738
  };
@@ -9751,7 +9751,7 @@ const I2 = "pill__vtGwB", N2 = "pill--solid__F-mR4", D2 = "pill--outline__gC-mh"
9751
9751
  "pill--outline": "pill--outline__gC-mh",
9752
9752
  pillOutline: D2
9753
9753
  }, qb = ({ children: e, variant: t = "solid", className: n }) => {
9754
- const r = N(
9754
+ const r = I(
9755
9755
  ka.pill,
9756
9756
  ka[`pill--${t}`],
9757
9757
  n
@@ -9760,7 +9760,7 @@ const I2 = "pill__vtGwB", N2 = "pill--solid__F-mR4", D2 = "pill--outline__gC-mh"
9760
9760
  }, L2 = "DialogContent__-WjG9", M2 = "Message__AUgVP", $a = {
9761
9761
  DialogContent: L2,
9762
9762
  Message: M2
9763
- }, k2 = ({ loading: e, title: t, children: n, className: r, onClose: o, onConfirm: s, ...i }) => /* @__PURE__ */ l.jsxs(_e, { ...i, className: N($a.DialogContent, r), children: [
9763
+ }, k2 = ({ loading: e, title: t, children: n, className: r, onClose: o, onConfirm: s, ...i }) => /* @__PURE__ */ l.jsxs(_e, { ...i, className: I($a.DialogContent, r), children: [
9764
9764
  /* @__PURE__ */ l.jsxs(_e.Header, { children: [
9765
9765
  /* @__PURE__ */ l.jsx(_e.Title, { children: t }),
9766
9766
  /* @__PURE__ */ l.jsx(_e.Close, { onClick: o })
@@ -9841,7 +9841,7 @@ const V2 = "List__h09XG", q2 = "List__h09XG", G2 = "Item__YMy2i", z2 = "Item__YM
9841
9841
  disabled: r = !1,
9842
9842
  ...o
9843
9843
  }, s) => {
9844
- const i = N(
9844
+ const i = I(
9845
9845
  He.Item,
9846
9846
  {
9847
9847
  [He["Item--selected"]]: n,
@@ -9867,7 +9867,7 @@ const Fu = z(({
9867
9867
  className: t,
9868
9868
  ...n
9869
9869
  }, r) => {
9870
- const o = N(He.Title, t);
9870
+ const o = I(He.Title, t);
9871
9871
  return /* @__PURE__ */ l.jsx("h3", { ref: r, className: o, ...n, children: e });
9872
9872
  });
9873
9873
  Fu.displayName = "Title";
@@ -9876,7 +9876,7 @@ const Bu = z(({
9876
9876
  className: t,
9877
9877
  ...n
9878
9878
  }, r) => {
9879
- const o = N(He.Description, t);
9879
+ const o = I(He.Description, t);
9880
9880
  return /* @__PURE__ */ l.jsx("p", { ref: r, className: o, ...n, children: e });
9881
9881
  });
9882
9882
  Bu.displayName = "Description";
@@ -9907,7 +9907,7 @@ const Uu = z(({
9907
9907
  onClick: n,
9908
9908
  ...r
9909
9909
  }, o) => {
9910
- const s = tt(null), [i, a] = ae(!1), c = N(He.Actions, t), u = () => {
9910
+ const s = tt(null), [i, a] = ae(!1), c = I(He.Actions, t), u = () => {
9911
9911
  const x = bn["DropdownList--open"], h = bn["DropdownList--closed"];
9912
9912
  document.querySelectorAll(`.${x}`).forEach((y) => {
9913
9913
  y !== s.current && (y.classList.remove(x), y.classList.add(h));
@@ -9934,7 +9934,7 @@ const Wu = z(({
9934
9934
  className: t,
9935
9935
  ...n
9936
9936
  }, r) => {
9937
- const o = N(He.Action, t);
9937
+ const o = I(He.Action, t);
9938
9938
  return /* @__PURE__ */ l.jsx("button", { ref: r, className: o, ...n, children: e });
9939
9939
  });
9940
9940
  Wu.displayName = "Action";
@@ -9943,7 +9943,7 @@ const Hu = z(({
9943
9943
  className: t,
9944
9944
  ...n
9945
9945
  }, r) => {
9946
- const o = N(He.Icon, t);
9946
+ const o = I(He.Icon, t);
9947
9947
  return /* @__PURE__ */ l.jsx("div", { ref: r, className: o, ...n, children: e });
9948
9948
  });
9949
9949
  Hu.displayName = "Icon";
@@ -9954,7 +9954,7 @@ const bt = z(({
9954
9954
  variant: r,
9955
9955
  ...o
9956
9956
  }, s) => {
9957
- const i = N(
9957
+ const i = I(
9958
9958
  He.List,
9959
9959
  {
9960
9960
  [He[`List--${n}`]]: n,
@@ -10035,7 +10035,7 @@ const Gu = ({ className: e, ...t }) => /* @__PURE__ */ l.jsx(
10035
10035
  {
10036
10036
  role: "navigation",
10037
10037
  "aria-label": "pagination",
10038
- className: N(yt.Navigation, e),
10038
+ className: I(yt.Navigation, e),
10039
10039
  ...t
10040
10040
  }
10041
10041
  );
@@ -10044,7 +10044,7 @@ const zu = d.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
10044
10044
  "ul",
10045
10045
  {
10046
10046
  ref: n,
10047
- className: N(yt.PaginationContent, e),
10047
+ className: I(yt.PaginationContent, e),
10048
10048
  ...t
10049
10049
  }
10050
10050
  ));
@@ -10059,7 +10059,7 @@ const Eo = ({
10059
10059
  "a",
10060
10060
  {
10061
10061
  "aria-current": t ? "page" : void 0,
10062
- className: N(yt.PaginationLink, t && yt.Active, e),
10062
+ className: I(yt.PaginationLink, t && yt.Active, e),
10063
10063
  ...n
10064
10064
  }
10065
10065
  );
@@ -10072,7 +10072,7 @@ const Ku = ({
10072
10072
  Eo,
10073
10073
  {
10074
10074
  "aria-label": "Go to previous page",
10075
- className: N(t && yt.Disabled, yt.Prev, e),
10075
+ className: I(t && yt.Disabled, yt.Prev, e),
10076
10076
  ...n,
10077
10077
  children: [
10078
10078
  /* @__PURE__ */ l.jsx(qu, {}),
@@ -10089,7 +10089,7 @@ const Qu = ({
10089
10089
  Eo,
10090
10090
  {
10091
10091
  "aria-label": "Go to next page",
10092
- className: N(t && yt.Disabled, yt.Next, e),
10092
+ className: I(t && yt.Disabled, yt.Next, e),
10093
10093
  ...n,
10094
10094
  children: [
10095
10095
  /* @__PURE__ */ l.jsx("span", { children: "Next" }),
@@ -10105,7 +10105,7 @@ const Yu = ({
10105
10105
  "span",
10106
10106
  {
10107
10107
  "aria-hidden": !0,
10108
- className: N(yt.PaginationEllipsis, e),
10108
+ className: I(yt.PaginationEllipsis, e),
10109
10109
  ...t,
10110
10110
  children: /* @__PURE__ */ l.jsx(di, {})
10111
10111
  }
@@ -10444,7 +10444,7 @@ const x3 = "TableContainer__osh6Z", S3 = "TableHeader__sYa-8", E3 = "Table__2cIs
10444
10444
  /* @__PURE__ */ l.jsx("defs", { children: /* @__PURE__ */ l.jsx("clipPath", { id: "clip-path", children: /* @__PURE__ */ l.jsx("rect", { width: "64", height: "64", fill: "white" }) }) })
10445
10445
  ] });
10446
10446
  Ju.displayName = "EmptyStateIcon";
10447
- const ed = ({ message: e = "No results found" }) => /* @__PURE__ */ l.jsxs("div", { className: N(Fa.EmptyStateContainer), children: [
10447
+ const ed = ({ message: e = "No results found" }) => /* @__PURE__ */ l.jsxs("div", { className: I(Fa.EmptyStateContainer), children: [
10448
10448
  /* @__PURE__ */ l.jsx(Ju, {}),
10449
10449
  /* @__PURE__ */ l.jsx("p", { className: Fa.Message, children: e })
10450
10450
  ] });
@@ -10464,7 +10464,7 @@ const k3 = (e, t, n = 1) => {
10464
10464
  /* @__PURE__ */ l.jsx(Br, { children: /* @__PURE__ */ l.jsx(
10465
10465
  Ku,
10466
10466
  {
10467
- className: N({ [Re.PointerNone]: r }),
10467
+ className: I({ [Re.PointerNone]: r }),
10468
10468
  onClick: () => !r && n(e - 1)
10469
10469
  }
10470
10470
  ) }),
@@ -10475,7 +10475,7 @@ const k3 = (e, t, n = 1) => {
10475
10475
  /* @__PURE__ */ l.jsx(Br, { children: /* @__PURE__ */ l.jsx(
10476
10476
  Qu,
10477
10477
  {
10478
- className: N({ [Re.PointerNone]: o }),
10478
+ className: I({ [Re.PointerNone]: o }),
10479
10479
  onClick: () => !o && n(e + 1)
10480
10480
  }
10481
10481
  ) })
@@ -10504,7 +10504,7 @@ const $3 = ({ columns: e, data: t, isLoading: n, totalCount: r = 0, headerLabel:
10504
10504
  ...y ? { width: y, minWidth: y } : {},
10505
10505
  ...w ? { maxWidth: w } : {},
10506
10506
  overflow: "hidden"
10507
- }, g = (y) => N({
10507
+ }, g = (y) => I({
10508
10508
  [Re.Cell]: !0,
10509
10509
  [Re.Center]: y.align === "center",
10510
10510
  [Re.Right]: y.align === "right",
@@ -10512,7 +10512,7 @@ const $3 = ({ columns: e, data: t, isLoading: n, totalCount: r = 0, headerLabel:
10512
10512
  }), x = (y) => {
10513
10513
  if (!s) return "";
10514
10514
  const w = p(y);
10515
- return N({
10515
+ return I({
10516
10516
  [Re.SortIcon]: !0,
10517
10517
  [Re.Active]: y.isSortable && s.field === w,
10518
10518
  [Re.Rotate]: s.field === w && s.direction === "asc"
@@ -10552,7 +10552,7 @@ const F3 = "alert__LblpE", B3 = "destructive__bLNSM", U3 = "alertTitle__gblKf",
10552
10552
  {
10553
10553
  "data-slot": "alert",
10554
10554
  role: "alert",
10555
- className: N(eo.alert, eo[t], e),
10555
+ className: I(eo.alert, eo[t], e),
10556
10556
  ...r,
10557
10557
  children: n
10558
10558
  }
@@ -10565,7 +10565,7 @@ const F3 = "alert__LblpE", B3 = "destructive__bLNSM", U3 = "alertTitle__gblKf",
10565
10565
  {
10566
10566
  ref: r,
10567
10567
  "data-slot": "alert-title",
10568
- className: N(eo.alertTitle, t),
10568
+ className: I(eo.alertTitle, t),
10569
10569
  ...n,
10570
10570
  children: e
10571
10571
  }
@@ -10578,7 +10578,7 @@ const F3 = "alert__LblpE", B3 = "destructive__bLNSM", U3 = "alertTitle__gblKf",
10578
10578
  {
10579
10579
  ref: r,
10580
10580
  "data-slot": "alert-description",
10581
- className: N(eo.alertDescription, t),
10581
+ className: I(eo.alertDescription, t),
10582
10582
  ...n,
10583
10583
  children: e
10584
10584
  }
@@ -10587,7 +10587,7 @@ fi.displayName = "Alert";
10587
10587
  fi.Title = H3;
10588
10588
  fi.Description = V3;
10589
10589
  const q3 = ({ isNavbarExpanded: e }) => {
10590
- const { theme: t, setTheme: n } = Fp(), r = () => n(t === "dark" ? "light" : "dark"), o = /* @__PURE__ */ l.jsxs("div", { className: N(Mo.container, e && Mo.expanded), onClick: r, children: [
10590
+ const { theme: t, setTheme: n } = Fp(), r = () => n(t === "dark" ? "light" : "dark"), o = /* @__PURE__ */ l.jsxs("div", { className: I(Mo.container, e && Mo.expanded), onClick: r, children: [
10591
10591
  t === "light" ? /* @__PURE__ */ l.jsx($c, {}) : /* @__PURE__ */ l.jsx(Fc, {}),
10592
10592
  e && /* @__PURE__ */ l.jsx("p", { className: Mo.label, children: t === "light" ? "Dark Mode" : "Light Mode" })
10593
10593
  ] });
@@ -10884,23 +10884,27 @@ const Go = {
10884
10884
  children: e
10885
10885
  }) => {
10886
10886
  const t = gf("@bluealba/pae-rooms-service"), [n, r] = ae([]), [o, s] = ae("loading"), i = tt(null), a = tt(!1), c = tt(0), u = tt(null), f = tt(!0), p = tt(() => {
10887
- }), m = ge((T) => new Promise((R, j) => {
10888
- const I = new WebSocket(T);
10887
+ }), m = ge((T) => new Promise((R, N) => {
10888
+ const j = new WebSocket(T);
10889
10889
  let D = !1;
10890
- I.onopen = () => {
10891
- D = !0, c.current = 0, f.current && s("connected"), R(I);
10892
- }, I.addEventListener("message", async (F) => {
10890
+ j.onopen = () => {
10891
+ D = !0, c.current = 0, f.current && s("connected"), R(j);
10892
+ }, j.addEventListener("message", async (F) => {
10893
10893
  try {
10894
10894
  const B = await h(F);
10895
10895
  B.event === Go.USER_LIST && S(B.data);
10896
10896
  } catch (B) {
10897
10897
  console.error("Error parsing WebSocket message:", B);
10898
10898
  }
10899
- }), I.onerror = (F) => {
10899
+ }), j.onerror = (F) => {
10900
10900
  console.error("Rooms WebSocket error", F);
10901
- }, I.onclose = () => {
10902
- a.current ? f.current && s("closed") : p.current(), D || j(new Error("WebSocket connection failed"));
10903
- }, i.current = I;
10901
+ }, j.onclose = () => {
10902
+ if (i.current !== j) {
10903
+ D || N(new Error("WebSocket connection replaced"));
10904
+ return;
10905
+ }
10906
+ a.current ? f.current && s("closed") : p.current(), D || N(new Error("WebSocket connection failed"));
10907
+ }, i.current = j;
10904
10908
  }), []), g = ge(() => {
10905
10909
  if (!t || !f.current) return;
10906
10910
  if (c.current >= rb) {
@@ -10942,25 +10946,14 @@ const Go = {
10942
10946
  return JSON.parse(R);
10943
10947
  } else
10944
10948
  return JSON.parse(T.data);
10945
- }, v = async (T, R) => {
10946
- let j = i.current;
10947
- if (!j || j.readyState === WebSocket.CLOSED || j.readyState === WebSocket.CLOSING) {
10948
- if (!t) {
10949
- console.warn("WebSocket URL not available. Unable to send message:", { event: T, payload: R });
10950
- return;
10951
- }
10952
- console.warn("WebSocket is closed. Attempting to reconnect..."), a.current = !0, s("loading");
10953
- try {
10954
- j = await m(t);
10955
- } catch {
10956
- console.error("Reconnection failed. Unable to send message:", { event: T, payload: R });
10957
- return;
10958
- } finally {
10959
- a.current = !1;
10960
- }
10949
+ }, v = (T, R) => {
10950
+ const N = i.current;
10951
+ if (!N || N.readyState !== WebSocket.OPEN) {
10952
+ console.warn("WebSocket is not open. Message will be sent after reconnection:", { event: T, payload: R });
10953
+ return;
10961
10954
  }
10962
- j.readyState === WebSocket.OPEN && setTimeout(() => {
10963
- j.send(JSON.stringify({ event: T, data: R }));
10955
+ setTimeout(() => {
10956
+ N.send(JSON.stringify({ event: T, data: R }));
10964
10957
  }, 100);
10965
10958
  }, y = (T) => {
10966
10959
  v(Go.JOIN_ROOM, { roomId: T });
@@ -11040,7 +11033,7 @@ const sb = "container__LbyGQ", ib = "avatarWrapper__HCQIZ", ab = "avatar__E453a"
11040
11033
  onUserClick: s
11041
11034
  }) => {
11042
11035
  const i = ub[n], a = Ve(() => e.slice(0, t), [e, t]), c = Ve(() => e.slice(t), [e, t]), u = Math.max(0, e.length - t), f = (p) => p.split(" ").map((m) => m[0]).join("").toUpperCase().slice(0, 2);
11043
- return /* @__PURE__ */ l.jsxs("div", { className: N(qn.container, o), children: [
11036
+ return /* @__PURE__ */ l.jsxs("div", { className: I(qn.container, o), children: [
11044
11037
  a.map((p, m) => /* @__PURE__ */ l.jsx(Jn, { tooltipContent: p.displayName, side: "bottom", children: /* @__PURE__ */ l.jsx(
11045
11038
  "div",
11046
11039
  {