fictoan-react 1.11.9-alpha.9 → 1.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,50 @@
1
1
  "use client";
2
2
  "use client;";
3
- import React, { useState, useRef, useEffect, useCallback, useMemo, createRef, useImperativeHandle, forwardRef, useContext, createContext } from "react";
3
+ import React, { useState, useRef, useEffect, useCallback, useMemo, createRef, useImperativeHandle, useContext, createContext } from "react";
4
4
  var createClassName = function createClassName2(classNames) {
5
5
  return classNames.filter(function(item) {
6
6
  return !!item;
7
7
  }).join(" ");
8
8
  };
9
- var _excluded$R = ["as", "role", "ariaLabel", "tabIndex", "onKeyDown"], _excluded2$8 = ["classNames", "bgColor", "bgColour", "borderColor", "borderColour", "className", "columns", "fillColor", "fillColour", "gap", "hideOnDesktop", "hideOnMobile", "hideOnTabletLandscape", "hideOnTabletPortrait", "horizontalMargin", "horizontalPadding", "horizontallyCenterThis", "horizontallyCentreThis", "isFullHeight", "isFullWidth", "layoutAsFlexbox", "layoutAsGrid", "marginLeft", "marginBottom", "margin", "marginRight", "marginTop", "opacity", "paddingBottom", "paddingLeft", "padding", "paddingRight", "paddingTop", "pushItemsToEnds", "shadow", "shape", "showOnlyOnDesktop", "showOnlyOnMobile", "showOnlyOnTabletLandscape", "showOnlyOnTabletPortrait", "size", "strokeColor", "strokeColour", "textColor", "textColour", "verticalMargin", "verticalPadding", "verticallyCenterItems", "verticallyCentreItems", "weight"], _excluded3$1 = ["className", "classNames"];
10
- function _extends$S() {
11
- return _extends$S = Object.assign ? Object.assign.bind() : function(n) {
9
+ var _excluded$Q = ["as", "role", "ariaLabel", "tabIndex", "onKeyDown"], _excluded2$8 = ["classNames", "bgColor", "bgColour", "borderColor", "borderColour", "className", "columns", "fillColor", "fillColour", "gap", "hideOnDesktop", "hideOnMobile", "hideOnTabletLandscape", "hideOnTabletPortrait", "horizontalMargin", "horizontalPadding", "horizontallyCenterThis", "horizontallyCentreThis", "isFullHeight", "isFullWidth", "layoutAsFlexbox", "layoutAsGrid", "marginLeft", "marginBottom", "margin", "marginRight", "marginTop", "opacity", "paddingBottom", "paddingLeft", "padding", "paddingRight", "paddingTop", "pushItemsToEnds", "shadow", "shape", "showOnlyOnDesktop", "showOnlyOnMobile", "showOnlyOnTabletLandscape", "showOnlyOnTabletPortrait", "size", "strokeColor", "strokeColour", "textColor", "textColour", "verticalMargin", "verticalPadding", "verticallyCenterItems", "verticallyCentreItems", "weight"], _excluded3$1 = ["className", "classNames"];
10
+ function _extends$R() {
11
+ return _extends$R = Object.assign ? Object.assign.bind() : function(n) {
12
12
  for (var e = 1; e < arguments.length; e++) {
13
13
  var t = arguments[e];
14
14
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
15
15
  }
16
16
  return n;
17
- }, _extends$S.apply(null, arguments);
17
+ }, _extends$R.apply(null, arguments);
18
18
  }
19
- function _objectWithoutProperties$R(e, t) {
19
+ function _objectWithoutProperties$Q(e, t) {
20
20
  if (null == e) return {};
21
- var o, r, i = _objectWithoutPropertiesLoose$R(e, t);
21
+ var o, r, i = _objectWithoutPropertiesLoose$Q(e, t);
22
22
  if (Object.getOwnPropertySymbols) {
23
- var s = Object.getOwnPropertySymbols(e);
24
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
23
+ var n = Object.getOwnPropertySymbols(e);
24
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
25
25
  }
26
26
  return i;
27
27
  }
28
- function _objectWithoutPropertiesLoose$R(r, e) {
28
+ function _objectWithoutPropertiesLoose$Q(r, e) {
29
29
  if (null == r) return {};
30
30
  var t = {};
31
31
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
32
- if (e.includes(n)) continue;
32
+ if (-1 !== e.indexOf(n)) continue;
33
33
  t[n] = r[n];
34
34
  }
35
35
  return t;
36
36
  }
37
37
  var Element = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
38
- var _ref$as = _ref.as, Component = _ref$as === void 0 ? "div" : _ref$as, role = _ref.role, ariaLabel = _ref.ariaLabel, tabIndex = _ref.tabIndex, onKeyDown = _ref.onKeyDown, props = _objectWithoutProperties$R(_ref, _excluded$R);
38
+ var _ref$as = _ref.as, Component = _ref$as === void 0 ? "div" : _ref$as, role = _ref.role, ariaLabel = _ref.ariaLabel, tabIndex = _ref.tabIndex, onKeyDown = _ref.onKeyDown, props = _objectWithoutProperties$Q(_ref, _excluded$Q);
39
39
  var _props$classNames = props.classNames, classNames = _props$classNames === void 0 ? [] : _props$classNames, bgColor = props.bgColor, bgColour = props.bgColour, borderColor = props.borderColor, borderColour = props.borderColour, className = props.className;
40
40
  props.columns;
41
41
  var fillColor = props.fillColor, fillColour = props.fillColour;
42
42
  props.gap;
43
- var hideOnDesktop = props.hideOnDesktop, hideOnMobile = props.hideOnMobile, hideOnTabletLandscape = props.hideOnTabletLandscape, hideOnTabletPortrait = props.hideOnTabletPortrait, horizontalMargin = props.horizontalMargin, horizontalPadding = props.horizontalPadding, horizontallyCenterThis = props.horizontallyCenterThis, horizontallyCentreThis = props.horizontallyCentreThis, isFullHeight = props.isFullHeight, isFullWidth = props.isFullWidth, layoutAsFlexbox = props.layoutAsFlexbox, layoutAsGrid = props.layoutAsGrid, marginLeft = props.marginLeft, marginBottom = props.marginBottom, margin = props.margin, marginRight = props.marginRight, marginTop = props.marginTop, opacity = props.opacity, paddingBottom = props.paddingBottom, paddingLeft = props.paddingLeft, padding = props.padding, paddingRight = props.paddingRight, paddingTop = props.paddingTop, pushItemsToEnds = props.pushItemsToEnds, shadow = props.shadow, shape = props.shape, showOnlyOnDesktop = props.showOnlyOnDesktop, showOnlyOnMobile = props.showOnlyOnMobile, showOnlyOnTabletLandscape = props.showOnlyOnTabletLandscape, showOnlyOnTabletPortrait = props.showOnlyOnTabletPortrait, size = props.size, strokeColor = props.strokeColor, strokeColour = props.strokeColour, textColor = props.textColor, textColour = props.textColour, verticalMargin = props.verticalMargin, verticalPadding = props.verticalPadding, verticallyCenterItems = props.verticallyCenterItems, verticallyCentreItems = props.verticallyCentreItems, weight = props.weight, minimalProps = _objectWithoutProperties$R(props, _excluded2$8);
43
+ var hideOnDesktop = props.hideOnDesktop, hideOnMobile = props.hideOnMobile, hideOnTabletLandscape = props.hideOnTabletLandscape, hideOnTabletPortrait = props.hideOnTabletPortrait, horizontalMargin = props.horizontalMargin, horizontalPadding = props.horizontalPadding, horizontallyCenterThis = props.horizontallyCenterThis, horizontallyCentreThis = props.horizontallyCentreThis, isFullHeight = props.isFullHeight, isFullWidth = props.isFullWidth, layoutAsFlexbox = props.layoutAsFlexbox, layoutAsGrid = props.layoutAsGrid, marginLeft = props.marginLeft, marginBottom = props.marginBottom, margin = props.margin, marginRight = props.marginRight, marginTop = props.marginTop, opacity = props.opacity, paddingBottom = props.paddingBottom, paddingLeft = props.paddingLeft, padding = props.padding, paddingRight = props.paddingRight, paddingTop = props.paddingTop, pushItemsToEnds = props.pushItemsToEnds, shadow = props.shadow, shape = props.shape, showOnlyOnDesktop = props.showOnlyOnDesktop, showOnlyOnMobile = props.showOnlyOnMobile, showOnlyOnTabletLandscape = props.showOnlyOnTabletLandscape, showOnlyOnTabletPortrait = props.showOnlyOnTabletPortrait, size = props.size, strokeColor = props.strokeColor, strokeColour = props.strokeColour, textColor = props.textColor, textColour = props.textColour, verticalMargin = props.verticalMargin, verticalPadding = props.verticalPadding, verticallyCenterItems = props.verticallyCenterItems, verticallyCentreItems = props.verticallyCentreItems, weight = props.weight, minimalProps = _objectWithoutProperties$Q(props, _excluded2$8);
44
44
  props.className;
45
45
  props.classNames;
46
- _objectWithoutProperties$R(props, _excluded3$1);
47
- return /* @__PURE__ */ React.createElement(Component, _extends$S({
46
+ _objectWithoutProperties$Q(props, _excluded3$1);
47
+ return /* @__PURE__ */ React.createElement(Component, _extends$R({
48
48
  ref,
49
49
  role,
50
50
  "aria-label": ariaLabel,
@@ -54,43 +54,43 @@ var Element = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
54
54
  className: createClassName([className, bgColor && "bg-".concat(bgColor), bgColour && "bg-".concat(bgColour), borderColor && "border-".concat(borderColor), borderColour && "border-".concat(borderColour), fillColor && "fill-".concat(fillColor), fillColour && "fill-".concat(fillColour), hideOnDesktop && "hide-on-desktop", hideOnMobile && "hide-on-mobile", hideOnTabletLandscape && "hide-on-tablet-landscape", hideOnTabletPortrait && "hide-on-tablet-portrait", horizontalMargin && "margin-right-".concat(horizontalMargin, " margin-left-").concat(horizontalMargin), horizontalPadding && "padding-right-".concat(horizontalPadding, " padding-left-").concat(horizontalPadding), horizontallyCenterThis && "horizontally-centre-this", horizontallyCentreThis && "horizontally-centre-this", isFullHeight && "full-height", isFullWidth && "full-width", layoutAsFlexbox && "layout-flexbox", layoutAsGrid && "layout-grid", marginLeft && "margin-left-".concat(marginLeft), marginBottom && "margin-bottom-".concat(marginBottom), margin && "margin-all-".concat(margin), marginRight && "margin-right-".concat(marginRight), marginTop && "margin-top-".concat(marginTop), opacity && "opacity-".concat(opacity), paddingBottom && "padding-bottom-".concat(paddingBottom), paddingLeft && "padding-left-".concat(paddingLeft), padding && "padding-all-".concat(padding), paddingRight && "padding-right-".concat(paddingRight), paddingTop && "padding-top-".concat(paddingTop), pushItemsToEnds && "push-to-ends", shadow && "shadow-".concat(shadow), shape && "shape-".concat(shape), showOnlyOnDesktop && "show-only-on-desktop", showOnlyOnMobile && "show-only-on-mobile", showOnlyOnTabletLandscape && "show-only-on-tablet-landscape", showOnlyOnTabletPortrait && "show-only-on-tablet-portrait", size && "size-".concat(size), strokeColor && "stroke-".concat(strokeColor), strokeColour && "stroke-".concat(strokeColour), textColor && "text-".concat(textColor), textColour && "text-".concat(textColour), verticalMargin && "margin-top-".concat(verticalMargin, " margin-bottom-").concat(verticalMargin), verticalPadding && "padding-top-".concat(verticalPadding, " padding-bottom-").concat(verticalPadding), verticallyCenterItems && "vertically-centre-items", verticallyCentreItems && "vertically-centre-items", weight && "weight-".concat(weight)].concat(classNames))
55
55
  }));
56
56
  });
57
- var _excluded$Q = ["external"];
58
- function _typeof$8(o) {
57
+ var _excluded$P = ["external"];
58
+ function _typeof$7(o) {
59
59
  "@babel/helpers - typeof";
60
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
60
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
61
61
  return typeof o2;
62
62
  } : function(o2) {
63
63
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
64
- }, _typeof$8(o);
64
+ }, _typeof$7(o);
65
65
  }
66
- function _extends$R() {
67
- return _extends$R = Object.assign ? Object.assign.bind() : function(n) {
66
+ function _extends$Q() {
67
+ return _extends$Q = Object.assign ? Object.assign.bind() : function(n) {
68
68
  for (var e = 1; e < arguments.length; e++) {
69
69
  var t = arguments[e];
70
70
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
71
71
  }
72
72
  return n;
73
- }, _extends$R.apply(null, arguments);
73
+ }, _extends$Q.apply(null, arguments);
74
74
  }
75
- function _objectWithoutProperties$Q(e, t) {
75
+ function _objectWithoutProperties$P(e, t) {
76
76
  if (null == e) return {};
77
- var o, r, i = _objectWithoutPropertiesLoose$Q(e, t);
77
+ var o, r, i = _objectWithoutPropertiesLoose$P(e, t);
78
78
  if (Object.getOwnPropertySymbols) {
79
- var s = Object.getOwnPropertySymbols(e);
80
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
79
+ var n = Object.getOwnPropertySymbols(e);
80
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
81
81
  }
82
82
  return i;
83
83
  }
84
- function _objectWithoutPropertiesLoose$Q(r, e) {
84
+ function _objectWithoutPropertiesLoose$P(r, e) {
85
85
  if (null == r) return {};
86
86
  var t = {};
87
87
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
88
- if (e.includes(n)) continue;
88
+ if (-1 !== e.indexOf(n)) continue;
89
89
  t[n] = r[n];
90
90
  }
91
91
  return t;
92
92
  }
93
- function ownKeys$5(e, r) {
93
+ function ownKeys$4(e, r) {
94
94
  var t = Object.keys(e);
95
95
  if (Object.getOwnPropertySymbols) {
96
96
  var o = Object.getOwnPropertySymbols(e);
@@ -100,46 +100,46 @@ function ownKeys$5(e, r) {
100
100
  }
101
101
  return t;
102
102
  }
103
- function _objectSpread$5(e) {
103
+ function _objectSpread$4(e) {
104
104
  for (var r = 1; r < arguments.length; r++) {
105
105
  var t = null != arguments[r] ? arguments[r] : {};
106
- r % 2 ? ownKeys$5(Object(t), true).forEach(function(r2) {
107
- _defineProperty$6(e, r2, t[r2]);
108
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function(r2) {
106
+ r % 2 ? ownKeys$4(Object(t), true).forEach(function(r2) {
107
+ _defineProperty$5(e, r2, t[r2]);
108
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r2) {
109
109
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
110
110
  });
111
111
  }
112
112
  return e;
113
113
  }
114
- function _defineProperty$6(e, r, t) {
115
- return (r = _toPropertyKey$6(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
114
+ function _defineProperty$5(e, r, t) {
115
+ return (r = _toPropertyKey$5(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
116
116
  }
117
- function _toPropertyKey$6(t) {
118
- var i = _toPrimitive$6(t, "string");
119
- return "symbol" == _typeof$8(i) ? i : i + "";
117
+ function _toPropertyKey$5(t) {
118
+ var i = _toPrimitive$5(t, "string");
119
+ return "symbol" == _typeof$7(i) ? i : i + "";
120
120
  }
121
- function _toPrimitive$6(t, r) {
122
- if ("object" != _typeof$8(t) || !t) return t;
121
+ function _toPrimitive$5(t, r) {
122
+ if ("object" != _typeof$7(t) || !t) return t;
123
123
  var e = t[Symbol.toPrimitive];
124
124
  if (void 0 !== e) {
125
125
  var i = e.call(t, r || "default");
126
- if ("object" != _typeof$8(i)) return i;
126
+ if ("object" != _typeof$7(i)) return i;
127
127
  throw new TypeError("@@toPrimitive must return a primitive value.");
128
128
  }
129
129
  return ("string" === r ? String : Number)(t);
130
130
  }
131
131
  var createComponentWithElement = function createComponentWithElement2(tagName, defaultProps) {
132
132
  return /* @__PURE__ */ React.forwardRef(function(props, ref) {
133
- var finalProps = _objectSpread$5(_objectSpread$5({}, defaultProps), props);
133
+ var finalProps = _objectSpread$4(_objectSpread$4({}, defaultProps), props);
134
134
  if (tagName === "a" && "external" in finalProps) {
135
135
  var external = finalProps.external;
136
- _objectWithoutProperties$Q(finalProps, _excluded$Q);
136
+ _objectWithoutProperties$P(finalProps, _excluded$P);
137
137
  if (external) {
138
138
  finalProps.target = "_blank";
139
139
  finalProps.rel = "noopener noreferrer";
140
140
  }
141
141
  }
142
- return /* @__PURE__ */ React.createElement(Element, _extends$R({
142
+ return /* @__PURE__ */ React.createElement(Element, _extends$Q({
143
143
  as: tagName,
144
144
  ref
145
145
  }, finalProps));
@@ -159,36 +159,36 @@ var Hyperlink = createComponentWithElement("a", {
159
159
  rel: "noopener noreferrer"
160
160
  // Default props for Hyperlink
161
161
  });
162
- var _excluded$P = ["weight", "size", "fontStyle", "align", "isSubtext"];
163
- function _extends$Q() {
164
- return _extends$Q = Object.assign ? Object.assign.bind() : function(n) {
162
+ var _excluded$O = ["weight", "size", "fontStyle", "align", "isSubtext"];
163
+ function _extends$P() {
164
+ return _extends$P = Object.assign ? Object.assign.bind() : function(n) {
165
165
  for (var e = 1; e < arguments.length; e++) {
166
166
  var t = arguments[e];
167
167
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
168
168
  }
169
169
  return n;
170
- }, _extends$Q.apply(null, arguments);
170
+ }, _extends$P.apply(null, arguments);
171
171
  }
172
- function _objectWithoutProperties$P(e, t) {
172
+ function _objectWithoutProperties$O(e, t) {
173
173
  if (null == e) return {};
174
- var o, r, i = _objectWithoutPropertiesLoose$P(e, t);
174
+ var o, r, i = _objectWithoutPropertiesLoose$O(e, t);
175
175
  if (Object.getOwnPropertySymbols) {
176
- var s = Object.getOwnPropertySymbols(e);
177
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
176
+ var n = Object.getOwnPropertySymbols(e);
177
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
178
178
  }
179
179
  return i;
180
180
  }
181
- function _objectWithoutPropertiesLoose$P(r, e) {
181
+ function _objectWithoutPropertiesLoose$O(r, e) {
182
182
  if (null == r) return {};
183
183
  var t = {};
184
184
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
185
- if (e.includes(n)) continue;
185
+ if (-1 !== e.indexOf(n)) continue;
186
186
  t[n] = r[n];
187
187
  }
188
188
  return t;
189
189
  }
190
190
  var Text = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
191
- var weight = _ref.weight, size = _ref.size, _ref$fontStyle = _ref.fontStyle, fontStyle = _ref$fontStyle === void 0 ? "sans-serif" : _ref$fontStyle, align = _ref.align, isSubtext = _ref.isSubtext, props = _objectWithoutProperties$P(_ref, _excluded$P);
191
+ var weight = _ref.weight, size = _ref.size, _ref$fontStyle = _ref.fontStyle, fontStyle = _ref$fontStyle === void 0 ? "sans-serif" : _ref$fontStyle, align = _ref.align, isSubtext = _ref.isSubtext, props = _objectWithoutProperties$O(_ref, _excluded$O);
192
192
  var classNames = [];
193
193
  if (weight) {
194
194
  classNames.push("weight-".concat(weight));
@@ -205,43 +205,43 @@ var Text = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
205
205
  if (align) {
206
206
  classNames.push("text-".concat(align));
207
207
  }
208
- return /* @__PURE__ */ React.createElement(Element, _extends$Q({
208
+ return /* @__PURE__ */ React.createElement(Element, _extends$P({
209
209
  as: "p",
210
210
  ref,
211
211
  classNames
212
212
  }, props));
213
213
  });
214
- var _excluded$O = ["summary", "children", "open"];
215
- function _extends$P() {
216
- return _extends$P = Object.assign ? Object.assign.bind() : function(n) {
214
+ var _excluded$N = ["summary", "children", "open"];
215
+ function _extends$O() {
216
+ return _extends$O = Object.assign ? Object.assign.bind() : function(n) {
217
217
  for (var e = 1; e < arguments.length; e++) {
218
218
  var t = arguments[e];
219
219
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
220
220
  }
221
221
  return n;
222
- }, _extends$P.apply(null, arguments);
222
+ }, _extends$O.apply(null, arguments);
223
223
  }
224
- function _objectWithoutProperties$O(e, t) {
224
+ function _objectWithoutProperties$N(e, t) {
225
225
  if (null == e) return {};
226
- var o, r, i = _objectWithoutPropertiesLoose$O(e, t);
226
+ var o, r, i = _objectWithoutPropertiesLoose$N(e, t);
227
227
  if (Object.getOwnPropertySymbols) {
228
- var s = Object.getOwnPropertySymbols(e);
229
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
228
+ var n = Object.getOwnPropertySymbols(e);
229
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
230
230
  }
231
231
  return i;
232
232
  }
233
- function _objectWithoutPropertiesLoose$O(r, e) {
233
+ function _objectWithoutPropertiesLoose$N(r, e) {
234
234
  if (null == r) return {};
235
235
  var t = {};
236
236
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
237
- if (e.includes(n)) continue;
237
+ if (-1 !== e.indexOf(n)) continue;
238
238
  t[n] = r[n];
239
239
  }
240
240
  return t;
241
241
  }
242
242
  var Accordion = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
243
- var summary = _ref.summary, children = _ref.children, _ref$open = _ref.open, open = _ref$open === void 0 ? false : _ref$open, props = _objectWithoutProperties$O(_ref, _excluded$O);
244
- return /* @__PURE__ */ React.createElement(Element, _extends$P({
243
+ var summary = _ref.summary, children = _ref.children, _ref$open = _ref.open, open = _ref$open === void 0 ? false : _ref$open, props = _objectWithoutProperties$N(_ref, _excluded$N);
244
+ return /* @__PURE__ */ React.createElement(Element, _extends$O({
245
245
  as: "details",
246
246
  "data-expandable-content": true,
247
247
  ref
@@ -258,36 +258,36 @@ var Accordion = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
258
258
  margin: "none"
259
259
  }, summary) : summary), children);
260
260
  });
261
- var _excluded$N = ["children", "size", "shape", "withDelete", "onDelete", "label"];
262
- function _extends$O() {
263
- return _extends$O = Object.assign ? Object.assign.bind() : function(n) {
261
+ var _excluded$M = ["children", "size", "shape", "withDelete", "onDelete", "label"];
262
+ function _extends$N() {
263
+ return _extends$N = Object.assign ? Object.assign.bind() : function(n) {
264
264
  for (var e = 1; e < arguments.length; e++) {
265
265
  var t = arguments[e];
266
266
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
267
267
  }
268
268
  return n;
269
- }, _extends$O.apply(null, arguments);
269
+ }, _extends$N.apply(null, arguments);
270
270
  }
271
- function _objectWithoutProperties$N(e, t) {
271
+ function _objectWithoutProperties$M(e, t) {
272
272
  if (null == e) return {};
273
- var o, r, i = _objectWithoutPropertiesLoose$N(e, t);
273
+ var o, r, i = _objectWithoutPropertiesLoose$M(e, t);
274
274
  if (Object.getOwnPropertySymbols) {
275
- var s = Object.getOwnPropertySymbols(e);
276
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
275
+ var n = Object.getOwnPropertySymbols(e);
276
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
277
277
  }
278
278
  return i;
279
279
  }
280
- function _objectWithoutPropertiesLoose$N(r, e) {
280
+ function _objectWithoutPropertiesLoose$M(r, e) {
281
281
  if (null == r) return {};
282
282
  var t = {};
283
283
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
284
- if (e.includes(n)) continue;
284
+ if (-1 !== e.indexOf(n)) continue;
285
285
  t[n] = r[n];
286
286
  }
287
287
  return t;
288
288
  }
289
289
  var Badge = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
290
- var children = _ref.children, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, withDelete = _ref.withDelete, onDelete = _ref.onDelete, label = _ref.label, props = _objectWithoutProperties$N(_ref, _excluded$N);
290
+ var children = _ref.children, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, withDelete = _ref.withDelete, onDelete = _ref.onDelete, label = _ref.label, props = _objectWithoutProperties$M(_ref, _excluded$M);
291
291
  var classNames = [];
292
292
  if (size) {
293
293
  classNames.push("size-".concat(size));
@@ -305,31 +305,31 @@ var Badge = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
305
305
  onDelete === null || onDelete === void 0 || onDelete(e);
306
306
  }
307
307
  };
308
- return /* @__PURE__ */ React.createElement(Element, _extends$O({
308
+ return /* @__PURE__ */ React.createElement(Element, _extends$N({
309
309
  "data-badge": true,
310
310
  ref,
311
311
  classNames,
312
312
  role: "status",
313
313
  "aria-label": label || (typeof children === "string" ? children : void 0)
314
- }, props), /* @__PURE__ */ React.createElement(Text, null, children), withDelete && /* @__PURE__ */ React.createElement(Text, {
315
- className: "dismiss-button",
314
+ }, props), children, withDelete && /* @__PURE__ */ React.createElement(Text, {
315
+ className: "badge-dismiss-button",
316
316
  onClick: handleDelete,
317
317
  onKeyDown: handleKeyPress,
318
318
  role: "button",
319
319
  tabIndex: 0,
320
- "aria-label": "Remove ".concat(label || children)
320
+ "aria-label": "Remove badge"
321
321
  }, "×"));
322
322
  });
323
- function _typeof$7(o) {
323
+ function _typeof$6(o) {
324
324
  "@babel/helpers - typeof";
325
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
325
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
326
326
  return typeof o2;
327
327
  } : function(o2) {
328
328
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
329
- }, _typeof$7(o);
329
+ }, _typeof$6(o);
330
330
  }
331
- var _excluded$M = ["children", "current"], _excluded2$7 = ["children", "separator", "spacing"];
332
- function ownKeys$4(e, r) {
331
+ var _excluded$L = ["children", "current"], _excluded2$7 = ["children", "separator", "spacing"];
332
+ function ownKeys$3(e, r) {
333
333
  var t = Object.keys(e);
334
334
  if (Object.getOwnPropertySymbols) {
335
335
  var o = Object.getOwnPropertySymbols(e);
@@ -339,64 +339,64 @@ function ownKeys$4(e, r) {
339
339
  }
340
340
  return t;
341
341
  }
342
- function _objectSpread$4(e) {
342
+ function _objectSpread$3(e) {
343
343
  for (var r = 1; r < arguments.length; r++) {
344
344
  var t = null != arguments[r] ? arguments[r] : {};
345
- r % 2 ? ownKeys$4(Object(t), true).forEach(function(r2) {
346
- _defineProperty$5(e, r2, t[r2]);
347
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function(r2) {
345
+ r % 2 ? ownKeys$3(Object(t), true).forEach(function(r2) {
346
+ _defineProperty$4(e, r2, t[r2]);
347
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r2) {
348
348
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
349
349
  });
350
350
  }
351
351
  return e;
352
352
  }
353
- function _defineProperty$5(e, r, t) {
354
- return (r = _toPropertyKey$5(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
353
+ function _defineProperty$4(e, r, t) {
354
+ return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
355
355
  }
356
- function _toPropertyKey$5(t) {
357
- var i = _toPrimitive$5(t, "string");
358
- return "symbol" == _typeof$7(i) ? i : i + "";
356
+ function _toPropertyKey$4(t) {
357
+ var i = _toPrimitive$4(t, "string");
358
+ return "symbol" == _typeof$6(i) ? i : i + "";
359
359
  }
360
- function _toPrimitive$5(t, r) {
361
- if ("object" != _typeof$7(t) || !t) return t;
360
+ function _toPrimitive$4(t, r) {
361
+ if ("object" != _typeof$6(t) || !t) return t;
362
362
  var e = t[Symbol.toPrimitive];
363
363
  if (void 0 !== e) {
364
364
  var i = e.call(t, r || "default");
365
- if ("object" != _typeof$7(i)) return i;
365
+ if ("object" != _typeof$6(i)) return i;
366
366
  throw new TypeError("@@toPrimitive must return a primitive value.");
367
367
  }
368
368
  return ("string" === r ? String : Number)(t);
369
369
  }
370
- function _extends$N() {
371
- return _extends$N = Object.assign ? Object.assign.bind() : function(n) {
370
+ function _extends$M() {
371
+ return _extends$M = Object.assign ? Object.assign.bind() : function(n) {
372
372
  for (var e = 1; e < arguments.length; e++) {
373
373
  var t = arguments[e];
374
374
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
375
375
  }
376
376
  return n;
377
- }, _extends$N.apply(null, arguments);
377
+ }, _extends$M.apply(null, arguments);
378
378
  }
379
- function _objectWithoutProperties$M(e, t) {
379
+ function _objectWithoutProperties$L(e, t) {
380
380
  if (null == e) return {};
381
- var o, r, i = _objectWithoutPropertiesLoose$M(e, t);
381
+ var o, r, i = _objectWithoutPropertiesLoose$L(e, t);
382
382
  if (Object.getOwnPropertySymbols) {
383
- var s = Object.getOwnPropertySymbols(e);
384
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
383
+ var n = Object.getOwnPropertySymbols(e);
384
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
385
385
  }
386
386
  return i;
387
387
  }
388
- function _objectWithoutPropertiesLoose$M(r, e) {
388
+ function _objectWithoutPropertiesLoose$L(r, e) {
389
389
  if (null == r) return {};
390
390
  var t = {};
391
391
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
392
- if (e.includes(n)) continue;
392
+ if (-1 !== e.indexOf(n)) continue;
393
393
  t[n] = r[n];
394
394
  }
395
395
  return t;
396
396
  }
397
397
  var BreadcrumbItem = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
398
- var children = _ref.children, current = _ref.current, props = _objectWithoutProperties$M(_ref, _excluded$M);
399
- return /* @__PURE__ */ React.createElement(Element, _extends$N({
398
+ var children = _ref.children, current = _ref.current, props = _objectWithoutProperties$L(_ref, _excluded$L);
399
+ return /* @__PURE__ */ React.createElement(Element, _extends$M({
400
400
  as: "li",
401
401
  "data-breadcrumb-item": true,
402
402
  ref
@@ -418,7 +418,7 @@ var Separator = function Separator2(_ref2) {
418
418
  }, separator);
419
419
  };
420
420
  var Breadcrumbs = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
421
- var children = _ref3.children, _ref3$separator = _ref3.separator, separator = _ref3$separator === void 0 ? "/" : _ref3$separator, spacing = _ref3.spacing, props = _objectWithoutProperties$M(_ref3, _excluded2$7);
421
+ var children = _ref3.children, _ref3$separator = _ref3.separator, separator = _ref3$separator === void 0 ? "/" : _ref3$separator, spacing = _ref3.spacing, props = _objectWithoutProperties$L(_ref3, _excluded2$7);
422
422
  var classNames = [];
423
423
  if (spacing) {
424
424
  classNames.push("spacing-".concat(spacing));
@@ -429,7 +429,7 @@ var Breadcrumbs = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
429
429
  var isLast = index === childrenArray.length - 1;
430
430
  var breadcrumbItem;
431
431
  if (child.type === BreadcrumbItem) {
432
- breadcrumbItem = /* @__PURE__ */ React.cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
432
+ breadcrumbItem = /* @__PURE__ */ React.cloneElement(child, _objectSpread$3(_objectSpread$3({}, child.props), {}, {
433
433
  current: isLast
434
434
  }));
435
435
  } else {
@@ -447,7 +447,7 @@ var Breadcrumbs = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
447
447
  }
448
448
  return acc;
449
449
  }, []);
450
- return /* @__PURE__ */ React.createElement("nav", _extends$N({
450
+ return /* @__PURE__ */ React.createElement("nav", _extends$M({
451
451
  "aria-label": "Breadcrumb",
452
452
  ref
453
453
  }, props), /* @__PURE__ */ React.createElement(Element, {
@@ -457,36 +457,36 @@ var Breadcrumbs = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
457
457
  classNames
458
458
  }, processedChildren));
459
459
  });
460
- var _excluded$L = ["size", "shape", "kind", "isLoading", "hasDelete", "label"];
461
- function _extends$M() {
462
- return _extends$M = Object.assign ? Object.assign.bind() : function(n) {
460
+ var _excluded$K = ["size", "shape", "kind", "isLoading", "hasDelete", "label"];
461
+ function _extends$L() {
462
+ return _extends$L = Object.assign ? Object.assign.bind() : function(n) {
463
463
  for (var e = 1; e < arguments.length; e++) {
464
464
  var t = arguments[e];
465
465
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
466
466
  }
467
467
  return n;
468
- }, _extends$M.apply(null, arguments);
468
+ }, _extends$L.apply(null, arguments);
469
469
  }
470
- function _objectWithoutProperties$L(e, t) {
470
+ function _objectWithoutProperties$K(e, t) {
471
471
  if (null == e) return {};
472
- var o, r, i = _objectWithoutPropertiesLoose$L(e, t);
472
+ var o, r, i = _objectWithoutPropertiesLoose$K(e, t);
473
473
  if (Object.getOwnPropertySymbols) {
474
- var s = Object.getOwnPropertySymbols(e);
475
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
474
+ var n = Object.getOwnPropertySymbols(e);
475
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
476
476
  }
477
477
  return i;
478
478
  }
479
- function _objectWithoutPropertiesLoose$L(r, e) {
479
+ function _objectWithoutPropertiesLoose$K(r, e) {
480
480
  if (null == r) return {};
481
481
  var t = {};
482
482
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
483
- if (e.includes(n)) continue;
483
+ if (-1 !== e.indexOf(n)) continue;
484
484
  t[n] = r[n];
485
485
  }
486
486
  return t;
487
487
  }
488
488
  var Button = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
489
- var _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, kind = _ref.kind, isLoading = _ref.isLoading, hasDelete = _ref.hasDelete, label = _ref.label, props = _objectWithoutProperties$L(_ref, _excluded$L);
489
+ var _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, shape = _ref.shape, kind = _ref.kind, isLoading = _ref.isLoading, hasDelete = _ref.hasDelete, label = _ref.label, props = _objectWithoutProperties$K(_ref, _excluded$K);
490
490
  var classNames = [];
491
491
  if (kind) {
492
492
  classNames.push(kind);
@@ -503,7 +503,7 @@ var Button = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
503
503
  if (hasDelete) {
504
504
  classNames.push("has-delete");
505
505
  }
506
- return /* @__PURE__ */ React.createElement(Element, _extends$M({
506
+ return /* @__PURE__ */ React.createElement(Element, _extends$L({
507
507
  as: "button",
508
508
  "data-button": true,
509
509
  ref,
@@ -513,43 +513,43 @@ var Button = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
513
513
  "aria-busy": isLoading
514
514
  }, props));
515
515
  });
516
- var _excluded$K = ["kind", "children", "title"];
517
- function _extends$L() {
518
- return _extends$L = Object.assign ? Object.assign.bind() : function(n) {
516
+ var _excluded$J = ["kind", "children", "title"];
517
+ function _extends$K() {
518
+ return _extends$K = Object.assign ? Object.assign.bind() : function(n) {
519
519
  for (var e = 1; e < arguments.length; e++) {
520
520
  var t = arguments[e];
521
521
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
522
522
  }
523
523
  return n;
524
- }, _extends$L.apply(null, arguments);
524
+ }, _extends$K.apply(null, arguments);
525
525
  }
526
- function _objectWithoutProperties$K(e, t) {
526
+ function _objectWithoutProperties$J(e, t) {
527
527
  if (null == e) return {};
528
- var o, r, i = _objectWithoutPropertiesLoose$K(e, t);
528
+ var o, r, i = _objectWithoutPropertiesLoose$J(e, t);
529
529
  if (Object.getOwnPropertySymbols) {
530
- var s = Object.getOwnPropertySymbols(e);
531
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
530
+ var n = Object.getOwnPropertySymbols(e);
531
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
532
532
  }
533
533
  return i;
534
534
  }
535
- function _objectWithoutPropertiesLoose$K(r, e) {
535
+ function _objectWithoutPropertiesLoose$J(r, e) {
536
536
  if (null == r) return {};
537
537
  var t = {};
538
538
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
539
- if (e.includes(n)) continue;
539
+ if (-1 !== e.indexOf(n)) continue;
540
540
  t[n] = r[n];
541
541
  }
542
542
  return t;
543
543
  }
544
544
  var Callout = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
545
- var kind = _ref.kind, children = _ref.children, title = _ref.title, props = _objectWithoutProperties$K(_ref, _excluded$K);
545
+ var kind = _ref.kind, children = _ref.children, title = _ref.title, props = _objectWithoutProperties$J(_ref, _excluded$J);
546
546
  var roleMap = {
547
547
  info: "status",
548
548
  success: "status",
549
549
  warning: "alert",
550
550
  error: "alert"
551
551
  };
552
- return /* @__PURE__ */ React.createElement(Element, _extends$L({
552
+ return /* @__PURE__ */ React.createElement(Element, _extends$K({
553
553
  as: "div",
554
554
  "data-callout": true,
555
555
  ref,
@@ -559,41 +559,41 @@ var Callout = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
559
559
  "aria-label": title
560
560
  }, props), children);
561
561
  });
562
- var _excluded$J = ["shape", "heading", "children"];
563
- function _extends$K() {
564
- return _extends$K = Object.assign ? Object.assign.bind() : function(n) {
562
+ var _excluded$I = ["shape", "heading", "children"];
563
+ function _extends$J() {
564
+ return _extends$J = Object.assign ? Object.assign.bind() : function(n) {
565
565
  for (var e = 1; e < arguments.length; e++) {
566
566
  var t = arguments[e];
567
567
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
568
568
  }
569
569
  return n;
570
- }, _extends$K.apply(null, arguments);
570
+ }, _extends$J.apply(null, arguments);
571
571
  }
572
- function _objectWithoutProperties$J(e, t) {
572
+ function _objectWithoutProperties$I(e, t) {
573
573
  if (null == e) return {};
574
- var o, r, i = _objectWithoutPropertiesLoose$J(e, t);
574
+ var o, r, i = _objectWithoutPropertiesLoose$I(e, t);
575
575
  if (Object.getOwnPropertySymbols) {
576
- var s = Object.getOwnPropertySymbols(e);
577
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
576
+ var n = Object.getOwnPropertySymbols(e);
577
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
578
578
  }
579
579
  return i;
580
580
  }
581
- function _objectWithoutPropertiesLoose$J(r, e) {
581
+ function _objectWithoutPropertiesLoose$I(r, e) {
582
582
  if (null == r) return {};
583
583
  var t = {};
584
584
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
585
- if (e.includes(n)) continue;
585
+ if (-1 !== e.indexOf(n)) continue;
586
586
  t[n] = r[n];
587
587
  }
588
588
  return t;
589
589
  }
590
590
  var Card = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
591
- var shape = _ref.shape, heading = _ref.heading, children = _ref.children, props = _objectWithoutProperties$J(_ref, _excluded$J);
591
+ var shape = _ref.shape, heading = _ref.heading, children = _ref.children, props = _objectWithoutProperties$I(_ref, _excluded$I);
592
592
  var classNames = [];
593
593
  if (shape) {
594
594
  classNames.push("shape-".concat(shape));
595
595
  }
596
- return /* @__PURE__ */ React.createElement(Element, _extends$K({
596
+ return /* @__PURE__ */ React.createElement(Element, _extends$J({
597
597
  as: "div",
598
598
  "data-card": true,
599
599
  ref,
@@ -603,15 +603,15 @@ var Card = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
603
603
  tabIndex: 0
604
604
  }, props), children);
605
605
  });
606
- var _excluded$I = ["children", "source", "language", "showCopyButton", "showLineNumbers", "description", "withSyntaxHighlighting", "contentEditable", "onChange"];
607
- function _extends$J() {
608
- return _extends$J = Object.assign ? Object.assign.bind() : function(n) {
606
+ var _excluded$H = ["children", "source", "language", "showCopyButton", "showLineNumbers", "description", "withSyntaxHighlighting", "contentEditable", "onChange"];
607
+ function _extends$I() {
608
+ return _extends$I = Object.assign ? Object.assign.bind() : function(n) {
609
609
  for (var e = 1; e < arguments.length; e++) {
610
610
  var t = arguments[e];
611
611
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
612
612
  }
613
613
  return n;
614
- }, _extends$J.apply(null, arguments);
614
+ }, _extends$I.apply(null, arguments);
615
615
  }
616
616
  function _regeneratorRuntime() {
617
617
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -669,7 +669,7 @@ function _regeneratorRuntime() {
669
669
  var c2 = tryCatch(t2[r3], t2, o2);
670
670
  if ("throw" !== c2.type) {
671
671
  var u2 = c2.arg, h2 = u2.value;
672
- return h2 && "object" == _typeof$6(h2) && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
672
+ return h2 && "object" == _typeof$5(h2) && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
673
673
  invoke("next", t3, i2, a2);
674
674
  }, function(t3) {
675
675
  invoke("throw", t3, i2, a2);
@@ -755,7 +755,7 @@ function _regeneratorRuntime() {
755
755
  return i2.next = i2;
756
756
  }
757
757
  }
758
- throw new TypeError(_typeof$6(e2) + " is not iterable");
758
+ throw new TypeError(_typeof$5(e2) + " is not iterable");
759
759
  }
760
760
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: true }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: true }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function(t2) {
761
761
  var e2 = "function" == typeof t2 && t2.constructor;
@@ -874,33 +874,33 @@ function _asyncToGenerator(n) {
874
874
  });
875
875
  };
876
876
  }
877
- function _typeof$6(o) {
877
+ function _typeof$5(o) {
878
878
  "@babel/helpers - typeof";
879
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
879
+ return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
880
880
  return typeof o2;
881
881
  } : function(o2) {
882
882
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
883
- }, _typeof$6(o);
883
+ }, _typeof$5(o);
884
884
  }
885
- function _slicedToArray$e(r, e) {
886
- return _arrayWithHoles$e(r) || _iterableToArrayLimit$e(r, e) || _unsupportedIterableToArray$g(r, e) || _nonIterableRest$e();
885
+ function _slicedToArray$d(r, e) {
886
+ return _arrayWithHoles$d(r) || _iterableToArrayLimit$d(r, e) || _unsupportedIterableToArray$f(r, e) || _nonIterableRest$d();
887
887
  }
888
- function _nonIterableRest$e() {
888
+ function _nonIterableRest$d() {
889
889
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
890
890
  }
891
- function _unsupportedIterableToArray$g(r, a) {
891
+ function _unsupportedIterableToArray$f(r, a) {
892
892
  if (r) {
893
- if ("string" == typeof r) return _arrayLikeToArray$g(r, a);
893
+ if ("string" == typeof r) return _arrayLikeToArray$f(r, a);
894
894
  var t = {}.toString.call(r).slice(8, -1);
895
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0;
895
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0;
896
896
  }
897
897
  }
898
- function _arrayLikeToArray$g(r, a) {
898
+ function _arrayLikeToArray$f(r, a) {
899
899
  (null == a || a > r.length) && (a = r.length);
900
900
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
901
901
  return n;
902
902
  }
903
- function _iterableToArrayLimit$e(r, l) {
903
+ function _iterableToArrayLimit$d(r, l) {
904
904
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
905
905
  if (null != t) {
906
906
  var e, n, i, u, a = [], f = true, o = false;
@@ -919,37 +919,37 @@ function _iterableToArrayLimit$e(r, l) {
919
919
  return a;
920
920
  }
921
921
  }
922
- function _arrayWithHoles$e(r) {
922
+ function _arrayWithHoles$d(r) {
923
923
  if (Array.isArray(r)) return r;
924
924
  }
925
- function _objectWithoutProperties$I(e, t) {
925
+ function _objectWithoutProperties$H(e, t) {
926
926
  if (null == e) return {};
927
- var o, r, i = _objectWithoutPropertiesLoose$I(e, t);
927
+ var o, r, i = _objectWithoutPropertiesLoose$H(e, t);
928
928
  if (Object.getOwnPropertySymbols) {
929
- var s = Object.getOwnPropertySymbols(e);
930
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
929
+ var n = Object.getOwnPropertySymbols(e);
930
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
931
931
  }
932
932
  return i;
933
933
  }
934
- function _objectWithoutPropertiesLoose$I(r, e) {
934
+ function _objectWithoutPropertiesLoose$H(r, e) {
935
935
  if (null == r) return {};
936
936
  var t = {};
937
937
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
938
- if (e.includes(n)) continue;
938
+ if (-1 !== e.indexOf(n)) continue;
939
939
  t[n] = r[n];
940
940
  }
941
941
  return t;
942
942
  }
943
943
  var CodeBlock = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
944
- var children = _ref.children, source = _ref.source, _ref$language = _ref.language, language = _ref$language === void 0 ? "json" : _ref$language, showCopyButton = _ref.showCopyButton, showLineNumbers = _ref.showLineNumbers, description = _ref.description, _ref$withSyntaxHighli = _ref.withSyntaxHighlighting, withSyntaxHighlighting = _ref$withSyntaxHighli === void 0 ? false : _ref$withSyntaxHighli, _ref$contentEditable = _ref.contentEditable, contentEditable = _ref$contentEditable === void 0 ? false : _ref$contentEditable, onChange = _ref.onChange, props = _objectWithoutProperties$I(_ref, _excluded$I);
945
- var _useState = useState(false), _useState2 = _slicedToArray$e(_useState, 2), isCodeCopied = _useState2[0], setIsCodeCopied = _useState2[1];
946
- var _useState3 = useState(null), _useState4 = _slicedToArray$e(_useState3, 2), prismModule = _useState4[0], setPrismModule = _useState4[1];
947
- var _useState5 = useState(withSyntaxHighlighting), _useState6 = _slicedToArray$e(_useState5, 2), isLoading = _useState6[0], setIsLoading = _useState6[1];
948
- var _useState7 = useState(null), _useState8 = _slicedToArray$e(_useState7, 2), codeElement = _useState8[0], setCodeElement = _useState8[1];
944
+ var children = _ref.children, source = _ref.source, _ref$language = _ref.language, language = _ref$language === void 0 ? "json" : _ref$language, showCopyButton = _ref.showCopyButton, showLineNumbers = _ref.showLineNumbers, description = _ref.description, _ref$withSyntaxHighli = _ref.withSyntaxHighlighting, withSyntaxHighlighting = _ref$withSyntaxHighli === void 0 ? false : _ref$withSyntaxHighli, _ref$contentEditable = _ref.contentEditable, contentEditable = _ref$contentEditable === void 0 ? false : _ref$contentEditable, onChange = _ref.onChange, props = _objectWithoutProperties$H(_ref, _excluded$H);
945
+ var _useState = useState(false), _useState2 = _slicedToArray$d(_useState, 2), isCodeCopied = _useState2[0], setIsCodeCopied = _useState2[1];
946
+ var _useState3 = useState(null), _useState4 = _slicedToArray$d(_useState3, 2), prismModule = _useState4[0], setPrismModule = _useState4[1];
947
+ var _useState5 = useState(withSyntaxHighlighting), _useState6 = _slicedToArray$d(_useState5, 2), isLoading = _useState6[0], setIsLoading = _useState6[1];
948
+ var _useState7 = useState(null), _useState8 = _slicedToArray$d(_useState7, 2), codeElement = _useState8[0], setCodeElement = _useState8[1];
949
949
  var preRef = useRef(null);
950
950
  var initialCode = typeof children === "string" ? children : React.Children.toArray(children).join("");
951
951
  if (!children) {
952
- initialCode = _typeof$6(source) === "object" ? JSON.stringify(source, null, 2) : source !== null && source !== void 0 ? source : "";
952
+ initialCode = _typeof$5(source) === "object" ? JSON.stringify(source, null, 2) : source !== null && source !== void 0 ? source : "";
953
953
  }
954
954
  useEffect(function() {
955
955
  if (!withSyntaxHighlighting) return;
@@ -1130,7 +1130,7 @@ var CodeBlock = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1130
1130
  classNames.push("show-line-numbers");
1131
1131
  }
1132
1132
  var lines = initialCode.split(/\r\n|\r|\n/gm);
1133
- return /* @__PURE__ */ React.createElement(Element, _extends$J({
1133
+ return /* @__PURE__ */ React.createElement(Element, _extends$I({
1134
1134
  "data-code-block": true,
1135
1135
  as: "div",
1136
1136
  classNames,
@@ -1168,41 +1168,41 @@ var CodeBlock = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1168
1168
  className: "language-".concat(language, " ").concat(isLoading ? "is-loading" : "")
1169
1169
  }, initialCode)));
1170
1170
  });
1171
- var _excluded$H = ["kind", "height", "label"];
1172
- function _extends$I() {
1173
- return _extends$I = Object.assign ? Object.assign.bind() : function(n) {
1171
+ var _excluded$G = ["kind", "height", "label"];
1172
+ function _extends$H() {
1173
+ return _extends$H = Object.assign ? Object.assign.bind() : function(n) {
1174
1174
  for (var e = 1; e < arguments.length; e++) {
1175
1175
  var t = arguments[e];
1176
1176
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1177
1177
  }
1178
1178
  return n;
1179
- }, _extends$I.apply(null, arguments);
1179
+ }, _extends$H.apply(null, arguments);
1180
1180
  }
1181
- function _objectWithoutProperties$H(e, t) {
1181
+ function _objectWithoutProperties$G(e, t) {
1182
1182
  if (null == e) return {};
1183
- var o, r, i = _objectWithoutPropertiesLoose$H(e, t);
1183
+ var o, r, i = _objectWithoutPropertiesLoose$G(e, t);
1184
1184
  if (Object.getOwnPropertySymbols) {
1185
- var s = Object.getOwnPropertySymbols(e);
1186
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1185
+ var n = Object.getOwnPropertySymbols(e);
1186
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1187
1187
  }
1188
1188
  return i;
1189
1189
  }
1190
- function _objectWithoutPropertiesLoose$H(r, e) {
1190
+ function _objectWithoutPropertiesLoose$G(r, e) {
1191
1191
  if (null == r) return {};
1192
1192
  var t = {};
1193
1193
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1194
- if (e.includes(n)) continue;
1194
+ if (-1 !== e.indexOf(n)) continue;
1195
1195
  t[n] = r[n];
1196
1196
  }
1197
1197
  return t;
1198
1198
  }
1199
1199
  var Divider = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1200
- var kind = _ref.kind, height = _ref.height, label = _ref.label, props = _objectWithoutProperties$H(_ref, _excluded$H);
1200
+ var kind = _ref.kind, height = _ref.height, label = _ref.label, props = _objectWithoutProperties$G(_ref, _excluded$G);
1201
1201
  var classNames = [];
1202
1202
  if (kind) {
1203
1203
  classNames.push(kind);
1204
1204
  }
1205
- return /* @__PURE__ */ React.createElement(Element, _extends$I({
1205
+ return /* @__PURE__ */ React.createElement(Element, _extends$H({
1206
1206
  as: "hr",
1207
1207
  "data-hrule": true,
1208
1208
  ref,
@@ -1233,35 +1233,35 @@ var useClickOutside = function useClickOutside2(ref, handler) {
1233
1233
  };
1234
1234
  }, [ref, memoizedHandler]);
1235
1235
  };
1236
- var _excluded$G = ["children", "openWhen", "closeWhen", "closeOnClickOutside", "padding", "position", "size", "bgColor", "bgColour", "isDismissible", "showOverlay", "label"];
1237
- function _extends$H() {
1238
- return _extends$H = Object.assign ? Object.assign.bind() : function(n) {
1236
+ var _excluded$F = ["children", "openWhen", "closeWhen", "closeOnClickOutside", "padding", "position", "size", "bgColor", "bgColour", "isDismissible", "showOverlay", "label"];
1237
+ function _extends$G() {
1238
+ return _extends$G = Object.assign ? Object.assign.bind() : function(n) {
1239
1239
  for (var e = 1; e < arguments.length; e++) {
1240
1240
  var t = arguments[e];
1241
1241
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1242
1242
  }
1243
1243
  return n;
1244
- }, _extends$H.apply(null, arguments);
1244
+ }, _extends$G.apply(null, arguments);
1245
1245
  }
1246
- function _slicedToArray$d(r, e) {
1247
- return _arrayWithHoles$d(r) || _iterableToArrayLimit$d(r, e) || _unsupportedIterableToArray$f(r, e) || _nonIterableRest$d();
1246
+ function _slicedToArray$c(r, e) {
1247
+ return _arrayWithHoles$c(r) || _iterableToArrayLimit$c(r, e) || _unsupportedIterableToArray$e(r, e) || _nonIterableRest$c();
1248
1248
  }
1249
- function _nonIterableRest$d() {
1249
+ function _nonIterableRest$c() {
1250
1250
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1251
1251
  }
1252
- function _unsupportedIterableToArray$f(r, a) {
1252
+ function _unsupportedIterableToArray$e(r, a) {
1253
1253
  if (r) {
1254
- if ("string" == typeof r) return _arrayLikeToArray$f(r, a);
1254
+ if ("string" == typeof r) return _arrayLikeToArray$e(r, a);
1255
1255
  var t = {}.toString.call(r).slice(8, -1);
1256
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0;
1256
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0;
1257
1257
  }
1258
1258
  }
1259
- function _arrayLikeToArray$f(r, a) {
1259
+ function _arrayLikeToArray$e(r, a) {
1260
1260
  (null == a || a > r.length) && (a = r.length);
1261
1261
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1262
1262
  return n;
1263
1263
  }
1264
- function _iterableToArrayLimit$d(r, l) {
1264
+ function _iterableToArrayLimit$c(r, l) {
1265
1265
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1266
1266
  if (null != t) {
1267
1267
  var e, n, i, u, a = [], f = true, o = false;
@@ -1280,30 +1280,30 @@ function _iterableToArrayLimit$d(r, l) {
1280
1280
  return a;
1281
1281
  }
1282
1282
  }
1283
- function _arrayWithHoles$d(r) {
1283
+ function _arrayWithHoles$c(r) {
1284
1284
  if (Array.isArray(r)) return r;
1285
1285
  }
1286
- function _objectWithoutProperties$G(e, t) {
1286
+ function _objectWithoutProperties$F(e, t) {
1287
1287
  if (null == e) return {};
1288
- var o, r, i = _objectWithoutPropertiesLoose$G(e, t);
1288
+ var o, r, i = _objectWithoutPropertiesLoose$F(e, t);
1289
1289
  if (Object.getOwnPropertySymbols) {
1290
- var s = Object.getOwnPropertySymbols(e);
1291
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1290
+ var n = Object.getOwnPropertySymbols(e);
1291
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1292
1292
  }
1293
1293
  return i;
1294
1294
  }
1295
- function _objectWithoutPropertiesLoose$G(r, e) {
1295
+ function _objectWithoutPropertiesLoose$F(r, e) {
1296
1296
  if (null == r) return {};
1297
1297
  var t = {};
1298
1298
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1299
- if (e.includes(n)) continue;
1299
+ if (-1 !== e.indexOf(n)) continue;
1300
1300
  t[n] = r[n];
1301
1301
  }
1302
1302
  return t;
1303
1303
  }
1304
1304
  var Drawer = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1305
- var children = _ref.children, openWhen = _ref.openWhen, closeWhen = _ref.closeWhen, closeOnClickOutside = _ref.closeOnClickOutside, padding = _ref.padding, position = _ref.position, size = _ref.size, bgColor = _ref.bgColor, bgColour = _ref.bgColour, _ref$isDismissible = _ref.isDismissible, isDismissible = _ref$isDismissible === void 0 ? true : _ref$isDismissible, _ref$showOverlay = _ref.showOverlay, showOverlay = _ref$showOverlay === void 0 ? false : _ref$showOverlay, label = _ref.label, props = _objectWithoutProperties$G(_ref, _excluded$G);
1306
- var _useState = useState(openWhen), _useState2 = _slicedToArray$d(_useState, 2), shouldRender = _useState2[0], setShouldRender = _useState2[1];
1305
+ var children = _ref.children, openWhen = _ref.openWhen, closeWhen = _ref.closeWhen, closeOnClickOutside = _ref.closeOnClickOutside, padding = _ref.padding, position = _ref.position, size = _ref.size, bgColor = _ref.bgColor, bgColour = _ref.bgColour, _ref$isDismissible = _ref.isDismissible, isDismissible = _ref$isDismissible === void 0 ? true : _ref$isDismissible, _ref$showOverlay = _ref.showOverlay, showOverlay = _ref$showOverlay === void 0 ? false : _ref$showOverlay, label = _ref.label, props = _objectWithoutProperties$F(_ref, _excluded$F);
1306
+ var _useState = useState(openWhen), _useState2 = _slicedToArray$c(_useState, 2), shouldRender = _useState2[0], setShouldRender = _useState2[1];
1307
1307
  var drawerRef = useRef(null);
1308
1308
  var effectiveRef = ref || drawerRef;
1309
1309
  useEffect(function() {
@@ -1338,7 +1338,7 @@ var Drawer = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1338
1338
  closeDrawer();
1339
1339
  }
1340
1340
  };
1341
- return shouldRender ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Element, _extends$H({
1341
+ return shouldRender ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Element, _extends$G({
1342
1342
  as: "div",
1343
1343
  "data-drawer": true,
1344
1344
  ref: effectiveRef,
@@ -1362,47 +1362,47 @@ var Drawer = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1362
1362
  bgColour,
1363
1363
  role: "document"
1364
1364
  }, isDismissible && /* @__PURE__ */ React.createElement("button", {
1365
- className: "dismiss-button",
1365
+ className: "drawer-dismiss-button",
1366
1366
  onClick: closeDrawer,
1367
1367
  "aria-label": "Close drawer",
1368
1368
  tabIndex: 0
1369
1369
  }), children))) : null;
1370
1370
  });
1371
- var _excluded$F = ["label", "hideLabel", "htmlFor"];
1372
- function _extends$G() {
1373
- return _extends$G = Object.assign ? Object.assign.bind() : function(n) {
1371
+ var _excluded$E = ["label", "hideLabel", "htmlFor"];
1372
+ function _extends$F() {
1373
+ return _extends$F = Object.assign ? Object.assign.bind() : function(n) {
1374
1374
  for (var e = 1; e < arguments.length; e++) {
1375
1375
  var t = arguments[e];
1376
1376
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1377
1377
  }
1378
1378
  return n;
1379
- }, _extends$G.apply(null, arguments);
1379
+ }, _extends$F.apply(null, arguments);
1380
1380
  }
1381
- function _objectWithoutProperties$F(e, t) {
1381
+ function _objectWithoutProperties$E(e, t) {
1382
1382
  if (null == e) return {};
1383
- var o, r, i = _objectWithoutPropertiesLoose$F(e, t);
1383
+ var o, r, i = _objectWithoutPropertiesLoose$E(e, t);
1384
1384
  if (Object.getOwnPropertySymbols) {
1385
- var s = Object.getOwnPropertySymbols(e);
1386
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1385
+ var n = Object.getOwnPropertySymbols(e);
1386
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1387
1387
  }
1388
1388
  return i;
1389
1389
  }
1390
- function _objectWithoutPropertiesLoose$F(r, e) {
1390
+ function _objectWithoutPropertiesLoose$E(r, e) {
1391
1391
  if (null == r) return {};
1392
1392
  var t = {};
1393
1393
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1394
- if (e.includes(n)) continue;
1394
+ if (-1 !== e.indexOf(n)) continue;
1395
1395
  t[n] = r[n];
1396
1396
  }
1397
1397
  return t;
1398
1398
  }
1399
1399
  var InputLabel = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1400
- var label = _ref.label, hideLabel = _ref.hideLabel, htmlFor = _ref.htmlFor, props = _objectWithoutProperties$F(_ref, _excluded$F);
1400
+ var label = _ref.label, hideLabel = _ref.hideLabel, htmlFor = _ref.htmlFor, props = _objectWithoutProperties$E(_ref, _excluded$E);
1401
1401
  var classNames = [];
1402
1402
  if (hideLabel) {
1403
1403
  classNames.push("visually-hidden");
1404
1404
  }
1405
- return /* @__PURE__ */ React.createElement(Element, _extends$G({
1405
+ return /* @__PURE__ */ React.createElement(Element, _extends$F({
1406
1406
  as: "label",
1407
1407
  ref,
1408
1408
  htmlFor,
@@ -1412,48 +1412,48 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1412
1412
  function _objectDestructuringEmpty(t) {
1413
1413
  if (null == t) throw new TypeError("Cannot destructure " + t);
1414
1414
  }
1415
- function _extends$F() {
1416
- return _extends$F = Object.assign ? Object.assign.bind() : function(n) {
1415
+ function _extends$E() {
1416
+ return _extends$E = Object.assign ? Object.assign.bind() : function(n) {
1417
1417
  for (var e = 1; e < arguments.length; e++) {
1418
1418
  var t = arguments[e];
1419
1419
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1420
1420
  }
1421
1421
  return n;
1422
- }, _extends$F.apply(null, arguments);
1422
+ }, _extends$E.apply(null, arguments);
1423
1423
  }
1424
1424
  var FormItem = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1425
- var props = _extends$F({}, (_objectDestructuringEmpty(_ref), _ref));
1426
- return /* @__PURE__ */ React.createElement(Element, _extends$F({
1425
+ var props = _extends$E({}, (_objectDestructuringEmpty(_ref), _ref));
1426
+ return /* @__PURE__ */ React.createElement(Element, _extends$E({
1427
1427
  as: "div",
1428
1428
  "data-form-item": true,
1429
1429
  ref,
1430
1430
  role: "group"
1431
1431
  }, props));
1432
1432
  });
1433
- var _excluded$E = ["as", "className", "label", "customLabel", "helpText", "errorText", "validateThis", "classNames", "children", "onChange", "onValueChange"];
1434
- function _extends$E() {
1435
- return _extends$E = Object.assign ? Object.assign.bind() : function(n) {
1436
- for (var e = 1; e < arguments.length; e++) {
1433
+ var _excluded$D = ["as", "className", "label", "customLabel", "helpText", "errorText", "validateThis", "classNames", "children", "onChange", "onValueChange"];
1434
+ function _extends$D() {
1435
+ return _extends$D = Object.assign ? Object.assign.bind() : function(n) {
1436
+ for (var e = 1; e < arguments.length; e++) {
1437
1437
  var t = arguments[e];
1438
1438
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1439
1439
  }
1440
1440
  return n;
1441
- }, _extends$E.apply(null, arguments);
1441
+ }, _extends$D.apply(null, arguments);
1442
1442
  }
1443
- function _objectWithoutProperties$E(e, t) {
1443
+ function _objectWithoutProperties$D(e, t) {
1444
1444
  if (null == e) return {};
1445
- var o, r, i = _objectWithoutPropertiesLoose$E(e, t);
1445
+ var o, r, i = _objectWithoutPropertiesLoose$D(e, t);
1446
1446
  if (Object.getOwnPropertySymbols) {
1447
- var s = Object.getOwnPropertySymbols(e);
1448
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1447
+ var n = Object.getOwnPropertySymbols(e);
1448
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1449
1449
  }
1450
1450
  return i;
1451
1451
  }
1452
- function _objectWithoutPropertiesLoose$E(r, e) {
1452
+ function _objectWithoutPropertiesLoose$D(r, e) {
1453
1453
  if (null == r) return {};
1454
1454
  var t = {};
1455
1455
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1456
- if (e.includes(n)) continue;
1456
+ if (-1 !== e.indexOf(n)) continue;
1457
1457
  t[n] = r[n];
1458
1458
  }
1459
1459
  return t;
@@ -1461,7 +1461,7 @@ function _objectWithoutPropertiesLoose$E(r, e) {
1461
1461
  var BaseInputComponent = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1462
1462
  var Component = _ref.as, className = _ref.className, label = _ref.label, customLabel = _ref.customLabel, helpText = _ref.helpText, errorText = _ref.errorText, validateThis = _ref.validateThis, classNames = _ref.classNames, children = _ref.children, onChange = _ref.onChange;
1463
1463
  _ref.onValueChange;
1464
- var inputProps = _objectWithoutProperties$E(_ref, _excluded$E);
1464
+ var inputProps = _objectWithoutProperties$D(_ref, _excluded$D);
1465
1465
  var handleChange = function handleChange2(valueOrEvent) {
1466
1466
  var _valueOrEvent$target;
1467
1467
  if (!onChange) return;
@@ -1484,7 +1484,7 @@ var BaseInputComponent = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1484
1484
  htmlFor: inputProps.id
1485
1485
  }), /* @__PURE__ */ React.createElement(Div, {
1486
1486
  "data-input-wrapper": true
1487
- }, /* @__PURE__ */ React.createElement(Element, _extends$E({
1487
+ }, /* @__PURE__ */ React.createElement(Element, _extends$D({
1488
1488
  as: Component,
1489
1489
  ref,
1490
1490
  classNames: [className || "", validateThis ? "validate-this" : ""].concat(classNames || [])
@@ -1498,36 +1498,36 @@ var BaseInputComponent = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1498
1498
  className: "error-text"
1499
1499
  }, errorText)));
1500
1500
  });
1501
- var _excluded$D = ["id", "name", "value", "onChange", "checked", "defaultChecked"];
1502
- function _extends$D() {
1503
- return _extends$D = Object.assign ? Object.assign.bind() : function(n) {
1501
+ var _excluded$C = ["id", "name", "value", "onChange", "checked", "defaultChecked"];
1502
+ function _extends$C() {
1503
+ return _extends$C = Object.assign ? Object.assign.bind() : function(n) {
1504
1504
  for (var e = 1; e < arguments.length; e++) {
1505
1505
  var t = arguments[e];
1506
1506
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1507
1507
  }
1508
1508
  return n;
1509
- }, _extends$D.apply(null, arguments);
1509
+ }, _extends$C.apply(null, arguments);
1510
1510
  }
1511
- function _objectWithoutProperties$D(e, t) {
1511
+ function _objectWithoutProperties$C(e, t) {
1512
1512
  if (null == e) return {};
1513
- var o, r, i = _objectWithoutPropertiesLoose$D(e, t);
1513
+ var o, r, i = _objectWithoutPropertiesLoose$C(e, t);
1514
1514
  if (Object.getOwnPropertySymbols) {
1515
- var s = Object.getOwnPropertySymbols(e);
1516
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1515
+ var n = Object.getOwnPropertySymbols(e);
1516
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1517
1517
  }
1518
1518
  return i;
1519
1519
  }
1520
- function _objectWithoutPropertiesLoose$D(r, e) {
1520
+ function _objectWithoutPropertiesLoose$C(r, e) {
1521
1521
  if (null == r) return {};
1522
1522
  var t = {};
1523
1523
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1524
- if (e.includes(n)) continue;
1524
+ if (-1 !== e.indexOf(n)) continue;
1525
1525
  t[n] = r[n];
1526
1526
  }
1527
1527
  return t;
1528
1528
  }
1529
1529
  var Checkbox = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1530
- var id = _ref.id, name = _ref.name, value = _ref.value, onChange = _ref.onChange, checked = _ref.checked, defaultChecked = _ref.defaultChecked, props = _objectWithoutProperties$D(_ref, _excluded$D);
1530
+ var id = _ref.id, name = _ref.name, value = _ref.value, onChange = _ref.onChange, checked = _ref.checked, defaultChecked = _ref.defaultChecked, props = _objectWithoutProperties$C(_ref, _excluded$C);
1531
1531
  var derivedName = useMemo(function() {
1532
1532
  return name || id;
1533
1533
  }, [name, id]);
@@ -1539,7 +1539,7 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1539
1539
  as: "div",
1540
1540
  "data-checkbox": true,
1541
1541
  ref
1542
- }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$D({
1542
+ }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$C({
1543
1543
  as: "input",
1544
1544
  type: "checkbox",
1545
1545
  id,
@@ -1550,36 +1550,36 @@ var Checkbox = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1550
1550
  onChange: handleChange
1551
1551
  }, props)));
1552
1552
  });
1553
- var _excluded$C = ["id", "name", "onChange", "checked", "defaultChecked", "size"];
1554
- function _extends$C() {
1555
- return _extends$C = Object.assign ? Object.assign.bind() : function(n) {
1553
+ var _excluded$B = ["id", "name", "onChange", "checked", "defaultChecked", "size"];
1554
+ function _extends$B() {
1555
+ return _extends$B = Object.assign ? Object.assign.bind() : function(n) {
1556
1556
  for (var e = 1; e < arguments.length; e++) {
1557
1557
  var t = arguments[e];
1558
1558
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1559
1559
  }
1560
1560
  return n;
1561
- }, _extends$C.apply(null, arguments);
1561
+ }, _extends$B.apply(null, arguments);
1562
1562
  }
1563
- function _objectWithoutProperties$C(e, t) {
1563
+ function _objectWithoutProperties$B(e, t) {
1564
1564
  if (null == e) return {};
1565
- var o, r, i = _objectWithoutPropertiesLoose$C(e, t);
1565
+ var o, r, i = _objectWithoutPropertiesLoose$B(e, t);
1566
1566
  if (Object.getOwnPropertySymbols) {
1567
- var s = Object.getOwnPropertySymbols(e);
1568
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1567
+ var n = Object.getOwnPropertySymbols(e);
1568
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1569
1569
  }
1570
1570
  return i;
1571
1571
  }
1572
- function _objectWithoutPropertiesLoose$C(r, e) {
1572
+ function _objectWithoutPropertiesLoose$B(r, e) {
1573
1573
  if (null == r) return {};
1574
1574
  var t = {};
1575
1575
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1576
- if (e.includes(n)) continue;
1576
+ if (-1 !== e.indexOf(n)) continue;
1577
1577
  t[n] = r[n];
1578
1578
  }
1579
1579
  return t;
1580
1580
  }
1581
1581
  var Switch = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1582
- var id = _ref.id, name = _ref.name, onChange = _ref.onChange, checked = _ref.checked, defaultChecked = _ref.defaultChecked, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, props = _objectWithoutProperties$C(_ref, _excluded$C);
1582
+ var id = _ref.id, name = _ref.name, onChange = _ref.onChange, checked = _ref.checked, defaultChecked = _ref.defaultChecked, _ref$size = _ref.size, size = _ref$size === void 0 ? "medium" : _ref$size, props = _objectWithoutProperties$B(_ref, _excluded$B);
1583
1583
  var derivedName = useMemo(function() {
1584
1584
  return name || id;
1585
1585
  }, [name, id]);
@@ -1592,7 +1592,7 @@ var Switch = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1592
1592
  "data-switch": true,
1593
1593
  ref,
1594
1594
  className: "size-".concat(size)
1595
- }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$C({
1595
+ }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$B({
1596
1596
  as: "input",
1597
1597
  type: "checkbox",
1598
1598
  id,
@@ -1602,18 +1602,18 @@ var Switch = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1602
1602
  onChange: handleChange
1603
1603
  }, props)));
1604
1604
  });
1605
- var _excluded$B = ["id", "name", "options", "value", "defaultValue", "onChange", "InputComponent"], _excluded2$6 = ["id", "value", "label"];
1606
- function _extends$B() {
1607
- return _extends$B = Object.assign ? Object.assign.bind() : function(n) {
1605
+ var _excluded$A = ["id", "name", "options", "value", "defaultValue", "onChange", "InputComponent"], _excluded2$6 = ["id", "value", "label"];
1606
+ function _extends$A() {
1607
+ return _extends$A = Object.assign ? Object.assign.bind() : function(n) {
1608
1608
  for (var e = 1; e < arguments.length; e++) {
1609
1609
  var t = arguments[e];
1610
1610
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1611
1611
  }
1612
1612
  return n;
1613
- }, _extends$B.apply(null, arguments);
1613
+ }, _extends$A.apply(null, arguments);
1614
1614
  }
1615
1615
  function _toConsumableArray$5(r) {
1616
- return _arrayWithoutHoles$5(r) || _iterableToArray$5(r) || _unsupportedIterableToArray$e(r) || _nonIterableSpread$5();
1616
+ return _arrayWithoutHoles$5(r) || _iterableToArray$5(r) || _unsupportedIterableToArray$d(r) || _nonIterableSpread$5();
1617
1617
  }
1618
1618
  function _nonIterableSpread$5() {
1619
1619
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -1622,27 +1622,27 @@ function _iterableToArray$5(r) {
1622
1622
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
1623
1623
  }
1624
1624
  function _arrayWithoutHoles$5(r) {
1625
- if (Array.isArray(r)) return _arrayLikeToArray$e(r);
1625
+ if (Array.isArray(r)) return _arrayLikeToArray$d(r);
1626
1626
  }
1627
- function _slicedToArray$c(r, e) {
1628
- return _arrayWithHoles$c(r) || _iterableToArrayLimit$c(r, e) || _unsupportedIterableToArray$e(r, e) || _nonIterableRest$c();
1627
+ function _slicedToArray$b(r, e) {
1628
+ return _arrayWithHoles$b(r) || _iterableToArrayLimit$b(r, e) || _unsupportedIterableToArray$d(r, e) || _nonIterableRest$b();
1629
1629
  }
1630
- function _nonIterableRest$c() {
1630
+ function _nonIterableRest$b() {
1631
1631
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1632
1632
  }
1633
- function _unsupportedIterableToArray$e(r, a) {
1633
+ function _unsupportedIterableToArray$d(r, a) {
1634
1634
  if (r) {
1635
- if ("string" == typeof r) return _arrayLikeToArray$e(r, a);
1635
+ if ("string" == typeof r) return _arrayLikeToArray$d(r, a);
1636
1636
  var t = {}.toString.call(r).slice(8, -1);
1637
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0;
1637
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0;
1638
1638
  }
1639
1639
  }
1640
- function _arrayLikeToArray$e(r, a) {
1640
+ function _arrayLikeToArray$d(r, a) {
1641
1641
  (null == a || a > r.length) && (a = r.length);
1642
1642
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1643
1643
  return n;
1644
1644
  }
1645
- function _iterableToArrayLimit$c(r, l) {
1645
+ function _iterableToArrayLimit$b(r, l) {
1646
1646
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1647
1647
  if (null != t) {
1648
1648
  var e, n, i, u, a = [], f = true, o = false;
@@ -1661,33 +1661,33 @@ function _iterableToArrayLimit$c(r, l) {
1661
1661
  return a;
1662
1662
  }
1663
1663
  }
1664
- function _arrayWithHoles$c(r) {
1664
+ function _arrayWithHoles$b(r) {
1665
1665
  if (Array.isArray(r)) return r;
1666
1666
  }
1667
- function _objectWithoutProperties$B(e, t) {
1667
+ function _objectWithoutProperties$A(e, t) {
1668
1668
  if (null == e) return {};
1669
- var o, r, i = _objectWithoutPropertiesLoose$B(e, t);
1669
+ var o, r, i = _objectWithoutPropertiesLoose$A(e, t);
1670
1670
  if (Object.getOwnPropertySymbols) {
1671
- var s = Object.getOwnPropertySymbols(e);
1672
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1671
+ var n = Object.getOwnPropertySymbols(e);
1672
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1673
1673
  }
1674
1674
  return i;
1675
1675
  }
1676
- function _objectWithoutPropertiesLoose$B(r, e) {
1676
+ function _objectWithoutPropertiesLoose$A(r, e) {
1677
1677
  if (null == r) return {};
1678
1678
  var t = {};
1679
1679
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1680
- if (e.includes(n)) continue;
1680
+ if (-1 !== e.indexOf(n)) continue;
1681
1681
  t[n] = r[n];
1682
1682
  }
1683
1683
  return t;
1684
1684
  }
1685
1685
  function InputGroupOptions(_ref) {
1686
- var id = _ref.id, name = _ref.name, options = _ref.options, value = _ref.value, defaultValue = _ref.defaultValue, onChange = _ref.onChange, InputComponent = _ref.InputComponent, groupProps = _objectWithoutProperties$B(_ref, _excluded$B);
1686
+ var id = _ref.id, name = _ref.name, options = _ref.options, value = _ref.value, defaultValue = _ref.defaultValue, onChange = _ref.onChange, InputComponent = _ref.InputComponent, groupProps = _objectWithoutProperties$A(_ref, _excluded$A);
1687
1687
  var derivedName = useMemo(function() {
1688
1688
  return name || id;
1689
1689
  }, [name, id]);
1690
- var _React$useState = React.useState(value || defaultValue || []), _React$useState2 = _slicedToArray$c(_React$useState, 2), selectedValues = _React$useState2[0], setSelectedValues = _React$useState2[1];
1690
+ var _React$useState = React.useState(value || defaultValue || []), _React$useState2 = _slicedToArray$b(_React$useState, 2), selectedValues = _React$useState2[0], setSelectedValues = _React$useState2[1];
1691
1691
  React.useEffect(function() {
1692
1692
  if (value !== void 0) {
1693
1693
  setSelectedValues(value);
@@ -1707,17 +1707,17 @@ function InputGroupOptions(_ref) {
1707
1707
  }
1708
1708
  onChange === null || onChange === void 0 || onChange(newValues);
1709
1709
  };
1710
- return /* @__PURE__ */ React.createElement(Element, _extends$B({
1710
+ return /* @__PURE__ */ React.createElement(Element, _extends$A({
1711
1711
  as: "div",
1712
1712
  role: "group",
1713
1713
  "aria-label": derivedName
1714
1714
  }, groupProps), options.map(function(option, index) {
1715
- var optionId = option.id, optionValue = option.value, label = option.label, optionProps = _objectWithoutProperties$B(option, _excluded2$6);
1715
+ var optionId = option.id, optionValue = option.value, label = option.label, optionProps = _objectWithoutProperties$A(option, _excluded2$6);
1716
1716
  var finalId = optionId || "".concat(id, "-option-").concat(index);
1717
1717
  var isChecked = selectedValues.includes(optionValue);
1718
1718
  return /* @__PURE__ */ React.createElement(React.Fragment, {
1719
1719
  key: finalId
1720
- }, /* @__PURE__ */ React.createElement(InputComponent, _extends$B({}, optionProps, {
1720
+ }, /* @__PURE__ */ React.createElement(InputComponent, _extends$A({}, optionProps, {
1721
1721
  id: finalId,
1722
1722
  name: derivedName,
1723
1723
  value: optionValue,
@@ -1737,10 +1737,10 @@ var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
1737
1737
  if (props.equaliseWidth || props.equalizeWidth) {
1738
1738
  classNames.push("equalise-width");
1739
1739
  }
1740
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$B({
1740
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$A({
1741
1741
  "data-checkbox-group": true,
1742
1742
  as: function as(componentProps) {
1743
- return /* @__PURE__ */ React.createElement(InputGroupOptions, _extends$B({}, componentProps, {
1743
+ return /* @__PURE__ */ React.createElement(InputGroupOptions, _extends$A({}, componentProps, {
1744
1744
  InputComponent: Checkbox
1745
1745
  }));
1746
1746
  },
@@ -1756,10 +1756,10 @@ var SwitchGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
1756
1756
  if (props.equaliseWidth || props.equalizeWidth) {
1757
1757
  classNames.push("equalise-width");
1758
1758
  }
1759
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$B({
1759
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$A({
1760
1760
  "data-switch-group": true,
1761
1761
  as: function as(componentProps) {
1762
- return /* @__PURE__ */ React.createElement(InputGroupOptions, _extends$B({}, componentProps, {
1762
+ return /* @__PURE__ */ React.createElement(InputGroupOptions, _extends$A({}, componentProps, {
1763
1763
  InputComponent: Switch
1764
1764
  }));
1765
1765
  },
@@ -1767,18 +1767,18 @@ var SwitchGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
1767
1767
  ref
1768
1768
  }, props));
1769
1769
  });
1770
- var _excluded$A = ["aria-label", "aria-invalid", "accept", "allowMultipleFiles", "capture", "height", "onChange", "className", "instructionMainText", "instructionSubText"];
1771
- function _extends$A() {
1772
- return _extends$A = Object.assign ? Object.assign.bind() : function(n) {
1770
+ var _excluded$z = ["aria-label", "aria-invalid", "accept", "allowMultipleFiles", "capture", "height", "onChange", "className", "instructionMainText", "instructionSubText"];
1771
+ function _extends$z() {
1772
+ return _extends$z = Object.assign ? Object.assign.bind() : function(n) {
1773
1773
  for (var e = 1; e < arguments.length; e++) {
1774
1774
  var t = arguments[e];
1775
1775
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1776
1776
  }
1777
1777
  return n;
1778
- }, _extends$A.apply(null, arguments);
1778
+ }, _extends$z.apply(null, arguments);
1779
1779
  }
1780
1780
  function _toConsumableArray$4(r) {
1781
- return _arrayWithoutHoles$4(r) || _iterableToArray$4(r) || _unsupportedIterableToArray$d(r) || _nonIterableSpread$4();
1781
+ return _arrayWithoutHoles$4(r) || _iterableToArray$4(r) || _unsupportedIterableToArray$c(r) || _nonIterableSpread$4();
1782
1782
  }
1783
1783
  function _nonIterableSpread$4() {
1784
1784
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -1787,27 +1787,27 @@ function _iterableToArray$4(r) {
1787
1787
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
1788
1788
  }
1789
1789
  function _arrayWithoutHoles$4(r) {
1790
- if (Array.isArray(r)) return _arrayLikeToArray$d(r);
1790
+ if (Array.isArray(r)) return _arrayLikeToArray$c(r);
1791
1791
  }
1792
- function _slicedToArray$b(r, e) {
1793
- return _arrayWithHoles$b(r) || _iterableToArrayLimit$b(r, e) || _unsupportedIterableToArray$d(r, e) || _nonIterableRest$b();
1792
+ function _slicedToArray$a(r, e) {
1793
+ return _arrayWithHoles$a(r) || _iterableToArrayLimit$a(r, e) || _unsupportedIterableToArray$c(r, e) || _nonIterableRest$a();
1794
1794
  }
1795
- function _nonIterableRest$b() {
1795
+ function _nonIterableRest$a() {
1796
1796
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1797
1797
  }
1798
- function _unsupportedIterableToArray$d(r, a) {
1798
+ function _unsupportedIterableToArray$c(r, a) {
1799
1799
  if (r) {
1800
- if ("string" == typeof r) return _arrayLikeToArray$d(r, a);
1800
+ if ("string" == typeof r) return _arrayLikeToArray$c(r, a);
1801
1801
  var t = {}.toString.call(r).slice(8, -1);
1802
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0;
1802
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0;
1803
1803
  }
1804
1804
  }
1805
- function _arrayLikeToArray$d(r, a) {
1805
+ function _arrayLikeToArray$c(r, a) {
1806
1806
  (null == a || a > r.length) && (a = r.length);
1807
1807
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1808
1808
  return n;
1809
1809
  }
1810
- function _iterableToArrayLimit$b(r, l) {
1810
+ function _iterableToArrayLimit$a(r, l) {
1811
1811
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1812
1812
  if (null != t) {
1813
1813
  var e, n, i, u, a = [], f = true, o = false;
@@ -1826,31 +1826,31 @@ function _iterableToArrayLimit$b(r, l) {
1826
1826
  return a;
1827
1827
  }
1828
1828
  }
1829
- function _arrayWithHoles$b(r) {
1829
+ function _arrayWithHoles$a(r) {
1830
1830
  if (Array.isArray(r)) return r;
1831
1831
  }
1832
- function _objectWithoutProperties$A(e, t) {
1832
+ function _objectWithoutProperties$z(e, t) {
1833
1833
  if (null == e) return {};
1834
- var o, r, i = _objectWithoutPropertiesLoose$A(e, t);
1834
+ var o, r, i = _objectWithoutPropertiesLoose$z(e, t);
1835
1835
  if (Object.getOwnPropertySymbols) {
1836
- var s = Object.getOwnPropertySymbols(e);
1837
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1836
+ var n = Object.getOwnPropertySymbols(e);
1837
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1838
1838
  }
1839
1839
  return i;
1840
1840
  }
1841
- function _objectWithoutPropertiesLoose$A(r, e) {
1841
+ function _objectWithoutPropertiesLoose$z(r, e) {
1842
1842
  if (null == r) return {};
1843
1843
  var t = {};
1844
1844
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1845
- if (e.includes(n)) continue;
1845
+ if (-1 !== e.indexOf(n)) continue;
1846
1846
  t[n] = r[n];
1847
1847
  }
1848
1848
  return t;
1849
1849
  }
1850
1850
  var FileUpload = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1851
- var ariaLabel = _ref["aria-label"], ariaInvalid = _ref["aria-invalid"], accept = _ref.accept, _ref$allowMultipleFil = _ref.allowMultipleFiles, allowMultipleFiles = _ref$allowMultipleFil === void 0 ? false : _ref$allowMultipleFil, capture = _ref.capture, _ref$height = _ref.height, height = _ref$height === void 0 ? "120px" : _ref$height, onChange = _ref.onChange, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className, _ref$instructionMainT = _ref.instructionMainText, instructionMainText = _ref$instructionMainT === void 0 ? "Drag and drop or click to upload" : _ref$instructionMainT, _ref$instructionSubTe = _ref.instructionSubText, instructionSubText = _ref$instructionSubTe === void 0 ? "You can add multiple files" : _ref$instructionSubTe, props = _objectWithoutProperties$A(_ref, _excluded$A);
1852
- var _useState = useState([]), _useState2 = _slicedToArray$b(_useState, 2), files = _useState2[0], setFiles = _useState2[1];
1853
- var _useState3 = useState(false), _useState4 = _slicedToArray$b(_useState3, 2), isDragging = _useState4[0], setIsDragging = _useState4[1];
1851
+ var ariaLabel = _ref["aria-label"], ariaInvalid = _ref["aria-invalid"], accept = _ref.accept, _ref$allowMultipleFil = _ref.allowMultipleFiles, allowMultipleFiles = _ref$allowMultipleFil === void 0 ? false : _ref$allowMultipleFil, capture = _ref.capture, _ref$height = _ref.height, height = _ref$height === void 0 ? "120px" : _ref$height, onChange = _ref.onChange, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className, _ref$instructionMainT = _ref.instructionMainText, instructionMainText = _ref$instructionMainT === void 0 ? "Drag and drop or click to upload" : _ref$instructionMainT, _ref$instructionSubTe = _ref.instructionSubText, instructionSubText = _ref$instructionSubTe === void 0 ? "You can add multiple files" : _ref$instructionSubTe, props = _objectWithoutProperties$z(_ref, _excluded$z);
1852
+ var _useState = useState([]), _useState2 = _slicedToArray$a(_useState, 2), files = _useState2[0], setFiles = _useState2[1];
1853
+ var _useState3 = useState(false), _useState4 = _slicedToArray$a(_useState3, 2), isDragging = _useState4[0], setIsDragging = _useState4[1];
1854
1854
  var fileInputRef = useRef(null);
1855
1855
  var handleDragOver = function handleDragOver2(e) {
1856
1856
  e.preventDefault();
@@ -1898,7 +1898,7 @@ var FileUpload = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1898
1898
  var _fileInputRef$current;
1899
1899
  (_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 || _fileInputRef$current.click();
1900
1900
  };
1901
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$A({
1901
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$z({
1902
1902
  as: "div",
1903
1903
  "data-file-upload-area": true,
1904
1904
  ref,
@@ -1945,36 +1945,36 @@ var FileUpload = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1945
1945
  }, file.name);
1946
1946
  })));
1947
1947
  });
1948
- var _excluded$z = ["layout", "gutters", "retainLayoutOnTabletLandscape", "retainLayoutOnTabletPortrait", "retainLayoutOnMobile", "retainLayoutAlways", "groupLabel"];
1949
- function _extends$z() {
1950
- return _extends$z = Object.assign ? Object.assign.bind() : function(n) {
1948
+ var _excluded$y = ["layout", "gutters", "retainLayoutOnTabletLandscape", "retainLayoutOnTabletPortrait", "retainLayoutOnMobile", "retainLayoutAlways", "groupLabel"];
1949
+ function _extends$y() {
1950
+ return _extends$y = Object.assign ? Object.assign.bind() : function(n) {
1951
1951
  for (var e = 1; e < arguments.length; e++) {
1952
1952
  var t = arguments[e];
1953
1953
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1954
1954
  }
1955
1955
  return n;
1956
- }, _extends$z.apply(null, arguments);
1956
+ }, _extends$y.apply(null, arguments);
1957
1957
  }
1958
- function _objectWithoutProperties$z(e, t) {
1958
+ function _objectWithoutProperties$y(e, t) {
1959
1959
  if (null == e) return {};
1960
- var o, r, i = _objectWithoutPropertiesLoose$z(e, t);
1960
+ var o, r, i = _objectWithoutPropertiesLoose$y(e, t);
1961
1961
  if (Object.getOwnPropertySymbols) {
1962
- var s = Object.getOwnPropertySymbols(e);
1963
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1962
+ var n = Object.getOwnPropertySymbols(e);
1963
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1964
1964
  }
1965
1965
  return i;
1966
1966
  }
1967
- function _objectWithoutPropertiesLoose$z(r, e) {
1967
+ function _objectWithoutPropertiesLoose$y(r, e) {
1968
1968
  if (null == r) return {};
1969
1969
  var t = {};
1970
1970
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1971
- if (e.includes(n)) continue;
1971
+ if (-1 !== e.indexOf(n)) continue;
1972
1972
  t[n] = r[n];
1973
1973
  }
1974
1974
  return t;
1975
1975
  }
1976
1976
  var Row = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1977
- var _ref$layout = _ref.layout, layout = _ref$layout === void 0 ? "grid" : _ref$layout, _ref$gutters = _ref.gutters, gutters = _ref$gutters === void 0 ? "medium" : _ref$gutters, retainLayoutOnTabletLandscape = _ref.retainLayoutOnTabletLandscape, retainLayoutOnTabletPortrait = _ref.retainLayoutOnTabletPortrait, retainLayoutOnMobile = _ref.retainLayoutOnMobile, retainLayoutAlways = _ref.retainLayoutAlways, groupLabel = _ref.groupLabel, props = _objectWithoutProperties$z(_ref, _excluded$z);
1977
+ var _ref$layout = _ref.layout, layout = _ref$layout === void 0 ? "grid" : _ref$layout, _ref$gutters = _ref.gutters, gutters = _ref$gutters === void 0 ? "medium" : _ref$gutters, retainLayoutOnTabletLandscape = _ref.retainLayoutOnTabletLandscape, retainLayoutOnTabletPortrait = _ref.retainLayoutOnTabletPortrait, retainLayoutOnMobile = _ref.retainLayoutOnMobile, retainLayoutAlways = _ref.retainLayoutAlways, groupLabel = _ref.groupLabel, props = _objectWithoutProperties$y(_ref, _excluded$y);
1978
1978
  var classNames = [];
1979
1979
  if (layout) {
1980
1980
  classNames.push("layout-".concat(layout));
@@ -1994,7 +1994,7 @@ var Row = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
1994
1994
  if (retainLayoutAlways) {
1995
1995
  classNames.push("retain-layout-on-tablet-landscape retain-layout-on-tablet-portrait retain-layout-on-mobile");
1996
1996
  }
1997
- return /* @__PURE__ */ React.createElement(Element, _extends$z({
1997
+ return /* @__PURE__ */ React.createElement(Element, _extends$y({
1998
1998
  as: "div",
1999
1999
  "data-row": true,
2000
2000
  ref,
@@ -2004,36 +2004,36 @@ var Row = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2004
2004
  "aria-label": groupLabel
2005
2005
  }, props));
2006
2006
  });
2007
- var _excluded$y = ["desktopSpan", "mobileSpan", "tabletLandscapeSpan", "tabletPortraitSpan", "isHorizontal", "role"];
2008
- function _extends$y() {
2009
- return _extends$y = Object.assign ? Object.assign.bind() : function(n) {
2007
+ var _excluded$x = ["desktopSpan", "mobileSpan", "tabletLandscapeSpan", "tabletPortraitSpan", "isHorizontal", "role"];
2008
+ function _extends$x() {
2009
+ return _extends$x = Object.assign ? Object.assign.bind() : function(n) {
2010
2010
  for (var e = 1; e < arguments.length; e++) {
2011
2011
  var t = arguments[e];
2012
2012
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2013
2013
  }
2014
2014
  return n;
2015
- }, _extends$y.apply(null, arguments);
2015
+ }, _extends$x.apply(null, arguments);
2016
2016
  }
2017
- function _objectWithoutProperties$y(e, t) {
2017
+ function _objectWithoutProperties$x(e, t) {
2018
2018
  if (null == e) return {};
2019
- var o, r, i = _objectWithoutPropertiesLoose$y(e, t);
2019
+ var o, r, i = _objectWithoutPropertiesLoose$x(e, t);
2020
2020
  if (Object.getOwnPropertySymbols) {
2021
- var s = Object.getOwnPropertySymbols(e);
2022
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2021
+ var n = Object.getOwnPropertySymbols(e);
2022
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2023
2023
  }
2024
2024
  return i;
2025
2025
  }
2026
- function _objectWithoutPropertiesLoose$y(r, e) {
2026
+ function _objectWithoutPropertiesLoose$x(r, e) {
2027
2027
  if (null == r) return {};
2028
2028
  var t = {};
2029
2029
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2030
- if (e.includes(n)) continue;
2030
+ if (-1 !== e.indexOf(n)) continue;
2031
2031
  t[n] = r[n];
2032
2032
  }
2033
2033
  return t;
2034
2034
  }
2035
2035
  var Portion = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2036
- var desktopSpan = _ref.desktopSpan, mobileSpan = _ref.mobileSpan, tabletLandscapeSpan = _ref.tabletLandscapeSpan, tabletPortraitSpan = _ref.tabletPortraitSpan, isHorizontal = _ref.isHorizontal, role = _ref.role, props = _objectWithoutProperties$y(_ref, _excluded$y);
2036
+ var desktopSpan = _ref.desktopSpan, mobileSpan = _ref.mobileSpan, tabletLandscapeSpan = _ref.tabletLandscapeSpan, tabletPortraitSpan = _ref.tabletPortraitSpan, isHorizontal = _ref.isHorizontal, role = _ref.role, props = _objectWithoutProperties$x(_ref, _excluded$x);
2037
2037
  var classNames = [];
2038
2038
  if (desktopSpan || tabletLandscapeSpan || tabletPortraitSpan || mobileSpan) {
2039
2039
  if (desktopSpan) {
@@ -2054,7 +2054,7 @@ var Portion = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2054
2054
  if (isHorizontal) {
2055
2055
  classNames.push("horizontal");
2056
2056
  }
2057
- return /* @__PURE__ */ React.createElement(Element, _extends$y({
2057
+ return /* @__PURE__ */ React.createElement(Element, _extends$x({
2058
2058
  as: "div",
2059
2059
  "data-portion": true,
2060
2060
  ref,
@@ -2062,36 +2062,36 @@ var Portion = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2062
2062
  role
2063
2063
  }, props));
2064
2064
  });
2065
- var _excluded$x = ["aria-label", "aria-invalid", "innerIconLeft", "innerIconRight", "innerTextLeft", "innerTextRight", "onChange"];
2066
- function _extends$x() {
2067
- return _extends$x = Object.assign ? Object.assign.bind() : function(n) {
2065
+ var _excluded$w = ["aria-label", "aria-invalid", "innerIconLeft", "innerIconRight", "innerTextLeft", "innerTextRight", "onChange"];
2066
+ function _extends$w() {
2067
+ return _extends$w = Object.assign ? Object.assign.bind() : function(n) {
2068
2068
  for (var e = 1; e < arguments.length; e++) {
2069
2069
  var t = arguments[e];
2070
2070
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2071
2071
  }
2072
2072
  return n;
2073
- }, _extends$x.apply(null, arguments);
2073
+ }, _extends$w.apply(null, arguments);
2074
2074
  }
2075
- function _objectWithoutProperties$x(e, t) {
2075
+ function _objectWithoutProperties$w(e, t) {
2076
2076
  if (null == e) return {};
2077
- var o, r, i = _objectWithoutPropertiesLoose$x(e, t);
2077
+ var o, r, i = _objectWithoutPropertiesLoose$w(e, t);
2078
2078
  if (Object.getOwnPropertySymbols) {
2079
- var s = Object.getOwnPropertySymbols(e);
2080
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2079
+ var n = Object.getOwnPropertySymbols(e);
2080
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2081
2081
  }
2082
2082
  return i;
2083
2083
  }
2084
- function _objectWithoutPropertiesLoose$x(r, e) {
2084
+ function _objectWithoutPropertiesLoose$w(r, e) {
2085
2085
  if (null == r) return {};
2086
2086
  var t = {};
2087
2087
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2088
- if (e.includes(n)) continue;
2088
+ if (-1 !== e.indexOf(n)) continue;
2089
2089
  t[n] = r[n];
2090
2090
  }
2091
2091
  return t;
2092
2092
  }
2093
2093
  var InputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2094
- var ariaLabel = _ref["aria-label"], ariaInvalid = _ref["aria-invalid"], innerIconLeft = _ref.innerIconLeft, innerIconRight = _ref.innerIconRight, innerTextLeft = _ref.innerTextLeft, innerTextRight = _ref.innerTextRight, onChange = _ref.onChange, props = _objectWithoutProperties$x(_ref, _excluded$x);
2094
+ var ariaLabel = _ref["aria-label"], ariaInvalid = _ref["aria-invalid"], innerIconLeft = _ref.innerIconLeft, innerIconRight = _ref.innerIconRight, innerTextLeft = _ref.innerTextLeft, innerTextRight = _ref.innerTextRight, onChange = _ref.onChange, props = _objectWithoutProperties$w(_ref, _excluded$w);
2095
2095
  var leftElementRef = useRef(null);
2096
2096
  var rightElementRef = useRef(null);
2097
2097
  var handleChange = function handleChange2(valueOrEvent) {
@@ -2133,7 +2133,7 @@ var InputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2133
2133
  };
2134
2134
  var hasLeftElement = Boolean(innerIconLeft || innerTextLeft);
2135
2135
  var hasRightElement = Boolean(innerIconRight || innerTextRight);
2136
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$x({
2136
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$w({
2137
2137
  as: "input",
2138
2138
  "data-input-field": true,
2139
2139
  ref,
@@ -2148,36 +2148,36 @@ var InputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2148
2148
  "aria-hidden": "true"
2149
2149
  }, renderSideElement(innerIconLeft || innerTextLeft, "left", leftElementRef), renderSideElement(innerIconRight || innerTextRight, "right", rightElementRef))));
2150
2150
  });
2151
- var _excluded$w = ["id", "name", "value", "onChange", "checked"];
2152
- function _extends$w() {
2153
- return _extends$w = Object.assign ? Object.assign.bind() : function(n) {
2151
+ var _excluded$v = ["id", "name", "value", "onChange", "checked"];
2152
+ function _extends$v() {
2153
+ return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
2154
2154
  for (var e = 1; e < arguments.length; e++) {
2155
2155
  var t = arguments[e];
2156
2156
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2157
2157
  }
2158
2158
  return n;
2159
- }, _extends$w.apply(null, arguments);
2159
+ }, _extends$v.apply(null, arguments);
2160
2160
  }
2161
- function _objectWithoutProperties$w(e, t) {
2161
+ function _objectWithoutProperties$v(e, t) {
2162
2162
  if (null == e) return {};
2163
- var o, r, i = _objectWithoutPropertiesLoose$w(e, t);
2163
+ var o, r, i = _objectWithoutPropertiesLoose$v(e, t);
2164
2164
  if (Object.getOwnPropertySymbols) {
2165
- var s = Object.getOwnPropertySymbols(e);
2166
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2165
+ var n = Object.getOwnPropertySymbols(e);
2166
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2167
2167
  }
2168
2168
  return i;
2169
2169
  }
2170
- function _objectWithoutPropertiesLoose$w(r, e) {
2170
+ function _objectWithoutPropertiesLoose$v(r, e) {
2171
2171
  if (null == r) return {};
2172
2172
  var t = {};
2173
2173
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2174
- if (e.includes(n)) continue;
2174
+ if (-1 !== e.indexOf(n)) continue;
2175
2175
  t[n] = r[n];
2176
2176
  }
2177
2177
  return t;
2178
2178
  }
2179
2179
  var RadioButton = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2180
- var id = _ref.id, name = _ref.name, value = _ref.value, onChange = _ref.onChange, checked = _ref.checked, props = _objectWithoutProperties$w(_ref, _excluded$w);
2180
+ var id = _ref.id, name = _ref.name, value = _ref.value, onChange = _ref.onChange, checked = _ref.checked, props = _objectWithoutProperties$v(_ref, _excluded$v);
2181
2181
  var derivedName = useMemo(function() {
2182
2182
  return name || id;
2183
2183
  }, [name, id]);
@@ -2193,7 +2193,7 @@ var RadioButton = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2193
2193
  role: "radio",
2194
2194
  "aria-checked": checked,
2195
2195
  "aria-disabled": props.disabled
2196
- }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$w({
2196
+ }, /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$v({
2197
2197
  as: "input",
2198
2198
  type: "radio",
2199
2199
  id,
@@ -2203,30 +2203,30 @@ var RadioButton = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2203
2203
  onChange: handleChange
2204
2204
  }, props)));
2205
2205
  });
2206
- var _excluded$v = ["id", "name", "options", "value", "defaultValue", "onChange"], _excluded2$5 = ["id", "value", "label"];
2207
- function _extends$v() {
2208
- return _extends$v = Object.assign ? Object.assign.bind() : function(n) {
2206
+ var _excluded$u = ["id", "name", "options", "value", "defaultValue", "onChange"], _excluded2$5 = ["id", "value", "label"];
2207
+ function _extends$u() {
2208
+ return _extends$u = Object.assign ? Object.assign.bind() : function(n) {
2209
2209
  for (var e = 1; e < arguments.length; e++) {
2210
2210
  var t = arguments[e];
2211
2211
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2212
2212
  }
2213
2213
  return n;
2214
- }, _extends$v.apply(null, arguments);
2214
+ }, _extends$u.apply(null, arguments);
2215
2215
  }
2216
- function _objectWithoutProperties$v(e, t) {
2216
+ function _objectWithoutProperties$u(e, t) {
2217
2217
  if (null == e) return {};
2218
- var o, r, i = _objectWithoutPropertiesLoose$v(e, t);
2218
+ var o, r, i = _objectWithoutPropertiesLoose$u(e, t);
2219
2219
  if (Object.getOwnPropertySymbols) {
2220
- var s = Object.getOwnPropertySymbols(e);
2221
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2220
+ var n = Object.getOwnPropertySymbols(e);
2221
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2222
2222
  }
2223
2223
  return i;
2224
2224
  }
2225
- function _objectWithoutPropertiesLoose$v(r, e) {
2225
+ function _objectWithoutPropertiesLoose$u(r, e) {
2226
2226
  if (null == r) return {};
2227
2227
  var t = {};
2228
2228
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2229
- if (e.includes(n)) continue;
2229
+ if (-1 !== e.indexOf(n)) continue;
2230
2230
  t[n] = r[n];
2231
2231
  }
2232
2232
  return t;
@@ -2234,7 +2234,7 @@ function _objectWithoutPropertiesLoose$v(r, e) {
2234
2234
  var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2235
2235
  var RadioGroupOptions = function RadioGroupOptions2(_ref) {
2236
2236
  var id = _ref.id, name = _ref.name, options = _ref.options, value = _ref.value, defaultValue = _ref.defaultValue, onChange = _ref.onChange;
2237
- _objectWithoutProperties$v(_ref, _excluded$v);
2237
+ _objectWithoutProperties$u(_ref, _excluded$u);
2238
2238
  var derivedName = React.useMemo(function() {
2239
2239
  return name || id;
2240
2240
  }, [name, id]);
@@ -2244,7 +2244,7 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2244
2244
  }
2245
2245
  };
2246
2246
  return /* @__PURE__ */ React.createElement(React.Fragment, null, options.map(function(option, index) {
2247
- var optionId = option.id, optionValue = option.value, label = option.label, optionProps = _objectWithoutProperties$v(option, _excluded2$5);
2247
+ var optionId = option.id, optionValue = option.value, label = option.label, optionProps = _objectWithoutProperties$u(option, _excluded2$5);
2248
2248
  var finalId = optionId || "".concat(id, "-option-").concat(index);
2249
2249
  var isChecked = value ? value === optionValue : defaultValue === optionValue;
2250
2250
  return /* @__PURE__ */ React.createElement(Div, {
@@ -2253,7 +2253,7 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2253
2253
  role: "radio",
2254
2254
  "aria-checked": isChecked,
2255
2255
  classNames
2256
- }, /* @__PURE__ */ React.createElement("input", _extends$v({
2256
+ }, /* @__PURE__ */ React.createElement("input", _extends$u({
2257
2257
  type: "radio",
2258
2258
  id: finalId,
2259
2259
  name: derivedName,
@@ -2272,7 +2272,7 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2272
2272
  if (props.equaliseWidth || props.equalizeWidth) {
2273
2273
  classNames.push("equalise-width");
2274
2274
  }
2275
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$v({
2275
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$u({
2276
2276
  "data-radio-group": true,
2277
2277
  as: RadioGroupOptions,
2278
2278
  ref
@@ -2280,36 +2280,36 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2280
2280
  classNames
2281
2281
  }));
2282
2282
  });
2283
- var _excluded$u = ["id", "name", "options", "className", "onChange"];
2284
- function _extends$u() {
2285
- return _extends$u = Object.assign ? Object.assign.bind() : function(n) {
2283
+ var _excluded$t = ["id", "name", "options", "className", "onChange"];
2284
+ function _extends$t() {
2285
+ return _extends$t = Object.assign ? Object.assign.bind() : function(n) {
2286
2286
  for (var e = 1; e < arguments.length; e++) {
2287
2287
  var t = arguments[e];
2288
2288
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2289
2289
  }
2290
2290
  return n;
2291
- }, _extends$u.apply(null, arguments);
2291
+ }, _extends$t.apply(null, arguments);
2292
2292
  }
2293
- function _objectWithoutProperties$u(e, t) {
2293
+ function _objectWithoutProperties$t(e, t) {
2294
2294
  if (null == e) return {};
2295
- var o, r, i = _objectWithoutPropertiesLoose$u(e, t);
2295
+ var o, r, i = _objectWithoutPropertiesLoose$t(e, t);
2296
2296
  if (Object.getOwnPropertySymbols) {
2297
- var s = Object.getOwnPropertySymbols(e);
2298
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2297
+ var n = Object.getOwnPropertySymbols(e);
2298
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2299
2299
  }
2300
2300
  return i;
2301
2301
  }
2302
- function _objectWithoutPropertiesLoose$u(r, e) {
2302
+ function _objectWithoutPropertiesLoose$t(r, e) {
2303
2303
  if (null == r) return {};
2304
2304
  var t = {};
2305
2305
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2306
- if (e.includes(n)) continue;
2306
+ if (-1 !== e.indexOf(n)) continue;
2307
2307
  t[n] = r[n];
2308
2308
  }
2309
2309
  return t;
2310
2310
  }
2311
2311
  var SelectWithOptions = function SelectWithOptions2(_ref) {
2312
- var id = _ref.id, name = _ref.name, options = _ref.options, className = _ref.className, onChange = _ref.onChange, props = _objectWithoutProperties$u(_ref, _excluded$u);
2312
+ var id = _ref.id, name = _ref.name, options = _ref.options, className = _ref.className, onChange = _ref.onChange, props = _objectWithoutProperties$t(_ref, _excluded$t);
2313
2313
  var derivedName = useMemo(function() {
2314
2314
  return name || id;
2315
2315
  }, [name, id]);
@@ -2337,7 +2337,7 @@ var SelectWithOptions = function SelectWithOptions2(_ref) {
2337
2337
  "data-select": true,
2338
2338
  className,
2339
2339
  disabled: props.disabled
2340
- }, /* @__PURE__ */ React.createElement(Element, _extends$u({
2340
+ }, /* @__PURE__ */ React.createElement(Element, _extends$t({
2341
2341
  as: "select",
2342
2342
  id,
2343
2343
  name: derivedName,
@@ -2349,35 +2349,35 @@ var SelectWithOptions = function SelectWithOptions2(_ref) {
2349
2349
  })));
2350
2350
  };
2351
2351
  var Select = /* @__PURE__ */ React.forwardRef(function(props, ref) {
2352
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$u({
2352
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$t({
2353
2353
  as: SelectWithOptions,
2354
2354
  ref
2355
2355
  }, props));
2356
2356
  });
2357
- var _excluded$t = ["onChange", "value", "characterLimit", "wordLimit", "helpText"];
2358
- function _extends$t() {
2359
- return _extends$t = Object.assign ? Object.assign.bind() : function(n) {
2357
+ var _excluded$s = ["onChange", "value", "characterLimit", "wordLimit", "helpText"];
2358
+ function _extends$s() {
2359
+ return _extends$s = Object.assign ? Object.assign.bind() : function(n) {
2360
2360
  for (var e = 1; e < arguments.length; e++) {
2361
2361
  var t = arguments[e];
2362
2362
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2363
2363
  }
2364
2364
  return n;
2365
- }, _extends$t.apply(null, arguments);
2365
+ }, _extends$s.apply(null, arguments);
2366
2366
  }
2367
- function _objectWithoutProperties$t(e, t) {
2367
+ function _objectWithoutProperties$s(e, t) {
2368
2368
  if (null == e) return {};
2369
- var o, r, i = _objectWithoutPropertiesLoose$t(e, t);
2369
+ var o, r, i = _objectWithoutPropertiesLoose$s(e, t);
2370
2370
  if (Object.getOwnPropertySymbols) {
2371
- var s = Object.getOwnPropertySymbols(e);
2372
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2371
+ var n = Object.getOwnPropertySymbols(e);
2372
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2373
2373
  }
2374
2374
  return i;
2375
2375
  }
2376
- function _objectWithoutPropertiesLoose$t(r, e) {
2376
+ function _objectWithoutPropertiesLoose$s(r, e) {
2377
2377
  if (null == r) return {};
2378
2378
  var t = {};
2379
2379
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2380
- if (e.includes(n)) continue;
2380
+ if (-1 !== e.indexOf(n)) continue;
2381
2381
  t[n] = r[n];
2382
2382
  }
2383
2383
  return t;
@@ -2391,7 +2391,7 @@ var pluralise = function pluralise2(count, singular, plural) {
2391
2391
  return Math.abs(count) === 1 ? singular : plural;
2392
2392
  };
2393
2393
  var TextArea = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2394
- var onChange = _ref.onChange, _ref$value = _ref.value, value = _ref$value === void 0 ? "" : _ref$value, characterLimit = _ref.characterLimit, wordLimit = _ref.wordLimit, helpText = _ref.helpText, props = _objectWithoutProperties$t(_ref, _excluded$t);
2394
+ var onChange = _ref.onChange, _ref$value = _ref.value, value = _ref$value === void 0 ? "" : _ref$value, characterLimit = _ref.characterLimit, wordLimit = _ref.wordLimit, helpText = _ref.helpText, props = _objectWithoutProperties$s(_ref, _excluded$s);
2395
2395
  var textareaRef = useRef(null);
2396
2396
  var handleChange = function handleChange2(newValue) {
2397
2397
  onChange === null || onChange === void 0 || onChange(newValue);
@@ -2437,7 +2437,7 @@ var TextArea = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2437
2437
  ref.current = element;
2438
2438
  }
2439
2439
  };
2440
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$t({
2440
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$s({
2441
2441
  as: "textarea",
2442
2442
  "data-textarea": true,
2443
2443
  ref: setRefs,
@@ -2446,30 +2446,30 @@ var TextArea = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2446
2446
  helpText: constructHelpText()
2447
2447
  }, props));
2448
2448
  });
2449
- var _excluded$s = ["as", "name"], _excluded2$4 = ["desktopSpan", "tabletLandscapeSpan", "tabletPortraitSpan", "mobileSpan", "isHorizontal"];
2450
- function _extends$s() {
2451
- return _extends$s = Object.assign ? Object.assign.bind() : function(n) {
2449
+ var _excluded$r = ["as", "name"], _excluded2$4 = ["desktopSpan", "tabletLandscapeSpan", "tabletPortraitSpan", "mobileSpan", "isHorizontal"];
2450
+ function _extends$r() {
2451
+ return _extends$r = Object.assign ? Object.assign.bind() : function(n) {
2452
2452
  for (var e = 1; e < arguments.length; e++) {
2453
2453
  var t = arguments[e];
2454
2454
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2455
2455
  }
2456
2456
  return n;
2457
- }, _extends$s.apply(null, arguments);
2457
+ }, _extends$r.apply(null, arguments);
2458
2458
  }
2459
- function _objectWithoutProperties$s(e, t) {
2459
+ function _objectWithoutProperties$r(e, t) {
2460
2460
  if (null == e) return {};
2461
- var o, r, i = _objectWithoutPropertiesLoose$s(e, t);
2461
+ var o, r, i = _objectWithoutPropertiesLoose$r(e, t);
2462
2462
  if (Object.getOwnPropertySymbols) {
2463
- var s = Object.getOwnPropertySymbols(e);
2464
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2463
+ var n = Object.getOwnPropertySymbols(e);
2464
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2465
2465
  }
2466
2466
  return i;
2467
2467
  }
2468
- function _objectWithoutPropertiesLoose$s(r, e) {
2468
+ function _objectWithoutPropertiesLoose$r(r, e) {
2469
2469
  if (null == r) return {};
2470
2470
  var t = {};
2471
2471
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2472
- if (e.includes(n)) continue;
2472
+ if (-1 !== e.indexOf(n)) continue;
2473
2473
  t[n] = r[n];
2474
2474
  }
2475
2475
  return t;
@@ -2487,12 +2487,12 @@ var FormElements = {
2487
2487
  Empty: "div"
2488
2488
  };
2489
2489
  var getFormItem = function getFormItem2(formField, onFieldChange) {
2490
- var elementName = formField.as, name = formField.name, formFieldProps = _objectWithoutProperties$s(formField, _excluded$s);
2490
+ var elementName = formField.as, name = formField.name, formFieldProps = _objectWithoutProperties$r(formField, _excluded$r);
2491
2491
  var handleChange = function handleChange2(value) {
2492
2492
  onFieldChange(name, value);
2493
2493
  };
2494
2494
  var ElementComponent = FormElements[elementName] || InputField;
2495
- return /* @__PURE__ */ React.createElement(Element, _extends$s({
2495
+ return /* @__PURE__ */ React.createElement(Element, _extends$r({
2496
2496
  as: ElementComponent
2497
2497
  }, formFieldProps, {
2498
2498
  name,
@@ -2502,7 +2502,7 @@ var getFormItem = function getFormItem2(formField, onFieldChange) {
2502
2502
  };
2503
2503
  var generateFormThroughConfig = function generateFormThroughConfig2(fields, onFieldChange, spacing) {
2504
2504
  var formChildren = fields.map(function(field, index) {
2505
- var desktopSpan = field.desktopSpan, tabletLandscapeSpan = field.tabletLandscapeSpan, tabletPortraitSpan = field.tabletPortraitSpan, mobileSpan = field.mobileSpan, isHorizontal = field.isHorizontal, formField = _objectWithoutProperties$s(field, _excluded2$4);
2505
+ var desktopSpan = field.desktopSpan, tabletLandscapeSpan = field.tabletLandscapeSpan, tabletPortraitSpan = field.tabletPortraitSpan, mobileSpan = field.mobileSpan, isHorizontal = field.isHorizontal, formField = _objectWithoutProperties$r(field, _excluded2$4);
2506
2506
  var portionProps = {
2507
2507
  desktopSpan,
2508
2508
  tabletLandscapeSpan,
@@ -2510,7 +2510,7 @@ var generateFormThroughConfig = function generateFormThroughConfig2(fields, onFi
2510
2510
  mobileSpan,
2511
2511
  isHorizontal
2512
2512
  };
2513
- return /* @__PURE__ */ React.createElement(Portion, _extends$s({}, portionProps, {
2513
+ return /* @__PURE__ */ React.createElement(Portion, _extends$r({}, portionProps, {
2514
2514
  key: "".concat(field.name, "-").concat(index)
2515
2515
  }), getFormItem(formField, onFieldChange));
2516
2516
  });
@@ -2518,72 +2518,72 @@ var generateFormThroughConfig = function generateFormThroughConfig2(fields, onFi
2518
2518
  gutters: spacing
2519
2519
  }, formChildren);
2520
2520
  };
2521
- function _typeof$5(o) {
2521
+ function _typeof$4(o) {
2522
2522
  "@babel/helpers - typeof";
2523
- return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
2523
+ return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
2524
2524
  return typeof o2;
2525
2525
  } : function(o2) {
2526
2526
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
2527
- }, _typeof$5(o);
2527
+ }, _typeof$4(o);
2528
2528
  }
2529
- var _excluded$r = ["spacing", "fields", "onFieldsChange", "children", "errorText"];
2530
- function _extends$r() {
2531
- return _extends$r = Object.assign ? Object.assign.bind() : function(n) {
2529
+ var _excluded$q = ["spacing", "fields", "onFieldsChange", "children", "errorText"];
2530
+ function _extends$q() {
2531
+ return _extends$q = Object.assign ? Object.assign.bind() : function(n) {
2532
2532
  for (var e = 1; e < arguments.length; e++) {
2533
2533
  var t = arguments[e];
2534
2534
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2535
2535
  }
2536
2536
  return n;
2537
- }, _extends$r.apply(null, arguments);
2537
+ }, _extends$q.apply(null, arguments);
2538
2538
  }
2539
- function _defineProperty$4(e, r, t) {
2540
- return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
2539
+ function _defineProperty$3(e, r, t) {
2540
+ return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
2541
2541
  }
2542
- function _toPropertyKey$4(t) {
2543
- var i = _toPrimitive$4(t, "string");
2544
- return "symbol" == _typeof$5(i) ? i : i + "";
2542
+ function _toPropertyKey$3(t) {
2543
+ var i = _toPrimitive$3(t, "string");
2544
+ return "symbol" == _typeof$4(i) ? i : i + "";
2545
2545
  }
2546
- function _toPrimitive$4(t, r) {
2547
- if ("object" != _typeof$5(t) || !t) return t;
2546
+ function _toPrimitive$3(t, r) {
2547
+ if ("object" != _typeof$4(t) || !t) return t;
2548
2548
  var e = t[Symbol.toPrimitive];
2549
2549
  if (void 0 !== e) {
2550
2550
  var i = e.call(t, r || "default");
2551
- if ("object" != _typeof$5(i)) return i;
2551
+ if ("object" != _typeof$4(i)) return i;
2552
2552
  throw new TypeError("@@toPrimitive must return a primitive value.");
2553
2553
  }
2554
2554
  return ("string" === r ? String : Number)(t);
2555
2555
  }
2556
- function _objectWithoutProperties$r(e, t) {
2556
+ function _objectWithoutProperties$q(e, t) {
2557
2557
  if (null == e) return {};
2558
- var o, r, i = _objectWithoutPropertiesLoose$r(e, t);
2558
+ var o, r, i = _objectWithoutPropertiesLoose$q(e, t);
2559
2559
  if (Object.getOwnPropertySymbols) {
2560
- var s = Object.getOwnPropertySymbols(e);
2561
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2560
+ var n = Object.getOwnPropertySymbols(e);
2561
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2562
2562
  }
2563
2563
  return i;
2564
2564
  }
2565
- function _objectWithoutPropertiesLoose$r(r, e) {
2565
+ function _objectWithoutPropertiesLoose$q(r, e) {
2566
2566
  if (null == r) return {};
2567
2567
  var t = {};
2568
2568
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2569
- if (e.includes(n)) continue;
2569
+ if (-1 !== e.indexOf(n)) continue;
2570
2570
  t[n] = r[n];
2571
2571
  }
2572
2572
  return t;
2573
2573
  }
2574
2574
  var Form = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2575
- var _ref$spacing = _ref.spacing, spacing = _ref$spacing === void 0 ? "small" : _ref$spacing, fields = _ref.fields, onFieldsChange = _ref.onFieldsChange, children = _ref.children, errorText = _ref.errorText, props = _objectWithoutProperties$r(_ref, _excluded$r);
2575
+ var _ref$spacing = _ref.spacing, spacing = _ref$spacing === void 0 ? "small" : _ref$spacing, fields = _ref.fields, onFieldsChange = _ref.onFieldsChange, children = _ref.children, errorText = _ref.errorText, props = _objectWithoutProperties$q(_ref, _excluded$q);
2576
2576
  var classNames = [];
2577
2577
  if (spacing) {
2578
2578
  classNames.push("spacing-".concat(spacing));
2579
2579
  }
2580
2580
  var handleFieldChange = function handleFieldChange2(fieldName, value) {
2581
2581
  if (onFieldsChange) {
2582
- onFieldsChange(_defineProperty$4({}, fieldName, value));
2582
+ onFieldsChange(_defineProperty$3({}, fieldName, value));
2583
2583
  }
2584
2584
  };
2585
2585
  var formContent = fields !== null && fields !== void 0 && fields.length ? generateFormThroughConfig(fields, handleFieldChange, spacing) : children;
2586
- return /* @__PURE__ */ React.createElement(Element, _extends$r({
2586
+ return /* @__PURE__ */ React.createElement(Element, _extends$q({
2587
2587
  as: "form",
2588
2588
  "data-form": true,
2589
2589
  ref,
@@ -2592,36 +2592,36 @@ var Form = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2592
2592
  kind: "error"
2593
2593
  }, errorText));
2594
2594
  });
2595
- var _excluded$q = ["isJoint", "equalWidthForChildren", "retainLayout", "children", "legend", "id"];
2596
- function _extends$q() {
2597
- return _extends$q = Object.assign ? Object.assign.bind() : function(n) {
2595
+ var _excluded$p = ["isJoint", "equalWidthForChildren", "retainLayout", "children", "legend", "id"];
2596
+ function _extends$p() {
2597
+ return _extends$p = Object.assign ? Object.assign.bind() : function(n) {
2598
2598
  for (var e = 1; e < arguments.length; e++) {
2599
2599
  var t = arguments[e];
2600
2600
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2601
2601
  }
2602
2602
  return n;
2603
- }, _extends$q.apply(null, arguments);
2603
+ }, _extends$p.apply(null, arguments);
2604
2604
  }
2605
- function _objectWithoutProperties$q(e, t) {
2605
+ function _objectWithoutProperties$p(e, t) {
2606
2606
  if (null == e) return {};
2607
- var o, r, i = _objectWithoutPropertiesLoose$q(e, t);
2607
+ var o, r, i = _objectWithoutPropertiesLoose$p(e, t);
2608
2608
  if (Object.getOwnPropertySymbols) {
2609
- var s = Object.getOwnPropertySymbols(e);
2610
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2609
+ var n = Object.getOwnPropertySymbols(e);
2610
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2611
2611
  }
2612
2612
  return i;
2613
2613
  }
2614
- function _objectWithoutPropertiesLoose$q(r, e) {
2614
+ function _objectWithoutPropertiesLoose$p(r, e) {
2615
2615
  if (null == r) return {};
2616
2616
  var t = {};
2617
2617
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2618
- if (e.includes(n)) continue;
2618
+ if (-1 !== e.indexOf(n)) continue;
2619
2619
  t[n] = r[n];
2620
2620
  }
2621
2621
  return t;
2622
2622
  }
2623
2623
  var FormItemGroup = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2624
- var isJoint = _ref.isJoint, equalWidthForChildren = _ref.equalWidthForChildren, retainLayout = _ref.retainLayout, children = _ref.children, legend = _ref.legend, id = _ref.id, props = _objectWithoutProperties$q(_ref, _excluded$q);
2624
+ var isJoint = _ref.isJoint, equalWidthForChildren = _ref.equalWidthForChildren, retainLayout = _ref.retainLayout, children = _ref.children, legend = _ref.legend, id = _ref.id, props = _objectWithoutProperties$p(_ref, _excluded$p);
2625
2625
  var groupId = id || "form-group-".concat(Math.random().toString(36).substring(2, 9));
2626
2626
  var classNames = [];
2627
2627
  if (isJoint) {
@@ -2633,7 +2633,7 @@ var FormItemGroup = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
2633
2633
  if (retainLayout) {
2634
2634
  classNames.push("retain-layout");
2635
2635
  }
2636
- return /* @__PURE__ */ React.createElement(Element, _extends$q({
2636
+ return /* @__PURE__ */ React.createElement(Element, _extends$p({
2637
2637
  as: "div",
2638
2638
  "data-form-item-group": true,
2639
2639
  ref,
@@ -2726,26 +2726,26 @@ var searchOptions = function searchOptions2(options, searchTerm) {
2726
2726
  });
2727
2727
  return matchedOptions;
2728
2728
  };
2729
- var _excluded$p = ["options", "label", "placeholder", "id", "defaultValue", "onChange", "disabled", "badgeBgColour", "badgeBgColor", "badgeTextColour", "badgeTextColor", "selectionLimit", "allowMultiSelect", "allowCustomEntries", "isLoading", "value", "isFullWidth", "className"];
2730
- function _typeof$4(o) {
2729
+ var _excluded$o = ["options", "label", "placeholder", "id", "defaultValue", "onChange", "disabled", "badgeBgColour", "badgeBgColor", "badgeTextColour", "badgeTextColor", "selectionLimit", "allowMultiSelect", "allowCustomEntries", "isLoading", "value", "isFullWidth", "className"];
2730
+ function _typeof$3(o) {
2731
2731
  "@babel/helpers - typeof";
2732
- return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
2732
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
2733
2733
  return typeof o2;
2734
2734
  } : function(o2) {
2735
2735
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
2736
- }, _typeof$4(o);
2736
+ }, _typeof$3(o);
2737
2737
  }
2738
- function _extends$p() {
2739
- return _extends$p = Object.assign ? Object.assign.bind() : function(n) {
2738
+ function _extends$o() {
2739
+ return _extends$o = Object.assign ? Object.assign.bind() : function(n) {
2740
2740
  for (var e = 1; e < arguments.length; e++) {
2741
2741
  var t = arguments[e];
2742
2742
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
2743
2743
  }
2744
2744
  return n;
2745
- }, _extends$p.apply(null, arguments);
2745
+ }, _extends$o.apply(null, arguments);
2746
2746
  }
2747
2747
  function _toConsumableArray$3(r) {
2748
- return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$c(r) || _nonIterableSpread$3();
2748
+ return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$b(r) || _nonIterableSpread$3();
2749
2749
  }
2750
2750
  function _nonIterableSpread$3() {
2751
2751
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -2754,27 +2754,27 @@ function _iterableToArray$3(r) {
2754
2754
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
2755
2755
  }
2756
2756
  function _arrayWithoutHoles$3(r) {
2757
- if (Array.isArray(r)) return _arrayLikeToArray$c(r);
2757
+ if (Array.isArray(r)) return _arrayLikeToArray$b(r);
2758
2758
  }
2759
- function _slicedToArray$a(r, e) {
2760
- return _arrayWithHoles$a(r) || _iterableToArrayLimit$a(r, e) || _unsupportedIterableToArray$c(r, e) || _nonIterableRest$a();
2759
+ function _slicedToArray$9(r, e) {
2760
+ return _arrayWithHoles$9(r) || _iterableToArrayLimit$9(r, e) || _unsupportedIterableToArray$b(r, e) || _nonIterableRest$9();
2761
2761
  }
2762
- function _nonIterableRest$a() {
2762
+ function _nonIterableRest$9() {
2763
2763
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2764
2764
  }
2765
- function _unsupportedIterableToArray$c(r, a) {
2765
+ function _unsupportedIterableToArray$b(r, a) {
2766
2766
  if (r) {
2767
- if ("string" == typeof r) return _arrayLikeToArray$c(r, a);
2767
+ if ("string" == typeof r) return _arrayLikeToArray$b(r, a);
2768
2768
  var t = {}.toString.call(r).slice(8, -1);
2769
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0;
2769
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0;
2770
2770
  }
2771
2771
  }
2772
- function _arrayLikeToArray$c(r, a) {
2772
+ function _arrayLikeToArray$b(r, a) {
2773
2773
  (null == a || a > r.length) && (a = r.length);
2774
2774
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2775
2775
  return n;
2776
2776
  }
2777
- function _iterableToArrayLimit$a(r, l) {
2777
+ function _iterableToArrayLimit$9(r, l) {
2778
2778
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2779
2779
  if (null != t) {
2780
2780
  var e, n, i, u, a = [], f = true, o = false;
@@ -2793,23 +2793,23 @@ function _iterableToArrayLimit$a(r, l) {
2793
2793
  return a;
2794
2794
  }
2795
2795
  }
2796
- function _arrayWithHoles$a(r) {
2796
+ function _arrayWithHoles$9(r) {
2797
2797
  if (Array.isArray(r)) return r;
2798
2798
  }
2799
- function _objectWithoutProperties$p(e, t) {
2799
+ function _objectWithoutProperties$o(e, t) {
2800
2800
  if (null == e) return {};
2801
- var o, r, i = _objectWithoutPropertiesLoose$p(e, t);
2801
+ var o, r, i = _objectWithoutPropertiesLoose$o(e, t);
2802
2802
  if (Object.getOwnPropertySymbols) {
2803
- var s = Object.getOwnPropertySymbols(e);
2804
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2803
+ var n = Object.getOwnPropertySymbols(e);
2804
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
2805
2805
  }
2806
2806
  return i;
2807
2807
  }
2808
- function _objectWithoutPropertiesLoose$p(r, e) {
2808
+ function _objectWithoutPropertiesLoose$o(r, e) {
2809
2809
  if (null == r) return {};
2810
2810
  var t = {};
2811
2811
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2812
- if (e.includes(n)) continue;
2812
+ if (-1 !== e.indexOf(n)) continue;
2813
2813
  t[n] = r[n];
2814
2814
  }
2815
2815
  return t;
@@ -2820,14 +2820,14 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
2820
2820
  var _ref$placeholder = _ref.placeholder, placeholder = _ref$placeholder === void 0 ? "Select an option" : _ref$placeholder, id = _ref.id, defaultValue = _ref.defaultValue, onChange = _ref.onChange, disabled = _ref.disabled, badgeBgColour = _ref.badgeBgColour, badgeBgColor = _ref.badgeBgColor, badgeTextColour = _ref.badgeTextColour, badgeTextColor = _ref.badgeTextColor, selectionLimit = _ref.selectionLimit, _ref$allowMultiSelect = _ref.allowMultiSelect, allowMultiSelect = _ref$allowMultiSelect === void 0 ? false : _ref$allowMultiSelect, _ref$allowCustomEntri = _ref.allowCustomEntries, allowCustomEntries = _ref$allowCustomEntri === void 0 ? false : _ref$allowCustomEntri, isLoading = _ref.isLoading;
2821
2821
  _ref.value;
2822
2822
  _ref.isFullWidth;
2823
- var className = _ref.className, props = _objectWithoutProperties$p(_ref, _excluded$p);
2824
- var _useState = useState(false), _useState2 = _slicedToArray$a(_useState, 2), isOpen = _useState2[0], setIsOpen = _useState2[1];
2825
- var _useState3 = useState(""), _useState4 = _slicedToArray$a(_useState3, 2), searchValue = _useState4[0], setSearchValue = _useState4[1];
2826
- var _useState5 = useState(-1), _useState6 = _slicedToArray$a(_useState5, 2), activeIndex = _useState6[0], setActiveIndex = _useState6[1];
2827
- var _useState7 = useState(null), _useState8 = _slicedToArray$a(_useState7, 2);
2823
+ var className = _ref.className, props = _objectWithoutProperties$o(_ref, _excluded$o);
2824
+ var _useState = useState(false), _useState2 = _slicedToArray$9(_useState, 2), isOpen = _useState2[0], setIsOpen = _useState2[1];
2825
+ var _useState3 = useState(""), _useState4 = _slicedToArray$9(_useState3, 2), searchValue = _useState4[0], setSearchValue = _useState4[1];
2826
+ var _useState5 = useState(-1), _useState6 = _slicedToArray$9(_useState5, 2), activeIndex = _useState6[0], setActiveIndex = _useState6[1];
2827
+ var _useState7 = useState(null), _useState8 = _slicedToArray$9(_useState7, 2);
2828
2828
  _useState8[0];
2829
2829
  var setSelectedOption = _useState8[1];
2830
- var _useState9 = useState([]), _useState10 = _slicedToArray$a(_useState9, 2), selectedOptions = _useState10[0], setSelectedOptions = _useState10[1];
2830
+ var _useState9 = useState([]), _useState10 = _slicedToArray$9(_useState9, 2), selectedOptions = _useState10[0], setSelectedOptions = _useState10[1];
2831
2831
  useEffect(function() {
2832
2832
  if (defaultValue && onChange) {
2833
2833
  onChange(defaultValue);
@@ -2888,19 +2888,24 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
2888
2888
  handleSelectOption(customOption);
2889
2889
  }
2890
2890
  };
2891
- var handleDeleteOption = function handleDeleteOption2(e, valueToRemove) {
2892
- e.stopPropagation();
2891
+ var handleDeleteOption = function handleDeleteOption2(valueToRemove) {
2893
2892
  if (allowMultiSelect) {
2894
- var newValue = selectedOptions.filter(function(opt) {
2893
+ var newSelectedOptions = selectedOptions.filter(function(opt) {
2895
2894
  return opt.value !== valueToRemove;
2896
- }).map(function(opt) {
2897
- return opt.value;
2898
2895
  });
2899
- onChange === null || onChange === void 0 || onChange(newValue);
2896
+ setSelectedOptions(newSelectedOptions);
2897
+ onChange === null || onChange === void 0 || onChange(newSelectedOptions.map(function(opt) {
2898
+ return opt.value;
2899
+ }));
2900
+ } else {
2901
+ setSelectedOption(null);
2902
+ setSelectedOptions([]);
2903
+ onChange === null || onChange === void 0 || onChange("");
2900
2904
  }
2901
2905
  };
2902
- var handleClearAll = function handleClearAll2(e) {
2903
- e.stopPropagation();
2906
+ var handleClearAll = function handleClearAll2() {
2907
+ setSelectedOption(null);
2908
+ setSelectedOptions([]);
2904
2909
  onChange === null || onChange === void 0 || onChange(allowMultiSelect ? [] : "");
2905
2910
  };
2906
2911
  var handleKeyDown = function handleKeyDown2(event) {
@@ -2982,7 +2987,7 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
2982
2987
  }, [activeIndex]);
2983
2988
  return (
2984
2989
  // PARENT //////////////////////////////////////////////////////////////////////////////////////////////////////
2985
- /* @__PURE__ */ React.createElement(Element, _extends$p({
2990
+ /* @__PURE__ */ React.createElement(Element, _extends$o({
2986
2991
  as: "div",
2987
2992
  "data-list-box": true,
2988
2993
  classNames: ["list-box-wrapper", disabled ? "disabled" : "", className || ""],
@@ -3006,8 +3011,8 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
3006
3011
  return /* @__PURE__ */ React.createElement(Badge, {
3007
3012
  key: option.value,
3008
3013
  withDelete: allowMultiSelect,
3009
- onDelete: function onDelete(e) {
3010
- return handleDeleteOption(e, option.value);
3014
+ onDelete: function onDelete() {
3015
+ return handleDeleteOption(option.value);
3011
3016
  },
3012
3017
  size: "small",
3013
3018
  shape: "rounded",
@@ -3023,7 +3028,9 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
3023
3028
  }, placeholder), selectedOptions.length > 0 && /* @__PURE__ */ React.createElement(Div, {
3024
3029
  className: "icon-wrapper clear-all",
3025
3030
  title: "Clear all options",
3026
- onClick: handleClearAll
3031
+ onClick: function onClick() {
3032
+ return handleClearAll();
3033
+ }
3027
3034
  }, /* @__PURE__ */ React.createElement("svg", {
3028
3035
  viewBox: "0 0 24 24"
3029
3036
  }, /* @__PURE__ */ React.createElement("line", {
@@ -3102,35 +3109,35 @@ var ListBoxWithOptions = function ListBoxWithOptions2(_ref) {
3102
3109
  var ListBox = /* @__PURE__ */ React.forwardRef(function(props, ref) {
3103
3110
  var handleChange = function handleChange2(valueOrEvent) {
3104
3111
  var _props$onChange;
3105
- var value = _typeof$4(valueOrEvent) === "object" && "target" in valueOrEvent ? valueOrEvent.target.value : valueOrEvent;
3112
+ var value = _typeof$3(valueOrEvent) === "object" && "target" in valueOrEvent ? valueOrEvent.target.value : valueOrEvent;
3106
3113
  (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
3107
3114
  };
3108
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$p({
3115
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$o({
3109
3116
  as: ListBoxWithOptions,
3110
3117
  ref
3111
3118
  }, props, {
3112
3119
  onChange: handleChange
3113
3120
  }));
3114
3121
  });
3115
- function _typeof$3(o) {
3122
+ function _typeof$2(o) {
3116
3123
  "@babel/helpers - typeof";
3117
- return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
3124
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
3118
3125
  return typeof o2;
3119
3126
  } : function(o2) {
3120
3127
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
3121
- }, _typeof$3(o);
3128
+ }, _typeof$2(o);
3122
3129
  }
3123
- var _excluded$o = ["numberOfFields", "onChange", "type", "mask", "isOTP", "autoFocus", "pasteFromClipboard", "focusFirstInputOnReset", "isFullWidth", "ariaLabel"];
3124
- function _extends$o() {
3125
- return _extends$o = Object.assign ? Object.assign.bind() : function(n) {
3130
+ var _excluded$n = ["numberOfFields", "onChange", "type", "mask", "isOTP", "autoFocus", "pasteFromClipboard", "focusFirstInputOnReset", "isFullWidth", "ariaLabel"];
3131
+ function _extends$n() {
3132
+ return _extends$n = Object.assign ? Object.assign.bind() : function(n) {
3126
3133
  for (var e = 1; e < arguments.length; e++) {
3127
3134
  var t = arguments[e];
3128
3135
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3129
3136
  }
3130
3137
  return n;
3131
- }, _extends$o.apply(null, arguments);
3138
+ }, _extends$n.apply(null, arguments);
3132
3139
  }
3133
- function ownKeys$3(e, r) {
3140
+ function ownKeys$2(e, r) {
3134
3141
  var t = Object.keys(e);
3135
3142
  if (Object.getOwnPropertySymbols) {
3136
3143
  var o = Object.getOwnPropertySymbols(e);
@@ -3140,36 +3147,36 @@ function ownKeys$3(e, r) {
3140
3147
  }
3141
3148
  return t;
3142
3149
  }
3143
- function _objectSpread$3(e) {
3150
+ function _objectSpread$2(e) {
3144
3151
  for (var r = 1; r < arguments.length; r++) {
3145
3152
  var t = null != arguments[r] ? arguments[r] : {};
3146
- r % 2 ? ownKeys$3(Object(t), true).forEach(function(r2) {
3147
- _defineProperty$3(e, r2, t[r2]);
3148
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function(r2) {
3153
+ r % 2 ? ownKeys$2(Object(t), true).forEach(function(r2) {
3154
+ _defineProperty$2(e, r2, t[r2]);
3155
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r2) {
3149
3156
  Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
3150
3157
  });
3151
3158
  }
3152
3159
  return e;
3153
3160
  }
3154
- function _defineProperty$3(e, r, t) {
3155
- return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
3161
+ function _defineProperty$2(e, r, t) {
3162
+ return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
3156
3163
  }
3157
- function _toPropertyKey$3(t) {
3158
- var i = _toPrimitive$3(t, "string");
3159
- return "symbol" == _typeof$3(i) ? i : i + "";
3164
+ function _toPropertyKey$2(t) {
3165
+ var i = _toPrimitive$2(t, "string");
3166
+ return "symbol" == _typeof$2(i) ? i : i + "";
3160
3167
  }
3161
- function _toPrimitive$3(t, r) {
3162
- if ("object" != _typeof$3(t) || !t) return t;
3168
+ function _toPrimitive$2(t, r) {
3169
+ if ("object" != _typeof$2(t) || !t) return t;
3163
3170
  var e = t[Symbol.toPrimitive];
3164
3171
  if (void 0 !== e) {
3165
3172
  var i = e.call(t, r || "default");
3166
- if ("object" != _typeof$3(i)) return i;
3173
+ if ("object" != _typeof$2(i)) return i;
3167
3174
  throw new TypeError("@@toPrimitive must return a primitive value.");
3168
3175
  }
3169
3176
  return ("string" === r ? String : Number)(t);
3170
3177
  }
3171
3178
  function _toConsumableArray$2(r) {
3172
- return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$b(r) || _nonIterableSpread$2();
3179
+ return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$a(r) || _nonIterableSpread$2();
3173
3180
  }
3174
3181
  function _nonIterableSpread$2() {
3175
3182
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -3178,27 +3185,27 @@ function _iterableToArray$2(r) {
3178
3185
  if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
3179
3186
  }
3180
3187
  function _arrayWithoutHoles$2(r) {
3181
- if (Array.isArray(r)) return _arrayLikeToArray$b(r);
3188
+ if (Array.isArray(r)) return _arrayLikeToArray$a(r);
3182
3189
  }
3183
- function _slicedToArray$9(r, e) {
3184
- return _arrayWithHoles$9(r) || _iterableToArrayLimit$9(r, e) || _unsupportedIterableToArray$b(r, e) || _nonIterableRest$9();
3190
+ function _slicedToArray$8(r, e) {
3191
+ return _arrayWithHoles$8(r) || _iterableToArrayLimit$8(r, e) || _unsupportedIterableToArray$a(r, e) || _nonIterableRest$8();
3185
3192
  }
3186
- function _nonIterableRest$9() {
3193
+ function _nonIterableRest$8() {
3187
3194
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3188
3195
  }
3189
- function _unsupportedIterableToArray$b(r, a) {
3196
+ function _unsupportedIterableToArray$a(r, a) {
3190
3197
  if (r) {
3191
- if ("string" == typeof r) return _arrayLikeToArray$b(r, a);
3198
+ if ("string" == typeof r) return _arrayLikeToArray$a(r, a);
3192
3199
  var t = {}.toString.call(r).slice(8, -1);
3193
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0;
3200
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0;
3194
3201
  }
3195
3202
  }
3196
- function _arrayLikeToArray$b(r, a) {
3203
+ function _arrayLikeToArray$a(r, a) {
3197
3204
  (null == a || a > r.length) && (a = r.length);
3198
3205
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
3199
3206
  return n;
3200
3207
  }
3201
- function _iterableToArrayLimit$9(r, l) {
3208
+ function _iterableToArrayLimit$8(r, l) {
3202
3209
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3203
3210
  if (null != t) {
3204
3211
  var e, n, i, u, a = [], f = true, o = false;
@@ -3217,23 +3224,23 @@ function _iterableToArrayLimit$9(r, l) {
3217
3224
  return a;
3218
3225
  }
3219
3226
  }
3220
- function _arrayWithHoles$9(r) {
3227
+ function _arrayWithHoles$8(r) {
3221
3228
  if (Array.isArray(r)) return r;
3222
3229
  }
3223
- function _objectWithoutProperties$o(e, t) {
3230
+ function _objectWithoutProperties$n(e, t) {
3224
3231
  if (null == e) return {};
3225
- var o, r, i = _objectWithoutPropertiesLoose$o(e, t);
3232
+ var o, r, i = _objectWithoutPropertiesLoose$n(e, t);
3226
3233
  if (Object.getOwnPropertySymbols) {
3227
- var s = Object.getOwnPropertySymbols(e);
3228
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3234
+ var n = Object.getOwnPropertySymbols(e);
3235
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3229
3236
  }
3230
3237
  return i;
3231
3238
  }
3232
- function _objectWithoutPropertiesLoose$o(r, e) {
3239
+ function _objectWithoutPropertiesLoose$n(r, e) {
3233
3240
  if (null == r) return {};
3234
3241
  var t = {};
3235
3242
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3236
- if (e.includes(n)) continue;
3243
+ if (-1 !== e.indexOf(n)) continue;
3237
3244
  t[n] = r[n];
3238
3245
  }
3239
3246
  return t;
@@ -3245,12 +3252,12 @@ function validate(value, type) {
3245
3252
  return regex.test(value);
3246
3253
  }
3247
3254
  var PinInputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
3248
- var length = _ref.numberOfFields, onChange = _ref.onChange, _ref$type = _ref.type, type = _ref$type === void 0 ? "number" : _ref$type, _ref$mask = _ref.mask, mask = _ref$mask === void 0 ? false : _ref$mask, _ref$isOTP = _ref.isOTP, isOTP = _ref$isOTP === void 0 ? false : _ref$isOTP, _ref$autoFocus = _ref.autoFocus, autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus, _ref$pasteFromClipboa = _ref.pasteFromClipboard, pasteFromClipboard = _ref$pasteFromClipboa === void 0 ? "enabled" : _ref$pasteFromClipboa, _ref$focusFirstInputO = _ref.focusFirstInputOnReset, focusFirstInputOnReset = _ref$focusFirstInputO === void 0 ? true : _ref$focusFirstInputO, isFullWidth = _ref.isFullWidth, ariaLabel = _ref.ariaLabel, props = _objectWithoutProperties$o(_ref, _excluded$o);
3255
+ var length = _ref.numberOfFields, onChange = _ref.onChange, _ref$type = _ref.type, type = _ref$type === void 0 ? "number" : _ref$type, _ref$mask = _ref.mask, mask = _ref$mask === void 0 ? false : _ref$mask, _ref$isOTP = _ref.isOTP, isOTP = _ref$isOTP === void 0 ? false : _ref$isOTP, _ref$autoFocus = _ref.autoFocus, autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus, _ref$pasteFromClipboa = _ref.pasteFromClipboard, pasteFromClipboard = _ref$pasteFromClipboa === void 0 ? "enabled" : _ref$pasteFromClipboa, _ref$focusFirstInputO = _ref.focusFirstInputOnReset, focusFirstInputOnReset = _ref$focusFirstInputO === void 0 ? true : _ref$focusFirstInputO, isFullWidth = _ref.isFullWidth, ariaLabel = _ref.ariaLabel, props = _objectWithoutProperties$n(_ref, _excluded$n);
3249
3256
  var pinInputFieldRef = useRef(null);
3250
- var _useState = useState([]), _useState2 = _slicedToArray$9(_useState, 2), inputRefs = _useState2[0], setInputRefs = _useState2[1];
3251
- var _useState3 = useState([]), _useState4 = _slicedToArray$9(_useState3, 2), values = _useState4[0], setValues = _useState4[1];
3252
- var _useState5 = useState(true), _useState6 = _slicedToArray$9(_useState5, 2), moveFocus = _useState6[0], setMoveFocus = _useState6[1];
3253
- var _useState7 = useState(-1), _useState8 = _slicedToArray$9(_useState7, 2), focusedIndex = _useState8[0], setFocusedIndex = _useState8[1];
3257
+ var _useState = useState([]), _useState2 = _slicedToArray$8(_useState, 2), inputRefs = _useState2[0], setInputRefs = _useState2[1];
3258
+ var _useState3 = useState([]), _useState4 = _slicedToArray$8(_useState3, 2), values = _useState4[0], setValues = _useState4[1];
3259
+ var _useState5 = useState(true), _useState6 = _slicedToArray$8(_useState5, 2), moveFocus = _useState6[0], setMoveFocus = _useState6[1];
3260
+ var _useState7 = useState(-1), _useState8 = _slicedToArray$8(_useState7, 2), focusedIndex = _useState8[0], setFocusedIndex = _useState8[1];
3254
3261
  var inputGroupId = props.id || "pin-input-".concat(Math.random().toString(36).substring(2, 9));
3255
3262
  var inputDescription = ariaLabel || "Enter verification code";
3256
3263
  var focus = useCallback(function(index) {
@@ -3384,11 +3391,11 @@ var PinInputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
3384
3391
  });
3385
3392
  }, [length, autoFocus]);
3386
3393
  useImperativeHandle(ref, function() {
3387
- return _objectSpread$3(_objectSpread$3({}, pinInputFieldRef.current), {}, {
3394
+ return _objectSpread$2(_objectSpread$2({}, pinInputFieldRef.current), {}, {
3388
3395
  reset: handleResetPinInput
3389
3396
  });
3390
3397
  }, [handleResetPinInput]);
3391
- return /* @__PURE__ */ React.createElement(Div, _extends$o({
3398
+ return /* @__PURE__ */ React.createElement(Div, _extends$n({
3392
3399
  "data-pin-input-field": true,
3393
3400
  ref: pinInputFieldRef,
3394
3401
  classNames: isFullWidth ? ["full-width"] : [],
@@ -3430,40 +3437,40 @@ var PinInputField = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
3430
3437
  });
3431
3438
  }));
3432
3439
  });
3433
- var _excluded$n = ["label", "value", "suffix", "onChange"];
3434
- function _extends$n() {
3435
- return _extends$n = Object.assign ? Object.assign.bind() : function(n) {
3440
+ var _excluded$m = ["label", "value", "suffix", "onChange"];
3441
+ function _extends$m() {
3442
+ return _extends$m = Object.assign ? Object.assign.bind() : function(n) {
3436
3443
  for (var e = 1; e < arguments.length; e++) {
3437
3444
  var t = arguments[e];
3438
3445
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3439
3446
  }
3440
3447
  return n;
3441
- }, _extends$n.apply(null, arguments);
3448
+ }, _extends$m.apply(null, arguments);
3442
3449
  }
3443
- function _objectWithoutProperties$n(e, t) {
3450
+ function _objectWithoutProperties$m(e, t) {
3444
3451
  if (null == e) return {};
3445
- var o, r, i = _objectWithoutPropertiesLoose$n(e, t);
3452
+ var o, r, i = _objectWithoutPropertiesLoose$m(e, t);
3446
3453
  if (Object.getOwnPropertySymbols) {
3447
- var s = Object.getOwnPropertySymbols(e);
3448
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3454
+ var n = Object.getOwnPropertySymbols(e);
3455
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3449
3456
  }
3450
3457
  return i;
3451
3458
  }
3452
- function _objectWithoutPropertiesLoose$n(r, e) {
3459
+ function _objectWithoutPropertiesLoose$m(r, e) {
3453
3460
  if (null == r) return {};
3454
3461
  var t = {};
3455
3462
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3456
- if (e.includes(n)) continue;
3463
+ if (-1 !== e.indexOf(n)) continue;
3457
3464
  t[n] = r[n];
3458
3465
  }
3459
3466
  return t;
3460
3467
  }
3461
3468
  var Range = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
3462
- var label = _ref.label, value = _ref.value, suffix = _ref.suffix, onChange = _ref.onChange, props = _objectWithoutProperties$n(_ref, _excluded$n);
3469
+ var label = _ref.label, value = _ref.value, suffix = _ref.suffix, onChange = _ref.onChange, props = _objectWithoutProperties$m(_ref, _excluded$m);
3463
3470
  var handleChange = function handleChange2(value2) {
3464
3471
  onChange === null || onChange === void 0 || onChange(parseFloat(value2));
3465
3472
  };
3466
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$n({
3473
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$m({
3467
3474
  as: "input",
3468
3475
  type: "range",
3469
3476
  "data-range": true,
@@ -3480,35 +3487,35 @@ var Range = /* @__PURE__ */ React.forwardRef(function(_ref, ref) {
3480
3487
  }, value, " ", suffix && suffix))
3481
3488
  }, props));
3482
3489
  });
3483
- var _excluded$m = ["id", "name", "options", "defaultValue", "value", "required", "onChange", "onMeasure", "optionsWrapperRef"], _excluded2$3 = ["id"], _excluded3 = ["size"];
3484
- function _extends$m() {
3485
- return _extends$m = Object.assign ? Object.assign.bind() : function(n) {
3490
+ var _excluded$l = ["id", "name", "options", "defaultValue", "value", "required", "onChange", "onMeasure", "optionsWrapperRef"], _excluded2$3 = ["id"], _excluded3 = ["size"];
3491
+ function _extends$l() {
3492
+ return _extends$l = Object.assign ? Object.assign.bind() : function(n) {
3486
3493
  for (var e = 1; e < arguments.length; e++) {
3487
3494
  var t = arguments[e];
3488
3495
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3489
3496
  }
3490
3497
  return n;
3491
- }, _extends$m.apply(null, arguments);
3498
+ }, _extends$l.apply(null, arguments);
3492
3499
  }
3493
- function _slicedToArray$8(r, e) {
3494
- return _arrayWithHoles$8(r) || _iterableToArrayLimit$8(r, e) || _unsupportedIterableToArray$a(r, e) || _nonIterableRest$8();
3500
+ function _slicedToArray$7(r, e) {
3501
+ return _arrayWithHoles$7(r) || _iterableToArrayLimit$7(r, e) || _unsupportedIterableToArray$9(r, e) || _nonIterableRest$7();
3495
3502
  }
3496
- function _nonIterableRest$8() {
3503
+ function _nonIterableRest$7() {
3497
3504
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3498
3505
  }
3499
- function _unsupportedIterableToArray$a(r, a) {
3506
+ function _unsupportedIterableToArray$9(r, a) {
3500
3507
  if (r) {
3501
- if ("string" == typeof r) return _arrayLikeToArray$a(r, a);
3508
+ if ("string" == typeof r) return _arrayLikeToArray$9(r, a);
3502
3509
  var t = {}.toString.call(r).slice(8, -1);
3503
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0;
3510
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0;
3504
3511
  }
3505
3512
  }
3506
- function _arrayLikeToArray$a(r, a) {
3513
+ function _arrayLikeToArray$9(r, a) {
3507
3514
  (null == a || a > r.length) && (a = r.length);
3508
3515
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
3509
3516
  return n;
3510
3517
  }
3511
- function _iterableToArrayLimit$8(r, l) {
3518
+ function _iterableToArrayLimit$7(r, l) {
3512
3519
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3513
3520
  if (null != t) {
3514
3521
  var e, n, i, u, a = [], f = true, o = false;
@@ -3527,23 +3534,23 @@ function _iterableToArrayLimit$8(r, l) {
3527
3534
  return a;
3528
3535
  }
3529
3536
  }
3530
- function _arrayWithHoles$8(r) {
3537
+ function _arrayWithHoles$7(r) {
3531
3538
  if (Array.isArray(r)) return r;
3532
3539
  }
3533
- function _objectWithoutProperties$m(e, t) {
3540
+ function _objectWithoutProperties$l(e, t) {
3534
3541
  if (null == e) return {};
3535
- var o, r, i = _objectWithoutPropertiesLoose$m(e, t);
3542
+ var o, r, i = _objectWithoutPropertiesLoose$l(e, t);
3536
3543
  if (Object.getOwnPropertySymbols) {
3537
- var s = Object.getOwnPropertySymbols(e);
3538
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3544
+ var n = Object.getOwnPropertySymbols(e);
3545
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3539
3546
  }
3540
3547
  return i;
3541
3548
  }
3542
- function _objectWithoutPropertiesLoose$m(r, e) {
3549
+ function _objectWithoutPropertiesLoose$l(r, e) {
3543
3550
  if (null == r) return {};
3544
3551
  var t = {};
3545
3552
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3546
- if (e.includes(n)) continue;
3553
+ if (-1 !== e.indexOf(n)) continue;
3547
3554
  t[n] = r[n];
3548
3555
  }
3549
3556
  return t;
@@ -3551,17 +3558,17 @@ function _objectWithoutPropertiesLoose$m(r, e) {
3551
3558
  var RadioTabGroupOptions = function RadioTabGroupOptions2(_ref) {
3552
3559
  var id = _ref.id, name = _ref.name, options = _ref.options;
3553
3560
  _ref.defaultValue;
3554
- var value = _ref.value, required = _ref.required, onChange = _ref.onChange, onMeasure = _ref.onMeasure, optionsWrapperRef = _ref.optionsWrapperRef, props = _objectWithoutProperties$m(_ref, _excluded$m);
3561
+ var value = _ref.value, required = _ref.required, onChange = _ref.onChange, onMeasure = _ref.onMeasure, optionsWrapperRef = _ref.optionsWrapperRef, props = _objectWithoutProperties$l(_ref, _excluded$l);
3555
3562
  var derivedName = useMemo(function() {
3556
3563
  return name || id;
3557
3564
  }, [name, id]);
3558
3565
  var _useState = useState({
3559
3566
  width: 0,
3560
3567
  transform: "translateX(0)"
3561
- }), _useState2 = _slicedToArray$8(_useState, 2), indicatorPos = _useState2[0], setIndicatorPos = _useState2[1];
3562
- var _useState3 = useState(false), _useState4 = _slicedToArray$8(_useState3, 2), needsScroll = _useState4[0], setNeedsScroll = _useState4[1];
3563
- var _useState5 = useState(0), _useState6 = _slicedToArray$8(_useState5, 2), scrollPosition = _useState6[0], setScrollPosition = _useState6[1];
3564
- var _useState7 = useState(0), _useState8 = _slicedToArray$8(_useState7, 2), maxScroll = _useState8[0], setMaxScroll = _useState8[1];
3568
+ }), _useState2 = _slicedToArray$7(_useState, 2), indicatorPos = _useState2[0], setIndicatorPos = _useState2[1];
3569
+ var _useState3 = useState(false), _useState4 = _slicedToArray$7(_useState3, 2), needsScroll = _useState4[0], setNeedsScroll = _useState4[1];
3570
+ var _useState5 = useState(0), _useState6 = _slicedToArray$7(_useState5, 2), scrollPosition = _useState6[0], setScrollPosition = _useState6[1];
3571
+ var _useState7 = useState(0), _useState8 = _slicedToArray$7(_useState7, 2), maxScroll = _useState8[0], setMaxScroll = _useState8[1];
3565
3572
  var labelsRef = useRef([]);
3566
3573
  var measureWidths = useCallback(function() {
3567
3574
  if (!optionsWrapperRef.current) return;
@@ -3656,11 +3663,11 @@ var RadioTabGroupOptions = function RadioTabGroupOptions2(_ref) {
3656
3663
  transform: indicatorPos.transform
3657
3664
  }
3658
3665
  }), options.map(function(option, index) {
3659
- var optionId = option.id, optionProps = _objectWithoutProperties$m(option, _excluded2$3);
3666
+ var optionId = option.id, optionProps = _objectWithoutProperties$l(option, _excluded2$3);
3660
3667
  var finalId = optionId || "".concat(id, "-option-").concat(index);
3661
3668
  return /* @__PURE__ */ React.createElement(React.Fragment, {
3662
3669
  key: finalId
3663
- }, /* @__PURE__ */ React.createElement("input", _extends$m({
3670
+ }, /* @__PURE__ */ React.createElement("input", _extends$l({
3664
3671
  type: "radio"
3665
3672
  }, props, optionProps, {
3666
3673
  id: finalId,
@@ -3685,7 +3692,7 @@ var RadioTabGroupOptions = function RadioTabGroupOptions2(_ref) {
3685
3692
  })))));
3686
3693
  };
3687
3694
  var RadioTabGroup = /* @__PURE__ */ React.forwardRef(function(_ref2, ref) {
3688
- var _ref2$size = _ref2.size, size = _ref2$size === void 0 ? "medium" : _ref2$size, props = _objectWithoutProperties$m(_ref2, _excluded3);
3695
+ var _ref2$size = _ref2.size, size = _ref2$size === void 0 ? "medium" : _ref2$size, props = _objectWithoutProperties$l(_ref2, _excluded3);
3689
3696
  var optionsWrapperRef = useRef(null);
3690
3697
  var handleMeasure = useCallback(function() {
3691
3698
  }, []);
@@ -3693,7 +3700,7 @@ var RadioTabGroup = /* @__PURE__ */ React.forwardRef(function(_ref2, ref) {
3693
3700
  if (size) {
3694
3701
  classNames.push("size-".concat(size));
3695
3702
  }
3696
- return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$m({
3703
+ return /* @__PURE__ */ React.createElement(BaseInputComponent, _extends$l({
3697
3704
  as: RadioTabGroupOptions,
3698
3705
  ref,
3699
3706
  classNames,
@@ -3702,176 +3709,6 @@ var RadioTabGroup = /* @__PURE__ */ React.forwardRef(function(_ref2, ref) {
3702
3709
  optionsWrapperRef
3703
3710
  }, props));
3704
3711
  });
3705
- function _typeof$2(o) {
3706
- "@babel/helpers - typeof";
3707
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
3708
- return typeof o2;
3709
- } : function(o2) {
3710
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
3711
- }, _typeof$2(o);
3712
- }
3713
- var _excluded$l = ["animateWhen", "progress", "isIndeterminate", "height", "position", "className"];
3714
- function _extends$l() {
3715
- return _extends$l = Object.assign ? Object.assign.bind() : function(n) {
3716
- for (var e = 1; e < arguments.length; e++) {
3717
- var t = arguments[e];
3718
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3719
- }
3720
- return n;
3721
- }, _extends$l.apply(null, arguments);
3722
- }
3723
- function ownKeys$2(e, r) {
3724
- var t = Object.keys(e);
3725
- if (Object.getOwnPropertySymbols) {
3726
- var o = Object.getOwnPropertySymbols(e);
3727
- r && (o = o.filter(function(r2) {
3728
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
3729
- })), t.push.apply(t, o);
3730
- }
3731
- return t;
3732
- }
3733
- function _objectSpread$2(e) {
3734
- for (var r = 1; r < arguments.length; r++) {
3735
- var t = null != arguments[r] ? arguments[r] : {};
3736
- r % 2 ? ownKeys$2(Object(t), true).forEach(function(r2) {
3737
- _defineProperty$2(e, r2, t[r2]);
3738
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r2) {
3739
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
3740
- });
3741
- }
3742
- return e;
3743
- }
3744
- function _defineProperty$2(e, r, t) {
3745
- return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
3746
- }
3747
- function _toPropertyKey$2(t) {
3748
- var i = _toPrimitive$2(t, "string");
3749
- return "symbol" == _typeof$2(i) ? i : i + "";
3750
- }
3751
- function _toPrimitive$2(t, r) {
3752
- if ("object" != _typeof$2(t) || !t) return t;
3753
- var e = t[Symbol.toPrimitive];
3754
- if (void 0 !== e) {
3755
- var i = e.call(t, r || "default");
3756
- if ("object" != _typeof$2(i)) return i;
3757
- throw new TypeError("@@toPrimitive must return a primitive value.");
3758
- }
3759
- return ("string" === r ? String : Number)(t);
3760
- }
3761
- function _slicedToArray$7(r, e) {
3762
- return _arrayWithHoles$7(r) || _iterableToArrayLimit$7(r, e) || _unsupportedIterableToArray$9(r, e) || _nonIterableRest$7();
3763
- }
3764
- function _nonIterableRest$7() {
3765
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3766
- }
3767
- function _unsupportedIterableToArray$9(r, a) {
3768
- if (r) {
3769
- if ("string" == typeof r) return _arrayLikeToArray$9(r, a);
3770
- var t = {}.toString.call(r).slice(8, -1);
3771
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0;
3772
- }
3773
- }
3774
- function _arrayLikeToArray$9(r, a) {
3775
- (null == a || a > r.length) && (a = r.length);
3776
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
3777
- return n;
3778
- }
3779
- function _iterableToArrayLimit$7(r, l) {
3780
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3781
- if (null != t) {
3782
- var e, n, i, u, a = [], f = true, o = false;
3783
- try {
3784
- if (i = (t = t.call(r)).next, 0 === l) ;
3785
- else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
3786
- } catch (r2) {
3787
- o = true, n = r2;
3788
- } finally {
3789
- try {
3790
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3791
- } finally {
3792
- if (o) throw n;
3793
- }
3794
- }
3795
- return a;
3796
- }
3797
- }
3798
- function _arrayWithHoles$7(r) {
3799
- if (Array.isArray(r)) return r;
3800
- }
3801
- function _objectWithoutProperties$l(e, t) {
3802
- if (null == e) return {};
3803
- var o, r, i = _objectWithoutPropertiesLoose$l(e, t);
3804
- if (Object.getOwnPropertySymbols) {
3805
- var s = Object.getOwnPropertySymbols(e);
3806
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3807
- }
3808
- return i;
3809
- }
3810
- function _objectWithoutPropertiesLoose$l(r, e) {
3811
- if (null == r) return {};
3812
- var t = {};
3813
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3814
- if (e.includes(n)) continue;
3815
- t[n] = r[n];
3816
- }
3817
- return t;
3818
- }
3819
- var LoadingBar = /* @__PURE__ */ forwardRef(function(_ref, ref) {
3820
- var _ref$animateWhen = _ref.animateWhen, animateWhen = _ref$animateWhen === void 0 ? false : _ref$animateWhen, _ref$progress = _ref.progress, progress = _ref$progress === void 0 ? 0 : _ref$progress, _ref$isIndeterminate = _ref.isIndeterminate, isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate, _ref$height = _ref.height, height = _ref$height === void 0 ? "4px" : _ref$height, _ref$position = _ref.position, position = _ref$position === void 0 ? "top" : _ref$position, className = _ref.className, props = _objectWithoutProperties$l(_ref, _excluded$l);
3821
- var _useState = useState({
3822
- isVisible: false,
3823
- isFading: false,
3824
- currentProgress: progress
3825
- }), _useState2 = _slicedToArray$7(_useState, 2), state = _useState2[0], setState = _useState2[1];
3826
- useEffect(function() {
3827
- if (animateWhen && !state.isVisible) {
3828
- setState(function(prev) {
3829
- return _objectSpread$2(_objectSpread$2({}, prev), {}, {
3830
- isVisible: true,
3831
- isFading: false
3832
- });
3833
- });
3834
- } else if (progress >= 100 && !state.isFading) {
3835
- setState(function(prev) {
3836
- return _objectSpread$2(_objectSpread$2({}, prev), {}, {
3837
- isFading: true
3838
- });
3839
- });
3840
- var timer = setTimeout(function() {
3841
- setState(function(prev) {
3842
- return _objectSpread$2(_objectSpread$2({}, prev), {}, {
3843
- isVisible: false,
3844
- isFading: false,
3845
- currentProgress: 0
3846
- });
3847
- });
3848
- }, 500);
3849
- return function() {
3850
- return clearTimeout(timer);
3851
- };
3852
- }
3853
- setState(function(prev) {
3854
- return _objectSpread$2(_objectSpread$2({}, prev), {}, {
3855
- currentProgress: progress
3856
- });
3857
- });
3858
- }, [animateWhen, progress]);
3859
- if (!state.isVisible && !animateWhen) return null;
3860
- var transformValue = isIndeterminate ? void 0 : "translateX(".concat(-100 + Math.min(100, state.currentProgress), "%)");
3861
- var style = _objectSpread$2(_defineProperty$2(_defineProperty$2({
3862
- height
3863
- }, position, 0), "bottom", position === "bottom" ? 0 : "auto"), transformValue ? {
3864
- transform: transformValue
3865
- } : {});
3866
- var classes = [className, animateWhen ? "active" : "", isIndeterminate ? "indeterminate" : "determinate", state.isFading ? "fade-out" : ""].filter(Boolean).join(" ");
3867
- return /* @__PURE__ */ React.createElement(Element, _extends$l({
3868
- as: "div",
3869
- "data-loading-bar": true,
3870
- ref,
3871
- style,
3872
- className: classes
3873
- }, props));
3874
- });
3875
3712
  var _excluded$k = ["label", "value", "height", "suffix", "showOptimumMarker", "ariaLabel", "description", "min", "max", "low", "high", "optimum"];
3876
3713
  function _extends$k() {
3877
3714
  return _extends$k = Object.assign ? Object.assign.bind() : function(n) {
@@ -3886,8 +3723,8 @@ function _objectWithoutProperties$k(e, t) {
3886
3723
  if (null == e) return {};
3887
3724
  var o, r, i = _objectWithoutPropertiesLoose$k(e, t);
3888
3725
  if (Object.getOwnPropertySymbols) {
3889
- var s = Object.getOwnPropertySymbols(e);
3890
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3726
+ var n = Object.getOwnPropertySymbols(e);
3727
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3891
3728
  }
3892
3729
  return i;
3893
3730
  }
@@ -3895,7 +3732,7 @@ function _objectWithoutPropertiesLoose$k(r, e) {
3895
3732
  if (null == r) return {};
3896
3733
  var t = {};
3897
3734
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3898
- if (e.includes(n)) continue;
3735
+ if (-1 !== e.indexOf(n)) continue;
3899
3736
  t[n] = r[n];
3900
3737
  }
3901
3738
  return t;
@@ -3972,8 +3809,8 @@ function _objectWithoutProperties$j(e, t) {
3972
3809
  if (null == e) return {};
3973
3810
  var o, r, i = _objectWithoutPropertiesLoose$j(e, t);
3974
3811
  if (Object.getOwnPropertySymbols) {
3975
- var s = Object.getOwnPropertySymbols(e);
3976
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3812
+ var n = Object.getOwnPropertySymbols(e);
3813
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3977
3814
  }
3978
3815
  return i;
3979
3816
  }
@@ -3981,7 +3818,7 @@ function _objectWithoutPropertiesLoose$j(r, e) {
3981
3818
  if (null == r) return {};
3982
3819
  var t = {};
3983
3820
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3984
- if (e.includes(n)) continue;
3821
+ if (-1 !== e.indexOf(n)) continue;
3985
3822
  t[n] = r[n];
3986
3823
  }
3987
3824
  return t;
@@ -4071,8 +3908,8 @@ function _objectWithoutProperties$i(e, t) {
4071
3908
  if (null == e) return {};
4072
3909
  var o, r, i = _objectWithoutPropertiesLoose$i(e, t);
4073
3910
  if (Object.getOwnPropertySymbols) {
4074
- var s = Object.getOwnPropertySymbols(e);
4075
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3911
+ var n = Object.getOwnPropertySymbols(e);
3912
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4076
3913
  }
4077
3914
  return i;
4078
3915
  }
@@ -4080,7 +3917,7 @@ function _objectWithoutPropertiesLoose$i(r, e) {
4080
3917
  if (null == r) return {};
4081
3918
  var t = {};
4082
3919
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4083
- if (e.includes(n)) continue;
3920
+ if (-1 !== e.indexOf(n)) continue;
4084
3921
  t[n] = r[n];
4085
3922
  }
4086
3923
  return t;
@@ -4157,8 +3994,8 @@ function _objectWithoutProperties$h(e, t) {
4157
3994
  if (null == e) return {};
4158
3995
  var o, r, i = _objectWithoutPropertiesLoose$h(e, t);
4159
3996
  if (Object.getOwnPropertySymbols) {
4160
- var s = Object.getOwnPropertySymbols(e);
4161
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
3997
+ var n = Object.getOwnPropertySymbols(e);
3998
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4162
3999
  }
4163
4000
  return i;
4164
4001
  }
@@ -4166,7 +4003,7 @@ function _objectWithoutPropertiesLoose$h(r, e) {
4166
4003
  if (null == r) return {};
4167
4004
  var t = {};
4168
4005
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4169
- if (e.includes(n)) continue;
4006
+ if (-1 !== e.indexOf(n)) continue;
4170
4007
  t[n] = r[n];
4171
4008
  }
4172
4009
  return t;
@@ -4291,8 +4128,8 @@ function _objectWithoutProperties$g(e, t) {
4291
4128
  if (null == e) return {};
4292
4129
  var o, r, i = _objectWithoutPropertiesLoose$g(e, t);
4293
4130
  if (Object.getOwnPropertySymbols) {
4294
- var s = Object.getOwnPropertySymbols(e);
4295
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4131
+ var n = Object.getOwnPropertySymbols(e);
4132
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4296
4133
  }
4297
4134
  return i;
4298
4135
  }
@@ -4300,7 +4137,7 @@ function _objectWithoutPropertiesLoose$g(r, e) {
4300
4137
  if (null == r) return {};
4301
4138
  var t = {};
4302
4139
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4303
- if (e.includes(n)) continue;
4140
+ if (-1 !== e.indexOf(n)) continue;
4304
4141
  t[n] = r[n];
4305
4142
  }
4306
4143
  return t;
@@ -4525,8 +4362,8 @@ function _objectWithoutProperties$f(e, t) {
4525
4362
  if (null == e) return {};
4526
4363
  var o, r, i = _objectWithoutPropertiesLoose$f(e, t);
4527
4364
  if (Object.getOwnPropertySymbols) {
4528
- var s = Object.getOwnPropertySymbols(e);
4529
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4365
+ var n = Object.getOwnPropertySymbols(e);
4366
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4530
4367
  }
4531
4368
  return i;
4532
4369
  }
@@ -4534,7 +4371,7 @@ function _objectWithoutPropertiesLoose$f(r, e) {
4534
4371
  if (null == r) return {};
4535
4372
  var t = {};
4536
4373
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4537
- if (e.includes(n)) continue;
4374
+ if (-1 !== e.indexOf(n)) continue;
4538
4375
  t[n] = r[n];
4539
4376
  }
4540
4377
  return t;
@@ -4725,8 +4562,8 @@ function _objectWithoutProperties$e(e, t) {
4725
4562
  if (null == e) return {};
4726
4563
  var o, r, i = _objectWithoutPropertiesLoose$e(e, t);
4727
4564
  if (Object.getOwnPropertySymbols) {
4728
- var s = Object.getOwnPropertySymbols(e);
4729
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4565
+ var n = Object.getOwnPropertySymbols(e);
4566
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4730
4567
  }
4731
4568
  return i;
4732
4569
  }
@@ -4734,7 +4571,7 @@ function _objectWithoutPropertiesLoose$e(r, e) {
4734
4571
  if (null == r) return {};
4735
4572
  var t = {};
4736
4573
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4737
- if (e.includes(n)) continue;
4574
+ if (-1 !== e.indexOf(n)) continue;
4738
4575
  t[n] = r[n];
4739
4576
  }
4740
4577
  return t;
@@ -4947,8 +4784,8 @@ function _objectWithoutProperties$d(e, t) {
4947
4784
  if (null == e) return {};
4948
4785
  var o, r, i = _objectWithoutPropertiesLoose$d(e, t);
4949
4786
  if (Object.getOwnPropertySymbols) {
4950
- var s = Object.getOwnPropertySymbols(e);
4951
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4787
+ var n = Object.getOwnPropertySymbols(e);
4788
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4952
4789
  }
4953
4790
  return i;
4954
4791
  }
@@ -4956,7 +4793,7 @@ function _objectWithoutPropertiesLoose$d(r, e) {
4956
4793
  if (null == r) return {};
4957
4794
  var t = {};
4958
4795
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
4959
- if (e.includes(n)) continue;
4796
+ if (-1 !== e.indexOf(n)) continue;
4960
4797
  t[n] = r[n];
4961
4798
  }
4962
4799
  return t;
@@ -5000,8 +4837,8 @@ function _objectWithoutProperties$c(e, t) {
5000
4837
  if (null == e) return {};
5001
4838
  var o, r, i = _objectWithoutPropertiesLoose$c(e, t);
5002
4839
  if (Object.getOwnPropertySymbols) {
5003
- var s = Object.getOwnPropertySymbols(e);
5004
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4840
+ var n = Object.getOwnPropertySymbols(e);
4841
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5005
4842
  }
5006
4843
  return i;
5007
4844
  }
@@ -5009,7 +4846,7 @@ function _objectWithoutPropertiesLoose$c(r, e) {
5009
4846
  if (null == r) return {};
5010
4847
  var t = {};
5011
4848
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5012
- if (e.includes(n)) continue;
4849
+ if (-1 !== e.indexOf(n)) continue;
5013
4850
  t[n] = r[n];
5014
4851
  }
5015
4852
  return t;
@@ -5053,8 +4890,8 @@ function _objectWithoutProperties$b(e, t) {
5053
4890
  if (null == e) return {};
5054
4891
  var o, r, i = _objectWithoutPropertiesLoose$b(e, t);
5055
4892
  if (Object.getOwnPropertySymbols) {
5056
- var s = Object.getOwnPropertySymbols(e);
5057
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4893
+ var n = Object.getOwnPropertySymbols(e);
4894
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5058
4895
  }
5059
4896
  return i;
5060
4897
  }
@@ -5062,7 +4899,7 @@ function _objectWithoutPropertiesLoose$b(r, e) {
5062
4899
  if (null == r) return {};
5063
4900
  var t = {};
5064
4901
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5065
- if (e.includes(n)) continue;
4902
+ if (-1 !== e.indexOf(n)) continue;
5066
4903
  t[n] = r[n];
5067
4904
  }
5068
4905
  return t;
@@ -5091,8 +4928,8 @@ function _objectWithoutProperties$a(e, t) {
5091
4928
  if (null == e) return {};
5092
4929
  var o, r, i = _objectWithoutPropertiesLoose$a(e, t);
5093
4930
  if (Object.getOwnPropertySymbols) {
5094
- var s = Object.getOwnPropertySymbols(e);
5095
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4931
+ var n = Object.getOwnPropertySymbols(e);
4932
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5096
4933
  }
5097
4934
  return i;
5098
4935
  }
@@ -5100,7 +4937,7 @@ function _objectWithoutPropertiesLoose$a(r, e) {
5100
4937
  if (null == r) return {};
5101
4938
  var t = {};
5102
4939
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5103
- if (e.includes(n)) continue;
4940
+ if (-1 !== e.indexOf(n)) continue;
5104
4941
  t[n] = r[n];
5105
4942
  }
5106
4943
  return t;
@@ -5132,8 +4969,8 @@ function _objectWithoutProperties$9(e, t) {
5132
4969
  if (null == e) return {};
5133
4970
  var o, r, i = _objectWithoutPropertiesLoose$9(e, t);
5134
4971
  if (Object.getOwnPropertySymbols) {
5135
- var s = Object.getOwnPropertySymbols(e);
5136
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
4972
+ var n = Object.getOwnPropertySymbols(e);
4973
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5137
4974
  }
5138
4975
  return i;
5139
4976
  }
@@ -5141,7 +4978,7 @@ function _objectWithoutPropertiesLoose$9(r, e) {
5141
4978
  if (null == r) return {};
5142
4979
  var t = {};
5143
4980
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5144
- if (e.includes(n)) continue;
4981
+ if (-1 !== e.indexOf(n)) continue;
5145
4982
  t[n] = r[n];
5146
4983
  }
5147
4984
  return t;
@@ -5180,8 +5017,8 @@ function _objectWithoutProperties$8(e, t) {
5180
5017
  if (null == e) return {};
5181
5018
  var o, r, i = _objectWithoutPropertiesLoose$8(e, t);
5182
5019
  if (Object.getOwnPropertySymbols) {
5183
- var s = Object.getOwnPropertySymbols(e);
5184
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5020
+ var n = Object.getOwnPropertySymbols(e);
5021
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5185
5022
  }
5186
5023
  return i;
5187
5024
  }
@@ -5189,7 +5026,7 @@ function _objectWithoutPropertiesLoose$8(r, e) {
5189
5026
  if (null == r) return {};
5190
5027
  var t = {};
5191
5028
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5192
- if (e.includes(n)) continue;
5029
+ if (-1 !== e.indexOf(n)) continue;
5193
5030
  t[n] = r[n];
5194
5031
  }
5195
5032
  return t;
@@ -5291,8 +5128,8 @@ function _objectWithoutProperties$7(e, t) {
5291
5128
  if (null == e) return {};
5292
5129
  var o, r, i = _objectWithoutPropertiesLoose$7(e, t);
5293
5130
  if (Object.getOwnPropertySymbols) {
5294
- var s = Object.getOwnPropertySymbols(e);
5295
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5131
+ var n = Object.getOwnPropertySymbols(e);
5132
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5296
5133
  }
5297
5134
  return i;
5298
5135
  }
@@ -5300,7 +5137,7 @@ function _objectWithoutPropertiesLoose$7(r, e) {
5300
5137
  if (null == r) return {};
5301
5138
  var t = {};
5302
5139
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5303
- if (e.includes(n)) continue;
5140
+ if (-1 !== e.indexOf(n)) continue;
5304
5141
  t[n] = r[n];
5305
5142
  }
5306
5143
  return t;
@@ -5385,8 +5222,8 @@ function _objectWithoutProperties$6(e, t) {
5385
5222
  if (null == e) return {};
5386
5223
  var o, r, i = _objectWithoutPropertiesLoose$6(e, t);
5387
5224
  if (Object.getOwnPropertySymbols) {
5388
- var s = Object.getOwnPropertySymbols(e);
5389
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5225
+ var n = Object.getOwnPropertySymbols(e);
5226
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5390
5227
  }
5391
5228
  return i;
5392
5229
  }
@@ -5394,7 +5231,7 @@ function _objectWithoutPropertiesLoose$6(r, e) {
5394
5231
  if (null == r) return {};
5395
5232
  var t = {};
5396
5233
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5397
- if (e.includes(n)) continue;
5234
+ if (-1 !== e.indexOf(n)) continue;
5398
5235
  t[n] = r[n];
5399
5236
  }
5400
5237
  return t;
@@ -5490,8 +5327,8 @@ function _objectWithoutProperties$5(e, t) {
5490
5327
  if (null == e) return {};
5491
5328
  var o, r, i = _objectWithoutPropertiesLoose$5(e, t);
5492
5329
  if (Object.getOwnPropertySymbols) {
5493
- var s = Object.getOwnPropertySymbols(e);
5494
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5330
+ var n = Object.getOwnPropertySymbols(e);
5331
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5495
5332
  }
5496
5333
  return i;
5497
5334
  }
@@ -5499,7 +5336,7 @@ function _objectWithoutPropertiesLoose$5(r, e) {
5499
5336
  if (null == r) return {};
5500
5337
  var t = {};
5501
5338
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5502
- if (e.includes(n)) continue;
5339
+ if (-1 !== e.indexOf(n)) continue;
5503
5340
  t[n] = r[n];
5504
5341
  }
5505
5342
  return t;
@@ -5613,8 +5450,8 @@ function _objectWithoutProperties$4(e, t) {
5613
5450
  if (null == e) return {};
5614
5451
  var o, r, i = _objectWithoutPropertiesLoose$4(e, t);
5615
5452
  if (Object.getOwnPropertySymbols) {
5616
- var s = Object.getOwnPropertySymbols(e);
5617
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5453
+ var n = Object.getOwnPropertySymbols(e);
5454
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5618
5455
  }
5619
5456
  return i;
5620
5457
  }
@@ -5622,7 +5459,7 @@ function _objectWithoutPropertiesLoose$4(r, e) {
5622
5459
  if (null == r) return {};
5623
5460
  var t = {};
5624
5461
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5625
- if (e.includes(n)) continue;
5462
+ if (-1 !== e.indexOf(n)) continue;
5626
5463
  t[n] = r[n];
5627
5464
  }
5628
5465
  return t;
@@ -5702,8 +5539,8 @@ function _objectWithoutProperties$3(e, t) {
5702
5539
  if (null == e) return {};
5703
5540
  var o, r, i = _objectWithoutPropertiesLoose$3(e, t);
5704
5541
  if (Object.getOwnPropertySymbols) {
5705
- var s = Object.getOwnPropertySymbols(e);
5706
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5542
+ var n = Object.getOwnPropertySymbols(e);
5543
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5707
5544
  }
5708
5545
  return i;
5709
5546
  }
@@ -5711,7 +5548,7 @@ function _objectWithoutPropertiesLoose$3(r, e) {
5711
5548
  if (null == r) return {};
5712
5549
  var t = {};
5713
5550
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5714
- if (e.includes(n)) continue;
5551
+ if (-1 !== e.indexOf(n)) continue;
5715
5552
  t[n] = r[n];
5716
5553
  }
5717
5554
  return t;
@@ -5783,8 +5620,8 @@ function _objectWithoutProperties$2(e, t) {
5783
5620
  if (null == e) return {};
5784
5621
  var o, r, i = _objectWithoutPropertiesLoose$2(e, t);
5785
5622
  if (Object.getOwnPropertySymbols) {
5786
- var s = Object.getOwnPropertySymbols(e);
5787
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5623
+ var n = Object.getOwnPropertySymbols(e);
5624
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5788
5625
  }
5789
5626
  return i;
5790
5627
  }
@@ -5792,7 +5629,7 @@ function _objectWithoutPropertiesLoose$2(r, e) {
5792
5629
  if (null == r) return {};
5793
5630
  var t = {};
5794
5631
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5795
- if (e.includes(n)) continue;
5632
+ if (-1 !== e.indexOf(n)) continue;
5796
5633
  t[n] = r[n];
5797
5634
  }
5798
5635
  return t;
@@ -5877,8 +5714,8 @@ function _objectWithoutProperties$1(e, t) {
5877
5714
  if (null == e) return {};
5878
5715
  var o, r, i = _objectWithoutPropertiesLoose$1(e, t);
5879
5716
  if (Object.getOwnPropertySymbols) {
5880
- var s = Object.getOwnPropertySymbols(e);
5881
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5717
+ var n = Object.getOwnPropertySymbols(e);
5718
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5882
5719
  }
5883
5720
  return i;
5884
5721
  }
@@ -5886,7 +5723,7 @@ function _objectWithoutPropertiesLoose$1(r, e) {
5886
5723
  if (null == r) return {};
5887
5724
  var t = {};
5888
5725
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5889
- if (e.includes(n)) continue;
5726
+ if (-1 !== e.indexOf(n)) continue;
5890
5727
  t[n] = r[n];
5891
5728
  }
5892
5729
  return t;
@@ -6039,8 +5876,8 @@ function _objectWithoutProperties(e, t) {
6039
5876
  if (null == e) return {};
6040
5877
  var o, r, i = _objectWithoutPropertiesLoose(e, t);
6041
5878
  if (Object.getOwnPropertySymbols) {
6042
- var s = Object.getOwnPropertySymbols(e);
6043
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
5879
+ var n = Object.getOwnPropertySymbols(e);
5880
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
6044
5881
  }
6045
5882
  return i;
6046
5883
  }
@@ -6048,7 +5885,7 @@ function _objectWithoutPropertiesLoose(r, e) {
6048
5885
  if (null == r) return {};
6049
5886
  var t = {};
6050
5887
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6051
- if (e.includes(n)) continue;
5888
+ if (-1 !== e.indexOf(n)) continue;
6052
5889
  t[n] = r[n];
6053
5890
  }
6054
5891
  return t;
@@ -6107,58 +5944,57 @@ var Heading6 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
6107
5944
  }, props));
6108
5945
  });
6109
5946
  export {
6110
- ContentWrapper as $,
5947
+ SidebarHeader as $,
6111
5948
  Accordion as A,
6112
5949
  Badge as B,
6113
5950
  Callout as C,
6114
5951
  Drawer as D,
6115
5952
  Element as E,
6116
5953
  Footer as F,
6117
- Modal as G,
5954
+ NotificationsWrapper as G,
6118
5955
  Header as H,
6119
5956
  InputField as I,
6120
- NotificationsWrapper as J,
6121
- NotificationItem as K,
5957
+ NotificationItem as J,
5958
+ Pagination as K,
6122
5959
  ListBox as L,
6123
5960
  Main as M,
6124
5961
  Nav as N,
6125
- Pagination as O,
5962
+ Portion as O,
6126
5963
  PinInputField as P,
6127
- Portion as Q,
5964
+ ProgressBar as Q,
6128
5965
  RadioGroup as R,
6129
5966
  Section as S,
6130
5967
  TextArea as T,
6131
- ProgressBar as U,
6132
- Row as V,
6133
- OptionCard as W,
6134
- OptionCardsGroup as X,
6135
- useOptionCard as Y,
6136
- useOptionCardsGroup as Z,
6137
- SidebarWrapper as _,
5968
+ Row as U,
5969
+ OptionCard as V,
5970
+ OptionCardsGroup as W,
5971
+ useOptionCard as X,
5972
+ useOptionCardsGroup as Y,
5973
+ SidebarWrapper as Z,
5974
+ ContentWrapper as _,
6138
5975
  Button as a,
6139
- SidebarHeader as a0,
6140
- SidebarItem as a1,
6141
- SidebarFooter as a2,
6142
- Skeleton as a3,
6143
- SkeletonGroup as a4,
6144
- Spinner as a5,
6145
- Table as a6,
6146
- Tabs as a7,
6147
- ThemeProvider as a8,
6148
- useTheme as a9,
6149
- ToastsWrapper as aa,
6150
- ToastItem as ab,
6151
- Tooltip as ac,
6152
- Heading1 as ad,
6153
- Heading2 as ae,
6154
- Heading3 as af,
6155
- Heading4 as ag,
6156
- Heading5 as ah,
6157
- Heading6 as ai,
6158
- Text as aj,
6159
- showModal as ak,
6160
- hideModal as al,
6161
- toggleModal as am,
5976
+ SidebarItem as a0,
5977
+ SidebarFooter as a1,
5978
+ Skeleton as a2,
5979
+ SkeletonGroup as a3,
5980
+ Spinner as a4,
5981
+ Table as a5,
5982
+ Tabs as a6,
5983
+ ThemeProvider as a7,
5984
+ useTheme as a8,
5985
+ ToastsWrapper as a9,
5986
+ ToastItem as aa,
5987
+ Tooltip as ab,
5988
+ Heading1 as ac,
5989
+ Heading2 as ad,
5990
+ Heading3 as ae,
5991
+ Heading4 as af,
5992
+ Heading5 as ag,
5993
+ Heading6 as ah,
5994
+ Text as ai,
5995
+ showModal as aj,
5996
+ hideModal as ak,
5997
+ toggleModal as al,
6162
5998
  Breadcrumbs as b,
6163
5999
  Card as c,
6164
6000
  CodeBlock as d,
@@ -6182,6 +6018,6 @@ export {
6182
6018
  SwitchGroup as v,
6183
6019
  Range as w,
6184
6020
  RadioTabGroup as x,
6185
- LoadingBar as y,
6186
- Meter as z
6021
+ Meter as y,
6022
+ Modal as z
6187
6023
  };