react-hook-form-cloudscape 1.7.5 → 1.8.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/chunks/attribute-editor-D_R3yYxI.js +43 -0
  2. package/chunks/attribute-editor-D_R3yYxI.js.map +1 -0
  3. package/chunks/autosuggest-BUuLYkQH.js +52 -0
  4. package/chunks/autosuggest-BUuLYkQH.js.map +1 -0
  5. package/chunks/cards-C8vaDpv2.js +35 -0
  6. package/chunks/cards-C8vaDpv2.js.map +1 -0
  7. package/chunks/checkbox-BLEiMoWo.js +35 -0
  8. package/chunks/checkbox-BLEiMoWo.js.map +1 -0
  9. package/chunks/code-editor-CO-CXW5b.js +35 -0
  10. package/chunks/code-editor-CO-CXW5b.js.map +1 -0
  11. package/chunks/date-picker-EwKV75ek.js +55 -0
  12. package/chunks/date-picker-EwKV75ek.js.map +1 -0
  13. package/chunks/date-range-picker-BIPmrRCt.js +54 -0
  14. package/chunks/date-range-picker-BIPmrRCt.js.map +1 -0
  15. package/chunks/file-upload-D24SwhpK.js +43 -0
  16. package/chunks/file-upload-D24SwhpK.js.map +1 -0
  17. package/chunks/input-C_NAVFVp.js +55 -0
  18. package/chunks/input-C_NAVFVp.js.map +1 -0
  19. package/chunks/jsx-runtime-BFln9wzo.js +634 -0
  20. package/chunks/jsx-runtime-BFln9wzo.js.map +1 -0
  21. package/chunks/multiselect-DSvxGKAc.js +62 -0
  22. package/chunks/multiselect-DSvxGKAc.js.map +1 -0
  23. package/chunks/property-filter-BvTDYnVv.js +34 -0
  24. package/chunks/property-filter-BvTDYnVv.js.map +1 -0
  25. package/chunks/radio-group-DAsz2eKX.js +43 -0
  26. package/chunks/radio-group-DAsz2eKX.js.map +1 -0
  27. package/chunks/s3-resource-selector-b0vS8Pvu.js +43 -0
  28. package/chunks/s3-resource-selector-b0vS8Pvu.js.map +1 -0
  29. package/chunks/select-Cf7jrtl4.js +65 -0
  30. package/chunks/select-Cf7jrtl4.js.map +1 -0
  31. package/chunks/slider-B-NIWZeR.js +44 -0
  32. package/chunks/slider-B-NIWZeR.js.map +1 -0
  33. package/chunks/tag-editor-CBuhtno9.js +43 -0
  34. package/chunks/tag-editor-CBuhtno9.js.map +1 -0
  35. package/chunks/text-filter-jN39H9Rm.js +43 -0
  36. package/chunks/text-filter-jN39H9Rm.js.map +1 -0
  37. package/chunks/textarea-DMR1d9_9.js +51 -0
  38. package/chunks/textarea-DMR1d9_9.js.map +1 -0
  39. package/chunks/tiles-CHvrgSY3.js +35 -0
  40. package/chunks/tiles-CHvrgSY3.js.map +1 -0
  41. package/chunks/time-input-T5R8fO5l.js +51 -0
  42. package/chunks/time-input-T5R8fO5l.js.map +1 -0
  43. package/chunks/toggle-gkdaJrPH.js +44 -0
  44. package/chunks/toggle-gkdaJrPH.js.map +1 -0
  45. package/components/attribute-editor/index.js +5 -0
  46. package/components/attribute-editor/index.js.map +1 -0
  47. package/components/autosuggest/index.js +5 -0
  48. package/components/autosuggest/index.js.map +1 -0
  49. package/components/cards/index.js +5 -0
  50. package/components/cards/index.js.map +1 -0
  51. package/components/checkbox/index.js +5 -0
  52. package/components/checkbox/index.js.map +1 -0
  53. package/components/code-editor/index.js +5 -0
  54. package/components/code-editor/index.js.map +1 -0
  55. package/components/date-picker/index.js +5 -0
  56. package/components/date-picker/index.js.map +1 -0
  57. package/components/date-range-picker/index.js +5 -0
  58. package/components/date-range-picker/index.js.map +1 -0
  59. package/components/file-upload/index.js +5 -0
  60. package/components/file-upload/index.js.map +1 -0
  61. package/components/input/index.js +5 -0
  62. package/components/input/index.js.map +1 -0
  63. package/components/multiselect/index.js +6 -0
  64. package/components/multiselect/index.js.map +1 -0
  65. package/components/property-filter/index.js +5 -0
  66. package/components/property-filter/index.js.map +1 -0
  67. package/components/radio-group/index.js +5 -0
  68. package/components/radio-group/index.js.map +1 -0
  69. package/components/s3-resource-selector/index.js +5 -0
  70. package/components/s3-resource-selector/index.js.map +1 -0
  71. package/components/select/index.js +6 -0
  72. package/components/select/index.js.map +1 -0
  73. package/components/slider/index.js +5 -0
  74. package/components/slider/index.js.map +1 -0
  75. package/components/tag-editor/index.js +5 -0
  76. package/components/tag-editor/index.js.map +1 -0
  77. package/components/text-filter/index.js +5 -0
  78. package/components/text-filter/index.js.map +1 -0
  79. package/components/textarea/index.js +5 -0
  80. package/components/textarea/index.js.map +1 -0
  81. package/components/tiles/index.js +5 -0
  82. package/components/tiles/index.js.map +1 -0
  83. package/components/time-input/index.js +5 -0
  84. package/components/time-input/index.js.map +1 -0
  85. package/components/toggle/index.js +5 -0
  86. package/components/toggle/index.js.map +1 -0
  87. package/index.js +47 -0
  88. package/index.js.map +1 -0
  89. package/package.json +16 -8
  90. package/react-hook-form-cloudscape.es.js +0 -1433
  91. package/react-hook-form-cloudscape.es.js.map +0 -1
  92. package/react-hook-form-cloudscape.umd.js +0 -31
  93. package/react-hook-form-cloudscape.umd.js.map +0 -1
@@ -1,1433 +0,0 @@
1
- import Fe, { useCallback as x, useMemo as hr } from "react";
2
- import { Input as Er, Checkbox as yr, Select as mr, Textarea as Rr, DatePicker as _r, DateRangePicker as xr, FileUpload as gr, Multiselect as jr, PropertyFilter as Tr, RadioGroup as Or, S3ResourceSelector as Sr, Slider as Pr, TagEditor as wr, TextFilter as kr, TimeInput as Cr, Toggle as Fr, Autosuggest as Dr, Cards as Ar, CodeEditor as Ir, AttributeEditor as $r, Tiles as Wr } from "@cloudscape-design/components";
3
- import { Controller as S, useFormState as Yr, useFieldArray as Mr, get as Ur } from "react-hook-form";
4
- var G = { exports: {} }, U = {};
5
- /**
6
- * @license React
7
- * react-jsx-runtime.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var we;
15
- function Lr() {
16
- if (we) return U;
17
- we = 1;
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
- }
26
- return U.Fragment = s, U.jsx = l, U.jsxs = l, U;
27
- }
28
- var L = {};
29
- /**
30
- * @license React
31
- * react-jsx-runtime.development.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */
38
- var ke;
39
- function Vr() {
40
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
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
- function Ae(e) {
43
- if (e === null || typeof e != "object")
44
- return null;
45
- var r = T && e[T] || e[K];
46
- return typeof r == "function" ? r : null;
47
- }
48
- var I = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function P(e) {
50
- {
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
- }
55
- }
56
- function Ie(e, r, o) {
57
- {
58
- var b = I.ReactDebugCurrentFrame, R = b.getStackAddendum();
59
- R !== "" && (r += "%s", o = o.concat([R]));
60
- var g = o.map(function(y) {
61
- return String(y);
62
- });
63
- g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
64
- }
65
- }
66
- var $e = !1, We = !1, Ye = !1, Me = !1, Ue = !1, ae;
67
- ae = Symbol.for("react.module.reference");
68
- function Le(e) {
69
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === t || Ue || e === d || e === a || e === i || Me || e === _ || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === v || e.$$typeof === l || e.$$typeof === p || e.$$typeof === n || // This needs to include all possible module reference object
70
- // types supported by any Flight configuration anywhere since
71
- // we don't know which Flight build this will end up being used
72
- // with.
73
- e.$$typeof === ae || e.getModuleId !== void 0));
74
- }
75
- function Ve(e, r, o) {
76
- var b = e.displayName;
77
- if (b)
78
- return b;
79
- var R = r.displayName || r.name || "";
80
- return R !== "" ? o + "(" + R + ")" : o;
81
- }
82
- function ie(e) {
83
- return e.displayName || "Context";
84
- }
85
- function F(e) {
86
- if (e == null)
87
- return null;
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")
89
- return e.displayName || e.name || null;
90
- if (typeof e == "string")
91
- return e;
92
- switch (e) {
93
- case c:
94
- return "Fragment";
95
- case s:
96
- return "Portal";
97
- case t:
98
- return "Profiler";
99
- case d:
100
- return "StrictMode";
101
- case a:
102
- return "Suspense";
103
- case i:
104
- return "SuspenseList";
105
- }
106
- if (typeof e == "object")
107
- switch (e.$$typeof) {
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";
114
- case n:
115
- return Ve(e, e.render, "ForwardRef");
116
- case v:
117
- var b = e.displayName || null;
118
- return b !== null ? b : F(e.type) || "Memo";
119
- case m: {
120
- var R = e, g = R._payload, y = R._init;
121
- try {
122
- return F(y(g));
123
- } catch {
124
- return null;
125
- }
126
- }
127
- }
128
- return null;
129
- }
130
- var D = Object.assign, Y = 0, le, se, ue, oe, fe, ce, de;
131
- function ve() {
132
- }
133
- ve.__reactDisabledLog = !0;
134
- function Ne() {
135
- {
136
- if (Y === 0) {
137
- le = console.log, se = console.info, ue = console.warn, oe = console.error, fe = console.group, ce = console.groupCollapsed, de = console.groupEnd;
138
- var e = {
139
- configurable: !0,
140
- enumerable: !0,
141
- value: ve,
142
- writable: !0
143
- };
144
- Object.defineProperties(console, {
145
- info: e,
146
- log: e,
147
- warn: e,
148
- error: e,
149
- group: e,
150
- groupCollapsed: e,
151
- groupEnd: e
152
- });
153
- }
154
- Y++;
155
- }
156
- }
157
- function qe() {
158
- {
159
- if (Y--, Y === 0) {
160
- var e = {
161
- configurable: !0,
162
- enumerable: !0,
163
- writable: !0
164
- };
165
- Object.defineProperties(console, {
166
- log: D({}, e, {
167
- value: le
168
- }),
169
- info: D({}, e, {
170
- value: se
171
- }),
172
- warn: D({}, e, {
173
- value: ue
174
- }),
175
- error: D({}, e, {
176
- value: oe
177
- }),
178
- group: D({}, e, {
179
- value: fe
180
- }),
181
- groupCollapsed: D({}, e, {
182
- value: ce
183
- }),
184
- groupEnd: D({}, e, {
185
- value: de
186
- })
187
- });
188
- }
189
- Y < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
- }
191
- }
192
- var z = I.ReactCurrentDispatcher, X;
193
- function V(e, r, o) {
194
- {
195
- if (X === void 0)
196
- try {
197
- throw Error();
198
- } catch (R) {
199
- var b = R.stack.trim().match(/\n( *(at )?)/);
200
- X = b && b[1] || "";
201
- }
202
- return `
203
- ` + X + e;
204
- }
205
- }
206
- var H = !1, N;
207
- {
208
- var Je = typeof WeakMap == "function" ? WeakMap : Map;
209
- N = new Je();
210
- }
211
- function pe(e, r) {
212
- if (!e || H)
213
- return "";
214
- {
215
- var o = N.get(e);
216
- if (o !== void 0)
217
- return o;
218
- }
219
- var b;
220
- H = !0;
221
- var R = Error.prepareStackTrace;
222
- Error.prepareStackTrace = void 0;
223
- var g;
224
- g = z.current, z.current = null, Ne();
225
- try {
226
- if (r) {
227
- var y = function() {
228
- throw Error();
229
- };
230
- if (Object.defineProperty(y.prototype, "props", {
231
- set: function() {
232
- throw Error();
233
- }
234
- }), typeof Reflect == "object" && Reflect.construct) {
235
- try {
236
- Reflect.construct(y, []);
237
- } catch (k) {
238
- b = k;
239
- }
240
- Reflect.construct(e, [], y);
241
- } else {
242
- try {
243
- y.call();
244
- } catch (k) {
245
- b = k;
246
- }
247
- e.call(y.prototype);
248
- }
249
- } else {
250
- try {
251
- throw Error();
252
- } catch (k) {
253
- b = k;
254
- }
255
- e();
256
- }
257
- } catch (k) {
258
- if (k && b && typeof k.stack == "string") {
259
- for (var E = k.stack.split(`
260
- `), w = b.stack.split(`
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
- do
267
- if (j--, O--, O < 0 || E[j] !== w[O]) {
268
- var C = `
269
- ` + E[j].replace(" at new ", " at ");
270
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, C), C;
271
- }
272
- while (j >= 1 && O >= 0);
273
- break;
274
- }
275
- }
276
- } finally {
277
- H = !1, z.current = g, qe(), Error.prepareStackTrace = R;
278
- }
279
- var W = e ? e.displayName || e.name : "", A = W ? V(W) : "";
280
- return typeof e == "function" && N.set(e, A), A;
281
- }
282
- function Ge(e, r, o) {
283
- return pe(e, !1);
284
- }
285
- function Ke(e) {
286
- var r = e.prototype;
287
- return !!(r && r.isReactComponent);
288
- }
289
- function q(e, r, o) {
290
- if (e == null)
291
- return "";
292
- if (typeof e == "function")
293
- return pe(e, Ke(e));
294
- if (typeof e == "string")
295
- return V(e);
296
- switch (e) {
297
- case a:
298
- return V("Suspense");
299
- case i:
300
- return V("SuspenseList");
301
- }
302
- if (typeof e == "object")
303
- switch (e.$$typeof) {
304
- case n:
305
- return Ge(e.render);
306
- case v:
307
- return q(e.type, r, o);
308
- case m: {
309
- var b = e, R = b._payload, g = b._init;
310
- try {
311
- return q(g(R), r, o);
312
- } catch {
313
- }
314
- }
315
- }
316
- return "";
317
- }
318
- var M = Object.prototype.hasOwnProperty, be = {}, he = I.ReactDebugCurrentFrame;
319
- function J(e) {
320
- if (e) {
321
- var r = e._owner, o = q(e.type, e._source, r ? r.type : null);
322
- he.setExtraStackFrame(o);
323
- } else
324
- he.setExtraStackFrame(null);
325
- }
326
- function ze(e, r, o, b, R) {
327
- {
328
- var g = Function.call.bind(M);
329
- for (var y in e)
330
- if (g(e, y)) {
331
- var E = void 0;
332
- try {
333
- if (typeof e[y] != "function") {
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
- throw w.name = "Invariant Violation", w;
336
- }
337
- E = e[y](r, y, b, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
- } catch (j) {
339
- E = j;
340
- }
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
- }
343
- }
344
- }
345
- var Xe = Array.isArray;
346
- function Z(e) {
347
- return Xe(e);
348
- }
349
- function He(e) {
350
- {
351
- var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
352
- return o;
353
- }
354
- }
355
- function Ze(e) {
356
- try {
357
- return Ee(e), !1;
358
- } catch {
359
- return !0;
360
- }
361
- }
362
- function Ee(e) {
363
- return "" + e;
364
- }
365
- function ye(e) {
366
- if (Ze(e))
367
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ee(e);
368
- }
369
- var me = I.ReactCurrentOwner, Qe = {
370
- key: !0,
371
- ref: !0,
372
- __self: !0,
373
- __source: !0
374
- }, Re, _e;
375
- function Be(e) {
376
- if (M.call(e, "ref")) {
377
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
378
- if (r && r.isReactWarning)
379
- return !1;
380
- }
381
- return e.ref !== void 0;
382
- }
383
- function er(e) {
384
- if (M.call(e, "key")) {
385
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
386
- if (r && r.isReactWarning)
387
- return !1;
388
- }
389
- return e.key !== void 0;
390
- }
391
- function rr(e, r) {
392
- typeof e.ref == "string" && me.current;
393
- }
394
- function tr(e, r) {
395
- {
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
- };
399
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
400
- get: o,
401
- configurable: !0
402
- });
403
- }
404
- }
405
- function nr(e, r) {
406
- {
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
- };
410
- o.isReactWarning = !0, Object.defineProperty(e, "ref", {
411
- get: o,
412
- configurable: !0
413
- });
414
- }
415
- }
416
- var ar = function(e, r, o, b, R, g, y) {
417
- var E = {
418
- // This tag allows us to uniquely identify this as a React Element
419
- $$typeof: f,
420
- // Built-in properties that belong on the element
421
- type: e,
422
- key: r,
423
- ref: o,
424
- props: y,
425
- // Record the component responsible for creating this element.
426
- _owner: g
427
- };
428
- return E._store = {}, Object.defineProperty(E._store, "validated", {
429
- configurable: !1,
430
- enumerable: !1,
431
- writable: !0,
432
- value: !1
433
- }), Object.defineProperty(E, "_self", {
434
- configurable: !1,
435
- enumerable: !1,
436
- writable: !1,
437
- value: b
438
- }), Object.defineProperty(E, "_source", {
439
- configurable: !1,
440
- enumerable: !1,
441
- writable: !1,
442
- value: R
443
- }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
444
- };
445
- function ir(e, r, o, b, R) {
446
- {
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
- if (e && e.defaultProps) {
452
- var j = e.defaultProps;
453
- for (g in j)
454
- y[g] === void 0 && (y[g] = j[g]);
455
- }
456
- if (E || w) {
457
- var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
- E && tr(y, O), w && nr(y, O);
459
- }
460
- return ar(e, E, w, R, b, me.current, y);
461
- }
462
- }
463
- var Q = I.ReactCurrentOwner, xe = I.ReactDebugCurrentFrame;
464
- function $(e) {
465
- if (e) {
466
- var r = e._owner, o = q(e.type, e._source, r ? r.type : null);
467
- xe.setExtraStackFrame(o);
468
- } else
469
- xe.setExtraStackFrame(null);
470
- }
471
- var B;
472
- B = !1;
473
- function ee(e) {
474
- return typeof e == "object" && e !== null && e.$$typeof === f;
475
- }
476
- function ge() {
477
- {
478
- if (Q.current) {
479
- var e = F(Q.current.type);
480
- if (e)
481
- return `
482
-
483
- Check the render method of \`` + e + "`.";
484
- }
485
- return "";
486
- }
487
- }
488
- function lr(e) {
489
- return "";
490
- }
491
- var je = {};
492
- function sr(e) {
493
- {
494
- var r = ge();
495
- if (!r) {
496
- var o = typeof e == "string" ? e : e.displayName || e.name;
497
- o && (r = `
498
-
499
- Check the top-level render call using <` + o + ">.");
500
- }
501
- return r;
502
- }
503
- }
504
- function Te(e, r) {
505
- {
506
- if (!e._store || e._store.validated || e.key != null)
507
- return;
508
- e._store.validated = !0;
509
- var o = sr(r);
510
- if (je[o])
511
- return;
512
- je[o] = !0;
513
- var b = "";
514
- e && e._owner && e._owner !== Q.current && (b = " It was passed a child from " + F(e._owner.type) + "."), $(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, b), $(null);
515
- }
516
- }
517
- function Oe(e, r) {
518
- {
519
- if (typeof e != "object")
520
- return;
521
- if (Z(e))
522
- for (var o = 0; o < e.length; o++) {
523
- var b = e[o];
524
- ee(b) && Te(b, r);
525
- }
526
- else if (ee(e))
527
- e._store && (e._store.validated = !0);
528
- else if (e) {
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
- }
534
- }
535
- }
536
- function ur(e) {
537
- {
538
- var r = e.type;
539
- if (r == null || typeof r == "string")
540
- return;
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
- // Inner props are checked in the reconciler.
546
- r.$$typeof === v))
547
- o = r.propTypes;
548
- else
549
- return;
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
- B = !0;
555
- var R = F(r);
556
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
557
- }
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
- }
560
- }
561
- function or(e) {
562
- {
563
- for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
564
- var b = r[o];
565
- if (b !== "children" && b !== "key") {
566
- $(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), $(null);
567
- break;
568
- }
569
- }
570
- e.ref !== null && ($(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
571
- }
572
- }
573
- var Se = {};
574
- function Pe(e, r, o, b, R, g) {
575
- {
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
- var w = lr();
581
- w ? E += w : E += ge();
582
- var j;
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
- }
585
- var O = ir(e, r, o, R, g);
586
- if (O == null)
587
- return O;
588
- if (y) {
589
- var C = r.children;
590
- if (C !== void 0)
591
- if (b)
592
- if (Z(C)) {
593
- for (var W = 0; W < C.length; W++)
594
- Oe(C[W], e);
595
- Object.freeze && Object.freeze(C);
596
- } else
597
- P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
598
- else
599
- Oe(C, e);
600
- }
601
- if (M.call(r, "key")) {
602
- var A = F(e), k = Object.keys(r).filter(function(br) {
603
- return br !== "key";
604
- }), re = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
605
- if (!Se[A + re]) {
606
- var pr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
607
- P(`A props object containing a "key" prop is being spread into JSX:
608
- let props = %s;
609
- <%s {...props} />
610
- React keys must be passed directly to JSX without using spread:
611
- let props = %s;
612
- <%s key={someKey} {...props} />`, re, A, pr, A), Se[A + re] = !0;
613
- }
614
- }
615
- return e === c ? or(O) : ur(O), O;
616
- }
617
- }
618
- function fr(e, r, o) {
619
- return Pe(e, r, o, !0);
620
- }
621
- function cr(e, r, o) {
622
- return Pe(e, r, o, !1);
623
- }
624
- var dr = cr, vr = fr;
625
- L.Fragment = c, L.jsx = dr, L.jsxs = vr;
626
- }()), L;
627
- }
628
- var Ce;
629
- function Nr() {
630
- return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? G.exports = Lr() : G.exports = Vr()), G.exports;
631
- }
632
- var h = Nr();
633
- const zr = ({
634
- name: u,
635
- control: f,
636
- defaultValue: s,
637
- rules: c,
638
- shouldUnregister: d = !1,
639
- onBlur: t,
640
- onChange: l,
641
- ...p
642
- }) => {
643
- const n = x(
644
- (i) => {
645
- t == null || t(i);
646
- },
647
- [t]
648
- ), a = x(
649
- (i) => {
650
- l == null || l(i);
651
- },
652
- [l]
653
- );
654
- return /* @__PURE__ */ h.jsx(
655
- S,
656
- {
657
- control: f,
658
- defaultValue: s,
659
- name: u,
660
- render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
661
- Er,
662
- {
663
- ref: i,
664
- name: u,
665
- value: _,
666
- onBlur: (T) => {
667
- v(), n(T);
668
- },
669
- onChange: (T) => {
670
- m(T.detail.value), a(T);
671
- },
672
- ...p
673
- }
674
- ),
675
- rules: c,
676
- shouldUnregister: d
677
- }
678
- );
679
- }, Xr = ({
680
- name: u,
681
- control: f,
682
- defaultValue: s,
683
- rules: c,
684
- shouldUnregister: d = !1,
685
- onChange: t,
686
- ...l
687
- }) => {
688
- const p = x(
689
- (n, a) => {
690
- n(a.detail.checked), t == null || t(a);
691
- },
692
- [t]
693
- );
694
- return /* @__PURE__ */ h.jsx(
695
- S,
696
- {
697
- control: f,
698
- defaultValue: s,
699
- name: u,
700
- render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(yr, { ref: n, checked: i, onChange: p.bind(null, a), ...l }),
701
- rules: c,
702
- shouldUnregister: d
703
- }
704
- );
705
- }, De = (u = [], f) => {
706
- let s = null;
707
- return u && f && (s = u.reduce(
708
- (c, d) => {
709
- if ("options" in d) {
710
- const t = De(d.options, f);
711
- t && c.push(t);
712
- }
713
- return "value" in d && d.value === f && c.push(d), c;
714
- },
715
- []
716
- )[0]), s || null;
717
- }, qr = {
718
- mapSelectedOptionWithOptions: De
719
- }, Hr = ({
720
- name: u,
721
- control: f,
722
- defaultValue: s,
723
- rules: c,
724
- shouldUnregister: d = !1,
725
- onBlur: t,
726
- onChange: l,
727
- ...p
728
- }) => {
729
- const n = x(
730
- (i, v) => {
731
- i(), t == null || t(v);
732
- },
733
- [t]
734
- ), a = x(
735
- (i, v) => {
736
- i(v.detail.selectedOption.value), l == null || l(v);
737
- },
738
- [l]
739
- );
740
- return /* @__PURE__ */ h.jsx(
741
- S,
742
- {
743
- control: f,
744
- defaultValue: s,
745
- name: u,
746
- render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
747
- mr,
748
- {
749
- ref: i,
750
- selectedOption: qr.mapSelectedOptionWithOptions(p.options, _),
751
- onBlur: n.bind(null, m),
752
- onChange: a.bind(null, v),
753
- ...p
754
- }
755
- ),
756
- rules: c,
757
- shouldUnregister: d
758
- }
759
- );
760
- }, Zr = ({
761
- name: u,
762
- control: f,
763
- defaultValue: s,
764
- rules: c,
765
- shouldUnregister: d = !1,
766
- onBlur: t,
767
- onChange: l,
768
- ...p
769
- }) => {
770
- const n = x(
771
- (i, v) => {
772
- i(), t == null || t(v);
773
- },
774
- [t]
775
- ), a = x(
776
- (i, v) => {
777
- i(v.detail.value), l == null || l(v);
778
- },
779
- [l]
780
- );
781
- return /* @__PURE__ */ h.jsx(
782
- S,
783
- {
784
- control: f,
785
- defaultValue: s,
786
- name: u,
787
- render: ({ field: { onChange: i, onBlur: v, value: m, ref: _ } }) => /* @__PURE__ */ h.jsx(
788
- Rr,
789
- {
790
- ref: _,
791
- name: u,
792
- value: m,
793
- onBlur: n.bind(null, v),
794
- onChange: a.bind(null, i),
795
- ...p
796
- }
797
- ),
798
- rules: c,
799
- shouldUnregister: d
800
- }
801
- );
802
- }, Qr = ({
803
- name: u,
804
- control: f,
805
- defaultValue: s,
806
- rules: c,
807
- shouldUnregister: d = !1,
808
- onBlur: t,
809
- onChange: l,
810
- ...p
811
- }) => {
812
- const n = x(
813
- (i) => {
814
- t == null || t(i);
815
- },
816
- [t]
817
- ), a = x(
818
- (i) => {
819
- l == null || l(i);
820
- },
821
- [l]
822
- );
823
- return /* @__PURE__ */ h.jsx(
824
- S,
825
- {
826
- control: f,
827
- defaultValue: s,
828
- name: u,
829
- render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
830
- _r,
831
- {
832
- ref: i,
833
- name: u,
834
- value: _,
835
- onBlur: (T) => {
836
- m(), n(T);
837
- },
838
- onChange: (T) => {
839
- v(T.detail.value), a(T);
840
- },
841
- ...p
842
- }
843
- ),
844
- rules: c,
845
- shouldUnregister: d
846
- }
847
- );
848
- }, Br = ({
849
- name: u,
850
- control: f,
851
- onBlur: s,
852
- onChange: c,
853
- defaultValue: d,
854
- rules: t,
855
- shouldUnregister: l = !1,
856
- ...p
857
- }) => {
858
- const n = x(
859
- (i) => {
860
- s == null || s(i);
861
- },
862
- [s]
863
- ), a = x(
864
- (i) => {
865
- c == null || c(i);
866
- },
867
- [c]
868
- );
869
- return /* @__PURE__ */ h.jsx(
870
- S,
871
- {
872
- control: f,
873
- defaultValue: d,
874
- name: u,
875
- render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
876
- xr,
877
- {
878
- ref: i,
879
- value: _,
880
- onBlur: (T) => {
881
- v(), n(T);
882
- },
883
- onChange: (T) => {
884
- m(T.detail.value), a(T);
885
- },
886
- ...p
887
- }
888
- ),
889
- rules: t,
890
- shouldUnregister: l
891
- }
892
- );
893
- }, et = ({
894
- name: u,
895
- control: f,
896
- defaultValue: s,
897
- rules: c,
898
- shouldUnregister: d = !1,
899
- onChange: t,
900
- ...l
901
- }) => {
902
- const p = (a) => a != null && a.length ? a : [], n = x(
903
- (a, i) => {
904
- a(p(i.detail.value)), t == null || t(i);
905
- },
906
- [t]
907
- );
908
- return /* @__PURE__ */ h.jsx(
909
- S,
910
- {
911
- control: f,
912
- defaultValue: s,
913
- name: u,
914
- render: ({ field: { ref: a, onChange: i, value: v } }) => /* @__PURE__ */ h.jsx(
915
- gr,
916
- {
917
- ref: a,
918
- value: p(v),
919
- onChange: n.bind(null, i),
920
- ...l
921
- }
922
- ),
923
- rules: c,
924
- shouldUnregister: d
925
- }
926
- );
927
- }, 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) => {
928
- if (u != null && u.length) {
929
- if ("options" in c) {
930
- const d = ne(c.options, f);
931
- d != null && d.length && s.push(...d);
932
- }
933
- "value" in c && f.find((d) => d === c.value) && s.push(c);
934
- }
935
- return s;
936
- }, []).flat() : [], rt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, tt = ({
937
- name: u,
938
- control: f,
939
- options: s,
940
- defaultValue: c,
941
- rules: d,
942
- onBlur: t,
943
- onChange: l,
944
- shouldUnregister: p = !1,
945
- ...n
946
- }) => {
947
- const a = x(
948
- (v, m) => {
949
- v(), t == null || t(m);
950
- },
951
- [t]
952
- ), i = x(
953
- (v, m) => {
954
- v(te(m.detail.selectedOptions)), l == null || l(m);
955
- },
956
- [l]
957
- );
958
- return /* @__PURE__ */ h.jsx(
959
- S,
960
- {
961
- control: f,
962
- defaultValue: c,
963
- name: u,
964
- render: ({ field: { ref: v, onChange: m, onBlur: _, value: T } }) => /* @__PURE__ */ h.jsx(
965
- jr,
966
- {
967
- ref: v,
968
- options: s,
969
- selectedOptions: ne(s, T),
970
- onBlur: () => a.bind(null, _),
971
- onChange: i.bind(null, m),
972
- ...n
973
- }
974
- ),
975
- rules: d,
976
- shouldUnregister: p
977
- }
978
- );
979
- }, nt = ({
980
- name: u,
981
- control: f,
982
- defaultValue: s,
983
- rules: c,
984
- shouldUnregister: d = !1,
985
- ...t
986
- }) => {
987
- const l = x(
988
- (p, n) => {
989
- p(n.detail);
990
- },
991
- []
992
- );
993
- return /* @__PURE__ */ h.jsx(
994
- S,
995
- {
996
- control: f,
997
- defaultValue: s,
998
- name: u,
999
- render: ({ field: { onChange: p, value: n } }) => /* @__PURE__ */ h.jsx(Tr, { query: n, onChange: l.bind(null, p), ...t }),
1000
- rules: c,
1001
- shouldUnregister: d
1002
- }
1003
- );
1004
- }, at = ({
1005
- name: u,
1006
- control: f,
1007
- onChange: s,
1008
- rules: c,
1009
- defaultValue: d,
1010
- shouldUnregister: t = !1,
1011
- ...l
1012
- }) => {
1013
- const p = x(
1014
- (n, a) => {
1015
- n(a.detail.value), s == null || s(a);
1016
- },
1017
- [s]
1018
- );
1019
- return /* @__PURE__ */ h.jsx(
1020
- S,
1021
- {
1022
- control: f,
1023
- defaultValue: d,
1024
- name: u,
1025
- render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(
1026
- Or,
1027
- {
1028
- items: l.items,
1029
- value: a,
1030
- onChange: p.bind(null, n),
1031
- ...l
1032
- }
1033
- ),
1034
- rules: c,
1035
- shouldUnregister: t
1036
- }
1037
- );
1038
- }, it = ({
1039
- name: u,
1040
- control: f,
1041
- defaultValue: s,
1042
- rules: c,
1043
- shouldUnregister: d = !1,
1044
- onChange: t,
1045
- ...l
1046
- }) => {
1047
- const p = x(
1048
- (n, a) => {
1049
- n(a.detail.resource), t == null || t(a);
1050
- },
1051
- [t]
1052
- );
1053
- return /* @__PURE__ */ h.jsx(
1054
- S,
1055
- {
1056
- control: f,
1057
- defaultValue: s,
1058
- name: u,
1059
- render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
1060
- Sr,
1061
- {
1062
- ref: n,
1063
- resource: i ?? { uri: "" },
1064
- onChange: p.bind(null, a),
1065
- ...l
1066
- }
1067
- ),
1068
- rules: c,
1069
- shouldUnregister: d
1070
- }
1071
- );
1072
- }, lt = ({
1073
- name: u,
1074
- control: f,
1075
- defaultValue: s,
1076
- rules: c,
1077
- shouldUnregister: d = !1,
1078
- onChange: t,
1079
- ...l
1080
- }) => {
1081
- const p = x(
1082
- (n) => {
1083
- t == null || t(n);
1084
- },
1085
- [t]
1086
- );
1087
- return /* @__PURE__ */ h.jsx(
1088
- S,
1089
- {
1090
- control: f,
1091
- defaultValue: s,
1092
- name: u,
1093
- render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(
1094
- Pr,
1095
- {
1096
- value: a,
1097
- onChange: (i) => {
1098
- n(i.detail.value), p(i);
1099
- },
1100
- ...l
1101
- }
1102
- ),
1103
- rules: c,
1104
- shouldUnregister: d
1105
- }
1106
- );
1107
- }, st = ({
1108
- name: u,
1109
- control: f,
1110
- onChange: s,
1111
- defaultValue: c,
1112
- rules: d,
1113
- shouldUnregister: t,
1114
- ...l
1115
- }) => {
1116
- const p = x(
1117
- (n, a) => {
1118
- n([...a.detail.tags]), s == null || s(a);
1119
- },
1120
- [s]
1121
- );
1122
- return /* @__PURE__ */ h.jsx(
1123
- S,
1124
- {
1125
- control: f,
1126
- defaultValue: c,
1127
- name: u,
1128
- render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
1129
- wr,
1130
- {
1131
- ref: n,
1132
- tags: i || [],
1133
- onChange: p.bind(null, a),
1134
- ...l
1135
- }
1136
- ),
1137
- rules: d,
1138
- shouldUnregister: t
1139
- }
1140
- );
1141
- }, ut = ({
1142
- name: u,
1143
- control: f,
1144
- defaultValue: s,
1145
- rules: c,
1146
- shouldUnregister: d,
1147
- onChange: t,
1148
- ...l
1149
- }) => {
1150
- const p = x(
1151
- (n, a) => {
1152
- n(a.detail.filteringText), t == null || t(a);
1153
- },
1154
- [t]
1155
- );
1156
- return /* @__PURE__ */ h.jsx(
1157
- S,
1158
- {
1159
- control: f,
1160
- defaultValue: s,
1161
- name: u,
1162
- render: ({ field: { ref: n, onChange: a, value: i } }) => /* @__PURE__ */ h.jsx(
1163
- kr,
1164
- {
1165
- ref: n,
1166
- filteringText: i,
1167
- onChange: p.bind(null, a),
1168
- ...l
1169
- }
1170
- ),
1171
- rules: c,
1172
- shouldUnregister: d
1173
- }
1174
- );
1175
- }, ot = ({
1176
- name: u,
1177
- control: f,
1178
- defaultValue: s,
1179
- rules: c,
1180
- shouldUnregister: d = !1,
1181
- onBlur: t,
1182
- onChange: l,
1183
- ...p
1184
- }) => {
1185
- const n = x(
1186
- (i, v) => {
1187
- i(), t == null || t(v);
1188
- },
1189
- [t]
1190
- ), a = x(
1191
- (i, v) => {
1192
- i(v.detail.value), l == null || l(v);
1193
- },
1194
- [l]
1195
- );
1196
- return /* @__PURE__ */ h.jsx(
1197
- S,
1198
- {
1199
- control: f,
1200
- defaultValue: s,
1201
- name: u,
1202
- render: ({ field: { ref: i, onChange: v, onBlur: m, value: _ } }) => /* @__PURE__ */ h.jsx(
1203
- Cr,
1204
- {
1205
- ref: i,
1206
- name: u,
1207
- value: _,
1208
- onBlur: n.bind(null, m),
1209
- onChange: a.bind(null, v),
1210
- ...p
1211
- }
1212
- ),
1213
- rules: c,
1214
- shouldUnregister: d
1215
- }
1216
- );
1217
- }, ft = ({
1218
- name: u,
1219
- control: f,
1220
- defaultValue: s,
1221
- rules: c,
1222
- shouldUnregister: d = !1,
1223
- onChange: t,
1224
- ...l
1225
- }) => {
1226
- const p = x(
1227
- (n, a) => {
1228
- n(a.detail.checked), t == null || t(a);
1229
- },
1230
- [t]
1231
- );
1232
- return /* @__PURE__ */ h.jsx(
1233
- S,
1234
- {
1235
- control: f,
1236
- defaultValue: s,
1237
- name: u,
1238
- render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(
1239
- Fr,
1240
- {
1241
- ref: n,
1242
- checked: i,
1243
- name: u,
1244
- onChange: p.bind(null, a),
1245
- ...l
1246
- }
1247
- ),
1248
- rules: c,
1249
- shouldUnregister: d
1250
- }
1251
- );
1252
- }, ct = ({
1253
- name: u,
1254
- control: f,
1255
- defaultValue: s,
1256
- rules: c,
1257
- shouldUnregister: d = !1,
1258
- onBlur: t,
1259
- onChange: l,
1260
- ...p
1261
- }) => {
1262
- const n = x(
1263
- (i, v) => {
1264
- var m;
1265
- (m = v.detail) != null && m.value && i(v.detail.value), t == null || t(v);
1266
- },
1267
- [t]
1268
- ), a = x(
1269
- (i, v) => {
1270
- i(v.detail.value), l == null || l(v);
1271
- },
1272
- [l]
1273
- );
1274
- return /* @__PURE__ */ h.jsx(
1275
- S,
1276
- {
1277
- control: f,
1278
- defaultValue: s,
1279
- name: u,
1280
- render: ({ field: { ref: i, onBlur: v, onChange: m, value: _ } }) => /* @__PURE__ */ h.jsx(
1281
- Dr,
1282
- {
1283
- ref: i,
1284
- name: u,
1285
- value: _ || "",
1286
- onBlur: n.bind(null, v),
1287
- onChange: a.bind(null, m),
1288
- ...p
1289
- }
1290
- ),
1291
- rules: c,
1292
- shouldUnregister: d
1293
- }
1294
- );
1295
- }, dt = ({
1296
- name: u,
1297
- control: f,
1298
- defaultValue: s,
1299
- rules: c,
1300
- shouldUnregister: d = !1,
1301
- onSelectionChange: t,
1302
- ...l
1303
- }) => {
1304
- const p = x(
1305
- (n, a) => {
1306
- n(a.detail.selectedItems), t == null || t(a);
1307
- },
1308
- [t]
1309
- );
1310
- return /* @__PURE__ */ h.jsx(
1311
- S,
1312
- {
1313
- control: f,
1314
- defaultValue: s,
1315
- name: u,
1316
- render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Ar, { selectedItems: a, onSelectionChange: p.bind(null, n), ...l }),
1317
- rules: c,
1318
- shouldUnregister: d
1319
- }
1320
- );
1321
- }, vt = ({
1322
- name: u,
1323
- control: f,
1324
- onChange: s,
1325
- defaultValue: c,
1326
- rules: d,
1327
- shouldUnregister: t = !1,
1328
- ...l
1329
- }) => {
1330
- const p = x(
1331
- (n, a) => {
1332
- n(a.detail.value), s == null || s(a);
1333
- },
1334
- [s]
1335
- );
1336
- return /* @__PURE__ */ h.jsx(
1337
- S,
1338
- {
1339
- control: f,
1340
- defaultValue: c,
1341
- name: u,
1342
- render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Ir, { value: a || "", onChange: p.bind(null, n), ...l }),
1343
- rules: d,
1344
- shouldUnregister: t
1345
- }
1346
- );
1347
- }, pt = ({
1348
- name: u,
1349
- control: f,
1350
- definition: s,
1351
- defaultValue: c,
1352
- handleState: d = !0,
1353
- onAddButtonClick: t,
1354
- onRemoveButtonClick: l,
1355
- ...p
1356
- }) => {
1357
- const { errors: n } = Yr({ control: f }), { fields: a, append: i, remove: v } = Mr({
1358
- name: u,
1359
- control: f
1360
- }), m = hr(
1361
- () => s.map((_) => ({
1362
- errorText: (T, K) => _.label && Ur(n, `${u}.${K}.${_.label.toString().toLowerCase()}.message`),
1363
- ..._
1364
- })),
1365
- [s, n, u]
1366
- );
1367
- return /* @__PURE__ */ h.jsx(
1368
- $r,
1369
- {
1370
- definition: m,
1371
- items: a || [],
1372
- onAddButtonClick: (_) => {
1373
- d && i(c), t == null || t(_, i);
1374
- },
1375
- onRemoveButtonClick: (_) => {
1376
- d && v(_.detail.itemIndex), l == null || l(_, v);
1377
- },
1378
- ...p
1379
- }
1380
- );
1381
- }, bt = ({
1382
- name: u,
1383
- control: f,
1384
- onChange: s,
1385
- defaultValue: c,
1386
- rules: d,
1387
- shouldUnregister: t = !1,
1388
- ...l
1389
- }) => {
1390
- const p = x(
1391
- (n, a) => {
1392
- n(a.detail.value), s == null || s(a);
1393
- },
1394
- [s]
1395
- );
1396
- return /* @__PURE__ */ h.jsx(
1397
- S,
1398
- {
1399
- control: f,
1400
- defaultValue: c,
1401
- name: u,
1402
- render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Wr, { items: l.items, value: a, onChange: p.bind(null, n), ...l }),
1403
- rules: d,
1404
- shouldUnregister: t
1405
- }
1406
- );
1407
- };
1408
- export {
1409
- pt as CAttributeEditor,
1410
- ct as CAutosuggest,
1411
- dt as CCards,
1412
- Xr as CCheckbox,
1413
- vt as CCodeEditor,
1414
- Qr as CDatePicker,
1415
- Br as CDateRangePicker,
1416
- et as CFileUpload,
1417
- zr as CInput,
1418
- tt as CMultiselect,
1419
- nt as CPropertyFilter,
1420
- at as CRadioGroup,
1421
- it as CS3ResourceSelector,
1422
- Hr as CSelect,
1423
- lt as CSlider,
1424
- st as CTagEditor,
1425
- ut as CTextFilter,
1426
- Zr as CTextarea,
1427
- bt as CTiles,
1428
- ot as CTimeInput,
1429
- ft as CToggle,
1430
- rt as MultiSelectUtils,
1431
- qr as SelectUtils
1432
- };
1433
- //# sourceMappingURL=react-hook-form-cloudscape.es.js.map