@hybr1d-tech/charizard 2.3.19 → 2.3.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
@@ -138,7 +138,7 @@ function V7() {
138
138
  function e(_) {
139
139
  if (_ == null) return null;
140
140
  if (typeof _ == "function")
141
- return _.$$typeof === j ? null : _.displayName || _.name || null;
141
+ return _.$$typeof === w ? null : _.displayName || _.name || null;
142
142
  if (typeof _ == "string") return _;
143
143
  switch (_) {
144
144
  case g:
@@ -167,7 +167,7 @@ function V7() {
167
167
  case z:
168
168
  var F = _.render;
169
169
  return _ = _.displayName, _ || (_ = F.displayName || F.name || "", _ = _ !== "" ? "ForwardRef(" + _ + ")" : "ForwardRef"), _;
170
- case w:
170
+ case j:
171
171
  return F = _.displayName || null, F !== null ? F : e(_.type) || "Memo";
172
172
  case y:
173
173
  F = _._payload, _ = _._init;
@@ -326,7 +326,7 @@ React keys must be passed directly to JSX without using spread:
326
326
  function m(_) {
327
327
  typeof _ == "object" && _ !== null && _.$$typeof === v && _._store && (_._store.validated = 1);
328
328
  }
329
- var h = X6, v = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), I = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, V = Array.isArray, T = console.createTask ? console.createTask : function() {
329
+ var h = X6, v = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), I = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), w = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, V = Array.isArray, T = console.createTask ? console.createTask : function() {
330
330
  return null;
331
331
  };
332
332
  h = {
@@ -1095,12 +1095,12 @@ function wp({
1095
1095
  drawerPosition: b = "right",
1096
1096
  customContainerStyles: p
1097
1097
  }) {
1098
- const I = q.useRef(null), z = q.useRef(null), A = q.useRef(null), M = b === "left" ? "-100%" : "100%", w = !u && !d;
1098
+ const I = q.useRef(null), z = q.useRef(null), A = q.useRef(null), M = b === "left" ? "-100%" : "100%", j = !u && !d;
1099
1099
  return q.useEffect(() => {
1100
1100
  const y = setTimeout(() => {
1101
1101
  if (I.current && z.current && A.current) {
1102
- const L = e ? "translateX(0)" : `translateX(${M})`, j = `calc(100dvh - (1.75rem * 2) - ${A.current.clientHeight}px)`;
1103
- I.current.style.transform = L, z.current.style.maxHeight = j, z.current.style.height = j;
1102
+ const L = e ? "translateX(0)" : `translateX(${M})`, w = `calc(100dvh - (1.75rem * 2) - ${A.current.clientHeight}px)`;
1103
+ I.current.style.transform = L, z.current.style.maxHeight = w, z.current.style.height = w;
1104
1104
  }
1105
1105
  }, 0);
1106
1106
  return () => {
@@ -1137,7 +1137,7 @@ function wp({
1137
1137
  {
1138
1138
  className: f(
1139
1139
  z0.descriptionContainer,
1140
- { [z0.fullHeight]: w },
1140
+ { [z0.fullHeight]: j },
1141
1141
  C
1142
1142
  ),
1143
1143
  ref: z,
@@ -2619,23 +2619,23 @@ function v9(e) {
2619
2619
  maxHeight: l
2620
2620
  };
2621
2621
  if (!c || !c.offsetParent) return u;
2622
- var d = i.getBoundingClientRect(), m = d.height, h = c.getBoundingClientRect(), v = h.bottom, C = h.height, g = h.top, x = c.offsetParent.getBoundingClientRect(), b = x.top, p = o ? window.innerHeight : a9(i), I = Y5(i), z = parseInt(getComputedStyle(c).marginBottom, 10), A = parseInt(getComputedStyle(c).marginTop, 10), M = b - A, w = p - g, y = M + I, L = m - I - g, j = v - p + I + z, W = I + g - A, G = 160;
2622
+ var d = i.getBoundingClientRect(), m = d.height, h = c.getBoundingClientRect(), v = h.bottom, C = h.height, g = h.top, x = c.offsetParent.getBoundingClientRect(), b = x.top, p = o ? window.innerHeight : a9(i), I = Y5(i), z = parseInt(getComputedStyle(c).marginBottom, 10), A = parseInt(getComputedStyle(c).marginTop, 10), M = b - A, j = p - g, y = M + I, L = m - I - g, w = v - p + I + z, W = I + g - A, G = 160;
2623
2623
  switch (t) {
2624
2624
  case "auto":
2625
2625
  case "bottom":
2626
- if (w >= C)
2626
+ if (j >= C)
2627
2627
  return {
2628
2628
  placement: "bottom",
2629
2629
  maxHeight: l
2630
2630
  };
2631
2631
  if (L >= C && !o)
2632
- return s && j1(i, j, G), {
2632
+ return s && j1(i, w, G), {
2633
2633
  placement: "bottom",
2634
2634
  maxHeight: l
2635
2635
  };
2636
- if (!o && L >= n || o && w >= n) {
2637
- s && j1(i, j, G);
2638
- var V = o ? w - z : L - z;
2636
+ if (!o && L >= n || o && j >= n) {
2637
+ s && j1(i, w, G);
2638
+ var V = o ? j - z : L - z;
2639
2639
  return {
2640
2640
  placement: "bottom",
2641
2641
  maxHeight: V
@@ -2649,7 +2649,7 @@ function v9(e) {
2649
2649
  };
2650
2650
  }
2651
2651
  if (t === "bottom")
2652
- return s && $1(i, j), {
2652
+ return s && $1(i, w), {
2653
2653
  placement: "bottom",
2654
2654
  maxHeight: l
2655
2655
  };
@@ -2706,12 +2706,12 @@ var $5 = function(l) {
2706
2706
  return M3(function() {
2707
2707
  var A = m.current;
2708
2708
  if (A) {
2709
- var M = o === "fixed", w = r && !M, y = v9({
2709
+ var M = o === "fixed", j = r && !M, y = v9({
2710
2710
  maxHeight: t,
2711
2711
  menuEl: A,
2712
2712
  minHeight: n,
2713
2713
  placement: s,
2714
- shouldScroll: w,
2714
+ shouldScroll: j,
2715
2715
  isFixedPosition: M,
2716
2716
  controlHeight: z
2717
2717
  });
@@ -2793,10 +2793,10 @@ var $5 = function(l) {
2793
2793
  };
2794
2794
  }, []), g = j0(null), x = y0(g, 2), b = x[0], p = x[1], I = A0(function() {
2795
2795
  if (t) {
2796
- var w = n9(t), y = r === "fixed" ? 0 : window.pageYOffset, L = w[h] + y;
2797
- (L !== (b == null ? void 0 : b.offset) || w.left !== (b == null ? void 0 : b.rect.left) || w.width !== (b == null ? void 0 : b.rect.width)) && p({
2796
+ var j = n9(t), y = r === "fixed" ? 0 : window.pageYOffset, L = j[h] + y;
2797
+ (L !== (b == null ? void 0 : b.offset) || j.left !== (b == null ? void 0 : b.rect.left) || j.width !== (b == null ? void 0 : b.rect.width)) && p({
2798
2798
  offset: L,
2799
- rect: w
2799
+ rect: j
2800
2800
  });
2801
2801
  }
2802
2802
  }, [t, r, h, b == null ? void 0 : b.offset, b == null ? void 0 : b.rect.left, b == null ? void 0 : b.rect.width]);
@@ -2811,8 +2811,8 @@ var $5 = function(l) {
2811
2811
  M3(function() {
2812
2812
  z();
2813
2813
  }, [z]);
2814
- var A = A0(function(w) {
2815
- i.current = w, z();
2814
+ var A = A0(function(j) {
2815
+ i.current = j, z();
2816
2816
  }, [z]);
2817
2817
  if (!c && r !== "fixed" || !b) return null;
2818
2818
  var M = P("div", O({
@@ -3393,7 +3393,7 @@ var Ea = process.env.NODE_ENV === "production" ? {
3393
3393
  return "".concat(n).concat(c ? " for search term " + c : "", ".");
3394
3394
  }
3395
3395
  }, Va = function(l) {
3396
- var c = l.ariaSelection, n = l.focusedOption, t = l.focusedValue, s = l.focusableOptions, o = l.isFocused, r = l.selectValue, i = l.selectProps, u = l.id, d = l.isAppleDevice, m = i.ariaLiveMessages, h = i.getOptionLabel, v = i.inputValue, C = i.isMulti, g = i.isOptionDisabled, x = i.isSearchable, b = i.menuIsOpen, p = i.options, I = i.screenReaderStatus, z = i.tabSelectsValue, A = i.isLoading, M = i["aria-label"], w = i["aria-live"], y = b2(function() {
3396
+ var c = l.ariaSelection, n = l.focusedOption, t = l.focusedValue, s = l.focusableOptions, o = l.isFocused, r = l.selectValue, i = l.selectProps, u = l.id, d = l.isAppleDevice, m = i.ariaLiveMessages, h = i.getOptionLabel, v = i.inputValue, C = i.isMulti, g = i.isOptionDisabled, x = i.isSearchable, b = i.menuIsOpen, p = i.options, I = i.screenReaderStatus, z = i.tabSelectsValue, A = i.isLoading, M = i["aria-label"], j = i["aria-live"], y = b2(function() {
3397
3397
  return D(D({}, Ra), m || {});
3398
3398
  }, [m]), L = b2(function() {
3399
3399
  var N = "";
@@ -3410,7 +3410,7 @@ var Ea = process.env.NODE_ENV === "production" ? {
3410
3410
  N = y.onChange(q0);
3411
3411
  }
3412
3412
  return N;
3413
- }, [c, y, g, r, h]), j = b2(function() {
3413
+ }, [c, y, g, r, h]), w = b2(function() {
3414
3414
  var N = "", B = n || t, Q = !!(n && r && r.includes(n));
3415
3415
  if (B && y.onFocus) {
3416
3416
  var Y = {
@@ -3457,7 +3457,7 @@ var Ea = process.env.NODE_ENV === "production" ? {
3457
3457
  id: "aria-selection"
3458
3458
  }, L), P("span", {
3459
3459
  id: "aria-focused"
3460
- }, j), P("span", {
3460
+ }, w), P("span", {
3461
3461
  id: "aria-results"
3462
3462
  }, W), P("span", {
3463
3463
  id: "aria-guidance"
@@ -3465,7 +3465,7 @@ var Ea = process.env.NODE_ENV === "production" ? {
3465
3465
  return P(y3, null, P(N4, {
3466
3466
  id: u
3467
3467
  }, G && T), P(N4, {
3468
- "aria-live": w,
3468
+ "aria-live": j,
3469
3469
  "aria-atomic": "false",
3470
3470
  "aria-relevant": "additions text",
3471
3471
  role: "log"
@@ -3783,8 +3783,8 @@ var Pa = function(l) {
3783
3783
  function Ta(e) {
3784
3784
  var l = e.isEnabled, c = e.onBottomArrive, n = e.onBottomLeave, t = e.onTopArrive, s = e.onTopLeave, o = Z0(!1), r = Z0(!1), i = Z0(0), u = Z0(null), d = A0(function(x, b) {
3785
3785
  if (u.current !== null) {
3786
- var p = u.current, I = p.scrollTop, z = p.scrollHeight, A = p.clientHeight, M = u.current, w = b > 0, y = z - A - I, L = !1;
3787
- y > b && o.current && (n && n(x), o.current = !1), w && r.current && (s && s(x), r.current = !1), w && b > y ? (c && !o.current && c(x), M.scrollTop = z, L = !0, o.current = !0) : !w && -b > I && (t && !r.current && t(x), M.scrollTop = 0, L = !0, r.current = !0), L && Pa(x);
3786
+ var p = u.current, I = p.scrollTop, z = p.scrollHeight, A = p.clientHeight, M = u.current, j = b > 0, y = z - A - I, L = !1;
3787
+ y > b && o.current && (n && n(x), o.current = !1), j && r.current && (s && s(x), r.current = !1), j && b > y ? (c && !o.current && c(x), M.scrollTop = z, L = !0, o.current = !0) : !j && -b > I && (t && !r.current && t(x), M.scrollTop = 0, L = !0, r.current = !0), L && Pa(x);
3788
3788
  }
3789
3789
  }, [c, n, t, s]), m = A0(function(x) {
3790
3790
  d(x, x.deltaY);
@@ -4364,7 +4364,7 @@ var p6 = function(l) {
4364
4364
  }, t.onValueInputFocus = function(i) {
4365
4365
  i.preventDefault(), i.stopPropagation(), t.focus();
4366
4366
  }, t.onKeyDown = function(i) {
4367
- var u = t.props, d = u.isMulti, m = u.backspaceRemovesValue, h = u.escapeClearsValue, v = u.inputValue, C = u.isClearable, g = u.isDisabled, x = u.menuIsOpen, b = u.onKeyDown, p = u.tabSelectsValue, I = u.openMenuOnFocus, z = t.state, A = z.focusedOption, M = z.focusedValue, w = z.selectValue;
4367
+ var u = t.props, d = u.isMulti, m = u.backspaceRemovesValue, h = u.escapeClearsValue, v = u.inputValue, C = u.isClearable, g = u.isDisabled, x = u.menuIsOpen, b = u.onKeyDown, p = u.tabSelectsValue, I = u.openMenuOnFocus, z = t.state, A = z.focusedOption, M = z.focusedValue, j = z.selectValue;
4368
4368
  if (!g && !(typeof b == "function" && (b(i), i.defaultPrevented))) {
4369
4369
  switch (t.blockOptionHover = !0, i.key) {
4370
4370
  case "ArrowLeft":
@@ -4388,7 +4388,7 @@ var p6 = function(l) {
4388
4388
  case "Tab":
4389
4389
  if (t.isComposing || i.shiftKey || !x || !p || !A || // don't capture the event if the menu opens on focus and the focused
4390
4390
  // option is already selected; it breaks the flow of navigation
4391
- I && t.isOptionSelected(A, w))
4391
+ I && t.isOptionSelected(A, j))
4392
4392
  return;
4393
4393
  t.selectOption(A);
4394
4394
  break;
@@ -4751,14 +4751,14 @@ var p6 = function(l) {
4751
4751
  }), p);
4752
4752
  if (x)
4753
4753
  return z.map(function(y, L) {
4754
- var j = y === A, W = "".concat(t.getOptionLabel(y), "-").concat(t.getOptionValue(y));
4754
+ var w = y === A, W = "".concat(t.getOptionLabel(y), "-").concat(t.getOptionValue(y));
4755
4755
  return /* @__PURE__ */ q.createElement(o, O({}, h, {
4756
4756
  components: {
4757
4757
  Container: r,
4758
4758
  Label: i,
4759
4759
  Remove: u
4760
4760
  },
4761
- isFocused: j,
4761
+ isFocused: w,
4762
4762
  isDisabled: g,
4763
4763
  key: W,
4764
4764
  index: L,
@@ -4778,11 +4778,11 @@ var p6 = function(l) {
4778
4778
  });
4779
4779
  if (b)
4780
4780
  return null;
4781
- var w = z[0];
4781
+ var j = z[0];
4782
4782
  return /* @__PURE__ */ q.createElement(d, O({}, h, {
4783
- data: w,
4783
+ data: j,
4784
4784
  isDisabled: g
4785
- }), this.formatOptionLabel(w, "value"));
4785
+ }), this.formatOptionLabel(j, "value"));
4786
4786
  }
4787
4787
  }, {
4788
4788
  key: "renderClearIndicator",
@@ -4844,8 +4844,8 @@ var p6 = function(l) {
4844
4844
  }, {
4845
4845
  key: "renderMenu",
4846
4846
  value: function() {
4847
- var t = this, s = this.getComponents(), o = s.Group, r = s.GroupHeading, i = s.Menu, u = s.MenuList, d = s.MenuPortal, m = s.LoadingMessage, h = s.NoOptionsMessage, v = s.Option, C = this.commonProps, g = this.state.focusedOption, x = this.props, b = x.captureMenuScroll, p = x.inputValue, I = x.isLoading, z = x.loadingMessage, A = x.minMenuHeight, M = x.maxMenuHeight, w = x.menuIsOpen, y = x.menuPlacement, L = x.menuPosition, j = x.menuPortalTarget, W = x.menuShouldBlockScroll, G = x.menuShouldScrollIntoView, V = x.noOptionsMessage, T = x.onMenuScrollToTop, N = x.onMenuScrollToBottom;
4848
- if (!w) return null;
4847
+ var t = this, s = this.getComponents(), o = s.Group, r = s.GroupHeading, i = s.Menu, u = s.MenuList, d = s.MenuPortal, m = s.LoadingMessage, h = s.NoOptionsMessage, v = s.Option, C = this.commonProps, g = this.state.focusedOption, x = this.props, b = x.captureMenuScroll, p = x.inputValue, I = x.isLoading, z = x.loadingMessage, A = x.minMenuHeight, M = x.maxMenuHeight, j = x.menuIsOpen, y = x.menuPlacement, L = x.menuPosition, w = x.menuPortalTarget, W = x.menuShouldBlockScroll, G = x.menuShouldScrollIntoView, V = x.noOptionsMessage, T = x.onMenuScrollToTop, N = x.onMenuScrollToBottom;
4848
+ if (!j) return null;
4849
4849
  var B = function(J, e0) {
4850
4850
  var n0 = J.type, q0 = J.data, _0 = J.isDisabled, K = J.isSelected, i0 = J.label, K0 = J.value, h2 = g === q0, A2 = _0 ? void 0 : function() {
4851
4851
  return t.onOptionHover(q0);
@@ -4944,8 +4944,8 @@ var p6 = function(l) {
4944
4944
  }), Q);
4945
4945
  }));
4946
4946
  });
4947
- return j || L === "fixed" ? /* @__PURE__ */ q.createElement(d, O({}, C, {
4948
- appendTo: j,
4947
+ return w || L === "fixed" ? /* @__PURE__ */ q.createElement(d, O({}, C, {
4948
+ appendTo: w,
4949
4949
  controlElement: this.controlRef,
4950
4950
  menuPlacement: y,
4951
4951
  menuPosition: L
@@ -5042,10 +5042,10 @@ var p6 = function(l) {
5042
5042
  value: function(t, s) {
5043
5043
  var o = s.prevProps, r = s.clearFocusValueOnUpdate, i = s.inputIsHiddenAfterUpdate, u = s.ariaSelection, d = s.isFocused, m = s.prevWasFocused, h = s.instancePrefix, v = t.options, C = t.value, g = t.menuIsOpen, x = t.inputValue, b = t.isMulti, p = J1(C), I = {};
5044
5044
  if (o && (C !== o.value || v !== o.options || g !== o.menuIsOpen || x !== o.inputValue)) {
5045
- var z = g ? mt(t, p) : [], A = g ? L4(L1(t, p), "".concat(h, "-option")) : [], M = r ? ht(s, p) : null, w = vt(s, z), y = f3(A, w);
5045
+ var z = g ? mt(t, p) : [], A = g ? L4(L1(t, p), "".concat(h, "-option")) : [], M = r ? ht(s, p) : null, j = vt(s, z), y = f3(A, j);
5046
5046
  I = {
5047
5047
  selectValue: p,
5048
- focusedOption: w,
5048
+ focusedOption: j,
5049
5049
  focusedOptionId: y,
5050
5050
  focusableOptionsWithIds: A,
5051
5051
  focusedValue: M,
@@ -5055,14 +5055,14 @@ var p6 = function(l) {
5055
5055
  var L = i != null && t !== o ? {
5056
5056
  inputIsHidden: i,
5057
5057
  inputIsHiddenAfterUpdate: void 0
5058
- } : {}, j = u, W = d && m;
5059
- return d && !W && (j = {
5058
+ } : {}, w = u, W = d && m;
5059
+ return d && !W && (w = {
5060
5060
  value: d1(b, p, p[0] || null),
5061
5061
  options: p,
5062
5062
  action: "initial-input-focus"
5063
- }, W = !m), (u == null ? void 0 : u.action) === "initial-input-focus" && (j = null), D(D(D({}, I), L), {}, {
5063
+ }, W = !m), (u == null ? void 0 : u.action) === "initial-input-focus" && (w = null), D(D(D({}, I), L), {}, {
5064
5064
  prevProps: t,
5065
- ariaSelection: j,
5065
+ ariaSelection: w,
5066
5066
  prevWasFocused: W
5067
5067
  });
5068
5068
  }
@@ -5071,8 +5071,8 @@ var p6 = function(l) {
5071
5071
  K3.defaultProps = dt;
5072
5072
  var qt = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
5073
5073
  function q6(e) {
5074
- var l = e.defaultInputValue, c = l === void 0 ? "" : l, n = e.defaultMenuIsOpen, t = n === void 0 ? !1 : n, s = e.defaultValue, o = s === void 0 ? null : s, r = e.inputValue, i = e.menuIsOpen, u = e.onChange, d = e.onInputChange, m = e.onMenuClose, h = e.onMenuOpen, v = e.value, C = Q0(e, qt), g = j0(r !== void 0 ? r : c), x = y0(g, 2), b = x[0], p = x[1], I = j0(i !== void 0 ? i : t), z = y0(I, 2), A = z[0], M = z[1], w = j0(v !== void 0 ? v : o), y = y0(w, 2), L = y[0], j = y[1], W = A0(function(Y, s0) {
5075
- typeof u == "function" && u(Y, s0), j(Y);
5074
+ var l = e.defaultInputValue, c = l === void 0 ? "" : l, n = e.defaultMenuIsOpen, t = n === void 0 ? !1 : n, s = e.defaultValue, o = s === void 0 ? null : s, r = e.inputValue, i = e.menuIsOpen, u = e.onChange, d = e.onInputChange, m = e.onMenuClose, h = e.onMenuOpen, v = e.value, C = Q0(e, qt), g = j0(r !== void 0 ? r : c), x = y0(g, 2), b = x[0], p = x[1], I = j0(i !== void 0 ? i : t), z = y0(I, 2), A = z[0], M = z[1], j = j0(v !== void 0 ? v : o), y = y0(j, 2), L = y[0], w = y[1], W = A0(function(Y, s0) {
5075
+ typeof u == "function" && u(Y, s0), w(Y);
5076
5076
  }, [u]), G = A0(function(Y, s0) {
5077
5077
  var _;
5078
5078
  typeof d == "function" && (_ = d(Y, s0)), p(_ !== void 0 ? _ : Y);
@@ -5095,7 +5095,7 @@ var gt = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
5095
5095
  function ft(e) {
5096
5096
  var l = e.defaultOptions, c = l === void 0 ? !1 : l, n = e.cacheOptions, t = n === void 0 ? !1 : n, s = e.loadOptions;
5097
5097
  e.options;
5098
- var o = e.isLoading, r = o === void 0 ? !1 : o, i = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = Q0(e, gt), h = m.inputValue, v = Z0(void 0), C = Z0(!1), g = j0(Array.isArray(c) ? c : void 0), x = y0(g, 2), b = x[0], p = x[1], I = j0(typeof h < "u" ? h : ""), z = y0(I, 2), A = z[0], M = z[1], w = j0(c === !0), y = y0(w, 2), L = y[0], j = y[1], W = j0(void 0), G = y0(W, 2), V = G[0], T = G[1], N = j0([]), B = y0(N, 2), Q = B[0], Y = B[1], s0 = j0(!1), _ = y0(s0, 2), F = _[0], H = _[1], J = j0({}), e0 = y0(J, 2), n0 = e0[0], q0 = e0[1], _0 = j0(void 0), K = y0(_0, 2), i0 = K[0], K0 = K[1], h2 = j0(void 0), A2 = y0(h2, 2), U2 = A2[0], c2 = A2[1];
5098
+ var o = e.isLoading, r = o === void 0 ? !1 : o, i = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, m = Q0(e, gt), h = m.inputValue, v = Z0(void 0), C = Z0(!1), g = j0(Array.isArray(c) ? c : void 0), x = y0(g, 2), b = x[0], p = x[1], I = j0(typeof h < "u" ? h : ""), z = y0(I, 2), A = z[0], M = z[1], j = j0(c === !0), y = y0(j, 2), L = y[0], w = y[1], W = j0(void 0), G = y0(W, 2), V = G[0], T = G[1], N = j0([]), B = y0(N, 2), Q = B[0], Y = B[1], s0 = j0(!1), _ = y0(s0, 2), F = _[0], H = _[1], J = j0({}), e0 = y0(J, 2), n0 = e0[0], q0 = e0[1], _0 = j0(void 0), K = y0(_0, 2), i0 = K[0], K0 = K[1], h2 = j0(void 0), A2 = y0(h2, 2), U2 = A2[0], c2 = A2[1];
5099
5099
  t !== U2 && (q0({}), c2(t)), c !== i0 && (p(Array.isArray(c) ? c : void 0), K0(c)), X2(function() {
5100
5100
  return C.current = !0, function() {
5101
5101
  C.current = !1;
@@ -5110,21 +5110,21 @@ function ft(e) {
5110
5110
  }, [s]);
5111
5111
  X2(function() {
5112
5112
  c === !0 && v2(A, function($) {
5113
- C.current && (p($ || []), j(!!v.current));
5113
+ C.current && (p($ || []), w(!!v.current));
5114
5114
  });
5115
5115
  }, []);
5116
5116
  var z1 = A0(function($, o0) {
5117
5117
  var h0 = l9($, o0, i);
5118
5118
  if (!h0) {
5119
- v.current = void 0, M(""), T(""), Y([]), j(!1), H(!1);
5119
+ v.current = void 0, M(""), T(""), Y([]), w(!1), H(!1);
5120
5120
  return;
5121
5121
  }
5122
5122
  if (t && n0[h0])
5123
- M(h0), T(h0), Y(n0[h0]), j(!1), H(!1);
5123
+ M(h0), T(h0), Y(n0[h0]), w(!1), H(!1);
5124
5124
  else {
5125
5125
  var e2 = v.current = {};
5126
- M(h0), j(!0), H(!V), v2(h0, function(W0) {
5127
- C && e2 === v.current && (v.current = void 0, j(!1), T(h0), Y(W0 || []), H(!1), q0(W0 ? D(D({}, n0), {}, O2({}, h0, W0)) : n0));
5126
+ M(h0), w(!0), H(!V), v2(h0, function(W0) {
5127
+ C && e2 === v.current && (v.current = void 0, w(!1), T(h0), Y(W0 || []), H(!1), q0(W0 ? D(D({}, n0), {}, O2({}, h0, W0)) : n0));
5128
5128
  });
5129
5129
  }
5130
5130
  }, [t, v2, V, n0, i]), S = F ? [] : A && V ? Q : b || [];
@@ -5235,12 +5235,12 @@ var Ct = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
5235
5235
  }
5236
5236
  };
5237
5237
  function It(e) {
5238
- var l = e.allowCreateWhileLoading, c = l === void 0 ? !1 : l, n = e.createOptionPosition, t = n === void 0 ? "last" : n, s = e.formatCreateLabel, o = s === void 0 ? b3.formatCreateLabel : s, r = e.isValidNewOption, i = r === void 0 ? b3.isValidNewOption : r, u = e.getNewOptionData, d = u === void 0 ? b3.getNewOptionData : u, m = e.onCreateOption, h = e.options, v = h === void 0 ? [] : h, C = e.onChange, g = Q0(e, Ct), x = g.getOptionValue, b = x === void 0 ? i6 : x, p = g.getOptionLabel, I = p === void 0 ? o6 : p, z = g.inputValue, A = g.isLoading, M = g.isMulti, w = g.value, y = g.name, L = b2(function() {
5239
- return i(z, J1(w), v, {
5238
+ var l = e.allowCreateWhileLoading, c = l === void 0 ? !1 : l, n = e.createOptionPosition, t = n === void 0 ? "last" : n, s = e.formatCreateLabel, o = s === void 0 ? b3.formatCreateLabel : s, r = e.isValidNewOption, i = r === void 0 ? b3.isValidNewOption : r, u = e.getNewOptionData, d = u === void 0 ? b3.getNewOptionData : u, m = e.onCreateOption, h = e.options, v = h === void 0 ? [] : h, C = e.onChange, g = Q0(e, Ct), x = g.getOptionValue, b = x === void 0 ? i6 : x, p = g.getOptionLabel, I = p === void 0 ? o6 : p, z = g.inputValue, A = g.isLoading, M = g.isMulti, j = g.value, y = g.name, L = b2(function() {
5239
+ return i(z, J1(j), v, {
5240
5240
  getOptionValue: b,
5241
5241
  getOptionLabel: I
5242
5242
  }) ? d(z, o(z)) : void 0;
5243
- }, [o, d, I, b, z, i, v, w]), j = b2(function() {
5243
+ }, [o, d, I, b, z, i, v, j]), w = b2(function() {
5244
5244
  return (c || !A) && L ? t === "first" ? [L].concat(Z2(v)) : [].concat(Z2(v), [L]) : v;
5245
5245
  }, [c, t, A, L, v]), W = A0(function(G, V) {
5246
5246
  if (V.action !== "select-option")
@@ -5254,14 +5254,14 @@ function It(e) {
5254
5254
  name: y,
5255
5255
  option: N
5256
5256
  };
5257
- C(d1(M, [].concat(Z2(J1(w)), [N]), N), B);
5257
+ C(d1(M, [].concat(Z2(J1(j)), [N]), N), B);
5258
5258
  }
5259
5259
  return;
5260
5260
  }
5261
5261
  C(G, V);
5262
- }, [d, z, M, y, L, m, C, w]);
5262
+ }, [d, z, M, y, L, m, C, j]);
5263
5263
  return D(D({}, g), {}, {
5264
- options: j,
5264
+ options: w,
5265
5265
  onChange: W
5266
5266
  });
5267
5267
  }
@@ -5326,16 +5326,16 @@ function kp({
5326
5326
  onChange: async (I) => {
5327
5327
  if (I)
5328
5328
  if (g) {
5329
- const z = I.filter((w) => w.__isNew__), A = I.filter((w) => !w.__isNew__);
5329
+ const z = I.filter((j) => j.__isNew__), A = I.filter((j) => !j.__isNew__);
5330
5330
  let M = A;
5331
5331
  if (z.length > 0) {
5332
- const w = await b(
5332
+ const j = await b(
5333
5333
  z.map((y) => y.value)
5334
5334
  );
5335
- w && (I = I.map((y) => (y.__isNew__ && (y.value = w[0].value, delete y.__isNew__), y)), await p(), M = [...A, ...w]);
5335
+ j && (I = I.map((y) => (y.__isNew__ && (y.value = j[0].value, delete y.__isNew__), y)), await p(), M = [...A, ...j]);
5336
5336
  }
5337
5337
  l(
5338
- M.map((w) => w.value),
5338
+ M.map((j) => j.value),
5339
5339
  I.actionMeta
5340
5340
  );
5341
5341
  } else {
@@ -5474,7 +5474,7 @@ function Pp({
5474
5474
  C(v - 1), x(!1);
5475
5475
  }, M = (y) => {
5476
5476
  u && y < v && C(y);
5477
- }, w = () => {
5477
+ }, j = () => {
5478
5478
  h(), C(v + 1);
5479
5479
  };
5480
5480
  return /* @__PURE__ */ a.jsxs("div", { className: G0.progressContainer, children: [
@@ -5498,7 +5498,7 @@ function Pp({
5498
5498
  ] }, L)) }),
5499
5499
  o && /* @__PURE__ */ a.jsxs("div", { className: G0.btnsFlex, children: [
5500
5500
  /* @__PURE__ */ a.jsx(a0, { variant: Z.SECONDARY, onClick: l, children: "Cancel" }),
5501
- s && v === n && /* @__PURE__ */ a.jsx(a0, { onClick: w, variant: Z.GHOST, children: d }),
5501
+ s && v === n && /* @__PURE__ */ a.jsx(a0, { onClick: j, variant: Z.GHOST, children: d }),
5502
5502
  /* @__PURE__ */ a.jsx(a0, { onClick: I, children: b ? i : "Continue" })
5503
5503
  ] })
5504
5504
  ] }),
@@ -5507,7 +5507,7 @@ function Pp({
5507
5507
  /* @__PURE__ */ a.jsx(a0, { variant: Z.SECONDARY, onClick: l, children: "Cancel" }),
5508
5508
  /* @__PURE__ */ a.jsxs("div", { className: G0.btnsFlex, children: [
5509
5509
  v > 0 && /* @__PURE__ */ a.jsx(a0, { variant: Z.SECONDARY, onClick: A, children: "Back" }),
5510
- s && v === n && /* @__PURE__ */ a.jsx(a0, { onClick: w, variant: Z.GHOST, children: d }),
5510
+ s && v === n && /* @__PURE__ */ a.jsx(a0, { onClick: j, variant: Z.GHOST, children: d }),
5511
5511
  /* @__PURE__ */ a.jsx(a0, { onClick: I, children: b ? t : "Continue" })
5512
5512
  ] })
5513
5513
  ] })
@@ -7332,7 +7332,7 @@ function y6({
7332
7332
  }
7333
7333
  ),
7334
7334
  d && /* @__PURE__ */ a.jsx("div", { className: f(M0.footer, g), ref: z, children: o || m && /* @__PURE__ */ a.jsxs("div", { className: M0.footerBtnContainer, children: [
7335
- /* @__PURE__ */ a.jsx("div", { className: M0.footerBtn, children: m.map(({ btnText: A, ...M }, w) => /* @__PURE__ */ a.jsx(a0, { ...M, children: A }, w)) }),
7335
+ /* @__PURE__ */ a.jsx("div", { className: M0.footerBtn, children: m.map(({ btnText: A, ...M }, j) => /* @__PURE__ */ a.jsx(a0, { ...M, children: A }, j)) }),
7336
7336
  h && /* @__PURE__ */ a.jsx("div", { children: h })
7337
7337
  ] }) })
7338
7338
  ] })
@@ -7716,12 +7716,12 @@ function Oi({
7716
7716
  e({}), Object.entries(N).forEach(([B, Q]) => {
7717
7717
  h(B, Q ? Q.split(",") : [], C);
7718
7718
  }), t();
7719
- }, w = (N, B) => s[N] ? s[N][B].checked : !1, y = (N, B, Q) => {
7719
+ }, j = (N, B) => s[N] ? s[N][B].checked : !1, y = (N, B, Q) => {
7720
7720
  o((Y) => {
7721
7721
  const s0 = { ...Y };
7722
7722
  return s0[N][B].checked = Q, z(s0), s0;
7723
7723
  });
7724
- }, L = v.filter((N) => !x.includes(N.key)).reduce((N, B) => N + B.values.length, 0), j = [
7724
+ }, L = v.filter((N) => !x.includes(N.key)).reduce((N, B) => N + B.values.length, 0), w = [
7725
7725
  {
7726
7726
  btnText: "Cancel",
7727
7727
  onClick: t,
@@ -7759,7 +7759,7 @@ function Oi({
7759
7759
  title: "Filters",
7760
7760
  onClose: t,
7761
7761
  customContainerStyles: { width: "512px" },
7762
- buttons: j,
7762
+ buttons: w,
7763
7763
  contentClassName: L0.content,
7764
7764
  children: /* @__PURE__ */ a.jsxs("div", { className: L0.filterBox, children: [
7765
7765
  /* @__PURE__ */ a.jsx("div", { className: L0.filters, children: g.map((N) => {
@@ -7832,7 +7832,7 @@ function Oi({
7832
7832
  $4,
7833
7833
  {
7834
7834
  label: N.name,
7835
- checked: w(b.key, B),
7835
+ checked: j(b.key, B),
7836
7836
  onChange: (Q) => y(b.key, B, Q),
7837
7837
  countryCode: N.country_code,
7838
7838
  customName: N.customName
@@ -7935,13 +7935,13 @@ function eq({
7935
7935
  if (e)
7936
7936
  return Q6(e) ? e : d5(e);
7937
7937
  }, [e]), p = q.useMemo(() => b ? H1(b, t) : "Pick a date", [b, t]), I = q.useRef(null), z = (A) => {
7938
- var w;
7938
+ var j;
7939
7939
  if (!A) {
7940
7940
  l("");
7941
7941
  return;
7942
7942
  }
7943
7943
  const M = H1(A, "yyyy-MM-dd");
7944
- l(M), (w = I == null ? void 0 : I.current) == null || w.click();
7944
+ l(M), (j = I == null ? void 0 : I.current) == null || j.click();
7945
7945
  };
7946
7946
  return /* @__PURE__ */ a.jsx("div", { className: f(c0.datePicker), style: u, children: /* @__PURE__ */ a.jsxs(L3, { placement: "bottom", children: [
7947
7947
  /* @__PURE__ */ a.jsxs(H3, { openOnHover: !1, children: [
@@ -8508,7 +8508,7 @@ function Du({
8508
8508
  trigger: x,
8509
8509
  ...b
8510
8510
  }) {
8511
- const p = e, I = Q1((V) => V.monthYear), z = Q1((V) => V.setMonthYear), [A, M] = q.useState(w2[0]), [w, y] = q.useState(void 0), L = q.useMemo(() => p != null && p.from ? p.to ? s4(p.from, p.to) ? S1.format(p.from) : `${S1.format(p.from)} - ${S1.format(p.to)}` : S1.format(p.from) : g || "Pick a date", [p, g]), j = (V) => {
8511
+ const p = e, I = Q1((V) => V.monthYear), z = Q1((V) => V.setMonthYear), [A, M] = q.useState(w2[0]), [j, y] = q.useState(void 0), L = q.useMemo(() => p != null && p.from ? p.to ? s4(p.from, p.to) ? S1.format(p.from) : `${S1.format(p.from)} - ${S1.format(p.to)}` : S1.format(p.from) : g || "Pick a date", [p, g]), w = (V) => {
8512
8512
  t && A.value !== w2[0].value && M(w2[0]);
8513
8513
  const T = (V == null ? void 0 : V.from) ?? void 0, N = (V == null ? void 0 : V.to) ?? (V == null ? void 0 : V.from);
8514
8514
  l({ from: T, to: N });
@@ -8669,7 +8669,7 @@ function Du({
8669
8669
  mode: c,
8670
8670
  defaultMonth: p == null ? void 0 : p.from,
8671
8671
  selected: p,
8672
- onSelect: j,
8672
+ onSelect: w,
8673
8673
  numberOfMonths: G ? 1 : 2,
8674
8674
  onDayMouseEnter: (V) => {
8675
8675
  if (p != null && p.from && (!(p != null && p.to) || s4(p.from, p.to))) {
@@ -8682,7 +8682,7 @@ function Du({
8682
8682
  },
8683
8683
  disabled: o || ((V) => s && typeof s == "boolean" ? s : i ? V.getDay() === 0 || V.getDay() === 6 : !1),
8684
8684
  modifiers: {
8685
- highlighted: (V) => w != null && w.from && (w != null && w.to) ? V >= w.from && V <= w.to : !1
8685
+ highlighted: (V) => j != null && j.from && (j != null && j.to) ? V >= j.from && V <= j.to : !1
8686
8686
  },
8687
8687
  modifiersClassNames: {
8688
8688
  highlighted: t0.dayHighlighted
@@ -9280,23 +9280,23 @@ function Id({
9280
9280
  }, p = () => {
9281
9281
  m === "selection" && x.current.length > 0 && (v(structuredClone(x.current)), M(x.current)), o(), g("");
9282
9282
  }, I = l.getAllLeafColumns().filter(
9283
- (j) => !j.columnDef.enableHiding && j.id !== i2 && j.id !== C2 && j.id !== V2
9283
+ (w) => !w.columnDef.enableHiding && w.id !== i2 && w.id !== C2 && w.id !== V2
9284
9284
  );
9285
9285
  q.useEffect(() => {
9286
9286
  if (m === "selection" || u || i) return;
9287
- const j = (r == null ? void 0 : r.checked_state) || [];
9288
- v(j), M(j);
9287
+ const w = (r == null ? void 0 : r.checked_state) || [];
9288
+ v(w), M(w);
9289
9289
  }, [i, u, m]), G1(() => {
9290
9290
  if (m !== "selection" || u || i) return;
9291
- const j = (r == null ? void 0 : r.checked_state) || [];
9292
- v(j), M(j);
9291
+ const w = (r == null ? void 0 : r.checked_state) || [];
9292
+ v(w), M(w);
9293
9293
  }, [{ isPending: i, isError: u, variant: m, columns: r == null ? void 0 : r.checked_state }]);
9294
- const z = h.filter((j) => j.checked), A = h.filter((j) => !j.checked), M = (j) => {
9295
- j.forEach((W) => {
9294
+ const z = h.filter((w) => w.checked), A = h.filter((w) => !w.checked), M = (w) => {
9295
+ w.forEach((W) => {
9296
9296
  const G = l.getColumn(W.id);
9297
9297
  G == null || G.toggleVisibility(W.checked);
9298
9298
  }), l.setColumnOrder(() => {
9299
- const W = j.map((V) => V.id), G = [
9299
+ const W = w.map((V) => V.id), G = [
9300
9300
  c ? i2 : C2,
9301
9301
  ...W,
9302
9302
  n ? V2 : void 0
@@ -9305,10 +9305,10 @@ function Id({
9305
9305
  G.splice(V.getIndex(), 0, V.id);
9306
9306
  }), G;
9307
9307
  });
9308
- }, w = () => {
9308
+ }, j = () => {
9309
9309
  M(h), m === "selection" && (x.current = structuredClone(h)), d(h), o(), g("");
9310
9310
  }, y = A.filter(
9311
- (j) => j.label.toLowerCase().includes(C.toLowerCase())
9311
+ (w) => w.label.toLowerCase().includes(C.toLowerCase())
9312
9312
  ), L = [
9313
9313
  {
9314
9314
  btnText: "Cancel",
@@ -9317,7 +9317,7 @@ function Id({
9317
9317
  },
9318
9318
  {
9319
9319
  btnText: "Save",
9320
- onClick: w
9320
+ onClick: j
9321
9321
  }
9322
9322
  ];
9323
9323
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -9350,16 +9350,16 @@ function Id({
9350
9350
  setCheckedState: v
9351
9351
  }
9352
9352
  ) }),
9353
- I.map((j) => /* @__PURE__ */ a.jsx("div", { className: f(D0.option, D0.optionDisabled), children: /* @__PURE__ */ a.jsx(
9353
+ I.map((w) => /* @__PURE__ */ a.jsx("div", { className: f(D0.option, D0.optionDisabled), children: /* @__PURE__ */ a.jsx(
9354
9354
  p1,
9355
9355
  {
9356
- label: j.columnDef.header,
9357
- id: j.id,
9356
+ label: w.columnDef.header,
9357
+ id: w.id,
9358
9358
  checked: !0,
9359
9359
  disabled: !0,
9360
9360
  setCheckedState: v
9361
9361
  }
9362
- ) }, j.id)),
9362
+ ) }, w.id)),
9363
9363
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9364
9364
  z.length > 0 && /* @__PURE__ */ a.jsx("p", { className: D0.info, children: "Selected" }),
9365
9365
  /* @__PURE__ */ a.jsx(
@@ -9367,18 +9367,18 @@ function Id({
9367
9367
  {
9368
9368
  items: h,
9369
9369
  onChange: v,
9370
- renderItem: (j) => /* @__PURE__ */ a.jsxs(
9370
+ renderItem: (w) => /* @__PURE__ */ a.jsxs(
9371
9371
  q1.Item,
9372
9372
  {
9373
- id: j.id,
9374
- isHidden: !!C.length && !j.label.toLowerCase().includes(C.toLowerCase()),
9373
+ id: w.id,
9374
+ isHidden: !!C.length && !w.label.toLowerCase().includes(C.toLowerCase()),
9375
9375
  children: [
9376
9376
  /* @__PURE__ */ a.jsx(
9377
9377
  p1,
9378
9378
  {
9379
- label: j.label,
9380
- id: j.id,
9381
- checked: h[h.findIndex((W) => W.id === j.id)].checked,
9379
+ label: w.label,
9380
+ id: w.id,
9381
+ checked: h[h.findIndex((W) => W.id === w.id)].checked,
9382
9382
  setCheckedState: v
9383
9383
  }
9384
9384
  ),
@@ -9423,43 +9423,48 @@ const zd = "_selectedActions_jduip_1", yd = "_btnIcon_jduip_13", R1 = {
9423
9423
  };
9424
9424
  function Ad({
9425
9425
  rowSelectionConfig: e,
9426
- rowSelection: l
9426
+ rowSelection: l,
9427
+ setRowSelection: c
9427
9428
  }) {
9428
9429
  if (!e || !e.isCheckbox || Object.keys(l).length === 0)
9429
9430
  return null;
9430
- const { isCheckbox: c, actions: n } = e, t = (n == null ? void 0 : n.length) && n.length > 2, s = n != null && n.length ? n[0] : null;
9431
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: c && Object.keys(l).length > 0 && /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(
9431
+ const { isCheckbox: n, actions: t } = e, s = (t == null ? void 0 : t.length) && t.length > 2, o = t != null && t.length ? t[0] : null;
9432
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: n && Object.keys(l).length > 0 && /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(
9432
9433
  a0.GroupAction,
9433
9434
  {
9434
9435
  variant: Z.SECONDARY,
9435
9436
  size: l0.SMALL,
9436
- menuItems: n.slice(1),
9437
+ menuItems: t.slice(1),
9437
9438
  positionerProps: { placement: "bottom-end" },
9438
- onClick: s == null ? void 0 : s.onClick,
9439
+ onClick: async () => {
9440
+ await (o == null ? void 0 : o.onClick()), c({});
9441
+ },
9439
9442
  children: [
9440
9443
  /* @__PURE__ */ a.jsx(
9441
9444
  R,
9442
9445
  {
9443
9446
  svgClassName: R1.btnIcon,
9444
- path: (s == null ? void 0 : s.iconSrc) || "",
9447
+ path: (o == null ? void 0 : o.iconSrc) || "",
9445
9448
  spanClassName: R1.btnIconSpan
9446
9449
  }
9447
9450
  ),
9448
- s == null ? void 0 : s.label
9451
+ o == null ? void 0 : o.label
9449
9452
  ]
9450
9453
  }
9451
- ) : /* @__PURE__ */ a.jsx("div", { className: R1.selectedActions, children: n == null ? void 0 : n.map((o) => /* @__PURE__ */ a.jsxs(
9454
+ ) : /* @__PURE__ */ a.jsx("div", { className: R1.selectedActions, children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ a.jsxs(
9452
9455
  a0,
9453
9456
  {
9454
- onClick: o.onClick,
9457
+ onClick: async () => {
9458
+ await r.onClick(), c({});
9459
+ },
9455
9460
  variant: Z.SECONDARY,
9456
9461
  size: l0.SMALL,
9457
9462
  children: [
9458
- /* @__PURE__ */ a.jsx(R, { path: o.iconSrc, svgClassName: R1.btnIcon }),
9459
- o.label
9463
+ /* @__PURE__ */ a.jsx(R, { path: r.iconSrc, svgClassName: R1.btnIcon }),
9464
+ r.label
9460
9465
  ]
9461
9466
  },
9462
- o.label
9467
+ r.label
9463
9468
  )) }) }) });
9464
9469
  }
9465
9470
  function Nd({
@@ -9481,7 +9486,7 @@ function wd({
9481
9486
  isDropdownActions: d,
9482
9487
  customActionItems: m
9483
9488
  }) {
9484
- var I, z, A, M, w, y, L, j;
9489
+ var I, z, A, M, j, y, L, w;
9485
9490
  const h = (e == null ? void 0 : e.actions) && e.actions.length > 0, v = Object.keys(o).length, C = v > 0, g = `${v} ${_5(
9486
9491
  v,
9487
9492
  (e == null ? void 0 : e.entityName) || "",
@@ -9519,7 +9524,8 @@ function wd({
9519
9524
  Ad,
9520
9525
  {
9521
9526
  rowSelectionConfig: e,
9522
- rowSelection: o
9527
+ rowSelection: o,
9528
+ setRowSelection: r
9523
9529
  }
9524
9530
  )
9525
9531
  ] }),
@@ -9546,8 +9552,8 @@ function wd({
9546
9552
  }
9547
9553
  }
9548
9554
  ) }),
9549
- typeof n == "object" && !n.isLoading && !!((y = (w = n.filters) == null ? void 0 : w.header) != null && y.length) && /* @__PURE__ */ a.jsx(Q4, { setRowSelection: r, filterConfig: n }),
9550
- typeof n == "object" && !n.isLoading && !!((j = (L = n.filters) == null ? void 0 : L.drawer) != null && j.length) && /* @__PURE__ */ a.jsx(Oi, { setRowSelection: r, filterConfig: n }),
9555
+ typeof n == "object" && !n.isLoading && !!((y = (j = n.filters) == null ? void 0 : j.header) != null && y.length) && /* @__PURE__ */ a.jsx(Q4, { setRowSelection: r, filterConfig: n }),
9556
+ typeof n == "object" && !n.isLoading && !!((w = (L = n.filters) == null ? void 0 : L.drawer) != null && w.length) && /* @__PURE__ */ a.jsx(Oi, { setRowSelection: r, filterConfig: n }),
9551
9557
  typeof t == "object" && /* @__PURE__ */ a.jsx(
9552
9558
  Id,
9553
9559
  {
@@ -9813,10 +9819,10 @@ function aq({
9813
9819
  visibilityConfig: g,
9814
9820
  pinningConfig: x
9815
9821
  }) {
9816
- const b = q.useRef(!0), [p, I] = q.useState([]), [z, A] = q.useState({}), [M, w] = q.useState([]), [y, L] = q.useState({
9822
+ const b = q.useRef(!0), [p, I] = q.useState([]), [z, A] = q.useState({}), [M, j] = q.useState([]), [y, L] = q.useState({
9817
9823
  left: m != null && m.stickyIds ? [C2, i2, ...m == null ? void 0 : m.stickyIds] : [C2, i2],
9818
9824
  right: [V2]
9819
- }), [j, W] = q.useState({}), G = !l.isFetching && !l.isError && !e.length, { isCheckbox: V, isRadio: T, setSelectedRows: N } = s, B = t2((_) => _.resetAllFilters);
9825
+ }), [w, W] = q.useState({}), G = !l.isFetching && !l.isError && !e.length, { isCheckbox: V, isRadio: T, setSelectedRows: N } = s, B = t2((_) => _.resetAllFilters);
9820
9826
  q.useEffect(() => () => {
9821
9827
  var _;
9822
9828
  (_ = n == null ? void 0 : n.filterDispatch) == null || _.call(n, { type: w5.RESET_ALL, payload: null }), B(n == null ? void 0 : n.filterReset), r != null && r.setSearch && r.setSearch(""), t && (t.setSortBy(""), t.setSortOrd("")), u && (u.setPage(0), u.setLimit(25));
@@ -9850,7 +9856,7 @@ function aq({
9850
9856
  if (!s || !N) return;
9851
9857
  const _ = Y.getSelectedRowModel().rows.map((F) => F.original);
9852
9858
  N([..._]);
9853
- }, [s == null ? void 0 : s.rowSelection, j]);
9859
+ }, [s == null ? void 0 : s.rowSelection, w]);
9854
9860
  const Q = [
9855
9861
  {
9856
9862
  id: i2,
@@ -9892,13 +9898,15 @@ function aq({
9892
9898
  size: 40
9893
9899
  },
9894
9900
  ...c,
9895
- {
9896
- id: V2,
9897
- cell: (_) => /* @__PURE__ */ a.jsx(Ed, { actionsConfig: o, data: _.row.original }),
9898
- header: "Actions",
9899
- size: 70,
9900
- enablePinning: !0
9901
- }
9901
+ ...Object.values(w).length ? [] : [
9902
+ {
9903
+ id: V2,
9904
+ cell: (_) => /* @__PURE__ */ a.jsx(Ed, { actionsConfig: o, data: _.row.original }),
9905
+ header: "Actions",
9906
+ size: 70,
9907
+ enablePinning: !0
9908
+ }
9909
+ ]
9902
9910
  ], Y = f7({
9903
9911
  data: e,
9904
9912
  columns: Q,
@@ -9906,13 +9914,13 @@ function aq({
9906
9914
  sorting: p,
9907
9915
  columnVisibility: (g == null ? void 0 : g.columnVisibility) || z,
9908
9916
  columnOrder: M,
9909
- rowSelection: (s == null ? void 0 : s.rowSelection) || j,
9917
+ rowSelection: (s == null ? void 0 : s.rowSelection) || w,
9910
9918
  columnPinning: (x == null ? void 0 : x.columnPinning) || y
9911
9919
  },
9912
9920
  manualSorting: !0,
9913
9921
  onSortingChange: I,
9914
9922
  onColumnVisibilityChange: (g == null ? void 0 : g.setColumnVisibility) || A,
9915
- onColumnOrderChange: w,
9923
+ onColumnOrderChange: j,
9916
9924
  onColumnPinningChange: (x == null ? void 0 : x.setColumnPinning) || L,
9917
9925
  onRowSelectionChange: (s == null ? void 0 : s.setRowSelection) || W,
9918
9926
  enableRowSelection: !0,
@@ -9960,7 +9968,7 @@ function aq({
9960
9968
  rowSelectionConfig: s,
9961
9969
  searchConfig: r,
9962
9970
  totalText: i,
9963
- rowSelection: (s == null ? void 0 : s.rowSelection) || j,
9971
+ rowSelection: (s == null ? void 0 : s.rowSelection) || w,
9964
9972
  setRowSelection: (s == null ? void 0 : s.setRowSelection) || W,
9965
9973
  filterConfig: n,
9966
9974
  customColumnConfig: h,
@@ -10070,10 +10078,10 @@ function um({
10070
10078
  );
10071
10079
  }) }, C.id)) }),
10072
10080
  n.isFetching ? /* @__PURE__ */ a.jsx(Eo, { text: n.text, isError: n.isError }) : o ? /* @__PURE__ */ a.jsx(Ho, { emptyStateConfig: t, visibleCols: r }) : /* @__PURE__ */ a.jsx("tbody", { className: F0.tableBody, children: e.getRowModel().rows.map((C, g, x) => /* @__PURE__ */ a.jsx("tr", { className: F0.tableRow, children: C.getVisibleCells().map((b, p, I) => {
10073
- var M, w;
10081
+ var M, j;
10074
10082
  const z = (l || c) && (b.id === `${g}_${C2}` || b.id === `${g}_${i2}`);
10075
10083
  let A = !1;
10076
- return (M = s == null ? void 0 : s.stickyIds) != null && M.length && (A = (w = I[p - 1]) == null ? void 0 : w.column.getCanPin()), /* @__PURE__ */ a.jsx(
10084
+ return (M = s == null ? void 0 : s.stickyIds) != null && M.length && (A = (j = I[p - 1]) == null ? void 0 : j.column.getCanPin()), /* @__PURE__ */ a.jsx(
10077
10085
  "td",
10078
10086
  {
10079
10087
  className: f(
@@ -10588,12 +10596,12 @@ function rq({
10588
10596
  preLoadedFiles: z = [],
10589
10597
  showFileList: A = !0,
10590
10598
  acceptedFileTypes: M = "image/png, image/jpeg, image/jpeg, image/webp, application/pdf, .doc, .docx, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",
10591
- error: w,
10599
+ error: j,
10592
10600
  addDocumentSubtitle: y,
10593
10601
  handleImageUpload: L
10594
10602
  }) {
10595
10603
  var v2, z1;
10596
- const [j, W] = q.useState([]), [G, V] = q.useState([]), [T, N] = q.useState(!1), [B, Q] = q.useState([]), [Y, s0] = q.useState([]), [_, F] = q.useState(null), [H, J] = q.useState(""), [e0, n0] = q.useState(null), [q0, _0] = q.useState(!0), K = q.useRef(null), i0 = n && ((v2 = G.filter((S) => !j.includes(S.key))) == null ? void 0 : v2.length) >= n || v ? !0 : e0 !== null && !e0;
10604
+ const [w, W] = q.useState([]), [G, V] = q.useState([]), [T, N] = q.useState(!1), [B, Q] = q.useState([]), [Y, s0] = q.useState([]), [_, F] = q.useState(null), [H, J] = q.useState(""), [e0, n0] = q.useState(null), [q0, _0] = q.useState(!0), K = q.useRef(null), i0 = n && ((v2 = G.filter((S) => !w.includes(S.key))) == null ? void 0 : v2.length) >= n || v ? !0 : e0 !== null && !e0;
10597
10605
  q.useEffect(() => {
10598
10606
  console.log(H);
10599
10607
  const S = setTimeout(() => {
@@ -10611,7 +10619,7 @@ function rq({
10611
10619
  const $ = S.target.files;
10612
10620
  F(null), J("");
10613
10621
  let o0 = [];
10614
- if (n && $.length + ((e2 = G.filter((B0) => !j.includes(B0.key))) == null ? void 0 : e2.length) > n) {
10622
+ if (n && $.length + ((e2 = G.filter((B0) => !w.includes(B0.key))) == null ? void 0 : e2.length) > n) {
10615
10623
  F(
10616
10624
  `You are only allowed to upload ${n} ${_5(
10617
10625
  n,
@@ -10651,7 +10659,7 @@ function rq({
10651
10659
  }
10652
10660
  const A2 = () => {
10653
10661
  var S;
10654
- return ((S = G == null ? void 0 : G.filter(($) => !(j != null && j.includes($.key)))) == null ? void 0 : S.filter(($) => !(B != null && B.find((o0) => o0.key === $.key)))) || [];
10662
+ return ((S = G == null ? void 0 : G.filter(($) => !(w != null && w.includes($.key)))) == null ? void 0 : S.filter(($) => !(B != null && B.find((o0) => o0.key === $.key)))) || [];
10655
10663
  }, U2 = (S) => {
10656
10664
  let $ = 0.5, o0 = 0;
10657
10665
  return setInterval(function() {
@@ -10680,7 +10688,7 @@ function rq({
10680
10688
  };
10681
10689
  G.length && T && S();
10682
10690
  }, [G == null ? void 0 : G.length]), q.useEffect(() => {
10683
- e(B == null ? void 0 : B.filter((S) => !(j != null && j.includes(S.key))));
10691
+ e(B == null ? void 0 : B.filter((S) => !(w != null && w.includes(S.key))));
10684
10692
  }, [B.length]), q.useEffect(() => {
10685
10693
  z.length >= n && n0(!0);
10686
10694
  }, []), q.useEffect(() => {
@@ -10703,7 +10711,7 @@ function rq({
10703
10711
  }
10704
10712
  ),
10705
10713
  /* @__PURE__ */ a.jsxs("div", { style: { width: "100%" }, children: [
10706
- !(G.filter((S) => !j.includes(S.key)).length >= n && e0) && e0 !== null && !e0 && !(n && ((z1 = G.filter((S) => !j.includes(S.key))) == null ? void 0 : z1.length) >= n) ? /* @__PURE__ */ a.jsx(
10714
+ !(G.filter((S) => !w.includes(S.key)).length >= n && e0) && e0 !== null && !e0 && !(n && ((z1 = G.filter((S) => !w.includes(S.key))) == null ? void 0 : z1.length) >= n) ? /* @__PURE__ */ a.jsx(
10707
10715
  y2,
10708
10716
  {
10709
10717
  trigger: /* @__PURE__ */ a.jsx(
@@ -10831,11 +10839,11 @@ function rq({
10831
10839
  }
10832
10840
  ),
10833
10841
  (_ || !!H) && /* @__PURE__ */ a.jsx("p", { className: X.fileUploadLimitError, children: _ || H }),
10834
- w && /* @__PURE__ */ a.jsx("p", { className: X.errorMsg, children: w }),
10842
+ j && /* @__PURE__ */ a.jsx("p", { className: X.errorMsg, children: j }),
10835
10843
  h,
10836
10844
  A && /* @__PURE__ */ a.jsx("div", { className: f(X.fileContainer, i), children: !!G.length && [...B, ...A2()].map((S, $) => {
10837
10845
  var o0, h0, e2, W0, F2, Y0, Q2, K2, B0;
10838
- return /* @__PURE__ */ a.jsx("div", { children: j.indexOf(S.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : S.isUploaded ? /* @__PURE__ */ a.jsx(
10846
+ return /* @__PURE__ */ a.jsx("div", { children: w.indexOf(S.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : S.isUploaded ? /* @__PURE__ */ a.jsx(
10839
10847
  "div",
10840
10848
  {
10841
10849
  className: f(
@@ -10943,7 +10951,7 @@ function rq({
10943
10951
  {
10944
10952
  variant: Z.TERTIARY,
10945
10953
  onClick: () => {
10946
- _0(!1), W([...j, S.key]);
10954
+ _0(!1), W([...w, S.key]);
10947
10955
  },
10948
10956
  children: /* @__PURE__ */ a.jsx(R, { path: X0, height: 16, width: 16 })
10949
10957
  }