react-hook-form-cloudscape 1.6.0 → 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 (45) hide show
  1. package/components/checkbox/checkbox.d.ts +5 -2
  2. package/components/checkbox/checkbox.js +2 -2
  3. package/components/checkbox/checkbox.js.map +1 -1
  4. package/components/code-editor/code-editor.d.ts +5 -2
  5. package/components/code-editor/code-editor.js +2 -2
  6. package/components/code-editor/code-editor.js.map +1 -1
  7. package/components/components/checkbox/checkbox.d.ts +5 -2
  8. package/components/components/code-editor/code-editor.d.ts +5 -2
  9. package/components/components/date-range-picker/date-range-picker.d.ts +5 -2
  10. package/components/components/property-filter/property-filter.d.ts +1 -1
  11. package/components/components/radio-group/radio-group.d.ts +5 -2
  12. package/components/components/tag-editor/tag-editor.d.ts +5 -2
  13. package/components/components/text-filter/text-filter.d.ts +5 -2
  14. package/components/components/tiles/tiles.d.ts +5 -2
  15. package/components/components/time-input/time-input.d.ts +5 -2
  16. package/components/components/toggle/toggle.d.ts +5 -2
  17. package/components/date-range-picker/date-range-picker.d.ts +5 -2
  18. package/components/date-range-picker/date-range-picker.js +3 -3
  19. package/components/date-range-picker/date-range-picker.js.map +1 -1
  20. package/components/property-filter/property-filter.d.ts +1 -1
  21. package/components/property-filter/property-filter.js +2 -2
  22. package/components/property-filter/property-filter.js.map +1 -1
  23. package/components/radio-group/radio-group.d.ts +5 -2
  24. package/components/radio-group/radio-group.js +2 -2
  25. package/components/radio-group/radio-group.js.map +1 -1
  26. package/components/tag-editor/tag-editor.d.ts +5 -2
  27. package/components/tag-editor/tag-editor.js +2 -2
  28. package/components/tag-editor/tag-editor.js.map +1 -1
  29. package/components/text-filter/text-filter.d.ts +5 -2
  30. package/components/text-filter/text-filter.js +2 -2
  31. package/components/text-filter/text-filter.js.map +1 -1
  32. package/components/tiles/tiles.d.ts +5 -2
  33. package/components/tiles/tiles.js +2 -2
  34. package/components/tiles/tiles.js.map +1 -1
  35. package/components/time-input/time-input.d.ts +5 -2
  36. package/components/time-input/time-input.js +2 -2
  37. package/components/time-input/time-input.js.map +1 -1
  38. package/components/toggle/toggle.d.ts +5 -2
  39. package/components/toggle/toggle.js +2 -2
  40. package/components/toggle/toggle.js.map +1 -1
  41. package/package.json +4 -4
  42. package/react-hook-form-cloudscape.es.js +689 -623
  43. package/react-hook-form-cloudscape.es.js.map +1 -1
  44. package/react-hook-form-cloudscape.umd.js +9 -9
  45. package/react-hook-form-cloudscape.umd.js.map +1 -1
@@ -1,6 +1,6 @@
1
- import Fe, { useMemo as hr, useCallback as _ } 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
- import { useFormState as Yr, useFieldArray as Mr, get as Ur, Controller as O } from "react-hook-form";
3
+ import { useFormState as Yr, useFieldArray as Mr, get as Ur, Controller as S } from "react-hook-form";
4
4
  var G = { exports: {} }, U = {};
5
5
  /**
6
6
  * @license React
@@ -15,15 +15,15 @@ var we;
15
15
  function Lr() {
16
16
  if (we) return U;
17
17
  we = 1;
18
- var i = Fe, s = Symbol.for("react.element"), a = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function n(d, c, p) {
20
- var o, v = {}, R = null, g = null;
21
- p !== void 0 && (R = "" + p), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (g = c.ref);
22
- for (o in c) u.call(c, o) && !r.hasOwnProperty(o) && (v[o] = c[o]);
23
- if (d && d.defaultProps) for (o in c = d.defaultProps, c) v[o] === void 0 && (v[o] = c[o]);
24
- return { $$typeof: s, type: d, key: R, ref: g, props: v, _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, s = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), S = 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
- var t = S && e[S] || e[K];
46
- return typeof t == "function" ? t : null;
45
+ var r = T && e[T] || e[K];
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 t = arguments.length, l = new Array(t > 1 ? t - 1 : 0), b = 1; b < t; b++)
52
- l[b - 1] = arguments[b];
53
- Ie("error", e, l);
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, t, l) {
56
+ function Ie(e, r, o) {
57
57
  {
58
- var b = I.ReactDebugCurrentFrame, m = b.getStackAddendum();
59
- m !== "" && (t += "%s", l = l.concat([m]));
60
- var x = l.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
- x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
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 === u || e === r || Ue || e === f || e === p || e === o || Me || e === g || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === v || 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, t, l) {
75
+ function Ve(e, r, o) {
76
76
  var b = e.displayName;
77
77
  if (b)
78
78
  return b;
79
- var m = t.displayName || t.name || "";
80
- return m !== "" ? l + "(" + m + ")" : l;
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 u:
93
+ case c:
94
94
  return "Fragment";
95
- case a:
95
+ case s:
96
96
  return "Portal";
97
- case r:
97
+ case t:
98
98
  return "Profiler";
99
- case f:
99
+ case d:
100
100
  return "StrictMode";
101
- case p:
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:
109
- var t = e;
110
- return ie(t) + ".Consumer";
108
+ case p:
109
+ var r = e;
110
+ return ie(r) + ".Consumer";
111
+ case l:
112
+ var o = e;
113
+ return ie(o._context) + ".Provider";
111
114
  case n:
112
- var l = e;
113
- return ie(l._context) + ".Provider";
114
- case c:
115
115
  return Ve(e, e.render, "ForwardRef");
116
116
  case v:
117
117
  var b = e.displayName || null;
118
118
  return b !== null ? b : F(e.type) || "Memo";
119
- case R: {
120
- var m = e, x = m._payload, y = m._init;
119
+ case m: {
120
+ var R = e, g = R._payload, y = R._init;
121
121
  try {
122
- return F(y(x));
122
+ return F(y(g));
123
123
  } catch {
124
124
  return null;
125
125
  }
@@ -127,14 +127,14 @@ function Vr() {
127
127
  }
128
128
  return null;
129
129
  }
130
- var D = Object.assign, Y = 0, le, ue, se, oe, fe, ce, de;
130
+ var D = Object.assign, Y = 0, le, se, ue, oe, fe, ce, de;
131
131
  function ve() {
132
132
  }
133
133
  ve.__reactDisabledLog = !0;
134
134
  function Ne() {
135
135
  {
136
136
  if (Y === 0) {
137
- le = console.log, ue = console.info, se = console.warn, oe = console.error, fe = console.group, ce = console.groupCollapsed, de = console.groupEnd;
137
+ le = console.log, se = console.info, ue = console.warn, oe = console.error, fe = console.group, ce = console.groupCollapsed, de = console.groupEnd;
138
138
  var e = {
139
139
  configurable: !0,
140
140
  enumerable: !0,
@@ -167,10 +167,10 @@ function Vr() {
167
167
  value: le
168
168
  }),
169
169
  info: D({}, e, {
170
- value: ue
170
+ value: se
171
171
  }),
172
172
  warn: D({}, e, {
173
- value: se
173
+ value: ue
174
174
  }),
175
175
  error: D({}, e, {
176
176
  value: oe
@@ -190,13 +190,13 @@ function Vr() {
190
190
  }
191
191
  }
192
192
  var z = I.ReactCurrentDispatcher, X;
193
- function V(e, t, l) {
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 b = m.stack.trim().match(/\n( *(at )?)/);
198
+ } catch (R) {
199
+ var b = R.stack.trim().match(/\n( *(at )?)/);
200
200
  X = b && b[1] || "";
201
201
  }
202
202
  return `
@@ -208,22 +208,22 @@ function Vr() {
208
208
  var Je = typeof WeakMap == "function" ? WeakMap : Map;
209
209
  N = new Je();
210
210
  }
211
- function pe(e, t) {
211
+ function pe(e, r) {
212
212
  if (!e || H)
213
213
  return "";
214
214
  {
215
- var l = N.get(e);
216
- if (l !== void 0)
217
- return l;
215
+ var o = N.get(e);
216
+ if (o !== void 0)
217
+ return o;
218
218
  }
219
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 x;
224
- x = z.current, z.current = null, Ne();
223
+ var g;
224
+ g = z.current, z.current = null, Ne();
225
225
  try {
226
- if (t) {
226
+ if (r) {
227
227
  var y = function() {
228
228
  throw Error();
229
229
  };
@@ -258,35 +258,35 @@ function Vr() {
258
258
  if (k && b && typeof k.stack == "string") {
259
259
  for (var E = k.stack.split(`
260
260
  `), w = b.stack.split(`
261
- `), j = E.length - 1, T = w.length - 1; j >= 1 && T >= 0 && E[j] !== w[T]; )
262
- T--;
263
- for (; j >= 1 && T >= 0; j--, T--)
264
- if (E[j] !== w[T]) {
265
- if (j !== 1 || T !== 1)
261
+ `), j = E.length - 1, O = w.length - 1; j >= 1 && O >= 0 && E[j] !== w[O]; )
262
+ O--;
263
+ for (; j >= 1 && O >= 0; j--, O--)
264
+ if (E[j] !== w[O]) {
265
+ if (j !== 1 || O !== 1)
266
266
  do
267
- if (j--, T--, T < 0 || E[j] !== w[T]) {
267
+ if (j--, O--, O < 0 || E[j] !== w[O]) {
268
268
  var C = `
269
269
  ` + E[j].replace(" at new ", " at ");
270
270
  return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, C), C;
271
271
  }
272
- while (j >= 1 && T >= 0);
272
+ while (j >= 1 && O >= 0);
273
273
  break;
274
274
  }
275
275
  }
276
276
  } finally {
277
- H = !1, z.current = x, 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, t, l) {
282
+ function Ge(e, r, o) {
283
283
  return pe(e, !1);
284
284
  }
285
285
  function Ke(e) {
286
- var t = e.prototype;
287
- return !!(t && t.isReactComponent);
286
+ var r = e.prototype;
287
+ return !!(r && r.isReactComponent);
288
288
  }
289
- function q(e, t, l) {
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 p:
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
306
  case v:
307
- return q(e.type, t, l);
308
- case R: {
309
- var b = e, m = b._payload, x = b._init;
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(x(m), t, l);
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 t = e._owner, l = q(e.type, e._source, t ? t.type : null);
322
- he.setExtraStackFrame(l);
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, t, l, b, m) {
326
+ function ze(e, r, o, b, R) {
327
327
  {
328
- var x = Function.call.bind(M);
328
+ var g = Function.call.bind(M);
329
329
  for (var y in e)
330
- if (x(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((b || "React class") + ": " + l + " 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](t, y, b, l, 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).", b || "React class", l, y, typeof E), J(null)), E instanceof Error && !(E.message in be) && (be[E.message] = !0, J(m), P("Failed %s type: %s", l, 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 t = typeof Symbol == "function" && Symbol.toStringTag, l = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
352
- return l;
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) {
@@ -374,56 +374,56 @@ function Vr() {
374
374
  }, Re, _e;
375
375
  function Be(e) {
376
376
  if (M.call(e, "ref")) {
377
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
378
- if (t && t.isReactWarning)
377
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
378
+ if (r && r.isReactWarning)
379
379
  return !1;
380
380
  }
381
381
  return e.ref !== void 0;
382
382
  }
383
383
  function er(e) {
384
384
  if (M.call(e, "key")) {
385
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
386
- if (t && t.isReactWarning)
385
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
386
+ if (r && r.isReactWarning)
387
387
  return !1;
388
388
  }
389
389
  return e.key !== void 0;
390
390
  }
391
- function rr(e, t) {
391
+ function rr(e, r) {
392
392
  typeof e.ref == "string" && me.current;
393
393
  }
394
- function tr(e, t) {
394
+ function tr(e, r) {
395
395
  {
396
- var l = function() {
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)", t));
396
+ var o = function() {
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
- l.isReactWarning = !0, Object.defineProperty(e, "key", {
400
- get: l,
399
+ o.isReactWarning = !0, Object.defineProperty(e, "key", {
400
+ get: o,
401
401
  configurable: !0
402
402
  });
403
403
  }
404
404
  }
405
- function nr(e, t) {
405
+ function nr(e, r) {
406
406
  {
407
- var l = function() {
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)", t));
407
+ var o = function() {
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
- l.isReactWarning = !0, Object.defineProperty(e, "ref", {
411
- get: l,
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, t, l, b, m, x, 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: s,
419
+ $$typeof: f,
420
420
  // Built-in properties that belong on the element
421
421
  type: e,
422
- key: t,
423
- ref: l,
422
+ key: r,
423
+ ref: o,
424
424
  props: y,
425
425
  // Record the component responsible for creating this element.
426
- _owner: x
426
+ _owner: g
427
427
  };
428
428
  return E._store = {}, Object.defineProperty(E._store, "validated", {
429
429
  configurable: !1,
@@ -439,39 +439,39 @@ function Vr() {
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, t, l, b, m) {
445
+ function ir(e, r, o, b, R) {
446
446
  {
447
- var x, y = {}, E = null, w = null;
448
- l !== void 0 && (ye(l), E = "" + l), er(t) && (ye(t.key), E = "" + t.key), Be(t) && (w = t.ref, rr(t, m));
449
- for (x in t)
450
- M.call(t, x) && !Qe.hasOwnProperty(x) && (y[x] = t[x]);
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 (x in j)
454
- y[x] === void 0 && (y[x] = j[x]);
453
+ for (g in j)
454
+ y[g] === void 0 && (y[g] = j[g]);
455
455
  }
456
456
  if (E || w) {
457
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
- E && tr(y, T), w && nr(y, T);
457
+ var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
+ E && tr(y, O), w && nr(y, O);
459
459
  }
460
- return ar(e, E, w, m, b, 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 t = e._owner, l = q(e.type, e._source, t ? t.type : null);
467
- xe.setExtraStackFrame(l);
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 === s;
474
+ return typeof e == "object" && e !== null && e.$$typeof === f;
475
475
  }
476
476
  function ge() {
477
477
  {
@@ -489,79 +489,79 @@ Check the render method of \`` + e + "`.";
489
489
  return "";
490
490
  }
491
491
  var je = {};
492
- function ur(e) {
492
+ function sr(e) {
493
493
  {
494
- var t = ge();
495
- if (!t) {
496
- var l = typeof e == "string" ? e : e.displayName || e.name;
497
- l && (t = `
494
+ var r = ge();
495
+ if (!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 <` + l + ">.");
499
+ Check the top-level render call using <` + o + ">.");
500
500
  }
501
- return t;
501
+ return r;
502
502
  }
503
503
  }
504
- function Te(e, t) {
504
+ function Te(e, r) {
505
505
  {
506
506
  if (!e._store || e._store.validated || e.key != null)
507
507
  return;
508
508
  e._store.validated = !0;
509
- var l = ur(t);
510
- if (je[l])
509
+ var o = sr(r);
510
+ if (je[o])
511
511
  return;
512
- je[l] = !0;
512
+ je[o] = !0;
513
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.', l, b), $(null);
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
- function Oe(e, t) {
517
+ function Oe(e, r) {
518
518
  {
519
519
  if (typeof e != "object")
520
520
  return;
521
521
  if (Z(e))
522
- for (var l = 0; l < e.length; l++) {
523
- var b = e[l];
524
- ee(b) && Te(b, t);
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 x = m.call(e), y; !(y = x.next()).done; )
532
- ee(y.value) && Te(y.value, t);
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
+ ee(y.value) && Te(y.value, r);
533
533
  }
534
534
  }
535
535
  }
536
- function sr(e) {
536
+ function ur(e) {
537
537
  {
538
- var t = e.type;
539
- if (t == null || typeof t == "string")
538
+ var r = e.type;
539
+ if (r == null || typeof r == "string")
540
540
  return;
541
- var l;
542
- if (typeof t == "function")
543
- l = t.propTypes;
544
- else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
541
+ var o;
542
+ if (typeof r == "function")
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
- t.$$typeof === v))
547
- l = t.propTypes;
546
+ r.$$typeof === v))
547
+ o = r.propTypes;
548
548
  else
549
549
  return;
550
- if (l) {
551
- var b = F(t);
552
- ze(l, e.props, "prop", b, e);
553
- } else if (t.PropTypes !== void 0 && !B) {
550
+ if (o) {
551
+ var b = F(r);
552
+ ze(o, e.props, "prop", b, e);
553
+ } else if (r.PropTypes !== void 0 && !B) {
554
554
  B = !0;
555
- var m = F(t);
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
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 t = Object.keys(e.props), l = 0; l < t.length; l++) {
564
- var b = t[l];
563
+ for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
564
+ var b = r[o];
565
565
  if (b !== "children" && b !== "key") {
566
566
  $(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), $(null);
567
567
  break;
@@ -571,7 +571,7 @@ Check the top-level render call using <` + l + ">.");
571
571
  }
572
572
  }
573
573
  var Se = {};
574
- function Pe(e, t, l, b, m, x) {
574
+ function Pe(e, r, o, b, R, g) {
575
575
  {
576
576
  var y = Le(e);
577
577
  if (!y) {
@@ -580,13 +580,13 @@ Check the top-level render call using <` + l + ">.");
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 === s ? (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 T = ir(e, t, l, m, x);
586
- if (T == null)
587
- return T;
585
+ var O = ir(e, r, o, R, g);
586
+ if (O == null)
587
+ return O;
588
588
  if (y) {
589
- var C = t.children;
589
+ var C = r.children;
590
590
  if (C !== void 0)
591
591
  if (b)
592
592
  if (Z(C)) {
@@ -598,8 +598,8 @@ Check the top-level render call using <` + l + ">.");
598
598
  else
599
599
  Oe(C, e);
600
600
  }
601
- if (M.call(t, "key")) {
602
- var A = F(e), k = Object.keys(t).filter(function(br) {
601
+ if (M.call(r, "key")) {
602
+ var A = F(e), k = Object.keys(r).filter(function(br) {
603
603
  return br !== "key";
604
604
  }), re = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
605
605
  if (!Se[A + re]) {
@@ -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 === u ? or(T) : sr(T), T;
615
+ return e === c ? or(O) : ur(O), O;
616
616
  }
617
617
  }
618
- function fr(e, t, l) {
619
- return Pe(e, t, l, !0);
618
+ function fr(e, r, o) {
619
+ return Pe(e, r, o, !0);
620
620
  }
621
- function cr(e, t, l) {
622
- return Pe(e, t, l, !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 = u, 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,694 +631,760 @@ function Nr() {
631
631
  }
632
632
  var h = Nr();
633
633
  const zr = ({
634
- name: i,
635
- control: s,
636
- definition: a,
637
- defaultValue: u,
638
- handleState: f = !0,
639
- onAddButtonClick: r,
640
- onRemoveButtonClick: n,
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: s }), { fields: p, append: o, remove: v } = Mr({
644
- name: i,
645
- control: s
646
- }), R = hr(
647
- () => a.map((g) => ({
648
- errorText: (S, 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
- [a, c, i]
651
+ [s, n, u]
652
652
  );
653
653
  return /* @__PURE__ */ h.jsx(
654
654
  Er,
655
655
  {
656
- definition: R,
657
- items: p || [],
658
- onRemoveButtonClick: (g) => {
659
- f && v(g.detail.itemIndex), n == null || n(g, v);
656
+ definition: m,
657
+ items: a || [],
658
+ onRemoveButtonClick: (_) => {
659
+ d && v(_.detail.itemIndex), l == null || l(_, v);
660
660
  },
661
- onAddButtonClick: (g) => {
662
- f && o(u), r == null || r(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: s,
670
- defaultValue: a,
671
- rules: u,
672
- shouldUnregister: f = !1,
673
- onBlur: r,
674
- onChange: n,
675
- ...d
668
+ name: u,
669
+ control: f,
670
+ defaultValue: s,
671
+ rules: c,
672
+ shouldUnregister: d = !1,
673
+ onBlur: t,
674
+ onChange: l,
675
+ ...p
676
676
  }) => {
677
- const c = _(
678
- (o, v) => {
679
- var R;
680
- (R = v.detail) != null && R.value && o(v.detail.value), r == null || r(v);
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);
681
681
  },
682
- [r]
683
- ), p = _(
684
- (o, v) => {
685
- o(v.detail.value), n == null || n(v);
682
+ [t]
683
+ ), a = x(
684
+ (i, v) => {
685
+ i(v.detail.value), l == null || l(v);
686
686
  },
687
- [n]
687
+ [l]
688
688
  );
689
689
  return /* @__PURE__ */ h.jsx(
690
- O,
690
+ S,
691
691
  {
692
- name: i,
693
- control: s,
694
- defaultValue: a,
695
- rules: u,
696
- shouldUnregister: f,
697
- render: ({ field: { ref: o, onBlur: v, onChange: R, 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(
698
698
  yr,
699
699
  {
700
- ref: o,
701
- name: i,
702
- value: g || "",
703
- onBlur: c.bind(null, v),
704
- onChange: p.bind(null, R),
705
- ...d
700
+ ref: i,
701
+ name: u,
702
+ value: _ || "",
703
+ onBlur: n.bind(null, v),
704
+ onChange: a.bind(null, m),
705
+ ...p
706
706
  }
707
707
  )
708
708
  }
709
709
  );
710
710
  }, Hr = ({
711
- name: i,
712
- control: s,
713
- onChange: a,
714
- ...u
711
+ name: u,
712
+ control: f,
713
+ defaultValue: s,
714
+ rules: c,
715
+ shouldUnregister: d = !1,
716
+ onChange: t,
717
+ ...l
715
718
  }) => {
716
- const f = _(
717
- (r, n) => {
718
- r(n.detail.checked), a == null || a(n);
719
+ const p = x(
720
+ (n, a) => {
721
+ n(a.detail.checked), t == null || t(a);
719
722
  },
720
- [a]
723
+ [t]
721
724
  );
722
725
  return /* @__PURE__ */ h.jsx(
723
- O,
726
+ S,
724
727
  {
725
- name: i,
726
- control: s,
727
- render: ({ field: { ref: r, onChange: n, value: d = !1 } }) => /* @__PURE__ */ h.jsx(mr, { ref: r, onChange: f.bind(null, n), checked: d, ...u })
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 })
728
734
  }
729
735
  );
730
736
  }, Zr = ({
731
- name: i,
732
- control: s,
733
- defaultValue: a,
734
- rules: u,
735
- shouldUnregister: f = !1,
736
- onSelectionChange: r,
737
- ...n
737
+ name: u,
738
+ control: f,
739
+ defaultValue: s,
740
+ rules: c,
741
+ shouldUnregister: d = !1,
742
+ onSelectionChange: t,
743
+ ...l
738
744
  }) => {
739
- const d = _(
740
- (c, p) => {
741
- c(p.detail.selectedItems), r == null || r(p);
745
+ const p = x(
746
+ (n, a) => {
747
+ n(a.detail.selectedItems), t == null || t(a);
742
748
  },
743
- [r]
749
+ [t]
744
750
  );
745
751
  return /* @__PURE__ */ h.jsx(
746
- O,
752
+ S,
747
753
  {
748
- name: i,
749
- control: s,
750
- defaultValue: a,
751
- rules: u,
752
- shouldUnregister: f,
753
- render: ({ field: { onChange: c, value: p } }) => /* @__PURE__ */ h.jsx(Rr, { onSelectionChange: d.bind(null, c), selectedItems: p, ...n })
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 })
754
760
  }
755
761
  );
756
762
  }, Qr = ({
757
- name: i,
758
- control: s,
759
- onChange: a,
760
- ...u
763
+ name: u,
764
+ control: f,
765
+ onChange: s,
766
+ defaultValue: c,
767
+ rules: d,
768
+ shouldUnregister: t = !1,
769
+ ...l
761
770
  }) => {
762
- const f = _(
763
- (r, n) => {
764
- r(n.detail.value), a == null || a(n);
771
+ const p = x(
772
+ (n, a) => {
773
+ n(a.detail.value), s == null || s(a);
765
774
  },
766
- [a]
775
+ [s]
767
776
  );
768
777
  return /* @__PURE__ */ h.jsx(
769
- O,
778
+ S,
770
779
  {
771
- name: i,
772
- control: s,
773
- render: ({ field: { onChange: r, value: n } }) => /* @__PURE__ */ h.jsx(_r, { value: n || "", onChange: f.bind(null, r), ...u })
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 })
774
786
  }
775
787
  );
776
788
  }, Br = ({
777
- name: i,
778
- control: s,
779
- defaultValue: a,
780
- rules: u,
781
- shouldUnregister: f = !1,
782
- onBlur: r,
783
- onChange: n,
784
- ...d
789
+ name: u,
790
+ control: f,
791
+ defaultValue: s,
792
+ rules: c,
793
+ shouldUnregister: d = !1,
794
+ onBlur: t,
795
+ onChange: l,
796
+ ...p
785
797
  }) => {
786
- const c = _(
787
- (o) => {
788
- r == null || r(o);
798
+ const n = x(
799
+ (i) => {
800
+ t == null || t(i);
789
801
  },
790
- [r]
791
- ), p = _(
792
- (o) => {
793
- n == null || n(o);
802
+ [t]
803
+ ), a = x(
804
+ (i) => {
805
+ l == null || l(i);
794
806
  },
795
- [n]
807
+ [l]
796
808
  );
797
809
  return /* @__PURE__ */ h.jsx(
798
- O,
810
+ S,
799
811
  {
800
- name: i,
801
- control: s,
802
- defaultValue: a,
803
- rules: u,
804
- shouldUnregister: f,
805
- render: ({ field: { ref: o, onChange: v, onBlur: R, 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(
806
818
  xr,
807
819
  {
808
- ref: o,
809
- name: i,
810
- value: g,
811
- onBlur: (S) => {
812
- R(), c(S);
820
+ ref: i,
821
+ name: u,
822
+ value: _,
823
+ onBlur: (T) => {
824
+ m(), n(T);
813
825
  },
814
- onChange: (S) => {
815
- v(S.detail.value), p(S);
826
+ onChange: (T) => {
827
+ v(T.detail.value), a(T);
816
828
  },
817
- ...d
829
+ ...p
818
830
  }
819
831
  )
820
832
  }
821
833
  );
822
834
  }, et = ({
823
- name: i,
824
- control: s,
825
- onBlur: a,
826
- onChange: u,
827
- ...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
828
843
  }) => {
829
- const r = _(
830
- (d) => {
831
- a == null || a(d);
844
+ const n = x(
845
+ (i) => {
846
+ s == null || s(i);
832
847
  },
833
- [a]
834
- ), n = _(
835
- (d) => {
836
- u == null || u(d);
848
+ [s]
849
+ ), a = x(
850
+ (i) => {
851
+ c == null || c(i);
837
852
  },
838
- [u]
853
+ [c]
839
854
  );
840
855
  return /* @__PURE__ */ h.jsx(
841
- O,
856
+ S,
842
857
  {
843
- name: i,
844
- control: s,
845
- render: ({ field: { ref: d, onBlur: c, onChange: p, 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(
846
864
  gr,
847
865
  {
848
- ref: d,
849
- value: o,
850
- onBlur: (v) => {
851
- c(), r(v);
866
+ ref: i,
867
+ value: _,
868
+ onBlur: (T) => {
869
+ v(), n(T);
852
870
  },
853
- onChange: (v) => {
854
- p(v.detail.value), n(v);
871
+ onChange: (T) => {
872
+ m(T.detail.value), a(T);
855
873
  },
856
- ...f
874
+ ...p
857
875
  }
858
876
  )
859
877
  }
860
878
  );
861
879
  }, rt = ({
862
- name: i,
863
- control: s,
864
- defaultValue: a,
865
- rules: u,
866
- shouldUnregister: f = !1,
867
- onChange: r,
868
- ...n
880
+ name: u,
881
+ control: f,
882
+ defaultValue: s,
883
+ rules: c,
884
+ shouldUnregister: d = !1,
885
+ onChange: t,
886
+ ...l
869
887
  }) => {
870
- const d = (p) => p != null && p.length ? p : [], c = _(
871
- (p, o) => {
872
- p(d(o.detail.value)), r == null || r(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);
873
891
  },
874
- [r]
892
+ [t]
875
893
  );
876
894
  return /* @__PURE__ */ h.jsx(
877
- O,
895
+ S,
878
896
  {
879
- name: i,
880
- control: s,
881
- defaultValue: a,
882
- rules: u,
883
- shouldUnregister: f,
884
- render: ({ field: { ref: p, onChange: o, value: v } }) => /* @__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(
885
903
  jr,
886
904
  {
887
- ref: p,
888
- value: d(v),
889
- onChange: c.bind(null, o),
890
- ...n
905
+ ref: a,
906
+ value: p(v),
907
+ onChange: n.bind(null, i),
908
+ ...l
891
909
  }
892
910
  )
893
911
  }
894
912
  );
895
913
  }, tt = ({
896
- name: i,
897
- control: s,
898
- defaultValue: a,
899
- rules: u,
900
- shouldUnregister: f = !1,
901
- onBlur: r,
902
- onChange: n,
903
- ...d
914
+ name: u,
915
+ control: f,
916
+ defaultValue: s,
917
+ rules: c,
918
+ shouldUnregister: d = !1,
919
+ onBlur: t,
920
+ onChange: l,
921
+ ...p
904
922
  }) => {
905
- const c = _(
906
- (o) => {
907
- r == null || r(o);
923
+ const n = x(
924
+ (i) => {
925
+ t == null || t(i);
908
926
  },
909
- [r]
910
- ), p = _(
911
- (o) => {
912
- n == null || n(o);
927
+ [t]
928
+ ), a = x(
929
+ (i) => {
930
+ l == null || l(i);
913
931
  },
914
- [n]
932
+ [l]
915
933
  );
916
934
  return /* @__PURE__ */ h.jsx(
917
- O,
935
+ S,
918
936
  {
919
- name: i,
920
- control: s,
921
- defaultValue: a,
922
- rules: u,
923
- shouldUnregister: f,
924
- render: ({ field: { ref: o, onBlur: v, onChange: R, 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(
925
943
  Tr,
926
944
  {
927
- ref: o,
928
- name: i,
929
- value: g,
930
- onBlur: (S) => {
931
- v(), c(S);
945
+ ref: i,
946
+ name: u,
947
+ value: _,
948
+ onBlur: (T) => {
949
+ v(), n(T);
932
950
  },
933
- onChange: (S) => {
934
- R(S.detail.value), p(S);
951
+ onChange: (T) => {
952
+ m(T.detail.value), a(T);
935
953
  },
936
- ...d
954
+ ...p
937
955
  }
938
956
  )
939
957
  }
940
958
  );
941
- }, te = (i = []) => i != null && i.length ? i.map((s) => "options" in s ? te(s.options) : s.value).flat() : [], ne = (i = [], s = []) => i != null && i.length && (s != null && s.length) ? i.reduce((a, u) => {
942
- if (i != null && i.length) {
943
- if ("options" in u) {
944
- const f = ne(u.options, s);
945
- 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);
946
964
  }
947
- "value" in u && s.find((f) => f === u.value) && a.push(u);
965
+ "value" in c && f.find((d) => d === c.value) && s.push(c);
948
966
  }
949
- return a;
967
+ return s;
950
968
  }, []).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
951
- name: i,
952
- control: s,
953
- options: a,
954
- defaultValue: u,
955
- rules: f,
956
- onBlur: r,
957
- onChange: n,
958
- shouldUnregister: d = !1,
959
- ...c
969
+ name: u,
970
+ control: f,
971
+ options: s,
972
+ defaultValue: c,
973
+ rules: d,
974
+ onBlur: t,
975
+ onChange: l,
976
+ shouldUnregister: p = !1,
977
+ ...n
960
978
  }) => {
961
- const p = _(
962
- (v, R) => {
963
- v(), r == null || r(R);
979
+ const a = x(
980
+ (v, m) => {
981
+ v(), t == null || t(m);
964
982
  },
965
- [r]
966
- ), o = _(
967
- (v, R) => {
968
- v(te(R.detail.selectedOptions)), n == null || n(R);
983
+ [t]
984
+ ), i = x(
985
+ (v, m) => {
986
+ v(te(m.detail.selectedOptions)), l == null || l(m);
969
987
  },
970
- [n]
988
+ [l]
971
989
  );
972
990
  return /* @__PURE__ */ h.jsx(
973
- O,
991
+ S,
974
992
  {
975
- name: i,
976
- control: s,
977
- defaultValue: u,
978
- rules: f,
979
- shouldUnregister: d,
980
- render: ({ field: { ref: v, onChange: R, onBlur: g, value: S } }) => /* @__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(
981
999
  Or,
982
1000
  {
983
1001
  ref: v,
984
- options: a,
985
- onBlur: () => p.bind(null, g),
986
- onChange: o.bind(null, R),
987
- selectedOptions: ne(a, S),
988
- ...c
1002
+ options: s,
1003
+ onBlur: () => a.bind(null, _),
1004
+ onChange: i.bind(null, m),
1005
+ selectedOptions: ne(s, T),
1006
+ ...n
989
1007
  }
990
1008
  )
991
1009
  }
992
1010
  );
993
- }, it = (i) => {
994
- const { name: s, control: a, defaultValue: u, rules: f, shouldUnregister: r = !1, ...n } = i, d = _(
995
- (c, p) => {
996
- c(p.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);
997
1022
  },
998
1023
  []
999
1024
  );
1000
1025
  return /* @__PURE__ */ h.jsx(
1001
- O,
1026
+ S,
1002
1027
  {
1003
- name: s,
1004
- control: a,
1005
- defaultValue: u,
1006
- rules: f,
1007
- shouldUnregister: r,
1008
- render: ({ field: { onChange: c, value: p } }) => /* @__PURE__ */ h.jsx(Sr, { onChange: d.bind(null, c), query: p, ...n })
1028
+ name: u,
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 })
1009
1034
  }
1010
1035
  );
1011
1036
  }, lt = ({
1012
- name: i,
1013
- control: s,
1014
- onChange: a,
1015
- ...u
1037
+ name: u,
1038
+ control: f,
1039
+ onChange: s,
1040
+ rules: c,
1041
+ defaultValue: d,
1042
+ shouldUnregister: t = !1,
1043
+ ...l
1016
1044
  }) => {
1017
- const f = _(
1018
- (r, n) => {
1019
- r(n.detail.value), a == null || a(n);
1045
+ const p = x(
1046
+ (n, a) => {
1047
+ n(a.detail.value), s == null || s(a);
1020
1048
  },
1021
- [a]
1049
+ [s]
1022
1050
  );
1023
1051
  return /* @__PURE__ */ h.jsx(
1024
- O,
1052
+ S,
1025
1053
  {
1026
- name: i,
1027
- control: s,
1028
- render: ({ field: { onChange: r, value: n } }) => /* @__PURE__ */ h.jsx(Pr, { onChange: f.bind(null, r), value: n, items: u.items, ...u })
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 })
1029
1060
  }
1030
1061
  );
1031
- }, ut = ({
1032
- name: i,
1033
- control: s,
1034
- defaultValue: a,
1035
- rules: u,
1036
- shouldUnregister: f = !1,
1037
- onChange: r,
1038
- ...n
1062
+ }, st = ({
1063
+ name: u,
1064
+ control: f,
1065
+ defaultValue: s,
1066
+ rules: c,
1067
+ shouldUnregister: d = !1,
1068
+ onChange: t,
1069
+ ...l
1039
1070
  }) => {
1040
- const d = _(
1041
- (c, p) => {
1042
- c(p.detail.resource), r == null || r(p);
1071
+ const p = x(
1072
+ (n, a) => {
1073
+ n(a.detail.resource), t == null || t(a);
1043
1074
  },
1044
- [r]
1075
+ [t]
1045
1076
  );
1046
1077
  return /* @__PURE__ */ h.jsx(
1047
- O,
1078
+ S,
1048
1079
  {
1049
- name: i,
1050
- control: s,
1051
- defaultValue: a,
1052
- rules: u,
1053
- shouldUnregister: f,
1054
- render: ({ field: { ref: c, onChange: p, 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(
1055
1086
  wr,
1056
1087
  {
1057
- ref: c,
1058
- resource: o ?? { uri: "" },
1059
- onChange: d.bind(null, p),
1060
- ...n
1088
+ ref: n,
1089
+ resource: i ?? { uri: "" },
1090
+ onChange: p.bind(null, a),
1091
+ ...l
1061
1092
  }
1062
1093
  )
1063
1094
  }
1064
1095
  );
1065
- }, De = (i = [], s) => {
1066
- let a = null;
1067
- return i && s && (a = i.reduce(
1068
- (u, f) => {
1069
- if ("options" in f) {
1070
- const r = De(f.options, s);
1071
- r && u.push(r);
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);
1072
1103
  }
1073
- return "value" in f && f.value === s && u.push(f), u;
1104
+ return "value" in d && d.value === f && c.push(d), c;
1074
1105
  },
1075
1106
  []
1076
- )[0]), a || null;
1107
+ )[0]), s || null;
1077
1108
  }, qr = {
1078
1109
  mapSelectedOptionWithOptions: De
1079
- }, st = ({
1080
- name: i,
1081
- control: s,
1082
- defaultValue: a,
1083
- rules: u,
1084
- shouldUnregister: f = !1,
1085
- onBlur: r,
1086
- onChange: n,
1087
- ...d
1110
+ }, ut = ({
1111
+ name: u,
1112
+ control: f,
1113
+ defaultValue: s,
1114
+ rules: c,
1115
+ shouldUnregister: d = !1,
1116
+ onBlur: t,
1117
+ onChange: l,
1118
+ ...p
1088
1119
  }) => {
1089
- const c = _(
1090
- (o, v) => {
1091
- o(), r == null || r(v);
1120
+ const n = x(
1121
+ (i, v) => {
1122
+ i(), t == null || t(v);
1092
1123
  },
1093
- [r]
1094
- ), p = _(
1095
- (o, v) => {
1096
- o(v.detail.selectedOption.value), n == null || n(v);
1124
+ [t]
1125
+ ), a = x(
1126
+ (i, v) => {
1127
+ i(v.detail.selectedOption.value), l == null || l(v);
1097
1128
  },
1098
- [n]
1129
+ [l]
1099
1130
  );
1100
1131
  return /* @__PURE__ */ h.jsx(
1101
- O,
1132
+ S,
1102
1133
  {
1103
- name: i,
1104
- control: s,
1105
- defaultValue: a,
1106
- rules: u,
1107
- shouldUnregister: f,
1108
- render: ({ field: { ref: o, onChange: v, onBlur: R, 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(
1109
1140
  kr,
1110
1141
  {
1111
- ref: o,
1112
- selectedOption: qr.mapSelectedOptionWithOptions(d.options, g),
1113
- onBlur: c.bind(null, R),
1114
- onChange: p.bind(null, v),
1115
- ...d
1142
+ ref: i,
1143
+ selectedOption: qr.mapSelectedOptionWithOptions(p.options, _),
1144
+ onBlur: n.bind(null, m),
1145
+ onChange: a.bind(null, v),
1146
+ ...p
1116
1147
  }
1117
1148
  )
1118
1149
  }
1119
1150
  );
1120
1151
  }, ot = ({
1121
- name: i,
1122
- control: s,
1123
- defaultValue: a,
1124
- rules: u,
1125
- shouldUnregister: f = !1,
1126
- onChange: r,
1127
- ...n
1152
+ name: u,
1153
+ control: f,
1154
+ defaultValue: s,
1155
+ rules: c,
1156
+ shouldUnregister: d = !1,
1157
+ onChange: t,
1158
+ ...l
1128
1159
  }) => {
1129
- const d = _(
1130
- (c) => {
1131
- r == null || r(c);
1160
+ const p = x(
1161
+ (n) => {
1162
+ t == null || t(n);
1132
1163
  },
1133
- [r]
1164
+ [t]
1134
1165
  );
1135
1166
  return /* @__PURE__ */ h.jsx(
1136
- O,
1167
+ S,
1137
1168
  {
1138
- name: i,
1139
- control: s,
1140
- defaultValue: a,
1141
- rules: u,
1142
- shouldUnregister: f,
1143
- render: ({ field: { onChange: c, value: p } }) => /* @__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(
1144
1175
  Cr,
1145
1176
  {
1146
- value: p,
1147
- onChange: (o) => {
1148
- c(o.detail.value), d(o);
1177
+ value: a,
1178
+ onChange: (i) => {
1179
+ n(i.detail.value), p(i);
1149
1180
  },
1150
- ...n
1181
+ ...l
1151
1182
  }
1152
1183
  )
1153
1184
  }
1154
1185
  );
1155
1186
  }, ft = ({
1156
- name: i,
1157
- control: s,
1158
- onChange: a,
1159
- ...u
1187
+ name: u,
1188
+ control: f,
1189
+ onChange: s,
1190
+ defaultValue: c,
1191
+ rules: d,
1192
+ shouldUnregister: t,
1193
+ ...l
1160
1194
  }) => {
1161
- const f = _(
1162
- (r, n) => {
1163
- r([...n.detail.tags]), a == null || a(n);
1195
+ const p = x(
1196
+ (n, a) => {
1197
+ n([...a.detail.tags]), s == null || s(a);
1164
1198
  },
1165
- [a]
1199
+ [s]
1166
1200
  );
1167
1201
  return /* @__PURE__ */ h.jsx(
1168
- O,
1202
+ S,
1169
1203
  {
1170
- name: i,
1171
- control: s,
1172
- render: ({ field: { ref: r, 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(
1173
1210
  Fr,
1174
1211
  {
1175
- ref: r,
1176
- tags: d || [],
1177
- onChange: f.bind(null, n),
1178
- ...u
1212
+ ref: n,
1213
+ tags: i || [],
1214
+ onChange: p.bind(null, a),
1215
+ ...l
1179
1216
  }
1180
1217
  )
1181
1218
  }
1182
1219
  );
1183
1220
  }, ct = ({
1184
- name: i,
1185
- control: s,
1186
- onChange: a,
1187
- ...u
1221
+ name: u,
1222
+ control: f,
1223
+ defaultValue: s,
1224
+ rules: c,
1225
+ shouldUnregister: d,
1226
+ onChange: t,
1227
+ ...l
1188
1228
  }) => {
1189
- const f = _(
1190
- (r, n) => {
1191
- r(n.detail.filteringText), a == null || a(n);
1229
+ const p = x(
1230
+ (n, a) => {
1231
+ n(a.detail.filteringText), t == null || t(a);
1192
1232
  },
1193
- [a]
1233
+ [t]
1194
1234
  );
1195
1235
  return /* @__PURE__ */ h.jsx(
1196
- O,
1236
+ S,
1197
1237
  {
1198
- name: i,
1199
- control: s,
1200
- render: ({ field: { ref: r, 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(
1201
1244
  Dr,
1202
1245
  {
1203
- ref: r,
1204
- filteringText: d,
1205
- onChange: f.bind(null, n),
1206
- ...u
1246
+ ref: n,
1247
+ filteringText: i,
1248
+ onChange: p.bind(null, a),
1249
+ ...l
1207
1250
  }
1208
1251
  )
1209
1252
  }
1210
1253
  );
1211
1254
  }, dt = ({
1212
- name: i,
1213
- control: s,
1214
- defaultValue: a,
1215
- rules: u,
1216
- shouldUnregister: f = !1,
1217
- onBlur: r,
1218
- onChange: n,
1219
- ...d
1255
+ name: u,
1256
+ control: f,
1257
+ defaultValue: s,
1258
+ rules: c,
1259
+ shouldUnregister: d = !1,
1260
+ onBlur: t,
1261
+ onChange: l,
1262
+ ...p
1220
1263
  }) => {
1221
- const c = _(
1222
- (o, v) => {
1223
- o(), r == null || r(v);
1264
+ const n = x(
1265
+ (i, v) => {
1266
+ i(), t == null || t(v);
1224
1267
  },
1225
- [r]
1226
- ), p = _(
1227
- (o, v) => {
1228
- o(v.detail.value), n == null || n(v);
1268
+ [t]
1269
+ ), a = x(
1270
+ (i, v) => {
1271
+ i(v.detail.value), l == null || l(v);
1229
1272
  },
1230
- [n]
1273
+ [l]
1231
1274
  );
1232
1275
  return /* @__PURE__ */ h.jsx(
1233
- O,
1276
+ S,
1234
1277
  {
1235
- name: i,
1236
- control: s,
1237
- defaultValue: a,
1238
- rules: u,
1239
- shouldUnregister: f,
1240
- render: ({ field: { onChange: o, onBlur: v, value: R, 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(
1241
1284
  Ar,
1242
1285
  {
1243
- ref: g,
1244
- name: i,
1245
- value: R,
1246
- onBlur: c.bind(null, v),
1247
- onChange: p.bind(null, o),
1248
- ...d
1286
+ ref: _,
1287
+ name: u,
1288
+ value: m,
1289
+ onBlur: n.bind(null, v),
1290
+ onChange: a.bind(null, i),
1291
+ ...p
1249
1292
  }
1250
1293
  )
1251
1294
  }
1252
1295
  );
1253
- }, vt = ({ name: i, control: s, onChange: a, ...u }) => {
1254
- const f = _(
1255
- (r, n) => {
1256
- r(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);
1257
1308
  },
1258
- [a]
1309
+ [s]
1259
1310
  );
1260
1311
  return /* @__PURE__ */ h.jsx(
1261
- O,
1312
+ S,
1262
1313
  {
1263
- name: i,
1264
- control: s,
1265
- render: ({ field: { onChange: r, value: n } }) => /* @__PURE__ */ h.jsx(Ir, { onChange: f.bind(null, r), value: n, items: u.items, ...u })
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 })
1266
1320
  }
1267
1321
  );
1268
1322
  }, pt = ({
1269
- name: i,
1270
- control: s,
1271
- onBlur: a,
1272
- onChange: u,
1273
- ...f
1323
+ name: u,
1324
+ control: f,
1325
+ defaultValue: s,
1326
+ rules: c,
1327
+ shouldUnregister: d = !1,
1328
+ onBlur: t,
1329
+ onChange: l,
1330
+ ...p
1274
1331
  }) => {
1275
- const r = _(
1276
- (d, c) => {
1277
- d(), a == null || a(c);
1332
+ const n = x(
1333
+ (i, v) => {
1334
+ i(), t == null || t(v);
1278
1335
  },
1279
- [a]
1280
- ), n = _(
1281
- (d, c) => {
1282
- d(c.detail.value), u == null || u(c);
1336
+ [t]
1337
+ ), a = x(
1338
+ (i, v) => {
1339
+ i(v.detail.value), l == null || l(v);
1283
1340
  },
1284
- [u]
1341
+ [l]
1285
1342
  );
1286
1343
  return /* @__PURE__ */ h.jsx(
1287
- O,
1344
+ S,
1288
1345
  {
1289
- name: i,
1290
- control: s,
1291
- render: ({ field: { ref: d, onChange: c, onBlur: p, 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(
1292
1352
  $r,
1293
1353
  {
1294
- name: i,
1295
- ref: d,
1296
- value: o,
1297
- onBlur: r.bind(null, p),
1298
- onChange: n.bind(null, c),
1299
- ...f
1354
+ name: u,
1355
+ ref: i,
1356
+ value: _,
1357
+ onBlur: n.bind(null, m),
1358
+ onChange: a.bind(null, v),
1359
+ ...p
1300
1360
  }
1301
1361
  )
1302
1362
  }
1303
1363
  );
1304
1364
  }, bt = ({
1305
- name: i,
1306
- control: s,
1307
- onChange: a,
1308
- ...u
1365
+ name: u,
1366
+ control: f,
1367
+ defaultValue: s,
1368
+ rules: c,
1369
+ shouldUnregister: d = !1,
1370
+ onChange: t,
1371
+ ...l
1309
1372
  }) => {
1310
- const f = _(
1311
- (r, n) => {
1312
- r(n.detail.checked), a == null || a(n);
1373
+ const p = x(
1374
+ (n, a) => {
1375
+ n(a.detail.checked), t == null || t(a);
1313
1376
  },
1314
- [a]
1377
+ [t]
1315
1378
  );
1316
1379
  return /* @__PURE__ */ h.jsx(
1317
- O,
1380
+ S,
1318
1381
  {
1319
- name: i,
1320
- control: s,
1321
- render: ({ field: { ref: r, onChange: n, value: d = !1 } }) => /* @__PURE__ */ h.jsx(Wr, { ref: r, name: i, checked: d, onChange: f.bind(null, n), ...u })
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 })
1322
1388
  }
1323
1389
  );
1324
1390
  };
@@ -1335,8 +1401,8 @@ export {
1335
1401
  at as CMultiselect,
1336
1402
  it as CPropertyFilter,
1337
1403
  lt as CRadioGroup,
1338
- ut as CS3ResourceSelector,
1339
- st as CSelect,
1404
+ st as CS3ResourceSelector,
1405
+ ut as CSelect,
1340
1406
  ot as CSlider,
1341
1407
  ft as CTagEditor,
1342
1408
  ct as CTextFilter,