bonsaif-ui 0.1.88 → 0.1.89

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.
@@ -42,7 +42,7 @@ function Ls({
42
42
  size: c = "default",
43
43
  inputTabIndex: u
44
44
  }) {
45
- const m = ne(null), [f, p] = W(!1), b = l || f || e.trim().length > 0, N = c === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", y = a || "w-48 max-w-full sm:w-64 lg:w-72";
45
+ const m = ne(null), [f, p] = W(!1), b = l || f || e.trim().length > 0, N = c === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", w = a || "w-48 max-w-full sm:w-64 lg:w-72";
46
46
  ae(() => {
47
47
  var g;
48
48
  o && ((g = m.current) == null || g.focus());
@@ -54,7 +54,7 @@ function Ls({
54
54
  return /* @__PURE__ */ i(
55
55
  "div",
56
56
  {
57
- className: `relative min-w-0 max-w-full flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${b ? y : "w-24 sm:w-28"}`,
57
+ className: `relative min-w-0 max-w-full flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${b ? w : "w-24 sm:w-28"}`,
58
58
  onMouseDown: (g) => {
59
59
  b || (g.preventDefault(), k());
60
60
  },
@@ -161,7 +161,7 @@ function Hr({
161
161
  tooltipStyle: f,
162
162
  as: p = "div"
163
163
  }) {
164
- const b = ne(null), N = ne(null), y = ne(null), k = ne(!1), [g, C] = W(null), [D, M] = W("");
164
+ const b = ne(null), N = ne(null), w = ne(null), k = ne(!1), [g, C] = W(null), [D, M] = W("");
165
165
  ae(() => {
166
166
  const E = b.current;
167
167
  E && (E.querySelectorAll("[title]").forEach((V) => {
@@ -193,7 +193,7 @@ function Hr({
193
193
  );
194
194
  }, [o, l, g]);
195
195
  const H = () => {
196
- y.current && (window.clearTimeout(y.current), y.current = null);
196
+ w.current && (window.clearTimeout(w.current), w.current = null);
197
197
  }, $ = (E, V) => {
198
198
  if (!Ms() || k.current) return;
199
199
  const z = b.current;
@@ -217,7 +217,7 @@ function Hr({
217
217
  j();
218
218
  return;
219
219
  }
220
- H(), y.current = window.setTimeout(() => C(null), 120);
220
+ H(), w.current = window.setTimeout(() => C(null), 120);
221
221
  }, P = () => {
222
222
  hn(), k.current = !0, j();
223
223
  }, K = () => {
@@ -386,7 +386,7 @@ function Fe({
386
386
  style: p,
387
387
  ...b
388
388
  }) {
389
- const N = Ll(pi), y = l ?? N.iconOnly ?? e === "icon", k = N.compact ?? !1, g = N.headerAction ?? !1, C = g && r === "md" ? "sm" : k && !g && r === "md" ? "xs" : r, D = e === "icon" || y, M = g && D, H = Sa(u), $ = o ?? b.title ?? b["aria-label"] ?? (y ? H : void 0), S = $ ? void 0 : b.title, j = b["aria-label"] ?? (typeof $ == "string" ? $ : H || void 0), I = n ? null : a ?? (y ? Ps(u) : null), P = /* @__PURE__ */ i(
389
+ const N = Ll(pi), w = l ?? N.iconOnly ?? e === "icon", k = N.compact ?? !1, g = N.headerAction ?? !1, C = g && r === "md" ? "sm" : k && !g && r === "md" ? "xs" : r, D = e === "icon" || w, M = g && D, H = Sa(u), $ = o ?? b.title ?? b["aria-label"] ?? (w ? H : void 0), S = $ ? void 0 : b.title, j = b["aria-label"] ?? (typeof $ == "string" ? $ : H || void 0), I = n ? null : a ?? (w ? Ps(u) : null), P = /* @__PURE__ */ i(
390
390
  "button",
391
391
  {
392
392
  ...b,
@@ -417,7 +417,7 @@ function Fe({
417
417
  },
418
418
  children: [
419
419
  n ? /* @__PURE__ */ t("span", { className: "h-3.5 w-3.5 animate-spin rounded-full border-2 border-current border-t-transparent" }) : I,
420
- !y && u
420
+ !w && u
421
421
  ]
422
422
  }
423
423
  );
@@ -672,7 +672,7 @@ function Au({
672
672
  canAccess: p,
673
673
  keepAlive: b = !0,
674
674
  title: N,
675
- subtitle: y,
675
+ subtitle: w,
676
676
  emptyState: k,
677
677
  loadingState: g,
678
678
  errorState: C = Ws,
@@ -763,7 +763,7 @@ function Au({
763
763
  ...X,
764
764
  [ie.service]: null
765
765
  }));
766
- }, w = {
766
+ }, y = {
767
767
  context: o,
768
768
  parent: a,
769
769
  links: l,
@@ -776,7 +776,7 @@ function Au({
776
776
  onSelectService: he,
777
777
  onOpenDetail: bt,
778
778
  onBackToList: pt
779
- }, q = n ? n(w) : r ? /* @__PURE__ */ t(r, { ...w }) : e;
779
+ }, q = n ? n(y) : r ? /* @__PURE__ */ t(r, { ...y }) : e;
780
780
  return /* @__PURE__ */ i(
781
781
  "section",
782
782
  {
@@ -794,10 +794,10 @@ function Au({
794
794
  {
795
795
  className: `relative min-w-0 overflow-visible rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${E}`,
796
796
  children: [
797
- (N || y || h || P) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ i("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
797
+ (N || w || h || P) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ i("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
798
798
  /* @__PURE__ */ i("div", { className: "min-w-0", children: [
799
799
  N && /* @__PURE__ */ t("h2", { className: "truncate text-sm font-semibold text-[var(--text-main)]", children: N }),
800
- y && /* @__PURE__ */ t("p", { className: "mt-1 line-clamp-2 text-xs text-[var(--text-muted)]", children: y })
800
+ w && /* @__PURE__ */ t("p", { className: "mt-1 line-clamp-2 text-xs text-[var(--text-muted)]", children: w })
801
801
  ] }),
802
802
  (h || P) && /* @__PURE__ */ i("div", { className: "flex min-w-0 flex-shrink-0 items-center justify-end gap-2", children: [
803
803
  P && /* @__PURE__ */ i("span", { className: "hidden text-xs font-semibold text-[var(--text-muted)] transition-opacity duration-200 sm:inline", children: [
@@ -1021,7 +1021,7 @@ function Du({
1021
1021
  const o = Ks(), s = xi(e || o), c = a === "popover", [u, m] = W(!1), f = ne(null), [p, b] = W({
1022
1022
  horizontal: "left",
1023
1023
  vertical: "bottom"
1024
- }), [N, y] = W(s.year), [k, g] = W(s.month), [C, D] = W("days"), M = 16, [H, $] = W(0), S = N - 7 + H, j = Array.from({ length: M }, (Y, T) => S + T);
1024
+ }), [N, w] = W(s.year), [k, g] = W(s.month), [C, D] = W("days"), M = 16, [H, $] = W(0), S = N - 7 + H, j = Array.from({ length: M }, (Y, T) => S + T);
1025
1025
  ae(() => {
1026
1026
  if (!c || !u || !f.current) return;
1027
1027
  const Y = f.current.getBoundingClientRect(), T = 8, Z = 280, le = 340, A = Y.left + Z > window.innerWidth - T, R = Y.right - Z >= T, te = Y.bottom + 8 + le > window.innerHeight - T, J = Y.top - 8 - le >= T;
@@ -1042,10 +1042,10 @@ function Du({
1042
1042
  };
1043
1043
  }, [c, u]);
1044
1044
  function I() {
1045
- k === 1 ? (y((Y) => Y - 1), g(12)) : g((Y) => Y - 1);
1045
+ k === 1 ? (w((Y) => Y - 1), g(12)) : g((Y) => Y - 1);
1046
1046
  }
1047
1047
  function P() {
1048
- k === 12 ? (y((Y) => Y + 1), g(1)) : g((Y) => Y + 1);
1048
+ k === 12 ? (w((Y) => Y + 1), g(1)) : g((Y) => Y + 1);
1049
1049
  }
1050
1050
  const K = new Date(N, k - 1, 1).getDay(), U = new Date(N, k, 0).getDate(), E = [
1051
1051
  ...Array(K).fill(null),
@@ -1236,7 +1236,7 @@ function Du({
1236
1236
  {
1237
1237
  type: "button",
1238
1238
  onClick: () => {
1239
- y(Y), D("days");
1239
+ w(Y), D("days");
1240
1240
  },
1241
1241
  style: {
1242
1242
  border: "none",
@@ -1454,7 +1454,7 @@ function wi({
1454
1454
  style: p,
1455
1455
  children: b,
1456
1456
  onClick: N,
1457
- type: y = "button",
1457
+ type: w = "button",
1458
1458
  ...k
1459
1459
  }) {
1460
1460
  const [g, C] = W(!1), D = ne(null);
@@ -1487,7 +1487,7 @@ function wi({
1487
1487
  "button",
1488
1488
  {
1489
1489
  ...k,
1490
- type: y,
1490
+ type: w,
1491
1491
  onClick: H,
1492
1492
  title: g ? a : n,
1493
1493
  "aria-label": k["aria-label"] ?? (g ? a : n),
@@ -1612,7 +1612,7 @@ function vr({
1612
1612
  style: p,
1613
1613
  dropdownMinWidth: b,
1614
1614
  height: N = 40,
1615
- padding: y = "0 10px",
1615
+ padding: w = "0 10px",
1616
1616
  searchable: k = !0,
1617
1617
  minOptionsForSearch: g = 6
1618
1618
  }) {
@@ -1865,7 +1865,7 @@ function vr({
1865
1865
  className: "flex w-full items-center gap-2 rounded-lg text-left text-sm transition-colors focus:outline-none",
1866
1866
  style: {
1867
1867
  height: la(N),
1868
- padding: la(y),
1868
+ padding: la(w),
1869
1869
  background: Y ? "transparent" : "var(--bg-input)",
1870
1870
  color: Q ? "var(--text-main)" : "var(--text-muted)",
1871
1871
  border: Y ? "1px solid transparent" : `1px solid ${T}`,
@@ -2022,7 +2022,7 @@ function Ni({
2022
2022
  closeOnBackdrop: p = !0,
2023
2023
  closeOnEscape: b = !0,
2024
2024
  showCloseButton: N = !0,
2025
- placement: y = "center",
2025
+ placement: w = "center",
2026
2026
  bodyClassName: k = "px-6 py-5",
2027
2027
  panelClassName: g = "",
2028
2028
  backdropClassName: C = tc,
@@ -2049,7 +2049,7 @@ function Ni({
2049
2049
  };
2050
2050
  return window.addEventListener("keydown", Q), () => window.removeEventListener("keydown", Q);
2051
2051
  }, [b, r, e]), !S) return null;
2052
- const U = n || a || o || l || N, E = m ?? ec[u], V = y === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", z = y === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", O = I ? "translateY(0) scale(1)" : y === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
2052
+ const U = n || a || o || l || N, E = m ?? ec[u], V = w === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", z = w === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", O = I ? "translateY(0) scale(1)" : w === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
2053
2053
  return ut(
2054
2054
  /* @__PURE__ */ i(
2055
2055
  "div",
@@ -2658,7 +2658,7 @@ function wc({
2658
2658
  expandedRowIds: p,
2659
2659
  defaultExpandedRowIds: b = [],
2660
2660
  onExpandedRowIdsChange: N,
2661
- expandOnRowClick: y = !1,
2661
+ expandOnRowClick: w = !1,
2662
2662
  selected: k,
2663
2663
  onToggleOne: g,
2664
2664
  onToggleAll: C,
@@ -2707,7 +2707,7 @@ rol IN (admin, employee)`,
2707
2707
  exportFilename: pt = "datos"
2708
2708
  }) {
2709
2709
  var mo;
2710
- const w = hc(pe, O), q = Object.values(w).some(Boolean), ce = e.map((d) => d.key).join(","), X = oe.join(","), Ee = ne(e), ve = ne(oe);
2710
+ const y = hc(pe, O), q = Object.values(y).some(Boolean), ce = e.map((d) => d.key).join(","), X = oe.join(","), Ee = ne(e), ve = ne(oe);
2711
2711
  Ee.current = e, ve.current = oe;
2712
2712
  const [Me, xe] = W(
2713
2713
  !O || !q
@@ -2792,7 +2792,7 @@ rol IN (admin, employee)`,
2792
2792
  Vt.current || (Vt.current = !0, (me = Je.current) == null || me.call(Je));
2793
2793
  };
2794
2794
  if (!O || !q) {
2795
- w.layout && Qt(B), Ke || ht(
2795
+ y.layout && Qt(B), Ke || ht(
2796
2796
  $t(
2797
2797
  v,
2798
2798
  d
@@ -2807,32 +2807,32 @@ rol IN (admin, employee)`,
2807
2807
  if (ko(we) && !ue) {
2808
2808
  const me = we, fe = Or(
2809
2809
  Zr.current ?? Ir()
2810
- ), be = Yr.current, zt = be === !1 ? 0 : be, kt = w.layout ? me == null ? void 0 : me.columnOrder : void 0, St = Array.isArray(kt) ? kt.filter((Ae) => B.includes(Ae)) : [], Et = B.filter((Ae) => !St.includes(Ae)), _t = St.length > 0 ? [...St, ...Et] : B, ir = Object.fromEntries(
2810
+ ), be = Yr.current, zt = be === !1 ? 0 : be, kt = y.layout ? me == null ? void 0 : me.columnOrder : void 0, St = Array.isArray(kt) ? kt.filter((Ae) => B.includes(Ae)) : [], Et = B.filter((Ae) => !St.includes(Ae)), _t = St.length > 0 ? [...St, ...Et] : B, ir = Object.fromEntries(
2811
2811
  d.map((Ae) => [
2812
2812
  Ae.key,
2813
2813
  et(Ae, Ct(Ae.width))
2814
2814
  ])
2815
- ), lr = w.layout ? (me == null ? void 0 : me.columnWidths) ?? {} : {}, Lr = Object.fromEntries(
2815
+ ), lr = y.layout ? (me == null ? void 0 : me.columnWidths) ?? {} : {}, Lr = Object.fromEntries(
2816
2816
  d.map((Ae) => [
2817
2817
  Ae.key,
2818
2818
  et(Ae, lr[Ae.key] ?? ir[Ae.key])
2819
2819
  ])
2820
2820
  ), sr = $t(
2821
- w.layout ? (me == null ? void 0 : me.hiddenColumnKeys) ?? v : v,
2821
+ y.layout ? (me == null ? void 0 : me.hiddenColumnKeys) ?? v : v,
2822
2822
  d
2823
2823
  );
2824
- if (w.layout && (Qt(_t), tr(Lr)), Ke || ht(sr), w.filters && (Kt(
2824
+ if (y.layout && (Qt(_t), tr(Lr)), Ke || ht(sr), y.filters && (Kt(
2825
2825
  Ar(me == null ? void 0 : me.filters, x)
2826
2826
  ), wr(
2827
2827
  Tr(
2828
2828
  me == null ? void 0 : me.conditionFilters,
2829
2829
  x
2830
2830
  )
2831
- )), w.sort) {
2831
+ )), y.sort) {
2832
2832
  const Ae = Mr(me == null ? void 0 : me.sort) ? me.sort : null;
2833
2833
  It(Ae && x.has(Ae.key) ? Ae : null);
2834
2834
  }
2835
- if (w.bql) {
2835
+ if (y.bql) {
2836
2836
  if (Xt.current !== O) {
2837
2837
  Xt.current = O;
2838
2838
  const Ae = typeof (me == null ? void 0 : me.bql) == "string" ? me.bql : h;
@@ -2844,7 +2844,7 @@ rol IN (admin, employee)`,
2844
2844
  ) : []
2845
2845
  );
2846
2846
  }
2847
- w.pagination && Bt.current !== O && (Bt.current = O, rn(
2847
+ y.pagination && Bt.current !== O && (Bt.current = O, rn(
2848
2848
  ca(
2849
2849
  me == null ? void 0 : me.pageSize,
2850
2850
  fe,
@@ -2867,32 +2867,32 @@ rol IN (admin, employee)`,
2867
2867
  fe
2868
2868
  ), zt = Or(
2869
2869
  Zr.current ?? Ir()
2870
- ), kt = Yr.current, St = kt === !1 ? 0 : kt, Et = w.layout ? be == null ? void 0 : be.columnOrder : void 0, _t = Array.isArray(Et) ? Et.filter((Oe) => B.includes(Oe)) : [], ir = B.filter((Oe) => !_t.includes(Oe)), lr = _t.length > 0 ? [..._t, ...ir] : B, Lr = Object.fromEntries(
2870
+ ), kt = Yr.current, St = kt === !1 ? 0 : kt, Et = y.layout ? be == null ? void 0 : be.columnOrder : void 0, _t = Array.isArray(Et) ? Et.filter((Oe) => B.includes(Oe)) : [], ir = B.filter((Oe) => !_t.includes(Oe)), lr = _t.length > 0 ? [..._t, ...ir] : B, Lr = Object.fromEntries(
2871
2871
  d.map((Oe) => [
2872
2872
  Oe.key,
2873
2873
  et(Oe, Ct(Oe.width))
2874
2874
  ])
2875
- ), sr = w.layout ? (be == null ? void 0 : be.columnWidths) ?? {} : {}, Ae = Object.fromEntries(
2875
+ ), sr = y.layout ? (be == null ? void 0 : be.columnWidths) ?? {} : {}, Ae = Object.fromEntries(
2876
2876
  d.map((Oe) => [
2877
2877
  Oe.key,
2878
2878
  et(Oe, sr[Oe.key] ?? Lr[Oe.key])
2879
2879
  ])
2880
2880
  ), cr = $t(
2881
- w.layout ? (be == null ? void 0 : be.hiddenColumnKeys) ?? v : v,
2881
+ y.layout ? (be == null ? void 0 : be.hiddenColumnKeys) ?? v : v,
2882
2882
  d
2883
2883
  );
2884
- if (w.layout && (Qt(lr), tr(Ae)), Ke || ht(cr), w.filters && (Kt(
2884
+ if (y.layout && (Qt(lr), tr(Ae)), Ke || ht(cr), y.filters && (Kt(
2885
2885
  Ar(be == null ? void 0 : be.filters, x)
2886
2886
  ), wr(
2887
2887
  Tr(
2888
2888
  be == null ? void 0 : be.conditionFilters,
2889
2889
  x
2890
2890
  )
2891
- )), w.sort) {
2891
+ )), y.sort) {
2892
2892
  const Oe = Mr(be == null ? void 0 : be.sort) ? be.sort : null;
2893
2893
  It(Oe && x.has(Oe.key) ? Oe : null);
2894
2894
  }
2895
- if (w.bql) {
2895
+ if (y.bql) {
2896
2896
  if (Xt.current !== O) {
2897
2897
  Xt.current = O;
2898
2898
  const Oe = typeof (be == null ? void 0 : be.bql) == "string" ? be.bql : h;
@@ -2905,7 +2905,7 @@ rol IN (admin, employee)`,
2905
2905
  );
2906
2906
  }
2907
2907
  let Te;
2908
- w.pagination && (Te = ca(
2908
+ y.pagination && (Te = ca(
2909
2909
  be == null ? void 0 : be.pageSize,
2910
2910
  zt,
2911
2911
  St
@@ -2921,43 +2921,43 @@ rol IN (admin, employee)`,
2921
2921
  sort: Mr(be == null ? void 0 : be.sort) ? be.sort : null,
2922
2922
  bql: typeof (be == null ? void 0 : be.bql) == "string" ? be.bql : "",
2923
2923
  bqlHistory: Array.isArray(be == null ? void 0 : be.bqlHistory) ? be.bqlHistory : [],
2924
- pageSize: w.pagination && kt !== !1 ? Te : void 0
2924
+ pageSize: y.pagination && kt !== !1 ? Te : void 0
2925
2925
  }), De.current = !0;
2926
2926
  }).catch(() => {
2927
2927
  var me;
2928
2928
  if (!se) {
2929
2929
  const fe = xn(O), be = Or(
2930
2930
  Zr.current ?? Ir()
2931
- ), zt = Yr.current, kt = zt === !1 ? 0 : zt, St = w.layout ? fe == null ? void 0 : fe.columnOrder : void 0, Et = Array.isArray(St) ? St.filter((Te) => B.includes(Te)) : [], _t = B.filter((Te) => !Et.includes(Te)), ir = Et.length > 0 ? [...Et, ..._t] : B, lr = Object.fromEntries(
2931
+ ), zt = Yr.current, kt = zt === !1 ? 0 : zt, St = y.layout ? fe == null ? void 0 : fe.columnOrder : void 0, Et = Array.isArray(St) ? St.filter((Te) => B.includes(Te)) : [], _t = B.filter((Te) => !Et.includes(Te)), ir = Et.length > 0 ? [...Et, ..._t] : B, lr = Object.fromEntries(
2932
2932
  d.map((Te) => [
2933
2933
  Te.key,
2934
2934
  et(Te, Ct(Te.width))
2935
2935
  ])
2936
- ), Lr = w.layout ? (fe == null ? void 0 : fe.columnWidths) ?? {} : {}, sr = Object.fromEntries(
2936
+ ), Lr = y.layout ? (fe == null ? void 0 : fe.columnWidths) ?? {} : {}, sr = Object.fromEntries(
2937
2937
  d.map((Te) => [
2938
2938
  Te.key,
2939
2939
  et(Te, Lr[Te.key] ?? lr[Te.key])
2940
2940
  ])
2941
2941
  );
2942
- w.layout && (Qt(ir), tr(sr));
2942
+ y.layout && (Qt(ir), tr(sr));
2943
2943
  const Ae = $t(
2944
- w.layout ? (fe == null ? void 0 : fe.hiddenColumnKeys) ?? v : v,
2944
+ y.layout ? (fe == null ? void 0 : fe.hiddenColumnKeys) ?? v : v,
2945
2945
  d
2946
2946
  );
2947
- if (Ke || ht(Ae), w.filters && (Kt(
2947
+ if (Ke || ht(Ae), y.filters && (Kt(
2948
2948
  Ar(fe == null ? void 0 : fe.filters, x)
2949
2949
  ), wr(
2950
2950
  Tr(
2951
2951
  fe == null ? void 0 : fe.conditionFilters,
2952
2952
  x
2953
2953
  )
2954
- )), w.sort) {
2954
+ )), y.sort) {
2955
2955
  const Te = Mr(fe == null ? void 0 : fe.sort) ? fe.sort : null;
2956
2956
  It(
2957
2957
  Te && x.has(Te.key) ? Te : null
2958
2958
  );
2959
2959
  }
2960
- if (w.bql) {
2960
+ if (y.bql) {
2961
2961
  if (Xt.current !== O) {
2962
2962
  Xt.current = O;
2963
2963
  const Te = typeof (fe == null ? void 0 : fe.bql) == "string" ? fe.bql : h;
@@ -2970,7 +2970,7 @@ rol IN (admin, employee)`,
2970
2970
  );
2971
2971
  }
2972
2972
  let cr;
2973
- w.pagination && (cr = ca(
2973
+ y.pagination && (cr = ca(
2974
2974
  fe == null ? void 0 : fe.pageSize,
2975
2975
  be,
2976
2976
  kt
@@ -2989,7 +2989,7 @@ rol IN (admin, employee)`,
2989
2989
  sort: Mr(fe == null ? void 0 : fe.sort) ? fe.sort : null,
2990
2990
  bql: typeof (fe == null ? void 0 : fe.bql) == "string" ? fe.bql : "",
2991
2991
  bqlHistory: Array.isArray(fe == null ? void 0 : fe.bqlHistory) ? fe.bqlHistory : [],
2992
- pageSize: w.pagination && zt !== !1 ? cr : void 0
2992
+ pageSize: y.pagination && zt !== !1 ? cr : void 0
2993
2993
  }), De.current = !0;
2994
2994
  }
2995
2995
  }).finally(() => {
@@ -3003,18 +3003,18 @@ rol IN (admin, employee)`,
3003
3003
  ce,
3004
3004
  X,
3005
3005
  Ke,
3006
- w.layout,
3007
- w.filters,
3008
- w.sort,
3009
- w.bql,
3010
- w.pagination,
3006
+ y.layout,
3007
+ y.filters,
3008
+ y.sort,
3009
+ y.bql,
3010
+ y.pagination,
3011
3011
  Tt,
3012
3012
  h,
3013
3013
  ji
3014
3014
  ]), ae(() => {
3015
3015
  if (!O || !Me || !q || !De.current) return;
3016
3016
  const d = {};
3017
- w.layout && (d.columnOrder = Jt, d.columnWidths = er, d.hiddenColumnKeys = Ye), w.filters && (d.filters = Ze, d.conditionFilters = it), w.sort && (d.sort = Be), w.bql && (d.bql = vt, d.bqlHistory = Sr), w.pagination && S !== !1 && (d.pageSize = tn);
3017
+ y.layout && (d.columnOrder = Jt, d.columnWidths = er, d.hiddenColumnKeys = Ye), y.filters && (d.filters = Ze, d.conditionFilters = it), y.sort && (d.sort = Be), y.bql && (d.bql = vt, d.bqlHistory = Sr), y.pagination && S !== !1 && (d.pageSize = tn);
3018
3018
  const v = xn(O), B = So(v, d), x = JSON.stringify(B);
3019
3019
  if (x === ze.current) return;
3020
3020
  pc(O, B), ze.current = x;
@@ -3043,11 +3043,11 @@ rol IN (admin, employee)`,
3043
3043
  O,
3044
3044
  Me,
3045
3045
  q,
3046
- w.layout,
3047
- w.filters,
3048
- w.sort,
3049
- w.bql,
3050
- w.pagination
3046
+ y.layout,
3047
+ y.filters,
3048
+ y.sort,
3049
+ y.bql,
3050
+ y.pagination
3051
3051
  ]), ae(() => {
3052
3052
  Qt((d) => {
3053
3053
  const v = e.map((F) => F.key), B = d.filter((F) => v.includes(F)), x = v.filter((F) => !B.includes(F));
@@ -4864,7 +4864,7 @@ ${B}`, F = new Blob(["\uFEFF" + x], {
4864
4864
  /* @__PURE__ */ t("div", { role: "rowgroup", children: ro.map((d, v) => {
4865
4865
  const B = n(d), x = lo(H == null ? void 0 : H(d)), F = v > 0 ? lo(
4866
4866
  H == null ? void 0 : H(ro[v - 1])
4867
- ) : null, se = x && x.key !== (F == null ? void 0 : F.key), ue = ct && k.has(B), we = rr ? (f == null ? void 0 : f(d)) ?? !0 : !1, _e = we && to.has(B), Pe = !!u || y && we, ke = ue && D ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : v % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 30%, var(--bg-card))" : "var(--bg-card)";
4867
+ ) : null, se = x && x.key !== (F == null ? void 0 : F.key), ue = ct && k.has(B), we = rr ? (f == null ? void 0 : f(d)) ?? !0 : !1, _e = we && to.has(B), Pe = !!u || w && we, ke = ue && D ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : v % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 30%, var(--bg-card))" : "var(--bg-card)";
4868
4868
  return /* @__PURE__ */ i(We.Fragment, { children: [
4869
4869
  se && /* @__PURE__ */ t(
4870
4870
  "div",
@@ -4900,7 +4900,7 @@ ${B}`, F = new Blob(["\uFEFF" + x], {
4900
4900
  if (!(Se != null && Se.closest(
4901
4901
  '[data-dt-disable-row-click="true"]'
4902
4902
  ))) {
4903
- if (y && we) {
4903
+ if (w && we) {
4904
4904
  no(B);
4905
4905
  return;
4906
4906
  }
@@ -5188,7 +5188,7 @@ function ju({
5188
5188
  u.current = m;
5189
5189
  const [p, b] = W(null), N = ne(null);
5190
5190
  N.current = p;
5191
- const [y, k] = W({}), [g, C] = W(null), D = ne(null);
5191
+ const [w, k] = W({}), [g, C] = W(null), D = ne(null);
5192
5192
  D.current = g;
5193
5193
  const [M, H] = W({}), [$, S] = W(
5194
5194
  {}
@@ -5445,7 +5445,7 @@ function ju({
5445
5445
  className: `relative ${A.className ?? ""}`.trim(),
5446
5446
  disableRowClick: !0,
5447
5447
  cell: (te) => {
5448
- const J = n(te), oe = A.key, de = (m == null ? void 0 : m.rowId) === J && (m == null ? void 0 : m.colKey) === oe, ye = (p == null ? void 0 : p.rowId) === J && (p == null ? void 0 : p.colKey) === oe, ee = y[`${J}:${oe}`], G = (g == null ? void 0 : g.rowId) === J && (g == null ? void 0 : g.colKey) === oe, h = te[R.field], L = String(h ?? ""), _ = () => {
5448
+ const J = n(te), oe = A.key, de = (m == null ? void 0 : m.rowId) === J && (m == null ? void 0 : m.colKey) === oe, ye = (p == null ? void 0 : p.rowId) === J && (p == null ? void 0 : p.colKey) === oe, ee = w[`${J}:${oe}`], G = (g == null ? void 0 : g.rowId) === J && (g == null ? void 0 : g.colKey) === oe, h = te[R.field], L = String(h ?? ""), _ = () => {
5449
5449
  var ie;
5450
5450
  D.current || (b({ rowId: J, colKey: oe }), f({ rowId: J, colKey: oe }), (ie = I.current) == null || ie.focus({ preventScroll: !0 }), R.type === "select" && !j.current.has(oe) && K(oe, R));
5451
5451
  };
@@ -5527,7 +5527,7 @@ function ju({
5527
5527
  m,
5528
5528
  p,
5529
5529
  g,
5530
- y,
5530
+ w,
5531
5531
  M,
5532
5532
  $,
5533
5533
  n,
@@ -5683,8 +5683,8 @@ function Wu({
5683
5683
  month: p,
5684
5684
  onMonthChange: b,
5685
5685
  onSelect: (N) => {
5686
- const y = N != null && N.from ? Co(N.from) : e, k = N != null && N.to ? Co(N.to) : "";
5687
- n({ startDate: y, endDate: k });
5686
+ const w = N != null && N.from ? Co(N.from) : e, k = N != null && N.to ? Co(N.to) : "";
5687
+ n({ startDate: w, endDate: k });
5688
5688
  },
5689
5689
  numberOfMonths: l,
5690
5690
  hideNavigation: !0,
@@ -5848,13 +5848,13 @@ function qu({
5848
5848
  menuClassName: s = "",
5849
5849
  onOpenChange: c
5850
5850
  }) {
5851
- const [u, m] = W(!1), [f, p] = W(!1), [b, N] = W({}), y = ne(null), k = ne(null), g = ge(
5851
+ const [u, m] = W(!1), [f, p] = W(!1), [b, N] = W({}), w = ne(null), k = ne(null), g = ge(
5852
5852
  ($) => {
5853
5853
  m($), c == null || c($);
5854
5854
  },
5855
5855
  [c]
5856
5856
  ), C = ge(() => {
5857
- const $ = y.current;
5857
+ const $ = w.current;
5858
5858
  if (!$) return;
5859
5859
  const S = $.getBoundingClientRect(), j = typeof a == "number" ? a : S.width, I = typeof a == "number" ? a : Math.max(S.width, 180), P = n === "end" ? Math.max(8, S.right - I) : Math.min(S.left, window.innerWidth - I - 8), K = window.innerHeight - S.bottom, U = K < 240 && S.top > K ? void 0 : S.bottom + 6, E = U === void 0 ? window.innerHeight - S.top + 6 : void 0;
5860
5860
  N({
@@ -5872,7 +5872,7 @@ function qu({
5872
5872
  const $ = (j) => {
5873
5873
  var P, K;
5874
5874
  const I = j.target;
5875
- !((P = y.current) != null && P.contains(I)) && !((K = k.current) != null && K.contains(I)) && g(!1);
5875
+ !((P = w.current) != null && P.contains(I)) && !((K = k.current) != null && K.contains(I)) && g(!1);
5876
5876
  }, S = (j) => {
5877
5877
  j.key === "Escape" && g(!1);
5878
5878
  };
@@ -5925,7 +5925,7 @@ function qu({
5925
5925
  return /* @__PURE__ */ i(
5926
5926
  "span",
5927
5927
  {
5928
- ref: y,
5928
+ ref: w,
5929
5929
  role: "button",
5930
5930
  tabIndex: o ? -1 : 0,
5931
5931
  "aria-haspopup": "menu",
@@ -5955,7 +5955,7 @@ function Uu({
5955
5955
  width: p = 440,
5956
5956
  hasUnsavedChanges: b = !1,
5957
5957
  unsavedChangesTitle: N = "Descartar cambios",
5958
- unsavedChangesDescription: y = "Hay cambios sin guardar. Si cierras el drawer se perderán.",
5958
+ unsavedChangesDescription: w = "Hay cambios sin guardar. Si cierras el drawer se perderán.",
5959
5959
  unsavedChangesConfirmLabel: k = "Descartar",
5960
5960
  unsavedChangesCancelLabel: g = "Seguir editando",
5961
5961
  onDiscardChanges: C,
@@ -6155,7 +6155,7 @@ function Uu({
6155
6155
  {
6156
6156
  className: "text-sm",
6157
6157
  style: { color: "var(--text-muted, #6b7f78)" },
6158
- children: y
6158
+ children: w
6159
6159
  }
6160
6160
  ),
6161
6161
  /* @__PURE__ */ i("div", { className: "mt-6 flex gap-2", children: [
@@ -6408,7 +6408,7 @@ function Ti({
6408
6408
  required: p,
6409
6409
  ...b
6410
6410
  }) {
6411
- const [N, y] = W(() => !!b.autoFocus), [k, g] = W(!1), C = b.type === "password" && u, D = C && k ? "text" : b.type, M = !!a, H = M && o !== "tooltip", $ = M && o !== "inline", S = m ? p : void 0, j = M ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", I = $ ? C ? "pr-20" : "pr-10" : C ? "pr-10" : "", P = b.value !== void 0 ? String(b.value).length > 0 : b.defaultValue !== void 0 && String(b.defaultValue).length > 0, K = N || P, U = {
6411
+ const [N, w] = W(() => !!b.autoFocus), [k, g] = W(!1), C = b.type === "password" && u, D = C && k ? "text" : b.type, M = !!a, H = M && o !== "tooltip", $ = M && o !== "inline", S = m ? p : void 0, j = M ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", I = $ ? C ? "pr-20" : "pr-10" : C ? "pr-10" : "", P = b.value !== void 0 ? String(b.value).length > 0 : b.defaultValue !== void 0 && String(b.defaultValue).length > 0, K = N || P, U = {
6412
6412
  top: K ? 7 : 12,
6413
6413
  color: N ? "var(--primary)" : "var(--text-muted)",
6414
6414
  fontSize: K ? 10 : 13,
@@ -6416,10 +6416,10 @@ function Ti({
6416
6416
  textTransform: K ? "uppercase" : "none"
6417
6417
  }, E = (Q) => {
6418
6418
  var Y;
6419
- y(!0), (Y = b.onFocus) == null || Y.call(b, Q);
6419
+ w(!0), (Y = b.onFocus) == null || Y.call(b, Q);
6420
6420
  }, V = (Q) => {
6421
6421
  var Y;
6422
- y(!1), (Y = b.onBlur) == null || Y.call(b, Q);
6422
+ w(!1), (Y = b.onBlur) == null || Y.call(b, Q);
6423
6423
  }, z = C ? /* @__PURE__ */ i(
6424
6424
  "button",
6425
6425
  {
@@ -6645,7 +6645,7 @@ function nm({
6645
6645
  showFileList: p = !0,
6646
6646
  clearable: b = !0,
6647
6647
  browseLabel: N = "Buscar archivos",
6648
- dropLabel: y = "Suelta los archivos aqui",
6648
+ dropLabel: w = "Suelta los archivos aqui",
6649
6649
  emptyLabel: k = "Arrastra y suelta archivos",
6650
6650
  emptyDescription: g = "o haz click para buscarlos en tu equipo",
6651
6651
  selectedLabel: C = "Archivos seleccionados",
@@ -6726,7 +6726,7 @@ function nm({
6726
6726
  children: [
6727
6727
  /* @__PURE__ */ t("span", { className: "flex h-10 w-10 items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-input)] text-[var(--text-muted)]", children: /* @__PURE__ */ t(Fl, { className: "h-5 w-5" }) }),
6728
6728
  /* @__PURE__ */ i("span", { className: "space-y-1", children: [
6729
- /* @__PURE__ */ t("span", { className: "block text-sm font-semibold text-[var(--text-main)]", children: O ? y : k }),
6729
+ /* @__PURE__ */ t("span", { className: "block text-sm font-semibold text-[var(--text-main)]", children: O ? w : k }),
6730
6730
  g && /* @__PURE__ */ t("span", { className: "block text-sm text-[var(--text-muted)]", children: g })
6731
6731
  ] }),
6732
6732
  N && /* @__PURE__ */ t("span", { className: "inline-flex h-9 items-center justify-center rounded-lg border border-[var(--border)] bg-[var(--bg-card)] px-3 text-xs font-semibold text-[var(--text-main)] shadow-sm shadow-black/5 transition-colors", children: N })
@@ -6807,7 +6807,7 @@ function am({
6807
6807
  }) {
6808
6808
  const [f, p] = W(
6809
6809
  () => e.map((M) => ({ key: !1, type: "", ...M }))
6810
- ), [b, N] = W(""), [y, k] = W(""), g = ge(
6810
+ ), [b, N] = W(""), [w, k] = W(""), g = ge(
6811
6811
  (M, H) => {
6812
6812
  p(($) => {
6813
6813
  const S = $.map((j, I) => I === M ? { ...j, ...H } : j);
@@ -6941,7 +6941,7 @@ function am({
6941
6941
  type: "text",
6942
6942
  value: b,
6943
6943
  onChange: (M) => {
6944
- N(M.currentTarget.value), y && k("");
6944
+ N(M.currentTarget.value), w && k("");
6945
6945
  },
6946
6946
  onKeyDown: (M) => {
6947
6947
  M.key === "Enter" && (M.preventDefault(), D());
@@ -6967,7 +6967,7 @@ function am({
6967
6967
  }
6968
6968
  )
6969
6969
  ] }),
6970
- y && /* @__PURE__ */ t("p", { className: "text-xs", style: { color: "var(--danger)" }, children: y })
6970
+ w && /* @__PURE__ */ t("p", { className: "text-xs", style: { color: "var(--danger)" }, children: w })
6971
6971
  ] }),
6972
6972
  /* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ t(
6973
6973
  Fe,
@@ -7038,7 +7038,7 @@ function om({
7038
7038
  maxVisibleValues: p = 2,
7039
7039
  truncateSelectedValues: b = !0,
7040
7040
  emptyText: N = "Sin resultados",
7041
- clearLabel: y = "Limpiar seleccion",
7041
+ clearLabel: w = "Limpiar seleccion",
7042
7042
  pruneMissingValues: k = !0
7043
7043
  }) {
7044
7044
  const [g, C] = W(!1), [D, M] = W(""), [H, $] = W(0), [S, j] = W(!1), [I, P] = W({}), K = ne(null), U = ne(null), E = ne(null), V = ne(null), z = m && n.length >= f, O = Ue(() => new Set(e), [e]), Q = Ue(() => {
@@ -7232,7 +7232,7 @@ function om({
7232
7232
  h.preventDefault(), oe();
7233
7233
  },
7234
7234
  className: "font-semibold transition-colors hover:text-[var(--primary)]",
7235
- children: y
7235
+ children: w
7236
7236
  }
7237
7237
  )
7238
7238
  ]
@@ -7420,7 +7420,7 @@ function om({
7420
7420
  {
7421
7421
  role: "button",
7422
7422
  tabIndex: -1,
7423
- "aria-label": y,
7423
+ "aria-label": w,
7424
7424
  onMouseDown: (h) => {
7425
7425
  h.preventDefault(), h.stopPropagation(), oe();
7426
7426
  },
@@ -7756,7 +7756,7 @@ function sm({
7756
7756
  onCountryCodeChange: p,
7757
7757
  allowedCountryCodes: b,
7758
7758
  countryCodeOptions: N,
7759
- countryCodePlaceholder: y = "Codigo",
7759
+ countryCodePlaceholder: w = "Codigo",
7760
7760
  countryCodeClassName: k = "",
7761
7761
  countryCodeWidth: g = 84,
7762
7762
  onPhoneValueChange: C,
@@ -7831,7 +7831,7 @@ function sm({
7831
7831
  value: le,
7832
7832
  onChange: h,
7833
7833
  options: T,
7834
- placeholder: y,
7834
+ placeholder: w,
7835
7835
  disabled: I,
7836
7836
  ariaLabel: "Codigo telefonico",
7837
7837
  triggerVariant: "ghost",
@@ -7966,7 +7966,10 @@ const Di = () => '<button type="button" class="rich-img-del" data-action="delete
7966
7966
  return e.slice(r + 20, n);
7967
7967
  const a = e.match(/<body[^>]*>([\s\S]*)<\/body>/i);
7968
7968
  return a ? a[1] : e;
7969
- }, Rn = (e, r) => r.test(e), id = (e) => Rn(e, /font-weight\s*:\s*(bold|[6-9]00)/i), ld = (e) => Rn(e, /font-style\s*:\s*italic/i), sd = (e) => Rn(e, /text-decoration(?:-line)?\s*:[^;]*underline/i), cd = (e) => Rn(e, /text-decoration(?:-line)?\s*:[^;]*(line-through|linethrough)/i), Nn = (e, r) => {
7969
+ }, Rn = (e, r) => r.test(e), id = (e) => Rn(e, /font-weight\s*:\s*(bold|[6-9]00)/i), ld = (e) => Rn(e, /font-style\s*:\s*italic/i), sd = (e) => Rn(e, /text-decoration(?:-line)?\s*:[^;]*underline/i), cd = (e) => Rn(
7970
+ e,
7971
+ /text-decoration(?:-line)?\s*:[^;]*(line-through|linethrough)/i
7972
+ ), Nn = (e, r) => {
7970
7973
  var a;
7971
7974
  if (!e.childNodes.length || e.childNodes.length === 1 && ((a = e.firstChild) == null ? void 0 : a.nodeType) === Node.ELEMENT_NODE && e.firstChild.tagName.toLowerCase() === r)
7972
7975
  return;
@@ -7994,7 +7997,9 @@ const Di = () => '<button type="button" class="rich-img-del" data-action="delete
7994
7997
  a !== n.textContent && (n.textContent = a);
7995
7998
  }, md = (e) => {
7996
7999
  const r = Array.from(
7997
- e.querySelectorAll("span, font, p, div, li, h1, h2, h3, h4")
8000
+ e.querySelectorAll(
8001
+ "span, font, p, div, li, h1, h2, h3, h4"
8002
+ )
7998
8003
  );
7999
8004
  r.sort(
8000
8005
  (n, a) => a.querySelectorAll("*").length - n.querySelectorAll("*").length
@@ -8162,7 +8167,7 @@ function dm({
8162
8167
  const o = ge(
8163
8168
  () => document,
8164
8169
  []
8165
- ), l = ne(null), s = ne(null), c = ne(/* @__PURE__ */ new Map()), u = ne(null), m = ne(!1), f = ne(e ?? ""), p = ne(r), b = ne(!1), [N, y] = W(() => !e || e.trim() === ""), [k, g] = W(/* @__PURE__ */ new Set()), [C, D] = W(null), [M, H] = W(""), [$, S] = W(""), [j, I] = W(""), [P, K] = W(""), [U, E] = W(!1), V = ge(
8170
+ ), l = ne(null), s = ne(null), c = ne(/* @__PURE__ */ new Map()), u = ne(null), m = ne(!1), f = ne(e ?? ""), p = ne(r), b = ne(!1), [N, w] = W(() => !e || e.trim() === ""), [k, g] = W(/* @__PURE__ */ new Set()), [C, D] = W(null), [M, H] = W(""), [$, S] = W(""), [j, I] = W(""), [P, K] = W(""), [U, E] = W(!1), V = ge(
8166
8171
  () => m.current ? s.current : l.current,
8167
8172
  []
8168
8173
  );
@@ -8170,31 +8175,31 @@ function dm({
8170
8175
  p.current = r;
8171
8176
  }, [r]);
8172
8177
  const z = ge(() => {
8173
- const w = window.getSelection(), q = V();
8174
- if (!w || !q || w.rangeCount === 0 || w.isCollapsed)
8178
+ const y = window.getSelection(), q = V();
8179
+ if (!y || !q || y.rangeCount === 0 || y.isCollapsed)
8175
8180
  return "";
8176
- const ce = w.getRangeAt(0);
8177
- return !q.contains(ce.startContainer) || !q.contains(ce.endContainer) ? "" : w.toString();
8181
+ const ce = y.getRangeAt(0);
8182
+ return !q.contains(ce.startContainer) || !q.contains(ce.endContainer) ? "" : y.toString();
8178
8183
  }, [V]);
8179
8184
  ae(() => {
8180
- const w = e ?? "";
8181
- if (b.current && w === f.current) {
8182
- b.current = !1, y(!w || w.trim() === "");
8185
+ const y = e ?? "";
8186
+ if (b.current && y === f.current) {
8187
+ b.current = !1, w(!y || y.trim() === "");
8183
8188
  return;
8184
8189
  }
8185
- b.current = !1, f.current = w;
8190
+ b.current = !1, f.current = y;
8186
8191
  const q = [l.current, s.current].filter(
8187
8192
  (X) => !!X
8188
8193
  );
8189
8194
  q.forEach((X) => {
8190
- X.innerHTML !== w && (X.innerHTML = w);
8191
- }), y(!w || w.trim() === "");
8195
+ X.innerHTML !== y && (X.innerHTML = y);
8196
+ }), w(!y || y.trim() === "");
8192
8197
  const ce = q.map((X) => Po(X));
8193
8198
  return () => ce.forEach((X) => X());
8194
8199
  }, [e]), ae(() => {
8195
8200
  var X, Ee;
8196
8201
  m.current = U;
8197
- let w, q = 0, ce;
8202
+ let y, q = 0, ce;
8198
8203
  if (U) {
8199
8204
  const ve = l.current;
8200
8205
  ve && (f.current = ve.innerHTML);
@@ -8205,19 +8210,19 @@ function dm({
8205
8210
  q = requestAnimationFrame(Me);
8206
8211
  return;
8207
8212
  }
8208
- xe.innerHTML !== f.current && (xe.innerHTML = f.current), w = Po(xe), y(((ze = xe.textContent) == null ? void 0 : ze.trim()) === ""), ce = setTimeout(() => xe.focus(), 60);
8213
+ xe.innerHTML !== f.current && (xe.innerHTML = f.current), y = Po(xe), w(((ze = xe.textContent) == null ? void 0 : ze.trim()) === ""), ce = setTimeout(() => xe.focus(), 60);
8209
8214
  };
8210
8215
  q = requestAnimationFrame(Me);
8211
8216
  } else {
8212
8217
  const ve = s.current, Me = l.current, xe = (ve == null ? void 0 : ve.innerHTML) ?? f.current, ze = f.current;
8213
- f.current = xe, Me && Me.innerHTML !== xe && (Me.innerHTML = xe), xe !== ze && p.current(xe), y(((Ee = (X = ve ?? Me) == null ? void 0 : X.textContent) == null ? void 0 : Ee.trim()) === "");
8218
+ f.current = xe, Me && Me.innerHTML !== xe && (Me.innerHTML = xe), xe !== ze && p.current(xe), w(((Ee = (X = ve ?? Me) == null ? void 0 : X.textContent) == null ? void 0 : Ee.trim()) === "");
8214
8219
  }
8215
8220
  return () => {
8216
- q && cancelAnimationFrame(q), ce && clearTimeout(ce), w == null || w();
8221
+ q && cancelAnimationFrame(q), ce && clearTimeout(ce), y == null || y();
8217
8222
  };
8218
8223
  }, [U]);
8219
8224
  const O = ge(() => {
8220
- const w = [
8225
+ const y = [
8221
8226
  "bold",
8222
8227
  "italic",
8223
8228
  "underline",
@@ -8229,7 +8234,7 @@ function dm({
8229
8234
  "justifyRight",
8230
8235
  "justifyFull"
8231
8236
  ], q = /* @__PURE__ */ new Set();
8232
- w.forEach((X) => {
8237
+ y.forEach((X) => {
8233
8238
  try {
8234
8239
  o().queryCommandState(X) && q.add(X);
8235
8240
  } catch {
@@ -8247,54 +8252,54 @@ function dm({
8247
8252
  ba(ce, "uppercase") && q.add("__upper"), ba(ce, "lowercase") && q.add("__lower"), ba(ce, "capitalize") && q.add("__cap"), g(q);
8248
8253
  }, [z, o]), Q = () => {
8249
8254
  var q;
8250
- const w = V();
8251
- w && (f.current = w.innerHTML, b.current = !0, p.current(f.current), y(((q = w.textContent) == null ? void 0 : q.trim()) === ""));
8252
- }, Y = (w) => {
8253
- if (!w) {
8255
+ const y = V();
8256
+ y && (f.current = y.innerHTML, b.current = !0, p.current(f.current), w(((q = y.textContent) == null ? void 0 : q.trim()) === ""));
8257
+ }, Y = (y) => {
8258
+ if (!y) {
8254
8259
  const q = l.current;
8255
8260
  q && (f.current = q.innerHTML);
8256
8261
  }
8257
- E(!w);
8258
- }, T = (w, q) => {
8262
+ E(!y);
8263
+ }, T = (y, q) => {
8259
8264
  var ce;
8260
- (ce = V()) == null || ce.focus(), o().execCommand(w, !1, q), Q(), O();
8261
- }, Z = (w) => {
8262
- T("formatBlock", w);
8265
+ (ce = V()) == null || ce.focus(), o().execCommand(y, !1, q), Q(), O();
8266
+ }, Z = (y) => {
8267
+ T("formatBlock", y);
8263
8268
  }, le = () => {
8264
- var w;
8265
- (w = V()) == null || w.focus(), o().execCommand("insertHTML", !1, "<hr><p><br></p>"), Q(), O();
8269
+ var y;
8270
+ (y = V()) == null || y.focus(), o().execCommand("insertHTML", !1, "<hr><p><br></p>"), Q(), O();
8266
8271
  }, A = () => {
8267
- const w = window.getSelection();
8268
- w && w.rangeCount > 0 && (u.current = w.getRangeAt(0).cloneRange());
8272
+ const y = window.getSelection();
8273
+ y && y.rangeCount > 0 && (u.current = y.getRangeAt(0).cloneRange());
8269
8274
  }, R = () => {
8270
- const w = window.getSelection();
8271
- w && u.current && (w.removeAllRanges(), w.addRange(u.current));
8272
- }, te = (w) => {
8273
- if (A(), w === "link") {
8275
+ const y = window.getSelection();
8276
+ y && u.current && (y.removeAllRanges(), y.addRange(u.current));
8277
+ }, te = (y) => {
8278
+ if (A(), y === "link") {
8274
8279
  const q = window.getSelection();
8275
8280
  S(
8276
8281
  q && !q.isCollapsed ? q.toString() : ""
8277
8282
  ), H("");
8278
8283
  }
8279
- w === "image" && (I(""), K("")), D(w);
8284
+ y === "image" && (I(""), K("")), D(y);
8280
8285
  }, J = () => {
8281
8286
  var X;
8282
8287
  if (!M.trim()) return;
8283
8288
  R(), (X = V()) == null || X.focus();
8284
- const w = window.getSelection(), ce = (w && !w.isCollapsed ? w.toString() : "") || $.trim() || M.trim();
8289
+ const y = window.getSelection(), ce = (y && !y.isCollapsed ? y.toString() : "") || $.trim() || M.trim();
8285
8290
  o().execCommand(
8286
8291
  "insertHTML",
8287
8292
  !1,
8288
8293
  `<a href="${Rr(M.trim())}" target="_blank" rel="noopener noreferrer" class="rich-link">${Rr(ce)}</a>`
8289
8294
  ), Q(), D(null);
8290
- }, oe = (w, q = "") => `<span class="rich-img-wrap" contenteditable="false"><img src="${Rr(w)}" alt="${Rr(q)}" class="rich-img" />${Di()}</span>`, de = () => {
8291
- var w;
8292
- j.trim() && (R(), (w = V()) == null || w.focus(), o().execCommand(
8295
+ }, oe = (y, q = "") => `<span class="rich-img-wrap" contenteditable="false"><img src="${Rr(y)}" alt="${Rr(q)}" class="rich-img" />${Di()}</span>`, de = () => {
8296
+ var y;
8297
+ j.trim() && (R(), (y = V()) == null || y.focus(), o().execCommand(
8293
8298
  "insertHTML",
8294
8299
  !1,
8295
8300
  oe(j.trim(), P.trim())
8296
8301
  ), Q(), D(null));
8297
- }, ye = (w, q = 1200, ce = 1200, X = 0.72) => new Promise((Ee, ve) => {
8302
+ }, ye = (y, q = 1200, ce = 1200, X = 0.72) => new Promise((Ee, ve) => {
8298
8303
  const Me = new FileReader();
8299
8304
  Me.onerror = ve, Me.onload = (xe) => {
8300
8305
  var Vt;
@@ -8314,19 +8319,19 @@ function dm({
8314
8319
  }
8315
8320
  Ur.drawImage(De, 0, 0, Je, ot), Ee(Ke.toDataURL("image/jpeg", X));
8316
8321
  }, De.src = ze;
8317
- }, Me.readAsDataURL(w);
8318
- }), ee = (w) => {
8319
- w.focus();
8322
+ }, Me.readAsDataURL(y);
8323
+ }), ee = (y) => {
8324
+ y.focus();
8320
8325
  const q = window.getSelection();
8321
- if (!q || q.rangeCount === 0 || !w.contains(q.anchorNode)) {
8326
+ if (!q || q.rangeCount === 0 || !y.contains(q.anchorNode)) {
8322
8327
  const ce = document.createRange();
8323
- ce.selectNodeContents(w), ce.collapse(!1), q == null || q.removeAllRanges(), q == null || q.addRange(ce);
8328
+ ce.selectNodeContents(y), ce.collapse(!1), q == null || q.removeAllRanges(), q == null || q.addRange(ce);
8324
8329
  }
8325
8330
  }, G = ne(() => {
8326
8331
  });
8327
- G.current = (w) => {
8332
+ G.current = (y) => {
8328
8333
  const q = V();
8329
- q && (ee(q), o().execCommand("insertHTML", !1, w), q.querySelectorAll("p").forEach((ce) => {
8334
+ q && (ee(q), o().execCommand("insertHTML", !1, y), q.querySelectorAll("p").forEach((ce) => {
8330
8335
  !(ce.textContent ?? "").replace(/[\u00a0\s]+/g, "") && !ce.querySelector("img, hr") && ce.remove();
8331
8336
  }), Q(), O());
8332
8337
  };
@@ -8334,8 +8339,8 @@ function dm({
8334
8339
  h.current = ye;
8335
8340
  const L = ne(oe);
8336
8341
  L.current = oe;
8337
- const _ = ge((w) => {
8338
- if (!w || c.current.has(w)) return;
8342
+ const _ = ge((y) => {
8343
+ if (!y || c.current.has(y)) return;
8339
8344
  const q = (ce) => {
8340
8345
  const X = ce.clipboardData;
8341
8346
  if (!X) return;
@@ -8359,34 +8364,36 @@ function dm({
8359
8364
  ce.preventDefault(), ce.stopPropagation();
8360
8365
  const ze = xe.getAsFile();
8361
8366
  ze && h.current(ze).then((De) => {
8362
- G.current(L.current(De, "imagen"));
8367
+ G.current(
8368
+ L.current(De, "imagen")
8369
+ );
8363
8370
  });
8364
8371
  };
8365
- w.addEventListener("paste", q, !0), c.current.set(w, () => {
8366
- w.removeEventListener("paste", q, !0), c.current.delete(w);
8372
+ y.addEventListener("paste", q, !0), c.current.set(y, () => {
8373
+ y.removeEventListener("paste", q, !0), c.current.delete(y);
8367
8374
  });
8368
8375
  }, []), re = ge(
8369
- (w) => {
8376
+ (y) => {
8370
8377
  var ce;
8371
8378
  const q = l.current;
8372
- q && q !== w && ((ce = c.current.get(q)) == null || ce()), l.current = w, w && _(w);
8379
+ q && q !== y && ((ce = c.current.get(q)) == null || ce()), l.current = y, y && _(y);
8373
8380
  },
8374
8381
  [_]
8375
8382
  ), ie = ge(
8376
- (w) => {
8383
+ (y) => {
8377
8384
  var ce;
8378
8385
  const q = s.current;
8379
- q && q !== w && ((ce = c.current.get(q)) == null || ce()), s.current = w, w && _(w);
8386
+ q && q !== y && ((ce = c.current.get(q)) == null || ce()), s.current = y, y && _(y);
8380
8387
  },
8381
8388
  [_]
8382
8389
  );
8383
8390
  ae(() => {
8384
- const w = c.current;
8391
+ const y = c.current;
8385
8392
  return () => {
8386
- w.forEach((q) => q()), w.clear();
8393
+ y.forEach((q) => q()), y.clear();
8387
8394
  };
8388
8395
  }, []);
8389
- const he = (w) => {
8396
+ const he = (y) => {
8390
8397
  const q = window.getSelection(), ce = V();
8391
8398
  if (!q || !ce || q.rangeCount === 0 || q.isCollapsed)
8392
8399
  return;
@@ -8396,7 +8403,7 @@ function dm({
8396
8403
  const Ee = X.toString();
8397
8404
  if (!Ee) return;
8398
8405
  let ve = Ee;
8399
- w === "uppercase" ? ve = Ee.toLocaleUpperCase() : w === "lowercase" ? ve = Ee.toLocaleLowerCase() : ve = Bi(Ee), X.deleteContents();
8406
+ y === "uppercase" ? ve = Ee.toLocaleUpperCase() : y === "lowercase" ? ve = Ee.toLocaleLowerCase() : ve = Bi(Ee), X.deleteContents();
8400
8407
  const Me = document.createTextNode(ve);
8401
8408
  X.insertNode(Me);
8402
8409
  const xe = document.createRange();
@@ -8405,13 +8412,18 @@ function dm({
8405
8412
  A(), O();
8406
8413
  }, Ve = () => {
8407
8414
  Q(), O();
8408
- }, Ne = (w) => {
8409
- var q;
8410
- if (w.key === "Tab") {
8411
- w.preventDefault(), (q = V()) == null || q.focus(), o().execCommand("insertText", !1, "    "), Q(), O();
8415
+ }, Ne = (y) => {
8416
+ var q, ce;
8417
+ if ((y.metaKey || y.ctrlKey) && y.key === "Enter") {
8418
+ if (y.preventDefault(), y.stopPropagation(), y.repeat) return;
8419
+ (q = V()) == null || q.focus(), o().execCommand("insertLineBreak", !1) || o().execCommand("insertHTML", !1, "<br>"), Q(), O();
8420
+ return;
8421
+ }
8422
+ if (y.key === "Tab") {
8423
+ y.preventDefault(), (ce = V()) == null || ce.focus(), o().execCommand("insertText", !1, "    "), Q(), O();
8412
8424
  return;
8413
8425
  }
8414
- if (w.key === "Escape") {
8426
+ if (y.key === "Escape") {
8415
8427
  if (C) {
8416
8428
  D(null);
8417
8429
  return;
@@ -8421,14 +8433,14 @@ function dm({
8421
8433
  return;
8422
8434
  }
8423
8435
  }
8424
- C || (w.ctrlKey || w.metaKey) && (w.key === "b" && (w.preventDefault(), T("bold")), w.key === "i" && (w.preventDefault(), T("italic")), w.key === "u" && (w.preventDefault(), T("underline")), w.key === "k" && (w.preventDefault(), te("link")));
8436
+ C || (y.ctrlKey || y.metaKey) && (y.key === "b" && (y.preventDefault(), T("bold")), y.key === "i" && (y.preventDefault(), T("italic")), y.key === "u" && (y.preventDefault(), T("underline")), y.key === "k" && (y.preventDefault(), te("link")));
8425
8437
  }, $e = () => /* @__PURE__ */ t(
8426
8438
  "div",
8427
8439
  {
8428
8440
  className: "h-4 w-px flex-shrink-0 mx-1",
8429
8441
  style: { background: "var(--border)" }
8430
8442
  }
8431
- ), pe = (w, q, ce, X, Ee) => {
8443
+ ), pe = (y, q, ce, X, Ee) => {
8432
8444
  const ve = Ee ?? (k.has(ce) || ce === "__link" && C === "link" || ce === "__img" && C === "image");
8433
8445
  return /* @__PURE__ */ t(
8434
8446
  "button",
@@ -8444,23 +8456,23 @@ function dm({
8444
8456
  color: ve ? "var(--primary)" : "var(--text-secondary)",
8445
8457
  background: ve ? "rgba(59,130,246,0.12)" : "transparent"
8446
8458
  },
8447
- children: w
8459
+ children: y
8448
8460
  },
8449
8461
  ce
8450
8462
  );
8451
- }, yt = (w) => {
8452
- const q = w.target;
8463
+ }, yt = (y) => {
8464
+ const q = y.target;
8453
8465
  if (q.closest("[data-action='delete-img']")) {
8454
- w.preventDefault();
8466
+ y.preventDefault();
8455
8467
  const ce = q.closest(".rich-img-wrap");
8456
8468
  ce && (ce.remove(), Q());
8457
8469
  }
8458
- }, bt = (w) => /* @__PURE__ */ i(Re, { children: [
8470
+ }, bt = (y) => /* @__PURE__ */ i(Re, { children: [
8459
8471
  C === "link" && /* @__PURE__ */ i(
8460
8472
  "div",
8461
8473
  {
8462
8474
  className: "flex flex-shrink-0 flex-wrap items-center gap-2 border-t px-3 py-2",
8463
- style: { borderColor: "var(--border)", background: w },
8475
+ style: { borderColor: "var(--border)", background: y },
8464
8476
  children: [
8465
8477
  /* @__PURE__ */ t(
8466
8478
  "input",
@@ -8526,7 +8538,7 @@ function dm({
8526
8538
  "div",
8527
8539
  {
8528
8540
  className: "flex flex-shrink-0 flex-wrap items-center gap-2 border-t px-3 py-2",
8529
- style: { borderColor: "var(--border)", background: w },
8541
+ style: { borderColor: "var(--border)", background: y },
8530
8542
  children: [
8531
8543
  /* @__PURE__ */ t(
8532
8544
  "input",
@@ -8588,7 +8600,7 @@ function dm({
8588
8600
  ]
8589
8601
  }
8590
8602
  )
8591
- ] }), pt = (w, q) => /* @__PURE__ */ i(
8603
+ ] }), pt = (y, q) => /* @__PURE__ */ i(
8592
8604
  "div",
8593
8605
  {
8594
8606
  className: "flex flex-shrink-0 flex-wrap items-center gap-0.5 border-t px-2 py-1",
@@ -8740,14 +8752,14 @@ function dm({
8740
8752
  "button",
8741
8753
  {
8742
8754
  type: "button",
8743
- title: w ? "Salir del modo de enfoque (Esc)" : "Modo de enfoque",
8755
+ title: y ? "Salir del modo de enfoque (Esc)" : "Modo de enfoque",
8744
8756
  tabIndex: -1,
8745
8757
  onMouseDown: (ce) => {
8746
- ce.preventDefault(), Y(w);
8758
+ ce.preventDefault(), Y(y);
8747
8759
  },
8748
8760
  className: "flex h-7 w-7 items-center justify-center rounded transition-colors",
8749
8761
  style: { color: "var(--text-secondary)" },
8750
- children: w ? /* @__PURE__ */ t(ql, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Ul, { className: "h-4 w-4" })
8762
+ children: y ? /* @__PURE__ */ t(ql, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Ul, { className: "h-4 w-4" })
8751
8763
  }
8752
8764
  )
8753
8765
  ]
@@ -8988,7 +9000,7 @@ function fm({
8988
9000
  optionClassName: b,
8989
9001
  spinnerClassName: N
8990
9002
  }) {
8991
- const [y, k] = W(!1), [g, C] = W(!1), [D, M] = W(-1), [H, $] = W({}), S = ne(null), j = ne(null), I = ne(null), P = r.find((T) => T.value === e) ?? r[0], K = {
9003
+ const [w, k] = W(!1), [g, C] = W(!1), [D, M] = W(-1), [H, $] = W({}), S = ne(null), j = ne(null), I = ne(null), P = r.find((T) => T.value === e) ?? r[0], K = {
8992
9004
  ...P != null && P.tone ? zo[P.tone] : void 0,
8993
9005
  ...P == null ? void 0 : P.style
8994
9006
  }, U = o || l || r.length === 0, E = (T) => {
@@ -9017,31 +9029,31 @@ function fm({
9017
9029
  [V, n]
9018
9030
  );
9019
9031
  ae(() => C(!0), []), ae(() => {
9020
- if (!y) return;
9032
+ if (!w) return;
9021
9033
  z();
9022
9034
  const T = r.findIndex((Z) => Z.value === e);
9023
9035
  M(T >= 0 ? T : 0);
9024
- }, [y, r, z, e]), ae(() => {
9025
- if (!y) return;
9036
+ }, [w, r, z, e]), ae(() => {
9037
+ if (!w) return;
9026
9038
  function T(Z) {
9027
9039
  var A, R;
9028
9040
  const le = Z.target;
9029
9041
  !((A = S.current) != null && A.contains(le)) && !((R = j.current) != null && R.contains(le)) && V();
9030
9042
  }
9031
9043
  return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
9032
- }, [V, y]), ae(() => {
9033
- if (y)
9044
+ }, [V, w]), ae(() => {
9045
+ if (w)
9034
9046
  return window.addEventListener("resize", z), window.addEventListener("scroll", z, !0), () => {
9035
9047
  window.removeEventListener("resize", z), window.removeEventListener("scroll", z, !0);
9036
9048
  };
9037
- }, [y, z]), ae(() => {
9049
+ }, [w, z]), ae(() => {
9038
9050
  if (D < 0 || !I.current) return;
9039
9051
  const T = I.current.children[D];
9040
9052
  T == null || T.scrollIntoView({ block: "nearest" });
9041
9053
  }, [D]);
9042
9054
  function Q(T) {
9043
9055
  if (!U) {
9044
- if (!y) {
9056
+ if (!w) {
9045
9057
  ["Enter", " ", "ArrowDown", "ArrowUp"].includes(T.key) && (T.preventDefault(), k(!0));
9046
9058
  return;
9047
9059
  }
@@ -9148,7 +9160,7 @@ function fm({
9148
9160
  disabled: U,
9149
9161
  "aria-label": c,
9150
9162
  "aria-haspopup": "listbox",
9151
- "aria-expanded": y,
9163
+ "aria-expanded": w,
9152
9164
  title: u,
9153
9165
  onClick: () => !U && k((T) => !T),
9154
9166
  className: Ft(
@@ -9168,7 +9180,7 @@ function fm({
9168
9180
  className: Ft(
9169
9181
  "pointer-events-none absolute opacity-70 transition-transform",
9170
9182
  yd[a],
9171
- y ? "rotate-180" : "rotate-0"
9183
+ w ? "rotate-180" : "rotate-0"
9172
9184
  )
9173
9185
  }
9174
9186
  ),
@@ -9182,7 +9194,7 @@ function fm({
9182
9194
  )
9183
9195
  }
9184
9196
  ),
9185
- y && g && ut(Y, document.body)
9197
+ w && g && ut(Y, document.body)
9186
9198
  ]
9187
9199
  }
9188
9200
  );
@@ -9198,8 +9210,8 @@ function bm({
9198
9210
  listClassName: c = "",
9199
9211
  panelClassName: u = ""
9200
9212
  }) {
9201
- const m = e.find((y) => !y.disabled) ?? e[0], f = r ?? n ?? (m == null ? void 0 : m.id), p = e.find((y) => y.id === f) ?? m, b = (y) => {
9202
- y.disabled || a == null || a(y.id);
9213
+ const m = e.find((w) => !w.disabled) ?? e[0], f = r ?? n ?? (m == null ? void 0 : m.id), p = e.find((w) => w.id === f) ?? m, b = (w) => {
9214
+ w.disabled || a == null || a(w.id);
9203
9215
  };
9204
9216
  return /* @__PURE__ */ i("div", { className: s, children: [
9205
9217
  /* @__PURE__ */ t(
@@ -9207,30 +9219,30 @@ function bm({
9207
9219
  {
9208
9220
  role: "tablist",
9209
9221
  "aria-label": o,
9210
- onKeyDown: (y) => {
9222
+ onKeyDown: (w) => {
9211
9223
  const k = e.filter((C) => !C.disabled);
9212
9224
  if (!k.length || !p) return;
9213
9225
  const g = k.findIndex(
9214
9226
  (C) => C.id === p.id
9215
9227
  );
9216
- (y.key === "ArrowRight" || y.key === "ArrowDown") && (y.preventDefault(), b(k[(g + 1) % k.length])), (y.key === "ArrowLeft" || y.key === "ArrowUp") && (y.preventDefault(), b(
9228
+ (w.key === "ArrowRight" || w.key === "ArrowDown") && (w.preventDefault(), b(k[(g + 1) % k.length])), (w.key === "ArrowLeft" || w.key === "ArrowUp") && (w.preventDefault(), b(
9217
9229
  k[(g - 1 + k.length) % k.length]
9218
- )), y.key === "Home" && (y.preventDefault(), b(k[0])), y.key === "End" && (y.preventDefault(), b(k[k.length - 1]));
9230
+ )), w.key === "Home" && (w.preventDefault(), b(k[0])), w.key === "End" && (w.preventDefault(), b(k[k.length - 1]));
9219
9231
  },
9220
9232
  className: `flex min-w-0 gap-1 overflow-x-auto ${l === "underline" ? "border-b border-[var(--border)]" : "rounded-lg border border-[var(--border)] bg-[var(--bg-input)] p-1"} ${c}`,
9221
- children: e.map((y) => {
9222
- const k = y.id === (p == null ? void 0 : p.id);
9233
+ children: e.map((w) => {
9234
+ const k = w.id === (p == null ? void 0 : p.id);
9223
9235
  return /* @__PURE__ */ i(
9224
9236
  "button",
9225
9237
  {
9226
9238
  type: "button",
9227
9239
  role: "tab",
9228
9240
  "aria-selected": k,
9229
- "aria-controls": `${y.id}-panel`,
9230
- id: `${y.id}-tab`,
9231
- disabled: y.disabled,
9241
+ "aria-controls": `${w.id}-panel`,
9242
+ id: `${w.id}-tab`,
9243
+ disabled: w.disabled,
9232
9244
  tabIndex: k ? 0 : -1,
9233
- onClick: () => b(y),
9245
+ onClick: () => b(w),
9234
9246
  className: `inline-flex min-h-8 shrink-0 items-center justify-center gap-1.5 whitespace-nowrap px-2.5 text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${l === "underline" ? "border-b-2" : "rounded-md border"}`,
9235
9247
  style: {
9236
9248
  color: k ? "var(--primary)" : "var(--text-muted)",
@@ -9238,12 +9250,12 @@ function bm({
9238
9250
  background: l === "pills" && k ? "var(--bg-card)" : "transparent"
9239
9251
  },
9240
9252
  children: [
9241
- y.icon && /* @__PURE__ */ t("span", { className: "shrink-0", children: y.icon }),
9242
- /* @__PURE__ */ t("span", { children: y.label }),
9243
- y.badge && /* @__PURE__ */ t("span", { className: "shrink-0", children: y.badge })
9253
+ w.icon && /* @__PURE__ */ t("span", { className: "shrink-0", children: w.icon }),
9254
+ /* @__PURE__ */ t("span", { children: w.label }),
9255
+ w.badge && /* @__PURE__ */ t("span", { className: "shrink-0", children: w.badge })
9244
9256
  ]
9245
9257
  },
9246
- y.id
9258
+ w.id
9247
9259
  );
9248
9260
  })
9249
9261
  }
@@ -9278,7 +9290,7 @@ function pm({
9278
9290
  nextLabel: p = "Siguiente",
9279
9291
  blockedNextLabel: b = "Completa este paso",
9280
9292
  className: N = "",
9281
- headerClassName: y = "",
9293
+ headerClassName: w = "",
9282
9294
  contentClassName: k = "",
9283
9295
  footerClassName: g = ""
9284
9296
  }) {
@@ -9351,7 +9363,7 @@ function pm({
9351
9363
  {
9352
9364
  className: Lt(
9353
9365
  "border-b border-[var(--border)] bg-[var(--bg-input)]",
9354
- y
9366
+ w
9355
9367
  ),
9356
9368
  children: [
9357
9369
  /* @__PURE__ */ t("div", { className: "relative h-1 overflow-hidden bg-[var(--border)]/55", children: /* @__PURE__ */ t(
@@ -9538,13 +9550,13 @@ const $d = ri(
9538
9550
  icon: p,
9539
9551
  action: b,
9540
9552
  style: N,
9541
- value: y,
9553
+ value: w,
9542
9554
  defaultValue: k,
9543
9555
  maxLength: g,
9544
9556
  onInput: C,
9545
9557
  ...D
9546
9558
  }, M) {
9547
- const H = ne(null), $ = Cd(y, k), S = m ?? g, j = !!(p || b || u), I = f === "error" ? "var(--danger)" : f === "success" ? "#16a34a" : "var(--border)", P = {
9559
+ const H = ne(null), $ = Cd(w, k), S = m ?? g, j = !!(p || b || u), I = f === "error" ? "var(--danger)" : f === "success" ? "#16a34a" : "var(--border)", P = {
9548
9560
  ...N ?? {},
9549
9561
  ...s ? { minHeight: `${s * 24 + 18}px` } : null,
9550
9562
  ...c ? { maxHeight: `${c * 24 + 18}px` } : null
@@ -9552,7 +9564,7 @@ const $d = ri(
9552
9564
  const E = H.current;
9553
9565
  !E || !l || (E.style.height = "auto", E.style.height = `${E.scrollHeight}px`);
9554
9566
  };
9555
- ae(K, [l, y]);
9567
+ ae(K, [l, w]);
9556
9568
  const U = /* @__PURE__ */ t(
9557
9569
  "textarea",
9558
9570
  {
@@ -9560,7 +9572,7 @@ const $d = ri(
9560
9572
  ref: (E) => {
9561
9573
  H.current = E, Ed(M, E);
9562
9574
  },
9563
- value: y,
9575
+ value: w,
9564
9576
  defaultValue: k,
9565
9577
  maxLength: g,
9566
9578
  "aria-invalid": f === "error" || D["aria-invalid"],
@@ -9671,7 +9683,7 @@ function vm({
9671
9683
  error: b,
9672
9684
  required: N = !1
9673
9685
  }) {
9674
- const y = e !== void 0, [k, g] = W(
9686
+ const w = e !== void 0, [k, g] = W(
9675
9687
  () => (r ?? []).map((h, L) => ({
9676
9688
  id: pa(),
9677
9689
  value: h.trim(),
@@ -9679,11 +9691,11 @@ function vm({
9679
9691
  }))
9680
9692
  );
9681
9693
  ae(() => {
9682
- y && g((h) => {
9694
+ w && g((h) => {
9683
9695
  const L = e ?? [], _ = new Map(h.map((re) => [re.value, re]));
9684
9696
  return L.map((re, ie) => _.get(re) ?? { id: pa(), value: re, colorIndex: ie });
9685
9697
  });
9686
- }, [y, e]);
9698
+ }, [w, e]);
9687
9699
  const C = k, [D, M] = W(""), [H, $] = W(null), [S, j] = W(""), [I, P] = W(!1), [K, U] = W(!1), E = ne(null), V = ne(null), z = ne(null), O = !!b;
9688
9700
  function Q() {
9689
9701
  U(!0), setTimeout(() => U(!1), 400);
@@ -10181,7 +10193,7 @@ function Gd({
10181
10193
  labelSize: p = "xs",
10182
10194
  avatarVersion: b = 0,
10183
10195
  className: N = "",
10184
- style: y
10196
+ style: w
10185
10197
  }) {
10186
10198
  const [k, g] = W(!1), C = typeof e == "string" && e.trim() && e !== "undefined" && e !== "null" ? e.trim() : "";
10187
10199
  ae(() => {
@@ -10197,7 +10209,7 @@ function Gd({
10197
10209
  "span",
10198
10210
  {
10199
10211
  className: `${D} ${jd[a]} rounded-full flex items-center justify-center bg-[#071f1a] ring-1 ring-emerald-400/35 shadow-[0_0_0_1px_rgba(255,255,255,0.06)] flex-shrink-0 ${N}`,
10200
- style: y,
10212
+ style: w,
10201
10213
  children: /* @__PURE__ */ t(
10202
10214
  "img",
10203
10215
  {
@@ -10217,7 +10229,7 @@ function Gd({
10217
10229
  width: K,
10218
10230
  height: K,
10219
10231
  className: `${D} rounded-full object-cover flex-shrink-0 ${N}`,
10220
- style: y,
10232
+ style: w,
10221
10233
  loading: "lazy",
10222
10234
  referrerPolicy: "no-referrer",
10223
10235
  onError: () => g(!0)
@@ -10227,7 +10239,7 @@ function Gd({
10227
10239
  "span",
10228
10240
  {
10229
10241
  className: `${D} ${Ud(H)} ${M} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${N}`,
10230
- style: y,
10242
+ style: w,
10231
10243
  title: H,
10232
10244
  children: $
10233
10245
  }
@@ -10328,12 +10340,12 @@ function Xd({
10328
10340
  {
10329
10341
  className: "sidebar-scroll min-h-0 flex-1 overflow-y-auto px-3 py-4",
10330
10342
  "data-overlay-scroll": "true",
10331
- children: /* @__PURE__ */ t("div", { className: "sidebar-scroll-body", children: Object.entries(b).map(([N, y]) => /* @__PURE__ */ i("div", { className: "mb-5", children: [
10343
+ children: /* @__PURE__ */ t("div", { className: "sidebar-scroll-body", children: Object.entries(b).map(([N, w]) => /* @__PURE__ */ i("div", { className: "mb-5", children: [
10332
10344
  /* @__PURE__ */ i("div", { className: "mb-2 flex items-center gap-2 px-2 text-[11px] font-semibold uppercase tracking-wide text-white/35", children: [
10333
10345
  /* @__PURE__ */ t(dt, { className: "h-3.5 w-3.5" }),
10334
10346
  N
10335
10347
  ] }),
10336
- /* @__PURE__ */ t("div", { className: "space-y-1", children: y.map((k) => {
10348
+ /* @__PURE__ */ t("div", { className: "space-y-1", children: w.map((k) => {
10337
10349
  const g = n === k.href || n.startsWith(`${k.href}/`);
10338
10350
  return /* @__PURE__ */ i(
10339
10351
  m,
@@ -10490,7 +10502,7 @@ function xm({
10490
10502
  showBreadcrumbs: m = !0,
10491
10503
  contained: f = !1
10492
10504
  }) {
10493
- const p = ne(null), [b, N] = W(!1), [y, k] = W(u ?? "/"), [g, C] = W(() => Go()), [D, M] = W(null), H = u ?? y, $ = c ?? tu(H), S = o ?? ru(H), j = m && !g && $.length > 1, I = !j;
10505
+ const p = ne(null), [b, N] = W(!1), [w, k] = W(u ?? "/"), [g, C] = W(() => Go()), [D, M] = W(null), H = u ?? w, $ = c ?? tu(H), S = o ?? ru(H), j = m && !g && $.length > 1, I = !j;
10494
10506
  ae(() => {
10495
10507
  u || k(window.location.pathname);
10496
10508
  }, [u]), ae(() => {
@@ -10710,9 +10722,9 @@ function wm({
10710
10722
  if (!n) return;
10711
10723
  const u = n;
10712
10724
  function m(f) {
10713
- var N, y, k;
10725
+ var N, w, k;
10714
10726
  if (f.source !== ((N = l.current) == null ? void 0 : N.contentWindow) || c && f.origin !== c) return;
10715
- if (((y = f.data) == null ? void 0 : y.type) === "prime-microservice:overlay") {
10727
+ if (((w = f.data) == null ? void 0 : w.type) === "prime-microservice:overlay") {
10716
10728
  window.dispatchEvent(
10717
10729
  new CustomEvent("prime-auth:microservice-overlay", {
10718
10730
  detail: { active: !!f.data.active }
@@ -11036,7 +11048,7 @@ function mu({
11036
11048
  const l = ((u = (c = o[0]) == null ? void 0 : c.payload) == null ? void 0 : u.fullName) ?? ((f = (m = o[0]) == null ? void 0 : m.payload) == null ? void 0 : f.tooltipLabel) ?? ((b = (p = o[0]) == null ? void 0 : p.payload) == null ? void 0 : b.display), s = typeof l == "string" && l.length > 0 ? l : r;
11037
11049
  return /* @__PURE__ */ i("div", { className: "bonsaif-chart-tooltip-panel", children: [
11038
11050
  s != null && s !== "" ? /* @__PURE__ */ t("div", { className: "bonsaif-chart-tooltip-label", children: String(s) }) : null,
11039
- /* @__PURE__ */ t("div", { className: "bonsaif-chart-tooltip-items", children: o.map((N, y) => {
11051
+ /* @__PURE__ */ t("div", { className: "bonsaif-chart-tooltip-items", children: o.map((N, w) => {
11040
11052
  const k = N.payload, g = k && typeof k.display == "number" ? k.display : N.value;
11041
11053
  return /* @__PURE__ */ i(
11042
11054
  "div",
@@ -11056,7 +11068,7 @@ function mu({
11056
11068
  /* @__PURE__ */ t("span", { className: "bonsaif-chart-tooltip-value", children: uu(g, a) })
11057
11069
  ]
11058
11070
  },
11059
- String(N.dataKey ?? N.name ?? y)
11071
+ String(N.dataKey ?? N.name ?? w)
11060
11072
  );
11061
11073
  }) })
11062
11074
  ] });
@@ -11104,19 +11116,19 @@ function _n(e, r, n = {}) {
11104
11116
  zoomMode: o = "both",
11105
11117
  brushHeight: l = 28,
11106
11118
  onZoomChange: s
11107
- } = n, [c, u] = W(null), [m, f] = W(null), p = !!a && e.length > 1, b = p && (o === "brush" || o === "both"), N = p && (o === "drag" || o === "both"), y = ge(
11119
+ } = n, [c, u] = W(null), [m, f] = W(null), p = !!a && e.length > 1, b = p && (o === "brush" || o === "both"), N = p && (o === "drag" || o === "both"), w = ge(
11108
11120
  (U) => {
11109
11121
  u(U), s == null || s(U);
11110
11122
  },
11111
11123
  [s]
11112
11124
  ), k = ge(() => {
11113
- f(null), y(null);
11114
- }, [y]), g = !!c, C = Ue(() => !c || b ? e : e.slice(c.startIndex, c.endIndex + 1), [e, b, c]), D = ge(
11125
+ f(null), w(null);
11126
+ }, [w]), g = !!c, C = Ue(() => !c || b ? e : e.slice(c.startIndex, c.endIndex + 1), [e, b, c]), D = ge(
11115
11127
  (U, E) => {
11116
11128
  const V = Jo(e, r, U), z = Jo(e, r, E);
11117
- V < 0 || z < 0 || y(Qo(V, z, e.length));
11129
+ V < 0 || z < 0 || w(Qo(V, z, e.length));
11118
11130
  },
11119
- [y, e, r]
11131
+ [w, e, r]
11120
11132
  ), M = ge(
11121
11133
  (U) => {
11122
11134
  N && ((U == null ? void 0 : U.activeLabel) === void 0 || (U == null ? void 0 : U.activeLabel) === null || f({ leftLabel: U.activeLabel, rightLabel: U.activeLabel }));
@@ -11141,10 +11153,10 @@ function _n(e, r, n = {}) {
11141
11153
  (U) => {
11142
11154
  if (b) {
11143
11155
  if (!U) {
11144
- y(null);
11156
+ w(null);
11145
11157
  return;
11146
11158
  }
11147
- y(
11159
+ w(
11148
11160
  Qo(
11149
11161
  U.startIndex ?? 0,
11150
11162
  U.endIndex ?? e.length - 1,
@@ -11153,7 +11165,7 @@ function _n(e, r, n = {}) {
11153
11165
  );
11154
11166
  }
11155
11167
  },
11156
- [y, e.length, b]
11168
+ [w, e.length, b]
11157
11169
  ), j = N ? {
11158
11170
  onMouseDown: M,
11159
11171
  onMouseMove: H,
@@ -11233,7 +11245,7 @@ function Em({
11233
11245
  valueFormat: p = ft,
11234
11246
  yDomain: b,
11235
11247
  ariaLabel: N = "Gráfico de líneas",
11236
- curve: y = !0,
11248
+ curve: w = !0,
11237
11249
  strokeWidth: k = 2.25,
11238
11250
  zoomable: g = !1,
11239
11251
  zoomMode: C = "both",
@@ -11313,7 +11325,7 @@ function Em({
11313
11325
  $.map((I, P) => /* @__PURE__ */ t(
11314
11326
  mi,
11315
11327
  {
11316
- type: y ? "monotone" : "linear",
11328
+ type: w ? "monotone" : "linear",
11317
11329
  dataKey: I.key,
11318
11330
  name: I.label,
11319
11331
  stroke: I.color,
@@ -11353,7 +11365,7 @@ function Ba({
11353
11365
  valueFormat: p = ft,
11354
11366
  yDomain: b,
11355
11367
  ariaLabel: N = "Gráfico de área",
11356
- stacked: y = !1,
11368
+ stacked: w = !1,
11357
11369
  opacity: k = 0.22,
11358
11370
  zoomable: g = !1,
11359
11371
  zoomMode: C = "both",
@@ -11469,7 +11481,7 @@ function Ba({
11469
11481
  stroke: I.color,
11470
11482
  fill: `url(#${Xo(I.key)})`,
11471
11483
  strokeWidth: 2.25,
11472
- stackId: y ? "stack" : void 0,
11484
+ stackId: w ? "stack" : void 0,
11473
11485
  isAnimationActive: !0,
11474
11486
  animationDuration: qt,
11475
11487
  animationEasing: Ut,
@@ -11504,7 +11516,7 @@ function Cm({
11504
11516
  valueFormat: p = ft,
11505
11517
  yDomain: b,
11506
11518
  ariaLabel: N = "Gráfico de barras",
11507
- layout: y = "vertical",
11519
+ layout: w = "vertical",
11508
11520
  mode: k = "grouped",
11509
11521
  barRadius: g = 6,
11510
11522
  categoryAxisWidth: C = 64,
@@ -11513,7 +11525,7 @@ function Cm({
11513
11525
  brushHeight: H,
11514
11526
  onZoomChange: $
11515
11527
  }) {
11516
- const S = Pn(e, n), j = _r(n), I = y === "horizontal", P = _n(e, r, {
11528
+ const S = Pn(e, n), j = _r(n), I = w === "horizontal", P = _n(e, r, {
11517
11529
  zoomable: D && !I,
11518
11530
  zoomMode: M,
11519
11531
  brushHeight: H,
@@ -11672,7 +11684,7 @@ function Ri({
11672
11684
  innerRadius: p,
11673
11685
  outerRadius: b,
11674
11686
  colors: N = [...$a],
11675
- padAngle: y,
11687
+ padAngle: w,
11676
11688
  cornerRadius: k,
11677
11689
  variant: g
11678
11690
  }) {
@@ -11682,7 +11694,7 @@ function Ri({
11682
11694
  fill: N[V % N.length],
11683
11695
  row: E
11684
11696
  })).filter((E) => E.value > 0), D = !C.length, M = g === "donut", H = C.length, $ = ei(p, M ? 62 : 12), S = ei(b, 78), j = Math.min(
11685
- y ?? (M ? 2 : 3),
11697
+ w ?? (M ? 2 : 3),
11686
11698
  Math.max(0.5, 10 / Math.max(1, H))
11687
11699
  ), I = Math.min(
11688
11700
  k ?? (M ? 10 : 8),
@@ -11790,8 +11802,8 @@ function Mm({
11790
11802
  "aria-label": u
11791
11803
  }
11792
11804
  );
11793
- const p = 120, b = 36, N = 3, y = 1, k = Math.min(...f), C = Math.max(...f) - k || 1, D = f.map((S, j) => {
11794
- const I = y + j / (f.length - 1) * (p - y * 2), P = b - N - (S - k) / C * (b - N * 2);
11805
+ const p = 120, b = 36, N = 3, w = 1, k = Math.min(...f), C = Math.max(...f) - k || 1, D = f.map((S, j) => {
11806
+ const I = w + j / (f.length - 1) * (p - w * 2), P = b - N - (S - k) / C * (b - N * 2);
11795
11807
  return { x: I, y: P };
11796
11808
  }), M = D.map((S, j) => `${j === 0 ? "M" : "L"}${S.x.toFixed(2)} ${S.y.toFixed(2)}`).join(" "), H = `${M} L${D[D.length - 1].x.toFixed(2)} ${b} L${D[0].x.toFixed(2)} ${b} Z`, $ = `bonsaif-spark-${r.replace(/[^a-zA-Z0-9_-]/g, "")}-${o}`;
11797
11809
  return /* @__PURE__ */ t(
@@ -11848,7 +11860,7 @@ function Am({
11848
11860
  showTooltip: p = !0,
11849
11861
  margin: b,
11850
11862
  valueFormat: N = ft,
11851
- yDomain: y,
11863
+ yDomain: w,
11852
11864
  ariaLabel: k = "Gráfico combinado",
11853
11865
  barRadius: g = 6,
11854
11866
  zoomable: C = !1,
@@ -11917,7 +11929,7 @@ function Am({
11917
11929
  tickLine: !1,
11918
11930
  axisLine: !1,
11919
11931
  width: 44,
11920
- domain: y ?? ["auto", "auto"],
11932
+ domain: w ?? ["auto", "auto"],
11921
11933
  tickFormatter: (z) => N(Number(z)),
11922
11934
  dx: -2
11923
11935
  }
@@ -12000,7 +12012,7 @@ function Tm({
12000
12012
  valueFormat: p = ft,
12001
12013
  ariaLabel: b = "Gráfico waterfall",
12002
12014
  increaseColor: N = "#34d399",
12003
- decreaseColor: y = "#f87171",
12015
+ decreaseColor: w = "#f87171",
12004
12016
  totalColor: k = "var(--primary)"
12005
12017
  }) {
12006
12018
  const g = Ue(
@@ -12009,10 +12021,10 @@ function Tm({
12009
12021
  valueKey: n,
12010
12022
  typeKey: a,
12011
12023
  increaseColor: N,
12012
- decreaseColor: y,
12024
+ decreaseColor: w,
12013
12025
  totalColor: k
12014
12026
  }),
12015
- [e, r, n, a, N, y, k]
12027
+ [e, r, n, a, N, w, k]
12016
12028
  ), C = !g.length, D = Wr(f);
12017
12029
  return s ? /* @__PURE__ */ t(nt, { height: o }) : C ? /* @__PURE__ */ t(at, { height: o, text: c }) : /* @__PURE__ */ t(
12018
12030
  "div",
@@ -12121,16 +12133,16 @@ function Dm({
12121
12133
  color: p,
12122
12134
  thresholds: b,
12123
12135
  ariaLabel: N = "Gauge",
12124
- animationDuration: y = 700,
12136
+ animationDuration: w = 700,
12125
12137
  thickness: k = 9,
12126
12138
  showScale: g = !1
12127
12139
  }) {
12128
12140
  const C = ni().replace(/:/g, ""), D = n - r || 1, M = Math.min(1, Math.max(0, (e - r) / D)), [H, $] = W(
12129
- y > 0 ? 0 : M
12141
+ w > 0 ? 0 : M
12130
12142
  );
12131
12143
  if (ae(() => {
12132
12144
  if (l || s) return;
12133
- if (y <= 0) {
12145
+ if (w <= 0) {
12134
12146
  $(M);
12135
12147
  return;
12136
12148
  }
@@ -12141,11 +12153,11 @@ function Dm({
12141
12153
  let Y = 0, T = 0;
12142
12154
  $((A) => (T = A, A));
12143
12155
  const Z = performance.now(), le = (A) => {
12144
- const R = Math.min(1, (A - Z) / y), te = 1 - (1 - R) ** 3;
12156
+ const R = Math.min(1, (A - Z) / w), te = 1 - (1 - R) ** 3;
12145
12157
  $(T + (M - T) * te), R < 1 && (Y = requestAnimationFrame(le));
12146
12158
  };
12147
12159
  return Y = requestAnimationFrame(le), () => cancelAnimationFrame(Y);
12148
- }, [M, y, l, s]), l) return /* @__PURE__ */ t(nt, { height: a });
12160
+ }, [M, w, l, s]), l) return /* @__PURE__ */ t(nt, { height: a });
12149
12161
  if (s) return /* @__PURE__ */ t(at, { height: a, text: c });
12150
12162
  const S = 100, j = 108, I = 72, P = p ?? pu(e, n, f, b), K = r + H * D, U = ti(S, j, I, ur, ur + ya), E = ur + Math.max(1e-3, H) * ya, V = ti(S, j, I, ur, E), z = Bn(S, j, I, ur), O = Bn(S, j, I, ur + ya);
12151
12163
  return /* @__PURE__ */ t(
@@ -12293,7 +12305,7 @@ function Bm({
12293
12305
  valueFormat: p = ft,
12294
12306
  tone: b = "primary",
12295
12307
  showScale: N = !0,
12296
- showStatus: y = !0,
12308
+ showStatus: w = !0,
12297
12309
  ariaLabel: k = "Bullet chart"
12298
12310
  }) {
12299
12311
  if (s) return /* @__PURE__ */ t(nt, { height: o });
@@ -12446,7 +12458,7 @@ function Bm({
12446
12458
  ]
12447
12459
  }
12448
12460
  ),
12449
- y ? /* @__PURE__ */ t(
12461
+ w ? /* @__PURE__ */ t(
12450
12462
  "div",
12451
12463
  {
12452
12464
  className: "bonsaif-bullet-status mt-1.5 inline-flex text-[10px] font-bold uppercase tracking-wide",
@@ -12475,7 +12487,7 @@ function Im({
12475
12487
  showTooltip: p = !0,
12476
12488
  thresholds: b,
12477
12489
  label: N = "CPU",
12478
- ariaLabel: y = "Uso de CPU"
12490
+ ariaLabel: w = "Uso de CPU"
12479
12491
  }) {
12480
12492
  var $;
12481
12493
  const k = o ?? [
@@ -12496,7 +12508,7 @@ function Im({
12496
12508
  {
12497
12509
  className: `bonsaif-chart bonsaif-cpu-chart w-full ${c}`,
12498
12510
  role: "group",
12499
- "aria-label": y,
12511
+ "aria-label": w,
12500
12512
  children: [
12501
12513
  /* @__PURE__ */ i("div", { className: "bonsaif-metric-head", children: [
12502
12514
  /* @__PURE__ */ i("div", { className: "min-w-0", children: [
@@ -12537,7 +12549,7 @@ function Im({
12537
12549
  showLegend: f,
12538
12550
  showTooltip: p,
12539
12551
  valueFormat: (S) => zr(S, 0),
12540
- ariaLabel: y,
12552
+ ariaLabel: w,
12541
12553
  opacity: 0.22,
12542
12554
  margin: { top: 8, right: 8, bottom: 4, left: 0 }
12543
12555
  }
@@ -12561,7 +12573,7 @@ function Om({
12561
12573
  showTooltip: p = !0,
12562
12574
  thresholds: b,
12563
12575
  label: N = "RAM",
12564
- ariaLabel: y = "Uso de memoria"
12576
+ ariaLabel: w = "Uso de memoria"
12565
12577
  }) {
12566
12578
  const k = r > 0 ? r : 1, g = Math.min(100, Math.max(0, e / k * 100)), C = !u && !(Number.isFinite(e) && Number.isFinite(r) && r > 0);
12567
12579
  if (u) return /* @__PURE__ */ t(nt, { height: s });
@@ -12572,7 +12584,7 @@ function Om({
12572
12584
  {
12573
12585
  className: `bonsaif-chart bonsaif-ram-chart w-full ${c}`,
12574
12586
  role: "group",
12575
- "aria-label": y,
12587
+ "aria-label": w,
12576
12588
  children: [
12577
12589
  /* @__PURE__ */ i("div", { className: "bonsaif-metric-head", children: [
12578
12590
  /* @__PURE__ */ i("div", { className: "min-w-0", children: [
@@ -12672,7 +12684,7 @@ function Om({
12672
12684
  showLegend: !1,
12673
12685
  showTooltip: p,
12674
12686
  valueFormat: (I) => zr(I, 0),
12675
- ariaLabel: `${y} — historial`,
12687
+ ariaLabel: `${w} — historial`,
12676
12688
  opacity: 0.22,
12677
12689
  margin: { top: 8, right: 8, bottom: 4, left: 0 }
12678
12690
  }
@@ -12697,7 +12709,7 @@ function Rm({
12697
12709
  height: p = 240,
12698
12710
  className: b = "",
12699
12711
  loading: N = !1,
12700
- emptyText: y = "Sin datos de red",
12712
+ emptyText: w = "Sin datos de red",
12701
12713
  showLegend: k = !1,
12702
12714
  showTooltip: g = !0,
12703
12715
  label: C = "Network",
@@ -12705,7 +12717,7 @@ function Rm({
12705
12717
  }) {
12706
12718
  const M = o ?? fr(e, n) ?? 0, H = l ?? fr(e, a) ?? 0, $ = !N && e.length === 0;
12707
12719
  if (N) return /* @__PURE__ */ t(nt, { height: p });
12708
- if ($) return /* @__PURE__ */ t(at, { height: p, text: y });
12720
+ if ($) return /* @__PURE__ */ t(at, { height: p, text: w });
12709
12721
  const S = (P) => cu(P, s), I = Math.max(140, p - 76);
12710
12722
  return /* @__PURE__ */ i(
12711
12723
  "div",