@splunk/react-ui 5.3.0 → 5.4.0

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.
Files changed (60) hide show
  1. package/Accordion.js +31 -31
  2. package/Avatar.js +13 -13
  3. package/Breadcrumbs.js +66 -63
  4. package/ButtonSimple.js +52 -52
  5. package/CHANGELOG.md +16 -0
  6. package/CardLayout.js +39 -36
  7. package/Clickable.js +5 -6
  8. package/Code.js +424 -528
  9. package/CollapsiblePanel.js +1 -1
  10. package/Color.js +903 -1025
  11. package/DefinitionList.js +1 -1
  12. package/FormRows.js +13 -11
  13. package/JSONTree.js +682 -1408
  14. package/Link.js +5 -5
  15. package/Markdown.js +9 -5
  16. package/Menu.js +72 -67
  17. package/Multiselect.js +2692 -2780
  18. package/Popover.js +201 -196
  19. package/Resize.js +11 -8
  20. package/ResultsMenu.js +913 -1030
  21. package/ScreenReaderContent.js +86 -130
  22. package/Scroll.js +366 -425
  23. package/Select.js +1741 -1832
  24. package/Slider.js +1 -1
  25. package/SlidingPanels.js +129 -127
  26. package/StepBar.js +123 -97
  27. package/Switch.js +115 -111
  28. package/TabBar.js +10 -10
  29. package/Table.js +1239 -1240
  30. package/TextArea.js +596 -684
  31. package/Tree.js +638 -682
  32. package/package.json +11 -11
  33. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -5
  34. package/types/src/Breadcrumbs/BreadcrumbsContext.d.ts +7 -0
  35. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  36. package/types/src/ButtonSimple/mixin.d.ts +1 -1
  37. package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
  38. package/types/src/JSONTree/renderTreeItems.d.ts +1 -1
  39. package/types/src/Modal/ModalContext.d.ts +1 -1
  40. package/types/src/Multiselect/Compact.d.ts +2 -2
  41. package/types/src/Multiselect/Normal.d.ts +2 -2
  42. package/types/src/Number/utils.d.ts +1 -1
  43. package/types/src/Popover/getPlacement.d.ts +1 -1
  44. package/types/src/RadioList/Option.d.ts +1 -1
  45. package/types/src/RadioList/RadioListContext.d.ts +1 -1
  46. package/types/src/StepBar/StepBar.d.ts +4 -1
  47. package/types/src/StepBar/StepBarContext.d.ts +1 -0
  48. package/types/src/StepBar/docs/examples/Vertical.d.ts +6 -0
  49. package/types/src/Switch/Switch.d.ts +7 -1
  50. package/types/src/TabBar/Tab.d.ts +3 -1
  51. package/types/src/TabBar/docs/examples/Icons.d.ts +4 -0
  52. package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
  53. package/types/src/TabLayout/Panel.d.ts +2 -0
  54. package/types/src/Table/Head.d.ts +1 -1
  55. package/types/src/Table/Row.d.ts +1 -1
  56. package/types/src/Table/Table.d.ts +1 -0
  57. package/types/src/Tree/TreeContext.d.ts +1 -1
  58. package/useControlled.js +61 -97
  59. package/usePrevious.js +30 -62
  60. package/useResizeObserver.js +95 -127
package/Table.js CHANGED
@@ -61,14 +61,14 @@
61
61
  e.r(n);
62
62
  // EXPORTS
63
63
  e.d(n, {
64
- Body: () => /* reexport */ Q,
65
- Caption: () => /* reexport */ fe,
66
- Cell: () => /* reexport */ Se,
67
- Head: () => /* reexport */ nr,
68
- HeadCell: () => /* reexport */ Mn,
69
- HeadDropdownCell: () => /* reexport */ Sr,
70
- Row: () => /* reexport */ Wt,
71
- default: () => /* reexport */ Zo
64
+ Body: () => /* reexport */ J,
65
+ Caption: () => /* reexport */ de,
66
+ Cell: () => /* reexport */ xe,
67
+ Head: () => /* reexport */ er,
68
+ HeadCell: () => /* reexport */ zn,
69
+ HeadDropdownCell: () => /* reexport */ xr,
70
+ Row: () => /* reexport */ Lt,
71
+ default: () => /* reexport */ Qo
72
72
  });
73
73
  // CONCATENATED MODULE: external "react"
74
74
  const t = require("react");
@@ -84,57 +84,56 @@
84
84
  var u = e.n(l);
85
85
  // CONCATENATED MODULE: external "lodash/has"
86
86
  const s = require("lodash/has");
87
- var c = e.n(s);
88
87
  // CONCATENATED MODULE: external "lodash/indexOf"
89
- const d = require("lodash/indexOf");
90
- var f = e.n(d);
88
+ const c = require("lodash/indexOf");
89
+ var d = e.n(c);
91
90
  // CONCATENATED MODULE: external "lodash/isEqual"
92
- const v = require("lodash/isEqual");
93
- var p = e.n(v);
91
+ const f = require("lodash/isEqual");
92
+ var v = e.n(f);
94
93
  // CONCATENATED MODULE: external "lodash/isNumber"
95
- const m = require("lodash/isNumber");
94
+ const p = require("lodash/isNumber");
96
95
  // CONCATENATED MODULE: external "lodash/omit"
97
- const b = require("lodash/omit");
98
- var h = e.n(b);
96
+ const m = require("lodash/omit");
97
+ var b = e.n(m);
99
98
  // CONCATENATED MODULE: external "lodash/throttle"
100
- const y = require("lodash/throttle");
101
- var g = e.n(y);
99
+ const h = require("lodash/throttle");
100
+ var y = e.n(h);
102
101
  // CONCATENATED MODULE: external "prop-types"
103
- const w = require("prop-types");
104
- var C = e.n(w);
102
+ const g = require("prop-types");
103
+ var w = e.n(g);
105
104
  // CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
106
- const x = require("@splunk/react-ui/EventListener");
107
- var S = e.n(x);
105
+ const C = require("@splunk/react-ui/EventListener");
106
+ var x = e.n(C);
108
107
  // CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
109
- const O = require("@splunk/react-ui/ScrollContainerContext");
108
+ const S = require("@splunk/react-ui/ScrollContainerContext");
110
109
  // CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
111
- const k = require("@splunk/react-ui/usePrevious");
112
- var R = e.n(k);
110
+ const O = require("@splunk/react-ui/usePrevious");
111
+ var k = e.n(O);
113
112
  // CONCATENATED MODULE: external "@splunk/react-ui/useResizeObserver"
114
- const E = require("@splunk/react-ui/useResizeObserver");
115
- var I = e.n(E);
113
+ const R = require("@splunk/react-ui/useResizeObserver");
114
+ var E = e.n(R);
116
115
  // CONCATENATED MODULE: external "@splunk/ui-utils/format"
117
- const T = require("@splunk/ui-utils/format");
116
+ const I = require("@splunk/ui-utils/format");
118
117
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
119
- const j = require("@splunk/ui-utils/i18n");
118
+ const T = require("@splunk/ui-utils/i18n");
120
119
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
121
- const D = require("@splunk/ui-utils/id");
120
+ const j = require("@splunk/ui-utils/id");
122
121
  // CONCATENATED MODULE: external "lodash/includes"
123
- const q = require("lodash/includes");
124
- var A = e.n(q);
122
+ const D = require("lodash/includes");
123
+ var q = e.n(D);
125
124
  // CONCATENATED MODULE: external "lodash/without"
126
- const P = require("lodash/without");
127
- var _ = e.n(P);
125
+ const A = require("lodash/without");
126
+ var P = e.n(A);
128
127
  // CONCATENATED MODULE: external "styled-components"
129
- const z = require("styled-components");
130
- var M = e.n(z);
128
+ const _ = require("styled-components");
129
+ var z = e.n(_);
131
130
  // CONCATENATED MODULE: external "@splunk/themes"
132
- const $ = require("@splunk/themes");
131
+ const M = require("@splunk/themes");
133
132
  // CONCATENATED MODULE: ./src/Table/BodyStyles.ts
134
- var N = M().tbody.withConfig({
133
+ var $ = z().tbody.withConfig({
135
134
  displayName: "BodyStyles__Styled",
136
135
  componentId: "sc-1k5p6pq-0"
137
- })([ "", " z-index:0;" ], $.mixins.reset("table-row-group"));
136
+ })([ "", " z-index:0;" ], M.mixins.reset("table-row-group"));
138
137
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
139
138
  /**
140
139
  * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
@@ -142,7 +141,7 @@
142
141
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
143
142
  * @param current - The new value of the ref.
144
143
  */
145
- function L(e, n) {
144
+ function N(e, n) {
146
145
  if (e) {
147
146
  if (typeof e === "function") {
148
147
  e(n);
@@ -155,8 +154,8 @@
155
154
  }
156
155
  }
157
156
  // CONCATENATED MODULE: ./src/Table/Body.tsx
158
- function W() {
159
- return W = Object.assign ? Object.assign.bind() : function(e) {
157
+ function L() {
158
+ return L = Object.assign ? Object.assign.bind() : function(e) {
160
159
  for (var n = 1; n < arguments.length; n++) {
161
160
  var t = arguments[n];
162
161
  for (var r in t) {
@@ -164,29 +163,29 @@
164
163
  }
165
164
  }
166
165
  return e;
167
- }, W.apply(null, arguments);
166
+ }, L.apply(null, arguments);
168
167
  }
169
- function H(e, n) {
170
- return U(e) || F(e, n) || B(e, n) || K();
168
+ function W(e, n) {
169
+ return F(e) || V(e, n) || K(e, n) || H();
171
170
  }
172
- function K() {
171
+ function H() {
173
172
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
174
173
  }
175
- function B(e, n) {
174
+ function K(e, n) {
176
175
  if (e) {
177
- if ("string" == typeof e) return V(e, n);
176
+ if ("string" == typeof e) return B(e, n);
178
177
  var t = {}.toString.call(e).slice(8, -1);
179
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? V(e, n) : void 0;
178
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? B(e, n) : void 0;
180
179
  }
181
180
  }
182
- function V(e, n) {
181
+ function B(e, n) {
183
182
  (null == n || n > e.length) && (n = e.length);
184
183
  for (var t = 0, r = Array(n); t < n; t++) {
185
184
  r[t] = e[t];
186
185
  }
187
186
  return r;
188
187
  }
189
- function F(e, n) {
188
+ function V(e, n) {
190
189
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
191
190
  if (null != t) {
192
191
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -208,12 +207,12 @@
208
207
  return l;
209
208
  }
210
209
  }
211
- function U(e) {
210
+ function F(e) {
212
211
  if (Array.isArray(e)) return e;
213
212
  }
214
- function X(e, n) {
213
+ function U(e, n) {
215
214
  if (null == e) return {};
216
- var t, r, o = Y(e, n);
215
+ var t, r, o = X(e, n);
217
216
  if (Object.getOwnPropertySymbols) {
218
217
  var i = Object.getOwnPropertySymbols(e);
219
218
  for (r = 0; r < i.length; r++) {
@@ -222,7 +221,7 @@
222
221
  }
223
222
  return o;
224
223
  }
225
- function Y(e, n) {
224
+ function X(e, n) {
226
225
  if (null == e) return {};
227
226
  var t = {};
228
227
  for (var r in e) {
@@ -233,43 +232,43 @@
233
232
  }
234
233
  return t;
235
234
  }
236
- var G = {
235
+ var Y = {
237
236
  /** @private. Generally passed by Table rather than added directly. */
238
- actions: C().bool,
239
- children: C().node,
240
- elementRef: C().oneOfType([ C().func, C().object ]),
237
+ actions: w().bool,
238
+ children: w().node,
239
+ elementRef: w().oneOfType([ w().func, w().object ]),
241
240
  /** @private. Generally passed by Table rather than added directly. */
242
- movableColumns: C().bool,
241
+ movableColumns: w().bool,
243
242
  /** @private. Generally passed by Table rather than added directly. */
244
- rowExpansion: C().oneOf([ "single", "multi", "none", "controlled" ]),
243
+ rowExpansion: w().oneOf([ "single", "multi", "none", "controlled" ]),
245
244
  /** @private. Generally passed by Table rather than added directly. */
246
- onRequestMoveRow: C().func,
245
+ onRequestMoveRow: w().func,
247
246
  /** @private. Generally passed by Table rather than added directly. */
248
- primaryColumnIndex: C().number,
247
+ primaryColumnIndex: w().number,
249
248
  /** @private. Generally passed by Table rather than added directly. */
250
- stripeRows: C().bool
249
+ stripeRows: w().bool
251
250
  };
252
- function J(e) {
253
- var n = e.actions, o = e.children, i = e.elementRef, a = e.movableColumns, l = e.onRequestMoveRow, u = e.rowExpansion, s = u === void 0 ? "none" : u, c = e.primaryColumnIndex, d = e.stripeRows, f = X(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
251
+ function G(e) {
252
+ var n = e.actions, o = e.children, i = e.elementRef, a = e.movableColumns, l = e.onRequestMoveRow, u = e.rowExpansion, s = u === void 0 ? "none" : u, c = e.primaryColumnIndex, d = e.stripeRows, f = U(e, [ "actions", "children", "elementRef", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows" ]);
254
253
  // @docs-props-type BodyPropsBase
255
254
  var v = [];
256
- var p = (0, t.useState)([]), m = H(p, 2), b = m[0], h = m[1];
255
+ var p = (0, t.useState)([]), m = W(p, 2), b = m[0], h = m[1];
257
256
  var y = (0, t.useRef)(null);
258
257
  var g = (0, t.useCallback)((function(e) {
259
258
  y.current = e;
260
- L(i, e);
259
+ N(i, e);
261
260
  }), [ i, y ]);
262
261
  var w = function e(n, t, r) {
263
262
  var o = b;
264
263
  if (s === "single") {
265
- if (A()(o, t)) {
264
+ if (q()(o, t)) {
266
265
  h([]);
267
266
  } else {
268
267
  h([ t ]);
269
268
  }
270
269
  } else if (s === "multi") {
271
- if (A()(o, t)) {
272
- h(_()(o, t));
270
+ if (q()(o, t)) {
271
+ h(P()(o, t));
273
272
  } else {
274
273
  h(o === null || o === void 0 ? void 0 : o.concat(t));
275
274
  }
@@ -277,7 +276,7 @@
277
276
  r === null || r === void 0 ? void 0 : r(n);
278
277
  };
279
278
  var C = t.Children.toArray(o).filter(t.isValidElement);
280
- var x = (0, t.useState)(new Map), S = H(x, 2), O = S[0], k = S[1];
279
+ var x = (0, t.useState)(new Map), S = W(x, 2), O = S[0], k = S[1];
281
280
  r().useEffect((function() {
282
281
  k((function(e) {
283
282
  var n = new Map(e);
@@ -292,7 +291,7 @@
292
291
  n.set(a, Array.from({
293
292
  length: l
294
293
  }, (function() {
295
- return (0, D.createDOMID)();
294
+ return (0, j.createDOMID)();
296
295
  })));
297
296
  r = true;
298
297
  }
@@ -307,7 +306,7 @@
307
306
  var u = (o = e.key) !== null && o !== void 0 ? o : r;
308
307
  var f = r % 2 ? "even" : "odd";
309
308
  var p = d ? f : "none";
310
- var m = s === "controlled" ? e.props.expanded : A()(b, u);
309
+ var m = s === "controlled" ? e.props.expanded : q()(b, u);
311
310
  var h = function n(t) {
312
311
  w(t, u, e.props.onExpansion);
313
312
  };
@@ -343,60 +342,60 @@
343
342
  return null;
344
343
  }
345
344
 
346
- return r().createElement(N, W({
345
+ return r().createElement($, L({
347
346
  "data-test": "body"
348
347
  }, f, {
349
348
  ref: g
350
349
  }), v);
351
350
  }
352
- J.propTypes = G;
353
- J.splunkUiType = "Table.Body";
354
- /* harmony default export */ const Q = J;
351
+ G.propTypes = Y;
352
+ G.splunkUiType = "Table.Body";
353
+ /* harmony default export */ const J = G;
355
354
  // CONCATENATED MODULE: ./src/Table/TableStyles.ts
356
- var Z = M().div.withConfig({
355
+ var Q = z().div.withConfig({
357
356
  displayName: "TableStyles__Styled",
358
357
  componentId: "sc-1cmfss7-0"
359
- })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], $.mixins.reset("block"));
360
- var ee = M().div.withConfig({
358
+ })([ "", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}" ], M.mixins.reset("block"));
359
+ var Z = z().div.withConfig({
361
360
  displayName: "TableStyles__StyledTableContainer",
362
361
  componentId: "sc-1cmfss7-1"
363
362
  })([ "overflow:auto;", " &::before{content:'';width:100%;height:0;top:0;position:absolute;}" ], (function(e) {
364
363
  var n = e.$dragging;
365
- return n && (0, z.css)([ "overflow:hidden;" ]);
364
+ return n && (0, _.css)([ "overflow:hidden;" ]);
366
365
  }));
367
- var ne = M().table.withConfig({
366
+ var ee = z().table.withConfig({
368
367
  displayName: "TableStyles__StyledTable",
369
368
  componentId: "sc-1cmfss7-2"
370
- })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], $.mixins.reset("table"), (function(e) {
369
+ })([ "", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;height:1px;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}" ], M.mixins.reset("table"), (function(e) {
371
370
  var n = e.$resizableFillLayout;
372
- return n && (0, z.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
371
+ return n && (0, _.css)([ "width:100%;min-width:100%;table-layout:fixed;" ]);
373
372
  }));
374
- var te = M().div.withConfig({
373
+ var ne = z().div.withConfig({
375
374
  displayName: "TableStyles__StyledDockedScrollbar",
376
375
  componentId: "sc-1cmfss7-3"
377
- })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], $.variables.zindexFixedNavbar);
378
- var re = M().div.withConfig({
376
+ })([ "position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);" ], M.variables.zindexFixedNavbar);
377
+ var te = z().div.withConfig({
379
378
  displayName: "TableStyles__StyledDockedScrollbarContent",
380
379
  componentId: "sc-1cmfss7-4"
381
380
  })([ "height:1px;" ]);
382
- var oe = M().caption.withConfig({
381
+ var re = z().caption.withConfig({
383
382
  displayName: "TableStyles__StyledTableCaption",
384
383
  componentId: "sc-1cmfss7-5"
385
- })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], $.variables.spacingXSmall, $.variables.fontSizeLarge, (function(e) {
384
+ })([ "padding:", " 0;font-size:", ";caption-side:", ";" ], M.variables.spacingXSmall, M.variables.fontSizeLarge, (function(e) {
386
385
  var n = e.side;
387
386
  return n;
388
387
  }));
389
- var ie = M().table.withConfig({
388
+ var oe = z().table.withConfig({
390
389
  displayName: "TableStyles__StyledDragShadowTable",
391
390
  componentId: "sc-1cmfss7-6"
392
- })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], $.variables.interactiveColorOverlayDrag, (function(e) {
391
+ })([ "display:block;background:", ";border-collapse:collapse;height:", ";width:", ";" ], M.variables.interactiveColorOverlayDrag, (function(e) {
393
392
  var n = e.$height;
394
393
  return "".concat(n, "px");
395
394
  }), (function(e) {
396
395
  var n = e.$width;
397
396
  return "".concat(n, "px");
398
397
  }));
399
- var ae = M().div.withConfig({
398
+ var ie = z().div.withConfig({
400
399
  displayName: "TableStyles__StyledGuideLine",
401
400
  componentId: "sc-1cmfss7-7"
402
401
  })([ "position:absolute;width:1px;left:", ";top:0;height:", ";pointer-events:none;background-color:", ";" ], (function(e) {
@@ -405,10 +404,10 @@
405
404
  }), (function(e) {
406
405
  var n = e.$height;
407
406
  return "".concat(n, "px");
408
- }), $.variables.interactiveColorAccent);
407
+ }), M.variables.interactiveColorAccent);
409
408
  // CONCATENATED MODULE: ./src/Table/Caption.tsx
410
- function le() {
411
- return le = Object.assign ? Object.assign.bind() : function(e) {
409
+ function ae() {
410
+ return ae = Object.assign ? Object.assign.bind() : function(e) {
412
411
  for (var n = 1; n < arguments.length; n++) {
413
412
  var t = arguments[n];
414
413
  for (var r in t) {
@@ -416,11 +415,11 @@
416
415
  }
417
416
  }
418
417
  return e;
419
- }, le.apply(null, arguments);
418
+ }, ae.apply(null, arguments);
420
419
  }
421
- function ue(e, n) {
420
+ function le(e, n) {
422
421
  if (null == e) return {};
423
- var t, r, o = se(e, n);
422
+ var t, r, o = ue(e, n);
424
423
  if (Object.getOwnPropertySymbols) {
425
424
  var i = Object.getOwnPropertySymbols(e);
426
425
  for (r = 0; r < i.length; r++) {
@@ -429,7 +428,7 @@
429
428
  }
430
429
  return o;
431
430
  }
432
- function se(e, n) {
431
+ function ue(e, n) {
433
432
  if (null == e) return {};
434
433
  var t = {};
435
434
  for (var r in e) {
@@ -440,73 +439,73 @@
440
439
  }
441
440
  return t;
442
441
  }
443
- var ce = {
444
- children: C().node.isRequired,
445
- side: C().oneOf([ "top", "bottom" ])
442
+ var se = {
443
+ children: w().node.isRequired,
444
+ side: w().oneOf([ "top", "bottom" ])
446
445
  };
447
446
  /**
448
447
  * Tables that use a docked header must place the caption on the bottom side.
449
448
  * Tables that use a fixed header cannot use captions.
450
- */ function de(e) {
451
- var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = ue(e, [ "children", "side" ]);
449
+ */ function ce(e) {
450
+ var n = e.children, t = e.side, o = t === void 0 ? "top" : t, i = le(e, [ "children", "side" ]);
452
451
  // @docs-props-type CaptionPropsBase
453
452
 
454
- return r().createElement(oe, le({
453
+ return r().createElement(re, ae({
455
454
  "data-test": "caption",
456
455
  side: o
457
456
  }, i), n);
458
457
  }
459
- de.propTypes = ce;
460
- de.splunkUiType = "Table.Caption";
461
- /* harmony default export */ const fe = de;
458
+ ce.propTypes = se;
459
+ ce.splunkUiType = "Table.Caption";
460
+ /* harmony default export */ const de = ce;
462
461
  // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
463
- const ve = require("@splunk/react-ui/ButtonSimple");
462
+ const fe = require("@splunk/react-ui/ButtonSimple");
464
463
  // CONCATENATED MODULE: ./src/Table/CellStyles.ts
465
- var pe = "2px";
466
- var me = (0, z.css)([ "box-shadow:", ";" ], $.variables.focusShadowInset);
467
- var be = M().td.withConfig({
464
+ var ve = "2px";
465
+ var pe = (0, _.css)([ "box-shadow:", ";" ], M.variables.focusShadowInset);
466
+ var me = z().td.withConfig({
468
467
  displayName: "CellStyles__Styled",
469
468
  componentId: "sc-1955xk2-0"
470
- })([ "", " line-height:", ";padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], $.mixins.reset("table-cell"), $.variables.lineHeightSpacious, pe, $.variables.spacingSmall, $.variables.contentColorDefault, $.variables.focusShadowInset, (0,
471
- $.pick)({
469
+ })([ "", " line-height:", ";padding:", " ", ";border-left:0 solid transparent;border-right:0 solid transparent;color:", ";word-wrap:break-word;vertical-align:top;*:where(button):focus,&& *:is(:has(> input:focus)):not([disabled]){box-shadow:", ";}padding-block:", ";padding-inline:", ";", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}" ], M.mixins.reset("table-cell"), M.variables.lineHeightSpacious, ve, M.variables.spacingSmall, M.variables.contentColorDefault, M.variables.focusShadowInset, (0,
470
+ M.pick)({
472
471
  comfortable: "8px",
473
472
  compact: "6px"
474
- }), $.variables.spacingSmall, (0, $.pickVariant)("$variant", {
475
- expand: (0, z.css)([ "height:100%;padding:0;" ]),
476
- toggle: (0, z.css)([ "height:100%;padding:0;" ])
473
+ }), M.variables.spacingSmall, (0, M.pickVariant)("$variant", {
474
+ expand: (0, _.css)([ "height:100%;padding:0;" ]),
475
+ toggle: (0, _.css)([ "height:100%;padding:0;" ])
477
476
  }), (function(e) {
478
477
  var n = e.$variant, t = e.$isPrimaryCell;
479
- return (0, $.pickVariant)("$appearance", {
480
- data: (0, z.css)([ "", "" ], n === "actions" && (0, z.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], pe, $.variables.spacingSmall, (0,
481
- ve.buttonMixin)("subtle", {
482
- color: $.variables.contentColorDefault
483
- }), $.variables.focusShadowInset)),
484
- rowLink: (0, z.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], $.variables.contentColorActive, t && (0,
485
- z.css)([ "text-decoration:underline;" ])),
486
- link: (0, z.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], $.variables.contentColorLink, $.variables.focusShadowInset)
478
+ return (0, M.pickVariant)("$appearance", {
479
+ data: (0, _.css)([ "", "" ], n === "actions" && (0, _.css)([ "cursor:default;padding-block:", ";padding-inline:", ";*:where(button){", " &:focus{box-shadow:", ";}}" ], ve, M.variables.spacingSmall, (0,
480
+ fe.buttonMixin)("subtle", {
481
+ color: M.variables.contentColorDefault
482
+ }), M.variables.focusShadowInset)),
483
+ rowLink: (0, _.css)([ "color:", ";*:hover > &&{cursor:pointer;", "}" ], M.variables.contentColorActive, t && (0,
484
+ _.css)([ "text-decoration:underline;" ])),
485
+ link: (0, _.css)([ "color:", ";&:hover{cursor:pointer;text-decoration:underline;}&:focus{text-decoration:underline;box-shadow:", ";}" ], M.variables.contentColorLink, M.variables.focusShadowInset)
487
486
  });
488
487
  }), (function(e) {
489
488
  var n = e.$clickable, t = e.$focusWithin, r = e.$stripe;
490
- return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? $.variables.neutral300 : $.variables.neutral100, me, r === "even" ? $.variables.neutral300 : $.variables.neutral100, t && (0,
491
- z.css)([ "&:focus-within{", " background-color:", ";}" ], me, r === "even" ? $.variables.neutral300 : $.variables.neutral100));
489
+ return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{", " background-color:", ";}", "" ], r === "even" ? M.variables.neutral300 : M.variables.neutral100, pe, r === "even" ? M.variables.neutral300 : M.variables.neutral100, t && (0,
490
+ _.css)([ "&:focus-within{", " background-color:", ";}" ], pe, r === "even" ? M.variables.neutral300 : M.variables.neutral100));
492
491
  }));
493
492
  /*
494
493
  * A wrapper ensures that the Table Cell contents align to the top while staying within the height of inputHeight.
495
494
  * This allows text to align properly with expand and select icons when other cell contents are larger.
496
- */ var he = M().div.withConfig({
495
+ */ var be = z().div.withConfig({
497
496
  displayName: "CellStyles__StyledCellContent",
498
497
  componentId: "sc-1955xk2-1"
499
498
  })([ "display:flex;align-items:flex-start;word-break:break-word;", " ", "" ], (0,
500
- $.pickVariant)("$variant", {
501
- expand: (0, z.css)([ "height:100%;" ]),
502
- toggle: (0, z.css)([ "height:100%;" ])
499
+ M.pickVariant)("$variant", {
500
+ expand: (0, _.css)([ "height:100%;" ]),
501
+ toggle: (0, _.css)([ "height:100%;" ])
503
502
  }), (function(e) {
504
503
  var n = e.$variant, t = e.$align;
505
- return n ? (0, z.css)([ "display:block;text-align:", ";" ], t) : (0, z.css)([ "justify-content:", ";text-align:", ";" ], t, t);
504
+ return n ? (0, _.css)([ "display:block;text-align:", ";" ], t) : (0, _.css)([ "justify-content:", ";text-align:", ";" ], t, t);
506
505
  }));
507
506
  // CONCATENATED MODULE: ./src/Table/Cell.tsx
508
- function ye() {
509
- return ye = Object.assign ? Object.assign.bind() : function(e) {
507
+ function he() {
508
+ return he = Object.assign ? Object.assign.bind() : function(e) {
510
509
  for (var n = 1; n < arguments.length; n++) {
511
510
  var t = arguments[n];
512
511
  for (var r in t) {
@@ -514,11 +513,11 @@
514
513
  }
515
514
  }
516
515
  return e;
517
- }, ye.apply(null, arguments);
516
+ }, he.apply(null, arguments);
518
517
  }
519
- function ge(e, n) {
518
+ function ye(e, n) {
520
519
  if (null == e) return {};
521
- var t, r, o = we(e, n);
520
+ var t, r, o = ge(e, n);
522
521
  if (Object.getOwnPropertySymbols) {
523
522
  var i = Object.getOwnPropertySymbols(e);
524
523
  for (r = 0; r < i.length; r++) {
@@ -527,7 +526,7 @@
527
526
  }
528
527
  return o;
529
528
  }
530
- function we(e, n) {
529
+ function ge(e, n) {
531
530
  if (null == e) return {};
532
531
  var t = {};
533
532
  for (var r in e) {
@@ -538,37 +537,37 @@
538
537
  }
539
538
  return t;
540
539
  }
541
- /** @public */ var Ce = {
542
- align: C().oneOf([ "left", "center", "right" ]),
540
+ /** @public */ var we = {
541
+ align: w().oneOf([ "left", "center", "right" ]),
543
542
  /** @private */
544
- appearance: C().oneOf([ "data", "link", "rowLink" ]),
543
+ appearance: w().oneOf([ "data", "link", "rowLink" ]),
545
544
  /** @private Used to set the $clickable appearance without an onClick */
546
- appearClickable: C().bool,
547
- children: C().node,
548
- data: C().any,
549
- elementRef: C().oneOfType([ C().func, C().object ]),
545
+ appearClickable: w().bool,
546
+ children: w().node,
547
+ data: w().any,
548
+ elementRef: w().oneOfType([ w().func, w().object ]),
550
549
  /** @private */
551
- isPrimaryCell: C().bool,
552
- onClick: C().func,
550
+ isPrimaryCell: w().bool,
551
+ onClick: w().func,
553
552
  /** @private */
554
- onKeyDown: C().func,
553
+ onKeyDown: w().func,
555
554
  /** @private */
556
- disabled: C().bool,
555
+ disabled: w().bool,
557
556
  /** @private. */
558
- expand: C().bool,
557
+ expand: w().bool,
559
558
  /** @private. */
560
- stripe: C().oneOf([ "odd", "even", "none" ]),
559
+ stripe: w().oneOf([ "odd", "even", "none" ]),
561
560
  /** @private. */
562
- variant: C().oneOf([ "toggle", "expand", "drag", "actions" ])
561
+ variant: w().oneOf([ "toggle", "expand", "drag", "actions" ])
563
562
  };
564
- function xe(e) {
565
- var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, m = e.variant, b = ge(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
563
+ function Ce(e) {
564
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.appearance, a = e.appearClickable, l = e.children, u = e.data, s = e.disabled, c = e.elementRef, d = e.isPrimaryCell, f = e.onClick, v = e.onKeyDown, p = e.stripe, m = e.variant, b = ye(e, [ "align", "appearance", "appearClickable", "children", "data", "disabled", "elementRef", "isPrimaryCell", "onClick", "onKeyDown", "stripe", "variant" ]);
566
565
  // @docs-props-type CellPropsBase
567
566
  var h = f !== undefined;
568
567
  var y = a || h;
569
568
  var g = y ? "link" : "data";
570
569
  var w = (0, t.useCallback)((function(e) {
571
- L(c, e);
570
+ N(c, e);
572
571
  }), [ c ]);
573
572
  var C = (0, t.useCallback)((function(e) {
574
573
  if (m === "actions") {
@@ -584,7 +583,7 @@
584
583
  v === null || v === void 0 ? void 0 : v(e);
585
584
  }), [ u, f, v ]);
586
585
 
587
- return r().createElement(be, ye({
586
+ return r().createElement(me, he({
588
587
  "data-test": "cell",
589
588
  $appearance: i || g,
590
589
  $clickable: y ? true : undefined,
@@ -597,143 +596,143 @@
597
596
  onKeyDown: x,
598
597
  ref: w,
599
598
  tabIndex: h ? 0 : undefined
600
- }, b), r().createElement(he, {
599
+ }, b), r().createElement(be, {
601
600
  $align: o,
602
601
  $variant: m
603
602
  }, l));
604
603
  }
605
- xe.propTypes = Ce;
606
- xe.splunkUiType = "Table.Cell";
607
- /* harmony default export */ const Se = xe;
604
+ Ce.propTypes = we;
605
+ Ce.splunkUiType = "Table.Cell";
606
+ /* harmony default export */ const xe = Ce;
608
607
  // CONCATENATED MODULE: external "lodash/isString"
609
- const Oe = require("lodash/isString");
610
- var ke = e.n(Oe);
608
+ const Se = require("lodash/isString");
609
+ var Oe = e.n(Se);
611
610
  // CONCATENATED MODULE: external "lodash/merge"
612
- const Re = require("lodash/merge");
613
- var Ee = e.n(Re);
611
+ const ke = require("lodash/merge");
612
+ var Re = e.n(ke);
614
613
  // CONCATENATED MODULE: external "@splunk/react-icons/ParallelDots"
615
- const Ie = require("@splunk/react-icons/ParallelDots");
616
- var Te = e.n(Ie);
614
+ const Ee = require("@splunk/react-icons/ParallelDots");
615
+ var Ie = e.n(Ee);
617
616
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
618
- const je = require("@splunk/react-ui/Tooltip");
619
- var De = e.n(je);
617
+ const Te = require("@splunk/react-ui/Tooltip");
618
+ var je = e.n(Te);
620
619
  // CONCATENATED MODULE: external "@splunk/react-ui/Divider"
621
- const qe = require("@splunk/react-ui/Divider");
622
- var Ae = e.n(qe);
620
+ const De = require("@splunk/react-ui/Divider");
621
+ var qe = e.n(De);
623
622
  // CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
624
- var Pe = 4;
625
- var _e = Pe;
623
+ var Ae = 4;
624
+ var Pe = Ae;
626
625
  // While this could theoretically be different, it helps for cohesivity in look and feel when some columns are truncated and others are not.
627
- var ze = (0, z.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
628
- var Me = M().span.withConfig({
626
+ var _e = (0, _.css)([ "display:inline-flex;align-items:center;grid-row:1;height:1lh;" ]);
627
+ var ze = z().span.withConfig({
629
628
  displayName: "HeadInnerStyles__StyledIcon",
630
629
  componentId: "sc-1sa0wng-0"
631
- })([ "", " grid-column:icon;" ], ze);
632
- var $e = M().span.withConfig({
630
+ })([ "", " grid-column:icon;" ], _e);
631
+ var Me = z().span.withConfig({
633
632
  displayName: "HeadInnerStyles__StyledTooltipIcon",
634
633
  componentId: "sc-1sa0wng-1"
635
- })([ "", " grid-column:tooltip;" ], ze);
636
- var Ne = M().span.withConfig({
634
+ })([ "", " grid-column:tooltip;" ], _e);
635
+ var $e = z().span.withConfig({
637
636
  displayName: "HeadInnerStyles__StyledLabel",
638
637
  componentId: "sc-1sa0wng-2"
639
638
  })([ "grid-column:label;grid-row:1 / -1;position:relative;height:100%;", " ", " ", " ", "" ], (function(e) {
640
639
  var n = e.$variant;
641
- return n === "toggleAll" && (0, z.css)([ "grid-column:1 / -1;" ]);
640
+ return n === "toggleAll" && (0, _.css)([ "grid-column:1 / -1;" ]);
642
641
  }), (function(e) {
643
642
  var n = e.$labelLength;
644
- return n && n > _e && (0, z.css)([ "word-wrap:break-word;word-break:break-word;" ]);
643
+ return n && n > Pe && (0, _.css)([ "word-wrap:break-word;word-break:break-word;" ]);
645
644
  }), (function(e) {
646
645
  var n = e.$truncate, t = e.$labelLength;
647
- return n && t && t > Pe && (0, z.css)([ "", " min-width:4ch;" ], $.mixins.ellipsis());
648
- }), (0, $.pickVariant)("$align", {
649
- right: (0, z.css)([ "& > &{text-align:right;}" ]),
650
- left: (0, z.css)([ "& > &{text-align:left;}" ]),
651
- center: (0, z.css)([ "& > &{text-align:center;}" ])
646
+ return n && t && t > Ae && (0, _.css)([ "", " min-width:4ch;" ], M.mixins.ellipsis());
647
+ }), (0, M.pickVariant)("$align", {
648
+ right: (0, _.css)([ "& > &{text-align:right;}" ]),
649
+ left: (0, _.css)([ "& > &{text-align:left;}" ]),
650
+ center: (0, _.css)([ "& > &{text-align:center;}" ])
652
651
  }));
653
- var Le = (0, z.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], $.variables.focusShadowInset, $.variables.contentColorActive);
654
- var We = M().div.withConfig({
652
+ var Ne = (0, _.css)([ "box-shadow:", ";outline:none;color:", ";text-decoration:underline;" ], M.variables.focusShadowInset, M.variables.contentColorActive);
653
+ var Le = z().div.withConfig({
655
654
  displayName: "HeadInnerStyles__Styled",
656
655
  componentId: "sc-1sa0wng-3"
657
- })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh 1fr;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], $.mixins.reset("grid"), $.mixins.clearfix(), $.mixins.typography("body", {
656
+ })([ "", ";", ";", ";position:relative;", " grid-template-rows:1lh 1fr;align-items:start;flex-grow:1;height:100%;padding-block:", ";padding-inline:", ";justify-content:", ";", " ", " @media print{background-image:none;}", "" ], M.mixins.reset("grid"), M.mixins.clearfix(), M.mixins.typography("body", {
658
657
  weight: "bold"
659
658
  }), (function(e) {
660
659
  var n = e.$hasTooltip, t = e.$hasIcon;
661
- return (0, z.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? $.variables.spacingXSmall : 0);
662
- }), (0, $.pick)({
660
+ return (0, _.css)([ "grid-template-columns:[label] auto ", " ", ";column-gap:", ";" ], n ? "[tooltip] min-content" : "", t ? "[icon] min-content" : "", n || t ? M.variables.spacingXSmall : 0);
661
+ }), (0, M.pick)({
663
662
  comfortable: "8px",
664
663
  compact: "6px"
665
- }), $.variables.spacingSmall, (0, $.pickVariant)("$align", {
664
+ }), M.variables.spacingSmall, (0, M.pickVariant)("$align", {
666
665
  center: "center",
667
666
  left: "flex-start",
668
667
  right: "flex-end"
669
668
  }), (function(e) {
670
669
  var n = e.$variant;
671
- return n && (0, z.css)([ "grid-template-columns:1fr;grid-template-rows:1fr;" ]);
672
- }), (0, $.pickVariant)("$variant", {
673
- toggleAll: (0, z.css)([ "padding:0;" ]),
674
- actions: (0, z.css)([ "padding-block:2px;" ])
670
+ return n && (0, _.css)([ "grid-template-columns:1fr;grid-template-rows:1fr;" ]);
671
+ }), (0, M.pickVariant)("$variant", {
672
+ toggleAll: (0, _.css)([ "padding:0;" ]),
673
+ actions: (0, _.css)([ "padding-block:2px;" ])
675
674
  }), (function(e) {
676
675
  var n = e.$clickable, t = e.$focusWithin;
677
- return n && (0, z.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], Le, t && (0,
678
- z.css)([ "&:focus-within{", "}" ], Le), $.variables.contentColorActive);
676
+ return n && (0, _.css)([ "cursor:pointer;&:focus{", "}", " &:hover{outline:none;text-decoration:underline;color:", ";}" ], Ne, t && (0,
677
+ _.css)([ "&:focus-within{", "}" ], Ne), M.variables.contentColorActive);
679
678
  }));
680
- var He = M()(Ae()).withConfig({
679
+ var We = z()(qe()).withConfig({
681
680
  displayName: "HeadInnerStyles__StyledResize",
682
681
  componentId: "sc-1sa0wng-4"
683
- })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:1px;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], $.mixins.reset("block"), /* sc-sel */ We, $.variables.borderColorStrong, $.variables.focusColor, $.variables.focusShadow);
682
+ })([ "", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > div > ", " > &{right:1px;width:4px;}&:hover{outline:none;&::before{content:'';background:", ";position:absolute;left:4px;width:1px;top:0;bottom:0;}}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}" ], M.mixins.reset("block"), /* sc-sel */ Le, M.variables.borderColorStrong, M.variables.focusColor, M.variables.focusShadow);
684
683
  // CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
685
- var Ke = M().div.withConfig({
684
+ var He = z().div.withConfig({
686
685
  displayName: "HeadCellStyles__StyledInnerWrapper",
687
686
  componentId: "sc-1hj81sa-0"
688
687
  })([ "display:flex;height:100%;align-items:flex-start;" ]);
689
- var Be = M().th.withConfig({
688
+ var Ke = z().th.withConfig({
690
689
  displayName: "HeadCellStyles__Styled",
691
690
  componentId: "sc-1hj81sa-1"
692
- })([ "", " line-height:", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], $.mixins.reset("table-cell"), $.variables.lineHeightSpacious, $.variables.neutral100, (function(e) {
691
+ })([ "", " line-height:", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";position:relative;height:100%;&:not(:first-child,:has(", ")){", "{border-left:1px solid ", ";}}&:has(", "){", "{border-right:1px solid ", ";}}&:nth-last-child(2):has(", ") + &:last-child{", "{border-left:none;}}*:where(button):focus{box-shadow:", ";}", " ", " ", "" ], M.mixins.reset("table-cell"), M.variables.lineHeightSpacious, M.variables.neutral100, (function(e) {
693
692
  var n = e.$variant;
694
693
  return n ? "middle" : "top";
695
- }), He, /* sc-sel */ Ke, $.variables.borderColorWeak, He, /* sc-sel */ Ke, $.variables.borderColor, He, /* sc-sel */ Ke, $.variables.focusShadowInset, (function(e) {
694
+ }), We, /* sc-sel */ He, M.variables.borderColorWeak, We, /* sc-sel */ He, M.variables.borderColor, We, /* sc-sel */ He, M.variables.focusShadowInset, (function(e) {
696
695
  var n = e.$isDragging;
697
- return n && (0, z.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], $.variables.backgroundColorPage);
696
+ return n && (0, _.css)([ "background-color:", ";&:focus{box-shadow:none;}" ], M.variables.backgroundColorPage);
698
697
  }), (function(e) {
699
698
  var n = e.$variant;
700
- return n && (0, z.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], Ke, $.variables.borderColorWeak);
701
- }), (0, $.pickVariant)("$variant", {
702
- actions: (0, z.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, ve.buttonMixin)("subtle", {
703
- color: $.variables.contentColorDefault
704
- }), $.variables.focusShadowInset)
699
+ return n && (0, _.css)([ "&:first-child + &{", "{border-left:1px solid ", ";}}" ], He, M.variables.borderColorWeak);
700
+ }), (0, M.pickVariant)("$variant", {
701
+ actions: (0, _.css)([ "*:where(button){", " &:focus{box-shadow:", ";}}" ], (0, fe.buttonMixin)("subtle", {
702
+ color: M.variables.contentColorDefault
703
+ }), M.variables.focusShadowInset)
705
704
  }));
706
- var Ve = M().div.withConfig({
705
+ var Be = z().div.withConfig({
707
706
  displayName: "HeadCellStyles__StyledIcon",
708
707
  componentId: "sc-1hj81sa-2"
709
708
  })([ "display:inline-flex;align-items:center;height:1lh;" ]);
710
709
  // TODO(SUI-7400): Refactor the drag handler of re-order column
711
- var Fe = M().div.withConfig({
710
+ var Ve = z().div.withConfig({
712
711
  displayName: "HeadCellStyles__StyledDragHandler",
713
712
  componentId: "sc-1hj81sa-3"
714
713
  })([ "display:inline-flex;align-items:start;align-self:stretch;justify-content:center;min-width:20px;cursor:move;padding-block:", ";-webkit-user-select:none;-moz-user-select:none;user-select:none;&:hover{background:", ";color:", ";}&:focus{background:", ";box-shadow:", ";color:", ";}" ], (0,
715
- $.pick)({
714
+ M.pick)({
716
715
  comfortable: "8px",
717
716
  compact: "6px"
718
- }), $.variables.interactiveColorOverlayHover, $.variables.contentColorActive, $.variables.interactiveColorOverlayDrag, $.variables.focusShadowInset, $.variables.contentColorActive);
717
+ }), M.variables.interactiveColorOverlayHover, M.variables.contentColorActive, M.variables.interactiveColorOverlayDrag, M.variables.focusShadowInset, M.variables.contentColorActive);
719
718
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
720
- const Ue = require("@splunk/react-icons/ArrowDown");
721
- var Xe = e.n(Ue);
719
+ const Fe = require("@splunk/react-icons/ArrowDown");
720
+ var Ue = e.n(Fe);
722
721
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
723
- const Ye = require("@splunk/react-icons/ArrowUp");
724
- var Ge = e.n(Ye);
722
+ const Xe = require("@splunk/react-icons/ArrowUp");
723
+ var Ye = e.n(Xe);
725
724
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
726
- const Je = require("@splunk/react-icons/ArrowUpDown");
727
- var Qe = e.n(Je);
725
+ const Ge = require("@splunk/react-icons/ArrowUpDown");
726
+ var Je = e.n(Ge);
728
727
  // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
729
- const Ze = require("@splunk/react-icons/CaretSmallDown");
730
- var en = e.n(Ze);
728
+ const Qe = require("@splunk/react-icons/CaretSmallDown");
729
+ var Ze = e.n(Qe);
731
730
  // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
732
- const nn = require("@splunk/react-icons/InformationCircle");
733
- var tn = e.n(nn);
731
+ const en = require("@splunk/react-icons/InformationCircle");
732
+ var nn = e.n(en);
734
733
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
735
734
  /* eslint-disable @typescript-eslint/no-empty-function */
736
- var rn = {
735
+ var tn = {
737
736
  body: {
738
737
  appendChild: function e() {
739
738
  return [];
@@ -787,16 +786,16 @@
787
786
  search: ""
788
787
  }
789
788
  };
790
- function on() {
791
- var e = typeof document !== "undefined" ? document : rn;
789
+ function rn() {
790
+ var e = typeof document !== "undefined" ? document : tn;
792
791
  return e;
793
792
  }
794
- var an = on();
795
- /* harmony default export */ const ln = /* unused pure expression or super */ null && an;
793
+ var on = rn();
794
+ /* harmony default export */ const an = /* unused pure expression or super */ null && on;
796
795
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
797
796
  /* eslint-disable @typescript-eslint/no-empty-function */
798
- var un = {
799
- document: rn,
797
+ var ln = {
798
+ document: tn,
800
799
  navigator: {
801
800
  userAgent: ""
802
801
  },
@@ -850,15 +849,15 @@
850
849
  clearTimeout(n);
851
850
  }
852
851
  };
853
- function sn() {
854
- var e = typeof window !== "undefined" ? window : un;
852
+ function un() {
853
+ var e = typeof window !== "undefined" ? window : ln;
855
854
  return e;
856
855
  }
857
- var cn = sn();
858
- /* harmony default export */ const dn = /* unused pure expression or super */ null && cn;
856
+ var sn = un();
857
+ /* harmony default export */ const cn = /* unused pure expression or super */ null && sn;
859
858
  // CONCATENATED MODULE: ./src/Table/HeadInner.tsx
860
- function fn() {
861
- return fn = Object.assign ? Object.assign.bind() : function(e) {
859
+ function dn() {
860
+ return dn = Object.assign ? Object.assign.bind() : function(e) {
862
861
  for (var n = 1; n < arguments.length; n++) {
863
862
  var t = arguments[n];
864
863
  for (var r in t) {
@@ -866,41 +865,41 @@
866
865
  }
867
866
  }
868
867
  return e;
869
- }, fn.apply(null, arguments);
868
+ }, dn.apply(null, arguments);
870
869
  }
871
- function vn(e) {
872
- return bn(e) || mn(e) || gn(e) || pn();
870
+ function fn(e) {
871
+ return mn(e) || pn(e) || yn(e) || vn();
873
872
  }
874
- function pn() {
873
+ function vn() {
875
874
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
876
875
  }
877
- function mn(e) {
876
+ function pn(e) {
878
877
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
879
878
  }
880
- function bn(e) {
881
- if (Array.isArray(e)) return wn(e);
879
+ function mn(e) {
880
+ if (Array.isArray(e)) return gn(e);
882
881
  }
883
- function hn(e, n) {
884
- return xn(e) || Cn(e, n) || gn(e, n) || yn();
882
+ function bn(e, n) {
883
+ return Cn(e) || wn(e, n) || yn(e, n) || hn();
885
884
  }
886
- function yn() {
885
+ function hn() {
887
886
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
888
887
  }
889
- function gn(e, n) {
888
+ function yn(e, n) {
890
889
  if (e) {
891
- if ("string" == typeof e) return wn(e, n);
890
+ if ("string" == typeof e) return gn(e, n);
892
891
  var t = {}.toString.call(e).slice(8, -1);
893
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? wn(e, n) : void 0;
892
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? gn(e, n) : void 0;
894
893
  }
895
894
  }
896
- function wn(e, n) {
895
+ function gn(e, n) {
897
896
  (null == n || n > e.length) && (n = e.length);
898
897
  for (var t = 0, r = Array(n); t < n; t++) {
899
898
  r[t] = e[t];
900
899
  }
901
900
  return r;
902
901
  }
903
- function Cn(e, n) {
902
+ function wn(e, n) {
904
903
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
905
904
  if (null != t) {
906
905
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -922,12 +921,12 @@
922
921
  return l;
923
922
  }
924
923
  }
925
- function xn(e) {
924
+ function Cn(e) {
926
925
  if (Array.isArray(e)) return e;
927
926
  }
928
- function Sn(e, n) {
927
+ function xn(e, n) {
929
928
  if (null == e) return {};
930
- var t, r, o = On(e, n);
929
+ var t, r, o = Sn(e, n);
931
930
  if (Object.getOwnPropertySymbols) {
932
931
  var i = Object.getOwnPropertySymbols(e);
933
932
  for (r = 0; r < i.length; r++) {
@@ -936,7 +935,7 @@
936
935
  }
937
936
  return o;
938
937
  }
939
- function On(e, n) {
938
+ function Sn(e, n) {
940
939
  if (null == e) return {};
941
940
  var t = {};
942
941
  for (var r in e) {
@@ -947,53 +946,53 @@
947
946
  }
948
947
  return t;
949
948
  }
950
- var kn = {
951
- align: C().oneOf([ "left", "center", "right" ]),
952
- cellId: C().string,
953
- clickable: C().bool,
954
- columnId: C().string,
955
- elementRef: C().oneOfType([ C().func, C().object ]),
956
- focusWithin: C().bool,
957
- hasTooltip: C().bool,
958
- index: C().number,
959
- isMenu: C().bool,
960
- label: C().node,
961
- onAutosizeColumn: C().func,
962
- onRequestResize: C().func,
963
- resizable: C().bool,
964
- sortDir: C().oneOf([ "none", "asc", "desc" ]),
965
- truncate: C().bool,
966
- width: C().oneOfType([ C().number, C().oneOf([ "auto" ]) ]),
967
- variant: C().oneOf([ "toggleAll", "info", "actions" ])
949
+ var On = {
950
+ align: w().oneOf([ "left", "center", "right" ]),
951
+ cellId: w().string,
952
+ clickable: w().bool,
953
+ columnId: w().string,
954
+ elementRef: w().oneOfType([ w().func, w().object ]),
955
+ focusWithin: w().bool,
956
+ hasTooltip: w().bool,
957
+ index: w().number,
958
+ isMenu: w().bool,
959
+ label: w().node,
960
+ onAutosizeColumn: w().func,
961
+ onRequestResize: w().func,
962
+ resizable: w().bool,
963
+ sortDir: w().oneOf([ "none", "asc", "desc" ]),
964
+ truncate: w().bool,
965
+ width: w().oneOfType([ w().number, w().oneOf([ "auto" ]) ]),
966
+ variant: w().oneOf([ "toggleAll", "info", "actions" ])
968
967
  };
969
- var Rn = new Set([ "none", "asc", "desc" ]);
970
- var En = Object.freeze({
971
- none: (0, j._)("Click to sort"),
972
- asc: (0, j._)("Press to sort descending"),
973
- desc: (0, j._)("Press to sort ascending")
968
+ var kn = new Set([ "none", "asc", "desc" ]);
969
+ var Rn = Object.freeze({
970
+ none: (0, T._)("Click to sort"),
971
+ asc: (0, T._)("Press to sort descending"),
972
+ desc: (0, T._)("Press to sort ascending")
974
973
  });
975
- var In = Object.freeze({
976
- none: Qe(),
977
- asc: Ge(),
978
- desc: Xe()
974
+ var En = Object.freeze({
975
+ none: Je(),
976
+ asc: Ye(),
977
+ desc: Ue()
979
978
  });
980
- function Tn(e) {
981
- var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.cellId, l = e.columnId, u = e.elementRef, s = e.focusWithin, c = e.hasTooltip, d = e.index, f = e.isMenu, v = e.label, p = e.onAutosizeColumn, m = e.onRequestResize, b = e.resizable, y = b === void 0 ? true : b, g = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, x = e.variant, O = e.width, k = Sn(e, [ "align", "clickable", "cellId", "columnId", "elementRef", "focusWithin", "hasTooltip", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
979
+ function In(e) {
980
+ var n = e.align, o = n === void 0 ? "left" : n, i = e.clickable, a = e.cellId, l = e.columnId, u = e.elementRef, s = e.focusWithin, c = e.hasTooltip, d = e.index, f = e.isMenu, v = e.label, p = e.onAutosizeColumn, m = e.onRequestResize, h = e.resizable, y = h === void 0 ? true : h, g = e.sortDir, w = e.truncate, C = w === void 0 ? true : w, S = e.variant, O = e.width, k = xn(e, [ "align", "clickable", "cellId", "columnId", "elementRef", "focusWithin", "hasTooltip", "index", "isMenu", "label", "onAutosizeColumn", "onRequestResize", "resizable", "sortDir", "truncate", "variant", "width" ]);
982
981
  // @docs-props-type HeadInnerPropsBase
983
- var R = (0, j._)("Click to open menu");
982
+ var R = (0, T._)("Click to open menu");
984
983
  var E = (0, t.useMemo)((function() {
985
984
  return typeof v === "string" ? v.length : 0;
986
985
  }), [ v ]);
987
- var I = (0, t.useState)(false), D = hn(I, 2), q = D[0], A = D[1];
988
- var P = (0, t.useState)(0), _ = hn(P, 2), z = _[0], M = _[1];
989
- var $ = (0, t.useState)(0), N = hn($, 2), W = N[0], H = N[1];
986
+ var j = (0, t.useState)(false), D = bn(j, 2), q = D[0], A = D[1];
987
+ var P = (0, t.useState)(0), _ = bn(P, 2), z = _[0], M = _[1];
988
+ var $ = (0, t.useState)(0), L = bn($, 2), W = L[0], H = L[1];
990
989
  var K = (0, t.useRef)(null);
991
990
  var B = (0, t.useRef)(O === "auto" ? undefined : O);
992
991
  var V;
993
992
  var F;
994
- if (g !== undefined && Rn.has(g)) {
995
- V = In[g];
996
- F = En[g];
993
+ if (g !== undefined && kn.has(g)) {
994
+ V = En[g];
995
+ F = Rn[g];
997
996
  }
998
997
  if (O === "auto") {
999
998
  var U;
@@ -1005,7 +1004,7 @@
1005
1004
  }
1006
1005
  var G = (0, t.useCallback)((function(e) {
1007
1006
  K.current = e;
1008
- L(u, e);
1007
+ N(u, e);
1009
1008
  }), [ u, K ]);
1010
1009
  var J = (0, t.useCallback)((function(e) {
1011
1010
  var n = e.key;
@@ -1092,12 +1091,12 @@
1092
1091
  });
1093
1092
  }
1094
1093
  }), [ a, l, d, p ]);
1095
- var te = sn();
1096
- var re = B.current ? (0, T.sprintf)((0, j._)("%(width)d pixels"), {
1094
+ var te = un();
1095
+ var re = B.current ? (0, I.sprintf)((0, T._)("%(width)d pixels"), {
1097
1096
  width: B.current
1098
1097
  }) : undefined;
1099
1098
 
1100
- return r().createElement(We, fn({
1099
+ return r().createElement(Le, dn({
1101
1100
  as: i ? "button" : "div",
1102
1101
  ref: G,
1103
1102
  $align: o,
@@ -1105,18 +1104,18 @@
1105
1104
  $focusWithin: s,
1106
1105
  $hasIcon: !!f || !!g,
1107
1106
  $hasTooltip: !!c,
1108
- $variant: x,
1107
+ $variant: S,
1109
1108
  $labelLength: E
1110
- }, h()(k, [].concat(vn(Object.keys(Tn.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(S(), {
1109
+ }, b()(k, [].concat(fn(Object.keys(In.propTypes)), [ "id" ]))), q && r().createElement(r().Fragment, null, r().createElement(x(), {
1111
1110
  target: te,
1112
1111
  eventType: "mouseup",
1113
1112
  listener: ee
1114
- }), r().createElement(S(), {
1113
+ }), r().createElement(x(), {
1115
1114
  target: te,
1116
1115
  eventType: "mousemove",
1117
1116
  listener: Z
1118
- })), m && y && r().createElement(He, {
1119
- "aria-label": (0, T.sprintf)((0, j._)("Resize %(label)s"), {
1117
+ })), m && y && r().createElement(We, {
1118
+ "aria-label": (0, I.sprintf)((0, T._)("Resize %(label)s"), {
1120
1119
  label: v
1121
1120
  }),
1122
1121
  "aria-controls": a,
@@ -1127,26 +1126,26 @@
1127
1126
  onKeyDown: J,
1128
1127
  orientation: "vertical",
1129
1128
  tabIndex: 0
1130
- }), r().createElement(Ne, {
1129
+ }), r().createElement($e, {
1131
1130
  $align: o,
1132
1131
  $truncate: C,
1133
- $variant: x,
1132
+ $variant: S,
1134
1133
  $labelLength: E
1135
- }, v), c && r().createElement($e, null, r().createElement(tn(), {
1134
+ }, v), c && r().createElement(Me, null, r().createElement(nn(), {
1136
1135
  "data-test": "tooltip-icon"
1137
- })), f && r().createElement(Me, null, r().createElement(en(), {
1136
+ })), f && r().createElement(ze, null, r().createElement(Ze(), {
1138
1137
  "data-test": "caret-down",
1139
1138
  "aria-label": R
1140
- })), g && r().createElement(Me, null, V !== undefined && r().createElement(V, {
1139
+ })), g && r().createElement(ze, null, V !== undefined && r().createElement(V, {
1141
1140
  "aria-hidden": false,
1142
1141
  "aria-label": F
1143
1142
  })));
1144
1143
  }
1145
- Tn.propTypes = kn;
1146
- /* harmony default export */ const jn = Tn;
1144
+ In.propTypes = On;
1145
+ /* harmony default export */ const Tn = In;
1147
1146
  // CONCATENATED MODULE: ./src/Table/HeadCell.tsx
1148
- function Dn() {
1149
- return Dn = Object.assign ? Object.assign.bind() : function(e) {
1147
+ function jn() {
1148
+ return jn = Object.assign ? Object.assign.bind() : function(e) {
1150
1149
  for (var n = 1; n < arguments.length; n++) {
1151
1150
  var t = arguments[n];
1152
1151
  for (var r in t) {
@@ -1154,11 +1153,11 @@
1154
1153
  }
1155
1154
  }
1156
1155
  return e;
1157
- }, Dn.apply(null, arguments);
1156
+ }, jn.apply(null, arguments);
1158
1157
  }
1159
- function qn(e, n) {
1158
+ function Dn(e, n) {
1160
1159
  if (null == e) return {};
1161
- var t, r, o = An(e, n);
1160
+ var t, r, o = qn(e, n);
1162
1161
  if (Object.getOwnPropertySymbols) {
1163
1162
  var i = Object.getOwnPropertySymbols(e);
1164
1163
  for (r = 0; r < i.length; r++) {
@@ -1167,7 +1166,7 @@
1167
1166
  }
1168
1167
  return o;
1169
1168
  }
1170
- function An(e, n) {
1169
+ function qn(e, n) {
1171
1170
  if (null == e) return {};
1172
1171
  var t = {};
1173
1172
  for (var r in e) {
@@ -1179,63 +1178,63 @@
1179
1178
  return t;
1180
1179
  }
1181
1180
  /** @public */
1182
- /** @public */ var Pn = {
1183
- align: C().oneOf([ "left", "center", "right" ]),
1181
+ /** @public */ var An = {
1182
+ align: w().oneOf([ "left", "center", "right" ]),
1184
1183
  /** @private Used to set the $clickable appearance without an onClick */
1185
- appearClickable: C().bool,
1186
- children: C().node,
1187
- columnId: C().string,
1184
+ appearClickable: w().bool,
1185
+ children: w().node,
1186
+ columnId: w().string,
1188
1187
  /** @private. */
1189
- dragId: C().oneOfType([ C().string, C().number ]),
1190
- elementRef: C().oneOfType([ C().func, C().object ]),
1191
- headCellScreenReaderText: C().string,
1188
+ dragId: w().oneOfType([ w().string, w().number ]),
1189
+ elementRef: w().oneOfType([ w().func, w().object ]),
1190
+ headCellScreenReaderText: w().string,
1192
1191
  /** @private The index of the cell, skipping the info column. */
1193
- index: C().number,
1192
+ index: w().number,
1194
1193
  /** @private. */
1195
- onAutosizeColumn: C().func,
1194
+ onAutosizeColumn: w().func,
1196
1195
  /** @private. */
1197
- onClick: C().func,
1196
+ onClick: w().func,
1198
1197
  /**
1199
1198
  * @private. Passed through and works as expected.
1200
1199
  */
1201
- onKeyDown: C().func,
1200
+ onKeyDown: w().func,
1202
1201
  /** @private. */
1203
- onRequestMoveColumn: C().func,
1202
+ onRequestMoveColumn: w().func,
1204
1203
  /** @private. */
1205
- onRequestResize: C().func,
1206
- onSort: C().func,
1207
- resizable: C().bool,
1208
- sortDir: C().oneOf([ "asc", "desc", "none" ]),
1209
- sortKey: C().string,
1210
- tooltip: C().node,
1211
- truncate: C().bool,
1204
+ onRequestResize: w().func,
1205
+ onSort: w().func,
1206
+ resizable: w().bool,
1207
+ sortDir: w().oneOf([ "asc", "desc", "none" ]),
1208
+ sortKey: w().string,
1209
+ tooltip: w().node,
1210
+ truncate: w().bool,
1212
1211
  /** @private. */
1213
- variant: C().oneOf([ "toggleAll", "info", "actions" ]),
1212
+ variant: w().oneOf([ "toggleAll", "info", "actions" ]),
1214
1213
  /**
1215
1214
  * Used internally to suppress focus and id when this `HeadCell` is superseded by one in an
1216
1215
  * overlaid `HeadTable` for user interactions.
1217
1216
  * @private
1218
1217
  */
1219
- visible: C().bool,
1220
- width: C().oneOfType([ C().number, C().oneOf([ "auto" ]) ])
1218
+ visible: w().bool,
1219
+ width: w().oneOfType([ w().number, w().oneOf([ "auto" ]) ])
1221
1220
  };
1222
- var _n = {
1221
+ var Pn = {
1223
1222
  asc: "ascending",
1224
1223
  desc: "descending",
1225
1224
  none: "none"
1226
1225
  };
1227
- function zn(e) {
1226
+ function _n(e) {
1228
1227
  var n;
1229
- var o = e.align, i = o === void 0 ? "left" : o, l = e.appearClickable, u = e.children, s = e.columnId, c = e.elementRef, d = e.dragId, f = e.headCellScreenReaderText, v = e.id, p = e.index, m = e.onAutosizeColumn, b = e.onClick, h = e.onKeyDown, y = e.onRequestMoveColumn, g = e.onRequestResize, w = e.onSort, C = e.resizable, x = C === void 0 ? true : C, S = e.sortDir, O = S === void 0 ? "none" : S, k = e.sortKey, R = e.style, E = e.tooltip, I = e.truncate, q = I === void 0 ? true : I, A = e.variant, P = e.visible, _ = P === void 0 ? true : P, z = e.width, M = qn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1228
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.appearClickable, u = e.children, s = e.columnId, c = e.elementRef, d = e.dragId, f = e.headCellScreenReaderText, v = e.id, p = e.index, m = e.onAutosizeColumn, b = e.onClick, h = e.onKeyDown, y = e.onRequestMoveColumn, g = e.onRequestResize, w = e.onSort, C = e.resizable, x = C === void 0 ? true : C, S = e.sortDir, O = S === void 0 ? "none" : S, k = e.sortKey, R = e.style, E = e.tooltip, D = e.truncate, q = D === void 0 ? true : D, A = e.variant, P = e.visible, _ = P === void 0 ? true : P, z = e.width, M = Dn(e, [ "align", "appearClickable", "children", "columnId", "elementRef", "dragId", "headCellScreenReaderText", "id", "index", "onAutosizeColumn", "onClick", "onKeyDown", "onRequestMoveColumn", "onRequestResize", "onSort", "resizable", "sortDir", "sortKey", "style", "tooltip", "truncate", "variant", "visible", "width" ]);
1230
1229
  // @docs-props-type HeadCellPropsBase
1231
1230
  var $ = !!y;
1232
- var N = (0, a.useSortable)({
1231
+ var L = (0, a.useSortable)({
1233
1232
  // dragId is optional in HeadCell but required by useSortable
1234
1233
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
1235
1234
  id: d
1236
- }), W = N.attributes, H = N.isDragging, K = N.listeners, B = N.setNodeRef;
1235
+ }), W = L.attributes, H = L.isDragging, K = L.listeners, B = L.setNodeRef;
1237
1236
  var V = (0, t.useCallback)((function(e) {
1238
- L(c, e);
1237
+ N(c, e);
1239
1238
  if ($) {
1240
1239
  B(e);
1241
1240
  }
@@ -1265,18 +1264,18 @@
1265
1264
  var Y = b !== undefined;
1266
1265
  var G = A === "actions" ? false : q;
1267
1266
  var J = (0, t.useMemo)((function() {
1268
- return Ee()({}, R, {
1267
+ return Re()({}, R, {
1269
1268
  width: z
1270
1269
  });
1271
1270
  }), [ R, z ]);
1272
1271
  var Q;
1273
1272
  if (f) {
1274
1273
  Q = f;
1275
- } else if (ke()(u)) {
1274
+ } else if (Oe()(u)) {
1276
1275
  Q = u;
1277
1276
  }
1278
1277
  var Z = (n = v !== null && v !== void 0 ? v : s) !== null && n !== void 0 ? n : (0,
1279
- D.createDOMID)("headCellId-");
1278
+ j.createDOMID)("headCellId-");
1280
1279
  var ee = (0, t.useMemo)((function() {
1281
1280
  return {
1282
1281
  align: i,
@@ -1299,87 +1298,87 @@
1299
1298
  }), [ i, l, X, Y, s, u, Z, p, m, w, F, U, g, _, x, O, G, A, z ]);
1300
1299
  var ne = (0, t.useCallback)((function(e) {
1301
1300
 
1302
- return r().createElement(jn, Dn({}, e, ee, {
1301
+ return r().createElement(Tn, jn({}, e, ee, {
1303
1302
  hasTooltip: true
1304
1303
  }));
1305
1304
  }), [ ee ]);
1306
1305
 
1307
- return r().createElement(Be, Dn({
1306
+ return r().createElement(Ke, jn({
1308
1307
  style: J,
1309
1308
  ref: V,
1310
- "aria-sort": w && (_n[O] || "none"),
1309
+ "aria-sort": w && (Pn[O] || "none"),
1311
1310
  "data-test": "head-cell",
1312
- "data-test-label": ke()(u) ? u : undefined,
1311
+ "data-test-label": Oe()(u) ? u : undefined,
1313
1312
  "data-test-sort-dir": w && O,
1314
1313
  id: _ ? Z : undefined,
1315
1314
  $isDragging: $ && H,
1316
1315
  $variant: A
1317
- }, M), r().createElement(Ke, null, $ && r().createElement(Fe, Dn({
1318
- "aria-label": (0, T.sprintf)((0, j._)("Reorder %(labelString)s"), {
1316
+ }, M), r().createElement(He, null, $ && r().createElement(Ve, jn({
1317
+ "aria-label": (0, I.sprintf)((0, T._)("Reorder %(labelString)s"), {
1319
1318
  labelString: Q
1320
1319
  }),
1321
1320
  "data-test": "drag",
1322
1321
  draggable: true
1323
- }, W, K), r().createElement(Ve, null, r().createElement(Te(), null))), E ? r().createElement(De(), {
1322
+ }, W, K), r().createElement(Be, null, r().createElement(Ie(), null))), E ? r().createElement(je(), {
1324
1323
  content: E,
1325
1324
  renderAnchor: ne
1326
- }) : r().createElement(jn, ee)));
1325
+ }) : r().createElement(Tn, ee)));
1327
1326
  }
1328
- zn.propTypes = Pn;
1329
- zn.splunkUiType = "Table.HeadCell";
1330
- /* harmony default export */ const Mn = zn;
1327
+ _n.propTypes = An;
1328
+ _n.splunkUiType = "Table.HeadCell";
1329
+ /* harmony default export */ const zn = _n;
1331
1330
  // CONCATENATED MODULE: ./src/Table/HeadStyles.ts
1332
- var $n = M().thead.withConfig({
1331
+ var Mn = z().thead.withConfig({
1333
1332
  displayName: "HeadStyles__Styled",
1334
1333
  componentId: "iap21t-0"
1335
- })([ "", ";", "" ], $.mixins.reset("table-header-group"), (function(e) {
1334
+ })([ "", ";", "" ], M.mixins.reset("table-header-group"), (function(e) {
1336
1335
  var n = e.$isFixed, t = e.$zIndex;
1337
- return n && (0, z.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1336
+ return n && (0, _.css)([ "position:sticky;top:0;z-index:", ";" ], t);
1338
1337
  }));
1339
- var Nn = M()(Mn).withConfig({
1338
+ var $n = z()(zn).withConfig({
1340
1339
  displayName: "HeadStyles__StyledToggleAll",
1341
1340
  componentId: "iap21t-1"
1342
1341
  })([ "width:32px;" ]);
1343
- var Ln = M()(Mn).withConfig({
1342
+ var Nn = z()(zn).withConfig({
1344
1343
  displayName: "HeadStyles__StyledInfo",
1345
1344
  componentId: "iap21t-2"
1346
1345
  })([ "width:32px;" ]);
1347
- var Wn = M()(Mn).withConfig({
1346
+ var Ln = z()(zn).withConfig({
1348
1347
  displayName: "HeadStyles__StyledDragRow",
1349
1348
  componentId: "iap21t-3"
1350
1349
  })([ "width:32px;" ]);
1351
1350
  // CONCATENATED MODULE: external "@dnd-kit/utilities"
1352
- const Hn = require("@dnd-kit/utilities");
1351
+ const Wn = require("@dnd-kit/utilities");
1353
1352
  // CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
1354
- const Kn = require("@splunk/react-icons/DotsThreeVertical");
1355
- var Bn = e.n(Kn);
1353
+ const Hn = require("@splunk/react-icons/DotsThreeVertical");
1354
+ var Kn = e.n(Hn);
1356
1355
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
1357
- const Vn = require("@splunk/react-ui/Button");
1358
- var Fn = e.n(Vn);
1356
+ const Bn = require("@splunk/react-ui/Button");
1357
+ var Vn = e.n(Bn);
1359
1358
  // CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
1360
- const Un = require("@splunk/react-ui/Dropdown");
1361
- var Xn = e.n(Un);
1359
+ const Fn = require("@splunk/react-ui/Dropdown");
1360
+ var Un = e.n(Fn);
1362
1361
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
1363
- const Yn = require("@splunk/react-icons/ChevronRight");
1364
- var Gn = e.n(Yn);
1362
+ const Xn = require("@splunk/react-icons/ChevronRight");
1363
+ var Yn = e.n(Xn);
1365
1364
  // CONCATENATED MODULE: ./src/Table/ExpandButtonStyles.ts
1366
- var Jn = M().button.withConfig({
1365
+ var Gn = z().button.withConfig({
1367
1366
  displayName: "ExpandButtonStyles__StyledButton",
1368
1367
  componentId: "sc-7nlw5q-0"
1369
- })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], $.mixins.reset("flex"), $.variables.contentColorDefault, $.variables.contentColorActive, $.variables.contentColorActive, $.variables.focusShadowInset);
1370
- var Qn = M()(Gn()).withConfig({
1368
+ })([ "", ";height:100%;width:100%;cursor:pointer;justify-content:center;color:", ";&:hover{color:", ";}&:focus{color:", ";box-shadow:", ";}" ], M.mixins.reset("flex"), M.variables.contentColorDefault, M.variables.contentColorActive, M.variables.contentColorActive, M.variables.focusShadowInset);
1369
+ var Jn = z()(Yn()).withConfig({
1371
1370
  displayName: "ExpandButtonStyles__StyledChevron",
1372
1371
  componentId: "sc-7nlw5q-1"
1373
- })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, $.pick)({
1372
+ })([ "padding-block:", ";transition:transform 200ms;", "" ], (0, M.pick)({
1374
1373
  comfortable: "10px",
1375
1374
  compact: "8px"
1376
1375
  }), (function(e) {
1377
1376
  var n = e.$expanded;
1378
- return n && (0, z.css)([ "transform:rotate(90deg);" ]);
1377
+ return n && (0, _.css)([ "transform:rotate(90deg);" ]);
1379
1378
  }));
1380
1379
  // CONCATENATED MODULE: ./src/Table/ExpandButton.tsx
1381
- function Zn() {
1382
- return Zn = Object.assign ? Object.assign.bind() : function(e) {
1380
+ function Qn() {
1381
+ return Qn = Object.assign ? Object.assign.bind() : function(e) {
1383
1382
  for (var n = 1; n < arguments.length; n++) {
1384
1383
  var t = arguments[n];
1385
1384
  for (var r in t) {
@@ -1387,11 +1386,11 @@
1387
1386
  }
1388
1387
  }
1389
1388
  return e;
1390
- }, Zn.apply(null, arguments);
1389
+ }, Qn.apply(null, arguments);
1391
1390
  }
1392
- function et(e, n) {
1391
+ function Zn(e, n) {
1393
1392
  if (null == e) return {};
1394
- var t, r, o = nt(e, n);
1393
+ var t, r, o = et(e, n);
1395
1394
  if (Object.getOwnPropertySymbols) {
1396
1395
  var i = Object.getOwnPropertySymbols(e);
1397
1396
  for (r = 0; r < i.length; r++) {
@@ -1400,7 +1399,7 @@
1400
1399
  }
1401
1400
  return o;
1402
1401
  }
1403
- function nt(e, n) {
1402
+ function et(e, n) {
1404
1403
  if (null == e) return {};
1405
1404
  var t = {};
1406
1405
  for (var r in e) {
@@ -1411,33 +1410,33 @@
1411
1410
  }
1412
1411
  return t;
1413
1412
  }
1414
- var tt = {
1415
- expanded: C().bool
1413
+ var nt = {
1414
+ expanded: w().bool
1416
1415
  };
1417
- var rt = function e(n) {
1418
- var t = n.expanded, o = et(n, [ "expanded" ]);
1416
+ var tt = function e(n) {
1417
+ var t = n.expanded, o = Zn(n, [ "expanded" ]);
1419
1418
  // @docs-props-type ExpandButtonPropsBase
1420
1419
 
1421
- return r().createElement(Jn, Zn({
1422
- title: t ? (0, j._)("Collapse row") : (0, j._)("Expand row")
1423
- }, o), r().createElement(Qn, {
1420
+ return r().createElement(Gn, Qn({
1421
+ title: t ? (0, T._)("Collapse row") : (0, T._)("Expand row")
1422
+ }, o), r().createElement(Jn, {
1424
1423
  $expanded: t
1425
1424
  }));
1426
1425
  };
1427
- rt.propTypes = tt;
1428
- /* harmony default export */ const ot = rt;
1426
+ tt.propTypes = nt;
1427
+ /* harmony default export */ const rt = tt;
1429
1428
  // CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
1430
- var it = M().td.withConfig({
1429
+ var ot = z().td.withConfig({
1431
1430
  displayName: "RowDragCellStyles__StyledCell",
1432
1431
  componentId: "sc-9kbaj2-0"
1433
- })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], $.mixins.reset("table-cell"));
1434
- var at = M().div.withConfig({
1432
+ })([ "", " cursor:move;touch-action:none;position:relative;vertical-align:middle;" ], M.mixins.reset("table-cell"));
1433
+ var it = z().div.withConfig({
1435
1434
  displayName: "RowDragCellStyles__StyledDrag",
1436
1435
  componentId: "sc-9kbaj2-1"
1437
- })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], $.mixins.reset("flex"), $.mixins.clearfix(), $.variables.focusShadowInset, $.variables.interactiveColorOverlayDrag, $.variables.interactiveColorOverlayActive, $.variables.focusShadowInset);
1436
+ })([ "", " ", ";justify-content:center;cursor:move;-webkit-user-drag:element;user-select:none;align-items:center;position:absolute;width:100%;top:0;bottom:0;&:focus{outline:0;box-shadow:", ";}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";box-shadow:", ";}& > div{margin:0;}@media print{background-image:none;}" ], M.mixins.reset("flex"), M.mixins.clearfix(), M.variables.focusShadowInset, M.variables.interactiveColorOverlayDrag, M.variables.interactiveColorOverlayActive, M.variables.focusShadowInset);
1438
1437
  // CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
1439
- function lt() {
1440
- return lt = Object.assign ? Object.assign.bind() : function(e) {
1438
+ function at() {
1439
+ return at = Object.assign ? Object.assign.bind() : function(e) {
1441
1440
  for (var n = 1; n < arguments.length; n++) {
1442
1441
  var t = arguments[n];
1443
1442
  for (var r in t) {
@@ -1445,11 +1444,11 @@
1445
1444
  }
1446
1445
  }
1447
1446
  return e;
1448
- }, lt.apply(null, arguments);
1447
+ }, at.apply(null, arguments);
1449
1448
  }
1450
- function ut(e, n) {
1449
+ function lt(e, n) {
1451
1450
  if (null == e) return {};
1452
- var t, r, o = st(e, n);
1451
+ var t, r, o = ut(e, n);
1453
1452
  if (Object.getOwnPropertySymbols) {
1454
1453
  var i = Object.getOwnPropertySymbols(e);
1455
1454
  for (r = 0; r < i.length; r++) {
@@ -1458,7 +1457,7 @@
1458
1457
  }
1459
1458
  return o;
1460
1459
  }
1461
- function st(e, n) {
1460
+ function ut(e, n) {
1462
1461
  if (null == e) return {};
1463
1462
  var t = {};
1464
1463
  for (var r in e) {
@@ -1469,64 +1468,64 @@
1469
1468
  }
1470
1469
  return t;
1471
1470
  }
1472
- var ct = {
1473
- setActivatorNodeRef: C().func.isRequired,
1474
- listeners: C().objectOf(C().func)
1471
+ var st = {
1472
+ setActivatorNodeRef: w().func.isRequired,
1473
+ listeners: w().objectOf(w().func)
1475
1474
  };
1476
- function dt(e) {
1477
- var n = e.listeners, t = e.setActivatorNodeRef, o = ut(e, [ "listeners", "setActivatorNodeRef" ]);
1475
+ function ct(e) {
1476
+ var n = e.listeners, t = e.setActivatorNodeRef, o = lt(e, [ "listeners", "setActivatorNodeRef" ]);
1478
1477
  // @docs-props-type RowDragCellPropsBase
1479
1478
 
1480
- return r().createElement(it, {
1479
+ return r().createElement(ot, {
1481
1480
  "data-helper": true
1482
- }, r().createElement(at, lt({
1481
+ }, r().createElement(it, at({
1483
1482
  "data-test": "drag",
1484
1483
  draggable: true,
1485
1484
  ref: t,
1486
1485
  tabIndex: 0
1487
- }, n, o), r().createElement(Te(), null)));
1486
+ }, n, o), r().createElement(Ie(), null)));
1488
1487
  }
1489
- dt.propTypes = ct;
1490
- /* harmony default export */ const ft = dt;
1488
+ ct.propTypes = st;
1489
+ /* harmony default export */ const dt = ct;
1491
1490
  // CONCATENATED MODULE: ./src/Table/RowStyles.ts
1492
- var vt = M().tr.withConfig({
1491
+ var ft = z().tr.withConfig({
1493
1492
  displayName: "RowStyles__StyledStripeNone",
1494
1493
  componentId: "f0igqq-0"
1495
- })([ "", ";", ";", " @media print{background-color:none;}" ], $.mixins.reset("table-row"), (function(e) {
1494
+ })([ "", ";", ";", " @media print{background-color:none;}" ], M.mixins.reset("table-row"), (function(e) {
1496
1495
  var n = e.$clickable;
1497
- return n && (0, z.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], $.variables.neutral100, $.variables.neutral100, $.variables.focusShadowInset);
1496
+ return n && (0, _.css)([ "cursor:pointer;&:hover{background-color:", ";}&:focus{background-color:", ";box-shadow:", ";}" ], M.variables.neutral100, M.variables.neutral100, M.variables.focusShadowInset);
1498
1497
  }), (function(e) {
1499
1498
  var n = e.disabled, t = e.$expandable, r = e.$isDraggable;
1500
- return !n && !t && r && (0, z.css)([ "&:hover{background-color:", ";}" ], $.variables.interactiveColorOverlayHover);
1499
+ return !n && !t && r && (0, _.css)([ "&:hover{background-color:", ";}" ], M.variables.interactiveColorOverlayHover);
1501
1500
  }));
1502
- var pt = M()(vt).withConfig({
1501
+ var vt = z()(ft).withConfig({
1503
1502
  displayName: "RowStyles__StyledStripeEven",
1504
1503
  componentId: "f0igqq-1"
1505
- })([ "background-color:", ";", ";" ], $.variables.neutral50, (function(e) {
1504
+ })([ "background-color:", ";", ";" ], M.variables.neutral50, (function(e) {
1506
1505
  var n = e.$clickable;
1507
- return n && (0, z.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], $.variables.neutral300);
1506
+ return n && (0, _.css)([ "cursor:pointer;&:hover,&:focus{background-color:", ";}" ], M.variables.neutral300);
1508
1507
  }));
1509
1508
  // CONCATENATED MODULE: external "@splunk/react-ui/Checkbox"
1510
- const mt = require("@splunk/react-ui/Checkbox");
1511
- var bt = e.n(mt);
1509
+ const pt = require("@splunk/react-ui/Checkbox");
1510
+ var mt = e.n(pt);
1512
1511
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
1513
- const ht = require("@splunk/react-ui/Clickable");
1514
- var yt = e.n(ht);
1512
+ const bt = require("@splunk/react-ui/Clickable");
1513
+ var ht = e.n(bt);
1515
1514
  // CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
1516
- var gt = M()(yt()).withConfig({
1515
+ var yt = z()(ht()).withConfig({
1517
1516
  displayName: "ToggleStyles__StyledClickable",
1518
1517
  componentId: "sc-1x3ikch-0"
1519
1518
  })([ "height:100%;width:100%;display:flex;justify-content:center;&[disabled]{cursor:not-allowed;}" ]);
1520
- var wt = M()(bt()).withConfig({
1519
+ var gt = z()(mt()).withConfig({
1521
1520
  displayName: "ToggleStyles__StyledCheckbox",
1522
1521
  componentId: "sc-1x3ikch-1"
1523
- })([ "align-items:flex-start;padding-block:", ";" ], (0, $.pick)({
1522
+ })([ "align-items:flex-start;padding-block:", ";" ], (0, M.pick)({
1524
1523
  comfortable: "8px",
1525
1524
  compact: "6px"
1526
1525
  }));
1527
1526
  // CONCATENATED MODULE: ./src/Table/Toggle.tsx
1528
- function Ct() {
1529
- return Ct = Object.assign ? Object.assign.bind() : function(e) {
1527
+ function wt() {
1528
+ return wt = Object.assign ? Object.assign.bind() : function(e) {
1530
1529
  for (var n = 1; n < arguments.length; n++) {
1531
1530
  var t = arguments[n];
1532
1531
  for (var r in t) {
@@ -1534,11 +1533,11 @@
1534
1533
  }
1535
1534
  }
1536
1535
  return e;
1537
- }, Ct.apply(null, arguments);
1536
+ }, wt.apply(null, arguments);
1538
1537
  }
1539
- function xt(e, n) {
1538
+ function Ct(e, n) {
1540
1539
  if (null == e) return {};
1541
- var t, r, o = St(e, n);
1540
+ var t, r, o = xt(e, n);
1542
1541
  if (Object.getOwnPropertySymbols) {
1543
1542
  var i = Object.getOwnPropertySymbols(e);
1544
1543
  for (r = 0; r < i.length; r++) {
@@ -1547,7 +1546,7 @@
1547
1546
  }
1548
1547
  return o;
1549
1548
  }
1550
- function St(e, n) {
1549
+ function xt(e, n) {
1551
1550
  if (null == e) return {};
1552
1551
  var t = {};
1553
1552
  for (var r in e) {
@@ -1558,41 +1557,41 @@
1558
1557
  }
1559
1558
  return t;
1560
1559
  }
1561
- var Ot = {
1562
- disabled: C().bool,
1563
- onClick: C().func,
1564
- selected: C().oneOf([ true, false, "some" ])
1560
+ var St = {
1561
+ disabled: w().bool,
1562
+ onClick: w().func,
1563
+ selected: w().oneOf([ true, false, "some" ])
1565
1564
  };
1566
- function kt(e) {
1567
- var n = e.disabled, t = e.onClick, o = e.selected, i = xt(e, [ "disabled", "onClick", "selected" ]);
1565
+ function Ot(e) {
1566
+ var n = e.disabled, t = e.onClick, o = e.selected, i = Ct(e, [ "disabled", "onClick", "selected" ]);
1568
1567
  // @docs-props-type TogglePropsBase
1569
1568
  var a = n === true ? "disabled" : undefined;
1570
1569
 
1571
1570
  // we use a Clickable around the inert Checkbox (which can seem ironic) so that the whole table cell is clickable
1572
1571
  // we cannot use the Cell's onClick itself because of a11y issues we have faced in the past (see SUI-5958).
1573
- return r().createElement(gt, Ct({
1572
+ return r().createElement(yt, wt({
1574
1573
  "aria-checked": o === "some" ? "mixed" : o,
1575
1574
  disabled: a,
1576
1575
  onClick: t,
1577
1576
  role: "checkbox"
1578
- }, i), r().createElement(wt, {
1577
+ }, i), r().createElement(gt, {
1579
1578
  checked: o === "some" ? "indeterminate" : o,
1580
1579
  disabled: !!a,
1581
1580
  inert: true
1582
1581
  }));
1583
1582
  }
1584
- kt.propTypes = Ot;
1585
- /* harmony default export */ const Rt = kt;
1583
+ Ot.propTypes = St;
1584
+ /* harmony default export */ const kt = Ot;
1586
1585
  // CONCATENATED MODULE: ./src/Table/Row.tsx
1587
- function Et(e) {
1586
+ function Rt(e) {
1588
1587
  "@babel/helpers - typeof";
1589
- return Et = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1588
+ return Rt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
1590
1589
  return typeof e;
1591
1590
  } : function(e) {
1592
1591
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1593
- }, Et(e);
1592
+ }, Rt(e);
1594
1593
  }
1595
- function It(e, n) {
1594
+ function Et(e, n) {
1596
1595
  var t = Object.keys(e);
1597
1596
  if (Object.getOwnPropertySymbols) {
1598
1597
  var r = Object.getOwnPropertySymbols(e);
@@ -1602,42 +1601,42 @@
1602
1601
  }
1603
1602
  return t;
1604
1603
  }
1605
- function Tt(e) {
1604
+ function It(e) {
1606
1605
  for (var n = 1; n < arguments.length; n++) {
1607
1606
  var t = null != arguments[n] ? arguments[n] : {};
1608
- n % 2 ? It(Object(t), !0).forEach((function(n) {
1609
- jt(e, n, t[n]);
1610
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : It(Object(t)).forEach((function(n) {
1607
+ n % 2 ? Et(Object(t), !0).forEach((function(n) {
1608
+ Tt(e, n, t[n]);
1609
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Et(Object(t)).forEach((function(n) {
1611
1610
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1612
1611
  }));
1613
1612
  }
1614
1613
  return e;
1615
1614
  }
1616
- function jt(e, n, t) {
1617
- return (n = Dt(n)) in e ? Object.defineProperty(e, n, {
1615
+ function Tt(e, n, t) {
1616
+ return (n = jt(n)) in e ? Object.defineProperty(e, n, {
1618
1617
  value: t,
1619
1618
  enumerable: !0,
1620
1619
  configurable: !0,
1621
1620
  writable: !0
1622
1621
  }) : e[n] = t, e;
1623
1622
  }
1624
- function Dt(e) {
1625
- var n = qt(e, "string");
1626
- return "symbol" == Et(n) ? n : n + "";
1623
+ function jt(e) {
1624
+ var n = Dt(e, "string");
1625
+ return "symbol" == Rt(n) ? n : n + "";
1627
1626
  }
1628
- function qt(e, n) {
1629
- if ("object" != Et(e) || !e) return e;
1627
+ function Dt(e, n) {
1628
+ if ("object" != Rt(e) || !e) return e;
1630
1629
  var t = e[Symbol.toPrimitive];
1631
1630
  if (void 0 !== t) {
1632
1631
  var r = t.call(e, n || "default");
1633
- if ("object" != Et(r)) return r;
1632
+ if ("object" != Rt(r)) return r;
1634
1633
  throw new TypeError("@@toPrimitive must return a primitive value.");
1635
1634
  }
1636
1635
  return ("string" === n ? String : Number)(e);
1637
1636
  }
1638
- function At(e, n) {
1637
+ function qt(e, n) {
1639
1638
  if (null == e) return {};
1640
- var t, r, o = Pt(e, n);
1639
+ var t, r, o = At(e, n);
1641
1640
  if (Object.getOwnPropertySymbols) {
1642
1641
  var i = Object.getOwnPropertySymbols(e);
1643
1642
  for (r = 0; r < i.length; r++) {
@@ -1646,7 +1645,7 @@
1646
1645
  }
1647
1646
  return o;
1648
1647
  }
1649
- function Pt(e, n) {
1648
+ function At(e, n) {
1650
1649
  if (null == e) return {};
1651
1650
  var t = {};
1652
1651
  for (var r in e) {
@@ -1657,8 +1656,8 @@
1657
1656
  }
1658
1657
  return t;
1659
1658
  }
1660
- function _t() {
1661
- return _t = Object.assign ? Object.assign.bind() : function(e) {
1659
+ function Pt() {
1660
+ return Pt = Object.assign ? Object.assign.bind() : function(e) {
1662
1661
  for (var n = 1; n < arguments.length; n++) {
1663
1662
  var t = arguments[n];
1664
1663
  for (var r in t) {
@@ -1666,83 +1665,83 @@
1666
1665
  }
1667
1666
  }
1668
1667
  return e;
1669
- }, _t.apply(null, arguments);
1668
+ }, Pt.apply(null, arguments);
1670
1669
  }
1671
- var zt = {
1672
- odd: vt,
1673
- even: pt,
1674
- none: vt
1670
+ var _t = {
1671
+ odd: ft,
1672
+ even: vt,
1673
+ none: ft
1675
1674
  };
1676
1675
  /** @public */
1677
1676
  /** @public */
1678
1677
  /** @public */
1679
1678
  /** @public */
1680
- /** @public */ var Mt = {
1679
+ /** @public */ var zt = {
1681
1680
  /** @private. Generally passed by Table rather than added directly. */
1682
- activeElementId: C().string,
1683
- actionPrimary: C().element,
1684
- actionsSecondary: C().element,
1685
- children: C().node,
1686
- data: C().any,
1687
- disabled: C().bool,
1681
+ activeElementId: w().string,
1682
+ actionPrimary: w().element,
1683
+ actionsSecondary: w().element,
1684
+ children: w().node,
1685
+ data: w().any,
1686
+ disabled: w().bool,
1688
1687
  /** @private. Generally passed by Table rather than added directly. */
1689
- isDraggable: C().bool,
1688
+ isDraggable: w().bool,
1690
1689
  /** @private. Generally passed by Table rather than added directly. */
1691
- dragId: C().oneOfType([ C().string, C().number ]),
1692
- elementRef: C().oneOfType([ C().func, C().object ]),
1690
+ dragId: w().oneOfType([ w().string, w().number ]),
1691
+ elementRef: w().oneOfType([ w().func, w().object ]),
1693
1692
  /** @private. */
1694
- expandable: C().bool,
1695
- expanded: C().bool,
1693
+ expandable: w().bool,
1694
+ expanded: w().bool,
1696
1695
  /** @private. Identifies the unique id (or ids) for an expanded row (or rows). In expandable rows `ExpansionRowIcon` uses `expansionRowId` for accessibility aria attributes. */
1697
- expansionRowIds: C().string,
1698
- expansionRow: C().oneOfType([ C().element, C().arrayOf(C().element) ]),
1696
+ expansionRowIds: w().string,
1697
+ expansionRow: w().oneOfType([ w().element, w().arrayOf(w().element) ]),
1699
1698
  /** @private. Indicates whether the table has an actions column. */
1700
- actions: C().bool,
1699
+ actions: w().bool,
1701
1700
  /** @private. Generally passed by `Table` rather than added directly. */
1702
- index: C().number,
1701
+ index: w().number,
1703
1702
  /** @private. Generally passed by `Table` rather than added directly. */
1704
- movableColumns: C().bool,
1705
- onClick: C().func,
1706
- onExpansion: C().func,
1703
+ movableColumns: w().bool,
1704
+ onClick: w().func,
1705
+ onExpansion: w().func,
1707
1706
  /** @private. This is passed through and works as expected. */
1708
- onKeyDown: C().func,
1707
+ onKeyDown: w().func,
1709
1708
  /** @private. Generally passed by `Table` rather than added directly. */
1710
- onRequestMoveRow: C().func,
1711
- onRequestToggle: C().func,
1709
+ onRequestMoveRow: w().func,
1710
+ onRequestToggle: w().func,
1712
1711
  /** @private. Generally passed by `Table` rather than added directly. */
1713
- primaryColumnIndex: C().number,
1714
- rowScreenReaderText: C().string,
1715
- selected: C().bool,
1712
+ primaryColumnIndex: w().number,
1713
+ rowScreenReaderText: w().string,
1714
+ selected: w().bool,
1716
1715
  /** @private. */
1717
- stripe: C().oneOf([ "odd", "even", "none" ])
1716
+ stripe: w().oneOf([ "odd", "even", "none" ])
1718
1717
  };
1719
- var $t = r().createElement(Bn(), null);
1720
- var Nt = r().forwardRef((function(e, n) {
1718
+ var Mt = r().createElement(Kn(), null);
1719
+ var $t = r().forwardRef((function(e, n) {
1721
1720
 
1722
- return r().createElement(De(), _t({
1723
- content: (0, j._)("Actions"),
1721
+ return r().createElement(je(), Pt({
1722
+ content: (0, T._)("Actions"),
1724
1723
  contentRelationship: "label"
1725
- }, e), r().createElement(Fn(), {
1724
+ }, e), r().createElement(Vn(), {
1726
1725
  appearance: "subtle",
1727
1726
  "data-test": "actions-secondary-toggle",
1728
- icon: $t,
1727
+ icon: Mt,
1729
1728
  elementRef: n
1730
1729
  }));
1731
1730
  }));
1732
- function Lt(e) {
1731
+ function Nt(e) {
1733
1732
  var n;
1734
- var o = e.actions, i = e.actionPrimary, l = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, m = e.expanded, b = e.expansionRowIds, y = e.expansionRow, g = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, O = e.onRequestToggle, k = e.primaryColumnIndex, R = k === void 0 ? 0 : k, E = e.rowScreenReaderText, I = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = At(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1733
+ var o = e.actions, i = e.actionPrimary, l = e.actionsSecondary, u = e.children, s = e.data, c = e.dragId, d = e.disabled, f = e.isDraggable, v = e.elementRef, p = e.expandable, m = e.expanded, h = e.expansionRowIds, y = e.expansionRow, g = e.index, w = e.movableColumns, C = e.onClick, x = e.onExpansion, S = e.onKeyDown, O = e.onRequestToggle, k = e.primaryColumnIndex, R = k === void 0 ? 0 : k, E = e.rowScreenReaderText, D = e.selected, q = e.stripe, A = q === void 0 ? "none" : q, P = e.style, _ = qt(e, [ "actions", "actionPrimary", "actionsSecondary", "children", "data", "dragId", "disabled", "isDraggable", "elementRef", "expandable", "expanded", "expansionRowIds", "expansionRow", "index", "movableColumns", "onClick", "onExpansion", "onKeyDown", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "stripe", "style" ]);
1735
1734
  // @docs-props-type RowPropsBase
1736
1735
  var z = (0, t.useMemo)((function() {
1737
1736
  return {
1738
- id: f ? c : (0, D.createGUID)(),
1737
+ id: f ? c : (0, j.createGUID)(),
1739
1738
  disabled: !f
1740
1739
  };
1741
1740
  }), [ f, c ]);
1742
- var M = (0, a.useSortable)(z), $ = M.attributes, N = M.listeners, W = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1741
+ var M = (0, a.useSortable)(z), $ = M.attributes, L = M.listeners, W = M.transform, H = M.transition, K = M.setNodeRef, B = M.setActivatorNodeRef;
1743
1742
  var V = (0, t.useMemo)((function() {
1744
- return f ? Tt(Tt({}, P), {}, {
1745
- transform: Hn.CSS.Translate.toString(W),
1743
+ return f ? It(It({}, P), {}, {
1744
+ transform: Wn.CSS.Translate.toString(W),
1746
1745
  transition: H
1747
1746
  }) : P;
1748
1747
  }), [ f, W, H, P ]);
@@ -1817,7 +1816,7 @@
1817
1816
  };
1818
1817
  function Z(e) {
1819
1818
  F.current = e;
1820
- L(v, e);
1819
+ N(v, e);
1821
1820
  if (f) {
1822
1821
  K(e);
1823
1822
  }
@@ -1842,26 +1841,26 @@
1842
1841
  ne = "".concat((re = ee[0]) === null || re === void 0 ? void 0 : re.props.children);
1843
1842
  if (false) {}
1844
1843
  }
1845
- var oe = (0, T.sprintf)((0, j._)("%(selected)s"), {
1846
- selected: I ? "selected" : "unselected"
1844
+ var oe = (0, I.sprintf)((0, T._)("%(selected)s"), {
1845
+ selected: D ? "selected" : "unselected"
1847
1846
  });
1848
- var ie = zt[A];
1847
+ var ie = _t[A];
1849
1848
  var ae = m ? t.Children.count(y) + 1 : undefined;
1850
1849
  var le = w ? "false" : undefined;
1851
1850
  var ue = function e() {
1852
1851
 
1853
- return r().createElement(Nt, null);
1852
+ return r().createElement($t, null);
1854
1853
  };
1855
- var se = (0, T.sprintf)((0, j._)("Collapse row - %(rowLabelValue)s"), {
1854
+ var se = (0, I.sprintf)((0, T._)("Collapse row - %(rowLabelValue)s"), {
1856
1855
  rowLabelValue: ne
1857
1856
  });
1858
- var ce = (0, T.sprintf)((0, j._)("Expand row - %(rowLabelValue)s"), {
1857
+ var ce = (0, I.sprintf)((0, T._)("Expand row - %(rowLabelValue)s"), {
1859
1858
  rowLabelValue: ne
1860
1859
  });
1861
1860
 
1862
- return r().createElement(ie, _t({
1861
+ return r().createElement(ie, Pt({
1863
1862
  "data-test": "row",
1864
- "data-test-selected": O ? I : undefined,
1863
+ "data-test-selected": O ? D : undefined,
1865
1864
  $clickable: !!C,
1866
1865
  "data-has-movable-columns": w ? "true" : undefined,
1867
1866
  disabled: !!d,
@@ -1869,18 +1868,18 @@
1869
1868
  $isDraggable: !!f,
1870
1869
  ref: Z,
1871
1870
  tabIndex: C ? 0 : undefined
1872
- }, h()(_, "data"), {
1871
+ }, b()(_, "data"), {
1873
1872
  onClick: C ? U : undefined,
1874
1873
  onKeyDown: X,
1875
- $rowSelected: !!(O && I),
1874
+ $rowSelected: !!(O && D),
1876
1875
  style: V
1877
- }), f && g != null && r().createElement(ft, _t({
1878
- "aria-label": (0, T.sprintf)((0, j._)("Reorder %(rowLabelValue)s"), {
1876
+ }), f && g != null && r().createElement(dt, Pt({
1877
+ "aria-label": (0, I.sprintf)((0, T._)("Reorder %(rowLabelValue)s"), {
1879
1878
  rowLabelValue: ne
1880
1879
  }),
1881
1880
  setActivatorNodeRef: B,
1882
- listeners: N
1883
- }, $)), O && r().createElement(Se, {
1881
+ listeners: L
1882
+ }, $)), O && r().createElement(xe, {
1884
1883
  align: "center",
1885
1884
  appearance: C ? "rowLink" : "data",
1886
1885
  disabled: d,
@@ -1888,15 +1887,15 @@
1888
1887
  "data-movable-column": le,
1889
1888
  rowSpan: ae,
1890
1889
  "data-test": "toggle"
1891
- }, r().createElement(Rt, {
1892
- "aria-label": (0, T.sprintf)((0, j._)("%(rowLabelValue)s %(selectedString)s"), {
1890
+ }, r().createElement(kt, {
1891
+ "aria-label": (0, I.sprintf)((0, T._)("%(rowLabelValue)s %(selectedString)s"), {
1893
1892
  rowLabelValue: ne,
1894
1893
  selectedString: oe
1895
1894
  }),
1896
1895
  disabled: d,
1897
1896
  onClick: Y,
1898
- selected: I
1899
- })), p && y && r().createElement(Se, {
1897
+ selected: D
1898
+ })), p && y && r().createElement(xe, {
1900
1899
  align: "center",
1901
1900
  appearance: "data",
1902
1901
  "data-movable-column": le,
@@ -1904,41 +1903,41 @@
1904
1903
  expand: m,
1905
1904
  rowSpan: ae,
1906
1905
  variant: "expand"
1907
- }, r().createElement(ot, {
1906
+ }, r().createElement(rt, {
1908
1907
  expanded: m,
1909
1908
  onClick: G,
1910
1909
  title: m ? se : ce,
1911
- "aria-controls": m ? b : undefined,
1910
+ "aria-controls": m ? h : undefined,
1912
1911
  "aria-expanded": m
1913
- })), p && !y && r().createElement(Se, {
1912
+ })), p && !y && r().createElement(xe, {
1914
1913
  variant: "expand",
1915
1914
  "data-movable-column": le
1916
- }), ee, o && !i && !l && r().createElement(Se, {
1915
+ }), ee, o && !i && !l && r().createElement(xe, {
1917
1916
  align: "right",
1918
1917
  appearance: C ? "rowLink" : "data",
1919
1918
  "data-test": "row-actions",
1920
1919
  variant: "actions",
1921
1920
  "data-movable-column": le
1922
- }), (i || l) && r().createElement(Se, {
1921
+ }), (i || l) && r().createElement(xe, {
1923
1922
  align: "right",
1924
1923
  appearance: "data",
1925
1924
  "data-test": "row-actions",
1926
1925
  variant: "actions",
1927
1926
  "data-movable-column": le
1928
- }, i && J(), l && r().createElement(Xn(), {
1927
+ }, i && J(), l && r().createElement(Un(), {
1929
1928
  toggle: ue()
1930
1929
  }, Q())));
1931
1930
  }
1932
- Lt.propTypes = Mt;
1933
- Lt.splunkUiType = "Table.Row";
1934
- /* harmony default export */ const Wt = Lt;
1931
+ Nt.propTypes = zt;
1932
+ Nt.splunkUiType = "Table.Row";
1933
+ /* harmony default export */ const Lt = Nt;
1935
1934
  // CONCATENATED MODULE: ./src/Table/TableContext.ts
1936
- var Ht = (0, t.createContext)({});
1937
- Ht.displayName = "Table";
1938
- /* harmony default export */ const Kt = Ht;
1935
+ var Wt = (0, t.createContext)({});
1936
+ Wt.displayName = "Table";
1937
+ /* harmony default export */ const Ht = Wt;
1939
1938
  // CONCATENATED MODULE: ./src/Table/Head.tsx
1940
- function Bt() {
1941
- return Bt = Object.assign ? Object.assign.bind() : function(e) {
1939
+ function Kt() {
1940
+ return Kt = Object.assign ? Object.assign.bind() : function(e) {
1942
1941
  for (var n = 1; n < arguments.length; n++) {
1943
1942
  var t = arguments[n];
1944
1943
  for (var r in t) {
@@ -1946,11 +1945,11 @@
1946
1945
  }
1947
1946
  }
1948
1947
  return e;
1949
- }, Bt.apply(null, arguments);
1948
+ }, Kt.apply(null, arguments);
1950
1949
  }
1951
- function Vt(e, n) {
1950
+ function Bt(e, n) {
1952
1951
  if (null == e) return {};
1953
- var t, r, o = Ft(e, n);
1952
+ var t, r, o = Vt(e, n);
1954
1953
  if (Object.getOwnPropertySymbols) {
1955
1954
  var i = Object.getOwnPropertySymbols(e);
1956
1955
  for (r = 0; r < i.length; r++) {
@@ -1959,7 +1958,7 @@
1959
1958
  }
1960
1959
  return o;
1961
1960
  }
1962
- function Ft(e, n) {
1961
+ function Vt(e, n) {
1963
1962
  if (null == e) return {};
1964
1963
  var t = {};
1965
1964
  for (var r in e) {
@@ -1970,42 +1969,42 @@
1970
1969
  }
1971
1970
  return t;
1972
1971
  }
1973
- var Ut = {
1972
+ var Ft = {
1974
1973
  /** @private. */
1975
- actions: C().arrayOf(C().node),
1974
+ actions: w().arrayOf(w().node),
1976
1975
  /** @private. */
1977
- actionsColumnWidth: C().number,
1976
+ actionsColumnWidth: w().number,
1978
1977
  /** @private */
1979
- cellMinWidth: C().number,
1980
- children: C().node,
1981
- elementRef: C().oneOfType([ C().func, C().object ]),
1978
+ cellMinWidth: w().number,
1979
+ children: w().node,
1980
+ elementRef: w().oneOfType([ w().func, w().object ]),
1982
1981
  /** @private. */
1983
- hasDragColumn: C().bool,
1982
+ hasDragColumn: w().bool,
1984
1983
  /** @private. */
1985
- hasInfoColumn: C().bool,
1984
+ hasInfoColumn: w().bool,
1986
1985
  /** @private. */
1987
- onAutosizeColumn: C().func,
1986
+ onAutosizeColumn: w().func,
1988
1987
  /** @private. */
1989
- onRequestMoveColumn: C().func,
1988
+ onRequestMoveColumn: w().func,
1990
1989
  /** @private. */
1991
- onRequestResizeColumn: C().func,
1990
+ onRequestResizeColumn: w().func,
1992
1991
  /** @private. */
1993
- onRequestToggleAllRows: C().func,
1992
+ onRequestToggleAllRows: w().func,
1994
1993
  /** @private. */
1995
- rowSelection: C().oneOf([ "all", "some", "none" ])
1994
+ rowSelection: w().oneOf([ "all", "some", "none" ])
1996
1995
  };
1997
- var Xt = 1;
1998
- var Yt = {
1996
+ var Ut = 1;
1997
+ var Xt = {
1999
1998
  all: true,
2000
1999
  none: false,
2001
2000
  some: "some"
2002
2001
  };
2003
- var Gt = (0, j._)("No rows selected");
2004
- var Jt = (0, j._)("Some rows selected");
2005
- var Qt = (0, j._)("All rows selected");
2006
- var Zt = function e(n) {
2002
+ var Yt = (0, T._)("No rows selected");
2003
+ var Gt = (0, T._)("Some rows selected");
2004
+ var Jt = (0, T._)("All rows selected");
2005
+ var Qt = function e(n) {
2007
2006
  var t, r;
2008
- var o = sn();
2007
+ var o = un();
2009
2008
  if (!n) {
2010
2009
  return [];
2011
2010
  }
@@ -2014,10 +2013,10 @@
2014
2013
  return e.clientWidth - parseFloat(n.getPropertyValue("padding-right")) - parseFloat(n.getPropertyValue("padding-left"));
2015
2014
  }));
2016
2015
  };
2017
- function er(e) {
2018
- var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, m = e.onRequestToggleAllRows, b = e.rowSelection, h = Vt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2016
+ function Zt(e) {
2017
+ var n = e.actions, o = n === void 0 ? [] : n, i = e.actionsColumnWidth, a = e.cellMinWidth, l = a === void 0 ? 60 : a, u = e.children, s = e.elementRef, c = e.hasDragColumn, d = e.hasInfoColumn, f = e.onAutosizeColumn, v = e.onRequestMoveColumn, p = e.onRequestResizeColumn, m = e.onRequestToggleAllRows, b = e.rowSelection, h = Bt(e, [ "actions", "actionsColumnWidth", "cellMinWidth", "children", "elementRef", "hasDragColumn", "hasInfoColumn", "onAutosizeColumn", "onRequestMoveColumn", "onRequestResizeColumn", "onRequestToggleAllRows", "rowSelection" ]);
2019
2018
  // @docs-props-type HeadPropsBase
2020
- var y = (0, t.useContext)(Kt), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
2019
+ var y = (0, t.useContext)(Ht), g = y.headType, w = y.tableContainerWidthWithoutBorders, C = y.resizableFillLayout;
2021
2020
  var x = (0, t.useRef)(null);
2022
2021
  var S = (0, t.useRef)([]);
2023
2022
  (0, t.useEffect)((function() {
@@ -2038,7 +2037,7 @@
2038
2037
  }), [ u, v ]);
2039
2038
  var k = (0, t.useCallback)((function(e, n) {
2040
2039
  var t = n.columnId, r = n.id, o = n.index, i = n.width;
2041
- var a = Zt(x.current);
2040
+ var a = Qt(x.current);
2042
2041
  if (o >= a.length) {
2043
2042
  p === null || p === void 0 ? void 0 : p(e, n);
2044
2043
  return;
@@ -2138,7 +2137,7 @@
2138
2137
  }
2139
2138
  }), [ l, p, w ]);
2140
2139
  var R = (0, t.useCallback)((function(e) {
2141
- L(s, e);
2140
+ N(s, e);
2142
2141
  x.current = e;
2143
2142
  }), [ s ]);
2144
2143
  var E = (0, t.useMemo)((function() {
@@ -2161,16 +2160,16 @@
2161
2160
  S.current = e;
2162
2161
  return n;
2163
2162
  }), [ E, C, k, p, v, O, f ]);
2164
- var j = b === undefined ? undefined : Yt[b];
2163
+ var j = b === undefined ? undefined : Xt[b];
2165
2164
  var D = i || 48;
2166
2165
  var q = g === "fixed" ? "fixed-head" : "head";
2167
2166
  var A;
2168
2167
  if (j === "some") {
2169
- A = Jt;
2168
+ A = Gt;
2170
2169
  } else if (j) {
2171
- A = Qt;
2170
+ A = Jt;
2172
2171
  } else {
2173
- A = Gt;
2172
+ A = Yt;
2174
2173
  }
2175
2174
  var P = (0, t.useMemo)((function() {
2176
2175
  return {
@@ -2183,33 +2182,33 @@
2183
2182
  };
2184
2183
  }), [ i ]);
2185
2184
 
2186
- return r().createElement($n, Bt({
2185
+ return r().createElement(Mn, Kt({
2187
2186
  ref: R,
2188
2187
  "data-test": q,
2189
2188
  $isFixed: g === "fixed",
2190
- $zIndex: I + Xt
2191
- }, h), r().createElement(Wt, null, c && r().createElement(Wn, {
2189
+ $zIndex: I + Ut
2190
+ }, h), r().createElement(Lt, null, c && r().createElement(Ln, {
2192
2191
  key: "drag_rows_head_cell",
2193
2192
  "data-test": "drag-rows-head-cell",
2194
2193
  align: "center",
2195
2194
  resizable: false
2196
- }), m && r().createElement(Nn, {
2195
+ }), m && r().createElement($n, {
2197
2196
  key: "toggle_all",
2198
2197
  resizable: false,
2199
2198
  align: "center",
2200
2199
  variant: "toggleAll",
2201
2200
  truncate: false,
2202
2201
  "data-test": "toggle-all"
2203
- }, r().createElement(Rt, {
2202
+ }, r().createElement(kt, {
2204
2203
  "aria-label": A,
2205
2204
  onClick: m,
2206
2205
  selected: j
2207
- })), d && r().createElement(Ln, {
2206
+ })), d && r().createElement(Nn, {
2208
2207
  key: "more_info_head_cell",
2209
2208
  "data-test": "more-info-head-cell",
2210
2209
  resizable: false,
2211
2210
  variant: "info"
2212
- }), T, o.length > 0 && r().createElement(Mn, {
2211
+ }), T, o.length > 0 && r().createElement(zn, {
2213
2212
  key: "actions_head_cell",
2214
2213
  "data-test": "actions-head-cell",
2215
2214
  align: "right",
@@ -2217,7 +2216,7 @@
2217
2216
  width: D,
2218
2217
  style: P,
2219
2218
  variant: "actions"
2220
- }, o), o.length === 0 && i && r().createElement(Mn, {
2219
+ }, o), o.length === 0 && i && r().createElement(zn, {
2221
2220
  key: "actions_head_cell",
2222
2221
  "data-test": "actions-head-cell",
2223
2222
  align: "right",
@@ -2227,24 +2226,24 @@
2227
2226
  variant: "actions"
2228
2227
  }, " ")));
2229
2228
  }
2230
- er.propTypes = Ut;
2231
- er.splunkUiType = "Table.Head";
2232
- /* harmony default export */ const nr = er;
2229
+ Zt.propTypes = Ft;
2230
+ Zt.splunkUiType = "Table.Head";
2231
+ /* harmony default export */ const er = Zt;
2233
2232
  // CONCATENATED MODULE: external "lodash/isFinite"
2234
- const tr = require("lodash/isFinite");
2235
- var rr = e.n(tr);
2233
+ const nr = require("lodash/isFinite");
2234
+ var tr = e.n(nr);
2236
2235
  // CONCATENATED MODULE: external "lodash/isFunction"
2237
- const or = require("lodash/isFunction");
2238
- var ir = e.n(or);
2236
+ const rr = require("lodash/isFunction");
2237
+ var or = e.n(rr);
2239
2238
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
2240
- const ar = require("@splunk/react-ui/Popover");
2241
- var lr = e.n(ar);
2239
+ const ir = require("@splunk/react-ui/Popover");
2240
+ var ar = e.n(ir);
2242
2241
  // CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
2243
- const ur = require("@splunk/react-ui/useControlled");
2244
- var sr = e.n(ur);
2242
+ const lr = require("@splunk/react-ui/useControlled");
2243
+ var ur = e.n(lr);
2245
2244
  // CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
2246
- function cr() {
2247
- return cr = Object.assign ? Object.assign.bind() : function(e) {
2245
+ function sr() {
2246
+ return sr = Object.assign ? Object.assign.bind() : function(e) {
2248
2247
  for (var n = 1; n < arguments.length; n++) {
2249
2248
  var t = arguments[n];
2250
2249
  for (var r in t) {
@@ -2252,29 +2251,29 @@
2252
2251
  }
2253
2252
  }
2254
2253
  return e;
2255
- }, cr.apply(null, arguments);
2254
+ }, sr.apply(null, arguments);
2256
2255
  }
2257
- function dr(e, n) {
2258
- return br(e) || mr(e, n) || vr(e, n) || fr();
2256
+ function cr(e, n) {
2257
+ return mr(e) || pr(e, n) || fr(e, n) || dr();
2259
2258
  }
2260
- function fr() {
2259
+ function dr() {
2261
2260
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2262
2261
  }
2263
- function vr(e, n) {
2262
+ function fr(e, n) {
2264
2263
  if (e) {
2265
- if ("string" == typeof e) return pr(e, n);
2264
+ if ("string" == typeof e) return vr(e, n);
2266
2265
  var t = {}.toString.call(e).slice(8, -1);
2267
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pr(e, n) : void 0;
2266
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? vr(e, n) : void 0;
2268
2267
  }
2269
2268
  }
2270
- function pr(e, n) {
2269
+ function vr(e, n) {
2271
2270
  (null == n || n > e.length) && (n = e.length);
2272
2271
  for (var t = 0, r = Array(n); t < n; t++) {
2273
2272
  r[t] = e[t];
2274
2273
  }
2275
2274
  return r;
2276
2275
  }
2277
- function mr(e, n) {
2276
+ function pr(e, n) {
2278
2277
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2279
2278
  if (null != t) {
2280
2279
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2296,12 +2295,12 @@
2296
2295
  return l;
2297
2296
  }
2298
2297
  }
2299
- function br(e) {
2298
+ function mr(e) {
2300
2299
  if (Array.isArray(e)) return e;
2301
2300
  }
2302
- function hr(e, n) {
2301
+ function br(e, n) {
2303
2302
  if (null == e) return {};
2304
- var t, r, o = yr(e, n);
2303
+ var t, r, o = hr(e, n);
2305
2304
  if (Object.getOwnPropertySymbols) {
2306
2305
  var i = Object.getOwnPropertySymbols(e);
2307
2306
  for (r = 0; r < i.length; r++) {
@@ -2310,7 +2309,7 @@
2310
2309
  }
2311
2310
  return o;
2312
2311
  }
2313
- function yr(e, n) {
2312
+ function hr(e, n) {
2314
2313
  if (null == e) return {};
2315
2314
  var t = {};
2316
2315
  for (var r in e) {
@@ -2323,82 +2322,82 @@
2323
2322
  }
2324
2323
  /** @public */
2325
2324
  /** @public */
2326
- /** @public */ var gr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2327
- var wr = {
2328
- align: C().oneOf([ "left", "center", "right" ]),
2329
- buttonRef: C().oneOfType([ C().func, C().object ]),
2330
- canCoverHead: C().bool,
2331
- children: C().node.isRequired,
2332
- closeReasons: C().arrayOf(C().oneOf(gr)),
2333
- columnId: C().string,
2325
+ /** @public */ var yr = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
2326
+ var gr = {
2327
+ align: w().oneOf([ "left", "center", "right" ]),
2328
+ buttonRef: w().oneOfType([ w().func, w().object ]),
2329
+ canCoverHead: w().bool,
2330
+ children: w().node.isRequired,
2331
+ closeReasons: w().arrayOf(w().oneOf(yr)),
2332
+ columnId: w().string,
2334
2333
  /** @private. */
2335
- dragId: C().oneOfType([ C().string, C().number ]),
2336
- elementRef: C().oneOfType([ C().func, C().object ]),
2337
- headCellScreenReaderText: C().string,
2338
- focusToggleReasons: C().arrayOf(C().oneOf(gr)),
2334
+ dragId: w().oneOfType([ w().string, w().number ]),
2335
+ elementRef: w().oneOfType([ w().func, w().object ]),
2336
+ headCellScreenReaderText: w().string,
2337
+ focusToggleReasons: w().arrayOf(w().oneOf(yr)),
2339
2338
  /** @private The index of the cell, skipping the info column. */
2340
- index: C().number,
2341
- label: C().node,
2339
+ index: w().number,
2340
+ label: w().node,
2342
2341
  /** @private. */
2343
- onAutosizeColumn: C().func,
2342
+ onAutosizeColumn: w().func,
2344
2343
  /**
2345
2344
  * @private. This will be passed through, and will work as expected.
2346
2345
  */
2347
- onKeyDown: C().func,
2348
- onRequestClose: C().func,
2346
+ onKeyDown: w().func,
2347
+ onRequestClose: w().func,
2349
2348
  /** @private. */
2350
- onRequestMoveColumn: C().func,
2351
- onRequestOpen: C().func,
2349
+ onRequestMoveColumn: w().func,
2350
+ onRequestOpen: w().func,
2352
2351
  /** @private. */
2353
- onRequestResize: C().func,
2354
- open: C().bool,
2355
- repositionMode: C().oneOf([ "none", "flip", "any" ]),
2356
- resizable: C().bool,
2357
- retainFocus: C().bool,
2358
- takeFocus: C().bool,
2359
- truncate: C().bool,
2352
+ onRequestResize: w().func,
2353
+ open: w().bool,
2354
+ repositionMode: w().oneOf([ "none", "flip", "any" ]),
2355
+ resizable: w().bool,
2356
+ retainFocus: w().bool,
2357
+ takeFocus: w().bool,
2358
+ truncate: w().bool,
2360
2359
  /**
2361
2360
  * @private
2362
2361
  * Used internally to suppress focus when this `HeadDropdownCell` is superseded by one in an
2363
2362
  * overlaid `HeadTable` for user interactions.
2364
2363
  */
2365
- visible: C().bool,
2366
- width: C().number,
2364
+ visible: w().bool,
2365
+ width: w().number,
2367
2366
  /** @private. */
2368
- variant: C().oneOf([ "toggleAll", "info", "actions" ])
2367
+ variant: w().oneOf([ "toggleAll", "info", "actions" ])
2369
2368
  };
2370
- var Cr = [ "contentClick", "escapeKey", "toggleClick" ];
2371
- function xr(e) {
2369
+ var wr = [ "contentClick", "escapeKey", "toggleClick" ];
2370
+ function Cr(e) {
2372
2371
  var n;
2373
- var o = e.align, i = o === void 0 ? "left" : o, l = e.buttonRef, u = e.canCoverHead, s = u === void 0 ? true : u, c = e.children, d = e.closeReasons, f = d === void 0 ? gr : d, v = e.columnId, p = e.dragId, m = e.elementRef, b = e.headCellScreenReaderText, h = e.focusToggleReasons, y = h === void 0 ? Cr : h, g = e.id, w = e.index, C = e.label, x = e.onAutosizeColumn, S = e.onKeyDown, O = e.onRequestClose, k = e.onRequestMoveColumn, E = e.onRequestOpen, I = e.onRequestResize, q = e.open, P = e.repositionMode, _ = P === void 0 ? "flip" : P, z = e.resizable, M = z === void 0 ? true : z, $ = e.retainFocus, N = e.style, W = e.takeFocus, H = W === void 0 ? true : W, K = e.truncate, B = K === void 0 ? true : K, V = e.variant, F = e.visible, U = F === void 0 ? true : F, X = e.width, Y = hr(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2372
+ var o = e.align, i = o === void 0 ? "left" : o, l = e.buttonRef, u = e.canCoverHead, s = u === void 0 ? true : u, c = e.children, d = e.closeReasons, f = d === void 0 ? yr : d, v = e.columnId, p = e.dragId, m = e.elementRef, b = e.headCellScreenReaderText, h = e.focusToggleReasons, y = h === void 0 ? wr : h, g = e.id, w = e.index, C = e.label, x = e.onAutosizeColumn, S = e.onKeyDown, O = e.onRequestClose, R = e.onRequestMoveColumn, E = e.onRequestOpen, D = e.onRequestResize, A = e.open, P = e.repositionMode, _ = P === void 0 ? "flip" : P, z = e.resizable, M = z === void 0 ? true : z, $ = e.retainFocus, L = e.style, W = e.takeFocus, H = W === void 0 ? true : W, K = e.truncate, B = K === void 0 ? true : K, V = e.variant, F = e.visible, U = F === void 0 ? true : F, X = e.width, Y = br(e, [ "align", "buttonRef", "canCoverHead", "children", "closeReasons", "columnId", "dragId", "elementRef", "headCellScreenReaderText", "focusToggleReasons", "id", "index", "label", "onAutosizeColumn", "onKeyDown", "onRequestClose", "onRequestMoveColumn", "onRequestOpen", "onRequestResize", "open", "repositionMode", "resizable", "retainFocus", "style", "takeFocus", "truncate", "variant", "visible", "width" ]);
2374
2373
  // @docs-props-type HeadDropdownCellPropsBase
2375
- var G = sr()({
2374
+ var G = ur()({
2376
2375
  componentName: "HeadDropdownCell",
2377
2376
  /* eslint-disable-next-line prefer-rest-params */
2378
2377
  componentProps: arguments[0],
2379
2378
  // see SUI-7028
2380
2379
  valuePropName: "open"
2381
2380
  });
2382
- var J = (0, t.useState)(), Q = dr(J, 2), Z = Q[0], ee = Q[1];
2383
- var ne = (0, t.useState)(null), te = dr(ne, 2), re = te[0], oe = te[1];
2384
- var ie = (0, t.useState)(null), ae = dr(ie, 2), le = ae[0], ue = ae[1];
2385
- var se = (0, t.useState)(false), ce = dr(se, 2), de = ce[0], fe = ce[1];
2386
- var ve = (0, D.createDOMID)("popover");
2387
- var pe = !!k;
2381
+ var J = (0, t.useState)(), Q = cr(J, 2), Z = Q[0], ee = Q[1];
2382
+ var ne = (0, t.useState)(null), te = cr(ne, 2), re = te[0], oe = te[1];
2383
+ var ie = (0, t.useState)(null), ae = cr(ie, 2), le = ae[0], ue = ae[1];
2384
+ var se = (0, t.useState)(false), ce = cr(se, 2), de = ce[0], fe = ce[1];
2385
+ var ve = (0, j.createDOMID)("popover");
2386
+ var pe = !!R;
2388
2387
  var me = (0, a.useSortable)({
2389
2388
  // dragId is optional in HeadCell but required by useSortable
2390
2389
  // since it is always set in Table, use a type assertion here to avoid TypeScript error
2391
2390
  id: p
2392
2391
  }), be = me.attributes, he = me.listeners, ye = me.setNodeRef, ge = me.isDragging;
2393
2392
  var we = (0, t.useMemo)((function() {
2394
- return G ? q : de;
2395
- }), [ G, de, q ]);
2396
- var Ce = R()(U);
2393
+ return G ? A : de;
2394
+ }), [ G, de, A ]);
2395
+ var Ce = k()(U);
2397
2396
  var xe = (n = g !== null && g !== void 0 ? g : v) !== null && n !== void 0 ? n : (0,
2398
- D.createDOMID)("headCellId-");
2397
+ j.createDOMID)("headCellId-");
2399
2398
  (0, t.useEffect)((function() {
2400
2399
  if (false) {}
2401
- }), [ I, B ]);
2400
+ }), [ D, B ]);
2402
2401
  var Se = (0, t.useCallback)((function(e) {
2403
2402
  var n = e.reason, t = e.event;
2404
2403
  if (n === "clickAway" && t !== undefined) {
@@ -2411,8 +2410,8 @@
2411
2410
  r = r.parentNode;
2412
2411
  }
2413
2412
  }
2414
- if (we && A()(f, n) && w !== undefined) {
2415
- if (A()(y, n)) {
2413
+ if (we && q()(f, n) && w !== undefined) {
2414
+ if (q()(y, n)) {
2416
2415
  le === null || le === void 0 ? void 0 : le.focus();
2417
2416
  }
2418
2417
  if (!G) {
@@ -2433,7 +2432,7 @@
2433
2432
  }
2434
2433
  }), [ Se, Ce, U ]);
2435
2434
  var Oe = (0, t.useCallback)((function(e) {
2436
- L(m, e);
2435
+ N(m, e);
2437
2436
  if (pe) {
2438
2437
  ye(e);
2439
2438
  }
@@ -2441,9 +2440,9 @@
2441
2440
  var ke = (0, t.useCallback)((function(e) {
2442
2441
  ue(e);
2443
2442
  oe(e);
2444
- L(l, e);
2443
+ N(l, e);
2445
2444
  }), [ l ]);
2446
- var Re = (0, t.useCallback)((function(e) {
2445
+ var Ee = (0, t.useCallback)((function(e) {
2447
2446
  e.stopPropagation();
2448
2447
  // ignore clicks on the resize handle
2449
2448
  if (e.target.getAttribute("data-test") === "resize") {
@@ -2468,7 +2467,7 @@
2468
2467
  }
2469
2468
  }
2470
2469
  }), [ v, Se, w, G, we, E ]);
2471
- var Ie = (0, t.useCallback)((function(e) {
2470
+ var Te = (0, t.useCallback)((function(e) {
2472
2471
  if (w !== undefined) {
2473
2472
  S === null || S === void 0 ? void 0 : S(e, {
2474
2473
  index: w,
@@ -2483,7 +2482,7 @@
2483
2482
  });
2484
2483
  }), [ Se ]);
2485
2484
  var De = (0, t.useMemo)((function() {
2486
- if (Z !== undefined && rr()(Z)) {
2485
+ if (Z !== undefined && tr()(Z)) {
2487
2486
  var e;
2488
2487
  return {
2489
2488
  x: Z - ((e = re === null || re === void 0 ? void 0 : re.getBoundingClientRect().left) !== null && e !== void 0 ? e : 0)
@@ -2492,10 +2491,10 @@
2492
2491
  return undefined;
2493
2492
  }), [ Z, re ]);
2494
2493
  var qe = (0, t.useMemo)((function() {
2495
- return Ee()({}, N, {
2494
+ return Re()({}, L, {
2496
2495
  width: X
2497
2496
  });
2498
- }), [ N, X ]);
2497
+ }), [ L, X ]);
2499
2498
  var Ae;
2500
2499
  if (b) {
2501
2500
  Ae = b;
@@ -2503,19 +2502,19 @@
2503
2502
  Ae = C;
2504
2503
  }
2505
2504
 
2506
- return r().createElement(Be, cr({
2505
+ return r().createElement(Ke, sr({
2507
2506
  style: qe,
2508
2507
  "data-test": "head-cell",
2509
2508
  $isDragging: pe && ge,
2510
2509
  $variant: V,
2511
2510
  id: U ? xe : undefined,
2512
2511
  ref: Oe
2513
- }, Y), r().createElement(Ke, null, pe && r().createElement(Fe, cr({
2514
- "aria-label": (0, T.sprintf)((0, j._)("Reorder %(labelString)s"), {
2512
+ }, Y), r().createElement(He, null, pe && r().createElement(Ve, sr({
2513
+ "aria-label": (0, I.sprintf)((0, T._)("Reorder %(labelString)s"), {
2515
2514
  labelString: Ae
2516
2515
  }),
2517
2516
  "data-test": "drag"
2518
- }, be, he), r().createElement(Ve, null, r().createElement(Te(), null))), r().createElement(jn, {
2517
+ }, be, he), r().createElement(Be, null, r().createElement(Ie(), null))), r().createElement(Tn, {
2519
2518
  align: i,
2520
2519
  "aria-expanded": we,
2521
2520
  "aria-haspopup": true,
@@ -2529,17 +2528,17 @@
2529
2528
  label: C,
2530
2529
  resizable: U && M,
2531
2530
  onAutosizeColumn: x,
2532
- onRequestResize: I,
2533
- onClick: Re,
2534
- onKeyDown: Ie,
2531
+ onRequestResize: D,
2532
+ onClick: Ee,
2533
+ onKeyDown: Te,
2535
2534
  truncate: B,
2536
2535
  width: X,
2537
2536
  "data-test": "inner"
2538
- }), r().createElement(lr(), {
2537
+ }), r().createElement(ar(), {
2539
2538
  align: "center",
2540
2539
  anchor: re,
2541
2540
  "aria-labelledby": xe,
2542
- autoCloseWhenOffScreen: A()(f, "offScreen"),
2541
+ autoCloseWhenOffScreen: q()(f, "offScreen"),
2543
2542
  canCoverAnchor: s,
2544
2543
  defaultPlacement: "below",
2545
2544
  id: ve,
@@ -2549,7 +2548,7 @@
2549
2548
  repositionMode: _,
2550
2549
  retainFocus: $,
2551
2550
  takeFocus: H
2552
- }, ir()(c) ? function() {
2551
+ }, or()(c) ? function() {
2553
2552
 
2554
2553
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2555
2554
  return r().createElement("div", {
@@ -2562,29 +2561,29 @@
2562
2561
  onClick: je
2563
2562
  }, c))));
2564
2563
  }
2565
- xr.propTypes = wr;
2566
- xr.splunkUiType = "Table.HeadDropdownCell";
2567
- xr.possibleCloseReasons = gr;
2568
- /* harmony default export */ const Sr = xr;
2564
+ Cr.propTypes = gr;
2565
+ Cr.splunkUiType = "Table.HeadDropdownCell";
2566
+ Cr.possibleCloseReasons = yr;
2567
+ /* harmony default export */ const xr = Cr;
2569
2568
  // CONCATENATED MODULE: external "lodash/extend"
2570
- const Or = require("lodash/extend");
2571
- var kr = e.n(Or);
2569
+ const Sr = require("lodash/extend");
2570
+ var Or = e.n(Sr);
2572
2571
  // CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
2573
- var Rr = M()(ne).withConfig({
2572
+ var kr = z()(ee).withConfig({
2574
2573
  displayName: "HeadTableStyles__Styled",
2575
2574
  componentId: "g85wgf-0"
2576
2575
  })([ "min-width:0;table-layout:fixed;" ]);
2577
- var Er = M().div.withConfig({
2576
+ var Rr = z().div.withConfig({
2578
2577
  displayName: "HeadTableStyles__StyledDockedContainer",
2579
2578
  componentId: "g85wgf-1"
2580
- })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], $.variables.zindexFixedNavbar);
2581
- var Ir = M()(Er).withConfig({
2579
+ })([ "overflow:hidden;position:fixed;z-index:", ";@media print{display:none;}" ], M.variables.zindexFixedNavbar);
2580
+ var Er = z()(Rr).withConfig({
2582
2581
  displayName: "HeadTableStyles__StyledFixedContainer",
2583
2582
  componentId: "g85wgf-2"
2584
2583
  })([ "position:absolute;box-shadow:none;z-index:1;" ]);
2585
2584
  // CONCATENATED MODULE: ./src/Table/HeadTable.tsx
2586
- function Tr() {
2587
- return Tr = Object.assign ? Object.assign.bind() : function(e) {
2585
+ function Ir() {
2586
+ return Ir = Object.assign ? Object.assign.bind() : function(e) {
2588
2587
  for (var n = 1; n < arguments.length; n++) {
2589
2588
  var t = arguments[n];
2590
2589
  for (var r in t) {
@@ -2592,11 +2591,11 @@
2592
2591
  }
2593
2592
  }
2594
2593
  return e;
2595
- }, Tr.apply(null, arguments);
2594
+ }, Ir.apply(null, arguments);
2596
2595
  }
2597
- function jr(e, n) {
2596
+ function Tr(e, n) {
2598
2597
  if (null == e) return {};
2599
- var t, r, o = Dr(e, n);
2598
+ var t, r, o = jr(e, n);
2600
2599
  if (Object.getOwnPropertySymbols) {
2601
2600
  var i = Object.getOwnPropertySymbols(e);
2602
2601
  for (r = 0; r < i.length; r++) {
@@ -2605,7 +2604,7 @@
2605
2604
  }
2606
2605
  return o;
2607
2606
  }
2608
- function Dr(e, n) {
2607
+ function jr(e, n) {
2609
2608
  if (null == e) return {};
2610
2609
  var t = {};
2611
2610
  for (var r in e) {
@@ -2616,35 +2615,35 @@
2616
2615
  }
2617
2616
  return t;
2618
2617
  }
2619
- var qr = {
2620
- cellWidths: C().arrayOf(C().number).isRequired,
2621
- dragIndex: C().number,
2622
- elementRef: C().oneOfType([ C().func, C().object ]),
2623
- hasDragColumn: C().bool,
2624
- hasRowExpansion: C().bool,
2625
- hasRowSelection: C().bool,
2626
- headType: C().oneOf([ "docked", "fixed" ]).isRequired,
2627
- horizontalOffset: C().number,
2628
- isFixedColumn: C().bool,
2629
- rowSelection: C().oneOf([ "all", "some", "none" ]),
2630
- tableStyle: C().object,
2631
- tableWidth: C().number.isRequired,
2632
- tHead: C().element.isRequired,
2633
- top: C().number.isRequired,
2634
- width: C().number.isRequired
2618
+ var Dr = {
2619
+ cellWidths: w().arrayOf(w().number).isRequired,
2620
+ dragIndex: w().number,
2621
+ elementRef: w().oneOfType([ w().func, w().object ]),
2622
+ hasDragColumn: w().bool,
2623
+ hasRowExpansion: w().bool,
2624
+ hasRowSelection: w().bool,
2625
+ headType: w().oneOf([ "docked", "fixed" ]).isRequired,
2626
+ horizontalOffset: w().number,
2627
+ isFixedColumn: w().bool,
2628
+ rowSelection: w().oneOf([ "all", "some", "none" ]),
2629
+ tableStyle: w().object,
2630
+ tableWidth: w().number.isRequired,
2631
+ tHead: w().element.isRequired,
2632
+ top: w().number.isRequired,
2633
+ width: w().number.isRequired
2635
2634
  };
2636
2635
  /**
2637
2636
  * @private
2638
2637
  * HeadTable is an internal component that provides a detached table head that can
2639
2638
  * then be positioned in different ways outside of the main table.
2640
- */ function Ar(e) {
2641
- var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, m = e.top, b = e.width, y = jr(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
2639
+ */ function qr(e) {
2640
+ var n = e.cellWidths, o = e.elementRef, i = e.hasDragColumn, a = e.hasRowExpansion, l = e.hasRowSelection, u = e.headType, s = e.horizontalOffset, c = s === void 0 ? 0 : s, d = e.isFixedColumn, f = e.tableStyle, v = e.tableWidth, p = e.tHead, m = e.top, h = e.width, y = Tr(e, [ "cellWidths", "elementRef", "hasDragColumn", "hasRowExpansion", "hasRowSelection", "headType", "horizontalOffset", "isFixedColumn", "tableStyle", "tableWidth", "tHead", "top", "width" ]);
2642
2641
  // @docs-props-type HeadTablePropsBase
2643
2642
  var g = u === "docked";
2644
- var w = g ? Er : Ir;
2643
+ var w = g ? Rr : Er;
2645
2644
  var C = (0, t.useRef)(null);
2646
2645
  var x = (0, t.useCallback)((function(e) {
2647
- L(C, e);
2646
+ N(C, e);
2648
2647
  }), [ C ]);
2649
2648
  var S = 0;
2650
2649
  if (a) {
@@ -2668,7 +2667,7 @@
2668
2667
  return O.filter(t.isValidElement).map((function(e, r) {
2669
2668
 
2670
2669
  return (0, t.cloneElement)(e, {
2671
- style: kr()({}, e.props.style, {
2670
+ style: Or()({}, e.props.style, {
2672
2671
  width: n[r + S]
2673
2672
  })
2674
2673
  });
@@ -2681,40 +2680,40 @@
2681
2680
  var E = (0, t.useMemo)((function() {
2682
2681
  return {
2683
2682
  top: m,
2684
- width: b
2683
+ width: h
2685
2684
  };
2686
- }), [ m, b ]);
2685
+ }), [ m, h ]);
2687
2686
 
2688
2687
  return r().createElement(w, {
2689
2688
  style: E,
2690
2689
  ref: o
2691
- }, r().createElement(Rr, Tr({
2690
+ }, r().createElement(kr, Ir({
2692
2691
  "data-test": "".concat(u, "-head-table"),
2693
2692
  "data-fixed-column": d ? "true" : undefined,
2694
- style: kr()({}, f, {
2693
+ style: Or()({}, f, {
2695
2694
  marginLeft: c,
2696
2695
  width: d ? undefined : v
2697
2696
  })
2698
- }, h()(y, "dragIndex")), R));
2697
+ }, b()(y, "dragIndex")), R));
2699
2698
  }
2700
- Ar.propTypes = qr;
2701
- /* harmony default export */ const Pr = Ar;
2699
+ qr.propTypes = Dr;
2700
+ /* harmony default export */ const Ar = qr;
2702
2701
  // CONCATENATED MODULE: ./src/Table/KeyboardSensor.ts
2703
- function _r(e) {
2702
+ function Pr(e) {
2704
2703
  "@babel/helpers - typeof";
2705
- return _r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2704
+ return Pr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
2706
2705
  return typeof e;
2707
2706
  } : function(e) {
2708
2707
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2709
- }, _r(e);
2708
+ }, Pr(e);
2710
2709
  }
2711
- function zr(e, n) {
2712
- return Nr(e) || $r(e, n) || Hr(e, n) || Mr();
2710
+ function _r(e, n) {
2711
+ return $r(e) || Mr(e, n) || Wr(e, n) || zr();
2713
2712
  }
2714
- function Mr() {
2713
+ function zr() {
2715
2714
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2716
2715
  }
2717
- function $r(e, n) {
2716
+ function Mr(e, n) {
2718
2717
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
2719
2718
  if (null != t) {
2720
2719
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -2736,68 +2735,68 @@
2736
2735
  return l;
2737
2736
  }
2738
2737
  }
2739
- function Nr(e) {
2738
+ function $r(e) {
2740
2739
  if (Array.isArray(e)) return e;
2741
2740
  }
2742
- function Lr(e) {
2743
- return Br(e) || Kr(e) || Hr(e) || Wr();
2741
+ function Nr(e) {
2742
+ return Kr(e) || Hr(e) || Wr(e) || Lr();
2744
2743
  }
2745
- function Wr() {
2744
+ function Lr() {
2746
2745
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2747
2746
  }
2748
- function Hr(e, n) {
2747
+ function Wr(e, n) {
2749
2748
  if (e) {
2750
- if ("string" == typeof e) return Vr(e, n);
2749
+ if ("string" == typeof e) return Br(e, n);
2751
2750
  var t = {}.toString.call(e).slice(8, -1);
2752
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Vr(e, n) : void 0;
2751
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Br(e, n) : void 0;
2753
2752
  }
2754
2753
  }
2755
- function Kr(e) {
2754
+ function Hr(e) {
2756
2755
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
2757
2756
  }
2758
- function Br(e) {
2759
- if (Array.isArray(e)) return Vr(e);
2757
+ function Kr(e) {
2758
+ if (Array.isArray(e)) return Br(e);
2760
2759
  }
2761
- function Vr(e, n) {
2760
+ function Br(e, n) {
2762
2761
  (null == n || n > e.length) && (n = e.length);
2763
2762
  for (var t = 0, r = Array(n); t < n; t++) {
2764
2763
  r[t] = e[t];
2765
2764
  }
2766
2765
  return r;
2767
2766
  }
2768
- function Fr(e, n) {
2767
+ function Vr(e, n) {
2769
2768
  if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
2770
2769
  }
2771
- function Ur(e, n) {
2770
+ function Fr(e, n) {
2772
2771
  for (var t = 0; t < n.length; t++) {
2773
2772
  var r = n[t];
2774
2773
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
2775
- Object.defineProperty(e, Gr(r.key), r);
2774
+ Object.defineProperty(e, Yr(r.key), r);
2776
2775
  }
2777
2776
  }
2778
- function Xr(e, n, t) {
2779
- return n && Ur(e.prototype, n), t && Ur(e, t), Object.defineProperty(e, "prototype", {
2777
+ function Ur(e, n, t) {
2778
+ return n && Fr(e.prototype, n), t && Fr(e, t), Object.defineProperty(e, "prototype", {
2780
2779
  writable: !1
2781
2780
  }), e;
2782
2781
  }
2783
- function Yr(e, n, t) {
2784
- return (n = Gr(n)) in e ? Object.defineProperty(e, n, {
2782
+ function Xr(e, n, t) {
2783
+ return (n = Yr(n)) in e ? Object.defineProperty(e, n, {
2785
2784
  value: t,
2786
2785
  enumerable: !0,
2787
2786
  configurable: !0,
2788
2787
  writable: !0
2789
2788
  }) : e[n] = t, e;
2790
2789
  }
2791
- function Gr(e) {
2792
- var n = Jr(e, "string");
2793
- return "symbol" == _r(n) ? n : n + "";
2790
+ function Yr(e) {
2791
+ var n = Gr(e, "string");
2792
+ return "symbol" == Pr(n) ? n : n + "";
2794
2793
  }
2795
- function Jr(e, n) {
2796
- if ("object" != _r(e) || !e) return e;
2794
+ function Gr(e, n) {
2795
+ if ("object" != Pr(e) || !e) return e;
2797
2796
  var t = e[Symbol.toPrimitive];
2798
2797
  if (void 0 !== t) {
2799
2798
  var r = t.call(e, n || "default");
2800
- if ("object" != _r(r)) return r;
2799
+ if ("object" != Pr(r)) return r;
2801
2800
  throw new TypeError("@@toPrimitive must return a primitive value.");
2802
2801
  }
2803
2802
  return ("string" === n ? String : Number)(e);
@@ -2805,21 +2804,21 @@
2805
2804
  // based on https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/keyboard/KeyboardSensor.ts
2806
2805
  // eslint-disable-next-line max-classes-per-file
2807
2806
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/sensors/utilities/Listeners.ts
2808
- var Qr = function() {
2807
+ var Jr = function() {
2809
2808
  function e(n) {
2810
2809
  var t = this;
2811
- Fr(this, e);
2812
- Yr(this, "listeners", []);
2813
- Yr(this, "removeAll", (function() {
2810
+ Vr(this, e);
2811
+ Xr(this, "listeners", []);
2812
+ Xr(this, "removeAll", (function() {
2814
2813
  t.listeners.forEach((function(e) {
2815
2814
  var n;
2816
- return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Lr(e));
2815
+ return (n = t.target) === null || n === void 0 ? void 0 : n.removeEventListener.apply(n, Nr(e));
2817
2816
  }));
2818
2817
  }));
2819
2818
  this.target = n;
2820
2819
  this.target = n;
2821
2820
  }
2822
- Xr(e, [ {
2821
+ Ur(e, [ {
2823
2822
  key: "add",
2824
2823
  value: function e(n, t, r) {
2825
2824
  var o;
@@ -2830,7 +2829,7 @@
2830
2829
  return e;
2831
2830
  }();
2832
2831
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/parseTransform.ts
2833
- function Zr(e) {
2832
+ function Qr(e) {
2834
2833
  if (e.startsWith("matrix3d(")) {
2835
2834
  var n = e.slice(9, -1).split(/, /);
2836
2835
  return {
@@ -2852,8 +2851,8 @@
2852
2851
  return null;
2853
2852
  }
2854
2853
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/transform/inverseTransform.ts
2855
- function eo(e, n, t) {
2856
- var r = Zr(n);
2854
+ function Zr(e, n, t) {
2855
+ var r = Qr(n);
2857
2856
  if (!r) {
2858
2857
  return e;
2859
2858
  }
@@ -2871,17 +2870,17 @@
2871
2870
  left: u
2872
2871
  };
2873
2872
  }
2874
- var no = {
2873
+ var eo = {
2875
2874
  ignoreTransform: false
2876
2875
  };
2877
2876
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/rect/getRect.ts
2878
- function to(e) {
2879
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : no;
2877
+ function no(e) {
2878
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : eo;
2880
2879
  var t = e.getBoundingClientRect();
2881
2880
  if (n.ignoreTransform) {
2882
- var r = (0, Hn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2881
+ var r = (0, Wn.getWindow)(e).getComputedStyle(e), o = r.transform, i = r.transformOrigin;
2883
2882
  if (o) {
2884
- t = eo(t, o, i);
2883
+ t = Zr(t, o, i);
2885
2884
  }
2886
2885
  }
2887
2886
  var a = t, l = a.top, u = a.left, s = a.width, c = a.height, d = a.bottom, f = a.right;
@@ -2894,7 +2893,7 @@
2894
2893
  right: f
2895
2894
  };
2896
2895
  }
2897
- function ro(e) {
2896
+ function to(e) {
2898
2897
  if (e === document.scrollingElement) {
2899
2898
  var n = window, t = n.innerWidth, r = n.innerHeight;
2900
2899
  return {
@@ -2917,19 +2916,19 @@
2917
2916
  };
2918
2917
  }
2919
2918
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/documentScrollingElement.ts
2920
- function oo(e) {
2921
- if (!Hn.canUseDOM || !e) {
2919
+ function ro(e) {
2920
+ if (!Wn.canUseDOM || !e) {
2922
2921
  return false;
2923
2922
  }
2924
2923
  return e === document.scrollingElement;
2925
2924
  }
2926
2925
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollPosition.ts
2927
- function io(e) {
2926
+ function oo(e) {
2928
2927
  var n = {
2929
2928
  x: 0,
2930
2929
  y: 0
2931
2930
  };
2932
- var t = oo(e) ? {
2931
+ var t = ro(e) ? {
2933
2932
  height: window.innerHeight,
2934
2933
  width: window.innerWidth
2935
2934
  } : {
@@ -2954,20 +2953,20 @@
2954
2953
  };
2955
2954
  }
2956
2955
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/coordinates/constants.ts
2957
- var ao = {
2956
+ var io = {
2958
2957
  x: 0,
2959
2958
  y: 0
2960
2959
  };
2961
2960
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isFixed.ts
2962
- function lo(e) {
2961
+ function ao(e) {
2963
2962
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2964
- Hn.getWindow)(e).getComputedStyle(e);
2963
+ Wn.getWindow)(e).getComputedStyle(e);
2965
2964
  return n.position === "fixed";
2966
2965
  }
2967
2966
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/isScrollable.ts
2968
- function uo(e) {
2967
+ function lo(e) {
2969
2968
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0,
2970
- Hn.getWindow)(e).getComputedStyle(e);
2969
+ Wn.getWindow)(e).getComputedStyle(e);
2971
2970
  var t = /(auto|scroll|overlay)/;
2972
2971
  var r = [ "overflow", "overflowX", "overflowY" ];
2973
2972
  return r.some((function(e) {
@@ -2976,7 +2975,7 @@
2976
2975
  }));
2977
2976
  }
2978
2977
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
2979
- function so(e, n) {
2978
+ function uo(e, n) {
2980
2979
  var t = [];
2981
2980
  function r(o) {
2982
2981
  if (n != null && t.length >= n) {
@@ -2985,23 +2984,23 @@
2985
2984
  if (!o) {
2986
2985
  return t;
2987
2986
  }
2988
- if ((0, Hn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2987
+ if ((0, Wn.isDocument)(o) && o.scrollingElement != null && !t.includes(o.scrollingElement)) {
2989
2988
  t.push(o.scrollingElement);
2990
2989
  return t;
2991
2990
  }
2992
- if (!(0, Hn.isHTMLElement)(o) || (0, Hn.isSVGElement)(o)) {
2991
+ if (!(0, Wn.isHTMLElement)(o) || (0, Wn.isSVGElement)(o)) {
2993
2992
  return t;
2994
2993
  }
2995
2994
  if (t.includes(o)) {
2996
2995
  return t;
2997
2996
  }
2998
- var i = (0, Hn.getWindow)(e).getComputedStyle(o);
2997
+ var i = (0, Wn.getWindow)(e).getComputedStyle(o);
2999
2998
  if (o !== e) {
3000
- if (uo(o, i)) {
2999
+ if (lo(o, i)) {
3001
3000
  t.push(o);
3002
3001
  }
3003
3002
  }
3004
- if (lo(o, i)) {
3003
+ if (ao(o, i)) {
3005
3004
  return t;
3006
3005
  }
3007
3006
  return r(o.parentNode);
@@ -3012,23 +3011,23 @@
3012
3011
  return r(e);
3013
3012
  }
3014
3013
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/getScrollableAncestors.ts
3015
- function co(e) {
3016
- var n = so(e, 1), t = zr(n, 1), r = t[0];
3014
+ function so(e) {
3015
+ var n = uo(e, 1), t = _r(n, 1), r = t[0];
3017
3016
  return r !== null && r !== void 0 ? r : null;
3018
3017
  }
3019
- var fo = {
3018
+ var co = {
3020
3019
  start: [ o.KeyboardCode.Space, o.KeyboardCode.Enter ],
3021
3020
  cancel: [ o.KeyboardCode.Esc ],
3022
3021
  end: [ o.KeyboardCode.Space, o.KeyboardCode.Enter ]
3023
3022
  };
3024
3023
  // https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/utilities/scroll/scrollIntoViewIfNeeded.ts
3025
- function vo(e) {
3026
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : to;
3024
+ function fo(e) {
3025
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : no;
3027
3026
  if (!e) {
3028
3027
  return;
3029
3028
  }
3030
3029
  var t = n(e), r = t.top, o = t.left, i = t.bottom, a = t.right;
3031
- var l = co(e);
3030
+ var l = so(e);
3032
3031
  if (!l) {
3033
3032
  return;
3034
3033
  }
@@ -3039,23 +3038,23 @@
3039
3038
  });
3040
3039
  }
3041
3040
  }
3042
- var po = function() {
3041
+ var vo = function() {
3043
3042
  function e(n) {
3044
- Fr(this, e);
3045
- Yr(this, "autoScrollEnabled", false);
3046
- Yr(this, "referenceCoordinates", void 0);
3047
- Yr(this, "listeners", void 0);
3048
- Yr(this, "windowListeners", void 0);
3043
+ Vr(this, e);
3044
+ Xr(this, "autoScrollEnabled", false);
3045
+ Xr(this, "referenceCoordinates", void 0);
3046
+ Xr(this, "listeners", void 0);
3047
+ Xr(this, "windowListeners", void 0);
3049
3048
  this.props = n;
3050
3049
  var t = n.event.target;
3051
3050
  this.props = n;
3052
- this.listeners = new Qr((0, Hn.getOwnerDocument)(t));
3053
- this.windowListeners = new Qr((0, Hn.getWindow)(t));
3051
+ this.listeners = new Jr((0, Wn.getOwnerDocument)(t));
3052
+ this.windowListeners = new Jr((0, Wn.getWindow)(t));
3054
3053
  this.handleKeyDown = this.handleKeyDown.bind(this);
3055
3054
  this.handleCancel = this.handleCancel.bind(this);
3056
3055
  this.attach();
3057
3056
  }
3058
- Xr(e, [ {
3057
+ Ur(e, [ {
3059
3058
  key: "attach",
3060
3059
  value: function e() {
3061
3060
  var n = this;
@@ -3072,16 +3071,16 @@
3072
3071
  var n = this.props, t = n.activeNode, r = n.onStart;
3073
3072
  var o = t.node.current;
3074
3073
  if (o) {
3075
- vo(o);
3074
+ fo(o);
3076
3075
  }
3077
- r(ao);
3076
+ r(io);
3078
3077
  }
3079
3078
  }, {
3080
3079
  key: "handleKeyDown",
3081
3080
  value: function e(n) {
3082
- if ((0, Hn.isKeyboardEvent)(n)) {
3081
+ if ((0, Wn.isKeyboardEvent)(n)) {
3083
3082
  var t = this.props, r = t.active, i = t.context, a = t.options;
3084
- var l = a.keyboardCodes, u = l === void 0 ? fo : l, s = a.coordinateGetter, c = a.scrollBehavior, d = c === void 0 ? "smooth" : c;
3083
+ var l = a.keyboardCodes, u = l === void 0 ? co : l, s = a.coordinateGetter, c = a.scrollBehavior, d = c === void 0 ? "smooth" : c;
3085
3084
  var f = n.code;
3086
3085
  if (u.end.includes(f)) {
3087
3086
  this.handleEnd(n);
@@ -3095,7 +3094,7 @@
3095
3094
  var p = v ? {
3096
3095
  x: v.left,
3097
3096
  y: v.top
3098
- } : ao;
3097
+ } : io;
3099
3098
  if (!this.referenceCoordinates) {
3100
3099
  this.referenceCoordinates = p;
3101
3100
  }
@@ -3105,7 +3104,7 @@
3105
3104
  currentCoordinates: p
3106
3105
  });
3107
3106
  if (m) {
3108
- var b = (0, Hn.subtract)(m, p);
3107
+ var b = (0, Wn.subtract)(m, p);
3109
3108
  var h = {
3110
3109
  x: 0,
3111
3110
  y: 0
@@ -3114,8 +3113,8 @@
3114
3113
  for (var g = 0; g < y.length; g += 1) {
3115
3114
  var w = y[g];
3116
3115
  var C = n.code;
3117
- var x = io(w), S = x.isTop, O = x.isRight, k = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
3118
- var T = ro(w);
3116
+ var x = oo(w), S = x.isTop, O = x.isRight, k = x.isLeft, R = x.isBottom, E = x.maxScroll, I = x.minScroll;
3117
+ var T = to(w);
3119
3118
  // isDraggableNodeVerticallyInView and isDraggableNodeHorizontallyInView are custom
3120
3119
  // we want to scroll only when a dragging node will be out of view,
3121
3120
  // originally it tries to always place a dragging node in the middle of the container
@@ -3173,7 +3172,7 @@
3173
3172
  break;
3174
3173
  }
3175
3174
  }
3176
- this.handleMove(n, (0, Hn.add)((0, Hn.subtract)(m, this.referenceCoordinates), h));
3175
+ this.handleMove(n, (0, Wn.add)((0, Wn.subtract)(m, this.referenceCoordinates), h));
3177
3176
  }
3178
3177
  }
3179
3178
  }
@@ -3209,10 +3208,10 @@
3209
3208
  } ]);
3210
3209
  return e;
3211
3210
  }();
3212
- Yr(po, "activators", [ {
3211
+ Xr(vo, "activators", [ {
3213
3212
  eventName: "onKeyDown",
3214
3213
  handler: function e(n, t, r) {
3215
- var o = t.keyboardCodes, i = o === void 0 ? fo : o, a = t.onActivation;
3214
+ var o = t.keyboardCodes, i = o === void 0 ? co : o, a = t.onActivation;
3216
3215
  var l = r.active;
3217
3216
  var u = n.nativeEvent.code;
3218
3217
  if (i.start.includes(u)) {
@@ -3230,15 +3229,15 @@
3230
3229
  }
3231
3230
  } ]);
3232
3231
  // CONCATENATED MODULE: ./src/utils/getBoundingClientRect.ts
3233
- function mo(e) {
3232
+ function po(e) {
3234
3233
  "@babel/helpers - typeof";
3235
- return mo = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3234
+ return po = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
3236
3235
  return typeof e;
3237
3236
  } : function(e) {
3238
3237
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3239
- }, mo(e);
3238
+ }, po(e);
3240
3239
  }
3241
- function bo(e, n) {
3240
+ function mo(e, n) {
3242
3241
  var t = Object.keys(e);
3243
3242
  if (Object.getOwnPropertySymbols) {
3244
3243
  var r = Object.getOwnPropertySymbols(e);
@@ -3248,46 +3247,46 @@
3248
3247
  }
3249
3248
  return t;
3250
3249
  }
3251
- function ho(e) {
3250
+ function bo(e) {
3252
3251
  for (var n = 1; n < arguments.length; n++) {
3253
3252
  var t = null != arguments[n] ? arguments[n] : {};
3254
- n % 2 ? bo(Object(t), !0).forEach((function(n) {
3255
- yo(e, n, t[n]);
3256
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : bo(Object(t)).forEach((function(n) {
3253
+ n % 2 ? mo(Object(t), !0).forEach((function(n) {
3254
+ ho(e, n, t[n]);
3255
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : mo(Object(t)).forEach((function(n) {
3257
3256
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
3258
3257
  }));
3259
3258
  }
3260
3259
  return e;
3261
3260
  }
3262
- function yo(e, n, t) {
3263
- return (n = go(n)) in e ? Object.defineProperty(e, n, {
3261
+ function ho(e, n, t) {
3262
+ return (n = yo(n)) in e ? Object.defineProperty(e, n, {
3264
3263
  value: t,
3265
3264
  enumerable: !0,
3266
3265
  configurable: !0,
3267
3266
  writable: !0
3268
3267
  }) : e[n] = t, e;
3269
3268
  }
3270
- function go(e) {
3271
- var n = wo(e, "string");
3272
- return "symbol" == mo(n) ? n : n + "";
3269
+ function yo(e) {
3270
+ var n = go(e, "string");
3271
+ return "symbol" == po(n) ? n : n + "";
3273
3272
  }
3274
- function wo(e, n) {
3275
- if ("object" != mo(e) || !e) return e;
3273
+ function go(e, n) {
3274
+ if ("object" != po(e) || !e) return e;
3276
3275
  var t = e[Symbol.toPrimitive];
3277
3276
  if (void 0 !== t) {
3278
3277
  var r = t.call(e, n || "default");
3279
- if ("object" != mo(r)) return r;
3278
+ if ("object" != po(r)) return r;
3280
3279
  throw new TypeError("@@toPrimitive must return a primitive value.");
3281
3280
  }
3282
3281
  return ("string" === n ? String : Number)(e);
3283
3282
  }
3284
3283
  // Checks if browser is Safari
3285
- function Co() {
3284
+ function wo() {
3286
3285
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
3287
3286
  }
3288
3287
  // Formats return value to DOMRect
3289
- function xo(e) {
3290
- return ho(ho({}, e), {}, {
3288
+ function Co(e) {
3289
+ return bo(bo({}, e), {}, {
3291
3290
  top: e.y,
3292
3291
  left: e.x,
3293
3292
  right: e.x + e.width,
@@ -3301,18 +3300,18 @@
3301
3300
  * @param {boolean} offsets - Use when position of element relative to the layout viewport offsets are needed for Safari.
3302
3301
  * @returns {Omit<DOMRect, 'toJSON'>}
3303
3302
  * @public
3304
- */ function So(e, n) {
3303
+ */ function xo(e, n) {
3305
3304
  var t, r;
3306
3305
  var o = e.getBoundingClientRect();
3307
- var i = Co();
3306
+ var i = wo();
3308
3307
  if (!n || !i) {
3309
3308
  return o;
3310
3309
  }
3311
- var a = sn();
3310
+ var a = un();
3312
3311
  var l = o.left + (((t = a.visualViewport) === null || t === void 0 ? void 0 : t.offsetLeft) || 0);
3313
3312
  var u = o.top + (((r = a.visualViewport) === null || r === void 0 ? void 0 : r.offsetTop) || 0);
3314
3313
  var s = o.width, c = o.height;
3315
- return xo({
3314
+ return Co({
3316
3315
  width: s,
3317
3316
  height: c,
3318
3317
  x: l,
@@ -3329,14 +3328,14 @@
3329
3328
  // erroneously included in react-ui's public api.
3330
3329
  // see https://github.com/microsoft/TypeScript/pull/12253
3331
3330
  // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
3332
- function Oo(e, n) {
3331
+ function So(e, n) {
3333
3332
  if (e === undefined || e === null) {
3334
3333
  throw new Error(n !== null && n !== void 0 ? n : "Unexpected undefined or null");
3335
3334
  }
3336
3335
  }
3337
3336
  // CONCATENATED MODULE: ./src/Table/Table.tsx
3338
- function ko() {
3339
- return ko = Object.assign ? Object.assign.bind() : function(e) {
3337
+ function Oo() {
3338
+ return Oo = Object.assign ? Object.assign.bind() : function(e) {
3340
3339
  for (var n = 1; n < arguments.length; n++) {
3341
3340
  var t = arguments[n];
3342
3341
  for (var r in t) {
@@ -3344,41 +3343,41 @@
3344
3343
  }
3345
3344
  }
3346
3345
  return e;
3347
- }, ko.apply(null, arguments);
3346
+ }, Oo.apply(null, arguments);
3348
3347
  }
3349
- function Ro(e) {
3350
- return To(e) || Io(e) || qo(e) || Eo();
3348
+ function ko(e) {
3349
+ return Io(e) || Eo(e) || Do(e) || Ro();
3351
3350
  }
3352
- function Eo() {
3351
+ function Ro() {
3353
3352
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3354
3353
  }
3355
- function Io(e) {
3354
+ function Eo(e) {
3356
3355
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
3357
3356
  }
3358
- function To(e) {
3359
- if (Array.isArray(e)) return Ao(e);
3357
+ function Io(e) {
3358
+ if (Array.isArray(e)) return qo(e);
3360
3359
  }
3361
- function jo(e, n) {
3362
- return _o(e) || Po(e, n) || qo(e, n) || Do();
3360
+ function To(e, n) {
3361
+ return Po(e) || Ao(e, n) || Do(e, n) || jo();
3363
3362
  }
3364
- function Do() {
3363
+ function jo() {
3365
3364
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3366
3365
  }
3367
- function qo(e, n) {
3366
+ function Do(e, n) {
3368
3367
  if (e) {
3369
- if ("string" == typeof e) return Ao(e, n);
3368
+ if ("string" == typeof e) return qo(e, n);
3370
3369
  var t = {}.toString.call(e).slice(8, -1);
3371
- return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ao(e, n) : void 0;
3370
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qo(e, n) : void 0;
3372
3371
  }
3373
3372
  }
3374
- function Ao(e, n) {
3373
+ function qo(e, n) {
3375
3374
  (null == n || n > e.length) && (n = e.length);
3376
3375
  for (var t = 0, r = Array(n); t < n; t++) {
3377
3376
  r[t] = e[t];
3378
3377
  }
3379
3378
  return r;
3380
3379
  }
3381
- function Po(e, n) {
3380
+ function Ao(e, n) {
3382
3381
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
3383
3382
  if (null != t) {
3384
3383
  var r, o, i, a, l = [], u = !0, s = !1;
@@ -3400,12 +3399,12 @@
3400
3399
  return l;
3401
3400
  }
3402
3401
  }
3403
- function _o(e) {
3402
+ function Po(e) {
3404
3403
  if (Array.isArray(e)) return e;
3405
3404
  }
3406
- function zo(e, n) {
3405
+ function _o(e, n) {
3407
3406
  if (null == e) return {};
3408
- var t, r, o = Mo(e, n);
3407
+ var t, r, o = zo(e, n);
3409
3408
  if (Object.getOwnPropertySymbols) {
3410
3409
  var i = Object.getOwnPropertySymbols(e);
3411
3410
  for (r = 0; r < i.length; r++) {
@@ -3414,7 +3413,7 @@
3414
3413
  }
3415
3414
  return o;
3416
3415
  }
3417
- function Mo(e, n) {
3416
+ function zo(e, n) {
3418
3417
  if (null == e) return {};
3419
3418
  var t = {};
3420
3419
  for (var r in e) {
@@ -3429,52 +3428,52 @@
3429
3428
  // Internal Helper Modules
3430
3429
  /** @public */
3431
3430
  /** @public */
3432
- /** @public */ var $o = {
3433
- actions: C().arrayOf(C().element),
3434
- actionsColumnWidth: C().number,
3435
- children: C().node,
3436
- dockOffset: C().number,
3437
- dockScrollBar: C().bool,
3438
- elementRef: C().oneOfType([ C().func, C().object ]),
3439
- headType: C().oneOf([ "docked", "fixed", "inline" ]),
3440
- innerStyle: C().object,
3441
- onRequestToggleAllRows: C().func,
3442
- onScroll: C().func,
3443
- outerStyle: C().object,
3444
- primaryColumnIndex: C().number,
3445
- rowExpansion: C().oneOf([ "single", "multi", "controlled", "none" ]),
3446
- rowSelection: C().oneOf([ "all", "some", "none" ]),
3447
- stripeRows: C().bool,
3448
- tableStyle: C().object,
3449
- onRequestMoveColumn: C().func,
3450
- onRequestMoveRow: C().func,
3451
- onRequestResizeColumn: C().func,
3452
- resizableFillLayout: C().bool
3431
+ /** @public */ var Mo = {
3432
+ actions: w().arrayOf(w().element),
3433
+ actionsColumnWidth: w().number,
3434
+ children: w().node,
3435
+ dockOffset: w().number,
3436
+ dockScrollBar: w().bool,
3437
+ elementRef: w().oneOfType([ w().func, w().object ]),
3438
+ headType: w().oneOf([ "docked", "fixed", "inline" ]),
3439
+ innerStyle: w().object,
3440
+ onRequestToggleAllRows: w().func,
3441
+ onScroll: w().func,
3442
+ outerStyle: w().object,
3443
+ primaryColumnIndex: w().number,
3444
+ rowExpansion: w().oneOf([ "single", "multi", "controlled", "none" ]),
3445
+ rowSelection: w().oneOf([ "all", "some", "none" ]),
3446
+ stripeRows: w().bool,
3447
+ tableStyle: w().object,
3448
+ onRequestMoveColumn: w().func,
3449
+ onRequestMoveRow: w().func,
3450
+ onRequestResizeColumn: w().func,
3451
+ resizableFillLayout: w().bool
3453
3452
  };
3454
- var No = function e(n) {
3453
+ var $o = function e(n) {
3455
3454
  return n === "inline";
3456
3455
  };
3457
- var Lo = function e(n) {
3456
+ var No = function e(n) {
3458
3457
  return n === "docked";
3459
3458
  };
3460
- var Wo = function e(n) {
3459
+ var Lo = function e(n) {
3461
3460
  return n === "fixed";
3462
3461
  };
3463
- var Ho = function e(n) {
3464
- var t = sn();
3465
- var r = So(n);
3462
+ var Wo = function e(n) {
3463
+ var t = un();
3464
+ var r = xo(n);
3466
3465
  return {
3467
3466
  top: r.top + t.pageYOffset,
3468
3467
  left: r.left + t.pageXOffset
3469
3468
  };
3470
3469
  };
3471
- var Ko = function e(n) {
3472
- var t = on();
3470
+ var Ho = function e(n) {
3471
+ var t = rn();
3473
3472
  if (n === undefined || n === null) {
3474
3473
  return undefined;
3475
3474
  }
3476
3475
  var r = n.children[0].children;
3477
- var o = f()(r, t.activeElement);
3476
+ var o = d()(r, t.activeElement);
3478
3477
  if (o > -1) {
3479
3478
  return {
3480
3479
  target: "headCell",
@@ -3482,7 +3481,7 @@
3482
3481
  };
3483
3482
  }
3484
3483
  var i = n.querySelectorAll("[data-test=resize]");
3485
- var a = f()(i, t.activeElement);
3484
+ var a = d()(i, t.activeElement);
3486
3485
  if (a > -1) {
3487
3486
  return {
3488
3487
  target: "resizeButton",
@@ -3491,20 +3490,20 @@
3491
3490
  }
3492
3491
  return undefined;
3493
3492
  };
3494
- var Bo = function e(n, t) {
3493
+ var Ko = function e(n, t) {
3495
3494
  return n.indexOf(t) + 1;
3496
3495
  };
3497
- var Vo = function e(n, t) {
3496
+ var Bo = function e(n, t) {
3498
3497
  return n.indexOf(t) + 1;
3499
3498
  };
3500
- var Fo = {
3499
+ var Vo = {
3501
3500
  coordinateGetter: a.sortableKeyboardCoordinates
3502
3501
  };
3503
- var Uo = {
3504
- draggable: (0, j._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3502
+ var Fo = {
3503
+ draggable: (0, T._)("To pick up a sortable row, press space or enter.\n Use the up and down arrow keys to update the position of the row.\n Press space or enter again to drop the row in its new position, or press escape to cancel.")
3505
3504
  };
3506
- var Xo = {
3507
- draggable: (0, j._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3505
+ var Uo = {
3506
+ draggable: (0, T._)("To pick up a sortable column, press space or enter.\n Use the left and right arrow keys to update the position of the column.\n Press space or enter again to drop the column in its new position, or press escape to cancel.")
3508
3507
  };
3509
3508
  /**
3510
3509
  * @private
@@ -3515,7 +3514,7 @@
3515
3514
  * @param {String} headFocusState.target - Focus can be applied to a 'headCell' or a
3516
3515
  * 'resizeButton'.
3517
3516
  * @param {Number} headFocusState.index - The index of the element to set focus on.
3518
- */ function Yo(e, n) {
3517
+ */ function Xo(e, n) {
3519
3518
  var t, r;
3520
3519
  var o = n.target, i = n.index;
3521
3520
  if (false) {}
@@ -3528,157 +3527,157 @@
3528
3527
  if (false) {}
3529
3528
  (t = a) === null || t === void 0 ? void 0 : (r = t.focus) === null || r === void 0 ? void 0 : r.call(t);
3530
3529
  }
3531
- var Go = {
3530
+ var Yo = {
3532
3531
  passive: false,
3533
3532
  capture: true
3534
3533
  };
3535
- var Jo = [];
3536
- function Qo(e) {
3537
- var n = e.actions, l = n === void 0 ? Jo : n, s = e.actionsColumnWidth, d = e.children, f = e.dockOffset, v = f === void 0 ? 0 : f, m = e.dockScrollBar, b = e.elementRef, y = e.headType, w = y === void 0 ? "inline" : y, C = e.innerStyle, x = e.onRequestMoveColumn, k = e.onRequestMoveRow, E = e.onRequestResizeColumn, q = e.onRequestToggleAllRows, A = e.onScroll, P = e.outerStyle, _ = e.primaryColumnIndex, z = _ === void 0 ? 0 : _, M = e.resizableFillLayout, $ = e.rowExpansion, N = $ === void 0 ? "none" : $, W = e.rowSelection, H = W === void 0 ? "none" : W, K = e.stripeRows, B = e.tableStyle, V = zo(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3534
+ var Go = [];
3535
+ function Jo(e) {
3536
+ var n = e.actions, l = n === void 0 ? Go : n, s = e.actionsColumnWidth, c = e.children, d = e.dockOffset, f = d === void 0 ? 0 : d, p = e.dockScrollBar, m = e.elementRef, h = e.headType, g = h === void 0 ? "inline" : h, w = e.innerStyle, C = e.onRequestMoveColumn, O = e.onRequestMoveRow, R = e.onRequestResizeColumn, D = e.onRequestToggleAllRows, q = e.onScroll, A = e.outerStyle, P = e.primaryColumnIndex, _ = P === void 0 ? 0 : P, z = e.resizableFillLayout, M = e.rowExpansion, $ = M === void 0 ? "none" : M, L = e.rowSelection, W = L === void 0 ? "none" : L, H = e.stripeRows, K = e.tableStyle, B = _o(e, [ "actions", "actionsColumnWidth", "children", "dockOffset", "dockScrollBar", "elementRef", "headType", "innerStyle", "onRequestMoveColumn", "onRequestMoveRow", "onRequestResizeColumn", "onRequestToggleAllRows", "onScroll", "outerStyle", "primaryColumnIndex", "resizableFillLayout", "rowExpansion", "rowSelection", "stripeRows", "tableStyle" ]);
3538
3537
  // @docs-props-type TablePropsBase
3539
- var F = (0, t.useState)([]), U = jo(F, 2), X = U[0], Y = U[1];
3540
- var G = (0, t.useState)(), J = jo(G, 2), Q = J[0], oe = J[1];
3541
- var le = (0, t.useState)(), ue = jo(le, 2), se = ue[0], ce = ue[1];
3542
- var de = (0, t.useState)(), fe = jo(de, 2), ve = fe[0], pe = fe[1];
3543
- var me = (0, t.useState)(), be = jo(me, 2), he = be[0], ye = be[1];
3544
- var ge = (0, t.useRef)(true);
3545
- var we = (0, t.useContext)(O.ScrollContainerContext);
3546
- var Ce = (0, o.useSensors)((0, o.useSensor)(o.MouseSensor, {}), (0, o.useSensor)(o.TouchSensor, {}), (0,
3547
- o.useSensor)(po, Fo));
3548
- var xe = (0, t.useState)([]), Se = jo(xe, 2), Oe = Se[0], ke = Se[1];
3549
- var Re = (0, t.useState)(-1), Ee = jo(Re, 2), Ie = Ee[0], Te = Ee[1];
3538
+ var V = (0, t.useState)([]), F = To(V, 2), U = F[0], X = F[1];
3539
+ var Y = (0, t.useState)(), G = To(Y, 2), J = G[0], re = G[1];
3540
+ var ae = (0, t.useState)(), le = To(ae, 2), ue = le[0], se = le[1];
3541
+ var ce = (0, t.useState)(), de = To(ce, 2), fe = de[0], ve = de[1];
3542
+ var pe = (0, t.useState)(), me = To(pe, 2), be = me[0], he = me[1];
3543
+ var ye = (0, t.useRef)(true);
3544
+ var ge = (0, t.useContext)(S.ScrollContainerContext);
3545
+ var we = (0, o.useSensors)((0, o.useSensor)(o.MouseSensor, {}), (0, o.useSensor)(o.TouchSensor, {}), (0,
3546
+ o.useSensor)(vo, Vo));
3547
+ var Ce = (0, t.useState)([]), xe = To(Ce, 2), Se = xe[0], Oe = xe[1];
3548
+ var ke = (0, t.useState)(-1), Re = To(ke, 2), Ee = Re[0], Ie = Re[1];
3549
+ var Te = (0, t.useRef)();
3550
3550
  var je = (0, t.useRef)();
3551
- var De = (0, t.useRef)();
3552
- var qe = (0, t.useState)(), Ae = jo(qe, 2), Pe = Ae[0], _e = Ae[1];
3551
+ var De = (0, t.useState)(), qe = To(De, 2), Ae = qe[0], Pe = qe[1];
3552
+ var _e = (0, t.useRef)(null);
3553
3553
  var ze = (0, t.useRef)(null);
3554
- var Me = (0, t.useRef)(null);
3555
- var $e = (0, t.useRef)();
3556
- var Ne = (0, t.useRef)(null);
3557
- var Le = (0, t.useRef)();
3554
+ var Me = (0, t.useRef)();
3555
+ var $e = (0, t.useRef)(null);
3556
+ var Ne = (0, t.useRef)();
3557
+ var Le = (0, t.useRef)(null);
3558
3558
  var We = (0, t.useRef)(null);
3559
- var He = (0, t.useRef)(null);
3560
- var Ke = R()(w);
3559
+ var He = k()(g);
3560
+ var Ke = (0, t.useRef)([]);
3561
3561
  var Be = (0, t.useRef)([]);
3562
3562
  var Ve = (0, t.useRef)([]);
3563
3563
  var Fe = (0, t.useRef)([]);
3564
- var Ue = (0, t.useRef)([]);
3565
- var Xe = Ve.current;
3566
- var Ye = Be.current;
3567
- var Ge = Ue.current;
3568
- var Je = (0, t.useCallback)((function() {
3564
+ var Ue = Be.current;
3565
+ var Xe = Ke.current;
3566
+ var Ye = Fe.current;
3567
+ var Ge = (0, t.useCallback)((function() {
3569
3568
  var e;
3570
- var n = sn();
3571
- if (No(w)) {
3569
+ var n = un();
3570
+ if ($o(g)) {
3572
3571
  return;
3573
3572
  }
3574
- var t = He.current;
3575
- var r = Me.current;
3576
- var o = We.current;
3573
+ var t = We.current;
3574
+ var r = ze.current;
3575
+ var o = Le.current;
3577
3576
  if (!o || !r) {
3578
3577
  return;
3579
3578
  }
3580
- var i = Zt(Me.current);
3581
- var a = (e = Me.current) === null || e === void 0 ? void 0 : e.clientHeight;
3582
- var l = Ho(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3583
- var u = Math.min(l, Number(v));
3584
- ye(t === null || t === void 0 ? void 0 : t.clientWidth);
3585
- ce(o === null || o === void 0 ? void 0 : o.clientWidth);
3586
- Y(i);
3587
- pe(u);
3588
- }), [ v, w ]);
3579
+ var i = Qt(ze.current);
3580
+ var a = (e = ze.current) === null || e === void 0 ? void 0 : e.clientHeight;
3581
+ var l = Wo(o).top - n.pageYOffset - (a || 0) + o.offsetHeight;
3582
+ var u = Math.min(l, Number(f));
3583
+ he(t === null || t === void 0 ? void 0 : t.clientWidth);
3584
+ se(o === null || o === void 0 ? void 0 : o.clientWidth);
3585
+ X(i);
3586
+ ve(u);
3587
+ }), [ f, g ]);
3589
3588
  (0, t.useEffect)((function() {
3590
- var e = Me.current;
3591
- var n = Ne.current;
3589
+ var e = ze.current;
3590
+ var n = $e.current;
3592
3591
  if (e && n) {
3593
- var t = Zt(Me.current);
3594
- if (!p()(X, t)) {
3595
- Je();
3592
+ var t = Qt(ze.current);
3593
+ if (!v()(U, t)) {
3594
+ Ge();
3596
3595
  }
3597
3596
  }
3598
- if (Ke === "inline" && w === "inline") {
3599
- Je();
3597
+ if (He === "inline" && g === "inline") {
3598
+ Ge();
3600
3599
  }
3601
3600
  if (false) {}
3602
- }), [ X, w, Ke, e, Je ]);
3603
- var Qe = (0, t.useCallback)((function(e) {
3604
- var n = He.current;
3605
- A === null || A === void 0 ? void 0 : A(e);
3606
- if ((Wo(w) || Lo(w)) && n) {
3607
- oe(-n.scrollLeft);
3608
- }
3609
- if (ze.current && Le.current !== "dockedScrollBar" && n) {
3610
- Le.current = "container";
3611
- ze.current.scrollLeft = n.scrollLeft;
3601
+ }), [ U, g, He, e, Ge ]);
3602
+ var Je = (0, t.useCallback)((function(e) {
3603
+ var n = We.current;
3604
+ q === null || q === void 0 ? void 0 : q(e);
3605
+ if ((Lo(g) || No(g)) && n) {
3606
+ re(-n.scrollLeft);
3607
+ }
3608
+ if (_e.current && Ne.current !== "dockedScrollBar" && n) {
3609
+ Ne.current = "container";
3610
+ _e.current.scrollLeft = n.scrollLeft;
3612
3611
  } else {
3613
- Le.current = undefined;
3614
- }
3615
- }), [ w, A ]);
3616
- var Ze = function e() {
3617
- var n = He.current;
3618
- if (Le.current !== "container" && n && ze.current) {
3619
- Le.current = "dockedScrollBar";
3620
- n.scrollLeft = ze.current.scrollLeft;
3612
+ Ne.current = undefined;
3613
+ }
3614
+ }), [ g, q ]);
3615
+ var Qe = function e() {
3616
+ var n = We.current;
3617
+ if (Ne.current !== "container" && n && _e.current) {
3618
+ Ne.current = "dockedScrollBar";
3619
+ n.scrollLeft = _e.current.scrollLeft;
3621
3620
  } else {
3622
- Le.current = undefined;
3621
+ Ne.current = undefined;
3623
3622
  }
3624
3623
  };
3625
- var en = g()(Je, 0);
3626
- var nn = (0, t.useCallback)((function() {
3627
- Je();
3628
- }), [ Je ]);
3629
- var tn = (0, t.useMemo)((function() {
3630
- return g()(nn, 50);
3631
- }), [ nn ]);
3632
- I()(He, tn);
3624
+ var Ze = y()(Ge, 0);
3625
+ var en = (0, t.useCallback)((function() {
3626
+ Ge();
3627
+ }), [ Ge ]);
3628
+ var nn = (0, t.useMemo)((function() {
3629
+ return y()(en, 50);
3630
+ }), [ en ]);
3631
+ E()(We, nn);
3633
3632
  (0, t.useEffect)((function() {
3634
3633
  // Using the return value of useCallback to recreate componentWillUnmount
3635
3634
  return function() {
3636
- en.cancel();
3637
- tn.cancel();
3635
+ Ze.cancel();
3636
+ nn.cancel();
3638
3637
  };
3639
3638
  }));
3640
- var rn = function e(n) {
3639
+ var tn = function e(n) {
3641
3640
  return function(e) {
3642
- Me.current = e;
3643
- L(n.props.elementRef, e);
3641
+ ze.current = e;
3642
+ N(n.props.elementRef, e);
3644
3643
  };
3645
3644
  };
3646
- var an = function e(n) {
3645
+ var on = function e(n) {
3647
3646
  if (n) {
3648
3647
  // On mount, focus the applicable docked head cell if a primary head cell was focused.
3649
- if ($e.current) {
3650
- Yo(Ne.current, $e.current);
3651
- $e.current = undefined;
3648
+ if (Me.current) {
3649
+ Xo($e.current, Me.current);
3650
+ Me.current = undefined;
3652
3651
  }
3653
3652
  } else {
3654
3653
  // On unmount, focus the applicable primary head cell if a docked head cell was focused.
3655
- var t = Ko(Ne.current);
3654
+ var t = Ho($e.current);
3656
3655
  if (t) {
3657
- Yo(Me.current, t);
3656
+ Xo(ze.current, t);
3658
3657
  }
3659
3658
  }
3660
- Ne.current = n;
3659
+ $e.current = n;
3661
3660
  };
3662
- var ln = function e(n) {
3663
- var t = He.current;
3664
- if (!Ne.current || !t || n.key !== "Tab") {
3661
+ var an = function e(n) {
3662
+ var t = We.current;
3663
+ if (!$e.current || !t || n.key !== "Tab") {
3665
3664
  return;
3666
3665
  }
3667
- var r = Ne.current.scrollLeft;
3666
+ var r = $e.current.scrollLeft;
3668
3667
  if (r !== 0) {
3669
- Ne.current.scrollLeft = 0;
3668
+ $e.current.scrollLeft = 0;
3670
3669
  t.scrollLeft += r;
3671
3670
  }
3672
3671
  };
3673
- var un = function e(n, t) {
3672
+ var ln = function e(n, t) {
3674
3673
  var r, o;
3675
3674
  var i = t.columnId, a = t.index, l = t.id;
3676
- var s = on();
3675
+ var s = rn();
3677
3676
  if (a === undefined) {
3678
3677
  return;
3679
3678
  }
3680
- var c = N === "none" ? 1 : 2;
3681
- var d = (r = He.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(a + c, "), tbody td:nth-child(").concat(a + c, ")"));
3679
+ var c = $ === "none" ? 1 : 2;
3680
+ var d = (r = We.current) === null || r === void 0 ? void 0 : r.querySelectorAll("thead th:nth-child(".concat(a + c, "), tbody td:nth-child(").concat(a + c, ")"));
3682
3681
  var f = s.createElement("div");
3683
3682
  // TODO: find a styled-components compliant way to do this
3684
3683
  f.style["float"] = "left";
@@ -3695,7 +3694,7 @@
3695
3694
  f.appendChild(n);
3696
3695
  }));
3697
3696
  s.body.appendChild(f);
3698
- E === null || E === void 0 ? void 0 : E(n, {
3697
+ R === null || R === void 0 ? void 0 : R(n, {
3699
3698
  columnId: i,
3700
3699
  id: l,
3701
3700
  index: a,
@@ -3703,72 +3702,72 @@
3703
3702
  });
3704
3703
  (o = f.parentNode) === null || o === void 0 ? void 0 : o.removeChild(f);
3705
3704
  };
3706
- var cn = (0, t.useCallback)((function(e) {
3705
+ var sn = (0, t.useCallback)((function(e) {
3707
3706
  var n = e.active;
3708
3707
  var t = n.id;
3709
- je.current = Ge.indexOf(t);
3710
- _e(t);
3711
- }), [ Ge ]);
3712
- var dn = (0, t.useCallback)((function(e) {
3708
+ Te.current = Ye.indexOf(t);
3709
+ Pe(t);
3710
+ }), [ Ye ]);
3711
+ var cn = (0, t.useCallback)((function(e) {
3713
3712
  if (e.over) {
3714
3713
  var n = e.over.id;
3715
- var t = Ge.indexOf(n);
3714
+ var t = Ye.indexOf(n);
3716
3715
  var r = t;
3717
- if (je.current !== undefined && t > je.current) {
3716
+ if (Te.current !== undefined && t > Te.current) {
3718
3717
  r = t + 1;
3719
3718
  }
3720
- Te(r);
3719
+ Ie(r);
3721
3720
  } else {
3722
- Te(-1);
3721
+ Ie(-1);
3723
3722
  }
3724
- }), [ Ge ]);
3723
+ }), [ Ye ]);
3725
3724
  // these are useMemo rather than useCallback so that ESLint can correctly analyze the dependencies
3726
3725
  // see https://github.com/facebook/react/issues/19240#issuecomment-652945246
3727
- var fn = (0, t.useMemo)((function() {
3728
- return g()(dn, 100);
3729
- }), [ dn ]);
3726
+ var dn = (0, t.useMemo)((function() {
3727
+ return y()(cn, 100);
3728
+ }), [ cn ]);
3730
3729
  (0, t.useEffect)((function() {
3731
3730
  return function() {
3732
- fn.cancel();
3731
+ dn.cancel();
3733
3732
  };
3734
- }), [ fn ]);
3735
- var vn = (0, t.useCallback)((function(e) {
3733
+ }), [ dn ]);
3734
+ var fn = (0, t.useCallback)((function(e) {
3736
3735
  var n = e.active, t = e.over;
3737
3736
  if (t && n.id !== t.id) {
3738
- var r = Ge.indexOf(n.id);
3739
- var o = Ge.indexOf(t === null || t === void 0 ? void 0 : t.id);
3740
- x === null || x === void 0 ? void 0 : x({
3737
+ var r = Ye.indexOf(n.id);
3738
+ var o = Ye.indexOf(t === null || t === void 0 ? void 0 : t.id);
3739
+ C === null || C === void 0 ? void 0 : C({
3741
3740
  fromIndex: r,
3742
3741
  toIndex: o
3743
3742
  });
3744
3743
  }
3745
- _e(undefined);
3746
- Te(-1);
3747
- De.current = undefined;
3744
+ Pe(undefined);
3745
+ Ie(-1);
3748
3746
  je.current = undefined;
3749
- }), [ Ge, x ]);
3750
- var pn = (0, t.useCallback)((function(e) {
3747
+ Te.current = undefined;
3748
+ }), [ Ye, C ]);
3749
+ var vn = (0, t.useCallback)((function(e) {
3751
3750
  var n = e.active, t = e.over;
3752
- ge.current = true;
3751
+ ye.current = true;
3753
3752
  if (t && n.id !== t.id) {
3754
- var r = Xe.indexOf(n.id);
3755
- var o = Xe.indexOf(t === null || t === void 0 ? void 0 : t.id);
3756
- k === null || k === void 0 ? void 0 : k({
3753
+ var r = Ue.indexOf(n.id);
3754
+ var o = Ue.indexOf(t === null || t === void 0 ? void 0 : t.id);
3755
+ O === null || O === void 0 ? void 0 : O({
3757
3756
  fromIndex: r,
3758
3757
  toIndex: o
3759
3758
  });
3760
3759
  }
3761
- }), [ Xe, k ]);
3762
- var mn = (0, t.useCallback)((function() {
3763
- ge.current = true;
3760
+ }), [ Ue, O ]);
3761
+ var pn = (0, t.useCallback)((function() {
3762
+ ye.current = true;
3764
3763
  }), []);
3765
- var bn = (0, t.useRef)({});
3766
- var hn = function e(n) {
3764
+ var mn = (0, t.useRef)({});
3765
+ var bn = function e(n) {
3767
3766
  var r = [];
3768
3767
  var o = [];
3769
3768
  var i = t.Children.toArray(n.props.children).filter(t.isValidElement).map((function(e, n) {
3770
3769
  var i = e;
3771
- var a = i.key || (0, D.createDOMID)("col-");
3770
+ var a = i.key || (0, j.createDOMID)("col-");
3772
3771
  a = String(a);
3773
3772
  // `col-` prefix is necessary to distinguish row or column reordering.
3774
3773
  // Append the `col-` prefix if is missing from dragId
@@ -3782,53 +3781,53 @@
3782
3781
  index: n,
3783
3782
  dragId: a,
3784
3783
  elementRef: function e(n) {
3785
- bn.current[a] = n;
3786
- L(i.props.elementRef, n);
3784
+ mn.current[a] = n;
3785
+ N(i.props.elementRef, n);
3787
3786
  }
3788
3787
  });
3789
3788
  }));
3790
- Fe.current = r;
3791
- Ge = o;
3789
+ Ve.current = r;
3790
+ Ye = o;
3792
3791
  var a = l === null || l === void 0 ? void 0 : l.filter(t.isValidElement);
3793
3792
  var u = (0, t.cloneElement)(n, {
3794
3793
  actions: a,
3795
3794
  actionsColumnWidth: s,
3796
- hasInfoColumn: N !== "none",
3797
- hasDragColumn: !!k,
3798
- onAutosizeColumn: un,
3799
- onRequestMoveColumn: x,
3800
- onRequestResizeColumn: E,
3801
- onRequestToggleAllRows: q,
3802
- elementRef: rn(n),
3803
- rowSelection: H
3795
+ hasInfoColumn: $ !== "none",
3796
+ hasDragColumn: !!O,
3797
+ onAutosizeColumn: ln,
3798
+ onRequestMoveColumn: C,
3799
+ onRequestResizeColumn: R,
3800
+ onRequestToggleAllRows: D,
3801
+ elementRef: tn(n),
3802
+ rowSelection: W
3804
3803
  }, i);
3805
3804
  return u;
3806
3805
  };
3807
- var yn = (0, t.useMemo)((function() {
3806
+ var hn = (0, t.useMemo)((function() {
3808
3807
  var e, n;
3809
- if (Ie === -1 || !Me.current || !He.current) return null;
3810
- var t = !!k;
3811
- var o = N !== "none";
3812
- var i = Array.from((e = (n = Me.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(q ? 1 : 0);
3808
+ if (Ee === -1 || !ze.current || !We.current) return null;
3809
+ var t = !!O;
3810
+ var o = $ !== "none";
3811
+ var i = Array.from((e = (n = ze.current.firstElementChild) === null || n === void 0 ? void 0 : n.children) !== null && e !== void 0 ? e : []).slice(o ? 1 : 0).slice(t ? 1 : 0).slice(D ? 1 : 0);
3813
3812
  var a;
3814
- if (Ie === 0) {
3813
+ if (Ee === 0) {
3815
3814
  var l;
3816
3815
  a = ((l = i[0]) === null || l === void 0 ? void 0 : l.offsetLeft) || 0;
3817
- } else if (Ie >= i.length) {
3816
+ } else if (Ee >= i.length) {
3818
3817
  var u = i[i.length - 1];
3819
3818
  a = ((u === null || u === void 0 ? void 0 : u.offsetLeft) || 0) + ((u === null || u === void 0 ? void 0 : u.offsetWidth) || 0) - 1;
3820
3819
  // -1 makes the last guideline visible
3821
3820
  } else {
3822
3821
  var s;
3823
- a = ((s = i[Ie]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3822
+ a = ((s = i[Ee]) === null || s === void 0 ? void 0 : s.offsetLeft) || 0;
3824
3823
  }
3825
3824
 
3826
- return r().createElement(ae, {
3827
- $height: He.current.clientHeight,
3825
+ return r().createElement(ie, {
3826
+ $height: We.current.clientHeight,
3828
3827
  $left: a
3829
3828
  });
3830
- }), [ Ie, k, N, q ]);
3831
- var gn = function e(n) {
3829
+ }), [ Ee, O, $, D ]);
3830
+ var yn = function e(n) {
3832
3831
  var r = (l === null || l === void 0 ? void 0 : l.filter(t.isValidElement).length) > 0;
3833
3832
  var o = false;
3834
3833
  var i = [];
@@ -3838,7 +3837,7 @@
3838
3837
  if (((r = e.props) === null || r === void 0 ? void 0 : r.actionPrimary) || ((l = e.props) === null || l === void 0 ? void 0 : l.actionsSecondary)) {
3839
3838
  o = true;
3840
3839
  }
3841
- var u = e.key || (0, D.createDOMID)("row-");
3840
+ var u = e.key || (0, j.createDOMID)("row-");
3842
3841
  u = String(u);
3843
3842
  // `row-` prefix is necessary to distinguish row or column reordering.
3844
3843
  // Append the `row-` prefix if is missing from dragId
@@ -3852,111 +3851,111 @@
3852
3851
  a.push(u);
3853
3852
  }));
3854
3853
  var u = r || o || !!s;
3855
- Ye = i;
3856
- Xe = a;
3854
+ Xe = i;
3855
+ Ue = a;
3857
3856
 
3858
3857
  return (0, t.cloneElement)(n, {
3859
3858
  actions: u,
3860
- movableColumns: !!x,
3861
- onRequestMoveRow: k,
3862
- primaryColumnIndex: z,
3863
- rowExpansion: N,
3864
- stripeRows: K
3865
- }, Ye);
3859
+ movableColumns: !!C,
3860
+ onRequestMoveRow: O,
3861
+ primaryColumnIndex: _,
3862
+ rowExpansion: $,
3863
+ stripeRows: H
3864
+ }, Xe);
3866
3865
  };
3867
- var wn = function e() {
3868
- var n = He.current;
3869
- var t = sn();
3870
- if (!Lo(w) || !We.current || !Me.current || !n) {
3866
+ var gn = function e() {
3867
+ var n = We.current;
3868
+ var t = un();
3869
+ if (!No(g) || !Le.current || !ze.current || !n) {
3871
3870
  return false;
3872
3871
  }
3873
- var r = Ho(n).top;
3874
- return t.pageYOffset >= r - (v || 0);
3872
+ var r = Wo(n).top;
3873
+ return t.pageYOffset >= r - (f || 0);
3875
3874
  };
3876
- var Cn = function e() {
3877
- var n = sn();
3878
- var t = He.current;
3879
- if (!m || !We.current || !t) {
3875
+ var wn = function e() {
3876
+ var n = un();
3877
+ var t = We.current;
3878
+ if (!p || !Le.current || !t) {
3880
3879
  return false;
3881
3880
  }
3882
- var r = So(t);
3881
+ var r = xo(t);
3883
3882
  return r.bottom > n.innerHeight && r.top < n.innerHeight;
3884
3883
  };
3885
- var xn = function e(n, o) {
3886
- if (wn()) {
3884
+ var Cn = function e(n, o) {
3885
+ if (gn()) {
3887
3886
  // FIXME: handle inline
3888
3887
  // Save the current head focus state so that it can be applied to the docked version
3889
3888
  // after the `HeadTable` mounts.
3890
- $e.current = Ko(Me.current);
3891
- if (X === undefined || se === undefined || ve === undefined || he === undefined) {
3889
+ Me.current = Ho(ze.current);
3890
+ if (U === undefined || ue === undefined || fe === undefined || be === undefined) {
3892
3891
  return false;
3893
3892
  }
3894
3893
  var i = (0, t.cloneElement)(n);
3895
3894
 
3896
- return r().createElement(Pr, {
3895
+ return r().createElement(Ar, {
3897
3896
  headType: "docked",
3898
3897
  tHead: i,
3899
- cellWidths: X,
3900
- horizontalOffset: Q,
3901
- tableWidth: se,
3902
- top: ve,
3903
- width: he,
3904
- tableStyle: B,
3898
+ cellWidths: U,
3899
+ horizontalOffset: J,
3900
+ tableWidth: ue,
3901
+ top: fe,
3902
+ width: be,
3903
+ tableStyle: K,
3905
3904
  isFixedColumn: o,
3906
- onKeyUp: ln,
3907
- elementRef: an,
3908
- hasDragColumn: !!k,
3909
- hasRowExpansion: N !== "none",
3910
- hasRowSelection: !!q
3905
+ onKeyUp: an,
3906
+ elementRef: on,
3907
+ hasDragColumn: !!O,
3908
+ hasRowExpansion: $ !== "none",
3909
+ hasRowSelection: !!D
3911
3910
  });
3912
3911
  }
3913
3912
  return false;
3914
3913
  };
3915
- var Sn = (0, t.useMemo)((function() {
3914
+ var xn = (0, t.useMemo)((function() {
3916
3915
  var e, n, t;
3917
- if (!ze.current || !Me.current || !We.current) {
3916
+ if (!_e.current || !ze.current || !Le.current) {
3918
3917
  return 0;
3919
3918
  }
3920
- var r = sn();
3921
- var o = (e = So(We.current).top) !== null && e !== void 0 ? e : 0;
3922
- var i = (n = (t = Me.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3919
+ var r = un();
3920
+ var o = (e = xo(Le.current).top) !== null && e !== void 0 ? e : 0;
3921
+ var i = (n = (t = ze.current) === null || t === void 0 ? void 0 : t.offsetHeight) !== null && n !== void 0 ? n : 0;
3923
3922
  var a = r.innerHeight - o - i;
3924
- return Math.min(a - ze.current.offsetHeight, 0);
3923
+ return Math.min(a - _e.current.offsetHeight, 0);
3925
3924
  }), []);
3926
- var On = (0, t.useMemo)((function() {
3925
+ var Sn = (0, t.useMemo)((function() {
3927
3926
  return {
3928
- width: he,
3929
- marginBottom: Sn
3927
+ width: be,
3928
+ marginBottom: xn
3930
3929
  };
3931
- }), [ he, Sn ]);
3932
- var kn = (0, t.useMemo)((function() {
3930
+ }), [ be, xn ]);
3931
+ var On = (0, t.useMemo)((function() {
3933
3932
  return {
3934
- width: se
3933
+ width: ue
3935
3934
  };
3936
- }), [ se ]);
3937
- var Rn = function e() {
3938
- if (!Cn()) {
3935
+ }), [ ue ]);
3936
+ var kn = function e() {
3937
+ if (!wn()) {
3939
3938
  return false;
3940
3939
  }
3941
3940
 
3942
- return r().createElement(te, {
3943
- style: On,
3944
- onScroll: Ze,
3941
+ return r().createElement(ne, {
3942
+ style: Sn,
3943
+ onScroll: Qe,
3945
3944
  "data-test": "docked-scroll-bar",
3946
- ref: ze
3947
- }, r().createElement(re, {
3948
- style: kn,
3945
+ ref: _e
3946
+ }, r().createElement(te, {
3947
+ style: On,
3949
3948
  "data-test": "docked-scroll-content"
3950
3949
  }));
3951
3950
  };
3952
- var En = function e() {
3953
- var n = Me.current;
3954
- var t = He.current;
3951
+ var Rn = function e() {
3952
+ var n = ze.current;
3953
+ var t = We.current;
3955
3954
  /**
3956
3955
  * there is slightly less space for the table than tableContainer's width,
3957
3956
  * because there is a 1 px border added to every column but the first
3958
3957
  */ if (n) {
3959
- var r = Zt(Me.current);
3958
+ var r = Qt(ze.current);
3960
3959
  var o = r === null || r === void 0 ? void 0 : r.length;
3961
3960
  var i = t === null || t === void 0 ? void 0 : t.clientWidth;
3962
3961
  if (i != null) {
@@ -3966,57 +3965,57 @@
3966
3965
  }
3967
3966
  return null;
3968
3967
  };
3968
+ var En;
3969
3969
  var In;
3970
3970
  var Tn;
3971
- var jn;
3972
- var Dn = !!E;
3973
- t.Children.toArray(d).forEach((function(e) {
3971
+ var jn = !!R;
3972
+ t.Children.toArray(c).forEach((function(e) {
3974
3973
  var n = e.type.splunkUiType;
3975
3974
  if (n === "Table.Head") {
3976
- In = hn(e);
3977
- if (!Dn) {
3978
- // if all the HeadCells are fixed width, then the table is fixed.
3979
- Dn = !t.Children.toArray(e.props.children).filter(t.isValidElement).some((function(e) {
3980
- return !c()(e.props, "width");
3981
- }));
3982
- }
3975
+ En = bn(e);
3976
+ // Check if all HeadCells have a defined width (making the table fixed width)
3977
+ var r = t.Children.toArray(e.props.children).filter(t.isValidElement);
3978
+ var o = r.every((function(e) {
3979
+ return e.props.width && e.props.width !== undefined;
3980
+ }));
3981
+ jn = o;
3983
3982
  } else if (n === "Table.Body") {
3984
- Tn = gn(e);
3983
+ In = yn(e);
3985
3984
  } else if (n === "Table.Caption") {
3986
3985
  // the html spec mandates that a caption must be the first table child.
3987
3986
  // catch the caption here so that it can be placed first later. note: a
3988
3987
  // caption can be placed on the bottom side of a table by adjusting the
3989
3988
  // caption's side prop.
3990
- jn = e;
3989
+ Tn = e;
3991
3990
  }
3992
3991
  }));
3993
- Oo(In, "A Table.Head is required.");
3994
- var qn = xn(In, Dn);
3992
+ So(En, "A Table.Head is required.");
3993
+ var Dn = Cn(En, jn);
3995
3994
  // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
3996
3995
  // interactions will be handled by the overlaid `headTable` instead.
3997
- var An = t.Children.toArray(In.props.children).filter(t.isValidElement).map((function(e) {
3996
+ var qn = t.Children.toArray(En.props.children).filter(t.isValidElement).map((function(e) {
3998
3997
 
3999
3998
  // TS: onClick is different for regular/dropdown head cells, that's ok
4000
3999
  return (0, t.cloneElement)(e, {
4001
- visible: !qn
4000
+ visible: !Dn
4002
4001
  });
4003
4002
  }));
4004
- In = (0, t.cloneElement)(In, {}, An);
4005
- var Pn = we || sn();
4006
- var _n = Wo(w) ? He.current : Pn;
4007
- if (M) {
4008
- Dn = false;
4003
+ En = (0, t.cloneElement)(En, {}, qn);
4004
+ var An = ge || un();
4005
+ var Pn = Lo(g) ? We.current : An;
4006
+ if (z) {
4007
+ jn = false;
4009
4008
  }
4010
- var zn = En();
4011
- var Mn = (0, t.useMemo)((function() {
4009
+ var _n = Rn();
4010
+ var zn = (0, t.useMemo)((function() {
4012
4011
  return {
4013
- headType: w,
4014
- resizableFillLayout: M,
4015
- tableContainerWidthWithoutBorders: zn
4012
+ headType: g,
4013
+ resizableFillLayout: z,
4014
+ tableContainerWidthWithoutBorders: _n
4016
4015
  };
4017
- }), [ w, M, zn ]);
4018
- var $n = (0, t.useMemo)((function() {
4019
- if (!k) {
4016
+ }), [ g, z, _n ]);
4017
+ var Mn = (0, t.useMemo)((function() {
4018
+ if (!O) {
4020
4019
  return {
4021
4020
  onDragStart: function e() {
4022
4021
  return undefined;
@@ -4038,27 +4037,27 @@
4038
4037
  if (t === undefined) {
4039
4038
  return undefined;
4040
4039
  }
4041
- var r = Bo(Xe, t);
4042
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4040
+ var r = Ko(Ue, t);
4041
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Picked up sortable row in position %(pos)d of %(total)d."), {
4043
4042
  pos: r,
4044
- total: Xe.length
4043
+ total: Ue.length
4045
4044
  }) : undefined;
4046
4045
  },
4047
4046
  onDragOver: function e(n) {
4048
4047
  var t = n.active, r = n.over;
4049
- if (ge.current) {
4050
- ge.current = false;
4048
+ if (ye.current) {
4049
+ ye.current = false;
4051
4050
  return undefined;
4052
4051
  }
4053
4052
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4054
4053
  return undefined;
4055
4054
  }
4056
- var o = Bo(Xe, t.id);
4057
- var i = Bo(Xe, r.id);
4058
- return (0, T.sprintf)((0, j._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4055
+ var o = Ko(Ue, t.id);
4056
+ var i = Ko(Ue, r.id);
4057
+ return (0, I.sprintf)((0, T._)("Row moved from position %(from)d to position %(to)d of %(total)d."), {
4059
4058
  from: o,
4060
4059
  to: i,
4061
- total: Xe.length
4060
+ total: Ue.length
4062
4061
  });
4063
4062
  },
4064
4063
  onDragEnd: function e(n) {
@@ -4066,10 +4065,10 @@
4066
4065
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4067
4066
  return undefined;
4068
4067
  }
4069
- var r = Bo(Xe, t.id);
4070
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Row dropped at position %(pos)d of %(total)d."), {
4068
+ var r = Ko(Ue, t.id);
4069
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Row dropped at position %(pos)d of %(total)d."), {
4071
4070
  pos: r,
4072
- total: Xe.length
4071
+ total: Ue.length
4073
4072
  }) : undefined;
4074
4073
  },
4075
4074
  onDragCancel: function e(n) {
@@ -4077,15 +4076,15 @@
4077
4076
  if (t === undefined) {
4078
4077
  return undefined;
4079
4078
  }
4080
- var r = Bo(Xe, t);
4081
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Row returned to its starting position of %(pos)d."), {
4079
+ var r = Ko(Ue, t);
4080
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Row returned to its starting position of %(pos)d."), {
4082
4081
  pos: r
4083
4082
  }) : undefined;
4084
4083
  }
4085
4084
  };
4086
- }), [ Xe, k ]);
4087
- var Nn = (0, t.useMemo)((function() {
4088
- if (!x) {
4085
+ }), [ Ue, O ]);
4086
+ var $n = (0, t.useMemo)((function() {
4087
+ if (!C) {
4089
4088
  return {
4090
4089
  onDragStart: function e() {
4091
4090
  return undefined;
@@ -4107,28 +4106,28 @@
4107
4106
  if (t === undefined) {
4108
4107
  return undefined;
4109
4108
  }
4110
- var r = Vo(Ge, t);
4111
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4109
+ var r = Bo(Ye, t);
4110
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Picked up sortable column in position %(pos)d of %(total)d."), {
4112
4111
  pos: r,
4113
- total: Ge.length
4112
+ total: Ye.length
4114
4113
  }) : undefined;
4115
4114
  },
4116
4115
  onDragOver: function e(n) {
4117
4116
  var t = n.active, r = n.over;
4118
- if (ge.current) {
4119
- ge.current = false;
4117
+ if (ye.current) {
4118
+ ye.current = false;
4120
4119
  return undefined;
4121
4120
  }
4122
4121
  if (!t.id || !(r === null || r === void 0 ? void 0 : r.id)) {
4123
4122
  return undefined;
4124
4123
  }
4125
- var o = Vo(Ge, t.id);
4126
- var i = Vo(Ge, r.id);
4124
+ var o = Bo(Ye, t.id);
4125
+ var i = Bo(Ye, r.id);
4127
4126
  if (typeof o !== "number" || typeof i !== "number") return undefined;
4128
- return (0, T.sprintf)((0, j._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4127
+ return (0, I.sprintf)((0, T._)("Column moved from position %(from)d to position %(to)d of %(total)d."), {
4129
4128
  from: o,
4130
4129
  to: i,
4131
- total: Ge.length
4130
+ total: Ye.length
4132
4131
  });
4133
4132
  },
4134
4133
  onDragEnd: function e(n) {
@@ -4136,10 +4135,10 @@
4136
4135
  if (!(t === null || t === void 0 ? void 0 : t.id)) {
4137
4136
  return undefined;
4138
4137
  }
4139
- var r = Vo(Ge, t.id);
4140
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Column dropped at position %(pos)d of %(total)d."), {
4138
+ var r = Bo(Ye, t.id);
4139
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Column dropped at position %(pos)d of %(total)d."), {
4141
4140
  pos: r,
4142
- total: Ge.length
4141
+ total: Ye.length
4143
4142
  }) : undefined;
4144
4143
  },
4145
4144
  onDragCancel: function e(n) {
@@ -4147,51 +4146,51 @@
4147
4146
  if (t === undefined) {
4148
4147
  return undefined;
4149
4148
  }
4150
- var r = Vo(Ge, t);
4151
- return typeof r === "number" ? (0, T.sprintf)((0, j._)("Column returned to its starting position of %(pos)d."), {
4149
+ var r = Bo(Ye, t);
4150
+ return typeof r === "number" ? (0, I.sprintf)((0, T._)("Column returned to its starting position of %(pos)d."), {
4152
4151
  pos: r
4153
4152
  }) : undefined;
4154
4153
  }
4155
4154
  };
4156
- }), [ Ge, x ]);
4157
- var Ln = (0, t.useMemo)((function() {
4155
+ }), [ Ye, C ]);
4156
+ var Nn = (0, t.useMemo)((function() {
4158
4157
  return {
4159
- screenReaderInstructions: k ? Uo : Xo,
4160
- announcements: k ? $n : Nn
4158
+ screenReaderInstructions: O ? Fo : Uo,
4159
+ announcements: O ? Mn : $n
4161
4160
  };
4162
- }), [ $n, Nn, k ]);
4163
- var Wn = (0, t.useCallback)((function(e) {
4161
+ }), [ Mn, $n, O ]);
4162
+ var Ln = (0, t.useCallback)((function(e) {
4164
4163
  var n = e.active.id;
4165
- if (n.startsWith("col-") && x) {
4166
- ke([ i.restrictToHorizontalAxis ]);
4167
- cn(e);
4168
- } else if (n.startsWith("row-") && k) {
4169
- ke([ i.restrictToVerticalAxis ]);
4164
+ if (n.startsWith("col-") && C) {
4165
+ Oe([ i.restrictToHorizontalAxis ]);
4166
+ sn(e);
4167
+ } else if (n.startsWith("row-") && O) {
4168
+ Oe([ i.restrictToVerticalAxis ]);
4170
4169
  }
4171
- }), [ x, k, cn ]);
4172
- var Hn = (0, t.useCallback)((function(e) {
4173
- ke([]);
4170
+ }), [ C, O, sn ]);
4171
+ var Wn = (0, t.useCallback)((function(e) {
4172
+ Oe([]);
4174
4173
  var n = e.active.id;
4175
- if (n.startsWith("col-") && x) {
4174
+ if (n.startsWith("col-") && C) {
4175
+ fn(e);
4176
+ } else if (n.startsWith("row-") && O) {
4176
4177
  vn(e);
4177
- } else if (n.startsWith("row-") && k) {
4178
- pn(e);
4179
4178
  }
4180
- }), [ vn, pn, x, k ]);
4181
- var Kn = (0, t.useCallback)((function(e) {
4179
+ }), [ fn, vn, C, O ]);
4180
+ var Hn = (0, t.useCallback)((function(e) {
4182
4181
  var n = e.active.id;
4183
- if (n.startsWith("col-") && x) {
4184
- fn(e);
4182
+ if (n.startsWith("col-") && C) {
4183
+ dn(e);
4185
4184
  }
4186
- }), [ fn, x ]);
4187
- var Bn = (0, t.useCallback)((function(e) {
4188
- ke([]);
4185
+ }), [ dn, C ]);
4186
+ var Kn = (0, t.useCallback)((function(e) {
4187
+ Oe([]);
4189
4188
  var n = e.active.id;
4190
- if (n.startsWith("row-") && k) {
4191
- mn();
4189
+ if (n.startsWith("row-") && O) {
4190
+ pn();
4192
4191
  }
4193
- }), [ mn, k ]);
4194
- var Vn = (0, t.useMemo)((function() {
4192
+ }), [ pn, O ]);
4193
+ var Bn = (0, t.useMemo)((function() {
4195
4194
  return function(e) {
4196
4195
  var n = (0, o.pointerWithin)(e);
4197
4196
  // Collision detection algorithms return an array of collisions
@@ -4202,65 +4201,65 @@
4202
4201
  return (0, o.rectIntersection)(e);
4203
4202
  };
4204
4203
  }), []);
4205
- var Fn = Pe ? bn.current[Pe] : null;
4206
- var Un = Fn ? So(Fn).width : undefined;
4207
- var Xn = He.current ? So(He.current).height : undefined;
4204
+ var Vn = Ae ? mn.current[Ae] : null;
4205
+ var Fn = Vn ? xo(Vn).width : undefined;
4206
+ var Un = We.current ? xo(We.current).height : undefined;
4208
4207
 
4209
- return r().createElement(Z, ko({
4208
+ return r().createElement(Q, Oo({
4210
4209
  "data-test": "table",
4211
- ref: b,
4212
- style: P,
4213
- "data-test-row-selection": q ? H : undefined
4214
- }, h()(V, [].concat(Ro(Object.keys($o)), [ "style" ]))), r().createElement(S(), {
4215
- target: sn(),
4210
+ ref: m,
4211
+ style: A,
4212
+ "data-test-row-selection": D ? W : undefined
4213
+ }, b()(B, [].concat(ko(Object.keys(Mo)), [ "style" ]))), r().createElement(x(), {
4214
+ target: un(),
4216
4215
  eventType: "scroll",
4217
- listener: en,
4218
- options: Go
4219
- }), r().createElement(Kt.Provider, {
4220
- value: Mn
4221
- }, qn, r().createElement(ee, {
4216
+ listener: Ze,
4217
+ options: Yo
4218
+ }), r().createElement(Ht.Provider, {
4219
+ value: zn
4220
+ }, Dn, r().createElement(Z, {
4222
4221
  "data-test": "scroll-container",
4223
- onScroll: Qe,
4224
- ref: He,
4225
- style: C,
4226
- $dragging: !!Pe
4227
- }, r().createElement(O.ScrollContainerProvider, {
4228
- value: _n
4229
- }, r().createElement(o.DndContext, {
4230
- accessibility: Ln,
4231
- collisionDetection: Vn,
4232
- modifiers: Oe,
4233
- onDragCancel: Bn,
4234
- onDragEnd: Hn,
4235
- onDragOver: Kn,
4236
- onDragStart: Wn,
4237
- sensors: Ce
4238
- }, r().createElement(ne, {
4222
+ onScroll: Je,
4239
4223
  ref: We,
4224
+ style: w,
4225
+ $dragging: !!Ae
4226
+ }, r().createElement(S.ScrollContainerProvider, {
4227
+ value: Pn
4228
+ }, r().createElement(o.DndContext, {
4229
+ accessibility: Nn,
4230
+ collisionDetection: Bn,
4231
+ modifiers: Se,
4232
+ onDragCancel: Kn,
4233
+ onDragEnd: Wn,
4234
+ onDragOver: Hn,
4235
+ onDragStart: Ln,
4236
+ sensors: we
4237
+ }, r().createElement(ee, {
4238
+ ref: Le,
4240
4239
  "data-test": "main-table",
4241
- style: B,
4242
- "data-fixed-column": Dn ? "true" : undefined,
4243
- $resizableFillLayout: M
4244
- }, jn, x ? r().createElement(a.SortableContext, {
4245
- items: Ge,
4240
+ style: K,
4241
+ "data-fixed-column": jn ? "true" : undefined,
4242
+ $resizableFillLayout: z
4243
+ }, Tn, C ? r().createElement(a.SortableContext, {
4244
+ items: Ye,
4246
4245
  strategy: a.horizontalListSortingStrategy
4247
- }, In) : In, k ? r().createElement(a.SortableContext, {
4248
- items: Xe,
4246
+ }, En) : En, O ? r().createElement(a.SortableContext, {
4247
+ items: Ue,
4249
4248
  strategy: a.verticalListSortingStrategy
4250
- }, Tn) : Tn), Pe && r().createElement(o.DragOverlay, null, r().createElement(ie, {
4251
- $width: Un,
4252
- $height: Xn
4253
- })), Pe && yn))), Rn()));
4254
- }
4255
- Qo.propTypes = $o;
4256
- Qo.Body = Q;
4257
- Qo.Caption = fe;
4258
- Qo.Cell = Se;
4259
- Qo.Head = nr;
4260
- Qo.HeadCell = Mn;
4261
- Qo.HeadDropdownCell = Sr;
4262
- Qo.Row = Wt;
4263
- /* harmony default export */ const Zo = Qo;
4249
+ }, In) : In), Ae && r().createElement(o.DragOverlay, null, r().createElement(oe, {
4250
+ $width: Fn,
4251
+ $height: Un
4252
+ })), Ae && hn))), kn()));
4253
+ }
4254
+ Jo.propTypes = Mo;
4255
+ Jo.Body = J;
4256
+ Jo.Caption = de;
4257
+ Jo.Cell = xe;
4258
+ Jo.Head = er;
4259
+ Jo.HeadCell = zn;
4260
+ Jo.HeadDropdownCell = xr;
4261
+ Jo.Row = Lt;
4262
+ /* harmony default export */ const Qo = Jo;
4264
4263
  // CONCATENATED MODULE: ./src/Table/index.ts
4265
4264
  module.exports = n;
4266
4265
  /******/})();