@hybr1d-tech/charizard 0.7.19 → 0.7.21

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__ */ n.jsx(
2166
+ return console.log(u), /* @__PURE__ */ n.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 s = 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 s.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 s.onOptionHover(k);
5914
5916
  }, Y0 = $ ? void 0 : function() {
5915
- return s.selectOption(H);
5917
+ return s.selectOption(k);
5916
5918
  }, R0 = "".concat(s.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(s.getElementId("group"), "-").concat(g0), $ = "".concat(H, "-heading");
5944
+ var C0 = o0.data, F0 = o0.options, g0 = o0.index, k = "".concat(s.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: s.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, s = 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
- s !== Y0 && (H({}), R0(s)), 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
+ s !== Y0 && (k({}), R0(s)), 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
  }, [s, K0, R, g0, l]), dt = D0 ? [] : S && R ? Y : C || [];
@@ -7412,8 +7414,8 @@ function H4({
7412
7414
  {
7413
7415
  label: "Cancel request",
7414
7416
  onClick: (i) => {
7415
- if (typeof t[o] < "u") {
7416
- t[o](i);
7417
+ if (typeof t[o + 1] < "u") {
7418
+ t[o + 1](i);
7417
7419
  return;
7418
7420
  }
7419
7421
  a(`/${i.module_reference}/${i.task_details_id}?cancel=true`, {
@@ -9703,7 +9705,12 @@ function z9({
9703
9705
  month: new Date(e).getMonth(),
9704
9706
  year: new Date(e).getFullYear()
9705
9707
  });
9706
- }, [e]);
9708
+ }, [e]), f.useEffect(() => {
9709
+ x({
9710
+ month: (/* @__PURE__ */ new Date()).getMonth(),
9711
+ year: (/* @__PURE__ */ new Date()).getFullYear()
9712
+ });
9713
+ }, []);
9707
9714
  const b = f.useMemo(() => {
9708
9715
  if (e) {
9709
9716
  const A = wa(e) ? e : Na(e);
@@ -10106,13 +10113,13 @@ function X9({
10106
10113
  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);
10107
10114
  f.useEffect(() => {
10108
10115
  if (A.length > 0 && !P.length) {
10109
- const H = A.map(($) => ({ ...$, isUploaded: !0 }));
10110
- R(H);
10116
+ const k = A.map(($) => ({ ...$, isUploaded: !0 }));
10117
+ R(k);
10111
10118
  }
10112
10119
  }, [A]);
10113
- async function o0(H) {
10120
+ async function o0(k) {
10114
10121
  var E0, M0, ee, Y0;
10115
- const $ = H.target.files;
10122
+ const $ = k.target.files;
10116
10123
  Y(null), s0("");
10117
10124
  let U = [];
10118
10125
  if (a && $.length + P.length > a) {
@@ -10145,23 +10152,23 @@ function X9({
10145
10152
  }
10146
10153
  R([...P, ...U]), r0.current.value = "";
10147
10154
  }
10148
- function C0(H) {
10149
- const $ = P.filter((U) => U.key !== H);
10155
+ function C0(k) {
10156
+ const $ = P.filter((U) => U.key !== k);
10150
10157
  R($), e($);
10151
10158
  }
10152
- const F0 = (H) => {
10159
+ const F0 = (k) => {
10153
10160
  let $ = 0.5, U = 0;
10154
10161
  return setInterval(function() {
10155
10162
  U += $;
10156
10163
  let E0 = Math.round(Math.atan(U) / (Math.PI / 2) * 100 * 1e3) / 1e3;
10157
- 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 }]);
10164
+ 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 }]);
10158
10165
  }, 100);
10159
- }, g0 = (H) => {
10166
+ }, g0 = (k) => {
10160
10167
  var $;
10161
- return ($ = D.findLast((U) => U.name === H)) == null ? void 0 : $.progress;
10168
+ return ($ = D.findLast((U) => U.name === k)) == null ? void 0 : $.progress;
10162
10169
  };
10163
10170
  return lt(() => {
10164
- const H = async () => {
10171
+ const k = async () => {
10165
10172
  const $ = structuredClone(P).filter((w0) => !(L != null && L.includes(w0.key)));
10166
10173
  t && t(!0);
10167
10174
  const U = await G(
@@ -10175,7 +10182,7 @@ function X9({
10175
10182
  );
10176
10183
  R(U), e(U), t && t(!1);
10177
10184
  };
10178
- P.length && H();
10185
+ P.length && k();
10179
10186
  }, [P]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
10180
10187
  /* @__PURE__ */ n.jsx(
10181
10188
  "input",
@@ -10197,19 +10204,19 @@ function X9({
10197
10204
  onClick: () => {
10198
10205
  D0 || (b && b(), r0.current.click());
10199
10206
  },
10200
- onDrop: (H) => {
10201
- D0 || (H.preventDefault(), H.persist(), o0({ target: { files: H.dataTransfer.files } }));
10207
+ onDrop: (k) => {
10208
+ D0 || (k.preventDefault(), k.persist(), o0({ target: { files: k.dataTransfer.files } }));
10202
10209
  },
10203
10210
  className: o ? "" : I(
10204
10211
  Q.uploadBtn,
10205
10212
  u,
10206
10213
  p || D0 ? Q.disabledUploadBtn : ""
10207
10214
  ),
10208
- onDragOver: (H) => {
10209
- H.preventDefault();
10215
+ onDragOver: (k) => {
10216
+ k.preventDefault();
10210
10217
  },
10211
- onDragLeave: (H) => {
10212
- H.preventDefault();
10218
+ onDragLeave: (k) => {
10219
+ k.preventDefault();
10213
10220
  },
10214
10221
  style: {
10215
10222
  background: D0 ? "#F4F4F4" : "",
@@ -10258,9 +10265,9 @@ function X9({
10258
10265
  (E || !!J) && /* @__PURE__ */ n.jsx("p", { className: Q.fileUploadLimitError, children: E || J }),
10259
10266
  B && /* @__PURE__ */ n.jsx("p", { className: Q.errorMsg, children: B }),
10260
10267
  h,
10261
- S && /* @__PURE__ */ n.jsx("div", { className: I(Q.fileContainer, l), children: !!P.length && P.map((H, $) => {
10268
+ S && /* @__PURE__ */ n.jsx("div", { className: I(Q.fileContainer, l), children: !!P.length && P.map((k, $) => {
10262
10269
  var U, w0, E0, M0;
10263
- return /* @__PURE__ */ n.jsx("div", { children: L.indexOf(H.key || "") !== -1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : H.isUploaded ? /* @__PURE__ */ n.jsx(
10270
+ return /* @__PURE__ */ n.jsx("div", { children: L.indexOf(k.key || "") !== -1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : k.isUploaded ? /* @__PURE__ */ n.jsx(
10264
10271
  "div",
10265
10272
  {
10266
10273
  className: I(
@@ -10274,7 +10281,7 @@ function X9({
10274
10281
  "img",
10275
10282
  {
10276
10283
  className: Q.uploadingImg,
10277
- src: ts(H.type || H.ext),
10284
+ src: ts(k.type || k.ext),
10278
10285
  alt: "upload"
10279
10286
  }
10280
10287
  ),
@@ -10282,23 +10289,20 @@ function X9({
10282
10289
  /* @__PURE__ */ n.jsx(
10283
10290
  "a",
10284
10291
  {
10285
- href: H.url,
10292
+ href: k.url,
10286
10293
  target: "_blank",
10287
10294
  rel: "noreferrer",
10288
10295
  className: Q.fileName,
10289
- children: H.fileName
10296
+ children: k.fileName
10290
10297
  }
10291
10298
  ),
10292
10299
  /* @__PURE__ */ n.jsxs("div", { className: Q.subTitle2, children: [
10293
- (H.ext || H.type) && /* @__PURE__ */ n.jsxs("div", { className: Q.fileType, children: [
10294
- H.ext || ((U = H.type) == null ? void 0 : U.split("/")[1]),
10300
+ (k.ext || k.type) && /* @__PURE__ */ n.jsxs("div", { className: Q.fileType, children: [
10301
+ k.ext || ((U = k.type) == null ? void 0 : U.split("/")[1]),
10295
10302
  " "
10296
10303
  ] }),
10297
- H.size && /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10298
- /* @__PURE__ */ n.jsxs("div", { children: [
10299
- " ",
10300
- H.size
10301
- ] })
10304
+ k.size && /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10305
+ /* @__PURE__ */ n.jsx("div", { children: Number(k.size.split(" ")[0]).toFixed(2) + " " + k.size.split(" ")[1] })
10302
10306
  ] })
10303
10307
  ] })
10304
10308
  ] }),
@@ -10306,13 +10310,13 @@ function X9({
10306
10310
  "div",
10307
10311
  {
10308
10312
  className: Q.actionBtn,
10309
- onClick: () => C0(H.key),
10313
+ onClick: () => C0(k.key),
10310
10314
  children: /* @__PURE__ */ n.jsx("img", { className: Q.deleteIcon, src: ho, alt: "delete" })
10311
10315
  }
10312
10316
  )
10313
10317
  ] })
10314
10318
  },
10315
- H.fileName ?? $
10319
+ k.fileName ?? $
10316
10320
  ) : /* @__PURE__ */ n.jsxs(
10317
10321
  "div",
10318
10322
  {
@@ -10322,7 +10326,7 @@ function X9({
10322
10326
  "div",
10323
10327
  {
10324
10328
  className: Q.progressBar,
10325
- style: { width: `${g0(H.key)}%` }
10329
+ style: { width: `${g0(k.key)}%` }
10326
10330
  }
10327
10331
  ),
10328
10332
  /* @__PURE__ */ n.jsxs("div", { className: Q.contentContainer, children: [
@@ -10331,7 +10335,7 @@ function X9({
10331
10335
  "img",
10332
10336
  {
10333
10337
  className: Q.uploadingImg,
10334
- src: ts(H.type || H.ext),
10338
+ src: ts(k.type || k.ext),
10335
10339
  alt: "upload"
10336
10340
  }
10337
10341
  ),
@@ -10339,16 +10343,16 @@ function X9({
10339
10343
  /* @__PURE__ */ n.jsx("div", { className: Q.fileName, children: "Uploading file" }),
10340
10344
  /* @__PURE__ */ n.jsxs("div", { className: Q.subTitle2, children: [
10341
10345
  /* @__PURE__ */ n.jsxs("div", { className: Q.fileType, children: [
10342
- (w0 = g0(H.key)) == null ? void 0 : w0.toFixed(0),
10346
+ (w0 = g0(k.key)) == null ? void 0 : w0.toFixed(0),
10343
10347
  " %",
10344
10348
  " "
10345
10349
  ] }),
10346
10350
  /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10347
10351
  /* @__PURE__ */ n.jsxs("div", { children: [
10348
- 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) : "",
10352
+ 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) : "",
10349
10353
  " ",
10350
10354
  "of ",
10351
- H.size
10355
+ k.size
10352
10356
  ] })
10353
10357
  ] })
10354
10358
  ] })
@@ -10357,7 +10361,7 @@ function X9({
10357
10361
  "div",
10358
10362
  {
10359
10363
  className: Q.actionBtn,
10360
- onClick: () => q([...L, H.key]),
10364
+ onClick: () => q([...L, k.key]),
10361
10365
  children: [
10362
10366
  " ",
10363
10367
  /* @__PURE__ */ n.jsx(V, { path: re, height: 16, width: 16 })
@@ -10367,8 +10371,8 @@ function X9({
10367
10371
  ] })
10368
10372
  ]
10369
10373
  },
10370
- H.fileName ?? $
10371
- ) }, H.key + H.fileName);
10374
+ k.fileName ?? $
10375
+ ) }, k.key + k.fileName);
10372
10376
  }) })
10373
10377
  ] })
10374
10378
  ] });