@commander-services/cmd-dropdown-portal 1.4.2 → 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/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as Ce from "react";
2
- import I, { useState as fr } from "react";
1
+ import * as Se from "react";
2
+ import A, { useState as fr } from "react";
3
3
  import dr from "react-dom";
4
- var B = { exports: {} }, $ = {};
4
+ var N = { exports: {} }, Y = {};
5
5
  /**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.min.js
@@ -11,21 +11,21 @@ var B = { exports: {} }, $ = {};
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var Te;
14
+ var Oe;
15
15
  function vr() {
16
- if (Te) return $;
17
- Te = 1;
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 };
16
+ if (Oe) return Y;
17
+ Oe = 1;
18
+ var p = A, m = Symbol.for("react.element"), h = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, k = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function O(w, f, b) {
20
+ var c, E = {}, g = null, T = null;
21
+ b !== void 0 && (g = "" + b), f.key !== void 0 && (g = "" + f.key), f.ref !== void 0 && (T = f.ref);
22
+ for (c in f) R.call(f, c) && !x.hasOwnProperty(c) && (E[c] = f[c]);
23
+ if (w && w.defaultProps) for (c in f = w.defaultProps, f) E[c] === void 0 && (E[c] = f[c]);
24
+ return { $$typeof: m, type: w, key: g, ref: T, props: E, _owner: k.current };
25
25
  }
26
- return $.Fragment = b, $.jsx = O, $.jsxs = O, $;
26
+ return Y.Fragment = h, Y.jsx = O, Y.jsxs = O, Y;
27
27
  }
28
- var W = {};
28
+ var $ = {};
29
29
  /**
30
30
  * @license React
31
31
  * react-jsx-runtime.development.js
@@ -35,18 +35,18 @@ var W = {};
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- var Oe;
38
+ var Ce;
39
39
  function pr() {
40
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
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";
40
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
41
+ var p = A, m = Symbol.for("react.element"), h = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), w = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), W = Symbol.iterator, K = "@@iterator";
42
42
  function ke(e) {
43
43
  if (e === null || typeof e != "object")
44
44
  return null;
45
- var r = C && e[C] || e[Se];
45
+ var r = W && e[W] || e[K];
46
46
  return typeof r == "function" ? r : null;
47
47
  }
48
- var D = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function v(e) {
48
+ var j = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function d(e) {
50
50
  {
51
51
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
52
52
  t[n - 1] = arguments[n];
@@ -55,7 +55,7 @@ function pr() {
55
55
  }
56
56
  function xe(e, r, t) {
57
57
  {
58
- var n = D.ReactDebugCurrentFrame, i = n.getStackAddendum();
58
+ var n = j.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,14 +63,14 @@ 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, Fe = !1, Ae = !1, Ie = !1, Q;
67
- Q = Symbol.for("react.module.reference");
66
+ var je = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, ee;
67
+ ee = Symbol.for("react.module.reference");
68
68
  function Le(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
69
+ return !!(typeof e == "string" || typeof e == "function" || e === R || e === x || Ie || e === k || e === b || e === c || Ae || e === T || je || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === E || 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
- e.$$typeof === Q || e.getModuleId !== void 0));
73
+ e.$$typeof === ee || e.getModuleId !== void 0));
74
74
  }
75
75
  function Ye(e, r, t) {
76
76
  var n = e.displayName;
@@ -79,47 +79,47 @@ function pr() {
79
79
  var i = r.displayName || r.name || "";
80
80
  return i !== "" ? t + "(" + i + ")" : t;
81
81
  }
82
- function ee(e) {
82
+ function re(e) {
83
83
  return e.displayName || "Context";
84
84
  }
85
- function P(e) {
85
+ function C(e) {
86
86
  if (e == null)
87
87
  return null;
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")
88
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
89
89
  return e.displayName || e.name || null;
90
90
  if (typeof e == "string")
91
91
  return e;
92
92
  switch (e) {
93
93
  case R:
94
94
  return "Fragment";
95
- case b:
95
+ case h:
96
96
  return "Portal";
97
- case j:
98
- return "Profiler";
99
97
  case x:
98
+ return "Profiler";
99
+ case k:
100
100
  return "StrictMode";
101
- case h:
101
+ case b:
102
102
  return "Suspense";
103
- case s:
103
+ case c:
104
104
  return "SuspenseList";
105
105
  }
106
106
  if (typeof e == "object")
107
107
  switch (e.$$typeof) {
108
108
  case w:
109
109
  var r = e;
110
- return ee(r) + ".Consumer";
110
+ return re(r) + ".Consumer";
111
111
  case O:
112
112
  var t = e;
113
- return ee(t._context) + ".Provider";
113
+ return re(t._context) + ".Provider";
114
114
  case f:
115
115
  return Ye(e, e.render, "ForwardRef");
116
- case d:
116
+ case E:
117
117
  var n = e.displayName || null;
118
- return n !== null ? n : P(e.type) || "Memo";
119
- case y: {
118
+ return n !== null ? n : C(e.type) || "Memo";
119
+ case g: {
120
120
  var i = e, u = i._payload, o = i._init;
121
121
  try {
122
- return P(o(u));
122
+ return C(o(u));
123
123
  } catch {
124
124
  return null;
125
125
  }
@@ -127,18 +127,18 @@ function pr() {
127
127
  }
128
128
  return null;
129
129
  }
130
- var S = Object.assign, L = 0, re, te, ne, ae, oe, ie, ue;
131
- function se() {
130
+ var P = Object.assign, I = 0, te, ne, ae, oe, ie, ue, se;
131
+ function le() {
132
132
  }
133
- se.__reactDisabledLog = !0;
133
+ le.__reactDisabledLog = !0;
134
134
  function $e() {
135
135
  {
136
- if (L === 0) {
137
- re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
136
+ if (I === 0) {
137
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
138
138
  var e = {
139
139
  configurable: !0,
140
140
  enumerable: !0,
141
- value: se,
141
+ value: le,
142
142
  writable: !0
143
143
  };
144
144
  Object.defineProperties(console, {
@@ -151,65 +151,65 @@ function pr() {
151
151
  groupEnd: e
152
152
  });
153
153
  }
154
- L++;
154
+ I++;
155
155
  }
156
156
  }
157
157
  function We() {
158
158
  {
159
- if (L--, L === 0) {
159
+ if (I--, I === 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: S({}, e, {
167
- value: re
168
- }),
169
- info: S({}, e, {
166
+ log: P({}, e, {
170
167
  value: te
171
168
  }),
172
- warn: S({}, e, {
169
+ info: P({}, e, {
173
170
  value: ne
174
171
  }),
175
- error: S({}, e, {
172
+ warn: P({}, e, {
176
173
  value: ae
177
174
  }),
178
- group: S({}, e, {
175
+ error: P({}, e, {
179
176
  value: oe
180
177
  }),
181
- groupCollapsed: S({}, e, {
178
+ group: P({}, e, {
182
179
  value: ie
183
180
  }),
184
- groupEnd: S({}, e, {
181
+ groupCollapsed: P({}, e, {
185
182
  value: ue
183
+ }),
184
+ groupEnd: P({}, e, {
185
+ value: se
186
186
  })
187
187
  });
188
188
  }
189
- L < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
+ I < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
190
  }
191
191
  }
192
- var K = D.ReactCurrentDispatcher, J;
192
+ var J = j.ReactCurrentDispatcher, q;
193
193
  function V(e, r, t) {
194
194
  {
195
- if (J === void 0)
195
+ if (q === void 0)
196
196
  try {
197
197
  throw Error();
198
198
  } catch (i) {
199
199
  var n = i.stack.trim().match(/\n( *(at )?)/);
200
- J = n && n[1] || "";
200
+ q = n && n[1] || "";
201
201
  }
202
202
  return `
203
- ` + J + e;
203
+ ` + q + e;
204
204
  }
205
205
  }
206
- var q = !1, M;
206
+ var z = !1, M;
207
207
  {
208
208
  var Ve = typeof WeakMap == "function" ? WeakMap : Map;
209
209
  M = new Ve();
210
210
  }
211
- function le(e, r) {
212
- if (!e || q)
211
+ function ce(e, r) {
212
+ if (!e || z)
213
213
  return "";
214
214
  {
215
215
  var t = M.get(e);
@@ -217,11 +217,11 @@ function pr() {
217
217
  return t;
218
218
  }
219
219
  var n;
220
- q = !0;
220
+ z = !0;
221
221
  var i = Error.prepareStackTrace;
222
222
  Error.prepareStackTrace = void 0;
223
223
  var u;
224
- u = K.current, K.current = null, $e();
224
+ u = J.current, J.current = null, $e();
225
225
  try {
226
226
  if (r) {
227
227
  var o = function() {
@@ -234,53 +234,53 @@ function pr() {
234
234
  }), typeof Reflect == "object" && Reflect.construct) {
235
235
  try {
236
236
  Reflect.construct(o, []);
237
- } catch (g) {
238
- n = g;
237
+ } catch (y) {
238
+ n = y;
239
239
  }
240
240
  Reflect.construct(e, [], o);
241
241
  } else {
242
242
  try {
243
243
  o.call();
244
- } catch (g) {
245
- n = g;
244
+ } catch (y) {
245
+ n = y;
246
246
  }
247
247
  e.call(o.prototype);
248
248
  }
249
249
  } else {
250
250
  try {
251
251
  throw Error();
252
- } catch (g) {
253
- n = g;
252
+ } catch (y) {
253
+ n = y;
254
254
  }
255
255
  e();
256
256
  }
257
- } catch (g) {
258
- if (g && n && typeof g.stack == "string") {
259
- for (var a = g.stack.split(`
260
- `), p = n.stack.split(`
261
- `), l = a.length - 1, c = p.length - 1; l >= 1 && c >= 0 && a[l] !== p[c]; )
262
- c--;
263
- for (; l >= 1 && c >= 0; l--, c--)
264
- if (a[l] !== p[c]) {
265
- if (l !== 1 || c !== 1)
257
+ } catch (y) {
258
+ if (y && n && typeof y.stack == "string") {
259
+ for (var a = y.stack.split(`
260
+ `), v = n.stack.split(`
261
+ `), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
262
+ l--;
263
+ for (; s >= 1 && l >= 0; s--, l--)
264
+ if (a[s] !== v[l]) {
265
+ if (s !== 1 || l !== 1)
266
266
  do
267
- if (l--, c--, c < 0 || a[l] !== p[c]) {
267
+ if (s--, l--, l < 0 || a[s] !== v[l]) {
268
268
  var _ = `
269
- ` + a[l].replace(" at new ", " at ");
269
+ ` + a[s].replace(" at new ", " at ");
270
270
  return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, _), _;
271
271
  }
272
- while (l >= 1 && c >= 0);
272
+ while (s >= 1 && l >= 0);
273
273
  break;
274
274
  }
275
275
  }
276
276
  } finally {
277
- q = !1, K.current = u, We(), Error.prepareStackTrace = i;
277
+ z = !1, J.current = u, We(), Error.prepareStackTrace = i;
278
278
  }
279
- var A = e ? e.displayName || e.name : "", k = A ? V(A) : "";
280
- return typeof e == "function" && M.set(e, k), k;
279
+ var F = e ? e.displayName || e.name : "", S = F ? V(F) : "";
280
+ return typeof e == "function" && M.set(e, S), S;
281
281
  }
282
282
  function Me(e, r, t) {
283
- return le(e, !1);
283
+ return ce(e, !1);
284
284
  }
285
285
  function Ue(e) {
286
286
  var r = e.prototype;
@@ -290,22 +290,22 @@ function pr() {
290
290
  if (e == null)
291
291
  return "";
292
292
  if (typeof e == "function")
293
- return le(e, Ue(e));
293
+ return ce(e, Ue(e));
294
294
  if (typeof e == "string")
295
295
  return V(e);
296
296
  switch (e) {
297
- case h:
297
+ case b:
298
298
  return V("Suspense");
299
- case s:
299
+ case c:
300
300
  return V("SuspenseList");
301
301
  }
302
302
  if (typeof e == "object")
303
303
  switch (e.$$typeof) {
304
304
  case f:
305
305
  return Me(e.render);
306
- case d:
306
+ case E:
307
307
  return U(e.type, r, t);
308
- case y: {
308
+ case g: {
309
309
  var n = e, i = n._payload, u = n._init;
310
310
  try {
311
311
  return U(u(i), r, t);
@@ -315,36 +315,36 @@ function pr() {
315
315
  }
316
316
  return "";
317
317
  }
318
- var Y = Object.prototype.hasOwnProperty, ce = {}, fe = D.ReactDebugCurrentFrame;
319
- function N(e) {
318
+ var L = Object.prototype.hasOwnProperty, fe = {}, de = j.ReactDebugCurrentFrame;
319
+ function B(e) {
320
320
  if (e) {
321
321
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
322
- fe.setExtraStackFrame(t);
322
+ de.setExtraStackFrame(t);
323
323
  } else
324
- fe.setExtraStackFrame(null);
324
+ de.setExtraStackFrame(null);
325
325
  }
326
- function Ne(e, r, t, n, i) {
326
+ function Be(e, r, t, n, i) {
327
327
  {
328
- var u = Function.call.bind(Y);
328
+ var u = Function.call.bind(L);
329
329
  for (var o in e)
330
330
  if (u(e, o)) {
331
331
  var a = void 0;
332
332
  try {
333
333
  if (typeof e[o] != "function") {
334
- var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
- throw p.name = "Invariant Violation", p;
334
+ var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw v.name = "Invariant Violation", v;
336
336
  }
337
337
  a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
- } catch (l) {
339
- a = l;
338
+ } catch (s) {
339
+ a = s;
340
340
  }
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));
341
+ a && !(a instanceof Error) && (B(i), d("%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), B(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, B(i), d("Failed %s type: %s", t, a.message), B(null));
342
342
  }
343
343
  }
344
344
  }
345
- var Be = Array.isArray;
346
- function z(e) {
347
- return Be(e);
345
+ var Ne = Array.isArray;
346
+ function G(e) {
347
+ return Ne(e);
348
348
  }
349
349
  function Ke(e) {
350
350
  {
@@ -354,26 +354,26 @@ function pr() {
354
354
  }
355
355
  function Je(e) {
356
356
  try {
357
- return de(e), !1;
357
+ return ve(e), !1;
358
358
  } catch {
359
359
  return !0;
360
360
  }
361
361
  }
362
- function de(e) {
362
+ function ve(e) {
363
363
  return "" + e;
364
364
  }
365
- function ve(e) {
365
+ function pe(e) {
366
366
  if (Je(e))
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);
367
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), ve(e);
368
368
  }
369
- var pe = D.ReactCurrentOwner, qe = {
369
+ var me = j.ReactCurrentOwner, qe = {
370
370
  key: !0,
371
371
  ref: !0,
372
372
  __self: !0,
373
373
  __source: !0
374
- }, Ee, me;
374
+ }, Ee, ge;
375
375
  function ze(e) {
376
- if (Y.call(e, "ref")) {
376
+ if (L.call(e, "ref")) {
377
377
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
378
378
  if (r && r.isReactWarning)
379
379
  return !1;
@@ -381,7 +381,7 @@ function pr() {
381
381
  return e.ref !== void 0;
382
382
  }
383
383
  function Ge(e) {
384
- if (Y.call(e, "key")) {
384
+ if (L.call(e, "key")) {
385
385
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
386
386
  if (r && r.isReactWarning)
387
387
  return !1;
@@ -389,12 +389,12 @@ function pr() {
389
389
  return e.key !== void 0;
390
390
  }
391
391
  function Xe(e, r) {
392
- typeof e.ref == "string" && pe.current;
392
+ typeof e.ref == "string" && me.current;
393
393
  }
394
394
  function He(e, r) {
395
395
  {
396
396
  var t = function() {
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));
397
+ Ee || (Ee = !0, d("%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
399
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
400
400
  get: t,
@@ -405,7 +405,7 @@ function pr() {
405
405
  function Ze(e, r) {
406
406
  {
407
407
  var t = function() {
408
- me || (me = !0, v("%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));
408
+ ge || (ge = !0, d("%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
410
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
411
411
  get: t,
@@ -444,39 +444,39 @@ function pr() {
444
444
  };
445
445
  function er(e, r, t, n, i) {
446
446
  {
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, Xe(r, i));
447
+ var u, o = {}, a = null, v = null;
448
+ t !== void 0 && (pe(t), a = "" + t), Ge(r) && (pe(r.key), a = "" + r.key), ze(r) && (v = r.ref, Xe(r, i));
449
449
  for (u in r)
450
- Y.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
450
+ L.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
451
451
  if (e && e.defaultProps) {
452
- var l = e.defaultProps;
453
- for (u in l)
454
- o[u] === void 0 && (o[u] = l[u]);
452
+ var s = e.defaultProps;
453
+ for (u in s)
454
+ o[u] === void 0 && (o[u] = s[u]);
455
455
  }
456
- if (a || p) {
457
- var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
- a && He(o, c), p && Ze(o, c);
456
+ if (a || v) {
457
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
+ a && He(o, l), v && Ze(o, l);
459
459
  }
460
- return Qe(e, a, p, i, n, pe.current, o);
460
+ return Qe(e, a, v, i, n, me.current, o);
461
461
  }
462
462
  }
463
- var G = D.ReactCurrentOwner, ge = D.ReactDebugCurrentFrame;
464
- function F(e) {
463
+ var X = j.ReactCurrentOwner, ye = j.ReactDebugCurrentFrame;
464
+ function D(e) {
465
465
  if (e) {
466
466
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
467
- ge.setExtraStackFrame(t);
467
+ ye.setExtraStackFrame(t);
468
468
  } else
469
- ge.setExtraStackFrame(null);
469
+ ye.setExtraStackFrame(null);
470
470
  }
471
- var X;
472
- X = !1;
473
- function H(e) {
471
+ var H;
472
+ H = !1;
473
+ function Z(e) {
474
474
  return typeof e == "object" && e !== null && e.$$typeof === m;
475
475
  }
476
476
  function Re() {
477
477
  {
478
- if (G.current) {
479
- var e = P(G.current.type);
478
+ if (X.current) {
479
+ var e = C(X.current.type);
480
480
  if (e)
481
481
  return `
482
482
 
@@ -488,7 +488,7 @@ Check the render method of \`` + e + "`.";
488
488
  function rr(e) {
489
489
  return "";
490
490
  }
491
- var he = {};
491
+ var be = {};
492
492
  function tr(e) {
493
493
  {
494
494
  var r = Re();
@@ -501,35 +501,35 @@ Check the top-level render call using <` + t + ">.");
501
501
  return r;
502
502
  }
503
503
  }
504
- function ye(e, r) {
504
+ function he(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 (he[t])
510
+ if (be[t])
511
511
  return;
512
- he[t] = !0;
512
+ be[t] = !0;
513
513
  var n = "";
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);
514
+ e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + C(e._owner.type) + "."), D(e), d('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), D(null);
515
515
  }
516
516
  }
517
- function be(e, r) {
517
+ function _e(e, r) {
518
518
  {
519
519
  if (typeof e != "object")
520
520
  return;
521
- if (z(e))
521
+ if (G(e))
522
522
  for (var t = 0; t < e.length; t++) {
523
523
  var n = e[t];
524
- H(n) && ye(n, r);
524
+ Z(n) && he(n, r);
525
525
  }
526
- else if (H(e))
526
+ else if (Z(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
- H(o.value) && ye(o.value, r);
532
+ Z(o.value) && he(o.value, r);
533
533
  }
534
534
  }
535
535
  }
@@ -543,19 +543,19 @@ Check the top-level render call using <` + t + ">.");
543
543
  t = r.propTypes;
544
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 === d))
546
+ r.$$typeof === E))
547
547
  t = r.propTypes;
548
548
  else
549
549
  return;
550
550
  if (t) {
551
- var n = P(r);
552
- Ne(t, e.props, "prop", n, e);
553
- } else if (r.PropTypes !== void 0 && !X) {
554
- X = !0;
555
- var i = P(r);
556
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
551
+ var n = C(r);
552
+ Be(t, e.props, "prop", n, e);
553
+ } else if (r.PropTypes !== void 0 && !H) {
554
+ H = !0;
555
+ var i = C(r);
556
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
557
557
  }
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.");
558
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
559
  }
560
560
  }
561
561
  function ar(e) {
@@ -563,123 +563,120 @@ 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
- F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
566
+ D(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
567
567
  break;
568
568
  }
569
569
  }
570
- e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
570
+ e.ref !== null && (D(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
571
571
  }
572
572
  }
573
- var _e = {};
574
- function we(e, r, t, n, i, u) {
573
+ var we = {};
574
+ function Te(e, r, t, n, i, u) {
575
575
  {
576
576
  var o = Le(e);
577
577
  if (!o) {
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
- var p = rr();
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);
580
+ var v = rr();
581
+ v ? a += v : a += Re();
582
+ var s;
583
+ e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === m ? (s = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
584
584
  }
585
- var c = er(e, r, t, i, u);
586
- if (c == null)
587
- return c;
585
+ var l = er(e, r, t, i, u);
586
+ if (l == null)
587
+ return l;
588
588
  if (o) {
589
589
  var _ = r.children;
590
590
  if (_ !== void 0)
591
591
  if (n)
592
- if (z(_)) {
593
- for (var A = 0; A < _.length; A++)
594
- be(_[A], e);
592
+ if (G(_)) {
593
+ for (var F = 0; F < _.length; F++)
594
+ _e(_[F], e);
595
595
  Object.freeze && Object.freeze(_);
596
596
  } else
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.");
597
+ d("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(_, e);
599
+ _e(_, e);
600
600
  }
601
- if (Y.call(r, "key")) {
602
- var k = P(e), g = Object.keys(r).filter(function(cr) {
601
+ if (L.call(r, "key")) {
602
+ var S = C(e), y = Object.keys(r).filter(function(cr) {
603
603
  return cr !== "key";
604
- }), Z = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
605
- if (!_e[k + Z]) {
606
- var lr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
607
- v(`A props object containing a "key" prop is being spread into JSX:
604
+ }), Q = y.length > 0 ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}";
605
+ if (!we[S + Q]) {
606
+ var lr = y.length > 0 ? "{" + y.join(": ..., ") + ": ...}" : "{}";
607
+ d(`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, k, lr, k), _e[k + Z] = !0;
612
+ <%s key={someKey} {...props} />`, Q, S, lr, S), we[S + Q] = !0;
613
613
  }
614
614
  }
615
- return e === R ? ar(c) : nr(c), c;
615
+ return e === R ? ar(l) : nr(l), l;
616
616
  }
617
617
  }
618
618
  function or(e, r, t) {
619
- return we(e, r, t, !0);
619
+ return Te(e, r, t, !0);
620
620
  }
621
621
  function ir(e, r, t) {
622
- return we(e, r, t, !1);
622
+ return Te(e, r, t, !1);
623
623
  }
624
624
  var ur = ir, sr = or;
625
- W.Fragment = R, W.jsx = ur, W.jsxs = sr;
626
- }()), W;
625
+ $.Fragment = R, $.jsx = ur, $.jsxs = sr;
626
+ }()), $;
627
627
  }
628
628
  var Pe;
629
- function Er() {
630
- return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? B.exports = vr() : B.exports = pr()), B.exports;
629
+ function mr() {
630
+ return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? N.exports = vr() : N.exports = pr()), N.exports;
631
631
  }
632
- var mr = Er();
633
- const gr = (E, m) => {
634
- const b = (R) => {
635
- E.current && !E.current.contains(R.target) && m(R);
632
+ var Er = mr();
633
+ const gr = (p, m) => {
634
+ const h = (R) => {
635
+ p.current && !p.current.contains(R.target) && m(R);
636
636
  };
637
- Ce.useEffect(() => (document.addEventListener("click", b, { capture: !0 }), () => {
638
- document.removeEventListener("click", b, { capture: !0 });
637
+ Se.useEffect(() => (document.addEventListener("click", h, { capture: !0 }), () => {
638
+ document.removeEventListener("click", h, { capture: !0 });
639
639
  }));
640
- }, Rr = "Escape", hr = (E, m) => {
641
- const b = ({ key: R }) => {
642
- R === E && m();
640
+ }, yr = "Escape", Rr = (p, m) => {
641
+ const h = ({ key: R }) => {
642
+ R === p && m();
643
643
  };
644
- Ce.useEffect(() => (document.addEventListener("keyup", b), () => {
645
- document.removeEventListener("keyup", b);
644
+ Se.useEffect(() => (document.addEventListener("keyup", h), () => {
645
+ document.removeEventListener("keyup", h);
646
646
  }), []);
647
- }, yr = () => ({ useOutsideClick: gr, useKeyPress: hr, ESCAPE_KEY: Rr }), br = yr;
648
- function Tr(E) {
649
- const [m, b] = fr(null), { useOutsideClick: R, useKeyPress: x, ESCAPE_KEY: j } = br(), O = I.useRef(), w = () => {
647
+ }, br = () => ({ useOutsideClick: gr, useKeyPress: Rr, ESCAPE_KEY: yr }), hr = br;
648
+ function Tr(p) {
649
+ const [m, h] = fr(null), { useOutsideClick: R, useKeyPress: k, ESCAPE_KEY: x } = hr(), O = A.useRef(), w = () => {
650
650
  setTimeout(function() {
651
- E.handleOpen(!1);
651
+ p.handleOpen(!1);
652
652
  }, 50);
653
653
  };
654
654
  R(O, () => {
655
655
  w();
656
- }), x(j, () => {
656
+ }), k(x, () => {
657
657
  w();
658
658
  });
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 });
659
+ const f = (c, E) => {
660
+ const g = c.getBoundingClientRect(), T = E.getBoundingClientRect();
661
+ return g.top >= T.top && g.bottom <= T.bottom;
662
+ }, b = A.useCallback(() => {
663
+ const c = document.getElementById(p.elementId), E = document.getElementById("cmd-modal-body");
664
+ if (c && (!E || f(c, E))) {
665
+ const g = c.getBoundingClientRect(), T = g.left, W = g.bottom, K = g.width;
666
+ h({ left: T, bottom: W, width: K });
670
667
  } else
671
- b(null);
668
+ h(null);
672
669
  }, []);
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();
677
- }, [E.elementId]), m ? dr.createPortal(
678
- /* @__PURE__ */ mr.jsx(
670
+ return A.useEffect(() => (window.addEventListener("scroll", b, { capture: !0 }), window.addEventListener("resize", b, { capture: !0 }), () => {
671
+ window.removeEventListener("scroll", b, { capture: !0 }), window.removeEventListener("resize", b, { capture: !0 });
672
+ }), [b]), A.useEffect(() => {
673
+ b();
674
+ }, [p.elementId]), m ? dr.createPortal(
675
+ /* @__PURE__ */ Er.jsx(
679
676
  "div",
680
677
  {
681
678
  className: "font-poppins",
682
- id: `cmd-dropdown-portal-${E.elementId}`,
679
+ id: `cmd-dropdown-portal-${p.elementId}`,
683
680
  ref: O,
684
681
  style: {
685
682
  position: "absolute",
@@ -688,7 +685,7 @@ function Tr(E) {
688
685
  width: m.width,
689
686
  zIndex: 999
690
687
  },
691
- children: E.children
688
+ children: p.children
692
689
  }
693
690
  ),
694
691
  document.body