wcz-test 6.22.1 → 6.22.2

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.
Files changed (38) hide show
  1. package/dist/ApprovalStatus-BtAVFn5p.js +8 -0
  2. package/dist/{ApprovalStatus-C9HPyMiS.js.map → ApprovalStatus-BtAVFn5p.js.map} +1 -1
  3. package/dist/DialogsContext-DMZRefiY.js.map +1 -1
  4. package/dist/DialogsHooks-BEZgPVSk.js +277 -0
  5. package/dist/DialogsHooks-BEZgPVSk.js.map +1 -0
  6. package/dist/FileHooks-BJdvBvBr.js +465 -0
  7. package/dist/FileHooks-BJdvBvBr.js.map +1 -0
  8. package/dist/FileMeta-G1oT3mYK.js.map +1 -1
  9. package/dist/RouterListItemButton-CagMd8F_.js +35 -0
  10. package/dist/RouterListItemButton-CagMd8F_.js.map +1 -0
  11. package/dist/{UseHook-DB7btKDE.js → UseHook-CGSDGsbk.js} +4 -2
  12. package/dist/{UseHook-DB7btKDE.js.map → UseHook-CGSDGsbk.js.map} +1 -1
  13. package/dist/client.js +1 -1
  14. package/dist/compiler-runtime-BGHur82y.js +46 -0
  15. package/dist/compiler-runtime-BGHur82y.js.map +1 -0
  16. package/dist/components.js +1362 -305
  17. package/dist/components.js.map +1 -1
  18. package/dist/hooks.js +937 -281
  19. package/dist/hooks.js.map +1 -1
  20. package/dist/index.js +1717 -505
  21. package/dist/index.js.map +1 -1
  22. package/dist/models.js +27 -50
  23. package/dist/models.js.map +1 -1
  24. package/dist/queries.js +755 -206
  25. package/dist/queries.js.map +1 -1
  26. package/dist/{utils-CKW5pi6k.js → utils-CCjnelFb.js} +47 -18
  27. package/dist/{utils-CKW5pi6k.js.map → utils-CCjnelFb.js.map} +1 -1
  28. package/dist/utils.js +1 -1
  29. package/dist/vite.js +9 -3
  30. package/dist/vite.js.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/ApprovalStatus-C9HPyMiS.js +0 -24
  33. package/dist/DialogsHooks-DBK6rBoU.js +0 -37
  34. package/dist/DialogsHooks-DBK6rBoU.js.map +0 -1
  35. package/dist/FileHooks-BM2Oyvh6.js +0 -194
  36. package/dist/FileHooks-BM2Oyvh6.js.map +0 -1
  37. package/dist/RouterListItemButton-Vj6OoqkV.js +0 -15
  38. package/dist/RouterListItemButton-Vj6OoqkV.js.map +0 -1
package/dist/hooks.js CHANGED
@@ -1,327 +1,983 @@
1
1
  import { createFormHookContexts, createFormHook } from "@tanstack/react-form";
2
2
  import { j as jsxRuntimeExports } from "./DialogsContext-DMZRefiY.js";
3
- import { Autocomplete, TextField, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, RadioGroup, Radio, Slider, Button, Switch } from "@mui/material";
4
- import { g as getFieldStatus } from "./utils-CKW5pi6k.js";
3
+ import { c as compilerRuntimeExports } from "./compiler-runtime-BGHur82y.js";
4
+ import { Autocomplete, TextField, Checkbox, FormControlLabel, FormHelperText, FormControl, RadioGroup, Radio, FormLabel, Slider, Button, Switch } from "@mui/material";
5
+ import { g as getFieldStatus } from "./utils-CCjnelFb.js";
5
6
  import { DatePicker, DateRangePicker, TimePicker, TimeRangePicker, DateTimePicker, DateTimeRangePicker } from "@mui/x-date-pickers-pro";
6
7
  import { NumericFormat } from "react-number-format";
7
- import { u } from "./DialogsHooks-DBK6rBoU.js";
8
- import { u as u2 } from "./UseHook-DB7btKDE.js";
8
+ import { u } from "./DialogsHooks-BEZgPVSk.js";
9
+ import { u as u2 } from "./UseHook-CGSDGsbk.js";
9
10
  import { useInView } from "react-intersection-observer";
10
- const FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
11
+ const FormAutocomplete = (t0) => {
12
+ const $ = compilerRuntimeExports.c(23);
13
+ let autocompleteProps;
14
+ let textFieldProps;
15
+ if ($[0] !== t0) {
16
+ ({
17
+ textFieldProps,
18
+ ...autocompleteProps
19
+ } = t0);
20
+ $[0] = t0;
21
+ $[1] = autocompleteProps;
22
+ $[2] = textFieldProps;
23
+ } else {
24
+ autocompleteProps = $[1];
25
+ textFieldProps = $[2];
26
+ }
11
27
  const field = useFieldContext();
12
- const { isTouched, hasError, helperText } = getFieldStatus(field);
13
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
14
- Autocomplete,
15
- {
16
- value: field.state.value,
17
- onChange: (_, value) => !autocompleteProps.freeSolo && field.handleChange(value),
18
- onInputChange: (_, value, reason) => reason !== "reset" && autocompleteProps.freeSolo && field.handleChange(value),
19
- onBlur: field.handleBlur,
20
- "aria-label": field.name,
21
- ...autocompleteProps,
22
- renderInput: (parameters) => /* @__PURE__ */ jsxRuntimeExports.jsx(
23
- TextField,
24
- {
25
- ...parameters,
26
- name: field.name,
27
- error: isTouched && hasError,
28
- helperText: isTouched && helperText,
29
- ...textFieldProps
30
- }
31
- )
32
- }
33
- );
28
+ let t1;
29
+ if ($[3] !== field) {
30
+ t1 = getFieldStatus(field);
31
+ $[3] = field;
32
+ $[4] = t1;
33
+ } else {
34
+ t1 = $[4];
35
+ }
36
+ const {
37
+ isTouched,
38
+ hasError,
39
+ helperText
40
+ } = t1;
41
+ let t2;
42
+ let t3;
43
+ if ($[5] !== autocompleteProps.freeSolo || $[6] !== field) {
44
+ t2 = (_, value) => !autocompleteProps.freeSolo && field.handleChange(value);
45
+ t3 = (__0, value_0, reason) => reason !== "reset" && autocompleteProps.freeSolo && field.handleChange(value_0);
46
+ $[5] = autocompleteProps.freeSolo;
47
+ $[6] = field;
48
+ $[7] = t2;
49
+ $[8] = t3;
50
+ } else {
51
+ t2 = $[7];
52
+ t3 = $[8];
53
+ }
54
+ let t4;
55
+ if ($[9] !== field.name || $[10] !== hasError || $[11] !== helperText || $[12] !== isTouched || $[13] !== textFieldProps) {
56
+ t4 = (parameters) => /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, { ...parameters, name: field.name, error: isTouched && hasError, helperText: isTouched && helperText, ...textFieldProps });
57
+ $[9] = field.name;
58
+ $[10] = hasError;
59
+ $[11] = helperText;
60
+ $[12] = isTouched;
61
+ $[13] = textFieldProps;
62
+ $[14] = t4;
63
+ } else {
64
+ t4 = $[14];
65
+ }
66
+ let t5;
67
+ if ($[15] !== autocompleteProps || $[16] !== field.handleBlur || $[17] !== field.name || $[18] !== field.state.value || $[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
68
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, { value: field.state.value, onChange: t2, onInputChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...autocompleteProps, renderInput: t4 });
69
+ $[15] = autocompleteProps;
70
+ $[16] = field.handleBlur;
71
+ $[17] = field.name;
72
+ $[18] = field.state.value;
73
+ $[19] = t2;
74
+ $[20] = t3;
75
+ $[21] = t4;
76
+ $[22] = t5;
77
+ } else {
78
+ t5 = $[22];
79
+ }
80
+ return t5;
34
81
  };
35
82
  const FormCheckbox = (props) => {
83
+ const $ = compilerRuntimeExports.c(20);
36
84
  const field = useFieldContext();
37
- const { isTouched, hasError, helperText } = getFieldStatus(field);
38
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
39
- /* @__PURE__ */ jsxRuntimeExports.jsx(
40
- FormControlLabel,
41
- {
42
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(
43
- Checkbox,
44
- {
45
- name: field.name,
46
- checked: Boolean(field.state.value),
47
- onChange: (event) => field.handleChange(event.target.checked),
48
- onBlur: field.handleBlur,
49
- "aria-label": field.name,
50
- ...props
51
- }
52
- ),
53
- label: props.label ?? ""
54
- }
55
- ),
56
- isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText })
57
- ] });
85
+ let t0;
86
+ if ($[0] !== field) {
87
+ t0 = getFieldStatus(field);
88
+ $[0] = field;
89
+ $[1] = t0;
90
+ } else {
91
+ t0 = $[1];
92
+ }
93
+ const {
94
+ isTouched,
95
+ hasError,
96
+ helperText
97
+ } = t0;
98
+ const t1 = field.name;
99
+ const t2 = Boolean(field.state.value);
100
+ let t3;
101
+ if ($[2] !== field) {
102
+ t3 = (event) => field.handleChange(event.target.checked);
103
+ $[2] = field;
104
+ $[3] = t3;
105
+ } else {
106
+ t3 = $[3];
107
+ }
108
+ let t4;
109
+ if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t2 || $[8] !== t3) {
110
+ t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { name: t1, checked: t2, onChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...props });
111
+ $[4] = field.handleBlur;
112
+ $[5] = field.name;
113
+ $[6] = props;
114
+ $[7] = t2;
115
+ $[8] = t3;
116
+ $[9] = t4;
117
+ } else {
118
+ t4 = $[9];
119
+ }
120
+ const t5 = props.label ?? "";
121
+ let t6;
122
+ if ($[10] !== t4 || $[11] !== t5) {
123
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { control: t4, label: t5 });
124
+ $[10] = t4;
125
+ $[11] = t5;
126
+ $[12] = t6;
127
+ } else {
128
+ t6 = $[12];
129
+ }
130
+ let t7;
131
+ if ($[13] !== hasError || $[14] !== helperText || $[15] !== isTouched) {
132
+ t7 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
133
+ $[13] = hasError;
134
+ $[14] = helperText;
135
+ $[15] = isTouched;
136
+ $[16] = t7;
137
+ } else {
138
+ t7 = $[16];
139
+ }
140
+ let t8;
141
+ if ($[17] !== t6 || $[18] !== t7) {
142
+ t8 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
143
+ t6,
144
+ t7
145
+ ] });
146
+ $[17] = t6;
147
+ $[18] = t7;
148
+ $[19] = t8;
149
+ } else {
150
+ t8 = $[19];
151
+ }
152
+ return t8;
58
153
  };
59
154
  const FormDatePicker = (props) => {
155
+ const $ = compilerRuntimeExports.c(18);
60
156
  const field = useFieldContext();
61
- const { isTouched, hasError, helperText } = getFieldStatus(field);
62
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
63
- DatePicker,
64
- {
65
- name: field.name,
66
- value: field.state.value,
67
- onChange: (value) => field.handleChange(value),
68
- slotProps: {
69
- textField: {
70
- onBlur: field.handleBlur,
71
- error: isTouched && hasError,
72
- helperText: isTouched && helperText,
73
- ...props.textFieldProps
74
- },
75
- ...props.slotProps
76
- },
77
- "aria-label": field.name,
78
- ...props
79
- }
80
- );
157
+ let t0;
158
+ if ($[0] !== field) {
159
+ t0 = getFieldStatus(field);
160
+ $[0] = field;
161
+ $[1] = t0;
162
+ } else {
163
+ t0 = $[1];
164
+ }
165
+ const {
166
+ isTouched,
167
+ hasError,
168
+ helperText
169
+ } = t0;
170
+ let t1;
171
+ if ($[2] !== field) {
172
+ t1 = (value) => field.handleChange(value);
173
+ $[2] = field;
174
+ $[3] = t1;
175
+ } else {
176
+ t1 = $[3];
177
+ }
178
+ const t2 = isTouched && hasError;
179
+ const t3 = isTouched && helperText;
180
+ let t4;
181
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
182
+ t4 = {
183
+ onBlur: field.handleBlur,
184
+ error: t2,
185
+ helperText: t3,
186
+ ...props.textFieldProps
187
+ };
188
+ $[4] = field.handleBlur;
189
+ $[5] = props.textFieldProps;
190
+ $[6] = t2;
191
+ $[7] = t3;
192
+ $[8] = t4;
193
+ } else {
194
+ t4 = $[8];
195
+ }
196
+ let t5;
197
+ if ($[9] !== props.slotProps || $[10] !== t4) {
198
+ t5 = {
199
+ textField: t4,
200
+ ...props.slotProps
201
+ };
202
+ $[9] = props.slotProps;
203
+ $[10] = t4;
204
+ $[11] = t5;
205
+ } else {
206
+ t5 = $[11];
207
+ }
208
+ let t6;
209
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
210
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DatePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
211
+ $[12] = field.name;
212
+ $[13] = field.state.value;
213
+ $[14] = props;
214
+ $[15] = t1;
215
+ $[16] = t5;
216
+ $[17] = t6;
217
+ } else {
218
+ t6 = $[17];
219
+ }
220
+ return t6;
81
221
  };
82
222
  const FormDateRangePicker = (props) => {
223
+ const $ = compilerRuntimeExports.c(18);
83
224
  const field = useFieldContext();
84
- const { isTouched, hasError, helperText } = getFieldStatus(field);
85
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
86
- DateRangePicker,
87
- {
88
- name: field.name,
89
- value: field.state.value,
90
- onChange: (value) => field.handleChange(value),
91
- slotProps: {
92
- textField: {
93
- onBlur: field.handleBlur,
94
- error: isTouched && hasError,
95
- helperText: isTouched && helperText,
96
- ...props.textFieldProps
97
- },
98
- ...props.slotProps
99
- },
100
- "aria-label": field.name,
101
- ...props
102
- }
103
- );
225
+ let t0;
226
+ if ($[0] !== field) {
227
+ t0 = getFieldStatus(field);
228
+ $[0] = field;
229
+ $[1] = t0;
230
+ } else {
231
+ t0 = $[1];
232
+ }
233
+ const {
234
+ isTouched,
235
+ hasError,
236
+ helperText
237
+ } = t0;
238
+ let t1;
239
+ if ($[2] !== field) {
240
+ t1 = (value) => field.handleChange(value);
241
+ $[2] = field;
242
+ $[3] = t1;
243
+ } else {
244
+ t1 = $[3];
245
+ }
246
+ const t2 = isTouched && hasError;
247
+ const t3 = isTouched && helperText;
248
+ let t4;
249
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
250
+ t4 = {
251
+ onBlur: field.handleBlur,
252
+ error: t2,
253
+ helperText: t3,
254
+ ...props.textFieldProps
255
+ };
256
+ $[4] = field.handleBlur;
257
+ $[5] = props.textFieldProps;
258
+ $[6] = t2;
259
+ $[7] = t3;
260
+ $[8] = t4;
261
+ } else {
262
+ t4 = $[8];
263
+ }
264
+ let t5;
265
+ if ($[9] !== props.slotProps || $[10] !== t4) {
266
+ t5 = {
267
+ textField: t4,
268
+ ...props.slotProps
269
+ };
270
+ $[9] = props.slotProps;
271
+ $[10] = t4;
272
+ $[11] = t5;
273
+ } else {
274
+ t5 = $[11];
275
+ }
276
+ let t6;
277
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
278
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
279
+ $[12] = field.name;
280
+ $[13] = field.state.value;
281
+ $[14] = props;
282
+ $[15] = t1;
283
+ $[16] = t5;
284
+ $[17] = t6;
285
+ } else {
286
+ t6 = $[17];
287
+ }
288
+ return t6;
104
289
  };
105
290
  const FormTimePicker = (props) => {
291
+ const $ = compilerRuntimeExports.c(18);
106
292
  const field = useFieldContext();
107
- const { isTouched, hasError, helperText } = getFieldStatus(field);
108
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
109
- TimePicker,
110
- {
111
- name: field.name,
112
- value: field.state.value,
113
- onChange: (value) => field.handleChange(value),
114
- slotProps: {
115
- textField: {
116
- onBlur: field.handleBlur,
117
- error: isTouched && hasError,
118
- helperText: isTouched && helperText,
119
- ...props.textFieldProps
120
- },
121
- ...props.slotProps
122
- },
123
- "aria-label": field.name,
124
- ...props
125
- }
126
- );
293
+ let t0;
294
+ if ($[0] !== field) {
295
+ t0 = getFieldStatus(field);
296
+ $[0] = field;
297
+ $[1] = t0;
298
+ } else {
299
+ t0 = $[1];
300
+ }
301
+ const {
302
+ isTouched,
303
+ hasError,
304
+ helperText
305
+ } = t0;
306
+ let t1;
307
+ if ($[2] !== field) {
308
+ t1 = (value) => field.handleChange(value);
309
+ $[2] = field;
310
+ $[3] = t1;
311
+ } else {
312
+ t1 = $[3];
313
+ }
314
+ const t2 = isTouched && hasError;
315
+ const t3 = isTouched && helperText;
316
+ let t4;
317
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
318
+ t4 = {
319
+ onBlur: field.handleBlur,
320
+ error: t2,
321
+ helperText: t3,
322
+ ...props.textFieldProps
323
+ };
324
+ $[4] = field.handleBlur;
325
+ $[5] = props.textFieldProps;
326
+ $[6] = t2;
327
+ $[7] = t3;
328
+ $[8] = t4;
329
+ } else {
330
+ t4 = $[8];
331
+ }
332
+ let t5;
333
+ if ($[9] !== props.slotProps || $[10] !== t4) {
334
+ t5 = {
335
+ textField: t4,
336
+ ...props.slotProps
337
+ };
338
+ $[9] = props.slotProps;
339
+ $[10] = t4;
340
+ $[11] = t5;
341
+ } else {
342
+ t5 = $[11];
343
+ }
344
+ let t6;
345
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
346
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(TimePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
347
+ $[12] = field.name;
348
+ $[13] = field.state.value;
349
+ $[14] = props;
350
+ $[15] = t1;
351
+ $[16] = t5;
352
+ $[17] = t6;
353
+ } else {
354
+ t6 = $[17];
355
+ }
356
+ return t6;
127
357
  };
128
358
  const FormTimeRangePicker = (props) => {
359
+ const $ = compilerRuntimeExports.c(18);
129
360
  const field = useFieldContext();
130
- const { isTouched, hasError, helperText } = getFieldStatus(field);
131
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
132
- TimeRangePicker,
133
- {
134
- name: field.name,
135
- value: field.state.value,
136
- onChange: (value) => field.handleChange(value),
137
- slotProps: {
138
- textField: {
139
- onBlur: field.handleBlur,
140
- error: isTouched && hasError,
141
- helperText: isTouched && helperText,
142
- ...props.textFieldProps
143
- },
144
- ...props.slotProps
145
- },
146
- "aria-label": field.name,
147
- ...props
148
- }
149
- );
361
+ let t0;
362
+ if ($[0] !== field) {
363
+ t0 = getFieldStatus(field);
364
+ $[0] = field;
365
+ $[1] = t0;
366
+ } else {
367
+ t0 = $[1];
368
+ }
369
+ const {
370
+ isTouched,
371
+ hasError,
372
+ helperText
373
+ } = t0;
374
+ let t1;
375
+ if ($[2] !== field) {
376
+ t1 = (value) => field.handleChange(value);
377
+ $[2] = field;
378
+ $[3] = t1;
379
+ } else {
380
+ t1 = $[3];
381
+ }
382
+ const t2 = isTouched && hasError;
383
+ const t3 = isTouched && helperText;
384
+ let t4;
385
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
386
+ t4 = {
387
+ onBlur: field.handleBlur,
388
+ error: t2,
389
+ helperText: t3,
390
+ ...props.textFieldProps
391
+ };
392
+ $[4] = field.handleBlur;
393
+ $[5] = props.textFieldProps;
394
+ $[6] = t2;
395
+ $[7] = t3;
396
+ $[8] = t4;
397
+ } else {
398
+ t4 = $[8];
399
+ }
400
+ let t5;
401
+ if ($[9] !== props.slotProps || $[10] !== t4) {
402
+ t5 = {
403
+ textField: t4,
404
+ ...props.slotProps
405
+ };
406
+ $[9] = props.slotProps;
407
+ $[10] = t4;
408
+ $[11] = t5;
409
+ } else {
410
+ t5 = $[11];
411
+ }
412
+ let t6;
413
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
414
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(TimeRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
415
+ $[12] = field.name;
416
+ $[13] = field.state.value;
417
+ $[14] = props;
418
+ $[15] = t1;
419
+ $[16] = t5;
420
+ $[17] = t6;
421
+ } else {
422
+ t6 = $[17];
423
+ }
424
+ return t6;
150
425
  };
151
426
  const FormDateTimePicker = (props) => {
427
+ const $ = compilerRuntimeExports.c(18);
152
428
  const field = useFieldContext();
153
- const { isTouched, hasError, helperText } = getFieldStatus(field);
154
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
155
- DateTimePicker,
156
- {
157
- name: field.name,
158
- value: field.state.value,
159
- onChange: (value) => field.handleChange(value),
160
- slotProps: {
161
- textField: {
162
- onBlur: field.handleBlur,
163
- error: isTouched && hasError,
164
- helperText: isTouched && helperText,
165
- ...props.textFieldProps
166
- },
167
- ...props.slotProps
168
- },
169
- "aria-label": field.name,
170
- ...props
171
- }
172
- );
429
+ let t0;
430
+ if ($[0] !== field) {
431
+ t0 = getFieldStatus(field);
432
+ $[0] = field;
433
+ $[1] = t0;
434
+ } else {
435
+ t0 = $[1];
436
+ }
437
+ const {
438
+ isTouched,
439
+ hasError,
440
+ helperText
441
+ } = t0;
442
+ let t1;
443
+ if ($[2] !== field) {
444
+ t1 = (value) => field.handleChange(value);
445
+ $[2] = field;
446
+ $[3] = t1;
447
+ } else {
448
+ t1 = $[3];
449
+ }
450
+ const t2 = isTouched && hasError;
451
+ const t3 = isTouched && helperText;
452
+ let t4;
453
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
454
+ t4 = {
455
+ onBlur: field.handleBlur,
456
+ error: t2,
457
+ helperText: t3,
458
+ ...props.textFieldProps
459
+ };
460
+ $[4] = field.handleBlur;
461
+ $[5] = props.textFieldProps;
462
+ $[6] = t2;
463
+ $[7] = t3;
464
+ $[8] = t4;
465
+ } else {
466
+ t4 = $[8];
467
+ }
468
+ let t5;
469
+ if ($[9] !== props.slotProps || $[10] !== t4) {
470
+ t5 = {
471
+ textField: t4,
472
+ ...props.slotProps
473
+ };
474
+ $[9] = props.slotProps;
475
+ $[10] = t4;
476
+ $[11] = t5;
477
+ } else {
478
+ t5 = $[11];
479
+ }
480
+ let t6;
481
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
482
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateTimePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
483
+ $[12] = field.name;
484
+ $[13] = field.state.value;
485
+ $[14] = props;
486
+ $[15] = t1;
487
+ $[16] = t5;
488
+ $[17] = t6;
489
+ } else {
490
+ t6 = $[17];
491
+ }
492
+ return t6;
173
493
  };
174
494
  const FormDateTimeRangePicker = (props) => {
495
+ const $ = compilerRuntimeExports.c(18);
175
496
  const field = useFieldContext();
176
- const { isTouched, hasError, helperText } = getFieldStatus(field);
177
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
178
- DateTimeRangePicker,
179
- {
180
- name: field.name,
181
- value: field.state.value,
182
- onChange: (value) => field.handleChange(value),
183
- slotProps: {
184
- textField: {
185
- onBlur: field.handleBlur,
186
- error: isTouched && hasError,
187
- helperText: isTouched && helperText,
188
- ...props.textFieldProps
189
- },
190
- ...props.slotProps
191
- },
192
- "aria-label": field.name,
193
- ...props
194
- }
195
- );
497
+ let t0;
498
+ if ($[0] !== field) {
499
+ t0 = getFieldStatus(field);
500
+ $[0] = field;
501
+ $[1] = t0;
502
+ } else {
503
+ t0 = $[1];
504
+ }
505
+ const {
506
+ isTouched,
507
+ hasError,
508
+ helperText
509
+ } = t0;
510
+ let t1;
511
+ if ($[2] !== field) {
512
+ t1 = (value) => field.handleChange(value);
513
+ $[2] = field;
514
+ $[3] = t1;
515
+ } else {
516
+ t1 = $[3];
517
+ }
518
+ const t2 = isTouched && hasError;
519
+ const t3 = isTouched && helperText;
520
+ let t4;
521
+ if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
522
+ t4 = {
523
+ onBlur: field.handleBlur,
524
+ error: t2,
525
+ helperText: t3,
526
+ ...props.textFieldProps
527
+ };
528
+ $[4] = field.handleBlur;
529
+ $[5] = props.textFieldProps;
530
+ $[6] = t2;
531
+ $[7] = t3;
532
+ $[8] = t4;
533
+ } else {
534
+ t4 = $[8];
535
+ }
536
+ let t5;
537
+ if ($[9] !== props.slotProps || $[10] !== t4) {
538
+ t5 = {
539
+ textField: t4,
540
+ ...props.slotProps
541
+ };
542
+ $[9] = props.slotProps;
543
+ $[10] = t4;
544
+ $[11] = t5;
545
+ } else {
546
+ t5 = $[11];
547
+ }
548
+ let t6;
549
+ if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
550
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateTimeRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
551
+ $[12] = field.name;
552
+ $[13] = field.state.value;
553
+ $[14] = props;
554
+ $[15] = t1;
555
+ $[16] = t5;
556
+ $[17] = t6;
557
+ } else {
558
+ t6 = $[17];
559
+ }
560
+ return t6;
196
561
  };
197
- const FormNumberField = ({ options, ...props }) => {
562
+ const FormNumberField = (t0) => {
563
+ const $ = compilerRuntimeExports.c(16);
564
+ let options;
565
+ let props;
566
+ if ($[0] !== t0) {
567
+ ({
568
+ options,
569
+ ...props
570
+ } = t0);
571
+ $[0] = t0;
572
+ $[1] = options;
573
+ $[2] = props;
574
+ } else {
575
+ options = $[1];
576
+ props = $[2];
577
+ }
198
578
  const field = useFieldContext();
199
- const { isTouched, hasError, helperText } = getFieldStatus(field);
200
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
201
- NumericFormat,
202
- {
203
- customInput: TextField,
204
- name: field.name,
205
- value: field.state.value ?? "",
206
- onValueChange: ({ floatValue }) => field.handleChange(floatValue),
207
- onBlur: field.handleBlur,
208
- error: isTouched && hasError,
209
- helperText: isTouched && helperText,
210
- "aria-label": field.name,
211
- ...props,
212
- ...options
213
- }
214
- );
579
+ let t1;
580
+ if ($[3] !== field) {
581
+ t1 = getFieldStatus(field);
582
+ $[3] = field;
583
+ $[4] = t1;
584
+ } else {
585
+ t1 = $[4];
586
+ }
587
+ const {
588
+ isTouched,
589
+ hasError,
590
+ helperText
591
+ } = t1;
592
+ const t2 = field.state.value ?? "";
593
+ let t3;
594
+ if ($[5] !== field) {
595
+ t3 = (t42) => {
596
+ const {
597
+ floatValue
598
+ } = t42;
599
+ return field.handleChange(floatValue);
600
+ };
601
+ $[5] = field;
602
+ $[6] = t3;
603
+ } else {
604
+ t3 = $[6];
605
+ }
606
+ const t4 = isTouched && hasError;
607
+ const t5 = isTouched && helperText;
608
+ let t6;
609
+ if ($[7] !== field.handleBlur || $[8] !== field.name || $[9] !== options || $[10] !== props || $[11] !== t2 || $[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
610
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(NumericFormat, { customInput: TextField, name: field.name, value: t2, onValueChange: t3, onBlur: field.handleBlur, error: t4, helperText: t5, "aria-label": field.name, ...props, ...options });
611
+ $[7] = field.handleBlur;
612
+ $[8] = field.name;
613
+ $[9] = options;
614
+ $[10] = props;
615
+ $[11] = t2;
616
+ $[12] = t3;
617
+ $[13] = t4;
618
+ $[14] = t5;
619
+ $[15] = t6;
620
+ } else {
621
+ t6 = $[15];
622
+ }
623
+ return t6;
215
624
  };
216
- const FormRadioGroup = ({ label, options, ...props }) => {
625
+ const FormRadioGroup = (t0) => {
626
+ const $ = compilerRuntimeExports.c(27);
627
+ let label;
628
+ let options;
629
+ let props;
630
+ if ($[0] !== t0) {
631
+ ({
632
+ label,
633
+ options,
634
+ ...props
635
+ } = t0);
636
+ $[0] = t0;
637
+ $[1] = label;
638
+ $[2] = options;
639
+ $[3] = props;
640
+ } else {
641
+ label = $[1];
642
+ options = $[2];
643
+ props = $[3];
644
+ }
217
645
  const field = useFieldContext();
218
- const { isTouched, hasError, helperText } = getFieldStatus(field);
219
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
220
- label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { component: "legend", children: label }),
221
- /* @__PURE__ */ jsxRuntimeExports.jsx(
222
- RadioGroup,
223
- {
224
- name: field.name,
225
- value: field.state.value ?? "",
226
- onChange: (event) => field.handleChange(event.target.value),
227
- onBlur: field.handleBlur,
228
- "aria-label": field.name,
229
- ...props,
230
- children: options.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx(
231
- FormControlLabel,
232
- {
233
- value: option.value,
234
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(Radio, {}),
235
- label: option.label
236
- },
237
- option.value
238
- ))
239
- }
240
- ),
241
- isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText })
242
- ] });
646
+ let t1;
647
+ if ($[4] !== field) {
648
+ t1 = getFieldStatus(field);
649
+ $[4] = field;
650
+ $[5] = t1;
651
+ } else {
652
+ t1 = $[5];
653
+ }
654
+ const {
655
+ isTouched,
656
+ hasError,
657
+ helperText
658
+ } = t1;
659
+ let t2;
660
+ if ($[6] !== label) {
661
+ t2 = label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { component: "legend", children: label });
662
+ $[6] = label;
663
+ $[7] = t2;
664
+ } else {
665
+ t2 = $[7];
666
+ }
667
+ const t3 = field.name;
668
+ const t4 = field.state.value ?? "";
669
+ let t5;
670
+ if ($[8] !== field) {
671
+ t5 = (event) => field.handleChange(event.target.value);
672
+ $[8] = field;
673
+ $[9] = t5;
674
+ } else {
675
+ t5 = $[9];
676
+ }
677
+ const t6 = field.handleBlur;
678
+ const t7 = field.name;
679
+ let t8;
680
+ if ($[10] !== options) {
681
+ t8 = options.map(_temp$1);
682
+ $[10] = options;
683
+ $[11] = t8;
684
+ } else {
685
+ t8 = $[11];
686
+ }
687
+ let t9;
688
+ if ($[12] !== field.handleBlur || $[13] !== field.name || $[14] !== props || $[15] !== t4 || $[16] !== t5 || $[17] !== t8) {
689
+ t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroup, { name: t3, value: t4, onChange: t5, onBlur: t6, "aria-label": t7, ...props, children: t8 });
690
+ $[12] = field.handleBlur;
691
+ $[13] = field.name;
692
+ $[14] = props;
693
+ $[15] = t4;
694
+ $[16] = t5;
695
+ $[17] = t8;
696
+ $[18] = t9;
697
+ } else {
698
+ t9 = $[18];
699
+ }
700
+ let t10;
701
+ if ($[19] !== hasError || $[20] !== helperText || $[21] !== isTouched) {
702
+ t10 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
703
+ $[19] = hasError;
704
+ $[20] = helperText;
705
+ $[21] = isTouched;
706
+ $[22] = t10;
707
+ } else {
708
+ t10 = $[22];
709
+ }
710
+ let t11;
711
+ if ($[23] !== t10 || $[24] !== t2 || $[25] !== t9) {
712
+ t11 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
713
+ t2,
714
+ t9,
715
+ t10
716
+ ] });
717
+ $[23] = t10;
718
+ $[24] = t2;
719
+ $[25] = t9;
720
+ $[26] = t11;
721
+ } else {
722
+ t11 = $[26];
723
+ }
724
+ return t11;
243
725
  };
244
- const FormSlider = ({ label, ...props }) => {
726
+ function _temp$1(option) {
727
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { value: option.value, control: /* @__PURE__ */ jsxRuntimeExports.jsx(Radio, {}), label: option.label }, option.value);
728
+ }
729
+ const FormSlider = (t0) => {
730
+ const $ = compilerRuntimeExports.c(23);
731
+ let label;
732
+ let props;
733
+ if ($[0] !== t0) {
734
+ ({
735
+ label,
736
+ ...props
737
+ } = t0);
738
+ $[0] = t0;
739
+ $[1] = label;
740
+ $[2] = props;
741
+ } else {
742
+ label = $[1];
743
+ props = $[2];
744
+ }
245
745
  const field = useFieldContext();
246
- const { isTouched, hasError, helperText } = getFieldStatus(field);
247
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
248
- label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { children: label }),
249
- /* @__PURE__ */ jsxRuntimeExports.jsx(
250
- Slider,
251
- {
252
- name: field.name,
253
- value: field.state.value ?? 0,
254
- onChange: (_, value) => field.handleChange(Array.isArray(value) ? value[0] : value),
255
- onBlur: field.handleBlur,
256
- "aria-label": field.name,
257
- ...props
258
- }
259
- ),
260
- isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText })
261
- ] });
746
+ let t1;
747
+ if ($[3] !== field) {
748
+ t1 = getFieldStatus(field);
749
+ $[3] = field;
750
+ $[4] = t1;
751
+ } else {
752
+ t1 = $[4];
753
+ }
754
+ const {
755
+ isTouched,
756
+ hasError,
757
+ helperText
758
+ } = t1;
759
+ let t2;
760
+ if ($[5] !== label) {
761
+ t2 = label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { children: label });
762
+ $[5] = label;
763
+ $[6] = t2;
764
+ } else {
765
+ t2 = $[6];
766
+ }
767
+ const t3 = field.state.value ?? 0;
768
+ let t4;
769
+ if ($[7] !== field) {
770
+ t4 = (_, value) => field.handleChange(Array.isArray(value) ? value[0] : value);
771
+ $[7] = field;
772
+ $[8] = t4;
773
+ } else {
774
+ t4 = $[8];
775
+ }
776
+ let t5;
777
+ if ($[9] !== field.handleBlur || $[10] !== field.name || $[11] !== props || $[12] !== t3 || $[13] !== t4) {
778
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { name: field.name, value: t3, onChange: t4, onBlur: field.handleBlur, "aria-label": field.name, ...props });
779
+ $[9] = field.handleBlur;
780
+ $[10] = field.name;
781
+ $[11] = props;
782
+ $[12] = t3;
783
+ $[13] = t4;
784
+ $[14] = t5;
785
+ } else {
786
+ t5 = $[14];
787
+ }
788
+ let t6;
789
+ if ($[15] !== hasError || $[16] !== helperText || $[17] !== isTouched) {
790
+ t6 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
791
+ $[15] = hasError;
792
+ $[16] = helperText;
793
+ $[17] = isTouched;
794
+ $[18] = t6;
795
+ } else {
796
+ t6 = $[18];
797
+ }
798
+ let t7;
799
+ if ($[19] !== t2 || $[20] !== t5 || $[21] !== t6) {
800
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
801
+ t2,
802
+ t5,
803
+ t6
804
+ ] });
805
+ $[19] = t2;
806
+ $[20] = t5;
807
+ $[21] = t6;
808
+ $[22] = t7;
809
+ } else {
810
+ t7 = $[22];
811
+ }
812
+ return t7;
262
813
  };
263
814
  const FormSubmitButton = (props) => {
815
+ const $ = compilerRuntimeExports.c(8);
264
816
  const form = useFormContext();
265
- const handleClick = (event) => {
266
- event.preventDefault();
267
- event.stopPropagation();
268
- form.handleSubmit();
269
- };
270
- return /* @__PURE__ */ jsxRuntimeExports.jsx(form.Subscribe, { selector: (state) => [state.canSubmit, state.isSubmitting], children: ([canSubmit, isSubmitting]) => /* @__PURE__ */ jsxRuntimeExports.jsx(
271
- Button,
272
- {
273
- loading: isSubmitting,
274
- disabled: !canSubmit,
275
- onClick: handleClick,
276
- type: "submit",
277
- "aria-label": "submit",
278
- ...props
279
- }
280
- ) });
817
+ let t0;
818
+ if ($[0] !== form) {
819
+ t0 = (event) => {
820
+ event.preventDefault();
821
+ event.stopPropagation();
822
+ form.handleSubmit();
823
+ };
824
+ $[0] = form;
825
+ $[1] = t0;
826
+ } else {
827
+ t0 = $[1];
828
+ }
829
+ const handleClick = t0;
830
+ let t1;
831
+ if ($[2] !== handleClick || $[3] !== props) {
832
+ t1 = (t22) => {
833
+ const [canSubmit, isSubmitting] = t22;
834
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { loading: isSubmitting, disabled: !canSubmit, onClick: handleClick, type: "submit", "aria-label": "submit", ...props });
835
+ };
836
+ $[2] = handleClick;
837
+ $[3] = props;
838
+ $[4] = t1;
839
+ } else {
840
+ t1 = $[4];
841
+ }
842
+ let t2;
843
+ if ($[5] !== form.Subscribe || $[6] !== t1) {
844
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(form.Subscribe, { selector: _temp, children: t1 });
845
+ $[5] = form.Subscribe;
846
+ $[6] = t1;
847
+ $[7] = t2;
848
+ } else {
849
+ t2 = $[7];
850
+ }
851
+ return t2;
281
852
  };
853
+ function _temp(state) {
854
+ return [state.canSubmit, state.isSubmitting];
855
+ }
282
856
  const FormSwitch = (props) => {
857
+ const $ = compilerRuntimeExports.c(20);
283
858
  const field = useFieldContext();
284
- const { isTouched, hasError, helperText } = getFieldStatus(field);
285
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
286
- /* @__PURE__ */ jsxRuntimeExports.jsx(
287
- FormControlLabel,
288
- {
289
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(
290
- Switch,
291
- {
292
- name: field.name,
293
- checked: Boolean(field.state.value),
294
- onChange: (event) => field.handleChange(event.target.checked),
295
- onBlur: field.handleBlur,
296
- "aria-label": field.name,
297
- ...props
298
- }
299
- ),
300
- label: props.label ?? ""
301
- }
302
- ),
303
- isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText })
304
- ] });
859
+ let t0;
860
+ if ($[0] !== field) {
861
+ t0 = getFieldStatus(field);
862
+ $[0] = field;
863
+ $[1] = t0;
864
+ } else {
865
+ t0 = $[1];
866
+ }
867
+ const {
868
+ isTouched,
869
+ hasError,
870
+ helperText
871
+ } = t0;
872
+ const t1 = field.name;
873
+ const t2 = Boolean(field.state.value);
874
+ let t3;
875
+ if ($[2] !== field) {
876
+ t3 = (event) => field.handleChange(event.target.checked);
877
+ $[2] = field;
878
+ $[3] = t3;
879
+ } else {
880
+ t3 = $[3];
881
+ }
882
+ let t4;
883
+ if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t2 || $[8] !== t3) {
884
+ t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, { name: t1, checked: t2, onChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...props });
885
+ $[4] = field.handleBlur;
886
+ $[5] = field.name;
887
+ $[6] = props;
888
+ $[7] = t2;
889
+ $[8] = t3;
890
+ $[9] = t4;
891
+ } else {
892
+ t4 = $[9];
893
+ }
894
+ const t5 = props.label ?? "";
895
+ let t6;
896
+ if ($[10] !== t4 || $[11] !== t5) {
897
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { control: t4, label: t5 });
898
+ $[10] = t4;
899
+ $[11] = t5;
900
+ $[12] = t6;
901
+ } else {
902
+ t6 = $[12];
903
+ }
904
+ let t7;
905
+ if ($[13] !== hasError || $[14] !== helperText || $[15] !== isTouched) {
906
+ t7 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
907
+ $[13] = hasError;
908
+ $[14] = helperText;
909
+ $[15] = isTouched;
910
+ $[16] = t7;
911
+ } else {
912
+ t7 = $[16];
913
+ }
914
+ let t8;
915
+ if ($[17] !== t6 || $[18] !== t7) {
916
+ t8 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
917
+ t6,
918
+ t7
919
+ ] });
920
+ $[17] = t6;
921
+ $[18] = t7;
922
+ $[19] = t8;
923
+ } else {
924
+ t8 = $[19];
925
+ }
926
+ return t8;
305
927
  };
306
928
  const FormTextField = (props) => {
929
+ const $ = compilerRuntimeExports.c(12);
307
930
  const field = useFieldContext();
308
- const { isTouched, hasError, helperText } = getFieldStatus(field);
309
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
310
- TextField,
311
- {
312
- name: field.name,
313
- value: field.state.value ?? "",
314
- onChange: (event) => field.handleChange(event.target.value),
315
- onBlur: field.handleBlur,
316
- error: isTouched && hasError,
317
- helperText: isTouched && helperText,
318
- "aria-label": field.name,
319
- ...props
320
- }
321
- );
931
+ let t0;
932
+ if ($[0] !== field) {
933
+ t0 = getFieldStatus(field);
934
+ $[0] = field;
935
+ $[1] = t0;
936
+ } else {
937
+ t0 = $[1];
938
+ }
939
+ const {
940
+ isTouched,
941
+ hasError,
942
+ helperText
943
+ } = t0;
944
+ const t1 = field.state.value ?? "";
945
+ let t2;
946
+ if ($[2] !== field) {
947
+ t2 = (event) => field.handleChange(event.target.value);
948
+ $[2] = field;
949
+ $[3] = t2;
950
+ } else {
951
+ t2 = $[3];
952
+ }
953
+ const t3 = isTouched && hasError;
954
+ const t4 = isTouched && helperText;
955
+ let t5;
956
+ if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t1 || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
957
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, { name: field.name, value: t1, onChange: t2, onBlur: field.handleBlur, error: t3, helperText: t4, "aria-label": field.name, ...props });
958
+ $[4] = field.handleBlur;
959
+ $[5] = field.name;
960
+ $[6] = props;
961
+ $[7] = t1;
962
+ $[8] = t2;
963
+ $[9] = t3;
964
+ $[10] = t4;
965
+ $[11] = t5;
966
+ } else {
967
+ t5 = $[11];
968
+ }
969
+ return t5;
322
970
  };
323
- const { fieldContext, useFieldContext, formContext, useFormContext } = createFormHookContexts();
324
- const { useAppForm: useLayoutForm, withForm: withLayoutForm } = createFormHook({
971
+ const {
972
+ fieldContext,
973
+ useFieldContext,
974
+ formContext,
975
+ useFormContext
976
+ } = createFormHookContexts();
977
+ const {
978
+ useAppForm: useLayoutForm,
979
+ withForm: withLayoutForm
980
+ } = createFormHook({
325
981
  fieldComponents: {
326
982
  TextField: FormTextField,
327
983
  NumberField: FormNumberField,