@splunk/react-ui 4.23.0 → 4.24.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 (36) hide show
  1. package/Breadcrumbs.js +99 -124
  2. package/CHANGELOG.md +11 -0
  3. package/ComboBox.js +49 -37
  4. package/JSONTree.js +210 -177
  5. package/Menu.js +643 -472
  6. package/Modal.js +261 -222
  7. package/Multiselect.js +634 -620
  8. package/ResultsMenu.js +863 -148
  9. package/Search.js +3 -1
  10. package/Select.js +427 -416
  11. package/TabBar.js +2 -2
  12. package/Table.js +2 -2
  13. package/Tree.js +617 -0
  14. package/package.json +1 -1
  15. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +7 -1
  16. package/types/src/Breadcrumbs/Item.d.ts +8 -2
  17. package/types/src/ComboBox/ComboBox.d.ts +6 -0
  18. package/types/src/JSONTree/JSONTree.d.ts +2 -1
  19. package/types/src/Menu/Menu.d.ts +14 -1
  20. package/types/src/Modal/Modal.d.ts +6 -0
  21. package/types/src/Multiselect/Compact.d.ts +6 -0
  22. package/types/src/Multiselect/Multiselect.d.ts +7 -0
  23. package/types/src/ResultsMenu/ResultsMenu.d.ts +53 -1
  24. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +9 -0
  25. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +33 -0
  26. package/types/src/ResultsMenu/VirtualizedResultsMenu/groupChildren.d.ts +16 -0
  27. package/types/src/ResultsMenu/VirtualizedResultsMenu/index.d.ts +3 -0
  28. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +21 -0
  29. package/types/src/ResultsMenu/index.d.ts +2 -1
  30. package/types/src/Select/Select.d.ts +2 -0
  31. package/types/src/Select/SelectBase.d.ts +6 -0
  32. package/types/src/Tree/Tree.d.ts +24 -0
  33. package/types/src/Tree/TreeContext.d.ts +13 -0
  34. package/types/src/Tree/TreeItem.d.ts +31 -0
  35. package/types/src/Tree/index.d.ts +3 -0
  36. package/types/src/Tree/treeUtils.d.ts +29 -0
package/Select.js CHANGED
@@ -71,10 +71,10 @@
71
71
  var r = e.n(n);
72
72
  // CONCATENATED MODULE: external "prop-types"
73
73
  const o = require("prop-types");
74
- var a = e.n(o);
74
+ var i = e.n(o);
75
75
  // CONCATENATED MODULE: external "lodash/has"
76
- const i = require("lodash/has");
77
- var l = e.n(i);
76
+ const a = require("lodash/has");
77
+ var l = e.n(a);
78
78
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
79
79
  const c = require("@splunk/ui-utils/i18n");
80
80
  // CONCATENATED MODULE: external "lodash/castArray"
@@ -134,14 +134,14 @@
134
134
  const $ = require("@splunk/react-icons/CaretSmallDown");
135
135
  var H = e.n($);
136
136
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Caret"
137
- const W = require("@splunk/react-icons/enterprise/Caret");
138
- var z = e.n(W);
137
+ const z = require("@splunk/react-icons/enterprise/Caret");
138
+ var W = e.n(z);
139
139
  // CONCATENATED MODULE: external "@splunk/themes"
140
140
  const U = require("@splunk/themes");
141
141
  // CONCATENATED MODULE: ./src/Select/icons/CaretSmallDown.tsx
142
142
  var G = function e() {
143
143
  var t = (0, U.useSplunkTheme)(), n = t.isEnterprise;
144
- var o = n ? r().createElement(z(), {
144
+ var o = n ? r().createElement(W(), {
145
145
  screenReaderText: null,
146
146
  hideDefaultTooltip: true,
147
147
  size: .5
@@ -158,18 +158,18 @@
158
158
  // CONCATENATED MODULE: ./src/Select/icons/Search.tsx
159
159
  var ee = function e() {
160
160
  var t = (0, U.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
161
- var a = (0, c._)("Search");
162
- var i = o ? "20px" : "24px";
161
+ var i = (0, c._)("Search");
162
+ var a = o ? "20px" : "24px";
163
163
  var l = n ? r().createElement(X(), {
164
164
  role: "presentation",
165
165
  size: "16px",
166
- screenReaderText: a,
166
+ screenReaderText: i,
167
167
  hideDefaultTooltip: true
168
168
  }) : r().createElement(Z(), {
169
169
  role: "presentation",
170
- "aria-label": a,
171
- width: i,
172
- height: i
170
+ "aria-label": i,
171
+ width: a,
172
+ height: a
173
173
  });
174
174
  return l;
175
175
  };
@@ -204,12 +204,12 @@
204
204
  }
205
205
  function oe(e, t) {
206
206
  if (e == null) return {};
207
- var n = ae(e, t);
207
+ var n = ie(e, t);
208
208
  var r, o;
209
209
  if (Object.getOwnPropertySymbols) {
210
- var a = Object.getOwnPropertySymbols(e);
211
- for (o = 0; o < a.length; o++) {
212
- r = a[o];
210
+ var i = Object.getOwnPropertySymbols(e);
211
+ for (o = 0; o < i.length; o++) {
212
+ r = i[o];
213
213
  if (t.indexOf(r) >= 0) continue;
214
214
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
215
215
  n[r] = e[r];
@@ -217,19 +217,19 @@
217
217
  }
218
218
  return n;
219
219
  }
220
- function ae(e, t) {
220
+ function ie(e, t) {
221
221
  if (e == null) return {};
222
222
  var n = {};
223
223
  var r = Object.keys(e);
224
- var o, a;
225
- for (a = 0; a < r.length; a++) {
226
- o = r[a];
224
+ var o, i;
225
+ for (i = 0; i < r.length; i++) {
226
+ o = r[i];
227
227
  if (t.indexOf(o) >= 0) continue;
228
228
  n[o] = e[o];
229
229
  }
230
230
  return n;
231
231
  }
232
- function ie(e, t) {
232
+ function ae(e, t) {
233
233
  if (!(e instanceof t)) {
234
234
  throw new TypeError("Cannot call a class as a function");
235
235
  }
@@ -273,8 +273,8 @@
273
273
  return function n() {
274
274
  var r = he(e), o;
275
275
  if (t) {
276
- var a = he(this).constructor;
277
- o = Reflect.construct(r, arguments, a);
276
+ var i = he(this).constructor;
277
+ o = Reflect.construct(r, arguments, i);
278
278
  } else {
279
279
  o = r.apply(this, arguments);
280
280
  }
@@ -325,28 +325,28 @@
325
325
  }
326
326
  var me = {
327
327
  /** @private */
328
- active: a().bool,
329
- children: a().node,
330
- description: a().string,
331
- descriptionPosition: a().oneOf([ "right", "bottom" ]),
332
- disabled: a().bool,
333
- hidden: a().bool,
334
- icon: a().node,
335
- label: a().string.isRequired,
328
+ active: i().bool,
329
+ children: i().node,
330
+ description: i().string,
331
+ descriptionPosition: i().oneOf([ "right", "bottom" ]),
332
+ disabled: i().bool,
333
+ hidden: i().bool,
334
+ icon: i().node,
335
+ label: i().string.isRequired,
336
336
  /**
337
337
  * @private Passed down from <BaseSelect>
338
338
  */
339
- multiple: a().bool,
340
- matchRanges: a().arrayOf(a().shape({
341
- start: a().number.isRequired,
342
- end: a().number.isRequired
339
+ multiple: i().bool,
340
+ matchRanges: i().arrayOf(i().shape({
341
+ start: i().number.isRequired,
342
+ end: i().number.isRequired
343
343
  })),
344
344
  /** @private */
345
- onClick: a().func,
345
+ onClick: i().func,
346
346
  /** @private */
347
- selected: a().bool,
348
- truncate: a().bool,
349
- value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
347
+ selected: i().bool,
348
+ truncate: i().bool,
349
+ value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
350
350
  };
351
351
  var ye = {
352
352
  descriptionPosition: "bottom",
@@ -364,15 +364,15 @@
364
364
  var t = pe(n);
365
365
  function n() {
366
366
  var e;
367
- ie(this, n);
368
- for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
369
- o[a] = arguments[a];
367
+ ae(this, n);
368
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
369
+ o[i] = arguments[i];
370
370
  }
371
371
  e = t.call.apply(t, [ this ].concat(o));
372
372
  be(de(e), "c", null);
373
373
  be(de(e), "handleClick", (function(t) {
374
- var n = e.props, r = n.onClick, o = n.value, a = n.disabled;
375
- if (!a) {
374
+ var n = e.props, r = n.onClick, o = n.value, i = n.disabled;
375
+ if (!i) {
376
376
  r === null || r === void 0 ? void 0 : r(t, {
377
377
  value: o
378
378
  });
@@ -400,7 +400,7 @@
400
400
  }, {
401
401
  key: "render",
402
402
  value: function e() {
403
- var t = this.props, n = t.value, o = t.children, a = t.label, i = t.multiple, l = oe(t, [ "value", "children", "label", "multiple" ]);
403
+ var t = this.props, n = t.value, o = t.children, i = t.label, a = t.multiple, l = oe(t, [ "value", "children", "label", "multiple" ]);
404
404
 
405
405
  return r().createElement(T.Item, re({
406
406
  "aria-selected": this.props.selected,
@@ -409,11 +409,11 @@
409
409
  ref: this.handleMount
410
410
  }, l, {
411
411
  selectable: true,
412
- selectableAppearance: i ? "checkbox" : undefined,
412
+ selectableAppearance: a ? "checkbox" : undefined,
413
413
  onClick: this.handleClick,
414
414
  role: "option",
415
415
  value: n.toString()
416
- }), o || a);
416
+ }), o || i);
417
417
  }
418
418
  } ]);
419
419
  return n;
@@ -618,25 +618,25 @@
618
618
  }));
619
619
  // CONCATENATED MODULE: ./src/Select/SelectAllOption.tsx
620
620
  var Ke = {
621
- active: a().bool,
622
- elementRef: a().oneOfType([ a().func, a().object ]),
623
- id: a().string,
624
- onClick: a().func,
625
- selectAllLabel: a().string,
626
- totalCount: a().number,
627
- changedToggle: a().bool,
628
- selected: a().oneOf([ false, true, "some" ])
621
+ active: i().bool,
622
+ elementRef: i().oneOfType([ i().func, i().object ]),
623
+ id: i().string,
624
+ onClick: i().func,
625
+ selectAllLabel: i().string,
626
+ totalCount: i().number,
627
+ changedToggle: i().bool,
628
+ selected: i().oneOf([ false, true, "some" ])
629
629
  };
630
630
  var Fe = r().forwardRef((function(e, t) {
631
- var n = e.active, o = e.id, a = e.onClick, i = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, u = e.selected;
631
+ var n = e.active, o = e.id, i = e.onClick, a = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, u = e.selected;
632
632
  // When toggle is changed the total count is not displayed anymore so the count is now shown in the Select all menu item
633
633
  var p = s ? " (".concat(l === null || l === void 0 ? void 0 : l.toString(), ")") : "";
634
634
 
635
635
  return r().createElement(Be, {
636
- label: i,
636
+ label: a,
637
637
  value: "selectAll",
638
638
  key: "selectAll",
639
- onClick: a,
639
+ onClick: i,
640
640
  "data-test": "select-all",
641
641
  "aria-keyshortcuts": "Control+A",
642
642
  id: o,
@@ -661,15 +661,15 @@
661
661
  $truncate: false
662
662
  }, r().createElement(Ne, {
663
663
  $truncate: false
664
- }, i))));
664
+ }, a))));
665
665
  }));
666
666
  Fe.propTypes = Ke;
667
667
  /* harmony default export */ const $e = Fe;
668
668
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
669
669
  const He = require("@splunk/react-ui/Button");
670
- var We = e.n(He);
670
+ var ze = e.n(He);
671
671
  // CONCATENATED MODULE: ./src/Select/SelectBaseStyles.ts
672
- var ze = we()(We()).withConfig({
672
+ var We = we()(ze()).withConfig({
673
673
  displayName: "SelectBaseStyles__StyledButton",
674
674
  componentId: "sc-16cj7sk-0"
675
675
  })([ "&[data-inline]{width:", ";}", "" ], (function(e) {
@@ -748,7 +748,7 @@
748
748
  }
749
749
  var r = null;
750
750
  var o = false;
751
- var a = t.filter((function(e) {
751
+ var i = t.filter((function(e) {
752
752
  var t = et(e, n.index);
753
753
  if (t === n.value) {
754
754
  o = true;
@@ -757,22 +757,22 @@
757
757
  // If we haven't found a match yet, keep track of the next closest match.
758
758
  // Secondary matching looks for the closest character of a higher value, and failing that, closest of a lower value.
759
759
  if (!o) {
760
- var a = et(r, n.index);
761
- if (!a) {
760
+ var i = et(r, n.index);
761
+ if (!i) {
762
762
  r = e;
763
763
  } else if (t > n.value) {
764
- if (a < n.value) {
764
+ if (i < n.value) {
765
765
  r = e;
766
- } else if (a > t) {
766
+ } else if (i > t) {
767
767
  r = e;
768
768
  }
769
- } else if (t > a) {
769
+ } else if (t > i) {
770
770
  r = e;
771
771
  }
772
772
  }
773
773
  return false;
774
774
  }));
775
- return a.length === 0 && r ? [ r ] : a;
775
+ return i.length === 0 && r ? [ r ] : i;
776
776
  };
777
777
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
778
778
  /* eslint-disable @typescript-eslint/no-empty-function */
@@ -891,13 +891,13 @@
891
891
  clearTimeout(t);
892
892
  }
893
893
  };
894
- function at() {
894
+ function it() {
895
895
  var e = typeof window !== "undefined" ? window : ot;
896
896
  return e;
897
897
  }
898
898
  // CONCATENATED MODULE: ./src/Select/SelectBase.tsx
899
- function it() {
900
- it = Object.assign || function(e) {
899
+ function at() {
900
+ at = Object.assign || function(e) {
901
901
  for (var t = 1; t < arguments.length; t++) {
902
902
  var n = arguments[t];
903
903
  for (var r in n) {
@@ -908,7 +908,7 @@
908
908
  }
909
909
  return e;
910
910
  };
911
- return it.apply(this, arguments);
911
+ return at.apply(this, arguments);
912
912
  }
913
913
  function lt(e, t) {
914
914
  return ut(e) || st(e, t) || dt(e, t) || ct();
@@ -921,20 +921,20 @@
921
921
  var n = [];
922
922
  var r = true;
923
923
  var o = false;
924
- var a = undefined;
924
+ var i = undefined;
925
925
  try {
926
- for (var i = e[Symbol.iterator](), l; !(r = (l = i.next()).done); r = true) {
926
+ for (var a = e[Symbol.iterator](), l; !(r = (l = a.next()).done); r = true) {
927
927
  n.push(l.value);
928
928
  if (t && n.length === t) break;
929
929
  }
930
930
  } catch (e) {
931
931
  o = true;
932
- a = e;
932
+ i = e;
933
933
  } finally {
934
934
  try {
935
- if (!r && i["return"] != null) i["return"]();
935
+ if (!r && a["return"] != null) a["return"]();
936
936
  } finally {
937
- if (o) throw a;
937
+ if (o) throw i;
938
938
  }
939
939
  }
940
940
  return n;
@@ -1013,8 +1013,8 @@
1013
1013
  return function n() {
1014
1014
  var r = It(e), o;
1015
1015
  if (t) {
1016
- var a = It(this).constructor;
1017
- o = Reflect.construct(r, arguments, a);
1016
+ var i = It(this).constructor;
1017
+ o = Reflect.construct(r, arguments, i);
1018
1018
  } else {
1019
1019
  o = r.apply(this, arguments);
1020
1020
  }
@@ -1105,48 +1105,50 @@
1105
1105
  return e;
1106
1106
  }
1107
1107
  var Mt = {
1108
- allowKeyMatching: a().bool,
1109
- allowNewValues: a().bool,
1110
- animateLoading: a().bool,
1111
- appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1112
- append: a().bool,
1113
- children: a().node,
1114
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
1115
- defaultValues: a().array,
1116
- describedBy: a().string,
1117
- disabled: a().bool,
1118
- elementRef: a().oneOfType([ a().func, a().object ]),
1119
- error: a().bool,
1120
- filter: a().oneOf([ false, true, "controlled" ]),
1121
- footerMessage: a().node,
1122
- inline: a().bool,
1123
- inputId: a().string,
1124
- inputRef: a().oneOfType([ a().func, a().object ]),
1125
- isLoadingOptions: a().bool,
1126
- labelledBy: a().string,
1127
- labelText: a().string,
1128
- loadingMessage: a().node,
1129
- menuStyle: a().object,
1130
- multiple: a().bool,
1131
- name: a().string,
1132
- noOptionsMessage: a().node,
1133
- onChange: a().func,
1134
- onClose: a().func,
1135
- onFilterChange: a().func,
1136
- onOpen: a().func,
1137
- onScroll: a().func,
1138
- onScrollBottom: a().func,
1108
+ allowKeyMatching: i().bool,
1109
+ allowNewValues: i().bool,
1110
+ animateLoading: i().bool,
1111
+ appearance: i().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1112
+ append: i().bool,
1113
+ children: i().node,
1114
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
1115
+ defaultValues: i().array,
1116
+ describedBy: i().string,
1117
+ disabled: i().bool,
1118
+ elementRef: i().oneOfType([ i().func, i().object ]),
1119
+ error: i().bool,
1120
+ filter: i().oneOf([ false, true, "controlled" ]),
1121
+ footerMessage: i().node,
1122
+ inline: i().bool,
1123
+ inputId: i().string,
1124
+ inputRef: i().oneOfType([ i().func, i().object ]),
1125
+ isLoadingOptions: i().bool,
1126
+ labelledBy: i().string,
1127
+ labelText: i().string,
1128
+ loadingMessage: i().node,
1129
+ menuStyle: i().object,
1130
+ multiple: i().bool,
1131
+ name: i().string,
1132
+ noOptionsMessage: i().node,
1133
+ onChange: i().func,
1134
+ onClose: i().func,
1135
+ onFilterChange: i().func,
1136
+ onOpen: i().func,
1137
+ onScroll: i().func,
1138
+ onScrollBottom: i().func,
1139
+ /** @private. */
1140
+ required: i().bool,
1141
+ placeholder: i().string,
1142
+ prefixLabel: i().string,
1143
+ prepend: i().bool,
1144
+ repositionMode: i().oneOf([ "none", "flip" ]),
1145
+ selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
1146
+ showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
1147
+ suffixLabel: i().string,
1148
+ tabConfirmsNewValue: i().bool,
1149
+ values: i().array,
1139
1150
  /** @private. */
1140
- required: a().bool,
1141
- placeholder: a().string,
1142
- prefixLabel: a().string,
1143
- prepend: a().bool,
1144
- repositionMode: a().oneOf([ "none", "flip" ]),
1145
- selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
1146
- showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
1147
- suffixLabel: a().string,
1148
- tabConfirmsNewValue: a().bool,
1149
- values: a().array
1151
+ virtualization: i().number
1150
1152
  };
1151
1153
  var Tt = {
1152
1154
  allowKeyMatching: true,
@@ -1201,149 +1203,149 @@
1201
1203
  }
1202
1204
  } ]);
1203
1205
  function o(e) {
1204
- var a;
1206
+ var i;
1205
1207
  mt(this, o);
1206
- a = t.call(this, e);
1207
- Et(xt(a), "activeItemId", void 0);
1208
- Et(xt(a), "activeValue", void 0);
1209
- Et(xt(a), "availableOptionCount", void 0);
1210
- Et(xt(a), "controlledExternally", void 0);
1211
- Et(xt(a), "displayedValues", void 0);
1212
- Et(xt(a), "dropdown", null);
1213
- Et(xt(a), "firstSelectedEnabledOption", null);
1214
- Et(xt(a), "firstSelectedOptionIndex", void 0);
1215
- Et(xt(a), "menuId", void 0);
1216
- Et(xt(a), "previousActiveIndex", null);
1217
- Et(xt(a), "selectedOptionCount", void 0);
1218
- Et(xt(a), "optionRefsByKey", void 0);
1219
- Et(xt(a), "matchCharacter", void 0);
1220
- Et(xt(a), "matchTimeout", void 0);
1221
- Et(xt(a), "currentMatchOptions", void 0);
1222
- Et(xt(a), "availableMatchOptions", void 0);
1223
- Et(xt(a), "optionSelection", void 0);
1224
- Et(xt(a), "resetMatches", (function() {
1225
- a.matchCharacter = null;
1226
- a.currentMatchOptions = [];
1227
- if (a.matchTimeout) {
1228
- clearTimeout(a.matchTimeout);
1208
+ i = t.call(this, e);
1209
+ Et(xt(i), "activeItemId", void 0);
1210
+ Et(xt(i), "activeValue", void 0);
1211
+ Et(xt(i), "availableOptionCount", void 0);
1212
+ Et(xt(i), "controlledExternally", void 0);
1213
+ Et(xt(i), "displayedValues", void 0);
1214
+ Et(xt(i), "dropdown", null);
1215
+ Et(xt(i), "firstSelectedEnabledOption", null);
1216
+ Et(xt(i), "firstSelectedOptionIndex", void 0);
1217
+ Et(xt(i), "menuId", void 0);
1218
+ Et(xt(i), "previousActiveIndex", null);
1219
+ Et(xt(i), "selectedOptionCount", void 0);
1220
+ Et(xt(i), "optionRefsByKey", void 0);
1221
+ Et(xt(i), "matchCharacter", void 0);
1222
+ Et(xt(i), "matchTimeout", void 0);
1223
+ Et(xt(i), "currentMatchOptions", void 0);
1224
+ Et(xt(i), "availableMatchOptions", void 0);
1225
+ Et(xt(i), "optionSelection", void 0);
1226
+ Et(xt(i), "resetMatches", (function() {
1227
+ i.matchCharacter = null;
1228
+ i.currentMatchOptions = [];
1229
+ if (i.matchTimeout) {
1230
+ clearTimeout(i.matchTimeout);
1229
1231
  }
1230
1232
  }));
1231
- Et(xt(a), "handleSelectAll", (function(e) {
1233
+ Et(xt(i), "handleSelectAll", (function(e) {
1232
1234
  var t, n, o;
1233
- var i = a.props, l = i.name, c = i.children, s = i.multiple;
1235
+ var a = i.props, l = a.name, c = a.children, s = a.multiple;
1234
1236
  // this doesn't make sense if we can't select multiple values
1235
1237
  if (!s) {
1236
1238
  return;
1237
1239
  }
1238
- var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1239
- var p = A()(u.concat(a.displayedValues));
1240
+ var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1241
+ var p = A()(u.concat(i.displayedValues));
1240
1242
  p = r().Children.toArray(c).filter((function(e) {
1241
1243
  return Dt(e) && b()(p, e.props.value) && (!e.props.disabled || b()(u, e.props.value));
1242
1244
  })).map((function(e) {
1243
1245
  return e.props.value;
1244
1246
  }));
1245
- if (!a.isControlled()) {
1246
- a.setState({
1247
+ if (!i.isControlled()) {
1248
+ i.setState({
1247
1249
  values: p
1248
1250
  });
1249
1251
  }
1250
- (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1252
+ (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1251
1253
  values: p,
1252
1254
  name: l,
1253
1255
  reason: "selectAll"
1254
1256
  });
1255
1257
  }));
1256
- Et(xt(a), "handleClearAll", (function(e) {
1258
+ Et(xt(i), "handleClearAll", (function(e) {
1257
1259
  var t, n, o;
1258
- var i = a.props, l = i.name, c = i.children, s = i.multiple;
1260
+ var a = i.props, l = a.name, c = a.children, s = a.multiple;
1259
1261
  // this doesn't make sense if we can't select multiple values
1260
1262
  if (!s) {
1261
1263
  return;
1262
1264
  }
1263
- var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1264
- var p = E().apply(void 0, [ u ].concat(pt(a.displayedValues)));
1265
+ var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1266
+ var p = E().apply(void 0, [ u ].concat(pt(i.displayedValues)));
1265
1267
  // this will unselect all selected values unless those values are disabled or hidden by the filter
1266
1268
  var f = r().Children.toArray(c).filter((function(e) {
1267
1269
  return Dt(e) && (b()(u, e.props.value) && e.props.disabled || b()(p, e.props.value));
1268
1270
  })).map((function(e) {
1269
1271
  return e.props.value;
1270
1272
  }));
1271
- if (!a.isControlled()) {
1272
- a.setState({
1273
+ if (!i.isControlled()) {
1274
+ i.setState({
1273
1275
  values: f
1274
1276
  });
1275
1277
  }
1276
- (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1278
+ (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1277
1279
  values: f,
1278
1280
  name: l,
1279
1281
  reason: "clearAll"
1280
1282
  });
1281
1283
  }));
1282
- Et(xt(a), "handleTextKeyDown", (function(e) {
1283
- var t = a.props, r = t.children, o = t.onScrollBottom, i = t.tabConfirmsNewValue;
1284
+ Et(xt(i), "handleTextKeyDown", (function(e) {
1285
+ var t = i.props, r = t.children, o = t.onScrollBottom, a = t.tabConfirmsNewValue;
1284
1286
  var l = (0, R.keycode)(e.nativeEvent);
1285
1287
  if (l === "tab") {
1286
- if (i && !y()(a.activeValue) && a.availableOptionCount <= 1) {
1288
+ if (a && !y()(i.activeValue) && i.availableOptionCount <= 1) {
1287
1289
  e.preventDefault();
1288
- a.toggleValue(e, a.activeValue);
1290
+ i.toggleValue(e, i.activeValue);
1289
1291
  }
1290
1292
  }
1291
1293
  if (e.shiftKey || e.metaKey || e.ctrlKey) {
1292
1294
  if (l === "a" && (e.ctrlKey || e.metaKey)) {
1293
1295
  // handle control + A
1294
- if (a.optionSelection === "all") {
1295
- a.handleClearAll(e);
1296
+ if (i.optionSelection === "all") {
1297
+ i.handleClearAll(e);
1296
1298
  } else {
1297
- a.handleSelectAll(e);
1299
+ i.handleSelectAll(e);
1298
1300
  }
1299
1301
  }
1300
1302
  return;
1301
1303
  }
1302
1304
  if (l === "down") {
1303
1305
  e.preventDefault();
1304
- a.setState((function(e) {
1306
+ i.setState((function(e) {
1305
1307
  return {
1306
- activeIndex: Math.min(e.activeIndex + 1, a.props.selectAllAppearance === "checkbox" ? a.availableOptionCount : a.availableOptionCount - 1)
1308
+ activeIndex: Math.min(e.activeIndex + 1, i.props.selectAllAppearance === "checkbox" ? i.availableOptionCount : i.availableOptionCount - 1)
1307
1309
  };
1308
1310
  }));
1309
1311
  if (r && o) {
1310
1312
  var c;
1311
- var s = n.Children.toArray(r).length - (2 + ((c = a.getCurrentValues()) !== null && c !== void 0 ? c : []).length);
1312
- if (a.state.activeIndex === s) {
1313
- a.handleScrollBottom(e);
1313
+ var s = n.Children.toArray(r).length - (2 + ((c = i.getCurrentValues()) !== null && c !== void 0 ? c : []).length);
1314
+ if (i.state.activeIndex === s) {
1315
+ i.handleScrollBottom(e);
1314
1316
  }
1315
1317
  }
1316
1318
  }
1317
1319
  if (l === "up") {
1318
1320
  e.preventDefault();
1319
- a.setState((function(e) {
1321
+ i.setState((function(e) {
1320
1322
  return {
1321
1323
  activeIndex: Math.max(e.activeIndex - 1, 0)
1322
1324
  };
1323
1325
  }));
1324
1326
  }
1325
- if (l === "enter" && !y()(a.activeValue) && a.state.open) {
1326
- if (a.activeValue === "selectAll") {
1327
- if (a.optionSelection === "all") {
1328
- a.handleClearAll(e);
1327
+ if (l === "enter" && !y()(i.activeValue) && i.state.open) {
1328
+ if (i.activeValue === "selectAll") {
1329
+ if (i.optionSelection === "all") {
1330
+ i.handleClearAll(e);
1329
1331
  } else {
1330
- a.handleSelectAll(e);
1332
+ i.handleSelectAll(e);
1331
1333
  }
1332
1334
  } else {
1333
1335
  e.preventDefault();
1334
- a.toggleValue(e, a.activeValue);
1336
+ i.toggleValue(e, i.activeValue);
1335
1337
  }
1336
1338
  }
1337
1339
  }));
1338
- Et(xt(a), "handleMenuOptionClick", (function(e, t) {
1340
+ Et(xt(i), "handleMenuOptionClick", (function(e, t) {
1339
1341
  var n = t.value;
1340
1342
  e.preventDefault();
1341
- if (!a.state.open) {
1343
+ if (!i.state.open) {
1342
1344
  return;
1343
1345
  }
1344
- a.toggleValue(e, n);
1346
+ i.toggleValue(e, n);
1345
1347
  }));
1346
- Et(xt(a), "handleMenuOptionKeyDown", (function(e, t) {
1348
+ Et(xt(i), "handleMenuOptionKeyDown", (function(e, t) {
1347
1349
  var n = e.nativeEvent.key;
1348
1350
  // Checking for a single character to avoid complications from double-byte languages and emojis.
1349
1351
  if (n.length === 1) {
@@ -1352,131 +1354,131 @@
1352
1354
  index: 0,
1353
1355
  value: n
1354
1356
  };
1355
- if (!a.matchCharacter) {
1357
+ if (!i.matchCharacter) {
1356
1358
  if (n === " ") {
1357
- a.resetMatches();
1359
+ i.resetMatches();
1358
1360
  return;
1359
1361
  }
1360
- r = tt(a.availableMatchOptions, o);
1361
- } else if (a.currentMatchOptions.length > 1) {
1362
- o.index = a.matchCharacter.index + 1;
1363
- r = tt(a.currentMatchOptions, o);
1362
+ r = tt(i.availableMatchOptions, o);
1363
+ } else if (i.currentMatchOptions.length > 1) {
1364
+ o.index = i.matchCharacter.index + 1;
1365
+ r = tt(i.currentMatchOptions, o);
1364
1366
  }
1365
1367
  if (r.length) {
1366
- var i = 0;
1368
+ var a = 0;
1367
1369
  // If the active option is a first character match, cycle to the next matching option.
1368
1370
  if (o.index === 0 && r.length > 1) {
1369
- var l = r.indexOf(a.availableMatchOptions[t]);
1371
+ var l = r.indexOf(i.availableMatchOptions[t]);
1370
1372
  if (l >= 0) {
1371
- i = l === r.length - 1 ? 0 : l + 1;
1373
+ a = l === r.length - 1 ? 0 : l + 1;
1372
1374
  }
1373
1375
  }
1374
- var c = r[i];
1375
- var s = a.optionRefsByKey[qt(c.value, c.label)];
1376
+ var c = r[a];
1377
+ var s = i.optionRefsByKey[qt(c.value, c.label)];
1376
1378
  if (s != null) {
1377
1379
  var u;
1378
1380
  (u = s.focus) === null || u === void 0 ? void 0 : u.call(s);
1379
1381
  }
1380
1382
  }
1381
- a.currentMatchOptions = r;
1382
- a.matchCharacter = o;
1383
- if (a.matchTimeout) {
1384
- clearTimeout(a.matchTimeout);
1383
+ i.currentMatchOptions = r;
1384
+ i.matchCharacter = o;
1385
+ if (i.matchTimeout) {
1386
+ clearTimeout(i.matchTimeout);
1385
1387
  }
1386
- a.matchTimeout = setTimeout(a.resetMatches, 500);
1388
+ i.matchTimeout = setTimeout(i.resetMatches, 500);
1387
1389
  e.preventDefault();
1388
1390
  e.stopPropagation();
1389
1391
  }
1390
1392
  }));
1391
- Et(xt(a), "handleTextChange", (function(e, t) {
1393
+ Et(xt(i), "handleTextChange", (function(e, t) {
1392
1394
  var n, r;
1393
1395
  var o = t.value;
1394
- a.setState({
1396
+ i.setState({
1395
1397
  filterKeyword: o,
1396
1398
  open: true,
1397
1399
  activeIndex: 0
1398
1400
  });
1399
- (n = (r = a.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1401
+ (n = (r = i.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1400
1402
  keyword: o
1401
1403
  });
1402
1404
  }));
1403
- Et(xt(a), "handleTextFocus", (function() {
1404
- a.setState({
1405
+ Et(xt(i), "handleTextFocus", (function() {
1406
+ i.setState({
1405
1407
  textHasFocus: true
1406
1408
  });
1407
1409
  }));
1408
- Et(xt(a), "handleTextBlur", (function() {
1409
- a.setState({
1410
+ Et(xt(i), "handleTextBlur", (function() {
1411
+ i.setState({
1410
1412
  textHasFocus: false
1411
1413
  });
1412
1414
  }));
1413
- Et(xt(a), "handleRequestOpen", (function(e) {
1415
+ Et(xt(i), "handleRequestOpen", (function(e) {
1414
1416
  var t = {
1415
1417
  open: true,
1416
- topValues: a.getTopValues()
1418
+ topValues: i.getTopValues()
1417
1419
  };
1418
1420
  // SUI-3234: preserve existing behavior difference between <Select> and <Multiselect.Compact>
1419
- if (a.props.multiple) {
1421
+ if (i.props.multiple) {
1420
1422
  t.filterKeyword = "";
1421
1423
  }
1422
- var n = a.state.filterKeyword;
1423
- a.setState(t, (function() {
1424
+ var n = i.state.filterKeyword;
1425
+ i.setState(t, (function() {
1424
1426
  var t, r;
1425
- (t = (r = a.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1426
- if (a.firstSelectedEnabledOption && !a.hasFilter()) {
1427
- a.firstSelectedEnabledOption.focus();
1427
+ (t = (r = i.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1428
+ if (i.firstSelectedEnabledOption && !i.hasFilter()) {
1429
+ i.firstSelectedEnabledOption.focus();
1428
1430
  } else {
1429
1431
  var o;
1430
- a.setState({
1431
- activeIndex: (o = a.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1432
+ i.setState({
1433
+ activeIndex: (o = i.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1432
1434
  });
1433
1435
  }
1434
- if (n !== a.state.filterKeyword) {
1435
- var i, l;
1436
- (i = (l = a.props).onFilterChange) === null || i === void 0 ? void 0 : i.call(l, e, {
1437
- keyword: a.state.filterKeyword
1436
+ if (n !== i.state.filterKeyword) {
1437
+ var a, l;
1438
+ (a = (l = i.props).onFilterChange) === null || a === void 0 ? void 0 : a.call(l, e, {
1439
+ keyword: i.state.filterKeyword
1438
1440
  });
1439
1441
  }
1440
1442
  }));
1441
1443
  }));
1442
- Et(xt(a), "handleRequestClose", (function() {
1443
- a.setState({
1444
+ Et(xt(i), "handleRequestClose", (function() {
1445
+ i.setState({
1444
1446
  open: false,
1445
1447
  activeIndex: 0
1446
1448
  }, (function() {
1447
1449
  var e, t;
1448
- a.previousActiveIndex = null;
1449
- (e = (t = a.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1450
+ i.previousActiveIndex = null;
1451
+ (e = (t = i.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1450
1452
  }));
1451
1453
  }));
1452
- Et(xt(a), "handleScrollBottom", (function(e) {
1453
- if (a.state.open && !a.props.isLoadingOptions) {
1454
+ Et(xt(i), "handleScrollBottom", (function(e) {
1455
+ if (i.state.open && !i.props.isLoadingOptions) {
1454
1456
  var t, n;
1455
- (t = (n = a.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1457
+ (t = (n = i.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1456
1458
  }
1457
1459
  }));
1458
- Et(xt(a), "handleActiveOptionMount", (function(e) {
1459
- if (a.previousActiveIndex !== a.state.activeIndex) {
1460
+ Et(xt(i), "handleActiveOptionMount", (function(e) {
1461
+ if (i.previousActiveIndex !== i.state.activeIndex) {
1460
1462
  e === null || e === void 0 ? void 0 : e.scrollIntoViewIfNeeded();
1461
1463
  }
1462
1464
  }));
1463
- Et(xt(a), "handleOptionMount", (function(e, t, n) {
1465
+ Et(xt(i), "handleOptionMount", (function(e, t, n) {
1464
1466
  if (n) {
1465
- a.firstSelectedEnabledOption = e;
1467
+ i.firstSelectedEnabledOption = e;
1466
1468
  }
1467
1469
  if (e == null) {
1468
- delete a.optionRefsByKey[t];
1470
+ delete i.optionRefsByKey[t];
1469
1471
  } else {
1470
- a.optionRefsByKey[t] = e;
1472
+ i.optionRefsByKey[t] = e;
1471
1473
  }
1472
1474
  }));
1473
- Et(xt(a), "createToggle", (function() {
1475
+ Et(xt(i), "createToggle", (function() {
1474
1476
  var e;
1475
- var t = a.props, i = t.toggle, l = t.appearance, s = t.children, u = t.describedBy, p = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, m = t.labelText, y = t.multiple, g = t.placeholder, S = t.prefixLabel, w = t.required, k = t.suffixLabel;
1477
+ var t = i.props, a = t.toggle, l = t.appearance, s = t.children, u = t.describedBy, p = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, m = t.labelText, y = t.multiple, g = t.placeholder, S = t.prefixLabel, w = t.required, k = t.suffixLabel;
1476
1478
  var C;
1477
1479
  var _;
1478
1480
  // Generate buttonLabels
1479
- var A = (e = a.getCurrentValues()) !== null && e !== void 0 ? e : [];
1481
+ var A = (e = i.getCurrentValues()) !== null && e !== void 0 ? e : [];
1480
1482
  var j = n.Children.toArray(s);
1481
1483
  var E = A.reduce((function(e, t, n, r) {
1482
1484
  var o = f()(j, (function(e) {
@@ -1500,7 +1502,7 @@
1500
1502
  _ = E;
1501
1503
  // only apply prefix / suffix if the label is not empty
1502
1504
  if (_.length > 0) {
1503
- _ = a.wrapLabel({
1505
+ _ = i.wrapLabel({
1504
1506
  prefixLabel: S,
1505
1507
  label: _,
1506
1508
  suffixLabel: k
@@ -1517,7 +1519,7 @@
1517
1519
  // If there's more than one item selected, read out the selected total
1518
1520
  // rather than reading out each selected item
1519
1521
  if (_.length > 1) {
1520
- M = a.wrapLabel({
1522
+ M = i.wrapLabel({
1521
1523
  prefixLabel: S,
1522
1524
  label: [ "".concat(A.length, " items selected") ],
1523
1525
  suffixLabel: k
@@ -1534,25 +1536,25 @@
1534
1536
  disabled: p,
1535
1537
  elementRef: d,
1536
1538
  error: v
1537
- }, x()(a.props, O()(o.propTypes)));
1539
+ }, x()(i.props, O()(o.propTypes)));
1538
1540
  if (y) {
1539
1541
  T["data-test-values"] = JSON.stringify(A);
1540
1542
  } else {
1541
1543
  var P = lt(A, 1), V = P[0];
1542
1544
  T["data-test-value"] = V;
1543
1545
  }
1544
- if (i) {
1546
+ if (a) {
1545
1547
 
1546
- return (0, n.cloneElement)(i, T);
1548
+ return (0, n.cloneElement)(a, T);
1547
1549
  }
1548
1550
  if (l === "link") {
1549
1551
 
1550
- return r().createElement(L(), it({}, T, {
1552
+ return r().createElement(L(), at({}, T, {
1551
1553
  "data-select-appearance": "link"
1552
1554
  }), !!C && r().createElement(Ue, null, C), _ || g, r().createElement(Ge, null, r().createElement(J, null)));
1553
1555
  }
1554
1556
 
1555
- return r().createElement(ze, it({}, T, {
1557
+ return r().createElement(We, at({}, T, {
1556
1558
  $multiple: y,
1557
1559
  appearance: l,
1558
1560
  label: _,
@@ -1561,61 +1563,61 @@
1561
1563
  inline: h,
1562
1564
  isMenu: true,
1563
1565
  "aria-haspopup": "listbox",
1564
- "aria-owns": a.menuId,
1565
- onClick: a.props.onClick
1566
- }, I()(a.props, o.invalidLinkAppearanceProps)), !!A.length && y && r().createElement(Xe, {
1566
+ "aria-owns": i.menuId,
1567
+ onClick: i.props.onClick
1568
+ }, I()(i.props, o.invalidLinkAppearanceProps)), !!A.length && y && r().createElement(Xe, {
1567
1569
  "data-role": "count"
1568
1570
  }, "(", A.length, ")"));
1569
1571
  }));
1570
- Et(xt(a), "createChildren", (function() {
1571
- var e = a.state, t = e.filterKeyword, o = e.textHasFocus, i = e.topValues;
1572
- var l = a.props, s = l.allowKeyMatching, u = l.allowNewValues, p = l.filter, d = l.multiple, h = l.selectAllAppearance, b = l.showSelectedValuesFirst, m = l.isLoadingOptions, y = l.onScrollBottom;
1573
- var g = a.getCurrentValues();
1574
- a.availableOptionCount = 0;
1575
- a.firstSelectedOptionIndex = undefined;
1576
- a.selectedOptionCount = 0;
1577
- a.activeValue = undefined;
1578
- a.availableMatchOptions = [];
1572
+ Et(xt(i), "createChildren", (function() {
1573
+ var e = i.state, t = e.filterKeyword, o = e.textHasFocus, a = e.topValues;
1574
+ var l = i.props, s = l.allowKeyMatching, u = l.allowNewValues, p = l.filter, d = l.multiple, h = l.selectAllAppearance, b = l.showSelectedValuesFirst, m = l.isLoadingOptions, y = l.onScrollBottom;
1575
+ var g = i.getCurrentValues();
1576
+ i.availableOptionCount = 0;
1577
+ i.firstSelectedOptionIndex = undefined;
1578
+ i.selectedOptionCount = 0;
1579
+ i.activeValue = undefined;
1580
+ i.availableMatchOptions = [];
1579
1581
  var O;
1580
1582
  var S = 0;
1581
1583
  var w = false;
1582
1584
  // used to avoid overwriting the selected item ref in multiple mode
1583
1585
  var k;
1584
- var x = b === "immediately" ? a.getTopValues() : i;
1585
- var C = n.Children.toArray(a.props.children).reduce((function(e, t, o) {
1586
+ var x = b === "immediately" ? i.getTopValues() : a;
1587
+ var C = n.Children.toArray(i.props.children).reduce((function(e, t, o) {
1586
1588
  // ignore Headings and Dividers
1587
1589
  if (!Dt(t)) {
1588
1590
  e.push(t);
1589
1591
  return e;
1590
1592
  }
1591
1593
  // Find out if the search string exactly matches a value
1592
- if (t.props.value === a.state.filterKeyword) {
1594
+ if (t.props.value === i.state.filterKeyword) {
1593
1595
  O = true;
1594
1596
  }
1595
- var i = g && g.indexOf(t.props.value) >= 0;
1596
- var l = !!i && !t.props.disabled && !k;
1597
+ var a = g && g.indexOf(t.props.value) >= 0;
1598
+ var l = !!a && !t.props.disabled && !k;
1597
1599
  var c = s && !d && !p && !m && !y;
1598
1600
  var u = qt(t.props.value, t.props.label);
1599
1601
  var f = -1;
1600
1602
  if (c && !t.props.disabled && !t.props.hidden) {
1601
- a.availableMatchOptions.push({
1603
+ i.availableMatchOptions.push({
1602
1604
  label: t.props.label,
1603
1605
  value: t.props.value
1604
1606
  });
1605
- f = a.availableMatchOptions.length - 1;
1607
+ f = i.availableMatchOptions.length - 1;
1606
1608
  }
1607
1609
  // Format the Menu.Item
1608
1610
  var v = (0, n.cloneElement)(t, {
1609
1611
  key: t.key || o,
1610
- onClick: a.handleMenuOptionClick,
1612
+ onClick: i.handleMenuOptionClick,
1611
1613
  onKeyDown: c ? function(e) {
1612
- return a.handleMenuOptionKeyDown(e, f);
1614
+ return i.handleMenuOptionKeyDown(e, f);
1613
1615
  } : undefined,
1614
- selected: i,
1616
+ selected: a,
1615
1617
  multiple: d,
1616
1618
  role: "option",
1617
1619
  ref: function e(t) {
1618
- return a.handleOptionMount(t, u, l);
1620
+ return i.handleOptionMount(t, u, l);
1619
1621
  }
1620
1622
  });
1621
1623
  if (l) {
@@ -1642,7 +1644,7 @@
1642
1644
  return Dt(t) && t.props && t.props.value === e;
1643
1645
  }));
1644
1646
  if (!t) {
1645
- if (e === a.state.filterKeyword) {
1647
+ if (e === i.state.filterKeyword) {
1646
1648
  O = true;
1647
1649
  }
1648
1650
  var n = x && x.indexOf(e) >= 0;
@@ -1658,7 +1660,7 @@
1658
1660
  label: String(e),
1659
1661
  value: e,
1660
1662
  key: "missing-value-".concat(e),
1661
- onClick: a.handleMenuOptionClick,
1663
+ onClick: i.handleMenuOptionClick,
1662
1664
  multiple: d,
1663
1665
  selected: true
1664
1666
  }));
@@ -1696,7 +1698,7 @@
1696
1698
  value: t,
1697
1699
  key: "newValue",
1698
1700
  multiple: d,
1699
- onClick: a.handleMenuOptionClick
1701
+ onClick: i.handleMenuOptionClick
1700
1702
  }));
1701
1703
  }
1702
1704
  // When selectAll is a menu item, add an offset so that activeItem accounts for the extra selectAll option.
@@ -1713,13 +1715,13 @@
1713
1715
  if (t.props && t.props.hidden) {
1714
1716
  return e;
1715
1717
  }
1716
- if (t.props.selected && !t.props.disabled && a.firstSelectedOptionIndex == null) {
1717
- a.firstSelectedOptionIndex = a.availableOptionCount;
1718
+ if (t.props.selected && !t.props.disabled && i.firstSelectedOptionIndex == null) {
1719
+ i.firstSelectedOptionIndex = i.availableOptionCount;
1718
1720
  }
1719
- var r = j === a.state.activeIndex;
1721
+ var r = j === i.state.activeIndex;
1720
1722
  j += 1;
1721
- a.availableOptionCount += 1;
1722
- a.selectedOptionCount += t.props.selected ? 1 : 0;
1723
+ i.availableOptionCount += 1;
1724
+ i.selectedOptionCount += t.props.selected ? 1 : 0;
1723
1725
  if (t.key !== "newValue" && !t.props.disabled && !t.props.selected) {
1724
1726
  E = false;
1725
1727
  }
@@ -1728,22 +1730,22 @@
1728
1730
  return e;
1729
1731
  }
1730
1732
  if (!t.props.disabled) {
1731
- a.activeValue = t.props.value;
1733
+ i.activeValue = t.props.value;
1732
1734
  }
1733
- var i = (0, n.cloneElement)(t, {
1735
+ var a = (0, n.cloneElement)(t, {
1734
1736
  active: r,
1735
- id: a.activeItemId,
1736
- ref: a.handleActiveOptionMount
1737
+ id: i.activeItemId,
1738
+ ref: i.handleActiveOptionMount
1737
1739
  });
1738
- e.push(i);
1740
+ e.push(a);
1739
1741
  return e;
1740
1742
  }), []);
1741
- a.optionSelection = a.selectedOptionCount === 0 && "none" || E && "all" || "some";
1743
+ i.optionSelection = i.selectedOptionCount === 0 && "none" || E && "all" || "some";
1742
1744
  // add select all option
1743
- if (h === "checkbox" && d && a.availableOptionCount > 0) {
1745
+ if (h === "checkbox" && d && i.availableOptionCount > 0) {
1744
1746
  var M;
1745
1747
  var P;
1746
- if (a.optionSelection === "all") {
1748
+ if (i.optionSelection === "all") {
1747
1749
  if (t === "") {
1748
1750
  P = (0, c._)("Clear all");
1749
1751
  } else {
@@ -1754,25 +1756,25 @@
1754
1756
  } else {
1755
1757
  P = (0, c._)("Select all matches");
1756
1758
  }
1757
- if (a.state.activeIndex === 0 && o) {
1758
- a.activeValue = "selectAll";
1759
+ if (i.state.activeIndex === 0 && o) {
1760
+ i.activeValue = "selectAll";
1759
1761
  }
1760
1762
  C.unshift( r().createElement($e, {
1761
1763
  key: "selectAllOption",
1762
- selected: a.optionSelection === "all" || a.optionSelection !== "none" && "some",
1764
+ selected: i.optionSelection === "all" || i.optionSelection !== "none" && "some",
1763
1765
  selectAllLabel: P,
1764
- totalCount: (M = a.getCurrentValues()) === null || M === void 0 ? void 0 : M.length,
1765
- changedToggle: !!a.props.toggle,
1766
- onClick: a.optionSelection === "all" ? a.handleClearAll : a.handleSelectAll,
1767
- id: a.state.activeIndex === 0 ? a.activeItemId : undefined,
1768
- active: a.state.activeIndex === 0,
1769
- ref: a.handleActiveOptionMount,
1766
+ totalCount: (M = i.getCurrentValues()) === null || M === void 0 ? void 0 : M.length,
1767
+ changedToggle: !!i.props.toggle,
1768
+ onClick: i.optionSelection === "all" ? i.handleClearAll : i.handleSelectAll,
1769
+ id: i.state.activeIndex === 0 ? i.activeItemId : undefined,
1770
+ active: i.state.activeIndex === 0,
1771
+ ref: i.handleActiveOptionMount,
1770
1772
  tabIndex: -1
1771
1773
  }), r().createElement(T.Divider, {
1772
1774
  key: "selectAllDivider"
1773
1775
  }));
1774
1776
  }
1775
- a.displayedValues = C.reduce((function(e, t) {
1777
+ i.displayedValues = C.reduce((function(e, t) {
1776
1778
  if (Dt(t)) {
1777
1779
  e.push(t.props.value);
1778
1780
  }
@@ -1780,7 +1782,7 @@
1780
1782
  }), []);
1781
1783
  return C;
1782
1784
  }));
1783
- Et(xt(a), "wrapLabel", (function(e) {
1785
+ Et(xt(i), "wrapLabel", (function(e) {
1784
1786
  var t = e.prefixLabel, n = e.label, r = e.suffixLabel;
1785
1787
  var o = n;
1786
1788
  if (t) {
@@ -1791,10 +1793,10 @@
1791
1793
  }
1792
1794
  return o;
1793
1795
  }));
1794
- Et(xt(a), "handleDropdownMount", (function(e) {
1795
- a.dropdown = e;
1796
+ Et(xt(i), "handleDropdownMount", (function(e) {
1797
+ i.dropdown = e;
1796
1798
  }));
1797
- a.state = {
1799
+ i.state = {
1798
1800
  activeIndex: 0,
1799
1801
  filterKeyword: "",
1800
1802
  open: false,
@@ -1802,23 +1804,23 @@
1802
1804
  topValues: [],
1803
1805
  values: e.defaultValues || []
1804
1806
  };
1805
- a.controlledExternally = l()(e, "values");
1806
- a.displayedValues = [];
1807
- a.availableOptionCount = 0;
1808
- a.firstSelectedOptionIndex = undefined;
1809
- a.selectedOptionCount = 0;
1810
- a.matchCharacter = null;
1811
- a.matchTimeout = null;
1812
- a.currentMatchOptions = [];
1813
- a.availableMatchOptions = [];
1814
- a.optionRefsByKey = {};
1815
- a.optionSelection = "none";
1807
+ i.controlledExternally = l()(e, "values");
1808
+ i.displayedValues = [];
1809
+ i.availableOptionCount = 0;
1810
+ i.firstSelectedOptionIndex = undefined;
1811
+ i.selectedOptionCount = 0;
1812
+ i.matchCharacter = null;
1813
+ i.matchTimeout = null;
1814
+ i.currentMatchOptions = [];
1815
+ i.availableMatchOptions = [];
1816
+ i.optionRefsByKey = {};
1817
+ i.optionSelection = "none";
1816
1818
  if (false) {}
1817
1819
  if (false) {}
1818
1820
  o.validateAppearance(e);
1819
- a.menuId = (0, M.createDOMID)("menu");
1820
- a.activeItemId = (0, M.createDOMID)("active-item");
1821
- return a;
1821
+ i.menuId = (0, M.createDOMID)("menu");
1822
+ i.activeItemId = (0, M.createDOMID)("active-item");
1823
+ return i;
1822
1824
  }
1823
1825
  gt(o, [ {
1824
1826
  key: "componentDidUpdate",
@@ -1854,16 +1856,16 @@
1854
1856
  }, {
1855
1857
  key: "toggleValue",
1856
1858
  value: function e(t, n) {
1857
- var r, o, a;
1858
- var i = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
1859
- var l = i.indexOf(n);
1859
+ var r, o, i;
1860
+ var a = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
1861
+ var l = a.indexOf(n);
1860
1862
  var c = this.props, s = c.name, u = c.multiple;
1861
1863
  var p;
1862
1864
  if (u) {
1863
1865
  if (l >= 0) {
1864
- p = [].concat(pt(i.slice(0, l)), pt(i.slice(l + 1)));
1866
+ p = [].concat(pt(a.slice(0, l)), pt(a.slice(l + 1)));
1865
1867
  } else {
1866
- p = i.concat([ n ]);
1868
+ p = a.concat([ n ]);
1867
1869
  }
1868
1870
  } else {
1869
1871
  // non-multiple mode must always have a value
@@ -1890,7 +1892,7 @@
1890
1892
  });
1891
1893
  this.focus();
1892
1894
  }
1893
- (o = (a = this.props).onChange) === null || o === void 0 ? void 0 : o.call(a, t, {
1895
+ (o = (i = this.props).onChange) === null || o === void 0 ? void 0 : o.call(i, t, {
1894
1896
  values: p,
1895
1897
  name: s,
1896
1898
  reason: "valueToggle"
@@ -1908,8 +1910,8 @@
1908
1910
  key: "renderControls",
1909
1911
  value: function e(t) {
1910
1912
  var n = t.hasChildren, o = t.placement;
1911
- var a = this.state.filterKeyword;
1912
- var i = this.props, l = i.inputId, s = i.inputRef, u = i.multiple, p = i.selectAllAppearance;
1913
+ var i = this.state.filterKeyword;
1914
+ var a = this.props, l = a.inputId, s = a.inputRef, u = a.multiple, p = a.selectAllAppearance;
1913
1915
  var f = (0, c._)("Select all options".concat(this.optionSelection === "all" ? " disabled" : ""));
1914
1916
  var d = (0, c._)("Clear all options".concat(this.optionSelection === "none" ? " disabled" : ""));
1915
1917
  // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
@@ -1921,19 +1923,19 @@
1921
1923
  "aria-label": f,
1922
1924
  onClick: this.handleSelectAll,
1923
1925
  "data-test": "select-all"
1924
- }, a ? (0, c._)("Select all Matches") : (0, c._)("Select all")), r().createElement(Ye, {
1926
+ }, i ? (0, c._)("Select all Matches") : (0, c._)("Select all")), r().createElement(Ye, {
1925
1927
  $disabled: this.optionSelection === "none",
1926
1928
  "aria-label": d,
1927
1929
  onClick: this.handleClearAll,
1928
1930
  "data-test": "clear-all"
1929
- }, a ? (0, c._)("Clear all Matches") : (0, c._)("Clear all")));
1931
+ }, i ? (0, c._)("Clear all Matches") : (0, c._)("Clear all")));
1930
1932
  return this.hasFilter() && r().createElement("div", {
1931
1933
  key: "controls"
1932
1934
  }, r().createElement(Je, {
1933
1935
  key: "filter",
1934
1936
  "data-test": "filter"
1935
1937
  }, r().createElement(F(), {
1936
- value: a,
1938
+ value: i,
1937
1939
  autoCapitalize: "off",
1938
1940
  autoComplete: "off",
1939
1941
  autoCorrect: "off",
@@ -1957,61 +1959,68 @@
1957
1959
  key: "render",
1958
1960
  value: function e() {
1959
1961
  var t, o = this;
1960
- var a = this.props, i = a.children, l = a.defaultPlacement, c = a.inputId, s = a.multiple, u = a.repositionMode;
1961
- var p = this.hasFilter();
1962
- var d = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
1963
- var v = n.Children.toArray(i);
1964
- var h = d.some((function(e) {
1965
- var t = f()(v, (function(t) {
1962
+ var i = this.props, a = i.children, l = i.defaultPlacement, c = i.inputId, s = i.multiple, u = i.repositionMode, p = i.virtualization;
1963
+ var d = this.hasFilter();
1964
+ var v = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
1965
+ var h = n.Children.toArray(a);
1966
+ var b = v.some((function(e) {
1967
+ var t = f()(h, (function(t) {
1966
1968
  return Dt(t) && t.props.value === e;
1967
1969
  }));
1968
1970
  return t && !t.props.disabled;
1969
1971
  }));
1970
- var b = this.createChildren();
1971
- var m = this.createToggle();
1972
- var y = function e(t) {
1973
- var n = t.anchorWidth, a = t.maxHeight, i = t.placement;
1972
+ var m = this.createChildren();
1973
+ var y = this.createToggle();
1974
+ var g = function e(t) {
1975
+ var n = t.anchorWidth, i = t.maxHeight, a = t.placement;
1974
1976
  var l = Vt({
1975
1977
  anchorWidth: n,
1976
1978
  isMultiple: o.props.multiple,
1977
- maxHeight: a,
1979
+ maxHeight: i,
1978
1980
  menuStyle: o.props.menuStyle
1979
1981
  });
1980
- var c = d.length > 0 && !h && !o.hasFilter() ? 0 : undefined;
1981
-
1982
- return r().createElement(B(), it({
1982
+ var c = v.length > 0 && !b && !o.hasFilter() ? 0 : undefined;
1983
+ var u = jt(jt({
1983
1984
  "aria-multiselectable": s || undefined,
1984
1985
  childrenStart: o.renderControls({
1985
- placement: i,
1986
- hasChildren: !!b.length
1986
+ placement: a,
1987
+ hasChildren: !!m.length
1987
1988
  }),
1988
1989
  controlledExternally: o.hasFilter(),
1989
- placement: i !== null && i !== void 0 ? i : undefined,
1990
+ placement: a !== null && a !== void 0 ? a : undefined,
1990
1991
  onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
1991
1992
  "data-test": "results-menu",
1992
1993
  isLoading: o.props.isLoadingOptions,
1993
1994
  id: o.menuId
1994
- }, I()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
1995
+ }, I()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), {}, {
1995
1996
  style: l,
1996
1997
  tabIndex: c
1997
- }), b);
1998
+ });
1999
+ if (p) {
2000
+
2001
+ return r().createElement(N.VirtualizedResultsMenu, at({
2002
+ virtualization: p
2003
+ }, u), m);
2004
+ }
2005
+
2006
+ return r().createElement(B(), u, m);
1998
2007
  };
1999
2008
 
2000
2009
  return r().createElement(V(), {
2001
2010
  closeReasons: Rt,
2002
2011
  inputId: c,
2003
- toggle: m,
2012
+ toggle: y,
2004
2013
  onRequestOpen: this.handleRequestOpen,
2005
2014
  onRequestClose: this.handleRequestClose,
2006
2015
  open: this.state.open,
2007
2016
  openWithArrowKeys: true,
2008
2017
  repositionMode: u,
2009
- defaultPlacement: p ? l : undefined,
2010
- canCoverAnchor: at().innerHeight < 500,
2018
+ defaultPlacement: d ? l : undefined,
2019
+ canCoverAnchor: it().innerHeight < 500,
2011
2020
  ref: this.handleDropdownMount,
2012
2021
  retainFocus: false,
2013
- takeFocus: d.length === 0 || d.length > 0 && !h || !!p
2014
- }, y);
2022
+ takeFocus: v.length === 0 || v.length > 0 && !b || !!d
2023
+ }, g);
2015
2024
  }
2016
2025
  } ]);
2017
2026
  return o;
@@ -2070,7 +2079,7 @@
2070
2079
  if (n) $t(e, n);
2071
2080
  return e;
2072
2081
  }
2073
- function Wt(e, t) {
2082
+ function zt(e, t) {
2074
2083
  if (typeof t !== "function" && t !== null) {
2075
2084
  throw new TypeError("Super expression must either be null or a function");
2076
2085
  }
@@ -2081,22 +2090,22 @@
2081
2090
  configurable: true
2082
2091
  }
2083
2092
  });
2084
- if (t) zt(e, t);
2093
+ if (t) Wt(e, t);
2085
2094
  }
2086
- function zt(e, t) {
2087
- zt = Object.setPrototypeOf || function e(t, n) {
2095
+ function Wt(e, t) {
2096
+ Wt = Object.setPrototypeOf || function e(t, n) {
2088
2097
  t.__proto__ = n;
2089
2098
  return t;
2090
2099
  };
2091
- return zt(e, t);
2100
+ return Wt(e, t);
2092
2101
  }
2093
2102
  function Ut(e) {
2094
2103
  var t = Qt();
2095
2104
  return function n() {
2096
2105
  var r = Xt(e), o;
2097
2106
  if (t) {
2098
- var a = Xt(this).constructor;
2099
- o = Reflect.construct(r, arguments, a);
2107
+ var i = Xt(this).constructor;
2108
+ o = Reflect.construct(r, arguments, i);
2100
2109
  } else {
2101
2110
  o = r.apply(this, arguments);
2102
2111
  }
@@ -2147,24 +2156,24 @@
2147
2156
  }
2148
2157
  var Zt = {
2149
2158
  /** @private */
2150
- active: a().bool,
2151
- children: a().node,
2152
- description: a().string,
2153
- descriptionPosition: a().oneOf([ "right", "bottom" ]),
2154
- disabled: a().bool,
2155
- hidden: a().bool,
2156
- icon: a().node,
2157
- label: a().string.isRequired,
2158
- matchRanges: a().arrayOf(a().shape({
2159
- start: a().number.isRequired,
2160
- end: a().number.isRequired
2159
+ active: i().bool,
2160
+ children: i().node,
2161
+ description: i().string,
2162
+ descriptionPosition: i().oneOf([ "right", "bottom" ]),
2163
+ disabled: i().bool,
2164
+ hidden: i().bool,
2165
+ icon: i().node,
2166
+ label: i().string.isRequired,
2167
+ matchRanges: i().arrayOf(i().shape({
2168
+ start: i().number.isRequired,
2169
+ end: i().number.isRequired
2161
2170
  })),
2162
2171
  /** @private */
2163
- onClick: a().func,
2172
+ onClick: i().func,
2164
2173
  /** @private */
2165
- selected: a().bool,
2166
- truncate: a().bool,
2167
- value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
2174
+ selected: i().bool,
2175
+ truncate: i().bool,
2176
+ value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
2168
2177
  };
2169
2178
  var en = {
2170
2179
  active: false,
@@ -2179,13 +2188,13 @@
2179
2188
  * [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
2180
2189
  * so any elements passed to it must also be pure.
2181
2190
  */ var tn = function(e) {
2182
- Wt(n, e);
2191
+ zt(n, e);
2183
2192
  var t = Ut(n);
2184
2193
  function n() {
2185
2194
  var e;
2186
2195
  Ft(this, n);
2187
- for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
2188
- o[a] = arguments[a];
2196
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
2197
+ o[i] = arguments[i];
2189
2198
  }
2190
2199
  e = t.call.apply(t, [ this ].concat(o));
2191
2200
  Yt(Jt(e), "c", null);
@@ -2256,9 +2265,9 @@
2256
2265
  var n = ln(e, t);
2257
2266
  var r, o;
2258
2267
  if (Object.getOwnPropertySymbols) {
2259
- var a = Object.getOwnPropertySymbols(e);
2260
- for (o = 0; o < a.length; o++) {
2261
- r = a[o];
2268
+ var i = Object.getOwnPropertySymbols(e);
2269
+ for (o = 0; o < i.length; o++) {
2270
+ r = i[o];
2262
2271
  if (t.indexOf(r) >= 0) continue;
2263
2272
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2264
2273
  n[r] = e[r];
@@ -2270,9 +2279,9 @@
2270
2279
  if (e == null) return {};
2271
2280
  var n = {};
2272
2281
  var r = Object.keys(e);
2273
- var o, a;
2274
- for (a = 0; a < r.length; a++) {
2275
- o = r[a];
2282
+ var o, i;
2283
+ for (i = 0; i < r.length; i++) {
2284
+ o = r[i];
2276
2285
  if (t.indexOf(o) >= 0) continue;
2277
2286
  n[o] = e[o];
2278
2287
  }
@@ -2322,8 +2331,8 @@
2322
2331
  return function n() {
2323
2332
  var r = mn(e), o;
2324
2333
  if (t) {
2325
- var a = mn(this).constructor;
2326
- o = Reflect.construct(r, arguments, a);
2334
+ var i = mn(this).constructor;
2335
+ o = Reflect.construct(r, arguments, i);
2327
2336
  } else {
2328
2337
  o = r.apply(this, arguments);
2329
2338
  }
@@ -2374,40 +2383,42 @@
2374
2383
  }
2375
2384
  /* eslint-disable max-classes-per-file */
2376
2385
  /** @public */ var gn = {
2377
- allowKeyMatching: a().bool,
2378
- animateLoading: a().bool,
2379
- appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
2380
- append: a().bool,
2381
- children: a().node,
2382
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
2383
- defaultValue: a().oneOfType([ a().string, a().number, a().bool ]),
2384
- describedBy: a().string,
2385
- disabled: a().bool,
2386
- elementRef: a().oneOfType([ a().func, a().object ]),
2387
- error: a().bool,
2388
- filter: a().oneOf([ false, true, "controlled" ]),
2389
- footerMessage: a().node,
2390
- inline: a().bool,
2391
- inputId: a().string,
2392
- inputRef: a().oneOfType([ a().func, a().object ]),
2393
- isLoadingOptions: a().bool,
2394
- labelledBy: a().string,
2395
- labelText: a().string,
2396
- loadingMessage: a().node,
2397
- menuStyle: a().object,
2398
- name: a().string,
2399
- noOptionsMessage: a().node,
2400
- onChange: a().func,
2401
- onClose: a().func,
2402
- onFilterChange: a().func,
2403
- onOpen: a().func,
2404
- onScroll: a().func,
2405
- onScrollBottom: a().func,
2406
- placeholder: a().string,
2407
- prefixLabel: a().string,
2408
- prepend: a().bool,
2409
- suffixLabel: a().string,
2410
- value: a().oneOfType([ a().string, a().number, a().bool ])
2386
+ allowKeyMatching: i().bool,
2387
+ animateLoading: i().bool,
2388
+ appearance: i().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
2389
+ append: i().bool,
2390
+ children: i().node,
2391
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
2392
+ defaultValue: i().oneOfType([ i().string, i().number, i().bool ]),
2393
+ describedBy: i().string,
2394
+ disabled: i().bool,
2395
+ elementRef: i().oneOfType([ i().func, i().object ]),
2396
+ error: i().bool,
2397
+ filter: i().oneOf([ false, true, "controlled" ]),
2398
+ footerMessage: i().node,
2399
+ inline: i().bool,
2400
+ inputId: i().string,
2401
+ inputRef: i().oneOfType([ i().func, i().object ]),
2402
+ isLoadingOptions: i().bool,
2403
+ labelledBy: i().string,
2404
+ labelText: i().string,
2405
+ loadingMessage: i().node,
2406
+ menuStyle: i().object,
2407
+ name: i().string,
2408
+ noOptionsMessage: i().node,
2409
+ onChange: i().func,
2410
+ onClose: i().func,
2411
+ onFilterChange: i().func,
2412
+ onOpen: i().func,
2413
+ onScroll: i().func,
2414
+ onScrollBottom: i().func,
2415
+ placeholder: i().string,
2416
+ prefixLabel: i().string,
2417
+ prepend: i().bool,
2418
+ suffixLabel: i().string,
2419
+ value: i().oneOfType([ i().string, i().number, i().bool ]),
2420
+ /** @private. */
2421
+ virtualization: i().number
2411
2422
  };
2412
2423
  var On = {
2413
2424
  allowKeyMatching: true,
@@ -2455,20 +2466,20 @@
2455
2466
  }, {
2456
2467
  key: "render",
2457
2468
  value: function e() {
2458
- var t = this.props, n = t.defaultValue, o = t.onChange, a = t.value, i = an(t, [ "defaultValue", "onChange", "value" ]);
2469
+ var t = this.props, n = t.defaultValue, o = t.onChange, i = t.value, a = an(t, [ "defaultValue", "onChange", "value" ]);
2459
2470
  var c = {
2460
2471
  onChange: function e(t, n) {
2461
- var r = n.name, a = n.values;
2472
+ var r = n.name, i = n.values;
2462
2473
  o === null || o === void 0 ? void 0 : o(t, {
2463
2474
  name: r,
2464
- value: a[0]
2475
+ value: i[0]
2465
2476
  });
2466
2477
  }
2467
2478
  };
2468
2479
  // using "has" as opposed to a null check to match SelectBase
2469
2480
  if (l()(this.props, "value")) {
2470
- if (a != null) {
2471
- c.values = [ a ];
2481
+ if (i != null) {
2482
+ c.values = [ i ];
2472
2483
  } else {
2473
2484
  c.values = [];
2474
2485
  }
@@ -2477,7 +2488,7 @@
2477
2488
  c.defaultValues = this.state.defaultValues;
2478
2489
  }
2479
2490
 
2480
- return r().createElement(Nt, on({}, i, c, {
2491
+ return r().createElement(Nt, on({}, a, c, {
2481
2492
  multiple: false
2482
2493
  }));
2483
2494
  }