@hybr1d-tech/charizard 0.4.18 → 0.4.20

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
@@ -87,16 +87,16 @@ function ao() {
87
87
  U.unshift("Warning: " + E), Function.prototype.apply.call(console[h], console, U);
88
88
  }
89
89
  }
90
- var N = !1, F = !1, T = !1, w = !1, C = !1, S;
91
- S = Symbol.for("react.module.reference");
90
+ var N = !1, B = !1, T = !1, j = !1, S = !1, C;
91
+ C = Symbol.for("react.module.reference");
92
92
  function A(h) {
93
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === o || C || h === n || h === l || h === d || w || h === p || N || F || T || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === g || h.$$typeof === c || h.$$typeof === u || h.$$typeof === a || // This needs to include all possible module reference object
93
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === o || S || h === n || h === l || h === d || j || h === p || N || B || T || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === g || h.$$typeof === c || h.$$typeof === u || h.$$typeof === a || // This needs to include all possible module reference object
94
94
  // types supported by any Flight configuration anywhere since
95
95
  // we don't know which Flight build this will end up being used
96
96
  // with.
97
- h.$$typeof === S || h.getModuleId !== void 0));
97
+ h.$$typeof === C || h.getModuleId !== void 0));
98
98
  }
99
- function j(h, E, G) {
99
+ function w(h, E, G) {
100
100
  var k = h.displayName;
101
101
  if (k)
102
102
  return k;
@@ -106,7 +106,7 @@ function ao() {
106
106
  function V(h) {
107
107
  return h.displayName || "Context";
108
108
  }
109
- function B(h) {
109
+ function F(h) {
110
110
  if (h == null)
111
111
  return null;
112
112
  if (typeof h.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
@@ -136,14 +136,14 @@ function ao() {
136
136
  var G = h;
137
137
  return V(G._context) + ".Provider";
138
138
  case a:
139
- return j(h, h.render, "ForwardRef");
139
+ return w(h, h.render, "ForwardRef");
140
140
  case g:
141
141
  var k = h.displayName || null;
142
- return k !== null ? k : B(h.type) || "Memo";
142
+ return k !== null ? k : F(h.type) || "Memo";
143
143
  case m: {
144
144
  var Y = h, U = Y._payload, z = Y._init;
145
145
  try {
146
- return B(z(U));
146
+ return F(z(U));
147
147
  } catch {
148
148
  return null;
149
149
  }
@@ -415,8 +415,8 @@ function ao() {
415
415
  }
416
416
  function Li(h, E) {
417
417
  if (typeof h.ref == "string" && St.current && E && St.current.stateNode !== E) {
418
- var G = B(St.current.type);
419
- Nn[G] || (x('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', B(St.current.type), h.ref), Nn[G] = !0);
418
+ var G = F(St.current.type);
419
+ Nn[G] || (x('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', F(St.current.type), h.ref), Nn[G] = !0);
420
420
  }
421
421
  }
422
422
  function Oi(h, E) {
@@ -504,7 +504,7 @@ function ao() {
504
504
  function Bs() {
505
505
  {
506
506
  if (wn.current) {
507
- var h = B(wn.current.type);
507
+ var h = F(wn.current.type);
508
508
  if (h)
509
509
  return `
510
510
 
@@ -547,7 +547,7 @@ Check the top-level render call using <` + G + ">.");
547
547
  return;
548
548
  Fs[G] = !0;
549
549
  var k = "";
550
- h && h._owner && h._owner !== wn.current && (k = " It was passed a child from " + B(h._owner.type) + "."), lt(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, k), lt(null);
550
+ h && h._owner && h._owner !== wn.current && (k = " It was passed a child from " + F(h._owner.type) + "."), lt(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, k), lt(null);
551
551
  }
552
552
  }
553
553
  function Ps(h, E) {
@@ -584,11 +584,11 @@ Check the top-level render call using <` + G + ">.");
584
584
  else
585
585
  return;
586
586
  if (G) {
587
- var k = B(E);
587
+ var k = F(E);
588
588
  xe(G, h.props, "prop", k, h);
589
589
  } else if (E.PropTypes !== void 0 && !jn) {
590
590
  jn = !0;
591
- var Y = B(E);
591
+ var Y = F(E);
592
592
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
593
593
  }
594
594
  typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -615,7 +615,7 @@ Check the top-level render call using <` + G + ">.");
615
615
  var Ce = Zi(Y);
616
616
  Ce ? X += Ce : X += Bs();
617
617
  var se;
618
- h === null ? se = "null" : tt(h) ? se = "array" : h !== void 0 && h.$$typeof === t ? (se = "<" + (B(h.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : se = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, X);
618
+ h === null ? se = "null" : tt(h) ? se = "array" : h !== void 0 && h.$$typeof === t ? (se = "<" + (F(h.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : se = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, X);
619
619
  }
620
620
  var ie = ki(h, E, G, Y, U);
621
621
  if (ie == null)
@@ -1062,8 +1062,8 @@ function Ga({
1062
1062
  }, b = (x) => {
1063
1063
  let y = !1;
1064
1064
  return t.forEach((N) => {
1065
- N.values.forEach((F) => {
1066
- if (F === x) {
1065
+ N.values.forEach((B) => {
1066
+ if (B === x) {
1067
1067
  y = !0;
1068
1068
  return;
1069
1069
  }
@@ -1577,55 +1577,55 @@ function eb({
1577
1577
  infiniteScrollConfig: p
1578
1578
  }) {
1579
1579
  var V;
1580
- const [f, b] = _.useState([]), [I, v] = _.useState({}), [x, y] = _.useState({}), { ref: N, inView: F } = no(), T = !t.isFetching && !t.isError && !e.length, { isCheckbox: w, isRadio: C, setSelectedRows: S } = o;
1580
+ const [f, b] = _.useState([]), [I, v] = _.useState({}), [x, y] = _.useState({}), { ref: N, inView: B } = no(), T = !t.isFetching && !t.isError && !e.length, { isCheckbox: j, isRadio: S, setSelectedRows: C } = o;
1581
1581
  rn(() => {
1582
1582
  if (!n || !f.length)
1583
1583
  return;
1584
- const { setSortOrd: B, setSortBy: M, sortMap: Z } = n;
1585
- M(Z[f[0].id]), B(f[0].desc ? "desc" : "asc");
1584
+ const { setSortOrd: F, setSortBy: M, sortMap: Z } = n;
1585
+ M(Z[f[0].id]), F(f[0].desc ? "desc" : "asc");
1586
1586
  }, [f]), rn(() => {
1587
- if (!o || !S)
1587
+ if (!o || !C)
1588
1588
  return;
1589
- const B = j.getSelectedRowModel().rows.map((M) => M.original);
1590
- S([...B]);
1589
+ const F = w.getSelectedRowModel().rows.map((M) => M.original);
1590
+ C([...F]);
1591
1591
  }, [x]), _.useEffect(() => {
1592
- p && F && p.fetchNextPage();
1593
- }, [p == null ? void 0 : p.fetchNextPage, F]);
1592
+ p && B && p.fetchNextPage();
1593
+ }, [p == null ? void 0 : p.fetchNextPage, B]);
1594
1594
  const A = [
1595
1595
  {
1596
1596
  id: Zt,
1597
- header: (B) => /* @__PURE__ */ i.jsx(
1597
+ header: (F) => /* @__PURE__ */ i.jsx(
1598
1598
  Ms,
1599
1599
  {
1600
- checked: B.table.getIsAllRowsSelected(),
1601
- indeterminate: B.table.getIsSomeRowsSelected(),
1602
- onChange: B.table.getToggleAllRowsSelectedHandler(),
1603
- row: B.header,
1600
+ checked: F.table.getIsAllRowsSelected(),
1601
+ indeterminate: F.table.getIsSomeRowsSelected(),
1602
+ onChange: F.table.getToggleAllRowsSelectedHandler(),
1603
+ row: F.header,
1604
1604
  isHeader: !0
1605
1605
  }
1606
1606
  ),
1607
- cell: ({ row: B }) => /* @__PURE__ */ i.jsx(
1607
+ cell: ({ row: F }) => /* @__PURE__ */ i.jsx(
1608
1608
  Ms,
1609
1609
  {
1610
- checked: B.getIsSelected(),
1611
- disabled: !B.getCanSelect(),
1612
- indeterminate: B.getIsSomeSelected(),
1613
- onChange: B.getToggleSelectedHandler(),
1614
- row: B
1610
+ checked: F.getIsSelected(),
1611
+ disabled: !F.getCanSelect(),
1612
+ indeterminate: F.getIsSomeSelected(),
1613
+ onChange: F.getToggleSelectedHandler(),
1614
+ row: F
1615
1615
  }
1616
1616
  ),
1617
1617
  size: 55
1618
1618
  },
1619
1619
  {
1620
1620
  id: cn,
1621
- cell: ({ row: B }) => /* @__PURE__ */ i.jsx(
1621
+ cell: ({ row: F }) => /* @__PURE__ */ i.jsx(
1622
1622
  yl,
1623
1623
  {
1624
- checked: B.getIsSelected(),
1625
- disabled: !B.getCanSelect(),
1626
- indeterminate: B.getIsSomeSelected(),
1627
- onChange: B.getToggleSelectedHandler(),
1628
- row: B
1624
+ checked: F.getIsSelected(),
1625
+ disabled: !F.getCanSelect(),
1626
+ indeterminate: F.getIsSomeSelected(),
1627
+ onChange: F.getToggleSelectedHandler(),
1628
+ row: F
1629
1629
  }
1630
1630
  ),
1631
1631
  size: 55
@@ -1633,11 +1633,11 @@ function eb({
1633
1633
  ...s,
1634
1634
  {
1635
1635
  id: ln,
1636
- cell: (B) => /* @__PURE__ */ i.jsx(Za, { actionsConfig: c, data: B.row.original }),
1636
+ cell: (F) => /* @__PURE__ */ i.jsx(Za, { actionsConfig: c, data: F.row.original }),
1637
1637
  header: "Actions",
1638
1638
  maxSize: 150
1639
1639
  }
1640
- ], j = Fr({
1640
+ ], w = Fr({
1641
1641
  data: e,
1642
1642
  columns: A,
1643
1643
  state: {
@@ -1651,7 +1651,7 @@ function eb({
1651
1651
  enableRowSelection: !0,
1652
1652
  // enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
1653
1653
  onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) || y,
1654
- enableMultiRowSelection: !C,
1654
+ enableMultiRowSelection: !S,
1655
1655
  manualPagination: !0,
1656
1656
  manualFiltering: !0,
1657
1657
  getCoreRowModel: Rr(),
@@ -1660,22 +1660,22 @@ function eb({
1660
1660
  size: Number.MAX_SAFE_INTEGER,
1661
1661
  maxSize: Number.MAX_SAFE_INTEGER
1662
1662
  },
1663
- getRowId: o != null && o.rowIdKey ? (B) => B[o == null ? void 0 : o.rowIdKey] : void 0
1663
+ getRowId: o != null && o.rowIdKey ? (F) => F[o == null ? void 0 : o.rowIdKey] : void 0
1664
1664
  });
1665
1665
  return _.useLayoutEffect(() => {
1666
- if (w && C)
1666
+ if (j && S)
1667
1667
  throw new Error(
1668
1668
  "Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
1669
1669
  );
1670
1670
  }, []), _.useLayoutEffect(() => {
1671
- var B;
1672
- w || (B = j.getColumn(Zt)) == null || B.toggleVisibility(!1);
1671
+ var F;
1672
+ j || (F = w.getColumn(Zt)) == null || F.toggleVisibility(!1);
1673
1673
  }, []), _.useLayoutEffect(() => {
1674
- var B;
1675
- C || (B = j.getColumn(cn)) == null || B.toggleVisibility(!1);
1674
+ var F;
1675
+ S || (F = w.getColumn(cn)) == null || F.toggleVisibility(!1);
1676
1676
  }, []), _.useLayoutEffect(() => {
1677
- var B;
1678
- c.isDropdownActions || (B = j.getColumn(ln)) == null || B.toggleVisibility(!1);
1677
+ var F;
1678
+ c.isDropdownActions || (F = w.getColumn(ln)) == null || F.toggleVisibility(!1);
1679
1679
  }, []), _.useEffect(() => {
1680
1680
  o != null && o.clearOnSearch && y({});
1681
1681
  }, [u == null ? void 0 : u.search]), /* @__PURE__ */ i.jsxs("div", { className: ee.box, children: [
@@ -1713,9 +1713,9 @@ function eb({
1713
1713
  children: /* @__PURE__ */ i.jsx(
1714
1714
  zs,
1715
1715
  {
1716
- table: j,
1717
- isCheckbox: w,
1718
- isRadio: C,
1716
+ table: w,
1717
+ isCheckbox: j,
1718
+ isRadio: S,
1719
1719
  loaderConfig: t,
1720
1720
  isEmpty: T,
1721
1721
  emptyStateConfig: g,
@@ -1726,9 +1726,9 @@ function eb({
1726
1726
  ) : /* @__PURE__ */ i.jsx(
1727
1727
  zs,
1728
1728
  {
1729
- table: j,
1730
- isCheckbox: w,
1731
- isRadio: C,
1729
+ table: w,
1730
+ isCheckbox: j,
1731
+ isRadio: S,
1732
1732
  loaderConfig: t,
1733
1733
  isEmpty: T,
1734
1734
  emptyStateConfig: g,
@@ -1860,14 +1860,14 @@ function tb({
1860
1860
  showHeaderBorder: I = !1,
1861
1861
  drawerPosition: v = "right"
1862
1862
  }) {
1863
- const x = _.useRef(null), y = _.useRef(null), N = _.useRef(null), F = v === "left" ? "-100%" : "100%", T = !l && !d;
1863
+ const x = _.useRef(null), y = _.useRef(null), N = _.useRef(null), B = v === "left" ? "-100%" : "100%", T = !l && !d;
1864
1864
  return _.useEffect(() => {
1865
- const w = setTimeout(() => {
1866
- var C, S;
1867
- x.current && y && N && (x.current.style.transform = e ? "translateX(0)" : `translateX(${F})`, y.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(C = N.current) == null ? void 0 : C.clientHeight}px)`, y.current.style.height = `calc(100vh - (1.75rem * 2) - ${(S = N.current) == null ? void 0 : S.clientHeight}px)`);
1865
+ const j = setTimeout(() => {
1866
+ var S, C;
1867
+ x.current && y && N && (x.current.style.transform = e ? "translateX(0)" : `translateX(${B})`, y.current.style.maxHeight = `calc(100vh - (1.75rem * 2) - ${(S = N.current) == null ? void 0 : S.clientHeight}px)`, y.current.style.height = `calc(100vh - (1.75rem * 2) - ${(C = N.current) == null ? void 0 : C.clientHeight}px)`);
1868
1868
  }, 0);
1869
1869
  return () => {
1870
- clearTimeout(w);
1870
+ clearTimeout(j);
1871
1871
  };
1872
1872
  }, [e]), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1873
1873
  /* @__PURE__ */ i.jsx("div", { className: P(de.backdropLayer, e && de.show), onClick: t, children: a && /* @__PURE__ */ i.jsx("div", { className: P(de.backdrop, e && de.showBackdrop) }) }),
@@ -1907,16 +1907,16 @@ function tb({
1907
1907
  }
1908
1908
  ),
1909
1909
  d && /* @__PURE__ */ i.jsx("div", { className: P(de.footer, b), ref: N, children: c || g && /* @__PURE__ */ i.jsxs("div", { className: de.footerBtnContainer, children: [
1910
- /* @__PURE__ */ i.jsx("div", { className: de.footerBtn, children: g.map((w, C) => /* @__PURE__ */ i.jsx(
1910
+ /* @__PURE__ */ i.jsx("div", { className: de.footerBtn, children: g.map((j, S) => /* @__PURE__ */ i.jsx(
1911
1911
  te,
1912
1912
  {
1913
- disabled: w.disabled,
1914
- variant: w.variant,
1915
- onClick: w.onClick ? w.onClick : void 0,
1916
- type: w.btnType,
1917
- children: w.btnText
1913
+ disabled: j.disabled,
1914
+ variant: j.variant,
1915
+ onClick: j.onClick ? j.onClick : void 0,
1916
+ type: j.btnType,
1917
+ children: j.btnText
1918
1918
  },
1919
- C
1919
+ S
1920
1920
  )) }),
1921
1921
  m && /* @__PURE__ */ i.jsx("div", { children: m })
1922
1922
  ] }) })
@@ -2032,8 +2032,8 @@ function An({
2032
2032
  a(!1), p(!0);
2033
2033
  else {
2034
2034
  a(!0);
2035
- const y = (x = l.current) == null ? void 0 : x.getBoundingClientRect(), N = (y == null ? void 0 : y.right) + (y == null ? void 0 : y.width), F = window.innerWidth - 100;
2036
- N > F && p(!1);
2035
+ const y = (x = l.current) == null ? void 0 : x.getBoundingClientRect(), N = (y == null ? void 0 : y.right) + (y == null ? void 0 : y.width), B = window.innerWidth - 100;
2036
+ N > B && p(!1);
2037
2037
  }
2038
2038
  }, I = (x) => (x.label + " " + x.value).toLowerCase().includes(d.toLowerCase());
2039
2039
  return /* @__PURE__ */ i.jsxs(
@@ -3079,8 +3079,8 @@ function Au(e, t) {
3079
3079
  threshold: mu(0, pu(1, a)) || 1
3080
3080
  };
3081
3081
  let y = !0;
3082
- function N(F) {
3083
- const T = F[0].intersectionRatio;
3082
+ function N(B) {
3083
+ const T = B[0].intersectionRatio;
3084
3084
  if (T !== a) {
3085
3085
  if (!y)
3086
3086
  return c();
@@ -3277,30 +3277,30 @@ function ku(e) {
3277
3277
  };
3278
3278
  if (!s || !s.offsetParent)
3279
3279
  return l;
3280
- var d = a.getBoundingClientRect(), g = d.height, m = s.getBoundingClientRect(), p = m.bottom, f = m.height, b = m.top, I = s.offsetParent.getBoundingClientRect(), v = I.top, x = c ? window.innerHeight : ju(a), y = ri(a), N = parseInt(getComputedStyle(s).marginBottom, 10), F = parseInt(getComputedStyle(s).marginTop, 10), T = v - F, w = x - b, C = T + y, S = g - y - b, A = p - x + y + N, j = y + b - F, V = 160;
3280
+ var d = a.getBoundingClientRect(), g = d.height, m = s.getBoundingClientRect(), p = m.bottom, f = m.height, b = m.top, I = s.offsetParent.getBoundingClientRect(), v = I.top, x = c ? window.innerHeight : ju(a), y = ri(a), N = parseInt(getComputedStyle(s).marginBottom, 10), B = parseInt(getComputedStyle(s).marginTop, 10), T = v - B, j = x - b, S = T + y, C = g - y - b, A = p - x + y + N, w = y + b - B, V = 160;
3281
3281
  switch (n) {
3282
3282
  case "auto":
3283
3283
  case "bottom":
3284
- if (w >= f)
3284
+ if (j >= f)
3285
3285
  return {
3286
3286
  placement: "bottom",
3287
3287
  maxHeight: t
3288
3288
  };
3289
- if (S >= f && !c)
3289
+ if (C >= f && !c)
3290
3290
  return o && Jt(a, A, V), {
3291
3291
  placement: "bottom",
3292
3292
  maxHeight: t
3293
3293
  };
3294
- if (!c && S >= r || c && w >= r) {
3294
+ if (!c && C >= r || c && j >= r) {
3295
3295
  o && Jt(a, A, V);
3296
- var B = c ? w - N : S - N;
3296
+ var F = c ? j - N : C - N;
3297
3297
  return {
3298
3298
  placement: "bottom",
3299
- maxHeight: B
3299
+ maxHeight: F
3300
3300
  };
3301
3301
  }
3302
3302
  if (n === "auto" || c) {
3303
- var M = t, Z = c ? T : C;
3303
+ var M = t, Z = c ? T : S;
3304
3304
  return Z >= r && (M = Math.min(Z - N - u, t)), {
3305
3305
  placement: "top",
3306
3306
  maxHeight: M
@@ -3318,14 +3318,14 @@ function ku(e) {
3318
3318
  placement: "top",
3319
3319
  maxHeight: t
3320
3320
  };
3321
- if (C >= f && !c)
3322
- return o && Jt(a, j, V), {
3321
+ if (S >= f && !c)
3322
+ return o && Jt(a, w, V), {
3323
3323
  placement: "top",
3324
3324
  maxHeight: t
3325
3325
  };
3326
- if (!c && C >= r || c && T >= r) {
3326
+ if (!c && S >= r || c && T >= r) {
3327
3327
  var J = t;
3328
- return (!c && C >= r || c && T >= r) && (J = c ? T - F : C - F), o && Jt(a, j, V), {
3328
+ return (!c && S >= r || c && T >= r) && (J = c ? T - B : S - B), o && Jt(a, w, V), {
3329
3329
  placement: "top",
3330
3330
  maxHeight: J
3331
3331
  };
@@ -3362,18 +3362,18 @@ var oi = function(t) {
3362
3362
  }, ai = /* @__PURE__ */ Ki(null), Hu = function(t) {
3363
3363
  var s = t.children, r = t.minMenuHeight, n = t.maxMenuHeight, o = t.menuPlacement, c = t.menuPosition, u = t.menuShouldScrollIntoView, a = t.theme, l = Qi(ai) || {}, d = l.setPortalPlacement, g = Te(null), m = Ie(n), p = pe(m, 2), f = p[0], b = p[1], I = Ie(null), v = pe(I, 2), x = v[0], y = v[1], N = a.spacing.controlHeight;
3364
3364
  return ss(function() {
3365
- var F = g.current;
3366
- if (F) {
3367
- var T = c === "fixed", w = u && !T, C = ku({
3365
+ var B = g.current;
3366
+ if (B) {
3367
+ var T = c === "fixed", j = u && !T, S = ku({
3368
3368
  maxHeight: n,
3369
- menuEl: F,
3369
+ menuEl: B,
3370
3370
  minHeight: r,
3371
3371
  placement: o,
3372
- shouldScroll: w,
3372
+ shouldScroll: j,
3373
3373
  isFixedPosition: T,
3374
3374
  controlHeight: N
3375
3375
  });
3376
- b(C.maxHeight), y(C.placement), d == null || d(C.placement);
3376
+ b(S.maxHeight), y(S.placement), d == null || d(S.placement);
3377
3377
  }
3378
3378
  }, [n, o, c, u, r, d, N]), s({
3379
3379
  ref: g,
@@ -3451,10 +3451,10 @@ var oi = function(t) {
3451
3451
  };
3452
3452
  }, []), b = Ie(null), I = pe(b, 2), v = I[0], x = I[1], y = me(function() {
3453
3453
  if (n) {
3454
- var w = Fu(n), C = u === "fixed" ? 0 : window.pageYOffset, S = w[m] + C;
3455
- (S !== (v == null ? void 0 : v.offset) || w.left !== (v == null ? void 0 : v.rect.left) || w.width !== (v == null ? void 0 : v.rect.width)) && x({
3456
- offset: S,
3457
- rect: w
3454
+ var j = Fu(n), S = u === "fixed" ? 0 : window.pageYOffset, C = j[m] + S;
3455
+ (C !== (v == null ? void 0 : v.offset) || j.left !== (v == null ? void 0 : v.rect.left) || j.width !== (v == null ? void 0 : v.rect.width)) && x({
3456
+ offset: C,
3457
+ rect: j
3458
3458
  });
3459
3459
  }
3460
3460
  }, [n, u, m, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
@@ -3469,13 +3469,13 @@ var oi = function(t) {
3469
3469
  ss(function() {
3470
3470
  N();
3471
3471
  }, [N]);
3472
- var F = me(function(w) {
3473
- a.current = w, N();
3472
+ var B = me(function(j) {
3473
+ a.current = j, N();
3474
3474
  }, [N]);
3475
3475
  if (!s && u !== "fixed" || !v)
3476
3476
  return null;
3477
3477
  var T = D("div", W({
3478
- ref: F
3478
+ ref: B
3479
3479
  }, ne(L(L({}, t), {}, {
3480
3480
  offset: v.offset,
3481
3481
  position: u,
@@ -4052,11 +4052,11 @@ var r0 = process.env.NODE_ENV === "production" ? {
4052
4052
  return "".concat(r).concat(s ? " for search term " + s : "", ".");
4053
4053
  }
4054
4054
  }, a0 = function(t) {
4055
- var s = t.ariaSelection, r = t.focusedOption, n = t.focusedValue, o = t.focusableOptions, c = t.isFocused, u = t.selectValue, a = t.selectProps, l = t.id, d = t.isAppleDevice, g = a.ariaLiveMessages, m = a.getOptionLabel, p = a.inputValue, f = a.isMulti, b = a.isOptionDisabled, I = a.isSearchable, v = a.menuIsOpen, x = a.options, y = a.screenReaderStatus, N = a.tabSelectsValue, F = a.isLoading, T = a["aria-label"], w = a["aria-live"], C = Ke(function() {
4055
+ var s = t.ariaSelection, r = t.focusedOption, n = t.focusedValue, o = t.focusableOptions, c = t.isFocused, u = t.selectValue, a = t.selectProps, l = t.id, d = t.isAppleDevice, g = a.ariaLiveMessages, m = a.getOptionLabel, p = a.inputValue, f = a.isMulti, b = a.isOptionDisabled, I = a.isSearchable, v = a.menuIsOpen, x = a.options, y = a.screenReaderStatus, N = a.tabSelectsValue, B = a.isLoading, T = a["aria-label"], j = a["aria-live"], S = Ke(function() {
4056
4056
  return L(L({}, o0), g || {});
4057
- }, [g]), S = Ke(function() {
4057
+ }, [g]), C = Ke(function() {
4058
4058
  var Z = "";
4059
- if (s && C.onChange) {
4059
+ if (s && S.onChange) {
4060
4060
  var J = s.option, Q = s.options, le = s.removedValue, Ge = s.removedValues, Ee = s.value, Ze = function(he) {
4061
4061
  return Array.isArray(he) ? null : he;
4062
4062
  }, $ = le || J || Ze(Ee), ce = $ ? m($) : "", Se = Q || Ge || void 0, ve = Se ? Se.map(m) : [], ue = L({
@@ -4066,12 +4066,12 @@ var r0 = process.env.NODE_ENV === "production" ? {
4066
4066
  label: ce,
4067
4067
  labels: ve
4068
4068
  }, s);
4069
- Z = C.onChange(ue);
4069
+ Z = S.onChange(ue);
4070
4070
  }
4071
4071
  return Z;
4072
- }, [s, C, b, u, m]), A = Ke(function() {
4072
+ }, [s, S, b, u, m]), A = Ke(function() {
4073
4073
  var Z = "", J = r || n, Q = !!(r && u && u.includes(r));
4074
- if (J && C.onFocus) {
4074
+ if (J && S.onFocus) {
4075
4075
  var le = {
4076
4076
  focused: J,
4077
4077
  label: m(J),
@@ -4082,26 +4082,26 @@ var r0 = process.env.NODE_ENV === "production" ? {
4082
4082
  selectValue: u,
4083
4083
  isAppleDevice: d
4084
4084
  };
4085
- Z = C.onFocus(le);
4085
+ Z = S.onFocus(le);
4086
4086
  }
4087
4087
  return Z;
4088
- }, [r, n, m, b, C, o, u, d]), j = Ke(function() {
4088
+ }, [r, n, m, b, S, o, u, d]), w = Ke(function() {
4089
4089
  var Z = "";
4090
- if (v && x.length && !F && C.onFilter) {
4090
+ if (v && x.length && !B && S.onFilter) {
4091
4091
  var J = y({
4092
4092
  count: o.length
4093
4093
  });
4094
- Z = C.onFilter({
4094
+ Z = S.onFilter({
4095
4095
  inputValue: p,
4096
4096
  resultsMessage: J
4097
4097
  });
4098
4098
  }
4099
4099
  return Z;
4100
- }, [o, p, v, C, x, y, F]), V = (s == null ? void 0 : s.action) === "initial-input-focus", B = Ke(function() {
4100
+ }, [o, p, v, S, x, y, B]), V = (s == null ? void 0 : s.action) === "initial-input-focus", F = Ke(function() {
4101
4101
  var Z = "";
4102
- if (C.guidance) {
4102
+ if (S.guidance) {
4103
4103
  var J = n ? "value" : v ? "menu" : "input";
4104
- Z = C.guidance({
4104
+ Z = S.guidance({
4105
4105
  "aria-label": T,
4106
4106
  context: J,
4107
4107
  isDisabled: r && b(r, u),
@@ -4112,19 +4112,19 @@ var r0 = process.env.NODE_ENV === "production" ? {
4112
4112
  });
4113
4113
  }
4114
4114
  return Z;
4115
- }, [T, r, n, f, b, I, v, C, u, N, V]), M = D(Qn, null, D("span", {
4115
+ }, [T, r, n, f, b, I, v, S, u, N, V]), M = D(Qn, null, D("span", {
4116
4116
  id: "aria-selection"
4117
- }, S), D("span", {
4117
+ }, C), D("span", {
4118
4118
  id: "aria-focused"
4119
4119
  }, A), D("span", {
4120
4120
  id: "aria-results"
4121
- }, j), D("span", {
4121
+ }, w), D("span", {
4122
4122
  id: "aria-guidance"
4123
- }, B));
4123
+ }, F));
4124
4124
  return D(Qn, null, D(tr, {
4125
4125
  id: l
4126
4126
  }, V && M), D(tr, {
4127
- "aria-live": w,
4127
+ "aria-live": j,
4128
4128
  "aria-atomic": "false",
4129
4129
  "aria-relevant": "additions text",
4130
4130
  role: "log"
@@ -4443,8 +4443,8 @@ var h0 = function(t) {
4443
4443
  function b0(e) {
4444
4444
  var t = e.isEnabled, s = e.onBottomArrive, r = e.onBottomLeave, n = e.onTopArrive, o = e.onTopLeave, c = Te(!1), u = Te(!1), a = Te(0), l = Te(null), d = me(function(I, v) {
4445
4445
  if (l.current !== null) {
4446
- var x = l.current, y = x.scrollTop, N = x.scrollHeight, F = x.clientHeight, T = l.current, w = v > 0, C = N - F - y, S = !1;
4447
- C > v && c.current && (r && r(I), c.current = !1), w && u.current && (o && o(I), u.current = !1), w && v > C ? (s && !c.current && s(I), T.scrollTop = N, S = !0, c.current = !0) : !w && -v > y && (n && !u.current && n(I), T.scrollTop = 0, S = !0, u.current = !0), S && h0(I);
4446
+ var x = l.current, y = x.scrollTop, N = x.scrollHeight, B = x.clientHeight, T = l.current, j = v > 0, S = N - B - y, C = !1;
4447
+ S > v && c.current && (r && r(I), c.current = !1), j && u.current && (o && o(I), u.current = !1), j && v > S ? (s && !c.current && s(I), T.scrollTop = N, C = !0, c.current = !0) : !j && -v > y && (n && !u.current && n(I), T.scrollTop = 0, C = !0, u.current = !0), C && h0(I);
4448
4448
  }
4449
4449
  }, [s, r, n, o]), g = me(function(I) {
4450
4450
  d(I, I.deltaY);
@@ -5025,7 +5025,7 @@ var Ei = function(t) {
5025
5025
  }, n.onValueInputFocus = function(a) {
5026
5026
  a.preventDefault(), a.stopPropagation(), n.focus();
5027
5027
  }, n.onKeyDown = function(a) {
5028
- var l = n.props, d = l.isMulti, g = l.backspaceRemovesValue, m = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, b = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, x = l.tabSelectsValue, y = l.openMenuOnFocus, N = n.state, F = N.focusedOption, T = N.focusedValue, w = N.selectValue;
5028
+ var l = n.props, d = l.isMulti, g = l.backspaceRemovesValue, m = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, b = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, x = l.tabSelectsValue, y = l.openMenuOnFocus, N = n.state, B = N.focusedOption, T = N.focusedValue, j = N.selectValue;
5029
5029
  if (!b && !(typeof v == "function" && (v(a), a.defaultPrevented))) {
5030
5030
  switch (n.blockOptionHover = !0, a.key) {
5031
5031
  case "ArrowLeft":
@@ -5051,19 +5051,19 @@ var Ei = function(t) {
5051
5051
  }
5052
5052
  break;
5053
5053
  case "Tab":
5054
- if (n.isComposing || a.shiftKey || !I || !x || !F || // don't capture the event if the menu opens on focus and the focused
5054
+ if (n.isComposing || a.shiftKey || !I || !x || !B || // don't capture the event if the menu opens on focus and the focused
5055
5055
  // option is already selected; it breaks the flow of navigation
5056
- y && n.isOptionSelected(F, w))
5056
+ y && n.isOptionSelected(B, j))
5057
5057
  return;
5058
- n.selectOption(F);
5058
+ n.selectOption(B);
5059
5059
  break;
5060
5060
  case "Enter":
5061
5061
  if (a.keyCode === 229)
5062
5062
  break;
5063
5063
  if (I) {
5064
- if (!F || n.isComposing)
5064
+ if (!B || n.isComposing)
5065
5065
  return;
5066
- n.selectOption(F);
5066
+ n.selectOption(B);
5067
5067
  break;
5068
5068
  }
5069
5069
  return;
@@ -5082,9 +5082,9 @@ var Ei = function(t) {
5082
5082
  n.openMenu("first");
5083
5083
  break;
5084
5084
  }
5085
- if (!F)
5085
+ if (!B)
5086
5086
  return;
5087
- n.selectOption(F);
5087
+ n.selectOption(B);
5088
5088
  break;
5089
5089
  case "ArrowUp":
5090
5090
  I ? n.focusOption("up") : n.openMenu("last");
@@ -5410,7 +5410,7 @@ var Ei = function(t) {
5410
5410
  }, {
5411
5411
  key: "renderPlaceholderOrValue",
5412
5412
  value: function() {
5413
- var n = this, o = this.getComponents(), c = o.MultiValue, u = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, d = o.SingleValue, g = o.Placeholder, m = this.commonProps, p = this.props, f = p.controlShouldRenderValue, b = p.isDisabled, I = p.isMulti, v = p.inputValue, x = p.placeholder, y = this.state, N = y.selectValue, F = y.focusedValue, T = y.isFocused;
5413
+ var n = this, o = this.getComponents(), c = o.MultiValue, u = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, d = o.SingleValue, g = o.Placeholder, m = this.commonProps, p = this.props, f = p.controlShouldRenderValue, b = p.isDisabled, I = p.isMulti, v = p.inputValue, x = p.placeholder, y = this.state, N = y.selectValue, B = y.focusedValue, T = y.isFocused;
5414
5414
  if (!this.hasValue() || !f)
5415
5415
  return v ? null : /* @__PURE__ */ _.createElement(g, W({}, m, {
5416
5416
  key: "placeholder",
@@ -5421,8 +5421,8 @@ var Ei = function(t) {
5421
5421
  }
5422
5422
  }), x);
5423
5423
  if (I)
5424
- return N.map(function(C, S) {
5425
- var A = C === F, j = "".concat(n.getOptionLabel(C), "-").concat(n.getOptionValue(C));
5424
+ return N.map(function(S, C) {
5425
+ var A = S === B, w = "".concat(n.getOptionLabel(S), "-").concat(n.getOptionValue(S));
5426
5426
  return /* @__PURE__ */ _.createElement(c, W({}, m, {
5427
5427
  components: {
5428
5428
  Container: u,
@@ -5431,29 +5431,29 @@ var Ei = function(t) {
5431
5431
  },
5432
5432
  isFocused: A,
5433
5433
  isDisabled: b,
5434
- key: j,
5435
- index: S,
5434
+ key: w,
5435
+ index: C,
5436
5436
  removeProps: {
5437
5437
  onClick: function() {
5438
- return n.removeValue(C);
5438
+ return n.removeValue(S);
5439
5439
  },
5440
5440
  onTouchEnd: function() {
5441
- return n.removeValue(C);
5441
+ return n.removeValue(S);
5442
5442
  },
5443
- onMouseDown: function(B) {
5444
- B.preventDefault();
5443
+ onMouseDown: function(F) {
5444
+ F.preventDefault();
5445
5445
  }
5446
5446
  },
5447
- data: C
5448
- }), n.formatOptionLabel(C, "value"));
5447
+ data: S
5448
+ }), n.formatOptionLabel(S, "value"));
5449
5449
  });
5450
5450
  if (v)
5451
5451
  return null;
5452
- var w = N[0];
5452
+ var j = N[0];
5453
5453
  return /* @__PURE__ */ _.createElement(d, W({}, m, {
5454
- data: w,
5454
+ data: j,
5455
5455
  isDisabled: b
5456
- }), this.formatOptionLabel(w, "value"));
5456
+ }), this.formatOptionLabel(j, "value"));
5457
5457
  }
5458
5458
  }, {
5459
5459
  key: "renderClearIndicator",
@@ -5518,8 +5518,8 @@ var Ei = function(t) {
5518
5518
  }, {
5519
5519
  key: "renderMenu",
5520
5520
  value: function() {
5521
- var n = this, o = this.getComponents(), c = o.Group, u = o.GroupHeading, a = o.Menu, l = o.MenuList, d = o.MenuPortal, g = o.LoadingMessage, m = o.NoOptionsMessage, p = o.Option, f = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue, y = I.isLoading, N = I.loadingMessage, F = I.minMenuHeight, T = I.maxMenuHeight, w = I.menuIsOpen, C = I.menuPlacement, S = I.menuPosition, A = I.menuPortalTarget, j = I.menuShouldBlockScroll, V = I.menuShouldScrollIntoView, B = I.noOptionsMessage, M = I.onMenuScrollToTop, Z = I.onMenuScrollToBottom;
5522
- if (!w)
5521
+ var n = this, o = this.getComponents(), c = o.Group, u = o.GroupHeading, a = o.Menu, l = o.MenuList, d = o.MenuPortal, g = o.LoadingMessage, m = o.NoOptionsMessage, p = o.Option, f = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue, y = I.isLoading, N = I.loadingMessage, B = I.minMenuHeight, T = I.maxMenuHeight, j = I.menuIsOpen, S = I.menuPlacement, C = I.menuPosition, A = I.menuPortalTarget, w = I.menuShouldBlockScroll, V = I.menuShouldScrollIntoView, F = I.noOptionsMessage, M = I.onMenuScrollToTop, Z = I.onMenuScrollToBottom;
5522
+ if (!j)
5523
5523
  return null;
5524
5524
  var J = function(ce, Se) {
5525
5525
  var ve = ce.type, ue = ce.data, Ne = ce.isDisabled, he = ce.isSelected, Oe = ce.label, Ye = ce.value, it = b === ue, Je = Ne ? void 0 : function() {
@@ -5577,7 +5577,7 @@ var Ei = function(t) {
5577
5577
  return null;
5578
5578
  Q = /* @__PURE__ */ _.createElement(g, f, le);
5579
5579
  } else {
5580
- var Ge = B({
5580
+ var Ge = F({
5581
5581
  inputValue: x
5582
5582
  });
5583
5583
  if (Ge === null)
@@ -5585,10 +5585,10 @@ var Ei = function(t) {
5585
5585
  Q = /* @__PURE__ */ _.createElement(m, f, Ge);
5586
5586
  }
5587
5587
  var Ee = {
5588
- minMenuHeight: F,
5588
+ minMenuHeight: B,
5589
5589
  maxMenuHeight: T,
5590
- menuPlacement: C,
5591
- menuPosition: S,
5590
+ menuPlacement: S,
5591
+ menuPosition: C,
5592
5592
  menuShouldScrollIntoView: V
5593
5593
  }, Ze = /* @__PURE__ */ _.createElement(Hu, W({}, f, Ee), function($) {
5594
5594
  var ce = $.ref, Se = $.placerProps, ve = Se.placement, ue = Se.maxHeight;
@@ -5604,7 +5604,7 @@ var Ei = function(t) {
5604
5604
  captureEnabled: v,
5605
5605
  onTopArrive: M,
5606
5606
  onBottomArrive: Z,
5607
- lockEnabled: j
5607
+ lockEnabled: w
5608
5608
  }, function(Ne) {
5609
5609
  return /* @__PURE__ */ _.createElement(l, W({}, f, {
5610
5610
  innerRef: function(Oe) {
@@ -5621,11 +5621,11 @@ var Ei = function(t) {
5621
5621
  }), Q);
5622
5622
  }));
5623
5623
  });
5624
- return A || S === "fixed" ? /* @__PURE__ */ _.createElement(d, W({}, f, {
5624
+ return A || C === "fixed" ? /* @__PURE__ */ _.createElement(d, W({}, f, {
5625
5625
  appendTo: A,
5626
5626
  controlElement: this.controlRef,
5627
- menuPlacement: C,
5628
- menuPosition: S
5627
+ menuPlacement: S,
5628
+ menuPosition: C
5629
5629
  }), Ze) : Ze;
5630
5630
  }
5631
5631
  }, {
@@ -5719,28 +5719,28 @@ var Ei = function(t) {
5719
5719
  value: function(n, o) {
5720
5720
  var c = o.prevProps, u = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, d = o.isFocused, g = o.prevWasFocused, m = o.instancePrefix, p = n.options, f = n.value, b = n.menuIsOpen, I = n.inputValue, v = n.isMulti, x = hn(f), y = {};
5721
5721
  if (c && (f !== c.value || p !== c.options || b !== c.menuIsOpen || I !== c.inputValue)) {
5722
- var N = b ? D0(n, x) : [], F = b ? dr(en(n, x), "".concat(m, "-option")) : [], T = u ? W0(o, x) : null, w = k0(o, N), C = Zn(F, w);
5722
+ var N = b ? D0(n, x) : [], B = b ? dr(en(n, x), "".concat(m, "-option")) : [], T = u ? W0(o, x) : null, j = k0(o, N), S = Zn(B, j);
5723
5723
  y = {
5724
5724
  selectValue: x,
5725
- focusedOption: w,
5726
- focusedOptionId: C,
5727
- focusableOptionsWithIds: F,
5725
+ focusedOption: j,
5726
+ focusedOptionId: S,
5727
+ focusableOptionsWithIds: B,
5728
5728
  focusedValue: T,
5729
5729
  clearFocusValueOnUpdate: !1
5730
5730
  };
5731
5731
  }
5732
- var S = a != null && n !== c ? {
5732
+ var C = a != null && n !== c ? {
5733
5733
  inputIsHidden: a,
5734
5734
  inputIsHiddenAfterUpdate: void 0
5735
- } : {}, A = l, j = d && g;
5736
- return d && !j && (A = {
5735
+ } : {}, A = l, w = d && g;
5736
+ return d && !w && (A = {
5737
5737
  value: Tt(v, x, x[0] || null),
5738
5738
  options: x,
5739
5739
  action: "initial-input-focus"
5740
- }, j = !g), (l == null ? void 0 : l.action) === "initial-input-focus" && (A = null), L(L(L({}, y), S), {}, {
5740
+ }, w = !g), (l == null ? void 0 : l.action) === "initial-input-focus" && (A = null), L(L(L({}, y), C), {}, {
5741
5741
  prevProps: n,
5742
5742
  ariaSelection: A,
5743
- prevWasFocused: j
5743
+ prevWasFocused: w
5744
5744
  });
5745
5745
  }
5746
5746
  }]), s;
@@ -5748,23 +5748,23 @@ var Ei = function(t) {
5748
5748
  _s.defaultProps = O0;
5749
5749
  var X0 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
5750
5750
  function Si(e) {
5751
- var t = e.defaultInputValue, s = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, o = e.defaultValue, c = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, l = e.onChange, d = e.onInputChange, g = e.onMenuClose, m = e.onMenuOpen, p = e.value, f = Le(e, X0), b = Ie(u !== void 0 ? u : s), I = pe(b, 2), v = I[0], x = I[1], y = Ie(a !== void 0 ? a : n), N = pe(y, 2), F = N[0], T = N[1], w = Ie(p !== void 0 ? p : c), C = pe(w, 2), S = C[0], A = C[1], j = me(function(le, Ge) {
5751
+ var t = e.defaultInputValue, s = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, n = r === void 0 ? !1 : r, o = e.defaultValue, c = o === void 0 ? null : o, u = e.inputValue, a = e.menuIsOpen, l = e.onChange, d = e.onInputChange, g = e.onMenuClose, m = e.onMenuOpen, p = e.value, f = Le(e, X0), b = Ie(u !== void 0 ? u : s), I = pe(b, 2), v = I[0], x = I[1], y = Ie(a !== void 0 ? a : n), N = pe(y, 2), B = N[0], T = N[1], j = Ie(p !== void 0 ? p : c), S = pe(j, 2), C = S[0], A = S[1], w = me(function(le, Ge) {
5752
5752
  typeof l == "function" && l(le, Ge), A(le);
5753
5753
  }, [l]), V = me(function(le, Ge) {
5754
5754
  var Ee;
5755
5755
  typeof d == "function" && (Ee = d(le, Ge)), x(Ee !== void 0 ? Ee : le);
5756
- }, [d]), B = me(function() {
5756
+ }, [d]), F = me(function() {
5757
5757
  typeof m == "function" && m(), T(!0);
5758
5758
  }, [m]), M = me(function() {
5759
5759
  typeof g == "function" && g(), T(!1);
5760
- }, [g]), Z = u !== void 0 ? u : v, J = a !== void 0 ? a : F, Q = p !== void 0 ? p : S;
5760
+ }, [g]), Z = u !== void 0 ? u : v, J = a !== void 0 ? a : B, Q = p !== void 0 ? p : C;
5761
5761
  return L(L({}, f), {}, {
5762
5762
  inputValue: Z,
5763
5763
  menuIsOpen: J,
5764
- onChange: j,
5764
+ onChange: w,
5765
5765
  onInputChange: V,
5766
5766
  onMenuClose: M,
5767
- onMenuOpen: B,
5767
+ onMenuOpen: F,
5768
5768
  value: Q
5769
5769
  });
5770
5770
  }
@@ -5772,7 +5772,7 @@ var H0 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
5772
5772
  function M0(e) {
5773
5773
  var t = e.defaultOptions, s = t === void 0 ? !1 : t, r = e.cacheOptions, n = r === void 0 ? !1 : r, o = e.loadOptions;
5774
5774
  e.options;
5775
- var c = e.isLoading, u = c === void 0 ? !1 : c, a = e.onInputChange, l = e.filterOption, d = l === void 0 ? null : l, g = Le(e, H0), m = g.inputValue, p = Te(void 0), f = Te(!1), b = Ie(Array.isArray(s) ? s : void 0), I = pe(b, 2), v = I[0], x = I[1], y = Ie(typeof m < "u" ? m : ""), N = pe(y, 2), F = N[0], T = N[1], w = Ie(s === !0), C = pe(w, 2), S = C[0], A = C[1], j = Ie(void 0), V = pe(j, 2), B = V[0], M = V[1], Z = Ie([]), J = pe(Z, 2), Q = J[0], le = J[1], Ge = Ie(!1), Ee = pe(Ge, 2), Ze = Ee[0], $ = Ee[1], ce = Ie({}), Se = pe(ce, 2), ve = Se[0], ue = Se[1], Ne = Ie(void 0), he = pe(Ne, 2), Oe = he[0], Ye = he[1], it = Ie(void 0), Je = pe(it, 2), Et = Je[0], ot = Je[1];
5775
+ var c = e.isLoading, u = c === void 0 ? !1 : c, a = e.onInputChange, l = e.filterOption, d = l === void 0 ? null : l, g = Le(e, H0), m = g.inputValue, p = Te(void 0), f = Te(!1), b = Ie(Array.isArray(s) ? s : void 0), I = pe(b, 2), v = I[0], x = I[1], y = Ie(typeof m < "u" ? m : ""), N = pe(y, 2), B = N[0], T = N[1], j = Ie(s === !0), S = pe(j, 2), C = S[0], A = S[1], w = Ie(void 0), V = pe(w, 2), F = V[0], M = V[1], Z = Ie([]), J = pe(Z, 2), Q = J[0], le = J[1], Ge = Ie(!1), Ee = pe(Ge, 2), Ze = Ee[0], $ = Ee[1], ce = Ie({}), Se = pe(ce, 2), ve = Se[0], ue = Se[1], Ne = Ie(void 0), he = pe(Ne, 2), Oe = he[0], Ye = he[1], it = Ie(void 0), Je = pe(it, 2), Et = Je[0], ot = Je[1];
5776
5776
  n !== Et && (ue({}), ot(n)), s !== Oe && (x(Array.isArray(s) ? s : void 0), Ye(s)), sn(function() {
5777
5777
  return f.current = !0, function() {
5778
5778
  f.current = !1;
@@ -5787,7 +5787,7 @@ function M0(e) {
5787
5787
  });
5788
5788
  }, [o]);
5789
5789
  sn(function() {
5790
- s === !0 && De(F, function($e) {
5790
+ s === !0 && De(B, function($e) {
5791
5791
  f.current && (x($e || []), A(!!p.current));
5792
5792
  });
5793
5793
  }, []);
@@ -5801,14 +5801,14 @@ function M0(e) {
5801
5801
  T(xe), M(xe), le(ve[xe]), A(!1), $(!1);
5802
5802
  else {
5803
5803
  var Sn = p.current = {};
5804
- T(xe), A(!0), $(!B), De(xe, function(tt) {
5804
+ T(xe), A(!0), $(!F), De(xe, function(tt) {
5805
5805
  f && Sn === p.current && (p.current = void 0, A(!1), M(xe), le(tt || []), $(!1), ue(tt ? L(L({}, ve), {}, ht({}, xe, tt)) : ve));
5806
5806
  });
5807
5807
  }
5808
- }, [n, De, B, ve, a]), Mt = Ze ? [] : F && B ? Q : v || [];
5808
+ }, [n, De, F, ve, a]), Mt = Ze ? [] : B && F ? Q : v || [];
5809
5809
  return L(L({}, g), {}, {
5810
5810
  options: Mt,
5811
- isLoading: S || u,
5811
+ isLoading: C || u,
5812
5812
  onInputChange: at,
5813
5813
  filterOption: d
5814
5814
  });
@@ -5909,35 +5909,35 @@ var J0 = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
5909
5909
  }
5910
5910
  };
5911
5911
  function $0(e) {
5912
- var t = e.allowCreateWhileLoading, s = t === void 0 ? !1 : t, r = e.createOptionPosition, n = r === void 0 ? "last" : r, o = e.formatCreateLabel, c = o === void 0 ? Xn.formatCreateLabel : o, u = e.isValidNewOption, a = u === void 0 ? Xn.isValidNewOption : u, l = e.getNewOptionData, d = l === void 0 ? Xn.getNewOptionData : l, g = e.onCreateOption, m = e.options, p = m === void 0 ? [] : m, f = e.onChange, b = Le(e, J0), I = b.getOptionValue, v = I === void 0 ? vi : I, x = b.getOptionLabel, y = x === void 0 ? fi : x, N = b.inputValue, F = b.isLoading, T = b.isMulti, w = b.value, C = b.name, S = Ke(function() {
5913
- return a(N, hn(w), p, {
5912
+ var t = e.allowCreateWhileLoading, s = t === void 0 ? !1 : t, r = e.createOptionPosition, n = r === void 0 ? "last" : r, o = e.formatCreateLabel, c = o === void 0 ? Xn.formatCreateLabel : o, u = e.isValidNewOption, a = u === void 0 ? Xn.isValidNewOption : u, l = e.getNewOptionData, d = l === void 0 ? Xn.getNewOptionData : l, g = e.onCreateOption, m = e.options, p = m === void 0 ? [] : m, f = e.onChange, b = Le(e, J0), I = b.getOptionValue, v = I === void 0 ? vi : I, x = b.getOptionLabel, y = x === void 0 ? fi : x, N = b.inputValue, B = b.isLoading, T = b.isMulti, j = b.value, S = b.name, C = Ke(function() {
5913
+ return a(N, hn(j), p, {
5914
5914
  getOptionValue: v,
5915
5915
  getOptionLabel: y
5916
5916
  }) ? d(N, c(N)) : void 0;
5917
- }, [c, d, y, v, N, a, p, w]), A = Ke(function() {
5918
- return (s || !F) && S ? n === "first" ? [S].concat(ft(p)) : [].concat(ft(p), [S]) : p;
5919
- }, [s, n, F, S, p]), j = me(function(V, B) {
5920
- if (B.action !== "select-option")
5921
- return f(V, B);
5917
+ }, [c, d, y, v, N, a, p, j]), A = Ke(function() {
5918
+ return (s || !B) && C ? n === "first" ? [C].concat(ft(p)) : [].concat(ft(p), [C]) : p;
5919
+ }, [s, n, B, C, p]), w = me(function(V, F) {
5920
+ if (F.action !== "select-option")
5921
+ return f(V, F);
5922
5922
  var M = Array.isArray(V) ? V : [V];
5923
- if (M[M.length - 1] === S) {
5923
+ if (M[M.length - 1] === C) {
5924
5924
  if (g)
5925
5925
  g(N);
5926
5926
  else {
5927
5927
  var Z = d(N, N), J = {
5928
5928
  action: "create-option",
5929
- name: C,
5929
+ name: S,
5930
5930
  option: Z
5931
5931
  };
5932
- f(Tt(T, [].concat(ft(hn(w)), [Z]), Z), J);
5932
+ f(Tt(T, [].concat(ft(hn(j)), [Z]), Z), J);
5933
5933
  }
5934
5934
  return;
5935
5935
  }
5936
- f(V, B);
5937
- }, [d, N, T, C, S, g, f, w]);
5936
+ f(V, F);
5937
+ }, [d, N, T, S, C, g, f, j]);
5938
5938
  return L(L({}, b), {}, {
5939
5939
  options: A,
5940
- onChange: j
5940
+ onChange: w
5941
5941
  });
5942
5942
  }
5943
5943
  var U0 = /* @__PURE__ */ Gr(function(e, t) {
@@ -6001,23 +6001,23 @@ function hb({
6001
6001
  onChange: async (y) => {
6002
6002
  if (y)
6003
6003
  if (b) {
6004
- const N = y.filter((w) => w.__isNew__), F = y.filter((w) => !w.__isNew__);
6005
- let T = F;
6004
+ const N = y.filter((j) => j.__isNew__), B = y.filter((j) => !j.__isNew__);
6005
+ let T = B;
6006
6006
  if (N.length > 0) {
6007
- const w = await v(
6008
- N.map((C) => C.value)
6007
+ const j = await v(
6008
+ N.map((S) => S.value)
6009
6009
  );
6010
- w && (y = y.map((C) => (C.__isNew__ && (C.value = w[0].value, delete C.__isNew__), C)), await x(), T = [...F, ...w]);
6010
+ j && (y = y.map((S) => (S.__isNew__ && (S.value = j[0].value, delete S.__isNew__), S)), await x(), T = [...B, ...j]);
6011
6011
  }
6012
6012
  t(
6013
- T.map((w) => w.value),
6013
+ T.map((j) => j.value),
6014
6014
  y.actionMeta
6015
6015
  );
6016
6016
  } else {
6017
6017
  let N;
6018
6018
  if (y.__isNew__) {
6019
- const F = await v(y.value);
6020
- await x(), delete y.__isNew__, N = F.value;
6019
+ const B = await v(y.value);
6020
+ await x(), delete y.__isNew__, N = B.value;
6021
6021
  } else
6022
6022
  N = y.value;
6023
6023
  t(N ?? "", y.actionMeta);
@@ -6128,43 +6128,43 @@ function fb({
6128
6128
  f(g);
6129
6129
  }, [g]);
6130
6130
  const y = async () => {
6131
- const C = e[p].onContinueClick;
6131
+ const S = e[p].onContinueClick;
6132
6132
  try {
6133
- C ? C.constructor && C.constructor.name === "AsyncFunction" ? (await C(), N()) : (C(), N()) : v && (s(), I(!0));
6133
+ S ? S.constructor && S.constructor.name === "AsyncFunction" ? (await S(), N()) : (S(), N()) : v && (s(), I(!0));
6134
6134
  } catch {
6135
6135
  return;
6136
6136
  }
6137
6137
  }, N = () => {
6138
6138
  v && !x ? (s(), I(!0)) : p < e.length - 1 && !x && f(p + 1);
6139
- }, F = () => {
6139
+ }, B = () => {
6140
6140
  f(p - 1), I(!1);
6141
- }, T = (C) => {
6142
- l && C < p && f(C);
6143
- }, w = () => {
6141
+ }, T = (S) => {
6142
+ l && S < p && f(S);
6143
+ }, j = () => {
6144
6144
  m(), f(p + 1);
6145
6145
  };
6146
6146
  return /* @__PURE__ */ i.jsxs("div", { className: ye.progressContainer, children: [
6147
6147
  /* @__PURE__ */ i.jsxs("div", { className: ye.header, children: [
6148
- /* @__PURE__ */ i.jsx("div", { className: ye.steps, children: e.map((C, S) => /* @__PURE__ */ i.jsxs("div", { className: ye.step, onClick: () => T(S), children: [
6149
- S > 0 && /* @__PURE__ */ i.jsx("div", { className: ye.line }),
6148
+ /* @__PURE__ */ i.jsx("div", { className: ye.steps, children: e.map((S, C) => /* @__PURE__ */ i.jsxs("div", { className: ye.step, onClick: () => T(C), children: [
6149
+ C > 0 && /* @__PURE__ */ i.jsx("div", { className: ye.line }),
6150
6150
  /* @__PURE__ */ i.jsxs("div", { className: ye.labelContainer, children: [
6151
6151
  /* @__PURE__ */ i.jsx(
6152
6152
  "div",
6153
6153
  {
6154
6154
  className: P(
6155
6155
  ye.circle,
6156
- p === S && !b && ye.active,
6157
- (S < p || b) && ye.completed
6156
+ p === C && !b && ye.active,
6157
+ (C < p || b) && ye.completed
6158
6158
  ),
6159
- children: S < p || b ? /* @__PURE__ */ i.jsx(H, { path: vg, width: 20 }) : S + 1
6159
+ children: C < p || b ? /* @__PURE__ */ i.jsx(H, { path: vg, width: 20 }) : C + 1
6160
6160
  }
6161
6161
  ),
6162
- /* @__PURE__ */ i.jsx("div", { className: P(ye.label, p === S && ye.active), children: C.label })
6162
+ /* @__PURE__ */ i.jsx("div", { className: P(ye.label, p === C && ye.active), children: S.label })
6163
6163
  ] })
6164
- ] }, S)) }),
6164
+ ] }, C)) }),
6165
6165
  c && /* @__PURE__ */ i.jsxs("div", { className: ye.btnsFlex, children: [
6166
6166
  /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: t, children: "Cancel" }),
6167
- o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: w, variant: Be.GHOST, children: d }),
6167
+ o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: j, variant: Be.GHOST, children: d }),
6168
6168
  /* @__PURE__ */ i.jsx(te, { onClick: y, children: v ? a : "Continue" })
6169
6169
  ] })
6170
6170
  ] }),
@@ -6172,8 +6172,8 @@ function fb({
6172
6172
  u && /* @__PURE__ */ i.jsxs("div", { className: ye.footer, children: [
6173
6173
  /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: t, children: "Cancel" }),
6174
6174
  /* @__PURE__ */ i.jsxs("div", { className: ye.btnsFlex, children: [
6175
- p > 0 && /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: F, children: "Back" }),
6176
- o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: w, variant: Be.GHOST, children: d }),
6175
+ p > 0 && /* @__PURE__ */ i.jsx(te, { variant: Be.SECONDARY, onClick: B, children: "Back" }),
6176
+ o && p === r && /* @__PURE__ */ i.jsx(te, { onClick: j, variant: Be.GHOST, children: d }),
6177
6177
  /* @__PURE__ */ i.jsx(te, { onClick: y, children: v ? n : "Continue" })
6178
6178
  ] })
6179
6179
  ] })
@@ -6571,7 +6571,7 @@ function fp({
6571
6571
  }
6572
6572
  ) }) }) }) : null;
6573
6573
  }
6574
- const vp = "_box_8su2f_1", Ip = "_texts_8su2f_12", xp = "_heading_8su2f_18", Cp = "_actions_8su2f_24", yp = "_actionCommon_8su2f_31", Ap = "_filterBtn_8su2f_49", nt = {
6574
+ const vp = "_box_uqd4g_1", Ip = "_texts_uqd4g_14", xp = "_heading_uqd4g_20", Cp = "_actions_uqd4g_26", yp = "_actionCommon_uqd4g_33", Ap = "_filterBtn_uqd4g_51", nt = {
6575
6575
  box: vp,
6576
6576
  texts: Ip,
6577
6577
  heading: xp,
@@ -6724,8 +6724,8 @@ function qp({
6724
6724
  }, b = (x) => {
6725
6725
  let y = !1;
6726
6726
  return t.forEach((N) => {
6727
- N.values.forEach((F) => {
6728
- if (F === x) {
6727
+ N.values.forEach((B) => {
6728
+ if (B === x) {
6729
6729
  y = !0;
6730
6730
  return;
6731
6731
  }
@@ -6949,7 +6949,7 @@ const fr = (e, t) => {
6949
6949
  }), s;
6950
6950
  };
6951
6951
  function _m({ filterConfig: e }) {
6952
- var w, C, S;
6952
+ var j, S, C;
6953
6953
  const [t, s] = _.useState({}), [r, n] = _.useState(""), { setDefaultFilters: o, resetAllFilters: c, changeFiltersDrawer: u } = Xt((A) => ({
6954
6954
  setDefaultFilters: A.setDefaultFilters,
6955
6955
  resetAllFilters: A.resetAllFilters,
@@ -6961,14 +6961,14 @@ function _m({ filterConfig: e }) {
6961
6961
  A.open || s({});
6962
6962
  }
6963
6963
  })
6964
- ), b = (w = e.filters) != null && w.drawer ? e.filters.drawer : [], [I, v] = _.useState(b[0]), x = on.connect(p, f, fe);
6964
+ ), b = (j = e.filters) != null && j.drawer ? e.filters.drawer : [], [I, v] = _.useState(b[0]), x = on.connect(p, f, fe);
6965
6965
  _.useEffect(() => {
6966
- var j, V;
6966
+ var w, V;
6967
6967
  if (!(b != null && b.length) || l)
6968
6968
  return;
6969
- const A = (B) => ({ key: B.key, values: [] });
6969
+ const A = (F) => ({ key: F.key, values: [] });
6970
6970
  o(
6971
- [...((V = (j = e.filters) == null ? void 0 : j.header) == null ? void 0 : V.map(A)) || [], ...b == null ? void 0 : b.map(A)]
6971
+ [...((V = (w = e.filters) == null ? void 0 : w.header) == null ? void 0 : V.map(A)) || [], ...b == null ? void 0 : b.map(A)]
6972
6972
  );
6973
6973
  }, [b == null ? void 0 : b.length, l]);
6974
6974
  const y = I == null ? void 0 : I.options.filter((A) => A.name ? A.name.toLowerCase().includes(r.toLowerCase()) : !1).map((A) => A.value);
@@ -6981,12 +6981,12 @@ function _m({ filterConfig: e }) {
6981
6981
  const A = fr(b, a);
6982
6982
  s(A);
6983
6983
  }, [x.isOpen]);
6984
- const N = (A, j) => !Object.keys(t).length || !t[A] ? !1 : t[A][j].checked, F = () => {
6984
+ const N = (A, w) => !Object.keys(t).length || !t[A] ? !1 : t[A][w].checked, B = () => {
6985
6985
  const A = Am(t);
6986
- for (let [j, V] of Object.entries(A))
6987
- V.length && u(j, V.split(","), m);
6986
+ for (let [w, V] of Object.entries(A))
6987
+ V.length && u(w, V.split(","), m);
6988
6988
  x.close();
6989
- }, T = a.reduce((A, j) => A += j.values.length, 0);
6989
+ }, T = a.reduce((A, w) => A += w.values.length, 0);
6990
6990
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
6991
6991
  /* @__PURE__ */ i.jsxs(
6992
6992
  "button",
@@ -7024,11 +7024,11 @@ function _m({ filterConfig: e }) {
7024
7024
  ] }),
7025
7025
  /* @__PURE__ */ i.jsxs("div", { className: ge.filterBox, children: [
7026
7026
  /* @__PURE__ */ i.jsx("div", { className: ge.filters, children: b.map((A) => {
7027
- const j = I.id === A.id, V = a.find((B) => B.key === A.key);
7027
+ const w = I.id === A.id, V = a.find((F) => F.key === A.key);
7028
7028
  return /* @__PURE__ */ i.jsxs(
7029
7029
  "div",
7030
7030
  {
7031
- className: P(ge.filter, j && ge.active),
7031
+ className: P(ge.filter, w && ge.active),
7032
7032
  onClick: () => v(A),
7033
7033
  children: [
7034
7034
  A.name,
@@ -7040,16 +7040,16 @@ function _m({ filterConfig: e }) {
7040
7040
  );
7041
7041
  }) }),
7042
7042
  /* @__PURE__ */ i.jsxs("div", { className: ge.filterSingle, children: [
7043
- !((C = I.config) != null && C.hideSearch) && /* @__PURE__ */ i.jsx("div", { className: ge.dropdownSearch, children: /* @__PURE__ */ i.jsx(
7043
+ !((S = I.config) != null && S.hideSearch) && /* @__PURE__ */ i.jsx("div", { className: ge.dropdownSearch, children: /* @__PURE__ */ i.jsx(
7044
7044
  _t,
7045
7045
  {
7046
7046
  id: "filter-search",
7047
7047
  search: r,
7048
7048
  setSearch: n,
7049
- placeholder: ((S = I.config) == null ? void 0 : S.placeholder) || "Search"
7049
+ placeholder: ((C = I.config) == null ? void 0 : C.placeholder) || "Search"
7050
7050
  }
7051
7051
  ) }),
7052
- /* @__PURE__ */ i.jsx("div", { className: ge.options, children: y.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: ge.optionsEmpty, children: "No results found" }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: I == null ? void 0 : I.options.map((A, j) => /* @__PURE__ */ i.jsx(
7052
+ /* @__PURE__ */ i.jsx("div", { className: ge.options, children: y.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: ge.optionsEmpty, children: "No results found" }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: I == null ? void 0 : I.options.map((A, w) => /* @__PURE__ */ i.jsx(
7053
7053
  "div",
7054
7054
  {
7055
7055
  className: ge.option,
@@ -7062,16 +7062,16 @@ function _m({ filterConfig: e }) {
7062
7062
  label: A.name,
7063
7063
  value: A.value,
7064
7064
  filterKey: I.key,
7065
- checked: N(I.key, j),
7065
+ checked: N(I.key, w),
7066
7066
  countryCode: A.country_code,
7067
7067
  customName: A.customName,
7068
7068
  setFilterCheckedState: s,
7069
- idx: j
7069
+ idx: w
7070
7070
  },
7071
7071
  A.value
7072
7072
  )
7073
7073
  },
7074
- j
7074
+ w
7075
7075
  )) }) })
7076
7076
  ] })
7077
7077
  ] }),
@@ -7088,7 +7088,7 @@ function _m({ filterConfig: e }) {
7088
7088
  children: "Reset All"
7089
7089
  }
7090
7090
  ),
7091
- /* @__PURE__ */ i.jsx(te, { onClick: F, children: "Apply" })
7091
+ /* @__PURE__ */ i.jsx(te, { onClick: B, children: "Apply" })
7092
7092
  ] })
7093
7093
  ] }) })
7094
7094
  ] })
@@ -7108,7 +7108,7 @@ function Em({
7108
7108
  (e == null ? void 0 : e.entityName) || "",
7109
7109
  `${e == null ? void 0 : e.entityName}s`
7110
7110
  )}`, d = (g = r == null ? void 0 : r.filters) != null && g.header ? r == null ? void 0 : r.filters.header : null;
7111
- return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs("div", { className: nt.box, children: [
7111
+ return /* @__PURE__ */ i.jsxs("div", { className: nt.box, children: [
7112
7112
  /* @__PURE__ */ i.jsxs("div", { className: nt.texts, children: [
7113
7113
  /* @__PURE__ */ i.jsxs("p", { className: nt.heading, children: [
7114
7114
  a ? l : t,
@@ -7135,13 +7135,13 @@ function Em({
7135
7135
  }
7136
7136
  ) }),
7137
7137
  typeof r == "object" && !!d && /* @__PURE__ */ i.jsx(em, { filterConfig: r, filters: d }),
7138
- typeof r == "object" && /* @__PURE__ */ i.jsx(_m, { filterConfig: r }),
7138
+ typeof r == "object" && !!r.filters && /* @__PURE__ */ i.jsx(_m, { filterConfig: r }),
7139
7139
  // typeof customColumnConfig === 'object'
7140
7140
  /* @__PURE__ */ i.jsx("div", { className: nt.actionCommon, children: /* @__PURE__ */ i.jsx(H, { path: tm, width: 22, height: 22 }) }),
7141
7141
  // typeof exportConfig === 'object'
7142
7142
  /* @__PURE__ */ i.jsx("div", { className: nt.actionCommon, children: /* @__PURE__ */ i.jsx(H, { path: nm, width: 22, height: 22 }) })
7143
7143
  ] })
7144
- ] }) });
7144
+ ] });
7145
7145
  }
7146
7146
  const Sm = "_box_40p3g_1", Nm = "_label_40p3g_9", Mn = {
7147
7147
  box: Sm,
@@ -7301,72 +7301,72 @@ var xn = process.env.NODE_ENV !== "production", Yn = (e) => typeof e == "object"
7301
7301
  if (d)
7302
7302
  return d;
7303
7303
  let g = u[0];
7304
- const m = /* @__PURE__ */ new Set(), p = (S, A = ++u[0]) => {
7305
- g !== A && (g = A, m.forEach((j) => j(S, A)));
7304
+ const m = /* @__PURE__ */ new Set(), p = (C, A = ++u[0]) => {
7305
+ g !== A && (g = A, m.forEach((w) => w(C, A)));
7306
7306
  };
7307
7307
  let f = u[1];
7308
- const b = (S = ++u[1]) => (f !== S && !m.size && (f = S, v.forEach(([A]) => {
7309
- const j = A[1](S);
7310
- j > g && (g = j);
7311
- })), g), I = (S) => (A, j) => {
7308
+ const b = (C = ++u[1]) => (f !== C && !m.size && (f = C, v.forEach(([A]) => {
7309
+ const w = A[1](C);
7310
+ w > g && (g = w);
7311
+ })), g), I = (C) => (A, w) => {
7312
7312
  const V = [...A];
7313
- V[1] = [S, ...V[1]], p(V, j);
7314
- }, v = /* @__PURE__ */ new Map(), x = (S, A) => {
7315
- if (xn && v.has(S))
7313
+ V[1] = [C, ...V[1]], p(V, w);
7314
+ }, v = /* @__PURE__ */ new Map(), x = (C, A) => {
7315
+ if (xn && v.has(C))
7316
7316
  throw new Error("prop listener already exists");
7317
7317
  if (m.size) {
7318
- const j = A[3](I(S));
7319
- v.set(S, [A, j]);
7318
+ const w = A[3](I(C));
7319
+ v.set(C, [A, w]);
7320
7320
  } else
7321
- v.set(S, [A]);
7322
- }, y = (S) => {
7323
- var j;
7324
- const A = v.get(S);
7325
- A && (v.delete(S), (j = A[1]) == null || j.call(A));
7326
- }, N = (S) => (m.add(S), m.size === 1 && v.forEach(([j, V], B) => {
7321
+ v.set(C, [A]);
7322
+ }, y = (C) => {
7323
+ var w;
7324
+ const A = v.get(C);
7325
+ A && (v.delete(C), (w = A[1]) == null || w.call(A));
7326
+ }, N = (C) => (m.add(C), m.size === 1 && v.forEach(([w, V], F) => {
7327
7327
  if (xn && V)
7328
7328
  throw new Error("remove already exists");
7329
- const M = j[3](I(B));
7330
- v.set(B, [j, M]);
7329
+ const M = w[3](I(F));
7330
+ v.set(F, [w, M]);
7331
7331
  }), () => {
7332
- m.delete(S), m.size === 0 && v.forEach(([j, V], B) => {
7333
- V && (V(), v.set(B, [j]));
7332
+ m.delete(C), m.size === 0 && v.forEach(([w, V], F) => {
7333
+ V && (V(), v.set(F, [w]));
7334
7334
  });
7335
- }), F = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), w = t(F, {
7336
- deleteProperty(S, A) {
7337
- const j = Reflect.get(S, A);
7335
+ }), B = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), j = t(B, {
7336
+ deleteProperty(C, A) {
7337
+ const w = Reflect.get(C, A);
7338
7338
  y(A);
7339
- const V = Reflect.deleteProperty(S, A);
7340
- return V && p(["delete", [A], j]), V;
7339
+ const V = Reflect.deleteProperty(C, A);
7340
+ return V && p(["delete", [A], w]), V;
7341
7341
  },
7342
- set(S, A, j, V) {
7342
+ set(C, A, w, V) {
7343
7343
  var J;
7344
- const B = Reflect.has(S, A), M = Reflect.get(S, A, V);
7345
- if (B && (e(M, j) || c.has(j) && e(M, c.get(j))))
7344
+ const F = Reflect.has(C, A), M = Reflect.get(C, A, V);
7345
+ if (F && (e(M, w) || c.has(w) && e(M, c.get(w))))
7346
7346
  return !0;
7347
- y(A), Yn(j) && (j = sh(j) || j);
7348
- let Z = j;
7349
- if (!((J = Object.getOwnPropertyDescriptor(S, A)) != null && J.set))
7350
- if (j instanceof Promise)
7351
- j.then((Q) => {
7352
- j.status = "fulfilled", j.value = Q, p(["resolve", [A], Q]);
7347
+ y(A), Yn(w) && (w = sh(w) || w);
7348
+ let Z = w;
7349
+ if (!((J = Object.getOwnPropertyDescriptor(C, A)) != null && J.set))
7350
+ if (w instanceof Promise)
7351
+ w.then((Q) => {
7352
+ w.status = "fulfilled", w.value = Q, p(["resolve", [A], Q]);
7353
7353
  }).catch((Q) => {
7354
- j.status = "rejected", j.reason = Q, p(["reject", [A], Q]);
7354
+ w.status = "rejected", w.reason = Q, p(["reject", [A], Q]);
7355
7355
  });
7356
7356
  else {
7357
- !st.has(j) && s(j) && (Z = Es(j));
7357
+ !st.has(w) && s(w) && (Z = Es(w));
7358
7358
  const Q = !Vt.has(Z) && st.get(Z);
7359
7359
  Q && x(A, Q);
7360
7360
  }
7361
- return Reflect.set(S, A, Z, V), p(["set", [A], j, M]), !0;
7361
+ return Reflect.set(C, A, Z, V), p(["set", [A], w, M]), !0;
7362
7362
  }
7363
7363
  });
7364
- c.set(l, w);
7365
- const C = [F, b, o, N];
7366
- return st.set(w, C), Reflect.ownKeys(l).forEach((S) => {
7367
- const A = Object.getOwnPropertyDescriptor(l, S);
7368
- A.get || A.set ? Object.defineProperty(F, S, A) : w[S] = l[S];
7369
- }), w;
7364
+ c.set(l, j);
7365
+ const S = [B, b, o, N];
7366
+ return st.set(j, S), Reflect.ownKeys(l).forEach((C) => {
7367
+ const A = Object.getOwnPropertyDescriptor(l, C);
7368
+ A.get || A.set ? Object.defineProperty(B, C, A) : j[C] = l[C];
7369
+ }), j;
7370
7370
  }) => [
7371
7371
  // public functions
7372
7372
  a,
@@ -8264,33 +8264,32 @@ function Oh({ setLimit: e, defaultLimit: t = "10", totalItems: s }) {
8264
8264
  ] });
8265
8265
  }
8266
8266
  function Dh({ paginationConfig: e }) {
8267
- const [t, s] = be(
8267
+ if (!e)
8268
+ return null;
8269
+ const { setLimit: t, defaultLimit: s, metaData: r } = e, [n, o] = be(
8268
8270
  Sh({
8269
8271
  id: _.useId(),
8270
- count: (e == null ? void 0 : e.metaData.total_items) || 0,
8272
+ count: (r == null ? void 0 : r.total_items) || 0,
8271
8273
  onPageChange(u) {
8272
8274
  e == null || e.setPage(u.page - 1);
8273
8275
  }
8274
8276
  })
8275
- ), r = Eh(t, s, fe);
8276
- if (!e)
8277
- return null;
8278
- const { setLimit: n, defaultLimit: o, metaData: c } = e;
8279
- return /* @__PURE__ */ i.jsxs("div", { className: je.box, children: [
8277
+ ), c = Eh(n, o, fe);
8278
+ return console.log(c, "pAPI"), /* @__PURE__ */ i.jsxs("div", { className: je.box, children: [
8280
8279
  /* @__PURE__ */ i.jsx(
8281
8280
  Oh,
8282
8281
  {
8283
- setLimit: n,
8284
- defaultLimit: o,
8285
- totalItems: c.total_items
8282
+ setLimit: t,
8283
+ defaultLimit: s,
8284
+ totalItems: r == null ? void 0 : r.total_items
8286
8285
  }
8287
8286
  ),
8288
- r.totalPages > 1 && /* @__PURE__ */ i.jsx("nav", { ...r.rootProps, children: /* @__PURE__ */ i.jsxs("div", { className: je.pageBoxes, children: [
8289
- /* @__PURE__ */ i.jsx("div", { ...r.prevTriggerProps, className: je.pageBox, children: /* @__PURE__ */ i.jsx(H, { path: Nh, svgClassName: je.arrowIcon }) }),
8290
- r.pages.map((u, a) => u.type === "page" ? /* @__PURE__ */ i.jsx(
8287
+ c.totalPages > 1 && /* @__PURE__ */ i.jsx("nav", { ...c.rootProps, children: /* @__PURE__ */ i.jsxs("div", { className: je.pageBoxes, children: [
8288
+ /* @__PURE__ */ i.jsx("div", { ...c.prevTriggerProps, className: je.pageBox, children: /* @__PURE__ */ i.jsx(H, { path: Nh, svgClassName: je.arrowIcon }) }),
8289
+ c.pages.map((u, a) => u.type === "page" ? /* @__PURE__ */ i.jsx(
8291
8290
  "div",
8292
8291
  {
8293
- ...r.getItemProps(u),
8292
+ ...c.getItemProps(u),
8294
8293
  className: je.pageBox,
8295
8294
  children: u.value
8296
8295
  },
@@ -8298,13 +8297,13 @@ function Dh({ paginationConfig: e }) {
8298
8297
  ) : /* @__PURE__ */ i.jsx(
8299
8298
  "div",
8300
8299
  {
8301
- ...r.getEllipsisProps({ index: a }),
8300
+ ...c.getEllipsisProps({ index: a }),
8302
8301
  className: je.pageBox,
8303
8302
  children: /* @__PURE__ */ i.jsx(H, { path: Tr, svgClassName: je.arrowIcon })
8304
8303
  },
8305
8304
  `ellipsis-${a}`
8306
8305
  )),
8307
- /* @__PURE__ */ i.jsx("div", { ...r.nextTriggerProps, className: je.pageBox, children: /* @__PURE__ */ i.jsx(H, { path: wh, svgClassName: je.arrowIcon }) })
8306
+ /* @__PURE__ */ i.jsx("div", { ...c.nextTriggerProps, className: je.pageBox, children: /* @__PURE__ */ i.jsx(H, { path: wh, svgClassName: je.arrowIcon }) })
8308
8307
  ] }) })
8309
8308
  ] });
8310
8309
  }
@@ -8328,21 +8327,22 @@ function _b({
8328
8327
  totalText: a,
8329
8328
  paginationConfig: l,
8330
8329
  emptyStateConfig: d,
8331
- headerText: g
8330
+ headerText: g,
8331
+ tableStyleConfig: m
8332
8332
  }) {
8333
- const [m, p] = _.useState([]), [f, b] = _.useState({}), [I, v] = _.useState({}), x = !t.isFetching && !t.isError && !e.length, { isCheckbox: y, isRadio: N, setSelectedRows: F } = o;
8333
+ const [p, f] = _.useState([]), [b, I] = _.useState({}), [v, x] = _.useState({}), y = !t.isFetching && !t.isError && !e.length, { isCheckbox: N, isRadio: B, setSelectedRows: T } = o;
8334
8334
  rn(() => {
8335
- if (!n || !m.length)
8335
+ if (!n || !p.length)
8336
8336
  return;
8337
- const { setSortOrd: C, setSortBy: S, sortMap: A } = n;
8338
- S(A[m[0].id]), C(m[0].desc ? "desc" : "asc");
8339
- }, [m]), rn(() => {
8340
- if (!o || !F)
8337
+ const { setSortOrd: C, setSortBy: A, sortMap: w } = n;
8338
+ A(w[p[0].id]), C(p[0].desc ? "desc" : "asc");
8339
+ }, [p]), rn(() => {
8340
+ if (!o || !T)
8341
8341
  return;
8342
- const C = w.getSelectedRowModel().rows.map((S) => S.original);
8343
- F([...C]);
8344
- }, [I]);
8345
- const T = [
8342
+ const C = S.getSelectedRowModel().rows.map((A) => A.original);
8343
+ T([...C]);
8344
+ }, [v]);
8345
+ const j = [
8346
8346
  {
8347
8347
  id: Ht,
8348
8348
  header: (C) => /* @__PURE__ */ i.jsx(
@@ -8388,21 +8388,21 @@ function _b({
8388
8388
  header: "Actions",
8389
8389
  maxSize: 150
8390
8390
  }
8391
- ], w = Fr({
8391
+ ], S = Fr({
8392
8392
  data: e,
8393
- columns: T,
8393
+ columns: j,
8394
8394
  state: {
8395
- sorting: m,
8396
- columnVisibility: f,
8397
- rowSelection: (o == null ? void 0 : o.rowSelection) || I
8395
+ sorting: p,
8396
+ columnVisibility: b,
8397
+ rowSelection: (o == null ? void 0 : o.rowSelection) || v
8398
8398
  },
8399
8399
  manualSorting: !0,
8400
- onSortingChange: p,
8401
- onColumnVisibilityChange: b,
8400
+ onSortingChange: f,
8401
+ onColumnVisibilityChange: I,
8402
8402
  enableRowSelection: !0,
8403
8403
  // enableRowSelection: row => row.original.age > 18, // or enable row selection conditionally per row
8404
- onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) || v,
8405
- enableMultiRowSelection: !N,
8404
+ onRowSelectionChange: (o == null ? void 0 : o.setRowSelection) || x,
8405
+ enableMultiRowSelection: !B,
8406
8406
  manualPagination: !0,
8407
8407
  manualFiltering: !0,
8408
8408
  getCoreRowModel: Rr(),
@@ -8414,49 +8414,61 @@ function _b({
8414
8414
  getRowId: o != null && o.rowIdKey ? (C) => C[o == null ? void 0 : o.rowIdKey] : void 0
8415
8415
  });
8416
8416
  return _.useLayoutEffect(() => {
8417
- if (y && N)
8417
+ if (N && B)
8418
8418
  throw new Error(
8419
8419
  "Hybrid UI<Table>: Can not use both checkbox and radio columns, please use only one"
8420
8420
  );
8421
8421
  }, []), _.useLayoutEffect(() => {
8422
8422
  var C;
8423
- y || (C = w.getColumn(Ht)) == null || C.toggleVisibility(!1);
8423
+ N || (C = S.getColumn(Ht)) == null || C.toggleVisibility(!1);
8424
8424
  }, []), _.useLayoutEffect(() => {
8425
8425
  var C;
8426
- N || (C = w.getColumn(In)) == null || C.toggleVisibility(!1);
8426
+ B || (C = S.getColumn(In)) == null || C.toggleVisibility(!1);
8427
8427
  }, []), _.useLayoutEffect(() => {
8428
8428
  var C;
8429
- c.isDropdownActions || (C = w.getColumn(vn)) == null || C.toggleVisibility(!1);
8429
+ c.isDropdownActions || (C = S.getColumn(vn)) == null || C.toggleVisibility(!1);
8430
8430
  }, []), _.useEffect(() => {
8431
- o != null && o.clearOnSearch && v({});
8432
- }, [u == null ? void 0 : u.search]), /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "15px" }, children: [
8433
- /* @__PURE__ */ i.jsxs("div", { className: _e.box, children: [
8434
- !t.isError && /* @__PURE__ */ i.jsx(
8435
- Em,
8436
- {
8437
- rowSelectionConfig: o,
8438
- searchConfig: u,
8439
- totalText: a,
8440
- rowSelection: I,
8441
- setRowSelection: v,
8442
- filterConfig: r
8443
- }
8444
- ),
8445
- /* @__PURE__ */ i.jsx(
8446
- Wh,
8447
- {
8448
- table: w,
8449
- isCheckbox: y,
8450
- isRadio: N,
8451
- loaderConfig: t,
8452
- isEmpty: x,
8453
- emptyStateConfig: d,
8454
- search: u == null ? void 0 : u.search
8455
- }
8456
- )
8457
- ] }),
8458
- typeof l == "object" && !!l.metaData && /* @__PURE__ */ i.jsx(Dh, { paginationConfig: l })
8459
- ] });
8431
+ o != null && o.clearOnSearch && x({});
8432
+ }, [u == null ? void 0 : u.search]), /* @__PURE__ */ i.jsxs(
8433
+ "div",
8434
+ {
8435
+ style: {
8436
+ display: "flex",
8437
+ flexDirection: "column",
8438
+ gap: "15px",
8439
+ overflowY: "scroll",
8440
+ maxHeight: m == null ? void 0 : m.maxHeight
8441
+ },
8442
+ children: [
8443
+ /* @__PURE__ */ i.jsxs("div", { className: _e.box, children: [
8444
+ !t.isError && /* @__PURE__ */ i.jsx(
8445
+ Em,
8446
+ {
8447
+ rowSelectionConfig: o,
8448
+ searchConfig: u,
8449
+ totalText: a,
8450
+ rowSelection: v,
8451
+ setRowSelection: x,
8452
+ filterConfig: r
8453
+ }
8454
+ ),
8455
+ /* @__PURE__ */ i.jsx(
8456
+ Wh,
8457
+ {
8458
+ table: S,
8459
+ isCheckbox: N,
8460
+ isRadio: B,
8461
+ loaderConfig: t,
8462
+ isEmpty: y,
8463
+ emptyStateConfig: d,
8464
+ search: u == null ? void 0 : u.search
8465
+ }
8466
+ )
8467
+ ] }),
8468
+ typeof l == "object" && !!l.metaData && /* @__PURE__ */ i.jsx(Dh, { paginationConfig: l })
8469
+ ]
8470
+ }
8471
+ );
8460
8472
  }
8461
8473
  function Wh({
8462
8474
  table: e,