@choc-ui/chakra-autocomplete 5.6.2 → 5.6.3
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/dist/index.es.js +306 -302
- package/dist/index.js +9 -9
- package/dist/use-autocomplete.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as an from "react";
|
|
2
|
-
import
|
|
2
|
+
import Je, { useMemo as Pr, useRef as Rr, useState as pt, useEffect as Me, useImperativeHandle as oo, useContext as kt, createContext as sn, forwardRef as ao, Children as io, memo as so } from "react";
|
|
3
3
|
import { createContext as lo } from "@chakra-ui/react-utils";
|
|
4
4
|
import { useDisclosure as co, useControllableState as uo, useUpdateEffect as fo, forwardRef as Sr, Popover as po, chakra as go, useMergeRefs as Tt, Flex as wt, Box as ho, Divider as Gt, InputGroup as mo, Input as vo, InputRightElement as bo, Spinner as ln, useMultiStyleConfig as yo, Wrap as So, WrapItem as _o, PopoverAnchor as xo, PopoverContent as ko, Center as To } from "@chakra-ui/react";
|
|
5
5
|
import { pick as wo, isDefined as cn, isEmpty as Rt, runIfFn as Z, isUndefined as Vr, getNextItem as Ro, getPrevItem as Co, getFirstItem as Eo, getLastItem as gt, isObject as Io, omit as qr, memoizedGet as jo, mergeWith as Oo, filterUndefined as un, objectFilter as Ao } from "@chakra-ui/utils";
|
|
@@ -24,7 +24,7 @@ function Bo() {
|
|
|
24
24
|
if (Yt)
|
|
25
25
|
return jr;
|
|
26
26
|
Yt = 1;
|
|
27
|
-
var e =
|
|
27
|
+
var e = Je, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
28
28
|
function d(f, g, h) {
|
|
29
29
|
var v, S = {}, _ = null, T = null;
|
|
30
30
|
h !== void 0 && (_ = "" + h), g.key !== void 0 && (_ = "" + g.key), g.ref !== void 0 && (T = g.ref);
|
|
@@ -50,7 +50,7 @@ var Or = {};
|
|
|
50
50
|
var Ht;
|
|
51
51
|
function $o() {
|
|
52
52
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
53
|
-
var e =
|
|
53
|
+
var e = Je, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, M = "@@iterator";
|
|
54
54
|
function B(n) {
|
|
55
55
|
if (n === null || typeof n != "object")
|
|
56
56
|
return null;
|
|
@@ -62,10 +62,10 @@ function $o() {
|
|
|
62
62
|
{
|
|
63
63
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), x = 1; x < p; x++)
|
|
64
64
|
m[x - 1] = arguments[x];
|
|
65
|
-
|
|
65
|
+
ce("error", n, m);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function ce(n, p, m) {
|
|
69
69
|
{
|
|
70
70
|
var x = W.ReactDebugCurrentFrame, $ = x.getStackAddendum();
|
|
71
71
|
$ !== "" && (p += "%s", m = m.concat([$]));
|
|
@@ -75,16 +75,16 @@ function $o() {
|
|
|
75
75
|
D.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, D);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var ze = !1, cr = !1, ur = !1, Qe = !1, we = !1, Be;
|
|
79
79
|
Be = Symbol.for("react.module.reference");
|
|
80
|
-
function
|
|
81
|
-
return !!(typeof n == "string" || typeof n == "function" || n === a || n === u ||
|
|
80
|
+
function oe(n) {
|
|
81
|
+
return !!(typeof n == "string" || typeof n == "function" || n === a || n === u || we || n === l || n === h || n === v || Qe || n === T || ze || cr || ur || typeof n == "object" && n !== null && (n.$$typeof === _ || n.$$typeof === S || n.$$typeof === d || n.$$typeof === f || n.$$typeof === g || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
85
85
|
n.$$typeof === Be || n.getModuleId !== void 0));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Se(n, p, m) {
|
|
88
88
|
var x = n.displayName;
|
|
89
89
|
if (x)
|
|
90
90
|
return x;
|
|
@@ -94,7 +94,7 @@ function $o() {
|
|
|
94
94
|
function Re(n) {
|
|
95
95
|
return n.displayName || "Context";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ue(n) {
|
|
98
98
|
if (n == null)
|
|
99
99
|
return null;
|
|
100
100
|
if (typeof n.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -124,14 +124,14 @@ function $o() {
|
|
|
124
124
|
var m = n;
|
|
125
125
|
return Re(m._context) + ".Provider";
|
|
126
126
|
case g:
|
|
127
|
-
return
|
|
127
|
+
return Se(n, n.render, "ForwardRef");
|
|
128
128
|
case S:
|
|
129
129
|
var x = n.displayName || null;
|
|
130
|
-
return x !== null ? x :
|
|
130
|
+
return x !== null ? x : ue(n.type) || "Memo";
|
|
131
131
|
case _: {
|
|
132
132
|
var $ = n, D = $._payload, E = $._init;
|
|
133
133
|
try {
|
|
134
|
-
return
|
|
134
|
+
return ue(E(D));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -139,14 +139,14 @@ function $o() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var J = Object.assign, ee = 0, dr, $e, Ce, fr,
|
|
142
|
+
var J = Object.assign, ee = 0, dr, $e, Ce, fr, Ne, Ge, ge;
|
|
143
143
|
function O() {
|
|
144
144
|
}
|
|
145
145
|
O.__reactDisabledLog = !0;
|
|
146
146
|
function Ze() {
|
|
147
147
|
{
|
|
148
148
|
if (ee === 0) {
|
|
149
|
-
dr = console.log, $e = console.info, Ce = console.warn, fr = console.error,
|
|
149
|
+
dr = console.log, $e = console.info, Ce = console.warn, fr = console.error, Ne = console.group, Ge = console.groupCollapsed, ge = console.groupEnd;
|
|
150
150
|
var n = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
@@ -188,10 +188,10 @@ function $o() {
|
|
|
188
188
|
value: fr
|
|
189
189
|
}),
|
|
190
190
|
group: J({}, n, {
|
|
191
|
-
value:
|
|
191
|
+
value: Ne
|
|
192
192
|
}),
|
|
193
193
|
groupCollapsed: J({}, n, {
|
|
194
|
-
value:
|
|
194
|
+
value: Ge
|
|
195
195
|
}),
|
|
196
196
|
groupEnd: J({}, n, {
|
|
197
197
|
value: ge
|
|
@@ -201,30 +201,30 @@ function $o() {
|
|
|
201
201
|
ee < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var N = W.ReactCurrentDispatcher, de;
|
|
205
205
|
function he(n, p, m) {
|
|
206
206
|
{
|
|
207
|
-
if (
|
|
207
|
+
if (de === void 0)
|
|
208
208
|
try {
|
|
209
209
|
throw Error();
|
|
210
210
|
} catch ($) {
|
|
211
211
|
var x = $.stack.trim().match(/\n( *(at )?)/);
|
|
212
|
-
|
|
212
|
+
de = x && x[1] || "";
|
|
213
213
|
}
|
|
214
214
|
return `
|
|
215
|
-
` +
|
|
215
|
+
` + de + n;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var ve = !1,
|
|
218
|
+
var ve = !1, ae;
|
|
219
219
|
{
|
|
220
220
|
var xr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
221
|
-
|
|
221
|
+
ae = new xr();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ve(n, p) {
|
|
224
224
|
if (!n || ve)
|
|
225
225
|
return "";
|
|
226
226
|
{
|
|
227
|
-
var m =
|
|
227
|
+
var m = ae.get(n);
|
|
228
228
|
if (m !== void 0)
|
|
229
229
|
return m;
|
|
230
230
|
}
|
|
@@ -233,7 +233,7 @@ function $o() {
|
|
|
233
233
|
var $ = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
235
|
var D;
|
|
236
|
-
D =
|
|
236
|
+
D = N.current, N.current = null, Ze();
|
|
237
237
|
try {
|
|
238
238
|
if (p) {
|
|
239
239
|
var E = function() {
|
|
@@ -246,63 +246,63 @@ function $o() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(E, []);
|
|
249
|
-
} catch (
|
|
250
|
-
x =
|
|
249
|
+
} catch (fe) {
|
|
250
|
+
x = fe;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(n, [], E);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
E.call();
|
|
256
|
-
} catch (
|
|
257
|
-
x =
|
|
256
|
+
} catch (fe) {
|
|
257
|
+
x = fe;
|
|
258
258
|
}
|
|
259
259
|
n.call(E.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
x =
|
|
264
|
+
} catch (fe) {
|
|
265
|
+
x = fe;
|
|
266
266
|
}
|
|
267
267
|
n();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var C =
|
|
272
|
-
`),
|
|
273
|
-
`), K = C.length - 1, U =
|
|
269
|
+
} catch (fe) {
|
|
270
|
+
if (fe && x && typeof fe.stack == "string") {
|
|
271
|
+
for (var C = fe.stack.split(`
|
|
272
|
+
`), se = x.stack.split(`
|
|
273
|
+
`), K = C.length - 1, U = se.length - 1; K >= 1 && U >= 0 && C[K] !== se[U]; )
|
|
274
274
|
U--;
|
|
275
275
|
for (; K >= 1 && U >= 0; K--, U--)
|
|
276
|
-
if (C[K] !==
|
|
276
|
+
if (C[K] !== se[U]) {
|
|
277
277
|
if (K !== 1 || U !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (K--, U--, U < 0 || C[K] !==
|
|
279
|
+
if (K--, U--, U < 0 || C[K] !== se[U]) {
|
|
280
280
|
var me = `
|
|
281
281
|
` + C[K].replace(" at new ", " at ");
|
|
282
|
-
return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
282
|
+
return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" && ae.set(n, me), me;
|
|
283
283
|
}
|
|
284
284
|
while (K >= 1 && U >= 0);
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
ve = !1,
|
|
289
|
+
ve = !1, N.current = D, _r(), Error.prepareStackTrace = $;
|
|
290
290
|
}
|
|
291
291
|
var je = n ? n.displayName || n.name : "", Oe = je ? he(je) : "";
|
|
292
|
-
return typeof n == "function" &&
|
|
292
|
+
return typeof n == "function" && ae.set(n, Oe), Oe;
|
|
293
293
|
}
|
|
294
294
|
function pr(n, p, m) {
|
|
295
|
-
return
|
|
295
|
+
return Ve(n, !1);
|
|
296
296
|
}
|
|
297
297
|
function gr(n) {
|
|
298
298
|
var p = n.prototype;
|
|
299
299
|
return !!(p && p.isReactComponent);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function ie(n, p, m) {
|
|
302
302
|
if (n == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof n == "function")
|
|
305
|
-
return
|
|
305
|
+
return Ve(n, gr(n));
|
|
306
306
|
if (typeof n == "string")
|
|
307
307
|
return he(n);
|
|
308
308
|
switch (n) {
|
|
@@ -316,11 +316,11 @@ function $o() {
|
|
|
316
316
|
case g:
|
|
317
317
|
return pr(n.render);
|
|
318
318
|
case S:
|
|
319
|
-
return
|
|
319
|
+
return ie(n.type, p, m);
|
|
320
320
|
case _: {
|
|
321
321
|
var x = n, $ = x._payload, D = x._init;
|
|
322
322
|
try {
|
|
323
|
-
return
|
|
323
|
+
return ie(D($), p, m);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -328,9 +328,9 @@ function $o() {
|
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
330
|
var Ee = Object.prototype.hasOwnProperty, hr = {}, er = W.ReactDebugCurrentFrame;
|
|
331
|
-
function
|
|
331
|
+
function Ye(n) {
|
|
332
332
|
if (n) {
|
|
333
|
-
var p = n._owner, m =
|
|
333
|
+
var p = n._owner, m = ie(n.type, n._source, p ? p.type : null);
|
|
334
334
|
er.setExtraStackFrame(m);
|
|
335
335
|
} else
|
|
336
336
|
er.setExtraStackFrame(null);
|
|
@@ -343,19 +343,19 @@ function $o() {
|
|
|
343
343
|
var C = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof n[E] != "function") {
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
346
|
+
var se = Error((x || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw se.name = "Invariant Violation", se;
|
|
348
348
|
}
|
|
349
349
|
C = n[E](p, E, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
350
|
} catch (K) {
|
|
351
351
|
C = K;
|
|
352
352
|
}
|
|
353
|
-
C && !(C instanceof Error) && (
|
|
353
|
+
C && !(C instanceof Error) && (Ye($), R("%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).", x || "React class", m, E, typeof C), Ye(null)), C instanceof Error && !(C.message in hr) && (hr[C.message] = !0, Ye($), R("Failed %s type: %s", m, C.message), Ye(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
var tr = Array.isArray;
|
|
358
|
-
function
|
|
358
|
+
function He(n) {
|
|
359
359
|
return tr(n);
|
|
360
360
|
}
|
|
361
361
|
function Ie(n) {
|
|
@@ -393,7 +393,7 @@ function $o() {
|
|
|
393
393
|
}
|
|
394
394
|
return n.ref !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ue(n) {
|
|
397
397
|
if (Ee.call(n, "key")) {
|
|
398
398
|
var p = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
399
399
|
if (p && p.isReactWarning)
|
|
@@ -403,8 +403,8 @@ function $o() {
|
|
|
403
403
|
}
|
|
404
404
|
function be(n, p) {
|
|
405
405
|
if (typeof n.ref == "string" && b.current && p && b.current.stateNode !== p) {
|
|
406
|
-
var m =
|
|
407
|
-
te[m] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
406
|
+
var m = ue(b.current.type);
|
|
407
|
+
te[m] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ue(b.current.type), n.ref), te[m] = !0);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
function I(n, p) {
|
|
@@ -458,10 +458,10 @@ function $o() {
|
|
|
458
458
|
value: $
|
|
459
459
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function _e(n, p, m, x, $) {
|
|
462
462
|
{
|
|
463
|
-
var D, E = {}, C = null,
|
|
464
|
-
m !== void 0 && (mr(m), C = "" + m),
|
|
463
|
+
var D, E = {}, C = null, se = null;
|
|
464
|
+
m !== void 0 && (mr(m), C = "" + m), Ue(p) && (mr(p.key), C = "" + p.key), ne(p) && (se = p.ref, be(p, $));
|
|
465
465
|
for (D in p)
|
|
466
466
|
Ee.call(p, D) && !w.hasOwnProperty(D) && (E[D] = p[D]);
|
|
467
467
|
if (n && n.defaultProps) {
|
|
@@ -469,30 +469,30 @@ function $o() {
|
|
|
469
469
|
for (D in K)
|
|
470
470
|
E[D] === void 0 && (E[D] = K[D]);
|
|
471
471
|
}
|
|
472
|
-
if (C ||
|
|
472
|
+
if (C || se) {
|
|
473
473
|
var U = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
474
|
-
C && I(E, U),
|
|
474
|
+
C && I(E, U), se && Q(E, U);
|
|
475
475
|
}
|
|
476
|
-
return H(n, C,
|
|
476
|
+
return H(n, C, se, $, x, b.current, E);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
var We = W.ReactCurrentOwner,
|
|
480
|
-
function
|
|
479
|
+
var We = W.ReactCurrentOwner, Xe = W.ReactDebugCurrentFrame;
|
|
480
|
+
function G(n) {
|
|
481
481
|
if (n) {
|
|
482
|
-
var p = n._owner, m =
|
|
483
|
-
|
|
482
|
+
var p = n._owner, m = ie(n.type, n._source, p ? p.type : null);
|
|
483
|
+
Xe.setExtraStackFrame(m);
|
|
484
484
|
} else
|
|
485
|
-
|
|
485
|
+
Xe.setExtraStackFrame(null);
|
|
486
486
|
}
|
|
487
|
-
var
|
|
488
|
-
|
|
487
|
+
var qe;
|
|
488
|
+
qe = !1;
|
|
489
489
|
function pe(n) {
|
|
490
490
|
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
491
491
|
}
|
|
492
492
|
function nr() {
|
|
493
493
|
{
|
|
494
494
|
if (We.current) {
|
|
495
|
-
var n =
|
|
495
|
+
var n = ue(We.current.type);
|
|
496
496
|
if (n)
|
|
497
497
|
return `
|
|
498
498
|
|
|
@@ -527,14 +527,14 @@ Check the top-level render call using <` + m + ">.");
|
|
|
527
527
|
return;
|
|
528
528
|
Fe[m] = !0;
|
|
529
529
|
var x = "";
|
|
530
|
-
n && n._owner && n._owner !== We.current && (x = " It was passed a child from " +
|
|
530
|
+
n && n._owner && n._owner !== We.current && (x = " It was passed a child from " + ue(n._owner.type) + "."), G(n), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), G(null);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function xe(n, p) {
|
|
534
534
|
{
|
|
535
535
|
if (typeof n != "object")
|
|
536
536
|
return;
|
|
537
|
-
if (
|
|
537
|
+
if (He(n))
|
|
538
538
|
for (var m = 0; m < n.length; m++) {
|
|
539
539
|
var x = n[m];
|
|
540
540
|
pe(x) && $r(x, p);
|
|
@@ -564,11 +564,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
564
564
|
else
|
|
565
565
|
return;
|
|
566
566
|
if (m) {
|
|
567
|
-
var x =
|
|
567
|
+
var x = ue(p);
|
|
568
568
|
rr(m, n.props, "prop", x, n);
|
|
569
|
-
} else if (p.PropTypes !== void 0 && !
|
|
570
|
-
|
|
571
|
-
var $ =
|
|
569
|
+
} else if (p.PropTypes !== void 0 && !qe) {
|
|
570
|
+
qe = !0;
|
|
571
|
+
var $ = ue(p);
|
|
572
572
|
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
|
|
573
573
|
}
|
|
574
574
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -579,47 +579,47 @@ Check the top-level render call using <` + m + ">.");
|
|
|
579
579
|
for (var p = Object.keys(n.props), m = 0; m < p.length; m++) {
|
|
580
580
|
var x = p[m];
|
|
581
581
|
if (x !== "children" && x !== "key") {
|
|
582
|
-
|
|
582
|
+
G(n), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), G(null);
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
n.ref !== null && (
|
|
586
|
+
n.ref !== null && (G(n), R("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
var Wr = {};
|
|
590
590
|
function Fr(n, p, m, x, $, D) {
|
|
591
591
|
{
|
|
592
|
-
var E =
|
|
592
|
+
var E = oe(n);
|
|
593
593
|
if (!E) {
|
|
594
594
|
var C = "";
|
|
595
595
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
-
var
|
|
597
|
-
|
|
596
|
+
var se = Tr();
|
|
597
|
+
se ? C += se : C += nr();
|
|
598
598
|
var K;
|
|
599
|
-
n === null ? K = "null" :
|
|
599
|
+
n === null ? K = "null" : He(n) ? K = "array" : n !== void 0 && n.$$typeof === r ? (K = "<" + (ue(n.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : K = typeof n, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, C);
|
|
600
600
|
}
|
|
601
|
-
var U =
|
|
601
|
+
var U = _e(n, p, m, $, D);
|
|
602
602
|
if (U == null)
|
|
603
603
|
return U;
|
|
604
604
|
if (E) {
|
|
605
605
|
var me = p.children;
|
|
606
606
|
if (me !== void 0)
|
|
607
607
|
if (x)
|
|
608
|
-
if (
|
|
608
|
+
if (He(me)) {
|
|
609
609
|
for (var je = 0; je < me.length; je++)
|
|
610
|
-
|
|
610
|
+
xe(me[je], n);
|
|
611
611
|
Object.freeze && Object.freeze(me);
|
|
612
612
|
} else
|
|
613
613
|
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
xe(me, n);
|
|
616
616
|
}
|
|
617
617
|
if (Ee.call(p, "key")) {
|
|
618
|
-
var Oe =
|
|
618
|
+
var Oe = ue(n), fe = Object.keys(p).filter(function(ot) {
|
|
619
619
|
return ot !== "key";
|
|
620
|
-
}), ar =
|
|
620
|
+
}), ar = fe.length > 0 ? "{key: someKey, " + fe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
621
621
|
if (!Wr[Oe + ar]) {
|
|
622
|
-
var Lr =
|
|
622
|
+
var Lr = fe.length > 0 ? "{" + fe.join(": ..., ") + ": ...}" : "{}";
|
|
623
623
|
R(`A props object containing a "key" prop is being spread into JSX:
|
|
624
624
|
let props = %s;
|
|
625
625
|
<%s {...props} />
|
|
@@ -778,23 +778,23 @@ function Ho(e) {
|
|
|
778
778
|
defaultIsOpen: B,
|
|
779
779
|
disableFilter: W,
|
|
780
780
|
isLoading: R = !1,
|
|
781
|
-
placement:
|
|
782
|
-
restoreOnBlurIfEmpty:
|
|
781
|
+
placement: ce = "bottom",
|
|
782
|
+
restoreOnBlurIfEmpty: ze = !f,
|
|
783
783
|
shouldRenderSuggestions: cr = () => !0,
|
|
784
784
|
submitKeys: ur = [],
|
|
785
785
|
suggestWhenEmpty: Qe,
|
|
786
|
-
value:
|
|
787
|
-
values: Be =
|
|
786
|
+
value: we,
|
|
787
|
+
values: Be = we ? typeof we == "string" ? [we] : [...we] : void 0
|
|
788
788
|
} = e;
|
|
789
789
|
f = f || (S ? !0 : e.freeSolo);
|
|
790
|
-
const { isOpen:
|
|
791
|
-
isOpen:
|
|
792
|
-
onClose:
|
|
790
|
+
const { isOpen: oe, onClose: Se, onOpen: Re } = co({ defaultIsOpen: B }), ue = Pr(() => Z(e.children, {
|
|
791
|
+
isOpen: oe,
|
|
792
|
+
onClose: Se,
|
|
793
793
|
onOpen: Re
|
|
794
|
-
}), [e.children,
|
|
795
|
-
let
|
|
796
|
-
S ?
|
|
797
|
-
const [ge, O] = pt(
|
|
794
|
+
}), [e.children, oe]), J = Pr(() => Lo(ue), [ue]), ee = Rr(null), dr = Rr(null), $e = Rr(null), Ce = Rr(null), [fr, Ne] = pt(!1);
|
|
795
|
+
let Ge = "";
|
|
796
|
+
S ? Ge = "" : Vr(P) ? Vr(Be) || (Ge = Be[0]) : Ge = P[0];
|
|
797
|
+
const [ge, O] = pt(Ge ?? ""), Ze = Pr(() => W ? J : J.filter(
|
|
798
798
|
(b) => b.fixed || Z(
|
|
799
799
|
e.filter || Do,
|
|
800
800
|
ge,
|
|
@@ -803,12 +803,12 @@ function Ho(e) {
|
|
|
803
803
|
) || fr
|
|
804
804
|
).filter(
|
|
805
805
|
(b, w) => v ? b.fixed || w < v : !0
|
|
806
|
-
), [ge, J, fr, v, W]), _r = a ? [{ value: ge, noFilter: !0, creatable: !0 }] : [],
|
|
806
|
+
), [ge, J, fr, v, W]), _r = a ? [{ value: ge, noFilter: !0, creatable: !0 }] : [], N = Pr(() => [...Ze, ..._r], [Ze, _r]), [de, he] = uo({
|
|
807
807
|
defaultValue: P.map((b) => b == null ? void 0 : b.toString()),
|
|
808
808
|
value: Be,
|
|
809
809
|
onChange: (b) => {
|
|
810
|
-
const w =
|
|
811
|
-
(re) =>
|
|
810
|
+
const w = N.find((re) => re.value === b[0]), z = b.map(
|
|
811
|
+
(re) => N.find((te) => te.value === re)
|
|
812
812
|
);
|
|
813
813
|
Z(
|
|
814
814
|
e.onChange,
|
|
@@ -816,32 +816,36 @@ function Ho(e) {
|
|
|
816
816
|
S ? z : w
|
|
817
817
|
);
|
|
818
818
|
}
|
|
819
|
-
})
|
|
819
|
+
});
|
|
820
|
+
Me(() => {
|
|
821
|
+
N.length === 0 && !u && oe && Se();
|
|
822
|
+
}, [N.length, u, oe]);
|
|
823
|
+
const [ve, ae] = pt(
|
|
820
824
|
r ? (mr = J[0]) == null ? void 0 : mr.value : null
|
|
821
|
-
), xr = e.maxSelections ||
|
|
822
|
-
|
|
823
|
-
|
|
825
|
+
), xr = e.maxSelections || de.length + 1, Ve = N.findIndex((b) => b.value === ve), pr = Ro(
|
|
826
|
+
Ve,
|
|
827
|
+
N,
|
|
824
828
|
!!e.rollNavigation
|
|
825
829
|
), gr = Co(
|
|
826
|
-
|
|
827
|
-
|
|
830
|
+
Ve,
|
|
831
|
+
N,
|
|
828
832
|
!!e.rollNavigation
|
|
829
|
-
),
|
|
833
|
+
), ie = Eo(N), Ee = gt(N), hr = !N.some(
|
|
830
834
|
(b) => b.value === ve
|
|
831
835
|
);
|
|
832
|
-
|
|
836
|
+
Me(() => {
|
|
833
837
|
var b;
|
|
834
|
-
hr &&
|
|
838
|
+
hr && ae(
|
|
835
839
|
r ? (b = J[0]) == null ? void 0 : b.value : null
|
|
836
840
|
);
|
|
837
841
|
}, [hr]), fo(() => {
|
|
838
|
-
r &&
|
|
839
|
-
}, [ge,
|
|
842
|
+
r && ae(ie == null ? void 0 : ie.value);
|
|
843
|
+
}, [ge, ie == null ? void 0 : ie.value]), Me(() => {
|
|
840
844
|
var b;
|
|
841
|
-
!
|
|
842
|
-
}, [
|
|
843
|
-
|
|
844
|
-
}, [
|
|
845
|
+
!oe && r && ae((b = J[0]) == null ? void 0 : b.value);
|
|
846
|
+
}, [oe]), Me(() => {
|
|
847
|
+
oe && h && Ne(!0);
|
|
848
|
+
}, [oe, h, Ne]), Me(() => {
|
|
845
849
|
const b = J.find((w) => w.value === ve);
|
|
846
850
|
Z(e.onOptionFocus, {
|
|
847
851
|
item: b,
|
|
@@ -851,54 +855,54 @@ function Ho(e) {
|
|
|
851
855
|
}, [ve, e.onOptionFocus]);
|
|
852
856
|
const er = (b) => {
|
|
853
857
|
var re, te;
|
|
854
|
-
const w =
|
|
855
|
-
O(() => S ? "" : z ?? ""), !
|
|
858
|
+
const w = N.find((ne) => ne.value === b), z = (w == null ? void 0 : w.label) || (w == null ? void 0 : w.value);
|
|
859
|
+
O(() => S ? "" : z ?? ""), !de.includes(b) && de.length < xr && he((ne) => S ? [...ne, b] : [b]), S && ((re = ee.current) == null || re.focus()), e.focusInputOnSelect && ((te = ee.current) == null || te.focus()), Z(e.onSelectOption, {
|
|
856
860
|
item: w,
|
|
857
861
|
selectMethod: Ce.current,
|
|
858
862
|
isNewInput: w == null ? void 0 : w.creatable
|
|
859
863
|
}), w != null && w.creatable && Z(e.onCreateOption, {
|
|
860
864
|
item: qr(w, ["noFilter"]),
|
|
861
865
|
selectMethod: Ce.current
|
|
862
|
-
}), _ &&
|
|
863
|
-
},
|
|
866
|
+
}), _ && Se();
|
|
867
|
+
}, Ye = (b, w) => {
|
|
864
868
|
var te;
|
|
865
869
|
he((ne) => {
|
|
866
|
-
const
|
|
867
|
-
return Z(e.onTagRemoved, b,
|
|
870
|
+
const Ue = J.find((be) => be.value === b);
|
|
871
|
+
return Z(e.onTagRemoved, b, Ue, ne), ne.filter((be) => be !== b);
|
|
868
872
|
});
|
|
869
873
|
const z = J.find((ne) => ne.value === b), re = (z == null ? void 0 : z.label) || (z == null ? void 0 : z.value);
|
|
870
874
|
ge === re && O(""), w && ((te = ee.current) == null || te.focus());
|
|
871
875
|
}, rr = (b) => {
|
|
872
876
|
var w;
|
|
873
877
|
he([]), b && ((w = ee.current) == null || w.focus());
|
|
874
|
-
}, tr = S ?
|
|
878
|
+
}, tr = S ? de.map((b) => {
|
|
875
879
|
var w;
|
|
876
880
|
return {
|
|
877
881
|
label: ((w = J.find((z) => z.value === (b == null ? void 0 : b.toString()))) == null ? void 0 : w.label) || b,
|
|
878
|
-
onRemove: () =>
|
|
882
|
+
onRemove: () => Ye(b)
|
|
879
883
|
};
|
|
880
884
|
}) : [];
|
|
881
|
-
return
|
|
885
|
+
return Me(() => {
|
|
882
886
|
Z(M, { tags: tr });
|
|
883
|
-
}, [
|
|
887
|
+
}, [de]), {
|
|
884
888
|
autoCompleteProps: e,
|
|
885
|
-
children:
|
|
886
|
-
filteredList:
|
|
889
|
+
children: ue,
|
|
890
|
+
filteredList: N,
|
|
887
891
|
filteredResults: Ze,
|
|
888
892
|
focusedValue: ve,
|
|
889
893
|
defaultEmptyStateProps: d,
|
|
890
894
|
getEmptyStateProps: (b) => {
|
|
891
|
-
if (
|
|
895
|
+
if (N.every((z) => z.noFilter) && u && !a)
|
|
892
896
|
return typeof u == "boolean" ? b : Z(u, { query: ge });
|
|
893
897
|
},
|
|
894
898
|
getGroupProps: (b) => {
|
|
895
|
-
const w = Vo(b.children,
|
|
899
|
+
const w = Vo(b.children, N);
|
|
896
900
|
return {
|
|
897
901
|
divider: {
|
|
898
|
-
hasFirstChild: No(b.children,
|
|
902
|
+
hasFirstChild: No(b.children, ie),
|
|
899
903
|
hasLastChild: Go(
|
|
900
904
|
b.children,
|
|
901
|
-
gt(
|
|
905
|
+
gt(N.filter((z) => Vr(z == null ? void 0 : z.noFilter)))
|
|
902
906
|
)
|
|
903
907
|
},
|
|
904
908
|
group: {
|
|
@@ -907,7 +911,7 @@ function Ho(e) {
|
|
|
907
911
|
};
|
|
908
912
|
},
|
|
909
913
|
getInputProps: (b, w) => {
|
|
910
|
-
const { onBlur: z, onChange: re, onFocus: te, onKeyDown: ne, variant:
|
|
914
|
+
const { onBlur: z, onChange: re, onFocus: te, onKeyDown: ne, variant: Ue, ...be } = b;
|
|
911
915
|
return {
|
|
912
916
|
wrapper: {
|
|
913
917
|
ref: dr,
|
|
@@ -921,59 +925,59 @@ function Ho(e) {
|
|
|
921
925
|
input: {
|
|
922
926
|
isReadOnly: g,
|
|
923
927
|
onFocus: (I) => {
|
|
924
|
-
Z(te, I), e.openOnFocus && !g && Re(), e.selectOnFocus && I.target.select(), h &&
|
|
928
|
+
Z(te, I), e.openOnFocus && !g && Re(), e.selectOnFocus && I.target.select(), h && Ne(!0);
|
|
925
929
|
},
|
|
926
930
|
onBlur: (I) => {
|
|
927
|
-
var
|
|
931
|
+
var _e, We;
|
|
928
932
|
Z(z, I);
|
|
929
|
-
const Q = I.relatedTarget === ($e == null ? void 0 : $e.current) || ((
|
|
933
|
+
const Q = I.relatedTarget === ($e == null ? void 0 : $e.current) || ((_e = $e.current) == null ? void 0 : _e.contains(I.relatedTarget)), H = (We = dr.current) == null ? void 0 : We.contains(
|
|
930
934
|
I.relatedTarget
|
|
931
935
|
);
|
|
932
|
-
if (!Q && !H && (o &&
|
|
933
|
-
const
|
|
934
|
-
(pe) => pe.value ===
|
|
935
|
-
),
|
|
936
|
-
O(
|
|
936
|
+
if (!Q && !H && (o && Se(), !de.includes(I.target.value) && ze)) {
|
|
937
|
+
const Xe = gt(de), G = J.find(
|
|
938
|
+
(pe) => pe.value === Xe
|
|
939
|
+
), qe = (G == null ? void 0 : G.label) || (G == null ? void 0 : G.value) || "";
|
|
940
|
+
O(qe);
|
|
937
941
|
}
|
|
938
942
|
},
|
|
939
943
|
onChange: (I) => {
|
|
940
944
|
const Q = I.target.value;
|
|
941
945
|
Z(re, I), O(Q);
|
|
942
946
|
const H = Rt(Q);
|
|
943
|
-
Z(cr, Q) && (!H || Qe) ? Re() :
|
|
947
|
+
Z(cr, Q) && (!H || Qe) ? Re() : Se(), Ne(!1);
|
|
944
948
|
},
|
|
945
949
|
onKeyDown: (I) => {
|
|
946
|
-
var
|
|
950
|
+
var _e;
|
|
947
951
|
Z(ne, I), Ce.current = "keyboard";
|
|
948
|
-
const { key: Q } = I, H =
|
|
952
|
+
const { key: Q } = I, H = N[Ve];
|
|
949
953
|
if (["Enter", ...ur].includes(Q)) {
|
|
950
|
-
H && !(H != null && H.disabled) &&
|
|
954
|
+
H && !(H != null && H.disabled) && oe ? er(H == null ? void 0 : H.value) : (_e = ee.current) == null || _e.focus(), I.preventDefault();
|
|
951
955
|
return;
|
|
952
956
|
}
|
|
953
957
|
if (Q === "ArrowDown") {
|
|
954
|
-
|
|
958
|
+
oe ? ae(pr == null ? void 0 : pr.value) : Re(), I.preventDefault();
|
|
955
959
|
return;
|
|
956
960
|
}
|
|
957
961
|
if (Q === "ArrowUp") {
|
|
958
|
-
|
|
962
|
+
oe ? ae(gr == null ? void 0 : gr.value) : Re(), I.preventDefault();
|
|
959
963
|
return;
|
|
960
964
|
}
|
|
961
965
|
if (Q === "Tab") {
|
|
962
|
-
|
|
966
|
+
oe && H && !(H != null && H.disabled) ? er(H == null ? void 0 : H.value) : Se();
|
|
963
967
|
return;
|
|
964
968
|
}
|
|
965
969
|
if (Q === "Home") {
|
|
966
|
-
|
|
970
|
+
ae(ie == null ? void 0 : ie.value), I.preventDefault();
|
|
967
971
|
return;
|
|
968
972
|
}
|
|
969
973
|
if (Q === "End") {
|
|
970
|
-
|
|
974
|
+
ae(Ee == null ? void 0 : Ee.value), I.preventDefault();
|
|
971
975
|
return;
|
|
972
976
|
}
|
|
973
|
-
Q === "Escape" && (
|
|
977
|
+
Q === "Escape" && (Se(), I.preventDefault());
|
|
974
978
|
},
|
|
975
979
|
value: ge,
|
|
976
|
-
variant: S ? "unstyled" :
|
|
980
|
+
variant: S ? "unstyled" : Ue,
|
|
977
981
|
...be
|
|
978
982
|
}
|
|
979
983
|
};
|
|
@@ -985,15 +989,15 @@ function Ho(e) {
|
|
|
985
989
|
_focus: re,
|
|
986
990
|
children: te,
|
|
987
991
|
disabled: ne,
|
|
988
|
-
label:
|
|
992
|
+
label: Ue,
|
|
989
993
|
value: be,
|
|
990
994
|
fixed: I,
|
|
991
995
|
getValue: Q = Ct,
|
|
992
996
|
onClick: H,
|
|
993
|
-
onMouseOver:
|
|
997
|
+
onMouseOver: _e,
|
|
994
998
|
sx: We,
|
|
995
|
-
...
|
|
996
|
-
} = b,
|
|
999
|
+
...Xe
|
|
1000
|
+
} = b, G = w ? be : (Tr = Q(be)) == null ? void 0 : Tr.toString(), qe = G === ve, pe = N.findIndex((Fe) => Fe.value === G) >= 0, nr = te || Ue || G;
|
|
997
1001
|
return {
|
|
998
1002
|
item: {
|
|
999
1003
|
...typeof nr != "string" || !l ? { children: nr } : {
|
|
@@ -1001,15 +1005,15 @@ function Ho(e) {
|
|
|
1001
1005
|
__html: Fo(nr, ge)
|
|
1002
1006
|
}
|
|
1003
1007
|
},
|
|
1004
|
-
"aria-selected":
|
|
1008
|
+
"aria-selected": de.includes(G),
|
|
1005
1009
|
"aria-disabled": ne,
|
|
1006
1010
|
_disabled: { opacity: 0.4, cursor: "not-allowed", userSelect: "none" },
|
|
1007
1011
|
onClick: (Fe) => {
|
|
1008
1012
|
var wr;
|
|
1009
|
-
Z(H, Fe), ne ? (wr = ee.current) == null || wr.focus() : er(
|
|
1013
|
+
Z(H, Fe), ne ? (wr = ee.current) == null || wr.focus() : er(G);
|
|
1010
1014
|
},
|
|
1011
1015
|
onMouseOver: (Fe) => {
|
|
1012
|
-
Z(
|
|
1016
|
+
Z(_e, Fe), ae(G), Ce.current = "mouse";
|
|
1013
1017
|
},
|
|
1014
1018
|
sx: {
|
|
1015
1019
|
...We,
|
|
@@ -1021,32 +1025,32 @@ function Ho(e) {
|
|
|
1021
1025
|
}
|
|
1022
1026
|
}
|
|
1023
1027
|
},
|
|
1024
|
-
...
|
|
1028
|
+
...qe && (re || Mo()),
|
|
1025
1029
|
...I && z,
|
|
1026
|
-
...
|
|
1030
|
+
...Xe
|
|
1027
1031
|
},
|
|
1028
1032
|
root: {
|
|
1029
1033
|
isValidSuggestion: pe,
|
|
1030
|
-
value:
|
|
1034
|
+
value: G
|
|
1031
1035
|
}
|
|
1032
1036
|
};
|
|
1033
1037
|
},
|
|
1034
1038
|
inputRef: ee,
|
|
1035
1039
|
interactionRef: Ce,
|
|
1036
1040
|
isLoading: R,
|
|
1037
|
-
isOpen:
|
|
1041
|
+
isOpen: oe,
|
|
1038
1042
|
itemList: J,
|
|
1039
1043
|
listRef: $e,
|
|
1040
|
-
onClose:
|
|
1044
|
+
onClose: Se,
|
|
1041
1045
|
onOpen: Re,
|
|
1042
|
-
placement:
|
|
1046
|
+
placement: ce,
|
|
1043
1047
|
query: ge,
|
|
1044
|
-
removeItem:
|
|
1048
|
+
removeItem: Ye,
|
|
1045
1049
|
resetItems: rr,
|
|
1046
1050
|
setQuery: O,
|
|
1047
1051
|
tags: tr,
|
|
1048
|
-
value:
|
|
1049
|
-
values:
|
|
1052
|
+
value: we,
|
|
1053
|
+
values: de
|
|
1050
1054
|
};
|
|
1051
1055
|
}
|
|
1052
1056
|
const Uo = Sr(
|
|
@@ -1096,13 +1100,13 @@ const Xo = Sr(
|
|
|
1096
1100
|
getItemProps: a,
|
|
1097
1101
|
interactionRef: l
|
|
1098
1102
|
} = lr(), u = Rr(), d = Tt(r, u), f = a(e), { isValidSuggestion: g, value: h } = f.root, v = o === h;
|
|
1099
|
-
|
|
1103
|
+
Me(() => {
|
|
1100
1104
|
var M;
|
|
1101
1105
|
v && l.current === "keyboard" && ((M = u == null ? void 0 : u.current) == null || M.scrollIntoView({
|
|
1102
1106
|
behavior: "smooth",
|
|
1103
1107
|
block: "nearest"
|
|
1104
1108
|
}));
|
|
1105
|
-
}, [v, l]),
|
|
1109
|
+
}, [v, l]), Me(() => {
|
|
1106
1110
|
typeof h != "string" && console.warn("wow"), typeof h != "string" && Vr(e.getValue) && console.error(
|
|
1107
1111
|
"You must define the `getValue` prop, when an Item's value is not a string"
|
|
1108
1112
|
);
|
|
@@ -1198,24 +1202,24 @@ const Qo = {
|
|
|
1198
1202
|
hidePlaceholder: S,
|
|
1199
1203
|
..._
|
|
1200
1204
|
} = e, { value: T } = _;
|
|
1201
|
-
|
|
1205
|
+
Me(() => {
|
|
1202
1206
|
if (f !== void 0 && (typeof f == "string" || f instanceof String)) {
|
|
1203
|
-
const Qe = g.find((Be) => Be.value === f),
|
|
1204
|
-
d(
|
|
1207
|
+
const Qe = g.find((Be) => Be.value === f), we = Qe === void 0 ? f : Qe.label;
|
|
1208
|
+
d(we);
|
|
1205
1209
|
}
|
|
1206
|
-
}, [f]),
|
|
1210
|
+
}, [f]), Me(() => {
|
|
1207
1211
|
T !== void 0 && (typeof T == "string" || T instanceof String) && d(T);
|
|
1208
1212
|
}, [T]);
|
|
1209
1213
|
const P = yo("Input", e);
|
|
1210
1214
|
let { wrapper: M, input: B } = l(_, P);
|
|
1211
|
-
const { ref: W, ...R } = M,
|
|
1215
|
+
const { ref: W, ...R } = M, ce = Tt(r, a), ze = Z(h, { tags: u });
|
|
1212
1216
|
S && (B = {
|
|
1213
1217
|
...B,
|
|
1214
|
-
placeholder: Array.isArray(
|
|
1218
|
+
placeholder: Array.isArray(ze) && ze.length ? void 0 : B.placeholder
|
|
1215
1219
|
});
|
|
1216
|
-
const cr = /* @__PURE__ */ k.jsx(Xt, { isInvalid: v, ...B, ref:
|
|
1217
|
-
|
|
1218
|
-
/* @__PURE__ */ k.jsx(_o, { as: Xt, ...B, ref:
|
|
1220
|
+
const cr = /* @__PURE__ */ k.jsx(Xt, { isInvalid: v, ...B, ref: ce }), ur = /* @__PURE__ */ k.jsxs(So, { "aria-invalid": v, ...R, ref: W, children: [
|
|
1221
|
+
ze,
|
|
1222
|
+
/* @__PURE__ */ k.jsx(_o, { as: Xt, ...B, ref: ce })
|
|
1219
1223
|
] });
|
|
1220
1224
|
return /* @__PURE__ */ k.jsx(xo, { children: o.multiple ? ur : cr });
|
|
1221
1225
|
}
|
|
@@ -1255,15 +1259,15 @@ function br(e, ...r) {
|
|
|
1255
1259
|
var ta = (e) => typeof e == "function", Ur = { exports: {} };
|
|
1256
1260
|
Ur.exports;
|
|
1257
1261
|
(function(e, r) {
|
|
1258
|
-
var o = 200, a = "__lodash_hash_undefined__", l = 800, u = 16, d = 9007199254740991, f = "[object Arguments]", g = "[object Array]", h = "[object AsyncFunction]", v = "[object Boolean]", S = "[object Date]", _ = "[object Error]", T = "[object Function]", P = "[object GeneratorFunction]", M = "[object Map]", B = "[object Number]", W = "[object Null]", R = "[object Object]",
|
|
1259
|
-
O[
|
|
1260
|
-
var Ze = typeof zr == "object" && zr && zr.Object === Object && zr, _r = typeof self == "object" && self && self.Object === Object && self,
|
|
1262
|
+
var o = 200, a = "__lodash_hash_undefined__", l = 800, u = 16, d = 9007199254740991, f = "[object Arguments]", g = "[object Array]", h = "[object AsyncFunction]", v = "[object Boolean]", S = "[object Date]", _ = "[object Error]", T = "[object Function]", P = "[object GeneratorFunction]", M = "[object Map]", B = "[object Number]", W = "[object Null]", R = "[object Object]", ce = "[object Proxy]", ze = "[object RegExp]", cr = "[object Set]", ur = "[object String]", Qe = "[object Undefined]", we = "[object WeakMap]", Be = "[object ArrayBuffer]", oe = "[object DataView]", Se = "[object Float32Array]", Re = "[object Float64Array]", ue = "[object Int8Array]", J = "[object Int16Array]", ee = "[object Int32Array]", dr = "[object Uint8Array]", $e = "[object Uint8ClampedArray]", Ce = "[object Uint16Array]", fr = "[object Uint32Array]", Ne = /[\\^$.*+?()[\]{}|]/g, Ge = /^\[object .+?Constructor\]$/, ge = /^(?:0|[1-9]\d*)$/, O = {};
|
|
1263
|
+
O[Se] = O[Re] = O[ue] = O[J] = O[ee] = O[dr] = O[$e] = O[Ce] = O[fr] = !0, O[f] = O[g] = O[Be] = O[v] = O[oe] = O[S] = O[_] = O[T] = O[M] = O[B] = O[R] = O[ze] = O[cr] = O[ur] = O[we] = !1;
|
|
1264
|
+
var Ze = typeof zr == "object" && zr && zr.Object === Object && zr, _r = typeof self == "object" && self && self.Object === Object && self, N = Ze || _r || Function("return this")(), de = r && !r.nodeType && r, he = de && !0 && e && !e.nodeType && e, ve = he && he.exports === de, ae = ve && Ze.process, xr = function() {
|
|
1261
1265
|
try {
|
|
1262
1266
|
var t = he && he.require && he.require("util").types;
|
|
1263
|
-
return t ||
|
|
1267
|
+
return t || ae && ae.binding && ae.binding("util");
|
|
1264
1268
|
} catch {
|
|
1265
1269
|
}
|
|
1266
|
-
}(),
|
|
1270
|
+
}(), Ve = xr && xr.isTypedArray;
|
|
1267
1271
|
function pr(t, s, c) {
|
|
1268
1272
|
switch (c.length) {
|
|
1269
1273
|
case 0:
|
|
@@ -1282,7 +1286,7 @@ Ur.exports;
|
|
|
1282
1286
|
y[c] = s(c);
|
|
1283
1287
|
return y;
|
|
1284
1288
|
}
|
|
1285
|
-
function
|
|
1289
|
+
function ie(t) {
|
|
1286
1290
|
return function(s) {
|
|
1287
1291
|
return t(s);
|
|
1288
1292
|
};
|
|
@@ -1295,20 +1299,20 @@ Ur.exports;
|
|
|
1295
1299
|
return t(s(c));
|
|
1296
1300
|
};
|
|
1297
1301
|
}
|
|
1298
|
-
var er = Array.prototype,
|
|
1302
|
+
var er = Array.prototype, Ye = Function.prototype, rr = Object.prototype, tr = N["__core-js_shared__"], He = Ye.toString, Ie = rr.hasOwnProperty, Cr = function() {
|
|
1299
1303
|
var t = /[^.]+$/.exec(tr && tr.keys && tr.keys.IE_PROTO || "");
|
|
1300
1304
|
return t ? "Symbol(src)_1." + t : "";
|
|
1301
|
-
}(), kr = rr.toString, mr =
|
|
1302
|
-
"^" +
|
|
1303
|
-
), w = ve ?
|
|
1305
|
+
}(), kr = rr.toString, mr = He.call(Object), b = RegExp(
|
|
1306
|
+
"^" + He.call(Ie).replace(Ne, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1307
|
+
), w = ve ? N.Buffer : void 0, z = N.Symbol, re = N.Uint8Array;
|
|
1304
1308
|
w && w.allocUnsafe;
|
|
1305
|
-
var te = hr(Object.getPrototypeOf, Object), ne = Object.create,
|
|
1309
|
+
var te = hr(Object.getPrototypeOf, Object), ne = Object.create, Ue = rr.propertyIsEnumerable, be = er.splice, I = z ? z.toStringTag : void 0, Q = function() {
|
|
1306
1310
|
try {
|
|
1307
1311
|
var t = at(Object, "defineProperty");
|
|
1308
1312
|
return t({}, "", {}), t;
|
|
1309
1313
|
} catch {
|
|
1310
1314
|
}
|
|
1311
|
-
}(), H = w ? w.isBuffer : void 0,
|
|
1315
|
+
}(), H = w ? w.isBuffer : void 0, _e = Math.max, We = Date.now, Xe = at(N, "Map"), G = at(Object, "create"), qe = /* @__PURE__ */ function() {
|
|
1312
1316
|
function t() {
|
|
1313
1317
|
}
|
|
1314
1318
|
return function(s) {
|
|
@@ -1329,7 +1333,7 @@ Ur.exports;
|
|
|
1329
1333
|
}
|
|
1330
1334
|
}
|
|
1331
1335
|
function nr() {
|
|
1332
|
-
this.__data__ =
|
|
1336
|
+
this.__data__ = G ? G(null) : {}, this.size = 0;
|
|
1333
1337
|
}
|
|
1334
1338
|
function Tr(t) {
|
|
1335
1339
|
var s = this.has(t) && delete this.__data__[t];
|
|
@@ -1337,7 +1341,7 @@ Ur.exports;
|
|
|
1337
1341
|
}
|
|
1338
1342
|
function Fe(t) {
|
|
1339
1343
|
var s = this.__data__;
|
|
1340
|
-
if (
|
|
1344
|
+
if (G) {
|
|
1341
1345
|
var c = s[t];
|
|
1342
1346
|
return c === a ? void 0 : c;
|
|
1343
1347
|
}
|
|
@@ -1345,14 +1349,14 @@ Ur.exports;
|
|
|
1345
1349
|
}
|
|
1346
1350
|
function wr(t) {
|
|
1347
1351
|
var s = this.__data__;
|
|
1348
|
-
return
|
|
1352
|
+
return G ? s[t] !== void 0 : Ie.call(s, t);
|
|
1349
1353
|
}
|
|
1350
1354
|
function $r(t, s) {
|
|
1351
1355
|
var c = this.__data__;
|
|
1352
|
-
return this.size += this.has(t) ? 0 : 1, c[t] =
|
|
1356
|
+
return this.size += this.has(t) ? 0 : 1, c[t] = G && s === void 0 ? a : s, this;
|
|
1353
1357
|
}
|
|
1354
1358
|
pe.prototype.clear = nr, pe.prototype.delete = Tr, pe.prototype.get = Fe, pe.prototype.has = wr, pe.prototype.set = $r;
|
|
1355
|
-
function
|
|
1359
|
+
function xe(t) {
|
|
1356
1360
|
var s = -1, c = t == null ? 0 : t.length;
|
|
1357
1361
|
for (this.clear(); ++s < c; ) {
|
|
1358
1362
|
var y = t[s];
|
|
@@ -1380,7 +1384,7 @@ Ur.exports;
|
|
|
1380
1384
|
var c = this.__data__, y = je(c, t);
|
|
1381
1385
|
return y < 0 ? (++this.size, c.push([t, s])) : c[y][1] = s, this;
|
|
1382
1386
|
}
|
|
1383
|
-
|
|
1387
|
+
xe.prototype.clear = Zr, xe.prototype.delete = et, xe.prototype.get = Wr, xe.prototype.has = Fr, xe.prototype.set = rt;
|
|
1384
1388
|
function or(t) {
|
|
1385
1389
|
var s = -1, c = t == null ? 0 : t.length;
|
|
1386
1390
|
for (this.clear(); ++s < c; ) {
|
|
@@ -1391,7 +1395,7 @@ Ur.exports;
|
|
|
1391
1395
|
function tt() {
|
|
1392
1396
|
this.size = 0, this.__data__ = {
|
|
1393
1397
|
hash: new pe(),
|
|
1394
|
-
map: new (
|
|
1398
|
+
map: new (Xe || xe)(),
|
|
1395
1399
|
string: new pe()
|
|
1396
1400
|
};
|
|
1397
1401
|
}
|
|
@@ -1411,11 +1415,11 @@ Ur.exports;
|
|
|
1411
1415
|
}
|
|
1412
1416
|
or.prototype.clear = tt, or.prototype.delete = nt, or.prototype.get = n, or.prototype.has = p, or.prototype.set = m;
|
|
1413
1417
|
function x(t) {
|
|
1414
|
-
var s = this.__data__ = new
|
|
1418
|
+
var s = this.__data__ = new xe(t);
|
|
1415
1419
|
this.size = s.size;
|
|
1416
1420
|
}
|
|
1417
1421
|
function $() {
|
|
1418
|
-
this.__data__ = new
|
|
1422
|
+
this.__data__ = new xe(), this.size = 0;
|
|
1419
1423
|
}
|
|
1420
1424
|
function D(t) {
|
|
1421
1425
|
var s = this.__data__, c = s.delete(t);
|
|
@@ -1427,24 +1431,24 @@ Ur.exports;
|
|
|
1427
1431
|
function C(t) {
|
|
1428
1432
|
return this.__data__.has(t);
|
|
1429
1433
|
}
|
|
1430
|
-
function
|
|
1434
|
+
function se(t, s) {
|
|
1431
1435
|
var c = this.__data__;
|
|
1432
|
-
if (c instanceof
|
|
1436
|
+
if (c instanceof xe) {
|
|
1433
1437
|
var y = c.__data__;
|
|
1434
|
-
if (!
|
|
1438
|
+
if (!Xe || y.length < o - 1)
|
|
1435
1439
|
return y.push([t, s]), this.size = ++c.size, this;
|
|
1436
1440
|
c = this.__data__ = new or(y);
|
|
1437
1441
|
}
|
|
1438
1442
|
return c.set(t, s), this.size = c.size, this;
|
|
1439
1443
|
}
|
|
1440
|
-
x.prototype.clear = $, x.prototype.delete = D, x.prototype.get = E, x.prototype.has = C, x.prototype.set =
|
|
1444
|
+
x.prototype.clear = $, x.prototype.delete = D, x.prototype.get = E, x.prototype.has = C, x.prototype.set = se;
|
|
1441
1445
|
function K(t, s) {
|
|
1442
|
-
var c = lt(t), y = !c && st(t), A = !c && !y && Ft(t),
|
|
1446
|
+
var c = lt(t), y = !c && st(t), A = !c && !y && Ft(t), V = !c && !y && !A && Mt(t), X = c || y || A || V, F = X ? gr(t.length, String) : [], q = F.length;
|
|
1443
1447
|
for (var Ae in t)
|
|
1444
1448
|
X && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1445
1449
|
(Ae == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1446
1450
|
A && (Ae == "offset" || Ae == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1447
|
-
|
|
1451
|
+
V && (Ae == "buffer" || Ae == "byteLength" || Ae == "byteOffset") || // Skip index properties.
|
|
1448
1452
|
$t(Ae, q)) || F.push(Ae);
|
|
1449
1453
|
return F;
|
|
1450
1454
|
}
|
|
@@ -1469,7 +1473,7 @@ Ur.exports;
|
|
|
1469
1473
|
writable: !0
|
|
1470
1474
|
}) : t[s] = c;
|
|
1471
1475
|
}
|
|
1472
|
-
var
|
|
1476
|
+
var fe = Dn();
|
|
1473
1477
|
function ar(t) {
|
|
1474
1478
|
return t == null ? t === void 0 ? Qe : W : I && I in Object(t) ? zn(t) : Un(t);
|
|
1475
1479
|
}
|
|
@@ -1479,7 +1483,7 @@ Ur.exports;
|
|
|
1479
1483
|
function ot(t) {
|
|
1480
1484
|
if (!vr(t) || Yn(t))
|
|
1481
1485
|
return !1;
|
|
1482
|
-
var s = ut(t) ? b :
|
|
1486
|
+
var s = ut(t) ? b : Ge;
|
|
1483
1487
|
return s.test(Jn(t));
|
|
1484
1488
|
}
|
|
1485
1489
|
function In(t) {
|
|
@@ -1494,27 +1498,27 @@ Ur.exports;
|
|
|
1494
1498
|
return c;
|
|
1495
1499
|
}
|
|
1496
1500
|
function Bt(t, s, c, y, A) {
|
|
1497
|
-
t !== s &&
|
|
1498
|
-
if (A || (A = new x()), vr(
|
|
1501
|
+
t !== s && fe(s, function(V, X) {
|
|
1502
|
+
if (A || (A = new x()), vr(V))
|
|
1499
1503
|
On(t, s, X, c, Bt, y, A);
|
|
1500
1504
|
else {
|
|
1501
|
-
var F = y ? y(it(t, X),
|
|
1502
|
-
F === void 0 && (F =
|
|
1505
|
+
var F = y ? y(it(t, X), V, X + "", t, s, A) : void 0;
|
|
1506
|
+
F === void 0 && (F = V), U(t, X, F);
|
|
1503
1507
|
}
|
|
1504
1508
|
}, Dt);
|
|
1505
1509
|
}
|
|
1506
|
-
function On(t, s, c, y, A,
|
|
1510
|
+
function On(t, s, c, y, A, V, X) {
|
|
1507
1511
|
var F = it(t, c), q = it(s, c), Ae = X.get(q);
|
|
1508
1512
|
if (Ae) {
|
|
1509
1513
|
U(t, c, Ae);
|
|
1510
1514
|
return;
|
|
1511
1515
|
}
|
|
1512
|
-
var ye =
|
|
1516
|
+
var ye = V ? V(F, q, c + "", t, s, X) : void 0, Ir = ye === void 0;
|
|
1513
1517
|
if (Ir) {
|
|
1514
1518
|
var dt = lt(q), ft = !dt && Ft(q), Nt = !dt && !ft && Mt(q);
|
|
1515
1519
|
ye = q, dt || ft || Nt ? lt(F) ? ye = F : Qn(F) ? ye = Fn(F) : ft ? (Ir = !1, ye = Bn(q)) : Nt ? (Ir = !1, ye = Wn(q)) : ye = [] : Zn(q) || st(q) ? (ye = F, st(F) ? ye = eo(F) : (!vr(F) || ut(F)) && (ye = Nn(q))) : Ir = !1;
|
|
1516
1520
|
}
|
|
1517
|
-
Ir && (X.set(q, ye), A(ye, q, y,
|
|
1521
|
+
Ir && (X.set(q, ye), A(ye, q, y, V, X), X.delete(q)), U(t, c, ye);
|
|
1518
1522
|
}
|
|
1519
1523
|
function An(t, s) {
|
|
1520
1524
|
return qn(Xn(t, s, zt), t + "");
|
|
@@ -1547,27 +1551,27 @@ Ur.exports;
|
|
|
1547
1551
|
function Ln(t, s, c, y) {
|
|
1548
1552
|
var A = !c;
|
|
1549
1553
|
c || (c = {});
|
|
1550
|
-
for (var
|
|
1551
|
-
var F = s[
|
|
1554
|
+
for (var V = -1, X = s.length; ++V < X; ) {
|
|
1555
|
+
var F = s[V], q = void 0;
|
|
1552
1556
|
q === void 0 && (q = t[F]), A ? Oe(c, F, q) : me(c, F, q);
|
|
1553
1557
|
}
|
|
1554
1558
|
return c;
|
|
1555
1559
|
}
|
|
1556
1560
|
function Mn(t) {
|
|
1557
1561
|
return An(function(s, c) {
|
|
1558
|
-
var y = -1, A = c.length,
|
|
1559
|
-
for (
|
|
1562
|
+
var y = -1, A = c.length, V = A > 1 ? c[A - 1] : void 0, X = A > 2 ? c[2] : void 0;
|
|
1563
|
+
for (V = t.length > 3 && typeof V == "function" ? (A--, V) : void 0, X && Gn(c[0], c[1], X) && (V = A < 3 ? void 0 : V, A = 1), s = Object(s); ++y < A; ) {
|
|
1560
1564
|
var F = c[y];
|
|
1561
|
-
F && t(s, F, y,
|
|
1565
|
+
F && t(s, F, y, V);
|
|
1562
1566
|
}
|
|
1563
1567
|
return s;
|
|
1564
1568
|
});
|
|
1565
1569
|
}
|
|
1566
1570
|
function Dn(t) {
|
|
1567
1571
|
return function(s, c, y) {
|
|
1568
|
-
for (var A = -1,
|
|
1572
|
+
for (var A = -1, V = Object(s), X = y(s), F = X.length; F--; ) {
|
|
1569
1573
|
var q = X[++A];
|
|
1570
|
-
if (c(
|
|
1574
|
+
if (c(V[q], q, V) === !1)
|
|
1571
1575
|
break;
|
|
1572
1576
|
}
|
|
1573
1577
|
return s;
|
|
@@ -1592,7 +1596,7 @@ Ur.exports;
|
|
|
1592
1596
|
return y && (s ? t[I] = c : delete t[I]), A;
|
|
1593
1597
|
}
|
|
1594
1598
|
function Nn(t) {
|
|
1595
|
-
return typeof t.constructor == "function" && !Wt(t) ?
|
|
1599
|
+
return typeof t.constructor == "function" && !Wt(t) ? qe(te(t)) : {};
|
|
1596
1600
|
}
|
|
1597
1601
|
function $t(t, s) {
|
|
1598
1602
|
var c = typeof t;
|
|
@@ -1626,8 +1630,8 @@ Ur.exports;
|
|
|
1626
1630
|
return kr.call(t);
|
|
1627
1631
|
}
|
|
1628
1632
|
function Xn(t, s, c) {
|
|
1629
|
-
return s =
|
|
1630
|
-
for (var y = arguments, A = -1,
|
|
1633
|
+
return s = _e(s === void 0 ? t.length - 1 : s, 0), function() {
|
|
1634
|
+
for (var y = arguments, A = -1, V = _e(y.length - s, 0), X = Array(V); ++A < V; )
|
|
1631
1635
|
X[A] = y[s + A];
|
|
1632
1636
|
A = -1;
|
|
1633
1637
|
for (var F = Array(s + 1); ++A < s; )
|
|
@@ -1655,7 +1659,7 @@ Ur.exports;
|
|
|
1655
1659
|
function Jn(t) {
|
|
1656
1660
|
if (t != null) {
|
|
1657
1661
|
try {
|
|
1658
|
-
return
|
|
1662
|
+
return He.call(t);
|
|
1659
1663
|
} catch {
|
|
1660
1664
|
}
|
|
1661
1665
|
try {
|
|
@@ -1671,7 +1675,7 @@ Ur.exports;
|
|
|
1671
1675
|
var st = Lr(/* @__PURE__ */ function() {
|
|
1672
1676
|
return arguments;
|
|
1673
1677
|
}()) ? Lr : function(t) {
|
|
1674
|
-
return Er(t) && Ie.call(t, "callee") && !
|
|
1678
|
+
return Er(t) && Ie.call(t, "callee") && !Ue.call(t, "callee");
|
|
1675
1679
|
}, lt = Array.isArray;
|
|
1676
1680
|
function ct(t) {
|
|
1677
1681
|
return t != null && Lt(t.length) && !ut(t);
|
|
@@ -1684,7 +1688,7 @@ Ur.exports;
|
|
|
1684
1688
|
if (!vr(t))
|
|
1685
1689
|
return !1;
|
|
1686
1690
|
var s = ar(t);
|
|
1687
|
-
return s == T || s == P || s == h || s ==
|
|
1691
|
+
return s == T || s == P || s == h || s == ce;
|
|
1688
1692
|
}
|
|
1689
1693
|
function Lt(t) {
|
|
1690
1694
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= d;
|
|
@@ -1703,9 +1707,9 @@ Ur.exports;
|
|
|
1703
1707
|
if (s === null)
|
|
1704
1708
|
return !0;
|
|
1705
1709
|
var c = Ie.call(s, "constructor") && s.constructor;
|
|
1706
|
-
return typeof c == "function" && c instanceof c &&
|
|
1710
|
+
return typeof c == "function" && c instanceof c && He.call(c) == mr;
|
|
1707
1711
|
}
|
|
1708
|
-
var Mt =
|
|
1712
|
+
var Mt = Ve ? ie(Ve) : In;
|
|
1709
1713
|
function eo(t) {
|
|
1710
1714
|
return Ln(t, Dt(t));
|
|
1711
1715
|
}
|
|
@@ -1745,7 +1749,7 @@ function It(e) {
|
|
|
1745
1749
|
};
|
|
1746
1750
|
}
|
|
1747
1751
|
var Gr = (...e) => (r) => e.reduce((o, a) => a(o), r);
|
|
1748
|
-
function
|
|
1752
|
+
function ke(e, r) {
|
|
1749
1753
|
return (o) => {
|
|
1750
1754
|
const a = { property: o, scale: e };
|
|
1751
1755
|
return a.transform = It({
|
|
@@ -1960,14 +1964,14 @@ var ya = (e) => {
|
|
|
1960
1964
|
return o && (l[o] = 1), a && (l[a] = 1), l;
|
|
1961
1965
|
}
|
|
1962
1966
|
}, i = {
|
|
1963
|
-
borderWidths:
|
|
1964
|
-
borderStyles:
|
|
1965
|
-
colors:
|
|
1966
|
-
borders:
|
|
1967
|
-
gradients:
|
|
1968
|
-
radii:
|
|
1969
|
-
space:
|
|
1970
|
-
spaceT:
|
|
1967
|
+
borderWidths: ke("borderWidths"),
|
|
1968
|
+
borderStyles: ke("borderStyles"),
|
|
1969
|
+
colors: ke("colors"),
|
|
1970
|
+
borders: ke("borders"),
|
|
1971
|
+
gradients: ke("gradients", j.gradient),
|
|
1972
|
+
radii: ke("radii", j.px),
|
|
1973
|
+
space: ke("space", Gr(j.vh, j.px)),
|
|
1974
|
+
spaceT: ke("space", Gr(j.vh, j.px)),
|
|
1971
1975
|
degreeT(e) {
|
|
1972
1976
|
return { property: e, transform: j.degree };
|
|
1973
1977
|
},
|
|
@@ -1983,11 +1987,11 @@ var ya = (e) => {
|
|
|
1983
1987
|
propT(e, r) {
|
|
1984
1988
|
return { property: e, transform: r };
|
|
1985
1989
|
},
|
|
1986
|
-
sizes:
|
|
1987
|
-
sizesT:
|
|
1988
|
-
shadows:
|
|
1990
|
+
sizes: ke("sizes", Gr(j.vh, j.px)),
|
|
1991
|
+
sizesT: ke("sizes", Gr(j.vh, j.fraction)),
|
|
1992
|
+
shadows: ke("shadows"),
|
|
1989
1993
|
logical: sa,
|
|
1990
|
-
blur:
|
|
1994
|
+
blur: ke("blur", j.blur)
|
|
1991
1995
|
}, Yr = {
|
|
1992
1996
|
background: i.colors("background"),
|
|
1993
1997
|
backgroundColor: i.colors("backgroundColor"),
|
|
@@ -2234,7 +2238,7 @@ var bn = {
|
|
|
2234
2238
|
outline: { transform: j.outline },
|
|
2235
2239
|
outlineOffset: !0,
|
|
2236
2240
|
outlineColor: i.colors("outlineColor")
|
|
2237
|
-
},
|
|
2241
|
+
}, Te = {
|
|
2238
2242
|
width: i.sizesT("width"),
|
|
2239
2243
|
inlineSize: i.sizesT("inlineSize"),
|
|
2240
2244
|
height: i.sizes("height"),
|
|
@@ -2279,16 +2283,16 @@ var bn = {
|
|
|
2279
2283
|
visibility: !0,
|
|
2280
2284
|
isolation: !0
|
|
2281
2285
|
};
|
|
2282
|
-
Object.assign(
|
|
2283
|
-
w:
|
|
2284
|
-
h:
|
|
2285
|
-
minW:
|
|
2286
|
-
maxW:
|
|
2287
|
-
minH:
|
|
2288
|
-
maxH:
|
|
2289
|
-
overscroll:
|
|
2290
|
-
overscrollX:
|
|
2291
|
-
overscrollY:
|
|
2286
|
+
Object.assign(Te, {
|
|
2287
|
+
w: Te.width,
|
|
2288
|
+
h: Te.height,
|
|
2289
|
+
minW: Te.minWidth,
|
|
2290
|
+
maxW: Te.maxWidth,
|
|
2291
|
+
minH: Te.minHeight,
|
|
2292
|
+
maxH: Te.maxHeight,
|
|
2293
|
+
overscroll: Te.overscrollBehavior,
|
|
2294
|
+
overscrollX: Te.overscrollBehaviorX,
|
|
2295
|
+
overscrollY: Te.overscrollBehaviorY
|
|
2292
2296
|
});
|
|
2293
2297
|
var ka = {
|
|
2294
2298
|
listStyleType: !0,
|
|
@@ -2569,7 +2573,7 @@ function Fa(e, r) {
|
|
|
2569
2573
|
const o = ["@media screen"];
|
|
2570
2574
|
return e && o.push("and", `(min-width: ${en(e)})`), r && o.push("and", `(max-width: ${en(r)})`), o.join(" ");
|
|
2571
2575
|
}
|
|
2572
|
-
var
|
|
2576
|
+
var le = {
|
|
2573
2577
|
hover: (e, r) => `${e}:hover ${r}, ${e}[data-hover] ${r}`,
|
|
2574
2578
|
focus: (e, r) => `${e}:focus ${r}, ${e}[data-focus] ${r}`,
|
|
2575
2579
|
focusVisible: (e, r) => `${e}:focus-visible ${r}`,
|
|
@@ -2582,7 +2586,7 @@ var se = {
|
|
|
2582
2586
|
readOnly: (e, r) => `${e}:read-only ${r}, ${e}[readonly] ${r}, ${e}[data-read-only] ${r}`,
|
|
2583
2587
|
expanded: (e, r) => `${e}:read-only ${r}, ${e}[aria-expanded=true] ${r}, ${e}[data-expanded] ${r}`,
|
|
2584
2588
|
placeholderShown: (e, r) => `${e}:placeholder-shown ${r}`
|
|
2585
|
-
}, ir = (e) => Sn((r) => e(r, "&"), "[role=group]", "[data-group]", ".group"),
|
|
2589
|
+
}, ir = (e) => Sn((r) => e(r, "&"), "[role=group]", "[data-group]", ".group"), Ke = (e) => Sn((r) => e(r, "~ &"), "[data-peer]", ".peer"), Sn = (e, ...r) => r.map(e).join(", "), jt = {
|
|
2586
2590
|
/**
|
|
2587
2591
|
* Styles for CSS selector `&:hover`
|
|
2588
2592
|
*/
|
|
@@ -2751,71 +2755,71 @@ var se = {
|
|
|
2751
2755
|
/**
|
|
2752
2756
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered
|
|
2753
2757
|
*/
|
|
2754
|
-
_groupHover: ir(
|
|
2758
|
+
_groupHover: ir(le.hover),
|
|
2755
2759
|
/**
|
|
2756
2760
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is hovered
|
|
2757
2761
|
*/
|
|
2758
|
-
_peerHover:
|
|
2762
|
+
_peerHover: Ke(le.hover),
|
|
2759
2763
|
/**
|
|
2760
2764
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused
|
|
2761
2765
|
*/
|
|
2762
|
-
_groupFocus: ir(
|
|
2766
|
+
_groupFocus: ir(le.focus),
|
|
2763
2767
|
/**
|
|
2764
2768
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is focused
|
|
2765
2769
|
*/
|
|
2766
|
-
_peerFocus:
|
|
2770
|
+
_peerFocus: Ke(le.focus),
|
|
2767
2771
|
/**
|
|
2768
2772
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus
|
|
2769
2773
|
*/
|
|
2770
|
-
_groupFocusVisible: ir(
|
|
2774
|
+
_groupFocusVisible: ir(le.focusVisible),
|
|
2771
2775
|
/**
|
|
2772
2776
|
* Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus
|
|
2773
2777
|
*/
|
|
2774
|
-
_peerFocusVisible:
|
|
2778
|
+
_peerFocusVisible: Ke(le.focusVisible),
|
|
2775
2779
|
/**
|
|
2776
2780
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active
|
|
2777
2781
|
*/
|
|
2778
|
-
_groupActive: ir(
|
|
2782
|
+
_groupActive: ir(le.active),
|
|
2779
2783
|
/**
|
|
2780
2784
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is active
|
|
2781
2785
|
*/
|
|
2782
|
-
_peerActive:
|
|
2786
|
+
_peerActive: Ke(le.active),
|
|
2783
2787
|
/**
|
|
2784
2788
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled
|
|
2785
2789
|
*/
|
|
2786
|
-
_groupDisabled: ir(
|
|
2790
|
+
_groupDisabled: ir(le.disabled),
|
|
2787
2791
|
/**
|
|
2788
2792
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is disabled
|
|
2789
2793
|
*/
|
|
2790
|
-
_peerDisabled:
|
|
2794
|
+
_peerDisabled: Ke(le.disabled),
|
|
2791
2795
|
/**
|
|
2792
2796
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid
|
|
2793
2797
|
*/
|
|
2794
|
-
_groupInvalid: ir(
|
|
2798
|
+
_groupInvalid: ir(le.invalid),
|
|
2795
2799
|
/**
|
|
2796
2800
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is invalid
|
|
2797
2801
|
*/
|
|
2798
|
-
_peerInvalid:
|
|
2802
|
+
_peerInvalid: Ke(le.invalid),
|
|
2799
2803
|
/**
|
|
2800
2804
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked
|
|
2801
2805
|
*/
|
|
2802
|
-
_groupChecked: ir(
|
|
2806
|
+
_groupChecked: ir(le.checked),
|
|
2803
2807
|
/**
|
|
2804
2808
|
* Styles to apply when a sibling element with `.peer` or `data-peer` is checked
|
|
2805
2809
|
*/
|
|
2806
|
-
_peerChecked:
|
|
2810
|
+
_peerChecked: Ke(le.checked),
|
|
2807
2811
|
/**
|
|
2808
2812
|
* Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within
|
|
2809
2813
|
*/
|
|
2810
|
-
_groupFocusWithin: ir(
|
|
2814
|
+
_groupFocusWithin: ir(le.focusWithin),
|
|
2811
2815
|
/**
|
|
2812
2816
|
* Styles to apply when a sibling element with `.peer` or `data-peer` has focus within
|
|
2813
2817
|
*/
|
|
2814
|
-
_peerFocusWithin:
|
|
2818
|
+
_peerFocusWithin: Ke(le.focusWithin),
|
|
2815
2819
|
/**
|
|
2816
2820
|
* Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown
|
|
2817
2821
|
*/
|
|
2818
|
-
_peerPlaceholderShown:
|
|
2822
|
+
_peerPlaceholderShown: Ke(le.placeholderShown),
|
|
2819
2823
|
/**
|
|
2820
2824
|
* Styles for CSS Selector `&::placeholder`.
|
|
2821
2825
|
*/
|
|
@@ -2885,7 +2889,7 @@ var Ot = sr(
|
|
|
2885
2889
|
L,
|
|
2886
2890
|
Sa,
|
|
2887
2891
|
Xr,
|
|
2888
|
-
|
|
2892
|
+
Te,
|
|
2889
2893
|
_a,
|
|
2890
2894
|
ja,
|
|
2891
2895
|
xa,
|
|
@@ -2901,7 +2905,7 @@ var Ot = sr(
|
|
|
2901
2905
|
ka,
|
|
2902
2906
|
Pa
|
|
2903
2907
|
);
|
|
2904
|
-
Object.assign({}, Y,
|
|
2908
|
+
Object.assign({}, Y, Te, Xr, bn, Br);
|
|
2905
2909
|
var Da = [...Object.keys(Ot), ...La], za = { ...Ot, ...jt }, Na = (e) => e in za, Ga = (e) => (r) => {
|
|
2906
2910
|
if (!r.__breakpoints)
|
|
2907
2911
|
return e;
|
|
@@ -2973,12 +2977,12 @@ function Xa(e) {
|
|
|
2973
2977
|
W = B != null && B.processResult ? l(W, !0) : W;
|
|
2974
2978
|
const R = br(B == null ? void 0 : B.property, a);
|
|
2975
2979
|
if (!d && (B != null && B.static)) {
|
|
2976
|
-
const
|
|
2977
|
-
_ = sr({}, _,
|
|
2980
|
+
const ce = br(B.static, a);
|
|
2981
|
+
_ = sr({}, _, ce);
|
|
2978
2982
|
}
|
|
2979
2983
|
if (R && Array.isArray(R)) {
|
|
2980
|
-
for (const
|
|
2981
|
-
_[
|
|
2984
|
+
for (const ce of R)
|
|
2985
|
+
_[ce] = W;
|
|
2982
2986
|
continue;
|
|
2983
2987
|
}
|
|
2984
2988
|
if (R) {
|
|
@@ -3028,9 +3032,9 @@ function Qa(e) {
|
|
|
3028
3032
|
const M = r.details[P], B = r.details[Ja(v, P)], W = Fa(M.minW, B == null ? void 0 : B._minW), R = br((f = a[l]) == null ? void 0 : f[v[P]], d);
|
|
3029
3033
|
if (R) {
|
|
3030
3034
|
if (T) {
|
|
3031
|
-
(g = a.parts) == null || g.forEach((
|
|
3035
|
+
(g = a.parts) == null || g.forEach((ce) => {
|
|
3032
3036
|
sr(h, {
|
|
3033
|
-
[
|
|
3037
|
+
[ce]: _ ? R[ce] : { [W]: R[ce] }
|
|
3034
3038
|
});
|
|
3035
3039
|
});
|
|
3036
3040
|
continue;
|
|
@@ -3201,9 +3205,9 @@ function mt(e, r) {
|
|
|
3201
3205
|
e,
|
|
3202
3206
|
a
|
|
3203
3207
|
)(l);
|
|
3204
|
-
return
|
|
3208
|
+
return Je.forwardRef(function(g, h) {
|
|
3205
3209
|
const { colorMode: v, forced: S } = mn();
|
|
3206
|
-
return
|
|
3210
|
+
return Je.createElement(u, {
|
|
3207
3211
|
ref: h,
|
|
3208
3212
|
"data-theme": S ? v : void 0,
|
|
3209
3213
|
...g
|
|
@@ -3230,7 +3234,7 @@ function hi() {
|
|
|
3230
3234
|
}
|
|
3231
3235
|
});
|
|
3232
3236
|
}
|
|
3233
|
-
var
|
|
3237
|
+
var De = hi();
|
|
3234
3238
|
function Pe(e) {
|
|
3235
3239
|
return ao(e);
|
|
3236
3240
|
}
|
|
@@ -3281,9 +3285,9 @@ var tn = {
|
|
|
3281
3285
|
__css: _
|
|
3282
3286
|
}, P = a ?? tn.viewBox;
|
|
3283
3287
|
if (o && typeof o != "string")
|
|
3284
|
-
return /* @__PURE__ */ k.jsx(
|
|
3288
|
+
return /* @__PURE__ */ k.jsx(De.svg, { as: o, ...T, ...h });
|
|
3285
3289
|
const M = d ?? tn.path;
|
|
3286
|
-
return /* @__PURE__ */ k.jsx(
|
|
3290
|
+
return /* @__PURE__ */ k.jsx(De.svg, { verticalAlign: "middle", viewBox: P, ...T, ...h, children: M });
|
|
3287
3291
|
});
|
|
3288
3292
|
Qr.displayName = "Icon";
|
|
3289
3293
|
function mi(e, r) {
|
|
@@ -3328,8 +3332,8 @@ var bi = Pe(function(r, o) {
|
|
|
3328
3332
|
() => S ? io.map(d, (P, M) => /* @__PURE__ */ k.jsx(At, { children: P }, M)) : d,
|
|
3329
3333
|
[d, S]
|
|
3330
3334
|
);
|
|
3331
|
-
return /* @__PURE__ */ k.jsx(
|
|
3332
|
-
|
|
3335
|
+
return /* @__PURE__ */ k.jsx(De.div, { ref: o, className: Et("chakra-wrap", v), ..._, children: /* @__PURE__ */ k.jsx(
|
|
3336
|
+
De.ul,
|
|
3333
3337
|
{
|
|
3334
3338
|
className: "chakra-wrap__list",
|
|
3335
3339
|
__css: {
|
|
@@ -3352,7 +3356,7 @@ bi.displayName = "Wrap";
|
|
|
3352
3356
|
var At = Pe(function(r, o) {
|
|
3353
3357
|
const { className: a, ...l } = r;
|
|
3354
3358
|
return /* @__PURE__ */ k.jsx(
|
|
3355
|
-
|
|
3359
|
+
De.li,
|
|
3356
3360
|
{
|
|
3357
3361
|
ref: o,
|
|
3358
3362
|
__css: { display: "flex", alignItems: "flex-start" },
|
|
@@ -3362,7 +3366,7 @@ var At = Pe(function(r, o) {
|
|
|
3362
3366
|
);
|
|
3363
3367
|
});
|
|
3364
3368
|
At.displayName = "WrapItem";
|
|
3365
|
-
var Pt =
|
|
3369
|
+
var Pt = De("div");
|
|
3366
3370
|
Pt.displayName = "Box";
|
|
3367
3371
|
var xn = Pe(function(r, o) {
|
|
3368
3372
|
const { size: a, centerContent: l = !0, ...u } = r, d = l ? { display: "flex", alignItems: "center", justifyContent: "center" } : {};
|
|
@@ -3397,7 +3401,7 @@ var kn = Pe(function(r, o) {
|
|
|
3397
3401
|
flexGrow: g,
|
|
3398
3402
|
flexShrink: h
|
|
3399
3403
|
};
|
|
3400
|
-
return /* @__PURE__ */ k.jsx(
|
|
3404
|
+
return /* @__PURE__ */ k.jsx(De.div, { ref: o, __css: S, ...v });
|
|
3401
3405
|
});
|
|
3402
3406
|
kn.displayName = "Flex";
|
|
3403
3407
|
const Si = (e) => {
|
|
@@ -3416,16 +3420,16 @@ const Si = (e) => {
|
|
|
3416
3420
|
"AutoCompleteItem",
|
|
3417
3421
|
"AutoCompleteCreatable"
|
|
3418
3422
|
], xi = (e) => {
|
|
3419
|
-
const r =
|
|
3423
|
+
const r = Je.Children.map(e, (l, u) => {
|
|
3420
3424
|
var d;
|
|
3421
3425
|
if (((d = l == null ? void 0 : l.type) == null ? void 0 : d.displayName) === "AutoCompleteGroup") {
|
|
3422
|
-
const f =
|
|
3423
|
-
return
|
|
3426
|
+
const f = Je.Children.toArray(e)[u + 1];
|
|
3427
|
+
return Je.cloneElement(l, {
|
|
3424
3428
|
groupSibling: f ? f.type.displayName === "AutoCompleteGroup" : !1
|
|
3425
3429
|
});
|
|
3426
3430
|
}
|
|
3427
3431
|
return l;
|
|
3428
|
-
}), o =
|
|
3432
|
+
}), o = Je.Children.toArray(r).filter(
|
|
3429
3433
|
(l) => {
|
|
3430
3434
|
var u;
|
|
3431
3435
|
return !nn.includes(
|
|
@@ -3433,7 +3437,7 @@ const Si = (e) => {
|
|
|
3433
3437
|
);
|
|
3434
3438
|
}
|
|
3435
3439
|
);
|
|
3436
|
-
return [
|
|
3440
|
+
return [Je.Children.toArray(r).filter(
|
|
3437
3441
|
(l) => {
|
|
3438
3442
|
var u;
|
|
3439
3443
|
return nn.includes(
|
|
@@ -3483,12 +3487,12 @@ var [wi, Tn] = vi({
|
|
|
3483
3487
|
maxWidth: "100%",
|
|
3484
3488
|
...o.container
|
|
3485
3489
|
};
|
|
3486
|
-
return /* @__PURE__ */ k.jsx(wi, { value: o, children: /* @__PURE__ */ k.jsx(
|
|
3490
|
+
return /* @__PURE__ */ k.jsx(wi, { value: o, children: /* @__PURE__ */ k.jsx(De.span, { ref: r, ...a, __css: l }) });
|
|
3487
3491
|
});
|
|
3488
3492
|
wn.displayName = "Tag";
|
|
3489
3493
|
var Rn = Pe((e, r) => {
|
|
3490
3494
|
const o = Tn();
|
|
3491
|
-
return /* @__PURE__ */ k.jsx(
|
|
3495
|
+
return /* @__PURE__ */ k.jsx(De.span, { ref: r, noOfLines: 1, ...e, __css: o.label });
|
|
3492
3496
|
});
|
|
3493
3497
|
Rn.displayName = "TagLabel";
|
|
3494
3498
|
var Ri = Pe((e, r) => /* @__PURE__ */ k.jsx(Qr, { ref: r, verticalAlign: "top", marginEnd: "0.5rem", ...e }));
|
|
@@ -3513,7 +3517,7 @@ var En = Pe(
|
|
|
3513
3517
|
...Tn().closeButton
|
|
3514
3518
|
};
|
|
3515
3519
|
return /* @__PURE__ */ k.jsx(
|
|
3516
|
-
|
|
3520
|
+
De.button,
|
|
3517
3521
|
{
|
|
3518
3522
|
ref: r,
|
|
3519
3523
|
"aria-label": "close",
|