bonsaif-ui 0.1.37 → 0.1.39

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.
@@ -41,21 +41,21 @@ function Cl({
41
41
  size: m = "default",
42
42
  inputTabIndex: b
43
43
  }) {
44
- const f = se(null), [w, k] = L(!1), p = c || w || e.trim().length > 0, C = m === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", N = n || "w-48 max-w-full sm:w-64 lg:w-72";
44
+ const p = se(null), [w, k] = L(!1), f = c || w || e.trim().length > 0, C = m === "sm" ? "h-9 rounded-md" : "h-10 rounded-lg", N = n || "w-48 max-w-full sm:w-64 lg:w-72";
45
45
  Q(() => {
46
46
  var y;
47
- i && ((y = f.current) == null || y.focus());
47
+ i && ((y = p.current) == null || y.focus());
48
48
  }, [i]);
49
49
  const x = () => {
50
50
  var y;
51
- k(!0), (y = f.current) == null || y.focus();
51
+ k(!0), (y = p.current) == null || y.focus();
52
52
  };
53
53
  return /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
- className: `relative min-w-0 max-w-full flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${p ? N : "w-24 sm:w-28"}`,
56
+ className: `relative min-w-0 max-w-full flex-shrink-0 overflow-visible transition-[width] duration-200 ease-out ${f ? N : "w-24 sm:w-28"}`,
57
57
  onMouseDown: (y) => {
58
- p || (y.preventDefault(), x());
58
+ f || (y.preventDefault(), x());
59
59
  },
60
60
  children: [
61
61
  /* @__PURE__ */ t(
@@ -71,7 +71,7 @@ function Cl({
71
71
  /* @__PURE__ */ t(
72
72
  "input",
73
73
  {
74
- ref: f,
74
+ ref: p,
75
75
  type: "text",
76
76
  tabIndex: b,
77
77
  "aria-label": a,
@@ -80,12 +80,12 @@ function Cl({
80
80
  onKeyDown: (y) => {
81
81
  y.key === "Escape" && (d == null || d());
82
82
  },
83
- placeholder: p ? a : "Buscar",
84
- className: `${C} w-full py-0 text-sm leading-none placeholder:text-[var(--text-muted)] focus:outline-none transition-all duration-200 ${p ? "pl-9 pr-8" : "cursor-pointer pl-9 pr-3"}`,
83
+ placeholder: f ? a : "Buscar",
84
+ className: `${C} w-full py-0 text-sm leading-none placeholder:text-[var(--text-muted)] focus:outline-none transition-all duration-200 ${f ? "pl-9 pr-8" : "cursor-pointer pl-9 pr-3"}`,
85
85
  style: {
86
86
  height: `var(--page-header-control-height, ${m === "sm" ? "36px" : "40px"})`,
87
87
  paddingLeft: "calc(var(--page-header-control-icon-left, 12px) + 24px)",
88
- paddingRight: p ? "calc(var(--page-header-control-padding-x, 14px) + 18px)" : "var(--page-header-control-padding-x, 14px)",
88
+ paddingRight: f ? "calc(var(--page-header-control-padding-x, 14px) + 18px)" : "var(--page-header-control-padding-x, 14px)",
89
89
  background: "color-mix(in srgb, var(--bg-card) 86%, transparent)",
90
90
  border: "1px solid var(--border)",
91
91
  color: "var(--text-main)"
@@ -156,13 +156,13 @@ function qt({
156
156
  showArrow: d = !1,
157
157
  className: m = "",
158
158
  tooltipClassName: b = "",
159
- style: f,
159
+ style: p,
160
160
  tooltipStyle: w,
161
161
  as: k = "div"
162
162
  }) {
163
- const p = 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), [K, B] = L("");
164
164
  Q(() => {
165
- const S = p.current;
165
+ const S = f.current;
166
166
  S && (S.querySelectorAll("[title]").forEach((O) => {
167
167
  const R = O.getAttribute("title");
168
168
  R && (O.getAttribute("aria-label") || O.setAttribute("aria-label", R), O.removeAttribute("title"));
@@ -173,12 +173,12 @@ function qt({
173
173
  if (!S) return;
174
174
  const O = 12, R = 14, I = S.getBoundingClientRect(), ee = window.innerWidth - I.width - O, z = window.innerHeight - I.height - O;
175
175
  let v = y.mouseX + R, F = y.mouseY + R, q, ae;
176
- if (!i && p.current) {
177
- const re = p.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
176
+ if (!i && f.current) {
177
+ const re = f.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
178
178
  c === "top" ? (v = ve - I.width / 2, F = re.top - I.height - R, ae = I.height - 1) : c === "left" ? (v = re.left - I.width - R, F = M - I.height / 2, q = I.width - 1) : c === "right" ? (v = re.right + R, F = M - I.height / 2, q = -7) : (v = ve - I.width / 2, F = re.bottom + R, ae = -7);
179
179
  }
180
- if (i && (v > ee && (v = y.mouseX - I.width - R), F > z && (F = y.mouseY - I.height - R)), v = Math.min(Math.max(O, v), Math.max(O, ee)), F = Math.min(Math.max(O, F), Math.max(O, z)), !i && p.current) {
181
- const re = p.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
180
+ if (i && (v > ee && (v = y.mouseX - I.width - R), F > z && (F = y.mouseY - I.height - R)), v = Math.min(Math.max(O, v), Math.max(O, ee)), F = Math.min(Math.max(O, F), Math.max(O, z)), !i && f.current) {
181
+ const re = f.current.getBoundingClientRect(), ve = re.left + re.width / 2, M = re.top + re.height / 2;
182
182
  c === "top" || c === "bottom" ? q = Math.min(Math.max(14, ve - v), I.width - 14) : ae = Math.min(Math.max(14, M - F), I.height - 14);
183
183
  }
184
184
  (Math.abs(v - y.x) > 0.5 || Math.abs(F - y.y) > 0.5 || q !== y.arrowX || ae !== y.arrowY) && A(
@@ -195,7 +195,7 @@ function qt({
195
195
  N.current && (window.clearTimeout(N.current), N.current = null);
196
196
  }, $ = (S, O) => {
197
197
  if (!Sl() || x.current) return;
198
- const R = p.current;
198
+ const R = f.current;
199
199
  if (R && !ur(R)) {
200
200
  if (a) {
201
201
  const I = El(R);
@@ -205,7 +205,7 @@ function qt({
205
205
  !a && !r || A({ mouseX: S, mouseY: O, x: S + 14, y: O + 14 });
206
206
  }
207
207
  }, H = () => {
208
- const S = p.current;
208
+ const S = f.current;
209
209
  if (!S) return;
210
210
  const O = S.getBoundingClientRect();
211
211
  $(O.left + O.width / 2, O.bottom);
@@ -224,7 +224,7 @@ function qt({
224
224
  };
225
225
  Q(() => {
226
226
  if (!y) return;
227
- if (ur(p.current)) {
227
+ if (ur(f.current)) {
228
228
  A(null);
229
229
  return;
230
230
  }
@@ -233,7 +233,7 @@ function qt({
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
235
  const R = new MutationObserver(() => {
236
- ur(p.current) && A(null);
236
+ ur(f.current) && A(null);
237
237
  });
238
238
  return R.observe(document.body, {
239
239
  childList: !0,
@@ -260,10 +260,10 @@ function qt({
260
260
  k,
261
261
  {
262
262
  ref: (S) => {
263
- p.current = S;
263
+ f.current = S;
264
264
  },
265
265
  className: m,
266
- style: f,
266
+ style: p,
267
267
  onMouseEnter: (S) => {
268
268
  V(), U(), i ? $(S.clientX, S.clientY) : H();
269
269
  },
@@ -280,7 +280,7 @@ function qt({
280
280
  children: e
281
281
  }
282
282
  ),
283
- y && G && !ur(p.current) ? Ge(
283
+ y && G && !ur(f.current) ? Ge(
284
284
  /* @__PURE__ */ l(
285
285
  "div",
286
286
  {
@@ -380,22 +380,22 @@ function Be({
380
380
  height: d,
381
381
  padding: m,
382
382
  children: b,
383
- className: f = "",
383
+ className: p = "",
384
384
  disabled: w,
385
385
  style: k,
386
- ...p
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 = la(b), $ = i ?? p.title ?? p["aria-label"] ?? (N ? V : void 0), H = $ ? void 0 : p.title, Y = p["aria-label"] ?? (typeof $ == "string" ? $ : 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, K = e === "icon" || N, B = y && K, V = la(b), $ = i ?? f.title ?? f["aria-label"] ?? (N ? V : void 0), H = $ ? void 0 : f.title, Y = f["aria-label"] ?? (typeof $ == "string" ? $ : V || void 0), X = a ? null : n ?? (N ? Bl(b) : null), j = /* @__PURE__ */ l(
389
389
  "button",
390
390
  {
391
- ...p,
391
+ ...f,
392
392
  title: H,
393
393
  "aria-label": Y,
394
394
  "data-variant": e,
395
395
  "data-size": A,
396
396
  "data-icon": K ? "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" : ""} ${f}`,
398
+ className: `${$l} ${B ? Ml : Ll[e]} ${K ? Al[A] : Tl[A]} ${x && !K ? "px-2.5" : ""} ${p}`,
399
399
  style: {
400
400
  ...Dl[e],
401
401
  height: Ya(d),
@@ -568,10 +568,10 @@ function js({
568
568
  moduleRegistry: d,
569
569
  loadModule: m,
570
570
  activeService: b,
571
- initialService: f,
571
+ initialService: p,
572
572
  onActiveServiceChange: w,
573
573
  canAccess: k,
574
- keepAlive: p = !0,
574
+ keepAlive: f = !0,
575
575
  title: C,
576
576
  subtitle: N,
577
577
  emptyState: x,
@@ -599,7 +599,7 @@ function js({
599
599
  ), I = (qe = R.find(
600
600
  (Z) => !Z.disabled
601
601
  )) == null ? void 0 : qe.service, [ee, z] = L(
602
- f ?? I ?? ""
602
+ p ?? I ?? ""
603
603
  ), [v, F] = 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" && R.length >= V, J = te && pe.trim().length > 0, ne = it(() => W ? R.filter(
604
604
  (Z) => Ga(jl(Z)).includes(W)
605
605
  ) : R, [W, R]), xe = b ?? ee, le = R.find((Z) => Z.service === xe) ?? R.find((Z) => !Z.disabled);
@@ -622,7 +622,7 @@ function js({
622
622
  }, de = Ce(() => {
623
623
  if (!le) return;
624
624
  const Z = le.service, Me = T.current[Z];
625
- if (Me != null && Me.loading || Me != null && Me.component && p) return;
625
+ if (Me != null && Me.loading || Me != null && Me.component && f) return;
626
626
  const Te = (d == null ? void 0 : d[Z]) ?? m;
627
627
  if (!Te) {
628
628
  ae((De) => ({
@@ -639,7 +639,7 @@ function js({
639
639
  ...De,
640
640
  [Z]: { ...De[Z], loading: !0, error: void 0 }
641
641
  })), Te(le, i).then((De) => {
642
- if (Re !== ie.current && !p) return;
642
+ if (Re !== ie.current && !f) return;
643
643
  const Je = zl(De);
644
644
  ae((Fe) => ({
645
645
  ...Fe,
@@ -652,7 +652,7 @@ function js({
652
652
  [Z]: { ...Fe[Z], loading: !1, error: Je }
653
653
  }));
654
654
  });
655
- }, [i, p, m, d, le]);
655
+ }, [i, f, m, d, le]);
656
656
  Q(de, [de]);
657
657
  const Se = le ? v[le.service] ?? null : null, be = le ? q[le.service] : void 0, Ee = be == null ? void 0 : be.component, Ne = (Z) => {
658
658
  le && F((Me) => ({
@@ -919,24 +919,24 @@ function _s({
919
919
  minDate: a,
920
920
  displayMode: n = "inline"
921
921
  }) {
922
- const i = Wl(), d = Tn(e || i), m = n === "popover", [b, f] = L(!1), w = se(null), [k, p] = L({
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
925
  }), [C, N] = L(d.year), [x, y] = L(d.month), [A, K] = L("days"), B = 16, [V, $] = L(0), H = C - 7 + V, Y = Array.from({ length: B }, (z, v) => H + v);
926
926
  Q(() => {
927
927
  if (!m || !b || !w.current) return;
928
928
  const z = w.current.getBoundingClientRect(), v = 8, F = 280, q = 340, ae = z.left + F > window.innerWidth - v, re = z.right - F >= v, ve = z.bottom + 8 + q > window.innerHeight - v, M = z.top - 8 - q >= v;
929
- p({
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
935
  function z(F) {
936
- w.current && (w.current.contains(F.target) || f(!1));
936
+ w.current && (w.current.contains(F.target) || p(!1));
937
937
  }
938
938
  function v(F) {
939
- F.key === "Escape" && f(!1);
939
+ F.key === "Escape" && p(!1);
940
940
  }
941
941
  return document.addEventListener("mousedown", z), document.addEventListener("keydown", v), () => {
942
942
  document.removeEventListener("mousedown", z), document.removeEventListener("keydown", v);
@@ -956,7 +956,7 @@ function _s({
956
956
  const O = S.slice(0, Zr * 7);
957
957
  function R(z) {
958
958
  const v = ia(C, x, z);
959
- a && v < a || (r(v), m && f(!1));
959
+ a && v < a || (r(v), m && p(!1));
960
960
  }
961
961
  const I = {
962
962
  background: "none",
@@ -1234,7 +1234,7 @@ function _s({
1234
1234
  "button",
1235
1235
  {
1236
1236
  type: "button",
1237
- onClick: () => f((z) => !z),
1237
+ onClick: () => p((z) => !z),
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)",
@@ -1289,7 +1289,7 @@ const sa = xn(function({
1289
1289
  className: d = "",
1290
1290
  containerClassName: m = "",
1291
1291
  disabled: b,
1292
- ...f
1292
+ ...p
1293
1293
  }, w) {
1294
1294
  const k = se(null);
1295
1295
  return Q(() => {
@@ -1303,14 +1303,14 @@ const sa = xn(function({
1303
1303
  /* @__PURE__ */ t(
1304
1304
  "input",
1305
1305
  {
1306
- ...f,
1307
- ref: (p) => {
1308
- k.current = p, Vl(w, p);
1306
+ ...p,
1307
+ ref: (f) => {
1308
+ k.current = f, Vl(w, f);
1309
1309
  },
1310
1310
  type: "checkbox",
1311
1311
  disabled: b,
1312
- "aria-checked": c ? "mixed" : f["aria-checked"],
1313
- "aria-invalid": !!n || f["aria-invalid"],
1312
+ "aria-checked": c ? "mixed" : p["aria-checked"],
1313
+ "aria-invalid": !!n || p["aria-invalid"],
1314
1314
  className: `peer ${Ul[i]} appearance-none rounded border border-[var(--border)] bg-[var(--bg-input)] transition-colors checked:border-[var(--primary)] checked:bg-[var(--primary)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--primary)]/40 ${d}`
1315
1315
  }
1316
1316
  ),
@@ -1350,10 +1350,10 @@ function Dn({
1350
1350
  copiedIcon: d = /* @__PURE__ */ t(Ue, { size: 14 }),
1351
1351
  stopPropagation: m = !0,
1352
1352
  onCopied: b,
1353
- onCopyError: f,
1353
+ onCopyError: p,
1354
1354
  className: w = "",
1355
1355
  style: k,
1356
- children: p,
1356
+ children: f,
1357
1357
  onClick: C,
1358
1358
  type: N = "button",
1359
1359
  ...x
@@ -1378,10 +1378,10 @@ function Dn({
1378
1378
  try {
1379
1379
  An(H), B(H);
1380
1380
  } catch (j) {
1381
- f == null || f(j, H);
1381
+ p == null || p(j, H);
1382
1382
  return;
1383
1383
  }
1384
- (Y = navigator.clipboard) != null && Y.writeText || f == null || f(X, H);
1384
+ (Y = navigator.clipboard) != null && Y.writeText || p == null || p(X, H);
1385
1385
  }
1386
1386
  }
1387
1387
  return /* @__PURE__ */ l(
@@ -1393,7 +1393,7 @@ function Dn({
1393
1393
  title: y ? n : a,
1394
1394
  "aria-label": x["aria-label"] ?? (y ? n : a),
1395
1395
  "data-copied": y ? "true" : void 0,
1396
- className: `relative inline-flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-md transition-all duration-200 ${p ? "min-w-7 px-2" : "w-7"} ${w}`,
1396
+ className: `relative inline-flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-md transition-all duration-200 ${f ? "min-w-7 px-2" : "w-7"} ${w}`,
1397
1397
  style: {
1398
1398
  cursor: "pointer",
1399
1399
  background: y ? "rgba(22,163,74,0.15)" : "var(--bg-card)",
@@ -1411,7 +1411,7 @@ function Dn({
1411
1411
  children: y ? d : c
1412
1412
  }
1413
1413
  ),
1414
- p && /* @__PURE__ */ t("span", { className: "text-xs font-semibold leading-none", children: y ? i ?? p : p })
1414
+ f && /* @__PURE__ */ t("span", { className: "text-xs font-semibold leading-none", children: y ? i ?? f : f })
1415
1415
  ]
1416
1416
  }
1417
1417
  );
@@ -1427,7 +1427,7 @@ function Fs({
1427
1427
  style: m,
1428
1428
  onCopied: b
1429
1429
  }) {
1430
- const f = (e ?? r ?? "").trim();
1430
+ const p = (e ?? r ?? "").trim();
1431
1431
  return /* @__PURE__ */ l(
1432
1432
  "div",
1433
1433
  {
@@ -1453,7 +1453,7 @@ function Fs({
1453
1453
  /* @__PURE__ */ t(
1454
1454
  Dn,
1455
1455
  {
1456
- value: f,
1456
+ value: p,
1457
1457
  title: "Copiar codigo",
1458
1458
  copiedTitle: "Codigo copiado",
1459
1459
  copiedLabel: c,
@@ -1479,7 +1479,7 @@ function Fs({
1479
1479
  color: "#e2e8f0",
1480
1480
  fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace'
1481
1481
  },
1482
- children: /* @__PURE__ */ t("code", { className: n ? `language-${n}` : void 0, children: f })
1482
+ children: /* @__PURE__ */ t("code", { className: n ? `language-${n}` : void 0, children: p })
1483
1483
  }
1484
1484
  )
1485
1485
  ]
@@ -1500,10 +1500,10 @@ function Wt({
1500
1500
  showSelectedSublabel: d = !0,
1501
1501
  placeholder: m = "Seleccionar…",
1502
1502
  emptyLabel: b,
1503
- disabled: f = !1,
1503
+ disabled: p = !1,
1504
1504
  className: w = "",
1505
1505
  style: k,
1506
- dropdownMinWidth: p,
1506
+ dropdownMinWidth: f,
1507
1507
  height: C = 40,
1508
1508
  padding: N = "0 10px",
1509
1509
  searchable: x = !0,
@@ -1524,10 +1524,10 @@ function Wt({
1524
1524
  top: pe ? void 0 : me.bottom + 4,
1525
1525
  bottom: pe ? window.innerHeight - me.top + 4 : void 0,
1526
1526
  width: me.width,
1527
- minWidth: Jr(p),
1527
+ minWidth: Jr(f),
1528
1528
  zIndex: 9999
1529
1529
  });
1530
- }, [p, I]);
1530
+ }, [f, I]);
1531
1531
  Q(() => X(!0), []), Q(() => {
1532
1532
  if (!A) return;
1533
1533
  function M(me) {
@@ -1728,8 +1728,8 @@ function Wt({
1728
1728
  "button",
1729
1729
  {
1730
1730
  type: "button",
1731
- disabled: f,
1732
- onClick: () => !f && K((M) => !M),
1731
+ disabled: p,
1732
+ onClick: () => !p && K((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: Jr(C),
@@ -1737,8 +1737,8 @@ function Wt({
1737
1737
  background: z ? "transparent" : "var(--bg-input)",
1738
1738
  color: ee ? "var(--text-main)" : "var(--text-muted)",
1739
1739
  border: z ? "1px solid transparent" : `1px solid ${v}`,
1740
- opacity: f ? 0.5 : 1,
1741
- cursor: f ? "not-allowed" : "pointer"
1740
+ opacity: p ? 0.5 : 1,
1741
+ cursor: p ? "not-allowed" : "pointer"
1742
1742
  },
1743
1743
  "aria-haspopup": "listbox",
1744
1744
  "aria-expanded": A,
@@ -1836,10 +1836,10 @@ function Ps({
1836
1836
  height: d = 40,
1837
1837
  padding: m,
1838
1838
  iconLeft: b = 10,
1839
- searchable: f = !0
1839
+ searchable: p = !0
1840
1840
  }) {
1841
1841
  const w = i ? a.map(
1842
- (k, p) => p === 0 && !k.color ? { ...k, sublabel: k.sublabel ?? void 0 } : k
1842
+ (k, f) => f === 0 && !k.color ? { ...k, sublabel: k.sublabel ?? void 0 } : k
1843
1843
  ) : a;
1844
1844
  return /* @__PURE__ */ l("div", { className: `relative ${c}`, children: [
1845
1845
  i && /* @__PURE__ */ t(
@@ -1857,7 +1857,7 @@ function Ps({
1857
1857
  onChange: r,
1858
1858
  options: w,
1859
1859
  placeholder: n,
1860
- searchable: f,
1860
+ searchable: p,
1861
1861
  minOptionsForSearch: 5,
1862
1862
  height: d,
1863
1863
  padding: m ?? (i ? "0 10px 0 30px" : "0 10px"),
@@ -1885,10 +1885,10 @@ function Bn({
1885
1885
  footer: d,
1886
1886
  children: m,
1887
1887
  size: b = "md",
1888
- maxWidth: f,
1888
+ maxWidth: p,
1889
1889
  zIndex: w = 1e3,
1890
1890
  closeOnBackdrop: k = !0,
1891
- closeOnEscape: p = !0,
1891
+ closeOnEscape: f = !0,
1892
1892
  showCloseButton: C = !0,
1893
1893
  placement: N = "center",
1894
1894
  bodyClassName: x = "px-6 py-5",
@@ -1910,13 +1910,13 @@ function Bn({
1910
1910
  document.body.style.overflow = "";
1911
1911
  };
1912
1912
  }, [e]), Q(() => {
1913
- if (!e || !p) return;
1913
+ if (!e || !f) return;
1914
1914
  const I = (ee) => {
1915
1915
  ee.key === "Escape" && r();
1916
1916
  };
1917
1917
  return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
1918
- }, [p, r, e]), !$) return null;
1919
- const U = a || n || i || c || C, G = f ?? 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", R = Y ? "translateY(0) scale(1)" : N === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1918
+ }, [f, r, 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", R = Y ? "translateY(0) scale(1)" : N === "bottom-mobile" ? "translateY(16px) scale(0.98)" : "translateY(10px) scale(0.96)";
1920
1920
  return Ge(
1921
1921
  /* @__PURE__ */ l(
1922
1922
  "div",
@@ -2032,27 +2032,29 @@ function Ws({
2032
2032
  confirmLabel: n = "Confirmar",
2033
2033
  cancelLabel: i = "Cancelar",
2034
2034
  variant: c = "danger",
2035
- onConfirm: d,
2036
- onCancel: m
2035
+ closeOnBackdrop: d = !0,
2036
+ onConfirm: m,
2037
+ onCancel: b
2037
2038
  }) {
2038
- const b = Zl[c];
2039
+ const p = Zl[c];
2039
2040
  return /* @__PURE__ */ l(
2040
2041
  Bn,
2041
2042
  {
2042
2043
  open: e,
2043
- onClose: m,
2044
+ onClose: b,
2044
2045
  size: "sm",
2045
2046
  zIndex: 9998,
2046
2047
  showCloseButton: !1,
2047
2048
  bodyClassName: "p-6",
2048
2049
  panelClassName: "px-1",
2049
2050
  ariaLabel: r,
2051
+ closeOnBackdrop: d,
2050
2052
  children: [
2051
2053
  /* @__PURE__ */ t(
2052
2054
  Be,
2053
2055
  {
2054
2056
  variant: "icon",
2055
- onClick: m,
2057
+ onClick: b,
2056
2058
  className: "absolute right-3 top-3 h-7 w-7 hover:opacity-70",
2057
2059
  style: { color: "var(--text-muted)" },
2058
2060
  "aria-label": "Cancelar",
@@ -2064,13 +2066,13 @@ function Ws({
2064
2066
  {
2065
2067
  className: "mb-4 flex h-11 w-11 items-center justify-center rounded-xl",
2066
2068
  style: {
2067
- background: b.iconBg
2069
+ background: p.iconBg
2068
2070
  },
2069
2071
  children: /* @__PURE__ */ t(
2070
2072
  da,
2071
2073
  {
2072
2074
  className: "h-5 w-5",
2073
- style: { color: b.iconColor }
2075
+ style: { color: p.iconColor }
2074
2076
  }
2075
2077
  )
2076
2078
  }
@@ -2089,7 +2091,7 @@ function Ws({
2089
2091
  Be,
2090
2092
  {
2091
2093
  variant: "secondary",
2092
- onClick: m,
2094
+ onClick: b,
2093
2095
  className: "flex-1",
2094
2096
  style: { background: "var(--bg-input)" },
2095
2097
  children: i
@@ -2099,11 +2101,11 @@ function Ws({
2099
2101
  Be,
2100
2102
  {
2101
2103
  variant: "danger",
2102
- onClick: d,
2104
+ onClick: m,
2103
2105
  className: "flex-1",
2104
2106
  style: {
2105
- background: b.btnBg,
2106
- color: b.btnColor,
2107
+ background: p.btnBg,
2108
+ color: p.btnColor,
2107
2109
  borderColor: "transparent"
2108
2110
  },
2109
2111
  children: n
@@ -2335,17 +2337,17 @@ function mi(e, r, a) {
2335
2337
  return $t(e, n) >= 0 && $t(e, i) <= 0;
2336
2338
  case "top10":
2337
2339
  case "bottom10": {
2338
- const f = a.map((k) => ({ value: k, number: Pt(k) })).filter(
2340
+ const p = a.map((k) => ({ value: k, number: Pt(k) })).filter(
2339
2341
  (k) => k.number !== null
2340
- ).sort((k, p) => k.number - p.number).map((k) => k.value);
2341
- return (r.operator === "top10" ? f.slice(-10) : f.slice(0, 10)).includes(e);
2342
+ ).sort((k, f) => k.number - f.number).map((k) => k.value);
2343
+ return (r.operator === "top10" ? p.slice(-10) : p.slice(0, 10)).includes(e);
2342
2344
  }
2343
2345
  case "aboveAverage":
2344
2346
  case "belowAverage": {
2345
2347
  const b = a.map(Pt).filter((k) => k !== null);
2346
2348
  if (b.length === 0) return !1;
2347
- const f = b.reduce((k, p) => k + p, 0) / b.length, w = Pt(e);
2348
- return w === null ? !1 : r.operator === "aboveAverage" ? w > f : w < f;
2349
+ const p = b.reduce((k, f) => k + f, 0) / b.length, w = Pt(e);
2350
+ return w === null ? !1 : r.operator === "aboveAverage" ? w > p : w < p;
2349
2351
  }
2350
2352
  default:
2351
2353
  return !0;
@@ -2382,10 +2384,10 @@ function Us({
2382
2384
  emptyText: d = "Sin resultados",
2383
2385
  initialEmptyDelay: m = 450,
2384
2386
  onRowClick: b,
2385
- renderExpandedRow: f,
2387
+ renderExpandedRow: p,
2386
2388
  getRowCanExpand: w,
2387
2389
  expandedRowIds: k,
2388
- defaultExpandedRowIds: p = [],
2390
+ defaultExpandedRowIds: f = [],
2389
2391
  onExpandedRowIdsChange: C,
2390
2392
  expandOnRowClick: N = !1,
2391
2393
  selected: x,
@@ -2444,7 +2446,7 @@ rol IN (admin, employee)`,
2444
2446
  e
2445
2447
  ), [nt, Ut] = L(!1), [ct, Vn] = L("filter"), [At, Vt] = L(
2446
2448
  null
2447
- ), [ma, ba] = L(""), [We, Dt] = L({}), [Ve, Kt] = L({}), Sr = k !== void 0, [pa, Kn] = L(p), Bt = W !== void 0, [Yn, Er] = L(te), Qe = Bt ? W : Yn, [Yt, Gt] = L(Qe), [et, dt] = L(!1), [fa, gt] = L(!1), [ha, yt] = L(!1), [Ot, It] = L([]), $r = se(null), va = se(null), Lr = se(null), [Gn, Xn] = L(
2449
+ ), [ma, ba] = L(""), [We, Dt] = L({}), [Ve, Kt] = L({}), Sr = k !== void 0, [pa, Kn] = L(f), Bt = W !== void 0, [Yn, Er] = L(te), Qe = Bt ? W : Yn, [Yt, Gt] = L(Qe), [et, dt] = L(!1), [fa, gt] = L(!1), [ha, yt] = L(!1), [Ot, It] = L([]), $r = se(null), va = se(null), Lr = se(null), [Gn, Xn] = L(
2448
2450
  {}
2449
2451
  ), [Zn, Jn] = L(
2450
2452
  {}
@@ -2932,7 +2934,7 @@ rol IN (admin, employee)`,
2932
2934
  }, [r]), Q(() => {
2933
2935
  Qt(1);
2934
2936
  }, [Ve, We]);
2935
- const ut = !!(O && R), mt = H !== !1, He = ut ? S ?? 1 : oo, Ke = ut || mt ? er : r.length, rt = !!x && !!y && !!A, Ct = !!f, Aa = je.useMemo(
2937
+ const ut = !!(O && R), mt = H !== !1, He = ut ? S ?? 1 : oo, Ke = ut || mt ? er : r.length, rt = !!x && !!y && !!A, Ct = !!p, Aa = je.useMemo(
2936
2938
  () => new Set(
2937
2939
  Sr ? Array.from(k ?? []) : pa
2938
2940
  ),
@@ -4548,7 +4550,7 @@ ${g}`, _ = new Blob(["\uFEFF" + u], {
4548
4550
  ]
4549
4551
  }
4550
4552
  ),
4551
- Le && f && /* @__PURE__ */ t(
4553
+ Le && p && /* @__PURE__ */ t(
4552
4554
  "div",
4553
4555
  {
4554
4556
  role: "row",
@@ -4564,7 +4566,7 @@ ${g}`, _ = new Blob(["\uFEFF" + u], {
4564
4566
  background: "color-mix(in srgb, var(--bg-input) 60%, var(--bg-card))",
4565
4567
  borderBottom: `1px solid ${we}`
4566
4568
  },
4567
- children: f(o)
4569
+ children: p(o)
4568
4570
  }
4569
4571
  )
4570
4572
  }
@@ -4591,7 +4593,7 @@ function bi({
4591
4593
  calendarMonth: e,
4592
4594
  displayIndex: r
4593
4595
  }) {
4594
- const { previousMonth: a, nextMonth: n, goToMonth: i, months: c, labels: d, formatters: m } = Nl(), b = !!a && r === 0, f = !!n && r === c.length - 1;
4596
+ const { previousMonth: a, nextMonth: n, goToMonth: i, months: c, labels: d, formatters: m } = Nl(), b = !!a && r === 0, p = !!n && r === c.length - 1;
4595
4597
  return /* @__PURE__ */ l(
4596
4598
  "div",
4597
4599
  {
@@ -4635,7 +4637,7 @@ function bi({
4635
4637
  type: "button",
4636
4638
  "aria-label": d.labelNext(n),
4637
4639
  onClick: () => n && i(n),
4638
- disabled: !f,
4640
+ disabled: !p,
4639
4641
  style: {
4640
4642
  height: 28,
4641
4643
  width: 28,
@@ -4646,8 +4648,8 @@ function bi({
4646
4648
  alignItems: "center",
4647
4649
  justifyContent: "center",
4648
4650
  color: "var(--text-main)",
4649
- opacity: f ? 1 : 0.45,
4650
- cursor: f ? "pointer" : "not-allowed"
4651
+ opacity: p ? 1 : 0.45,
4652
+ cursor: p ? "pointer" : "not-allowed"
4651
4653
  },
4652
4654
  children: /* @__PURE__ */ t(st, { size: 16 })
4653
4655
  }
@@ -4670,14 +4672,14 @@ function Vs({
4670
4672
  startLabel: m = "Inicio",
4671
4673
  endLabel: b = "Regreso"
4672
4674
  }) {
4673
- const f = {
4675
+ const p = {
4674
4676
  from: Rt(e),
4675
4677
  to: Rt(r)
4676
- }, w = Rt(n), [k, p] = L(
4678
+ }, w = Rt(n), [k, f] = L(
4677
4679
  Rt(i || e)
4678
4680
  );
4679
4681
  return Q(() => {
4680
- p(Rt(i || e));
4682
+ f(Rt(i || e));
4681
4683
  }, [i, e]), /* @__PURE__ */ l("div", { children: [
4682
4684
  /* @__PURE__ */ t(
4683
4685
  "div",
@@ -4695,9 +4697,9 @@ function Vs({
4695
4697
  wl,
4696
4698
  {
4697
4699
  mode: "range",
4698
- selected: f,
4700
+ selected: p,
4699
4701
  month: k,
4700
- onMonthChange: p,
4702
+ onMonthChange: f,
4701
4703
  onSelect: (C) => {
4702
4704
  const N = C != null && C.from ? Ja(C.from) : e, x = C != null && C.to ? Ja(C.to) : "";
4703
4705
  a({ startDate: N, endDate: x });
@@ -4864,9 +4866,9 @@ function Ks({
4864
4866
  menuClassName: d = "",
4865
4867
  onOpenChange: m
4866
4868
  }) {
4867
- const [b, f] = L(!1), [w, k] = L(!1), [p, C] = L({}), N = se(null), x = se(null), y = Ce(
4869
+ const [b, p] = L(!1), [w, k] = L(!1), [f, C] = L({}), N = se(null), x = se(null), y = Ce(
4868
4870
  ($) => {
4869
- f($), m == null || m($);
4871
+ p($), m == null || m($);
4870
4872
  },
4871
4873
  [m]
4872
4874
  ), A = Ce(() => {
@@ -4909,7 +4911,7 @@ function Ks({
4909
4911
  role: "menu",
4910
4912
  "data-bonsaif-overlay": "true",
4911
4913
  className: `overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--bg-card)] p-1 shadow-xl ${d}`,
4912
- style: p,
4914
+ style: f,
4913
4915
  children: r.map(($) => /* @__PURE__ */ l("div", { children: [
4914
4916
  $.separatorBefore && /* @__PURE__ */ t("div", { className: "my-1 border-t border-[var(--border)]" }),
4915
4917
  /* @__PURE__ */ l(
@@ -4966,10 +4968,10 @@ function Ys({
4966
4968
  onConfirm: d,
4967
4969
  loading: m = !1,
4968
4970
  confirmDisabled: b = !1,
4969
- headerActions: f,
4971
+ headerActions: p,
4970
4972
  bodyClassName: w = "flex-1 overflow-y-auto px-6 py-5",
4971
4973
  width: k = 440,
4972
- hasUnsavedChanges: p = !1,
4974
+ hasUnsavedChanges: f = !1,
4973
4975
  unsavedChangesTitle: C = "Descartar cambios",
4974
4976
  unsavedChangesDescription: N = "Hay cambios sin guardar. Si cierras el drawer se perderán.",
4975
4977
  unsavedChangesConfirmLabel: x = "Descartar",
@@ -4987,12 +4989,12 @@ function Ys({
4987
4989
  vi
4988
4990
  );
4989
4991
  }, []), G = Ce(() => {
4990
- if (p) {
4992
+ if (f) {
4991
4993
  j();
4992
4994
  return;
4993
4995
  }
4994
4996
  r();
4995
- }, [p, r, j]), S = Ce(() => {
4997
+ }, [f, r, j]), S = Ce(() => {
4996
4998
  X(!1), H(!1), A == null || A(), r();
4997
4999
  }, [r, A]);
4998
5000
  return Q(() => {
@@ -5064,8 +5066,8 @@ function Ys({
5064
5066
  )
5065
5067
  ] })
5066
5068
  ] }),
5067
- (f || d) && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
5068
- f,
5069
+ (p || d) && /* @__PURE__ */ l("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
5070
+ p,
5069
5071
  d && /* @__PURE__ */ l(ze, { children: [
5070
5072
  /* @__PURE__ */ t(
5071
5073
  Be,
@@ -5408,12 +5410,12 @@ function Rn({
5408
5410
  labelAction: d,
5409
5411
  floatingLabel: m = !1,
5410
5412
  showPasswordToggle: b = !0,
5411
- nativeValidation: f = !1,
5413
+ nativeValidation: p = !1,
5412
5414
  className: w = "",
5413
5415
  required: k,
5414
- ...p
5416
+ ...f
5415
5417
  }) {
5416
- const [C, N] = L(() => !!p.autoFocus), [x, y] = L(!1), A = p.type === "password" && b, K = A && x ? "text" : p.type, B = !!n, V = B && i !== "tooltip", $ = B && i !== "inline", H = f ? k : void 0, Y = B ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", X = $ ? A ? "pr-20" : "pr-10" : A ? "pr-10" : "", j = p.value !== void 0 ? String(p.value).length > 0 : p.defaultValue !== void 0 && String(p.defaultValue).length > 0, U = C || j, G = {
5418
+ 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", $ = B && i !== "inline", H = p ? k : void 0, Y = B ? "border-[var(--danger)] focus:border-[var(--danger)]" : "", X = $ ? 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 = {
5417
5419
  top: U ? 7 : 12,
5418
5420
  color: C ? "var(--primary)" : "var(--text-muted)",
5419
5421
  fontSize: U ? 10 : 13,
@@ -5421,10 +5423,10 @@ function Rn({
5421
5423
  textTransform: U ? "uppercase" : "none"
5422
5424
  }, S = (ee) => {
5423
5425
  var z;
5424
- N(!0), (z = p.onFocus) == null || z.call(p, ee);
5426
+ N(!0), (z = f.onFocus) == null || z.call(f, ee);
5425
5427
  }, O = (ee) => {
5426
5428
  var z;
5427
- N(!1), (z = p.onBlur) == null || z.call(p, ee);
5429
+ N(!1), (z = f.onBlur) == null || z.call(f, ee);
5428
5430
  }, R = A ? /* @__PURE__ */ l(
5429
5431
  "button",
5430
5432
  {
@@ -5476,11 +5478,11 @@ function Rn({
5476
5478
  /* @__PURE__ */ t(
5477
5479
  Qr,
5478
5480
  {
5479
- ...p,
5481
+ ...f,
5480
5482
  type: K,
5481
5483
  required: H,
5482
5484
  placeholder: " ",
5483
- "aria-invalid": B || p["aria-invalid"],
5485
+ "aria-invalid": B || f["aria-invalid"],
5484
5486
  "data-has-value": j ? "true" : void 0,
5485
5487
  className: `h-11 w-full pt-5 ${X} ${Y} ${w}`,
5486
5488
  onFocus: S,
@@ -5520,10 +5522,10 @@ function Rn({
5520
5522
  /* @__PURE__ */ t(
5521
5523
  Qr,
5522
5524
  {
5523
- ...p,
5525
+ ...f,
5524
5526
  type: K,
5525
5527
  required: H,
5526
- "aria-invalid": B || p["aria-invalid"],
5528
+ "aria-invalid": B || f["aria-invalid"],
5527
5529
  className: `w-full ${X} ${Y} ${w}`,
5528
5530
  onFocus: S,
5529
5531
  onBlur: O
@@ -5535,9 +5537,9 @@ function Rn({
5535
5537
  /* @__PURE__ */ t(
5536
5538
  Qr,
5537
5539
  {
5538
- ...p,
5540
+ ...f,
5539
5541
  required: H,
5540
- "aria-invalid": B || p["aria-invalid"],
5542
+ "aria-invalid": B || f["aria-invalid"],
5541
5543
  className: `w-full ${X} ${Y} ${w}`
5542
5544
  }
5543
5545
  ),
@@ -5559,15 +5561,15 @@ function nc({
5559
5561
  value: d,
5560
5562
  defaultValue: m,
5561
5563
  onChange: b,
5562
- ...f
5564
+ ...p
5563
5565
  }) {
5564
5566
  const [w, k] = L(
5565
5567
  () => an(m)
5566
- ), p = d !== void 0 ? an(d) : w, C = a && p.length > 0 && !Hn(p) ? n : void 0;
5568
+ ), f = d !== void 0 ? an(d) : w, C = a && f.length > 0 && !Hn(f) ? n : void 0;
5567
5569
  return /* @__PURE__ */ t(
5568
5570
  Rn,
5569
5571
  {
5570
- ...f,
5572
+ ...p,
5571
5573
  value: d,
5572
5574
  defaultValue: m,
5573
5575
  type: "text",
@@ -5645,10 +5647,10 @@ function lc({
5645
5647
  onFilesChange: d,
5646
5648
  onRejectedFiles: m,
5647
5649
  multiple: b = !1,
5648
- maxFiles: f,
5650
+ maxFiles: p,
5649
5651
  appendFiles: w = !1,
5650
5652
  showFileList: k = !0,
5651
- clearable: p = !0,
5653
+ clearable: f = !0,
5652
5654
  browseLabel: C = "Buscar archivos",
5653
5655
  dropLabel: N = "Suelta los archivos aqui",
5654
5656
  emptyLabel: x = "Arrastra y suelta archivos",
@@ -5665,14 +5667,14 @@ function lc({
5665
5667
  required: U,
5666
5668
  ...G
5667
5669
  }) {
5668
- const S = Io(), O = Y ?? S, R = se(null), [I, ee] = L(!1), [z, v] = L(c), F = i ?? z, q = !!a, ae = p && F.length > 0 && !j, re = (ne, xe) => {
5670
+ const S = Io(), O = Y ?? S, R = se(null), [I, ee] = L(!1), [z, v] = L(c), F = i ?? z, q = !!a, ae = f && F.length > 0 && !j, re = (ne, xe) => {
5669
5671
  i === void 0 && v(ne), d == null || d(ne, xe);
5670
5672
  }, ve = (ne, xe) => {
5671
5673
  const le = ne.filter(
5672
5674
  (de) => nn(de, X)
5673
5675
  ), E = ne.filter(
5674
5676
  (de) => !nn(de, X)
5675
- ), P = w ? [...F, ...le] : le, ce = Oi(P, b, f);
5677
+ ), P = w ? [...F, ...le] : le, ce = Oi(P, b, p);
5676
5678
  E.length > 0 && (m == null || m(E)), re(ce, xe);
5677
5679
  }, M = () => {
5678
5680
  var ne;
@@ -5808,23 +5810,23 @@ function ic({
5808
5810
  addFieldLabel: d = "Anadir",
5809
5811
  loading: m = !1,
5810
5812
  onSave: b,
5811
- onChange: f
5813
+ onChange: p
5812
5814
  }) {
5813
5815
  const [w, k] = L(
5814
5816
  () => e.map((B) => ({ key: !1, type: "", ...B }))
5815
- ), [p, C] = L(""), [N, x] = L(""), y = Ce(
5817
+ ), [f, C] = L(""), [N, x] = L(""), y = Ce(
5816
5818
  (B, V) => {
5817
5819
  k(($) => {
5818
5820
  const H = $.map((Y, X) => X === B ? { ...Y, ...V } : Y);
5819
- return f == null || f(H), H;
5821
+ return p == null || p(H), H;
5820
5822
  });
5821
5823
  },
5822
- [f]
5824
+ [p]
5823
5825
  ), A = Ce(() => {
5824
5826
  b == null || b(w);
5825
5827
  }, [w, b]), K = Ce(() => {
5826
5828
  var H;
5827
- const B = p.trim();
5829
+ const B = f.trim();
5828
5830
  if (!B) {
5829
5831
  x("Ingresa un nombre de campo.");
5830
5832
  return;
@@ -5842,9 +5844,9 @@ function ic({
5842
5844
  };
5843
5845
  k((Y) => {
5844
5846
  const X = [...Y, $];
5845
- return f == null || f(X), X;
5847
+ return p == null || p(X), X;
5846
5848
  }), C(""), x("");
5847
- }, [a, w, p, f]);
5849
+ }, [a, w, f, p]);
5848
5850
  return /* @__PURE__ */ l(
5849
5851
  "div",
5850
5852
  {
@@ -5944,7 +5946,7 @@ function ic({
5944
5946
  "input",
5945
5947
  {
5946
5948
  type: "text",
5947
- value: p,
5949
+ value: f,
5948
5950
  onChange: (B) => {
5949
5951
  C(B.currentTarget.value), N && x("");
5950
5952
  },
@@ -6028,14 +6030,14 @@ function sc({
6028
6030
  style: d,
6029
6031
  height: m = 40,
6030
6032
  padding: b = "6px 10px",
6031
- searchable: f = !0,
6033
+ searchable: p = !0,
6032
6034
  minOptionsForSearch: w = 6,
6033
6035
  maxVisibleValues: k = 2,
6034
- truncateSelectedValues: p = !0,
6036
+ truncateSelectedValues: f = !0,
6035
6037
  emptyText: C = "Sin resultados",
6036
6038
  clearLabel: N = "Limpiar seleccion"
6037
6039
  }) {
6038
- const [x, y] = L(!1), [A, K] = L(""), [B, V] = L(0), [$, H] = L(!1), [Y, X] = L({}), j = se(null), U = se(null), G = se(null), S = se(null), O = f && a.length >= w, R = it(() => new Set(e), [e]), I = it(
6040
+ const [x, y] = L(!1), [A, K] = L(""), [B, V] = L(0), [$, H] = L(!1), [Y, X] = L({}), j = se(null), U = se(null), G = se(null), S = se(null), O = p && a.length >= w, R = it(() => new Set(e), [e]), I = it(
6039
6041
  () => a.filter((T) => R.has(T.value)),
6040
6042
  [a, R]
6041
6043
  ), ee = k === "all" ? I.length : k, z = I.slice(0, ee), v = Math.max(
@@ -6306,7 +6308,7 @@ function sc({
6306
6308
  z.map((T) => /* @__PURE__ */ l(
6307
6309
  "span",
6308
6310
  {
6309
- className: `inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs font-semibold ${p ? "max-w-[160px]" : "max-w-full whitespace-normal"}`,
6311
+ 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"}`,
6310
6312
  style: {
6311
6313
  background: "var(--bg-card)",
6312
6314
  borderColor: "var(--border)",
@@ -6323,7 +6325,7 @@ function sc({
6323
6325
  /* @__PURE__ */ t(
6324
6326
  "span",
6325
6327
  {
6326
- className: p ? "truncate" : "break-words",
6328
+ className: f ? "truncate" : "break-words",
6327
6329
  children: T.label
6328
6330
  }
6329
6331
  )
@@ -6416,7 +6418,7 @@ function dc({
6416
6418
  }
6417
6419
  ),
6418
6420
  b.map(
6419
- (f, w) => f === "..." ? /* @__PURE__ */ t(
6421
+ (p, w) => p === "..." ? /* @__PURE__ */ t(
6420
6422
  "span",
6421
6423
  {
6422
6424
  className: "flex h-8 min-w-8 items-center justify-center text-xs font-semibold text-[var(--text-muted)]",
@@ -6427,18 +6429,18 @@ function dc({
6427
6429
  "button",
6428
6430
  {
6429
6431
  type: "button",
6430
- "aria-current": f === m ? "page" : void 0,
6432
+ "aria-current": p === m ? "page" : void 0,
6431
6433
  disabled: n,
6432
- onClick: () => a(f),
6434
+ onClick: () => a(p),
6433
6435
  className: "flex h-8 min-w-8 items-center justify-center rounded-md border px-2 text-xs font-semibold transition-colors disabled:cursor-not-allowed disabled:opacity-50",
6434
6436
  style: {
6435
- borderColor: f === m ? "var(--primary)" : "var(--border)",
6436
- background: f === m ? "var(--primary)" : "var(--bg-card)",
6437
- color: f === m ? "var(--primary-fg)" : "var(--text-secondary)"
6437
+ borderColor: p === m ? "var(--primary)" : "var(--border)",
6438
+ background: p === m ? "var(--primary)" : "var(--bg-card)",
6439
+ color: p === m ? "var(--primary-fg)" : "var(--text-secondary)"
6438
6440
  },
6439
- children: f
6441
+ children: p
6440
6442
  },
6441
- f
6443
+ p
6442
6444
  )
6443
6445
  ),
6444
6446
  /* @__PURE__ */ t(
@@ -6682,10 +6684,10 @@ function uc({
6682
6684
  value: d,
6683
6685
  defaultValue: m,
6684
6686
  onChange: b,
6685
- countryCode: f,
6687
+ countryCode: p,
6686
6688
  defaultCountryCode: w = "+1",
6687
6689
  onCountryCodeChange: k,
6688
- allowedCountryCodes: p,
6690
+ allowedCountryCodes: f,
6689
6691
  countryCodeOptions: C,
6690
6692
  countryCodePlaceholder: N = "Codigo",
6691
6693
  countryCodeClassName: x = "",
@@ -6710,11 +6712,11 @@ function uc({
6710
6712
  ), [ee, z] = L(
6711
6713
  () => vr(w)
6712
6714
  ), v = it(() => {
6713
- const xe = C ?? _i, le = p == null ? void 0 : p.map(vr);
6715
+ const xe = C ?? _i, le = f == null ? void 0 : f.map(vr);
6714
6716
  return le != null && le.length ? xe.filter((E) => le.includes(E.value)) : xe;
6715
- }, [p, C]), F = ((ne = v[0]) == null ? void 0 : ne.value) ?? "+1", q = v.some(
6716
- (xe) => xe.value === vr(f ?? ee)
6717
- ) ? vr(f ?? ee) : F, 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) => {
6717
+ }, [f, C]), F = ((ne = v[0]) == null ? void 0 : ne.value) ?? "+1", q = v.some(
6718
+ (xe) => xe.value === vr(p ?? ee)
6719
+ ) ? vr(p ?? ee) : F, 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) => {
6718
6720
  const le = xe.currentTarget.value;
6719
6721
  d === void 0 && I(le), A == null || A(le, {
6720
6722
  countryCode: q,
@@ -6722,7 +6724,7 @@ function uc({
6722
6724
  fullNumber: `${q} ${le}`.trim()
6723
6725
  }), b == null || b(xe);
6724
6726
  }, te = (xe) => {
6725
- f === void 0 && z(xe), k == null || k(xe), A == null || A(ae, {
6727
+ p === void 0 && z(xe), k == null || k(xe), A == null || A(ae, {
6726
6728
  countryCode: xe,
6727
6729
  nationalNumber: ae,
6728
6730
  fullNumber: `${xe} ${ae}`.trim()
@@ -6820,8 +6822,8 @@ function mc({
6820
6822
  "div",
6821
6823
  {
6822
6824
  className: c === "horizontal" ? "flex flex-wrap gap-2" : "flex flex-col gap-2",
6823
- children: a.map((f) => {
6824
- const w = f.value === e, k = d || f.disabled;
6825
+ children: a.map((p) => {
6826
+ const w = p.value === e, k = d || p.disabled;
6825
6827
  return /* @__PURE__ */ l(
6826
6828
  "label",
6827
6829
  {
@@ -6837,10 +6839,10 @@ function mc({
6837
6839
  {
6838
6840
  type: "radio",
6839
6841
  name: n,
6840
- value: f.value,
6842
+ value: p.value,
6841
6843
  checked: w,
6842
6844
  disabled: k,
6843
- onChange: () => r(f.value),
6845
+ onChange: () => r(p.value),
6844
6846
  className: "absolute inset-0 opacity-0"
6845
6847
  }
6846
6848
  ),
@@ -6853,12 +6855,12 @@ function mc({
6853
6855
  )
6854
6856
  ] }),
6855
6857
  /* @__PURE__ */ l("span", { className: "min-w-0", children: [
6856
- /* @__PURE__ */ t("span", { className: "block text-sm font-medium leading-5 text-[var(--text-main)]", children: f.label }),
6857
- f.description && /* @__PURE__ */ t("span", { className: "block text-xs leading-5 text-[var(--text-muted)]", children: f.description })
6858
+ /* @__PURE__ */ t("span", { className: "block text-sm font-medium leading-5 text-[var(--text-main)]", children: p.label }),
6859
+ p.description && /* @__PURE__ */ t("span", { className: "block text-xs leading-5 text-[var(--text-muted)]", children: p.description })
6858
6860
  ] })
6859
6861
  ]
6860
6862
  },
6861
- f.value
6863
+ p.value
6862
6864
  );
6863
6865
  })
6864
6866
  }
@@ -6905,12 +6907,12 @@ function bc({
6905
6907
  placeholder: a = "Escribe algo...",
6906
6908
  minHeight: n = "80px"
6907
6909
  }) {
6908
- const i = se(null), c = se(null), d = se(null), m = se(!1), b = se(e ?? ""), f = se(r), [w, k] = L(() => !e || e.trim() === ""), [p, C] = L(/* @__PURE__ */ new Set()), [N, x] = L(null), [y, A] = L(""), [K, B] = L(""), [V, $] = L(""), [H, Y] = L(""), [X, j] = L(!1), U = Ce(
6910
+ 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, $] = L(""), [H, Y] = L(""), [X, j] = L(!1), U = Ce(
6909
6911
  () => m.current ? c.current : i.current,
6910
6912
  []
6911
6913
  );
6912
6914
  Q(() => {
6913
- f.current = r;
6915
+ p.current = r;
6914
6916
  }, [r]);
6915
6917
  const G = Ce(() => {
6916
6918
  const E = window.getSelection(), P = U();
@@ -6949,7 +6951,7 @@ function bc({
6949
6951
  P = requestAnimationFrame(Ee);
6950
6952
  } else {
6951
6953
  const be = c.current, Ee = i.current, Ne = (be == null ? void 0 : be.innerHTML) ?? b.current, ue = b.current;
6952
- b.current = Ne, Ee && Ee.innerHTML !== Ne && (Ee.innerHTML = Ne), Ne !== ue && f.current(Ne), k(((Se = (de = be ?? Ee) == null ? void 0 : de.textContent) == null ? void 0 : Se.trim()) === "");
6954
+ 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()) === "");
6953
6955
  }
6954
6956
  return () => {
6955
6957
  P && cancelAnimationFrame(P), ce && clearTimeout(ce), E == null || E();
@@ -6988,7 +6990,7 @@ function bc({
6988
6990
  }, [G]), O = () => {
6989
6991
  var P;
6990
6992
  const E = U();
6991
- E && (b.current = E.innerHTML, f.current(b.current), k(((P = E.textContent) == null ? void 0 : P.trim()) === ""));
6993
+ E && (b.current = E.innerHTML, p.current(b.current), k(((P = E.textContent) == null ? void 0 : P.trim()) === ""));
6992
6994
  }, R = (E) => {
6993
6995
  if (!E) {
6994
6996
  const P = i.current;
@@ -7106,7 +7108,7 @@ function bc({
7106
7108
  style: { background: "var(--border)" }
7107
7109
  }
7108
7110
  ), J = (E, P, ce, de, Se) => {
7109
- const be = Se ?? (p.has(ce) || ce === "__link" && N === "link" || ce === "__img" && N === "image");
7111
+ const be = Se ?? (f.has(ce) || ce === "__link" && N === "link" || ce === "__img" && N === "image");
7110
7112
  return /* @__PURE__ */ t(
7111
7113
  "button",
7112
7114
  {
@@ -7286,28 +7288,28 @@ function bc({
7286
7288
  "Parrafo",
7287
7289
  "__paragraph",
7288
7290
  () => ee("p"),
7289
- p.has("formatBlock:p") || p.has("formatBlock:div")
7291
+ f.has("formatBlock:p") || f.has("formatBlock:div")
7290
7292
  ),
7291
7293
  J(
7292
7294
  /* @__PURE__ */ t(Yo, { className: "h-4 w-4" }),
7293
7295
  "Titulo 2",
7294
7296
  "__h2",
7295
7297
  () => ee("h2"),
7296
- p.has("formatBlock:h2")
7298
+ f.has("formatBlock:h2")
7297
7299
  ),
7298
7300
  J(
7299
7301
  /* @__PURE__ */ t(Go, { className: "h-4 w-4" }),
7300
7302
  "Titulo 3",
7301
7303
  "__h3",
7302
7304
  () => ee("h3"),
7303
- p.has("formatBlock:h3")
7305
+ f.has("formatBlock:h3")
7304
7306
  ),
7305
7307
  J(
7306
7308
  /* @__PURE__ */ t("span", { style: { fontSize: "13px", lineHeight: 1 }, children: "“" }),
7307
7309
  "Cita",
7308
7310
  "__quote",
7309
7311
  () => ee("blockquote"),
7310
- p.has("formatBlock:blockquote")
7312
+ f.has("formatBlock:blockquote")
7311
7313
  ),
7312
7314
  te(),
7313
7315
  J(/* @__PURE__ */ t("b", { children: "B" }), "Negrita (Ctrl+B)", "bold"),
@@ -7659,10 +7661,10 @@ function hc({
7659
7661
  stopPropagation: d = !1,
7660
7662
  ariaLabel: m = "Cambiar estado",
7661
7663
  title: b = "Cambiar estado",
7662
- className: f,
7664
+ className: p,
7663
7665
  selectClassName: w,
7664
7666
  menuClassName: k,
7665
- optionClassName: p,
7667
+ optionClassName: f,
7666
7668
  spinnerClassName: C
7667
7669
  }) {
7668
7670
  const [N, x] = L(!1), [y, A] = L(!1), [K, B] = L(-1), [V, $] = L({}), H = se(null), Y = se(null), X = se(null), j = r.find((v) => v.value === e) ?? r[0], U = {
@@ -7790,7 +7792,7 @@ function hc({
7790
7792
  "flex w-full items-center gap-2 rounded-lg font-medium text-left transition-colors disabled:cursor-not-allowed disabled:opacity-45",
7791
7793
  Yi[n],
7792
7794
  q ? v.className : void 0,
7793
- p
7795
+ f
7794
7796
  ),
7795
7797
  style: {
7796
7798
  ...q ? re : void 0,
@@ -7813,7 +7815,7 @@ function hc({
7813
7815
  "span",
7814
7816
  {
7815
7817
  ref: H,
7816
- className: ht("relative inline-flex shrink-0 items-center", f),
7818
+ className: ht("relative inline-flex shrink-0 items-center", p),
7817
7819
  onKeyDown: ee,
7818
7820
  onClick: S,
7819
7821
  onPointerDown: S,
@@ -7875,7 +7877,7 @@ function vc({
7875
7877
  listClassName: m = "",
7876
7878
  panelClassName: b = ""
7877
7879
  }) {
7878
- const f = e.find((N) => !N.disabled) ?? e[0], w = r ?? a ?? (f == null ? void 0 : f.id), k = e.find((N) => N.id === w) ?? f, p = (N) => {
7880
+ const p = e.find((N) => !N.disabled) ?? e[0], w = r ?? a ?? (p == null ? void 0 : p.id), k = e.find((N) => N.id === w) ?? p, f = (N) => {
7879
7881
  N.disabled || n == null || n(N.id);
7880
7882
  };
7881
7883
  return /* @__PURE__ */ l("div", { className: d, children: [
@@ -7890,9 +7892,9 @@ function vc({
7890
7892
  const y = x.findIndex(
7891
7893
  (A) => A.id === k.id
7892
7894
  );
7893
- (N.key === "ArrowRight" || N.key === "ArrowDown") && (N.preventDefault(), p(x[(y + 1) % x.length])), (N.key === "ArrowLeft" || N.key === "ArrowUp") && (N.preventDefault(), p(
7895
+ (N.key === "ArrowRight" || N.key === "ArrowDown") && (N.preventDefault(), f(x[(y + 1) % x.length])), (N.key === "ArrowLeft" || N.key === "ArrowUp") && (N.preventDefault(), f(
7894
7896
  x[(y - 1 + x.length) % x.length]
7895
- )), N.key === "Home" && (N.preventDefault(), p(x[0])), N.key === "End" && (N.preventDefault(), p(x[x.length - 1]));
7897
+ )), N.key === "Home" && (N.preventDefault(), f(x[0])), N.key === "End" && (N.preventDefault(), f(x[x.length - 1]));
7896
7898
  },
7897
7899
  className: `flex min-w-0 gap-1 overflow-x-auto ${c === "underline" ? "border-b border-[var(--border)]" : "rounded-lg border border-[var(--border)] bg-[var(--bg-input)] p-1"} ${m}`,
7898
7900
  children: e.map((N) => {
@@ -7907,7 +7909,7 @@ function vc({
7907
7909
  id: `${N.id}-tab`,
7908
7910
  disabled: N.disabled,
7909
7911
  tabIndex: x ? 0 : -1,
7910
- onClick: () => p(N),
7912
+ onClick: () => f(N),
7911
7913
  className: `inline-flex min-h-8 shrink-0 items-center justify-center gap-1.5 whitespace-nowrap px-2.5 text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${c === "underline" ? "border-b-2" : "rounded-md border"}`,
7912
7914
  style: {
7913
7915
  color: x ? "var(--primary)" : "var(--text-muted)",
@@ -7950,10 +7952,10 @@ function xc({
7950
7952
  onCompletedStepIdsChange: d,
7951
7953
  onBlockedStep: m,
7952
7954
  allowBackNavigation: b = !0,
7953
- showFooter: f = !0,
7955
+ showFooter: p = !0,
7954
7956
  previousLabel: w = "Anterior",
7955
7957
  nextLabel: k = "Siguiente",
7956
- blockedNextLabel: p = "Completa este paso",
7958
+ blockedNextLabel: f = "Completa este paso",
7957
7959
  className: C = "",
7958
7960
  headerClassName: N = "",
7959
7961
  contentClassName: x = "",
@@ -8127,7 +8129,7 @@ function xc({
8127
8129
  },
8128
8130
  U.id
8129
8131
  ),
8130
- f && /* @__PURE__ */ l(
8132
+ p && /* @__PURE__ */ l(
8131
8133
  "div",
8132
8134
  {
8133
8135
  className: lt(
@@ -8168,7 +8170,7 @@ function xc({
8168
8170
  icon: /* @__PURE__ */ t(st, {}),
8169
8171
  disabled: !M || !T,
8170
8172
  onClick: re,
8171
- children: M && !T ? p : k
8173
+ children: M && !T ? f : k
8172
8174
  }
8173
8175
  )
8174
8176
  ]
@@ -8210,10 +8212,10 @@ const Qi = xn(
8210
8212
  minRows: d,
8211
8213
  maxRows: m,
8212
8214
  showCount: b = !1,
8213
- maxCount: f,
8215
+ maxCount: p,
8214
8216
  status: w = "default",
8215
8217
  icon: k,
8216
- action: p,
8218
+ action: f,
8217
8219
  style: C,
8218
8220
  value: N,
8219
8221
  defaultValue: x,
@@ -8221,7 +8223,7 @@ const Qi = xn(
8221
8223
  onInput: A,
8222
8224
  ...K
8223
8225
  }, B) {
8224
- const V = se(null), $ = Ji(N, x), H = f ?? y, Y = !!(k || p || b), X = w === "error" ? "var(--danger)" : w === "success" ? "#16a34a" : "var(--border)", j = {
8226
+ const V = se(null), $ = Ji(N, x), H = p ?? y, Y = !!(k || f || b), X = w === "error" ? "var(--danger)" : w === "success" ? "#16a34a" : "var(--border)", j = {
8225
8227
  ...C ?? {},
8226
8228
  ...d ? { minHeight: `${d * 24 + 18}px` } : null,
8227
8229
  ...m ? { maxHeight: `${m * 24 + 18}px` } : null
@@ -8245,13 +8247,13 @@ const Qi = xn(
8245
8247
  U(), A == null || A(S);
8246
8248
  },
8247
8249
  style: { ...j, borderColor: X },
8248
- 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" : ""} ${p ? "pr-10" : ""} ${r}`
8250
+ 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}`
8249
8251
  }
8250
8252
  );
8251
8253
  return Y ? /* @__PURE__ */ l("span", { className: `relative block ${a}`, children: [
8252
8254
  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 }),
8253
8255
  G,
8254
- p && /* @__PURE__ */ t("span", { className: "absolute right-2 top-2 flex items-center justify-center", children: p }),
8256
+ f && /* @__PURE__ */ t("span", { className: "absolute right-2 top-2 flex items-center justify-center", children: f }),
8255
8257
  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: [
8256
8258
  $,
8257
8259
  H ? `/${H}` : ""
@@ -8458,10 +8460,10 @@ function us({
8458
8460
  tooltipContent: d,
8459
8461
  fallbackLabel: m = "Usuario",
8460
8462
  wrapperClassName: b = "",
8461
- labelClassName: f = "",
8463
+ labelClassName: p = "",
8462
8464
  labelSize: w = "xs",
8463
8465
  avatarVersion: k = 0,
8464
- className: p = "",
8466
+ className: f = "",
8465
8467
  style: C
8466
8468
  }) {
8467
8469
  var R;
@@ -8478,7 +8480,7 @@ function us({
8478
8480
  }[n], G = H ? /* @__PURE__ */ t(
8479
8481
  "span",
8480
8482
  {
8481
- 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 ${p}`,
8483
+ 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}`,
8482
8484
  style: C,
8483
8485
  children: /* @__PURE__ */ t(
8484
8486
  "img",
@@ -8498,7 +8500,7 @@ function us({
8498
8500
  alt: B,
8499
8501
  width: U,
8500
8502
  height: U,
8501
- className: `${A} rounded-full object-cover flex-shrink-0 ${p}`,
8503
+ className: `${A} rounded-full object-cover flex-shrink-0 ${f}`,
8502
8504
  style: C,
8503
8505
  onError: () => x(!0)
8504
8506
  },
@@ -8506,7 +8508,7 @@ function us({
8506
8508
  ) : /* @__PURE__ */ t(
8507
8509
  "span",
8508
8510
  {
8509
- className: `${A} ${ss(B)} ${K} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${p}`,
8511
+ className: `${A} ${ss(B)} ${K} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${f}`,
8510
8512
  style: C,
8511
8513
  title: B,
8512
8514
  children: V
@@ -8522,7 +8524,7 @@ function us({
8522
8524
  /* @__PURE__ */ t(
8523
8525
  "span",
8524
8526
  {
8525
- className: `min-w-0 truncate ${ns[w]} font-medium text-[var(--text-main)] ${f}`,
8527
+ className: `min-w-0 truncate ${ns[w]} font-medium text-[var(--text-main)] ${p}`,
8526
8528
  title: B,
8527
8529
  children: B
8528
8530
  }
@@ -8560,9 +8562,9 @@ function ps({
8560
8562
  header: d,
8561
8563
  footer: m,
8562
8564
  onLogout: b,
8563
- LinkComponent: f = ms
8565
+ LinkComponent: p = ms
8564
8566
  }) {
8565
- const [w, k] = L(!1), p = bs(r);
8567
+ const [w, k] = L(!1), f = bs(r);
8566
8568
  return /* @__PURE__ */ l("div", { className: "min-h-screen bg-[var(--bg-main)] text-[var(--text-main)]", children: [
8567
8569
  /* @__PURE__ */ t(rs, {}),
8568
8570
  /* @__PURE__ */ t(
@@ -8608,7 +8610,7 @@ function ps({
8608
8610
  {
8609
8611
  className: "sidebar-scroll min-h-0 flex-1 overflow-y-auto px-3 py-4",
8610
8612
  "data-overlay-scroll": "true",
8611
- children: Object.entries(p).map(([C, N]) => /* @__PURE__ */ l("div", { className: "mb-5", children: [
8613
+ children: Object.entries(f).map(([C, N]) => /* @__PURE__ */ l("div", { className: "mb-5", children: [
8612
8614
  /* @__PURE__ */ l("div", { className: "mb-2 flex items-center gap-2 px-2 text-[11px] font-semibold uppercase tracking-wide text-white/35", children: [
8613
8615
  /* @__PURE__ */ t(Ye, { className: "h-3.5 w-3.5" }),
8614
8616
  C
@@ -8616,7 +8618,7 @@ function ps({
8616
8618
  /* @__PURE__ */ t("div", { className: "space-y-1", children: N.map((x) => {
8617
8619
  const y = a === x.href || a.startsWith(`${x.href}/`);
8618
8620
  return /* @__PURE__ */ l(
8619
- f,
8621
+ p,
8620
8622
  {
8621
8623
  href: x.href,
8622
8624
  className: `flex min-w-0 items-center gap-2 rounded-md px-2 py-2 text-sm transition-colors ${y ? "bg-white/10 text-white" : "text-white/55 hover:bg-white/[0.06] hover:text-white/85"}`,
@@ -8775,11 +8777,11 @@ function wc({
8775
8777
  contentClassName: d = "",
8776
8778
  breadcrumbs: m,
8777
8779
  currentPath: b,
8778
- showBreadcrumbs: f = !0,
8780
+ showBreadcrumbs: p = !0,
8779
8781
  contained: w = !1,
8780
8782
  LinkComponent: k = hs
8781
8783
  }) {
8782
- const p = se(null), [C, N] = L(!1), [x, y] = L(b ?? "/"), [A, K] = L(() => fn()), [B, V] = L(null), $ = b ?? x, H = m ?? gs($), Y = i ?? ys($), X = f && !A && H.length > 1, j = !X;
8784
+ const f = se(null), [C, N] = L(!1), [x, y] = L(b ?? "/"), [A, K] = L(() => fn()), [B, V] = L(null), $ = b ?? x, H = m ?? gs($), Y = i ?? ys($), X = p && !A && H.length > 1, j = !X;
8783
8785
  Q(() => {
8784
8786
  b || y(window.location.pathname);
8785
8787
  }, [b]), Q(() => {
@@ -8791,7 +8793,7 @@ function wc({
8791
8793
  }
8792
8794
  let G = null, S = 0, O = 0;
8793
8795
  const R = () => {
8794
- const z = p.current, v = document.querySelector(
8796
+ const z = f.current, v = document.querySelector(
8795
8797
  "[data-app-scroll='true']"
8796
8798
  );
8797
8799
  return (z == null ? void 0 : z.closest(".os-viewport")) ?? (z == null ? void 0 : z.closest(
@@ -8813,7 +8815,7 @@ function wc({
8813
8815
  }
8814
8816
  let G = 0;
8815
8817
  const S = [], O = () => {
8816
- const q = p.current, ae = q == null ? void 0 : q.parentElement, re = document.querySelector(
8818
+ const q = f.current, ae = q == null ? void 0 : q.parentElement, re = document.querySelector(
8817
8819
  "[data-app-scroll='true']"
8818
8820
  ), ve = ra(re) ?? re;
8819
8821
  if (!q || !ae || !ve) {
@@ -8831,7 +8833,7 @@ function wc({
8831
8833
  window.cancelAnimationFrame(G), G = window.requestAnimationFrame(O);
8832
8834
  };
8833
8835
  R(), window.addEventListener("resize", R);
8834
- const I = new ResizeObserver(R), ee = p.current, z = ee == null ? void 0 : ee.parentElement, v = document.querySelector(
8836
+ const I = new ResizeObserver(R), ee = f.current, z = ee == null ? void 0 : ee.parentElement, v = document.querySelector(
8835
8837
  "[data-app-scroll='true']"
8836
8838
  ), F = ra(v) ?? v;
8837
8839
  return [z, v, F].forEach((q) => {
@@ -8854,7 +8856,7 @@ function wc({
8854
8856
  return /* @__PURE__ */ t(
8855
8857
  "div",
8856
8858
  {
8857
- ref: p,
8859
+ ref: f,
8858
8860
  "data-page-header": "true",
8859
8861
  "data-compact": C ? "true" : "false",
8860
8862
  className: `sticky top-0 z-30 overflow-visible py-0 transition-[background-color,box-shadow,border-color] duration-300 ease-out ${w ? "mb-0 flex-shrink-0" : "mb-4 sm:mb-0"} ${c}`,
@@ -9051,7 +9053,7 @@ function kc({
9051
9053
  return Q(() => {
9052
9054
  if (!a) return;
9053
9055
  const b = a;
9054
- function f(w) {
9056
+ function p(w) {
9055
9057
  var C, N, x;
9056
9058
  if (w.source !== ((C = c.current) == null ? void 0 : C.contentWindow) || m && w.origin !== m) return;
9057
9059
  if (((N = w.data) == null ? void 0 : N.type) === "prime-microservice:overlay") {
@@ -9065,13 +9067,13 @@ function kc({
9065
9067
  if (((x = w.data) == null ? void 0 : x.type) !== "prime-microservice:navigation") return;
9066
9068
  const k = w.data.path;
9067
9069
  if (!k || !k.startsWith("/") || k.startsWith("//")) return;
9068
- const p = `/apps/${encodeURIComponent(b)}${k}`;
9069
- `${window.location.pathname}${window.location.search}${window.location.hash}` !== p && (window.history.replaceState(window.history.state, "", p), window.dispatchEvent(
9070
+ const f = `/apps/${encodeURIComponent(b)}${k}`;
9071
+ `${window.location.pathname}${window.location.search}${window.location.hash}` !== f && (window.history.replaceState(window.history.state, "", f), window.dispatchEvent(
9070
9072
  new CustomEvent("prime-auth:microservice-navigation")
9071
9073
  ));
9072
9074
  }
9073
- return window.addEventListener("message", f), () => {
9074
- window.removeEventListener("message", f), window.dispatchEvent(
9075
+ return window.addEventListener("message", p), () => {
9076
+ window.removeEventListener("message", p), window.dispatchEvent(
9075
9077
  new CustomEvent("prime-auth:microservice-overlay", {
9076
9078
  detail: { active: !1 }
9077
9079
  })
@@ -9102,8 +9104,8 @@ function Cc() {
9102
9104
  };
9103
9105
  }, []), Q(() => {
9104
9106
  const d = (m) => {
9105
- var f;
9106
- if (((f = m.data) == null ? void 0 : f.type) !== "prime-suite-chat:state") return;
9107
+ var p;
9108
+ if (((p = m.data) == null ? void 0 : p.type) !== "prime-suite-chat:state") return;
9107
9109
  const b = !!m.data.active;
9108
9110
  n(b), c({
9109
9111
  width: vn(m.data.width, 96, 720),
@@ -9159,10 +9161,10 @@ function Sc({
9159
9161
  }
9160
9162
  function Ec(e) {
9161
9163
  const [r, a] = L({}), [n, i] = L(!1), c = Ce(
9162
- (f) => n || r[f] ? e[f] : void 0,
9164
+ (p) => n || r[p] ? e[p] : void 0,
9163
9165
  [e, n, r]
9164
- ), d = Ce((f) => {
9165
- a((w) => ({ ...w, [f]: !0 }));
9166
+ ), d = Ce((p) => {
9167
+ a((w) => ({ ...w, [p]: !0 }));
9166
9168
  }, []), m = Ce(() => {
9167
9169
  i(!0);
9168
9170
  }, []), b = Ce(() => {