@dipusevilla/componentes-iu 1.0.14 → 1.0.16

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
@@ -1,5 +1,5 @@
1
- import * as R from "react";
2
- import X, { useState as Q, useRef as _e, useLayoutEffect as Pr, useEffect as le, useId as Ue, createContext as Lt, useContext as It, useCallback as Tt, useMemo as Me } from "react";
1
+ import * as V from "react";
2
+ import X, { useState as ee, useRef as _e, useLayoutEffect as Pr, useEffect as le, useId as Ue, createContext as Lt, useContext as It, useCallback as Tt, useMemo as Me } from "react";
3
3
  import Ur from "react-dom";
4
4
  function Rs(r) {
5
5
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -52,20 +52,20 @@ function Ls() {
52
52
  function r(w) {
53
53
  if (w == null) return null;
54
54
  if (typeof w == "function")
55
- return w.$$typeof === Z ? null : w.displayName || w.name || null;
55
+ return w.$$typeof === z ? null : w.displayName || w.name || null;
56
56
  if (typeof w == "string") return w;
57
57
  switch (w) {
58
58
  case j:
59
59
  return "Fragment";
60
- case v:
60
+ case y:
61
61
  return "Profiler";
62
62
  case _:
63
63
  return "StrictMode";
64
64
  case O:
65
65
  return "Suspense";
66
- case B:
66
+ case I:
67
67
  return "SuspenseList";
68
- case W:
68
+ case B:
69
69
  return "Activity";
70
70
  }
71
71
  if (typeof w == "object")
@@ -79,14 +79,14 @@ function Ls() {
79
79
  case p:
80
80
  return (w._context.displayName || "Context") + ".Consumer";
81
81
  case D:
82
- var U = w.render;
83
- return w = w.displayName, w || (w = U.displayName || U.name || "", w = w !== "" ? "ForwardRef(" + w + ")" : "ForwardRef"), w;
82
+ var P = w.render;
83
+ return w = w.displayName, w || (w = P.displayName || P.name || "", w = w !== "" ? "ForwardRef(" + w + ")" : "ForwardRef"), w;
84
84
  case Y:
85
- return U = w.displayName || null, U !== null ? U : r(w.type) || "Memo";
86
- case P:
87
- U = w._payload, w = w._init;
85
+ return P = w.displayName || null, P !== null ? P : r(w.type) || "Memo";
86
+ case U:
87
+ P = w._payload, w = w._init;
88
88
  try {
89
- return r(w(U));
89
+ return r(w(P));
90
90
  } catch {
91
91
  }
92
92
  }
@@ -98,50 +98,50 @@ function Ls() {
98
98
  function t(w) {
99
99
  try {
100
100
  e(w);
101
- var U = !1;
101
+ var P = !1;
102
102
  } catch {
103
- U = !0;
103
+ P = !0;
104
104
  }
105
- if (U) {
106
- U = console;
107
- var G = U.error, ee = typeof Symbol == "function" && Symbol.toStringTag && w[Symbol.toStringTag] || w.constructor.name || "Object";
105
+ if (P) {
106
+ P = console;
107
+ var G = P.error, te = typeof Symbol == "function" && Symbol.toStringTag && w[Symbol.toStringTag] || w.constructor.name || "Object";
108
108
  return G.call(
109
- U,
109
+ P,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
- ee
111
+ te
112
112
  ), e(w);
113
113
  }
114
114
  }
115
115
  function s(w) {
116
116
  if (w === j) return "<>";
117
- if (typeof w == "object" && w !== null && w.$$typeof === P)
117
+ if (typeof w == "object" && w !== null && w.$$typeof === U)
118
118
  return "<...>";
119
119
  try {
120
- var U = r(w);
121
- return U ? "<" + U + ">" : "<...>";
120
+ var P = r(w);
121
+ return P ? "<" + P + ">" : "<...>";
122
122
  } catch {
123
123
  return "<...>";
124
124
  }
125
125
  }
126
126
  function n() {
127
- var w = M.A;
127
+ var w = R.A;
128
128
  return w === null ? null : w.getOwner();
129
129
  }
130
130
  function a() {
131
131
  return Error("react-stack-top-frame");
132
132
  }
133
133
  function i(w) {
134
- if (L.call(w, "key")) {
135
- var U = Object.getOwnPropertyDescriptor(w, "key").get;
136
- if (U && U.isReactWarning) return !1;
134
+ if (M.call(w, "key")) {
135
+ var P = Object.getOwnPropertyDescriptor(w, "key").get;
136
+ if (P && P.isReactWarning) return !1;
137
137
  }
138
138
  return w.key !== void 0;
139
139
  }
140
- function l(w, U) {
140
+ function l(w, P) {
141
141
  function G() {
142
- A || (A = !0, console.error(
142
+ C || (C = !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
- U
144
+ P
145
145
  ));
146
146
  }
147
147
  G.isReactWarning = !0, Object.defineProperty(w, "key", {
@@ -151,15 +151,15 @@ function Ls() {
151
151
  }
152
152
  function c() {
153
153
  var w = r(this.type);
154
- return b[w] || (b[w] = !0, console.error(
154
+ return g[w] || (g[w] = !0, console.error(
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), w = this.props.ref, w !== void 0 ? w : null;
157
157
  }
158
- function f(w, U, G, ee, ae, q, ce, ue) {
158
+ function f(w, P, G, te, ae, q, ce, ue) {
159
159
  return G = q.ref, w = {
160
- $$typeof: g,
160
+ $$typeof: v,
161
161
  type: w,
162
- key: U,
162
+ key: P,
163
163
  props: q,
164
164
  _owner: ae
165
165
  }, (G !== void 0 ? G : null) !== null ? Object.defineProperty(w, "ref", {
@@ -187,42 +187,42 @@ function Ls() {
187
187
  value: ue
188
188
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
189
189
  }
190
- function d(w, U, G, ee, ae, q, ce, ue) {
191
- var H = U.children;
190
+ function d(w, P, G, te, ae, q, ce, ue) {
191
+ var H = P.children;
192
192
  if (H !== void 0)
193
- if (ee)
194
- if (E(H)) {
195
- for (ee = 0; ee < H.length; ee++)
196
- m(H[ee]);
193
+ if (te)
194
+ if (Z(H)) {
195
+ for (te = 0; te < H.length; te++)
196
+ m(H[te]);
197
197
  Object.freeze && Object.freeze(H);
198
198
  } else
199
199
  console.error(
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
202
  else m(H);
203
- if (L.call(U, "key")) {
203
+ if (M.call(P, "key")) {
204
204
  H = r(w);
205
- var de = Object.keys(U).filter(function(Ze) {
205
+ var de = Object.keys(P).filter(function(Ze) {
206
206
  return Ze !== "key";
207
207
  });
208
- ee = 0 < de.length ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}", ie[H + ee] || (de = 0 < de.length ? "{" + de.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ te = 0 < de.length ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}", ie[H + te] || (de = 0 < de.length ? "{" + de.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
210
210
  let props = %s;
211
211
  <%s {...props} />
212
212
  React keys must be passed directly to JSX without using spread:
213
213
  let props = %s;
214
214
  <%s key={someKey} {...props} />`,
215
- ee,
215
+ te,
216
216
  H,
217
217
  de,
218
218
  H
219
- ), ie[H + ee] = !0);
219
+ ), ie[H + te] = !0);
220
220
  }
221
- if (H = null, G !== void 0 && (t(G), H = "" + G), i(U) && (t(U.key), H = "" + U.key), "key" in U) {
221
+ if (H = null, G !== void 0 && (t(G), H = "" + G), i(P) && (t(P.key), H = "" + P.key), "key" in P) {
222
222
  G = {};
223
- for (var Fe in U)
224
- Fe !== "key" && (G[Fe] = U[Fe]);
225
- } else G = U;
223
+ for (var Fe in P)
224
+ Fe !== "key" && (G[Fe] = P[Fe]);
225
+ } else G = P;
226
226
  return H && l(
227
227
  G,
228
228
  typeof w == "function" ? w.displayName || w.name || "Unknown" : w
@@ -238,9 +238,9 @@ React keys must be passed directly to JSX without using spread:
238
238
  );
239
239
  }
240
240
  function m(w) {
241
- typeof w == "object" && w !== null && w.$$typeof === g && w._store && (w._store.validated = 1);
241
+ typeof w == "object" && w !== null && w.$$typeof === v && 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"), 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() {
243
+ var h = X, v = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), y = 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"), I = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), R = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, Z = Array.isArray, E = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  h = {
@@ -248,33 +248,33 @@ React keys must be passed directly to JSX without using spread:
248
248
  return w();
249
249
  }
250
250
  };
251
- var A, b = {}, z = h["react-stack-bottom-frame"].bind(
251
+ var C, g = {}, W = h["react-stack-bottom-frame"].bind(
252
252
  h,
253
253
  a
254
- )(), re = V(s(a)), ie = {};
255
- Ge.Fragment = j, Ge.jsx = function(w, U, G, ee, ae) {
256
- var q = 1e4 > M.recentlyCreatedOwnerStacks++;
254
+ )(), J = E(s(a)), ie = {};
255
+ Ge.Fragment = j, Ge.jsx = function(w, P, G, te, ae) {
256
+ var q = 1e4 > R.recentlyCreatedOwnerStacks++;
257
257
  return d(
258
258
  w,
259
- U,
259
+ P,
260
260
  G,
261
261
  !1,
262
- ee,
262
+ te,
263
263
  ae,
264
- q ? Error("react-stack-top-frame") : z,
265
- q ? V(s(w)) : re
264
+ q ? Error("react-stack-top-frame") : W,
265
+ q ? E(s(w)) : J
266
266
  );
267
- }, Ge.jsxs = function(w, U, G, ee, ae) {
268
- var q = 1e4 > M.recentlyCreatedOwnerStacks++;
267
+ }, Ge.jsxs = function(w, P, G, te, ae) {
268
+ var q = 1e4 > R.recentlyCreatedOwnerStacks++;
269
269
  return d(
270
270
  w,
271
- U,
271
+ P,
272
272
  G,
273
273
  !0,
274
- ee,
274
+ te,
275
275
  ae,
276
- q ? Error("react-stack-top-frame") : z,
277
- q ? V(s(w)) : re
276
+ q ? Error("react-stack-top-frame") : W,
277
+ q ? E(s(w)) : J
278
278
  );
279
279
  };
280
280
  }()), Ge;
@@ -351,7 +351,7 @@ function Ve({
351
351
  onClick: f,
352
352
  className: d
353
353
  }) {
354
- const m = !!a, h = m && !c, g = h ? zs[t] : Zs[t];
354
+ const m = !!a, h = m && !c, v = h ? zs[t] : Zs[t];
355
355
  return /* @__PURE__ */ o.jsxs(
356
356
  "button",
357
357
  {
@@ -363,7 +363,7 @@ function Ve({
363
363
  className: $(
364
364
  Us,
365
365
  Bs[e],
366
- g,
366
+ v,
367
367
  Ws,
368
368
  d,
369
369
  m && c && "gap-2"
@@ -381,7 +381,7 @@ function qs({
381
381
  titleId: e,
382
382
  ...t
383
383
  }, s) {
384
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
384
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
385
385
  xmlns: "http://www.w3.org/2000/svg",
386
386
  fill: "none",
387
387
  viewBox: "0 0 24 24",
@@ -391,21 +391,21 @@ function qs({
391
391
  "data-slot": "icon",
392
392
  ref: s,
393
393
  "aria-labelledby": e
394
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
394
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
395
395
  id: e
396
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
396
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
397
397
  strokeLinecap: "round",
398
398
  strokeLinejoin: "round",
399
399
  d: "m4.5 12.75 6 6 9-13.5"
400
400
  }));
401
401
  }
402
- const Hs = /* @__PURE__ */ R.forwardRef(qs);
402
+ const Hs = /* @__PURE__ */ V.forwardRef(qs);
403
403
  function Ys({
404
404
  title: r,
405
405
  titleId: e,
406
406
  ...t
407
407
  }, s) {
408
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
408
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
409
409
  xmlns: "http://www.w3.org/2000/svg",
410
410
  fill: "none",
411
411
  viewBox: "0 0 24 24",
@@ -415,21 +415,21 @@ function Ys({
415
415
  "data-slot": "icon",
416
416
  ref: s,
417
417
  "aria-labelledby": e
418
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
418
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
419
419
  id: e
420
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
420
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
421
421
  strokeLinecap: "round",
422
422
  strokeLinejoin: "round",
423
423
  d: "m19.5 8.25-7.5 7.5-7.5-7.5"
424
424
  }));
425
425
  }
426
- const Zr = /* @__PURE__ */ R.forwardRef(Ys);
426
+ const Zr = /* @__PURE__ */ V.forwardRef(Ys);
427
427
  function Gs({
428
428
  title: r,
429
429
  titleId: e,
430
430
  ...t
431
431
  }, s) {
432
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
432
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
433
433
  xmlns: "http://www.w3.org/2000/svg",
434
434
  fill: "none",
435
435
  viewBox: "0 0 24 24",
@@ -439,21 +439,21 @@ function Gs({
439
439
  "data-slot": "icon",
440
440
  ref: s,
441
441
  "aria-labelledby": e
442
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
442
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
443
443
  id: e
444
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
444
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
445
445
  strokeLinecap: "round",
446
446
  strokeLinejoin: "round",
447
447
  d: "m8.25 4.5 7.5 7.5-7.5 7.5"
448
448
  }));
449
449
  }
450
- const Xs = /* @__PURE__ */ R.forwardRef(Gs);
450
+ const Xs = /* @__PURE__ */ V.forwardRef(Gs);
451
451
  function Js({
452
452
  title: r,
453
453
  titleId: e,
454
454
  ...t
455
455
  }, s) {
456
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
456
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
457
457
  xmlns: "http://www.w3.org/2000/svg",
458
458
  fill: "none",
459
459
  viewBox: "0 0 24 24",
@@ -463,21 +463,21 @@ function Js({
463
463
  "data-slot": "icon",
464
464
  ref: s,
465
465
  "aria-labelledby": e
466
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
466
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
467
467
  id: e
468
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
468
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
469
469
  strokeLinecap: "round",
470
470
  strokeLinejoin: "round",
471
471
  d: "m4.5 15.75 7.5-7.5 7.5 7.5"
472
472
  }));
473
473
  }
474
- const Ks = /* @__PURE__ */ R.forwardRef(Js);
474
+ const Ks = /* @__PURE__ */ V.forwardRef(Js);
475
475
  function Qs({
476
476
  title: r,
477
477
  titleId: e,
478
478
  ...t
479
479
  }, s) {
480
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
480
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
481
481
  xmlns: "http://www.w3.org/2000/svg",
482
482
  fill: "none",
483
483
  viewBox: "0 0 24 24",
@@ -487,21 +487,21 @@ function Qs({
487
487
  "data-slot": "icon",
488
488
  ref: s,
489
489
  "aria-labelledby": e
490
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
490
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
491
491
  id: e
492
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
492
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
493
493
  strokeLinecap: "round",
494
494
  strokeLinejoin: "round",
495
495
  d: "M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"
496
496
  }));
497
497
  }
498
- const en = /* @__PURE__ */ R.forwardRef(Qs);
498
+ const en = /* @__PURE__ */ V.forwardRef(Qs);
499
499
  function tn({
500
500
  title: r,
501
501
  titleId: e,
502
502
  ...t
503
503
  }, s) {
504
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
504
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
505
505
  xmlns: "http://www.w3.org/2000/svg",
506
506
  fill: "none",
507
507
  viewBox: "0 0 24 24",
@@ -511,21 +511,21 @@ function tn({
511
511
  "data-slot": "icon",
512
512
  ref: s,
513
513
  "aria-labelledby": e
514
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
514
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
515
515
  id: e
516
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
516
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
517
517
  strokeLinecap: "round",
518
518
  strokeLinejoin: "round",
519
519
  d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
520
520
  }));
521
521
  }
522
- const ar = /* @__PURE__ */ R.forwardRef(tn);
522
+ const ar = /* @__PURE__ */ V.forwardRef(tn);
523
523
  function rn({
524
524
  title: r,
525
525
  titleId: e,
526
526
  ...t
527
527
  }, s) {
528
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
528
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
529
529
  xmlns: "http://www.w3.org/2000/svg",
530
530
  fill: "none",
531
531
  viewBox: "0 0 24 24",
@@ -535,21 +535,21 @@ function rn({
535
535
  "data-slot": "icon",
536
536
  ref: s,
537
537
  "aria-labelledby": e
538
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
538
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
539
539
  id: e
540
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
540
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
541
541
  strokeLinecap: "round",
542
542
  strokeLinejoin: "round",
543
543
  d: "M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"
544
544
  }));
545
545
  }
546
- const sn = /* @__PURE__ */ R.forwardRef(rn);
546
+ const sn = /* @__PURE__ */ V.forwardRef(rn);
547
547
  function nn({
548
548
  title: r,
549
549
  titleId: e,
550
550
  ...t
551
551
  }, s) {
552
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
552
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
553
553
  xmlns: "http://www.w3.org/2000/svg",
554
554
  fill: "none",
555
555
  viewBox: "0 0 24 24",
@@ -559,25 +559,25 @@ function nn({
559
559
  "data-slot": "icon",
560
560
  ref: s,
561
561
  "aria-labelledby": e
562
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
562
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
563
563
  id: e
564
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
564
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
565
565
  strokeLinecap: "round",
566
566
  strokeLinejoin: "round",
567
567
  d: "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"
568
- }), /* @__PURE__ */ R.createElement("path", {
568
+ }), /* @__PURE__ */ V.createElement("path", {
569
569
  strokeLinecap: "round",
570
570
  strokeLinejoin: "round",
571
571
  d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
572
572
  }));
573
573
  }
574
- const zr = /* @__PURE__ */ R.forwardRef(nn);
574
+ const zr = /* @__PURE__ */ V.forwardRef(nn);
575
575
  function an({
576
576
  title: r,
577
577
  titleId: e,
578
578
  ...t
579
579
  }, s) {
580
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
580
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
581
581
  xmlns: "http://www.w3.org/2000/svg",
582
582
  fill: "none",
583
583
  viewBox: "0 0 24 24",
@@ -587,21 +587,21 @@ function an({
587
587
  "data-slot": "icon",
588
588
  ref: s,
589
589
  "aria-labelledby": e
590
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
590
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
591
591
  id: e
592
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
592
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
593
593
  strokeLinecap: "round",
594
594
  strokeLinejoin: "round",
595
595
  d: "M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"
596
596
  }));
597
597
  }
598
- const on = /* @__PURE__ */ R.forwardRef(an);
598
+ const on = /* @__PURE__ */ V.forwardRef(an);
599
599
  function ln({
600
600
  title: r,
601
601
  titleId: e,
602
602
  ...t
603
603
  }, s) {
604
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
604
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
605
605
  xmlns: "http://www.w3.org/2000/svg",
606
606
  fill: "none",
607
607
  viewBox: "0 0 24 24",
@@ -611,21 +611,21 @@ function ln({
611
611
  "data-slot": "icon",
612
612
  ref: s,
613
613
  "aria-labelledby": e
614
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
614
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
615
615
  id: e
616
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
616
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
617
617
  strokeLinecap: "round",
618
618
  strokeLinejoin: "round",
619
619
  d: "m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"
620
620
  }));
621
621
  }
622
- const cn = /* @__PURE__ */ R.forwardRef(ln);
622
+ const cn = /* @__PURE__ */ V.forwardRef(ln);
623
623
  function un({
624
624
  title: r,
625
625
  titleId: e,
626
626
  ...t
627
627
  }, s) {
628
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
628
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
629
629
  xmlns: "http://www.w3.org/2000/svg",
630
630
  fill: "none",
631
631
  viewBox: "0 0 24 24",
@@ -635,21 +635,21 @@ function un({
635
635
  "data-slot": "icon",
636
636
  ref: s,
637
637
  "aria-labelledby": e
638
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
638
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
639
639
  id: e
640
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
640
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
641
641
  strokeLinecap: "round",
642
642
  strokeLinejoin: "round",
643
643
  d: "M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"
644
644
  }));
645
645
  }
646
- const dn = /* @__PURE__ */ R.forwardRef(un);
646
+ const dn = /* @__PURE__ */ V.forwardRef(un);
647
647
  function fn({
648
648
  title: r,
649
649
  titleId: e,
650
650
  ...t
651
651
  }, s) {
652
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
652
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
653
653
  xmlns: "http://www.w3.org/2000/svg",
654
654
  fill: "none",
655
655
  viewBox: "0 0 24 24",
@@ -659,21 +659,21 @@ function fn({
659
659
  "data-slot": "icon",
660
660
  ref: s,
661
661
  "aria-labelledby": e
662
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
662
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
663
663
  id: e
664
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
664
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
665
665
  strokeLinecap: "round",
666
666
  strokeLinejoin: "round",
667
667
  d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"
668
668
  }));
669
669
  }
670
- const hn = /* @__PURE__ */ R.forwardRef(fn);
670
+ const hn = /* @__PURE__ */ V.forwardRef(fn);
671
671
  function mn({
672
672
  title: r,
673
673
  titleId: e,
674
674
  ...t
675
675
  }, s) {
676
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
676
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
677
677
  xmlns: "http://www.w3.org/2000/svg",
678
678
  fill: "none",
679
679
  viewBox: "0 0 24 24",
@@ -683,21 +683,21 @@ function mn({
683
683
  "data-slot": "icon",
684
684
  ref: s,
685
685
  "aria-labelledby": e
686
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
686
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
687
687
  id: e
688
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
688
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
689
689
  strokeLinecap: "round",
690
690
  strokeLinejoin: "round",
691
691
  d: "M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"
692
692
  }));
693
693
  }
694
- const xn = /* @__PURE__ */ R.forwardRef(mn);
694
+ const xn = /* @__PURE__ */ V.forwardRef(mn);
695
695
  function pn({
696
696
  title: r,
697
697
  titleId: e,
698
698
  ...t
699
699
  }, s) {
700
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
700
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
701
701
  xmlns: "http://www.w3.org/2000/svg",
702
702
  fill: "none",
703
703
  viewBox: "0 0 24 24",
@@ -707,21 +707,21 @@ function pn({
707
707
  "data-slot": "icon",
708
708
  ref: s,
709
709
  "aria-labelledby": e
710
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
710
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
711
711
  id: e
712
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
712
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
713
713
  strokeLinecap: "round",
714
714
  strokeLinejoin: "round",
715
715
  d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
716
716
  }));
717
717
  }
718
- const gn = /* @__PURE__ */ R.forwardRef(pn);
718
+ const gn = /* @__PURE__ */ V.forwardRef(pn);
719
719
  function vn({
720
720
  title: r,
721
721
  titleId: e,
722
722
  ...t
723
723
  }, s) {
724
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
724
+ return /* @__PURE__ */ V.createElement("svg", Object.assign({
725
725
  xmlns: "http://www.w3.org/2000/svg",
726
726
  fill: "none",
727
727
  viewBox: "0 0 24 24",
@@ -731,22 +731,22 @@ function vn({
731
731
  "data-slot": "icon",
732
732
  ref: s,
733
733
  "aria-labelledby": e
734
- }, t), r ? /* @__PURE__ */ R.createElement("title", {
734
+ }, t), r ? /* @__PURE__ */ V.createElement("title", {
735
735
  id: e
736
- }, r) : null, /* @__PURE__ */ R.createElement("path", {
736
+ }, r) : null, /* @__PURE__ */ V.createElement("path", {
737
737
  strokeLinecap: "round",
738
738
  strokeLinejoin: "round",
739
739
  d: "M6 18 18 6M6 6l12 12"
740
740
  }));
741
741
  }
742
- const Pt = /* @__PURE__ */ R.forwardRef(vn);
742
+ const Pt = /* @__PURE__ */ V.forwardRef(vn);
743
743
  function ir({
744
744
  title: r,
745
745
  children: e,
746
746
  defaultOpen: t = !0,
747
747
  className: s
748
748
  }) {
749
- const [n, a] = Q(t), i = _e(null), l = _e(null), [c, f] = Q(0), d = () => {
749
+ const [n, a] = ee(t), i = _e(null), l = _e(null), [c, f] = ee(0), d = () => {
750
750
  if (l.current) {
751
751
  const m = l.current.scrollHeight;
752
752
  f(m);
@@ -821,7 +821,7 @@ var yt = (r) => Array.isArray(r) ? r.filter(Boolean) : [], se = (r) => r === voi
821
821
  return t;
822
822
  const s = yt(e.split(/[,[\].]+?/)).reduce((n, a) => xe(n) ? n : n[a], r);
823
823
  return se(s) || s === r ? se(r[e]) ? t : r[e] : s;
824
- }, ve = (r) => typeof r == "boolean", Bt = (r) => /^\w*$/.test(r), Yr = (r) => yt(r.replace(/["|']|\]/g, "").split(/\.|\[/)), J = (r, e, t) => {
824
+ }, ve = (r) => typeof r == "boolean", Bt = (r) => /^\w*$/.test(r), Yr = (r) => yt(r.replace(/["|']|\]/g, "").split(/\.|\[/)), K = (r, e, t) => {
825
825
  let s = -1;
826
826
  const n = Bt(e) ? [e] : Yr(e), a = n.length, i = a - 1;
827
827
  for (; ++s < a; ) {
@@ -871,7 +871,7 @@ var Xr = (r, e, t, s = !0) => {
871
871
  });
872
872
  return n;
873
873
  };
874
- const Zt = typeof window < "u" ? R.useLayoutEffect : R.useEffect;
874
+ const Zt = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
875
875
  function jn(r) {
876
876
  const e = bt(), { control: t = e.control, disabled: s, name: n, exact: a } = r || {}, [i, l] = X.useState(t._formState), c = X.useRef({
877
877
  isDirty: !1,
@@ -950,15 +950,15 @@ function Qr(r) {
950
950
  name: t
951
951
  },
952
952
  type: ft.CHANGE
953
- }), [t]), g = X.useCallback(() => d.current.onBlur({
953
+ }), [t]), v = X.useCallback(() => d.current.onBlur({
954
954
  target: {
955
955
  value: T(n._formValues, t),
956
956
  name: t
957
957
  },
958
958
  type: ft.BLUR
959
959
  }), [t, n._formValues]), k = X.useCallback((_) => {
960
- const v = T(n._fields, t);
961
- v && _ && (v._f.ref = {
960
+ const y = T(n._fields, t);
961
+ y && _ && (y._f.ref = {
962
962
  focus: () => _.focus(),
963
963
  select: () => _.select(),
964
964
  setCustomValidity: (p) => _.setCustomValidity(p),
@@ -969,25 +969,25 @@ function Qr(r) {
969
969
  value: l,
970
970
  ...ve(s) || c.disabled ? { disabled: c.disabled || s } : {},
971
971
  onChange: h,
972
- onBlur: g,
972
+ onBlur: v,
973
973
  ref: k
974
- }), [t, s, c.disabled, h, g, k, l]);
974
+ }), [t, s, c.disabled, h, v, k, l]);
975
975
  return X.useEffect(() => {
976
976
  const _ = n._options.shouldUnregister || a;
977
977
  n.register(t, {
978
978
  ...f.current.rules,
979
979
  ...ve(f.current.disabled) ? { disabled: f.current.disabled } : {}
980
980
  });
981
- const v = (p, F) => {
981
+ const y = (p, F) => {
982
982
  const D = T(n._fields, p);
983
983
  D && D._f && (D._f.mount = F);
984
984
  };
985
- if (v(t, !0), _) {
985
+ if (y(t, !0), _) {
986
986
  const p = he(T(n._options.defaultValues, t));
987
- J(n._defaultValues, t, p), se(T(n._formValues, t)) && J(n._formValues, t, p);
987
+ K(n._defaultValues, t, p), se(T(n._formValues, t)) && K(n._formValues, t, p);
988
988
  }
989
989
  return !i && n.register(t), () => {
990
- (i ? _ && !n._state.action : _) ? n.unregister(t) : v(t, !1);
990
+ (i ? _ && !n._state.action : _) ? n.unregister(t) : y(t, !1);
991
991
  };
992
992
  }, [t, n, i, a]), X.useEffect(() => {
993
993
  n._setDisabledField({
@@ -1124,7 +1124,7 @@ var _n = (r, e, t, s) => {
1124
1124
  const n = {};
1125
1125
  for (const a of r) {
1126
1126
  const i = T(e, a);
1127
- i && J(n, a, i._f);
1127
+ i && K(n, a, i._f);
1128
1128
  }
1129
1129
  return {
1130
1130
  criteriaMode: t,
@@ -1187,7 +1187,7 @@ var Tn = (r, e, t, s) => {
1187
1187
  return me(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!s || we.all));
1188
1188
  }, On = (r, e, t) => !r || !e || r === e || Ke(r).some((s) => s && (t ? s === e : s.startsWith(e) || e.startsWith(s))), Cn = (r, e, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(e || r) : (t ? s.isOnBlur : n.isOnBlur) ? !r : (t ? s.isOnChange : n.isOnChange) ? r : !0, An = (r, e) => !yt(T(r, e)).length && oe(r, e), $n = (r, e, t) => {
1189
1189
  const s = Ke(T(r, t));
1190
- return J(s, "root", e[t]), J(r, t, s), r;
1190
+ return K(s, "root", e[t]), K(r, t, s), r;
1191
1191
  }, ct = (r) => Ne(r);
1192
1192
  function pr(r, e, t = "validate") {
1193
1193
  if (ct(r) || Array.isArray(r) && r.every(ct) || ve(r) && !r)
@@ -1201,80 +1201,80 @@ var ze = (r) => ne(r) && !xt(r) ? r : {
1201
1201
  value: r,
1202
1202
  message: ""
1203
1203
  }, gr = async (r, e, t, s, n, a) => {
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
- if (!v || e.has(j))
1204
+ const { ref: i, refs: l, required: c, maxLength: f, minLength: d, min: m, max: h, pattern: v, validate: k, name: j, valueAsNumber: _, mount: y } = r._f, p = T(t, j);
1205
+ if (!y || e.has(j))
1206
1206
  return {};
1207
- const F = l ? l[0] : i, D = (L) => {
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, A = Se.maxLength, b = Se.minLength) => {
1210
- const z = L ? E : V;
1207
+ const F = l ? l[0] : i, D = (M) => {
1208
+ n && F.reportValidity && (F.setCustomValidity(ve(M) ? "" : M || ""), F.reportValidity());
1209
+ }, O = {}, I = Wt(i), Y = et(i), U = I || Y, B = (_ || zt(i)) && se(i.value) && se(p) || ht(i) && i.value === "" || p === "" || Array.isArray(p) && !p.length, z = es.bind(null, j, s, O), R = (M, Z, E, C = Se.maxLength, g = Se.minLength) => {
1210
+ const W = M ? Z : E;
1211
1211
  O[j] = {
1212
- type: L ? A : b,
1213
- message: z,
1212
+ type: M ? C : g,
1213
+ message: W,
1214
1214
  ref: i,
1215
- ...Z(L ? A : b, z)
1215
+ ...z(M ? C : g, W)
1216
1216
  };
1217
1217
  };
1218
- if (a ? !Array.isArray(p) || !p.length : c && (!P && (W || xe(p)) || ve(p) && !p || Y && !ns(l).isValid || B && !is(l).isValid)) {
1219
- const { value: L, message: E } = ct(c) ? { value: !!c, message: c } : ze(c);
1220
- if (L && (O[j] = {
1218
+ if (a ? !Array.isArray(p) || !p.length : c && (!U && (B || xe(p)) || ve(p) && !p || Y && !ns(l).isValid || I && !is(l).isValid)) {
1219
+ const { value: M, message: Z } = ct(c) ? { value: !!c, message: c } : ze(c);
1220
+ if (M && (O[j] = {
1221
1221
  type: Se.required,
1222
- message: E,
1222
+ message: Z,
1223
1223
  ref: F,
1224
- ...Z(Se.required, E)
1224
+ ...z(Se.required, Z)
1225
1225
  }, !s))
1226
- return D(E), O;
1226
+ return D(Z), O;
1227
1227
  }
1228
- if (!W && (!xe(m) || !xe(h))) {
1229
- let L, E;
1230
- const V = ze(h), A = ze(m);
1228
+ if (!B && (!xe(m) || !xe(h))) {
1229
+ let M, Z;
1230
+ const E = ze(h), C = ze(m);
1231
1231
  if (!xe(p) && !isNaN(p)) {
1232
- const b = i.valueAsNumber || p && +p;
1233
- xe(V.value) || (L = b > V.value), xe(A.value) || (E = b < A.value);
1232
+ const g = i.valueAsNumber || p && +p;
1233
+ xe(E.value) || (M = g > E.value), xe(C.value) || (Z = g < C.value);
1234
1234
  } else {
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(A.value) && p && (E = re ? z(p) < z(A.value) : ie ? p < A.value : b < new Date(A.value));
1235
+ const g = i.valueAsDate || new Date(p), W = (w) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + w), J = i.type == "time", ie = i.type == "week";
1236
+ Ne(E.value) && p && (M = J ? W(p) > W(E.value) : ie ? p > E.value : g > new Date(E.value)), Ne(C.value) && p && (Z = J ? W(p) < W(C.value) : ie ? p < C.value : g < new Date(C.value));
1237
1237
  }
1238
- if ((L || E) && (M(!!L, V.message, A.message, Se.max, Se.min), !s))
1238
+ if ((M || Z) && (R(!!M, E.message, C.message, Se.max, Se.min), !s))
1239
1239
  return D(O[j].message), O;
1240
1240
  }
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, A = !xe(E.value) && p.length < +E.value;
1243
- if ((V || A) && (M(V, L.message, E.message), !s))
1241
+ if ((f || d) && !B && (Ne(p) || a && Array.isArray(p))) {
1242
+ const M = ze(f), Z = ze(d), E = !xe(M.value) && p.length > +M.value, C = !xe(Z.value) && p.length < +Z.value;
1243
+ if ((E || C) && (R(E, M.message, Z.message), !s))
1244
1244
  return D(O[j].message), O;
1245
1245
  }
1246
- if (g && !W && Ne(p)) {
1247
- const { value: L, message: E } = ze(g);
1248
- if (xt(L) && !p.match(L) && (O[j] = {
1246
+ if (v && !B && Ne(p)) {
1247
+ const { value: M, message: Z } = ze(v);
1248
+ if (xt(M) && !p.match(M) && (O[j] = {
1249
1249
  type: Se.pattern,
1250
- message: E,
1250
+ message: Z,
1251
1251
  ref: i,
1252
- ...Z(Se.pattern, E)
1252
+ ...z(Se.pattern, Z)
1253
1253
  }, !s))
1254
- return D(E), O;
1254
+ return D(Z), O;
1255
1255
  }
1256
1256
  if (k) {
1257
1257
  if (je(k)) {
1258
- const L = await k(p, t), E = pr(L, F);
1259
- if (E && (O[j] = {
1260
- ...E,
1261
- ...Z(Se.validate, E.message)
1258
+ const M = await k(p, t), Z = pr(M, F);
1259
+ if (Z && (O[j] = {
1260
+ ...Z,
1261
+ ...z(Se.validate, Z.message)
1262
1262
  }, !s))
1263
- return D(E.message), O;
1263
+ return D(Z.message), O;
1264
1264
  } else if (ne(k)) {
1265
- let L = {};
1266
- for (const E in k) {
1267
- if (!me(L) && !s)
1265
+ let M = {};
1266
+ for (const Z in k) {
1267
+ if (!me(M) && !s)
1268
1268
  break;
1269
- const V = pr(await k[E](p, t), F, E);
1270
- V && (L = {
1271
- ...V,
1272
- ...Z(E, V.message)
1273
- }, D(V.message), s && (O[j] = L));
1269
+ const E = pr(await k[Z](p, t), F, Z);
1270
+ E && (M = {
1271
+ ...E,
1272
+ ...z(Z, E.message)
1273
+ }, D(E.message), s && (O[j] = M));
1274
1274
  }
1275
- if (!me(L) && (O[j] = {
1275
+ if (!me(M) && (O[j] = {
1276
1276
  ref: F,
1277
- ...L
1277
+ ...M
1278
1278
  }, !s))
1279
1279
  return O;
1280
1280
  }
@@ -1333,47 +1333,47 @@ function Vn(r = {}) {
1333
1333
  const h = {
1334
1334
  array: or(),
1335
1335
  state: or()
1336
- }, g = e.criteriaMode === we.all, k = (u) => (x) => {
1336
+ }, v = e.criteriaMode === we.all, k = (u) => (x) => {
1337
1337
  clearTimeout(f), f = setTimeout(u, x);
1338
1338
  }, j = async (u) => {
1339
1339
  if (!e.disabled && (d.isValid || m.isValid || u)) {
1340
- const x = e.resolver ? me((await Y()).errors) : await W(s, !0);
1340
+ const x = e.resolver ? me((await Y()).errors) : await B(s, !0);
1341
1341
  x !== t.isValid && h.state.next({
1342
1342
  isValid: x
1343
1343
  });
1344
1344
  }
1345
1345
  }, _ = (u, x) => {
1346
- !e.disabled && (d.isValidating || d.validatingFields || m.isValidating || m.validatingFields) && ((u || Array.from(l.mount)).forEach((y) => {
1347
- y && (x ? J(t.validatingFields, y, x) : oe(t.validatingFields, y));
1346
+ !e.disabled && (d.isValidating || d.validatingFields || m.isValidating || m.validatingFields) && ((u || Array.from(l.mount)).forEach((b) => {
1347
+ b && (x ? K(t.validatingFields, b, x) : oe(t.validatingFields, b));
1348
1348
  }), h.state.next({
1349
1349
  validatingFields: t.validatingFields,
1350
1350
  isValidating: !me(t.validatingFields)
1351
1351
  }));
1352
- }, v = (u, x = [], y, C, S = !0, N = !0) => {
1353
- if (C && y && !e.disabled) {
1352
+ }, y = (u, x = [], b, A, S = !0, N = !0) => {
1353
+ if (A && b && !e.disabled) {
1354
1354
  if (i.action = !0, N && Array.isArray(T(s, u))) {
1355
- const I = y(T(s, u), C.argA, C.argB);
1356
- S && J(s, u, I);
1355
+ const L = b(T(s, u), A.argA, A.argB);
1356
+ S && K(s, u, L);
1357
1357
  }
1358
1358
  if (N && Array.isArray(T(t.errors, u))) {
1359
- const I = y(T(t.errors, u), C.argA, C.argB);
1360
- S && J(t.errors, u, I), An(t.errors, u);
1359
+ const L = b(T(t.errors, u), A.argA, A.argB);
1360
+ S && K(t.errors, u, L), An(t.errors, u);
1361
1361
  }
1362
1362
  if ((d.touchedFields || m.touchedFields) && N && Array.isArray(T(t.touchedFields, u))) {
1363
- const I = y(T(t.touchedFields, u), C.argA, C.argB);
1364
- S && J(t.touchedFields, u, I);
1363
+ const L = b(T(t.touchedFields, u), A.argA, A.argB);
1364
+ S && K(t.touchedFields, u, L);
1365
1365
  }
1366
1366
  (d.dirtyFields || m.dirtyFields) && (t.dirtyFields = Xe(n, a)), h.state.next({
1367
1367
  name: u,
1368
- isDirty: M(u, x),
1368
+ isDirty: R(u, x),
1369
1369
  dirtyFields: t.dirtyFields,
1370
1370
  errors: t.errors,
1371
1371
  isValid: t.isValid
1372
1372
  });
1373
1373
  } else
1374
- J(a, u, x);
1374
+ K(a, u, x);
1375
1375
  }, p = (u, x) => {
1376
- J(t.errors, u, x), h.state.next({
1376
+ K(t.errors, u, x), h.state.next({
1377
1377
  errors: t.errors
1378
1378
  });
1379
1379
  }, F = (u) => {
@@ -1381,170 +1381,170 @@ function Vn(r = {}) {
1381
1381
  errors: t.errors,
1382
1382
  isValid: !1
1383
1383
  });
1384
- }, D = (u, x, y, C) => {
1384
+ }, D = (u, x, b, A) => {
1385
1385
  const S = T(s, u);
1386
1386
  if (S) {
1387
- const N = T(a, u, se(y) ? T(n, u) : y);
1388
- se(N) || C && C.defaultChecked || x ? J(a, u, x ? N : dr(S._f)) : V(u, N), i.mount && j();
1387
+ const N = T(a, u, se(b) ? T(n, u) : b);
1388
+ se(N) || A && A.defaultChecked || x ? K(a, u, x ? N : dr(S._f)) : E(u, N), i.mount && j();
1389
1389
  }
1390
- }, O = (u, x, y, C, S) => {
1391
- let N = !1, I = !1;
1392
- const K = {
1390
+ }, O = (u, x, b, A, S) => {
1391
+ let N = !1, L = !1;
1392
+ const Q = {
1393
1393
  name: u
1394
1394
  };
1395
1395
  if (!e.disabled) {
1396
- if (!y || C) {
1397
- (d.isDirty || m.isDirty) && (I = t.isDirty, t.isDirty = K.isDirty = M(), N = I !== K.isDirty);
1398
- const te = De(T(n, u), x);
1399
- I = !!T(t.dirtyFields, u), te ? oe(t.dirtyFields, u) : J(t.dirtyFields, u, !0), K.dirtyFields = t.dirtyFields, N = N || (d.dirtyFields || m.dirtyFields) && I !== !te;
1396
+ if (!b || A) {
1397
+ (d.isDirty || m.isDirty) && (L = t.isDirty, t.isDirty = Q.isDirty = R(), N = L !== Q.isDirty);
1398
+ const re = De(T(n, u), x);
1399
+ L = !!T(t.dirtyFields, u), re ? oe(t.dirtyFields, u) : K(t.dirtyFields, u, !0), Q.dirtyFields = t.dirtyFields, N = N || (d.dirtyFields || m.dirtyFields) && L !== !re;
1400
1400
  }
1401
- if (y) {
1402
- const te = T(t.touchedFields, u);
1403
- te || (J(t.touchedFields, u, y), K.touchedFields = t.touchedFields, N = N || (d.touchedFields || m.touchedFields) && te !== y);
1401
+ if (b) {
1402
+ const re = T(t.touchedFields, u);
1403
+ re || (K(t.touchedFields, u, b), Q.touchedFields = t.touchedFields, N = N || (d.touchedFields || m.touchedFields) && re !== b);
1404
1404
  }
1405
- N && S && h.state.next(K);
1405
+ N && S && h.state.next(Q);
1406
1406
  }
1407
- return N ? K : {};
1408
- }, B = (u, x, y, C) => {
1407
+ return N ? Q : {};
1408
+ }, I = (u, x, b, A) => {
1409
1409
  const S = T(t.errors, u), N = (d.isValid || m.isValid) && ve(x) && t.isValid !== x;
1410
- if (e.delayError && y ? (c = k(() => p(u, y)), c(e.delayError)) : (clearTimeout(f), c = null, y ? J(t.errors, u, y) : oe(t.errors, u)), (y ? !De(S, y) : S) || !me(C) || N) {
1411
- const I = {
1412
- ...C,
1410
+ if (e.delayError && b ? (c = k(() => p(u, b)), c(e.delayError)) : (clearTimeout(f), c = null, b ? K(t.errors, u, b) : oe(t.errors, u)), (b ? !De(S, b) : S) || !me(A) || N) {
1411
+ const L = {
1412
+ ...A,
1413
1413
  ...N && ve(x) ? { isValid: x } : {},
1414
1414
  errors: t.errors,
1415
1415
  name: u
1416
1416
  };
1417
1417
  t = {
1418
1418
  ...t,
1419
- ...I
1420
- }, h.state.next(I);
1419
+ ...L
1420
+ }, h.state.next(L);
1421
1421
  }
1422
1422
  }, Y = async (u) => {
1423
1423
  _(u, !0);
1424
1424
  const x = await e.resolver(a, e.context, _n(u || l.mount, s, e.criteriaMode, e.shouldUseNativeValidation));
1425
1425
  return _(u), x;
1426
- }, P = async (u) => {
1426
+ }, U = async (u) => {
1427
1427
  const { errors: x } = await Y(u);
1428
1428
  if (u)
1429
- for (const y of u) {
1430
- const C = T(x, y);
1431
- C ? J(t.errors, y, C) : oe(t.errors, y);
1429
+ for (const b of u) {
1430
+ const A = T(x, b);
1431
+ A ? K(t.errors, b, A) : oe(t.errors, b);
1432
1432
  }
1433
1433
  else
1434
1434
  t.errors = x;
1435
1435
  return x;
1436
- }, W = async (u, x, y = {
1436
+ }, B = async (u, x, b = {
1437
1437
  valid: !0
1438
1438
  }) => {
1439
- for (const C in u) {
1440
- const S = u[C];
1439
+ for (const A in u) {
1440
+ const S = u[A];
1441
1441
  if (S) {
1442
- const { _f: N, ...I } = S;
1442
+ const { _f: N, ...L } = S;
1443
1443
  if (N) {
1444
- const K = l.array.has(N.name), te = S._f && Fn(S._f);
1445
- te && d.validatingFields && _([C], !0);
1446
- const ye = await gr(S, l.disabled, a, g, e.shouldUseNativeValidation && !x, K);
1447
- if (te && d.validatingFields && _([C]), ye[N.name] && (y.valid = !1, x))
1444
+ const Q = l.array.has(N.name), re = S._f && Fn(S._f);
1445
+ re && d.validatingFields && _([A], !0);
1446
+ const ye = await gr(S, l.disabled, a, v, e.shouldUseNativeValidation && !x, Q);
1447
+ if (re && d.validatingFields && _([A]), ye[N.name] && (b.valid = !1, x))
1448
1448
  break;
1449
- !x && (T(ye, N.name) ? K ? $n(t.errors, ye, N.name) : J(t.errors, N.name, ye[N.name]) : oe(t.errors, N.name));
1449
+ !x && (T(ye, N.name) ? Q ? $n(t.errors, ye, N.name) : K(t.errors, N.name, ye[N.name]) : oe(t.errors, N.name));
1450
1450
  }
1451
- !me(I) && await W(I, x, y);
1451
+ !me(L) && await B(L, x, b);
1452
1452
  }
1453
1453
  }
1454
- return y.valid;
1455
- }, Z = () => {
1454
+ return b.valid;
1455
+ }, z = () => {
1456
1456
  for (const u of l.unMount) {
1457
1457
  const x = T(s, u);
1458
- x && (x._f.refs ? x._f.refs.every((y) => !kt(y)) : !kt(x._f.ref)) && ue(u);
1458
+ x && (x._f.refs ? x._f.refs.every((b) => !kt(b)) : !kt(x._f.ref)) && ue(u);
1459
1459
  }
1460
1460
  l.unMount = /* @__PURE__ */ new Set();
1461
- }, M = (u, x) => !e.disabled && (u && x && J(a, u, x), !De(w(), n)), L = (u, x, y) => Jr(u, l, {
1461
+ }, R = (u, x) => !e.disabled && (u && x && K(a, u, x), !De(w(), n)), M = (u, x, b) => Jr(u, l, {
1462
1462
  ...i.mount ? a : se(x) ? n : Ne(u) ? { [u]: x } : x
1463
- }, y, x), E = (u) => yt(T(i.mount ? a : n, u, e.shouldUnregister ? T(n, u, []) : [])), V = (u, x, y = {}) => {
1464
- const C = T(s, u);
1463
+ }, b, x), Z = (u) => yt(T(i.mount ? a : n, u, e.shouldUnregister ? T(n, u, []) : [])), E = (u, x, b = {}) => {
1464
+ const A = T(s, u);
1465
1465
  let S = x;
1466
- if (C) {
1467
- const N = C._f;
1468
- N && (!N.disabled && J(a, u, as(x, N)), S = ht(N.ref) && xe(x) ? "" : x, ts(N.ref) ? [...N.ref.options].forEach((I) => I.selected = S.includes(I.value)) : N.refs ? et(N.ref) ? N.refs.forEach((I) => {
1469
- (!I.defaultChecked || !I.disabled) && (Array.isArray(S) ? I.checked = !!S.find((K) => K === I.value) : I.checked = S === I.value || !!S);
1470
- }) : N.refs.forEach((I) => I.checked = I.value === S) : zt(N.ref) ? N.ref.value = "" : (N.ref.value = S, N.ref.type || h.state.next({
1466
+ if (A) {
1467
+ const N = A._f;
1468
+ N && (!N.disabled && K(a, u, as(x, N)), S = ht(N.ref) && xe(x) ? "" : x, ts(N.ref) ? [...N.ref.options].forEach((L) => L.selected = S.includes(L.value)) : N.refs ? et(N.ref) ? N.refs.forEach((L) => {
1469
+ (!L.defaultChecked || !L.disabled) && (Array.isArray(S) ? L.checked = !!S.find((Q) => Q === L.value) : L.checked = S === L.value || !!S);
1470
+ }) : N.refs.forEach((L) => L.checked = L.value === S) : zt(N.ref) ? N.ref.value = "" : (N.ref.value = S, N.ref.type || h.state.next({
1471
1471
  name: u,
1472
1472
  values: he(a)
1473
1473
  })));
1474
1474
  }
1475
- (y.shouldDirty || y.shouldTouch) && O(u, S, y.shouldTouch, y.shouldDirty, !0), y.shouldValidate && ie(u);
1476
- }, A = (u, x, y) => {
1477
- for (const C in x) {
1478
- if (!x.hasOwnProperty(C))
1475
+ (b.shouldDirty || b.shouldTouch) && O(u, S, b.shouldTouch, b.shouldDirty, !0), b.shouldValidate && ie(u);
1476
+ }, C = (u, x, b) => {
1477
+ for (const A in x) {
1478
+ if (!x.hasOwnProperty(A))
1479
1479
  return;
1480
- const S = x[C], N = `${u}.${C}`, I = T(s, N);
1481
- (l.array.has(u) || ne(S) || I && !I._f) && !Le(S) ? A(N, S, y) : V(N, S, y);
1480
+ const S = x[A], N = `${u}.${A}`, L = T(s, N);
1481
+ (l.array.has(u) || ne(S) || L && !L._f) && !Le(S) ? C(N, S, b) : E(N, S, b);
1482
1482
  }
1483
- }, b = (u, x, y = {}) => {
1484
- const C = T(s, u), S = l.array.has(u), N = he(x);
1485
- J(a, u, N), S ? (h.array.next({
1483
+ }, g = (u, x, b = {}) => {
1484
+ const A = T(s, u), S = l.array.has(u), N = he(x);
1485
+ K(a, u, N), S ? (h.array.next({
1486
1486
  name: u,
1487
1487
  values: he(a)
1488
- }), (d.isDirty || d.dirtyFields || m.isDirty || m.dirtyFields) && y.shouldDirty && h.state.next({
1488
+ }), (d.isDirty || d.dirtyFields || m.isDirty || m.dirtyFields) && b.shouldDirty && h.state.next({
1489
1489
  name: u,
1490
1490
  dirtyFields: Xe(n, a),
1491
- isDirty: M(u, N)
1492
- })) : C && !C._f && !xe(N) ? A(u, N, y) : V(u, N, y), mr(u, l) && h.state.next({ ...t }), h.state.next({
1491
+ isDirty: R(u, N)
1492
+ })) : A && !A._f && !xe(N) ? C(u, N, b) : E(u, N, b), 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
  });
1496
- }, z = async (u) => {
1496
+ }, W = async (u) => {
1497
1497
  i.mount = !0;
1498
1498
  const x = u.target;
1499
- let y = x.name, C = !0;
1500
- const S = T(s, y), N = (te) => {
1501
- C = Number.isNaN(te) || Le(te) && isNaN(te.getTime()) || De(te, T(a, y, te));
1502
- }, I = fr(e.mode), K = fr(e.reValidateMode);
1499
+ let b = x.name, A = !0;
1500
+ const S = T(s, b), N = (re) => {
1501
+ A = Number.isNaN(re) || Le(re) && isNaN(re.getTime()) || De(re, T(a, b, re));
1502
+ }, L = fr(e.mode), Q = fr(e.reValidateMode);
1503
1503
  if (S) {
1504
- let te, ye;
1505
- const rt = x.type ? dr(S._f) : qr(u), Ae = u.type === ft.BLUR || u.type === ft.FOCUS_OUT, $s = !Sn(S._f) && !e.resolver && !T(t.errors, y) && !S._f.deps || Cn(Ae, T(t.touchedFields, y), t.isSubmitted, K, I), wt = mr(y, l, Ae);
1506
- J(a, y, rt), Ae ? (S._f.onBlur && S._f.onBlur(u), c && c(0)) : S._f.onChange && S._f.onChange(u);
1507
- const jt = O(y, rt, Ae), Ds = !me(jt) || wt;
1504
+ let re, ye;
1505
+ const rt = x.type ? dr(S._f) : qr(u), Ae = u.type === ft.BLUR || u.type === ft.FOCUS_OUT, $s = !Sn(S._f) && !e.resolver && !T(t.errors, b) && !S._f.deps || Cn(Ae, T(t.touchedFields, b), t.isSubmitted, Q, L), wt = mr(b, l, Ae);
1506
+ K(a, b, rt), Ae ? (S._f.onBlur && S._f.onBlur(u), c && c(0)) : S._f.onChange && S._f.onChange(u);
1507
+ const jt = O(b, rt, Ae), Ds = !me(jt) || wt;
1508
1508
  if (!Ae && h.state.next({
1509
- name: y,
1509
+ name: b,
1510
1510
  type: u.type,
1511
1511
  values: he(a)
1512
1512
  }), $s)
1513
- return (d.isValid || m.isValid) && (e.mode === "onBlur" ? Ae && j() : Ae || j()), Ds && h.state.next({ name: y, ...wt ? {} : jt });
1513
+ return (d.isValid || m.isValid) && (e.mode === "onBlur" ? Ae && j() : Ae || j()), Ds && h.state.next({ name: b, ...wt ? {} : jt });
1514
1514
  if (!Ae && wt && h.state.next({ ...t }), e.resolver) {
1515
- const { errors: er } = await Y([y]);
1516
- if (N(rt), C) {
1517
- const Vs = xr(t.errors, s, y), tr = xr(er, s, Vs.name || y);
1518
- te = tr.error, y = tr.name, ye = me(er);
1515
+ const { errors: er } = await Y([b]);
1516
+ if (N(rt), A) {
1517
+ const Vs = xr(t.errors, s, b), tr = xr(er, s, Vs.name || b);
1518
+ re = tr.error, b = tr.name, ye = me(er);
1519
1519
  }
1520
1520
  } else
1521
- _([y], !0), te = (await gr(S, l.disabled, a, g, e.shouldUseNativeValidation))[y], _([y]), N(rt), C && (te ? ye = !1 : (d.isValid || m.isValid) && (ye = await W(s, !0)));
1522
- C && (S._f.deps && ie(S._f.deps), B(y, ye, te, jt));
1521
+ _([b], !0), re = (await gr(S, l.disabled, a, v, e.shouldUseNativeValidation))[b], _([b]), N(rt), A && (re ? ye = !1 : (d.isValid || m.isValid) && (ye = await B(s, !0)));
1522
+ A && (S._f.deps && ie(S._f.deps), I(b, ye, re, jt));
1523
1523
  }
1524
- }, re = (u, x) => {
1524
+ }, J = (u, x) => {
1525
1525
  if (T(t.errors, x) && u.focus)
1526
1526
  return u.focus(), 1;
1527
1527
  }, ie = async (u, x = {}) => {
1528
- let y, C;
1528
+ let b, A;
1529
1529
  const S = Ke(u);
1530
1530
  if (e.resolver) {
1531
- const N = await P(se(u) ? u : S);
1532
- y = me(N), C = u ? !S.some((I) => T(N, I)) : y;
1533
- } else u ? (C = (await Promise.all(S.map(async (N) => {
1534
- const I = T(s, N);
1535
- return await W(I && I._f ? { [N]: I } : I);
1536
- }))).every(Boolean), !(!C && !t.isValid) && j()) : C = y = await W(s);
1531
+ const N = await U(se(u) ? u : S);
1532
+ b = me(N), A = u ? !S.some((L) => T(N, L)) : b;
1533
+ } else u ? (A = (await Promise.all(S.map(async (N) => {
1534
+ const L = T(s, N);
1535
+ return await B(L && L._f ? { [N]: L } : L);
1536
+ }))).every(Boolean), !(!A && !t.isValid) && j()) : A = b = await B(s);
1537
1537
  return h.state.next({
1538
- ...!Ne(u) || (d.isValid || m.isValid) && y !== t.isValid ? {} : { name: u },
1539
- ...e.resolver || !u ? { isValid: y } : {},
1538
+ ...!Ne(u) || (d.isValid || m.isValid) && b !== t.isValid ? {} : { name: u },
1539
+ ...e.resolver || !u ? { isValid: b } : {},
1540
1540
  errors: t.errors
1541
- }), x.shouldFocus && !C && Qe(s, re, u ? S : l.mount), C;
1541
+ }), x.shouldFocus && !A && Qe(s, J, u ? S : l.mount), A;
1542
1542
  }, w = (u) => {
1543
1543
  const x = {
1544
1544
  ...i.mount ? a : n
1545
1545
  };
1546
- return se(u) ? x : Ne(u) ? T(x, u) : u.map((y) => T(x, y));
1547
- }, U = (u, x) => ({
1546
+ return se(u) ? x : Ne(u) ? T(x, u) : u.map((b) => T(x, b));
1547
+ }, P = (u, x) => ({
1548
1548
  invalid: !!T((x || t).errors, u),
1549
1549
  isDirty: !!T((x || t).dirtyFields, u),
1550
1550
  error: T((x || t).errors, u),
@@ -1554,20 +1554,20 @@ function Vn(r = {}) {
1554
1554
  u && Ke(u).forEach((x) => oe(t.errors, x)), h.state.next({
1555
1555
  errors: u ? t.errors : {}
1556
1556
  });
1557
- }, ee = (u, x, y) => {
1558
- const C = (T(s, u, { _f: {} })._f || {}).ref, S = T(t.errors, u) || {}, { ref: N, message: I, type: K, ...te } = S;
1559
- J(t.errors, u, {
1560
- ...te,
1557
+ }, te = (u, x, b) => {
1558
+ const A = (T(s, u, { _f: {} })._f || {}).ref, S = T(t.errors, u) || {}, { ref: N, message: L, type: Q, ...re } = S;
1559
+ K(t.errors, u, {
1560
+ ...re,
1561
1561
  ...x,
1562
- ref: C
1562
+ ref: A
1563
1563
  }), h.state.next({
1564
1564
  name: u,
1565
1565
  errors: t.errors,
1566
1566
  isValid: !1
1567
- }), y && y.shouldFocus && C && C.focus && C.focus();
1567
+ }), b && b.shouldFocus && A && A.focus && A.focus();
1568
1568
  }, ae = (u, x) => je(u) ? h.state.subscribe({
1569
- next: (y) => u(L(void 0, x), y)
1570
- }) : L(u, x, !0), q = (u) => h.state.subscribe({
1569
+ next: (b) => u(M(void 0, x), b)
1570
+ }) : M(u, x, !0), q = (u) => h.state.subscribe({
1571
1571
  next: (x) => {
1572
1572
  On(u.name, x.name, u.exact) && Tn(x, u.formState || d, As, u.reRenderRoot) && u.callback({
1573
1573
  values: { ...a },
@@ -1582,32 +1582,32 @@ function Vn(r = {}) {
1582
1582
  ...u,
1583
1583
  formState: m
1584
1584
  })), ue = (u, x = {}) => {
1585
- for (const y of u ? Ke(u) : l.mount)
1586
- l.mount.delete(y), l.array.delete(y), x.keepValue || (oe(s, y), oe(a, y)), !x.keepError && oe(t.errors, y), !x.keepDirty && oe(t.dirtyFields, y), !x.keepTouched && oe(t.touchedFields, y), !x.keepIsValidating && oe(t.validatingFields, y), !e.shouldUnregister && !x.keepDefaultValue && oe(n, y);
1585
+ for (const b of u ? Ke(u) : l.mount)
1586
+ l.mount.delete(b), l.array.delete(b), x.keepValue || (oe(s, b), oe(a, b)), !x.keepError && oe(t.errors, b), !x.keepDirty && oe(t.dirtyFields, b), !x.keepTouched && oe(t.touchedFields, b), !x.keepIsValidating && oe(t.validatingFields, b), !e.shouldUnregister && !x.keepDefaultValue && oe(n, b);
1587
1587
  h.state.next({
1588
1588
  values: he(a)
1589
1589
  }), h.state.next({
1590
1590
  ...t,
1591
- ...x.keepDirty ? { isDirty: M() } : {}
1591
+ ...x.keepDirty ? { isDirty: R() } : {}
1592
1592
  }), !x.keepIsValid && j();
1593
1593
  }, H = ({ disabled: u, name: x }) => {
1594
1594
  (ve(u) && i.mount || u || l.disabled.has(x)) && (u ? l.disabled.add(x) : l.disabled.delete(x));
1595
1595
  }, de = (u, x = {}) => {
1596
- let y = T(s, u);
1597
- const C = ve(x.disabled) || ve(e.disabled);
1598
- return J(s, u, {
1599
- ...y || {},
1596
+ let b = T(s, u);
1597
+ const A = ve(x.disabled) || ve(e.disabled);
1598
+ return K(s, u, {
1599
+ ...b || {},
1600
1600
  _f: {
1601
- ...y && y._f ? y._f : { ref: { name: u } },
1601
+ ...b && b._f ? b._f : { ref: { name: u } },
1602
1602
  name: u,
1603
1603
  mount: !0,
1604
1604
  ...x
1605
1605
  }
1606
- }), l.mount.add(u), y ? H({
1606
+ }), l.mount.add(u), b ? H({
1607
1607
  disabled: ve(x.disabled) ? x.disabled : e.disabled,
1608
1608
  name: u
1609
1609
  }) : D(u, !0, x.value), {
1610
- ...C ? { disabled: x.disabled || e.disabled } : {},
1610
+ ...A ? { disabled: x.disabled || e.disabled } : {},
1611
1611
  ...e.progressive ? {
1612
1612
  required: !!x.required,
1613
1613
  min: Je(x.min),
@@ -1617,20 +1617,20 @@ function Vn(r = {}) {
1617
1617
  pattern: Je(x.pattern)
1618
1618
  } : {},
1619
1619
  name: u,
1620
- onChange: z,
1621
- onBlur: z,
1620
+ onChange: W,
1621
+ onBlur: W,
1622
1622
  ref: (S) => {
1623
1623
  if (S) {
1624
- de(u, x), y = T(s, u);
1625
- const N = se(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, I = kn(N), K = y._f.refs || [];
1626
- if (I ? K.find((te) => te === N) : N === y._f.ref)
1624
+ de(u, x), b = T(s, u);
1625
+ const N = se(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, L = kn(N), Q = b._f.refs || [];
1626
+ if (L ? Q.find((re) => re === N) : N === b._f.ref)
1627
1627
  return;
1628
- J(s, u, {
1628
+ K(s, u, {
1629
1629
  _f: {
1630
- ...y._f,
1631
- ...I ? {
1630
+ ...b._f,
1631
+ ...L ? {
1632
1632
  refs: [
1633
- ...K.filter(kt),
1633
+ ...Q.filter(kt),
1634
1634
  N,
1635
1635
  ...Array.isArray(T(n, u)) ? [{}] : []
1636
1636
  ],
@@ -1639,69 +1639,69 @@ function Vn(r = {}) {
1639
1639
  }
1640
1640
  }), D(u, !1, void 0, N);
1641
1641
  } else
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);
1642
+ b = T(s, u, {}), b._f && (b._f.mount = !1), (e.shouldUnregister || x.shouldUnregister) && !(Hr(l.array, u) && i.action) && l.unMount.add(u);
1643
1643
  }
1644
1644
  };
1645
- }, Fe = () => e.shouldFocusError && Qe(s, re, l.mount), Ze = (u) => {
1646
- ve(u) && (h.state.next({ disabled: u }), Qe(s, (x, y) => {
1647
- const C = T(s, y);
1648
- C && (x.disabled = C._f.disabled || u, Array.isArray(C._f.refs) && C._f.refs.forEach((S) => {
1649
- S.disabled = C._f.disabled || u;
1645
+ }, Fe = () => e.shouldFocusError && Qe(s, J, l.mount), Ze = (u) => {
1646
+ ve(u) && (h.state.next({ disabled: u }), Qe(s, (x, b) => {
1647
+ const A = T(s, b);
1648
+ A && (x.disabled = A._f.disabled || u, Array.isArray(A._f.refs) && A._f.refs.forEach((S) => {
1649
+ S.disabled = A._f.disabled || u;
1650
1650
  }));
1651
1651
  }, 0, !1));
1652
- }, Xt = (u, x) => async (y) => {
1653
- let C;
1654
- y && (y.preventDefault && y.preventDefault(), y.persist && y.persist());
1652
+ }, Xt = (u, x) => async (b) => {
1653
+ let A;
1654
+ b && (b.preventDefault && b.preventDefault(), b.persist && b.persist());
1655
1655
  let S = he(a);
1656
1656
  if (h.state.next({
1657
1657
  isSubmitting: !0
1658
1658
  }), e.resolver) {
1659
- const { errors: N, values: I } = await Y();
1660
- t.errors = N, S = I;
1659
+ const { errors: N, values: L } = await Y();
1660
+ t.errors = N, S = L;
1661
1661
  } else
1662
- await W(s);
1662
+ await B(s);
1663
1663
  if (l.disabled.size)
1664
1664
  for (const N of l.disabled)
1665
- J(S, N, void 0);
1665
+ K(S, N, void 0);
1666
1666
  if (oe(t.errors, "root"), me(t.errors)) {
1667
1667
  h.state.next({
1668
1668
  errors: {}
1669
1669
  });
1670
1670
  try {
1671
- await u(S, y);
1671
+ await u(S, b);
1672
1672
  } catch (N) {
1673
- C = N;
1673
+ A = N;
1674
1674
  }
1675
1675
  } else
1676
- x && await x({ ...t.errors }, y), Fe(), setTimeout(Fe);
1676
+ x && await x({ ...t.errors }, b), Fe(), setTimeout(Fe);
1677
1677
  if (h.state.next({
1678
1678
  isSubmitted: !0,
1679
1679
  isSubmitting: !1,
1680
- isSubmitSuccessful: me(t.errors) && !C,
1680
+ isSubmitSuccessful: me(t.errors) && !A,
1681
1681
  submitCount: t.submitCount + 1,
1682
1682
  errors: t.errors
1683
- }), C)
1684
- throw C;
1683
+ }), A)
1684
+ throw A;
1685
1685
  }, Os = (u, x = {}) => {
1686
- T(s, u) && (se(x.defaultValue) ? b(u, he(T(n, u))) : (b(u, x.defaultValue), J(n, u, he(x.defaultValue))), x.keepTouched || oe(t.touchedFields, u), x.keepDirty || (oe(t.dirtyFields, u), t.isDirty = x.defaultValue ? M(u, he(T(n, u))) : M()), x.keepError || (oe(t.errors, u), d.isValid && j()), h.state.next({ ...t }));
1686
+ T(s, u) && (se(x.defaultValue) ? g(u, he(T(n, u))) : (g(u, x.defaultValue), K(n, u, he(x.defaultValue))), x.keepTouched || oe(t.touchedFields, u), x.keepDirty || (oe(t.dirtyFields, u), t.isDirty = x.defaultValue ? R(u, he(T(n, u))) : R()), x.keepError || (oe(t.errors, u), d.isValid && j()), h.state.next({ ...t }));
1687
1687
  }, Jt = (u, x = {}) => {
1688
- const y = u ? he(u) : n, C = he(y), S = me(u), N = S ? n : C;
1689
- if (x.keepDefaultValues || (n = y), !x.keepValues) {
1688
+ const b = u ? he(u) : n, A = he(b), S = me(u), N = S ? n : A;
1689
+ if (x.keepDefaultValues || (n = b), !x.keepValues) {
1690
1690
  if (x.keepDirtyValues) {
1691
- const I = /* @__PURE__ */ new Set([
1691
+ const L = /* @__PURE__ */ new Set([
1692
1692
  ...l.mount,
1693
1693
  ...Object.keys(Xe(n, a))
1694
1694
  ]);
1695
- for (const K of Array.from(I))
1696
- T(t.dirtyFields, K) ? J(N, K, T(a, K)) : b(K, T(N, K));
1695
+ for (const Q of Array.from(L))
1696
+ T(t.dirtyFields, Q) ? K(N, Q, T(a, Q)) : g(Q, T(N, Q));
1697
1697
  } else {
1698
1698
  if (Ut && se(u))
1699
- for (const I of l.mount) {
1700
- const K = T(s, I);
1701
- if (K && K._f) {
1702
- const te = Array.isArray(K._f.refs) ? K._f.refs[0] : K._f.ref;
1703
- if (ht(te)) {
1704
- const ye = te.closest("form");
1699
+ for (const L of l.mount) {
1700
+ const Q = T(s, L);
1701
+ if (Q && Q._f) {
1702
+ const re = Array.isArray(Q._f.refs) ? Q._f.refs[0] : Q._f.ref;
1703
+ if (ht(re)) {
1704
+ const ye = re.closest("form");
1705
1705
  if (ye) {
1706
1706
  ye.reset();
1707
1707
  break;
@@ -1709,8 +1709,8 @@ function Vn(r = {}) {
1709
1709
  }
1710
1710
  }
1711
1711
  }
1712
- for (const I of l.mount)
1713
- b(I, T(N, I));
1712
+ for (const L of l.mount)
1713
+ g(L, T(N, L));
1714
1714
  }
1715
1715
  a = he(N), h.array.next({
1716
1716
  values: { ...N }
@@ -1737,9 +1737,9 @@ function Vn(r = {}) {
1737
1737
  isSubmitting: !1
1738
1738
  });
1739
1739
  }, Kt = (u, x) => Jt(je(u) ? u(a) : u, x), Cs = (u, x = {}) => {
1740
- const y = T(s, u), C = y && y._f;
1741
- if (C) {
1742
- const S = C.refs ? C.refs[0] : C.ref;
1740
+ const b = T(s, u), A = b && b._f;
1741
+ if (A) {
1742
+ const S = A.refs ? A.refs[0] : A.ref;
1743
1743
  S.focus && (S.focus(), x.shouldSelect && je(S.select) && S.select());
1744
1744
  }
1745
1745
  }, As = (u) => {
@@ -1751,25 +1751,25 @@ function Vn(r = {}) {
1751
1751
  control: {
1752
1752
  register: de,
1753
1753
  unregister: ue,
1754
- getFieldState: U,
1754
+ getFieldState: P,
1755
1755
  handleSubmit: Xt,
1756
- setError: ee,
1756
+ setError: te,
1757
1757
  _subscribe: q,
1758
1758
  _runSchema: Y,
1759
- _getWatch: L,
1760
- _getDirty: M,
1759
+ _getWatch: M,
1760
+ _getDirty: R,
1761
1761
  _setValid: j,
1762
- _setFieldArray: v,
1762
+ _setFieldArray: y,
1763
1763
  _setDisabledField: H,
1764
1764
  _setErrors: F,
1765
- _getFieldArray: E,
1765
+ _getFieldArray: Z,
1766
1766
  _reset: Jt,
1767
1767
  _resetDefaultValues: () => je(e.defaultValues) && e.defaultValues().then((u) => {
1768
1768
  Kt(u, e.resetOptions), h.state.next({
1769
1769
  isLoading: !1
1770
1770
  });
1771
1771
  }),
1772
- _removeUnmounted: Z,
1772
+ _removeUnmounted: z,
1773
1773
  _disableForm: Ze,
1774
1774
  _subjects: h,
1775
1775
  _proxyFormState: d,
@@ -1812,15 +1812,15 @@ function Vn(r = {}) {
1812
1812
  register: de,
1813
1813
  handleSubmit: Xt,
1814
1814
  watch: ae,
1815
- setValue: b,
1815
+ setValue: g,
1816
1816
  getValues: w,
1817
1817
  reset: Kt,
1818
1818
  resetField: Os,
1819
1819
  clearErrors: G,
1820
1820
  unregister: ue,
1821
- setError: ee,
1821
+ setError: te,
1822
1822
  setFocus: Cs,
1823
- getFieldState: U
1823
+ getFieldState: P
1824
1824
  };
1825
1825
  return {
1826
1826
  ...Qt,
@@ -1930,13 +1930,13 @@ function In(r) {
1930
1930
  hasError: d = !1,
1931
1931
  errorMessage: m = "",
1932
1932
  disabled: h = !1,
1933
- className: g,
1933
+ className: v,
1934
1934
  onChange: k
1935
1935
  } = r, j = Ue(), _ = t || j;
1936
1936
  return /* @__PURE__ */ o.jsxs(
1937
1937
  "div",
1938
1938
  {
1939
- className: $("flex flex-col", g),
1939
+ className: $("flex flex-col", v),
1940
1940
  style: { width: l, maxWidth: "100%" },
1941
1941
  children: [
1942
1942
  c && /* @__PURE__ */ o.jsx(
@@ -1962,18 +1962,18 @@ function In(r) {
1962
1962
  control: e,
1963
1963
  rules: s,
1964
1964
  defaultValue: n,
1965
- render: ({ field: v, fieldState: p }) => vr(
1965
+ render: ({ field: y, fieldState: p }) => vr(
1966
1966
  _,
1967
1967
  a,
1968
1968
  i,
1969
1969
  {
1970
- value: v.value,
1971
- onChange: v.onChange,
1972
- onBlur: v.onBlur
1970
+ value: y.value,
1971
+ onChange: y.onChange,
1972
+ onBlur: y.onBlur
1973
1973
  },
1974
1974
  h,
1975
1975
  p.error,
1976
- g
1976
+ v
1977
1977
  )
1978
1978
  }
1979
1979
  )
@@ -1991,7 +1991,7 @@ function In(r) {
1991
1991
  },
1992
1992
  h,
1993
1993
  d ? { message: m } : void 0,
1994
- g
1994
+ v
1995
1995
  )
1996
1996
  )
1997
1997
  ]
@@ -2004,7 +2004,7 @@ const ki = ({
2004
2004
  align: t = "left",
2005
2005
  className: s
2006
2006
  }) => {
2007
- const [n, a] = Q(!1), i = _e(null), l = _e([]);
2007
+ const [n, a] = ee(!1), i = _e(null), l = _e([]);
2008
2008
  le(() => {
2009
2009
  const f = (d) => {
2010
2010
  i.current && !i.current.contains(d.target) && a(!1);
@@ -2014,18 +2014,18 @@ const ki = ({
2014
2014
  const c = (f) => {
2015
2015
  var m, h;
2016
2016
  const d = l.current.findIndex(
2017
- (g) => g === document.activeElement
2017
+ (v) => v === document.activeElement
2018
2018
  );
2019
2019
  if (f.key === "Escape")
2020
2020
  a(!1);
2021
2021
  else if (f.key === "ArrowDown") {
2022
2022
  f.preventDefault();
2023
- const g = (d + 1) % e.length;
2024
- (m = l.current[g]) == null || m.focus();
2023
+ const v = (d + 1) % e.length;
2024
+ (m = l.current[v]) == null || m.focus();
2025
2025
  } else if (f.key === "ArrowUp") {
2026
2026
  f.preventDefault();
2027
- const g = (d - 1 + e.length) % e.length;
2028
- (h = l.current[g]) == null || h.focus();
2027
+ const v = (d - 1 + e.length) % e.length;
2028
+ (h = l.current[v]) == null || h.focus();
2029
2029
  }
2030
2030
  };
2031
2031
  return /* @__PURE__ */ o.jsxs("div", { className: $("relative inline-block", s), ref: i, children: [
@@ -2052,22 +2052,22 @@ const ki = ({
2052
2052
  ),
2053
2053
  onKeyDown: c,
2054
2054
  children: e.map((f, d) => {
2055
- const { label: m, onSelect: h, disabled: g, icon: k } = f;
2055
+ const { label: m, onSelect: h, disabled: v, icon: k } = f;
2056
2056
  return /* @__PURE__ */ o.jsxs(
2057
2057
  "button",
2058
2058
  {
2059
2059
  role: "menuitem",
2060
2060
  type: "button",
2061
- disabled: g,
2061
+ disabled: v,
2062
2062
  ref: (j) => {
2063
2063
  l.current[d] = j;
2064
2064
  },
2065
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
- g ? "opacity-50 cursor-not-allowed" : "hover:bg-[var(--color-ds-background-surface)]"
2067
+ v ? "opacity-50 cursor-not-allowed" : "hover:bg-[var(--color-ds-background-surface)]"
2068
2068
  ),
2069
2069
  onClick: () => {
2070
- g || (h(), a(!1));
2070
+ v || (h(), a(!1));
2071
2071
  },
2072
2072
  children: [
2073
2073
  k && /* @__PURE__ */ o.jsx(k, { className: "w-5 h-5 mr-2 text-[var(--color-ds-text-secondary)]" }),
@@ -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 D, O, B, Y;
2174
+ var D, O, I, Y;
2175
2175
  const {
2176
2176
  i18n: t
2177
2177
  } = e, {
@@ -2180,8 +2180,8 @@ const Qn = (r, e) => {
2180
2180
  } = It(Jn) || {}, a = t || s || Xn();
2181
2181
  if (a && !a.reportNamespaces && (a.reportNamespaces = new Kn()), !a) {
2182
2182
  Ct(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
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
- return W.t = P, W.i18n = {}, W.ready = !1, W;
2183
+ const U = (z, R) => Ie(R) ? R : Bn(R) && Ie(R.defaultValue) ? R.defaultValue : Array.isArray(z) ? z[z.length - 1] : z, B = [U, {}, !1];
2184
+ return B.t = U, B.i18n = {}, B.ready = !1, B;
2185
2185
  }
2186
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 = {
@@ -2193,34 +2193,34 @@ const Qn = (r, e) => {
2193
2193
  keyPrefix: c
2194
2194
  } = i;
2195
2195
  let f = n || ((O = a.options) == null ? void 0 : O.defaultNS);
2196
- f = Ie(f) ? [f] : f || ["translation"], (Y = (B = a.reportNamespaces).addUsedNamespaces) == null || Y.call(B, f);
2197
- const d = (a.isInitialized || a.initializedStoreOnce) && f.every((P) => Un(P, a, i)), m = ea(a, e.lng || null, i.nsMode === "fallback" ? f : f[0], c), h = () => m, g = () => cs(a, e.lng || null, i.nsMode === "fallback" ? f : f[0], c), [k, j] = Q(h);
2196
+ f = Ie(f) ? [f] : f || ["translation"], (Y = (I = a.reportNamespaces).addUsedNamespaces) == null || Y.call(I, f);
2197
+ const d = (a.isInitialized || a.initializedStoreOnce) && f.every((U) => Un(U, a, i)), m = ea(a, e.lng || null, i.nsMode === "fallback" ? f : f[0], c), h = () => m, v = () => cs(a, e.lng || null, i.nsMode === "fallback" ? f : f[0], c), [k, j] = ee(h);
2198
2198
  let _ = f.join();
2199
2199
  e.lng && (_ = `${e.lng}${_}`);
2200
- const v = Qn(_), p = _e(!0);
2200
+ const y = Qn(_), p = _e(!0);
2201
2201
  le(() => {
2202
2202
  const {
2203
- bindI18n: P,
2204
- bindI18nStore: W
2203
+ bindI18n: U,
2204
+ bindI18nStore: B
2205
2205
  } = i;
2206
2206
  p.current = !0, !d && !l && (e.lng ? br(a, e.lng, f, () => {
2207
- p.current && j(g);
2207
+ p.current && j(v);
2208
2208
  }) : At(a, f, () => {
2209
- p.current && j(g);
2210
- })), d && v && v !== _ && p.current && j(g);
2211
- const Z = () => {
2212
- p.current && j(g);
2209
+ p.current && j(v);
2210
+ })), d && y && y !== _ && p.current && j(v);
2211
+ const z = () => {
2212
+ p.current && j(v);
2213
2213
  };
2214
- return P && (a == null || a.on(P, Z)), W && (a == null || a.store.on(W, Z)), () => {
2215
- p.current = !1, a && (P == null || P.split(" ").forEach((M) => a.off(M, Z))), W && a && W.split(" ").forEach((M) => a.store.off(M, Z));
2214
+ return U && (a == null || a.on(U, z)), B && (a == null || a.store.on(B, z)), () => {
2215
+ p.current = !1, a && (U == null || U.split(" ").forEach((R) => a.off(R, z))), B && a && B.split(" ").forEach((R) => a.store.off(R, z));
2216
2216
  };
2217
2217
  }, [a, _]), le(() => {
2218
2218
  p.current && d && j(h);
2219
2219
  }, [a, c, d]);
2220
2220
  const F = [k, a, d];
2221
2221
  if (F.t = k, F.i18n = a, F.ready = d, d || !d && !l) return F;
2222
- throw new Promise((P) => {
2223
- e.lng ? br(a, e.lng, f, () => P()) : At(a, f, () => P());
2222
+ throw new Promise((U) => {
2223
+ e.lng ? br(a, e.lng, f, () => U()) : At(a, f, () => U());
2224
2224
  });
2225
2225
  }, $t = {
2226
2226
  sm: "text-sm",
@@ -2231,7 +2231,7 @@ function wr(r, e, t, s, n, a, i, l, c) {
2231
2231
  const { t: f } = qt(), d = _e(null), m = typeof s == "number" && e.length >= s, h = () => {
2232
2232
  var p;
2233
2233
  !i && !m && ((p = d.current) == null || p.click());
2234
- }, g = (p) => {
2234
+ }, v = (p) => {
2235
2235
  const F = p.target.files;
2236
2236
  if (!F) return;
2237
2237
  const D = Array.from(F);
@@ -2247,7 +2247,7 @@ function wr(r, e, t, s, n, a, i, l, c) {
2247
2247
  }, _ = (p) => {
2248
2248
  const F = URL.createObjectURL(p);
2249
2249
  window.open(F);
2250
- }, v = (p) => {
2250
+ }, y = (p) => {
2251
2251
  const F = e.filter((D, O) => O !== p);
2252
2252
  t(F);
2253
2253
  };
@@ -2285,7 +2285,7 @@ function wr(r, e, t, s, n, a, i, l, c) {
2285
2285
  className: "hidden",
2286
2286
  multiple: s !== 1,
2287
2287
  accept: n,
2288
- onChange: g,
2288
+ onChange: v,
2289
2289
  disabled: i
2290
2290
  }
2291
2291
  ),
@@ -2331,7 +2331,7 @@ function wr(r, e, t, s, n, a, i, l, c) {
2331
2331
  size: "sm",
2332
2332
  icon: Pt,
2333
2333
  ariaLabel: f("ds.fileUploader.remove", "Remove"),
2334
- onClick: () => v(F)
2334
+ onClick: () => y(F)
2335
2335
  }
2336
2336
  )
2337
2337
  ] })
@@ -2356,7 +2356,7 @@ function ta(r) {
2356
2356
  labelHidden: d = !1,
2357
2357
  disabled: m = !1,
2358
2358
  hasError: h = !1,
2359
- errorMessage: g = "",
2359
+ errorMessage: v = "",
2360
2360
  className: k
2361
2361
  } = r, j = Ue(), _ = t || j;
2362
2362
  if (e && t)
@@ -2394,7 +2394,7 @@ function ta(r) {
2394
2394
  }
2395
2395
  )
2396
2396
  ] });
2397
- const [v, p] = Q(
2397
+ const [y, p] = ee(
2398
2398
  n instanceof FileList ? Array.from(n) : n || []
2399
2399
  );
2400
2400
  return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", k), style: { width: c }, children: [
@@ -2412,13 +2412,13 @@ function ta(r) {
2412
2412
  ),
2413
2413
  wr(
2414
2414
  _,
2415
- v,
2415
+ y,
2416
2416
  p,
2417
2417
  a,
2418
2418
  i,
2419
2419
  l,
2420
2420
  m,
2421
- h ? { message: g } : void 0,
2421
+ h ? { message: v } : void 0,
2422
2422
  k
2423
2423
  )
2424
2424
  ] });
@@ -2483,15 +2483,15 @@ function Ht({
2483
2483
  separator: d,
2484
2484
  suffixButton: m,
2485
2485
  disabled: h = !1,
2486
- control: g,
2486
+ control: v,
2487
2487
  name: k,
2488
2488
  rules: j,
2489
2489
  defaultValue: _,
2490
- loading: v = !1,
2490
+ loading: y = !1,
2491
2491
  className: p,
2492
2492
  ...F
2493
2493
  }) {
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 = $(
2494
+ const D = Ue(), [O, I] = ee(!1), Y = r || D, U = e === "password", z = c ?? (e === "number" ? on : void 0), R = U ? O ? sn : zr : f, M = $(
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],
@@ -2503,7 +2503,7 @@ function Ht({
2503
2503
  "disabled:text-[var(--color-ds-text-disabled)]",
2504
2504
  "disabled:cursor-not-allowed"
2505
2505
  );
2506
- return v ? /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s, maxWidth: "100%" }, children: [
2506
+ return y ? /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s, maxWidth: "100%" }, children: [
2507
2507
  !a && n && /* @__PURE__ */ o.jsx("label", { htmlFor: Y, className: $("pb-2", nt[t]), children: n }),
2508
2508
  /* @__PURE__ */ o.jsx(
2509
2509
  He,
@@ -2515,17 +2515,17 @@ function Ht({
2515
2515
  }
2516
2516
  ),
2517
2517
  /* @__PURE__ */ o.jsx("div", { className: "min-h-[18px] w-full", children: /* @__PURE__ */ o.jsx("span", { "aria-hidden": "true", children: " " }) })
2518
- ] }) : g && k ? /* @__PURE__ */ o.jsx(
2518
+ ] }) : v && k ? /* @__PURE__ */ o.jsx(
2519
2519
  ke,
2520
2520
  {
2521
2521
  name: k,
2522
- control: g,
2522
+ control: v,
2523
2523
  rules: j,
2524
2524
  defaultValue: _,
2525
- render: ({ field: E, fieldState: V }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
2525
+ render: ({ field: Z, fieldState: E }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
2526
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
- Z && /* @__PURE__ */ o.jsx(
2528
+ z && /* @__PURE__ */ o.jsx(
2529
2529
  "div",
2530
2530
  {
2531
2531
  className: $(
@@ -2535,7 +2535,7 @@ function Ht({
2535
2535
  children: /* @__PURE__ */ o.jsx(
2536
2536
  Oe,
2537
2537
  {
2538
- component: Z,
2538
+ component: z,
2539
2539
  size: t,
2540
2540
  className: "text-[var(--color-ds-text-secondary)]"
2541
2541
  }
@@ -2545,19 +2545,19 @@ function Ht({
2545
2545
  /* @__PURE__ */ o.jsx(
2546
2546
  "input",
2547
2547
  {
2548
- ...E,
2548
+ ...Z,
2549
2549
  id: Y,
2550
- type: P ? O ? "text" : "password" : e,
2550
+ type: U ? O ? "text" : "password" : e,
2551
2551
  disabled: h,
2552
- "aria-invalid": !!V.error,
2552
+ "aria-invalid": !!E.error,
2553
2553
  className: $(
2554
- L,
2555
- Z && "pl-9",
2556
- M && "pr-9",
2554
+ M,
2555
+ z && "pl-9",
2556
+ R && "pr-9",
2557
2557
  p
2558
2558
  ),
2559
- onInvalid: (A) => A.preventDefault(),
2560
- style: P && !O ? {
2559
+ onInvalid: (C) => C.preventDefault(),
2560
+ style: U && !O ? {
2561
2561
  WebkitTextSecurity: "disc",
2562
2562
  MozTextSecurity: "disc"
2563
2563
  } : void 0
@@ -2565,17 +2565,17 @@ function Ht({
2565
2565
  ),
2566
2566
  d && /* @__PURE__ */ o.jsx("div", { className: "flex items-center h-full", children: d }),
2567
2567
  m && /* @__PURE__ */ o.jsx("div", { className: "flex items-center h-full pr-2", children: m }),
2568
- M && /* @__PURE__ */ o.jsx(
2568
+ R && /* @__PURE__ */ o.jsx(
2569
2569
  "button",
2570
2570
  {
2571
2571
  type: "button",
2572
- onClick: () => B((A) => !A),
2572
+ onClick: () => I((C) => !C),
2573
2573
  className: "absolute right-0 flex items-center h-full pr-2",
2574
2574
  tabIndex: -1,
2575
2575
  children: /* @__PURE__ */ o.jsx(
2576
2576
  Oe,
2577
2577
  {
2578
- component: M,
2578
+ component: R,
2579
2579
  size: t,
2580
2580
  className: "text-[var(--color-ds-text-secondary)]"
2581
2581
  }
@@ -2583,13 +2583,13 @@ function Ht({
2583
2583
  }
2584
2584
  )
2585
2585
  ] }),
2586
- /* @__PURE__ */ o.jsx("div", { className: "min-h-[18px]", children: V.error ? /* @__PURE__ */ o.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: V.error.message }) : /* @__PURE__ */ o.jsx("span", { "aria-hidden": "true", children: " " }) })
2586
+ /* @__PURE__ */ o.jsx("div", { className: "min-h-[18px]", children: E.error ? /* @__PURE__ */ o.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: E.error.message }) : /* @__PURE__ */ o.jsx("span", { "aria-hidden": "true", children: " " }) })
2587
2587
  ] })
2588
2588
  }
2589
2589
  ) : /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
2590
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
- Z && /* @__PURE__ */ o.jsx(
2592
+ z && /* @__PURE__ */ o.jsx(
2593
2593
  "div",
2594
2594
  {
2595
2595
  className: $(
@@ -2599,7 +2599,7 @@ function Ht({
2599
2599
  children: /* @__PURE__ */ o.jsx(
2600
2600
  Oe,
2601
2601
  {
2602
- component: Z,
2602
+ component: z,
2603
2603
  size: t,
2604
2604
  className: "text-[var(--color-ds-text-secondary)]"
2605
2605
  }
@@ -2611,17 +2611,17 @@ function Ht({
2611
2611
  {
2612
2612
  ...F,
2613
2613
  id: Y,
2614
- type: P ? O ? "text" : "password" : e,
2614
+ type: U ? O ? "text" : "password" : e,
2615
2615
  disabled: h,
2616
2616
  "aria-invalid": i,
2617
2617
  className: $(
2618
- L,
2619
- Z && "pl-9",
2620
- M && "pr-9",
2618
+ M,
2619
+ z && "pl-9",
2620
+ R && "pr-9",
2621
2621
  p
2622
2622
  ),
2623
- onInvalid: (E) => E.preventDefault(),
2624
- style: P && !O ? {
2623
+ onInvalid: (Z) => Z.preventDefault(),
2624
+ style: U && !O ? {
2625
2625
  WebkitTextSecurity: "disc",
2626
2626
  MozTextSecurity: "disc"
2627
2627
  } : void 0
@@ -2629,17 +2629,17 @@ function Ht({
2629
2629
  ),
2630
2630
  d && /* @__PURE__ */ o.jsx("div", { className: "flex items-center h-full", children: d }),
2631
2631
  m && /* @__PURE__ */ o.jsx("div", { className: "flex items-center h-full", children: m }),
2632
- M && /* @__PURE__ */ o.jsx(
2632
+ R && /* @__PURE__ */ o.jsx(
2633
2633
  "button",
2634
2634
  {
2635
2635
  type: "button",
2636
- onClick: () => B((E) => !E),
2636
+ onClick: () => I((Z) => !Z),
2637
2637
  className: "absolute right-0 flex items-center h-full pr-2",
2638
2638
  tabIndex: -1,
2639
2639
  children: /* @__PURE__ */ o.jsx(
2640
2640
  Oe,
2641
2641
  {
2642
- component: M,
2642
+ component: R,
2643
2643
  size: t,
2644
2644
  className: "text-[var(--color-ds-text-secondary)]"
2645
2645
  }
@@ -2660,26 +2660,26 @@ const aa = {
2660
2660
  position: t = "top",
2661
2661
  className: s
2662
2662
  }) => {
2663
- const [n, a] = Q(!1), [i, l] = Q({ x: 0, y: 0 }), c = _e(null), f = Ue();
2663
+ const [n, a] = ee(!1), [i, l] = ee({ x: 0, y: 0 }), c = _e(null), f = Ue();
2664
2664
  le(() => {
2665
2665
  if (n && c.current) {
2666
2666
  const h = c.current.getBoundingClientRect();
2667
- let g = 0, k = 0;
2667
+ let v = 0, k = 0;
2668
2668
  switch (t) {
2669
2669
  case "top":
2670
- g = h.left + h.width / 2 - Et / 2, k = h.top - at;
2670
+ v = h.left + h.width / 2 - Et / 2, k = h.top - at;
2671
2671
  break;
2672
2672
  case "bottom":
2673
- g = h.left + h.width / 2 - Et / 2, k = h.bottom + at;
2673
+ v = h.left + h.width / 2 - Et / 2, k = h.bottom + at;
2674
2674
  break;
2675
2675
  case "left":
2676
- g = h.left - Et - at, k = h.top + h.height / 2;
2676
+ v = h.left - Et - at, k = h.top + h.height / 2;
2677
2677
  break;
2678
2678
  case "right":
2679
- g = h.right + at, k = h.top + h.height / 2;
2679
+ v = h.right + at, k = h.top + h.height / 2;
2680
2680
  break;
2681
2681
  }
2682
- l({ x: g, y: k });
2682
+ l({ x: v, y: k });
2683
2683
  }
2684
2684
  }, [n, t]);
2685
2685
  const d = () => typeof r == "string" ? /* @__PURE__ */ o.jsx("div", { dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: r }), m = n ? /* @__PURE__ */ o.jsx(
@@ -2738,7 +2738,7 @@ function oa({
2738
2738
  const {
2739
2739
  control: d,
2740
2740
  formState: { errors: m }
2741
- } = bt(), h = !!m[r], g = ((_ = m[r]) == null ? void 0 : _.message) || "", k = "relative", j = n ?? "w-full";
2741
+ } = bt(), h = !!m[r], v = ((_ = m[r]) == null ? void 0 : _.message) || "", k = "relative", j = n ?? "w-full";
2742
2742
  return /* @__PURE__ */ o.jsxs("div", { className: k, children: [
2743
2743
  /* @__PURE__ */ o.jsx(
2744
2744
  ke,
@@ -2746,7 +2746,7 @@ function oa({
2746
2746
  name: r,
2747
2747
  control: d,
2748
2748
  rules: i,
2749
- render: ({ field: v }) => /* @__PURE__ */ o.jsx(
2749
+ render: ({ field: y }) => /* @__PURE__ */ o.jsx(
2750
2750
  Ht,
2751
2751
  {
2752
2752
  label: e,
@@ -2754,10 +2754,10 @@ function oa({
2754
2754
  width: j,
2755
2755
  placeholder: a,
2756
2756
  hasError: h,
2757
- errorMessage: g,
2757
+ errorMessage: v,
2758
2758
  loading: l,
2759
2759
  type: t,
2760
- ...v,
2760
+ ...y,
2761
2761
  disabled: c
2762
2762
  }
2763
2763
  )
@@ -2806,14 +2806,14 @@ function la({
2806
2806
  onChange: t,
2807
2807
  children: s
2808
2808
  }) {
2809
- const n = _e(null), [a, i] = Q({ left: 0, width: 0 });
2809
+ const n = _e(null), [a, i] = ee({ left: 0, width: 0 });
2810
2810
  return Pr(() => {
2811
2811
  const l = n.current;
2812
2812
  if (!l) return;
2813
2813
  const c = () => {
2814
2814
  const f = r.findIndex((_) => _.value === e);
2815
2815
  if (f < 0) return;
2816
- const d = l.children[f], m = d.querySelector("span"), h = (m == null ? void 0 : m.offsetWidth) ?? d.offsetWidth, g = d.offsetWidth, j = d.offsetLeft + (g - h) / 2;
2816
+ const d = l.children[f], m = d.querySelector("span"), h = (m == null ? void 0 : m.offsetWidth) ?? d.offsetWidth, v = d.offsetWidth, j = d.offsetLeft + (v - h) / 2;
2817
2817
  i({ left: j, width: h });
2818
2818
  };
2819
2819
  return c(), window.addEventListener("resize", c), l.addEventListener("scroll", c), () => {
@@ -2922,22 +2922,22 @@ function pt(r) {
2922
2922
  size: d = "sm",
2923
2923
  width: m = "100%",
2924
2924
  label: h,
2925
- labelHidden: g = !1,
2925
+ labelHidden: v = !1,
2926
2926
  hasError: k = !1,
2927
2927
  errorMessage: j = "",
2928
2928
  disableErrorPlaceholder: _ = !1,
2929
- disabled: v = !1,
2929
+ disabled: y = !1,
2930
2930
  className: p,
2931
2931
  suffixButton: F
2932
- } = r, D = Ue(), O = t || D, [B, Y] = Q(a), [P, W] = Q(!!i);
2932
+ } = r, D = Ue(), O = t || D, [I, Y] = ee(a), [U, B] = ee(!!i);
2933
2933
  if (le(() => {
2934
- i && (W(!0), i().then((Z) => Y(Z)).finally(() => W(!1)));
2934
+ i && (B(!0), i().then((z) => Y(z)).finally(() => B(!1)));
2935
2935
  }, [i, ...l]), le(() => {
2936
- !e && B.length > 0 && (c === void 0 || c === "" || !B.some((Z) => Z.value === c)) && (f == null || f(B[0].value));
2937
- }, [B, c, f, e]), e && t) {
2936
+ !e && I.length > 0 && (c === void 0 || c === "" || !I.some((z) => z.value === c)) && (f == null || f(I[0].value));
2937
+ }, [I, c, f, e]), e && t) {
2938
2938
  const {
2939
- field: Z,
2940
- fieldState: M
2939
+ field: z,
2940
+ fieldState: R
2941
2941
  } = Qr({
2942
2942
  name: t,
2943
2943
  control: e,
@@ -2945,11 +2945,11 @@ function pt(r) {
2945
2945
  defaultValue: n
2946
2946
  });
2947
2947
  return le(() => {
2948
- if (!P && B.length > 0) {
2949
- const L = Z.value;
2950
- (L === void 0 || !B.some((E) => E.value === L)) && Z.onChange(B[0].value);
2948
+ if (!U && I.length > 0) {
2949
+ const M = z.value;
2950
+ (M === void 0 || !I.some((Z) => Z.value === M)) && z.onChange(I[0].value);
2951
2951
  }
2952
- }, [B, P, Z]), /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", p), style: { width: m, maxWidth: "100%" }, children: [
2952
+ }, [I, U, 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
  {
@@ -2957,12 +2957,12 @@ function pt(r) {
2957
2957
  className: $(
2958
2958
  "pb-2 text-[var(--color-ds-text-primary)]",
2959
2959
  Dt[d],
2960
- g && "sr-only"
2960
+ v && "sr-only"
2961
2961
  ),
2962
2962
  children: h
2963
2963
  }
2964
2964
  ),
2965
- P ? /* @__PURE__ */ o.jsx(
2965
+ U ? /* @__PURE__ */ o.jsx(
2966
2966
  He,
2967
2967
  {
2968
2968
  width: "100%",
@@ -2972,14 +2972,14 @@ function pt(r) {
2972
2972
  }
2973
2973
  ) : Er(
2974
2974
  O,
2975
- B,
2975
+ I,
2976
2976
  d,
2977
2977
  {
2978
- value: Z.value,
2979
- onChange: (L) => Z.onChange(L.target.value)
2978
+ value: z.value,
2979
+ onChange: (M) => z.onChange(M.target.value)
2980
2980
  },
2981
- v,
2982
- M.error,
2981
+ y,
2982
+ R.error,
2983
2983
  _,
2984
2984
  p,
2985
2985
  F
@@ -2994,12 +2994,12 @@ function pt(r) {
2994
2994
  className: $(
2995
2995
  "pb-2 text-[var(--color-ds-text-primary)]",
2996
2996
  Dt[d],
2997
- g && "sr-only"
2997
+ v && "sr-only"
2998
2998
  ),
2999
2999
  children: h
3000
3000
  }
3001
3001
  ),
3002
- P ? /* @__PURE__ */ o.jsx(
3002
+ U ? /* @__PURE__ */ o.jsx(
3003
3003
  He,
3004
3004
  {
3005
3005
  width: "100%",
@@ -3009,13 +3009,13 @@ function pt(r) {
3009
3009
  }
3010
3010
  ) : Er(
3011
3011
  O,
3012
- B,
3012
+ I,
3013
3013
  d,
3014
3014
  {
3015
3015
  value: c,
3016
- onChange: (Z) => f == null ? void 0 : f(Z.target.value)
3016
+ onChange: (z) => f == null ? void 0 : f(z.target.value)
3017
3017
  },
3018
- v,
3018
+ y,
3019
3019
  k ? { message: j } : void 0,
3020
3020
  _,
3021
3021
  p,
@@ -3051,16 +3051,16 @@ function da({
3051
3051
  const {
3052
3052
  width: m,
3053
3053
  className: h,
3054
- options: g,
3054
+ options: v,
3055
3055
  loadOptions: k,
3056
3056
  ...j
3057
- } = f, _ = Array.isArray(g) || typeof k == "function";
3058
- let v = "rounded-lg";
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");
3057
+ } = f, _ = Array.isArray(v) || typeof k == "function";
3058
+ let y = "rounded-lg";
3059
+ !s && c > 1 && (d === 0 ? y = "rounded-l-lg rounded-r-none" : d === c - 1 ? y = "rounded-r-lg rounded-l-none" : y = "rounded-none");
3060
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, D = $(h, v);
3063
+ ), F = typeof m == "string" && !m.startsWith("w-") ? { width: m } : void 0, D = $(h, y);
3064
3064
  return /* @__PURE__ */ o.jsxs("div", { className: p, style: F, children: [
3065
3065
  _ ? /* @__PURE__ */ o.jsx(
3066
3066
  pt,
@@ -3068,7 +3068,7 @@ function da({
3068
3068
  ...j,
3069
3069
  size: i,
3070
3070
  className: D,
3071
- options: g,
3071
+ options: v,
3072
3072
  loadOptions: k
3073
3073
  }
3074
3074
  ) : /* @__PURE__ */ o.jsx(
@@ -3116,14 +3116,14 @@ function ha({
3116
3116
  rules: n,
3117
3117
  defaultValue: a,
3118
3118
  render: ({ field: m, fieldState: h }) => {
3119
- const { value: g, onChange: k } = m;
3119
+ const { value: v, onChange: k } = m;
3120
3120
  h.error;
3121
- const j = (v) => i ? Array.isArray(g) && g.includes(v) : g === v, _ = (v) => {
3121
+ const j = (y) => i ? Array.isArray(v) && v.includes(y) : v === y, _ = (y) => {
3122
3122
  if (i) {
3123
- const p = Array.isArray(g) ? [...g] : [], F = p.indexOf(v);
3124
- F >= 0 ? p.splice(F, 1) : p.push(v), k(p);
3123
+ const p = Array.isArray(v) ? [...v] : [], F = p.indexOf(y);
3124
+ F >= 0 ? p.splice(F, 1) : p.push(y), k(p);
3125
3125
  } else
3126
- k(v);
3126
+ k(y);
3127
3127
  };
3128
3128
  return /* @__PURE__ */ o.jsxs("div", { className: $("w-full", f), children: [
3129
3129
  /* @__PURE__ */ o.jsx(
@@ -3152,7 +3152,7 @@ function ha({
3152
3152
  className: $(
3153
3153
  c ? "flex flex-col gap-2" : "flex flex-wrap gap-4"
3154
3154
  ),
3155
- children: e.map((v) => /* @__PURE__ */ o.jsxs(
3155
+ children: e.map((y) => /* @__PURE__ */ o.jsxs(
3156
3156
  "label",
3157
3157
  {
3158
3158
  className: "inline-flex items-center space-x-2 cursor-pointer select-none",
@@ -3162,9 +3162,9 @@ function ha({
3162
3162
  {
3163
3163
  type: i ? "checkbox" : "radio",
3164
3164
  name: s,
3165
- value: v.value,
3166
- checked: j(v.value),
3167
- onChange: () => _(v.value),
3165
+ value: y.value,
3166
+ checked: j(y.value),
3167
+ onChange: () => _(y.value),
3168
3168
  className: $(
3169
3169
  fa[l],
3170
3170
  "text-[var(--color-ds-button-primary-bg)]",
@@ -3172,10 +3172,10 @@ function ha({
3172
3172
  )
3173
3173
  }
3174
3174
  ),
3175
- /* @__PURE__ */ o.jsx("span", { className: "text-[var(--color-ds-text-primary)] text-ds-md", children: v.label })
3175
+ /* @__PURE__ */ o.jsx("span", { className: "text-[var(--color-ds-text-primary)] text-ds-md", children: y.label })
3176
3176
  ]
3177
3177
  },
3178
- v.value
3178
+ y.value
3179
3179
  ))
3180
3180
  }
3181
3181
  )
@@ -3267,7 +3267,7 @@ const ds = Lt(null), ja = () => {
3267
3267
  if (!r) throw new Error("useToast debe usarse dentro de <ToastProvider>");
3268
3268
  return r;
3269
3269
  }, Ni = ({ children: r }) => {
3270
- const [e, t] = Q([]), s = (a, i = "info", l = 5e3) => {
3270
+ const [e, t] = ee([]), s = (a, i = "info", l = 5e3) => {
3271
3271
  const c = wa();
3272
3272
  t((f) => [...f, { id: c, message: a, variant: i, duration: l }]);
3273
3273
  }, n = (a) => {
@@ -3304,8 +3304,8 @@ const ds = Lt(null), ja = () => {
3304
3304
  const n = T(e.fields, s), a = Object.assign(r[s] || {}, { ref: n && n.ref });
3305
3305
  if (Ea(e.names || Object.keys(r), s)) {
3306
3306
  const i = Object.assign({}, T(t, s));
3307
- J(i, "root", a), J(t, s, i);
3308
- } else J(t, s, a);
3307
+ K(i, "root", a), K(t, s, i);
3308
+ } else K(t, s, a);
3309
3309
  }
3310
3310
  return t;
3311
3311
  }, Ea = (r, e) => {
@@ -3347,78 +3347,78 @@ var Nt, Cr;
3347
3347
  function Na() {
3348
3348
  if (Cr) return Nt;
3349
3349
  Cr = 1;
3350
- function r(v) {
3351
- this._maxSize = v, this.clear();
3350
+ function r(y) {
3351
+ this._maxSize = y, this.clear();
3352
3352
  }
3353
3353
  r.prototype.clear = function() {
3354
3354
  this._size = 0, this._values = /* @__PURE__ */ Object.create(null);
3355
- }, r.prototype.get = function(v) {
3356
- return this._values[v];
3357
- }, r.prototype.set = function(v, p) {
3358
- return this._size >= this._maxSize && this.clear(), v in this._values || this._size++, this._values[v] = p;
3355
+ }, r.prototype.get = function(y) {
3356
+ return this._values[y];
3357
+ }, r.prototype.set = function(y, p) {
3358
+ return this._size >= this._maxSize && this.clear(), y in this._values || this._size++, this._values[y] = p;
3359
3359
  };
3360
3360
  var e = /[^.^\]^[]+|(?=\[\]|\.\.)/g, t = /^\d+$/, s = /^\d/, n = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, i = 512, l = new r(i), c = new r(i), f = new r(i);
3361
3361
  Nt = {
3362
3362
  Cache: r,
3363
3363
  split: m,
3364
3364
  normalizePath: d,
3365
- setter: function(v) {
3366
- var p = d(v);
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
- var W = p[B];
3370
- if (W === "__proto__" || W === "constructor" || W === "prototype")
3365
+ setter: function(y) {
3366
+ var p = d(y);
3367
+ return c.get(y) || c.set(y, function(D, O) {
3368
+ for (var I = 0, Y = p.length, U = D; I < Y - 1; ) {
3369
+ var B = p[I];
3370
+ if (B === "__proto__" || B === "constructor" || B === "prototype")
3371
3371
  return D;
3372
- P = P[p[B++]];
3372
+ U = U[p[I++]];
3373
3373
  }
3374
- P[p[B]] = O;
3374
+ U[p[I]] = O;
3375
3375
  });
3376
3376
  },
3377
- getter: function(v, p) {
3378
- var F = d(v);
3379
- return f.get(v) || f.set(v, function(O) {
3380
- for (var B = 0, Y = F.length; B < Y; )
3381
- if (O != null || !p) O = O[F[B++]];
3377
+ getter: function(y, p) {
3378
+ var F = d(y);
3379
+ return f.get(y) || f.set(y, function(O) {
3380
+ for (var I = 0, Y = F.length; I < Y; )
3381
+ if (O != null || !p) O = O[F[I++]];
3382
3382
  else return;
3383
3383
  return O;
3384
3384
  });
3385
3385
  },
3386
- join: function(v) {
3387
- return v.reduce(function(p, F) {
3388
- return p + (g(F) || t.test(F) ? "[" + F + "]" : (p ? "." : "") + F);
3386
+ join: function(y) {
3387
+ return y.reduce(function(p, F) {
3388
+ return p + (v(F) || t.test(F) ? "[" + F + "]" : (p ? "." : "") + F);
3389
3389
  }, "");
3390
3390
  },
3391
- forEach: function(v, p, F) {
3392
- h(Array.isArray(v) ? v : m(v), p, F);
3391
+ forEach: function(y, p, F) {
3392
+ h(Array.isArray(y) ? y : m(y), p, F);
3393
3393
  }
3394
3394
  };
3395
- function d(v) {
3396
- return l.get(v) || l.set(
3397
- v,
3398
- m(v).map(function(p) {
3395
+ function d(y) {
3396
+ return l.get(y) || l.set(
3397
+ y,
3398
+ m(y).map(function(p) {
3399
3399
  return p.replace(a, "$2");
3400
3400
  })
3401
3401
  );
3402
3402
  }
3403
- function m(v) {
3404
- return v.match(e) || [""];
3403
+ function m(y) {
3404
+ return y.match(e) || [""];
3405
3405
  }
3406
- function h(v, p, F) {
3407
- var D = v.length, O, B, Y, P;
3408
- for (B = 0; B < D; B++)
3409
- O = v[B], O && (_(O) && (O = '"' + O + '"'), P = g(O), Y = !P && /^\d+$/.test(O), p.call(F, O, P, Y, B, v));
3406
+ function h(y, p, F) {
3407
+ var D = y.length, O, I, Y, U;
3408
+ for (I = 0; I < D; I++)
3409
+ O = y[I], O && (_(O) && (O = '"' + O + '"'), U = v(O), Y = !U && /^\d+$/.test(O), p.call(F, O, U, Y, I, y));
3410
3410
  }
3411
- function g(v) {
3412
- return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
3411
+ function v(y) {
3412
+ return typeof y == "string" && y && ["'", '"'].indexOf(y.charAt(0)) !== -1;
3413
3413
  }
3414
- function k(v) {
3415
- return v.match(s) && !v.match(t);
3414
+ function k(y) {
3415
+ return y.match(s) && !y.match(t);
3416
3416
  }
3417
- function j(v) {
3418
- return n.test(v);
3417
+ function j(y) {
3418
+ return n.test(y);
3419
3419
  }
3420
- function _(v) {
3421
- return !g(v) && (k(v) || j(v));
3420
+ function _(y) {
3421
+ return !v(y) && (k(y) || j(y));
3422
3422
  }
3423
3423
  return Nt;
3424
3424
  }
@@ -3449,36 +3449,36 @@ function Fa() {
3449
3449
  }, ot.exports.array = r;
3450
3450
  function r(n, a) {
3451
3451
  var i = n.length, l = new Array(i), c = {}, f = i, d = t(a), m = s(n);
3452
- for (a.forEach(function(g) {
3453
- if (!m.has(g[0]) || !m.has(g[1]))
3452
+ for (a.forEach(function(v) {
3453
+ if (!m.has(v[0]) || !m.has(v[1]))
3454
3454
  throw new Error("Unknown node. There is an unknown node in the supplied edges.");
3455
3455
  }); f--; )
3456
3456
  c[f] || h(n[f], f, /* @__PURE__ */ new Set());
3457
3457
  return l;
3458
- function h(g, k, j) {
3459
- if (j.has(g)) {
3458
+ function h(v, k, j) {
3459
+ if (j.has(v)) {
3460
3460
  var _;
3461
3461
  try {
3462
- _ = ", node was:" + JSON.stringify(g);
3462
+ _ = ", node was:" + JSON.stringify(v);
3463
3463
  } catch {
3464
3464
  _ = "";
3465
3465
  }
3466
3466
  throw new Error("Cyclic dependency" + _);
3467
3467
  }
3468
- if (!m.has(g))
3469
- throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(g));
3468
+ if (!m.has(v))
3469
+ throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(v));
3470
3470
  if (!c[k]) {
3471
3471
  c[k] = !0;
3472
- var v = d.get(g) || /* @__PURE__ */ new Set();
3473
- if (v = Array.from(v), k = v.length) {
3474
- j.add(g);
3472
+ var y = d.get(v) || /* @__PURE__ */ new Set();
3473
+ if (y = Array.from(y), k = y.length) {
3474
+ j.add(v);
3475
3475
  do {
3476
- var p = v[--k];
3476
+ var p = y[--k];
3477
3477
  h(p, m.get(p), j);
3478
3478
  } while (k);
3479
- j.delete(g);
3479
+ j.delete(v);
3480
3480
  }
3481
- l[--i] = g;
3481
+ l[--i] = v;
3482
3482
  }
3483
3483
  }
3484
3484
  }
@@ -3726,29 +3726,29 @@ function We(r) {
3726
3726
  test: d,
3727
3727
  params: m,
3728
3728
  message: h,
3729
- skipAbsent: g
3729
+ skipAbsent: v
3730
3730
  } = r;
3731
3731
  let {
3732
3732
  parent: k,
3733
3733
  context: j,
3734
3734
  abortEarly: _ = i.spec.abortEarly,
3735
- disableStackTrace: v = i.spec.disableStackTrace
3735
+ disableStackTrace: y = i.spec.disableStackTrace
3736
3736
  } = n;
3737
- function p(M) {
3738
- return Be.isRef(M) ? M.getValue(t, k, j) : M;
3737
+ function p(R) {
3738
+ return Be.isRef(R) ? R.getValue(t, k, j) : R;
3739
3739
  }
3740
- function F(M = {}) {
3741
- const L = Object.assign({
3740
+ function F(R = {}) {
3741
+ const M = Object.assign({
3742
3742
  value: t,
3743
3743
  originalValue: a,
3744
3744
  label: i.spec.label,
3745
- path: M.path || s,
3745
+ path: R.path || s,
3746
3746
  spec: i.spec,
3747
- disableStackTrace: M.disableStackTrace || v
3748
- }, m, M.params);
3749
- for (const V of Object.keys(L)) L[V] = p(L[V]);
3750
- const E = new ge(ge.formatError(M.message || h, L), t, L.path, M.type || f, L.disableStackTrace);
3751
- return E.params = L, E;
3747
+ disableStackTrace: R.disableStackTrace || y
3748
+ }, m, R.params);
3749
+ for (const E of Object.keys(M)) M[E] = p(M[E]);
3750
+ const Z = new ge(ge.formatError(R.message || h, M), t, M.path, R.type || f, M.disableStackTrace);
3751
+ return Z.params = M, Z;
3752
3752
  }
3753
3753
  const D = _ ? l : c;
3754
3754
  let O = {
@@ -3762,26 +3762,26 @@ function We(r) {
3762
3762
  originalValue: a,
3763
3763
  schema: i
3764
3764
  };
3765
- const B = (M) => {
3766
- ge.isError(M) ? D(M) : M ? c(null) : D(F());
3767
- }, Y = (M) => {
3768
- ge.isError(M) ? D(M) : l(M);
3765
+ const I = (R) => {
3766
+ ge.isError(R) ? D(R) : R ? c(null) : D(F());
3767
+ }, Y = (R) => {
3768
+ ge.isError(R) ? D(R) : l(R);
3769
3769
  };
3770
- if (g && Ce(t))
3771
- return B(!0);
3772
- let W;
3770
+ if (v && Ce(t))
3771
+ return I(!0);
3772
+ let B;
3773
3773
  try {
3774
- var Z;
3775
- if (W = d.call(O, t, O), typeof ((Z = W) == null ? void 0 : Z.then) == "function") {
3774
+ var z;
3775
+ if (B = d.call(O, t, O), typeof ((z = B) == null ? void 0 : z.then) == "function") {
3776
3776
  if (n.sync)
3777
3777
  throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
3778
- return Promise.resolve(W).then(B, Y);
3778
+ return Promise.resolve(B).then(I, Y);
3779
3779
  }
3780
- } catch (M) {
3781
- Y(M);
3780
+ } catch (R) {
3781
+ Y(R);
3782
3782
  return;
3783
3783
  }
3784
- B(W);
3784
+ I(B);
3785
3785
  }
3786
3786
  return e.OPTIONS = r, e;
3787
3787
  }
@@ -4002,7 +4002,7 @@ attempted value: ${i}
4002
4002
  n || (n = !0, t(j, i));
4003
4003
  }, m = (j) => {
4004
4004
  n || (n = !0, s(j, i));
4005
- }, h = a.length, g = [];
4005
+ }, h = a.length, v = [];
4006
4006
  if (!h) return m([]);
4007
4007
  let k = {
4008
4008
  value: i,
@@ -4014,7 +4014,7 @@ attempted value: ${i}
4014
4014
  for (let j = 0; j < a.length; j++) {
4015
4015
  const _ = a[j];
4016
4016
  _(k, d, function(p) {
4017
- p && (Array.isArray(p) ? g.push(...p) : g.push(p)), --h <= 0 && m(g);
4017
+ p && (Array.isArray(p) ? v.push(...p) : v.push(p)), --h <= 0 && m(v);
4018
4018
  });
4019
4019
  }
4020
4020
  }
@@ -4046,7 +4046,7 @@ attempted value: ${i}
4046
4046
  [c ? "index" : "key"]: l,
4047
4047
  path: c || l.includes(".") ? `${n || ""}[${c ? l : `"${l}"`}]` : (n ? `${n}.` : "") + e
4048
4048
  });
4049
- return (m, h, g) => this.resolve(d)._validate(f, d, h, g);
4049
+ return (m, h, v) => this.resolve(d)._validate(f, d, h, v);
4050
4050
  }
4051
4051
  validate(e, t) {
4052
4052
  var s;
@@ -4765,7 +4765,7 @@ class Ns extends be {
4765
4765
  __validating: t.__validating || !1
4766
4766
  }), d = !1;
4767
4767
  for (const m of l) {
4768
- let h = a[m], g = m in n;
4768
+ let h = a[m], v = m in n;
4769
4769
  if (h) {
4770
4770
  let k, j = n[m];
4771
4771
  f.path = (t.path ? `${t.path}.` : "") + m, h = h.resolve({
@@ -4773,17 +4773,17 @@ class Ns extends be {
4773
4773
  context: t.context,
4774
4774
  parent: c
4775
4775
  });
4776
- let _ = h instanceof be ? h.spec : void 0, v = _ == null ? void 0 : _.strict;
4776
+ let _ = h instanceof be ? h.spec : void 0, y = _ == null ? void 0 : _.strict;
4777
4777
  if (_ != null && _.strip) {
4778
4778
  d = d || m in n;
4779
4779
  continue;
4780
4780
  }
4781
- k = !t.__validating || !v ? (
4781
+ k = !t.__validating || !y ? (
4782
4782
  // TODO: use _cast, this is double resolving
4783
4783
  h.cast(n[m], f)
4784
4784
  ) : n[m], k !== void 0 && (c[m] = k);
4785
- } else g && !i && (c[m] = n[m]);
4786
- (g !== m in c || c[m] !== n[m]) && (d = !0);
4785
+ } else v && !i && (c[m] = n[m]);
4786
+ (v !== m in c || c[m] !== n[m]) && (d = !0);
4787
4787
  }
4788
4788
  return d ? c : n;
4789
4789
  }
@@ -4990,8 +4990,8 @@ function ai({
4990
4990
  case "password":
4991
4991
  case "email":
4992
4992
  if (a = vs(), (i = n.validation) != null && i.required) {
4993
- const g = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
4994
- a = a.required(g);
4993
+ const v = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
4994
+ a = a.required(v);
4995
4995
  }
4996
4996
  (l = n.validation) != null && l.minLength && (a = a.min(
4997
4997
  n.validation.minLength.value,
@@ -5006,21 +5006,21 @@ function ai({
5006
5006
  break;
5007
5007
  case "number":
5008
5008
  if (a = bs(), (d = n.validation) != null && d.required) {
5009
- const g = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5010
- a = a.required(g);
5009
+ const v = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5010
+ a = a.required(v);
5011
5011
  }
5012
5012
  break;
5013
5013
  case "select":
5014
5014
  case "optionGroup":
5015
5015
  if (a = Rt(), (m = n.validation) != null && m.required) {
5016
- const g = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5017
- a = a.required(g);
5016
+ const v = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5017
+ a = a.required(v);
5018
5018
  }
5019
5019
  break;
5020
5020
  case "date":
5021
5021
  if (a = Gt(), (h = n.validation) != null && h.required) {
5022
- const g = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5023
- a = a.required(g);
5022
+ const v = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
5023
+ a = a.required(v);
5024
5024
  }
5025
5025
  break;
5026
5026
  default:
@@ -5044,7 +5044,7 @@ function oi(r) {
5044
5044
  const e = Me(
5045
5045
  () => r.filter((i) => i.type === "select" && i.loadOptions),
5046
5046
  [r]
5047
- ), [t, s] = Q(e.length), [n, a] = Q({});
5047
+ ), [t, s] = ee(e.length), [n, a] = ee({});
5048
5048
  return le(() => {
5049
5049
  e.length !== 0 && e.forEach((i) => {
5050
5050
  i.loadOptions().then(
@@ -5092,9 +5092,9 @@ function _s({
5092
5092
  maxLength: d,
5093
5093
  showCounter: m = !1,
5094
5094
  className: h,
5095
- ...g
5095
+ ...v
5096
5096
  }) {
5097
- const k = Ue(), j = e || k, [_, v] = Q(s || "");
5097
+ const k = Ue(), j = e || k, [_, y] = ee(s || "");
5098
5098
  if (r && e)
5099
5099
  return /* @__PURE__ */ o.jsx(
5100
5100
  ke,
@@ -5108,7 +5108,7 @@ function _s({
5108
5108
  return /* @__PURE__ */ o.jsx(
5109
5109
  _s,
5110
5110
  {
5111
- ...g,
5111
+ ...v,
5112
5112
  size: n,
5113
5113
  width: a,
5114
5114
  label: i,
@@ -5126,11 +5126,11 @@ function _s({
5126
5126
  }
5127
5127
  );
5128
5128
  le(() => {
5129
- v(s || "");
5129
+ y(s || "");
5130
5130
  }, [s]);
5131
5131
  const p = (F) => {
5132
5132
  var D;
5133
- d !== void 0 && F.target.value.length > d || (v(F.target.value), (D = g.onChange) == null || D.call(g, F));
5133
+ d !== void 0 && F.target.value.length > d || (y(F.target.value), (D = v.onChange) == null || D.call(v, F));
5134
5134
  };
5135
5135
  return /* @__PURE__ */ o.jsxs("div", { className: $("flex flex-col", h), style: { width: a }, children: [
5136
5136
  i && /* @__PURE__ */ o.jsx(
@@ -5154,12 +5154,12 @@ function _s({
5154
5154
  Ir[n],
5155
5155
  ci[n],
5156
5156
  c ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]",
5157
- g.disabled ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed" : "text-[var(--color-ds-text-primary)]"
5157
+ v.disabled ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed" : "text-[var(--color-ds-text-primary)]"
5158
5158
  ),
5159
5159
  value: _,
5160
5160
  onChange: p,
5161
5161
  maxLength: d,
5162
- ...g
5162
+ ...v
5163
5163
  }
5164
5164
  ),
5165
5165
  /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between pt-1 min-h-[18px]", children: [
@@ -5198,7 +5198,7 @@ function di({
5198
5198
  rules: t,
5199
5199
  defaultValue: s,
5200
5200
  render: ({ field: m, fieldState: h }) => {
5201
- const g = h.error;
5201
+ const v = h.error;
5202
5202
  return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center space-x-2", children: [
5203
5203
  /* @__PURE__ */ o.jsx(
5204
5204
  "input",
@@ -5226,7 +5226,7 @@ function di({
5226
5226
  children: n
5227
5227
  }
5228
5228
  ),
5229
- f && (g == null ? void 0 : g.message) && /* @__PURE__ */ o.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: g.message })
5229
+ f && (v == null ? void 0 : v.message) && /* @__PURE__ */ o.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: v.message })
5230
5230
  ] });
5231
5231
  }
5232
5232
  }
@@ -5241,11 +5241,11 @@ function fi({
5241
5241
  width: a = "100%",
5242
5242
  disabled: i = !1
5243
5243
  }) {
5244
- const [l, c] = Q([]), [f, d] = Q(!1), [m, h] = Q(!1), g = _e(null), k = async (v) => {
5245
- if (v) {
5244
+ const [l, c] = ee([]), [f, d] = ee(!1), [m, h] = ee(!1), v = _e(null), k = async (y) => {
5245
+ if (y) {
5246
5246
  d(!0);
5247
5247
  try {
5248
- const p = await t(v);
5248
+ const p = await t(y);
5249
5249
  c(p), h(!0);
5250
5250
  } finally {
5251
5251
  d(!1);
@@ -5253,11 +5253,11 @@ function fi({
5253
5253
  }
5254
5254
  };
5255
5255
  le(() => {
5256
- function v(p) {
5257
- g.current && !g.current.contains(p.target) && h(!1);
5256
+ function y(p) {
5257
+ v.current && !v.current.contains(p.target) && h(!1);
5258
5258
  }
5259
5259
  if (m)
5260
- return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
5260
+ return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
5261
5261
  }, [m]);
5262
5262
  const j = n === "sm" ? "text-ds-sm" : n === "md" ? "text-ds-md" : "text-ds-lg", _ = n === "sm" ? "h-6" : n === "md" ? "h-10" : "h-12";
5263
5263
  return /* @__PURE__ */ o.jsx(
@@ -5265,12 +5265,12 @@ function fi({
5265
5265
  {
5266
5266
  name: r,
5267
5267
  control: e,
5268
- render: ({ field: v, fieldState: p }) => {
5268
+ render: ({ field: y, fieldState: p }) => {
5269
5269
  var F;
5270
5270
  return /* @__PURE__ */ o.jsxs(
5271
5271
  "div",
5272
5272
  {
5273
- ref: g,
5273
+ ref: v,
5274
5274
  className: "relative flex flex-col",
5275
5275
  style: { width: a },
5276
5276
  children: [
@@ -5288,8 +5288,8 @@ function fi({
5288
5288
  type: "text",
5289
5289
  size: n,
5290
5290
  width: "100%",
5291
- value: v.value,
5292
- onChange: (D) => v.onChange(D.target.value),
5291
+ value: y.value,
5292
+ onChange: (D) => y.onChange(D.target.value),
5293
5293
  disabled: i,
5294
5294
  hasError: p.invalid,
5295
5295
  errorMessage: (F = p.error) == null ? void 0 : F.message,
@@ -5300,7 +5300,7 @@ function fi({
5300
5300
  className: "!rounded-l-none",
5301
5301
  size: n,
5302
5302
  variant: "primary",
5303
- onClick: () => k(v.value),
5303
+ onClick: () => k(y.value),
5304
5304
  disabled: i,
5305
5305
  children: "Buscar"
5306
5306
  }
@@ -5359,7 +5359,7 @@ function fi({
5359
5359
 
5360
5360
  `,
5361
5361
  onClick: () => {
5362
- v.onChange(D.value), h(!1);
5362
+ y.onChange(D.value), h(!1);
5363
5363
  },
5364
5364
  children: D.label
5365
5365
  },
@@ -5388,7 +5388,7 @@ function _i({ schema: r }) {
5388
5388
  } = r, { show: d } = ja(), { t: m } = qt(), h = ai({
5389
5389
  fields: t,
5390
5390
  explicitSchema: f
5391
- }), g = Rn({
5391
+ }), v = Rn({
5392
5392
  resolver: h,
5393
5393
  mode: "onBlur",
5394
5394
  reValidateMode: "onChange",
@@ -5397,57 +5397,57 @@ function _i({ schema: r }) {
5397
5397
  control: k,
5398
5398
  reset: j,
5399
5399
  watch: _,
5400
- handleSubmit: v,
5400
+ handleSubmit: y,
5401
5401
  formState: { errors: p, isSubmitting: F }
5402
- } = g, [D, O] = Q(!1);
5402
+ } = v, [D, O] = ee(!1);
5403
5403
  le(() => {
5404
- c && (O(!0), c().then((A) => j(A)).finally(() => O(!1)));
5404
+ c && (O(!0), c().then((C) => j(C)).finally(() => O(!1)));
5405
5405
  }, [c, j]);
5406
- const { loadingCount: B, optionsMap: Y } = oi(t), P = ii(t), W = li(t, k), Z = Me(() => {
5407
- const A = {};
5408
- return e.forEach((b, z) => {
5409
- b.type === "tabs" && (A[z] = b.tabs[0].key);
5410
- }), A;
5411
- }, [e]), [M, L] = Q(Z), E = Tt(
5412
- (A) => {
5413
- const b = _(), { watchField: z, watchValue: re } = A;
5414
- return typeof re == "function" ? re(
5415
- b
5416
- ) : b[z] === re;
5406
+ const { loadingCount: I, optionsMap: Y } = oi(t), U = ii(t), B = li(t, k), z = Me(() => {
5407
+ const C = {};
5408
+ return e.forEach((g, W) => {
5409
+ g.type === "tabs" && (C[W] = g.tabs[0].key);
5410
+ }), C;
5411
+ }, [e]), [R, M] = ee(z), Z = Tt(
5412
+ (C) => {
5413
+ const g = _(), { watchField: W, watchValue: J } = C;
5414
+ return typeof J == "function" ? J(
5415
+ g
5416
+ ) : g[W] === J;
5417
5417
  },
5418
5418
  [_]
5419
- ), V = Tt(
5420
- (A) => {
5421
- var U, G, ee, ae;
5422
- let b;
5423
- if (typeof A == "string") {
5424
- if (b = P[A], !b) return null;
5419
+ ), E = Tt(
5420
+ (C) => {
5421
+ var P, G, te, ae;
5422
+ let g;
5423
+ if (typeof C == "string") {
5424
+ if (g = U[C], !g) return null;
5425
5425
  } else
5426
- b = A;
5427
- if ("visibleWhen" in b && b.visibleWhen && !E(b.visibleWhen))
5426
+ g = C;
5427
+ if ("visibleWhen" in g && g.visibleWhen && !Z(g.visibleWhen))
5428
5428
  return null;
5429
- let z = !!b.disabled;
5430
- if ("disabledWhen" in b && b.disabledWhen && E(b.disabledWhen) && (z = !0), !z && "name" in b && b.name && W[b.name] && (z = !0), b.type === "search")
5429
+ let W = !!g.disabled;
5430
+ if ("disabledWhen" in g && g.disabledWhen && Z(g.disabledWhen) && (W = !0), !W && "name" in g && g.name && B[g.name] && (W = !0), g.type === "search")
5431
5431
  return /* @__PURE__ */ o.jsx(
5432
5432
  fi,
5433
5433
  {
5434
- name: b.name,
5434
+ name: g.name,
5435
5435
  control: k,
5436
- searchFn: b.searchFn,
5437
- label: b.label,
5438
- size: b.size,
5439
- width: b.width,
5440
- disabled: z || F
5436
+ searchFn: g.searchFn,
5437
+ label: g.label,
5438
+ size: g.size,
5439
+ width: g.width,
5440
+ disabled: W || F
5441
5441
  },
5442
- b.name
5442
+ g.name
5443
5443
  );
5444
- if (b.type === "inputGroup") {
5445
- const q = b, ce = q.inputs.map((ue) => {
5444
+ if (g.type === "inputGroup") {
5445
+ const q = g, ce = q.inputs.map((ue) => {
5446
5446
  var Ze;
5447
- const H = typeof ue == "string" ? P[ue] : ue;
5447
+ const H = typeof ue == "string" ? U[ue] : ue;
5448
5448
  if (!H) return null;
5449
5449
  let de = !!H.disabled;
5450
- H.disabledWhen && E(H.disabledWhen) && (de = !0), !de && W[H.name] && (de = !0);
5450
+ H.disabledWhen && Z(H.disabledWhen) && (de = !0), !de && B[H.name] && (de = !0);
5451
5451
  const Fe = {
5452
5452
  name: H.name,
5453
5453
  control: k,
@@ -5483,8 +5483,8 @@ function _i({ schema: r }) {
5483
5483
  `inputGroup_${q.groupLabel}`
5484
5484
  );
5485
5485
  }
5486
- if (b.type === "button") {
5487
- const q = b;
5486
+ if (g.type === "button") {
5487
+ const q = g;
5488
5488
  return /* @__PURE__ */ o.jsx("div", { className: "self-center", children: /* @__PURE__ */ o.jsx(
5489
5489
  Ve,
5490
5490
  {
@@ -5496,28 +5496,28 @@ function _i({ schema: r }) {
5496
5496
  iconPosition: q.iconPosition,
5497
5497
  ariaLabel: q.ariaLabel,
5498
5498
  onClick: q.onClick,
5499
- disabled: z || F,
5499
+ disabled: W || F,
5500
5500
  children: q.label
5501
5501
  }
5502
5502
  ) }, q.name);
5503
5503
  }
5504
- const re = b.suffixButton, ie = typeof re == "string" ? V(re) : re, w = {
5505
- name: b.name,
5504
+ const J = g.suffixButton, ie = typeof J == "string" ? E(J) : J, w = {
5505
+ name: g.name,
5506
5506
  control: k,
5507
- disabled: z || F,
5508
- label: b.label,
5509
- size: b.size,
5510
- width: b.width,
5511
- placeholder: b.placeholder,
5512
- info: b.info,
5507
+ disabled: W || F,
5508
+ label: g.label,
5509
+ size: g.size,
5510
+ width: g.width,
5511
+ placeholder: g.placeholder,
5512
+ info: g.info,
5513
5513
  suffixButton: ie
5514
5514
  };
5515
- switch (b.type) {
5515
+ switch (g.type) {
5516
5516
  case "select":
5517
5517
  return /* @__PURE__ */ o.jsx(
5518
5518
  ke,
5519
5519
  {
5520
- name: b.name,
5520
+ name: g.name,
5521
5521
  control: k,
5522
5522
  render: ({ field: q }) => {
5523
5523
  var ce;
@@ -5527,22 +5527,22 @@ function _i({ schema: r }) {
5527
5527
  ...w,
5528
5528
  value: q.value,
5529
5529
  onChange: q.onChange,
5530
- options: b.options ?? Y[b.name] ?? [],
5531
- loadOptions: b.options ? void 0 : b.loadOptions,
5532
- hasError: !!p[b.name],
5533
- errorMessage: (ce = p[b.name]) == null ? void 0 : ce.message,
5530
+ options: g.options ?? Y[g.name] ?? [],
5531
+ loadOptions: g.options ? void 0 : g.loadOptions,
5532
+ hasError: !!p[g.name],
5533
+ errorMessage: (ce = p[g.name]) == null ? void 0 : ce.message,
5534
5534
  suffixButton: ie
5535
5535
  }
5536
5536
  );
5537
5537
  }
5538
5538
  },
5539
- b.name
5539
+ g.name
5540
5540
  );
5541
5541
  case "textarea":
5542
5542
  return /* @__PURE__ */ o.jsx(
5543
5543
  ke,
5544
5544
  {
5545
- name: b.name,
5545
+ name: g.name,
5546
5546
  control: k,
5547
5547
  render: ({ field: q, fieldState: ce }) => {
5548
5548
  var ue;
@@ -5552,15 +5552,15 @@ function _i({ schema: r }) {
5552
5552
  ...w,
5553
5553
  value: q.value,
5554
5554
  onChange: q.onChange,
5555
- maxLength: b.maxLength,
5556
- showCounter: !!b.showCounter,
5555
+ maxLength: g.maxLength,
5556
+ showCounter: !!g.showCounter,
5557
5557
  hasError: !!ce.error,
5558
5558
  errorMessage: ((ue = ce.error) == null ? void 0 : ue.message) || ""
5559
5559
  }
5560
5560
  );
5561
5561
  }
5562
5562
  },
5563
- b.name
5563
+ g.name
5564
5564
  );
5565
5565
  case "file":
5566
5566
  return /* @__PURE__ */ o.jsx(
@@ -5568,12 +5568,12 @@ function _i({ schema: r }) {
5568
5568
  {
5569
5569
  ...w,
5570
5570
  defaultValue: [],
5571
- maxFiles: b.maxFiles,
5572
- accept: b.accept,
5573
- hasError: !!p[b.name],
5574
- errorMessage: (U = p[b.name]) == null ? void 0 : U.message
5571
+ maxFiles: g.maxFiles,
5572
+ accept: g.accept,
5573
+ hasError: !!p[g.name],
5574
+ errorMessage: (P = p[g.name]) == null ? void 0 : P.message
5575
5575
  },
5576
- b.name
5576
+ g.name
5577
5577
  );
5578
5578
  case "checkbox":
5579
5579
  return /* @__PURE__ */ o.jsx(
@@ -5581,11 +5581,11 @@ function _i({ schema: r }) {
5581
5581
  {
5582
5582
  ...w,
5583
5583
  defaultValue: !1,
5584
- hasError: !!p[b.name],
5585
- errorMessage: (G = p[b.name]) == null ? void 0 : G.message,
5586
- name: b.name
5584
+ hasError: !!p[g.name],
5585
+ errorMessage: (G = p[g.name]) == null ? void 0 : G.message,
5586
+ name: g.name
5587
5587
  },
5588
- b.name
5588
+ g.name
5589
5589
  );
5590
5590
  case "date":
5591
5591
  return /* @__PURE__ */ o.jsx(
@@ -5593,83 +5593,83 @@ function _i({ schema: r }) {
5593
5593
  {
5594
5594
  ...w,
5595
5595
  defaultValue: "",
5596
- showTime: !!b.showTime,
5597
- hasError: !!p[b.name],
5598
- errorMessage: (ee = p[b.name]) == null ? void 0 : ee.message
5596
+ showTime: !!g.showTime,
5597
+ hasError: !!p[g.name],
5598
+ errorMessage: (te = p[g.name]) == null ? void 0 : te.message
5599
5599
  },
5600
- b.name
5600
+ g.name
5601
5601
  );
5602
5602
  case "optionGroup":
5603
5603
  return /* @__PURE__ */ o.jsx(
5604
5604
  ha,
5605
5605
  {
5606
5606
  ...w,
5607
- options: b.options || [],
5608
- multiple: b.multiple,
5609
- vertical: b.vertical,
5610
- groupLabel: b.groupLabel,
5611
- defaultValue: b.defaultValue,
5612
- className: b.width ? void 0 : "w-full",
5613
- name: b.name
5607
+ options: g.options || [],
5608
+ multiple: g.multiple,
5609
+ vertical: g.vertical,
5610
+ groupLabel: g.groupLabel,
5611
+ defaultValue: g.defaultValue,
5612
+ className: g.width ? void 0 : "w-full",
5613
+ name: g.name
5614
5614
  },
5615
- b.name
5615
+ g.name
5616
5616
  );
5617
5617
  default:
5618
5618
  return /* @__PURE__ */ o.jsx(
5619
5619
  us,
5620
5620
  {
5621
5621
  ...w,
5622
- type: b.type,
5622
+ type: g.type,
5623
5623
  loadingDefaults: D,
5624
- hasError: !!p[b.name],
5625
- errorMessage: (ae = p[b.name]) == null ? void 0 : ae.message,
5624
+ hasError: !!p[g.name],
5625
+ errorMessage: (ae = p[g.name]) == null ? void 0 : ae.message,
5626
5626
  suffixButton: ie,
5627
- name: b.name
5627
+ name: g.name
5628
5628
  },
5629
- b.name
5629
+ g.name
5630
5630
  );
5631
5631
  }
5632
5632
  },
5633
5633
  [
5634
- P,
5634
+ U,
5635
5635
  k,
5636
5636
  p,
5637
5637
  F,
5638
5638
  D,
5639
5639
  Y,
5640
- E,
5641
- W
5640
+ Z,
5641
+ B
5642
5642
  ]
5643
5643
  );
5644
- return /* @__PURE__ */ o.jsx(wn, { ...g, children: /* @__PURE__ */ o.jsxs(
5644
+ return /* @__PURE__ */ o.jsx(wn, { ...v, children: /* @__PURE__ */ o.jsxs(
5645
5645
  "form",
5646
5646
  {
5647
5647
  noValidate: !0,
5648
- onSubmit: v(
5649
- async (A) => {
5650
- await s(A), d(n ?? m("ds.form.saveSuccess"), "success");
5648
+ onSubmit: y(
5649
+ async (C) => {
5650
+ await s(C), d(n ?? m("ds.form.saveSuccess"), "success");
5651
5651
  },
5652
- (A) => {
5653
- console.log("❌ errores de validación:", A), ma(A), d(a ?? m("ds.form.saveError"), "error");
5652
+ (C) => {
5653
+ console.log("❌ errores de validación:", C), ma(C), 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
- (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(
5659
+ (C, g) => C.type === "rows" ? /* @__PURE__ */ o.jsx(X.Fragment, { children: C.sections.map((W, J) => /* @__PURE__ */ o.jsx("div", { className: "mb-6", children: /* @__PURE__ */ o.jsx(
5660
5660
  ir,
5661
5661
  {
5662
- title: z.sectionTitle,
5663
- defaultOpen: z.defaultOpen,
5664
- children: z.rows.map((ie, w) => /* @__PURE__ */ o.jsxs("div", { children: [
5662
+ title: W.sectionTitle,
5663
+ defaultOpen: W.defaultOpen,
5664
+ children: W.rows.map((ie, w) => /* @__PURE__ */ o.jsxs("div", { children: [
5665
5665
  ie.title && /* @__PURE__ */ o.jsx("h2", { className: "mb-2 text-lg text-[var(--color-ds-text-primary)]", children: ie.title }),
5666
- /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: ie.columns.map((U, G) => {
5667
- var ee;
5666
+ /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: ie.columns.map((P, G) => {
5667
+ var te;
5668
5668
  return /* @__PURE__ */ o.jsx(
5669
5669
  "div",
5670
5670
  {
5671
- className: `${U.width} px-2 flex flex-col`,
5672
- children: /* @__PURE__ */ o.jsx("div", { className: "space-y-4", children: U.fields ? U.fields.map((ae) => V(ae)) : (ee = U.rows) == null ? void 0 : ee.map((ae, q) => /* @__PURE__ */ o.jsx("div", { className: "mb-1", children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: ae.columns.map(
5671
+ className: `${P.width} px-2 flex flex-col`,
5672
+ children: /* @__PURE__ */ o.jsx("div", { className: "space-y-4", children: P.fields ? P.fields.map((ae) => E(ae)) : (te = P.rows) == null ? void 0 : te.map((ae, q) => /* @__PURE__ */ o.jsx("div", { className: "mb-1", children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: ae.columns.map(
5673
5673
  (ce, ue) => {
5674
5674
  var H;
5675
5675
  return /* @__PURE__ */ o.jsx(
@@ -5677,7 +5677,7 @@ function _i({ schema: r }) {
5677
5677
  {
5678
5678
  className: `${ce.width} px-2`,
5679
5679
  children: (H = ce.fields) == null ? void 0 : H.map(
5680
- (de) => V(de)
5680
+ (de) => E(de)
5681
5681
  )
5682
5682
  },
5683
5683
  ue
@@ -5690,37 +5690,37 @@ function _i({ schema: r }) {
5690
5690
  }) })
5691
5691
  ] }, w))
5692
5692
  }
5693
- ) }, re)) }, b) : /* @__PURE__ */ o.jsx(
5693
+ ) }, J)) }, g) : /* @__PURE__ */ o.jsx(
5694
5694
  la,
5695
5695
  {
5696
- options: A.tabs.map((z) => ({ label: z.label, value: z.key })),
5697
- value: M[b],
5698
- onChange: (z) => L((re) => ({ ...re, [b]: z })),
5696
+ options: C.tabs.map((W) => ({ label: W.label, value: W.key })),
5697
+ value: R[g],
5698
+ onChange: (W) => M((J) => ({ ...J, [g]: W })),
5699
5699
  children: Object.fromEntries(
5700
- A.tabs.map((z) => [
5701
- z.key,
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(
5700
+ C.tabs.map((W) => [
5701
+ W.key,
5702
+ /* @__PURE__ */ o.jsx("div", { className: "space-y-6", children: W.sections.map((J, ie) => /* @__PURE__ */ o.jsx("div", { className: "mb-6", children: /* @__PURE__ */ o.jsx(
5703
5703
  ir,
5704
5704
  {
5705
- title: re.sectionTitle,
5706
- defaultOpen: re.defaultOpen,
5707
- children: re.rows.map((w, U) => /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: w.columns.map((G, ee) => {
5705
+ title: J.sectionTitle,
5706
+ defaultOpen: J.defaultOpen,
5707
+ children: J.rows.map((w, P) => /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-wrap -mx-2", children: w.columns.map((G, te) => {
5708
5708
  var ae;
5709
5709
  return /* @__PURE__ */ o.jsx(
5710
5710
  "div",
5711
5711
  {
5712
5712
  className: `${G.width ?? "flex-1"} px-2 flex flex-col`,
5713
- children: /* @__PURE__ */ o.jsx("div", { className: "space-y-4", children: (ae = G.fields) == null ? void 0 : ae.map((q, ce) => /* @__PURE__ */ o.jsx(X.Fragment, { children: V(q) }, ce)) })
5713
+ children: /* @__PURE__ */ o.jsx("div", { className: "space-y-4", children: (ae = G.fields) == null ? void 0 : ae.map((q, ce) => /* @__PURE__ */ o.jsx(X.Fragment, { children: E(q) }, ce)) })
5714
5714
  },
5715
- ee
5715
+ te
5716
5716
  );
5717
- }) }) }, U))
5717
+ }) }) }, P))
5718
5718
  }
5719
- ) }, ie)) }, z.key)
5719
+ ) }, ie)) }, W.key)
5720
5720
  ])
5721
5721
  )
5722
5722
  },
5723
- b
5723
+ g
5724
5724
  )
5725
5725
  ),
5726
5726
  /* @__PURE__ */ o.jsx("footer", { className: "py-4 w-full flex justify-center space-x-4", children: i ?? /* @__PURE__ */ o.jsx(
@@ -5730,7 +5730,7 @@ function _i({ schema: r }) {
5730
5730
  variant: "primary",
5731
5731
  icon: Hs,
5732
5732
  size: "sm",
5733
- disabled: F || D || B > 0,
5733
+ disabled: F || D || I > 0,
5734
5734
  children: m(F ? "ds.form.sending" : "ds.form.submit")
5735
5735
  }
5736
5736
  ) })
@@ -5843,7 +5843,7 @@ const Fs = Lt({
5843
5843
  }
5844
5844
  });
5845
5845
  function Fi({ children: r }) {
5846
- const [e, t] = Q(!1), [s, n] = Q("light");
5846
+ const [e, t] = ee(!1), [s, n] = ee("light");
5847
5847
  le(() => {
5848
5848
  if (typeof window > "u") return;
5849
5849
  const i = localStorage.getItem("ds-theme");
@@ -5866,8 +5866,8 @@ const Ss = () => It(Fs), xi = ({
5866
5866
  profileOptions: c,
5867
5867
  onChangeProfile: f
5868
5868
  }) => {
5869
- const d = r.slice(0, 3), { toggle: m } = Ss(), { t: h, i18n: g } = qt(), k = (j) => {
5870
- g.changeLanguage(j), i(j);
5869
+ const d = r.slice(0, 3), { toggle: m } = Ss(), { t: h, i18n: v } = qt(), k = (j) => {
5870
+ v.changeLanguage(j), i(j);
5871
5871
  };
5872
5872
  return /* @__PURE__ */ o.jsxs("header", { className: "flex items-center bg-[var(--color-ds-background-page)] py-2", children: [
5873
5873
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center space-x-2", children: [
@@ -6039,7 +6039,7 @@ const Ss = () => It(Fs), xi = ({
6039
6039
  onSelect: t,
6040
6040
  level: s = 0
6041
6041
  }) => {
6042
- const [n, a] = Q(/* @__PURE__ */ new Set()), i = (l) => {
6042
+ const [n, a] = ee(/* @__PURE__ */ new Set()), i = (l) => {
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
  };
@@ -6150,74 +6150,82 @@ function Ci({
6150
6150
  onSort: c,
6151
6151
  className: f
6152
6152
  }) {
6153
- const [d, m] = Q(e), [h, g] = Q(!!t);
6153
+ const [d, m] = ee([]), [h, v] = ee(!!t), [k, j] = ee(/* @__PURE__ */ new Set()), [_, y] = ee(1), [p, F] = ee(l == null ? void 0 : l.sortBy), [D, O] = ee((l == null ? void 0 : l.sortDir) ?? "asc"), I = (E) => typeof s == "function" ? s(E) : E[s];
6154
6154
  le(() => {
6155
- t && (g(!0), t().then((E) => m(E)).finally(() => g(!1)));
6156
- }, [t]), le(() => {
6157
- m(e);
6158
- }, [e]);
6159
- const [k, j] = Q(/* @__PURE__ */ new Set()), [_, v] = Q(1), [p, F] = Q(
6160
- l == null ? void 0 : l.sortBy
6161
- ), [D, O] = Q(
6162
- (l == null ? void 0 : l.sortDir) ?? "asc"
6163
- ), B = Me(() => {
6155
+ let E = !1;
6156
+ return (async () => {
6157
+ v(!0);
6158
+ try {
6159
+ const g = t ? await t() : e;
6160
+ E || m(g);
6161
+ } finally {
6162
+ E || v(!1);
6163
+ }
6164
+ })(), () => {
6165
+ E = !0;
6166
+ };
6167
+ }, [e, t]), le(() => {
6168
+ j(/* @__PURE__ */ new Set()), y(1);
6169
+ }, [d]);
6170
+ const Y = Me(() => {
6164
6171
  if (!p) return [...d];
6165
6172
  const E = D === "asc" ? 1 : -1;
6166
- return [...d].sort((V, A) => {
6167
- const b = V[p], z = A[p];
6168
- return b == null ? -E : z == null || b > z ? E : b < z ? -E : 0;
6173
+ return [...d].sort((C, g) => {
6174
+ const W = C[p], J = g[p];
6175
+ return W == null ? -E : J == null || W > J ? E : W < J ? -E : 0;
6169
6176
  });
6170
- }, [d, p, D]), Y = Math.max(1, Math.ceil(B.length / i)), P = Me(() => {
6177
+ }, [d, p, D]), U = Math.max(1, Math.ceil(Y.length / i)), B = Me(() => {
6171
6178
  const E = (_ - 1) * i;
6172
- return B.slice(E, E + i);
6173
- }, [B, _, i]), W = (E) => {
6174
- const V = new Set(k);
6175
- V.has(E) ? V.delete(E) : V.add(E), j(V), a == null || a(d.filter((A) => V.has(A[s])));
6176
- }, Z = () => {
6177
- const E = P.every((A) => k.has(A[s])), V = new Set(k);
6178
- 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])));
6179
+ return Y.slice(E, E + i);
6180
+ }, [Y, _, i]), z = (E) => {
6181
+ const C = new Set(k);
6182
+ C.has(E) ? C.delete(E) : C.add(E), j(C), a == null || a(d.filter((g) => C.has(I(g))));
6183
+ }, R = () => {
6184
+ const E = B.every((g) => k.has(I(g))), C = new Set(k);
6185
+ E ? B.forEach((g) => C.delete(I(g))) : B.forEach((g) => C.add(I(g))), j(C), a == null || a(d.filter((g) => C.has(I(g))));
6179
6186
  }, M = (E) => {
6180
- const V = typeof E.accessor == "string" ? E.accessor : E.sortKey;
6181
- if (p === V) {
6182
- const A = D === "asc" ? "desc" : "asc";
6183
- O(A), c == null || c(V, A);
6187
+ if (!E.sortable) return;
6188
+ const C = typeof E.accessor == "string" ? E.accessor : E.sortKey;
6189
+ if (p === C) {
6190
+ const g = D === "asc" ? "desc" : "asc";
6191
+ O(g), c == null || c(C, g);
6184
6192
  } else
6185
- F(V), O("asc"), c == null || c(V, "asc");
6186
- v(1);
6187
- }, L = () => h ? /* @__PURE__ */ o.jsx("tbody", { children: Array.from({ length: i }).map((E, V) => /* @__PURE__ */ o.jsxs("tr", { children: [
6193
+ F(C), O("asc"), c == null || c(C, "asc");
6194
+ y(1);
6195
+ }, Z = () => h ? /* @__PURE__ */ o.jsx("tbody", { children: Array.from({ length: i }).map((E, C) => /* @__PURE__ */ o.jsxs("tr", { children: [
6188
6196
  n && /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(He, { width: "1rem", height: "1rem", variant: "circle" }) }),
6189
- 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))
6190
- ] }, V)) }) : P.length === 0 ? /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
6191
- "td",
6192
- {
6193
- colSpan: n ? r.length + 1 : r.length,
6194
- className: "px-4 py-8 text-center text-gray-500",
6195
- children: "No hay datos"
6196
- }
6197
- ) }) }) : /* @__PURE__ */ o.jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: P.map((E) => {
6198
- const V = E[s];
6197
+ r.map((g, W) => /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(He, { width: "100%", height: "1em", variant: "rect" }) }, W))
6198
+ ] }, C)) }) : B.length ? /* @__PURE__ */ o.jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: B.map((E) => {
6199
+ const C = I(E);
6199
6200
  return /* @__PURE__ */ o.jsxs("tr", { className: "hover:bg-gray-50", children: [
6200
6201
  n && /* @__PURE__ */ o.jsx("td", { className: "px-4 py-2", children: /* @__PURE__ */ o.jsx(
6201
6202
  "input",
6202
6203
  {
6203
6204
  type: "checkbox",
6204
- checked: k.has(V),
6205
- onChange: () => W(V)
6205
+ checked: k.has(C),
6206
+ onChange: () => z(C)
6206
6207
  }
6207
6208
  ) }),
6208
- r.map((A, b) => {
6209
- const z = A.render ? A.render(E) : typeof A.accessor == "function" ? A.accessor(E) : E[A.accessor];
6209
+ r.map((g, W) => {
6210
+ const J = g.render ? g.render(E) : typeof g.accessor == "function" ? g.accessor(E) : E[g.accessor];
6210
6211
  return /* @__PURE__ */ o.jsx(
6211
6212
  "td",
6212
6213
  {
6213
6214
  className: "px-4 py-2 whitespace-nowrap text-sm text-gray-800",
6214
- children: z
6215
+ children: J
6215
6216
  },
6216
- b
6217
+ W
6217
6218
  );
6218
6219
  })
6219
- ] }, V);
6220
- }) });
6220
+ ] }, C);
6221
+ }) }) : /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
6222
+ "td",
6223
+ {
6224
+ colSpan: n ? r.length + 1 : r.length,
6225
+ className: "px-4 py-8 text-center text-gray-500",
6226
+ children: "No hay datos"
6227
+ }
6228
+ ) }) });
6221
6229
  return /* @__PURE__ */ o.jsxs("div", { className: $("w-full overflow-auto", f), children: [
6222
6230
  /* @__PURE__ */ o.jsxs("table", { className: "min-w-full divide-y divide-gray-200", children: [
6223
6231
  /* @__PURE__ */ o.jsx("thead", { className: "bg-gray-50", children: /* @__PURE__ */ o.jsxs("tr", { children: [
@@ -6225,12 +6233,12 @@ function Ci({
6225
6233
  "input",
6226
6234
  {
6227
6235
  type: "checkbox",
6228
- checked: P.length > 0 && P.every((E) => k.has(E[s])),
6229
- onChange: Z
6236
+ checked: B.length > 0 && B.every((E) => k.has(I(E))),
6237
+ onChange: R
6230
6238
  }
6231
6239
  ) }),
6232
6240
  r.map((E) => {
6233
- const V = typeof E.accessor == "string" ? E.accessor : E.header, A = E.sortable && !!E.accessor, b = p === E.accessor;
6241
+ const C = typeof E.accessor == "string" ? E.accessor : E.header, g = p === (typeof E.accessor == "string" ? E.accessor : E.sortKey);
6234
6242
  return /* @__PURE__ */ o.jsx(
6235
6243
  "th",
6236
6244
  {
@@ -6238,20 +6246,20 @@ function Ci({
6238
6246
  "px-4 py-2 text-left text-sm font-medium text-gray-700",
6239
6247
  E.width
6240
6248
  ),
6241
- onClick: () => A && M(E),
6249
+ onClick: () => M(E),
6242
6250
  children: /* @__PURE__ */ o.jsxs("div", { className: "inline-flex items-center space-x-1 cursor-pointer select-none", children: [
6243
6251
  /* @__PURE__ */ o.jsx("span", { children: E.header }),
6244
- A && /* @__PURE__ */ o.jsx("span", { className: "text-xs", children: b ? D === "asc" ? "▲" : "▼" : "⇵" })
6252
+ E.sortable && /* @__PURE__ */ o.jsx("span", { className: "text-xs", children: g ? D === "asc" ? "▲" : "▼" : "⇵" })
6245
6253
  ] })
6246
6254
  },
6247
- V
6255
+ C
6248
6256
  );
6249
6257
  })
6250
6258
  ] }) }),
6251
- L()
6259
+ Z()
6252
6260
  ] }),
6253
6261
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between py-2 px-4", children: [
6254
- /* @__PURE__ */ o.jsx("div", { className: "text-sm text-gray-700", children: h ? "Cargando datos..." : `Página ${_} de ${Y}` }),
6262
+ /* @__PURE__ */ o.jsx("div", { className: "text-sm text-gray-700", children: h ? "Cargando datos..." : `Página ${_} de ${U}` }),
6255
6263
  /* @__PURE__ */ o.jsxs("div", { className: "space-x-2", children: [
6256
6264
  /* @__PURE__ */ o.jsx(
6257
6265
  Ve,
@@ -6259,7 +6267,7 @@ function Ci({
6259
6267
  size: "sm",
6260
6268
  variant: "outline",
6261
6269
  disabled: h || _ <= 1,
6262
- onClick: () => v((E) => Math.max(1, E - 1)),
6270
+ onClick: () => y((E) => Math.max(1, E - 1)),
6263
6271
  children: "Prev"
6264
6272
  }
6265
6273
  ),
@@ -6268,8 +6276,8 @@ function Ci({
6268
6276
  {
6269
6277
  size: "sm",
6270
6278
  variant: "outline",
6271
- disabled: h || _ >= Y,
6272
- onClick: () => v((E) => Math.min(Y, E + 1)),
6279
+ disabled: h || _ >= U,
6280
+ onClick: () => y((E) => Math.min(U, E + 1)),
6273
6281
  children: "Next"
6274
6282
  }
6275
6283
  )
@@ -6299,13 +6307,13 @@ function yi({
6299
6307
  control: r,
6300
6308
  rules: t,
6301
6309
  defaultValue: s,
6302
- render: ({ field: g, fieldState: k }) => {
6310
+ render: ({ field: v, fieldState: k }) => {
6303
6311
  var j;
6304
6312
  return /* @__PURE__ */ o.jsx(
6305
6313
  yi,
6306
6314
  {
6307
- checked: g.value,
6308
- onChange: g.onChange,
6315
+ checked: v.value,
6316
+ onChange: v.onChange,
6309
6317
  disabled: i,
6310
6318
  label: l,
6311
6319
  labelPosition: c,