react-hook-form-cloudscape 1.1.0-dev.1 → 1.1.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AttributeEditor as Er, Autosuggest as
|
|
3
|
-
import { useFormState as
|
|
4
|
-
var
|
|
1
|
+
import ke, { useMemo as hr, useCallback as g } from "react";
|
|
2
|
+
import { AttributeEditor as Er, Autosuggest as mr, Checkbox as yr, Cards as Rr, CodeEditor as _r, DatePicker as gr, DateRangePicker as xr, Input as Tr, Multiselect as jr, RadioGroup as Or, Select as Sr, TagEditor as Pr, TextFilter as wr, Textarea as kr, Tiles as Cr, TimeInput as Dr, Toggle as Fr } from "@cloudscape-design/components";
|
|
3
|
+
import { useFormState as Ar, useFieldArray as Ir, get as $r, Controller as S } from "react-hook-form";
|
|
4
|
+
var K = { exports: {} }, U = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,16 +12,16 @@ var re = { exports: {} }, U = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Se;
|
|
15
|
-
function
|
|
15
|
+
function Wr() {
|
|
16
16
|
if (Se) return U;
|
|
17
17
|
Se = 1;
|
|
18
|
-
var s =
|
|
19
|
-
function t(v, p,
|
|
20
|
-
var f, d = {}, x = null,
|
|
21
|
-
|
|
18
|
+
var s = ke, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, o = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function t(v, p, _) {
|
|
20
|
+
var f, d = {}, x = null, R = null;
|
|
21
|
+
_ !== void 0 && (x = "" + _), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (R = p.ref);
|
|
22
22
|
for (f in p) l.call(p, f) && !a.hasOwnProperty(f) && (d[f] = p[f]);
|
|
23
23
|
if (v && v.defaultProps) for (f in p = v.defaultProps, p) d[f] === void 0 && (d[f] = p[f]);
|
|
24
|
-
return { $$typeof: u, type: v, key: x, ref:
|
|
24
|
+
return { $$typeof: u, type: v, key: x, ref: R, props: d, _owner: o.current };
|
|
25
25
|
}
|
|
26
26
|
return U.Fragment = n, U.jsx = t, U.jsxs = t, U;
|
|
27
27
|
}
|
|
@@ -36,10 +36,10 @@ var V = {};
|
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
38
|
var Pe;
|
|
39
|
-
function
|
|
39
|
+
function Yr() {
|
|
40
40
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var s =
|
|
42
|
-
function
|
|
41
|
+
var s = ke, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), v = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), j = Symbol.iterator, D = "@@iterator";
|
|
42
|
+
function Ae(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
45
|
var r = j && e[j] || e[D];
|
|
@@ -50,29 +50,29 @@ function Wr() {
|
|
|
50
50
|
{
|
|
51
51
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
52
52
|
i[c - 1] = arguments[c];
|
|
53
|
-
|
|
53
|
+
Ie("error", e, i);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ie(e, r, i) {
|
|
57
57
|
{
|
|
58
58
|
var c = $.ReactDebugCurrentFrame, m = c.getStackAddendum();
|
|
59
59
|
m !== "" && (r += "%s", i = i.concat([m]));
|
|
60
|
-
var y = i.map(function(
|
|
61
|
-
return String(
|
|
60
|
+
var y = i.map(function(h) {
|
|
61
|
+
return String(h);
|
|
62
62
|
});
|
|
63
63
|
y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var $e = !1, We = !1, Ye = !1, Me = !1, Le = !1, te;
|
|
67
67
|
te = Symbol.for("react.module.reference");
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e === a ||
|
|
68
|
+
function Ue(e) {
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === a || Le || e === o || e === _ || e === f || Me || e === R || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === d || e.$$typeof === t || e.$$typeof === v || e.$$typeof === p || // 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 === te || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ve(e, r, i) {
|
|
76
76
|
var c = e.displayName;
|
|
77
77
|
if (c)
|
|
78
78
|
return c;
|
|
@@ -98,7 +98,7 @@ function Wr() {
|
|
|
98
98
|
return "Profiler";
|
|
99
99
|
case o:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case _:
|
|
102
102
|
return "Suspense";
|
|
103
103
|
case f:
|
|
104
104
|
return "SuspenseList";
|
|
@@ -112,14 +112,14 @@ function Wr() {
|
|
|
112
112
|
var i = e;
|
|
113
113
|
return ne(i._context) + ".Provider";
|
|
114
114
|
case p:
|
|
115
|
-
return
|
|
115
|
+
return Ve(e, e.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
117
|
var c = e.displayName || null;
|
|
118
118
|
return c !== null ? c : F(e.type) || "Memo";
|
|
119
119
|
case x: {
|
|
120
|
-
var m = e, y = m._payload,
|
|
120
|
+
var m = e, y = m._payload, h = m._init;
|
|
121
121
|
try {
|
|
122
|
-
return F(
|
|
122
|
+
return F(h(y));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -131,7 +131,7 @@ function Wr() {
|
|
|
131
131
|
function ce() {
|
|
132
132
|
}
|
|
133
133
|
ce.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function Ne() {
|
|
135
135
|
{
|
|
136
136
|
if (M === 0) {
|
|
137
137
|
ae = console.log, ie = console.info, se = console.warn, le = console.error, ue = console.group, oe = console.groupCollapsed, fe = console.groupEnd;
|
|
@@ -154,7 +154,7 @@ function Wr() {
|
|
|
154
154
|
M++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Je() {
|
|
158
158
|
{
|
|
159
159
|
if (M--, M === 0) {
|
|
160
160
|
var e = {
|
|
@@ -189,27 +189,27 @@ function Wr() {
|
|
|
189
189
|
M < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
192
|
+
var z = $.ReactCurrentDispatcher, X;
|
|
193
193
|
function N(e, r, i) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (X === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (m) {
|
|
199
199
|
var c = m.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
-
|
|
200
|
+
X = c && c[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + X + e;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var H = !1, J;
|
|
207
207
|
{
|
|
208
|
-
var
|
|
209
|
-
J = new
|
|
208
|
+
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
J = new qe();
|
|
210
210
|
}
|
|
211
211
|
function de(e, r) {
|
|
212
|
-
if (!e ||
|
|
212
|
+
if (!e || H)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
215
|
var i = J.get(e);
|
|
@@ -217,34 +217,34 @@ function Wr() {
|
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
219
219
|
var c;
|
|
220
|
-
|
|
220
|
+
H = !0;
|
|
221
221
|
var m = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var y;
|
|
224
|
-
y =
|
|
224
|
+
y = z.current, z.current = null, Ne();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
|
-
var
|
|
227
|
+
var h = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(h.prototype, "props", {
|
|
231
231
|
set: function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
}
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
|
-
Reflect.construct(
|
|
236
|
+
Reflect.construct(h, []);
|
|
237
237
|
} catch (k) {
|
|
238
238
|
c = k;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(e, [],
|
|
240
|
+
Reflect.construct(e, [], h);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
h.call();
|
|
244
244
|
} catch (k) {
|
|
245
245
|
c = k;
|
|
246
246
|
}
|
|
247
|
-
e.call(
|
|
247
|
+
e.call(h.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
@@ -274,15 +274,15 @@ function Wr() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
H = !1, z.current = y, Je(), Error.prepareStackTrace = m;
|
|
278
278
|
}
|
|
279
279
|
var Y = e ? e.displayName || e.name : "", I = Y ? N(Y) : "";
|
|
280
280
|
return typeof e == "function" && J.set(e, I), I;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Ge(e, r, i) {
|
|
283
283
|
return de(e, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Ke(e) {
|
|
286
286
|
var r = e.prototype;
|
|
287
287
|
return !!(r && r.isReactComponent);
|
|
288
288
|
}
|
|
@@ -290,11 +290,11 @@ function Wr() {
|
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
293
|
-
return de(e,
|
|
293
|
+
return de(e, Ke(e));
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return N(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
297
|
+
case _:
|
|
298
298
|
return N("Suspense");
|
|
299
299
|
case f:
|
|
300
300
|
return N("SuspenseList");
|
|
@@ -302,7 +302,7 @@ function Wr() {
|
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
304
|
case p:
|
|
305
|
-
return
|
|
305
|
+
return Ge(e.render);
|
|
306
306
|
case d:
|
|
307
307
|
return q(e.type, r, i);
|
|
308
308
|
case x: {
|
|
@@ -323,36 +323,36 @@ function Wr() {
|
|
|
323
323
|
} else
|
|
324
324
|
pe.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function ze(e, r, i, c, m) {
|
|
327
327
|
{
|
|
328
328
|
var y = Function.call.bind(L);
|
|
329
|
-
for (var
|
|
330
|
-
if (y(e,
|
|
329
|
+
for (var h in e)
|
|
330
|
+
if (y(e, h)) {
|
|
331
331
|
var b = void 0;
|
|
332
332
|
try {
|
|
333
|
-
if (typeof e[
|
|
334
|
-
var w = Error((c || "React class") + ": " + i + " type `" +
|
|
333
|
+
if (typeof e[h] != "function") {
|
|
334
|
+
var w = Error((c || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.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
|
-
b = e[
|
|
337
|
+
b = e[h](r, h, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (T) {
|
|
339
339
|
b = T;
|
|
340
340
|
}
|
|
341
|
-
b && !(b instanceof Error) && (G(m), 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).", c || "React class", i,
|
|
341
|
+
b && !(b instanceof Error) && (G(m), 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).", c || "React class", i, h, typeof b), G(null)), b instanceof Error && !(b.message in ve) && (ve[b.message] = !0, G(m), P("Failed %s type: %s", i, b.message), G(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
var Xe = Array.isArray;
|
|
346
|
+
function Z(e) {
|
|
347
|
+
return Xe(e);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function He(e) {
|
|
350
350
|
{
|
|
351
351
|
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
352
|
return i;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ze(e) {
|
|
356
356
|
try {
|
|
357
357
|
return be(e), !1;
|
|
358
358
|
} catch {
|
|
@@ -362,17 +362,17 @@ function Wr() {
|
|
|
362
362
|
function be(e) {
|
|
363
363
|
return "" + e;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
if (
|
|
367
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
365
|
+
function he(e) {
|
|
366
|
+
if (Ze(e))
|
|
367
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), be(e);
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var Ee = $.ReactCurrentOwner, Qe = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
374
|
}, me, ye;
|
|
375
|
-
function
|
|
375
|
+
function Be(e) {
|
|
376
376
|
if (L.call(e, "ref")) {
|
|
377
377
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
378
378
|
if (r && r.isReactWarning)
|
|
@@ -380,7 +380,7 @@ function Wr() {
|
|
|
380
380
|
}
|
|
381
381
|
return e.ref !== void 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function er(e) {
|
|
384
384
|
if (L.call(e, "key")) {
|
|
385
385
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
386
386
|
if (r && r.isReactWarning)
|
|
@@ -388,10 +388,10 @@ function Wr() {
|
|
|
388
388
|
}
|
|
389
389
|
return e.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function er(e, r) {
|
|
392
|
-
typeof e.ref == "string" && he.current;
|
|
393
|
-
}
|
|
394
391
|
function rr(e, r) {
|
|
392
|
+
typeof e.ref == "string" && Ee.current;
|
|
393
|
+
}
|
|
394
|
+
function tr(e, r) {
|
|
395
395
|
{
|
|
396
396
|
var i = function() {
|
|
397
397
|
me || (me = !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));
|
|
@@ -402,7 +402,7 @@ function Wr() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function nr(e, r) {
|
|
406
406
|
{
|
|
407
407
|
var i = function() {
|
|
408
408
|
ye || (ye = !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));
|
|
@@ -413,7 +413,7 @@ function Wr() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var ar = function(e, r, i, c, m, y, h) {
|
|
417
417
|
var b = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: u,
|
|
@@ -421,7 +421,7 @@ function Wr() {
|
|
|
421
421
|
type: e,
|
|
422
422
|
key: r,
|
|
423
423
|
ref: i,
|
|
424
|
-
props:
|
|
424
|
+
props: h,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
426
|
_owner: y
|
|
427
427
|
};
|
|
@@ -442,41 +442,41 @@ function Wr() {
|
|
|
442
442
|
value: m
|
|
443
443
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function ir(e, r, i, c, m) {
|
|
446
446
|
{
|
|
447
|
-
var y,
|
|
448
|
-
i !== void 0 && (
|
|
447
|
+
var y, h = {}, b = null, w = null;
|
|
448
|
+
i !== void 0 && (he(i), b = "" + i), er(r) && (he(r.key), b = "" + r.key), Be(r) && (w = r.ref, rr(r, m));
|
|
449
449
|
for (y in r)
|
|
450
|
-
L.call(r, y) && !
|
|
450
|
+
L.call(r, y) && !Qe.hasOwnProperty(y) && (h[y] = r[y]);
|
|
451
451
|
if (e && e.defaultProps) {
|
|
452
452
|
var T = e.defaultProps;
|
|
453
453
|
for (y in T)
|
|
454
|
-
|
|
454
|
+
h[y] === void 0 && (h[y] = T[y]);
|
|
455
455
|
}
|
|
456
456
|
if (b || w) {
|
|
457
457
|
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
-
b &&
|
|
458
|
+
b && tr(h, O), w && nr(h, O);
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return ar(e, b, w, m, c, Ee.current, h);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Q = $.ReactCurrentOwner, Re = $.ReactDebugCurrentFrame;
|
|
464
464
|
function W(e) {
|
|
465
465
|
if (e) {
|
|
466
466
|
var r = e._owner, i = q(e.type, e._source, r ? r.type : null);
|
|
467
|
-
|
|
467
|
+
Re.setExtraStackFrame(i);
|
|
468
468
|
} else
|
|
469
|
-
|
|
469
|
+
Re.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
function
|
|
471
|
+
var B;
|
|
472
|
+
B = !1;
|
|
473
|
+
function ee(e) {
|
|
474
474
|
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function _e() {
|
|
477
477
|
{
|
|
478
|
-
if (
|
|
479
|
-
var e = F(
|
|
478
|
+
if (Q.current) {
|
|
479
|
+
var e = F(Q.current.type);
|
|
480
480
|
if (e)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,13 +485,13 @@ Check the render method of \`` + e + "`.";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function sr(e) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
var ge = {};
|
|
492
|
-
function
|
|
492
|
+
function lr(e) {
|
|
493
493
|
{
|
|
494
|
-
var r =
|
|
494
|
+
var r = _e();
|
|
495
495
|
if (!r) {
|
|
496
496
|
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
497
|
i && (r = `
|
|
@@ -506,34 +506,34 @@ Check the top-level render call using <` + i + ">.");
|
|
|
506
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
|
-
var i =
|
|
509
|
+
var i = lr(r);
|
|
510
510
|
if (ge[i])
|
|
511
511
|
return;
|
|
512
512
|
ge[i] = !0;
|
|
513
513
|
var c = "";
|
|
514
|
-
e && e._owner && e._owner !==
|
|
514
|
+
e && e._owner && e._owner !== Q.current && (c = " It was passed a child from " + F(e._owner.type) + "."), W(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.', i, c), W(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function Te(e, r) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof e != "object")
|
|
520
520
|
return;
|
|
521
|
-
if (
|
|
521
|
+
if (Z(e))
|
|
522
522
|
for (var i = 0; i < e.length; i++) {
|
|
523
523
|
var c = e[i];
|
|
524
|
-
|
|
524
|
+
ee(c) && xe(c, r);
|
|
525
525
|
}
|
|
526
|
-
else if (
|
|
526
|
+
else if (ee(e))
|
|
527
527
|
e._store && (e._store.validated = !0);
|
|
528
528
|
else if (e) {
|
|
529
|
-
var m =
|
|
529
|
+
var m = Ae(e);
|
|
530
530
|
if (typeof m == "function" && m !== e.entries)
|
|
531
|
-
for (var y = m.call(e),
|
|
532
|
-
|
|
531
|
+
for (var y = m.call(e), h; !(h = y.next()).done; )
|
|
532
|
+
ee(h.value) && xe(h.value, r);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function ur(e) {
|
|
537
537
|
{
|
|
538
538
|
var r = e.type;
|
|
539
539
|
if (r == null || typeof r == "string")
|
|
@@ -549,16 +549,16 @@ Check the top-level render call using <` + i + ">.");
|
|
|
549
549
|
return;
|
|
550
550
|
if (i) {
|
|
551
551
|
var c = F(r);
|
|
552
|
-
|
|
553
|
-
} else if (r.PropTypes !== void 0 && !
|
|
554
|
-
|
|
552
|
+
ze(i, e.props, "prop", c, e);
|
|
553
|
+
} else if (r.PropTypes !== void 0 && !B) {
|
|
554
|
+
B = !0;
|
|
555
555
|
var m = F(r);
|
|
556
556
|
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "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
|
-
function
|
|
561
|
+
function or(e) {
|
|
562
562
|
{
|
|
563
563
|
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
564
564
|
var c = r[i];
|
|
@@ -573,23 +573,23 @@ Check the top-level render call using <` + i + ">.");
|
|
|
573
573
|
var je = {};
|
|
574
574
|
function Oe(e, r, i, c, m, y) {
|
|
575
575
|
{
|
|
576
|
-
var
|
|
577
|
-
if (!
|
|
576
|
+
var h = Ue(e);
|
|
577
|
+
if (!h) {
|
|
578
578
|
var b = "";
|
|
579
579
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
-
var w =
|
|
581
|
-
w ? b += w : b +=
|
|
580
|
+
var w = sr();
|
|
581
|
+
w ? b += w : b += _e();
|
|
582
582
|
var T;
|
|
583
|
-
e === null ? T = "null" :
|
|
583
|
+
e === null ? T = "null" : Z(e) ? T = "array" : e !== void 0 && e.$$typeof === u ? (T = "<" + (F(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : T = 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", T, b);
|
|
584
584
|
}
|
|
585
|
-
var O =
|
|
585
|
+
var O = ir(e, r, i, m, y);
|
|
586
586
|
if (O == null)
|
|
587
587
|
return O;
|
|
588
|
-
if (
|
|
588
|
+
if (h) {
|
|
589
589
|
var C = r.children;
|
|
590
590
|
if (C !== void 0)
|
|
591
591
|
if (c)
|
|
592
|
-
if (
|
|
592
|
+
if (Z(C)) {
|
|
593
593
|
for (var Y = 0; Y < C.length; Y++)
|
|
594
594
|
Te(C[Y], e);
|
|
595
595
|
Object.freeze && Object.freeze(C);
|
|
@@ -599,35 +599,38 @@ Check the top-level render call using <` + i + ">.");
|
|
|
599
599
|
Te(C, e);
|
|
600
600
|
}
|
|
601
601
|
if (L.call(r, "key")) {
|
|
602
|
-
var I = F(e), k = Object.keys(r).filter(function(
|
|
603
|
-
return
|
|
604
|
-
}),
|
|
605
|
-
if (!je[I +
|
|
606
|
-
var
|
|
602
|
+
var I = F(e), k = Object.keys(r).filter(function(br) {
|
|
603
|
+
return br !== "key";
|
|
604
|
+
}), re = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!je[I + re]) {
|
|
606
|
+
var pr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
|
|
607
607
|
P(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`,
|
|
612
|
+
<%s key={someKey} {...props} />`, re, I, pr, I), je[I + re] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return e === l ?
|
|
615
|
+
return e === l ? or(O) : ur(O), O;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function fr(e, r, i) {
|
|
619
619
|
return Oe(e, r, i, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function cr(e, r, i) {
|
|
622
622
|
return Oe(e, r, i, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
V.Fragment = l, V.jsx =
|
|
624
|
+
var dr = cr, vr = fr;
|
|
625
|
+
V.Fragment = l, V.jsx = dr, V.jsxs = vr;
|
|
626
626
|
}()), V;
|
|
627
627
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
628
|
+
var we;
|
|
629
|
+
function Mr() {
|
|
630
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? K.exports = Wr() : K.exports = Yr()), K.exports;
|
|
631
|
+
}
|
|
632
|
+
var E = Mr();
|
|
633
|
+
const qr = ({
|
|
631
634
|
name: s,
|
|
632
635
|
control: u,
|
|
633
636
|
onRemoveButtonClick: n,
|
|
@@ -637,31 +640,31 @@ const Nr = ({
|
|
|
637
640
|
handleState: t = !0,
|
|
638
641
|
...v
|
|
639
642
|
}) => {
|
|
640
|
-
const { errors: p } =
|
|
643
|
+
const { errors: p } = Ar({ control: u }), { fields: _, append: f, remove: d } = Ir({
|
|
641
644
|
name: s,
|
|
642
645
|
control: u
|
|
643
|
-
}), x =
|
|
644
|
-
() => o.map((
|
|
645
|
-
errorText: (j, D) =>
|
|
646
|
-
...
|
|
646
|
+
}), x = hr(
|
|
647
|
+
() => o.map((R) => ({
|
|
648
|
+
errorText: (j, D) => R.label && $r(p, `${s}.${D}.${R.label.toString().toLowerCase()}.message`),
|
|
649
|
+
...R
|
|
647
650
|
})),
|
|
648
651
|
[o, p, s]
|
|
649
652
|
);
|
|
650
|
-
return /* @__PURE__ */
|
|
653
|
+
return /* @__PURE__ */ E.jsx(
|
|
651
654
|
Er,
|
|
652
655
|
{
|
|
653
656
|
definition: x,
|
|
654
|
-
items:
|
|
655
|
-
onRemoveButtonClick: (
|
|
656
|
-
t && d(
|
|
657
|
+
items: _ || [],
|
|
658
|
+
onRemoveButtonClick: (R) => {
|
|
659
|
+
t && d(R.detail.itemIndex), n == null || n(R, d);
|
|
657
660
|
},
|
|
658
|
-
onAddButtonClick: (
|
|
659
|
-
t && f(a), l == null || l(
|
|
661
|
+
onAddButtonClick: (R) => {
|
|
662
|
+
t && f(a), l == null || l(R, f);
|
|
660
663
|
},
|
|
661
664
|
...v
|
|
662
665
|
}
|
|
663
666
|
);
|
|
664
|
-
},
|
|
667
|
+
}, Gr = ({
|
|
665
668
|
name: s,
|
|
666
669
|
control: u,
|
|
667
670
|
defaultValue: n,
|
|
@@ -676,13 +679,13 @@ const Nr = ({
|
|
|
676
679
|
a == null || a(f);
|
|
677
680
|
},
|
|
678
681
|
[a]
|
|
679
|
-
),
|
|
682
|
+
), _ = g(
|
|
680
683
|
(f) => {
|
|
681
684
|
t == null || t(f);
|
|
682
685
|
},
|
|
683
686
|
[t]
|
|
684
687
|
);
|
|
685
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ E.jsx(
|
|
686
689
|
S,
|
|
687
690
|
{
|
|
688
691
|
name: s,
|
|
@@ -690,24 +693,24 @@ const Nr = ({
|
|
|
690
693
|
defaultValue: n,
|
|
691
694
|
rules: l,
|
|
692
695
|
shouldUnregister: o,
|
|
693
|
-
render: ({ field: { ref: f, onBlur: d, onChange: x, value:
|
|
694
|
-
|
|
696
|
+
render: ({ field: { ref: f, onBlur: d, onChange: x, value: R } }) => /* @__PURE__ */ E.jsx(
|
|
697
|
+
mr,
|
|
695
698
|
{
|
|
696
699
|
ref: f,
|
|
697
700
|
name: s,
|
|
698
|
-
value:
|
|
701
|
+
value: R || "",
|
|
699
702
|
onBlur: (j) => {
|
|
700
703
|
d(), p(j);
|
|
701
704
|
},
|
|
702
705
|
onChange: (j) => {
|
|
703
|
-
x(j.detail.value),
|
|
706
|
+
x(j.detail.value), _(j);
|
|
704
707
|
},
|
|
705
708
|
...v
|
|
706
709
|
}
|
|
707
710
|
)
|
|
708
711
|
}
|
|
709
712
|
);
|
|
710
|
-
},
|
|
713
|
+
}, Kr = ({
|
|
711
714
|
name: s,
|
|
712
715
|
control: u,
|
|
713
716
|
onChange: n,
|
|
@@ -719,15 +722,15 @@ const Nr = ({
|
|
|
719
722
|
},
|
|
720
723
|
[n]
|
|
721
724
|
);
|
|
722
|
-
return /* @__PURE__ */
|
|
725
|
+
return /* @__PURE__ */ E.jsx(
|
|
723
726
|
S,
|
|
724
727
|
{
|
|
725
728
|
name: s,
|
|
726
729
|
control: u,
|
|
727
|
-
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */
|
|
730
|
+
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */ E.jsx(yr, { ref: a, onChange: o.bind(null, t), checked: v, ...l })
|
|
728
731
|
}
|
|
729
732
|
);
|
|
730
|
-
},
|
|
733
|
+
}, zr = ({
|
|
731
734
|
name: s,
|
|
732
735
|
control: u,
|
|
733
736
|
onSelectionChange: n,
|
|
@@ -739,15 +742,15 @@ const Nr = ({
|
|
|
739
742
|
},
|
|
740
743
|
[n]
|
|
741
744
|
);
|
|
742
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ E.jsx(
|
|
743
746
|
S,
|
|
744
747
|
{
|
|
745
748
|
name: s,
|
|
746
749
|
control: u,
|
|
747
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
750
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Rr, { onSelectionChange: o.bind(null, a), selectedItems: t, ...l })
|
|
748
751
|
}
|
|
749
752
|
);
|
|
750
|
-
},
|
|
753
|
+
}, Xr = ({
|
|
751
754
|
name: s,
|
|
752
755
|
control: u,
|
|
753
756
|
onChange: n,
|
|
@@ -759,15 +762,15 @@ const Nr = ({
|
|
|
759
762
|
},
|
|
760
763
|
[n]
|
|
761
764
|
);
|
|
762
|
-
return /* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ E.jsx(
|
|
763
766
|
S,
|
|
764
767
|
{
|
|
765
768
|
name: s,
|
|
766
769
|
control: u,
|
|
767
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
770
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(_r, { value: t || "", onChange: o.bind(null, a), ...l })
|
|
768
771
|
}
|
|
769
772
|
);
|
|
770
|
-
},
|
|
773
|
+
}, Hr = ({
|
|
771
774
|
name: s,
|
|
772
775
|
control: u,
|
|
773
776
|
defaultValue: n,
|
|
@@ -782,13 +785,13 @@ const Nr = ({
|
|
|
782
785
|
a == null || a(f);
|
|
783
786
|
},
|
|
784
787
|
[a]
|
|
785
|
-
),
|
|
788
|
+
), _ = g(
|
|
786
789
|
(f) => {
|
|
787
790
|
t == null || t(f);
|
|
788
791
|
},
|
|
789
792
|
[t]
|
|
790
793
|
);
|
|
791
|
-
return /* @__PURE__ */
|
|
794
|
+
return /* @__PURE__ */ E.jsx(
|
|
792
795
|
S,
|
|
793
796
|
{
|
|
794
797
|
name: s,
|
|
@@ -796,24 +799,24 @@ const Nr = ({
|
|
|
796
799
|
defaultValue: n,
|
|
797
800
|
rules: l,
|
|
798
801
|
shouldUnregister: o,
|
|
799
|
-
render: ({ field: { ref: f, onChange: d, onBlur: x, value:
|
|
800
|
-
|
|
802
|
+
render: ({ field: { ref: f, onChange: d, onBlur: x, value: R } }) => /* @__PURE__ */ E.jsx(
|
|
803
|
+
gr,
|
|
801
804
|
{
|
|
802
805
|
ref: f,
|
|
803
806
|
name: s,
|
|
804
|
-
value:
|
|
807
|
+
value: R,
|
|
805
808
|
onBlur: (j) => {
|
|
806
809
|
x(), p(j);
|
|
807
810
|
},
|
|
808
811
|
onChange: (j) => {
|
|
809
|
-
d(j.detail.value),
|
|
812
|
+
d(j.detail.value), _(j);
|
|
810
813
|
},
|
|
811
814
|
...v
|
|
812
815
|
}
|
|
813
816
|
)
|
|
814
817
|
}
|
|
815
818
|
);
|
|
816
|
-
},
|
|
819
|
+
}, Zr = ({
|
|
817
820
|
name: s,
|
|
818
821
|
control: u,
|
|
819
822
|
onBlur: n,
|
|
@@ -831,13 +834,13 @@ const Nr = ({
|
|
|
831
834
|
},
|
|
832
835
|
[l]
|
|
833
836
|
);
|
|
834
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ E.jsx(
|
|
835
838
|
S,
|
|
836
839
|
{
|
|
837
840
|
name: s,
|
|
838
841
|
control: u,
|
|
839
|
-
render: ({ field: { ref: v, onBlur: p, onChange:
|
|
840
|
-
|
|
842
|
+
render: ({ field: { ref: v, onBlur: p, onChange: _, value: f } }) => /* @__PURE__ */ E.jsx(
|
|
843
|
+
xr,
|
|
841
844
|
{
|
|
842
845
|
ref: v,
|
|
843
846
|
value: f,
|
|
@@ -845,14 +848,14 @@ const Nr = ({
|
|
|
845
848
|
p(), a(d);
|
|
846
849
|
},
|
|
847
850
|
onChange: (d) => {
|
|
848
|
-
|
|
851
|
+
_(d.detail.value), t(d);
|
|
849
852
|
},
|
|
850
853
|
...o
|
|
851
854
|
}
|
|
852
855
|
)
|
|
853
856
|
}
|
|
854
857
|
);
|
|
855
|
-
},
|
|
858
|
+
}, Qr = ({
|
|
856
859
|
name: s,
|
|
857
860
|
control: u,
|
|
858
861
|
defaultValue: n,
|
|
@@ -867,13 +870,13 @@ const Nr = ({
|
|
|
867
870
|
a == null || a(f);
|
|
868
871
|
},
|
|
869
872
|
[a]
|
|
870
|
-
),
|
|
873
|
+
), _ = g(
|
|
871
874
|
(f) => {
|
|
872
875
|
t == null || t(f);
|
|
873
876
|
},
|
|
874
877
|
[t]
|
|
875
878
|
);
|
|
876
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ E.jsx(
|
|
877
880
|
S,
|
|
878
881
|
{
|
|
879
882
|
name: s,
|
|
@@ -881,36 +884,36 @@ const Nr = ({
|
|
|
881
884
|
defaultValue: n,
|
|
882
885
|
rules: l,
|
|
883
886
|
shouldUnregister: o,
|
|
884
|
-
render: ({ field: { ref: f, onBlur: d, onChange: x, value:
|
|
885
|
-
|
|
887
|
+
render: ({ field: { ref: f, onBlur: d, onChange: x, value: R } }) => /* @__PURE__ */ E.jsx(
|
|
888
|
+
Tr,
|
|
886
889
|
{
|
|
887
890
|
ref: f,
|
|
888
891
|
name: s,
|
|
889
|
-
value:
|
|
892
|
+
value: R,
|
|
890
893
|
onBlur: (j) => {
|
|
891
894
|
d(), p(j);
|
|
892
895
|
},
|
|
893
896
|
onChange: (j) => {
|
|
894
|
-
x(j.detail.value),
|
|
897
|
+
x(j.detail.value), _(j);
|
|
895
898
|
},
|
|
896
899
|
...v
|
|
897
900
|
}
|
|
898
901
|
)
|
|
899
902
|
}
|
|
900
903
|
);
|
|
901
|
-
},
|
|
904
|
+
}, Ce = (s = []) => s != null && s.length ? s.map((u) => "options" in u ? Ce(u.options) : u.value).flat() : [], De = (s = [], u = []) => s != null && s.length && (u != null && u.length) ? s.reduce((n, l) => {
|
|
902
905
|
if (s != null && s.length) {
|
|
903
906
|
if ("options" in l) {
|
|
904
|
-
const o =
|
|
907
|
+
const o = De(l.options, u);
|
|
905
908
|
o != null && o.length && n.push(...o);
|
|
906
909
|
}
|
|
907
910
|
"value" in l && u.find((o) => o === l.value) && n.push(l);
|
|
908
911
|
}
|
|
909
912
|
return n;
|
|
910
|
-
}, []).flat() : [],
|
|
911
|
-
transformMultiselectOptionsToArray:
|
|
912
|
-
mapSelectedOptionsWithOptions:
|
|
913
|
-
},
|
|
913
|
+
}, []).flat() : [], Lr = {
|
|
914
|
+
transformMultiselectOptionsToArray: Ce,
|
|
915
|
+
mapSelectedOptionsWithOptions: De
|
|
916
|
+
}, Br = ({
|
|
914
917
|
name: s,
|
|
915
918
|
control: u,
|
|
916
919
|
options: n,
|
|
@@ -921,7 +924,7 @@ const Nr = ({
|
|
|
921
924
|
shouldUnregister: v = !1,
|
|
922
925
|
...p
|
|
923
926
|
}) => {
|
|
924
|
-
const
|
|
927
|
+
const _ = g(
|
|
925
928
|
(d) => {
|
|
926
929
|
a == null || a(d);
|
|
927
930
|
},
|
|
@@ -932,7 +935,7 @@ const Nr = ({
|
|
|
932
935
|
},
|
|
933
936
|
[t]
|
|
934
937
|
);
|
|
935
|
-
return /* @__PURE__ */
|
|
938
|
+
return /* @__PURE__ */ E.jsx(
|
|
936
939
|
S,
|
|
937
940
|
{
|
|
938
941
|
name: s,
|
|
@@ -940,16 +943,16 @@ const Nr = ({
|
|
|
940
943
|
defaultValue: l,
|
|
941
944
|
rules: o,
|
|
942
945
|
shouldUnregister: v,
|
|
943
|
-
render: ({ field: { ref: d, onBlur: x, onChange:
|
|
944
|
-
|
|
946
|
+
render: ({ field: { ref: d, onBlur: x, onChange: R, value: j } }) => /* @__PURE__ */ E.jsx(
|
|
947
|
+
jr,
|
|
945
948
|
{
|
|
946
949
|
ref: d,
|
|
947
950
|
options: n,
|
|
948
951
|
onBlur: (D) => {
|
|
949
|
-
x(),
|
|
952
|
+
x(), _(D);
|
|
950
953
|
},
|
|
951
954
|
onChange: (D) => {
|
|
952
|
-
|
|
955
|
+
R(Lr.transformMultiselectOptionsToArray(D.detail.selectedOptions)), f(D);
|
|
953
956
|
},
|
|
954
957
|
selectedOptions: j,
|
|
955
958
|
...p
|
|
@@ -957,7 +960,7 @@ const Nr = ({
|
|
|
957
960
|
)
|
|
958
961
|
}
|
|
959
962
|
);
|
|
960
|
-
},
|
|
963
|
+
}, et = ({
|
|
961
964
|
name: s,
|
|
962
965
|
control: u,
|
|
963
966
|
onChange: n,
|
|
@@ -969,29 +972,29 @@ const Nr = ({
|
|
|
969
972
|
},
|
|
970
973
|
[n]
|
|
971
974
|
);
|
|
972
|
-
return /* @__PURE__ */
|
|
975
|
+
return /* @__PURE__ */ E.jsx(
|
|
973
976
|
S,
|
|
974
977
|
{
|
|
975
978
|
name: s,
|
|
976
979
|
control: u,
|
|
977
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
980
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Or, { onChange: o.bind(null, a), value: t, items: l.items, ...l })
|
|
978
981
|
}
|
|
979
982
|
);
|
|
980
|
-
},
|
|
983
|
+
}, Fe = (s = [], u) => {
|
|
981
984
|
let n = null;
|
|
982
985
|
return s && u && (n = s.reduce(
|
|
983
986
|
(l, o) => {
|
|
984
987
|
if ("options" in o) {
|
|
985
|
-
const a =
|
|
988
|
+
const a = Fe(o.options, u);
|
|
986
989
|
a && l.push(a);
|
|
987
990
|
}
|
|
988
991
|
return "value" in o && o.value === u && l.push(o), l;
|
|
989
992
|
},
|
|
990
993
|
[]
|
|
991
994
|
)[0]), n || null;
|
|
992
|
-
},
|
|
993
|
-
mapSelectedOptionWithOptions:
|
|
994
|
-
},
|
|
995
|
+
}, Ur = {
|
|
996
|
+
mapSelectedOptionWithOptions: Fe
|
|
997
|
+
}, rt = ({
|
|
995
998
|
name: s,
|
|
996
999
|
control: u,
|
|
997
1000
|
defaultValue: n,
|
|
@@ -1006,13 +1009,13 @@ const Nr = ({
|
|
|
1006
1009
|
f(), a == null || a(d);
|
|
1007
1010
|
},
|
|
1008
1011
|
[a]
|
|
1009
|
-
),
|
|
1012
|
+
), _ = g(
|
|
1010
1013
|
(f, d) => {
|
|
1011
1014
|
f(d.detail.selectedOption.value), t == null || t(d);
|
|
1012
1015
|
},
|
|
1013
1016
|
[t]
|
|
1014
1017
|
);
|
|
1015
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ E.jsx(
|
|
1016
1019
|
S,
|
|
1017
1020
|
{
|
|
1018
1021
|
name: s,
|
|
@@ -1020,19 +1023,19 @@ const Nr = ({
|
|
|
1020
1023
|
defaultValue: n,
|
|
1021
1024
|
rules: l,
|
|
1022
1025
|
shouldUnregister: o,
|
|
1023
|
-
render: ({ field: { ref: f, onChange: d, onBlur: x, value:
|
|
1024
|
-
|
|
1026
|
+
render: ({ field: { ref: f, onChange: d, onBlur: x, value: R } }) => /* @__PURE__ */ E.jsx(
|
|
1027
|
+
Sr,
|
|
1025
1028
|
{
|
|
1026
1029
|
ref: f,
|
|
1027
|
-
selectedOption:
|
|
1030
|
+
selectedOption: Ur.mapSelectedOptionWithOptions(v.options, R),
|
|
1028
1031
|
onBlur: p.bind(null, x),
|
|
1029
|
-
onChange:
|
|
1032
|
+
onChange: _.bind(null, d),
|
|
1030
1033
|
...v
|
|
1031
1034
|
}
|
|
1032
1035
|
)
|
|
1033
1036
|
}
|
|
1034
1037
|
);
|
|
1035
|
-
},
|
|
1038
|
+
}, tt = ({
|
|
1036
1039
|
name: s,
|
|
1037
1040
|
control: u,
|
|
1038
1041
|
onChange: n,
|
|
@@ -1044,13 +1047,13 @@ const Nr = ({
|
|
|
1044
1047
|
},
|
|
1045
1048
|
[n]
|
|
1046
1049
|
);
|
|
1047
|
-
return /* @__PURE__ */
|
|
1050
|
+
return /* @__PURE__ */ E.jsx(
|
|
1048
1051
|
S,
|
|
1049
1052
|
{
|
|
1050
1053
|
name: s,
|
|
1051
1054
|
control: u,
|
|
1052
|
-
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */
|
|
1053
|
-
|
|
1055
|
+
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */ E.jsx(
|
|
1056
|
+
Pr,
|
|
1054
1057
|
{
|
|
1055
1058
|
ref: a,
|
|
1056
1059
|
tags: v || [],
|
|
@@ -1060,7 +1063,7 @@ const Nr = ({
|
|
|
1060
1063
|
)
|
|
1061
1064
|
}
|
|
1062
1065
|
);
|
|
1063
|
-
},
|
|
1066
|
+
}, nt = ({
|
|
1064
1067
|
name: s,
|
|
1065
1068
|
control: u,
|
|
1066
1069
|
onChange: n,
|
|
@@ -1072,13 +1075,13 @@ const Nr = ({
|
|
|
1072
1075
|
},
|
|
1073
1076
|
[n]
|
|
1074
1077
|
);
|
|
1075
|
-
return /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ E.jsx(
|
|
1076
1079
|
S,
|
|
1077
1080
|
{
|
|
1078
1081
|
name: s,
|
|
1079
1082
|
control: u,
|
|
1080
|
-
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */
|
|
1081
|
-
|
|
1083
|
+
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */ E.jsx(
|
|
1084
|
+
wr,
|
|
1082
1085
|
{
|
|
1083
1086
|
ref: a,
|
|
1084
1087
|
filteringText: v,
|
|
@@ -1088,7 +1091,7 @@ const Nr = ({
|
|
|
1088
1091
|
)
|
|
1089
1092
|
}
|
|
1090
1093
|
);
|
|
1091
|
-
},
|
|
1094
|
+
}, at = ({
|
|
1092
1095
|
name: s,
|
|
1093
1096
|
control: u,
|
|
1094
1097
|
defaultValue: n,
|
|
@@ -1103,13 +1106,13 @@ const Nr = ({
|
|
|
1103
1106
|
f(), a == null || a(d);
|
|
1104
1107
|
},
|
|
1105
1108
|
[a]
|
|
1106
|
-
),
|
|
1109
|
+
), _ = g(
|
|
1107
1110
|
(f, d) => {
|
|
1108
1111
|
f(d.detail.value), t == null || t(d);
|
|
1109
1112
|
},
|
|
1110
1113
|
[t]
|
|
1111
1114
|
);
|
|
1112
|
-
return /* @__PURE__ */
|
|
1115
|
+
return /* @__PURE__ */ E.jsx(
|
|
1113
1116
|
S,
|
|
1114
1117
|
{
|
|
1115
1118
|
name: s,
|
|
@@ -1117,35 +1120,35 @@ const Nr = ({
|
|
|
1117
1120
|
defaultValue: n,
|
|
1118
1121
|
rules: l,
|
|
1119
1122
|
shouldUnregister: o,
|
|
1120
|
-
render: ({ field: { onChange: f, onBlur: d, value: x, ref:
|
|
1121
|
-
|
|
1123
|
+
render: ({ field: { onChange: f, onBlur: d, value: x, ref: R } }) => /* @__PURE__ */ E.jsx(
|
|
1124
|
+
kr,
|
|
1122
1125
|
{
|
|
1123
|
-
ref:
|
|
1126
|
+
ref: R,
|
|
1124
1127
|
name: s,
|
|
1125
1128
|
value: x,
|
|
1126
1129
|
onBlur: p.bind(null, d),
|
|
1127
|
-
onChange:
|
|
1130
|
+
onChange: _.bind(null, f),
|
|
1128
1131
|
...v
|
|
1129
1132
|
}
|
|
1130
1133
|
)
|
|
1131
1134
|
}
|
|
1132
1135
|
);
|
|
1133
|
-
},
|
|
1136
|
+
}, it = ({ name: s, control: u, onChange: n, ...l }) => {
|
|
1134
1137
|
const o = g(
|
|
1135
1138
|
(a, t) => {
|
|
1136
1139
|
a(t.detail.value), n == null || n(t);
|
|
1137
1140
|
},
|
|
1138
1141
|
[n]
|
|
1139
1142
|
);
|
|
1140
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ E.jsx(
|
|
1141
1144
|
S,
|
|
1142
1145
|
{
|
|
1143
1146
|
name: s,
|
|
1144
1147
|
control: u,
|
|
1145
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
1148
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ E.jsx(Cr, { onChange: o.bind(null, a), value: t, items: l.items, ...l })
|
|
1146
1149
|
}
|
|
1147
1150
|
);
|
|
1148
|
-
},
|
|
1151
|
+
}, st = ({
|
|
1149
1152
|
name: s,
|
|
1150
1153
|
control: u,
|
|
1151
1154
|
onBlur: n,
|
|
@@ -1163,25 +1166,25 @@ const Nr = ({
|
|
|
1163
1166
|
},
|
|
1164
1167
|
[l]
|
|
1165
1168
|
);
|
|
1166
|
-
return /* @__PURE__ */
|
|
1169
|
+
return /* @__PURE__ */ E.jsx(
|
|
1167
1170
|
S,
|
|
1168
1171
|
{
|
|
1169
1172
|
name: s,
|
|
1170
1173
|
control: u,
|
|
1171
|
-
render: ({ field: { ref: v, onChange: p, onBlur:
|
|
1172
|
-
|
|
1174
|
+
render: ({ field: { ref: v, onChange: p, onBlur: _, value: f } }) => /* @__PURE__ */ E.jsx(
|
|
1175
|
+
Dr,
|
|
1173
1176
|
{
|
|
1174
1177
|
name: s,
|
|
1175
1178
|
ref: v,
|
|
1176
1179
|
value: f,
|
|
1177
|
-
onBlur: a.bind(null,
|
|
1180
|
+
onBlur: a.bind(null, _),
|
|
1178
1181
|
onChange: t.bind(null, p),
|
|
1179
1182
|
...o
|
|
1180
1183
|
}
|
|
1181
1184
|
)
|
|
1182
1185
|
}
|
|
1183
1186
|
);
|
|
1184
|
-
},
|
|
1187
|
+
}, lt = ({
|
|
1185
1188
|
name: s,
|
|
1186
1189
|
control: u,
|
|
1187
1190
|
onChange: n,
|
|
@@ -1193,34 +1196,34 @@ const Nr = ({
|
|
|
1193
1196
|
},
|
|
1194
1197
|
[n]
|
|
1195
1198
|
);
|
|
1196
|
-
return /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ E.jsx(
|
|
1197
1200
|
S,
|
|
1198
1201
|
{
|
|
1199
1202
|
name: s,
|
|
1200
1203
|
control: u,
|
|
1201
|
-
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */
|
|
1204
|
+
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */ E.jsx(Fr, { ref: a, name: s, checked: v, onChange: o.bind(null, t), ...l })
|
|
1202
1205
|
}
|
|
1203
1206
|
);
|
|
1204
1207
|
};
|
|
1205
1208
|
export {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1209
|
+
qr as CAttributeEditor,
|
|
1210
|
+
Gr as CAutosuggest,
|
|
1211
|
+
zr as CCards,
|
|
1212
|
+
Kr as CCheckbox,
|
|
1213
|
+
Xr as CCodeEditor,
|
|
1214
|
+
Hr as CDatePicker,
|
|
1215
|
+
Zr as CDateRangePicker,
|
|
1216
|
+
Qr as CInput,
|
|
1217
|
+
Br as CMultiselect,
|
|
1218
|
+
et as CRadioGroup,
|
|
1219
|
+
rt as CSelect,
|
|
1220
|
+
tt as CTagEditor,
|
|
1221
|
+
nt as CTextFilter,
|
|
1222
|
+
at as CTextarea,
|
|
1223
|
+
it as CTiles,
|
|
1224
|
+
st as CTimeInput,
|
|
1225
|
+
lt as CToggle,
|
|
1226
|
+
Lr as MultiSelectUtils,
|
|
1227
|
+
Ur as SelectUtils
|
|
1225
1228
|
};
|
|
1226
1229
|
//# sourceMappingURL=react-hook-form-cloudscape.es.js.map
|