finform-react-builder 1.5.9 → 1.5.10

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
@@ -11,15 +11,15 @@ var bn = (e, t, r, n) => ({
11
11
  return v(e, t, n);
12
12
  }
13
13
  });
14
- import { jsx as D, jsxs as ke, Fragment as Ol } from "react/jsx-runtime";
14
+ import { jsx as D, jsxs as ke, Fragment as Tl } from "react/jsx-runtime";
15
15
  import * as Fe from "react";
16
- import ye, { useMemo as Ie, useState as Xt, useRef as xt, useCallback as je, useEffect as wt, createElement as io, useReducer as Tl, forwardRef as _l, useImperativeHandle as Cl, Fragment as Al } from "react";
17
- import { Box as ve, TextField as wn, Autocomplete as Fl, CircularProgress as _r, Chip as zn, Checkbox as _a, FormControlLabel as Sn, Switch as $l, FormHelperText as Hr, FormControl as mi, Typography as Ve, RadioGroup as Ca, Radio as Aa, InputLabel as Dl, Select as Rl, MenuItem as En, Card as Pl, LinearProgress as jl, Button as Bt, ButtonGroup as Il, createTheme as Ml, ThemeProvider as zl, Paper as ao, Tooltip as Vl, IconButton as Nl, Alert as Ll } from "@mui/material";
16
+ import ye, { useMemo as Ie, useState as Xt, useRef as xt, useCallback as je, useEffect as wt, createElement as io, useReducer as _l, forwardRef as Cl, useImperativeHandle as Al, Fragment as Fl } from "react";
17
+ import { Box as xe, TextField as wn, Autocomplete as $l, CircularProgress as _r, Chip as zn, Checkbox as _a, FormControlLabel as Sn, Switch as Dl, FormHelperText as Hr, FormControl as mi, Typography as Ve, RadioGroup as Ca, Radio as Aa, InputLabel as Rl, Select as Pl, MenuItem as En, Card as ao, LinearProgress as jl, Button as Bt, ButtonGroup as Il, createTheme as Ml, ThemeProvider as zl, Paper as so, Tooltip as Vl, IconButton as Nl, Alert as Ll } from "@mui/material";
18
18
  import ql from "@emotion/styled";
19
19
  import "@emotion/react";
20
20
  var pn = (e) => e.type === "checkbox", tr = (e) => e instanceof Date, We = (e) => e == null;
21
- const so = (e) => typeof e == "object";
22
- var De = (e) => !We(e) && !Array.isArray(e) && so(e) && !tr(e), oo = (e) => De(e) && e.target ? pn(e.target) ? e.target.checked : e.target.value : e, Bl = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, lo = (e, t) => e.has(Bl(t)), Ul = (e) => {
21
+ const oo = (e) => typeof e == "object";
22
+ var De = (e) => !We(e) && !Array.isArray(e) && oo(e) && !tr(e), lo = (e) => De(e) && e.target ? pn(e.target) ? e.target.checked : e.target.value : e, Bl = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, co = (e, t) => e.has(Bl(t)), Ul = (e) => {
23
23
  const t = e.constructor && e.constructor.prototype;
24
24
  return De(t) && t.hasOwnProperty("isPrototypeOf");
25
25
  }, ia = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -78,10 +78,10 @@ const Vn = {
78
78
  pattern: "pattern",
79
79
  required: "required",
80
80
  validate: "validate"
81
- }, co = ye.createContext(null);
82
- co.displayName = "HookFormContext";
83
- const oa = () => ye.useContext(co);
84
- var uo = (e, t, r, n = !0) => {
81
+ }, uo = ye.createContext(null);
82
+ uo.displayName = "HookFormContext";
83
+ const oa = () => ye.useContext(uo);
84
+ var po = (e, t, r, n = !0) => {
85
85
  const i = {
86
86
  defaultValues: t._defaultValues
87
87
  };
@@ -118,9 +118,9 @@ function Wl(e) {
118
118
  }
119
119
  }), [i, n, a]), ye.useEffect(() => {
120
120
  l.current.isValid && r._setValid(!0);
121
- }, [r]), ye.useMemo(() => uo(s, r, l.current, !1), [s, r]);
121
+ }, [r]), ye.useMemo(() => po(s, r, l.current, !1), [s, r]);
122
122
  }
123
- var bt = (e) => typeof e == "string", po = (e, t, r, n, i) => bt(e) ? (n && t.watch.add(e), L(r, e, i)) : Array.isArray(e) ? e.map((a) => (n && t.watch.add(a), L(r, a))) : (n && (t.watchAll = !0), r);
123
+ var bt = (e) => typeof e == "string", fo = (e, t, r, n, i) => bt(e) ? (n && t.watch.add(e), L(r, e, i)) : Array.isArray(e) ? e.map((a) => (n && t.watch.add(a), L(r, a))) : (n && (t.watchAll = !0), r);
124
124
  function Hl(e) {
125
125
  const t = oa(), { control: r = t.control, name: n, defaultValue: i, disabled: a, exact: s } = e || {}, o = ye.useRef(i), [l, p] = ye.useState(r._getWatch(n, o.current));
126
126
  return la(() => r._subscribe({
@@ -129,11 +129,11 @@ function Hl(e) {
129
129
  values: !0
130
130
  },
131
131
  exact: s,
132
- callback: (d) => !a && p(po(n, r._names, d.values || r._formValues, !1, o.current))
132
+ callback: (d) => !a && p(fo(n, r._names, d.values || r._formValues, !1, o.current))
133
133
  }), [n, r, a, s]), ye.useEffect(() => r._removeUnmounted()), l;
134
134
  }
135
135
  function Kl(e) {
136
- const t = oa(), { name: r, disabled: n, control: i = t.control, shouldUnregister: a } = e, s = lo(i._names.array, r), o = Hl({
136
+ const t = oa(), { name: r, disabled: n, control: i = t.control, shouldUnregister: a } = e, s = co(i._names.array, r), o = Hl({
137
137
  control: i,
138
138
  name: r,
139
139
  defaultValue: L(i._formValues, r, L(i._defaultValues, r, e.defaultValue)),
@@ -169,7 +169,7 @@ function Kl(e) {
169
169
  }
170
170
  }), [l, r]), m = ye.useCallback((b) => d.current.onChange({
171
171
  target: {
172
- value: oo(b),
172
+ value: lo(b),
173
173
  name: r
174
174
  },
175
175
  type: Vn.CHANGE
@@ -224,7 +224,7 @@ function Kl(e) {
224
224
  }), [c, l, f]);
225
225
  }
226
226
  const pt = (e) => e.render(Kl(e));
227
- var fo = (e, t, r, n, i) => t ? {
227
+ var mo = (e, t, r, n, i) => t ? {
228
228
  ...r[e],
229
229
  types: {
230
230
  ...r[e] && r[e].types ? r[e].types : {},
@@ -249,7 +249,7 @@ var fo = (e, t, r, n, i) => t ? {
249
249
  e = [];
250
250
  }
251
251
  };
252
- }, Di = (e) => We(e) || !so(e);
252
+ }, Di = (e) => We(e) || !oo(e);
253
253
  function Pt(e, t) {
254
254
  if (Di(e) || Di(t))
255
255
  return e === t;
@@ -275,7 +275,7 @@ var Qe = (e) => De(e) && !Object.keys(e).length, ca = (e) => e.type === "file",
275
275
  return !1;
276
276
  const t = e ? e.ownerDocument : 0;
277
277
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
278
- }, mo = (e) => e.type === "select-multiple", ua = (e) => e.type === "radio", Ql = (e) => ua(e) || pn(e), hi = (e) => Nn(e) && e.isConnected;
278
+ }, ho = (e) => e.type === "select-multiple", ua = (e) => e.type === "radio", Ql = (e) => ua(e) || pn(e), hi = (e) => Nn(e) && e.isConnected;
279
279
  function Gl(e, t) {
280
280
  const r = t.slice(0, -1).length;
281
281
  let n = 0;
@@ -293,7 +293,7 @@ function Pe(e, t) {
293
293
  const r = Array.isArray(t) ? t : ti(t) ? [t] : sa(t), n = r.length === 1 ? e : Gl(e, r), i = r.length - 1, a = r[i];
294
294
  return n && delete n[a], i !== 0 && (De(n) && Qe(n) || Array.isArray(n) && Yl(n)) && Pe(e, r.slice(0, -1)), e;
295
295
  }
296
- var ho = (e) => {
296
+ var go = (e) => {
297
297
  for (const t in e)
298
298
  if (ut(e[t]))
299
299
  return !0;
@@ -303,22 +303,22 @@ function Ln(e, t = {}) {
303
303
  const r = Array.isArray(e);
304
304
  if (De(e) || r)
305
305
  for (const n in e)
306
- Array.isArray(e[n]) || De(e[n]) && !ho(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, Ln(e[n], t[n])) : We(e[n]) || (t[n] = !0);
306
+ Array.isArray(e[n]) || De(e[n]) && !go(e[n]) ? (t[n] = Array.isArray(e[n]) ? [] : {}, Ln(e[n], t[n])) : We(e[n]) || (t[n] = !0);
307
307
  return t;
308
308
  }
309
- function go(e, t, r) {
309
+ function yo(e, t, r) {
310
310
  const n = Array.isArray(e);
311
311
  if (De(e) || n)
312
312
  for (const i in e)
313
- Array.isArray(e[i]) || De(e[i]) && !ho(e[i]) ? $e(t) || Di(r[i]) ? r[i] = Array.isArray(e[i]) ? Ln(e[i], []) : { ...Ln(e[i]) } : go(e[i], We(t) ? {} : t[i], r[i]) : r[i] = !Pt(e[i], t[i]);
313
+ Array.isArray(e[i]) || De(e[i]) && !go(e[i]) ? $e(t) || Di(r[i]) ? r[i] = Array.isArray(e[i]) ? Ln(e[i], []) : { ...Ln(e[i]) } : yo(e[i], We(t) ? {} : t[i], r[i]) : r[i] = !Pt(e[i], t[i]);
314
314
  return r;
315
315
  }
316
- var Kr = (e, t) => go(e, t, Ln(t));
316
+ var Kr = (e, t) => yo(e, t, Ln(t));
317
317
  const $a = {
318
318
  value: !1,
319
319
  isValid: !1
320
320
  }, Da = { value: !0, isValid: !0 };
321
- var yo = (e) => {
321
+ var vo = (e) => {
322
322
  if (Array.isArray(e)) {
323
323
  if (e.length > 1) {
324
324
  const t = e.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -330,18 +330,18 @@ var yo = (e) => {
330
330
  ) : $a;
331
331
  }
332
332
  return $a;
333
- }, vo = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => $e(e) ? e : t ? e === "" ? NaN : e && +e : r && bt(e) ? new Date(e) : n ? n(e) : e;
333
+ }, xo = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => $e(e) ? e : t ? e === "" ? NaN : e && +e : r && bt(e) ? new Date(e) : n ? n(e) : e;
334
334
  const Ra = {
335
335
  isValid: !1,
336
336
  value: null
337
337
  };
338
- var xo = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
338
+ var bo = (e) => Array.isArray(e) ? e.reduce((t, r) => r && r.checked && !r.disabled ? {
339
339
  isValid: !0,
340
340
  value: r.value
341
341
  } : t, Ra) : Ra;
342
342
  function Pa(e) {
343
343
  const t = e.ref;
344
- return ca(t) ? t.files : ua(t) ? xo(e.refs).value : mo(t) ? [...t.selectedOptions].map(({ value: r }) => r) : pn(t) ? yo(e.refs).value : vo($e(t.value) ? e.ref.value : t.value, e);
344
+ return ca(t) ? t.files : ua(t) ? bo(e.refs).value : ho(t) ? [...t.selectedOptions].map(({ value: r }) => r) : pn(t) ? vo(e.refs).value : xo($e(t.value) ? e.ref.value : t.value, e);
345
345
  }
346
346
  var Zl = (e, t, r, n) => {
347
347
  const i = {};
@@ -434,7 +434,7 @@ var vr = (e) => De(e) && !qn(e) ? e : {
434
434
  return {};
435
435
  const A = o ? o[0] : s, C = (k) => {
436
436
  i && A.reportValidity && (A.setCustomValidity(Ze(k) ? "" : k || ""), A.reportValidity());
437
- }, w = {}, z = ua(s), H = pn(s), te = z || H, K = (b || ca(s)) && $e(s.value) && $e(O) || Nn(s) && s.value === "" || O === "" || Array.isArray(O) && !O.length, u = fo.bind(null, c, n, w), F = (k, j, M, V = St.maxLength, W = St.minLength) => {
437
+ }, w = {}, z = ua(s), H = pn(s), te = z || H, K = (b || ca(s)) && $e(s.value) && $e(O) || Nn(s) && s.value === "" || O === "" || Array.isArray(O) && !O.length, u = mo.bind(null, c, n, w), F = (k, j, M, V = St.maxLength, W = St.minLength) => {
438
438
  const se = k ? j : M;
439
439
  w[c] = {
440
440
  type: k ? V : W,
@@ -443,7 +443,7 @@ var vr = (e) => De(e) && !qn(e) ? e : {
443
443
  ...u(k ? V : W, se)
444
444
  };
445
445
  };
446
- if (a ? !Array.isArray(O) || !O.length : l && (!te && (K || We(O)) || Ze(O) && !O || H && !yo(o).isValid || z && !xo(o).isValid)) {
446
+ if (a ? !Array.isArray(O) || !O.length : l && (!te && (K || We(O)) || Ze(O) && !O || H && !vo(o).isValid || z && !bo(o).isValid)) {
447
447
  const { value: k, message: j } = Pn(l) ? { value: !!l, message: l } : vr(l);
448
448
  if (k && (w[c] = {
449
449
  type: St.required,
@@ -686,14 +686,14 @@ function sc(e = {}) {
686
686
  S && (S._f.refs ? S._f.refs.every(($) => !hi($)) : !hi(S._f.ref)) && J(h);
687
687
  }
688
688
  o.unMount = /* @__PURE__ */ new Set();
689
- }, F = (h, S) => !t.disabled && (h && S && ge(a, h, S), !Pt(I(), i)), k = (h, S, $) => po(h, o, {
689
+ }, F = (h, S) => !t.disabled && (h && S && ge(a, h, S), !Pt(I(), i)), k = (h, S, $) => fo(h, o, {
690
690
  ...s.mount ? a : $e(S) ? i : bt(h) ? { [h]: S } : S
691
691
  }, $, S), j = (h) => aa(L(s.mount ? a : i, h, t.shouldUnregister ? L(i, h, []) : [])), M = (h, S, $ = {}) => {
692
692
  const G = L(n, h);
693
693
  let E = S;
694
694
  if (G) {
695
695
  const T = G._f;
696
- T && (!T.disabled && ge(a, h, vo(S, T)), E = Nn(T.ref) && We(S) ? "" : S, mo(T.ref) ? [...T.ref.options].forEach((q) => q.selected = E.includes(q.value)) : T.refs ? pn(T.ref) ? T.refs.forEach((q) => {
696
+ T && (!T.disabled && ge(a, h, xo(S, T)), E = Nn(T.ref) && We(S) ? "" : S, ho(T.ref) ? [...T.ref.options].forEach((q) => q.selected = E.includes(q.value)) : T.refs ? pn(T.ref) ? T.refs.forEach((q) => {
697
697
  (!q.defaultChecked || !q.disabled) && (Array.isArray(E) ? q.checked = !!E.find((ie) => ie === q.value) : q.checked = E === q.value || !!E);
698
698
  }) : T.refs.forEach((q) => q.checked = q.value === E) : ca(T.ref) ? T.ref.value = "" : (T.ref.value = E, T.ref.type || m.state.next({
699
699
  name: h,
@@ -730,7 +730,7 @@ function sc(e = {}) {
730
730
  }, q = ja(t.mode), ie = ja(t.reValidateMode);
731
731
  if (E) {
732
732
  let le, ze;
733
- const st = S.type ? Pa(E._f) : oo(h), tt = h.type === Vn.BLUR || h.type === Vn.FOCUS_OUT, Br = !Xl(E._f) && !t.resolver && !L(r.errors, $) && !E._f.deps || rc(tt, L(r.touchedFields, $), r.isSubmitted, ie, q), Zt = Ma($, o, tt);
733
+ const st = S.type ? Pa(E._f) : lo(h), tt = h.type === Vn.BLUR || h.type === Vn.FOCUS_OUT, Br = !Xl(E._f) && !t.resolver && !L(r.errors, $) && !E._f.deps || rc(tt, L(r.touchedFields, $), r.isSubmitted, ie, q), Zt = Ma($, o, tt);
734
734
  ge(a, $, st), tt ? (E._f.onBlur && E._f.onBlur(h), l && l(0)) : E._f.onChange && E._f.onChange(h);
735
735
  const $t = w($, st, tt), Ur = !Qe($t) || Zt;
736
736
  if (!tt && m.state.next({
@@ -867,7 +867,7 @@ function sc(e = {}) {
867
867
  }
868
868
  }), C(h, !1, void 0, T);
869
869
  } else
870
- $ = L(n, h, {}), $._f && ($._f.mount = !1), (t.shouldUnregister || S.shouldUnregister) && !(lo(o.array, h) && s.action) && o.unMount.add(h);
870
+ $ = L(n, h, {}), $._f && ($._f.mount = !1), (t.shouldUnregister || S.shouldUnregister) && !(co(o.array, h) && s.action) && o.unMount.add(h);
871
871
  }
872
872
  };
873
873
  }, U = () => t.shouldFocusError && tn(n, de, o.mount), X = (h) => {
@@ -1117,20 +1117,20 @@ function oc(e = {}) {
1117
1117
  e.values && !Pt(e.values, r.current) ? (a._reset(e.values, a._options.resetOptions), r.current = e.values, i((s) => ({ ...s }))) : a._resetDefaultValues();
1118
1118
  }, [a, e.values]), ye.useEffect(() => {
1119
1119
  a._state.mount || (a._setValid(), a._state.mount = !0), a._state.watch && (a._state.watch = !1, a._subjects.state.next({ ...a._formState })), a._removeUnmounted();
1120
- }), t.current.formState = uo(n, a), t.current;
1120
+ }), t.current.formState = po(n, a), t.current;
1121
1121
  }
1122
1122
  const La = (e, t, r) => {
1123
1123
  if (e && "reportValidity" in e) {
1124
1124
  const n = L(r, t);
1125
1125
  e.setCustomValidity(n && n.message || ""), e.reportValidity();
1126
1126
  }
1127
- }, bo = (e, t) => {
1127
+ }, wo = (e, t) => {
1128
1128
  for (const r in t.fields) {
1129
1129
  const n = t.fields[r];
1130
1130
  n && n.ref && "reportValidity" in n.ref ? La(n.ref, r, e) : n && n.refs && n.refs.forEach((i) => La(i, r, e));
1131
1131
  }
1132
1132
  }, lc = (e, t) => {
1133
- t.shouldUseNativeValidation && bo(e, t);
1133
+ t.shouldUseNativeValidation && wo(e, t);
1134
1134
  const r = {};
1135
1135
  for (const n in e) {
1136
1136
  const i = L(t.fields, n), a = Object.assign(e[n] || {}, { ref: i && i.ref });
@@ -1153,7 +1153,7 @@ function uc(e, t, r) {
1153
1153
  return Promise.resolve(function(s, o) {
1154
1154
  try {
1155
1155
  var l = (t != null && t.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(e[r.mode === "sync" ? "validateSync" : "validate"](n, Object.assign({ abortEarly: !1 }, t, { context: i }))).then(function(p) {
1156
- return a.shouldUseNativeValidation && bo({}, a), { values: r.raw ? Object.assign({}, n) : p, errors: {} };
1156
+ return a.shouldUseNativeValidation && wo({}, a), { values: r.raw ? Object.assign({}, n) : p, errors: {} };
1157
1157
  }));
1158
1158
  } catch (p) {
1159
1159
  return o(p);
@@ -1164,7 +1164,7 @@ function uc(e, t, r) {
1164
1164
  return { values: {}, errors: lc((o = s, l = !a.shouldUseNativeValidation && a.criteriaMode === "all", (o.inner || []).reduce(function(p, d) {
1165
1165
  if (p[d.path] || (p[d.path] = { message: d.message, type: d.type }), l) {
1166
1166
  var f = p[d.path].types, m = f && f[d.type];
1167
- p[d.path] = fo(d.path, l, p, d.type, m ? [].concat(m, d.message) : d.message);
1167
+ p[d.path] = mo(d.path, l, p, d.type, m ? [].concat(m, d.message) : d.message);
1168
1168
  }
1169
1169
  return p;
1170
1170
  }, {})), a) };
@@ -1200,7 +1200,7 @@ function dc(e, t) {
1200
1200
  function Ri(e) {
1201
1201
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
1202
1202
  }
1203
- function wo(e, t) {
1203
+ function So(e, t) {
1204
1204
  return Math.max(e + (t || 0) - Date.now(), 0);
1205
1205
  }
1206
1206
  function Wt(e, t) {
@@ -1325,7 +1325,7 @@ function mc(e, t, r = 0) {
1325
1325
  return r && n.length > r ? n.slice(0, -1) : n;
1326
1326
  }
1327
1327
  var Bn = Symbol();
1328
- function So(e, t) {
1328
+ function Eo(e, t) {
1329
1329
  return process.env.NODE_ENV !== "production" && e.queryFn === Bn && console.error(
1330
1330
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
1331
1331
  ), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Bn ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
@@ -1434,27 +1434,27 @@ function zi() {
1434
1434
  function vc(e) {
1435
1435
  return Math.min(1e3 * 2 ** e, 3e4);
1436
1436
  }
1437
- function Eo(e) {
1437
+ function ko(e) {
1438
1438
  return (e ?? "online") === "online" ? Un.isOnline() : !0;
1439
1439
  }
1440
- var ko = class extends Error {
1440
+ var Oo = class extends Error {
1441
1441
  constructor(e) {
1442
1442
  super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1443
1443
  }
1444
1444
  };
1445
1445
  function gi(e) {
1446
- return e instanceof ko;
1446
+ return e instanceof Oo;
1447
1447
  }
1448
- function Oo(e) {
1448
+ function To(e) {
1449
1449
  let t = !1, r = 0, n = !1, i;
1450
1450
  const a = zi(), s = (c) => {
1451
1451
  var b;
1452
- n || (m(new ko(c)), (b = e.abort) == null || b.call(e));
1452
+ n || (m(new Oo(c)), (b = e.abort) == null || b.call(e));
1453
1453
  }, o = () => {
1454
1454
  t = !0;
1455
1455
  }, l = () => {
1456
1456
  t = !1;
1457
- }, p = () => pa.isFocused() && (e.networkMode === "always" || Un.isOnline()) && e.canRun(), d = () => Eo(e.networkMode) && e.canRun(), f = (c) => {
1457
+ }, p = () => pa.isFocused() && (e.networkMode === "always" || Un.isOnline()) && e.canRun(), d = () => ko(e.networkMode) && e.canRun(), f = (c) => {
1458
1458
  var b;
1459
1459
  n || (n = !0, (b = e.onSuccess) == null || b.call(e, c), i == null || i(), a.resolve(c));
1460
1460
  }, m = (c) => {
@@ -1562,7 +1562,7 @@ function bc() {
1562
1562
  }
1563
1563
  };
1564
1564
  }
1565
- var Le = bc(), nr, Zs, To = (Zs = class {
1565
+ var Le = bc(), nr, Zs, _o = (Zs = class {
1566
1566
  constructor() {
1567
1567
  ae(this, nr);
1568
1568
  }
@@ -1583,7 +1583,7 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1583
1583
  clearGcTimeout() {
1584
1584
  v(this, nr) && (clearTimeout(v(this, nr)), Z(this, nr, void 0));
1585
1585
  }
1586
- }, nr = new WeakMap(), Zs), Dr, ir, rt, ar, qe, ln, sr, ot, Ot, Js, wc = (Js = class extends To {
1586
+ }, nr = new WeakMap(), Zs), Dr, ir, rt, ar, qe, ln, sr, ot, Ot, Js, wc = (Js = class extends _o {
1587
1587
  constructor(t) {
1588
1588
  super();
1589
1589
  ae(this, ot);
@@ -1651,7 +1651,7 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1651
1651
  ) : this.state.data === void 0 || this.state.isInvalidated;
1652
1652
  }
1653
1653
  isStaleByTime(t = 0) {
1654
- return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !wo(this.state.dataUpdatedAt, t);
1654
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !So(this.state.dataUpdatedAt, t);
1655
1655
  }
1656
1656
  onFocus() {
1657
1657
  var r;
@@ -1696,7 +1696,7 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1696
1696
  get: () => (Z(this, sr, !0), n.signal)
1697
1697
  });
1698
1698
  }, a = () => {
1699
- const m = So(this.options, r), g = (() => {
1699
+ const m = Eo(this.options, r), g = (() => {
1700
1700
  const c = {
1701
1701
  client: v(this, ar),
1702
1702
  queryKey: this.queryKey,
@@ -1737,7 +1737,7 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1737
1737
  this
1738
1738
  )), this.scheduleGc();
1739
1739
  };
1740
- return Z(this, qe, Oo({
1740
+ return Z(this, qe, To({
1741
1741
  initialPromise: r == null ? void 0 : r.initialPromise,
1742
1742
  fn: o.fetchFn,
1743
1743
  abort: n.abort.bind(n),
@@ -1800,7 +1800,7 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1800
1800
  case "fetch":
1801
1801
  return {
1802
1802
  ...n,
1803
- ..._o(n.data, this.options),
1803
+ ...Co(n.data, this.options),
1804
1804
  fetchMeta: t.meta ?? null
1805
1805
  };
1806
1806
  case "success":
@@ -1848,11 +1848,11 @@ var Le = bc(), nr, Zs, To = (Zs = class {
1848
1848
  }), v(this, rt).notify({ query: this, type: "updated", action: t });
1849
1849
  });
1850
1850
  }, Js);
1851
- function _o(e, t) {
1851
+ function Co(e, t) {
1852
1852
  return {
1853
1853
  fetchFailureCount: 0,
1854
1854
  fetchFailureReason: null,
1855
- fetchStatus: Eo(t.networkMode) ? "fetching" : "paused",
1855
+ fetchStatus: ko(t.networkMode) ? "fetching" : "paused",
1856
1856
  ...e === void 0 && {
1857
1857
  error: null,
1858
1858
  status: "pending"
@@ -1948,7 +1948,7 @@ var gt, Xs, Ec = (Xs = class extends fn {
1948
1948
  });
1949
1949
  });
1950
1950
  }
1951
- }, gt = new WeakMap(), Xs), yt, Be, or, vt, Dt, eo, kc = (eo = class extends To {
1951
+ }, gt = new WeakMap(), Xs), yt, Be, or, vt, Dt, eo, kc = (eo = class extends _o {
1952
1952
  constructor(t) {
1953
1953
  super();
1954
1954
  ae(this, vt);
@@ -1990,7 +1990,7 @@ var gt, Xs, Ec = (Xs = class extends fn {
1990
1990
  const r = () => {
1991
1991
  pe(this, vt, Dt).call(this, { type: "continue" });
1992
1992
  };
1993
- Z(this, or, Oo({
1993
+ Z(this, or, To({
1994
1994
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
1995
1995
  onFail: (K, u) => {
1996
1996
  pe(this, vt, Dt).call(this, { type: "failed", failureCount: K, error: u });
@@ -2261,7 +2261,7 @@ function Ka(e) {
2261
2261
  c = !0;
2262
2262
  }), t.signal)
2263
2263
  });
2264
- }, y = So(t.options, t.fetchOptions), O = async (A, C, w) => {
2264
+ }, y = Eo(t.options, t.fetchOptions), O = async (A, C, w) => {
2265
2265
  if (c)
2266
2266
  return Promise.reject();
2267
2267
  if (C == null && A.pages.length)
@@ -2534,10 +2534,10 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2534
2534
  clear() {
2535
2535
  v(this, Ae).clear(), v(this, Mt).clear();
2536
2536
  }
2537
- }, Ae = new WeakMap(), Mt = new WeakMap(), zt = new WeakMap(), Rr = new WeakMap(), Pr = new WeakMap(), Vt = new WeakMap(), jr = new WeakMap(), Ir = new WeakMap(), ro), Ke, fe, un, Ue, lr, Mr, Nt, Lt, dn, zr, Vr, cr, ur, qt, Nr, xe, Yr, Vi, Ni, Li, qi, Bi, Ui, Wi, Co, no, Ac = (no = class extends fn {
2537
+ }, Ae = new WeakMap(), Mt = new WeakMap(), zt = new WeakMap(), Rr = new WeakMap(), Pr = new WeakMap(), Vt = new WeakMap(), jr = new WeakMap(), Ir = new WeakMap(), ro), Ke, fe, un, Ue, lr, Mr, Nt, Lt, dn, zr, Vr, cr, ur, qt, Nr, ve, Yr, Vi, Ni, Li, qi, Bi, Ui, Wi, Ao, no, Ac = (no = class extends fn {
2538
2538
  constructor(t, r) {
2539
2539
  super();
2540
- ae(this, xe);
2540
+ ae(this, ve);
2541
2541
  ae(this, Ke);
2542
2542
  ae(this, fe);
2543
2543
  ae(this, un);
@@ -2563,7 +2563,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2563
2563
  this.refetch = this.refetch.bind(this);
2564
2564
  }
2565
2565
  onSubscribe() {
2566
- this.listeners.size === 1 && (v(this, fe).addObserver(this), Ga(v(this, fe), this.options) ? pe(this, xe, Yr).call(this) : this.updateResult(), pe(this, xe, qi).call(this));
2566
+ this.listeners.size === 1 && (v(this, fe).addObserver(this), Ga(v(this, fe), this.options) ? pe(this, ve, Yr).call(this) : this.updateResult(), pe(this, ve, qi).call(this));
2567
2567
  }
2568
2568
  onUnsubscribe() {
2569
2569
  this.hasListeners() || this.destroy();
@@ -2583,7 +2583,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2583
2583
  );
2584
2584
  }
2585
2585
  destroy() {
2586
- this.listeners = /* @__PURE__ */ new Set(), pe(this, xe, Bi).call(this), pe(this, xe, Ui).call(this), v(this, fe).removeObserver(this);
2586
+ this.listeners = /* @__PURE__ */ new Set(), pe(this, ve, Bi).call(this), pe(this, ve, Ui).call(this), v(this, fe).removeObserver(this);
2587
2587
  }
2588
2588
  setOptions(t) {
2589
2589
  const r = this.options, n = v(this, fe);
@@ -2591,7 +2591,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2591
2591
  throw new Error(
2592
2592
  "Expected enabled to be a boolean or a callback that returns a boolean"
2593
2593
  );
2594
- pe(this, xe, Wi).call(this), v(this, fe).setOptions(this.options), r._defaulted && !ji(this.options, r) && v(this, Ke).getQueryCache().notify({
2594
+ pe(this, ve, Wi).call(this), v(this, fe).setOptions(this.options), r._defaulted && !ji(this.options, r) && v(this, Ke).getQueryCache().notify({
2595
2595
  type: "observerOptionsUpdated",
2596
2596
  query: v(this, fe),
2597
2597
  observer: this
@@ -2602,9 +2602,9 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2602
2602
  n,
2603
2603
  this.options,
2604
2604
  r
2605
- ) && pe(this, xe, Yr).call(this), this.updateResult(), i && (v(this, fe) !== n || nt(this.options.enabled, v(this, fe)) !== nt(r.enabled, v(this, fe)) || Wt(this.options.staleTime, v(this, fe)) !== Wt(r.staleTime, v(this, fe))) && pe(this, xe, Vi).call(this);
2606
- const a = pe(this, xe, Ni).call(this);
2607
- i && (v(this, fe) !== n || nt(this.options.enabled, v(this, fe)) !== nt(r.enabled, v(this, fe)) || a !== v(this, qt)) && pe(this, xe, Li).call(this, a);
2605
+ ) && pe(this, ve, Yr).call(this), this.updateResult(), i && (v(this, fe) !== n || nt(this.options.enabled, v(this, fe)) !== nt(r.enabled, v(this, fe)) || Wt(this.options.staleTime, v(this, fe)) !== Wt(r.staleTime, v(this, fe))) && pe(this, ve, Vi).call(this);
2606
+ const a = pe(this, ve, Ni).call(this);
2607
+ i && (v(this, fe) !== n || nt(this.options.enabled, v(this, fe)) !== nt(r.enabled, v(this, fe)) || a !== v(this, qt)) && pe(this, ve, Li).call(this, a);
2608
2608
  }
2609
2609
  getOptimisticResult(t) {
2610
2610
  const r = v(this, Ke).getQueryCache().build(v(this, Ke), t), n = this.createResult(r, t);
@@ -2634,7 +2634,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2634
2634
  return n.fetch().then(() => this.createResult(n, r));
2635
2635
  }
2636
2636
  fetch(t) {
2637
- return pe(this, xe, Yr).call(this, {
2637
+ return pe(this, ve, Yr).call(this, {
2638
2638
  ...t,
2639
2639
  cancelRefetch: t.cancelRefetch ?? !0
2640
2640
  }).then(() => (this.updateResult(), v(this, Ue)));
@@ -2647,7 +2647,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2647
2647
  const u = this.hasListeners(), F = !u && Ga(t, r), k = u && Ya(t, n, r, i);
2648
2648
  (F || k) && (f = {
2649
2649
  ...f,
2650
- ..._o(d.data, t.options)
2650
+ ...Co(d.data, t.options)
2651
2651
  }), r._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
2652
2652
  }
2653
2653
  let { error: g, errorUpdatedAt: c, status: b } = f;
@@ -2742,38 +2742,38 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2742
2742
  return v(this, Ue)[l] !== t[l] && s.has(l);
2743
2743
  });
2744
2744
  };
2745
- pe(this, xe, Co).call(this, { listeners: n() });
2745
+ pe(this, ve, Ao).call(this, { listeners: n() });
2746
2746
  }
2747
2747
  onQueryUpdate() {
2748
- this.updateResult(), this.hasListeners() && pe(this, xe, qi).call(this);
2748
+ this.updateResult(), this.hasListeners() && pe(this, ve, qi).call(this);
2749
2749
  }
2750
- }, Ke = new WeakMap(), fe = new WeakMap(), un = new WeakMap(), Ue = new WeakMap(), lr = new WeakMap(), Mr = new WeakMap(), Nt = new WeakMap(), Lt = new WeakMap(), dn = new WeakMap(), zr = new WeakMap(), Vr = new WeakMap(), cr = new WeakMap(), ur = new WeakMap(), qt = new WeakMap(), Nr = new WeakMap(), xe = new WeakSet(), Yr = function(t) {
2751
- pe(this, xe, Wi).call(this);
2750
+ }, Ke = new WeakMap(), fe = new WeakMap(), un = new WeakMap(), Ue = new WeakMap(), lr = new WeakMap(), Mr = new WeakMap(), Nt = new WeakMap(), Lt = new WeakMap(), dn = new WeakMap(), zr = new WeakMap(), Vr = new WeakMap(), cr = new WeakMap(), ur = new WeakMap(), qt = new WeakMap(), Nr = new WeakMap(), ve = new WeakSet(), Yr = function(t) {
2751
+ pe(this, ve, Wi).call(this);
2752
2752
  let r = v(this, fe).fetch(
2753
2753
  this.options,
2754
2754
  t
2755
2755
  );
2756
2756
  return t != null && t.throwOnError || (r = r.catch(Ge)), r;
2757
2757
  }, Vi = function() {
2758
- pe(this, xe, Bi).call(this);
2758
+ pe(this, ve, Bi).call(this);
2759
2759
  const t = Wt(
2760
2760
  this.options.staleTime,
2761
2761
  v(this, fe)
2762
2762
  );
2763
2763
  if (pr || v(this, Ue).isStale || !Ri(t))
2764
2764
  return;
2765
- const n = wo(v(this, Ue).dataUpdatedAt, t) + 1;
2765
+ const n = So(v(this, Ue).dataUpdatedAt, t) + 1;
2766
2766
  Z(this, cr, setTimeout(() => {
2767
2767
  v(this, Ue).isStale || this.updateResult();
2768
2768
  }, n));
2769
2769
  }, Ni = function() {
2770
2770
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(v(this, fe)) : this.options.refetchInterval) ?? !1;
2771
2771
  }, Li = function(t) {
2772
- pe(this, xe, Ui).call(this), Z(this, qt, t), !(pr || nt(this.options.enabled, v(this, fe)) === !1 || !Ri(v(this, qt)) || v(this, qt) === 0) && Z(this, ur, setInterval(() => {
2773
- (this.options.refetchIntervalInBackground || pa.isFocused()) && pe(this, xe, Yr).call(this);
2772
+ pe(this, ve, Ui).call(this), Z(this, qt, t), !(pr || nt(this.options.enabled, v(this, fe)) === !1 || !Ri(v(this, qt)) || v(this, qt) === 0) && Z(this, ur, setInterval(() => {
2773
+ (this.options.refetchIntervalInBackground || pa.isFocused()) && pe(this, ve, Yr).call(this);
2774
2774
  }, v(this, qt)));
2775
2775
  }, qi = function() {
2776
- pe(this, xe, Vi).call(this), pe(this, xe, Li).call(this, pe(this, xe, Ni).call(this));
2776
+ pe(this, ve, Vi).call(this), pe(this, ve, Li).call(this, pe(this, ve, Ni).call(this));
2777
2777
  }, Bi = function() {
2778
2778
  v(this, cr) && (clearTimeout(v(this, cr)), Z(this, cr, void 0));
2779
2779
  }, Ui = function() {
@@ -2784,7 +2784,7 @@ var Ae, Mt, zt, Rr, Pr, Vt, jr, Ir, ro, Cc = (ro = class {
2784
2784
  return;
2785
2785
  const r = v(this, fe);
2786
2786
  Z(this, fe, t), Z(this, un, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
2787
- }, Co = function(t) {
2787
+ }, Ao = function(t) {
2788
2788
  Le.batch(() => {
2789
2789
  t.listeners && this.listeners.forEach((r) => {
2790
2790
  r(v(this, Ue));
@@ -2816,10 +2816,10 @@ function fa(e, t) {
2816
2816
  function $c(e, t) {
2817
2817
  return !ji(e.getCurrentResult(), t);
2818
2818
  }
2819
- var Ao = Fe.createContext(
2819
+ var Fo = Fe.createContext(
2820
2820
  void 0
2821
2821
  ), Dc = (e) => {
2822
- const t = Fe.useContext(Ao);
2822
+ const t = Fe.useContext(Fo);
2823
2823
  if (!t)
2824
2824
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
2825
2825
  return t;
@@ -2828,8 +2828,8 @@ var Ao = Fe.createContext(
2828
2828
  children: t
2829
2829
  }) => (Fe.useEffect(() => (e.mount(), () => {
2830
2830
  e.unmount();
2831
- }), [e]), /* @__PURE__ */ D(Ao.Provider, { value: e, children: t })), Fo = Fe.createContext(!1), Pc = () => Fe.useContext(Fo);
2832
- Fo.Provider;
2831
+ }), [e]), /* @__PURE__ */ D(Fo.Provider, { value: e, children: t })), $o = Fe.createContext(!1), Pc = () => Fe.useContext($o);
2832
+ $o.Provider;
2833
2833
  function jc() {
2834
2834
  let e = !1;
2835
2835
  return {
@@ -2932,7 +2932,7 @@ const Hc = ({
2932
2932
  style: i,
2933
2933
  className: a,
2934
2934
  onClick: s
2935
- }) => /* @__PURE__ */ D(ve, { sx: { textAlign: "center" }, children: /* @__PURE__ */ D(
2935
+ }) => /* @__PURE__ */ D(xe, { sx: { textAlign: "center" }, children: /* @__PURE__ */ D(
2936
2936
  "img",
2937
2937
  {
2938
2938
  src: e || "/placeholder-image.png",
@@ -3040,7 +3040,7 @@ function Qc(e, t, r, n, i = !1) {
3040
3040
  function xr(e) {
3041
3041
  return !!(e.apiConfig || e.api_endpoint);
3042
3042
  }
3043
- function $o(e) {
3043
+ function Do(e) {
3044
3044
  return e.apiConfig ? e.apiConfig : e.api_endpoint ? {
3045
3045
  endpoint: e.api_endpoint,
3046
3046
  method: e.api_method || "GET",
@@ -3051,7 +3051,7 @@ function $o(e) {
3051
3051
  } : null;
3052
3052
  }
3053
3053
  function wm(e, t) {
3054
- const r = $o(e);
3054
+ const r = Do(e);
3055
3055
  if (!(r != null && r.conditional) && !e.conditional)
3056
3056
  return !0;
3057
3057
  if (r != null && r.dependsOn || e.depends_on) {
@@ -3067,7 +3067,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3067
3067
  const s = r[e.name], o = !!s, [l, p] = Xt(!1), d = xt(!1), f = () => {
3068
3068
  var k;
3069
3069
  return e.required !== void 0 ? e.required : ((k = e.validation) == null ? void 0 : k.required) !== void 0 ? e.validation.required : !1;
3070
- }, m = (k) => f() ? `${k} *` : k, x = () => e.value !== void 0 ? e.value : e.type === "checkbox" ? !1 : e.type === "select" && e.default ? e.default : e.type === "autocomplete" && e.multiple ? [] : "", g = Ie(() => $o(e), [e.apiConfig, e.api_endpoint, e.api_method, e.value_field, e.label_field, e.depends_on, e.conditional]), c = xt(null), b = g != null && g.dependsOn ? a == null ? void 0 : a[g.dependsOn] : null, y = Ie(() => {
3070
+ }, m = (k) => f() ? `${k} *` : k, x = () => e.value !== void 0 ? e.value : e.type === "checkbox" ? !1 : e.type === "select" && e.default ? e.default : e.type === "autocomplete" && e.multiple ? [] : "", g = Ie(() => Do(e), [e.apiConfig, e.api_endpoint, e.api_method, e.value_field, e.label_field, e.depends_on, e.conditional]), c = xt(null), b = g != null && g.dependsOn ? a == null ? void 0 : a[g.dependsOn] : null, y = Ie(() => {
3071
3071
  if (!(g != null && g.dependsOn)) return !1;
3072
3072
  const k = b, j = c.current, M = k !== j;
3073
3073
  return M && (c.current = k), M;
@@ -3100,7 +3100,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3100
3100
  xr(e) && (g != null && g.dependsOn) && y && d.current && (d.current = !1, p(!1));
3101
3101
  }, [y, g == null ? void 0 : g.dependsOn]);
3102
3102
  const u = je(() => xr(e) ? w : e.type === "select" || e.type === "toggle" || e.type === "radio" || e.type === "autocomplete" ? e.options || [] : [], [e, w]);
3103
- return O ? /* @__PURE__ */ D(ve, { children: (() => {
3103
+ return O ? /* @__PURE__ */ D(xe, { children: (() => {
3104
3104
  switch (e.type) {
3105
3105
  case "title":
3106
3106
  return /* @__PURE__ */ D(
@@ -3188,9 +3188,9 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3188
3188
  control: t,
3189
3189
  defaultValue: x(),
3190
3190
  render: ({ field: V }) => /* @__PURE__ */ ke(mi, { fullWidth: !0, error: o || !!H, children: [
3191
- /* @__PURE__ */ D(Dl, { id: e.id, children: m(e.label) }),
3191
+ /* @__PURE__ */ D(Rl, { id: e.id, children: m(e.label) }),
3192
3192
  /* @__PURE__ */ D(
3193
- Rl,
3193
+ Pl,
3194
3194
  {
3195
3195
  ...V,
3196
3196
  labelId: e.id,
@@ -3198,7 +3198,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3198
3198
  disabled: e.disabled || z,
3199
3199
  endAdornment: z ? /* @__PURE__ */ D(_r, { size: 20 }) : void 0,
3200
3200
  onOpen: te,
3201
- children: z ? /* @__PURE__ */ D(En, { disabled: !0, children: /* @__PURE__ */ ke(ve, { sx: { display: "flex", alignItems: "center", gap: 1, width: "100%" }, children: [
3201
+ children: z ? /* @__PURE__ */ D(En, { disabled: !0, children: /* @__PURE__ */ ke(xe, { sx: { display: "flex", alignItems: "center", gap: 1, width: "100%" }, children: [
3202
3202
  /* @__PURE__ */ D(_r, { size: 16 }),
3203
3203
  /* @__PURE__ */ D(Ve, { variant: "body2", children: "Fetching data..." })
3204
3204
  ] }) }) : k.length > 0 ? k.map((W) => /* @__PURE__ */ D(En, { value: W.value, children: W.label }, W.value)) : l && !z ? /* @__PURE__ */ D(En, { disabled: !0, children: /* @__PURE__ */ D(Ve, { variant: "body2", color: "text.secondary", children: "No options available" }) }) : /* @__PURE__ */ D(En, { disabled: !0, children: /* @__PURE__ */ D(Ve, { variant: "body2", color: "text.secondary", children: "Click to load options" }) })
@@ -3215,7 +3215,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3215
3215
  name: e.name,
3216
3216
  control: t,
3217
3217
  defaultValue: x(),
3218
- render: ({ field: V }) => /* @__PURE__ */ ke(ve, { sx: { mt: 1, mb: 0 }, children: [
3218
+ render: ({ field: V }) => /* @__PURE__ */ ke(xe, { sx: { mt: 1, mb: 0 }, children: [
3219
3219
  /* @__PURE__ */ D(
3220
3220
  Sn,
3221
3221
  {
@@ -3299,12 +3299,12 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3299
3299
  name: e.name,
3300
3300
  control: t,
3301
3301
  defaultValue: x(),
3302
- render: ({ field: V }) => /* @__PURE__ */ ke(ve, { sx: { mt: 1, mb: 0 }, children: [
3302
+ render: ({ field: V }) => /* @__PURE__ */ ke(xe, { sx: { mt: 1, mb: 0 }, children: [
3303
3303
  /* @__PURE__ */ D(
3304
3304
  Sn,
3305
3305
  {
3306
3306
  control: /* @__PURE__ */ D(
3307
- $l,
3307
+ Dl,
3308
3308
  {
3309
3309
  ...V,
3310
3310
  id: e.id,
@@ -3366,7 +3366,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3366
3366
  }
3367
3367
  })();
3368
3368
  return /* @__PURE__ */ D(
3369
- Fl,
3369
+ $l,
3370
3370
  {
3371
3371
  ...V,
3372
3372
  id: e.id,
@@ -3414,7 +3414,7 @@ const Gc = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
3414
3414
  helperText: (s == null ? void 0 : s.message) || (H == null ? void 0 : H.message) || "",
3415
3415
  InputProps: {
3416
3416
  ...N.InputProps,
3417
- endAdornment: /* @__PURE__ */ ke(Ol, { children: [
3417
+ endAdornment: /* @__PURE__ */ ke(Tl, { children: [
3418
3418
  z ? /* @__PURE__ */ D(_r, { color: "inherit", size: 20 }) : null,
3419
3419
  N.InputProps.endAdornment
3420
3420
  ] })
@@ -3677,14 +3677,14 @@ function Ht(e, t) {
3677
3677
  return a !== null ? a : i;
3678
3678
  }, 2);
3679
3679
  }
3680
- function Do(e) {
3680
+ function Ro(e) {
3681
3681
  return e == null ? [] : [].concat(e);
3682
3682
  }
3683
- let Ro, Po, jo, ou = /\$\{\s*(\w+)\s*\}/g;
3684
- Ro = Symbol.toStringTag;
3683
+ let Po, jo, Io, ou = /\$\{\s*(\w+)\s*\}/g;
3684
+ Po = Symbol.toStringTag;
3685
3685
  class rs {
3686
3686
  constructor(t, r, n, i) {
3687
- this.name = void 0, this.message = void 0, this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = void 0, this.inner = void 0, this[Ro] = "Error", this.name = "ValidationError", this.value = r, this.path = n, this.type = i, this.errors = [], this.inner = [], Do(t).forEach((a) => {
3687
+ this.name = void 0, this.message = void 0, this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = void 0, this.inner = void 0, this[Po] = "Error", this.name = "ValidationError", this.value = r, this.path = n, this.type = i, this.errors = [], this.inner = [], Ro(t).forEach((a) => {
3688
3688
  if (Ye.isError(a)) {
3689
3689
  this.errors.push(...a.errors);
3690
3690
  const s = a.inner.length ? a.inner : [a];
@@ -3694,8 +3694,8 @@ class rs {
3694
3694
  }), this.message = this.errors.length > 1 ? `${this.errors.length} errors occurred` : this.errors[0];
3695
3695
  }
3696
3696
  }
3697
- Po = Symbol.hasInstance;
3698
- jo = Symbol.toStringTag;
3697
+ jo = Symbol.hasInstance;
3698
+ Io = Symbol.toStringTag;
3699
3699
  class Ye extends Error {
3700
3700
  static formatError(t, r) {
3701
3701
  const n = r.label || r.path || "this";
@@ -3711,9 +3711,9 @@ class Ye extends Error {
3711
3711
  const s = new rs(t, r, n, i);
3712
3712
  if (a)
3713
3713
  return s;
3714
- super(), this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = [], this.inner = [], this[jo] = "Error", this.name = s.name, this.message = s.message, this.type = s.type, this.value = s.value, this.path = s.path, this.errors = s.errors, this.inner = s.inner, Error.captureStackTrace && Error.captureStackTrace(this, Ye);
3714
+ super(), this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = [], this.inner = [], this[Io] = "Error", this.name = s.name, this.message = s.message, this.type = s.type, this.value = s.value, this.path = s.path, this.errors = s.errors, this.inner = s.inner, Error.captureStackTrace && Error.captureStackTrace(this, Ye);
3715
3715
  }
3716
- static [Po](t) {
3716
+ static [jo](t) {
3717
3717
  return rs[Symbol.hasInstance](t) || super[Symbol.hasInstance](t);
3718
3718
  }
3719
3719
  }
@@ -4334,7 +4334,7 @@ attempted value: ${s}
4334
4334
  }
4335
4335
  when(t, r) {
4336
4336
  !Array.isArray(t) && typeof t != "string" && (r = t, t = ".");
4337
- let n = this.clone(), i = Do(t).map((a) => new mr(a));
4337
+ let n = this.clone(), i = Ro(t).map((a) => new mr(a));
4338
4338
  return i.forEach((a) => {
4339
4339
  a.isSibling && n.deps.push(a.key);
4340
4340
  }), n.conditions.push(typeof r == "function" ? new Wn(i, r) : Wn.fromOptions(i, r)), n;
@@ -4438,10 +4438,10 @@ for (const e of ["validate", "validateSync"]) et.prototype[`${e}At`] = function(
4438
4438
  for (const e of ["equals", "is"]) et.prototype[e] = et.prototype.oneOf;
4439
4439
  for (const e of ["not", "nope"]) et.prototype[e] = et.prototype.notOneOf;
4440
4440
  const du = () => !0;
4441
- function Io(e) {
4442
- return new Mo(e);
4441
+ function Mo(e) {
4442
+ return new zo(e);
4443
4443
  }
4444
- class Mo extends et {
4444
+ class zo extends et {
4445
4445
  constructor(t) {
4446
4446
  super(typeof t == "function" ? {
4447
4447
  type: "mixed",
@@ -4452,11 +4452,11 @@ class Mo extends et {
4452
4452
  }, t));
4453
4453
  }
4454
4454
  }
4455
- Io.prototype = Mo.prototype;
4456
- function zo() {
4457
- return new Vo();
4455
+ Mo.prototype = zo.prototype;
4456
+ function Vo() {
4457
+ return new No();
4458
4458
  }
4459
- class Vo extends et {
4459
+ class No extends et {
4460
4460
  constructor() {
4461
4461
  super({
4462
4462
  type: "boolean",
@@ -4524,7 +4524,7 @@ class Vo extends et {
4524
4524
  return super.strip(t);
4525
4525
  }
4526
4526
  }
4527
- zo.prototype = Vo.prototype;
4527
+ Vo.prototype = No.prototype;
4528
4528
  const pu = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
4529
4529
  function fu(e) {
4530
4530
  const t = Gi(e);
@@ -4566,9 +4566,9 @@ let mu = (
4566
4566
  /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
4567
4567
  ), gu = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, yu = "^\\d{4}-\\d{2}-\\d{2}", vu = "\\d{2}:\\d{2}:\\d{2}", xu = "(([+-]\\d{2}(:?\\d{2})?)|Z)", bu = new RegExp(`${yu}T${vu}(\\.\\d+)?${xu}$`), wu = (e) => dt(e) || e === e.trim(), Su = {}.toString();
4568
4568
  function Zr() {
4569
- return new No();
4569
+ return new Lo();
4570
4570
  }
4571
- class No extends et {
4571
+ class Lo extends et {
4572
4572
  constructor() {
4573
4573
  super({
4574
4574
  type: "string",
@@ -4739,12 +4739,12 @@ class No extends et {
4739
4739
  });
4740
4740
  }
4741
4741
  }
4742
- Zr.prototype = No.prototype;
4742
+ Zr.prototype = Lo.prototype;
4743
4743
  let Eu = (e) => e != +e;
4744
- function Lo() {
4745
- return new qo();
4744
+ function qo() {
4745
+ return new Bo();
4746
4746
  }
4747
- class qo extends et {
4747
+ class Bo extends et {
4748
4748
  constructor() {
4749
4749
  super({
4750
4750
  type: "number",
@@ -4844,8 +4844,8 @@ class qo extends et {
4844
4844
  return this.transform((i) => dt(i) ? i : Math[t](i));
4845
4845
  }
4846
4846
  }
4847
- Lo.prototype = qo.prototype;
4848
- let Bo = /* @__PURE__ */ new Date(""), ku = (e) => Object.prototype.toString.call(e) === "[object Date]";
4847
+ qo.prototype = Bo.prototype;
4848
+ let Uo = /* @__PURE__ */ new Date(""), ku = (e) => Object.prototype.toString.call(e) === "[object Date]";
4849
4849
  function ga() {
4850
4850
  return new mn();
4851
4851
  }
@@ -4902,9 +4902,9 @@ class mn extends et {
4902
4902
  });
4903
4903
  }
4904
4904
  }
4905
- mn.INVALID_DATE = Bo;
4905
+ mn.INVALID_DATE = Uo;
4906
4906
  ga.prototype = mn.prototype;
4907
- ga.INVALID_DATE = Bo;
4907
+ ga.INVALID_DATE = Uo;
4908
4908
  function Ou(e, t = []) {
4909
4909
  let r = [], n = /* @__PURE__ */ new Set(), i = new Set(t.map(([s, o]) => `${s}-${o}`));
4910
4910
  function a(s, o) {
@@ -4925,7 +4925,7 @@ function ns(e, t) {
4925
4925
  return r = i, !0;
4926
4926
  }), r;
4927
4927
  }
4928
- function Uo(e) {
4928
+ function Wo(e) {
4929
4929
  return (t, r) => ns(e, t) - ns(e, r);
4930
4930
  }
4931
4931
  const Tu = (e, t, r) => {
@@ -4964,11 +4964,11 @@ function as(e, t) {
4964
4964
  let r = Object.keys(e.fields);
4965
4965
  return Object.keys(t).filter((n) => r.indexOf(n) === -1);
4966
4966
  }
4967
- const Cu = Uo([]);
4968
- function Wo(e) {
4969
- return new Ho(e);
4967
+ const Cu = Wo([]);
4968
+ function Ho(e) {
4969
+ return new Ko(e);
4970
4970
  }
4971
- class Ho extends et {
4971
+ class Ko extends et {
4972
4972
  constructor(t) {
4973
4973
  super({
4974
4974
  type: "object",
@@ -5080,7 +5080,7 @@ class Ho extends et {
5080
5080
  }
5081
5081
  setFields(t, r) {
5082
5082
  let n = this.clone();
5083
- return n.fields = t, n._nodes = Ou(t, r), n._sortErrors = Uo(Object.keys(t)), r && (n._excludedEdges = r), n;
5083
+ return n.fields = t, n._nodes = Ou(t, r), n._sortErrors = Wo(Object.keys(t)), r && (n._excludedEdges = r), n;
5084
5084
  }
5085
5085
  shape(t, r = []) {
5086
5086
  return this.clone().withMutation((n) => {
@@ -5197,7 +5197,7 @@ class Ho extends et {
5197
5197
  return n;
5198
5198
  }
5199
5199
  }
5200
- Wo.prototype = Ho.prototype;
5200
+ Ho.prototype = Ko.prototype;
5201
5201
  const Au = (e) => {
5202
5202
  const t = {};
5203
5203
  return e.forEach((r) => {
@@ -5216,26 +5216,26 @@ const Au = (e) => {
5216
5216
  n = Zr(), r.validation ? n = Jt(n, r, "string") : (r.minLength && (n = n.min(r.minLength, `${r.label} must be at least ${r.minLength} characters`)), r.maxLength && (n = n.max(r.maxLength, `${r.label} must be at most ${r.maxLength} characters`)), r.pattern && (n = n.test("pattern", `${r.label} format is invalid`, (l) => l ? new RegExp(r.pattern).test(l) : !0)));
5217
5217
  break;
5218
5218
  case "number":
5219
- n = Lo().typeError(`${r.label} must be a number`), r.validation ? n = Jt(n, r, "number") : (r.min !== void 0 && (n = n.min(r.min, `${r.label} must be at least ${r.min}`)), r.max !== void 0 && (n = n.max(r.max, `${r.label} must be at most ${r.max}`)));
5219
+ n = qo().typeError(`${r.label} must be a number`), r.validation ? n = Jt(n, r, "number") : (r.min !== void 0 && (n = n.min(r.min, `${r.label} must be at least ${r.min}`)), r.max !== void 0 && (n = n.max(r.max, `${r.label} must be at most ${r.max}`)));
5220
5220
  break;
5221
5221
  case "select":
5222
5222
  n = Zr(), r.validation && (n = Jt(n, r, "string"));
5223
5223
  break;
5224
5224
  case "checkbox":
5225
- n = zo(), r.validation && (n = Jt(n, r, "boolean"));
5225
+ n = Vo(), r.validation && (n = Jt(n, r, "boolean"));
5226
5226
  break;
5227
5227
  case "date":
5228
5228
  n = ga().typeError(`${r.label} must be a valid date`), r.validation ? n = Jt(n, r, "date") : (r.minDate && (n = n.min(new Date(r.minDate), `${r.label} must be after ${r.minDate}`)), r.maxDate && (n = n.max(new Date(r.maxDate), `${r.label} must be before ${r.maxDate}`)));
5229
5229
  break;
5230
5230
  default:
5231
- n = Io();
5231
+ n = Mo();
5232
5232
  }
5233
5233
  if (((s = r.validation) == null ? void 0 : s.required) !== void 0 ? r.validation.required : r.required) {
5234
5234
  const l = ((o = r.validation) == null ? void 0 : o.message) || `${r.label} is required`;
5235
5235
  n = n.required(l);
5236
5236
  }
5237
5237
  t[r.name] = n;
5238
- }), Wo().shape(t);
5238
+ }), Ho().shape(t);
5239
5239
  }, Jt = (e, t, r) => {
5240
5240
  const n = t.validation;
5241
5241
  if (!n) return e;
@@ -5348,12 +5348,12 @@ function Ru(e) {
5348
5348
  return t[r] === void 0 && (t[r] = e(r)), t[r];
5349
5349
  };
5350
5350
  }
5351
- var Pu = /[A-Z]|^ms/g, ju = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ko = function(t) {
5351
+ var Pu = /[A-Z]|^ms/g, ju = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Qo = function(t) {
5352
5352
  return t.charCodeAt(1) === 45;
5353
5353
  }, ss = function(t) {
5354
5354
  return t != null && typeof t != "boolean";
5355
5355
  }, bi = /* @__PURE__ */ Ru(function(e) {
5356
- return Ko(e) ? e : e.replace(Pu, "-$&").toLowerCase();
5356
+ return Qo(e) ? e : e.replace(Pu, "-$&").toLowerCase();
5357
5357
  }), os = function(t, r) {
5358
5358
  switch (t) {
5359
5359
  case "animation":
@@ -5367,7 +5367,7 @@ var Pu = /[A-Z]|^ms/g, ju = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ko = function(t) {
5367
5367
  }, i;
5368
5368
  });
5369
5369
  }
5370
- return Du[t] !== 1 && !Ko(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
5370
+ return Du[t] !== 1 && !Qo(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
5371
5371
  };
5372
5372
  function Kn(e, t, r) {
5373
5373
  if (r == null)
@@ -5630,7 +5630,7 @@ function Vu() {
5630
5630
  }()), he;
5631
5631
  }
5632
5632
  var ds;
5633
- function Qo() {
5633
+ function Go() {
5634
5634
  return ds || (ds = 1, process.env.NODE_ENV === "production" ? Cn.exports = zu() : Cn.exports = Vu()), Cn.exports;
5635
5635
  }
5636
5636
  /*
@@ -5692,7 +5692,7 @@ function ya() {
5692
5692
  return Si = e, Si;
5693
5693
  }
5694
5694
  var Ei, ms;
5695
- function Go() {
5695
+ function Yo() {
5696
5696
  return ms || (ms = 1, Ei = Function.call.bind(Object.prototype.hasOwnProperty)), Ei;
5697
5697
  }
5698
5698
  var ki, hs;
@@ -5702,7 +5702,7 @@ function Lu() {
5702
5702
  var e = function() {
5703
5703
  };
5704
5704
  if (process.env.NODE_ENV !== "production") {
5705
- var t = /* @__PURE__ */ ya(), r = {}, n = /* @__PURE__ */ Go();
5705
+ var t = /* @__PURE__ */ ya(), r = {}, n = /* @__PURE__ */ Yo();
5706
5706
  e = function(a) {
5707
5707
  var s = "Warning: " + a;
5708
5708
  typeof console < "u" && console.error(s);
@@ -5748,7 +5748,7 @@ var Oi, gs;
5748
5748
  function qu() {
5749
5749
  if (gs) return Oi;
5750
5750
  gs = 1;
5751
- var e = Qo(), t = Nu(), r = /* @__PURE__ */ ya(), n = /* @__PURE__ */ Go(), i = /* @__PURE__ */ Lu(), a = function() {
5751
+ var e = Go(), t = Nu(), r = /* @__PURE__ */ ya(), n = /* @__PURE__ */ Yo(), i = /* @__PURE__ */ Lu(), a = function() {
5752
5752
  };
5753
5753
  process.env.NODE_ENV !== "production" && (a = function(o) {
5754
5754
  var l = "Warning: " + o;
@@ -6117,7 +6117,7 @@ var vs;
6117
6117
  function Uu() {
6118
6118
  if (vs) return _n.exports;
6119
6119
  if (vs = 1, process.env.NODE_ENV !== "production") {
6120
- var e = Qo(), t = !0;
6120
+ var e = Go(), t = !0;
6121
6121
  _n.exports = /* @__PURE__ */ qu()(e.isElement, t);
6122
6122
  } else
6123
6123
  _n.exports = /* @__PURE__ */ Bu()();
@@ -6306,12 +6306,12 @@ function _t(e) {
6306
6306
  const t = Object.getPrototypeOf(e);
6307
6307
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
6308
6308
  }
6309
- function Yo(e) {
6309
+ function Zo(e) {
6310
6310
  if (/* @__PURE__ */ Fe.isValidElement(e) || Qn.isValidElementType(e) || !_t(e))
6311
6311
  return e;
6312
6312
  const t = {};
6313
6313
  return Object.keys(e).forEach((r) => {
6314
- t[r] = Yo(e[r]);
6314
+ t[r] = Zo(e[r]);
6315
6315
  }), t;
6316
6316
  }
6317
6317
  function Xe(e, t, r = {
@@ -6322,7 +6322,7 @@ function Xe(e, t, r = {
6322
6322
  } : e;
6323
6323
  return _t(e) && _t(t) && Object.keys(t).forEach((i) => {
6324
6324
  /* @__PURE__ */ Fe.isValidElement(t[i]) || Qn.isValidElementType(t[i]) ? n[i] = t[i] : _t(t[i]) && // Avoid prototype pollution
6325
- Object.prototype.hasOwnProperty.call(e, i) && _t(e[i]) ? n[i] = Xe(e[i], t[i], r) : r.clone ? n[i] = _t(t[i]) ? Yo(t[i]) : t[i] : n[i] = t[i];
6325
+ Object.prototype.hasOwnProperty.call(e, i) && _t(e[i]) ? n[i] = Xe(e[i], t[i], r) : r.clone ? n[i] = _t(t[i]) ? Zo(t[i]) : t[i] : n[i] = t[i];
6326
6326
  }), n;
6327
6327
  }
6328
6328
  const Zu = (e) => {
@@ -6595,22 +6595,22 @@ function fd(e, t, r, n) {
6595
6595
  const i = ud(r), a = pd(i, n), s = e[r];
6596
6596
  return Ct(e, s, a);
6597
6597
  }
6598
- function Zo(e, t) {
6598
+ function Jo(e, t) {
6599
6599
  const r = va(e.theme);
6600
6600
  return Object.keys(e).map((n) => fd(e, t, n, r)).reduce(rn, {});
6601
6601
  }
6602
6602
  function _e(e) {
6603
- return Zo(e, ii);
6603
+ return Jo(e, ii);
6604
6604
  }
6605
6605
  _e.propTypes = process.env.NODE_ENV !== "production" ? ii.reduce((e, t) => (e[t] = Gt, e), {}) : {};
6606
6606
  _e.filterProps = ii;
6607
6607
  function Ce(e) {
6608
- return Zo(e, ai);
6608
+ return Jo(e, ai);
6609
6609
  }
6610
6610
  Ce.propTypes = process.env.NODE_ENV !== "production" ? ai.reduce((e, t) => (e[t] = Gt, e), {}) : {};
6611
6611
  Ce.filterProps = ai;
6612
6612
  process.env.NODE_ENV !== "production" && dd.reduce((e, t) => (e[t] = Gt, e), {});
6613
- function Jo(e = 8, t = va({
6613
+ function Xo(e = 8, t = va({
6614
6614
  spacing: e
6615
6615
  })) {
6616
6616
  if (e.mui)
@@ -7162,14 +7162,14 @@ function Kd(e, t) {
7162
7162
  }
7163
7163
  return r.palette.mode === e ? t : {};
7164
7164
  }
7165
- function Xo(e = {}, ...t) {
7165
+ function el(e = {}, ...t) {
7166
7166
  const {
7167
7167
  breakpoints: r = {},
7168
7168
  palette: n = {},
7169
7169
  spacing: i,
7170
7170
  shape: a = {},
7171
7171
  ...s
7172
- } = e, o = Ju(r), l = Jo(i);
7172
+ } = e, o = Ju(r), l = Xo(i);
7173
7173
  let p = Xe({
7174
7174
  breakpoints: o,
7175
7175
  direction: "ltr",
@@ -7209,17 +7209,17 @@ const Ts = (e) => e, Qd = () => {
7209
7209
  }
7210
7210
  };
7211
7211
  }, Gd = Qd();
7212
- function el(e) {
7212
+ function tl(e) {
7213
7213
  var t, r, n = "";
7214
7214
  if (typeof e == "string" || typeof e == "number") n += e;
7215
7215
  else if (typeof e == "object") if (Array.isArray(e)) {
7216
7216
  var i = e.length;
7217
- for (t = 0; t < i; t++) e[t] && (r = el(e[t])) && (n && (n += " "), n += r);
7217
+ for (t = 0; t < i; t++) e[t] && (r = tl(e[t])) && (n && (n += " "), n += r);
7218
7218
  } else for (r in e) e[r] && (n && (n += " "), n += r);
7219
7219
  return n;
7220
7220
  }
7221
7221
  function Yd() {
7222
- for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = el(e)) && (n && (n += " "), n += t);
7222
+ for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = tl(e)) && (n && (n += " "), n += t);
7223
7223
  return n;
7224
7224
  }
7225
7225
  const Zd = {
@@ -7246,11 +7246,11 @@ function Jd(e, t, r = "Mui") {
7246
7246
  n[i] = ba(e, i, r);
7247
7247
  }), n;
7248
7248
  }
7249
- function tl(e, t = "") {
7249
+ function rl(e, t = "") {
7250
7250
  return e.displayName || e.name || t;
7251
7251
  }
7252
7252
  function _s(e, t, r) {
7253
- const n = tl(t);
7253
+ const n = rl(t);
7254
7254
  return e.displayName || (n !== "" ? `${r}(${n})` : r);
7255
7255
  }
7256
7256
  function Xd(e) {
@@ -7258,7 +7258,7 @@ function Xd(e) {
7258
7258
  if (typeof e == "string")
7259
7259
  return e;
7260
7260
  if (typeof e == "function")
7261
- return tl(e, "Component");
7261
+ return rl(e, "Component");
7262
7262
  if (typeof e == "object")
7263
7263
  switch (e.$$typeof) {
7264
7264
  case Qn.ForwardRef:
@@ -7270,7 +7270,7 @@ function Xd(e) {
7270
7270
  }
7271
7271
  }
7272
7272
  }
7273
- function rl(e) {
7273
+ function nl(e) {
7274
7274
  const {
7275
7275
  variants: t,
7276
7276
  ...r
@@ -7283,7 +7283,7 @@ function rl(e) {
7283
7283
  typeof i.style != "function" && (i.style = bs(i.style));
7284
7284
  }), n;
7285
7285
  }
7286
- const ep = Xo();
7286
+ const ep = el();
7287
7287
  function _i(e) {
7288
7288
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
7289
7289
  }
@@ -7308,11 +7308,11 @@ function Mn(e, t) {
7308
7308
  } = r;
7309
7309
  n = a;
7310
7310
  }
7311
- return nl(e, r.variants, [n]);
7311
+ return il(e, r.variants, [n]);
7312
7312
  }
7313
7313
  return r != null && r.isProcessed ? r.style : r;
7314
7314
  }
7315
- function nl(e, t, r = []) {
7315
+ function il(e, t, r = []) {
7316
7316
  var i;
7317
7317
  let n;
7318
7318
  e: for (let a = 0; a < t.length; a += 1) {
@@ -7355,7 +7355,7 @@ function np(e = {}) {
7355
7355
  skipSx: m,
7356
7356
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
7357
7357
  // For more details: https://github.com/mui/material-ui/pull/37908
7358
- overridesResolver: x = tp(il(d)),
7358
+ overridesResolver: x = tp(al(d)),
7359
7359
  ...g
7360
7360
  } = l, c = f !== void 0 ? f : (
7361
7361
  // TODO v6: remove `Root` in the next major release
@@ -7376,7 +7376,7 @@ function np(e = {}) {
7376
7376
  return Mn(H, w);
7377
7377
  };
7378
7378
  if (_t(w)) {
7379
- const z = rl(w);
7379
+ const z = nl(w);
7380
7380
  return z.variants ? function(te) {
7381
7381
  return Mn(te, z);
7382
7382
  } : z.style;
@@ -7396,7 +7396,7 @@ function np(e = {}) {
7396
7396
  }), p && !c && te.push(function(k) {
7397
7397
  var V, W;
7398
7398
  const j = k.theme, M = (W = (V = j == null ? void 0 : j.components) == null ? void 0 : V[p]) == null ? void 0 : W.variants;
7399
- return M ? nl(k, M) : null;
7399
+ return M ? il(k, M) : null;
7400
7400
  }), b || te.push(Lr), Array.isArray(H[0])) {
7401
7401
  const F = H.shift(), k = new Array(z.length).fill(""), j = new Array(te.length).fill("");
7402
7402
  let M;
@@ -7413,7 +7413,7 @@ function ip(e, t, r) {
7413
7413
  }
7414
7414
  function ap(e, t) {
7415
7415
  let r;
7416
- return process.env.NODE_ENV !== "production" && e && (r = `${e}-${il(t || "Root")}`), r;
7416
+ return process.env.NODE_ENV !== "production" && e && (r = `${e}-${al(t || "Root")}`), r;
7417
7417
  }
7418
7418
  function sp(e) {
7419
7419
  for (const t in e)
@@ -7426,7 +7426,7 @@ function op(e) {
7426
7426
  // it's a lowercase character
7427
7427
  e.charCodeAt(0) > 96;
7428
7428
  }
7429
- function il(e) {
7429
+ function al(e) {
7430
7430
  return e && e.charAt(0).toLowerCase() + e.slice(1);
7431
7431
  }
7432
7432
  function Yi(e, t) {
@@ -7515,7 +7515,7 @@ function pi(e) {
7515
7515
  } = e;
7516
7516
  return t.includes("rgb") ? n = n.map((i, a) => a < 3 ? parseInt(i, 10) : i) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
7517
7517
  }
7518
- function al(e) {
7518
+ function sl(e) {
7519
7519
  e = Qt(e);
7520
7520
  const {
7521
7521
  values: t
@@ -7529,19 +7529,19 @@ function al(e) {
7529
7529
  }
7530
7530
  function Zi(e) {
7531
7531
  e = Qt(e);
7532
- let t = e.type === "hsl" || e.type === "hsla" ? Qt(al(e)).values : e.values;
7532
+ let t = e.type === "hsl" || e.type === "hsla" ? Qt(sl(e)).values : e.values;
7533
7533
  return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
7534
7534
  }
7535
7535
  function Cs(e, t) {
7536
7536
  const r = Zi(e), n = Zi(t);
7537
7537
  return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
7538
7538
  }
7539
- function sl(e, t) {
7539
+ function ol(e, t) {
7540
7540
  return e = Qt(e), t = wa(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, pi(e);
7541
7541
  }
7542
7542
  function Fn(e, t, r) {
7543
7543
  try {
7544
- return sl(e, t);
7544
+ return ol(e, t);
7545
7545
  } catch {
7546
7546
  return e;
7547
7547
  }
@@ -7622,7 +7622,7 @@ function hp(e) {
7622
7622
  let t, r;
7623
7623
  return function(i) {
7624
7624
  let a = t;
7625
- return (a === void 0 || i.theme !== r) && (As.theme = i.theme, a = rl(e(As)), t = a, r = i.theme), a;
7625
+ return (a === void 0 || i.theme !== r) && (As.theme = i.theme, a = nl(e(As)), t = a, r = i.theme), a;
7626
7626
  };
7627
7627
  }
7628
7628
  function gp(e = "") {
@@ -7860,7 +7860,7 @@ const sn = {
7860
7860
  800: "#2e7d32",
7861
7861
  900: "#1b5e20"
7862
7862
  };
7863
- function ol() {
7863
+ function ll() {
7864
7864
  return {
7865
7865
  // The colors used to style the text.
7866
7866
  text: {
@@ -7900,8 +7900,8 @@ function ol() {
7900
7900
  }
7901
7901
  };
7902
7902
  }
7903
- const Ep = ol();
7904
- function ll() {
7903
+ const Ep = ll();
7904
+ function cl() {
7905
7905
  return {
7906
7906
  text: {
7907
7907
  primary: sn.white,
@@ -7929,7 +7929,7 @@ function ll() {
7929
7929
  }
7930
7930
  };
7931
7931
  }
7932
- const $s = ll();
7932
+ const $s = cl();
7933
7933
  function Ds(e, t, r, n) {
7934
7934
  const i = n.light || n, a = n.dark || n * 1.5;
7935
7935
  e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Ea(e.main, i) : t === "dark" && (e.dark = Sa(e.main, a)));
@@ -8047,7 +8047,7 @@ const theme2 = createTheme({ palette: {
8047
8047
  return Ds(c, "light", O, n), Ds(c, "dark", A, n), c.contrastText || (c.contrastText = f(c.main)), c;
8048
8048
  };
8049
8049
  let x;
8050
- return t === "light" ? x = ol() : t === "dark" && (x = ll()), process.env.NODE_ENV !== "production" && (x || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Xe({
8050
+ return t === "light" ? x = ll() : t === "dark" && (x = cl()), process.env.NODE_ENV !== "production" && (x || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Xe({
8051
8051
  // A collection of common colors.
8052
8052
  common: {
8053
8053
  ...sn
@@ -8282,7 +8282,7 @@ const qp = {
8282
8282
  function Bp(e) {
8283
8283
  return _t(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
8284
8284
  }
8285
- function cl(e = {}) {
8285
+ function ul(e = {}) {
8286
8286
  const t = {
8287
8287
  ...e
8288
8288
  };
@@ -8319,7 +8319,7 @@ function Ji(e = {}, ...t) {
8319
8319
  // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
8320
8320
  e.generateThemeVars === void 0)
8321
8321
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Kt(20));
8322
- const d = ka(a), f = Xo(e);
8322
+ const d = ka(a), f = el(e);
8323
8323
  let m = Xe(f, {
8324
8324
  mixins: $p(f.breakpoints, n),
8325
8325
  palette: d,
@@ -8363,7 +8363,7 @@ function Ji(e = {}, ...t) {
8363
8363
  sx: g,
8364
8364
  theme: this
8365
8365
  });
8366
- }, m.toRuntimeSource = cl, m;
8366
+ }, m.toRuntimeSource = ul, m;
8367
8367
  }
8368
8368
  function Up(e) {
8369
8369
  let t;
@@ -8375,7 +8375,7 @@ const Wp = [...Array(25)].map((e, t) => {
8375
8375
  const r = Up(t);
8376
8376
  return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
8377
8377
  });
8378
- function ul(e) {
8378
+ function dl(e) {
8379
8379
  return {
8380
8380
  inputPlaceholder: e === "dark" ? 0.5 : 0.42,
8381
8381
  inputUnderline: e === "dark" ? 0.7 : 0.42,
@@ -8383,7 +8383,7 @@ function ul(e) {
8383
8383
  switchTrack: e === "dark" ? 0.3 : 0.38
8384
8384
  };
8385
8385
  }
8386
- function dl(e) {
8386
+ function pl(e) {
8387
8387
  return e === "dark" ? Wp : [];
8388
8388
  }
8389
8389
  function Hp(e) {
@@ -8399,10 +8399,10 @@ function Hp(e) {
8399
8399
  return {
8400
8400
  palette: a,
8401
8401
  opacity: {
8402
- ...ul(a.mode),
8402
+ ...dl(a.mode),
8403
8403
  ...r
8404
8404
  },
8405
- overlays: n || dl(a.mode),
8405
+ overlays: n || pl(a.mode),
8406
8406
  ...i
8407
8407
  };
8408
8408
  }
@@ -8457,7 +8457,7 @@ function _(e, t, r) {
8457
8457
  !e[t] && r && (e[t] = r);
8458
8458
  }
8459
8459
  function Xr(e) {
8460
- return typeof e != "string" || !e.startsWith("hsl") ? e : al(e);
8460
+ return typeof e != "string" || !e.startsWith("hsl") ? e : sl(e);
8461
8461
  }
8462
8462
  function kt(e, t) {
8463
8463
  `${t}Channel` in e || (e[`${t}Channel`] = Jr(Xr(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
@@ -8501,10 +8501,10 @@ function Ai(e, t, r, n) {
8501
8501
  ...t,
8502
8502
  palette: a,
8503
8503
  opacity: {
8504
- ...ul(i),
8504
+ ...dl(i),
8505
8505
  ...t == null ? void 0 : t.opacity
8506
8506
  },
8507
- overlays: (t == null ? void 0 : t.overlays) || dl(i)
8507
+ overlays: (t == null ? void 0 : t.overlays) || pl(i)
8508
8508
  }, s;
8509
8509
  }
8510
8510
  function Xp(e = {}, ...t) {
@@ -8579,7 +8579,7 @@ function Xp(e = {}, ...t) {
8579
8579
  return C.vars = z, Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([K, u]) => {
8580
8580
  C[K] = u;
8581
8581
  }), C.generateThemeVars = H, C.generateStyleSheets = te, C.generateSpacing = function() {
8582
- return Jo(p.spacing, va(this));
8582
+ return Xo(p.spacing, va(this));
8583
8583
  }, C.getColorSchemeSelector = bp(o), C.spacing = C.generateSpacing(), C.shouldSkipGeneratingVar = s, C.unstable_sxConfig = {
8584
8584
  ...di,
8585
8585
  ...p == null ? void 0 : p.unstable_sxConfig
@@ -8588,7 +8588,7 @@ function Xp(e = {}, ...t) {
8588
8588
  sx: u,
8589
8589
  theme: this
8590
8590
  });
8591
- }, C.toRuntimeSource = cl, C;
8591
+ }, C.toRuntimeSource = ul, C;
8592
8592
  }
8593
8593
  function Is(e, t, r) {
8594
8594
  e.colorSchemes && r && (e.colorSchemes[t] = {
@@ -8668,7 +8668,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8668
8668
  [e, t]
8669
8669
  ), l = (d) => n[d - 1] || `Step ${d}`, p = (d) => d === e || a.includes(d) || d === e + 1 && a.includes(e);
8670
8670
  return /* @__PURE__ */ ke(
8671
- Pl,
8671
+ ao,
8672
8672
  {
8673
8673
  sx: {
8674
8674
  mb: 2,
@@ -8679,7 +8679,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8679
8679
  },
8680
8680
  children: [
8681
8681
  /* @__PURE__ */ ke(
8682
- ve,
8682
+ xe,
8683
8683
  {
8684
8684
  sx: {
8685
8685
  display: "flex",
@@ -8689,7 +8689,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8689
8689
  },
8690
8690
  children: [
8691
8691
  /* @__PURE__ */ D(
8692
- ve,
8692
+ xe,
8693
8693
  {
8694
8694
  sx: {
8695
8695
  display: "flex",
@@ -8699,9 +8699,9 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8699
8699
  },
8700
8700
  children: s.map((d, f) => {
8701
8701
  const m = d === e, x = d < e || a.includes(d), g = m || x ? "primary.main" : "#8F97A4";
8702
- return /* @__PURE__ */ ke(ve, { sx: { display: "flex", alignItems: "center" }, children: [
8702
+ return /* @__PURE__ */ ke(xe, { sx: { display: "flex", alignItems: "center" }, children: [
8703
8703
  /* @__PURE__ */ ke(
8704
- ve,
8704
+ xe,
8705
8705
  {
8706
8706
  onClick: () => p(d) && r(d),
8707
8707
  sx: {
@@ -8711,7 +8711,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8711
8711
  },
8712
8712
  children: [
8713
8713
  /* @__PURE__ */ D(
8714
- ve,
8714
+ xe,
8715
8715
  {
8716
8716
  sx: {
8717
8717
  width: 24,
@@ -8722,7 +8722,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8722
8722
  display: "flex",
8723
8723
  alignItems: "center",
8724
8724
  justifyContent: "center",
8725
- backgroundColor: (c) => m || x ? sl(c.palette.primary.main, 0.2) : "transparent",
8725
+ backgroundColor: (c) => m || x ? ol(c.palette.primary.main, 0.2) : "transparent",
8726
8726
  mr: 0.5,
8727
8727
  color: g,
8728
8728
  fontWeight: m || x ? 600 : 500,
@@ -8742,7 +8742,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8742
8742
  }
8743
8743
  ),
8744
8744
  f < s.length - 1 && /* @__PURE__ */ D(
8745
- ve,
8745
+ xe,
8746
8746
  {
8747
8747
  sx: {
8748
8748
  width: 40,
@@ -8806,10 +8806,10 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8806
8806
  `${o.text}-${l}`
8807
8807
  );
8808
8808
  };
8809
- return /* @__PURE__ */ ke(ve, { sx: { mt: 3, display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
8810
- /* @__PURE__ */ D(ve, { sx: { display: "flex", gap: 2 }, children: n.map((o, l) => s(o, l)) }),
8811
- /* @__PURE__ */ D(ve, { sx: { display: "flex", gap: 2 }, children: i.map((o, l) => s(o, l)) }),
8812
- /* @__PURE__ */ D(ve, { sx: { display: "flex", gap: 2 }, children: a.map((o, l) => s(o, l)) })
8809
+ return /* @__PURE__ */ ke(xe, { sx: { mt: 3, display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
8810
+ /* @__PURE__ */ D(xe, { sx: { display: "flex", gap: 2 }, children: n.map((o, l) => s(o, l)) }),
8811
+ /* @__PURE__ */ D(xe, { sx: { display: "flex", gap: 2 }, children: i.map((o, l) => s(o, l)) }),
8812
+ /* @__PURE__ */ D(xe, { sx: { display: "flex", gap: 2 }, children: a.map((o, l) => s(o, l)) })
8813
8813
  ] });
8814
8814
  }, lf = ({
8815
8815
  config: e,
@@ -8861,7 +8861,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
8861
8861
  return { ...y, justifyContent: "flex-end" };
8862
8862
  }
8863
8863
  };
8864
- return p === "vertical" ? /* @__PURE__ */ D(ve, { sx: b(), children: o.map((y, O) => /* @__PURE__ */ D(ve, { sx: { width: "100%" }, children: c(y, O) }, O)) }) : /* @__PURE__ */ D(ve, { sx: b(), children: /* @__PURE__ */ D(Il, { variant: "outlined", size: "medium", children: o.map((y, O) => c(y, O)) }) });
8864
+ return p === "vertical" ? /* @__PURE__ */ D(xe, { sx: b(), children: o.map((y, O) => /* @__PURE__ */ D(xe, { sx: { width: "100%" }, children: c(y, O) }, O)) }) : /* @__PURE__ */ D(xe, { sx: b(), children: /* @__PURE__ */ D(Il, { variant: "outlined", size: "medium", children: o.map((y, O) => c(y, O)) }) });
8865
8865
  }, cf = new Cc({
8866
8866
  defaultOptions: {
8867
8867
  queries: {
@@ -9018,7 +9018,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
9018
9018
  return c ? (R || ue) && (Me = !se) : R && (Me = !de), { ...U, disabled: U.disabled || Me };
9019
9019
  })
9020
9020
  };
9021
- return /* @__PURE__ */ D(ve, { sx: { mt: 3 }, children: /* @__PURE__ */ D(
9021
+ return /* @__PURE__ */ D(xe, { sx: { mt: 3 }, children: /* @__PURE__ */ D(
9022
9022
  lf,
9023
9023
  {
9024
9024
  config: P,
@@ -9047,7 +9047,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
9047
9047
  }
9048
9048
  );
9049
9049
  }
9050
- return l ? /* @__PURE__ */ D(ve, { sx: { mt: 3, display: "flex", justifyContent: "flex-end", flexDirection: "column", alignItems: "flex-end" }, children: /* @__PURE__ */ ke(ve, { sx: { display: "flex", gap: 2 }, children: [
9050
+ return l ? /* @__PURE__ */ D(xe, { sx: { mt: 3, display: "flex", justifyContent: "flex-end", flexDirection: "column", alignItems: "flex-end" }, children: /* @__PURE__ */ ke(xe, { sx: { display: "flex", gap: 2 }, children: [
9051
9051
  c && y > 1 && /* @__PURE__ */ D(
9052
9052
  Bt,
9053
9053
  {
@@ -9097,7 +9097,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
9097
9097
  )
9098
9098
  ] }) }) : null;
9099
9099
  }, re = /* @__PURE__ */ ke(
9100
- ve,
9100
+ xe,
9101
9101
  {
9102
9102
  component: "form",
9103
9103
  onSubmit: (P) => {
@@ -9123,9 +9123,14 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
9123
9123
  }
9124
9124
  ),
9125
9125
  /* @__PURE__ */ D(
9126
- ve,
9126
+ ao,
9127
9127
  {
9128
9128
  sx: {
9129
+ px: 1,
9130
+ py: 1,
9131
+ boxShadow: "0px 1px 4px 0px #00000014",
9132
+ background: "#F8F8F8",
9133
+ borderRadius: "4px",
9129
9134
  display: "grid",
9130
9135
  gridTemplateColumns: "repeat(12, 1fr)",
9131
9136
  gap: 2
@@ -9133,7 +9138,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
9133
9138
  children: A.map((P) => {
9134
9139
  const U = Q(P);
9135
9140
  return /* @__PURE__ */ D(
9136
- ve,
9141
+ xe,
9137
9142
  {
9138
9143
  sx: {
9139
9144
  gridColumn: `span ${U}`
@@ -9415,7 +9420,7 @@ const gf = yn(/* @__PURE__ */ D("path", {
9415
9420
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
9416
9421
  }), "Delete"), Zn = yn(/* @__PURE__ */ D("path", {
9417
9422
  d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"
9418
- }), "Description"), pl = yn(/* @__PURE__ */ D("path", {
9423
+ }), "Description"), fl = yn(/* @__PURE__ */ D("path", {
9419
9424
  d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"
9420
9425
  }), "Image");
9421
9426
  function hr(e, t, r, n) {
@@ -10709,7 +10714,7 @@ function _f(e, t) {
10709
10714
  if (t !== "drop")
10710
10715
  return r;
10711
10716
  const n = yield Promise.all(r.map(Cf));
10712
- return zs(fl(n));
10717
+ return zs(ml(n));
10713
10718
  }
10714
10719
  return zs(Xi(e.files).map((r) => qr(r)));
10715
10720
  });
@@ -10731,12 +10736,12 @@ function Cf(e) {
10731
10736
  if (typeof e.webkitGetAsEntry != "function")
10732
10737
  return Vs(e);
10733
10738
  const t = e.webkitGetAsEntry();
10734
- return t && t.isDirectory ? ml(t) : Vs(e, t);
10739
+ return t && t.isDirectory ? hl(t) : Vs(e, t);
10735
10740
  }
10736
- function fl(e) {
10741
+ function ml(e) {
10737
10742
  return e.reduce((t, r) => [
10738
10743
  ...t,
10739
- ...Array.isArray(r) ? fl(r) : [r]
10744
+ ...Array.isArray(r) ? ml(r) : [r]
10740
10745
  ], []);
10741
10746
  }
10742
10747
  function Vs(e, t) {
@@ -10759,10 +10764,10 @@ function Vs(e, t) {
10759
10764
  }
10760
10765
  function Af(e) {
10761
10766
  return hr(this, void 0, void 0, function* () {
10762
- return e.isDirectory ? ml(e) : Ff(e);
10767
+ return e.isDirectory ? hl(e) : Ff(e);
10763
10768
  });
10764
10769
  }
10765
- function ml(e) {
10770
+ function hl(e) {
10766
10771
  const t = e.createReader();
10767
10772
  return new Promise((r, n) => {
10768
10773
  const i = [];
@@ -10816,7 +10821,7 @@ function $f() {
10816
10821
  var Df = $f();
10817
10822
  const Fi = /* @__PURE__ */ ma(Df);
10818
10823
  function Ls(e) {
10819
- return jf(e) || Pf(e) || gl(e) || Rf();
10824
+ return jf(e) || Pf(e) || yl(e) || Rf();
10820
10825
  }
10821
10826
  function Rf() {
10822
10827
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -10842,24 +10847,24 @@ function Bs(e) {
10842
10847
  for (var t = 1; t < arguments.length; t++) {
10843
10848
  var r = arguments[t] != null ? arguments[t] : {};
10844
10849
  t % 2 ? qs(Object(r), !0).forEach(function(n) {
10845
- hl(e, n, r[n]);
10850
+ gl(e, n, r[n]);
10846
10851
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : qs(Object(r)).forEach(function(n) {
10847
10852
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
10848
10853
  });
10849
10854
  }
10850
10855
  return e;
10851
10856
  }
10852
- function hl(e, t, r) {
10857
+ function gl(e, t, r) {
10853
10858
  return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
10854
10859
  }
10855
10860
  function on(e, t) {
10856
- return zf(e) || Mf(e, t) || gl(e, t) || If();
10861
+ return zf(e) || Mf(e, t) || yl(e, t) || If();
10857
10862
  }
10858
10863
  function If() {
10859
10864
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10860
10865
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
10861
10866
  }
10862
- function gl(e, t) {
10867
+ function yl(e, t) {
10863
10868
  if (e) {
10864
10869
  if (typeof e == "string") return ea(e, t);
10865
10870
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -10915,11 +10920,11 @@ var Vf = typeof Fi == "function" ? Fi : Fi.default, Nf = "file-invalid-type", Lf
10915
10920
  code: Bf,
10916
10921
  message: "Too many files"
10917
10922
  };
10918
- function yl(e, t) {
10923
+ function vl(e, t) {
10919
10924
  var r = e.type === "application/x-moz-file" || Vf(e, t);
10920
10925
  return [r, r ? null : Uf(t)];
10921
10926
  }
10922
- function vl(e, t, r) {
10927
+ function xl(e, t, r) {
10923
10928
  if (er(e.size))
10924
10929
  if (er(t) && er(r)) {
10925
10930
  if (e.size > r) return [!1, Us(r)];
@@ -10936,7 +10941,7 @@ function er(e) {
10936
10941
  function Hf(e) {
10937
10942
  var t = e.files, r = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, s = e.maxFiles, o = e.validator;
10938
10943
  return !a && t.length > 1 || a && s >= 1 && t.length > s ? !1 : t.every(function(l) {
10939
- var p = yl(l, r), d = on(p, 1), f = d[0], m = vl(l, n, i), x = on(m, 1), g = x[0], c = o ? o(l) : null;
10944
+ var p = vl(l, r), d = on(p, 1), f = d[0], m = xl(l, n, i), x = on(m, 1), g = x[0], c = o ? o(l) : null;
10940
10945
  return f && g && !c;
10941
10946
  });
10942
10947
  }
@@ -10979,10 +10984,10 @@ function Zf(e) {
10979
10984
  if (er(e)) {
10980
10985
  var t = Object.entries(e).filter(function(r) {
10981
10986
  var n = on(r, 2), i = n[0], a = n[1], s = !0;
10982
- return xl(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(a) || !a.every(bl)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), s = !1), s;
10987
+ return bl(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(a) || !a.every(wl)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), s = !1), s;
10983
10988
  }).reduce(function(r, n) {
10984
10989
  var i = on(n, 2), a = i[0], s = i[1];
10985
- return Bs(Bs({}, r), {}, hl({}, a, s));
10990
+ return Bs(Bs({}, r), {}, gl({}, a, s));
10986
10991
  }, {});
10987
10992
  return [{
10988
10993
  // description is required due to https://crbug.com/1264708
@@ -10998,7 +11003,7 @@ function Jf(e) {
10998
11003
  var n = on(r, 2), i = n[0], a = n[1];
10999
11004
  return [].concat(Ls(t), [i], Ls(a));
11000
11005
  }, []).filter(function(t) {
11001
- return xl(t) || bl(t);
11006
+ return bl(t) || wl(t);
11002
11007
  }).join(",");
11003
11008
  }
11004
11009
  function Xf(e) {
@@ -11007,15 +11012,15 @@ function Xf(e) {
11007
11012
  function em(e) {
11008
11013
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
11009
11014
  }
11010
- function xl(e) {
11015
+ function bl(e) {
11011
11016
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
11012
11017
  }
11013
- function bl(e) {
11018
+ function wl(e) {
11014
11019
  return /^.*\.[\w]+$/.test(e);
11015
11020
  }
11016
11021
  var tm = ["children"], rm = ["open"], nm = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], im = ["refKey", "onChange", "onClick"];
11017
11022
  function am(e) {
11018
- return lm(e) || om(e) || wl(e) || sm();
11023
+ return lm(e) || om(e) || Sl(e) || sm();
11019
11024
  }
11020
11025
  function sm() {
11021
11026
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -11028,13 +11033,13 @@ function lm(e) {
11028
11033
  if (Array.isArray(e)) return ta(e);
11029
11034
  }
11030
11035
  function $i(e, t) {
11031
- return dm(e) || um(e, t) || wl(e, t) || cm();
11036
+ return dm(e) || um(e, t) || Sl(e, t) || cm();
11032
11037
  }
11033
11038
  function cm() {
11034
11039
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11035
11040
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
11036
11041
  }
11037
- function wl(e, t) {
11042
+ function Sl(e, t) {
11038
11043
  if (e) {
11039
11044
  if (typeof e == "string") return ta(e, t);
11040
11045
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -11111,18 +11116,18 @@ function pm(e, t) {
11111
11116
  i = n[a], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
11112
11117
  return r;
11113
11118
  }
11114
- var Oa = /* @__PURE__ */ _l(function(e, t) {
11115
- var r = e.children, n = ei(e, tm), i = El(n), a = i.open, s = ei(i, rm);
11116
- return Cl(t, function() {
11119
+ var Oa = /* @__PURE__ */ Cl(function(e, t) {
11120
+ var r = e.children, n = ei(e, tm), i = kl(n), a = i.open, s = ei(i, rm);
11121
+ return Al(t, function() {
11117
11122
  return {
11118
11123
  open: a
11119
11124
  };
11120
- }, [a]), /* @__PURE__ */ ye.createElement(Al, null, r(Te(Te({}, s), {}, {
11125
+ }, [a]), /* @__PURE__ */ ye.createElement(Fl, null, r(Te(Te({}, s), {}, {
11121
11126
  open: a
11122
11127
  })));
11123
11128
  });
11124
11129
  Oa.displayName = "Dropzone";
11125
- var Sl = {
11130
+ var El = {
11126
11131
  disabled: !1,
11127
11132
  getFilesFromEvent: Sf,
11128
11133
  maxSize: 1 / 0,
@@ -11138,7 +11143,7 @@ var Sl = {
11138
11143
  useFsAccessApi: !1,
11139
11144
  autoFocus: !1
11140
11145
  };
11141
- Oa.defaultProps = Sl;
11146
+ Oa.defaultProps = El;
11142
11147
  Oa.propTypes = {
11143
11148
  /**
11144
11149
  * Render function that exposes the dropzone state and prop getter fns
@@ -11316,8 +11321,8 @@ var na = {
11316
11321
  acceptedFiles: [],
11317
11322
  fileRejections: []
11318
11323
  };
11319
- function El() {
11320
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Te(Te({}, Sl), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, s = t.minSize, o = t.multiple, l = t.maxFiles, p = t.onDragEnter, d = t.onDragLeave, f = t.onDragOver, m = t.onDrop, x = t.onDropAccepted, g = t.onDropRejected, c = t.onFileDialogCancel, b = t.onFileDialogOpen, y = t.useFsAccessApi, O = t.autoFocus, A = t.preventDropOnDocument, C = t.noClick, w = t.noKeyboard, z = t.noDrag, H = t.noDragEventsBubbling, te = t.onError, K = t.validator, u = Ie(function() {
11324
+ function kl() {
11325
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Te(Te({}, El), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, s = t.minSize, o = t.multiple, l = t.maxFiles, p = t.onDragEnter, d = t.onDragLeave, f = t.onDragOver, m = t.onDrop, x = t.onDropAccepted, g = t.onDropRejected, c = t.onFileDialogCancel, b = t.onFileDialogOpen, y = t.useFsAccessApi, O = t.autoFocus, A = t.preventDropOnDocument, C = t.noClick, w = t.noKeyboard, z = t.noDrag, H = t.noDragEventsBubbling, te = t.onError, K = t.validator, u = Ie(function() {
11321
11326
  return Jf(r);
11322
11327
  }, [r]), F = Ie(function() {
11323
11328
  return Zf(r);
@@ -11325,7 +11330,7 @@ function El() {
11325
11330
  return typeof b == "function" ? b : Qs;
11326
11331
  }, [b]), j = Ie(function() {
11327
11332
  return typeof c == "function" ? c : Qs;
11328
- }, [c]), M = xt(null), V = xt(null), W = Tl(fm, na), se = $i(W, 2), de = se[0], ce = se[1], I = de.isFocused, B = de.isFileDialogActive, N = xt(typeof window < "u" && window.isSecureContext && y && Yf()), Q = function() {
11333
+ }, [c]), M = xt(null), V = xt(null), W = _l(fm, na), se = $i(W, 2), de = se[0], ce = se[1], I = de.isFocused, B = de.isFileDialogActive, N = xt(typeof window < "u" && window.isSecureContext && y && Yf()), Q = function() {
11329
11334
  !N.current && B && setTimeout(function() {
11330
11335
  if (V.current) {
11331
11336
  var T = V.current.files;
@@ -11398,15 +11403,15 @@ function El() {
11398
11403
  }, [M, d, H]), U = je(function(E, T) {
11399
11404
  var q = [], ie = [];
11400
11405
  E.forEach(function(le) {
11401
- var ze = yl(le, u), st = $i(ze, 2), tt = st[0], Br = st[1], Zt = vl(le, s, a), $t = $i(Zt, 2), Ur = $t[0], gr = $t[1], Wr = K ? K(le) : null;
11406
+ var ze = vl(le, u), st = $i(ze, 2), tt = st[0], Br = st[1], Zt = xl(le, s, a), $t = $i(Zt, 2), Ur = $t[0], gr = $t[1], Wr = K ? K(le) : null;
11402
11407
  if (tt && Ur && !Wr)
11403
11408
  q.push(le);
11404
11409
  else {
11405
11410
  var yr = [Br, gr];
11406
11411
  Wr && (yr = yr.concat(Wr)), ie.push({
11407
11412
  file: le,
11408
- errors: yr.filter(function(kl) {
11409
- return kl;
11413
+ errors: yr.filter(function(Ol) {
11414
+ return Ol;
11410
11415
  })
11411
11416
  });
11412
11417
  }
@@ -11569,7 +11574,7 @@ const mm = ({
11569
11574
  file: e,
11570
11575
  onRemove: t
11571
11576
  }) => {
11572
- const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ D(pl, {}) : e.file.type.includes("pdf") ? /* @__PURE__ */ D(Zn, {}) : /* @__PURE__ */ D(Zn, {}), n = () => {
11577
+ const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ D(fl, {}) : e.file.type.includes("pdf") ? /* @__PURE__ */ D(Zn, {}) : /* @__PURE__ */ D(Zn, {}), n = () => {
11573
11578
  switch (e.status) {
11574
11579
  case "success":
11575
11580
  return /* @__PURE__ */ D(gf, { color: "success" });
@@ -11584,7 +11589,7 @@ const mm = ({
11584
11589
  return parseFloat((a / Math.pow(s, l)).toFixed(2)) + " " + o[l];
11585
11590
  };
11586
11591
  return /* @__PURE__ */ ke(
11587
- ao,
11592
+ so,
11588
11593
  {
11589
11594
  sx: {
11590
11595
  p: 2,
@@ -11595,11 +11600,11 @@ const mm = ({
11595
11600
  border: "1px solid #e0e0e0"
11596
11601
  },
11597
11602
  children: [
11598
- /* @__PURE__ */ ke(ve, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
11603
+ /* @__PURE__ */ ke(xe, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
11599
11604
  r(),
11600
11605
  n()
11601
11606
  ] }),
11602
- /* @__PURE__ */ ke(ve, { sx: { flex: 1, minWidth: 0 }, children: [
11607
+ /* @__PURE__ */ ke(xe, { sx: { flex: 1, minWidth: 0 }, children: [
11603
11608
  /* @__PURE__ */ D(Ve, { variant: "body2", noWrap: !0, children: e.file.name }),
11604
11609
  /* @__PURE__ */ ke(Ve, { variant: "caption", color: "textSecondary", children: [
11605
11610
  i(e.file.size),
@@ -11689,13 +11694,13 @@ const mm = ({
11689
11694
  b([]), g(!0);
11690
11695
  const k = o.filter((j) => j.status !== "error");
11691
11696
  n == null || n(k);
11692
- }, [o, n, e.required, e.title]), { getRootProps: z, getInputProps: H, isDragActive: te } = El({
11697
+ }, [o, n, e.required, e.title]), { getRootProps: z, getInputProps: H, isDragActive: te } = kl({
11693
11698
  onDrop: A,
11694
11699
  multiple: e.multiple,
11695
11700
  disabled: i,
11696
11701
  noClick: !1,
11697
11702
  noKeyboard: !1
11698
- }), K = (k) => k.startsWith("image/") ? /* @__PURE__ */ D(pl, {}) : k.includes("pdf") ? /* @__PURE__ */ D(Zn, {}) : /* @__PURE__ */ D(Zn, {}), u = e.fileTypes.map((k) => k.replace("*", "all")).join(", ");
11703
+ }), K = (k) => k.startsWith("image/") ? /* @__PURE__ */ D(fl, {}) : k.includes("pdf") ? /* @__PURE__ */ D(Zn, {}) : /* @__PURE__ */ D(Zn, {}), u = e.fileTypes.map((k) => k.replace("*", "all")).join(", ");
11699
11704
  wt(() => {
11700
11705
  if (!f) return;
11701
11706
  const k = [], j = [...c, ...k];
@@ -11714,14 +11719,14 @@ const mm = ({
11714
11719
  return "flex-end";
11715
11720
  }
11716
11721
  };
11717
- return /* @__PURE__ */ ke(ve, { className: a, style: s, children: [
11722
+ return /* @__PURE__ */ ke(xe, { className: a, style: s, children: [
11718
11723
  /* @__PURE__ */ ke(Ve, { variant: "h6", gutterBottom: !0, children: [
11719
11724
  e.title,
11720
11725
  e.required && /* @__PURE__ */ D("span", { style: { color: "red" }, children: " *" })
11721
11726
  ] }),
11722
11727
  e.description && /* @__PURE__ */ D(Ve, { variant: "body2", color: "textSecondary", gutterBottom: !0, children: e.description }),
11723
11728
  /* @__PURE__ */ io(
11724
- ao,
11729
+ so,
11725
11730
  {
11726
11731
  ...z(),
11727
11732
  key: `dropzone-${o.length}`,
@@ -11757,7 +11762,7 @@ const mm = ({
11757
11762
  }
11758
11763
  )
11759
11764
  ] }),
11760
- /* @__PURE__ */ ke(ve, { sx: { mt: 2 }, children: [
11765
+ /* @__PURE__ */ ke(xe, { sx: { mt: 2 }, children: [
11761
11766
  /* @__PURE__ */ D(
11762
11767
  zn,
11763
11768
  {
@@ -11779,7 +11784,7 @@ const mm = ({
11779
11784
  ] })
11780
11785
  ),
11781
11786
  p.length > 0 && /* @__PURE__ */ D(Ll, { severity: "error", sx: { mt: 2 }, children: p.map((k, j) => /* @__PURE__ */ D(Ve, { variant: "body2", children: k }, j)) }),
11782
- o.length > 0 && /* @__PURE__ */ ke(ve, { sx: { mt: 2 }, children: [
11787
+ o.length > 0 && /* @__PURE__ */ ke(xe, { sx: { mt: 2 }, children: [
11783
11788
  /* @__PURE__ */ ke(Ve, { variant: "subtitle1", gutterBottom: !0, children: [
11784
11789
  "Selected Files (",
11785
11790
  o.length,
@@ -11795,7 +11800,7 @@ const mm = ({
11795
11800
  ))
11796
11801
  ] }),
11797
11802
  e.helperText && /* @__PURE__ */ D(Ve, { variant: "caption", color: "textSecondary", sx: { mt: 1, display: "block" }, children: e.helperText }),
11798
- e.submitButton && /* @__PURE__ */ D(ve, { sx: {
11803
+ e.submitButton && /* @__PURE__ */ D(xe, { sx: {
11799
11804
  mt: 3,
11800
11805
  display: "flex",
11801
11806
  justifyContent: F()
@@ -11821,7 +11826,7 @@ export {
11821
11826
  sf as StepNavigation,
11822
11827
  Kc as fetchApiData,
11823
11828
  Au as generateSchema,
11824
- $o as getApiConfig,
11829
+ Do as getApiConfig,
11825
11830
  xr as hasApiConfig,
11826
11831
  wm as shouldShowField,
11827
11832
  Qc as useApiData