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.
Files changed (58) hide show
  1. package/README.md +5 -5
  2. package/components/attribute-editor/attribute-editor.d.ts +1 -1
  3. package/components/attribute-editor/attribute-editor.js +1 -1
  4. package/components/attribute-editor/attribute-editor.js.map +1 -1
  5. package/components/autosuggest/autosuggest.d.ts +0 -2
  6. package/components/autosuggest/autosuggest.js +8 -9
  7. package/components/autosuggest/autosuggest.js.map +1 -1
  8. package/components/cards/cards.d.ts +5 -2
  9. package/components/cards/cards.js +3 -3
  10. package/components/cards/cards.js.map +1 -1
  11. package/components/checkbox/checkbox.d.ts +5 -2
  12. package/components/checkbox/checkbox.js +2 -2
  13. package/components/checkbox/checkbox.js.map +1 -1
  14. package/components/code-editor/code-editor.d.ts +5 -2
  15. package/components/code-editor/code-editor.js +2 -2
  16. package/components/code-editor/code-editor.js.map +1 -1
  17. package/components/components/attribute-editor/attribute-editor.d.ts +1 -1
  18. package/components/components/autosuggest/autosuggest.d.ts +0 -2
  19. package/components/components/cards/cards.d.ts +5 -2
  20. package/components/components/checkbox/checkbox.d.ts +5 -2
  21. package/components/components/code-editor/code-editor.d.ts +5 -2
  22. package/components/components/date-range-picker/date-range-picker.d.ts +5 -2
  23. package/components/components/property-filter/property-filter.d.ts +1 -1
  24. package/components/components/radio-group/radio-group.d.ts +5 -2
  25. package/components/components/tag-editor/tag-editor.d.ts +5 -2
  26. package/components/components/text-filter/text-filter.d.ts +5 -2
  27. package/components/components/tiles/tiles.d.ts +5 -2
  28. package/components/components/time-input/time-input.d.ts +5 -2
  29. package/components/components/toggle/toggle.d.ts +5 -2
  30. package/components/date-range-picker/date-range-picker.d.ts +5 -2
  31. package/components/date-range-picker/date-range-picker.js +3 -3
  32. package/components/date-range-picker/date-range-picker.js.map +1 -1
  33. package/components/property-filter/property-filter.d.ts +1 -1
  34. package/components/property-filter/property-filter.js +2 -2
  35. package/components/property-filter/property-filter.js.map +1 -1
  36. package/components/radio-group/radio-group.d.ts +5 -2
  37. package/components/radio-group/radio-group.js +2 -2
  38. package/components/radio-group/radio-group.js.map +1 -1
  39. package/components/tag-editor/tag-editor.d.ts +5 -2
  40. package/components/tag-editor/tag-editor.js +2 -2
  41. package/components/tag-editor/tag-editor.js.map +1 -1
  42. package/components/text-filter/text-filter.d.ts +5 -2
  43. package/components/text-filter/text-filter.js +2 -2
  44. package/components/text-filter/text-filter.js.map +1 -1
  45. package/components/tiles/tiles.d.ts +5 -2
  46. package/components/tiles/tiles.js +2 -2
  47. package/components/tiles/tiles.js.map +1 -1
  48. package/components/time-input/time-input.d.ts +5 -2
  49. package/components/time-input/time-input.js +2 -2
  50. package/components/time-input/time-input.js.map +1 -1
  51. package/components/toggle/toggle.d.ts +5 -2
  52. package/components/toggle/toggle.js +2 -2
  53. package/components/toggle/toggle.js.map +1 -1
  54. package/package.json +24 -14
  55. package/react-hook-form-cloudscape.es.js +600 -531
  56. package/react-hook-form-cloudscape.es.js.map +1 -1
  57. package/react-hook-form-cloudscape.umd.js +10 -10
  58. package/react-hook-form-cloudscape.umd.js.map +1 -1
@@ -1,4 +1,4 @@
1
- import Fe, { useMemo as hr, useCallback as R } from "react";
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 i = Fe, u = Symbol.for("react.element"), a = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, t = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function n(d, c, b) {
20
- var o, p = {}, x = null, g = null;
21
- b !== void 0 && (x = "" + b), c.key !== void 0 && (x = "" + c.key), c.ref !== void 0 && (g = c.ref);
22
- for (o in c) l.call(c, o) && !t.hasOwnProperty(o) && (p[o] = c[o]);
23
- if (d && d.defaultProps) for (o in c = d.defaultProps, c) p[o] === void 0 && (p[o] = c[o]);
24
- return { $$typeof: u, type: d, key: x, ref: g, props: p, _owner: f.current };
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 = a, U.jsx = n, U.jsxs = n, U;
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 i = Fe, u = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), T = Symbol.iterator, K = "@@iterator";
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 = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
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, s = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
52
- s[v - 1] = arguments[v];
53
- Ie("error", e, s);
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, s) {
56
+ function Ie(e, r, o) {
57
57
  {
58
- var v = I.ReactDebugCurrentFrame, m = v.getStackAddendum();
59
- m !== "" && (r += "%s", s = s.concat([m]));
60
- var _ = s.map(function(y) {
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
- _.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
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 === l || e === t || Ue || e === f || e === b || e === o || Me || e === g || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === p || e.$$typeof === n || e.$$typeof === d || e.$$typeof === c || // This needs to include all possible module reference object
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, s) {
76
- var v = e.displayName;
77
- if (v)
78
- return v;
79
- var m = r.displayName || r.name || "";
80
- return m !== "" ? s + "(" + m + ")" : s;
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 l:
93
+ case c:
94
94
  return "Fragment";
95
- case a:
95
+ case s:
96
96
  return "Portal";
97
97
  case t:
98
98
  return "Profiler";
99
- case f:
99
+ case d:
100
100
  return "StrictMode";
101
- case b:
101
+ case a:
102
102
  return "Suspense";
103
- case o:
103
+ case i:
104
104
  return "SuspenseList";
105
105
  }
106
106
  if (typeof e == "object")
107
107
  switch (e.$$typeof) {
108
- case d:
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 p:
117
- var v = e.displayName || null;
118
- return v !== null ? v : F(e.type) || "Memo";
119
- case x: {
120
- var m = e, _ = m._payload, y = m._init;
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, s) {
193
+ function V(e, r, o) {
194
194
  {
195
195
  if (X === void 0)
196
196
  try {
197
197
  throw Error();
198
- } catch (m) {
199
- var v = m.stack.trim().match(/\n( *(at )?)/);
200
- X = v && v[1] || "";
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 s = N.get(e);
216
- if (s !== void 0)
217
- return s;
215
+ var o = N.get(e);
216
+ if (o !== void 0)
217
+ return o;
218
218
  }
219
- var v;
219
+ var b;
220
220
  H = !0;
221
- var m = Error.prepareStackTrace;
221
+ var R = Error.prepareStackTrace;
222
222
  Error.prepareStackTrace = void 0;
223
- var _;
224
- _ = z.current, z.current = null, Ne();
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
- v = k;
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
- v = k;
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
- v = k;
253
+ b = k;
254
254
  }
255
255
  e();
256
256
  }
257
257
  } catch (k) {
258
- if (k && v && typeof k.stack == "string") {
258
+ if (k && b && typeof k.stack == "string") {
259
259
  for (var E = k.stack.split(`
260
- `), w = v.stack.split(`
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 = _, qe(), Error.prepareStackTrace = m;
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, s) {
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, s) {
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 b:
297
+ case a:
298
298
  return V("Suspense");
299
- case o:
299
+ case i:
300
300
  return V("SuspenseList");
301
301
  }
302
302
  if (typeof e == "object")
303
303
  switch (e.$$typeof) {
304
- case c:
304
+ case n:
305
305
  return Ge(e.render);
306
- case p:
307
- return q(e.type, r, s);
308
- case x: {
309
- var v = e, m = v._payload, _ = v._init;
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(_(m), r, s);
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, s = q(e.type, e._source, r ? r.type : null);
322
- he.setExtraStackFrame(s);
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, s, v, m) {
326
+ function ze(e, r, o, b, R) {
327
327
  {
328
- var _ = Function.call.bind(M);
328
+ var g = Function.call.bind(M);
329
329
  for (var y in e)
330
- if (_(e, y)) {
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((v || "React class") + ": " + s + " 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`.");
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, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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(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).", v || "React class", s, y, typeof E), J(null)), E instanceof Error && !(E.message in be) && (be[E.message] = !0, J(m), P("Failed %s type: %s", s, E.message), J(null));
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, s = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
352
- return s;
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 s = function() {
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
- s.isReactWarning = !0, Object.defineProperty(e, "key", {
400
- get: s,
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 s = function() {
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
- s.isReactWarning = !0, Object.defineProperty(e, "ref", {
411
- get: s,
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, s, v, m, _, y) {
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: u,
419
+ $$typeof: f,
420
420
  // Built-in properties that belong on the element
421
421
  type: e,
422
422
  key: r,
423
- ref: s,
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: v
437
+ value: b
438
438
  }), Object.defineProperty(E, "_source", {
439
439
  configurable: !1,
440
440
  enumerable: !1,
441
441
  writable: !1,
442
- value: m
442
+ value: R
443
443
  }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
444
444
  };
445
- function ir(e, r, s, v, m) {
445
+ function ir(e, r, o, b, R) {
446
446
  {
447
- var _, y = {}, E = null, w = null;
448
- s !== void 0 && (ye(s), E = "" + s), er(r) && (ye(r.key), E = "" + r.key), Be(r) && (w = r.ref, rr(r, m));
449
- for (_ in r)
450
- M.call(r, _) && !Qe.hasOwnProperty(_) && (y[_] = 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 (_ in j)
454
- y[_] === void 0 && (y[_] = j[_]);
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, m, v, me.current, y);
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, s = q(e.type, e._source, r ? r.type : null);
467
- xe.setExtraStackFrame(s);
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 === u;
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 s = typeof e == "string" ? e : e.displayName || e.name;
497
- s && (r = `
496
+ var o = typeof e == "string" ? e : e.displayName || e.name;
497
+ o && (r = `
498
498
 
499
- Check the top-level render call using <` + s + ">.");
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 s = sr(r);
510
- if (je[s])
509
+ var o = sr(r);
510
+ if (je[o])
511
511
  return;
512
- je[s] = !0;
513
- var v = "";
514
- e && e._owner && e._owner !== Q.current && (v = " 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.', s, v), $(null);
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 s = 0; s < e.length; s++) {
523
- var v = e[s];
524
- ee(v) && Te(v, r);
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 m = Ae(e);
530
- if (typeof m == "function" && m !== e.entries)
531
- for (var _ = m.call(e), y; !(y = _.next()).done; )
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 s;
541
+ var o;
542
542
  if (typeof r == "function")
543
- s = r.propTypes;
544
- else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
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 === p))
547
- s = r.propTypes;
546
+ r.$$typeof === v))
547
+ o = r.propTypes;
548
548
  else
549
549
  return;
550
- if (s) {
551
- var v = F(r);
552
- ze(s, e.props, "prop", v, e);
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 m = F(r);
556
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
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), s = 0; s < r.length; s++) {
564
- var v = r[s];
565
- if (v !== "children" && v !== "key") {
566
- $(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), $(null);
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, s, v, m, _) {
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 === u ? (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);
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, s, m, _);
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 (v)
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 === l ? or(O) : ur(O), O;
615
+ return e === c ? or(O) : ur(O), O;
616
616
  }
617
617
  }
618
- function fr(e, r, s) {
619
- return Pe(e, r, s, !0);
618
+ function fr(e, r, o) {
619
+ return Pe(e, r, o, !0);
620
620
  }
621
- function cr(e, r, s) {
622
- return Pe(e, r, s, !1);
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 = l, L.jsx = dr, L.jsxs = vr;
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: i,
635
- control: u,
636
- onRemoveButtonClick: a,
637
- onAddButtonClick: l,
638
- definition: f,
639
- defaultValue: t,
640
- handleState: n = !0,
641
- ...d
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: c } = Yr({ control: u }), { fields: b, append: o, remove: p } = Mr({
644
- name: i,
645
- control: u
646
- }), x = hr(
647
- () => f.map((g) => ({
648
- errorText: (T, K) => g.label && Ur(c, `${i}.${K}.${g.label.toString().toLowerCase()}.message`),
649
- ...g
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
- [f, c, i]
651
+ [s, n, u]
652
652
  );
653
653
  return /* @__PURE__ */ h.jsx(
654
654
  Er,
655
655
  {
656
- definition: x,
657
- items: b || [],
658
- onRemoveButtonClick: (g) => {
659
- n && p(g.detail.itemIndex), a == null || a(g, p);
656
+ definition: m,
657
+ items: a || [],
658
+ onRemoveButtonClick: (_) => {
659
+ d && v(_.detail.itemIndex), l == null || l(_, v);
660
660
  },
661
- onAddButtonClick: (g) => {
662
- n && o(t), l == null || l(g, o);
661
+ onAddButtonClick: (_) => {
662
+ d && i(c), t == null || t(_, i);
663
663
  },
664
- ...d
664
+ ...p
665
665
  }
666
666
  );
667
667
  }, Xr = ({
668
- name: i,
669
- control: u,
670
- defaultValue: a,
671
- rules: l,
672
- shouldUnregister: f = !1,
668
+ name: u,
669
+ control: f,
670
+ defaultValue: s,
671
+ rules: c,
672
+ shouldUnregister: d = !1,
673
673
  onBlur: t,
674
- onChange: n,
675
- ...d
674
+ onChange: l,
675
+ ...p
676
676
  }) => {
677
- const c = R(
678
- (o) => {
679
- t == null || t(o);
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
- ), b = R(
683
- (o) => {
684
- n == null || n(o);
683
+ ), a = x(
684
+ (i, v) => {
685
+ i(v.detail.value), l == null || l(v);
685
686
  },
686
- [n]
687
+ [l]
687
688
  );
688
689
  return /* @__PURE__ */ h.jsx(
689
690
  S,
690
691
  {
691
- name: i,
692
- control: u,
693
- defaultValue: a,
694
- rules: l,
695
- shouldUnregister: f,
696
- render: ({ field: { ref: o, onBlur: p, onChange: x, value: g } }) => /* @__PURE__ */ h.jsx(
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: o,
700
- name: i,
701
- value: g || "",
702
- onBlur: (T) => {
703
- p(), c(T);
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: i,
715
- control: u,
716
- onChange: a,
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 f = R(
720
- (t, n) => {
721
- t(n.detail.checked), a == null || a(n);
719
+ const p = x(
720
+ (n, a) => {
721
+ n(a.detail.checked), t == null || t(a);
722
722
  },
723
- [a]
723
+ [t]
724
724
  );
725
725
  return /* @__PURE__ */ h.jsx(
726
726
  S,
727
727
  {
728
- name: i,
729
- control: u,
730
- render: ({ field: { ref: t, onChange: n, value: d = !1 } }) => /* @__PURE__ */ h.jsx(mr, { ref: t, onChange: f.bind(null, n), checked: d, ...l })
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: i,
735
- control: u,
736
- onSelectionChange: a,
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 f = R(
740
- (t, n) => {
741
- t(n.detail.selectedItems), a == null || a(n);
745
+ const p = x(
746
+ (n, a) => {
747
+ n(a.detail.selectedItems), t == null || t(a);
742
748
  },
743
- [a]
749
+ [t]
744
750
  );
745
751
  return /* @__PURE__ */ h.jsx(
746
752
  S,
747
753
  {
748
- name: i,
749
- control: u,
750
- render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(Rr, { onSelectionChange: f.bind(null, t), selectedItems: n, ...l })
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: i,
755
- control: u,
756
- onChange: a,
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 f = R(
760
- (t, n) => {
761
- t(n.detail.value), a == null || a(n);
771
+ const p = x(
772
+ (n, a) => {
773
+ n(a.detail.value), s == null || s(a);
762
774
  },
763
- [a]
775
+ [s]
764
776
  );
765
777
  return /* @__PURE__ */ h.jsx(
766
778
  S,
767
779
  {
768
- name: i,
769
- control: u,
770
- render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(_r, { value: n || "", onChange: f.bind(null, t), ...l })
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: i,
775
- control: u,
776
- defaultValue: a,
777
- rules: l,
778
- shouldUnregister: f = !1,
789
+ name: u,
790
+ control: f,
791
+ defaultValue: s,
792
+ rules: c,
793
+ shouldUnregister: d = !1,
779
794
  onBlur: t,
780
- onChange: n,
781
- ...d
795
+ onChange: l,
796
+ ...p
782
797
  }) => {
783
- const c = R(
784
- (o) => {
785
- t == null || t(o);
798
+ const n = x(
799
+ (i) => {
800
+ t == null || t(i);
786
801
  },
787
802
  [t]
788
- ), b = R(
789
- (o) => {
790
- n == null || n(o);
803
+ ), a = x(
804
+ (i) => {
805
+ l == null || l(i);
791
806
  },
792
- [n]
807
+ [l]
793
808
  );
794
809
  return /* @__PURE__ */ h.jsx(
795
810
  S,
796
811
  {
797
- name: i,
798
- control: u,
799
- defaultValue: a,
800
- rules: l,
801
- shouldUnregister: f,
802
- render: ({ field: { ref: o, onChange: p, onBlur: x, value: g } }) => /* @__PURE__ */ h.jsx(
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: o,
806
- name: i,
807
- value: g,
820
+ ref: i,
821
+ name: u,
822
+ value: _,
808
823
  onBlur: (T) => {
809
- x(), c(T);
824
+ m(), n(T);
810
825
  },
811
826
  onChange: (T) => {
812
- p(T.detail.value), b(T);
827
+ v(T.detail.value), a(T);
813
828
  },
814
- ...d
829
+ ...p
815
830
  }
816
831
  )
817
832
  }
818
833
  );
819
834
  }, et = ({
820
- name: i,
821
- control: u,
822
- onBlur: a,
823
- onChange: l,
824
- ...f
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 t = R(
827
- (d) => {
828
- a == null || a(d);
844
+ const n = x(
845
+ (i) => {
846
+ s == null || s(i);
829
847
  },
830
- [a]
831
- ), n = R(
832
- (d) => {
833
- l == null || l(d);
848
+ [s]
849
+ ), a = x(
850
+ (i) => {
851
+ c == null || c(i);
834
852
  },
835
- [l]
853
+ [c]
836
854
  );
837
855
  return /* @__PURE__ */ h.jsx(
838
856
  S,
839
857
  {
840
- name: i,
841
- control: u,
842
- render: ({ field: { ref: d, onBlur: c, onChange: b, value: o } }) => /* @__PURE__ */ h.jsx(
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: d,
846
- value: o,
847
- onBlur: (p) => {
848
- c(), t(p);
866
+ ref: i,
867
+ value: _,
868
+ onBlur: (T) => {
869
+ v(), n(T);
849
870
  },
850
- onChange: (p) => {
851
- b(p.detail.value), n(p);
871
+ onChange: (T) => {
872
+ m(T.detail.value), a(T);
852
873
  },
853
- ...f
874
+ ...p
854
875
  }
855
876
  )
856
877
  }
857
878
  );
858
879
  }, rt = ({
859
- name: i,
860
- control: u,
861
- defaultValue: a,
862
- rules: l,
863
- shouldUnregister: f = !1,
880
+ name: u,
881
+ control: f,
882
+ defaultValue: s,
883
+ rules: c,
884
+ shouldUnregister: d = !1,
864
885
  onChange: t,
865
- ...n
886
+ ...l
866
887
  }) => {
867
- const d = (b) => b != null && b.length ? b : [], c = R(
868
- (b, o) => {
869
- b(d(o.detail.value)), t == null || t(o);
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: i,
877
- control: u,
878
- defaultValue: a,
879
- rules: l,
880
- shouldUnregister: f,
881
- render: ({ field: { ref: b, onChange: o, value: p } }) => /* @__PURE__ */ h.jsx(
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: b,
885
- value: d(p),
886
- onChange: c.bind(null, o),
887
- ...n
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: i,
894
- control: u,
895
- defaultValue: a,
896
- rules: l,
897
- shouldUnregister: f = !1,
914
+ name: u,
915
+ control: f,
916
+ defaultValue: s,
917
+ rules: c,
918
+ shouldUnregister: d = !1,
898
919
  onBlur: t,
899
- onChange: n,
900
- ...d
920
+ onChange: l,
921
+ ...p
901
922
  }) => {
902
- const c = R(
903
- (o) => {
904
- t == null || t(o);
923
+ const n = x(
924
+ (i) => {
925
+ t == null || t(i);
905
926
  },
906
927
  [t]
907
- ), b = R(
908
- (o) => {
909
- n == null || n(o);
928
+ ), a = x(
929
+ (i) => {
930
+ l == null || l(i);
910
931
  },
911
- [n]
932
+ [l]
912
933
  );
913
934
  return /* @__PURE__ */ h.jsx(
914
935
  S,
915
936
  {
916
- name: i,
917
- control: u,
918
- defaultValue: a,
919
- rules: l,
920
- shouldUnregister: f,
921
- render: ({ field: { ref: o, onBlur: p, onChange: x, value: g } }) => /* @__PURE__ */ h.jsx(
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: o,
925
- name: i,
926
- value: g,
945
+ ref: i,
946
+ name: u,
947
+ value: _,
927
948
  onBlur: (T) => {
928
- p(), c(T);
949
+ v(), n(T);
929
950
  },
930
951
  onChange: (T) => {
931
- x(T.detail.value), b(T);
952
+ m(T.detail.value), a(T);
932
953
  },
933
- ...d
954
+ ...p
934
955
  }
935
956
  )
936
957
  }
937
958
  );
938
- }, te = (i = []) => i != null && i.length ? i.map((u) => "options" in u ? te(u.options) : u.value).flat() : [], ne = (i = [], u = []) => i != null && i.length && (u != null && u.length) ? i.reduce((a, l) => {
939
- if (i != null && i.length) {
940
- if ("options" in l) {
941
- const f = ne(l.options, u);
942
- f != null && f.length && a.push(...f);
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 l && u.find((f) => f === l.value) && a.push(l);
965
+ "value" in c && f.find((d) => d === c.value) && s.push(c);
945
966
  }
946
- return a;
967
+ return s;
947
968
  }, []).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
948
- name: i,
949
- control: u,
950
- options: a,
951
- defaultValue: l,
952
- rules: f,
969
+ name: u,
970
+ control: f,
971
+ options: s,
972
+ defaultValue: c,
973
+ rules: d,
953
974
  onBlur: t,
954
- onChange: n,
955
- shouldUnregister: d = !1,
956
- ...c
975
+ onChange: l,
976
+ shouldUnregister: p = !1,
977
+ ...n
957
978
  }) => {
958
- const b = R(
959
- (p, x) => {
960
- p(), t == null || t(x);
979
+ const a = x(
980
+ (v, m) => {
981
+ v(), t == null || t(m);
961
982
  },
962
983
  [t]
963
- ), o = R(
964
- (p, x) => {
965
- p(te(x.detail.selectedOptions)), n == null || n(x);
984
+ ), i = x(
985
+ (v, m) => {
986
+ v(te(m.detail.selectedOptions)), l == null || l(m);
966
987
  },
967
- [n]
988
+ [l]
968
989
  );
969
990
  return /* @__PURE__ */ h.jsx(
970
991
  S,
971
992
  {
972
- name: i,
973
- control: u,
974
- defaultValue: l,
975
- rules: f,
976
- shouldUnregister: d,
977
- render: ({ field: { ref: p, onChange: x, onBlur: g, value: T } }) => /* @__PURE__ */ h.jsx(
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: p,
981
- options: a,
982
- onBlur: () => b.bind(null, g),
983
- onChange: o.bind(null, x),
984
- selectedOptions: ne(a, T),
985
- ...c
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 = (i) => {
991
- const { name: u, control: a, defaultValue: l, rules: f, shouldUnregister: t = !1, ...n } = i, d = R(
992
- (c, b) => {
993
- c(b.detail);
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: a,
1002
- defaultValue: l,
1003
- rules: f,
1004
- shouldUnregister: t,
1005
- render: ({ field: { onChange: c, value: b } }) => /* @__PURE__ */ h.jsx(Sr, { onChange: d.bind(null, c), query: b, ...n })
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: i,
1010
- control: u,
1011
- onChange: a,
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 f = R(
1015
- (t, n) => {
1016
- t(n.detail.value), a == null || a(n);
1045
+ const p = x(
1046
+ (n, a) => {
1047
+ n(a.detail.value), s == null || s(a);
1017
1048
  },
1018
- [a]
1049
+ [s]
1019
1050
  );
1020
1051
  return /* @__PURE__ */ h.jsx(
1021
1052
  S,
1022
1053
  {
1023
- name: i,
1024
- control: u,
1025
- render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(Pr, { onChange: f.bind(null, t), value: n, items: l.items, ...l })
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: i,
1030
- control: u,
1031
- defaultValue: a,
1032
- rules: l,
1033
- shouldUnregister: f = !1,
1063
+ name: u,
1064
+ control: f,
1065
+ defaultValue: s,
1066
+ rules: c,
1067
+ shouldUnregister: d = !1,
1034
1068
  onChange: t,
1035
- ...n
1069
+ ...l
1036
1070
  }) => {
1037
- const d = R(
1038
- (c, b) => {
1039
- c(b.detail.resource), t == null || t(b);
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: i,
1047
- control: u,
1048
- defaultValue: a,
1049
- rules: l,
1050
- shouldUnregister: f,
1051
- render: ({ field: { ref: c, onChange: b, value: o } }) => /* @__PURE__ */ h.jsx(
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: c,
1055
- resource: o ?? { uri: "" },
1056
- onChange: d.bind(null, b),
1057
- ...n
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 = (i = [], u) => {
1063
- let a = null;
1064
- return i && u && (a = i.reduce(
1065
- (l, f) => {
1066
- if ("options" in f) {
1067
- const t = De(f.options, u);
1068
- t && l.push(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 f && f.value === u && l.push(f), l;
1104
+ return "value" in d && d.value === f && c.push(d), c;
1071
1105
  },
1072
1106
  []
1073
- )[0]), a || null;
1107
+ )[0]), s || null;
1074
1108
  }, qr = {
1075
1109
  mapSelectedOptionWithOptions: De
1076
1110
  }, ut = ({
1077
- name: i,
1078
- control: u,
1079
- defaultValue: a,
1080
- rules: l,
1081
- shouldUnregister: f = !1,
1111
+ name: u,
1112
+ control: f,
1113
+ defaultValue: s,
1114
+ rules: c,
1115
+ shouldUnregister: d = !1,
1082
1116
  onBlur: t,
1083
- onChange: n,
1084
- ...d
1117
+ onChange: l,
1118
+ ...p
1085
1119
  }) => {
1086
- const c = R(
1087
- (o, p) => {
1088
- o(), t == null || t(p);
1120
+ const n = x(
1121
+ (i, v) => {
1122
+ i(), t == null || t(v);
1089
1123
  },
1090
1124
  [t]
1091
- ), b = R(
1092
- (o, p) => {
1093
- o(p.detail.selectedOption.value), n == null || n(p);
1125
+ ), a = x(
1126
+ (i, v) => {
1127
+ i(v.detail.selectedOption.value), l == null || l(v);
1094
1128
  },
1095
- [n]
1129
+ [l]
1096
1130
  );
1097
1131
  return /* @__PURE__ */ h.jsx(
1098
1132
  S,
1099
1133
  {
1100
- name: i,
1101
- control: u,
1102
- defaultValue: a,
1103
- rules: l,
1104
- shouldUnregister: f,
1105
- render: ({ field: { ref: o, onChange: p, onBlur: x, value: g } }) => /* @__PURE__ */ h.jsx(
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: o,
1109
- selectedOption: qr.mapSelectedOptionWithOptions(d.options, g),
1110
- onBlur: c.bind(null, x),
1111
- onChange: b.bind(null, p),
1112
- ...d
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: i,
1119
- control: u,
1120
- defaultValue: a,
1121
- rules: l,
1122
- shouldUnregister: f = !1,
1152
+ name: u,
1153
+ control: f,
1154
+ defaultValue: s,
1155
+ rules: c,
1156
+ shouldUnregister: d = !1,
1123
1157
  onChange: t,
1124
- ...n
1158
+ ...l
1125
1159
  }) => {
1126
- const d = R(
1127
- (c) => {
1128
- t == null || t(c);
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: i,
1136
- control: u,
1137
- defaultValue: a,
1138
- rules: l,
1139
- shouldUnregister: f,
1140
- render: ({ field: { onChange: c, value: b } }) => /* @__PURE__ */ h.jsx(
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: b,
1144
- onChange: (o) => {
1145
- c(o.detail.value), d(o);
1177
+ value: a,
1178
+ onChange: (i) => {
1179
+ n(i.detail.value), p(i);
1146
1180
  },
1147
- ...n
1181
+ ...l
1148
1182
  }
1149
1183
  )
1150
1184
  }
1151
1185
  );
1152
1186
  }, ft = ({
1153
- name: i,
1154
- control: u,
1155
- onChange: a,
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 f = R(
1159
- (t, n) => {
1160
- t([...n.detail.tags]), a == null || a(n);
1195
+ const p = x(
1196
+ (n, a) => {
1197
+ n([...a.detail.tags]), s == null || s(a);
1161
1198
  },
1162
- [a]
1199
+ [s]
1163
1200
  );
1164
1201
  return /* @__PURE__ */ h.jsx(
1165
1202
  S,
1166
1203
  {
1167
- name: i,
1168
- control: u,
1169
- render: ({ field: { ref: t, onChange: n, value: d } }) => /* @__PURE__ */ h.jsx(
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: t,
1173
- tags: d || [],
1174
- onChange: f.bind(null, n),
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: i,
1182
- control: u,
1183
- onChange: a,
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 f = R(
1187
- (t, n) => {
1188
- t(n.detail.filteringText), a == null || a(n);
1229
+ const p = x(
1230
+ (n, a) => {
1231
+ n(a.detail.filteringText), t == null || t(a);
1189
1232
  },
1190
- [a]
1233
+ [t]
1191
1234
  );
1192
1235
  return /* @__PURE__ */ h.jsx(
1193
1236
  S,
1194
1237
  {
1195
- name: i,
1196
- control: u,
1197
- render: ({ field: { ref: t, onChange: n, value: d } }) => /* @__PURE__ */ h.jsx(
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: t,
1201
- filteringText: d,
1202
- onChange: f.bind(null, n),
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: i,
1210
- control: u,
1211
- defaultValue: a,
1212
- rules: l,
1213
- shouldUnregister: f = !1,
1255
+ name: u,
1256
+ control: f,
1257
+ defaultValue: s,
1258
+ rules: c,
1259
+ shouldUnregister: d = !1,
1214
1260
  onBlur: t,
1215
- onChange: n,
1216
- ...d
1261
+ onChange: l,
1262
+ ...p
1217
1263
  }) => {
1218
- const c = R(
1219
- (o, p) => {
1220
- o(), t == null || t(p);
1264
+ const n = x(
1265
+ (i, v) => {
1266
+ i(), t == null || t(v);
1221
1267
  },
1222
1268
  [t]
1223
- ), b = R(
1224
- (o, p) => {
1225
- o(p.detail.value), n == null || n(p);
1269
+ ), a = x(
1270
+ (i, v) => {
1271
+ i(v.detail.value), l == null || l(v);
1226
1272
  },
1227
- [n]
1273
+ [l]
1228
1274
  );
1229
1275
  return /* @__PURE__ */ h.jsx(
1230
1276
  S,
1231
1277
  {
1232
- name: i,
1233
- control: u,
1234
- defaultValue: a,
1235
- rules: l,
1236
- shouldUnregister: f,
1237
- render: ({ field: { onChange: o, onBlur: p, value: x, ref: g } }) => /* @__PURE__ */ h.jsx(
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: g,
1241
- name: i,
1242
- value: x,
1243
- onBlur: c.bind(null, p),
1244
- onChange: b.bind(null, o),
1245
- ...d
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 = ({ name: i, control: u, onChange: a, ...l }) => {
1251
- const f = R(
1252
- (t, n) => {
1253
- t(n.detail.value), a == null || a(n);
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
- [a]
1309
+ [s]
1256
1310
  );
1257
1311
  return /* @__PURE__ */ h.jsx(
1258
1312
  S,
1259
1313
  {
1260
- name: i,
1261
- control: u,
1262
- render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(Ir, { onChange: f.bind(null, t), value: n, items: l.items, ...l })
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: i,
1267
- control: u,
1268
- onBlur: a,
1323
+ name: u,
1324
+ control: f,
1325
+ defaultValue: s,
1326
+ rules: c,
1327
+ shouldUnregister: d = !1,
1328
+ onBlur: t,
1269
1329
  onChange: l,
1270
- ...f
1330
+ ...p
1271
1331
  }) => {
1272
- const t = R(
1273
- (d, c) => {
1274
- d(), a == null || a(c);
1332
+ const n = x(
1333
+ (i, v) => {
1334
+ i(), t == null || t(v);
1275
1335
  },
1276
- [a]
1277
- ), n = R(
1278
- (d, c) => {
1279
- d(c.detail.value), l == null || l(c);
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: i,
1287
- control: u,
1288
- render: ({ field: { ref: d, onChange: c, onBlur: b, value: o } }) => /* @__PURE__ */ h.jsx(
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: i,
1292
- ref: d,
1293
- value: o,
1294
- onBlur: t.bind(null, b),
1295
- onChange: n.bind(null, c),
1296
- ...f
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: i,
1303
- control: u,
1304
- onChange: a,
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 f = R(
1308
- (t, n) => {
1309
- t(n.detail.checked), a == null || a(n);
1373
+ const p = x(
1374
+ (n, a) => {
1375
+ n(a.detail.checked), t == null || t(a);
1310
1376
  },
1311
- [a]
1377
+ [t]
1312
1378
  );
1313
1379
  return /* @__PURE__ */ h.jsx(
1314
1380
  S,
1315
1381
  {
1316
- name: i,
1317
- control: u,
1318
- render: ({ field: { ref: t, onChange: n, value: d = !1 } }) => /* @__PURE__ */ h.jsx(Wr, { ref: t, name: i, checked: d, onChange: f.bind(null, n), ...l })
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
  };