react-hook-form-cloudscape 1.4.3 → 1.4.5

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