jcicl 1.2.7 → 2.0.1

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.
@@ -1,11 +1,11 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { n as a } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as n } from "../.chunks/emotion-react.browser.esm.js";
4
- import t from "../theme.js";
4
+ import s from "../theme.js";
5
5
  import { useThemeColors as d } from "../ThemeContext.js";
6
6
  import { T as l } from "../.chunks/TextField.js";
7
7
  const m = a("div", { shouldForwardProp: (e) => !["customTheme"].includes(e) })(({ customTheme: e }) => {
8
- var o;
8
+ var r;
9
9
  return {
10
10
  ...n`
11
11
  display: flex;
@@ -23,11 +23,11 @@ const m = a("div", { shouldForwardProp: (e) => !["customTheme"].includes(e) })((
23
23
  textarea {
24
24
  &:hover,
25
25
  :focus {
26
- box-shadow: ${(o = t.boxShadows.green) == null ? void 0 : o.split("#")[0]} ${e.themeColor} inset;
26
+ box-shadow: ${(r = s.boxShadows.green) == null ? void 0 : r.split("#")[0]} ${e.themeColor} inset;
27
27
  }
28
28
  width: 100%;
29
29
  padding: 13px;
30
- border: 1px solid ${t.colors.gray};
30
+ border: 1px solid ${s.colors.gray};
31
31
  border-radius: 9px;
32
32
  resize: vertical;
33
33
  min-height: 130px;
@@ -48,11 +48,14 @@ const m = a("div", { shouldForwardProp: (e) => !["customTheme"].includes(e) })((
48
48
  }
49
49
  `
50
50
  };
51
- }), b = ({ label: e, ...o }) => {
52
- const s = d();
53
- return /* @__PURE__ */ i(m, { className: "jcLabeledTextArea", customTheme: s, children: [
54
- e && /* @__PURE__ */ r("span", { children: e }),
55
- /* @__PURE__ */ r(l, { ...o, multiline: !0, fullWidth: !0, rows: 1 })
51
+ }), b = ({ label: e, ...r }) => {
52
+ const i = d();
53
+ return /* @__PURE__ */ o(m, { className: "jcLabeledTextArea", customTheme: i, children: [
54
+ e && /* @__PURE__ */ o("span", { children: [
55
+ e,
56
+ r.required && /* @__PURE__ */ t("span", { className: "mx-0.5 text-jc-gray", children: "*" })
57
+ ] }),
58
+ /* @__PURE__ */ t(l, { ...r, multiline: !0, fullWidth: !0, rows: 1 })
56
59
  ] });
57
60
  };
58
61
  export {
package/Table/Table.js CHANGED
@@ -8,8 +8,7 @@ import { Button as jf } from "../Button/Button.js";
8
8
  import { Flex as $f } from "../Flex/Flex.js";
9
9
  import { useThemeColors as eh } from "../ThemeContext.js";
10
10
  import { cn as nh } from "../cn.js";
11
- import { c as Sf } from "../.chunks/createLucideIcon.js";
12
- import { C as xf } from "../.chunks/chevron-down.js";
11
+ import { c as hf } from "../.chunks/createLucideIcon.js";
13
12
  import { E as th, a as rh } from "../.chunks/eye.js";
14
13
  /**
15
14
  * @license lucide-react v0.525.0 - ISC
@@ -17,24 +16,31 @@ import { E as th, a as rh } from "../.chunks/eye.js";
17
16
  * This source code is licensed under the ISC license.
18
17
  * See the LICENSE file in the root directory of this source tree.
19
18
  */
20
- const lh = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], zf = Sf("chevron-up", lh);
19
+ const lh = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ef = hf("chevron-down", lh);
21
20
  /**
22
21
  * @license lucide-react v0.525.0 - ISC
23
22
  *
24
23
  * This source code is licensed under the ISC license.
25
24
  * See the LICENSE file in the root directory of this source tree.
26
25
  */
27
- const ih = [
26
+ const ih = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], zf = hf("chevron-up", ih);
27
+ /**
28
+ * @license lucide-react v0.525.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */
33
+ const ah = [
28
34
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
29
35
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
30
- ], Vf = Sf("search", ih);
36
+ ], Vf = hf("search", ah);
31
37
  /**
32
38
  * @license lucide-react v0.525.0 - ISC
33
39
  *
34
40
  * This source code is licensed under the ISC license.
35
41
  * See the LICENSE file in the root directory of this source tree.
36
42
  */
37
- const ah = [
43
+ const oh = [
38
44
  [
39
45
  "path",
40
46
  {
@@ -43,7 +49,7 @@ const ah = [
43
49
  }
44
50
  ],
45
51
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
46
- ], oh = Sf("settings", ah);
52
+ ], ch = hf("settings", oh);
47
53
  var ef = {};
48
54
  /**
49
55
  * @license React
@@ -55,7 +61,7 @@ var ef = {};
55
61
  * LICENSE file in the root directory of this source tree.
56
62
  */
57
63
  var Bf;
58
- function ch() {
64
+ function uh() {
59
65
  if (Bf) return ef;
60
66
  Bf = 1;
61
67
  var re = Ws, Ge = ff;
@@ -4155,7 +4161,7 @@ var Hs = {};
4155
4161
  * LICENSE file in the root directory of this source tree.
4156
4162
  */
4157
4163
  var mf;
4158
- function uh() {
4164
+ function sh() {
4159
4165
  if (mf) return Hs;
4160
4166
  mf = 1;
4161
4167
  var re = Ws, Ge = ff;
@@ -8804,7 +8810,7 @@ var nf = {};
8804
8810
  * LICENSE file in the root directory of this source tree.
8805
8811
  */
8806
8812
  var Hf;
8807
- function sh() {
8813
+ function fh() {
8808
8814
  return Hf || (Hf = 1, process.env.NODE_ENV !== "production" && function() {
8809
8815
  function re(n, r, u, d) {
8810
8816
  return "" + r + (u === "s" ? "\\73 " : "\\53 ") + d;
@@ -15043,7 +15049,7 @@ var Ns = {};
15043
15049
  * LICENSE file in the root directory of this source tree.
15044
15050
  */
15045
15051
  var Nf;
15046
- function fh() {
15052
+ function hh() {
15047
15053
  return Nf || (Nf = 1, process.env.NODE_ENV !== "production" && function() {
15048
15054
  function re(e, t, c, h) {
15049
15055
  return "" + t + (c === "s" ? "\\73 " : "\\53 ") + h;
@@ -16938,14 +16944,14 @@ function fh() {
16938
16944
  var Gs = ws.rules, Xs = null, Pf = null, of;
16939
16945
  for (of in c)
16940
16946
  if (wn.call(c, of)) {
16941
- var hf = c[of];
16942
- if (hf != null)
16947
+ var df = c[of];
16948
+ if (df != null)
16943
16949
  switch (of) {
16944
16950
  case "children":
16945
- Xs = hf;
16951
+ Xs = df;
16946
16952
  break;
16947
16953
  case "dangerouslySetInnerHTML":
16948
- Pf = hf;
16954
+ Pf = df;
16949
16955
  }
16950
16956
  }
16951
16957
  var Qs = Array.isArray(Xs) ? 2 > Xs.length ? Xs[0] : null : Xs;
@@ -17015,13 +17021,13 @@ function fh() {
17015
17021
  if (!(c.loading === "lazy" || !Yi && !gi || typeof Yi != "string" && Yi != null || typeof gi != "string" && gi != null || c.fetchPriority === "low" || qf) && (typeof Yi != "string" || Yi[4] !== ":" || Yi[0] !== "d" && Yi[0] !== "D" || Yi[1] !== "a" && Yi[1] !== "A" || Yi[2] !== "t" && Yi[2] !== "T" || Yi[3] !== "a" && Yi[3] !== "A") && (typeof gi != "string" || gi[4] !== ":" || gi[0] !== "d" && gi[0] !== "D" || gi[1] !== "a" && gi[1] !== "A" || gi[2] !== "t" && gi[2] !== "T" || gi[3] !== "a" && gi[3] !== "A")) {
17016
17022
  S !== null && A.tagScope & 64 && (S.suspenseyImages = !0);
17017
17023
  var Ff = typeof c.sizes == "string" ? c.sizes : void 0, Zs = gi ? gi + `
17018
- ` + (Ff || "") : Yi, df = b.preloads.images, Bs = df.get(Zs);
17024
+ ` + (Ff || "") : Yi, gf = b.preloads.images, Bs = gf.get(Zs);
17019
17025
  if (Bs)
17020
- (c.fetchPriority === "high" || 10 > b.highImagePreloads.size) && (df.delete(Zs), b.highImagePreloads.add(Bs));
17026
+ (c.fetchPriority === "high" || 10 > b.highImagePreloads.size) && (gf.delete(Zs), b.highImagePreloads.add(Bs));
17021
17027
  else if (!h.imageResources.hasOwnProperty(Zs)) {
17022
17028
  h.imageResources[Zs] = Dt;
17023
- var gf = c.crossOrigin, Af = typeof gf == "string" ? gf === "use-credentials" ? gf : "" : void 0, ms = b.headers, vf;
17024
- ms && 0 < ms.remainingCapacity && typeof c.srcSet != "string" && (c.fetchPriority === "high" || 500 > ms.highImagePreloads.length) && (vf = Qi(Yi, "image", {
17029
+ var vf = c.crossOrigin, Af = typeof vf == "string" ? vf === "use-credentials" ? vf : "" : void 0, ms = b.headers, bf;
17030
+ ms && 0 < ms.remainingCapacity && typeof c.srcSet != "string" && (c.fetchPriority === "high" || 500 > ms.highImagePreloads.length) && (bf = Qi(Yi, "image", {
17025
17031
  imageSrcSet: c.srcSet,
17026
17032
  imageSizes: c.sizes,
17027
17033
  crossOrigin: Af,
@@ -17030,7 +17036,7 @@ function fh() {
17030
17036
  type: c.type,
17031
17037
  fetchPriority: c.fetchPriority,
17032
17038
  referrerPolicy: c.refererPolicy
17033
- }), 0 <= (ms.remainingCapacity -= vf.length + 2)) ? (b.resets.image[Zs] = Dt, ms.highImagePreloads && (ms.highImagePreloads += ", "), ms.highImagePreloads += vf) : (Bs = [], de(Bs, {
17039
+ }), 0 <= (ms.remainingCapacity -= bf.length + 2)) ? (b.resets.image[Zs] = Dt, ms.highImagePreloads && (ms.highImagePreloads += ", "), ms.highImagePreloads += bf) : (Bs = [], de(Bs, {
17034
17040
  rel: "preload",
17035
17041
  as: "image",
17036
17042
  href: gi ? void 0 : Yi,
@@ -17041,7 +17047,7 @@ function fh() {
17041
17047
  type: c.type,
17042
17048
  fetchPriority: c.fetchPriority,
17043
17049
  referrerPolicy: c.referrerPolicy
17044
- }), c.fetchPriority === "high" || 10 > b.highImagePreloads.size ? b.highImagePreloads.add(Bs) : (b.bulkPreloads.add(Bs), df.set(Zs, Bs)));
17050
+ }), c.fetchPriority === "high" || 10 > b.highImagePreloads.size ? b.highImagePreloads.add(Bs) : (b.bulkPreloads.add(Bs), gf.set(Zs, Bs)));
17045
17051
  }
17046
17052
  }
17047
17053
  return Le(e, c, "img");
@@ -17068,12 +17074,12 @@ function fh() {
17068
17074
  break;
17069
17075
  case "head":
17070
17076
  if (A.insertionMode < or) {
17071
- var bf = x || b.preamble;
17072
- if (bf.headChunks)
17077
+ var yf = x || b.preamble;
17078
+ if (yf.headChunks)
17073
17079
  throw Error("The `<head>` tag may only be rendered once.");
17074
- x !== null && e.push(wc), bf.headChunks = [];
17080
+ x !== null && e.push(wc), yf.headChunks = [];
17075
17081
  var If = ze(
17076
- bf.headChunks,
17082
+ yf.headChunks,
17077
17083
  c,
17078
17084
  "head"
17079
17085
  );
@@ -17086,12 +17092,12 @@ function fh() {
17086
17092
  return If;
17087
17093
  case "body":
17088
17094
  if (A.insertionMode < or) {
17089
- var yf = x || b.preamble;
17090
- if (yf.bodyChunks)
17095
+ var wf = x || b.preamble;
17096
+ if (wf.bodyChunks)
17091
17097
  throw Error("The `<body>` tag may only be rendered once.");
17092
- x !== null && e.push(_u), yf.bodyChunks = [];
17098
+ x !== null && e.push(_u), wf.bodyChunks = [];
17093
17099
  var Mf = ze(
17094
- yf.bodyChunks,
17100
+ wf.bodyChunks,
17095
17101
  c,
17096
17102
  "body"
17097
17103
  );
@@ -17104,12 +17110,12 @@ function fh() {
17104
17110
  return Mf;
17105
17111
  case "html":
17106
17112
  if (A.insertionMode === ko) {
17107
- var wf = x || b.preamble;
17108
- if (wf.htmlChunks)
17113
+ var Tf = x || b.preamble;
17114
+ if (Tf.htmlChunks)
17109
17115
  throw Error("The `<html>` tag may only be rendered once.");
17110
- x !== null && e.push(Lu), wf.htmlChunks = [wt];
17116
+ x !== null && e.push(Lu), Tf.htmlChunks = [wt];
17111
17117
  var Of = ze(
17112
- wf.htmlChunks,
17118
+ Tf.htmlChunks,
17113
17119
  c,
17114
17120
  "html"
17115
17121
  );
@@ -17123,7 +17129,7 @@ function fh() {
17123
17129
  default:
17124
17130
  if (t.indexOf("-") !== -1) {
17125
17131
  e.push(Ve(t));
17126
- var Tf = null, Df = null, Vs;
17132
+ var xf = null, Df = null, Vs;
17127
17133
  for (Vs in c)
17128
17134
  if (wn.call(c, Vs)) {
17129
17135
  var yu = c[Vs];
@@ -17131,7 +17137,7 @@ function fh() {
17131
17137
  var _f = Vs;
17132
17138
  switch (Vs) {
17133
17139
  case "children":
17134
- Tf = yu;
17140
+ xf = yu;
17135
17141
  break;
17136
17142
  case "dangerouslySetInnerHTML":
17137
17143
  Df = yu;
@@ -17167,8 +17173,8 @@ function fh() {
17167
17173
  return e.push(Kn), dt(
17168
17174
  e,
17169
17175
  Df,
17170
- Tf
17171
- ), Tf;
17176
+ xf
17177
+ ), xf;
17172
17178
  }
17173
17179
  }
17174
17180
  return In(e, c, t);
@@ -21790,10 +21796,10 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
21790
21796
  }()), Ns;
21791
21797
  }
21792
21798
  var rf, sf;
21793
- process.env.NODE_ENV === "production" ? (rf = ch(), sf = uh()) : (rf = sh(), sf = fh());
21799
+ process.env.NODE_ENV === "production" ? (rf = uh(), sf = sh()) : (rf = fh(), sf = hh());
21794
21800
  rf.version;
21795
21801
  rf.renderToString;
21796
- var hh = rf.renderToStaticMarkup;
21802
+ var dh = rf.renderToStaticMarkup;
21797
21803
  sf.renderToReadableStream;
21798
21804
  sf.resume;
21799
21805
  function Wf(re) {
@@ -21810,7 +21816,7 @@ function Wf(re) {
21810
21816
  function Jf(re) {
21811
21817
  return re != null && typeof re == "object" && "sortPriority" in re && "value" in re && !Ws.isValidElement(re);
21812
21818
  }
21813
- function Ef(re) {
21819
+ function Rf(re) {
21814
21820
  const Ge = Jf(re) ? re.value : re;
21815
21821
  return Ge == null ? null : typeof Ge == "string" || typeof Ge == "number" || typeof Ge == "boolean" || Ws.isValidElement(Ge) ? Ge : String(Ge);
21816
21822
  }
@@ -21828,7 +21834,7 @@ function uf(re) {
21828
21834
  }
21829
21835
  return typeof re == "string" || typeof re == "number" ? re : typeof re == "boolean" ? Number(re) : null;
21830
21836
  }
21831
- const dh = zr("div")(() => ({
21837
+ const gh = zr("div")(() => ({
21832
21838
  ...Rr`
21833
21839
  background-color: ${tt.colors.white};
21834
21840
  border-radius: 8px;
@@ -21838,7 +21844,7 @@ const dh = zr("div")(() => ({
21838
21844
  width: 100%;
21839
21845
  overflow: auto;
21840
21846
  `
21841
- })), gh = zr("div")(() => ({
21847
+ })), vh = zr("div")(() => ({
21842
21848
  ...Rr`
21843
21849
  display: flex;
21844
21850
  flex-direction: column;
@@ -21848,21 +21854,21 @@ const dh = zr("div")(() => ({
21848
21854
  flex-wrap: wrap;
21849
21855
  gap: 9px;
21850
21856
  `
21851
- })), vh = zr("div")(() => ({
21857
+ })), bh = zr("div")(() => ({
21852
21858
  ...Rr`
21853
21859
  display: flex;
21854
21860
  justify-content: space-between;
21855
21861
  width: 100%;
21856
21862
  align-items: center;
21857
21863
  `
21858
- })), bh = zr("h2")(() => ({
21864
+ })), yh = zr("h2")(() => ({
21859
21865
  ...Rr`
21860
21866
  font-size: 24px;
21861
21867
  font-weight: bold;
21862
21868
  color: ${tt.colors.black};
21863
21869
  margin: 0;
21864
21870
  `
21865
- })), yh = zr("div")(() => ({
21871
+ })), wh = zr("div")(() => ({
21866
21872
  ...Rr`
21867
21873
  display: flex;
21868
21874
  justify-content: flex-end;
@@ -21871,7 +21877,7 @@ const dh = zr("div")(() => ({
21871
21877
  align-items: center;
21872
21878
  flex-wrap: wrap;
21873
21879
  `
21874
- })), wh = zr("div")(() => ({
21880
+ })), Th = zr("div")(() => ({
21875
21881
  ...Rr`
21876
21882
  position: relative;
21877
21883
  display: flex;
@@ -21882,7 +21888,7 @@ const dh = zr("div")(() => ({
21882
21888
  flex-basis: 100%;
21883
21889
  }
21884
21890
  `
21885
- })), Th = zr(Vf, {
21891
+ })), xh = zr(Vf, {
21886
21892
  shouldForwardProp: (re) => !["customTheme"].includes(re)
21887
21893
  })(({ customTheme: re }) => ({
21888
21894
  ...Rr`
@@ -21901,9 +21907,9 @@ const dh = zr("div")(() => ({
21901
21907
  }
21902
21908
  `
21903
21909
  })), Uf = (re) => {
21904
- const Ge = hh(re);
21910
+ const Ge = dh(re);
21905
21911
  return `data:image/svg+xml,${encodeURIComponent(Ge)}`;
21906
- }, xh = zr("input", {
21912
+ }, Eh = zr("input", {
21907
21913
  shouldForwardProp: (re) => !["customTheme", "icon"].includes(re)
21908
21914
  })(({ customTheme: re, icon: Ge }) => ({
21909
21915
  ...Rr`
@@ -21954,7 +21960,7 @@ const dh = zr("div")(() => ({
21954
21960
  // end date picker
21955
21961
  }
21956
21962
  `
21957
- })), Rf = zr("button", {
21963
+ })), Cf = zr("button", {
21958
21964
  shouldForwardProp: (re) => !["customTheme"].includes(re)
21959
21965
  })(({ customTheme: re }) => ({
21960
21966
  ...Rr`
@@ -21995,7 +22001,7 @@ const dh = zr("div")(() => ({
21995
22001
  max-height: 300px;
21996
22002
  overflow-y: auto;
21997
22003
  `
21998
- })), Cf = zr("div", {
22004
+ })), kf = zr("div", {
21999
22005
  shouldForwardProp: (re) => !["customTheme"].includes(re)
22000
22006
  })(({ customTheme: re }) => ({
22001
22007
  ...Rr`
@@ -22014,7 +22020,7 @@ const dh = zr("div")(() => ({
22014
22020
  color: ${re.themeDark};
22015
22021
  }
22016
22022
  `
22017
- })), kf = zr("input", {
22023
+ })), Sf = zr("input", {
22018
22024
  shouldForwardProp: (re) => !["customTheme"].includes(re)
22019
22025
  })(({ customTheme: re }) => ({
22020
22026
  ...Rr`
@@ -22022,7 +22028,7 @@ const dh = zr("div")(() => ({
22022
22028
  height: 16px;
22023
22029
  accent-color: ${re.themeColor};
22024
22030
  `
22025
- })), Eh = zr("table")(() => ({
22031
+ })), Rh = zr("table")(() => ({
22026
22032
  ...Rr`
22027
22033
  width: 100%;
22028
22034
  border-collapse: collapse;
@@ -22043,7 +22049,7 @@ const dh = zr("div")(() => ({
22043
22049
  border-bottom-right-radius: 8px;
22044
22050
  }
22045
22051
  `
22046
- })), Rh = zr("div", {
22052
+ })), Ch = zr("div", {
22047
22053
  shouldForwardProp: (re) => !["stickyCount", "hasOnClick"].includes(re)
22048
22054
  })(({ stickyCount: re, hasOnClick: Ge }) => {
22049
22055
  const Y = Array.from({ length: re }, (sl, tr) => {
@@ -22075,7 +22081,7 @@ const dh = zr("div")(() => ({
22075
22081
  ${Y}
22076
22082
  `
22077
22083
  };
22078
- }), Ch = zr("th", { shouldForwardProp: (re) => !["customTheme"].includes(re) })(
22084
+ }), kh = zr("th", { shouldForwardProp: (re) => !["customTheme"].includes(re) })(
22079
22085
  ({ customTheme: re }) => ({
22080
22086
  ...Rr`
22081
22087
  background-color: ${tt.colors.whiteBlue};
@@ -22106,7 +22112,7 @@ const dh = zr("div")(() => ({
22106
22112
  color: ${tt.colors.slate};
22107
22113
  transition: all 0.2s ease;
22108
22114
  `
22109
- })), kh = zr("span")(() => ({
22115
+ })), Sh = zr("span")(() => ({
22110
22116
  ...Rr`
22111
22117
  margin-left: 8px;
22112
22118
  opacity: 0.6;
@@ -22123,7 +22129,7 @@ const dh = zr("div")(() => ({
22123
22129
  }
22124
22130
  `}
22125
22131
  `
22126
- })), Sh = zr("div")(() => ({
22132
+ })), Ph = zr("div")(() => ({
22127
22133
  ...Rr`
22128
22134
  display: flex;
22129
22135
  justify-content: center;
@@ -22156,7 +22162,7 @@ const dh = zr("div")(() => ({
22156
22162
  cursor: not-allowed;
22157
22163
  }
22158
22164
  `
22159
- })), Ph = zr("div")(() => ({
22165
+ })), ph = zr("div")(() => ({
22160
22166
  ...Rr`
22161
22167
  font-size: 14px;
22162
22168
  color: ${tt.colors.gray3};
@@ -22170,7 +22176,7 @@ const dh = zr("div")(() => ({
22170
22176
  font-size: 14px;
22171
22177
  `
22172
22178
  }));
22173
- function ph(re) {
22179
+ function Fh(re) {
22174
22180
  try {
22175
22181
  const Ge = localStorage.getItem(`table:${re}`);
22176
22182
  return Ge ? JSON.parse(Ge) : null;
@@ -22178,13 +22184,13 @@ function ph(re) {
22178
22184
  return null;
22179
22185
  }
22180
22186
  }
22181
- function Fh(re, Ge) {
22187
+ function Ah(re, Ge) {
22182
22188
  try {
22183
22189
  localStorage.setItem(`table:${re}`, JSON.stringify(Ge));
22184
22190
  } catch {
22185
22191
  }
22186
22192
  }
22187
- function Ah(re) {
22193
+ function Ih(re) {
22188
22194
  try {
22189
22195
  localStorage.removeItem(`table:${re}`);
22190
22196
  } catch {
@@ -22213,7 +22219,7 @@ function Yh({
22213
22219
  cellNoWrap: co = !0
22214
22220
  }) {
22215
22221
  const rt = $s(
22216
- () => V ? ph(V) : null,
22222
+ () => V ? Fh(V) : null,
22217
22223
  // eslint-disable-next-line react-hooks/exhaustive-deps
22218
22224
  []
22219
22225
  // intentionally empty — read once on mount
@@ -22263,7 +22269,7 @@ function Yh({
22263
22269
  }, []), tf(() => {
22264
22270
  if (!V) return;
22265
22271
  const ae = setTimeout(() => {
22266
- Fh(V, {
22272
+ Ah(V, {
22267
22273
  searchTerm: kt,
22268
22274
  searchDate: Xi,
22269
22275
  sortConfig: rr,
@@ -22274,13 +22280,13 @@ function Yh({
22274
22280
  return () => clearTimeout(ae);
22275
22281
  }, [V, kt, Xi, rr, Xn, Z]);
22276
22282
  const Ze = V ? () => {
22277
- ht(""), wi(Rn), ge(new Set(fn.filter((ae) => !Gi.includes(ae)))), se(new Set(fn)), ye(1), Ah(V);
22283
+ ht(""), wi(Rn), ge(new Set(fn.filter((ae) => !Gi.includes(ae)))), se(new Set(fn)), ye(1), Ih(V);
22278
22284
  } : void 0, Yt = V ? kt !== "" || rr.key !== Rn.key || rr.direction !== Rn.direction || Xn.size !== fn.filter((ae) => !Gi.includes(ae)).length || Z.size !== fn.length : !1, Zn = $s(() => {
22279
22285
  const ae = Xn.size > 0 ? Xn : new Set(fn), de = Cn.toLowerCase().replace(/[-()\s]/g, ""), Be = Xi.split("-")[0].at(0) === "0" ? "" : Xi;
22280
22286
  return !de && !Be ? re : re.filter((Le) => {
22281
22287
  let gn = !1, Pt = !1;
22282
22288
  return Array.from(ae).forEach((ze) => {
22283
- const In = Le[ze], Ve = Ef(In), Zi = uf(Ve);
22289
+ const In = Le[ze], Ve = Rf(In), Zi = uf(Ve);
22284
22290
  if (Zi === null) return;
22285
22291
  const Ln = String(Zi).toLowerCase().replace(/[-()\s]/g, "");
22286
22292
  de && Ln.includes(de) && (gn = !0), Be && String(Zi).includes(Be) && (Pt = !0);
@@ -22300,7 +22306,7 @@ function Yh({
22300
22306
  // header row
22301
22307
  ...Br.map(
22302
22308
  (In) => ae.map((Ve) => {
22303
- const Zi = In[Ve], Ln = Ef(Zi), Zo = uf(Ln);
22309
+ const Zi = In[Ve], Ln = Rf(Zi), Zo = uf(Ln);
22304
22310
  return Be(Zo ?? "");
22305
22311
  }).join(",")
22306
22312
  )
@@ -22328,20 +22334,20 @@ function Yh({
22328
22334
  return Be.has(ae) ? Be.delete(ae) : Be.add(ae), Be;
22329
22335
  });
22330
22336
  }, Ti = Wf(() => N(!1)), Xl = Wf(() => uo(!1));
22331
- return /* @__PURE__ */ Yl(dh, { className: nh("jcTableContainer", Xo && "shadow-none!"), children: [
22332
- /* @__PURE__ */ Yl(gh, { className: "jcTableHeader", children: [
22333
- !wu && /* @__PURE__ */ Yl(vh, { className: "jcTableTitleAndActions", children: [
22334
- /* @__PURE__ */ sn(bh, { children: sl }),
22337
+ return /* @__PURE__ */ Yl(gh, { className: nh("jcTableContainer", Xo && "shadow-none!"), children: [
22338
+ /* @__PURE__ */ Yl(vh, { className: "jcTableHeader", children: [
22339
+ !wu && /* @__PURE__ */ Yl(bh, { className: "jcTableTitleAndActions", children: [
22340
+ /* @__PURE__ */ sn(yh, { children: sl }),
22335
22341
  /* @__PURE__ */ Yl($f, { className: "jcTableExtraComponentsBox", gap: "9px", children: [
22336
22342
  jr && jr,
22337
22343
  /* @__PURE__ */ sn(jf, { onClick: Bt, children: "Export to CSV" })
22338
22344
  ] })
22339
22345
  ] }),
22340
- /* @__PURE__ */ Yl(yh, { className: "jcTableControls", children: [
22341
- /* @__PURE__ */ Yl(wh, { className: "jcTableSearchContainer", children: [
22342
- /* @__PURE__ */ sn(Th, { customTheme: be }),
22346
+ /* @__PURE__ */ Yl(wh, { className: "jcTableControls", children: [
22347
+ /* @__PURE__ */ Yl(Th, { className: "jcTableSearchContainer", children: [
22348
+ /* @__PURE__ */ sn(xh, { customTheme: be }),
22343
22349
  /* @__PURE__ */ sn(
22344
- xh,
22350
+ Eh,
22345
22351
  {
22346
22352
  customTheme: be,
22347
22353
  type: "text",
@@ -22352,7 +22358,7 @@ function Yh({
22352
22358
  )
22353
22359
  ] }),
22354
22360
  Yt && Ze && /* @__PURE__ */ sn(
22355
- Rf,
22361
+ Cf,
22356
22362
  {
22357
22363
  customTheme: be,
22358
22364
  className: "jcTableResetFilters",
@@ -22363,7 +22369,7 @@ function Yh({
22363
22369
  ),
22364
22370
  /* @__PURE__ */ Yl("div", { style: { position: "relative" }, ref: Ti, children: [
22365
22371
  /* @__PURE__ */ Yl(
22366
- Rf,
22372
+ Cf,
22367
22373
  {
22368
22374
  customTheme: be,
22369
22375
  className: "jcTableSearchFields",
@@ -22371,14 +22377,14 @@ function Yh({
22371
22377
  children: [
22372
22378
  /* @__PURE__ */ sn(Vf, { size: 16 }),
22373
22379
  "Fields",
22374
- /* @__PURE__ */ sn(xf, { size: 16 })
22380
+ /* @__PURE__ */ sn(Ef, { size: 16 })
22375
22381
  ]
22376
22382
  }
22377
22383
  ),
22378
22384
  le && /* @__PURE__ */ Yl(Yf, { className: "jcTableSearchFieldsDropdown", children: [
22379
- /* @__PURE__ */ Yl(Cf, { customTheme: be, onClick: en, children: [
22385
+ /* @__PURE__ */ Yl(kf, { customTheme: be, onClick: en, children: [
22380
22386
  /* @__PURE__ */ sn(
22381
- kf,
22387
+ Sf,
22382
22388
  {
22383
22389
  customTheme: be,
22384
22390
  type: "checkbox",
@@ -22391,13 +22397,13 @@ function Yh({
22391
22397
  ] }),
22392
22398
  /* @__PURE__ */ sn("div", { style: { height: "1px", backgroundColor: tt.colors.gray4, margin: "4px 0" } }),
22393
22399
  fn.map((ae) => /* @__PURE__ */ Yl(
22394
- Cf,
22400
+ kf,
22395
22401
  {
22396
22402
  customTheme: be,
22397
22403
  onClick: () => at(ae),
22398
22404
  children: [
22399
22405
  /* @__PURE__ */ sn(
22400
- kf,
22406
+ Sf,
22401
22407
  {
22402
22408
  customTheme: be,
22403
22409
  type: "checkbox",
@@ -22415,26 +22421,26 @@ function Yh({
22415
22421
  ] }),
22416
22422
  /* @__PURE__ */ Yl("div", { style: { position: "relative" }, ref: Xl, children: [
22417
22423
  /* @__PURE__ */ Yl(
22418
- Rf,
22424
+ Cf,
22419
22425
  {
22420
22426
  customTheme: be,
22421
22427
  className: "jcTableColumnSettings",
22422
22428
  onClick: () => uo(!Gl),
22423
22429
  children: [
22424
- /* @__PURE__ */ sn(oh, { size: 16 }),
22430
+ /* @__PURE__ */ sn(ch, { size: 16 }),
22425
22431
  "Columns",
22426
- /* @__PURE__ */ sn(xf, { size: 16 })
22432
+ /* @__PURE__ */ sn(Ef, { size: 16 })
22427
22433
  ]
22428
22434
  }
22429
22435
  ),
22430
22436
  Gl && /* @__PURE__ */ sn(Yf, { className: "jcTableColumnSettingsDropdown", children: fn.map((ae) => /* @__PURE__ */ Yl(
22431
- Cf,
22437
+ kf,
22432
22438
  {
22433
22439
  customTheme: be,
22434
22440
  onClick: () => dt(ae),
22435
22441
  children: [
22436
22442
  /* @__PURE__ */ sn(
22437
- kf,
22443
+ Sf,
22438
22444
  {
22439
22445
  customTheme: be,
22440
22446
  type: "checkbox",
@@ -22453,9 +22459,9 @@ function Yh({
22453
22459
  ] })
22454
22460
  ] }),
22455
22461
  (() => {
22456
- const ae = /* @__PURE__ */ Yl(Eh, { className: "jcTableContent", style: m ? { minWidth: Pe } : void 0, children: [
22462
+ const ae = /* @__PURE__ */ Yl(Rh, { className: "jcTableContent", style: m ? { minWidth: Pe } : void 0, children: [
22457
22463
  /* @__PURE__ */ sn("thead", { children: /* @__PURE__ */ sn(Xf, { customTheme: be, interactableRow: !1, children: mr.map((de) => /* @__PURE__ */ Yl(
22458
- Ch,
22464
+ kh,
22459
22465
  {
22460
22466
  customTheme: be,
22461
22467
  style: rr.key === de ? lt.thActive : {},
@@ -22463,7 +22469,7 @@ function Yh({
22463
22469
  title: kr.includes(de) ? "This column is not sortable" : void 0,
22464
22470
  children: [
22465
22471
  Ge[de] || de,
22466
- !kr.includes(de) && /* @__PURE__ */ sn(kh, { children: rr.key === de ? rr.direction === "asc" ? /* @__PURE__ */ sn(zf, { size: 16 }) : /* @__PURE__ */ sn(xf, { size: 16 }) : /* @__PURE__ */ sn(zf, { size: 16, style: { opacity: 0.313 } }) })
22472
+ !kr.includes(de) && /* @__PURE__ */ sn(Sh, { children: rr.key === de ? rr.direction === "asc" ? /* @__PURE__ */ sn(zf, { size: 16 }) : /* @__PURE__ */ sn(Ef, { size: 16 }) : /* @__PURE__ */ sn(zf, { size: 16, style: { opacity: 0.313 } }) })
22467
22473
  ]
22468
22474
  },
22469
22475
  de
@@ -22477,7 +22483,7 @@ function Yh({
22477
22483
  children: mr.map((Le) => {
22478
22484
  if (yi != null && yi[Le])
22479
22485
  return /* @__PURE__ */ sn(Gf, { className: co ? "text-nowrap" : "", children: yi[Le](de[Le], de) }, Le);
22480
- const gn = de[Le], Pt = Ef(gn);
22486
+ const gn = de[Le], Pt = Rf(gn);
22481
22487
  return /* @__PURE__ */ sn(Gf, { className: co ? "text-nowrap" : "", children: Pt }, Le);
22482
22488
  })
22483
22489
  },
@@ -22485,7 +22491,7 @@ function Yh({
22485
22491
  )) })
22486
22492
  ] });
22487
22493
  return m ? /* @__PURE__ */ sn(
22488
- Rh,
22494
+ Ch,
22489
22495
  {
22490
22496
  className: "jcTableScrollWrapper",
22491
22497
  stickyCount: bi,
@@ -22494,7 +22500,7 @@ function Yh({
22494
22500
  }
22495
22501
  ) : ae;
22496
22502
  })(),
22497
- /* @__PURE__ */ Yl(Sh, { children: [
22503
+ /* @__PURE__ */ Yl(Ph, { children: [
22498
22504
  /* @__PURE__ */ sn(
22499
22505
  Js,
22500
22506
  {
@@ -22574,7 +22580,7 @@ function Yh({
22574
22580
  }
22575
22581
  )
22576
22582
  ] }),
22577
- /* @__PURE__ */ Yl(Ph, { children: [
22583
+ /* @__PURE__ */ Yl(ph, { children: [
22578
22584
  "Showing ",
22579
22585
  Math.min((je - 1) * Y + 1, Br.length),
22580
22586
  " to",