codeforlife 2.11.4 → 2.11.6
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/Countdown-CL7dyZrl.cjs +2 -0
- package/dist/{Countdown-BtUbr1J_.cjs.map → Countdown-CL7dyZrl.cjs.map} +1 -1
- package/dist/Countdown-snRYiLrs.js +28 -0
- package/dist/{Countdown-DhjAmB0u.js.map → Countdown-snRYiLrs.js.map} +1 -1
- package/dist/Image-B_6DmnVe.cjs +2 -0
- package/dist/{Image-CgRVUblT.cjs.map → Image-B_6DmnVe.cjs.map} +1 -1
- package/dist/{Image-DTOu0h-V.js → Image-mkNhOo5p.js} +3 -3
- package/dist/{Image-DTOu0h-V.js.map → Image-mkNhOo5p.js.map} +1 -1
- package/dist/LinkButton-BQMG96aQ.cjs +2 -0
- package/dist/{LinkButton-Kw2brLTK.cjs.map → LinkButton-BQMG96aQ.cjs.map} +1 -1
- package/dist/LinkButton-CRDs950E.js +12 -0
- package/dist/{LinkButton-sQ5jgHnX.js.map → LinkButton-CRDs950E.js.map} +1 -1
- package/dist/Navigate-Ch0ljYa-.cjs +2 -0
- package/dist/{Navigate-CrMwdIBB.cjs.map → Navigate-Ch0ljYa-.cjs.map} +1 -1
- package/dist/Navigate-Zt9DRJve.js +25 -0
- package/dist/{Navigate-ClPcw87e.js.map → Navigate-Zt9DRJve.js.map} +1 -1
- package/dist/api/endpoints/index.cjs.js +1 -1
- package/dist/api/endpoints/index.cjs.js.map +1 -1
- package/dist/api/endpoints/index.es.js +29 -28
- package/dist/api/endpoints/index.es.js.map +1 -1
- package/dist/api/index.cjs.js +1 -3
- package/dist/api/index.cjs.js.map +1 -1
- package/dist/api/index.es.js +33 -515
- package/dist/api/index.es.js.map +1 -1
- package/dist/api-DIgp_6Vr.cjs +2 -0
- package/dist/{api-9cnyvZj7.cjs.map → api-DIgp_6Vr.cjs.map} +1 -1
- package/dist/api-G8CV5bUa.cjs +2 -0
- package/dist/{api-CAH3GT1O.cjs.map → api-G8CV5bUa.cjs.map} +1 -1
- package/dist/{api-BFYu8ZvQ.js → api-uh8UKwsU.js} +25 -25
- package/dist/{api-BFYu8ZvQ.js.map → api-uh8UKwsU.js.map} +1 -1
- package/dist/auth-B6anBtxF.js +238 -0
- package/dist/{auth-Bb8WkZGN.js.map → auth-B6anBtxF.js.map} +1 -1
- package/dist/auth-C2OUeLmQ.cjs +2 -0
- package/dist/{auth-BwpsrTko.cjs.map → auth-C2OUeLmQ.cjs.map} +1 -1
- package/dist/components/form/index.cjs.js +1 -1
- package/dist/components/form/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.cjs.js.map +1 -1
- package/dist/components/index.es.js +118 -118
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/page/index.cjs.js +1 -1
- package/dist/components/page/index.es.js +1 -1
- package/dist/components/router/index.cjs.js +1 -1
- package/dist/components/router/index.es.js +2 -2
- package/dist/components/table/index.cjs.js +1 -1
- package/dist/components/table/index.es.js +1 -1
- package/dist/features/index.cjs.js +1 -1
- package/dist/features/index.cjs.js.map +1 -1
- package/dist/features/index.es.js +24 -22
- package/dist/features/index.es.js.map +1 -1
- package/dist/general-BPbbmkeX.cjs +2 -0
- package/dist/{general-Bo6JGvKB.cjs.map → general-BPbbmkeX.cjs.map} +1 -1
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/index-B3QkMBQe.cjs +2 -0
- package/dist/{index-5C9hpxRF.cjs.map → index-B3QkMBQe.cjs.map} +1 -1
- package/dist/index-BIL7PoEV.js +622 -0
- package/dist/index-BIL7PoEV.js.map +1 -0
- package/dist/index-C08WO83n.js +237 -0
- package/dist/{index-hdS8RgRc.js.map → index-C08WO83n.js.map} +1 -1
- package/dist/{index-CHboZsxD.js → index-CDxf6gMv.js} +92 -92
- package/dist/{index-CHboZsxD.js.map → index-CDxf6gMv.js.map} +1 -1
- package/dist/index-D2B9uIE4.cjs +2 -0
- package/dist/{index-B89FjK7v.cjs.map → index-D2B9uIE4.cjs.map} +1 -1
- package/dist/index-Dadidnct.cjs +2 -0
- package/dist/index-Dadidnct.cjs.map +1 -0
- package/dist/index-IXGAdLKG.js +30 -0
- package/dist/{index-B3e_XaVG.js.map → index-IXGAdLKG.js.map} +1 -1
- package/dist/index-JY2Et3RQ.cjs +2 -0
- package/dist/{index-CwC9mpb3.cjs.map → index-JY2Et3RQ.cjs.map} +1 -1
- package/dist/{schemas-BMQZbhti.js → schemas-UIk-meAN.js} +2 -2
- package/dist/{schemas-BMQZbhti.js.map → schemas-UIk-meAN.js.map} +1 -1
- package/dist/schemas-hIW9-H6-.cjs +2 -0
- package/dist/{schemas-DXX4rh8i.cjs.map → schemas-hIW9-H6-.cjs.map} +1 -1
- package/dist/server/App.cjs.js +1 -1
- package/dist/server/App.cjs.js.map +1 -1
- package/dist/server/App.es.js +11 -11
- package/dist/server/App.es.js.map +1 -1
- package/dist/server/entry.cjs.js +1 -208
- package/dist/server/entry.cjs.js.map +1 -1
- package/dist/server/entry.d.ts +1 -1
- package/dist/server/entry.es.js +32 -21871
- package/dist/server/entry.es.js.map +1 -1
- package/dist/{session-D312kYKk.js → session-COyN01K0.js} +11 -10
- package/dist/{session-D312kYKk.js.map → session-COyN01K0.js.map} +1 -1
- package/dist/session-eOp0H-EC.cjs +2 -0
- package/dist/{session-CacrgFSv.cjs.map → session-eOp0H-EC.cjs.map} +1 -1
- package/dist/theme/components/index.cjs.js +1 -1
- package/dist/theme/components/index.es.js +1 -1
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.cjs.js.map +1 -1
- package/dist/theme/index.es.js +49 -49
- package/dist/theme/index.es.js.map +1 -1
- package/dist/{urls-CGZI0f1w.cjs → urls-2gheISSO.cjs} +2 -2
- package/dist/{urls-CGZI0f1w.cjs.map → urls-2gheISSO.cjs.map} +1 -1
- package/dist/{urls-DP4a8kxP.js → urls-BG788CnL.js} +2 -2
- package/dist/{urls-DP4a8kxP.js.map → urls-BG788CnL.js.map} +1 -1
- package/dist/utils/api.cjs.js +1 -1
- package/dist/utils/api.es.js +2 -2
- package/dist/utils/router.cjs.js +1 -1
- package/dist/utils/router.cjs.js.map +1 -1
- package/dist/utils/router.es.js +2 -2
- package/dist/utils/store.cjs.js +1 -1
- package/dist/utils/store.cjs.js.map +1 -1
- package/dist/utils/store.es.js +6 -6
- package/dist/utils/test.cjs.js +1 -1
- package/dist/utils/test.cjs.js.map +1 -1
- package/dist/utils/test.es.js +9 -9
- package/dist/utils/test.es.js.map +1 -1
- package/dist/utils/theme.cjs.js +1 -1
- package/dist/utils/theme.es.js +2 -2
- package/package.json +1 -1
- package/dist/Countdown-BtUbr1J_.cjs +0 -2
- package/dist/Countdown-DhjAmB0u.js +0 -28
- package/dist/Image-CgRVUblT.cjs +0 -2
- package/dist/LinkButton-Kw2brLTK.cjs +0 -2
- package/dist/LinkButton-sQ5jgHnX.js +0 -12
- package/dist/Navigate-ClPcw87e.js +0 -25
- package/dist/Navigate-CrMwdIBB.cjs +0 -2
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -2
- package/dist/_commonjsHelpers-DKOUU3wS.cjs.map +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/api-9cnyvZj7.cjs +0 -2
- package/dist/api-CAH3GT1O.cjs +0 -2
- package/dist/auth-Bb8WkZGN.js +0 -237
- package/dist/auth-BwpsrTko.cjs +0 -2
- package/dist/client-BK9NlSVR.js +0 -25208
- package/dist/client-BK9NlSVR.js.map +0 -1
- package/dist/client-CmAMc2Wj.cjs +0 -251
- package/dist/client-CmAMc2Wj.cjs.map +0 -1
- package/dist/en-gb-B_rK7Jx1.js +0 -20
- package/dist/en-gb-B_rK7Jx1.js.map +0 -1
- package/dist/en-gb-CpyEkKq3.cjs +0 -2
- package/dist/en-gb-CpyEkKq3.cjs.map +0 -1
- package/dist/general-Bo6JGvKB.cjs +0 -2
- package/dist/index-5C9hpxRF.cjs +0 -2
- package/dist/index-B3e_XaVG.js +0 -30
- package/dist/index-B89FjK7v.cjs +0 -2
- package/dist/index-BRHFlEjS.js +0 -1187
- package/dist/index-BRHFlEjS.js.map +0 -1
- package/dist/index-CwC9mpb3.cjs +0 -2
- package/dist/index-DuArGzQE.cjs +0 -5
- package/dist/index-DuArGzQE.cjs.map +0 -1
- package/dist/index-hdS8RgRc.js +0 -237
- package/dist/jsx-runtime-B2pbW5Fp.cjs +0 -23
- package/dist/jsx-runtime-B2pbW5Fp.cjs.map +0 -1
- package/dist/jsx-runtime-lzYHhGH3.js +0 -285
- package/dist/jsx-runtime-lzYHhGH3.js.map +0 -1
- package/dist/rtk-query.modern-CjetfYPg.js +0 -3038
- package/dist/rtk-query.modern-CjetfYPg.js.map +0 -1
- package/dist/rtk-query.modern-PBCErCqb.cjs +0 -15
- package/dist/rtk-query.modern-PBCErCqb.cjs.map +0 -1
- package/dist/schemas-DXX4rh8i.cjs +0 -2
- package/dist/session-CacrgFSv.cjs +0 -2
package/dist/index-BRHFlEjS.js
DELETED
|
@@ -1,1187 +0,0 @@
|
|
|
1
|
-
import { j as d } from "./jsx-runtime-lzYHhGH3.js";
|
|
2
|
-
import { CircularProgress as ze, Button as De, Autocomplete as Ae, TextField as fe, FormControl as Ee, FormControlLabel as Be, Checkbox as $e, FormHelperText as we, InputAdornment as me, IconButton as _e } from "@mui/material";
|
|
3
|
-
import { useState as U, useEffect as I, forwardRef as Ue, Children as Ie, useRef as Ve } from "react";
|
|
4
|
-
import { S as He } from "./api-BFYu8ZvQ.js";
|
|
5
|
-
import { u as Ne } from "./api-Cs4Y-WeI.js";
|
|
6
|
-
import { Field as _, Formik as We, Form as qe } from "formik";
|
|
7
|
-
import { string as V, number as Re, bool as Ge, date as Ze, array as Xe } from "yup";
|
|
8
|
-
import { schemaToFieldValidator as H, submitForm as Qe } from "./utils/form.es.js";
|
|
9
|
-
import { getNestedProperty as D, COUNTRY_ISO_CODE_MAPPING as Ke, COUNTRY_ISO_CODES as Je, getKeyPaths as et, UK_COUNTIES as tt } from "./utils/general.es.js";
|
|
10
|
-
import "./en-gb-B_rK7Jx1.js";
|
|
11
|
-
import { LocalizationProvider as rt, DatePicker as nt } from "@mui/x-date-pickers";
|
|
12
|
-
import j from "dayjs";
|
|
13
|
-
import { EmailOutlined as st, PersonOutlined as ot, Visibility as it, VisibilityOff as at } from "@mui/icons-material";
|
|
14
|
-
import "./settings/index.es.js";
|
|
15
|
-
import "./session-oI-Ht2C8.js";
|
|
16
|
-
import "js-cookie";
|
|
17
|
-
import { u as ut } from "./schemas-BMQZbhti.js";
|
|
18
|
-
import "./urls-DP4a8kxP.js";
|
|
19
|
-
import { g as N } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
20
|
-
const ct = ({
|
|
21
|
-
useLazyListQuery: s,
|
|
22
|
-
filterOptions: e,
|
|
23
|
-
getOptionLabel: t,
|
|
24
|
-
getOptionKey: r = (n) => n.id,
|
|
25
|
-
searchKey: a,
|
|
26
|
-
...i
|
|
27
|
-
}) => {
|
|
28
|
-
const [n, o] = U(""), [u, { isLoading: m, isError: c }] = s(), [{ limit: g, offset: y }, x] = Ne(), [{ options: Y, hasMore: M }, h] = U({ options: {}, hasMore: !0 });
|
|
29
|
-
I(
|
|
30
|
-
() => {
|
|
31
|
-
const T = { limit: g, offset: y, ...e };
|
|
32
|
-
n && (T[a] = n), u(T, !0).unwrap().then(({ data: O, offset: C, limit: b, count: w }) => {
|
|
33
|
-
h(({ options: F }) => {
|
|
34
|
-
const v = { ...F };
|
|
35
|
-
return O.forEach((k) => {
|
|
36
|
-
v[r(k)] = k;
|
|
37
|
-
}), { options: v, hasMore: C + b < w };
|
|
38
|
-
});
|
|
39
|
-
}).catch((O) => {
|
|
40
|
-
O && console.error(O);
|
|
41
|
-
});
|
|
42
|
-
},
|
|
43
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
|
-
[
|
|
45
|
-
u,
|
|
46
|
-
g,
|
|
47
|
-
y,
|
|
48
|
-
a,
|
|
49
|
-
n,
|
|
50
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51
|
-
...Object.values(e || {})
|
|
52
|
-
]
|
|
53
|
-
);
|
|
54
|
-
let l = Object.keys(Y);
|
|
55
|
-
if (!l.length) return /* @__PURE__ */ d.jsx(d.Fragment, {});
|
|
56
|
-
typeof r(Object.values(Y)[0]) == "number" && (l = l.map(Number));
|
|
57
|
-
function f() {
|
|
58
|
-
x(({ page: T, limit: O }) => ({ page: T + 1, limit: O }));
|
|
59
|
-
}
|
|
60
|
-
const p = ({ children: T, ...O }, C) => {
|
|
61
|
-
const b = Ie.toArray(T);
|
|
62
|
-
return m ? b.push(/* @__PURE__ */ d.jsx(ze, {}, "is-loading")) : (c && b.push(/* @__PURE__ */ d.jsx(He, {}, "is-error")), M && b.push(
|
|
63
|
-
/* @__PURE__ */ d.jsx(De, { onClick: f, children: "Load more" }, "load-more")
|
|
64
|
-
)), /* @__PURE__ */ d.jsx(
|
|
65
|
-
"ul",
|
|
66
|
-
{
|
|
67
|
-
...O,
|
|
68
|
-
ref: C,
|
|
69
|
-
onScroll: (w) => {
|
|
70
|
-
!m && w.currentTarget.clientHeight + w.currentTarget.scrollTop >= w.currentTarget.scrollHeight && f();
|
|
71
|
-
},
|
|
72
|
-
children: b
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
return /* @__PURE__ */ d.jsx(
|
|
77
|
-
re,
|
|
78
|
-
{
|
|
79
|
-
options: l,
|
|
80
|
-
getOptionLabel: (T) => t(Y[T]),
|
|
81
|
-
onInputChange: (T, O, C) => {
|
|
82
|
-
o(C === "input" ? O : "");
|
|
83
|
-
},
|
|
84
|
-
ListboxComponent: Ue(p),
|
|
85
|
-
...i
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}, re = ({
|
|
89
|
-
textFieldProps: s,
|
|
90
|
-
options: e,
|
|
91
|
-
validateOptions: t,
|
|
92
|
-
...r
|
|
93
|
-
}) => {
|
|
94
|
-
const { id: a, name: i, required: n, ...o } = s, u = i.split("."), m = "not a valid option";
|
|
95
|
-
let c = typeof e[0] == "string" ? V().oneOf(e, m) : Re().oneOf(e, m);
|
|
96
|
-
n && (c = c.required());
|
|
97
|
-
const g = {
|
|
98
|
-
name: i,
|
|
99
|
-
type: typeof e[0] == "string" ? "text" : "number",
|
|
100
|
-
validate: H(c, t)
|
|
101
|
-
};
|
|
102
|
-
return /* @__PURE__ */ d.jsx(_, { ...g, children: ({ form: y, meta: x }) => {
|
|
103
|
-
const Y = D(
|
|
104
|
-
y.values,
|
|
105
|
-
u
|
|
106
|
-
), M = D(y.touched, u), h = D(y.errors, u);
|
|
107
|
-
return /* @__PURE__ */ d.jsx(
|
|
108
|
-
Ae,
|
|
109
|
-
{
|
|
110
|
-
options: e,
|
|
111
|
-
defaultValue: x.initialValue === "" ? void 0 : x.initialValue,
|
|
112
|
-
renderInput: ({
|
|
113
|
-
id: l,
|
|
114
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
115
|
-
...f
|
|
116
|
-
}) => /* @__PURE__ */ d.jsx(
|
|
117
|
-
fe,
|
|
118
|
-
{
|
|
119
|
-
id: a ?? i,
|
|
120
|
-
name: i,
|
|
121
|
-
required: n,
|
|
122
|
-
type: "text",
|
|
123
|
-
value: Y,
|
|
124
|
-
error: M && !!h,
|
|
125
|
-
helperText: M && h,
|
|
126
|
-
...o,
|
|
127
|
-
...f
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
onChange: (l, f) => {
|
|
131
|
-
y.setFieldValue(i, f ?? void 0, !0);
|
|
132
|
-
},
|
|
133
|
-
onBlur: y.handleBlur,
|
|
134
|
-
...r
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
} });
|
|
138
|
-
}, lt = ({
|
|
139
|
-
id: s,
|
|
140
|
-
name: e,
|
|
141
|
-
formControlLabelProps: t,
|
|
142
|
-
required: r = !1,
|
|
143
|
-
errorMessage: a = "this is a required field",
|
|
144
|
-
validateOptions: i,
|
|
145
|
-
...n
|
|
146
|
-
}) => {
|
|
147
|
-
const o = e.split(".");
|
|
148
|
-
let u = Ge();
|
|
149
|
-
r && (u = u.oneOf([!0], a));
|
|
150
|
-
const m = {
|
|
151
|
-
name: e,
|
|
152
|
-
type: "checkbox",
|
|
153
|
-
validate: H(u, i)
|
|
154
|
-
};
|
|
155
|
-
return /* @__PURE__ */ d.jsx(_, { ...m, children: ({ form: c, meta: g }) => {
|
|
156
|
-
const y = D(c.touched, o), x = D(c.errors, o), Y = D(
|
|
157
|
-
c.values,
|
|
158
|
-
o
|
|
159
|
-
), M = y && !!x;
|
|
160
|
-
return /* @__PURE__ */ d.jsxs(Ee, { error: M, required: r, children: [
|
|
161
|
-
/* @__PURE__ */ d.jsx(
|
|
162
|
-
Be,
|
|
163
|
-
{
|
|
164
|
-
control: /* @__PURE__ */ d.jsx(
|
|
165
|
-
$e,
|
|
166
|
-
{
|
|
167
|
-
defaultChecked: g.initialValue,
|
|
168
|
-
id: s ?? e,
|
|
169
|
-
name: e,
|
|
170
|
-
value: Y,
|
|
171
|
-
onChange: c.handleChange,
|
|
172
|
-
onBlur: c.handleBlur,
|
|
173
|
-
...n
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
...t
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
M && /* @__PURE__ */ d.jsx(we, { children: x })
|
|
180
|
-
] });
|
|
181
|
-
} });
|
|
182
|
-
}, dt = ({
|
|
183
|
-
textFieldProps: s,
|
|
184
|
-
...e
|
|
185
|
-
}) => {
|
|
186
|
-
const {
|
|
187
|
-
name: t = "country",
|
|
188
|
-
label: r = "Country",
|
|
189
|
-
placeholder: a = "Select your country",
|
|
190
|
-
...i
|
|
191
|
-
} = s || {};
|
|
192
|
-
return /* @__PURE__ */ d.jsx(
|
|
193
|
-
re,
|
|
194
|
-
{
|
|
195
|
-
options: Je,
|
|
196
|
-
getOptionLabel: (n) => Ke[n],
|
|
197
|
-
textFieldProps: { name: t, label: r, placeholder: a, ...i },
|
|
198
|
-
...e
|
|
199
|
-
}
|
|
200
|
-
);
|
|
201
|
-
};
|
|
202
|
-
function he() {
|
|
203
|
-
return he = Object.assign ? Object.assign.bind() : function(s) {
|
|
204
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
205
|
-
var t = arguments[e];
|
|
206
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (s[r] = t[r]);
|
|
207
|
-
}
|
|
208
|
-
return s;
|
|
209
|
-
}, he.apply(null, arguments);
|
|
210
|
-
}
|
|
211
|
-
var Q = { exports: {} }, ht = Q.exports, ye;
|
|
212
|
-
function ft() {
|
|
213
|
-
return ye || (ye = 1, (function(s, e) {
|
|
214
|
-
(function(t, r) {
|
|
215
|
-
s.exports = r();
|
|
216
|
-
})(ht, (function() {
|
|
217
|
-
var t = "week", r = "year";
|
|
218
|
-
return function(a, i, n) {
|
|
219
|
-
var o = i.prototype;
|
|
220
|
-
o.week = function(u) {
|
|
221
|
-
if (u === void 0 && (u = null), u !== null) return this.add(7 * (u - this.week()), "day");
|
|
222
|
-
var m = this.$locale().yearStart || 1;
|
|
223
|
-
if (this.month() === 11 && this.date() > 25) {
|
|
224
|
-
var c = n(this).startOf(r).add(1, r).date(m), g = n(this).endOf(t);
|
|
225
|
-
if (c.isBefore(g)) return 1;
|
|
226
|
-
}
|
|
227
|
-
var y = n(this).startOf(r).date(m).startOf(t).subtract(1, "millisecond"), x = this.diff(y, t, !0);
|
|
228
|
-
return x < 0 ? n(this).startOf("week").week() : Math.ceil(x);
|
|
229
|
-
}, o.weeks = function(u) {
|
|
230
|
-
return u === void 0 && (u = null), this.week(u);
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
}));
|
|
234
|
-
})(Q)), Q.exports;
|
|
235
|
-
}
|
|
236
|
-
var mt = ft();
|
|
237
|
-
const pt = /* @__PURE__ */ N(mt);
|
|
238
|
-
var K = { exports: {} }, gt = K.exports, xe;
|
|
239
|
-
function yt() {
|
|
240
|
-
return xe || (xe = 1, (function(s, e) {
|
|
241
|
-
(function(t, r) {
|
|
242
|
-
s.exports = r();
|
|
243
|
-
})(gt, (function() {
|
|
244
|
-
var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, i = /\d\d/, n = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, u = {}, m = function(h) {
|
|
245
|
-
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
246
|
-
}, c = function(h) {
|
|
247
|
-
return function(l) {
|
|
248
|
-
this[h] = +l;
|
|
249
|
-
};
|
|
250
|
-
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
|
251
|
-
(this.zone || (this.zone = {})).offset = (function(l) {
|
|
252
|
-
if (!l || l === "Z") return 0;
|
|
253
|
-
var f = l.match(/([+-]|\d\d)/g), p = 60 * f[1] + (+f[2] || 0);
|
|
254
|
-
return p === 0 ? 0 : f[0] === "+" ? -p : p;
|
|
255
|
-
})(h);
|
|
256
|
-
}], y = function(h) {
|
|
257
|
-
var l = u[h];
|
|
258
|
-
return l && (l.indexOf ? l : l.s.concat(l.f));
|
|
259
|
-
}, x = function(h, l) {
|
|
260
|
-
var f, p = u.meridiem;
|
|
261
|
-
if (p) {
|
|
262
|
-
for (var T = 1; T <= 24; T += 1) if (h.indexOf(p(T, 0, l)) > -1) {
|
|
263
|
-
f = T > 12;
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
} else f = h === (l ? "pm" : "PM");
|
|
267
|
-
return f;
|
|
268
|
-
}, Y = { A: [o, function(h) {
|
|
269
|
-
this.afternoon = x(h, !1);
|
|
270
|
-
}], a: [o, function(h) {
|
|
271
|
-
this.afternoon = x(h, !0);
|
|
272
|
-
}], Q: [a, function(h) {
|
|
273
|
-
this.month = 3 * (h - 1) + 1;
|
|
274
|
-
}], S: [a, function(h) {
|
|
275
|
-
this.milliseconds = 100 * +h;
|
|
276
|
-
}], SS: [i, function(h) {
|
|
277
|
-
this.milliseconds = 10 * +h;
|
|
278
|
-
}], SSS: [/\d{3}/, function(h) {
|
|
279
|
-
this.milliseconds = +h;
|
|
280
|
-
}], s: [n, c("seconds")], ss: [n, c("seconds")], m: [n, c("minutes")], mm: [n, c("minutes")], H: [n, c("hours")], h: [n, c("hours")], HH: [n, c("hours")], hh: [n, c("hours")], D: [n, c("day")], DD: [i, c("day")], Do: [o, function(h) {
|
|
281
|
-
var l = u.ordinal, f = h.match(/\d+/);
|
|
282
|
-
if (this.day = f[0], l) for (var p = 1; p <= 31; p += 1) l(p).replace(/\[|\]/g, "") === h && (this.day = p);
|
|
283
|
-
}], w: [n, c("week")], ww: [i, c("week")], M: [n, c("month")], MM: [i, c("month")], MMM: [o, function(h) {
|
|
284
|
-
var l = y("months"), f = (y("monthsShort") || l.map((function(p) {
|
|
285
|
-
return p.slice(0, 3);
|
|
286
|
-
}))).indexOf(h) + 1;
|
|
287
|
-
if (f < 1) throw new Error();
|
|
288
|
-
this.month = f % 12 || f;
|
|
289
|
-
}], MMMM: [o, function(h) {
|
|
290
|
-
var l = y("months").indexOf(h) + 1;
|
|
291
|
-
if (l < 1) throw new Error();
|
|
292
|
-
this.month = l % 12 || l;
|
|
293
|
-
}], Y: [/[+-]?\d+/, c("year")], YY: [i, function(h) {
|
|
294
|
-
this.year = m(h);
|
|
295
|
-
}], YYYY: [/\d{4}/, c("year")], Z: g, ZZ: g };
|
|
296
|
-
function M(h) {
|
|
297
|
-
var l, f;
|
|
298
|
-
l = h, f = u && u.formats;
|
|
299
|
-
for (var p = (h = l.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, k, P) {
|
|
300
|
-
var S = P && P.toUpperCase();
|
|
301
|
-
return k || f[P] || t[P] || f[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(z, A, E) {
|
|
302
|
-
return A || E.slice(1);
|
|
303
|
-
}));
|
|
304
|
-
}))).match(r), T = p.length, O = 0; O < T; O += 1) {
|
|
305
|
-
var C = p[O], b = Y[C], w = b && b[0], F = b && b[1];
|
|
306
|
-
p[O] = F ? { regex: w, parser: F } : C.replace(/^\[|\]$/g, "");
|
|
307
|
-
}
|
|
308
|
-
return function(v) {
|
|
309
|
-
for (var k = {}, P = 0, S = 0; P < T; P += 1) {
|
|
310
|
-
var z = p[P];
|
|
311
|
-
if (typeof z == "string") S += z.length;
|
|
312
|
-
else {
|
|
313
|
-
var A = z.regex, E = z.parser, q = v.slice(S), $ = A.exec(q)[0];
|
|
314
|
-
E.call(k, $), v = v.replace($, "");
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return (function(B) {
|
|
318
|
-
var R = B.afternoon;
|
|
319
|
-
if (R !== void 0) {
|
|
320
|
-
var L = B.hours;
|
|
321
|
-
R ? L < 12 && (B.hours += 12) : L === 12 && (B.hours = 0), delete B.afternoon;
|
|
322
|
-
}
|
|
323
|
-
})(k), k;
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
return function(h, l, f) {
|
|
327
|
-
f.p.customParseFormat = !0, h && h.parseTwoDigitYear && (m = h.parseTwoDigitYear);
|
|
328
|
-
var p = l.prototype, T = p.parse;
|
|
329
|
-
p.parse = function(O) {
|
|
330
|
-
var C = O.date, b = O.utc, w = O.args;
|
|
331
|
-
this.$u = b;
|
|
332
|
-
var F = w[1];
|
|
333
|
-
if (typeof F == "string") {
|
|
334
|
-
var v = w[2] === !0, k = w[3] === !0, P = v || k, S = w[2];
|
|
335
|
-
k && (S = w[2]), u = this.$locale(), !v && S && (u = f.Ls[S]), this.$d = (function(q, $, B, R) {
|
|
336
|
-
try {
|
|
337
|
-
if (["x", "X"].indexOf($) > -1) return new Date(($ === "X" ? 1e3 : 1) * q);
|
|
338
|
-
var L = M($)(q), ne = L.year, G = L.month, Fe = L.day, ke = L.hours, Se = L.minutes, ve = L.seconds, Pe = L.milliseconds, pe = L.zone, ge = L.week, se = /* @__PURE__ */ new Date(), oe = Fe || (ne || G ? 1 : se.getDate()), ie = ne || se.getFullYear(), Z = 0;
|
|
339
|
-
ne && !G || (Z = G > 0 ? G - 1 : se.getMonth());
|
|
340
|
-
var X, ae = ke || 0, ue = Se || 0, ce = ve || 0, le = Pe || 0;
|
|
341
|
-
return pe ? new Date(Date.UTC(ie, Z, oe, ae, ue, ce, le + 60 * pe.offset * 1e3)) : B ? new Date(Date.UTC(ie, Z, oe, ae, ue, ce, le)) : (X = new Date(ie, Z, oe, ae, ue, ce, le), ge && (X = R(X).week(ge).toDate()), X);
|
|
342
|
-
} catch {
|
|
343
|
-
return /* @__PURE__ */ new Date("");
|
|
344
|
-
}
|
|
345
|
-
})(C, F, b, f), this.init(), S && S !== !0 && (this.$L = this.locale(S).$L), P && C != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), u = {};
|
|
346
|
-
} else if (F instanceof Array) for (var z = F.length, A = 1; A <= z; A += 1) {
|
|
347
|
-
w[1] = F[A - 1];
|
|
348
|
-
var E = f.apply(this, w);
|
|
349
|
-
if (E.isValid()) {
|
|
350
|
-
this.$d = E.$d, this.$L = E.$L, this.init();
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
A === z && (this.$d = /* @__PURE__ */ new Date(""));
|
|
354
|
-
}
|
|
355
|
-
else T.call(this, O);
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
}));
|
|
359
|
-
})(K)), K.exports;
|
|
360
|
-
}
|
|
361
|
-
var xt = yt();
|
|
362
|
-
const Tt = /* @__PURE__ */ N(xt);
|
|
363
|
-
var J = { exports: {} }, Mt = J.exports, Te;
|
|
364
|
-
function Ot() {
|
|
365
|
-
return Te || (Te = 1, (function(s, e) {
|
|
366
|
-
(function(t, r) {
|
|
367
|
-
s.exports = r();
|
|
368
|
-
})(Mt, (function() {
|
|
369
|
-
var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
370
|
-
return function(r, a, i) {
|
|
371
|
-
var n = a.prototype, o = n.format;
|
|
372
|
-
i.en.formats = t, n.format = function(u) {
|
|
373
|
-
u === void 0 && (u = "YYYY-MM-DDTHH:mm:ssZ");
|
|
374
|
-
var m = this.$locale().formats, c = (function(g, y) {
|
|
375
|
-
return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(x, Y, M) {
|
|
376
|
-
var h = M && M.toUpperCase();
|
|
377
|
-
return Y || y[M] || t[M] || y[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(l, f, p) {
|
|
378
|
-
return f || p.slice(1);
|
|
379
|
-
}));
|
|
380
|
-
}));
|
|
381
|
-
})(u, m === void 0 ? {} : m);
|
|
382
|
-
return o.call(this, c);
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
}));
|
|
386
|
-
})(J)), J.exports;
|
|
387
|
-
}
|
|
388
|
-
var Yt = Ot();
|
|
389
|
-
const jt = /* @__PURE__ */ N(Yt);
|
|
390
|
-
var ee = { exports: {} }, Dt = ee.exports, Me;
|
|
391
|
-
function wt() {
|
|
392
|
-
return Me || (Me = 1, (function(s, e) {
|
|
393
|
-
(function(t, r) {
|
|
394
|
-
s.exports = r();
|
|
395
|
-
})(Dt, (function() {
|
|
396
|
-
return function(t, r, a) {
|
|
397
|
-
r.prototype.isBetween = function(i, n, o, u) {
|
|
398
|
-
var m = a(i), c = a(n), g = (u = u || "()")[0] === "(", y = u[1] === ")";
|
|
399
|
-
return (g ? this.isAfter(m, o) : !this.isBefore(m, o)) && (y ? this.isBefore(c, o) : !this.isAfter(c, o)) || (g ? this.isBefore(m, o) : !this.isAfter(m, o)) && (y ? this.isAfter(c, o) : !this.isBefore(c, o));
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
}));
|
|
403
|
-
})(ee)), ee.exports;
|
|
404
|
-
}
|
|
405
|
-
var bt = wt();
|
|
406
|
-
const Lt = /* @__PURE__ */ N(bt);
|
|
407
|
-
var te = { exports: {} }, Ct = te.exports, Oe;
|
|
408
|
-
function Ft() {
|
|
409
|
-
return Oe || (Oe = 1, (function(s, e) {
|
|
410
|
-
(function(t, r) {
|
|
411
|
-
s.exports = r();
|
|
412
|
-
})(Ct, (function() {
|
|
413
|
-
return function(t, r) {
|
|
414
|
-
var a = r.prototype, i = a.format;
|
|
415
|
-
a.format = function(n) {
|
|
416
|
-
var o = this, u = this.$locale();
|
|
417
|
-
if (!this.isValid()) return i.bind(this)(n);
|
|
418
|
-
var m = this.$utils(), c = (n || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(g) {
|
|
419
|
-
switch (g) {
|
|
420
|
-
case "Q":
|
|
421
|
-
return Math.ceil((o.$M + 1) / 3);
|
|
422
|
-
case "Do":
|
|
423
|
-
return u.ordinal(o.$D);
|
|
424
|
-
case "gggg":
|
|
425
|
-
return o.weekYear();
|
|
426
|
-
case "GGGG":
|
|
427
|
-
return o.isoWeekYear();
|
|
428
|
-
case "wo":
|
|
429
|
-
return u.ordinal(o.week(), "W");
|
|
430
|
-
case "w":
|
|
431
|
-
case "ww":
|
|
432
|
-
return m.s(o.week(), g === "w" ? 1 : 2, "0");
|
|
433
|
-
case "W":
|
|
434
|
-
case "WW":
|
|
435
|
-
return m.s(o.isoWeek(), g === "W" ? 1 : 2, "0");
|
|
436
|
-
case "k":
|
|
437
|
-
case "kk":
|
|
438
|
-
return m.s(String(o.$H === 0 ? 24 : o.$H), g === "k" ? 1 : 2, "0");
|
|
439
|
-
case "X":
|
|
440
|
-
return Math.floor(o.$d.getTime() / 1e3);
|
|
441
|
-
case "x":
|
|
442
|
-
return o.$d.getTime();
|
|
443
|
-
case "z":
|
|
444
|
-
return "[" + o.offsetName() + "]";
|
|
445
|
-
case "zzz":
|
|
446
|
-
return "[" + o.offsetName("long") + "]";
|
|
447
|
-
default:
|
|
448
|
-
return g;
|
|
449
|
-
}
|
|
450
|
-
}));
|
|
451
|
-
return i.bind(this)(c);
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
}));
|
|
455
|
-
})(te)), te.exports;
|
|
456
|
-
}
|
|
457
|
-
var kt = Ft();
|
|
458
|
-
const St = /* @__PURE__ */ N(kt), Ye = /* @__PURE__ */ new Set();
|
|
459
|
-
function vt(s, e = "warning") {
|
|
460
|
-
if (process.env.NODE_ENV === "production")
|
|
461
|
-
return;
|
|
462
|
-
const t = Array.isArray(s) ? s.join(`
|
|
463
|
-
`) : s;
|
|
464
|
-
Ye.has(t) || (Ye.add(t), e === "error" ? console.error(t) : console.warn(t));
|
|
465
|
-
}
|
|
466
|
-
j.extend(jt);
|
|
467
|
-
j.extend(pt);
|
|
468
|
-
j.extend(Lt);
|
|
469
|
-
j.extend(St);
|
|
470
|
-
const Pt = {
|
|
471
|
-
// Year
|
|
472
|
-
YY: "year",
|
|
473
|
-
YYYY: {
|
|
474
|
-
sectionType: "year",
|
|
475
|
-
contentType: "digit",
|
|
476
|
-
maxLength: 4
|
|
477
|
-
},
|
|
478
|
-
// Month
|
|
479
|
-
M: {
|
|
480
|
-
sectionType: "month",
|
|
481
|
-
contentType: "digit",
|
|
482
|
-
maxLength: 2
|
|
483
|
-
},
|
|
484
|
-
MM: "month",
|
|
485
|
-
MMM: {
|
|
486
|
-
sectionType: "month",
|
|
487
|
-
contentType: "letter"
|
|
488
|
-
},
|
|
489
|
-
MMMM: {
|
|
490
|
-
sectionType: "month",
|
|
491
|
-
contentType: "letter"
|
|
492
|
-
},
|
|
493
|
-
// Day of the month
|
|
494
|
-
D: {
|
|
495
|
-
sectionType: "day",
|
|
496
|
-
contentType: "digit",
|
|
497
|
-
maxLength: 2
|
|
498
|
-
},
|
|
499
|
-
DD: "day",
|
|
500
|
-
Do: {
|
|
501
|
-
sectionType: "day",
|
|
502
|
-
contentType: "digit-with-letter"
|
|
503
|
-
},
|
|
504
|
-
// Day of the week
|
|
505
|
-
d: {
|
|
506
|
-
sectionType: "weekDay",
|
|
507
|
-
contentType: "digit",
|
|
508
|
-
maxLength: 2
|
|
509
|
-
},
|
|
510
|
-
dd: {
|
|
511
|
-
sectionType: "weekDay",
|
|
512
|
-
contentType: "letter"
|
|
513
|
-
},
|
|
514
|
-
ddd: {
|
|
515
|
-
sectionType: "weekDay",
|
|
516
|
-
contentType: "letter"
|
|
517
|
-
},
|
|
518
|
-
dddd: {
|
|
519
|
-
sectionType: "weekDay",
|
|
520
|
-
contentType: "letter"
|
|
521
|
-
},
|
|
522
|
-
// Meridiem
|
|
523
|
-
A: "meridiem",
|
|
524
|
-
a: "meridiem",
|
|
525
|
-
// Hours
|
|
526
|
-
H: {
|
|
527
|
-
sectionType: "hours",
|
|
528
|
-
contentType: "digit",
|
|
529
|
-
maxLength: 2
|
|
530
|
-
},
|
|
531
|
-
HH: "hours",
|
|
532
|
-
h: {
|
|
533
|
-
sectionType: "hours",
|
|
534
|
-
contentType: "digit",
|
|
535
|
-
maxLength: 2
|
|
536
|
-
},
|
|
537
|
-
hh: "hours",
|
|
538
|
-
// Minutes
|
|
539
|
-
m: {
|
|
540
|
-
sectionType: "minutes",
|
|
541
|
-
contentType: "digit",
|
|
542
|
-
maxLength: 2
|
|
543
|
-
},
|
|
544
|
-
mm: "minutes",
|
|
545
|
-
// Seconds
|
|
546
|
-
s: {
|
|
547
|
-
sectionType: "seconds",
|
|
548
|
-
contentType: "digit",
|
|
549
|
-
maxLength: 2
|
|
550
|
-
},
|
|
551
|
-
ss: "seconds"
|
|
552
|
-
}, zt = {
|
|
553
|
-
year: "YYYY",
|
|
554
|
-
month: "MMMM",
|
|
555
|
-
monthShort: "MMM",
|
|
556
|
-
dayOfMonth: "D",
|
|
557
|
-
dayOfMonthFull: "Do",
|
|
558
|
-
weekday: "dddd",
|
|
559
|
-
weekdayShort: "dd",
|
|
560
|
-
hours24h: "HH",
|
|
561
|
-
hours12h: "hh",
|
|
562
|
-
meridiem: "A",
|
|
563
|
-
minutes: "mm",
|
|
564
|
-
seconds: "ss",
|
|
565
|
-
fullDate: "ll",
|
|
566
|
-
keyboardDate: "L",
|
|
567
|
-
shortDate: "MMM D",
|
|
568
|
-
normalDate: "D MMMM",
|
|
569
|
-
normalDateWithWeekday: "ddd, MMM D",
|
|
570
|
-
fullTime12h: "hh:mm A",
|
|
571
|
-
fullTime24h: "HH:mm",
|
|
572
|
-
keyboardDateTime12h: "L hh:mm A",
|
|
573
|
-
keyboardDateTime24h: "L HH:mm"
|
|
574
|
-
}, de = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
575
|
-
`), je = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
576
|
-
`);
|
|
577
|
-
class At {
|
|
578
|
-
isMUIAdapter = !0;
|
|
579
|
-
isTimezoneCompatible = !0;
|
|
580
|
-
lib = "dayjs";
|
|
581
|
-
escapedCharacters = {
|
|
582
|
-
start: "[",
|
|
583
|
-
end: "]"
|
|
584
|
-
};
|
|
585
|
-
formatTokenMap = Pt;
|
|
586
|
-
constructor({
|
|
587
|
-
locale: e,
|
|
588
|
-
formats: t
|
|
589
|
-
} = {}) {
|
|
590
|
-
this.locale = e, this.formats = he({}, zt, t), j.extend(Tt);
|
|
591
|
-
}
|
|
592
|
-
setLocaleToValue = (e) => {
|
|
593
|
-
const t = this.getCurrentLocaleCode();
|
|
594
|
-
return t === e.locale() ? e : e.locale(t);
|
|
595
|
-
};
|
|
596
|
-
hasUTCPlugin = () => typeof j.utc < "u";
|
|
597
|
-
hasTimezonePlugin = () => typeof j.tz < "u";
|
|
598
|
-
isSame = (e, t, r) => {
|
|
599
|
-
const a = this.setTimezone(t, this.getTimezone(e));
|
|
600
|
-
return e.format(r) === a.format(r);
|
|
601
|
-
};
|
|
602
|
-
/**
|
|
603
|
-
* Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
|
|
604
|
-
*/
|
|
605
|
-
cleanTimezone = (e) => {
|
|
606
|
-
switch (e) {
|
|
607
|
-
case "default":
|
|
608
|
-
return;
|
|
609
|
-
case "system":
|
|
610
|
-
return j.tz.guess();
|
|
611
|
-
default:
|
|
612
|
-
return e;
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
createSystemDate = (e) => {
|
|
616
|
-
let t;
|
|
617
|
-
if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
|
|
618
|
-
const r = j.tz.guess();
|
|
619
|
-
r === "UTC" ? t = j(e) : t = j.tz(e, r);
|
|
620
|
-
} else
|
|
621
|
-
t = j(e);
|
|
622
|
-
return this.setLocaleToValue(t);
|
|
623
|
-
};
|
|
624
|
-
createUTCDate = (e) => {
|
|
625
|
-
if (!this.hasUTCPlugin())
|
|
626
|
-
throw new Error(de);
|
|
627
|
-
return this.setLocaleToValue(j.utc(e));
|
|
628
|
-
};
|
|
629
|
-
createTZDate = (e, t) => {
|
|
630
|
-
if (!this.hasUTCPlugin())
|
|
631
|
-
throw new Error(de);
|
|
632
|
-
if (!this.hasTimezonePlugin())
|
|
633
|
-
throw new Error(je);
|
|
634
|
-
const r = e !== void 0 && !e.endsWith("Z");
|
|
635
|
-
return this.setLocaleToValue(j(e).tz(this.cleanTimezone(t), r));
|
|
636
|
-
};
|
|
637
|
-
getLocaleFormats = () => {
|
|
638
|
-
const e = j.Ls, t = this.locale || "en";
|
|
639
|
-
let r = e[t];
|
|
640
|
-
return r === void 0 && (process.env.NODE_ENV !== "production" && vt(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), r = e.en), r.formats;
|
|
641
|
-
};
|
|
642
|
-
/**
|
|
643
|
-
* If the new day does not have the same offset as the old one (when switching to summer day time for example),
|
|
644
|
-
* Then dayjs will not automatically adjust the offset (moment does).
|
|
645
|
-
* We have to parse again the value to make sure the `fixOffset` method is applied.
|
|
646
|
-
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
647
|
-
*/
|
|
648
|
-
adjustOffset = (e) => {
|
|
649
|
-
if (!this.hasTimezonePlugin())
|
|
650
|
-
return e;
|
|
651
|
-
const t = this.getTimezone(e);
|
|
652
|
-
if (t !== "UTC") {
|
|
653
|
-
const r = e.tz(this.cleanTimezone(t), !0);
|
|
654
|
-
if (r.$offset === (e.$offset ?? 0))
|
|
655
|
-
return e;
|
|
656
|
-
e.$offset = r.$offset;
|
|
657
|
-
}
|
|
658
|
-
return e;
|
|
659
|
-
};
|
|
660
|
-
date = (e, t = "default") => e === null ? null : t === "UTC" ? this.createUTCDate(e) : t === "system" || t === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, t);
|
|
661
|
-
getInvalidDate = () => j(/* @__PURE__ */ new Date("Invalid date"));
|
|
662
|
-
getTimezone = (e) => {
|
|
663
|
-
if (this.hasTimezonePlugin()) {
|
|
664
|
-
const t = e.$x?.$timezone;
|
|
665
|
-
if (t)
|
|
666
|
-
return t;
|
|
667
|
-
}
|
|
668
|
-
return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
|
|
669
|
-
};
|
|
670
|
-
setTimezone = (e, t) => {
|
|
671
|
-
if (this.getTimezone(e) === t)
|
|
672
|
-
return e;
|
|
673
|
-
if (t === "UTC") {
|
|
674
|
-
if (!this.hasUTCPlugin())
|
|
675
|
-
throw new Error(de);
|
|
676
|
-
return e.utc();
|
|
677
|
-
}
|
|
678
|
-
if (t === "system")
|
|
679
|
-
return e.local();
|
|
680
|
-
if (!this.hasTimezonePlugin()) {
|
|
681
|
-
if (t === "default")
|
|
682
|
-
return e;
|
|
683
|
-
throw new Error(je);
|
|
684
|
-
}
|
|
685
|
-
return this.setLocaleToValue(j.tz(e, this.cleanTimezone(t)));
|
|
686
|
-
};
|
|
687
|
-
toJsDate = (e) => e.toDate();
|
|
688
|
-
parse = (e, t) => e === "" ? null : j(e, t, this.locale, !0);
|
|
689
|
-
getCurrentLocaleCode = () => this.locale || "en";
|
|
690
|
-
is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
|
|
691
|
-
expandFormat = (e) => {
|
|
692
|
-
const t = this.getLocaleFormats(), r = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (i, n, o) => n || o.slice(1));
|
|
693
|
-
return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, i, n) => {
|
|
694
|
-
const o = n && n.toUpperCase();
|
|
695
|
-
return i || t[n] || r(t[o]);
|
|
696
|
-
});
|
|
697
|
-
};
|
|
698
|
-
isValid = (e) => e == null ? !1 : e.isValid();
|
|
699
|
-
format = (e, t) => this.formatByString(e, this.formats[t]);
|
|
700
|
-
formatByString = (e, t) => this.setLocaleToValue(e).format(t);
|
|
701
|
-
formatNumber = (e) => e;
|
|
702
|
-
isEqual = (e, t) => e === null && t === null ? !0 : e === null || t === null ? !1 : e.toDate().getTime() === t.toDate().getTime();
|
|
703
|
-
isSameYear = (e, t) => this.isSame(e, t, "YYYY");
|
|
704
|
-
isSameMonth = (e, t) => this.isSame(e, t, "YYYY-MM");
|
|
705
|
-
isSameDay = (e, t) => this.isSame(e, t, "YYYY-MM-DD");
|
|
706
|
-
isSameHour = (e, t) => e.isSame(t, "hour");
|
|
707
|
-
isAfter = (e, t) => e > t;
|
|
708
|
-
isAfterYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() > t.utc() : e.isAfter(t, "year");
|
|
709
|
-
isAfterDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() > t.utc() : e.isAfter(t, "day");
|
|
710
|
-
isBefore = (e, t) => e < t;
|
|
711
|
-
isBeforeYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() < t.utc() : e.isBefore(t, "year");
|
|
712
|
-
isBeforeDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() < t.utc() : e.isBefore(t, "day");
|
|
713
|
-
isWithinRange = (e, [t, r]) => e >= t && e <= r;
|
|
714
|
-
startOfYear = (e) => this.adjustOffset(e.startOf("year"));
|
|
715
|
-
startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
|
|
716
|
-
startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
|
|
717
|
-
startOfDay = (e) => this.adjustOffset(e.startOf("day"));
|
|
718
|
-
endOfYear = (e) => this.adjustOffset(e.endOf("year"));
|
|
719
|
-
endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
|
|
720
|
-
endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
|
|
721
|
-
endOfDay = (e) => this.adjustOffset(e.endOf("day"));
|
|
722
|
-
addYears = (e, t) => this.adjustOffset(e.add(t, "year"));
|
|
723
|
-
addMonths = (e, t) => this.adjustOffset(e.add(t, "month"));
|
|
724
|
-
addWeeks = (e, t) => this.adjustOffset(e.add(t, "week"));
|
|
725
|
-
addDays = (e, t) => this.adjustOffset(e.add(t, "day"));
|
|
726
|
-
addHours = (e, t) => this.adjustOffset(e.add(t, "hour"));
|
|
727
|
-
addMinutes = (e, t) => this.adjustOffset(e.add(t, "minute"));
|
|
728
|
-
addSeconds = (e, t) => this.adjustOffset(e.add(t, "second"));
|
|
729
|
-
getYear = (e) => e.year();
|
|
730
|
-
getMonth = (e) => e.month();
|
|
731
|
-
getDate = (e) => e.date();
|
|
732
|
-
getHours = (e) => e.hour();
|
|
733
|
-
getMinutes = (e) => e.minute();
|
|
734
|
-
getSeconds = (e) => e.second();
|
|
735
|
-
getMilliseconds = (e) => e.millisecond();
|
|
736
|
-
setYear = (e, t) => this.adjustOffset(e.set("year", t));
|
|
737
|
-
setMonth = (e, t) => this.adjustOffset(e.set("month", t));
|
|
738
|
-
setDate = (e, t) => this.adjustOffset(e.set("date", t));
|
|
739
|
-
setHours = (e, t) => this.adjustOffset(e.set("hour", t));
|
|
740
|
-
setMinutes = (e, t) => this.adjustOffset(e.set("minute", t));
|
|
741
|
-
setSeconds = (e, t) => this.adjustOffset(e.set("second", t));
|
|
742
|
-
setMilliseconds = (e, t) => this.adjustOffset(e.set("millisecond", t));
|
|
743
|
-
getDaysInMonth = (e) => e.daysInMonth();
|
|
744
|
-
getWeekArray = (e) => {
|
|
745
|
-
const t = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
|
|
746
|
-
let a = 0, i = t;
|
|
747
|
-
const n = [];
|
|
748
|
-
for (; i < r; ) {
|
|
749
|
-
const o = Math.floor(a / 7);
|
|
750
|
-
n[o] = n[o] || [], n[o].push(i), i = this.addDays(i, 1), a += 1;
|
|
751
|
-
}
|
|
752
|
-
return n;
|
|
753
|
-
};
|
|
754
|
-
getWeekNumber = (e) => e.week();
|
|
755
|
-
getDayOfWeek(e) {
|
|
756
|
-
return e.day() + 1;
|
|
757
|
-
}
|
|
758
|
-
getYearRange = ([e, t]) => {
|
|
759
|
-
const r = this.startOfYear(e), a = this.endOfYear(t), i = [];
|
|
760
|
-
let n = r;
|
|
761
|
-
for (; this.isBefore(n, a); )
|
|
762
|
-
i.push(n), n = this.addYears(n, 1);
|
|
763
|
-
return i;
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
const Et = ({
|
|
767
|
-
name: s,
|
|
768
|
-
required: e,
|
|
769
|
-
minDate: t,
|
|
770
|
-
maxDate: r,
|
|
771
|
-
validateOptions: a,
|
|
772
|
-
...i
|
|
773
|
-
}) => {
|
|
774
|
-
const n = s.split(".");
|
|
775
|
-
function o(c) {
|
|
776
|
-
return c.locale("en-gb").format("L");
|
|
777
|
-
}
|
|
778
|
-
let u = Ze();
|
|
779
|
-
e && (u = u.required()), t && (u = u.min(
|
|
780
|
-
t,
|
|
781
|
-
`this field must be after or equal to ${o(t)}`
|
|
782
|
-
)), r && (u = u.max(
|
|
783
|
-
r,
|
|
784
|
-
`this field must be before or equal to ${o(r)}`
|
|
785
|
-
));
|
|
786
|
-
const m = {
|
|
787
|
-
name: s,
|
|
788
|
-
type: "date",
|
|
789
|
-
validate: H(u, a)
|
|
790
|
-
};
|
|
791
|
-
return /* @__PURE__ */ d.jsx(_, { ...m, children: ({ form: c }) => {
|
|
792
|
-
const g = D(c.errors, n), y = D(c.touched, n);
|
|
793
|
-
let x = D(
|
|
794
|
-
c.values,
|
|
795
|
-
n
|
|
796
|
-
);
|
|
797
|
-
x = x ? j(x) : null;
|
|
798
|
-
function Y(M) {
|
|
799
|
-
c.setFieldValue(
|
|
800
|
-
s,
|
|
801
|
-
M && M.isValid() ? M.format("YYYY-MM-DD") : null,
|
|
802
|
-
!0
|
|
803
|
-
);
|
|
804
|
-
}
|
|
805
|
-
return /* @__PURE__ */ d.jsx(
|
|
806
|
-
rt,
|
|
807
|
-
{
|
|
808
|
-
dateAdapter: At,
|
|
809
|
-
adapterLocale: "en-gb",
|
|
810
|
-
children: /* @__PURE__ */ d.jsx(
|
|
811
|
-
nt,
|
|
812
|
-
{
|
|
813
|
-
name: s,
|
|
814
|
-
value: x,
|
|
815
|
-
minDate: t,
|
|
816
|
-
maxDate: r,
|
|
817
|
-
onChange: Y,
|
|
818
|
-
slotProps: {
|
|
819
|
-
textField: {
|
|
820
|
-
id: s,
|
|
821
|
-
// @ts-expect-error value is compatible
|
|
822
|
-
onChange: (M) => {
|
|
823
|
-
Y(M);
|
|
824
|
-
},
|
|
825
|
-
onBlur: c.handleBlur,
|
|
826
|
-
required: e,
|
|
827
|
-
error: y && !!g,
|
|
828
|
-
helperText: y && g
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
...i
|
|
832
|
-
}
|
|
833
|
-
)
|
|
834
|
-
}
|
|
835
|
-
);
|
|
836
|
-
} });
|
|
837
|
-
}, W = ({
|
|
838
|
-
id: s,
|
|
839
|
-
name: e,
|
|
840
|
-
schema: t,
|
|
841
|
-
type: r = "text",
|
|
842
|
-
required: a = !1,
|
|
843
|
-
dirty: i = !1,
|
|
844
|
-
unique: n = !1,
|
|
845
|
-
uniqueCaseInsensitive: o = !1,
|
|
846
|
-
split: u,
|
|
847
|
-
validateOptions: m,
|
|
848
|
-
...c
|
|
849
|
-
}) => {
|
|
850
|
-
const [g, y] = U(""), x = e.split(".");
|
|
851
|
-
function Y() {
|
|
852
|
-
let l = t;
|
|
853
|
-
if (l = a ? l.required() : l.optional(), i && !u && (l = l.notOneOf(
|
|
854
|
-
[g],
|
|
855
|
-
"cannot be initial value"
|
|
856
|
-
)), !u) return l;
|
|
857
|
-
let f = Xe().of(l);
|
|
858
|
-
return f = a ? f.required().min(1) : f.optional(), (n || o) && (f = f.test({
|
|
859
|
-
message: "cannot have duplicates",
|
|
860
|
-
test: (p) => Array.isArray(p) && p.length >= 2 && p.every((T) => typeof T == "string") ? new Set(
|
|
861
|
-
o ? p.map((T) => T.toLowerCase()) : p
|
|
862
|
-
).size === p.length : !0
|
|
863
|
-
})), i && (f = f.notOneOf(
|
|
864
|
-
[g],
|
|
865
|
-
"cannot be initial value"
|
|
866
|
-
)), f;
|
|
867
|
-
}
|
|
868
|
-
const M = {
|
|
869
|
-
name: e,
|
|
870
|
-
type: r,
|
|
871
|
-
validate: H(Y(), m)
|
|
872
|
-
}, h = ({ form: l }) => {
|
|
873
|
-
const f = D(
|
|
874
|
-
l.initialValues,
|
|
875
|
-
x
|
|
876
|
-
), p = D(
|
|
877
|
-
l.values,
|
|
878
|
-
x
|
|
879
|
-
), T = D(l.errors, x), O = D(l.touched, x);
|
|
880
|
-
return I(() => {
|
|
881
|
-
y(f);
|
|
882
|
-
}, [f]), I(() => {
|
|
883
|
-
l.setFieldValue(
|
|
884
|
-
e,
|
|
885
|
-
u && typeof p == "string" ? p.split(u) : p,
|
|
886
|
-
!0
|
|
887
|
-
);
|
|
888
|
-
}, [p]), /* @__PURE__ */ d.jsx(
|
|
889
|
-
fe,
|
|
890
|
-
{
|
|
891
|
-
id: s ?? e,
|
|
892
|
-
name: e,
|
|
893
|
-
type: r,
|
|
894
|
-
required: a,
|
|
895
|
-
value: p,
|
|
896
|
-
onChange: l.handleChange,
|
|
897
|
-
onBlur: l.handleBlur,
|
|
898
|
-
error: O && !!T,
|
|
899
|
-
helperText: O && T,
|
|
900
|
-
...c
|
|
901
|
-
}
|
|
902
|
-
);
|
|
903
|
-
};
|
|
904
|
-
return /* @__PURE__ */ d.jsx(_, { ...M, children: h });
|
|
905
|
-
}, Bt = ({
|
|
906
|
-
name: s = "email",
|
|
907
|
-
label: e = "Email address",
|
|
908
|
-
placeholder: t = "Enter your email address",
|
|
909
|
-
InputProps: r = {},
|
|
910
|
-
...a
|
|
911
|
-
}) => /* @__PURE__ */ d.jsx(
|
|
912
|
-
W,
|
|
913
|
-
{
|
|
914
|
-
type: "email",
|
|
915
|
-
schema: V().email(),
|
|
916
|
-
name: s,
|
|
917
|
-
label: e,
|
|
918
|
-
placeholder: t,
|
|
919
|
-
InputProps: {
|
|
920
|
-
endAdornment: /* @__PURE__ */ d.jsx(me, { position: "end", children: /* @__PURE__ */ d.jsx(st, {}) }),
|
|
921
|
-
...r
|
|
922
|
-
},
|
|
923
|
-
...a
|
|
924
|
-
}
|
|
925
|
-
), $t = ({
|
|
926
|
-
name: s = "first_name",
|
|
927
|
-
label: e = "First name",
|
|
928
|
-
placeholder: t = "Enter your first name",
|
|
929
|
-
InputProps: r = {},
|
|
930
|
-
...a
|
|
931
|
-
}) => /* @__PURE__ */ d.jsx(
|
|
932
|
-
W,
|
|
933
|
-
{
|
|
934
|
-
schema: ut.first_name,
|
|
935
|
-
name: s,
|
|
936
|
-
label: e,
|
|
937
|
-
placeholder: t,
|
|
938
|
-
InputProps: {
|
|
939
|
-
endAdornment: /* @__PURE__ */ d.jsx(me, { position: "end", children: /* @__PURE__ */ d.jsx(ot, {}) }),
|
|
940
|
-
...r
|
|
941
|
-
},
|
|
942
|
-
...a
|
|
943
|
-
}
|
|
944
|
-
), be = {
|
|
945
|
-
behavior: "smooth",
|
|
946
|
-
block: "start"
|
|
947
|
-
}, _t = ({
|
|
948
|
-
scrollIntoViewOptions: s = be,
|
|
949
|
-
...e
|
|
950
|
-
}) => {
|
|
951
|
-
const t = Ve(null);
|
|
952
|
-
return I(() => {
|
|
953
|
-
t.current && t.current.scrollIntoView(s);
|
|
954
|
-
}, [s]), /* @__PURE__ */ d.jsx(we, { ref: t, error: !0, ...e });
|
|
955
|
-
}, Le = ({
|
|
956
|
-
children: s,
|
|
957
|
-
scrollIntoViewOptions: e = be,
|
|
958
|
-
nonFieldErrorsProps: t,
|
|
959
|
-
fieldRefs: r = [],
|
|
960
|
-
...a
|
|
961
|
-
}) => /* @__PURE__ */ d.jsx(We, { ...a, children: (i) => {
|
|
962
|
-
const n = !!Object.keys(i.errors).length, o = n && typeof i.errors.__all__ == "string";
|
|
963
|
-
if (n && !o && i.isSubmitting && r.length) {
|
|
964
|
-
const u = et(i.errors), m = r.find(({ name: c }) => u.includes(c))?.inputRef.current;
|
|
965
|
-
m && m.scrollIntoView(e);
|
|
966
|
-
}
|
|
967
|
-
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
968
|
-
o && /* @__PURE__ */ d.jsx(_t, { ...t, children: i.errors.__all__ }),
|
|
969
|
-
/* @__PURE__ */ d.jsx(qe, { children: typeof s == "function" ? s(i) : s })
|
|
970
|
-
] });
|
|
971
|
-
} }), Ut = ({
|
|
972
|
-
useMutation: s,
|
|
973
|
-
submitOptions: e,
|
|
974
|
-
...t
|
|
975
|
-
}) => {
|
|
976
|
-
const [r] = s();
|
|
977
|
-
return /* @__PURE__ */ d.jsx(
|
|
978
|
-
Le,
|
|
979
|
-
{
|
|
980
|
-
...t,
|
|
981
|
-
onSubmit: Qe(
|
|
982
|
-
r,
|
|
983
|
-
t.initialValues,
|
|
984
|
-
e
|
|
985
|
-
)
|
|
986
|
-
}
|
|
987
|
-
);
|
|
988
|
-
}, It = (s) => "onSubmit" in s ? /* @__PURE__ */ d.jsx(Le, { ...s }) : Ut(s), Vt = ({
|
|
989
|
-
name: s = "otp",
|
|
990
|
-
label: e = "OTP",
|
|
991
|
-
placeholder: t = "Enter your OTP",
|
|
992
|
-
...r
|
|
993
|
-
}) => /* @__PURE__ */ d.jsx(
|
|
994
|
-
W,
|
|
995
|
-
{
|
|
996
|
-
name: s,
|
|
997
|
-
label: e,
|
|
998
|
-
schema: V().matches(/^[0-9]{6}$/, "Must be exactly 6 digits."),
|
|
999
|
-
placeholder: t,
|
|
1000
|
-
required: !0,
|
|
1001
|
-
...r
|
|
1002
|
-
}
|
|
1003
|
-
), Ht = ({
|
|
1004
|
-
id: s,
|
|
1005
|
-
repeatName: e,
|
|
1006
|
-
setValue: t,
|
|
1007
|
-
fieldProps: r,
|
|
1008
|
-
name: a,
|
|
1009
|
-
label: i,
|
|
1010
|
-
placeholder: n,
|
|
1011
|
-
type: o,
|
|
1012
|
-
...u
|
|
1013
|
-
}) => {
|
|
1014
|
-
const { form: m } = r, c = a.split("."), g = D(m.values, c), y = e.split("."), x = D(
|
|
1015
|
-
m.values,
|
|
1016
|
-
y
|
|
1017
|
-
), Y = D(
|
|
1018
|
-
m.touched,
|
|
1019
|
-
y
|
|
1020
|
-
), M = D(m.errors, y);
|
|
1021
|
-
return I(() => {
|
|
1022
|
-
t(g);
|
|
1023
|
-
}, [t, g]), /* @__PURE__ */ d.jsx(
|
|
1024
|
-
fe,
|
|
1025
|
-
{
|
|
1026
|
-
required: !0,
|
|
1027
|
-
type: o,
|
|
1028
|
-
label: i ?? `Repeat ${a.replace("_", " ")}`,
|
|
1029
|
-
placeholder: n ?? `Enter your ${a.replace("_", " ")} again`,
|
|
1030
|
-
id: s ?? e,
|
|
1031
|
-
name: e,
|
|
1032
|
-
value: x,
|
|
1033
|
-
onChange: m.handleChange,
|
|
1034
|
-
onBlur: m.handleBlur,
|
|
1035
|
-
error: Y && !!M,
|
|
1036
|
-
helperText: Y && M,
|
|
1037
|
-
...u
|
|
1038
|
-
}
|
|
1039
|
-
);
|
|
1040
|
-
}, Ce = ({
|
|
1041
|
-
name: s,
|
|
1042
|
-
type: e = "text",
|
|
1043
|
-
validateOptions: t,
|
|
1044
|
-
...r
|
|
1045
|
-
}) => {
|
|
1046
|
-
const [a, i] = U(""), n = `${s}_repeat`, o = {
|
|
1047
|
-
name: n,
|
|
1048
|
-
type: e,
|
|
1049
|
-
validate: H(
|
|
1050
|
-
V().required().equals([a], "does not match"),
|
|
1051
|
-
t
|
|
1052
|
-
)
|
|
1053
|
-
};
|
|
1054
|
-
return /* @__PURE__ */ d.jsx(_, { ...o, children: (u) => /* @__PURE__ */ d.jsx(
|
|
1055
|
-
Ht,
|
|
1056
|
-
{
|
|
1057
|
-
name: s,
|
|
1058
|
-
type: e,
|
|
1059
|
-
repeatName: n,
|
|
1060
|
-
setValue: i,
|
|
1061
|
-
fieldProps: u,
|
|
1062
|
-
...r
|
|
1063
|
-
}
|
|
1064
|
-
) });
|
|
1065
|
-
}, Nt = ({
|
|
1066
|
-
name: s = "password",
|
|
1067
|
-
label: e = "Password",
|
|
1068
|
-
placeholder: t = "Enter your password",
|
|
1069
|
-
schema: r = V(),
|
|
1070
|
-
InputProps: a = {},
|
|
1071
|
-
withRepeatField: i = !1,
|
|
1072
|
-
repeatFieldProps: n = {},
|
|
1073
|
-
...o
|
|
1074
|
-
}) => {
|
|
1075
|
-
const [u, m] = U(!1), c = u ? "text" : "password", g = /* @__PURE__ */ d.jsx(me, { position: "end", children: /* @__PURE__ */ d.jsx(
|
|
1076
|
-
_e,
|
|
1077
|
-
{
|
|
1078
|
-
onClick: () => {
|
|
1079
|
-
m((y) => !y);
|
|
1080
|
-
},
|
|
1081
|
-
edge: "end",
|
|
1082
|
-
children: u ? /* @__PURE__ */ d.jsx(it, {}) : /* @__PURE__ */ d.jsx(at, {})
|
|
1083
|
-
}
|
|
1084
|
-
) });
|
|
1085
|
-
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
1086
|
-
/* @__PURE__ */ d.jsx(
|
|
1087
|
-
W,
|
|
1088
|
-
{
|
|
1089
|
-
autoComplete: "off",
|
|
1090
|
-
type: c,
|
|
1091
|
-
name: s,
|
|
1092
|
-
label: e,
|
|
1093
|
-
schema: r,
|
|
1094
|
-
placeholder: t,
|
|
1095
|
-
InputProps: { endAdornment: g, ...a },
|
|
1096
|
-
...o
|
|
1097
|
-
}
|
|
1098
|
-
),
|
|
1099
|
-
i && /* @__PURE__ */ d.jsx(
|
|
1100
|
-
Ce,
|
|
1101
|
-
{
|
|
1102
|
-
name: s,
|
|
1103
|
-
type: c,
|
|
1104
|
-
...n,
|
|
1105
|
-
InputProps: { endAdornment: g, ...n.InputProps }
|
|
1106
|
-
}
|
|
1107
|
-
)
|
|
1108
|
-
] });
|
|
1109
|
-
}, Wt = ({
|
|
1110
|
-
children: s = "Submit",
|
|
1111
|
-
...e
|
|
1112
|
-
}) => {
|
|
1113
|
-
function t(r, a) {
|
|
1114
|
-
a = a || {};
|
|
1115
|
-
for (const i in r) {
|
|
1116
|
-
const n = r[i];
|
|
1117
|
-
a[i] = n instanceof Object && n.constructor === Object ? t(n, a) : !0;
|
|
1118
|
-
}
|
|
1119
|
-
return a;
|
|
1120
|
-
}
|
|
1121
|
-
return /* @__PURE__ */ d.jsx(_, { name: "submit", type: "submit", children: ({ form: r }) => /* @__PURE__ */ d.jsx(
|
|
1122
|
-
De,
|
|
1123
|
-
{
|
|
1124
|
-
type: "button",
|
|
1125
|
-
onClick: () => {
|
|
1126
|
-
r.setTouched(t(r.values), !0).then((a) => {
|
|
1127
|
-
const i = !!(a && Object.keys(a).length);
|
|
1128
|
-
r.setSubmitting(i), i || r.submitForm();
|
|
1129
|
-
});
|
|
1130
|
-
},
|
|
1131
|
-
...e,
|
|
1132
|
-
children: s
|
|
1133
|
-
}
|
|
1134
|
-
) });
|
|
1135
|
-
}, qt = ({
|
|
1136
|
-
textFieldProps: s,
|
|
1137
|
-
...e
|
|
1138
|
-
}) => {
|
|
1139
|
-
const {
|
|
1140
|
-
name: t = "uk_county",
|
|
1141
|
-
label: r = "UK county",
|
|
1142
|
-
placeholder: a = "Select your UK county",
|
|
1143
|
-
...i
|
|
1144
|
-
} = s || {};
|
|
1145
|
-
return /* @__PURE__ */ d.jsx(
|
|
1146
|
-
re,
|
|
1147
|
-
{
|
|
1148
|
-
options: tt,
|
|
1149
|
-
textFieldProps: { name: t, label: r, placeholder: a, ...i },
|
|
1150
|
-
...e
|
|
1151
|
-
}
|
|
1152
|
-
);
|
|
1153
|
-
}, fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1154
|
-
__proto__: null,
|
|
1155
|
-
ApiAutocompleteField: ct,
|
|
1156
|
-
AutocompleteField: re,
|
|
1157
|
-
CheckboxField: lt,
|
|
1158
|
-
CountryField: dt,
|
|
1159
|
-
DatePickerField: Et,
|
|
1160
|
-
EmailField: Bt,
|
|
1161
|
-
FirstNameField: $t,
|
|
1162
|
-
Form: It,
|
|
1163
|
-
OtpField: Vt,
|
|
1164
|
-
PasswordField: Nt,
|
|
1165
|
-
RepeatField: Ce,
|
|
1166
|
-
SubmitButton: Wt,
|
|
1167
|
-
TextField: W,
|
|
1168
|
-
UkCountyField: qt
|
|
1169
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1170
|
-
export {
|
|
1171
|
-
ct as A,
|
|
1172
|
-
lt as C,
|
|
1173
|
-
Et as D,
|
|
1174
|
-
Bt as E,
|
|
1175
|
-
$t as F,
|
|
1176
|
-
Vt as O,
|
|
1177
|
-
Nt as P,
|
|
1178
|
-
Ce as R,
|
|
1179
|
-
Wt as S,
|
|
1180
|
-
W as T,
|
|
1181
|
-
qt as U,
|
|
1182
|
-
re as a,
|
|
1183
|
-
dt as b,
|
|
1184
|
-
It as c,
|
|
1185
|
-
fr as i
|
|
1186
|
-
};
|
|
1187
|
-
//# sourceMappingURL=index-BRHFlEjS.js.map
|