finform-react-builder 1.5.9 → 1.5.11
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 +255 -251
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
17
|
-
import { Box as
|
|
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
|
|
22
|
-
var De = (e) => !We(e) && !Array.isArray(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
|
-
},
|
|
82
|
-
|
|
83
|
-
const oa = () => ye.useContext(
|
|
84
|
-
var
|
|
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(() =>
|
|
121
|
+
}, [r]), ye.useMemo(() => po(s, r, l.current, !1), [s, r]);
|
|
122
122
|
}
|
|
123
|
-
var bt = (e) => typeof e == "string",
|
|
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(
|
|
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 =
|
|
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:
|
|
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
|
|
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) || !
|
|
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
|
-
},
|
|
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
|
|
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]) && !
|
|
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
|
|
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]) && !
|
|
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) =>
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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) ?
|
|
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 =
|
|
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 && !
|
|
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, $) =>
|
|
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,
|
|
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) :
|
|
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) && !(
|
|
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 =
|
|
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
|
-
},
|
|
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 &&
|
|
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 &&
|
|
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] =
|
|
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
|
|
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
|
|
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
|
|
1437
|
+
function ko(e) {
|
|
1438
1438
|
return (e ?? "online") === "online" ? Un.isOnline() : !0;
|
|
1439
1439
|
}
|
|
1440
|
-
var
|
|
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
|
|
1446
|
+
return e instanceof Oo;
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
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
|
|
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 = () =>
|
|
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,
|
|
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
|
|
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 : !
|
|
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 =
|
|
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,
|
|
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
|
-
...
|
|
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
|
|
1851
|
+
function Co(e, t) {
|
|
1852
1852
|
return {
|
|
1853
1853
|
fetchFailureCount: 0,
|
|
1854
1854
|
fetchFailureReason: null,
|
|
1855
|
-
fetchStatus:
|
|
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
|
|
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,
|
|
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 =
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
2606
|
-
const a = pe(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,
|
|
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,
|
|
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
|
-
...
|
|
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,
|
|
2745
|
+
pe(this, ve, Ao).call(this, { listeners: n() });
|
|
2746
2746
|
}
|
|
2747
2747
|
onQueryUpdate() {
|
|
2748
|
-
this.updateResult(), this.hasListeners() && pe(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(),
|
|
2751
|
-
pe(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,
|
|
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 =
|
|
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,
|
|
2773
|
-
(this.options.refetchIntervalInBackground || pa.isFocused()) && pe(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,
|
|
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
|
-
},
|
|
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
|
|
2819
|
+
var Fo = Fe.createContext(
|
|
2820
2820
|
void 0
|
|
2821
2821
|
), Dc = (e) => {
|
|
2822
|
-
const t = Fe.useContext(
|
|
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(
|
|
2832
|
-
|
|
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(
|
|
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
|
|
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 =
|
|
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(() =>
|
|
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(
|
|
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(
|
|
3191
|
+
/* @__PURE__ */ D(Rl, { id: e.id, children: m(e.label) }),
|
|
3192
3192
|
/* @__PURE__ */ D(
|
|
3193
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
|
3680
|
+
function Ro(e) {
|
|
3681
3681
|
return e == null ? [] : [].concat(e);
|
|
3682
3682
|
}
|
|
3683
|
-
let
|
|
3684
|
-
|
|
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[
|
|
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
|
-
|
|
3698
|
-
|
|
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[
|
|
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 [
|
|
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 =
|
|
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
|
|
4442
|
-
return new
|
|
4441
|
+
function Mo(e) {
|
|
4442
|
+
return new zo(e);
|
|
4443
4443
|
}
|
|
4444
|
-
class
|
|
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
|
-
|
|
4456
|
-
function
|
|
4457
|
-
return new
|
|
4455
|
+
Mo.prototype = zo.prototype;
|
|
4456
|
+
function Vo() {
|
|
4457
|
+
return new No();
|
|
4458
4458
|
}
|
|
4459
|
-
class
|
|
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
|
-
|
|
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
|
|
4569
|
+
return new Lo();
|
|
4570
4570
|
}
|
|
4571
|
-
class
|
|
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 =
|
|
4742
|
+
Zr.prototype = Lo.prototype;
|
|
4743
4743
|
let Eu = (e) => e != +e;
|
|
4744
|
-
function
|
|
4745
|
-
return new
|
|
4744
|
+
function qo() {
|
|
4745
|
+
return new Bo();
|
|
4746
4746
|
}
|
|
4747
|
-
class
|
|
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
|
-
|
|
4848
|
-
let
|
|
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 =
|
|
4905
|
+
mn.INVALID_DATE = Uo;
|
|
4906
4906
|
ga.prototype = mn.prototype;
|
|
4907
|
-
ga.INVALID_DATE =
|
|
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
|
|
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 =
|
|
4968
|
-
function
|
|
4969
|
-
return new
|
|
4967
|
+
const Cu = Wo([]);
|
|
4968
|
+
function Ho(e) {
|
|
4969
|
+
return new Ko(e);
|
|
4970
4970
|
}
|
|
4971
|
-
class
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
}),
|
|
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,
|
|
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
|
|
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 && !
|
|
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
|
|
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
|
|
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__ */
|
|
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 =
|
|
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 =
|
|
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
|
|
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] =
|
|
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]) ?
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
7311
|
+
return il(e, r.variants, [n]);
|
|
7312
7312
|
}
|
|
7313
7313
|
return r != null && r.isProcessed ? r.style : r;
|
|
7314
7314
|
}
|
|
7315
|
-
function
|
|
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(
|
|
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 =
|
|
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 ?
|
|
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}-${
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
7904
|
-
function
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
...
|
|
8402
|
+
...dl(a.mode),
|
|
8403
8403
|
...r
|
|
8404
8404
|
},
|
|
8405
|
-
overlays: n ||
|
|
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 :
|
|
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
|
-
...
|
|
8504
|
+
...dl(i),
|
|
8505
8505
|
...t == null ? void 0 : t.opacity
|
|
8506
8506
|
},
|
|
8507
|
-
overlays: (t == null ? void 0 : t.overlays) ||
|
|
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
|
|
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 =
|
|
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
|
-
|
|
8671
|
+
ao,
|
|
8672
8672
|
{
|
|
8673
8673
|
sx: {
|
|
8674
8674
|
mb: 2,
|
|
@@ -8679,17 +8679,17 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
|
|
|
8679
8679
|
},
|
|
8680
8680
|
children: [
|
|
8681
8681
|
/* @__PURE__ */ ke(
|
|
8682
|
-
|
|
8682
|
+
xe,
|
|
8683
8683
|
{
|
|
8684
8684
|
sx: {
|
|
8685
8685
|
display: "flex",
|
|
8686
8686
|
alignItems: "center",
|
|
8687
8687
|
justifyContent: "space-between",
|
|
8688
|
-
mb:
|
|
8688
|
+
mb: 2
|
|
8689
8689
|
},
|
|
8690
8690
|
children: [
|
|
8691
8691
|
/* @__PURE__ */ D(
|
|
8692
|
-
|
|
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(
|
|
8702
|
+
return /* @__PURE__ */ ke(xe, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
8703
8703
|
/* @__PURE__ */ ke(
|
|
8704
|
-
|
|
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
|
-
|
|
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 ?
|
|
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
|
-
|
|
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(
|
|
8810
|
-
/* @__PURE__ */ D(
|
|
8811
|
-
/* @__PURE__ */ D(
|
|
8812
|
-
/* @__PURE__ */ D(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
9100
|
+
xe,
|
|
9101
9101
|
{
|
|
9102
9102
|
component: "form",
|
|
9103
9103
|
onSubmit: (P) => {
|
|
@@ -9123,9 +9123,13 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
|
|
|
9123
9123
|
}
|
|
9124
9124
|
),
|
|
9125
9125
|
/* @__PURE__ */ D(
|
|
9126
|
-
|
|
9126
|
+
ao,
|
|
9127
9127
|
{
|
|
9128
9128
|
sx: {
|
|
9129
|
+
p: 2,
|
|
9130
|
+
boxShadow: "0px 1px 4px 0px #00000014",
|
|
9131
|
+
background: "#F8F8F8",
|
|
9132
|
+
borderRadius: "4px",
|
|
9129
9133
|
display: "grid",
|
|
9130
9134
|
gridTemplateColumns: "repeat(12, 1fr)",
|
|
9131
9135
|
gap: 2
|
|
@@ -9133,7 +9137,7 @@ const nf = (e) => rf(e) && e !== "classes", af = np({
|
|
|
9133
9137
|
children: A.map((P) => {
|
|
9134
9138
|
const U = Q(P);
|
|
9135
9139
|
return /* @__PURE__ */ D(
|
|
9136
|
-
|
|
9140
|
+
xe,
|
|
9137
9141
|
{
|
|
9138
9142
|
sx: {
|
|
9139
9143
|
gridColumn: `span ${U}`
|
|
@@ -9415,7 +9419,7 @@ const gf = yn(/* @__PURE__ */ D("path", {
|
|
|
9415
9419
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
9416
9420
|
}), "Delete"), Zn = yn(/* @__PURE__ */ D("path", {
|
|
9417
9421
|
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"),
|
|
9422
|
+
}), "Description"), fl = yn(/* @__PURE__ */ D("path", {
|
|
9419
9423
|
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
9424
|
}), "Image");
|
|
9421
9425
|
function hr(e, t, r, n) {
|
|
@@ -10709,7 +10713,7 @@ function _f(e, t) {
|
|
|
10709
10713
|
if (t !== "drop")
|
|
10710
10714
|
return r;
|
|
10711
10715
|
const n = yield Promise.all(r.map(Cf));
|
|
10712
|
-
return zs(
|
|
10716
|
+
return zs(ml(n));
|
|
10713
10717
|
}
|
|
10714
10718
|
return zs(Xi(e.files).map((r) => qr(r)));
|
|
10715
10719
|
});
|
|
@@ -10731,12 +10735,12 @@ function Cf(e) {
|
|
|
10731
10735
|
if (typeof e.webkitGetAsEntry != "function")
|
|
10732
10736
|
return Vs(e);
|
|
10733
10737
|
const t = e.webkitGetAsEntry();
|
|
10734
|
-
return t && t.isDirectory ?
|
|
10738
|
+
return t && t.isDirectory ? hl(t) : Vs(e, t);
|
|
10735
10739
|
}
|
|
10736
|
-
function
|
|
10740
|
+
function ml(e) {
|
|
10737
10741
|
return e.reduce((t, r) => [
|
|
10738
10742
|
...t,
|
|
10739
|
-
...Array.isArray(r) ?
|
|
10743
|
+
...Array.isArray(r) ? ml(r) : [r]
|
|
10740
10744
|
], []);
|
|
10741
10745
|
}
|
|
10742
10746
|
function Vs(e, t) {
|
|
@@ -10759,10 +10763,10 @@ function Vs(e, t) {
|
|
|
10759
10763
|
}
|
|
10760
10764
|
function Af(e) {
|
|
10761
10765
|
return hr(this, void 0, void 0, function* () {
|
|
10762
|
-
return e.isDirectory ?
|
|
10766
|
+
return e.isDirectory ? hl(e) : Ff(e);
|
|
10763
10767
|
});
|
|
10764
10768
|
}
|
|
10765
|
-
function
|
|
10769
|
+
function hl(e) {
|
|
10766
10770
|
const t = e.createReader();
|
|
10767
10771
|
return new Promise((r, n) => {
|
|
10768
10772
|
const i = [];
|
|
@@ -10816,7 +10820,7 @@ function $f() {
|
|
|
10816
10820
|
var Df = $f();
|
|
10817
10821
|
const Fi = /* @__PURE__ */ ma(Df);
|
|
10818
10822
|
function Ls(e) {
|
|
10819
|
-
return jf(e) || Pf(e) ||
|
|
10823
|
+
return jf(e) || Pf(e) || yl(e) || Rf();
|
|
10820
10824
|
}
|
|
10821
10825
|
function Rf() {
|
|
10822
10826
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -10842,24 +10846,24 @@ function Bs(e) {
|
|
|
10842
10846
|
for (var t = 1; t < arguments.length; t++) {
|
|
10843
10847
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
10844
10848
|
t % 2 ? qs(Object(r), !0).forEach(function(n) {
|
|
10845
|
-
|
|
10849
|
+
gl(e, n, r[n]);
|
|
10846
10850
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : qs(Object(r)).forEach(function(n) {
|
|
10847
10851
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
10848
10852
|
});
|
|
10849
10853
|
}
|
|
10850
10854
|
return e;
|
|
10851
10855
|
}
|
|
10852
|
-
function
|
|
10856
|
+
function gl(e, t, r) {
|
|
10853
10857
|
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
10854
10858
|
}
|
|
10855
10859
|
function on(e, t) {
|
|
10856
|
-
return zf(e) || Mf(e, t) ||
|
|
10860
|
+
return zf(e) || Mf(e, t) || yl(e, t) || If();
|
|
10857
10861
|
}
|
|
10858
10862
|
function If() {
|
|
10859
10863
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10860
10864
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
10861
10865
|
}
|
|
10862
|
-
function
|
|
10866
|
+
function yl(e, t) {
|
|
10863
10867
|
if (e) {
|
|
10864
10868
|
if (typeof e == "string") return ea(e, t);
|
|
10865
10869
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -10915,11 +10919,11 @@ var Vf = typeof Fi == "function" ? Fi : Fi.default, Nf = "file-invalid-type", Lf
|
|
|
10915
10919
|
code: Bf,
|
|
10916
10920
|
message: "Too many files"
|
|
10917
10921
|
};
|
|
10918
|
-
function
|
|
10922
|
+
function vl(e, t) {
|
|
10919
10923
|
var r = e.type === "application/x-moz-file" || Vf(e, t);
|
|
10920
10924
|
return [r, r ? null : Uf(t)];
|
|
10921
10925
|
}
|
|
10922
|
-
function
|
|
10926
|
+
function xl(e, t, r) {
|
|
10923
10927
|
if (er(e.size))
|
|
10924
10928
|
if (er(t) && er(r)) {
|
|
10925
10929
|
if (e.size > r) return [!1, Us(r)];
|
|
@@ -10936,7 +10940,7 @@ function er(e) {
|
|
|
10936
10940
|
function Hf(e) {
|
|
10937
10941
|
var t = e.files, r = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, s = e.maxFiles, o = e.validator;
|
|
10938
10942
|
return !a && t.length > 1 || a && s >= 1 && t.length > s ? !1 : t.every(function(l) {
|
|
10939
|
-
var p =
|
|
10943
|
+
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
10944
|
return f && g && !c;
|
|
10941
10945
|
});
|
|
10942
10946
|
}
|
|
@@ -10979,10 +10983,10 @@ function Zf(e) {
|
|
|
10979
10983
|
if (er(e)) {
|
|
10980
10984
|
var t = Object.entries(e).filter(function(r) {
|
|
10981
10985
|
var n = on(r, 2), i = n[0], a = n[1], s = !0;
|
|
10982
|
-
return
|
|
10986
|
+
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
10987
|
}).reduce(function(r, n) {
|
|
10984
10988
|
var i = on(n, 2), a = i[0], s = i[1];
|
|
10985
|
-
return Bs(Bs({}, r), {},
|
|
10989
|
+
return Bs(Bs({}, r), {}, gl({}, a, s));
|
|
10986
10990
|
}, {});
|
|
10987
10991
|
return [{
|
|
10988
10992
|
// description is required due to https://crbug.com/1264708
|
|
@@ -10998,7 +11002,7 @@ function Jf(e) {
|
|
|
10998
11002
|
var n = on(r, 2), i = n[0], a = n[1];
|
|
10999
11003
|
return [].concat(Ls(t), [i], Ls(a));
|
|
11000
11004
|
}, []).filter(function(t) {
|
|
11001
|
-
return
|
|
11005
|
+
return bl(t) || wl(t);
|
|
11002
11006
|
}).join(",");
|
|
11003
11007
|
}
|
|
11004
11008
|
function Xf(e) {
|
|
@@ -11007,15 +11011,15 @@ function Xf(e) {
|
|
|
11007
11011
|
function em(e) {
|
|
11008
11012
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
11009
11013
|
}
|
|
11010
|
-
function
|
|
11014
|
+
function bl(e) {
|
|
11011
11015
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
11012
11016
|
}
|
|
11013
|
-
function
|
|
11017
|
+
function wl(e) {
|
|
11014
11018
|
return /^.*\.[\w]+$/.test(e);
|
|
11015
11019
|
}
|
|
11016
11020
|
var tm = ["children"], rm = ["open"], nm = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], im = ["refKey", "onChange", "onClick"];
|
|
11017
11021
|
function am(e) {
|
|
11018
|
-
return lm(e) || om(e) ||
|
|
11022
|
+
return lm(e) || om(e) || Sl(e) || sm();
|
|
11019
11023
|
}
|
|
11020
11024
|
function sm() {
|
|
11021
11025
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -11028,13 +11032,13 @@ function lm(e) {
|
|
|
11028
11032
|
if (Array.isArray(e)) return ta(e);
|
|
11029
11033
|
}
|
|
11030
11034
|
function $i(e, t) {
|
|
11031
|
-
return dm(e) || um(e, t) ||
|
|
11035
|
+
return dm(e) || um(e, t) || Sl(e, t) || cm();
|
|
11032
11036
|
}
|
|
11033
11037
|
function cm() {
|
|
11034
11038
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11035
11039
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11036
11040
|
}
|
|
11037
|
-
function
|
|
11041
|
+
function Sl(e, t) {
|
|
11038
11042
|
if (e) {
|
|
11039
11043
|
if (typeof e == "string") return ta(e, t);
|
|
11040
11044
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -11111,18 +11115,18 @@ function pm(e, t) {
|
|
|
11111
11115
|
i = n[a], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
11112
11116
|
return r;
|
|
11113
11117
|
}
|
|
11114
|
-
var Oa = /* @__PURE__ */
|
|
11115
|
-
var r = e.children, n = ei(e, tm), i =
|
|
11116
|
-
return
|
|
11118
|
+
var Oa = /* @__PURE__ */ Cl(function(e, t) {
|
|
11119
|
+
var r = e.children, n = ei(e, tm), i = kl(n), a = i.open, s = ei(i, rm);
|
|
11120
|
+
return Al(t, function() {
|
|
11117
11121
|
return {
|
|
11118
11122
|
open: a
|
|
11119
11123
|
};
|
|
11120
|
-
}, [a]), /* @__PURE__ */ ye.createElement(
|
|
11124
|
+
}, [a]), /* @__PURE__ */ ye.createElement(Fl, null, r(Te(Te({}, s), {}, {
|
|
11121
11125
|
open: a
|
|
11122
11126
|
})));
|
|
11123
11127
|
});
|
|
11124
11128
|
Oa.displayName = "Dropzone";
|
|
11125
|
-
var
|
|
11129
|
+
var El = {
|
|
11126
11130
|
disabled: !1,
|
|
11127
11131
|
getFilesFromEvent: Sf,
|
|
11128
11132
|
maxSize: 1 / 0,
|
|
@@ -11138,7 +11142,7 @@ var Sl = {
|
|
|
11138
11142
|
useFsAccessApi: !1,
|
|
11139
11143
|
autoFocus: !1
|
|
11140
11144
|
};
|
|
11141
|
-
Oa.defaultProps =
|
|
11145
|
+
Oa.defaultProps = El;
|
|
11142
11146
|
Oa.propTypes = {
|
|
11143
11147
|
/**
|
|
11144
11148
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -11316,8 +11320,8 @@ var na = {
|
|
|
11316
11320
|
acceptedFiles: [],
|
|
11317
11321
|
fileRejections: []
|
|
11318
11322
|
};
|
|
11319
|
-
function
|
|
11320
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Te(Te({},
|
|
11323
|
+
function kl() {
|
|
11324
|
+
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
11325
|
return Jf(r);
|
|
11322
11326
|
}, [r]), F = Ie(function() {
|
|
11323
11327
|
return Zf(r);
|
|
@@ -11325,7 +11329,7 @@ function El() {
|
|
|
11325
11329
|
return typeof b == "function" ? b : Qs;
|
|
11326
11330
|
}, [b]), j = Ie(function() {
|
|
11327
11331
|
return typeof c == "function" ? c : Qs;
|
|
11328
|
-
}, [c]), M = xt(null), V = xt(null), W =
|
|
11332
|
+
}, [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
11333
|
!N.current && B && setTimeout(function() {
|
|
11330
11334
|
if (V.current) {
|
|
11331
11335
|
var T = V.current.files;
|
|
@@ -11398,15 +11402,15 @@ function El() {
|
|
|
11398
11402
|
}, [M, d, H]), U = je(function(E, T) {
|
|
11399
11403
|
var q = [], ie = [];
|
|
11400
11404
|
E.forEach(function(le) {
|
|
11401
|
-
var ze =
|
|
11405
|
+
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
11406
|
if (tt && Ur && !Wr)
|
|
11403
11407
|
q.push(le);
|
|
11404
11408
|
else {
|
|
11405
11409
|
var yr = [Br, gr];
|
|
11406
11410
|
Wr && (yr = yr.concat(Wr)), ie.push({
|
|
11407
11411
|
file: le,
|
|
11408
|
-
errors: yr.filter(function(
|
|
11409
|
-
return
|
|
11412
|
+
errors: yr.filter(function(Ol) {
|
|
11413
|
+
return Ol;
|
|
11410
11414
|
})
|
|
11411
11415
|
});
|
|
11412
11416
|
}
|
|
@@ -11569,7 +11573,7 @@ const mm = ({
|
|
|
11569
11573
|
file: e,
|
|
11570
11574
|
onRemove: t
|
|
11571
11575
|
}) => {
|
|
11572
|
-
const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ D(
|
|
11576
|
+
const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ D(fl, {}) : e.file.type.includes("pdf") ? /* @__PURE__ */ D(Zn, {}) : /* @__PURE__ */ D(Zn, {}), n = () => {
|
|
11573
11577
|
switch (e.status) {
|
|
11574
11578
|
case "success":
|
|
11575
11579
|
return /* @__PURE__ */ D(gf, { color: "success" });
|
|
@@ -11584,7 +11588,7 @@ const mm = ({
|
|
|
11584
11588
|
return parseFloat((a / Math.pow(s, l)).toFixed(2)) + " " + o[l];
|
|
11585
11589
|
};
|
|
11586
11590
|
return /* @__PURE__ */ ke(
|
|
11587
|
-
|
|
11591
|
+
so,
|
|
11588
11592
|
{
|
|
11589
11593
|
sx: {
|
|
11590
11594
|
p: 2,
|
|
@@ -11595,11 +11599,11 @@ const mm = ({
|
|
|
11595
11599
|
border: "1px solid #e0e0e0"
|
|
11596
11600
|
},
|
|
11597
11601
|
children: [
|
|
11598
|
-
/* @__PURE__ */ ke(
|
|
11602
|
+
/* @__PURE__ */ ke(xe, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
11599
11603
|
r(),
|
|
11600
11604
|
n()
|
|
11601
11605
|
] }),
|
|
11602
|
-
/* @__PURE__ */ ke(
|
|
11606
|
+
/* @__PURE__ */ ke(xe, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
11603
11607
|
/* @__PURE__ */ D(Ve, { variant: "body2", noWrap: !0, children: e.file.name }),
|
|
11604
11608
|
/* @__PURE__ */ ke(Ve, { variant: "caption", color: "textSecondary", children: [
|
|
11605
11609
|
i(e.file.size),
|
|
@@ -11689,13 +11693,13 @@ const mm = ({
|
|
|
11689
11693
|
b([]), g(!0);
|
|
11690
11694
|
const k = o.filter((j) => j.status !== "error");
|
|
11691
11695
|
n == null || n(k);
|
|
11692
|
-
}, [o, n, e.required, e.title]), { getRootProps: z, getInputProps: H, isDragActive: te } =
|
|
11696
|
+
}, [o, n, e.required, e.title]), { getRootProps: z, getInputProps: H, isDragActive: te } = kl({
|
|
11693
11697
|
onDrop: A,
|
|
11694
11698
|
multiple: e.multiple,
|
|
11695
11699
|
disabled: i,
|
|
11696
11700
|
noClick: !1,
|
|
11697
11701
|
noKeyboard: !1
|
|
11698
|
-
}), K = (k) => k.startsWith("image/") ? /* @__PURE__ */ D(
|
|
11702
|
+
}), 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
11703
|
wt(() => {
|
|
11700
11704
|
if (!f) return;
|
|
11701
11705
|
const k = [], j = [...c, ...k];
|
|
@@ -11714,14 +11718,14 @@ const mm = ({
|
|
|
11714
11718
|
return "flex-end";
|
|
11715
11719
|
}
|
|
11716
11720
|
};
|
|
11717
|
-
return /* @__PURE__ */ ke(
|
|
11721
|
+
return /* @__PURE__ */ ke(xe, { className: a, style: s, children: [
|
|
11718
11722
|
/* @__PURE__ */ ke(Ve, { variant: "h6", gutterBottom: !0, children: [
|
|
11719
11723
|
e.title,
|
|
11720
11724
|
e.required && /* @__PURE__ */ D("span", { style: { color: "red" }, children: " *" })
|
|
11721
11725
|
] }),
|
|
11722
11726
|
e.description && /* @__PURE__ */ D(Ve, { variant: "body2", color: "textSecondary", gutterBottom: !0, children: e.description }),
|
|
11723
11727
|
/* @__PURE__ */ io(
|
|
11724
|
-
|
|
11728
|
+
so,
|
|
11725
11729
|
{
|
|
11726
11730
|
...z(),
|
|
11727
11731
|
key: `dropzone-${o.length}`,
|
|
@@ -11757,7 +11761,7 @@ const mm = ({
|
|
|
11757
11761
|
}
|
|
11758
11762
|
)
|
|
11759
11763
|
] }),
|
|
11760
|
-
/* @__PURE__ */ ke(
|
|
11764
|
+
/* @__PURE__ */ ke(xe, { sx: { mt: 2 }, children: [
|
|
11761
11765
|
/* @__PURE__ */ D(
|
|
11762
11766
|
zn,
|
|
11763
11767
|
{
|
|
@@ -11779,7 +11783,7 @@ const mm = ({
|
|
|
11779
11783
|
] })
|
|
11780
11784
|
),
|
|
11781
11785
|
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(
|
|
11786
|
+
o.length > 0 && /* @__PURE__ */ ke(xe, { sx: { mt: 2 }, children: [
|
|
11783
11787
|
/* @__PURE__ */ ke(Ve, { variant: "subtitle1", gutterBottom: !0, children: [
|
|
11784
11788
|
"Selected Files (",
|
|
11785
11789
|
o.length,
|
|
@@ -11795,7 +11799,7 @@ const mm = ({
|
|
|
11795
11799
|
))
|
|
11796
11800
|
] }),
|
|
11797
11801
|
e.helperText && /* @__PURE__ */ D(Ve, { variant: "caption", color: "textSecondary", sx: { mt: 1, display: "block" }, children: e.helperText }),
|
|
11798
|
-
e.submitButton && /* @__PURE__ */ D(
|
|
11802
|
+
e.submitButton && /* @__PURE__ */ D(xe, { sx: {
|
|
11799
11803
|
mt: 3,
|
|
11800
11804
|
display: "flex",
|
|
11801
11805
|
justifyContent: F()
|
|
@@ -11821,7 +11825,7 @@ export {
|
|
|
11821
11825
|
sf as StepNavigation,
|
|
11822
11826
|
Kc as fetchApiData,
|
|
11823
11827
|
Au as generateSchema,
|
|
11824
|
-
|
|
11828
|
+
Do as getApiConfig,
|
|
11825
11829
|
xr as hasApiConfig,
|
|
11826
11830
|
wm as shouldShowField,
|
|
11827
11831
|
Qc as useApiData
|