react-hook-form-cloudscape 1.4.3 → 1.4.4
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.
- package/components/components/index.d.ts +3 -0
- package/components/index.d.ts +3 -0
- package/components/index.js +3 -0
- package/components/index.js.map +1 -1
- package/package.json +1 -1
- package/react-hook-form-cloudscape.es.js +616 -527
- package/react-hook-form-cloudscape.es.js.map +1 -1
- package/react-hook-form-cloudscape.umd.js +10 -10
- package/react-hook-form-cloudscape.umd.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AttributeEditor as
|
|
3
|
-
import { useFormState as
|
|
4
|
-
var G = { exports: {} },
|
|
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
|
|
16
|
-
if (we) return
|
|
15
|
+
function Lr() {
|
|
16
|
+
if (we) return U;
|
|
17
17
|
we = 1;
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
var o, p = {},
|
|
21
|
-
|
|
22
|
-
for (o in
|
|
23
|
-
if (d && d.defaultProps) for (o in
|
|
24
|
-
return { $$typeof: u, type: d, key:
|
|
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
|
|
26
|
+
return U.Fragment = a, U.jsx = n, U.jsxs = n, U;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
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
|
|
39
|
+
function Vr() {
|
|
40
40
|
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var
|
|
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 =
|
|
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,
|
|
52
|
-
|
|
53
|
-
Ie("error", e,
|
|
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,
|
|
56
|
+
function Ie(e, r, s) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
59
|
-
m !== "" && (r += "%s",
|
|
60
|
-
var
|
|
61
|
-
return String(
|
|
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
|
-
|
|
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,
|
|
66
|
+
var $e = !1, We = !1, Ye = !1, Me = !1, Ue = !1, ae;
|
|
67
67
|
ae = Symbol.for("react.module.reference");
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
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,
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
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 !== "" ?
|
|
80
|
+
return m !== "" ? s + "(" + m + ")" : s;
|
|
81
81
|
}
|
|
82
82
|
function ie(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
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
|
|
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
|
|
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
|
|
112
|
-
var
|
|
113
|
-
return ie(
|
|
114
|
-
case
|
|
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
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var m = e,
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
166
|
+
log: D({}, e, {
|
|
167
167
|
value: le
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: D({}, e, {
|
|
170
170
|
value: se
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
172
|
+
warn: D({}, e, {
|
|
173
173
|
value: ue
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
175
|
+
error: D({}, e, {
|
|
176
176
|
value: oe
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: D({}, e, {
|
|
179
179
|
value: fe
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
181
|
+
groupCollapsed: D({}, e, {
|
|
182
182
|
value: ce
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
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,
|
|
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
|
|
200
|
-
X =
|
|
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
|
|
209
|
-
N = new
|
|
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
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
215
|
+
var s = N.get(e);
|
|
216
|
+
if (s !== void 0)
|
|
217
|
+
return s;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var v;
|
|
220
220
|
H = !0;
|
|
221
221
|
var m = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var _;
|
|
224
|
+
_ = z.current, z.current = null, Ne();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
|
-
var
|
|
227
|
+
var y = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
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(
|
|
236
|
+
Reflect.construct(y, []);
|
|
237
237
|
} catch (k) {
|
|
238
|
-
|
|
238
|
+
v = k;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(e, [],
|
|
240
|
+
Reflect.construct(e, [], y);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
y.call();
|
|
244
244
|
} catch (k) {
|
|
245
|
-
|
|
245
|
+
v = k;
|
|
246
246
|
}
|
|
247
|
-
e.call(
|
|
247
|
+
e.call(y.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
252
|
} catch (k) {
|
|
253
|
-
|
|
253
|
+
v = k;
|
|
254
254
|
}
|
|
255
255
|
e();
|
|
256
256
|
}
|
|
257
257
|
} catch (k) {
|
|
258
|
-
if (k &&
|
|
259
|
-
for (var
|
|
260
|
-
`), w =
|
|
261
|
-
`), j =
|
|
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 (
|
|
264
|
+
if (E[j] !== w[O]) {
|
|
265
265
|
if (j !== 1 || O !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (j--, O--, O < 0 ||
|
|
267
|
+
if (j--, O--, O < 0 || E[j] !== w[O]) {
|
|
268
268
|
var C = `
|
|
269
|
-
` +
|
|
269
|
+
` + E[j].replace(" at new ", " at ");
|
|
270
270
|
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, C), C;
|
|
271
271
|
}
|
|
272
272
|
while (j >= 1 && O >= 0);
|
|
@@ -274,19 +274,19 @@ function Mr() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
H = !1, z.current =
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
304
|
+
case c:
|
|
305
305
|
return Ge(e.render);
|
|
306
306
|
case p:
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
var
|
|
307
|
+
return q(e.type, r, s);
|
|
308
|
+
case x: {
|
|
309
|
+
var v = e, m = v._payload, _ = v._init;
|
|
310
310
|
try {
|
|
311
|
-
return
|
|
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 = {},
|
|
319
|
-
function
|
|
318
|
+
var M = Object.prototype.hasOwnProperty, be = {}, he = I.ReactDebugCurrentFrame;
|
|
319
|
+
function J(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var r = e._owner,
|
|
322
|
-
|
|
321
|
+
var r = e._owner, s = q(e.type, e._source, r ? r.type : null);
|
|
322
|
+
he.setExtraStackFrame(s);
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
he.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function ze(e, r,
|
|
326
|
+
function ze(e, r, s, v, m) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
329
|
-
for (var
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
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[
|
|
334
|
-
var w = Error((
|
|
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
|
-
|
|
337
|
+
E = e[y](r, y, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (j) {
|
|
339
|
-
|
|
339
|
+
E = j;
|
|
340
340
|
}
|
|
341
|
-
|
|
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,
|
|
352
|
-
return
|
|
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
|
|
357
|
+
return Ee(e), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Ee(e) {
|
|
363
363
|
return "" + e;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
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)),
|
|
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
|
|
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" &&
|
|
392
|
+
typeof e.ref == "string" && me.current;
|
|
393
393
|
}
|
|
394
394
|
function tr(e, r) {
|
|
395
395
|
{
|
|
396
|
-
var
|
|
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
|
-
|
|
400
|
-
get:
|
|
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
|
|
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
|
-
|
|
411
|
-
get:
|
|
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,
|
|
417
|
-
var
|
|
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:
|
|
424
|
-
props:
|
|
423
|
+
ref: s,
|
|
424
|
+
props: y,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
|
-
_owner:
|
|
426
|
+
_owner: _
|
|
427
427
|
};
|
|
428
|
-
return
|
|
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(
|
|
433
|
+
}), Object.defineProperty(E, "_self", {
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !1,
|
|
437
|
-
value:
|
|
438
|
-
}), Object.defineProperty(
|
|
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(
|
|
443
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
444
444
|
};
|
|
445
|
-
function ir(e, r,
|
|
445
|
+
function ir(e, r, s, v, m) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
for (
|
|
450
|
-
M.call(r,
|
|
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 (
|
|
454
|
-
|
|
453
|
+
for (_ in j)
|
|
454
|
+
y[_] === void 0 && (y[_] = j[_]);
|
|
455
455
|
}
|
|
456
|
-
if (
|
|
456
|
+
if (E || w) {
|
|
457
457
|
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
-
|
|
458
|
+
E && tr(y, O), w && nr(y, O);
|
|
459
459
|
}
|
|
460
|
-
return ar(e,
|
|
460
|
+
return ar(e, E, w, m, v, me.current, y);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var Q = I.ReactCurrentOwner,
|
|
463
|
+
var Q = I.ReactCurrentOwner, xe = I.ReactDebugCurrentFrame;
|
|
464
464
|
function $(e) {
|
|
465
465
|
if (e) {
|
|
466
|
-
var r = e._owner,
|
|
467
|
-
|
|
466
|
+
var r = e._owner, s = q(e.type, e._source, r ? r.type : null);
|
|
467
|
+
xe.setExtraStackFrame(s);
|
|
468
468
|
} else
|
|
469
|
-
|
|
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
|
|
476
|
+
function ge() {
|
|
477
477
|
{
|
|
478
478
|
if (Q.current) {
|
|
479
|
-
var e =
|
|
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 =
|
|
494
|
+
var r = ge();
|
|
495
495
|
if (!r) {
|
|
496
|
-
var
|
|
497
|
-
|
|
496
|
+
var s = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
|
+
s && (r = `
|
|
498
498
|
|
|
499
|
-
Check the top-level render call using <` +
|
|
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
|
|
510
|
-
if (je[
|
|
509
|
+
var s = sr(r);
|
|
510
|
+
if (je[s])
|
|
511
511
|
return;
|
|
512
|
-
je[
|
|
513
|
-
var
|
|
514
|
-
e && e._owner && e._owner !== Q.current && (
|
|
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
|
|
523
|
-
var
|
|
524
|
-
ee(
|
|
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
|
|
532
|
-
ee(
|
|
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
|
|
541
|
+
var s;
|
|
542
542
|
if (typeof r == "function")
|
|
543
|
-
|
|
544
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
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
|
-
|
|
547
|
+
s = r.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
|
-
if (
|
|
551
|
-
var
|
|
552
|
-
ze(
|
|
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 =
|
|
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),
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
566
|
-
$(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
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,
|
|
574
|
+
function Pe(e, r, s, v, m, _) {
|
|
575
575
|
{
|
|
576
|
-
var
|
|
577
|
-
if (!
|
|
578
|
-
var
|
|
579
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
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 ?
|
|
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 = "<" + (
|
|
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,
|
|
585
|
+
var O = ir(e, r, s, m, _);
|
|
586
586
|
if (O == null)
|
|
587
587
|
return O;
|
|
588
|
-
if (
|
|
588
|
+
if (y) {
|
|
589
589
|
var C = r.children;
|
|
590
590
|
if (C !== void 0)
|
|
591
|
-
if (
|
|
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 =
|
|
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 ===
|
|
615
|
+
return e === l ? or(O) : ur(O), O;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function fr(e, r,
|
|
619
|
-
return Pe(e, r,
|
|
618
|
+
function fr(e, r, s) {
|
|
619
|
+
return Pe(e, r, s, !0);
|
|
620
620
|
}
|
|
621
|
-
function cr(e, r,
|
|
622
|
-
return Pe(e, r,
|
|
621
|
+
function cr(e, r, s) {
|
|
622
|
+
return Pe(e, r, s, !1);
|
|
623
623
|
}
|
|
624
624
|
var dr = cr, vr = fr;
|
|
625
|
-
|
|
626
|
-
}()),
|
|
625
|
+
L.Fragment = l, L.jsx = dr, L.jsxs = vr;
|
|
626
|
+
}()), L;
|
|
627
627
|
}
|
|
628
628
|
var Ce;
|
|
629
|
-
function
|
|
630
|
-
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? 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
|
|
633
|
-
const
|
|
634
|
-
name:
|
|
632
|
+
var h = Nr();
|
|
633
|
+
const zr = ({
|
|
634
|
+
name: i,
|
|
635
635
|
control: u,
|
|
636
|
-
onRemoveButtonClick:
|
|
637
|
-
onAddButtonClick:
|
|
636
|
+
onRemoveButtonClick: a,
|
|
637
|
+
onAddButtonClick: l,
|
|
638
638
|
definition: f,
|
|
639
|
-
defaultValue:
|
|
640
|
-
handleState:
|
|
639
|
+
defaultValue: t,
|
|
640
|
+
handleState: n = !0,
|
|
641
641
|
...d
|
|
642
642
|
}) => {
|
|
643
|
-
const { errors:
|
|
644
|
-
name:
|
|
643
|
+
const { errors: c } = Yr({ control: u }), { fields: b, append: o, remove: p } = Mr({
|
|
644
|
+
name: i,
|
|
645
645
|
control: u
|
|
646
|
-
}),
|
|
646
|
+
}), x = hr(
|
|
647
647
|
() => f.map((g) => ({
|
|
648
|
-
errorText: (T, K) => g.label &&
|
|
648
|
+
errorText: (T, K) => g.label && Ur(c, `${i}.${K}.${g.label.toString().toLowerCase()}.message`),
|
|
649
649
|
...g
|
|
650
650
|
})),
|
|
651
|
-
[f,
|
|
651
|
+
[f, c, i]
|
|
652
652
|
);
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
-
|
|
653
|
+
return /* @__PURE__ */ h.jsx(
|
|
654
|
+
Er,
|
|
655
655
|
{
|
|
656
|
-
definition:
|
|
657
|
-
items:
|
|
656
|
+
definition: x,
|
|
657
|
+
items: b || [],
|
|
658
658
|
onRemoveButtonClick: (g) => {
|
|
659
|
-
|
|
659
|
+
n && p(g.detail.itemIndex), a == null || a(g, p);
|
|
660
660
|
},
|
|
661
661
|
onAddButtonClick: (g) => {
|
|
662
|
-
|
|
662
|
+
n && o(t), l == null || l(g, o);
|
|
663
663
|
},
|
|
664
664
|
...d
|
|
665
665
|
}
|
|
666
666
|
);
|
|
667
|
-
},
|
|
668
|
-
name:
|
|
667
|
+
}, Xr = ({
|
|
668
|
+
name: i,
|
|
669
669
|
control: u,
|
|
670
|
-
defaultValue:
|
|
671
|
-
rules:
|
|
670
|
+
defaultValue: a,
|
|
671
|
+
rules: l,
|
|
672
672
|
shouldUnregister: f = !1,
|
|
673
|
-
onBlur:
|
|
674
|
-
onChange:
|
|
673
|
+
onBlur: t,
|
|
674
|
+
onChange: n,
|
|
675
675
|
...d
|
|
676
676
|
}) => {
|
|
677
|
-
const
|
|
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__ */
|
|
688
|
+
return /* @__PURE__ */ h.jsx(
|
|
689
689
|
S,
|
|
690
690
|
{
|
|
691
|
-
name:
|
|
691
|
+
name: i,
|
|
692
692
|
control: u,
|
|
693
|
-
defaultValue:
|
|
694
|
-
rules:
|
|
693
|
+
defaultValue: a,
|
|
694
|
+
rules: l,
|
|
695
695
|
shouldUnregister: f,
|
|
696
|
-
render: ({ field: { ref: o, onBlur: p, onChange:
|
|
697
|
-
|
|
696
|
+
render: ({ field: { ref: o, onBlur: p, onChange: x, value: g } }) => /* @__PURE__ */ h.jsx(
|
|
697
|
+
yr,
|
|
698
698
|
{
|
|
699
699
|
ref: o,
|
|
700
|
-
name:
|
|
700
|
+
name: i,
|
|
701
701
|
value: g || "",
|
|
702
702
|
onBlur: (T) => {
|
|
703
|
-
p(),
|
|
703
|
+
p(), c(T);
|
|
704
704
|
},
|
|
705
705
|
onChange: (T) => {
|
|
706
|
-
|
|
706
|
+
x(T.detail.value), b(T);
|
|
707
707
|
},
|
|
708
708
|
...d
|
|
709
709
|
}
|
|
710
710
|
)
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
|
-
},
|
|
714
|
-
name:
|
|
713
|
+
}, Hr = ({
|
|
714
|
+
name: i,
|
|
715
715
|
control: u,
|
|
716
|
-
onChange:
|
|
717
|
-
...
|
|
716
|
+
onChange: a,
|
|
717
|
+
...l
|
|
718
718
|
}) => {
|
|
719
|
-
const f =
|
|
720
|
-
(
|
|
721
|
-
|
|
719
|
+
const f = R(
|
|
720
|
+
(t, n) => {
|
|
721
|
+
t(n.detail.checked), a == null || a(n);
|
|
722
722
|
},
|
|
723
|
-
[
|
|
723
|
+
[a]
|
|
724
724
|
);
|
|
725
|
-
return /* @__PURE__ */
|
|
725
|
+
return /* @__PURE__ */ h.jsx(
|
|
726
726
|
S,
|
|
727
727
|
{
|
|
728
|
-
name:
|
|
728
|
+
name: i,
|
|
729
729
|
control: u,
|
|
730
|
-
render: ({ field: { ref:
|
|
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
|
-
},
|
|
734
|
-
name:
|
|
733
|
+
}, Zr = ({
|
|
734
|
+
name: i,
|
|
735
735
|
control: u,
|
|
736
|
-
onSelectionChange:
|
|
737
|
-
...
|
|
736
|
+
onSelectionChange: a,
|
|
737
|
+
...l
|
|
738
738
|
}) => {
|
|
739
|
-
const f =
|
|
740
|
-
(
|
|
741
|
-
|
|
739
|
+
const f = R(
|
|
740
|
+
(t, n) => {
|
|
741
|
+
t(n.detail.selectedItems), a == null || a(n);
|
|
742
742
|
},
|
|
743
|
-
[
|
|
743
|
+
[a]
|
|
744
744
|
);
|
|
745
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ h.jsx(
|
|
746
746
|
S,
|
|
747
747
|
{
|
|
748
|
-
name:
|
|
748
|
+
name: i,
|
|
749
749
|
control: u,
|
|
750
|
-
render: ({ field: { onChange:
|
|
750
|
+
render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(Rr, { onSelectionChange: f.bind(null, t), selectedItems: n, ...l })
|
|
751
751
|
}
|
|
752
752
|
);
|
|
753
|
-
},
|
|
754
|
-
name:
|
|
753
|
+
}, Qr = ({
|
|
754
|
+
name: i,
|
|
755
755
|
control: u,
|
|
756
|
-
onChange:
|
|
757
|
-
...
|
|
756
|
+
onChange: a,
|
|
757
|
+
...l
|
|
758
758
|
}) => {
|
|
759
|
-
const f =
|
|
760
|
-
(
|
|
761
|
-
|
|
759
|
+
const f = R(
|
|
760
|
+
(t, n) => {
|
|
761
|
+
t(n.detail.value), a == null || a(n);
|
|
762
762
|
},
|
|
763
|
-
[
|
|
763
|
+
[a]
|
|
764
764
|
);
|
|
765
|
-
return /* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ h.jsx(
|
|
766
766
|
S,
|
|
767
767
|
{
|
|
768
|
-
name:
|
|
768
|
+
name: i,
|
|
769
769
|
control: u,
|
|
770
|
-
render: ({ field: { onChange:
|
|
770
|
+
render: ({ field: { onChange: t, value: n } }) => /* @__PURE__ */ h.jsx(_r, { value: n || "", onChange: f.bind(null, t), ...l })
|
|
771
771
|
}
|
|
772
772
|
);
|
|
773
|
-
},
|
|
774
|
-
name:
|
|
773
|
+
}, Br = ({
|
|
774
|
+
name: i,
|
|
775
775
|
control: u,
|
|
776
|
-
defaultValue:
|
|
777
|
-
rules:
|
|
776
|
+
defaultValue: a,
|
|
777
|
+
rules: l,
|
|
778
778
|
shouldUnregister: f = !1,
|
|
779
|
-
onBlur:
|
|
780
|
-
onChange:
|
|
779
|
+
onBlur: t,
|
|
780
|
+
onChange: n,
|
|
781
781
|
...d
|
|
782
782
|
}) => {
|
|
783
|
-
const
|
|
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__ */
|
|
794
|
+
return /* @__PURE__ */ h.jsx(
|
|
795
795
|
S,
|
|
796
796
|
{
|
|
797
|
-
name:
|
|
797
|
+
name: i,
|
|
798
798
|
control: u,
|
|
799
|
-
defaultValue:
|
|
800
|
-
rules:
|
|
799
|
+
defaultValue: a,
|
|
800
|
+
rules: l,
|
|
801
801
|
shouldUnregister: f,
|
|
802
|
-
render: ({ field: { ref: o, onChange: p, onBlur:
|
|
803
|
-
|
|
802
|
+
render: ({ field: { ref: o, onChange: p, onBlur: x, value: g } }) => /* @__PURE__ */ h.jsx(
|
|
803
|
+
xr,
|
|
804
804
|
{
|
|
805
805
|
ref: o,
|
|
806
|
-
name:
|
|
806
|
+
name: i,
|
|
807
807
|
value: g,
|
|
808
808
|
onBlur: (T) => {
|
|
809
|
-
|
|
809
|
+
x(), c(T);
|
|
810
810
|
},
|
|
811
811
|
onChange: (T) => {
|
|
812
|
-
p(T.detail.value),
|
|
812
|
+
p(T.detail.value), b(T);
|
|
813
813
|
},
|
|
814
814
|
...d
|
|
815
815
|
}
|
|
816
816
|
)
|
|
817
817
|
}
|
|
818
818
|
);
|
|
819
|
-
},
|
|
820
|
-
name:
|
|
819
|
+
}, et = ({
|
|
820
|
+
name: i,
|
|
821
821
|
control: u,
|
|
822
|
-
onBlur:
|
|
823
|
-
onChange:
|
|
822
|
+
onBlur: a,
|
|
823
|
+
onChange: l,
|
|
824
824
|
...f
|
|
825
825
|
}) => {
|
|
826
|
-
const
|
|
826
|
+
const t = R(
|
|
827
827
|
(d) => {
|
|
828
|
-
|
|
828
|
+
a == null || a(d);
|
|
829
829
|
},
|
|
830
|
-
[
|
|
831
|
-
),
|
|
830
|
+
[a]
|
|
831
|
+
), n = R(
|
|
832
832
|
(d) => {
|
|
833
|
-
|
|
833
|
+
l == null || l(d);
|
|
834
834
|
},
|
|
835
|
-
[
|
|
835
|
+
[l]
|
|
836
836
|
);
|
|
837
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ h.jsx(
|
|
838
838
|
S,
|
|
839
839
|
{
|
|
840
|
-
name:
|
|
840
|
+
name: i,
|
|
841
841
|
control: u,
|
|
842
|
-
render: ({ field: { ref: d, onBlur:
|
|
843
|
-
|
|
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
|
-
|
|
848
|
+
c(), t(p);
|
|
849
849
|
},
|
|
850
850
|
onChange: (p) => {
|
|
851
|
-
|
|
851
|
+
b(p.detail.value), n(p);
|
|
852
852
|
},
|
|
853
853
|
...f
|
|
854
854
|
}
|
|
855
855
|
)
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
|
-
},
|
|
859
|
-
name:
|
|
858
|
+
}, rt = ({
|
|
859
|
+
name: i,
|
|
860
860
|
control: u,
|
|
861
|
-
defaultValue:
|
|
862
|
-
rules:
|
|
861
|
+
defaultValue: a,
|
|
862
|
+
rules: l,
|
|
863
863
|
shouldUnregister: f = !1,
|
|
864
|
-
onBlur: a,
|
|
865
864
|
onChange: t,
|
|
866
|
-
...
|
|
865
|
+
...n
|
|
867
866
|
}) => {
|
|
868
|
-
const
|
|
869
|
-
(o) => {
|
|
870
|
-
|
|
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
|
-
[
|
|
873
|
-
)
|
|
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__ */
|
|
913
|
+
return /* @__PURE__ */ h.jsx(
|
|
880
914
|
S,
|
|
881
915
|
{
|
|
882
|
-
name:
|
|
916
|
+
name: i,
|
|
883
917
|
control: u,
|
|
884
|
-
defaultValue:
|
|
885
|
-
rules:
|
|
918
|
+
defaultValue: a,
|
|
919
|
+
rules: l,
|
|
886
920
|
shouldUnregister: f,
|
|
887
|
-
render: ({ field: { ref: o, onBlur: p, onChange:
|
|
888
|
-
|
|
921
|
+
render: ({ field: { ref: o, onBlur: p, onChange: x, value: g } }) => /* @__PURE__ */ h.jsx(
|
|
922
|
+
Tr,
|
|
889
923
|
{
|
|
890
924
|
ref: o,
|
|
891
|
-
name:
|
|
925
|
+
name: i,
|
|
892
926
|
value: g,
|
|
893
927
|
onBlur: (T) => {
|
|
894
|
-
p(),
|
|
928
|
+
p(), c(T);
|
|
895
929
|
},
|
|
896
930
|
onChange: (T) => {
|
|
897
|
-
|
|
931
|
+
x(T.detail.value), b(T);
|
|
898
932
|
},
|
|
899
933
|
...d
|
|
900
934
|
}
|
|
901
935
|
)
|
|
902
936
|
}
|
|
903
937
|
);
|
|
904
|
-
}, te = (
|
|
905
|
-
if (
|
|
906
|
-
if ("options" in
|
|
907
|
-
const f = ne(
|
|
908
|
-
f != null && f.length &&
|
|
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
|
|
944
|
+
"value" in l && u.find((f) => f === l.value) && a.push(l);
|
|
911
945
|
}
|
|
912
|
-
return
|
|
913
|
-
}, []).flat() : [],
|
|
914
|
-
name:
|
|
946
|
+
return a;
|
|
947
|
+
}, []).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
|
|
948
|
+
name: i,
|
|
915
949
|
control: u,
|
|
916
|
-
options:
|
|
917
|
-
defaultValue:
|
|
950
|
+
options: a,
|
|
951
|
+
defaultValue: l,
|
|
918
952
|
rules: f,
|
|
919
|
-
onBlur:
|
|
920
|
-
onChange:
|
|
953
|
+
onBlur: t,
|
|
954
|
+
onChange: n,
|
|
921
955
|
shouldUnregister: d = !1,
|
|
922
|
-
...
|
|
956
|
+
...c
|
|
923
957
|
}) => {
|
|
924
|
-
const
|
|
925
|
-
(p,
|
|
926
|
-
p(),
|
|
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__ */
|
|
969
|
+
return /* @__PURE__ */ h.jsx(
|
|
936
970
|
S,
|
|
937
971
|
{
|
|
938
|
-
name:
|
|
972
|
+
name: i,
|
|
939
973
|
control: u,
|
|
940
|
-
defaultValue:
|
|
974
|
+
defaultValue: l,
|
|
941
975
|
rules: f,
|
|
942
976
|
shouldUnregister: d,
|
|
943
|
-
render: ({ field: { ref: p, onChange:
|
|
944
|
-
|
|
977
|
+
render: ({ field: { ref: p, onChange: x, onBlur: g, value: T } }) => /* @__PURE__ */ h.jsx(
|
|
978
|
+
Or,
|
|
945
979
|
{
|
|
946
980
|
ref: p,
|
|
947
|
-
options:
|
|
948
|
-
onBlur: () =>
|
|
949
|
-
onChange: o.bind(null,
|
|
950
|
-
selectedOptions: ne(
|
|
951
|
-
...
|
|
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
|
-
},
|
|
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:
|
|
960
|
-
...
|
|
1011
|
+
onChange: a,
|
|
1012
|
+
...l
|
|
961
1013
|
}) => {
|
|
962
|
-
const f =
|
|
963
|
-
(
|
|
964
|
-
|
|
1014
|
+
const f = R(
|
|
1015
|
+
(t, n) => {
|
|
1016
|
+
t(n.detail.value), a == null || a(n);
|
|
965
1017
|
},
|
|
966
|
-
[
|
|
1018
|
+
[a]
|
|
967
1019
|
);
|
|
968
|
-
return /* @__PURE__ */
|
|
1020
|
+
return /* @__PURE__ */ h.jsx(
|
|
969
1021
|
S,
|
|
970
1022
|
{
|
|
971
|
-
name:
|
|
1023
|
+
name: i,
|
|
972
1024
|
control: u,
|
|
973
|
-
render: ({ field: { onChange:
|
|
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
|
-
},
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
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
|
|
982
|
-
|
|
1067
|
+
const t = De(f.options, u);
|
|
1068
|
+
t && l.push(t);
|
|
983
1069
|
}
|
|
984
|
-
return "value" in f && f.value === u &&
|
|
1070
|
+
return "value" in f && f.value === u && l.push(f), l;
|
|
985
1071
|
},
|
|
986
1072
|
[]
|
|
987
|
-
)[0]),
|
|
988
|
-
},
|
|
989
|
-
mapSelectedOptionWithOptions:
|
|
990
|
-
},
|
|
991
|
-
name:
|
|
1073
|
+
)[0]), a || null;
|
|
1074
|
+
}, qr = {
|
|
1075
|
+
mapSelectedOptionWithOptions: De
|
|
1076
|
+
}, ut = ({
|
|
1077
|
+
name: i,
|
|
992
1078
|
control: u,
|
|
993
|
-
defaultValue:
|
|
994
|
-
rules:
|
|
1079
|
+
defaultValue: a,
|
|
1080
|
+
rules: l,
|
|
995
1081
|
shouldUnregister: f = !1,
|
|
996
|
-
onBlur:
|
|
997
|
-
onChange:
|
|
1082
|
+
onBlur: t,
|
|
1083
|
+
onChange: n,
|
|
998
1084
|
...d
|
|
999
1085
|
}) => {
|
|
1000
|
-
const
|
|
1086
|
+
const c = R(
|
|
1001
1087
|
(o, p) => {
|
|
1002
|
-
o(),
|
|
1088
|
+
o(), t == null || t(p);
|
|
1003
1089
|
},
|
|
1004
|
-
[
|
|
1005
|
-
),
|
|
1090
|
+
[t]
|
|
1091
|
+
), b = R(
|
|
1006
1092
|
(o, p) => {
|
|
1007
|
-
o(p.detail.selectedOption.value),
|
|
1093
|
+
o(p.detail.selectedOption.value), n == null || n(p);
|
|
1008
1094
|
},
|
|
1009
|
-
[
|
|
1095
|
+
[n]
|
|
1010
1096
|
);
|
|
1011
|
-
return /* @__PURE__ */
|
|
1097
|
+
return /* @__PURE__ */ h.jsx(
|
|
1012
1098
|
S,
|
|
1013
1099
|
{
|
|
1014
|
-
name:
|
|
1100
|
+
name: i,
|
|
1015
1101
|
control: u,
|
|
1016
|
-
defaultValue:
|
|
1017
|
-
rules:
|
|
1102
|
+
defaultValue: a,
|
|
1103
|
+
rules: l,
|
|
1018
1104
|
shouldUnregister: f,
|
|
1019
|
-
render: ({ field: { ref: o, onChange: p, onBlur:
|
|
1020
|
-
|
|
1105
|
+
render: ({ field: { ref: o, onChange: p, onBlur: x, value: g } }) => /* @__PURE__ */ h.jsx(
|
|
1106
|
+
kr,
|
|
1021
1107
|
{
|
|
1022
1108
|
ref: o,
|
|
1023
|
-
selectedOption:
|
|
1024
|
-
onBlur:
|
|
1025
|
-
onChange:
|
|
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
|
-
},
|
|
1032
|
-
name:
|
|
1117
|
+
}, ot = ({
|
|
1118
|
+
name: i,
|
|
1033
1119
|
control: u,
|
|
1034
|
-
defaultValue:
|
|
1035
|
-
rules:
|
|
1120
|
+
defaultValue: a,
|
|
1121
|
+
rules: l,
|
|
1036
1122
|
shouldUnregister: f = !1,
|
|
1037
|
-
onChange:
|
|
1038
|
-
...
|
|
1123
|
+
onChange: t,
|
|
1124
|
+
...n
|
|
1039
1125
|
}) => {
|
|
1040
|
-
const d =
|
|
1041
|
-
(
|
|
1042
|
-
|
|
1126
|
+
const d = R(
|
|
1127
|
+
(c) => {
|
|
1128
|
+
t == null || t(c);
|
|
1043
1129
|
},
|
|
1044
|
-
[
|
|
1130
|
+
[t]
|
|
1045
1131
|
);
|
|
1046
|
-
return /* @__PURE__ */
|
|
1132
|
+
return /* @__PURE__ */ h.jsx(
|
|
1047
1133
|
S,
|
|
1048
1134
|
{
|
|
1049
|
-
name:
|
|
1135
|
+
name: i,
|
|
1050
1136
|
control: u,
|
|
1051
|
-
defaultValue:
|
|
1052
|
-
rules:
|
|
1137
|
+
defaultValue: a,
|
|
1138
|
+
rules: l,
|
|
1053
1139
|
shouldUnregister: f,
|
|
1054
|
-
render: ({ field: { onChange:
|
|
1055
|
-
|
|
1140
|
+
render: ({ field: { onChange: c, value: b } }) => /* @__PURE__ */ h.jsx(
|
|
1141
|
+
Cr,
|
|
1056
1142
|
{
|
|
1057
|
-
value:
|
|
1143
|
+
value: b,
|
|
1058
1144
|
onChange: (o) => {
|
|
1059
|
-
|
|
1145
|
+
c(o.detail.value), d(o);
|
|
1060
1146
|
},
|
|
1061
|
-
...
|
|
1147
|
+
...n
|
|
1062
1148
|
}
|
|
1063
1149
|
)
|
|
1064
1150
|
}
|
|
1065
1151
|
);
|
|
1066
|
-
},
|
|
1067
|
-
name:
|
|
1152
|
+
}, ft = ({
|
|
1153
|
+
name: i,
|
|
1068
1154
|
control: u,
|
|
1069
|
-
onChange:
|
|
1070
|
-
...
|
|
1155
|
+
onChange: a,
|
|
1156
|
+
...l
|
|
1071
1157
|
}) => {
|
|
1072
|
-
const f =
|
|
1073
|
-
(
|
|
1074
|
-
|
|
1158
|
+
const f = R(
|
|
1159
|
+
(t, n) => {
|
|
1160
|
+
t([...n.detail.tags]), a == null || a(n);
|
|
1075
1161
|
},
|
|
1076
|
-
[
|
|
1162
|
+
[a]
|
|
1077
1163
|
);
|
|
1078
|
-
return /* @__PURE__ */
|
|
1164
|
+
return /* @__PURE__ */ h.jsx(
|
|
1079
1165
|
S,
|
|
1080
1166
|
{
|
|
1081
|
-
name:
|
|
1167
|
+
name: i,
|
|
1082
1168
|
control: u,
|
|
1083
|
-
render: ({ field: { ref:
|
|
1084
|
-
|
|
1169
|
+
render: ({ field: { ref: t, onChange: n, value: d } }) => /* @__PURE__ */ h.jsx(
|
|
1170
|
+
Fr,
|
|
1085
1171
|
{
|
|
1086
|
-
ref:
|
|
1172
|
+
ref: t,
|
|
1087
1173
|
tags: d || [],
|
|
1088
|
-
onChange: f.bind(null,
|
|
1089
|
-
...
|
|
1174
|
+
onChange: f.bind(null, n),
|
|
1175
|
+
...l
|
|
1090
1176
|
}
|
|
1091
1177
|
)
|
|
1092
1178
|
}
|
|
1093
1179
|
);
|
|
1094
|
-
},
|
|
1095
|
-
name:
|
|
1180
|
+
}, ct = ({
|
|
1181
|
+
name: i,
|
|
1096
1182
|
control: u,
|
|
1097
|
-
onChange:
|
|
1098
|
-
...
|
|
1183
|
+
onChange: a,
|
|
1184
|
+
...l
|
|
1099
1185
|
}) => {
|
|
1100
|
-
const f =
|
|
1101
|
-
(
|
|
1102
|
-
|
|
1186
|
+
const f = R(
|
|
1187
|
+
(t, n) => {
|
|
1188
|
+
t(n.detail.filteringText), a == null || a(n);
|
|
1103
1189
|
},
|
|
1104
|
-
[
|
|
1190
|
+
[a]
|
|
1105
1191
|
);
|
|
1106
|
-
return /* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ h.jsx(
|
|
1107
1193
|
S,
|
|
1108
1194
|
{
|
|
1109
|
-
name:
|
|
1195
|
+
name: i,
|
|
1110
1196
|
control: u,
|
|
1111
|
-
render: ({ field: { ref:
|
|
1112
|
-
|
|
1197
|
+
render: ({ field: { ref: t, onChange: n, value: d } }) => /* @__PURE__ */ h.jsx(
|
|
1198
|
+
Dr,
|
|
1113
1199
|
{
|
|
1114
|
-
ref:
|
|
1200
|
+
ref: t,
|
|
1115
1201
|
filteringText: d,
|
|
1116
|
-
onChange: f.bind(null,
|
|
1117
|
-
...
|
|
1202
|
+
onChange: f.bind(null, n),
|
|
1203
|
+
...l
|
|
1118
1204
|
}
|
|
1119
1205
|
)
|
|
1120
1206
|
}
|
|
1121
1207
|
);
|
|
1122
|
-
},
|
|
1123
|
-
name:
|
|
1208
|
+
}, dt = ({
|
|
1209
|
+
name: i,
|
|
1124
1210
|
control: u,
|
|
1125
|
-
defaultValue:
|
|
1126
|
-
rules:
|
|
1211
|
+
defaultValue: a,
|
|
1212
|
+
rules: l,
|
|
1127
1213
|
shouldUnregister: f = !1,
|
|
1128
|
-
onBlur:
|
|
1129
|
-
onChange:
|
|
1214
|
+
onBlur: t,
|
|
1215
|
+
onChange: n,
|
|
1130
1216
|
...d
|
|
1131
1217
|
}) => {
|
|
1132
|
-
const
|
|
1218
|
+
const c = R(
|
|
1133
1219
|
(o, p) => {
|
|
1134
|
-
o(),
|
|
1220
|
+
o(), t == null || t(p);
|
|
1135
1221
|
},
|
|
1136
|
-
[
|
|
1137
|
-
),
|
|
1222
|
+
[t]
|
|
1223
|
+
), b = R(
|
|
1138
1224
|
(o, p) => {
|
|
1139
|
-
o(p.detail.value),
|
|
1225
|
+
o(p.detail.value), n == null || n(p);
|
|
1140
1226
|
},
|
|
1141
|
-
[
|
|
1227
|
+
[n]
|
|
1142
1228
|
);
|
|
1143
|
-
return /* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ h.jsx(
|
|
1144
1230
|
S,
|
|
1145
1231
|
{
|
|
1146
|
-
name:
|
|
1232
|
+
name: i,
|
|
1147
1233
|
control: u,
|
|
1148
|
-
defaultValue:
|
|
1149
|
-
rules:
|
|
1234
|
+
defaultValue: a,
|
|
1235
|
+
rules: l,
|
|
1150
1236
|
shouldUnregister: f,
|
|
1151
|
-
render: ({ field: { onChange: o, onBlur: p, value:
|
|
1152
|
-
|
|
1237
|
+
render: ({ field: { onChange: o, onBlur: p, value: x, ref: g } }) => /* @__PURE__ */ h.jsx(
|
|
1238
|
+
Ar,
|
|
1153
1239
|
{
|
|
1154
1240
|
ref: g,
|
|
1155
|
-
name:
|
|
1156
|
-
value:
|
|
1157
|
-
onBlur:
|
|
1158
|
-
onChange:
|
|
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
|
-
},
|
|
1165
|
-
const f =
|
|
1166
|
-
(
|
|
1167
|
-
|
|
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
|
-
[
|
|
1255
|
+
[a]
|
|
1170
1256
|
);
|
|
1171
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ h.jsx(
|
|
1172
1258
|
S,
|
|
1173
1259
|
{
|
|
1174
|
-
name:
|
|
1260
|
+
name: i,
|
|
1175
1261
|
control: u,
|
|
1176
|
-
render: ({ field: { onChange:
|
|
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
|
-
},
|
|
1180
|
-
name:
|
|
1265
|
+
}, pt = ({
|
|
1266
|
+
name: i,
|
|
1181
1267
|
control: u,
|
|
1182
|
-
onBlur:
|
|
1183
|
-
onChange:
|
|
1268
|
+
onBlur: a,
|
|
1269
|
+
onChange: l,
|
|
1184
1270
|
...f
|
|
1185
1271
|
}) => {
|
|
1186
|
-
const
|
|
1187
|
-
(d,
|
|
1188
|
-
d(),
|
|
1272
|
+
const t = R(
|
|
1273
|
+
(d, c) => {
|
|
1274
|
+
d(), a == null || a(c);
|
|
1189
1275
|
},
|
|
1190
|
-
[
|
|
1191
|
-
),
|
|
1192
|
-
(d,
|
|
1193
|
-
d(
|
|
1276
|
+
[a]
|
|
1277
|
+
), n = R(
|
|
1278
|
+
(d, c) => {
|
|
1279
|
+
d(c.detail.value), l == null || l(c);
|
|
1194
1280
|
},
|
|
1195
|
-
[
|
|
1281
|
+
[l]
|
|
1196
1282
|
);
|
|
1197
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ h.jsx(
|
|
1198
1284
|
S,
|
|
1199
1285
|
{
|
|
1200
|
-
name:
|
|
1286
|
+
name: i,
|
|
1201
1287
|
control: u,
|
|
1202
|
-
render: ({ field: { ref: d, onChange:
|
|
1203
|
-
|
|
1288
|
+
render: ({ field: { ref: d, onChange: c, onBlur: b, value: o } }) => /* @__PURE__ */ h.jsx(
|
|
1289
|
+
$r,
|
|
1204
1290
|
{
|
|
1205
|
-
name:
|
|
1291
|
+
name: i,
|
|
1206
1292
|
ref: d,
|
|
1207
1293
|
value: o,
|
|
1208
|
-
onBlur:
|
|
1209
|
-
onChange:
|
|
1294
|
+
onBlur: t.bind(null, b),
|
|
1295
|
+
onChange: n.bind(null, c),
|
|
1210
1296
|
...f
|
|
1211
1297
|
}
|
|
1212
1298
|
)
|
|
1213
1299
|
}
|
|
1214
1300
|
);
|
|
1215
|
-
},
|
|
1216
|
-
name:
|
|
1301
|
+
}, bt = ({
|
|
1302
|
+
name: i,
|
|
1217
1303
|
control: u,
|
|
1218
|
-
onChange:
|
|
1219
|
-
...
|
|
1304
|
+
onChange: a,
|
|
1305
|
+
...l
|
|
1220
1306
|
}) => {
|
|
1221
|
-
const f =
|
|
1222
|
-
(
|
|
1223
|
-
|
|
1307
|
+
const f = R(
|
|
1308
|
+
(t, n) => {
|
|
1309
|
+
t(n.detail.checked), a == null || a(n);
|
|
1224
1310
|
},
|
|
1225
|
-
[
|
|
1311
|
+
[a]
|
|
1226
1312
|
);
|
|
1227
|
-
return /* @__PURE__ */
|
|
1313
|
+
return /* @__PURE__ */ h.jsx(
|
|
1228
1314
|
S,
|
|
1229
1315
|
{
|
|
1230
|
-
name:
|
|
1316
|
+
name: i,
|
|
1231
1317
|
control: u,
|
|
1232
|
-
render: ({ field: { ref:
|
|
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
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
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
|