@skalar-saas/design-system 0.1.95 → 0.1.97

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.mjs CHANGED
@@ -358,7 +358,7 @@ const Gr = S.memo(({
358
358
  ...N.panel,
359
359
  isResizing: u === w
360
360
  };
361
- }, [n, u]), C = Ge(() => ({
361
+ }, [n, u]), y = Ge(() => ({
362
362
  panels: n,
363
363
  onResizeStart: m,
364
364
  onResize: h,
@@ -367,7 +367,7 @@ const Gr = S.memo(({
367
367
  getPanelState: v,
368
368
  minCentralWidth: s,
369
369
  containerRef: d
370
- }), [n, m, h, p, x, v, s]), { leftPanels: b, rightPanels: g, mainContent: y } = Ge(() => {
370
+ }), [n, m, h, p, x, v, s]), { leftPanels: b, rightPanels: g, mainContent: C } = Ge(() => {
371
371
  const w = [], N = [];
372
372
  let I = null;
373
373
  return S.Children.forEach(t, (M) => {
@@ -383,7 +383,7 @@ const Gr = S.memo(({
383
383
  }
384
384
  }), { leftPanels: w, rightPanels: N, mainContent: I };
385
385
  }, [t]), k = u !== null;
386
- return /* @__PURE__ */ e(an.Provider, { value: C, children: /* @__PURE__ */ o(
386
+ return /* @__PURE__ */ e(an.Provider, { value: y, children: /* @__PURE__ */ o(
387
387
  "div",
388
388
  {
389
389
  ref: d,
@@ -397,7 +397,7 @@ const Gr = S.memo(({
397
397
  "data-resizing": k,
398
398
  children: [
399
399
  b,
400
- y,
400
+ C,
401
401
  g
402
402
  ]
403
403
  }
@@ -432,7 +432,7 @@ const sn = ({
432
432
  L ${h - 4} ${d - 4}
433
433
  Q ${h} ${d - 4}, ${h} ${d}
434
434
  L ${h} ${t}
435
- `, C = m ? (h + p) / 2 : (p + h) / 2, b = t / 2;
435
+ `, y = m ? (h + p) / 2 : (p + h) / 2, b = t / 2;
436
436
  return /* @__PURE__ */ o(
437
437
  "div",
438
438
  {
@@ -478,7 +478,7 @@ const sn = ({
478
478
  {
479
479
  className: "absolute flex flex-col gap-[2px] items-center",
480
480
  style: {
481
- left: C,
481
+ left: y,
482
482
  top: b,
483
483
  transform: "translate(-50%, -50%)"
484
484
  },
@@ -500,7 +500,7 @@ const sn = ({
500
500
  panelBg: a = "var(--surface-1)",
501
501
  className: s
502
502
  }) => {
503
- const { panels: l, onResizeStart: u, onResize: c, onResizeEnd: d, onCloseZoneChange: m, getPanelState: h, minCentralWidth: p, containerRef: x } = Zr(), v = h(t), C = B(!1), b = B(!1), g = B(null), y = B(!1), k = B(0), w = B(!1), N = B(null), [I, M] = H(500), T = B({
503
+ const { panels: l, onResizeStart: u, onResize: c, onResizeEnd: d, onCloseZoneChange: m, getPanelState: h, minCentralWidth: p, containerRef: x } = Zr(), v = h(t), y = B(!1), b = B(!1), g = B(null), C = B(!1), k = B(0), w = B(!1), N = B(null), [I, M] = H(500), T = B({
504
504
  side: n,
505
505
  oppositeSideWidth: 0,
506
506
  minCentralWidth: p,
@@ -519,7 +519,7 @@ const sn = ({
519
519
  const j = B(c), E = B(d), z = B(m);
520
520
  j.current = c, E.current = d, z.current = m;
521
521
  const O = J((_) => {
522
- C.current && (b.current = !0, !g.current && (g.current = requestAnimationFrame(() => {
522
+ y.current && (b.current = !0, !g.current && (g.current = requestAnimationFrame(() => {
523
523
  g.current = null;
524
524
  const G = x.current;
525
525
  if (!G) return;
@@ -532,15 +532,15 @@ const sn = ({
532
532
  Yn,
533
533
  er
534
534
  ), et = Ye < k.current && Or(Ye);
535
- et !== y.current && (y.current = et, z.current(t, et)), j.current(t, Ye);
535
+ et !== C.current && (C.current = et, z.current(t, et)), j.current(t, Ye);
536
536
  })));
537
537
  }, [t, x]), te = J(() => {
538
- if (!C.current) return;
539
- C.current = !1, document.body.style.userSelect = "", document.body.style.cursor = "";
540
- const _ = b.current && y.current, { panelState: G } = T.current;
541
- !_ && G && G.width < Pt(G.width) && j.current(t, Pt(G.width)), b.current = !1, y.current = !1, E.current(t, _), document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", te);
538
+ if (!y.current) return;
539
+ y.current = !1, document.body.style.userSelect = "", document.body.style.cursor = "";
540
+ const _ = b.current && C.current, { panelState: G } = T.current;
541
+ !_ && G && G.width < Pt(G.width) && j.current(t, Pt(G.width)), b.current = !1, C.current = !1, E.current(t, _), document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", te);
542
542
  }, [t, O]), oe = J(() => {
543
- C.current = !0, document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
543
+ y.current = !0, document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
544
544
  const { panelState: _ } = T.current;
545
545
  k.current = _?.width ?? 0, u(t), document.addEventListener("mousemove", O), document.addEventListener("mouseup", te);
546
546
  }, [t, O, te, u]);
@@ -669,9 +669,9 @@ function Js(t) {
669
669
  }, [s, r, i, u]);
670
670
  const d = J((b) => {
671
671
  l((g) => {
672
- const y = he(g, b);
673
- if (!y) return g;
674
- const { side: k, panel: w } = y;
672
+ const C = he(g, b);
673
+ if (!C) return g;
674
+ const { side: k, panel: w } = C;
675
675
  if (w.open)
676
676
  return {
677
677
  ...g,
@@ -711,14 +711,14 @@ function Js(t) {
711
711
  };
712
712
  });
713
713
  }, [a]), m = J((b, g) => {
714
- l((y) => {
715
- const k = he(y, b);
716
- if (!k) return y;
717
- const { side: w, panel: N } = k, M = y[w === "left" ? "right" : "left"].filter((L) => L.open).reduce((L, Z) => L + Z.width, 0), T = y[w].filter((L) => L.open && L.id !== b), V = T.reduce((L, Z) => L + Z.width, 0), D = 100 - M - X.minCentralPercent, P = g + V;
714
+ l((C) => {
715
+ const k = he(C, b);
716
+ if (!k) return C;
717
+ const { side: w, panel: N } = k, M = C[w === "left" ? "right" : "left"].filter((L) => L.open).reduce((L, Z) => L + Z.width, 0), T = C[w].filter((L) => L.open && L.id !== b), V = T.reduce((L, Z) => L + Z.width, 0), D = 100 - M - X.minCentralPercent, P = g + V;
718
718
  if (P <= D)
719
719
  return {
720
- ...y,
721
- [w]: y[w].map(
720
+ ...C,
721
+ [w]: C[w].map(
722
722
  (L) => L.id === b ? { ...L, width: g } : L
723
723
  )
724
724
  };
@@ -729,8 +729,8 @@ function Js(t) {
729
729
  V - L
730
730
  ), j = D - Z, E = Z / V;
731
731
  return {
732
- ...y,
733
- [w]: y[w].map((z) => {
732
+ ...C,
733
+ [w]: C[w].map((z) => {
734
734
  if (z.id === b)
735
735
  return { ...z, width: j };
736
736
  if (z.open) {
@@ -742,17 +742,17 @@ function Js(t) {
742
742
  };
743
743
  }
744
744
  return {
745
- ...y,
746
- [w]: y[w].map(
745
+ ...C,
746
+ [w]: C[w].map(
747
747
  (L) => L.id === b ? { ...L, width: Math.min(g, D - V) } : L
748
748
  )
749
749
  };
750
750
  });
751
751
  }, []), h = J((b) => {
752
752
  l((g) => {
753
- const y = he(g, b);
754
- if (!y || y.panel.open) return g;
755
- const { side: k } = y, w = k === "left" ? "right" : "left", N = a.get(b), I = typeof window < "u" ? window.innerWidth : 1920, M = N ? at(N.defaultWidth, I) : 20, T = g[w].filter((E) => E.open).reduce((E, z) => E + z.width, 0), V = g[k].filter((E) => E.open && E.id !== b), D = V.reduce((E, z) => E + z.width, 0), P = 100 - T - X.minCentralPercent;
753
+ const C = he(g, b);
754
+ if (!C || C.panel.open) return g;
755
+ const { side: k } = C, w = k === "left" ? "right" : "left", N = a.get(b), I = typeof window < "u" ? window.innerWidth : 1920, M = N ? at(N.defaultWidth, I) : 20, T = g[w].filter((E) => E.open).reduce((E, z) => E + z.width, 0), V = g[k].filter((E) => E.open && E.id !== b), D = V.reduce((E, z) => E + z.width, 0), P = 100 - T - X.minCentralPercent;
756
756
  if (D + M <= P)
757
757
  return {
758
758
  ...g,
@@ -785,9 +785,9 @@ function Js(t) {
785
785
  });
786
786
  }, [a]), p = J((b) => {
787
787
  l((g) => {
788
- const y = he(g, b);
789
- if (!y || !y.panel.open) return g;
790
- const { side: k } = y;
788
+ const C = he(g, b);
789
+ if (!C || !C.panel.open) return g;
790
+ const { side: k } = C;
791
791
  return {
792
792
  ...g,
793
793
  [k]: g[k].map(
@@ -796,22 +796,22 @@ function Js(t) {
796
796
  };
797
797
  });
798
798
  }, []), x = J((b, g) => {
799
- l((y) => {
800
- const k = he(y, b);
801
- if (!k) return y;
799
+ l((C) => {
800
+ const k = he(C, b);
801
+ if (!k) return C;
802
802
  const { side: w } = k;
803
803
  return {
804
- ...y,
805
- [w]: y[w].map(
804
+ ...C,
805
+ [w]: C[w].map(
806
806
  (N) => N.id === b ? { ...N, inCloseZone: g } : N
807
807
  )
808
808
  };
809
809
  });
810
810
  }, []), v = J((b) => {
811
811
  l((g) => {
812
- const y = he(g, b);
813
- if (!y) return g;
814
- const { side: k } = y;
812
+ const C = he(g, b);
813
+ if (!C) return g;
814
+ const { side: k } = C;
815
815
  return {
816
816
  ...g,
817
817
  [k]: g[k].map(
@@ -820,9 +820,9 @@ function Js(t) {
820
820
  };
821
821
  }), setTimeout(() => {
822
822
  l((g) => {
823
- const y = he(g, b);
824
- if (!y) return g;
825
- const { side: k } = y;
823
+ const C = he(g, b);
824
+ if (!C) return g;
825
+ const { side: k } = C;
826
826
  return {
827
827
  ...g,
828
828
  [k]: g[k].map(
@@ -831,31 +831,31 @@ function Js(t) {
831
831
  };
832
832
  });
833
833
  }, X.exitAnimationDuration);
834
- }, []), C = J(() => {
834
+ }, []), y = J(() => {
835
835
  const b = typeof window < "u" ? window.innerWidth : 1920;
836
836
  l(Tt(n, b));
837
837
  }, [n]);
838
838
  return q(() => {
839
839
  const b = [
840
- ...s.left.filter((y) => y.exiting),
841
- ...s.right.filter((y) => y.exiting)
840
+ ...s.left.filter((C) => C.exiting),
841
+ ...s.right.filter((C) => C.exiting)
842
842
  ];
843
843
  if (b.length === 0) return;
844
- const g = b.map((y) => setTimeout(() => {
844
+ const g = b.map((C) => setTimeout(() => {
845
845
  l((k) => {
846
- const w = he(k, y.id);
846
+ const w = he(k, C.id);
847
847
  if (!w) return k;
848
848
  const { side: N } = w;
849
849
  return {
850
850
  ...k,
851
851
  [N]: k[N].map(
852
- (I) => I.id === y.id && I.exiting ? { ...I, open: !1, exiting: !1 } : I
852
+ (I) => I.id === C.id && I.exiting ? { ...I, open: !1, exiting: !1 } : I
853
853
  )
854
854
  };
855
855
  });
856
856
  }, X.exitAnimationDuration));
857
857
  return () => {
858
- g.forEach((y) => clearTimeout(y));
858
+ g.forEach((C) => clearTimeout(C));
859
859
  };
860
860
  }, [s]), {
861
861
  panels: s,
@@ -863,7 +863,7 @@ function Js(t) {
863
863
  resizePanel: m,
864
864
  openPanel: h,
865
865
  closePanel: p,
866
- resetPanels: C,
866
+ resetPanels: y,
867
867
  handleCloseZoneChange: x,
868
868
  handlePanelClose: v
869
869
  };
@@ -885,7 +885,7 @@ const Xr = S.memo(({
885
885
  handleFillColor: x = "var(--surface-1)",
886
886
  onResize: v
887
887
  }) => {
888
- const [C, b] = H(!1), [g, y] = H(r), [k, w] = H(a), [N, I] = H(!1), M = B(!1), T = B({ clientX: 0, width: 0 }), V = B(null), [D, P] = H(0);
888
+ const [y, b] = H(!1), [g, C] = H(r), [k, w] = H(a), [N, I] = H(!1), M = B(!1), T = B({ clientX: 0, width: 0 }), V = B(null), [D, P] = H(0);
889
889
  q(() => {
890
890
  const Q = V.current;
891
891
  if (!Q) return;
@@ -898,11 +898,11 @@ const Xr = S.memo(({
898
898
  return _.observe(Q), () => _.disconnect();
899
899
  }, [g]), q(() => {
900
900
  if (r)
901
- y(!0), b(!1);
901
+ C(!0), b(!1);
902
902
  else if (g) {
903
903
  b(!0);
904
904
  const Q = setTimeout(() => {
905
- y(!1), b(!1), i?.();
905
+ C(!1), b(!1), i?.();
906
906
  }, l);
907
907
  return () => clearTimeout(Q);
908
908
  }
@@ -940,12 +940,12 @@ const Xr = S.memo(({
940
940
  className: f(
941
941
  "h-full overflow-hidden",
942
942
  d,
943
- C ? z : E
943
+ y ? z : E
944
944
  ),
945
945
  children: n
946
946
  }
947
947
  ),
948
- m && !C && /* @__PURE__ */ e(
948
+ m && !y && /* @__PURE__ */ e(
949
949
  "div",
950
950
  {
951
951
  className: f(
@@ -2049,9 +2049,9 @@ const fe = (t) => t !== void 0 && {
2049
2049
  borderRadius: p,
2050
2050
  color: x,
2051
2051
  loading: v = !1,
2052
- ...C
2052
+ ...y
2053
2053
  }, b) => {
2054
- const g = "group inline-flex items-center justify-center font-semibold rounded-6 transition-all duration-200 focus:outline-none disabled:cursor-not-allowed", y = "disabled:bg-surface-3 disabled:!text-disabled", k = {
2054
+ const g = "group inline-flex items-center justify-center font-semibold rounded-6 transition-all duration-200 focus:outline-none disabled:cursor-not-allowed", C = "disabled:bg-surface-3 disabled:!text-disabled", k = {
2055
2055
  brand: {
2056
2056
  primary: "bg-brand-primary-main text-white-uniform hover:bg-brand-primary-accent-3 active:bg-brand-primary-accent-3 focus:ring focus:ring-low-em",
2057
2057
  secondary: "bg-brand-primary-main-special text-white-uniform hover:bg-brand-primary-accent-special active:bg-brand-primary-accent-special focus:ring focus:ring-low-em"
@@ -2104,7 +2104,7 @@ const fe = (t) => t !== void 0 && {
2104
2104
  N[r],
2105
2105
  p && `rounded-[${p}]`,
2106
2106
  x,
2107
- y,
2107
+ C,
2108
2108
  c
2109
2109
  )), j = /* @__PURE__ */ o(ee, { children: [
2110
2110
  (i === "leading" || i === "both") && P && /* @__PURE__ */ e("span", { className: `group-disabled:!text-disabled ${T[r].leading}`, children: P }),
@@ -2112,7 +2112,7 @@ const fe = (t) => t !== void 0 && {
2112
2112
  i === "only" && P && /* @__PURE__ */ e("span", { className: "group-disabled:!text-disabled", children: P }),
2113
2113
  (i === "trailing" || i === "both") && W && /* @__PURE__ */ e("span", { className: `group-disabled:!text-disabled ${T[r].trailing}`, children: W })
2114
2114
  ] });
2115
- return /* @__PURE__ */ e("button", { ref: b, className: Z, disabled: u || v, ...C, children: v ? /* @__PURE__ */ o(ee, { children: [
2115
+ return /* @__PURE__ */ e("button", { ref: b, className: Z, disabled: u || v, ...y, children: v ? /* @__PURE__ */ o(ee, { children: [
2116
2116
  /* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(
2117
2117
  "span",
2118
2118
  {
@@ -2683,12 +2683,12 @@ const Cl = ({
2683
2683
  m((g) => !g);
2684
2684
  }, v = (g) => {
2685
2685
  g.disabled || (g.onClick(), m(!1));
2686
- }, C = () => {
2686
+ }, y = () => {
2687
2687
  m(!1);
2688
2688
  };
2689
2689
  q(() => {
2690
- const g = (y) => {
2691
- h.current && !h.current.contains(y.target) && m(!1);
2690
+ const g = (C) => {
2691
+ h.current && !h.current.contains(C.target) && m(!1);
2692
2692
  };
2693
2693
  if (d)
2694
2694
  return document.addEventListener("mousedown", g), () => {
@@ -2740,15 +2740,15 @@ const Cl = ({
2740
2740
  "div",
2741
2741
  {
2742
2742
  className: "fixed inset-0 z-10",
2743
- onClick: C
2743
+ onClick: y
2744
2744
  }
2745
2745
  ),
2746
2746
  d && /* @__PURE__ */ e("div", { className: f(
2747
2747
  "absolute z-20 w-[150px] bg-white border border-gray-100 rounded-[16px] shadow-lg overflow-hidden",
2748
2748
  b(),
2749
2749
  l
2750
- ), children: /* @__PURE__ */ e("div", { children: i.map((g, y) => /* @__PURE__ */ o(S.Fragment, { children: [
2751
- y > 0 && /* @__PURE__ */ e("div", { className: "border-t border-gray-100" }),
2750
+ ), children: /* @__PURE__ */ e("div", { children: i.map((g, C) => /* @__PURE__ */ o(S.Fragment, { children: [
2751
+ C > 0 && /* @__PURE__ */ e("div", { className: "border-t border-gray-100" }),
2752
2752
  /* @__PURE__ */ e(
2753
2753
  "button",
2754
2754
  {
@@ -2925,16 +2925,16 @@ const Cl = ({
2925
2925
  sm: { text: "text-[12px]", leadingGap: "mr-[2px]", trailingGap: "ml-[2px]" },
2926
2926
  md: { text: "text-[14px]", leadingGap: "mr-[4px]", trailingGap: "ml-[4px]" },
2927
2927
  lg: { text: "text-[16px]", leadingGap: "mr-[4px]", trailingGap: "ml-[4px]" }
2928
- }, C = {
2928
+ }, y = {
2929
2929
  xs: 12,
2930
2930
  sm: 12,
2931
2931
  md: 16,
2932
2932
  lg: 20
2933
2933
  }, b = s && i && S.isValidElement(i) ? S.cloneElement(i, {
2934
- size: C[n],
2934
+ size: y[n],
2935
2935
  color: "currentColor"
2936
2936
  }) : null, g = l && a && S.isValidElement(a) ? S.cloneElement(a, {
2937
- size: C[n],
2937
+ size: y[n],
2938
2938
  color: "currentColor"
2939
2939
  }) : null;
2940
2940
  return /* @__PURE__ */ o(
@@ -3173,8 +3173,8 @@ const fn = ({
3173
3173
  defaultCollapsed: l = !1,
3174
3174
  className: u
3175
3175
  }, c) => {
3176
- const p = n.length > 3 ? 150 : void 0, x = n.filter((y) => y.checked).length, v = n.length, C = v > 0 ? Math.round(x / v * 100) : 0, b = (y, k) => {
3177
- r?.(y, k);
3176
+ const p = n.length > 3 ? 150 : void 0, x = n.filter((C) => C.checked).length, v = n.length, y = v > 0 ? Math.round(x / v * 100) : 0, b = (C, k) => {
3177
+ r?.(C, k);
3178
3178
  };
3179
3179
  return /* @__PURE__ */ e(
3180
3180
  xt,
@@ -3188,7 +3188,7 @@ const fn = ({
3188
3188
  "/",
3189
3189
  v
3190
3190
  ] }),
3191
- /* @__PURE__ */ e(fn, { progress: C, variant: "none", className: "h-2" })
3191
+ /* @__PURE__ */ e(fn, { progress: y, variant: "none", className: "h-2" })
3192
3192
  ] }),
3193
3193
  isCollapsed: i,
3194
3194
  onToggle: a,
@@ -3200,27 +3200,27 @@ const fn = ({
3200
3200
  {
3201
3201
  className: "overflow-y-auto",
3202
3202
  style: p ? { maxHeight: `${p}px` } : void 0,
3203
- children: n.map((y, k) => /* @__PURE__ */ o(S.Fragment, { children: [
3203
+ children: n.map((C, k) => /* @__PURE__ */ o(S.Fragment, { children: [
3204
3204
  /* @__PURE__ */ o("label", { className: "flex items-center px-8 h-[50px] gap-6 cursor-pointer", children: [
3205
3205
  /* @__PURE__ */ e(
3206
3206
  ke,
3207
3207
  {
3208
3208
  size: "medium",
3209
- checked: y.checked,
3210
- disabled: y.disabled,
3211
- onChange: (w) => b(y.id, w.target.checked)
3209
+ checked: C.checked,
3210
+ disabled: C.disabled,
3211
+ onChange: (w) => b(C.id, w.target.checked)
3212
3212
  }
3213
3213
  ),
3214
3214
  /* @__PURE__ */ e(
3215
3215
  "span",
3216
3216
  {
3217
- className: f("text-xs font-semibold text-med-em flex-1", y.checked && "line-through"),
3218
- children: y.label
3217
+ className: f("text-xs font-semibold text-med-em flex-1", C.checked && "line-through"),
3218
+ children: C.label
3219
3219
  }
3220
3220
  )
3221
3221
  ] }),
3222
3222
  k < n.length - 1 && /* @__PURE__ */ e("div", { className: "h-px bg-surface-3" })
3223
- ] }, y.id))
3223
+ ] }, C.id))
3224
3224
  }
3225
3225
  )
3226
3226
  }
@@ -3311,12 +3311,12 @@ const Wa = {
3311
3311
  color: "currentColor"
3312
3312
  }) : null, v = (b) => {
3313
3313
  b.stopPropagation(), a && a(b);
3314
- }, C = () => {
3314
+ }, y = () => {
3315
3315
  const b = {
3316
3316
  xs: { left: "pl-4", right: "pr-4", both: "px-4" },
3317
3317
  sm: { left: "pl-6", right: "pr-6", both: "px-6" }
3318
- }, g = !!h, y = !!x;
3319
- return !g && !y ? b[n].both : !g && y ? b[n].left : g && !y ? b[n].right : "";
3318
+ }, g = !!h, C = !!x;
3319
+ return !g && !C ? b[n].both : !g && C ? b[n].left : g && !C ? b[n].right : "";
3320
3320
  };
3321
3321
  return /* @__PURE__ */ o(
3322
3322
  "button",
@@ -3327,7 +3327,7 @@ const Wa = {
3327
3327
  "focus:outline-none",
3328
3328
  u ? Aa : Wa[t],
3329
3329
  d.container,
3330
- C(),
3330
+ y(),
3331
3331
  l
3332
3332
  ),
3333
3333
  ...c,
@@ -3654,7 +3654,7 @@ const Wa = {
3654
3654
  h(b), d("items"), r?.(b.id);
3655
3655
  }, v = () => {
3656
3656
  d("categories"), h(null);
3657
- }, C = (b) => {
3657
+ }, y = (b) => {
3658
3658
  m && i?.(m.id, b.id);
3659
3659
  };
3660
3660
  return /* @__PURE__ */ o(
@@ -3709,7 +3709,7 @@ const Wa = {
3709
3709
  title: b.title,
3710
3710
  tag: b.tag,
3711
3711
  description: b.description,
3712
- onClick: () => C(b)
3712
+ onClick: () => y(b)
3713
3713
  },
3714
3714
  b.id
3715
3715
  ))
@@ -3966,13 +3966,13 @@ const Wa = {
3966
3966
  placeholderColor: p,
3967
3967
  multiline: x,
3968
3968
  customFontWeight: v,
3969
- fontSize: C,
3969
+ fontSize: y,
3970
3970
  customFontSize: b,
3971
3971
  hintIconVariant: g,
3972
- onInputClick: y,
3972
+ onInputClick: C,
3973
3973
  ...k
3974
3974
  }, w) => {
3975
- const N = qa[t], I = Qa[n], M = m === "password", [T, V] = H(!1), D = M && T ? "text" : m, P = b || C, W = {
3975
+ const N = qa[t], I = Qa[n], M = m === "password", [T, V] = H(!1), D = M && T ? "text" : m, P = b || y, W = {
3976
3976
  xs: "text-xs",
3977
3977
  sm: "text-sm",
3978
3978
  md: "text-base",
@@ -3982,7 +3982,7 @@ const Wa = {
3982
3982
  const ne = Q.currentTarget;
3983
3983
  ne.style.height = "auto", ne.style.height = `${ne.scrollHeight}px`, k.onChange && k.onChange(Q);
3984
3984
  }, E = h, z = E ? /^[a-z]+-[a-z0-9-]+$/i.test(E) ? `var(--${E})` : E : void 0, O = v || void 0, te = (Q) => {
3985
- y && (Q.preventDefault(), y());
3985
+ C && (Q.preventDefault(), C());
3986
3986
  }, oe = A(f(
3987
3987
  "w-full bg-transparent text-placeholder focus:outline-none",
3988
3988
  !x && "h-full",
@@ -3996,12 +3996,12 @@ const Wa = {
3996
3996
  L,
3997
3997
  a && I.inputPaddingLeftWithIcon,
3998
3998
  (s || M && !x) && I.inputPaddingRightWithIcon,
3999
- y && "cursor-pointer pointer-events-none"
3999
+ C && "cursor-pointer pointer-events-none"
4000
4000
  ));
4001
4001
  return /* @__PURE__ */ o(
4002
4002
  "div",
4003
4003
  {
4004
- className: A(f("flex flex-col gap-1.5", y && "cursor-pointer", d)),
4004
+ className: A(f("flex flex-col gap-1.5", C && "cursor-pointer", d)),
4005
4005
  onClick: te,
4006
4006
  children: [
4007
4007
  r && /* @__PURE__ */ e("label", { htmlFor: k.id, className: A(f("font-semibold text-med-em pl-[2px]", I.labelFontSize)), children: r }),
@@ -4173,10 +4173,10 @@ const Xa = {
4173
4173
  customBackgroundColor: p,
4174
4174
  customHoverColor: x,
4175
4175
  customLeadingIconColor: v,
4176
- checked: C = !1,
4176
+ checked: y = !1,
4177
4177
  indeterminate: b = !1,
4178
4178
  onCheckboxChange: g,
4179
- leadingImageUrl: y,
4179
+ leadingImageUrl: C,
4180
4180
  leadingImageAlt: k = "List item image",
4181
4181
  leadingIcon: w,
4182
4182
  trailingIcon: N,
@@ -4214,18 +4214,18 @@ const Xa = {
4214
4214
  ke,
4215
4215
  {
4216
4216
  size: L.checkbox,
4217
- checked: C,
4217
+ checked: y,
4218
4218
  indeterminate: b,
4219
4219
  onChange: j,
4220
4220
  disabled: n
4221
4221
  }
4222
4222
  ) }),
4223
4223
  /* @__PURE__ */ o("div", { className: A(f("flex items-center", L.middleGap), D), children: [
4224
- i && y && /* @__PURE__ */ e("div", { className: f("shrink-0", n && "opacity-50"), children: /* @__PURE__ */ e(
4224
+ i && C && /* @__PURE__ */ e("div", { className: f("shrink-0", n && "opacity-50"), children: /* @__PURE__ */ e(
4225
4225
  F,
4226
4226
  {
4227
4227
  size: L.leadingImage,
4228
- imageUrl: y,
4228
+ imageUrl: C,
4229
4229
  alt: k
4230
4230
  }
4231
4231
  ) }),
@@ -4310,14 +4310,14 @@ const Xa = {
4310
4310
  if (!h) return;
4311
4311
  const b = () => {
4312
4312
  if (!u?.current || !p.current) return;
4313
- const g = u.current.getBoundingClientRect(), y = p.current.getBoundingClientRect(), k = g.bottom + y.height + 8 > window.innerHeight ? g.top - y.height - 8 : g.bottom + 8, w = g.left + y.width > window.innerWidth ? g.right - y.width : g.left;
4313
+ const g = u.current.getBoundingClientRect(), C = p.current.getBoundingClientRect(), k = g.bottom + C.height + 8 > window.innerHeight ? g.top - C.height - 8 : g.bottom + 8, w = g.left + C.width > window.innerWidth ? g.right - C.width : g.left;
4314
4314
  v({ position: "fixed", top: k, left: w, visibility: "visible", zIndex: 50 });
4315
4315
  };
4316
4316
  return b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b), () => {
4317
4317
  window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
4318
4318
  };
4319
4319
  }, [u, h]);
4320
- const C = /* @__PURE__ */ o(
4320
+ const y = /* @__PURE__ */ o(
4321
4321
  "div",
4322
4322
  {
4323
4323
  ref: p,
@@ -4354,14 +4354,14 @@ const Xa = {
4354
4354
  /* @__PURE__ */ e("div", { className: "border-t border-surface-3" })
4355
4355
  ] }),
4356
4356
  t.map((b, g) => {
4357
- const { id: y, showDividerAfter: k, onClick: w, onSelect: N, customBackgroundColor: I, customHoverColor: M, ...T } = b, V = y ? a.includes(y) : !1, D = g === t.length - 1;
4357
+ const { id: C, showDividerAfter: k, onClick: w, onSelect: N, customBackgroundColor: I, customHoverColor: M, ...T } = b, V = C ? a.includes(C) : !1, D = g === t.length - 1;
4358
4358
  return /* @__PURE__ */ o(S.Fragment, { children: [
4359
4359
  /* @__PURE__ */ e(
4360
4360
  ot,
4361
4361
  {
4362
4362
  size: i,
4363
4363
  onClick: (P) => {
4364
- N?.(), y && s?.(y), w?.(P);
4364
+ N?.(), C && s?.(C), w?.(P);
4365
4365
  },
4366
4366
  customBackgroundColor: I || "bg-surface-bg",
4367
4367
  customHoverColor: M || "hover:bg-surface-2",
@@ -4375,12 +4375,12 @@ const Xa = {
4375
4375
  }
4376
4376
  ),
4377
4377
  k && !D && /* @__PURE__ */ e("div", { className: "border-t border-surface-3" })
4378
- ] }, y || g);
4378
+ ] }, C || g);
4379
4379
  })
4380
4380
  ]
4381
4381
  }
4382
4382
  );
4383
- return h && typeof document < "u" ? Yt(C, document.body) : C;
4383
+ return h && typeof document < "u" ? Yt(y, document.body) : y;
4384
4384
  }, Ka = ({
4385
4385
  id: t,
4386
4386
  title: n,
@@ -4504,7 +4504,7 @@ const Xa = {
4504
4504
  u(x), a?.(x);
4505
4505
  }, m = (p, x) => x.length === 0 ? null : /* @__PURE__ */ o("div", { children: [
4506
4506
  /* @__PURE__ */ e("div", { className: "px-8 py-8", children: /* @__PURE__ */ e("h3", { className: "text-xs font-semibold text-low-em", children: p }) }),
4507
- x.map((v, C) => /* @__PURE__ */ o(S.Fragment, { children: [
4507
+ x.map((v, y) => /* @__PURE__ */ o(S.Fragment, { children: [
4508
4508
  /* @__PURE__ */ e(
4509
4509
  Ka,
4510
4510
  {
@@ -4515,7 +4515,7 @@ const Xa = {
4515
4515
  onClick: () => n?.(v)
4516
4516
  }
4517
4517
  ),
4518
- C < x.length - 1 && /* @__PURE__ */ e("div", { className: "border-b border-surface-2" })
4518
+ y < x.length - 1 && /* @__PURE__ */ e("div", { className: "border-b border-surface-2" })
4519
4519
  ] }, v.id))
4520
4520
  ] }, p), h = c.today.length === 0 && c.last7Days.length === 0 && c.last30Days.length === 0 && c.last90Days.length === 0;
4521
4521
  return /* @__PURE__ */ o("div", { className: f("flex flex-col", i), children: [
@@ -4556,14 +4556,14 @@ const Xa = {
4556
4556
  }) => {
4557
4557
  const [c, d] = H("conversation"), m = B(null), h = 20, p = l * h, x = u * h;
4558
4558
  q(() => {
4559
- const C = m.current?.querySelector("textarea");
4560
- if (!C) return;
4561
- C.style.height = "0px", C.style.overflow = "hidden";
4562
- const b = C.scrollHeight, g = Math.max(p, Math.min(b, x));
4563
- C.style.height = `${g}px`, C.style.overflow = b > x ? "auto" : "hidden";
4559
+ const y = m.current?.querySelector("textarea");
4560
+ if (!y) return;
4561
+ y.style.height = "0px", y.style.overflow = "hidden";
4562
+ const b = y.scrollHeight, g = Math.max(p, Math.min(b, x));
4563
+ y.style.height = `${g}px`, y.style.overflow = b > x ? "auto" : "hidden";
4564
4564
  }, [t, p, x]);
4565
- const v = (C) => {
4566
- C.key === "Enter" && !C.shiftKey && (C.preventDefault(), r?.());
4565
+ const v = (y) => {
4566
+ y.key === "Enter" && !y.shiftKey && (y.preventDefault(), r?.());
4567
4567
  };
4568
4568
  return /* @__PURE__ */ o(
4569
4569
  "div",
@@ -4591,7 +4591,7 @@ const Xa = {
4591
4591
  variant: "default",
4592
4592
  placeholder: i,
4593
4593
  value: t,
4594
- onChange: (C) => n?.(C.target.value),
4594
+ onChange: (y) => n?.(y.target.value),
4595
4595
  onKeyDown: v,
4596
4596
  resize: "none",
4597
4597
  className: "[&_textarea]:!min-h-0"
@@ -4785,10 +4785,10 @@ const Xa = {
4785
4785
  onCloseClick: p,
4786
4786
  containerWidth: x = 0,
4787
4787
  historialItems: v = [],
4788
- onHistorialItemClick: C,
4788
+ onHistorialItemClick: y,
4789
4789
  historialSearchPlaceholder: b,
4790
4790
  onHistorialSearchChange: g,
4791
- historialEmptyState: y,
4791
+ historialEmptyState: C,
4792
4792
  showChatInput: k = !0,
4793
4793
  chatInputValue: w,
4794
4794
  onChatInputChange: N,
@@ -4827,10 +4827,10 @@ const Xa = {
4827
4827
  ti,
4828
4828
  {
4829
4829
  items: v,
4830
- onItemClick: C,
4830
+ onItemClick: y,
4831
4831
  searchPlaceholder: b,
4832
4832
  onSearchChange: g,
4833
- emptyState: y,
4833
+ emptyState: C,
4834
4834
  className: "flex-1 overflow-y-auto"
4835
4835
  }
4836
4836
  ) : /* @__PURE__ */ o(ee, { children: [
@@ -4931,13 +4931,13 @@ const oi = {
4931
4931
  size: void 0
4932
4932
  };
4933
4933
  return S.cloneElement(V, P);
4934
- }, p = !!l && r !== "disabled", x = !!a && c, v = !!s && d, C = oi[t], b = ci[r], g = di(n, r), y = A(
4934
+ }, p = !!l && r !== "disabled", x = !!a && c, v = !!s && d, y = oi[t], b = ci[r], g = di(n, r), C = A(
4935
4935
  // Base styles
4936
4936
  "inline-flex items-center border border-solid transition-all duration-150 rounded-full font-family-inter",
4937
4937
  // State styles
4938
4938
  b,
4939
4939
  // Size styles
4940
- C.container,
4940
+ y.container,
4941
4941
  // State specific styles (Sobreescribe los estilos de theme y size)
4942
4942
  g,
4943
4943
  // Interactive styles
@@ -4946,7 +4946,7 @@ const oi = {
4946
4946
  r === "drag" && "cursor-grabbing",
4947
4947
  // Custom classes
4948
4948
  u
4949
- ), k = "flex-shrink-0 inline-flex items-center justify-center", w = C.iconSize, N = C.gapValue, I = /* @__PURE__ */ e(
4949
+ ), k = "flex-shrink-0 inline-flex items-center justify-center", w = y.iconSize, N = y.gapValue, I = /* @__PURE__ */ e(
4950
4950
  "div",
4951
4951
  {
4952
4952
  className: k,
@@ -4972,7 +4972,7 @@ const oi = {
4972
4972
  return /* @__PURE__ */ o(
4973
4973
  "div",
4974
4974
  {
4975
- className: y,
4975
+ className: C,
4976
4976
  role: p ? "button" : "status",
4977
4977
  onClick: p ? l : void 0,
4978
4978
  tabIndex: p ? 0 : void 0,
@@ -5127,10 +5127,10 @@ const oi = {
5127
5127
  onChange: p,
5128
5128
  placeholder: x,
5129
5129
  className: v,
5130
- placeholderColor: C,
5130
+ placeholderColor: y,
5131
5131
  inputTextColor: b,
5132
5132
  backgroundColor: g,
5133
- chevronColor: y = "currentColor",
5133
+ chevronColor: C = "currentColor",
5134
5134
  optionActiveColor: k = "bg-primary-500",
5135
5135
  optionActiveTextColor: w = "text-white",
5136
5136
  optionTextColor: N = "text-gray-900",
@@ -5142,7 +5142,7 @@ const oi = {
5142
5142
  f(
5143
5143
  "w-full flex-1 bg-transparent focus:outline-none",
5144
5144
  V.input,
5145
- C,
5145
+ y,
5146
5146
  b
5147
5147
  )
5148
5148
  ), Z = A(
@@ -5170,7 +5170,7 @@ const oi = {
5170
5170
  displayValue: (j) => j?.label
5171
5171
  }
5172
5172
  ),
5173
- P.showTrailingChevron && !d && /* @__PURE__ */ e(He.Button, { className: f("flex items-center", { "w-full h-full justify-center": t === "only_icon" }), children: /* @__PURE__ */ e(je, { size: D.icon, color: y }) }),
5173
+ P.showTrailingChevron && !d && /* @__PURE__ */ e(He.Button, { className: f("flex items-center", { "w-full h-full justify-center": t === "only_icon" }), children: /* @__PURE__ */ e(je, { size: D.icon, color: C }) }),
5174
5174
  P.showTrailingAddon && d && /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: d })
5175
5175
  ] }),
5176
5176
  /* @__PURE__ */ e(He.Options, { className: "absolute z-10 mt-1 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm", children: W.length === 0 && M !== "" ? /* @__PURE__ */ e("div", { className: "relative cursor-default select-none px-4 py-2 text-gray-700", children: "Nothing found." }) : W.map((j) => /* @__PURE__ */ e(
@@ -5279,7 +5279,7 @@ const oi = {
5279
5279
  base: "text-base",
5280
5280
  lg: "text-lg",
5281
5281
  xl: "text-xl"
5282
- }, C = {
5282
+ }, y = {
5283
5283
  xs: 12,
5284
5284
  sm: 16,
5285
5285
  base: 18,
@@ -5290,7 +5290,7 @@ const oi = {
5290
5290
  medium: "font-medium",
5291
5291
  semibold: "font-semibold",
5292
5292
  bold: "font-bold"
5293
- }, g = v[d] || void 0, y = v[d] ? void 0 : d, k = l ?? C[d] ?? 20, w = !!p && x !== "disabled", N = A(
5293
+ }, g = v[d] || void 0, C = v[d] ? void 0 : d, k = l ?? y[d] ?? 20, w = !!p && x !== "disabled", N = A(
5294
5294
  f(
5295
5295
  "flex border border-surface-3 w-full items-center px-6 h-14 text-left text-sm font-medium transition-colors rounded-xl",
5296
5296
  // State-specific styles
@@ -5324,7 +5324,7 @@ const oi = {
5324
5324
  "span",
5325
5325
  {
5326
5326
  className: I,
5327
- style: y ? { fontSize: y } : void 0,
5327
+ style: C ? { fontSize: C } : void 0,
5328
5328
  children: t
5329
5329
  }
5330
5330
  ),
@@ -5425,10 +5425,10 @@ const xi = {
5425
5425
  customHeight: p,
5426
5426
  customRadius: x,
5427
5427
  customPlaceholderColor: v,
5428
- customBackgroundColor: C,
5428
+ customBackgroundColor: y,
5429
5429
  leadingIcon: b,
5430
5430
  showLeadingIcon: g = !0,
5431
- hintIconVariant: y,
5431
+ hintIconVariant: C,
5432
5432
  menuMinHeight: k
5433
5433
  }) => {
5434
5434
  const w = xi[t], N = bi[n], I = r || n, M = B(null), T = B(null), [V, D] = H(!1), [P, W] = H(null), [L, Z] = H(!1), j = s.find(($) => $.id === d);
@@ -5473,7 +5473,7 @@ const xi = {
5473
5473
  }, Q = () => {
5474
5474
  if (x)
5475
5475
  return { borderRadius: x };
5476
- }, ne = v?.startsWith("var(") ? { color: v } : void 0, _ = v && !v.startsWith("var(") ? v : void 0, G = C && !C.startsWith("#") && !C.startsWith("rgb") ? C : void 0, ce = C && (C.startsWith("#") || C.startsWith("rgb")) ? { backgroundColor: C } : void 0;
5476
+ }, ne = v?.startsWith("var(") ? { color: v } : void 0, _ = v && !v.startsWith("var(") ? v : void 0, G = y && !y.startsWith("#") && !y.startsWith("rgb") ? y : void 0, ce = y && (y.startsWith("#") || y.startsWith("rgb")) ? { backgroundColor: y } : void 0;
5477
5477
  return /* @__PURE__ */ o("div", { className: f("w-full flex flex-col gap-1.5", c), children: [
5478
5478
  i && /* @__PURE__ */ e(
5479
5479
  "label",
@@ -5500,7 +5500,7 @@ const xi = {
5500
5500
  "relative w-full cursor-default border text-left transition-colors duration-200 focus:outline-none focus-visible:ring-2",
5501
5501
  "flex items-center",
5502
5502
  !p && N.wrapper,
5503
- !C && w.wrapper,
5503
+ !y && w.wrapper,
5504
5504
  G,
5505
5505
  l && Le.wrapper,
5506
5506
  !x && "rounded-xl"
@@ -5581,7 +5581,7 @@ const xi = {
5581
5581
  a && /* @__PURE__ */ e(
5582
5582
  xe,
5583
5583
  {
5584
- icon: /* @__PURE__ */ e(Ae, { variant: y }),
5584
+ icon: /* @__PURE__ */ e(Ae, { variant: C }),
5585
5585
  label: a,
5586
5586
  iconSize: N.hintIconSize,
5587
5587
  gap: 1,
@@ -5984,7 +5984,7 @@ const Tl = ({
5984
5984
  ...x
5985
5985
  } = t, v = S.Children.toArray(l).find(
5986
5986
  (g) => S.isValidElement(g) && g.type === xn
5987
- ), C = S.Children.toArray(l).find(
5987
+ ), y = S.Children.toArray(l).find(
5988
5988
  (g) => S.isValidElement(g) && g.type === bn
5989
5989
  ), b = S.Children.toArray(l).find(
5990
5990
  (g) => S.isValidElement(g) && g.type === vn
@@ -6019,7 +6019,7 @@ const Tl = ({
6019
6019
  ]
6020
6020
  }
6021
6021
  ),
6022
- C && /* @__PURE__ */ e(
6022
+ y && /* @__PURE__ */ e(
6023
6023
  "div",
6024
6024
  {
6025
6025
  className: K(
@@ -6028,7 +6028,7 @@ const Tl = ({
6028
6028
  d !== void 0 ? "" : "flex-1"
6029
6029
  ),
6030
6030
  style: d !== void 0 ? { width: `${d}%` } : void 0,
6031
- children: C
6031
+ children: y
6032
6032
  }
6033
6033
  ),
6034
6034
  /* @__PURE__ */ e(
@@ -6216,7 +6216,7 @@ const Si = {
6216
6216
  disabled: l = !1,
6217
6217
  initialPreviewUrl: u
6218
6218
  }) => {
6219
- const c = B(null), d = B(0), [m, h] = H(!1), [p, x] = H(u || null), [v, C] = H(!1), [b, g] = H(null), y = Si[n], k = Li[r], w = (L) => {
6219
+ const c = B(null), d = B(0), [m, h] = H(!1), [p, x] = H(u || null), [v, y] = H(!1), [b, g] = H(null), C = Si[n], k = Li[r], w = (L) => {
6220
6220
  if (s && L.size > s) {
6221
6221
  const Z = (s / 1048576).toFixed(1);
6222
6222
  g(`File size must be less than ${Z}MB`);
@@ -6240,15 +6240,15 @@ const Si = {
6240
6240
  }, D = (L) => {
6241
6241
  L.stopPropagation(), c.current?.click();
6242
6242
  }, P = () => {
6243
- l || C(!0);
6243
+ l || y(!0);
6244
6244
  }, W = () => {
6245
- C(!1);
6245
+ y(!1);
6246
6246
  };
6247
6247
  return /* @__PURE__ */ e("div", { className: f("flex flex-col", i), children: /* @__PURE__ */ e(
6248
6248
  "div",
6249
6249
  {
6250
6250
  className: f(
6251
- y.container,
6251
+ C.container,
6252
6252
  k.container,
6253
6253
  l && Wt.container
6254
6254
  ),
@@ -6256,7 +6256,7 @@ const Si = {
6256
6256
  "div",
6257
6257
  {
6258
6258
  className: f(
6259
- y.dropZone,
6259
+ C.dropZone,
6260
6260
  k.dropZone,
6261
6261
  "cursor-pointer relative",
6262
6262
  l && Wt.dropZone,
@@ -6465,10 +6465,10 @@ const Ii = Y(
6465
6465
  name: p,
6466
6466
  autoComplete: x,
6467
6467
  maxLength: v,
6468
- required: C,
6468
+ required: y,
6469
6469
  onBlur: b,
6470
6470
  onFocus: g,
6471
- onInvalid: y,
6471
+ onInvalid: C,
6472
6472
  "aria-label": k = "Search",
6473
6473
  className: w,
6474
6474
  size: N,
@@ -6542,7 +6542,7 @@ const Ii = Y(
6542
6542
  onKeyDown: te,
6543
6543
  onFocus: oe,
6544
6544
  onBlur: b,
6545
- onInvalid: y,
6545
+ onInvalid: C,
6546
6546
  variant: _,
6547
6547
  hint: a,
6548
6548
  leadingIcon: /* @__PURE__ */ e(Fe, { color: "currentColor", size: 16 }),
@@ -6553,7 +6553,7 @@ const Ii = Y(
6553
6553
  name: p,
6554
6554
  autoComplete: x,
6555
6555
  maxLength: v,
6556
- required: C,
6556
+ required: y,
6557
6557
  "aria-label": k,
6558
6558
  ...I
6559
6559
  }
@@ -6648,8 +6648,8 @@ const Dl = ({
6648
6648
  }) => {
6649
6649
  if (c)
6650
6650
  return t;
6651
- const v = d || m, C = {};
6652
- return h && (C.backgroundColor = h), p && (C.color = p), x && (C.fontSize = x), /* @__PURE__ */ o(ie.Root, { delayDuration: u, children: [
6651
+ const v = d || m, y = {};
6652
+ return h && (y.backgroundColor = h), p && (y.color = p), x && (y.fontSize = x), /* @__PURE__ */ o(ie.Root, { delayDuration: u, children: [
6653
6653
  /* @__PURE__ */ e(ie.Trigger, { asChild: !0, children: t }),
6654
6654
  /* @__PURE__ */ e(ie.Portal, { children: /* @__PURE__ */ o(
6655
6655
  ie.Content,
@@ -6670,7 +6670,7 @@ const Dl = ({
6670
6670
  "data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade",
6671
6671
  s
6672
6672
  ),
6673
- style: Object.keys(C).length > 0 ? C : void 0,
6673
+ style: Object.keys(y).length > 0 ? y : void 0,
6674
6674
  children: [
6675
6675
  /* @__PURE__ */ o("div", { className: f(v && "flex flex-col gap-8"), children: [
6676
6676
  /* @__PURE__ */ e("div", { children: n }),
@@ -7215,12 +7215,12 @@ function Wi({
7215
7215
  recommendedIcon: p,
7216
7216
  loading: x = !1,
7217
7217
  ctaVariant: v = "neutral",
7218
- ctaHierarchy: C = "primary",
7218
+ ctaHierarchy: y = "primary",
7219
7219
  sectionColor: b = "bg-white",
7220
7220
  sectionTextColor: g,
7221
- className: y
7221
+ className: C
7222
7222
  }) {
7223
- return /* @__PURE__ */ o("div", { className: A(f("relative w-full flex flex-col", y)), children: [
7223
+ return /* @__PURE__ */ o("div", { className: A(f("relative w-full flex flex-col", C)), children: [
7224
7224
  m && /* @__PURE__ */ e("div", { className: "absolute -top-9 left-1/2 -translate-x-1/2 z-10 whitespace-nowrap", children: /* @__PURE__ */ e(we, { size: "lg", theme: "surface", variant: "outlined", children: /* @__PURE__ */ e(
7225
7225
  xe,
7226
7226
  {
@@ -7249,7 +7249,7 @@ function Wi({
7249
7249
  R,
7250
7250
  {
7251
7251
  variant: v,
7252
- hierarchy: C,
7252
+ hierarchy: y,
7253
7253
  size: "md",
7254
7254
  className: "w-full",
7255
7255
  onClick: l,
@@ -7358,16 +7358,16 @@ const St = ({
7358
7358
  link2Href: p,
7359
7359
  link2Status: x,
7360
7360
  onCardClick: v,
7361
- className: C,
7361
+ className: y,
7362
7362
  ...b
7363
7363
  }, g) => {
7364
- const y = f(
7364
+ const C = f(
7365
7365
  "flex flex-col overflow-hidden transition-all duration-200 w-full min-w-0 p-4 gap-3 border rounded-2xl border-surface-3",
7366
7366
  "bg-white",
7367
7367
  "p-6 md:p-8 gap-6 md:gap-8"
7368
7368
  ), k = A(f(
7369
- y,
7370
- C
7369
+ C,
7370
+ y
7371
7371
  ));
7372
7372
  return /* @__PURE__ */ o(
7373
7373
  "div",
@@ -7520,7 +7520,7 @@ const At = ({
7520
7520
  id: c,
7521
7521
  ...d
7522
7522
  }) => {
7523
- const m = Math.min(100, Math.max(0, t)), h = S.useId(), p = c || `progress-circle-${h}`, x = s ? `${p}-label` : void 0, v = tt[n], C = Ai[r], b = () => u || (s ? `Progreso: ${s}, ${m}% completado` : `Progreso: ${m}% completado`), g = v.size, y = (g - v.strokeWidth) / 2, k = 2 * Math.PI * y, w = k - m / 100 * k, N = () => i === "circle" ? tt[n].container : tt[n].halfCircle, I = () => /* @__PURE__ */ o(
7523
+ const m = Math.min(100, Math.max(0, t)), h = S.useId(), p = c || `progress-circle-${h}`, x = s ? `${p}-label` : void 0, v = tt[n], y = Ai[r], b = () => u || (s ? `Progreso: ${s}, ${m}% completado` : `Progreso: ${m}% completado`), g = v.size, C = (g - v.strokeWidth) / 2, k = 2 * Math.PI * C, w = k - m / 100 * k, N = () => i === "circle" ? tt[n].container : tt[n].halfCircle, I = () => /* @__PURE__ */ o(
7524
7524
  "svg",
7525
7525
  {
7526
7526
  width: g,
@@ -7540,12 +7540,12 @@ const At = ({
7540
7540
  {
7541
7541
  cx: g / 2,
7542
7542
  cy: g / 2,
7543
- r: y,
7543
+ r: C,
7544
7544
  stroke: "currentColor",
7545
7545
  strokeWidth: v.strokeWidth,
7546
7546
  fill: "none",
7547
- className: C.track,
7548
- opacity: C.opacity
7547
+ className: y.track,
7548
+ opacity: y.opacity
7549
7549
  }
7550
7550
  ),
7551
7551
  /* @__PURE__ */ e(
@@ -7553,11 +7553,11 @@ const At = ({
7553
7553
  {
7554
7554
  cx: g / 2,
7555
7555
  cy: g / 2,
7556
- r: y,
7556
+ r: C,
7557
7557
  stroke: "currentColor",
7558
7558
  strokeWidth: v.strokeWidth,
7559
7559
  fill: "none",
7560
- className: C.fill,
7560
+ className: y.fill,
7561
7561
  strokeDasharray: k,
7562
7562
  strokeDashoffset: w,
7563
7563
  strokeLinecap: "round",
@@ -7597,8 +7597,8 @@ const At = ({
7597
7597
  strokeLinejoin: "round",
7598
7598
  strokeWidth: v.strokeWidth,
7599
7599
  stroke: "currentColor",
7600
- className: C.track,
7601
- opacity: C.opacity
7600
+ className: y.track,
7601
+ opacity: y.opacity
7602
7602
  }
7603
7603
  ),
7604
7604
  /* @__PURE__ */ e(
@@ -7610,7 +7610,7 @@ const At = ({
7610
7610
  strokeLinejoin: "round",
7611
7611
  strokeWidth: v.strokeWidth,
7612
7612
  stroke: "currentColor",
7613
- className: C.fill,
7613
+ className: y.fill,
7614
7614
  strokeDasharray: E,
7615
7615
  strokeDashoffset: z,
7616
7616
  style: {
@@ -7648,7 +7648,7 @@ const At = ({
7648
7648
  id: x,
7649
7649
  className: f(
7650
7650
  v.labelFontSize,
7651
- C.label
7651
+ y.label
7652
7652
  ),
7653
7653
  children: s
7654
7654
  }
@@ -7659,7 +7659,7 @@ const At = ({
7659
7659
  className: f(
7660
7660
  v.fontSize,
7661
7661
  v.lineHeight,
7662
- C.progressLabel
7662
+ y.progressLabel
7663
7663
  ),
7664
7664
  style: { fontFamily: "var(--font-space-grotesk)" },
7665
7665
  children: `${m}%`
@@ -7683,7 +7683,7 @@ const At = ({
7683
7683
  id: x,
7684
7684
  className: f(
7685
7685
  v.labelFontSize,
7686
- C.label
7686
+ y.label
7687
7687
  ),
7688
7688
  children: s
7689
7689
  }
@@ -7694,7 +7694,7 @@ const At = ({
7694
7694
  className: f(
7695
7695
  v.fontSize,
7696
7696
  v.lineHeight,
7697
- C.progressLabel
7697
+ y.progressLabel
7698
7698
  ),
7699
7699
  style: { fontFamily: "var(--font-space-grotesk)" },
7700
7700
  children: `${m}%`
@@ -7727,20 +7727,20 @@ const At = ({
7727
7727
  const b = !h;
7728
7728
  p(b), c && c(b);
7729
7729
  }, v = S.useMemo(() => Array.from({ length: n }, (b, g) => {
7730
- const y = g + 1;
7730
+ const C = g + 1;
7731
7731
  let k;
7732
- return y < t ? k = 100 : k = 0, {
7732
+ return C < t ? k = 100 : k = 0, {
7733
7733
  progress: k,
7734
- description: i[g] || `Step ${y}`
7734
+ description: i[g] || `Step ${C}`
7735
7735
  };
7736
- }), [t, n, i]), C = n > 0 ? Math.round((t - 1) / n * 100 + r / n) : 0;
7736
+ }), [t, n, i]), y = n > 0 ? Math.round((t - 1) / n * 100 + r / n) : 0;
7737
7737
  return m ? /* @__PURE__ */ e(
7738
7738
  Ft,
7739
7739
  {
7740
- progress: C,
7740
+ progress: y,
7741
7741
  size: "xs",
7742
7742
  showLabel: !0,
7743
- ariaLabel: `Overall progress: ${C}%`,
7743
+ ariaLabel: `Overall progress: ${y}%`,
7744
7744
  className: l
7745
7745
  }
7746
7746
  ) : /* @__PURE__ */ o(
@@ -7803,10 +7803,10 @@ const At = ({
7803
7803
  /* @__PURE__ */ e(
7804
7804
  Ft,
7805
7805
  {
7806
- progress: C,
7806
+ progress: y,
7807
7807
  size: "xs",
7808
7808
  showLabel: !0,
7809
- ariaLabel: `Overall progress: ${C}%`
7809
+ ariaLabel: `Overall progress: ${y}%`
7810
7810
  }
7811
7811
  ),
7812
7812
  /* @__PURE__ */ e(
@@ -8074,7 +8074,7 @@ const At = ({
8074
8074
  }), [m, h] = S.useState(a.searchValue || ""), [p, x] = S.useState(() => ({
8075
8075
  pageIndex: (a.currentPage || 1) - 1,
8076
8076
  pageSize: a.itemsPerPage || 10
8077
- })), [v, C] = S.useState({});
8077
+ })), [v, y] = S.useState({});
8078
8078
  S.useEffect(() => {
8079
8079
  if (a.sortBy && a.sortDirection) {
8080
8080
  const w = [{ id: a.sortBy, desc: a.sortDirection === "desc" }];
@@ -8141,7 +8141,7 @@ const At = ({
8141
8141
  },
8142
8142
  enableColumnResizing: !0,
8143
8143
  columnResizeMode: "onChange",
8144
- onColumnSizingChange: C,
8144
+ onColumnSizingChange: y,
8145
8145
  defaultColumn: {
8146
8146
  minSize: 20,
8147
8147
  maxSize: Number.MAX_SAFE_INTEGER,
@@ -8180,7 +8180,7 @@ const At = ({
8180
8180
  manualPagination: !1,
8181
8181
  manualSorting: !1,
8182
8182
  getRowId: (w, N) => String(a.getRowId?.(w, N) ?? N)
8183
- }), y = S.useMemo(() => ({
8183
+ }), C = S.useMemo(() => ({
8184
8184
  dense: !1,
8185
8185
  cellBorder: !1,
8186
8186
  rowBorder: !0,
@@ -8198,7 +8198,7 @@ const At = ({
8198
8198
  };
8199
8199
  return /* @__PURE__ */ e(_i, { value: {
8200
8200
  table: g,
8201
- tableLayout: y,
8201
+ tableLayout: C,
8202
8202
  parentRef: s,
8203
8203
  emptyStateTitle: a.emptyStateTitle,
8204
8204
  emptyStateDescription: a.emptyStateDescription,
@@ -8576,13 +8576,13 @@ const At = ({
8576
8576
  l.setPageIndex(w);
8577
8577
  }, p = (k) => {
8578
8578
  l.setPageSize(Number(k));
8579
- }, x = () => l.previousPage(), v = () => l.nextPage(), C = l.getFilteredRowModel().rows.length, { total: b } = Xi(
8579
+ }, x = () => l.previousPage(), v = () => l.nextPage(), y = l.getFilteredRowModel().rows.length, { total: b } = Xi(
8580
8580
  u.pageIndex,
8581
8581
  u.pageSize,
8582
8582
  n,
8583
- C
8584
- ), g = Qi(i), y = u.pageSize;
8585
- return !t || C === 0 ? null : /* @__PURE__ */ o(
8583
+ y
8584
+ ), g = Qi(i), C = u.pageSize;
8585
+ return !t || y === 0 ? null : /* @__PURE__ */ o(
8586
8586
  "div",
8587
8587
  {
8588
8588
  className: f(
@@ -8599,7 +8599,7 @@ const At = ({
8599
8599
  className: "!w-[68px]",
8600
8600
  size: "sm",
8601
8601
  variant: "outlined",
8602
- value: String(y),
8602
+ value: String(C),
8603
8603
  items: g,
8604
8604
  onChange: p,
8605
8605
  showLeadingIcon: !1,
@@ -8860,8 +8860,8 @@ const At = ({
8860
8860
  {
8861
8861
  htmlFor: `column-${p.id}`,
8862
8862
  className: "ml-2 text-sm text-gray-700 cursor-pointer",
8863
- onClick: (C) => {
8864
- C.stopPropagation(), p.toggleVisibility();
8863
+ onClick: (y) => {
8864
+ y.stopPropagation(), p.toggleVisibility();
8865
8865
  },
8866
8866
  children: v
8867
8867
  }
@@ -8870,8 +8870,8 @@ const At = ({
8870
8870
  /* @__PURE__ */ e(
8871
8871
  "button",
8872
8872
  {
8873
- onClick: (C) => {
8874
- C.stopPropagation(), p.toggleVisibility();
8873
+ onClick: (y) => {
8874
+ y.stopPropagation(), p.toggleVisibility();
8875
8875
  },
8876
8876
  className: "p-1 rounded hover:bg-gray-200",
8877
8877
  children: x ? /* @__PURE__ */ e(Pe, { size: "16", className: "text-gray-600" }) : /* @__PURE__ */ e(Ve, { size: "16", className: "text-gray-400" })
@@ -9307,9 +9307,9 @@ const is = {
9307
9307
  tabPaddingX: p,
9308
9308
  tabListClassName: x
9309
9309
  }) => {
9310
- const v = t === "line-icons" || t === "only-icon" ? Gt.line : Gt[t], C = m ? v.list : v.list.replace(/border-b\s+border-surface-3/g, "").trim(), b = {};
9310
+ const v = t === "line-icons" || t === "only-icon" ? Gt.line : Gt[t], y = m ? v.list : v.list.replace(/border-b\s+border-surface-3/g, "").trim(), b = {};
9311
9311
  h && (b.height = `${h}px`, b.alignItems = "flex-end");
9312
- const g = () => typeof l == "number" ? "" : l in nt ? nt[l] : nt.sm, y = typeof l == "number" ? { marginTop: `${l}px` } : {}, k = u ? {
9312
+ const g = () => typeof l == "number" ? "" : l in nt ? nt[l] : nt.sm, C = typeof l == "number" ? { marginTop: `${l}px` } : {}, k = u ? {
9313
9313
  height: "100%",
9314
9314
  maxHeight: "100%",
9315
9315
  overflow: "hidden",
@@ -9328,7 +9328,7 @@ const is = {
9328
9328
  /* @__PURE__ */ e(
9329
9329
  ge.List,
9330
9330
  {
9331
- className: f(C, x),
9331
+ className: f(y, x),
9332
9332
  style: b,
9333
9333
  children: n.map((N) => /* @__PURE__ */ e(
9334
9334
  ge,
@@ -9375,8 +9375,8 @@ const is = {
9375
9375
  flex: 1,
9376
9376
  minHeight: 0,
9377
9377
  overflow: "hidden",
9378
- ...y
9379
- } : y,
9378
+ ...C
9379
+ } : C,
9380
9380
  children: n.map((N) => /* @__PURE__ */ e(
9381
9381
  ge.Panel,
9382
9382
  {
@@ -9408,21 +9408,21 @@ const is = {
9408
9408
  }) => {
9409
9409
  const d = B(null), [m, h] = H(!1), [p, x] = H(!1), v = () => {
9410
9410
  if (!d.current) return;
9411
- const { scrollLeft: g, scrollWidth: y, clientWidth: k } = d.current;
9412
- h(g > 0), x(g < y - k - 1);
9411
+ const { scrollLeft: g, scrollWidth: C, clientWidth: k } = d.current;
9412
+ h(g > 0), x(g < C - k - 1);
9413
9413
  };
9414
9414
  q(() => {
9415
9415
  v();
9416
9416
  const g = d.current;
9417
9417
  if (g) {
9418
9418
  g.addEventListener("scroll", v);
9419
- const y = new ResizeObserver(v);
9420
- return y.observe(g), () => {
9421
- g.removeEventListener("scroll", v), y.disconnect();
9419
+ const C = new ResizeObserver(v);
9420
+ return C.observe(g), () => {
9421
+ g.removeEventListener("scroll", v), C.disconnect();
9422
9422
  };
9423
9423
  }
9424
9424
  }, [t]);
9425
- const C = () => {
9425
+ const y = () => {
9426
9426
  d.current && d.current.scrollBy({ left: -c, behavior: "smooth" });
9427
9427
  }, b = () => {
9428
9428
  d.current && d.current.scrollBy({ left: c, behavior: "smooth" });
@@ -9431,7 +9431,7 @@ const is = {
9431
9431
  m && /* @__PURE__ */ e(
9432
9432
  "button",
9433
9433
  {
9434
- onClick: C,
9434
+ onClick: y,
9435
9435
  className: "h-full hover:bg-surface-bg cursor-pointer px-6 border-r border-surface-3 shrink-0",
9436
9436
  "aria-label": "Scroll left",
9437
9437
  children: /* @__PURE__ */ e(F, { className: "text-med-em", size: "xs", children: /* @__PURE__ */ e(qe, {}) })
@@ -9442,7 +9442,7 @@ const is = {
9442
9442
  {
9443
9443
  ref: d,
9444
9444
  className: "flex-1 h-full w-full overflow-x-auto [&::-webkit-scrollbar]:!hidden [-ms-overflow-style:none!important] [scrollbar-width:none!important]",
9445
- children: /* @__PURE__ */ e(ge.List, { className: "flex min-w-full h-full ", children: t.map((g, y) => /* @__PURE__ */ e(
9445
+ children: /* @__PURE__ */ e(ge.List, { className: "flex min-w-full h-full ", children: t.map((g, C) => /* @__PURE__ */ e(
9446
9446
  ge,
9447
9447
  {
9448
9448
  as: "div",
@@ -9453,14 +9453,14 @@ const is = {
9453
9453
  u ? "" : "flex-1",
9454
9454
  k ? "text-high-em bg-white after:absolute border-b-2 border-b-black" : "text-low-em bg-surface-bg hover:bg-surface-2"
9455
9455
  ),
9456
- style: u ? { width: `${u}px`, minWidth: `${u}px` } : void 0,
9456
+ style: u ? r === C ? { minWidth: `${u}px` } : { width: `${u}px`, minWidth: `${u}px` } : void 0,
9457
9457
  children: ({ selected: k }) => /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-8 p-8 w-full", children: [
9458
9458
  /* @__PURE__ */ e("span", { className: `!truncate text-sm text-high-em font-medium ${k ? "text-high-em" : "text-low-em"}`, children: g.label }),
9459
9459
  g.closeable && k && l && /* @__PURE__ */ e(
9460
9460
  R,
9461
9461
  {
9462
9462
  onClick: (w) => {
9463
- w.stopPropagation(), l(y);
9463
+ w.stopPropagation(), l(C);
9464
9464
  },
9465
9465
  className: "cursor-pointer",
9466
9466
  leadingIcon: /* @__PURE__ */ e(F, { size: "xs", className: "text-med-em", children: /* @__PURE__ */ e(be, {}) }),
@@ -9537,7 +9537,7 @@ const hs = {
9537
9537
  customBackground: d,
9538
9538
  ...m
9539
9539
  }) => {
9540
- const h = hs[t], p = us[n], x = c || void 0, v = d ? /^[a-z]+-[a-z0-9-]+$/i.test(d) ? `var(--${d})` : d : void 0, C = {
9540
+ const h = hs[t], p = us[n], x = c || void 0, v = d ? /^[a-z]+-[a-z0-9-]+$/i.test(d) ? `var(--${d})` : d : void 0, y = {
9541
9541
  none: "resize-none",
9542
9542
  vertical: "resize-y",
9543
9543
  horizontal: "resize-x",
@@ -9565,7 +9565,7 @@ const hs = {
9565
9565
  !c && "font-medium",
9566
9566
  h.text,
9567
9567
  h.placeholder,
9568
- C[l],
9568
+ y[l],
9569
9569
  s && Me.text,
9570
9570
  s && Me.placeholder
9571
9571
  ),
@@ -9955,7 +9955,7 @@ const eo = ({
9955
9955
  placeholder: u = "All",
9956
9956
  showLabel: c = !0
9957
9957
  }) => {
9958
- const [d, m] = H("basicos"), [h, p] = H("list"), x = n !== void 0 ? n : d, v = i !== void 0 ? i : h, C = (g) => {
9958
+ const [d, m] = H("basicos"), [h, p] = H("list"), x = n !== void 0 ? n : d, v = i !== void 0 ? i : h, y = (g) => {
9959
9959
  r ? r(g) : m(g);
9960
9960
  }, b = (g) => {
9961
9961
  a ? a(g) : p(g);
@@ -9993,7 +9993,7 @@ const eo = ({
9993
9993
  className: "!h-[34px]"
9994
9994
  })),
9995
9995
  value: x,
9996
- onChange: C,
9996
+ onChange: y,
9997
9997
  placeholder: u,
9998
9998
  size: "md",
9999
9999
  menuSize: "sm",
@@ -10029,7 +10029,7 @@ const eo = ({
10029
10029
  r ? r(g) : d(g);
10030
10030
  },
10031
10031
  [r]
10032
- ), C = (b) => {
10032
+ ), y = (b) => {
10033
10033
  s ? s(b) : h(b);
10034
10034
  };
10035
10035
  return /* @__PURE__ */ o("div", { className: `flex flex-col ${t}`, children: [
@@ -10050,7 +10050,7 @@ const eo = ({
10050
10050
  {
10051
10051
  options: l,
10052
10052
  value: x,
10053
- onChange: C,
10053
+ onChange: y,
10054
10054
  size: u
10055
10055
  }
10056
10056
  )
@@ -10068,8 +10068,10 @@ const eo = ({
10068
10068
  className: f(
10069
10069
  // Layout
10070
10070
  "flex items-center gap-2",
10071
- // Sizing - fixed height 56px
10072
- "h-14 px-4",
10071
+ // Sizing fixed height 56px. We use the arbitrary value because the
10072
+ // DS spacing scale redefines `h-14` to 48px (--spacing-14), so a
10073
+ // plain `h-14` would no longer be 56px in this theme.
10074
+ "h-[56px] px-4",
10073
10075
  // Border
10074
10076
  "border-b border-surface-3",
10075
10077
  // Allow customization
@@ -10203,8 +10205,8 @@ const ao = ({
10203
10205
  {
10204
10206
  size: "small",
10205
10207
  checked: v.switch.checked,
10206
- onChange: (C) => h(v, C.target.checked),
10207
- onClick: (C) => C.stopPropagation()
10208
+ onChange: (y) => h(v, y.target.checked),
10209
+ onClick: (y) => y.stopPropagation()
10208
10210
  }
10209
10211
  )
10210
10212
  ]
@@ -10237,7 +10239,7 @@ const ao = ({
10237
10239
  h(g), n && n(g);
10238
10240
  }, v = () => {
10239
10241
  h(void 0), i && i();
10240
- }, C = () => {
10242
+ }, y = () => {
10241
10243
  a && a(p);
10242
10244
  }, b = l === "range" ? {
10243
10245
  mode: "range",
@@ -10291,7 +10293,7 @@ const ao = ({
10291
10293
  variant: "brand",
10292
10294
  size: "sm",
10293
10295
  hierarchy: "primary",
10294
- onClick: C,
10296
+ onClick: y,
10295
10297
  disabled: r,
10296
10298
  children: d
10297
10299
  }
@@ -10681,9 +10683,9 @@ const ao = ({
10681
10683
  classNameHeader: p,
10682
10684
  classNameBody: x,
10683
10685
  classNameFooter: v,
10684
- ...C
10686
+ ...y
10685
10687
  }) => {
10686
- const b = n || r || u || i, g = d || m, y = {
10688
+ const b = n || r || u || i, g = d || m, C = {
10687
10689
  default: "border-surface-3 ",
10688
10690
  danger: "bg-danger-accent-1 border-danger-accent-3",
10689
10691
  warning: "bg-warning-accent-1 border-warning-accent-3",
@@ -10695,9 +10697,9 @@ const ao = ({
10695
10697
  className: f(
10696
10698
  "flex flex-col bg-white border rounded-8 w-full",
10697
10699
  t,
10698
- y[h]
10700
+ C[h]
10699
10701
  ),
10700
- ...C,
10702
+ ...y,
10701
10703
  children: [
10702
10704
  b && /* @__PURE__ */ o(
10703
10705
  "div",
@@ -10730,7 +10732,7 @@ const ao = ({
10730
10732
  "flex flex-row gap-10 p-8 items-center rounded-b-8",
10731
10733
  d && m ? "justify-between" : m ? "justify-end" : "justify-start",
10732
10734
  (b || c) && "border-t",
10733
- y[h]
10735
+ C[h]
10734
10736
  ),
10735
10737
  v
10736
10738
  ),
@@ -10960,7 +10962,7 @@ const ao = ({
10960
10962
  value: "add",
10961
10963
  icon: /* @__PURE__ */ e(F, { size: 12, children: /* @__PURE__ */ e(We, {}) })
10962
10964
  }
10963
- ], C = [
10965
+ ], y = [
10964
10966
  {
10965
10967
  value: "copy",
10966
10968
  icon: /* @__PURE__ */ e(F, { size: 12, children: /* @__PURE__ */ e(ft, {}) })
@@ -10999,7 +11001,7 @@ const ao = ({
10999
11001
  default:
11000
11002
  return "grid-cols-1";
11001
11003
  }
11002
- }, y = (w, N) => w === "2-1" ? N === 0 ? "col-span-2" : "col-span-1" : w === "1-2" ? N === 0 ? "col-span-1" : "col-span-2" : "col-span-1", k = (w) => w === "1" ? 1 : w === "2" || w === "2-1" || w === "1-2" || w === "1-1" ? 2 : w === "3" ? 3 : 1;
11004
+ }, C = (w, N) => w === "2-1" ? N === 0 ? "col-span-2" : "col-span-1" : w === "1-2" ? N === 0 ? "col-span-1" : "col-span-2" : "col-span-1", k = (w) => w === "1" ? 1 : w === "2" || w === "2-1" || w === "1-2" || w === "1-1" ? 2 : w === "3" ? 3 : 1;
11003
11005
  return /* @__PURE__ */ o(
11004
11006
  "div",
11005
11007
  {
@@ -11023,7 +11025,7 @@ const ao = ({
11023
11025
  /* @__PURE__ */ e(
11024
11026
  Ce,
11025
11027
  {
11026
- options: C,
11028
+ options: y,
11027
11029
  value: u,
11028
11030
  onChange: x,
11029
11031
  size: "xs",
@@ -11039,7 +11041,7 @@ const ao = ({
11039
11041
  children: w.columns.map((N, I) => /* @__PURE__ */ e(
11040
11042
  "div",
11041
11043
  {
11042
- className: f(y(w.layout, I)),
11044
+ className: f(C(w.layout, I)),
11043
11045
  children: /* @__PURE__ */ e(Ns, { className: "h-full", onAction: w.onAction, children: N.widgets.sort((M, T) => M.position - T.position).map((M) => /* @__PURE__ */ e(
11044
11046
  ys,
11045
11047
  {
@@ -11167,13 +11169,13 @@ const ao = ({
11167
11169
  onSettings: a,
11168
11170
  className: s
11169
11171
  }) => {
11170
- const [l, u] = H(""), [c, d] = H(""), [m, h] = H(""), [p, x] = H(""), [v, C] = H(!1), [b, g] = H(!1), y = t === "signup";
11172
+ const [l, u] = H(""), [c, d] = H(""), [m, h] = H(""), [p, x] = H(""), [v, y] = H(!1), [b, g] = H(!1), C = t === "signup";
11171
11173
  return /* @__PURE__ */ e(
11172
11174
  Te,
11173
11175
  {
11174
11176
  size: "1",
11175
11177
  className: s,
11176
- title: n ?? (y ? "Regístrarse" : "Iniciar sesión"),
11178
+ title: n ?? (C ? "Regístrarse" : "Iniciar sesión"),
11177
11179
  actions: r === null ? void 0 : r ?? /* @__PURE__ */ e(
11178
11180
  R,
11179
11181
  {
@@ -11193,17 +11195,17 @@ const ao = ({
11193
11195
  const N = {
11194
11196
  email: c,
11195
11197
  password: m,
11196
- ...y && { name: l, confirmPassword: p }
11198
+ ...C && { name: l, confirmPassword: p }
11197
11199
  };
11198
11200
  i?.(N);
11199
11201
  },
11200
11202
  className: "flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74",
11201
11203
  children: [
11202
- !y && /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: [
11204
+ !C && /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: [
11203
11205
  /* @__PURE__ */ e("h2", { className: "text-high-em font-semibold text-2xl self-center", children: "¡Automatiza!" }),
11204
11206
  /* @__PURE__ */ e("span", { className: "text-high-em text-md self-center", children: "Vende y gestiona con inteligencia" })
11205
11207
  ] }),
11206
- y && /* @__PURE__ */ e(
11208
+ C && /* @__PURE__ */ e(
11207
11209
  ae,
11208
11210
  {
11209
11211
  type: "text",
@@ -11232,27 +11234,27 @@ const ao = ({
11232
11234
  {
11233
11235
  type: v ? "text" : "password",
11234
11236
  name: "password",
11235
- autoComplete: y ? "new-password" : "current-password",
11237
+ autoComplete: C ? "new-password" : "current-password",
11236
11238
  value: m,
11237
11239
  onChange: (w) => h(w.target.value),
11238
- placeholder: y ? "Nueva contraseña" : "Contraseña",
11240
+ placeholder: C ? "Nueva contraseña" : "Contraseña",
11239
11241
  trailingIcon: /* @__PURE__ */ e(F, { children: v ? /* @__PURE__ */ e(
11240
11242
  Pe,
11241
11243
  {
11242
- onClick: () => C(!1),
11244
+ onClick: () => y(!1),
11243
11245
  className: "cursor-pointer"
11244
11246
  }
11245
11247
  ) : /* @__PURE__ */ e(
11246
11248
  Ve,
11247
11249
  {
11248
- onClick: () => C(!0),
11250
+ onClick: () => y(!0),
11249
11251
  className: "cursor-pointer"
11250
11252
  }
11251
11253
  ) }),
11252
11254
  required: !0
11253
11255
  }
11254
11256
  ),
11255
- y && /* @__PURE__ */ e(
11257
+ C && /* @__PURE__ */ e(
11256
11258
  ae,
11257
11259
  {
11258
11260
  type: b ? "text" : "password",
@@ -11396,8 +11398,8 @@ const ao = ({
11396
11398
  onClick: a
11397
11399
  }
11398
11400
  ),
11399
- children: /* @__PURE__ */ o("form", { onSubmit: (C) => {
11400
- C.preventDefault(), r?.(l, c);
11401
+ children: /* @__PURE__ */ o("form", { onSubmit: (y) => {
11402
+ y.preventDefault(), r?.(l, c);
11401
11403
  }, className: "flex flex-col gap-8 p-8 h-full mx-auto justify-center max-w-74", children: [
11402
11404
  /* @__PURE__ */ e("h2", { className: "text-high-em font-semibold text-2xl self-center", children: "Cambiar contraseña" }),
11403
11405
  /* @__PURE__ */ e(
@@ -11405,7 +11407,7 @@ const ao = ({
11405
11407
  {
11406
11408
  type: m ? "text" : "password",
11407
11409
  value: l,
11408
- onChange: (C) => u(C.target.value),
11410
+ onChange: (y) => u(y.target.value),
11409
11411
  placeholder: "Nueva contraseña",
11410
11412
  trailingIcon: /* @__PURE__ */ e(F, { children: m ? /* @__PURE__ */ e(Pe, { onClick: () => h(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(Ve, { onClick: () => h(!0), className: "cursor-pointer" }) }),
11411
11413
  required: !0
@@ -11416,7 +11418,7 @@ const ao = ({
11416
11418
  {
11417
11419
  type: p ? "text" : "password",
11418
11420
  value: c,
11419
- onChange: (C) => d(C.target.value),
11421
+ onChange: (y) => d(y.target.value),
11420
11422
  placeholder: "Confirmar contraseña",
11421
11423
  trailingIcon: /* @__PURE__ */ e(F, { children: p ? /* @__PURE__ */ e(Pe, { onClick: () => x(!1), className: "cursor-pointer" }) : /* @__PURE__ */ e(Ve, { onClick: () => x(!0), className: "cursor-pointer" }) }),
11422
11424
  required: !0
@@ -11736,7 +11738,7 @@ const zs = S.forwardRef(
11736
11738
  innerRef: m,
11737
11739
  style: h
11738
11740
  }, p) => {
11739
- const [x, v] = S.useState(!1), C = x && u;
11741
+ const [x, v] = S.useState(!1), y = x && u;
11740
11742
  return /* @__PURE__ */ o(
11741
11743
  "div",
11742
11744
  {
@@ -11761,8 +11763,8 @@ const zs = S.forwardRef(
11761
11763
  {
11762
11764
  className: "flex items-center overflow-hidden transition-all duration-200 ease-out",
11763
11765
  style: {
11764
- width: C ? "28px" : "0px",
11765
- opacity: C ? 1 : 0
11766
+ width: y ? "28px" : "0px",
11767
+ opacity: y ? 1 : 0
11766
11768
  },
11767
11769
  children: /* @__PURE__ */ o(
11768
11770
  "div",
@@ -11926,7 +11928,7 @@ const Is = ({
11926
11928
  }) => {
11927
11929
  const [m, h] = H(""), p = t.filter(
11928
11930
  (b) => b.title.toLowerCase().includes(m.toLowerCase()) || b.description?.toLowerCase().includes(m.toLowerCase())
11929
- ), x = t.length, v = t.filter((b) => b.isVisible).length, C = (b) => {
11931
+ ), x = t.length, v = t.filter((b) => b.isVisible).length, y = (b) => {
11930
11932
  s?.(b);
11931
11933
  };
11932
11934
  return /* @__PURE__ */ e(ie.Provider, { delayDuration: 200, children: /* @__PURE__ */ o(
@@ -11979,7 +11981,7 @@ const Is = ({
11979
11981
  b.isVisible && "border border-surface-3",
11980
11982
  u
11981
11983
  ),
11982
- onClick: () => C(b)
11984
+ onClick: () => y(b)
11983
11985
  },
11984
11986
  b.id
11985
11987
  )) : /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center p-10 text-center gap-10", children: [