@hybr1d-tech/charizard 0.7.123 → 0.7.125

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
@@ -3,7 +3,7 @@ import * as x from "react";
3
3
  import y2, { useLayoutEffect as re, useContext as ie, useRef as b2, useState as H0, createContext as ue, useMemo as L2, useCallback as L0, Component as de, Fragment as l4, useEffect as j1, forwardRef as l6, createElement as t4 } from "react";
4
4
  import * as v2 from "@zag-js/menu";
5
5
  import _, { clsx as B2 } from "clsx";
6
- import { useMachine as b0, normalizeProps as x0, Portal as M2 } from "@zag-js/react";
6
+ import { useMachine as b0, normalizeProps as x0, Portal as z2 } from "@zag-js/react";
7
7
  import me from "react-inlinesvg";
8
8
  import he from "react-infinite-scroll-component";
9
9
  import J1 from "use-deep-compare-effect";
@@ -238,8 +238,8 @@ function ke() {
238
238
  }
239
239
  var h2 = !1, o2;
240
240
  {
241
- var z2 = typeof WeakMap == "function" ? WeakMap : Map;
242
- o2 = new z2();
241
+ var A2 = typeof WeakMap == "function" ? WeakMap : Map;
242
+ o2 = new A2();
243
243
  }
244
244
  function L(b, E) {
245
245
  if (!b || h2)
@@ -375,9 +375,9 @@ function ke() {
375
375
  }
376
376
  }
377
377
  }
378
- var A2 = Array.isArray;
378
+ var w2 = Array.isArray;
379
379
  function m0(b) {
380
- return A2(b);
380
+ return w2(b);
381
381
  }
382
382
  function F1(b) {
383
383
  {
@@ -888,7 +888,7 @@ function m6({
888
888
  }
889
889
  )
890
890
  ] }),
891
- d ? /* @__PURE__ */ t.jsx(M2, { children: g }) : g
891
+ d ? /* @__PURE__ */ t.jsx(z2, { children: g }) : g
892
892
  ] });
893
893
  }
894
894
  function f8({
@@ -929,7 +929,7 @@ function f8({
929
929
  }
930
930
  O0.MenuButton = m6;
931
931
  O0.ActionsDropdown = f8;
932
- const b8 = "_container_1htmo_1", x8 = "_containerRow_1htmo_11", C8 = "_title_1htmo_16", _8 = "_textRow_1htmo_27", I8 = "_desc_1htmo_31", y8 = "_info_1htmo_45", z8 = "_iconBox_1htmo_49", A8 = "_icon_1htmo_49", w2 = {
932
+ const b8 = "_container_1htmo_1", x8 = "_containerRow_1htmo_11", C8 = "_title_1htmo_16", _8 = "_textRow_1htmo_27", I8 = "_desc_1htmo_31", y8 = "_info_1htmo_45", z8 = "_iconBox_1htmo_49", A8 = "_icon_1htmo_49", N2 = {
933
933
  container: b8,
934
934
  containerRow: x8,
935
935
  title: C8,
@@ -948,17 +948,17 @@ function w8({
948
948
  onClick: s,
949
949
  customSvgClassName: r
950
950
  }) {
951
- return /* @__PURE__ */ t.jsxs("div", { className: _(w2.container, c === "row" && w2.containerRow), children: [
952
- /* @__PURE__ */ t.jsx("div", { className: w2.iconBox, children: /* @__PURE__ */ t.jsx(
951
+ return /* @__PURE__ */ t.jsxs("div", { className: _(N2.container, c === "row" && N2.containerRow), children: [
952
+ /* @__PURE__ */ t.jsx("div", { className: N2.iconBox, children: /* @__PURE__ */ t.jsx(
953
953
  B,
954
954
  {
955
955
  path: e,
956
- svgClassName: _(w2.icon, r || void 0)
956
+ svgClassName: _(N2.icon, r || void 0)
957
957
  }
958
958
  ) }),
959
- /* @__PURE__ */ t.jsxs("div", { className: w2.info, children: [
960
- /* @__PURE__ */ t.jsx("h6", { className: _(w2.title, c === "row" && w2.textRow), children: l }),
961
- n && /* @__PURE__ */ t.jsx("p", { className: _(w2.desc, c === "row" && w2.textRow), children: n })
959
+ /* @__PURE__ */ t.jsxs("div", { className: N2.info, children: [
960
+ /* @__PURE__ */ t.jsx("h6", { className: _(N2.title, c === "row" && N2.textRow), children: l }),
961
+ n && /* @__PURE__ */ t.jsx("p", { className: _(N2.desc, c === "row" && N2.textRow), children: n })
962
962
  ] }),
963
963
  a && /* @__PURE__ */ t.jsx(O0, { onClick: s, variant: l2.GHOST, children: a })
964
964
  ] });
@@ -2134,7 +2134,7 @@ const q6 = x.forwardRef(function({
2134
2134
  }
2135
2135
  )
2136
2136
  ] }),
2137
- i ? /* @__PURE__ */ t.jsx(M2, { children: y }) : y
2137
+ i ? /* @__PURE__ */ t.jsx(z2, { children: y }) : y
2138
2138
  ] });
2139
2139
  }), nt = x.forwardRef(function({
2140
2140
  variant: e,
@@ -2709,7 +2709,7 @@ function tb({
2709
2709
  api: u,
2710
2710
  size: c
2711
2711
  }));
2712
- return /* @__PURE__ */ t.jsxs(M2, { children: [
2712
+ return /* @__PURE__ */ t.jsxs(z2, { children: [
2713
2713
  a && /* @__PURE__ */ t.jsx($t, { api: u }),
2714
2714
  m
2715
2715
  ] });
@@ -2784,7 +2784,7 @@ function sb({
2784
2784
  m.open || i == null || i();
2785
2785
  }, [m.open]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2786
2786
  c && /* @__PURE__ */ t.jsx("button", { ...m.getTriggerProps(), className: "zap-reset-btn", children: c }),
2787
- m.open && /* @__PURE__ */ t.jsxs(M2, { children: [
2787
+ m.open && /* @__PURE__ */ t.jsxs(z2, { children: [
2788
2788
  r && /* @__PURE__ */ t.jsx("div", { ...m.getBackdropProps(), className: P2.backdrop }),
2789
2789
  /* @__PURE__ */ t.jsx("div", { ...m.getPositionerProps(), className: P2.positioner, children: /* @__PURE__ */ t.jsxs("div", { ...m.getContentProps(), className: P2.modal, children: [
2790
2790
  /* @__PURE__ */ t.jsxs("div", { ...m.getTitleProps(), className: P2.header, children: [
@@ -2860,7 +2860,7 @@ function f3({
2860
2860
  showArrow: r = !0
2861
2861
  }) {
2862
2862
  var d, p;
2863
- const i = l != null && l.portalled ? M2 : x.Fragment, o = x.Children.toArray(e).map((h) => x.cloneElement(h, {
2863
+ const i = l != null && l.portalled ? z2 : x.Fragment, o = x.Children.toArray(e).map((h) => x.cloneElement(h, {
2864
2864
  ...h.props,
2865
2865
  api: l
2866
2866
  })), u = !["black", "gray"].includes(n), m = {
@@ -3368,7 +3368,7 @@ function x3() {
3368
3368
  function N6(e) {
3369
3369
  return S6(e) ? (e.nodeName || "").toLowerCase() : "#document";
3370
3370
  }
3371
- function E2(e) {
3371
+ function M2(e) {
3372
3372
  var l;
3373
3373
  return (e == null || (l = e.ownerDocument) == null ? void 0 : l.defaultView) || window;
3374
3374
  }
@@ -3377,16 +3377,16 @@ function j6(e) {
3377
3377
  return (l = (S6(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : l.documentElement;
3378
3378
  }
3379
3379
  function S6(e) {
3380
- return x3() ? e instanceof Node || e instanceof E2(e).Node : !1;
3380
+ return x3() ? e instanceof Node || e instanceof M2(e).Node : !1;
3381
3381
  }
3382
3382
  function ka(e) {
3383
- return x3() ? e instanceof Element || e instanceof E2(e).Element : !1;
3383
+ return x3() ? e instanceof Element || e instanceof M2(e).Element : !1;
3384
3384
  }
3385
3385
  function z4(e) {
3386
- return x3() ? e instanceof HTMLElement || e instanceof E2(e).HTMLElement : !1;
3386
+ return x3() ? e instanceof HTMLElement || e instanceof M2(e).HTMLElement : !1;
3387
3387
  }
3388
3388
  function o5(e) {
3389
- return !x3() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof E2(e).ShadowRoot;
3389
+ return !x3() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M2(e).ShadowRoot;
3390
3390
  }
3391
3391
  function E6(e) {
3392
3392
  const {
@@ -3404,7 +3404,7 @@ function Va(e) {
3404
3404
  return ["html", "body", "#document"].includes(N6(e));
3405
3405
  }
3406
3406
  function A4(e) {
3407
- return E2(e).getComputedStyle(e);
3407
+ return M2(e).getComputedStyle(e);
3408
3408
  }
3409
3409
  function Ha(e) {
3410
3410
  if (N6(e) === "html")
@@ -3425,7 +3425,7 @@ function M6(e) {
3425
3425
  function s3(e, l, n) {
3426
3426
  var c;
3427
3427
  l === void 0 && (l = []), n === void 0 && (n = !0);
3428
- const a = M6(e), s = a === ((c = e.ownerDocument) == null ? void 0 : c.body), r = E2(a);
3428
+ const a = M6(e), s = a === ((c = e.ownerDocument) == null ? void 0 : c.body), r = M2(a);
3429
3429
  if (s) {
3430
3430
  const i = o4(r);
3431
3431
  return l.concat(r, r.visualViewport || [], E6(a) ? a : [], i && n ? s3(i) : []);
@@ -3465,7 +3465,7 @@ function r5(e) {
3465
3465
  }
3466
3466
  const Ga = /* @__PURE__ */ n3(0);
3467
3467
  function Pa(e) {
3468
- const l = E2(e);
3468
+ const l = M2(e);
3469
3469
  return !Da() || !l.visualViewport ? Ga : {
3470
3470
  x: l.visualViewport.offsetLeft,
3471
3471
  y: l.visualViewport.offsetTop
@@ -3482,11 +3482,11 @@ function i5(e, l, n, c) {
3482
3482
  const i = Oa() ? Pa(s) : n3(0);
3483
3483
  let o = (a.left + i.x) / r.x, u = (a.top + i.y) / r.y, m = a.width / r.x, d = a.height / r.y;
3484
3484
  if (s) {
3485
- const p = E2(s), h = c;
3485
+ const p = M2(s), h = c;
3486
3486
  let C = p, f = o4(C);
3487
3487
  for (; f && c && h !== C; ) {
3488
3488
  const q = r5(f), g = f.getBoundingClientRect(), v = A4(f), y = g.left + (f.clientLeft + parseFloat(v.paddingLeft)) * q.x, I = g.top + (f.clientTop + parseFloat(v.paddingTop)) * q.y;
3489
- o *= q.x, u *= q.y, m *= q.x, d *= q.y, o += y, u += I, C = E2(f), f = o4(C);
3489
+ o *= q.x, u *= q.y, m *= q.x, d *= q.y, o += y, u += I, C = M2(f), f = o4(C);
3490
3490
  }
3491
3491
  }
3492
3492
  return La({
@@ -5943,7 +5943,7 @@ var l7 = function(l) {
5943
5943
  var a = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, u = s.MenuList, m = s.MenuPortal, d = s.LoadingMessage, p = s.NoOptionsMessage, h = s.Option, C = this.commonProps, f = this.state.focusedOption, q = this.props, g = q.captureMenuScroll, v = q.inputValue, y = q.isLoading, I = q.loadingMessage, w = q.minMenuHeight, z = q.maxMenuHeight, N = q.menuIsOpen, A = q.menuPlacement, F = q.menuPosition, V = q.menuPortalTarget, Z = q.menuShouldBlockScroll, R = q.menuShouldScrollIntoView, S = q.noOptionsMessage, j = q.onMenuScrollToTop, H = q.onMenuScrollToBottom;
5944
5944
  if (!N) return null;
5945
5945
  var M = function(u0, S0) {
5946
- var q0 = u0.type, C0 = u0.data, T0 = u0.isDisabled, E0 = u0.isSelected, h2 = u0.label, o2 = u0.value, z2 = f === C0, L = T0 ? void 0 : function() {
5946
+ var q0 = u0.type, C0 = u0.data, T0 = u0.isDisabled, E0 = u0.isSelected, h2 = u0.label, o2 = u0.value, A2 = f === C0, L = T0 ? void 0 : function() {
5947
5947
  return a.onOptionHover(C0);
5948
5948
  }, U = T0 ? void 0 : function() {
5949
5949
  return a.selectOption(C0);
@@ -5966,8 +5966,8 @@ var l7 = function(l) {
5966
5966
  label: h2,
5967
5967
  type: q0,
5968
5968
  value: o2,
5969
- isFocused: z2,
5970
- innerRef: z2 ? a.getFocusedOptionRef : void 0
5969
+ isFocused: A2,
5970
+ innerRef: A2 ? a.getFocusedOptionRef : void 0
5971
5971
  }), a.formatOptionLabel(u0.data, "menu"));
5972
5972
  }, Y;
5973
5973
  if (this.hasOptions())
@@ -6191,7 +6191,7 @@ var hs = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
6191
6191
  function ps(e) {
6192
6192
  var l = e.defaultOptions, n = l === void 0 ? !1 : l, c = e.cacheOptions, a = c === void 0 ? !1 : c, s = e.loadOptions;
6193
6193
  e.options;
6194
- var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = C2(e, hs), p = d.inputValue, h = b2(void 0), C = b2(!1), f = H0(Array.isArray(n) ? n : void 0), q = F0(f, 2), g = q[0], v = q[1], y = H0(typeof p < "u" ? p : ""), I = F0(y, 2), w = I[0], z = I[1], N = H0(n === !0), A = F0(N, 2), F = A[0], V = A[1], Z = H0(void 0), R = F0(Z, 2), S = R[0], j = R[1], H = H0([]), M = F0(H, 2), Y = M[0], e0 = M[1], X0 = H0(!1), D0 = F0(X0, 2), m2 = D0[0], t0 = D0[1], u0 = H0({}), S0 = F0(u0, 2), q0 = S0[0], C0 = S0[1], T0 = H0(void 0), E0 = F0(T0, 2), h2 = E0[0], o2 = E0[1], z2 = H0(void 0), L = F0(z2, 2), U = L[0], c0 = L[1];
6194
+ var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, u = e.filterOption, m = u === void 0 ? null : u, d = C2(e, hs), p = d.inputValue, h = b2(void 0), C = b2(!1), f = H0(Array.isArray(n) ? n : void 0), q = F0(f, 2), g = q[0], v = q[1], y = H0(typeof p < "u" ? p : ""), I = F0(y, 2), w = I[0], z = I[1], N = H0(n === !0), A = F0(N, 2), F = A[0], V = A[1], Z = H0(void 0), R = F0(Z, 2), S = R[0], j = R[1], H = H0([]), M = F0(H, 2), Y = M[0], e0 = M[1], X0 = H0(!1), D0 = F0(X0, 2), m2 = D0[0], t0 = D0[1], u0 = H0({}), S0 = F0(u0, 2), q0 = S0[0], C0 = S0[1], T0 = H0(void 0), E0 = F0(T0, 2), h2 = E0[0], o2 = E0[1], A2 = H0(void 0), L = F0(A2, 2), U = L[0], c0 = L[1];
6195
6195
  a !== U && (C0({}), c0(a)), n !== h2 && (v(Array.isArray(n) ? n : void 0), o2(n)), j1(function() {
6196
6196
  return C.current = !0, function() {
6197
6197
  C.current = !1;
@@ -6218,9 +6218,9 @@ function ps(e) {
6218
6218
  if (a && q0[I0])
6219
6219
  z(I0), j(I0), e0(q0[I0]), V(!1), t0(!1);
6220
6220
  else {
6221
- var A2 = h.current = {};
6221
+ var w2 = h.current = {};
6222
6222
  z(I0), V(!0), t0(!S), _0(I0, function(m0) {
6223
- C && A2 === h.current && (h.current = void 0, V(!1), j(I0), e0(m0 || []), t0(!1), C0(m0 ? G(G({}, q0), {}, c1({}, I0, m0)) : q0));
6223
+ C && w2 === h.current && (h.current = void 0, V(!1), j(I0), e0(m0 || []), t0(!1), C0(m0 ? G(G({}, q0), {}, c1({}, I0, m0)) : q0));
6224
6224
  });
6225
6225
  }
6226
6226
  }, [a, _0, S, q0, o]), r2 = m2 ? [] : w && S ? Y : g || [];
@@ -7149,7 +7149,7 @@ function Ib({ status: e, text: l, icon: n, customStyles: c = {} }) {
7149
7149
  }
7150
7150
  );
7151
7151
  }
7152
- const er = "_root_1r58e_1", lr = "_control_1r58e_5", tr = "_trigger_1r58e_10", ar = "_svg_1r58e_23", cr = "_swatch_1r58e_32", nr = "_positioner_1r58e_39", sr = "_content_1r58e_43", or = "_swatchGroup_1r58e_50", rr = "_swatchSingle_1r58e_58", N2 = {
7152
+ const er = "_root_1r58e_1", lr = "_control_1r58e_5", tr = "_trigger_1r58e_10", ar = "_svg_1r58e_23", cr = "_swatch_1r58e_32", nr = "_positioner_1r58e_39", sr = "_content_1r58e_43", or = "_swatchGroup_1r58e_50", rr = "_swatchSingle_1r58e_58", j2 = {
7153
7153
  root: er,
7154
7154
  control: lr,
7155
7155
  trigger: tr,
@@ -7175,14 +7175,14 @@ function yb({
7175
7175
  value: L1.parse(s ?? N5[5])
7176
7176
  })
7177
7177
  ), o = L1.connect(r, i, x0);
7178
- return /* @__PURE__ */ t.jsxs("div", { ...o.getRootProps(), className: N2.root, children: [
7178
+ return /* @__PURE__ */ t.jsxs("div", { ...o.getRootProps(), className: j2.root, children: [
7179
7179
  l && /* @__PURE__ */ t.jsx(g3, { required: c, children: l }),
7180
7180
  /* @__PURE__ */ t.jsx("input", { ...o.getHiddenInputProps() }),
7181
- /* @__PURE__ */ t.jsx("div", { ...o.getControlProps(), className: N2.control, children: /* @__PURE__ */ t.jsxs("button", { ...o.getTriggerProps(), className: _("zap-reset-btn", N2.trigger), children: [
7182
- /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: o.value }), className: N2.swatch }),
7183
- /* @__PURE__ */ t.jsx(B, { path: x2, svgClassName: N2.svg })
7181
+ /* @__PURE__ */ t.jsx("div", { ...o.getControlProps(), className: j2.control, children: /* @__PURE__ */ t.jsxs("button", { ...o.getTriggerProps(), className: _("zap-reset-btn", j2.trigger), children: [
7182
+ /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: o.value }), className: j2.swatch }),
7183
+ /* @__PURE__ */ t.jsx(B, { path: x2, svgClassName: j2.svg })
7184
7184
  ] }) }),
7185
- /* @__PURE__ */ t.jsx("div", { ...o.getPositionerProps(), className: N2.positioner, children: /* @__PURE__ */ t.jsx("div", { ...o.getContentProps(), className: N2.content, children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchGroupProps(), className: N2.swatchGroup, children: N5.map((u) => /* @__PURE__ */ t.jsx(
7185
+ /* @__PURE__ */ t.jsx("div", { ...o.getPositionerProps(), className: j2.positioner, children: /* @__PURE__ */ t.jsx("div", { ...o.getContentProps(), className: j2.content, children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchGroupProps(), className: j2.swatchGroup, children: N5.map((u) => /* @__PURE__ */ t.jsx(
7186
7186
  "button",
7187
7187
  {
7188
7188
  ...o.getSwatchTriggerProps({ value: u }),
@@ -7190,7 +7190,7 @@ function yb({
7190
7190
  onClick: () => {
7191
7191
  a(u), o.setValue(L1.parse(u)), o.setOpen(!1);
7192
7192
  },
7193
- children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: u }), className: N2.swatchSingle })
7193
+ children: /* @__PURE__ */ t.jsx("div", { ...o.getSwatchProps({ value: u }), className: j2.swatchSingle })
7194
7194
  },
7195
7195
  u
7196
7196
  )) }) }) }),
@@ -7690,7 +7690,7 @@ const R5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
7690
7690
  positioner: Ti
7691
7691
  };
7692
7692
  function Gi({ exportConfig: e }) {
7693
- const { isPending: l, handleExport: n } = e, [c, a] = b0(Q1.machine({ id: x.useId() })), s = Q1.connect(c, a, x0), r = s.portalled ? M2 : x.Fragment, i = async (o) => {
7693
+ const { isPending: l, handleExport: n } = e, [c, a] = b0(Q1.machine({ id: x.useId() })), s = Q1.connect(c, a, x0), r = s.portalled ? z2 : x.Fragment, i = async (o) => {
7694
7694
  l || (await n(o), s.setOpen(!1));
7695
7695
  };
7696
7696
  return e != null && e.isLegacy ? /* @__PURE__ */ t.jsx(
@@ -7701,7 +7701,14 @@ function Gi({ exportConfig: e }) {
7701
7701
  children: /* @__PURE__ */ t.jsx(B, { path: R5, width: 16, height: 16 })
7702
7702
  }
7703
7703
  ) : /* @__PURE__ */ t.jsxs("div", { className: g2.tableExportBox, children: [
7704
- /* @__PURE__ */ t.jsx("button", { className: _(g2.actionCommon, "zap-reset-btn", s.open && g2.active), children: /* @__PURE__ */ t.jsx(B, { path: R5, width: 16, height: 16 }) }),
7704
+ /* @__PURE__ */ t.jsx(
7705
+ "button",
7706
+ {
7707
+ ...s.getTriggerProps(),
7708
+ className: _(g2.actionCommon, "zap-reset-btn", s.open && g2.active),
7709
+ children: /* @__PURE__ */ t.jsx(B, { path: R5, width: 16, height: 16 })
7710
+ }
7711
+ ),
7705
7712
  /* @__PURE__ */ t.jsx(r, { children: /* @__PURE__ */ t.jsx("div", { ...s.getPositionerProps(), className: g2.positioner, children: /* @__PURE__ */ t.jsx("div", { ...s.getContentProps(), className: g2.content, children: /* @__PURE__ */ t.jsxs("div", { className: g2.options, children: [
7706
7713
  /* @__PURE__ */ t.jsxs("div", { className: g2.option, onClick: () => i("csv"), children: [
7707
7714
  /* @__PURE__ */ t.jsx("img", { className: g2.uploadingImg, src: M1("csv"), alt: "csv icon" }),
@@ -8077,17 +8084,17 @@ const zu = (e, l) => {
8077
8084
  const n = xu(e), c = (a, s = l) => yu(n, a, s);
8078
8085
  return Object.assign(c, n), c;
8079
8086
  }, Au = (e, l) => zu;
8080
- var j2 = /* @__PURE__ */ ((e) => (e.DATE_RANGE = "date_range", e.MENU = "menu", e.TAB = "tab", e))(j2 || {});
8081
- const m4 = [j2.DATE_RANGE, j2.TAB], i1 = Au()(
8087
+ var S2 = /* @__PURE__ */ ((e) => (e.DATE_RANGE = "date_range", e.MENU = "menu", e.TAB = "tab", e))(S2 || {});
8088
+ const m4 = [S2.DATE_RANGE, S2.TAB], i1 = Au()(
8082
8089
  p6((e) => ({
8083
8090
  filters: [],
8084
8091
  setDefaultFilters: (l) => e({ filters: l }),
8085
8092
  addFilters: (l, n, c) => e((a) => ({ filters: a.filters.map((r) => {
8086
8093
  if (r.key === l)
8087
8094
  switch (r.type) {
8088
- case j2.DATE_RANGE:
8095
+ case S2.DATE_RANGE:
8089
8096
  return typeof c == "function" && c({ filterType: l, value: n }), { ...r, values: n };
8090
- case j2.TAB:
8097
+ case S2.TAB:
8091
8098
  return typeof c == "function" && c({ filterType: l, value: n }), { ...r, values: n };
8092
8099
  default: {
8093
8100
  const i = [...r.values, n];
@@ -8106,9 +8113,9 @@ const m4 = [j2.DATE_RANGE, j2.TAB], i1 = Au()(
8106
8113
  removeFilters: (l, n, c) => e((a) => ({ filters: a.filters.map((r) => {
8107
8114
  if (r.key === l)
8108
8115
  switch (r.type) {
8109
- case j2.DATE_RANGE:
8116
+ case S2.DATE_RANGE:
8110
8117
  return r;
8111
- case j2.TAB:
8118
+ case S2.TAB:
8112
8119
  return r;
8113
8120
  default: {
8114
8121
  const i = r.values.filter((o) => o !== n);
@@ -8314,7 +8321,7 @@ function Ou({ filterConfig: e }) {
8314
8321
  ]
8315
8322
  }
8316
8323
  ),
8317
- /* @__PURE__ */ t.jsx(M2, { children: l && /* @__PURE__ */ t.jsx(
8324
+ /* @__PURE__ */ t.jsx(z2, { children: l && /* @__PURE__ */ t.jsx(
8318
8325
  q7,
8319
8326
  {
8320
8327
  isOpen: l,
@@ -10173,11 +10180,11 @@ function O5({
10173
10180
  filterDispatch: a
10174
10181
  };
10175
10182
  switch (d.type) {
10176
- case j2.DATE_RANGE:
10183
+ case S2.DATE_RANGE:
10177
10184
  if (!l)
10178
10185
  return /* @__PURE__ */ t.jsx($h, { ...h }, d.id);
10179
10186
  break;
10180
- case j2.TAB:
10187
+ case S2.TAB:
10181
10188
  if (l)
10182
10189
  return /* @__PURE__ */ t.jsx(cp, { ...h }, d.id);
10183
10190
  break;
@@ -10413,7 +10420,7 @@ function w1({ items: e, onChange: l, renderItem: n }) {
10413
10420
  }
10414
10421
  w1.Item = Mp;
10415
10422
  w1.DragHandle = Rp;
10416
- const S2 = "select", X2 = "dropdown-actions", D2 = "select-radio";
10423
+ const E2 = "select", X2 = "dropdown-actions", D2 = "select-radio";
10417
10424
  function Lp({ checkedState: e, setCheckedState: l, search: n }) {
10418
10425
  const c = x.useMemo(() => {
10419
10426
  const s = {};
@@ -10450,7 +10457,7 @@ function kp({
10450
10457
  isDropdownActions: c
10451
10458
  }) {
10452
10459
  const { isOpen: a, onOpen: s, onClose: r } = g7(), { columns: i, isPending: o, isError: u, handleSaveColumns: m } = e, [d, p] = x.useState([]), [h, C] = x.useState(""), f = l.getAllLeafColumns().filter(
10453
- (z) => !z.columnDef.enableHiding && z.id !== S2 && z.id !== D2 && z.id !== X2
10460
+ (z) => !z.columnDef.enableHiding && z.id !== E2 && z.id !== D2 && z.id !== X2
10454
10461
  );
10455
10462
  x.useEffect(() => {
10456
10463
  u || o || (p((i == null ? void 0 : i.checked_state) || []), v((i == null ? void 0 : i.checked_state) || []));
@@ -10461,7 +10468,7 @@ function kp({
10461
10468
  A == null || A.toggleVisibility(N.checked);
10462
10469
  }), l.setColumnOrder(() => {
10463
10470
  const N = z.map((F) => F.id), A = [
10464
- n ? S2 : D2,
10471
+ n ? E2 : D2,
10465
10472
  ...N,
10466
10473
  c ? X2 : void 0
10467
10474
  ].filter(Boolean);
@@ -10486,7 +10493,7 @@ function kp({
10486
10493
  ];
10487
10494
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
10488
10495
  /* @__PURE__ */ t.jsx("button", { onClick: s, className: _("zap-reset-btn", c2.actionCommon), children: /* @__PURE__ */ t.jsx(B, { path: Ap, width: 16, height: 16 }) }),
10489
- /* @__PURE__ */ t.jsx(M2, { children: a && /* @__PURE__ */ t.jsx(q7, { isOpen: a, title: "Columns", onClose: r, size: "sm", buttons: w, children: u ? /* @__PURE__ */ t.jsx("div", { className: c2.error, children: "Something went wrong, please try again later." }) : o ? /* @__PURE__ */ t.jsx(E4, {}) : /* @__PURE__ */ t.jsxs("div", { children: [
10496
+ /* @__PURE__ */ t.jsx(z2, { children: a && /* @__PURE__ */ t.jsx(q7, { isOpen: a, title: "Columns", onClose: r, size: "sm", buttons: w, children: u ? /* @__PURE__ */ t.jsx("div", { className: c2.error, children: "Something went wrong, please try again later." }) : o ? /* @__PURE__ */ t.jsx(E4, {}) : /* @__PURE__ */ t.jsxs("div", { children: [
10490
10497
  /* @__PURE__ */ t.jsx("div", { className: c2.dropdownSearch, children: /* @__PURE__ */ t.jsx(
10491
10498
  Y2,
10492
10499
  {
@@ -10825,7 +10832,7 @@ function jv({ paginationApi: e, i: l }) {
10825
10832
  children: /* @__PURE__ */ t.jsx(B, { path: d6, svgClassName: K0.arrowIcon })
10826
10833
  },
10827
10834
  `ellipsis-${l}`
10828
- ) }) }), i.open && /* @__PURE__ */ t.jsx(M2, { children: /* @__PURE__ */ t.jsx("div", { ...i.getPositionerProps(), className: K0.paginationMenu, children: /* @__PURE__ */ t.jsx("ul", { ...i.getContentProps(), className: K0.limitContent, children: W5(n, c).map((o) => /* @__PURE__ */ t.jsx(
10835
+ ) }) }), i.open && /* @__PURE__ */ t.jsx(z2, { children: /* @__PURE__ */ t.jsx("div", { ...i.getPositionerProps(), className: K0.paginationMenu, children: /* @__PURE__ */ t.jsx("ul", { ...i.getContentProps(), className: K0.limitContent, children: W5(n, c).map((o) => /* @__PURE__ */ t.jsx(
10829
10836
  "li",
10830
10837
  {
10831
10838
  ...i.getItemProps({ item: o }),
@@ -10917,7 +10924,7 @@ function Z5({
10917
10924
  {
10918
10925
  type: "checkbox",
10919
10926
  ref: a,
10920
- className: _(N1.checkbox, l.id === S2 && N1.checkboxSelect),
10927
+ className: _(N1.checkbox, l.id === E2 && N1.checkboxSelect),
10921
10928
  ...c
10922
10929
  }
10923
10930
  ) });
@@ -10957,7 +10964,7 @@ function Sb({
10957
10964
  exportConfig: h
10958
10965
  }) {
10959
10966
  const C = x.useRef(!0), [f, q] = x.useState([]), [g, v] = x.useState({}), [y, I] = x.useState([]), [w, z] = x.useState({
10960
- left: d != null && d.stickyIds ? [D2, S2, ...d == null ? void 0 : d.stickyIds] : [D2, S2],
10967
+ left: d != null && d.stickyIds ? [D2, E2, ...d == null ? void 0 : d.stickyIds] : [D2, E2],
10961
10968
  right: [X2]
10962
10969
  }), [N, A] = x.useState({}), F = !l.isFetching && !l.isError && !e.length, { isCheckbox: V, isRadio: Z, setSelectedRows: R } = s;
10963
10970
  J1(() => {
@@ -10985,7 +10992,7 @@ function Sb({
10985
10992
  }, [s == null ? void 0 : s.rowSelection, N]);
10986
10993
  const S = [
10987
10994
  {
10988
- id: S2,
10995
+ id: E2,
10989
10996
  header: (M) => /* @__PURE__ */ t.jsx(
10990
10997
  Z5,
10991
10998
  {
@@ -11068,7 +11075,7 @@ function Sb({
11068
11075
  );
11069
11076
  }, []), x.useLayoutEffect(() => {
11070
11077
  var M;
11071
- V || (M = j.getColumn(S2)) == null || M.toggleVisibility(!1);
11078
+ V || (M = j.getColumn(E2)) == null || M.toggleVisibility(!1);
11072
11079
  }, []), x.useLayoutEffect(() => {
11073
11080
  var M;
11074
11081
  Z || (M = j.getColumn(D2)) == null || M.toggleVisibility(!1);
@@ -11162,7 +11169,7 @@ function Fv({
11162
11169
  style: {
11163
11170
  width: f.getSize() === Number.MAX_SAFE_INTEGER ? "auto" : f.getSize(),
11164
11171
  paddingRight: f.id === X2 ? "10px" : void 0,
11165
- paddingLeft: f.index === 0 && f.id !== S2 && f.id !== D2 ? "10px" : v ? "15px" : void 0,
11172
+ paddingLeft: f.index === 0 && f.id !== E2 && f.id !== D2 ? "10px" : v ? "15px" : void 0,
11166
11173
  ...X5(
11167
11174
  f.column,
11168
11175
  o,
@@ -11203,7 +11210,7 @@ function Fv({
11203
11210
  }) }, C.id)) }),
11204
11211
  c.isFetching ? /* @__PURE__ */ t.jsx(wi, { text: c.text, isError: c.isError }) : r ? /* @__PURE__ */ t.jsx(Fi, { emptyStateConfig: a, visibleCols: i }) : /* @__PURE__ */ t.jsx("tbody", { className: Q0.tableBody, children: e.getRowModel().rows.map((C, f, q) => /* @__PURE__ */ t.jsx("tr", { className: Q0.tableRow, children: C.getVisibleCells().map((g, v, y) => {
11205
11212
  var z, N;
11206
- const I = (l || n) && (g.id === `${f}_${D2}` || g.id === `${f}_${S2}`);
11213
+ const I = (l || n) && (g.id === `${f}_${D2}` || g.id === `${f}_${E2}`);
11207
11214
  let w = !1;
11208
11215
  return (z = s == null ? void 0 : s.stickyIds) != null && z.length && (w = (N = y[v - 1]) == null ? void 0 : N.column.getCanPin()), /* @__PURE__ */ t.jsx(
11209
11216
  "td",
@@ -11257,7 +11264,7 @@ function H7({ data: e, customStyle: l }) {
11257
11264
  function s(r) {
11258
11265
  return r.offsetWidth < r.scrollWidth;
11259
11266
  }
11260
- return n ? /* @__PURE__ */ t.jsx(
11267
+ return n ? /* @__PURE__ */ t.jsx(z2, { children: /* @__PURE__ */ t.jsx(
11261
11268
  y3,
11262
11269
  {
11263
11270
  placement: "right",
@@ -11276,7 +11283,7 @@ function H7({ data: e, customStyle: l }) {
11276
11283
  ),
11277
11284
  content: e
11278
11285
  }
11279
- ) : /* @__PURE__ */ t.jsx("div", { className: _($5.box, "zap-content-medium"), style: l, ref: a, children: e });
11286
+ ) }) : /* @__PURE__ */ t.jsx("div", { className: _($5.box, "zap-content-medium"), style: l, ref: a, children: e });
11280
11287
  }
11281
11288
  const T7 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2016A2.75%202.75%200%200%200%209%2018.75h10A2.75%202.75%200%200%200%2021.75%2016V7.828c0-.729-.29-1.428-.805-1.944l-3.829-3.829a2.75%202.75%200%200%200-1.944-.805H9A2.75%202.75%200%200%200%206.25%204zM9%2017.25c-.69%200-1.25-.56-1.25-1.25V4c0-.69.56-1.25%201.25-1.25h5.25V6A2.75%202.75%200%200%200%2017%208.75h3.25V16c0%20.69-.56%201.25-1.25%201.25zm11.108-10H17c-.69%200-1.25-.56-1.25-1.25V2.892q.169.087.305.224l3.829%203.829q.136.136.224.305'%20fill='%23070F2C'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.25%2020A2.75%202.75%200%200%200%205%2022.75h10A2.75%202.75%200%200%200%2017.75%2020v-2a.75.75%200%200%200-1.5%200v2c0%20.69-.56%201.25-1.25%201.25H5c-.69%200-1.25-.56-1.25-1.25V8c0-.69.56-1.25%201.25-1.25h2a.75.75%200%200%200%200-1.5H5A2.75%202.75%200%200%200%202.25%208z'%20fill='%23070F2C'/%3e%3c/svg%3e", kv = "_box_1lug4_1", Dv = "_userImage_1lug4_8", Vv = "_userDetails_1lug4_17", Hv = "_usernameContainer_1lug4_26", Tv = "_emailBox_1lug4_33", Gv = "_userEmail_1lug4_40", Pv = "_icon_1lug4_48", Ov = "_eventBox_1lug4_64", Wv = "_badge_1lug4_71", Zv = "_primary_1lug4_86", Xv = "_success_1lug4_91", $v = "_danger_1lug4_96", Yv = "_warning_1lug4_101", Jv = "_info_1lug4_106", Uv = "_emoji_1lug4_111", W2 = {
11282
11289
  box: kv,
@@ -11696,8 +11703,8 @@ function Db({
11696
11703
  addDocumentSubtitle: A,
11697
11704
  handleImageUpload: F
11698
11705
  }) {
11699
- var z2;
11700
- const [V, Z] = x.useState([]), [R, S] = x.useState([]), [j, H] = x.useState(!1), [M, Y] = x.useState([]), [e0, X0] = x.useState([]), [D0, m2] = x.useState(null), [t0, u0] = x.useState(""), S0 = x.useRef(), q0 = !!(c && ((z2 = R.filter((L) => !V.includes(L.key))) == null ? void 0 : z2.length) >= c || h);
11706
+ var A2;
11707
+ const [V, Z] = x.useState([]), [R, S] = x.useState([]), [j, H] = x.useState(!1), [M, Y] = x.useState([]), [e0, X0] = x.useState([]), [D0, m2] = x.useState(null), [t0, u0] = x.useState(""), S0 = x.useRef(), q0 = !!(c && ((A2 = R.filter((L) => !V.includes(L.key))) == null ? void 0 : A2.length) >= c || h);
11701
11708
  x.useEffect(() => {
11702
11709
  console.log(t0);
11703
11710
  const L = setTimeout(() => {
@@ -11711,7 +11718,7 @@ function Db({
11711
11718
  }
11712
11719
  }, [I]);
11713
11720
  async function C0(L) {
11714
- var G0, r2, $0, d0, I0, A2;
11721
+ var G0, r2, $0, d0, I0, w2;
11715
11722
  const U = L.target.files;
11716
11723
  m2(null), u0("");
11717
11724
  let c0 = [];
@@ -11733,7 +11740,7 @@ function Db({
11733
11740
  fileName: ($0 = U[m0]) == null ? void 0 : $0.name,
11734
11741
  isUploaded: !1,
11735
11742
  size: Wr((d0 = U[m0]) == null ? void 0 : d0.size)
11736
- }), (I0 = U[m0]) != null && I0.size && (r || 5) < Number((((A2 = U[m0]) == null ? void 0 : A2.size) / (1024 * 1024)).toFixed(2)) && (_0 = !0);
11743
+ }), (I0 = U[m0]) != null && I0.size && (r || 5) < Number((((w2 = U[m0]) == null ? void 0 : w2.size) / (1024 * 1024)).toFixed(2)) && (_0 = !0);
11737
11744
  if (c0 = c0.map((m0) => {
11738
11745
  const F1 = (Math.random() + 1).toString(36).substring(7), w3 = h2(F1);
11739
11746
  return { ...m0, setIntervalFunction: w3, key: F1 };
@@ -11868,7 +11875,7 @@ function Db({
11868
11875
  N && /* @__PURE__ */ t.jsx("p", { className: J.errorMsg, children: N }),
11869
11876
  p,
11870
11877
  w && /* @__PURE__ */ t.jsx("div", { className: _(J.fileContainer, o), children: !!R.length && [...M, ...E0()].map((L, U) => {
11871
- var c0, _0, G0, r2, $0, d0, I0, A2, m0;
11878
+ var c0, _0, G0, r2, $0, d0, I0, w2, m0;
11872
11879
  return /* @__PURE__ */ t.jsx("div", { children: V.indexOf(L.key || "") !== -1 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : L.isUploaded ? /* @__PURE__ */ t.jsx(
11873
11880
  "div",
11874
11881
  {
@@ -11951,7 +11958,7 @@ function Db({
11951
11958
  ] }),
11952
11959
  /* @__PURE__ */ t.jsx("div", { className: J.smallCircle }),
11953
11960
  /* @__PURE__ */ t.jsxs("div", { children: [
11954
- ($0 = L == null ? void 0 : L.size) != null && $0.split(" ")[0] && ((d0 = o2(L.key)) != null && d0.toFixed(0)) && typeof Number((I0 = L == null ? void 0 : L.size) == null ? void 0 : I0.split(" ")[0]) == "number" ? (+((A2 = L == null ? void 0 : L.size) == null ? void 0 : A2.split(" ")[0]) * ((Number((m0 = o2(L.key)) == null ? void 0 : m0.toFixed(0)) || 1) / 100)).toFixed(2) : "",
11961
+ ($0 = L == null ? void 0 : L.size) != null && $0.split(" ")[0] && ((d0 = o2(L.key)) != null && d0.toFixed(0)) && typeof Number((I0 = L == null ? void 0 : L.size) == null ? void 0 : I0.split(" ")[0]) == "number" ? (+((w2 = L == null ? void 0 : L.size) == null ? void 0 : w2.split(" ")[0]) * ((Number((m0 = o2(L.key)) == null ? void 0 : m0.toFixed(0)) || 1) / 100)).toFixed(2) : "",
11955
11962
  " ",
11956
11963
  "of ",
11957
11964
  L == null ? void 0 : L.size