@dipusevilla/componentes-iu 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -78,7 +78,7 @@ function Ls() {
78
78
  return (w.displayName || "Context") + ".Provider";
79
79
  case p:
80
80
  return (w._context.displayName || "Context") + ".Consumer";
81
- case $:
81
+ case D:
82
82
  var U = w.render;
83
83
  return w = w.displayName, w || (w = U.displayName || U.name || "", w = w !== "" ? "ForwardRef(" + w + ")" : "ForwardRef"), w;
84
84
  case Y:
@@ -139,7 +139,7 @@ function Ls() {
139
139
  }
140
140
  function l(w, U) {
141
141
  function G() {
142
- D || (D = !0, console.error(
142
+ A || (A = !0, console.error(
143
143
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
144
144
  U
145
145
  ));
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  function m(w) {
241
241
  typeof w == "object" && w !== null && w.$$typeof === g && w._store && (w._store.validated = 1);
242
242
  }
243
- var h = X, g = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), F = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), M = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, E = Array.isArray, V = console.createTask ? console.createTask : function() {
243
+ var h = X, g = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), F = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), M = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, E = Array.isArray, V = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  h = {
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
248
248
  return w();
249
249
  }
250
250
  };
251
- var D, b = {}, z = h["react-stack-bottom-frame"].bind(
251
+ var A, b = {}, z = h["react-stack-bottom-frame"].bind(
252
252
  h,
253
253
  a
254
254
  )(), re = V(s(a)), ie = {};
@@ -293,7 +293,7 @@ function Br(r) {
293
293
  } else for (t in r) r[t] && (s && (s += " "), s += t);
294
294
  return s;
295
295
  }
296
- function A() {
296
+ function $() {
297
297
  for (var r, e, t = 0, s = "", n = arguments.length; t < n; t++) (r = arguments[t]) && (e = Br(r)) && (s && (s += " "), s += e);
298
298
  return s;
299
299
  }
@@ -313,7 +313,7 @@ function Oe({
313
313
  return /* @__PURE__ */ o.jsx(
314
314
  r,
315
315
  {
316
- className: A(Ps[e], t),
316
+ className: $(Ps[e], t),
317
317
  "aria-hidden": s["aria-label"] ? void 0 : !0,
318
318
  ...s
319
319
  }
@@ -360,7 +360,7 @@ function Ve({
360
360
  disabled: n,
361
361
  "aria-label": h ? l : void 0,
362
362
  style: s ? { width: s } : void 0,
363
- className: A(
363
+ className: $(
364
364
  Us,
365
365
  Bs[e],
366
366
  g,
@@ -763,7 +763,7 @@ function ir({
763
763
  return h.observe(m), () => {
764
764
  h.disconnect();
765
765
  };
766
- }, []), /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col w-full gap-3", s), children: [
766
+ }, []), /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col w-full gap-3", s), children: [
767
767
  /* @__PURE__ */ o.jsxs(
768
768
  "button",
769
769
  {
@@ -783,7 +783,7 @@ function ir({
783
783
  "div",
784
784
  {
785
785
  ref: i,
786
- className: A(
786
+ className: $(
787
787
  "overflow-hidden transition-all duration-300 ease-in-out",
788
788
  n ? "opacity-100" : "opacity-0"
789
789
  ),
@@ -979,8 +979,8 @@ function Qr(r) {
979
979
  ...ve(f.current.disabled) ? { disabled: f.current.disabled } : {}
980
980
  });
981
981
  const v = (p, F) => {
982
- const $ = T(n._fields, p);
983
- $ && $._f && ($._f.mount = F);
982
+ const D = T(n._fields, p);
983
+ D && D._f && (D._f.mount = F);
984
984
  };
985
985
  if (v(t, !0), _) {
986
986
  const p = he(T(n._options.defaultValues, t));
@@ -1204,15 +1204,15 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1204
1204
  const { ref: i, refs: l, required: c, maxLength: f, minLength: d, min: m, max: h, pattern: g, validate: k, name: j, valueAsNumber: _, mount: v } = r._f, p = T(t, j);
1205
1205
  if (!v || e.has(j))
1206
1206
  return {};
1207
- const F = l ? l[0] : i, $ = (L) => {
1207
+ const F = l ? l[0] : i, D = (L) => {
1208
1208
  n && F.reportValidity && (F.setCustomValidity(ve(L) ? "" : L || ""), F.reportValidity());
1209
- }, O = {}, B = Wt(i), Y = et(i), P = B || Y, W = (_ || zt(i)) && se(i.value) && se(p) || ht(i) && i.value === "" || p === "" || Array.isArray(p) && !p.length, Z = es.bind(null, j, s, O), M = (L, E, V, D = Se.maxLength, b = Se.minLength) => {
1209
+ }, O = {}, B = Wt(i), Y = et(i), P = B || Y, W = (_ || zt(i)) && se(i.value) && se(p) || ht(i) && i.value === "" || p === "" || Array.isArray(p) && !p.length, Z = es.bind(null, j, s, O), M = (L, E, V, A = Se.maxLength, b = Se.minLength) => {
1210
1210
  const z = L ? E : V;
1211
1211
  O[j] = {
1212
- type: L ? D : b,
1212
+ type: L ? A : b,
1213
1213
  message: z,
1214
1214
  ref: i,
1215
- ...Z(L ? D : b, z)
1215
+ ...Z(L ? A : b, z)
1216
1216
  };
1217
1217
  };
1218
1218
  if (a ? !Array.isArray(p) || !p.length : c && (!P && (W || xe(p)) || ve(p) && !p || Y && !ns(l).isValid || B && !is(l).isValid)) {
@@ -1223,25 +1223,25 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1223
1223
  ref: F,
1224
1224
  ...Z(Se.required, E)
1225
1225
  }, !s))
1226
- return $(E), O;
1226
+ return D(E), O;
1227
1227
  }
1228
1228
  if (!W && (!xe(m) || !xe(h))) {
1229
1229
  let L, E;
1230
- const V = ze(h), D = ze(m);
1230
+ const V = ze(h), A = ze(m);
1231
1231
  if (!xe(p) && !isNaN(p)) {
1232
1232
  const b = i.valueAsNumber || p && +p;
1233
- xe(V.value) || (L = b > V.value), xe(D.value) || (E = b < D.value);
1233
+ xe(V.value) || (L = b > V.value), xe(A.value) || (E = b < A.value);
1234
1234
  } else {
1235
1235
  const b = i.valueAsDate || new Date(p), z = (w) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + w), re = i.type == "time", ie = i.type == "week";
1236
- Ne(V.value) && p && (L = re ? z(p) > z(V.value) : ie ? p > V.value : b > new Date(V.value)), Ne(D.value) && p && (E = re ? z(p) < z(D.value) : ie ? p < D.value : b < new Date(D.value));
1236
+ Ne(V.value) && p && (L = re ? z(p) > z(V.value) : ie ? p > V.value : b > new Date(V.value)), Ne(A.value) && p && (E = re ? z(p) < z(A.value) : ie ? p < A.value : b < new Date(A.value));
1237
1237
  }
1238
- if ((L || E) && (M(!!L, V.message, D.message, Se.max, Se.min), !s))
1239
- return $(O[j].message), O;
1238
+ if ((L || E) && (M(!!L, V.message, A.message, Se.max, Se.min), !s))
1239
+ return D(O[j].message), O;
1240
1240
  }
1241
1241
  if ((f || d) && !W && (Ne(p) || a && Array.isArray(p))) {
1242
- const L = ze(f), E = ze(d), V = !xe(L.value) && p.length > +L.value, D = !xe(E.value) && p.length < +E.value;
1243
- if ((V || D) && (M(V, L.message, E.message), !s))
1244
- return $(O[j].message), O;
1242
+ const L = ze(f), E = ze(d), V = !xe(L.value) && p.length > +L.value, A = !xe(E.value) && p.length < +E.value;
1243
+ if ((V || A) && (M(V, L.message, E.message), !s))
1244
+ return D(O[j].message), O;
1245
1245
  }
1246
1246
  if (g && !W && Ne(p)) {
1247
1247
  const { value: L, message: E } = ze(g);
@@ -1251,7 +1251,7 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1251
1251
  ref: i,
1252
1252
  ...Z(Se.pattern, E)
1253
1253
  }, !s))
1254
- return $(E), O;
1254
+ return D(E), O;
1255
1255
  }
1256
1256
  if (k) {
1257
1257
  if (je(k)) {
@@ -1260,7 +1260,7 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1260
1260
  ...E,
1261
1261
  ...Z(Se.validate, E.message)
1262
1262
  }, !s))
1263
- return $(E.message), O;
1263
+ return D(E.message), O;
1264
1264
  } else if (ne(k)) {
1265
1265
  let L = {};
1266
1266
  for (const E in k) {
@@ -1270,7 +1270,7 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1270
1270
  V && (L = {
1271
1271
  ...V,
1272
1272
  ...Z(E, V.message)
1273
- }, $(V.message), s && (O[j] = L));
1273
+ }, D(V.message), s && (O[j] = L));
1274
1274
  }
1275
1275
  if (!me(L) && (O[j] = {
1276
1276
  ref: F,
@@ -1279,7 +1279,7 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1279
1279
  return O;
1280
1280
  }
1281
1281
  }
1282
- return $(!0), O;
1282
+ return D(!0), O;
1283
1283
  };
1284
1284
  const Dn = {
1285
1285
  mode: we.onSubmit,
@@ -1381,7 +1381,7 @@ function Vn(r = {}) {
1381
1381
  errors: t.errors,
1382
1382
  isValid: !1
1383
1383
  });
1384
- }, $ = (u, x, y, C) => {
1384
+ }, D = (u, x, y, C) => {
1385
1385
  const S = T(s, u);
1386
1386
  if (S) {
1387
1387
  const N = T(a, u, se(y) ? T(n, u) : y);
@@ -1473,12 +1473,12 @@ function Vn(r = {}) {
1473
1473
  })));
1474
1474
  }
1475
1475
  (y.shouldDirty || y.shouldTouch) && O(u, S, y.shouldTouch, y.shouldDirty, !0), y.shouldValidate && ie(u);
1476
- }, D = (u, x, y) => {
1476
+ }, A = (u, x, y) => {
1477
1477
  for (const C in x) {
1478
1478
  if (!x.hasOwnProperty(C))
1479
1479
  return;
1480
1480
  const S = x[C], N = `${u}.${C}`, I = T(s, N);
1481
- (l.array.has(u) || ne(S) || I && !I._f) && !Le(S) ? D(N, S, y) : V(N, S, y);
1481
+ (l.array.has(u) || ne(S) || I && !I._f) && !Le(S) ? A(N, S, y) : V(N, S, y);
1482
1482
  }
1483
1483
  }, b = (u, x, y = {}) => {
1484
1484
  const C = T(s, u), S = l.array.has(u), N = he(x);
@@ -1489,7 +1489,7 @@ function Vn(r = {}) {
1489
1489
  name: u,
1490
1490
  dirtyFields: Xe(n, a),
1491
1491
  isDirty: M(u, N)
1492
- })) : C && !C._f && !xe(N) ? D(u, N, y) : V(u, N, y), mr(u, l) && h.state.next({ ...t }), h.state.next({
1492
+ })) : C && !C._f && !xe(N) ? A(u, N, y) : V(u, N, y), mr(u, l) && h.state.next({ ...t }), h.state.next({
1493
1493
  name: i.mount ? u : void 0,
1494
1494
  values: he(a)
1495
1495
  });
@@ -1606,7 +1606,7 @@ function Vn(r = {}) {
1606
1606
  }), l.mount.add(u), y ? H({
1607
1607
  disabled: ve(x.disabled) ? x.disabled : e.disabled,
1608
1608
  name: u
1609
- }) : $(u, !0, x.value), {
1609
+ }) : D(u, !0, x.value), {
1610
1610
  ...C ? { disabled: x.disabled || e.disabled } : {},
1611
1611
  ...e.progressive ? {
1612
1612
  required: !!x.required,
@@ -1637,7 +1637,7 @@ function Vn(r = {}) {
1637
1637
  ref: { type: N.type, name: u }
1638
1638
  } : { ref: N }
1639
1639
  }
1640
- }), $(u, !1, void 0, N);
1640
+ }), D(u, !1, void 0, N);
1641
1641
  } else
1642
1642
  y = T(s, u, {}), y._f && (y._f.mount = !1), (e.shouldUnregister || x.shouldUnregister) && !(Hr(l.array, u) && i.action) && l.unMount.add(u);
1643
1643
  }
@@ -1902,7 +1902,7 @@ function vr(r, e, t, s, n, a, i) {
1902
1902
  type: l,
1903
1903
  disabled: n,
1904
1904
  ...s,
1905
- className: A(
1905
+ className: $(
1906
1906
  "box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition text-[var(--color-ds-text-primary)] font-[var(--font-primary)]",
1907
1907
  os[t],
1908
1908
  Mn[t],
@@ -1936,14 +1936,14 @@ function In(r) {
1936
1936
  return /* @__PURE__ */ o.jsxs(
1937
1937
  "div",
1938
1938
  {
1939
- className: A("flex flex-col", g),
1939
+ className: $("flex flex-col", g),
1940
1940
  style: { width: l, maxWidth: "100%" },
1941
1941
  children: [
1942
1942
  c && /* @__PURE__ */ o.jsx(
1943
1943
  "label",
1944
1944
  {
1945
1945
  htmlFor: _,
1946
- className: A(
1946
+ className: $(
1947
1947
  "pb-2 text-[var(--color-ds-text-primary)]",
1948
1948
  os[i],
1949
1949
  f && "sr-only"
@@ -2028,7 +2028,7 @@ const ki = ({
2028
2028
  (h = l.current[g]) == null || h.focus();
2029
2029
  }
2030
2030
  };
2031
- return /* @__PURE__ */ o.jsxs("div", { className: A("relative inline-block", s), ref: i, children: [
2031
+ return /* @__PURE__ */ o.jsxs("div", { className: $("relative inline-block", s), ref: i, children: [
2032
2032
  /* @__PURE__ */ o.jsx(
2033
2033
  "button",
2034
2034
  {
@@ -2045,7 +2045,7 @@ const ki = ({
2045
2045
  {
2046
2046
  role: "menu",
2047
2047
  "aria-orientation": "vertical",
2048
- className: A(
2048
+ className: $(
2049
2049
  "absolute mt-2 min-w-[160px] bg-[var(--color-ds-background-page)]",
2050
2050
  "border border-[var(--color-ds-border-muted)] rounded shadow-lg z-10",
2051
2051
  t === "right" ? "right-0" : "left-0"
@@ -2062,7 +2062,7 @@ const ki = ({
2062
2062
  ref: (j) => {
2063
2063
  l.current[d] = j;
2064
2064
  },
2065
- className: A(
2065
+ className: $(
2066
2066
  "w-full flex items-center px-4 py-2 text-[var(--color-ds-text-primary)] text-ds-md transition-colors",
2067
2067
  g ? "opacity-50 cursor-not-allowed" : "hover:bg-[var(--color-ds-background-surface)]"
2068
2068
  ),
@@ -2171,7 +2171,7 @@ const Qn = (r, e) => {
2171
2171
  t.current = r;
2172
2172
  }, [r, e]), t.current;
2173
2173
  }, cs = (r, e, t, s) => r.getFixedT(e, t, s), ea = (r, e, t, s) => Tt(cs(r, e, t, s), [r, e, t, s]), qt = (r, e = {}) => {
2174
- var $, O, B, Y;
2174
+ var D, O, B, Y;
2175
2175
  const {
2176
2176
  i18n: t
2177
2177
  } = e, {
@@ -2183,7 +2183,7 @@ const Qn = (r, e) => {
2183
2183
  const P = (Z, M) => Ie(M) ? M : Bn(M) && Ie(M.defaultValue) ? M.defaultValue : Array.isArray(Z) ? Z[Z.length - 1] : Z, W = [P, {}, !1];
2184
2184
  return W.t = P, W.i18n = {}, W.ready = !1, W;
2185
2185
  }
2186
- ($ = a.options.react) != null && $.wait && Ct(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2186
+ (D = a.options.react) != null && D.wait && Ct(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2187
2187
  const i = {
2188
2188
  ...Yn(),
2189
2189
  ...a.options.react,
@@ -2234,21 +2234,21 @@ function wr(r, e, t, s, n, a, i, l, c) {
2234
2234
  }, g = (p) => {
2235
2235
  const F = p.target.files;
2236
2236
  if (!F) return;
2237
- const $ = Array.from(F);
2238
- let O = e.concat($);
2237
+ const D = Array.from(F);
2238
+ let O = e.concat(D);
2239
2239
  s && (O = O.slice(0, s)), t(O), p.target.value = "";
2240
2240
  }, k = (p) => {
2241
2241
  if (p.preventDefault(), i || m) return;
2242
2242
  const F = Array.from(p.dataTransfer.files);
2243
- let $ = e.concat(F);
2244
- s && ($ = $.slice(0, s)), t($);
2243
+ let D = e.concat(F);
2244
+ s && (D = D.slice(0, s)), t(D);
2245
2245
  }, j = (p) => {
2246
2246
  p.preventDefault();
2247
2247
  }, _ = (p) => {
2248
2248
  const F = URL.createObjectURL(p);
2249
2249
  window.open(F);
2250
2250
  }, v = (p) => {
2251
- const F = e.filter(($, O) => O !== p);
2251
+ const F = e.filter((D, O) => O !== p);
2252
2252
  t(F);
2253
2253
  };
2254
2254
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
@@ -2267,7 +2267,7 @@ function wr(r, e, t, s, n, a, i, l, c) {
2267
2267
  !m && /* @__PURE__ */ o.jsxs(
2268
2268
  "div",
2269
2269
  {
2270
- className: A(
2270
+ className: $(
2271
2271
  "relative flex bg-[var(--color-ds-background-page)] flex-col items-center justify-center border-2 border-dashed border-[var(--color-ds-border-muted)] rounded-lg p-4",
2272
2272
  i ? "opacity-50 cursor-not-allowed" : "hover:border-[var(--color-ds-border-default)]",
2273
2273
  $t[a],
@@ -2360,12 +2360,12 @@ function ta(r) {
2360
2360
  className: k
2361
2361
  } = r, j = Ue(), _ = t || j;
2362
2362
  if (e && t)
2363
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", k), style: { width: c }, children: [
2363
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", k), style: { width: c }, children: [
2364
2364
  f && /* @__PURE__ */ o.jsx(
2365
2365
  "label",
2366
2366
  {
2367
2367
  htmlFor: _,
2368
- className: A(
2368
+ className: $(
2369
2369
  "pb-[10px] text-[var(--color-ds-text-primary)]",
2370
2370
  $t[l],
2371
2371
  d && "sr-only"
@@ -2380,7 +2380,7 @@ function ta(r) {
2380
2380
  control: e,
2381
2381
  rules: s,
2382
2382
  defaultValue: n instanceof FileList ? Array.from(n) : n || [],
2383
- render: ({ field: F, fieldState: $ }) => wr(
2383
+ render: ({ field: F, fieldState: D }) => wr(
2384
2384
  _,
2385
2385
  F.value,
2386
2386
  (O) => F.onChange(O),
@@ -2388,7 +2388,7 @@ function ta(r) {
2388
2388
  i,
2389
2389
  l,
2390
2390
  m,
2391
- $.error,
2391
+ D.error,
2392
2392
  k
2393
2393
  )
2394
2394
  }
@@ -2397,12 +2397,12 @@ function ta(r) {
2397
2397
  const [v, p] = Q(
2398
2398
  n instanceof FileList ? Array.from(n) : n || []
2399
2399
  );
2400
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", k), style: { width: c }, children: [
2400
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", k), style: { width: c }, children: [
2401
2401
  f && /* @__PURE__ */ o.jsx(
2402
2402
  "label",
2403
2403
  {
2404
2404
  htmlFor: _,
2405
- className: A(
2405
+ className: $(
2406
2406
  "pb-[10px] text-[var(--color-ds-text-primary)]",
2407
2407
  $t[l],
2408
2408
  d && "sr-only"
@@ -2436,7 +2436,7 @@ const He = ({
2436
2436
  {
2437
2437
  role: "status",
2438
2438
  "aria-label": "Cargando...",
2439
- className: A(
2439
+ className: $(
2440
2440
  "bg-[var(--color-ds-border-muted)] animate-pulse inline-block",
2441
2441
  s === "circle" ? "rounded-full" : "rounded",
2442
2442
  n
@@ -2491,7 +2491,7 @@ function Ht({
2491
2491
  className: p,
2492
2492
  ...F
2493
2493
  }) {
2494
- const $ = Ue(), [O, B] = Q(!1), Y = r || $, P = e === "password", Z = c ?? (e === "number" ? on : void 0), M = P ? O ? sn : zr : f, L = A(
2494
+ const D = Ue(), [O, B] = Q(!1), Y = r || D, P = e === "password", Z = c ?? (e === "number" ? on : void 0), M = P ? O ? sn : zr : f, L = $(
2495
2495
  "box-border w-full rounded-lg border placeholder-[var(--color-ds-text-secondary)] outline-none transition font-[var(--font-primary)] appearance-none",
2496
2496
  nt[t],
2497
2497
  ra[t],
@@ -2504,7 +2504,7 @@ function Ht({
2504
2504
  "disabled:cursor-not-allowed"
2505
2505
  );
2506
2506
  return v ? /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s, maxWidth: "100%" }, children: [
2507
- !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: A("pb-2", nt[t]), children: n }),
2507
+ !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: $("pb-2", nt[t]), children: n }),
2508
2508
  /* @__PURE__ */ o.jsx(
2509
2509
  He,
2510
2510
  {
@@ -2523,12 +2523,12 @@ function Ht({
2523
2523
  rules: j,
2524
2524
  defaultValue: _,
2525
2525
  render: ({ field: E, fieldState: V }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
2526
- !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: A("pb-2 text-[var(--color-ds-text-primary)]", nt[t]), children: n }),
2526
+ !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: $("pb-2 text-[var(--color-ds-text-primary)]", nt[t]), children: n }),
2527
2527
  /* @__PURE__ */ o.jsxs("div", { className: "relative flex items-center w-full", children: [
2528
2528
  Z && /* @__PURE__ */ o.jsx(
2529
2529
  "div",
2530
2530
  {
2531
- className: A(
2531
+ className: $(
2532
2532
  "absolute left-0 flex items-center h-full",
2533
2533
  jr[t]
2534
2534
  ),
@@ -2550,13 +2550,13 @@ function Ht({
2550
2550
  type: P ? O ? "text" : "password" : e,
2551
2551
  disabled: h,
2552
2552
  "aria-invalid": !!V.error,
2553
- className: A(
2553
+ className: $(
2554
2554
  L,
2555
2555
  Z && "pl-9",
2556
2556
  M && "pr-9",
2557
2557
  p
2558
2558
  ),
2559
- onInvalid: (D) => D.preventDefault(),
2559
+ onInvalid: (A) => A.preventDefault(),
2560
2560
  style: P && !O ? {
2561
2561
  WebkitTextSecurity: "disc",
2562
2562
  MozTextSecurity: "disc"
@@ -2569,7 +2569,7 @@ function Ht({
2569
2569
  "button",
2570
2570
  {
2571
2571
  type: "button",
2572
- onClick: () => B((D) => !D),
2572
+ onClick: () => B((A) => !A),
2573
2573
  className: "absolute right-0 flex items-center h-full pr-2",
2574
2574
  tabIndex: -1,
2575
2575
  children: /* @__PURE__ */ o.jsx(
@@ -2587,12 +2587,12 @@ function Ht({
2587
2587
  ] })
2588
2588
  }
2589
2589
  ) : /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
2590
- !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: A("pb-2 text-[var(--color-ds-text-primary)]", nt[t]), children: n }),
2590
+ !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: $("pb-2 text-[var(--color-ds-text-primary)]", nt[t]), children: n }),
2591
2591
  /* @__PURE__ */ o.jsxs("div", { className: "relative flex items-center w-full", children: [
2592
2592
  Z && /* @__PURE__ */ o.jsx(
2593
2593
  "div",
2594
2594
  {
2595
- className: A(
2595
+ className: $(
2596
2596
  "absolute left-0 flex items-center h-full",
2597
2597
  jr[t]
2598
2598
  ),
@@ -2614,7 +2614,7 @@ function Ht({
2614
2614
  type: P ? O ? "text" : "password" : e,
2615
2615
  disabled: h,
2616
2616
  "aria-invalid": i,
2617
- className: A(
2617
+ className: $(
2618
2618
  L,
2619
2619
  Z && "pl-9",
2620
2620
  M && "pr-9",
@@ -2687,7 +2687,7 @@ const aa = {
2687
2687
  {
2688
2688
  id: f,
2689
2689
  role: "tooltip",
2690
- className: A(
2690
+ className: $(
2691
2691
  "fixed z-50 w-[250px] bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)] text-ds-sm rounded p-2 shadow-lg",
2692
2692
  "pointer-events-none"
2693
2693
  ),
@@ -2706,7 +2706,7 @@ const aa = {
2706
2706
  type: "button",
2707
2707
  "aria-describedby": f,
2708
2708
  ref: c,
2709
- className: A(
2709
+ className: $(
2710
2710
  "inline-flex items-center justify-center focus:outline-none",
2711
2711
  aa[e],
2712
2712
  "text-[var(--color-ds-text-secondary)] hover:text-[var(--color-ds-text-primary)]",
@@ -2782,7 +2782,7 @@ function Ei({
2782
2782
  children: t,
2783
2783
  className: s
2784
2784
  }) {
2785
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col h-full", s), children: [
2785
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col h-full", s), children: [
2786
2786
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between py-4", children: [
2787
2787
  /* @__PURE__ */ o.jsx(
2788
2788
  "div",
@@ -2835,7 +2835,7 @@ function la({
2835
2835
  role: "tab",
2836
2836
  "aria-selected": c,
2837
2837
  onClick: () => t(l.value),
2838
- className: A(
2838
+ className: $(
2839
2839
  "cursor-pointer whitespace-nowrap px-4 py-2 transition-colors duration-150 ease-in-out",
2840
2840
  c ? "text-[var(--color-ds-background-accent)]" : "text-[var(--color-ds-text-primary)]"
2841
2841
  ),
@@ -2883,7 +2883,7 @@ function Er(r, e, t, s, n, a, i, l, c) {
2883
2883
  id: r,
2884
2884
  ...s,
2885
2885
  disabled: n,
2886
- className: A(
2886
+ className: $(
2887
2887
  "box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition font-[var(--font-primary)]",
2888
2888
  Dt[t],
2889
2889
  ca[t],
@@ -2929,7 +2929,7 @@ function pt(r) {
2929
2929
  disabled: v = !1,
2930
2930
  className: p,
2931
2931
  suffixButton: F
2932
- } = r, $ = Ue(), O = t || $, [B, Y] = Q(a), [P, W] = Q(!!i);
2932
+ } = r, D = Ue(), O = t || D, [B, Y] = Q(a), [P, W] = Q(!!i);
2933
2933
  if (ue(() => {
2934
2934
  i && (W(!0), i().then((Z) => Y(Z)).finally(() => W(!1)));
2935
2935
  }, [i, ...l]), ue(() => {
@@ -2949,12 +2949,12 @@ function pt(r) {
2949
2949
  const L = Z.value;
2950
2950
  (L === void 0 || !B.some((E) => E.value === L)) && Z.onChange(B[0].value);
2951
2951
  }
2952
- }, [B, P, Z]), /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", p), style: { width: m, maxWidth: "100%" }, children: [
2952
+ }, [B, P, Z]), /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", p), style: { width: m, maxWidth: "100%" }, children: [
2953
2953
  h && /* @__PURE__ */ o.jsx(
2954
2954
  "label",
2955
2955
  {
2956
2956
  htmlFor: O,
2957
- className: A(
2957
+ className: $(
2958
2958
  "pb-2 text-[var(--color-ds-text-primary)]",
2959
2959
  Dt[d],
2960
2960
  g && "sr-only"
@@ -2986,12 +2986,12 @@ function pt(r) {
2986
2986
  )
2987
2987
  ] });
2988
2988
  }
2989
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", p), style: { width: m, maxWidth: "100%" }, children: [
2989
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", p), style: { width: m, maxWidth: "100%" }, children: [
2990
2990
  h && /* @__PURE__ */ o.jsx(
2991
2991
  "label",
2992
2992
  {
2993
2993
  htmlFor: O,
2994
- className: A(
2994
+ className: $(
2995
2995
  "pb-2 text-[var(--color-ds-text-primary)]",
2996
2996
  Dt[d],
2997
2997
  g && "sr-only"
@@ -3042,11 +3042,11 @@ function da({
3042
3042
  return /* @__PURE__ */ o.jsxs(
3043
3043
  "div",
3044
3044
  {
3045
- className: A("flex flex-col", n),
3045
+ className: $("flex flex-col", n),
3046
3046
  style: l ? { width: l } : void 0,
3047
3047
  children: [
3048
- /* @__PURE__ */ o.jsx("label", { className: A("sr-only pb-2", Nr[i]), children: r }),
3049
- a && /* @__PURE__ */ o.jsx("label", { className: A("pb-2", Nr[i]), children: r }),
3048
+ /* @__PURE__ */ o.jsx("label", { className: $("sr-only pb-2", Nr[i]), children: r }),
3049
+ a && /* @__PURE__ */ o.jsx("label", { className: $("pb-2", Nr[i]), children: r }),
3050
3050
  /* @__PURE__ */ o.jsx("div", { className: "flex items-center flex-nowrap", children: e.map((f, d) => {
3051
3051
  const {
3052
3052
  width: m,
@@ -3057,17 +3057,17 @@ function da({
3057
3057
  } = f, _ = Array.isArray(g) || typeof k == "function";
3058
3058
  let v = "rounded-lg";
3059
3059
  !s && c > 1 && (d === 0 ? v = "rounded-l-lg rounded-r-none" : d === c - 1 ? v = "rounded-r-lg rounded-l-none" : v = "rounded-none");
3060
- const p = A(
3060
+ const p = $(
3061
3061
  "inline-flex items-center flex-shrink-0 overflow-hidden",
3062
3062
  typeof m == "string" && m.startsWith("w-") ? m : void 0
3063
- ), F = typeof m == "string" && !m.startsWith("w-") ? { width: m } : void 0, $ = A(h, v);
3063
+ ), F = typeof m == "string" && !m.startsWith("w-") ? { width: m } : void 0, D = $(h, v);
3064
3064
  return /* @__PURE__ */ o.jsxs("div", { className: p, style: F, children: [
3065
3065
  _ ? /* @__PURE__ */ o.jsx(
3066
3066
  pt,
3067
3067
  {
3068
3068
  ...j,
3069
3069
  size: i,
3070
- className: $,
3070
+ className: D,
3071
3071
  options: g,
3072
3072
  loadOptions: k
3073
3073
  }
@@ -3076,7 +3076,7 @@ function da({
3076
3076
  {
3077
3077
  ...j,
3078
3078
  size: i,
3079
- className: $
3079
+ className: D
3080
3080
  }
3081
3081
  ),
3082
3082
  s && d < c - 1 && t
@@ -3125,11 +3125,11 @@ function ha({
3125
3125
  } else
3126
3126
  k(v);
3127
3127
  };
3128
- return /* @__PURE__ */ o.jsxs("div", { className: A("w-full", f), children: [
3128
+ return /* @__PURE__ */ o.jsxs("div", { className: $("w-full", f), children: [
3129
3129
  /* @__PURE__ */ o.jsx(
3130
3130
  "label",
3131
3131
  {
3132
- className: A(
3132
+ className: $(
3133
3133
  "sr-only pb-2 text-[var(--color-ds-text-primary)]",
3134
3134
  _r[l]
3135
3135
  ),
@@ -3139,7 +3139,7 @@ function ha({
3139
3139
  d && /* @__PURE__ */ o.jsx(
3140
3140
  "label",
3141
3141
  {
3142
- className: A(
3142
+ className: $(
3143
3143
  "block pb-2 text-[var(--color-ds-text-primary)]",
3144
3144
  _r[l]
3145
3145
  ),
@@ -3149,7 +3149,7 @@ function ha({
3149
3149
  /* @__PURE__ */ o.jsx(
3150
3150
  "div",
3151
3151
  {
3152
- className: A(
3152
+ className: $(
3153
3153
  c ? "flex flex-col gap-2" : "flex flex-wrap gap-4"
3154
3154
  ),
3155
3155
  children: e.map((v) => /* @__PURE__ */ o.jsxs(
@@ -3165,7 +3165,7 @@ function ha({
3165
3165
  value: v.value,
3166
3166
  checked: j(v.value),
3167
3167
  onChange: () => _(v.value),
3168
- className: A(
3168
+ className: $(
3169
3169
  fa[l],
3170
3170
  "text-[var(--color-ds-button-primary-bg)]",
3171
3171
  "border-[var(--color-ds-border-default)]"
@@ -3220,7 +3220,7 @@ const xa = {
3220
3220
  }, [r, s, n]), /* @__PURE__ */ o.jsxs(
3221
3221
  "div",
3222
3222
  {
3223
- className: A(
3223
+ className: $(
3224
3224
  "w-80 max-w-full border-l-4 rounded shadow-md p-4 mb-2 flex justify-between items-start",
3225
3225
  xa[t]
3226
3226
  ),
@@ -3364,11 +3364,11 @@ function Na() {
3364
3364
  normalizePath: d,
3365
3365
  setter: function(v) {
3366
3366
  var p = d(v);
3367
- return c.get(v) || c.set(v, function($, O) {
3368
- for (var B = 0, Y = p.length, P = $; B < Y - 1; ) {
3367
+ return c.get(v) || c.set(v, function(D, O) {
3368
+ for (var B = 0, Y = p.length, P = D; B < Y - 1; ) {
3369
3369
  var W = p[B];
3370
3370
  if (W === "__proto__" || W === "constructor" || W === "prototype")
3371
- return $;
3371
+ return D;
3372
3372
  P = P[p[B++]];
3373
3373
  }
3374
3374
  P[p[B]] = O;
@@ -3404,8 +3404,8 @@ function Na() {
3404
3404
  return v.match(e) || [""];
3405
3405
  }
3406
3406
  function h(v, p, F) {
3407
- var $ = v.length, O, B, Y, P;
3408
- for (B = 0; B < $; B++)
3407
+ var D = v.length, O, B, Y, P;
3408
+ for (B = 0; B < D; B++)
3409
3409
  O = v[B], O && (_(O) && (O = '"' + O + '"'), P = g(O), Y = !P && /^\d+$/.test(O), p.call(F, O, P, Y, B, v));
3410
3410
  }
3411
3411
  function g(v) {
@@ -3750,7 +3750,7 @@ function We(r) {
3750
3750
  const E = new ge(ge.formatError(M.message || h, L), t, L.path, M.type || f, L.disableStackTrace);
3751
3751
  return E.params = L, E;
3752
3752
  }
3753
- const $ = _ ? l : c;
3753
+ const D = _ ? l : c;
3754
3754
  let O = {
3755
3755
  path: s,
3756
3756
  parent: k,
@@ -3763,9 +3763,9 @@ function We(r) {
3763
3763
  schema: i
3764
3764
  };
3765
3765
  const B = (M) => {
3766
- ge.isError(M) ? $(M) : M ? c(null) : $(F());
3766
+ ge.isError(M) ? D(M) : M ? c(null) : D(F());
3767
3767
  }, Y = (M) => {
3768
- ge.isError(M) ? $(M) : l(M);
3768
+ ge.isError(M) ? D(M) : l(M);
3769
3769
  };
3770
3770
  if (g && Ce(t))
3771
3771
  return B(!0);
@@ -5103,7 +5103,7 @@ function _s({
5103
5103
  control: r,
5104
5104
  rules: t,
5105
5105
  defaultValue: s || "",
5106
- render: ({ field: F, fieldState: $ }) => {
5106
+ render: ({ field: F, fieldState: D }) => {
5107
5107
  var O;
5108
5108
  return /* @__PURE__ */ o.jsx(
5109
5109
  _s,
@@ -5113,8 +5113,8 @@ function _s({
5113
5113
  width: a,
5114
5114
  label: i,
5115
5115
  labelHidden: l,
5116
- hasError: !!$.error,
5117
- errorMessage: ((O = $.error) == null ? void 0 : O.message) || "",
5116
+ hasError: !!D.error,
5117
+ errorMessage: ((O = D.error) == null ? void 0 : O.message) || "",
5118
5118
  maxLength: d,
5119
5119
  showCounter: m,
5120
5120
  className: h,
@@ -5129,15 +5129,15 @@ function _s({
5129
5129
  v(s || "");
5130
5130
  }, [s]);
5131
5131
  const p = (F) => {
5132
- var $;
5133
- d !== void 0 && F.target.value.length > d || (v(F.target.value), ($ = g.onChange) == null || $.call(g, F));
5132
+ var D;
5133
+ d !== void 0 && F.target.value.length > d || (v(F.target.value), (D = g.onChange) == null || D.call(g, F));
5134
5134
  };
5135
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", h), style: { width: a }, children: [
5135
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", h), style: { width: a }, children: [
5136
5136
  i && /* @__PURE__ */ o.jsx(
5137
5137
  "label",
5138
5138
  {
5139
5139
  htmlFor: j,
5140
- className: A(
5140
+ className: $(
5141
5141
  "pb-2 text-[var(--color-ds-text-primary)]",
5142
5142
  Ir[n],
5143
5143
  l && "sr-only"
@@ -5149,7 +5149,7 @@ function _s({
5149
5149
  "textarea",
5150
5150
  {
5151
5151
  id: j,
5152
- className: A(
5152
+ className: $(
5153
5153
  "box-border bg-[var(--color-ds-background-page)] w-full resize vertical rounded-lg border outline-none transition font-[var(--font-primary)]",
5154
5154
  Ir[n],
5155
5155
  ci[n],
@@ -5190,7 +5190,7 @@ function di({
5190
5190
  hasError: f = !1,
5191
5191
  errorMessage: d = ""
5192
5192
  }) {
5193
- return /* @__PURE__ */ o.jsx("div", { className: A("flex flex-col", c), children: /* @__PURE__ */ o.jsx(
5193
+ return /* @__PURE__ */ o.jsx("div", { className: $("flex flex-col", c), children: /* @__PURE__ */ o.jsx(
5194
5194
  ke,
5195
5195
  {
5196
5196
  name: e,
@@ -5205,7 +5205,7 @@ function di({
5205
5205
  {
5206
5206
  id: e,
5207
5207
  type: "checkbox",
5208
- className: A(
5208
+ className: $(
5209
5209
  ui[l],
5210
5210
  "text-[var(--color-ds-button-primary-bg)]",
5211
5211
  "border-[var(--color-ds-border-default)]",
@@ -5219,7 +5219,7 @@ function di({
5219
5219
  /* @__PURE__ */ o.jsx(
5220
5220
  "span",
5221
5221
  {
5222
- className: A(
5222
+ className: $(
5223
5223
  "text-[var(--color-ds-text-primary)] text-ds-md",
5224
5224
  i && "text-[var(--color-ds-text-secondary)]"
5225
5225
  ),
@@ -5289,7 +5289,7 @@ function fi({
5289
5289
  size: n,
5290
5290
  width: "100%",
5291
5291
  value: v.value,
5292
- onChange: ($) => v.onChange($.target.value),
5292
+ onChange: (D) => v.onChange(D.target.value),
5293
5293
  disabled: i,
5294
5294
  hasError: p.invalid,
5295
5295
  errorMessage: (F = p.error) == null ? void 0 : F.message,
@@ -5346,7 +5346,7 @@ function fi({
5346
5346
  overflow-auto
5347
5347
  z-10
5348
5348
  `,
5349
- children: l.map(($) => /* @__PURE__ */ o.jsx(
5349
+ children: l.map((D) => /* @__PURE__ */ o.jsx(
5350
5350
  "li",
5351
5351
  {
5352
5352
  className: `
@@ -5359,11 +5359,11 @@ function fi({
5359
5359
 
5360
5360
  `,
5361
5361
  onClick: () => {
5362
- v.onChange($.value), h(!1);
5362
+ v.onChange(D.value), h(!1);
5363
5363
  },
5364
- children: $.label
5364
+ children: D.label
5365
5365
  },
5366
- $.value
5366
+ D.value
5367
5367
  ))
5368
5368
  }
5369
5369
  )
@@ -5399,31 +5399,31 @@ function _i({ schema: r }) {
5399
5399
  watch: _,
5400
5400
  handleSubmit: v,
5401
5401
  formState: { errors: p, isSubmitting: F }
5402
- } = g, [$, O] = Q(!1);
5402
+ } = g, [D, O] = Q(!1);
5403
5403
  ue(() => {
5404
- c && (O(!0), c().then((D) => j(D)).finally(() => O(!1)));
5404
+ c && (O(!0), c().then((A) => j(A)).finally(() => O(!1)));
5405
5405
  }, [c, j]);
5406
5406
  const { loadingCount: B, optionsMap: Y } = oi(t), P = ii(t), W = li(t, k), Z = Me(() => {
5407
- const D = {};
5407
+ const A = {};
5408
5408
  return e.forEach((b, z) => {
5409
- b.type === "tabs" && (D[z] = b.tabs[0].key);
5410
- }), D;
5409
+ b.type === "tabs" && (A[z] = b.tabs[0].key);
5410
+ }), A;
5411
5411
  }, [e]), [M, L] = Q(Z), E = Tt(
5412
- (D) => {
5413
- const b = _(), { watchField: z, watchValue: re } = D;
5412
+ (A) => {
5413
+ const b = _(), { watchField: z, watchValue: re } = A;
5414
5414
  return typeof re == "function" ? re(
5415
5415
  b
5416
5416
  ) : b[z] === re;
5417
5417
  },
5418
5418
  [_]
5419
5419
  ), V = Tt(
5420
- (D) => {
5420
+ (A) => {
5421
5421
  var U, G, ee, ae;
5422
5422
  let b;
5423
- if (typeof D == "string") {
5424
- if (b = P[D], !b) return null;
5423
+ if (typeof A == "string") {
5424
+ if (b = P[A], !b) return null;
5425
5425
  } else
5426
- b = D;
5426
+ b = A;
5427
5427
  if ("visibleWhen" in b && b.visibleWhen && !E(b.visibleWhen))
5428
5428
  return null;
5429
5429
  let z = !!b.disabled;
@@ -5459,7 +5459,7 @@ function _i({ schema: r }) {
5459
5459
  placeholder: H.placeholder,
5460
5460
  hasError: !!p[H.name],
5461
5461
  errorMessage: ((Ze = p[H.name]) == null ? void 0 : Ze.message) || "",
5462
- loading: $,
5462
+ loading: D,
5463
5463
  disabled: de,
5464
5464
  suffixButton: H.suffixButton
5465
5465
  };
@@ -5620,7 +5620,7 @@ function _i({ schema: r }) {
5620
5620
  {
5621
5621
  ...w,
5622
5622
  type: b.type,
5623
- loadingDefaults: $,
5623
+ loadingDefaults: D,
5624
5624
  hasError: !!p[b.name],
5625
5625
  errorMessage: (ae = p[b.name]) == null ? void 0 : ae.message,
5626
5626
  suffixButton: ie,
@@ -5635,7 +5635,7 @@ function _i({ schema: r }) {
5635
5635
  k,
5636
5636
  p,
5637
5637
  F,
5638
- $,
5638
+ D,
5639
5639
  Y,
5640
5640
  E,
5641
5641
  W
@@ -5646,17 +5646,17 @@ function _i({ schema: r }) {
5646
5646
  {
5647
5647
  noValidate: !0,
5648
5648
  onSubmit: v(
5649
- async (D) => {
5650
- await s(D), d(n ?? m("ds.form.saveSuccess"), "success");
5649
+ async (A) => {
5650
+ await s(A), d(n ?? m("ds.form.saveSuccess"), "success");
5651
5651
  },
5652
- (D) => {
5653
- ma(D), d(a ?? m("ds.form.saveError"), "error");
5652
+ (A) => {
5653
+ console.log("❌ errores de validación:", A), ma(A), d(a ?? m("ds.form.saveError"), "error");
5654
5654
  }
5655
5655
  ),
5656
5656
  className: "space-y-6",
5657
5657
  children: [
5658
5658
  e.map(
5659
- (D, b) => D.type === "rows" ? /* @__PURE__ */ o.jsx(X.Fragment, { children: D.sections.map((z, re) => /* @__PURE__ */ o.jsx("div", { className: "mb-6", children: /* @__PURE__ */ o.jsx(
5659
+ (A, b) => A.type === "rows" ? /* @__PURE__ */ o.jsx(X.Fragment, { children: A.sections.map((z, re) => /* @__PURE__ */ o.jsx("div", { className: "mb-6", children: /* @__PURE__ */ o.jsx(
5660
5660
  ir,
5661
5661
  {
5662
5662
  title: z.sectionTitle,
@@ -5693,11 +5693,11 @@ function _i({ schema: r }) {
5693
5693
  ) }, re)) }, b) : /* @__PURE__ */ o.jsx(
5694
5694
  la,
5695
5695
  {
5696
- options: D.tabs.map((z) => ({ label: z.label, value: z.key })),
5696
+ options: A.tabs.map((z) => ({ label: z.label, value: z.key })),
5697
5697
  value: M[b],
5698
5698
  onChange: (z) => L((re) => ({ ...re, [b]: z })),
5699
5699
  children: Object.fromEntries(
5700
- D.tabs.map((z) => [
5700
+ A.tabs.map((z) => [
5701
5701
  z.key,
5702
5702
  /* @__PURE__ */ o.jsx("div", { className: "space-y-6", children: z.sections.map((re, ie) => /* @__PURE__ */ o.jsx("div", { className: "mb-6", children: /* @__PURE__ */ o.jsx(
5703
5703
  ir,
@@ -5730,7 +5730,7 @@ function _i({ schema: r }) {
5730
5730
  variant: "primary",
5731
5731
  icon: Hs,
5732
5732
  size: "sm",
5733
- disabled: F || $ || B > 0,
5733
+ disabled: F || D || B > 0,
5734
5734
  children: m(F ? "ds.form.sending" : "ds.form.submit")
5735
5735
  }
5736
5736
  ) })
@@ -5761,7 +5761,7 @@ function St({
5761
5761
  "aria-label": t,
5762
5762
  disabled: s,
5763
5763
  onClick: n,
5764
- className: A(
5764
+ className: $(
5765
5765
  "inline-flex items-center justify-center",
5766
5766
  "rounded-full",
5767
5767
  // completamente circular
@@ -5780,7 +5780,7 @@ function St({
5780
5780
  ]
5781
5781
  ),
5782
5782
  ...a,
5783
- children: /* @__PURE__ */ o.jsx(r, { className: A(e === "sm" ? "h-4 w-4" : e === "md" ? "h-5 w-5" : "h-6 w-6") })
5783
+ children: /* @__PURE__ */ o.jsx(r, { className: $(e === "sm" ? "h-4 w-4" : e === "md" ? "h-5 w-5" : "h-6 w-6") })
5784
5784
  }
5785
5785
  );
5786
5786
  }
@@ -5792,7 +5792,7 @@ function mi({ dark: r, onToggle: e }) {
5792
5792
  "aria-pressed": r,
5793
5793
  "aria-label": r ? "Cambiar a modo claro" : "Cambiar a modo oscuro",
5794
5794
  onClick: e,
5795
- className: A(
5795
+ className: $(
5796
5796
  "relative inline-flex items-center transition-colors focus:outline-none duration-200 ease-in-out",
5797
5797
  // Siempre usar color de acento para el track
5798
5798
  "bg-[var(--color-ds-background-accent)]",
@@ -5802,7 +5802,7 @@ function mi({ dark: r, onToggle: e }) {
5802
5802
  children: /* @__PURE__ */ o.jsxs(
5803
5803
  "div",
5804
5804
  {
5805
- className: A(
5805
+ className: $(
5806
5806
  "absolute bg-[var(--color-ds-background-page)] flex items-center justify-center rounded-full transition-transform duration-200 ease-in-out",
5807
5807
  // Tamaño del knob
5808
5808
  "h-5 w-5",
@@ -5814,7 +5814,7 @@ function mi({ dark: r, onToggle: e }) {
5814
5814
  {
5815
5815
  component: xn,
5816
5816
  size: "sm",
5817
- className: A(
5817
+ className: $(
5818
5818
  "absolute transition-opacity duration-200 ease-in-out",
5819
5819
  r ? "opacity-0" : "opacity-100 text-[var(--color-ds-background-accent)]"
5820
5820
  )
@@ -5825,7 +5825,7 @@ function mi({ dark: r, onToggle: e }) {
5825
5825
  {
5826
5826
  component: dn,
5827
5827
  size: "sm",
5828
- className: A(
5828
+ className: $(
5829
5829
  "absolute transition-opacity duration-200 ease-in-out",
5830
5830
  r ? "opacity-100 text-[var(--color-ds-background-accent)]" : "opacity-0"
5831
5831
  )
@@ -5894,7 +5894,7 @@ const Ss = () => It(Fs), xi = ({
5894
5894
  "a",
5895
5895
  {
5896
5896
  href: j.href,
5897
- className: A(
5897
+ className: $(
5898
5898
  "inline-flex items-center rounded-lg",
5899
5899
  "py-1 px-1 my-1 text-ds-sm",
5900
5900
  "bg-transparent text-[var(--color-ds-text-primary)]",
@@ -6043,14 +6043,14 @@ const Ss = () => It(Fs), xi = ({
6043
6043
  const c = new Set(n);
6044
6044
  s === 0 ? (c.clear(), n.has(l) || c.add(l)) : c.has(l) ? c.delete(l) : c.add(l), a(c), t(l);
6045
6045
  };
6046
- return /* @__PURE__ */ o.jsx("ul", { className: A(s > 0 ? "mt-1" : "mt-0"), children: r.map((l) => {
6046
+ return /* @__PURE__ */ o.jsx("ul", { className: $(s > 0 ? "mt-1" : "mt-0"), children: r.map((l) => {
6047
6047
  const c = l.value === e, f = n.has(l.value), d = ["pl-2", "pl-2", "pl-2"][s] || "pl-4", m = s === 0 ? f || c ? "bg-[var(--color-ds-background-accent)] text-[var(--color-ds-text-on-accent)] rounded-r-lg" : "text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]" : c ? "bg-[var(--color-ds-background-surface)] text-[var(--color-ds-text-primary)]" : "text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]", h = s === 0 && (f || c) ? "text-[var(--color-ds-text-on-accent)]" : "text-[var(--color-ds-text-secondary)]";
6048
6048
  return /* @__PURE__ */ o.jsxs("li", { children: [
6049
6049
  /* @__PURE__ */ o.jsxs(
6050
6050
  "button",
6051
6051
  {
6052
6052
  onClick: () => l.children ? i(l.value) : t(l.value),
6053
- className: A(
6053
+ className: $(
6054
6054
  "w-full flex items-center justify-between h-8 transition-colors",
6055
6055
  d,
6056
6056
  m
@@ -6060,14 +6060,14 @@ const Ss = () => It(Fs), xi = ({
6060
6060
  s === 0 && l.icon && /* @__PURE__ */ o.jsx(l.icon, { className: "w-5 h-5 ml-2" }),
6061
6061
  /* @__PURE__ */ o.jsx("span", { className: "text-ds-sm", children: l.label })
6062
6062
  ] }),
6063
- l.children && (f ? /* @__PURE__ */ o.jsx(Zr, { className: A("w-4 h-4 ", h) }) : /* @__PURE__ */ o.jsx(Xs, { className: A("w-4 h-4", h) }))
6063
+ l.children && (f ? /* @__PURE__ */ o.jsx(Zr, { className: $("w-4 h-4 ", h) }) : /* @__PURE__ */ o.jsx(Xs, { className: $("w-4 h-4", h) }))
6064
6064
  ]
6065
6065
  }
6066
6066
  ),
6067
6067
  l.children && /* @__PURE__ */ o.jsx(
6068
6068
  "div",
6069
6069
  {
6070
- className: A(
6070
+ className: $(
6071
6071
  "overflow-hidden transition-[max-height] duration-300 ease-in-out",
6072
6072
  "border-l-1 border-[var(--color-ds-background-accent)] ml-6",
6073
6073
  f ? "max-h-screen" : "max-h-0"
@@ -6156,35 +6156,35 @@ function Ci({
6156
6156
  }, [t]);
6157
6157
  const [k, j] = Q(/* @__PURE__ */ new Set()), [_, v] = Q(1), [p, F] = Q(
6158
6158
  l == null ? void 0 : l.sortBy
6159
- ), [$, O] = Q(
6159
+ ), [D, O] = Q(
6160
6160
  (l == null ? void 0 : l.sortDir) ?? "asc"
6161
6161
  ), B = Me(() => {
6162
6162
  if (!p) return [...d];
6163
- const E = $ === "asc" ? 1 : -1;
6164
- return [...d].sort((V, D) => {
6165
- const b = V[p], z = D[p];
6163
+ const E = D === "asc" ? 1 : -1;
6164
+ return [...d].sort((V, A) => {
6165
+ const b = V[p], z = A[p];
6166
6166
  return b == null ? -E : z == null || b > z ? E : b < z ? -E : 0;
6167
6167
  });
6168
- }, [d, p, $]), Y = Math.max(1, Math.ceil(B.length / i)), P = Me(() => {
6168
+ }, [d, p, D]), Y = Math.max(1, Math.ceil(B.length / i)), P = Me(() => {
6169
6169
  const E = (_ - 1) * i;
6170
6170
  return B.slice(E, E + i);
6171
6171
  }, [B, _, i]), W = (E) => {
6172
6172
  const V = new Set(k);
6173
- V.has(E) ? V.delete(E) : V.add(E), j(V), a == null || a(d.filter((D) => V.has(D[s])));
6173
+ V.has(E) ? V.delete(E) : V.add(E), j(V), a == null || a(d.filter((A) => V.has(A[s])));
6174
6174
  }, Z = () => {
6175
- const E = P.every((D) => k.has(D[s])), V = new Set(k);
6176
- E ? P.forEach((D) => V.delete(D[s])) : P.forEach((D) => V.add(D[s])), j(V), a == null || a(d.filter((D) => V.has(D[s])));
6175
+ const E = P.every((A) => k.has(A[s])), V = new Set(k);
6176
+ E ? P.forEach((A) => V.delete(A[s])) : P.forEach((A) => V.add(A[s])), j(V), a == null || a(d.filter((A) => V.has(A[s])));
6177
6177
  }, M = (E) => {
6178
6178
  const V = typeof E.accessor == "string" ? E.accessor : E.sortKey;
6179
6179
  if (p === V) {
6180
- const D = $ === "asc" ? "desc" : "asc";
6181
- O(D), c == null || c(V, D);
6180
+ const A = D === "asc" ? "desc" : "asc";
6181
+ O(A), c == null || c(V, A);
6182
6182
  } else
6183
6183
  F(V), O("asc"), c == null || c(V, "asc");
6184
6184
  v(1);
6185
6185
  }, L = () => h ? /* @__PURE__ */ o.jsx("tbody", { children: Array.from({ length: i }).map((E, V) => /* @__PURE__ */ o.jsxs("tr", { children: [
6186
6186
  n && /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(He, { width: "1rem", height: "1rem", variant: "circle" }) }),
6187
- r.map((D, b) => /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(He, { width: "100%", height: "1em", variant: "rect" }) }, b))
6187
+ r.map((A, b) => /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(He, { width: "100%", height: "1em", variant: "rect" }) }, b))
6188
6188
  ] }, V)) }) : P.length === 0 ? /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
6189
6189
  "td",
6190
6190
  {
@@ -6203,8 +6203,8 @@ function Ci({
6203
6203
  onChange: () => W(V)
6204
6204
  }
6205
6205
  ) }),
6206
- r.map((D, b) => {
6207
- const z = D.render ? D.render(E) : typeof D.accessor == "function" ? D.accessor(E) : E[D.accessor];
6206
+ r.map((A, b) => {
6207
+ const z = A.render ? A.render(E) : typeof A.accessor == "function" ? A.accessor(E) : E[A.accessor];
6208
6208
  return /* @__PURE__ */ o.jsx(
6209
6209
  "td",
6210
6210
  {
@@ -6216,7 +6216,7 @@ function Ci({
6216
6216
  })
6217
6217
  ] }, V);
6218
6218
  }) });
6219
- return /* @__PURE__ */ o.jsxs("div", { className: A("w-full overflow-auto", f), children: [
6219
+ return /* @__PURE__ */ o.jsxs("div", { className: $("w-full overflow-auto", f), children: [
6220
6220
  /* @__PURE__ */ o.jsxs("table", { className: "min-w-full divide-y divide-gray-200", children: [
6221
6221
  /* @__PURE__ */ o.jsx("thead", { className: "bg-gray-50", children: /* @__PURE__ */ o.jsxs("tr", { children: [
6222
6222
  n && /* @__PURE__ */ o.jsx("th", { className: "px-4 py-2 text-left", children: /* @__PURE__ */ o.jsx(
@@ -6228,18 +6228,18 @@ function Ci({
6228
6228
  }
6229
6229
  ) }),
6230
6230
  r.map((E) => {
6231
- const V = typeof E.accessor == "string" ? E.accessor : E.header, D = E.sortable && !!E.accessor, b = p === E.accessor;
6231
+ const V = typeof E.accessor == "string" ? E.accessor : E.header, A = E.sortable && !!E.accessor, b = p === E.accessor;
6232
6232
  return /* @__PURE__ */ o.jsx(
6233
6233
  "th",
6234
6234
  {
6235
- className: A(
6235
+ className: $(
6236
6236
  "px-4 py-2 text-left text-sm font-medium text-gray-700",
6237
6237
  E.width
6238
6238
  ),
6239
- onClick: () => D && M(E),
6239
+ onClick: () => A && M(E),
6240
6240
  children: /* @__PURE__ */ o.jsxs("div", { className: "inline-flex items-center space-x-1 cursor-pointer select-none", children: [
6241
6241
  /* @__PURE__ */ o.jsx("span", { children: E.header }),
6242
- D && /* @__PURE__ */ o.jsx("span", { className: "text-xs", children: b ? $ === "asc" ? "▲" : "▼" : "⇵" })
6242
+ A && /* @__PURE__ */ o.jsx("span", { className: "text-xs", children: b ? D === "asc" ? "▲" : "▼" : "⇵" })
6243
6243
  ] })
6244
6244
  },
6245
6245
  V
@@ -6315,11 +6315,11 @@ function yi({
6315
6315
  }
6316
6316
  );
6317
6317
  const h = !!n;
6318
- return /* @__PURE__ */ o.jsxs("div", { className: A("flex flex-col", d), children: [
6318
+ return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", d), children: [
6319
6319
  /* @__PURE__ */ o.jsxs(
6320
6320
  "label",
6321
6321
  {
6322
- className: A(
6322
+ className: $(
6323
6323
  "inline-flex items-center space-x-3 select-none",
6324
6324
  i && "opacity-50 cursor-not-allowed"
6325
6325
  ),
@@ -6335,7 +6335,7 @@ function yi({
6335
6335
  "aria-checked": h,
6336
6336
  disabled: i,
6337
6337
  onClick: () => !i && (a == null ? void 0 : a(!h)),
6338
- className: A(
6338
+ className: $(
6339
6339
  "relative inline-flex items-center h-8 w-16",
6340
6340
  "bg-[var(--color-ds-background-accent)] rounded-full transition-colors duration-200",
6341
6341
  "focus:outline-none "
@@ -6343,7 +6343,7 @@ function yi({
6343
6343
  children: /* @__PURE__ */ o.jsx(
6344
6344
  "div",
6345
6345
  {
6346
- className: A(
6346
+ className: $(
6347
6347
  "absolute h-6 w-6 bg-[var(--color-ds-background-page)] rounded-full shadow transform transition-transform duration-200",
6348
6348
  h ? "translate-x-9" : "translate-x-1"
6349
6349
  )