bonsaif-ui 0.1.40 → 0.1.41

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.
@@ -160,32 +160,32 @@ function Ut({
160
160
  tooltipStyle: w,
161
161
  as: k = "div"
162
162
  }) {
163
- const f = se(null), C = se(null), N = se(null), x = se(!1), [y, A] = L(null), [K, B] = L("");
163
+ const f = se(null), C = se(null), N = se(null), x = se(!1), [y, A] = L(null), [Y, B] = L("");
164
164
  Q(() => {
165
165
  const S = f.current;
166
166
  S && (S.querySelectorAll("[title]").forEach((O) => {
167
- const _ = O.getAttribute("title");
168
- _ && (O.getAttribute("aria-label") || O.setAttribute("aria-label", _), O.removeAttribute("title"));
167
+ const R = O.getAttribute("title");
168
+ R && (O.getAttribute("aria-label") || O.setAttribute("aria-label", R), O.removeAttribute("title"));
169
169
  }), S.querySelectorAll("svg title").forEach((O) => O.remove()));
170
170
  }), Ao(() => {
171
171
  if (!y) return;
172
172
  const S = C.current;
173
173
  if (!S) return;
174
- const O = 12, _ = 14, I = S.getBoundingClientRect(), ee = window.innerWidth - I.width - O, z = window.innerHeight - I.height - O;
175
- let h = y.mouseX + _, R = y.mouseY + _, q, ae;
174
+ const O = 12, R = 14, I = S.getBoundingClientRect(), ee = window.innerWidth - I.width - O, H = window.innerHeight - I.height - O;
175
+ let h = y.mouseX + R, _ = y.mouseY + R, q, ae;
176
176
  if (!i && f.current) {
177
177
  const re = f.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
178
- c === "top" ? (h = ve - I.width / 2, R = re.top - I.height - _, ae = I.height - 1) : c === "left" ? (h = re.left - I.width - _, R = M - I.height / 2, q = I.width - 1) : c === "right" ? (h = re.right + _, R = M - I.height / 2, q = -7) : (h = ve - I.width / 2, R = re.bottom + _, ae = -7);
178
+ c === "top" ? (h = ve - I.width / 2, _ = re.top - I.height - R, ae = I.height - 1) : c === "left" ? (h = re.left - I.width - R, _ = M - I.height / 2, q = I.width - 1) : c === "right" ? (h = re.right + R, _ = M - I.height / 2, q = -7) : (h = ve - I.width / 2, _ = re.bottom + R, ae = -7);
179
179
  }
180
- if (i && (h > ee && (h = y.mouseX - I.width - _), R > z && (R = y.mouseY - I.height - _)), h = Math.min(Math.max(O, h), Math.max(O, ee)), R = Math.min(Math.max(O, R), Math.max(O, z)), !i && f.current) {
180
+ if (i && (h > ee && (h = y.mouseX - I.width - R), _ > H && (_ = y.mouseY - I.height - R)), h = Math.min(Math.max(O, h), Math.max(O, ee)), _ = Math.min(Math.max(O, _), Math.max(O, H)), !i && f.current) {
181
181
  const re = f.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
182
- c === "top" || c === "bottom" ? q = Math.min(Math.max(14, ve - h), I.width - 14) : ae = Math.min(Math.max(14, M - R), I.height - 14);
182
+ c === "top" || c === "bottom" ? q = Math.min(Math.max(14, ve - h), I.width - 14) : ae = Math.min(Math.max(14, M - _), I.height - 14);
183
183
  }
184
- (Math.abs(h - y.x) > 0.5 || Math.abs(R - y.y) > 0.5 || q !== y.arrowX || ae !== y.arrowY) && A(
184
+ (Math.abs(h - y.x) > 0.5 || Math.abs(_ - y.y) > 0.5 || q !== y.arrowX || ae !== y.arrowY) && A(
185
185
  (re) => re && {
186
186
  ...re,
187
187
  x: h,
188
- y: R,
188
+ y: _,
189
189
  arrowX: q,
190
190
  arrowY: ae
191
191
  }
@@ -193,32 +193,32 @@ function Ut({
193
193
  }, [i, c, y]);
194
194
  const V = () => {
195
195
  N.current && (window.clearTimeout(N.current), N.current = null);
196
- }, E = (S, O) => {
196
+ }, $ = (S, O) => {
197
197
  if (!Sl() || x.current) return;
198
- const _ = f.current;
199
- if (_ && !hr(_)) {
198
+ const R = f.current;
199
+ if (R && !hr(R)) {
200
200
  if (a) {
201
- const I = El(_);
201
+ const I = El(R);
202
202
  if (!I) return;
203
203
  B(I);
204
204
  }
205
205
  !a && !r || A({ mouseX: S, mouseY: O, x: S + 14, y: O + 14 });
206
206
  }
207
- }, H = () => {
207
+ }, j = () => {
208
208
  const S = f.current;
209
209
  if (!S) return;
210
210
  const O = S.getBoundingClientRect();
211
- E(O.left + O.width / 2, O.bottom);
212
- }, Y = () => {
211
+ $(O.left + O.width / 2, O.bottom);
212
+ }, K = () => {
213
213
  V(), A(null);
214
214
  }, X = () => {
215
215
  if (!n) {
216
- Y();
216
+ K();
217
217
  return;
218
218
  }
219
219
  V(), N.current = window.setTimeout(() => A(null), 120);
220
- }, j = () => {
221
- fr(), x.current = !0, Y();
220
+ }, F = () => {
221
+ fr(), x.current = !0, K();
222
222
  }, U = () => {
223
223
  x.current = !1;
224
224
  };
@@ -232,16 +232,16 @@ function Ut({
232
232
  fr(), x.current = !0, A(null);
233
233
  };
234
234
  document.addEventListener("pointerdown", O, !0), document.addEventListener("click", O, !0), document.addEventListener("scroll", S, !0), window.addEventListener("blur", S), document.addEventListener("visibilitychange", S), document.addEventListener("keydown", S, !0);
235
- const _ = new MutationObserver(() => {
235
+ const R = new MutationObserver(() => {
236
236
  hr(f.current) && A(null);
237
237
  });
238
- return _.observe(document.body, {
238
+ return R.observe(document.body, {
239
239
  childList: !0,
240
240
  subtree: !0,
241
241
  attributes: !0,
242
242
  attributeFilter: ["role", "aria-modal", "aria-hidden", "class"]
243
243
  }), () => {
244
- document.removeEventListener("pointerdown", O, !0), document.removeEventListener("click", O, !0), document.removeEventListener("scroll", S, !0), window.removeEventListener("blur", S), document.removeEventListener("visibilitychange", S), document.removeEventListener("keydown", S, !0), _.disconnect();
244
+ document.removeEventListener("pointerdown", O, !0), document.removeEventListener("click", O, !0), document.removeEventListener("scroll", S, !0), window.removeEventListener("blur", S), document.removeEventListener("visibilitychange", S), document.removeEventListener("keydown", S, !0), R.disconnect();
245
245
  };
246
246
  }, [y]), Q(() => {
247
247
  const S = () => fr(), O = () => {
@@ -254,7 +254,7 @@ function Ut({
254
254
  );
255
255
  };
256
256
  }, []);
257
- const G = a ? K : r;
257
+ const G = a ? Y : r;
258
258
  return /* @__PURE__ */ l(ze, { children: [
259
259
  /* @__PURE__ */ t(
260
260
  k,
@@ -265,18 +265,18 @@ function Ut({
265
265
  className: m,
266
266
  style: p,
267
267
  onMouseEnter: (S) => {
268
- V(), U(), i ? E(S.clientX, S.clientY) : H();
268
+ V(), U(), i ? $(S.clientX, S.clientY) : j();
269
269
  },
270
270
  onMouseMove: (S) => {
271
- y && i && E(S.clientX, S.clientY);
271
+ y && i && $(S.clientX, S.clientY);
272
272
  },
273
- onMouseDown: j,
274
- onClick: j,
273
+ onMouseDown: F,
274
+ onClick: F,
275
275
  onMouseLeave: () => {
276
276
  U(), X();
277
277
  },
278
- onFocus: H,
279
- onBlur: Y,
278
+ onFocus: j,
279
+ onBlur: K,
280
280
  children: e
281
281
  }
282
282
  ),
@@ -385,23 +385,23 @@ function Be({
385
385
  style: k,
386
386
  ...f
387
387
  }) {
388
- const C = Do(Sn), N = c ?? C.iconOnly ?? e === "icon", x = C.compact ?? !1, y = C.headerAction ?? !1, A = y && r === "md" ? "sm" : x && !y && r === "md" ? "xs" : r, K = e === "icon" || N, B = y && K, V = oa(b), E = i ?? f.title ?? f["aria-label"] ?? (N ? V : void 0), H = E ? void 0 : f.title, Y = f["aria-label"] ?? (typeof E == "string" ? E : V || void 0), X = a ? null : n ?? (N ? Bl(b) : null), j = /* @__PURE__ */ l(
388
+ const C = Do(Sn), N = c ?? C.iconOnly ?? e === "icon", x = C.compact ?? !1, y = C.headerAction ?? !1, A = y && r === "md" ? "sm" : x && !y && r === "md" ? "xs" : r, Y = e === "icon" || N, B = y && Y, V = oa(b), $ = i ?? f.title ?? f["aria-label"] ?? (N ? V : void 0), j = $ ? void 0 : f.title, K = f["aria-label"] ?? (typeof $ == "string" ? $ : V || void 0), X = a ? null : n ?? (N ? Bl(b) : null), F = /* @__PURE__ */ l(
389
389
  "button",
390
390
  {
391
391
  ...f,
392
- title: H,
393
- "aria-label": Y,
392
+ title: j,
393
+ "aria-label": K,
394
394
  "data-variant": e,
395
395
  "data-size": A,
396
- "data-icon": K ? "true" : void 0,
396
+ "data-icon": Y ? "true" : void 0,
397
397
  disabled: w || a,
398
- className: `${$l} ${B ? Ml : Ll[e]} ${K ? Al[A] : Tl[A]} ${x && !K ? "px-2.5" : ""} ${p}`,
398
+ className: `${$l} ${B ? Ml : Ll[e]} ${Y ? Al[A] : Tl[A]} ${x && !Y ? "px-2.5" : ""} ${p}`,
399
399
  style: {
400
400
  ...Dl[e],
401
401
  height: Ya(d),
402
402
  padding: Ya(m),
403
403
  ...k,
404
- ...y && !K ? {
404
+ ...y && !Y ? {
405
405
  height: "var(--page-header-control-height, 34px)",
406
406
  padding: "0 var(--page-header-control-padding-x, 10px)",
407
407
  borderRadius: "8px"
@@ -420,15 +420,15 @@ function Be({
420
420
  ]
421
421
  }
422
422
  );
423
- return E ? /* @__PURE__ */ t(
423
+ return $ ? /* @__PURE__ */ t(
424
424
  Ut,
425
425
  {
426
426
  as: "span",
427
- content: E,
427
+ content: $,
428
428
  className: "inline-flex shrink-0",
429
- children: j
429
+ children: F
430
430
  }
431
- ) : j;
431
+ ) : F;
432
432
  }
433
433
  function Ol({
434
434
  variant: e = "page",
@@ -577,48 +577,48 @@ function js({
577
577
  emptyState: x,
578
578
  loadingState: y,
579
579
  errorState: A = Fl,
580
- renderTabLabel: K,
580
+ renderTabLabel: Y,
581
581
  searchableTabs: B = "auto",
582
582
  tabsSearchThreshold: V = 6,
583
- tabsSearchPlaceholder: E = "Buscar modulo...",
584
- tabsSearchValue: H,
585
- onTabsSearchChange: Y,
583
+ tabsSearchPlaceholder: $ = "Buscar modulo...",
584
+ tabsSearchValue: j,
585
+ onTabsSearchChange: K,
586
586
  emptySearchState: X,
587
- showTabCount: j = !0,
587
+ showTabCount: F = !0,
588
588
  className: U = "",
589
589
  parentClassName: G = "",
590
590
  contentClassName: S = "",
591
591
  tabsClassName: O = ""
592
592
  }) {
593
593
  var qe;
594
- const _ = it(
594
+ const R = it(
595
595
  () => c.filter(
596
596
  (Z) => !Z.hidden && ((k == null ? void 0 : k(Z, i)) ?? !0)
597
597
  ),
598
598
  [k, i, c]
599
- ), I = (qe = _.find(
599
+ ), I = (qe = R.find(
600
600
  (Z) => !Z.disabled
601
- )) == null ? void 0 : qe.service, [ee, z] = L(
601
+ )) == null ? void 0 : qe.service, [ee, H] = L(
602
602
  p ?? I ?? ""
603
- ), [h, R] = L({}), [q, ae] = L({}), [re, ve] = L(""), [M, me] = L(!1), T = se(q), ie = se(0), pe = H ?? re, W = Ga(pe), te = B === !0 || B === "auto" && _.length >= V, J = te && pe.trim().length > 0, ne = it(() => W ? _.filter(
603
+ ), [h, _] = L({}), [q, ae] = L({}), [re, ve] = L(""), [M, me] = L(!1), T = se(q), ie = se(0), pe = j ?? re, W = Ga(pe), te = B === !0 || B === "auto" && R.length >= V, J = te && pe.trim().length > 0, ne = it(() => W ? R.filter(
604
604
  (Z) => Ga(jl(Z)).includes(W)
605
- ) : _, [W, _]), xe = b ?? ee, le = _.find((Z) => Z.service === xe) ?? _.find((Z) => !Z.disabled);
605
+ ) : R, [W, R]), xe = b ?? ee, le = R.find((Z) => Z.service === xe) ?? R.find((Z) => !Z.disabled);
606
606
  Q(() => {
607
- !le && I && z(I);
607
+ !le && I && H(I);
608
608
  }, [I, le]), Q(() => {
609
609
  T.current = q;
610
610
  }, [q]);
611
- const $ = (Z) => {
612
- Z.disabled || (b || z(Z.service), w == null || w(Z.service, Z));
611
+ const E = (Z) => {
612
+ Z.disabled || (b || H(Z.service), w == null || w(Z.service, Z));
613
613
  }, P = (Z) => {
614
- H === void 0 && ve(Z), Y == null || Y(Z);
614
+ j === void 0 && ve(Z), K == null || K(Z);
615
615
  }, ce = (Z, Me) => {
616
616
  const Te = ne.filter((De) => !De.disabled), _e = Te.findIndex(
617
617
  (De) => De.service === Me.service
618
618
  );
619
- _e < 0 || ((Z.key === "ArrowRight" || Z.key === "ArrowDown") && (Z.preventDefault(), $(Te[(_e + 1) % Te.length])), (Z.key === "ArrowLeft" || Z.key === "ArrowUp") && (Z.preventDefault(), $(
619
+ _e < 0 || ((Z.key === "ArrowRight" || Z.key === "ArrowDown") && (Z.preventDefault(), E(Te[(_e + 1) % Te.length])), (Z.key === "ArrowLeft" || Z.key === "ArrowUp") && (Z.preventDefault(), E(
620
620
  Te[(_e - 1 + Te.length) % Te.length]
621
- )), Z.key === "Home" && (Z.preventDefault(), $(Te[0])), Z.key === "End" && (Z.preventDefault(), $(Te[Te.length - 1])));
621
+ )), Z.key === "Home" && (Z.preventDefault(), E(Te[0])), Z.key === "End" && (Z.preventDefault(), E(Te[Te.length - 1])));
622
622
  }, de = Ce(() => {
623
623
  if (!le) return;
624
624
  const Z = le.service, Me = T.current[Z];
@@ -655,12 +655,12 @@ function js({
655
655
  }, [i, f, m, d, le]);
656
656
  Q(de, [de]);
657
657
  const Se = le ? h[le.service] ?? null : null, be = le ? q[le.service] : void 0, Ee = be == null ? void 0 : be.component, Ne = (Z) => {
658
- le && R((Me) => ({
658
+ le && _((Me) => ({
659
659
  ...Me,
660
660
  [le.service]: Z
661
661
  }));
662
662
  }, ue = () => {
663
- le && R((Z) => ({
663
+ le && _((Z) => ({
664
664
  ...Z,
665
665
  [le.service]: null
666
666
  }));
@@ -668,13 +668,13 @@ function js({
668
668
  context: i,
669
669
  parent: n,
670
670
  links: c,
671
- visibleLinks: _,
671
+ visibleLinks: R,
672
672
  filteredLinks: ne,
673
673
  selectedLink: le,
674
674
  selectedService: le == null ? void 0 : le.service,
675
675
  activeItemId: Se,
676
676
  tabsSearch: pe,
677
- onSelectService: $,
677
+ onSelectService: E,
678
678
  onOpenDetail: Ne,
679
679
  onBackToList: ue
680
680
  }, Qe = a ? a(Fe) : r ? /* @__PURE__ */ t(r, { ...Fe }) : e;
@@ -695,16 +695,16 @@ function js({
695
695
  {
696
696
  className: `relative min-w-0 overflow-visible rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${S}`,
697
697
  children: [
698
- (C || N || te || j) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ l("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
698
+ (C || N || te || F) && /* @__PURE__ */ t("div", { className: "relative border-b border-[var(--border)] px-4 py-3", children: /* @__PURE__ */ l("div", { className: "flex min-w-0 items-start justify-between gap-3", children: [
699
699
  /* @__PURE__ */ l("div", { className: "min-w-0", children: [
700
700
  C && /* @__PURE__ */ t("h2", { className: "truncate text-sm font-semibold text-[var(--text-main)]", children: C }),
701
701
  N && /* @__PURE__ */ t("p", { className: "mt-1 line-clamp-2 text-xs text-[var(--text-muted)]", children: N })
702
702
  ] }),
703
- (te || j) && /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-shrink-0 items-center justify-end gap-2", children: [
704
- j && /* @__PURE__ */ l("span", { className: "hidden text-xs font-semibold text-[var(--text-muted)] transition-opacity duration-200 sm:inline", children: [
703
+ (te || F) && /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-shrink-0 items-center justify-end gap-2", children: [
704
+ F && /* @__PURE__ */ l("span", { className: "hidden text-xs font-semibold text-[var(--text-muted)] transition-opacity duration-200 sm:inline", children: [
705
705
  ne.length,
706
706
  " / ",
707
- _.length
707
+ R.length
708
708
  ] }),
709
709
  te && /* @__PURE__ */ l(ze, { children: [
710
710
  /* @__PURE__ */ t(
@@ -717,7 +717,7 @@ function js({
717
717
  {
718
718
  value: pe,
719
719
  onChange: P,
720
- placeholder: E,
720
+ placeholder: $,
721
721
  className: "w-full",
722
722
  autoFocus: M,
723
723
  forceExpanded: !0,
@@ -759,10 +759,10 @@ function js({
759
759
  role: "tab",
760
760
  "aria-selected": Me,
761
761
  disabled: Z.disabled,
762
- onClick: () => $(Z),
762
+ onClick: () => E(Z),
763
763
  onKeyDown: (Te) => ce(Te, Z),
764
764
  className: `inline-flex h-9 min-w-max items-center gap-2 rounded-md border px-3 text-xs font-semibold transition-all duration-200 disabled:cursor-not-allowed disabled:opacity-50 ${Me ? "border-[var(--primary)] bg-[var(--bg-card)] text-[var(--text-main)] shadow-sm" : "border-transparent text-[var(--text-muted)] hover:bg-[var(--bg-card)] hover:text-[var(--text-main)]"}`,
765
- children: K ? K(Z, Me) : /* @__PURE__ */ l(ze, { children: [
765
+ children: Y ? Y(Z, Me) : /* @__PURE__ */ l(ze, { children: [
766
766
  Z.icon,
767
767
  /* @__PURE__ */ t("span", { children: Z.label ?? Ln(Z.service) }),
768
768
  Z.badge && /* @__PURE__ */ t("span", { className: "rounded-full bg-[var(--bg-input)] px-1.5 py-0.5 text-[10px] text-[var(--text-muted)]", children: Z.badge })
@@ -922,40 +922,40 @@ function Fs({
922
922
  const i = Wl(), d = Tn(e || i), m = n === "popover", [b, p] = L(!1), w = se(null), [k, f] = L({
923
923
  horizontal: "left",
924
924
  vertical: "bottom"
925
- }), [C, N] = L(d.year), [x, y] = L(d.month), [A, K] = L("days"), B = 16, [V, E] = L(0), H = C - 7 + V, Y = Array.from({ length: B }, (z, h) => H + h);
925
+ }), [C, N] = L(d.year), [x, y] = L(d.month), [A, Y] = L("days"), B = 16, [V, $] = L(0), j = C - 7 + V, K = Array.from({ length: B }, (H, h) => j + h);
926
926
  Q(() => {
927
927
  if (!m || !b || !w.current) return;
928
- const z = w.current.getBoundingClientRect(), h = 8, R = 280, q = 340, ae = z.left + R > window.innerWidth - h, re = z.right - R >= h, ve = z.bottom + 8 + q > window.innerHeight - h, M = z.top - 8 - q >= h;
928
+ const H = w.current.getBoundingClientRect(), h = 8, _ = 280, q = 340, ae = H.left + _ > window.innerWidth - h, re = H.right - _ >= h, ve = H.bottom + 8 + q > window.innerHeight - h, M = H.top - 8 - q >= h;
929
929
  f({
930
930
  horizontal: ae && re ? "right" : "left",
931
931
  vertical: ve && M ? "top" : "bottom"
932
932
  });
933
933
  }, [m, b]), Q(() => {
934
934
  if (!m || !b) return;
935
- function z(R) {
936
- w.current && (w.current.contains(R.target) || p(!1));
935
+ function H(_) {
936
+ w.current && (w.current.contains(_.target) || p(!1));
937
937
  }
938
- function h(R) {
939
- R.key === "Escape" && p(!1);
938
+ function h(_) {
939
+ _.key === "Escape" && p(!1);
940
940
  }
941
- return document.addEventListener("mousedown", z), document.addEventListener("keydown", h), () => {
942
- document.removeEventListener("mousedown", z), document.removeEventListener("keydown", h);
941
+ return document.addEventListener("mousedown", H), document.addEventListener("keydown", h), () => {
942
+ document.removeEventListener("mousedown", H), document.removeEventListener("keydown", h);
943
943
  };
944
944
  }, [m, b]);
945
945
  function X() {
946
- x === 1 ? (N((z) => z - 1), y(12)) : y((z) => z - 1);
946
+ x === 1 ? (N((H) => H - 1), y(12)) : y((H) => H - 1);
947
947
  }
948
- function j() {
949
- x === 12 ? (N((z) => z + 1), y(1)) : y((z) => z + 1);
948
+ function F() {
949
+ x === 12 ? (N((H) => H + 1), y(1)) : y((H) => H + 1);
950
950
  }
951
951
  const U = new Date(C, x - 1, 1).getDay(), G = new Date(C, x, 0).getDate(), S = [
952
952
  ...Array(U).fill(null),
953
- ...Array.from({ length: G }, (z, h) => h + 1)
953
+ ...Array.from({ length: G }, (H, h) => h + 1)
954
954
  ];
955
955
  for (; S.length < Xr * 7; ) S.push(null);
956
956
  const O = S.slice(0, Xr * 7);
957
- function _(z) {
958
- const h = la(C, x, z);
957
+ function R(H) {
958
+ const h = la(C, x, H);
959
959
  a && h < a || (r(h), m && p(!1));
960
960
  }
961
961
  const I = {
@@ -1005,7 +1005,7 @@ function Fs({
1005
1005
  {
1006
1006
  type: "button",
1007
1007
  onClick: () => {
1008
- K("years"), E(0);
1008
+ Y("years"), $(0);
1009
1009
  },
1010
1010
  style: {
1011
1011
  background: "none",
@@ -1032,7 +1032,7 @@ function Fs({
1032
1032
  "button",
1033
1033
  {
1034
1034
  type: "button",
1035
- onClick: j,
1035
+ onClick: F,
1036
1036
  style: I,
1037
1037
  title: "Mes siguiente",
1038
1038
  children: /* @__PURE__ */ t(st, { size: 16 })
@@ -1043,7 +1043,7 @@ function Fs({
1043
1043
  "button",
1044
1044
  {
1045
1045
  type: "button",
1046
- onClick: () => E((z) => z - B),
1046
+ onClick: () => $((H) => H - B),
1047
1047
  style: I,
1048
1048
  children: /* @__PURE__ */ t(Tt, { size: 16 })
1049
1049
  }
@@ -1052,7 +1052,7 @@ function Fs({
1052
1052
  "button",
1053
1053
  {
1054
1054
  type: "button",
1055
- onClick: () => K("days"),
1055
+ onClick: () => Y("days"),
1056
1056
  style: {
1057
1057
  background: "none",
1058
1058
  border: "none",
@@ -1064,9 +1064,9 @@ function Fs({
1064
1064
  padding: "2px 6px"
1065
1065
  },
1066
1066
  children: [
1067
- Y[0],
1067
+ K[0],
1068
1068
  " – ",
1069
- Y[Y.length - 1]
1069
+ K[K.length - 1]
1070
1070
  ]
1071
1071
  }
1072
1072
  ),
@@ -1074,7 +1074,7 @@ function Fs({
1074
1074
  "button",
1075
1075
  {
1076
1076
  type: "button",
1077
- onClick: () => E((z) => z + B),
1077
+ onClick: () => $((H) => H + B),
1078
1078
  style: I,
1079
1079
  children: /* @__PURE__ */ t(st, { size: 16 })
1080
1080
  }
@@ -1092,8 +1092,8 @@ function Fs({
1092
1092
  gap: 3,
1093
1093
  marginBottom: 8
1094
1094
  },
1095
- children: _l.map((z, h) => {
1096
- const R = h + 1 === x;
1095
+ children: _l.map((H, h) => {
1096
+ const _ = h + 1 === x;
1097
1097
  return /* @__PURE__ */ t(
1098
1098
  "button",
1099
1099
  {
@@ -1104,14 +1104,14 @@ function Fs({
1104
1104
  cursor: "pointer",
1105
1105
  borderRadius: 6,
1106
1106
  fontSize: 11,
1107
- fontWeight: R ? 700 : 400,
1107
+ fontWeight: _ ? 700 : 400,
1108
1108
  padding: "4px 0",
1109
- background: R ? "var(--primary)" : "transparent",
1110
- color: R ? "var(--primary-fg, #ffffff)" : "var(--text-secondary)"
1109
+ background: _ ? "var(--primary)" : "transparent",
1110
+ color: _ ? "var(--primary-fg, #ffffff)" : "var(--text-secondary)"
1111
1111
  },
1112
- children: z
1112
+ children: H
1113
1113
  },
1114
- z
1114
+ H
1115
1115
  );
1116
1116
  })
1117
1117
  }
@@ -1130,14 +1130,14 @@ function Fs({
1130
1130
  gridTemplateColumns: "repeat(4,1fr)",
1131
1131
  gap: 3
1132
1132
  },
1133
- children: Y.map((z) => {
1134
- const h = z === C;
1133
+ children: K.map((H) => {
1134
+ const h = H === C;
1135
1135
  return /* @__PURE__ */ t(
1136
1136
  "button",
1137
1137
  {
1138
1138
  type: "button",
1139
1139
  onClick: () => {
1140
- N(z), K("days");
1140
+ N(H), Y("days");
1141
1141
  },
1142
1142
  style: {
1143
1143
  border: "none",
@@ -1148,12 +1148,12 @@ function Fs({
1148
1148
  padding: "6px 0",
1149
1149
  background: h ? "var(--primary)" : "transparent",
1150
1150
  color: h ? "var(--primary-fg, #ffffff)" : "var(--text-main)",
1151
- outline: z === (/* @__PURE__ */ new Date()).getFullYear() && !h ? "2px solid var(--primary)" : "none",
1151
+ outline: H === (/* @__PURE__ */ new Date()).getFullYear() && !h ? "2px solid var(--primary)" : "none",
1152
1152
  outlineOffset: "-2px"
1153
1153
  },
1154
- children: z
1154
+ children: H
1155
1155
  },
1156
- z
1156
+ H
1157
1157
  );
1158
1158
  })
1159
1159
  }
@@ -1168,7 +1168,7 @@ function Fs({
1168
1168
  gridTemplateColumns: "repeat(7,1fr)",
1169
1169
  padding: "6px 8px 0"
1170
1170
  },
1171
- children: Pl.map((z) => /* @__PURE__ */ t(
1171
+ children: Pl.map((H) => /* @__PURE__ */ t(
1172
1172
  "div",
1173
1173
  {
1174
1174
  style: {
@@ -1179,9 +1179,9 @@ function Fs({
1179
1179
  padding: "2px 0",
1180
1180
  textTransform: "uppercase"
1181
1181
  },
1182
- children: z
1182
+ children: H
1183
1183
  },
1184
- z
1184
+ H
1185
1185
  ))
1186
1186
  }
1187
1187
  ),
@@ -1195,15 +1195,15 @@ function Fs({
1195
1195
  padding: "4px 8px 10px",
1196
1196
  gap: 2
1197
1197
  },
1198
- children: O.map((z, h) => {
1199
- if (z === null)
1198
+ children: O.map((H, h) => {
1199
+ if (H === null)
1200
1200
  return /* @__PURE__ */ t("div", { style: { aspectRatio: "1" } }, h);
1201
- const R = la(C, x, z), q = R === e, ae = R === i, re = !!(a && R < a);
1201
+ const _ = la(C, x, H), q = _ === e, ae = _ === i, re = !!(a && _ < a);
1202
1202
  return /* @__PURE__ */ t(
1203
1203
  "button",
1204
1204
  {
1205
1205
  type: "button",
1206
- onClick: () => !re && _(z),
1206
+ onClick: () => !re && R(H),
1207
1207
  style: {
1208
1208
  width: "100%",
1209
1209
  aspectRatio: "1",
@@ -1218,7 +1218,7 @@ function Fs({
1218
1218
  outline: ae && !q ? "2px solid var(--primary)" : "none",
1219
1219
  outlineOffset: "-2px"
1220
1220
  },
1221
- children: z
1221
+ children: H
1222
1222
  },
1223
1223
  h
1224
1224
  );
@@ -1234,7 +1234,7 @@ function Fs({
1234
1234
  "button",
1235
1235
  {
1236
1236
  type: "button",
1237
- onClick: () => p((z) => !z),
1237
+ onClick: () => p((H) => !H),
1238
1238
  className: "flex h-10 w-full items-center justify-between gap-2 rounded-lg px-2.5 py-0 text-sm transition-all duration-150 focus:outline-none",
1239
1239
  style: {
1240
1240
  background: "var(--bg-input)",
@@ -1358,30 +1358,30 @@ function Dn({
1358
1358
  type: N = "button",
1359
1359
  ...x
1360
1360
  }) {
1361
- const [y, A] = L(!1), K = se(null);
1361
+ const [y, A] = L(!1), Y = se(null);
1362
1362
  Q(() => () => {
1363
- K.current && window.clearTimeout(K.current);
1363
+ Y.current && window.clearTimeout(Y.current);
1364
1364
  }, []);
1365
- function B(E) {
1366
- A(!0), b == null || b(E), K.current && window.clearTimeout(K.current), K.current = window.setTimeout(() => {
1367
- A(!1), K.current = null;
1365
+ function B($) {
1366
+ A(!0), b == null || b($), Y.current && window.clearTimeout(Y.current), Y.current = window.setTimeout(() => {
1367
+ A(!1), Y.current = null;
1368
1368
  }, r);
1369
1369
  }
1370
- async function V(E) {
1371
- var Y;
1372
- if (m && E.stopPropagation(), C == null || C(E), E.defaultPrevented) return;
1373
- const H = Yl(e);
1374
- if (H)
1370
+ async function V($) {
1371
+ var K;
1372
+ if (m && $.stopPropagation(), C == null || C($), $.defaultPrevented) return;
1373
+ const j = Yl(e);
1374
+ if (j)
1375
1375
  try {
1376
- await Kl(H), B(H);
1376
+ await Kl(j), B(j);
1377
1377
  } catch (X) {
1378
1378
  try {
1379
- An(H), B(H);
1380
- } catch (j) {
1381
- p == null || p(j, H);
1379
+ An(j), B(j);
1380
+ } catch (F) {
1381
+ p == null || p(F, j);
1382
1382
  return;
1383
1383
  }
1384
- (Y = navigator.clipboard) != null && Y.writeText || p == null || p(X, H);
1384
+ (K = navigator.clipboard) != null && K.writeText || p == null || p(X, j);
1385
1385
  }
1386
1386
  }
1387
1387
  return /* @__PURE__ */ l(
@@ -1509,7 +1509,7 @@ function qt({
1509
1509
  searchable: x = !0,
1510
1510
  minOptionsForSearch: y = 6
1511
1511
  }) {
1512
- const [A, K] = L(!1), [B, V] = L(""), [E, H] = L(-1), [Y, X] = L(!1), [j, U] = L({}), G = se(null), S = se(null), O = se(null), _ = se(null), I = x && a.length >= y, ee = a.find((M) => M.value === e) ?? null, z = c === "ghost", h = n === "error" ? "var(--danger)" : A ? "var(--primary)" : "var(--border)", R = I && B.trim() ? a.filter(
1512
+ const [A, Y] = L(!1), [B, V] = L(""), [$, j] = L(-1), [K, X] = L(!1), [F, U] = L({}), G = se(null), S = se(null), O = se(null), R = se(null), I = x && a.length >= y, ee = a.find((M) => M.value === e) ?? null, H = c === "ghost", h = n === "error" ? "var(--danger)" : A ? "var(--primary)" : "var(--border)", _ = I && B.trim() ? a.filter(
1513
1513
  (M) => {
1514
1514
  var me;
1515
1515
  return M.label.toLowerCase().includes(B.toLowerCase()) || ((me = M.sublabel) == null ? void 0 : me.toLowerCase().includes(B.toLowerCase()));
@@ -1533,11 +1533,11 @@ function qt({
1533
1533
  function M(me) {
1534
1534
  var ie, pe;
1535
1535
  const T = me.target;
1536
- !((ie = G.current) != null && ie.contains(T)) && !((pe = S.current) != null && pe.contains(T)) && (K(!1), V(""));
1536
+ !((ie = G.current) != null && ie.contains(T)) && !((pe = S.current) != null && pe.contains(T)) && (Y(!1), V(""));
1537
1537
  }
1538
1538
  return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
1539
1539
  }, [A]), Q(() => {
1540
- A && (H(-1), q(), I && setTimeout(() => {
1540
+ A && (j(-1), q(), I && setTimeout(() => {
1541
1541
  var M;
1542
1542
  return (M = O.current) == null ? void 0 : M.focus();
1543
1543
  }, 0));
@@ -1547,22 +1547,22 @@ function qt({
1547
1547
  window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
1548
1548
  };
1549
1549
  }, [A, q]), Q(() => {
1550
- if (E < 0 || !_.current) return;
1551
- const M = _.current.children[E];
1550
+ if ($ < 0 || !R.current) return;
1551
+ const M = R.current.children[$];
1552
1552
  M == null || M.scrollIntoView({ block: "nearest" });
1553
- }, [E]);
1553
+ }, [$]);
1554
1554
  const ae = Ce(
1555
1555
  (M) => {
1556
- r(M), K(!1), V("");
1556
+ r(M), Y(!1), V("");
1557
1557
  },
1558
1558
  [r]
1559
1559
  );
1560
1560
  function re(M) {
1561
1561
  if (!A) {
1562
- (M.key === "Enter" || M.key === " " || M.key === "ArrowDown") && (M.preventDefault(), K(!0));
1562
+ (M.key === "Enter" || M.key === " " || M.key === "ArrowDown") && (M.preventDefault(), Y(!0));
1563
1563
  return;
1564
1564
  }
1565
- M.key === "Escape" ? (M.preventDefault(), K(!1), V("")) : M.key === "ArrowDown" ? (M.preventDefault(), H((me) => Math.min(me + 1, R.length - 1))) : M.key === "ArrowUp" ? (M.preventDefault(), H((me) => Math.max(me - 1, b ? -1 : 0))) : M.key === "Enter" && (M.preventDefault(), E === -1 && b ? ae("") : R[E] && ae(R[E].value));
1565
+ M.key === "Escape" ? (M.preventDefault(), Y(!1), V("")) : M.key === "ArrowDown" ? (M.preventDefault(), j((me) => Math.min(me + 1, _.length - 1))) : M.key === "ArrowUp" ? (M.preventDefault(), j((me) => Math.max(me - 1, b ? -1 : 0))) : M.key === "Enter" && (M.preventDefault(), $ === -1 && b ? ae("") : _[$] && ae(_[$].value));
1566
1566
  }
1567
1567
  const ve = /* @__PURE__ */ l(
1568
1568
  "div",
@@ -1571,7 +1571,7 @@ function qt({
1571
1571
  "data-bonsaif-select-dropdown": "true",
1572
1572
  className: "rounded-xl shadow-xl overflow-hidden",
1573
1573
  style: {
1574
- ...j,
1574
+ ...F,
1575
1575
  background: "var(--bg-card)",
1576
1576
  border: "1px solid var(--border)"
1577
1577
  },
@@ -1595,7 +1595,7 @@ function qt({
1595
1595
  ref: O,
1596
1596
  value: B,
1597
1597
  onChange: (M) => {
1598
- V(M.target.value), H(-1);
1598
+ V(M.target.value), j(-1);
1599
1599
  },
1600
1600
  placeholder: "Buscar…",
1601
1601
  className: "min-w-0 flex-1 text-sm bg-transparent outline-none",
@@ -1624,7 +1624,7 @@ function qt({
1624
1624
  /* @__PURE__ */ l(
1625
1625
  "ul",
1626
1626
  {
1627
- ref: _,
1627
+ ref: R,
1628
1628
  role: "listbox",
1629
1629
  className: "overflow-y-auto",
1630
1630
  style: {
@@ -1642,18 +1642,18 @@ function qt({
1642
1642
  onMouseDown: (M) => {
1643
1643
  M.preventDefault(), ae("");
1644
1644
  },
1645
- onMouseEnter: () => H(-1),
1645
+ onMouseEnter: () => j(-1),
1646
1646
  className: "flex items-center gap-2 px-3 py-2 cursor-pointer text-sm transition-colors",
1647
1647
  style: {
1648
- background: E === -1 ? "var(--bg-hover)" : "transparent",
1648
+ background: $ === -1 ? "var(--bg-hover)" : "transparent",
1649
1649
  color: "var(--text-muted)",
1650
1650
  fontStyle: "italic"
1651
1651
  },
1652
1652
  children: b
1653
1653
  }
1654
1654
  ),
1655
- R.map((M, me) => {
1656
- const ie = me === E, pe = M.value === e;
1655
+ _.map((M, me) => {
1656
+ const ie = me === $, pe = M.value === e;
1657
1657
  return /* @__PURE__ */ l(
1658
1658
  "li",
1659
1659
  {
@@ -1662,7 +1662,7 @@ function qt({
1662
1662
  onMouseDown: (W) => {
1663
1663
  W.preventDefault(), M.disabled || ae(M.value);
1664
1664
  },
1665
- onMouseEnter: () => !M.disabled && H(me),
1665
+ onMouseEnter: () => !M.disabled && j(me),
1666
1666
  className: "flex items-center gap-2 px-3 py-2 cursor-pointer text-sm transition-colors",
1667
1667
  style: {
1668
1668
  background: ie ? "var(--bg-hover)" : pe ? "color-mix(in srgb, var(--primary) 6%, transparent)" : "transparent",
@@ -1702,7 +1702,7 @@ function qt({
1702
1702
  M.value
1703
1703
  );
1704
1704
  }),
1705
- R.length === 0 && /* @__PURE__ */ t(
1705
+ _.length === 0 && /* @__PURE__ */ t(
1706
1706
  "li",
1707
1707
  {
1708
1708
  className: "px-3 py-4 text-sm text-center",
@@ -1729,14 +1729,14 @@ function qt({
1729
1729
  {
1730
1730
  type: "button",
1731
1731
  disabled: p,
1732
- onClick: () => !p && K((M) => !M),
1732
+ onClick: () => !p && Y((M) => !M),
1733
1733
  className: "flex w-full items-center gap-2 rounded-lg text-left text-sm transition-colors focus:outline-none",
1734
1734
  style: {
1735
1735
  height: Zr(C),
1736
1736
  padding: Zr(N),
1737
- background: z ? "transparent" : "var(--bg-input)",
1737
+ background: H ? "transparent" : "var(--bg-input)",
1738
1738
  color: ee ? "var(--text-main)" : "var(--text-muted)",
1739
- border: z ? "1px solid transparent" : `1px solid ${h}`,
1739
+ border: H ? "1px solid transparent" : `1px solid ${h}`,
1740
1740
  opacity: p ? 0.5 : 1,
1741
1741
  cursor: p ? "not-allowed" : "pointer"
1742
1742
  },
@@ -1787,7 +1787,7 @@ function qt({
1787
1787
  ]
1788
1788
  }
1789
1789
  ),
1790
- A && Y && Ze(ve, document.body)
1790
+ A && K && Ze(ve, document.body)
1791
1791
  ]
1792
1792
  }
1793
1793
  );
@@ -1894,16 +1894,17 @@ function Bn({
1894
1894
  bodyClassName: x = "px-6 py-5",
1895
1895
  panelClassName: y = "",
1896
1896
  backdropClassName: A = Xl,
1897
- contentClassName: K = "p-4",
1897
+ contentClassName: Y = "p-4",
1898
1898
  ariaLabel: B,
1899
- frameless: V = !1
1899
+ frameless: V = !1,
1900
+ disabled: $ = !1
1900
1901
  }) {
1901
- const [E, H] = L(!1), [Y, X] = L(!1), j = se(null);
1902
- if (Q(() => (e ? (j.current && clearTimeout(j.current), H(!0), requestAnimationFrame(() => requestAnimationFrame(() => X(!0)))) : (X(!1), j.current = setTimeout(
1903
- () => H(!1),
1902
+ const [j, K] = L(!1), [X, F] = L(!1), U = se(null);
1903
+ if (Q(() => (e ? (U.current && clearTimeout(U.current), K(!0), requestAnimationFrame(() => requestAnimationFrame(() => F(!0)))) : (F(!1), U.current = setTimeout(
1904
+ () => K(!1),
1904
1905
  vr + 40
1905
1906
  )), () => {
1906
- j.current && clearTimeout(j.current);
1907
+ U.current && clearTimeout(U.current);
1907
1908
  }), [e]), Q(() => {
1908
1909
  if (e)
1909
1910
  return document.body.style.overflow = "hidden", () => {
@@ -1911,12 +1912,12 @@ function Bn({
1911
1912
  };
1912
1913
  }, [e]), Q(() => {
1913
1914
  if (!e || !f) return;
1914
- const I = (ee) => {
1915
- ee.key === "Escape" && r();
1915
+ const ee = (H) => {
1916
+ H.key === "Escape" && r();
1916
1917
  };
1917
- return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
1918
- }, [f, r, e]), !E) return null;
1919
- const U = a || n || i || c || C, G = p ?? Gl[b], S = N === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", O = N === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", _ = Y ? "translateY(0) scale(1)" : N === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1918
+ return window.addEventListener("keydown", ee), () => window.removeEventListener("keydown", ee);
1919
+ }, [f, r, e]), !j) return null;
1920
+ const G = a || n || i || c || C, S = p ?? Gl[b], O = N === "bottom-mobile" ? "items-end sm:items-center justify-center p-0 sm:p-4" : "items-center justify-center", R = N === "bottom-mobile" ? "rounded-t-2xl sm:rounded-2xl" : "rounded-2xl", I = X ? "translateY(0) scale(1)" : N === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1920
1921
  return Ze(
1921
1922
  /* @__PURE__ */ l(
1922
1923
  "div",
@@ -1925,7 +1926,7 @@ function Bn({
1925
1926
  "aria-modal": "true",
1926
1927
  "data-bonsaif-overlay": "true",
1927
1928
  "aria-label": B ?? a,
1928
- className: `fixed inset-0 flex ${S} ${K}`,
1929
+ className: `fixed inset-0 flex ${O} ${Y}`,
1929
1930
  style: { zIndex: w },
1930
1931
  children: [
1931
1932
  /* @__PURE__ */ t(
@@ -1934,7 +1935,7 @@ function Bn({
1934
1935
  className: `absolute inset-0 ${A}`,
1935
1936
  onClick: k ? r : void 0,
1936
1937
  style: {
1937
- opacity: Y ? 1 : 0,
1938
+ opacity: X ? 1 : 0,
1938
1939
  transition: `opacity ${vr}ms ease`
1939
1940
  }
1940
1941
  }
@@ -1942,18 +1943,28 @@ function Bn({
1942
1943
  /* @__PURE__ */ l(
1943
1944
  "div",
1944
1945
  {
1945
- className: `relative z-10 flex max-h-[92dvh] w-full flex-col overflow-hidden ${V ? "shadow-none" : "shadow-2xl"} ${O} ${y}`,
1946
+ className: `relative z-10 flex max-h-[92dvh] w-full flex-col overflow-hidden ${V ? "shadow-none" : "shadow-2xl"} ${R} ${y}`,
1946
1947
  style: {
1947
- maxWidth: G,
1948
+ maxWidth: S,
1948
1949
  background: V ? "transparent" : "var(--bg-card)",
1949
1950
  border: V ? "none" : "1px solid var(--border)",
1950
- opacity: Y ? 1 : 0,
1951
- transform: _,
1951
+ opacity: X ? 1 : 0,
1952
+ transform: I,
1952
1953
  transition: `opacity ${vr}ms ease, transform ${vr}ms ease`
1953
1954
  },
1954
- onClick: (I) => I.stopPropagation(),
1955
+ onClick: (ee) => ee.stopPropagation(),
1955
1956
  children: [
1956
- U && /* @__PURE__ */ l(
1957
+ $ && /* @__PURE__ */ t(
1958
+ "div",
1959
+ {
1960
+ className: "absolute inset-0 z-[1002] cursor-not-allowed rounded-2xl",
1961
+ style: {
1962
+ background: "color-mix(in srgb, var(--bg-card, #ffffff) 60%, transparent)",
1963
+ backdropFilter: "blur(2px)"
1964
+ }
1965
+ }
1966
+ ),
1967
+ G && /* @__PURE__ */ l(
1957
1968
  "div",
1958
1969
  {
1959
1970
  className: "flex flex-shrink-0 items-center justify-between gap-3 px-6 py-4",
@@ -2393,24 +2404,24 @@ function Us({
2393
2404
  selected: x,
2394
2405
  onToggleOne: y,
2395
2406
  onToggleAll: A,
2396
- highlightSelected: K = !0,
2407
+ highlightSelected: Y = !0,
2397
2408
  rowClassName: B,
2398
2409
  getRowCategory: V,
2399
- stickyHeader: E = !0,
2400
- pageSize: H = 25,
2401
- pageSizeOptions: Y = [25, 50, 100],
2410
+ stickyHeader: $ = !0,
2411
+ pageSize: j = 25,
2412
+ pageSizeOptions: K = [25, 50, 100],
2402
2413
  pageSizeSelectWidth: X = 62,
2403
- pageSizeSelectHeight: j = 30,
2414
+ pageSizeSelectHeight: F = 30,
2404
2415
  pageSizeSelectPadding: U = "0 7px",
2405
2416
  totalRows: G,
2406
2417
  page: S,
2407
2418
  onPageChange: O,
2408
- onPageSizeChange: _,
2419
+ onPageSizeChange: R,
2409
2420
  storageKey: I,
2410
2421
  stickyFirstColumn: ee = !1,
2411
- bottomOffset: z = 0,
2422
+ bottomOffset: H = 0,
2412
2423
  compact: h = !0,
2413
- restrictHeight: R = !0,
2424
+ restrictHeight: _ = !0,
2414
2425
  maxHeight: q,
2415
2426
  minTableWidth: ae,
2416
2427
  enableColumnVisibility: re = !0,
@@ -2427,7 +2438,7 @@ function Us({
2427
2438
  bqlPlaceholder: xe = `status = activo
2428
2439
  rol IN (admin, employee)`,
2429
2440
  bqlQuickFilters: le = [],
2430
- bqlExamples: $ = [],
2441
+ bqlExamples: E = [],
2431
2442
  bqlSuggestions: P = [],
2432
2443
  bqlActiveFilters: ce,
2433
2444
  bqlError: de,
@@ -2461,22 +2472,22 @@ rol IN (admin, employee)`,
2461
2472
  function o() {
2462
2473
  no(window.innerWidth < 640);
2463
2474
  }
2464
- if (!R || q !== void 0)
2475
+ if (!_ || q !== void 0)
2465
2476
  return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
2466
- const g = H !== !1 ? 48 : 0, u = 12;
2467
- function F() {
2477
+ const g = j !== !1 ? 48 : 0, u = 12;
2478
+ function z() {
2468
2479
  if (o(), !ot.current) return;
2469
2480
  const v = ot.current.getBoundingClientRect().top;
2470
2481
  ro(
2471
2482
  Math.max(
2472
2483
  120,
2473
- window.innerHeight - v - g - u - z
2484
+ window.innerHeight - v - g - u - H
2474
2485
  )
2475
2486
  );
2476
2487
  }
2477
- return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
2478
- }, [n, H, z, R, q]);
2479
- const wa = R ? q ?? to : void 0;
2488
+ return z(), window.addEventListener("resize", z), () => window.removeEventListener("resize", z);
2489
+ }, [n, j, H, _, q]);
2490
+ const wa = _ ? q ?? to : void 0;
2480
2491
  Q(() => {
2481
2492
  const o = ot.current;
2482
2493
  if (!o) return;
@@ -2503,7 +2514,7 @@ rol IN (admin, employee)`,
2503
2514
  e.map((o) => [o.key, at(o, pt(o.width))])
2504
2515
  )
2505
2516
  ), [$e, kt] = L(null), [oo, er] = L(1), [tr, jr] = L(
2506
- H === !1 ? 0 : H
2517
+ j === !1 ? 0 : j
2507
2518
  );
2508
2519
  Q(() => {
2509
2520
  const o = Z.current, s = Me.current, g = o.map((v) => v.key), u = new Set(g);
@@ -2516,12 +2527,12 @@ rol IN (admin, employee)`,
2516
2527
  ), et.current = !1, _e(!0);
2517
2528
  return;
2518
2529
  }
2519
- let F = !1;
2530
+ let z = !1;
2520
2531
  return et.current = !1, _e(!1), fetch(
2521
2532
  `/api/user/preferences/datatables?key=${encodeURIComponent(I)}`,
2522
2533
  { cache: "no-store" }
2523
2534
  ).then((v) => v.ok ? v.json() : null).then((v) => {
2524
- if (F) return;
2535
+ if (z) return;
2525
2536
  const oe = Xa(I), D = li(v == null ? void 0 : v.settings) ? v == null ? void 0 : v.settings : oe, Le = ue.layout ? D == null ? void 0 : D.columnOrder : void 0, ke = Array.isArray(Le) ? Le.filter((Ae) => g.includes(Ae)) : [], fe = g.filter((Ae) => !ke.includes(Ae)), ge = ke.length > 0 ? [...ke, ...fe] : g, he = Object.fromEntries(
2526
2537
  o.map((Ae) => [
2527
2538
  Ae.key,
@@ -2570,7 +2581,7 @@ rol IN (admin, employee)`,
2570
2581
  pageSize: typeof (D == null ? void 0 : D.pageSize) == "number" ? D.pageSize : void 0
2571
2582
  }), et.current = !0;
2572
2583
  }).catch(() => {
2573
- if (!F) {
2584
+ if (!z) {
2574
2585
  const v = Xa(I), oe = ue.layout ? v == null ? void 0 : v.columnOrder : void 0, D = Array.isArray(oe) ? oe.filter((we) => g.includes(we)) : [], Le = g.filter((we) => !D.includes(we)), ke = D.length > 0 ? [...D, ...Le] : g, fe = Object.fromEntries(
2575
2586
  o.map((we) => [
2576
2587
  we.key,
@@ -2627,9 +2638,9 @@ rol IN (admin, employee)`,
2627
2638
  }), et.current = !0;
2628
2639
  }
2629
2640
  }).finally(() => {
2630
- F || _e(!0);
2641
+ z || _e(!0);
2631
2642
  }), () => {
2632
- F = !0;
2643
+ z = !0;
2633
2644
  };
2634
2645
  }, [
2635
2646
  I,
@@ -2648,7 +2659,7 @@ rol IN (admin, employee)`,
2648
2659
  ]), Q(() => {
2649
2660
  if (!I || !Te || !Fe || !et.current) return;
2650
2661
  const o = {};
2651
- ue.layout && (o.columnOrder = wt, o.columnWidths = Nt, o.hiddenColumnKeys = Pe), ue.filters && (o.filters = We, o.conditionFilters = Ve), ue.sort && (o.sort = $e), ue.bql && (o.bql = tt, o.bqlHistory = It), ue.pagination && H !== !1 && (o.pageSize = tr);
2662
+ ue.layout && (o.columnOrder = wt, o.columnWidths = Nt, o.hiddenColumnKeys = Pe), ue.filters && (o.filters = We, o.conditionFilters = Ve), ue.sort && (o.sort = $e), ue.bql && (o.bql = tt, o.bqlHistory = It), ue.pagination && j !== !1 && (o.pageSize = tr);
2652
2663
  const s = JSON.stringify(o);
2653
2664
  if (s === De.current) return;
2654
2665
  ii(I, o), De.current = s;
@@ -2672,7 +2683,7 @@ rol IN (admin, employee)`,
2672
2683
  tt,
2673
2684
  It,
2674
2685
  tr,
2675
- H,
2686
+ j,
2676
2687
  I,
2677
2688
  Te,
2678
2689
  Fe,
@@ -2683,7 +2694,7 @@ rol IN (admin, employee)`,
2683
2694
  ue.pagination
2684
2695
  ]), Q(() => {
2685
2696
  zt((o) => {
2686
- const s = e.map((F) => F.key), g = o.filter((F) => s.includes(F)), u = s.filter((F) => !g.includes(F));
2697
+ const s = e.map((z) => z.key), g = o.filter((z) => s.includes(z)), u = s.filter((z) => !g.includes(z));
2687
2698
  return [...g, ...u];
2688
2699
  });
2689
2700
  }, [Qe, e]);
@@ -2693,8 +2704,8 @@ rol IN (admin, employee)`,
2693
2704
  function ka(o) {
2694
2705
  const s = /* @__PURE__ */ new Set();
2695
2706
  return r.reduce((g, u) => {
2696
- const F = wr(o, u);
2697
- return !F || s.has(F) || (s.add(F), g.push({ value: F, label: F })), g;
2707
+ const z = wr(o, u);
2708
+ return !z || s.has(z) || (s.add(z), g.push({ value: z, label: z })), g;
2698
2709
  }, []);
2699
2710
  }
2700
2711
  function so() {
@@ -2711,7 +2722,7 @@ rol IN (admin, employee)`,
2711
2722
  });
2712
2723
  }
2713
2724
  function uo(o, s, g, u) {
2714
- const F = We[o] ?? [], v = u ? F : g.filter((D) => D !== s), oe = u ? F.includes(s) ? F.filter((D) => D !== s) : [...F, s] : v;
2725
+ const z = We[o] ?? [], v = u ? z : g.filter((D) => D !== s), oe = u ? z.includes(s) ? z.filter((D) => D !== s) : [...z, s] : v;
2715
2726
  oe.length === g.length ? Fr(o) : Ca(o, oe);
2716
2727
  }
2717
2728
  function Fr(o) {
@@ -2756,9 +2767,9 @@ rol IN (admin, employee)`,
2756
2767
  const nr = je.useCallback(() => {
2757
2768
  const o = Dr.current;
2758
2769
  if (!o) return;
2759
- const s = o.getBoundingClientRect(), g = 12, u = 8, F = Math.min(780, Math.max(320, window.innerWidth - 32)), v = Math.max(
2770
+ const s = o.getBoundingClientRect(), g = 12, u = 8, z = Math.min(780, Math.max(320, window.innerWidth - 32)), v = Math.max(
2760
2771
  g,
2761
- window.innerWidth - F - g
2772
+ window.innerWidth - z - g
2762
2773
  ), oe = Math.min(Math.max(g, s.left), v), D = s.bottom + u, Le = window.innerHeight - s.top + u, ke = window.innerHeight - D - g, fe = s.top - g - u, ge = ke < 280 && fe > ke, he = Math.max(
2763
2774
  240,
2764
2775
  ge ? fe : ke
@@ -2769,7 +2780,7 @@ rol IN (admin, employee)`,
2769
2780
  left: oe,
2770
2781
  top: ge ? void 0 : D,
2771
2782
  bottom: ge ? Le : void 0,
2772
- width: F,
2783
+ width: z,
2773
2784
  maxWidth: "calc(100vw - 24px)",
2774
2785
  maxHeight: he,
2775
2786
  overflowY: "auto"
@@ -2779,8 +2790,8 @@ rol IN (admin, employee)`,
2779
2790
  if (!rt) return;
2780
2791
  function o(u) {
2781
2792
  var v, oe;
2782
- const F = u.target;
2783
- (v = Dr.current) != null && v.contains(F) || (oe = ha.current) != null && oe.contains(F) || (dt(!1), gt(!1), yt(!1));
2793
+ const z = u.target;
2794
+ (v = Dr.current) != null && v.contains(z) || (oe = ha.current) != null && oe.contains(z) || (dt(!1), gt(!1), yt(!1));
2784
2795
  }
2785
2796
  function s(u) {
2786
2797
  u.key === "Escape" && (dt(!1), gt(!1), yt(!1));
@@ -2807,13 +2818,13 @@ rol IN (admin, employee)`,
2807
2818
  const _r = je.useCallback(
2808
2819
  (o = Qt.current) => {
2809
2820
  if (!o) return;
2810
- const s = o.getBoundingClientRect(), g = Math.min(292, Math.max(240, window.innerWidth - 16)), u = Math.max(8, window.innerWidth - g - 8), F = Math.min(Math.max(8, s.right - g), u), v = window.innerHeight - s.bottom, oe = s.bottom + 6, D = window.innerHeight - s.top + 6, ke = v < 360 && s.top > v ? void 0 : oe, fe = ke === void 0 ? D : void 0, ge = Math.max(
2821
+ const s = o.getBoundingClientRect(), g = Math.min(292, Math.max(240, window.innerWidth - 16)), u = Math.max(8, window.innerWidth - g - 8), z = Math.min(Math.max(8, s.right - g), u), v = window.innerHeight - s.bottom, oe = s.bottom + 6, D = window.innerHeight - s.top + 6, ke = v < 360 && s.top > v ? void 0 : oe, fe = ke === void 0 ? D : void 0, ge = Math.max(
2811
2822
  220,
2812
2823
  ke === void 0 ? s.top - 16 : window.innerHeight - oe - 8
2813
2824
  ), he = {
2814
2825
  position: "fixed",
2815
2826
  zIndex: 9999,
2816
- left: F,
2827
+ left: z,
2817
2828
  top: ke,
2818
2829
  bottom: fe,
2819
2830
  width: g,
@@ -2840,17 +2851,17 @@ rol IN (admin, employee)`,
2840
2851
  if (!s) return;
2841
2852
  const u = Array.from(
2842
2853
  s.querySelectorAll("[data-dt-column-key]")
2843
- ).filter((F) => F.dataset.dtColumnKey === o.key).reduce((F, v) => {
2854
+ ).filter((z) => z.dataset.dtColumnKey === o.key).reduce((z, v) => {
2844
2855
  const oe = v.querySelector(
2845
2856
  "[data-dt-autofit-content]"
2846
2857
  ), D = oe ? oe.scrollWidth : Math.max(v.scrollWidth, v.offsetWidth);
2847
2858
  return Math.max(
2848
- F,
2859
+ z,
2849
2860
  Math.ceil(D + ci(v))
2850
2861
  );
2851
2862
  }, 0);
2852
- u <= 0 || Ft((F) => ({
2853
- ...F,
2863
+ u <= 0 || Ft((z) => ({
2864
+ ...z,
2854
2865
  [o.key]: at(o, u + 12)
2855
2866
  }));
2856
2867
  }
@@ -2873,8 +2884,8 @@ rol IN (admin, employee)`,
2873
2884
  }, [Qe, e, Re]), Q(() => {
2874
2885
  function o(u) {
2875
2886
  var oe, D;
2876
- const F = u.target, v = u.target;
2877
- v != null && v.closest("[data-bonsaif-select-dropdown='true']") || !((oe = va.current) != null && oe.contains(F)) && !((D = Qt.current) != null && D.contains(F)) && (Vt(!1), Kt(null));
2887
+ const z = u.target, v = u.target;
2888
+ v != null && v.closest("[data-bonsaif-select-dropdown='true']") || !((oe = va.current) != null && oe.contains(z)) && !((D = Qt.current) != null && D.contains(z)) && (Vt(!1), Kt(null));
2878
2889
  }
2879
2890
  function s(u) {
2880
2891
  u.key === "Escape" && (Vt(!1), Kt(null));
@@ -2891,10 +2902,10 @@ rol IN (admin, employee)`,
2891
2902
  function o(g) {
2892
2903
  const u = Rt.current;
2893
2904
  if (!u) return;
2894
- const F = g.clientX - u.startX, v = e.find((oe) => oe.key === u.colKey);
2905
+ const z = g.clientX - u.startX, v = e.find((oe) => oe.key === u.colKey);
2895
2906
  v && Ft((oe) => ({
2896
2907
  ...oe,
2897
- [u.colKey]: at(v, u.startWidth + F)
2908
+ [u.colKey]: at(v, u.startWidth + z)
2898
2909
  }));
2899
2910
  }
2900
2911
  function s() {
@@ -2916,8 +2927,8 @@ rol IN (admin, employee)`,
2916
2927
  function xo(o, s) {
2917
2928
  s.preventDefault();
2918
2929
  const g = or.current, u = wt.indexOf(o);
2919
- g !== null && g !== u && zt((F) => {
2920
- const v = [...F], [oe] = v.splice(g, 1);
2930
+ g !== null && g !== u && zt((z) => {
2931
+ const v = [...z], [oe] = v.splice(g, 1);
2921
2932
  return v.splice(u, 0, oe), v;
2922
2933
  }), or.current = null, Pr(null);
2923
2934
  }
@@ -2934,7 +2945,7 @@ rol IN (admin, employee)`,
2934
2945
  }, [r]), Q(() => {
2935
2946
  er(1);
2936
2947
  }, [Ve, We]);
2937
- const ut = !!(O && _), mt = H !== !1, He = ut ? S ?? 1 : oo, Ye = ut || mt ? tr : r.length, Ge = !!x && !!y && !!A, Ct = !!p, Aa = je.useMemo(
2948
+ const ut = !!(O && R), mt = j !== !1, He = ut ? S ?? 1 : oo, Ye = ut || mt ? tr : r.length, Ge = !!x && !!y && !!A, Ct = !!p, Aa = je.useMemo(
2938
2949
  () => new Set(
2939
2950
  Tr ? Array.from(k ?? []) : ba
2940
2951
  ),
@@ -2942,10 +2953,10 @@ rol IN (admin, employee)`,
2942
2953
  ), Wr = (Ct ? 40 : 0) + (Ge ? 40 : 0), wo = Ge && r.length > 0 && x.size === r.length, No = Ge && x.size > 0 && x.size < r.length, lr = je.useMemo(() => {
2943
2954
  const o = Object.entries(We), s = Object.entries(Ve);
2944
2955
  return o.length === 0 && s.length === 0 ? r : r.filter(
2945
- (g) => o.every(([u, F]) => {
2956
+ (g) => o.every(([u, z]) => {
2946
2957
  const v = e.find((oe) => oe.key === u);
2947
- return v ? F.includes(wr(v, g)) : !0;
2948
- }) && s.every(([u, F]) => {
2958
+ return v ? z.includes(wr(v, g)) : !0;
2959
+ }) && s.every(([u, z]) => {
2949
2960
  const v = e.find((D) => D.key === u);
2950
2961
  if (!v) return !0;
2951
2962
  const oe = r.map(
@@ -2953,7 +2964,7 @@ rol IN (admin, employee)`,
2953
2964
  );
2954
2965
  return mi(
2955
2966
  wr(v, g),
2956
- F,
2967
+ z,
2957
2968
  oe
2958
2969
  );
2959
2970
  })
@@ -2962,7 +2973,7 @@ rol IN (admin, employee)`,
2962
2973
  if (!$e) return lr;
2963
2974
  const o = e.find((s) => s.key === $e.key && s.sortKey);
2964
2975
  return o != null && o.sortKey ? [...lr].sort((s, g) => {
2965
- const u = s[o.sortKey], F = g[o.sortKey], v = u === F ? 0 : u == null ? 1 : F == null || u < F ? -1 : 1;
2976
+ const u = s[o.sortKey], z = g[o.sortKey], v = u === z ? 0 : u == null ? 1 : z == null || u < z ? -1 : 1;
2966
2977
  return $e.dir === "asc" ? v : -v;
2967
2978
  }) : lr;
2968
2979
  }, [lr, $e, e]), Da = je.useMemo(() => {
@@ -2976,7 +2987,7 @@ rol IN (admin, employee)`,
2976
2987
  ut ? O(s) : er(s);
2977
2988
  }
2978
2989
  function Eo(o) {
2979
- n || (jr(o), ut ? (_(o), O(1)) : er(1), _ && _(o));
2990
+ n || (jr(o), ut ? (R(o), O(1)) : er(1), R && R(o));
2980
2991
  }
2981
2992
  function Ba(o) {
2982
2993
  const s = new Set(Aa);
@@ -3069,7 +3080,7 @@ rol IN (admin, employee)`,
3069
3080
  }
3070
3081
  ),
3071
3082
  Ke.map((o, s) => {
3072
- const g = ($e == null ? void 0 : $e.key) === o.key, u = !!o.sortKey, F = vt(o), v = ee && !Hr && s === 0, oe = Ta === s, Le = (Nt[o.key] ?? pt(o.width)) < 120, ke = Object.prototype.hasOwnProperty.call(We, o.key) || Object.prototype.hasOwnProperty.call(Ve, o.key);
3083
+ const g = ($e == null ? void 0 : $e.key) === o.key, u = !!o.sortKey, z = vt(o), v = ee && !Hr && s === 0, oe = Ta === s, Le = (Nt[o.key] ?? pt(o.width)) < 120, ke = Object.prototype.hasOwnProperty.call(We, o.key) || Object.prototype.hasOwnProperty.call(Ve, o.key);
3073
3084
  return /* @__PURE__ */ l(
3074
3085
  "div",
3075
3086
  {
@@ -3096,7 +3107,7 @@ rol IN (admin, employee)`,
3096
3107
  transition: "color 0.15s",
3097
3108
  borderLeft: oe ? "2px solid var(--primary)" : "2px solid transparent",
3098
3109
  cursor: "default",
3099
- padding: F ? h ? "7px 6px" : "9px 8px" : h ? "8px 6px 10px" : "10px 8px 12px"
3110
+ padding: z ? h ? "7px 6px" : "9px 8px" : h ? "8px 6px 10px" : "10px 8px 12px"
3100
3111
  },
3101
3112
  onDragOver: (fe) => vo(o.key, fe),
3102
3113
  onDrop: (fe) => xo(o.key, fe),
@@ -3104,7 +3115,7 @@ rol IN (admin, employee)`,
3104
3115
  /* @__PURE__ */ l(
3105
3116
  "div",
3106
3117
  {
3107
- className: `flex min-w-0 items-center gap-1 ${F ? "justify-center" : Le ? "justify-start" : o.align === "center" ? "justify-center" : o.align === "right" ? "justify-end" : "justify-start"}`,
3118
+ className: `flex min-w-0 items-center gap-1 ${z ? "justify-center" : Le ? "justify-start" : o.align === "center" ? "justify-center" : o.align === "right" ? "justify-end" : "justify-start"}`,
3108
3119
  children: [
3109
3120
  /* @__PURE__ */ t(
3110
3121
  "span",
@@ -3123,7 +3134,7 @@ rol IN (admin, employee)`,
3123
3134
  style: { cursor: "grab" }
3124
3135
  }
3125
3136
  ),
3126
- F ? /* @__PURE__ */ t(
3137
+ z ? /* @__PURE__ */ t(
3127
3138
  "span",
3128
3139
  {
3129
3140
  className: "inline-flex h-5 w-5 items-center justify-center rounded-md text-[var(--text-muted)]",
@@ -3154,7 +3165,7 @@ rol IN (admin, employee)`,
3154
3165
  children: g ? $e.dir === "asc" ? /* @__PURE__ */ t(Yr, { className: "h-3 w-3" }) : /* @__PURE__ */ t(Xe, { className: "h-3 w-3" }) : /* @__PURE__ */ t(Ro, { className: "h-3 w-3" })
3155
3166
  }
3156
3167
  ),
3157
- ve && !F && co(o) && /* @__PURE__ */ t(
3168
+ ve && !z && co(o) && /* @__PURE__ */ t(
3158
3169
  "button",
3159
3170
  {
3160
3171
  type: "button",
@@ -3170,7 +3181,7 @@ rol IN (admin, employee)`,
3170
3181
  ]
3171
3182
  }
3172
3183
  ),
3173
- !F && /* @__PURE__ */ t(
3184
+ !z && /* @__PURE__ */ t(
3174
3185
  "span",
3175
3186
  {
3176
3187
  role: "separator",
@@ -3214,7 +3225,7 @@ rol IN (admin, employee)`,
3214
3225
  if (!nt || typeof document > "u" || ct === "visibility" && !re || ct === "filter" && !ve) return null;
3215
3226
  const o = e.find(
3216
3227
  (he) => he.key === Dt
3217
- ), s = so(), g = o ? Object.prototype.hasOwnProperty.call(We, o.key) : !1, u = o ? Ve[o.key] : void 0, F = Mr.find(
3228
+ ), s = so(), g = o ? Object.prototype.hasOwnProperty.call(We, o.key) : !1, u = o ? Ve[o.key] : void 0, z = Mr.find(
3218
3229
  (he) => he.value === (u == null ? void 0 : u.operator)
3219
3230
  ), v = o ? We[o.key] ?? [] : [], oe = ua.trim().toLowerCase(), D = oe ? s.filter(
3220
3231
  (he) => he.label.toLowerCase().includes(oe)
@@ -3357,7 +3368,7 @@ rol IN (admin, employee)`,
3357
3368
  className: "min-w-0 [&>button]:rounded-md [&>button]:text-sm [&>button]:font-medium"
3358
3369
  }
3359
3370
  ),
3360
- (F == null ? void 0 : F.valueMode) !== "none" ? /* @__PURE__ */ t(
3371
+ (z == null ? void 0 : z.valueMode) !== "none" ? /* @__PURE__ */ t(
3361
3372
  "input",
3362
3373
  {
3363
3374
  value: (u == null ? void 0 : u.value) ?? "",
@@ -3388,7 +3399,7 @@ rol IN (admin, employee)`,
3388
3399
  }
3389
3400
  )
3390
3401
  ] }),
3391
- (F == null ? void 0 : F.valueMode) === "between" && /* @__PURE__ */ t(
3402
+ (z == null ? void 0 : z.valueMode) === "between" && /* @__PURE__ */ t(
3392
3403
  "input",
3393
3404
  {
3394
3405
  value: (u == null ? void 0 : u.valueTo) ?? "",
@@ -3540,9 +3551,9 @@ rol IN (admin, employee)`,
3540
3551
  (D) => o.map((Le) => Fa(za(Le, D))).join(",")
3541
3552
  ).join(`
3542
3553
  `), u = `${s}
3543
- ${g}`, F = new Blob(["\uFEFF" + u], {
3554
+ ${g}`, z = new Blob(["\uFEFF" + u], {
3544
3555
  type: "text/csv;charset=utf-8;"
3545
- }), v = URL.createObjectURL(F), oe = document.createElement("a");
3556
+ }), v = URL.createObjectURL(z), oe = document.createElement("a");
3546
3557
  oe.href = v, oe.download = `${Ne}.csv`, document.body.appendChild(oe), oe.click(), document.body.removeChild(oe), URL.revokeObjectURL(v);
3547
3558
  }
3548
3559
  function Mo() {
@@ -3552,7 +3563,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3552
3563
  (oe) => o.map((D) => ur(za(D, oe)))
3553
3564
  ).map(
3554
3565
  (oe) => `<tr>${oe.map((D) => `<td>${D}</td>`).join("")}</tr>`
3555
- ).join(""), F = `<!DOCTYPE html>
3566
+ ).join(""), z = `<!DOCTYPE html>
3556
3567
  <html lang="es"><head><meta charset="utf-8"><title>${ur(Ne)}</title>
3557
3568
  <style>
3558
3569
  body{font-family:system-ui,sans-serif;font-size:11px;margin:20px;color:#111}
@@ -3570,7 +3581,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3570
3581
  <tbody>${u}</tbody></table>
3571
3582
  <script>window.onload=()=>{window.print()}<\/script>
3572
3583
  </body></html>`, v = window.open("", "_blank");
3573
- v && (v.document.write(F), v.document.close());
3584
+ v && (v.document.write(z), v.document.close());
3574
3585
  }
3575
3586
  const mr = () => !Ee || !jt ? null : Ze(
3576
3587
  /* @__PURE__ */ l(
@@ -3747,7 +3758,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3747
3758
  },
3748
3759
  u.label
3749
3760
  )),
3750
- $.length > 0 && /* @__PURE__ */ l(
3761
+ E.length > 0 && /* @__PURE__ */ l(
3751
3762
  "button",
3752
3763
  {
3753
3764
  type: "button",
@@ -3814,9 +3825,9 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3814
3825
  "button",
3815
3826
  {
3816
3827
  type: "button",
3817
- onMouseDown: (F) => {
3828
+ onMouseDown: (z) => {
3818
3829
  var v;
3819
- F.preventDefault(), Rr(u), (v = Br.current) == null || v.focus();
3830
+ z.preventDefault(), Rr(u), (v = Br.current) == null || v.focus();
3820
3831
  },
3821
3832
  className: "block w-full px-4 py-2 text-left text-xs transition-colors hover:bg-[var(--bg-hover)] hover:text-[var(--primary)]",
3822
3833
  style: {
@@ -3900,7 +3911,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3900
3911
  {
3901
3912
  type: "button",
3902
3913
  onClick: () => Ht(
3903
- (F) => F.filter((v) => v !== u)
3914
+ (z) => z.filter((v) => v !== u)
3904
3915
  ),
3905
3916
  className: "rounded p-1 text-[var(--text-muted)] opacity-0 transition-opacity group-hover:opacity-100",
3906
3917
  children: /* @__PURE__ */ t(Ie, { className: "h-3.5 w-3.5" })
@@ -3911,13 +3922,13 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3911
3922
  u
3912
3923
  ))
3913
3924
  ] }),
3914
- pa && $.length > 0 && /* @__PURE__ */ t("div", { className: "grid gap-2 sm:grid-cols-2 lg:grid-cols-3", children: $.map((u) => /* @__PURE__ */ l(
3925
+ pa && E.length > 0 && /* @__PURE__ */ t("div", { className: "grid gap-2 sm:grid-cols-2 lg:grid-cols-3", children: E.map((u) => /* @__PURE__ */ l(
3915
3926
  "button",
3916
3927
  {
3917
3928
  type: "button",
3918
3929
  onClick: () => {
3919
- var F;
3920
- Rr(u.bql), gt(!1), (F = Br.current) == null || F.focus();
3930
+ var z;
3931
+ Rr(u.bql), gt(!1), (z = Br.current) == null || z.focus();
3921
3932
  },
3922
3933
  className: "rounded-lg border border-[var(--border)] bg-[var(--bg-input)] p-2 text-left transition-colors hover:border-[var(--primary)]",
3923
3934
  children: [
@@ -3972,8 +3983,8 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
3972
3983
  "aria-label": "Exportar datos",
3973
3984
  title: "Exportar datos",
3974
3985
  onClick: () => {
3975
- var F;
3976
- const u = (F = Jt.current) == null ? void 0 : F.getBoundingClientRect();
3986
+ var z;
3987
+ const u = (z = Jt.current) == null ? void 0 : z.getBoundingClientRect();
3977
3988
  u && eo({
3978
3989
  top: u.bottom + 4,
3979
3990
  right: window.innerWidth - u.right
@@ -4018,14 +4029,14 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4018
4029
  {
4019
4030
  value: String(Ye),
4020
4031
  onChange: (s) => Eo(Number(s)),
4021
- options: Y.map((s) => ({
4032
+ options: K.map((s) => ({
4022
4033
  value: String(s),
4023
4034
  label: String(s)
4024
4035
  })),
4025
4036
  placeholder: "Filas",
4026
4037
  searchable: !1,
4027
4038
  disabled: n,
4028
- height: j,
4039
+ height: F,
4029
4040
  padding: U,
4030
4041
  className: "shrink-0 [&>button]:rounded-md [&>button]:text-xs [&_svg]:h-3.5 [&_svg]:w-3.5",
4031
4042
  style: { width: X }
@@ -4124,7 +4135,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4124
4135
  "div",
4125
4136
  {
4126
4137
  role: "rowgroup",
4127
- style: E ? {
4138
+ style: $ ? {
4128
4139
  position: "sticky",
4129
4140
  top: 0,
4130
4141
  zIndex: 10,
@@ -4224,7 +4235,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4224
4235
  "div",
4225
4236
  {
4226
4237
  role: "rowgroup",
4227
- style: E ? {
4238
+ style: $ ? {
4228
4239
  position: "sticky",
4229
4240
  top: 0,
4230
4241
  zIndex: 10,
@@ -4257,14 +4268,14 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4257
4268
  "select-cell"
4258
4269
  ),
4259
4270
  Ke.map((g, u) => {
4260
- const F = ee && !Hr && u === 0;
4271
+ const z = ee && !Hr && u === 0;
4261
4272
  return /* @__PURE__ */ t(
4262
4273
  "div",
4263
4274
  {
4264
4275
  role: "cell",
4265
4276
  "data-dt-column-key": g.key,
4266
4277
  className: h ? "px-2 py-1.5" : "px-3 py-2",
4267
- style: F ? {
4278
+ style: z ? {
4268
4279
  position: "sticky",
4269
4280
  left: Wr,
4270
4281
  zIndex: 1,
@@ -4326,7 +4337,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4326
4337
  "div",
4327
4338
  {
4328
4339
  role: "rowgroup",
4329
- style: E ? {
4340
+ style: $ ? {
4330
4341
  position: "sticky",
4331
4342
  top: 0,
4332
4343
  zIndex: 10,
@@ -4406,7 +4417,7 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4406
4417
  "div",
4407
4418
  {
4408
4419
  role: "rowgroup",
4409
- style: E ? {
4420
+ style: $ ? {
4410
4421
  position: "sticky",
4411
4422
  top: 0,
4412
4423
  zIndex: 10,
@@ -4417,9 +4428,9 @@ ${g}`, F = new Blob(["\uFEFF" + u], {
4417
4428
  }
4418
4429
  ),
4419
4430
  /* @__PURE__ */ t("div", { role: "rowgroup", children: Da.map((o, s) => {
4420
- const g = a(o), u = ja(V == null ? void 0 : V(o)), F = s > 0 ? ja(
4431
+ const g = a(o), u = ja(V == null ? void 0 : V(o)), z = s > 0 ? ja(
4421
4432
  V == null ? void 0 : V(Da[s - 1])
4422
- ) : null, v = u && u.key !== (F == null ? void 0 : F.key), oe = Ge && x.has(g), D = Ct ? (w == null ? void 0 : w(o)) ?? !0 : !1, Le = D && Aa.has(g), ke = !!b || N && D, fe = oe && K ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : s % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 30%, var(--bg-card))" : "var(--bg-card)";
4433
+ ) : null, v = u && u.key !== (z == null ? void 0 : z.key), oe = Ge && x.has(g), D = Ct ? (w == null ? void 0 : w(o)) ?? !0 : !1, Le = D && Aa.has(g), ke = !!b || N && D, fe = oe && Y ? "color-mix(in srgb, var(--primary) 8%, var(--bg-card))" : s % 2 === 1 ? "color-mix(in srgb, var(--bg-input) 30%, var(--bg-card))" : "var(--bg-card)";
4423
4434
  return /* @__PURE__ */ l(je.Fragment, { children: [
4424
4435
  v && /* @__PURE__ */ t(
4425
4436
  "div",
@@ -4899,39 +4910,39 @@ function Ks({
4899
4910
  onOpenChange: m
4900
4911
  }) {
4901
4912
  const [b, p] = L(!1), [w, k] = L(!1), [f, C] = L({}), N = se(null), x = se(null), y = Ce(
4902
- (E) => {
4903
- p(E), m == null || m(E);
4913
+ ($) => {
4914
+ p($), m == null || m($);
4904
4915
  },
4905
4916
  [m]
4906
4917
  ), A = Ce(() => {
4907
- const E = N.current;
4908
- if (!E) return;
4909
- const H = E.getBoundingClientRect(), Y = typeof n == "number" ? n : H.width, X = typeof n == "number" ? n : Math.max(H.width, 180), j = a === "end" ? Math.max(8, H.right - X) : Math.min(H.left, window.innerWidth - X - 8), U = window.innerHeight - H.bottom, G = U < 240 && H.top > U ? void 0 : H.bottom + 6, S = G === void 0 ? window.innerHeight - H.top + 6 : void 0;
4918
+ const $ = N.current;
4919
+ if (!$) return;
4920
+ const j = $.getBoundingClientRect(), K = typeof n == "number" ? n : j.width, X = typeof n == "number" ? n : Math.max(j.width, 180), F = a === "end" ? Math.max(8, j.right - X) : Math.min(j.left, window.innerWidth - X - 8), U = window.innerHeight - j.bottom, G = U < 240 && j.top > U ? void 0 : j.bottom + 6, S = G === void 0 ? window.innerHeight - j.top + 6 : void 0;
4910
4921
  C({
4911
4922
  position: "fixed",
4912
4923
  zIndex: 9999,
4913
- left: j,
4924
+ left: F,
4914
4925
  top: G,
4915
4926
  bottom: S,
4916
- width: hi(typeof n == "number" ? Y : n)
4927
+ width: hi(typeof n == "number" ? K : n)
4917
4928
  });
4918
4929
  }, [a, n]);
4919
4930
  Q(() => k(!0), []), Q(() => {
4920
4931
  if (!b) return;
4921
4932
  A();
4922
- const E = (Y) => {
4923
- var j, U;
4924
- const X = Y.target;
4925
- !((j = N.current) != null && j.contains(X)) && !((U = x.current) != null && U.contains(X)) && y(!1);
4926
- }, H = (Y) => {
4927
- Y.key === "Escape" && y(!1);
4933
+ const $ = (K) => {
4934
+ var F, U;
4935
+ const X = K.target;
4936
+ !((F = N.current) != null && F.contains(X)) && !((U = x.current) != null && U.contains(X)) && y(!1);
4937
+ }, j = (K) => {
4938
+ K.key === "Escape" && y(!1);
4928
4939
  };
4929
- return document.addEventListener("mousedown", E), window.addEventListener("keydown", H), window.addEventListener("resize", A), window.addEventListener("scroll", A, !0), () => {
4930
- document.removeEventListener("mousedown", E), window.removeEventListener("keydown", H), window.removeEventListener("resize", A), window.removeEventListener("scroll", A, !0);
4940
+ return document.addEventListener("mousedown", $), window.addEventListener("keydown", j), window.addEventListener("resize", A), window.addEventListener("scroll", A, !0), () => {
4941
+ document.removeEventListener("mousedown", $), window.removeEventListener("keydown", j), window.removeEventListener("resize", A), window.removeEventListener("scroll", A, !0);
4931
4942
  };
4932
4943
  }, [b, y, A]);
4933
- const K = (E) => {
4934
- i || (E.key === "Enter" || E.key === " ") && (E.preventDefault(), y(!b));
4944
+ const Y = ($) => {
4945
+ i || ($.key === "Enter" || $.key === " ") && ($.preventDefault(), y(!b));
4935
4946
  }, B = sa(e) ? Oo(e, {
4936
4947
  onClick: () => {
4937
4948
  i || (Qa(), y(!b));
@@ -4944,32 +4955,32 @@ function Ks({
4944
4955
  "data-bonsaif-overlay": "true",
4945
4956
  className: `overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-1 shadow-xl ${d}`,
4946
4957
  style: f,
4947
- children: r.map((E) => /* @__PURE__ */ l("div", { children: [
4948
- E.separatorBefore && /* @__PURE__ */ t("div", { className: "my-1 border-t border-[var(--border)]" }),
4958
+ children: r.map(($) => /* @__PURE__ */ l("div", { children: [
4959
+ $.separatorBefore && /* @__PURE__ */ t("div", { className: "my-1 border-t border-[var(--border)]" }),
4949
4960
  /* @__PURE__ */ l(
4950
4961
  "button",
4951
4962
  {
4952
4963
  type: "button",
4953
4964
  role: "menuitem",
4954
- disabled: E.disabled,
4965
+ disabled: $.disabled,
4955
4966
  onClick: () => {
4956
- var H;
4957
- E.disabled || (Qa(), (H = E.onSelect) == null || H.call(E), y(!1));
4967
+ var j;
4968
+ $.disabled || (Qa(), (j = $.onSelect) == null || j.call($), y(!1));
4958
4969
  },
4959
4970
  className: "flex w-full min-w-0 items-start gap-2 rounded-md px-2.5 py-1.5 text-left transition-colors hover:bg-[var(--bg-input)] disabled:cursor-not-allowed disabled:opacity-50",
4960
4971
  style: {
4961
- color: E.danger ? "var(--danger)" : "var(--text-main)"
4972
+ color: $.danger ? "var(--danger)" : "var(--text-main)"
4962
4973
  },
4963
4974
  children: [
4964
- E.icon && /* @__PURE__ */ t("span", { className: "mt-0.5 shrink-0", children: E.icon }),
4975
+ $.icon && /* @__PURE__ */ t("span", { className: "mt-0.5 shrink-0", children: $.icon }),
4965
4976
  /* @__PURE__ */ l("span", { className: "min-w-0 flex-1", children: [
4966
- /* @__PURE__ */ t("span", { className: "block truncate text-sm font-medium", children: E.label }),
4967
- E.description && /* @__PURE__ */ t("span", { className: "block truncate text-xs text-[var(--text-muted)]", children: E.description })
4977
+ /* @__PURE__ */ t("span", { className: "block truncate text-sm font-medium", children: $.label }),
4978
+ $.description && /* @__PURE__ */ t("span", { className: "block truncate text-xs text-[var(--text-muted)]", children: $.description })
4968
4979
  ] })
4969
4980
  ]
4970
4981
  }
4971
4982
  )
4972
- ] }, E.id))
4983
+ ] }, $.id))
4973
4984
  }
4974
4985
  ) : null;
4975
4986
  return /* @__PURE__ */ l(
@@ -4980,7 +4991,7 @@ function Ks({
4980
4991
  tabIndex: i ? -1 : 0,
4981
4992
  "aria-haspopup": "menu",
4982
4993
  "aria-expanded": b,
4983
- onKeyDown: K,
4994
+ onKeyDown: Y,
4984
4995
  className: `inline-flex ${i ? "pointer-events-none opacity-60" : ""} ${c}`,
4985
4996
  children: [
4986
4997
  B,
@@ -5009,43 +5020,44 @@ function Ys({
5009
5020
  unsavedChangesConfirmLabel: x = "Descartar",
5010
5021
  unsavedChangesCancelLabel: y = "Seguir editando",
5011
5022
  onDiscardChanges: A,
5012
- children: K
5023
+ disabled: Y = !1,
5024
+ children: B
5013
5025
  }) {
5014
- const [B, V] = L(!1), [E, H] = L(!1), [Y, X] = L(!1), j = Ce(() => {
5015
- H(!0), requestAnimationFrame(() => {
5016
- requestAnimationFrame(() => X(!0));
5026
+ const [V, $] = L(!1), [j, K] = L(!1), [X, F] = L(!1), U = Ce(() => {
5027
+ K(!0), requestAnimationFrame(() => {
5028
+ requestAnimationFrame(() => F(!0));
5017
5029
  });
5018
- }, []), U = Ce(() => {
5019
- X(!1), window.setTimeout(
5020
- () => H(!1),
5030
+ }, []), G = Ce(() => {
5031
+ F(!1), window.setTimeout(
5032
+ () => K(!1),
5021
5033
  vi
5022
5034
  );
5023
- }, []), G = Ce(() => {
5035
+ }, []), S = Ce(() => {
5024
5036
  if (f) {
5025
- j();
5037
+ U();
5026
5038
  return;
5027
5039
  }
5028
5040
  r();
5029
- }, [f, r, j]), S = Ce(() => {
5030
- X(!1), H(!1), A == null || A(), r();
5041
+ }, [f, r, U]), O = Ce(() => {
5042
+ F(!1), K(!1), A == null || A(), r();
5031
5043
  }, [r, A]);
5032
5044
  return Q(() => {
5033
- V(!0);
5034
- }, []), Q(() => (document.body.style.overflow = e ? "hidden" : "", e || (X(!1), H(!1)), () => {
5045
+ $(!0);
5046
+ }, []), Q(() => (document.body.style.overflow = e ? "hidden" : "", e || (F(!1), K(!1)), () => {
5035
5047
  document.body.style.overflow = "";
5036
5048
  }), [e]), Q(() => {
5037
5049
  if (!e) return;
5038
- const O = (_) => {
5039
- if (_.key === "Escape") {
5040
- if (E) {
5041
- U();
5050
+ const R = (I) => {
5051
+ if (I.key === "Escape") {
5052
+ if (j) {
5053
+ G();
5042
5054
  return;
5043
5055
  }
5044
- G();
5056
+ S();
5045
5057
  }
5046
5058
  };
5047
- return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
5048
- }, [U, E, e, G]), B ? Ze(
5059
+ return window.addEventListener("keydown", R), () => window.removeEventListener("keydown", R);
5060
+ }, [G, j, e, S]), V ? Ze(
5049
5061
  /* @__PURE__ */ l(
5050
5062
  "div",
5051
5063
  {
@@ -5057,7 +5069,7 @@ function Ys({
5057
5069
  "div",
5058
5070
  {
5059
5071
  className: `absolute inset-0 ${en}`,
5060
- onClick: G
5072
+ onClick: S
5061
5073
  }
5062
5074
  ),
5063
5075
  /* @__PURE__ */ l(
@@ -5077,7 +5089,7 @@ function Ys({
5077
5089
  style: { borderBottom: "1px solid var(--border)" },
5078
5090
  children: [
5079
5091
  /* @__PURE__ */ l("div", { className: "flex items-center gap-3 min-w-0", children: [
5080
- /* @__PURE__ */ t(Be, { variant: "icon", onClick: G, title: "Cerrar", children: /* @__PURE__ */ t(Ie, { className: "w-5 h-5" }) }),
5092
+ /* @__PURE__ */ t(Be, { variant: "icon", onClick: S, title: "Cerrar", children: /* @__PURE__ */ t(Ie, { className: "w-5 h-5" }) }),
5081
5093
  i && /* @__PURE__ */ t("div", { className: "flex-shrink-0", children: i }),
5082
5094
  /* @__PURE__ */ l("div", { className: "min-w-0", children: [
5083
5095
  /* @__PURE__ */ t(
@@ -5106,7 +5118,7 @@ function Ys({
5106
5118
  {
5107
5119
  variant: "secondary",
5108
5120
  size: "sm",
5109
- onClick: G,
5121
+ onClick: S,
5110
5122
  style: { background: "var(--bg-input)" },
5111
5123
  children: "Cancelar"
5112
5124
  }
@@ -5128,11 +5140,21 @@ function Ys({
5128
5140
  ]
5129
5141
  }
5130
5142
  ),
5131
- /* @__PURE__ */ t("div", { "data-drawer-scroll": "true", className: w, children: K })
5143
+ /* @__PURE__ */ t("div", { "data-drawer-scroll": "true", className: w, children: B })
5132
5144
  ]
5133
5145
  }
5134
5146
  ),
5135
- E && /* @__PURE__ */ l(
5147
+ Y && /* @__PURE__ */ t(
5148
+ "div",
5149
+ {
5150
+ className: "absolute inset-0 z-[1002] cursor-not-allowed",
5151
+ style: {
5152
+ background: "color-mix(in srgb, var(--bg-card, #ffffff) 60%, transparent)",
5153
+ backdropFilter: "blur(2px)"
5154
+ }
5155
+ }
5156
+ ),
5157
+ j && /* @__PURE__ */ l(
5136
5158
  "div",
5137
5159
  {
5138
5160
  role: "dialog",
@@ -5143,14 +5165,14 @@ function Ys({
5143
5165
  /* @__PURE__ */ t(
5144
5166
  "div",
5145
5167
  {
5146
- className: `absolute inset-0 ${en} transition-opacity duration-200 ease-out ${Y ? "opacity-100" : "opacity-0"}`,
5147
- onClick: U
5168
+ className: `absolute inset-0 ${en} transition-opacity duration-200 ease-out ${X ? "opacity-100" : "opacity-0"}`,
5169
+ onClick: G
5148
5170
  }
5149
5171
  ),
5150
5172
  /* @__PURE__ */ l(
5151
5173
  "div",
5152
5174
  {
5153
- className: `relative z-10 w-full max-w-sm rounded-2xl border p-6 shadow-2xl transition-[opacity,transform] duration-200 ease-out ${Y ? "translate-y-0 scale-100 opacity-100" : "translate-y-2 scale-[0.96] opacity-0"}`,
5175
+ className: `relative z-10 w-full max-w-sm rounded-2xl border p-6 shadow-2xl transition-[opacity,transform] duration-200 ease-out ${X ? "translate-y-0 scale-100 opacity-100" : "translate-y-2 scale-[0.96] opacity-0"}`,
5154
5176
  style: {
5155
5177
  background: "var(--bg-card, #ffffff)",
5156
5178
  borderColor: "var(--border, #d8e1dc)"
@@ -5160,7 +5182,7 @@ function Ys({
5160
5182
  Be,
5161
5183
  {
5162
5184
  variant: "icon",
5163
- onClick: U,
5185
+ onClick: G,
5164
5186
  className: "absolute right-3 top-3 h-7 w-7 hover:opacity-70",
5165
5187
  style: { color: "var(--text-muted, #6b7f78)" },
5166
5188
  "aria-label": y,
@@ -5202,7 +5224,7 @@ function Ys({
5202
5224
  Be,
5203
5225
  {
5204
5226
  variant: "secondary",
5205
- onClick: U,
5227
+ onClick: G,
5206
5228
  className: "flex-1 border",
5207
5229
  style: {
5208
5230
  background: "var(--bg-input, #f7faf8)",
@@ -5216,7 +5238,7 @@ function Ys({
5216
5238
  Be,
5217
5239
  {
5218
5240
  variant: "secondary",
5219
- onClick: S,
5241
+ onClick: O,
5220
5242
  className: "flex-1 border",
5221
5243
  style: {
5222
5244
  background: "var(--warning, #d97706)",
@@ -5447,19 +5469,19 @@ function _n({
5447
5469
  required: k,
5448
5470
  ...f
5449
5471
  }) {
5450
- const [C, N] = L(() => !!f.autoFocus), [x, y] = L(!1), A = f.type === "password" && b, K = A && x ? "text" : f.type, B = !!n, V = B && i !== "tooltip", E = B && i !== "inline", H = p ? k : void 0, Y = B ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", X = E ? A ? "pr-20" : "pr-10" : A ? "pr-10" : "", j = f.value !== void 0 ? String(f.value).length > 0 : f.defaultValue !== void 0 && String(f.defaultValue).length > 0, U = C || j, G = {
5472
+ const [C, N] = L(() => !!f.autoFocus), [x, y] = L(!1), A = f.type === "password" && b, Y = A && x ? "text" : f.type, B = !!n, V = B && i !== "tooltip", $ = B && i !== "inline", j = p ? k : void 0, K = B ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", X = $ ? A ? "pr-20" : "pr-10" : A ? "pr-10" : "", F = f.value !== void 0 ? String(f.value).length > 0 : f.defaultValue !== void 0 && String(f.defaultValue).length > 0, U = C || F, G = {
5451
5473
  top: U ? 7 : 12,
5452
5474
  color: C ? "var(--primary)" : "var(--text-muted)",
5453
5475
  fontSize: U ? 10 : 13,
5454
5476
  fontWeight: U ? 600 : 400,
5455
5477
  textTransform: U ? "uppercase" : "none"
5456
5478
  }, S = (ee) => {
5457
- var z;
5458
- N(!0), (z = f.onFocus) == null || z.call(f, ee);
5479
+ var H;
5480
+ N(!0), (H = f.onFocus) == null || H.call(f, ee);
5459
5481
  }, O = (ee) => {
5460
- var z;
5461
- N(!1), (z = f.onBlur) == null || z.call(f, ee);
5462
- }, _ = A ? /* @__PURE__ */ l(
5482
+ var H;
5483
+ N(!1), (H = f.onBlur) == null || H.call(f, ee);
5484
+ }, R = A ? /* @__PURE__ */ l(
5463
5485
  "button",
5464
5486
  {
5465
5487
  type: "button",
@@ -5487,7 +5509,7 @@ function _n({
5487
5509
  )
5488
5510
  ]
5489
5511
  }
5490
- ) : null, I = E ? /* @__PURE__ */ t(
5512
+ ) : null, I = $ ? /* @__PURE__ */ t(
5491
5513
  Ut,
5492
5514
  {
5493
5515
  as: "span",
@@ -5511,12 +5533,12 @@ function _n({
5511
5533
  Jr,
5512
5534
  {
5513
5535
  ...f,
5514
- type: K,
5515
- required: H,
5536
+ type: Y,
5537
+ required: j,
5516
5538
  placeholder: " ",
5517
5539
  "aria-invalid": B || f["aria-invalid"],
5518
- "data-has-value": j ? "true" : void 0,
5519
- className: `h-11 w-full pt-5 ${X} ${Y} ${w}`,
5540
+ "data-has-value": F ? "true" : void 0,
5541
+ className: `h-11 w-full pt-5 ${X} ${K} ${w}`,
5520
5542
  onFocus: S,
5521
5543
  onBlur: O
5522
5544
  }
@@ -5541,7 +5563,7 @@ function _n({
5541
5563
  }
5542
5564
  ),
5543
5565
  I,
5544
- _
5566
+ R
5545
5567
  ] }),
5546
5568
  V ? /* @__PURE__ */ t("span", { className: "text-xs font-medium normal-case text-[var(--danger)]", children: n }) : a ? /* @__PURE__ */ t("span", { className: "text-xs font-medium normal-case text-[var(--text-muted)]", children: a }) : null
5547
5569
  ] }) : /* @__PURE__ */ l("label", { className: `flex flex-col gap-2 ${r}`, children: [
@@ -5555,24 +5577,24 @@ function _n({
5555
5577
  Jr,
5556
5578
  {
5557
5579
  ...f,
5558
- type: K,
5559
- required: H,
5580
+ type: Y,
5581
+ required: j,
5560
5582
  "aria-invalid": B || f["aria-invalid"],
5561
- className: `w-full ${X} ${Y} ${w}`,
5583
+ className: `w-full ${X} ${K} ${w}`,
5562
5584
  onFocus: S,
5563
5585
  onBlur: O
5564
5586
  }
5565
5587
  ),
5566
5588
  I,
5567
- _
5589
+ R
5568
5590
  ] }) : /* @__PURE__ */ l("span", { className: "relative block", children: [
5569
5591
  /* @__PURE__ */ t(
5570
5592
  Jr,
5571
5593
  {
5572
5594
  ...f,
5573
- required: H,
5595
+ required: j,
5574
5596
  "aria-invalid": B || f["aria-invalid"],
5575
- className: `w-full ${X} ${Y} ${w}`
5597
+ className: `w-full ${X} ${K} ${w}`
5576
5598
  }
5577
5599
  ),
5578
5600
  I
@@ -5688,41 +5710,41 @@ function lc({
5688
5710
  emptyLabel: x = "Arrastra y suelta archivos",
5689
5711
  emptyDescription: y = "o haz click para buscarlos en tu equipo",
5690
5712
  selectedLabel: A = "Archivos seleccionados",
5691
- size: K = "md",
5713
+ size: Y = "md",
5692
5714
  containerClassName: B = "",
5693
5715
  dropzoneClassName: V = "",
5694
- fileListClassName: E = "",
5695
- className: H = "",
5696
- id: Y,
5716
+ fileListClassName: $ = "",
5717
+ className: j = "",
5718
+ id: K,
5697
5719
  accept: X,
5698
- disabled: j,
5720
+ disabled: F,
5699
5721
  required: U,
5700
5722
  ...G
5701
5723
  }) {
5702
- const S = Io(), O = Y ?? S, _ = se(null), [I, ee] = L(!1), [z, h] = L(c), R = i ?? z, q = !!a, ae = f && R.length > 0 && !j, re = (ne, xe) => {
5724
+ const S = Io(), O = K ?? S, R = se(null), [I, ee] = L(!1), [H, h] = L(c), _ = i ?? H, q = !!a, ae = f && _.length > 0 && !F, re = (ne, xe) => {
5703
5725
  i === void 0 && h(ne), d == null || d(ne, xe);
5704
5726
  }, ve = (ne, xe) => {
5705
5727
  const le = ne.filter(
5706
5728
  (de) => nn(de, X)
5707
- ), $ = ne.filter(
5729
+ ), E = ne.filter(
5708
5730
  (de) => !nn(de, X)
5709
- ), P = w ? [...R, ...le] : le, ce = Oi(P, b, p);
5710
- $.length > 0 && (m == null || m($)), re(ce, xe);
5731
+ ), P = w ? [..._, ...le] : le, ce = Oi(P, b, p);
5732
+ E.length > 0 && (m == null || m(E)), re(ce, xe);
5711
5733
  }, M = () => {
5712
5734
  var ne;
5713
- j || (ne = _.current) == null || ne.click();
5735
+ F || (ne = R.current) == null || ne.click();
5714
5736
  }, me = (ne) => {
5715
5737
  ve(Array.from(ne.target.files ?? []), ne), ne.target.value = "";
5716
5738
  }, T = (ne) => {
5717
- ne.preventDefault(), j || ee(!0);
5739
+ ne.preventDefault(), F || ee(!0);
5718
5740
  }, ie = (ne) => {
5719
5741
  ne.currentTarget.contains(ne.relatedTarget) || ee(!1);
5720
5742
  }, pe = (ne) => {
5721
- ne.preventDefault(), ee(!1), !j && ve(Array.from(ne.dataTransfer.files), ne);
5743
+ ne.preventDefault(), ee(!1), !F && ve(Array.from(ne.dataTransfer.files), ne);
5722
5744
  }, W = (ne) => {
5723
5745
  ne.key !== "Enter" && ne.key !== " " || (ne.preventDefault(), M());
5724
5746
  }, te = (ne) => {
5725
- re(R.filter((xe, le) => le !== ne));
5747
+ re(_.filter((xe, le) => le !== ne));
5726
5748
  }, J = () => {
5727
5749
  re([]);
5728
5750
  };
@@ -5736,13 +5758,13 @@ function lc({
5736
5758
  "input",
5737
5759
  {
5738
5760
  ...G,
5739
- ref: _,
5761
+ ref: R,
5740
5762
  id: O,
5741
5763
  type: "file",
5742
5764
  accept: X,
5743
5765
  multiple: b,
5744
- disabled: j,
5745
- required: U && R.length === 0,
5766
+ disabled: F,
5767
+ required: U && _.length === 0,
5746
5768
  "aria-invalid": q || G["aria-invalid"],
5747
5769
  className: "sr-only",
5748
5770
  onChange: me
@@ -5752,11 +5774,11 @@ function lc({
5752
5774
  "div",
5753
5775
  {
5754
5776
  role: "button",
5755
- tabIndex: j ? -1 : 0,
5777
+ tabIndex: F ? -1 : 0,
5756
5778
  "aria-controls": O,
5757
- "aria-disabled": j || void 0,
5779
+ "aria-disabled": F || void 0,
5758
5780
  "aria-invalid": q || void 0,
5759
- className: `flex cursor-pointer flex-col items-center justify-center gap-3 rounded-lg border border-dashed bg-[var(--bg-card)] text-center outline-none transition-colors focus:border-[var(--primary)] focus:bg-[var(--bg-input)] ${Di[K]} ${I ? "border-[var(--primary)] bg-[var(--bg-input)]" : q ? "border-[var(--danger)]" : "border-[var(--border)]"} ${j ? "cursor-not-allowed opacity-60" : "hover:border-[var(--primary)] hover:bg-[var(--bg-input)]"} ${V} ${H}`,
5781
+ className: `flex cursor-pointer flex-col items-center justify-center gap-3 rounded-lg border border-dashed bg-[var(--bg-card)] text-center outline-none transition-colors focus:border-[var(--primary)] focus:bg-[var(--bg-input)] ${Di[Y]} ${I ? "border-[var(--primary)] bg-[var(--bg-input)]" : q ? "border-[var(--danger)]" : "border-[var(--border)]"} ${F ? "cursor-not-allowed opacity-60" : "hover:border-[var(--primary)] hover:bg-[var(--bg-input)]"} ${V} ${j}`,
5760
5782
  onClick: M,
5761
5783
  onDragOver: T,
5762
5784
  onDragLeave: ie,
@@ -5772,10 +5794,10 @@ function lc({
5772
5794
  ]
5773
5795
  }
5774
5796
  ),
5775
- k && R.length > 0 && /* @__PURE__ */ l(
5797
+ k && _.length > 0 && /* @__PURE__ */ l(
5776
5798
  "div",
5777
5799
  {
5778
- className: `rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${E}`,
5800
+ className: `rounded-lg border border-[var(--border)] bg-[var(--bg-card)] ${$}`,
5779
5801
  children: [
5780
5802
  /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-3 border-b border-[var(--border)] px-3 py-2", children: [
5781
5803
  /* @__PURE__ */ t("span", { className: "text-xs font-semibold uppercase text-[var(--text-muted)]", children: A }),
@@ -5790,7 +5812,7 @@ function lc({
5790
5812
  }
5791
5813
  )
5792
5814
  ] }),
5793
- /* @__PURE__ */ t("ul", { className: "divide-y divide-[var(--border)]", children: R.map((ne, xe) => /* @__PURE__ */ l(
5815
+ /* @__PURE__ */ t("ul", { className: "divide-y divide-[var(--border)]", children: _.map((ne, xe) => /* @__PURE__ */ l(
5794
5816
  "li",
5795
5817
  {
5796
5818
  className: "flex items-center gap-3 px-3 py-2",
@@ -5800,7 +5822,7 @@ function lc({
5800
5822
  /* @__PURE__ */ t("span", { className: "block truncate text-sm font-medium text-[var(--text-main)]", children: ne.name }),
5801
5823
  /* @__PURE__ */ t("span", { className: "block text-xs text-[var(--text-muted)]", children: Bi(ne.size) })
5802
5824
  ] }),
5803
- !j && /* @__PURE__ */ t(
5825
+ !F && /* @__PURE__ */ t(
5804
5826
  "button",
5805
5827
  {
5806
5828
  type: "button",
@@ -5848,34 +5870,34 @@ function ic({
5848
5870
  () => e.map((B) => ({ key: !1, type: "", ...B }))
5849
5871
  ), [f, C] = L(""), [N, x] = L(""), y = Ce(
5850
5872
  (B, V) => {
5851
- k((E) => {
5852
- const H = E.map((Y, X) => X === B ? { ...Y, ...V } : Y);
5853
- return p == null || p(H), H;
5873
+ k(($) => {
5874
+ const j = $.map((K, X) => X === B ? { ...K, ...V } : K);
5875
+ return p == null || p(j), j;
5854
5876
  });
5855
5877
  },
5856
5878
  [p]
5857
5879
  ), A = Ce(() => {
5858
5880
  b == null || b(w);
5859
- }, [w, b]), K = Ce(() => {
5860
- var H;
5881
+ }, [w, b]), Y = Ce(() => {
5882
+ var j;
5861
5883
  const B = f.trim();
5862
5884
  if (!B) {
5863
5885
  x("Ingresa un nombre de campo.");
5864
5886
  return;
5865
5887
  }
5866
5888
  if (w.some(
5867
- (Y) => Y.name.toLowerCase() === B.toLowerCase()
5889
+ (K) => K.name.toLowerCase() === B.toLowerCase()
5868
5890
  )) {
5869
5891
  x("Ese campo ya existe en el arreglo.");
5870
5892
  return;
5871
5893
  }
5872
- const E = {
5894
+ const $ = {
5873
5895
  name: B,
5874
5896
  key: !1,
5875
- type: ((H = a[0]) == null ? void 0 : H.value) ?? ""
5897
+ type: ((j = a[0]) == null ? void 0 : j.value) ?? ""
5876
5898
  };
5877
- k((Y) => {
5878
- const X = [...Y, E];
5899
+ k((K) => {
5900
+ const X = [...K, $];
5879
5901
  return p == null || p(X), X;
5880
5902
  }), C(""), x("");
5881
5903
  }, [a, w, f, p]);
@@ -5936,7 +5958,7 @@ function ic({
5936
5958
  {
5937
5959
  size: "sm",
5938
5960
  checked: B.key ?? !1,
5939
- onChange: (E) => y(V, { key: E.target.checked }),
5961
+ onChange: ($) => y(V, { key: $.target.checked }),
5940
5962
  "aria-label": `${B.name} es clave`
5941
5963
  }
5942
5964
  ) }),
@@ -5944,7 +5966,7 @@ function ic({
5944
5966
  qt,
5945
5967
  {
5946
5968
  value: B.type ?? "",
5947
- onChange: (E) => y(V, { type: E }),
5969
+ onChange: ($) => y(V, { type: $ }),
5948
5970
  options: a,
5949
5971
  placeholder: "—",
5950
5972
  emptyLabel: "—",
@@ -5983,7 +6005,7 @@ function ic({
5983
6005
  C(B.currentTarget.value), N && x("");
5984
6006
  },
5985
6007
  onKeyDown: (B) => {
5986
- B.key === "Enter" && (B.preventDefault(), K());
6008
+ B.key === "Enter" && (B.preventDefault(), Y());
5987
6009
  },
5988
6010
  placeholder: c,
5989
6011
  className: "min-w-0 flex-1 rounded-lg border px-3 py-2 text-sm outline-none transition-colors",
@@ -5999,7 +6021,7 @@ function ic({
5999
6021
  Be,
6000
6022
  {
6001
6023
  variant: "secondary",
6002
- onClick: K,
6024
+ onClick: Y,
6003
6025
  height: 36,
6004
6026
  padding: "0 12px",
6005
6027
  children: d
@@ -6069,19 +6091,19 @@ function sc({
6069
6091
  emptyText: C = "Sin resultados",
6070
6092
  clearLabel: N = "Limpiar seleccion"
6071
6093
  }) {
6072
- const [x, y] = L(!1), [A, K] = L(""), [B, V] = L(0), [E, H] = L(!1), [Y, X] = L({}), j = se(null), U = se(null), G = se(null), S = se(null), O = p && a.length >= w, _ = it(() => new Set(e), [e]), I = it(
6073
- () => a.filter((T) => _.has(T.value)),
6074
- [a, _]
6075
- ), ee = k === "all" ? I.length : k, z = I.slice(0, ee), h = Math.max(
6094
+ const [x, y] = L(!1), [A, Y] = L(""), [B, V] = L(0), [$, j] = L(!1), [K, X] = L({}), F = se(null), U = se(null), G = se(null), S = se(null), O = p && a.length >= w, R = it(() => new Set(e), [e]), I = it(
6095
+ () => a.filter((T) => R.has(T.value)),
6096
+ [a, R]
6097
+ ), ee = k === "all" ? I.length : k, H = I.slice(0, ee), h = Math.max(
6076
6098
  0,
6077
- I.length - z.length
6078
- ), R = O && A.trim() ? a.filter(
6099
+ I.length - H.length
6100
+ ), _ = O && A.trim() ? a.filter(
6079
6101
  (T) => {
6080
6102
  var ie;
6081
6103
  return T.label.toLowerCase().includes(A.toLowerCase()) || ((ie = T.sublabel) == null ? void 0 : ie.toLowerCase().includes(A.toLowerCase()));
6082
6104
  }
6083
6105
  ) : a, q = Ce(() => {
6084
- const T = j.current;
6106
+ const T = F.current;
6085
6107
  if (!T) return;
6086
6108
  const ie = T.getBoundingClientRect(), pe = O ? 304 : 244, W = window.innerHeight - ie.bottom, te = W < pe && ie.top > W;
6087
6109
  X({
@@ -6101,17 +6123,17 @@ function sc({
6101
6123
  (T) => {
6102
6124
  const ie = a.find((W) => W.value === T);
6103
6125
  if (ie != null && ie.disabled) return;
6104
- const pe = _.has(T) ? e.filter((W) => W !== T) : [...e, T];
6126
+ const pe = R.has(T) ? e.filter((W) => W !== T) : [...e, T];
6105
6127
  ae(pe);
6106
6128
  },
6107
- [ae, a, e, _]
6129
+ [ae, a, e, R]
6108
6130
  ), ve = Ce(() => ae([]), [ae]);
6109
- Q(() => H(!0), []), Q(() => {
6131
+ Q(() => j(!0), []), Q(() => {
6110
6132
  if (!x) return;
6111
6133
  function T(ie) {
6112
6134
  var W, te;
6113
6135
  const pe = ie.target;
6114
- !((W = j.current) != null && W.contains(pe)) && !((te = U.current) != null && te.contains(pe)) && (y(!1), K(""));
6136
+ !((W = F.current) != null && W.contains(pe)) && !((te = U.current) != null && te.contains(pe)) && (y(!1), Y(""));
6115
6137
  }
6116
6138
  return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
6117
6139
  }, [x]), Q(() => {
@@ -6134,7 +6156,7 @@ function sc({
6134
6156
  (T.key === "Enter" || T.key === " " || T.key === "ArrowDown") && (T.preventDefault(), y(!0));
6135
6157
  return;
6136
6158
  }
6137
- T.key === "Escape" && (T.preventDefault(), y(!1), K("")), T.key === "ArrowDown" && (T.preventDefault(), V((ie) => Math.min(ie + 1, R.length - 1))), T.key === "ArrowUp" && (T.preventDefault(), V((ie) => Math.max(ie - 1, 0))), T.key === "Enter" && R[B] && (T.preventDefault(), re(R[B].value)), T.key === "Backspace" && !A && e.length && (T.preventDefault(), ae(e.slice(0, -1)));
6159
+ T.key === "Escape" && (T.preventDefault(), y(!1), Y("")), T.key === "ArrowDown" && (T.preventDefault(), V((ie) => Math.min(ie + 1, _.length - 1))), T.key === "ArrowUp" && (T.preventDefault(), V((ie) => Math.max(ie - 1, 0))), T.key === "Enter" && _[B] && (T.preventDefault(), re(_[B].value)), T.key === "Backspace" && !A && e.length && (T.preventDefault(), ae(e.slice(0, -1)));
6138
6160
  }
6139
6161
  const me = /* @__PURE__ */ l(
6140
6162
  "div",
@@ -6142,7 +6164,7 @@ function sc({
6142
6164
  ref: U,
6143
6165
  className: "overflow-hidden rounded-xl shadow-xl",
6144
6166
  style: {
6145
- ...Y,
6167
+ ...K,
6146
6168
  background: "var(--bg-card)",
6147
6169
  border: "1px solid var(--border)"
6148
6170
  },
@@ -6166,7 +6188,7 @@ function sc({
6166
6188
  ref: G,
6167
6189
  value: A,
6168
6190
  onChange: (T) => {
6169
- K(T.target.value), V(0);
6191
+ Y(T.target.value), V(0);
6170
6192
  },
6171
6193
  placeholder: "Buscar…",
6172
6194
  className: "min-w-0 flex-1 bg-transparent text-sm outline-none",
@@ -6178,7 +6200,7 @@ function sc({
6178
6200
  {
6179
6201
  type: "button",
6180
6202
  onMouseDown: (T) => {
6181
- T.preventDefault(), K("");
6203
+ T.preventDefault(), Y("");
6182
6204
  },
6183
6205
  children: /* @__PURE__ */ t(
6184
6206
  Ie,
@@ -6233,8 +6255,8 @@ function sc({
6233
6255
  overscrollBehavior: "contain"
6234
6256
  },
6235
6257
  children: [
6236
- R.map((T, ie) => {
6237
- const pe = ie === B, W = _.has(T.value);
6258
+ _.map((T, ie) => {
6259
+ const pe = ie === B, W = R.has(T.value);
6238
6260
  return /* @__PURE__ */ l(
6239
6261
  "li",
6240
6262
  {
@@ -6295,7 +6317,7 @@ function sc({
6295
6317
  T.value
6296
6318
  );
6297
6319
  }),
6298
- R.length === 0 && /* @__PURE__ */ t(
6320
+ _.length === 0 && /* @__PURE__ */ t(
6299
6321
  "li",
6300
6322
  {
6301
6323
  className: "px-3 py-4 text-center text-sm",
@@ -6312,7 +6334,7 @@ function sc({
6312
6334
  return /* @__PURE__ */ l(
6313
6335
  "div",
6314
6336
  {
6315
- ref: j,
6337
+ ref: F,
6316
6338
  className: `relative ${c || "w-full"}`,
6317
6339
  style: d,
6318
6340
  onKeyDown: M,
@@ -6336,8 +6358,8 @@ function sc({
6336
6358
  "aria-haspopup": "listbox",
6337
6359
  "aria-expanded": x,
6338
6360
  children: [
6339
- /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1.5 overflow-hidden", children: z.length ? /* @__PURE__ */ l(ze, { children: [
6340
- z.map((T) => /* @__PURE__ */ l(
6361
+ /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1.5 overflow-hidden", children: H.length ? /* @__PURE__ */ l(ze, { children: [
6362
+ H.map((T) => /* @__PURE__ */ l(
6341
6363
  "span",
6342
6364
  {
6343
6365
  className: `inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs font-semibold ${f ? "max-w-[160px]" : "max-w-full whitespace-normal"}`,
@@ -6406,7 +6428,7 @@ function sc({
6406
6428
  ]
6407
6429
  }
6408
6430
  ),
6409
- x && E && Ze(me, document.body)
6431
+ x && $ && Ze(me, document.body)
6410
6432
  ]
6411
6433
  }
6412
6434
  );
@@ -6725,30 +6747,30 @@ function uc({
6725
6747
  countryCodeClassName: x = "",
6726
6748
  countryCodeWidth: y = 84,
6727
6749
  onPhoneValueChange: A,
6728
- label: K,
6750
+ label: Y,
6729
6751
  containerClassName: B = "",
6730
6752
  helperText: V,
6731
- labelAction: E,
6732
- className: H = "",
6733
- required: Y,
6753
+ labelAction: $,
6754
+ className: j = "",
6755
+ required: K,
6734
6756
  disabled: X,
6735
- floatingLabel: j,
6757
+ floatingLabel: F,
6736
6758
  showPasswordToggle: U,
6737
6759
  nativeValidation: G,
6738
6760
  errorTooltipLabel: S = "Error de validacion",
6739
6761
  ...O
6740
6762
  }) {
6741
6763
  var ne;
6742
- const [_, I] = L(
6764
+ const [R, I] = L(
6743
6765
  () => ln(m)
6744
- ), [ee, z] = L(
6766
+ ), [ee, H] = L(
6745
6767
  () => Nr(w)
6746
6768
  ), h = it(() => {
6747
6769
  const xe = C ?? Fi, le = f == null ? void 0 : f.map(Nr);
6748
- return le != null && le.length ? xe.filter(($) => le.includes($.value)) : xe;
6749
- }, [f, C]), R = ((ne = h[0]) == null ? void 0 : ne.value) ?? "+1", q = h.some(
6770
+ return le != null && le.length ? xe.filter((E) => le.includes(E.value)) : xe;
6771
+ }, [f, C]), _ = ((ne = h[0]) == null ? void 0 : ne.value) ?? "+1", q = h.some(
6750
6772
  (xe) => xe.value === Nr(p ?? ee)
6751
- ) ? Nr(p ?? ee) : R, ae = d !== void 0 ? ln(d) : _, re = `${q} ${ae}`.trim(), ve = a && ae.length > 0 && !jn(re) ? n : void 0, M = c ?? ve, me = !!M, T = me && i !== "tooltip", ie = me && i !== "inline", pe = me ? "border-[var(--danger)] focus-within:border-[var(--danger)]" : "border-[var(--border)] focus-within:border-[var(--primary)]", W = (xe) => {
6773
+ ) ? Nr(p ?? ee) : _, ae = d !== void 0 ? ln(d) : R, re = `${q} ${ae}`.trim(), ve = a && ae.length > 0 && !jn(re) ? n : void 0, M = c ?? ve, me = !!M, T = me && i !== "tooltip", ie = me && i !== "inline", pe = me ? "border-[var(--danger)] focus-within:border-[var(--danger)]" : "border-[var(--border)] focus-within:border-[var(--primary)]", W = (xe) => {
6752
6774
  const le = xe.currentTarget.value;
6753
6775
  d === void 0 && I(le), A == null || A(le, {
6754
6776
  countryCode: q,
@@ -6756,7 +6778,7 @@ function uc({
6756
6778
  fullNumber: `${q} ${le}`.trim()
6757
6779
  }), b == null || b(xe);
6758
6780
  }, te = (xe) => {
6759
- p === void 0 && z(xe), k == null || k(xe), A == null || A(ae, {
6781
+ p === void 0 && H(xe), k == null || k(xe), A == null || A(ae, {
6760
6782
  countryCode: xe,
6761
6783
  nationalNumber: ae,
6762
6784
  fullNumber: `${xe} ${ae}`.trim()
@@ -6781,9 +6803,9 @@ function uc({
6781
6803
  ) : null;
6782
6804
  return /* @__PURE__ */ l("div", { className: `flex flex-col gap-2 ${B}`, children: [
6783
6805
  /* @__PURE__ */ l("span", { className: "inline-flex items-center gap-1 text-xs font-semibold uppercase text-[var(--text-muted)]", children: [
6784
- /* @__PURE__ */ t("span", { children: K }),
6785
- Y && /* @__PURE__ */ t("span", { className: "text-[var(--danger)]", children: "*" }),
6786
- E && /* @__PURE__ */ t("span", { className: "ml-auto normal-case", children: E })
6806
+ /* @__PURE__ */ t("span", { children: Y }),
6807
+ K && /* @__PURE__ */ t("span", { className: "text-[var(--danger)]", children: "*" }),
6808
+ $ && /* @__PURE__ */ t("span", { className: "ml-auto normal-case", children: $ })
6787
6809
  ] }),
6788
6810
  /* @__PURE__ */ l(
6789
6811
  "span",
@@ -6823,9 +6845,9 @@ function uc({
6823
6845
  autoComplete: e,
6824
6846
  disabled: X,
6825
6847
  required: void 0,
6826
- "aria-label": O["aria-label"] ?? (typeof K == "string" ? K : void 0),
6848
+ "aria-label": O["aria-label"] ?? (typeof Y == "string" ? Y : void 0),
6827
6849
  "aria-invalid": me || O["aria-invalid"],
6828
- className: `h-full w-full min-w-0 bg-transparent px-2 py-1.5 text-sm text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] disabled:cursor-not-allowed disabled:opacity-60 ${ie ? "pr-10" : ""} ${H}`,
6850
+ className: `h-full w-full min-w-0 bg-transparent px-2 py-1.5 text-sm text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] disabled:cursor-not-allowed disabled:opacity-60 ${ie ? "pr-10" : ""} ${j}`,
6829
6851
  onChange: W
6830
6852
  }
6831
6853
  ),
@@ -6939,7 +6961,7 @@ function bc({
6939
6961
  placeholder: a = "Escribe algo...",
6940
6962
  minHeight: n = "80px"
6941
6963
  }) {
6942
- const i = se(null), c = se(null), d = se(null), m = se(!1), b = se(e ?? ""), p = se(r), [w, k] = L(() => !e || e.trim() === ""), [f, C] = L(/* @__PURE__ */ new Set()), [N, x] = L(null), [y, A] = L(""), [K, B] = L(""), [V, E] = L(""), [H, Y] = L(""), [X, j] = L(!1), U = Ce(
6964
+ const i = se(null), c = se(null), d = se(null), m = se(!1), b = se(e ?? ""), p = se(r), [w, k] = L(() => !e || e.trim() === ""), [f, C] = L(/* @__PURE__ */ new Set()), [N, x] = L(null), [y, A] = L(""), [Y, B] = L(""), [V, $] = L(""), [j, K] = L(""), [X, F] = L(!1), U = Ce(
6943
6965
  () => m.current ? c.current : i.current,
6944
6966
  []
6945
6967
  );
@@ -6947,27 +6969,27 @@ function bc({
6947
6969
  p.current = r;
6948
6970
  }, [r]);
6949
6971
  const G = Ce(() => {
6950
- const $ = window.getSelection(), P = U();
6951
- if (!$ || !P || $.rangeCount === 0 || $.isCollapsed)
6972
+ const E = window.getSelection(), P = U();
6973
+ if (!E || !P || E.rangeCount === 0 || E.isCollapsed)
6952
6974
  return "";
6953
- const ce = $.getRangeAt(0);
6954
- return !P.contains(ce.startContainer) || !P.contains(ce.endContainer) ? "" : $.toString();
6975
+ const ce = E.getRangeAt(0);
6976
+ return !P.contains(ce.startContainer) || !P.contains(ce.endContainer) ? "" : E.toString();
6955
6977
  }, [U]);
6956
6978
  Q(() => {
6957
- const $ = e ?? "";
6958
- b.current = $;
6979
+ const E = e ?? "";
6980
+ b.current = E;
6959
6981
  const P = [i.current, c.current].filter(
6960
6982
  (de) => !!de
6961
6983
  );
6962
6984
  P.forEach((de) => {
6963
- de.innerHTML !== $ && (de.innerHTML = $);
6964
- }), k(!$ || $.trim() === "");
6985
+ de.innerHTML !== E && (de.innerHTML = E);
6986
+ }), k(!E || E.trim() === "");
6965
6987
  const ce = P.map((de) => sn(de));
6966
6988
  return () => ce.forEach((de) => de());
6967
6989
  }, [e]), Q(() => {
6968
6990
  var de, Se;
6969
6991
  m.current = X;
6970
- let $, P = 0, ce;
6992
+ let E, P = 0, ce;
6971
6993
  if (X) {
6972
6994
  const be = i.current;
6973
6995
  be && (b.current = be.innerHTML);
@@ -6978,7 +7000,7 @@ function bc({
6978
7000
  P = requestAnimationFrame(Ee);
6979
7001
  return;
6980
7002
  }
6981
- Ne.innerHTML !== b.current && (Ne.innerHTML = b.current), $ = sn(Ne), k(((ue = Ne.textContent) == null ? void 0 : ue.trim()) === ""), ce = setTimeout(() => Ne.focus(), 60);
7003
+ Ne.innerHTML !== b.current && (Ne.innerHTML = b.current), E = sn(Ne), k(((ue = Ne.textContent) == null ? void 0 : ue.trim()) === ""), ce = setTimeout(() => Ne.focus(), 60);
6982
7004
  };
6983
7005
  P = requestAnimationFrame(Ee);
6984
7006
  } else {
@@ -6986,11 +7008,11 @@ function bc({
6986
7008
  b.current = Ne, Ee && Ee.innerHTML !== Ne && (Ee.innerHTML = Ne), Ne !== ue && p.current(Ne), k(((Se = (de = be ?? Ee) == null ? void 0 : de.textContent) == null ? void 0 : Se.trim()) === "");
6987
7009
  }
6988
7010
  return () => {
6989
- P && cancelAnimationFrame(P), ce && clearTimeout(ce), $ == null || $();
7011
+ P && cancelAnimationFrame(P), ce && clearTimeout(ce), E == null || E();
6990
7012
  };
6991
7013
  }, [X]);
6992
7014
  const S = Ce(() => {
6993
- const $ = [
7015
+ const E = [
6994
7016
  "bold",
6995
7017
  "italic",
6996
7018
  "underline",
@@ -7002,7 +7024,7 @@ function bc({
7002
7024
  "justifyRight",
7003
7025
  "justifyFull"
7004
7026
  ], P = /* @__PURE__ */ new Set();
7005
- $.forEach((de) => {
7027
+ E.forEach((de) => {
7006
7028
  try {
7007
7029
  document.queryCommandState(de) && P.add(de);
7008
7030
  } catch {
@@ -7021,54 +7043,54 @@ function bc({
7021
7043
  Qr(ce, "uppercase") && P.add("__upper"), Qr(ce, "lowercase") && P.add("__lower"), Qr(ce, "capitalize") && P.add("__cap"), C(P);
7022
7044
  }, [G]), O = () => {
7023
7045
  var P;
7024
- const $ = U();
7025
- $ && (b.current = $.innerHTML, p.current(b.current), k(((P = $.textContent) == null ? void 0 : P.trim()) === ""));
7026
- }, _ = ($) => {
7027
- if (!$) {
7046
+ const E = U();
7047
+ E && (b.current = E.innerHTML, p.current(b.current), k(((P = E.textContent) == null ? void 0 : P.trim()) === ""));
7048
+ }, R = (E) => {
7049
+ if (!E) {
7028
7050
  const P = i.current;
7029
7051
  P && (b.current = P.innerHTML);
7030
7052
  }
7031
- j(!$);
7032
- }, I = ($, P) => {
7053
+ F(!E);
7054
+ }, I = (E, P) => {
7033
7055
  var ce;
7034
- (ce = U()) == null || ce.focus(), document.execCommand($, !1, P), O(), S();
7035
- }, ee = ($) => {
7036
- I("formatBlock", $);
7037
- }, z = () => {
7038
- var $;
7039
- ($ = U()) == null || $.focus(), document.execCommand("insertHTML", !1, "<hr><p><br></p>"), O(), S();
7056
+ (ce = U()) == null || ce.focus(), document.execCommand(E, !1, P), O(), S();
7057
+ }, ee = (E) => {
7058
+ I("formatBlock", E);
7059
+ }, H = () => {
7060
+ var E;
7061
+ (E = U()) == null || E.focus(), document.execCommand("insertHTML", !1, "<hr><p><br></p>"), O(), S();
7040
7062
  }, h = () => {
7041
- const $ = window.getSelection();
7042
- $ && $.rangeCount > 0 && (d.current = $.getRangeAt(0).cloneRange());
7043
- }, R = () => {
7044
- const $ = window.getSelection();
7045
- $ && d.current && ($.removeAllRanges(), $.addRange(d.current));
7046
- }, q = ($) => {
7047
- if (h(), $ === "link") {
7063
+ const E = window.getSelection();
7064
+ E && E.rangeCount > 0 && (d.current = E.getRangeAt(0).cloneRange());
7065
+ }, _ = () => {
7066
+ const E = window.getSelection();
7067
+ E && d.current && (E.removeAllRanges(), E.addRange(d.current));
7068
+ }, q = (E) => {
7069
+ if (h(), E === "link") {
7048
7070
  const P = window.getSelection();
7049
7071
  B(
7050
7072
  P && !P.isCollapsed ? P.toString() : ""
7051
7073
  ), A("");
7052
7074
  }
7053
- $ === "image" && (E(""), Y("")), x($);
7075
+ E === "image" && ($(""), K("")), x(E);
7054
7076
  }, ae = () => {
7055
7077
  var de;
7056
7078
  if (!y.trim()) return;
7057
- R(), (de = U()) == null || de.focus();
7058
- const $ = window.getSelection(), ce = ($ && !$.isCollapsed ? $.toString() : "") || K.trim() || y.trim();
7079
+ _(), (de = U()) == null || de.focus();
7080
+ const E = window.getSelection(), ce = (E && !E.isCollapsed ? E.toString() : "") || Y.trim() || y.trim();
7059
7081
  document.execCommand(
7060
7082
  "insertHTML",
7061
7083
  !1,
7062
7084
  `<a href="${kr(y.trim())}" target="_blank" rel="noopener noreferrer" class="rich-link">${kr(ce)}</a>`
7063
7085
  ), O(), x(null);
7064
- }, re = ($, P = "") => `<span class="rich-img-wrap" contenteditable="false"><img src="${kr($)}" alt="${kr(P)}" class="rich-img" />${Pn()}</span>`, ve = () => {
7065
- var $;
7066
- V.trim() && (R(), ($ = U()) == null || $.focus(), document.execCommand(
7086
+ }, re = (E, P = "") => `<span class="rich-img-wrap" contenteditable="false"><img src="${kr(E)}" alt="${kr(P)}" class="rich-img" />${Pn()}</span>`, ve = () => {
7087
+ var E;
7088
+ V.trim() && (_(), (E = U()) == null || E.focus(), document.execCommand(
7067
7089
  "insertHTML",
7068
7090
  !1,
7069
- re(V.trim(), H.trim())
7091
+ re(V.trim(), j.trim())
7070
7092
  ), O(), x(null));
7071
- }, M = ($, P = 1200, ce = 1200, de = 0.72) => new Promise((Se, be) => {
7093
+ }, M = (E, P = 1200, ce = 1200, de = 0.72) => new Promise((Se, be) => {
7072
7094
  const Ee = new FileReader();
7073
7095
  Ee.onerror = be, Ee.onload = (Ne) => {
7074
7096
  var Qe;
@@ -7088,11 +7110,11 @@ function bc({
7088
7110
  }
7089
7111
  Te.drawImage(Fe, 0, 0, qe, Z), Se(Me.toDataURL("image/jpeg", de));
7090
7112
  }, Fe.src = ue;
7091
- }, Ee.readAsDataURL($);
7092
- }), me = ($) => {
7093
- const ce = Array.from($.clipboardData.items).find((Se) => Se.type.startsWith("image/"));
7113
+ }, Ee.readAsDataURL(E);
7114
+ }), me = (E) => {
7115
+ const ce = Array.from(E.clipboardData.items).find((Se) => Se.type.startsWith("image/"));
7094
7116
  if (!ce) return;
7095
- $.preventDefault();
7117
+ E.preventDefault();
7096
7118
  const de = ce.getAsFile();
7097
7119
  de && M(de).then((Se) => {
7098
7120
  var be;
@@ -7102,7 +7124,7 @@ function bc({
7102
7124
  re(Se, "imagen")
7103
7125
  ), O();
7104
7126
  });
7105
- }, T = ($) => {
7127
+ }, T = (E) => {
7106
7128
  const P = window.getSelection(), ce = U();
7107
7129
  if (!P || !ce || P.rangeCount === 0 || P.isCollapsed)
7108
7130
  return;
@@ -7112,7 +7134,7 @@ function bc({
7112
7134
  const Se = de.toString();
7113
7135
  if (!Se) return;
7114
7136
  let be = Se;
7115
- $ === "uppercase" ? be = Se.toLocaleUpperCase() : $ === "lowercase" ? be = Se.toLocaleLowerCase() : be = Wn(Se), de.deleteContents();
7137
+ E === "uppercase" ? be = Se.toLocaleUpperCase() : E === "lowercase" ? be = Se.toLocaleLowerCase() : be = Wn(Se), de.deleteContents();
7116
7138
  const Ee = document.createTextNode(be);
7117
7139
  de.insertNode(Ee);
7118
7140
  const Ne = document.createRange();
@@ -7121,25 +7143,25 @@ function bc({
7121
7143
  h(), S();
7122
7144
  }, pe = () => {
7123
7145
  O(), S();
7124
- }, W = ($) => {
7125
- if ($.key === "Escape") {
7146
+ }, W = (E) => {
7147
+ if (E.key === "Escape") {
7126
7148
  if (N) {
7127
7149
  x(null);
7128
7150
  return;
7129
7151
  }
7130
7152
  if (m.current) {
7131
- j(!1);
7153
+ F(!1);
7132
7154
  return;
7133
7155
  }
7134
7156
  }
7135
- N || ($.ctrlKey || $.metaKey) && ($.key === "b" && ($.preventDefault(), I("bold")), $.key === "i" && ($.preventDefault(), I("italic")), $.key === "u" && ($.preventDefault(), I("underline")), $.key === "k" && ($.preventDefault(), q("link")));
7157
+ N || (E.ctrlKey || E.metaKey) && (E.key === "b" && (E.preventDefault(), I("bold")), E.key === "i" && (E.preventDefault(), I("italic")), E.key === "u" && (E.preventDefault(), I("underline")), E.key === "k" && (E.preventDefault(), q("link")));
7136
7158
  }, te = () => /* @__PURE__ */ t(
7137
7159
  "div",
7138
7160
  {
7139
7161
  className: "h-4 w-px flex-shrink-0 mx-1",
7140
7162
  style: { background: "var(--border)" }
7141
7163
  }
7142
- ), J = ($, P, ce, de, Se) => {
7164
+ ), J = (E, P, ce, de, Se) => {
7143
7165
  const be = Se ?? (f.has(ce) || ce === "__link" && N === "link" || ce === "__img" && N === "image");
7144
7166
  return /* @__PURE__ */ t(
7145
7167
  "button",
@@ -7154,23 +7176,23 @@ function bc({
7154
7176
  color: be ? "var(--primary)" : "var(--text-secondary)",
7155
7177
  background: be ? "rgba(59,130,246,0.12)" : "transparent"
7156
7178
  },
7157
- children: $
7179
+ children: E
7158
7180
  },
7159
7181
  ce
7160
7182
  );
7161
- }, ne = ($) => {
7162
- const P = $.target;
7183
+ }, ne = (E) => {
7184
+ const P = E.target;
7163
7185
  if (P.closest("[data-action='delete-img']")) {
7164
- $.preventDefault();
7186
+ E.preventDefault();
7165
7187
  const ce = P.closest(".rich-img-wrap");
7166
7188
  ce && (ce.remove(), O());
7167
7189
  }
7168
- }, xe = ($) => /* @__PURE__ */ l(ze, { children: [
7190
+ }, xe = (E) => /* @__PURE__ */ l(ze, { children: [
7169
7191
  N === "link" && /* @__PURE__ */ l(
7170
7192
  "div",
7171
7193
  {
7172
7194
  className: "flex flex-shrink-0 flex-wrap items-center gap-2 border-t px-3 py-2",
7173
- style: { borderColor: "var(--border)", background: $ },
7195
+ style: { borderColor: "var(--border)", background: E },
7174
7196
  children: [
7175
7197
  /* @__PURE__ */ t(
7176
7198
  "input",
@@ -7195,7 +7217,7 @@ function bc({
7195
7217
  "input",
7196
7218
  {
7197
7219
  type: "text",
7198
- value: K,
7220
+ value: Y,
7199
7221
  onChange: (P) => B(P.target.value),
7200
7222
  onKeyDown: (P) => {
7201
7223
  P.key === "Enter" && (P.preventDefault(), ae()), P.key === "Escape" && x(null);
@@ -7236,7 +7258,7 @@ function bc({
7236
7258
  "div",
7237
7259
  {
7238
7260
  className: "flex flex-shrink-0 flex-wrap items-center gap-2 border-t px-3 py-2",
7239
- style: { borderColor: "var(--border)", background: $ },
7261
+ style: { borderColor: "var(--border)", background: E },
7240
7262
  children: [
7241
7263
  /* @__PURE__ */ t(
7242
7264
  "input",
@@ -7244,7 +7266,7 @@ function bc({
7244
7266
  autoFocus: !0,
7245
7267
  type: "url",
7246
7268
  value: V,
7247
- onChange: (P) => E(P.target.value),
7269
+ onChange: (P) => $(P.target.value),
7248
7270
  onKeyDown: (P) => {
7249
7271
  P.key === "Enter" && (P.preventDefault(), ve()), P.key === "Escape" && x(null);
7250
7272
  },
@@ -7261,8 +7283,8 @@ function bc({
7261
7283
  "input",
7262
7284
  {
7263
7285
  type: "text",
7264
- value: H,
7265
- onChange: (P) => Y(P.target.value),
7286
+ value: j,
7287
+ onChange: (P) => K(P.target.value),
7266
7288
  onKeyDown: (P) => {
7267
7289
  P.key === "Enter" && (P.preventDefault(), ve()), P.key === "Escape" && x(null);
7268
7290
  },
@@ -7298,7 +7320,7 @@ function bc({
7298
7320
  ]
7299
7321
  }
7300
7322
  )
7301
- ] }), le = ($, P) => /* @__PURE__ */ l(
7323
+ ] }), le = (E, P) => /* @__PURE__ */ l(
7302
7324
  "div",
7303
7325
  {
7304
7326
  className: "flex flex-shrink-0 flex-wrap items-center gap-0.5 border-t px-2 py-1",
@@ -7431,7 +7453,7 @@ function bc({
7431
7453
  /* @__PURE__ */ t(yn, { className: "h-4 w-4" }),
7432
7454
  "Insertar separador",
7433
7455
  "__divider",
7434
- z
7456
+ H
7435
7457
  ),
7436
7458
  te(),
7437
7459
  J(
@@ -7450,13 +7472,13 @@ function bc({
7450
7472
  "button",
7451
7473
  {
7452
7474
  type: "button",
7453
- title: $ ? "Salir del modo de enfoque (Esc)" : "Modo de enfoque",
7475
+ title: E ? "Salir del modo de enfoque (Esc)" : "Modo de enfoque",
7454
7476
  onMouseDown: (ce) => {
7455
- ce.preventDefault(), _($);
7477
+ ce.preventDefault(), R(E);
7456
7478
  },
7457
7479
  className: "flex h-7 w-7 items-center justify-center rounded transition-colors",
7458
7480
  style: { color: "var(--text-secondary)" },
7459
- children: $ ? /* @__PURE__ */ t(Xo, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Zo, { className: "h-4 w-4" })
7481
+ children: E ? /* @__PURE__ */ t(Xo, { className: "h-4 w-4" }) : /* @__PURE__ */ t(Zo, { className: "h-4 w-4" })
7460
7482
  }
7461
7483
  )
7462
7484
  ]
@@ -7503,7 +7525,7 @@ function bc({
7503
7525
  Bn,
7504
7526
  {
7505
7527
  open: X,
7506
- onClose: () => j(!1),
7528
+ onClose: () => F(!1),
7507
7529
  title: "Modo de enfoque",
7508
7530
  subtitle: "Esc para salir",
7509
7531
  maxWidth: "920px",
@@ -7699,25 +7721,25 @@ function hc({
7699
7721
  optionClassName: f,
7700
7722
  spinnerClassName: C
7701
7723
  }) {
7702
- const [N, x] = L(!1), [y, A] = L(!1), [K, B] = L(-1), [V, E] = L({}), H = se(null), Y = se(null), X = se(null), j = r.find((h) => h.value === e) ?? r[0], U = {
7703
- ...j != null && j.tone ? cn[j.tone] : void 0,
7704
- ...j == null ? void 0 : j.style
7724
+ const [N, x] = L(!1), [y, A] = L(!1), [Y, B] = L(-1), [V, $] = L({}), j = se(null), K = se(null), X = se(null), F = r.find((h) => h.value === e) ?? r[0], U = {
7725
+ ...F != null && F.tone ? cn[F.tone] : void 0,
7726
+ ...F == null ? void 0 : F.style
7705
7727
  }, G = i || c || r.length === 0, S = (h) => {
7706
7728
  d && h.stopPropagation();
7707
7729
  }, O = Ce(() => {
7708
7730
  x(!1), B(-1);
7709
- }, []), _ = Ce(() => {
7710
- const h = H.current;
7731
+ }, []), R = Ce(() => {
7732
+ const h = j.current;
7711
7733
  if (!h) return;
7712
- const R = h.getBoundingClientRect(), q = Math.max(R.width, Ki[n]), ae = Math.min(Math.max(r.length, 1) * 38 + 12, 260), re = window.innerHeight - R.bottom, ve = re < ae && R.top > re, M = Math.min(
7713
- Math.max(8, R.left + R.width / 2 - q / 2),
7734
+ const _ = h.getBoundingClientRect(), q = Math.max(_.width, Ki[n]), ae = Math.min(Math.max(r.length, 1) * 38 + 12, 260), re = window.innerHeight - _.bottom, ve = re < ae && _.top > re, M = Math.min(
7735
+ Math.max(8, _.left + _.width / 2 - q / 2),
7714
7736
  window.innerWidth - q - 8
7715
7737
  );
7716
- E({
7738
+ $({
7717
7739
  position: "fixed",
7718
7740
  left: M,
7719
- top: ve ? void 0 : R.bottom + 6,
7720
- bottom: ve ? window.innerHeight - R.top + 6 : void 0,
7741
+ top: ve ? void 0 : _.bottom + 6,
7742
+ bottom: ve ? window.innerHeight - _.top + 6 : void 0,
7721
7743
  width: q,
7722
7744
  zIndex: 9999
7723
7745
  });
@@ -7729,27 +7751,27 @@ function hc({
7729
7751
  );
7730
7752
  Q(() => A(!0), []), Q(() => {
7731
7753
  if (!N) return;
7732
- _();
7733
- const h = r.findIndex((R) => R.value === e);
7754
+ R();
7755
+ const h = r.findIndex((_) => _.value === e);
7734
7756
  B(h >= 0 ? h : 0);
7735
- }, [N, r, _, e]), Q(() => {
7757
+ }, [N, r, R, e]), Q(() => {
7736
7758
  if (!N) return;
7737
- function h(R) {
7759
+ function h(_) {
7738
7760
  var ae, re;
7739
- const q = R.target;
7740
- !((ae = H.current) != null && ae.contains(q)) && !((re = Y.current) != null && re.contains(q)) && O();
7761
+ const q = _.target;
7762
+ !((ae = j.current) != null && ae.contains(q)) && !((re = K.current) != null && re.contains(q)) && O();
7741
7763
  }
7742
7764
  return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
7743
7765
  }, [O, N]), Q(() => {
7744
7766
  if (N)
7745
- return window.addEventListener("resize", _), window.addEventListener("scroll", _, !0), () => {
7746
- window.removeEventListener("resize", _), window.removeEventListener("scroll", _, !0);
7767
+ return window.addEventListener("resize", R), window.addEventListener("scroll", R, !0), () => {
7768
+ window.removeEventListener("resize", R), window.removeEventListener("scroll", R, !0);
7747
7769
  };
7748
- }, [N, _]), Q(() => {
7749
- if (K < 0 || !X.current) return;
7750
- const h = X.current.children[K];
7770
+ }, [N, R]), Q(() => {
7771
+ if (Y < 0 || !X.current) return;
7772
+ const h = X.current.children[Y];
7751
7773
  h == null || h.scrollIntoView({ block: "nearest" });
7752
- }, [K]);
7774
+ }, [Y]);
7753
7775
  function ee(h) {
7754
7776
  if (!G) {
7755
7777
  if (!N) {
@@ -7761,24 +7783,24 @@ function hc({
7761
7783
  return;
7762
7784
  }
7763
7785
  if (h.key === "ArrowDown") {
7764
- h.preventDefault(), B((R) => Math.min(R + 1, r.length - 1));
7786
+ h.preventDefault(), B((_) => Math.min(_ + 1, r.length - 1));
7765
7787
  return;
7766
7788
  }
7767
7789
  if (h.key === "ArrowUp") {
7768
- h.preventDefault(), B((R) => Math.max(R - 1, 0));
7790
+ h.preventDefault(), B((_) => Math.max(_ - 1, 0));
7769
7791
  return;
7770
7792
  }
7771
7793
  if (h.key === "Enter" || h.key === " ") {
7772
7794
  h.preventDefault();
7773
- const R = r[K];
7774
- R && I(R);
7795
+ const _ = r[Y];
7796
+ _ && I(_);
7775
7797
  }
7776
7798
  }
7777
7799
  }
7778
- const z = /* @__PURE__ */ t(
7800
+ const H = /* @__PURE__ */ t(
7779
7801
  "div",
7780
7802
  {
7781
- ref: Y,
7803
+ ref: K,
7782
7804
  role: "listbox",
7783
7805
  "aria-label": m,
7784
7806
  className: ht(
@@ -7804,8 +7826,8 @@ function hc({
7804
7826
  scrollbarColor: "var(--border) transparent",
7805
7827
  overscrollBehavior: "contain"
7806
7828
  },
7807
- children: r.map((h, R) => {
7808
- const q = h.value === e, ae = R === K, re = {
7829
+ children: r.map((h, _) => {
7830
+ const q = h.value === e, ae = _ === Y, re = {
7809
7831
  ...h.tone ? cn[h.tone] : void 0,
7810
7832
  ...h.style
7811
7833
  };
@@ -7816,7 +7838,7 @@ function hc({
7816
7838
  role: "option",
7817
7839
  "aria-selected": q,
7818
7840
  disabled: h.disabled,
7819
- onMouseEnter: () => !h.disabled && B(R),
7841
+ onMouseEnter: () => !h.disabled && B(_),
7820
7842
  onMouseDown: (ve) => {
7821
7843
  ve.preventDefault(), I(h);
7822
7844
  },
@@ -7846,7 +7868,7 @@ function hc({
7846
7868
  return /* @__PURE__ */ l(
7847
7869
  "span",
7848
7870
  {
7849
- ref: H,
7871
+ ref: j,
7850
7872
  className: ht("relative inline-flex shrink-0 items-center", p),
7851
7873
  onKeyDown: ee,
7852
7874
  onClick: S,
@@ -7865,11 +7887,11 @@ function hc({
7865
7887
  className: ht(
7866
7888
  "inline-flex items-center rounded-full border border-transparent font-medium leading-none outline-none transition-colors hover:border-current focus:border-current disabled:cursor-wait disabled:opacity-70",
7867
7889
  Ui[n],
7868
- j == null ? void 0 : j.className,
7890
+ F == null ? void 0 : F.className,
7869
7891
  w
7870
7892
  ),
7871
7893
  style: U,
7872
- children: /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: (j == null ? void 0 : j.label) ?? e })
7894
+ children: /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: (F == null ? void 0 : F.label) ?? e })
7873
7895
  }
7874
7896
  ),
7875
7897
  /* @__PURE__ */ t(
@@ -7893,7 +7915,7 @@ function hc({
7893
7915
  )
7894
7916
  }
7895
7917
  ),
7896
- N && y && Ze(z, document.body)
7918
+ N && y && Ze(H, document.body)
7897
7919
  ]
7898
7920
  }
7899
7921
  );
@@ -7994,25 +8016,25 @@ function xc({
7994
8016
  footerClassName: y = ""
7995
8017
  }) {
7996
8018
  var pe;
7997
- const A = ((pe = e[0]) == null ? void 0 : pe.id) ?? "", [K, B] = L(
8019
+ const A = ((pe = e[0]) == null ? void 0 : pe.id) ?? "", [Y, B] = L(
7998
8020
  a ?? A
7999
- ), [V, E] = L(
8021
+ ), [V, $] = L(
8000
8022
  i
8001
- ), H = r ?? K, Y = n ?? V, X = it(
8002
- () => new Set(Y),
8003
- [Y]
8004
- ), j = Math.max(
8023
+ ), j = r ?? Y, K = n ?? V, X = it(
8024
+ () => new Set(K),
8025
+ [K]
8026
+ ), F = Math.max(
8005
8027
  0,
8006
- e.findIndex((W) => W.id === H)
8007
- ), U = e[j] ?? e[0], G = e.length <= 1 ? 100 : j / (e.length - 1) * 100, S = (W) => {
8008
- n || E(W), d == null || d(W);
8028
+ e.findIndex((W) => W.id === j)
8029
+ ), U = e[F] ?? e[0], G = e.length <= 1 ? 100 : F / (e.length - 1) * 100, S = (W) => {
8030
+ n || $(W), d == null || d(W);
8009
8031
  }, O = (W) => {
8010
8032
  const te = e.find((J) => J.id === W);
8011
8033
  te && (r || B(W), c == null || c(W, te));
8012
- }, _ = (W) => X.has(W), I = (W) => e.slice(0, W).find((te) => !te.optional && !X.has(te.id)), ee = (W) => {
8034
+ }, R = (W) => X.has(W), I = (W) => e.slice(0, W).find((te) => !te.optional && !X.has(te.id)), ee = (W) => {
8013
8035
  const te = e[W];
8014
- return !te || te.disabled ? !1 : W === j || b && W < j ? !0 : !I(W);
8015
- }, z = (W) => {
8036
+ return !te || te.disabled ? !1 : W === F || b && W < F ? !0 : !I(W);
8037
+ }, H = (W) => {
8016
8038
  const te = e.findIndex((J) => J.id === W);
8017
8039
  return te >= 0 && ee(te);
8018
8040
  }, h = (W) => {
@@ -8023,32 +8045,32 @@ function xc({
8023
8045
  return J && (m == null || m(e[te], J)), !1;
8024
8046
  }
8025
8047
  return O(W), !0;
8026
- }, R = (W = U == null ? void 0 : U.id) => {
8027
- !W || X.has(W) || S([...Y, W]);
8048
+ }, _ = (W = U == null ? void 0 : U.id) => {
8049
+ !W || X.has(W) || S([...K, W]);
8028
8050
  }, q = (W = U == null ? void 0 : U.id) => {
8029
8051
  if (!W) return;
8030
- const te = e.findIndex((ne) => ne.id === W), J = Y.filter((ne) => {
8052
+ const te = e.findIndex((ne) => ne.id === W), J = K.filter((ne) => {
8031
8053
  const xe = e.findIndex((le) => le.id === ne);
8032
8054
  return xe >= 0 && xe < te;
8033
8055
  });
8034
- S(J), te >= 0 && j > te && O(W);
8035
- }, ae = () => j <= 0 ? !1 : h(e[j - 1].id), re = () => {
8036
- const W = e[j + 1];
8056
+ S(J), te >= 0 && F > te && O(W);
8057
+ }, ae = () => F <= 0 ? !1 : h(e[F - 1].id), re = () => {
8058
+ const W = e[F + 1];
8037
8059
  return W ? h(W.id) : !1;
8038
8060
  }, ve = {
8039
8061
  activeStep: U,
8040
- activeIndex: j,
8041
- completedStepIds: Y,
8042
- isCompleted: _,
8043
- isUnlocked: z,
8044
- completeStep: R,
8062
+ activeIndex: F,
8063
+ completedStepIds: K,
8064
+ isCompleted: R,
8065
+ isUnlocked: H,
8066
+ completeStep: _,
8045
8067
  uncompleteStep: q,
8046
8068
  goToStep: h,
8047
8069
  goNext: re,
8048
8070
  goPrevious: ae
8049
8071
  };
8050
8072
  if (!U) return null;
8051
- const M = e[j + 1], me = j > 0, T = M ? z(M.id) : !1, ie = typeof U.content == "function" ? U.content(ve) : U.content;
8073
+ const M = e[F + 1], me = F > 0, T = M ? H(M.id) : !1, ie = typeof U.content == "function" ? U.content(ve) : U.content;
8052
8074
  return /* @__PURE__ */ l(
8053
8075
  "section",
8054
8076
  {
@@ -8080,7 +8102,7 @@ function xc({
8080
8102
  gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))`
8081
8103
  },
8082
8104
  children: e.map((W, te) => {
8083
- const J = W.id === U.id, ne = _(W.id), xe = ee(te), le = I(te);
8105
+ const J = W.id === U.id, ne = R(W.id), xe = ee(te), le = I(te);
8084
8106
  return /* @__PURE__ */ l(
8085
8107
  "button",
8086
8108
  {
@@ -8184,13 +8206,13 @@ function xc({
8184
8206
  /* @__PURE__ */ l("div", { className: "flex items-center gap-3 text-xs text-[var(--text-muted)]", children: [
8185
8207
  /* @__PURE__ */ l("span", { children: [
8186
8208
  "Paso ",
8187
- j + 1,
8209
+ F + 1,
8188
8210
  " de ",
8189
8211
  e.length
8190
8212
  ] }),
8191
8213
  /* @__PURE__ */ t("span", { className: "h-1 w-1 rounded-full bg-[var(--border)]" }),
8192
8214
  /* @__PURE__ */ l("span", { children: [
8193
- Y.length,
8215
+ K.length,
8194
8216
  " completados"
8195
8217
  ] })
8196
8218
  ] }),
@@ -8253,9 +8275,9 @@ const Qi = xn(
8253
8275
  defaultValue: x,
8254
8276
  maxLength: y,
8255
8277
  onInput: A,
8256
- ...K
8278
+ ...Y
8257
8279
  }, B) {
8258
- const V = se(null), E = Ji(N, x), H = p ?? y, Y = !!(k || f || b), X = w === "error" ? "var(--danger)" : w === "success" ? "#16a34a" : "var(--border)", j = {
8280
+ const V = se(null), $ = Ji(N, x), j = p ?? y, K = !!(k || f || b), X = w === "error" ? "var(--danger)" : w === "success" ? "#16a34a" : "var(--border)", F = {
8259
8281
  ...C ?? {},
8260
8282
  ...d ? { minHeight: `${d * 24 + 18}px` } : null,
8261
8283
  ...m ? { maxHeight: `${m * 24 + 18}px` } : null
@@ -8267,28 +8289,28 @@ const Qi = xn(
8267
8289
  const G = /* @__PURE__ */ t(
8268
8290
  "textarea",
8269
8291
  {
8270
- ...K,
8292
+ ...Y,
8271
8293
  ref: (S) => {
8272
8294
  V.current = S, Zi(B, S);
8273
8295
  },
8274
8296
  value: N,
8275
8297
  defaultValue: x,
8276
8298
  maxLength: y,
8277
- "aria-invalid": w === "error" || K["aria-invalid"],
8299
+ "aria-invalid": w === "error" || Y["aria-invalid"],
8278
8300
  onInput: (S) => {
8279
8301
  U(), A == null || A(S);
8280
8302
  },
8281
- style: { ...j, borderColor: X },
8303
+ style: { ...F, borderColor: X },
8282
8304
  className: `w-full rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${Gi[n]} ${Xi[c ? "none" : i]} ${k ? "pl-8" : ""} ${f ? "pr-10" : ""} ${r}`
8283
8305
  }
8284
8306
  );
8285
- return Y ? /* @__PURE__ */ l("span", { className: `relative block ${a}`, children: [
8307
+ return K ? /* @__PURE__ */ l("span", { className: `relative block ${a}`, children: [
8286
8308
  k && /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2.5 top-2.5 flex h-4 w-4 items-center justify-center text-[var(--text-muted)]", children: k }),
8287
8309
  G,
8288
8310
  f && /* @__PURE__ */ t("span", { className: "absolute right-2 top-2 flex items-center justify-center", children: f }),
8289
8311
  b && /* @__PURE__ */ l("span", { className: "absolute bottom-1.5 right-2 rounded bg-[var(--bg-input)] px-1.5 text-[10px] font-semibold text-[var(--text-muted)]", children: [
8290
- E,
8291
- H ? `/${H}` : ""
8312
+ $,
8313
+ j ? `/${j}` : ""
8292
8314
  ] })
8293
8315
  ] }) : G;
8294
8316
  }
@@ -8498,18 +8520,18 @@ function us({
8498
8520
  className: f = "",
8499
8521
  style: C
8500
8522
  }) {
8501
- var _;
8523
+ var R;
8502
8524
  const [N, x] = L(!1), y = typeof e == "string" && e.trim() && e !== "undefined" && e !== "null" ? e.trim() : "";
8503
8525
  Q(() => {
8504
8526
  x(!1);
8505
8527
  }, [y, k]);
8506
- const { wh: A, text: K } = as[n], B = bn(a) || bn(r) || m, V = B.trim()[0] || "?", E = typeof process < "u" && ((_ = process.env) == null ? void 0 : _.NEXT_PUBLIC_BASE_PATH) || "", H = cs(r, a), Y = ds(E, "/favicon.svg"), X = y ? `${E}/api/user/avatar/${y}${k ? `?v=${k}` : ""}` : "", U = {
8528
+ const { wh: A, text: Y } = as[n], B = bn(a) || bn(r) || m, V = B.trim()[0] || "?", $ = typeof process < "u" && ((R = process.env) == null ? void 0 : R.NEXT_PUBLIC_BASE_PATH) || "", j = cs(r, a), K = ds($, "/favicon.svg"), X = y ? `${$}/api/user/avatar/${y}${k ? `?v=${k}` : ""}` : "", U = {
8507
8529
  xs: 20,
8508
8530
  sm: 28,
8509
8531
  md: 36,
8510
8532
  lg: 48,
8511
8533
  xl: 64
8512
- }[n], G = H ? /* @__PURE__ */ t(
8534
+ }[n], G = j ? /* @__PURE__ */ t(
8513
8535
  "span",
8514
8536
  {
8515
8537
  className: `${A} ${is[n]} 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 ${f}`,
@@ -8517,7 +8539,7 @@ function us({
8517
8539
  children: /* @__PURE__ */ t(
8518
8540
  "img",
8519
8541
  {
8520
- src: Y,
8542
+ src: K,
8521
8543
  alt: B,
8522
8544
  width: U,
8523
8545
  height: U,
@@ -8540,7 +8562,7 @@ function us({
8540
8562
  ) : /* @__PURE__ */ t(
8541
8563
  "span",
8542
8564
  {
8543
- className: `${A} ${ss(B)} ${K} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${f}`,
8565
+ className: `${A} ${ss(B)} ${Y} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${f}`,
8544
8566
  style: C,
8545
8567
  title: B,
8546
8568
  children: V
@@ -8813,29 +8835,29 @@ function wc({
8813
8835
  contained: w = !1,
8814
8836
  LinkComponent: k = hs
8815
8837
  }) {
8816
- const f = se(null), [C, N] = L(!1), [x, y] = L(b ?? "/"), [A, K] = L(() => fn()), [B, V] = L(null), E = b ?? x, H = m ?? gs(E), Y = i ?? ys(E), X = p && !A && H.length > 1, j = !X;
8838
+ const f = se(null), [C, N] = L(!1), [x, y] = L(b ?? "/"), [A, Y] = L(() => fn()), [B, V] = L(null), $ = b ?? x, j = m ?? gs($), K = i ?? ys($), X = p && !A && j.length > 1, F = !X;
8817
8839
  Q(() => {
8818
8840
  b || y(window.location.pathname);
8819
8841
  }, [b]), Q(() => {
8820
- K(fn());
8842
+ Y(fn());
8821
8843
  }, []), Q(() => {
8822
8844
  if (w) {
8823
8845
  N(!1);
8824
8846
  return;
8825
8847
  }
8826
8848
  let G = null, S = 0, O = 0;
8827
- const _ = () => {
8828
- const z = f.current, h = document.querySelector(
8849
+ const R = () => {
8850
+ const H = f.current, h = document.querySelector(
8829
8851
  "[data-app-scroll='true']"
8830
8852
  );
8831
- return (z == null ? void 0 : z.closest(".os-viewport")) ?? (z == null ? void 0 : z.closest(
8853
+ return (H == null ? void 0 : H.closest(".os-viewport")) ?? (H == null ? void 0 : H.closest(
8832
8854
  "[data-overlayscrollbars-viewport]"
8833
8855
  )) ?? ta(h) ?? h ?? window;
8834
8856
  }, I = () => {
8835
- const z = G && G !== window ? G.scrollTop : window.scrollY;
8836
- N((h) => h ? z > 24 : z > 72);
8857
+ const H = G && G !== window ? G.scrollTop : window.scrollY;
8858
+ N((h) => h ? H > 24 : H > 72);
8837
8859
  }, ee = () => {
8838
- G == null || G.removeEventListener("scroll", I), G = _(), G.addEventListener("scroll", I, { passive: !0 }), I();
8860
+ G == null || G.removeEventListener("scroll", I), G = R(), G.addEventListener("scroll", I, { passive: !0 }), I();
8839
8861
  };
8840
8862
  return ee(), S = window.requestAnimationFrame(ee), O = window.setTimeout(ee, 120), () => {
8841
8863
  window.cancelAnimationFrame(S), window.clearTimeout(O), G == null || G.removeEventListener("scroll", I);
@@ -8861,17 +8883,17 @@ function wc({
8861
8883
  V(
8862
8884
  (te) => te && te.marginLeft === W.marginLeft && te.width === W.width ? te : W
8863
8885
  );
8864
- }, _ = () => {
8886
+ }, R = () => {
8865
8887
  window.cancelAnimationFrame(G), G = window.requestAnimationFrame(O);
8866
8888
  };
8867
- _(), window.addEventListener("resize", _);
8868
- const I = new ResizeObserver(_), ee = f.current, z = ee == null ? void 0 : ee.parentElement, h = document.querySelector(
8889
+ R(), window.addEventListener("resize", R);
8890
+ const I = new ResizeObserver(R), ee = f.current, H = ee == null ? void 0 : ee.parentElement, h = document.querySelector(
8869
8891
  "[data-app-scroll='true']"
8870
- ), R = ta(h) ?? h;
8871
- return [z, h, R].forEach((q) => {
8892
+ ), _ = ta(h) ?? h;
8893
+ return [H, h, _].forEach((q) => {
8872
8894
  q && I.observe(q);
8873
- }), S.push(window.setTimeout(_, 120)), S.push(window.setTimeout(_, 280)), () => {
8874
- window.cancelAnimationFrame(G), window.removeEventListener("resize", _), I.disconnect(), S.forEach((q) => window.clearTimeout(q));
8895
+ }), S.push(window.setTimeout(R, 120)), S.push(window.setTimeout(R, 280)), () => {
8896
+ window.cancelAnimationFrame(G), window.removeEventListener("resize", R), I.disconnect(), S.forEach((q) => window.clearTimeout(q));
8875
8897
  };
8876
8898
  }, [w]);
8877
8899
  const U = {
@@ -8896,12 +8918,12 @@ function wc({
8896
8918
  children: /* @__PURE__ */ l(
8897
8919
  "div",
8898
8920
  {
8899
- className: `flex flex-wrap items-center justify-between transition-[gap,min-height,padding] duration-300 ease-out ${C ? "min-h-8 gap-1.5 px-3 py-0 sm:min-h-9 sm:gap-2" : j ? "min-h-9 gap-2 px-4 py-0 sm:min-h-10 sm:gap-2.5" : "min-h-10 gap-2.5 px-4 pt-0.5 sm:min-h-11 sm:gap-3"} ${d}`,
8921
+ className: `flex flex-wrap items-center justify-between transition-[gap,min-height,padding] duration-300 ease-out ${C ? "min-h-8 gap-1.5 px-3 py-0 sm:min-h-9 sm:gap-2" : F ? "min-h-9 gap-2 px-4 py-0 sm:min-h-10 sm:gap-2.5" : "min-h-10 gap-2.5 px-4 pt-0.5 sm:min-h-11 sm:gap-3"} ${d}`,
8900
8922
  children: [
8901
8923
  /* @__PURE__ */ l(
8902
8924
  "div",
8903
8925
  {
8904
- className: `min-w-0 flex flex-1 flex-col justify-center transition-[gap,transform] duration-300 ease-out ${C || j ? "gap-1" : "gap-1.5 sm:gap-2"}`,
8926
+ className: `min-w-0 flex flex-1 flex-col justify-center transition-[gap,transform] duration-300 ease-out ${C || F ? "gap-1" : "gap-1.5 sm:gap-2"}`,
8905
8927
  children: [
8906
8928
  X && /* @__PURE__ */ t(
8907
8929
  "nav",
@@ -8912,8 +8934,8 @@ function wc({
8912
8934
  "ol",
8913
8935
  {
8914
8936
  className: `flex flex-wrap items-center gap-1.5 leading-none transition-[font-size,line-height] duration-300 ease-out ${C ? "text-[10px]" : "text-[10px] sm:text-[11px]"}`,
8915
- children: H.map((G, S) => {
8916
- const O = S === H.length - 1;
8937
+ children: j.map((G, S) => {
8938
+ const O = S === j.length - 1;
8917
8939
  return /* @__PURE__ */ l(
8918
8940
  "li",
8919
8941
  {
@@ -8957,7 +8979,7 @@ function wc({
8957
8979
  /* @__PURE__ */ l(
8958
8980
  "div",
8959
8981
  {
8960
- className: `flex min-w-0 items-center transition-[gap,transform] duration-300 ease-out ${C || j ? "gap-2" : "gap-2.5 sm:gap-3"}`,
8982
+ className: `flex min-w-0 items-center transition-[gap,transform] duration-300 ease-out ${C || F ? "gap-2" : "gap-2.5 sm:gap-3"}`,
8961
8983
  children: [
8962
8984
  /* @__PURE__ */ t(
8963
8985
  "span",
@@ -8966,7 +8988,7 @@ function wc({
8966
8988
  style: {
8967
8989
  color: X ? "var(--text-secondary)" : "var(--text-muted)"
8968
8990
  },
8969
- children: Y
8991
+ children: K
8970
8992
  }
8971
8993
  ),
8972
8994
  /* @__PURE__ */ l(