@hybr1d-tech/charizard 0.7.17 → 0.7.18

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/hybr1d-ui.js CHANGED
@@ -78,16 +78,16 @@ function Ba() {
78
78
  var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
79
  function v(g) {
80
80
  {
81
- for (var j = arguments.length, k = new Array(j > 1 ? j - 1 : 0), Z = 1; Z < j; Z++)
82
- k[Z - 1] = arguments[Z];
83
- y("error", g, k);
81
+ for (var j = arguments.length, H = new Array(j > 1 ? j - 1 : 0), Z = 1; Z < j; Z++)
82
+ H[Z - 1] = arguments[Z];
83
+ y("error", g, H);
84
84
  }
85
85
  }
86
- function y(g, j, k) {
86
+ function y(g, j, H) {
87
87
  {
88
88
  var Z = C.ReactDebugCurrentFrame, a0 = Z.getStackAddendum();
89
- a0 !== "" && (j += "%s", k = k.concat([a0]));
90
- var i0 = k.map(function(t0) {
89
+ a0 !== "" && (j += "%s", H = H.concat([a0]));
90
+ var i0 = H.map(function(t0) {
91
91
  return String(t0);
92
92
  });
93
93
  i0.unshift("Warning: " + j), Function.prototype.apply.call(console[g], console, i0);
@@ -102,12 +102,12 @@ function Ba() {
102
102
  // with.
103
103
  g.$$typeof === G || g.getModuleId !== void 0));
104
104
  }
105
- function q(g, j, k) {
105
+ function q(g, j, H) {
106
106
  var Z = g.displayName;
107
107
  if (Z)
108
108
  return Z;
109
109
  var a0 = j.displayName || j.name || "";
110
- return a0 !== "" ? k + "(" + a0 + ")" : k;
110
+ return a0 !== "" ? H + "(" + a0 + ")" : H;
111
111
  }
112
112
  function P(g) {
113
113
  return g.displayName || "Context";
@@ -139,8 +139,8 @@ function Ba() {
139
139
  var j = g;
140
140
  return P(j) + ".Consumer";
141
141
  case i:
142
- var k = g;
143
- return P(k._context) + ".Provider";
142
+ var H = g;
143
+ return P(H._context) + ".Provider";
144
144
  case l:
145
145
  return q(g, g.render, "ForwardRef");
146
146
  case m:
@@ -219,8 +219,8 @@ function Ba() {
219
219
  X < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
220
220
  }
221
221
  }
222
- var H = C.ReactCurrentDispatcher, $;
223
- function U(g, j, k) {
222
+ var k = C.ReactCurrentDispatcher, $;
223
+ function U(g, j, H) {
224
224
  {
225
225
  if ($ === void 0)
226
226
  try {
@@ -242,16 +242,16 @@ function Ba() {
242
242
  if (!g || w0)
243
243
  return "";
244
244
  {
245
- var k = E0.get(g);
246
- if (k !== void 0)
247
- return k;
245
+ var H = E0.get(g);
246
+ if (H !== void 0)
247
+ return H;
248
248
  }
249
249
  var Z;
250
250
  w0 = !0;
251
251
  var a0 = Error.prepareStackTrace;
252
252
  Error.prepareStackTrace = void 0;
253
253
  var i0;
254
- i0 = H.current, H.current = null, F0();
254
+ i0 = k.current, k.current = null, F0();
255
255
  try {
256
256
  if (j) {
257
257
  var t0 = function() {
@@ -304,19 +304,19 @@ function Ba() {
304
304
  }
305
305
  }
306
306
  } finally {
307
- w0 = !1, H.current = i0, g0(), Error.prepareStackTrace = a0;
307
+ w0 = !1, k.current = i0, g0(), Error.prepareStackTrace = a0;
308
308
  }
309
309
  var Ge = g ? g.displayName || g.name : "", je = Ge ? U(Ge) : "";
310
310
  return typeof g == "function" && E0.set(g, je), je;
311
311
  }
312
- function Y0(g, j, k) {
312
+ function Y0(g, j, H) {
313
313
  return ee(g, !1);
314
314
  }
315
315
  function R0(g) {
316
316
  var j = g.prototype;
317
317
  return !!(j && j.isReactComponent);
318
318
  }
319
- function K0(g, j, k) {
319
+ function K0(g, j, H) {
320
320
  if (g == null)
321
321
  return "";
322
322
  if (typeof g == "function")
@@ -334,11 +334,11 @@ function Ba() {
334
334
  case l:
335
335
  return Y0(g.render);
336
336
  case m:
337
- return K0(g.type, j, k);
337
+ return K0(g.type, j, H);
338
338
  case h: {
339
339
  var Z = g, a0 = Z._payload, i0 = Z._init;
340
340
  try {
341
- return K0(i0(a0), j, k);
341
+ return K0(i0(a0), j, H);
342
342
  } catch {
343
343
  }
344
344
  }
@@ -348,12 +348,12 @@ function Ba() {
348
348
  var he = Object.prototype.hasOwnProperty, dt = {}, Ce = C.ReactDebugCurrentFrame;
349
349
  function le(g) {
350
350
  if (g) {
351
- var j = g._owner, k = K0(g.type, g._source, j ? j.type : null);
352
- Ce.setExtraStackFrame(k);
351
+ var j = g._owner, H = K0(g.type, g._source, j ? j.type : null);
352
+ Ce.setExtraStackFrame(H);
353
353
  } else
354
354
  Ce.setExtraStackFrame(null);
355
355
  }
356
- function T0(g, j, k, Z, a0) {
356
+ function T0(g, j, H, Z, a0) {
357
357
  {
358
358
  var i0 = Function.call.bind(he);
359
359
  for (var t0 in g)
@@ -361,14 +361,14 @@ function Ba() {
361
361
  var e0 = void 0;
362
362
  try {
363
363
  if (typeof g[t0] != "function") {
364
- var P0 = Error((Z || "React class") + ": " + k + " type `" + t0 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[t0] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
364
+ var P0 = Error((Z || "React class") + ": " + H + " type `" + t0 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[t0] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
365
365
  throw P0.name = "Invariant Violation", P0;
366
366
  }
367
- e0 = g[t0](j, t0, Z, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
367
+ e0 = g[t0](j, t0, Z, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
368
368
  } catch (v0) {
369
369
  e0 = v0;
370
370
  }
371
- e0 && !(e0 instanceof Error) && (le(a0), 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).", Z || "React class", k, t0, typeof e0), le(null)), e0 instanceof Error && !(e0.message in dt) && (dt[e0.message] = !0, le(a0), v("Failed %s type: %s", k, e0.message), le(null));
371
+ e0 && !(e0 instanceof Error) && (le(a0), 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).", Z || "React class", H, t0, typeof e0), le(null)), e0 instanceof Error && !(e0.message in dt) && (dt[e0.message] = !0, le(a0), v("Failed %s type: %s", H, e0.message), le(null));
372
372
  }
373
373
  }
374
374
  }
@@ -378,8 +378,8 @@ function Ba() {
378
378
  }
379
379
  function Go(g) {
380
380
  {
381
- var j = typeof Symbol == "function" && Symbol.toStringTag, k = j && g[Symbol.toStringTag] || g.constructor.name || "Object";
382
- return k;
381
+ var j = typeof Symbol == "function" && Symbol.toStringTag, H = j && g[Symbol.toStringTag] || g.constructor.name || "Object";
382
+ return H;
383
383
  }
384
384
  }
385
385
  function Do(g) {
@@ -421,40 +421,40 @@ function Ba() {
421
421
  }
422
422
  function Oo(g, j) {
423
423
  if (typeof g.ref == "string" && $e.current && j && $e.current.stateNode !== j) {
424
- var k = R($e.current.type);
425
- $t[k] || (v('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', R($e.current.type), g.ref), $t[k] = !0);
424
+ var H = R($e.current.type);
425
+ $t[H] || (v('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', R($e.current.type), g.ref), $t[H] = !0);
426
426
  }
427
427
  }
428
428
  function zo(g, j) {
429
429
  {
430
- var k = function() {
430
+ var H = function() {
431
431
  q2 || (q2 = !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)", j));
432
432
  };
433
- k.isReactWarning = !0, Object.defineProperty(g, "key", {
434
- get: k,
433
+ H.isReactWarning = !0, Object.defineProperty(g, "key", {
434
+ get: H,
435
435
  configurable: !0
436
436
  });
437
437
  }
438
438
  }
439
439
  function Wo(g, j) {
440
440
  {
441
- var k = function() {
441
+ var H = function() {
442
442
  U2 || (U2 = !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)", j));
443
443
  };
444
- k.isReactWarning = !0, Object.defineProperty(g, "ref", {
445
- get: k,
444
+ H.isReactWarning = !0, Object.defineProperty(g, "ref", {
445
+ get: H,
446
446
  configurable: !0
447
447
  });
448
448
  }
449
449
  }
450
- var Zo = function(g, j, k, Z, a0, i0, t0) {
450
+ var Zo = function(g, j, H, Z, a0, i0, t0) {
451
451
  var e0 = {
452
452
  // This tag allows us to uniquely identify this as a React Element
453
453
  $$typeof: t,
454
454
  // Built-in properties that belong on the element
455
455
  type: g,
456
456
  key: j,
457
- ref: k,
457
+ ref: H,
458
458
  props: t0,
459
459
  // Record the component responsible for creating this element.
460
460
  _owner: i0
@@ -476,10 +476,10 @@ function Ba() {
476
476
  value: a0
477
477
  }), Object.freeze && (Object.freeze(e0.props), Object.freeze(e0)), e0;
478
478
  };
479
- function Xo(g, j, k, Z, a0) {
479
+ function Xo(g, j, H, Z, a0) {
480
480
  {
481
481
  var i0, t0 = {}, e0 = null, P0 = null;
482
- k !== void 0 && (J2(k), e0 = "" + k), Po(j) && (J2(j.key), e0 = "" + j.key), To(j) && (P0 = j.ref, Oo(j, a0));
482
+ H !== void 0 && (J2(H), e0 = "" + H), Po(j) && (J2(j.key), e0 = "" + j.key), To(j) && (P0 = j.ref, Oo(j, a0));
483
483
  for (i0 in j)
484
484
  he.call(j, i0) && !Mo.hasOwnProperty(i0) && (t0[i0] = j[i0]);
485
485
  if (g && g.defaultProps) {
@@ -497,8 +497,8 @@ function Ba() {
497
497
  var Yt = C.ReactCurrentOwner, Q2 = C.ReactDebugCurrentFrame;
498
498
  function He(g) {
499
499
  if (g) {
500
- var j = g._owner, k = K0(g.type, g._source, j ? j.type : null);
501
- Q2.setExtraStackFrame(k);
500
+ var j = g._owner, H = K0(g.type, g._source, j ? j.type : null);
501
+ Q2.setExtraStackFrame(H);
502
502
  } else
503
503
  Q2.setExtraStackFrame(null);
504
504
  }
@@ -527,10 +527,10 @@ Check the render method of \`` + g + "`.";
527
527
  {
528
528
  var j = K2();
529
529
  if (!j) {
530
- var k = typeof g == "string" ? g : g.displayName || g.name;
531
- k && (j = `
530
+ var H = typeof g == "string" ? g : g.displayName || g.name;
531
+ H && (j = `
532
532
 
533
- Check the top-level render call using <` + k + ">.");
533
+ Check the top-level render call using <` + H + ">.");
534
534
  }
535
535
  return j;
536
536
  }
@@ -540,12 +540,12 @@ Check the top-level render call using <` + k + ">.");
540
540
  if (!g._store || g._store.validated || g.key != null)
541
541
  return;
542
542
  g._store.validated = !0;
543
- var k = Yo(j);
544
- if (en[k])
543
+ var H = Yo(j);
544
+ if (en[H])
545
545
  return;
546
- en[k] = !0;
546
+ en[H] = !0;
547
547
  var Z = "";
548
- g && g._owner && g._owner !== Yt.current && (Z = " It was passed a child from " + R(g._owner.type) + "."), He(g), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, Z), He(null);
548
+ g && g._owner && g._owner !== Yt.current && (Z = " It was passed a child from " + R(g._owner.type) + "."), He(g), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, Z), He(null);
549
549
  }
550
550
  }
551
551
  function nn(g, j) {
@@ -553,8 +553,8 @@ Check the top-level render call using <` + k + ">.");
553
553
  if (typeof g != "object")
554
554
  return;
555
555
  if (Ne(g))
556
- for (var k = 0; k < g.length; k++) {
557
- var Z = g[k];
556
+ for (var H = 0; H < g.length; H++) {
557
+ var Z = g[H];
558
558
  qt(Z) && tn(Z, j);
559
559
  }
560
560
  else if (qt(g))
@@ -572,18 +572,18 @@ Check the top-level render call using <` + k + ">.");
572
572
  var j = g.type;
573
573
  if (j == null || typeof j == "string")
574
574
  return;
575
- var k;
575
+ var H;
576
576
  if (typeof j == "function")
577
- k = j.propTypes;
577
+ H = j.propTypes;
578
578
  else if (typeof j == "object" && (j.$$typeof === l || // Note: Memo only checks outer props here.
579
579
  // Inner props are checked in the reconciler.
580
580
  j.$$typeof === m))
581
- k = j.propTypes;
581
+ H = j.propTypes;
582
582
  else
583
583
  return;
584
- if (k) {
584
+ if (H) {
585
585
  var Z = R(j);
586
- T0(k, g.props, "prop", Z, g);
586
+ T0(H, g.props, "prop", Z, g);
587
587
  } else if (j.PropTypes !== void 0 && !Jt) {
588
588
  Jt = !0;
589
589
  var a0 = R(j);
@@ -594,8 +594,8 @@ Check the top-level render call using <` + k + ">.");
594
594
  }
595
595
  function qo(g) {
596
596
  {
597
- for (var j = Object.keys(g.props), k = 0; k < j.length; k++) {
598
- var Z = j[k];
597
+ for (var j = Object.keys(g.props), H = 0; H < j.length; H++) {
598
+ var Z = j[H];
599
599
  if (Z !== "children" && Z !== "key") {
600
600
  He(g), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), He(null);
601
601
  break;
@@ -605,7 +605,7 @@ Check the top-level render call using <` + k + ">.");
605
605
  }
606
606
  }
607
607
  var sn = {};
608
- function on(g, j, k, Z, a0, i0) {
608
+ function on(g, j, H, Z, a0, i0) {
609
609
  {
610
610
  var t0 = L(g);
611
611
  if (!t0) {
@@ -616,7 +616,7 @@ Check the top-level render call using <` + k + ">.");
616
616
  var v0;
617
617
  g === null ? v0 = "null" : Ne(g) ? v0 = "array" : g !== void 0 && g.$$typeof === t ? (v0 = "<" + (R(g.type) || "Unknown") + " />", e0 = " Did you accidentally export a JSX literal instead of a component?") : v0 = typeof g, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v0, e0);
618
618
  }
619
- var I0 = Xo(g, j, k, a0, i0);
619
+ var I0 = Xo(g, j, H, a0, i0);
620
620
  if (I0 == null)
621
621
  return I0;
622
622
  if (t0) {
@@ -649,11 +649,11 @@ React keys must be passed directly to JSX without using spread:
649
649
  return g === a ? qo(I0) : Jo(I0), I0;
650
650
  }
651
651
  }
652
- function Uo(g, j, k) {
653
- return on(g, j, k, !0);
652
+ function Uo(g, j, H) {
653
+ return on(g, j, H, !0);
654
654
  }
655
- function Qo(g, j, k) {
656
- return on(g, j, k, !1);
655
+ function Qo(g, j, H) {
656
+ return on(g, j, H, !1);
657
657
  }
658
658
  var Ko = Qo, ea = Uo;
659
659
  Je.Fragment = a, Je.jsx = Ko, Je.jsxs = ea;
@@ -1995,7 +1995,9 @@ function vs({
1995
1995
  id: f.useId(),
1996
1996
  positioning: { placement: (c == null ? void 0 : c.placement) || "bottom-end" }
1997
1997
  })
1998
- ), [x, b] = f.useState(!1), C = f.useRef(null), v = f.useRef(null), y = oe.connect(p, _, A0), A = d == null ? void 0 : d.customMenuStyles, S = d == null ? void 0 : d.customButtonStyles;
1998
+ ), [x, b] = f.useState(!1);
1999
+ console.warn(x);
2000
+ const C = f.useRef(null), v = f.useRef(null), y = oe.connect(p, _, A0), A = d == null ? void 0 : d.customMenuStyles, S = d == null ? void 0 : d.customButtonStyles;
1999
2001
  f.useEffect(() => {
2000
2002
  !u || !(i != null && i.setIsActive) || i.setIsActive(y.open);
2001
2003
  }, [y.open]);
@@ -2161,7 +2163,7 @@ function qi({
2161
2163
  customStyles: l
2162
2164
  }) {
2163
2165
  const [u, d] = f.useState(!1);
2164
- return /* @__PURE__ */ s.jsx(
2166
+ return console.log(u), /* @__PURE__ */ s.jsx(
2165
2167
  vs,
2166
2168
  {
2167
2169
  variant: e,
@@ -4462,14 +4464,14 @@ var pd = process.env.NODE_ENV === "production" ? {
4462
4464
  if (o && w.onChange) {
4463
4465
  var E = o.option, Y = o.options, J = o.removedValue, s0 = o.removedValues, r0 = o.value, D0 = function(U) {
4464
4466
  return Array.isArray(U) ? null : U;
4465
- }, o0 = J || E || D0(r0), C0 = o0 ? h(o0) : "", F0 = Y || s0 || void 0, g0 = F0 ? F0.map(h) : [], H = M({
4467
+ }, o0 = J || E || D0(r0), C0 = o0 ? h(o0) : "", F0 = Y || s0 || void 0, g0 = F0 ? F0.map(h) : [], k = M({
4466
4468
  // multiSelected items are usually items that have already been selected
4467
4469
  // or set by the user as a default value so we assume they are not disabled
4468
4470
  isDisabled: o0 && x(o0, c),
4469
4471
  label: C0,
4470
4472
  labels: g0
4471
4473
  }, o);
4472
- X = w.onChange(H);
4474
+ X = w.onChange(k);
4473
4475
  }
4474
4476
  return X;
4475
4477
  }, [o, w, x, c, h]), L = ye(function() {
@@ -5909,10 +5911,10 @@ var eo = function(t) {
5909
5911
  var n = this, r = this.getComponents(), i = r.Group, c = r.GroupHeading, l = r.Menu, u = r.MenuList, d = r.MenuPortal, m = r.LoadingMessage, h = r.NoOptionsMessage, p = r.Option, _ = this.commonProps, x = this.state.focusedOption, b = this.props, C = b.captureMenuScroll, v = b.inputValue, y = b.isLoading, A = b.loadingMessage, S = b.minMenuHeight, N = b.maxMenuHeight, B = b.menuIsOpen, w = b.menuPlacement, G = b.menuPosition, L = b.menuPortalTarget, q = b.menuShouldBlockScroll, P = b.menuShouldScrollIntoView, R = b.noOptionsMessage, D = b.onMenuScrollToTop, X = b.onMenuScrollToBottom;
5910
5912
  if (!B) return null;
5911
5913
  var E = function(C0, F0) {
5912
- var g0 = C0.type, H = C0.data, $ = C0.isDisabled, U = C0.isSelected, w0 = C0.label, E0 = C0.value, M0 = x === H, ee = $ ? void 0 : function() {
5913
- return n.onOptionHover(H);
5914
+ var g0 = C0.type, k = C0.data, $ = C0.isDisabled, U = C0.isSelected, w0 = C0.label, E0 = C0.value, M0 = x === k, ee = $ ? void 0 : function() {
5915
+ return n.onOptionHover(k);
5914
5916
  }, Y0 = $ ? void 0 : function() {
5915
- return n.selectOption(H);
5917
+ return n.selectOption(k);
5916
5918
  }, R0 = "".concat(n.getElementId("option"), "-").concat(F0), K0 = {
5917
5919
  id: R0,
5918
5920
  onClick: Y0,
@@ -5925,7 +5927,7 @@ var eo = function(t) {
5925
5927
  };
5926
5928
  return /* @__PURE__ */ f.createElement(p, W({}, _, {
5927
5929
  innerProps: K0,
5928
- data: H,
5930
+ data: k,
5929
5931
  isDisabled: $,
5930
5932
  isSelected: U,
5931
5933
  key: R0,
@@ -5939,9 +5941,9 @@ var eo = function(t) {
5939
5941
  if (this.hasOptions())
5940
5942
  Y = this.getCategorizedOptions().map(function(o0) {
5941
5943
  if (o0.type === "group") {
5942
- var C0 = o0.data, F0 = o0.options, g0 = o0.index, H = "".concat(n.getElementId("group"), "-").concat(g0), $ = "".concat(H, "-heading");
5944
+ var C0 = o0.data, F0 = o0.options, g0 = o0.index, k = "".concat(n.getElementId("group"), "-").concat(g0), $ = "".concat(k, "-heading");
5943
5945
  return /* @__PURE__ */ f.createElement(i, W({}, _, {
5944
- key: H,
5946
+ key: k,
5945
5947
  data: C0,
5946
5948
  options: F0,
5947
5949
  Heading: c,
@@ -5976,7 +5978,7 @@ var eo = function(t) {
5976
5978
  menuPosition: G,
5977
5979
  menuShouldScrollIntoView: P
5978
5980
  }, D0 = /* @__PURE__ */ f.createElement(K1, W({}, _, r0), function(o0) {
5979
- var C0 = o0.ref, F0 = o0.placerProps, g0 = F0.placement, H = F0.maxHeight;
5981
+ var C0 = o0.ref, F0 = o0.placerProps, g0 = F0.placement, k = F0.maxHeight;
5980
5982
  return /* @__PURE__ */ f.createElement(l, W({}, _, r0, {
5981
5983
  innerRef: C0,
5982
5984
  innerProps: {
@@ -6001,7 +6003,7 @@ var eo = function(t) {
6001
6003
  id: n.getElementId("listbox")
6002
6004
  },
6003
6005
  isLoading: y,
6004
- maxHeight: H,
6006
+ maxHeight: k,
6005
6007
  focusedOption: x
6006
6008
  }), Y);
6007
6009
  }));
@@ -6157,8 +6159,8 @@ var Kd = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
6157
6159
  function e5(e) {
6158
6160
  var t = e.defaultOptions, o = t === void 0 ? !1 : t, a = e.cacheOptions, n = a === void 0 ? !1 : a, r = e.loadOptions;
6159
6161
  e.options;
6160
- var i = e.isLoading, c = i === void 0 ? !1 : i, l = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = ce(e, Kd), h = m.inputValue, p = ie(void 0), _ = ie(!1), x = k0(Array.isArray(o) ? o : void 0), b = j0(x, 2), C = b[0], v = b[1], y = k0(typeof h < "u" ? h : ""), A = j0(y, 2), S = A[0], N = A[1], B = k0(o === !0), w = j0(B, 2), G = w[0], L = w[1], q = k0(void 0), P = j0(q, 2), R = P[0], D = P[1], X = k0([]), E = j0(X, 2), Y = E[0], J = E[1], s0 = k0(!1), r0 = j0(s0, 2), D0 = r0[0], o0 = r0[1], C0 = k0({}), F0 = j0(C0, 2), g0 = F0[0], H = F0[1], $ = k0(void 0), U = j0($, 2), w0 = U[0], E0 = U[1], M0 = k0(void 0), ee = j0(M0, 2), Y0 = ee[0], R0 = ee[1];
6161
- n !== Y0 && (H({}), R0(n)), o !== w0 && (v(Array.isArray(o) ? o : void 0), E0(o)), At(function() {
6162
+ var i = e.isLoading, c = i === void 0 ? !1 : i, l = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = ce(e, Kd), h = m.inputValue, p = ie(void 0), _ = ie(!1), x = k0(Array.isArray(o) ? o : void 0), b = j0(x, 2), C = b[0], v = b[1], y = k0(typeof h < "u" ? h : ""), A = j0(y, 2), S = A[0], N = A[1], B = k0(o === !0), w = j0(B, 2), G = w[0], L = w[1], q = k0(void 0), P = j0(q, 2), R = P[0], D = P[1], X = k0([]), E = j0(X, 2), Y = E[0], J = E[1], s0 = k0(!1), r0 = j0(s0, 2), D0 = r0[0], o0 = r0[1], C0 = k0({}), F0 = j0(C0, 2), g0 = F0[0], k = F0[1], $ = k0(void 0), U = j0($, 2), w0 = U[0], E0 = U[1], M0 = k0(void 0), ee = j0(M0, 2), Y0 = ee[0], R0 = ee[1];
6163
+ n !== Y0 && (k({}), R0(n)), o !== w0 && (v(Array.isArray(o) ? o : void 0), E0(o)), At(function() {
6162
6164
  return _.current = !0, function() {
6163
6165
  _.current = !1;
6164
6166
  };
@@ -6186,7 +6188,7 @@ function e5(e) {
6186
6188
  else {
6187
6189
  var Xt = p.current = {};
6188
6190
  N(T0), L(!0), o0(!R), K0(T0, function(Ne) {
6189
- _ && Xt === p.current && (p.current = void 0, L(!1), D(T0), J(Ne || []), o0(!1), H(Ne ? M(M({}, g0), {}, ze({}, T0, Ne)) : g0));
6191
+ _ && Xt === p.current && (p.current = void 0, L(!1), D(T0), J(Ne || []), o0(!1), k(Ne ? M(M({}, g0), {}, ze({}, T0, Ne)) : g0));
6190
6192
  });
6191
6193
  }
6192
6194
  }, [n, K0, R, g0, l]), dt = D0 ? [] : S && R ? Y : C || [];
@@ -10089,13 +10091,13 @@ function X9({
10089
10091
  const [L, q] = f.useState([]), [P, R] = f.useState([]), [D, X] = f.useState([]), [E, Y] = f.useState(null), [J, s0] = f.useState(""), r0 = f.useRef(), D0 = !!(a && P.length >= a);
10090
10092
  f.useEffect(() => {
10091
10093
  if (A.length > 0 && !P.length) {
10092
- const H = A.map(($) => ({ ...$, isUploaded: !0 }));
10093
- R(H);
10094
+ const k = A.map(($) => ({ ...$, isUploaded: !0 }));
10095
+ R(k);
10094
10096
  }
10095
10097
  }, [A]);
10096
- async function o0(H) {
10098
+ async function o0(k) {
10097
10099
  var E0, M0, ee, Y0;
10098
- const $ = H.target.files;
10100
+ const $ = k.target.files;
10099
10101
  Y(null), s0("");
10100
10102
  let U = [];
10101
10103
  if (a && $.length + P.length > a) {
@@ -10128,23 +10130,23 @@ function X9({
10128
10130
  }
10129
10131
  R([...P, ...U]), r0.current.value = "";
10130
10132
  }
10131
- function C0(H) {
10132
- const $ = P.filter((U) => U.key !== H);
10133
+ function C0(k) {
10134
+ const $ = P.filter((U) => U.key !== k);
10133
10135
  R($), e($);
10134
10136
  }
10135
- const F0 = (H) => {
10137
+ const F0 = (k) => {
10136
10138
  let $ = 0.5, U = 0;
10137
10139
  return setInterval(function() {
10138
10140
  U += $;
10139
10141
  let E0 = Math.round(Math.atan(U) / (Math.PI / 2) * 100 * 1e3) / 1e3;
10140
- E0 >= 70 && ($ = 0.2), X((M0) => D.find((Y0) => Y0.name === H) ? M0.map((Y0) => Y0.name !== H ? Y0 : { name: H, progress: Y0 }) : [...M0, { name: H, progress: E0 }]);
10142
+ E0 >= 70 && ($ = 0.2), X((M0) => D.find((Y0) => Y0.name === k) ? M0.map((Y0) => Y0.name !== k ? Y0 : { name: k, progress: Y0 }) : [...M0, { name: k, progress: E0 }]);
10141
10143
  }, 100);
10142
- }, g0 = (H) => {
10144
+ }, g0 = (k) => {
10143
10145
  var $;
10144
- return ($ = D.findLast((U) => U.name === H)) == null ? void 0 : $.progress;
10146
+ return ($ = D.findLast((U) => U.name === k)) == null ? void 0 : $.progress;
10145
10147
  };
10146
10148
  return lt(() => {
10147
- const H = async () => {
10149
+ const k = async () => {
10148
10150
  const $ = structuredClone(P).filter((w0) => !(L != null && L.includes(w0.key)));
10149
10151
  t && t(!0);
10150
10152
  const U = await G(
@@ -10158,7 +10160,7 @@ function X9({
10158
10160
  );
10159
10161
  R(U), e(U), t && t(!1);
10160
10162
  };
10161
- P.length && H();
10163
+ P.length && k();
10162
10164
  }, [P]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10163
10165
  /* @__PURE__ */ s.jsx(
10164
10166
  "input",
@@ -10180,19 +10182,19 @@ function X9({
10180
10182
  onClick: () => {
10181
10183
  D0 || (b && b(), r0.current.click());
10182
10184
  },
10183
- onDrop: (H) => {
10184
- D0 || (H.preventDefault(), H.persist(), o0({ target: { files: H.dataTransfer.files } }));
10185
+ onDrop: (k) => {
10186
+ D0 || (k.preventDefault(), k.persist(), o0({ target: { files: k.dataTransfer.files } }));
10185
10187
  },
10186
10188
  className: o ? "" : I(
10187
10189
  Q.uploadBtn,
10188
10190
  u,
10189
10191
  p || D0 ? Q.disabledUploadBtn : ""
10190
10192
  ),
10191
- onDragOver: (H) => {
10192
- H.preventDefault();
10193
+ onDragOver: (k) => {
10194
+ k.preventDefault();
10193
10195
  },
10194
- onDragLeave: (H) => {
10195
- H.preventDefault();
10196
+ onDragLeave: (k) => {
10197
+ k.preventDefault();
10196
10198
  },
10197
10199
  style: {
10198
10200
  background: D0 ? "#F4F4F4" : "",
@@ -10241,9 +10243,9 @@ function X9({
10241
10243
  (E || !!J) && /* @__PURE__ */ s.jsx("p", { className: Q.fileUploadLimitError, children: E || J }),
10242
10244
  B && /* @__PURE__ */ s.jsx("p", { className: Q.errorMsg, children: B }),
10243
10245
  h,
10244
- S && /* @__PURE__ */ s.jsx("div", { className: I(Q.fileContainer, l), children: !!P.length && P.map((H, $) => {
10246
+ S && /* @__PURE__ */ s.jsx("div", { className: I(Q.fileContainer, l), children: !!P.length && P.map((k, $) => {
10245
10247
  var U, w0, E0, M0;
10246
- return /* @__PURE__ */ s.jsx("div", { children: L.indexOf(H.key || "") !== -1 ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : H.isUploaded ? /* @__PURE__ */ s.jsx(
10248
+ return /* @__PURE__ */ s.jsx("div", { children: L.indexOf(k.key || "") !== -1 ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : k.isUploaded ? /* @__PURE__ */ s.jsx(
10247
10249
  "div",
10248
10250
  {
10249
10251
  className: I(
@@ -10257,7 +10259,7 @@ function X9({
10257
10259
  "img",
10258
10260
  {
10259
10261
  className: Q.uploadingImg,
10260
- src: ts(H.type || H.ext),
10262
+ src: ts(k.type || k.ext),
10261
10263
  alt: "upload"
10262
10264
  }
10263
10265
  ),
@@ -10265,23 +10267,20 @@ function X9({
10265
10267
  /* @__PURE__ */ s.jsx(
10266
10268
  "a",
10267
10269
  {
10268
- href: H.url,
10270
+ href: k.url,
10269
10271
  target: "_blank",
10270
10272
  rel: "noreferrer",
10271
10273
  className: Q.fileName,
10272
- children: H.fileName
10274
+ children: k.fileName
10273
10275
  }
10274
10276
  ),
10275
10277
  /* @__PURE__ */ s.jsxs("div", { className: Q.subTitle2, children: [
10276
- (H.ext || H.type) && /* @__PURE__ */ s.jsxs("div", { className: Q.fileType, children: [
10277
- H.ext || ((U = H.type) == null ? void 0 : U.split("/")[1]),
10278
+ (k.ext || k.type) && /* @__PURE__ */ s.jsxs("div", { className: Q.fileType, children: [
10279
+ k.ext || ((U = k.type) == null ? void 0 : U.split("/")[1]),
10278
10280
  " "
10279
10281
  ] }),
10280
- H.size && /* @__PURE__ */ s.jsx("div", { className: Q.smallCircle }),
10281
- /* @__PURE__ */ s.jsxs("div", { children: [
10282
- " ",
10283
- H.size
10284
- ] })
10282
+ k.size && /* @__PURE__ */ s.jsx("div", { className: Q.smallCircle }),
10283
+ /* @__PURE__ */ s.jsx("div", { children: Number(k.size.split(" ")[0]).toFixed(2) + " " + k.size.split(" ")[1] })
10285
10284
  ] })
10286
10285
  ] })
10287
10286
  ] }),
@@ -10289,13 +10288,13 @@ function X9({
10289
10288
  "div",
10290
10289
  {
10291
10290
  className: Q.actionBtn,
10292
- onClick: () => C0(H.key),
10291
+ onClick: () => C0(k.key),
10293
10292
  children: /* @__PURE__ */ s.jsx("img", { className: Q.deleteIcon, src: ho, alt: "delete" })
10294
10293
  }
10295
10294
  )
10296
10295
  ] })
10297
10296
  },
10298
- H.fileName ?? $
10297
+ k.fileName ?? $
10299
10298
  ) : /* @__PURE__ */ s.jsxs(
10300
10299
  "div",
10301
10300
  {
@@ -10305,7 +10304,7 @@ function X9({
10305
10304
  "div",
10306
10305
  {
10307
10306
  className: Q.progressBar,
10308
- style: { width: `${g0(H.key)}%` }
10307
+ style: { width: `${g0(k.key)}%` }
10309
10308
  }
10310
10309
  ),
10311
10310
  /* @__PURE__ */ s.jsxs("div", { className: Q.contentContainer, children: [
@@ -10314,7 +10313,7 @@ function X9({
10314
10313
  "img",
10315
10314
  {
10316
10315
  className: Q.uploadingImg,
10317
- src: ts(H.type || H.ext),
10316
+ src: ts(k.type || k.ext),
10318
10317
  alt: "upload"
10319
10318
  }
10320
10319
  ),
@@ -10322,16 +10321,16 @@ function X9({
10322
10321
  /* @__PURE__ */ s.jsx("div", { className: Q.fileName, children: "Uploading file" }),
10323
10322
  /* @__PURE__ */ s.jsxs("div", { className: Q.subTitle2, children: [
10324
10323
  /* @__PURE__ */ s.jsxs("div", { className: Q.fileType, children: [
10325
- (w0 = g0(H.key)) == null ? void 0 : w0.toFixed(0),
10324
+ (w0 = g0(k.key)) == null ? void 0 : w0.toFixed(0),
10326
10325
  " %",
10327
10326
  " "
10328
10327
  ] }),
10329
10328
  /* @__PURE__ */ s.jsx("div", { className: Q.smallCircle }),
10330
10329
  /* @__PURE__ */ s.jsxs("div", { children: [
10331
- H.size.split(" ")[0] && ((E0 = g0(H.key)) != null && E0.toFixed(0)) && typeof Number(H.size.split(" ")[0]) == "number" ? (+H.size.split(" ")[0] * ((Number((M0 = g0(H.key)) == null ? void 0 : M0.toFixed(0)) || 1) / 100)).toFixed(2) : "",
10330
+ k.size.split(" ")[0] && ((E0 = g0(k.key)) != null && E0.toFixed(0)) && typeof Number(k.size.split(" ")[0]) == "number" ? (+k.size.split(" ")[0] * ((Number((M0 = g0(k.key)) == null ? void 0 : M0.toFixed(0)) || 1) / 100)).toFixed(2) : "",
10332
10331
  " ",
10333
10332
  "of ",
10334
- H.size
10333
+ k.size
10335
10334
  ] })
10336
10335
  ] })
10337
10336
  ] })
@@ -10340,7 +10339,7 @@ function X9({
10340
10339
  "div",
10341
10340
  {
10342
10341
  className: Q.actionBtn,
10343
- onClick: () => q([...L, H.key]),
10342
+ onClick: () => q([...L, k.key]),
10344
10343
  children: [
10345
10344
  " ",
10346
10345
  /* @__PURE__ */ s.jsx(V, { path: re, height: 16, width: 16 })
@@ -10350,8 +10349,8 @@ function X9({
10350
10349
  ] })
10351
10350
  ]
10352
10351
  },
10353
- H.fileName ?? $
10354
- ) }, H.key + H.fileName);
10352
+ k.fileName ?? $
10353
+ ) }, k.key + k.fileName);
10355
10354
  }) })
10356
10355
  ] })
10357
10356
  ] });