@useblu/ocean-react 1.58.0 → 1.59.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js CHANGED
@@ -16,18 +16,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
17
  ***************************************************************************** */
18
18
 
19
- var __assign$1 = function() {
20
- __assign$1 = Object.assign || function __assign(t) {
19
+ var __assign$2 = function() {
20
+ __assign$2 = Object.assign || function __assign(t) {
21
21
  for (var s, i = 1, n = arguments.length; i < n; i++) {
22
22
  s = arguments[i];
23
23
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
24
24
  }
25
25
  return t;
26
26
  };
27
- return __assign$1.apply(this, arguments);
27
+ return __assign$2.apply(this, arguments);
28
28
  };
29
29
 
30
- function __rest$1(s, e) {
30
+ function __rest$2(s, e) {
31
31
  var t = {};
32
32
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
33
33
  t[p] = s[p];
@@ -39,7 +39,7 @@ function __rest$1(s, e) {
39
39
  return t;
40
40
  }
41
41
 
42
- function __spreadArray$1(to, from, pack) {
42
+ function __spreadArray$2(to, from, pack) {
43
43
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
44
44
  if (ar || !(i in from)) {
45
45
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
@@ -150,24 +150,24 @@ var defaultTypesMapping = {
150
150
  caption: 'p'
151
151
  };
152
152
  var Typography = e.forwardRef(function (_a, ref) {
153
- var children = _a.children, variant = _a.variant, className = _a.className, _b = _a.inverse, inverse = _b === void 0 ? false : _b, rest = __rest$1(_a, ["children", "variant", "className", "inverse"]);
153
+ var children = _a.children, variant = _a.variant, className = _a.className, _b = _a.inverse, inverse = _b === void 0 ? false : _b, rest = __rest$2(_a, ["children", "variant", "className", "inverse"]);
154
154
  var Component = defaultTypesMapping[variant];
155
- return (e.createElement(Component, __assign$1({ ref: ref, className: classNames("ods-typography ods-typography__".concat(variant), inverse && 'ods-typography--inverse', className) }, rest), children));
155
+ return (e.createElement(Component, __assign$2({ ref: ref, className: classNames("ods-typography ods-typography__".concat(variant), inverse && 'ods-typography--inverse', className) }, rest), children));
156
156
  });
157
157
  Typography.displayName = 'Typography';
158
158
 
159
159
  var Container = e.forwardRef(function (_a, ref) {
160
- var children = _a.children, _b = _a.fluid, fluid = _b === void 0 ? false : _b, className = _a.className, rest = __rest$1(_a, ["children", "fluid", "className"]);
160
+ var children = _a.children, _b = _a.fluid, fluid = _b === void 0 ? false : _b, className = _a.className, rest = __rest$2(_a, ["children", "fluid", "className"]);
161
161
  var prefix = 'ods-container';
162
162
  var suffix = typeof fluid === 'string' ? "-".concat(fluid) : '-fluid';
163
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames(fluid ? "".concat(prefix).concat(suffix) : prefix, className) }, rest), children));
163
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames(fluid ? "".concat(prefix).concat(suffix) : prefix, className) }, rest), children));
164
164
  });
165
165
  Container.displayName = 'Container';
166
166
 
167
167
  var Row$1 = e.forwardRef(function (_a, ref) {
168
168
  var _b;
169
- var children = _a.children, className = _a.className, _c = _a.noGutters, noGutters = _c === void 0 ? false : _c, xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, rest = __rest$1(_a, ["children", "className", "noGutters", "xs", "sm", "md", "lg", "xl"]);
170
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-row', noGutters && 'ods-no-gutters', (_b = {},
169
+ var children = _a.children, className = _a.className, _c = _a.noGutters, noGutters = _c === void 0 ? false : _c, xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, rest = __rest$2(_a, ["children", "className", "noGutters", "xs", "sm", "md", "lg", "xl"]);
170
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-row', noGutters && 'ods-no-gutters', (_b = {},
171
171
  _b["ods-row-cols-".concat(xs)] = xs,
172
172
  _b["ods-row-cols-sm-".concat(sm)] = sm,
173
173
  _b["ods-row-cols-md-".concat(md)] = md,
@@ -185,7 +185,7 @@ var DEVICE_SIZES = [
185
185
  'xl',
186
186
  ];
187
187
  var Col = e.forwardRef(function (_a, ref) {
188
- var children = _a.children, className = _a.className, rest = __rest$1(_a, ["children", "className"]);
188
+ var children = _a.children, className = _a.className, rest = __rest$2(_a, ["children", "className"]);
189
189
  var prefix = 'ods-col';
190
190
  var classes = [];
191
191
  var hasAnySpan = false;
@@ -211,7 +211,7 @@ var Col = e.forwardRef(function (_a, ref) {
211
211
  });
212
212
  if (!hasAnySpan)
213
213
  classes.unshift(prefix);
214
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames(classes, className) }, rest), children));
214
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames(classes, className) }, rest), children));
215
215
  });
216
216
  Col.displayName = 'Col';
217
217
 
@@ -253,30 +253,30 @@ var TagIcon = e.memo(function (_a) {
253
253
  TagIcon.displayName = 'TagIcon';
254
254
 
255
255
  var Tag = e.forwardRef(function (_a, ref) {
256
- var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, _c = _a.setIconOff, setIconOff = _c === void 0 ? false : _c, rest = __rest$1(_a, ["children", "type", "className", "icon", "setIconOff"]);
257
- return (e.createElement("div", __assign$1({ ref: ref, role: "Tag", className: classNames('ods-tag', "ods-tag--".concat(type), className) }, rest),
256
+ var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, _c = _a.setIconOff, setIconOff = _c === void 0 ? false : _c, rest = __rest$2(_a, ["children", "type", "className", "icon", "setIconOff"]);
257
+ return (e.createElement("div", __assign$2({ ref: ref, role: "Tag", className: classNames('ods-tag', "ods-tag--".concat(type), className) }, rest),
258
258
  !setIconOff && e.createElement(TagIcon, { type: type, icon: icon }),
259
259
  e.createElement("div", { className: "ods-tag__content" }, children)));
260
260
  });
261
261
  Tag.displayName = 'Tag';
262
262
 
263
263
  var List = e.forwardRef(function (_a, ref) {
264
- var children = _a.children, className = _a.className, rest = __rest$1(_a, ["children", "className"]);
265
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-list', className) }, rest), children));
264
+ var children = _a.children, className = _a.className, rest = __rest$2(_a, ["children", "className"]);
265
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-list', className) }, rest), children));
266
266
  });
267
267
  List.displayName = 'List';
268
268
 
269
269
  var SubHeader = e.forwardRef(function (_a, ref) {
270
- var children = _a.children, subtitle = _a.subtitle, className = _a.className, rest = __rest$1(_a, ["children", "subtitle", "className"]);
271
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-sub-header', className) }, rest),
270
+ var children = _a.children, subtitle = _a.subtitle, className = _a.className, rest = __rest$2(_a, ["children", "subtitle", "className"]);
271
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-sub-header', className) }, rest),
272
272
  e.createElement("div", { className: "ods-sub-header__title" }, children),
273
273
  subtitle && e.createElement("div", { className: "ods-sub-header__subtitle" }, subtitle)));
274
274
  });
275
275
  SubHeader.displayName = 'SubHeader';
276
276
 
277
277
  var TransactionListItem = e.forwardRef(function (_a, ref) {
278
- var children = _a.children, level2 = _a.level2, level3 = _a.level3, level4 = _a.level4, icon = _a.icon, value = _a.value, positive = _a.positive, tags = _a.tags, time = _a.time, subItens = _a.subItens, className = _a.className, rest = __rest$1(_a, ["children", "level2", "level3", "level4", "icon", "value", "positive", "tags", "time", "subItens", "className"]);
279
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-transaction-list-item', className) }, rest),
278
+ var children = _a.children, level2 = _a.level2, level3 = _a.level3, level4 = _a.level4, icon = _a.icon, value = _a.value, positive = _a.positive, tags = _a.tags, time = _a.time, subItens = _a.subItens, className = _a.className, withChevron = _a.withChevron, readOnly = _a.readOnly, isLoading = _a.isLoading, rest = __rest$2(_a, ["children", "level2", "level3", "level4", "icon", "value", "positive", "tags", "time", "subItens", "className", "withChevron", "readOnly", "isLoading"]);
279
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-transaction-list-item', { 'ods-transaction-list-item--chevron': withChevron }, { 'ods-transaction-list-item--readonly': readOnly }, { 'ods-transaction-list-item--isloading': isLoading }, className) }, rest),
280
280
  e.createElement("div", { className: "ods-transaction-list-item__content" },
281
281
  icon && e.createElement("div", { className: "ods-transaction-list-item__icon" }, icon),
282
282
  e.createElement("div", { className: "ods-transaction-list-item__information" },
@@ -289,14 +289,16 @@ var TransactionListItem = e.forwardRef(function (_a, ref) {
289
289
  'ods-transaction-list-item__value--positive': positive
290
290
  }) }, value),
291
291
  tags && (e.createElement("div", { className: "ods-transaction-list-item__tags" }, tags)),
292
- time && (e.createElement("div", { className: "ods-transaction-list-item__time" }, time)))),
292
+ time && (e.createElement("div", { className: "ods-transaction-list-item__time" }, time))),
293
+ withChevron && !readOnly && (e.createElement("span", { className: "ods-transaction-list-item__chevron" },
294
+ e.createElement(ee, { size: 20 })))),
293
295
  subItens && (e.createElement("div", { className: "ods-transaction-list-item__sub-itens" }, subItens))));
294
296
  });
295
297
  TransactionListItem.displayName = 'TransactionListItem';
296
298
 
297
299
  var UnorderedListItem = e.forwardRef(function (_a, ref) {
298
- var description = _a.description, Icon = _a.icon, title = _a.title, className = _a.className, iconVariant = _a.iconVariant, rest = __rest$1(_a, ["description", "icon", "title", "className", "iconVariant"]);
299
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-unordered-list-item', className) }, rest),
300
+ var description = _a.description, Icon = _a.icon, title = _a.title, className = _a.className, iconVariant = _a.iconVariant, rest = __rest$2(_a, ["description", "icon", "title", "className", "iconVariant"]);
301
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-unordered-list-item', className) }, rest),
300
302
  Icon && iconVariant !== 'chevron' ? (e.createElement(Icon, { size: iconVariant === 'solid' ? 20 : 24, className: classNames('ods-unordered-list-item__icon', iconVariant === 'solid' && 'ods-unordered-list-item__icon--solid') })) : (e.createElement("span", { className: "ods-unordered-list-item__icon-container" },
301
303
  e.createElement(ee, { size: 16 }))),
302
304
  e.createElement("span", null,
@@ -334,8 +336,8 @@ var IconLg = function () { return (e.createElement("svg", { width: "32", height:
334
336
  e.createElement("path", { d: "M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2307 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16", stroke: "#0025E0", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }))); };
335
337
 
336
338
  var Progress = e.forwardRef(function (_a, ref) {
337
- var _b = _a.onColor, onColor = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, className = _a.className, rest = __rest$1(_a, ["onColor", "size", "className"]);
338
- return (e.createElement("div", __assign$1({ ref: ref, className: classNames('ods-progress', "ods-progress--".concat(size), className, {
339
+ var _b = _a.onColor, onColor = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, className = _a.className, rest = __rest$2(_a, ["onColor", "size", "className"]);
340
+ return (e.createElement("div", __assign$2({ ref: ref, className: classNames('ods-progress', "ods-progress--".concat(size), className, {
339
341
  'ods-progress--on-color': onColor
340
342
  }) }, rest),
341
343
  size === 'sm' && e.createElement(IconSm, null),
@@ -345,9 +347,9 @@ var Progress = e.forwardRef(function (_a, ref) {
345
347
  Progress.displayName = 'Progress';
346
348
 
347
349
  function ButtonBase(_a, ref) {
348
- var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.blocked, blocked = _d === void 0 ? false : _d, _e = _a.loading, loading = _e === void 0 ? false : _e, component = _a.component, rest = __rest$1(_a, ["children", "className", "size", "variant", "blocked", "loading", "component"]);
350
+ var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.blocked, blocked = _d === void 0 ? false : _d, _e = _a.loading, loading = _e === void 0 ? false : _e, component = _a.component, rest = __rest$2(_a, ["children", "className", "size", "variant", "blocked", "loading", "component"]);
349
351
  var onColor = ['primary', 'primaryCritical', 'inverse'].includes(variant);
350
- return e.createElement(component || 'button', __assign$1(__assign$1({ ref: ref, className: classNames('ods-btn', "ods-btn--".concat(size), "ods-btn--".concat(variant.replace(/[A-Z]/g, function (m) { return "-".concat(m.toLowerCase()); })), blocked && 'ods-btn--blocked', className, { 'ods-btn--loading': loading }) }, rest), { onClick: loading ? function () { return false; } : rest.onClick }), loading ? (e.createElement(e.Fragment, null,
352
+ return e.createElement(component || 'button', __assign$2(__assign$2({ ref: ref, className: classNames('ods-btn', "ods-btn--".concat(size), "ods-btn--".concat(variant.replace(/[A-Z]/g, function (m) { return "-".concat(m.toLowerCase()); })), blocked && 'ods-btn--blocked', className, { 'ods-btn--loading': loading }) }, rest), { onClick: loading ? function () { return false; } : rest.onClick }), loading ? (e.createElement(e.Fragment, null,
351
353
  e.createElement(Progress, { size: size, onColor: onColor }),
352
354
  e.createElement("span", null, children))) : (children));
353
355
  }
@@ -368,19 +370,19 @@ var LinkIcons = e.memo(function (_a) {
368
370
  LinkIcons.displayName = 'LinkIcons';
369
371
 
370
372
  var Link = forwardRef(function (_a, ref) {
371
- var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, rest = __rest$1(_a, ["children", "className", "variant", "size", "icon"]);
372
- return (e.createElement("a", __assign$1({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className) }, rest),
373
+ var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon"]);
374
+ return (e.createElement("a", __assign$2({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className) }, rest),
373
375
  e.createElement("span", { className: "ods-link__content" }, children),
374
376
  e.createElement(LinkIcons, { icon: icon })));
375
377
  });
376
378
  Link.displayName = 'Link';
377
379
 
378
380
  var Alert = e.forwardRef(function (_a, ref) {
379
- var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, title = _a.title, className = _a.className, icon = _a.icon, _c = _a.size, size = _c === void 0 ? 'long' : _c, button = _a.button, buttonAction = _a.buttonAction, rest = __rest$1(_a, ["children", "type", "title", "className", "icon", "size", "button", "buttonAction"]);
381
+ var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, title = _a.title, className = _a.className, icon = _a.icon, _c = _a.size, size = _c === void 0 ? 'long' : _c, button = _a.button, buttonAction = _a.buttonAction, rest = __rest$2(_a, ["children", "type", "title", "className", "icon", "size", "button", "buttonAction"]);
380
382
  var alertIcon = e.createElement(AlertIcon, { type: type, icon: icon });
381
383
  var longSize = size === 'long' && !button;
382
384
  var marginHeader = longSize && children && title;
383
- return (e.createElement("div", __assign$1({ ref: ref, role: "alert", className: classNames('ods-alert', "ods-alert--".concat(type), longSize && 'ods-alert--long', className) }, rest), longSize ? (e.createElement(e.Fragment, null,
385
+ return (e.createElement("div", __assign$2({ ref: ref, role: "alert", className: classNames('ods-alert', "ods-alert--".concat(type), longSize && 'ods-alert--long', className) }, rest), longSize ? (e.createElement(e.Fragment, null,
384
386
  e.createElement("div", { className: classNames('ods-alert__header', marginHeader && 'ods-alert__header--margin') },
385
387
  alertIcon,
386
388
  title ? (e.createElement("div", { className: "ods-alert__title" }, title)) : (e.createElement("div", { className: "alert__content" }, children))),
@@ -397,7 +399,7 @@ var Alert = e.forwardRef(function (_a, ref) {
397
399
  });
398
400
  Alert.displayName = 'Alert';
399
401
 
400
- var lib$1 = {};
402
+ var lib$3 = {};
401
403
 
402
404
  var slider = {};
403
405
 
@@ -2495,7 +2497,7 @@ var MapShim = (function () {
2495
2497
  /**
2496
2498
  * Detects whether window and document objects are available in current environment.
2497
2499
  */
2498
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
2500
+ var isBrowser$1 = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
2499
2501
 
2500
2502
  // Returns global object of a current environment.
2501
2503
  var global$1 = (function () {
@@ -2714,7 +2716,7 @@ var ResizeObserverController = /** @class */ (function () {
2714
2716
  ResizeObserverController.prototype.connect_ = function () {
2715
2717
  // Do nothing if running in a non-browser environment or if listeners
2716
2718
  // have been already added.
2717
- if (!isBrowser || this.connected_) {
2719
+ if (!isBrowser$1 || this.connected_) {
2718
2720
  return;
2719
2721
  }
2720
2722
  // Subscription to the "Transitionend" event is used as a workaround for
@@ -2746,7 +2748,7 @@ var ResizeObserverController = /** @class */ (function () {
2746
2748
  ResizeObserverController.prototype.disconnect_ = function () {
2747
2749
  // Do nothing if running in a non-browser environment or if listeners
2748
2750
  // have been already removed.
2749
- if (!isBrowser || !this.connected_) {
2751
+ if (!isBrowser$1 || !this.connected_) {
2750
2752
  return;
2751
2753
  }
2752
2754
  document.removeEventListener('transitionend', this.onTransitionEnd_);
@@ -2994,7 +2996,7 @@ function isDocumentElement(target) {
2994
2996
  * @returns {DOMRectInit}
2995
2997
  */
2996
2998
  function getContentRect(target) {
2997
- if (!isBrowser) {
2999
+ if (!isBrowser$1) {
2998
3000
  return emptyRect;
2999
3001
  }
3000
3002
  if (isSVGGraphicsElement(target)) {
@@ -4981,9 +4983,9 @@ function requireSrc () {
4981
4983
 
4982
4984
  var _default = _slider["default"];
4983
4985
  exports["default"] = _default;
4984
- } (lib$1));
4986
+ } (lib$3));
4985
4987
 
4986
- var Slider = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
4988
+ var Slider = /*@__PURE__*/getDefaultExportFromCjs(lib$3);
4987
4989
 
4988
4990
  var CarouselDotList = function (_a) {
4989
4991
  var dots = _a.dots;
@@ -5011,7 +5013,7 @@ var Carousel = function (_a) {
5011
5013
  autoplaySpeed: 8000
5012
5014
  };
5013
5015
  return (e.createElement("div", { className: classNames('ods-carousel', "columns-".concat(columnsAsNumber)) },
5014
- e.createElement(Slider, __assign$1({}, settings), Children.toArray(children).map(function (child, index) { return (e.createElement("div", { key: index }, child)); }))));
5016
+ e.createElement(Slider, __assign$2({}, settings), Children.toArray(children).map(function (child, index) { return (e.createElement("div", { key: index }, child)); }))));
5015
5017
  };
5016
5018
 
5017
5019
  function useInputFilled(_a) {
@@ -5035,8 +5037,8 @@ function useInputFilled(_a) {
5035
5037
  }
5036
5038
 
5037
5039
  function FormLabelBase(_a, ref) {
5038
- var children = _a.children, className = _a.className, component = _a.component, disabled = _a.disabled, rest = __rest$1(_a, ["children", "className", "component", "disabled"]);
5039
- return e.createElement(component || 'label', __assign$1({ ref: ref, className: classNames('ods-form-label', disabled && 'ods-form-label--disabled', className) }, rest), children);
5040
+ var children = _a.children, className = _a.className, component = _a.component, disabled = _a.disabled, rest = __rest$2(_a, ["children", "className", "component", "disabled"]);
5041
+ return e.createElement(component || 'label', __assign$2({ ref: ref, className: classNames('ods-form-label', disabled && 'ods-form-label--disabled', className) }, rest), children);
5040
5042
  }
5041
5043
  var FormLabel = e.forwardRef(FormLabelBase);
5042
5044
 
@@ -5058,7 +5060,7 @@ var FormControl = function (_a) {
5058
5060
  };
5059
5061
 
5060
5062
  var Input = e.forwardRef(function (_a, ref) {
5061
- var type = _a.type, label = _a.label, helperText = _a.helperText, error = _a.error, disabled = _a.disabled, defaultValue = _a.defaultValue, placeholder = _a.placeholder, tooltipMessage = _a.tooltipMessage, position = _a.position, adornment = _a.adornment, className = _a.className, id = _a.id, onChange = _a.onChange, value = _a.value, rest = __rest$1(_a, ["type", "label", "helperText", "error", "disabled", "defaultValue", "placeholder", "tooltipMessage", "position", "adornment", "className", "id", "onChange", "value"]);
5063
+ var type = _a.type, label = _a.label, helperText = _a.helperText, error = _a.error, disabled = _a.disabled, defaultValue = _a.defaultValue, placeholder = _a.placeholder, tooltipMessage = _a.tooltipMessage, position = _a.position, adornment = _a.adornment, className = _a.className, id = _a.id, onChange = _a.onChange, value = _a.value, rest = __rest$2(_a, ["type", "label", "helperText", "error", "disabled", "defaultValue", "placeholder", "tooltipMessage", "position", "adornment", "className", "id", "onChange", "value"]);
5062
5064
  var _b = useInputFilled({
5063
5065
  defaultValue: defaultValue,
5064
5066
  value: value,
@@ -5066,7 +5068,7 @@ var Input = e.forwardRef(function (_a, ref) {
5066
5068
  }), filled = _b.filled, handleChange = _b.handleChange;
5067
5069
  return (e.createElement(FormControl, { label: label, tooltipMessage: tooltipMessage, htmlFor: id, helperText: helperText, error: error, disabled: disabled },
5068
5070
  e.createElement("div", { className: classNames('ods-input', filled && 'ods-input--filled', disabled && 'ods-input--disabled', error && 'ods-input--error', position === 'left' && 'ods-input--left', adornment && !filled ? 'ods-input--disabled--text' : '', className) },
5069
- e.createElement("input", __assign$1({ ref: ref, type: type || 'text', id: id, disabled: disabled, onChange: handleChange, defaultValue: defaultValue, placeholder: placeholder, value: value }, rest)),
5071
+ e.createElement("input", __assign$2({ ref: ref, type: type || 'text', id: id, disabled: disabled, onChange: handleChange, defaultValue: defaultValue, placeholder: placeholder, value: value }, rest)),
5070
5072
  adornment && (e.createElement("div", { className: classNames('ods-input__adornment', {
5071
5073
  'ods-input__adornment--placeholder': !filled
5072
5074
  }) }, adornment)))));
@@ -5074,39 +5076,39 @@ var Input = e.forwardRef(function (_a, ref) {
5074
5076
  Input.displayName = 'Input';
5075
5077
 
5076
5078
  var Checkbox = e.forwardRef(function (_a, ref) {
5077
- var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$1(_a, ["error", "className", "label", "id", "indeterminate"]);
5079
+ var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$2(_a, ["error", "className", "label", "id", "indeterminate"]);
5078
5080
  return (e.createElement("label", { className: "ods-checkbox__root", htmlFor: id },
5079
- e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
5081
+ e.createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
5080
5082
  e.createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
5081
5083
  label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))));
5082
5084
  });
5083
5085
  Checkbox.displayName = 'Checkbox';
5084
5086
 
5085
5087
  var Radio = e.forwardRef(function (_a, ref) {
5086
- var className = _a.className, label = _a.label, id = _a.id, rest = __rest$1(_a, ["className", "label", "id"]);
5088
+ var className = _a.className, label = _a.label, id = _a.id, rest = __rest$2(_a, ["className", "label", "id"]);
5087
5089
  return (e.createElement("label", { className: "ods-radio__root", htmlFor: id },
5088
- e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-radio', className) }, rest, { type: "radio" })),
5090
+ e.createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-radio', className) }, rest, { type: "radio" })),
5089
5091
  e.createElement("span", { className: "ods-radio__checkmark" }),
5090
5092
  label && (e.createElement("span", { className: "ods-typography ods-typography__description ods-radio__label" }, label))));
5091
5093
  });
5092
5094
  Radio.displayName = 'Radio';
5093
5095
 
5094
5096
  var TextArea = e.forwardRef(function (_a, ref) {
5095
- var className = _a.className, label = _a.label, placeholder = _a.placeholder, helperText = _a.helperText, error = _a.error, id = _a.id, disabled = _a.disabled, onChange = _a.onChange, value = _a.value, defaultValue = _a.defaultValue, rest = __rest$1(_a, ["className", "label", "placeholder", "helperText", "error", "id", "disabled", "onChange", "value", "defaultValue"]);
5097
+ var className = _a.className, label = _a.label, placeholder = _a.placeholder, helperText = _a.helperText, error = _a.error, id = _a.id, disabled = _a.disabled, onChange = _a.onChange, value = _a.value, defaultValue = _a.defaultValue, rest = __rest$2(_a, ["className", "label", "placeholder", "helperText", "error", "id", "disabled", "onChange", "value", "defaultValue"]);
5096
5098
  var _b = useInputFilled({
5097
5099
  defaultValue: defaultValue,
5098
5100
  value: value,
5099
5101
  onChange: onChange
5100
5102
  }), filled = _b.filled, handleChange = _b.handleChange;
5101
5103
  return (e.createElement(FormControl, { label: label, htmlFor: id, helperText: helperText, error: error, disabled: disabled },
5102
- e.createElement("textarea", __assign$1({ ref: ref, id: id, className: classNames('ods-textarea', filled && 'ods-textarea--filled', error && 'ods-textarea--error', className), disabled: disabled, onChange: handleChange, placeholder: placeholder, defaultValue: defaultValue, value: value }, rest))));
5104
+ e.createElement("textarea", __assign$2({ ref: ref, id: id, className: classNames('ods-textarea', filled && 'ods-textarea--filled', error && 'ods-textarea--error', className), disabled: disabled, onChange: handleChange, placeholder: placeholder, defaultValue: defaultValue, value: value }, rest))));
5103
5105
  });
5104
5106
  TextArea.displayName = 'TextArea';
5105
5107
 
5106
5108
  var Context = e.createContext({});
5107
5109
 
5108
5110
  var Option = e.memo(function (option) {
5109
- var label = option.label, className = option.className, id = option.id, index = option.index, rest = __rest$1(option, ["label", "className", "id", "index"]);
5111
+ var label = option.label, className = option.className, id = option.id, index = option.index, rest = __rest$2(option, ["label", "className", "id", "index"]);
5110
5112
  var _a = useContext(Context), selected = _a.selected, onSelect = _a.onSelect, setIsExpanded = _a.setIsExpanded, refSelControl = _a.refSelControl;
5111
5113
  var isSelected = useMemo(function () { return (selected === null || selected === void 0 ? void 0 : selected.index) === index; }, [selected, index]);
5112
5114
  var refOption = useRef(null);
@@ -5123,7 +5125,7 @@ var Option = e.memo(function (option) {
5123
5125
  refSelControl.current.focus();
5124
5126
  setIsExpanded(false);
5125
5127
  }, [onSelect, option, refSelControl, setIsExpanded]);
5126
- return (e.createElement("li", __assign$1({}, rest, { ref: refOption, id: id, role: "option", className: classNames('ods-select__option', isSelected && 'ods-select__option--selected', className), onClick: handleClick, "aria-selected": isSelected || undefined }),
5128
+ return (e.createElement("li", __assign$2({}, rest, { ref: refOption, id: id, role: "option", className: classNames('ods-select__option', isSelected && 'ods-select__option--selected', className), onClick: handleClick, "aria-selected": isSelected || undefined }),
5127
5129
  e.createElement("span", null, label)));
5128
5130
  });
5129
5131
  Option.displayName = 'Option';
@@ -5137,8 +5139,8 @@ var Listbox = e.memo(function (_a) {
5137
5139
  }, []);
5138
5140
  return (e.createElement("div", { className: "ods-select__listbox-wrapper" },
5139
5141
  e.createElement("ul", { ref: refListbox, id: id, tabIndex: -1, role: "listbox", "aria-activedescendant": (selected === null || selected === void 0 ? void 0 : selected.id) || undefined, className: "ods-select__listbox", onKeyDown: onKeyDown }, options.map(function (_a) {
5140
- var value = _a.value, index = _a.index, rest = __rest$1(_a, ["value", "index"]);
5141
- return (e.createElement(Option, __assign$1({ key: value, value: value, index: index }, rest)));
5142
+ var value = _a.value, index = _a.index, rest = __rest$2(_a, ["value", "index"]);
5143
+ return (e.createElement(Option, __assign$2({ key: value, value: value, index: index }, rest)));
5142
5144
  }))));
5143
5145
  });
5144
5146
  Listbox.displayName = 'Listbox';
@@ -5303,7 +5305,7 @@ var useSelect = function (_a) {
5303
5305
  var _d = useState(''), search = _d[0], setSearch = _d[1];
5304
5306
  var currentIndex = selected ? selected.index : -1;
5305
5307
  var optionsMemo = useMemo(function () {
5306
- return options.map(function (opt, index) { return (__assign$1(__assign$1({}, opt), { index: index, id: makeId("option-".concat(opt.value), listboxId) })); });
5308
+ return options.map(function (opt, index) { return (__assign$2(__assign$2({}, opt), { index: index, id: makeId("option-".concat(opt.value), listboxId) })); });
5307
5309
  }, [listboxId, options]);
5308
5310
  var onSelect = useCallback(function (option, canEmitChangeEvent) {
5309
5311
  if (canEmitChangeEvent === void 0) { canEmitChangeEvent = true; }
@@ -5341,7 +5343,7 @@ var useSelect = function (_a) {
5341
5343
  var timer;
5342
5344
  if (search) {
5343
5345
  timer = setTimeout(function () {
5344
- var optionList = __spreadArray$1(__spreadArray$1([], optionsMemo.slice(currentIndex + 1), true), optionsMemo.slice(0, currentIndex + 1), true);
5346
+ var optionList = __spreadArray$2(__spreadArray$2([], optionsMemo.slice(currentIndex + 1), true), optionsMemo.slice(0, currentIndex + 1), true);
5345
5347
  var option = optionList.find(function (o) {
5346
5348
  return o.label.toLowerCase().startsWith(search.toLowerCase());
5347
5349
  });
@@ -5367,7 +5369,7 @@ var useSelect = function (_a) {
5367
5369
  };
5368
5370
 
5369
5371
  var Select = function (_a) {
5370
- var label = _a.label, id = _a.id, helperText = _a.helperText, error = _a.error, optionsProp = _a.options, name = _a.name, value = _a.value, defaultValue = _a.defaultValue, disabled = _a.disabled, ariaLabel = _a.ariaLabel, onChange = _a.onChange, className = _a.className, placeholder = _a.placeholder, rest = __rest$1(_a, ["label", "id", "helperText", "error", "options", "name", "value", "defaultValue", "disabled", "ariaLabel", "onChange", "className", "placeholder"]);
5372
+ var label = _a.label, id = _a.id, helperText = _a.helperText, error = _a.error, optionsProp = _a.options, name = _a.name, value = _a.value, defaultValue = _a.defaultValue, disabled = _a.disabled, ariaLabel = _a.ariaLabel, onChange = _a.onChange, className = _a.className, placeholder = _a.placeholder, rest = __rest$2(_a, ["label", "id", "helperText", "error", "options", "name", "value", "defaultValue", "disabled", "ariaLabel", "onChange", "className", "placeholder"]);
5371
5373
  var _b = useSelect({
5372
5374
  options: optionsProp,
5373
5375
  id: id,
@@ -5421,7 +5423,7 @@ var Select = function (_a) {
5421
5423
  refSelControl: refSelControl
5422
5424
  } },
5423
5425
  e.createElement("div", { className: "ods-select__root", onBlur: onBlurHandler, onFocus: onFocusHandler },
5424
- e.createElement("button", __assign$1({}, rest, { ref: refSelControl, id: controlId, type: "button", className: classNames('ods-select__control', isExpanded && 'ods-select__control--expanded', !isExpanded && selected && 'ods-select__control--filled', error && 'ods-select__control--error', className), disabled: disabled, onClick: function () { return setIsExpanded(!isExpanded); }, onKeyDown: handleKeyDown, "aria-expanded": isExpanded || undefined, "aria-haspopup": "listbox", "aria-labelledby": ariaLabel
5426
+ e.createElement("button", __assign$2({}, rest, { ref: refSelControl, id: controlId, type: "button", className: classNames('ods-select__control', isExpanded && 'ods-select__control--expanded', !isExpanded && selected && 'ods-select__control--filled', error && 'ods-select__control--error', className), disabled: disabled, onClick: function () { return setIsExpanded(!isExpanded); }, onKeyDown: handleKeyDown, "aria-expanded": isExpanded || undefined, "aria-haspopup": "listbox", "aria-labelledby": ariaLabel
5425
5427
  ? undefined
5426
5428
  : [labelId, controlId].filter(Boolean).join(' '), "aria-label": ariaLabel }),
5427
5429
  e.createElement("span", { className: classNames('ods-select__value', {
@@ -5438,14 +5440,14 @@ var Select = function (_a) {
5438
5440
  };
5439
5441
 
5440
5442
  var Switch = e.forwardRef(function (_a, ref) {
5441
- var className = _a.className, id = _a.id, rest = __rest$1(_a, ["className", "id"]);
5443
+ var className = _a.className, id = _a.id, rest = __rest$2(_a, ["className", "id"]);
5442
5444
  return (e.createElement("label", { className: "ods-switch__root", htmlFor: id },
5443
- e.createElement("input", __assign$1({ ref: ref, id: id, className: classNames('ods-switch', className) }, rest, { type: "checkbox" })),
5445
+ e.createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-switch', className) }, rest, { type: "checkbox" })),
5444
5446
  e.createElement("span", { className: "ods-switch__slider" })));
5445
5447
  });
5446
5448
  Switch.displayName = 'Switch';
5447
5449
 
5448
- var lib = {exports: {}};
5450
+ var lib$2 = {exports: {}};
5449
5451
 
5450
5452
  var Modal$2 = {};
5451
5453
 
@@ -8252,14 +8254,14 @@ Modal$2.default = Modal$1;
8252
8254
 
8253
8255
  exports.default = _Modal2.default;
8254
8256
  module.exports = exports["default"];
8255
- } (lib, lib.exports));
8257
+ } (lib$2, lib$2.exports));
8256
8258
 
8257
- var ReactModal = /*@__PURE__*/getDefaultExportFromCjs(lib.exports);
8259
+ var ReactModal = /*@__PURE__*/getDefaultExportFromCjs(lib$2.exports);
8258
8260
 
8259
8261
  var Modal = function (_a) {
8260
8262
  var _b;
8261
- var children = _a.children, _c = _a.maxWidth, maxWidth = _c === void 0 ? false : _c, _d = _a.disableClose, disableClose = _d === void 0 ? false : _d, _e = _a.blocked, blocked = _e === void 0 ? false : _e, onRequestClose = _a.onRequestClose, rest = __rest$1(_a, ["children", "maxWidth", "disableClose", "blocked", "onRequestClose"]);
8262
- return (e.createElement(ReactModal, __assign$1({ closeTimeoutMS: 150, portalClassName: "ods-modal", overlayClassName: {
8263
+ var children = _a.children, _c = _a.maxWidth, maxWidth = _c === void 0 ? false : _c, _d = _a.disableClose, disableClose = _d === void 0 ? false : _d, _e = _a.blocked, blocked = _e === void 0 ? false : _e, onRequestClose = _a.onRequestClose, rest = __rest$2(_a, ["children", "maxWidth", "disableClose", "blocked", "onRequestClose"]);
8264
+ return (e.createElement(ReactModal, __assign$2({ closeTimeoutMS: 150, portalClassName: "ods-modal", overlayClassName: {
8263
8265
  base: 'ods-modal__overlay',
8264
8266
  afterOpen: 'ods-modal__overlay--after-open',
8265
8267
  beforeClose: 'ods-modal__overlay--before-close'
@@ -8277,19 +8279,19 @@ var Modal = function (_a) {
8277
8279
  };
8278
8280
 
8279
8281
  var Divider = e.forwardRef(function (_a, ref) {
8280
- var className = _a.className, rest = __rest$1(_a, ["className"]);
8281
- return (e.createElement("hr", __assign$1({ ref: ref, className: classNames('ods-divider', className) }, rest)));
8282
+ var className = _a.className, rest = __rest$2(_a, ["className"]);
8283
+ return (e.createElement("hr", __assign$2({ ref: ref, className: classNames('ods-divider', className) }, rest)));
8282
8284
  });
8283
8285
  Divider.displayName = 'Divider';
8284
8286
 
8285
8287
  function IconButtonBase(_a, ref) {
8286
- var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, component = _a.component, rest = __rest$1(_a, ["children", "className", "size", "disabled", "component"]);
8287
- return e.createElement(component || 'button', __assign$1({ ref: ref, className: classNames('ods-icon-btn', "ods-icon-btn--".concat(size), disabled && 'ods-icon-btn--disabled', className) }, rest), children);
8288
+ var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, component = _a.component, rest = __rest$2(_a, ["children", "className", "size", "disabled", "component"]);
8289
+ return e.createElement(component || 'button', __assign$2({ ref: ref, className: classNames('ods-icon-btn', "ods-icon-btn--".concat(size), disabled && 'ods-icon-btn--disabled', className) }, rest), children);
8288
8290
  }
8289
8291
  var IconButton = e.forwardRef(IconButtonBase);
8290
8292
 
8291
8293
  var Search = e.forwardRef(function (_a, ref) {
8292
- var className = _a.className, id = _a.id, disabled = _a.disabled, value = _a.value, defaultValue = _a.defaultValue, placeholder = _a.placeholder, onChange = _a.onChange, rest = __rest$1(_a, ["className", "id", "disabled", "value", "defaultValue", "placeholder", "onChange"]);
8294
+ var className = _a.className, id = _a.id, disabled = _a.disabled, value = _a.value, defaultValue = _a.defaultValue, placeholder = _a.placeholder, onChange = _a.onChange, rest = __rest$2(_a, ["className", "id", "disabled", "value", "defaultValue", "placeholder", "onChange"]);
8293
8295
  var _b = useInputFilled({
8294
8296
  defaultValue: defaultValue,
8295
8297
  value: value,
@@ -8299,7 +8301,7 @@ var Search = e.forwardRef(function (_a, ref) {
8299
8301
  e.createElement("div", { className: classNames('ods-search', filled && 'ods-search--filled', disabled && 'ods-search--disabled', className) },
8300
8302
  e.createElement("div", { className: "ods-search__adornment" },
8301
8303
  e.createElement(jt, null)),
8302
- e.createElement("input", __assign$1({ ref: ref, type: "text", id: id, disabled: disabled, onChange: handleChange, placeholder: placeholder, defaultValue: defaultValue, value: value }, rest)),
8304
+ e.createElement("input", __assign$2({ ref: ref, type: "text", id: id, disabled: disabled, onChange: handleChange, placeholder: placeholder, defaultValue: defaultValue, value: value }, rest)),
8303
8305
  filled && (e.createElement(IconButton, { "data-testid": "close", onClick: function () {
8304
8306
  var e = {
8305
8307
  target: { value: '' }
@@ -25534,7 +25536,7 @@ var lodash = {exports: {}};
25534
25536
  } (lodash, lodash.exports));
25535
25537
 
25536
25538
  var Stepper = e.forwardRef(function (_a, ref) {
25537
- var className = _a.className, label = _a.label, helperText = _a.helperText, error = _a.error, id = _a.id, disabled = _a.disabled, onChange = _a.onChange, value = _a.value, defaultValue = _a.defaultValue, _b = _a.min, min = _b === void 0 ? 0 : _b, max = _a.max, rest = __rest$1(_a, ["className", "label", "helperText", "error", "id", "disabled", "onChange", "value", "defaultValue", "min", "max"]);
25539
+ var className = _a.className, label = _a.label, helperText = _a.helperText, error = _a.error, id = _a.id, disabled = _a.disabled, onChange = _a.onChange, value = _a.value, defaultValue = _a.defaultValue, _b = _a.min, min = _b === void 0 ? 0 : _b, max = _a.max, rest = __rest$2(_a, ["className", "label", "helperText", "error", "id", "disabled", "onChange", "value", "defaultValue", "min", "max"]);
25538
25540
  var _c = useInputFilled({
25539
25541
  defaultValue: defaultValue,
25540
25542
  value: value,
@@ -25587,7 +25589,7 @@ var Stepper = e.forwardRef(function (_a, ref) {
25587
25589
  e.createElement("div", { className: "ods-input--amount__stepper-controls ods-input--amount__stepper-controls_minus" },
25588
25590
  e.createElement(IconButton, { size: "sm", disabled: amount <= min || disabled, type: "button", onClick: deduceFromAmount },
25589
25591
  e.createElement(Fr, { size: 24 }))),
25590
- e.createElement("input", __assign$1({ ref: ref, type: "text", id: id, disabled: disabled, onKeyDown: handleListboxKeyDown, onChange: function (e) {
25592
+ e.createElement("input", __assign$2({ ref: ref, type: "text", id: id, disabled: disabled, onKeyDown: handleListboxKeyDown, onChange: function (e) {
25591
25593
  handleChange(e);
25592
25594
  var target = e.target;
25593
25595
  var inputedValue = parseFloat(target.value);
@@ -25629,9 +25631,9 @@ var Steps = function (_a) {
25629
25631
  };
25630
25632
 
25631
25633
  var Badge = e.forwardRef(function (_a, ref) {
25632
- var children = _a.children, _b = _a.variation, variation = _b === void 0 ? 'small' : _b, className = _a.className, count = _a.count, color = _a.color, rest = __rest$1(_a, ["children", "variation", "className", "count", "color"]);
25634
+ var children = _a.children, _b = _a.variation, variation = _b === void 0 ? 'small' : _b, className = _a.className, count = _a.count, color = _a.color, rest = __rest$2(_a, ["children", "variation", "className", "count", "color"]);
25633
25635
  var countToShow = count && count > 99 ? "99+" : count;
25634
- return (e.createElement("div", __assign$1({ ref: ref, role: "tag", className: classNames('ods-badge', "ods-badge--".concat(variation), "ods-badge--".concat(color), className, {
25636
+ return (e.createElement("div", __assign$2({ ref: ref, role: "tag", className: classNames('ods-badge', "ods-badge--".concat(variation), "ods-badge--".concat(color), className, {
25635
25637
  'ods-badge--overflow': count && count > 9
25636
25638
  }) }, rest),
25637
25639
  variation !== 'tiny' && typeof count !== 'undefined' && (e.createElement("div", { className: "ods-badge__content ods-badge__count" }, countToShow)),
@@ -25641,8 +25643,8 @@ var Badge = e.forwardRef(function (_a, ref) {
25641
25643
  Badge.displayName = 'Badge';
25642
25644
 
25643
25645
  var CrossSellCard = e.forwardRef(function (_a, ref) {
25644
- var title = _a.title, className = _a.className, description = _a.description, imageSrc = _a.imageSrc, ctaText = _a.ctaText, ctaAction = _a.ctaAction, customIcon = _a.customIcon, rest = __rest$1(_a, ["title", "className", "description", "imageSrc", "ctaText", "ctaAction", "customIcon"]);
25645
- return (e.createElement("div", __assign$1({ ref: ref }, rest, { className: classNames('ods-cross-sell-card', className) }),
25646
+ var title = _a.title, className = _a.className, description = _a.description, imageSrc = _a.imageSrc, ctaText = _a.ctaText, ctaAction = _a.ctaAction, customIcon = _a.customIcon, rest = __rest$2(_a, ["title", "className", "description", "imageSrc", "ctaText", "ctaAction", "customIcon"]);
25647
+ return (e.createElement("div", __assign$2({ ref: ref }, rest, { className: classNames('ods-cross-sell-card', className) }),
25646
25648
  e.createElement("a", { className: "ods-cross-sell-card__content" },
25647
25649
  e.createElement("div", { className: "ods-cross-sell-card__information" },
25648
25650
  e.createElement("div", { className: "ods-cross-sell-card__title" }, title),
@@ -31531,18 +31533,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31531
31533
  PERFORMANCE OF THIS SOFTWARE.
31532
31534
  ***************************************************************************** */
31533
31535
 
31534
- var __assign = function() {
31535
- __assign = Object.assign || function __assign(t) {
31536
+ var __assign$1 = function() {
31537
+ __assign$1 = Object.assign || function __assign(t) {
31536
31538
  for (var s, i = 1, n = arguments.length; i < n; i++) {
31537
31539
  s = arguments[i];
31538
31540
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31539
31541
  }
31540
31542
  return t;
31541
31543
  };
31542
- return __assign.apply(this, arguments);
31544
+ return __assign$1.apply(this, arguments);
31543
31545
  };
31544
31546
 
31545
- function __rest(s, e) {
31547
+ function __rest$1(s, e) {
31546
31548
  var t = {};
31547
31549
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31548
31550
  t[p] = s[p];
@@ -31554,7 +31556,7 @@ function __rest(s, e) {
31554
31556
  return t;
31555
31557
  }
31556
31558
 
31557
- function __spreadArray(to, from, pack) {
31559
+ function __spreadArray$1(to, from, pack) {
31558
31560
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
31559
31561
  if (ar || !(i in from)) {
31560
31562
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
@@ -31939,24 +31941,24 @@ function DayPickerProvider(props) {
31939
31941
  var value = {
31940
31942
  captionLayout: captionLayout,
31941
31943
  className: initialProps.className,
31942
- classNames: __assign(__assign({}, defaults.classNames), initialProps.classNames),
31943
- components: __assign(__assign({}, defaults.components), initialProps.components),
31944
+ classNames: __assign$1(__assign$1({}, defaults.classNames), initialProps.classNames),
31945
+ components: __assign$1(__assign$1({}, defaults.components), initialProps.components),
31944
31946
  defaultMonth: initialProps.defaultMonth,
31945
31947
  dir: initialProps.dir,
31946
31948
  disabled: initialProps.disabled,
31947
31949
  disableNavigation: initialProps.disableNavigation,
31948
31950
  fixedWeeks: initialProps.fixedWeeks,
31949
31951
  footer: initialProps.footer,
31950
- formatters: __assign(__assign({}, defaults.formatters), initialProps.formatters),
31952
+ formatters: __assign$1(__assign$1({}, defaults.formatters), initialProps.formatters),
31951
31953
  fromDate: fromDate,
31952
31954
  hidden: initialProps.hidden,
31953
31955
  hideHead: initialProps.hideHead,
31954
31956
  initialFocus: initialProps.initialFocus,
31955
- labels: __assign(__assign({}, defaults.labels), initialProps.labels),
31957
+ labels: __assign$1(__assign$1({}, defaults.labels), initialProps.labels),
31956
31958
  locale: (_b = initialProps.locale) !== null && _b !== void 0 ? _b : defaults.locale,
31957
31959
  mode: initialProps.mode || 'default',
31958
- modifiers: __assign(__assign({}, defaults.modifiers), initialProps.modifiers),
31959
- modifiersClassNames: __assign(__assign({}, defaults.modifiersClassNames), initialProps.modifiersClassNames),
31960
+ modifiers: __assign$1(__assign$1({}, defaults.modifiers), initialProps.modifiers),
31961
+ modifiersClassNames: __assign$1(__assign$1({}, defaults.modifiersClassNames), initialProps.modifiersClassNames),
31960
31962
  modifiersStyles: initialProps.modifiersStyles,
31961
31963
  month: initialProps.month,
31962
31964
  numberOfMonths: (_c = initialProps.numberOfMonths) !== null && _c !== void 0 ? _c : defaults.numberOfMonths,
@@ -31982,7 +31984,7 @@ function DayPickerProvider(props) {
31982
31984
  showOutsideDays: initialProps.showOutsideDays,
31983
31985
  showWeekNumber: initialProps.showWeekNumber,
31984
31986
  style: initialProps.style,
31985
- styles: __assign(__assign({}, defaults.styles), initialProps.styles),
31987
+ styles: __assign$1(__assign$1({}, defaults.styles), initialProps.styles),
31986
31988
  toDate: toDate,
31987
31989
  today: (_d = initialProps.today) !== null && _d !== void 0 ? _d : defaults.today,
31988
31990
  weekStartsOn: initialProps.weekStartsOn
@@ -32014,7 +32016,7 @@ function CaptionLabel(props) {
32014
32016
  * Render the icon in the styled drop-down.
32015
32017
  */
32016
32018
  function IconDropdown(props) {
32017
- return (e.createElement("svg", __assign({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, props),
32019
+ return (e.createElement("svg", __assign$1({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, props),
32018
32020
  e.createElement("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" })));
32019
32021
  }
32020
32022
 
@@ -32289,7 +32291,7 @@ function CaptionDropdowns(props) {
32289
32291
  * Render the "previous month" button in the navigation.
32290
32292
  */
32291
32293
  function IconLeft(props) {
32292
- return (e.createElement("svg", __assign({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props),
32294
+ return (e.createElement("svg", __assign$1({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props),
32293
32295
  e.createElement("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" })));
32294
32296
  }
32295
32297
 
@@ -32297,7 +32299,7 @@ function IconLeft(props) {
32297
32299
  * Render the "next month" button in the navigation.
32298
32300
  */
32299
32301
  function IconRight(props) {
32300
- return (e.createElement("svg", __assign({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props),
32302
+ return (e.createElement("svg", __assign$1({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, props),
32301
32303
  e.createElement("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" })));
32302
32304
  }
32303
32305
 
@@ -32311,11 +32313,11 @@ var Button = forwardRef(function (props, ref) {
32311
32313
  classNamesArr.push(props.className);
32312
32314
  }
32313
32315
  var className = classNamesArr.join(' ');
32314
- var style = __assign(__assign({}, styles.button_reset), styles.button);
32316
+ var style = __assign$1(__assign$1({}, styles.button_reset), styles.button);
32315
32317
  if (props.style) {
32316
32318
  Object.assign(style, props.style);
32317
32319
  }
32318
- return (e.createElement("button", __assign({}, props, { ref: ref, type: "button", className: className, style: style })));
32320
+ return (e.createElement("button", __assign$1({}, props, { ref: ref, type: "button", className: className, style: style })));
32319
32321
  });
32320
32322
 
32321
32323
  /** A component rendering the navigation buttons or the drop-downs. */
@@ -32489,7 +32491,7 @@ function SelectMultipleProviderInternal(_a) {
32489
32491
  if (isMaxSelected) {
32490
32492
  return;
32491
32493
  }
32492
- var selectedDays = selected ? __spreadArray([], selected, true) : [];
32494
+ var selectedDays = selected ? __spreadArray$1([], selected, true) : [];
32493
32495
  if (activeModifiers.selected) {
32494
32496
  var index = selectedDays.findIndex(function (selectedDay) {
32495
32497
  return isSameDay(day, selectedDay);
@@ -32748,7 +32750,7 @@ function ModifiersProvider(props) {
32748
32750
  var selectRange = useSelectRange();
32749
32751
  var internalModifiers = getInternalModifiers(dayPicker, selectMultiple, selectRange);
32750
32752
  var customModifiers = getCustomModifiers(dayPicker.modifiers);
32751
- var modifiers = __assign(__assign({}, internalModifiers), customModifiers);
32753
+ var modifiers = __assign$1(__assign$1({}, internalModifiers), customModifiers);
32752
32754
  return (e.createElement(ModifiersContext.Provider, { value: modifiers }, props.children));
32753
32755
  }
32754
32756
 
@@ -33296,10 +33298,10 @@ function getDayClassNames(dayPicker, activeModifiers) {
33296
33298
 
33297
33299
  /** Return the style for the Day element, according to the given active modifiers. */
33298
33300
  function getDayStyle(dayPicker, activeModifiers) {
33299
- var style = __assign({}, dayPicker.styles.day);
33301
+ var style = __assign$1({}, dayPicker.styles.day);
33300
33302
  Object.keys(activeModifiers).forEach(function (modifier) {
33301
33303
  var _a;
33302
- style = __assign(__assign({}, style), (_a = dayPicker.modifiersStyles) === null || _a === void 0 ? void 0 : _a[modifier]);
33304
+ style = __assign$1(__assign$1({}, style), (_a = dayPicker.modifiersStyles) === null || _a === void 0 ? void 0 : _a[modifier]);
33303
33305
  });
33304
33306
  return style;
33305
33307
  }
@@ -33363,7 +33365,7 @@ function useDayRender(day, displayMonth, buttonRef) {
33363
33365
  children: children
33364
33366
  };
33365
33367
  var isFocusTarget = Boolean(focusContext.focusTarget && isSameDay(focusContext.focusTarget, day));
33366
- var buttonProps = __assign(__assign(__assign({}, divProps), (_a = {}, _a['aria-disabled'] = activeModifiers.disabled, _a['aria-pressed'] = activeModifiers.selected, _a.tabIndex = isFocusTarget ? 0 : -1, _a)), eventHandlers);
33368
+ var buttonProps = __assign$1(__assign$1(__assign$1({}, divProps), (_a = {}, _a['aria-disabled'] = activeModifiers.disabled, _a['aria-pressed'] = activeModifiers.selected, _a.tabIndex = isFocusTarget ? 0 : -1, _a)), eventHandlers);
33367
33369
  var dayRender = {
33368
33370
  isButton: isButton,
33369
33371
  isHidden: isHidden,
@@ -33386,9 +33388,9 @@ function Day(props) {
33386
33388
  return e.createElement(e.Fragment, null);
33387
33389
  }
33388
33390
  if (!dayRender.isButton) {
33389
- return e.createElement("div", __assign({}, dayRender.divProps));
33391
+ return e.createElement("div", __assign$1({}, dayRender.divProps));
33390
33392
  }
33391
- return e.createElement(Button, __assign({ ref: buttonRef }, dayRender.buttonProps));
33393
+ return e.createElement(Button, __assign$1({ ref: buttonRef }, dayRender.buttonProps));
33392
33394
  }
33393
33395
 
33394
33396
  /**
@@ -33509,15 +33511,15 @@ function Month(props) {
33509
33511
  }
33510
33512
  if (isStart) {
33511
33513
  className.push(classNames.caption_start);
33512
- style = __assign(__assign({}, style), styles.caption_start);
33514
+ style = __assign$1(__assign$1({}, style), styles.caption_start);
33513
33515
  }
33514
33516
  if (isEnd) {
33515
33517
  className.push(classNames.caption_end);
33516
- style = __assign(__assign({}, style), styles.caption_end);
33518
+ style = __assign$1(__assign$1({}, style), styles.caption_end);
33517
33519
  }
33518
33520
  if (isCenter) {
33519
33521
  className.push(classNames.caption_between);
33520
- style = __assign(__assign({}, style), styles.caption_between);
33522
+ style = __assign$1(__assign$1({}, style), styles.caption_between);
33521
33523
  }
33522
33524
  var CaptionComponent = (_b = components === null || components === void 0 ? void 0 : components.Caption) !== null && _b !== void 0 ? _b : Caption;
33523
33525
  return (e.createElement("div", { key: props.displayIndex, className: className.join(' '), style: style },
@@ -33557,14 +33559,14 @@ function Root() {
33557
33559
  if (dayPicker.showWeekNumber) {
33558
33560
  classNames.push(dayPicker.classNames.with_weeknumber);
33559
33561
  }
33560
- var style = __assign(__assign({}, dayPicker.styles.root), dayPicker.style);
33562
+ var style = __assign$1(__assign$1({}, dayPicker.styles.root), dayPicker.style);
33561
33563
  return (e.createElement("div", { className: classNames.join(' '), style: style, dir: dayPicker.dir },
33562
33564
  e.createElement("div", { className: dayPicker.classNames.months, style: dayPicker.styles.months }, navigation.displayMonths.map(function (month, i) { return (e.createElement(Month, { key: i, displayIndex: i, displayMonth: month })); }))));
33563
33565
  }
33564
33566
 
33565
33567
  /** Provide the value for all the context providers. */
33566
33568
  function RootProvider(props) {
33567
- var children = props.children, initialProps = __rest(props, ["children"]);
33569
+ var children = props.children, initialProps = __rest$1(props, ["children"]);
33568
33570
  return (e.createElement(DayPickerProvider, { initialProps: initialProps },
33569
33571
  e.createElement(NavigationProvider, null,
33570
33572
  e.createElement(SelectSingleProvider, { initialProps: initialProps },
@@ -33575,7 +33577,7 @@ function RootProvider(props) {
33575
33577
  }
33576
33578
 
33577
33579
  function DayPicker(props) {
33578
- return (e.createElement(RootProvider, __assign({}, props),
33580
+ return (e.createElement(RootProvider, __assign$1({}, props),
33579
33581
  e.createElement(Root, null)));
33580
33582
  }
33581
33583
 
@@ -34118,11 +34120,11 @@ var DatePickerHeader = function (_a) {
34118
34120
  };
34119
34121
 
34120
34122
  var DatePickerSingle = e.forwardRef(function (_a, ref) {
34121
- var label = _a.label, value = _a.value, onSelect = _a.onSelect, editable = _a.editable, disabled = _a.disabled, error = _a.error, helperText = _a.helperText, startsToday = _a.startsToday, className = _a.className, locale = _a.locale, rest = __rest$1(_a, ["label", "value", "onSelect", "editable", "disabled", "error", "helperText", "startsToday", "className", "locale"]);
34123
+ var label = _a.label, value = _a.value, onSelect = _a.onSelect, editable = _a.editable, disabled = _a.disabled, error = _a.error, helperText = _a.helperText, startsToday = _a.startsToday, className = _a.className, locale = _a.locale, rest = __rest$2(_a, ["label", "value", "onSelect", "editable", "disabled", "error", "helperText", "startsToday", "className", "locale"]);
34122
34124
  var _b = useDatePickerSingle({ value: value, onSelect: onSelect, startsToday: startsToday, locale: locale }), input1Ref = _b.input1Ref, showDayPicker = _b.showDayPicker, selectedDay = _b.selectedDay, CustomStyles = _b.CustomStyles, localeOption = _b.localeOption, currentField = _b.currentField, inputPlaceholder = _b.inputPlaceholder, handleDayClick = _b.handleDayClick, inputChange = _b.inputChange, createHandleToggleClick = _b.createHandleToggleClick, disabledDays = _b.disabledDays, formatDay = _b.formatDay, handleCloseByOutside = _b.handleCloseByOutside, currentMonthToDisplay = _b.currentMonthToDisplay;
34123
34125
  return (e.createElement("div", null,
34124
34126
  showDayPicker && (e.createElement("div", { className: "ods-date-background", "data-testid": "date-picker-outside", onClick: handleCloseByOutside })),
34125
- e.createElement("div", __assign$1({ className: classNames('ods-date', className), ref: ref }, rest),
34127
+ e.createElement("div", __assign$2({ className: classNames('ods-date', className), ref: ref }, rest),
34126
34128
  e.createElement("div", { className: "ods-date__form-row-datepicker" },
34127
34129
  e.createElement("div", { className: "ods-date__form-controls", "data-testid": "date-picker-first-field-wrapper", onClick: function () { return createHandleToggleClick('start-date'); } },
34128
34130
  label && e.createElement("label", { htmlFor: "start-date" }, label),
@@ -34321,11 +34323,11 @@ function useDatePicker(_a) {
34321
34323
  }
34322
34324
 
34323
34325
  var DatePickerRange = e.forwardRef(function (_a, ref) {
34324
- var labels = _a.labels, values = _a.values, onSelect = _a.onSelect, editable = _a.editable, disabled = _a.disabled, error = _a.error, helperText = _a.helperText, startsToday = _a.startsToday, className = _a.className, locale = _a.locale, rest = __rest$1(_a, ["labels", "values", "onSelect", "editable", "disabled", "error", "helperText", "startsToday", "className", "locale"]);
34326
+ var labels = _a.labels, values = _a.values, onSelect = _a.onSelect, editable = _a.editable, disabled = _a.disabled, error = _a.error, helperText = _a.helperText, startsToday = _a.startsToday, className = _a.className, locale = _a.locale, rest = __rest$2(_a, ["labels", "values", "onSelect", "editable", "disabled", "error", "helperText", "startsToday", "className", "locale"]);
34325
34327
  var _b = useDatePicker({ values: values, onSelect: onSelect, startsToday: startsToday, locale: locale }), input1Ref = _b.input1Ref, input2Ref = _b.input2Ref, showDayPicker = _b.showDayPicker, selectedDays = _b.selectedDays, CustomStyles = _b.CustomStyles, localeOption = _b.localeOption, currentField = _b.currentField, inputPlaceholder = _b.inputPlaceholder, handleDayMouseEnter = _b.handleDayMouseEnter, handleDayClick = _b.handleDayClick, handleDisplayMonth = _b.handleDisplayMonth, inputChange = _b.inputChange, createHandleToggleClick = _b.createHandleToggleClick, disabledDays = _b.disabledDays, formatDay = _b.formatDay, handleCloseByOutside = _b.handleCloseByOutside, currentMonthToDisplay = _b.currentMonthToDisplay;
34326
34328
  return (e.createElement("div", null,
34327
34329
  showDayPicker && (e.createElement("div", { className: "ods-date-background", "data-testid": "date-picker-outside", onClick: handleCloseByOutside })),
34328
- e.createElement("div", __assign$1({ className: classNames('ods-date', className), ref: ref }, rest),
34330
+ e.createElement("div", __assign$2({ className: classNames('ods-date', className), ref: ref }, rest),
34329
34331
  e.createElement("div", { className: "ods-date__form-row" },
34330
34332
  e.createElement("div", { className: "ods-date__form-controls", "data-testid": "date-picker-first-field-wrapper", onClick: function () { return createHandleToggleClick('start-date'); } },
34331
34333
  labels && labels.from && (e.createElement("label", { htmlFor: "start-date" }, labels.from)),
@@ -46259,7 +46261,7 @@ const Doughnut = /* #__PURE__ */ createTypedChart('doughnut', DoughnutController
46259
46261
 
46260
46262
  Chart$1.register(ArcElement);
46261
46263
  var DoughnutChart = function (_a) {
46262
- var title = _a.title, subtitle = _a.subtitle, className = _a.className, centerChartLabel = _a.centerChartLabel, centerChartValue = _a.centerChartValue, data = _a.data, rest = __rest$1(_a, ["title", "subtitle", "className", "centerChartLabel", "centerChartValue", "data"]);
46264
+ var title = _a.title, subtitle = _a.subtitle, className = _a.className, centerChartLabel = _a.centerChartLabel, centerChartValue = _a.centerChartValue, data = _a.data, rest = __rest$2(_a, ["title", "subtitle", "className", "centerChartLabel", "centerChartValue", "data"]);
46263
46265
  var formatedData = {
46264
46266
  datasets: [
46265
46267
  {
@@ -46278,12 +46280,12 @@ var DoughnutChart = function (_a) {
46278
46280
  borderWidth: 0,
46279
46281
  cutout: '64%'
46280
46282
  };
46281
- return (e.createElement("div", __assign$1({ className: classNames('ods-chart', className) }, rest),
46283
+ return (e.createElement("div", __assign$2({ className: classNames('ods-chart', className) }, rest),
46282
46284
  e.createElement("div", { className: "ods-chart__title-and-subtitle" },
46283
46285
  e.createElement("div", { className: "ods-typography ods-typography__heading4" }, title),
46284
46286
  e.createElement("div", { className: "ods-typography ods-typography__caption" }, subtitle)),
46285
46287
  e.createElement("div", { className: "ods-chart__canvas" },
46286
- e.createElement(Doughnut, { height: 180, width: 180, data: __assign$1({}, formatedData), options: options }),
46288
+ e.createElement(Doughnut, { height: 180, width: 180, data: __assign$2({}, formatedData), options: options }),
46287
46289
  e.createElement("div", { className: "ods-chart__canvas__center-legend" },
46288
46290
  e.createElement("div", { className: "ods-typography ods-typography__heading2" }, centerChartValue),
46289
46291
  e.createElement("p", { className: "ods-typography ods-typography__description" }, centerChartLabel))),
@@ -46300,17 +46302,1436 @@ var DoughnutChart = function (_a) {
46300
46302
  "%"))); }))));
46301
46303
  };
46302
46304
 
46305
+ /******************************************************************************
46306
+ Copyright (c) Microsoft Corporation.
46307
+
46308
+ Permission to use, copy, modify, and/or distribute this software for any
46309
+ purpose with or without fee is hereby granted.
46310
+
46311
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
46312
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
46313
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
46314
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46315
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46316
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46317
+ PERFORMANCE OF THIS SOFTWARE.
46318
+ ***************************************************************************** */
46319
+ /* global Reflect, Promise, SuppressedError, Symbol */
46320
+
46321
+ var extendStatics = function(d, b) {
46322
+ extendStatics = Object.setPrototypeOf ||
46323
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
46324
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
46325
+ return extendStatics(d, b);
46326
+ };
46327
+
46328
+ function __extends(d, b) {
46329
+ if (typeof b !== "function" && b !== null)
46330
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
46331
+ extendStatics(d, b);
46332
+ function __() { this.constructor = d; }
46333
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
46334
+ }
46335
+
46336
+ var __assign = function() {
46337
+ __assign = Object.assign || function __assign(t) {
46338
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
46339
+ s = arguments[i];
46340
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
46341
+ }
46342
+ return t;
46343
+ };
46344
+ return __assign.apply(this, arguments);
46345
+ };
46346
+
46347
+ function __rest(s, e) {
46348
+ var t = {};
46349
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
46350
+ t[p] = s[p];
46351
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
46352
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
46353
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
46354
+ t[p[i]] = s[p[i]];
46355
+ }
46356
+ return t;
46357
+ }
46358
+
46359
+ function __decorate(decorators, target, key, desc) {
46360
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
46361
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
46362
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
46363
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
46364
+ }
46365
+
46366
+ function __param(paramIndex, decorator) {
46367
+ return function (target, key) { decorator(target, key, paramIndex); }
46368
+ }
46369
+
46370
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
46371
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
46372
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
46373
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
46374
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
46375
+ var _, done = false;
46376
+ for (var i = decorators.length - 1; i >= 0; i--) {
46377
+ var context = {};
46378
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
46379
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
46380
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
46381
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
46382
+ if (kind === "accessor") {
46383
+ if (result === void 0) continue;
46384
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
46385
+ if (_ = accept(result.get)) descriptor.get = _;
46386
+ if (_ = accept(result.set)) descriptor.set = _;
46387
+ if (_ = accept(result.init)) initializers.unshift(_);
46388
+ }
46389
+ else if (_ = accept(result)) {
46390
+ if (kind === "field") initializers.unshift(_);
46391
+ else descriptor[key] = _;
46392
+ }
46393
+ }
46394
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
46395
+ done = true;
46396
+ }
46397
+ function __runInitializers(thisArg, initializers, value) {
46398
+ var useValue = arguments.length > 2;
46399
+ for (var i = 0; i < initializers.length; i++) {
46400
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
46401
+ }
46402
+ return useValue ? value : void 0;
46403
+ }
46404
+ function __propKey(x) {
46405
+ return typeof x === "symbol" ? x : "".concat(x);
46406
+ }
46407
+ function __setFunctionName(f, name, prefix) {
46408
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
46409
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
46410
+ }
46411
+ function __metadata(metadataKey, metadataValue) {
46412
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
46413
+ }
46414
+
46415
+ function __awaiter(thisArg, _arguments, P, generator) {
46416
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
46417
+ return new (P || (P = Promise))(function (resolve, reject) {
46418
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
46419
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46420
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
46421
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
46422
+ });
46423
+ }
46424
+
46425
+ function __generator(thisArg, body) {
46426
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
46427
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
46428
+ function verb(n) { return function (v) { return step([n, v]); }; }
46429
+ function step(op) {
46430
+ if (f) throw new TypeError("Generator is already executing.");
46431
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46432
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
46433
+ if (y = 0, t) op = [op[0] & 2, t.value];
46434
+ switch (op[0]) {
46435
+ case 0: case 1: t = op; break;
46436
+ case 4: _.label++; return { value: op[1], done: false };
46437
+ case 5: _.label++; y = op[1]; op = [0]; continue;
46438
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
46439
+ default:
46440
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
46441
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
46442
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
46443
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
46444
+ if (t[2]) _.ops.pop();
46445
+ _.trys.pop(); continue;
46446
+ }
46447
+ op = body.call(thisArg, _);
46448
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46449
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46450
+ }
46451
+ }
46452
+
46453
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
46454
+ if (k2 === undefined) k2 = k;
46455
+ var desc = Object.getOwnPropertyDescriptor(m, k);
46456
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
46457
+ desc = { enumerable: true, get: function() { return m[k]; } };
46458
+ }
46459
+ Object.defineProperty(o, k2, desc);
46460
+ }) : (function(o, m, k, k2) {
46461
+ if (k2 === undefined) k2 = k;
46462
+ o[k2] = m[k];
46463
+ });
46464
+
46465
+ function __exportStar(m, o) {
46466
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
46467
+ }
46468
+
46469
+ function __values(o) {
46470
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
46471
+ if (m) return m.call(o);
46472
+ if (o && typeof o.length === "number") return {
46473
+ next: function () {
46474
+ if (o && i >= o.length) o = void 0;
46475
+ return { value: o && o[i++], done: !o };
46476
+ }
46477
+ };
46478
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
46479
+ }
46480
+
46481
+ function __read(o, n) {
46482
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
46483
+ if (!m) return o;
46484
+ var i = m.call(o), r, ar = [], e;
46485
+ try {
46486
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
46487
+ }
46488
+ catch (error) { e = { error: error }; }
46489
+ finally {
46490
+ try {
46491
+ if (r && !r.done && (m = i["return"])) m.call(i);
46492
+ }
46493
+ finally { if (e) throw e.error; }
46494
+ }
46495
+ return ar;
46496
+ }
46497
+
46498
+ /** @deprecated */
46499
+ function __spread() {
46500
+ for (var ar = [], i = 0; i < arguments.length; i++)
46501
+ ar = ar.concat(__read(arguments[i]));
46502
+ return ar;
46503
+ }
46504
+
46505
+ /** @deprecated */
46506
+ function __spreadArrays() {
46507
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
46508
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
46509
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
46510
+ r[k] = a[j];
46511
+ return r;
46512
+ }
46513
+
46514
+ function __spreadArray(to, from, pack) {
46515
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
46516
+ if (ar || !(i in from)) {
46517
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
46518
+ ar[i] = from[i];
46519
+ }
46520
+ }
46521
+ return to.concat(ar || Array.prototype.slice.call(from));
46522
+ }
46523
+
46524
+ function __await(v) {
46525
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
46526
+ }
46527
+
46528
+ function __asyncGenerator(thisArg, _arguments, generator) {
46529
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46530
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
46531
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
46532
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
46533
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
46534
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
46535
+ function fulfill(value) { resume("next", value); }
46536
+ function reject(value) { resume("throw", value); }
46537
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
46538
+ }
46539
+
46540
+ function __asyncDelegator(o) {
46541
+ var i, p;
46542
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
46543
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
46544
+ }
46545
+
46546
+ function __asyncValues(o) {
46547
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46548
+ var m = o[Symbol.asyncIterator], i;
46549
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
46550
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
46551
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
46552
+ }
46553
+
46554
+ function __makeTemplateObject(cooked, raw) {
46555
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
46556
+ return cooked;
46557
+ }
46558
+ var __setModuleDefault = Object.create ? (function(o, v) {
46559
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
46560
+ }) : function(o, v) {
46561
+ o["default"] = v;
46562
+ };
46563
+
46564
+ function __importStar(mod) {
46565
+ if (mod && mod.__esModule) return mod;
46566
+ var result = {};
46567
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46568
+ __setModuleDefault(result, mod);
46569
+ return result;
46570
+ }
46571
+
46572
+ function __importDefault(mod) {
46573
+ return (mod && mod.__esModule) ? mod : { default: mod };
46574
+ }
46575
+
46576
+ function __classPrivateFieldGet(receiver, state, kind, f) {
46577
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
46578
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
46579
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
46580
+ }
46581
+
46582
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
46583
+ if (kind === "m") throw new TypeError("Private method is not writable");
46584
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
46585
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
46586
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
46587
+ }
46588
+
46589
+ function __classPrivateFieldIn(state, receiver) {
46590
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
46591
+ return typeof state === "function" ? receiver === state : state.has(receiver);
46592
+ }
46593
+
46594
+ function __addDisposableResource(env, value, async) {
46595
+ if (value !== null && value !== void 0) {
46596
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
46597
+ var dispose;
46598
+ if (async) {
46599
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46600
+ dispose = value[Symbol.asyncDispose];
46601
+ }
46602
+ if (dispose === void 0) {
46603
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
46604
+ dispose = value[Symbol.dispose];
46605
+ }
46606
+ if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
46607
+ env.stack.push({ value: value, dispose: dispose, async: async });
46608
+ }
46609
+ else if (async) {
46610
+ env.stack.push({ async: true });
46611
+ }
46612
+ return value;
46613
+ }
46614
+
46615
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
46616
+ var e = new Error(message);
46617
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
46618
+ };
46619
+
46620
+ function __disposeResources(env) {
46621
+ function fail(e) {
46622
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
46623
+ env.hasError = true;
46624
+ }
46625
+ function next() {
46626
+ while (env.stack.length) {
46627
+ var rec = env.stack.pop();
46628
+ try {
46629
+ var result = rec.dispose && rec.dispose.call(rec.value);
46630
+ if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
46631
+ }
46632
+ catch (e) {
46633
+ fail(e);
46634
+ }
46635
+ }
46636
+ if (env.hasError) throw env.error;
46637
+ }
46638
+ return next();
46639
+ }
46640
+
46641
+ var tslib_es6 = {
46642
+ __extends,
46643
+ __assign,
46644
+ __rest,
46645
+ __decorate,
46646
+ __param,
46647
+ __metadata,
46648
+ __awaiter,
46649
+ __generator,
46650
+ __createBinding,
46651
+ __exportStar,
46652
+ __values,
46653
+ __read,
46654
+ __spread,
46655
+ __spreadArrays,
46656
+ __spreadArray,
46657
+ __await,
46658
+ __asyncGenerator,
46659
+ __asyncDelegator,
46660
+ __asyncValues,
46661
+ __makeTemplateObject,
46662
+ __importStar,
46663
+ __importDefault,
46664
+ __classPrivateFieldGet,
46665
+ __classPrivateFieldSet,
46666
+ __classPrivateFieldIn,
46667
+ __addDisposableResource,
46668
+ __disposeResources,
46669
+ };
46670
+
46671
+ var tslib_es6$1 = /*#__PURE__*/Object.freeze({
46672
+ __proto__: null,
46673
+ __extends: __extends,
46674
+ get __assign () { return __assign; },
46675
+ __rest: __rest,
46676
+ __decorate: __decorate,
46677
+ __param: __param,
46678
+ __esDecorate: __esDecorate,
46679
+ __runInitializers: __runInitializers,
46680
+ __propKey: __propKey,
46681
+ __setFunctionName: __setFunctionName,
46682
+ __metadata: __metadata,
46683
+ __awaiter: __awaiter,
46684
+ __generator: __generator,
46685
+ __createBinding: __createBinding,
46686
+ __exportStar: __exportStar,
46687
+ __values: __values,
46688
+ __read: __read,
46689
+ __spread: __spread,
46690
+ __spreadArrays: __spreadArrays,
46691
+ __spreadArray: __spreadArray,
46692
+ __await: __await,
46693
+ __asyncGenerator: __asyncGenerator,
46694
+ __asyncDelegator: __asyncDelegator,
46695
+ __asyncValues: __asyncValues,
46696
+ __makeTemplateObject: __makeTemplateObject,
46697
+ __importStar: __importStar,
46698
+ __importDefault: __importDefault,
46699
+ __classPrivateFieldGet: __classPrivateFieldGet,
46700
+ __classPrivateFieldSet: __classPrivateFieldSet,
46701
+ __classPrivateFieldIn: __classPrivateFieldIn,
46702
+ __addDisposableResource: __addDisposableResource,
46703
+ __disposeResources: __disposeResources,
46704
+ 'default': tslib_es6
46705
+ });
46706
+
46707
+ var isBrowser = typeof window !== 'undefined';
46708
+ var isNavigator = typeof navigator !== 'undefined';
46709
+
46710
+ var nav$1 = isNavigator ? navigator : undefined;
46711
+ nav$1 && typeof nav$1.getBattery === 'function';
46712
+
46713
+ var js_cookie = {exports: {}};
46714
+
46715
+ /*!
46716
+ * JavaScript Cookie v2.2.1
46717
+ * https://github.com/js-cookie/js-cookie
46718
+ *
46719
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
46720
+ * Released under the MIT license
46721
+ */
46722
+
46723
+ (function (module, exports) {
46724
+ (function (factory) {
46725
+ var registeredInModuleLoader;
46726
+ {
46727
+ module.exports = factory();
46728
+ registeredInModuleLoader = true;
46729
+ }
46730
+ if (!registeredInModuleLoader) {
46731
+ var OldCookies = window.Cookies;
46732
+ var api = window.Cookies = factory();
46733
+ api.noConflict = function () {
46734
+ window.Cookies = OldCookies;
46735
+ return api;
46736
+ };
46737
+ }
46738
+ }(function () {
46739
+ function extend () {
46740
+ var i = 0;
46741
+ var result = {};
46742
+ for (; i < arguments.length; i++) {
46743
+ var attributes = arguments[ i ];
46744
+ for (var key in attributes) {
46745
+ result[key] = attributes[key];
46746
+ }
46747
+ }
46748
+ return result;
46749
+ }
46750
+
46751
+ function decode (s) {
46752
+ return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
46753
+ }
46754
+
46755
+ function init (converter) {
46756
+ function api() {}
46757
+
46758
+ function set (key, value, attributes) {
46759
+ if (typeof document === 'undefined') {
46760
+ return;
46761
+ }
46762
+
46763
+ attributes = extend({
46764
+ path: '/'
46765
+ }, api.defaults, attributes);
46766
+
46767
+ if (typeof attributes.expires === 'number') {
46768
+ attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
46769
+ }
46770
+
46771
+ // We're using "expires" because "max-age" is not supported by IE
46772
+ attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
46773
+
46774
+ try {
46775
+ var result = JSON.stringify(value);
46776
+ if (/^[\{\[]/.test(result)) {
46777
+ value = result;
46778
+ }
46779
+ } catch (e) {}
46780
+
46781
+ value = converter.write ?
46782
+ converter.write(value, key) :
46783
+ encodeURIComponent(String(value))
46784
+ .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
46785
+
46786
+ key = encodeURIComponent(String(key))
46787
+ .replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
46788
+ .replace(/[\(\)]/g, escape);
46789
+
46790
+ var stringifiedAttributes = '';
46791
+ for (var attributeName in attributes) {
46792
+ if (!attributes[attributeName]) {
46793
+ continue;
46794
+ }
46795
+ stringifiedAttributes += '; ' + attributeName;
46796
+ if (attributes[attributeName] === true) {
46797
+ continue;
46798
+ }
46799
+
46800
+ // Considers RFC 6265 section 5.2:
46801
+ // ...
46802
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
46803
+ // character:
46804
+ // Consume the characters of the unparsed-attributes up to,
46805
+ // not including, the first %x3B (";") character.
46806
+ // ...
46807
+ stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
46808
+ }
46809
+
46810
+ return (document.cookie = key + '=' + value + stringifiedAttributes);
46811
+ }
46812
+
46813
+ function get (key, json) {
46814
+ if (typeof document === 'undefined') {
46815
+ return;
46816
+ }
46817
+
46818
+ var jar = {};
46819
+ // To prevent the for loop in the first place assign an empty array
46820
+ // in case there are no cookies at all.
46821
+ var cookies = document.cookie ? document.cookie.split('; ') : [];
46822
+ var i = 0;
46823
+
46824
+ for (; i < cookies.length; i++) {
46825
+ var parts = cookies[i].split('=');
46826
+ var cookie = parts.slice(1).join('=');
46827
+
46828
+ if (!json && cookie.charAt(0) === '"') {
46829
+ cookie = cookie.slice(1, -1);
46830
+ }
46831
+
46832
+ try {
46833
+ var name = decode(parts[0]);
46834
+ cookie = (converter.read || converter)(cookie, name) ||
46835
+ decode(cookie);
46836
+
46837
+ if (json) {
46838
+ try {
46839
+ cookie = JSON.parse(cookie);
46840
+ } catch (e) {}
46841
+ }
46842
+
46843
+ jar[name] = cookie;
46844
+
46845
+ if (key === name) {
46846
+ break;
46847
+ }
46848
+ } catch (e) {}
46849
+ }
46850
+
46851
+ return key ? jar[key] : jar;
46852
+ }
46853
+
46854
+ api.set = set;
46855
+ api.get = function (key) {
46856
+ return get(key, false /* read as raw */);
46857
+ };
46858
+ api.getJSON = function (key) {
46859
+ return get(key, true /* read as json */);
46860
+ };
46861
+ api.remove = function (key, attributes) {
46862
+ set(key, '', extend(attributes, {
46863
+ expires: -1
46864
+ }));
46865
+ };
46866
+
46867
+ api.defaults = {};
46868
+
46869
+ api.withConverter = init;
46870
+
46871
+ return api;
46872
+ }
46873
+
46874
+ return init(function () {});
46875
+ }));
46876
+ } (js_cookie));
46877
+
46878
+ var KEBAB_REGEX = /[A-Z]/g;
46879
+
46880
+ var hash = function (str) {
46881
+ var h = 5381, i = str.length;
46882
+
46883
+ while (i) h = (h * 33) ^ str.charCodeAt(--i);
46884
+
46885
+ return '_' + (h >>> 0).toString(36);
46886
+ };
46887
+
46888
+ var create = function (config) {
46889
+ config = config || {};
46890
+ var assign = config.assign || Object.assign;
46891
+ var client = typeof window === 'object';
46892
+
46893
+ // Check if we are really in browser environment.
46894
+ if (process.env.NODE_ENV !== 'production') {
46895
+ if (client) {
46896
+ if ((typeof document !== 'object') || !document.getElementsByTagName('HTML')) {
46897
+ console.error(
46898
+ 'nano-css detected browser environment because of "window" global, but ' +
46899
+ '"document" global seems to be defective.'
46900
+ );
46901
+ }
46902
+ }
46903
+ }
46904
+
46905
+ var renderer = assign({
46906
+ raw: '',
46907
+ pfx: '_',
46908
+ client: client,
46909
+ assign: assign,
46910
+ stringify: JSON.stringify,
46911
+ kebab: function (prop) {
46912
+ return prop.replace(KEBAB_REGEX, '-$&').toLowerCase();
46913
+ },
46914
+ decl: function (key, value) {
46915
+ key = renderer.kebab(key);
46916
+ return key + ':' + value + ';';
46917
+ },
46918
+ hash: function (obj) {
46919
+ return hash(renderer.stringify(obj));
46920
+ },
46921
+ selector: function (parent, selector) {
46922
+ return parent + (selector[0] === ':' ? '' : ' ') + selector;
46923
+ },
46924
+ putRaw: function (rawCssRule) {
46925
+ renderer.raw += rawCssRule;
46926
+ }
46927
+ }, config);
46928
+
46929
+ if (renderer.client) {
46930
+ if (!renderer.sh)
46931
+ document.head.appendChild(renderer.sh = document.createElement('style'));
46932
+
46933
+ if (process.env.NODE_ENV !== 'production') {
46934
+ renderer.sh.setAttribute('data-nano-css-dev', '');
46935
+
46936
+ // Test style sheet used in DEV mode to test if .insetRule() would throw.
46937
+ renderer.shTest = document.createElement('style');
46938
+ renderer.shTest.setAttribute('data-nano-css-dev-tests', '');
46939
+ document.head.appendChild(renderer.shTest);
46940
+ }
46941
+
46942
+ renderer.putRaw = function (rawCssRule) {
46943
+ // .insertRule() is faster than .appendChild(), that's why we use it in PROD.
46944
+ // But CSS injected using .insertRule() is not displayed in Chrome Devtools,
46945
+ // that's why we use .appendChild in DEV.
46946
+ if (process.env.NODE_ENV === 'production') {
46947
+ var sheet = renderer.sh.sheet;
46948
+
46949
+ // Unknown pseudo-selectors will throw, this try/catch swallows all errors.
46950
+ try {
46951
+ sheet.insertRule(rawCssRule, sheet.cssRules.length);
46952
+ // eslint-disable-next-line no-empty
46953
+ } catch (error) {}
46954
+ } else {
46955
+ // Test if .insertRule() works in dev mode. Unknown pseudo-selectors will throw when
46956
+ // .insertRule() is used, but .appendChild() will not throw.
46957
+ try {
46958
+ renderer.shTest.sheet.insertRule(rawCssRule, renderer.shTest.sheet.cssRules.length);
46959
+ } catch (error) {
46960
+ if (config.verbose) {
46961
+ console.error(error);
46962
+ }
46963
+ }
46964
+
46965
+ // Insert pretty-printed CSS for dev mode.
46966
+ renderer.sh.appendChild(document.createTextNode(rawCssRule));
46967
+ }
46968
+ };
46969
+ }
46970
+
46971
+ renderer.put = function (selector, decls, atrule) {
46972
+ var str = '';
46973
+ var prop, value;
46974
+ var postponed = [];
46975
+
46976
+ for (prop in decls) {
46977
+ value = decls[prop];
46978
+
46979
+ if ((value instanceof Object) && !(value instanceof Array)) {
46980
+ postponed.push(prop);
46981
+ } else {
46982
+ if ((process.env.NODE_ENV !== 'production') && !renderer.sourcemaps) {
46983
+ str += ' ' + renderer.decl(prop, value, selector, atrule) + '\n';
46984
+ } else {
46985
+ str += renderer.decl(prop, value, selector, atrule);
46986
+ }
46987
+ }
46988
+ }
46989
+
46990
+ if (str) {
46991
+ if ((process.env.NODE_ENV !== 'production') && !renderer.sourcemaps) {
46992
+ str = '\n' + selector + ' {\n' + str + '}\n';
46993
+ } else {
46994
+ str = selector + '{' + str + '}';
46995
+ }
46996
+ renderer.putRaw(atrule ? atrule + '{' + str + '}' : str);
46997
+ }
46998
+
46999
+ for (var i = 0; i < postponed.length; i++) {
47000
+ prop = postponed[i];
47001
+
47002
+ if (prop[0] === '@' && prop !== '@font-face') {
47003
+ renderer.putAt(selector, decls[prop], prop);
47004
+ } else {
47005
+ renderer.put(renderer.selector(selector, prop), decls[prop], atrule);
47006
+ }
47007
+ }
47008
+ };
47009
+
47010
+ renderer.putAt = renderer.put;
47011
+
47012
+ return renderer;
47013
+ };
47014
+
47015
+ var warnOnMissingDependencies;
47016
+ var hasRequiredWarnOnMissingDependencies;
47017
+
47018
+ function requireWarnOnMissingDependencies () {
47019
+ if (hasRequiredWarnOnMissingDependencies) return warnOnMissingDependencies;
47020
+ hasRequiredWarnOnMissingDependencies = 1;
47021
+
47022
+ var pkgName = 'nano-css';
47023
+
47024
+ warnOnMissingDependencies = function warnOnMissingDependencies (addon, renderer, deps) {
47025
+ var missing = [];
47026
+
47027
+ for (var i = 0; i < deps.length; i++) {
47028
+ var name = deps[i];
47029
+
47030
+ if (!renderer[name]) {
47031
+ missing.push(name);
47032
+ }
47033
+ }
47034
+
47035
+ if (missing.length) {
47036
+ var str = 'Addon "' + addon + '" is missing the following dependencies:';
47037
+
47038
+ for (var j = 0; j < missing.length; j++) {
47039
+ str += '\n require("' + pkgName + '/addon/' + missing[j] + '").addon(nano);';
47040
+ }
47041
+
47042
+ throw new Error(str);
47043
+ }
47044
+ };
47045
+ return warnOnMissingDependencies;
47046
+ }
47047
+
47048
+ var addon$1 = function (renderer) {
47049
+ // CSSOM support only browser environment.
47050
+ if (!renderer.client) return;
47051
+
47052
+ if (process.env.NODE_ENV !== 'production') {
47053
+ requireWarnOnMissingDependencies()('cssom', renderer, ['sh']);
47054
+ }
47055
+
47056
+ // Style sheet for media queries.
47057
+ document.head.appendChild(renderer.msh = document.createElement('style'));
47058
+
47059
+ renderer.createRule = function (selector, prelude) {
47060
+ var rawCss = selector + '{}';
47061
+ if (prelude) rawCss = prelude + '{' + rawCss + '}';
47062
+ var sheet = prelude ? renderer.msh.sheet : renderer.sh.sheet;
47063
+ var index = sheet.insertRule(rawCss, sheet.cssRules.length);
47064
+ var rule = (sheet.cssRules || sheet.rules)[index];
47065
+
47066
+ // Keep track of `index` where rule was inserted in the sheet. This is
47067
+ // needed for rule deletion.
47068
+ rule.index = index;
47069
+
47070
+ if (prelude) {
47071
+ // If rule has media query (it has prelude), move style (CSSStyleDeclaration)
47072
+ // object to the "top" to normalize it with a rule without the media
47073
+ // query, so that both rules have `.style` property available.
47074
+ var selectorRule = (rule.cssRules || rule.rules)[0];
47075
+ rule.style = selectorRule.style;
47076
+ rule.styleMap = selectorRule.styleMap;
47077
+ }
47078
+
47079
+ return rule;
47080
+ };
47081
+ };
47082
+
47083
+ var removeRule$2 = {};
47084
+
47085
+ function removeRule$1 (rule) {
47086
+ var maxIndex = rule.index;
47087
+ var sh = rule.parentStyleSheet;
47088
+ var rules = sh.cssRules || sh.rules;
47089
+ maxIndex = Math.max(maxIndex, rules.length - 1);
47090
+ while (maxIndex >= 0) {
47091
+ if (rules[maxIndex] === rule) {
47092
+ sh.deleteRule(maxIndex);
47093
+ break;
47094
+ }
47095
+ maxIndex--;
47096
+ }
47097
+ }
47098
+
47099
+ removeRule$2.removeRule = removeRule$1;
47100
+
47101
+ var removeRule = removeRule$2.removeRule;
47102
+
47103
+ var addon = function (renderer) {
47104
+ // VCSSOM support only browser environment.
47105
+ if (!renderer.client) return;
47106
+
47107
+ if (process.env.NODE_ENV !== 'production') {
47108
+ requireWarnOnMissingDependencies()('cssom', renderer, ['createRule']); // cssom
47109
+ }
47110
+
47111
+ var kebab = renderer.kebab;
47112
+
47113
+ function VRule (selector, prelude) {
47114
+ this.rule = renderer.createRule(selector, prelude);
47115
+ this.decl = {};
47116
+ }
47117
+ VRule.prototype.diff = function (newDecl) {
47118
+ var oldDecl = this.decl;
47119
+ var style = this.rule.style;
47120
+ var property;
47121
+ for (property in oldDecl)
47122
+ if (newDecl[property] === undefined)
47123
+ style.removeProperty(property);
47124
+ for (property in newDecl)
47125
+ if (newDecl[property] !== oldDecl[property])
47126
+ style.setProperty(kebab(property), newDecl[property]);
47127
+ this.decl = newDecl;
47128
+ };
47129
+ VRule.prototype.del = function () {
47130
+ removeRule(this.rule);
47131
+ };
47132
+
47133
+ function VSheet () {
47134
+ /**
47135
+ * {
47136
+ * '<at-rule-prelude>': {
47137
+ * '<selector>': {
47138
+ * color: 'red
47139
+ * }
47140
+ * }
47141
+ * }
47142
+ */
47143
+ this.tree = {};
47144
+ }
47145
+ VSheet.prototype.diff = function (newTree) {
47146
+ var oldTree = this.tree;
47147
+
47148
+ // Remove media queries not present in new tree.
47149
+ for (var prelude in oldTree) {
47150
+ if (newTree[prelude] === undefined) {
47151
+ var rules = oldTree[prelude];
47152
+ for (var selector in rules)
47153
+ rules[selector].del();
47154
+ }
47155
+ }
47156
+
47157
+ for (var prelude in newTree) {
47158
+ if (oldTree[prelude] === undefined) {
47159
+ // Whole media query is new.
47160
+ for (var selector in newTree[prelude]) {
47161
+ var rule = new VRule(selector, prelude);
47162
+ rule.diff(newTree[prelude][selector]);
47163
+ newTree[prelude][selector] = rule;
47164
+ }
47165
+ } else {
47166
+ // Old tree already has rules with this media query.
47167
+ var oldRules = oldTree[prelude];
47168
+ var newRules = newTree[prelude];
47169
+
47170
+ // Remove rules not present in new tree.
47171
+ for (var selector in oldRules)
47172
+ if (!newRules[selector])
47173
+ oldRules[selector].del();
47174
+
47175
+ // Apply new rules.
47176
+ for (var selector in newRules) {
47177
+ var rule = oldRules[selector];
47178
+ if (rule) {
47179
+ rule.diff(newRules[selector]);
47180
+ newRules[selector] = rule;
47181
+ } else {
47182
+ rule = new VRule(selector, prelude);
47183
+ rule.diff(newRules[selector]);
47184
+ newRules[selector] = rule;
47185
+ }
47186
+ }
47187
+ }
47188
+ }
47189
+
47190
+ this.tree = newTree;
47191
+ };
47192
+
47193
+ renderer.VRule = VRule;
47194
+ renderer.VSheet = VSheet;
47195
+ };
47196
+
47197
+ var nano = create();
47198
+ addon$1(nano);
47199
+ addon(nano);
47200
+
47201
+ var screenfull = {exports: {}};
47202
+
47203
+ /*!
47204
+ * screenfull
47205
+ * v5.2.0 - 2021-11-03
47206
+ * (c) Sindre Sorhus; MIT License
47207
+ */
47208
+
47209
+ (function (module) {
47210
+ (function () {
47211
+
47212
+ var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
47213
+ var isCommonjs = module.exports;
47214
+
47215
+ var fn = (function () {
47216
+ var val;
47217
+
47218
+ var fnMap = [
47219
+ [
47220
+ 'requestFullscreen',
47221
+ 'exitFullscreen',
47222
+ 'fullscreenElement',
47223
+ 'fullscreenEnabled',
47224
+ 'fullscreenchange',
47225
+ 'fullscreenerror'
47226
+ ],
47227
+ // New WebKit
47228
+ [
47229
+ 'webkitRequestFullscreen',
47230
+ 'webkitExitFullscreen',
47231
+ 'webkitFullscreenElement',
47232
+ 'webkitFullscreenEnabled',
47233
+ 'webkitfullscreenchange',
47234
+ 'webkitfullscreenerror'
47235
+
47236
+ ],
47237
+ // Old WebKit
47238
+ [
47239
+ 'webkitRequestFullScreen',
47240
+ 'webkitCancelFullScreen',
47241
+ 'webkitCurrentFullScreenElement',
47242
+ 'webkitCancelFullScreen',
47243
+ 'webkitfullscreenchange',
47244
+ 'webkitfullscreenerror'
47245
+
47246
+ ],
47247
+ [
47248
+ 'mozRequestFullScreen',
47249
+ 'mozCancelFullScreen',
47250
+ 'mozFullScreenElement',
47251
+ 'mozFullScreenEnabled',
47252
+ 'mozfullscreenchange',
47253
+ 'mozfullscreenerror'
47254
+ ],
47255
+ [
47256
+ 'msRequestFullscreen',
47257
+ 'msExitFullscreen',
47258
+ 'msFullscreenElement',
47259
+ 'msFullscreenEnabled',
47260
+ 'MSFullscreenChange',
47261
+ 'MSFullscreenError'
47262
+ ]
47263
+ ];
47264
+
47265
+ var i = 0;
47266
+ var l = fnMap.length;
47267
+ var ret = {};
47268
+
47269
+ for (; i < l; i++) {
47270
+ val = fnMap[i];
47271
+ if (val && val[1] in document) {
47272
+ for (i = 0; i < val.length; i++) {
47273
+ ret[fnMap[0][i]] = val[i];
47274
+ }
47275
+ return ret;
47276
+ }
47277
+ }
47278
+
47279
+ return false;
47280
+ })();
47281
+
47282
+ var eventNameMap = {
47283
+ change: fn.fullscreenchange,
47284
+ error: fn.fullscreenerror
47285
+ };
47286
+
47287
+ var screenfull = {
47288
+ request: function (element, options) {
47289
+ return new Promise(function (resolve, reject) {
47290
+ var onFullScreenEntered = function () {
47291
+ this.off('change', onFullScreenEntered);
47292
+ resolve();
47293
+ }.bind(this);
47294
+
47295
+ this.on('change', onFullScreenEntered);
47296
+
47297
+ element = element || document.documentElement;
47298
+
47299
+ var returnPromise = element[fn.requestFullscreen](options);
47300
+
47301
+ if (returnPromise instanceof Promise) {
47302
+ returnPromise.then(onFullScreenEntered).catch(reject);
47303
+ }
47304
+ }.bind(this));
47305
+ },
47306
+ exit: function () {
47307
+ return new Promise(function (resolve, reject) {
47308
+ if (!this.isFullscreen) {
47309
+ resolve();
47310
+ return;
47311
+ }
47312
+
47313
+ var onFullScreenExit = function () {
47314
+ this.off('change', onFullScreenExit);
47315
+ resolve();
47316
+ }.bind(this);
47317
+
47318
+ this.on('change', onFullScreenExit);
47319
+
47320
+ var returnPromise = document[fn.exitFullscreen]();
47321
+
47322
+ if (returnPromise instanceof Promise) {
47323
+ returnPromise.then(onFullScreenExit).catch(reject);
47324
+ }
47325
+ }.bind(this));
47326
+ },
47327
+ toggle: function (element, options) {
47328
+ return this.isFullscreen ? this.exit() : this.request(element, options);
47329
+ },
47330
+ onchange: function (callback) {
47331
+ this.on('change', callback);
47332
+ },
47333
+ onerror: function (callback) {
47334
+ this.on('error', callback);
47335
+ },
47336
+ on: function (event, callback) {
47337
+ var eventName = eventNameMap[event];
47338
+ if (eventName) {
47339
+ document.addEventListener(eventName, callback, false);
47340
+ }
47341
+ },
47342
+ off: function (event, callback) {
47343
+ var eventName = eventNameMap[event];
47344
+ if (eventName) {
47345
+ document.removeEventListener(eventName, callback, false);
47346
+ }
47347
+ },
47348
+ raw: fn
47349
+ };
47350
+
47351
+ if (!fn) {
47352
+ if (isCommonjs) {
47353
+ module.exports = {isEnabled: false};
47354
+ } else {
47355
+ window.screenfull = {isEnabled: false};
47356
+ }
47357
+
47358
+ return;
47359
+ }
47360
+
47361
+ Object.defineProperties(screenfull, {
47362
+ isFullscreen: {
47363
+ get: function () {
47364
+ return Boolean(document[fn.fullscreenElement]);
47365
+ }
47366
+ },
47367
+ element: {
47368
+ enumerable: true,
47369
+ get: function () {
47370
+ return document[fn.fullscreenElement];
47371
+ }
47372
+ },
47373
+ isEnabled: {
47374
+ enumerable: true,
47375
+ get: function () {
47376
+ // Coerce to boolean in case of old WebKit
47377
+ return Boolean(document[fn.fullscreenEnabled]);
47378
+ }
47379
+ }
47380
+ });
47381
+
47382
+ if (isCommonjs) {
47383
+ module.exports = screenfull;
47384
+ } else {
47385
+ window.screenfull = screenfull;
47386
+ }
47387
+ })();
47388
+ } (screenfull));
47389
+
47390
+ isBrowser &&
47391
+ window.navigator &&
47392
+ window.navigator.platform &&
47393
+ /iP(ad|hone|od)/.test(window.navigator.platform);
47394
+
47395
+ var getInitialState = function (query, defaultState) {
47396
+ // Prevent a React hydration mismatch when a default value is provided by not defaulting to window.matchMedia(query).matches.
47397
+ if (defaultState !== undefined) {
47398
+ return defaultState;
47399
+ }
47400
+ if (isBrowser) {
47401
+ return window.matchMedia(query).matches;
47402
+ }
47403
+ // A default value has not been provided, and you are rendering on the server, warn of a possible hydration mismatch when defaulting to false.
47404
+ if (process.env.NODE_ENV !== 'production') {
47405
+ console.warn('`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches.');
47406
+ }
47407
+ return false;
47408
+ };
47409
+ var useMedia = function (query, defaultState) {
47410
+ var _a = useState(getInitialState(query, defaultState)), state = _a[0], setState = _a[1];
47411
+ useEffect(function () {
47412
+ var mounted = true;
47413
+ var mql = window.matchMedia(query);
47414
+ var onChange = function () {
47415
+ if (!mounted) {
47416
+ return;
47417
+ }
47418
+ setState(!!mql.matches);
47419
+ };
47420
+ mql.addEventListener('change', onChange);
47421
+ setState(mql.matches);
47422
+ return function () {
47423
+ mounted = false;
47424
+ mql.removeEventListener('change', onChange);
47425
+ };
47426
+ }, [query]);
47427
+ return state;
47428
+ };
47429
+
47430
+ var nav = isNavigator ? navigator : undefined;
47431
+ nav && (nav.connection || nav.mozConnection || nav.webkitConnection);
47432
+
47433
+ var lib$1 = {};
47434
+
47435
+ var require$$0 = /*@__PURE__*/getAugmentedNamespace(tslib_es6$1);
47436
+
47437
+ var render = {};
47438
+
47439
+ var hasRequiredRender;
47440
+
47441
+ function requireRender () {
47442
+ if (hasRequiredRender) return render;
47443
+ hasRequiredRender = 1;
47444
+ Object.defineProperty(render, "__esModule", { value: true });
47445
+ var tslib_1 = require$$0;
47446
+ var react_1 = e;
47447
+ var isReact16Plus = parseInt(react_1.version.substr(0, react_1.version.indexOf('.'))) > 15;
47448
+ var isFn = function (fn) { return typeof fn === 'function'; };
47449
+ var render$1 = function (props, data) {
47450
+ var more = [];
47451
+ for (var _i = 2; _i < arguments.length; _i++) {
47452
+ more[_i - 2] = arguments[_i];
47453
+ }
47454
+ if (process.env.NODE_ENV !== 'production') {
47455
+ if (typeof props !== 'object') {
47456
+ throw new TypeError('renderChildren(props, data) first argument must be a props object.');
47457
+ }
47458
+ var children_1 = props.children, render_1 = props.render;
47459
+ if (isFn(children_1) && isFn(render_1)) {
47460
+ console.warn('Both "render" and "children" are specified for in a universal interface component. ' +
47461
+ 'Children will be used.');
47462
+ console.trace();
47463
+ }
47464
+ if (typeof data !== 'object') {
47465
+ console.warn('Universal component interface normally expects data to be an object, ' +
47466
+ ("\"" + typeof data + "\" received."));
47467
+ console.trace();
47468
+ }
47469
+ }
47470
+ var render = props.render, _a = props.children, children = _a === void 0 ? render : _a, component = props.component, _b = props.comp, comp = _b === void 0 ? component : _b;
47471
+ if (isFn(children))
47472
+ return children.apply(void 0, tslib_1.__spreadArrays([data], more));
47473
+ if (comp) {
47474
+ return react_1.createElement(comp, data);
47475
+ }
47476
+ if (children instanceof Array)
47477
+ return isReact16Plus ? children : react_1.createElement.apply(void 0, tslib_1.__spreadArrays(['div', null], children));
47478
+ if (children && (children instanceof Object)) {
47479
+ if (process.env.NODE_ENV !== 'production') {
47480
+ if (!children.type || ((typeof children.type !== 'string') && (typeof children.type !== 'function') && (typeof children.type !== 'symbol'))) {
47481
+ console.warn('Universal component interface received object as children, ' +
47482
+ 'expected React element, but received unexpected React "type".');
47483
+ console.trace();
47484
+ }
47485
+ if (typeof children.type === 'string')
47486
+ return children;
47487
+ return react_1.cloneElement(children, Object.assign({}, children.props, data));
47488
+ }
47489
+ else {
47490
+ if (typeof children.type === 'string')
47491
+ return children;
47492
+ return react_1.cloneElement(children, Object.assign({}, children.props, data));
47493
+ }
47494
+ }
47495
+ return children || null;
47496
+ };
47497
+ render.default = render$1;
47498
+
47499
+ return render;
47500
+ }
47501
+
47502
+ var createEnhancer = {};
47503
+
47504
+ var addClassDecoratorSupport = {};
47505
+
47506
+ var wrapInStatefulComponent = {};
47507
+
47508
+ var hasRequiredWrapInStatefulComponent;
47509
+
47510
+ function requireWrapInStatefulComponent () {
47511
+ if (hasRequiredWrapInStatefulComponent) return wrapInStatefulComponent;
47512
+ hasRequiredWrapInStatefulComponent = 1;
47513
+ Object.defineProperty(wrapInStatefulComponent, "__esModule", { value: true });
47514
+ var tslib_1 = require$$0;
47515
+ var React = tslib_1.__importStar(e);
47516
+ var wrapInStatefulComponent$1 = function (Comp) {
47517
+ var Decorated = (function (_super) {
47518
+ tslib_1.__extends(class_1, _super);
47519
+ function class_1() {
47520
+ return _super !== null && _super.apply(this, arguments) || this;
47521
+ }
47522
+ class_1.prototype.render = function () {
47523
+ return Comp(this.props, this.context);
47524
+ };
47525
+ return class_1;
47526
+ }(React.Component));
47527
+ if (process.env.NODE_ENV !== 'production') {
47528
+ Decorated.displayName = "Decorated(" + (Comp.displayName || Comp.name) + ")";
47529
+ }
47530
+ return Decorated;
47531
+ };
47532
+ wrapInStatefulComponent.default = wrapInStatefulComponent$1;
47533
+
47534
+ return wrapInStatefulComponent;
47535
+ }
47536
+
47537
+ var hasRequiredAddClassDecoratorSupport;
47538
+
47539
+ function requireAddClassDecoratorSupport () {
47540
+ if (hasRequiredAddClassDecoratorSupport) return addClassDecoratorSupport;
47541
+ hasRequiredAddClassDecoratorSupport = 1;
47542
+ Object.defineProperty(addClassDecoratorSupport, "__esModule", { value: true });
47543
+ var tslib_1 = require$$0;
47544
+ var wrapInStatefulComponent_1 = tslib_1.__importDefault(requireWrapInStatefulComponent());
47545
+ var addClassDecoratorSupport$1 = function (Comp) {
47546
+ var isSFC = !Comp.prototype;
47547
+ return !isSFC ? Comp : wrapInStatefulComponent_1.default(Comp);
47548
+ };
47549
+ addClassDecoratorSupport.default = addClassDecoratorSupport$1;
47550
+
47551
+ return addClassDecoratorSupport;
47552
+ }
47553
+
47554
+ var hasRequiredCreateEnhancer;
47555
+
47556
+ function requireCreateEnhancer () {
47557
+ if (hasRequiredCreateEnhancer) return createEnhancer;
47558
+ hasRequiredCreateEnhancer = 1;
47559
+ Object.defineProperty(createEnhancer, "__esModule", { value: true });
47560
+ createEnhancer.divWrapper = void 0;
47561
+ var tslib_1 = require$$0;
47562
+ var React = tslib_1.__importStar(e);
47563
+ var addClassDecoratorSupport_1 = tslib_1.__importDefault(requireAddClassDecoratorSupport());
47564
+ var h = React.createElement;
47565
+ var noWrap = function (Comp, propName, props, state) {
47566
+ var _a;
47567
+ return h(Comp, propName ? tslib_1.__assign((_a = {}, _a[propName] = state, _a), props) : tslib_1.__assign(tslib_1.__assign({}, state), props));
47568
+ };
47569
+ createEnhancer.divWrapper = function (Comp, propName, props, state) {
47570
+ return h('div', null, noWrap(Comp, propName, props, state));
47571
+ };
47572
+ var createEnhancer$1 = function (Facc, prop, wrapper) {
47573
+ if (wrapper === void 0) { wrapper = noWrap; }
47574
+ var enhancer = function (Comp, propName, faccProps) {
47575
+ if (propName === void 0) { propName = prop; }
47576
+ if (faccProps === void 0) { faccProps = null; }
47577
+ var isClassDecoratorMethodCall = typeof Comp === 'string';
47578
+ if (isClassDecoratorMethodCall) {
47579
+ return function (Klass) { return enhancer(Klass, Comp || prop, propName); };
47580
+ }
47581
+ var Enhanced = function (props) {
47582
+ return h(Facc, faccProps, function (state) { return wrapper(Comp, propName, props, state); });
47583
+ };
47584
+ if (process.env.NODE_ENV !== 'production') {
47585
+ Enhanced.displayName = (Facc.displayName || Facc.name) + "(" + (Comp.displayName || Comp.name) + ")";
47586
+ }
47587
+ return isClassDecoratorMethodCall ? addClassDecoratorSupport_1.default(Enhanced) : Enhanced;
47588
+ };
47589
+ return enhancer;
47590
+ };
47591
+ createEnhancer.default = createEnhancer$1;
47592
+
47593
+ return createEnhancer;
47594
+ }
47595
+
47596
+ var hookToRenderProp = {};
47597
+
47598
+ var hasRequiredHookToRenderProp;
47599
+
47600
+ function requireHookToRenderProp () {
47601
+ if (hasRequiredHookToRenderProp) return hookToRenderProp;
47602
+ hasRequiredHookToRenderProp = 1;
47603
+ Object.defineProperty(hookToRenderProp, "__esModule", { value: true });
47604
+ var tslib_1 = require$$0;
47605
+ var render_1 = tslib_1.__importDefault(requireRender());
47606
+ var defaultMapPropsToArgs = function (props) { return [props]; };
47607
+ var hookToRenderProp$1 = function (hook, mapPropsToArgs) {
47608
+ if (mapPropsToArgs === void 0) { mapPropsToArgs = defaultMapPropsToArgs; }
47609
+ return function (props) { return render_1.default(props, hook.apply(void 0, mapPropsToArgs(props))); };
47610
+ };
47611
+ hookToRenderProp.default = hookToRenderProp$1;
47612
+
47613
+ return hookToRenderProp;
47614
+ }
47615
+
47616
+ Object.defineProperty(lib$1, "__esModule", { value: true });
47617
+ lib$1.hookToRenderProp = lib$1.createEnhancer = lib$1.render = void 0;
47618
+ var tslib_1 = require$$0;
47619
+ var render_1 = tslib_1.__importDefault(requireRender());
47620
+ lib$1.render = render_1.default;
47621
+ var createEnhancer_1 = tslib_1.__importDefault(requireCreateEnhancer());
47622
+ lib$1.createEnhancer = createEnhancer_1.default;
47623
+ var hookToRenderProp_1 = tslib_1.__importDefault(requireHookToRenderProp());
47624
+ lib$1.hookToRenderProp = hookToRenderProp_1.default;
47625
+
47626
+ var Status;
47627
+ (function (Status) {
47628
+ Status[Status["init"] = 0] = "init";
47629
+ Status[Status["play"] = 1] = "play";
47630
+ Status[Status["pause"] = 2] = "pause";
47631
+ Status[Status["end"] = 3] = "end";
47632
+ })(Status || (Status = {}));
47633
+
47634
+ var lib = {};
47635
+
47636
+ Object.defineProperty(lib, "__esModule", { value: true });
47637
+ lib.easing = {
47638
+ // No easing, no acceleration
47639
+ linear: function (t) { return t; },
47640
+ // Accelerates fast, then slows quickly towards end.
47641
+ quadratic: function (t) { return t * (-(t * t) * t + 4 * t * t - 6 * t + 4); },
47642
+ // Overshoots over 1 and then returns to 1 towards end.
47643
+ cubic: function (t) { return t * (4 * t * t - 9 * t + 6); },
47644
+ // Overshoots over 1 multiple times - wiggles around 1.
47645
+ elastic: function (t) { return t * (33 * t * t * t * t - 106 * t * t * t + 126 * t * t - 67 * t + 15); },
47646
+ // Accelerating from zero velocity
47647
+ inQuad: function (t) { return t * t; },
47648
+ // Decelerating to zero velocity
47649
+ outQuad: function (t) { return t * (2 - t); },
47650
+ // Acceleration until halfway, then deceleration
47651
+ inOutQuad: function (t) { return t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t; },
47652
+ // Accelerating from zero velocity
47653
+ inCubic: function (t) { return t * t * t; },
47654
+ // Decelerating to zero velocity
47655
+ outCubic: function (t) { return (--t) * t * t + 1; },
47656
+ // Acceleration until halfway, then deceleration
47657
+ inOutCubic: function (t) { return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1; },
47658
+ // Accelerating from zero velocity
47659
+ inQuart: function (t) { return t * t * t * t; },
47660
+ // Decelerating to zero velocity
47661
+ outQuart: function (t) { return 1 - (--t) * t * t * t; },
47662
+ // Acceleration until halfway, then deceleration
47663
+ inOutQuart: function (t) { return t < .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t; },
47664
+ // Accelerating from zero velocity
47665
+ inQuint: function (t) { return t * t * t * t * t; },
47666
+ // Decelerating to zero velocity
47667
+ outQuint: function (t) { return 1 + (--t) * t * t * t * t; },
47668
+ // Acceleration until halfway, then deceleration
47669
+ inOutQuint: function (t) { return t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t; },
47670
+ // Accelerating from zero velocity
47671
+ inSine: function (t) { return -Math.cos(t * (Math.PI / 2)) + 1; },
47672
+ // Decelerating to zero velocity
47673
+ outSine: function (t) { return Math.sin(t * (Math.PI / 2)); },
47674
+ // Accelerating until halfway, then decelerating
47675
+ inOutSine: function (t) { return -(Math.cos(Math.PI * t) - 1) / 2; },
47676
+ // Exponential accelerating from zero velocity
47677
+ inExpo: function (t) { return Math.pow(2, 10 * (t - 1)); },
47678
+ // Exponential decelerating to zero velocity
47679
+ outExpo: function (t) { return -Math.pow(2, -10 * t) + 1; },
47680
+ // Exponential accelerating until halfway, then decelerating
47681
+ inOutExpo: function (t) {
47682
+ t /= .5;
47683
+ if (t < 1)
47684
+ return Math.pow(2, 10 * (t - 1)) / 2;
47685
+ t--;
47686
+ return (-Math.pow(2, -10 * t) + 2) / 2;
47687
+ },
47688
+ // Circular accelerating from zero velocity
47689
+ inCirc: function (t) { return -Math.sqrt(1 - t * t) + 1; },
47690
+ // Circular decelerating to zero velocity Moves VERY fast at the beginning and
47691
+ // then quickly slows down in the middle. This tween can actually be used
47692
+ // in continuous transitions where target value changes all the time,
47693
+ // because of the very quick start, it hides the jitter between target value changes.
47694
+ outCirc: function (t) { return Math.sqrt(1 - (t = t - 1) * t); },
47695
+ // Circular acceleration until halfway, then deceleration
47696
+ inOutCirc: function (t) {
47697
+ t /= .5;
47698
+ if (t < 1)
47699
+ return -(Math.sqrt(1 - t * t) - 1) / 2;
47700
+ t -= 2;
47701
+ return (Math.sqrt(1 - t * t) + 1) / 2;
47702
+ }
47703
+ };
47704
+
47705
+ var ZoomState;
47706
+ (function (ZoomState) {
47707
+ ZoomState["ZOOMING_IN"] = "ZOOMING_IN";
47708
+ ZoomState["ZOOMING_OUT"] = "ZOOMING_OUT";
47709
+ })(ZoomState || (ZoomState = {}));
47710
+
46303
47711
  var Breadcrumb = forwardRef(function (_a, ref) {
46304
- var items = _a.items, className = _a.className, rest = __rest$1(_a, ["items", "className"]);
46305
- return (e.createElement("div", __assign$1({ className: classNames('ods-breadcrumb', className), ref: ref }, rest), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
47712
+ var items = _a.items, className = _a.className, rest = __rest$2(_a, ["items", "className"]);
47713
+ var isMobile = useMedia('(max-width: 576px)');
47714
+ var onHandleLastItem = function () {
47715
+ window.history.back();
47716
+ };
47717
+ return (e.createElement("div", __assign$2({ className: classNames('ods-breadcrumb', className), ref: ref }, rest), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
47718
+ var isLast = index === items.length - 1;
46306
47719
  var showIcon = index !== items.length - 1 && (e.createElement(ee, { size: 12 }));
46307
- return typeof item === 'string' ? (e.createElement("div", { className: "ods-breadcrumb__item", key: "string-item-".concat(item) },
46308
- e.createElement("span", null, item),
46309
- " ",
46310
- showIcon)) : (e.createElement("div", { className: "ods-breadcrumb__item", key: "tag-item-".concat(index + 1) },
46311
- item,
46312
- " ",
46313
- showIcon));
47720
+ if (isMobile && isLast) {
47721
+ return (e.createElement("button", { type: "button", onClick: onHandleLastItem, className: "ods-breadcrumb__item", key: "tag-item-".concat(index + 1) },
47722
+ e.createElement($, { size: 12 }),
47723
+ e.createElement("span", null, item)));
47724
+ }
47725
+ if (!isMobile) {
47726
+ return typeof item === 'string' ? (e.createElement("div", { className: "ods-breadcrumb__item", key: "string-item-".concat(item) },
47727
+ e.createElement("span", null, item),
47728
+ " ",
47729
+ showIcon)) : (e.createElement("div", { className: "ods-breadcrumb__item", key: "tag-item-".concat(index + 1) },
47730
+ item,
47731
+ " ",
47732
+ showIcon));
47733
+ }
47734
+ return null;
46314
47735
  })));
46315
47736
  });
46316
47737
  Breadcrumb.displayName = 'Breadcrumb';
@@ -46418,8 +47839,8 @@ var Snackbar = e.forwardRef(function (_a, ref) {
46418
47839
  Snackbar.displayName = 'Snackbar';
46419
47840
 
46420
47841
  var Shortcut = function (_a) {
46421
- var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
46422
- return (e.createElement("div", __assign$1({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', "ods-shortcut--".concat(orientation)) }, rest),
47842
+ var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, rest = __rest$2(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
47843
+ return (e.createElement("div", __assign$2({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', "ods-shortcut--".concat(orientation)) }, rest),
46423
47844
  blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
46424
47845
  e.createElement(jr, null))),
46425
47846
  count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
@@ -46510,7 +47931,7 @@ var Chips = function (_a) {
46510
47931
  return;
46511
47932
  }
46512
47933
  if (Array.isArray(selectedOptions)) {
46513
- var copyOptions = __spreadArray$1([], selectedOptions, true);
47934
+ var copyOptions = __spreadArray$2([], selectedOptions, true);
46514
47935
  if (selectedOptions.find(function (option) { return option.value === value; })) {
46515
47936
  copyOptions = copyOptions.filter(function (option) { return option.value !== value; });
46516
47937
  }