wcz-test 7.1.3 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DialogsContext-CGAKEKKW.js +546 -0
- package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
- package/dist/{DialogsHooks-BXfwbYWP.js → DialogsHooks-BZUdpDVJ.js} +14 -14
- package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -0
- package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
- package/dist/{RouterListItemButton-DrW6M53Y.js.map → RouterListItemButton-C_jUvB6C.js.map} +1 -1
- package/dist/compiler-runtime-BNHg76kC.js +37 -0
- package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
- package/dist/components/core/Layout.d.ts +1 -1
- package/dist/components.js +686 -682
- package/dist/components.js.map +1 -1
- package/dist/exports/hooks.d.ts +1 -1
- package/dist/exports/middleware.d.ts +1 -0
- package/dist/exports/utils.d.ts +3 -2
- package/dist/hooks/UseScanDetection.d.ts +28 -0
- package/dist/hooks.js +603 -610
- package/dist/hooks.js.map +1 -1
- package/dist/{i18next-Bx3TmZAT.js → i18next-8reizFda.js} +71 -63
- package/dist/i18next-8reizFda.js.map +1 -0
- package/dist/{index-DchOf6FV.js → index-wOcJpekI.js} +6 -4
- package/dist/index-wOcJpekI.js.map +1 -0
- package/dist/index.js +661 -821
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +20 -0
- package/dist/lib/auth/msalServer.d.ts +11 -0
- package/dist/lib/auth/scopes.d.ts +2 -0
- package/dist/lib/auth/utils.d.ts +0 -0
- package/dist/lib/theme.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -10
- package/dist/middleware/authMiddleware.d.ts +6 -0
- package/dist/middleware.js +1101 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/TokenPayload.d.ts +8 -0
- package/dist/models/User.d.ts +10 -13
- package/dist/msalClient-Cem8ZXIU.js +75 -0
- package/dist/msalClient-Cem8ZXIU.js.map +1 -0
- package/dist/providers/AuthProvider.d.ts +0 -2
- package/dist/queries/FileHooks.d.ts +1 -1
- package/dist/queries/GraphQueries.d.ts +0 -20
- package/dist/query.js +1 -1
- package/dist/utils-BXxJ2sNo.js +151 -0
- package/dist/utils-BXxJ2sNo.js.map +1 -0
- package/dist/utils.js +72 -37
- package/dist/utils.js.map +1 -1
- package/package.json +16 -11
- package/dist/DialogsContext-8xfQ3X-k.js +0 -285
- package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
- package/dist/DialogsHooks-BXfwbYWP.js.map +0 -1
- package/dist/RouterListItemButton-DrW6M53Y.js +0 -17
- package/dist/hooks/User.d.ts +0 -8
- package/dist/i18next-Bx3TmZAT.js.map +0 -1
- package/dist/index-DchOf6FV.js.map +0 -1
- package/dist/utils-Dttzp8un.js +0 -10879
- package/dist/utils-Dttzp8un.js.map +0 -1
package/dist/hooks.js
CHANGED
|
@@ -1,221 +1,221 @@
|
|
|
1
|
-
import { createFormHookContexts as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
const
|
|
11
|
-
const e =
|
|
12
|
-
let
|
|
1
|
+
import { createFormHookContexts as Ke, createFormHook as Ge } from "@tanstack/react-form";
|
|
2
|
+
import { j as F } from "./DialogsContext-CGAKEKKW.js";
|
|
3
|
+
import { u as or } from "./DialogsContext-CGAKEKKW.js";
|
|
4
|
+
import { c as O } from "./compiler-runtime-BNHg76kC.js";
|
|
5
|
+
import { Autocomplete as Ue, TextField as Se, Checkbox as We, FormControlLabel as be, FormHelperText as fe, FormControl as ce, RadioGroup as He, Radio as Ze, FormLabel as Pe, Slider as qe, Button as ze, Switch as Je } from "@mui/material";
|
|
6
|
+
import { g as $ } from "./utils-BXxJ2sNo.js";
|
|
7
|
+
import { DatePicker as Qe, DateRangePicker as Xe, TimePicker as Ye, TimeRangePicker as et, DateTimePicker as tt, DateTimeRangePicker as rt } from "@mui/x-date-pickers-pro";
|
|
8
|
+
import re, { useRef as X, useState as pe, useEffect as ie, useLayoutEffect as at, useMemo as nt, useCallback as lt } from "react";
|
|
9
|
+
import { u as sr, a as fr } from "./DialogsHooks-BZUdpDVJ.js";
|
|
10
|
+
const it = (t) => {
|
|
11
|
+
const e = O.c(23);
|
|
12
|
+
let r, n;
|
|
13
13
|
e[0] !== t ? ({
|
|
14
14
|
textFieldProps: n,
|
|
15
|
-
...
|
|
16
|
-
} = t, e[0] = t, e[1] =
|
|
17
|
-
const
|
|
15
|
+
...r
|
|
16
|
+
} = t, e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
|
|
17
|
+
const a = L();
|
|
18
18
|
let l;
|
|
19
|
-
e[3] !==
|
|
19
|
+
e[3] !== a ? (l = $(a), e[3] = a, e[4] = l) : l = e[4];
|
|
20
20
|
const {
|
|
21
|
-
isTouched:
|
|
22
|
-
hasError:
|
|
21
|
+
isTouched: c,
|
|
22
|
+
hasError: s,
|
|
23
23
|
helperText: d
|
|
24
24
|
} = l;
|
|
25
|
-
let
|
|
26
|
-
e[5] !==
|
|
25
|
+
let f, i;
|
|
26
|
+
e[5] !== r.freeSolo || e[6] !== a ? (f = (v, m) => !r.freeSolo && a.handleChange(m), i = (v, m, C) => C !== "reset" && r.freeSolo && a.handleChange(m), e[5] = r.freeSolo, e[6] = a, e[7] = f, e[8] = i) : (f = e[7], i = e[8]);
|
|
27
27
|
let o;
|
|
28
|
-
e[9] !==
|
|
29
|
-
let
|
|
30
|
-
return e[15] !==
|
|
31
|
-
},
|
|
32
|
-
const e =
|
|
28
|
+
e[9] !== a.name || e[10] !== s || e[11] !== d || e[12] !== c || e[13] !== n ? (o = (v) => /* @__PURE__ */ F.jsx(Se, { ...v, name: a.name, error: c && s, helperText: c && d, ...n }), e[9] = a.name, e[10] = s, e[11] = d, e[12] = c, e[13] = n, e[14] = o) : o = e[14];
|
|
29
|
+
let u;
|
|
30
|
+
return e[15] !== r || e[16] !== a.handleBlur || e[17] !== a.name || e[18] !== a.state.value || e[19] !== f || e[20] !== i || e[21] !== o ? (u = /* @__PURE__ */ F.jsx(Ue, { value: a.state.value, onChange: f, onInputChange: i, onBlur: a.handleBlur, "aria-label": a.name, ...r, renderInput: o }), e[15] = r, e[16] = a.handleBlur, e[17] = a.name, e[18] = a.state.value, e[19] = f, e[20] = i, e[21] = o, e[22] = u) : u = e[22], u;
|
|
31
|
+
}, ot = (t) => {
|
|
32
|
+
const e = O.c(20), r = L();
|
|
33
33
|
let n;
|
|
34
|
-
e[0] !==
|
|
34
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
35
35
|
const {
|
|
36
|
-
isTouched:
|
|
36
|
+
isTouched: a,
|
|
37
37
|
hasError: l,
|
|
38
|
-
helperText:
|
|
39
|
-
} = n,
|
|
40
|
-
let
|
|
41
|
-
e[2] !==
|
|
38
|
+
helperText: c
|
|
39
|
+
} = n, s = r.name, d = !!r.state.value;
|
|
40
|
+
let f;
|
|
41
|
+
e[2] !== r ? (f = (C) => r.handleChange(C.target.checked), e[2] = r, e[3] = f) : f = e[3];
|
|
42
42
|
let i;
|
|
43
|
-
e[4] !==
|
|
43
|
+
e[4] !== r.handleBlur || e[5] !== r.name || e[6] !== t || e[7] !== d || e[8] !== f ? (i = /* @__PURE__ */ F.jsx(We, { name: s, checked: d, onChange: f, onBlur: r.handleBlur, "aria-label": r.name, ...t }), e[4] = r.handleBlur, e[5] = r.name, e[6] = t, e[7] = d, e[8] = f, e[9] = i) : i = e[9];
|
|
44
44
|
const o = t.label ?? "";
|
|
45
|
-
let
|
|
46
|
-
e[10] !== i || e[11] !== o ? (
|
|
45
|
+
let u;
|
|
46
|
+
e[10] !== i || e[11] !== o ? (u = /* @__PURE__ */ F.jsx(be, { control: i, label: o }), e[10] = i, e[11] = o, e[12] = u) : u = e[12];
|
|
47
47
|
let v;
|
|
48
|
-
e[13] !== l || e[14] !==
|
|
48
|
+
e[13] !== l || e[14] !== c || e[15] !== a ? (v = a && l && /* @__PURE__ */ F.jsx(fe, { error: l, children: c }), e[13] = l, e[14] = c, e[15] = a, e[16] = v) : v = e[16];
|
|
49
49
|
let m;
|
|
50
|
-
return e[17] !==
|
|
51
|
-
|
|
50
|
+
return e[17] !== u || e[18] !== v ? (m = /* @__PURE__ */ F.jsxs(ce, { component: "fieldset", children: [
|
|
51
|
+
u,
|
|
52
52
|
v
|
|
53
|
-
] }), e[17] =
|
|
54
|
-
},
|
|
55
|
-
const e =
|
|
53
|
+
] }), e[17] = u, e[18] = v, e[19] = m) : m = e[19], m;
|
|
54
|
+
}, ut = (t) => {
|
|
55
|
+
const e = O.c(18), r = L();
|
|
56
56
|
let n;
|
|
57
|
-
e[0] !==
|
|
57
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
58
58
|
const {
|
|
59
|
-
isTouched:
|
|
59
|
+
isTouched: a,
|
|
60
60
|
hasError: l,
|
|
61
|
-
helperText:
|
|
61
|
+
helperText: c
|
|
62
62
|
} = n;
|
|
63
|
-
let
|
|
64
|
-
e[2] !==
|
|
65
|
-
const d =
|
|
63
|
+
let s;
|
|
64
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
65
|
+
const d = a && l, f = a && c;
|
|
66
66
|
let i;
|
|
67
|
-
e[4] !==
|
|
68
|
-
onBlur:
|
|
67
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
68
|
+
onBlur: r.handleBlur,
|
|
69
69
|
error: d,
|
|
70
|
-
helperText:
|
|
70
|
+
helperText: f,
|
|
71
71
|
...t.textFieldProps
|
|
72
|
-
}, e[4] =
|
|
72
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
73
73
|
let o;
|
|
74
74
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
75
75
|
textField: i,
|
|
76
76
|
...t.slotProps
|
|
77
77
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
78
|
-
let
|
|
79
|
-
return e[12] !==
|
|
80
|
-
},
|
|
81
|
-
const e =
|
|
78
|
+
let u;
|
|
79
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(Qe, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
80
|
+
}, st = (t) => {
|
|
81
|
+
const e = O.c(18), r = L();
|
|
82
82
|
let n;
|
|
83
|
-
e[0] !==
|
|
83
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
84
84
|
const {
|
|
85
|
-
isTouched:
|
|
85
|
+
isTouched: a,
|
|
86
86
|
hasError: l,
|
|
87
|
-
helperText:
|
|
87
|
+
helperText: c
|
|
88
88
|
} = n;
|
|
89
|
-
let
|
|
90
|
-
e[2] !==
|
|
91
|
-
const d =
|
|
89
|
+
let s;
|
|
90
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
91
|
+
const d = a && l, f = a && c;
|
|
92
92
|
let i;
|
|
93
|
-
e[4] !==
|
|
94
|
-
onBlur:
|
|
93
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
94
|
+
onBlur: r.handleBlur,
|
|
95
95
|
error: d,
|
|
96
|
-
helperText:
|
|
96
|
+
helperText: f,
|
|
97
97
|
...t.textFieldProps
|
|
98
|
-
}, e[4] =
|
|
98
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
99
99
|
let o;
|
|
100
100
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
101
101
|
textField: i,
|
|
102
102
|
...t.slotProps
|
|
103
103
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
104
|
-
let
|
|
105
|
-
return e[12] !==
|
|
106
|
-
},
|
|
107
|
-
const e =
|
|
104
|
+
let u;
|
|
105
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(Xe, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
106
|
+
}, ft = (t) => {
|
|
107
|
+
const e = O.c(18), r = L();
|
|
108
108
|
let n;
|
|
109
|
-
e[0] !==
|
|
109
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
110
110
|
const {
|
|
111
|
-
isTouched:
|
|
111
|
+
isTouched: a,
|
|
112
112
|
hasError: l,
|
|
113
|
-
helperText:
|
|
113
|
+
helperText: c
|
|
114
114
|
} = n;
|
|
115
|
-
let
|
|
116
|
-
e[2] !==
|
|
117
|
-
const d =
|
|
115
|
+
let s;
|
|
116
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
117
|
+
const d = a && l, f = a && c;
|
|
118
118
|
let i;
|
|
119
|
-
e[4] !==
|
|
120
|
-
onBlur:
|
|
119
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
120
|
+
onBlur: r.handleBlur,
|
|
121
121
|
error: d,
|
|
122
|
-
helperText:
|
|
122
|
+
helperText: f,
|
|
123
123
|
...t.textFieldProps
|
|
124
|
-
}, e[4] =
|
|
124
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
125
125
|
let o;
|
|
126
126
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
127
127
|
textField: i,
|
|
128
128
|
...t.slotProps
|
|
129
129
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
130
|
-
let
|
|
131
|
-
return e[12] !==
|
|
132
|
-
},
|
|
133
|
-
const e =
|
|
130
|
+
let u;
|
|
131
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(Ye, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
132
|
+
}, ct = (t) => {
|
|
133
|
+
const e = O.c(18), r = L();
|
|
134
134
|
let n;
|
|
135
|
-
e[0] !==
|
|
135
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
136
136
|
const {
|
|
137
|
-
isTouched:
|
|
137
|
+
isTouched: a,
|
|
138
138
|
hasError: l,
|
|
139
|
-
helperText:
|
|
139
|
+
helperText: c
|
|
140
140
|
} = n;
|
|
141
|
-
let
|
|
142
|
-
e[2] !==
|
|
143
|
-
const d =
|
|
141
|
+
let s;
|
|
142
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
143
|
+
const d = a && l, f = a && c;
|
|
144
144
|
let i;
|
|
145
|
-
e[4] !==
|
|
146
|
-
onBlur:
|
|
145
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
146
|
+
onBlur: r.handleBlur,
|
|
147
147
|
error: d,
|
|
148
|
-
helperText:
|
|
148
|
+
helperText: f,
|
|
149
149
|
...t.textFieldProps
|
|
150
|
-
}, e[4] =
|
|
150
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
151
151
|
let o;
|
|
152
152
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
153
153
|
textField: i,
|
|
154
154
|
...t.slotProps
|
|
155
155
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
156
|
-
let
|
|
157
|
-
return e[12] !==
|
|
158
|
-
},
|
|
159
|
-
const e =
|
|
156
|
+
let u;
|
|
157
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(et, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
158
|
+
}, dt = (t) => {
|
|
159
|
+
const e = O.c(18), r = L();
|
|
160
160
|
let n;
|
|
161
|
-
e[0] !==
|
|
161
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
162
162
|
const {
|
|
163
|
-
isTouched:
|
|
163
|
+
isTouched: a,
|
|
164
164
|
hasError: l,
|
|
165
|
-
helperText:
|
|
165
|
+
helperText: c
|
|
166
166
|
} = n;
|
|
167
|
-
let
|
|
168
|
-
e[2] !==
|
|
169
|
-
const d =
|
|
167
|
+
let s;
|
|
168
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
169
|
+
const d = a && l, f = a && c;
|
|
170
170
|
let i;
|
|
171
|
-
e[4] !==
|
|
172
|
-
onBlur:
|
|
171
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
172
|
+
onBlur: r.handleBlur,
|
|
173
173
|
error: d,
|
|
174
|
-
helperText:
|
|
174
|
+
helperText: f,
|
|
175
175
|
...t.textFieldProps
|
|
176
|
-
}, e[4] =
|
|
176
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
177
177
|
let o;
|
|
178
178
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
179
179
|
textField: i,
|
|
180
180
|
...t.slotProps
|
|
181
181
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
182
|
-
let
|
|
183
|
-
return e[12] !==
|
|
184
|
-
},
|
|
185
|
-
const e =
|
|
182
|
+
let u;
|
|
183
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(tt, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
184
|
+
}, vt = (t) => {
|
|
185
|
+
const e = O.c(18), r = L();
|
|
186
186
|
let n;
|
|
187
|
-
e[0] !==
|
|
187
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
188
188
|
const {
|
|
189
|
-
isTouched:
|
|
189
|
+
isTouched: a,
|
|
190
190
|
hasError: l,
|
|
191
|
-
helperText:
|
|
191
|
+
helperText: c
|
|
192
192
|
} = n;
|
|
193
|
-
let
|
|
194
|
-
e[2] !==
|
|
195
|
-
const d =
|
|
193
|
+
let s;
|
|
194
|
+
e[2] !== r ? (s = (v) => r.handleChange(v), e[2] = r, e[3] = s) : s = e[3];
|
|
195
|
+
const d = a && l, f = a && c;
|
|
196
196
|
let i;
|
|
197
|
-
e[4] !==
|
|
198
|
-
onBlur:
|
|
197
|
+
e[4] !== r.handleBlur || e[5] !== t.textFieldProps || e[6] !== d || e[7] !== f ? (i = {
|
|
198
|
+
onBlur: r.handleBlur,
|
|
199
199
|
error: d,
|
|
200
|
-
helperText:
|
|
200
|
+
helperText: f,
|
|
201
201
|
...t.textFieldProps
|
|
202
|
-
}, e[4] =
|
|
202
|
+
}, e[4] = r.handleBlur, e[5] = t.textFieldProps, e[6] = d, e[7] = f, e[8] = i) : i = e[8];
|
|
203
203
|
let o;
|
|
204
204
|
e[9] !== t.slotProps || e[10] !== i ? (o = {
|
|
205
205
|
textField: i,
|
|
206
206
|
...t.slotProps
|
|
207
207
|
}, e[9] = t.slotProps, e[10] = i, e[11] = o) : o = e[11];
|
|
208
|
-
let
|
|
209
|
-
return e[12] !==
|
|
208
|
+
let u;
|
|
209
|
+
return e[12] !== r.name || e[13] !== r.state.value || e[14] !== t || e[15] !== s || e[16] !== o ? (u = /* @__PURE__ */ F.jsx(rt, { name: r.name, value: r.state.value, onChange: s, slotProps: o, "aria-label": r.name, ...t }), e[12] = r.name, e[13] = r.state.value, e[14] = t, e[15] = s, e[16] = o, e[17] = u) : u = e[17], u;
|
|
210
210
|
};
|
|
211
|
-
function
|
|
212
|
-
var
|
|
211
|
+
function we(t, e) {
|
|
212
|
+
var r = {};
|
|
213
213
|
for (var n in t)
|
|
214
|
-
Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (
|
|
214
|
+
Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
215
215
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
216
|
-
for (var
|
|
217
|
-
e.indexOf(n[
|
|
218
|
-
return
|
|
216
|
+
for (var a = 0, n = Object.getOwnPropertySymbols(t); a < n.length; a++)
|
|
217
|
+
e.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[a]) && (r[n[a]] = t[n[a]]);
|
|
218
|
+
return r;
|
|
219
219
|
}
|
|
220
220
|
var oe;
|
|
221
221
|
(function(t) {
|
|
@@ -223,31 +223,31 @@ var oe;
|
|
|
223
223
|
})(oe || (oe = {}));
|
|
224
224
|
function Q() {
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
var e,
|
|
226
|
+
function mt(t) {
|
|
227
|
+
var e, r = void 0;
|
|
228
228
|
return function() {
|
|
229
|
-
for (var n = [],
|
|
230
|
-
return e && n.length === e.length && n.every(function(l,
|
|
231
|
-
return l === e[
|
|
232
|
-
}) || (e = n,
|
|
229
|
+
for (var n = [], a = arguments.length; a--; ) n[a] = arguments[a];
|
|
230
|
+
return e && n.length === e.length && n.every(function(l, c) {
|
|
231
|
+
return l === e[c];
|
|
232
|
+
}) || (e = n, r = t.apply(void 0, n)), r;
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
function ue(t) {
|
|
236
236
|
return !!(t || "").match(/\d/);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ae(t) {
|
|
239
239
|
return t == null;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function ht(t) {
|
|
242
242
|
return typeof t == "number" && isNaN(t);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
return
|
|
244
|
+
function Ve(t) {
|
|
245
|
+
return ae(t) || ht(t) || typeof t == "number" && !isFinite(t);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ne(t) {
|
|
248
248
|
return t.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function gt(t) {
|
|
251
251
|
switch (t) {
|
|
252
252
|
case "lakh":
|
|
253
253
|
return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
|
|
@@ -257,102 +257,102 @@ function Ct(t) {
|
|
|
257
257
|
return /(\d)(?=(\d{3})+(?!\d))/g;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
var n =
|
|
262
|
-
return
|
|
260
|
+
function xt(t, e, r) {
|
|
261
|
+
var n = gt(r), a = t.search(/[1-9]/);
|
|
262
|
+
return a = a === -1 ? t.length : a, t.substring(0, a) + t.substring(a, t.length).replace(n, "$1" + e);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
var e =
|
|
264
|
+
function St(t) {
|
|
265
|
+
var e = X(t);
|
|
266
266
|
e.current = t;
|
|
267
|
-
var
|
|
268
|
-
for (var n = [],
|
|
267
|
+
var r = X(function() {
|
|
268
|
+
for (var n = [], a = arguments.length; a--; ) n[a] = arguments[a];
|
|
269
269
|
return e.current.apply(e, n);
|
|
270
270
|
});
|
|
271
|
-
return
|
|
271
|
+
return r.current;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Be(t, e) {
|
|
274
274
|
e === void 0 && (e = !0);
|
|
275
|
-
var
|
|
275
|
+
var r = t[0] === "-", n = r && e;
|
|
276
276
|
t = t.replace("-", "");
|
|
277
|
-
var
|
|
277
|
+
var a = t.split("."), l = a[0], c = a[1] || "";
|
|
278
278
|
return {
|
|
279
279
|
beforeDecimal: l,
|
|
280
|
-
afterDecimal:
|
|
281
|
-
hasNegation:
|
|
280
|
+
afterDecimal: c,
|
|
281
|
+
hasNegation: r,
|
|
282
282
|
addNegation: n
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function bt(t) {
|
|
286
286
|
if (!t)
|
|
287
287
|
return t;
|
|
288
288
|
var e = t[0] === "-";
|
|
289
289
|
e && (t = t.substring(1, t.length));
|
|
290
|
-
var
|
|
291
|
-
return (e ? "-" : "") + n + (
|
|
290
|
+
var r = t.split("."), n = r[0].replace(/^0+/, "") || "0", a = r[1] || "";
|
|
291
|
+
return (e ? "-" : "") + n + (a ? "." + a : "");
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
for (var n = "",
|
|
295
|
-
n += t[l] ||
|
|
293
|
+
function Ie(t, e, r) {
|
|
294
|
+
for (var n = "", a = r ? "0" : "", l = 0; l <= e - 1; l++)
|
|
295
|
+
n += t[l] || a;
|
|
296
296
|
return n;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ce(t, e) {
|
|
299
299
|
return Array(e + 1).join(t);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
var e = t + "",
|
|
303
|
-
|
|
304
|
-
var n = e.split(/[eE]/g),
|
|
301
|
+
function je(t) {
|
|
302
|
+
var e = t + "", r = e[0] === "-" ? "-" : "";
|
|
303
|
+
r && (e = e.substring(1));
|
|
304
|
+
var n = e.split(/[eE]/g), a = n[0], l = n[1];
|
|
305
305
|
if (l = Number(l), !l)
|
|
306
|
-
return
|
|
307
|
-
|
|
308
|
-
var
|
|
309
|
-
return
|
|
306
|
+
return r + a;
|
|
307
|
+
a = a.replace(".", "");
|
|
308
|
+
var c = 1 + l, s = a.length;
|
|
309
|
+
return c < 0 ? a = "0." + Ce("0", Math.abs(c)) + a : c >= s ? a = a + Ce("0", c - s) : a = (a.substring(0, c) || "0") + "." + a.substring(c), r + a;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Fe(t, e, r) {
|
|
312
312
|
if (["", "-"].indexOf(t) !== -1)
|
|
313
313
|
return t;
|
|
314
|
-
var n = (t.indexOf(".") !== -1 ||
|
|
315
|
-
l && Number(i[0]) && (o = l.split("").reverse().reduce(function(
|
|
316
|
-
return
|
|
314
|
+
var n = (t.indexOf(".") !== -1 || r) && e, a = Be(t), l = a.beforeDecimal, c = a.afterDecimal, s = a.hasNegation, d = parseFloat("0." + (c || "0")), f = c.length <= e ? "0." + c : d.toFixed(e), i = f.split("."), o = l;
|
|
315
|
+
l && Number(i[0]) && (o = l.split("").reverse().reduce(function(C, B, x) {
|
|
316
|
+
return C.length > x ? (Number(C[0]) + Number(B)).toString() + C.substring(1, C.length) : B + C;
|
|
317
317
|
}, i[0]));
|
|
318
|
-
var
|
|
319
|
-
return "" + v + o + m +
|
|
318
|
+
var u = Ie(i[1] || "", e, r), v = s ? "-" : "", m = n ? "." : "";
|
|
319
|
+
return "" + v + o + m + u;
|
|
320
320
|
}
|
|
321
321
|
function Y(t, e) {
|
|
322
322
|
if (t.value = t.value, t !== null) {
|
|
323
323
|
if (t.createTextRange) {
|
|
324
|
-
var
|
|
325
|
-
return
|
|
324
|
+
var r = t.createTextRange();
|
|
325
|
+
return r.move("character", e), r.select(), !0;
|
|
326
326
|
}
|
|
327
327
|
return t.selectionStart || t.selectionStart === 0 ? (t.focus(), t.setSelectionRange(e, e), !0) : (t.focus(), !1);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
|
|
333
|
-
for (; t[
|
|
330
|
+
var ke = mt(function(t, e) {
|
|
331
|
+
for (var r = 0, n = 0, a = t.length, l = e.length; t[r] === e[r] && r < a; )
|
|
332
|
+
r++;
|
|
333
|
+
for (; t[a - 1 - n] === e[l - 1 - n] && l - n > r && a - n > r; )
|
|
334
334
|
n++;
|
|
335
335
|
return {
|
|
336
|
-
from: { start:
|
|
337
|
-
to: { start:
|
|
336
|
+
from: { start: r, end: a - n },
|
|
337
|
+
to: { start: r, end: l - n }
|
|
338
338
|
};
|
|
339
|
-
}),
|
|
340
|
-
var
|
|
339
|
+
}), Bt = function(t, e) {
|
|
340
|
+
var r = Math.min(t.selectionStart, e);
|
|
341
341
|
return {
|
|
342
|
-
from: { start:
|
|
343
|
-
to: { start:
|
|
342
|
+
from: { start: r, end: t.selectionEnd },
|
|
343
|
+
to: { start: r, end: e }
|
|
344
344
|
};
|
|
345
345
|
};
|
|
346
|
-
function
|
|
347
|
-
return Math.min(Math.max(t, e),
|
|
346
|
+
function Tt(t, e, r) {
|
|
347
|
+
return Math.min(Math.max(t, e), r);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function xe(t) {
|
|
350
350
|
return Math.max(t.selectionStart, t.selectionEnd);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ct() {
|
|
353
353
|
return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ft(t) {
|
|
356
356
|
return {
|
|
357
357
|
from: {
|
|
358
358
|
start: 0,
|
|
@@ -365,632 +365,625 @@ function Dt(t) {
|
|
|
365
365
|
lastValue: ""
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
var e = t.currentValue,
|
|
370
|
-
return e[n] === a
|
|
371
|
-
}
|
|
372
|
-
function
|
|
373
|
-
|
|
374
|
-
var
|
|
375
|
-
return
|
|
376
|
-
}), d = t.slice(0,
|
|
377
|
-
!e && !
|
|
378
|
-
for (var
|
|
379
|
-
|
|
380
|
-
for (var m = 0,
|
|
381
|
-
var
|
|
382
|
-
currentValue:
|
|
368
|
+
function yt(t) {
|
|
369
|
+
var e = t.currentValue, r = t.formattedValue, n = t.currentValueIndex, a = t.formattedValueIndex;
|
|
370
|
+
return e[n] === r[a];
|
|
371
|
+
}
|
|
372
|
+
function Dt(t, e, r, n, a, l, c) {
|
|
373
|
+
c === void 0 && (c = yt);
|
|
374
|
+
var s = a.findIndex(function(j) {
|
|
375
|
+
return j;
|
|
376
|
+
}), d = t.slice(0, s);
|
|
377
|
+
!e && !r.startsWith(d) && (e = d, r = d + r, n = n + d.length);
|
|
378
|
+
for (var f = r.length, i = t.length, o = {}, u = new Array(f), v = 0; v < f; v++) {
|
|
379
|
+
u[v] = -1;
|
|
380
|
+
for (var m = 0, C = i; m < C; m++) {
|
|
381
|
+
var B = c({
|
|
382
|
+
currentValue: r,
|
|
383
383
|
lastValue: e,
|
|
384
384
|
formattedValue: t,
|
|
385
385
|
currentValueIndex: v,
|
|
386
386
|
formattedValueIndex: m
|
|
387
387
|
});
|
|
388
|
-
if (
|
|
389
|
-
|
|
388
|
+
if (B && o[m] !== !0) {
|
|
389
|
+
u[v] = m, o[m] = !0;
|
|
390
390
|
break;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
for (var x = n; x <
|
|
394
|
+
for (var x = n; x < f && (u[x] === -1 || !l(r[x])); )
|
|
395
395
|
x++;
|
|
396
|
-
var
|
|
397
|
-
for (x = n - 1; x > 0 &&
|
|
396
|
+
var D = x === f || u[x] === -1 ? i : u[x];
|
|
397
|
+
for (x = n - 1; x > 0 && u[x] === -1; )
|
|
398
398
|
x--;
|
|
399
|
-
var
|
|
400
|
-
return
|
|
399
|
+
var N = x === -1 || u[x] === -1 ? 0 : u[x] + 1;
|
|
400
|
+
return N > D ? D : n - N < D - n ? N : D;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
var
|
|
404
|
-
if (e =
|
|
405
|
-
for (; e >= 0 && !
|
|
402
|
+
function ye(t, e, r, n) {
|
|
403
|
+
var a = t.length;
|
|
404
|
+
if (e = Tt(e, 0, a), n === "left") {
|
|
405
|
+
for (; e >= 0 && !r[e]; )
|
|
406
406
|
e--;
|
|
407
|
-
e === -1 && (e =
|
|
407
|
+
e === -1 && (e = r.indexOf(!0));
|
|
408
408
|
} else {
|
|
409
|
-
for (; e <=
|
|
409
|
+
for (; e <= a && !r[e]; )
|
|
410
410
|
e++;
|
|
411
|
-
e >
|
|
411
|
+
e > a && (e = r.lastIndexOf(!0));
|
|
412
412
|
}
|
|
413
|
-
return e === -1 && (e =
|
|
413
|
+
return e === -1 && (e = a), e;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Pt(t) {
|
|
416
416
|
for (var e = Array.from({ length: t.length + 1 }).map(function() {
|
|
417
417
|
return !0;
|
|
418
|
-
}),
|
|
419
|
-
e[
|
|
418
|
+
}), r = 0, n = e.length; r < n; r++)
|
|
419
|
+
e[r] = !!(ue(t[r]) || ue(t[r - 1]));
|
|
420
420
|
return e;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Ee(t, e, r, n, a, l) {
|
|
423
423
|
l === void 0 && (l = Q);
|
|
424
|
-
var
|
|
425
|
-
var
|
|
426
|
-
return
|
|
427
|
-
}),
|
|
428
|
-
return
|
|
429
|
-
}), d =
|
|
430
|
-
m.formattedValue !== d.formattedValue &&
|
|
424
|
+
var c = St(function(m, C) {
|
|
425
|
+
var B, x;
|
|
426
|
+
return Ve(m) ? (x = "", B = "") : typeof m == "number" || C ? (x = typeof m == "number" ? je(m) : m, B = n(x)) : (x = a(m, void 0), B = n(x)), { formattedValue: B, numAsString: x };
|
|
427
|
+
}), s = pe(function() {
|
|
428
|
+
return c(ae(t) ? e : t, r);
|
|
429
|
+
}), d = s[0], f = s[1], i = function(m, C) {
|
|
430
|
+
m.formattedValue !== d.formattedValue && f({
|
|
431
431
|
formattedValue: m.formattedValue,
|
|
432
432
|
numAsString: m.value
|
|
433
|
-
}), l(m,
|
|
434
|
-
}, o = t,
|
|
435
|
-
|
|
436
|
-
var v =
|
|
437
|
-
return
|
|
438
|
-
|
|
433
|
+
}), l(m, C);
|
|
434
|
+
}, o = t, u = r;
|
|
435
|
+
ae(t) && (o = d.numAsString, u = !0);
|
|
436
|
+
var v = c(o, u);
|
|
437
|
+
return nt(function() {
|
|
438
|
+
f(v);
|
|
439
439
|
}, [v.formattedValue]), [d, i];
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function pt(t) {
|
|
442
442
|
return t.replace(/[^0-9]/g, "");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function wt(t) {
|
|
445
445
|
return t;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Vt(t) {
|
|
448
448
|
var e = t.type;
|
|
449
449
|
e === void 0 && (e = "text");
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
var n = t.customInput,
|
|
453
|
-
|
|
454
|
-
var
|
|
455
|
-
|
|
456
|
-
var d = t.defaultValue,
|
|
457
|
-
|
|
450
|
+
var r = t.displayType;
|
|
451
|
+
r === void 0 && (r = "input");
|
|
452
|
+
var n = t.customInput, a = t.renderText, l = t.getInputRef, c = t.format;
|
|
453
|
+
c === void 0 && (c = wt);
|
|
454
|
+
var s = t.removeFormatting;
|
|
455
|
+
s === void 0 && (s = pt);
|
|
456
|
+
var d = t.defaultValue, f = t.valueIsNumericString, i = t.onValueChange, o = t.isAllowed, u = t.onChange;
|
|
457
|
+
u === void 0 && (u = Q);
|
|
458
458
|
var v = t.onKeyDown;
|
|
459
459
|
v === void 0 && (v = Q);
|
|
460
460
|
var m = t.onMouseUp;
|
|
461
461
|
m === void 0 && (m = Q);
|
|
462
|
-
var
|
|
463
|
-
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
-
var x = t.value,
|
|
467
|
-
|
|
468
|
-
var
|
|
469
|
-
|
|
470
|
-
var
|
|
462
|
+
var C = t.onFocus;
|
|
463
|
+
C === void 0 && (C = Q);
|
|
464
|
+
var B = t.onBlur;
|
|
465
|
+
B === void 0 && (B = Q);
|
|
466
|
+
var x = t.value, D = t.getCaretBoundary;
|
|
467
|
+
D === void 0 && (D = Pt);
|
|
468
|
+
var N = t.isValidInputCharacter;
|
|
469
|
+
N === void 0 && (N = ue);
|
|
470
|
+
var j = t.isCharacterSame, R = we(t, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), G = Ee(x, d, !!f, c, s, i), U = G[0], P = U.formattedValue, M = U.numAsString, H = G[1], K = X(), Z = X({ formattedValue: P, numAsString: M }), q = function(h, g) {
|
|
471
471
|
Z.current = { formattedValue: h.formattedValue, numAsString: h.value }, H(h, g);
|
|
472
|
-
}, ee =
|
|
472
|
+
}, ee = pe(!1), ne = ee[0], T = ee[1], S = X(null), p = X({
|
|
473
473
|
setCaretTimeout: null,
|
|
474
474
|
focusTimeout: null
|
|
475
475
|
});
|
|
476
|
-
|
|
477
|
-
return
|
|
478
|
-
clearTimeout(
|
|
476
|
+
ie(function() {
|
|
477
|
+
return T(!0), function() {
|
|
478
|
+
clearTimeout(p.current.setCaretTimeout), clearTimeout(p.current.focusTimeout);
|
|
479
479
|
};
|
|
480
480
|
}, []);
|
|
481
|
-
var
|
|
481
|
+
var k = c, E = function(h, g) {
|
|
482
482
|
var b = parseFloat(g);
|
|
483
483
|
return {
|
|
484
484
|
formattedValue: h,
|
|
485
485
|
value: g,
|
|
486
486
|
floatValue: isNaN(b) ? void 0 : b
|
|
487
487
|
};
|
|
488
|
-
},
|
|
489
|
-
h.selectionStart === 0 && h.selectionEnd === h.value.length || (Y(h, g),
|
|
488
|
+
}, I = function(h, g, b) {
|
|
489
|
+
h.selectionStart === 0 && h.selectionEnd === h.value.length || (Y(h, g), p.current.setCaretTimeout = setTimeout(function() {
|
|
490
490
|
h.value === b && h.selectionStart !== g && Y(h, g);
|
|
491
491
|
}, 0));
|
|
492
492
|
}, A = function(h, g, b) {
|
|
493
|
-
return
|
|
493
|
+
return ye(h, g, D(h), b);
|
|
494
494
|
}, te = function(h, g, b) {
|
|
495
|
-
var
|
|
496
|
-
return
|
|
497
|
-
},
|
|
495
|
+
var w = D(g), _ = Dt(g, P, h, b, w, N, j);
|
|
496
|
+
return _ = ye(g, _, w), _;
|
|
497
|
+
}, ve = function(h) {
|
|
498
498
|
var g = h.formattedValue;
|
|
499
499
|
g === void 0 && (g = "");
|
|
500
|
-
var b = h.input,
|
|
500
|
+
var b = h.input, w = h.source, _ = h.event, V = h.numAsString, y;
|
|
501
501
|
if (b) {
|
|
502
|
-
var
|
|
503
|
-
b.value = g, y = te(
|
|
502
|
+
var W = h.inputValue || b.value, z = xe(b);
|
|
503
|
+
b.value = g, y = te(W, g, z), y !== void 0 && I(b, y, g);
|
|
504
504
|
}
|
|
505
|
-
g !==
|
|
505
|
+
g !== P && q(E(g, V), { event: _, source: w });
|
|
506
506
|
};
|
|
507
|
-
|
|
507
|
+
ie(function() {
|
|
508
508
|
var h = Z.current, g = h.formattedValue, b = h.numAsString;
|
|
509
|
-
(
|
|
509
|
+
(P !== g || M !== b) && q(E(P, M), {
|
|
510
510
|
event: void 0,
|
|
511
511
|
source: oe.props
|
|
512
512
|
});
|
|
513
|
-
}, [
|
|
514
|
-
var
|
|
513
|
+
}, [P, M]);
|
|
514
|
+
var le = S.current ? xe(S.current) : void 0, se = typeof window < "u" ? at : ie;
|
|
515
515
|
se(function() {
|
|
516
516
|
var h = S.current;
|
|
517
|
-
if (
|
|
518
|
-
var g = te(Z.current.formattedValue,
|
|
519
|
-
h.value =
|
|
517
|
+
if (P !== Z.current.formattedValue && h) {
|
|
518
|
+
var g = te(Z.current.formattedValue, P, le);
|
|
519
|
+
h.value = P, I(h, g, P);
|
|
520
520
|
}
|
|
521
|
-
}, [
|
|
522
|
-
var
|
|
523
|
-
var
|
|
524
|
-
if (y =
|
|
525
|
-
var z = g.target, J =
|
|
526
|
-
return z.value =
|
|
521
|
+
}, [P]);
|
|
522
|
+
var me = function(h, g, b) {
|
|
523
|
+
var w = g.target, _ = K.current ? Bt(K.current, w.selectionEnd) : ke(P, h), V = Object.assign(Object.assign({}, _), { lastValue: P }), y = s(h, V), W = k(y);
|
|
524
|
+
if (y = s(W, void 0), o && !o(E(W, y))) {
|
|
525
|
+
var z = g.target, J = xe(z), ge = te(h, P, J);
|
|
526
|
+
return z.value = P, I(z, ge, P), !1;
|
|
527
527
|
}
|
|
528
|
-
return
|
|
529
|
-
formattedValue:
|
|
528
|
+
return ve({
|
|
529
|
+
formattedValue: W,
|
|
530
530
|
numAsString: y,
|
|
531
531
|
inputValue: h,
|
|
532
532
|
event: g,
|
|
533
533
|
source: b,
|
|
534
534
|
input: g.target
|
|
535
535
|
}), !0;
|
|
536
|
-
},
|
|
536
|
+
}, he = function(h, g) {
|
|
537
537
|
g === void 0 && (g = 0);
|
|
538
|
-
var b = h.selectionStart,
|
|
539
|
-
|
|
540
|
-
},
|
|
541
|
-
var g = h.target, b = g.value,
|
|
542
|
-
|
|
543
|
-
},
|
|
544
|
-
var g = h.target, b = h.key,
|
|
538
|
+
var b = h.selectionStart, w = h.selectionEnd;
|
|
539
|
+
K.current = { selectionStart: b, selectionEnd: w + g };
|
|
540
|
+
}, Re = function(h) {
|
|
541
|
+
var g = h.target, b = g.value, w = me(b, h, oe.event);
|
|
542
|
+
w && u(h), K.current = void 0;
|
|
543
|
+
}, Ae = function(h) {
|
|
544
|
+
var g = h.target, b = h.key, w = g.selectionStart, _ = g.selectionEnd, V = g.value;
|
|
545
545
|
V === void 0 && (V = "");
|
|
546
546
|
var y;
|
|
547
|
-
b === "ArrowLeft" || b === "Backspace" ? y = Math.max(
|
|
548
|
-
var
|
|
549
|
-
b === "Delete" &&
|
|
547
|
+
b === "ArrowLeft" || b === "Backspace" ? y = Math.max(w - 1, 0) : b === "ArrowRight" ? y = Math.min(w + 1, V.length) : b === "Delete" && (y = w);
|
|
548
|
+
var W = 0;
|
|
549
|
+
b === "Delete" && w === _ && (W = 1);
|
|
550
550
|
var z = b === "ArrowLeft" || b === "ArrowRight";
|
|
551
|
-
if (y === void 0 ||
|
|
552
|
-
v(h),
|
|
551
|
+
if (y === void 0 || w !== _ && !z) {
|
|
552
|
+
v(h), he(g, W);
|
|
553
553
|
return;
|
|
554
554
|
}
|
|
555
555
|
var J = y;
|
|
556
556
|
if (z) {
|
|
557
|
-
var
|
|
558
|
-
J = A(V, y,
|
|
559
|
-
} else b === "Delete" && !
|
|
560
|
-
J !== y &&
|
|
561
|
-
},
|
|
557
|
+
var ge = b === "ArrowLeft" ? "left" : "right";
|
|
558
|
+
J = A(V, y, ge), J !== y && h.preventDefault();
|
|
559
|
+
} else b === "Delete" && !N(V[y]) ? J = A(V, y, "right") : b === "Backspace" && !N(V[y]) && (J = A(V, y, "left"));
|
|
560
|
+
J !== y && I(g, J, V), v(h), he(g, W);
|
|
561
|
+
}, _e = function(h) {
|
|
562
562
|
var g = h.target, b = function() {
|
|
563
|
-
var
|
|
564
|
-
if (V === void 0 && (V = ""),
|
|
565
|
-
var y = A(V,
|
|
566
|
-
y !==
|
|
563
|
+
var w = g.selectionStart, _ = g.selectionEnd, V = g.value;
|
|
564
|
+
if (V === void 0 && (V = ""), w === _) {
|
|
565
|
+
var y = A(V, w);
|
|
566
|
+
y !== w && I(g, y, V);
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
b(), requestAnimationFrame(function() {
|
|
570
570
|
b();
|
|
571
|
-
}), m(h),
|
|
572
|
-
},
|
|
571
|
+
}), m(h), he(g);
|
|
572
|
+
}, Oe = function(h) {
|
|
573
573
|
h.persist && h.persist();
|
|
574
574
|
var g = h.target, b = h.currentTarget;
|
|
575
|
-
S.current = g,
|
|
576
|
-
var
|
|
575
|
+
S.current = g, p.current.focusTimeout = setTimeout(function() {
|
|
576
|
+
var w = g.selectionStart, _ = g.selectionEnd, V = g.value;
|
|
577
577
|
V === void 0 && (V = "");
|
|
578
|
-
var y = A(V,
|
|
579
|
-
y !==
|
|
578
|
+
var y = A(V, w);
|
|
579
|
+
y !== w && !(w === 0 && _ === V.length) && I(g, y, V), C(Object.assign(Object.assign({}, h), { currentTarget: b }));
|
|
580
580
|
}, 0);
|
|
581
|
-
},
|
|
582
|
-
S.current = null, clearTimeout(
|
|
583
|
-
},
|
|
581
|
+
}, $e = function(h) {
|
|
582
|
+
S.current = null, clearTimeout(p.current.focusTimeout), clearTimeout(p.current.setCaretTimeout), B(h);
|
|
583
|
+
}, Le = ne && Ct() ? "numeric" : void 0, Te = Object.assign({ inputMode: Le }, R, {
|
|
584
584
|
type: e,
|
|
585
|
-
value:
|
|
586
|
-
onChange:
|
|
587
|
-
onKeyDown:
|
|
588
|
-
onMouseUp:
|
|
589
|
-
onFocus:
|
|
590
|
-
onBlur:
|
|
585
|
+
value: P,
|
|
586
|
+
onChange: Re,
|
|
587
|
+
onKeyDown: Ae,
|
|
588
|
+
onMouseUp: _e,
|
|
589
|
+
onFocus: Oe,
|
|
590
|
+
onBlur: $e
|
|
591
591
|
});
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
592
|
+
if (r === "text")
|
|
593
|
+
return a ? re.createElement(re.Fragment, null, a(P, R) || null) : re.createElement("span", Object.assign({}, R, { ref: l }), P);
|
|
594
594
|
if (n) {
|
|
595
|
-
var
|
|
596
|
-
return
|
|
595
|
+
var Me = n;
|
|
596
|
+
return re.createElement(Me, Object.assign({}, Te, { ref: l }));
|
|
597
597
|
}
|
|
598
|
-
return
|
|
598
|
+
return re.createElement("input", Object.assign({}, Te, { ref: l }));
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
var
|
|
602
|
-
|
|
600
|
+
function De(t, e) {
|
|
601
|
+
var r = e.decimalScale, n = e.fixedDecimalScale, a = e.prefix;
|
|
602
|
+
a === void 0 && (a = "");
|
|
603
603
|
var l = e.suffix;
|
|
604
604
|
l === void 0 && (l = "");
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
605
|
+
var c = e.allowNegative, s = e.thousandsGroupStyle;
|
|
606
|
+
if (s === void 0 && (s = "thousand"), t === "" || t === "-")
|
|
607
607
|
return t;
|
|
608
|
-
var d =
|
|
609
|
-
return
|
|
608
|
+
var d = de(e), f = d.thousandSeparator, i = d.decimalSeparator, o = r !== 0 && t.indexOf(".") !== -1 || r && n, u = Be(t, c), v = u.beforeDecimal, m = u.afterDecimal, C = u.addNegation;
|
|
609
|
+
return r !== void 0 && (m = Ie(m, r, !!n)), f && (v = xt(v, f, s)), a && (v = a + v), l && (m = m + l), C && (v = "-" + v), t = v + (o && i || "") + m, t;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function de(t) {
|
|
612
612
|
var e = t.decimalSeparator;
|
|
613
613
|
e === void 0 && (e = ".");
|
|
614
|
-
var
|
|
615
|
-
return
|
|
614
|
+
var r = t.thousandSeparator, n = t.allowedDecimalSeparators;
|
|
615
|
+
return r === !0 && (r = ","), n || (n = [e, "."]), {
|
|
616
616
|
decimalSeparator: e,
|
|
617
|
-
thousandSeparator:
|
|
617
|
+
thousandSeparator: r,
|
|
618
618
|
allowedDecimalSeparators: n
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Nt(t, e) {
|
|
622
622
|
t === void 0 && (t = "");
|
|
623
|
-
var
|
|
624
|
-
return t = t.replace(/-/g, ""),
|
|
623
|
+
var r = new RegExp("(-)"), n = new RegExp("(-)(.)*(-)"), a = r.test(t), l = n.test(t);
|
|
624
|
+
return t = t.replace(/-/g, ""), a && !l && e && (t = "-" + t), t;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
return new RegExp("(^-)|[0-9]|" +
|
|
626
|
+
function It(t, e) {
|
|
627
|
+
return new RegExp("(^-)|[0-9]|" + Ne(t), "g");
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
return t === "" ? !0 : !e?.match(/\d/) && !
|
|
629
|
+
function jt(t, e, r) {
|
|
630
|
+
return t === "" ? !0 : !e?.match(/\d/) && !r?.match(/\d/) && typeof t == "string" && !isNaN(Number(t));
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function kt(t, e, r) {
|
|
633
633
|
var n;
|
|
634
|
-
e === void 0 && (e =
|
|
635
|
-
var
|
|
634
|
+
e === void 0 && (e = Ft(t));
|
|
635
|
+
var a = r.allowNegative, l = r.prefix;
|
|
636
636
|
l === void 0 && (l = "");
|
|
637
|
-
var
|
|
638
|
-
|
|
639
|
-
var
|
|
640
|
-
if (ue(t) && (t === l || t ===
|
|
637
|
+
var c = r.suffix;
|
|
638
|
+
c === void 0 && (c = "");
|
|
639
|
+
var s = r.decimalScale, d = e.from, f = e.to, i = f.start, o = f.end, u = de(r), v = u.allowedDecimalSeparators, m = u.decimalSeparator, C = t[o] === m;
|
|
640
|
+
if (ue(t) && (t === l || t === c) && e.lastValue === "")
|
|
641
641
|
return t;
|
|
642
642
|
if (o - i === 1 && v.indexOf(t[i]) !== -1) {
|
|
643
|
-
var
|
|
644
|
-
t = t.substring(0, i) +
|
|
643
|
+
var B = s === 0 ? "" : m;
|
|
644
|
+
t = t.substring(0, i) + B + t.substring(i + 1, t.length);
|
|
645
645
|
}
|
|
646
|
-
var x = function(S,
|
|
647
|
-
var
|
|
648
|
-
l.startsWith("-") ?
|
|
649
|
-
var A =
|
|
650
|
-
return
|
|
651
|
-
},
|
|
652
|
-
n =
|
|
653
|
-
var
|
|
654
|
-
t.length &&
|
|
655
|
-
var
|
|
656
|
-
t.startsWith(l) ?
|
|
657
|
-
var H = t.length,
|
|
658
|
-
t.endsWith(
|
|
646
|
+
var x = function(S, p, k) {
|
|
647
|
+
var E = !1, I = !1;
|
|
648
|
+
l.startsWith("-") ? E = !1 : S.startsWith("--") ? (E = !1, I = !0) : c.startsWith("-") && S.length === c.length ? E = !1 : S[0] === "-" && (E = !0);
|
|
649
|
+
var A = E ? 1 : 0;
|
|
650
|
+
return I && (A = 2), A && (S = S.substring(A), p -= A, k -= A), { value: S, start: p, end: k, hasNegation: E };
|
|
651
|
+
}, D = x(t, i, o), N = D.hasNegation;
|
|
652
|
+
n = D, t = n.value, i = n.start, o = n.end;
|
|
653
|
+
var j = x(e.lastValue, d.start, d.end), R = j.start, G = j.end, U = j.value, P = t.substring(i, o);
|
|
654
|
+
t.length && U.length && (R > U.length - c.length || G < l.length) && !(P && c.startsWith(P)) && (t = U);
|
|
655
|
+
var M = 0;
|
|
656
|
+
t.startsWith(l) ? M += l.length : i < l.length && (M = i), t = t.substring(M), o -= M;
|
|
657
|
+
var H = t.length, K = t.length - c.length;
|
|
658
|
+
t.endsWith(c) ? H = K : (o > K || o > t.length - c.length) && (H = o), t = t.substring(0, H), t = Nt(N ? "-" + t : t, a), t = (t.match(It(m)) || []).join("");
|
|
659
659
|
var Z = t.indexOf(m);
|
|
660
|
-
t = t.replace(new RegExp(
|
|
661
|
-
return
|
|
660
|
+
t = t.replace(new RegExp(Ne(m), "g"), function(S, p) {
|
|
661
|
+
return p === Z ? "." : "";
|
|
662
662
|
});
|
|
663
|
-
var q =
|
|
664
|
-
return
|
|
663
|
+
var q = Be(t, a), ee = q.beforeDecimal, ne = q.afterDecimal, T = q.addNegation;
|
|
664
|
+
return f.end - f.start < d.end - d.start && ee === "" && C && !parseFloat(ne) && (t = T ? "-" : ""), t;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
var
|
|
668
|
-
|
|
666
|
+
function Et(t, e) {
|
|
667
|
+
var r = e.prefix;
|
|
668
|
+
r === void 0 && (r = "");
|
|
669
669
|
var n = e.suffix;
|
|
670
670
|
n === void 0 && (n = "");
|
|
671
|
-
var
|
|
671
|
+
var a = Array.from({ length: t.length + 1 }).map(function() {
|
|
672
672
|
return !0;
|
|
673
673
|
}), l = t[0] === "-";
|
|
674
|
-
|
|
675
|
-
var
|
|
676
|
-
return
|
|
674
|
+
a.fill(!1, 0, r.length + (l ? 1 : 0));
|
|
675
|
+
var c = t.length;
|
|
676
|
+
return a.fill(!1, c - n.length + 1, c + 1), a;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
var e =
|
|
680
|
-
|
|
678
|
+
function Rt(t) {
|
|
679
|
+
var e = de(t), r = e.thousandSeparator, n = e.decimalSeparator, a = t.prefix;
|
|
680
|
+
a === void 0 && (a = "");
|
|
681
681
|
var l = t.allowNegative;
|
|
682
|
-
if (l === void 0 && (l = !0),
|
|
682
|
+
if (l === void 0 && (l = !0), r === n)
|
|
683
683
|
throw new Error(`
|
|
684
684
|
Decimal separator can't be same as thousand separator.
|
|
685
|
-
thousandSeparator: ` +
|
|
685
|
+
thousandSeparator: ` + r + ` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
686
686
|
decimalSeparator: ` + n + ` (default value for decimalSeparator is .)
|
|
687
687
|
`);
|
|
688
|
-
return
|
|
688
|
+
return a.startsWith("-") && l && (console.error(`
|
|
689
689
|
Prefix can't start with '-' when allowNegative is true.
|
|
690
|
-
prefix: ` +
|
|
690
|
+
prefix: ` + a + `
|
|
691
691
|
allowNegative: ` + l + `
|
|
692
692
|
`), l = !1), Object.assign(Object.assign({}, t), { allowNegative: l });
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
t =
|
|
696
|
-
var e = t.suffix,
|
|
697
|
-
|
|
694
|
+
function At(t) {
|
|
695
|
+
t = Rt(t), t.decimalSeparator, t.allowedDecimalSeparators, t.thousandsGroupStyle;
|
|
696
|
+
var e = t.suffix, r = t.allowNegative, n = t.allowLeadingZeros, a = t.onKeyDown;
|
|
697
|
+
a === void 0 && (a = Q);
|
|
698
698
|
var l = t.onBlur;
|
|
699
699
|
l === void 0 && (l = Q);
|
|
700
|
-
var
|
|
701
|
-
|
|
702
|
-
var i = t.defaultValue, o = t.value,
|
|
703
|
-
return
|
|
704
|
-
},
|
|
705
|
-
return
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
var
|
|
709
|
-
return
|
|
710
|
-
},
|
|
711
|
-
var S =
|
|
712
|
-
if (
|
|
713
|
-
|
|
700
|
+
var c = t.thousandSeparator, s = t.decimalScale, d = t.fixedDecimalScale, f = t.prefix;
|
|
701
|
+
f === void 0 && (f = "");
|
|
702
|
+
var i = t.defaultValue, o = t.value, u = t.valueIsNumericString, v = t.onValueChange, m = we(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), C = de(t), B = C.decimalSeparator, x = C.allowedDecimalSeparators, D = function(T) {
|
|
703
|
+
return De(T, t);
|
|
704
|
+
}, N = function(T, S) {
|
|
705
|
+
return kt(T, S, t);
|
|
706
|
+
}, j = ae(o) ? i : o, R = u ?? jt(j, f, e);
|
|
707
|
+
ae(o) ? ae(i) || (R = R || typeof i == "number") : R = R || typeof o == "number";
|
|
708
|
+
var G = function(T) {
|
|
709
|
+
return Ve(T) ? T : (typeof T == "number" && (T = je(T)), R && typeof s == "number" ? Fe(T, s, !!d) : T);
|
|
710
|
+
}, U = Ee(G(o), G(i), !!R, D, N, v), P = U[0], M = P.numAsString, H = P.formattedValue, K = U[1], Z = function(T) {
|
|
711
|
+
var S = T.target, p = T.key, k = S.selectionStart, E = S.selectionEnd, I = S.value;
|
|
712
|
+
if (I === void 0 && (I = ""), (p === "Backspace" || p === "Delete") && E < f.length) {
|
|
713
|
+
T.preventDefault();
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
|
-
if (
|
|
717
|
-
|
|
716
|
+
if (k !== E) {
|
|
717
|
+
a(T);
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
|
-
|
|
721
|
-
var A =
|
|
722
|
-
|
|
723
|
-
}, q = function(
|
|
724
|
-
var S =
|
|
725
|
-
if (S.match(/\d/g) || (S = ""), n || (S =
|
|
726
|
-
var
|
|
727
|
-
|
|
728
|
-
formattedValue:
|
|
720
|
+
p === "Backspace" && I[0] === "-" && k === f.length + 1 && r && Y(S, 1), s && d && (p === "Backspace" && I[k - 1] === B ? (Y(S, k - 1), T.preventDefault()) : p === "Delete" && I[k] === B && T.preventDefault()), x?.includes(p) && I[k] === B && Y(S, k + 1);
|
|
721
|
+
var A = c === !0 ? "," : c;
|
|
722
|
+
p === "Backspace" && I[k - 1] === A && Y(S, k - 1), p === "Delete" && I[k] === A && Y(S, k + 1), a(T);
|
|
723
|
+
}, q = function(T) {
|
|
724
|
+
var S = M;
|
|
725
|
+
if (S.match(/\d/g) || (S = ""), n || (S = bt(S)), d && s && (S = Fe(S, s, d)), S !== M) {
|
|
726
|
+
var p = De(S, t);
|
|
727
|
+
K({
|
|
728
|
+
formattedValue: p,
|
|
729
729
|
value: S,
|
|
730
730
|
floatValue: parseFloat(S)
|
|
731
731
|
}, {
|
|
732
|
-
event:
|
|
732
|
+
event: T,
|
|
733
733
|
source: oe.event
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
l(
|
|
737
|
-
}, ee = function(
|
|
738
|
-
return
|
|
739
|
-
},
|
|
740
|
-
var S =
|
|
741
|
-
return
|
|
736
|
+
l(T);
|
|
737
|
+
}, ee = function(T) {
|
|
738
|
+
return T === B ? !0 : ue(T);
|
|
739
|
+
}, ne = function(T) {
|
|
740
|
+
var S = T.currentValue, p = T.lastValue, k = T.formattedValue, E = T.currentValueIndex, I = T.formattedValueIndex, A = S[E], te = k[I], ve = ke(p, S), le = ve.to, se = function(me) {
|
|
741
|
+
return N(me).indexOf(".") + f.length;
|
|
742
742
|
};
|
|
743
|
-
return o === 0 && d &&
|
|
743
|
+
return o === 0 && d && s && S[le.start] === B && se(S) < E && se(k) > I ? !1 : E >= le.start && E < le.end && x && x.includes(A) && te === B ? !0 : A === te;
|
|
744
744
|
};
|
|
745
745
|
return Object.assign(Object.assign({}, m), {
|
|
746
746
|
value: H,
|
|
747
747
|
valueIsNumericString: !1,
|
|
748
748
|
isValidInputCharacter: ee,
|
|
749
|
-
isCharacterSame:
|
|
750
|
-
onValueChange:
|
|
751
|
-
format:
|
|
752
|
-
removeFormatting:
|
|
753
|
-
getCaretBoundary: function(
|
|
754
|
-
return
|
|
749
|
+
isCharacterSame: ne,
|
|
750
|
+
onValueChange: K,
|
|
751
|
+
format: D,
|
|
752
|
+
removeFormatting: N,
|
|
753
|
+
getCaretBoundary: function(T) {
|
|
754
|
+
return Et(T, t);
|
|
755
755
|
},
|
|
756
756
|
onKeyDown: Z,
|
|
757
757
|
onBlur: q
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
var e =
|
|
762
|
-
return
|
|
760
|
+
function _t(t) {
|
|
761
|
+
var e = At(t);
|
|
762
|
+
return re.createElement(Vt, Object.assign({}, e));
|
|
763
763
|
}
|
|
764
|
-
const
|
|
765
|
-
const e =
|
|
766
|
-
let
|
|
764
|
+
const Ot = (t) => {
|
|
765
|
+
const e = O.c(16);
|
|
766
|
+
let r, n;
|
|
767
767
|
e[0] !== t ? ({
|
|
768
|
-
options:
|
|
768
|
+
options: r,
|
|
769
769
|
...n
|
|
770
|
-
} = t, e[0] = t, e[1] =
|
|
771
|
-
const
|
|
770
|
+
} = t, e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
|
|
771
|
+
const a = L();
|
|
772
772
|
let l;
|
|
773
|
-
e[3] !==
|
|
773
|
+
e[3] !== a ? (l = $(a), e[3] = a, e[4] = l) : l = e[4];
|
|
774
774
|
const {
|
|
775
|
-
isTouched:
|
|
776
|
-
hasError:
|
|
775
|
+
isTouched: c,
|
|
776
|
+
hasError: s,
|
|
777
777
|
helperText: d
|
|
778
|
-
} = l,
|
|
778
|
+
} = l, f = a.state.value ?? "";
|
|
779
779
|
let i;
|
|
780
|
-
e[5] !==
|
|
780
|
+
e[5] !== a ? (i = (m) => {
|
|
781
781
|
const {
|
|
782
|
-
floatValue:
|
|
782
|
+
floatValue: C
|
|
783
783
|
} = m;
|
|
784
|
-
return
|
|
785
|
-
}, e[5] =
|
|
786
|
-
const o =
|
|
784
|
+
return a.handleChange(C);
|
|
785
|
+
}, e[5] = a, e[6] = i) : i = e[6];
|
|
786
|
+
const o = c && s, u = c && d;
|
|
787
787
|
let v;
|
|
788
|
-
return e[7] !==
|
|
789
|
-
},
|
|
790
|
-
const e =
|
|
791
|
-
let
|
|
788
|
+
return e[7] !== a.handleBlur || e[8] !== a.name || e[9] !== r || e[10] !== n || e[11] !== f || e[12] !== i || e[13] !== o || e[14] !== u ? (v = /* @__PURE__ */ F.jsx(_t, { customInput: Se, name: a.name, value: f, onValueChange: i, onBlur: a.handleBlur, error: o, helperText: u, "aria-label": a.name, ...n, ...r }), e[7] = a.handleBlur, e[8] = a.name, e[9] = r, e[10] = n, e[11] = f, e[12] = i, e[13] = o, e[14] = u, e[15] = v) : v = e[15], v;
|
|
789
|
+
}, $t = (t) => {
|
|
790
|
+
const e = O.c(27);
|
|
791
|
+
let r, n, a;
|
|
792
792
|
e[0] !== t ? ({
|
|
793
|
-
label:
|
|
793
|
+
label: r,
|
|
794
794
|
options: n,
|
|
795
|
-
...
|
|
796
|
-
} = t, e[0] = t, e[1] =
|
|
797
|
-
const l =
|
|
798
|
-
let
|
|
799
|
-
e[4] !== l ? (
|
|
795
|
+
...a
|
|
796
|
+
} = t, e[0] = t, e[1] = r, e[2] = n, e[3] = a) : (r = e[1], n = e[2], a = e[3]);
|
|
797
|
+
const l = L();
|
|
798
|
+
let c;
|
|
799
|
+
e[4] !== l ? (c = $(l), e[4] = l, e[5] = c) : c = e[5];
|
|
800
800
|
const {
|
|
801
|
-
isTouched:
|
|
801
|
+
isTouched: s,
|
|
802
802
|
hasError: d,
|
|
803
|
-
helperText:
|
|
804
|
-
} =
|
|
803
|
+
helperText: f
|
|
804
|
+
} = c;
|
|
805
805
|
let i;
|
|
806
|
-
e[6] !==
|
|
807
|
-
const o = l.name,
|
|
806
|
+
e[6] !== r ? (i = r && /* @__PURE__ */ F.jsx(Pe, { component: "legend", children: r }), e[6] = r, e[7] = i) : i = e[7];
|
|
807
|
+
const o = l.name, u = l.state.value ?? "";
|
|
808
808
|
let v;
|
|
809
|
-
e[8] !== l ? (v = (
|
|
810
|
-
const m = l.handleBlur,
|
|
811
|
-
let
|
|
812
|
-
e[10] !== n ? (
|
|
809
|
+
e[8] !== l ? (v = (j) => l.handleChange(j.target.value), e[8] = l, e[9] = v) : v = e[9];
|
|
810
|
+
const m = l.handleBlur, C = l.name;
|
|
811
|
+
let B;
|
|
812
|
+
e[10] !== n ? (B = n.map(Lt), e[10] = n, e[11] = B) : B = e[11];
|
|
813
813
|
let x;
|
|
814
|
-
e[12] !== l.handleBlur || e[13] !== l.name || e[14] !==
|
|
815
|
-
let
|
|
816
|
-
e[19] !== d || e[20] !==
|
|
817
|
-
let
|
|
818
|
-
return e[23] !==
|
|
814
|
+
e[12] !== l.handleBlur || e[13] !== l.name || e[14] !== a || e[15] !== u || e[16] !== v || e[17] !== B ? (x = /* @__PURE__ */ F.jsx(He, { name: o, value: u, onChange: v, onBlur: m, "aria-label": C, ...a, children: B }), e[12] = l.handleBlur, e[13] = l.name, e[14] = a, e[15] = u, e[16] = v, e[17] = B, e[18] = x) : x = e[18];
|
|
815
|
+
let D;
|
|
816
|
+
e[19] !== d || e[20] !== f || e[21] !== s ? (D = s && d && /* @__PURE__ */ F.jsx(fe, { error: d, children: f }), e[19] = d, e[20] = f, e[21] = s, e[22] = D) : D = e[22];
|
|
817
|
+
let N;
|
|
818
|
+
return e[23] !== D || e[24] !== i || e[25] !== x ? (N = /* @__PURE__ */ F.jsxs(ce, { component: "fieldset", children: [
|
|
819
819
|
i,
|
|
820
820
|
x,
|
|
821
|
-
|
|
822
|
-
] }), e[23] =
|
|
821
|
+
D
|
|
822
|
+
] }), e[23] = D, e[24] = i, e[25] = x, e[26] = N) : N = e[26], N;
|
|
823
823
|
};
|
|
824
|
-
function
|
|
825
|
-
return /* @__PURE__ */
|
|
824
|
+
function Lt(t) {
|
|
825
|
+
return /* @__PURE__ */ F.jsx(be, { value: t.value, control: /* @__PURE__ */ F.jsx(Ze, {}), label: t.label }, t.value);
|
|
826
826
|
}
|
|
827
|
-
const
|
|
828
|
-
const e =
|
|
829
|
-
let
|
|
827
|
+
const Mt = (t) => {
|
|
828
|
+
const e = O.c(23);
|
|
829
|
+
let r, n;
|
|
830
830
|
e[0] !== t ? ({
|
|
831
|
-
label:
|
|
831
|
+
label: r,
|
|
832
832
|
...n
|
|
833
|
-
} = t, e[0] = t, e[1] =
|
|
834
|
-
const
|
|
833
|
+
} = t, e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
|
|
834
|
+
const a = L();
|
|
835
835
|
let l;
|
|
836
|
-
e[3] !==
|
|
836
|
+
e[3] !== a ? (l = $(a), e[3] = a, e[4] = l) : l = e[4];
|
|
837
837
|
const {
|
|
838
|
-
isTouched:
|
|
839
|
-
hasError:
|
|
838
|
+
isTouched: c,
|
|
839
|
+
hasError: s,
|
|
840
840
|
helperText: d
|
|
841
841
|
} = l;
|
|
842
|
-
let
|
|
843
|
-
e[5] !==
|
|
844
|
-
const i =
|
|
842
|
+
let f;
|
|
843
|
+
e[5] !== r ? (f = r && /* @__PURE__ */ F.jsx(Pe, { children: r }), e[5] = r, e[6] = f) : f = e[6];
|
|
844
|
+
const i = a.state.value ?? 0;
|
|
845
845
|
let o;
|
|
846
|
-
e[7] !==
|
|
847
|
-
let
|
|
848
|
-
e[9] !==
|
|
846
|
+
e[7] !== a ? (o = (C, B) => a.handleChange(Array.isArray(B) ? B[0] : B), e[7] = a, e[8] = o) : o = e[8];
|
|
847
|
+
let u;
|
|
848
|
+
e[9] !== a.handleBlur || e[10] !== a.name || e[11] !== n || e[12] !== i || e[13] !== o ? (u = /* @__PURE__ */ F.jsx(qe, { name: a.name, value: i, onChange: o, onBlur: a.handleBlur, "aria-label": a.name, ...n }), e[9] = a.handleBlur, e[10] = a.name, e[11] = n, e[12] = i, e[13] = o, e[14] = u) : u = e[14];
|
|
849
849
|
let v;
|
|
850
|
-
e[15] !==
|
|
850
|
+
e[15] !== s || e[16] !== d || e[17] !== c ? (v = c && s && /* @__PURE__ */ F.jsx(fe, { error: s, children: d }), e[15] = s, e[16] = d, e[17] = c, e[18] = v) : v = e[18];
|
|
851
851
|
let m;
|
|
852
|
-
return e[19] !==
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
return e[19] !== f || e[20] !== u || e[21] !== v ? (m = /* @__PURE__ */ F.jsxs(ce, { component: "fieldset", children: [
|
|
853
|
+
f,
|
|
854
|
+
u,
|
|
855
855
|
v
|
|
856
|
-
] }), e[19] =
|
|
857
|
-
},
|
|
858
|
-
const e =
|
|
856
|
+
] }), e[19] = f, e[20] = u, e[21] = v, e[22] = m) : m = e[22], m;
|
|
857
|
+
}, Kt = (t) => {
|
|
858
|
+
const e = O.c(8), r = qt();
|
|
859
859
|
let n;
|
|
860
|
-
e[0] !==
|
|
861
|
-
|
|
862
|
-
}, e[0] =
|
|
863
|
-
const
|
|
860
|
+
e[0] !== r ? (n = (s) => {
|
|
861
|
+
s.preventDefault(), s.stopPropagation(), r.handleSubmit();
|
|
862
|
+
}, e[0] = r, e[1] = n) : n = e[1];
|
|
863
|
+
const a = n;
|
|
864
864
|
let l;
|
|
865
|
-
e[2] !==
|
|
866
|
-
const [d,
|
|
867
|
-
return /* @__PURE__ */
|
|
868
|
-
}, e[2] =
|
|
869
|
-
let
|
|
870
|
-
return e[5] !==
|
|
865
|
+
e[2] !== a || e[3] !== t ? (l = (s) => {
|
|
866
|
+
const [d, f] = s;
|
|
867
|
+
return /* @__PURE__ */ F.jsx(ze, { loading: f, disabled: !d, onClick: a, type: "submit", "aria-label": "submit", ...t });
|
|
868
|
+
}, e[2] = a, e[3] = t, e[4] = l) : l = e[4];
|
|
869
|
+
let c;
|
|
870
|
+
return e[5] !== r.Subscribe || e[6] !== l ? (c = /* @__PURE__ */ F.jsx(r.Subscribe, { selector: Gt, children: l }), e[5] = r.Subscribe, e[6] = l, e[7] = c) : c = e[7], c;
|
|
871
871
|
};
|
|
872
|
-
function
|
|
872
|
+
function Gt(t) {
|
|
873
873
|
return [t.canSubmit, t.isSubmitting];
|
|
874
874
|
}
|
|
875
|
-
const
|
|
876
|
-
const e =
|
|
875
|
+
const Ut = (t) => {
|
|
876
|
+
const e = O.c(20), r = L();
|
|
877
877
|
let n;
|
|
878
|
-
e[0] !==
|
|
878
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
879
879
|
const {
|
|
880
|
-
isTouched:
|
|
880
|
+
isTouched: a,
|
|
881
881
|
hasError: l,
|
|
882
|
-
helperText:
|
|
883
|
-
} = n,
|
|
884
|
-
let
|
|
885
|
-
e[2] !==
|
|
882
|
+
helperText: c
|
|
883
|
+
} = n, s = r.name, d = !!r.state.value;
|
|
884
|
+
let f;
|
|
885
|
+
e[2] !== r ? (f = (C) => r.handleChange(C.target.checked), e[2] = r, e[3] = f) : f = e[3];
|
|
886
886
|
let i;
|
|
887
|
-
e[4] !==
|
|
887
|
+
e[4] !== r.handleBlur || e[5] !== r.name || e[6] !== t || e[7] !== d || e[8] !== f ? (i = /* @__PURE__ */ F.jsx(Je, { name: s, checked: d, onChange: f, onBlur: r.handleBlur, "aria-label": r.name, ...t }), e[4] = r.handleBlur, e[5] = r.name, e[6] = t, e[7] = d, e[8] = f, e[9] = i) : i = e[9];
|
|
888
888
|
const o = t.label ?? "";
|
|
889
|
-
let
|
|
890
|
-
e[10] !== i || e[11] !== o ? (
|
|
889
|
+
let u;
|
|
890
|
+
e[10] !== i || e[11] !== o ? (u = /* @__PURE__ */ F.jsx(be, { control: i, label: o }), e[10] = i, e[11] = o, e[12] = u) : u = e[12];
|
|
891
891
|
let v;
|
|
892
|
-
e[13] !== l || e[14] !==
|
|
892
|
+
e[13] !== l || e[14] !== c || e[15] !== a ? (v = a && l && /* @__PURE__ */ F.jsx(fe, { error: l, children: c }), e[13] = l, e[14] = c, e[15] = a, e[16] = v) : v = e[16];
|
|
893
893
|
let m;
|
|
894
|
-
return e[17] !==
|
|
895
|
-
|
|
894
|
+
return e[17] !== u || e[18] !== v ? (m = /* @__PURE__ */ F.jsxs(ce, { component: "fieldset", children: [
|
|
895
|
+
u,
|
|
896
896
|
v
|
|
897
|
-
] }), e[17] =
|
|
898
|
-
},
|
|
899
|
-
const e =
|
|
897
|
+
] }), e[17] = u, e[18] = v, e[19] = m) : m = e[19], m;
|
|
898
|
+
}, Wt = (t) => {
|
|
899
|
+
const e = O.c(12), r = L();
|
|
900
900
|
let n;
|
|
901
|
-
e[0] !==
|
|
901
|
+
e[0] !== r ? (n = $(r), e[0] = r, e[1] = n) : n = e[1];
|
|
902
902
|
const {
|
|
903
|
-
isTouched:
|
|
903
|
+
isTouched: a,
|
|
904
904
|
hasError: l,
|
|
905
|
-
helperText:
|
|
906
|
-
} = n,
|
|
905
|
+
helperText: c
|
|
906
|
+
} = n, s = r.state.value ?? "";
|
|
907
907
|
let d;
|
|
908
|
-
e[2] !==
|
|
909
|
-
const
|
|
908
|
+
e[2] !== r ? (d = (u) => r.handleChange(u.target.value), e[2] = r, e[3] = d) : d = e[3];
|
|
909
|
+
const f = a && l, i = a && c;
|
|
910
910
|
let o;
|
|
911
|
-
return e[4] !==
|
|
911
|
+
return e[4] !== r.handleBlur || e[5] !== r.name || e[6] !== t || e[7] !== s || e[8] !== d || e[9] !== f || e[10] !== i ? (o = /* @__PURE__ */ F.jsx(Se, { name: r.name, value: s, onChange: d, onBlur: r.handleBlur, error: f, helperText: i, "aria-label": r.name, ...t }), e[4] = r.handleBlur, e[5] = r.name, e[6] = t, e[7] = s, e[8] = d, e[9] = f, e[10] = i, e[11] = o) : o = e[11], o;
|
|
912
912
|
}, {
|
|
913
|
-
fieldContext:
|
|
914
|
-
useFieldContext:
|
|
915
|
-
formContext:
|
|
916
|
-
useFormContext:
|
|
917
|
-
} =
|
|
918
|
-
useAppForm:
|
|
919
|
-
withForm:
|
|
920
|
-
} =
|
|
913
|
+
fieldContext: Ht,
|
|
914
|
+
useFieldContext: L,
|
|
915
|
+
formContext: Zt,
|
|
916
|
+
useFormContext: qt
|
|
917
|
+
} = Ke(), {
|
|
918
|
+
useAppForm: rr,
|
|
919
|
+
withForm: ar
|
|
920
|
+
} = Ge({
|
|
921
921
|
fieldComponents: {
|
|
922
|
-
TextField:
|
|
923
|
-
NumberField:
|
|
924
|
-
Autocomplete:
|
|
925
|
-
Checkbox:
|
|
926
|
-
Switch:
|
|
927
|
-
RadioGroup:
|
|
928
|
-
Slider:
|
|
929
|
-
DatePicker:
|
|
930
|
-
DateRangePicker:
|
|
931
|
-
TimePicker:
|
|
932
|
-
TimeRangePicker:
|
|
933
|
-
DateTimePicker:
|
|
934
|
-
DateTimeRangePicker:
|
|
922
|
+
TextField: Wt,
|
|
923
|
+
NumberField: Ot,
|
|
924
|
+
Autocomplete: it,
|
|
925
|
+
Checkbox: ot,
|
|
926
|
+
Switch: Ut,
|
|
927
|
+
RadioGroup: $t,
|
|
928
|
+
Slider: Mt,
|
|
929
|
+
DatePicker: ut,
|
|
930
|
+
DateRangePicker: st,
|
|
931
|
+
TimePicker: ft,
|
|
932
|
+
TimeRangePicker: ct,
|
|
933
|
+
DateTimePicker: dt,
|
|
934
|
+
DateTimeRangePicker: vt
|
|
935
935
|
},
|
|
936
936
|
formComponents: {
|
|
937
|
-
SubmitButton:
|
|
937
|
+
SubmitButton: Kt
|
|
938
938
|
},
|
|
939
|
-
fieldContext:
|
|
940
|
-
formContext:
|
|
941
|
-
}),
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
})
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
},
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
email: t.username.toLowerCase(),
|
|
979
|
-
groups: t.idTokenClaims?.groups
|
|
980
|
-
}, a = Yt.safeParse(e);
|
|
981
|
-
return a.success ? a.data : (console.error("User validation failed:", a.error), null);
|
|
939
|
+
fieldContext: Ht,
|
|
940
|
+
formContext: Zt
|
|
941
|
+
}), nr = ({
|
|
942
|
+
timeToEvaluate: t = 100,
|
|
943
|
+
averageWaitTime: e = 50,
|
|
944
|
+
startCharacter: r = [],
|
|
945
|
+
endCharacter: n = ["Enter", "Escape"],
|
|
946
|
+
onComplete: a,
|
|
947
|
+
onError: l,
|
|
948
|
+
minLength: c = 1,
|
|
949
|
+
ignoreIfFocusOn: s,
|
|
950
|
+
stopPropagation: d = !1,
|
|
951
|
+
preventDefault: f = !1,
|
|
952
|
+
container: i = document,
|
|
953
|
+
enabled: o = !0
|
|
954
|
+
}) => {
|
|
955
|
+
const u = X([]), v = X(!1), m = () => {
|
|
956
|
+
u.current = [];
|
|
957
|
+
}, C = () => {
|
|
958
|
+
clearTimeout(v.current);
|
|
959
|
+
const D = u.current.map(({
|
|
960
|
+
time: j
|
|
961
|
+
}, R, G) => R > 0 ? j - G[R - 1].time : 0).slice(1).reduce((j, R) => j + R, 0) / (u.current.length - 1), N = u.current.slice(r.length > 0 ? 1 : 0).filter(({
|
|
962
|
+
char: j
|
|
963
|
+
}) => j !== "Shift" && j !== "Tab").map(({
|
|
964
|
+
char: j
|
|
965
|
+
}) => j).join("");
|
|
966
|
+
D <= e && u.current.slice(r.length > 0 ? 1 : 0).length >= c ? a(N) : D <= e && l && l(N), m();
|
|
967
|
+
}, B = lt((x) => {
|
|
968
|
+
o && (x.currentTarget !== s && (n.includes(x.key) && C(), (u.current.length > 0 || r.includes(x.key) || r.length === 0) && (clearTimeout(v.current), v.current = setTimeout(C, t), u.current.push({
|
|
969
|
+
time: performance.now(),
|
|
970
|
+
char: x.key
|
|
971
|
+
}))), d && x.stopPropagation(), f && x.preventDefault());
|
|
972
|
+
}, [r, n, t, a, l, c, s, d, f, o]);
|
|
973
|
+
ie(() => () => {
|
|
974
|
+
clearTimeout(v.current);
|
|
975
|
+
}, []), ie(() => (i.addEventListener("keydown", B), () => {
|
|
976
|
+
i.removeEventListener("keydown", B);
|
|
977
|
+
}), [B]);
|
|
982
978
|
};
|
|
983
|
-
function ea() {
|
|
984
|
-
return pe(fe.getActiveAccount());
|
|
985
|
-
}
|
|
986
979
|
export {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
980
|
+
sr as useDialogs,
|
|
981
|
+
L as useFieldContext,
|
|
982
|
+
qt as useFormContext,
|
|
983
|
+
fr as useInView,
|
|
984
|
+
rr as useLayoutForm,
|
|
985
|
+
nr as useScanDetection,
|
|
986
|
+
or as useTranslation,
|
|
987
|
+
ar as withLayoutForm
|
|
995
988
|
};
|
|
996
989
|
//# sourceMappingURL=hooks.js.map
|