@commander-services/cmd-dropdown-portal 1.4.0 → 1.4.2
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 +154 -152
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Ce from "react";
|
|
2
|
-
import
|
|
2
|
+
import I, { useState as fr } from "react";
|
|
3
3
|
import dr from "react-dom";
|
|
4
|
-
var B = { exports: {} },
|
|
4
|
+
var B = { exports: {} }, $ = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,19 +13,19 @@ var B = { exports: {} }, W = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var Te;
|
|
15
15
|
function vr() {
|
|
16
|
-
if (Te) return
|
|
16
|
+
if (Te) return $;
|
|
17
17
|
Te = 1;
|
|
18
|
-
var E =
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
for (
|
|
23
|
-
if (
|
|
24
|
-
return { $$typeof: m, type:
|
|
18
|
+
var E = I, m = Symbol.for("react.element"), b = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, x = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function O(w, f, h) {
|
|
20
|
+
var s, d = {}, y = null, T = null;
|
|
21
|
+
h !== void 0 && (y = "" + h), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (T = f.ref);
|
|
22
|
+
for (s in f) R.call(f, s) && !j.hasOwnProperty(s) && (d[s] = f[s]);
|
|
23
|
+
if (w && w.defaultProps) for (s in f = w.defaultProps, f) d[s] === void 0 && (d[s] = f[s]);
|
|
24
|
+
return { $$typeof: m, type: w, key: y, ref: T, props: d, _owner: x.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return $.Fragment = b, $.jsx = O, $.jsxs = O, $;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var W = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -38,14 +38,14 @@ var Y = {};
|
|
|
38
38
|
var Oe;
|
|
39
39
|
function pr() {
|
|
40
40
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var E =
|
|
41
|
+
var E = I, m = Symbol.for("react.element"), b = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), w = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), C = Symbol.iterator, Se = "@@iterator";
|
|
42
42
|
function ke(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var r =
|
|
45
|
+
var r = C && e[C] || e[Se];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var D = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function v(e) {
|
|
50
50
|
{
|
|
51
51
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -55,7 +55,7 @@ function pr() {
|
|
|
55
55
|
}
|
|
56
56
|
function xe(e, r, t) {
|
|
57
57
|
{
|
|
58
|
-
var n =
|
|
58
|
+
var n = D.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
59
59
|
i !== "" && (r += "%s", t = t.concat([i]));
|
|
60
60
|
var u = t.map(function(o) {
|
|
61
61
|
return String(o);
|
|
@@ -63,16 +63,16 @@ function pr() {
|
|
|
63
63
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var je = !1, De = !1,
|
|
66
|
+
var je = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Q;
|
|
67
67
|
Q = Symbol.for("react.module.reference");
|
|
68
68
|
function Le(e) {
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === j || Ie || e === x || e === h || e === s || Ae || e === T || je || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === d || e.$$typeof === O || e.$$typeof === w || e.$$typeof === f || // 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 === Q || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ye(e, r, t) {
|
|
76
76
|
var n = e.displayName;
|
|
77
77
|
if (n)
|
|
78
78
|
return n;
|
|
@@ -82,7 +82,7 @@ function pr() {
|
|
|
82
82
|
function ee(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function P(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -90,36 +90,36 @@ function pr() {
|
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case h:
|
|
94
|
-
return "Fragment";
|
|
95
93
|
case R:
|
|
94
|
+
return "Fragment";
|
|
95
|
+
case b:
|
|
96
96
|
return "Portal";
|
|
97
|
-
case
|
|
97
|
+
case j:
|
|
98
98
|
return "Profiler";
|
|
99
|
-
case
|
|
99
|
+
case x:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case h:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case s:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case w:
|
|
109
109
|
var r = e;
|
|
110
110
|
return ee(r) + ".Consumer";
|
|
111
|
-
case
|
|
111
|
+
case O:
|
|
112
112
|
var t = e;
|
|
113
113
|
return ee(t._context) + ".Provider";
|
|
114
|
-
case d:
|
|
115
|
-
return We(e, e.render, "ForwardRef");
|
|
116
114
|
case f:
|
|
115
|
+
return Ye(e, e.render, "ForwardRef");
|
|
116
|
+
case d:
|
|
117
117
|
var n = e.displayName || null;
|
|
118
|
-
return n !== null ? n :
|
|
119
|
-
case
|
|
118
|
+
return n !== null ? n : P(e.type) || "Memo";
|
|
119
|
+
case y: {
|
|
120
120
|
var i = e, u = i._payload, o = i._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return P(o(u));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,13 +127,13 @@ function pr() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var S = Object.assign, L = 0, re, te, ne, ae, oe, ie, ue;
|
|
131
131
|
function se() {
|
|
132
132
|
}
|
|
133
133
|
se.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function $e() {
|
|
135
135
|
{
|
|
136
|
-
if (
|
|
136
|
+
if (L === 0) {
|
|
137
137
|
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
|
|
138
138
|
var e = {
|
|
139
139
|
configurable: !0,
|
|
@@ -151,45 +151,45 @@ function pr() {
|
|
|
151
151
|
groupEnd: e
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
L++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function We() {
|
|
158
158
|
{
|
|
159
|
-
if (
|
|
159
|
+
if (L--, L === 0) {
|
|
160
160
|
var e = {
|
|
161
161
|
configurable: !0,
|
|
162
162
|
enumerable: !0,
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: S({}, e, {
|
|
167
167
|
value: re
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: S({}, e, {
|
|
170
170
|
value: te
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
172
|
+
warn: S({}, e, {
|
|
173
173
|
value: ne
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
175
|
+
error: S({}, e, {
|
|
176
176
|
value: ae
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: S({}, e, {
|
|
179
179
|
value: oe
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
181
|
+
groupCollapsed: S({}, e, {
|
|
182
182
|
value: ie
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
184
|
+
groupEnd: S({}, e, {
|
|
185
185
|
value: ue
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
L < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var K =
|
|
192
|
+
var K = D.ReactCurrentDispatcher, J;
|
|
193
193
|
function V(e, r, t) {
|
|
194
194
|
{
|
|
195
195
|
if (J === void 0)
|
|
@@ -221,7 +221,7 @@ function pr() {
|
|
|
221
221
|
var i = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var u;
|
|
224
|
-
u = K.current, K.current = null,
|
|
224
|
+
u = K.current, K.current = null, $e();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
227
|
var o = function() {
|
|
@@ -258,26 +258,26 @@ function pr() {
|
|
|
258
258
|
if (g && n && typeof g.stack == "string") {
|
|
259
259
|
for (var a = g.stack.split(`
|
|
260
260
|
`), p = n.stack.split(`
|
|
261
|
-
`),
|
|
261
|
+
`), l = a.length - 1, c = p.length - 1; l >= 1 && c >= 0 && a[l] !== p[c]; )
|
|
262
262
|
c--;
|
|
263
|
-
for (;
|
|
264
|
-
if (a[
|
|
265
|
-
if (
|
|
263
|
+
for (; l >= 1 && c >= 0; l--, c--)
|
|
264
|
+
if (a[l] !== p[c]) {
|
|
265
|
+
if (l !== 1 || c !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` + a[
|
|
270
|
-
return e.displayName &&
|
|
267
|
+
if (l--, c--, c < 0 || a[l] !== p[c]) {
|
|
268
|
+
var _ = `
|
|
269
|
+
` + a[l].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, _), _;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (l >= 1 && c >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
q = !1, K.current = u,
|
|
277
|
+
q = !1, K.current = u, We(), Error.prepareStackTrace = i;
|
|
278
278
|
}
|
|
279
|
-
var A = e ? e.displayName || e.name : "",
|
|
280
|
-
return typeof e == "function" && M.set(e,
|
|
279
|
+
var A = e ? e.displayName || e.name : "", k = A ? V(A) : "";
|
|
280
|
+
return typeof e == "function" && M.set(e, k), k;
|
|
281
281
|
}
|
|
282
282
|
function Me(e, r, t) {
|
|
283
283
|
return le(e, !1);
|
|
@@ -294,18 +294,18 @@ function pr() {
|
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return V(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
297
|
+
case h:
|
|
298
298
|
return V("Suspense");
|
|
299
|
-
case
|
|
299
|
+
case s:
|
|
300
300
|
return V("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case d:
|
|
305
|
-
return Me(e.render);
|
|
306
304
|
case f:
|
|
305
|
+
return Me(e.render);
|
|
306
|
+
case d:
|
|
307
307
|
return U(e.type, r, t);
|
|
308
|
-
case
|
|
308
|
+
case y: {
|
|
309
309
|
var n = e, i = n._payload, u = n._init;
|
|
310
310
|
try {
|
|
311
311
|
return U(u(i), r, t);
|
|
@@ -315,7 +315,7 @@ function pr() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var Y = Object.prototype.hasOwnProperty, ce = {}, fe = D.ReactDebugCurrentFrame;
|
|
319
319
|
function N(e) {
|
|
320
320
|
if (e) {
|
|
321
321
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
@@ -325,7 +325,7 @@ function pr() {
|
|
|
325
325
|
}
|
|
326
326
|
function Ne(e, r, t, n, i) {
|
|
327
327
|
{
|
|
328
|
-
var u = Function.call.bind(
|
|
328
|
+
var u = Function.call.bind(Y);
|
|
329
329
|
for (var o in e)
|
|
330
330
|
if (u(e, o)) {
|
|
331
331
|
var a = void 0;
|
|
@@ -335,8 +335,8 @@ function pr() {
|
|
|
335
335
|
throw p.name = "Invariant Violation", p;
|
|
336
336
|
}
|
|
337
337
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
a =
|
|
338
|
+
} catch (l) {
|
|
339
|
+
a = l;
|
|
340
340
|
}
|
|
341
341
|
a && !(a instanceof Error) && (N(i), v("%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).", n || "React class", t, o, typeof a), N(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, N(i), v("Failed %s type: %s", t, a.message), N(null));
|
|
342
342
|
}
|
|
@@ -366,14 +366,14 @@ function pr() {
|
|
|
366
366
|
if (Je(e))
|
|
367
367
|
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), de(e);
|
|
368
368
|
}
|
|
369
|
-
var pe =
|
|
369
|
+
var pe = D.ReactCurrentOwner, qe = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
374
|
}, Ee, me;
|
|
375
375
|
function ze(e) {
|
|
376
|
-
if (
|
|
376
|
+
if (Y.call(e, "ref")) {
|
|
377
377
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
378
378
|
if (r && r.isReactWarning)
|
|
379
379
|
return !1;
|
|
@@ -381,17 +381,17 @@ function pr() {
|
|
|
381
381
|
return e.ref !== void 0;
|
|
382
382
|
}
|
|
383
383
|
function Ge(e) {
|
|
384
|
-
if (
|
|
384
|
+
if (Y.call(e, "key")) {
|
|
385
385
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
386
386
|
if (r && r.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return e.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Xe(e, r) {
|
|
392
392
|
typeof e.ref == "string" && pe.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function He(e, r) {
|
|
395
395
|
{
|
|
396
396
|
var t = function() {
|
|
397
397
|
Ee || (Ee = !0, v("%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));
|
|
@@ -445,38 +445,38 @@ function pr() {
|
|
|
445
445
|
function er(e, r, t, n, i) {
|
|
446
446
|
{
|
|
447
447
|
var u, o = {}, a = null, p = null;
|
|
448
|
-
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (p = r.ref,
|
|
448
|
+
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (p = r.ref, Xe(r, i));
|
|
449
449
|
for (u in r)
|
|
450
|
-
|
|
450
|
+
Y.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
|
|
451
451
|
if (e && e.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for (u in
|
|
454
|
-
o[u] === void 0 && (o[u] =
|
|
452
|
+
var l = e.defaultProps;
|
|
453
|
+
for (u in l)
|
|
454
|
+
o[u] === void 0 && (o[u] = l[u]);
|
|
455
455
|
}
|
|
456
456
|
if (a || p) {
|
|
457
457
|
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
-
a &&
|
|
458
|
+
a && He(o, c), p && Ze(o, c);
|
|
459
459
|
}
|
|
460
460
|
return Qe(e, a, p, i, n, pe.current, o);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var G =
|
|
464
|
-
function
|
|
463
|
+
var G = D.ReactCurrentOwner, ge = D.ReactDebugCurrentFrame;
|
|
464
|
+
function F(e) {
|
|
465
465
|
if (e) {
|
|
466
466
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
467
467
|
ge.setExtraStackFrame(t);
|
|
468
468
|
} else
|
|
469
469
|
ge.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
function
|
|
471
|
+
var X;
|
|
472
|
+
X = !1;
|
|
473
|
+
function H(e) {
|
|
474
474
|
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Re() {
|
|
477
477
|
{
|
|
478
478
|
if (G.current) {
|
|
479
|
-
var e =
|
|
479
|
+
var e = P(G.current.type);
|
|
480
480
|
if (e)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -488,10 +488,10 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
function rr(e) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
|
-
var
|
|
491
|
+
var he = {};
|
|
492
492
|
function tr(e) {
|
|
493
493
|
{
|
|
494
|
-
var r =
|
|
494
|
+
var r = Re();
|
|
495
495
|
if (!r) {
|
|
496
496
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
497
|
t && (r = `
|
|
@@ -501,17 +501,17 @@ Check the top-level render call using <` + t + ">.");
|
|
|
501
501
|
return r;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function ye(e, r) {
|
|
505
505
|
{
|
|
506
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
509
|
var t = tr(r);
|
|
510
|
-
if (
|
|
510
|
+
if (he[t])
|
|
511
511
|
return;
|
|
512
|
-
|
|
512
|
+
he[t] = !0;
|
|
513
513
|
var n = "";
|
|
514
|
-
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " +
|
|
514
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + P(e._owner.type) + "."), F(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function be(e, r) {
|
|
@@ -521,15 +521,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
521
521
|
if (z(e))
|
|
522
522
|
for (var t = 0; t < e.length; t++) {
|
|
523
523
|
var n = e[t];
|
|
524
|
-
|
|
524
|
+
H(n) && ye(n, r);
|
|
525
525
|
}
|
|
526
|
-
else if (
|
|
526
|
+
else if (H(e))
|
|
527
527
|
e._store && (e._store.validated = !0);
|
|
528
528
|
else if (e) {
|
|
529
529
|
var i = ke(e);
|
|
530
530
|
if (typeof i == "function" && i !== e.entries)
|
|
531
531
|
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
532
|
-
|
|
532
|
+
H(o.value) && ye(o.value, r);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -541,18 +541,18 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
var t;
|
|
542
542
|
if (typeof r == "function")
|
|
543
543
|
t = r.propTypes;
|
|
544
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
544
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
|
-
r.$$typeof ===
|
|
546
|
+
r.$$typeof === d))
|
|
547
547
|
t = r.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (t) {
|
|
551
|
-
var n =
|
|
551
|
+
var n = P(r);
|
|
552
552
|
Ne(t, e.props, "prop", n, e);
|
|
553
|
-
} else if (r.PropTypes !== void 0 && !
|
|
554
|
-
|
|
555
|
-
var i =
|
|
553
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
554
|
+
X = !0;
|
|
555
|
+
var i = P(r);
|
|
556
556
|
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
557
557
|
}
|
|
558
558
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -563,11 +563,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
563
563
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
564
564
|
var n = r[t];
|
|
565
565
|
if (n !== "children" && n !== "key") {
|
|
566
|
-
|
|
566
|
+
F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
e.ref !== null && (
|
|
570
|
+
e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var _e = {};
|
|
@@ -578,41 +578,41 @@ Check the top-level render call using <` + t + ">.");
|
|
|
578
578
|
var a = "";
|
|
579
579
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " 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 p = rr();
|
|
581
|
-
p ? a += p : a +=
|
|
582
|
-
var
|
|
583
|
-
e === null ?
|
|
581
|
+
p ? a += p : a += Re();
|
|
582
|
+
var l;
|
|
583
|
+
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (P(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
584
584
|
}
|
|
585
585
|
var c = er(e, r, t, i, u);
|
|
586
586
|
if (c == null)
|
|
587
587
|
return c;
|
|
588
588
|
if (o) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
var _ = r.children;
|
|
590
|
+
if (_ !== void 0)
|
|
591
591
|
if (n)
|
|
592
|
-
if (z(
|
|
593
|
-
for (var A = 0; A <
|
|
594
|
-
be(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (z(_)) {
|
|
593
|
+
for (var A = 0; A < _.length; A++)
|
|
594
|
+
be(_[A], e);
|
|
595
|
+
Object.freeze && Object.freeze(_);
|
|
596
596
|
} else
|
|
597
597
|
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
be(
|
|
599
|
+
be(_, e);
|
|
600
600
|
}
|
|
601
|
-
if (
|
|
602
|
-
var
|
|
601
|
+
if (Y.call(r, "key")) {
|
|
602
|
+
var k = P(e), g = Object.keys(r).filter(function(cr) {
|
|
603
603
|
return cr !== "key";
|
|
604
604
|
}), Z = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
-
if (!_e[
|
|
605
|
+
if (!_e[k + Z]) {
|
|
606
606
|
var lr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
607
607
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`, Z,
|
|
612
|
+
<%s key={someKey} {...props} />`, Z, k, lr, k), _e[k + Z] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return e ===
|
|
615
|
+
return e === R ? ar(c) : nr(c), c;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function or(e, r, t) {
|
|
@@ -622,8 +622,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
622
|
return we(e, r, t, !1);
|
|
623
623
|
}
|
|
624
624
|
var ur = ir, sr = or;
|
|
625
|
-
|
|
626
|
-
}()),
|
|
625
|
+
W.Fragment = R, W.jsx = ur, W.jsxs = sr;
|
|
626
|
+
}()), W;
|
|
627
627
|
}
|
|
628
628
|
var Pe;
|
|
629
629
|
function Er() {
|
|
@@ -631,54 +631,56 @@ function Er() {
|
|
|
631
631
|
}
|
|
632
632
|
var mr = Er();
|
|
633
633
|
const gr = (E, m) => {
|
|
634
|
-
const
|
|
635
|
-
E.current && !E.current.contains(
|
|
634
|
+
const b = (R) => {
|
|
635
|
+
E.current && !E.current.contains(R.target) && m(R);
|
|
636
636
|
};
|
|
637
|
-
Ce.useEffect(() => (document.addEventListener("click",
|
|
638
|
-
document.removeEventListener("click",
|
|
637
|
+
Ce.useEffect(() => (document.addEventListener("click", b, { capture: !0 }), () => {
|
|
638
|
+
document.removeEventListener("click", b, { capture: !0 });
|
|
639
639
|
}));
|
|
640
|
-
},
|
|
641
|
-
const
|
|
642
|
-
|
|
640
|
+
}, Rr = "Escape", hr = (E, m) => {
|
|
641
|
+
const b = ({ key: R }) => {
|
|
642
|
+
R === E && m();
|
|
643
643
|
};
|
|
644
|
-
Ce.useEffect(() => (document.addEventListener("keyup",
|
|
645
|
-
document.removeEventListener("keyup",
|
|
644
|
+
Ce.useEffect(() => (document.addEventListener("keyup", b), () => {
|
|
645
|
+
document.removeEventListener("keyup", b);
|
|
646
646
|
}), []);
|
|
647
|
-
},
|
|
647
|
+
}, yr = () => ({ useOutsideClick: gr, useKeyPress: hr, ESCAPE_KEY: Rr }), br = yr;
|
|
648
648
|
function Tr(E) {
|
|
649
|
-
const [m,
|
|
649
|
+
const [m, b] = fr(null), { useOutsideClick: R, useKeyPress: x, ESCAPE_KEY: j } = br(), O = I.useRef(), w = () => {
|
|
650
650
|
setTimeout(function() {
|
|
651
651
|
E.handleOpen(!1);
|
|
652
652
|
}, 50);
|
|
653
653
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}),
|
|
657
|
-
|
|
654
|
+
R(O, () => {
|
|
655
|
+
w();
|
|
656
|
+
}), x(j, () => {
|
|
657
|
+
w();
|
|
658
658
|
});
|
|
659
|
-
const d =
|
|
660
|
-
if (!
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
659
|
+
const f = (s, d = 44) => {
|
|
660
|
+
if (!s) return !1;
|
|
661
|
+
const y = s.getBoundingClientRect(), T = s.offsetParent;
|
|
662
|
+
if (!T) return !1;
|
|
663
|
+
const C = T.getBoundingClientRect();
|
|
664
|
+
return y.top >= C.top && y.bottom <= C.bottom && y.height >= d;
|
|
665
|
+
}, h = I.useCallback(() => {
|
|
666
|
+
const s = document.getElementById(E.elementId);
|
|
667
|
+
if (s && f(s)) {
|
|
668
|
+
const d = s.getBoundingClientRect(), y = d.left, T = d.bottom, C = d.width;
|
|
669
|
+
b({ left: y, bottom: T, width: C });
|
|
668
670
|
} else
|
|
669
|
-
|
|
671
|
+
b(null);
|
|
670
672
|
}, []);
|
|
671
|
-
return
|
|
672
|
-
window.removeEventListener("scroll",
|
|
673
|
-
}), [
|
|
674
|
-
|
|
673
|
+
return I.useEffect(() => (window.addEventListener("scroll", h, { capture: !0 }), window.addEventListener("resize", h, { capture: !0 }), () => {
|
|
674
|
+
window.removeEventListener("scroll", h, { capture: !0 }), window.removeEventListener("resize", h, { capture: !0 });
|
|
675
|
+
}), [h]), I.useEffect(() => {
|
|
676
|
+
h();
|
|
675
677
|
}, [E.elementId]), m ? dr.createPortal(
|
|
676
678
|
/* @__PURE__ */ mr.jsx(
|
|
677
679
|
"div",
|
|
678
680
|
{
|
|
679
681
|
className: "font-poppins",
|
|
680
682
|
id: `cmd-dropdown-portal-${E.elementId}`,
|
|
681
|
-
ref:
|
|
683
|
+
ref: O,
|
|
682
684
|
style: {
|
|
683
685
|
position: "absolute",
|
|
684
686
|
top: m.bottom,
|