react-hook-form-cloudscape 1.5.1 → 1.7.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/README.md +5 -5
- package/components/attribute-editor/attribute-editor.d.ts +1 -1
- package/components/attribute-editor/attribute-editor.js +1 -1
- package/components/attribute-editor/attribute-editor.js.map +1 -1
- package/components/autosuggest/autosuggest.d.ts +0 -2
- package/components/autosuggest/autosuggest.js +8 -9
- package/components/autosuggest/autosuggest.js.map +1 -1
- package/components/cards/cards.d.ts +5 -2
- package/components/cards/cards.js +3 -3
- package/components/cards/cards.js.map +1 -1
- package/components/checkbox/checkbox.d.ts +5 -2
- package/components/checkbox/checkbox.js +2 -2
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/code-editor/code-editor.d.ts +5 -2
- package/components/code-editor/code-editor.js +2 -2
- package/components/code-editor/code-editor.js.map +1 -1
- package/components/components/attribute-editor/attribute-editor.d.ts +1 -1
- package/components/components/autosuggest/autosuggest.d.ts +0 -2
- package/components/components/cards/cards.d.ts +5 -2
- package/components/components/checkbox/checkbox.d.ts +5 -2
- package/components/components/code-editor/code-editor.d.ts +5 -2
- package/components/components/date-range-picker/date-range-picker.d.ts +5 -2
- package/components/components/property-filter/property-filter.d.ts +1 -1
- package/components/components/radio-group/radio-group.d.ts +5 -2
- package/components/components/tag-editor/tag-editor.d.ts +5 -2
- package/components/components/text-filter/text-filter.d.ts +5 -2
- package/components/components/tiles/tiles.d.ts +5 -2
- package/components/components/time-input/time-input.d.ts +5 -2
- package/components/components/toggle/toggle.d.ts +5 -2
- package/components/date-range-picker/date-range-picker.d.ts +5 -2
- package/components/date-range-picker/date-range-picker.js +3 -3
- package/components/date-range-picker/date-range-picker.js.map +1 -1
- package/components/property-filter/property-filter.d.ts +1 -1
- package/components/property-filter/property-filter.js +2 -2
- package/components/property-filter/property-filter.js.map +1 -1
- package/components/radio-group/radio-group.d.ts +5 -2
- package/components/radio-group/radio-group.js +2 -2
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/tag-editor/tag-editor.d.ts +5 -2
- package/components/tag-editor/tag-editor.js +2 -2
- package/components/tag-editor/tag-editor.js.map +1 -1
- package/components/text-filter/text-filter.d.ts +5 -2
- package/components/text-filter/text-filter.js +2 -2
- package/components/text-filter/text-filter.js.map +1 -1
- package/components/tiles/tiles.d.ts +5 -2
- package/components/tiles/tiles.js +2 -2
- package/components/tiles/tiles.js.map +1 -1
- package/components/time-input/time-input.d.ts +5 -2
- package/components/time-input/time-input.js +2 -2
- package/components/time-input/time-input.js.map +1 -1
- package/components/toggle/toggle.d.ts +5 -2
- package/components/toggle/toggle.js +2 -2
- package/components/toggle/toggle.js.map +1 -1
- package/package.json +24 -14
- package/react-hook-form-cloudscape.es.js +600 -531
- package/react-hook-form-cloudscape.es.js.map +1 -1
- package/react-hook-form-cloudscape.umd.js +10 -10
- package/react-hook-form-cloudscape.umd.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Fe, { useMemo as hr, useCallback as
|
|
1
|
+
import Fe, { useMemo as hr, useCallback as x } from "react";
|
|
2
2
|
import { AttributeEditor as Er, Autosuggest as yr, Checkbox as mr, Cards as Rr, CodeEditor as _r, DatePicker as xr, DateRangePicker as gr, FileUpload as jr, Input as Tr, Multiselect as Or, PropertyFilter as Sr, RadioGroup as Pr, S3ResourceSelector as wr, Select as kr, Slider as Cr, TagEditor as Fr, TextFilter as Dr, Textarea as Ar, Tiles as Ir, TimeInput as $r, Toggle as Wr } from "@cloudscape-design/components";
|
|
3
3
|
import { useFormState as Yr, useFieldArray as Mr, get as Ur, Controller as S } from "react-hook-form";
|
|
4
4
|
var G = { exports: {} }, U = {};
|
|
@@ -15,15 +15,15 @@ var we;
|
|
|
15
15
|
function Lr() {
|
|
16
16
|
if (we) return U;
|
|
17
17
|
we = 1;
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
for (
|
|
23
|
-
if (
|
|
24
|
-
return { $$typeof:
|
|
18
|
+
var u = Fe, f = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, t = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function l(p, n, a) {
|
|
20
|
+
var i, v = {}, m = null, _ = null;
|
|
21
|
+
a !== void 0 && (m = "" + a), n.key !== void 0 && (m = "" + n.key), n.ref !== void 0 && (_ = n.ref);
|
|
22
|
+
for (i in n) c.call(n, i) && !t.hasOwnProperty(i) && (v[i] = n[i]);
|
|
23
|
+
if (p && p.defaultProps) for (i in n = p.defaultProps, n) v[i] === void 0 && (v[i] = n[i]);
|
|
24
|
+
return { $$typeof: f, type: p, key: m, ref: _, props: v, _owner: d.current };
|
|
25
25
|
}
|
|
26
|
-
return U.Fragment =
|
|
26
|
+
return U.Fragment = s, U.jsx = l, U.jsxs = l, U;
|
|
27
27
|
}
|
|
28
28
|
var L = {};
|
|
29
29
|
/**
|
|
@@ -38,46 +38,46 @@ var L = {};
|
|
|
38
38
|
var ke;
|
|
39
39
|
function Vr() {
|
|
40
40
|
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var
|
|
41
|
+
var u = Fe, f = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), p = Symbol.for("react.context"), n = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), T = Symbol.iterator, K = "@@iterator";
|
|
42
42
|
function Ae(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
45
|
var r = T && e[T] || e[K];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var I =
|
|
48
|
+
var I = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function P(e) {
|
|
50
50
|
{
|
|
51
|
-
for (var r = arguments.length,
|
|
52
|
-
|
|
53
|
-
Ie("error", e,
|
|
51
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), b = 1; b < r; b++)
|
|
52
|
+
o[b - 1] = arguments[b];
|
|
53
|
+
Ie("error", e, o);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function Ie(e, r,
|
|
56
|
+
function Ie(e, r, o) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
var
|
|
58
|
+
var b = I.ReactDebugCurrentFrame, R = b.getStackAddendum();
|
|
59
|
+
R !== "" && (r += "%s", o = o.concat([R]));
|
|
60
|
+
var g = o.map(function(y) {
|
|
61
61
|
return String(y);
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var $e = !1, We = !1, Ye = !1, Me = !1, Ue = !1, ae;
|
|
67
67
|
ae = Symbol.for("react.module.reference");
|
|
68
68
|
function Le(e) {
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === t || Ue || e === d || e === a || e === i || Me || e === _ || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === v || e.$$typeof === l || e.$$typeof === p || e.$$typeof === n || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
73
|
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function Ve(e, r,
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
var
|
|
80
|
-
return
|
|
75
|
+
function Ve(e, r, o) {
|
|
76
|
+
var b = e.displayName;
|
|
77
|
+
if (b)
|
|
78
|
+
return b;
|
|
79
|
+
var R = r.displayName || r.name || "";
|
|
80
|
+
return R !== "" ? o + "(" + R + ")" : o;
|
|
81
81
|
}
|
|
82
82
|
function ie(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
@@ -90,36 +90,36 @@ function Vr() {
|
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case
|
|
93
|
+
case c:
|
|
94
94
|
return "Fragment";
|
|
95
|
-
case
|
|
95
|
+
case s:
|
|
96
96
|
return "Portal";
|
|
97
97
|
case t:
|
|
98
98
|
return "Profiler";
|
|
99
|
-
case
|
|
99
|
+
case d:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case a:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case i:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case p:
|
|
109
109
|
var r = e;
|
|
110
110
|
return ie(r) + ".Consumer";
|
|
111
|
+
case l:
|
|
112
|
+
var o = e;
|
|
113
|
+
return ie(o._context) + ".Provider";
|
|
111
114
|
case n:
|
|
112
|
-
var s = e;
|
|
113
|
-
return ie(s._context) + ".Provider";
|
|
114
|
-
case c:
|
|
115
115
|
return Ve(e, e.render, "ForwardRef");
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
116
|
+
case v:
|
|
117
|
+
var b = e.displayName || null;
|
|
118
|
+
return b !== null ? b : F(e.type) || "Memo";
|
|
119
|
+
case m: {
|
|
120
|
+
var R = e, g = R._payload, y = R._init;
|
|
121
121
|
try {
|
|
122
|
-
return F(y(
|
|
122
|
+
return F(y(g));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -190,14 +190,14 @@ function Vr() {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
var z = I.ReactCurrentDispatcher, X;
|
|
193
|
-
function V(e, r,
|
|
193
|
+
function V(e, r, o) {
|
|
194
194
|
{
|
|
195
195
|
if (X === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
var
|
|
200
|
-
X =
|
|
198
|
+
} catch (R) {
|
|
199
|
+
var b = R.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
X = b && b[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
203
|
` + X + e;
|
|
@@ -212,16 +212,16 @@ function Vr() {
|
|
|
212
212
|
if (!e || H)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
215
|
+
var o = N.get(e);
|
|
216
|
+
if (o !== void 0)
|
|
217
|
+
return o;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var b;
|
|
220
220
|
H = !0;
|
|
221
|
-
var
|
|
221
|
+
var R = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var g;
|
|
224
|
+
g = z.current, z.current = null, Ne();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
227
|
var y = function() {
|
|
@@ -235,14 +235,14 @@ function Vr() {
|
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(y, []);
|
|
237
237
|
} catch (k) {
|
|
238
|
-
|
|
238
|
+
b = k;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(e, [], y);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
y.call();
|
|
244
244
|
} catch (k) {
|
|
245
|
-
|
|
245
|
+
b = k;
|
|
246
246
|
}
|
|
247
247
|
e.call(y.prototype);
|
|
248
248
|
}
|
|
@@ -250,14 +250,14 @@ function Vr() {
|
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
252
|
} catch (k) {
|
|
253
|
-
|
|
253
|
+
b = k;
|
|
254
254
|
}
|
|
255
255
|
e();
|
|
256
256
|
}
|
|
257
257
|
} catch (k) {
|
|
258
|
-
if (k &&
|
|
258
|
+
if (k && b && typeof k.stack == "string") {
|
|
259
259
|
for (var E = k.stack.split(`
|
|
260
|
-
`), w =
|
|
260
|
+
`), w = b.stack.split(`
|
|
261
261
|
`), j = E.length - 1, O = w.length - 1; j >= 1 && O >= 0 && E[j] !== w[O]; )
|
|
262
262
|
O--;
|
|
263
263
|
for (; j >= 1 && O >= 0; j--, O--)
|
|
@@ -274,19 +274,19 @@ function Vr() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
H = !1, z.current =
|
|
277
|
+
H = !1, z.current = g, qe(), Error.prepareStackTrace = R;
|
|
278
278
|
}
|
|
279
279
|
var W = e ? e.displayName || e.name : "", A = W ? V(W) : "";
|
|
280
280
|
return typeof e == "function" && N.set(e, A), A;
|
|
281
281
|
}
|
|
282
|
-
function Ge(e, r,
|
|
282
|
+
function Ge(e, r, o) {
|
|
283
283
|
return pe(e, !1);
|
|
284
284
|
}
|
|
285
285
|
function Ke(e) {
|
|
286
286
|
var r = e.prototype;
|
|
287
287
|
return !!(r && r.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function q(e, r,
|
|
289
|
+
function q(e, r, o) {
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
@@ -294,21 +294,21 @@ function Vr() {
|
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return V(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
297
|
+
case a:
|
|
298
298
|
return V("Suspense");
|
|
299
|
-
case
|
|
299
|
+
case i:
|
|
300
300
|
return V("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case
|
|
304
|
+
case n:
|
|
305
305
|
return Ge(e.render);
|
|
306
|
-
case
|
|
307
|
-
return q(e.type, r,
|
|
308
|
-
case
|
|
309
|
-
var
|
|
306
|
+
case v:
|
|
307
|
+
return q(e.type, r, o);
|
|
308
|
+
case m: {
|
|
309
|
+
var b = e, R = b._payload, g = b._init;
|
|
310
310
|
try {
|
|
311
|
-
return q(
|
|
311
|
+
return q(g(R), r, o);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -318,27 +318,27 @@ function Vr() {
|
|
|
318
318
|
var M = Object.prototype.hasOwnProperty, be = {}, he = I.ReactDebugCurrentFrame;
|
|
319
319
|
function J(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var r = e._owner,
|
|
322
|
-
he.setExtraStackFrame(
|
|
321
|
+
var r = e._owner, o = q(e.type, e._source, r ? r.type : null);
|
|
322
|
+
he.setExtraStackFrame(o);
|
|
323
323
|
} else
|
|
324
324
|
he.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function ze(e, r,
|
|
326
|
+
function ze(e, r, o, b, R) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
328
|
+
var g = Function.call.bind(M);
|
|
329
329
|
for (var y in e)
|
|
330
|
-
if (
|
|
330
|
+
if (g(e, y)) {
|
|
331
331
|
var E = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof e[y] != "function") {
|
|
334
|
-
var w = Error((
|
|
334
|
+
var w = Error((b || "React class") + ": " + o + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
335
|
throw w.name = "Invariant Violation", w;
|
|
336
336
|
}
|
|
337
|
-
E = e[y](r, y,
|
|
337
|
+
E = e[y](r, y, b, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (j) {
|
|
339
339
|
E = j;
|
|
340
340
|
}
|
|
341
|
-
E && !(E instanceof Error) && (J(
|
|
341
|
+
E && !(E instanceof Error) && (J(R), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", o, y, typeof E), J(null)), E instanceof Error && !(E.message in be) && (be[E.message] = !0, J(R), P("Failed %s type: %s", o, E.message), J(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -348,8 +348,8 @@ function Vr() {
|
|
|
348
348
|
}
|
|
349
349
|
function He(e) {
|
|
350
350
|
{
|
|
351
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
352
|
-
return
|
|
351
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
|
+
return o;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function Ze(e) {
|
|
@@ -393,37 +393,37 @@ function Vr() {
|
|
|
393
393
|
}
|
|
394
394
|
function tr(e, r) {
|
|
395
395
|
{
|
|
396
|
-
var
|
|
396
|
+
var o = function() {
|
|
397
397
|
Re || (Re = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
398
398
|
};
|
|
399
|
-
|
|
400
|
-
get:
|
|
399
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
400
|
+
get: o,
|
|
401
401
|
configurable: !0
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function nr(e, r) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
407
|
+
var o = function() {
|
|
408
408
|
_e || (_e = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
411
|
+
get: o,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var ar = function(e, r,
|
|
416
|
+
var ar = function(e, r, o, b, R, g, y) {
|
|
417
417
|
var E = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
|
-
$$typeof:
|
|
419
|
+
$$typeof: f,
|
|
420
420
|
// Built-in properties that belong on the element
|
|
421
421
|
type: e,
|
|
422
422
|
key: r,
|
|
423
|
-
ref:
|
|
423
|
+
ref: o,
|
|
424
424
|
props: y,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
|
-
_owner:
|
|
426
|
+
_owner: g
|
|
427
427
|
};
|
|
428
428
|
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
429
429
|
configurable: !1,
|
|
@@ -434,44 +434,44 @@ function Vr() {
|
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !1,
|
|
437
|
-
value:
|
|
437
|
+
value: b
|
|
438
438
|
}), Object.defineProperty(E, "_source", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
|
-
value:
|
|
442
|
+
value: R
|
|
443
443
|
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
444
444
|
};
|
|
445
|
-
function ir(e, r,
|
|
445
|
+
function ir(e, r, o, b, R) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
for (
|
|
450
|
-
M.call(r,
|
|
447
|
+
var g, y = {}, E = null, w = null;
|
|
448
|
+
o !== void 0 && (ye(o), E = "" + o), er(r) && (ye(r.key), E = "" + r.key), Be(r) && (w = r.ref, rr(r, R));
|
|
449
|
+
for (g in r)
|
|
450
|
+
M.call(r, g) && !Qe.hasOwnProperty(g) && (y[g] = r[g]);
|
|
451
451
|
if (e && e.defaultProps) {
|
|
452
452
|
var j = e.defaultProps;
|
|
453
|
-
for (
|
|
454
|
-
y[
|
|
453
|
+
for (g in j)
|
|
454
|
+
y[g] === void 0 && (y[g] = j[g]);
|
|
455
455
|
}
|
|
456
456
|
if (E || w) {
|
|
457
457
|
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
458
|
E && tr(y, O), w && nr(y, O);
|
|
459
459
|
}
|
|
460
|
-
return ar(e, E, w,
|
|
460
|
+
return ar(e, E, w, R, b, me.current, y);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
var Q = I.ReactCurrentOwner, xe = I.ReactDebugCurrentFrame;
|
|
464
464
|
function $(e) {
|
|
465
465
|
if (e) {
|
|
466
|
-
var r = e._owner,
|
|
467
|
-
xe.setExtraStackFrame(
|
|
466
|
+
var r = e._owner, o = q(e.type, e._source, r ? r.type : null);
|
|
467
|
+
xe.setExtraStackFrame(o);
|
|
468
468
|
} else
|
|
469
469
|
xe.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
471
|
var B;
|
|
472
472
|
B = !1;
|
|
473
473
|
function ee(e) {
|
|
474
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
474
|
+
return typeof e == "object" && e !== null && e.$$typeof === f;
|
|
475
475
|
}
|
|
476
476
|
function ge() {
|
|
477
477
|
{
|
|
@@ -493,10 +493,10 @@ Check the render method of \`` + e + "`.";
|
|
|
493
493
|
{
|
|
494
494
|
var r = ge();
|
|
495
495
|
if (!r) {
|
|
496
|
-
var
|
|
497
|
-
|
|
496
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
|
+
o && (r = `
|
|
498
498
|
|
|
499
|
-
Check the top-level render call using <` +
|
|
499
|
+
Check the top-level render call using <` + o + ">.");
|
|
500
500
|
}
|
|
501
501
|
return r;
|
|
502
502
|
}
|
|
@@ -506,12 +506,12 @@ Check the top-level render call using <` + s + ">.");
|
|
|
506
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
|
-
var
|
|
510
|
-
if (je[
|
|
509
|
+
var o = sr(r);
|
|
510
|
+
if (je[o])
|
|
511
511
|
return;
|
|
512
|
-
je[
|
|
513
|
-
var
|
|
514
|
-
e && e._owner && e._owner !== Q.current && (
|
|
512
|
+
je[o] = !0;
|
|
513
|
+
var b = "";
|
|
514
|
+
e && e._owner && e._owner !== Q.current && (b = " It was passed a child from " + F(e._owner.type) + "."), $(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, b), $(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function Oe(e, r) {
|
|
@@ -519,16 +519,16 @@ Check the top-level render call using <` + s + ">.");
|
|
|
519
519
|
if (typeof e != "object")
|
|
520
520
|
return;
|
|
521
521
|
if (Z(e))
|
|
522
|
-
for (var
|
|
523
|
-
var
|
|
524
|
-
ee(
|
|
522
|
+
for (var o = 0; o < e.length; o++) {
|
|
523
|
+
var b = e[o];
|
|
524
|
+
ee(b) && Te(b, r);
|
|
525
525
|
}
|
|
526
526
|
else if (ee(e))
|
|
527
527
|
e._store && (e._store.validated = !0);
|
|
528
528
|
else if (e) {
|
|
529
|
-
var
|
|
530
|
-
if (typeof
|
|
531
|
-
for (var
|
|
529
|
+
var R = Ae(e);
|
|
530
|
+
if (typeof R == "function" && R !== e.entries)
|
|
531
|
+
for (var g = R.call(e), y; !(y = g.next()).done; )
|
|
532
532
|
ee(y.value) && Te(y.value, r);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -538,32 +538,32 @@ Check the top-level render call using <` + s + ">.");
|
|
|
538
538
|
var r = e.type;
|
|
539
539
|
if (r == null || typeof r == "string")
|
|
540
540
|
return;
|
|
541
|
-
var
|
|
541
|
+
var o;
|
|
542
542
|
if (typeof r == "function")
|
|
543
|
-
|
|
544
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
543
|
+
o = r.propTypes;
|
|
544
|
+
else if (typeof r == "object" && (r.$$typeof === n || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
|
-
r.$$typeof ===
|
|
547
|
-
|
|
546
|
+
r.$$typeof === v))
|
|
547
|
+
o = r.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
|
-
if (
|
|
551
|
-
var
|
|
552
|
-
ze(
|
|
550
|
+
if (o) {
|
|
551
|
+
var b = F(r);
|
|
552
|
+
ze(o, e.props, "prop", b, e);
|
|
553
553
|
} else if (r.PropTypes !== void 0 && !B) {
|
|
554
554
|
B = !0;
|
|
555
|
-
var
|
|
556
|
-
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
555
|
+
var R = F(r);
|
|
556
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
557
557
|
}
|
|
558
558
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function or(e) {
|
|
562
562
|
{
|
|
563
|
-
for (var r = Object.keys(e.props),
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
566
|
-
$(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
563
|
+
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
|
|
564
|
+
var b = r[o];
|
|
565
|
+
if (b !== "children" && b !== "key") {
|
|
566
|
+
$(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), $(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -571,7 +571,7 @@ Check the top-level render call using <` + s + ">.");
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var Se = {};
|
|
574
|
-
function Pe(e, r,
|
|
574
|
+
function Pe(e, r, o, b, R, g) {
|
|
575
575
|
{
|
|
576
576
|
var y = Le(e);
|
|
577
577
|
if (!y) {
|
|
@@ -580,15 +580,15 @@ Check the top-level render call using <` + s + ">.");
|
|
|
580
580
|
var w = lr();
|
|
581
581
|
w ? E += w : E += ge();
|
|
582
582
|
var j;
|
|
583
|
-
e === null ? j = "null" : Z(e) ? j = "array" : e !== void 0 && e.$$typeof ===
|
|
583
|
+
e === null ? j = "null" : Z(e) ? j = "array" : e !== void 0 && e.$$typeof === f ? (j = "<" + (F(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, E);
|
|
584
584
|
}
|
|
585
|
-
var O = ir(e, r,
|
|
585
|
+
var O = ir(e, r, o, R, g);
|
|
586
586
|
if (O == null)
|
|
587
587
|
return O;
|
|
588
588
|
if (y) {
|
|
589
589
|
var C = r.children;
|
|
590
590
|
if (C !== void 0)
|
|
591
|
-
if (
|
|
591
|
+
if (b)
|
|
592
592
|
if (Z(C)) {
|
|
593
593
|
for (var W = 0; W < C.length; W++)
|
|
594
594
|
Oe(C[W], e);
|
|
@@ -612,17 +612,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
612
612
|
<%s key={someKey} {...props} />`, re, A, pr, A), Se[A + re] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return e ===
|
|
615
|
+
return e === c ? or(O) : ur(O), O;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function fr(e, r,
|
|
619
|
-
return Pe(e, r,
|
|
618
|
+
function fr(e, r, o) {
|
|
619
|
+
return Pe(e, r, o, !0);
|
|
620
620
|
}
|
|
621
|
-
function cr(e, r,
|
|
622
|
-
return Pe(e, r,
|
|
621
|
+
function cr(e, r, o) {
|
|
622
|
+
return Pe(e, r, o, !1);
|
|
623
623
|
}
|
|
624
624
|
var dr = cr, vr = fr;
|
|
625
|
-
L.Fragment =
|
|
625
|
+
L.Fragment = c, L.jsx = dr, L.jsxs = vr;
|
|
626
626
|
}()), L;
|
|
627
627
|
}
|
|
628
628
|
var Ce;
|
|
@@ -631,366 +631,394 @@ function Nr() {
|
|
|
631
631
|
}
|
|
632
632
|
var h = Nr();
|
|
633
633
|
const zr = ({
|
|
634
|
-
name:
|
|
635
|
-
control:
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
...
|
|
634
|
+
name: u,
|
|
635
|
+
control: f,
|
|
636
|
+
definition: s,
|
|
637
|
+
defaultValue: c,
|
|
638
|
+
handleState: d = !0,
|
|
639
|
+
onAddButtonClick: t,
|
|
640
|
+
onRemoveButtonClick: l,
|
|
641
|
+
...p
|
|
642
642
|
}) => {
|
|
643
|
-
const { errors:
|
|
644
|
-
name:
|
|
645
|
-
control:
|
|
646
|
-
}),
|
|
647
|
-
() =>
|
|
648
|
-
errorText: (T, K) =>
|
|
649
|
-
...
|
|
643
|
+
const { errors: n } = Yr({ control: f }), { fields: a, append: i, remove: v } = Mr({
|
|
644
|
+
name: u,
|
|
645
|
+
control: f
|
|
646
|
+
}), m = hr(
|
|
647
|
+
() => s.map((_) => ({
|
|
648
|
+
errorText: (T, K) => _.label && Ur(n, `${u}.${K}.${_.label.toString().toLowerCase()}.message`),
|
|
649
|
+
..._
|
|
650
650
|
})),
|
|
651
|
-
[
|
|
651
|
+
[s, n, u]
|
|
652
652
|
);
|
|
653
653
|
return /* @__PURE__ */ h.jsx(
|
|
654
654
|
Er,
|
|
655
655
|
{
|
|
656
|
-
definition:
|
|
657
|
-
items:
|
|
658
|
-
onRemoveButtonClick: (
|
|
659
|
-
|
|
656
|
+
definition: m,
|
|
657
|
+
items: a || [],
|
|
658
|
+
onRemoveButtonClick: (_) => {
|
|
659
|
+
d && v(_.detail.itemIndex), l == null || l(_, v);
|
|
660
660
|
},
|
|
661
|
-
onAddButtonClick: (
|
|
662
|
-
|
|
661
|
+
onAddButtonClick: (_) => {
|
|
662
|
+
d && i(c), t == null || t(_, i);
|
|
663
663
|
},
|
|
664
|
-
...
|
|
664
|
+
...p
|
|
665
665
|
}
|
|
666
666
|
);
|
|
667
667
|
}, Xr = ({
|
|
668
|
-
name:
|
|
669
|
-
control:
|
|
670
|
-
defaultValue:
|
|
671
|
-
rules:
|
|
672
|
-
shouldUnregister:
|
|
668
|
+
name: u,
|
|
669
|
+
control: f,
|
|
670
|
+
defaultValue: s,
|
|
671
|
+
rules: c,
|
|
672
|
+
shouldUnregister: d = !1,
|
|
673
673
|
onBlur: t,
|
|
674
|
-
onChange:
|
|
675
|
-
...
|
|
674
|
+
onChange: l,
|
|
675
|
+
...p
|
|
676
676
|
}) => {
|
|
677
|
-
const
|
|
678
|
-
(
|
|
679
|
-
|
|
677
|
+
const n = x(
|
|
678
|
+
(i, v) => {
|
|
679
|
+
var m;
|
|
680
|
+
(m = v.detail) != null && m.value && i(v.detail.value), t == null || t(v);
|
|
680
681
|
},
|
|
681
682
|
[t]
|
|
682
|
-
),
|
|
683
|
-
(
|
|
684
|
-
|
|
683
|
+
), a = x(
|
|
684
|
+
(i, v) => {
|
|
685
|
+
i(v.detail.value), l == null || l(v);
|
|
685
686
|
},
|
|
686
|
-
[
|
|
687
|
+
[l]
|
|
687
688
|
);
|
|
688
689
|
return /* @__PURE__ */ h.jsx(
|
|
689
690
|
S,
|
|
690
691
|
{
|
|
691
|
-
name:
|
|
692
|
-
control:
|
|
693
|
-
defaultValue:
|
|
694
|
-
rules:
|
|
695
|
-
shouldUnregister:
|
|
696
|
-
render: ({ field: { ref:
|
|
692
|
+
name: u,
|
|
693
|
+
control: f,
|
|
694
|
+
defaultValue: s,
|
|
695
|
+
rules: c,
|
|
696
|
+
shouldUnregister: d,
|
|
697
|
+
render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
697
698
|
yr,
|
|
698
699
|
{
|
|
699
|
-
ref:
|
|
700
|
-
name:
|
|
701
|
-
value:
|
|
702
|
-
onBlur: (
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
onChange: (T) => {
|
|
706
|
-
x(T.detail.value), b(T);
|
|
707
|
-
},
|
|
708
|
-
...d
|
|
700
|
+
ref: i,
|
|
701
|
+
name: u,
|
|
702
|
+
value: _ || "",
|
|
703
|
+
onBlur: n.bind(null, v),
|
|
704
|
+
onChange: a.bind(null, m),
|
|
705
|
+
...p
|
|
709
706
|
}
|
|
710
707
|
)
|
|
711
708
|
}
|
|
712
709
|
);
|
|
713
710
|
}, Hr = ({
|
|
714
|
-
name:
|
|
715
|
-
control:
|
|
716
|
-
|
|
711
|
+
name: u,
|
|
712
|
+
control: f,
|
|
713
|
+
defaultValue: s,
|
|
714
|
+
rules: c,
|
|
715
|
+
shouldUnregister: d = !1,
|
|
716
|
+
onChange: t,
|
|
717
717
|
...l
|
|
718
718
|
}) => {
|
|
719
|
-
const
|
|
720
|
-
(
|
|
721
|
-
|
|
719
|
+
const p = x(
|
|
720
|
+
(n, a) => {
|
|
721
|
+
n(a.detail.checked), t == null || t(a);
|
|
722
722
|
},
|
|
723
|
-
[
|
|
723
|
+
[t]
|
|
724
724
|
);
|
|
725
725
|
return /* @__PURE__ */ h.jsx(
|
|
726
726
|
S,
|
|
727
727
|
{
|
|
728
|
-
name:
|
|
729
|
-
control:
|
|
730
|
-
|
|
728
|
+
name: u,
|
|
729
|
+
control: f,
|
|
730
|
+
defaultValue: s,
|
|
731
|
+
rules: c,
|
|
732
|
+
shouldUnregister: d,
|
|
733
|
+
render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(mr, { ref: n, onChange: p.bind(null, a), checked: i, ...l })
|
|
731
734
|
}
|
|
732
735
|
);
|
|
733
736
|
}, Zr = ({
|
|
734
|
-
name:
|
|
735
|
-
control:
|
|
736
|
-
|
|
737
|
+
name: u,
|
|
738
|
+
control: f,
|
|
739
|
+
defaultValue: s,
|
|
740
|
+
rules: c,
|
|
741
|
+
shouldUnregister: d = !1,
|
|
742
|
+
onSelectionChange: t,
|
|
737
743
|
...l
|
|
738
744
|
}) => {
|
|
739
|
-
const
|
|
740
|
-
(
|
|
741
|
-
|
|
745
|
+
const p = x(
|
|
746
|
+
(n, a) => {
|
|
747
|
+
n(a.detail.selectedItems), t == null || t(a);
|
|
742
748
|
},
|
|
743
|
-
[
|
|
749
|
+
[t]
|
|
744
750
|
);
|
|
745
751
|
return /* @__PURE__ */ h.jsx(
|
|
746
752
|
S,
|
|
747
753
|
{
|
|
748
|
-
name:
|
|
749
|
-
control:
|
|
750
|
-
|
|
754
|
+
name: u,
|
|
755
|
+
control: f,
|
|
756
|
+
defaultValue: s,
|
|
757
|
+
rules: c,
|
|
758
|
+
shouldUnregister: d,
|
|
759
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Rr, { onSelectionChange: p.bind(null, n), selectedItems: a, ...l })
|
|
751
760
|
}
|
|
752
761
|
);
|
|
753
762
|
}, Qr = ({
|
|
754
|
-
name:
|
|
755
|
-
control:
|
|
756
|
-
onChange:
|
|
763
|
+
name: u,
|
|
764
|
+
control: f,
|
|
765
|
+
onChange: s,
|
|
766
|
+
defaultValue: c,
|
|
767
|
+
rules: d,
|
|
768
|
+
shouldUnregister: t = !1,
|
|
757
769
|
...l
|
|
758
770
|
}) => {
|
|
759
|
-
const
|
|
760
|
-
(
|
|
761
|
-
|
|
771
|
+
const p = x(
|
|
772
|
+
(n, a) => {
|
|
773
|
+
n(a.detail.value), s == null || s(a);
|
|
762
774
|
},
|
|
763
|
-
[
|
|
775
|
+
[s]
|
|
764
776
|
);
|
|
765
777
|
return /* @__PURE__ */ h.jsx(
|
|
766
778
|
S,
|
|
767
779
|
{
|
|
768
|
-
name:
|
|
769
|
-
control:
|
|
770
|
-
|
|
780
|
+
name: u,
|
|
781
|
+
control: f,
|
|
782
|
+
defaultValue: c,
|
|
783
|
+
rules: d,
|
|
784
|
+
shouldUnregister: t,
|
|
785
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(_r, { value: a || "", onChange: p.bind(null, n), ...l })
|
|
771
786
|
}
|
|
772
787
|
);
|
|
773
788
|
}, Br = ({
|
|
774
|
-
name:
|
|
775
|
-
control:
|
|
776
|
-
defaultValue:
|
|
777
|
-
rules:
|
|
778
|
-
shouldUnregister:
|
|
789
|
+
name: u,
|
|
790
|
+
control: f,
|
|
791
|
+
defaultValue: s,
|
|
792
|
+
rules: c,
|
|
793
|
+
shouldUnregister: d = !1,
|
|
779
794
|
onBlur: t,
|
|
780
|
-
onChange:
|
|
781
|
-
...
|
|
795
|
+
onChange: l,
|
|
796
|
+
...p
|
|
782
797
|
}) => {
|
|
783
|
-
const
|
|
784
|
-
(
|
|
785
|
-
t == null || t(
|
|
798
|
+
const n = x(
|
|
799
|
+
(i) => {
|
|
800
|
+
t == null || t(i);
|
|
786
801
|
},
|
|
787
802
|
[t]
|
|
788
|
-
),
|
|
789
|
-
(
|
|
790
|
-
|
|
803
|
+
), a = x(
|
|
804
|
+
(i) => {
|
|
805
|
+
l == null || l(i);
|
|
791
806
|
},
|
|
792
|
-
[
|
|
807
|
+
[l]
|
|
793
808
|
);
|
|
794
809
|
return /* @__PURE__ */ h.jsx(
|
|
795
810
|
S,
|
|
796
811
|
{
|
|
797
|
-
name:
|
|
798
|
-
control:
|
|
799
|
-
defaultValue:
|
|
800
|
-
rules:
|
|
801
|
-
shouldUnregister:
|
|
802
|
-
render: ({ field: { ref:
|
|
812
|
+
name: u,
|
|
813
|
+
control: f,
|
|
814
|
+
defaultValue: s,
|
|
815
|
+
rules: c,
|
|
816
|
+
shouldUnregister: d,
|
|
817
|
+
render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
803
818
|
xr,
|
|
804
819
|
{
|
|
805
|
-
ref:
|
|
806
|
-
name:
|
|
807
|
-
value:
|
|
820
|
+
ref: i,
|
|
821
|
+
name: u,
|
|
822
|
+
value: _,
|
|
808
823
|
onBlur: (T) => {
|
|
809
|
-
|
|
824
|
+
m(), n(T);
|
|
810
825
|
},
|
|
811
826
|
onChange: (T) => {
|
|
812
|
-
|
|
827
|
+
v(T.detail.value), a(T);
|
|
813
828
|
},
|
|
814
|
-
...
|
|
829
|
+
...p
|
|
815
830
|
}
|
|
816
831
|
)
|
|
817
832
|
}
|
|
818
833
|
);
|
|
819
834
|
}, et = ({
|
|
820
|
-
name:
|
|
821
|
-
control:
|
|
822
|
-
onBlur:
|
|
823
|
-
onChange:
|
|
824
|
-
|
|
835
|
+
name: u,
|
|
836
|
+
control: f,
|
|
837
|
+
onBlur: s,
|
|
838
|
+
onChange: c,
|
|
839
|
+
defaultValue: d,
|
|
840
|
+
rules: t,
|
|
841
|
+
shouldUnregister: l = !1,
|
|
842
|
+
...p
|
|
825
843
|
}) => {
|
|
826
|
-
const
|
|
827
|
-
(
|
|
828
|
-
|
|
844
|
+
const n = x(
|
|
845
|
+
(i) => {
|
|
846
|
+
s == null || s(i);
|
|
829
847
|
},
|
|
830
|
-
[
|
|
831
|
-
),
|
|
832
|
-
(
|
|
833
|
-
|
|
848
|
+
[s]
|
|
849
|
+
), a = x(
|
|
850
|
+
(i) => {
|
|
851
|
+
c == null || c(i);
|
|
834
852
|
},
|
|
835
|
-
[
|
|
853
|
+
[c]
|
|
836
854
|
);
|
|
837
855
|
return /* @__PURE__ */ h.jsx(
|
|
838
856
|
S,
|
|
839
857
|
{
|
|
840
|
-
name:
|
|
841
|
-
control:
|
|
842
|
-
|
|
858
|
+
name: u,
|
|
859
|
+
control: f,
|
|
860
|
+
defaultValue: d,
|
|
861
|
+
rules: t,
|
|
862
|
+
shouldUnregister: l,
|
|
863
|
+
render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
843
864
|
gr,
|
|
844
865
|
{
|
|
845
|
-
ref:
|
|
846
|
-
value:
|
|
847
|
-
onBlur: (
|
|
848
|
-
|
|
866
|
+
ref: i,
|
|
867
|
+
value: _,
|
|
868
|
+
onBlur: (T) => {
|
|
869
|
+
v(), n(T);
|
|
849
870
|
},
|
|
850
|
-
onChange: (
|
|
851
|
-
|
|
871
|
+
onChange: (T) => {
|
|
872
|
+
m(T.detail.value), a(T);
|
|
852
873
|
},
|
|
853
|
-
...
|
|
874
|
+
...p
|
|
854
875
|
}
|
|
855
876
|
)
|
|
856
877
|
}
|
|
857
878
|
);
|
|
858
879
|
}, rt = ({
|
|
859
|
-
name:
|
|
860
|
-
control:
|
|
861
|
-
defaultValue:
|
|
862
|
-
rules:
|
|
863
|
-
shouldUnregister:
|
|
880
|
+
name: u,
|
|
881
|
+
control: f,
|
|
882
|
+
defaultValue: s,
|
|
883
|
+
rules: c,
|
|
884
|
+
shouldUnregister: d = !1,
|
|
864
885
|
onChange: t,
|
|
865
|
-
...
|
|
886
|
+
...l
|
|
866
887
|
}) => {
|
|
867
|
-
const
|
|
868
|
-
(
|
|
869
|
-
|
|
888
|
+
const p = (a) => a != null && a.length ? a : [], n = x(
|
|
889
|
+
(a, i) => {
|
|
890
|
+
a(p(i.detail.value)), t == null || t(i);
|
|
870
891
|
},
|
|
871
892
|
[t]
|
|
872
893
|
);
|
|
873
894
|
return /* @__PURE__ */ h.jsx(
|
|
874
895
|
S,
|
|
875
896
|
{
|
|
876
|
-
name:
|
|
877
|
-
control:
|
|
878
|
-
defaultValue:
|
|
879
|
-
rules:
|
|
880
|
-
shouldUnregister:
|
|
881
|
-
render: ({ field: { ref:
|
|
897
|
+
name: u,
|
|
898
|
+
control: f,
|
|
899
|
+
defaultValue: s,
|
|
900
|
+
rules: c,
|
|
901
|
+
shouldUnregister: d,
|
|
902
|
+
render: ({ field: { ref: a, onChange: i, value: v } }) => /* @__PURE__ */ h.jsx(
|
|
882
903
|
jr,
|
|
883
904
|
{
|
|
884
|
-
ref:
|
|
885
|
-
value:
|
|
886
|
-
onChange:
|
|
887
|
-
...
|
|
905
|
+
ref: a,
|
|
906
|
+
value: p(v),
|
|
907
|
+
onChange: n.bind(null, i),
|
|
908
|
+
...l
|
|
888
909
|
}
|
|
889
910
|
)
|
|
890
911
|
}
|
|
891
912
|
);
|
|
892
913
|
}, tt = ({
|
|
893
|
-
name:
|
|
894
|
-
control:
|
|
895
|
-
defaultValue:
|
|
896
|
-
rules:
|
|
897
|
-
shouldUnregister:
|
|
914
|
+
name: u,
|
|
915
|
+
control: f,
|
|
916
|
+
defaultValue: s,
|
|
917
|
+
rules: c,
|
|
918
|
+
shouldUnregister: d = !1,
|
|
898
919
|
onBlur: t,
|
|
899
|
-
onChange:
|
|
900
|
-
...
|
|
920
|
+
onChange: l,
|
|
921
|
+
...p
|
|
901
922
|
}) => {
|
|
902
|
-
const
|
|
903
|
-
(
|
|
904
|
-
t == null || t(
|
|
923
|
+
const n = x(
|
|
924
|
+
(i) => {
|
|
925
|
+
t == null || t(i);
|
|
905
926
|
},
|
|
906
927
|
[t]
|
|
907
|
-
),
|
|
908
|
-
(
|
|
909
|
-
|
|
928
|
+
), a = x(
|
|
929
|
+
(i) => {
|
|
930
|
+
l == null || l(i);
|
|
910
931
|
},
|
|
911
|
-
[
|
|
932
|
+
[l]
|
|
912
933
|
);
|
|
913
934
|
return /* @__PURE__ */ h.jsx(
|
|
914
935
|
S,
|
|
915
936
|
{
|
|
916
|
-
name:
|
|
917
|
-
control:
|
|
918
|
-
defaultValue:
|
|
919
|
-
rules:
|
|
920
|
-
shouldUnregister:
|
|
921
|
-
render: ({ field: { ref:
|
|
937
|
+
name: u,
|
|
938
|
+
control: f,
|
|
939
|
+
defaultValue: s,
|
|
940
|
+
rules: c,
|
|
941
|
+
shouldUnregister: d,
|
|
942
|
+
render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
922
943
|
Tr,
|
|
923
944
|
{
|
|
924
|
-
ref:
|
|
925
|
-
name:
|
|
926
|
-
value:
|
|
945
|
+
ref: i,
|
|
946
|
+
name: u,
|
|
947
|
+
value: _,
|
|
927
948
|
onBlur: (T) => {
|
|
928
|
-
|
|
949
|
+
v(), n(T);
|
|
929
950
|
},
|
|
930
951
|
onChange: (T) => {
|
|
931
|
-
|
|
952
|
+
m(T.detail.value), a(T);
|
|
932
953
|
},
|
|
933
|
-
...
|
|
954
|
+
...p
|
|
934
955
|
}
|
|
935
956
|
)
|
|
936
957
|
}
|
|
937
958
|
);
|
|
938
|
-
}, te = (
|
|
939
|
-
if (
|
|
940
|
-
if ("options" in
|
|
941
|
-
const
|
|
942
|
-
|
|
959
|
+
}, te = (u = []) => u != null && u.length ? u.map((f) => "options" in f ? te(f.options) : f.value).flat() : [], ne = (u = [], f = []) => u != null && u.length && (f != null && f.length) ? u.reduce((s, c) => {
|
|
960
|
+
if (u != null && u.length) {
|
|
961
|
+
if ("options" in c) {
|
|
962
|
+
const d = ne(c.options, f);
|
|
963
|
+
d != null && d.length && s.push(...d);
|
|
943
964
|
}
|
|
944
|
-
"value" in
|
|
965
|
+
"value" in c && f.find((d) => d === c.value) && s.push(c);
|
|
945
966
|
}
|
|
946
|
-
return
|
|
967
|
+
return s;
|
|
947
968
|
}, []).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
|
|
948
|
-
name:
|
|
949
|
-
control:
|
|
950
|
-
options:
|
|
951
|
-
defaultValue:
|
|
952
|
-
rules:
|
|
969
|
+
name: u,
|
|
970
|
+
control: f,
|
|
971
|
+
options: s,
|
|
972
|
+
defaultValue: c,
|
|
973
|
+
rules: d,
|
|
953
974
|
onBlur: t,
|
|
954
|
-
onChange:
|
|
955
|
-
shouldUnregister:
|
|
956
|
-
...
|
|
975
|
+
onChange: l,
|
|
976
|
+
shouldUnregister: p = !1,
|
|
977
|
+
...n
|
|
957
978
|
}) => {
|
|
958
|
-
const
|
|
959
|
-
(
|
|
960
|
-
|
|
979
|
+
const a = x(
|
|
980
|
+
(v, m) => {
|
|
981
|
+
v(), t == null || t(m);
|
|
961
982
|
},
|
|
962
983
|
[t]
|
|
963
|
-
),
|
|
964
|
-
(
|
|
965
|
-
|
|
984
|
+
), i = x(
|
|
985
|
+
(v, m) => {
|
|
986
|
+
v(te(m.detail.selectedOptions)), l == null || l(m);
|
|
966
987
|
},
|
|
967
|
-
[
|
|
988
|
+
[l]
|
|
968
989
|
);
|
|
969
990
|
return /* @__PURE__ */ h.jsx(
|
|
970
991
|
S,
|
|
971
992
|
{
|
|
972
|
-
name:
|
|
973
|
-
control:
|
|
974
|
-
defaultValue:
|
|
975
|
-
rules:
|
|
976
|
-
shouldUnregister:
|
|
977
|
-
render: ({ field: { ref:
|
|
993
|
+
name: u,
|
|
994
|
+
control: f,
|
|
995
|
+
defaultValue: c,
|
|
996
|
+
rules: d,
|
|
997
|
+
shouldUnregister: p,
|
|
998
|
+
render: ({ field: { ref: v, onChange: m, onBlur: _, value: T } }) => /* @__PURE__ */ h.jsx(
|
|
978
999
|
Or,
|
|
979
1000
|
{
|
|
980
|
-
ref:
|
|
981
|
-
options:
|
|
982
|
-
onBlur: () =>
|
|
983
|
-
onChange:
|
|
984
|
-
selectedOptions: ne(
|
|
985
|
-
...
|
|
1001
|
+
ref: v,
|
|
1002
|
+
options: s,
|
|
1003
|
+
onBlur: () => a.bind(null, _),
|
|
1004
|
+
onChange: i.bind(null, m),
|
|
1005
|
+
selectedOptions: ne(s, T),
|
|
1006
|
+
...n
|
|
986
1007
|
}
|
|
987
1008
|
)
|
|
988
1009
|
}
|
|
989
1010
|
);
|
|
990
|
-
}, it = (
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1011
|
+
}, it = ({
|
|
1012
|
+
name: u,
|
|
1013
|
+
control: f,
|
|
1014
|
+
defaultValue: s,
|
|
1015
|
+
rules: c,
|
|
1016
|
+
shouldUnregister: d = !1,
|
|
1017
|
+
...t
|
|
1018
|
+
}) => {
|
|
1019
|
+
const l = x(
|
|
1020
|
+
(p, n) => {
|
|
1021
|
+
p(n.detail);
|
|
994
1022
|
},
|
|
995
1023
|
[]
|
|
996
1024
|
);
|
|
@@ -998,324 +1026,365 @@ const zr = ({
|
|
|
998
1026
|
S,
|
|
999
1027
|
{
|
|
1000
1028
|
name: u,
|
|
1001
|
-
control:
|
|
1002
|
-
defaultValue:
|
|
1003
|
-
rules:
|
|
1004
|
-
shouldUnregister:
|
|
1005
|
-
render: ({ field: { onChange:
|
|
1029
|
+
control: f,
|
|
1030
|
+
defaultValue: s,
|
|
1031
|
+
rules: c,
|
|
1032
|
+
shouldUnregister: d,
|
|
1033
|
+
render: ({ field: { onChange: p, value: n } }) => /* @__PURE__ */ h.jsx(Sr, { onChange: l.bind(null, p), query: n, ...t })
|
|
1006
1034
|
}
|
|
1007
1035
|
);
|
|
1008
1036
|
}, lt = ({
|
|
1009
|
-
name:
|
|
1010
|
-
control:
|
|
1011
|
-
onChange:
|
|
1037
|
+
name: u,
|
|
1038
|
+
control: f,
|
|
1039
|
+
onChange: s,
|
|
1040
|
+
rules: c,
|
|
1041
|
+
defaultValue: d,
|
|
1042
|
+
shouldUnregister: t = !1,
|
|
1012
1043
|
...l
|
|
1013
1044
|
}) => {
|
|
1014
|
-
const
|
|
1015
|
-
(
|
|
1016
|
-
|
|
1045
|
+
const p = x(
|
|
1046
|
+
(n, a) => {
|
|
1047
|
+
n(a.detail.value), s == null || s(a);
|
|
1017
1048
|
},
|
|
1018
|
-
[
|
|
1049
|
+
[s]
|
|
1019
1050
|
);
|
|
1020
1051
|
return /* @__PURE__ */ h.jsx(
|
|
1021
1052
|
S,
|
|
1022
1053
|
{
|
|
1023
|
-
name:
|
|
1024
|
-
control:
|
|
1025
|
-
|
|
1054
|
+
name: u,
|
|
1055
|
+
control: f,
|
|
1056
|
+
defaultValue: d,
|
|
1057
|
+
rules: c,
|
|
1058
|
+
shouldUnregister: t,
|
|
1059
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Pr, { onChange: p.bind(null, n), value: a, items: l.items, ...l })
|
|
1026
1060
|
}
|
|
1027
1061
|
);
|
|
1028
1062
|
}, st = ({
|
|
1029
|
-
name:
|
|
1030
|
-
control:
|
|
1031
|
-
defaultValue:
|
|
1032
|
-
rules:
|
|
1033
|
-
shouldUnregister:
|
|
1063
|
+
name: u,
|
|
1064
|
+
control: f,
|
|
1065
|
+
defaultValue: s,
|
|
1066
|
+
rules: c,
|
|
1067
|
+
shouldUnregister: d = !1,
|
|
1034
1068
|
onChange: t,
|
|
1035
|
-
...
|
|
1069
|
+
...l
|
|
1036
1070
|
}) => {
|
|
1037
|
-
const
|
|
1038
|
-
(
|
|
1039
|
-
|
|
1071
|
+
const p = x(
|
|
1072
|
+
(n, a) => {
|
|
1073
|
+
n(a.detail.resource), t == null || t(a);
|
|
1040
1074
|
},
|
|
1041
1075
|
[t]
|
|
1042
1076
|
);
|
|
1043
1077
|
return /* @__PURE__ */ h.jsx(
|
|
1044
1078
|
S,
|
|
1045
1079
|
{
|
|
1046
|
-
name:
|
|
1047
|
-
control:
|
|
1048
|
-
defaultValue:
|
|
1049
|
-
rules:
|
|
1050
|
-
shouldUnregister:
|
|
1051
|
-
render: ({ field: { ref:
|
|
1080
|
+
name: u,
|
|
1081
|
+
control: f,
|
|
1082
|
+
defaultValue: s,
|
|
1083
|
+
rules: c,
|
|
1084
|
+
shouldUnregister: d,
|
|
1085
|
+
render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
|
|
1052
1086
|
wr,
|
|
1053
1087
|
{
|
|
1054
|
-
ref:
|
|
1055
|
-
resource:
|
|
1056
|
-
onChange:
|
|
1057
|
-
...
|
|
1088
|
+
ref: n,
|
|
1089
|
+
resource: i ?? { uri: "" },
|
|
1090
|
+
onChange: p.bind(null, a),
|
|
1091
|
+
...l
|
|
1058
1092
|
}
|
|
1059
1093
|
)
|
|
1060
1094
|
}
|
|
1061
1095
|
);
|
|
1062
|
-
}, De = (
|
|
1063
|
-
let
|
|
1064
|
-
return
|
|
1065
|
-
(
|
|
1066
|
-
if ("options" in
|
|
1067
|
-
const t = De(
|
|
1068
|
-
t &&
|
|
1096
|
+
}, De = (u = [], f) => {
|
|
1097
|
+
let s = null;
|
|
1098
|
+
return u && f && (s = u.reduce(
|
|
1099
|
+
(c, d) => {
|
|
1100
|
+
if ("options" in d) {
|
|
1101
|
+
const t = De(d.options, f);
|
|
1102
|
+
t && c.push(t);
|
|
1069
1103
|
}
|
|
1070
|
-
return "value" in
|
|
1104
|
+
return "value" in d && d.value === f && c.push(d), c;
|
|
1071
1105
|
},
|
|
1072
1106
|
[]
|
|
1073
|
-
)[0]),
|
|
1107
|
+
)[0]), s || null;
|
|
1074
1108
|
}, qr = {
|
|
1075
1109
|
mapSelectedOptionWithOptions: De
|
|
1076
1110
|
}, ut = ({
|
|
1077
|
-
name:
|
|
1078
|
-
control:
|
|
1079
|
-
defaultValue:
|
|
1080
|
-
rules:
|
|
1081
|
-
shouldUnregister:
|
|
1111
|
+
name: u,
|
|
1112
|
+
control: f,
|
|
1113
|
+
defaultValue: s,
|
|
1114
|
+
rules: c,
|
|
1115
|
+
shouldUnregister: d = !1,
|
|
1082
1116
|
onBlur: t,
|
|
1083
|
-
onChange:
|
|
1084
|
-
...
|
|
1117
|
+
onChange: l,
|
|
1118
|
+
...p
|
|
1085
1119
|
}) => {
|
|
1086
|
-
const
|
|
1087
|
-
(
|
|
1088
|
-
|
|
1120
|
+
const n = x(
|
|
1121
|
+
(i, v) => {
|
|
1122
|
+
i(), t == null || t(v);
|
|
1089
1123
|
},
|
|
1090
1124
|
[t]
|
|
1091
|
-
),
|
|
1092
|
-
(
|
|
1093
|
-
|
|
1125
|
+
), a = x(
|
|
1126
|
+
(i, v) => {
|
|
1127
|
+
i(v.detail.selectedOption.value), l == null || l(v);
|
|
1094
1128
|
},
|
|
1095
|
-
[
|
|
1129
|
+
[l]
|
|
1096
1130
|
);
|
|
1097
1131
|
return /* @__PURE__ */ h.jsx(
|
|
1098
1132
|
S,
|
|
1099
1133
|
{
|
|
1100
|
-
name:
|
|
1101
|
-
control:
|
|
1102
|
-
defaultValue:
|
|
1103
|
-
rules:
|
|
1104
|
-
shouldUnregister:
|
|
1105
|
-
render: ({ field: { ref:
|
|
1134
|
+
name: u,
|
|
1135
|
+
control: f,
|
|
1136
|
+
defaultValue: s,
|
|
1137
|
+
rules: c,
|
|
1138
|
+
shouldUnregister: d,
|
|
1139
|
+
render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
1106
1140
|
kr,
|
|
1107
1141
|
{
|
|
1108
|
-
ref:
|
|
1109
|
-
selectedOption: qr.mapSelectedOptionWithOptions(
|
|
1110
|
-
onBlur:
|
|
1111
|
-
onChange:
|
|
1112
|
-
...
|
|
1142
|
+
ref: i,
|
|
1143
|
+
selectedOption: qr.mapSelectedOptionWithOptions(p.options, _),
|
|
1144
|
+
onBlur: n.bind(null, m),
|
|
1145
|
+
onChange: a.bind(null, v),
|
|
1146
|
+
...p
|
|
1113
1147
|
}
|
|
1114
1148
|
)
|
|
1115
1149
|
}
|
|
1116
1150
|
);
|
|
1117
1151
|
}, ot = ({
|
|
1118
|
-
name:
|
|
1119
|
-
control:
|
|
1120
|
-
defaultValue:
|
|
1121
|
-
rules:
|
|
1122
|
-
shouldUnregister:
|
|
1152
|
+
name: u,
|
|
1153
|
+
control: f,
|
|
1154
|
+
defaultValue: s,
|
|
1155
|
+
rules: c,
|
|
1156
|
+
shouldUnregister: d = !1,
|
|
1123
1157
|
onChange: t,
|
|
1124
|
-
...
|
|
1158
|
+
...l
|
|
1125
1159
|
}) => {
|
|
1126
|
-
const
|
|
1127
|
-
(
|
|
1128
|
-
t == null || t(
|
|
1160
|
+
const p = x(
|
|
1161
|
+
(n) => {
|
|
1162
|
+
t == null || t(n);
|
|
1129
1163
|
},
|
|
1130
1164
|
[t]
|
|
1131
1165
|
);
|
|
1132
1166
|
return /* @__PURE__ */ h.jsx(
|
|
1133
1167
|
S,
|
|
1134
1168
|
{
|
|
1135
|
-
name:
|
|
1136
|
-
control:
|
|
1137
|
-
defaultValue:
|
|
1138
|
-
rules:
|
|
1139
|
-
shouldUnregister:
|
|
1140
|
-
render: ({ field: { onChange:
|
|
1169
|
+
name: u,
|
|
1170
|
+
control: f,
|
|
1171
|
+
defaultValue: s,
|
|
1172
|
+
rules: c,
|
|
1173
|
+
shouldUnregister: d,
|
|
1174
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(
|
|
1141
1175
|
Cr,
|
|
1142
1176
|
{
|
|
1143
|
-
value:
|
|
1144
|
-
onChange: (
|
|
1145
|
-
|
|
1177
|
+
value: a,
|
|
1178
|
+
onChange: (i) => {
|
|
1179
|
+
n(i.detail.value), p(i);
|
|
1146
1180
|
},
|
|
1147
|
-
...
|
|
1181
|
+
...l
|
|
1148
1182
|
}
|
|
1149
1183
|
)
|
|
1150
1184
|
}
|
|
1151
1185
|
);
|
|
1152
1186
|
}, ft = ({
|
|
1153
|
-
name:
|
|
1154
|
-
control:
|
|
1155
|
-
onChange:
|
|
1187
|
+
name: u,
|
|
1188
|
+
control: f,
|
|
1189
|
+
onChange: s,
|
|
1190
|
+
defaultValue: c,
|
|
1191
|
+
rules: d,
|
|
1192
|
+
shouldUnregister: t,
|
|
1156
1193
|
...l
|
|
1157
1194
|
}) => {
|
|
1158
|
-
const
|
|
1159
|
-
(
|
|
1160
|
-
|
|
1195
|
+
const p = x(
|
|
1196
|
+
(n, a) => {
|
|
1197
|
+
n([...a.detail.tags]), s == null || s(a);
|
|
1161
1198
|
},
|
|
1162
|
-
[
|
|
1199
|
+
[s]
|
|
1163
1200
|
);
|
|
1164
1201
|
return /* @__PURE__ */ h.jsx(
|
|
1165
1202
|
S,
|
|
1166
1203
|
{
|
|
1167
|
-
name:
|
|
1168
|
-
control:
|
|
1169
|
-
|
|
1204
|
+
name: u,
|
|
1205
|
+
control: f,
|
|
1206
|
+
defaultValue: c,
|
|
1207
|
+
rules: d,
|
|
1208
|
+
shouldUnregister: t,
|
|
1209
|
+
render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
|
|
1170
1210
|
Fr,
|
|
1171
1211
|
{
|
|
1172
|
-
ref:
|
|
1173
|
-
tags:
|
|
1174
|
-
onChange:
|
|
1212
|
+
ref: n,
|
|
1213
|
+
tags: i || [],
|
|
1214
|
+
onChange: p.bind(null, a),
|
|
1175
1215
|
...l
|
|
1176
1216
|
}
|
|
1177
1217
|
)
|
|
1178
1218
|
}
|
|
1179
1219
|
);
|
|
1180
1220
|
}, ct = ({
|
|
1181
|
-
name:
|
|
1182
|
-
control:
|
|
1183
|
-
|
|
1221
|
+
name: u,
|
|
1222
|
+
control: f,
|
|
1223
|
+
defaultValue: s,
|
|
1224
|
+
rules: c,
|
|
1225
|
+
shouldUnregister: d,
|
|
1226
|
+
onChange: t,
|
|
1184
1227
|
...l
|
|
1185
1228
|
}) => {
|
|
1186
|
-
const
|
|
1187
|
-
(
|
|
1188
|
-
|
|
1229
|
+
const p = x(
|
|
1230
|
+
(n, a) => {
|
|
1231
|
+
n(a.detail.filteringText), t == null || t(a);
|
|
1189
1232
|
},
|
|
1190
|
-
[
|
|
1233
|
+
[t]
|
|
1191
1234
|
);
|
|
1192
1235
|
return /* @__PURE__ */ h.jsx(
|
|
1193
1236
|
S,
|
|
1194
1237
|
{
|
|
1195
|
-
name:
|
|
1196
|
-
control:
|
|
1197
|
-
|
|
1238
|
+
name: u,
|
|
1239
|
+
control: f,
|
|
1240
|
+
defaultValue: s,
|
|
1241
|
+
rules: c,
|
|
1242
|
+
shouldUnregister: d,
|
|
1243
|
+
render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
|
|
1198
1244
|
Dr,
|
|
1199
1245
|
{
|
|
1200
|
-
ref:
|
|
1201
|
-
filteringText:
|
|
1202
|
-
onChange:
|
|
1246
|
+
ref: n,
|
|
1247
|
+
filteringText: i,
|
|
1248
|
+
onChange: p.bind(null, a),
|
|
1203
1249
|
...l
|
|
1204
1250
|
}
|
|
1205
1251
|
)
|
|
1206
1252
|
}
|
|
1207
1253
|
);
|
|
1208
1254
|
}, dt = ({
|
|
1209
|
-
name:
|
|
1210
|
-
control:
|
|
1211
|
-
defaultValue:
|
|
1212
|
-
rules:
|
|
1213
|
-
shouldUnregister:
|
|
1255
|
+
name: u,
|
|
1256
|
+
control: f,
|
|
1257
|
+
defaultValue: s,
|
|
1258
|
+
rules: c,
|
|
1259
|
+
shouldUnregister: d = !1,
|
|
1214
1260
|
onBlur: t,
|
|
1215
|
-
onChange:
|
|
1216
|
-
...
|
|
1261
|
+
onChange: l,
|
|
1262
|
+
...p
|
|
1217
1263
|
}) => {
|
|
1218
|
-
const
|
|
1219
|
-
(
|
|
1220
|
-
|
|
1264
|
+
const n = x(
|
|
1265
|
+
(i, v) => {
|
|
1266
|
+
i(), t == null || t(v);
|
|
1221
1267
|
},
|
|
1222
1268
|
[t]
|
|
1223
|
-
),
|
|
1224
|
-
(
|
|
1225
|
-
|
|
1269
|
+
), a = x(
|
|
1270
|
+
(i, v) => {
|
|
1271
|
+
i(v.detail.value), l == null || l(v);
|
|
1226
1272
|
},
|
|
1227
|
-
[
|
|
1273
|
+
[l]
|
|
1228
1274
|
);
|
|
1229
1275
|
return /* @__PURE__ */ h.jsx(
|
|
1230
1276
|
S,
|
|
1231
1277
|
{
|
|
1232
|
-
name:
|
|
1233
|
-
control:
|
|
1234
|
-
defaultValue:
|
|
1235
|
-
rules:
|
|
1236
|
-
shouldUnregister:
|
|
1237
|
-
render: ({ field: { onChange:
|
|
1278
|
+
name: u,
|
|
1279
|
+
control: f,
|
|
1280
|
+
defaultValue: s,
|
|
1281
|
+
rules: c,
|
|
1282
|
+
shouldUnregister: d,
|
|
1283
|
+
render: ({ field: { onChange: i, onBlur: v, value: m, ref: _ } }) => /* @__PURE__ */ h.jsx(
|
|
1238
1284
|
Ar,
|
|
1239
1285
|
{
|
|
1240
|
-
ref:
|
|
1241
|
-
name:
|
|
1242
|
-
value:
|
|
1243
|
-
onBlur:
|
|
1244
|
-
onChange:
|
|
1245
|
-
...
|
|
1286
|
+
ref: _,
|
|
1287
|
+
name: u,
|
|
1288
|
+
value: m,
|
|
1289
|
+
onBlur: n.bind(null, v),
|
|
1290
|
+
onChange: a.bind(null, i),
|
|
1291
|
+
...p
|
|
1246
1292
|
}
|
|
1247
1293
|
)
|
|
1248
1294
|
}
|
|
1249
1295
|
);
|
|
1250
|
-
}, vt = ({
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1296
|
+
}, vt = ({
|
|
1297
|
+
name: u,
|
|
1298
|
+
control: f,
|
|
1299
|
+
onChange: s,
|
|
1300
|
+
defaultValue: c,
|
|
1301
|
+
rules: d,
|
|
1302
|
+
shouldUnregister: t = !1,
|
|
1303
|
+
...l
|
|
1304
|
+
}) => {
|
|
1305
|
+
const p = x(
|
|
1306
|
+
(n, a) => {
|
|
1307
|
+
n(a.detail.value), s == null || s(a);
|
|
1254
1308
|
},
|
|
1255
|
-
[
|
|
1309
|
+
[s]
|
|
1256
1310
|
);
|
|
1257
1311
|
return /* @__PURE__ */ h.jsx(
|
|
1258
1312
|
S,
|
|
1259
1313
|
{
|
|
1260
|
-
name:
|
|
1261
|
-
control:
|
|
1262
|
-
|
|
1314
|
+
name: u,
|
|
1315
|
+
control: f,
|
|
1316
|
+
defaultValue: c,
|
|
1317
|
+
rules: d,
|
|
1318
|
+
shouldUnregister: t,
|
|
1319
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Ir, { onChange: p.bind(null, n), value: a, items: l.items, ...l })
|
|
1263
1320
|
}
|
|
1264
1321
|
);
|
|
1265
1322
|
}, pt = ({
|
|
1266
|
-
name:
|
|
1267
|
-
control:
|
|
1268
|
-
|
|
1323
|
+
name: u,
|
|
1324
|
+
control: f,
|
|
1325
|
+
defaultValue: s,
|
|
1326
|
+
rules: c,
|
|
1327
|
+
shouldUnregister: d = !1,
|
|
1328
|
+
onBlur: t,
|
|
1269
1329
|
onChange: l,
|
|
1270
|
-
...
|
|
1330
|
+
...p
|
|
1271
1331
|
}) => {
|
|
1272
|
-
const
|
|
1273
|
-
(
|
|
1274
|
-
|
|
1332
|
+
const n = x(
|
|
1333
|
+
(i, v) => {
|
|
1334
|
+
i(), t == null || t(v);
|
|
1275
1335
|
},
|
|
1276
|
-
[
|
|
1277
|
-
),
|
|
1278
|
-
(
|
|
1279
|
-
|
|
1336
|
+
[t]
|
|
1337
|
+
), a = x(
|
|
1338
|
+
(i, v) => {
|
|
1339
|
+
i(v.detail.value), l == null || l(v);
|
|
1280
1340
|
},
|
|
1281
1341
|
[l]
|
|
1282
1342
|
);
|
|
1283
1343
|
return /* @__PURE__ */ h.jsx(
|
|
1284
1344
|
S,
|
|
1285
1345
|
{
|
|
1286
|
-
name:
|
|
1287
|
-
control:
|
|
1288
|
-
|
|
1346
|
+
name: u,
|
|
1347
|
+
control: f,
|
|
1348
|
+
defaultValue: s,
|
|
1349
|
+
rules: c,
|
|
1350
|
+
shouldUnregister: d,
|
|
1351
|
+
render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
1289
1352
|
$r,
|
|
1290
1353
|
{
|
|
1291
|
-
name:
|
|
1292
|
-
ref:
|
|
1293
|
-
value:
|
|
1294
|
-
onBlur:
|
|
1295
|
-
onChange:
|
|
1296
|
-
...
|
|
1354
|
+
name: u,
|
|
1355
|
+
ref: i,
|
|
1356
|
+
value: _,
|
|
1357
|
+
onBlur: n.bind(null, m),
|
|
1358
|
+
onChange: a.bind(null, v),
|
|
1359
|
+
...p
|
|
1297
1360
|
}
|
|
1298
1361
|
)
|
|
1299
1362
|
}
|
|
1300
1363
|
);
|
|
1301
1364
|
}, bt = ({
|
|
1302
|
-
name:
|
|
1303
|
-
control:
|
|
1304
|
-
|
|
1365
|
+
name: u,
|
|
1366
|
+
control: f,
|
|
1367
|
+
defaultValue: s,
|
|
1368
|
+
rules: c,
|
|
1369
|
+
shouldUnregister: d = !1,
|
|
1370
|
+
onChange: t,
|
|
1305
1371
|
...l
|
|
1306
1372
|
}) => {
|
|
1307
|
-
const
|
|
1308
|
-
(
|
|
1309
|
-
|
|
1373
|
+
const p = x(
|
|
1374
|
+
(n, a) => {
|
|
1375
|
+
n(a.detail.checked), t == null || t(a);
|
|
1310
1376
|
},
|
|
1311
|
-
[
|
|
1377
|
+
[t]
|
|
1312
1378
|
);
|
|
1313
1379
|
return /* @__PURE__ */ h.jsx(
|
|
1314
1380
|
S,
|
|
1315
1381
|
{
|
|
1316
|
-
name:
|
|
1317
|
-
control:
|
|
1318
|
-
|
|
1382
|
+
name: u,
|
|
1383
|
+
control: f,
|
|
1384
|
+
defaultValue: s,
|
|
1385
|
+
rules: c,
|
|
1386
|
+
shouldUnregister: d,
|
|
1387
|
+
render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(Wr, { ref: n, name: u, checked: i, onChange: p.bind(null, a), ...l })
|
|
1319
1388
|
}
|
|
1320
1389
|
);
|
|
1321
1390
|
};
|