@reportportal/ui-kit 0.0.1-alpha.255 → 0.0.1-alpha.256

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,4 +1,4 @@
1
- import { jsx as d, jsxs as j, Fragment as Qt } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as j, Fragment as Qt } from "react/jsx-runtime";
2
2
  import { useMemo as ee, useState as U, useCallback as A, useEffect as B, useRef as W, useLayoutEffect as pt, forwardRef as Zt, Fragment as Ot } from "react";
3
3
  import { Resizable as Dt } from "react-resizable";
4
4
  import { c as He } from "./bind-06a7ff84.js";
@@ -11,168 +11,168 @@ import "react-dnd";
11
11
  import "react-dnd-html5-backend";
12
12
  import { u as tn } from "./useEllipsisTitle-462fa254.js";
13
13
  import { i as nn } from "./isEmpty-ccacb5ff.js";
14
- const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_1d64d_66", cn = "_selectable_1d64d_91", on = "_expanded_1d64d_87", ln = "_label_1d64d_392", dn = {
14
+ const ft = (t) => typeof t == "string", rn = "_table_1wp8m_1", sn = "_resizable_1wp8m_65", cn = "_selectable_1wp8m_90", on = "_expanded_1wp8m_86", ln = "_label_1wp8m_391", an = {
15
15
  table: rn,
16
- "fixed-header": "_fixed-header_1d64d_9",
17
- "external-scroll-container": "_external-scroll-container_1d64d_13",
18
- "horizontally-scrollable-container": "_horizontally-scrollable-container_1d64d_20",
19
- "table-header": "_table-header_1d64d_25",
20
- "sticky-header": "_sticky-header_1d64d_33",
21
- "pinned-header": "_pinned-header_1d64d_43",
22
- "horizontally-scrollable": "_horizontally-scrollable_1d64d_20",
16
+ "fixed-header": "_fixed-header_1wp8m_9",
17
+ "external-scroll-container": "_external-scroll-container_1wp8m_13",
18
+ "horizontally-scrollable-container": "_horizontally-scrollable-container_1wp8m_20",
19
+ "table-header": "_table-header_1wp8m_25",
20
+ "sticky-header": "_sticky-header_1wp8m_33",
21
+ "pinned-header": "_pinned-header_1wp8m_42",
22
+ "horizontally-scrollable": "_horizontally-scrollable_1wp8m_20",
23
23
  resizable: sn,
24
- "resizable-column": "_resizable-column_1d64d_66",
25
- "select-all-checkbox": "_select-all-checkbox_1d64d_73",
26
- "select-all-checkbox-selected": "_select-all-checkbox-selected_1d64d_77",
27
- "table-row": "_table-row_1d64d_82",
28
- "expanded-cell": "_expanded-cell_1d64d_87",
24
+ "resizable-column": "_resizable-column_1wp8m_65",
25
+ "select-all-checkbox": "_select-all-checkbox_1wp8m_72",
26
+ "select-all-checkbox-selected": "_select-all-checkbox-selected_1wp8m_76",
27
+ "table-row": "_table-row_1wp8m_81",
28
+ "expanded-cell": "_expanded-cell_1wp8m_86",
29
29
  selectable: cn,
30
- "row-content-wrapper": "_row-content-wrapper_1d64d_95",
31
- "pinned-column": "_pinned-column_1d64d_103",
32
- "has-scroll": "_has-scroll_1d64d_103",
33
- "table-row-content": "_table-row-content_1d64d_106",
34
- "expand-cell": "_expand-cell_1d64d_123",
35
- "left-border-accent": "_left-border-accent_1d64d_126",
36
- "size-small": "_size-small_1d64d_136",
37
- "size-large": "_size-large_1d64d_147",
38
- "table-body": "_table-body_1d64d_159",
39
- "scrollable-body": "_scrollable-body_1d64d_165",
40
- "expanded-content-row": "_expanded-content-row_1d64d_229",
41
- "with-checkbox-track": "_with-checkbox-track_1d64d_244",
42
- "expanded-content-cell": "_expanded-content-cell_1d64d_247",
43
- "primitive-cell-text": "_primitive-cell-text_1d64d_256",
44
- "table-header-cell": "_table-header-cell_1d64d_265",
45
- "table-cell": "_table-cell_1d64d_266",
46
- "action-menu-cell": "_action-menu-cell_1d64d_272",
47
- "checkbox-cell": "_checkbox-cell_1d64d_300",
48
- "expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1d64d_341",
49
- "expand-all-tooltip-content": "_expand-all-tooltip-content_1d64d_350",
50
- "expand-icon": "_expand-icon_1d64d_359",
30
+ "row-content-wrapper": "_row-content-wrapper_1wp8m_94",
31
+ "pinned-column": "_pinned-column_1wp8m_102",
32
+ "has-scroll": "_has-scroll_1wp8m_102",
33
+ "table-row-content": "_table-row-content_1wp8m_105",
34
+ "expand-cell": "_expand-cell_1wp8m_122",
35
+ "left-border-accent": "_left-border-accent_1wp8m_125",
36
+ "size-small": "_size-small_1wp8m_135",
37
+ "size-large": "_size-large_1wp8m_146",
38
+ "table-body": "_table-body_1wp8m_158",
39
+ "scrollable-body": "_scrollable-body_1wp8m_164",
40
+ "expanded-content-row": "_expanded-content-row_1wp8m_228",
41
+ "with-checkbox-track": "_with-checkbox-track_1wp8m_243",
42
+ "expanded-content-cell": "_expanded-content-cell_1wp8m_246",
43
+ "primitive-cell-text": "_primitive-cell-text_1wp8m_255",
44
+ "table-header-cell": "_table-header-cell_1wp8m_264",
45
+ "table-cell": "_table-cell_1wp8m_265",
46
+ "action-menu-cell": "_action-menu-cell_1wp8m_271",
47
+ "checkbox-cell": "_checkbox-cell_1wp8m_299",
48
+ "expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1wp8m_340",
49
+ "expand-all-tooltip-content": "_expand-all-tooltip-content_1wp8m_349",
50
+ "expand-icon": "_expand-icon_1wp8m_358",
51
51
  expanded: on,
52
- "primary-cell": "_primary-cell_1d64d_368",
52
+ "primary-cell": "_primary-cell_1wp8m_367",
53
53
  label: ln,
54
- "sortable-cell": "_sortable-cell_1d64d_406",
55
- "sort-disabled": "_sort-disabled_1d64d_409",
56
- "sort-disabled-tooltip-wrapper": "_sort-disabled-tooltip-wrapper_1d64d_415",
57
- "align-right": "_align-right_1d64d_420",
58
- "align-center": "_align-center_1d64d_426",
59
- "table-wrapper": "_table-wrapper_1d64d_480",
60
- "checkbox-column": "_checkbox-column_1d64d_492",
61
- "checkbox-header": "_checkbox-header_1d64d_501",
62
- "checkbox-body": "_checkbox-body_1d64d_522",
63
- "checkbox-row": "_checkbox-row_1d64d_529",
64
- "checkbox-tooltip-wrapper": "_checkbox-tooltip-wrapper_1d64d_540"
65
- }, ut = "asc", Q = 32, _t = 100, an = 48, We = 48, hn = (t) => t.toLowerCase() === ut, pn = (t) => t.map((c) => c.key), J = (t) => "primary" in t && t.primary === !0, lt = (t) => {
54
+ "sortable-cell": "_sortable-cell_1wp8m_405",
55
+ "sort-disabled": "_sort-disabled_1wp8m_408",
56
+ "sort-disabled-tooltip-wrapper": "_sort-disabled-tooltip-wrapper_1wp8m_414",
57
+ "align-right": "_align-right_1wp8m_419",
58
+ "align-center": "_align-center_1wp8m_425",
59
+ "table-wrapper": "_table-wrapper_1wp8m_479",
60
+ "checkbox-column": "_checkbox-column_1wp8m_491",
61
+ "checkbox-header": "_checkbox-header_1wp8m_500",
62
+ "checkbox-body": "_checkbox-body_1wp8m_521",
63
+ "checkbox-row": "_checkbox-row_1wp8m_528",
64
+ "checkbox-tooltip-wrapper": "_checkbox-tooltip-wrapper_1wp8m_539"
65
+ }, ut = "asc", Q = 32, _t = 100, dn = 48, We = 48, hn = (t) => t.toLowerCase() === ut, pn = (t) => t.map((c) => c.key), J = (t) => "primary" in t && t.primary === !0, lt = (t) => {
66
66
  var r;
67
67
  return `size-${((r = t.rowConfigs) == null ? void 0 : r.size) ?? "default"}`;
68
- }, Me = (t) => ft(t) ? t : `${t}px`, fn = (t, c, r, i, h, v = !1) => {
68
+ }, Me = (t) => ft(t) ? t : `${t}px`, fn = (t, c, r, i, h, m = !1) => {
69
69
  let p = 0;
70
- i && (p += Q), h && !v && (p += Q);
71
- for (let b = 0; b < t; b++) {
72
- const a = c[b];
73
- if (J(a)) {
74
- const o = r.current.get(a.key) || _t;
70
+ i && (p += Q), h && !m && (p += Q);
71
+ for (let g = 0; g < t; g++) {
72
+ const d = c[g];
73
+ if (J(d)) {
74
+ const o = r.current.get(d.key) || _t;
75
75
  p += o;
76
76
  } else {
77
- const o = a, l = ft(o.width) ? parseInt(o.width, 10) || 0 : o.width;
77
+ const o = d, l = ft(o.width) ? parseInt(o.width, 10) || 0 : o.width;
78
78
  p += l;
79
79
  }
80
80
  }
81
81
  return p;
82
- }, he = (t, c, r, i, h, v, p, b = !1) => {
83
- const a = {};
82
+ }, he = (t, c, r, i, h, m, p, g = !1) => {
83
+ const d = {};
84
84
  if (!J(t)) {
85
85
  const o = t;
86
- a.textAlign = o.align;
86
+ d.textAlign = o.align;
87
87
  }
88
88
  if (c && r !== void 0) {
89
89
  const o = fn(
90
90
  r,
91
91
  i,
92
92
  h,
93
- v,
93
+ m,
94
94
  p,
95
- b
95
+ g
96
96
  );
97
- a.left = `${o}px`;
97
+ d.left = `${o}px`;
98
98
  }
99
- return a;
100
- }, dt = (t, c, r, i, h, v = !1, p, b = !1, a = !1) => {
99
+ return d;
100
+ }, at = (t, c, r, i, h, m = !1, p, g = !1, d = !1) => {
101
101
  const o = [];
102
- r && o.push(`${Q}px`), v && i && !a && o.push(`${Q}px`);
102
+ r && o.push(`${Q}px`), m && i && !d && o.push(`${Q}px`);
103
103
  const l = (f) => {
104
104
  if ((p == null ? void 0 : p[f.key]) !== void 0) {
105
105
  o.push(`${p[f.key]}px`);
106
106
  return;
107
107
  }
108
108
  if (J(f)) {
109
- const w = f;
110
- if (b && w.width) {
111
- o.push(Me(w.width));
109
+ const v = f;
110
+ if (g && v.width) {
111
+ o.push(Me(v.width));
112
112
  return;
113
113
  }
114
- const L = w.width ? Me(w.width) : `${_t}px`;
114
+ const L = v.width ? Me(v.width) : `${_t}px`;
115
115
  o.push(`minmax(${L}, 1fr)`);
116
116
  } else {
117
117
  const L = Me(f.width);
118
118
  o.push(L);
119
119
  }
120
120
  };
121
- return t.forEach(l), c.forEach(l), h && o.push(`${an}px`), o.join(" ");
121
+ return t.forEach(l), c.forEach(l), h && o.push(`${dn}px`), o.join(" ");
122
122
  }, un = ({
123
123
  primaryColumns: t,
124
124
  fixedColumns: c,
125
125
  pinnedColumnKeys: r
126
126
  }) => ee(() => {
127
127
  const i = [], h = [];
128
- return t.forEach((v) => {
129
- const p = { ...v, primary: !0 };
130
- r.includes(v.key) ? i.push(p) : h.push(p);
131
- }), c.forEach((v) => {
132
- r.includes(v.key) ? i.push(v) : h.push(v);
128
+ return t.forEach((m) => {
129
+ const p = { ...m, primary: !0 };
130
+ r.includes(m.key) ? i.push(p) : h.push(p);
131
+ }), c.forEach((m) => {
132
+ r.includes(m.key) ? i.push(m) : h.push(m);
133
133
  }), {
134
134
  pinnedColumns: i,
135
135
  scrollableColumns: h
136
136
  };
137
137
  }, [t, c, r]), _n = () => {
138
- const [t, c] = U(null), [r, i] = U(null), h = A((a) => {
139
- c(a);
140
- }, []), v = A(() => {
138
+ const [t, c] = U(null), [r, i] = U(null), h = A((d) => {
139
+ c(d);
140
+ }, []), m = A(() => {
141
141
  c(null);
142
- }, []), p = A((a) => {
143
- i(a);
144
- }, []), b = A(() => {
142
+ }, []), p = A((d) => {
143
+ i(d);
144
+ }, []), g = A(() => {
145
145
  i(null);
146
146
  }, []);
147
147
  return {
148
148
  hoveredColumn: t,
149
149
  hoveredRow: r,
150
150
  handleColumnMouseEnter: h,
151
- handleColumnMouseLeave: v,
151
+ handleColumnMouseLeave: m,
152
152
  handleRowMouseEnter: p,
153
- handleRowMouseLeave: b
153
+ handleRowMouseLeave: g
154
154
  };
155
- }, gn = ({
155
+ }, wn = ({
156
156
  primaryColumns: t,
157
157
  fixedColumns: c,
158
158
  expandedRowIds: r,
159
159
  onToggleRowExpansion: i
160
160
  }) => {
161
- const [h, v] = U(/* @__PURE__ */ new Set());
161
+ const [h, m] = U(/* @__PURE__ */ new Set());
162
162
  B(() => {
163
- const a = [
163
+ const d = [
164
164
  ...t.map((l) => l.key),
165
165
  ...c.map((l) => l.key)
166
166
  ], o = /* @__PURE__ */ new Set();
167
167
  r.forEach((l) => {
168
- a.forEach((f) => {
168
+ d.forEach((f) => {
169
169
  o.add(`${l}-${f}`);
170
170
  });
171
- }), v((l) => {
171
+ }), m((l) => {
172
172
  if (l.size === o.size) {
173
173
  let f = !0;
174
- if (l.forEach((w) => {
175
- o.has(w) || (f = !1);
174
+ if (l.forEach((v) => {
175
+ o.has(v) || (f = !1);
176
176
  }), f)
177
177
  return l;
178
178
  }
@@ -180,23 +180,23 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
180
180
  });
181
181
  }, [r, t, c]);
182
182
  const p = A(
183
- (a) => {
184
- const o = new Set(h), l = r.includes(a), f = [
185
- ...t.map((w) => w.key),
186
- ...c.map((w) => w.key)
183
+ (d) => {
184
+ const o = new Set(h), l = r.includes(d), f = [
185
+ ...t.map((v) => v.key),
186
+ ...c.map((v) => v.key)
187
187
  ];
188
- l ? f.forEach((w) => {
189
- const L = `${a}-${w}`;
188
+ l ? f.forEach((v) => {
189
+ const L = `${d}-${v}`;
190
190
  o.delete(L);
191
- }) : f.forEach((w) => {
192
- const L = `${a}-${w}`;
191
+ }) : f.forEach((v) => {
192
+ const L = `${d}-${v}`;
193
193
  o.add(L);
194
- }), v(o), i(a);
194
+ }), m(o), i(d);
195
195
  },
196
196
  [h, r, t, c, i]
197
- ), b = A(
198
- (a, o) => {
199
- const l = `${a}-${o}`;
197
+ ), g = A(
198
+ (d, o) => {
199
+ const l = `${d}-${o}`;
200
200
  return h.has(l);
201
201
  },
202
202
  [h]
@@ -204,9 +204,9 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
204
204
  return {
205
205
  expandedCells: h,
206
206
  handleToggleRowExpansion: p,
207
- isCellExpanded: b
207
+ isCellExpanded: g
208
208
  };
209
- }, vn = () => {
209
+ }, mn = () => {
210
210
  const t = W(/* @__PURE__ */ new Map()), c = A(
211
211
  (r) => (i) => {
212
212
  if (!i)
@@ -220,22 +220,22 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
220
220
  columnWidthsRef: t,
221
221
  setCellRef: c
222
222
  };
223
- }, bn = ({
223
+ }, gn = ({
224
224
  enabled: t = !1,
225
225
  minWidth: c = 50,
226
226
  maxWidth: r = 500,
227
227
  columns: i = [],
228
228
  columnWidthsRef: h,
229
- onColumnResize: v,
229
+ onColumnResize: m,
230
230
  initialColumnWidths: p
231
231
  }) => {
232
- const [b, a] = U({}), o = W(i), l = W(void 0);
232
+ const [g, d] = U({}), o = W(i), l = W(void 0);
233
233
  B(() => {
234
234
  o.current = i;
235
235
  }, [i]);
236
236
  const f = A(
237
237
  ($) => {
238
- const k = i.find((y) => y.key === $);
238
+ const k = i.find((b) => b.key === $);
239
239
  return {
240
240
  minWidth: (k == null ? void 0 : k.minWidth) ?? c,
241
241
  maxWidth: (k == null ? void 0 : k.maxWidth) ?? r
@@ -246,40 +246,40 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
246
246
  B(() => {
247
247
  if (p && l.current !== p) {
248
248
  const k = {};
249
- Object.entries(p).forEach(([y, R]) => {
250
- const m = o.current.find((Z) => Z.key === y), F = (m == null ? void 0 : m.minWidth) ?? c, H = (m == null ? void 0 : m.maxWidth) ?? r;
251
- k[y] = Math.min(H, Math.max(F, R));
252
- }), a(k), l.current = p;
249
+ Object.entries(p).forEach(([b, R]) => {
250
+ const y = o.current.find((Z) => Z.key === b), F = (y == null ? void 0 : y.minWidth) ?? c, H = (y == null ? void 0 : y.maxWidth) ?? r;
251
+ k[b] = Math.min(H, Math.max(F, R));
252
+ }), d(k), l.current = p;
253
253
  }
254
254
  }, [p, c, r]);
255
- const w = A(() => {
256
- if (!t || Object.keys(b).length > 0 || !h)
255
+ const v = A(() => {
256
+ if (!t || Object.keys(g).length > 0 || !h)
257
257
  return;
258
258
  const $ = {};
259
- h.current.forEach((k, y) => {
260
- $[y] = k;
261
- }), a($);
262
- }, [t, b, h]), L = A(
263
- ($) => (k, { size: y }) => {
259
+ h.current.forEach((k, b) => {
260
+ $[b] = k;
261
+ }), d($);
262
+ }, [t, g, h]), L = A(
263
+ ($) => (k, { size: b }) => {
264
264
  if (!t)
265
265
  return;
266
- const { minWidth: R, maxWidth: m } = f($), F = Math.min(m, Math.max(R, y.width));
267
- a((H) => ({ ...H, [$]: F }));
266
+ const { minWidth: R, maxWidth: y } = f($), F = Math.min(y, Math.max(R, b.width));
267
+ d((H) => ({ ...H, [$]: F }));
268
268
  },
269
269
  [t, f]
270
270
  ), G = A(
271
271
  ($) => () => {
272
- !t || !b[$] || v == null || v($, b[$]);
272
+ !t || !g[$] || m == null || m($, g[$]);
273
273
  },
274
- [t, b, v]
274
+ [t, g, m]
275
275
  );
276
276
  return {
277
- columnWidths: b,
277
+ columnWidths: g,
278
278
  handleResize: L,
279
279
  handleResizeStop: G,
280
- handleResizeStart: w
280
+ handleResizeStart: v
281
281
  };
282
- }, wn = (t, c, r, i, h, v, p, b) => ee(() => {
282
+ }, vn = (t, c, r, i, h, m, p, g) => ee(() => {
283
283
  if (!t)
284
284
  return {
285
285
  visible: !1,
@@ -292,13 +292,13 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
292
292
  position: { top: 0, left: 0 },
293
293
  size: { width: 0, height: 0 }
294
294
  };
295
- const o = t.getBoundingClientRect(), l = (c == null ? void 0 : c.offsetHeight) || 0, f = r == null ? void 0 : r.getBoundingClientRect(), w = Math.min(
295
+ const o = t.getBoundingClientRect(), l = (c == null ? void 0 : c.offsetHeight) || 0, f = r == null ? void 0 : r.getBoundingClientRect(), v = Math.min(
296
296
  o.bottom,
297
297
  (f == null ? void 0 : f.bottom) || Number.MAX_SAFE_INTEGER
298
298
  );
299
299
  let L;
300
300
  i && r && f ? L = f.top - o.top + l : L = l;
301
- const G = o.top + L, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, y = w - G - k, m = t.scrollHeight > t.clientHeight ? t.offsetWidth - t.clientWidth : 0, F = o.right - We - m;
301
+ const G = o.top + L, k = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, b = v - G - k, y = t.scrollHeight > t.clientHeight ? t.offsetWidth - t.clientWidth : 0, F = o.right - We - y;
302
302
  return {
303
303
  visible: !0,
304
304
  position: {
@@ -307,7 +307,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
307
307
  },
308
308
  size: {
309
309
  width: We,
310
- height: y
310
+ height: b
311
311
  }
312
312
  };
313
313
  }, [
@@ -316,10 +316,10 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
316
316
  r,
317
317
  i,
318
318
  h,
319
- v,
319
+ m,
320
320
  p,
321
- b
322
- ]), yn = (t, c, r, i, h, v, p, b) => ee(() => {
321
+ g
322
+ ]), bn = (t, c, r, i, h, m, p, g) => ee(() => {
323
323
  if (!t)
324
324
  return {
325
325
  visible: !1,
@@ -357,27 +357,27 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
357
357
  position: { top: 0, left: 0 },
358
358
  size: { width: 0, height: 0 }
359
359
  };
360
- const w = l.find(
360
+ const v = l.find(
361
361
  (O) => parseInt(O.getAttribute("data-pinned-index") || "-1", 10) === f
362
362
  );
363
- if (!w)
363
+ if (!v)
364
364
  return {
365
365
  visible: !1,
366
366
  position: { top: 0, left: 0 },
367
367
  size: { width: 0, height: 0 }
368
368
  };
369
- const L = w.getBoundingClientRect(), G = t.getBoundingClientRect(), $ = (r == null ? void 0 : r.offsetHeight) || 0, k = i == null ? void 0 : i.getBoundingClientRect(), y = L.right, R = Math.min(
369
+ const L = v.getBoundingClientRect(), G = t.getBoundingClientRect(), $ = (r == null ? void 0 : r.offsetHeight) || 0, k = i == null ? void 0 : i.getBoundingClientRect(), b = L.right, R = Math.min(
370
370
  G.bottom,
371
371
  (k == null ? void 0 : k.bottom) || Number.MAX_SAFE_INTEGER
372
372
  );
373
- let m;
374
- h && i && k ? m = k.top - G.top + $ : m = $;
375
- const F = G.top + m, Z = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, pe = R - F - Z;
373
+ let y;
374
+ h && i && k ? y = k.top - G.top + $ : y = $;
375
+ const F = G.top + y, Z = t.scrollWidth > t.clientWidth ? t.offsetHeight - t.clientHeight : 0, pe = R - F - Z;
376
376
  return {
377
377
  visible: !0,
378
378
  position: {
379
379
  top: F,
380
- left: y
380
+ left: b
381
381
  },
382
382
  size: {
383
383
  width: We,
@@ -390,93 +390,93 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
390
390
  r,
391
391
  i,
392
392
  h,
393
- v,
393
+ m,
394
394
  p,
395
- b
396
- ]), mn = ({ enabled: t, rowCount: c }) => {
395
+ g
396
+ ]), yn = ({ enabled: t, rowCount: c }) => {
397
397
  const r = W(/* @__PURE__ */ new Map()), i = W(/* @__PURE__ */ new Map()), h = A(
398
- (a) => (o) => {
399
- const l = String(a);
398
+ (d) => (o) => {
399
+ const l = String(d);
400
400
  o ? r.current.set(l, o) : r.current.delete(l);
401
401
  },
402
402
  []
403
- ), v = A(
404
- (a) => (o) => {
405
- const l = String(a);
403
+ ), m = A(
404
+ (d) => (o) => {
405
+ const l = String(d);
406
406
  o ? i.current.set(l, o) : i.current.delete(l);
407
407
  },
408
408
  []
409
- ), p = A((a, o) => {
410
- const l = `${a.offsetHeight}px`;
409
+ ), p = A((d, o) => {
410
+ const l = `${d.offsetHeight}px`;
411
411
  o.style.height !== l && (o.style.height = l);
412
- }, []), b = A(() => {
413
- r.current.forEach((a, o) => {
412
+ }, []), g = A(() => {
413
+ r.current.forEach((d, o) => {
414
414
  const l = i.current.get(o);
415
- l && p(a, l);
415
+ l && p(d, l);
416
416
  });
417
417
  }, [p]);
418
418
  return B(() => {
419
419
  if (!t)
420
420
  return;
421
- const a = new ResizeObserver((o) => {
421
+ const d = new ResizeObserver((o) => {
422
422
  requestAnimationFrame(() => {
423
423
  o.forEach((l) => {
424
- const f = l.target, w = f.dataset.rowId, L = w ? i.current.get(w) : void 0;
424
+ const f = l.target, v = f.dataset.rowId, L = v ? i.current.get(v) : void 0;
425
425
  L && p(f, L);
426
426
  });
427
427
  });
428
428
  });
429
- return r.current.forEach((o) => a.observe(o)), () => a.disconnect();
429
+ return r.current.forEach((o) => d.observe(o)), () => d.disconnect();
430
430
  }, [t, c, p]), pt(() => {
431
- t && b();
432
- }, [t, c, b]), { setTableRowRef: h, setCheckboxRowRef: v, syncAllHeights: b };
431
+ t && g();
432
+ }, [t, c, g]), { setTableRowRef: h, setCheckboxRowRef: m, syncAllHeights: g };
433
433
  }, kn = {
434
434
  "resize-handle": "_resize-handle_15uk3_1"
435
435
  }, xn = He.bind(kn), En = Zt(
436
- (t, c) => /* @__PURE__ */ d("div", { ref: c, className: xn("resize-handle"), ...t, children: /* @__PURE__ */ d(Kt, {}) })
436
+ (t, c) => /* @__PURE__ */ a("div", { ref: c, className: xn("resize-handle"), ...t, children: /* @__PURE__ */ a(Kt, {}) })
437
437
  ), Ln = {
438
438
  "gradient-overlay": "_gradient-overlay_hx7m8_1",
439
439
  "direction-right": "_direction-right_hx7m8_5",
440
440
  "direction-left": "_direction-left_hx7m8_13"
441
- }, Nn = He.bind(Ln), at = ({
441
+ }, Nn = He.bind(Ln), dt = ({
442
442
  portalContainer: t,
443
443
  visible: c,
444
444
  position: r,
445
445
  size: i,
446
446
  direction: h,
447
- className: v,
447
+ className: m,
448
448
  dataTestId: p
449
449
  }) => {
450
450
  if (!c || !t)
451
451
  return null;
452
- const b = {
452
+ const g = {
453
453
  position: "fixed",
454
454
  top: `${r.top}px`,
455
455
  width: `${i.width}px`,
456
456
  height: `${i.height}px`
457
457
  };
458
- return r.left !== void 0 && (b.left = `${r.left}px`), r.right !== void 0 && (b.right = `${r.right}px`), en(
459
- /* @__PURE__ */ d(
458
+ return r.left !== void 0 && (g.left = `${r.left}px`), r.right !== void 0 && (g.right = `${r.right}px`), en(
459
+ /* @__PURE__ */ a(
460
460
  "div",
461
461
  {
462
- className: Nn("gradient-overlay", `direction-${h}`, v),
463
- style: b,
462
+ className: Nn("gradient-overlay", `direction-${h}`, m),
463
+ style: g,
464
464
  "data-gradient-type": p
465
465
  }
466
466
  ),
467
467
  t
468
468
  );
469
- }, g = He.bind(dn), Tn = ({
469
+ }, w = He.bind(an), Tn = ({
470
470
  value: t,
471
471
  expanded: c
472
472
  }) => {
473
473
  const { ref: r, title: i } = tn(c ? void 0 : t), h = String(t);
474
- return /* @__PURE__ */ d(
474
+ return /* @__PURE__ */ a(
475
475
  "span",
476
476
  {
477
477
  ref: r,
478
478
  title: c ? void 0 : i,
479
- className: g({ "primitive-cell-text": !c }),
479
+ className: w({ "primitive-cell-text": !c }),
480
480
  children: h
481
481
  }
482
482
  );
@@ -490,36 +490,36 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
490
490
  return null;
491
491
  } else
492
492
  r = t;
493
- return typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ d(Tn, { value: r, expanded: c }) : r;
493
+ return typeof r == "string" || typeof r == "number" ? /* @__PURE__ */ a(Tn, { value: r, expanded: c }) : r;
494
494
  }, zn = ({ column: t }) => {
495
495
  const c = W(null), [r, i] = U(!1);
496
496
  return B(() => {
497
497
  if (c.current) {
498
- const h = c.current.offsetWidth, v = c.current.scrollWidth;
499
- i(v > h);
498
+ const h = c.current.offsetWidth, m = c.current.scrollWidth;
499
+ i(m > h);
500
500
  }
501
- }, [t.header]), /* @__PURE__ */ d("span", { ref: c, title: r ? t.header : void 0, children: t.header });
501
+ }, [t.header]), /* @__PURE__ */ a("span", { ref: c, title: r ? t.header : void 0, children: t.header });
502
502
  }, Xn = ({
503
503
  data: t,
504
504
  primaryColumn: c,
505
505
  fixedColumns: r,
506
506
  renderRowActions: i,
507
507
  className: h = "",
508
- wrapperClassName: v = "",
508
+ wrapperClassName: m = "",
509
509
  rowClassName: p = "",
510
- headerClassName: b = "",
511
- bodyClassName: a = "",
510
+ headerClassName: g = "",
511
+ bodyClassName: d = "",
512
512
  checkboxColumnClassName: o = "",
513
513
  expandColumnClassName: l = "",
514
514
  selectable: f = !1,
515
- selectedRowIds: w = [],
515
+ selectedRowIds: v = [],
516
516
  sortingDirection: L = ut,
517
517
  sortingColumn: G,
518
518
  sortableColumns: $,
519
519
  isHeaderFixed: k = !1,
520
- isHorizontallyScrollable: y = !1,
520
+ isHorizontallyScrollable: b = !1,
521
521
  pinnedColumnKeys: R = [],
522
- isRowsExpandable: m = !1,
522
+ isRowsExpandable: y = !1,
523
523
  isExpandAllVisible: F = !0,
524
524
  expandedRowIds: H = [],
525
525
  canExpandRow: Z = () => !0,
@@ -531,18 +531,18 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
531
531
  isResizable: P = !1,
532
532
  minColumnWidth: fe = 50,
533
533
  maxColumnWidth: Be = 500,
534
- isSelectAllCheckboxAlwaysVisible: gt = !1,
534
+ isSelectAllCheckboxAlwaysVisible: wt = !1,
535
535
  isCheckboxOutside: T = !1,
536
536
  disabledRowIds: ue,
537
- onChangeSorting: vt = () => {
537
+ onChangeSorting: mt = () => {
538
538
  },
539
- onToggleRowSelection: bt = () => {
539
+ onToggleRowSelection: gt = () => {
540
540
  },
541
- onToggleAllRowsSelection: wt = () => {
541
+ onToggleAllRowsSelection: vt = () => {
542
542
  },
543
- onToggleRowExpansion: yt = () => {
543
+ onToggleRowExpansion: bt = () => {
544
544
  },
545
- onToggleAllRowsExpansion: mt = () => {
545
+ onToggleAllRowsExpansion: yt = () => {
546
546
  },
547
547
  onColumnResize: kt = () => {
548
548
  },
@@ -567,22 +567,22 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
567
567
  handleColumnMouseLeave: Tt,
568
568
  handleRowMouseEnter: Fe,
569
569
  handleRowMouseLeave: qe
570
- } = _n(), { columnWidthsRef: te, setCellRef: Ue } = vn(), zt = ee(() => {
570
+ } = _n(), { columnWidthsRef: te, setCellRef: Ue } = mn(), zt = ee(() => {
571
571
  const e = {};
572
572
  return D.forEach((n) => {
573
573
  "width" in n && typeof n.width == "number" && (e[n.key] = n.width);
574
574
  }), r.forEach((n) => {
575
575
  "width" in n && typeof n.width == "number" && (e[n.key] = n.width);
576
576
  }), Object.keys(e).length > 0 ? e : void 0;
577
- }, [D, r]), { handleToggleRowExpansion: $t, isCellExpanded: je } = gn({
577
+ }, [D, r]), { handleToggleRowExpansion: $t, isCellExpanded: je } = wn({
578
578
  primaryColumns: D,
579
579
  fixedColumns: r,
580
580
  expandedRowIds: H,
581
- onToggleRowExpansion: yt
581
+ onToggleRowExpansion: bt
582
582
  }), At = ee(
583
583
  () => [...q, ...C],
584
584
  [q, C]
585
- ), { columnWidths: oe, handleResize: Mt, handleResizeStop: Wt, handleResizeStart: Ht } = bn({
585
+ ), { columnWidths: oe, handleResize: Mt, handleResizeStop: Wt, handleResizeStart: Ht } = gn({
586
586
  enabled: P,
587
587
  minWidth: fe,
588
588
  maxWidth: Be,
@@ -590,29 +590,29 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
590
590
  columnWidthsRef: te,
591
591
  onColumnResize: kt,
592
592
  initialColumnWidths: zt
593
- }), { setTableRowRef: St, setCheckboxRowRef: Pt } = mn({
593
+ }), { setTableRowRef: St, setCheckboxRowRef: Pt } = yn({
594
594
  enabled: f && T,
595
595
  rowCount: t.length
596
596
  }), Re = (e, n) => {
597
597
  const s = e.minWidth ?? fe, u = e.maxWidth ?? Be;
598
- return /* @__PURE__ */ d(
598
+ return /* @__PURE__ */ a(
599
599
  Dt,
600
600
  {
601
601
  width: oe[e.key] ?? (typeof e.width == "number" ? e.width : fe),
602
602
  height: 0,
603
603
  axis: "x",
604
- handle: /* @__PURE__ */ d(En, {}),
604
+ handle: /* @__PURE__ */ a(En, {}),
605
605
  onResizeStart: Ht,
606
606
  onResize: Mt(e.key),
607
607
  onResizeStop: Wt(e.key),
608
608
  minConstraints: [s, 0],
609
609
  maxConstraints: [u, 0],
610
- className: g("resizable-column"),
610
+ className: w("resizable-column"),
611
611
  children: n
612
612
  },
613
613
  e.key
614
614
  );
615
- }, z = W(null), X = W(null), Bt = W(null), ne = W(null), ge = W(null), [V, Gt] = U(!1), ie = A((e) => {
615
+ }, z = W(null), X = W(null), Bt = W(null), ne = W(null), we = W(null), [I, Gt] = U(!1), ie = A((e) => {
616
616
  const n = X.current;
617
617
  if (n && n.contains(e))
618
618
  return;
@@ -621,95 +621,95 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
621
621
  return;
622
622
  const u = window.getComputedStyle(s), _ = parseFloat(u.paddingTop) || 0, E = parseFloat(u.paddingBottom) || 0, M = e.offsetHeight + _ + E;
623
623
  e.style.setProperty("--expand-cell-top", `${_}px`), e.style.setProperty("--expand-cell-height", `${M}px`);
624
- }, []), [Xe, ve] = U(0), [Ie, be] = U(0), [Ve, we] = U(0), [Ye, Je] = U(0), le = W(!1), ye = W(/* @__PURE__ */ new Set()), re = W(null), me = wn(
624
+ }, []), [Xe, me] = U(0), [Ie, ge] = U(0), [Ve, ve] = U(0), [Ye, Je] = U(0), le = W(!1), be = W(/* @__PURE__ */ new Set()), re = W(null), ye = vn(
625
625
  z.current,
626
626
  X.current,
627
627
  (x == null ? void 0 : x.current) instanceof HTMLElement ? x.current : null,
628
- V,
628
+ I,
629
629
  Xe,
630
630
  Ie,
631
631
  Ve,
632
632
  Ye
633
- ), ke = yn(
633
+ ), ke = bn(
634
634
  z.current,
635
635
  Xe,
636
636
  X.current,
637
637
  (x == null ? void 0 : x.current) instanceof HTMLElement ? x.current : null,
638
- V,
638
+ I,
639
639
  Ie,
640
640
  Ve,
641
641
  Ye
642
642
  ), Ft = (e) => {
643
- ce.includes(e) && (S != null && S[e] || vt({ key: e, direction: L }));
644
- }, qt = (e) => ce.includes(e) ? (K == null ? void 0 : K.key) === e ? hn(L) ? /* @__PURE__ */ d(ot, {}) : /* @__PURE__ */ d(Ct, {}) : /* @__PURE__ */ d(ot, {}) : null, Qe = (e, n) => {
643
+ ce.includes(e) && (S != null && S[e] || mt({ key: e, direction: L }));
644
+ }, qt = (e) => ce.includes(e) ? (K == null ? void 0 : K.key) === e ? hn(L) ? /* @__PURE__ */ a(ot, {}) : /* @__PURE__ */ a(Ct, {}) : /* @__PURE__ */ a(ot, {}) : null, Qe = (e, n) => {
645
645
  const s = S == null ? void 0 : S[n], u = /* @__PURE__ */ j(
646
646
  "div",
647
647
  {
648
- className: g("label", { "sort-disabled": !!s }),
648
+ className: w("label", { "sort-disabled": !!s }),
649
649
  onClick: () => Ft(n),
650
650
  onMouseEnter: () => Nt(n),
651
651
  onMouseLeave: Tt,
652
652
  children: [
653
- /* @__PURE__ */ d(zn, { column: e }),
653
+ /* @__PURE__ */ a(zn, { column: e }),
654
654
  (Lt === n || (K == null ? void 0 : K.key) === n) && qt(n)
655
655
  ]
656
656
  }
657
657
  );
658
- return s ? /* @__PURE__ */ d(
658
+ return s ? /* @__PURE__ */ a(
659
659
  Ae,
660
660
  {
661
661
  content: s,
662
662
  placement: "top",
663
663
  dynamicWidth: !0,
664
664
  portalRoot: se ?? void 0,
665
- wrapperClassName: g("sort-disabled-tooltip-wrapper"),
665
+ wrapperClassName: w("sort-disabled-tooltip-wrapper"),
666
666
  wrapperTabIndex: -1,
667
667
  children: u
668
668
  }
669
669
  ) : u;
670
670
  }, Ut = (e) => {
671
- bt(e);
671
+ gt(e);
672
672
  }, Ze = () => {
673
- wt();
674
- }, xe = m ? t.filter(Z) : [], Oe = xe.length > 0, jt = () => {
675
- mt(xe.map((e) => e.id));
673
+ vt();
674
+ }, xe = y ? t.filter(Z) : [], Oe = xe.length > 0, jt = () => {
675
+ yt(xe.map((e) => e.id));
676
676
  }, Ee = (e) => (ue == null ? void 0 : ue.includes(e)) ?? !1, De = t.every(
677
- (e) => Ee(e.id) || w.includes(e.id)
677
+ (e) => Ee(e.id) || v.includes(e.id)
678
678
  ), Le = t.some(
679
- (e) => !Ee(e.id) && w.includes(e.id)
680
- ), Ne = (w == null ? void 0 : w.length) > 0, Rt = !nn(t), Ke = gt && Rt || Ne, Te = pe === "detail", Xt = Oe && xe.every((e) => H.includes(e.id)), It = Se !== void 0 ? Se : Xt, ze = dt(
679
+ (e) => !Ee(e.id) && v.includes(e.id)
680
+ ), Ne = (v == null ? void 0 : v.length) > 0, Rt = !nn(t), Ke = wt && Rt || Ne, Te = pe === "detail", Xt = Oe && xe.every((e) => H.includes(e.id)), It = Se !== void 0 ? Se : Xt, ze = at(
681
681
  q,
682
682
  C,
683
- m,
683
+ y,
684
684
  f,
685
685
  !!i,
686
686
  !1,
687
687
  P ? oe : void 0,
688
688
  P,
689
689
  T
690
- ), Vt = dt(
690
+ ), Vt = at(
691
691
  q,
692
692
  C,
693
- m,
693
+ y,
694
694
  f,
695
695
  !!i,
696
696
  !0,
697
697
  P ? oe : void 0,
698
698
  P,
699
699
  T
700
- ), Ce = f && !T, Yt = Ce ? `${Q}px ${ze}` : ze, et = /* @__PURE__ */ d("button", { onClick: jt, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ d("span", { className: g("expand-icon", { expanded: It }), children: /* @__PURE__ */ d(it, {}) }) });
700
+ ), Ce = f && !T, Yt = Ce ? `${Q}px ${ze}` : ze, et = /* @__PURE__ */ a("button", { onClick: jt, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ a("span", { className: w("expand-icon", { expanded: It }), children: /* @__PURE__ */ a(it, {}) }) });
701
701
  B(() => {
702
702
  if (!(x != null && x.current) || !z.current || !X.current)
703
703
  return;
704
- const e = x.current, n = z.current, s = X.current, u = ge.current, _ = () => {
705
- const N = n.getBoundingClientRect(), M = e.getBoundingClientRect(), Y = s.offsetHeight, I = N.top - M.top, de = N.bottom - M.top, st = e.scrollTop > 0 && I <= 0 && de > Y;
704
+ const e = x.current, n = z.current, s = X.current, u = we.current, _ = () => {
705
+ const N = n.getBoundingClientRect(), M = e.getBoundingClientRect(), Y = s.offsetHeight, V = N.top - M.top, ae = N.bottom - M.top, st = e.scrollTop > 0 && V <= 0 && ae > Y;
706
706
  if (Gt(st), st) {
707
- const ae = N.left, ct = M.top;
708
- s.classList.add(g("pinned-header")), y && (s.style.overflow = "hidden", s.style.overflowX = "hidden"), s.style.left = `${ae}px`, s.style.top = `${ct}px`, s.style.width = `${N.width}px`, u && T && (u.style.top = `${ct}px`);
707
+ const de = N.left, ct = M.top;
708
+ s.classList.add(w("pinned-header")), b && (s.style.overflow = "hidden", s.style.overflowX = "hidden", s.scrollLeft = n.scrollLeft), s.style.left = `${de}px`, s.style.top = `${ct}px`, s.style.width = `${N.width}px`, u && T && (u.style.top = `${ct}px`);
709
709
  } else {
710
- const ae = n.scrollLeft;
711
- le.current = !0, s.classList.remove(g("pinned-header")), y && (s.scrollLeft = 0), s.style.left = "", s.style.top = "", s.style.width = "", y && (s.style.overflow = "", s.style.overflowX = ""), u && T && (u.style.top = "", u.classList.remove(g("pinned-header"))), y && ae > 0 ? requestAnimationFrame(() => {
712
- n.scrollLeft = ae, setTimeout(() => {
710
+ const de = n.scrollLeft;
711
+ le.current = !0, s.classList.remove(w("pinned-header")), b && (s.scrollLeft = 0), s.style.left = "", s.style.top = "", s.style.width = "", b && (s.style.overflow = "", s.style.overflowX = ""), u && T && (u.style.top = "", u.classList.remove(w("pinned-header"))), b && de > 0 ? requestAnimationFrame(() => {
712
+ n.scrollLeft = de, setTimeout(() => {
713
713
  le.current = !1;
714
714
  }, 0);
715
715
  }) : le.current = !1;
@@ -720,14 +720,14 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
720
720
  return e.addEventListener("scroll", _), window.addEventListener("resize", _), () => {
721
721
  cancelAnimationFrame(E), e.removeEventListener("scroll", _), window.removeEventListener("resize", _);
722
722
  };
723
- }, [x, y, T]), B(() => {
724
- if (!(x != null && x.current) || !z.current || !X.current || !V)
723
+ }, [x, b, T]), B(() => {
724
+ if (!(x != null && x.current) || !z.current || !X.current || !I)
725
725
  return;
726
- const e = x.current, n = z.current, s = X.current, u = ge.current, _ = () => {
727
- const I = n.getBoundingClientRect(), de = e.getBoundingClientRect();
728
- s.style.left = `${I.left}px`, s.style.top = `${de.top}px`, s.style.width = `${I.width}px`, u && T && (u.style.top = `${de.top}px`);
729
- }, E = (I) => {
730
- le.current || (I === s ? n.scrollLeft = s.scrollLeft : s.scrollLeft = n.scrollLeft, re.current && re.current());
726
+ const e = x.current, n = z.current, s = X.current, u = we.current, _ = () => {
727
+ const V = n.getBoundingClientRect(), ae = e.getBoundingClientRect();
728
+ s.style.left = `${V.left}px`, s.style.top = `${ae.top}px`, s.style.width = `${V.width}px`, u && T && (u.style.top = `${ae.top}px`);
729
+ }, E = (V) => {
730
+ le.current || (V === s ? n.scrollLeft = s.scrollLeft : s.scrollLeft = n.scrollLeft, re.current && re.current());
731
731
  }, N = () => {
732
732
  E(n), _();
733
733
  }, M = () => {
@@ -735,16 +735,16 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
735
735
  }, Y = () => {
736
736
  _();
737
737
  };
738
- return n.addEventListener("scroll", N), y && s.addEventListener("scroll", M), e.addEventListener("scroll", Y), window.addEventListener("resize", _), E(n), _(), () => {
739
- n.removeEventListener("scroll", N), y && s.removeEventListener("scroll", M), e.removeEventListener("scroll", Y), window.removeEventListener("resize", _);
738
+ return n.addEventListener("scroll", N), b && s.addEventListener("scroll", M), e.addEventListener("scroll", Y), window.addEventListener("resize", _), E(n), _(), () => {
739
+ n.removeEventListener("scroll", N), b && s.removeEventListener("scroll", M), e.removeEventListener("scroll", Y), window.removeEventListener("resize", _);
740
740
  };
741
- }, [V, x, y, T]), B(() => {
742
- if (!z.current || !y)
741
+ }, [I, x, b, T]), B(() => {
742
+ if (!z.current || !b)
743
743
  return;
744
744
  const e = z.current, n = x == null ? void 0 : x.current;
745
- ve(e.scrollLeft), be((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), we(e.scrollWidth);
745
+ me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth);
746
746
  const s = () => {
747
- e && (ve(e.scrollLeft), be((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), we(e.scrollWidth));
747
+ e && (me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth));
748
748
  };
749
749
  let u = null;
750
750
  const _ = () => {
@@ -760,7 +760,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
760
760
  passive: !0
761
761
  });
762
762
  const M = () => {
763
- s(), Je((I) => I + 1);
763
+ s(), Je((V) => V + 1);
764
764
  };
765
765
  window.addEventListener("resize", M), re.current = s, s();
766
766
  const Y = new ResizeObserver(() => {
@@ -769,14 +769,14 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
769
769
  return e && Y.observe(e), () => {
770
770
  e.removeEventListener("scroll", E), n && n.removeEventListener("scroll", N), window.removeEventListener("resize", M), Y.disconnect(), u !== null && (cancelAnimationFrame(u), u = null);
771
771
  };
772
- }, [y, x, V, H]), B(() => {
773
- if (!z.current || !y)
772
+ }, [b, x, I, H]), B(() => {
773
+ if (!z.current || !b)
774
774
  return;
775
775
  const e = z.current, n = x == null ? void 0 : x.current;
776
776
  requestAnimationFrame(() => {
777
- e && (ve(e.scrollLeft), be((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), we(e.scrollWidth), re.current && re.current());
777
+ e && (me(e.scrollLeft), ge((n == null ? void 0 : n.scrollTop) || e.scrollTop || 0), ve(e.scrollWidth), re.current && re.current());
778
778
  });
779
- }, [oe, y, x]), B(() => {
779
+ }, [oe, b, x]), B(() => {
780
780
  if (!z.current)
781
781
  return;
782
782
  const e = z.current, n = () => {
@@ -785,16 +785,16 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
785
785
  requestAnimationFrame(() => {
786
786
  n();
787
787
  });
788
- }, [m, t, ie]), B(() => {
788
+ }, [y, t, ie]), B(() => {
789
789
  if (!z.current)
790
790
  return;
791
- const e = z.current, n = new Set(H), s = ye.current, u = /* @__PURE__ */ new Set();
791
+ const e = z.current, n = new Set(H), s = be.current, u = /* @__PURE__ */ new Set();
792
792
  if (H.forEach((E) => {
793
793
  s.has(E) || u.add(E);
794
794
  }), s.forEach((E) => {
795
795
  n.has(E) || u.add(E);
796
796
  }), u.size === 0) {
797
- ye.current = n;
797
+ be.current = n;
798
798
  return;
799
799
  }
800
800
  const _ = setTimeout(() => {
@@ -805,8 +805,8 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
805
805
  N && ie(N);
806
806
  }), Je((E) => E + 1);
807
807
  }, 0);
808
- return ye.current = n, () => clearTimeout(_);
809
- }, [m, H, ie]), B(() => {
808
+ return be.current = n, () => clearTimeout(_);
809
+ }, [y, H, ie]), B(() => {
810
810
  if (!ne.current || !z.current || !T)
811
811
  return;
812
812
  const e = ne.current, n = z.current, s = () => {
@@ -831,39 +831,39 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
831
831
  return u.observe(e), () => u.disconnect();
832
832
  }, []);
833
833
  const tt = (e) => {
834
- const n = Ee(e.id), s = _e == null ? void 0 : _e(e.id), u = /* @__PURE__ */ d(
834
+ const n = Ee(e.id), s = _e == null ? void 0 : _e(e.id), u = /* @__PURE__ */ a(
835
835
  $e,
836
836
  {
837
- value: w.includes(e.id),
837
+ value: v.includes(e.id),
838
838
  disabled: n,
839
839
  onChange: () => Ut(e.id),
840
- className: g("checkbox-cell")
840
+ className: w("checkbox-cell")
841
841
  }
842
842
  );
843
- return s ? /* @__PURE__ */ d(
843
+ return s ? /* @__PURE__ */ a(
844
844
  Ae,
845
845
  {
846
846
  content: s,
847
847
  placement: "top",
848
- wrapperClassName: g("checkbox-tooltip-wrapper"),
848
+ wrapperClassName: w("checkbox-tooltip-wrapper"),
849
849
  portalRoot: se ?? void 0,
850
850
  children: u
851
851
  }
852
852
  ) : u;
853
- }, nt = g("checkbox-cell", "select-all-checkbox", {
853
+ }, nt = w("checkbox-cell", "select-all-checkbox", {
854
854
  "select-all-checkbox-selected": Le
855
- }), Jt = () => /* @__PURE__ */ j("div", { className: g("checkbox-column", o), ref: ne, children: [
856
- /* @__PURE__ */ d(
855
+ }), Jt = () => /* @__PURE__ */ j("div", { className: w("checkbox-column", o), ref: ne, children: [
856
+ /* @__PURE__ */ a(
857
857
  "div",
858
858
  {
859
- ref: ge,
860
- className: g(
859
+ ref: we,
860
+ className: w(
861
861
  "table-header",
862
862
  "checkbox-header",
863
- { "pinned-header": V },
864
- b
863
+ { "pinned-header": I },
864
+ g
865
865
  ),
866
- children: Ke && /* @__PURE__ */ d(
866
+ children: Ke && /* @__PURE__ */ a(
867
867
  $e,
868
868
  {
869
869
  value: De,
@@ -874,11 +874,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
874
874
  )
875
875
  }
876
876
  ),
877
- /* @__PURE__ */ d("div", { className: g("checkbox-body", a), children: t.map((e, n) => /* @__PURE__ */ d(
877
+ /* @__PURE__ */ a("div", { className: w("checkbox-body", d), children: t.map((e, n) => /* @__PURE__ */ a(
878
878
  "div",
879
879
  {
880
880
  ref: Pt(e.id),
881
- className: g("checkbox-row", "table-row", lt(e), p),
881
+ className: w("checkbox-row", "table-row", lt(e), p),
882
882
  onMouseEnter: () => Fe(n),
883
883
  onMouseLeave: qe,
884
884
  children: (Ne || Ge === n) && tt(e)
@@ -889,11 +889,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
889
889
  "div",
890
890
  {
891
891
  ref: z,
892
- className: g(
892
+ className: w(
893
893
  "table",
894
894
  {
895
895
  "fixed-header": k,
896
- "horizontally-scrollable-container": k && (y || P),
896
+ "horizontally-scrollable-container": k && (b || P),
897
897
  "external-scroll-container": k && !!x
898
898
  },
899
899
  h
@@ -903,23 +903,24 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
903
903
  "div",
904
904
  {
905
905
  ref: X,
906
- className: g(
906
+ className: w(
907
907
  "table-header",
908
908
  {
909
- "sticky-header": k && !V,
910
- "horizontally-scrollable": y,
909
+ "sticky-header": k && !I,
910
+ "pinned-header": I,
911
+ "horizontally-scrollable": b,
911
912
  resizable: P
912
913
  },
913
- b
914
+ g
914
915
  ),
915
916
  style: { gridTemplateColumns: Vt },
916
917
  children: [
917
- f && !T && /* @__PURE__ */ d(
918
+ f && !T && /* @__PURE__ */ a(
918
919
  "div",
919
920
  {
920
- className: g("table-header-cell", "checkbox-cell"),
921
- "data-base-left": m ? Q : 0,
922
- children: Ke && /* @__PURE__ */ d(
921
+ className: w("table-header-cell", "checkbox-cell"),
922
+ "data-base-left": y ? Q : 0,
923
+ children: Ke && /* @__PURE__ */ a(
923
924
  $e,
924
925
  {
925
926
  value: De,
@@ -930,36 +931,36 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
930
931
  )
931
932
  }
932
933
  ),
933
- m && /* @__PURE__ */ d(
934
+ y && /* @__PURE__ */ a(
934
935
  "div",
935
936
  {
936
- className: g(
937
+ className: w(
937
938
  "table-header-cell",
938
939
  "expand-cell",
939
940
  "left-border-accent",
940
941
  l
941
942
  ),
942
943
  "data-base-left": "0",
943
- children: F && Oe && (Pe ? /* @__PURE__ */ d(
944
+ children: F && Oe && (Pe ? /* @__PURE__ */ a(
944
945
  Ae,
945
946
  {
946
947
  content: Pe,
947
948
  placement: "top",
948
- wrapperClassName: g("expand-all-tooltip-wrapper"),
949
- contentClassName: g("expand-all-tooltip-content"),
949
+ wrapperClassName: w("expand-all-tooltip-wrapper"),
950
+ contentClassName: w("expand-all-tooltip-content"),
950
951
  children: et
951
952
  }
952
953
  ) : et)
953
954
  }
954
955
  ),
955
956
  q.map((e, n) => {
956
- const s = /* @__PURE__ */ d(
957
+ const s = /* @__PURE__ */ a(
957
958
  "button",
958
959
  {
959
960
  "data-column-key": e.key,
960
961
  "data-pinned-index": n,
961
962
  "aria-disabled": !!(S != null && S[e.key]),
962
- className: g("table-header-cell", "pinned-column", {
963
+ className: w("table-header-cell", "pinned-column", {
963
964
  [`align-${e.align}`]: "align" in e,
964
965
  "primary-cell": J(e),
965
966
  "sortable-cell": ce.includes(e.key),
@@ -971,7 +972,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
971
972
  n,
972
973
  q,
973
974
  te,
974
- m,
975
+ y,
975
976
  f,
976
977
  T
977
978
  ),
@@ -982,11 +983,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
982
983
  return P ? Re(e, s) : s;
983
984
  }),
984
985
  C.map((e) => {
985
- const n = /* @__PURE__ */ d(
986
+ const n = /* @__PURE__ */ a(
986
987
  "button",
987
988
  {
988
989
  "aria-disabled": !!(S != null && S[e.key]),
989
- className: g("table-header-cell", {
990
+ className: w("table-header-cell", {
990
991
  [`align-${e.align}`]: "align" in e,
991
992
  "primary-cell": J(e),
992
993
  "sortable-cell": ce.includes(e.key),
@@ -998,7 +999,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
998
999
  void 0,
999
1000
  q,
1000
1001
  te,
1001
- m,
1002
+ y,
1002
1003
  f,
1003
1004
  T
1004
1005
  ),
@@ -1008,25 +1009,25 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1008
1009
  );
1009
1010
  return P ? Re(e, n) : n;
1010
1011
  }),
1011
- i && /* @__PURE__ */ d("div", { className: g("table-header-cell", "action-menu-cell") })
1012
+ i && /* @__PURE__ */ a("div", { className: w("table-header-cell", "action-menu-cell") })
1012
1013
  ]
1013
1014
  }
1014
1015
  ),
1015
- /* @__PURE__ */ d(
1016
+ /* @__PURE__ */ a(
1016
1017
  "div",
1017
1018
  {
1018
1019
  ref: Bt,
1019
- className: g(
1020
+ className: w(
1020
1021
  "table-body",
1021
1022
  {
1022
1023
  "scrollable-body": k,
1023
- "horizontally-scrollable": y,
1024
+ "horizontally-scrollable": b,
1024
1025
  resizable: P
1025
1026
  },
1026
- a
1027
+ d
1027
1028
  ),
1028
1029
  children: t.map((e, n) => {
1029
- const s = m && Z(e), u = s && H.includes(e.id);
1030
+ const s = y && Z(e), u = s && H.includes(e.id);
1030
1031
  return /* @__PURE__ */ j(Ot, { children: [
1031
1032
  /* @__PURE__ */ j(
1032
1033
  "div",
@@ -1034,25 +1035,25 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1034
1035
  "data-row-index": n,
1035
1036
  "data-row-id": e.id,
1036
1037
  ref: St(e.id),
1037
- className: g("table-row", lt(e), p, {
1038
+ className: w("table-row", lt(e), p, {
1038
1039
  selectable: f && !T
1039
1040
  }),
1040
1041
  onMouseEnter: () => Fe(n),
1041
1042
  onMouseLeave: qe,
1042
1043
  children: [
1043
- f && !T && /* @__PURE__ */ d(
1044
+ f && !T && /* @__PURE__ */ a(
1044
1045
  "div",
1045
1046
  {
1046
- className: g("table-cell", "checkbox-cell"),
1047
- "data-base-left": m ? Q : 0,
1047
+ className: w("table-cell", "checkbox-cell"),
1048
+ "data-base-left": y ? Q : 0,
1048
1049
  children: (Ne || Ge === n) && tt(e)
1049
1050
  }
1050
1051
  ),
1051
- /* @__PURE__ */ d("div", { className: g("row-content-wrapper"), children: /* @__PURE__ */ j("div", { className: g("table-row-content"), style: { gridTemplateColumns: ze }, children: [
1052
- m && /* @__PURE__ */ d(
1052
+ /* @__PURE__ */ a("div", { className: w("row-content-wrapper"), children: /* @__PURE__ */ j("div", { className: w("table-row-content"), style: { gridTemplateColumns: ze }, children: [
1053
+ y && /* @__PURE__ */ a(
1053
1054
  "div",
1054
1055
  {
1055
- className: g(
1056
+ className: w(
1056
1057
  "table-cell",
1057
1058
  "expand-cell",
1058
1059
  "left-border-accent",
@@ -1060,26 +1061,26 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1060
1061
  ),
1061
1062
  "data-base-left": "0",
1062
1063
  "data-row-id": e.id,
1063
- children: s && /* @__PURE__ */ d(
1064
+ children: s && /* @__PURE__ */ a(
1064
1065
  "button",
1065
1066
  {
1066
1067
  onClick: () => $t(e.id),
1067
1068
  "aria-label": u ? "Collapse row" : "Expand row",
1068
1069
  "aria-expanded": u,
1069
- children: /* @__PURE__ */ d("span", { className: g("expand-icon", { expanded: u }), children: /* @__PURE__ */ d(it, {}) })
1070
+ children: /* @__PURE__ */ a("span", { className: w("expand-icon", { expanded: u }), children: /* @__PURE__ */ a(it, {}) })
1070
1071
  }
1071
1072
  )
1072
1073
  }
1073
1074
  ),
1074
1075
  q.map((_, E) => {
1075
1076
  const N = !Te && je(e.id, _.key), M = J(_);
1076
- return /* @__PURE__ */ d(
1077
+ return /* @__PURE__ */ a(
1077
1078
  "div",
1078
1079
  {
1079
1080
  "data-column-key": _.key,
1080
1081
  "data-pinned-index": E,
1081
1082
  ref: M ? Ue(_.key) : void 0,
1082
- className: g("table-cell", "pinned-column", {
1083
+ className: w("table-cell", "pinned-column", {
1083
1084
  "primary-cell": M,
1084
1085
  "expanded-cell": N
1085
1086
  }),
@@ -1089,7 +1090,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1089
1090
  E,
1090
1091
  q,
1091
1092
  te,
1092
- m,
1093
+ y,
1093
1094
  f,
1094
1095
  T
1095
1096
  ),
@@ -1100,11 +1101,11 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1100
1101
  }),
1101
1102
  C.map((_) => {
1102
1103
  const E = !Te && je(e.id, _.key), N = J(_);
1103
- return /* @__PURE__ */ d(
1104
+ return /* @__PURE__ */ a(
1104
1105
  "div",
1105
1106
  {
1106
1107
  ref: N ? Ue(_.key) : void 0,
1107
- className: g("table-cell", {
1108
+ className: w("table-cell", {
1108
1109
  "primary-cell": N,
1109
1110
  "expanded-cell": E
1110
1111
  }),
@@ -1114,7 +1115,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1114
1115
  void 0,
1115
1116
  q,
1116
1117
  te,
1117
- m,
1118
+ y,
1118
1119
  f,
1119
1120
  T
1120
1121
  ),
@@ -1123,41 +1124,41 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1123
1124
  _.key
1124
1125
  );
1125
1126
  }),
1126
- i && /* @__PURE__ */ d("div", { className: g("table-cell", "action-menu-cell"), children: i(e.metaData) })
1127
+ i && /* @__PURE__ */ a("div", { className: w("table-cell", "action-menu-cell"), children: i(e.metaData) })
1127
1128
  ] }) })
1128
1129
  ]
1129
1130
  }
1130
1131
  ),
1131
- u && Te && O && /* @__PURE__ */ d(
1132
+ u && Te && O && /* @__PURE__ */ a(
1132
1133
  "div",
1133
1134
  {
1134
- className: g("expanded-content-row", {
1135
+ className: w("expanded-content-row", {
1135
1136
  "with-checkbox-track": Ce
1136
1137
  }),
1137
1138
  "data-expanded-row-for": e.id,
1138
1139
  style: { gridTemplateColumns: Yt },
1139
- children: /* @__PURE__ */ d("div", { className: g("expanded-content-cell"), children: O(e) })
1140
+ children: /* @__PURE__ */ a("div", { className: w("expanded-content-cell"), children: O(e) })
1140
1141
  }
1141
1142
  )
1142
1143
  ] }, e.id);
1143
1144
  })
1144
1145
  }
1145
1146
  ),
1146
- y && /* @__PURE__ */ j(Qt, { children: [
1147
- /* @__PURE__ */ d(
1148
- at,
1147
+ b && /* @__PURE__ */ j(Qt, { children: [
1148
+ /* @__PURE__ */ a(
1149
+ dt,
1149
1150
  {
1150
1151
  portalContainer: se,
1151
- visible: me.visible,
1152
- position: me.position,
1153
- size: me.size,
1152
+ visible: ye.visible,
1153
+ position: ye.position,
1154
+ size: ye.size,
1154
1155
  direction: "right",
1155
1156
  className: xt,
1156
1157
  dataTestId: "right-gradient"
1157
1158
  }
1158
1159
  ),
1159
- /* @__PURE__ */ d(
1160
- at,
1160
+ /* @__PURE__ */ a(
1161
+ dt,
1161
1162
  {
1162
1163
  portalContainer: se,
1163
1164
  visible: ke.visible,
@@ -1172,7 +1173,7 @@ const ft = (t) => typeof t == "string", rn = "_table_1d64d_1", sn = "_resizable_
1172
1173
  ]
1173
1174
  }
1174
1175
  );
1175
- return T ? /* @__PURE__ */ j("div", { className: g("table-wrapper", { "fixed-header": k }, v), children: [
1176
+ return T ? /* @__PURE__ */ j("div", { className: w("table-wrapper", { "fixed-header": k }, m), children: [
1176
1177
  Jt(),
1177
1178
  rt()
1178
1179
  ] }) : rt();