finform-react-builder 1.12.10 → 1.13.0

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
@@ -182,8 +182,8 @@ function ip(e) {
182
182
  },
183
183
  type: mi.BLUR
184
184
  }), [r, i._formValues]), k = le.useCallback((S) => {
185
- const v = J(i._fields, r);
186
- v && S && (v._f.ref = {
185
+ const x = J(i._fields, r);
186
+ x && S && (x._f.ref = {
187
187
  focus: () => S.focus && S.focus(),
188
188
  select: () => S.select && S.select(),
189
189
  setCustomValidity: (b) => S.setCustomValidity(b),
@@ -203,16 +203,16 @@ function ip(e) {
203
203
  ...u.current.rules,
204
204
  ...vt(u.current.disabled) ? { disabled: u.current.disabled } : {}
205
205
  });
206
- const v = (b, $) => {
206
+ const x = (b, $) => {
207
207
  const A = J(i._fields, b);
208
208
  A && A._f && (A._f.mount = $);
209
209
  };
210
- if (v(r, !0), S) {
210
+ if (x(r, !0), S) {
211
211
  const b = Me(J(i._options.defaultValues, r));
212
212
  Ce(i._defaultValues, r, b), $e(J(i._formValues, r)) && Ce(i._formValues, r, b);
213
213
  }
214
214
  return !o && i.register(r), () => {
215
- (o ? S && !i._state.action : S) ? i.unregister(r) : v(r, !1);
215
+ (o ? S && !i._state.action : S) ? i.unregister(r) : x(r, !1);
216
216
  };
217
217
  }, [r, i, o, a]), le.useEffect(() => {
218
218
  i._setDisabledField({
@@ -431,12 +431,12 @@ var Ur = (e) => Ue(e) && !vi(e) ? e : {
431
431
  value: e,
432
432
  message: ""
433
433
  }, _a = async (e, t, r, n, i, a) => {
434
- const { ref: o, refs: s, required: l, maxLength: u, minLength: f, min: p, max: c, pattern: y, validate: k, name: m, valueAsNumber: S, mount: v } = e._f, b = J(r, m);
435
- if (!v || t.has(m))
434
+ const { ref: o, refs: s, required: l, maxLength: u, minLength: f, min: p, max: c, pattern: y, validate: k, name: m, valueAsNumber: S, mount: x } = e._f, b = J(r, m);
435
+ if (!x || t.has(m))
436
436
  return {};
437
437
  const $ = s ? s[0] : o, A = (L) => {
438
438
  i && $.reportValidity && ($.setCustomValidity(vt(L) ? "" : L || ""), $.reportValidity());
439
- }, C = {}, _ = go(o), D = Bn(o), R = _ || D, H = (S || mo(o)) && $e(o.value) && $e(b) || gi(o) && o.value === "" || b === "" || Array.isArray(b) && !b.length, h = Ql.bind(null, m, n, C), j = (L, G, N, W = Kt.maxLength, Y = Kt.minLength) => {
439
+ }, C = {}, _ = go(o), M = Bn(o), R = _ || M, H = (S || mo(o)) && $e(o.value) && $e(b) || gi(o) && o.value === "" || b === "" || Array.isArray(b) && !b.length, h = Ql.bind(null, m, n, C), j = (L, G, N, W = Kt.maxLength, Y = Kt.minLength) => {
440
440
  const re = L ? G : N;
441
441
  C[m] = {
442
442
  type: L ? W : Y,
@@ -445,7 +445,7 @@ var Ur = (e) => Ue(e) && !vi(e) ? e : {
445
445
  ...h(L ? W : Y, re)
446
446
  };
447
447
  };
448
- if (a ? !Array.isArray(b) || !b.length : l && (!R && (H || st(b)) || vt(b) && !b || D && !Jl(s).isValid || _ && !tc(s).isValid)) {
448
+ if (a ? !Array.isArray(b) || !b.length : l && (!R && (H || st(b)) || vt(b) && !b || M && !Jl(s).isValid || _ && !tc(s).isValid)) {
449
449
  const { value: L, message: G } = li(l) ? { value: !!l, message: l } : Ur(l);
450
450
  if (L && (C[m] = {
451
451
  type: Kt.required,
@@ -567,7 +567,7 @@ function gp(e = {}) {
567
567
  clearTimeout(u), u = setTimeout(w, T);
568
568
  }, m = async (w) => {
569
569
  if (!t.disabled && (f.isValid || p.isValid || w)) {
570
- const T = t.resolver ? ot((await D()).errors) : await H(n, !0);
570
+ const T = t.resolver ? ot((await M()).errors) : await H(n, !0);
571
571
  T !== r.isValid && c.state.next({
572
572
  isValid: T
573
573
  });
@@ -579,19 +579,19 @@ function gp(e = {}) {
579
579
  validatingFields: r.validatingFields,
580
580
  isValidating: !ot(r.validatingFields)
581
581
  }));
582
- }, v = (w, T = [], g, I, x = !0, F = !0) => {
583
- if (I && g && !t.disabled) {
582
+ }, x = (w, T = [], g, D, v = !0, F = !0) => {
583
+ if (D && g && !t.disabled) {
584
584
  if (o.action = !0, F && Array.isArray(J(n, w))) {
585
- const z = g(J(n, w), I.argA, I.argB);
586
- x && Ce(n, w, z);
585
+ const z = g(J(n, w), D.argA, D.argB);
586
+ v && Ce(n, w, z);
587
587
  }
588
588
  if (F && Array.isArray(J(r.errors, w))) {
589
- const z = g(J(r.errors, w), I.argA, I.argB);
590
- x && Ce(r.errors, w, z), hp(r.errors, w);
589
+ const z = g(J(r.errors, w), D.argA, D.argB);
590
+ v && Ce(r.errors, w, z), hp(r.errors, w);
591
591
  }
592
592
  if ((f.touchedFields || p.touchedFields) && F && Array.isArray(J(r.touchedFields, w))) {
593
- const z = g(J(r.touchedFields, w), I.argA, I.argB);
594
- x && Ce(r.touchedFields, w, z);
593
+ const z = g(J(r.touchedFields, w), D.argA, D.argB);
594
+ v && Ce(r.touchedFields, w, z);
595
595
  }
596
596
  (f.dirtyFields || p.dirtyFields) && (r.dirtyFields = Cn(i, a)), c.state.next({
597
597
  name: w,
@@ -611,35 +611,35 @@ function gp(e = {}) {
611
611
  errors: r.errors,
612
612
  isValid: !1
613
613
  });
614
- }, A = (w, T, g, I) => {
615
- const x = J(n, w);
616
- if (x) {
614
+ }, A = (w, T, g, D) => {
615
+ const v = J(n, w);
616
+ if (v) {
617
617
  const F = J(a, w, $e(g) ? J(i, w) : g);
618
- $e(F) || I && I.defaultChecked || T ? Ce(a, w, T ? F : Xo(x._f)) : N(w, F), o.mount && m();
618
+ $e(F) || D && D.defaultChecked || T ? Ce(a, w, T ? F : Xo(v._f)) : N(w, F), o.mount && m();
619
619
  }
620
- }, C = (w, T, g, I, x) => {
620
+ }, C = (w, T, g, D, v) => {
621
621
  let F = !1, z = !1;
622
- const M = {
622
+ const I = {
623
623
  name: w
624
624
  };
625
625
  if (!t.disabled) {
626
- if (!g || I) {
627
- (f.isDirty || p.isDirty) && (z = r.isDirty, r.isDirty = M.isDirty = j(), F = z !== M.isDirty);
626
+ if (!g || D) {
627
+ (f.isDirty || p.isDirty) && (z = r.isDirty, r.isDirty = I.isDirty = j(), F = z !== I.isDirty);
628
628
  const U = or(J(i, w), T);
629
- z = !!J(r.dirtyFields, w), U ? Qe(r.dirtyFields, w) : Ce(r.dirtyFields, w, !0), M.dirtyFields = r.dirtyFields, F = F || (f.dirtyFields || p.dirtyFields) && z !== !U;
629
+ z = !!J(r.dirtyFields, w), U ? Qe(r.dirtyFields, w) : Ce(r.dirtyFields, w, !0), I.dirtyFields = r.dirtyFields, F = F || (f.dirtyFields || p.dirtyFields) && z !== !U;
630
630
  }
631
631
  if (g) {
632
632
  const U = J(r.touchedFields, w);
633
- U || (Ce(r.touchedFields, w, g), M.touchedFields = r.touchedFields, F = F || (f.touchedFields || p.touchedFields) && U !== g);
633
+ U || (Ce(r.touchedFields, w, g), I.touchedFields = r.touchedFields, F = F || (f.touchedFields || p.touchedFields) && U !== g);
634
634
  }
635
- F && x && c.state.next(M);
635
+ F && v && c.state.next(I);
636
636
  }
637
- return F ? M : {};
638
- }, _ = (w, T, g, I) => {
639
- const x = J(r.errors, w), F = (f.isValid || p.isValid) && vt(T) && r.isValid !== T;
640
- if (t.delayError && g ? (l = k(() => b(w, g)), l(t.delayError)) : (clearTimeout(u), l = null, g ? Ce(r.errors, w, g) : Qe(r.errors, w)), (g ? !or(x, g) : x) || !ot(I) || F) {
637
+ return F ? I : {};
638
+ }, _ = (w, T, g, D) => {
639
+ const v = J(r.errors, w), F = (f.isValid || p.isValid) && vt(T) && r.isValid !== T;
640
+ if (t.delayError && g ? (l = k(() => b(w, g)), l(t.delayError)) : (clearTimeout(u), l = null, g ? Ce(r.errors, w, g) : Qe(r.errors, w)), (g ? !or(v, g) : v) || !ot(D) || F) {
641
641
  const z = {
642
- ...I,
642
+ ...D,
643
643
  ...F && vt(T) ? { isValid: T } : {},
644
644
  errors: r.errors,
645
645
  name: w
@@ -649,16 +649,16 @@ function gp(e = {}) {
649
649
  ...z
650
650
  }, c.state.next(z);
651
651
  }
652
- }, D = async (w) => {
652
+ }, M = async (w) => {
653
653
  S(w, !0);
654
654
  const T = await t.resolver(a, t.context, lp(w || s.mount, n, t.criteriaMode, t.shouldUseNativeValidation));
655
655
  return S(w), T;
656
656
  }, R = async (w) => {
657
- const { errors: T } = await D(w);
657
+ const { errors: T } = await M(w);
658
658
  if (w)
659
659
  for (const g of w) {
660
- const I = J(T, g);
661
- I ? Ce(r.errors, g, I) : Qe(r.errors, g);
660
+ const D = J(T, g);
661
+ D ? Ce(r.errors, g, D) : Qe(r.errors, g);
662
662
  }
663
663
  else
664
664
  r.errors = T;
@@ -666,17 +666,17 @@ function gp(e = {}) {
666
666
  }, H = async (w, T, g = {
667
667
  valid: !0
668
668
  }) => {
669
- for (const I in w) {
670
- const x = w[I];
671
- if (x) {
672
- const { _f: F, ...z } = x;
669
+ for (const D in w) {
670
+ const v = w[D];
671
+ if (v) {
672
+ const { _f: F, ...z } = v;
673
673
  if (F) {
674
- const M = s.array.has(F.name), U = x._f && cp(x._f);
675
- U && f.validatingFields && S([I], !0);
676
- const he = await _a(x, s.disabled, a, y, t.shouldUseNativeValidation && !T, M);
677
- if (U && f.validatingFields && S([I]), he[F.name] && (g.valid = !1, T))
674
+ const I = s.array.has(F.name), U = v._f && cp(v._f);
675
+ U && f.validatingFields && S([D], !0);
676
+ const he = await _a(v, s.disabled, a, y, t.shouldUseNativeValidation && !T, I);
677
+ if (U && f.validatingFields && S([D]), he[F.name] && (g.valid = !1, T))
678
678
  break;
679
- !T && (J(he, F.name) ? M ? rc(r.errors, he, F.name) : Ce(r.errors, F.name, he[F.name]) : Qe(r.errors, F.name));
679
+ !T && (J(he, F.name) ? I ? rc(r.errors, he, F.name) : Ce(r.errors, F.name, he[F.name]) : Qe(r.errors, F.name));
680
680
  }
681
681
  !ot(z) && await H(z, T, g);
682
682
  }
@@ -691,84 +691,84 @@ function gp(e = {}) {
691
691
  }, j = (w, T) => !t.disabled && (w && T && Ce(a, w, T), !or(q(), i)), L = (w, T, g) => Kl(w, s, {
692
692
  ...o.mount ? a : $e(T) ? i : Ht(w) ? { [w]: T } : T
693
693
  }, g, T), G = (w) => zi(J(o.mount ? a : i, w, t.shouldUnregister ? J(i, w, []) : [])), N = (w, T, g = {}) => {
694
- const I = J(n, w);
695
- let x = T;
696
- if (I) {
697
- const F = I._f;
698
- F && (!F.disabled && Ce(a, w, ec(T, F)), x = gi(F.ref) && st(T) ? "" : T, Gl(F.ref) ? [...F.ref.options].forEach((z) => z.selected = x.includes(z.value)) : F.refs ? Bn(F.ref) ? F.refs.forEach((z) => {
699
- (!z.defaultChecked || !z.disabled) && (Array.isArray(x) ? z.checked = !!x.find((M) => M === z.value) : z.checked = x === z.value || !!x);
700
- }) : F.refs.forEach((z) => z.checked = z.value === x) : mo(F.ref) ? F.ref.value = "" : (F.ref.value = x, F.ref.type || c.state.next({
694
+ const D = J(n, w);
695
+ let v = T;
696
+ if (D) {
697
+ const F = D._f;
698
+ F && (!F.disabled && Ce(a, w, ec(T, F)), v = gi(F.ref) && st(T) ? "" : T, Gl(F.ref) ? [...F.ref.options].forEach((z) => z.selected = v.includes(z.value)) : F.refs ? Bn(F.ref) ? F.refs.forEach((z) => {
699
+ (!z.defaultChecked || !z.disabled) && (Array.isArray(v) ? z.checked = !!v.find((I) => I === z.value) : z.checked = v === z.value || !!v);
700
+ }) : F.refs.forEach((z) => z.checked = z.value === v) : mo(F.ref) ? F.ref.value = "" : (F.ref.value = v, F.ref.type || c.state.next({
701
701
  name: w,
702
702
  values: Me(a)
703
703
  })));
704
704
  }
705
- (g.shouldDirty || g.shouldTouch) && C(w, x, g.shouldTouch, g.shouldDirty, !0), g.shouldValidate && P(w);
705
+ (g.shouldDirty || g.shouldTouch) && C(w, v, g.shouldTouch, g.shouldDirty, !0), g.shouldValidate && P(w);
706
706
  }, W = (w, T, g) => {
707
- for (const I in T) {
708
- if (!T.hasOwnProperty(I))
707
+ for (const D in T) {
708
+ if (!T.hasOwnProperty(D))
709
709
  return;
710
- const x = T[I], F = w + "." + I, z = J(n, F);
711
- (s.array.has(w) || Ue(x) || z && !z._f) && !Ar(x) ? W(F, x, g) : N(F, x, g);
710
+ const v = T[D], F = w + "." + D, z = J(n, F);
711
+ (s.array.has(w) || Ue(v) || z && !z._f) && !Ar(v) ? W(F, v, g) : N(F, v, g);
712
712
  }
713
713
  }, Y = (w, T, g = {}) => {
714
- const I = J(n, w), x = s.array.has(w), F = Me(T);
715
- Ce(a, w, F), x ? (c.array.next({
714
+ const D = J(n, w), v = s.array.has(w), F = Me(T);
715
+ Ce(a, w, F), v ? (c.array.next({
716
716
  name: w,
717
717
  values: Me(a)
718
718
  }), (f.isDirty || f.dirtyFields || p.isDirty || p.dirtyFields) && g.shouldDirty && c.state.next({
719
719
  name: w,
720
720
  dirtyFields: Cn(i, a),
721
721
  isDirty: j(w, F)
722
- })) : I && !I._f && !st(F) ? W(w, F, g) : N(w, F, g), Oa(w, s) && c.state.next({ ...r }), c.state.next({
722
+ })) : D && !D._f && !st(F) ? W(w, F, g) : N(w, F, g), Oa(w, s) && c.state.next({ ...r }), c.state.next({
723
723
  name: o.mount ? w : void 0,
724
724
  values: Me(a)
725
725
  });
726
726
  }, re = async (w) => {
727
727
  o.mount = !0;
728
728
  const T = w.target;
729
- let g = T.name, I = !0;
730
- const x = J(n, g), F = (U) => {
731
- I = Number.isNaN(U) || Ar(U) && isNaN(U.getTime()) || or(U, J(a, g, U));
732
- }, z = Jr(t.mode), M = Jr(t.reValidateMode);
733
- if (x) {
729
+ let g = T.name, D = !0;
730
+ const v = J(n, g), F = (U) => {
731
+ D = Number.isNaN(U) || Ar(U) && isNaN(U.getTime()) || or(U, J(a, g, U));
732
+ }, z = Jr(t.mode), I = Jr(t.reValidateMode);
733
+ if (v) {
734
734
  let U, he;
735
- const ve = T.type ? Xo(x._f) : ql(w), ye = w.type === mi.BLUR || w.type === mi.FOCUS_OUT, We = !up(x._f) && !t.resolver && !J(r.errors, g) && !x._f.deps || fp(ye, J(r.touchedFields, g), r.isSubmitted, M, z), Pe = Oa(g, s, ye);
736
- Ce(a, g, ve), ye ? (x._f.onBlur && x._f.onBlur(w), l && l(0)) : x._f.onChange && x._f.onChange(w);
737
- const ct = C(g, ve, ye), yt = !ot(ct) || Pe;
738
- if (!ye && c.state.next({
735
+ const ye = T.type ? Xo(v._f) : ql(w), ve = w.type === mi.BLUR || w.type === mi.FOCUS_OUT, We = !up(v._f) && !t.resolver && !J(r.errors, g) && !v._f.deps || fp(ve, J(r.touchedFields, g), r.isSubmitted, I, z), Pe = Oa(g, s, ve);
736
+ Ce(a, g, ye), ve ? (v._f.onBlur && v._f.onBlur(w), l && l(0)) : v._f.onChange && v._f.onChange(w);
737
+ const ct = C(g, ye, ve), yt = !ot(ct) || Pe;
738
+ if (!ve && c.state.next({
739
739
  name: g,
740
740
  type: w.type,
741
741
  values: Me(a)
742
742
  }), We)
743
- return (f.isValid || p.isValid) && (t.mode === "onBlur" ? ye && m() : ye || m()), yt && c.state.next({ name: g, ...Pe ? {} : ct });
744
- if (!ye && Pe && c.state.next({ ...r }), t.resolver) {
745
- const { errors: Ne } = await D([g]);
746
- if (F(ve), I) {
743
+ return (f.isValid || p.isValid) && (t.mode === "onBlur" ? ve && m() : ve || m()), yt && c.state.next({ name: g, ...Pe ? {} : ct });
744
+ if (!ve && Pe && c.state.next({ ...r }), t.resolver) {
745
+ const { errors: Ne } = await M([g]);
746
+ if (F(ye), D) {
747
747
  const ne = es(r.errors, n, g), et = es(Ne, n, ne.name || g);
748
748
  U = et.error, g = et.name, he = ot(Ne);
749
749
  }
750
750
  } else
751
- S([g], !0), U = (await _a(x, s.disabled, a, y, t.shouldUseNativeValidation))[g], S([g]), F(ve), I && (U ? he = !1 : (f.isValid || p.isValid) && (he = await H(n, !0)));
752
- I && (x._f.deps && P(x._f.deps), _(g, he, U, ct));
751
+ S([g], !0), U = (await _a(v, s.disabled, a, y, t.shouldUseNativeValidation))[g], S([g]), F(ye), D && (U ? he = !1 : (f.isValid || p.isValid) && (he = await H(n, !0)));
752
+ D && (v._f.deps && P(v._f.deps), _(g, he, U, ct));
753
753
  }
754
754
  }, ue = (w, T) => {
755
755
  if (J(r.errors, T) && w.focus)
756
756
  return w.focus(), 1;
757
757
  }, P = async (w, T = {}) => {
758
- let g, I;
759
- const x = mt(w);
758
+ let g, D;
759
+ const v = mt(w);
760
760
  if (t.resolver) {
761
- const F = await R($e(w) ? w : x);
762
- g = ot(F), I = w ? !x.some((z) => J(F, z)) : g;
763
- } else w ? (I = (await Promise.all(x.map(async (F) => {
761
+ const F = await R($e(w) ? w : v);
762
+ g = ot(F), D = w ? !v.some((z) => J(F, z)) : g;
763
+ } else w ? (D = (await Promise.all(v.map(async (F) => {
764
764
  const z = J(n, F);
765
765
  return await H(z && z._f ? { [F]: z } : z);
766
- }))).every(Boolean), !(!I && !r.isValid) && m()) : I = g = await H(n);
766
+ }))).every(Boolean), !(!D && !r.isValid) && m()) : D = g = await H(n);
767
767
  return c.state.next({
768
768
  ...!Ht(w) || (f.isValid || p.isValid) && g !== r.isValid ? {} : { name: w },
769
769
  ...t.resolver || !w ? { isValid: g } : {},
770
770
  errors: r.errors
771
- }), T.shouldFocus && !I && nn(n, ue, w ? x : s.mount), I;
771
+ }), T.shouldFocus && !D && nn(n, ue, w ? v : s.mount), D;
772
772
  }, q = (w) => {
773
773
  const T = {
774
774
  ...o.mount ? a : i
@@ -785,16 +785,16 @@ function gp(e = {}) {
785
785
  errors: w ? r.errors : {}
786
786
  });
787
787
  }, me = (w, T, g) => {
788
- const I = (J(n, w, { _f: {} })._f || {}).ref, x = J(r.errors, w) || {}, { ref: F, message: z, type: M, ...U } = x;
788
+ const D = (J(n, w, { _f: {} })._f || {}).ref, v = J(r.errors, w) || {}, { ref: F, message: z, type: I, ...U } = v;
789
789
  Ce(r.errors, w, {
790
790
  ...U,
791
791
  ...T,
792
- ref: I
792
+ ref: D
793
793
  }), c.state.next({
794
794
  name: w,
795
795
  errors: r.errors,
796
796
  isValid: !1
797
- }), g && g.shouldFocus && I && I.focus && I.focus();
797
+ }), g && g.shouldFocus && D && D.focus && D.focus();
798
798
  }, de = (w, T) => jt(w) ? c.state.subscribe({
799
799
  next: (g) => w(L(void 0, T), g)
800
800
  }) : L(w, T, !0), te = (w) => c.state.subscribe({
@@ -824,7 +824,7 @@ function gp(e = {}) {
824
824
  (vt(w) && o.mount || w || s.disabled.has(T)) && (w ? s.disabled.add(T) : s.disabled.delete(T));
825
825
  }, se = (w, T = {}) => {
826
826
  let g = J(n, w);
827
- const I = vt(T.disabled) || vt(t.disabled);
827
+ const D = vt(T.disabled) || vt(t.disabled);
828
828
  return Ce(n, w, {
829
829
  ...g || {},
830
830
  _f: {
@@ -837,7 +837,7 @@ function gp(e = {}) {
837
837
  disabled: vt(T.disabled) ? T.disabled : t.disabled,
838
838
  name: w
839
839
  }) : A(w, !0, T.value), {
840
- ...I ? { disabled: T.disabled || t.disabled } : {},
840
+ ...D ? { disabled: T.disabled || t.disabled } : {},
841
841
  ...t.progressive ? {
842
842
  required: !!T.required,
843
843
  min: En(T.min),
@@ -849,18 +849,18 @@ function gp(e = {}) {
849
849
  name: w,
850
850
  onChange: re,
851
851
  onBlur: re,
852
- ref: (x) => {
853
- if (x) {
852
+ ref: (v) => {
853
+ if (v) {
854
854
  se(w, T), g = J(n, w);
855
- const F = $e(x.value) && x.querySelectorAll && x.querySelectorAll("input,select,textarea")[0] || x, z = ap(F), M = g._f.refs || [];
856
- if (z ? M.find((U) => U === F) : F === g._f.ref)
855
+ const F = $e(v.value) && v.querySelectorAll && v.querySelectorAll("input,select,textarea")[0] || v, z = ap(F), I = g._f.refs || [];
856
+ if (z ? I.find((U) => U === F) : F === g._f.ref)
857
857
  return;
858
858
  Ce(n, w, {
859
859
  _f: {
860
860
  ...g._f,
861
861
  ...z ? {
862
862
  refs: [
863
- ...M.filter(ea),
863
+ ...I.filter(ea),
864
864
  F,
865
865
  ...Array.isArray(J(i, w)) ? [{}] : []
866
866
  ],
@@ -874,62 +874,62 @@ function gp(e = {}) {
874
874
  };
875
875
  }, ce = () => t.shouldFocusError && nn(n, ue, s.mount), Se = (w) => {
876
876
  vt(w) && (c.state.next({ disabled: w }), nn(n, (T, g) => {
877
- const I = J(n, g);
878
- I && (T.disabled = I._f.disabled || w, Array.isArray(I._f.refs) && I._f.refs.forEach((x) => {
879
- x.disabled = I._f.disabled || w;
877
+ const D = J(n, g);
878
+ D && (T.disabled = D._f.disabled || w, Array.isArray(D._f.refs) && D._f.refs.forEach((v) => {
879
+ v.disabled = D._f.disabled || w;
880
880
  }));
881
881
  }, 0, !1));
882
882
  }, X = (w, T) => async (g) => {
883
- let I;
883
+ let D;
884
884
  g && (g.preventDefault && g.preventDefault(), g.persist && g.persist());
885
- let x = Me(a);
885
+ let v = Me(a);
886
886
  if (c.state.next({
887
887
  isSubmitting: !0
888
888
  }), t.resolver) {
889
- const { errors: F, values: z } = await D();
890
- r.errors = F, x = z;
889
+ const { errors: F, values: z } = await M();
890
+ r.errors = F, v = z;
891
891
  } else
892
892
  await H(n);
893
893
  if (s.disabled.size)
894
894
  for (const F of s.disabled)
895
- Ce(x, F, void 0);
895
+ Ce(v, F, void 0);
896
896
  if (Qe(r.errors, "root"), ot(r.errors)) {
897
897
  c.state.next({
898
898
  errors: {}
899
899
  });
900
900
  try {
901
- await w(x, g);
901
+ await w(v, g);
902
902
  } catch (F) {
903
- I = F;
903
+ D = F;
904
904
  }
905
905
  } else
906
906
  T && await T({ ...r.errors }, g), ce(), setTimeout(ce);
907
907
  if (c.state.next({
908
908
  isSubmitted: !0,
909
909
  isSubmitting: !1,
910
- isSubmitSuccessful: ot(r.errors) && !I,
910
+ isSubmitSuccessful: ot(r.errors) && !D,
911
911
  submitCount: r.submitCount + 1,
912
912
  errors: r.errors
913
- }), I)
914
- throw I;
913
+ }), D)
914
+ throw D;
915
915
  }, Ve = (w, T = {}) => {
916
916
  J(n, w) && ($e(T.defaultValue) ? Y(w, Me(J(i, w))) : (Y(w, T.defaultValue), Ce(i, w, Me(T.defaultValue))), T.keepTouched || Qe(r.touchedFields, w), T.keepDirty || (Qe(r.dirtyFields, w), r.isDirty = T.defaultValue ? j(w, Me(J(i, w))) : j()), T.keepError || (Qe(r.errors, w), f.isValid && m()), c.state.next({ ...r }));
917
917
  }, Xe = (w, T = {}) => {
918
- const g = w ? Me(w) : i, I = Me(g), x = ot(w), F = x ? i : I;
918
+ const g = w ? Me(w) : i, D = Me(g), v = ot(w), F = v ? i : D;
919
919
  if (T.keepDefaultValues || (i = g), !T.keepValues) {
920
920
  if (T.keepDirtyValues) {
921
921
  const z = /* @__PURE__ */ new Set([
922
922
  ...s.mount,
923
923
  ...Object.keys(Cn(i, a))
924
924
  ]);
925
- for (const M of Array.from(z))
926
- J(r.dirtyFields, M) ? Ce(F, M, J(a, M)) : Y(M, J(F, M));
925
+ for (const I of Array.from(z))
926
+ J(r.dirtyFields, I) ? Ce(F, I, J(a, I)) : Y(I, J(F, I));
927
927
  } else {
928
928
  if (fo && $e(w))
929
929
  for (const z of s.mount) {
930
- const M = J(n, z);
931
- if (M && M._f) {
932
- const U = Array.isArray(M._f.refs) ? M._f.refs[0] : M._f.ref;
930
+ const I = J(n, z);
931
+ if (I && I._f) {
932
+ const U = Array.isArray(I._f.refs) ? I._f.refs[0] : I._f.ref;
933
933
  if (gi(U)) {
934
934
  const he = U.closest("form");
935
935
  if (he) {
@@ -958,19 +958,19 @@ function gp(e = {}) {
958
958
  focus: ""
959
959
  }, o.mount = !f.isValid || !!T.keepIsValid || !!T.keepDirtyValues, o.watch = !!t.shouldUnregister, c.state.next({
960
960
  submitCount: T.keepSubmitCount ? r.submitCount : 0,
961
- isDirty: x ? !1 : T.keepDirty ? r.isDirty : !!(T.keepDefaultValues && !or(w, i)),
961
+ isDirty: v ? !1 : T.keepDirty ? r.isDirty : !!(T.keepDefaultValues && !or(w, i)),
962
962
  isSubmitted: T.keepIsSubmitted ? r.isSubmitted : !1,
963
- dirtyFields: x ? {} : T.keepDirtyValues ? T.keepDefaultValues && a ? Cn(i, a) : r.dirtyFields : T.keepDefaultValues && w ? Cn(i, w) : T.keepDirty ? r.dirtyFields : {},
963
+ dirtyFields: v ? {} : T.keepDirtyValues ? T.keepDefaultValues && a ? Cn(i, a) : r.dirtyFields : T.keepDefaultValues && w ? Cn(i, w) : T.keepDirty ? r.dirtyFields : {},
964
964
  touchedFields: T.keepTouched ? r.touchedFields : {},
965
965
  errors: T.keepErrors ? r.errors : {},
966
966
  isSubmitSuccessful: T.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
967
967
  isSubmitting: !1
968
968
  });
969
969
  }, rt = (w, T) => Xe(jt(w) ? w(a) : w, T), Pt = (w, T = {}) => {
970
- const g = J(n, w), I = g && g._f;
971
- if (I) {
972
- const x = I.refs ? I.refs[0] : I.ref;
973
- x.focus && (x.focus(), T.shouldSelect && jt(x.select) && x.select());
970
+ const g = J(n, w), D = g && g._f;
971
+ if (D) {
972
+ const v = D.refs ? D.refs[0] : D.ref;
973
+ v.focus && (v.focus(), T.shouldSelect && jt(v.select) && v.select());
974
974
  }
975
975
  }, Je = (w) => {
976
976
  r = {
@@ -985,12 +985,12 @@ function gp(e = {}) {
985
985
  handleSubmit: X,
986
986
  setError: me,
987
987
  _subscribe: te,
988
- _runSchema: D,
988
+ _runSchema: M,
989
989
  _focusError: ce,
990
990
  _getWatch: L,
991
991
  _getDirty: j,
992
992
  _setValid: m,
993
- _setFieldArray: v,
993
+ _setFieldArray: x,
994
994
  _setDisabledField: ae,
995
995
  _setErrors: $,
996
996
  _getFieldArray: G,
@@ -1095,8 +1095,8 @@ var sa = (e, t) => $e(t) ? [] : yp(e, mt(t).sort((r, n) => r - n)), la = (e, t,
1095
1095
  function vp(e) {
1096
1096
  const t = Vi(), { control: r = t.control, name: n, keyName: i = "id", shouldUnregister: a, rules: o } = e, [s, l] = le.useState(r._getFieldArray(n)), u = le.useRef(r._getFieldArray(n).map(rr)), f = le.useRef(s), p = le.useRef(n), c = le.useRef(!1);
1097
1097
  p.current = n, f.current = s, r._names.array.add(n), o && r.register(n, o), Ni(() => r._subjects.array.subscribe({
1098
- next: ({ values: _, name: D }) => {
1099
- if (D === p.current || !D) {
1098
+ next: ({ values: _, name: M }) => {
1099
+ if (M === p.current || !M) {
1100
1100
  const R = J(_, p.current);
1101
1101
  Array.isArray(R) && (l(R), u.current = R.map(rr));
1102
1102
  }
@@ -1104,48 +1104,48 @@ function vp(e) {
1104
1104
  }).unsubscribe, [r]);
1105
1105
  const y = le.useCallback((_) => {
1106
1106
  c.current = !0, r._setFieldArray(n, _);
1107
- }, [r, n]), k = (_, D) => {
1107
+ }, [r, n]), k = (_, M) => {
1108
1108
  const R = mt(Me(_)), H = ra(r._getFieldArray(n), R);
1109
- r._names.focus = ta(n, H.length - 1, D), u.current = ra(u.current, R.map(rr)), y(H), l(H), r._setFieldArray(n, H, ra, {
1109
+ r._names.focus = ta(n, H.length - 1, M), u.current = ra(u.current, R.map(rr)), y(H), l(H), r._setFieldArray(n, H, ra, {
1110
1110
  argA: na(_)
1111
1111
  });
1112
- }, m = (_, D) => {
1112
+ }, m = (_, M) => {
1113
1113
  const R = mt(Me(_)), H = oa(r._getFieldArray(n), R);
1114
- r._names.focus = ta(n, 0, D), u.current = oa(u.current, R.map(rr)), y(H), l(H), r._setFieldArray(n, H, oa, {
1114
+ r._names.focus = ta(n, 0, M), u.current = oa(u.current, R.map(rr)), y(H), l(H), r._setFieldArray(n, H, oa, {
1115
1115
  argA: na(_)
1116
1116
  });
1117
1117
  }, S = (_) => {
1118
- const D = sa(r._getFieldArray(n), _);
1119
- u.current = sa(u.current, _), y(D), l(D), !Array.isArray(J(r._fields, n)) && Ce(r._fields, n, void 0), r._setFieldArray(n, D, sa, {
1118
+ const M = sa(r._getFieldArray(n), _);
1119
+ u.current = sa(u.current, _), y(M), l(M), !Array.isArray(J(r._fields, n)) && Ce(r._fields, n, void 0), r._setFieldArray(n, M, sa, {
1120
1120
  argA: _
1121
1121
  });
1122
- }, v = (_, D, R) => {
1123
- const H = mt(Me(D)), h = ia(r._getFieldArray(n), _, H);
1122
+ }, x = (_, M, R) => {
1123
+ const H = mt(Me(M)), h = ia(r._getFieldArray(n), _, H);
1124
1124
  r._names.focus = ta(n, _, R), u.current = ia(u.current, _, H.map(rr)), y(h), l(h), r._setFieldArray(n, h, ia, {
1125
1125
  argA: _,
1126
- argB: na(D)
1126
+ argB: na(M)
1127
1127
  });
1128
- }, b = (_, D) => {
1128
+ }, b = (_, M) => {
1129
1129
  const R = r._getFieldArray(n);
1130
- la(R, _, D), la(u.current, _, D), y(R), l(R), r._setFieldArray(n, R, la, {
1130
+ la(R, _, M), la(u.current, _, M), y(R), l(R), r._setFieldArray(n, R, la, {
1131
1131
  argA: _,
1132
- argB: D
1132
+ argB: M
1133
1133
  }, !1);
1134
- }, $ = (_, D) => {
1134
+ }, $ = (_, M) => {
1135
1135
  const R = r._getFieldArray(n);
1136
- aa(R, _, D), aa(u.current, _, D), y(R), l(R), r._setFieldArray(n, R, aa, {
1136
+ aa(R, _, M), aa(u.current, _, M), y(R), l(R), r._setFieldArray(n, R, aa, {
1137
1137
  argA: _,
1138
- argB: D
1138
+ argB: M
1139
1139
  }, !1);
1140
- }, A = (_, D) => {
1141
- const R = Me(D), H = rs(r._getFieldArray(n), _, R);
1140
+ }, A = (_, M) => {
1141
+ const R = Me(M), H = rs(r._getFieldArray(n), _, R);
1142
1142
  u.current = [...H].map((h, j) => !h || j === _ ? rr() : u.current[j]), y(H), l([...H]), r._setFieldArray(n, H, rs, {
1143
1143
  argA: _,
1144
1144
  argB: R
1145
1145
  }, !0, !1);
1146
1146
  }, C = (_) => {
1147
- const D = mt(Me(_));
1148
- u.current = D.map(rr), y([...D]), l([...D]), r._setFieldArray(n, [...D], (R) => R, {}, !0, !1);
1147
+ const M = mt(Me(_));
1148
+ u.current = M.map(rr), y([...M]), l([...M]), r._setFieldArray(n, [...M], (R) => R, {}, !0, !1);
1149
1149
  };
1150
1150
  return le.useEffect(() => {
1151
1151
  if (r._state.action = !1, Oa(n, r._names) && r._subjects.state.next({
@@ -1153,27 +1153,27 @@ function vp(e) {
1153
1153
  }), c.current && (!Jr(r._options.mode).isOnSubmit || r._formState.isSubmitted) && !Jr(r._options.reValidateMode).isOnSubmit)
1154
1154
  if (r._options.resolver)
1155
1155
  r._runSchema([n]).then((_) => {
1156
- const D = J(_.errors, n), R = J(r._formState.errors, n);
1157
- (R ? !D && R.type || D && (R.type !== D.type || R.message !== D.message) : D && D.type) && (D ? Ce(r._formState.errors, n, D) : Qe(r._formState.errors, n), r._subjects.state.next({
1156
+ const M = J(_.errors, n), R = J(r._formState.errors, n);
1157
+ (R ? !M && R.type || M && (R.type !== M.type || R.message !== M.message) : M && M.type) && (M ? Ce(r._formState.errors, n, M) : Qe(r._formState.errors, n), r._subjects.state.next({
1158
1158
  errors: r._formState.errors
1159
1159
  }));
1160
1160
  });
1161
1161
  else {
1162
1162
  const _ = J(r._fields, n);
1163
- _ && _._f && !(Jr(r._options.reValidateMode).isOnSubmit && Jr(r._options.mode).isOnSubmit) && _a(_, r._names.disabled, r._formValues, r._options.criteriaMode === _t.all, r._options.shouldUseNativeValidation, !0).then((D) => !ot(D) && r._subjects.state.next({
1164
- errors: rc(r._formState.errors, D, n)
1163
+ _ && _._f && !(Jr(r._options.reValidateMode).isOnSubmit && Jr(r._options.mode).isOnSubmit) && _a(_, r._names.disabled, r._formValues, r._options.criteriaMode === _t.all, r._options.shouldUseNativeValidation, !0).then((M) => !ot(M) && r._subjects.state.next({
1164
+ errors: rc(r._formState.errors, M, n)
1165
1165
  }));
1166
1166
  }
1167
1167
  r._subjects.state.next({
1168
1168
  name: n,
1169
1169
  values: Me(r._formValues)
1170
- }), r._names.focus && nn(r._fields, (_, D) => {
1171
- if (r._names.focus && D.startsWith(r._names.focus) && _.focus)
1170
+ }), r._names.focus && nn(r._fields, (_, M) => {
1171
+ if (r._names.focus && M.startsWith(r._names.focus) && _.focus)
1172
1172
  return _.focus(), 1;
1173
1173
  }), r._names.focus = "", r._setValid(), c.current = !1;
1174
1174
  }, [s, n, r]), le.useEffect(() => (!J(r._formValues, n) && r._setFieldArray(n), () => {
1175
- const _ = (D, R) => {
1176
- const H = J(r._fields, D);
1175
+ const _ = (M, R) => {
1176
+ const H = J(r._fields, M);
1177
1177
  H && H._f && (H._f.mount = R);
1178
1178
  };
1179
1179
  r._options.shouldUnregister || a ? r.unregister(n) : _(n, !1);
@@ -1183,12 +1183,12 @@ function vp(e) {
1183
1183
  prepend: le.useCallback(m, [y, n, r]),
1184
1184
  append: le.useCallback(k, [y, n, r]),
1185
1185
  remove: le.useCallback(S, [y, n, r]),
1186
- insert: le.useCallback(v, [y, n, r]),
1186
+ insert: le.useCallback(x, [y, n, r]),
1187
1187
  update: le.useCallback(A, [y, n, r]),
1188
1188
  replace: le.useCallback(C, [y, n, r]),
1189
- fields: le.useMemo(() => s.map((_, D) => ({
1189
+ fields: le.useMemo(() => s.map((_, M) => ({
1190
1190
  ..._,
1191
- [i]: u.current[D] || rr()
1191
+ [i]: u.current[M] || rr()
1192
1192
  })), [s, i])
1193
1193
  };
1194
1194
  }
@@ -1598,8 +1598,8 @@ function lc(e) {
1598
1598
  n || (n = !0, (S = e.onError) == null || S.call(e, m), i == null || i(), a.reject(m));
1599
1599
  }, y = () => new Promise((m) => {
1600
1600
  var S;
1601
- i = (v) => {
1602
- (n || u()) && m(v);
1601
+ i = (x) => {
1602
+ (n || u()) && m(x);
1603
1603
  }, (S = e.onPause) == null || S.call(e);
1604
1604
  }).then(() => {
1605
1605
  var m;
@@ -1611,20 +1611,20 @@ function lc(e) {
1611
1611
  const S = r === 0 ? e.initialPromise : void 0;
1612
1612
  try {
1613
1613
  m = S ?? e.fn();
1614
- } catch (v) {
1615
- m = Promise.reject(v);
1614
+ } catch (x) {
1615
+ m = Promise.reject(x);
1616
1616
  }
1617
- Promise.resolve(m).then(p).catch((v) => {
1617
+ Promise.resolve(m).then(p).catch((x) => {
1618
1618
  var _;
1619
1619
  if (n)
1620
1620
  return;
1621
- const b = e.retry ?? (Vr ? 0 : 3), $ = e.retryDelay ?? _p, A = typeof $ == "function" ? $(r, v) : $, C = b === !0 || typeof b == "number" && r < b || typeof b == "function" && b(r, v);
1621
+ const b = e.retry ?? (Vr ? 0 : 3), $ = e.retryDelay ?? _p, A = typeof $ == "function" ? $(r, x) : $, C = b === !0 || typeof b == "number" && r < b || typeof b == "function" && b(r, x);
1622
1622
  if (t || !C) {
1623
- c(v);
1623
+ c(x);
1624
1624
  return;
1625
1625
  }
1626
- r++, (_ = e.onFail) == null || _.call(e, r, v), Ep(A).then(() => u() ? void 0 : y()).then(() => {
1627
- t ? c(v) : k();
1626
+ r++, (_ = e.onFail) == null || _.call(e, r, x), Ep(A).then(() => u() ? void 0 : y()).then(() => {
1627
+ t ? c(x) : k();
1628
1628
  });
1629
1629
  });
1630
1630
  };
@@ -1887,8 +1887,8 @@ var tt = $p(), _r, Fl, cc = (Fl = class {
1887
1887
  }
1888
1888
  try {
1889
1889
  this.setData(c);
1890
- } catch (v) {
1891
- l(v);
1890
+ } catch (x) {
1891
+ l(x);
1892
1892
  return;
1893
1893
  }
1894
1894
  (k = (y = O(this, kt).config).onSuccess) == null || k.call(y, c, this), (S = (m = O(this, kt).config).onSettled) == null || S.call(
@@ -2122,7 +2122,7 @@ var Bt, _l, Ip = (_l = class extends qn {
2122
2122
  this.execute(this.state.variables);
2123
2123
  }
2124
2124
  async execute(t) {
2125
- var a, o, s, l, u, f, p, c, y, k, m, S, v, b, $, A, C, _, D, R;
2125
+ var a, o, s, l, u, f, p, c, y, k, m, S, x, b, $, A, C, _, M, R;
2126
2126
  const r = () => {
2127
2127
  be(this, Wt, ir).call(this, { type: "continue" });
2128
2128
  };
@@ -2175,8 +2175,8 @@ var Bt, _l, Ip = (_l = class extends qn {
2175
2175
  )), await ((S = (m = this.options).onSettled) == null ? void 0 : S.call(m, H, null, t, this.state.context)), be(this, Wt, ir).call(this, { type: "success", data: H }), H;
2176
2176
  } catch (H) {
2177
2177
  try {
2178
- throw await ((b = (v = O(this, it).config).onError) == null ? void 0 : b.call(
2179
- v,
2178
+ throw await ((b = (x = O(this, it).config).onError) == null ? void 0 : b.call(
2179
+ x,
2180
2180
  H,
2181
2181
  t,
2182
2182
  this.state.context,
@@ -2193,8 +2193,8 @@ var Bt, _l, Ip = (_l = class extends qn {
2193
2193
  this.state.variables,
2194
2194
  this.state.context,
2195
2195
  this
2196
- )), await ((R = (D = this.options).onSettled) == null ? void 0 : R.call(
2197
- D,
2196
+ )), await ((R = (M = this.options).onSettled) == null ? void 0 : R.call(
2197
+ M,
2198
2198
  void 0,
2199
2199
  H,
2200
2200
  t,
@@ -2397,12 +2397,12 @@ function cs(e) {
2397
2397
  m = !0;
2398
2398
  }), t.signal)
2399
2399
  });
2400
- }, v = ac(t.options, t.fetchOptions), b = async ($, A, C) => {
2400
+ }, x = ac(t.options, t.fetchOptions), b = async ($, A, C) => {
2401
2401
  if (m)
2402
2402
  return Promise.reject();
2403
2403
  if (A == null && $.pages.length)
2404
2404
  return Promise.resolve($);
2405
- const D = (() => {
2405
+ const M = (() => {
2406
2406
  const j = {
2407
2407
  client: t.client,
2408
2408
  queryKey: t.queryKey,
@@ -2411,7 +2411,7 @@ function cs(e) {
2411
2411
  meta: t.options.meta
2412
2412
  };
2413
2413
  return S(j), j;
2414
- })(), R = await v(D), { maxPages: H } = t.options, h = C ? Tp : kp;
2414
+ })(), R = await x(M), { maxPages: H } = t.options, h = C ? Tp : kp;
2415
2415
  return {
2416
2416
  pages: h($.pages, R, H),
2417
2417
  pageParams: h($.pageParams, A, H)
@@ -2788,10 +2788,10 @@ var qe, cr, ur, un, pn, pr, dn, fn, Pl, Np = (Pl = class {
2788
2788
  }
2789
2789
  let { error: k, errorUpdatedAt: m, status: S } = p;
2790
2790
  y = p.data;
2791
- let v = !1;
2791
+ let x = !1;
2792
2792
  if (r.placeholderData !== void 0 && y === void 0 && S === "pending") {
2793
2793
  let h;
2794
- a != null && a.isPlaceholderData && r.placeholderData === (s == null ? void 0 : s.placeholderData) ? (h = a.data, v = !0) : h = typeof r.placeholderData == "function" ? r.placeholderData(
2794
+ a != null && a.isPlaceholderData && r.placeholderData === (s == null ? void 0 : s.placeholderData) ? (h = a.data, x = !0) : h = typeof r.placeholderData == "function" ? r.placeholderData(
2795
2795
  (H = O(this, gn)) == null ? void 0 : H.state.data,
2796
2796
  O(this, gn)
2797
2797
  ) : r.placeholderData, h !== void 0 && (S = "success", y = Ia(
@@ -2800,7 +2800,7 @@ var qe, cr, ur, un, pn, pr, dn, fn, Pl, Np = (Pl = class {
2800
2800
  r
2801
2801
  ), c = !0);
2802
2802
  }
2803
- if (r.select && y !== void 0 && !v)
2803
+ if (r.select && y !== void 0 && !x)
2804
2804
  if (a && y === (o == null ? void 0 : o.data) && r.select === O(this, Nn))
2805
2805
  y = O(this, mn);
2806
2806
  else
@@ -3020,8 +3020,8 @@ function rd(e, t, r) {
3020
3020
  if (ie.useSyncExternalStore(
3021
3021
  ie.useCallback(
3022
3022
  (S) => {
3023
- const v = f ? l.subscribe(tt.batchCalls(S)) : dt;
3024
- return l.updateResult(), v;
3023
+ const x = f ? l.subscribe(tt.batchCalls(S)) : dt;
3024
+ return l.updateResult(), x;
3025
3025
  },
3026
3026
  [l, f]
3027
3027
  ),
@@ -3076,7 +3076,7 @@ var hs;
3076
3076
  function id() {
3077
3077
  if (hs) return Ee;
3078
3078
  hs = 1;
3079
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
3079
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
3080
3080
  function $(C) {
3081
3081
  if (typeof C == "object" && C !== null) {
3082
3082
  var _ = C.$$typeof;
@@ -3135,7 +3135,7 @@ function id() {
3135
3135
  }, Ee.isSuspense = function(C) {
3136
3136
  return $(C) === p;
3137
3137
  }, Ee.isValidElementType = function(C) {
3138
- return typeof C == "string" || typeof C == "function" || C === n || C === u || C === a || C === i || C === p || C === c || typeof C == "object" && C !== null && (C.$$typeof === k || C.$$typeof === y || C.$$typeof === o || C.$$typeof === s || C.$$typeof === f || C.$$typeof === S || C.$$typeof === v || C.$$typeof === b || C.$$typeof === m);
3138
+ return typeof C == "string" || typeof C == "function" || C === n || C === u || C === a || C === i || C === p || C === c || typeof C == "object" && C !== null && (C.$$typeof === k || C.$$typeof === y || C.$$typeof === o || C.$$typeof === s || C.$$typeof === f || C.$$typeof === S || C.$$typeof === x || C.$$typeof === b || C.$$typeof === m);
3139
3139
  }, Ee.typeOf = $, Ee;
3140
3140
  }
3141
3141
  var ke = {};
@@ -3150,10 +3150,10 @@ var ke = {};
3150
3150
  var ms;
3151
3151
  function ad() {
3152
3152
  return ms || (ms = 1, process.env.NODE_ENV !== "production" && function() {
3153
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
3153
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
3154
3154
  function $(X) {
3155
3155
  return typeof X == "string" || typeof X == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3156
- X === n || X === u || X === a || X === i || X === p || X === c || typeof X == "object" && X !== null && (X.$$typeof === k || X.$$typeof === y || X.$$typeof === o || X.$$typeof === s || X.$$typeof === f || X.$$typeof === S || X.$$typeof === v || X.$$typeof === b || X.$$typeof === m);
3156
+ X === n || X === u || X === a || X === i || X === p || X === c || typeof X == "object" && X !== null && (X.$$typeof === k || X.$$typeof === y || X.$$typeof === o || X.$$typeof === s || X.$$typeof === f || X.$$typeof === S || X.$$typeof === x || X.$$typeof === b || X.$$typeof === m);
3157
3157
  }
3158
3158
  function A(X) {
3159
3159
  if (typeof X == "object" && X !== null) {
@@ -3187,7 +3187,7 @@ function ad() {
3187
3187
  }
3188
3188
  }
3189
3189
  }
3190
- var C = l, _ = u, D = s, R = o, H = t, h = f, j = n, L = k, G = y, N = r, W = a, Y = i, re = p, ue = !1;
3190
+ var C = l, _ = u, M = s, R = o, H = t, h = f, j = n, L = k, G = y, N = r, W = a, Y = i, re = p, ue = !1;
3191
3191
  function P(X) {
3192
3192
  return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), q(X) || A(X) === l;
3193
3193
  }
@@ -3227,7 +3227,7 @@ function ad() {
3227
3227
  function Se(X) {
3228
3228
  return A(X) === p;
3229
3229
  }
3230
- ke.AsyncMode = C, ke.ConcurrentMode = _, ke.ContextConsumer = D, ke.ContextProvider = R, ke.Element = H, ke.ForwardRef = h, ke.Fragment = j, ke.Lazy = L, ke.Memo = G, ke.Portal = N, ke.Profiler = W, ke.StrictMode = Y, ke.Suspense = re, ke.isAsyncMode = P, ke.isConcurrentMode = q, ke.isContextConsumer = Z, ke.isContextProvider = pe, ke.isElement = me, ke.isForwardRef = de, ke.isFragment = te, ke.isLazy = B, ke.isMemo = Q, ke.isPortal = ae, ke.isProfiler = se, ke.isStrictMode = ce, ke.isSuspense = Se, ke.isValidElementType = $, ke.typeOf = A;
3230
+ ke.AsyncMode = C, ke.ConcurrentMode = _, ke.ContextConsumer = M, ke.ContextProvider = R, ke.Element = H, ke.ForwardRef = h, ke.Fragment = j, ke.Lazy = L, ke.Memo = G, ke.Portal = N, ke.Profiler = W, ke.StrictMode = Y, ke.Suspense = re, ke.isAsyncMode = P, ke.isConcurrentMode = q, ke.isContextConsumer = Z, ke.isContextProvider = pe, ke.isElement = me, ke.isForwardRef = de, ke.isFragment = te, ke.isLazy = B, ke.isMemo = Q, ke.isPortal = ae, ke.isProfiler = se, ke.isStrictMode = ce, ke.isSuspense = Se, ke.isValidElementType = $, ke.typeOf = A;
3231
3231
  }()), ke;
3232
3232
  }
3233
3233
  var gs;
@@ -3370,14 +3370,14 @@ function ld() {
3370
3370
  return Z;
3371
3371
  }
3372
3372
  var c = "<<anonymous>>", y = {
3373
- array: v("array"),
3374
- bigint: v("bigint"),
3375
- bool: v("boolean"),
3376
- func: v("function"),
3377
- number: v("number"),
3378
- object: v("object"),
3379
- string: v("string"),
3380
- symbol: v("symbol"),
3373
+ array: x("array"),
3374
+ bigint: x("bigint"),
3375
+ bool: x("boolean"),
3376
+ func: x("function"),
3377
+ number: x("number"),
3378
+ object: x("object"),
3379
+ string: x("string"),
3380
+ symbol: x("symbol"),
3381
3381
  any: b(),
3382
3382
  arrayOf: $,
3383
3383
  element: A(),
@@ -3385,7 +3385,7 @@ function ld() {
3385
3385
  instanceOf: _,
3386
3386
  node: h(),
3387
3387
  objectOf: R,
3388
- oneOf: D,
3388
+ oneOf: M,
3389
3389
  oneOfType: H,
3390
3390
  shape: L,
3391
3391
  exact: G
@@ -3420,7 +3420,7 @@ function ld() {
3420
3420
  var de = me.bind(null, !1);
3421
3421
  return de.isRequired = me.bind(null, !0), de;
3422
3422
  }
3423
- function v(q) {
3423
+ function x(q) {
3424
3424
  function Z(pe, me, de, te, B, Q) {
3425
3425
  var ae = pe[me], se = Y(ae);
3426
3426
  if (se !== q) {
@@ -3487,7 +3487,7 @@ function ld() {
3487
3487
  }
3488
3488
  return S(Z);
3489
3489
  }
3490
- function D(q) {
3490
+ function M(q) {
3491
3491
  if (!Array.isArray(q))
3492
3492
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3493
3493
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -5213,18 +5213,18 @@ function If(e = {}) {
5213
5213
  // For more details: https://github.com/mui/material-ui/pull/37908
5214
5214
  f && f !== "Root" && f !== "root" || !1
5215
5215
  ), S = c || !1;
5216
- let v = ya;
5217
- f === "Root" || f === "root" ? v = n : f ? v = i : Vf(s) && (v = void 0);
5216
+ let x = ya;
5217
+ f === "Root" || f === "root" ? x = n : f ? x = i : Vf(s) && (x = void 0);
5218
5218
  const b = vf(s, {
5219
- shouldForwardProp: v,
5219
+ shouldForwardProp: x,
5220
5220
  label: jf(u, f),
5221
5221
  ...k
5222
5222
  }), $ = (C) => {
5223
5223
  if (C.__emotion_real === C)
5224
5224
  return C;
5225
5225
  if (typeof C == "function")
5226
- return function(D) {
5227
- return ci(D, C);
5226
+ return function(M) {
5227
+ return ci(M, C);
5228
5228
  };
5229
5229
  if (Ut(C)) {
5230
5230
  const _ = Sc(C);
@@ -5234,7 +5234,7 @@ function If(e = {}) {
5234
5234
  }
5235
5235
  return C;
5236
5236
  }, A = (...C) => {
5237
- const _ = [], D = C.map($), R = [];
5237
+ const _ = [], M = C.map($), R = [];
5238
5238
  if (_.push(a), u && y && R.push(function(L) {
5239
5239
  var Y, re;
5240
5240
  const N = (re = (Y = L.theme.components) == null ? void 0 : Y[u]) == null ? void 0 : re.styleOverrides;
@@ -5248,12 +5248,12 @@ function If(e = {}) {
5248
5248
  var W, Y;
5249
5249
  const G = L.theme, N = (Y = (W = G == null ? void 0 : G.components) == null ? void 0 : W[u]) == null ? void 0 : Y.variants;
5250
5250
  return N ? Cc(L, N) : null;
5251
- }), S || R.push(xn), Array.isArray(D[0])) {
5252
- const j = D.shift(), L = new Array(_.length).fill(""), G = new Array(R.length).fill("");
5251
+ }), S || R.push(xn), Array.isArray(M[0])) {
5252
+ const j = M.shift(), L = new Array(_.length).fill(""), G = new Array(R.length).fill("");
5253
5253
  let N;
5254
5254
  N = [...L, ...j, ...G], N.raw = [...L, ...j.raw, ...G], _.unshift(N);
5255
5255
  }
5256
- const H = [..._, ...D, ...R], h = b(...H);
5256
+ const H = [..._, ...M, ...R], h = b(...H);
5257
5257
  return s.muiName && (h.muiName = s.muiName), process.env.NODE_ENV !== "production" && (h.displayName = Mf(u, f, s)), h;
5258
5258
  };
5259
5259
  return b.withConfig && (A.withConfig = b.withConfig), A;
@@ -5546,9 +5546,9 @@ function Xf(e, t = {}) {
5546
5546
  const {
5547
5547
  vars: C,
5548
5548
  css: _,
5549
- varsWithDefaults: D
5549
+ varsWithDefaults: M
5550
5550
  } = va(A, t);
5551
- c = wt(c, D), y[$] = {
5551
+ c = wt(c, M), y[$] = {
5552
5552
  css: _,
5553
5553
  vars: C
5554
5554
  };
@@ -5564,12 +5564,12 @@ function Xf(e, t = {}) {
5564
5564
  };
5565
5565
  }
5566
5566
  function S($, A) {
5567
- var _, D;
5567
+ var _, M;
5568
5568
  let C = i;
5569
5569
  if (i === "class" && (C = ".%s"), i === "data" && (C = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (C = `[${i}="%s"]`), $) {
5570
5570
  if (C === "media")
5571
5571
  return e.defaultColorScheme === $ ? ":root" : {
5572
- [`@media (prefers-color-scheme: ${((D = (_ = a[$]) == null ? void 0 : _.palette) == null ? void 0 : D.mode) || $})`]: {
5572
+ [`@media (prefers-color-scheme: ${((M = (_ = a[$]) == null ? void 0 : _.palette) == null ? void 0 : M.mode) || $})`]: {
5573
5573
  ":root": A
5574
5574
  }
5575
5575
  };
@@ -5605,7 +5605,7 @@ function Xf(e, t = {}) {
5605
5605
  }), f);
5606
5606
  const {
5607
5607
  [A]: _,
5608
- ...D
5608
+ ...M
5609
5609
  } = y;
5610
5610
  if (_) {
5611
5611
  const {
@@ -5620,7 +5620,7 @@ function Xf(e, t = {}) {
5620
5620
  ...L
5621
5621
  }), L);
5622
5622
  }
5623
- return Object.entries(D).forEach(([h, {
5623
+ return Object.entries(M).forEach(([h, {
5624
5624
  css: j
5625
5625
  }]) => {
5626
5626
  var N, W;
@@ -5850,8 +5850,8 @@ function Fo(e) {
5850
5850
  function p(m) {
5851
5851
  const S = Ms(m, Vs.text.primary) >= r ? Vs.text.primary : th.text.primary;
5852
5852
  if (process.env.NODE_ENV !== "production") {
5853
- const v = Ms(m, S);
5854
- v < 3 && console.error([`MUI: The contrast ratio of ${v}:1 for ${S} on ${m}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
5853
+ const x = Ms(m, S);
5854
+ x < 3 && console.error([`MUI: The contrast ratio of ${x}:1 for ${S} on ${m}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
5855
5855
  `));
5856
5856
  }
5857
5857
  return S;
@@ -5859,15 +5859,15 @@ function Fo(e) {
5859
5859
  const c = ({
5860
5860
  color: m,
5861
5861
  name: S,
5862
- mainShade: v = 500,
5862
+ mainShade: x = 500,
5863
5863
  lightShade: b = 300,
5864
5864
  darkShade: $ = 700
5865
5865
  }) => {
5866
5866
  if (m = {
5867
5867
  ...m
5868
- }, !m.main && m[v] && (m.main = m[v]), !m.hasOwnProperty("main"))
5868
+ }, !m.main && m[x] && (m.main = m[x]), !m.hasOwnProperty("main"))
5869
5869
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${S ? ` (${S})` : ""} provided to augmentColor(color) is invalid.
5870
- The color object needs to have a \`main\` property or a \`${v}\` property.` : br(11, S ? ` (${S})` : "", v));
5870
+ The color object needs to have a \`main\` property or a \`${x}\` property.` : br(11, S ? ` (${S})` : "", x));
5871
5871
  if (typeof m.main != "string")
5872
5872
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${S ? ` (${S})` : ""} provided to augmentColor(color) is invalid.
5873
5873
  \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
@@ -5992,16 +5992,16 @@ function ph(e, t) {
5992
5992
  ...p
5993
5993
  } = typeof t == "function" ? t(e) : t;
5994
5994
  process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof l != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
5995
- const c = n / 14, y = f || ((S) => `${S / l * c}rem`), k = (S, v, b, $, A) => ({
5995
+ const c = n / 14, y = f || ((S) => `${S / l * c}rem`), k = (S, x, b, $, A) => ({
5996
5996
  fontFamily: r,
5997
5997
  fontWeight: S,
5998
- fontSize: y(v),
5998
+ fontSize: y(x),
5999
5999
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
6000
6000
  lineHeight: b,
6001
6001
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
6002
6002
  // across font-families can cause issues with the kerning.
6003
6003
  ...r === Bs ? {
6004
- letterSpacing: `${uh($ / v)}em`
6004
+ letterSpacing: `${uh($ / x)}em`
6005
6005
  } : {},
6006
6006
  ...A,
6007
6007
  ...u
@@ -6172,20 +6172,20 @@ function Ka(e = {}, ...t) {
6172
6172
  });
6173
6173
  if (c = wt(c, u), c = t.reduce((y, k) => wt(y, k), c), process.env.NODE_ENV !== "production") {
6174
6174
  const y = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], k = (m, S) => {
6175
- let v;
6176
- for (v in m) {
6177
- const b = m[v];
6178
- if (y.includes(v) && Object.keys(b).length > 0) {
6175
+ let x;
6176
+ for (x in m) {
6177
+ const b = m[x];
6178
+ if (y.includes(x) && Object.keys(b).length > 0) {
6179
6179
  if (process.env.NODE_ENV !== "production") {
6180
- const $ = Cr("", v);
6181
- console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${v}\` internal state.`, "You can not override it like this: ", JSON.stringify(m, null, 2), "", `Instead, you need to use the '&.${$}' syntax:`, JSON.stringify({
6180
+ const $ = Cr("", x);
6181
+ console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${x}\` internal state.`, "You can not override it like this: ", JSON.stringify(m, null, 2), "", `Instead, you need to use the '&.${$}' syntax:`, JSON.stringify({
6182
6182
  root: {
6183
6183
  [`&.${$}`]: b
6184
6184
  }
6185
6185
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
6186
6186
  `));
6187
6187
  }
6188
- m[v] = {};
6188
+ m[x] = {};
6189
6189
  }
6190
6190
  }
6191
6191
  };
@@ -6363,14 +6363,14 @@ function Rh(e = {}, ...t) {
6363
6363
  light: k,
6364
6364
  dark: m,
6365
6365
  ...S
6366
- } = r, v = {
6366
+ } = r, x = {
6367
6367
  ...S
6368
6368
  };
6369
6369
  let b = y;
6370
6370
  if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (b = !0), !b)
6371
6371
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : br(21, p));
6372
- const $ = xa(v, b, u, p);
6373
- k && !v.light && xa(v, k, void 0, "light"), m && !v.dark && xa(v, m, void 0, "dark");
6372
+ const $ = xa(x, b, u, p);
6373
+ k && !x.light && xa(x, k, void 0, "light"), m && !x.dark && xa(x, m, void 0, "dark");
6374
6374
  let A = {
6375
6375
  defaultColorScheme: p,
6376
6376
  ...$,
@@ -6378,7 +6378,7 @@ function Rh(e = {}, ...t) {
6378
6378
  colorSchemeSelector: s,
6379
6379
  rootSelector: l,
6380
6380
  getCssVar: c,
6381
- colorSchemes: v,
6381
+ colorSchemes: x,
6382
6382
  font: {
6383
6383
  ...lh($.typography),
6384
6384
  ...$.font
@@ -6412,12 +6412,12 @@ function Rh(e = {}, ...t) {
6412
6412
  getSelector: Ah(A)
6413
6413
  }, {
6414
6414
  vars: _,
6415
- generateThemeVars: D,
6415
+ generateThemeVars: M,
6416
6416
  generateStyleSheets: R
6417
6417
  } = Xf(A, C);
6418
6418
  return A.vars = _, Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([H, h]) => {
6419
6419
  A[H] = h;
6420
- }), A.generateThemeVars = D, A.generateStyleSheets = R, A.generateSpacing = function() {
6420
+ }), A.generateThemeVars = M, A.generateStyleSheets = R, A.generateSpacing = function() {
6421
6421
  return bc(u.spacing, So(this));
6422
6422
  }, A.getColorSchemeSelector = Jf(s), A.spacing = A.generateSpacing(), A.shouldSkipGeneratingVar = o, A.unstable_sxConfig = {
6423
6423
  ...Hn,
@@ -6665,9 +6665,9 @@ const zh = {
6665
6665
  paragraph: c,
6666
6666
  variant: y,
6667
6667
  variantMapping: k
6668
- }, v = u || (c ? "p" : k[y] || Us[y]) || "span", b = Nh(S);
6668
+ }, x = u || (c ? "p" : k[y] || Us[y]) || "span", b = Nh(S);
6669
6669
  return /* @__PURE__ */ d(Lh, {
6670
- as: v,
6670
+ as: x,
6671
6671
  ref: r,
6672
6672
  className: lt(b.root, l),
6673
6673
  ...m,
@@ -7015,13 +7015,13 @@ const Yh = (e) => {
7015
7015
  },
7016
7016
  // TODO v5 deprecate color prop, v6 remove for sx
7017
7017
  ...Object.entries((e.vars ?? e).palette).filter(([, m]) => m && m.main).map(([m]) => {
7018
- var S, v;
7018
+ var S, x;
7019
7019
  return {
7020
7020
  props: {
7021
7021
  color: m
7022
7022
  },
7023
7023
  style: {
7024
- color: (v = (S = (e.vars ?? e).palette) == null ? void 0 : S[m]) == null ? void 0 : v.main
7024
+ color: (x = (S = (e.vars ?? e).palette) == null ? void 0 : S[m]) == null ? void 0 : x.main
7025
7025
  }
7026
7026
  };
7027
7027
  }),
@@ -7077,10 +7077,10 @@ const Yh = (e) => {
7077
7077
  hasSvgAsChild: k
7078
7078
  }, S = {};
7079
7079
  f || (S.viewBox = c);
7080
- const v = Yh(m);
7080
+ const x = Yh(m);
7081
7081
  return /* @__PURE__ */ ee(Qh, {
7082
7082
  as: s,
7083
- className: lt(v.root, a),
7083
+ className: lt(x.root, a),
7084
7084
  focusable: "false",
7085
7085
  color: u,
7086
7086
  "aria-hidden": p ? void 0 : !0,
@@ -7731,7 +7731,7 @@ const At = Lr("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
7731
7731
  const {
7732
7732
  pulsate: C,
7733
7733
  rippleX: _,
7734
- rippleY: D,
7734
+ rippleY: M,
7735
7735
  rippleSize: R,
7736
7736
  cb: H
7737
7737
  } = A;
@@ -7747,13 +7747,13 @@ const At = Lr("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
7747
7747
  timeout: Ga,
7748
7748
  pulsate: C,
7749
7749
  rippleX: _,
7750
- rippleY: D,
7750
+ rippleY: M,
7751
7751
  rippleSize: R
7752
7752
  }, f.current)]), f.current += 1, p.current = H;
7753
- }, [a]), v = ie.useCallback((A = {}, C = {}, _ = () => {
7753
+ }, [a]), x = ie.useCallback((A = {}, C = {}, _ = () => {
7754
7754
  }) => {
7755
7755
  const {
7756
- pulsate: D = !1,
7756
+ pulsate: M = !1,
7757
7757
  center: R = i || C.pulsate,
7758
7758
  fakeElement: H = !1
7759
7759
  // For test purposes
@@ -7787,7 +7787,7 @@ const At = Lr("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
7787
7787
  }
7788
7788
  A != null && A.touches ? k.current === null && (k.current = () => {
7789
7789
  S({
7790
- pulsate: D,
7790
+ pulsate: M,
7791
7791
  rippleX: L,
7792
7792
  rippleY: G,
7793
7793
  rippleSize: N,
@@ -7796,17 +7796,17 @@ const At = Lr("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
7796
7796
  }, y.start(gm, () => {
7797
7797
  k.current && (k.current(), k.current = null);
7798
7798
  })) : S({
7799
- pulsate: D,
7799
+ pulsate: M,
7800
7800
  rippleX: L,
7801
7801
  rippleY: G,
7802
7802
  rippleSize: N,
7803
7803
  cb: _
7804
7804
  });
7805
7805
  }, [i, S, y]), b = ie.useCallback(() => {
7806
- v({}, {
7806
+ x({}, {
7807
7807
  pulsate: !0
7808
7808
  });
7809
- }, [v]), $ = ie.useCallback((A, C) => {
7809
+ }, [x]), $ = ie.useCallback((A, C) => {
7810
7810
  if (y.clear(), (A == null ? void 0 : A.type) === "touchend" && k.current) {
7811
7811
  k.current(), k.current = null, y.start(0, () => {
7812
7812
  $(A, C);
@@ -7817,9 +7817,9 @@ const At = Lr("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
7817
7817
  }, [y]);
7818
7818
  return ie.useImperativeHandle(r, () => ({
7819
7819
  pulsate: b,
7820
- start: v,
7820
+ start: x,
7821
7821
  stop: $
7822
- }), [b, v, $]), /* @__PURE__ */ d(bm, {
7822
+ }), [b, x, $]), /* @__PURE__ */ d(bm, {
7823
7823
  className: lt(At.root, a.root, o),
7824
7824
  ref: m,
7825
7825
  ...s,
@@ -7918,13 +7918,13 @@ const Cm = Lr("MuiButtonBase", ["root", "disabled", "focusVisible"]), Em = (e) =
7918
7918
  LinkComponent: k = "a",
7919
7919
  onBlur: m,
7920
7920
  onClick: S,
7921
- onContextMenu: v,
7921
+ onContextMenu: x,
7922
7922
  onDragLeave: b,
7923
7923
  onFocus: $,
7924
7924
  onFocusVisible: A,
7925
7925
  onKeyDown: C,
7926
7926
  onKeyUp: _,
7927
- onMouseDown: D,
7927
+ onMouseDown: M,
7928
7928
  onMouseLeave: R,
7929
7929
  onMouseUp: H,
7930
7930
  onTouchEnd: h,
@@ -7945,7 +7945,7 @@ const Cm = Lr("MuiButtonBase", ["root", "disabled", "focusVisible"]), Em = (e) =
7945
7945
  ie.useEffect(() => {
7946
7946
  Z && c && !f && P.pulsate();
7947
7947
  }, [f, c, Z, P]);
7948
- const de = Qt(P, "start", D, p), te = Qt(P, "stop", v, p), B = Qt(P, "stop", b, p), Q = Qt(P, "stop", H, p), ae = Qt(P, "stop", (g) => {
7948
+ const de = Qt(P, "start", M, p), te = Qt(P, "stop", x, p), B = Qt(P, "stop", b, p), Q = Qt(P, "stop", H, p), ae = Qt(P, "stop", (g) => {
7949
7949
  Z && g.preventDefault(), R && R(g);
7950
7950
  }, p), se = Qt(P, "start", L, p), ce = Qt(P, "stop", h, p), Se = Qt(P, "stop", j, p), X = Qt(P, "stop", (g) => {
7951
7951
  Zs(g.target) || pe(!1), m && m(g);
@@ -8313,10 +8313,10 @@ const nr = 44, Za = Ln`
8313
8313
  thickness: u,
8314
8314
  value: f,
8315
8315
  variant: p
8316
- }, k = Om(y), m = {}, S = {}, v = {};
8316
+ }, k = Om(y), m = {}, S = {}, x = {};
8317
8317
  if (p === "determinate") {
8318
8318
  const b = 2 * Math.PI * ((nr - u) / 2);
8319
- m.strokeDasharray = b.toFixed(3), v["aria-valuenow"] = Math.round(f), m.strokeDashoffset = `${((100 - f) / 100 * b).toFixed(3)}px`, S.transform = "rotate(-90deg)";
8319
+ m.strokeDasharray = b.toFixed(3), x["aria-valuenow"] = Math.round(f), m.strokeDashoffset = `${((100 - f) / 100 * b).toFixed(3)}px`, S.transform = "rotate(-90deg)";
8320
8320
  }
8321
8321
  return /* @__PURE__ */ d(_m, {
8322
8322
  className: lt(k.root, i),
@@ -8329,7 +8329,7 @@ const nr = 44, Za = Ln`
8329
8329
  ownerState: y,
8330
8330
  ref: r,
8331
8331
  role: "progressbar",
8332
- ...v,
8332
+ ...x,
8333
8333
  ...c,
8334
8334
  children: /* @__PURE__ */ d(Rm, {
8335
8335
  className: k.svg,
@@ -8577,7 +8577,7 @@ const el = Lr("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
8577
8577
  "aria-labelledby": m,
8578
8578
  color: "inherit",
8579
8579
  size: 16
8580
- }), v = {
8580
+ }), x = {
8581
8581
  ...n,
8582
8582
  edge: i,
8583
8583
  color: s,
@@ -8586,7 +8586,7 @@ const el = Lr("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
8586
8586
  loading: c,
8587
8587
  loadingIndicator: S,
8588
8588
  size: f
8589
- }, b = Dm(v);
8589
+ }, b = Dm(x);
8590
8590
  return /* @__PURE__ */ ee(Im, {
8591
8591
  id: c ? m : p,
8592
8592
  className: lt(b.root, o),
@@ -8595,7 +8595,7 @@ const el = Lr("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
8595
8595
  disabled: l || c,
8596
8596
  ref: r,
8597
8597
  ...k,
8598
- ownerState: v,
8598
+ ownerState: x,
8599
8599
  children: [typeof c == "boolean" && // use plain HTML span to minimize the runtime overhead
8600
8600
  /* @__PURE__ */ d("span", {
8601
8601
  className: b.loadingWrapper,
@@ -8604,7 +8604,7 @@ const el = Lr("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
8604
8604
  },
8605
8605
  children: /* @__PURE__ */ d(Mm, {
8606
8606
  className: b.loadingIndicator,
8607
- ownerState: v,
8607
+ ownerState: x,
8608
8608
  children: c && S
8609
8609
  })
8610
8610
  }), a]
@@ -8880,7 +8880,7 @@ const Dt = ({
8880
8880
  endorsementPaddingX: f = "8px",
8881
8881
  ...p
8882
8882
  }) => {
8883
- var S, v;
8883
+ var S, x;
8884
8884
  const c = Xi(), y = !!r, k = a ? /* @__PURE__ */ d(
8885
8885
  K,
8886
8886
  {
@@ -8909,7 +8909,7 @@ const Dt = ({
8909
8909
  endAdornment: k || i ? /* @__PURE__ */ ee(Ou, { sx: { mr: -1 }, position: "end", children: [
8910
8910
  k || i,
8911
8911
  (S = p.InputProps) == null ? void 0 : S.endAdornment
8912
- ] }) : (v = p.InputProps) == null ? void 0 : v.endAdornment
8912
+ ] }) : (x = p.InputProps) == null ? void 0 : x.endAdornment
8913
8913
  };
8914
8914
  return /* @__PURE__ */ ee(K, { children: [
8915
8915
  y && /* @__PURE__ */ d(
@@ -9037,8 +9037,8 @@ const Dt = ({
9037
9037
  const S = m;
9038
9038
  if (y)
9039
9039
  return /* @__PURE__ */ d("span", { style: { color: p.textSecondary }, children: s ?? "" });
9040
- const v = r.find((b) => b.value === S);
9041
- return (v == null ? void 0 : v.label) ?? String(S);
9040
+ const x = r.find((b) => b.value === S);
9041
+ return (x == null ? void 0 : x.label) ?? String(S);
9042
9042
  },
9043
9043
  endAdornment: n ? /* @__PURE__ */ d(vn, { size: 20 }) : void 0,
9044
9044
  MenuProps: {
@@ -9124,7 +9124,7 @@ const Dt = ({
9124
9124
  noOptionsText: k,
9125
9125
  sx: m
9126
9126
  }) => {
9127
- const S = Xi(), v = (b) => /* @__PURE__ */ d(
9127
+ const S = Xi(), x = (b) => /* @__PURE__ */ d(
9128
9128
  "svg",
9129
9129
  {
9130
9130
  width: "16",
@@ -9166,7 +9166,7 @@ const Dt = ({
9166
9166
  value: r,
9167
9167
  multiple: n,
9168
9168
  size: "small",
9169
- popupIcon: /* @__PURE__ */ d(v, {}),
9169
+ popupIcon: /* @__PURE__ */ d(x, {}),
9170
9170
  disabled: u,
9171
9171
  loading: f,
9172
9172
  onOpen: y,
@@ -9299,7 +9299,7 @@ const Dt = ({
9299
9299
  itemGap: p = 1,
9300
9300
  disabled: c = !1
9301
9301
  }) => {
9302
- const y = typeof i == "number" && i > 0, k = y ? i : 12, m = i === !0, S = i === !1 && !y, v = (b, $) => {
9302
+ const y = typeof i == "number" && i > 0, k = y ? i : 12, m = i === !0, S = i === !1 && !y, x = (b, $) => {
9303
9303
  const A = Array.isArray(r) ? [...r] : [];
9304
9304
  $ ? A.includes(b) || a([...A, b]) : a(A.filter((C) => C !== b));
9305
9305
  };
@@ -9371,7 +9371,7 @@ const Dt = ({
9371
9371
  {
9372
9372
  size: "small",
9373
9373
  checked: $,
9374
- onChange: (A) => v(b.value, A.target.checked),
9374
+ onChange: (A) => x(b.value, A.target.checked),
9375
9375
  disabled: c,
9376
9376
  sx: (A) => ({
9377
9377
  color: A.palette.text.secondary,
@@ -9416,7 +9416,7 @@ const Dt = ({
9416
9416
  {
9417
9417
  size: "small",
9418
9418
  checked: $,
9419
- onChange: (A) => v(b.value, A.target.checked),
9419
+ onChange: (A) => x(b.value, A.target.checked),
9420
9420
  disabled: c,
9421
9421
  sx: (A) => ({
9422
9422
  color: A.palette.text.secondary,
@@ -9460,7 +9460,7 @@ const Dt = ({
9460
9460
  {
9461
9461
  size: "small",
9462
9462
  checked: $,
9463
- onChange: (A) => v(b.value, A.target.checked),
9463
+ onChange: (A) => x(b.value, A.target.checked),
9464
9464
  disabled: c,
9465
9465
  sx: (A) => ({
9466
9466
  color: A.palette.text.secondary,
@@ -9767,9 +9767,9 @@ function Ym({
9767
9767
  onEmptyStateButtonClick: k,
9768
9768
  emptyStateSx: m
9769
9769
  }) {
9770
- const [S, v] = le.useState(null), [b, $] = le.useState(null), A = (h) => (j) => {
9770
+ const [S, x] = le.useState(null), [b, $] = le.useState(null), A = (h) => (j) => {
9771
9771
  if (!i) {
9772
- v(h), j.dataTransfer.effectAllowed = "move";
9772
+ x(h), j.dataTransfer.effectAllowed = "move";
9773
9773
  try {
9774
9774
  j.dataTransfer.setData("text/plain", String(t(e[h])));
9775
9775
  } catch {
@@ -9780,13 +9780,13 @@ function Ym({
9780
9780
  }, _ = (h) => (j) => {
9781
9781
  if (i) return;
9782
9782
  if (j.preventDefault(), S === null || S === h) {
9783
- v(null), $(null);
9783
+ x(null), $(null);
9784
9784
  return;
9785
9785
  }
9786
9786
  const L = [...e], [G] = L.splice(S, 1);
9787
- L.splice(h, 0, G), v(null), $(null), r(L);
9788
- }, D = () => {
9789
- v(null), $(null);
9787
+ L.splice(h, 0, G), x(null), $(null), r(L);
9788
+ }, M = () => {
9789
+ x(null), $(null);
9790
9790
  }, R = e.length === 0;
9791
9791
  return /* @__PURE__ */ ee(
9792
9792
  K,
@@ -9871,7 +9871,7 @@ function Ym({
9871
9871
  onDragStart: A(j),
9872
9872
  onDragOver: C(j),
9873
9873
  onDrop: _(j),
9874
- onDragEnd: D,
9874
+ onDragEnd: M,
9875
9875
  sx: (N) => ({
9876
9876
  userSelect: "none",
9877
9877
  cursor: i ? "default" : "grab",
@@ -10458,28 +10458,28 @@ const Qm = Et(jl)(({ theme: e }) => {
10458
10458
  emptyCardSx: k,
10459
10459
  setValue: m,
10460
10460
  rowSelectionMode: S,
10461
- rowSelectionKey: v
10461
+ rowSelectionKey: x
10462
10462
  }) => {
10463
- const { fields: b, append: $, remove: A } = vp({ control: u, name: e }), _ = !(typeof i == "number" ? b.length >= i : !1), D = le.useMemo(() => {
10464
- if (v) return v;
10463
+ const { fields: b, append: $, remove: A } = vp({ control: u, name: e }), _ = !(typeof i == "number" ? b.length >= i : !1), M = le.useMemo(() => {
10464
+ if (x) return x;
10465
10465
  const W = t.find((Y) => Y.type === "rowSelect");
10466
10466
  return W == null ? void 0 : W.key;
10467
- }, [t, v]), R = Yl({ control: u, name: e }) || [], H = le.useMemo(() => {
10468
- if (!D) return {};
10467
+ }, [t, x]), R = Yl({ control: u, name: e }) || [], H = le.useMemo(() => {
10468
+ if (!M) return {};
10469
10469
  const W = {};
10470
10470
  return R.forEach((Y, re) => {
10471
- W[re] = !!(Y != null && Y[D]);
10471
+ W[re] = !!(Y != null && Y[M]);
10472
10472
  }), W;
10473
- }, [R, D]), h = le.useCallback((W) => H[W] === !0, [H]), j = le.useCallback((W, Y) => {
10474
- if (!m || !D) return;
10475
- const re = `${e}.${W}.${D}`;
10473
+ }, [R, M]), h = le.useCallback((W) => H[W] === !0, [H]), j = le.useCallback((W, Y) => {
10474
+ if (!m || !M) return;
10475
+ const re = `${e}.${W}.${M}`;
10476
10476
  S === "single" && Y && R.forEach((ue, P) => {
10477
10477
  if (P !== W) {
10478
- const q = `${e}.${P}.${D}`;
10478
+ const q = `${e}.${P}.${M}`;
10479
10479
  m(q, !1, { shouldDirty: !0 });
10480
10480
  }
10481
10481
  }), m(re, Y, { shouldDirty: !0 });
10482
- }, [e, D, S, m, R]), L = (W) => {
10482
+ }, [e, M, S, m, R]), L = (W) => {
10483
10483
  const Y = { ...W || r };
10484
10484
  t.forEach((re) => {
10485
10485
  re.value !== void 0 && Y[re.key] === void 0 && (Y[re.key] = typeof re.value == "function" ? re.value(Y, b.length) : re.value);
@@ -10731,7 +10731,7 @@ const Qm = Et(jl)(({ theme: e }) => {
10731
10731
  return /* @__PURE__ */ ee(Ko, { children: [
10732
10732
  t.map((P) => {
10733
10733
  var de;
10734
- const q = `${e}.${Y}.${P.key}`, Z = P.type === "rowSelect" || P.key === D, pe = Z ? !1 : ue ? !0 : typeof P.disabled == "function" ? P.disabled(W, Y) : !!P.disabled;
10734
+ const q = `${e}.${Y}.${P.key}`, Z = P.type === "rowSelect" || P.key === M, pe = Z ? !1 : ue ? !0 : typeof P.disabled == "function" ? P.disabled(W, Y) : !!P.disabled;
10735
10735
  if (P.type === "index") {
10736
10736
  const te = P.indexFormat ? P.indexFormat(Y) : `#${Y + 1}`;
10737
10737
  return /* @__PURE__ */ d(
@@ -11520,8 +11520,8 @@ async function ng(e, t, r, n) {
11520
11520
  if (t && !i.startsWith("http") && (y = `${t}${i.startsWith("/") ? i : `/${i}`}`), n) {
11521
11521
  const A = /\{([^}]+)\}/g;
11522
11522
  y = y.replace(A, (C, _) => {
11523
- const D = n[_];
11524
- return D != null ? encodeURIComponent(String(D)) : "";
11523
+ const M = n[_];
11524
+ return M != null ? encodeURIComponent(String(M)) : "";
11525
11525
  }), y = y.replace(/\?&/g, "?").replace(/&&/g, "&").replace(/\?$/g, "");
11526
11526
  }
11527
11527
  const k = new URLSearchParams();
@@ -11530,8 +11530,8 @@ async function ng(e, t, r, n) {
11530
11530
  }), k.toString() && (y += `${y.includes("?") ? "&" : "?"}${k.toString()}`);
11531
11531
  try {
11532
11532
  const A = /^https?:\/\//i.test(y), C = new URL(y, A ? void 0 : "http://local.placeholder"), _ = Array.from(C.searchParams.entries());
11533
- for (const [D, R] of _)
11534
- (R === "" || R === "undefined" || R === "null") && C.searchParams.delete(D);
11533
+ for (const [M, R] of _)
11534
+ (R === "" || R === "undefined" || R === "null") && C.searchParams.delete(M);
11535
11535
  A ? y = C.toString() : y = C.pathname + (C.search ? C.search : ""), y = y.replace(/\?&/g, "?").replace(/&&/g, "&").replace(/\?$/g, "");
11536
11536
  } catch {
11537
11537
  }
@@ -11544,10 +11544,10 @@ async function ng(e, t, r, n) {
11544
11544
  headers: m
11545
11545
  };
11546
11546
  (a === "POST" || a === "PUT") && f && (S.body = JSON.stringify(f));
11547
- const v = await fetch(y, S);
11548
- if (!v.ok)
11549
- throw new Error(`API request failed: ${v.status} ${v.statusText}`);
11550
- const b = await v.json();
11547
+ const x = await fetch(y, S);
11548
+ if (!x.ok)
11549
+ throw new Error(`API request failed: ${x.status} ${x.statusText}`);
11550
+ const b = await x.json();
11551
11551
  if (p)
11552
11552
  return p(Array.isArray(b) ? b : b.data || b);
11553
11553
  const $ = Array.isArray(b) ? b : b.data || b;
@@ -11559,8 +11559,8 @@ async function ng(e, t, r, n) {
11559
11559
  value: A[o] || A.id || A.value || ""
11560
11560
  }, _ = Array.isArray(c) ? c : void 0;
11561
11561
  if (Array.isArray(_))
11562
- for (const D of _)
11563
- A[D] !== void 0 && (C[D] = A[D]);
11562
+ for (const M of _)
11563
+ A[M] !== void 0 && (C[M] = A[M]);
11564
11564
  return C;
11565
11565
  });
11566
11566
  } catch (i) {
@@ -11639,7 +11639,7 @@ const Kc = ({
11639
11639
  formData: a,
11640
11640
  setValue: o
11641
11641
  }) => {
11642
- const s = r[e.name], l = !!s, [u, f] = Ot(!1), p = xt(!1), [c, y] = Ot(!1), [k, m] = Ot(!1), [S, v] = Ot(!1), b = xt(null), $ = xt(null), A = () => {
11642
+ const s = r[e.name], l = !!s, [u, f] = Ot(!1), p = xt(!1), [c, y] = Ot(!1), [k, m] = Ot(!1), [S, x] = Ot(!1), b = xt(null), $ = xt(null), A = () => {
11643
11643
  var ae;
11644
11644
  const B = e.required;
11645
11645
  if (typeof B == "function")
@@ -11668,7 +11668,7 @@ const Kc = ({
11668
11668
  return e.value;
11669
11669
  }
11670
11670
  return e.type === "checkbox" ? !1 : e.type === "select" && e.default ? e.default : e.type === "autocomplete" && e.multiple ? [] : "";
11671
- }, D = xt(void 0);
11671
+ }, M = xt(void 0);
11672
11672
  Rt(() => {
11673
11673
  const B = e.value;
11674
11674
  if (typeof B != "function" || !o) return;
@@ -11679,12 +11679,12 @@ const Kc = ({
11679
11679
  return;
11680
11680
  }
11681
11681
  const ae = a ? a[e.name] : void 0;
11682
- if (D.current === void 0 && (D.current = Q), ae === void 0 || ae === D.current)
11682
+ if (M.current === void 0 && (M.current = Q), ae === void 0 || ae === M.current)
11683
11683
  try {
11684
11684
  o(e.name, Q, {
11685
11685
  shouldValidate: !0,
11686
11686
  shouldDirty: !1
11687
- }), D.current = Q;
11687
+ }), M.current = Q;
11688
11688
  } catch {
11689
11689
  }
11690
11690
  }, [
@@ -11890,13 +11890,13 @@ const Kc = ({
11890
11890
  }
11891
11891
  ), Pt = (T) => {
11892
11892
  if (e.cardWrap) {
11893
- const I = { ...{
11893
+ const D = { ...{
11894
11894
  px: 2,
11895
11895
  py: 1,
11896
11896
  boxShadow: "none",
11897
11897
  border: "1px solid #DDDDDD"
11898
11898
  }, ...e.cardSx };
11899
- return /* @__PURE__ */ d(ht, { sx: I, ...e.cardProps, children: T });
11899
+ return /* @__PURE__ */ d(ht, { sx: D, ...e.cardProps, children: T });
11900
11900
  }
11901
11901
  return T;
11902
11902
  };
@@ -11935,19 +11935,19 @@ const Kc = ({
11935
11935
  control: t,
11936
11936
  defaultValue: e.defaultValue ?? (typeof ((Q = (B = e.items) == null ? void 0 : B[0]) == null ? void 0 : Q.value) == "string" || typeof ((se = (ae = e.items) == null ? void 0 : ae[0]) == null ? void 0 : se.value) == "number" ? (Se = (ce = e.items) == null ? void 0 : ce[0]) == null ? void 0 : Se.value : 0),
11937
11937
  render: ({ field: T }) => {
11938
- const g = e.items || [], I = g.map((M, U) => ({
11939
- label: M.label,
11940
- value: typeof M.value == "string" || typeof M.value == "number" ? M.value : U,
11941
- content: M.content,
11942
- disabled: M.disabled
11943
- })), x = T.value, F = (() => {
11944
- if (typeof x == "string" || typeof x == "number") {
11945
- const M = g.findIndex(
11946
- (U, he) => typeof U.value == "string" || typeof U.value == "number" ? U.value === x : he === x
11938
+ const g = e.items || [], D = g.map((I, U) => ({
11939
+ label: I.label,
11940
+ value: typeof I.value == "string" || typeof I.value == "number" ? I.value : U,
11941
+ content: I.content,
11942
+ disabled: I.disabled
11943
+ })), v = T.value, F = (() => {
11944
+ if (typeof v == "string" || typeof v == "number") {
11945
+ const I = g.findIndex(
11946
+ (U, he) => typeof U.value == "string" || typeof U.value == "number" ? U.value === v : he === v
11947
11947
  );
11948
- return M >= 0 ? M : 0;
11948
+ return I >= 0 ? I : 0;
11949
11949
  }
11950
- return Number(x) || 0;
11950
+ return Number(v) || 0;
11951
11951
  })(), z = g[F] || {};
11952
11952
  return /* @__PURE__ */ ee(K, { children: [
11953
11953
  /* @__PURE__ */ d(
@@ -11955,19 +11955,19 @@ const Kc = ({
11955
11955
  {
11956
11956
  value: T.value,
11957
11957
  onChange: T.onChange,
11958
- items: I,
11958
+ items: D,
11959
11959
  ariaLabel: e.ariaLabel || e.label,
11960
11960
  sx: e.sx,
11961
11961
  tabSx: e.tabSx
11962
11962
  }
11963
11963
  ),
11964
11964
  Array.isArray(z.fields) && z.fields.length > 0 && (() => {
11965
- const M = z.fields, U = [];
11965
+ const I = z.fields, U = [];
11966
11966
  let he = [];
11967
- for (const ye of M)
11968
- ye.type === "section" && he.length > 0 ? (U.push(he), he = [ye]) : he.push(ye);
11967
+ for (const ve of I)
11968
+ ve.type === "section" && he.length > 0 ? (U.push(he), he = [ve]) : he.push(ve);
11969
11969
  he.length > 0 && U.push(he);
11970
- const ve = {
11970
+ const ye = {
11971
11971
  p: 2,
11972
11972
  boxShadow: "0px 1px 4px 0px #00000029",
11973
11973
  background: "#FFFFFF",
@@ -11978,10 +11978,10 @@ const Kc = ({
11978
11978
  width: "100%",
11979
11979
  mt: 1
11980
11980
  };
11981
- return /* @__PURE__ */ d(K, { sx: { mt: 1 }, children: U.map((ye, We) => {
11982
- const Pe = ye.find(
11981
+ return /* @__PURE__ */ d(K, { sx: { mt: 1 }, children: U.map((ve, We) => {
11982
+ const Pe = ve.find(
11983
11983
  (Ne) => Ne.type === "section"
11984
- ), ct = (Pe == null ? void 0 : Pe.cardWrap) !== !1, yt = /* @__PURE__ */ d(Di, { children: ye.map((Ne) => {
11984
+ ), ct = (Pe == null ? void 0 : Pe.cardWrap) !== !1, yt = /* @__PURE__ */ d(Di, { children: ve.map((Ne) => {
11985
11985
  const ne = Ne.showWhen;
11986
11986
  if (ne)
11987
11987
  try {
@@ -12023,7 +12023,7 @@ const Kc = ({
12023
12023
  ht,
12024
12024
  {
12025
12025
  sx: {
12026
- ...ve,
12026
+ ...ye,
12027
12027
  ...(Pe == null ? void 0 : Pe.cardSx) || {}
12028
12028
  },
12029
12029
  ...(Pe == null ? void 0 : Pe.cardProps) || {},
@@ -12102,19 +12102,19 @@ const Kc = ({
12102
12102
  control: t,
12103
12103
  defaultValue: e.items || [],
12104
12104
  render: ({ field: T }) => {
12105
- const g = e, I = T.value || g.items || [], x = typeof g.getId == "function" ? g.getId : typeof g.getId == "string" ? (M) => M[g.getId] : (M) => M.id ?? M._id ?? M.key ?? String(M), F = typeof g.getText == "function" ? g.getText : typeof g.getText == "string" ? (M) => M[g.getText] ?? String(M) : (M) => M.text ?? M.label ?? M.name ?? M.title ?? String(M), z = (() => {
12105
+ const g = e, D = T.value || g.items || [], v = typeof g.getId == "function" ? g.getId : typeof g.getId == "string" ? (I) => I[g.getId] : (I) => I.id ?? I._id ?? I.key ?? String(I), F = typeof g.getText == "function" ? g.getText : typeof g.getText == "string" ? (I) => I[g.getText] ?? String(I) : (I) => I.text ?? I.label ?? I.name ?? I.title ?? String(I), z = (() => {
12106
12106
  if (typeof g.chipText == "function")
12107
12107
  return g.chipText;
12108
12108
  if (typeof g.chipText == "string")
12109
- return I.length > 0 && I[0] && g.chipText in I[0] ? (M, U) => M[g.chipText] ?? void 0 : g.chipText;
12109
+ return D.length > 0 && D[0] && g.chipText in D[0] ? (I, U) => I[g.chipText] ?? void 0 : g.chipText;
12110
12110
  })();
12111
12111
  return /* @__PURE__ */ d(
12112
12112
  Ym,
12113
12113
  {
12114
- items: I,
12115
- getId: x,
12116
- onReorder: (M) => {
12117
- T.onChange(M);
12114
+ items: D,
12115
+ getId: v,
12116
+ onReorder: (I) => {
12117
+ T.onChange(I);
12118
12118
  },
12119
12119
  header: g.header,
12120
12120
  disabled: e.disabled,
@@ -12232,12 +12232,12 @@ const Kc = ({
12232
12232
  control: t,
12233
12233
  defaultValue: _(),
12234
12234
  render: ({ field: T }) => {
12235
- const g = typeof e.disabled == "function" ? !!e.disabled(a || {}) : !!e.disabled, I = e.disableWhenEmptyOptions === !0 && Array.isArray(Ke) && Ke.length === 0, x = g || I || re, F = T.value, z = (() => {
12235
+ const g = typeof e.disabled == "function" ? !!e.disabled(a || {}) : !!e.disabled, D = e.disableWhenEmptyOptions === !0 && Array.isArray(Ke) && Ke.length === 0, v = g || D || re, F = T.value, z = (() => {
12236
12236
  if (Array.isArray(Ke) && Ke.length > 0) {
12237
- const M = Ke.find(
12237
+ const I = Ke.find(
12238
12238
  (U) => String(U == null ? void 0 : U.value) === String(F)
12239
12239
  );
12240
- return M ? M.value : F;
12240
+ return I ? I.value : F;
12241
12241
  }
12242
12242
  return F;
12243
12243
  })();
@@ -12250,7 +12250,7 @@ const Kc = ({
12250
12250
  value: z,
12251
12251
  onChange: T.onChange,
12252
12252
  options: Ke,
12253
- disabled: x,
12253
+ disabled: v,
12254
12254
  placeholder: e.labelPosition === "inner" || e.labelPosition === "none" || !e.labelPosition ? e.placeholder || (e.labelPosition === "none" ? C(e.label) : void 0) : e.placeholder,
12255
12255
  loading: re,
12256
12256
  error: l || !!ue,
@@ -12376,35 +12376,35 @@ const Kc = ({
12376
12376
  control: t,
12377
12377
  defaultValue: _(),
12378
12378
  render: ({ field: T }) => {
12379
- const g = T.value, I = e.multiple === !0, x = (R == null ? void 0 : R.valueField) || e.value_field || "value", F = (M) => {
12380
- if (M != null) {
12381
- if (typeof M == "string" || typeof M == "number")
12382
- return M;
12383
- if (typeof M == "object") {
12384
- if (M[x] !== void 0)
12385
- return M[x];
12386
- if (M.value !== void 0)
12387
- return M.value;
12388
- if (M.id !== void 0) return M.id;
12379
+ const g = T.value, D = e.multiple === !0, v = (R == null ? void 0 : R.valueField) || e.value_field || "value", F = (I) => {
12380
+ if (I != null) {
12381
+ if (typeof I == "string" || typeof I == "number")
12382
+ return I;
12383
+ if (typeof I == "object") {
12384
+ if (I[v] !== void 0)
12385
+ return I[v];
12386
+ if (I.value !== void 0)
12387
+ return I.value;
12388
+ if (I.id !== void 0) return I.id;
12389
12389
  }
12390
12390
  }
12391
12391
  }, z = (() => {
12392
- if (I)
12392
+ if (D)
12393
12393
  return (Array.isArray(g) ? g : []).map((U) => {
12394
12394
  const he = String(typeof U == "object" ? F(U) : U);
12395
- return Ye.find((ye) => {
12396
- const We = F(ye);
12395
+ return Ye.find((ve) => {
12396
+ const We = F(ve);
12397
12397
  return We !== void 0 && String(We) === he;
12398
12398
  }) || null;
12399
12399
  }).filter(Boolean);
12400
12400
  {
12401
12401
  if (g == null || g === "")
12402
12402
  return null;
12403
- const M = String(
12403
+ const I = String(
12404
12404
  typeof g == "object" ? F(g) : g
12405
12405
  ), U = Ye.find((he) => {
12406
- const ve = F(he);
12407
- return ve !== void 0 && String(ve) === M;
12406
+ const ye = F(he);
12407
+ return ye !== void 0 && String(ye) === I;
12408
12408
  });
12409
12409
  return U || null;
12410
12410
  }
@@ -12415,7 +12415,7 @@ const Kc = ({
12415
12415
  id: e.id,
12416
12416
  options: Ye,
12417
12417
  value: z,
12418
- multiple: I,
12418
+ multiple: D,
12419
12419
  labelText: e.labelPosition === "top" ? C(e.label) : void 0,
12420
12420
  label: e.labelPosition !== "top" ? C(e.label) : void 0,
12421
12421
  placeholder: w && (R != null && R.dependsOn) && !h ? `Please select ${R.dependsOn.replace(
@@ -12432,23 +12432,23 @@ const Kc = ({
12432
12432
  /_/g,
12433
12433
  " "
12434
12434
  )} first` : re ? "Fetching data..." : u && !re && Ye.length === 0 ? "No options available" : "Click to load options",
12435
- onChange: (M) => {
12435
+ onChange: (I) => {
12436
12436
  const U = (R == null ? void 0 : R.valueField) || e.value_field || "value";
12437
- if (I) {
12438
- const ve = (Array.isArray(M) ? M : []).map((ye) => typeof ye == "object" && (ye[U] || ye.value || ye.id) || ye);
12439
- T.onChange(ve);
12437
+ if (D) {
12438
+ const ye = (Array.isArray(I) ? I : []).map((ve) => typeof ve == "object" && (ve[U] || ve.value || ve.id) || ve);
12439
+ T.onChange(ye);
12440
12440
  } else {
12441
12441
  let he;
12442
- M && typeof M == "object" ? he = M[U] || M.value || M.id || M : he = M, T.onChange(he);
12443
- const ve = e.selectedAssignments;
12444
- if (ve && M && typeof M == "object")
12445
- for (const [ye, We] of Object.entries(
12446
- ve
12442
+ I && typeof I == "object" ? he = I[U] || I.value || I.id || I : he = I, T.onChange(he);
12443
+ const ye = e.selectedAssignments;
12444
+ if (ye && I && typeof I == "object")
12445
+ for (const [ve, We] of Object.entries(
12446
+ ye
12447
12447
  )) {
12448
- const Pe = M[We];
12448
+ const Pe = I[We];
12449
12449
  if (Pe !== void 0 && typeof o == "function")
12450
12450
  try {
12451
- o(ye, Pe, {
12451
+ o(ve, Pe, {
12452
12452
  shouldDirty: !0,
12453
12453
  shouldTouch: !0,
12454
12454
  shouldValidate: !1
@@ -12499,8 +12499,8 @@ const Kc = ({
12499
12499
  render: ({ field: T }) => {
12500
12500
  const g = T.value || e.defaultValue || e.src;
12501
12501
  if (g) {
12502
- const U = e.imageUploaded || {}, he = U.previewText || "Preview", ve = U.removeText || "Remove", ye = U.saveText || "Save logo", We = U.showSave !== void 0 ? U.showSave : !!(e.onSave || U.saveText), Pe = () => {
12503
- if (v(!0), typeof e.onPreview == "function")
12502
+ const U = e.imageUploaded || {}, he = U.previewText || "Preview", ye = U.removeText || "Remove", ve = U.saveText || "Save logo", We = U.showSave !== void 0 ? U.showSave : !!(e.onSave || U.saveText), Pe = () => {
12503
+ if (x(!0), typeof e.onPreview == "function")
12504
12504
  try {
12505
12505
  e.onPreview(g);
12506
12506
  } catch {
@@ -12525,7 +12525,7 @@ const Kc = ({
12525
12525
  T.onChange(tr);
12526
12526
  } catch {
12527
12527
  }
12528
- $.current = et, v(!1);
12528
+ $.current = et, x(!1);
12529
12529
  }
12530
12530
  };
12531
12531
  return /* @__PURE__ */ ee(
@@ -12619,7 +12619,7 @@ const Kc = ({
12619
12619
  onClick: ct,
12620
12620
  sx: { ...U.removeButtonSx },
12621
12621
  startIcon: /* @__PURE__ */ d(rl, {}),
12622
- children: ve
12622
+ children: ye
12623
12623
  }
12624
12624
  ),
12625
12625
  We && /* @__PURE__ */ d(
@@ -12628,7 +12628,7 @@ const Kc = ({
12628
12628
  variant: "contained",
12629
12629
  onClick: yt,
12630
12630
  sx: { ...U.saveButtonSx },
12631
- children: ye
12631
+ children: ve
12632
12632
  }
12633
12633
  )
12634
12634
  ] })
@@ -12639,7 +12639,7 @@ const Kc = ({
12639
12639
  qu,
12640
12640
  {
12641
12641
  open: S,
12642
- onClose: () => v(!1),
12642
+ onClose: () => x(!1),
12643
12643
  maxWidth: "md",
12644
12644
  fullWidth: !0,
12645
12645
  children: [
@@ -12686,7 +12686,7 @@ const Kc = ({
12686
12686
  {
12687
12687
  type: "button",
12688
12688
  variant: "contained",
12689
- onClick: () => v(!1),
12689
+ onClick: () => x(!1),
12690
12690
  children: U.closeText || "Close"
12691
12691
  }
12692
12692
  )
@@ -12698,19 +12698,19 @@ const Kc = ({
12698
12698
  }
12699
12699
  );
12700
12700
  }
12701
- const I = e.imagePlaceholder || {}, x = I.icon || "upload", F = b, z = () => {
12701
+ const D = e.imagePlaceholder || {}, v = D.icon || "upload", F = b, z = () => {
12702
12702
  var U;
12703
12703
  try {
12704
12704
  (U = F.current) == null || U.click();
12705
12705
  } catch {
12706
12706
  }
12707
- }, M = (U) => {
12707
+ }, I = (U) => {
12708
12708
  const he = U.target.files && U.target.files[0];
12709
12709
  if (he) {
12710
12710
  typeof e.onFileSelected == "function" && e.onFileSelected(he);
12711
12711
  try {
12712
- const ve = URL.createObjectURL(he);
12713
- T.onChange(ve);
12712
+ const ye = URL.createObjectURL(he);
12713
+ T.onChange(ye);
12714
12714
  } catch {
12715
12715
  }
12716
12716
  $.current = he;
@@ -12726,7 +12726,7 @@ const Kc = ({
12726
12726
  p: 2,
12727
12727
  textAlign: "center",
12728
12728
  color: "primary.main",
12729
- ...I.sx
12729
+ ...D.sx
12730
12730
  },
12731
12731
  children: [
12732
12732
  /* @__PURE__ */ d(
@@ -12736,14 +12736,14 @@ const Kc = ({
12736
12736
  ref: F,
12737
12737
  accept: Array.isArray(e.accept) ? e.accept.join(",") : e.accept || "image/*",
12738
12738
  style: { display: "none" },
12739
- onChange: M
12739
+ onChange: I
12740
12740
  }
12741
12741
  ),
12742
12742
  /* @__PURE__ */ d(
12743
12743
  pi,
12744
12744
  {
12745
- sx: { borderRadius: "8px", ...I.iconSx },
12746
- children: x === "image" ? /* @__PURE__ */ d(
12745
+ sx: { borderRadius: "8px", ...D.iconSx },
12746
+ children: v === "image" ? /* @__PURE__ */ d(
12747
12747
  zm,
12748
12748
  {
12749
12749
  sx: { width: 36, height: 36, color: "primary.main" }
@@ -12763,9 +12763,9 @@ const Kc = ({
12763
12763
  fontSize: "16px",
12764
12764
  fontWeight: 600,
12765
12765
  color: "primary.main",
12766
- ...I.titleSx
12766
+ ...D.titleSx
12767
12767
  },
12768
- children: I.title || "Drag & Drop the image here"
12768
+ children: D.title || "Drag & Drop the image here"
12769
12769
  }
12770
12770
  ),
12771
12771
  /* @__PURE__ */ d(
@@ -12775,20 +12775,20 @@ const Kc = ({
12775
12775
  fontSize: "12px",
12776
12776
  fontWeight: 400,
12777
12777
  color: "primary.main",
12778
- ...I.subtitleSx
12778
+ ...D.subtitleSx
12779
12779
  },
12780
- children: I.subtitle || ""
12780
+ children: D.subtitle || ""
12781
12781
  }
12782
12782
  ),
12783
12783
  /* @__PURE__ */ d(
12784
12784
  Ze,
12785
12785
  {
12786
12786
  onClick: z,
12787
- sx: { my: 2, ...I.buttonSx },
12787
+ sx: { my: 2, ...D.buttonSx },
12788
12788
  startIcon: /* @__PURE__ */ d(Ai, {}),
12789
12789
  variant: "contained",
12790
12790
  disabled: e.disabled,
12791
- children: I.buttonText || "Upload File"
12791
+ children: D.buttonText || "Upload File"
12792
12792
  }
12793
12793
  ),
12794
12794
  /* @__PURE__ */ d(
@@ -12797,9 +12797,9 @@ const Kc = ({
12797
12797
  sx: {
12798
12798
  fontSize: "12px",
12799
12799
  fontWeight: 400,
12800
- ...I.helperTextSx
12800
+ ...D.helperTextSx
12801
12801
  },
12802
- children: I.helperText || e.helperText || ""
12802
+ children: D.helperText || e.helperText || ""
12803
12803
  }
12804
12804
  )
12805
12805
  ]
@@ -12857,25 +12857,25 @@ var Ca, al;
12857
12857
  function ag() {
12858
12858
  if (al) return Ca;
12859
12859
  al = 1;
12860
- function e(v) {
12861
- this._maxSize = v, this.clear();
12860
+ function e(x) {
12861
+ this._maxSize = x, this.clear();
12862
12862
  }
12863
12863
  e.prototype.clear = function() {
12864
12864
  this._size = 0, this._values = /* @__PURE__ */ Object.create(null);
12865
- }, e.prototype.get = function(v) {
12866
- return this._values[v];
12867
- }, e.prototype.set = function(v, b) {
12868
- return this._size >= this._maxSize && this.clear(), v in this._values || this._size++, this._values[v] = b;
12865
+ }, e.prototype.get = function(x) {
12866
+ return this._values[x];
12867
+ }, e.prototype.set = function(x, b) {
12868
+ return this._size >= this._maxSize && this.clear(), x in this._values || this._size++, this._values[x] = b;
12869
12869
  };
12870
12870
  var t = /[^.^\]^[]+|(?=\[\]|\.\.)/g, r = /^\d+$/, n = /^\d/, i = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, o = 512, s = new e(o), l = new e(o), u = new e(o);
12871
12871
  Ca = {
12872
12872
  Cache: e,
12873
12873
  split: p,
12874
12874
  normalizePath: f,
12875
- setter: function(v) {
12876
- var b = f(v);
12877
- return l.get(v) || l.set(v, function(A, C) {
12878
- for (var _ = 0, D = b.length, R = A; _ < D - 1; ) {
12875
+ setter: function(x) {
12876
+ var b = f(x);
12877
+ return l.get(x) || l.set(x, function(A, C) {
12878
+ for (var _ = 0, M = b.length, R = A; _ < M - 1; ) {
12879
12879
  var H = b[_];
12880
12880
  if (H === "__proto__" || H === "constructor" || H === "prototype")
12881
12881
  return A;
@@ -12884,51 +12884,51 @@ function ag() {
12884
12884
  R[b[_]] = C;
12885
12885
  });
12886
12886
  },
12887
- getter: function(v, b) {
12888
- var $ = f(v);
12889
- return u.get(v) || u.set(v, function(C) {
12890
- for (var _ = 0, D = $.length; _ < D; )
12887
+ getter: function(x, b) {
12888
+ var $ = f(x);
12889
+ return u.get(x) || u.set(x, function(C) {
12890
+ for (var _ = 0, M = $.length; _ < M; )
12891
12891
  if (C != null || !b) C = C[$[_++]];
12892
12892
  else return;
12893
12893
  return C;
12894
12894
  });
12895
12895
  },
12896
- join: function(v) {
12897
- return v.reduce(function(b, $) {
12896
+ join: function(x) {
12897
+ return x.reduce(function(b, $) {
12898
12898
  return b + (y($) || r.test($) ? "[" + $ + "]" : (b ? "." : "") + $);
12899
12899
  }, "");
12900
12900
  },
12901
- forEach: function(v, b, $) {
12902
- c(Array.isArray(v) ? v : p(v), b, $);
12901
+ forEach: function(x, b, $) {
12902
+ c(Array.isArray(x) ? x : p(x), b, $);
12903
12903
  }
12904
12904
  };
12905
- function f(v) {
12906
- return s.get(v) || s.set(
12907
- v,
12908
- p(v).map(function(b) {
12905
+ function f(x) {
12906
+ return s.get(x) || s.set(
12907
+ x,
12908
+ p(x).map(function(b) {
12909
12909
  return b.replace(a, "$2");
12910
12910
  })
12911
12911
  );
12912
12912
  }
12913
- function p(v) {
12914
- return v.match(t) || [""];
12913
+ function p(x) {
12914
+ return x.match(t) || [""];
12915
12915
  }
12916
- function c(v, b, $) {
12917
- var A = v.length, C, _, D, R;
12916
+ function c(x, b, $) {
12917
+ var A = x.length, C, _, M, R;
12918
12918
  for (_ = 0; _ < A; _++)
12919
- C = v[_], C && (S(C) && (C = '"' + C + '"'), R = y(C), D = !R && /^\d+$/.test(C), b.call($, C, R, D, _, v));
12919
+ C = x[_], C && (S(C) && (C = '"' + C + '"'), R = y(C), M = !R && /^\d+$/.test(C), b.call($, C, R, M, _, x));
12920
12920
  }
12921
- function y(v) {
12922
- return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
12921
+ function y(x) {
12922
+ return typeof x == "string" && x && ["'", '"'].indexOf(x.charAt(0)) !== -1;
12923
12923
  }
12924
- function k(v) {
12925
- return v.match(n) && !v.match(r);
12924
+ function k(x) {
12925
+ return x.match(n) && !x.match(r);
12926
12926
  }
12927
- function m(v) {
12928
- return i.test(v);
12927
+ function m(x) {
12928
+ return i.test(x);
12929
12929
  }
12930
- function S(v) {
12931
- return !y(v) && (k(v) || m(v));
12930
+ function S(x) {
12931
+ return !y(x) && (k(x) || m(x));
12932
12932
  }
12933
12933
  return Ca;
12934
12934
  }
@@ -12979,11 +12979,11 @@ function sg() {
12979
12979
  throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(y));
12980
12980
  if (!l[k]) {
12981
12981
  l[k] = !0;
12982
- var v = f.get(y) || /* @__PURE__ */ new Set();
12983
- if (v = Array.from(v), k = v.length) {
12982
+ var x = f.get(y) || /* @__PURE__ */ new Set();
12983
+ if (x = Array.from(x), k = x.length) {
12984
12984
  m.add(y);
12985
12985
  do {
12986
- var b = v[--k];
12986
+ var b = x[--k];
12987
12987
  c(b, p.get(b), m);
12988
12988
  } while (k);
12989
12989
  m.delete(y);
@@ -13245,7 +13245,7 @@ function Xr(e) {
13245
13245
  parent: k,
13246
13246
  context: m,
13247
13247
  abortEarly: S = o.spec.abortEarly,
13248
- disableStackTrace: v = o.spec.disableStackTrace
13248
+ disableStackTrace: x = o.spec.disableStackTrace
13249
13249
  } = i;
13250
13250
  function b(j) {
13251
13251
  return Er.isRef(j) ? j.getValue(r, k, m) : j;
@@ -13257,7 +13257,7 @@ function Xr(e) {
13257
13257
  label: o.spec.label,
13258
13258
  path: j.path || n,
13259
13259
  spec: o.spec,
13260
- disableStackTrace: j.disableStackTrace || v
13260
+ disableStackTrace: j.disableStackTrace || x
13261
13261
  }, p, j.params);
13262
13262
  for (const N of Object.keys(L)) L[N] = b(L[N]);
13263
13263
  const G = new ft(ft.formatError(j.message || c, L), r, L.path, j.type || u, L.disableStackTrace);
@@ -13277,7 +13277,7 @@ function Xr(e) {
13277
13277
  };
13278
13278
  const _ = (j) => {
13279
13279
  ft.isError(j) ? A(j) : j ? l(null) : A($());
13280
- }, D = (j) => {
13280
+ }, M = (j) => {
13281
13281
  ft.isError(j) ? A(j) : s(j);
13282
13282
  };
13283
13283
  if (y && zt(r))
@@ -13288,10 +13288,10 @@ function Xr(e) {
13288
13288
  if (H = f.call(C, r, C), typeof ((h = H) == null ? void 0 : h.then) == "function") {
13289
13289
  if (i.sync)
13290
13290
  throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
13291
- return Promise.resolve(H).then(_, D);
13291
+ return Promise.resolve(H).then(_, M);
13292
13292
  }
13293
13293
  } catch (j) {
13294
- D(j);
13294
+ M(j);
13295
13295
  return;
13296
13296
  }
13297
13297
  _(H);
@@ -14358,12 +14358,12 @@ class lu extends Ct {
14358
14358
  context: r.context,
14359
14359
  parent: l
14360
14360
  });
14361
- let S = c instanceof Ct ? c.spec : void 0, v = S == null ? void 0 : S.strict;
14361
+ let S = c instanceof Ct ? c.spec : void 0, x = S == null ? void 0 : S.strict;
14362
14362
  if (S != null && S.strip) {
14363
14363
  f = f || p in i;
14364
14364
  continue;
14365
14365
  }
14366
- k = !r.__validating || !v ? (
14366
+ k = !r.__validating || !x ? (
14367
14367
  // TODO: use _cast, this is double resolving
14368
14368
  c.cast(i[p], u)
14369
14369
  ) : i[p], k !== void 0 && (l[p] = k);
@@ -14818,48 +14818,48 @@ const zg = (e) => {
14818
14818
  isMultiStep: a = !1,
14819
14819
  formData: o
14820
14820
  }) => {
14821
- const { buttons: s, position: l = "right", layout: u = "horizontal", spacing: f = 2, sx: p } = e, c = (v) => {
14821
+ const { buttons: s, position: l = "right", layout: u = "horizontal", spacing: f = 2, sx: p } = e, c = (x) => {
14822
14822
  let b = "button", $ = "contained";
14823
- return v.type ? b = v.type : v.text.toLowerCase().includes("submit") || v.text.toLowerCase().includes("save") || v.text.toLowerCase().includes("next") ? b = "submit" : (v.text.toLowerCase().includes("reset") || v.text.toLowerCase().includes("clear")) && (b = "reset"), (v.text.toLowerCase().includes("cancel") || v.text.toLowerCase().includes("back") || v.text.toLowerCase().includes("draft")) && ($ = "outlined"), { buttonType: b, buttonVariant: $ };
14824
- }, y = (v) => ["primary", "secondary", "error", "warning", "info", "success"].includes(v || "") ? v : "primary", k = (v) => {
14825
- const { buttonType: b } = c(v);
14826
- v.onClick ? v.onClick() : b === "submit" && t ? t(o) : a && r && (v.text.toLowerCase().includes("next") ? r(n + 1, i) : (v.text.toLowerCase().includes("back") || v.text.toLowerCase().includes("previous")) && r(n - 1, i));
14827
- }, m = (v, b) => {
14828
- const { buttonType: $, buttonVariant: A } = c(v), C = y(v.color);
14823
+ return x.type ? b = x.type : x.text.toLowerCase().includes("submit") || x.text.toLowerCase().includes("save") || x.text.toLowerCase().includes("next") ? b = "submit" : (x.text.toLowerCase().includes("reset") || x.text.toLowerCase().includes("clear")) && (b = "reset"), (x.text.toLowerCase().includes("cancel") || x.text.toLowerCase().includes("back") || x.text.toLowerCase().includes("draft")) && ($ = "outlined"), { buttonType: b, buttonVariant: $ };
14824
+ }, y = (x) => ["primary", "secondary", "error", "warning", "info", "success"].includes(x || "") ? x : "primary", k = (x) => {
14825
+ const { buttonType: b } = c(x);
14826
+ x.onClick ? x.onClick() : b === "submit" && t ? t(o) : a && r && (x.text.toLowerCase().includes("next") ? r(n + 1, i) : (x.text.toLowerCase().includes("back") || x.text.toLowerCase().includes("previous")) && r(n - 1, i));
14827
+ }, m = (x, b) => {
14828
+ const { buttonType: $, buttonVariant: A } = c(x), C = y(x.color);
14829
14829
  return /* @__PURE__ */ d(
14830
14830
  Ze,
14831
14831
  {
14832
14832
  type: $,
14833
14833
  variant: A,
14834
14834
  color: C,
14835
- size: v.size || "medium",
14836
- disabled: v.disabled,
14837
- onClick: () => k(v),
14838
- sx: v.sx,
14839
- children: v.text
14835
+ size: x.size || "medium",
14836
+ disabled: x.disabled,
14837
+ onClick: () => k(x),
14838
+ sx: x.sx,
14839
+ children: x.text
14840
14840
  },
14841
14841
  b
14842
14842
  );
14843
14843
  }, S = () => {
14844
- const v = {
14844
+ const x = {
14845
14845
  display: "flex",
14846
14846
  gap: f,
14847
14847
  ...p
14848
14848
  };
14849
14849
  switch (l) {
14850
14850
  case "left":
14851
- return { ...v, justifyContent: "flex-start" };
14851
+ return { ...x, justifyContent: "flex-start" };
14852
14852
  case "center":
14853
- return { ...v, justifyContent: "center" };
14853
+ return { ...x, justifyContent: "center" };
14854
14854
  case "right":
14855
- return { ...v, justifyContent: "flex-end" };
14855
+ return { ...x, justifyContent: "flex-end" };
14856
14856
  case "space-between":
14857
- return { ...v, justifyContent: "space-between" };
14857
+ return { ...x, justifyContent: "space-between" };
14858
14858
  default:
14859
- return { ...v, justifyContent: "flex-end" };
14859
+ return { ...x, justifyContent: "flex-end" };
14860
14860
  }
14861
14861
  };
14862
- return u === "vertical" ? /* @__PURE__ */ d(K, { sx: S(), children: s.map((v, b) => /* @__PURE__ */ d(K, { sx: { width: "100%" }, children: m(v, b) }, b)) }) : /* @__PURE__ */ d(K, { sx: S(), children: /* @__PURE__ */ d(Yu, { variant: "outlined", size: "medium", children: s.map((v, b) => m(v, b)) }) });
14862
+ return u === "vertical" ? /* @__PURE__ */ d(K, { sx: S(), children: s.map((x, b) => /* @__PURE__ */ d(K, { sx: { width: "100%" }, children: m(x, b) }, b)) }) : /* @__PURE__ */ d(K, { sx: S(), children: /* @__PURE__ */ d(Yu, { variant: "outlined", size: "medium", children: s.map((x, b) => m(x, b)) }) });
14863
14863
  }, cu = (e, t) => {
14864
14864
  const r = e == null ? void 0 : e.showWhen;
14865
14865
  if (r) {
@@ -14924,7 +14924,7 @@ const zg = (e) => {
14924
14924
  fixedButtonsSx: k,
14925
14925
  formCardWrap: m,
14926
14926
  formCardSx: S,
14927
- formCardProps: v,
14927
+ formCardProps: x,
14928
14928
  // API configuration
14929
14929
  baseUrl: b,
14930
14930
  apiHeaders: $,
@@ -14935,13 +14935,13 @@ const zg = (e) => {
14935
14935
  ...new Set(
14936
14936
  r.map((g) => g.step).filter((g) => g != null && g > 0)
14937
14937
  )
14938
- ].sort((g, I) => (g || 0) - (I || 0)), _ = C.length > 1, D = C.length || 1, [R, H] = Ot(1), h = _ ? r.filter((g) => g.step === R) : r, j = Oe((g) => {
14939
- const I = [];
14940
- for (const x of g)
14941
- if (I.push(x), x.type === "tabs" && x.items)
14942
- for (const F of x.items || [])
14943
- Array.isArray(F.fields) && I.push(...j(F.fields));
14944
- return I;
14938
+ ].sort((g, D) => (g || 0) - (D || 0)), _ = C.length > 1, M = C.length || 1, [R, H] = Ot(1), h = _ ? r.filter((g) => g.step === R) : r, j = Oe((g) => {
14939
+ const D = [];
14940
+ for (const v of g)
14941
+ if (D.push(v), v.type === "tabs" && v.items)
14942
+ for (const F of v.items || [])
14943
+ Array.isArray(F.fields) && D.push(...j(F.fields));
14944
+ return D;
14945
14945
  }, []), {
14946
14946
  control: L,
14947
14947
  handleSubmit: G,
@@ -14951,28 +14951,28 @@ const zg = (e) => {
14951
14951
  resetField: re,
14952
14952
  trigger: ue
14953
14953
  } = xp({
14954
- resolver: Oe((g, I, x) => {
14955
- const z = hi(_ ? h : r, g), M = zg(z);
14956
- return Sp(M)(g, I, x);
14954
+ resolver: Oe((g, D, v) => {
14955
+ const z = hi(_ ? h : r, g), I = zg(z);
14956
+ return Sp(I)(g, D, v);
14957
14957
  }, [_, h, r]),
14958
14958
  mode: "onChange",
14959
14959
  defaultValues: s
14960
14960
  }), P = W(), q = xt({});
14961
14961
  Rt(() => {
14962
14962
  const g = [];
14963
- for (const I of r) {
14964
- const x = I.depends_on;
14965
- x && typeof I.name == "string" && g.push({ dependentField: I.name, dependencyName: x });
14963
+ for (const D of r) {
14964
+ const v = D.depends_on;
14965
+ v && typeof D.name == "string" && g.push({ dependentField: D.name, dependencyName: v });
14966
14966
  }
14967
14967
  if (g.length !== 0)
14968
- for (const { dependentField: I, dependencyName: x } of g) {
14969
- const F = q.current[x], z = P == null ? void 0 : P[x];
14968
+ for (const { dependentField: D, dependencyName: v } of g) {
14969
+ const F = q.current[v], z = P == null ? void 0 : P[v];
14970
14970
  if (F !== z)
14971
14971
  try {
14972
- re(I);
14972
+ re(D);
14973
14973
  } catch {
14974
14974
  }
14975
- q.current[x] = z;
14975
+ q.current[v] = z;
14976
14976
  }
14977
14977
  }, [r, P, re]);
14978
14978
  const Z = xt(i);
@@ -14991,12 +14991,12 @@ const zg = (e) => {
14991
14991
  }, [pe]);
14992
14992
  const de = async () => {
14993
14993
  if (!_) return !0;
14994
- const g = r.filter((x) => x.step === R);
14995
- for (const x of g)
14996
- if (typeof x.required == "function" ? !!x.required(P) : !!x.required) {
14997
- const z = P[x.name];
14998
- let M = !0;
14999
- if (x.type === "checkbox" ? M = z === !0 : Array.isArray(z) ? M = z.length > 0 : M = z != null && z !== "", !M)
14994
+ const g = r.filter((v) => v.step === R);
14995
+ for (const v of g)
14996
+ if (typeof v.required == "function" ? !!v.required(P) : !!v.required) {
14997
+ const z = P[v.name];
14998
+ let I = !0;
14999
+ if (v.type === "checkbox" ? I = z === !0 : Array.isArray(z) ? I = z.length > 0 : I = z != null && z !== "", !I)
15000
15000
  return !1;
15001
15001
  }
15002
15002
  return await ue() ? !0 : Object.keys(N).filter((F) => g.some((z) => z.name === F)).map((F) => {
@@ -15005,25 +15005,25 @@ const zg = (e) => {
15005
15005
  }).length === 0;
15006
15006
  }, te = Ge(() => {
15007
15007
  if (!_) return !0;
15008
- const g = r.filter((x) => x.step === R);
15009
- for (const x of g)
15010
- if (typeof x.required == "function" ? !!x.required(P) : !!x.required) {
15011
- const z = P[x.name];
15012
- let M = !0;
15013
- if (x.type === "checkbox" ? M = z === !0 : Array.isArray(z) ? M = z.length > 0 : M = z != null && z !== "", !M)
15008
+ const g = r.filter((v) => v.step === R);
15009
+ for (const v of g)
15010
+ if (typeof v.required == "function" ? !!v.required(P) : !!v.required) {
15011
+ const z = P[v.name];
15012
+ let I = !0;
15013
+ if (v.type === "checkbox" ? I = z === !0 : Array.isArray(z) ? I = z.length > 0 : I = z != null && z !== "", !I)
15014
15014
  return !1;
15015
15015
  }
15016
15016
  return Object.keys(N).filter(
15017
- (x) => g.some((F) => F.name === x)
15017
+ (v) => g.some((F) => F.name === v)
15018
15018
  ).length === 0;
15019
- }, [_, R, r, P, N]), B = Oe((g, I) => cu(g, I), []), Q = Oe((g) => {
15020
- const I = [];
15021
- for (const x of g)
15022
- if (I.push(x), x.type === "tabs" && x.items)
15023
- for (const F of x.items || [])
15024
- Array.isArray(F.fields) && I.push(...Q(F.fields));
15025
- return I;
15026
- }, []), ae = Oe((g, I) => hi(g, I), []), se = Ge(() => {
15019
+ }, [_, R, r, P, N]), B = Oe((g, D) => cu(g, D), []), Q = Oe((g) => {
15020
+ const D = [];
15021
+ for (const v of g)
15022
+ if (D.push(v), v.type === "tabs" && v.items)
15023
+ for (const F of v.items || [])
15024
+ Array.isArray(F.fields) && D.push(...Q(F.fields));
15025
+ return D;
15026
+ }, []), ae = Oe((g, D) => hi(g, D), []), se = Ge(() => {
15027
15027
  if (_)
15028
15028
  return te;
15029
15029
  const g = hi(r, P);
@@ -15031,47 +15031,50 @@ const zg = (e) => {
15031
15031
  if (!B(F, P))
15032
15032
  continue;
15033
15033
  if (typeof F.required == "function" ? !!F.required(P) : !!F.required) {
15034
- const M = P[F.name];
15034
+ const I = P[F.name];
15035
15035
  let U = !0;
15036
- if (F.type === "checkbox" ? U = M === !0 : U = M != null && M !== "" && !(Array.isArray(M) && M.length === 0), !U)
15036
+ if (F.type === "checkbox" ? U = I === !0 : U = I != null && I !== "" && !(Array.isArray(I) && I.length === 0), !U)
15037
15037
  return !1;
15038
15038
  }
15039
15039
  }
15040
- const I = new Set(g.map((F) => F.name));
15040
+ const D = new Set(g.map((F) => F.name));
15041
15041
  return Object.keys(N).filter(
15042
- (F) => I.has(F)
15042
+ (F) => D.has(F)
15043
15043
  ).length === 0;
15044
15044
  }, [_, te, r, P, N, ae, B]), ce = async (g) => {
15045
- g < 1 || g > D || g > R && _ && !await de() || H(g);
15045
+ g < 1 || g > M || g > R && _ && !await de() || H(g);
15046
15046
  }, Se = async (g) => {
15047
- if (_ && R < D) {
15047
+ if (_ && R < M) {
15048
15048
  console.warn("Form submission attempted on non-final step");
15049
15049
  return;
15050
15050
  }
15051
- const x = ((F) => {
15052
- const z = { ...F || {} }, M = Q(r);
15053
- for (const U of M) {
15051
+ const v = ((F) => {
15052
+ const z = { ...F || {} }, I = Q(r);
15053
+ for (const U of I) {
15054
15054
  if (!U || !U.name) continue;
15055
15055
  const he = z[U.name];
15056
15056
  if (U.type === "dragdroplist" && Array.isArray(he)) {
15057
- const ve = U, ye = ve.serialize;
15058
- if (!ye) continue;
15059
- const We = he, Pe = typeof ve.getId == "function" ? ve.getId : typeof ve.getId == "string" ? (ne) => ne == null ? void 0 : ne[ve.getId] : (ne) => (ne == null ? void 0 : ne.id) ?? (ne == null ? void 0 : ne._id) ?? (ne == null ? void 0 : ne.key) ?? String(ne), ct = typeof ve.getText == "function" ? ve.getText : typeof ve.getText == "string" ? (ne) => (ne == null ? void 0 : ne[ve.getText]) ?? String(ne) : (ne) => (ne == null ? void 0 : ne.text) ?? (ne == null ? void 0 : ne.label) ?? (ne == null ? void 0 : ne.name) ?? (ne == null ? void 0 : ne.title) ?? String(ne), yt = (() => {
15060
- if (typeof ve.chipText == "function") return ve.chipText;
15061
- if (typeof ve.chipText == "string") return (ne, et) => ne == null ? void 0 : ne[ve.chipText];
15057
+ const ye = U, ve = ye.serialize;
15058
+ if (!ve) continue;
15059
+ const We = he, Pe = typeof ye.getId == "function" ? ye.getId : typeof ye.getId == "string" ? (ne) => ne == null ? void 0 : ne[ye.getId] : (ne) => (ne == null ? void 0 : ne.id) ?? (ne == null ? void 0 : ne._id) ?? (ne == null ? void 0 : ne.key) ?? String(ne), ct = typeof ye.getText == "function" ? ye.getText : typeof ye.getText == "string" ? (ne) => (ne == null ? void 0 : ne[ye.getText]) ?? String(ne) : (ne) => (ne == null ? void 0 : ne.text) ?? (ne == null ? void 0 : ne.label) ?? (ne == null ? void 0 : ne.name) ?? (ne == null ? void 0 : ne.title) ?? String(ne), yt = (() => {
15060
+ if (typeof ye.chipText == "function") return ye.chipText;
15061
+ if (typeof ye.chipText == "string") return (ne, et) => ne == null ? void 0 : ne[ye.chipText];
15062
15062
  })();
15063
15063
  let Ne = he;
15064
- typeof ye == "function" ? Ne = We.map((ne, et) => ye(ne, et)) : ye === "ids" ? Ne = We.map((ne) => Pe(ne)) : ye === "text" ? Ne = We.map((ne) => ct(ne)) : ye === "chips" ? Ne = We.map((ne, et) => (typeof yt == "function" ? yt(ne, et) : void 0) ?? "") : ye && typeof ye == "object" && "field" in ye && (Ne = We.map((ne) => ne == null ? void 0 : ne[ye.field])), z[U.name] = Ne;
15064
+ typeof ve == "function" ? Ne = We.map((ne, et) => ve(ne, et)) : ve === "ids" ? Ne = We.map((ne) => Pe(ne)) : ve === "text" ? Ne = We.map((ne) => ct(ne)) : ve === "chips" ? Ne = We.map((ne, et) => (typeof yt == "function" ? yt(ne, et) : void 0) ?? "") : ve && typeof ve == "object" && "field" in ve && (Ne = We.map((ne) => ne == null ? void 0 : ne[ve.field])), z[U.name] = Ne;
15065
15065
  }
15066
15066
  }
15067
15067
  return z;
15068
15068
  })(g);
15069
- o && o(x), n(x);
15069
+ o && o(v), n(v);
15070
15070
  }, X = async (g) => {
15071
- g && (g.preventDefault(), g.stopPropagation()), _ && R < D && await de() && ce(R + 1);
15071
+ g && (g.preventDefault(), g.stopPropagation()), _ && R < M && await de() && ce(R + 1);
15072
15072
  }, Ve = (g) => {
15073
15073
  g && (g.preventDefault(), g.stopPropagation()), _ && R > 1 && ce(R - 1);
15074
- }, Xe = (g) => g.col ? g.col : (g.xs || g.sm || g.md || g.lg || g.xl) && (g.xs || g.sm || g.md || g.lg || g.xl) || 12, rt = t ? Qu({
15074
+ }, Xe = (g) => {
15075
+ const D = g.col ?? 12, v = g.xs !== void 0 ? g.xs : 12, F = g.sm !== void 0 ? g.sm : D, z = g.md !== void 0 ? g.md : D, I = g.lg !== void 0 ? g.lg : z, U = g.xl !== void 0 ? g.xl : I;
15076
+ return { xs: v, sm: F, md: z, lg: I, xl: U };
15077
+ }, rt = t ? Qu({
15075
15078
  palette: {
15076
15079
  primary: {
15077
15080
  main: t.primaryColor || "#1976d2"
@@ -15120,37 +15123,37 @@ const zg = (e) => {
15120
15123
  ...c
15121
15124
  } : void 0;
15122
15125
  if (f && f.buttons && f.buttons.length > 0) {
15123
- const I = {
15126
+ const D = {
15124
15127
  ...f,
15125
- buttons: f.buttons.map((x) => {
15126
- const F = (x.text || "").toLowerCase(), z = x.type === "submit" || F.includes("submit") || F.includes("save") || F.includes("finish") || F.includes("complete"), M = F.includes("next");
15128
+ buttons: f.buttons.map((v) => {
15129
+ const F = (v.text || "").toLowerCase(), z = v.type === "submit" || F.includes("submit") || F.includes("save") || F.includes("finish") || F.includes("complete"), I = F.includes("next");
15127
15130
  let U = !1;
15128
- return _ ? (z || M) && (U = !te) : z && (U = !se), { ...x, disabled: x.disabled || U };
15131
+ return _ ? (z || I) && (U = !te) : z && (U = !se), { ...v, disabled: v.disabled || U };
15129
15132
  })
15130
15133
  };
15131
15134
  return /* @__PURE__ */ d(K, { sx: { mt: 3, ...g || {} }, children: /* @__PURE__ */ d(
15132
15135
  Lg,
15133
15136
  {
15134
- config: I,
15137
+ config: D,
15135
15138
  onSubmit: Se,
15136
15139
  onStepChange: ce,
15137
15140
  currentStep: R,
15138
- totalSteps: D,
15141
+ totalSteps: M,
15139
15142
  isMultiStep: _,
15140
15143
  formData: P
15141
15144
  }
15142
15145
  ) });
15143
15146
  }
15144
15147
  if (u && u.length > 0) {
15145
- const I = u.map((x) => {
15146
- const F = (x.text || "").toLowerCase(), z = x.type === "submit" || F.includes("submit") || F.includes("save") || F.includes("finish") || F.includes("complete"), M = F.includes("next");
15148
+ const D = u.map((v) => {
15149
+ const F = (v.text || "").toLowerCase(), z = v.type === "submit" || F.includes("submit") || F.includes("save") || F.includes("finish") || F.includes("complete"), I = F.includes("next");
15147
15150
  let U = !1;
15148
- return _ ? (z || M) && (U = !te) : z && (U = !se), {
15149
- ...x,
15150
- disabled: x.disabled || U
15151
+ return _ ? (z || I) && (U = !te) : z && (U = !se), {
15152
+ ...v,
15153
+ disabled: v.disabled || U
15151
15154
  };
15152
15155
  });
15153
- return /* @__PURE__ */ d(K, { sx: g, children: /* @__PURE__ */ d(Ng, { buttons: I }) });
15156
+ return /* @__PURE__ */ d(K, { sx: g, children: /* @__PURE__ */ d(Ng, { buttons: D }) });
15154
15157
  }
15155
15158
  return l ? /* @__PURE__ */ d(
15156
15159
  K,
@@ -15175,7 +15178,7 @@ const zg = (e) => {
15175
15178
  ),
15176
15179
  _ ? (
15177
15180
  // Multi-step form: Show Next for non-final steps, Submit for final step
15178
- R < D ? /* @__PURE__ */ d(
15181
+ R < M ? /* @__PURE__ */ d(
15179
15182
  Ze,
15180
15183
  {
15181
15184
  type: "button",
@@ -15216,16 +15219,16 @@ const zg = (e) => {
15216
15219
  ) : null;
15217
15220
  }, Je = Ge(() => {
15218
15221
  const g = [];
15219
- let I = [];
15220
- for (const x of h)
15221
- x.type === "section" && I.length > 0 ? (g.push(I), I = [x]) : I.push(x);
15222
- return I.length > 0 && g.push(I), g;
15222
+ let D = [];
15223
+ for (const v of h)
15224
+ v.type === "section" && D.length > 0 ? (g.push(D), D = [v]) : D.push(v);
15225
+ return D.length > 0 && g.push(D), g;
15223
15226
  }, [h]), Ke = /* @__PURE__ */ ee(
15224
15227
  K,
15225
15228
  {
15226
15229
  component: "form",
15227
15230
  onSubmit: (g) => {
15228
- if (_ && R < D) {
15231
+ if (_ && R < M) {
15229
15232
  g.preventDefault(), g.stopPropagation(), te && X();
15230
15233
  return;
15231
15234
  }
@@ -15233,7 +15236,7 @@ const zg = (e) => {
15233
15236
  },
15234
15237
  id: e,
15235
15238
  onKeyDown: (g) => {
15236
- g.key === "Enter" && _ && R < D && (g.preventDefault(), te && X());
15239
+ g.key === "Enter" && _ && R < M && (g.preventDefault(), te && X());
15237
15240
  },
15238
15241
  sx: { pb: y ? 10 : void 0 },
15239
15242
  children: [
@@ -15241,17 +15244,17 @@ const zg = (e) => {
15241
15244
  Vg,
15242
15245
  {
15243
15246
  currentStep: R,
15244
- totalSteps: D,
15247
+ totalSteps: M,
15245
15248
  onStepChange: ce,
15246
15249
  stepTitles: A == null ? void 0 : A.stepTitles,
15247
15250
  showStepTitles: (A == null ? void 0 : A.showStepTitles) !== !1
15248
15251
  }
15249
15252
  ),
15250
- Je.map((g, I) => {
15251
- const x = g.find((he) => he.type === "section");
15252
- if (x && !B(x, P))
15253
+ Je.map((g, D) => {
15254
+ const v = g.find((he) => he.type === "section");
15255
+ if (v && !B(v, P))
15253
15256
  return null;
15254
- const F = (x == null ? void 0 : x.cardWrap) !== !1, z = {
15257
+ const F = (v == null ? void 0 : v.cardWrap) !== !1, z = {
15255
15258
  p: 2,
15256
15259
  boxShadow: "0px 1px 4px 0px #00000029",
15257
15260
  background: "#FFFFFF",
@@ -15261,7 +15264,7 @@ const zg = (e) => {
15261
15264
  gap: 2,
15262
15265
  width: "100%",
15263
15266
  mb: 2
15264
- }, M = {
15267
+ }, I = {
15265
15268
  display: "grid",
15266
15269
  gridTemplateColumns: "repeat(12, 1fr)",
15267
15270
  gap: 2,
@@ -15270,8 +15273,8 @@ const zg = (e) => {
15270
15273
  }, U = /* @__PURE__ */ d(Di, { children: g.map((he) => {
15271
15274
  if (!B(he, P))
15272
15275
  return null;
15273
- const ve = Xe(he);
15274
- return /* @__PURE__ */ d(K, { sx: { gridColumn: `span ${ve}` }, children: /* @__PURE__ */ d(
15276
+ const ye = Xe(he);
15277
+ return /* @__PURE__ */ d(K, { sx: { gridColumn: { xs: `span ${ye.xs}`, sm: `span ${ye.sm}`, md: `span ${ye.md}`, lg: `span ${ye.lg}`, xl: `span ${ye.xl}` } }, children: /* @__PURE__ */ d(
15275
15278
  Kc,
15276
15279
  {
15277
15280
  field: he,
@@ -15287,12 +15290,12 @@ const zg = (e) => {
15287
15290
  return F ? /* @__PURE__ */ d(
15288
15291
  ht,
15289
15292
  {
15290
- sx: { ...z, ...(x == null ? void 0 : x.cardSx) || {} },
15291
- ...(x == null ? void 0 : x.cardProps) || {},
15293
+ sx: { ...z, ...(v == null ? void 0 : v.cardSx) || {} },
15294
+ ...(v == null ? void 0 : v.cardProps) || {},
15292
15295
  children: U
15293
15296
  },
15294
- `group-${I}`
15295
- ) : /* @__PURE__ */ d(K, { sx: M, children: U }, `group-${I}`);
15297
+ `group-${D}`
15298
+ ) : /* @__PURE__ */ d(K, { sx: I, children: U }, `group-${D}`);
15296
15299
  }),
15297
15300
  Pt()
15298
15301
  ]
@@ -15307,7 +15310,7 @@ const zg = (e) => {
15307
15310
  borderRadius: "6px",
15308
15311
  ...S
15309
15312
  },
15310
- ...v,
15313
+ ...x,
15311
15314
  children: Ke
15312
15315
  }
15313
15316
  ) : Ke;
@@ -17240,7 +17243,7 @@ var so = {
17240
17243
  fileRejections: []
17241
17244
  };
17242
17245
  function bu() {
17243
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = je(je({}, xu), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, p = t.onDragOver, c = t.onDrop, y = t.onDropAccepted, k = t.onDropRejected, m = t.onFileDialogCancel, S = t.onFileDialogOpen, v = t.useFsAccessApi, b = t.autoFocus, $ = t.preventDropOnDocument, A = t.noClick, C = t.noKeyboard, _ = t.noDrag, D = t.noDragEventsBubbling, R = t.onError, H = t.validator, h = Ge(function() {
17246
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = je(je({}, xu), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, p = t.onDragOver, c = t.onDrop, y = t.onDropAccepted, k = t.onDropRejected, m = t.onFileDialogCancel, S = t.onFileDialogOpen, x = t.useFsAccessApi, b = t.autoFocus, $ = t.preventDropOnDocument, A = t.noClick, C = t.noKeyboard, _ = t.noDrag, M = t.noDragEventsBubbling, R = t.onError, H = t.validator, h = Ge(function() {
17244
17247
  return Cy(r);
17245
17248
  }, [r]), j = Ge(function() {
17246
17249
  return Sy(r);
@@ -17248,7 +17251,7 @@ function bu() {
17248
17251
  return typeof S == "function" ? S : El;
17249
17252
  }, [S]), G = Ge(function() {
17250
17253
  return typeof m == "function" ? m : El;
17251
- }, [m]), N = xt(null), W = xt(null), Y = Eu(zy, so), re = Aa(Y, 2), ue = re[0], P = re[1], q = ue.isFocused, Z = ue.isFileDialogActive, pe = xt(typeof window < "u" && window.isSecureContext && v && wy()), me = function() {
17254
+ }, [m]), N = xt(null), W = xt(null), Y = Eu(zy, so), re = Aa(Y, 2), ue = re[0], P = re[1], q = ue.isFocused, Z = ue.isFileDialogActive, pe = xt(typeof window < "u" && window.isSecureContext && x && wy()), me = function() {
17252
17255
  !pe.current && Z && setTimeout(function() {
17253
17256
  if (W.current) {
17254
17257
  var F = W.current.files;
@@ -17274,12 +17277,12 @@ function bu() {
17274
17277
  return !n && b && N.current && N.current.focus(), function() {
17275
17278
  };
17276
17279
  }, [N, b, n]);
17277
- var B = Oe(function(x) {
17278
- R ? R(x) : console.error(x);
17279
- }, [R]), Q = Oe(function(x) {
17280
- x.preventDefault(), x.persist(), w(x), de.current = [].concat(_y(de.current), [x.target]), ii(x) && Promise.resolve(i(x)).then(function(F) {
17281
- if (!($i(x) && !D)) {
17282
- var z = F.length, M = z > 0 && yy({
17280
+ var B = Oe(function(v) {
17281
+ R ? R(v) : console.error(v);
17282
+ }, [R]), Q = Oe(function(v) {
17283
+ v.preventDefault(), v.persist(), w(v), de.current = [].concat(_y(de.current), [v.target]), ii(v) && Promise.resolve(i(v)).then(function(F) {
17284
+ if (!($i(v) && !M)) {
17285
+ var z = F.length, I = z > 0 && yy({
17283
17286
  files: F,
17284
17287
  accept: h,
17285
17288
  minSize: o,
@@ -17287,46 +17290,46 @@ function bu() {
17287
17290
  multiple: s,
17288
17291
  maxFiles: l,
17289
17292
  validator: H
17290
- }), U = z > 0 && !M;
17293
+ }), U = z > 0 && !I;
17291
17294
  P({
17292
- isDragAccept: M,
17295
+ isDragAccept: I,
17293
17296
  isDragReject: U,
17294
17297
  isDragActive: !0,
17295
17298
  type: "setDraggedFiles"
17296
- }), u && u(x);
17299
+ }), u && u(v);
17297
17300
  }
17298
17301
  }).catch(function(F) {
17299
17302
  return B(F);
17300
17303
  });
17301
- }, [i, u, B, D, h, o, a, s, l, H]), ae = Oe(function(x) {
17302
- x.preventDefault(), x.persist(), w(x);
17303
- var F = ii(x);
17304
- if (F && x.dataTransfer)
17304
+ }, [i, u, B, M, h, o, a, s, l, H]), ae = Oe(function(v) {
17305
+ v.preventDefault(), v.persist(), w(v);
17306
+ var F = ii(v);
17307
+ if (F && v.dataTransfer)
17305
17308
  try {
17306
- x.dataTransfer.dropEffect = "copy";
17309
+ v.dataTransfer.dropEffect = "copy";
17307
17310
  } catch {
17308
17311
  }
17309
- return F && p && p(x), !1;
17310
- }, [p, D]), se = Oe(function(x) {
17311
- x.preventDefault(), x.persist(), w(x);
17312
- var F = de.current.filter(function(M) {
17313
- return N.current && N.current.contains(M);
17314
- }), z = F.indexOf(x.target);
17312
+ return F && p && p(v), !1;
17313
+ }, [p, M]), se = Oe(function(v) {
17314
+ v.preventDefault(), v.persist(), w(v);
17315
+ var F = de.current.filter(function(I) {
17316
+ return N.current && N.current.contains(I);
17317
+ }), z = F.indexOf(v.target);
17315
17318
  z !== -1 && F.splice(z, 1), de.current = F, !(F.length > 0) && (P({
17316
17319
  type: "setDraggedFiles",
17317
17320
  isDragActive: !1,
17318
17321
  isDragAccept: !1,
17319
17322
  isDragReject: !1
17320
- }), ii(x) && f && f(x));
17321
- }, [N, f, D]), ce = Oe(function(x, F) {
17322
- var z = [], M = [];
17323
- x.forEach(function(U) {
17324
- var he = hu(U, h), ve = Aa(he, 2), ye = ve[0], We = ve[1], Pe = mu(U, o, a), ct = Aa(Pe, 2), yt = ct[0], Ne = ct[1], ne = H ? H(U) : null;
17325
- if (ye && yt && !ne)
17323
+ }), ii(v) && f && f(v));
17324
+ }, [N, f, M]), ce = Oe(function(v, F) {
17325
+ var z = [], I = [];
17326
+ v.forEach(function(U) {
17327
+ var he = hu(U, h), ye = Aa(he, 2), ve = ye[0], We = ye[1], Pe = mu(U, o, a), ct = Aa(Pe, 2), yt = ct[0], Ne = ct[1], ne = H ? H(U) : null;
17328
+ if (ve && yt && !ne)
17326
17329
  z.push(U);
17327
17330
  else {
17328
17331
  var et = [We, Ne];
17329
- ne && (et = et.concat(ne)), M.push({
17332
+ ne && (et = et.concat(ne)), I.push({
17330
17333
  file: U,
17331
17334
  errors: et.filter(function(tr) {
17332
17335
  return tr;
@@ -17334,34 +17337,34 @@ function bu() {
17334
17337
  });
17335
17338
  }
17336
17339
  }), (!s && z.length > 1 || s && l >= 1 && z.length > l) && (z.forEach(function(U) {
17337
- M.push({
17340
+ I.push({
17338
17341
  file: U,
17339
17342
  errors: [gy]
17340
17343
  });
17341
17344
  }), z.splice(0)), P({
17342
17345
  acceptedFiles: z,
17343
- fileRejections: M,
17344
- isDragReject: M.length > 0,
17346
+ fileRejections: I,
17347
+ isDragReject: I.length > 0,
17345
17348
  type: "setFiles"
17346
- }), c && c(z, M, F), M.length > 0 && k && k(M, F), z.length > 0 && y && y(z, F);
17347
- }, [P, s, h, o, a, l, c, y, k, H]), Se = Oe(function(x) {
17348
- x.preventDefault(), x.persist(), w(x), de.current = [], ii(x) && Promise.resolve(i(x)).then(function(F) {
17349
- $i(x) && !D || ce(F, x);
17349
+ }), c && c(z, I, F), I.length > 0 && k && k(I, F), z.length > 0 && y && y(z, F);
17350
+ }, [P, s, h, o, a, l, c, y, k, H]), Se = Oe(function(v) {
17351
+ v.preventDefault(), v.persist(), w(v), de.current = [], ii(v) && Promise.resolve(i(v)).then(function(F) {
17352
+ $i(v) && !M || ce(F, v);
17350
17353
  }).catch(function(F) {
17351
17354
  return B(F);
17352
17355
  }), P({
17353
17356
  type: "reset"
17354
17357
  });
17355
- }, [i, ce, B, D]), X = Oe(function() {
17358
+ }, [i, ce, B, M]), X = Oe(function() {
17356
17359
  if (pe.current) {
17357
17360
  P({
17358
17361
  type: "openDialog"
17359
17362
  }), L();
17360
- var x = {
17363
+ var v = {
17361
17364
  multiple: s,
17362
17365
  types: j
17363
17366
  };
17364
- window.showOpenFilePicker(x).then(function(F) {
17367
+ window.showOpenFilePicker(v).then(function(F) {
17365
17368
  return i(F);
17366
17369
  }).then(function(F) {
17367
17370
  ce(F, null), P({
@@ -17377,8 +17380,8 @@ function bu() {
17377
17380
  W.current && (P({
17378
17381
  type: "openDialog"
17379
17382
  }), L(), W.current.value = null, W.current.click());
17380
- }, [P, L, G, v, ce, B, j, s]), Ve = Oe(function(x) {
17381
- !N.current || !N.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), X());
17383
+ }, [P, L, G, x, ce, B, j, s]), Ve = Oe(function(v) {
17384
+ !N.current || !N.current.isEqualNode(v.target) || (v.key === " " || v.key === "Enter" || v.keyCode === 32 || v.keyCode === 13) && (v.preventDefault(), X());
17382
17385
  }, [N, X]), Xe = Oe(function() {
17383
17386
  P({
17384
17387
  type: "focus"
@@ -17396,29 +17399,29 @@ function bu() {
17396
17399
  }, Ye = function(F) {
17397
17400
  return _ ? null : Je(F);
17398
17401
  }, w = function(F) {
17399
- D && F.stopPropagation();
17402
+ M && F.stopPropagation();
17400
17403
  }, T = Ge(function() {
17401
17404
  return function() {
17402
- var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = x.refKey, z = F === void 0 ? "ref" : F, M = x.role, U = x.onKeyDown, he = x.onFocus, ve = x.onBlur, ye = x.onClick, We = x.onDragEnter, Pe = x.onDragOver, ct = x.onDragLeave, yt = x.onDrop, Ne = Pi(x, Fy);
17405
+ var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = v.refKey, z = F === void 0 ? "ref" : F, I = v.role, U = v.onKeyDown, he = v.onFocus, ye = v.onBlur, ve = v.onClick, We = v.onDragEnter, Pe = v.onDragOver, ct = v.onDragLeave, yt = v.onDrop, Ne = Pi(v, Fy);
17403
17406
  return je(je(oo({
17404
17407
  onKeyDown: Ke(Nt(U, Ve)),
17405
17408
  onFocus: Ke(Nt(he, Xe)),
17406
- onBlur: Ke(Nt(ve, rt)),
17407
- onClick: Je(Nt(ye, Pt)),
17409
+ onBlur: Ke(Nt(ye, rt)),
17410
+ onClick: Je(Nt(ve, Pt)),
17408
17411
  onDragEnter: Ye(Nt(We, Q)),
17409
17412
  onDragOver: Ye(Nt(Pe, ae)),
17410
17413
  onDragLeave: Ye(Nt(ct, se)),
17411
17414
  onDrop: Ye(Nt(yt, Se)),
17412
- role: typeof M == "string" && M !== "" ? M : "presentation"
17415
+ role: typeof I == "string" && I !== "" ? I : "presentation"
17413
17416
  }, z, N), !n && !C ? {
17414
17417
  tabIndex: 0
17415
17418
  } : {}), Ne);
17416
17419
  };
17417
- }, [N, Ve, Xe, rt, Pt, Q, ae, se, Se, C, _, n]), g = Oe(function(x) {
17418
- x.stopPropagation();
17419
- }, []), I = Ge(function() {
17420
+ }, [N, Ve, Xe, rt, Pt, Q, ae, se, Se, C, _, n]), g = Oe(function(v) {
17421
+ v.stopPropagation();
17422
+ }, []), D = Ge(function() {
17420
17423
  return function() {
17421
- var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = x.refKey, z = F === void 0 ? "ref" : F, M = x.onChange, U = x.onClick, he = Pi(x, Oy), ve = oo({
17424
+ var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = v.refKey, z = F === void 0 ? "ref" : F, I = v.onChange, U = v.onClick, he = Pi(v, Oy), ye = oo({
17422
17425
  accept: h,
17423
17426
  multiple: s,
17424
17427
  type: "file",
@@ -17434,17 +17437,17 @@ function bu() {
17434
17437
  width: "1px",
17435
17438
  whiteSpace: "nowrap"
17436
17439
  },
17437
- onChange: Je(Nt(M, Se)),
17440
+ onChange: Je(Nt(I, Se)),
17438
17441
  onClick: Je(Nt(U, g)),
17439
17442
  tabIndex: -1
17440
17443
  }, z, W);
17441
- return je(je({}, ve), he);
17444
+ return je(je({}, ye), he);
17442
17445
  };
17443
17446
  }, [W, r, s, Se, n]);
17444
17447
  return je(je({}, ue), {}, {
17445
17448
  isFocused: q && !n,
17446
17449
  getRootProps: T,
17447
- getInputProps: I,
17450
+ getInputProps: D,
17448
17451
  rootRef: N,
17449
17452
  inputRef: W,
17450
17453
  open: Je(X)
@@ -17561,7 +17564,7 @@ const Vy = gt(/* @__PURE__ */ d("path", {
17561
17564
  buttonText: u,
17562
17565
  fileSupportedText: f
17563
17566
  }) => {
17564
- const [p, c] = Ot(t), [y, k] = Ot([]), [m, S] = Ot(!1), [v, b] = Ot(!1), [$, A] = Ot(
17567
+ const [p, c] = Ot(t), [y, k] = Ot([]), [m, S] = Ot(!1), [x, b] = Ot(!1), [$, A] = Ot(
17565
17568
  []
17566
17569
  ), C = xt(null);
17567
17570
  Rt(() => {
@@ -17579,7 +17582,7 @@ const Vy = gt(/* @__PURE__ */ d("path", {
17579
17582
  })) ? e != null && e.maxSize && N.size > e.maxSize ? `File size exceeds maximum limit of ${(e.maxSize / 1048576).toFixed(1)}MB` : null : `File type ${N.type} is not allowed. Allowed types: ${(re = e == null ? void 0 : e.fileTypes) == null ? void 0 : re.join(", ")}`;
17580
17583
  },
17581
17584
  [e]
17582
- ), D = Oe(
17585
+ ), M = Oe(
17583
17586
  async (N) => {
17584
17587
  console.log("handleFiles called with:", N.length, "files"), S(!0);
17585
17588
  const W = [], Y = [];
@@ -17637,7 +17640,7 @@ const Vy = gt(/* @__PURE__ */ d("path", {
17637
17640
  const N = p.filter((W) => W.status !== "error");
17638
17641
  n == null || n(N);
17639
17642
  }, [p, n, e == null ? void 0 : e.required, e == null ? void 0 : e.title]), { getRootProps: h, getInputProps: j, isDragActive: L } = bu({
17640
- onDrop: D,
17643
+ onDrop: M,
17641
17644
  multiple: e == null ? void 0 : e.multiple,
17642
17645
  disabled: i,
17643
17646
  noClick: !1,
@@ -17652,7 +17655,7 @@ const Vy = gt(/* @__PURE__ */ d("path", {
17652
17655
  e == null ? void 0 : e.required,
17653
17656
  e == null ? void 0 : e.title,
17654
17657
  m,
17655
- v,
17658
+ x,
17656
17659
  $
17657
17660
  ]);
17658
17661
  const G = () => {