UNPKG

791 kBJavaScriptView Raw
1import React__default, { Component, Children, PureComponent, createElement, createRef, forwardRef, Fragment, createContext } from 'react';
2import PropTypes__default, { PropTypes, node } from 'prop-types';
3import styled, { keyframes, css } from 'styled-components';
4import classNames from 'classnames';
5import ReactDOM, { createPortal } from 'react-dom';
6import { Transition, CSSTransition } from 'react-transition-group';
7
8function _typeof(obj) {
9 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
10 _typeof = function (obj) {
11 return typeof obj;
12 };
13 } else {
14 _typeof = function (obj) {
15 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16 };
17 }
18
19 return _typeof(obj);
20}
21
22function _classCallCheck(instance, Constructor) {
23 if (!(instance instanceof Constructor)) {
24 throw new TypeError("Cannot call a class as a function");
25 }
26}
27
28function _defineProperties(target, props) {
29 for (var i = 0; i < props.length; i++) {
30 var descriptor = props[i];
31 descriptor.enumerable = descriptor.enumerable || false;
32 descriptor.configurable = true;
33 if ("value" in descriptor) descriptor.writable = true;
34 Object.defineProperty(target, descriptor.key, descriptor);
35 }
36}
37
38function _createClass(Constructor, protoProps, staticProps) {
39 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
40 if (staticProps) _defineProperties(Constructor, staticProps);
41 return Constructor;
42}
43
44function _defineProperty(obj, key, value) {
45 if (key in obj) {
46 Object.defineProperty(obj, key, {
47 value: value,
48 enumerable: true,
49 configurable: true,
50 writable: true
51 });
52 } else {
53 obj[key] = value;
54 }
55
56 return obj;
57}
58
59function _extends() {
60 _extends = Object.assign || function (target) {
61 for (var i = 1; i < arguments.length; i++) {
62 var source = arguments[i];
63
64 for (var key in source) {
65 if (Object.prototype.hasOwnProperty.call(source, key)) {
66 target[key] = source[key];
67 }
68 }
69 }
70
71 return target;
72 };
73
74 return _extends.apply(this, arguments);
75}
76
77function _objectSpread(target) {
78 for (var i = 1; i < arguments.length; i++) {
79 var source = arguments[i] != null ? arguments[i] : {};
80 var ownKeys = Object.keys(source);
81
82 if (typeof Object.getOwnPropertySymbols === 'function') {
83 ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
84 return Object.getOwnPropertyDescriptor(source, sym).enumerable;
85 }));
86 }
87
88 ownKeys.forEach(function (key) {
89 _defineProperty(target, key, source[key]);
90 });
91 }
92
93 return target;
94}
95
96function _inherits(subClass, superClass) {
97 if (typeof superClass !== "function" && superClass !== null) {
98 throw new TypeError("Super expression must either be null or a function");
99 }
100
101 subClass.prototype = Object.create(superClass && superClass.prototype, {
102 constructor: {
103 value: subClass,
104 writable: true,
105 configurable: true
106 }
107 });
108 if (superClass) _setPrototypeOf(subClass, superClass);
109}
110
111function _getPrototypeOf(o) {
112 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
113 return o.__proto__ || Object.getPrototypeOf(o);
114 };
115 return _getPrototypeOf(o);
116}
117
118function _setPrototypeOf(o, p) {
119 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
120 o.__proto__ = p;
121 return o;
122 };
123
124 return _setPrototypeOf(o, p);
125}
126
127function _objectWithoutPropertiesLoose(source, excluded) {
128 if (source == null) return {};
129 var target = {};
130 var sourceKeys = Object.keys(source);
131 var key, i;
132
133 for (i = 0; i < sourceKeys.length; i++) {
134 key = sourceKeys[i];
135 if (excluded.indexOf(key) >= 0) continue;
136 target[key] = source[key];
137 }
138
139 return target;
140}
141
142function _objectWithoutProperties(source, excluded) {
143 if (source == null) return {};
144
145 var target = _objectWithoutPropertiesLoose(source, excluded);
146
147 var key, i;
148
149 if (Object.getOwnPropertySymbols) {
150 var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
151
152 for (i = 0; i < sourceSymbolKeys.length; i++) {
153 key = sourceSymbolKeys[i];
154 if (excluded.indexOf(key) >= 0) continue;
155 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
156 target[key] = source[key];
157 }
158 }
159
160 return target;
161}
162
163function _assertThisInitialized(self) {
164 if (self === void 0) {
165 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
166 }
167
168 return self;
169}
170
171function _possibleConstructorReturn(self, call) {
172 if (call && (typeof call === "object" || typeof call === "function")) {
173 return call;
174 }
175
176 return _assertThisInitialized(self);
177}
178
179function _taggedTemplateLiteral(strings, raw) {
180 if (!raw) {
181 raw = strings.slice(0);
182 }
183
184 return Object.freeze(Object.defineProperties(strings, {
185 raw: {
186 value: Object.freeze(raw)
187 }
188 }));
189}
190
191function _toArray(arr) {
192 return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();
193}
194
195function _toConsumableArray(arr) {
196 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
197}
198
199function _arrayWithoutHoles(arr) {
200 if (Array.isArray(arr)) {
201 for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
202
203 return arr2;
204 }
205}
206
207function _arrayWithHoles(arr) {
208 if (Array.isArray(arr)) return arr;
209}
210
211function _iterableToArray(iter) {
212 if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
213}
214
215function _nonIterableSpread() {
216 throw new TypeError("Invalid attempt to spread non-iterable instance");
217}
218
219function _nonIterableRest() {
220 throw new TypeError("Invalid attempt to destructure non-iterable instance");
221}
222
223// DIRECTIONS
224var TOP = "top";
225var BOTTOM = "bottom";
226var LEFT = "left";
227var RIGHT = "right";
228var AUTO = "auto";
229var DIRECTIONS = [TOP, BOTTOM, LEFT, RIGHT, AUTO];
230// VARIANTS
231var LIGHT = "light";
232var DARK = "dark";
233var VARIANTS = [LIGHT, DARK];
234// BUTTON_VARIANTS
235var STANDARD = "standard";
236var SPECIAL = "special";
237var OUTLINE = "outline";
238var OUTLINE_GRAY = "outlineGray";
239var TRANSPARENT = "transparent";
240var BUTTON_VARIANTS = [STANDARD, SPECIAL, OUTLINE, OUTLINE_GRAY, TRANSPARENT];
241// SIZES
242var SMALL = "small";
243var REGULAR = "regular";
244var LARGE = "large";
245var SIZES = [SMALL, REGULAR, LARGE];
246var SIZES_SL = [SMALL, LARGE];
247var SIZES_SR = [SMALL, REGULAR];
248var ARROW_WIDTH = 12; // FONT_WEIGHTS
249var FONT_WEIGHT_SEMI_BOLD = "semiBold";
250
251// THEME COLORS
252var ONYX = "onyx";
253var BASE = "base";
254
255var spacing = {
256 slim: "4px",
257 cozy: "8px",
258 moderate: "16px",
259 normal: "24px",
260 comfy: "32px",
261 shakira: "32px",
262 // NOTE: this constant is deprecated. It will be removed in the future.
263 spacious: "48px",
264 giant: "64px",
265 colossal: "88px",
266 gutters: {
267 tiny: 8,
268 small: 16,
269 mediumAndUp: 24,
270 largeAndUp: 32
271 }
272};
273
274var typography = {
275 weight: {
276 light: 300,
277 regular: 400,
278 semiBold: 600,
279
280 /**
281 * @deprecated Use `semiBold` value instead
282 */
283 extraBold: 600
284 },
285 lineHeight: {
286 body: "1.5",
287 header: "1.25"
288 },
289 size: {
290 mini: "10px",
291 uno: "12px",
292 hecto: "14px",
293 kilo: "16px",
294 giga: "20px",
295 tera: "24px",
296 zetta: "32px",
297 bronto: "46px"
298 }
299};
300
301var success = "#1bab1e";
302var global$1 = {
303 brand: "#026cdf",
304 primary: {
305 // brand colors
306 base: "#026cdf",
307 reverse: "#3396ff",
308 reverseLight: "#80b5ef",
309 reverseLightest: "#bfdaf6",
310 // button colors
311 dark: "#0150a7",
312 darkest: "#013670",
313 light: "#d6e7fa",
314 lightest: "#ebf4fd",
315 // not used in new components. kept for backward compatibility.
316 lightBase: "rgba(2, 108, 223, 0.1)",
317 medium: "#0150a7",
318 muted: "#d6e7fa"
319 },
320 special: {
321 base: success,
322 dark: "#23702c",
323 darkest: "#265333",
324 medium: "#23702c" // not used in new components. kept for backward compatibility.
325
326 },
327 darkFill: "#1f262d",
328 // not used in new components. kept for backward compatibility.
329 dark: {
330 base: "#1f262d",
331 light: "#8f9296",
332 lightest: "#e3e4e5"
333 },
334 accent01: {
335 base: "#c56bff",
336 dark: "#904eba",
337 light: "#eacbff",
338 lightest: "#f9f0ff"
339 },
340 accent02: {
341 base: "#962d94",
342 dark: "#6d236c",
343 light: "#dfc0df",
344 lightest: "#f4eaf4"
345 },
346 accent03: {
347 base: "#14a1a3",
348 dark: "#0a7e80",
349 light: "#aadddd",
350 lightest: "#cef2f2",
351 reverse: "#20c4c7"
352 },
353 accent04: "#00ffff",
354 gray01: "#262626",
355 gray02: "#999999",
356 gray03: "#bfbfbf",
357 gray04: "#ebebeb",
358 gray05: "#f6f6f6",
359 error: {
360 base: "#d93a3a",
361 dark: "#a22b2b",
362 light: "#f3c3c3",
363 lightest: "#fbebeb"
364 },
365 caution: {
366 base: "#f2bd2a",
367 dark: "#c69a22",
368 light: "#fae7b4",
369 lightest: "#fdf5df"
370 },
371 success: {
372 base: success,
373 dark: "#148016",
374 light: "#bae5bb",
375 lightest: "#e8f6e8"
376 },
377 transparent: "transparent",
378 onyx: {
379 base: "rgba(38, 38, 38, 1)",
380 light: "rgba(38, 38, 38, 0.65)",
381 muted: "rgba(38, 38, 38, 0.4)"
382 },
383 white: {
384 base: "rgba(255, 255, 255, 1)",
385 lighter: "rgba(255, 255, 255, 0.2)",
386 midlight: "rgba(255, 255, 255, 0.65)",
387 light: "rgba(255, 255, 255, 0.7)",
388 muted: "rgba(255, 255, 255, 0.5)"
389 }
390};
391var themes = {
392 global: global$1,
393 tm: global$1,
394 lne: _objectSpread({}, global$1, {
395 brand: "#e11d39",
396 primary: {
397 base: "#2cb3ad",
398 medium: "#239893",
399 dark: "#1f8783",
400 light: "#e9f7f6",
401 lightest: "#e9f7f6",
402 muted: "#d5f0ef"
403 }
404 })
405};
406
407var tm = themes.tm;
408/**
409 * PLEASE NOTE: THESE COLORS ARE DEPRECATED! DO NOT USE!
410 * Please reference the colorThemes located in `/src/theme/colorThemes` instead!
411 */
412
413var colors = {
414 azure: {
415 dark: tm.primary.base,
416 base: tm.primary.base,
417 light: "rgba(2, 108, 223, 0.2)",
418 muted: tm.primary.lightBase,
419 restrained: "rgba(2, 108, 223, 0.4)",
420 hover: tm.primary.medium,
421 hoverLight: tm.primary.light,
422 pressed: tm.primary.dark,
423 pressedLight: tm.primary.muted
424 },
425 emerald: _objectSpread({}, tm.success, {
426 hover: tm.special.medium,
427 pressed: tm.special.dark,
428 muted: "rgba(27, 171, 30, 0.4)",
429 restrained: "rgba(27, 171, 30, 0.2)"
430 }),
431 outlined: {
432 hover: "#ECF4FD",
433 pressed: "#D9E8F9"
434 },
435 transparent: tm.transparent,
436 summerSky: "#3AC7FF",
437 blackPearl: tm.darkFill,
438 slate: tm.gray02,
439 moonstone: "#D1D1D1",
440 shale: "#E6E6E6",
441 quartz: tm.gray05,
442 lightGray: "#E0E0E0",
443 aquamarine: tm.accent04,
444 turquoise: tm.accent03,
445 ruby: {
446 base: tm.error.base,
447 darkRuby: tm.error.dark,
448 lightRuby: tm.error.light
449 },
450 amber: {
451 base: tm.caution.base,
452 darkAmber: tm.caution.dark,
453 lightAmber: tm.caution.light
454 },
455 moonrock: tm.gray03,
456 diatomite: tm.gray04,
457 heliotrope: _objectSpread({}, tm.accent01, {
458 muted: "#F3E1FF"
459 }),
460 cruz: _objectSpread({}, tm.accent02, {
461 muted: "#e3cae3"
462 }),
463 alert: {
464 base: tm.error.base,
465 dark: "#AE393A",
466 light: "#EC9C9C",
467 muted: "#F5CDCD"
468 },
469 caution: tm.caution,
470 positive: {
471 base: tm.success.base,
472 dark: "#208E25",
473 light: "#8DD58E",
474 muted: "#C5E9C6"
475 },
476 defaultGradient: {
477 from: tm.primary.base,
478 to: "#3ac7ff"
479 },
480 onyx: tm.onyx,
481 white: tm.white
482};
483
484var zIndex = {
485 default: 0,
486 reset: 1,
487 unset: -1,
488 shared: {
489 autocomplete: 1
490 },
491 searchsuggest: {
492 base: 4,
493 fields: 5
494 },
495 layout: {
496 feedback: 1,
497 ads: 2,
498 header: 3,
499 menu: 4,
500 overlay: 9
501 },
502 drawer: {
503 overlay: 3,
504 content: 4
505 },
506 filter: {
507 panel: 5
508 }
509};
510
511var constants = {
512 MAX_COLUMNS: 12,
513 borderRadius: {
514 small: "2px",
515 large: "4px",
516 xLarge: "8px",
517 xxLarge: "10px"
518 },
519 breakpoints: {
520 small: "(max-width: 767px)",
521 medium: "(min-width: 768px)",
522 large: "(min-width: 1024px)",
523 xLarge: "(min-width: 1440px)",
524 xSmallAndDown: "(max-width: 479px)",
525 smallAndUp: "(min-width: 480px)",
526 mediumAndUp: "(min-width: 768px)",
527 largeAndUp: "(min-width: 1024px)",
528 midLargeAndUp: "(min-width: 1280px)",
529 midLargeAndDown: "(max-width: 1280px)",
530 xLargeAndUp: "(min-width: 1440px)"
531 },
532 easing: {
533 easeInQuad: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
534 easeInOutQuad: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
535 easeOutQuad: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
536 exit: "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
537 elastic: "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
538 }
539};
540var cardBoxShadow = "0 4px 4px 0 rgba(0, 0, 0, 0.06), 0 0 4px 0 rgba(0, 0, 0, 0.12)";
541var popContainersBoxShadow = "0 4px 4px 0 rgba(0, 0, 0, 0.12)";
542var popContainersSharpBoxShadow = "0 2px 8px 0 rgba(159, 159, 159, 0.5)";
543var THEME_TM = {
544 themeName: "tm"
545};
546
547var _this = undefined;
548
549/* eslint-disable no-param-reassign */
550var memoize = (function (fn) {
551 return function () {
552 for (var _len = arguments.length, input = new Array(_len), _key = 0; _key < _len; _key++) {
553 input[_key] = arguments[_key];
554 }
555
556 var args = Array.prototype.slice.call(input);
557 fn.cache = fn.cache || {};
558 var result = fn.cache[args] ? fn.cache[args] : fn.cache[args] = fn.apply(_this, args);
559 return result;
560 };
561});
562
563var getThemeObject = function getThemeObject(themeName, customValues) {
564 var baseTheme = themes[themeName] || themes.global;
565
566 if (customValues && customValues.constructor === Object) {
567 return _objectSpread({}, baseTheme, customValues);
568 }
569
570 return baseTheme;
571};
572
573var memoized = memoize(getThemeObject);
574
575var themeShape = {
576 themeName: PropTypes__default.string.isRequired
577};
578/**
579 * This function allows to retrieve a value from the themes object.
580 * The first function accepts path as a list of strings.
581 * The second function accepts a theme object. It's provided in styled components
582 * automatically.
583 */
584
585var getThemeValue = (function () {
586 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
587 args[_key] = arguments[_key];
588 }
589
590 return function () {
591 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
592 _ref$theme = _ref.theme;
593
594 _ref$theme = _ref$theme === void 0 ? THEME_TM : _ref$theme;
595 var _ref$theme$themeName = _ref$theme.themeName,
596 themeName = _ref$theme$themeName === void 0 ? THEME_TM.themeName : _ref$theme$themeName,
597 _ref$theme$customValu = _ref$theme.customValues,
598 customValues = _ref$theme$customValu === void 0 ? null : _ref$theme$customValu;
599 var themeObject = memoized(themeName, customValues);
600 return args.reduce(function (acc, el) {
601 if (acc[el] === undefined) {
602 throw new ReferenceError("value is not defined");
603 }
604
605 return acc[el];
606 }, themeObject);
607 };
608});
609
610var composeHandler = function composeHandler() {
611 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
612 args[_key] = arguments[_key];
613 }
614
615 return function (e) {
616 args.forEach(function (fn) {
617 return fn && fn(e);
618 });
619 };
620};
621
622/**
623 * getRelByTarget overrides the anchor tag's rel attribute to "noopener" when the target attribute equals "_blank"
624 * Prevents a security vulnerability and improves performance: https://developers.google.com/web/tools/lighthouse/audits/noopener
625 * @param { String } target - Specifies where to open the linked document (e.g. _blank, _self, _parent, _top, framename)
626 * @param { String } rel - Specifies the relationship between the current document and the linked document (e.g. alternate, author, noopener, etc.)
627 * @returns { String } rel
628 */
629var getRelByTarget = function getRelByTarget(target, rel) {
630 return target === "_blank" ? "noopener" : rel;
631};
632var getAsProp = function getAsProp(_ref) {
633 var href = _ref.href,
634 onClick = _ref.onClick;
635 if (href && href.length) return {
636 as: "a"
637 };
638 if (!href && onClick && typeof onClick === "function") return {
639 as: "button"
640 };
641 return {
642 as: "span"
643 };
644};
645
646var omitKeys = function omitKeys() {
647 var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
648 var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
649 return Object.keys(obj).reduce(function (acc, key) {
650 if (keys.includes(key)) return acc;
651 acc[key] = obj[key];
652 return acc;
653 }, {});
654};
655
656var sluggify = function sluggify() {
657 var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
658
659 if (typeof text !== "string") {
660 return "";
661 }
662
663 return text.replace(/\s/g, "").toLowerCase();
664};
665
666var getFontHue = function getFontHue(_ref) {
667 var fontColor = _ref.fontColor,
668 primary = _ref.primary,
669 secondary = _ref.secondary,
670 disabled = _ref.disabled,
671 variant = _ref.variant,
672 themed = _ref.themed;
673 if (typeof fontColor === "string") return themed ? "" : fontColor;
674 var fontHues = themed ? {
675 primary: variant === "accent" ? "dark" : "base",
676 secondary: variant === "accent" ? "base" : "light",
677 disabled: variant === "accent" ? "light" : "muted"
678 } : {
679 primary: variant === "accent" ? fontColor.dark : fontColor.base,
680 secondary: fontColor.light,
681 disabled: fontColor.muted
682 };
683
684 switch (true) {
685 case primary:
686 return fontHues.primary;
687
688 case secondary:
689 return fontHues.secondary;
690
691 case disabled:
692 return fontHues.disabled;
693
694 default:
695 return fontHues.primary;
696 }
697};
698var getFontColor = function getFontColor(_ref2) {
699 var variant = _ref2.variant,
700 accent = _ref2.accent,
701 primary = _ref2.primary,
702 secondary = _ref2.secondary,
703 disabled = _ref2.disabled;
704 var fontColors = {
705 dark: themes.global.onyx,
706 light: themes.global.white,
707 accent: colors[accent]
708 };
709 var fontColor = fontColors[variant] || fontColors.dark;
710 return getFontHue({
711 fontColor: fontColor,
712 primary: primary,
713 secondary: secondary,
714 disabled: disabled,
715 variant: variant,
716 themed: false
717 });
718};
719var getThemedFontColor = function getThemedFontColor(_ref3) {
720 var theme = _ref3.theme,
721 variant = _ref3.variant,
722 accent = _ref3.accent,
723 primary = _ref3.primary,
724 secondary = _ref3.secondary,
725 disabled = _ref3.disabled;
726
727 if (!theme || !theme.themeName) {
728 return getFontColor({
729 variant: variant,
730 accent: accent,
731 primary: primary,
732 secondary: secondary,
733 disabled: disabled
734 });
735 }
736
737 var fontColors = {
738 dark: "onyx",
739 light: "white",
740 accent: accent
741 };
742 var fontColor = getThemeValue(fontColors[variant] || "onyx")({
743 theme: theme
744 });
745 var fontHue = getFontHue({
746 fontColor: fontColor,
747 primary: primary,
748 secondary: secondary,
749 disabled: disabled,
750 variant: variant,
751 themed: true
752 });
753 return fontColor[fontHue] || fontColor;
754};
755var labelsColorMap = {
756 alert: themes.global.error.base,
757 positive: themes.global.success.base,
758 positiveDark: themes.global.success.dark,
759 accent: themes.global.accent01.dark,
760 caution: themes.global.caution.dark,
761 neutral: themes.global.onyx.light
762};
763var getLabelTextColor = function getLabelTextColor(_ref4) {
764 var variant = _ref4.variant;
765 return labelsColorMap[variant] || "inherit";
766};
767
768var throttle = (function (callback, wait) {
769 var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
770 var timeout = null;
771 var initialCall = true; // eslint-disable-next-line func-names
772
773 return function () {
774 var _this = this;
775
776 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
777 args[_key] = arguments[_key];
778 }
779
780 var callNow = immediate && initialCall;
781
782 var next = function next() {
783 callback.apply(_this, args);
784 timeout = null;
785 };
786
787 if (callNow) {
788 initialCall = false;
789 next();
790 }
791
792 if (!timeout) {
793 timeout = setTimeout(next, wait);
794 }
795 };
796});
797
798var isValidThemeColorVariant = function isValidThemeColorVariant() {
799 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : THEME_TM,
800 _ref$themeName = _ref.themeName,
801 themeName = _ref$themeName === void 0 ? THEME_TM.themeName : _ref$themeName,
802 _ref$customValues = _ref.customValues,
803 customValues = _ref$customValues === void 0 ? null : _ref$customValues;
804
805 var color = arguments.length > 1 ? arguments[1] : undefined;
806 var variant = arguments.length > 2 ? arguments[2] : undefined;
807 var themeObject = memoized(themeName, customValues);
808 return Boolean(themeObject[color] && themeObject[color].constructor === Object && themeObject[color][variant]);
809};
810
811var getBackgroundImage = function getBackgroundImage(_ref) {
812 var backgroundImage = _ref.backgroundImage,
813 deg = _ref.deg,
814 stops = _ref.stops;
815 return [deg && stops && "linear-gradient(".concat(deg, ", ").concat(stops.join(", "), ")"), backgroundImage && "url(".concat(backgroundImage, ")")].join(backgroundImage && deg && stops ? ", " : "");
816};
817
818function _templateObject2() {
819 var data = _taggedTemplateLiteral(["\n display: block;\n text-decoration: none;\n"]);
820
821 _templateObject2 = function _templateObject2() {
822 return data;
823 };
824
825 return data;
826}
827
828function _templateObject() {
829 var data = _taggedTemplateLiteral(["\n font-family: inherit;\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 100%;\n padding: 0 ", " 0 ", ";\n min-width: 60px;\n text-align: center;\n border-radius: ", ";\n cursor: pointer;\n\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n\n transition: transform 0.1s linear;\n transition: background-color 0.3s ", ";\n\n &:focus {\n outline: none;\n box-shadow: 0 0 5px 0 ", ";\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n transform: scale(0.98, 0.98) translate(0, 1px);\n background-color: ", ";\n }\n\n &:disabled {\n transform: none;\n color: ", ";\n background-color: ", ";\n border: 1px solid\n ", ";\n ", ";\n }\n\n &.noFocus:focus {\n box-shadow: none;\n }\n\n &.iconed svg {\n position: relative;\n display: inline-block;\n vertical-align: text-top;\n margin-right: ", ";\n }\n"]);
830
831 _templateObject = function _templateObject() {
832 return data;
833 };
834
835 return data;
836}
837var colorVariants = {
838 standard: {
839 color: getThemeValue("white", "base"),
840 backgroundColor: getThemeValue("primary", "base"),
841 backgroundColorHover: getThemeValue("primary", "medium"),
842 backgroundColorPressed: getThemeValue("primary", "dark"),
843 borderColor: getThemeValue("transparent")
844 },
845 standardDisabled: {
846 color: getThemeValue("white", "base"),
847 backgroundColor: getThemeValue("primary", "base"),
848 borderColor: getThemeValue("transparent")
849 },
850 special: {
851 color: getThemeValue("white", "base"),
852 backgroundColor: getThemeValue("special", "base"),
853 backgroundColorHover: getThemeValue("special", "medium"),
854 backgroundColorPressed: getThemeValue("special", "dark"),
855 borderColor: getThemeValue("transparent")
856 },
857 specialDisabled: {
858 color: getThemeValue("white", "base"),
859 backgroundColor: getThemeValue("special", "base"),
860 borderColor: getThemeValue("transparent")
861 },
862 outline: {
863 color: getThemeValue("primary", "base"),
864 backgroundColor: getThemeValue("white", "base"),
865 backgroundColorHover: getThemeValue("primary", "light"),
866 backgroundColorPressed: getThemeValue("primary", "muted"),
867 borderColor: getThemeValue("primary", "base")
868 },
869 outlineDisabled: {
870 color: getThemeValue("primary", "base"),
871 backgroundColor: getThemeValue("transparent"),
872 borderColor: getThemeValue("primary", "base")
873 },
874 transparent: {
875 color: getThemeValue("primary", "base"),
876 backgroundColor: getThemeValue("transparent"),
877 backgroundColorHover: getThemeValue("primary", "light"),
878 backgroundColorPressed: getThemeValue("primary", "muted"),
879 borderColor: getThemeValue("transparent")
880 },
881 transparentDisabled: {
882 color: getThemeValue("primary", "base"),
883 backgroundColor: getThemeValue("transparent"),
884 borderColor: getThemeValue("transparent")
885 },
886 outlineGray: {
887 color: getThemeValue("darkFill"),
888 backgroundColor: getThemeValue("white", "base"),
889 backgroundColorHover: getThemeValue("white", "base"),
890 backgroundColorPressed: getThemeValue("white", "base"),
891 borderColor: getThemeValue("gray04")
892 },
893 outlineGrayDisabled: {
894 color: getThemeValue("primary", "base"),
895 backgroundColor: getThemeValue("transparent"),
896 borderColor: getThemeValue("gray02")
897 }
898};
899var SIZES$1 = {
900 small: {
901 padding: "10px",
902 lineHeight: 1.84,
903 fontSize: typography.size.uno
904 },
905 regular: {
906 padding: "12px",
907 lineHeight: 2.43,
908 fontSize: typography.size.hecto
909 },
910 large: {
911 padding: "14px",
912 lineHeight: 2.63,
913 fontSize: typography.size.kilo
914 }
915};
916
917var getPadding = function getPadding(_ref) {
918 var size = _ref.size;
919 return SIZES$1[size].padding;
920};
921
922var StyledButton = styled.button(_templateObject(), typography.weight.semiBold, function (_ref2) {
923 var size = _ref2.size;
924 return SIZES$1[size].fontSize;
925}, function (_ref3) {
926 var size = _ref3.size;
927 return SIZES$1[size].lineHeight;
928}, getPadding, getPadding, constants.borderRadius.small, function (_ref4) {
929 var variant = _ref4.variant;
930 return colorVariants[variant].color;
931}, function (_ref5) {
932 var variant = _ref5.variant;
933 return colorVariants[variant].backgroundColor;
934}, function (_ref6) {
935 var variant = _ref6.variant;
936 return colorVariants[variant].borderColor;
937}, constants.easing.easeInOutQuad, getThemeValue("primary", "base"), function (_ref7) {
938 var variant = _ref7.variant;
939 return colorVariants[variant].backgroundColorHover;
940}, function (_ref8) {
941 var variant = _ref8.variant;
942 return colorVariants[variant].backgroundColorPressed;
943}, function (_ref9) {
944 var variant = _ref9.variant;
945 return colorVariants[variant].color;
946}, function (_ref10) {
947 var variant = _ref10.variant;
948 return colorVariants[variant].backgroundColor;
949}, function (_ref11) {
950 var variant = _ref11.variant;
951 return colorVariants["".concat(variant, "Disabled")].borderColor;
952}, function (_ref12) {
953 var variant = _ref12.variant;
954 return variant === SPECIAL ? "opacity: 0.4;" : "opacity: 0.2;";
955}, spacing.cozy);
956StyledButton.defaultProps = {
957 theme: {
958 themeName: "tm"
959 }
960};
961var StyledButtonLink = styled(StyledButton)(_templateObject2());
962
963function isButtonLinkProps(props) {
964 return !!props.href;
965}
966
967var Button =
968/*#__PURE__*/
969function (_Component) {
970 _inherits(Button, _Component);
971
972 function Button() {
973 var _getPrototypeOf2;
974
975 var _this;
976
977 _classCallCheck(this, Button);
978
979 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
980 args[_key] = arguments[_key];
981 }
982
983 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Button)).call.apply(_getPrototypeOf2, [this].concat(args)));
984
985 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusHandler", function () {
986 window.addEventListener("keyup", _this.activateFocusStyles);
987 });
988
989 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurHandler", function () {
990 if (_this.button && _this.button.current && _this.button.current.classList) {
991 _this.button.current.classList.add("noFocus");
992 }
993
994 window.removeEventListener("keyup", _this.activateFocusStyles);
995 });
996
997 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "activateFocusStyles", function () {
998 if (_this.button && _this.button.current && _this.button.current.classList) {
999 _this.button.current.classList.remove("noFocus");
1000 }
1001 });
1002
1003 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "button", _this.props.forwardedRef || React__default.createRef());
1004
1005 return _this;
1006 }
1007
1008 _createClass(Button, [{
1009 key: "componentDidMount",
1010 value: function componentDidMount() {
1011 if (!isButtonLinkProps(this.props) && this.button && this.button.current) {
1012 // this functionality is required to avoid focus outline on click but keep it on tab focus
1013 this.button.current.addEventListener("focus", this.focusHandler);
1014 this.button.current.addEventListener("blur", this.blurHandler);
1015 }
1016 }
1017 }, {
1018 key: "componentWillUnmount",
1019 value: function componentWillUnmount() {
1020 // in case user leaves a page before onBlur is triggered
1021 window.removeEventListener("keyup", this.activateFocusStyles);
1022 }
1023 }, {
1024 key: "render",
1025 value: function render() {
1026 var _this$props = this.props,
1027 variant = _this$props.variant,
1028 size = _this$props.size,
1029 icon = _this$props.icon,
1030 children = _this$props.children,
1031 rest = _objectWithoutProperties(_this$props, ["variant", "size", "icon", "children"]);
1032
1033 if (isButtonLinkProps(this.props)) {
1034 var _this$props2 = this.props,
1035 _rel = _this$props2.rel,
1036 _target = _this$props2.target;
1037 var validatedRel = getRelByTarget(_target, _rel);
1038 return React__default.createElement(StyledButtonLink, _extends({
1039 variant: variant,
1040 size: size,
1041 rel: validatedRel,
1042 as: "a",
1043 className: "".concat(icon ? "iconed" : "")
1044 }, rest), icon, children);
1045 }
1046
1047 return React__default.createElement(StyledButton, _extends({
1048 variant: variant,
1049 size: size
1050 }, rest, {
1051 className: "".concat(rest.className || "", " ").concat(icon ? "iconed" : "", " noFocus"),
1052 ref: this.button
1053 }), icon, children);
1054 }
1055 }]);
1056
1057 return Button;
1058}(Component);
1059
1060_defineProperty(Button, "displayName", "Button");
1061
1062_defineProperty(Button, "propTypes", {
1063 variant: PropTypes__default.oneOf(BUTTON_VARIANTS),
1064 size: PropTypes__default.oneOf(SIZES),
1065 icon: PropTypes__default.node,
1066 children: PropTypes__default.node.isRequired,
1067 forwardedRef: PropTypes__default.objectOf(PropTypes__default.any)
1068});
1069
1070_defineProperty(Button, "defaultProps", {
1071 size: REGULAR,
1072 variant: STANDARD,
1073 icon: null,
1074 forwardedRef: null
1075});
1076
1077function _templateObject2$1() {
1078 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n display: flex;\n flex-flow: row;\n align-items: center;\n justify-content: center;\n max-width: 45px;\n min-width: 45px;\n height: 20px;\n"]);
1079
1080 _templateObject2$1 = function _templateObject2() {
1081 return data;
1082 };
1083
1084 return data;
1085}
1086
1087function _templateObject$1() {
1088 var data = _taggedTemplateLiteral(["\n height: ", ";\n width: 100%;\n min-width: 100px;\n\n font-weight: ", ";\n text-align: center;\n border-radius: ", ";\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n cursor: pointer;\n\n &:disabled {\n color: ", ";\n background-color: ", ";\n border: 1px solid\n ", ";\n cursor: not-allowed;\n }\n"]);
1089
1090 _templateObject$1 = function _templateObject() {
1091 return data;
1092 };
1093
1094 return data;
1095}
1096var HEIGHT = "36px";
1097var VARIANTS$1 = {
1098 standard: {
1099 color: themes.global.white.base,
1100 backgroundColor: themes.global.primary.base,
1101 borderColor: themes.global.primary.base
1102 },
1103 standardDisabled: {
1104 color: themes.global.white.base,
1105 backgroundColor: colors.azure.light,
1106 borderColor: colors.azure.light
1107 },
1108 outline: {
1109 color: themes.global.primary.base,
1110 backgroundColor: themes.global.white.base,
1111 borderColor: themes.global.primary.base
1112 },
1113 outlineDisabled: {
1114 color: colors.azure.light,
1115 backgroundColor: themes.global.white.base,
1116 borderColor: colors.azure.light
1117 },
1118 transparent: {
1119 color: themes.global.white.base,
1120 backgroundColor: "transparent",
1121 borderColor: themes.global.white.base
1122 },
1123 transparentDisabled: {
1124 color: themes.global.white.muted,
1125 backgroundColor: "transparent",
1126 borderColor: themes.global.white.muted
1127 }
1128};
1129var GenericButton = styled.button(_templateObject$1(), HEIGHT, typography.weight.semiBold, constants.borderRadius.small, function (_ref) {
1130 var variant = _ref.variant;
1131 return VARIANTS$1[variant].color;
1132}, function (_ref2) {
1133 var variant = _ref2.variant;
1134 return VARIANTS$1[variant].backgroundColor;
1135}, function (_ref3) {
1136 var variant = _ref3.variant;
1137 return VARIANTS$1[variant].borderColor;
1138}, function (_ref4) {
1139 var variant = _ref4.variant;
1140 return VARIANTS$1["".concat(variant, "Disabled")].color;
1141}, function (_ref5) {
1142 var variant = _ref5.variant;
1143 return VARIANTS$1["".concat(variant, "Disabled")].backgroundColor;
1144}, function (_ref6) {
1145 var variant = _ref6.variant;
1146 return VARIANTS$1["".concat(variant, "Disabled")].borderColor;
1147});
1148var StyledBadge = styled(GenericButton)(_templateObject2$1(), typography.size.uno);
1149
1150var Badge = function Badge(_ref) {
1151 var children = _ref.children,
1152 variant = _ref.variant,
1153 props = _objectWithoutProperties(_ref, ["children", "variant"]);
1154
1155 return React__default.createElement(StyledBadge, _extends({
1156 variant: variant
1157 }, props), children);
1158};
1159
1160Badge.propTypes = {
1161 children: PropTypes__default.node.isRequired,
1162 variant: PropTypes__default.oneOf(BUTTON_VARIANTS),
1163 size: PropTypes__default.oneOf(SIZES)
1164};
1165Badge.defaultProps = {
1166 size: REGULAR,
1167 variant: STANDARD
1168};
1169
1170var StarIcon = function StarIcon(_ref) {
1171 var size = _ref.size,
1172 color = _ref.color,
1173 children = _ref.children,
1174 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
1175
1176 return React__default.createElement("svg", _extends({}, props, {
1177 viewBox: "0 0 11 10",
1178 width: size,
1179 height: size,
1180 fill: color
1181 }), children, React__default.createElement("path", {
1182 fillRule: "evenodd",
1183 d: "M5.5 7.7L2.267 9.95l1.14-3.77L.27 3.8l3.938-.08L5.5 0l1.293 3.72 3.938.08-3.139 2.38 1.14 3.77z"
1184 }));
1185};
1186
1187StarIcon.displayName = "StarIcon";
1188StarIcon.propTypes = {
1189 size: PropTypes.number.isRequired,
1190 color: PropTypes.string,
1191 children: PropTypes.node
1192};
1193StarIcon.defaultProps = {
1194 children: null,
1195 color: "currentColor"
1196};
1197
1198function _templateObject4() {
1199 var data = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n line-height: 1;\n"]);
1200
1201 _templateObject4 = function _templateObject4() {
1202 return data;
1203 };
1204
1205 return data;
1206}
1207
1208function _templateObject3() {
1209 var data = _taggedTemplateLiteral(["\n padding-left: 2px;\n"]);
1210
1211 _templateObject3 = function _templateObject3() {
1212 return data;
1213 };
1214
1215 return data;
1216}
1217
1218function _templateObject2$2() {
1219 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n"]);
1220
1221 _templateObject2$2 = function _templateObject2() {
1222 return data;
1223 };
1224
1225 return data;
1226}
1227
1228function _templateObject$2() {
1229 var data = _taggedTemplateLiteral(["\n padding: 0;\n\n &:hover {\n opacity: 0.5;\n }\n"]);
1230
1231 _templateObject$2 = function _templateObject() {
1232 return data;
1233 };
1234
1235 return data;
1236}
1237var StyledBadgeRating = styled(StyledBadge)(_templateObject$2());
1238var ContentWrapper = styled.span(_templateObject2$2());
1239var Container = styled.span(_templateObject3());
1240var StyledStarIcon = styled(StarIcon)(_templateObject4());
1241
1242var RatingBadge = function RatingBadge(_ref) {
1243 var variant = _ref.variant,
1244 children = _ref.children,
1245 ratingValue = _ref.ratingValue,
1246 bestRating = _ref.bestRating,
1247 ratingCount = _ref.ratingCount,
1248 props = _objectWithoutProperties(_ref, ["variant", "children", "ratingValue", "bestRating", "ratingCount"]);
1249
1250 return React__default.createElement(StyledBadgeRating, _extends({
1251 itemProp: "aggregateRating",
1252 itemScope: true,
1253 itemType: "https://schema.org/AggregateRating",
1254 variant: variant
1255 }, props), React__default.createElement(ContentWrapper, null, React__default.createElement(StyledStarIcon, {
1256 size: 12
1257 }), React__default.createElement(Container, null, children), ratingValue && React__default.createElement("meta", {
1258 itemProp: "ratingValue",
1259 content: ratingValue
1260 }), bestRating && React__default.createElement("meta", {
1261 itemProp: "bestRating",
1262 content: bestRating
1263 }), ratingCount && React__default.createElement("meta", {
1264 itemProp: "ratingCount",
1265 content: ratingCount
1266 })));
1267};
1268
1269RatingBadge.propTypes = {
1270 children: PropTypes__default.node.isRequired,
1271 ratingValue: PropTypes__default.string.isRequired,
1272 bestRating: PropTypes__default.string,
1273 ratingCount: PropTypes__default.string.isRequired,
1274 variant: PropTypes__default.oneOf(BUTTON_VARIANTS),
1275 size: PropTypes__default.oneOf(SIZES)
1276};
1277RatingBadge.defaultProps = {
1278 variant: STANDARD,
1279 size: REGULAR,
1280 bestRating: "5"
1281};
1282
1283function _templateObject$3() {
1284 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n min-width: ", "px;\n max-width: ", "px;\n height: ", "px;\n width: ", "px;\n border: none;\n\n &:focus {\n outline: none;\n }\n > * {\n pointer-events: none;\n }\n"]);
1285
1286 _templateObject$3 = function _templateObject() {
1287 return data;
1288 };
1289
1290 return data;
1291}
1292var StyledIconButton = styled(GenericButton)(_templateObject$3(), typography.size.hecto, function (props) {
1293 return props.size;
1294}, function (props) {
1295 return props.size;
1296}, function (props) {
1297 return props.size;
1298}, function (props) {
1299 return props.size;
1300});
1301
1302var IconButton = function IconButton(_ref) {
1303 var children = _ref.children,
1304 size = _ref.size,
1305 props = _objectWithoutProperties(_ref, ["children", "size"]);
1306
1307 return React__default.createElement(StyledIconButton, _extends({
1308 size: size,
1309 variant: "transparent"
1310 }, props), children);
1311};
1312
1313IconButton.defaultProps = {
1314 size: 45
1315};
1316IconButton.propTypes = {
1317 children: PropTypes__default.node.isRequired,
1318 size: PropTypes__default.number
1319};
1320
1321function _templateObject2$3() {
1322 var data = _taggedTemplateLiteral(["\n width: 100%;\n position: absolute;\n white-space: nowrap;\n top: 0;\n"]);
1323
1324 _templateObject2$3 = function _templateObject2() {
1325 return data;
1326 };
1327
1328 return data;
1329}
1330
1331function _templateObject$4() {
1332 var data = _taggedTemplateLiteral(["\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: ", ";\n animation: ", " 0.8s linear infinite;\n\n &:nth-child(2) {\n animation-delay: -0.1s;\n margin: 0 ", ";\n }\n\n &:nth-child(3) {\n animation-delay: -0.5s;\n }\n"]);
1333
1334 _templateObject$4 = function _templateObject() {
1335 return data;
1336 };
1337
1338 return data;
1339}
1340var dotColors = {
1341 white: getThemeValue("white", "base"),
1342 primary: getThemeValue("primary", "base"),
1343 dark: getThemeValue("darkFill")
1344};
1345var colorVariants$1 = {
1346 standard: dotColors.white,
1347 standardDisabled: dotColors.white,
1348 special: dotColors.white,
1349 specialDisabled: dotColors.white,
1350 outline: dotColors.primary,
1351 outlineDisabled: dotColors.primary,
1352 transparent: dotColors.primary,
1353 transparentDisabled: dotColors.primary,
1354 outlineGray: dotColors.dark,
1355 outlineGrayDisabled: dotColors.primary
1356};
1357var wave = keyframes(["0%,60%,100%{transform:initial;}30%{transform:translateY(-10px);}"]);
1358var Dot = styled.span(_templateObject$4(), function (_ref) {
1359 var variant = _ref.variant;
1360 return colorVariants$1[variant];
1361}, wave, spacing.cozy);
1362Dot.displayName = "Dot";
1363var DotsWrapper = styled.div(_templateObject2$3());
1364DotsWrapper.displayName = "DotsWrapper";
1365
1366var Loader = function Loader(_ref) {
1367 var variant = _ref.variant;
1368 return React__default.createElement(DotsWrapper, {
1369 "data-bdd": "loader"
1370 }, React__default.createElement(Dot, {
1371 variant: variant
1372 }), React__default.createElement(Dot, {
1373 variant: variant
1374 }), React__default.createElement(Dot, {
1375 variant: variant
1376 }));
1377};
1378
1379Loader.propTypes = {
1380 variant: PropTypes__default.oneOf(BUTTON_VARIANTS)
1381};
1382Loader.defaultProps = {
1383 variant: STANDARD
1384};
1385
1386function _templateObject2$4() {
1387 var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
1388
1389 _templateObject2$4 = function _templateObject2() {
1390 return data;
1391 };
1392
1393 return data;
1394}
1395
1396function _templateObject$5() {
1397 var data = _taggedTemplateLiteral(["\n visibility: ", ";\n"]);
1398
1399 _templateObject$5 = function _templateObject() {
1400 return data;
1401 };
1402
1403 return data;
1404}
1405var ContentWrapper$1 = styled.div(_templateObject$5(), function (_ref) {
1406 var isLoading = _ref.isLoading;
1407 return isLoading ? "hidden" : "visible";
1408});
1409ContentWrapper$1.displayName = "ContentWrapper";
1410var Wrapper = styled.div(_templateObject2$4());
1411Wrapper.displayName = "Wrapper";
1412
1413var ButtonWithLoading = function ButtonWithLoading(_ref) {
1414 var isLoading = _ref.isLoading,
1415 children = _ref.children,
1416 props = _objectWithoutProperties(_ref, ["isLoading", "children"]);
1417
1418 var variant = props.variant;
1419 return React__default.createElement(Button, props, React__default.createElement(Wrapper, null, React__default.createElement(ContentWrapper$1, {
1420 isLoading: isLoading
1421 }, children), isLoading && React__default.createElement(Loader, {
1422 variant: variant
1423 })));
1424};
1425
1426ButtonWithLoading.propTypes = {
1427 isLoading: PropTypes__default.bool,
1428 children: PropTypes__default.node.isRequired
1429};
1430ButtonWithLoading.defaultProps = {
1431 isLoading: false
1432};
1433
1434function _templateObject2$5() {
1435 var data = _taggedTemplateLiteral(["\n z-index: 1;\n position: absolute;\n top: 0;\n left: 0;\n right: 30px;\n display: flex;\n flex-flow: row nowrap;\n pointer-events: none;\n"]);
1436
1437 _templateObject2$5 = function _templateObject2() {
1438 return data;
1439 };
1440
1441 return data;
1442}
1443
1444function _templateObject$6() {
1445 var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n height: 100%;\n min-height: 192px;\n border: solid 1px ", ";\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n\n &.", " {\n border-radius: 0;\n }\n"]);
1446
1447 _templateObject$6 = function _templateObject() {
1448 return data;
1449 };
1450
1451 return data;
1452}
1453var DAY_TILE_CLASS = "day-tile";
1454var DAY_TILE_NO_BORDER_RADIUS_CLASS = "".concat(DAY_TILE_CLASS, "--no-border-radius");
1455var DayTile = styled.div.attrs(function (_ref) {
1456 var noBorderRadius = _ref.noBorderRadius;
1457 return {
1458 className: classNames(DAY_TILE_CLASS, _defineProperty({}, DAY_TILE_NO_BORDER_RADIUS_CLASS, noBorderRadius))
1459 };
1460})(_templateObject$6(), getThemeValue("gray04"), getThemeValue("white", "base"), constants.borderRadius.small, DAY_TILE_NO_BORDER_RADIUS_CLASS);
1461DayTile.Header = styled.header(_templateObject2$5());
1462
1463function _templateObject$7() {
1464 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n"]);
1465
1466 _templateObject$7 = function _templateObject() {
1467 return data;
1468 };
1469
1470 return data;
1471}
1472var StyledText = styled.div(_templateObject$7(), function (props) {
1473 return props.fontSize || typography.size.hecto;
1474});
1475
1476function _templateObject$8() {
1477 var data = _taggedTemplateLiteral(["\n color: ", ";\n\n @media only screen and ", " {\n font-size: ", ";\n }\n"]);
1478
1479 _templateObject$8 = function _templateObject() {
1480 return data;
1481 };
1482
1483 return data;
1484}
1485var PrimaryStyledText = styled(StyledText)(_templateObject$8(), themes.global.onyx.base, constants.breakpoints.smallAndUp, typography.size.kilo);
1486
1487var PrimaryText = function PrimaryText(_ref) {
1488 var children = _ref.children,
1489 props = _objectWithoutProperties(_ref, ["children"]);
1490
1491 return React__default.createElement(PrimaryStyledText, props, children);
1492};
1493
1494PrimaryText.propTypes = {
1495 children: PropTypes__default.string.isRequired
1496};
1497
1498function _templateObject$9() {
1499 var data = _taggedTemplateLiteral(["\n color: ", ";\n"]);
1500
1501 _templateObject$9 = function _templateObject() {
1502 return data;
1503 };
1504
1505 return data;
1506}
1507var SecondaryStyledText = styled(StyledText)(_templateObject$9(), themes.global.onyx.light);
1508
1509var SecondaryText = function SecondaryText(_ref) {
1510 var children = _ref.children,
1511 props = _objectWithoutProperties(_ref, ["children"]);
1512
1513 return React__default.createElement(SecondaryStyledText, props, children);
1514};
1515
1516SecondaryText.propTypes = {
1517 children: PropTypes__default.string.isRequired
1518};
1519
1520var small = function small() {
1521 return css(["@media screen and ", "{", ";}"], constants.breakpoints.small, css.apply(void 0, arguments));
1522};
1523var smallAndUp = function smallAndUp() {
1524 return css(["@media screen and ", "{", ";}"], constants.breakpoints.smallAndUp, css.apply(void 0, arguments));
1525};
1526var mediumAndUp = function mediumAndUp() {
1527 return css(["@media screen and ", "{", ";}"], constants.breakpoints.mediumAndUp, css.apply(void 0, arguments));
1528};
1529var largeAndUp = function largeAndUp() {
1530 return css(["@media screen and ", "{", ";}"], constants.breakpoints.largeAndUp, css.apply(void 0, arguments));
1531};
1532var xLargeAndUp = function xLargeAndUp() {
1533 return css(["@media screen and ", "{", ";}"], constants.breakpoints.xLargeAndUp, css.apply(void 0, arguments));
1534};
1535
1536function _templateObject2$6() {
1537 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1538
1539 _templateObject2$6 = function _templateObject2() {
1540 return data;
1541 };
1542
1543 return data;
1544}
1545
1546function _templateObject$a() {
1547 var data = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: ", ";\n\n ", ";\n"]);
1548
1549 _templateObject$a = function _templateObject() {
1550 return data;
1551 };
1552
1553 return data;
1554}
1555var BoldStyledText = styled(StyledText)(_templateObject$a(), function (props) {
1556 return props.color;
1557}, typography.weight.semiBold, mediumAndUp(_templateObject2$6(), typography.size.uno));
1558
1559var BoldText = function BoldText(_ref) {
1560 var color = _ref.color,
1561 children = _ref.children,
1562 rest = _objectWithoutProperties(_ref, ["color", "children"]);
1563
1564 return React__default.createElement(BoldStyledText, _extends({
1565 color: color
1566 }, rest), children);
1567};
1568
1569BoldText.defaultProps = {
1570 color: themes.global.darkFill
1571};
1572BoldText.propTypes = {
1573 children: PropTypes__default.string.isRequired,
1574 color: PropTypes__default.string
1575};
1576
1577function _templateObject4$1() {
1578 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1579
1580 _templateObject4$1 = function _templateObject4() {
1581 return data;
1582 };
1583
1584 return data;
1585}
1586
1587function _templateObject3$1() {
1588 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1589
1590 _templateObject3$1 = function _templateObject3() {
1591 return data;
1592 };
1593
1594 return data;
1595}
1596
1597function _templateObject2$7() {
1598 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1599
1600 _templateObject2$7 = function _templateObject2() {
1601 return data;
1602 };
1603
1604 return data;
1605}
1606
1607function _templateObject$b() {
1608 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1609
1610 _templateObject$b = function _templateObject() {
1611 return data;
1612 };
1613
1614 return data;
1615}
1616var responsiveSizeMixin = function responsiveSizeMixin(size) {
1617 return size ? css(["font-size:", ";", ";", ";", ";", ";"], typography.size[typeof size === "string" ? size : size.xSmall], size.small && typeof size.small === "string" && smallAndUp(_templateObject$b(), typography.size[size.small]), size.medium && mediumAndUp(_templateObject2$7(), typography.size[size.medium]), size.large && largeAndUp(_templateObject3$1(), typography.size[size.large]), size.xLarge && xLargeAndUp(_templateObject4$1(), typography.size[size.xLarge])) : "";
1618};
1619var getResponsiveSize = function getResponsiveSize(_ref) {
1620 var _ref$size = _ref.size,
1621 size = _ref$size === void 0 ? "hecto" : _ref$size,
1622 _ref$responsiveSize = _ref.responsiveSize,
1623 responsiveSize = _ref$responsiveSize === void 0 ? null : _ref$responsiveSize;
1624 return responsiveSize ? {
1625 xSmall: responsiveSize.xSmall || responsiveSize.small || size,
1626 small: responsiveSize.small,
1627 medium: responsiveSize.medium,
1628 large: responsiveSize.large,
1629 xLarge: responsiveSize.xLarge
1630 } : size;
1631};
1632
1633function _templateObject$c() {
1634 var data = _taggedTemplateLiteral(["\n ", ";\n font-weight: ", ";\n line-height: ", ";\n text-transform: ", ";\n ", ";\n color: ", ";\n"]);
1635
1636 _templateObject$c = function _templateObject() {
1637 return data;
1638 };
1639
1640 return data;
1641}
1642var Base = styled.span(_templateObject$c(), function (_ref) {
1643 var size = _ref.size;
1644 return responsiveSizeMixin(size);
1645}, function (_ref2) {
1646 var weight = _ref2.weight;
1647 return typography.weight[weight];
1648}, typography.lineHeight.body, function (_ref3) {
1649 var allCaps = _ref3.allCaps;
1650 return allCaps ? "uppercase" : "none";
1651}, function (_ref4) {
1652 var monospace = _ref4.monospace;
1653 return monospace ? "font-feature-settings: \"tnum\"" : "";
1654}, function (_ref5) {
1655 var theme = _ref5.theme,
1656 themed = _ref5.themed,
1657 variant = _ref5.variant,
1658 accent = _ref5.accent,
1659 primary = _ref5.primary,
1660 secondary = _ref5.secondary,
1661 disabled = _ref5.disabled;
1662 return theme && themed ? getThemedFontColor({
1663 theme: theme,
1664 variant: variant,
1665 accent: accent,
1666 primary: primary,
1667 secondary: secondary,
1668 disabled: disabled
1669 }) : getFontColor({
1670 variant: variant,
1671 accent: accent,
1672 primary: primary,
1673 secondary: secondary,
1674 disabled: disabled
1675 });
1676});
1677
1678var ALLOWED_SIZES = ["mini", "uno", "hecto", "kilo", "giga", "tera", "zetta"];
1679var variant = PropTypes__default.oneOf(["accent", "dark", "light"]);
1680var accent = PropTypes__default.oneOf(["", // traditional
1681"aquamarine", "azure", "alert", "caution", "cruz", "heliotrope", "positive", "summerSky", "turquoise", // themed
1682"brand", "primary", "special", "accent01", "accent02", "accent03", "accent04", "gray01", "gray02", "gray03", "gray04", "gray05", "error", "caution", "success", "transparent"]);
1683var size = PropTypes__default.oneOf(ALLOWED_SIZES);
1684var responsiveSize = PropTypes__default.shape({
1685 xSmall: size,
1686 small: size,
1687 medium: size,
1688 large: size,
1689 xLarge: size
1690});
1691var defaultResponsiveSize = null;
1692var weight = PropTypes__default.oneOf(["regular", "semiBold"]);
1693
1694function _templateObject4$2() {
1695 var data = _taggedTemplateLiteral(["\n cursor: pointer;\n"]);
1696
1697 _templateObject4$2 = function _templateObject4() {
1698 return data;
1699 };
1700
1701 return data;
1702}
1703
1704function _templateObject3$2() {
1705 var data = _taggedTemplateLiteral(["\n appearance: none;\n border: 0;\n outline: 0;\n background: transparent;\n padding: 0;\n cursor: pointer;\n"]);
1706
1707 _templateObject3$2 = function _templateObject3() {
1708 return data;
1709 };
1710
1711 return data;
1712}
1713
1714function _templateObject2$8() {
1715 var data = _taggedTemplateLiteral(["\n color: ", ";\n\n &:focus,\n &:visited,\n &:active,\n &:hover {\n color: ", ";\n }\n"]);
1716
1717 _templateObject2$8 = function _templateObject2() {
1718 return data;
1719 };
1720
1721 return data;
1722}
1723
1724function _templateObject$d() {
1725 var data = _taggedTemplateLiteral(["\n text-decoration: none;\n transition: color 0.3s ease;\n &:focus,\n &:active,\n &:visited,\n &:hover {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n"]);
1726
1727 _templateObject$d = function _templateObject() {
1728 return data;
1729 };
1730
1731 return data;
1732}
1733var LinkBase = styled(Base)(_templateObject$d(), function (props) {
1734 return getFontColor(props);
1735}, themes.global.primary.medium);
1736var ReverseLinkBase = styled(LinkBase)(_templateObject2$8(), themes.global.primary.reverse, themes.global.primary.reverseLight);
1737var LinkButtonBase = styled(LinkBase)(_templateObject3$2());
1738var LinkSpanBase = styled(LinkBase)(_templateObject4$2());
1739
1740var getElement = function getElement(_ref) {
1741 var href = _ref.href,
1742 onClick = _ref.onClick,
1743 reverseColors = _ref.reverseColors;
1744
1745 if (href && href.length) {
1746 return reverseColors ? ReverseLinkBase : LinkBase;
1747 }
1748
1749 if (!href && onClick && typeof onClick === "function") return LinkButtonBase;
1750 return LinkSpanBase;
1751};
1752
1753var Link = function Link(_ref2) {
1754 var href = _ref2.href,
1755 onClick = _ref2.onClick,
1756 children = _ref2.children,
1757 weight = _ref2.weight,
1758 size = _ref2.size,
1759 responsiveSize = _ref2.responsiveSize,
1760 variant = _ref2.variant,
1761 accent = _ref2.accent,
1762 primary = _ref2.primary,
1763 reverseColors = _ref2.reverseColors,
1764 props = _objectWithoutProperties(_ref2, ["href", "onClick", "children", "weight", "size", "responsiveSize", "variant", "accent", "primary", "reverseColors"]);
1765
1766 var target = props.target,
1767 rel = props.rel;
1768 var Elm = getElement({
1769 href: href,
1770 onClick: onClick,
1771 reverseColors: reverseColors
1772 });
1773 var asProp = getAsProp({
1774 href: href,
1775 onClick: onClick
1776 });
1777 var validatedRel = getRelByTarget(target, rel);
1778 return React__default.createElement(Elm, _extends({}, props, asProp, {
1779 size: getResponsiveSize({
1780 size: size,
1781 responsiveSize: responsiveSize
1782 }),
1783 primary: primary,
1784 variant: variant,
1785 accent: accent,
1786 href: href,
1787 rel: validatedRel,
1788 weight: weight,
1789 onClick: onClick
1790 }), children);
1791};
1792
1793Link.propTypes = {
1794 children: PropTypes__default.node.isRequired,
1795 href: PropTypes__default.string,
1796 onClick: PropTypes__default.func,
1797 target: PropTypes__default.string,
1798 rel: PropTypes__default.string,
1799 primary: PropTypes__default.bool,
1800 size: size,
1801 responsiveSize: responsiveSize,
1802 weight: weight,
1803 variant: variant,
1804 accent: accent,
1805 reverseColors: PropTypes__default.bool
1806};
1807Link.defaultProps = {
1808 target: "",
1809 onClick: null,
1810 href: null,
1811 rel: "_self",
1812 size: "hecto",
1813 responsiveSize: defaultResponsiveSize,
1814 weight: "regular",
1815 variant: "accent",
1816 accent: "azure",
1817 primary: true,
1818 reverseColors: false
1819};
1820
1821function _templateObject4$3() {
1822 var data = _taggedTemplateLiteral(["\n cursor: pointer;\n"]);
1823
1824 _templateObject4$3 = function _templateObject4() {
1825 return data;
1826 };
1827
1828 return data;
1829}
1830
1831function _templateObject3$3() {
1832 var data = _taggedTemplateLiteral(["\n appearance: none;\n border: 0;\n outline: 0;\n background: transparent;\n padding: 0;\n cursor: pointer;\n"]);
1833
1834 _templateObject3$3 = function _templateObject3() {
1835 return data;
1836 };
1837
1838 return data;
1839}
1840
1841function _templateObject2$9() {
1842 var data = _taggedTemplateLiteral(["\n color: ", ";\n\n &:focus,\n &:visited,\n &:active,\n &:hover {\n color: ", ";\n }\n"]);
1843
1844 _templateObject2$9 = function _templateObject2() {
1845 return data;
1846 };
1847
1848 return data;
1849}
1850
1851function _templateObject$e() {
1852 var data = _taggedTemplateLiteral(["\n text-decoration: none;\n transition: color 0.3s ease, text-decoration 0.3s ease;\n font-weight: ", ";\n ", ";\n line-height: ", ";\n color: ", ";\n display: inline-block;\n\n &:focus {\n outline: none;\n text-decoration: underline;\n }\n\n &:visited {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n\n &.noFocus:focus {\n text-decoration: none;\n }\n"]);
1853
1854 _templateObject$e = function _templateObject() {
1855 return data;
1856 };
1857
1858 return data;
1859}
1860var LinkCtaBase = styled.a(_templateObject$e(), typography.weight.semiBold, function (_ref) {
1861 var size = _ref.size;
1862 return responsiveSizeMixin(size);
1863}, typography.lineHeight.header, getThemeValue("primary", "base"), getThemeValue("primary", "base"), getThemeValue("primary", "dark"), getThemeValue("primary", "medium"));
1864var ReverseLinkCtaBase = styled(LinkCtaBase)(_templateObject2$9(), getThemeValue("primary", "reverse"), getThemeValue("primary", "reverseLight"));
1865var LinkCtaButtonBase = styled(LinkCtaBase)(_templateObject3$3());
1866var LinkCtaSpanBase = styled(LinkCtaBase)(_templateObject4$3());
1867
1868var getElement$1 = function getElement(_ref2) {
1869 var href = _ref2.href,
1870 onClick = _ref2.onClick,
1871 reverseColors = _ref2.reverseColors;
1872
1873 if (href && href.length) {
1874 return reverseColors ? ReverseLinkCtaBase : LinkCtaBase;
1875 }
1876
1877 if (!href && onClick && typeof onClick === "function") return LinkCtaButtonBase;
1878 return LinkCtaSpanBase;
1879};
1880
1881var LinkCta =
1882/*#__PURE__*/
1883function (_Component) {
1884 _inherits(LinkCta, _Component);
1885
1886 function LinkCta() {
1887 var _getPrototypeOf2;
1888
1889 var _this;
1890
1891 _classCallCheck(this, LinkCta);
1892
1893 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1894 args[_key] = arguments[_key];
1895 }
1896
1897 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(LinkCta)).call.apply(_getPrototypeOf2, [this].concat(args)));
1898
1899 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusHandler", function () {
1900 global.window.addEventListener("keyup", _this.activateFocusStyles);
1901 });
1902
1903 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurHandler", function () {
1904 if (_this.link && _this.link.current) {
1905 _this.link.current.classList.add("noFocus");
1906 }
1907
1908 global.window.removeEventListener("keyup", _this.activateFocusStyles);
1909 });
1910
1911 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "activateFocusStyles", function () {
1912 _this.link.current.classList.remove("noFocus");
1913 });
1914
1915 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "link", React__default.createRef());
1916
1917 return _this;
1918 }
1919
1920 _createClass(LinkCta, [{
1921 key: "componentDidMount",
1922 value: function componentDidMount() {
1923 if (this.link && this.link.current) {
1924 this.link.current.addEventListener("focus", this.focusHandler);
1925 this.link.current.addEventListener("blur", this.blurHandler);
1926 }
1927 }
1928 }, {
1929 key: "componentWillUnmount",
1930 value: function componentWillUnmount() {
1931 // in case user leaves a page before onBlur is triggered
1932 global.window.removeEventListener("keyup", this.activateFocusStyles);
1933 }
1934 }, {
1935 key: "render",
1936 value: function render() {
1937 var _this$props = this.props,
1938 href = _this$props.href,
1939 onClick = _this$props.onClick,
1940 children = _this$props.children,
1941 size = _this$props.size,
1942 responsiveSize = _this$props.responsiveSize,
1943 reverseColors = _this$props.reverseColors,
1944 rest = _objectWithoutProperties(_this$props, ["href", "onClick", "children", "size", "responsiveSize", "reverseColors"]);
1945
1946 var target = rest.target,
1947 rel = rest.rel;
1948 var Elm = getElement$1({
1949 href: href,
1950 onClick: onClick,
1951 reverseColors: reverseColors
1952 });
1953 var asProp = getAsProp({
1954 href: href,
1955 onClick: onClick
1956 });
1957 var validatedRel = getRelByTarget(target, rel);
1958 return React__default.createElement(Elm, _extends({}, rest, asProp, {
1959 size: getResponsiveSize({
1960 size: size,
1961 responsiveSize: responsiveSize
1962 }),
1963 href: href,
1964 onClick: onClick,
1965 rel: validatedRel,
1966 ref: this.link,
1967 className: "".concat(rest.className || "", " noFocus")
1968 }), children);
1969 }
1970 }]);
1971
1972 return LinkCta;
1973}(Component);
1974
1975LinkCta.propTypes = {
1976 size: PropTypes__default.string,
1977 responsiveSize: responsiveSize,
1978 children: PropTypes__default.node.isRequired,
1979 href: PropTypes__default.string,
1980 onClick: PropTypes__default.func,
1981 target: PropTypes__default.string,
1982 rel: PropTypes__default.string,
1983 reverseColors: PropTypes__default.bool
1984};
1985LinkCta.defaultProps = {
1986 size: null,
1987 onClick: undefined,
1988 responsiveSize: defaultResponsiveSize,
1989 href: undefined,
1990 target: "_self",
1991 rel: "",
1992 reverseColors: false
1993};
1994LinkCta.displayName = "LinkCta";
1995
1996function _templateObject2$a() {
1997 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n "]);
1998
1999 _templateObject2$a = function _templateObject2() {
2000 return data;
2001 };
2002
2003 return data;
2004}
2005
2006function _templateObject$f() {
2007 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: ", ";\n ", ";\n"]);
2008
2009 _templateObject$f = function _templateObject() {
2010 return data;
2011 };
2012
2013 return data;
2014}
2015var SectionHeading = styled.span(_templateObject$f(), typography.size.kilo, typography.weight.semiBold, smallAndUp(_templateObject2$a(), typography.size.giga));
2016
2017var AVAILABLE_TAGS = ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6"];
2018
2019var TextBase = function TextBase(_ref) {
2020 var _classnames;
2021
2022 var tag = _ref.tag,
2023 variant = _ref.variant,
2024 accent = _ref.accent,
2025 primary = _ref.primary,
2026 secondary = _ref.secondary,
2027 disabled = _ref.disabled,
2028 size = _ref.size,
2029 responsiveSize = _ref.responsiveSize,
2030 weight = _ref.weight,
2031 className = _ref.className,
2032 allCaps = _ref.allCaps,
2033 children = _ref.children,
2034 theme = _ref.theme,
2035 themed = _ref.themed,
2036 props = _objectWithoutProperties(_ref, ["tag", "variant", "accent", "primary", "secondary", "disabled", "size", "responsiveSize", "weight", "className", "allCaps", "children", "theme", "themed"]);
2037
2038 var isThemed = themed && theme && theme.themeName;
2039 var classes = classNames((_classnames = {
2040 text: true
2041 }, _defineProperty(_classnames, "text--".concat(variant), !!variant), _defineProperty(_classnames, "text--".concat(accent), variant === "accent"), _defineProperty(_classnames, "text-".concat(isThemed), isThemed), _defineProperty(_classnames, "text--primary", !!primary || !secondary && !disabled && !accent), _defineProperty(_classnames, "text--secondary", !!secondary), _defineProperty(_classnames, "text--disabled", !!disabled), _defineProperty(_classnames, className, !!className), _classnames));
2042 return React__default.createElement(Base, _extends({
2043 className: classes,
2044 size: getResponsiveSize({
2045 size: size,
2046 responsiveSize: responsiveSize
2047 }),
2048 weight: weight,
2049 variant: variant,
2050 accent: accent,
2051 primary: primary,
2052 secondary: secondary,
2053 disabled: disabled,
2054 allCaps: allCaps,
2055 as: tag,
2056 themed: themed
2057 }, props), children);
2058};
2059
2060TextBase.propTypes = {
2061 tag: PropTypes__default.oneOf(AVAILABLE_TAGS),
2062 variant: variant,
2063 accent: accent,
2064 size: size,
2065 responsiveSize: responsiveSize,
2066 weight: weight,
2067 className: PropTypes__default.string,
2068 primary: PropTypes__default.bool,
2069 secondary: PropTypes__default.bool,
2070 disabled: PropTypes__default.bool,
2071 children: PropTypes__default.node.isRequired,
2072 allCaps: PropTypes__default.bool,
2073 monospace: PropTypes__default.bool,
2074 theme: PropTypes__default.shape(themeShape),
2075 themed: PropTypes__default.bool
2076};
2077TextBase.defaultProps = {
2078 tag: "div",
2079 variant: "dark",
2080 accent: "",
2081 size: "hecto",
2082 responsiveSize: defaultResponsiveSize,
2083 weight: "regular",
2084 className: "",
2085 primary: false,
2086 secondary: false,
2087 disabled: false,
2088 allCaps: false,
2089 monospace: false,
2090 theme: THEME_TM,
2091 themed: false
2092};
2093TextBase.displayName = "Text";
2094
2095function _templateObject2$b() {
2096 var data = _taggedTemplateLiteral(["\n color: ", ";\n\n &.day-tile-date__text--accent {\n color: ", ";\n }\n"]);
2097
2098 _templateObject2$b = function _templateObject2() {
2099 return data;
2100 };
2101
2102 return data;
2103}
2104
2105function _templateObject$g() {
2106 var data = _taggedTemplateLiteral(["\n display: flex;\n width: 30px;\n height: 30px;\n justify-content: center;\n align-items: center;\n background-color: ", ";\n"]);
2107
2108 _templateObject$g = function _templateObject() {
2109 return data;
2110 };
2111
2112 return data;
2113}
2114var DayTileDateContainer = styled.div(_templateObject$g(), getThemeValue("white", "base"));
2115var DayTileDateText = styled(TextBase).attrs(function (_ref) {
2116 var isAccent = _ref.isAccent;
2117 return {
2118 size: "kilo",
2119 weight: "semiBold",
2120 className: classNames("day-tile-date__text", {
2121 "day-tile-date__text--accent": isAccent
2122 })
2123 };
2124})(_templateObject2$b(), getThemeValue("gray02"), getThemeValue("accent01", "dark"));
2125
2126var DayTileDate = function DayTileDate(_ref2) {
2127 var children = _ref2.children,
2128 accent = _ref2.accent;
2129 return React__default.createElement(DayTileDateContainer, null, React__default.createElement(DayTileDateText, {
2130 isAccent: accent
2131 }, children));
2132};
2133
2134DayTileDate.propTypes = {
2135 children: PropTypes__default.node.isRequired,
2136 accent: PropTypes__default.bool
2137};
2138DayTileDate.defaultProps = {
2139 accent: false
2140};
2141
2142function _templateObject8() {
2143 var data = _taggedTemplateLiteral(["\n text-transform: uppercase;\n color: ", ";\n"]);
2144
2145 _templateObject8 = function _templateObject8() {
2146 return data;
2147 };
2148
2149 return data;
2150}
2151
2152function _templateObject7() {
2153 var data = _taggedTemplateLiteral(["\n width: 100%;\n word-break: break-word;\n"]);
2154
2155 _templateObject7 = function _templateObject7() {
2156 return data;
2157 };
2158
2159 return data;
2160}
2161
2162function _templateObject6() {
2163 var data = _taggedTemplateLiteral(["\n margin: ", " ", ";\n border-bottom: solid 1px ", ";\n"]);
2164
2165 _templateObject6 = function _templateObject6() {
2166 return data;
2167 };
2168
2169 return data;
2170}
2171
2172function _templateObject5() {
2173 var data = _taggedTemplateLiteral(["\n margin-top: auto;\n"]);
2174
2175 _templateObject5 = function _templateObject5() {
2176 return data;
2177 };
2178
2179 return data;
2180}
2181
2182function _templateObject4$4() {
2183 var data = _taggedTemplateLiteral(["\n padding: ", " ", " ", ";\n"]);
2184
2185 _templateObject4$4 = function _templateObject4() {
2186 return data;
2187 };
2188
2189 return data;
2190}
2191
2192function _templateObject3$4() {
2193 var data = _taggedTemplateLiteral(["\n flex: auto;\n display: flex;\n flex-flow: row nowrap;\n"]);
2194
2195 _templateObject3$4 = function _templateObject3() {
2196 return data;
2197 };
2198
2199 return data;
2200}
2201
2202function _templateObject2$c() {
2203 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n padding-left: 30px;\n min-height: 30px;\n"]);
2204
2205 _templateObject2$c = function _templateObject2() {
2206 return data;
2207 };
2208
2209 return data;
2210}
2211
2212function _templateObject$h() {
2213 var data = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n display: flex;\n flex-flow: column nowrap;\n min-height: 190px;\n\n &.", " {\n background-color: ", ";\n }\n"]);
2214
2215 _templateObject$h = function _templateObject() {
2216 return data;
2217 };
2218
2219 return data;
2220}
2221var DAY_TILE_ITEM_CLASS_HIGHLIGHTED = "day-tile-item--highlighted";
2222var DayTileItem = styled.article.attrs(function (_ref) {
2223 var highlighted = _ref.highlighted;
2224 return {
2225 className: classNames(_defineProperty({}, DAY_TILE_ITEM_CLASS_HIGHLIGHTED, highlighted))
2226 };
2227})(_templateObject$h(), DAY_TILE_ITEM_CLASS_HIGHLIGHTED, getThemeValue("primary", "lightBase"));
2228DayTileItem.propTypes = {
2229 highlighted: PropTypes__default.bool
2230};
2231DayTileItem.defaultProps = {
2232 highlighted: false
2233};
2234DayTileItem.Header = styled.header(_templateObject2$c());
2235DayTileItem.Content = styled.div(_templateObject3$4());
2236DayTileItem.ContentColumn = styled.div(_templateObject4$4(), spacing.cozy, spacing.cozy, spacing.slim);
2237DayTileItem.Footer = styled.footer(_templateObject5());
2238DayTileItem.Divider = styled.div(_templateObject6(), spacing.slim, spacing.cozy, getThemeValue("gray04"));
2239
2240var DayTileItemGroup = function DayTileItemGroup(_ref2) {
2241 var children = _ref2.children;
2242 return Children.map(children, function (child, index) {
2243 if (index === 0) {
2244 return child;
2245 }
2246
2247 return [React__default.createElement(DayTileItem.Divider, null), child];
2248 });
2249};
2250
2251var DayTileItemBaseText = styled(TextBase).attrs(function () {
2252 return {
2253 size: "uno"
2254 };
2255})(_templateObject7());
2256var DayTileItemLabel = styled(DayTileItemBaseText).attrs(function () {
2257 return {
2258 weight: "semiBold"
2259 };
2260})(_templateObject8(), getLabelTextColor);
2261var DayTileItemTitle = DayTileItemBaseText;
2262
2263var DayTileItemSubTitle = function DayTileItemSubTitle(props) {
2264 return React__default.createElement(DayTileItemBaseText, _extends({
2265 secondary: true
2266 }, props));
2267};
2268
2269DayTileItem.Group = DayTileItemGroup;
2270DayTileItem.Title = DayTileItemTitle;
2271DayTileItem.SubTitle = DayTileItemSubTitle;
2272DayTileItem.Label = DayTileItemLabel;
2273
2274function _templateObject2$d() {
2275 var data = _taggedTemplateLiteral(["\n ", " > & + & {\n margin-top: ", ";\n }\n"]);
2276
2277 _templateObject2$d = function _templateObject2() {
2278 return data;
2279 };
2280
2281 return data;
2282}
2283
2284function _templateObject$i() {
2285 var data = _taggedTemplateLiteral(["\n padding: 0 ", " ", ";\n"]);
2286
2287 _templateObject$i = function _templateObject() {
2288 return data;
2289 };
2290
2291 return data;
2292}
2293var DayTileButtonGroup = styled.div(_templateObject$i(), spacing.cozy, spacing.cozy);
2294var DayTileButtonContainer = styled.div(_templateObject2$d(), DayTileButtonGroup, spacing.cozy);
2295
2296var DayTileButton = function DayTileButton(props) {
2297 return React__default.createElement(DayTileButtonContainer, null, React__default.createElement(Button, _extends({
2298 size: "small"
2299 }, props)));
2300};
2301
2302DayTileButton.Group = DayTileButtonGroup;
2303
2304function _templateObject2$e() {
2305 var data = _taggedTemplateLiteral(["\n display: block;\n width: 100%;\n padding: 3px ", ";\n text-align: center;\n"]);
2306
2307 _templateObject2$e = function _templateObject2() {
2308 return data;
2309 };
2310
2311 return data;
2312}
2313
2314function _templateObject$j() {
2315 var data = _taggedTemplateLiteral(["\n padding: 0 ", " ", ";\n"]);
2316
2317 _templateObject$j = function _templateObject() {
2318 return data;
2319 };
2320
2321 return data;
2322}
2323var DayTileMoreButtonContainer = styled.div(_templateObject$j(), spacing.cozy, spacing.cozy);
2324var DayTileMoreButtonLink = styled(Link).attrs({
2325 size: "uno"
2326})(_templateObject2$e(), spacing.cozy);
2327
2328var DayTileMoreButton = function DayTileMoreButton(props) {
2329 return React__default.createElement(DayTileMoreButtonContainer, null, React__default.createElement(DayTileMoreButtonLink, props));
2330};
2331
2332var CAIcon = function CAIcon(_ref) {
2333 var height = _ref.height,
2334 width = _ref.width,
2335 children = _ref.children,
2336 props = _objectWithoutProperties(_ref, ["height", "width", "children"]);
2337
2338 return React__default.createElement("svg", _extends({}, props, {
2339 height: height,
2340 width: width,
2341 viewBox: "0 0 640 480"
2342 }), children, React__default.createElement("g", {
2343 transform: "translate(74.118) scale(.9375)"
2344 }, React__default.createElement("path", {
2345 fill: "#fff",
2346 d: "M81.137 0h362.276v512H81.137z"
2347 }), React__default.createElement("path", {
2348 fill: "#bf0a30",
2349 d: "M-100 0H81.138v512H-100zm543.413 0H624.55v512H443.414zM135.31 247.41l-14.067 4.808 65.456 57.446c4.95 14.764-1.72 19.116-5.97 26.86l71.06-9.02-1.85 71.512 14.718-.423-3.21-70.918 71.13 8.432c-4.402-9.297-8.32-14.233-4.247-29.098l65.414-54.426-11.447-4.144c-9.36-7.222 4.044-34.784 6.066-52.178 0 0-38.195 13.135-40.698 6.262l-9.727-18.685-34.747 38.17c-3.796.91-5.413-.6-6.304-3.808l16.053-79.766-25.42 14.297c-2.128.91-4.256.125-5.658-2.355l-24.45-49.06-25.21 50.95c-1.9 1.826-3.803 2.037-5.382.796l-24.204-13.578 14.53 79.143c-1.156 3.14-3.924 4.025-7.18 2.324l-33.216-37.737c-4.345 6.962-7.29 18.336-13.033 20.885-5.744 2.387-24.98-4.823-37.873-7.637 4.404 15.895 18.176 42.302 9.46 50.957z"
2350 })));
2351};
2352
2353CAIcon.displayName = "CAIcon";
2354CAIcon.defaultProps = {
2355 children: null
2356};
2357CAIcon.propTypes = {
2358 height: PropTypes.number.isRequired,
2359 width: PropTypes.number.isRequired,
2360 children: PropTypes.node
2361};
2362
2363var CampsiteIcon = function CampsiteIcon(_ref) {
2364 var size = _ref.size,
2365 color = _ref.color,
2366 children = _ref.children,
2367 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2368
2369 return React__default.createElement("svg", _extends({
2370 width: size,
2371 height: size,
2372 viewBox: "0 0 26 27"
2373 }, props), children, React__default.createElement("g", {
2374 fill: "none",
2375 fillRule: "evenodd",
2376 transform: "translate(1 1.85)"
2377 }, React__default.createElement("circle", {
2378 cx: "12",
2379 cy: "12",
2380 r: "12.5",
2381 fill: "#FAFAFA",
2382 stroke: "#E0E0E0"
2383 }), React__default.createElement("path", {
2384 fill: color,
2385 stroke: "#262626",
2386 strokeWidth: ".25",
2387 d: "M15.788 17.398l-3.721-6.058-3.737 6.058h7.458zm-10.347.01c.706 0 1.362-.004 2.019.004.141.001.218-.046.291-.165 1.323-2.152 2.65-4.301 3.977-6.45.2-.324.482-.32.682.006 1.325 2.157 2.65 4.314 3.973 6.473.059.095.12.136.237.135.621-.006 1.243-.003 1.865-.003.05 0 .1-.007.184-.012L12.06 6.65 5.441 17.408zM4.026 18c-.064-.392-.01-.59.162-.591.387-.004.002-.007.389.003.14.003.218-.044.292-.164 2.253-3.67 4.51-7.338 6.769-11.003.069-.113.06-.19-.007-.298-.496-.795-.986-1.594-1.476-2.393-.167-.272-.145-.374.109-.554h.14c.086.093.187.176.253.281.41.656.813 1.317 1.22 1.975.053.088.11.175.18.288.053-.08.088-.13.12-.183.427-.694.852-1.39 1.284-2.08.066-.106.168-.188.253-.281h.14c.255.182.275.282.108.553-.49.8-.98 1.599-1.475 2.395-.067.107-.076.183-.006.297 2.265 3.675 4.527 7.353 6.787 11.032.06.097.122.136.237.134.37-.008.01 0 .379-.004.116-.002.145.196.087.593H4.026z"
2388 })));
2389};
2390
2391CampsiteIcon.displayName = "CampsiteIcon";
2392CampsiteIcon.defaultProps = {
2393 color: "currentColor",
2394 children: null
2395};
2396CampsiteIcon.propTypes = {
2397 size: PropTypes__default.number.isRequired,
2398 color: PropTypes__default.string,
2399 children: PropTypes__default.node
2400};
2401
2402var DIRECTION = ["up", "down", "left", "right"];
2403
2404var getChevronStyle = function getChevronStyle(_ref) {
2405 var direction = _ref.direction;
2406
2407 switch (direction) {
2408 case "up":
2409 return {
2410 transform: "rotate(-180deg)"
2411 };
2412
2413 case "left":
2414 return {
2415 transform: "rotate(90deg)"
2416 };
2417
2418 case "right":
2419 return {
2420 transform: "rotate(-90deg)"
2421 };
2422
2423 default:
2424 return {};
2425 }
2426};
2427
2428var ChevronIcon = function ChevronIcon(_ref2) {
2429 var size = _ref2.size,
2430 color = _ref2.color,
2431 direction = _ref2.direction,
2432 children = _ref2.children,
2433 props = _objectWithoutProperties(_ref2, ["size", "color", "direction", "children"]);
2434
2435 return React__default.createElement("svg", _extends({}, props, {
2436 style: getChevronStyle({
2437 direction: direction
2438 }),
2439 viewBox: "0 0 15 7",
2440 width: size,
2441 height: size,
2442 fill: color
2443 }), children, React__default.createElement("path", {
2444 d: "M13.974.132a.614.614 0 0 0-.762 0L7.17 5.341 1.12.132C.916-.044.563-.037.376.125a.398.398 0 0 0-.167.332c0 .058.012.116.036.17a.385.385 0 0 0 .12.155l6.427 5.54a.568.568 0 0 0 .378.135.568.568 0 0 0 .377-.135l6.427-5.54a.422.422 0 0 0 .156-.325.42.42 0 0 0-.156-.325z"
2445 }));
2446};
2447
2448ChevronIcon.displayName = "ChevronIcon";
2449ChevronIcon.defaultProps = {
2450 direction: "down",
2451 children: null,
2452 color: "currentColor"
2453};
2454ChevronIcon.propTypes = {
2455 size: PropTypes__default.number.isRequired,
2456 color: PropTypes__default.string,
2457 children: PropTypes__default.node,
2458 direction: PropTypes__default.oneOf(DIRECTION)
2459};
2460
2461var ClubIcon = function ClubIcon(_ref) {
2462 var size = _ref.size,
2463 color = _ref.color,
2464 children = _ref.children,
2465 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2466
2467 return React__default.createElement("svg", _extends({
2468 width: size,
2469 height: size,
2470 viewBox: "0 0 26 27"
2471 }, props), children, React__default.createElement("defs", null, React__default.createElement("path", {
2472 id: "a",
2473 d: "M0 0h15.931v15.937H0z"
2474 })), React__default.createElement("g", {
2475 fill: "none",
2476 fillRule: "evenodd",
2477 transform: "translate(1 1.85)"
2478 }, React__default.createElement("circle", {
2479 cx: "12",
2480 cy: "12",
2481 r: "12.5",
2482 fill: "#FAFAFA",
2483 stroke: "#E0E0E0"
2484 }), React__default.createElement("g", {
2485 transform: "translate(4 4)"
2486 }, React__default.createElement("mask", {
2487 id: "b",
2488 fill: "#fff"
2489 }, React__default.createElement("use", {
2490 xlinkHref: "#a"
2491 })), React__default.createElement("path", {
2492 fill: color,
2493 stroke: "#262626",
2494 strokeWidth: ".25",
2495 d: "M.514 12.722H3.46v-.401H.514v.4zm11.094-.005h2.93v-.405h-2.93v.405zm2.315-9.375a.848.848 0 0 0-.847-.836.85.85 0 0 0-.835.848c.002.453.38.832.83.835a.843.843 0 0 0 .852-.847zM1.982 2.506a.844.844 0 0 0-.843.839.843.843 0 0 0 .853.844.858.858 0 0 0 .84-.846.861.861 0 0 0-.85-.837zM12.807 4.69l-.408 7.09h1.367l-.41-7.09h-.549zm-11.096 0l-.41 7.095H2.67L2.26 4.69h-.55zM15 13.001c-.131.186-.311.258-.539.257-.917-.005-1.835-.001-2.753-.002-.41 0-.61-.2-.612-.606v-.297c.005-.33.21-.541.542-.557.08-.003.16 0 .255 0l.184-3.11c-1.186 1.473-2.677 2.257-4.534 2.258-1.855 0-3.347-.776-4.547-2.202l.176 3.053c.103 0 .183-.003.263 0 .313.016.52.217.537.529.007.139.008.279 0 .418-.02.303-.227.51-.532.511-.97.006-1.94.006-2.91 0-.312 0-.517-.215-.527-.529A7.542 7.542 0 0 1 0 12.376c.006-.368.206-.572.57-.58.235-.005.226.04.243-.237l.303-4.833c.045-.719.091-1.437.127-2.156.003-.063-.056-.143-.109-.191-.387-.356-.549-.792-.442-1.305.106-.512.427-.857.927-1.014a1.343 1.343 0 0 1 1.558.62 1.316 1.316 0 0 1-.264 1.652c-.123.112-.154.219-.142.375.074.932.138 1.864.208 2.796a.57.57 0 0 0 .057.215 5.108 5.108 0 0 0 4.96 2.708c1.835-.173 3.2-1.083 4.11-2.68a.506.506 0 0 0 .066-.21c.06-.957.113-1.913.173-2.87.009-.131-.02-.217-.127-.31a1.334 1.334 0 0 1-.084-1.941 1.345 1.345 0 0 1 1.934-.006c.536.544.507 1.42-.075 1.941-.109.097-.136.186-.128.327.07 1.119.13 2.238.193 3.357l.208 3.687c.001.017.007.033.016.075.277-.028.538.015.717.263V13z",
2496 mask: "url(#b)"
2497 }))));
2498};
2499
2500ClubIcon.displayName = "ClubIcon";
2501ClubIcon.defaultProps = {
2502 color: "currentColor",
2503 children: null
2504};
2505ClubIcon.propTypes = {
2506 size: PropTypes__default.number.isRequired,
2507 color: PropTypes__default.string,
2508 children: PropTypes__default.node
2509};
2510
2511var CrossIcon = function CrossIcon(_ref) {
2512 var size = _ref.size,
2513 color = _ref.color,
2514 children = _ref.children,
2515 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2516
2517 return React__default.createElement("svg", _extends({}, props, {
2518 viewBox: "0 0 12 12",
2519 width: size,
2520 height: size,
2521 fill: color
2522 }), children, React__default.createElement("path", {
2523 d: "M6.563 6.203l4.523 4.516a.384.384 0 0 1 .117.281c0 .11-.039.203-.117.281a.378.378 0 0 1-.137.09.417.417 0 0 1-.297 0 .378.378 0 0 1-.136-.09L6 6.766 1.484 11.28a.378.378 0 0 1-.136.09.417.417 0 0 1-.297 0 .378.378 0 0 1-.137-.09A.384.384 0 0 1 .797 11c0-.11.039-.203.117-.281l4.524-4.516L.913 1.68a.384.384 0 0 1-.117-.282c0-.109.039-.203.117-.28A.388.388 0 0 1 1.2 1c.112 0 .207.04.285.117L6 5.633l4.516-4.516A.388.388 0 0 1 10.8 1c.112 0 .207.04.285.117a.384.384 0 0 1 .117.281c0 .11-.039.204-.117.282L6.562 6.203z"
2524 }));
2525};
2526
2527CrossIcon.displayName = "CrossIcon";
2528CrossIcon.defaultProps = {
2529 color: "currentColor",
2530 children: null
2531};
2532CrossIcon.propTypes = {
2533 size: PropTypes__default.number.isRequired,
2534 color: PropTypes__default.string,
2535 children: PropTypes__default.node
2536};
2537
2538var Concession = function Concession(_ref) {
2539 var size = _ref.size,
2540 color = _ref.color,
2541 children = _ref.children,
2542 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2543
2544 return React__default.createElement("svg", _extends({
2545 width: size,
2546 height: size,
2547 viewBox: "0 0 26 27"
2548 }, props), children, React__default.createElement("g", {
2549 fill: "none",
2550 fillRule: "evenodd"
2551 }, React__default.createElement("path", {
2552 fill: "#E0E0E0",
2553 fillRule: "nonzero",
2554 d: "M13 25.85c6.627 0 12-5.373 12-12s-5.373-12-12-12-12 5.373-12 12 5.373 12 12 12zm0 1c-7.18 0-13-5.82-13-13s5.82-13 13-13 13 5.82 13 13-5.82 13-13 13z"
2555 }), React__default.createElement("path", {
2556 fill: color,
2557 d: "M7.797 20.053a.384.384 0 0 1-.281-.117.393.393 0 0 1-.118-.29v-.796c0-.276.053-.535.157-.777a2.02 2.02 0 0 1 1.066-1.067c.242-.104.501-.156.777-.156.334 0 .618-.117.852-.352a1.16 1.16 0 0 0 .352-.851 1.974 1.974 0 0 1 .586-1.41c.182-.18.394-.323.636-.43.242-.107.502-.16.778-.16.328 0 .609-.117.843-.352a1.15 1.15 0 0 0 .352-.843c0-.276.053-.536.16-.778.107-.242.25-.454.43-.636a1.974 1.974 0 0 1 1.41-.586c.333 0 .617-.118.851-.352A1.16 1.16 0 0 0 17 9.248v-.796c0-.11.04-.204.117-.282a.384.384 0 0 1 .281-.117c.11 0 .204.04.282.117a.384.384 0 0 1 .117.282v.796c0 .276-.052.536-.156.778a2.054 2.054 0 0 1-.426.637 1.974 1.974 0 0 1-1.418.586c-.328 0-.61.117-.844.351a1.16 1.16 0 0 0-.351.852c0 .276-.053.535-.157.777a2.02 2.02 0 0 1-1.066 1.066 1.946 1.946 0 0 1-.777.157 1.16 1.16 0 0 0-.852.351 1.15 1.15 0 0 0-.352.844 1.974 1.974 0 0 1-.585 1.418c-.183.18-.395.321-.637.426a1.946 1.946 0 0 1-.778.156c-.328 0-.609.117-.843.351a1.16 1.16 0 0 0-.352.852v.797c0 .114-.039.21-.117.289a.393.393 0 0 1-.29.117zM20.203 9.248c0 .334-.056.654-.168.961a2.701 2.701 0 0 1-.488.836c.14.188.285.461.433.82.149.36.223.82.223 1.383 0 .188-.02.383-.058.586-.04.204-.097.416-.172.637-.076.221-.17.45-.285.688-.115.237-.248.48-.399.73a11.935 11.935 0 0 1-.953 1.356 16.83 16.83 0 0 1-1.867 1.968c-.224.2-.45.39-.676.57-.227.18-.453.35-.68.512a8.707 8.707 0 0 1-.675.438 7.134 7.134 0 0 1-1.418.687 4.09 4.09 0 0 1-.637.172 3.317 3.317 0 0 1-.586.055c-.563 0-1.024-.073-1.383-.219-.36-.146-.63-.289-.812-.43a2.89 2.89 0 0 1-.844.48 2.785 2.785 0 0 1-.961.169 2.772 2.772 0 0 1-1.977-.82 2.684 2.684 0 0 1-.61-.903c-.14-.34-.21-.699-.21-1.074 0-.333.056-.654.168-.96.112-.308.275-.587.488-.837-.14-.182-.285-.453-.433-.812C5.074 15.88 5 15.418 5 14.85c0-.188.02-.383.059-.586.039-.203.096-.415.171-.637.076-.221.171-.449.286-.683.114-.235.247-.48.398-.735.135-.218.283-.442.441-.671.16-.23.33-.458.512-.684A16.83 16.83 0 0 1 8.73 8.889a14.741 14.741 0 0 1 1.36-1.082c.226-.159.452-.306.676-.441.25-.151.493-.284.73-.399.237-.114.465-.21.684-.285.218-.075.43-.133.633-.172.203-.039.398-.058.585-.058.568 0 1.032.072 1.391.218.36.146.63.29.813.43a2.786 2.786 0 0 1 1.796-.648 2.791 2.791 0 0 1 1.985.82c.26.266.462.568.605.906.144.339.215.695.215 1.07zm-11.57.836c-.432.427-.823.861-1.172 1.301-.349.44-.646.869-.89 1.285A7.251 7.251 0 0 0 6 13.854c-.135.372-.203.704-.203.996 0 .417.047.757.14 1.02.094.263.188.464.282.605l8.804-8.805a2.846 2.846 0 0 0-.605-.28c-.263-.095-.603-.142-1.02-.142-.291 0-.623.068-.996.204a7.122 7.122 0 0 0-1.18.57 11.48 11.48 0 0 0-1.28.89c-.44.35-.877.74-1.31 1.172zM7.797 20.85a1.97 1.97 0 0 0 1.414-.586l9.601-9.601a1.983 1.983 0 0 0 .586-1.415 1.983 1.983 0 0 0-.586-1.414 1.983 1.983 0 0 0-1.414-.586c-.265 0-.52.051-.765.153-.245.101-.461.246-.649.433l-9.601 9.602a1.983 1.983 0 0 0-.586 1.414 1.983 1.983 0 0 0 1.238 1.848c.242.101.496.152.762.152zm8.773-2.836c.427-.427.815-.86 1.164-1.3.35-.44.648-.87.895-1.286.247-.417.437-.81.57-1.18.133-.37.2-.703.2-1 0-.411-.046-.75-.137-1.015a2.537 2.537 0 0 0-.278-.602l-8.804 8.797c.14.094.342.188.605.281.263.094.6.141 1.012.141.297 0 .631-.066 1.004-.2a6.73 6.73 0 0 0 1.18-.57 11.9 11.9 0 0 0 1.28-.894c.44-.349.877-.74 1.31-1.172z"
2558 })));
2559};
2560
2561Concession.displayName = "ConcessionIcon";
2562Concession.defaultProps = {
2563 color: "currentColor",
2564 children: null
2565};
2566Concession.propTypes = {
2567 size: PropTypes__default.number.isRequired,
2568 color: PropTypes__default.string,
2569 children: PropTypes__default.node
2570};
2571
2572var DonationIcon = function DonationIcon(_ref) {
2573 var size = _ref.size,
2574 color = _ref.color,
2575 children = _ref.children,
2576 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2577
2578 return React__default.createElement("svg", _extends({
2579 width: size,
2580 height: size,
2581 viewBox: "0 0 26 27"
2582 }, props), children, React__default.createElement("g", {
2583 fill: "none",
2584 fillRule: "evenodd",
2585 transform: "translate(1 1.85)"
2586 }, React__default.createElement("circle", {
2587 cx: "12",
2588 cy: "12",
2589 r: "12.5",
2590 fill: "#FAFAFA",
2591 stroke: "#E0E0E0"
2592 }), React__default.createElement("path", {
2593 fill: color,
2594 stroke: "#262626",
2595 strokeWidth: ".25",
2596 transform: "translate(5 3) scale(0.8 0.8)",
2597 d: "M18.5 5h-3.001c0.315-0.418 0.501-0.938 0.501-1.5 0-1.378-1.122-2.5-2.5-2.5-1.39 0-2.556 1.101-3.127 1.758-0.346 0.397-0.644 0.823-0.873 1.235-0.229-0.412-0.527-0.837-0.873-1.235-0.571-0.656-1.737-1.758-3.127-1.758-1.378 0-2.5 1.122-2.5 2.5 0 0.562 0.187 1.082 0.501 1.5h-3.001c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.276 0.224 0.5 0.5 0.5h0.5v9.5c0 0.827 0.673 1.5 1.5 1.5h14c0.827 0 1.5-0.673 1.5-1.5v-9.5h0.5c0.276 0 0.5-0.224 0.5-0.5v-3c0-0.276-0.224-0.5-0.5-0.5zM11.127 3.414c0.782-0.899 1.647-1.414 2.373-1.414 0.827 0 1.5 0.673 1.5 1.5s-0.673 1.5-1.5 1.5h-3.378c0.173-0.442 0.523-1.032 1.005-1.586zM11 19h-3v-13h3v13zM4 3.5c0-0.827 0.673-1.5 1.5-1.5 0.726 0 1.591 0.515 2.373 1.414 0.482 0.554 0.832 1.144 1.005 1.586h-3.378c-0.827 0-1.5-0.673-1.5-1.5zM1 6h6v2h-6v-2zM2 18.5v-9.5h5v10h-4.5c-0.276 0-0.5-0.224-0.5-0.5zM17 18.5c0 0.276-0.224 0.5-0.5 0.5h-4.5v-10h5v9.5zM18 8h-6v-2h6v2z"
2598 })));
2599};
2600
2601DonationIcon.displayName = "DonationIcon";
2602DonationIcon.defaultProps = {
2603 color: "currentColor",
2604 children: null
2605};
2606DonationIcon.propTypes = {
2607 size: PropTypes__default.number.isRequired,
2608 color: PropTypes__default.string,
2609 children: PropTypes__default.node
2610};
2611
2612var FacebookIcon = function FacebookIcon(_ref) {
2613 var size = _ref.size,
2614 color = _ref.color,
2615 children = _ref.children,
2616 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2617
2618 return React__default.createElement("svg", _extends({}, props, {
2619 viewBox: "0 0 7 14",
2620 width: size,
2621 height: size,
2622 fill: color
2623 }), children, React__default.createElement("path", {
2624 d: "M6.418 4.38H4.232V2.978c0-.528.357-.65.608-.65h1.543V.007L4.258 0C1.9 0 1.364 1.73 1.364 2.836V4.38H0V6.77h1.364v6.76h2.868V6.77h1.936l.25-2.39z"
2625 }));
2626};
2627
2628FacebookIcon.displayName = "FacebookIcon";
2629FacebookIcon.defaultProps = {
2630 color: "currentcolor",
2631 children: null
2632};
2633FacebookIcon.propTypes = {
2634 size: PropTypes.number.isRequired,
2635 color: PropTypes.string,
2636 children: PropTypes.node
2637};
2638
2639var GeneralIcon = function GeneralIcon(_ref) {
2640 var size = _ref.size,
2641 color = _ref.color,
2642 children = _ref.children,
2643 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2644
2645 return React__default.createElement("svg", _extends({
2646 width: size,
2647 height: size,
2648 viewBox: "0 0 27 26"
2649 }, props), children, React__default.createElement("g", {
2650 fill: "none",
2651 fillRule: "evenodd",
2652 transform: "translate(1 1.85)"
2653 }, React__default.createElement("circle", {
2654 cx: "12",
2655 cy: "12",
2656 r: "12.5",
2657 fill: "#FAFAFA",
2658 stroke: "#E0E0E0"
2659 }), React__default.createElement("g", {
2660 transform: "translate(4 4) scale(0.8 0.8)"
2661 }, React__default.createElement("path", {
2662 fill: color,
2663 strokeWidth: ".25",
2664 d: "M7.5 19.085c-0.401 0-0.778-0.156-1.061-0.438l-5.086-5.086c-0.283-0.283-0.438-0.659-0.438-1.061s0.156-0.778 0.438-1.061l8.586-8.586c0.487-0.487 1.372-0.854 2.061-0.854h4.5c0.827 0 1.5 0.673 1.5 1.5v4.5c0 0.688-0.367 1.574-0.853 2.061l-8.586 8.586c-0.283 0.283-0.659 0.438-1.061 0.438zM12 3c-0.415 0-1.060 0.267-1.353 0.561l-8.586 8.586c-0.094 0.094-0.145 0.219-0.145 0.354s0.052 0.26 0.145 0.353l5.086 5.086c0.094 0.094 0.219 0.145 0.354 0.145s0.26-0.052 0.354-0.145l8.586-8.586c0.293-0.293 0.561-0.939 0.561-1.354v-4.5c0-0.276-0.224-0.5-0.5-0.5h-4.5z"
2665 }), React__default.createElement("path", {
2666 fill: color,
2667 strokeWidth: ".25",
2668 d: "M14.5 7c-0.827 0-1.5-0.673-1.5-1.5s0.673-1.5 1.5-1.5 1.5 0.673 1.5 1.5-0.673 1.5-1.5 1.5zM14.5 5c-0.276 0-0.5 0.224-0.5 0.5s0.224 0.5 0.5 0.5 0.5-0.224 0.5-0.5-0.224-0.5-0.5-0.5z"
2669 }))));
2670};
2671
2672GeneralIcon.displayName = "GeneralIcon";
2673GeneralIcon.defaultProps = {
2674 color: "currentColor",
2675 children: null
2676};
2677GeneralIcon.propTypes = {
2678 size: PropTypes__default.number.isRequired,
2679 color: PropTypes__default.string,
2680 children: PropTypes__default.node
2681};
2682
2683var InstagramIcon = function InstagramIcon(_ref) {
2684 var size = _ref.size,
2685 color = _ref.color,
2686 children = _ref.children,
2687 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2688
2689 return React__default.createElement("svg", _extends({}, props, {
2690 viewBox: "0 0 16 16",
2691 width: size,
2692 height: size,
2693 fill: color
2694 }), children, React__default.createElement("path", {
2695 d: "M8 1c1.901 0 2.14.008 2.886.042.745.034 1.254.152 1.7.326.46.178.85.418 1.24.807.388.389.628.78.807 1.24.173.445.29.954.325 1.699.034.747.042.985.042 2.886 0 1.901-.008 2.14-.042 2.886-.034.745-.152 1.254-.325 1.7-.18.46-.419.85-.808 1.24-.389.388-.78.628-1.24.807-.445.173-.954.29-1.699.325C10.14 14.992 9.901 15 8 15c-1.901 0-2.14-.008-2.886-.042-.745-.034-1.254-.152-1.7-.325a3.432 3.432 0 0 1-1.24-.808c-.388-.389-.628-.78-.806-1.24-.174-.445-.292-.954-.326-1.699C1.008 10.14 1 9.901 1 8c0-1.901.008-2.14.042-2.886.034-.745.152-1.254.326-1.7.178-.46.418-.85.807-1.24.389-.388.78-.628 1.24-.806.445-.174.954-.292 1.699-.326C5.86 1.008 6.099 1 8 1zm-.043 9.389a2.346 2.346 0 1 1 0-4.692 2.346 2.346 0 0 1 0 4.692zm0-5.96a3.614 3.614 0 1 0 0 7.228 3.614 3.614 0 0 0 0-7.228zm4.608-.136a.858.858 0 1 0-1.717 0 .858.858 0 0 0 1.717 0z"
2696 }));
2697};
2698
2699InstagramIcon.displayName = "InstagramIcon";
2700InstagramIcon.defaultProps = {
2701 color: "currentcolor",
2702 children: null
2703};
2704InstagramIcon.propTypes = {
2705 size: PropTypes.number.isRequired,
2706 color: PropTypes.string,
2707 children: PropTypes.node
2708};
2709
2710var Hotel = function Hotel(_ref) {
2711 var size = _ref.size,
2712 color = _ref.color,
2713 children = _ref.children,
2714 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2715
2716 return React__default.createElement("svg", _extends({
2717 width: size,
2718 height: size,
2719 viewBox: "0 0 26 27"
2720 }, props), children, React__default.createElement("g", {
2721 fill: "none",
2722 fillRule: "evenodd",
2723 transform: "translate(1 1.85)"
2724 }, React__default.createElement("circle", {
2725 cx: "12",
2726 cy: "12",
2727 r: "12.5",
2728 fill: "#FAFAFA",
2729 stroke: "#E0E0E0"
2730 }), React__default.createElement("path", {
2731 fill: color,
2732 d: "M18 18.203h-.797a.393.393 0 0 1-.289-.117.393.393 0 0 1-.117-.29c0-.109.039-.202.117-.28a.393.393 0 0 1 .29-.118H18c.11 0 .203.04.281.118a.384.384 0 0 1 .117.28c0 .115-.039.212-.117.29a.384.384 0 0 1-.281.117zm-12 0h-.797a.393.393 0 0 1-.289-.117.393.393 0 0 1-.117-.29c0-.109.039-.202.117-.28a.393.393 0 0 1 .29-.118H6c.11 0 .203.04.281.118a.384.384 0 0 1 .117.28c0 .115-.039.212-.117.29a.384.384 0 0 1-.281.117zm12.93-5.289c.073.23.136.507.191.832.055.326.082.61.082.856v1.601c0 .328-.117.61-.351.844a1.16 1.16 0 0 1-.852.351H5.203a1.16 1.16 0 0 1-.851-.351A1.15 1.15 0 0 1 4 16.203v-1.601c0-.245.026-.53.078-.856.052-.325.117-.603.195-.832l1.891-5.68c.083-.24.228-.449.434-.629.205-.18.433-.3.683-.363a.667.667 0 0 1 .024-.113l.03-.106c.095-.27.208-.442.34-.515A.726.726 0 0 1 8 5.398h3.203c.047 0 .107.01.18.032a.52.52 0 0 1 .219.14.525.525 0 0 1 .214-.14.66.66 0 0 1 .184-.032h3.203c.083 0 .192.037.324.11.133.073.244.245.332.515a.626.626 0 0 1 .036.106c.007.034.016.072.027.113.25.063.478.184.683.363.206.18.348.39.426.63l1.899 5.68zm-6.805-6.71a1.812 1.812 0 0 0-.082.3A2.476 2.476 0 0 0 12 7c0 .193.014.358.043.496.029.138.056.238.082.3h2.953c.026-.062.054-.162.082-.3.029-.138.043-.303.043-.496s-.014-.358-.043-.496a1.812 1.812 0 0 0-.082-.3h-2.953zm-4 0a1.812 1.812 0 0 0-.082.3A2.476 2.476 0 0 0 8 7c0 .193.014.358.043.496.029.138.056.238.082.3h2.953c.026-.062.054-.162.082-.3.029-.138.043-.303.043-.496s-.014-.358-.043-.496a1.812 1.812 0 0 0-.082-.3H8.125zM6.289 9.397h10.625l-.64-1.914a.576.576 0 0 0-.106-.183.979.979 0 0 0-.168-.16c-.005.156-.02.306-.043.449a2.148 2.148 0 0 1-.098.387c-.088.27-.199.442-.332.515a.726.726 0 0 1-.324.11H12a.66.66 0 0 1-.184-.032.525.525 0 0 1-.214-.14.52.52 0 0 1-.22.14.683.683 0 0 1-.179.032H8a.726.726 0 0 1-.324-.11c-.133-.073-.246-.245-.34-.515a2.739 2.739 0 0 1-.09-.387 3.504 3.504 0 0 1-.043-.45.979.979 0 0 0-.168.16.576.576 0 0 0-.105.184l-.64 1.914zm-1.258 3.766c-.01.042-.022.083-.035.125a1.634 1.634 0 0 0-.035.133l.117-.016c.042-.005.083-.008.125-.008H18c.042 0 .082.003.121.008l.121.016a1.634 1.634 0 0 0-.078-.258l-.984-2.96H6.023l-.992 2.96zm13.367 1.438c0-.11-.039-.204-.117-.282a.384.384 0 0 0-.281-.117H5.203c-.114 0-.21.04-.289.117a.384.384 0 0 0-.117.282v1.601c0 .11.039.203.117.281a.393.393 0 0 0 .29.118H18c.11 0 .203-.04.281-.118a.384.384 0 0 0 .117-.28v-1.602z"
2733 })));
2734};
2735
2736Hotel.displayName = "HotelIcon";
2737Hotel.defaultProps = {
2738 color: "currentColor",
2739 children: null
2740};
2741Hotel.propTypes = {
2742 size: PropTypes__default.number.isRequired,
2743 color: PropTypes__default.string,
2744 children: PropTypes__default.node
2745};
2746
2747var Meal = function Meal(_ref) {
2748 var size = _ref.size,
2749 color = _ref.color,
2750 children = _ref.children,
2751 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2752
2753 return React__default.createElement("svg", _extends({
2754 width: size,
2755 height: size,
2756 viewBox: "0 0 26 27"
2757 }, props), children, React__default.createElement("g", {
2758 fill: "none",
2759 fillRule: "evenodd",
2760 transform: "translate(1 1.85)"
2761 }, React__default.createElement("circle", {
2762 cx: "12",
2763 cy: "12",
2764 r: "12.5",
2765 fill: "#FAFAFA",
2766 stroke: "#E0E0E0"
2767 }), React__default.createElement("path", {
2768 fill: color,
2769 d: "M10.398 4.203c0 .474.038.915.114 1.324.075.41.152.78.23 1.114.104.448.175.847.211 1.199.037.351-.05.66-.258.926-.156.198-.384.346-.683.445-.3.099-.694.159-1.184.18.021.557.056 1.095.106 1.613a43.664 43.664 0 0 0 .367 2.871c.07.438.14.857.207 1.258.088.526.165 1.009.23 1.449.065.44.106.836.121 1.188a3.75 3.75 0 0 1-.058.921 1.509 1.509 0 0 1-.309.668c-.12.146-.272.256-.457.328-.185.073-.397.11-.637.11s-.45-.037-.632-.11a1.17 1.17 0 0 1-.461-.328A1.476 1.476 0 0 1 7 18.691a4.024 4.024 0 0 1-.059-.921c.013-.352.054-.747.122-1.184.067-.438.145-.922.234-1.453.068-.396.137-.814.207-1.254a43.664 43.664 0 0 0 .367-2.875c.05-.518.085-1.056.106-1.613-.495-.021-.891-.082-1.188-.184-.297-.102-.523-.249-.68-.441a1.244 1.244 0 0 1-.257-.93c.036-.354.104-.755.203-1.203.078-.328.155-.697.23-1.106.076-.409.113-.85.113-1.324 0-.114.04-.21.118-.289a.384.384 0 0 1 .28-.117c.115 0 .212.039.29.117a.393.393 0 0 1 .117.29c0 .26-.012.508-.035.745-.023.237-.053.465-.09.684a15.04 15.04 0 0 1-.242 1.18 13.02 13.02 0 0 0-.176.898c-.039.255-.014.44.074.555.073.093.215.168.426.222.211.055.491.09.84.106V5c0-.11.04-.203.117-.281a.384.384 0 0 1 .281-.117c.11 0 .204.039.282.117A.384.384 0 0 1 8.797 5v3.203c0 .063.001.126.004.192.002.065.004.131.004.199.343-.016.62-.051.832-.106.21-.054.355-.129.433-.222.089-.11.114-.293.075-.551-.04-.258-.1-.556-.184-.895a28.843 28.843 0 0 0-.121-.558 9.13 9.13 0 0 1-.117-.621 12.382 12.382 0 0 1-.086-.688 7.707 7.707 0 0 1-.035-.75c0-.114.039-.21.117-.289A.384.384 0 0 1 10 3.797c.11 0 .203.039.281.117a.393.393 0 0 1 .117.29zM8.883 18.836c.094-.104.15-.27.172-.496.02-.227.018-.498-.008-.813-.026-.315-.07-.665-.133-1.05l-.195-1.211c-.052-.308-.106-.625-.16-.954-.055-.328-.108-.669-.16-1.023a90.873 90.873 0 0 1-.313 1.977c-.073.422-.14.825-.2 1.21-.06.386-.102.736-.128 1.051a4.758 4.758 0 0 0-.008.813c.02.226.076.392.164.496a.52.52 0 0 0 .149.11c.067.036.18.054.335.054.157 0 .27-.018.34-.055a.406.406 0 0 0 .145-.11zm7.82-3.703c.089.526.167 1.009.235 1.449.067.44.108.836.12 1.188.014.351-.006.658-.058.921a1.476 1.476 0 0 1-.305.668 1.17 1.17 0 0 1-.46.328c-.183.073-.394.11-.633.11-.24 0-.452-.037-.637-.11a1.104 1.104 0 0 1-.457-.328 1.509 1.509 0 0 1-.309-.668 3.75 3.75 0 0 1-.058-.921c.015-.352.056-.747.12-1.184a85.058 85.058 0 0 1 .36-2.215c.044-.263.087-.534.129-.812.042-.28.083-.564.125-.856.042-.292.078-.594.11-.906h-1.782a.414.414 0 0 1-.172-.035.416.416 0 0 1-.14-.106.441.441 0 0 1-.079-.156.384.384 0 0 1-.007-.172l.172-.824c.104-.503.257-1.119.46-1.848.204-.729.456-1.51.758-2.344.302-.833.654-1.604 1.055-2.312a.416.416 0 0 1 .453-.188c.089.027.16.075.215.145a.39.39 0 0 1 .082.246v4c0 .682.022 1.34.066 1.973a39.08 39.08 0 0 0 .395 3.469c.083.523.164 1.02.242 1.488zM13.688 11h1.382a25.688 25.688 0 0 0 .094-1.36c.01-.234.02-.47.027-.71.008-.24.012-.482.012-.727V5.945a19.69 19.69 0 0 0-.55 1.477c-.165.5-.31.976-.438 1.43-.128.453-.235.865-.32 1.238-.086.372-.155.676-.207.91zm2.398 7.836c.088-.104.143-.27.164-.496.02-.227.018-.498-.008-.813a14.883 14.883 0 0 0-.129-1.05c-.06-.386-.126-.79-.199-1.211a92.24 92.24 0 0 1-.312-1.977c-.053.354-.106.695-.16 1.024l-.16.953-.196 1.21c-.063.386-.106.736-.129 1.051a5.364 5.364 0 0 0-.008.813c.018.226.074.392.168.496a.406.406 0 0 0 .145.11c.07.036.183.054.34.054.156 0 .268-.018.335-.055a.52.52 0 0 0 .149-.11z"
2770 })));
2771};
2772
2773Meal.displayName = "MealIcon";
2774Meal.defaultProps = {
2775 color: "currentColor",
2776 children: null
2777};
2778Meal.propTypes = {
2779 size: PropTypes__default.number.isRequired,
2780 color: PropTypes__default.string,
2781 children: PropTypes__default.node
2782};
2783
2784var Membership = function Membership(_ref) {
2785 var size = _ref.size,
2786 color = _ref.color,
2787 children = _ref.children,
2788 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2789
2790 return React__default.createElement("svg", _extends({
2791 width: size,
2792 height: size,
2793 viewBox: "0 0 26 27"
2794 }, props), children, React__default.createElement("g", {
2795 fill: "none",
2796 fillRule: "evenodd",
2797 transform: "translate(1 1.85)"
2798 }, React__default.createElement("circle", {
2799 cx: "12",
2800 cy: "12",
2801 r: "12.5",
2802 fill: "#FAFAFA",
2803 stroke: "#E0E0E0"
2804 }), React__default.createElement("path", {
2805 fill: color,
2806 d: "M15.836 7.625L15.39 9l.445 1.375-1.172.852-.266.82v7.351a.417.417 0 0 1-.054.207.336.336 0 0 1-.156.145.458.458 0 0 1-.188.047.44.44 0 0 1-.219-.063l-2.18-1.453-2.18 1.453a.385.385 0 0 1-.202.067.408.408 0 0 1-.211-.051.369.369 0 0 1-.153-.145.396.396 0 0 1-.058-.207v-7.351l-.266-.82-1.164-.852L7.813 9l-.446-1.375 1.164-.852.453-1.375h1.446l1.172-.851 1.171.851h1.446l.445 1.375 1.172.852zm-4.016 9.844l1.782 1.187v-6.054h-.829l-1.171.851-1.172-.851h-.828v6.054l1.773-1.187a.383.383 0 0 1 .445 0zm3.078-7.399L14.547 9l.351-1.07-.914-.664-.343-1.07h-1.133l-.906-.665-.915.664H9.563l-.344 1.07-.914.665L8.648 9l-.343 1.07.914.664.344 1.07h1.124l.915.665.906-.664h1.094v-.008h.039l.343-1.063.914-.664z"
2807 })));
2808};
2809
2810Membership.displayName = "MembershipIcon";
2811Membership.defaultProps = {
2812 color: "currentColor",
2813 children: null
2814};
2815Membership.propTypes = {
2816 size: PropTypes__default.number.isRequired,
2817 color: PropTypes__default.string,
2818 children: PropTypes__default.node
2819};
2820
2821var Merchandise = function Merchandise(_ref) {
2822 var size = _ref.size,
2823 color = _ref.color,
2824 children = _ref.children,
2825 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2826
2827 return React__default.createElement("svg", _extends({
2828 width: size,
2829 height: size,
2830 viewBox: "0 0 26 27"
2831 }, props), children, React__default.createElement("g", {
2832 fill: "none",
2833 fillRule: "evenodd",
2834 transform: "translate(1 1.85)"
2835 }, React__default.createElement("circle", {
2836 cx: "12",
2837 cy: "12",
2838 r: "12.5",
2839 fill: "#FAFAFA",
2840 stroke: "#E0E0E0"
2841 }), React__default.createElement("path", {
2842 fill: color,
2843 d: "M10.797 17.398a.396.396 0 0 1-.235-.078.385.385 0 0 1-.148-.21.37.37 0 0 1 .035-.301.396.396 0 0 1 .239-.192l5.601-1.601a.386.386 0 0 1 .309.035.367.367 0 0 1 .183.238c.032.11.021.212-.031.309a.357.357 0 0 1-.242.183l-5.602 1.602a.415.415 0 0 1-.11.016zm7.601-.43a.369.369 0 0 1-.07.262.368.368 0 0 1-.226.153l-8.797 2.406a.36.36 0 0 0-.051.004.57.57 0 0 1-.145-.004.243.243 0 0 1-.086-.031L5.82 18.156a.384.384 0 0 1-.168-.16.412.412 0 0 1-.05-.23l.796-10.399.004-.02a.403.403 0 0 1 .11-.223.42.42 0 0 1 .199-.116l2.336-.516a8.77 8.77 0 0 1 .203-.941c.078-.279.167-.522.266-.73.198-.423.415-.699.652-.829.237-.13.447-.195.629-.195.12 0 .262.038.426.113.164.076.324.233.48.473a.362.362 0 0 1 .059.297.409.409 0 0 1-.168.258.416.416 0 0 1-.305.054.36.36 0 0 1-.25-.172.648.648 0 0 0-.14-.172c-.042-.03-.076-.046-.102-.046-.177 0-.344.148-.5.445-.156.297-.292.716-.406 1.258l.82-.188c.11-.02.21-.001.305.059.093.06.15.142.171.246a.38.38 0 0 1-.05.305.369.369 0 0 1-.246.171l-3.086.688 1.476.992 1.969-.398a1.558 1.558 0 0 0 .016-.227c.041-.484.093-.927.156-1.328.062-.401.138-.758.226-1.07.089-.313.19-.582.305-.809.115-.226.242-.413.383-.559.12-.125.254-.22.402-.289.149-.067.304-.101.465-.101.198 0 .382.064.55.191.17.128.324.32.462.578.138.258.263.584.375.977.112.393.212.858.3 1.394a8.357 8.357 0 0 1 .079.5l1.008-.203-.555-.273a.394.394 0 0 1-.2-.234.4.4 0 0 1 .02-.305.366.366 0 0 1 .23-.2.408.408 0 0 1 .31.02l1.593.797c.068.031.12.077.156.137.037.06.06.123.07.191l.797 9.602zM12.906 4.75a1.46 1.46 0 0 0-.203.29c-.078.134-.157.328-.238.581-.08.253-.156.573-.227.961-.07.388-.129.866-.175 1.434l2.124-.422a9.388 9.388 0 0 1-.042-.266 9.388 9.388 0 0 0-.043-.266 12.24 12.24 0 0 0-.211-1.05 5.75 5.75 0 0 0-.25-.785c-.1-.25-.19-.417-.27-.5-.08-.084-.137-.125-.168-.125a.438.438 0 0 0-.129.023.427.427 0 0 0-.168.125zM7.148 8.11l-.726 9.453 2.375 1.187V9.21l-1.649-1.1zm2.454 10.765l7.968-2.172-.734-8.82-1.766.351c.047.427.08.787.098 1.079.018.291.03.447.035.468a.388.388 0 0 1-.105.29.386.386 0 0 1-.278.132.388.388 0 0 1-.289-.105.386.386 0 0 1-.133-.278l-.023-.414c-.016-.27-.047-.61-.094-1.015l-2.265.453a25.217 25.217 0 0 0-.024 1.742.4.4 0 0 1-.39.414h-.008a.39.39 0 0 1-.281-.113.37.37 0 0 1-.118-.278l-.008-.476c-.005-.302 0-.677.016-1.125l-1.601.32v9.547z"
2844 })));
2845};
2846
2847Merchandise.displayName = "MerchandiseIcon";
2848Merchandise.defaultProps = {
2849 color: "currentColor",
2850 children: null
2851};
2852Merchandise.propTypes = {
2853 size: PropTypes__default.number.isRequired,
2854 color: PropTypes__default.string,
2855 children: PropTypes__default.node
2856};
2857
2858var getWidth = function getWidth(size) {
2859 return size / 4;
2860};
2861
2862var OverflowIcon = function OverflowIcon(_ref) {
2863 var size = _ref.size,
2864 color = _ref.color,
2865 children = _ref.children,
2866 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2867
2868 return React__default.createElement("svg", _extends({}, props, {
2869 viewBox: "0 0 5 21",
2870 width: getWidth(size),
2871 height: size,
2872 fill: color
2873 }), children, React__default.createElement("path", {
2874 d: "M0 2.5C0 1.81.242 1.22.727.732A2.394 2.394 0 0 1 2.492 0a2.42 2.42 0 0 1 1.773.732C4.755 1.221 5 1.81 5 2.5s-.245 1.28-.735 1.768A2.42 2.42 0 0 1 2.492 5C1.8 5 1.212 4.756.727 4.268A2.418 2.418 0 0 1 0 2.5zm0 8.008c0-.692.242-1.283.727-1.773A2.39 2.39 0 0 1 2.492 8c.692 0 1.283.245 1.773.735S5 9.815 5 10.508a2.39 2.39 0 0 1-.735 1.765A2.43 2.43 0 0 1 2.492 13c-.692 0-1.28-.242-1.765-.727A2.403 2.403 0 0 1 0 10.508zM0 18.5c0-.69.242-1.28.727-1.768A2.394 2.394 0 0 1 2.492 16a2.42 2.42 0 0 1 1.773.732c.49.489.735 1.078.735 1.768s-.245 1.28-.735 1.768A2.42 2.42 0 0 1 2.492 21c-.692 0-1.28-.244-1.765-.732A2.418 2.418 0 0 1 0 18.5z"
2875 }));
2876};
2877
2878OverflowIcon.displayName = "OverflowIcon";
2879OverflowIcon.propTypes = {
2880 size: PropTypes__default.number.isRequired,
2881 color: PropTypes__default.string,
2882 children: PropTypes__default.node
2883};
2884OverflowIcon.defaultProps = {
2885 children: null,
2886 color: "currentColor"
2887};
2888
2889var ParkingIcon = function ParkingIcon(_ref) {
2890 var size = _ref.size,
2891 color = _ref.color,
2892 children = _ref.children,
2893 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2894
2895 return React__default.createElement("svg", _extends({
2896 width: size,
2897 height: size,
2898 viewBox: "0 0 26 26"
2899 }, props), children, React__default.createElement("g", {
2900 fill: "none",
2901 fillRule: "evenodd",
2902 transform: "translate(1 .85)"
2903 }, React__default.createElement("circle", {
2904 cx: "12",
2905 cy: "12.15",
2906 r: "12.5",
2907 fill: "#FAFAFA",
2908 stroke: "#E0E0E0"
2909 }), React__default.createElement("path", {
2910 fill: color,
2911 d: "M8.948 16.302c-.369 0-.685-.132-.949-.396a1.305 1.305 0 0 1-.395-.958c0-.369.131-.685.395-.949.264-.264.58-.395.95-.395.374 0 .694.131.957.395.264.264.396.58.396.95 0 .374-.132.694-.396.957a1.305 1.305 0 0 1-.958.396zm0-1.802a.432.432 0 0 0-.316.132.432.432 0 0 0-.132.316c0 .123.044.229.132.317a.432.432 0 0 0 .316.131.432.432 0 0 0 .317-.131.432.432 0 0 0 .131-.317.432.432 0 0 0-.131-.316.432.432 0 0 0-.317-.132zm8.104 1.802c-.375 0-.695-.132-.958-.396a1.305 1.305 0 0 1-.396-.958c0-.369.132-.685.396-.949.263-.264.583-.395.958-.395.369 0 .685.131.949.395.264.264.395.58.395.95 0 .374-.131.694-.395.957-.264.264-.58.396-.95.396zm0-1.802a.432.432 0 0 0-.317.132.432.432 0 0 0-.131.316c0 .123.043.229.131.317a.432.432 0 0 0 .317.131.432.432 0 0 0 .316-.131.432.432 0 0 0 .132-.317.432.432 0 0 0-.132-.316.432.432 0 0 0-.316-.132zm2.575-1.573c.187.199.33.43.426.694.097.264.145.557.145.879v2.25c0 .293-.085.555-.255.787a1.36 1.36 0 0 1-.641.487V19a.863.863 0 0 1-.264.633.873.873 0 0 1-.642.263H17.5a.863.863 0 0 1-.633-.263.863.863 0 0 1-.263-.633v-.896H9.396V19a.863.863 0 0 1-.263.633.863.863 0 0 1-.633.263h-.896a.873.873 0 0 1-.642-.263.863.863 0 0 1-.264-.633v-.976a1.36 1.36 0 0 1-.641-.487 1.296 1.296 0 0 1-.255-.787V14.5c0-.205.02-.401.061-.589.041-.187.1-.36.176-.518a.468.468 0 0 1 .264-.22.414.414 0 0 1 .343.026.443.443 0 0 1 .224.264.45.45 0 0 1-.022.343 1.07 1.07 0 0 0-.115.312 1.909 1.909 0 0 0-.035.382v2.25c0 .123.044.229.132.316a.432.432 0 0 0 .316.132h11.708a.432.432 0 0 0 .316-.132.432.432 0 0 0 .132-.316V14.5c0-.404-.109-.722-.325-.954-.217-.231-.572-.414-1.064-.549a7.976 7.976 0 0 0-.874-.158c-.32-.041-.665-.072-1.038-.092-.372-.02-.772-.034-1.2-.04a99.014 99.014 0 0 0-1.353-.009.432.432 0 0 1-.316-.132.432.432 0 0 1-.132-.316c0-.123.044-.229.132-.316a.432.432 0 0 1 .316-.132c.492 0 .96.003 1.402.009.442.005.86.019 1.253.04.392.02.758.052 1.098.096a7.35 7.35 0 0 1 1.072.215l-.153-.782a18.882 18.882 0 0 0-.18-.818c-.065-.263-.13-.506-.198-.729a3.892 3.892 0 0 0-.198-.536c-.076-.152-.3-.32-.672-.501-.372-.182-.936-.328-1.692-.44a.422.422 0 0 1-.295-.18.452.452 0 0 1-.083-.338.473.473 0 0 1 .184-.29c.1-.076.211-.103.334-.08.287.042.586.099.897.172.31.073.606.167.887.281.282.115.532.252.752.413.22.162.385.35.497.567.105.205.206.48.303.827.096.345.184.703.263 1.072.08.369.148.719.207 1.05.059.331.103.587.132.77.07.046.136.094.198.144a1.5 1.5 0 0 1 .171.163zM8.5 18.104h-.896V19H8.5v-.896zm9.896.896v-.896H17.5V19h.896zM8.052 10.896a.432.432 0 0 1-.317-.131.432.432 0 0 1-.131-.317v-4.5c0-.123.043-.228.131-.316a.432.432 0 0 1 .317-.132h1.344c.252 0 .487.047.704.14a1.824 1.824 0 0 1 .958.959c.093.216.14.45.14.703 0 .246-.047.479-.14.698-.094.22-.223.41-.387.572-.164.16-.355.29-.571.386a1.707 1.707 0 0 1-.704.146H8.5v1.344a.432.432 0 0 1-.132.317.432.432 0 0 1-.316.131zM8.5 8.198h.896a.873.873 0 0 0 .642-.263.863.863 0 0 0 .264-.633.873.873 0 0 0-.264-.642.873.873 0 0 0-.642-.264H8.5v1.802zm.448 4.5c-.68 0-1.32-.129-1.92-.386a4.978 4.978 0 0 1-1.573-1.06A5.026 5.026 0 0 1 4.39 9.675 4.801 4.801 0 0 1 4 7.75c0-.68.13-1.321.391-1.925a4.978 4.978 0 0 1 2.637-2.637c.6-.257 1.24-.386 1.92-.386.686 0 1.329.129 1.93.386.6.258 1.124.611 1.573 1.06.448.448.801.974 1.059 1.577.258.604.386 1.245.386 1.925 0 .68-.128 1.321-.386 1.925a4.965 4.965 0 0 1-1.06 1.577 4.978 4.978 0 0 1-1.573 1.06c-.6.257-1.243.386-1.929.386zm0-9c-.556 0-1.08.107-1.573.321a4.128 4.128 0 0 0-1.288.87 4.128 4.128 0 0 0-.87 1.288 3.905 3.905 0 0 0-.32 1.573c0 .557.106 1.081.32 1.573.214.492.504.922.87 1.288.367.366.796.656 1.288.87.492.214 1.017.32 1.573.32.557 0 1.081-.106 1.573-.32a4.128 4.128 0 0 0 1.288-.87c.366-.366.656-.796.87-1.288.214-.492.321-1.016.321-1.573 0-.557-.107-1.081-.32-1.573a4.128 4.128 0 0 0-.87-1.288 4.128 4.128 0 0 0-1.289-.87 3.905 3.905 0 0 0-1.573-.32z"
2912 })));
2913};
2914
2915ParkingIcon.displayName = "ParkingIcon";
2916ParkingIcon.defaultProps = {
2917 color: "currentColor",
2918 children: null
2919};
2920ParkingIcon.propTypes = {
2921 size: PropTypes__default.number.isRequired,
2922 color: PropTypes__default.string,
2923 children: PropTypes__default.node
2924};
2925
2926var SpecialIcon = function SpecialIcon(_ref) {
2927 var size = _ref.size,
2928 color = _ref.color,
2929 children = _ref.children,
2930 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2931
2932 return React__default.createElement("svg", _extends({
2933 width: size,
2934 height: size,
2935 viewBox: "0 0 26 27"
2936 }, props), children, React__default.createElement("g", {
2937 fill: "none",
2938 fillRule: "evenodd",
2939 transform: "translate(1 1.85)"
2940 }, React__default.createElement("circle", {
2941 cx: "12",
2942 cy: "12",
2943 r: "12.5",
2944 fill: "#FAFAFA",
2945 stroke: "#E0E0E0"
2946 }), React__default.createElement("path", {
2947 fill: color,
2948 stroke: "#262626",
2949 strokeWidth: ".2",
2950 d: "M16 3.15c.552 0 1.072.105 1.559.316a4.026 4.026 0 0 1 2.129 2.129c.208.485.312 1.003.312 1.555a3.92 3.92 0 0 1-.313 1.559 4.014 4.014 0 0 1-.855 1.273 4.014 4.014 0 0 1-1.273.856A3.92 3.92 0 0 1 16 11.15a4.035 4.035 0 0 1-1.504-.29 3.874 3.874 0 0 1-.66-.343 4.107 4.107 0 0 1-.578-.453l-5.89 5.89 1.312 1.313a.388.388 0 0 1 .117.285.4.4 0 0 1-.68.285l-1.32-1.32-.633.633 1.32 1.32a.384.384 0 0 1 .118.282c0 .109-.04.203-.118.28a.378.378 0 0 1-.136.09.417.417 0 0 1-.297 0 .378.378 0 0 1-.137-.09L5.602 17.72l-.922.914a.313.313 0 0 1-.13.09.437.437 0 0 1-.304 0 .313.313 0 0 1-.129-.09.384.384 0 0 1-.117-.28c0-.11.04-.204.117-.282l8.61-8.617A3.963 3.963 0 0 1 12 7.15c0-.552.104-1.07.313-1.555a4.026 4.026 0 0 1 2.128-2.129A3.879 3.879 0 0 1 16 3.15zm2.266 6.266c.15-.151.283-.314.398-.489.115-.174.212-.358.293-.55a3.173 3.173 0 0 0-.293-2.997 3.26 3.26 0 0 0-.887-.89 3.022 3.022 0 0 0-.55-.293 3.365 3.365 0 0 0-.598-.18 3.16 3.16 0 0 0-1.258 0 3.365 3.365 0 0 0-.598.18 3.022 3.022 0 0 0-.55.293 3.26 3.26 0 0 0-.887.89 3.454 3.454 0 0 0-.293.547 3.078 3.078 0 0 0-.246 1.223 3.16 3.16 0 0 0 .246 1.227c.08.192.178.376.293.55.115.175.247.338.398.489.151.15.314.285.489.402.174.117.358.215.55.293.193.078.392.138.598.18a3.16 3.16 0 0 0 1.258 0c.206-.042.405-.102.598-.18.192-.078.376-.176.55-.293a3.26 3.26 0 0 0 .489-.402z"
2951 })));
2952};
2953
2954SpecialIcon.displayName = "SpecialIcon";
2955SpecialIcon.defaultProps = {
2956 color: "currentColor",
2957 children: null
2958};
2959SpecialIcon.propTypes = {
2960 size: PropTypes.number.isRequired,
2961 color: PropTypes.string,
2962 children: PropTypes.node
2963};
2964
2965var Transportation = function Transportation(_ref) {
2966 var size = _ref.size,
2967 color = _ref.color,
2968 children = _ref.children,
2969 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
2970
2971 return React__default.createElement("svg", _extends({
2972 width: size,
2973 height: size,
2974 viewBox: "0 0 26 27"
2975 }, props), children, React__default.createElement("g", {
2976 fill: "none",
2977 fillRule: "evenodd",
2978 transform: "translate(1 1.85)"
2979 }, React__default.createElement("circle", {
2980 cx: "12",
2981 cy: "12",
2982 r: "12.5",
2983 fill: "#FAFAFA",
2984 stroke: "#E0E0E0"
2985 }), React__default.createElement("path", {
2986 fill: color,
2987 d: "M20 12.21c0 .11-.038.203-.113.278a.406.406 0 0 1-.278.121 1.988 1.988 0 0 1 .39 1.188c.001.276-.051.535-.155.777a2.02 2.02 0 0 1-1.067 1.067 1.946 1.946 0 0 1-.777.156 1.968 1.968 0 0 1-1.203-.399 2.048 2.048 0 0 1-.438-.449 1.796 1.796 0 0 1-.273-.574 1.416 1.416 0 0 0-.063.281.404.404 0 0 1-.132.246.385.385 0 0 1-.266.098h-4.852a.389.389 0 0 1-.261-.098.397.397 0 0 1-.137-.246 2.247 2.247 0 0 0-.11-.453 2.463 2.463 0 0 1-.867 1.145A2.372 2.372 0 0 1 8 15.797a2.368 2.368 0 0 1-1.398-.45 2.463 2.463 0 0 1-.868-1.144 2.188 2.188 0 0 0-.109.453.397.397 0 0 1-.137.246.389.389 0 0 1-.261.098h-.829A.4.4 0 0 1 4 14.602c0-.391.022-.762.066-1.114.045-.351.11-.682.196-.992a5.33 5.33 0 0 1 .32-.867c.128-.268.277-.514.45-.738.098-.12.201-.235.308-.344.107-.11.217-.211.332-.305.052-.104.138-.264.258-.48a5.23 5.23 0 0 1 .484-.707 5.71 5.71 0 0 1 .582-.617 5.32 5.32 0 0 1 .645-.504c.224-.149.458-.278.703-.387.245-.11.497-.195.758-.258a8.926 8.926 0 0 1 1.37-.223c.498-.044.985-.063 1.462-.058.476.005.912.034 1.308.086.396.052.7.122.914.21.12.053.281.178.485.376.203.198.46.59.773 1.18.099.187.188.367.266.538.078.172.143.313.195.422 1.344.104 2.18.192 2.508.262.328.07.526.124.594.16.24.12.427.278.562.473.135.195.237.393.305.594.067.2.11.382.129.546.018.165.027.273.027.325v.03zM9.297 8.063a3.922 3.922 0 0 0-.738.266 4.109 4.109 0 0 0-1.13.797c-.15.151-.286.3-.406.445.214-.057.434-.1.66-.129a5.7 5.7 0 0 1 .715-.043h.016l.43.02 1.11.05a302.26 302.26 0 0 1 3.367.18 778.146 778.146 0 0 0 1.64.11 5.566 5.566 0 0 0-.121-.258l-.137-.273c-.27-.516-.478-.84-.621-.973a2.152 2.152 0 0 0-.238-.207c-.157-.068-.41-.123-.758-.164-.349-.042-.74-.065-1.176-.07a13.94 13.94 0 0 0-1.344.05c-.46.04-.884.106-1.27.2zM8 15a1.609 1.609 0 0 0 1.477-.977 1.558 1.558 0 0 0 .109-.82 2.458 2.458 0 0 0-.727-.441 2.322 2.322 0 0 0-.859-.16c-.302 0-.589.053-.86.16-.27.106-.512.254-.726.441a1.114 1.114 0 0 0-.016.195c0 .224.042.433.125.625a1.62 1.62 0 0 0 .856.852c.195.083.402.125.621.125zm7.305-.797c.078-.312.202-.605.37-.879a3.2 3.2 0 0 1 .622-.73c.057-.052.117-.103.18-.153a2.02 2.02 0 0 1 .195-.136l.004-.004c.002-.003.006-.004.012-.004a3.02 3.02 0 0 1 .699-.332c.247-.08.501-.132.761-.152h.016a1.486 1.486 0 0 1 .234-.016h.75a2.09 2.09 0 0 0-.168-.469.773.773 0 0 0-.355-.367 1.448 1.448 0 0 0-.254-.066 10.63 10.63 0 0 0-.781-.11c-.383-.044-.92-.095-1.61-.152a176.163 176.163 0 0 0-4.48-.285 347.95 347.95 0 0 0-3.11-.145c-.692 0-1.265.119-1.718.356a2.992 2.992 0 0 0-1.082.925 3.71 3.71 0 0 0-.574 1.286 7.972 7.972 0 0 0-.211 1.433h.093c.073-.276.18-.538.32-.785a3.16 3.16 0 0 1 .516-.676.122.122 0 0 1 .024-.031c.01-.01.023-.02.039-.031l.047-.047a.209.209 0 0 1 .054-.04 3.11 3.11 0 0 1 .977-.59 3.152 3.152 0 0 1 2.25 0c.365.139.69.336.977.59.026.016.049.035.07.055l.066.067c.003.002.007.004.012.004.203.208.378.437.523.687.146.25.256.516.329.797h4.203zM18 15c.328 0 .61-.117.848-.352.237-.234.355-.518.355-.851 0-.297-.098-.557-.293-.781a1.193 1.193 0 0 0-.73-.407c-.193.021-.377.062-.551.121-.175.06-.34.14-.496.239-.11.11-.193.235-.25.379a1.198 1.198 0 0 0-.086.449c0 .333.117.617.351.851.235.235.519.352.852.352z"
2988 })));
2989};
2990
2991Transportation.displayName = "TransportationIcon";
2992Transportation.defaultProps = {
2993 color: "currentColor",
2994 children: null
2995};
2996Transportation.propTypes = {
2997 size: PropTypes__default.number.isRequired,
2998 color: PropTypes__default.string,
2999 children: PropTypes__default.node
3000};
3001
3002var TwitterIcon = function TwitterIcon(_ref) {
3003 var size = _ref.size,
3004 color = _ref.color,
3005 children = _ref.children,
3006 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
3007
3008 return React__default.createElement("svg", _extends({}, props, {
3009 viewBox: "0 0 14 12",
3010 width: size,
3011 height: size,
3012 fill: color
3013 }), children, React__default.createElement("path", {
3014 d: "M14 1.353a5.704 5.704 0 0 1-1.65.454A2.89 2.89 0 0 0 13.613.211c-.555.33-1.17.57-1.824.7A2.862 2.862 0 0 0 9.693 0 2.879 2.879 0 0 0 6.82 2.885c0 .226.025.446.074.657A8.141 8.141 0 0 1 .975.528a2.881 2.881 0 0 0-.39 1.45c0 1.001.508 1.884 1.279 2.402a2.852 2.852 0 0 1-1.301-.361v.037c0 1.397.99 2.563 2.304 2.828a2.87 2.87 0 0 1-1.298.05 2.877 2.877 0 0 0 2.683 2.003A5.746 5.746 0 0 1 0 10.132a8.103 8.103 0 0 0 4.403 1.297c5.283 0 8.172-4.397 8.172-8.21 0-.124-.002-.249-.008-.373A5.846 5.846 0 0 0 14 1.353z"
3015 }));
3016};
3017
3018TwitterIcon.displayName = "TwitterIcon";
3019TwitterIcon.defaultProps = {
3020 color: "currentcolor",
3021 children: null
3022};
3023TwitterIcon.propTypes = {
3024 size: PropTypes.number.isRequired,
3025 color: PropTypes.string,
3026 children: PropTypes.node
3027};
3028
3029var USIcon = function USIcon(_ref) {
3030 var width = _ref.width,
3031 height = _ref.height,
3032 children = _ref.children,
3033 props = _objectWithoutProperties(_ref, ["width", "height", "children"]);
3034
3035 return React__default.createElement("svg", _extends({}, props, {
3036 height: height,
3037 width: width,
3038 viewBox: "0 0 640 480"
3039 }), children, React__default.createElement("g", {
3040 fillRule: "evenodd",
3041 transform: "scale(.9375)"
3042 }, React__default.createElement("g", {
3043 strokeWidth: "1pt"
3044 }, React__default.createElement("path", {
3045 d: "M0 0h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0z",
3046 fill: "#bd3d44"
3047 }), React__default.createElement("path", {
3048 d: "M0 39.385h972.81V78.77H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0zm0 78.77h972.81v39.385H0z",
3049 fill: "#fff"
3050 })), React__default.createElement("path", {
3051 fill: "#192f5d",
3052 d: "M0 0h389.12v275.69H0z"
3053 }), React__default.createElement("g", {
3054 fill: "#fff"
3055 }, React__default.createElement("path", {
3056 d: "M32.427 11.8l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.853 0l3.541 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735H93.74zm64.856 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.269 6.734 3.54-10.896-9.269-6.735h11.458zm64.852 0l3.54 10.896h11.457l-9.269 6.735 3.54 10.896-9.268-6.734-9.27 6.734 3.541-10.896-9.27-6.735h11.458zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.27 6.734 3.542-10.896-9.27-6.735h11.458zM64.855 39.37l3.54 10.896h11.458L70.583 57l3.542 10.897-9.27-6.734-9.269 6.734L59.126 57l-9.269-6.734h11.458zm64.852 0l3.54 10.896h11.457L135.435 57l3.54 10.897-9.268-6.734-9.27 6.734L123.978 57l-9.27-6.734h11.458zm64.855 0l3.54 10.896h11.458L200.29 57l3.541 10.897-9.27-6.734-9.268 6.734L188.833 57l-9.269-6.734h11.457zm64.855 0l3.54 10.896h11.458L265.145 57l3.541 10.897-9.269-6.734-9.27 6.734L253.69 57l-9.27-6.734h11.458zm64.852 0l3.54 10.896h11.457L329.997 57l3.54 10.897-9.268-6.734-9.27 6.734L318.54 57l-9.27-6.734h11.458zM32.427 66.939l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.853 0l3.541 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735H93.74zm64.856 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.269 6.734 3.54-10.896-9.269-6.735h11.458zm64.852 0l3.54 10.896h11.457l-9.269 6.735 3.54 10.896-9.268-6.734-9.27 6.734 3.541-10.896-9.27-6.735h11.458zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.27 6.734 3.542-10.896-9.27-6.735h11.458zM64.855 94.508l3.54 10.897h11.458l-9.27 6.734 3.542 10.897-9.27-6.734-9.269 6.734 3.54-10.897-9.269-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.27-6.734-9.268 6.734 3.54-10.897-9.269-6.734h11.457zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.269-6.734-9.27 6.734 3.542-10.897-9.27-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458zM32.427 122.078l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.853 0l3.541 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735H93.74zm64.856 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.269 6.734 3.54-10.896-9.269-6.735h11.458zm64.852 0l3.54 10.896h11.457l-9.269 6.735 3.54 10.896-9.268-6.734-9.27 6.734 3.541-10.896-9.27-6.735h11.458zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.27 6.734 3.542-10.896-9.27-6.735h11.458zM64.855 149.647l3.54 10.897h11.458l-9.27 6.734 3.542 10.897-9.27-6.734-9.269 6.734 3.54-10.897-9.269-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.27-6.734-9.268 6.734 3.54-10.897-9.269-6.734h11.457zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.269-6.734-9.27 6.734 3.542-10.897-9.27-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458z"
3057 }), React__default.createElement("g", null, React__default.createElement("path", {
3058 d: "M32.427 177.217l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.853 0l3.541 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735H93.74zm64.856 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.269 6.734 3.54-10.896-9.269-6.735h11.458zm64.852 0l3.54 10.896h11.457l-9.269 6.735 3.54 10.896-9.268-6.734-9.27 6.734 3.541-10.896-9.27-6.735h11.458zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.27 6.734 3.542-10.896-9.27-6.735h11.458zM64.855 204.786l3.54 10.897h11.458l-9.27 6.734 3.542 10.897-9.27-6.734-9.269 6.734 3.54-10.897-9.269-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.27-6.734-9.268 6.734 3.54-10.897-9.269-6.734h11.457zm64.855 0l3.54 10.897h11.458l-9.27 6.734 3.541 10.897-9.269-6.734-9.27 6.734 3.542-10.897-9.27-6.734h11.458zm64.852 0l3.54 10.897h11.457l-9.269 6.734 3.54 10.897-9.268-6.734-9.27 6.734 3.541-10.897-9.27-6.734h11.458z"
3059 })), React__default.createElement("g", null, React__default.createElement("path", {
3060 d: "M32.427 232.356l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.853 0l3.541 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735H93.74zm64.856 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.269 6.734 3.54-10.896-9.269-6.735h11.458zm64.852 0l3.54 10.896h11.457l-9.269 6.735 3.54 10.896-9.268-6.734-9.27 6.734 3.541-10.896-9.27-6.735h11.458zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.27-6.734-9.268 6.734 3.54-10.896-9.269-6.735h11.457zm64.855 0l3.54 10.896h11.458l-9.27 6.735 3.541 10.896-9.269-6.734-9.27 6.734 3.542-10.896-9.27-6.735h11.458z"
3061 })))));
3062};
3063
3064USIcon.displayName = "USIcon";
3065USIcon.defaultProps = {
3066 children: null
3067};
3068USIcon.propTypes = {
3069 width: PropTypes.number.isRequired,
3070 height: PropTypes.number.isRequired,
3071 children: PropTypes.node
3072};
3073
3074var VenueIcon = function VenueIcon(_ref) {
3075 var size = _ref.size,
3076 color = _ref.color,
3077 children = _ref.children,
3078 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
3079
3080 return React__default.createElement("svg", _extends({
3081 width: size,
3082 height: size,
3083 viewBox: "0 0 26 26"
3084 }, props), children, React__default.createElement("g", {
3085 fill: "none",
3086 fillRule: "evenodd",
3087 transform: "translate(1 .85)"
3088 }, React__default.createElement("circle", {
3089 cx: "12",
3090 cy: "12.15",
3091 r: "12.5",
3092 fill: "#FAFAFA",
3093 stroke: "#E0E0E0"
3094 }), React__default.createElement("path", {
3095 fill: color,
3096 d: "M15.602 9.398a1.16 1.16 0 0 1-.852-.351 1.15 1.15 0 0 1-.352-.844c0-.333.118-.617.352-.851A1.16 1.16 0 0 1 15.602 7c.328 0 .609.117.843.352.235.234.352.518.352.851 0 .328-.117.61-.352.844a1.15 1.15 0 0 1-.843.351zm0-1.601c-.11 0-.204.039-.282.117a.393.393 0 0 0-.117.29c0 .109.04.202.117.28a.384.384 0 0 0 .282.118c.109 0 .203-.04.28-.118a.384.384 0 0 0 .118-.28c0-.115-.04-.212-.117-.29a.384.384 0 0 0-.281-.117zm0 6.406a.417.417 0 0 1-.305-.14 22.005 22.005 0 0 1-.406-.516c-.256-.328-.534-.76-.836-1.297-.209-.365-.39-.723-.547-1.074a9.25 9.25 0 0 1-.39-1.035 7.811 7.811 0 0 1-.24-.993 5.657 5.657 0 0 1-.081-.945c0-.39.074-.755.223-1.094.148-.338.348-.634.601-.886.253-.253.55-.453.89-.602a2.702 2.702 0 0 1 1.09-.223c.386 0 .748.075 1.086.223.339.149.636.35.891.602s.456.548.602.886c.146.339.218.703.218 1.094 0 .307-.026.623-.078.945-.052.323-.13.654-.234.993a9.25 9.25 0 0 1-.39 1.035c-.157.351-.34.71-.548 1.074-.307.536-.588.969-.843 1.297-.256.328-.388.5-.399.515a.538.538 0 0 1-.14.102.362.362 0 0 1-.164.04zm0-8c-.276 0-.536.052-.778.156a2.054 2.054 0 0 0-.636.426 1.974 1.974 0 0 0-.586 1.418c0 .505.074 1.01.222 1.512.149.502.328.972.54 1.41.21.438.43.832.66 1.184.229.351.421.631.578.84.156-.209.347-.489.574-.84.226-.352.445-.748.656-1.188.211-.44.392-.91.543-1.41a5.19 5.19 0 0 0 .227-1.508 1.974 1.974 0 0 0-.586-1.418 2.054 2.054 0 0 0-.637-.426 1.946 1.946 0 0 0-.777-.156zm3.195-2.406c.333 0 .617.117.851.351.235.235.352.519.352.852v13.602c0 .328-.117.609-.352.843a1.16 1.16 0 0 1-.851.352H5.203a1.16 1.16 0 0 1-.851-.352A1.15 1.15 0 0 1 4 18.602V5c0-.333.117-.617.352-.852a1.16 1.16 0 0 1 .851-.351h13.594zM9.203 18.203c.11 0 .203.04.281.117a.384.384 0 0 1 .118.282V19h1.601V4.602H9.602V5c0 .11-.04.203-.118.281a.384.384 0 0 1-.28.117.393.393 0 0 1-.29-.117A.384.384 0 0 1 8.797 5v-.398H7.203V19h1.594v-.398c0-.11.039-.204.117-.282a.393.393 0 0 1 .29-.117zm-2.805-1.601v-.805H4.797v.805h1.601zM12 15.797v.805h7.203v-.805H12zM19.203 5c0-.11-.039-.203-.117-.281a.393.393 0 0 0-.29-.117H12V15h7.203V5zm-14-.398c-.114 0-.21.039-.289.117A.384.384 0 0 0 4.797 5v10h1.601V4.602H5.203zm-.406 14c0 .109.039.203.117.28a.393.393 0 0 0 .29.118h1.194v-1.602H4.797v1.204zm14 .398c.114 0 .21-.04.289-.117a.384.384 0 0 0 .117-.281v-1.204H12V19h6.797zM9.203 7.797a.393.393 0 0 1-.289-.117.384.384 0 0 1-.117-.282v-.796c0-.11.039-.204.117-.282a.393.393 0 0 1 .29-.117c.109 0 .202.04.28.117a.384.384 0 0 1 .118.282v.796c0 .11-.04.204-.118.282a.384.384 0 0 1-.28.117zm0 2.406a.393.393 0 0 1-.289-.117.393.393 0 0 1-.117-.29V9c0-.11.039-.203.117-.281a.393.393 0 0 1 .29-.117c.109 0 .202.039.28.117A.384.384 0 0 1 9.602 9v.797c0 .114-.04.21-.118.289a.384.384 0 0 1-.28.117zm0 2.399a.393.393 0 0 1-.289-.118.384.384 0 0 1-.117-.28v-.806c0-.109.039-.203.117-.28a.393.393 0 0 1 .29-.118c.109 0 .202.04.28.117a.384.384 0 0 1 .118.281v.805c0 .11-.04.203-.118.281a.384.384 0 0 1-.28.118zm0 2.398a.393.393 0 0 1-.289-.117.384.384 0 0 1-.117-.281v-.805c0-.11.039-.203.117-.281a.393.393 0 0 1 .29-.118c.109 0 .202.04.28.118a.384.384 0 0 1 .118.28v.806c0 .109-.04.203-.118.28a.384.384 0 0 1-.28.118zm.399 1.203V17c0 .11-.04.203-.118.281a.384.384 0 0 1-.28.117.393.393 0 0 1-.29-.117.384.384 0 0 1-.117-.281v-.797c0-.114.039-.21.117-.289a.393.393 0 0 1 .29-.117c.109 0 .202.039.28.117a.393.393 0 0 1 .118.29z"
3097 })));
3098};
3099
3100VenueIcon.displayName = "VenueIcon";
3101VenueIcon.defaultProps = {
3102 color: "currentColor",
3103 children: null
3104};
3105VenueIcon.propTypes = {
3106 size: PropTypes__default.number.isRequired,
3107 color: PropTypes__default.string,
3108 children: PropTypes__default.node
3109};
3110
3111var VipIcon = function VipIcon(_ref) {
3112 var size = _ref.size,
3113 color = _ref.color,
3114 children = _ref.children,
3115 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
3116
3117 return React__default.createElement("svg", _extends({
3118 width: size,
3119 height: size,
3120 viewBox: "0 0 26 26"
3121 }, props), children, React__default.createElement("g", {
3122 fill: "none",
3123 fillRule: "evenodd",
3124 transform: "translate(1 .85)"
3125 }, React__default.createElement("circle", {
3126 cx: "12",
3127 cy: "12.15",
3128 r: "12.5",
3129 fill: "#FAFAFA",
3130 stroke: "#E0E0E0"
3131 }), React__default.createElement("path", {
3132 fill: color,
3133 d: "M19.203 9.797c0 .302-.099.565-.297.789-.198.224-.44.357-.726.398-.073.302-.187.783-.34 1.442a54.47 54.47 0 0 0-.867 4.691 16.86 16.86 0 0 0-.176 2.281.398.398 0 0 1-.29.387.52.52 0 0 1-.198.004.337.337 0 0 1-.09-.031 3.182 3.182 0 0 0-.707-.227 11.24 11.24 0 0 0-1.067-.176c-.406-.049-.851-.087-1.336-.113-.484-.026-.987-.039-1.507-.039-.526 0-1.032.013-1.516.04-.484.025-.928.063-1.332.112-.404.05-.76.109-1.066.176a3.18 3.18 0 0 0-.711.227.396.396 0 0 1-.579-.36c0-.671-.057-1.432-.171-2.28a47.28 47.28 0 0 0-.403-2.49 54.47 54.47 0 0 0-.46-2.202c-.154-.66-.268-1.14-.34-1.442a1.158 1.158 0 0 1-.731-.398A1.162 1.162 0 0 1 4 9.796c0-.327.117-.608.352-.843a1.16 1.16 0 0 1 .851-.351c.328 0 .61.117.844.351.234.235.351.516.351.844 0 .224-.054.427-.164.61-.109.182-.252.325-.43.429a74.312 74.312 0 0 1 .86 3.922c.11.578.206 1.161.29 1.75.234-.084.51-.155.827-.215.318-.06.656-.11 1.016-.152-.01-.532-.044-1.17-.102-1.914A89.46 89.46 0 0 0 8.496 12a201.513 201.513 0 0 0-.379-3.438 1.155 1.155 0 0 1-.656-.417 1.165 1.165 0 0 1-.258-.747c0-.328.117-.609.352-.843a1.15 1.15 0 0 1 .843-.352c.334 0 .618.117.852.352.234.234.352.515.352.843 0 .24-.064.457-.192.653a1.17 1.17 0 0 1-.496.433c.037.308.09.773.16 1.395s.142 1.3.215 2.031c.073.732.14 1.47.2 2.215.06.745.094 1.393.105 1.945.27-.02.541-.036.812-.047.271-.01.537-.018.797-.023V6.133a1.205 1.205 0 0 1-.578-.434A1.152 1.152 0 0 1 10.398 5c0-.333.118-.617.352-.852a1.16 1.16 0 0 1 .852-.351c.328 0 .609.117.843.351.235.235.352.519.352.852 0 .26-.074.493-.223.7-.148.205-.34.35-.574.433V16c.26.005.526.013.797.023.27.01.539.026.805.047.015-.552.052-1.2.109-1.945.057-.745.122-1.483.195-2.215.073-.732.146-1.409.219-2.031l.164-1.395a1.17 1.17 0 0 1-.496-.433 1.167 1.167 0 0 1-.191-.653c0-.328.117-.609.351-.843a1.15 1.15 0 0 1 .844-.352c.333 0 .617.117.851.352.235.234.352.515.352.843 0 .282-.087.53-.262.747a1.171 1.171 0 0 1-.652.418c-.037.302-.091.765-.164 1.39a124.006 124.006 0 0 0-.418 4.273c-.06.745-.093 1.383-.098 1.915.354.041.69.092 1.008.152.318.06.596.131.836.215.083-.589.18-1.172.29-1.75.108-.578.217-1.121.323-1.63.107-.507.209-.96.305-1.358l.223-.934a1.213 1.213 0 0 1-.43-.43 1.162 1.162 0 0 1-.164-.61c0-.327.117-.608.351-.843A1.16 1.16 0 0 1 18 8.602c.333 0 .617.117.852.351.234.235.351.516.351.844zM14.797 7c-.11 0-.203.04-.281.117a.384.384 0 0 0-.118.281c0 .11.04.204.118.282a.384.384 0 0 0 .28.117c.115 0 .212-.04.29-.117a.384.384 0 0 0 .117-.282c0-.109-.039-.203-.117-.28a.393.393 0 0 0-.29-.118zM8.398 7c-.109 0-.203.04-.28.117A.384.384 0 0 0 8 7.398c0 .11.04.204.117.282a.384.384 0 0 0 .281.117c.11 0 .204-.04.282-.117a.384.384 0 0 0 .117-.282c0-.109-.04-.203-.117-.28A.384.384 0 0 0 8.398 7zm3.204-2.398c-.11 0-.204.039-.282.117a.384.384 0 0 0-.117.281c0 .11.04.203.117.281a.384.384 0 0 0 .282.117c.109 0 .203-.039.28-.117A.384.384 0 0 0 12 5c0-.11-.04-.203-.117-.281a.384.384 0 0 0-.281-.117zM4.797 9.797c0 .114.039.21.117.289a.393.393 0 0 0 .29.117c.109 0 .202-.039.28-.117a.393.393 0 0 0 .118-.29c0-.109-.04-.202-.118-.28a.384.384 0 0 0-.28-.118c-.115 0-.212.04-.29.118a.384.384 0 0 0-.117.28zm6.805 8.601c.37 0 .756.008 1.16.024.403.016.8.04 1.187.074.388.034.76.078 1.114.133.354.055.671.124.953.207a19.058 19.058 0 0 1 .125-1.516 4.056 4.056 0 0 0-.735-.215c-.307-.065-.659-.12-1.054-.164a26.146 26.146 0 0 0-2.75-.145c-.506 0-.993.014-1.461.04-.47.026-.901.061-1.297.105-.396.045-.748.1-1.055.164-.307.066-.55.137-.726.215l.074.778c.023.252.04.498.05.738.277-.083.592-.152.946-.207.354-.055.726-.1 1.117-.133.39-.034.786-.058 1.188-.074.4-.016.789-.024 1.164-.024zM18 10.203c.11 0 .203-.039.281-.117a.393.393 0 0 0 .117-.29c0-.109-.039-.202-.117-.28A.384.384 0 0 0 18 9.398c-.11 0-.203.04-.281.118a.384.384 0 0 0-.117.28c0 .115.039.212.117.29a.384.384 0 0 0 .281.117z"
3134 })));
3135};
3136
3137VipIcon.displayName = "VipIcon";
3138VipIcon.defaultProps = {
3139 color: "currentColor",
3140 children: null
3141};
3142VipIcon.propTypes = {
3143 size: PropTypes__default.number.isRequired,
3144 color: PropTypes__default.string,
3145 children: PropTypes__default.node
3146};
3147
3148var YoutubeIcon = function YoutubeIcon(_ref) {
3149 var size = _ref.size,
3150 color = _ref.color,
3151 children = _ref.children,
3152 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
3153
3154 return React__default.createElement("svg", _extends({}, props, {
3155 viewBox: "0 0 17 12",
3156 width: size,
3157 height: size,
3158 fill: color
3159 }), children, React__default.createElement("path", {
3160 d: "M6.761 8.464V3.44l4.444 2.512L6.76 8.464zm9.884-6.605A2.13 2.13 0 0 0 15.142.355C13.816 0 8.5 0 8.5 0S3.184 0 1.858.355A2.13 2.13 0 0 0 .355 1.86C0 3.185 0 5.952 0 5.952s0 2.767.355 4.093a2.13 2.13 0 0 0 1.503 1.504c1.326.355 6.642.355 6.642.355s5.316 0 6.642-.355a2.13 2.13 0 0 0 1.503-1.504C17 8.72 17 5.952 17 5.952s0-2.767-.355-4.093z"
3161 }));
3162};
3163
3164YoutubeIcon.displayName = "YoutubeIcon";
3165YoutubeIcon.defaultProps = {
3166 color: "currentcolor",
3167 children: null
3168};
3169YoutubeIcon.propTypes = {
3170 size: PropTypes.number.isRequired,
3171 color: PropTypes.string,
3172 children: PropTypes.node
3173};
3174
3175var LinkedinIcon = function LinkedinIcon(_ref) {
3176 var color = _ref.color,
3177 size = _ref.size,
3178 children = _ref.children,
3179 props = _objectWithoutProperties(_ref, ["color", "size", "children"]);
3180
3181 return React__default.createElement("svg", _extends({}, props, {
3182 viewBox: "0 0 19 18",
3183 width: size,
3184 height: size,
3185 fill: color
3186 }), children, React__default.createElement("path", {
3187 d: "M14.78 5.917c-3.138 0-3.559 1.887-3.559 1.887l.004-1.874H6.99v11.648h4.236v-6.353s0-2.133 1.8-2.133c1.013 0 1.378.947 1.378 2.133v6.353h4.234v-6.353c0-3.315-1.441-5.308-3.857-5.308zM.637 17.577h4.219V5.918H.636v11.66zM2.747.638c-1.166 0-2.11.949-2.11 2.12 0 1.171.944 2.12 2.11 2.12 1.164 0 2.109-.949 2.109-2.12 0-1.171-.945-2.12-2.11-2.12z"
3188 }));
3189};
3190
3191LinkedinIcon.displayName = "LinkedinIcon";
3192LinkedinIcon.propTypes = {
3193 color: PropTypes__default.string,
3194 size: PropTypes__default.number.isRequired,
3195 children: PropTypes__default.node
3196};
3197LinkedinIcon.defaultProps = {
3198 color: themes.global.white.base,
3199 children: null
3200};
3201
3202var HeartIcon = function HeartIcon(_ref) {
3203 var size = _ref.size,
3204 children = _ref.children,
3205 opacity = _ref.opacity,
3206 color = _ref.color,
3207 props = _objectWithoutProperties(_ref, ["size", "children", "opacity", "color"]);
3208
3209 return React__default.createElement("svg", _extends({
3210 width: size,
3211 height: size,
3212 viewBox: "0 0 51.997 51.997",
3213 stroke: color,
3214 fill: color,
3215 fillOpacity: opacity
3216 }, props), children, React__default.createElement("path", {
3217 d: "M49.521,21.261c-0.984,4.172-3.265,7.973-6.59,10.985L25.855,47.481L9.072,32.25 c-3.331-3.018-5.611-6.818-6.596-10.99c-0.708-2.997-0.417-4.69-0.416-4.701l0.015-0.101C2.725,9.139,7.806,3.826,14.158,3.826 c4.687,0,8.813,2.88,10.771,7.515l0.921,2.183l0.921-2.183c1.927-4.564,6.271-7.514,11.069-7.514 c6.351,0,11.433,5.313,12.096,12.727C49.938,16.57,50.229,18.264,49.521,21.261z"
3218 }));
3219};
3220
3221HeartIcon.displayName = "HeartIcon";
3222HeartIcon.defaultProps = {
3223 children: null,
3224 color: "currentColor",
3225 opacity: 1
3226};
3227HeartIcon.propTypes = {
3228 size: PropTypes__default.number.isRequired,
3229 children: PropTypes__default.node,
3230 color: PropTypes__default.string,
3231 opacity: PropTypes__default.number
3232};
3233
3234var AppleIcon = function AppleIcon(_ref) {
3235 var color = _ref.color,
3236 size = _ref.size,
3237 children = _ref.children,
3238 props = _objectWithoutProperties(_ref, ["color", "size", "children"]);
3239
3240 return React__default.createElement("svg", _extends({}, props, {
3241 viewBox: "0 0 13 16",
3242 width: size,
3243 height: size,
3244 fill: color
3245 }), children, React__default.createElement("path", {
3246 d: "M10.41 8.703c-.018-1.969 1.584-2.927 1.658-2.972-.908-1.346-2.315-1.53-2.809-1.544-1.18-.127-2.326.72-2.928.72-.614 0-1.54-.708-2.538-.687-1.285.02-2.488.778-3.147 1.953-1.36 2.396-.345 5.918.957 7.855.653.949 1.414 2.009 2.412 1.971.976-.04 1.34-.633 2.518-.633 1.167 0 1.509.633 2.526.61 1.047-.018 1.706-.954 2.336-1.912.753-1.087 1.056-2.158 1.068-2.213-.025-.008-2.034-.788-2.053-3.148M9.49 2.415c.587-.646.988-1.523.877-2.415-.85.033-1.911.517-2.523 1.148-.542.556-1.025 1.468-.9 2.325.954.063 1.934-.424 2.546-1.058"
3247 }));
3248};
3249
3250AppleIcon.displayName = "AppleIcon";
3251AppleIcon.defaultProps = {
3252 color: themes.global.white.base,
3253 children: null
3254};
3255AppleIcon.propTypes = {
3256 color: PropTypes__default.string,
3257 size: PropTypes__default.number.isRequired,
3258 children: PropTypes__default.node
3259};
3260
3261var GooglePlayIcon = function GooglePlayIcon(_ref) {
3262 var size = _ref.size,
3263 props = _objectWithoutProperties(_ref, ["size"]);
3264
3265 return React__default.createElement("svg", _extends({}, props, {
3266 viewBox: "0 0 48 48",
3267 width: size,
3268 height: size
3269 }), React__default.createElement("g", null, React__default.createElement("path", {
3270 fill: "#4DB6AC",
3271 d: "M 7.703125 4.042969 C 7.292969 4.148438 7 4.507813 7 5.121094 C 7 6.921875 7 23.914063 7 23.914063 C 7 23.914063 7 42.28125 7 43.089844 C 7 43.535156 7.195313 43.835938 7.5 43.945313 L 27.679688 23.882813 Z "
3272 }), React__default.createElement("path", {
3273 fill: "#DCE775",
3274 d: "M 33.238281 18.359375 L 24.929688 13.5625 C 24.929688 13.5625 9.683594 4.761719 8.789063 4.242188 C 8.402344 4.019531 8.019531 3.960938 7.703125 4.042969 L 27.683594 23.882813 Z "
3275 }), React__default.createElement("path", {
3276 fill: "#D32F2F",
3277 d: "M 8.417969 43.800781 C 8.949219 43.492188 23.699219 34.976563 33.28125 29.445313 L 27.679688 23.882813 L 7.5 43.945313 C 7.746094 44.039063 8.066406 44.003906 8.417969 43.800781 Z "
3278 }), React__default.createElement("path", {
3279 fill: "#FBC02D",
3280 d: "M 41.398438 23.070313 C 40.601563 22.640625 33.296875 18.394531 33.296875 18.394531 L 33.238281 18.359375 L 27.679688 23.882813 L 33.28125 29.445313 C 37.714844 26.886719 41.042969 24.964844 41.339844 24.792969 C 42.285156 24.246094 42.195313 23.5 41.398438 23.070313 Z "
3281 })));
3282};
3283
3284GooglePlayIcon.displayName = "GooglePlayIcon";
3285GooglePlayIcon.defaultProps = {
3286 children: null
3287};
3288GooglePlayIcon.propTypes = {
3289 size: PropTypes__default.number.isRequired,
3290 children: PropTypes__default.node
3291};
3292
3293var _sizeMapper;
3294
3295var types = ["outline", "filled"];
3296var allSizes = ["small", "regular", "large"];
3297var smallLarge = ["small", "large"];
3298var xSmallLarge = ["xSmall", "small", "large"]; // for backward compatibility purpose
3299
3300var sizeMapper = (_sizeMapper = {}, _defineProperty(_sizeMapper, allSizes[0], 16), _defineProperty(_sizeMapper, allSizes[1], 24), _defineProperty(_sizeMapper, allSizes[2], 36), _sizeMapper);
3301
3302var errorIcons = {
3303 outline: {
3304 small: function small(color, children, props) {
3305 return React__default.createElement("svg", _extends({}, props, {
3306 xmlns: "http://www.w3.org/2000/svg",
3307 width: "18",
3308 height: "19",
3309 viewBox: "0 0 18 19"
3310 }), children, React__default.createElement("g", {
3311 fill: "none",
3312 fillRule: "evenodd"
3313 }, React__default.createElement("path", {
3314 d: "M0 0h18v19H0z"
3315 }), React__default.createElement("path", {
3316 fill: color,
3317 d: "M16.822 9.697a.274.274 0 0 0 0-.373l-7.636-8.06a.24.24 0 0 0-.353 0l-7.635 8.06a.274.274 0 0 0 0 .373l7.663 8.06a.24.24 0 0 0 .353-.001l7.608-8.059zm-6.81 8.897a1.324 1.324 0 0 1-1.945.004l-7.663-8.06a1.51 1.51 0 0 1-.001-2.054L8.037.425a1.324 1.324 0 0 1 1.945 0l7.635 8.06a1.51 1.51 0 0 1 .002 2.05l-7.608 8.059zm-1.002-3.74c.466 0 .843-.399.843-.89 0-.492-.377-.891-.843-.891-.466 0-.844.399-.844.89 0 .492.378.891.844.891zm0-2.969a.844.844 0 0 0 .843-.843V5.604a.844.844 0 0 0-1.688 0l.001 5.438c0 .466.378.843.844.843z"
3318 })));
3319 },
3320 regular: function regular(color, children, props) {
3321 return React__default.createElement("svg", _extends({}, props, {
3322 xmlns: "http://www.w3.org/2000/svg",
3323 width: "24",
3324 height: "25",
3325 viewBox: "0 0 24 25"
3326 }), children, React__default.createElement("g", {
3327 fill: "none",
3328 fillRule: "evenodd"
3329 }, React__default.createElement("path", {
3330 d: "M0 0h24v24H0z"
3331 }), React__default.createElement("path", {
3332 fill: color,
3333 d: "M22.585 12.969a.333.333 0 0 0 0-.471l-10.35-10.35a.333.333 0 0 0-.471 0L1.415 12.497a.333.333 0 0 0 0 .471l10.387 10.35c.13.13.341.13.471-.001l10.312-10.348zm-9.603 11.054a1.333 1.333 0 0 1-1.886.003L.71 13.676a1.334 1.334 0 0 1-.002-1.886L11.057 1.44c.52-.52 1.365-.52 1.885 0l10.35 10.35c.52.52.52 1.362.001 1.883L12.982 24.023zM12 19.733a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-4a1 1 0 0 0 1-1v-7a1 1 0 0 0-2 0v7a1 1 0 0 0 1 1z"
3334 })));
3335 },
3336 large: function large(color, children, props) {
3337 return React__default.createElement("svg", _extends({}, props, {
3338 xmlns: "http://www.w3.org/2000/svg",
3339 width: "36",
3340 height: "37",
3341 viewBox: "0 0 36 37"
3342 }), children, React__default.createElement("g", {
3343 fill: "none",
3344 fillRule: "evenodd"
3345 }, React__default.createElement("path", {
3346 d: "M0 0h36v36H0z"
3347 }), React__default.createElement("path", {
3348 fill: color,
3349 d: "M33.878 19.086a.5.5 0 0 0-.001-.706L18.353 2.856a.5.5 0 0 0-.707 0L2.123 18.379a.5.5 0 0 0 0 .707l15.58 15.524a.5.5 0 0 0 .707 0l15.468-15.524zm-14.76 16.229a1.5 1.5 0 0 1-2.12.004L1.417 19.795a1.5 1.5 0 0 1-.002-2.123L16.939 2.149a1.5 1.5 0 0 1 2.121 0l15.524 15.524a1.5 1.5 0 0 1 .002 2.12L19.118 35.314zM18 28.733a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0-6a1.5 1.5 0 0 0 1.5-1.5v-10a1.5 1.5 0 1 0-3 0v10a1.5 1.5 0 0 0 1.5 1.5z"
3350 })));
3351 }
3352 },
3353 filled: {
3354 small: function small(color, children, props) {
3355 return React__default.createElement("svg", _extends({}, props, {
3356 xmlns: "http://www.w3.org/2000/svg",
3357 width: "16",
3358 height: "16",
3359 viewBox: "0 0 16 16"
3360 }), children, React__default.createElement("g", {
3361 stroke: "none",
3362 strokeWidth: "1",
3363 fill: "none",
3364 fillRule: "evenodd"
3365 }, React__default.createElement("path", {
3366 fill: color,
3367 d: "M8.34056192,15.3697458 L15.3708695,8.31426719 C15.5439065,8.14061062 15.5436555,7.85963698 15.3703084,7.68628991 L8.31370757,0.629690129 C8.14014122,0.456123805 7.8587346,0.456123805 7.68516825,0.629690129 L0.629688686,7.68516868 C0.456122323,7.85873502 0.456122304,8.14014168 0.629688645,8.31370804 C0.629875197,8.31389459 0.630061915,8.31408098 0.630248799,8.3142672 L7.71202357,15.370869 C7.88589872,15.544126 8.16730493,15.5436249 8.34056193,15.3697497 C8.34056258,15.3697491 8.34056323,15.3697484 8.34056389,15.3697477 Z"
3368 }), React__default.createElement("ellipse", {
3369 fill: "#FFFFFF",
3370 cx: "7.99977025",
3371 cy: "11.7877222",
3372 rx: "1",
3373 ry: "1"
3374 }), React__default.createElement("path", {
3375 d: "M7.99977025,9.78245717 L7.99977025,9.78245717 C8.36892936,9.78245717 8.66819195,9.48319458 8.66819195,9.11403547 L8.66819195,4.65789107 C8.66819195,4.28873196 8.36892936,3.98946936 7.99977025,3.98946936 L7.99977025,3.98946936 C7.63061113,3.98946936 7.33134854,4.28873196 7.33134854,4.65789107 L7.33134854,9.11403547 C7.33134854,9.48319458 7.63061113,9.78245717 7.99977025,9.78245717 Z",
3376 fill: "#FFFFFF"
3377 })));
3378 },
3379 regular: function regular(color, children, props) {
3380 return React__default.createElement("svg", _extends({}, props, {
3381 xmlns: "http://www.w3.org/2000/svg",
3382 width: "24",
3383 height: "24",
3384 viewBox: "0 0 24 24"
3385 }), children, React__default.createElement("g", {
3386 stroke: "none",
3387 strokeWidth: "1",
3388 fill: "none",
3389 fillRule: "evenodd"
3390 }, React__default.createElement("path", {
3391 fill: color,
3392 d: "M12.5099477,22.7984661 L22.8001703,12.4714008 C23.0597259,12.210916 23.0593493,11.7894555 22.7993286,11.5294349 L12.4705801,1.20068785 C12.2102306,0.94033836 11.7881206,0.94033836 11.5277711,1.20068785 L1.2007044,11.5277531 C0.940354857,11.7881026 0.940354829,12.2102126 1.20070434,12.4705621 C1.20098417,12.4708419 1.20126424,12.4711215 1.20154457,12.4714008 L11.5671402,22.8001509 C11.8279529,23.0600364 12.2500623,23.0592847 12.5099478,22.798472 C12.5099487,22.798471 12.5099497,22.79847 12.5099507,22.7984691 Z"
3393 }), React__default.createElement("ellipse", {
3394 fill: "#FFFFFF",
3395 cx: "11.999663",
3396 cy: "17.5553259",
3397 rx: "1",
3398 ry: "1"
3399 }), React__default.createElement("path", {
3400 d: "M11.999663,14.6142705 L11.999663,14.6142705 C12.5410964,14.6142705 12.9800149,14.175352 12.9800149,13.6339187 L12.9800149,7.09824024 C12.9800149,6.55680687 12.5410964,6.1178884 11.999663,6.1178884 L11.999663,6.1178884 C11.4582297,6.1178884 11.0193112,6.55680687 11.0193112,7.09824024 L11.0193112,13.6339187 C11.0193112,14.175352 11.4582297,14.6142705 11.999663,14.6142705 Z",
3401 fill: "#FFFFFF"
3402 })));
3403 },
3404 large: function large(color, children, props) {
3405 return React__default.createElement("svg", _extends({}, props, {
3406 xmlns: "http://www.w3.org/2000/svg",
3407 width: "36",
3408 height: "37",
3409 viewBox: "0 0 36 37"
3410 }), children, React__default.createElement("g", {
3411 stroke: "none",
3412 strokeWidth: "1",
3413 fill: "none",
3414 fillRule: "evenodd"
3415 }, React__default.createElement("path", {
3416 fill: color,
3417 d: "M18.7666212,35.2693392 L34.5395771,19.4399097 C34.9289104,19.0491824 34.9283455,18.4169918 34.5383146,18.0269608 L18.706361,2.1950086 C18.3158367,1.80448435 17.6826717,1.80448435 17.2921475,2.1950086 L1.46271661,18.0244381 C1.07219231,18.4149624 1.07219228,19.0481273 1.46271656,19.4386516 C1.46313629,19.4390714 1.46355639,19.4394907 1.46397687,19.4399097 L17.3524099,35.2718665 C17.743629,35.6616947 18.376793,35.6605672 18.7666213,35.2693481 C18.7666227,35.2693467 18.7666242,35.2693452 18.7666257,35.2693437 Z"
3418 }), React__default.createElement("circle", {
3419 fill: "#FFFFFF",
3420 cx: "18",
3421 cy: "27.2328071",
3422 r: "1.5"
3423 }), React__default.createElement("path", {
3424 d: "M18,22.7328071 L18,22.7328071 C18.8284271,22.7328071 19.5,22.0612343 19.5,21.2328071 L19.5,11.2328071 C19.5,10.40438 18.8284271,9.73280715 18,9.73280715 L18,9.73280715 C17.1715729,9.73280715 16.5,10.40438 16.5,11.2328071 L16.5,21.2328071 C16.5,22.0612343 17.1715729,22.7328071 18,22.7328071 Z",
3425 fill: "#FFFFFF"
3426 })));
3427 }
3428 }
3429};
3430
3431var ErrorIcon = function ErrorIcon(_ref) {
3432 var color = _ref.color,
3433 type = _ref.type,
3434 size = _ref.size,
3435 children = _ref.children,
3436 props = _objectWithoutProperties(_ref, ["color", "type", "size", "children"]);
3437
3438 return errorIcons[type][size](color, children, props);
3439};
3440
3441ErrorIcon.displayName = "ErrorIcon";
3442ErrorIcon.defaultProps = {
3443 size: allSizes[0],
3444 type: types[0],
3445 children: null,
3446 color: themes.global.error.base
3447};
3448ErrorIcon.propTypes = {
3449 size: PropTypes.oneOf(allSizes),
3450 type: PropTypes.oneOf(types),
3451 children: PropTypes.node,
3452 color: PropTypes.string
3453};
3454
3455var alertIcons = {
3456 outline: {
3457 small: function small(color, children, props) {
3458 return React__default.createElement("svg", _extends({}, props, {
3459 xmlns: "http://www.w3.org/2000/svg",
3460 width: "16",
3461 height: "16",
3462 viewBox: "0 0 16 16"
3463 }), children, React__default.createElement("g", {
3464 fill: "none",
3465 fillRule: "evenodd"
3466 }, React__default.createElement("path", {
3467 d: "M0 0h16v16H0z"
3468 }), React__default.createElement("path", {
3469 fill: color,
3470 d: "M1.968 12.524a.384.384 0 0 0-.055.198.4.4 0 0 0 .405.393h11.364a.415.415 0 0 0 .204-.053.387.387 0 0 0 .146-.538L8.35 3.08a.413.413 0 0 0-.7 0l-5.682 9.444zm-.788-.446L6.86 2.634a1.341 1.341 0 0 1 1.803-.46c.196.111.36.27.474.46l5.682 9.444c.367.61.155 1.392-.474 1.748a1.35 1.35 0 0 1-.664.174H2.318C1.59 14 1 13.428 1 12.722c0-.226.062-.449.18-.644zM8 11.831a.685.685 0 1 0 0-1.37.685.685 0 0 0 0 1.37zm0-2.255a.684.684 0 0 0 .684-.684v-2.17a.684.684 0 1 0-1.369 0v2.17c0 .378.307.684.685.684z"
3471 })));
3472 },
3473 regular: function regular(color, children, props) {
3474 return React__default.createElement("svg", _extends({}, props, {
3475 xmlns: "http://www.w3.org/2000/svg",
3476 width: "24",
3477 height: "24",
3478 viewBox: "0 0 24 24"
3479 }), children, React__default.createElement("g", {
3480 fill: "none",
3481 fillRule: "evenodd"
3482 }, React__default.createElement("path", {
3483 d: "M0 0h24v24H0z"
3484 }), React__default.createElement("path", {
3485 fill: color,
3486 d: "M2.041 19.13a.612.612 0 0 0-.085.313.63.63 0 0 0 .637.623h18.814a.648.648 0 0 0 .32-.084.615.615 0 0 0 .231-.851L12.551 3.245a.645.645 0 0 0-1.103 0L2.042 19.131zm-.827-.467l9.407-15.886a1.613 1.613 0 0 1 2.757 0l9.407 15.886c.441.744.181 1.697-.58 2.127a1.62 1.62 0 0 1-.798.21H2.593C1.713 21 1 20.303 1 19.443c0-.274.074-.543.214-.78zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-4a1 1 0 0 0 1-1V8.5a1 1 0 0 0-2 0V13a1 1 0 0 0 1 1z"
3487 })));
3488 },
3489 large: function large(color, children, props) {
3490 return React__default.createElement("svg", _extends({}, props, {
3491 xmlns: "http://www.w3.org/2000/svg",
3492 width: "36",
3493 height: "36",
3494 viewBox: "0 0 36 36"
3495 }), children, React__default.createElement("g", {
3496 fill: "none",
3497 fillRule: "evenodd"
3498 }, React__default.createElement("path", {
3499 d: "M0 0h36v36H0z"
3500 }), React__default.createElement("path", {
3501 fill: color,
3502 d: "M2.111 30.88a.957.957 0 0 0-.127.478c0 .535.44.969.983.969h30.066c.17 0 .337-.044.484-.126a.96.96 0 0 0 .371-1.32L18.856 4.754a.992.992 0 0 0-1.711 0L2.11 30.88zm-.855-.477L16.288 4.278a1.983 1.983 0 0 1 3.423 0l15.033 26.125c.536.93.204 2.113-.742 2.64a1.99 1.99 0 0 1-.97.252H2.968C1.881 33.295 1 32.428 1 31.358c0-.335.088-.664.256-.955zM18 29.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0-4.908a1.5 1.5 0 0 0 1.5-1.5V13.5a1.5 1.5 0 0 0-3 0v9.592a1.5 1.5 0 0 0 1.5 1.5z"
3503 })));
3504 }
3505 },
3506 filled: {
3507 small: function small(color, children, props) {
3508 return React__default.createElement("svg", _extends({}, props, {
3509 xmlns: "http://www.w3.org/2000/svg",
3510 width: "16",
3511 height: "16",
3512 viewBox: "0 0 16 16"
3513 }), children, React__default.createElement("g", {
3514 stroke: "none",
3515 strokeWidth: "1",
3516 fill: "none",
3517 fillRule: "evenodd"
3518 }, React__default.createElement("path", {
3519 fill: color,
3520 d: "M1.04970329,13.3297652 L7.61714411,2.19495085 C7.7418447,1.98352635 8.01432793,1.91322273 8.22575243,2.03792332 C8.29053904,2.0761352 8.34456808,2.13016424 8.38277997,2.19495085 L14.9502208,13.3297652 C15.0749214,13.5411897 15.0046178,13.8136729 14.7931933,13.9383735 C14.7247876,13.9787199 14.6468206,14 14.5674029,14 L1.43252122,14 C1.18706133,14 0.988076773,13.8010154 0.988076773,13.5555556 C0.988076773,13.4761379 1.00935685,13.3981708 1.04970329,13.3297652 Z"
3521 }), React__default.createElement("ellipse", {
3522 fill: "#FFFFFF",
3523 cx: "7.99996204",
3524 cy: "11.6648562",
3525 rx: "1",
3526 ry: "1"
3527 }), React__default.createElement("path", {
3528 d: "M7.99996204,9.84863316 L7.99996204,9.84863316 C8.4346242,9.84863316 8.7869875,9.49626986 8.7869875,9.0616077 L8.7869875,6.48429177 C8.7869875,6.04962962 8.4346242,5.69726632 7.99996204,5.69726632 L7.99996204,5.69726632 C7.56529988,5.69726632 7.21293658,6.04962962 7.21293658,6.48429177 L7.21293658,9.0616077 C7.21293658,9.49626986 7.56529988,9.84863316 7.99996204,9.84863316 Z",
3529 fill: "#FFFFFF"
3530 })));
3531 },
3532 regular: function regular(color, children, props) {
3533 return React__default.createElement("svg", _extends({}, props, {
3534 xmlns: "http://www.w3.org/2000/svg",
3535 width: "24",
3536 height: "24",
3537 viewBox: "0 0 24 24"
3538 }), children, React__default.createElement("g", {
3539 stroke: "none",
3540 strokeWidth: "1",
3541 fill: "none",
3542 fillRule: "evenodd"
3543 }, React__default.createElement("path", {
3544 fill: color,
3545 d: "M1.07417114,19.9968129 L11.4244437,2.29635624 C11.6102988,1.97851724 12.0186236,1.87152316 12.3364626,2.05737827 C12.4353263,2.11518846 12.5176304,2.19749248 12.5754406,2.29635624 L22.9257131,19.9968129 C23.1115683,20.3146519 23.0045742,20.7229766 22.6867352,20.9088318 C22.5846348,20.9685345 22.4684894,21 22.3502147,21 L1.64966956,21 C1.28147973,21 0.983002892,20.7015232 0.983002892,20.3333333 C0.983002892,20.2150587 1.01446838,20.0989132 1.07417114,19.9968129 Z"
3546 }), React__default.createElement("ellipse", {
3547 fill: "#FFFFFF",
3548 cx: "11.9999421",
3549 cy: "17.6145298",
3550 rx: "1.04658007",
3551 ry: "1.03620152"
3552 }), React__default.createElement("path", {
3553 d: "M11.9999421,14.5237405 L11.9999421,14.5237405 C12.5779523,14.5237405 13.0465222,14.0551706 13.0465222,13.4771604 L13.0465222,8.31690989 C13.0465222,7.73889968 12.5779523,7.27032982 11.9999421,7.27032982 L11.9999421,7.27032982 C11.4219319,7.27032982 10.9533621,7.73889968 10.9533621,8.31690989 L10.9533621,13.4771604 C10.9533621,14.0551706 11.4219319,14.5237405 11.9999421,14.5237405 Z",
3554 fill: "#FFFFFF"
3555 })));
3556 },
3557 large: function large(color, children, props) {
3558 return React__default.createElement("svg", _extends({}, props, {
3559 xmlns: "http://www.w3.org/2000/svg",
3560 width: "36",
3561 height: "36",
3562 viewBox: "0 0 36 36"
3563 }), children, React__default.createElement("g", {
3564 stroke: "none",
3565 strokeWidth: "1",
3566 fill: "none",
3567 fillRule: "evenodd"
3568 }, React__default.createElement("path", {
3569 fill: color,
3570 d: "M1.10716259,31.5039407 L17.1316203,3.45516883 C17.4055863,2.97562625 18.0164257,2.80897351 18.4959683,3.0829395 C18.6510617,3.17154546 18.7795916,3.30007539 18.8681976,3.45516883 L34.8926553,31.5039407 C35.1666213,31.9834833 34.9999685,32.5943226 34.520426,32.8682886 C34.3693473,32.9546009 34.1983625,33 34.0243667,33 L1.97545123,33 C1.42316648,33 0.975451229,32.5522847 0.975451229,32 C0.975451229,31.8260042 1.02085033,31.6550193 1.10716259,31.5039407 Z"
3571 }), React__default.createElement("ellipse", {
3572 fill: "#FFFFFF",
3573 cx: "17.9999089",
3574 cy: "28.340301",
3575 rx: "1.56595195",
3576 ry: "1.55323299"
3577 }), React__default.createElement("path", {
3578 d: "M17.9999089,24.7160907 L17.9999089,24.7160907 C18.8647603,24.7160907 19.5658609,24.0149901 19.5658609,23.1501388 L19.5658609,12.8206901 C19.5658609,11.9558387 18.8647603,11.2547381 17.9999089,11.2547381 L17.9999089,11.2547381 C17.1350576,11.2547381 16.433957,11.9558387 16.433957,12.8206901 L16.433957,23.1501388 C16.433957,24.0149901 17.1350576,24.7160907 17.9999089,24.7160907 Z",
3579 fill: "#FFFFFF"
3580 })));
3581 }
3582 }
3583};
3584
3585var AlertIcon = function AlertIcon(_ref) {
3586 var color = _ref.color,
3587 type = _ref.type,
3588 size = _ref.size,
3589 children = _ref.children,
3590 props = _objectWithoutProperties(_ref, ["color", "type", "size", "children"]);
3591
3592 return alertIcons[type][size](color, children, props);
3593};
3594
3595AlertIcon.displayName = "AlertIcon";
3596AlertIcon.defaultProps = {
3597 type: types[0],
3598 size: allSizes[0],
3599 children: null,
3600 color: themes.global.caution.base
3601};
3602AlertIcon.propTypes = {
3603 type: PropTypes.oneOf(types),
3604 size: PropTypes.oneOf(allSizes),
3605 children: PropTypes.node,
3606 color: PropTypes.string
3607};
3608
3609var successIcons = {
3610 outline: {
3611 small: function small(color, children, props) {
3612 return React__default.createElement("svg", _extends({}, props, {
3613 xmlns: "http://www.w3.org/2000/svg",
3614 width: "16",
3615 height: "16",
3616 viewBox: "0 0 16 16"
3617 }), children, React__default.createElement("g", {
3618 fill: "none",
3619 fillRule: "evenodd"
3620 }, React__default.createElement("path", {
3621 d: "M0 0h16v16H0z"
3622 }), React__default.createElement("path", {
3623 fill: color,
3624 d: "M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm0 1A7 7 0 1 1 8 1a7 7 0 0 1 0 14zM6.537 9.738l4.242-4.243a.667.667 0 1 1 .943.943l-4.714 4.714a.667.667 0 0 1-.943 0l-2.37-2.37a.667.667 0 0 1 .943-.943l1.899 1.899z"
3625 })));
3626 },
3627 regular: function regular(color, children, props) {
3628 return React__default.createElement("svg", _extends({}, props, {
3629 xmlns: "http://www.w3.org/2000/svg",
3630 width: "24",
3631 height: "24",
3632 viewBox: "0 0 24 24"
3633 }), children, React__default.createElement("g", {
3634 fill: "none",
3635 fillRule: "evenodd"
3636 }, React__default.createElement("path", {
3637 d: "M0 0h24v24H0z"
3638 }), React__default.createElement("path", {
3639 fill: color,
3640 d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0 1C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm-1.758-8.343l6.364-6.364a1 1 0 0 1 1.414 1.414l-7.071 7.071a1 1 0 0 1-1.414 0L5.98 13.223a1 1 0 0 1 1.414-1.414l2.848 2.848z"
3641 })));
3642 },
3643 large: function large(color, children, props) {
3644 return React__default.createElement("svg", _extends({}, props, {
3645 xmlns: "http://www.w3.org/2000/svg",
3646 width: "36",
3647 height: "36",
3648 viewBox: "0 0 36 36"
3649 }), children, React__default.createElement("g", {
3650 fill: "none",
3651 fillRule: "evenodd"
3652 }, React__default.createElement("path", {
3653 d: "M0 0h36v36H0z"
3654 }), React__default.createElement("path", {
3655 fill: color,
3656 d: "M18 34c8.837 0 16-7.163 16-16S26.837 2 18 2 2 9.163 2 18s7.163 16 16 16zm0 1C8.611 35 1 27.389 1 18S8.611 1 18 1s17 7.611 17 17-7.611 17-17 17zm-2.637-12.818l9.546-9.546a1.5 1.5 0 1 1 2.121 2.121L16.424 25.364a1.5 1.5 0 0 1-2.122 0L8.97 20.032a1.5 1.5 0 1 1 2.121-2.122l4.272 4.272z"
3657 })));
3658 }
3659 },
3660 filled: {
3661 small: function small(color, children, props) {
3662 return React__default.createElement("svg", _extends({}, props, {
3663 xmlns: "http://www.w3.org/2000/svg",
3664 width: "16",
3665 height: "16",
3666 viewBox: "0 0 16 16"
3667 }), children, React__default.createElement("g", {
3668 stroke: "none",
3669 strokeWidth: "1",
3670 fill: "none",
3671 fillRule: "evenodd"
3672 }, React__default.createElement("circle", {
3673 fill: color,
3674 cx: "8",
3675 cy: "8",
3676 r: "7"
3677 }), React__default.createElement("path", {
3678 d: "M8.9939295,9.65146578 L8.9939295,3.65146578 C8.9939295,3.28327594 9.29240634,2.98479911 9.66059617,2.98479911 C10.028786,2.98479911 10.3272628,3.28327594 10.3272628,3.65146578 L10.3272628,10.3181324 C10.3272628,10.6863223 10.028786,10.9847991 9.66059617,10.9847991 L6.30900205,10.9847991 C5.94081222,10.9847991 5.64233538,10.6863223 5.64233538,10.3181324 C5.64233538,9.94994261 5.94081222,9.65146578 6.30900205,9.65146578 L8.9939295,9.65146578 Z",
3679 fill: "#FFFFFF",
3680 transform: "translate(7.984799, 6.984799) rotate(45.000000) translate(-7.984799, -6.984799) "
3681 })));
3682 },
3683 regular: function regular(color, children, props) {
3684 return React__default.createElement("svg", _extends({}, props, {
3685 xmlns: "http://www.w3.org/2000/svg",
3686 width: "24",
3687 height: "24",
3688 viewBox: "0 0 24 24"
3689 }), children, React__default.createElement("g", {
3690 stroke: "none",
3691 strokeWidth: "1",
3692 fill: "none",
3693 fillRule: "evenodd"
3694 }, React__default.createElement("circle", {
3695 fill: color,
3696 cx: "12",
3697 cy: "12",
3698 r: "11"
3699 }), React__default.createElement("path", {
3700 d: "M13.7212986,14.7175144 L13.7212986,5.71751442 C13.7212986,5.16522967 14.1672688,4.71751442 14.7174008,4.71751442 C15.2675329,4.71751442 15.7135031,5.16522967 15.7135031,5.71751442 L15.7135031,15.7175144 C15.7135031,16.2697992 15.2675329,16.7175144 14.7174008,16.7175144 L9.7096053,16.7175144 C9.15947323,16.7175144 8.71350308,16.2697992 8.71350308,15.7175144 C8.71350308,15.1652297 9.15947323,14.7175144 9.7096053,14.7175144 L13.7212986,14.7175144 Z",
3701 fill: "#FFFFFF",
3702 transform: "translate(12.213503, 10.717514) rotate(45.000000) translate(-12.213503, -10.717514) "
3703 })));
3704 },
3705 large: function large(color, children, props) {
3706 return React__default.createElement("svg", _extends({}, props, {
3707 xmlns: "http://www.w3.org/2000/svg",
3708 width: "36",
3709 height: "36",
3710 viewBox: "0 0 36 36"
3711 }), children, React__default.createElement("g", {
3712 stroke: "none",
3713 strokeWidth: "1",
3714 fill: "none",
3715 fillRule: "evenodd"
3716 }, React__default.createElement("circle", {
3717 fill: color,
3718 cx: "18",
3719 cy: "18",
3720 r: "17"
3721 }), React__default.createElement("path", {
3722 d: "M20.6224413,22.2530483 L20.6224413,8.75304833 C20.6224413,7.9246212 21.3232516,7.25304833 22.1877448,7.25304833 C23.0522381,7.25304833 23.7530483,7.9246212 23.7530483,8.75304833 L23.7530483,23.7530483 C23.7530483,24.5814755 23.0522381,25.2530483 22.1877448,25.2530483 L14.3183518,25.2530483 C13.4538586,25.2530483 12.7530483,24.5814755 12.7530483,23.7530483 C12.7530483,22.9246212 13.4538586,22.2530483 14.3183518,22.2530483 L20.6224413,22.2530483 Z",
3723 fill: "#FFFFFF",
3724 transform: "translate(18.253048, 16.253048) rotate(45.000000) translate(-18.253048, -16.253048) "
3725 })));
3726 }
3727 }
3728};
3729
3730var SuccessIcon = function SuccessIcon(_ref) {
3731 var color = _ref.color,
3732 type = _ref.type,
3733 size = _ref.size,
3734 children = _ref.children,
3735 props = _objectWithoutProperties(_ref, ["color", "type", "size", "children"]);
3736
3737 return successIcons[type][size](color, children, props);
3738};
3739
3740SuccessIcon.displayName = "SuccessIcon";
3741SuccessIcon.defaultProps = {
3742 type: types[0],
3743 size: allSizes[0],
3744 children: null,
3745 color: themes.global.success.base
3746};
3747SuccessIcon.propTypes = {
3748 type: PropTypes.oneOf(types),
3749 size: PropTypes.oneOf(allSizes),
3750 children: PropTypes.node,
3751 color: PropTypes.string
3752};
3753
3754var infoIcons = {
3755 outline: {
3756 small: function small(color, children, props) {
3757 return React__default.createElement("svg", _extends({}, props, {
3758 xmlns: "http://www.w3.org/2000/svg",
3759 width: "16",
3760 height: "16",
3761 viewBox: "0 0 16 16"
3762 }), children, React__default.createElement("g", {
3763 fill: "none",
3764 fillRule: "evenodd"
3765 }, React__default.createElement("path", {
3766 d: "M0 0h16v16H0z"
3767 }), React__default.createElement("path", {
3768 fill: color,
3769 d: "M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm0 1A7 7 0 1 1 8 1a7 7 0 0 1 0 14zM8 5a.75.75 0 1 0 0-1.5A.75.75 0 0 0 8 5zm0 7.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 0 0-1.5 0v4.5c0 .414.336.75.75.75z"
3770 })));
3771 },
3772 regular: function regular(color, children, props) {
3773 return React__default.createElement("svg", _extends({}, props, {
3774 xmlns: "http://www.w3.org/2000/svg",
3775 width: "24",
3776 height: "24",
3777 viewBox: "0 0 24 24"
3778 }), children, React__default.createElement("g", {
3779 fill: "none",
3780 fillRule: "evenodd"
3781 }, React__default.createElement("path", {
3782 d: "M0 0h24v24H0z"
3783 }), React__default.createElement("path", {
3784 fill: color,
3785 d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0 1C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm0-15.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM12 18a1 1 0 0 0 1-1v-7a1 1 0 0 0-2 0v7a1 1 0 0 0 1 1z"
3786 })));
3787 },
3788 large: function large(color, children, props) {
3789 return React__default.createElement("svg", _extends({}, props, {
3790 xmlns: "http://www.w3.org/2000/svg",
3791 width: "36",
3792 height: "36",
3793 viewBox: "0 0 36 36"
3794 }), children, React__default.createElement("g", {
3795 fill: "none",
3796 fillRule: "evenodd"
3797 }, React__default.createElement("path", {
3798 d: "M0 0h36v36H0z"
3799 }), React__default.createElement("path", {
3800 fill: color,
3801 d: "M18 34c8.837 0 16-7.163 16-16S26.837 2 18 2 2 9.163 2 18s7.163 16 16 16zm0 1C8.611 35 1 27.389 1 18S8.611 1 18 1s17 7.611 17 17-7.611 17-17 17zm0-24a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 17a1.5 1.5 0 0 0 1.5-1.5v-11a1.5 1.5 0 0 0-3 0v11A1.5 1.5 0 0 0 18 28z"
3802 })));
3803 }
3804 },
3805 filled: {
3806 small: function small(color, children, props) {
3807 return React__default.createElement("svg", _extends({}, props, {
3808 xmlns: "http://www.w3.org/2000/svg",
3809 width: "16",
3810 height: "16",
3811 viewBox: "0 0 16 16"
3812 }), children, React__default.createElement("g", {
3813 stroke: "none",
3814 strokeWidth: "1",
3815 fill: "none",
3816 fillRule: "evenodd"
3817 }, React__default.createElement("circle", {
3818 fill: color,
3819 cx: "8",
3820 cy: "8",
3821 r: "7"
3822 }), React__default.createElement("circle", {
3823 fill: "#FFFFFF",
3824 cx: "8",
3825 cy: "4.25",
3826 r: "1"
3827 }), React__default.createElement("path", {
3828 d: "M8,12.5 L8,12.5 C8.41421356,12.5 8.75,12.1642136 8.75,11.75 L8.75,7.25 C8.75,6.83578644 8.41421356,6.5 8,6.5 L8,6.5 C7.58578644,6.5 7.25,6.83578644 7.25,7.25 L7.25,11.75 C7.25,12.1642136 7.58578644,12.5 8,12.5 Z",
3829 fill: "#FFFFFF"
3830 })));
3831 },
3832 regular: function regular(color, children, props) {
3833 return React__default.createElement("svg", _extends({}, props, {
3834 xmlns: "http://www.w3.org/2000/svg",
3835 width: "24",
3836 height: "24",
3837 viewBox: "0 0 24 24"
3838 }), children, React__default.createElement("g", {
3839 stroke: "none",
3840 strokeWidth: "1",
3841 fill: "none",
3842 fillRule: "evenodd"
3843 }, React__default.createElement("circle", {
3844 fill: color,
3845 cx: "12",
3846 cy: "12",
3847 r: "11"
3848 }), React__default.createElement("circle", {
3849 fill: "#FFFFFF",
3850 cx: "12",
3851 cy: "6.25",
3852 r: "1"
3853 }), React__default.createElement("path", {
3854 d: "M12,18 L12,18 C12.5522847,18 13,17.5522847 13,17 L13,10 C13,9.44771525 12.5522847,9 12,9 L12,9 C11.4477153,9 11,9.44771525 11,10 L11,17 C11,17.5522847 11.4477153,18 12,18 Z",
3855 fill: "#FFFFFF"
3856 })));
3857 },
3858 large: function large(color, children, props) {
3859 return React__default.createElement("svg", _extends({}, props, {
3860 xmlns: "http://www.w3.org/2000/svg",
3861 width: "36",
3862 height: "36",
3863 viewBox: "0 0 36 36"
3864 }), children, React__default.createElement("g", {
3865 stroke: "none",
3866 strokeWidth: "1",
3867 fill: "none",
3868 fillRule: "evenodd"
3869 }, React__default.createElement("circle", {
3870 fill: color,
3871 cx: "18",
3872 cy: "18",
3873 r: "17"
3874 }), React__default.createElement("circle", {
3875 fill: "#FFFFFF",
3876 cx: "18",
3877 cy: "9.5",
3878 r: "1.5"
3879 }), React__default.createElement("path", {
3880 d: "M18,28 L18,28 C18.8284271,28 19.5,27.3284271 19.5,26.5 L19.5,15.5 C19.5,14.6715729 18.8284271,14 18,14 L18,14 C17.1715729,14 16.5,14.6715729 16.5,15.5 L16.5,26.5 C16.5,27.3284271 17.1715729,28 18,28 Z",
3881 fill: "#FFFFFF"
3882 })));
3883 }
3884 }
3885};
3886
3887var InfoIcon = function InfoIcon(_ref) {
3888 var color = _ref.color,
3889 type = _ref.type,
3890 size = _ref.size,
3891 children = _ref.children,
3892 props = _objectWithoutProperties(_ref, ["color", "type", "size", "children"]);
3893
3894 return infoIcons[type][size](color, children, props);
3895};
3896
3897InfoIcon.displayName = "InfoIcon";
3898InfoIcon.defaultProps = {
3899 type: types[0],
3900 size: allSizes[0],
3901 children: null,
3902 color: themes.global.primary.base
3903};
3904InfoIcon.propTypes = {
3905 type: PropTypes.oneOf(types),
3906 size: PropTypes.oneOf(allSizes),
3907 children: PropTypes.node,
3908 color: PropTypes.string
3909};
3910
3911var infoDotIcon = {
3912 small: function small(color, children, props) {
3913 return React__default.createElement("svg", _extends({}, props, {
3914 xmlns: "http://www.w3.org/2000/svg",
3915 width: "16",
3916 height: "16",
3917 viewBox: "0 0 16 16"
3918 }), children, React__default.createElement("g", {
3919 fill: "none",
3920 fillRule: "evenodd"
3921 }, React__default.createElement("path", {
3922 d: "M0 0h16v16H0z"
3923 }), React__default.createElement("path", _extends({
3924 fill: color
3925 }, color !== "currentColor" && {
3926 fillOpacity: ".65"
3927 }, {
3928 d: "M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm0 1A7 7 0 1 1 8 1a7 7 0 0 1 0 14zM8 5a.75.75 0 1 0 0-1.5A.75.75 0 0 0 8 5zm0 7.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 0 0-1.5 0v4.5c0 .414.336.75.75.75z"
3929 }))));
3930 },
3931 regular: function regular(color, children, props) {
3932 return React__default.createElement("svg", _extends({}, props, {
3933 xmlns: "http://www.w3.org/2000/svg",
3934 width: "24",
3935 height: "24",
3936 viewBox: "0 0 24 24"
3937 }), children, React__default.createElement("g", {
3938 fill: "none",
3939 fillRule: "evenodd"
3940 }, React__default.createElement("path", {
3941 d: "M0 0h24v24H0z"
3942 }), React__default.createElement("path", _extends({
3943 fill: color
3944 }, color !== "currentColor" && {
3945 fillOpacity: ".65"
3946 }, {
3947 d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0 1C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm0-15.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM12 18a1 1 0 0 0 1-1v-7a1 1 0 0 0-2 0v7a1 1 0 0 0 1 1z"
3948 }))));
3949 },
3950 large: function large(color, children, props) {
3951 return React__default.createElement("svg", _extends({}, props, {
3952 xmlns: "http://www.w3.org/2000/svg",
3953 width: "36",
3954 height: "36",
3955 viewBox: "0 0 36 36"
3956 }), children, React__default.createElement("g", {
3957 fill: "none",
3958 fillRule: "evenodd"
3959 }, React__default.createElement("path", {
3960 d: "M0 0h36v36H0z"
3961 }), React__default.createElement("path", _extends({
3962 fill: color
3963 }, color !== "currentColor" && {
3964 fillOpacity: ".65"
3965 }, {
3966 d: "M18 34c8.837 0 16-7.163 16-16S26.837 2 18 2 2 9.163 2 18s7.163 16 16 16zm0 1C8.611 35 1 27.389 1 18S8.611 1 18 1s17 7.611 17 17-7.611 17-17 17zm0-24a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 17a1.5 1.5 0 0 0 1.5-1.5v-11a1.5 1.5 0 0 0-3 0v11A1.5 1.5 0 0 0 18 28z"
3967 }))));
3968 }
3969};
3970
3971var InfoDotIcon = function InfoDotIcon(_ref) {
3972 var size = _ref.size,
3973 color = _ref.color,
3974 children = _ref.children,
3975 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
3976
3977 return infoDotIcon[size] ? infoDotIcon[size](color, children, props) : null;
3978};
3979
3980InfoDotIcon.displayName = "InfoDotIcon";
3981InfoDotIcon.defaultProps = {
3982 size: allSizes[0],
3983 children: null,
3984 color: themes.global.gray01
3985};
3986InfoDotIcon.propTypes = {
3987 size: PropTypes.oneOf(allSizes),
3988 children: PropTypes.node,
3989 color: PropTypes.string
3990};
3991
3992var backIcons = {
3993 xSmall: function xSmall(color, children, props) {
3994 return React__default.createElement("svg", _extends({}, props, {
3995 xmlns: "http://www.w3.org/2000/svg",
3996 width: "12",
3997 height: "12",
3998 viewBox: "0 0 12 12"
3999 }), children, React__default.createElement("g", {
4000 fill: "none",
4001 fillRule: "evenodd",
4002 transform: "translate(-.2 -.867)"
4003 }, React__default.createElement("rect", {
4004 width: "12",
4005 height: "12",
4006 y: "1",
4007 rx: "1"
4008 }), React__default.createElement("path", _extends({
4009 fill: color
4010 }, color !== "currentColor" && {
4011 fillOpacity: ".65"
4012 }, {
4013 fillRule: "nonzero",
4014 d: "M8.301 10.453a.75.75 0 1 1-1.056 1.065L3.222 7.533a.75.75 0 0 1 0-1.066l4.01-3.972A.75.75 0 0 1 8.288 3.56L4.816 7 8.3 10.453z"
4015 }))));
4016 },
4017 small: function small(color, children, props) {
4018 return React__default.createElement("svg", _extends({}, props, {
4019 xmlns: "http://www.w3.org/2000/svg",
4020 width: "16",
4021 height: "16",
4022 viewBox: "0 0 16 16"
4023 }), children, React__default.createElement("g", {
4024 fill: "none",
4025 fillRule: "evenodd"
4026 }, React__default.createElement("path", {
4027 d: "M15.8.133h-16v16h16z"
4028 }), React__default.createElement("path", _extends({
4029 fill: color
4030 }, color !== "currentColor" && {
4031 fillOpacity: ".65"
4032 }, {
4033 fillRule: "nonzero",
4034 d: "M10.32 12.857a.75.75 0 0 1-1.062 1.057l-5.24-5.263a.75.75 0 0 1 0-1.059L9.26 2.354a.75.75 0 0 1 1.06 1.06l-4.711 4.71 4.712 4.733z"
4035 }))));
4036 },
4037 large: function large(color, children, props) {
4038 return React__default.createElement("svg", _extends({}, props, {
4039 xmlns: "http://www.w3.org/2000/svg",
4040 width: "24",
4041 height: "24",
4042 viewBox: "0 0 24 24"
4043 }), children, React__default.createElement("g", {
4044 fill: "none",
4045 fillRule: "evenodd"
4046 }, React__default.createElement("path", {
4047 d: "M24 0H0v24h24z"
4048 }), React__default.createElement("path", _extends({
4049 fill: color
4050 }, color !== "currentColor" && {
4051 fillOpacity: ".65"
4052 }, {
4053 fillRule: "nonzero",
4054 d: "M10.773 20.738a.75.75 0 0 1-1.106 1.013L1.197 12.5a.75.75 0 0 1 0-1.013l8.47-9.243a.75.75 0 1 1 1.106 1.014l-8.006 8.736 8.006 8.745z"
4055 }))));
4056 }
4057};
4058
4059var BackIcon = function BackIcon(_ref) {
4060 var size = _ref.size,
4061 color = _ref.color,
4062 children = _ref.children,
4063 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4064
4065 return backIcons[size](color, children, props);
4066};
4067
4068BackIcon.displayName = "BackIcon";
4069BackIcon.defaultProps = {
4070 size: xSmallLarge[1],
4071 children: null,
4072 color: themes.global.gray01
4073};
4074BackIcon.propTypes = {
4075 size: PropTypes.oneOf(xSmallLarge),
4076 children: PropTypes.node,
4077 color: PropTypes.string
4078};
4079
4080var forwardIcons = {
4081 xSmall: function xSmall(color, children, props) {
4082 return React__default.createElement("svg", _extends({}, props, {
4083 xmlns: "http://www.w3.org/2000/svg",
4084 width: "12",
4085 height: "12",
4086 viewBox: "0 0 12 12"
4087 }), children, React__default.createElement("g", {
4088 fill: "none",
4089 fillRule: "evenodd",
4090 transform: "translate(-.2 -.867)"
4091 }, React__default.createElement("rect", {
4092 width: "12",
4093 height: "12",
4094 y: "1",
4095 rx: "1"
4096 }), React__default.createElement("path", _extends({
4097 fill: color
4098 }, color !== "currentColor" && {
4099 fillOpacity: ".65"
4100 }, {
4101 fillRule: "nonzero",
4102 d: "M3.726 10.446a.75.75 0 1 0 1.055 1.066l4.024-3.986a.75.75 0 0 0 0-1.065l-4.01-3.973a.75.75 0 0 0-1.056 1.066l3.472 3.44-3.485 3.452z"
4103 }))));
4104 },
4105 small: function small(color, children, props) {
4106 return React__default.createElement("svg", _extends({}, props, {
4107 xmlns: "http://www.w3.org/2000/svg",
4108 width: "16",
4109 height: "16",
4110 viewBox: "0 0 16 16"
4111 }), children, React__default.createElement("g", {
4112 fill: "none",
4113 fillRule: "evenodd"
4114 }, React__default.createElement("path", {
4115 d: "M15.8.133h-16v16h16z"
4116 }), React__default.createElement("path", _extends({
4117 fill: color
4118 }, color !== "currentColor" && {
4119 fillOpacity: ".65"
4120 }, {
4121 fillRule: "nonzero",
4122 d: "M5.194 12.857a.75.75 0 0 0 1.063 1.057l5.24-5.263a.75.75 0 0 0-.001-1.059l-5.24-5.238a.75.75 0 1 0-1.06 1.06l4.711 4.71-4.713 4.733z"
4123 }))));
4124 },
4125 large: function large(color, children, props) {
4126 return React__default.createElement("svg", _extends({}, props, {
4127 xmlns: "http://www.w3.org/2000/svg",
4128 width: "24",
4129 height: "24",
4130 viewBox: "0 0 24 24"
4131 }), children, React__default.createElement("g", {
4132 fill: "none",
4133 fillRule: "evenodd"
4134 }, React__default.createElement("path", {
4135 d: "M24 0H0v24h24z"
4136 }), React__default.createElement("path", _extends({
4137 fill: color
4138 }, color !== "currentColor" && {
4139 fillOpacity: ".65"
4140 }, {
4141 fillRule: "nonzero",
4142 d: "M13.197 20.738a.75.75 0 0 0 1.106 1.013l8.47-9.252a.75.75 0 0 0 0-1.013l-8.47-9.243a.75.75 0 1 0-1.106 1.014l8.006 8.736-8.006 8.745z"
4143 }))));
4144 }
4145};
4146
4147var ForwardIcon = function ForwardIcon(_ref) {
4148 var size = _ref.size,
4149 color = _ref.color,
4150 children = _ref.children,
4151 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4152
4153 return forwardIcons[size](color, children, props);
4154};
4155
4156ForwardIcon.displayName = "ForwardIcon";
4157ForwardIcon.defaultProps = {
4158 size: xSmallLarge[1],
4159 children: null,
4160 color: themes.global.gray01
4161};
4162ForwardIcon.propTypes = {
4163 size: PropTypes.oneOf(xSmallLarge),
4164 children: PropTypes.node,
4165 color: PropTypes.string
4166};
4167
4168var upIcons = {
4169 xSmall: function xSmall(color, children, props) {
4170 return React__default.createElement("svg", _extends({}, props, {
4171 xmlns: "http://www.w3.org/2000/svg",
4172 width: "12",
4173 height: "12",
4174 viewBox: "0 0 12 12"
4175 }), children, React__default.createElement("g", {
4176 fill: "none",
4177 fillRule: "evenodd",
4178 transform: "translate(-.2 -.867)"
4179 }, React__default.createElement("rect", {
4180 width: "12",
4181 height: "12",
4182 y: "1",
4183 rx: "1"
4184 }), React__default.createElement("path", _extends({
4185 fill: color
4186 }, color !== "currentColor" && {
4187 fillOpacity: ".65"
4188 }, {
4189 fillRule: "nonzero",
4190 d: "M2.554 9.305a.75.75 0 1 1-1.066-1.056l3.986-4.023a.75.75 0 0 1 1.065 0l3.973 4.01a.75.75 0 0 1-1.066 1.056l-3.44-3.473-3.452 3.486z"
4191 }))));
4192 },
4193 small: function small(color, children, props) {
4194 return React__default.createElement("svg", _extends({}, props, {
4195 xmlns: "http://www.w3.org/2000/svg",
4196 width: "16",
4197 height: "16",
4198 viewBox: "0 0 16 16"
4199 }), children, React__default.createElement("g", {
4200 fill: "none",
4201 fillRule: "evenodd"
4202 }, React__default.createElement("path", {
4203 d: "M16 0H0v16h16z"
4204 }), React__default.createElement("path", _extends({
4205 fill: color
4206 }, color !== "currentColor" && {
4207 fillOpacity: ".65"
4208 }, {
4209 fillRule: "nonzero",
4210 d: "M3.278 11.559a.75.75 0 0 1-1.057-1.063l5.263-5.24a.75.75 0 0 1 1.059.001l5.238 5.24a.75.75 0 0 1-1.06 1.06L8.01 6.846l-4.733 4.713z"
4211 }))));
4212 },
4213 large: function large(color, children, props) {
4214 return React__default.createElement("svg", _extends({}, props, {
4215 xmlns: "http://www.w3.org/2000/svg",
4216 width: "24",
4217 height: "24",
4218 viewBox: "0 0 24 24"
4219 }), children, React__default.createElement("g", {
4220 fill: "none",
4221 fillRule: "evenodd"
4222 }, React__default.createElement("path", {
4223 d: "M23.8 1.133h-24v24h24z"
4224 }), React__default.createElement("path", _extends({
4225 fill: color
4226 }, color !== "currentColor" && {
4227 fillOpacity: ".65"
4228 }, {
4229 fillRule: "nonzero",
4230 d: "M20.525 17.919a.75.75 0 1 0 1.013-1.107l-9.252-8.47a.75.75 0 0 0-1.013 0l-9.243 8.47a.75.75 0 1 0 1.014 1.107l8.736-8.007 8.745 8.007z"
4231 }))));
4232 }
4233};
4234
4235var UpIcon = function UpIcon(_ref) {
4236 var size = _ref.size,
4237 color = _ref.color,
4238 children = _ref.children,
4239 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4240
4241 return upIcons[size](color, children, props);
4242};
4243
4244UpIcon.displayName = "UpIcon";
4245UpIcon.defaultProps = {
4246 size: xSmallLarge[1],
4247 children: null,
4248 color: themes.global.gray01
4249};
4250UpIcon.propTypes = {
4251 size: PropTypes.oneOf(xSmallLarge),
4252 children: PropTypes.node,
4253 color: PropTypes.string
4254};
4255
4256var downIcons = {
4257 xSmall: function xSmall(color, children, props) {
4258 return React__default.createElement("svg", _extends({}, props, {
4259 xmlns: "http://www.w3.org/2000/svg",
4260 width: "12",
4261 height: "12",
4262 viewBox: "0 0 12 12"
4263 }), children, React__default.createElement("g", {
4264 fill: "none",
4265 fillRule: "evenodd"
4266 }, React__default.createElement("rect", {
4267 width: "12",
4268 height: "12",
4269 rx: "1"
4270 }), React__default.createElement("path", _extends({
4271 fill: color
4272 }, color !== "currentColor" && {
4273 fillOpacity: ".65"
4274 }, {
4275 fillRule: "nonzero",
4276 d: "M2.554 3.703a.75.75 0 1 0-1.066 1.056l3.986 4.023a.75.75 0 0 0 1.065 0l3.973-4.01a.75.75 0 0 0-1.066-1.056l-3.44 3.472-3.452-3.485z"
4277 }))));
4278 },
4279 small: function small(color, children, props) {
4280 return React__default.createElement("svg", _extends({}, props, {
4281 xmlns: "http://www.w3.org/2000/svg",
4282 width: "16",
4283 height: "16",
4284 viewBox: "0 0 16 16"
4285 }), children, React__default.createElement("g", {
4286 fill: "none",
4287 fillRule: "evenodd"
4288 }, React__default.createElement("path", {
4289 d: "M16 0H0v16h16z"
4290 }), React__default.createElement("path", _extends({
4291 fill: color
4292 }, color !== "currentColor" && {
4293 fillOpacity: ".65"
4294 }, {
4295 fillRule: "nonzero",
4296 d: "M3.278 5.459A.75.75 0 0 0 2.221 6.52l5.263 5.24a.75.75 0 0 0 1.059 0L13.78 6.52a.75.75 0 0 0-1.06-1.06l-4.71 4.711L3.278 5.46z"
4297 }))));
4298 },
4299 large: function large(color, children, props) {
4300 return React__default.createElement("svg", _extends({}, props, {
4301 xmlns: "http://www.w3.org/2000/svg",
4302 width: "24",
4303 height: "24",
4304 viewBox: "0 0 24 24"
4305 }), children, React__default.createElement("g", {
4306 fill: "none",
4307 fillRule: "evenodd"
4308 }, React__default.createElement("path", {
4309 d: "M24 0H0v24h24z"
4310 }), React__default.createElement("path", _extends({
4311 fill: color
4312 }, color !== "currentColor" && {
4313 fillOpacity: ".65"
4314 }, {
4315 fillRule: "nonzero",
4316 d: "M3.244 7.197a.75.75 0 1 0-1.013 1.106l9.252 8.47a.75.75 0 0 0 1.013 0l9.243-8.47a.75.75 0 1 0-1.013-1.106l-8.737 8.006-8.745-8.006z"
4317 }))));
4318 }
4319};
4320
4321var DownIcon = function DownIcon(_ref) {
4322 var size = _ref.size,
4323 color = _ref.color,
4324 children = _ref.children,
4325 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4326
4327 return downIcons[size](color, children, props);
4328};
4329
4330DownIcon.displayName = "DownIcon";
4331DownIcon.defaultProps = {
4332 size: xSmallLarge[1],
4333 children: null,
4334 color: themes.global.gray01
4335};
4336DownIcon.propTypes = {
4337 size: PropTypes.oneOf(xSmallLarge),
4338 children: PropTypes.node,
4339 color: PropTypes.string
4340};
4341
4342var closeIcons = {
4343 small: function small(color, children, props) {
4344 return React__default.createElement("svg", _extends({}, props, {
4345 xmlns: "http://www.w3.org/2000/svg",
4346 width: "16",
4347 height: "16",
4348 viewBox: "0 0 16 16"
4349 }), children, React__default.createElement("g", {
4350 fill: "none",
4351 fillRule: "evenodd"
4352 }, React__default.createElement("path", {
4353 d: "M16 0H0v16h16z"
4354 }), React__default.createElement("path", _extends({
4355 fill: color
4356 }, color !== "currentColor" && {
4357 fillOpacity: ".65"
4358 }, {
4359 fillRule: "nonzero",
4360 d: "M2.47 2.47a.75.75 0 0 1 1.06 0l4.718 4.718 4.718-4.718a.75.75 0 0 1 .976-.073l.085.073a.75.75 0 0 1 0 1.06L9.308 8.25l4.719 4.72a.75.75 0 0 1 .072.976l-.072.085a.75.75 0 0 1-1.061 0L8.248 9.31l-4.718 4.72a.75.75 0 0 1-.976.072l-.084-.072a.75.75 0 0 1 0-1.061l4.717-4.72L2.47 3.53a.75.75 0 0 1-.073-.976z"
4361 }))));
4362 },
4363 large: function large(color, children, props) {
4364 return React__default.createElement("svg", _extends({}, props, {
4365 xmlns: "http://www.w3.org/2000/svg",
4366 width: "24",
4367 height: "24",
4368 viewBox: "0 0 24 24"
4369 }), children, React__default.createElement("g", {
4370 fill: "none",
4371 fillRule: "evenodd"
4372 }, React__default.createElement("path", {
4373 d: "M24 0H0v24h24z"
4374 }), React__default.createElement("path", _extends({
4375 fill: color
4376 }, color !== "currentColor" && {
4377 fillOpacity: ".65"
4378 }, {
4379 fillRule: "nonzero",
4380 d: "M3.214 3.213a.73.73 0 0 1 1.031 0l7.752 7.758 7.753-7.757a.73.73 0 0 1 .95-.071l.08.07a.73.73 0 0 1 .001 1.032l-7.753 7.758 7.753 7.759a.73.73 0 0 1 .07.95l-.07.081a.73.73 0 0 1-1.031 0l-7.753-7.759-7.752 7.759a.73.73 0 0 1-.95.07l-.081-.07a.73.73 0 0 1 0-1.031l7.752-7.759-7.753-7.758a.73.73 0 0 1-.07-.95z"
4381 }))));
4382 }
4383};
4384
4385var CloseIcon = function CloseIcon(_ref) {
4386 var size = _ref.size,
4387 color = _ref.color,
4388 children = _ref.children,
4389 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4390
4391 return closeIcons[size](color, children, props);
4392};
4393
4394CloseIcon.displayName = "CloseIcon";
4395CloseIcon.defaultProps = {
4396 size: smallLarge[0],
4397 children: null,
4398 color: themes.global.gray01
4399};
4400CloseIcon.propTypes = {
4401 size: PropTypes.oneOf(smallLarge),
4402 children: PropTypes.node,
4403 color: PropTypes.string
4404};
4405
4406var deleteIcons = {
4407 small: function small(color, children, props) {
4408 return React__default.createElement("svg", _extends({}, props, {
4409 xmlns: "http://www.w3.org/2000/svg",
4410 width: "16",
4411 height: "16",
4412 viewBox: "0 0 16 16"
4413 }), children, React__default.createElement("g", {
4414 fill: "none",
4415 fillRule: "evenodd"
4416 }, React__default.createElement("path", {
4417 d: "M0 0h16v16H0z"
4418 }), React__default.createElement("path", _extends({
4419 fill: color
4420 }, color !== "currentColor" && {
4421 fillOpacity: ".65"
4422 }, {
4423 fillRule: "nonzero",
4424 d: "M6 0h4a1 1 0 0 1 1 1v1.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5V1a1 1 0 0 1 1-1zM3.5 4h9a.5.5 0 0 1 .498.545l-.959 10.546a1 1 0 0 1-.996.909H4.957a1 1 0 0 1-.996-.91L3.002 4.546A.5.5 0 0 1 3.5 4zm.548 1l.909 10h6.086l.91-10H4.047zM2.5 2h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3zm0 1a.5.5 0 0 0 0 1h11a.5.5 0 1 0 0-1h-11zM10 1H6v1h4V1zM9 7.5a.5.5 0 0 1 1 0v5a.5.5 0 1 1-1 0v-5zm-2 0a.5.5 0 0 0-1 0v5a.5.5 0 1 0 1 0v-5z"
4425 }))));
4426 },
4427 large: function large(color, children, props) {
4428 return React__default.createElement("svg", _extends({}, props, {
4429 xmlns: "http://www.w3.org/2000/svg",
4430 width: "24",
4431 height: "24",
4432 viewBox: "0 0 24 24"
4433 }), children, React__default.createElement("g", {
4434 fill: "none",
4435 fillRule: "evenodd"
4436 }, React__default.createElement("path", {
4437 d: "M0 0h24v24H0z"
4438 }), React__default.createElement("path", _extends({
4439 fill: color
4440 }, color !== "currentColor" && {
4441 fillOpacity: ".65"
4442 }, {
4443 fillRule: "nonzero",
4444 d: "M5.03 7H3.5a1.5 1.5 0 0 1 0-3H7V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v2h3.5a1.5 1.5 0 0 1 0 3h-1.53l-.942 15.062a1 1 0 0 1-.998.938H6.97a1 1 0 0 1-.998-.938L5.03 7zM14 10.5a.5.5 0 1 1 1 0v8a.5.5 0 1 1-1 0v-8zm-4 0a.5.5 0 1 0-1 0v8a.5.5 0 1 0 1 0v-8zM16 2H8v2h8V2zM3.5 5a.5.5 0 0 0 0 1h17a.5.5 0 1 0 0-1h-17zm2.532 2l.938 15h10.06l.938-15H6.032z"
4445 }))));
4446 }
4447};
4448
4449var DeleteIcon = function DeleteIcon(_ref) {
4450 var size = _ref.size,
4451 color = _ref.color,
4452 children = _ref.children,
4453 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4454
4455 return deleteIcons[size](color, children, props);
4456};
4457
4458DeleteIcon.displayName = "DeleteIcon";
4459DeleteIcon.defaultProps = {
4460 size: smallLarge[0],
4461 children: null,
4462 color: themes.global.gray01
4463};
4464DeleteIcon.propTypes = {
4465 size: PropTypes.oneOf(smallLarge),
4466 children: PropTypes.node,
4467 color: PropTypes.string
4468};
4469
4470var calendarIcons = {
4471 small: function small(color, children, props) {
4472 return React__default.createElement("svg", _extends({}, props, {
4473 xmlns: "http://www.w3.org/2000/svg",
4474 width: "16",
4475 height: "16",
4476 viewBox: "0 0 16 16"
4477 }), children, React__default.createElement("g", {
4478 fill: "none",
4479 fillRule: "evenodd"
4480 }, React__default.createElement("path", {
4481 d: "M0 0h16v16H0z"
4482 }), React__default.createElement("path", _extends({
4483 fill: color
4484 }, color !== "currentColor" && {
4485 fillOpacity: ".65"
4486 }, {
4487 fillRule: "nonzero",
4488 d: "M15 5V3.5a.5.5 0 0 0-.5-.5h-1.585a1.5 1.5 0 0 1-2.83 0h-4.17a1.5 1.5 0 0 1-2.83 0H1.5a.5.5 0 0 0-.5.5V5h14zm0 1H1v8.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5V6zm-5-4v-.5a1.5 1.5 0 0 1 3 0V2h1.5A1.5 1.5 0 0 1 16 3.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 14.5v-11A1.5 1.5 0 0 1 1.5 2H3v-.5a1.5 1.5 0 0 1 3 0V2h4zM3 7h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1.5-4a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-1 0v1a.5.5 0 0 0 .5.5zm7 0a.5.5 0 0 0 .5-.5v-1a.5.5 0 1 0-1 0v1a.5.5 0 0 0 .5.5zM3 8v2h2V8H3z"
4489 }))));
4490 },
4491 large: function large(color, children, props) {
4492 return React__default.createElement("svg", _extends({}, props, {
4493 xmlns: "http://www.w3.org/2000/svg",
4494 width: "24",
4495 height: "24",
4496 viewBox: "0 0 24 24"
4497 }), children, React__default.createElement("g", {
4498 fill: "none",
4499 fillRule: "evenodd"
4500 }, React__default.createElement("path", {
4501 d: "M0 0h24v24H0z"
4502 }), React__default.createElement("path", _extends({
4503 fill: color
4504 }, color !== "currentColor" && {
4505 fillOpacity: ".65"
4506 }, {
4507 fillRule: "nonzero",
4508 d: "M6 3v-.5a1.5 1.5 0 0 1 3 0V3h6v-.5a1.5 1.5 0 0 1 3 0V3h3.5A1.5 1.5 0 0 1 23 4.5v17a1.5 1.5 0 0 1-1.5 1.5h-19A1.5 1.5 0 0 1 1 21.5v-17A1.5 1.5 0 0 1 2.5 3H6zm0 1H2.5a.5.5 0 0 0-.5.5V8h20V4.5a.5.5 0 0 0-.5-.5H18v.5a1.5 1.5 0 0 1-3 0V4H9v.5a1.5 1.5 0 0 1-3 0V4zM2 9v12.5a.5.5 0 0 0 .5.5h19a.5.5 0 0 0 .5-.5V9H2zm3 2h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zm0 1v2h2v-2H5zm11.5-7a.5.5 0 0 0 .5-.5v-2a.5.5 0 1 0-1 0v2a.5.5 0 0 0 .5.5zm-9 0a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-1 0v2a.5.5 0 0 0 .5.5z"
4509 }))));
4510 }
4511};
4512
4513var CalendarIcon = function CalendarIcon(_ref) {
4514 var size = _ref.size,
4515 color = _ref.color,
4516 children = _ref.children,
4517 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4518
4519 return calendarIcons[size](color, children, props);
4520};
4521
4522CalendarIcon.displayName = "CalendarIcon";
4523CalendarIcon.defaultProps = {
4524 size: smallLarge[0],
4525 children: null,
4526 color: themes.global.gray01
4527};
4528CalendarIcon.propTypes = {
4529 size: PropTypes.oneOf(smallLarge),
4530 children: PropTypes.node,
4531 color: PropTypes.string
4532};
4533
4534var homeIcons = {
4535 small: function small(color, children, props) {
4536 return React__default.createElement("svg", _extends({}, props, {
4537 xmlns: "http://www.w3.org/2000/svg",
4538 width: "16",
4539 height: "16",
4540 viewBox: "0 0 16 16"
4541 }), children, React__default.createElement("g", {
4542 fill: "none",
4543 fillRule: "evenodd"
4544 }, React__default.createElement("path", {
4545 d: "M0 0h16v16H0z"
4546 }), React__default.createElement("path", _extends({
4547 fill: color
4548 }, color !== "currentColor" && {
4549 fillOpacity: ".65"
4550 }, {
4551 fillRule: "nonzero",
4552 d: "M2.598 9.167a1.546 1.546 0 0 1-2.171-.073 1.533 1.533 0 0 1 .06-2.167l7.17-6.79a.5.5 0 0 1 .686 0l7.178 6.788c.617.588.64 1.558.056 2.17a1.553 1.553 0 0 1-2.178.07L8 4.18 2.598 9.167zM8 1.188L1.174 7.653a.533.533 0 0 0-.02.753.546.546 0 0 0 .766.026l5.74-5.3a.5.5 0 0 1 .68 0l5.738 5.298a.553.553 0 0 0 .775-.025.532.532 0 0 0-.018-.752L8 1.188zM2 8.58a.5.5 0 0 1 .16-.367l5.5-5.08a.5.5 0 0 1 .68 0l5.5 5.08a.5.5 0 0 1 .16.367V15a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8.58zm1 .219V15h10V8.799L8 4.18 3 8.799zM7 15.5a.5.5 0 1 1-1 0V11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4.5a.5.5 0 1 1-1 0V11H7v4.5z"
4553 }))));
4554 },
4555 large: function large(color, children, props) {
4556 return React__default.createElement("svg", _extends({}, props, {
4557 xmlns: "http://www.w3.org/2000/svg",
4558 width: "24",
4559 height: "24",
4560 viewBox: "0 0 24 24"
4561 }), children, React__default.createElement("g", {
4562 fill: "none",
4563 fillRule: "evenodd"
4564 }, React__default.createElement("path", {
4565 d: "M0 0h24v24H0z"
4566 }), React__default.createElement("path", _extends({
4567 fill: color
4568 }, color !== "currentColor" && {
4569 fillOpacity: ".65"
4570 }, {
4571 fillRule: "nonzero",
4572 d: "M12 5.207l-8.396 8.397a1.56 1.56 0 0 1-2.208-2.208l10.25-10.25a.5.5 0 0 1 .708 0l10.25 10.25a1.56 1.56 0 0 1-2.208 2.208L12 5.207zm-9.896 6.897a.56.56 0 1 0 .792.792l8.75-8.75a.5.5 0 0 1 .708 0l8.75 8.75a.56.56 0 0 0 .792-.792L12 2.207l-9.896 9.897zM4 12a.5.5 0 0 1 .146-.354l7.5-7.5a.5.5 0 0 1 .708 0l7.5 7.5A.5.5 0 0 1 20 12v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V12zm1 .207V22h14v-9.793l-7-7-7 7zM10 22.5a.5.5 0 1 1-1 0V16a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6.5a.5.5 0 1 1-1 0V16h-4v6.5z"
4573 }))));
4574 }
4575};
4576
4577var HomeIcon = function HomeIcon(_ref) {
4578 var size = _ref.size,
4579 color = _ref.color,
4580 children = _ref.children,
4581 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4582
4583 return homeIcons[size](color, children, props);
4584};
4585
4586HomeIcon.displayName = "HomeIcon";
4587HomeIcon.defaultProps = {
4588 size: smallLarge[0],
4589 children: null,
4590 color: themes.global.gray01
4591};
4592HomeIcon.propTypes = {
4593 size: PropTypes.oneOf(smallLarge),
4594 children: PropTypes.node,
4595 color: PropTypes.string
4596};
4597
4598var searchIcons = {
4599 small: function small(color, children, props) {
4600 return React__default.createElement("svg", _extends({}, props, {
4601 xmlns: "http://www.w3.org/2000/svg",
4602 width: "16",
4603 height: "16",
4604 viewBox: "0 0 16 16"
4605 }), children, React__default.createElement("g", {
4606 fill: "none",
4607 fillRule: "evenodd"
4608 }, React__default.createElement("path", {
4609 d: "M16 0H0v16h16z"
4610 }), React__default.createElement("path", _extends({
4611 fill: color
4612 }, color !== "currentColor" && {
4613 fillOpacity: ".65"
4614 }, {
4615 fillRule: "nonzero",
4616 d: "M12 6.5a5.5 5.5 0 1 0-11 0 5.5 5.5 0 0 0 11 0zm-.564 4.229l4.418 4.417a.5.5 0 0 1-.708.708l-4.417-4.418a6.5 6.5 0 1 1 .707-.707z"
4617 }))));
4618 },
4619 large: function large(color, children, props) {
4620 return React__default.createElement("svg", _extends({}, props, {
4621 xmlns: "http://www.w3.org/2000/svg",
4622 width: "24",
4623 height: "24",
4624 viewBox: "0 0 24 24"
4625 }), children, React__default.createElement("g", {
4626 fill: "none",
4627 fillRule: "evenodd"
4628 }, React__default.createElement("path", {
4629 d: "M24 0H0v24h24z"
4630 }), React__default.createElement("path", _extends({
4631 fill: color
4632 }, color !== "currentColor" && {
4633 fillOpacity: ".65"
4634 }, {
4635 fillRule: "nonzero",
4636 d: "M18 9.5a8.5 8.5 0 1 0-17 0 8.5 8.5 0 0 0 17 0zm-1.438 6.355l7.292 7.291a.5.5 0 0 1-.708.708l-7.291-7.292a9.5 9.5 0 1 1 .707-.707z"
4637 }))));
4638 }
4639};
4640
4641var SearchIcon = function SearchIcon(_ref) {
4642 var size = _ref.size,
4643 color = _ref.color,
4644 children = _ref.children,
4645 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4646
4647 return searchIcons[size] ? searchIcons[size](color, children, props) : null;
4648};
4649
4650SearchIcon.displayName = "SearchIcon";
4651SearchIcon.defaultProps = {
4652 size: smallLarge[0],
4653 children: null,
4654 color: themes.global.gray01
4655};
4656SearchIcon.propTypes = {
4657 size: PropTypes.oneOf(smallLarge),
4658 children: PropTypes.node,
4659 color: PropTypes.string
4660};
4661
4662var BookmarkIcon = function BookmarkIcon(_ref) {
4663 var children = _ref.children,
4664 color = _ref.color,
4665 props = _objectWithoutProperties(_ref, ["children", "color"]);
4666
4667 return React__default.createElement("svg", _extends({}, props, {
4668 xmlns: "http://www.w3.org/2000/svg",
4669 width: "16",
4670 height: "16",
4671 viewBox: "0 0 16 16"
4672 }), children, React__default.createElement("path", _extends({
4673 fill: color
4674 }, color !== "currentColor" && {
4675 fillOpacity: ".65"
4676 }, {
4677 fillRule: "nonzero",
4678 d: "M13 1H3v13.29l3.957-2.229a2 2 0 0 1 1.946-.01L13 14.309V1zM3 0h10a1 1 0 0 1 1 1v15l-5.58-3.072a1 1 0 0 0-.973.005L2 16V1a1 1 0 0 1 1-1z"
4679 })));
4680};
4681
4682BookmarkIcon.displayName = "BookmarkIcon";
4683BookmarkIcon.propTypes = {
4684 children: PropTypes.node,
4685 color: PropTypes.string
4686};
4687BookmarkIcon.defaultProps = {
4688 children: null,
4689 color: themes.global.gray01
4690};
4691
4692var clearIcons = {
4693 small: function small(color, children, props) {
4694 return React__default.createElement("svg", _extends({}, props, {
4695 xmlns: "http://www.w3.org/2000/svg",
4696 width: "16px",
4697 height: "16px",
4698 viewBox: "0 0 16 16"
4699 }), children, React__default.createElement("g", {
4700 stroke: "none",
4701 strokeWidth: "1",
4702 fill: "none",
4703 fillRule: "evenodd"
4704 }, React__default.createElement("rect", {
4705 x: "0",
4706 y: "0",
4707 width: "16",
4708 height: "16"
4709 }), React__default.createElement("path", _extends({
4710 fill: color
4711 }, color !== "currentColor" && {
4712 fillOpacity: ".65"
4713 }, {
4714 fillRule: "nonzero",
4715 d: "M8,14 C11.3137085,14 14,11.3137085 14,8 C14,4.6862915 11.3137085,2 8,2 C4.6862915,2 2,4.6862915 2,8 C2,11.3137085 4.6862915,14 8,14 Z M8,15 C4.13400675,15 1,11.8659932 1,8 C1,4.13400675 4.13400675,1 8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 Z M10.3131133,4.97977994 C10.4972082,4.79568503 10.8047379,4.80473785 11,5 C11.1952621,5.19526215 11.204315,5.50279181 11.0202201,5.68688672 L5.68688672,11.0202201 C5.50279181,11.204315 5.19526215,11.1952621 5,11 C4.80473785,10.8047379 4.79568503,10.4972082 4.97977994,10.3131133 L10.3131133,4.97977994 Z M4.97977994,5.68688672 C4.79568503,5.50279181 4.80473785,5.19526215 5,5 C5.19526215,4.80473785 5.50279181,4.79568503 5.68688672,4.97977994 L11.0202201,10.3131133 C11.204315,10.4972082 11.1952621,10.8047379 11,11 C10.8047379,11.1952621 10.4972082,11.204315 10.3131133,11.0202201 L4.97977994,5.68688672 Z"
4716 }))));
4717 },
4718 large: function large(color, children, props) {
4719 return React__default.createElement("svg", _extends({}, props, {
4720 xmlns: "http://www.w3.org/2000/svg",
4721 width: "24",
4722 height: "24",
4723 viewBox: "0 0 24 24"
4724 }), children, React__default.createElement("g", {
4725 fill: "none",
4726 fillRule: "evenodd"
4727 }, React__default.createElement("path", {
4728 d: "M0 0h24v24H0z"
4729 }), React__default.createElement("path", _extends({
4730 fill: color
4731 }, color !== "currentColor" && {
4732 fillOpacity: ".65"
4733 }, {
4734 fillRule: "nonzero",
4735 d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0 1C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm3.89-15.596a.5.5 0 0 1 .706.707l-8.485 8.485a.5.5 0 0 1-.707-.707l8.485-8.485zm-8.486.707a.5.5 0 0 1 .707-.707l8.485 8.485a.5.5 0 0 1-.707.707L7.404 8.111z"
4736 }))));
4737 }
4738};
4739
4740var ClearIcon = function ClearIcon(_ref) {
4741 var size = _ref.size,
4742 color = _ref.color,
4743 children = _ref.children,
4744 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4745
4746 return clearIcons[size](color, children, props);
4747};
4748
4749ClearIcon.displayName = "ClearIcon";
4750ClearIcon.propTypes = {
4751 children: PropTypes.node,
4752 size: PropTypes.oneOf(smallLarge),
4753 color: PropTypes.string
4754};
4755ClearIcon.defaultProps = {
4756 children: null,
4757 size: smallLarge[1],
4758 color: themes.global.gray01
4759};
4760
4761var editIcons = {
4762 small: function small(color, children, props) {
4763 return React__default.createElement("svg", _extends({}, props, {
4764 width: "16px",
4765 height: "16px",
4766 viewBox: "0 0 16 16",
4767 xmlns: "http://www.w3.org/2000/svg"
4768 }), children, React__default.createElement("g", {
4769 stroke: "none",
4770 strokeWidth: "1",
4771 fill: "none",
4772 fillRule: "evenodd"
4773 }, React__default.createElement("g", {
4774 transform: "translate(0.000000, -1.000000)"
4775 }, React__default.createElement("rect", {
4776 x: "0",
4777 y: "1",
4778 width: "16",
4779 height: "16"
4780 }), React__default.createElement("path", _extends({
4781 fill: color
4782 }, color !== "currentColor" && {
4783 fillOpacity: ".65"
4784 }, {
4785 fillRule: "nonzero",
4786 d: "M5.05600084,16 L12.5,16 C12.7761424,16 13,16.2238576 13,16.5 C13,16.7761424 12.7761424,17 12.5,17 L3.5,17 C3.22385763,17 3,16.7761424 3,16.5 C3,16.4884881 3.00038904,16.4770671 3.0011547,16.4657494 C2.99963858,16.4437511 2.99951867,16.42123 3.00089827,16.3982456 L3.26824479,11.9441846 C3.2683754,11.9408362 3.26853985,11.937487 3.26873827,11.9341375 C3.27349823,11.8566609 3.29612522,11.7813247 3.33493649,11.7141016 L9.08493649,1.75480947 C9.36107887,1.27651685 9.97266927,1.11264169 10.4509619,1.38878407 L13.0490381,2.88878407 C13.5273307,3.16492644 13.6912059,3.77651685 13.4150635,4.25480947 L7.66506351,14.2141016 C7.62625224,14.2813247 7.57232269,14.3385883 7.50754574,14.3813576 C7.50480442,14.3832955 7.50198615,14.3851125 7.49915163,14.3868998 L5.05600084,16 Z M11.0490381,6.35288568 L8.45096189,4.85288568 L4.45096189,11.7810889 L7.04903811,13.2810889 L11.0490381,6.35288568 Z M11.5490381,5.48686028 L12.5490381,3.75480947 L9.95096189,2.25480947 L8.95096189,3.98686028 L11.5490381,5.48686028 Z M4.21857846,12.8016228 L4.05901699,15.4599574 L6.28142154,13.9926058 L4.21857846,12.8016228 Z"
4787 })))));
4788 },
4789 large: function large(color, children, props) {
4790 return React__default.createElement("svg", _extends({}, props, {
4791 xmlns: "http://www.w3.org/2000/svg",
4792 width: "24",
4793 height: "24",
4794 viewBox: "0 0 24 24"
4795 }), children, React__default.createElement("g", {
4796 fill: "none",
4797 fillRule: "evenodd"
4798 }, React__default.createElement("path", {
4799 d: "M0 0h24v24H0z"
4800 }), React__default.createElement("path", _extends({
4801 fill: color
4802 }, color !== "currentColor" && {
4803 fillOpacity: ".65"
4804 }, {
4805 fillRule: "nonzero",
4806 d: "M5.054 22.487l4.854-3.205L18.952 3.62S17.44 2.745 14.418 1L5.375 16.663l-.321 5.824zM4 23.425l.382-6.936a.5.5 0 0 1 .066-.223L13.553.5a1 1 0 0 1 1.365-.365l4.535 2.618c.477.278.64.887.365 1.366l-9.103 15.766a.5.5 0 0 1-.157.168L4.776 23.87A.5.5 0 0 1 4 23.425zm6.031-3.357l-5.4-3.118c-.577-.334-.077-1.2.5-.867l5.4 3.118c.578.334.078 1.2-.5.867zm7.015-12.15l-5.4-3.118c-.577-.334-.077-1.2.5-.866l5.4 3.118c.577.333.077 1.199-.5.866zM4.5 24a.5.5 0 1 1 0-1h15a.5.5 0 1 1 0 1h-15z"
4807 }))));
4808 }
4809};
4810
4811var EditIcon = function EditIcon(_ref) {
4812 var size = _ref.size,
4813 color = _ref.color,
4814 children = _ref.children,
4815 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4816
4817 return editIcons[size](color, children, props);
4818};
4819
4820EditIcon.displayName = "EditIcon";
4821EditIcon.propTypes = {
4822 children: PropTypes.node,
4823 size: PropTypes.oneOf(smallLarge),
4824 color: PropTypes.string
4825};
4826EditIcon.defaultProps = {
4827 children: null,
4828 size: smallLarge[1],
4829 color: themes.global.gray01
4830};
4831
4832var FeedbackIcon = function FeedbackIcon(_ref) {
4833 var children = _ref.children,
4834 color = _ref.color,
4835 props = _objectWithoutProperties(_ref, ["children", "color"]);
4836
4837 return React__default.createElement("svg", _extends({}, props, {
4838 xmlns: "http://www.w3.org/2000/svg",
4839 width: "24",
4840 height: "24",
4841 viewBox: "0 0 24 24"
4842 }), children, React__default.createElement("g", {
4843 fill: "none",
4844 fillRule: "evenodd"
4845 }, React__default.createElement("path", {
4846 d: "M0 0h24v24H0z"
4847 }), React__default.createElement("path", _extends({
4848 fill: color
4849 }, color !== "currentColor" && {
4850 fillOpacity: ".65"
4851 }, {
4852 fillRule: "nonzero",
4853 d: "M5 22.293l4.146-4.147A.5.5 0 0 1 9.5 18h10a3.5 3.5 0 0 0 3.5-3.5v-10A3.5 3.5 0 0 0 19.5 1h-15A3.5 3.5 0 0 0 1 4.5v10A3.5 3.5 0 0 0 4.5 18a.5.5 0 0 1 .5.5v3.793zM9.707 19l-4.853 4.854A.5.5 0 0 1 4 23.5v-4.527A4.5 4.5 0 0 1 0 14.5v-10A4.5 4.5 0 0 1 4.5 0h15A4.5 4.5 0 0 1 24 4.5v10a4.5 4.5 0 0 1-4.5 4.5H9.707zM5.5 6a.5.5 0 0 1 0-1h13a.5.5 0 1 1 0 1h-13zm0 4a.5.5 0 0 1 0-1h13a.5.5 0 1 1 0 1h-13zm0 4a.5.5 0 1 1 0-1h7a.5.5 0 1 1 0 1h-7z"
4854 }))));
4855};
4856
4857FeedbackIcon.displayName = "FeedbackIcon";
4858FeedbackIcon.propTypes = {
4859 children: PropTypes.node,
4860 color: PropTypes.string
4861};
4862FeedbackIcon.defaultProps = {
4863 children: null,
4864 color: themes.global.gray01
4865};
4866
4867var FilterIcon = function FilterIcon(_ref) {
4868 var children = _ref.children,
4869 color = _ref.color,
4870 props = _objectWithoutProperties(_ref, ["children", "color"]);
4871
4872 return React__default.createElement("svg", _extends({}, props, {
4873 xmlns: "http://www.w3.org/2000/svg",
4874 width: "24",
4875 height: "24",
4876 viewBox: "0 0 24 24"
4877 }), children, React__default.createElement("g", {
4878 fill: "none",
4879 fillRule: "evenodd"
4880 }, React__default.createElement("path", {
4881 d: "M0 0h24v24H0z"
4882 }), React__default.createElement("path", _extends({
4883 fill: color
4884 }, color !== "currentColor" && {
4885 fillOpacity: ".65"
4886 }, {
4887 fillRule: "nonzero",
4888 d: "M10.5 16v2h3v-2h-3zm2-1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1v3.5a.5.5 0 1 1-1 0V19h-1a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1V1.5a.5.5 0 1 1 1 0V15zm6.5-1.5a.5.5 0 1 1 1 0v9a.5.5 0 1 1-1 0v-9zm0-12a.5.5 0 1 1 1 0v9a.5.5 0 1 1-1 0v-9zM18 11v2h3v-2h-3zm0-1h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zM3 6v2h3V6H3zm2-1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5v13.5a.5.5 0 1 1-1 0V9H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V1.5a.5.5 0 0 1 1 0V5z"
4889 }))));
4890};
4891
4892FilterIcon.displayName = "FilterIcon";
4893FilterIcon.propTypes = {
4894 children: PropTypes.node,
4895 color: PropTypes.string
4896};
4897FilterIcon.defaultProps = {
4898 children: null,
4899 color: themes.global.gray01
4900};
4901
4902var LocationIcon = function LocationIcon(_ref) {
4903 var children = _ref.children,
4904 color = _ref.color,
4905 props = _objectWithoutProperties(_ref, ["children", "color"]);
4906
4907 return React__default.createElement("svg", _extends({}, props, {
4908 xmlns: "http://www.w3.org/2000/svg",
4909 width: "24",
4910 height: "24",
4911 viewBox: "0 0 24 24"
4912 }), children, React__default.createElement("g", {
4913 fill: "none",
4914 fillRule: "evenodd"
4915 }, React__default.createElement("path", {
4916 d: "M0 0h24v24H0z"
4917 }), React__default.createElement("path", _extends({
4918 fill: color
4919 }, color !== "currentColor" && {
4920 fillOpacity: ".65"
4921 }, {
4922 fillRule: "nonzero",
4923 d: "M12.373 23.833a.5.5 0 0 1-.746 0C5.883 17.413 3 12.495 3 9c0-5.276 3.724-9 9-9s9 3.724 9 9c0 3.495-2.883 8.414-8.627 14.833zM20 9c0-4.724-3.276-8-8-8S4 4.276 4 9c0 3.1 2.66 7.707 8 13.748C17.34 16.708 20 12.1 20 9zm-8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"
4924 }))));
4925};
4926
4927LocationIcon.displayName = "LocationIcon";
4928LocationIcon.propTypes = {
4929 children: PropTypes.node,
4930 color: PropTypes.string
4931};
4932LocationIcon.defaultProps = {
4933 children: null,
4934 color: themes.global.gray01
4935};
4936
4937var ticketIcons = {
4938 small: function small(color, children, props) {
4939 return React__default.createElement("svg", _extends({}, props, {
4940 width: "16px",
4941 height: "16px",
4942 viewBox: "0 0 16 16",
4943 xmlns: "http://www.w3.org/2000/svg"
4944 }), children, React__default.createElement("defs", null, React__default.createElement("polygon", {
4945 id: "path-1",
4946 points: "16 0 0 0 0 16 16 16"
4947 })), React__default.createElement("g", {
4948 stroke: "none",
4949 strokeWidth: "1",
4950 fill: "none",
4951 fillRule: "evenodd"
4952 }, React__default.createElement("g", null, React__default.createElement("mask", {
4953 id: "mask-2",
4954 fill: "white"
4955 }, React__default.createElement("use", {
4956 xlinkHref: "#path-1"
4957 })), React__default.createElement("g", _extends({
4958 mask: "url(#mask-2)",
4959 fill: color
4960 }, color !== "currentColor" && {
4961 fillOpacity: ".65"
4962 }, {
4963 fillRule: "nonzero"
4964 }), React__default.createElement("g", {
4965 transform: "translate(8.251948, 8.031508) rotate(-45.000000) translate(-8.251948, -8.031508) translate(0.751948, 3.031508)"
4966 }, React__default.createElement("path", {
4967 d: "M9.96544565,8.54220706 L13.1895679,8.54220706 L13.1145405,6.47963002 L12.8921748,6.4055081 C12.1214593,6.14860293 11.6016054,5.42734418 11.6016054,4.61493869 C11.6016054,3.80253319 12.1214593,3.08127445 12.8921748,2.82436927 L13.1163787,2.74963464 L13.1868401,1.05692569 L9.96544565,1.05692569 L9.96544565,1.97113925 C9.96544565,2.24728163 9.74158803,2.47113925 9.46544565,2.47113925 C9.18930328,2.47113925 8.96544565,2.24728163 8.96544565,1.97113925 L8.96544565,1.05692569 L1.48016428,1.05692569 L1.48016428,8.54220706 L8.96544565,8.54220706 L8.96544565,7.6279935 C8.96544565,7.35185113 9.18930328,7.1279935 9.46544565,7.1279935 C9.74158803,7.1279935 9.96544565,7.35185113 9.96544565,7.6279935 L9.96544565,8.54220706 Z M13.2084025,3.77305257 C12.8460292,3.8938437 12.6016054,4.2329636 12.6016054,4.61493869 C12.6016054,4.99691377 12.8460292,5.33603367 13.2084025,5.4568248 L13.7597192,5.64059704 C13.9575607,5.70654417 14.093694,5.88835762 14.1012749,6.09676294 L14.1889069,8.50585556 C14.1894577,8.52402731 14.1894577,8.52402731 14.1895679,8.54220706 C14.1895679,9.09449181 13.7418526,9.54220706 13.1895679,9.54220706 L1.48016428,9.54220706 C0.927879529,9.54220706 0.480164278,9.09449181 0.480164278,8.54220706 L0.480164278,1.05692569 C0.480164278,0.50464094 0.927879529,0.0569256897 1.48016428,0.0569256897 L13.1868401,0.0569256897 C13.2076413,0.0570699303 13.2076413,0.0570699303 13.2284305,0.0577909457 C13.7802374,0.0807607017 14.2089446,0.54670923 14.1859749,1.09851611 L14.1011727,3.1357339 C14.0925392,3.3431385 13.9566509,3.52363644 13.7597192,3.58928034 L13.2084025,3.77305257 Z M3.8085914,3.88535281 C3.53244903,3.88535281 3.3085914,3.66149519 3.3085914,3.38535281 C3.3085914,3.10921044 3.53244903,2.88535281 3.8085914,2.88535281 L6.63701853,2.88535281 C6.9131609,2.88535281 7.13701853,3.10921044 7.13701853,3.38535281 C7.13701853,3.66149519 6.9131609,3.88535281 6.63701853,3.88535281 L3.8085914,3.88535281 Z M5.22280497,6.71377994 C4.94666259,6.71377994 4.72280497,6.48992231 4.72280497,6.21377994 C4.72280497,5.93763756 4.94666259,5.71377994 5.22280497,5.71377994 L6.63701853,5.71377994 C6.9131609,5.71377994 7.13701853,5.93763756 7.13701853,6.21377994 C7.13701853,6.48992231 6.9131609,6.71377994 6.63701853,6.71377994 L5.22280497,6.71377994 Z M8.96544565,4.0924596 C8.96544565,3.81631722 9.18930328,3.5924596 9.46544565,3.5924596 C9.74158803,3.5924596 9.96544565,3.81631722 9.96544565,4.0924596 L9.96544565,5.50667316 C9.96544565,5.78281553 9.74158803,6.00667316 9.46544565,6.00667316 C9.18930328,6.00667316 8.96544565,5.78281553 8.96544565,5.50667316 L8.96544565,4.0924596 Z"
4968 }))))));
4969 },
4970 large: function large(color, children, props) {
4971 return React__default.createElement("svg", _extends({}, props, {
4972 xmlns: "http://www.w3.org/2000/svg",
4973 width: "24",
4974 height: "24",
4975 viewBox: "0 0 24 24"
4976 }), children, React__default.createElement("g", {
4977 fill: "none",
4978 fillRule: "evenodd"
4979 }, React__default.createElement("path", {
4980 d: "M24 0H0v24h24z"
4981 }), React__default.createElement("path", _extends({
4982 fill: color
4983 }, color !== "currentColor" && {
4984 fillOpacity: ".65"
4985 }, {
4986 fillRule: "nonzero",
4987 d: "M18.006 4.528a1.03 1.03 0 0 0 1.457 1.457l.332-.332a.5.5 0 0 1 .707 0l3.14 3.14a1 1 0 0 1 0 1.414L10.207 23.642a1 1 0 0 1-1.415 0L.307 15.156a1 1 0 0 1 0-1.414L13.742.307a1 1 0 0 1 1.414 0l3.182 3.182a.5.5 0 0 1 0 .707l-.332.332zM14.45 1.014L1.014 14.45 9.5 22.935 22.935 9.499l-2.786-2.785a2.03 2.03 0 0 1-2.871-2.871l-2.829-2.829zM10.56 4.196a.5.5 0 1 1 .707-.707L13.39 5.61a.5.5 0 1 1-.708.708l-2.12-2.122zM7.732 14.803a.5.5 0 1 1-.707-.707l4.95-4.95a.5.5 0 1 1 .706.707l-4.95 4.95zm4.242 0a.5.5 0 1 1-.707-.707l2.829-2.829a.5.5 0 1 1 .707.707l-2.829 2.829zm2.122-7.071a.5.5 0 1 1 .707-.707l2.121 2.12a.5.5 0 1 1-.707.708l-2.121-2.121zm3.535 3.535a.5.5 0 1 1 .707-.707l2.122 2.121a.5.5 0 1 1-.707.708l-2.122-2.122z"
4988 }))));
4989 }
4990};
4991
4992var TicketIcon = function TicketIcon(_ref) {
4993 var size = _ref.size,
4994 color = _ref.color,
4995 children = _ref.children,
4996 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
4997
4998 return ticketIcons[size](color, children, props);
4999};
5000
5001TicketIcon.displayName = "TicketIcon";
5002TicketIcon.propTypes = {
5003 children: PropTypes.node,
5004 size: PropTypes.oneOf(smallLarge),
5005 color: PropTypes.string
5006};
5007TicketIcon.defaultProps = {
5008 children: null,
5009 size: smallLarge[1],
5010 color: themes.global.gray01
5011};
5012
5013var TicketsIcon = function TicketsIcon(_ref) {
5014 var children = _ref.children,
5015 color = _ref.color,
5016 props = _objectWithoutProperties(_ref, ["children", "color"]);
5017
5018 return React__default.createElement("svg", _extends({}, props, {
5019 xmlns: "http://www.w3.org/2000/svg",
5020 width: "24",
5021 height: "24",
5022 viewBox: "0 0 24 24"
5023 }), children, React__default.createElement("g", {
5024 fill: "none",
5025 fillRule: "evenodd"
5026 }, React__default.createElement("path", {
5027 d: "M24 0H0v24h24z"
5028 }), React__default.createElement("path", _extends({
5029 fill: color
5030 }, color !== "currentColor" && {
5031 fillOpacity: ".65"
5032 }, {
5033 fillRule: "nonzero",
5034 d: "M17.978 4.5a1.03 1.03 0 0 0 1.457 1.457l.332-.332a.5.5 0 0 1 .707 0l3.14 3.14a1 1 0 0 1 0 1.413L10.177 23.613a1 1 0 0 1-1.414 0L.28 15.128a1 1 0 0 1 0-1.414L13.714.279a1 1 0 0 1 1.414 0L18.31 3.46a.5.5 0 0 1 0 .707l-.332.332zM14.42.986L.986 14.421l8.485 8.485L22.906 9.471 20.12 6.685a2.03 2.03 0 0 1-2.87-2.87L14.42.986zm-3.889 3.182a.5.5 0 0 1 .707-.707l2.121 2.121a.5.5 0 1 1-.707.707l-2.121-2.121zM7.704 14.775a.5.5 0 1 1-.708-.707l4.95-4.95a.5.5 0 0 1 .707.707l-4.95 4.95zm4.242 0a.5.5 0 1 1-.707-.707l2.829-2.829a.5.5 0 0 1 .707.707l-2.829 2.829zm2.122-7.071a.5.5 0 0 1 .707-.708l2.121 2.122a.5.5 0 1 1-.707.707l-2.121-2.121zM5.91 3.984l1.403.511a.5.5 0 0 1-.342.94l-1.403-.51-2.792 7.67a.5.5 0 0 1-.94-.341L4.77 4.192a.503.503 0 0 1 .058-.16L6.076.607A1 1 0 0 1 7.358.008l3.232 1.176a.5.5 0 0 1 .3.641l-.233.639a.82.82 0 0 0 .49 1.05.5.5 0 1 1-.343.939 1.819 1.819 0 0 1-1.087-2.331l.062-.169L7.016.948 5.911 3.985zm11.692 7.255a.5.5 0 0 1 .707-.707l2.121 2.121a.5.5 0 1 1-.707.707l-2.12-2.12z"
5035 }))));
5036};
5037
5038TicketsIcon.displayName = "TicketsIcon";
5039TicketsIcon.propTypes = {
5040 children: PropTypes.node,
5041 color: PropTypes.string
5042};
5043TicketsIcon.defaultProps = {
5044 children: null,
5045 color: themes.global.gray01
5046};
5047
5048var UserIcon = function UserIcon(_ref) {
5049 var children = _ref.children,
5050 size = _ref.size,
5051 color = _ref.color,
5052 props = _objectWithoutProperties(_ref, ["children", "size", "color"]);
5053
5054 // this is required for backward compatibility. old icons use size of type number
5055 // new icons use string small, regular or large
5056 var widthHeightValue = Number.isInteger(+size) ? size : sizeMapper[size];
5057 return React__default.createElement("svg", _extends({}, props, {
5058 xmlns: "http://www.w3.org/2000/svg",
5059 width: widthHeightValue,
5060 height: widthHeightValue,
5061 viewBox: "0 0 24 24"
5062 }), children, React__default.createElement("g", {
5063 fill: "none",
5064 fillRule: "evenodd"
5065 }, React__default.createElement("path", {
5066 d: "M24 0H0v24h24z"
5067 }), React__default.createElement("path", _extends({
5068 fill: color
5069 }, color !== "currentColor" && {
5070 fillOpacity: ".65"
5071 }, {
5072 fillRule: "nonzero",
5073 d: "M12 23C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm0-1c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm0-8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-5 7.5a.5.5 0 1 1-1 0V19a6 6 0 1 1 12 0v1.5a.5.5 0 1 1-1 0V19a5 5 0 0 0-10 0v1.5z"
5074 }))));
5075};
5076
5077UserIcon.displayName = "UserIcon";
5078UserIcon.propTypes = {
5079 children: PropTypes.node,
5080 color: PropTypes.string,
5081 size: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(allSizes)])
5082};
5083UserIcon.defaultProps = {
5084 children: null,
5085 color: themes.global.gray01,
5086 size: allSizes[0]
5087};
5088
5089var SearchIconDeprecated = function SearchIconDeprecated(_ref) {
5090 var size = _ref.size,
5091 color = _ref.color,
5092 children = _ref.children,
5093 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
5094
5095 return React__default.createElement("svg", _extends({}, props, {
5096 viewBox: "0 0 16 16",
5097 width: size,
5098 height: size,
5099 fill: color
5100 }), React__default.createElement("title", null, "Search Icon"), React__default.createElement("path", {
5101 d: "M11.491 6.048c0 .672-.135 1.31-.404 1.897a5.01 5.01 0 0 1-1.102 1.552 5.273 5.273 0 0 1-1.632 1.05 5.39 5.39 0 0 1-3.987 0 5.283 5.283 0 0 1-1.632-1.05 5.01 5.01 0 0 1-1.102-1.552 4.531 4.531 0 0 1-.404-1.897c0-.666.135-1.302.404-1.892.269-.592.64-1.114 1.102-1.552A5.304 5.304 0 0 1 4.366 1.56a5.207 5.207 0 0 1 1.994-.384c.706 0 1.376.13 1.993.384.62.256 1.17.607 1.632 1.045.462.438.833.96 1.102 1.552a4.54 4.54 0 0 1 .404 1.892m4.346 8.977l-4.744-4.93a6.36 6.36 0 0 0 .62-.774 5.913 5.913 0 0 0 .89-2.115 5.893 5.893 0 0 0-.004-2.346 5.543 5.543 0 0 0-.361-1.128 5.98 5.98 0 0 0-.588-1.036 6.49 6.49 0 0 0-.794-.925A6.37 6.37 0 0 0 8.794.461 6.82 6.82 0 0 0 7.61.116a6.742 6.742 0 0 0-2.5 0A6.82 6.82 0 0 0 3.925.46a6.44 6.44 0 0 0-2.064 1.313 6.491 6.491 0 0 0-.793.923 5.98 5.98 0 0 0-.588 1.036c-.16.361-.28.741-.36 1.128a5.954 5.954 0 0 0 0 2.376c.08.388.2.768.36 1.13a6.182 6.182 0 0 0 1.381 1.959c.298.288.624.544.97.764a6.44 6.44 0 0 0 2.279.894 6.77 6.77 0 0 0 3.363-.224 6.296 6.296 0 0 0 1.708-.873l4.749 4.925a.56.56 0 0 0 .215.145.701.701 0 0 0 .453.011.514.514 0 0 0 .2-.114.561.561 0 0 0 .039-.828"
5102 }));
5103};
5104
5105SearchIconDeprecated.propTypes = {
5106 size: PropTypes.number.isRequired,
5107 color: PropTypes.string,
5108 children: PropTypes.node
5109};
5110SearchIconDeprecated.defaultProps = {
5111 children: null,
5112 color: "currentColor"
5113};
5114
5115var listIcons = {
5116 small: function small(color, children, props) {
5117 return React__default.createElement("svg", _extends({}, props, {
5118 xmlns: "http://www.w3.org/2000/svg",
5119 width: "20",
5120 height: "13",
5121 viewBox: "0 0 20 13"
5122 }), children, React__default.createElement("path", _extends({
5123 fill: color
5124 }, color !== "currentColor" && {
5125 fillOpacity: ".65"
5126 }, {
5127 fillRule: "evenodd",
5128 d: "M19.502 12.002h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm0-5h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm0-5h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm-17.998.996a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 1.505C0 1.087.146.732.44.439A1.45 1.45 0 0 1 1.503 0c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147zm0 7.002a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 6.505c0-.417.146-.772.44-1.065A1.45 1.45 0 0 1 1.503 5c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147zm0 7.002a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 11.505c0-.417.146-.772.44-1.065A1.45 1.45 0 0 1 1.503 10c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147z"
5129 })));
5130 },
5131 large: function large(color, children, props) {
5132 return React__default.createElement("svg", _extends({}, props, {
5133 xmlns: "http://www.w3.org/2000/svg",
5134 width: "24",
5135 height: "17",
5136 viewBox: "0 0 24 17"
5137 }), children, React__default.createElement("path", _extends({
5138 fill: color
5139 }, color !== "currentColor" && {
5140 fillOpacity: ".65"
5141 }, {
5142 fillRule: "evenodd",
5143 d: "M19.502 12.002h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm0-5h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm0-5h-15a.48.48 0 0 1-.352-.147.48.48 0 0 1-.146-.351c0-.143.049-.264.146-.361a.48.48 0 0 1 .352-.147h15a.48.48 0 0 1 .352.147.491.491 0 0 1 .146.36.48.48 0 0 1-.146.352.48.48 0 0 1-.352.147zm-17.998.996a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 1.505C0 1.087.146.732.44.439A1.45 1.45 0 0 1 1.503 0c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147zm0 7.002a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 6.505c0-.417.146-.772.44-1.065A1.45 1.45 0 0 1 1.503 5c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147zm0 7.002a1.45 1.45 0 0 1-1.065-.44A1.438 1.438 0 0 1 0 11.505c0-.417.146-.772.44-1.065A1.45 1.45 0 0 1 1.503 10c.41 0 .762.146 1.055.44.293.292.439.647.439 1.064 0 .41-.146.762-.44 1.055-.292.293-.644.439-1.054.439zm0-2.002a.491.491 0 0 0-.361.147.491.491 0 0 0-.147.36.48.48 0 0 0 .147.352.491.491 0 0 0 .36.147.48.48 0 0 0 .352-.147.48.48 0 0 0 .147-.351.491.491 0 0 0-.147-.361.48.48 0 0 0-.351-.147z"
5144 })));
5145 }
5146};
5147
5148var ListIcon = function ListIcon(_ref) {
5149 var size = _ref.size,
5150 color = _ref.color,
5151 children = _ref.children,
5152 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
5153
5154 return listIcons[size](color, children, props);
5155};
5156
5157ListIcon.displayName = "ListIcon";
5158ListIcon.propTypes = {
5159 size: PropTypes.oneOf(smallLarge),
5160 children: PropTypes.node,
5161 color: PropTypes.string
5162};
5163ListIcon.defaultProps = {
5164 size: smallLarge[0],
5165 children: null,
5166 color: themes.global.gray01
5167};
5168
5169var WarningIcon = function WarningIcon(_ref) {
5170 var size = _ref.size,
5171 children = _ref.children,
5172 props = _objectWithoutProperties(_ref, ["size", "children"]);
5173
5174 return React__default.createElement("svg", _extends({
5175 width: size,
5176 height: size,
5177 viewBox: "0 0 36 36"
5178 }, props), children, React__default.createElement("g", {
5179 fill: "none",
5180 fillRule: "evenodd"
5181 }, React__default.createElement("path", {
5182 d: "M0 0h36v36H0z"
5183 }), React__default.createElement("path", {
5184 fill: "#F2BD2A",
5185 d: "M1.38 32.54L16.652 2.992a1 1 0 0 1 1.766-.02L34.59 32.52a1 1 0 0 1-.877 1.48H2.268a1 1 0 0 1-.889-1.46z"
5186 }), React__default.createElement("circle", {
5187 cx: "17.5",
5188 cy: "29.5",
5189 r: "1.5",
5190 fill: "#FFF"
5191 }), React__default.createElement("path", {
5192 fill: "#FFF",
5193 d: "M17.5 25a1.5 1.5 0 0 0 1.5-1.5v-10a1.5 1.5 0 0 0-3 0v10a1.5 1.5 0 0 0 1.5 1.5z"
5194 })));
5195};
5196
5197WarningIcon.defaultProps = {
5198 children: null
5199};
5200WarningIcon.propTypes = {
5201 size: PropTypes__default.number.isRequired,
5202 children: PropTypes__default.node
5203};
5204
5205var VenueSearchIcon = function VenueSearchIcon(_ref) {
5206 var children = _ref.children,
5207 color = _ref.color,
5208 props = _objectWithoutProperties(_ref, ["children", "color"]);
5209
5210 return React__default.createElement("svg", _extends({}, props, {
5211 xmlns: "http://www.w3.org/2000/svg",
5212 width: "20",
5213 height: "20",
5214 viewBox: "0 0 1024 1024"
5215 }), children, React__default.createElement("path", {
5216 fill: color,
5217 d: "M1012.992 10.906c-5.888-5.939-13.312-9.37-21.76-10.394-8.192-0.922-15.974 0.512-23.552 4.608l-948.326 549.376c-7.424 3.994-12.954 10.086-16.384 18.074-3.379 8.192-3.84 16.384-1.536 23.552 1.946 8.448 6.451 15.36 13.414 20.582 6.758 5.12 14.336 7.68 22.63 7.68h362.086v361.984c0 8.704 2.56 16.486 7.68 23.040 5.12 6.502 11.776 11.008 19.456 13.312 2.253 0.717 4.608 1.024 7.014 1.024h3.226c6.656 0 12.902-1.536 18.637-4.608 5.939-3.226 10.752-7.834 14.080-13.824l549.12-948.89c4.403-7.322 6.042-15.36 4.813-23.757-1.178-8.090-4.608-15.258-10.598-21.658zM463.872 560.64c-7.168-7.168-16.538-11.008-26.931-11.008h-259.789l706.406-409.344-408.781 706.918v-260.25c0-10.086-3.789-19.2-10.957-26.368z"
5218 }));
5219};
5220
5221VenueSearchIcon.displayName = "VenueSearchIcon";
5222VenueSearchIcon.propTypes = {
5223 children: PropTypes.node,
5224 color: PropTypes.string
5225};
5226VenueSearchIcon.defaultProps = {
5227 children: null,
5228 color: themes.global.gray03
5229};
5230
5231var CallUsIcon = function CallUsIcon(_ref) {
5232 var children = _ref.children,
5233 color = _ref.color,
5234 props = _objectWithoutProperties(_ref, ["children", "color"]);
5235
5236 return React__default.createElement("svg", _extends({}, props, {
5237 width: "24px",
5238 height: "24px",
5239 viewBox: "0 0 24 24",
5240 xmlns: "http://www.w3.org/2000/svg"
5241 }), children, React__default.createElement("g", {
5242 stroke: "none",
5243 strokeWidth: "1",
5244 fill: "none",
5245 fillRule: "evenodd"
5246 }, React__default.createElement("g", null, React__default.createElement("rect", {
5247 x: "0",
5248 y: "0",
5249 width: "24",
5250 height: "24"
5251 }), React__default.createElement("path", _extends({
5252 fill: color
5253 }, color !== "currentColor" && {
5254 fillOpacity: ".65"
5255 }, {
5256 fillRule: "nonzero",
5257 d: "M13.6346466,16.1541466 C14.6109088,15.1778845 16.1934912,15.1778845 17.1696701,16.1540633 L19.2919795,18.2753729 C20.2680156,19.2526587 20.2680156,20.8352413 19.2916016,21.8104052 L18.1271043,22.9739021 C16.9535357,24.1498039 15.1112383,24.334309 13.7243767,23.416739 C8.55628422,19.9986402 4.00024878,15.4426048 0.583153271,10.2755116 C-0.335354484,8.88666249 -0.151863125,7.04865634 1.02464661,5.87214661 L2.18864661,4.70814661 C3.16390876,3.73288446 4.74849124,3.73288446 5.72367005,4.70806329 L7.84597981,6.82937317 C8.82094006,7.80558338 8.82094006,9.38881662 7.84597981,10.3650268 L7.84575339,10.3652534 L7.46058399,10.7504228 C9.18451287,12.8103957 11.1861854,14.8118396 13.2495481,16.5392452 L13.6346466,16.1541466 Z M7.13872995,7.53633671 L5.01664661,5.41525339 C4.43190876,4.83051554 3.48049124,4.83051554 2.89575339,5.41525339 L1.73175339,6.57925339 C0.891635087,7.41937169 0.760681463,8.73111502 1.41725168,9.72389591 C4.76015122,14.7787952 9.22011578,19.2387598 14.2760904,22.5827054 C15.266653,23.2380776 16.582124,23.1063339 17.4197984,22.2669948 L18.5848732,21.1029202 C19.1703844,20.5181587 19.1703844,19.5687413 18.5847299,18.9823367 L16.4626466,16.8612534 C15.8769088,16.2755155 14.9274912,16.2755155 14.3417534,16.8612534 L13.6347534,17.5682534 C13.4530135,17.7499933 13.1630913,17.7643445 12.9642915,17.6014415 C10.6107027,15.6728343 8.32265683,13.3850497 6.398377,11.035509 C6.23555629,10.8367054 6.24994152,10.5468517 6.43164661,10.3651466 L7.13852537,9.65826785 C7.72345993,9.07246942 7.72342489,8.12178154 7.13872995,7.53633671 Z M12,1 C11.7238576,1 11.5,0.776142375 11.5,0.5 C11.5,0.223857625 11.7238576,0 12,0 C18.6281424,0 24,5.37185763 24,12 C24,12.2761424 23.7761424,12.5 23.5,12.5 C23.2238576,12.5 23,12.2761424 23,12 C23,5.92414237 18.0758576,1 12,1 Z M12,5 C11.7238576,5 11.5,4.77614237 11.5,4.5 C11.5,4.22385763 11.7238576,4 12,4 C16.4184775,4 20,7.58119268 20,12 C20,12.2761424 19.7761424,12.5 19.5,12.5 C19.2238576,12.5 19,12.2761424 19,12 C19,8.13349805 15.8662133,5 12,5 Z M12,9 C11.7238576,9 11.5,8.77614237 11.5,8.5 C11.5,8.22385763 11.7238576,8 12,8 C14.2094657,8 16,9.7901809 16,12 C16,12.2761424 15.7761424,12.5 15.5,12.5 C15.2238576,12.5 15,12.2761424 15,12 C15,10.3425098 13.6572252,9 12,9 Z"
5258 })))));
5259};
5260
5261CallUsIcon.displayName = "CallUsIcon";
5262CallUsIcon.propTypes = {
5263 children: PropTypes.node,
5264 color: PropTypes.string
5265};
5266CallUsIcon.defaultProps = {
5267 children: null,
5268 color: themes.global.gray01
5269};
5270
5271var CartIcon = function CartIcon(_ref) {
5272 var children = _ref.children,
5273 color = _ref.color,
5274 props = _objectWithoutProperties(_ref, ["children", "color"]);
5275
5276 return React__default.createElement("svg", _extends({}, props, {
5277 width: "24px",
5278 height: "24px",
5279 viewBox: "0 0 24 24",
5280 xmlns: "http://www.w3.org/2000/svg"
5281 }), children, React__default.createElement("g", {
5282 stroke: "none",
5283 strokeWidth: "1",
5284 fill: "none",
5285 fillRule: "evenodd"
5286 }, React__default.createElement("g", null, React__default.createElement("rect", {
5287 x: "0",
5288 y: "0",
5289 width: "24",
5290 height: "24"
5291 }), React__default.createElement("path", _extends({
5292 fill: color
5293 }, color !== "currentColor" && {
5294 fillOpacity: ".65"
5295 }, {
5296 fillRule: "nonzero",
5297 d: "M17.7643947,19 L9.23560526,19 C9.71088995,19.5308599 10,20.2318383 10,21 C10,22.6561424 8.65614237,24 7,24 C5.34385763,24 4,22.6561424 4,21 C4,19.5425652 5.04072549,18.3269735 6.41914573,18.0562556 L3.57643646,1 L0.5,1 C0.223857625,1 -1.77635684e-14,0.776142375 -1.77635684e-14,0.5 C-1.77635684e-14,0.223857625 0.223857625,0 0.5,0 L4,0 C4.24441958,0 4.45301463,0.176706521 4.49319696,0.417800506 L7.08890435,15.9920448 L20.1202503,15.0267814 L22.8282847,6 L7.5,6 C7.22385763,6 7,5.77614237 7,5.5 C7,5.22385763 7.22385763,5 7.5,5 L23.5003,5 C23.8352313,5 24.0754549,5.32286798 23.9792131,5.64367394 L20.9792131,15.6436739 C20.9196715,15.8421462 20.74388,15.9833272 20.537235,15.9986339 L7.25398957,16.9825562 L7.42356354,18 L20,18 C21.6561424,18 23,19.3438576 23,21 C23,22.6561424 21.6561424,24 20,24 C18.3438576,24 17,22.6561424 17,21 C17,20.2318383 17.2891101,19.5308599 17.7643947,19 Z M18,21 C18,22.1038576 18.8961424,23 20,23 C21.1038576,23 22,22.1038576 22,21 C22,19.8961424 21.1038576,19 20,19 C18.8961424,19 18,19.8961424 18,21 Z M5,21 C5,22.1038576 5.89614237,23 7,23 C8.10385763,23 9,22.1038576 9,21 C9,19.8961424 8.10385763,19 7,19 C5.89614237,19 5,19.8961424 5,21 Z"
5298 })))));
5299};
5300
5301CartIcon.displayName = "CartIcon";
5302CartIcon.propTypes = {
5303 children: PropTypes.node,
5304 color: PropTypes.string
5305};
5306CartIcon.defaultProps = {
5307 children: null,
5308 color: themes.global.gray01
5309};
5310
5311var CheckingAccountIcon = function CheckingAccountIcon(_ref) {
5312 var children = _ref.children,
5313 color = _ref.color,
5314 props = _objectWithoutProperties(_ref, ["children", "color"]);
5315
5316 return React__default.createElement("svg", _extends({}, props, {
5317 width: "24px",
5318 height: "24px",
5319 viewBox: "0 0 24 24",
5320 xmlns: "http://www.w3.org/2000/svg"
5321 }), children, React__default.createElement("g", {
5322 stroke: "none",
5323 strokeWidth: "1",
5324 fill: "none",
5325 fillRule: "evenodd"
5326 }, React__default.createElement("g", null, React__default.createElement("rect", {
5327 x: "0",
5328 y: "0",
5329 width: "24",
5330 height: "24"
5331 }), React__default.createElement("path", _extends({
5332 fill: color
5333 }, color !== "currentColor" && {
5334 fillOpacity: ".65"
5335 }, {
5336 fillRule: "nonzero",
5337 d: "M20,16 L20,5 L1,5 L1,16 L20,16 Z M20.5,17 L0.5,17 C0.223857625,17 0,16.7761424 0,16.5 L0,4.5 C0,4.22385763 0.223857625,4 0.5,4 L20.5,4 C20.7761424,4 21,4.22385763 21,4.5 L21,16.5 C21,16.7761424 20.7761424,17 20.5,17 Z M2.5,10 C2.22385763,10 2,9.77614237 2,9.5 C2,9.22385763 2.22385763,9 2.5,9 L9.5,9 C9.77614237,9 10,9.22385763 10,9.5 C10,9.77614237 9.77614237,10 9.5,10 L2.5,10 Z M2.5,14 C2.22385763,14 2,13.7761424 2,13.5 C2,13.2238576 2.22385763,13 2.5,13 L18.5,13 C18.7761424,13 19,13.2238576 19,13.5 C19,13.7761424 18.7761424,14 18.5,14 L2.5,14 Z M18.5,7 C18.7761424,7 19,7.22385763 19,7.5 L19,9.5 C19,9.77614237 18.7761424,10 18.5,10 L12.5,10 C12.2238576,10 12,9.77614237 12,9.5 L12,7.5 C12,7.22385763 12.2238576,7 12.5,7 L18.5,7 Z M18,8 L13,8 L13,9 L18,9 L18,8 Z M22,18 L22,6.5 C22,6.22385763 22.2238576,6 22.5,6 C22.7761424,6 23,6.22385763 23,6.5 L23,18.5 C23,18.7761424 22.7761424,19 22.5,19 L2.5,19 C2.22385763,19 2,18.7761424 2,18.5 C2,18.2238576 2.22385763,18 2.5,18 L22,18 Z"
5338 })))));
5339};
5340
5341CheckingAccountIcon.displayName = "CheckingAccountIcon";
5342CheckingAccountIcon.propTypes = {
5343 children: PropTypes.node,
5344 color: PropTypes.string
5345};
5346CheckingAccountIcon.defaultProps = {
5347 children: null,
5348 color: themes.global.gray01
5349};
5350
5351var CompressIcon = function CompressIcon(_ref) {
5352 var children = _ref.children,
5353 color = _ref.color,
5354 props = _objectWithoutProperties(_ref, ["children", "color"]);
5355
5356 return React__default.createElement("svg", _extends({}, props, {
5357 xmlns: "http://www.w3.org/2000/svg",
5358 width: "24px",
5359 height: "24px",
5360 viewBox: "0 0 24 24"
5361 }), children, React__default.createElement("g", {
5362 stroke: "none",
5363 strokeWidth: "1",
5364 fill: "none",
5365 fillRule: "evenodd"
5366 }, React__default.createElement("g", null, React__default.createElement("rect", {
5367 x: "0",
5368 y: "0",
5369 width: "24",
5370 height: "24"
5371 }), React__default.createElement("path", _extends({
5372 fill: color
5373 }, color !== "currentColor" && {
5374 fillOpacity: ".65"
5375 }, {
5376 fillRule: "nonzero",
5377 d: "M9.29289322,14 L4.5,14 C4.22385763,14 4,13.7761424 4,13.5 C4,13.2238576 4.22385763,13 4.5,13 L10.5,13 C10.7761424,13 11,13.2238576 11,13.5 L11,19.5 C11,19.7761424 10.7761424,20 10.5,20 C10.2238576,20 10,19.7761424 10,19.5 L10,14.7071068 L3.85355339,20.8535534 C3.65829124,21.0488155 3.34170876,21.0488155 3.14644661,20.8535534 C2.95118446,20.6582912 2.95118446,20.3417088 3.14644661,20.1464466 L9.29289322,14 Z M14,9.29289322 L20.1464466,3.14644661 C20.3417088,2.95118446 20.6582912,2.95118446 20.8535534,3.14644661 C21.0488155,3.34170876 21.0488155,3.65829124 20.8535534,3.85355339 L14.7071068,10 L19.5,10 C19.7761424,10 20,10.2238576 20,10.5 C20,10.7761424 19.7761424,11 19.5,11 L13.5,11 C13.2238576,11 13,10.7761424 13,10.5 L13,4.5 C13,4.22385763 13.2238576,4 13.5,4 C13.7761424,4 14,4.22385763 14,4.5 L14,9.29289322 Z"
5378 })))));
5379};
5380
5381CompressIcon.displayName = "CompressIcon";
5382CompressIcon.propTypes = {
5383 children: PropTypes.node,
5384 color: PropTypes.string
5385};
5386CompressIcon.defaultProps = {
5387 children: null,
5388 color: themes.global.gray01
5389};
5390
5391var CreateNewIcon = function CreateNewIcon(_ref) {
5392 var children = _ref.children,
5393 color = _ref.color,
5394 props = _objectWithoutProperties(_ref, ["children", "color"]);
5395
5396 return React__default.createElement("svg", _extends({}, props, {
5397 xmlns: "http://www.w3.org/2000/svg",
5398 width: "24px",
5399 height: "24px",
5400 viewBox: "0 0 24 24"
5401 }), children, React__default.createElement("g", {
5402 stroke: "none",
5403 strokeWidth: "1",
5404 fill: "none",
5405 fillRule: "evenodd"
5406 }, React__default.createElement("path", _extends({
5407 fill: color
5408 }, color !== "currentColor" && {
5409 fillOpacity: ".65"
5410 }, {
5411 fillRule: "nonzero",
5412 d: "M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 Z M12,23 C5.92486775,23 1,18.0751322 1,12 C1,5.92486775 5.92486775,1 12,1 C18.0751322,1 23,5.92486775 23,12 C23,18.0751322 18.0751322,23 12,23 Z M11.5,5 C11.5,4.72385763 11.7238576,4.5 12,4.5 C12.2761424,4.5 12.5,4.72385763 12.5,5 L12.5,19 C12.5,19.2761424 12.2761424,19.5 12,19.5 C11.7238576,19.5 11.5,19.2761424 11.5,19 L11.5,5 Z M5,12.5 C4.72385763,12.5 4.5,12.2761424 4.5,12 C4.5,11.7238576 4.72385763,11.5 5,11.5 L19,11.5 C19.2761424,11.5 19.5,11.7238576 19.5,12 C19.5,12.2761424 19.2761424,12.5 19,12.5 L5,12.5 Z"
5413 }))));
5414};
5415
5416CreateNewIcon.displayName = "CreateNewIcon";
5417CreateNewIcon.propTypes = {
5418 children: PropTypes.node,
5419 color: PropTypes.string
5420};
5421CreateNewIcon.defaultProps = {
5422 children: null,
5423 color: themes.global.gray01
5424};
5425
5426var emailIcons = {
5427 small: function small(color, children, props) {
5428 return React__default.createElement("svg", _extends({}, props, {
5429 width: "16px",
5430 height: "16px",
5431 viewBox: "0 0 16 16",
5432 xmlns: "http://www.w3.org/2000/svg"
5433 }), children, React__default.createElement("g", {
5434 stroke: "none",
5435 strokeWidth: "1",
5436 fill: "none",
5437 fillRule: "evenodd"
5438 }, React__default.createElement("g", null, React__default.createElement("rect", {
5439 x: "0",
5440 y: "0",
5441 width: "16",
5442 height: "16"
5443 }), React__default.createElement("path", _extends({
5444 fill: color
5445 }, color !== "currentColor" && {
5446 fillOpacity: ".65"
5447 }, {
5448 fillRule: "nonzero",
5449 d: "M15,4.43425855 L8.2773501,8.91602515 C8.10940039,9.02799162 7.89059961,9.02799162 7.7226499,8.91602515 L1,4.43425855 L1,12.5 C1,12.7761424 1.22385763,13 1.5,13 L14.5,13 C14.7761424,13 15,12.7761424 15,12.5 L15,4.43425855 Z M14.9439568,3.26977022 C14.8606656,3.10948483 14.6931186,3 14.5,3 L1.5,3 C1.30688141,3 1.13933437,3.10948483 1.05604315,3.26977022 L8,7.89907479 L14.9439568,3.26977022 Z M-2.70399954e-14,3.50683619 C-7.96576616e-05,3.50136696 -6.98220838e-05,3.49589325 2.99669269e-05,3.49041737 C0.00518497738,2.66640023 0.674769432,2 1.5,2 L14.5,2 C15.3252306,2 15.994815,2.66640023 15.99997,3.49041737 C16.0000698,3.49589325 16.0000797,3.50136696 16,3.5068362 L16,12.5 C16,13.3284271 15.3284271,14 14.5,14 L1.5,14 C0.671572875,14 -2.64788124e-14,13.3284271 -2.66453458e-14,12.5 L-2.66453458e-14,3.50683619 Z"
5450 })))));
5451 },
5452 large: function large(color, children, props) {
5453 return React__default.createElement("svg", _extends({}, props, {
5454 xmlns: "http://www.w3.org/2000/svg",
5455 width: "24",
5456 height: "24",
5457 viewBox: "0 0 24 24"
5458 }), children, React__default.createElement("g", {
5459 stroke: "none",
5460 strokeWidth: "1",
5461 fill: "none",
5462 fillRule: "evenodd"
5463 }, React__default.createElement("g", null, React__default.createElement("rect", {
5464 x: "0",
5465 y: "0",
5466 width: "24",
5467 height: "24"
5468 }), React__default.createElement("path", _extends({
5469 fill: color
5470 }, color !== "currentColor" && {
5471 fillOpacity: ".65"
5472 }, {
5473 fillRule: "nonzero",
5474 d: "M23,6.45690981 L12.2855322,13.9104526 C12.1138997,14.0298491 11.8861003,14.0298491 11.7144678,13.9104526 L1,6.45690981 L1,19.5 C1,19.7761424 1.22385763,20 1.5,20 L22.5,20 C22.7761424,20 23,19.7761424 23,19.5 L23,6.45690981 Z M23,5.23874236 L23,4.5 C23,4.22385763 22.7761424,4 22.5,4 L1.5,4 C1.22385763,4 1,4.22385763 1,4.5 L1,5.23874236 L12,12.8909163 L23,5.23874236 Z M6.65462761e-14,5.50621804 C-5.89125079e-05,5.50178198 -5.89867691e-05,5.49734329 -1.18291725e-09,5.49290319 L9.41469193e-14,4.5 C9.40636525e-14,3.67157288 0.671572875,3 1.5,3 L22.5,3 C23.3284271,3 24,3.67157288 24,4.5 L24,5.4929031 C24.000059,5.49734329 24.0000589,5.50178198 24,5.50621804 L24,19.5 C24,20.3284271 23.3284271,21 22.5,21 L1.5,21 C0.671572875,21 9.43134527e-14,20.3284271 9.41469193e-14,19.5 L9.41469193e-14,5.50621804 Z"
5475 })))));
5476 }
5477};
5478
5479var EmailIcon = function EmailIcon(_ref) {
5480 var size = _ref.size,
5481 color = _ref.color,
5482 children = _ref.children,
5483 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
5484
5485 return emailIcons[size](color, children, props);
5486};
5487
5488EmailIcon.displayName = "EmailIcon";
5489EmailIcon.propTypes = {
5490 children: PropTypes.node,
5491 size: PropTypes.oneOf(smallLarge),
5492 color: PropTypes.string
5493};
5494EmailIcon.defaultProps = {
5495 children: null,
5496 size: smallLarge[1],
5497 color: themes.global.gray01
5498};
5499
5500var ExchangeTicketsIcon = function ExchangeTicketsIcon(_ref) {
5501 var children = _ref.children,
5502 color = _ref.color,
5503 props = _objectWithoutProperties(_ref, ["children", "color"]);
5504
5505 return React__default.createElement("svg", _extends({}, props, {
5506 xmlns: "http://www.w3.org/2000/svg",
5507 width: "24px",
5508 height: "24px",
5509 viewBox: "0 0 24 24"
5510 }), children, React__default.createElement("g", {
5511 stroke: "none",
5512 strokeWidth: "1",
5513 fill: "none",
5514 fillRule: "evenodd"
5515 }, React__default.createElement("g", {
5516 transform: "translate(-1.000000, -1.000000)"
5517 }, React__default.createElement("rect", {
5518 x: "1",
5519 y: "1",
5520 width: "24",
5521 height: "24"
5522 }), React__default.createElement("path", _extends({
5523 fill: color
5524 }, color !== "currentColor" && {
5525 fillOpacity: ".65"
5526 }, {
5527 fillRule: "nonzero",
5528 d: "M2.70710678,9 L13.5,9 C13.7761424,9 14,9.22385763 14,9.5 C14,9.77614237 13.7761424,10 13.5,10 L2.70710678,10 L4.85355339,12.1464466 C5.04881554,12.3417088 5.04881554,12.6582912 4.85355339,12.8535534 C4.65829124,13.0488155 4.34170876,13.0488155 4.14644661,12.8535534 L1.14644661,9.85355339 C0.951184464,9.65829124 0.951184464,9.34170876 1.14644661,9.14644661 L4.14644661,6.14644661 C4.34170876,5.95118446 4.65829124,5.95118446 4.85355339,6.14644661 C5.04881554,6.34170876 5.04881554,6.65829124 4.85355339,6.85355339 L2.70710678,9 Z M18.2928932,4 L16.1464466,1.85355339 C15.9511845,1.65829124 15.9511845,1.34170876 16.1464466,1.14644661 C16.3417088,0.951184464 16.6582912,0.951184464 16.8535534,1.14644661 L19.8535534,4.14644661 C20.0488155,4.34170876 20.0488155,4.65829124 19.8535534,4.85355339 L16.8535534,7.85355339 C16.6582912,8.04881554 16.3417088,8.04881554 16.1464466,7.85355339 C15.9511845,7.65829124 15.9511845,7.34170876 16.1464466,7.14644661 L18.2928932,5 L7.5,5 C7.22385763,5 7,4.77614237 7,4.5 C7,4.22385763 7.22385763,4 7.5,4 L18.2928932,4 Z M19.9601551,18.131728 L15.7175144,13.8890873 L10.0606602,19.5459415 L14.3033009,23.7885822 L19.9601551,18.131728 Z M20.6672619,17.4246212 L22.7885822,15.3033009 L21.9393066,14.4540252 C21.230958,14.6195402 20.4809901,14.4099223 19.9601551,13.8890873 C19.4393201,13.3682523 19.2297022,12.6182844 19.3952172,11.9099358 L18.5459415,11.0606602 L16.4246212,13.1819805 L20.6672619,17.4246212 Z M13.9497475,24.8492424 L9,19.8994949 C8.80473785,19.7042328 8.80473785,19.3876503 9,19.1923882 L18.1923882,10 C18.3876503,9.80473785 18.7042328,9.80473785 18.8994949,10 L20.3137085,11.4142136 C20.4476246,11.5481297 20.4943859,11.7462135 20.4344968,11.9258808 L20.3971711,12.0378577 C20.263255,12.4396061 20.3678163,12.8825349 20.6672619,13.1819805 C20.9667075,13.4814261 21.4096363,13.5859874 21.8113847,13.4520713 L21.9233616,13.4147456 C22.1030289,13.3548565 22.3011127,13.4016178 22.4350288,13.5355339 L23.8492424,14.9497475 C24.0445046,15.1450096 24.0445046,15.4615921 23.8492424,15.6568542 L14.6568542,24.8492424 C14.4615921,25.0445046 14.1450096,25.0445046 13.9497475,24.8492424 Z"
5529 })))));
5530};
5531
5532ExchangeTicketsIcon.displayName = "ExchangeTicketsIcon";
5533ExchangeTicketsIcon.propTypes = {
5534 children: PropTypes.node,
5535 color: PropTypes.string
5536};
5537ExchangeTicketsIcon.defaultProps = {
5538 children: null,
5539 color: themes.global.gray01
5540};
5541
5542var ExpandIcon = function ExpandIcon(_ref) {
5543 var children = _ref.children,
5544 color = _ref.color,
5545 props = _objectWithoutProperties(_ref, ["children", "color"]);
5546
5547 return React__default.createElement("svg", _extends({}, props, {
5548 xmlns: "http://www.w3.org/2000/svg",
5549 width: "24px",
5550 height: "24px",
5551 viewBox: "0 0 24 24"
5552 }), children, React__default.createElement("g", {
5553 stroke: "none",
5554 strokeWidth: "1",
5555 fill: "none",
5556 fillRule: "evenodd"
5557 }, React__default.createElement("g", null, React__default.createElement("rect", {
5558 x: "0",
5559 y: "0",
5560 width: "24",
5561 height: "24"
5562 }), React__default.createElement("path", _extends({
5563 fill: color
5564 }, color !== "currentColor" && {
5565 fillOpacity: ".65"
5566 }, {
5567 fillRule: "nonzero",
5568 d: "M19.2928932,4 L14.5,4 C14.2238576,4 14,3.77614237 14,3.5 C14,3.22385763 14.2238576,3 14.5,3 L20.5,3 C20.7761424,3 21,3.22385763 21,3.5 L21,9.5 C21,9.77614237 20.7761424,10 20.5,10 C20.2238576,10 20,9.77614237 20,9.5 L20,4.70710678 L13.8535534,10.8535534 C13.6582912,11.0488155 13.3417088,11.0488155 13.1464466,10.8535534 C12.9511845,10.6582912 12.9511845,10.3417088 13.1464466,10.1464466 L19.2928932,4 Z M4,19.2928932 L10.1464466,13.1464466 C10.3417088,12.9511845 10.6582912,12.9511845 10.8535534,13.1464466 C11.0488155,13.3417088 11.0488155,13.6582912 10.8535534,13.8535534 L4.70710678,20 L9.5,20 C9.77614237,20 10,20.2238576 10,20.5 C10,20.7761424 9.77614237,21 9.5,21 L3.5,21 C3.22385763,21 3,20.7761424 3,20.5 L3,14.5 C3,14.2238576 3.22385763,14 3.5,14 C3.77614237,14 4,14.2238576 4,14.5 L4,19.2928932 Z"
5569 })))));
5570};
5571
5572ExpandIcon.displayName = "ExpandIcon";
5573ExpandIcon.propTypes = {
5574 children: PropTypes.node,
5575 color: PropTypes.string
5576};
5577ExpandIcon.defaultProps = {
5578 children: null,
5579 color: themes.global.gray01
5580};
5581
5582var FAQIcon = function FAQIcon(_ref) {
5583 var children = _ref.children,
5584 color = _ref.color,
5585 props = _objectWithoutProperties(_ref, ["children", "color"]);
5586
5587 return React__default.createElement("svg", _extends({}, props, {
5588 xmlns: "http://www.w3.org/2000/svg",
5589 width: "24px",
5590 height: "24px",
5591 viewBox: "0 0 24 24"
5592 }), children, React__default.createElement("g", {
5593 stroke: "none",
5594 strokeWidth: "1",
5595 fill: "none",
5596 fillRule: "evenodd"
5597 }, React__default.createElement("g", null, React__default.createElement("rect", {
5598 x: "0",
5599 y: "0",
5600 width: "24",
5601 height: "24"
5602 }), React__default.createElement("path", _extends({
5603 fill: color
5604 }, color !== "currentColor" && {
5605 fillOpacity: ".65"
5606 }, {
5607 fillRule: "nonzero",
5608 d: "M9.5,22 C9.77614237,22 10,22.2238576 10,22.5 C10,22.7761424 9.77614237,23 9.5,23 L2.5,23 C1.11928813,23 2.35922393e-15,21.8807119 2.22044605e-15,20.5 L0,2.5 C-1.38777878e-16,1.11928813 1.11928813,2.77555756e-16 2.5,0 L14.5,0 C15.8807119,9.71445147e-16 17,1.11928813 17,2.5 L17,6.5 C17,6.77614237 16.7761424,7 16.5,7 C16.2238576,7 16,6.77614237 16,6.5 L16,2.5 C16,1.67157288 15.3284271,1 14.5,1 L2.5,1 C1.67157288,1 1,1.67157288 1,2.5 L1,20.5 C1,21.3284271 1.67157288,22 2.5,22 L9.5,22 Z M3.5,6 C3.22385763,6 3,5.77614237 3,5.5 C3,5.22385763 3.22385763,5 3.5,5 L13.5,5 C13.7761424,5 14,5.22385763 14,5.5 C14,5.77614237 13.7761424,6 13.5,6 L3.5,6 Z M3.5,11 C3.22385763,11 3,10.7761424 3,10.5 C3,10.2238576 3.22385763,10 3.5,10 L8.5,10 C8.77614237,10 9,10.2238576 9,10.5 C9,10.7761424 8.77614237,11 8.5,11 L3.5,11 Z M3.5,16 C3.22385763,16 3,15.7761424 3,15.5 C3,15.2238576 3.22385763,15 3.5,15 L7.5,15 C7.77614237,15 8,15.2238576 8,15.5 C8,15.7761424 7.77614237,16 7.5,16 L3.5,16 Z M16.5,24 C12.3578644,24 9,20.6421356 9,16.5 C9,12.3578644 12.3578644,9 16.5,9 C20.6421356,9 24,12.3578644 24,16.5 C24,20.6421356 20.6421356,24 16.5,24 Z M16.5,23 C20.0898509,23 23,20.0898509 23,16.5 C23,12.9101491 20.0898509,10 16.5,10 C12.9101491,10 10,12.9101491 10,16.5 C10,20.0898509 12.9101491,23 16.5,23 Z M17,18.5 C17,18.7761424 16.7761424,19 16.5,19 C16.2238576,19 16,18.7761424 16,18.5 L16,17 C16,16.8328234 16.0835506,16.6767077 16.2226499,16.5839749 C17.6894365,15.6061171 18,15.2334409 18,14.5 C18,13.5580333 17.5349723,13 16.5,13 C15.4650277,13 15,13.5580333 15,14.5 C15,14.7761424 14.7761424,15 14.5,15 C14.2238576,15 14,14.7761424 14,14.5 C14,13.0419667 14.8683056,12 16.5,12 C18.1316944,12 19,13.0419667 19,14.5 C19,15.6146202 18.5417641,16.2141297 17,17.2659442 L17,18.5 Z M16.5,20 C16.775,20 17,20.224 17,20.5 C17,20.775 16.775,21 16.5,21 C16.223,21 16,20.775 16,20.5 C16,20.224 16.223,20 16.5,20 Z"
5609 })))));
5610};
5611
5612FAQIcon.displayName = "FAQIcon";
5613FAQIcon.propTypes = {
5614 children: PropTypes.node,
5615 color: PropTypes.string
5616};
5617FAQIcon.defaultProps = {
5618 children: null,
5619 color: themes.global.gray01
5620};
5621
5622var FavoriteIcon = function FavoriteIcon(_ref) {
5623 var children = _ref.children,
5624 color = _ref.color,
5625 props = _objectWithoutProperties(_ref, ["children", "color"]);
5626
5627 return React__default.createElement("svg", _extends({}, props, {
5628 xmlns: "http://www.w3.org/2000/svg",
5629 width: "24px",
5630 height: "22px",
5631 viewBox: "0 0 24 22",
5632 version: "1.1"
5633 }), children, React__default.createElement("g", _extends({
5634 stroke: "none",
5635 strokeWidth: "1",
5636 fill: "none",
5637 fillRule: "evenodd"
5638 }, color !== "currentColor" && {
5639 fillOpacity: ".65"
5640 }), React__default.createElement("g", {
5641 transform: "translate(-950.000000, -407.000000)",
5642 fill: color,
5643 fillRule: "nonzero"
5644 }, React__default.createElement("path", {
5645 d: "M968.07706,407.053152 C971.5943,407.460137 974,410.048724 974,414.245292 C974,418.78884 971.698203,421.91696 966.97459,425.506474 C966.631149,425.767458 966.283116,426.026384 965.816501,426.369552 C965.687396,426.464501 965.532825,426.57795 965.253963,426.782612 C965.031956,426.945648 964.867028,427.067159 964.70796,427.185054 C964.142693,427.604004 963.498277,428.111251 962.774711,428.706795 C962.331151,429.093015 961.668849,429.093015 961.258126,428.73435 L961.225289,428.706795 C960.72163,428.268245 960.13994,427.81348 959.29204,427.185054 C959.132972,427.067159 958.968044,426.945648 958.746037,426.782612 C958.467175,426.57795 958.312604,426.464501 958.183499,426.369552 C957.716884,426.026384 957.368851,425.767458 957.02541,425.506474 C952.301797,421.91696 950,418.78884 950,414.245292 C950,410.048724 952.4057,407.460137 955.92294,407.053152 C958.209092,406.788618 960.56977,407.527361 962,408.915718 C963.43023,407.527361 965.790908,406.788618 968.07706,407.053152 Z M963.302492,425.307206 C963.464835,425.186884 963.632262,425.063533 963.856806,424.898633 C964.13657,424.693309 964.290003,424.580695 964.418033,424.486536 C964.875585,424.150034 965.214705,423.897739 965.546558,423.645561 C969.742398,420.457106 971.647059,417.86869 971.647059,414.245292 C971.647059,411.256638 970.154662,409.650786 967.805293,409.378937 C965.716097,409.137193 963.581221,410.105482 963.101564,411.378324 C962.719872,412.391201 961.280128,412.391201 960.898436,411.378324 C960.418779,410.105482 958.283903,409.137193 956.194707,409.378937 C953.845338,409.650786 952.352941,411.256638 952.352941,414.245292 C952.352941,417.86869 954.257602,420.457106 958.453442,423.645561 C958.785295,423.897739 959.124415,424.150034 959.581967,424.486536 C959.709997,424.580695 959.86343,424.693309 960.143194,424.898633 C960.367738,425.063533 960.535165,425.186884 960.697508,425.307206 C961.209397,425.686596 961.632747,426.008687 962.000165,426.301159 C962.372169,426.004947 962.793574,425.684394 963.302492,425.307206 Z"
5646 }))));
5647};
5648
5649FavoriteIcon.displayName = "FavoriteIcon";
5650FavoriteIcon.propTypes = {
5651 children: PropTypes.node,
5652 color: PropTypes.string
5653};
5654FavoriteIcon.defaultProps = {
5655 children: null,
5656 color: themes.global.gray01
5657};
5658
5659var GetHelpIcon = function GetHelpIcon(_ref) {
5660 var children = _ref.children,
5661 color = _ref.color,
5662 props = _objectWithoutProperties(_ref, ["children", "color"]);
5663
5664 return React__default.createElement("svg", _extends({}, props, {
5665 xmlns: "http://www.w3.org/2000/svg",
5666 width: "24px",
5667 height: "24px",
5668 viewBox: "0 0 24 24"
5669 }), children, React__default.createElement("g", {
5670 stroke: "none",
5671 strokeWidth: "1",
5672 fill: "none",
5673 fillRule: "evenodd"
5674 }, React__default.createElement("g", null, React__default.createElement("rect", {
5675 x: "0",
5676 y: "0",
5677 width: "24",
5678 height: "24"
5679 }), React__default.createElement("path", _extends({
5680 fill: color
5681 }, color !== "currentColor" && {
5682 fillOpacity: ".65"
5683 }, {
5684 fillRule: "nonzero",
5685 d: "M9.14644661,18.1464466 C9.2402148,18.0526784 9.36739176,18 9.5,18 L19.5,18 C21.4332224,18 23,16.4334929 23,14.5 L23,4.5 C23,2.56714237 21.4328576,1 19.5,1 L4.5,1 C2.56714237,1 1,2.56714237 1,4.5 L1,14.5 C1,16.4334929 2.56677762,18 4.5,18 C4.77614237,18 5,18.2238576 5,18.5 L5,22.2928932 L9.14644661,18.1464466 Z M9.70710678,19 L4.85355339,23.8535534 C4.53857096,24.1685358 4,23.9454524 4,23.5 L4,18.9725462 C1.74987944,18.7239 0,16.8167868 0,14.5 L0,4.5 C0,2.01485763 2.01485763,0 4.5,0 L19.5,0 C21.9851424,0 24,2.01485763 24,4.5 L24,14.5 C24,16.9858163 21.9854685,19 19.5,19 L9.70710678,19 Z M12,14 C12.275,14 12.5,14.224 12.5,14.5 C12.5,14.775 12.275,15 12,15 C11.723,15 11.5,14.775 11.5,14.5 C11.5,14.224 11.723,14 12,14 Z M12.5,10.897369 L12.5,12.5 C12.5,12.7761424 12.2761424,13 12,13 C11.7238576,13 11.5,12.7761424 11.5,12.5 L11.5,10.5555556 C11.5,10.3468658 11.6296137,10.1601249 11.8251229,10.0871348 C13.558936,9.43984457 14,8.91056781 14,7.83333333 C14,6.79166667 13.2460317,6 12,6 C10.7539683,6 10,6.79166667 10,7.83333333 C10,8.10947571 9.77614237,8.33333333 9.5,8.33333333 C9.22385763,8.33333333 9,8.10947571 9,7.83333333 C9,6.25 10.1904762,5 12,5 C13.8095238,5 15,6.25 15,7.83333333 C15,9.28508611 14.3476069,10.1456847 12.5,10.897369 Z"
5686 })), React__default.createElement("g", {
5687 transform: "translate(9.000000, 5.000000)"
5688 }))));
5689};
5690
5691GetHelpIcon.displayName = "GetHelpIcon";
5692GetHelpIcon.propTypes = {
5693 children: PropTypes.node,
5694 color: PropTypes.string
5695};
5696GetHelpIcon.defaultProps = {
5697 children: null,
5698 color: themes.global.gray01
5699};
5700
5701var GiftCardIcon = function GiftCardIcon(_ref) {
5702 var children = _ref.children,
5703 color = _ref.color,
5704 props = _objectWithoutProperties(_ref, ["children", "color"]);
5705
5706 return React__default.createElement("svg", _extends({}, props, {
5707 xmlns: "http://www.w3.org/2000/svg",
5708 width: "24px",
5709 height: "24px",
5710 viewBox: "0 0 24 24"
5711 }), children, React__default.createElement("g", {
5712 stroke: "none",
5713 strokeWidth: "1",
5714 fill: "none",
5715 fillRule: "evenodd"
5716 }, React__default.createElement("g", null, React__default.createElement("rect", {
5717 x: "0",
5718 y: "0",
5719 width: "24",
5720 height: "24"
5721 }), React__default.createElement("path", _extends({
5722 fill: color
5723 }, color !== "currentColor" && {
5724 fillOpacity: ".65"
5725 }, {
5726 fillRule: "nonzero",
5727 d: "M23,11 L23,7.50010618 C23,6.66825884 22.3306292,6 21.5003154,6 L13.2394751,6 C12.6911217,6.61411362 11.8926277,7 11,7 L9,7 L9,11 L23,11 Z M23,12 L9,12 L9,22 L21.4991358,22 C22.3245032,22 23,21.3261108 23,20.4998938 L23,12 Z M1,11 L8,11 L8,7 L6,7 C5.10737227,7 4.30887828,6.61411362 3.76052494,6 L2.49537277,6 C1.67468043,6 1,6.67441828 1,7.50010618 L1,11 Z M1,12 L1,20.4998938 C1,21.331675 1.669832,22 2.50086422,22 L8,22 L8,12 L1,12 Z M12.6281053,5.16578641 C12.8624939,4.83801738 13,4.43573657 13,4 C13,2.88942753 12.1082006,2 11,2 C9.88942753,2 9,2.89179941 9,4 L9,6 L11,6 C11.6415581,6 12.2093164,5.70239149 12.5744418,5.23737933 C12.5901963,5.2119044 12.6081745,5.18794981 12.6281053,5.16578641 Z M13.8304147,5 L21.5003154,5 C22.8825421,5 24,6.11560156 24,7.50010618 L24,20.4998938 C24,21.8789296 22.8762553,23 21.4991358,23 L2.50086422,23 C1.11805084,23 0,21.8844646 0,20.4998938 L0,7.50010618 C0,6.12204651 1.12248266,5 2.49537277,5 L3.16958528,5 C3.059706,4.68737429 3,4.35082973 3,4 C3,2.33654573 4.34010996,1 6,1 C7.04652965,1 7.96366724,1.5304223 8.5,2.3371915 C9.03633276,1.5304223 9.95347035,1 11,1 C12.65989,1 14,2.33654573 14,4 C14,4.35082973 13.940294,4.68737429 13.8304147,5 Z M4.3718947,5.16578641 C4.39182554,5.18794981 4.40980366,5.2119044 4.42555821,5.23737933 C4.79068362,5.70239149 5.35844191,6 6,6 L8,6 L8,4 C8,2.89179941 7.11057247,2 6,2 C4.89179941,2 4,2.88942753 4,4 C4,4.43573657 4.13750606,4.83801738 4.3718947,5.16578641 Z M20.5,17 C20.7761424,17 21,17.2238576 21,17.5 C21,17.7761424 20.7761424,18 20.5,18 L13.5,18 C13.2238576,18 13,17.7761424 13,17.5 C13,17.2238576 13.2238576,17 13.5,17 L20.5,17 Z M16.5,19 C16.7761424,19 17,19.2238576 17,19.5 C17,19.7761424 16.7761424,20 16.5,20 L13.5,20 C13.2238576,20 13,19.7761424 13,19.5 C13,19.2238576 13.2238576,19 13.5,19 L16.5,19 Z"
5728 })))));
5729};
5730
5731GiftCardIcon.displayName = "GiftCardIcon";
5732GiftCardIcon.propTypes = {
5733 children: PropTypes.node,
5734 color: PropTypes.string
5735};
5736GiftCardIcon.defaultProps = {
5737 children: null,
5738 color: themes.global.gray01
5739};
5740
5741var MinusIcon = function MinusIcon(_ref) {
5742 var children = _ref.children,
5743 color = _ref.color,
5744 props = _objectWithoutProperties(_ref, ["children", "color"]);
5745
5746 return React__default.createElement("svg", _extends({}, props, {
5747 xmlns: "http://www.w3.org/2000/svg",
5748 width: "24px",
5749 height: "24px",
5750 viewBox: "0 0 24 24"
5751 }), children, React__default.createElement("g", {
5752 stroke: "none",
5753 strokeWidth: "1",
5754 fill: "none",
5755 fillRule: "evenodd"
5756 }, React__default.createElement("g", {
5757 fillRule: "nonzero"
5758 }, React__default.createElement("rect", {
5759 x: "0",
5760 y: "0",
5761 width: "24",
5762 height: "24"
5763 }), React__default.createElement("path", _extends({
5764 fill: color
5765 }, color !== "currentColor" && {
5766 fillOpacity: ".65"
5767 }, {
5768 fillRule: "nonzero",
5769 d: "M4,12.5 C3.72385763,12.5 3.5,12.2761424 3.5,12 C3.5,11.7238576 3.72385763,11.5 4,11.5 L20,11.5 C20.2761424,11.5 20.5,11.7238576 20.5,12 C20.5,12.2761424 20.2761424,12.5 20,12.5 L4,12.5 Z"
5770 })))));
5771};
5772
5773MinusIcon.displayName = "MinusIcon";
5774MinusIcon.propTypes = {
5775 children: PropTypes.node,
5776 color: PropTypes.string
5777};
5778MinusIcon.defaultProps = {
5779 children: null,
5780 color: themes.global.gray01
5781};
5782
5783var MobileDeviceIcon = function MobileDeviceIcon(_ref) {
5784 var children = _ref.children,
5785 color = _ref.color,
5786 props = _objectWithoutProperties(_ref, ["children", "color"]);
5787
5788 return React__default.createElement("svg", _extends({}, props, {
5789 xmlns: "http://www.w3.org/2000/svg",
5790 width: "24px",
5791 height: "24px",
5792 viewBox: "0 0 24 24"
5793 }), children, React__default.createElement("g", {
5794 stroke: "none",
5795 strokeWidth: "1",
5796 fill: "none",
5797 fillRule: "evenodd"
5798 }, React__default.createElement("g", null, React__default.createElement("rect", {
5799 x: "0",
5800 y: "0",
5801 width: "24",
5802 height: "24"
5803 }), React__default.createElement("path", _extends({
5804 fill: color
5805 }, color !== "currentColor" && {
5806 fillOpacity: ".65"
5807 }, {
5808 fillRule: "nonzero",
5809 d: "M16.5,23 C17.3284271,23 18,22.3284271 18,21.5 L18,2.5 C18,1.67157288 17.3284271,1 16.5,1 L7.5,1 C6.67157288,1 6,1.67157288 6,2.5 L6,21.5 C6,22.3284271 6.67157288,23 7.5,23 L16.5,23 Z M16.5,24 L7.5,24 C6.11928813,24 5,22.8807119 5,21.5 L5,2.5 C5,1.11928813 6.11928813,7.21644966e-16 7.5,4.4408921e-16 L16.5,0 C17.8807119,-2.77555756e-16 19,1.11928813 19,2.5 L19,21.5 C19,22.8807119 17.8807119,24 16.5,24 Z M9.5,4 C9.22385763,4 9,3.77614237 9,3.5 C9,3.22385763 9.22385763,3 9.5,3 L14.5,3 C14.7761424,3 15,3.22385763 15,3.5 C15,3.77614237 14.7761424,4 14.5,4 L9.5,4 Z"
5810 })))));
5811};
5812
5813MobileDeviceIcon.displayName = "MobileDeviceIcon";
5814MobileDeviceIcon.propTypes = {
5815 children: PropTypes.node,
5816 color: PropTypes.string
5817};
5818MobileDeviceIcon.defaultProps = {
5819 children: null,
5820 color: themes.global.gray01
5821};
5822
5823var MobileTicketIcon = function MobileTicketIcon(_ref) {
5824 var children = _ref.children,
5825 color = _ref.color,
5826 props = _objectWithoutProperties(_ref, ["children", "color"]);
5827
5828 return React__default.createElement("svg", _extends({}, props, {
5829 xmlns: "http://www.w3.org/2000/svg",
5830 width: "24px",
5831 height: "24px",
5832 viewBox: "0 0 24 24"
5833 }), children, React__default.createElement("g", {
5834 stroke: "none",
5835 strokeWidth: "1",
5836 fill: "none",
5837 fillRule: "evenodd"
5838 }, React__default.createElement("path", _extends({
5839 fill: color
5840 }, color !== "currentColor" && {
5841 fillOpacity: ".65"
5842 }, {
5843 fillRule: "nonzero",
5844 d: "M6,20 L7,20 L7,8.5 C7,8.22385763 7.22385763,8 7.5,8 L10.5,8 C10.689386,8 10.8625176,8.10700119 10.9472136,8.2763932 L11,8.38196601 C11.189386,8.76073807 11.57652,9 12,9 C12.42348,9 12.810614,8.76073807 13,8.38196601 L13.0527864,8.2763932 C13.1374824,8.10700119 13.310614,8 13.5,8 L16.5,8 C16.7761424,8 17,8.22385763 17,8.5 L17,20 L18,20 L18,2.5 C18,1.67157288 17.3284271,1 16.5,1 L7.5,1 C6.67157288,1 6,1.67157288 6,2.5 L6,20 Z M6,21 L6,21.5 C6,22.3284271 6.67157288,23 7.5,23 L16.5,23 C17.3284271,23 18,22.3284271 18,21.5 L18,21 L6,21 Z M8,12 L16,12 L16,9 L13.7989429,9 C13.4151015,9.61791491 12.7365719,10 12,10 C11.2634281,10 10.5848985,9.61791491 10.2010571,9 L8,9 L8,12 Z M16,13 L8,13 L8,20 L16,20 L16,13 Z M11.5,4 C11.2238576,4 11,3.77614237 11,3.5 C11,3.22385763 11.2238576,3 11.5,3 L14.5,3 C14.7761424,3 15,3.22385763 15,3.5 C15,3.77614237 14.7761424,4 14.5,4 L11.5,4 Z M8.5,4 C8.22385763,4 8,3.77614237 8,3.5 C8,3.22385763 8.22385763,3 8.5,3 L9.5,3 C9.77614237,3 10,3.22385763 10,3.5 C10,3.77614237 9.77614237,4 9.5,4 L8.5,4 Z M16.5,24 L7.5,24 C6.11928813,24 5,22.8807119 5,21.5 L5,2.5 C5,1.11928813 6.11928813,7.21644966e-16 7.5,4.4408921e-16 L16.5,0 C17.8807119,-2.77555756e-16 19,1.11928813 19,2.5 L19,21.5 C19,22.8807119 17.8807119,24 16.5,24 Z"
5845 }))));
5846};
5847
5848MobileTicketIcon.displayName = "MobileTicketIcon";
5849MobileTicketIcon.propTypes = {
5850 children: PropTypes.node,
5851 color: PropTypes.string
5852};
5853MobileTicketIcon.defaultProps = {
5854 children: null,
5855 color: themes.global.gray01
5856};
5857
5858var PauseIcon = function PauseIcon(_ref) {
5859 var children = _ref.children,
5860 color = _ref.color,
5861 props = _objectWithoutProperties(_ref, ["children", "color"]);
5862
5863 return React__default.createElement("svg", _extends({}, props, {
5864 xmlns: "http://www.w3.org/2000/svg",
5865 width: "24px",
5866 height: "24px",
5867 viewBox: "0 0 24 24"
5868 }), children, React__default.createElement("g", {
5869 stroke: "none",
5870 strokeWidth: "1",
5871 fill: "none",
5872 fillRule: "evenodd"
5873 }, React__default.createElement("g", null, React__default.createElement("rect", {
5874 x: "0",
5875 y: "0",
5876 width: "24",
5877 height: "24"
5878 }), React__default.createElement("path", _extends({
5879 fill: color
5880 }, color !== "currentColor" && {
5881 fillOpacity: ".65"
5882 }, {
5883 fillRule: "nonzero",
5884 d: "M8.5,5 C8.22385763,5 8,5.22385763 8,5.5 L8,18.5 C8,18.7761424 8.22385763,19 8.5,19 L9.5,19 C9.77614237,19 10,18.7761424 10,18.5 L10,5.5 C10,5.22385763 9.77614237,5 9.5,5 L8.5,5 Z M8.5,4 L9.5,4 C10.3284271,4 11,4.67157288 11,5.5 L11,18.5 C11,19.3284271 10.3284271,20 9.5,20 L8.5,20 C7.67157288,20 7,19.3284271 7,18.5 L7,5.5 C7,4.67157288 7.67157288,4 8.5,4 Z M14.5,5 C14.2238576,5 14,5.22385763 14,5.5 L14,18.5 C14,18.7761424 14.2238576,19 14.5,19 L15.5,19 C15.7761424,19 16,18.7761424 16,18.5 L16,5.5 C16,5.22385763 15.7761424,5 15.5,5 L14.5,5 Z M14.5,4 L15.5,4 C16.3284271,4 17,4.67157288 17,5.5 L17,18.5 C17,19.3284271 16.3284271,20 15.5,20 L14.5,20 C13.6715729,20 13,19.3284271 13,18.5 L13,5.5 C13,4.67157288 13.6715729,4 14.5,4 Z"
5885 })))));
5886};
5887
5888PauseIcon.displayName = "PauseIcon";
5889PauseIcon.propTypes = {
5890 children: PropTypes.node,
5891 color: PropTypes.string
5892};
5893PauseIcon.defaultProps = {
5894 children: null,
5895 color: themes.global.gray01
5896};
5897
5898var PhoneSupportIcon = function PhoneSupportIcon(_ref) {
5899 var children = _ref.children,
5900 color = _ref.color,
5901 props = _objectWithoutProperties(_ref, ["children", "color"]);
5902
5903 return React__default.createElement("svg", _extends({}, props, {
5904 xmlns: "http://www.w3.org/2000/svg",
5905 width: "24px",
5906 height: "24px",
5907 viewBox: "0 0 24 24"
5908 }), children, React__default.createElement("g", {
5909 stroke: "none",
5910 strokeWidth: "1",
5911 fill: "none",
5912 fillRule: "evenodd"
5913 }, React__default.createElement("path", _extends({
5914 fill: color
5915 }, color !== "currentColor" && {
5916 fillOpacity: ".65"
5917 }, {
5918 fillRule: "nonzero",
5919 d: "M15,22 L15,23.5 C15,23.7761424 14.7761424,24 14.5,24 L9.5,24 C9.22385763,24 9,23.7761424 9,23.5 L9,20.5 C9,20.2238576 9.22385763,20 9.5,20 L14.5,20 C14.7761424,20 15,20.2238576 15,20.5 L15,21 L17.4951185,21 C18.3288037,21 19,20.3295796 19,19.5 L19,18 L18.5,18 C18.2238576,18 18,17.7761424 18,17.5 L18,7.5 C18,7.22385763 18.2238576,7 18.5,7 L18.9291111,7 C18.4438815,3.60770586 15.5264719,1 12,1 C8.47352809,1 5.55611852,3.60770586 5.07088886,7 L5.5,7 C5.77614237,7 6,7.22385763 6,7.5 L6,17.5 C6,17.7761424 5.77614237,18 5.5,18 L3,18 C1.34010996,18 2.27373675e-13,16.6634543 2.27373675e-13,15 L2.27373675e-13,10 C2.27373675e-13,8.34010996 1.33654573,7 3,7 L4.06189375,7 C4.55399184,3.05368842 7.92038235,0 12,0 C16.0796177,0 19.4460082,3.05368842 19.9381062,7 L21,7 C22.6634543,7 24,8.34010996 24,10 L24,15 C24,16.6634543 22.65989,18 21,18 L20,18 L20,19.5 C20,20.8821234 18.8808297,22 17.4951185,22 L15,22 Z M19,8 L19,17 L21,17 C22.1082006,17 23,16.1105725 23,15 L23,10 C23,8.89179941 22.1105725,8 21,8 L20,8 L19,8 Z M5,8 L4,8 L3,8 C1.88942753,8 1,8.89179941 1,10 L1,15 C1,16.1105725 1.89179941,17 3,17 L5,17 L5,8 Z M9,8.5 C9,8.22385763 9.22385763,8 9.5,8 C9.77614237,8 10,8.22385763 10,8.5 L10,10.5 C10,10.7761424 9.77614237,11 9.5,11 C9.22385763,11 9,10.7761424 9,10.5 L9,8.5 Z M8.0527864,13.7236068 C7.92929178,13.4766175 8.02940395,13.176281 8.2763932,13.0527864 C8.52338245,12.9292918 8.82371897,13.029404 8.9472136,13.2763932 C9.04592874,13.4738235 9.27590074,13.7984899 9.64468192,14.1262953 C10.2604843,14.6736753 11.0355056,15 12,15 C12.9644944,15 13.7395157,14.6736753 14.3553181,14.1262953 C14.7240993,13.7984899 14.9540713,13.4738235 15.0527864,13.2763932 C15.176281,13.029404 15.4766175,12.9292918 15.7236068,13.0527864 C15.970596,13.176281 16.0707082,13.4766175 15.9472136,13.7236068 C15.7959287,14.0261765 15.4946507,14.4515101 15.0196819,14.8737047 C14.2292343,15.5763247 13.2230056,16 12,16 C10.7769944,16 9.77076568,15.5763247 8.98031808,14.8737047 C8.50534926,14.4515101 8.20407126,14.0261765 8.0527864,13.7236068 Z M14,8.5 C14,8.22385763 14.2238576,8 14.5,8 C14.7761424,8 15,8.22385763 15,8.5 L15,10.5 C15,10.7761424 14.7761424,11 14.5,11 C14.2238576,11 14,10.7761424 14,10.5 L14,8.5 Z M10,23 L14,23 L14,21 L10,21 L10,23 Z"
5920 }))));
5921};
5922
5923PhoneSupportIcon.displayName = "PhoneSupportIcon";
5924PhoneSupportIcon.propTypes = {
5925 children: PropTypes.node,
5926 color: PropTypes.string
5927};
5928PhoneSupportIcon.defaultProps = {
5929 children: null,
5930 color: themes.global.gray01
5931};
5932
5933var PlayIcon = function PlayIcon(_ref) {
5934 var children = _ref.children,
5935 color = _ref.color,
5936 props = _objectWithoutProperties(_ref, ["children", "color"]);
5937
5938 return React__default.createElement("svg", _extends({}, props, {
5939 xmlns: "http://www.w3.org/2000/svg",
5940 width: "24px",
5941 height: "24px",
5942 viewBox: "0 0 24 24"
5943 }), children, React__default.createElement("g", {
5944 stroke: "none",
5945 strokeWidth: "1",
5946 fill: "none",
5947 fillRule: "evenodd"
5948 }, React__default.createElement("g", null, React__default.createElement("rect", {
5949 x: "0",
5950 y: "0",
5951 width: "24",
5952 height: "24"
5953 }), React__default.createElement("path", _extends({
5954 fill: color
5955 }, color !== "currentColor" && {
5956 fillOpacity: ".65"
5957 }, {
5958 fillRule: "nonzero",
5959 d: "M7.75948907,4.84963048 C7.68126674,4.80213835 7.59151085,4.77702424 7.5,4.77702424 C7.22385763,4.77702424 7,5.00088186 7,5.27702424 L7,18.7229758 C7,18.8144866 7.02511411,18.9042425 7.07260624,18.9824648 C7.2159181,19.2185079 7.52344601,19.2936814 7.75948907,19.1503695 L18.8326256,12.4273938 C18.9012645,12.3857202 18.9588567,12.3281279 19.0005303,12.2594891 C19.1438422,12.023446 19.0686687,11.7159181 18.8326256,11.5726062 L7.75948907,4.84963048 Z M8.2784672,3.99484297 L19.3516037,10.7178187 C20.0597329,11.1477543 20.2852534,12.070338 19.8553178,12.7784672 C19.730297,12.9843838 19.5575204,13.1571605 19.3516037,13.2821813 L8.2784672,20.005157 C7.57033804,20.4350926 6.64775429,20.2095721 6.21781873,19.501443 C6.07534234,19.266776 6,18.9975083 6,18.7229758 L6,5.27702424 C6,4.44859711 6.67157288,3.77702424 7.5,3.77702424 C7.77453254,3.77702424 8.04380021,3.85236658 8.2784672,3.99484297 Z"
5960 })))));
5961};
5962
5963PlayIcon.displayName = "PlayIcon";
5964PlayIcon.propTypes = {
5965 children: PropTypes.node,
5966 color: PropTypes.string
5967};
5968PlayIcon.defaultProps = {
5969 children: null,
5970 color: themes.global.gray01
5971};
5972
5973var PlusIcon = function PlusIcon(_ref) {
5974 var children = _ref.children,
5975 color = _ref.color,
5976 props = _objectWithoutProperties(_ref, ["children", "color"]);
5977
5978 return React__default.createElement("svg", _extends({}, props, {
5979 xmlns: "http://www.w3.org/2000/svg",
5980 width: "24px",
5981 height: "24px",
5982 viewBox: "0 0 24 24"
5983 }), children, React__default.createElement("g", {
5984 stroke: "none",
5985 strokeWidth: "1",
5986 fill: "none",
5987 fillRule: "evenodd"
5988 }, React__default.createElement("g", {
5989 fillRule: "nonzero"
5990 }, React__default.createElement("rect", {
5991 x: "0",
5992 y: "0",
5993 width: "24",
5994 height: "24"
5995 }), React__default.createElement("path", _extends({
5996 d: "M4,12 L20,12",
5997 stroke: color
5998 }, color !== "currentColor" && {
5999 strokeOpacity: ".65"
6000 }, {
6001 fillRule: "nonzero",
6002 strokeLinecap: "round",
6003 strokeLinejoin: "round"
6004 })), React__default.createElement("path", _extends({
6005 d: "M12,4 L12,20",
6006 stroke: color
6007 }, color !== "currentColor" && {
6008 strokeOpacity: ".65"
6009 }, {
6010 fillRule: "nonzero",
6011 strokeLinecap: "round",
6012 strokeLinejoin: "round"
6013 })))));
6014};
6015
6016PlusIcon.displayName = "PlusIcon";
6017PlusIcon.propTypes = {
6018 children: PropTypes.node,
6019 color: PropTypes.string
6020};
6021PlusIcon.defaultProps = {
6022 children: null,
6023 color: themes.global.gray01
6024};
6025
6026var SellTicketsIcon = function SellTicketsIcon(_ref) {
6027 var children = _ref.children,
6028 color = _ref.color,
6029 props = _objectWithoutProperties(_ref, ["children", "color"]);
6030
6031 return React__default.createElement("svg", _extends({}, props, {
6032 xmlns: "http://www.w3.org/2000/svg",
6033 width: "24px",
6034 height: "24px",
6035 viewBox: "0 0 24 24"
6036 }), children, React__default.createElement("g", {
6037 stroke: "none",
6038 strokeWidth: "1",
6039 fill: "none",
6040 fillRule: "evenodd"
6041 }, React__default.createElement("g", null, React__default.createElement("rect", {
6042 x: "0",
6043 y: "0",
6044 width: "24",
6045 height: "24"
6046 }), React__default.createElement("path", _extends({
6047 fill: color
6048 }, color !== "currentColor" && {
6049 fillOpacity: ".65"
6050 }, {
6051 fillRule: "nonzero",
6052 d: "M2.1001387,11.4177566 L0.947213595,13.7236068 C0.823718971,13.970596 0.523382451,14.0707082 0.276393202,13.9472136 C0.0294039535,13.823719 -0.0707082199,13.5233825 0.0527864045,13.2763932 L2.0527864,9.2763932 C2.20541095,8.97114411 2.61223279,8.90512601 2.85355339,9.14644661 L5.85355339,12.1464466 C6.04881554,12.3417088 6.04881554,12.6582912 5.85355339,12.8535534 C5.65829124,13.0488155 5.34170876,13.0488155 5.14644661,12.8535534 L3.02988506,10.7369918 C3.24556834,13.3879555 4.61707519,15.7833794 6.7657131,17.3222158 C6.99021684,17.4830035 7.04186891,17.7953439 6.88108121,18.0198477 C6.72029352,18.2443514 6.4079531,18.2960035 6.18344936,18.1352158 C3.96009194,16.5428659 2.48507121,14.1229044 2.1001387,11.4177566 Z M20.8639438,8.43122233 C20.120113,4.19311012 16.4178664,1 12,1 C8.5899099,1 5.52079255,2.91307264 3.98975898,5.89243916 C3.86354484,6.13804983 3.56212127,6.23483985 3.3165106,6.10862571 C3.07089993,5.98241157 2.97410991,5.680988 3.10032405,5.43537733 C4.801041,2.12580971 8.21144965,0 12,0 C16.7649827,0 20.7804615,3.34276045 21.7677374,7.84649129 L23.0527864,5.2763932 C23.176281,5.02940395 23.4766175,4.92929178 23.7236068,5.0527864 C23.970596,5.17628103 24.0707082,5.47661755 23.9472136,5.7236068 L21.9472136,9.7236068 C21.8098112,9.9984115 21.4593932,10.0854469 21.2093809,9.90686674 L17.7093809,7.40686674 C17.4846746,7.24636224 17.4326288,6.9340872 17.5931333,6.7093809 C17.7536378,6.48467461 18.0659128,6.43262877 18.2906191,6.59313326 L20.8639438,8.43122233 Z M18.9601551,17.131728 L14.7175144,12.8890873 L9.06066017,18.5459415 L13.3033009,22.7885822 L18.9601551,17.131728 Z M19.6672619,16.4246212 L21.7885822,14.3033009 L20.9393066,13.4540252 C20.230958,13.6195402 19.4809901,13.4099223 18.9601551,12.8890873 C18.4393201,12.3682523 18.2297022,11.6182844 18.3952172,10.9099358 L17.5459415,10.0606602 L15.4246212,12.1819805 L19.6672619,16.4246212 Z M12.9497475,23.8492424 L8,18.8994949 C7.80473785,18.7042328 7.80473785,18.3876503 8,18.1923882 L17.1923882,9 C17.3876503,8.80473785 17.7042328,8.80473785 17.8994949,9 L19.3137085,10.4142136 C19.4476246,10.5481297 19.4943859,10.7462135 19.4344968,10.9258808 L19.3971711,11.0378577 C19.263255,11.4396061 19.3678163,11.8825349 19.6672619,12.1819805 C19.9667075,12.4814261 20.4096363,12.5859874 20.8113847,12.4520713 L20.9233616,12.4147456 C21.1030289,12.3548565 21.3011127,12.4016178 21.4350288,12.5355339 L22.8492424,13.9497475 C23.0445046,14.1450096 23.0445046,14.4615921 22.8492424,14.6568542 L13.6568542,23.8492424 C13.4615921,24.0445046 13.1450096,24.0445046 12.9497475,23.8492424 Z"
6053 })))));
6054};
6055
6056SellTicketsIcon.displayName = "SellTicketsIcon";
6057SellTicketsIcon.propTypes = {
6058 children: PropTypes.node,
6059 color: PropTypes.string
6060};
6061SellTicketsIcon.defaultProps = {
6062 children: null,
6063 color: themes.global.gray01
6064};
6065
6066var ShareIcon = function ShareIcon(_ref) {
6067 var children = _ref.children,
6068 color = _ref.color,
6069 props = _objectWithoutProperties(_ref, ["children", "color"]);
6070
6071 return React__default.createElement("svg", _extends({}, props, {
6072 xmlns: "http://www.w3.org/2000/svg",
6073 width: "24px",
6074 height: "24px",
6075 viewBox: "0 0 24 24"
6076 }), children, React__default.createElement("g", {
6077 stroke: "none",
6078 strokeWidth: "1",
6079 fill: "none",
6080 fillRule: "evenodd"
6081 }, React__default.createElement("g", null, React__default.createElement("polygon", {
6082 transform: "translate(12.000000, 12.000000) scale(1, -1) translate(-12.000000, -12.000000) ",
6083 points: "24 0 0 0 0 24 24 24"
6084 }), React__default.createElement("path", _extends({
6085 fill: color
6086 }, color !== "currentColor" && {
6087 fillOpacity: ".65"
6088 }, {
6089 fillRule: "nonzero",
6090 d: "M3.08942708,17.1410498 C5.75641082,14.5548838 9.20630916,13 13.5,13 C13.7761424,13 14,13.2238576 14,13.5 L14,17.4187798 L22.6992374,10.024428 L14,3.5 L14,7.5 C14,7.77614237 13.7761424,8 13.5,8 C8.23779504,8 4.79391614,10.5046392 2.76288434,14.7171496 C2.07583933,16.1421318 1.60152459,17.6693506 1.30336586,19.2015439 C1.81409167,18.4968824 2.40798256,17.8018445 3.08942708,17.1410498 Z M3.78557292,17.8589502 C2.91299689,18.7050845 2.19301391,19.6121497 1.61732416,20.5181532 C1.41661014,20.834031 1.24857921,21.1265033 1.11213185,21.3877358 C1.03189816,21.5413456 0.980926507,21.6481858 0.958078667,21.7004094 C0.736989732,22.2057556 -0.019368632,22.033396 0.000318572826,21.4821542 C0.00459102746,21.3625255 0.0187071919,21.1469332 0.0483547723,20.848937 C0.0972918252,20.3570569 0.173165888,19.8101626 0.281738373,19.2217698 C0.59202891,17.5401953 1.10274089,15.8578499 1.86211566,14.2828504 C3.98494358,9.87994806 7.60216711,7.16443793 13,7.00722111 L13,2.5 C13,2.08797734 13.4703819,1.8527864 13.8,2.1 L23.8,9.6 C24.0565773,9.79243299 24.0681946,10.1732548 23.8238242,10.3809697 L13.8238242,18.8809697 C13.4990813,19.1570012 13,18.9262058 13,18.5 L13,14.007549 C9.21423571,14.1225778 6.17072631,15.5460742 3.78557292,17.8589502 Z"
6091 })))));
6092};
6093
6094ShareIcon.displayName = "ShareIcon";
6095ShareIcon.propTypes = {
6096 children: PropTypes.node,
6097 color: PropTypes.string
6098};
6099ShareIcon.defaultProps = {
6100 children: null,
6101 color: themes.global.gray01
6102};
6103
6104var StandardMailIcon = function StandardMailIcon(_ref) {
6105 var children = _ref.children,
6106 color = _ref.color,
6107 props = _objectWithoutProperties(_ref, ["children", "color"]);
6108
6109 return React__default.createElement("svg", _extends({}, props, {
6110 xmlns: "http://www.w3.org/2000/svg",
6111 width: "24px",
6112 height: "24px",
6113 viewBox: "0 0 24 24"
6114 }), children, React__default.createElement("g", {
6115 stroke: "none",
6116 strokeWidth: "1",
6117 fill: "none",
6118 fillRule: "evenodd"
6119 }, React__default.createElement("path", _extends({
6120 fill: color
6121 }, color !== "currentColor" && {
6122 fillOpacity: ".65"
6123 }, {
6124 fillRule: "nonzero",
6125 d: "M18.9160973,16 C18.711543,16.5830835 18.1555194,17 17.4991283,17 L12,17 L12,23 L14.5,23 C14.7761424,23 15,23.2238576 15,23.5 C15,23.7761424 14.7761424,24 14.5,24 L6.5,24 C6.22385763,24 6,23.7761424 6,23.5 C6,23.2238576 6.22385763,23 6.5,23 L9,23 L9,17 L3.50087166,17 C2.67525418,17 2,16.3237743 2,15.5046024 L2,10.509763 C2,8.01666272 4.01408068,6 6.509763,6 L12.5,6 C12.7761424,6 13,6.22385763 13,6.5 C13,6.77614237 12.7761424,7 12.5,7 L6.509763,7 C4.56665243,7 3,8.56866087 3,10.509763 L3,15.5046024 C3,15.7718111 3.22786105,16 3.50087166,16 L17.4991283,16 C17.7783713,16 18,15.7790536 18,15.5046024 L18,7.49539757 C18,7.22809158 17.7724345,7 17.5,7 L16.5,7 C16.2238576,7 16,6.77614237 16,6.5 C16,6.22385763 16.2238576,6 16.5,6 L17.5,6 C18.3252368,6 19,6.67632306 19,7.49539757 L19,8 L21.5,8 C21.8042747,8 22.0380057,8.26949412 21.9949747,8.57071068 L20.9949747,15.5707107 C20.9597856,15.817035 20.7488252,16 20.5,16 L18.9160973,16 Z M19,15 L20.0663523,15 L20.9234952,9 L19,9 L19,15 Z M14,4 L9.5,4 C9.22385763,4 9,3.77614237 9,3.5 L9,0.5 C9,0.223857625 9.22385763,0 9.5,0 L14.5,0 C14.7761424,0 15,0.223857625 15,0.5 L15,8.5 C15,8.77614237 14.7761424,9 14.5,9 C14.2238576,9 14,8.77614237 14,8.5 L14,4 Z M14,3 L14,1 L10,1 L10,3 L14,3 Z M11,17 L10,17 L10,23 L11,23 L11,17 Z"
6126 }))));
6127};
6128
6129StandardMailIcon.displayName = "StandardMailIcon";
6130StandardMailIcon.propTypes = {
6131 children: PropTypes.node,
6132 color: PropTypes.string
6133};
6134StandardMailIcon.defaultProps = {
6135 children: null,
6136 color: themes.global.gray01
6137};
6138
6139var TransferTicketsIcon = function TransferTicketsIcon(_ref) {
6140 var children = _ref.children,
6141 color = _ref.color,
6142 props = _objectWithoutProperties(_ref, ["children", "color"]);
6143
6144 return React__default.createElement("svg", _extends({}, props, {
6145 xmlns: "http://www.w3.org/2000/svg",
6146 width: "24px",
6147 height: "24px",
6148 viewBox: "0 0 24 24"
6149 }), children, React__default.createElement("g", {
6150 stroke: "none",
6151 strokeWidth: "1",
6152 fill: "none",
6153 fillRule: "evenodd"
6154 }, React__default.createElement("path", _extends({
6155 fill: color
6156 }, color !== "currentColor" && {
6157 fillOpacity: ".65"
6158 }, {
6159 fillRule: "nonzero",
6160 d: "M3.01698513,5.25119384 C2.3933853,4.70145646 2,3.89666826 2,3 C2,1.34314575 3.34314575,0 5,0 C6.65685425,0 8,1.34314575 8,3 C8,3.89643527 7.60681911,4.70103823 6.98350093,5.25076526 C8.73926022,5.86467842 10,7.53710878 10,9.5 L10,13.5 C10,13.7761424 9.77614237,14 9.5,14 L0.5,14 C0.223857625,14 -2.27373675e-13,13.7761424 -2.27373675e-13,13.5 L-2.27373675e-13,9.5 C-2.27373675e-13,7.53745723 1.26292965,5.86543384 3.01698513,5.25119384 Z M1,13 L9,13 L9,9.5 C9,7.56985763 7.43138226,6 5.5000567,6 L4.4999433,6 C2.57258184,6 1,7.57021309 1,9.5 L1,13 Z M5,5 C6.1045695,5 7,4.1045695 7,3 C7,1.8954305 6.1045695,1 5,1 C3.8954305,1 3,1.8954305 3,3 C3,4.1045695 3.8954305,5 5,5 Z M11.7046552,4.40349138 C11.5805665,4.31250785 11.5,4.16566259 11.5,4 C11.5,3.83433741 11.5805665,3.68749215 11.7046552,3.59650862 L15.7,0.6 C15.9209139,0.434314575 16.2343146,0.4790861 16.4,0.7 C16.5656854,0.9209139 16.5209139,1.23431458 16.3,1.4 L13.5,3.5 L15,3.5 C19.1421356,3.5 22.5,6.85786438 22.5,11 C22.5,11.2761424 22.2761424,11.5 22,11.5 C21.7238576,11.5 21.5,11.2761424 21.5,11 C21.5,7.41014913 18.5898509,4.5 15,4.5 L13.5,4.5 L16.3,6.6 C16.5209139,6.76568542 16.5656854,7.0790861 16.4,7.3 C16.2343146,7.5209139 15.9209139,7.56568542 15.7,7.4 L11.7046552,4.40349138 Z"
6161 })), React__default.createElement("g", _extends({
6162 transform: "translate(15.424621, 16.424621) rotate(45.000000) translate(-15.424621, -16.424621) translate(11.924621, 9.424621)",
6163 fill: color
6164 }, color !== "currentColor" && {
6165 fillOpacity: ".65"
6166 }, {
6167 fillRule: "nonzero"
6168 }), React__default.createElement("path", {
6169 d: "M6.5,5 L0.5,5 L0.5,13 L6.5,13 L6.5,5 Z M6.5,4 L6.5,1 L5.29894291,1 C4.91510153,1.61791491 4.2365719,2 3.5,2 C2.7634281,2 2.08489847,1.61791491 1.70105709,1 L0.5,1 L0.5,4 L6.5,4 Z M7,14 L0,14 C-0.276142375,14 -0.5,13.7761424 -0.5,13.5 L-0.5,0.5 C-0.5,0.223857625 -0.276142375,4.54747351e-13 0,4.54747351e-13 L2,4.54747351e-13 C2.18938603,4.54747351e-13 2.36251759,0.107001188 2.4472136,0.276393202 L2.5,0.381966011 C2.68938603,0.76073807 3.07651996,1 3.5,1 C3.92348004,1 4.31061397,0.76073807 4.5,0.381966011 L4.5527864,0.276393202 C4.63748241,0.107001188 4.81061397,4.54747351e-13 5,4.54747351e-13 L7,4.54747351e-13 C7.27614237,4.54747351e-13 7.5,0.223857625 7.5,0.5 L7.5,13.5 C7.5,13.7761424 7.27614237,14 7,14 Z"
6170 }))));
6171};
6172
6173TransferTicketsIcon.displayName = "TransferTicketsIcon";
6174TransferTicketsIcon.propTypes = {
6175 children: PropTypes.node,
6176 color: PropTypes.string
6177};
6178TransferTicketsIcon.defaultProps = {
6179 children: null,
6180 color: themes.global.gray01
6181};
6182
6183var UpgradeTicketsIcon = function UpgradeTicketsIcon(_ref) {
6184 var children = _ref.children,
6185 color = _ref.color,
6186 props = _objectWithoutProperties(_ref, ["children", "color"]);
6187
6188 return React__default.createElement("svg", _extends({}, props, {
6189 xmlns: "http://www.w3.org/2000/svg",
6190 width: "24px",
6191 height: "24px",
6192 viewBox: "0 0 24 24"
6193 }), children, React__default.createElement("g", {
6194 stroke: "none",
6195 strokeWidth: "1",
6196 fill: "none",
6197 fillRule: "evenodd"
6198 }, React__default.createElement("path", _extends({
6199 fill: color
6200 }, color !== "currentColor" && {
6201 fillOpacity: ".65"
6202 }, {
6203 fillRule: "nonzero",
6204 d: "M7.5,16 C7.77614237,16 8,16.2238576 8,16.5 C8,16.7761424 7.77614237,17 7.5,17 L5.5,17 C2.46243388,17 -2.31448194e-13,14.5375661 -2.31814568e-13,11.5 C-2.32180941e-13,8.46243388 2.46243388,6 5.5,6 C5.77614237,6 6,6.22385763 6,6.5 C6,6.77614237 5.77614237,7 5.5,7 C3.01471863,7 1,9.01471863 1,11.5 C1,13.9852814 3.01471863,16 5.5,16 L7.5,16 Z M12.8967416,6.38757732 L13.3320123,9.06143194 C13.3650691,9.25129115 13.3139752,9.44640418 13.19168,9.59556317 C13.0681357,9.74624564 12.8843245,9.83483208 12.6985446,9.83673282 C12.5859834,9.84004315 12.4745149,9.81439757 12.374178,9.76203493 L9.99998805,8.51931007 L7.63563209,9.75675998 C7.41053726,9.88104642 7.13408637,9.86289364 6.92710801,9.71048826 C6.72249422,9.559824 6.62263496,9.30521646 6.66705787,9.06685632 L7.10324039,6.38757313 L5.19664494,4.48322487 C5.01900427,4.30763285 4.95551044,4.04688856 5.0316899,3.80932273 C5.10840438,3.57008845 5.31400362,3.39432904 5.55985949,3.35786479 L8.21034662,2.94650349 L9.41453245,0.517974753 C9.52774451,0.299282381 9.75317723,0.161214047 10,0.161214047 C10.2468228,0.161214047 10.4722555,0.299282381 10.5893981,0.525731954 L11.7896619,2.94650581 L14.4368351,3.35736309 C14.6859964,3.39432904 14.8915956,3.57008845 14.9683101,3.80932273 C15.0444896,4.04688856 14.9809957,4.30763285 14.8052008,4.48139094 L12.8967416,6.38757732 Z M11.8685536,6.29528105 C11.8426971,6.13645573 11.8948612,5.97489282 12.008714,5.86117566 L13.6280298,4.24379565 L11.3801593,3.89492132 C11.2195512,3.8699946 11.0810804,3.76855836 11.0088819,3.62294352 L10.0000325,1.58809614 L8.99111807,3.62294352 C8.91891958,3.76855836 8.78044879,3.8699946 8.61984068,3.89492132 L6.37196588,4.24378758 L7.99127134,5.86117702 C8.10512317,5.97489413 8.15728672,6.1364564 8.13143035,6.29528105 L7.76233589,8.56187203 L9.76812806,7.51197804 C9.91336296,7.43595757 10.086637,7.43595757 10.2318719,7.51197804 L12.23754,8.56180741 L11.8685536,6.29528105 Z M18.9601551,17.131728 L14.7175144,12.8890873 L9.06066017,18.5459415 L13.3033009,22.7885822 L18.9601551,17.131728 Z M19.6672619,16.4246212 L21.7885822,14.3033009 L20.9393066,13.4540252 C20.230958,13.6195402 19.4809901,13.4099223 18.9601551,12.8890873 C18.4393201,12.3682523 18.2297022,11.6182844 18.3952172,10.9099358 L17.5459415,10.0606602 L15.4246212,12.1819805 L19.6672619,16.4246212 Z M12.9497475,23.8492424 L8,18.8994949 C7.80473785,18.7042328 7.80473785,18.3876503 8,18.1923882 L17.1923882,9 C17.3876503,8.80473785 17.7042328,8.80473785 17.8994949,9 L19.3137085,10.4142136 C19.4476246,10.5481297 19.4943859,10.7462135 19.4344968,10.9258808 L19.3971711,11.0378577 C19.263255,11.4396061 19.3678163,11.8825349 19.6672619,12.1819805 C19.9667075,12.4814261 20.4096363,12.5859874 20.8113847,12.4520713 L20.9233616,12.4147456 C21.1030289,12.3548565 21.3011127,12.4016178 21.4350288,12.5355339 L22.8492424,13.9497475 C23.0445046,14.1450096 23.0445046,14.4615921 22.8492424,14.6568542 L13.6568542,23.8492424 C13.4615921,24.0445046 13.1450096,24.0445046 12.9497475,23.8492424 Z"
6205 }))));
6206};
6207
6208UpgradeTicketsIcon.displayName = "UpgradeTicketsIcon";
6209UpgradeTicketsIcon.propTypes = {
6210 children: PropTypes.node,
6211 color: PropTypes.string
6212};
6213UpgradeTicketsIcon.defaultProps = {
6214 children: null,
6215 color: themes.global.gray01
6216};
6217
6218var VolumeHighIcon = function VolumeHighIcon(_ref) {
6219 var children = _ref.children,
6220 color = _ref.color,
6221 props = _objectWithoutProperties(_ref, ["children", "color"]);
6222
6223 return React__default.createElement("svg", _extends({}, props, {
6224 xmlns: "http://www.w3.org/2000/svg",
6225 width: "24px",
6226 height: "24px",
6227 viewBox: "0 0 24 24"
6228 }), children, React__default.createElement("g", {
6229 stroke: "none",
6230 strokeWidth: "1",
6231 fill: "none",
6232 fillRule: "evenodd"
6233 }, React__default.createElement("g", {
6234 transform: "translate(-204.000000, -178.000000)"
6235 }, React__default.createElement("g", {
6236 transform: "translate(204.000000, 176.000000)"
6237 }, React__default.createElement("g", null, React__default.createElement("rect", {
6238 x: "0",
6239 y: "0",
6240 width: "24",
6241 height: "24"
6242 }), React__default.createElement("path", _extends({
6243 fill: color
6244 }, color !== "currentColor" && {
6245 fillOpacity: ".65"
6246 }, {
6247 fillRule: "nonzero",
6248 d: "M7.29289322,7 L12.1464466,2.14644661 C12.461429,1.83146418 13,2.05454757 13,2.5 L13,21.5 C13,21.9454524 12.461429,22.1685358 12.1464466,21.8535534 L7.29289322,17 L2.5,17 C1.11928813,17 2.52908805e-13,15.8807119 2.54019028e-13,14.5 L3.3173464e-13,9.5 C3.32844863e-13,8.11928813 1.11928813,7 2.5,7 L7.29289322,7 Z M7.85355339,7.85355339 C7.7597852,7.94732158 7.63260824,8 7.5,8 L2.5,8 C1.67157288,8 1,8.67157288 1,9.5 L1,14.5 C1,15.3284271 1.67157288,16 2.5,16 L7.5,16 C7.63260824,16 7.7597852,16.0526784 7.85355339,16.1464466 L12,20.2928932 L12,3.70710678 L7.85355339,7.85355339 Z M16.9160251,15.7773501 C16.7628489,16.0071144 16.4524142,16.0692014 16.2226499,15.9160251 C15.9928856,15.7628489 15.9307986,15.4524142 16.0839749,15.2226499 C16.6942954,14.307169 17,13.2372031 17,12 C17,10.7627969 16.6942954,9.69283097 16.0839749,8.7773501 C15.9307986,8.54758575 15.9928856,8.23715108 16.2226499,8.08397485 C16.4524142,7.93079862 16.7628489,7.99288556 16.9160251,8.2226499 C17.6390379,9.30716903 18,10.5705364 18,12 C18,13.4294636 17.6390379,14.692831 16.9160251,15.7773501 Z M18.8535534,17.8535534 C18.6582912,18.0488155 18.3417088,18.0488155 18.1464466,17.8535534 C17.9511845,17.6582912 17.9511845,17.3417088 18.1464466,17.1464466 C19.3798825,15.9130107 20,14.2076876 20,12 C20,9.79231245 19.3798825,8.08698926 18.1464466,6.85355339 C17.9511845,6.65829124 17.9511845,6.34170876 18.1464466,6.14644661 C18.3417088,5.95118446 18.6582912,5.95118446 18.8535534,6.14644661 C20.2867842,7.57967741 21,9.54102088 21,12 C21,14.4589791 20.2867842,16.4203226 18.8535534,17.8535534 Z M20.8535534,19.8535534 C20.6582912,20.0488155 20.3417088,20.0488155 20.1464466,19.8535534 C19.9511845,19.6582912 19.9511845,19.3417088 20.1464466,19.1464466 C22.0510831,17.2418101 23,14.8695179 23,12 C23,9.12877021 22.0664065,6.75523722 20.1934767,4.85057071 C19.9998618,4.65367506 20.0025214,4.33710374 20.1994171,4.14348889 C20.3963127,3.94987403 20.712884,3.95253363 20.9064989,4.14942929 C22.9669187,6.24476278 24,8.87122979 24,12 C24,15.1304821 22.9489169,17.7581899 20.8535534,19.8535534 Z"
6249 })))))));
6250};
6251
6252VolumeHighIcon.displayName = "VolumeHighIcon";
6253VolumeHighIcon.propTypes = {
6254 children: PropTypes.node,
6255 color: PropTypes.string
6256};
6257VolumeHighIcon.defaultProps = {
6258 children: null,
6259 color: themes.global.gray01
6260};
6261
6262var VolumeLowIcon = function VolumeLowIcon(_ref) {
6263 var children = _ref.children,
6264 color = _ref.color,
6265 props = _objectWithoutProperties(_ref, ["children", "color"]);
6266
6267 return React__default.createElement("svg", _extends({}, props, {
6268 xmlns: "http://www.w3.org/2000/svg",
6269 width: "24px",
6270 height: "24px",
6271 viewBox: "0 0 24 24"
6272 }), children, React__default.createElement("g", {
6273 stroke: "none",
6274 strokeWidth: "1",
6275 fill: "none",
6276 fillRule: "evenodd"
6277 }, React__default.createElement("g", {
6278 transform: "translate(-117.000000, -179.000000)"
6279 }, React__default.createElement("g", {
6280 transform: "translate(117.000000, 177.000000)"
6281 }, React__default.createElement("g", null, React__default.createElement("rect", {
6282 x: "0",
6283 y: "0",
6284 width: "24",
6285 height: "24"
6286 }), React__default.createElement("path", _extends({
6287 fill: color
6288 }, color !== "currentColor" && {
6289 fillOpacity: ".65"
6290 }, {
6291 fillRule: "nonzero",
6292 d: "M7.29289322,7 L12.1464466,2.14644661 C12.461429,1.83146418 13,2.05454757 13,2.5 L13,21.5 C13,21.9454524 12.461429,22.1685358 12.1464466,21.8535534 L7.29289322,17 L2.5,17 C1.11928813,17 -7.58837437e-14,15.8807119 -7.72715225e-14,14.5 L-9.54791801e-15,9.5 C-9.68669589e-15,8.11928813 1.11928813,7 2.5,7 L7.29289322,7 Z M12,3.70710678 L7.85355339,7.85355339 C7.7597852,7.94732158 7.63260824,8 7.5,8 L2.5,8 C1.67157288,8 1,8.67157288 1,9.5 L1,14.5 C1,15.3284271 1.67157288,16 2.5,16 L7.5,16 C7.63260824,16 7.7597852,16.0526784 7.85355339,16.1464466 L12,20.2928932 L12,3.70710678 Z M16.9160251,15.7773501 C16.7628489,16.0071144 16.4524142,16.0692014 16.2226499,15.9160251 C15.9928856,15.7628489 15.9307986,15.4524142 16.0839749,15.2226499 C16.6942954,14.307169 17,13.2372031 17,12 C17,10.7627969 16.6942954,9.69283097 16.0839749,8.7773501 C15.9307986,8.54758575 15.9928856,8.23715108 16.2226499,8.08397485 C16.4524142,7.93079862 16.7628489,7.99288556 16.9160251,8.2226499 C17.6390379,9.30716903 18,10.5705364 18,12 C18,13.4294636 17.6390379,14.692831 16.9160251,15.7773501 Z"
6293 })))))));
6294};
6295
6296VolumeLowIcon.displayName = "VolumeLowIcon";
6297VolumeLowIcon.propTypes = {
6298 children: PropTypes.node,
6299 color: PropTypes.string
6300};
6301VolumeLowIcon.defaultProps = {
6302 children: null,
6303 color: themes.global.gray01
6304};
6305
6306var VolumeMediumIcon = function VolumeMediumIcon(_ref) {
6307 var children = _ref.children,
6308 color = _ref.color,
6309 props = _objectWithoutProperties(_ref, ["children", "color"]);
6310
6311 return React__default.createElement("svg", _extends({}, props, {
6312 xmlns: "http://www.w3.org/2000/svg",
6313 width: "24px",
6314 height: "24px",
6315 viewBox: "0 0 24 24"
6316 }), children, React__default.createElement("g", {
6317 stroke: "none",
6318 strokeWidth: "1",
6319 fill: "none",
6320 fillRule: "evenodd"
6321 }, React__default.createElement("g", {
6322 transform: "translate(-161.000000, -179.000000)"
6323 }, React__default.createElement("g", {
6324 transform: "translate(161.000000, 177.000000)"
6325 }, React__default.createElement("g", null, React__default.createElement("rect", {
6326 x: "0",
6327 y: "0",
6328 width: "24",
6329 height: "24"
6330 }), React__default.createElement("path", _extends({
6331 fill: color
6332 }, color !== "currentColor" && {
6333 fillOpacity: ".65"
6334 }, {
6335 fillRule: "nonzero",
6336 d: "M7.29289322,7 L12.1464466,2.14644661 C12.461429,1.83146418 13,2.05454757 13,2.5 L13,21.5 C13,21.9454524 12.461429,22.1685358 12.1464466,21.8535534 L7.29289322,17 L2.5,17 C1.11928813,17 -7.71327446e-14,15.8807119 -7.72715225e-14,14.5 L-8.43769499e-15,9.5 C-8.02136135e-15,8.11928813 1.11928813,7 2.5,7 L7.29289322,7 Z M7.85355339,7.85355339 C7.7597852,7.94732158 7.63260824,8 7.5,8 L2.5,8 C1.67157288,8 1,8.67157288 1,9.5 L1,14.5 C1,15.3284271 1.67157288,16 2.5,16 L7.5,16 C7.63260824,16 7.7597852,16.0526784 7.85355339,16.1464466 L12,20.2928932 L12,3.70710678 L7.85355339,7.85355339 Z M16.9160251,15.7773501 C16.7628489,16.0071144 16.4524142,16.0692014 16.2226499,15.9160251 C15.9928856,15.7628489 15.9307986,15.4524142 16.0839749,15.2226499 C16.6942954,14.307169 17,13.2372031 17,12 C17,10.7627969 16.6942954,9.69283097 16.0839749,8.7773501 C15.9307986,8.54758575 15.9928856,8.23715108 16.2226499,8.08397485 C16.4524142,7.93079862 16.7628489,7.99288556 16.9160251,8.2226499 C17.6390379,9.30716903 18,10.5705364 18,12 C18,13.4294636 17.6390379,14.692831 16.9160251,15.7773501 Z M18.8535534,17.8535534 C18.6582912,18.0488155 18.3417088,18.0488155 18.1464466,17.8535534 C17.9511845,17.6582912 17.9511845,17.3417088 18.1464466,17.1464466 C19.3798825,15.9130107 20,14.2076876 20,12 C20,9.79231245 19.3798825,8.08698926 18.1464466,6.85355339 C17.9511845,6.65829124 17.9511845,6.34170876 18.1464466,6.14644661 C18.3417088,5.95118446 18.6582912,5.95118446 18.8535534,6.14644661 C20.2867842,7.57967741 21,9.54102088 21,12 C21,14.4589791 20.2867842,16.4203226 18.8535534,17.8535534 Z"
6337 })))))));
6338};
6339
6340VolumeMediumIcon.displayName = "VolumeMediumIcon";
6341VolumeMediumIcon.propTypes = {
6342 children: PropTypes.node,
6343 color: PropTypes.string
6344};
6345VolumeMediumIcon.defaultProps = {
6346 children: null,
6347 color: themes.global.gray01
6348};
6349
6350var VolumeMuteIcon = function VolumeMuteIcon(_ref) {
6351 var children = _ref.children,
6352 color = _ref.color,
6353 props = _objectWithoutProperties(_ref, ["children", "color"]);
6354
6355 return React__default.createElement("svg", _extends({}, props, {
6356 xmlns: "http://www.w3.org/2000/svg",
6357 width: "24px",
6358 height: "24px",
6359 viewBox: "0 0 24 24"
6360 }), children, React__default.createElement("g", {
6361 stroke: "none",
6362 strokeWidth: "1",
6363 fill: "none",
6364 fillRule: "evenodd"
6365 }, React__default.createElement("g", {
6366 transform: "translate(-62.000000, -179.000000)"
6367 }, React__default.createElement("g", {
6368 transform: "translate(62.000000, 177.000000)"
6369 }, React__default.createElement("g", null, React__default.createElement("rect", {
6370 x: "0",
6371 y: "0",
6372 width: "24",
6373 height: "24"
6374 }), React__default.createElement("path", _extends({
6375 fill: color
6376 }, color !== "currentColor" && {
6377 fillOpacity: ".65"
6378 }, {
6379 fillRule: "nonzero",
6380 d: "M19.2928932,12 L16.1464466,8.85355339 C15.9511845,8.65829124 15.9511845,8.34170876 16.1464466,8.14644661 C16.3417088,7.95118446 16.6582912,7.95118446 16.8535534,8.14644661 L20,11.2928932 L23.1464466,8.14644661 C23.3417088,7.95118446 23.6582912,7.95118446 23.8535534,8.14644661 C24.0488155,8.34170876 24.0488155,8.65829124 23.8535534,8.85355339 L20.7071068,12 L23.8535534,15.1464466 C24.0488155,15.3417088 24.0488155,15.6582912 23.8535534,15.8535534 C23.6582912,16.0488155 23.3417088,16.0488155 23.1464466,15.8535534 L20,12.7071068 L16.8535534,15.8535534 C16.6582912,16.0488155 16.3417088,16.0488155 16.1464466,15.8535534 C15.9511845,15.6582912 15.9511845,15.3417088 16.1464466,15.1464466 L19.2928932,12 Z M12.1464466,2.14644661 C12.461429,1.83146418 13,2.05454757 13,2.5 L13,21.5 C13,21.9454524 12.461429,22.1685358 12.1464466,21.8535534 L7.29289322,17 L2.5,17 C1.11928813,17 2.67064149e-13,15.8807119 2.6567637e-13,14.5 L3.34510197e-13,9.5 C3.34371419e-13,8.11928813 1.11928813,7 2.5,7 L7.29289322,7 L12.1464466,2.14644661 Z M7.85355339,7.85355339 C7.7597852,7.94732158 7.63260824,8 7.5,8 L2.5,8 C1.67157288,8 1,8.67157288 1,9.5 L1,14.5 C1,15.3284271 1.67157288,16 2.5,16 L7.5,16 C7.63260824,16 7.7597852,16.0526784 7.85355339,16.1464466 L12,20.2928932 L12,3.70710678 L7.85355339,7.85355339 Z"
6381 })), React__default.createElement("g", {
6382 transform: "translate(16.000000, 8.000000)"
6383 }))))));
6384};
6385
6386VolumeMuteIcon.displayName = "VolumeMuteIcon";
6387VolumeMuteIcon.propTypes = {
6388 children: PropTypes.node,
6389 color: PropTypes.string
6390};
6391VolumeMuteIcon.defaultProps = {
6392 children: null,
6393 color: themes.global.gray01
6394};
6395
6396var WillCallIcon = function WillCallIcon(_ref) {
6397 var children = _ref.children,
6398 color = _ref.color,
6399 props = _objectWithoutProperties(_ref, ["children", "color"]);
6400
6401 return React__default.createElement("svg", _extends({}, props, {
6402 xmlns: "http://www.w3.org/2000/svg",
6403 width: "24px",
6404 height: "24px",
6405 viewBox: "0 0 24 24"
6406 }), children, React__default.createElement("g", {
6407 stroke: "none",
6408 strokeWidth: "1",
6409 fill: "none",
6410 fillRule: "evenodd"
6411 }, React__default.createElement("g", null, React__default.createElement("rect", {
6412 x: "0",
6413 y: "0",
6414 width: "24",
6415 height: "24"
6416 }), React__default.createElement("path", _extends({
6417 fill: color
6418 }, color !== "currentColor" && {
6419 fillOpacity: ".65"
6420 }, {
6421 fillRule: "nonzero",
6422 d: "M3.87323358,7.3883736 C2.74788573,6.68054288 2,5.42761048 2,4 C2,1.790861 3.790861,0 6,0 C8.209139,0 10,1.790861 10,4 C10,5.42720203 9.25254216,6.67982593 8.12773223,7.38776592 C10.3912064,8.24549131 12,10.43197 12,12.9945942 L12,14 L14,14 L14,10.5 C14,8.70204328 15.0572708,7.14911997 16.5826721,6.42858946 C15.6294871,5.80327695 15,4.72515077 15,3.5 C15,1.56700338 16.5670034,0 18.5,0 C20.4329966,0 22,1.56700338 22,3.5 C22,4.7251273 21.370537,5.80323565 20.4173827,6.42855352 C21.9432609,7.14932166 23,8.70293098 23,10.5 L23,14 L23.5,14 C23.7761424,14 24,14.2238576 24,14.5 C24,14.7761424 23.7761424,15 23.5,15 L12,15 L12,16.5 C12,16.7761424 11.7761424,17 11.5,17 L8.9655596,17 L8.49872935,23.5356235 C8.48003987,23.7972762 8.26231933,24 8,24 L4,24 C3.73768067,24 3.51996013,23.7972762 3.50127065,23.5356235 L3.0344404,17 L0.5,17 C0.223857625,17 0,16.7761424 0,16.5 L0,12.9945942 C0,10.4342324 1.6110278,8.24689864 3.87323358,7.3883736 Z M22,14 L22,10.5 C22,8.56985922 20.4313584,7 18.5,7 C16.5698592,7 15,8.56864156 15,10.5 L15,14 L22,14 Z M18.5,6 C19.8807119,6 21,4.88071187 21,3.5 C21,2.11928813 19.8807119,1 18.5,1 C17.1192881,1 16,2.11928813 16,3.5 C16,4.88071187 17.1192881,6 18.5,6 Z M8.00127065,16.4643765 C8.01996013,16.2027238 8.23768067,16 8.5,16 L11,16 L11,12.9945942 C11,10.2358023 8.76179428,8 6,8 C3.24242568,8 1,10.238484 1,12.9945942 L1,16 L3.5,16 C3.76231933,16 3.98003987,16.2027238 3.99872935,16.4643765 L4.4655596,23 L7.5344404,23 L8.00127065,16.4643765 Z M6,7 C7.65685425,7 9,5.65685425 9,4 C9,2.34314575 7.65685425,1 6,1 C4.34314575,1 3,2.34314575 3,4 C3,5.65685425 4.34314575,7 6,7 Z"
6423 })))));
6424};
6425
6426WillCallIcon.displayName = "WillCallIcon";
6427WillCallIcon.propTypes = {
6428 children: PropTypes.node,
6429 color: PropTypes.string
6430};
6431WillCallIcon.defaultProps = {
6432 children: null,
6433 color: themes.global.gray01
6434};
6435
6436var RefreshIcon = function RefreshIcon(_ref) {
6437 var children = _ref.children,
6438 color = _ref.color,
6439 props = _objectWithoutProperties(_ref, ["children", "color"]);
6440
6441 return React__default.createElement("svg", _extends({}, props, {
6442 xmlns: "http://www.w3.org/2000/svg",
6443 width: "24px",
6444 height: "24px",
6445 viewBox: "0 0 24 24"
6446 }), children, React__default.createElement("g", {
6447 fill: "none",
6448 fillRule: "evenodd"
6449 }, React__default.createElement("path", {
6450 d: "M1 0h23.543v23.395H1z"
6451 }), React__default.createElement("path", _extends({
6452 stroke: color
6453 }, color !== "currentColor" && {
6454 strokeOpacity: ".65"
6455 }, {
6456 strokeLinecap: "round",
6457 strokeLinejoin: "round",
6458 d: "M22.13 1.66l-.383 7.3-7.232-2.575m6.492 1.675c-1.51-3.893-5.371-6.662-9.897-6.662-5.84 0-10.574 4.611-10.574 10.3 0 5.688 4.734 10.3 10.574 10.3 3.582 0 6.748-1.735 8.661-4.39"
6459 }))));
6460};
6461
6462RefreshIcon.displayName = "RefreshIcon";
6463RefreshIcon.propTypes = {
6464 children: PropTypes.node,
6465 color: PropTypes.string
6466};
6467RefreshIcon.defaultProps = {
6468 children: null,
6469 color: themes.global.gray01
6470};
6471
6472var FraudulentActivityIcon = function FraudulentActivityIcon(_ref) {
6473 var children = _ref.children,
6474 color = _ref.color,
6475 props = _objectWithoutProperties(_ref, ["children", "color"]);
6476
6477 return React__default.createElement("svg", _extends({}, props, {
6478 width: "24px",
6479 height: "24px",
6480 viewBox: "0 0 24 24",
6481 version: "1.1",
6482 xmlns: "http://www.w3.org/2000/svg"
6483 }), children, React__default.createElement("g", _extends({
6484 stroke: "none",
6485 strokeWidth: "1",
6486 fill: "none",
6487 fillRule: "evenodd"
6488 }, color !== "currentColor" && {
6489 fillOpacity: ".65"
6490 }), React__default.createElement("g", {
6491 transform: "translate(-196.000000, -140.000000)",
6492 fill: color,
6493 fillRule: "nonzero"
6494 }, React__default.createElement("g", {
6495 transform: "translate(196.000000, 140.000000)"
6496 }, React__default.createElement("path", {
6497 d: "M15,14 L15,12.5 C15,10.5670034 16.5670034,9 18.5,9 C20.4329966,9 22,10.5670034 22,12.5 L22,14 L22.5,14 C23.3284271,14 24,14.6715729 24,15.5 L24,22.5 C24,23.3284271 23.3284271,24 22.5,24 L14.5,24 C13.6715729,24 13,23.3284271 13,22.5 L13,15.5 C13,14.6715729 13.6715729,14 14.5,14 L15,14 Z M16,14 L21,14 L21,12.5 C21,11.1192881 19.8807119,10 18.5,10 C17.1192881,10 16,11.1192881 16,12.5 L16,14 Z M15.5,15 L14.5,15 C14.2238576,15 14,15.2238576 14,15.5 L14,22.5 C14,22.7761424 14.2238576,23 14.5,23 L22.5,23 C22.7761424,23 23,22.7761424 23,22.5 L23,15.5 C23,15.2238576 22.7761424,15 22.5,15 L21.5,15 L15.5,15 Z M22,5 L1,5 L1,17.5025781 C1,18.331522 1.66998831,19 2.49961498,19 L10.5,19 C10.7761424,19 11,19.2238576 11,19.5 C11,19.7761424 10.7761424,20 10.5,20 L2.49961498,20 C1.11820813,20 0,18.8843126 0,17.5025781 L0,2.49742191 C0,1.1179317 1.11372966,0 2.491155,0 L20.508845,0 C21.8874741,0 23,1.11336813 23,2.49810135 L23,8.5 C23,8.77614237 22.7761424,9 22.5,9 C22.2238576,9 22,8.77614237 22,8.5 L22,5 Z M1,4 L22,4 L22,2.49810135 C22,1.66548355 21.3350199,1 20.508845,1 L2.491155,1 C1.66685917,1 1,1.66937519 1,2.49742191 L1,4 Z M18,17.5 C18,17.2238576 18.2238576,17 18.5,17 C18.7761424,17 19,17.2238576 19,17.5 L19,20.5 C19,20.7761424 18.7761424,21 18.5,21 C18.2238576,21 18,20.7761424 18,20.5 L18,17.5 Z M3.5,2 C3.776,2 4,2.225 4,2.5 C4,2.776 3.776,3 3.5,3 C3.224,3 3,2.776 3,2.5 C3,2.225 3.224,2 3.5,2 Z M5.5,2 C5.776,2 6,2.225 6,2.5 C6,2.776 5.776,3 5.5,3 C5.224,3 5,2.776 5,2.5 C5,2.225 5.224,2 5.5,2 Z M7.5,2 C7.776,2 8,2.225 8,2.5 C8,2.776 7.776,3 7.5,3 C7.224,3 7,2.776 7,2.5 C7,2.225 7.224,2 7.5,2 Z"
6498 })))));
6499};
6500
6501FraudulentActivityIcon.displayName = "FraudulentActivityIcon";
6502FraudulentActivityIcon.propTypes = {
6503 children: PropTypes.node,
6504 color: PropTypes.string
6505};
6506FraudulentActivityIcon.defaultProps = {
6507 children: null,
6508 color: themes.global.gray01
6509};
6510
6511var printIcons = {
6512 small: function small(_ref) {
6513 var color = _ref.color,
6514 children = _ref.children,
6515 props = _objectWithoutProperties(_ref, ["color", "children"]);
6516
6517 return React__default.createElement("svg", _extends({}, props, {
6518 width: "16px",
6519 height: "16px",
6520 viewBox: "0 0 16 16",
6521 version: "1.1",
6522 xmlns: "http://www.w3.org/2000/svg"
6523 }), children, React__default.createElement("g", {
6524 stroke: "none",
6525 strokeWidth: "1",
6526 fill: "none",
6527 fillRule: "evenodd"
6528 }, React__default.createElement("g", null, React__default.createElement("g", null, React__default.createElement("rect", {
6529 x: "0",
6530 y: "0",
6531 width: "16",
6532 height: "16"
6533 }), React__default.createElement("path", _extends({
6534 d: "M12.5,3 L9.5,3 C9.22385763,3 9,2.77614237 9,2.5 L9,1 L4,1 L4,2.5 C4,2.77614237 3.77614237,3 3.5,3 C3.22385763,3 3,2.77614237 3,2.5 L3,0.5 C3,0.223857625 3.22385763,-5.86197757e-14 3.5,-5.86197757e-14 L10.5,-5.86197757e-14 C10.6326082,-5.86197757e-14 10.7597852,0.0526784202 10.8535534,0.146446609 L12.8535534,2.14644661 C13.0488155,2.34170876 13.0488155,2.65829124 12.8535534,2.85355339 C12.7559223,2.95118446 12.6279612,3 12.5,3 Z M11.2928932,2 L10.2928932,1 L10,1 L10,2 L11.2928932,2 Z M4,13 L2.5,13 C1.11696918,13 7.99360578e-14,11.8871288 7.99360578e-14,10.5018986 L7.99360578e-14,6.49810135 C7.99360578e-14,5.11927853 1.1164151,4 2.49188419,4 L13.5081158,4 C14.8871076,4 16,5.11332718 16,6.49810135 L16,10.5018986 C16,11.8840345 14.885945,13 13.5,13 L12,13 L12,15.5 C12,15.7761424 11.7761424,16 11.5,16 L4.5,16 C4.22385763,16 4,15.7761424 4,15.5 L4,13 Z M12,12 L13.5,12 C14.3332764,12 15,11.332133 15,10.5018986 L15,6.49810135 C15,5.66552451 14.3347354,5 13.5081158,5 L2.49188419,5 C1.66927409,5 1,5.67099067 1,6.49810135 L1,10.5018986 C1,11.3340195 1.66843281,12 2.5,12 L4,12 L4,10.5 C4,10.2238576 4.22385763,10 4.5,10 L11.5,10 C11.7761424,10 12,10.2238576 12,10.5 L12,12 Z M5,15 L11,15 L11,11 L5,11 L5,15 Z M2.5,8 C2.22385763,8 2,7.77614237 2,7.5 C2,7.22385763 2.22385763,7 2.5,7 L4.5,7 C4.77614237,7 5,7.22385763 5,7.5 C5,7.77614237 4.77614237,8 4.5,8 L2.5,8 Z"
6535 }, color !== "currentColor" && {
6536 fillOpacity: ".65"
6537 }, {
6538 fill: color,
6539 fillRule: "nonzero"
6540 }))))));
6541 },
6542 large: function large(_ref2) {
6543 var color = _ref2.color,
6544 children = _ref2.children,
6545 props = _objectWithoutProperties(_ref2, ["color", "children"]);
6546
6547 return React__default.createElement("svg", _extends({}, props, {
6548 width: "24px",
6549 height: "24px",
6550 viewBox: "0 0 24 24",
6551 version: "1.1",
6552 xmlns: "http://www.w3.org/2000/svg"
6553 }), children, React__default.createElement("g", {
6554 stroke: "none",
6555 strokeWidth: "1",
6556 fill: "none",
6557 fillRule: "evenodd"
6558 }, React__default.createElement("g", {
6559 transform: "translate(-274.000000, -187.000000)"
6560 }, React__default.createElement("g", {
6561 transform: "translate(274.000000, 187.000000)"
6562 }, React__default.createElement("g", null, React__default.createElement("rect", {
6563 x: "0",
6564 y: "0",
6565 width: "24",
6566 height: "24"
6567 }), React__default.createElement("path", _extends({
6568 d: "M5,17 L2.5,17 C1.12385763,17 0,15.8761424 0,14.5 L0,8.5 C0,7.12316384 1.12355127,6 2.5,6 L21.5,6 C22.8764487,6 24,7.12316384 24,8.5 L24,14.5 C24,15.8761424 22.8761424,17 21.5,17 L19,17 L19,23.5 C19,23.7761424 18.7761424,24 18.5,24 L5.5,24 C5.22385763,24 5,23.7761424 5,23.5 L5,17 Z M19,16 L21.5,16 C22.3238576,16 23,15.3238576 23,14.5 L23,8.5 C23,7.67552581 22.3242412,7 21.5,7 L2.5,7 C1.67575883,7 1,7.67552581 1,8.5 L1,14.5 C1,15.3238576 1.67614237,16 2.5,16 L5,16 L5,13.5 C5,13.2238576 5.22385763,13 5.5,13 L18.5,13 C18.7761424,13 19,13.2238576 19,13.5 L19,16 Z M6,1 L6,4.5 C6,4.77614237 5.77614237,5 5.5,5 C5.22385763,5 5,4.77614237 5,4.5 L5,0.5 C5,0.223857625 5.22385763,0 5.5,0 L15.5,0 C15.6326082,0 15.7597852,0.0526784202 15.8535534,0.146446609 L18.8535534,3.14644661 C18.9473216,3.2402148 19,3.36739176 19,3.5 L19,4.5 C19,4.77614237 18.7761424,5 18.5,5 C18.2238576,5 18,4.77614237 18,4.5 L18,3.70710678 L15.2928932,1 L6,1 Z M6,23 L18,23 L18,14 L6,14 L6,23 Z M5,10.5 C5,10.2231424 4.77685763,10 4.5,10 C4.22371954,10 4,10.223565 4,10.5 C4,10.7758576 4.22414237,11 4.5,11 C4.77643497,11 5,10.7762805 5,10.5 Z M6,10.5 C6,11.3284106 5.32887443,12 4.5,12 C3.67185763,12 3,11.3281424 3,10.5 C3,9.67112557 3.67158938,9 4.5,9 C5.32914237,9 6,9.67085763 6,10.5 Z M16,3 L18.5,3 C18.7761424,3 19,3.22385763 19,3.5 C19,3.77614237 18.7761424,4 18.5,4 L15.5,4 C15.2238576,4 15,3.77614237 15,3.5 L15,0.5 C15,0.223857625 15.2238576,0 15.5,0 C15.7761424,0 16,0.223857625 16,0.5 L16,3 Z",
6569 fill: color
6570 }, color !== "currentColor" && {
6571 fillOpacity: ".65"
6572 }, {
6573 fillRule: "nonzero"
6574 })))))));
6575 }
6576};
6577
6578var PrintIcon = function PrintIcon(_ref3) {
6579 var size = _ref3.size,
6580 rest = _objectWithoutProperties(_ref3, ["size"]);
6581
6582 return printIcons[size](rest);
6583};
6584
6585PrintIcon.displayName = "PrintIcon";
6586PrintIcon.propTypes = {
6587 children: PropTypes.node,
6588 color: PropTypes.string,
6589 size: PropTypes.oneOf(smallLarge)
6590};
6591PrintIcon.defaultProps = {
6592 children: null,
6593 color: themes.global.gray01,
6594 size: smallLarge[0]
6595};
6596
6597var LaunchIcon = function LaunchIcon(_ref) {
6598 var size = _ref.size,
6599 color = _ref.color,
6600 children = _ref.children,
6601 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
6602
6603 return React__default.createElement("svg", _extends({
6604 xmlns: "http://www.w3.org/2000/svg",
6605 width: size,
6606 height: size,
6607 fill: color
6608 }, props), children, React__default.createElement("path", {
6609 fillRule: "evenodd",
6610 d: "M13.651 0c.096 0 .178.034.246.103A.344.344 0 0 1 14 .355v3.5a.336.336 0 0 1-.103.247.336.336 0 0 1-.246.102.336.336 0 0 1-.246-.102.336.336 0 0 1-.102-.247V1.224L5.496 9.003a.35.35 0 0 1-.595-.25.34.34 0 0 1 .103-.25L12.83.705h-2.68a.336.336 0 0 1-.246-.102.336.336 0 0 1-.102-.247c0-.1.034-.184.102-.252A.336.336 0 0 1 10.151 0h3.5zm-2.098 14h-10.5c-.292 0-.54-.103-.745-.308A1.007 1.007 0 0 1 0 12.954v-10.5c0-.292.103-.54.308-.745.205-.205.453-.308.745-.308h7a.34.34 0 0 1 .246.103c.068.068.102.15.102.246 0 .1-.034.185-.102.253a.336.336 0 0 1-.246.102h-7c-.1 0-.185.035-.253.103a.336.336 0 0 0-.103.246v10.5c0 .096.034.178.103.246a.344.344 0 0 0 .253.103h10.5a.336.336 0 0 0 .246-.103.336.336 0 0 0 .102-.246v-7c0-.096.035-.178.103-.246a.336.336 0 0 1 .246-.103c.096 0 .178.035.246.103.068.068.103.15.103.246v7c0 .287-.103.533-.308.738a1.007 1.007 0 0 1-.738.308z"
6611 }));
6612};
6613
6614LaunchIcon.displayName = "LaunchIcon";
6615LaunchIcon.propTypes = {
6616 size: PropTypes.number,
6617 color: PropTypes.string,
6618 children: PropTypes.node
6619};
6620LaunchIcon.defaultProps = {
6621 size: 14,
6622 color: "currentcolor",
6623 children: null
6624};
6625
6626var playCircularIcons = {
6627 small: function small(_ref) {
6628 var children = _ref.children,
6629 circleColor = _ref.circleColor,
6630 arrowColor = _ref.arrowColor,
6631 props = _objectWithoutProperties(_ref, ["children", "circleColor", "arrowColor"]);
6632
6633 return React__default.createElement("svg", _extends({
6634 className: "icon--play-circular icon--play-circular-small",
6635 xmlns: "http://www.w3.org/2000/svg",
6636 width: "48",
6637 height: "48"
6638 }, props), React__default.createElement("g", {
6639 fill: "none",
6640 fillRule: "evenodd"
6641 }, React__default.createElement("path", {
6642 d: "M1 1h46v46H1z"
6643 }), React__default.createElement("circle", {
6644 cx: "24",
6645 cy: "24",
6646 r: "22.042",
6647 fill: circleColor,
6648 fillOpacity: ".1",
6649 stroke: arrowColor,
6650 strokeWidth: "1.917"
6651 }), React__default.createElement("path", {
6652 fill: arrowColor,
6653 stroke: arrowColor,
6654 strokeLinecap: "round",
6655 strokeLinejoin: "round",
6656 strokeWidth: "1.917",
6657 d: "M19.208 15.375L32.625 24l-13.417 8.625z"
6658 })), children);
6659 },
6660 large: function large(_ref2) {
6661 var children = _ref2.children,
6662 circleColor = _ref2.circleColor,
6663 arrowColor = _ref2.arrowColor,
6664 props = _objectWithoutProperties(_ref2, ["children", "circleColor", "arrowColor"]);
6665
6666 return React__default.createElement("svg", _extends({
6667 className: "icon--play-circular icon--play-circular-large",
6668 xmlns: "http://www.w3.org/2000/svg",
6669 width: "120",
6670 height: "120"
6671 }, props), React__default.createElement("g", {
6672 fill: "none",
6673 fillRule: "evenodd"
6674 }, React__default.createElement("path", {
6675 d: "M10 10h100v100H10z"
6676 }), React__default.createElement("circle", {
6677 cx: "60",
6678 cy: "60",
6679 r: "47.917",
6680 fill: circleColor,
6681 fillOpacity: ".1",
6682 stroke: arrowColor,
6683 strokeWidth: "4.167"
6684 }), React__default.createElement("path", {
6685 fill: arrowColor,
6686 stroke: arrowColor,
6687 strokeLinecap: "round",
6688 strokeLinejoin: "round",
6689 strokeWidth: "4.167",
6690 d: "M49.583 41.25L78.75 60 49.583 78.75z"
6691 })), children);
6692 }
6693};
6694
6695var PlayCircularIcon = function PlayCircularIcon(_ref3) {
6696 var size = _ref3.size,
6697 rest = _objectWithoutProperties(_ref3, ["size"]);
6698
6699 return playCircularIcons[size](rest);
6700};
6701
6702PlayCircularIcon.displayName = "PlayCircularIcon";
6703PlayCircularIcon.propTypes = {
6704 children: PropTypes.node,
6705 circleColor: PropTypes.string,
6706 arrowColor: PropTypes.string,
6707 size: PropTypes.oneOf(SIZES_SL)
6708};
6709PlayCircularIcon.defaultProps = {
6710 children: null,
6711 circleColor: themes.global.dark.base,
6712 arrowColor: themes.global.white.base,
6713 size: "small"
6714};
6715
6716var ItunesIcon = function ItunesIcon(_ref) {
6717 var size = _ref.size,
6718 color = _ref.color,
6719 children = _ref.children,
6720 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
6721
6722 return React__default.createElement("svg", _extends({}, props, {
6723 viewBox: "0 0 24 24",
6724 width: size,
6725 height: size,
6726 fill: color
6727 }), children, React__default.createElement("g", {
6728 id: "Logos/Social/Fill/Itunes-24",
6729 stroke: "none",
6730 strokeWidth: "1",
6731 fill: "none",
6732 fillRule: "evenodd"
6733 }, React__default.createElement("polygon", {
6734 id: "Fill-1",
6735 points: "0 0 24 0 24 24 0 24"
6736 }), React__default.createElement("g", {
6737 id: "itunes",
6738 transform: "translate(1.000000, 1.000000)",
6739 fill: color,
6740 fillRule: "nonzero"
6741 }, React__default.createElement("path", {
6742 d: "M10.9762924,0.122100606 C5.10470391,0.122100606 0.345079004,4.88172551 0.345079004,10.753314 C0.345079004,16.6249438 5.10470391,21.3845687 10.9762924,21.3845687 C16.8479222,21.3845687 21.6075471,16.624985 21.6075471,10.753314 C21.6075471,4.88172551 16.8479222,0.122100606 10.9762924,0.122100606 Z M10.9762924,1.29547792 C16.1991392,1.29547792 20.434211,5.53054967 20.434211,10.7533553 C20.434211,15.9762021 16.1991392,20.2112738 10.9762924,20.2112738 C5.75348682,20.2112738 1.52728274,15.9762021 1.52728274,10.7533553 C1.52728274,5.53054967 5.75348682,1.29547792 10.9762924,1.29547792 L10.9762924,1.29547792 Z",
6743 id: "Shape"
6744 }), React__default.createElement("path", {
6745 d: "M15.4064527,3.66190639 L8.03408457,5.65543935 L8.02554687,5.65543935 L8.02554687,8.654194 L8.03408457,8.654194 L8.03408457,14.0160363 C7.71154913,13.8219376 7.31613389,13.7066992 6.891311,13.7066992 C5.79695899,13.7066992 4.91514216,14.4667197 4.91514216,15.3993916 C4.91514216,16.3323521 5.79720646,17.0835875 6.891311,17.0835875 C7.98541554,17.0835875 8.91532397,16.3315685 8.87630626,15.3994328 L8.85621997,14.9209915 L8.80755094,8.43918413 L14.6332751,6.86663828 L14.6332751,12.7869371 C14.293128,12.5524183 13.8589426,12.4088859 13.3873891,12.4088859 C12.2930371,12.4088859 11.4109316,13.1689064 11.4109316,14.1015783 C11.4109316,15.0345388 12.2930371,15.785733 13.3873891,15.785733 C14.4817412,15.785733 15.4015033,15.0345388 15.4015033,14.1015783 C15.4015033,14.0927931 15.401792,14.0845441 15.4015033,14.0757177 L15.4067414,6.6601661 L15.4067414,3.66190639 L15.4064527,3.66190639 L15.4064527,3.66190639 Z",
6746 id: "Path"
6747 }))));
6748};
6749
6750ItunesIcon.displayName = "ItunesIcon";
6751ItunesIcon.defaultProps = {
6752 color: "currentColor",
6753 children: null
6754};
6755ItunesIcon.propTypes = {
6756 size: PropTypes.number.isRequired,
6757 color: PropTypes.string,
6758 children: PropTypes.node
6759};
6760
6761var WebsiteIcon = function WebsiteIcon(_ref) {
6762 var size = _ref.size,
6763 color = _ref.color,
6764 children = _ref.children,
6765 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
6766
6767 return React__default.createElement("svg", _extends({}, props, {
6768 viewBox: "0 0 24 24",
6769 width: size,
6770 height: size,
6771 fill: color
6772 }), children, React__default.createElement("g", {
6773 id: "Logos/Social/Fill/Website-24",
6774 stroke: "none",
6775 strokeWidth: "1",
6776 fill: "none",
6777 fillRule: "evenodd"
6778 }, React__default.createElement("polygon", {
6779 id: "Fill-1",
6780 points: "0 0 24 0 24 24 0 24"
6781 }), React__default.createElement("g", {
6782 id: "Group",
6783 transform: "translate(1.000000, 2.000000)",
6784 fill: color,
6785 fillRule: "nonzero"
6786 }, React__default.createElement("path", {
6787 d: "M12.6691529,20.1490264 C13.7252353,18.283676 14.4759436,16.2613129 14.892792,14.1586766 L20.2098902,14.1586766 C18.8799242,17.3089179 16.038575,19.5660812 12.6691529,20.1490264 L12.6691529,20.1490264 Z",
6788 id: "Path"
6789 }), React__default.createElement("path", {
6790 d: "M9.9183763,19.2911127 C10.1239633,19.6733159 10.5228751,19.9117014 10.9568627,19.9117014 C11.3908504,19.9117014 11.7897622,19.6733159 11.9953492,19.2911127 C12.8623885,17.6789552 13.4929587,15.9504339 13.8676784,14.1586766 L8.04604706,14.1586766 C8.42076679,15.9504339 9.05133696,17.6789552 9.9183763,19.2911127 L9.9183763,19.2911127 Z",
6791 id: "Path"
6792 }), React__default.createElement("path", {
6793 d: "M9.24474527,20.1490264 C5.87532313,19.5660813 3.03397375,17.308918 1.70400767,14.1586766 L7.02110571,14.1586766 C7.43795423,16.2613129 8.18866277,18.2836761 9.24474527,20.1490264 L9.24474527,20.1490264 Z",
6794 id: "Path"
6795 }), React__default.createElement("path", {
6796 d: "M15.0655137,7.35016837 C15.3464951,9.27467237 15.3464951,11.229782 15.0655137,13.154286 L20.5722431,13.154286 C21.1434398,11.2617397 21.1434398,9.24271466 20.5722431,7.35016837 L15.0655137,7.35016837 Z",
6797 id: "Path"
6798 }), React__default.createElement("path", {
6799 d: "M14.0498902,13.154286 C14.3458297,11.2308971 14.3458297,9.27355726 14.0498902,7.35016837 L7.86383547,7.35016837 C7.56789599,9.27355726 7.56789599,11.2308971 7.86383547,13.154286 L14.0498902,13.154286 Z",
6800 id: "Path"
6801 }), React__default.createElement("path", {
6802 d: "M6.84821176,13.154286 C6.56723035,11.229782 6.56723035,9.27467237 6.84821176,7.35016837 L1.34148218,7.35016837 C0.770285507,9.24271466 0.770285507,11.2617397 1.34148218,13.154286 L6.84821176,13.154286 Z",
6803 id: "Path"
6804 }), React__default.createElement("path", {
6805 d: "M12.6691529,0.355462484 C13.7252335,2.22080751 14.4759419,4.24316471 14.892792,6.34579503 L20.2098902,6.34579503 C18.8799195,3.19556042 16.0385711,0.938404235 12.6691529,0.355462484 L12.6691529,0.355462484 Z",
6806 id: "Path"
6807 }), React__default.createElement("path", {
6808 d: "M9.9183763,1.21335895 C9.05133696,2.82551643 8.42076679,4.55403778 8.04604706,6.34579503 L13.8676784,6.34579503 C13.4929571,4.55404372 12.862387,2.82552828 11.9953492,1.21337621 C11.7897653,0.831171298 11.3908556,0.592778866 10.9568679,0.592778866 C10.5228802,0.592778866 10.1239665,0.831157459 9.9183763,1.21335895 L9.9183763,1.21335895 Z",
6809 id: "Path"
6810 }), React__default.createElement("path", {
6811 d: "M1.70400767,6.34579503 L7.02110571,6.34579503 C7.437956,4.24316468 8.18866449,2.22080747 9.24474527,0.355462484 C5.87532694,0.938404127 3.0339784,3.19556033 1.70400767,6.34579503 L1.70400767,6.34579503 Z",
6812 id: "Path"
6813 }))));
6814};
6815
6816WebsiteIcon.displayName = "WebsiteIcon";
6817WebsiteIcon.defaultProps = {
6818 color: "currentColor",
6819 children: null
6820};
6821WebsiteIcon.propTypes = {
6822 size: PropTypes.number.isRequired,
6823 color: PropTypes.string,
6824 children: PropTypes.node
6825};
6826
6827var SpotifyIcon = function SpotifyIcon(_ref) {
6828 var size = _ref.size,
6829 color = _ref.color,
6830 children = _ref.children,
6831 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
6832
6833 return React__default.createElement("svg", _extends({}, props, {
6834 viewBox: "0 0 24 24",
6835 width: size,
6836 height: size,
6837 fill: color
6838 }), children, React__default.createElement("g", {
6839 id: "Logos/Social/Fill/Spotify-24",
6840 stroke: "none",
6841 strokeWidth: "1",
6842 fill: "none",
6843 fillRule: "evenodd"
6844 }, React__default.createElement("polygon", {
6845 id: "Fill-1",
6846 points: "0 0 24 0 24 24 0 24"
6847 }), React__default.createElement("path", {
6848 d: "M17.9153601,10.8652186 C14.6919265,8.95090933 9.37494477,8.77489462 6.29779205,9.70882342 C5.80354179,9.85880611 5.28099065,9.57985742 5.13124679,9.08572657 C4.98150293,8.59123748 5.26021279,8.06904458 5.75470189,7.91882307 C9.28705683,6.84661405 15.1591894,7.05367613 18.8700668,9.25648711 C19.3145218,9.52038976 19.460325,10.0944079 19.1969,10.5381465 C18.9332362,10.9826015 18.3587404,11.1291212 17.9153601,10.8652186 Z M17.809799,13.70056 C17.5836309,14.0675161 17.1038296,14.1826302 16.7373512,13.9572979 C14.0499624,12.3054584 9.95206764,11.8268512 6.77269742,12.7919468 C6.36036445,12.9164945 5.92498477,12.6841169 5.79972057,12.2725004 C5.67553109,11.8602868 5.90802813,11.4256236 6.31964463,11.30024 C9.95158998,10.1980583 14.4667136,10.7318343 17.5533,12.6287093 C17.9197784,12.8543998 18.0351313,13.3344399 17.809799,13.70056 Z M16.5861744,16.4235339 C16.4064579,16.7182451 16.022784,16.8105513 15.7291475,16.6309542 C13.3808915,15.1957298 10.4251818,14.871643 6.94429385,15.6666945 C6.60886283,15.7435965 6.27450653,15.5334297 6.19796281,15.1979986 C6.12118028,14.862687 6.33063062,14.5283307 6.66677812,14.451787 C10.4760517,13.5810277 13.7435487,13.9557456 16.3793511,15.5663876 C16.6732264,15.7458653 16.7657715,16.129778 16.5861744,16.4235339 Z M12,2 C6.47726974,2 2,6.47715033 2,11.9998806 C2,17.5232079 6.47726974,22 12,22 C17.5229691,22 22,17.5232079 22,11.9998806 C22,6.47715033 17.5229691,2 12,2 L12,2 Z",
6849 id: "Spotify_Icon_RGB_Black",
6850 fill: color
6851 })));
6852};
6853
6854SpotifyIcon.displayName = "SpotifyIcon";
6855SpotifyIcon.defaultProps = {
6856 color: "currentColor",
6857 children: null
6858};
6859SpotifyIcon.propTypes = {
6860 size: PropTypes.number.isRequired,
6861 color: PropTypes.string,
6862 children: PropTypes.node
6863};
6864
6865function _templateObject3$5() {
6866 var data = _taggedTemplateLiteral(["\n ", ":hover & {\n color: ", ";\n fill: currentColor;\n }\n"]);
6867
6868 _templateObject3$5 = function _templateObject3() {
6869 return data;
6870 };
6871
6872 return data;
6873}
6874
6875function _templateObject2$f() {
6876 var data = _taggedTemplateLiteral(["\n display: block;\n padding: ", " ", " 0;\n border: 0;\n color: ", ";\n"]);
6877
6878 _templateObject2$f = function _templateObject2() {
6879 return data;
6880 };
6881
6882 return data;
6883}
6884
6885function _templateObject$k() {
6886 var data = _taggedTemplateLiteral(["\n margin-left: auto;\n"]);
6887
6888 _templateObject$k = function _templateObject() {
6889 return data;
6890 };
6891
6892 return data;
6893}
6894var DayTileOverflowButtonContainer = styled.div(_templateObject$k());
6895var DayTileOverflowIconButton = styled(IconButton)(_templateObject2$f(), spacing.cozy, spacing.cozy, getThemeValue("gray02"));
6896var DayTileOverflowIcon = styled(OverflowIcon)(_templateObject3$5(), DayTileOverflowIconButton, getThemeValue("primary", "base"));
6897
6898var DayTileOverflowButton = function DayTileOverflowButton(props) {
6899 return React__default.createElement(DayTileOverflowButtonContainer, null, React__default.createElement(DayTileOverflowIconButton, _extends({
6900 size: 30,
6901 role: "button"
6902 }, props), React__default.createElement(DayTileOverflowIcon, {
6903 size: 21
6904 })));
6905};
6906
6907function _templateObject$l() {
6908 var data = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"]);
6909
6910 _templateObject$l = function _templateObject() {
6911 return data;
6912 };
6913
6914 return data;
6915}
6916var Container$1 = styled.div.attrs({
6917 className: "container-block"
6918})(_templateObject$l(), themes.global.white.base, constants.borderRadius.large, themes.global.gray03, spacing.moderate);
6919Container$1.propTypes = {
6920 children: PropTypes__default.node.isRequired
6921};
6922Container$1.displayName = "ContainerBlock";
6923
6924function _templateObject$m() {
6925 var data = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n box-shadow: ", ";\n padding: ", ";\n border: none;\n"]);
6926
6927 _templateObject$m = function _templateObject() {
6928 return data;
6929 };
6930
6931 return data;
6932}
6933var Card = styled(Container$1)(_templateObject$m(), constants.borderRadius.large, themes.global.white.base, cardBoxShadow, spacing.moderate);
6934Card.displayName = "Card";
6935
6936function _templateObject4$5() {
6937 var data = _taggedTemplateLiteral(["\n ", "\n "]);
6938
6939 _templateObject4$5 = function _templateObject4() {
6940 return data;
6941 };
6942
6943 return data;
6944}
6945
6946function _templateObject3$6() {
6947 var data = _taggedTemplateLiteral(["\n ", "\n "]);
6948
6949 _templateObject3$6 = function _templateObject3() {
6950 return data;
6951 };
6952
6953 return data;
6954}
6955
6956function _templateObject2$g() {
6957 var data = _taggedTemplateLiteral(["\n padding-right: ", "px;\n padding-left: ", "px;\n ", "\n "]);
6958
6959 _templateObject2$g = function _templateObject2() {
6960 return data;
6961 };
6962
6963 return data;
6964}
6965
6966function _templateObject$n() {
6967 var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n padding-right: ", "px;\n padding-left: ", "px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"]);
6968
6969 _templateObject$n = function _templateObject() {
6970 return data;
6971 };
6972
6973 return data;
6974}
6975
6976var getColumnValue = function getColumnValue() {
6977 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
6978 args[_key] = arguments[_key];
6979 }
6980
6981 return args.filter(function (el) {
6982 return el !== null;
6983 })[0];
6984};
6985
6986var getSize = function getSize(val) {
6987 return val / constants.MAX_COLUMNS * 100;
6988};
6989
6990var getFlexProps = function getFlexProps(val) {
6991 return val === 12 ? "\n flex: 0 0 100%;\n " : "\n flex: 0 0 ".concat(getSize(val), "%;\n ");
6992};
6993
6994var getDisplayProp = function getDisplayProp(val) {
6995 return val === 0 ? "none" : "block";
6996}; // returns styles based on Column value
6997
6998
6999var getColumnStylesMixin = function getColumnStylesMixin(columnValue) {
7000 return "\n max-width: ".concat(getSize(columnValue), "%;\n display: ").concat(getDisplayProp(columnValue), ";\n ").concat(getFlexProps(columnValue), "\n");
7001};
7002
7003var Column = styled.div(_templateObject$n(), spacing.gutters.small / 2, spacing.gutters.small / 2, function (_ref) {
7004 var small = _ref.small;
7005 return getColumnStylesMixin(small);
7006}, mediumAndUp(_templateObject2$g(), spacing.gutters.mediumAndUp / 2, spacing.gutters.mediumAndUp / 2, function (_ref2) {
7007 var medium = _ref2.medium,
7008 small = _ref2.small;
7009 return getColumnStylesMixin(getColumnValue(medium, small));
7010}), largeAndUp(_templateObject3$6(), function (_ref3) {
7011 var large = _ref3.large,
7012 medium = _ref3.medium,
7013 small = _ref3.small;
7014 return getColumnStylesMixin(getColumnValue(large, medium, small));
7015}), xLargeAndUp(_templateObject4$5(), function (_ref4) {
7016 var xLarge = _ref4.xLarge,
7017 large = _ref4.large,
7018 medium = _ref4.medium,
7019 small = _ref4.small;
7020 return getColumnStylesMixin(getColumnValue(xLarge, large, medium, small));
7021}));
7022
7023var PropTypePositiveInt = function PropTypePositiveInt(props, propName, componentName) {
7024 if (props[propName] >= 0) return null;
7025 return new Error("Invalid value in ".concat(propName, " supplied to ").concat(componentName, " should be a positive integer"));
7026};
7027
7028Column.propTypes = {
7029 small: PropTypePositiveInt,
7030 medium: PropTypePositiveInt,
7031 large: PropTypePositiveInt,
7032 xLarge: PropTypePositiveInt
7033};
7034Column.defaultProps = {
7035 small: 12,
7036 medium: null,
7037 large: null,
7038 xLarge: null
7039};
7040Column.displayName = "Column";
7041
7042function _templateObject2$h() {
7043 var data = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-right: ", "px;\n "]);
7044
7045 _templateObject2$h = function _templateObject2() {
7046 return data;
7047 };
7048
7049 return data;
7050}
7051
7052function _templateObject$o() {
7053 var data = _taggedTemplateLiteral(["\n margin: 0 auto;\n max-width: ", ";\n width: 100%;\n padding-left: ", "px;\n padding-right: ", "px;\n box-sizing: border-box;\n ", ";\n"]);
7054
7055 _templateObject$o = function _templateObject() {
7056 return data;
7057 };
7058
7059 return data;
7060}
7061var Container$2 = styled.div(_templateObject$o(), function () {
7062 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
7063 _ref$theme = _ref.theme,
7064 theme = _ref$theme === void 0 ? {} : _ref$theme;
7065
7066 return theme.maxWidth || "1440px";
7067}, spacing.gutters.small, spacing.gutters.small, mediumAndUp(_templateObject2$h(), spacing.gutters.mediumAndUp, spacing.gutters.mediumAndUp));
7068Container$2.displayName = "Container";
7069
7070var _SIZES;
7071
7072function _templateObject4$6() {
7073 var data = _taggedTemplateLiteral(["\n > div {\n width: ", ";\n height: ", ";\n margin-top: ", ";\n margin-left: ", ";\n border: ", " solid\n ", ";\n border-color: ", " transparent transparent transparent;\n }\n"]);
7074
7075 _templateObject4$6 = function _templateObject4() {
7076 return data;
7077 };
7078
7079 return data;
7080}
7081
7082function _templateObject3$7() {
7083 var data = _taggedTemplateLiteral(["\n > div {\n width: ", ";\n height: ", ";\n margin-top: ", ";\n margin-left: ", ";\n border: ", " solid\n ", ";\n border-color: ", " transparent transparent\n transparent;\n }\n"]);
7084
7085 _templateObject3$7 = function _templateObject3() {
7086 return data;
7087 };
7088
7089 return data;
7090}
7091
7092function _templateObject2$i() {
7093 var data = _taggedTemplateLiteral(["\n > div {\n left: calc(50% - ", " / 2);\n width: ", ";\n height: ", ";\n margin: 0px;\n border: ", " solid\n ", ";\n border-color: ", " transparent transparent\n transparent;\n }\n"]);
7094
7095 _templateObject2$i = function _templateObject2() {
7096 return data;
7097 };
7098
7099 return data;
7100}
7101
7102function _templateObject$p() {
7103 var data = _taggedTemplateLiteral(["\n display: ", ";\n\n > div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n border-radius: 100%;\n animation: ", " 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n :nth-child(1) {\n animation-delay: -0.45s;\n }\n :nth-child(2) {\n animation-delay: -0.3s;\n }\n :nth-child(3) {\n animation-delay: -0.15s;\n }\n }\n"]);
7104
7105 _templateObject$p = function _templateObject() {
7106 return data;
7107 };
7108
7109 return data;
7110}
7111var SIZES$2 = (_SIZES = {}, _defineProperty(_SIZES, SMALL, {
7112 borderWidth: "2px",
7113 marginValue: "4px",
7114 outerRingLength: "48px",
7115 middleRingLength: "36px",
7116 innerRingLength: "24px"
7117}), _defineProperty(_SIZES, REGULAR, {
7118 borderWidth: "3px",
7119 marginValue: "7px",
7120 outerRingLength: "80px",
7121 middleRingLength: "60px",
7122 innerRingLength: "40px"
7123}), _SIZES);
7124var Rotate = keyframes(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);
7125var LoadingContainer = styled.div(_templateObject$p(), function (_ref) {
7126 var display = _ref.display;
7127 return display;
7128}, Rotate);
7129var OuterRing = styled(LoadingContainer)(_templateObject2$i(), function (_ref2) {
7130 var size = _ref2.size;
7131 return SIZES$2[size].outerRingLength;
7132}, function (_ref3) {
7133 var size = _ref3.size;
7134 return SIZES$2[size].outerRingLength;
7135}, function (_ref4) {
7136 var size = _ref4.size;
7137 return SIZES$2[size].outerRingLength;
7138}, function (_ref5) {
7139 var size = _ref5.size;
7140 return SIZES$2[size].borderWidth;
7141}, themes.global.accent01.dark, themes.global.accent01.dark);
7142var MiddleRing = styled(LoadingContainer)(_templateObject3$7(), function (_ref6) {
7143 var size = _ref6.size;
7144 return SIZES$2[size].middleRingLength;
7145}, function (_ref7) {
7146 var size = _ref7.size;
7147 return SIZES$2[size].middleRingLength;
7148}, function (_ref8) {
7149 var size = _ref8.size;
7150 return SIZES$2[size].marginValue;
7151}, function (_ref9) {
7152 var size = _ref9.size;
7153 return SIZES$2[size].marginValue;
7154}, function (_ref10) {
7155 var size = _ref10.size;
7156 return SIZES$2[size].borderWidth;
7157}, themes.global.accent03.light, themes.global.accent03.light);
7158var InnerRing = styled(LoadingContainer)(_templateObject4$6(), function (_ref11) {
7159 var size = _ref11.size;
7160 return SIZES$2[size].innerRingLength;
7161}, function (_ref12) {
7162 var size = _ref12.size;
7163 return SIZES$2[size].innerRingLength;
7164}, function (_ref13) {
7165 var size = _ref13.size;
7166 return SIZES$2[size].marginValue;
7167}, function (_ref14) {
7168 var size = _ref14.size;
7169 return SIZES$2[size].marginValue;
7170}, function (_ref15) {
7171 var size = _ref15.size;
7172 return SIZES$2[size].borderWidth;
7173}, themes.global.brand, themes.global.brand);
7174
7175var LoaderRing = function LoaderRing(props) {
7176 return React__default.createElement(React__default.Fragment, null, React__default.createElement(OuterRing, props, React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement(MiddleRing, props, React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement(InnerRing, props, React__default.createElement("div", null), React__default.createElement("div", null), React__default.createElement("div", null)))));
7177};
7178
7179LoaderRing.displayName = "LoaderRing";
7180LoaderRing.propTypes = {
7181 size: PropTypes__default.oneOf(SIZES_SR),
7182 display: PropTypes__default.oneOf(["block", "inline-block"])
7183};
7184LoaderRing.defaultProps = {
7185 size: REGULAR,
7186 display: "block"
7187};
7188
7189var _React$createContext = React__default.createContext({
7190 isOpen: false
7191}),
7192 Provider = _React$createContext.Provider,
7193 Consumer = _React$createContext.Consumer;
7194
7195function _templateObject5$1() {
7196 var data = _taggedTemplateLiteral(["\n &.drawer--open {\n overflow: hidden;\n }\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n"]);
7197
7198 _templateObject5$1 = function _templateObject5() {
7199 return data;
7200 };
7201
7202 return data;
7203}
7204
7205function _templateObject4$7() {
7206 var data = _taggedTemplateLiteral(["\n appearance: none;\n cursor: pointer;\n border: 0;\n outline: 0;\n background: transparent;\n display: flex;\n align-items: center;\n height: 60px;\n padding: 0 ", ";\n"]);
7207
7208 _templateObject4$7 = function _templateObject4() {
7209 return data;
7210 };
7211
7212 return data;
7213}
7214
7215function _templateObject3$8() {
7216 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n align-items: center;\n height: 60px;\n padding-left: ", ";\n position: relative;\n z-index: 5;\n"]);
7217
7218 _templateObject3$8 = function _templateObject3() {
7219 return data;
7220 };
7221
7222 return data;
7223}
7224
7225function _templateObject2$j() {
7226 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n height: 100vh;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n"]);
7227
7228 _templateObject2$j = function _templateObject2() {
7229 return data;
7230 };
7231
7232 return data;
7233}
7234
7235function _templateObject$q() {
7236 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n visibility: hidden;\n opacity: 0;\n transition: opacity 300ms ", ";\n overflow: hidden;\n z-index: -1;\n\n &.drawer__content--open {\n /* Needed to fix iOS Safari issue with Hamburger position after location change */\n transform: translateZ(0);\n\n visibility: visible;\n opacity: 1;\n }\n"]);
7237
7238 _templateObject$q = function _templateObject() {
7239 return data;
7240 };
7241
7242 return data;
7243}
7244var DrawerContainer = styled.div(_templateObject$q(), getThemeValue("dark", "base"), getThemeValue("white", "base"), constants.easing.easeInOutQuad);
7245var DrawerContent = styled.div(_templateObject2$j());
7246var HeaderContent = styled.div(_templateObject3$8(), spacing.moderate);
7247var CloseButton = styled.button(_templateObject4$7(), spacing.moderate);
7248var ContentWrapper$2 = styled.div(_templateObject5$1());
7249
7250var Portal =
7251/*#__PURE__*/
7252function (_React$Component) {
7253 _inherits(Portal, _React$Component);
7254
7255 function Portal() {
7256 var _getPrototypeOf2;
7257
7258 var _this;
7259
7260 _classCallCheck(this, Portal);
7261
7262 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7263 args[_key] = arguments[_key];
7264 }
7265
7266 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Portal)).call.apply(_getPrototypeOf2, [this].concat(args)));
7267
7268 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
7269 rootSelector: null,
7270 container: null
7271 });
7272
7273 return _this;
7274 }
7275
7276 _createClass(Portal, [{
7277 key: "componentDidMount",
7278 value: function componentDidMount() {
7279 var rootSelector = document.getElementById("modal-root");
7280 var container = document.createElement("div");
7281 rootSelector.appendChild(container); // we need to do it in componentDidMount for Portal to work correctly with SSR
7282 // eslint-disable-next-line
7283
7284 this.setState({
7285 rootSelector: rootSelector,
7286 container: container
7287 });
7288 }
7289 }, {
7290 key: "componentWillUnmount",
7291 value: function componentWillUnmount() {
7292 if (this.state.rootSelector) {
7293 this.state.rootSelector.removeChild(this.state.container);
7294 }
7295 }
7296 }, {
7297 key: "render",
7298 value: function render() {
7299 var _this$state = this.state,
7300 rootSelector = _this$state.rootSelector,
7301 container = _this$state.container;
7302
7303 if (!rootSelector) {
7304 return null;
7305 }
7306
7307 return ReactDOM.createPortal(this.props.children, container);
7308 }
7309 }]);
7310
7311 return Portal;
7312}(React__default.Component);
7313
7314Portal.propTypes = {
7315 children: PropTypes__default.node.isRequired
7316};
7317
7318var DrawerProvider =
7319/*#__PURE__*/
7320function (_React$Component) {
7321 _inherits(DrawerProvider, _React$Component);
7322
7323 function DrawerProvider() {
7324 var _getPrototypeOf2;
7325
7326 var _this;
7327
7328 _classCallCheck(this, DrawerProvider);
7329
7330 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7331 args[_key] = arguments[_key];
7332 }
7333
7334 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DrawerProvider)).call.apply(_getPrototypeOf2, [this].concat(args)));
7335
7336 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "contentContainer", React__default.createRef());
7337
7338 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scrollPosition", 0);
7339
7340 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setContent", function (content) {
7341 return _this.setState(function () {
7342 return {
7343 content: content
7344 };
7345 });
7346 });
7347
7348 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleDrawer", function () {
7349 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
7350 _ref$shouldRestoreScr = _ref.shouldRestoreScroll,
7351 shouldRestoreScroll = _ref$shouldRestoreScr === void 0 ? true : _ref$shouldRestoreScr;
7352
7353 _this.setState(function (_ref2) {
7354 var isOpen = _ref2.isOpen;
7355
7356 /* istanbul ignore else */
7357 if (typeof window !== "undefined" && !isOpen) {
7358 _this.scrollPosition = shouldRestoreScroll ? window.pageYOffset : null;
7359 }
7360
7361 return {
7362 isOpen: !isOpen
7363 };
7364 });
7365 });
7366
7367 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
7368 isOpen: false,
7369 toggleDrawer: _this.toggleDrawer,
7370 setContent: _this.setContent,
7371 content: null
7372 });
7373
7374 return _this;
7375 }
7376
7377 _createClass(DrawerProvider, [{
7378 key: "shouldComponentUpdate",
7379 value: function shouldComponentUpdate(prevProps, prevState) {
7380 return prevState.isOpen !== this.state.isOpen || prevState.content !== this.state.content || prevProps.children !== this.props.children;
7381 }
7382 }, {
7383 key: "componentDidUpdate",
7384 value: function componentDidUpdate(_, prevState) {
7385 if (prevState.isOpen === false) return;
7386 if (this.state.isOpen === true) return;
7387
7388 if (typeof window !== "undefined" && typeof window.scrollTo === "function" && this.scrollPosition !== null) {
7389 window.scrollTo(0, this.scrollPosition);
7390 this.scrollPosition = 0;
7391 }
7392
7393 this.shouldRestoreScroll = true;
7394 }
7395 }, {
7396 key: "render",
7397 value: function render() {
7398 var _this$props = this.props,
7399 className = _this$props.className,
7400 children = _this$props.children;
7401 var _this$state = this.state,
7402 isOpen = _this$state.isOpen,
7403 content = _this$state.content;
7404 return React__default.createElement(Provider, {
7405 value: this.state
7406 }, React__default.createElement(ContentWrapper$2, {
7407 className: classNames({
7408 "drawer--open": isOpen
7409 }, className),
7410 ref: this.contentContainer
7411 }, Children.only(children), content && React__default.createElement(Portal, null, content)));
7412 }
7413 }]);
7414
7415 return DrawerProvider;
7416}(React__default.Component);
7417
7418_defineProperty(DrawerProvider, "propTypes", {
7419 children: PropTypes__default.element.isRequired,
7420 className: PropTypes__default.string
7421});
7422
7423_defineProperty(DrawerProvider, "defaultProps", {
7424 className: ""
7425});
7426
7427var DEFAULT_DEG = {
7428 small: "76deg",
7429 medium: "80deg",
7430 large: "81deg"
7431};
7432var DEFAULT_STOPS = [themes.global.primary.base, colors.defaultGradient.to];
7433var OVERLAY_DEG_NOT_SPOTLIGHT = {
7434 small: "77deg",
7435 medium: "82deg",
7436 large: "86deg"
7437};
7438var OVERLAY_STOPS_NOT_SPOTLIGHT = ["rgba(0, 0, 0, 0)", "#000000"];
7439var SPOTLIGHT_DEG = {
7440 small: "256deg",
7441 medium: "260deg",
7442 large: "262deg"
7443};
7444var SPOTLIGHT_STOPS = ["rgb(0, 45, 161)", "".concat(themes.global.primary.base, " 55%"), "rgb(0, 45, 161)"];
7445var OVERLAY_SHADOW_DEG = {
7446 small: "185deg",
7447 medium: "185deg",
7448 large: "185deg"
7449};
7450var OVERLAY_SHADOW_STOPS = ["rgba(1, 2, 2, 0) 17%", "rgba(0, 0, 90, 0) 55%", "rgba(00, 0, 0, 1)"];
7451var OVERLAY_SHADOW_TOP_DEG = "to bottom";
7452var OVERLAY_SHADOW_TOP_HEIGHT = "26%";
7453var OVERLAY_SHADOW_TOP_STOPS = ["rgba(0, 0, 0, 0.6)", "rgba(0, 0, 0, 0)"];
7454
7455var backgroundImage = function backgroundImage(_ref) {
7456 var bgImage = _ref.backgroundImage,
7457 deg = _ref.deg,
7458 stops = _ref.stops;
7459 return (bgImage || deg && stops) && css(["background-image:", ";"], getBackgroundImage({
7460 backgroundImage: bgImage,
7461 deg: deg,
7462 stops: stops
7463 }));
7464};
7465
7466var FONT_SIZE_FALLBACK = "kilo";
7467
7468var fontSize = function fontSize(size) {
7469 return css(["font-size:", ";"], typography.size[size] || typography.size[FONT_SIZE_FALLBACK]);
7470};
7471
7472var fontSizes = css(["", ";"], function (_ref) {
7473 var size = _ref.size;
7474 return typography.size[size] && "font-size: ".concat(typography.size[size]);
7475});
7476
7477var fontWeight = function fontWeight(weight) {
7478 return css(["", ";"], typography.weight[weight] && "font-weight: ".concat(typography.weight[weight]));
7479};
7480
7481var fontWeights = css(["", ";"], function (_ref) {
7482 var weight = _ref.weight;
7483 return typography.weight[weight] && "font-weight: ".concat(typography.weight[weight]);
7484});
7485
7486var linearGradient = function linearGradient(_ref) {
7487 var deg = _ref.deg,
7488 stops = _ref.stops;
7489 return deg && stops && css(["background-image:linear-gradient(", ",", ");"], deg, stops.join(", "));
7490};
7491
7492var LINE_HEIGHT_FALLBACK = "body";
7493
7494var lineHeight = function lineHeight(lH) {
7495 return css(["line-height:", ";"], typography.lineHeight[lH] || typography.lineHeight[LINE_HEIGHT_FALLBACK]);
7496};
7497
7498function _templateObject2$k() {
7499 var data = _taggedTemplateLiteral(["", ""]);
7500
7501 _templateObject2$k = function _templateObject2() {
7502 return data;
7503 };
7504
7505 return data;
7506}
7507
7508function _templateObject$r() {
7509 var data = _taggedTemplateLiteral(["", ""]);
7510
7511 _templateObject$r = function _templateObject() {
7512 return data;
7513 };
7514
7515 return data;
7516}
7517
7518var responsiveBackgroundImage = function responsiveBackgroundImage(_ref) {
7519 var bgImage = _ref.backgroundImage,
7520 deg = _ref.deg,
7521 stops = _ref.stops;
7522 return (bgImage || deg && stops) && css(["", " ", " ", ""], backgroundImage({
7523 backgroundImage: bgImage,
7524 deg: deg && deg.small,
7525 stops: stops
7526 }), deg && deg.medium && mediumAndUp(_templateObject$r(), backgroundImage({
7527 backgroundImage: bgImage,
7528 deg: deg.medium,
7529 stops: stops
7530 })), deg && deg.large && largeAndUp(_templateObject2$k(), backgroundImage({
7531 backgroundImage: bgImage,
7532 deg: deg.large,
7533 stops: stops
7534 })));
7535};
7536
7537function _templateObject2$l() {
7538 var data = _taggedTemplateLiteral(["", ""]);
7539
7540 _templateObject2$l = function _templateObject2() {
7541 return data;
7542 };
7543
7544 return data;
7545}
7546
7547function _templateObject$s() {
7548 var data = _taggedTemplateLiteral(["", ""]);
7549
7550 _templateObject$s = function _templateObject() {
7551 return data;
7552 };
7553
7554 return data;
7555}
7556
7557var responsiveLinearGradient = function responsiveLinearGradient(_ref) {
7558 var deg = _ref.deg,
7559 stops = _ref.stops;
7560 return deg && stops && css(["", ";", " ", ";"], deg.small && linearGradient({
7561 deg: deg.small,
7562 stops: stops
7563 }), deg.medium && mediumAndUp(_templateObject$s(), linearGradient({
7564 deg: deg.medium,
7565 stops: stops
7566 })), deg.large && largeAndUp(_templateObject2$l(), linearGradient({
7567 deg: deg.large,
7568 stops: stops
7569 })));
7570};
7571
7572var textTransforms = css(["", ";"], function (_ref) {
7573 var tT = _ref.textTransform;
7574 return tT && "text-transform: ".concat(tT, ";");
7575});
7576
7577var themeColor = function themeColor(color, variant) {
7578 return css(["color:", ";"], function (_ref) {
7579 var _ref$theme = _ref.theme,
7580 theme = _ref$theme === void 0 ? THEME_TM : _ref$theme;
7581 return isValidThemeColorVariant(theme, color, variant) ? getThemeValue(color, variant)(theme) : getThemeValue(color)(theme);
7582 });
7583};
7584
7585var themeColors = css(["color:", ";"], function (_ref) {
7586 var _ref$color = _ref.color,
7587 color = _ref$color === void 0 ? ONYX : _ref$color,
7588 _ref$variant = _ref.variant,
7589 variant = _ref$variant === void 0 ? BASE : _ref$variant,
7590 _ref$theme = _ref.theme,
7591 theme = _ref$theme === void 0 ? THEME_TM : _ref$theme;
7592 return isValidThemeColorVariant(theme, color, variant) ? getThemeValue(color, variant)(theme) : getThemeValue(color)(theme) || getThemeValue(ONYX, BASE)(theme);
7593});
7594
7595var DISPLAY_INLINE = css(["display:inline;"]);
7596
7597var BASE_STYLE_TYPOGRAPHY = css(["margin:2px 0;", " ", ";"], themeColors, textTransforms);
7598
7599function _templateObject2$m() {
7600 var data = _taggedTemplateLiteral(["regular"]);
7601
7602 _templateObject2$m = function _templateObject2() {
7603 return data;
7604 };
7605
7606 return data;
7607}
7608
7609function _templateObject$t() {
7610 var data = _taggedTemplateLiteral(["body"]);
7611
7612 _templateObject$t = function _templateObject() {
7613 return data;
7614 };
7615
7616 return data;
7617}
7618var BASE_STYLE_BODY = css(["", ";", " ", " ", ""], BASE_STYLE_TYPOGRAPHY, lineHeight(_templateObject$t()), fontWeight(_templateObject2$m()), fontWeights);
7619
7620function _templateObject$u() {
7621 var data = _taggedTemplateLiteral(["header"]);
7622
7623 _templateObject$u = function _templateObject() {
7624 return data;
7625 };
7626
7627 return data;
7628}
7629var BASE_STYLE_HEADER = css(["", ";", ";", ";", ";"], BASE_STYLE_TYPOGRAPHY, DISPLAY_INLINE, lineHeight(_templateObject$u()), fontWeights);
7630
7631function _templateObject$v() {
7632 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: auto;\n height: 100%;\n"]);
7633
7634 _templateObject$v = function _templateObject() {
7635 return data;
7636 };
7637
7638 return data;
7639}
7640
7641var SpotLight = function SpotLight(_ref) {
7642 var className = _ref.className;
7643 return React__default.createElement("svg", {
7644 xmlns: "http://www.w3.org/2000/svg",
7645 xmlnsXlink: "http://www.w3.org/1999/xlink",
7646 viewBox: "0 0 1440 218",
7647 preserveAspectRatio: "xMinYMid meet",
7648 className: className
7649 }, React__default.createElement("defs", null, React__default.createElement("linearGradient", {
7650 id: "a",
7651 x1: "61.654%",
7652 x2: "3.355%",
7653 y1: "100%",
7654 y2: "0%"
7655 }, React__default.createElement("stop", {
7656 offset: "0%",
7657 stopColor: "#024691"
7658 }), React__default.createElement("stop", {
7659 offset: "52.996%",
7660 stopColor: "#BADBFE"
7661 }), React__default.createElement("stop", {
7662 offset: "100%",
7663 stopColor: "#C56BFF"
7664 })), React__default.createElement("linearGradient", {
7665 id: "c",
7666 x1: "74.395%",
7667 x2: ".532%",
7668 y1: "129.212%",
7669 y2: "-28.101%"
7670 }, React__default.createElement("stop", {
7671 offset: "0%",
7672 stopOpacity: "0"
7673 }), React__default.createElement("stop", {
7674 offset: "100%",
7675 stopOpacity: ".4"
7676 }), React__default.createElement("stop", {
7677 offset: "100%"
7678 }), React__default.createElement("stop", {
7679 offset: "100%",
7680 stopOpacity: ".4"
7681 })), React__default.createElement("path", {
7682 id: "b",
7683 d: "M0 .748h138.365l1325.043 217.52H413.554z"
7684 })), React__default.createElement("g", {
7685 fill: "none",
7686 fillRule: "nonzero",
7687 opacity: ".102",
7688 transform: "translate(-20)"
7689 }, React__default.createElement("use", {
7690 fill: "url(#a)",
7691 xlinkHref: "#b"
7692 }), React__default.createElement("use", {
7693 fill: "url(#c)",
7694 xlinkHref: "#b"
7695 })));
7696};
7697
7698SpotLight.propTypes = {
7699 className: PropTypes__default.string
7700};
7701SpotLight.defaultProps = {
7702 className: ""
7703};
7704var SpotLight$1 = styled(SpotLight)(_templateObject$v());
7705
7706function _templateObject$w() {
7707 var data = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n bottom: 0;\n height: 100%;\n width: auto;\n"]);
7708
7709 _templateObject$w = function _templateObject() {
7710 return data;
7711 };
7712
7713 return data;
7714}
7715
7716var Angle = function Angle(_ref) {
7717 var className = _ref.className;
7718 return React__default.createElement("svg", {
7719 viewBox: "0 0 476 218",
7720 xmlns: "http://www.w3.org/2000/svg",
7721 xmlnsXlink: "http://www.w3.org/1999/xlink",
7722 preserveAspectRatio: "xMaxYMid meet",
7723 className: className
7724 }, React__default.createElement("defs", null, React__default.createElement("linearGradient", {
7725 x1: "21.6784013%",
7726 y1: "112.586732%",
7727 x2: "53.474493%",
7728 y2: "23.9282924%",
7729 id: "Angle-linearGradient-1"
7730 }, React__default.createElement("stop", {
7731 stopColor: "#000000",
7732 stopOpacity: "0",
7733 offset: "0%"
7734 }), React__default.createElement("stop", {
7735 stopColor: "#000000",
7736 offset: "100%"
7737 }), React__default.createElement("stop", {
7738 stopColor: "#000000",
7739 offset: "100%"
7740 }))), React__default.createElement("g", {
7741 stroke: "none",
7742 strokeWidth: "1",
7743 fill: "none",
7744 fillRule: "evenodd",
7745 opacity: "0.0490513393"
7746 }, React__default.createElement("g", {
7747 transform: "translate(-1016.000000, -184.000000)",
7748 fill: "url(#Angle-linearGradient-1)",
7749 fillRule: "nonzero"
7750 }, React__default.createElement("g", {
7751 transform: "translate(52.000000, 184.000000)"
7752 }, React__default.createElement("g", {
7753 transform: "translate(-20.000000, 0.000000)"
7754 }, React__default.createElement("polygon", {
7755 transform: "translate(1222.334169, 109.000000) scale(-1, 1) translate(-1222.334169, -109.000000) ",
7756 points: "984.668337 0 1460 218 984.668337 218"
7757 }))))));
7758};
7759
7760Angle.propTypes = {
7761 className: PropTypes__default.string
7762};
7763Angle.defaultProps = {
7764 className: ""
7765};
7766var Angle$1 = styled(Angle)(_templateObject$w());
7767
7768function _templateObject$x() {
7769 var data = _taggedTemplateLiteral(["\n position: absolute;\n visibility: hidden;\n height: 0;\n width: 0;\n top: 0;\n left: 0;\n"]);
7770
7771 _templateObject$x = function _templateObject() {
7772 return data;
7773 };
7774
7775 return data;
7776}
7777var StyledImageSeo = styled.img.attrs({
7778 className: "image image--seo image--hidden"
7779})(_templateObject$x());
7780
7781function _templateObject3$9() {
7782 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: hidden;\n"]);
7783
7784 _templateObject3$9 = function _templateObject3() {
7785 return data;
7786 };
7787
7788 return data;
7789}
7790
7791function _templateObject2$n() {
7792 var data = _taggedTemplateLiteral(["box-shadow: inset 0 1px 40px 10px rgba(0, 0, 0, 0.15);"]);
7793
7794 _templateObject2$n = function _templateObject2() {
7795 return data;
7796 };
7797
7798 return data;
7799}
7800
7801function _templateObject$y() {
7802 var data = _taggedTemplateLiteral(["\n z-index: ", ";\n width: 100%;\n\n &.gradient--overlay:after,\n &.gradient--underlay:after,\n &.gradient--overlay-shadow:after {\n content: \"\";\n top: 0;\n left: 0;\n right: 0;\n position: absolute;\n }\n\n &.gradient--overlay:after,\n &.gradient--underlay:after {\n height: 100%;\n }\n\n &.gradient--overlay-shadow:after {\n height: ", ";\n ", ";\n }\n\n &.gradient--spotlight {\n ", ";\n }\n\n &:not(.gradient--overlay-shadow),\n &.gradient--underlay.gradient--spotlight:after,\n &:not(.gradient--spotlight).gradient--underlay:after {\n ", ";\n }\n\n &.gradient--overlay-shadow {\n z-index: ", ";\n ", ";\n }\n\n &.gradient--underlay.gradient--spotlight:after,\n &:not(.gradient--spotlight).gradient--underlay:after {\n z-index: ", ";\n opacity: 0.8;\n }\n\n &:not(.gradient--spotlight).gradient--overlay:after {\n z-index: ", ";\n opacity: 0.4;\n ", ";\n }\n"]);
7803
7804 _templateObject$y = function _templateObject() {
7805 return data;
7806 };
7807
7808 return data;
7809}
7810var GradientStyles = styled.span(_templateObject$y(), zIndex.reset, OVERLAY_SHADOW_TOP_HEIGHT, linearGradient({
7811 deg: OVERLAY_SHADOW_TOP_DEG,
7812 stops: OVERLAY_SHADOW_TOP_STOPS
7813}), largeAndUp(_templateObject2$n()), responsiveLinearGradient, zIndex.reset, responsiveBackgroundImage, zIndex.unset, zIndex.layout.ads, responsiveLinearGradient({
7814 deg: OVERLAY_DEG_NOT_SPOTLIGHT,
7815 stops: OVERLAY_STOPS_NOT_SPOTLIGHT
7816}));
7817var SpotLightWrapper = styled.div(_templateObject3$9());
7818
7819var Gradient =
7820/*#__PURE__*/
7821function (_PureComponent) {
7822 _inherits(Gradient, _PureComponent);
7823
7824 function Gradient() {
7825 _classCallCheck(this, Gradient);
7826
7827 return _possibleConstructorReturn(this, _getPrototypeOf(Gradient).apply(this, arguments));
7828 }
7829
7830 _createClass(Gradient, [{
7831 key: "render",
7832 value: function render() {
7833 var _this$props = this.props,
7834 backgroundImage = _this$props.backgroundImage,
7835 children = _this$props.children,
7836 className = _this$props.className,
7837 stops = _this$props.stops,
7838 deg = _this$props.deg,
7839 imageRef = _this$props.imageRef,
7840 backgroundRef = _this$props.backgroundRef,
7841 props = _objectWithoutProperties(_this$props, ["backgroundImage", "children", "className", "stops", "deg", "imageRef", "backgroundRef"]);
7842
7843 var hasSpotLight = className.includes("gradient--spotlight");
7844 var gradientStops = hasSpotLight ? SPOTLIGHT_STOPS : stops;
7845 var gradientDeg = hasSpotLight ? SPOTLIGHT_DEG : deg;
7846 return React__default.createElement(GradientStyles, _extends({}, props, {
7847 backgroundImage: backgroundImage,
7848 stops: gradientStops,
7849 deg: gradientDeg,
7850 className: className,
7851 ref: backgroundRef
7852 }), backgroundImage && imageRef && React__default.createElement(StyledImageSeo, {
7853 src: backgroundImage,
7854 ref: imageRef
7855 }), hasSpotLight && React__default.createElement(SpotLightWrapper, null, React__default.createElement(SpotLight$1, null), React__default.createElement(Angle$1, null)), children);
7856 }
7857 }]);
7858
7859 return Gradient;
7860}(PureComponent);
7861
7862Gradient.propTypes = {
7863 children: PropTypes__default.node,
7864 className: PropTypes__default.string,
7865 deg: PropTypes__default.shape({
7866 small: PropTypes__default.string.isRequired,
7867 medium: PropTypes__default.string.isRequired,
7868 large: PropTypes__default.string.isRequired
7869 }),
7870 stops: PropTypes__default.arrayOf(PropTypes__default.string),
7871 imageRef: PropTypes__default.shape({
7872 current: PropTypes__default.object
7873 }),
7874 backgroundRef: PropTypes__default.shape({
7875 current: PropTypes__default.object
7876 }),
7877 backgroundImage: PropTypes__default.string
7878};
7879Gradient.defaultProps = {
7880 children: null,
7881 className: "",
7882 deg: DEFAULT_DEG,
7883 stops: DEFAULT_STOPS,
7884 imageRef: {
7885 current: null
7886 },
7887 backgroundRef: {
7888 current: null
7889 },
7890 backgroundImage: ""
7891};
7892
7893function _templateObject2$o() {
7894 var data = _taggedTemplateLiteral(["\n margin-left: ", "px;\n margin-right: ", "px;\n "]);
7895
7896 _templateObject2$o = function _templateObject2() {
7897 return data;
7898 };
7899
7900 return data;
7901}
7902
7903function _templateObject$z() {
7904 var data = _taggedTemplateLiteral(["\n display: flex;\n flex: 0 1 auto;\n flex-direction: row;\n flex-wrap: wrap;\n box-sizing: border-box;\n margin-left: ", "px;\n margin-right: ", "px;\n ", ";\n\n .row--gutterless {\n flex: 0 1 100%;\n margin-left: 0;\n margin-right: 0;\n }\n"]);
7905
7906 _templateObject$z = function _templateObject() {
7907 return data;
7908 };
7909
7910 return data;
7911}
7912var Row = styled.div(_templateObject$z(), spacing.gutters.small / 2 * -1, spacing.gutters.small / 2 * -1, mediumAndUp(_templateObject2$o(), spacing.gutters.mediumAndUp / 2 * -1, spacing.gutters.mediumAndUp / 2 * -1));
7913Row.displayName = "Row";
7914
7915function _templateObject5$2() {
7916 var data = _taggedTemplateLiteral(["\n padding-top: 60px;\n z-index: 2;\n"]);
7917
7918 _templateObject5$2 = function _templateObject5() {
7919 return data;
7920 };
7921
7922 return data;
7923}
7924
7925function _templateObject4$8() {
7926 var data = _taggedTemplateLiteral(["\n min-height: 218px;\n "]);
7927
7928 _templateObject4$8 = function _templateObject4() {
7929 return data;
7930 };
7931
7932 return data;
7933}
7934
7935function _templateObject3$a() {
7936 var data = _taggedTemplateLiteral(["\n min-height: 140px;\n "]);
7937
7938 _templateObject3$a = function _templateObject3() {
7939 return data;
7940 };
7941
7942 return data;
7943}
7944
7945function _templateObject2$p() {
7946 var data = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n align-items: flex-end;\n min-height: 122px;\n z-index: 1;\n ", " ", ";\n"]);
7947
7948 _templateObject2$p = function _templateObject2() {
7949 return data;
7950 };
7951
7952 return data;
7953}
7954
7955function _templateObject$A() {
7956 var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n position: relative;\n"]);
7957
7958 _templateObject$A = function _templateObject() {
7959 return data;
7960 };
7961
7962 return data;
7963}
7964var HeaderStyles = styled.header(_templateObject$A());
7965var HeaderGradient = styled(Gradient)(_templateObject2$p(), smallAndUp(_templateObject3$a()), mediumAndUp(_templateObject4$8()));
7966var HeaderContainer = styled(Container$2)(_templateObject5$2());
7967
7968var Header = function Header(_ref) {
7969 var deg = _ref.deg,
7970 stops = _ref.stops,
7971 children = _ref.children,
7972 className = _ref.className,
7973 style = _ref.style,
7974 withOverlay = _ref.withOverlay,
7975 withSpotLight = _ref.withSpotLight;
7976 return React__default.createElement(HeaderStyles, {
7977 role: "heading",
7978 "aria-level": "1"
7979 }, React__default.createElement(HeaderGradient, {
7980 tagName: "header",
7981 deg: deg,
7982 stops: stops,
7983 style: style,
7984 className: classNames({
7985 "gradient--overlay": withOverlay,
7986 "gradient--spotlight": withSpotLight
7987 }, className)
7988 }, React__default.createElement(HeaderContainer, null, React__default.createElement(Row, null, children))));
7989};
7990
7991Header.propTypes = _objectSpread({}, Gradient.propTypes, {
7992 className: PropTypes__default.string,
7993 style: PropTypes__default.objectOf(PropTypes__default.string),
7994 withOverlay: PropTypes__default.bool,
7995 withSpotLight: PropTypes__default.bool
7996});
7997Header.defaultProps = {
7998 className: null,
7999 style: {},
8000 withOverlay: false,
8001 withSpotLight: false
8002};
8003
8004function _templateObject7$1() {
8005 var data = _taggedTemplateLiteral(["\n padding-top: 60px;\n "]);
8006
8007 _templateObject7$1 = function _templateObject7() {
8008 return data;
8009 };
8010
8011 return data;
8012}
8013
8014function _templateObject6$1() {
8015 var data = _taggedTemplateLiteral(["\n ", ";\n"]);
8016
8017 _templateObject6$1 = function _templateObject6() {
8018 return data;
8019 };
8020
8021 return data;
8022}
8023
8024function _templateObject5$3() {
8025 var data = _taggedTemplateLiteral(["\n align-items: center;\n position: relative;\n z-index: 2;\n"]);
8026
8027 _templateObject5$3 = function _templateObject5() {
8028 return data;
8029 };
8030
8031 return data;
8032}
8033
8034function _templateObject4$9() {
8035 var data = _taggedTemplateLiteral(["\n padding-top: 60px;\n z-index: 2;\n"]);
8036
8037 _templateObject4$9 = function _templateObject4() {
8038 return data;
8039 };
8040
8041 return data;
8042}
8043
8044function _templateObject3$b() {
8045 var data = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n"]);
8046
8047 _templateObject3$b = function _templateObject3() {
8048 return data;
8049 };
8050
8051 return data;
8052}
8053
8054function _templateObject2$q() {
8055 var data = _taggedTemplateLiteral(["\n background-size: cover;\n background-repeat: no-repeat;\n"]);
8056
8057 _templateObject2$q = function _templateObject2() {
8058 return data;
8059 };
8060
8061 return data;
8062}
8063
8064function _templateObject$B() {
8065 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n min-height: 218px;\n max-height: 218px;\n"]);
8066
8067 _templateObject$B = function _templateObject() {
8068 return data;
8069 };
8070
8071 return data;
8072}
8073var GradientBackground = styled(Gradient)(_templateObject$B());
8074var ImageBackground = styled(GradientBackground)(_templateObject2$q());
8075var Wrapper$1 = styled.header(_templateObject3$b());
8076var ContainerWrapper = styled(Container$2)(_templateObject4$9());
8077var ContainerRow = styled(Row)(_templateObject5$3());
8078var ImageWrapper = styled.div(_templateObject6$1(), mediumAndUp(_templateObject7$1()));
8079
8080var ImageHeader = function ImageHeader(_ref) {
8081 var children = _ref.children,
8082 stops = _ref.stops,
8083 deg = _ref.deg,
8084 backgroundImage = _ref.backgroundImage,
8085 backgroundImageProps = _ref.backgroundImageProps,
8086 withOverlay = _ref.withOverlay,
8087 withOverlayShadow = _ref.withOverlayShadow,
8088 withUnderlay = _ref.withUnderlay,
8089 withSpotLight = _ref.withSpotLight,
8090 props = _objectWithoutProperties(_ref, ["children", "stops", "deg", "backgroundImage", "backgroundImageProps", "withOverlay", "withOverlayShadow", "withUnderlay", "withSpotLight"]);
8091
8092 var _backgroundImageProps = backgroundImageProps.style,
8093 backgroundImageStyle = _backgroundImageProps === void 0 ? {} : _backgroundImageProps,
8094 imageRef = backgroundImageProps.imageRef,
8095 backgroundRef = backgroundImageProps.backgroundRef,
8096 otherBackgroundImageProps = _objectWithoutProperties(backgroundImageProps, ["style", "imageRef", "backgroundRef"]);
8097
8098 return React__default.createElement(Wrapper$1, _extends({}, props, {
8099 role: "heading",
8100 "aria-level": "1"
8101 }), backgroundImage ? React__default.createElement(ImageBackground, _extends({
8102 style: _objectSpread({}, backgroundImageStyle, {
8103 backgroundImage: withOverlayShadow ? "" : "url(".concat(backgroundImage, ")")
8104 }),
8105 backgroundImage: backgroundImage,
8106 imageRef: imageRef,
8107 backgroundRef: backgroundRef
8108 }, otherBackgroundImageProps, {
8109 className: classNames({
8110 "gradient--overlay": !withSpotLight && withOverlay,
8111 "gradient--overlay-shadow": withOverlayShadow,
8112 "gradient--spotlight": withSpotLight,
8113 "gradient--underlay": withUnderlay
8114 }),
8115 "aria-hidden": true
8116 })) : React__default.createElement(GradientBackground, {
8117 stops: stops,
8118 deg: deg,
8119 className: classNames({
8120 "gradient--overlay": !withSpotLight && withOverlay,
8121 "gradient--spotlight": withSpotLight,
8122 "gradient--underlay": !withSpotLight && withUnderlay
8123 }),
8124 style: backgroundImageStyle
8125 }), React__default.createElement(ContainerWrapper, null, React__default.createElement(ContainerRow, null, children)));
8126};
8127
8128ImageHeader.propTypes = _objectSpread({}, Gradient.propTypes, {
8129 backgroundImage: PropTypes__default.string,
8130 backgroundImageProps: PropTypes__default.objectOf(PropTypes__default.any),
8131 withOverlay: PropTypes__default.bool,
8132 withOverlayShadow: PropTypes__default.bool,
8133 withUnderlay: PropTypes__default.bool,
8134 withSpotLight: PropTypes__default.bool
8135});
8136ImageHeader.defaultProps = {
8137 backgroundImage: null,
8138 backgroundImageProps: {},
8139 withOverlay: false,
8140 withOverlayShadow: false,
8141 withUnderlay: false,
8142 withSpotLight: false
8143};
8144ImageHeader.ImageWrapper = ImageWrapper;
8145
8146function _templateObject3$c() {
8147 var data = _taggedTemplateLiteral(["\n ", ";\n margin-top: 0;\n margin-bottom: 0;\n padding-bottom: ", ";\n line-height: ", ";\n color: ", ";\n font-weight: ", ";\n ", ";\n"]);
8148
8149 _templateObject3$c = function _templateObject3() {
8150 return data;
8151 };
8152
8153 return data;
8154}
8155
8156function _templateObject2$r() {
8157 var data = _taggedTemplateLiteral(["\n font-weight: ", ";\n"]);
8158
8159 _templateObject2$r = function _templateObject2() {
8160 return data;
8161 };
8162
8163 return data;
8164}
8165
8166function _templateObject$C() {
8167 var data = _taggedTemplateLiteral(["\n font-weight: ", ";\n"]);
8168
8169 _templateObject$C = function _templateObject() {
8170 return data;
8171 };
8172
8173 return data;
8174}
8175var Span = styled.span(_templateObject$C(), typography.weight.light); // NONE: extraBold TOKEN IS DEPRECATED, USE semiBold INSTEAD
8176
8177var Strong = styled(Span)(_templateObject2$r(), typography.weight.semiBold);
8178var Margins = styled.span(_templateObject3$c(), function (_ref) {
8179 var monospace = _ref.monospace;
8180 return monospace ? "font-feature-settings: \"tnum\"" : "";
8181}, spacing.cozy, function (_ref2) {
8182 var lineHeight = _ref2.lineHeight;
8183 return typography.lineHeight[lineHeight];
8184}, function (p) {
8185 return p.color ? p.color : themes.global.white.base;
8186}, function (_ref3) {
8187 var weight = _ref3.weight;
8188 return typography.weight[weight];
8189}, function (_ref4) {
8190 var size = _ref4.size;
8191 return responsiveSizeMixin(size);
8192});
8193var levels = ["h1", "h2", "h3", "h4", "h5"];
8194
8195var Heading = function Heading(_ref5) {
8196 var level = _ref5.level,
8197 size = _ref5.size,
8198 responsiveSize = _ref5.responsiveSize,
8199 children = _ref5.children,
8200 props = _objectWithoutProperties(_ref5, ["level", "size", "responsiveSize", "children"]);
8201
8202 var tag = levels[level - 1];
8203 return React__default.createElement(Margins, _extends({}, props, {
8204 as: tag,
8205 size: getResponsiveSize({
8206 size: size,
8207 responsiveSize: {
8208 small: responsiveSize.small || size || "tera",
8209 medium: responsiveSize.medium || responsiveSize.small || size || "zetta",
8210 large: responsiveSize.large || responsiveSize.medium || responsiveSize.small || size || "bronto"
8211 }
8212 })
8213 }), children);
8214};
8215
8216Heading.propTypes = {
8217 level: PropTypes__default.oneOf([1, 2, 3, 4, 5]),
8218 size: PropTypes__default.oneOf(Object.keys(typography.size)),
8219 responsiveSize: PropTypes__default.shape({
8220 small: PropTypes__default.oneOf(Object.keys(typography.size)),
8221 medium: PropTypes__default.oneOf(Object.keys(typography.size)),
8222 large: PropTypes__default.oneOf(Object.keys(typography.size))
8223 }),
8224 weight: PropTypes__default.oneOf(Object.keys(typography.weight)),
8225 lineHeight: PropTypes__default.oneOf(Object.keys(typography.lineHeight)),
8226 monospace: PropTypes__default.bool,
8227 children: PropTypes__default.node
8228};
8229Heading.defaultProps = {
8230 level: 2,
8231 size: null,
8232 responsiveSize: {},
8233 lineHeight: "header",
8234 weight: "regular",
8235 monospace: false,
8236 children: null
8237};
8238Heading.Span = Span; // NOTE: deprecated
8239
8240Heading.Strong = Strong; // NOTE: deprecated
8241
8242Heading.displayName = "Heading";
8243
8244function _templateObject9() {
8245 var data = _taggedTemplateLiteral(["\n flex-direction: row;\n align-items: center;\n"]);
8246
8247 _templateObject9 = function _templateObject9() {
8248 return data;
8249 };
8250
8251 return data;
8252}
8253
8254function _templateObject8$1() {
8255 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n position: relative;\n"]);
8256
8257 _templateObject8$1 = function _templateObject8() {
8258 return data;
8259 };
8260
8261 return data;
8262}
8263
8264function _templateObject7$2() {
8265 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: ", ";\n > .image-card__subtitle--half > span {\n color: ", ";\n letter-spacing: \"normal\";\n }\n"]);
8266
8267 _templateObject7$2 = function _templateObject7() {
8268 return data;
8269 };
8270
8271 return data;
8272}
8273
8274function _templateObject6$2() {
8275 var data = _taggedTemplateLiteral(["\n display: block;\n width: 100%;\n font-size: ", ";\n font-weight: ", ";\n > .image-card__title--half > span {\n font-size: ", ";\n color: ", ";\n }\n"]);
8276
8277 _templateObject6$2 = function _templateObject6() {
8278 return data;
8279 };
8280
8281 return data;
8282}
8283
8284function _templateObject5$4() {
8285 var data = _taggedTemplateLiteral(["\n width: 50%;\n"]);
8286
8287 _templateObject5$4 = function _templateObject5() {
8288 return data;
8289 };
8290
8291 return data;
8292}
8293
8294function _templateObject4$a() {
8295 var data = _taggedTemplateLiteral(["\n position: relative;\n color: ", ";\n background-color: ", ";\n border-radius: ", ";\n padding: ", " ", ";\n margin-left: ", ";\n margin-bottom: ", ";\n font-style: ", ";\n font-stretch: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n"]);
8296
8297 _templateObject4$a = function _templateObject4() {
8298 return data;
8299 };
8300
8301 return data;
8302}
8303
8304function _templateObject3$d() {
8305 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: flex-end;\n"]);
8306
8307 _templateObject3$d = function _templateObject3() {
8308 return data;
8309 };
8310
8311 return data;
8312}
8313
8314function _templateObject2$s() {
8315 var data = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 100%;\n flex: none;\n"]);
8316
8317 _templateObject2$s = function _templateObject2() {
8318 return data;
8319 };
8320
8321 return data;
8322}
8323
8324function _templateObject$D() {
8325 var data = _taggedTemplateLiteral(["\n padding: 0;\n"]);
8326
8327 _templateObject$D = function _templateObject() {
8328 return data;
8329 };
8330
8331 return data;
8332}
8333var CardWithoutPadding = styled(Card)(_templateObject$D());
8334var Image = styled.img(_templateObject2$s()); // come back
8335
8336var Overlay = styled.div.attrs(function () {
8337 return {
8338 className: "image-card__overlay"
8339 };
8340})(_templateObject3$d());
8341var CaptionContainer = styled.div.attrs(function () {
8342 return {
8343 className: "image-card__caption"
8344 };
8345})(_templateObject4$a(), themes.global.white.base, function (props) {
8346 return props.half ? "none" : "rgba(31, 38, 45, 0.8)";
8347}, constants.borderRadius.large, spacing.slim, spacing.cozy, spacing.cozy, spacing.cozy, function (props) {
8348 return props.half ? "normal" : "inherit";
8349}, function (props) {
8350 return props.half ? "normal" : "inherit";
8351}, function (props) {
8352 return props.half ? "normal" : "inherit";
8353}, function (props) {
8354 return props.half ? "normal" : "inherit";
8355});
8356var HalfCard = styled(CardWithoutPadding)(_templateObject5$4());
8357var Title = styled.span(_templateObject6$2(), typography.size.kilo, typography.weight.semiBold, typography.size.hecto, themes.tm.primary.base);
8358var SubTitle = styled.span(_templateObject7$2(), typography.size.hecto, typography.weight.regular, themes.global.darkFill);
8359var Container$3 = styled.div(_templateObject8$1());
8360var RowContainer = styled(Container$3)(_templateObject9());
8361
8362var ImageCard = function ImageCard(_ref) {
8363 var src = _ref.src,
8364 alt = _ref.alt,
8365 title = _ref.title,
8366 type = _ref.type,
8367 cardTitle = _ref.cardTitle,
8368 cardSubtitle = _ref.cardSubtitle,
8369 overlayProps = _ref.overlayProps,
8370 containerProps = _ref.containerProps,
8371 captionContainerProps = _ref.captionContainerProps,
8372 children = _ref.children,
8373 cardProps = _ref.cardProps,
8374 props = _objectWithoutProperties(_ref, ["src", "alt", "title", "type", "cardTitle", "cardSubtitle", "overlayProps", "containerProps", "captionContainerProps", "children", "cardProps"]);
8375
8376 var titleToShow = cardTitle;
8377 var subtitleToShow = cardSubtitle;
8378 var childrenToShow = children;
8379
8380 if (!cardTitle && !cardSubtitle) {
8381 var _Children$toArray = Children.toArray(children || []);
8382
8383 var _Children$toArray2 = _toArray(_Children$toArray);
8384
8385 titleToShow = _Children$toArray2[0];
8386 subtitleToShow = _Children$toArray2[1];
8387 childrenToShow = _Children$toArray2.slice(2);
8388 }
8389
8390 var img = props.image || React__default.createElement(Image, {
8391 src: src,
8392 alt: alt,
8393 title: title
8394 });
8395
8396 if (type === "half") {
8397 return React__default.createElement(RowContainer, props, React__default.createElement(HalfCard, null, img), React__default.createElement(CaptionContainer, _extends({}, captionContainerProps, {
8398 half: true
8399 }), React__default.createElement(Title, null, React__default.createElement(TextBase, {
8400 className: "image-card__title--half"
8401 }, titleToShow)), React__default.createElement(SubTitle, {
8402 half: true
8403 }, React__default.createElement(TextBase, {
8404 className: "image-card__subtitle--half"
8405 }, subtitleToShow))));
8406 }
8407
8408 var combinedCardProps = _objectSpread({}, props, cardProps);
8409
8410 return React__default.createElement(CardWithoutPadding, combinedCardProps, React__default.createElement(Container$3, containerProps, img, React__default.createElement(Overlay, overlayProps, (titleToShow || subtitleToShow) && React__default.createElement(CaptionContainer, captionContainerProps, titleToShow, subtitleToShow))), childrenToShow);
8411};
8412
8413ImageCard.propTypes = {
8414 type: PropTypes__default.oneOf(["full", "half"]),
8415 src: PropTypes__default.string,
8416 alt: PropTypes__default.string,
8417 title: PropTypes__default.string,
8418 image: PropTypes__default.element,
8419 cardTitle: PropTypes__default.element,
8420 cardSubtitle: PropTypes__default.element,
8421 overlayProps: PropTypes__default.shape({}),
8422 containerProps: PropTypes__default.shape({}),
8423 captionContainerProps: PropTypes__default.shape({}),
8424 children: PropTypes__default.node
8425};
8426ImageCard.defaultProps = {
8427 type: "full",
8428 alt: "",
8429 title: "",
8430 src: "",
8431 image: null,
8432 cardTitle: null,
8433 cardSubtitle: null,
8434 overlayProps: {},
8435 containerProps: {},
8436 captionContainerProps: {},
8437 children: null
8438};
8439ImageCard.Title = Title;
8440ImageCard.SubTitle = SubTitle;
8441
8442var _variantsIcons;
8443var variants = ["error", "success", "alert", "info", "custom"];
8444var variantsIcons = (_variantsIcons = {}, _defineProperty(_variantsIcons, variants[0], ErrorIcon), _defineProperty(_variantsIcons, variants[1], SuccessIcon), _defineProperty(_variantsIcons, variants[2], AlertIcon), _defineProperty(_variantsIcons, variants[3], InfoIcon), _defineProperty(_variantsIcons, variants[4], InfoIcon), _variantsIcons);
8445
8446function _templateObject9$1() {
8447 var data = _taggedTemplateLiteral(["\n padding-right: 12px;\n "]);
8448
8449 _templateObject9$1 = function _templateObject9() {
8450 return data;
8451 };
8452
8453 return data;
8454}
8455
8456function _templateObject8$2() {
8457 var data = _taggedTemplateLiteral(["\n padding-right: ", ";\n height: ", ";\n\n ", ";\n"]);
8458
8459 _templateObject8$2 = function _templateObject8() {
8460 return data;
8461 };
8462
8463 return data;
8464}
8465
8466function _templateObject7$3() {
8467 var data = _taggedTemplateLiteral(["\n color: ", ";\n"]);
8468
8469 _templateObject7$3 = function _templateObject7() {
8470 return data;
8471 };
8472
8473 return data;
8474}
8475
8476function _templateObject6$3() {
8477 var data = _taggedTemplateLiteral(["\n ", "& {\n background-color: transparent;\n border: none;\n padding: 0;\n position: absolute;\n top: ", ";\n right: 3px;\n width: 42px;\n min-width: 42px;\n height: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:active,\n &:hover {\n background-color: transparent;\n }\n }\n"]);
8478
8479 _templateObject6$3 = function _templateObject6() {
8480 return data;
8481 };
8482
8483 return data;
8484}
8485
8486function _templateObject5$5() {
8487 var data = _taggedTemplateLiteral(["\n padding-top: 12px;\n opacity: 1;\n transition: opacity 0.3s ", " 0.1s;\n line-height: 1.29;\n color: ", ";\n\n .collapsed & {\n transition: opacity 0.3s ", ";\n opacity: 0;\n }\n"]);
8488
8489 _templateObject5$5 = function _templateObject5() {
8490 return data;
8491 };
8492
8493 return data;
8494}
8495
8496function _templateObject4$b() {
8497 var data = _taggedTemplateLiteral(["\n color: ", ";\n"]);
8498
8499 _templateObject4$b = function _templateObject4() {
8500 return data;
8501 };
8502
8503 return data;
8504}
8505
8506function _templateObject3$e() {
8507 var data = _taggedTemplateLiteral(["\n font-family: Averta, Courier, monospace;\n padding-right: ", ";\n"]);
8508
8509 _templateObject3$e = function _templateObject3() {
8510 return data;
8511 };
8512
8513 return data;
8514}
8515
8516function _templateObject2$t() {
8517 var data = _taggedTemplateLiteral(["\n padding: ", ";\n position: relative;\n border: 1px solid ", ";\n border-radius: ", ";\n display: flex;\n overflow: hidden;\n transition: max-height 0.3s ", ",\n opacity 0.3s ", ";\n background-color: ", ";\n opacity: 0;\n\n &.visible-banner {\n transition: max-height 0.3s ", ",\n opacity 0.3s ", ";\n opacity: 1;\n }\n\n &.banner-variant-error {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.banner-variant-success {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.banner-variant-alert {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.banner-variant-info {\n background-color: ", ";\n border-color: ", ";\n }\n\n &.banner-variant-custom {\n background-color: ", ";\n border-color: ", ";\n }\n"]);
8518
8519 _templateObject2$t = function _templateObject2() {
8520 return data;
8521 };
8522
8523 return data;
8524}
8525
8526function _templateObject$E() {
8527 var data = _taggedTemplateLiteral(["\n padding-left: 4px;\n"]);
8528
8529 _templateObject$E = function _templateObject() {
8530 return data;
8531 };
8532
8533 return data;
8534}
8535var BASE_BANNER_HEIGHT = 0;
8536var MAX_BANNER_HEIGHT = 1000;
8537var Link$1 = styled(LinkCta)(_templateObject$E());
8538var Container$4 = styled.div(_templateObject2$t(), spacing.moderate, getThemeValue("onyx", "muted"), constants.borderRadius.large, constants.easing.easeInOutQuad, constants.easing.easeInQuad, getThemeValue("white", "muted"), constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, getThemeValue("error", "lightest"), getThemeValue("error", "base"), getThemeValue("success", "lightest"), getThemeValue("success", "base"), getThemeValue("caution", "lightest"), getThemeValue("caution", "base"), getThemeValue("primary", "lightest"), getThemeValue("primary", "base"), function (props) {
8539 return props.customColors.backgroundColor;
8540}, function (props) {
8541 return props.customColors.primaryColor;
8542});
8543var ContentSection = styled.div(_templateObject3$e(), spacing.comfy);
8544var HeaderText = styled(TextBase)(_templateObject4$b(), function (props) {
8545 return props.customColors.textColor;
8546});
8547var Content = styled(TextBase)(_templateObject5$5(), constants.easing.easeInOutQuad, function (props) {
8548 return props.customColors.textColor;
8549}, constants.easing.easeInOutQuad);
8550/* stylelint-disable */
8551// Stylelint prints the following error: Unexpected duplicate selector ".selector35" on this line ${StyledButton}&, but it is required to do it
8552// this way because once the button is rendered, the styles are flatten and all set to the button element. So the StyledButton styles and the
8553// CloseButton overrides must be set at the same level.
8554
8555var CloseButton$1 = styled(Button)(_templateObject6$3(), StyledButton, spacing.cozy);
8556/* stylelint-enable */
8557
8558var CloseIcon$1 = styled(CloseIcon).attrs({
8559 color: "currentColor"
8560})(_templateObject7$3(), getThemeValue("onyx", "muted"));
8561var IconSection = styled.div(_templateObject8$2(), spacing.moderate, spacing.normal, small(_templateObject9$1()));
8562
8563var Banner =
8564/*#__PURE__*/
8565function (_Component) {
8566 _inherits(Banner, _Component);
8567
8568 function Banner() {
8569 var _getPrototypeOf2;
8570
8571 var _this;
8572
8573 _classCallCheck(this, Banner);
8574
8575 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8576 args[_key] = arguments[_key];
8577 }
8578
8579 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Banner)).call.apply(_getPrototypeOf2, [this].concat(args)));
8580
8581 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
8582 isExpanded: _this.props.isExpanded,
8583 maxHeight: _this.props.isExpanded ? "".concat(MAX_BANNER_HEIGHT, "px") // max height if banner is expanded during first render
8584 : "".concat(BASE_BANNER_HEIGHT, "px")
8585 });
8586
8587 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "content", React__default.createRef());
8588
8589 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isCustomVariant", function () {
8590 return _this.props.variant === variants[4];
8591 });
8592
8593 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleContent", function () {
8594 var onButtonClick = _this.props.onButtonClick;
8595 var collapsedMaxHeight = "".concat(BASE_BANNER_HEIGHT, "px");
8596 var expandedMaxHeight = "".concat(MAX_BANNER_HEIGHT, "px");
8597
8598 _this.setState(function (_ref) {
8599 var isExpanded = _ref.isExpanded;
8600 return {
8601 isExpanded: !isExpanded,
8602 maxHeight: isExpanded ? collapsedMaxHeight : expandedMaxHeight
8603 };
8604 });
8605
8606 if (onButtonClick) {
8607 onButtonClick();
8608 }
8609 });
8610
8611 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderControl", function () {
8612 var _this$props = _this.props,
8613 href = _this$props.href,
8614 linkText = _this$props.linkText,
8615 expandedText = _this$props.expandedText,
8616 collapsedText = _this$props.collapsedText,
8617 linkProps = _this$props.linkProps,
8618 buttonProps = _this$props.buttonProps;
8619 var isExpanded = _this.state.isExpanded;
8620
8621 if (!linkText && !expandedText && !collapsedText) {
8622 return null;
8623 }
8624
8625 var props = href ? _objectSpread({}, linkProps, {
8626 href: href
8627 }) : _objectSpread({}, buttonProps, {
8628 onClick: _this.toggleContent
8629 });
8630 var text = linkText || (isExpanded ? expandedText : collapsedText);
8631 return React__default.createElement(Link$1, _extends({
8632 size: "hecto"
8633 }, props), text);
8634 });
8635
8636 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderCloseButton", function () {
8637 var _this$props2 = _this.props,
8638 onRequestClose = _this$props2.onRequestClose,
8639 closeButtonTitleText = _this$props2.closeButtonTitleText,
8640 closeButtonHidden = _this$props2.closeButtonHidden;
8641
8642 if (!onRequestClose || closeButtonHidden) {
8643 return null;
8644 }
8645
8646 return React__default.createElement(CloseButton$1, {
8647 onClick: onRequestClose
8648 }, React__default.createElement(CloseIcon$1, {
8649 size: "small"
8650 }, React__default.createElement("title", null, closeButtonTitleText)));
8651 });
8652
8653 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderIcon", function () {
8654 var _this$props3 = _this.props,
8655 variant = _this$props3.variant,
8656 icon = _this$props3.icon,
8657 color = _this$props3.customColors.primaryColor;
8658
8659 if (!variant && !icon) {
8660 return null;
8661 }
8662
8663 var Icon = variantsIcons[variant];
8664 var customColor = null;
8665 if (_this.isCustomVariant()) customColor = {
8666 color: color
8667 };
8668 return icon || React__default.createElement(Icon, _extends({
8669 type: "filled",
8670 size: "regular"
8671 }, customColor));
8672 });
8673
8674 return _this;
8675 }
8676
8677 _createClass(Banner, [{
8678 key: "componentDidMount",
8679 value: function componentDidMount() {
8680 // update max height to the correct value so animation works correctly
8681 if (this.props.content && this.state.isExpanded) {
8682 var maxHeight = this.content.current.offsetHeight + BASE_BANNER_HEIGHT; // eslint-disable-next-line react/no-did-mount-set-state
8683
8684 this.setState({
8685 maxHeight: "".concat(maxHeight, "px")
8686 });
8687 }
8688 }
8689 }, {
8690 key: "render",
8691 value: function render() {
8692 var _this2 = this;
8693
8694 var _this$props4 = this.props,
8695 isOpen = _this$props4.isOpen,
8696 heading = _this$props4.heading,
8697 content = _this$props4.content,
8698 variant = _this$props4.variant,
8699 style = _this$props4.style,
8700 customColors = _this$props4.customColors,
8701 containerProps = _this$props4.containerProps,
8702 contentProps = _this$props4.contentProps;
8703 var _this$state = this.state,
8704 isExpanded = _this$state.isExpanded,
8705 maxHeight = _this$state.maxHeight;
8706 return React__default.createElement(Transition, {
8707 in: isOpen,
8708 timeout: isOpen ? 0 : 300 // allows to animate fade in after render correctly
8709 ,
8710 mountOnEnter: true,
8711 unmountOnExit: true
8712 }, function (state) {
8713 var _classnames;
8714
8715 return React__default.createElement(Container$4, _extends({
8716 className: classNames((_classnames = {
8717 collapsed: !isExpanded
8718 }, _defineProperty(_classnames, "banner-variant-".concat(variant), variant), _defineProperty(_classnames, "visible-banner", state === "entered"), _classnames)),
8719 customColors: _this2.isCustomVariant() && customColors
8720 }, containerProps), React__default.createElement(IconSection, null, _this2.renderIcon()), React__default.createElement(ContentSection, contentProps, React__default.createElement(HeaderText, {
8721 tag: "span",
8722 weight: "semiBold",
8723 customColors: _this2.isCustomVariant() && customColors
8724 }, heading), _this2.renderControl(), React__default.createElement("div", {
8725 ref: _this2.content,
8726 style: _objectSpread({}, style, {
8727 maxHeight: maxHeight
8728 })
8729 }, React__default.createElement(Content, {
8730 customColors: _this2.isCustomVariant() && customColors
8731 }, content))), _this2.renderCloseButton());
8732 });
8733 }
8734 }]);
8735
8736 return Banner;
8737}(Component);
8738
8739_defineProperty(Banner, "propTypes", {
8740 isExpanded: PropTypes__default.bool,
8741 isOpen: PropTypes__default.bool.isRequired,
8742 heading: PropTypes__default.string.isRequired,
8743 content: PropTypes__default.string,
8744 href: PropTypes__default.string,
8745 linkText: PropTypes__default.string,
8746 expandedText: PropTypes__default.string,
8747 collapsedText: PropTypes__default.string,
8748 onButtonClick: PropTypes__default.func,
8749 onRequestClose: PropTypes__default.func,
8750 linkProps: PropTypes__default.shape(),
8751 buttonProps: PropTypes__default.shape(),
8752 containerProps: PropTypes__default.shape(),
8753 contentProps: PropTypes__default.shape(),
8754 style: PropTypes__default.shape(),
8755 variant: PropTypes__default.oneOf(variants),
8756 icon: PropTypes__default.node,
8757 closeButtonTitleText: PropTypes__default.string,
8758 closeButtonHidden: PropTypes__default.bool,
8759 customColors: PropTypes__default.shape({
8760 primaryColor: PropTypes__default.string,
8761 backgroundColor: PropTypes__default.string,
8762 textColor: PropTypes__default.string
8763 })
8764});
8765
8766_defineProperty(Banner, "defaultProps", {
8767 isExpanded: false,
8768 content: "",
8769 href: "",
8770 linkText: "",
8771 expandedText: "",
8772 collapsedText: "",
8773 onButtonClick: null,
8774 onRequestClose: null,
8775 linkProps: {},
8776 buttonProps: {},
8777 containerProps: {},
8778 contentProps: {},
8779 style: {
8780 transition: "max-height 0.3s ".concat(constants.easing.easeInOutQuad, " 0s")
8781 },
8782 variant: null,
8783 icon: null,
8784 closeButtonTitleText: "Close banner",
8785 closeButtonHidden: false,
8786 customColors: {}
8787});
8788
8789var _variantsIcons$1;
8790var variants$1 = ["error", "success", "alert"];
8791var variantsIcons$1 = (_variantsIcons$1 = {}, _defineProperty(_variantsIcons$1, variants$1[0], ErrorIcon), _defineProperty(_variantsIcons$1, variants$1[1], SuccessIcon), _defineProperty(_variantsIcons$1, variants$1[2], AlertIcon), _variantsIcons$1);
8792
8793function _templateObject6$4() {
8794 var data = _taggedTemplateLiteral(["\n line-height: ", ";\n"]);
8795
8796 _templateObject6$4 = function _templateObject6() {
8797 return data;
8798 };
8799
8800 return data;
8801}
8802
8803function _templateObject5$6() {
8804 var data = _taggedTemplateLiteral(["\n padding-right: ", ";\n"]);
8805
8806 _templateObject5$6 = function _templateObject5() {
8807 return data;
8808 };
8809
8810 return data;
8811}
8812
8813function _templateObject4$c() {
8814 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n opacity: 1;\n transition: opacity 0.3s ", " 0.1s;\n line-height: ", ";\n\n .collapsed & {\n transition: opacity 0.1s ", ";\n opacity: 0;\n }\n"]);
8815
8816 _templateObject4$c = function _templateObject4() {
8817 return data;
8818 };
8819
8820 return data;
8821}
8822
8823function _templateObject3$f() {
8824 var data = _taggedTemplateLiteral(["\n font-family: Averta, Courier, monospace;\n"]);
8825
8826 _templateObject3$f = function _templateObject3() {
8827 return data;
8828 };
8829
8830 return data;
8831}
8832
8833function _templateObject2$u() {
8834 var data = _taggedTemplateLiteral(["\n position: relative;\n display: inline-flex;\n overflow: hidden;\n transition: max-height 0.3s ", ";\n box-sizing: border-box;\n"]);
8835
8836 _templateObject2$u = function _templateObject2() {
8837 return data;
8838 };
8839
8840 return data;
8841}
8842
8843function _templateObject$F() {
8844 var data = _taggedTemplateLiteral(["\n padding-left: ", ";\n color: ", ";\n"]);
8845
8846 _templateObject$F = function _templateObject() {
8847 return data;
8848 };
8849
8850 return data;
8851}
8852var MAX_FEEDBACK_HEIGHT = 1000;
8853var BASE_FEEDBACK_HEIGHT = 21;
8854var Link$2 = styled(LinkCta)(_templateObject$F(), spacing.slim, getThemeValue("primary", "base"));
8855var Container$5 = styled.div(_templateObject2$u(), constants.easing.easeInOutQuad);
8856var ContentSection$1 = styled.div(_templateObject3$f());
8857var Content$1 = styled(TextBase)(_templateObject4$c(), spacing.cozy, constants.easing.easeInOutQuad, typography.lineHeight.header, constants.easing.easeInOutQuad);
8858var IconSection$1 = styled.div(_templateObject5$6(), spacing.cozy);
8859var Heading$1 = styled(TextBase)(_templateObject6$4(), typography.lineHeight.header);
8860
8861function contentValidator(props, propName, componentName) {
8862 // if content prop is provided collapsedText and expandedText should be provided as well
8863 if (props[propName] && typeof props[propName] === "string" && (!props.collapsedText || !props.expandedText)) {
8864 return new Error("".concat(propName, " is supplied to ").concat(componentName, " but collapsedText or expandedText props or both are not supplied"));
8865 }
8866
8867 if (typeof props[propName] === "string" || typeof props[propName] === "undefined") {
8868 return null;
8869 }
8870
8871 return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(componentName, "`, expected `string`"));
8872}
8873
8874var FeedbackInline =
8875/*#__PURE__*/
8876function (_Component) {
8877 _inherits(FeedbackInline, _Component);
8878
8879 function FeedbackInline() {
8880 var _getPrototypeOf2;
8881
8882 var _this;
8883
8884 _classCallCheck(this, FeedbackInline);
8885
8886 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8887 args[_key] = arguments[_key];
8888 }
8889
8890 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FeedbackInline)).call.apply(_getPrototypeOf2, [this].concat(args)));
8891
8892 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
8893 isExpanded: _this.props.isExpanded,
8894 maxHeight: _this.props.isExpanded ? "".concat(MAX_FEEDBACK_HEIGHT, "px") // max height if banner is expanded during first render
8895 : "".concat(BASE_FEEDBACK_HEIGHT, "px")
8896 });
8897
8898 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "content", React__default.createRef());
8899
8900 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "heading", React__default.createRef());
8901
8902 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleContent", function (e) {
8903 var onButtonClick = _this.props.onButtonClick;
8904 var contentHeight = _this.content.current.offsetHeight;
8905 var headingHeight = _this.heading.current.offsetHeight;
8906 var collapsedMaxHeight = "".concat(headingHeight + BASE_FEEDBACK_HEIGHT, "px");
8907 var expandedMaxHeight = "".concat(contentHeight + headingHeight + BASE_FEEDBACK_HEIGHT, "px");
8908
8909 _this.setState(function (_ref) {
8910 var isExpanded = _ref.isExpanded;
8911 return {
8912 isExpanded: !isExpanded,
8913 maxHeight: isExpanded ? collapsedMaxHeight : expandedMaxHeight
8914 };
8915 });
8916
8917 if (onButtonClick) {
8918 onButtonClick(e);
8919 }
8920 });
8921
8922 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderControl", function () {
8923 var _this$props = _this.props,
8924 href = _this$props.href,
8925 linkText = _this$props.linkText,
8926 expandedText = _this$props.expandedText,
8927 collapsedText = _this$props.collapsedText,
8928 linkProps = _this$props.linkProps,
8929 buttonProps = _this$props.buttonProps;
8930 var isExpanded = _this.state.isExpanded;
8931
8932 if (!linkText && !expandedText && !collapsedText) {
8933 return null;
8934 }
8935
8936 var props = href ? _objectSpread({}, linkProps, {
8937 href: href
8938 }) : _objectSpread({}, buttonProps, {
8939 onClick: _this.toggleContent
8940 });
8941 var text = linkText || (isExpanded ? expandedText : collapsedText);
8942 return React__default.createElement(Link$2, _extends({
8943 size: "hecto"
8944 }, props), text);
8945 });
8946
8947 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderIcon", function () {
8948 var _this$props2 = _this.props,
8949 variant = _this$props2.variant,
8950 icon = _this$props2.icon,
8951 iconClassName = _this$props2.iconClassName;
8952
8953 if (!variant && !icon) {
8954 return null;
8955 }
8956
8957 var Icon = variantsIcons$1[variant];
8958 return icon || React__default.createElement(Icon, {
8959 type: "filled",
8960 size: "regular",
8961 className: iconClassName
8962 });
8963 });
8964
8965 return _this;
8966 }
8967
8968 _createClass(FeedbackInline, [{
8969 key: "componentDidMount",
8970 value: function componentDidMount() {
8971 // update max height to the correct value so animation works correctly
8972 if (this.props.content && this.state.isExpanded) {
8973 // with expanded content
8974 var maxHeight = this.content.current.offsetHeight + this.heading.current.offsetHeight + BASE_FEEDBACK_HEIGHT;
8975 /* eslint-disable react/no-did-mount-set-state */
8976
8977 this.setState({
8978 maxHeight: "".concat(maxHeight, "px")
8979 });
8980 } else {
8981 // without content or collapsed
8982 var _maxHeight = this.heading.current.offsetHeight + BASE_FEEDBACK_HEIGHT;
8983
8984 this.setState({
8985 maxHeight: "".concat(_maxHeight, "px")
8986 });
8987 /* eslint-enable react/no-did-mount-set-state */
8988 }
8989 }
8990 }, {
8991 key: "render",
8992 value: function render() {
8993 var _this$props3 = this.props,
8994 heading = _this$props3.heading,
8995 content = _this$props3.content,
8996 variant = _this$props3.variant,
8997 style = _this$props3.style,
8998 onButtonClick = _this$props3.onButtonClick,
8999 props = _objectWithoutProperties(_this$props3, ["heading", "content", "variant", "style", "onButtonClick"]);
9000
9001 var _this$state = this.state,
9002 isExpanded = _this$state.isExpanded,
9003 maxHeight = _this$state.maxHeight;
9004 return React__default.createElement(Container$5, _extends({
9005 className: classNames(_defineProperty({
9006 collapsed: !isExpanded
9007 }, "banner-variant--".concat(variant), variant)),
9008 style: _objectSpread({}, style, {
9009 maxHeight: maxHeight
9010 })
9011 }, props), React__default.createElement(IconSection$1, null, this.renderIcon()), React__default.createElement(ContentSection$1, null, React__default.createElement("div", {
9012 ref: this.heading
9013 }, React__default.createElement(Heading$1, {
9014 tag: "span",
9015 weight: "semiBold"
9016 }, heading), this.renderControl()), React__default.createElement("div", {
9017 ref: this.content
9018 }, React__default.createElement(Content$1, null, content))));
9019 }
9020 }]);
9021
9022 return FeedbackInline;
9023}(Component);
9024
9025_defineProperty(FeedbackInline, "propTypes", {
9026 heading: PropTypes__default.string.isRequired,
9027 content: contentValidator,
9028 isExpanded: PropTypes__default.bool,
9029 expandedText: PropTypes__default.string,
9030 collapsedText: PropTypes__default.string,
9031 onButtonClick: PropTypes__default.func,
9032 buttonProps: PropTypes__default.shape(),
9033 style: PropTypes__default.shape(),
9034 variant: PropTypes__default.oneOf(variants$1),
9035 icon: PropTypes__default.node,
9036 iconClassName: PropTypes__default.string
9037});
9038
9039_defineProperty(FeedbackInline, "defaultProps", {
9040 isExpanded: false,
9041 content: "",
9042 expandedText: "",
9043 collapsedText: "",
9044 onButtonClick: null,
9045 buttonProps: {},
9046 style: {},
9047 variant: null,
9048 icon: null,
9049 iconClassName: ""
9050});
9051
9052var _React$createContext$1 = React__default.createContext(),
9053 Provider$1 = _React$createContext$1.Provider,
9054 Consumer$1 = _React$createContext$1.Consumer;
9055
9056var _React$createContext$2 = React__default.createContext({
9057 isSmall: true
9058}),
9059 Provider$2 = _React$createContext$2.Provider,
9060 Consumer$2 = _React$createContext$2.Consumer;
9061var withDeviceSize = function withDeviceSize(Component) {
9062 return function (props) {
9063 return React__default.createElement(Consumer$2, null, function (value) {
9064 return React__default.createElement(Component, _extends({
9065 deviceSize: value
9066 }, props));
9067 });
9068 };
9069};
9070
9071function _templateObject4$d() {
9072 var data = _taggedTemplateLiteral(["\n display: ", "\n "]);
9073
9074 _templateObject4$d = function _templateObject4() {
9075 return data;
9076 };
9077
9078 return data;
9079}
9080
9081function _templateObject3$g() {
9082 var data = _taggedTemplateLiteral(["\n display: ", "\n "]);
9083
9084 _templateObject3$g = function _templateObject3() {
9085 return data;
9086 };
9087
9088 return data;
9089}
9090
9091function _templateObject2$v() {
9092 var data = _taggedTemplateLiteral(["\n display: ", "\n "]);
9093
9094 _templateObject2$v = function _templateObject2() {
9095 return data;
9096 };
9097
9098 return data;
9099}
9100
9101function _templateObject$G() {
9102 var data = _taggedTemplateLiteral(["\n display: ", ";\n ", ";\n ", ";\n ", ";\n"]);
9103
9104 _templateObject$G = function _templateObject() {
9105 return data;
9106 };
9107
9108 return data;
9109}
9110var StyledVisibility = styled.div(_templateObject$G(), function (props) {
9111 return props.small ? props.display : "none";
9112}, mediumAndUp(_templateObject2$v(), function (props) {
9113 return props.medium ? props.display : "none";
9114}), largeAndUp(_templateObject3$g(), function (props) {
9115 return props.large ? props.display : "none";
9116}), xLargeAndUp(_templateObject4$d(), function (props) {
9117 return props.xLarge ? props.display : "none";
9118}));
9119
9120var DisplayFor =
9121/*#__PURE__*/
9122function (_React$Component) {
9123 _inherits(DisplayFor, _React$Component);
9124
9125 function DisplayFor() {
9126 _classCallCheck(this, DisplayFor);
9127
9128 return _possibleConstructorReturn(this, _getPrototypeOf(DisplayFor).apply(this, arguments));
9129 }
9130
9131 _createClass(DisplayFor, [{
9132 key: "render",
9133 value: function render() {
9134 var _this = this;
9135
9136 var _this$props = this.props,
9137 small = _this$props.small,
9138 medium = _this$props.medium,
9139 large = _this$props.large,
9140 xLarge = _this$props.xLarge,
9141 children = _this$props.children;
9142 return React__default.createElement(Consumer$2, null, function (val) {
9143 /* istanbul ignore next */
9144 if (val.cssOnly) {
9145 return React__default.createElement(StyledVisibility, _this.props);
9146 }
9147 /* istanbul ignore next */
9148
9149
9150 if (val.isSmall && small) return children;
9151 /* istanbul ignore next */
9152
9153 if (val.isMedium && medium) return children;
9154 /* istanbul ignore next */
9155
9156 if (val.isLarge && large) return children;
9157 /* istanbul ignore next */
9158
9159 if (val.isXLarge && xLarge) return children;
9160 /* istanbul ignore next */
9161
9162 return null;
9163 });
9164 }
9165 }]);
9166
9167 return DisplayFor;
9168}(React__default.Component);
9169
9170_defineProperty(DisplayFor, "propTypes", {
9171 small: PropTypes__default.bool,
9172 medium: PropTypes__default.bool,
9173 large: PropTypes__default.bool,
9174 xLarge: PropTypes__default.bool,
9175 display: PropTypes__default.oneOf(["block", "inline-block", "flex"]),
9176 children: PropTypes__default.node,
9177 className: PropTypes__default.string
9178});
9179
9180_defineProperty(DisplayFor, "defaultProps", {
9181 display: "block",
9182 small: false,
9183 medium: false,
9184 large: false,
9185 xLarge: false,
9186 children: null,
9187 className: null
9188});
9189
9190var _React$createContext$3 = React__default.createContext(),
9191 Provider$3 = _React$createContext$3.Provider,
9192 Consumer$3 = _React$createContext$3.Consumer;
9193
9194function _templateObject$H() {
9195 var data = _taggedTemplateLiteral(["\n height: 100%;\n width: 100%;\n position: fixed;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.75);\n z-index: 4;\n display: flex;\n justify-content: center;\n align-items: center;\n"]);
9196
9197 _templateObject$H = function _templateObject() {
9198 return data;
9199 };
9200
9201 return data;
9202}
9203var KEYCODES = {
9204 ESCAPE: 27
9205};
9206var Overlay$1 = styled.div.attrs({
9207 className: "container--overlay"
9208})(_templateObject$H());
9209
9210var Backdrop =
9211/*#__PURE__*/
9212function (_Component) {
9213 _inherits(Backdrop, _Component);
9214
9215 function Backdrop() {
9216 var _getPrototypeOf2;
9217
9218 var _this;
9219
9220 _classCallCheck(this, Backdrop);
9221
9222 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9223 args[_key] = arguments[_key];
9224 }
9225
9226 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Backdrop)).call.apply(_getPrototypeOf2, [this].concat(args)));
9227
9228 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
9229 childRef: React__default.createRef()
9230 });
9231
9232 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyPress", function (event) {
9233 if (event.keyCode === KEYCODES.ESCAPE) {
9234 _this.onCloseRequest();
9235 }
9236 });
9237
9238 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleOutsideClick", function (e) {
9239 var childRef = _this.state.childRef;
9240
9241 if (childRef && childRef.current) {
9242 if (!childRef.current.contains(e.target)) {
9243 if (_this.onCloseRequest) {
9244 _this.onCloseRequest();
9245 }
9246 }
9247 } else {
9248 _this.onCloseRequest();
9249 }
9250 });
9251
9252 return _this;
9253 }
9254
9255 _createClass(Backdrop, [{
9256 key: "componentDidMount",
9257 value: function componentDidMount() {
9258 document.addEventListener("click", this.handleOutsideClick, false);
9259 document.addEventListener("keydown", this.onKeyPress, false);
9260 }
9261 }, {
9262 key: "componentWillUnmount",
9263 value: function componentWillUnmount() {
9264 document.removeEventListener("click", this.handleOutsideClick, false);
9265 document.removeEventListener("keydown", this.onKeyPress, false);
9266 }
9267 }, {
9268 key: "render",
9269 value: function render() {
9270 var _this2 = this;
9271
9272 var _this$props = this.props,
9273 children = _this$props.children,
9274 rest = _objectWithoutProperties(_this$props, ["children"]);
9275
9276 return React__default.createElement(Consumer$1, null, function (value) {
9277 _this2.onCloseRequest = value ? value.onCloseRequest : function () {};
9278 return React__default.createElement(Overlay$1, _extends({
9279 onClick: _this2.handleOutsideClick
9280 }, rest), children && React__default.createElement(Provider$3, {
9281 value: _this2.state
9282 }, children));
9283 });
9284 }
9285 }]);
9286
9287 return Backdrop;
9288}(Component);
9289
9290Backdrop.defaultProps = {
9291 children: null
9292};
9293Backdrop.propTypes = {
9294 children: PropTypes__default.node
9295};
9296
9297var badgeProps = {
9298 label: PropTypes__default.string.isRequired,
9299 color: PropTypes__default.string
9300};
9301var badgeDefault = {
9302 color: themes.global.primary.base
9303};
9304
9305function _templateObject$I() {
9306 var data = _taggedTemplateLiteral(["\n padding: ", " ", ";\n font-weight: ", ";\n text-align: center;\n color: ", ";\n font-size: ", ";\n line-height: 1.2;\n border-radius: ", ";\n letter-spacing: 0.025em;\n text-transform: uppercase;\n background-color: ", ";\n"]);
9307
9308 _templateObject$I = function _templateObject() {
9309 return data;
9310 };
9311
9312 return data;
9313}
9314var StyledBadge$1 = styled.div(_templateObject$I(), spacing.slim, spacing.cozy, typography.weight.semiBold, function (_ref) {
9315 var _ref$variant = _ref.variant,
9316 variant = _ref$variant === void 0 ? DARK : _ref$variant;
9317 return variant === LIGHT ? themes.global.gray01 : themes.global.white.base;
9318}, typography.size.mini, constants.borderRadius.xxLarge, function (_ref2) {
9319 var color = _ref2.color;
9320 return color;
9321});
9322
9323var StatusBadge = function StatusBadge(_ref3) {
9324 var variant = _ref3.variant,
9325 color = _ref3.color,
9326 label = _ref3.label,
9327 className = _ref3.className,
9328 rest = _objectWithoutProperties(_ref3, ["variant", "color", "label", "className"]);
9329
9330 return React__default.createElement(StyledBadge$1, _extends({
9331 className: classNames(className, "badge"),
9332 variant: variant,
9333 color: color
9334 }, rest), label);
9335};
9336
9337StatusBadge.propTypes = _objectSpread({}, badgeProps, {
9338 variant: PropTypes__default.oneOf(VARIANTS),
9339 className: PropTypes__default.string
9340});
9341StatusBadge.defaultProps = _objectSpread({}, badgeDefault, {
9342 variant: DARK,
9343 className: ""
9344});
9345StatusBadge.displayName = "StatusBadge";
9346
9347var getRootNode = function getRootNode(node) {
9348 if (typeof node.getRootNode === "function") {
9349 var rootNode = node.getRootNode();
9350
9351 if (rootNode && rootNode !== document) {
9352 return rootNode;
9353 }
9354 }
9355
9356 return document.body;
9357};
9358
9359var Portal$1 =
9360/*#__PURE__*/
9361function (_React$Component) {
9362 _inherits(Portal, _React$Component);
9363
9364 function Portal() {
9365 var _getPrototypeOf2;
9366
9367 var _this;
9368
9369 _classCallCheck(this, Portal);
9370
9371 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9372 args[_key] = arguments[_key];
9373 }
9374
9375 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Portal)).call.apply(_getPrototypeOf2, [this].concat(args)));
9376
9377 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {});
9378
9379 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "refCallback", function (ref) {
9380 if (ref) {
9381 var rootNode = getRootNode(ref);
9382
9383 var _current = document.createElement("div");
9384
9385 _current.id = "popover-root-".concat(new Date().getTime());
9386 rootNode.appendChild(_current);
9387
9388 _this.setState({
9389 current: _current
9390 });
9391 }
9392 });
9393
9394 return _this;
9395 }
9396
9397 _createClass(Portal, [{
9398 key: "componentWillUnmount",
9399 value: function componentWillUnmount() {
9400 var current = this.state.current;
9401
9402 if (current && current.parentNode) {
9403 current.parentNode.removeChild(current);
9404 }
9405 }
9406 }, {
9407 key: "render",
9408 value: function render() {
9409 var children = this.props.children;
9410 var current = this.state.current;
9411
9412 if (current) {
9413 return createPortal(children, current);
9414 }
9415
9416 return createElement("div", {
9417 ref: this.refCallback,
9418 style: {
9419 display: "none"
9420 }
9421 });
9422 }
9423 }]);
9424
9425 return Portal;
9426}(Component);
9427
9428_defineProperty(Portal$1, "propTypes", {
9429 children: node
9430});
9431
9432_defineProperty(Portal$1, "defaultProps", {
9433 children: null
9434});
9435
9436function _templateObject$J() {
9437 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n ", ";\n color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n position: absolute;\n max-width: 300px;\n padding: ", ";\n z-index: ", ";\n display: ", ";\n transition: opacity 0.1s ", ",\n transform 0.1s ", ";\n\n &.open-enter,\n &.open-appear {\n transition: opacity 0.3s ", ";\n display: block;\n opacity: 0;\n transform: scale(0.7);\n }\n\n &.open-enter-active,\n &.open-appear-active {\n transition: opacity 0.3s ", ",\n transform 0.3s ", ";\n display: block;\n opacity: 1;\n transform: scale(1);\n }\n\n &.open-enter-done {\n transition: opacity 0.3s ", ",\n transform 0.3s ", ";\n display: block;\n opacity: 1;\n transform: scale(1);\n }\n\n &.open-exit {\n display: block;\n opacity: 1;\n transform: scale(1);\n }\n\n &.open-exit-active {\n display: block;\n opacity: 0;\n transform: scale(0.7);\n }\n"]);
9438
9439 _templateObject$J = function _templateObject() {
9440 return data;
9441 };
9442
9443 return data;
9444}
9445var StyledPopOver = styled.div(_templateObject$J(), function (_ref) {
9446 var variant = _ref.variant;
9447 return variant === DARK ? themes.global.darkFill : themes.global.white.base;
9448}, function (_ref2) {
9449 var noBorders = _ref2.noBorders,
9450 variant = _ref2.variant;
9451 return !noBorders && "\n border: ".concat(variant === DARK ? "1px solid ".concat(themes.global.darkFill) : "1px solid ".concat(themes.global.gray02), ";");
9452}, function (_ref3) {
9453 var variant = _ref3.variant;
9454 return variant === DARK ? themes.global.white.base : themes.global.gray01;
9455}, constants.borderRadius.large, function (_ref4) {
9456 var noBorders = _ref4.noBorders;
9457 return noBorders ? popContainersSharpBoxShadow : popContainersBoxShadow;
9458}, spacing.moderate, function (_ref5) {
9459 var zInd = _ref5.zInd;
9460 return zInd;
9461}, function (_ref6) {
9462 var isVisible = _ref6.isVisible;
9463 return isVisible ? "block" : "none";
9464}, constants.easing.easeInQuad, constants.easing.easeInQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad);
9465var MIN_SPACE_FROM_EDGE = 24;
9466var MOBILE_MIN_SPACE_FROM_EDGE = 16;
9467var MOBILE_MAX_WIDTH = 767;
9468
9469var PopOver =
9470/*#__PURE__*/
9471function (_Component) {
9472 _inherits(PopOver, _Component);
9473
9474 _createClass(PopOver, null, [{
9475 key: "calculatePosition",
9476
9477 /*
9478 * Static function that determines PopOver position.
9479 * @position(object) - top and bottom position of the elemt that triggers showing PopOver;
9480 * Mouse horizontal position on the sreen - so we can center the PopOver;
9481 * Additional container position and size
9482 * @dimensions(object) - PopOver width and height;
9483 * Page scroll position
9484 * Viewport size
9485 * @reduce(object) - additional top/bottom screen reduction cause by sticky header/footer
9486 * @inlineWithTarget(boolean) - an optional prop that allows to align PopOver with toggle
9487 */
9488 value: function calculatePosition(_ref7) {
9489 var position = _ref7.position,
9490 dimensions = _ref7.dimensions,
9491 reduce = _ref7.reduce,
9492 inlineWithTarget = _ref7.inlineWithTarget,
9493 spaceFromMouse = _ref7.spaceFromMouse,
9494 preferTop = _ref7.preferTop;
9495 var width = dimensions.width,
9496 windowScroll = dimensions.windowScroll,
9497 height = dimensions.height,
9498 windowWidth = dimensions.windowWidth,
9499 windowHeight = dimensions.windowHeight;
9500 var reduceTop = reduce.top,
9501 reduceBottom = reduce.bottom;
9502 var elBottom = position.elBottom,
9503 elTop = position.elTop,
9504 elLeft = position.elLeft,
9505 elWidth = position.elWidth,
9506 offsetTop = position.offsetTop,
9507 clientHeight = position.clientHeight,
9508 offsetLeft = position.offsetLeft,
9509 clientWidth = position.clientWidth;
9510
9511 if (inlineWithTarget) {
9512 return {
9513 x: elLeft + width + MIN_SPACE_FROM_EDGE * 2 >= clientWidth ? elLeft - width - spacing.gutters.tiny : elLeft + elWidth + spacing.gutters.tiny,
9514 y: windowScroll + elTop
9515 };
9516 }
9517
9518 var viewportTop = windowScroll + reduceTop;
9519 var viewportBottom = windowScroll + windowHeight - reduceBottom;
9520 var bottomPosition = windowScroll + elBottom + spaceFromMouse;
9521 var topPosition = windowScroll + elTop - spaceFromMouse - height;
9522 var spaceFromEdge = windowWidth > MOBILE_MAX_WIDTH ? MIN_SPACE_FROM_EDGE : MOBILE_MIN_SPACE_FROM_EDGE;
9523 var containerTop = offsetTop + spaceFromEdge;
9524 var containerBottom = windowScroll + offsetTop + clientHeight - spaceFromEdge;
9525 var containerLeft = offsetLeft + spaceFromEdge;
9526 var containerRight = offsetLeft + clientWidth - spaceFromEdge - width;
9527 var topPositionWithFallback = topPosition - spaceFromEdge >= Math.max(viewportTop, containerTop) ? topPosition : bottomPosition;
9528 var xPosition = Math.min(Math.max(elLeft + elWidth / 2 - width / 2, containerLeft), windowWidth - spaceFromEdge - width, containerRight);
9529 var yPosition = !preferTop && bottomPosition + height + spaceFromEdge <= Math.min(viewportBottom, containerBottom) ? bottomPosition : topPositionWithFallback;
9530 return {
9531 x: xPosition,
9532 y: yPosition
9533 };
9534 }
9535 }]);
9536
9537 function PopOver(props) {
9538 var _this;
9539
9540 _classCallCheck(this, PopOver);
9541
9542 _this = _possibleConstructorReturn(this, _getPrototypeOf(PopOver).call(this, props));
9543
9544 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setDimensions", function () {
9545 var isVisible = _this.props.isVisible;
9546 var _this$dimensions = _this.dimensions,
9547 windowScroll = _this$dimensions.windowScroll,
9548 windowWidth = _this$dimensions.windowWidth,
9549 windowHeight = _this$dimensions.windowHeight,
9550 width = _this$dimensions.width,
9551 height = _this$dimensions.height;
9552 var dimensions = {};
9553
9554 if (global.window && isVisible) {
9555 var _global$window$docume = global.window.document.documentElement,
9556 clientWidth = _global$window$docume.clientWidth,
9557 clientHeight = _global$window$docume.clientHeight;
9558 var scrollTop = Math.max(global.window.pageYOffset, global.document.documentElement.scrollTop, global.document.body.scrollTop);
9559
9560 if (scrollTop !== windowScroll) {
9561 dimensions.windowScroll = scrollTop;
9562 }
9563
9564 if (clientWidth !== windowWidth) {
9565 dimensions.windowWidth = clientWidth;
9566 }
9567
9568 if (clientHeight !== windowHeight) {
9569 dimensions.windowHeight = clientHeight;
9570 }
9571 }
9572
9573 if (_this.myRef.current) {
9574 var _this$myRef$current = _this.myRef.current,
9575 _clientWidth = _this$myRef$current.clientWidth,
9576 _clientHeight = _this$myRef$current.clientHeight;
9577
9578 if (width !== _clientWidth && _clientWidth) {
9579 dimensions.width = _clientWidth;
9580 }
9581
9582 if (height !== _clientHeight && _clientHeight) {
9583 dimensions.height = _clientHeight;
9584 }
9585 }
9586
9587 if (Object.keys(dimensions).length) {
9588 _this.dimensions = _objectSpread({}, _this.dimensions, dimensions);
9589 return true;
9590 }
9591
9592 return false;
9593 });
9594
9595 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "popoverEnter", function () {
9596 var _this$props = _this.props,
9597 isVisible = _this$props.isVisible,
9598 inlineWithTarget = _this$props.inlineWithTarget,
9599 position = _this$props.position,
9600 reduceTop = _this$props.reduceTop,
9601 reduceBottom = _this$props.reduceBottom,
9602 spaceFromMouse = _this$props.spaceFromMouse;
9603
9604 if (isVisible) {
9605 _this.setDimensions();
9606
9607 var reduce = {
9608 top: reduceTop,
9609 bottom: reduceBottom
9610 };
9611 _this.pos = PopOver.calculatePosition({
9612 position: position,
9613 dimensions: _this.dimensions,
9614 reduce: reduce,
9615 inlineWithTarget: inlineWithTarget,
9616 spaceFromMouse: spaceFromMouse
9617 });
9618 }
9619
9620 _this.myRef.current.style.top = "".concat(_this.pos.y, "px");
9621 _this.myRef.current.style.left = "".concat(_this.pos.x, "px");
9622 });
9623
9624 _this.dimensions = {
9625 width: 0,
9626 height: 0,
9627 windowScroll: 0,
9628 windowWidth: 0,
9629 windowHeight: 0
9630 };
9631 _this.myRef = React__default.createRef();
9632 _this.pos = {
9633 x: 0,
9634 y: 0
9635 };
9636 return _this;
9637 }
9638
9639 _createClass(PopOver, [{
9640 key: "componentDidUpdate",
9641 value: function componentDidUpdate(prevProps) {
9642 /*
9643 * This causes force update of the popover position if we use only one popover and we transiotion from
9644 * one zone that triggers the popover to another that triggers the same popover but with different place to display
9645 */
9646 var _this$props2 = this.props,
9647 _this$props2$position = _this$props2.position,
9648 elTop = _this$props2$position.elTop,
9649 elBottom = _this$props2$position.elBottom,
9650 elLeft = _this$props2$position.elLeft,
9651 isVisible = _this$props2.isVisible,
9652 inlineWithTarget = _this$props2.inlineWithTarget,
9653 position = _this$props2.position,
9654 reduceTop = _this$props2.reduceTop,
9655 reduceBottom = _this$props2.reduceBottom,
9656 spaceFromMouse = _this$props2.spaceFromMouse;
9657
9658 if ((prevProps.position.elTop !== elTop || prevProps.position.elBottom !== elBottom || prevProps.position.elLeft !== elLeft) && isVisible && prevProps.isVisible === isVisible) {
9659 this.setDimensions();
9660 var reduce = {
9661 top: reduceTop,
9662 bottom: reduceBottom
9663 };
9664 this.pos = PopOver.calculatePosition({
9665 position: position,
9666 dimensions: this.dimensions,
9667 reduce: reduce,
9668 inlineWithTarget: inlineWithTarget,
9669 spaceFromMouse: spaceFromMouse
9670 });
9671 this.myRef.current.style.top = "".concat(this.pos.y, "px");
9672 this.myRef.current.style.left = "".concat(this.pos.x, "px");
9673 }
9674 }
9675 /*
9676 * Static function that needs to be called from the parent -> PopOver.getDimensionsFromEvent
9677 * The parent should pass the click event which will trigger showing the PopOver.
9678 * By default the PopOver is shown withing the view port. If we need to show it inside
9679 * certain element we should pass the html element as second parameter.
9680 * The function will return an object that should be provided to the PopOver as props.
9681 */
9682
9683 }, {
9684 key: "render",
9685 value: function render() {
9686 var _this$props3 = this.props,
9687 children = _this$props3.children,
9688 isVisible = _this$props3.isVisible,
9689 variant = _this$props3.variant,
9690 noBorders = _this$props3.noBorders,
9691 zInd = _this$props3.zInd;
9692 return React__default.createElement(Portal$1, null, React__default.createElement(CSSTransition, {
9693 in: isVisible,
9694 key: "popover-animation",
9695 timeout: 300,
9696 classNames: "open",
9697 appear: isVisible,
9698 variant: variant,
9699 onEnter: this.popoverEnter
9700 }, React__default.createElement(StyledPopOver, {
9701 ref: this.myRef,
9702 isVisible: isVisible,
9703 noBorders: noBorders,
9704 zInd: zInd,
9705 variant: variant
9706 }, children)));
9707 }
9708 }], [{
9709 key: "getDimensionsFromEvent",
9710 value: function getDimensionsFromEvent(e, parent) {
9711 var _e$target$getBounding = e.target.getBoundingClientRect(),
9712 elTop = _e$target$getBounding.y,
9713 elHeight = _e$target$getBounding.height,
9714 elLeft = _e$target$getBounding.x,
9715 elWidth = _e$target$getBounding.width;
9716
9717 var _ref8 = parent && parent.getBoundingClientRect ? parent.getBoundingClientRect() : {},
9718 _ref8$y = _ref8.y,
9719 offsetTop = _ref8$y === void 0 ? 0 : _ref8$y,
9720 _ref8$height = _ref8.height,
9721 clientHeight = _ref8$height === void 0 ? 100000 : _ref8$height,
9722 _ref8$x = _ref8.x,
9723 offsetLeft = _ref8$x === void 0 ? 0 : _ref8$x,
9724 _ref8$width = _ref8.width,
9725 clientWidth = _ref8$width === void 0 ? 100000 : _ref8$width;
9726
9727 return {
9728 elTop: elTop,
9729 elLeft: elLeft,
9730 elWidth: elWidth,
9731 elBottom: elTop + elHeight,
9732 offsetTop: offsetTop,
9733 clientHeight: clientHeight,
9734 offsetLeft: offsetLeft,
9735 clientWidth: clientWidth
9736 };
9737 }
9738 }]);
9739
9740 return PopOver;
9741}(Component);
9742
9743PopOver.propTypes = {
9744 children: PropTypes__default.node.isRequired,
9745 isVisible: PropTypes__default.bool,
9746 inlineWithTarget: PropTypes__default.bool,
9747 variant: PropTypes__default.oneOf(VARIANTS),
9748 noBorders: PropTypes__default.bool,
9749 reduceTop: PropTypes__default.number,
9750 reduceBottom: PropTypes__default.number,
9751 position: PropTypes__default.shape({
9752 mouseX: PropTypes__default.number,
9753 elTop: PropTypes__default.number,
9754 elBottom: PropTypes__default.number,
9755 offsetTop: PropTypes__default.number,
9756 clientHeight: PropTypes__default.number,
9757 offsetLeft: PropTypes__default.number,
9758 clientWidth: PropTypes__default.number
9759 }),
9760 zInd: PropTypes__default.number,
9761 spaceFromMouse: PropTypes__default.number
9762};
9763PopOver.defaultProps = {
9764 isVisible: false,
9765 inlineWithTarget: false,
9766 variant: LIGHT,
9767 noBorders: false,
9768 reduceTop: 0,
9769 reduceBottom: 0,
9770 position: {
9771 mouseX: 0,
9772 elTop: 0,
9773 elBottom: 0,
9774 offsetTop: 0,
9775 clientHeight: 0,
9776 offsetLeft: 0,
9777 clientWidth: 0
9778 },
9779 zInd: zIndex.layout.overlay,
9780 spaceFromMouse: 4
9781};
9782PopOver.displayName = "PopOver";
9783
9784function _templateObject6$5() {
9785 var data = _taggedTemplateLiteral(["\n padding: ", ";\n font-size: ", ";\n color: ", ";\n"]);
9786
9787 _templateObject6$5 = function _templateObject6() {
9788 return data;
9789 };
9790
9791 return data;
9792}
9793
9794function _templateObject5$7() {
9795 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n"]);
9796
9797 _templateObject5$7 = function _templateObject5() {
9798 return data;
9799 };
9800
9801 return data;
9802}
9803
9804function _templateObject4$e() {
9805 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n text-transform: uppercase;\n margin-bottom: ", ";\n color: ", ";\n"]);
9806
9807 _templateObject4$e = function _templateObject4() {
9808 return data;
9809 };
9810
9811 return data;
9812}
9813
9814function _templateObject3$h() {
9815 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-grow: 1;\n text-align: center;\n\n &:first-child {\n text-align: left;\n }\n\n &:last-child {\n text-align: right;\n }\n"]);
9816
9817 _templateObject3$h = function _templateObject3() {
9818 return data;
9819 };
9820
9821 return data;
9822}
9823
9824function _templateObject2$w() {
9825 var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n padding: ", ";\n border-bottom: ", ";\n line-height: 1;\n"]);
9826
9827 _templateObject2$w = function _templateObject2() {
9828 return data;
9829 };
9830
9831 return data;
9832}
9833
9834function _templateObject$K() {
9835 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n position: absolute;\n max-width: 260px;\n color: ", ";\n padding: ", ";\n display: ", ";\n font-size: ", ";\n transition: opacity 0.1s ", ",\n transform 0.1s ", ";\n\n /* pseudoelement should fade in faster and fade out slower than tooltip */\n :before {\n content: \"\";\n position: absolute;\n transition: opacity 0.15s ", ";\n display: ", ";\n border-right: ", ";\n border-bottom: ", ";\n border-top-left-radius: 100%;\n width: 12px;\n height: 12px;\n transform: translateY(-50%) rotate(-135deg);\n background-color: ", ";\n ", ";\n }\n\n &.open-enter &.open-enter:before,\n &.open-appear,\n &.open-appear:before {\n transition: opacity 0.25s ", ";\n display: block;\n opacity: 0;\n }\n\n &.open-enter,\n &.open-appear {\n transition: opacity 0.3s ", ";\n }\n\n &.open-enter-active,\n &.open-enter-active:before,\n &.open-appear-active,\n &.open-appear-active:before {\n transition: opacity 0.25s ", ";\n display: block;\n opacity: 1;\n }\n\n &.open-enter-active,\n &.open-appear-active {\n transition: opacity 0.3s ", ",\n transform 0.3s ", ";\n }\n\n &.open-enter-done,\n &.open-enter-done:before {\n transition: opacity 0.25s ", ";\n display: block;\n opacity: 1;\n }\n\n &.open-enter-done {\n transition: opacity 0.3s ", ",\n transform 0.3s ", ";\n }\n\n &.open-exit,\n &.open-exit:before {\n display: block;\n opacity: 1;\n }\n\n &.open-exit-active,\n &.open-exit-active:before {\n display: block;\n opacity: 0;\n }\n\n &.open-exit-done {\n transform: translate(0);\n }\n"]);
9836
9837 _templateObject$K = function _templateObject() {
9838 return data;
9839 };
9840
9841 return data;
9842}
9843var StyledTooltip = styled.div(_templateObject$K(), function (_ref) {
9844 var variant = _ref.variant;
9845 return variant === DARK ? themes.global.darkFill : themes.global.white.base;
9846}, function (_ref2) {
9847 var variant = _ref2.variant;
9848 return variant === DARK ? "1px solid ".concat(themes.global.darkFill) : "1px solid ".concat(themes.global.gray02);
9849}, constants.borderRadius.large, popContainersBoxShadow, function (_ref3) {
9850 var variant = _ref3.variant;
9851 return variant === DARK ? themes.global.white.base : themes.global.gray01;
9852}, spacing.cozy, function (_ref4) {
9853 var isVisible = _ref4.isVisible;
9854 return isVisible ? "block" : "none";
9855}, typography.size.uno, constants.easing.easeInQuad, constants.easing.easeInQuad, constants.easing.easeInQuad, function (_ref5) {
9856 var isVisible = _ref5.isVisible;
9857 return isVisible ? "inline-block" : "none";
9858}, function (_ref6) {
9859 var variant = _ref6.variant;
9860 return variant === LIGHT ? "1px solid ".concat(themes.global.gray02) : "";
9861}, function (_ref7) {
9862 var variant = _ref7.variant;
9863 return variant === LIGHT ? "1px solid ".concat(themes.global.gray02) : "";
9864}, function (_ref8) {
9865 var variant = _ref8.variant;
9866 return variant === DARK ? themes.global.darkFill : themes.global.white.base;
9867}, function (_ref9) {
9868 var direction = _ref9.direction,
9869 arrowAdjustment = _ref9.arrowAdjustment;
9870
9871 switch (direction) {
9872 case TOP:
9873 return "left: calc(50% - ".concat(ARROW_WIDTH / 2, "px + ").concat(arrowAdjustment, "); bottom: -13px; transform: translateY(-50%) rotate(45deg);");
9874
9875 case BOTTOM:
9876 return "left: calc(50% - ".concat(ARROW_WIDTH / 2, "px + ").concat(arrowAdjustment, "); top: -1px; transform: translateY(-50%) rotate(-135deg);");
9877
9878 case LEFT:
9879 return "top: 10px; right: -".concat(ARROW_WIDTH / 2 + 1, "px; transform: translateY(0%) rotate(-45deg);");
9880
9881 case RIGHT:
9882 return "top: 10px; left: -".concat(ARROW_WIDTH / 2 + 1, "px; transform: translateY(0%) rotate(135deg);");
9883
9884 default:
9885 return "left: calc(50% - ".concat(ARROW_WIDTH / 2, "px); top: -1px; transform: translateY(-50%) rotate(-135deg);");
9886 }
9887}, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad, constants.easing.easeOutQuad);
9888var SeatDataStyled = styled.div(_templateObject2$w(), function (_ref10) {
9889 var size = _ref10.size;
9890 return size === LARGE ? spacing.moderate : spacing.cozy;
9891}, function (_ref11) {
9892 var isLast = _ref11.isLast;
9893 return isLast ? "1px solid ".concat(themes.global.gray02) : "none";
9894});
9895var SeatDataColumn = styled.div(_templateObject3$h());
9896var ColumnHeading = styled.div(_templateObject4$e(), function (_ref12) {
9897 var size = _ref12.size;
9898 return size === LARGE ? typography.size.hecto : typography.size.uno;
9899}, function (_ref13) {
9900 var size = _ref13.size;
9901 return size === LARGE ? spacing.cozy : spacing.cozy;
9902}, themes.global.gray02);
9903var ColumnText = styled.div(_templateObject5$7(), function (_ref14) {
9904 var size = _ref14.size;
9905 return size === LARGE ? typography.size.kilo : typography.size.hecto;
9906}, typography.weight.semiBold, function (_ref15) {
9907 var variant = _ref15.variant;
9908 return variant === DARK ? themes.global.white.base : themes.global.gray01;
9909});
9910var AdditionalData = styled.div(_templateObject6$5(), function (_ref16) {
9911 var size = _ref16.size;
9912 return size === LARGE ? spacing.moderate : spacing.cozy;
9913}, function (_ref17) {
9914 var size = _ref17.size;
9915 return size === LARGE ? typography.size.hecto : typography.size.uno;
9916}, function (_ref18) {
9917 var variant = _ref18.variant;
9918 return variant === DARK ? themes.global.white.base : themes.global.gray01;
9919});
9920
9921var SPACE_FROM_MOUSE = 20;
9922
9923var Tooltip =
9924/*#__PURE__*/
9925function (_Component) {
9926 _inherits(Tooltip, _Component);
9927
9928 function Tooltip(_props) {
9929 var _this;
9930
9931 _classCallCheck(this, Tooltip);
9932
9933 _this = _possibleConstructorReturn(this, _getPrototypeOf(Tooltip).call(this, _props));
9934
9935 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getDirection", function () {
9936 var direction = _this.props.direction;
9937 var actualDirection = _this.state.actualDirection;
9938
9939 if (direction === AUTO) {
9940 return actualDirection;
9941 }
9942
9943 return direction;
9944 });
9945
9946 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPositionAndUpdateDirection", function (_ref) {
9947 var position = _ref.position,
9948 dimensions = _ref.dimensions,
9949 spaceFromMouse = _ref.spaceFromMouse,
9950 reduce = _ref.reduce;
9951 var preferTop = _this.props.preferTop;
9952 var result = PopOver.calculatePosition({
9953 position: position,
9954 dimensions: dimensions,
9955 spaceFromMouse: spaceFromMouse,
9956 reduce: reduce,
9957 preferTop: preferTop
9958 });
9959
9960 var adjustment = _this.adjustArrow({
9961 coords: {
9962 x: result.x,
9963 width: dimensions.width
9964 },
9965 position: position
9966 });
9967
9968 var direction = null;
9969
9970 if (result.y < position.elTop + dimensions.windowScroll) {
9971 direction = TOP;
9972 } else if (result.y > position.elTop + dimensions.windowScroll) {
9973 direction = BOTTOM;
9974 }
9975
9976 _this.setState(function (prevState, props) {
9977 var directionChanged = props.directionChanged;
9978 var actualDirection = prevState.actualDirection,
9979 arrowAdjustment = prevState.arrowAdjustment;
9980
9981 if (actualDirection !== direction || arrowAdjustment !== adjustment) {
9982 if (direction && directionChanged) {
9983 directionChanged(direction);
9984 }
9985
9986 return {
9987 actualDirection: direction || actualDirection,
9988 arrowAdjustment: adjustment
9989 };
9990 }
9991
9992 return null;
9993 });
9994
9995 return result;
9996 });
9997
9998 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTranslateByDirection", function (direction) {
9999 switch (direction) {
10000 case TOP:
10001 return "translate(0, 10px)";
10002
10003 case BOTTOM:
10004 return "translate(0, -10px)";
10005
10006 case LEFT:
10007 return "translate(10px, 0)";
10008
10009 case RIGHT:
10010 default:
10011 return "translate(-10px, 0)";
10012 }
10013 });
10014
10015 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "refresh", function () {
10016 if (_this.props.isVisible) {
10017 _this.tooltipEnter();
10018
10019 _this.tooltipEntering();
10020 }
10021 });
10022
10023 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "adjustArrow", function (_ref2) {
10024 var coords = _ref2.coords,
10025 position = _ref2.position;
10026 var reqCenter = position.elHorizontalCenter;
10027 var currentCenter = coords.x + coords.width / 2;
10028 var mostLeft = coords.x + ARROW_WIDTH / 2;
10029 var mostRight = coords.x + coords.width + ARROW_WIDTH / 2;
10030 var center = Math.min(Math.max(mostLeft, reqCenter), mostRight);
10031 return center - currentCenter;
10032 });
10033
10034 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "calculatePosition", function (_ref3) {
10035 var direction = _ref3.direction,
10036 position = _ref3.position,
10037 dimensions = _ref3.dimensions,
10038 spaceFromMouse = _ref3.spaceFromMouse,
10039 reduce = _ref3.reduce;
10040 var width = dimensions.width,
10041 height = dimensions.height,
10042 windowScroll = dimensions.windowScroll;
10043 var elBottom = position.elBottom,
10044 elTop = position.elTop,
10045 elLeft = position.elLeft,
10046 elRight = position.elRight,
10047 elHorizontalCenter = position.elHorizontalCenter;
10048 var bottomPosition = elBottom + SPACE_FROM_MOUSE;
10049 var topPosition = elTop - SPACE_FROM_MOUSE - height + windowScroll;
10050
10051 switch (direction) {
10052 case TOP:
10053 return {
10054 x: elHorizontalCenter - width / 2,
10055 y: topPosition
10056 };
10057
10058 case BOTTOM:
10059 return {
10060 x: elHorizontalCenter - width / 2,
10061 y: bottomPosition + windowScroll
10062 };
10063
10064 case LEFT:
10065 return {
10066 x: elLeft - width - SPACE_FROM_MOUSE,
10067 y: elTop + windowScroll
10068 };
10069
10070 case RIGHT:
10071 return {
10072 x: elRight + SPACE_FROM_MOUSE,
10073 y: elTop + windowScroll
10074 };
10075
10076 default:
10077 return _this.getPositionAndUpdateDirection({
10078 direction: direction,
10079 position: position,
10080 dimensions: dimensions,
10081 spaceFromMouse: spaceFromMouse,
10082 reduce: reduce
10083 });
10084 }
10085 });
10086
10087 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateSize", function () {
10088 var isVisible = _this.props.isVisible;
10089 var _this$dimensions = _this.dimensions,
10090 windowScroll = _this$dimensions.windowScroll,
10091 windowWidth = _this$dimensions.windowWidth,
10092 windowHeight = _this$dimensions.windowHeight,
10093 width = _this$dimensions.width,
10094 height = _this$dimensions.height;
10095 var dimensions = {};
10096
10097 if (global.window && isVisible) {
10098 var _global$window$docume = global.window.document.documentElement,
10099 clientWidth = _global$window$docume.clientWidth,
10100 clientHeight = _global$window$docume.clientHeight;
10101 var scrollTop = Math.max(global.window.pageYOffset, global.document.documentElement.scrollTop, global.document.body.scrollTop);
10102
10103 if (scrollTop !== windowScroll) {
10104 dimensions.windowScroll = scrollTop;
10105 }
10106
10107 if (clientWidth !== windowWidth) {
10108 dimensions.windowWidth = clientWidth;
10109 }
10110
10111 if (clientHeight !== windowHeight) {
10112 dimensions.windowHeight = clientHeight;
10113 }
10114 }
10115
10116 if (_this.myRef.current) {
10117 var _this$myRef$current = _this.myRef.current,
10118 _clientWidth = _this$myRef$current.clientWidth,
10119 _clientHeight = _this$myRef$current.clientHeight;
10120
10121 if (width !== _clientWidth && _clientWidth) {
10122 dimensions.width = _clientWidth;
10123 }
10124
10125 if (height !== _clientHeight && _clientHeight) {
10126 dimensions.height = _clientHeight;
10127 }
10128 }
10129
10130 if (Object.keys(dimensions).length) {
10131 _this.dimensions = _objectSpread({}, _this.dimensions, dimensions);
10132 return true;
10133 }
10134
10135 return false;
10136 });
10137
10138 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tooltipEnter", function () {
10139 var _this$props = _this.props,
10140 isVisible = _this$props.isVisible,
10141 position = _this$props.position,
10142 direction = _this$props.direction,
10143 spaceFromMouse = _this$props.spaceFromMouse,
10144 reduceTop = _this$props.reduceTop,
10145 reduceBottom = _this$props.reduceBottom;
10146
10147 if (isVisible) {
10148 var reduce = {
10149 top: reduceTop,
10150 bottom: reduceBottom
10151 };
10152
10153 _this.updateSize();
10154
10155 _this.pos = _this.calculatePosition({
10156 direction: direction,
10157 position: position,
10158 dimensions: _this.dimensions,
10159 spaceFromMouse: spaceFromMouse,
10160 reduce: reduce
10161 });
10162 }
10163
10164 _this.myRef.current.style.top = "".concat(_this.pos.y, "px");
10165 _this.myRef.current.style.left = "".concat(_this.pos.x, "px");
10166 _this.myRef.current.style.transition = "opacity 0.3s ".concat(constants.easing.easeOutQuad);
10167 _this.myRef.current.style.transform = _this.getTranslateByDirection(_this.state.actualDirection);
10168 });
10169
10170 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tooltipEntering", function () {
10171 _this.myRef.current.style.transition = "opacity 0.3s ".concat(constants.easing.easeOutQuad, ",\n transform 0.3s ").concat(constants.easing.easeOutQuad);
10172 _this.myRef.current.style.transform = "translate(0)";
10173 });
10174
10175 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tooltipExit", function () {
10176 _this.myRef.current.style.transition = "opacity 0.1s ".concat(constants.easing.easeInQuad);
10177 });
10178
10179 _this.myRef = React__default.createRef();
10180 _this.dimensions = {
10181 width: 0,
10182 height: 0,
10183 windowScroll: 0,
10184 windowWidth: 0,
10185 windowHeight: 0
10186 };
10187 _this.pos = {
10188 x: 0,
10189 y: 0
10190 };
10191 _this.state = {
10192 actualDirection: _props.direction,
10193 arrowAdjustment: 0
10194 };
10195 return _this;
10196 }
10197 /*
10198 * If any specific value is passed via `direction` props, than that value should be used
10199 * If `auto` value is passed via `direction` prop, then calculated direction value will be used
10200 */
10201
10202
10203 _createClass(Tooltip, [{
10204 key: "render",
10205 value: function render() {
10206 var _this$props2 = this.props,
10207 children = _this$props2.children,
10208 isVisible = _this$props2.isVisible,
10209 variant = _this$props2.variant,
10210 rest = _objectWithoutProperties(_this$props2, ["children", "isVisible", "variant"]);
10211
10212 var arrowAdjustment = this.state.arrowAdjustment;
10213 var direction = this.getDirection();
10214 return React__default.createElement(Portal$1, null, React__default.createElement(CSSTransition, {
10215 in: isVisible,
10216 key: "tooltip-animation",
10217 timeout: 300,
10218 classNames: "open",
10219 onEnter: this.tooltipEnter,
10220 onEntering: this.tooltipEntering,
10221 onExit: this.tooltipExit,
10222 appear: isVisible,
10223 variant: variant
10224 }, React__default.createElement(StyledTooltip, _extends({
10225 ref: this.myRef,
10226 isVisible: isVisible
10227 }, rest, {
10228 direction: direction,
10229 arrowAdjustment: "".concat(arrowAdjustment, "px")
10230 }), children)));
10231 }
10232 }], [{
10233 key: "getDimensionsFromEvent",
10234
10235 /*
10236 * Static function that needs to be called from the parent -> Tooltip.getDimensionsFromEvent
10237 * The parent should pass the click event which will trigger showing the Tooltip.
10238 * By default the Tooltip is shown withing the view port. If we need to show it inside
10239 * certain element we should pass the html element as second parameter.
10240 * The function will return an object that should be provided to the Tooltip as props.
10241 */
10242 value: function getDimensionsFromEvent(e, parent) {
10243 var _e$target$getBounding = e.target.getBoundingClientRect(),
10244 elTop = _e$target$getBounding.top,
10245 elHeight = _e$target$getBounding.height,
10246 elLeft = _e$target$getBounding.left,
10247 elWidth = _e$target$getBounding.width;
10248
10249 var _ref4 = parent && parent.getBoundingClientRect ? parent.getBoundingClientRect() : {},
10250 _ref4$top = _ref4.top,
10251 offsetTop = _ref4$top === void 0 ? 0 : _ref4$top,
10252 _ref4$height = _ref4.height,
10253 clientHeight = _ref4$height === void 0 ? 100000 : _ref4$height,
10254 _ref4$left = _ref4.left,
10255 offsetLeft = _ref4$left === void 0 ? 0 : _ref4$left,
10256 _ref4$width = _ref4.width,
10257 clientWidth = _ref4$width === void 0 ? 100000 : _ref4$width;
10258
10259 return {
10260 elTop: elTop,
10261 elLeft: elLeft,
10262 elWidth: elWidth,
10263 elBottom: elTop + elHeight,
10264 elRight: elLeft + elWidth,
10265 offsetTop: offsetTop,
10266 clientHeight: clientHeight,
10267 offsetLeft: offsetLeft,
10268 clientWidth: clientWidth,
10269 elHorizontalCenter: elLeft + elWidth / 2,
10270 elVerticalCenter: elTop + elHeight / 2
10271 };
10272 }
10273 }]);
10274
10275 return Tooltip;
10276}(Component);
10277
10278Tooltip.propTypes = {
10279 children: PropTypes__default.node.isRequired,
10280 isVisible: PropTypes__default.bool,
10281 direction: PropTypes__default.oneOf(DIRECTIONS),
10282 position: PropTypes__default.shape({
10283 elHorizontalCenter: PropTypes__default.number,
10284 elVerticalCenter: PropTypes__default.number,
10285 elTop: PropTypes__default.number,
10286 elBottom: PropTypes__default.number,
10287 elLeft: PropTypes__default.number
10288 }),
10289 variant: PropTypes__default.oneOf(VARIANTS),
10290 spaceFromMouse: PropTypes__default.number,
10291 reduceTop: PropTypes__default.number,
10292 reduceBottom: PropTypes__default.number,
10293 preferTop: PropTypes__default.bool,
10294 directionChanged: PropTypes__default.func
10295};
10296Tooltip.defaultProps = {
10297 isVisible: false,
10298 direction: AUTO,
10299 variant: LIGHT,
10300 position: {
10301 mouseX: 0,
10302 elTop: 0,
10303 elBottom: 0,
10304 offsetTop: 0,
10305 clientHeight: 0,
10306 offsetLeft: 0,
10307 clientWidth: 0
10308 },
10309 spaceFromMouse: SPACE_FROM_MOUSE,
10310 reduceTop: 0,
10311 reduceBottom: 0,
10312 preferTop: false,
10313 directionChanged: null
10314};
10315Tooltip.displayName = "Tooltip";
10316
10317function _templateObject3$i() {
10318 var data = _taggedTemplateLiteral(["\n padding: 8px;\n .badge + .badge {\n margin-top: 8px;\n }\n"]);
10319
10320 _templateObject3$i = function _templateObject3() {
10321 return data;
10322 };
10323
10324 return data;
10325}
10326
10327function _templateObject2$x() {
10328 var data = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n"]);
10329
10330 _templateObject2$x = function _templateObject2() {
10331 return data;
10332 };
10333
10334 return data;
10335}
10336
10337function _templateObject$L() {
10338 var data = _taggedTemplateLiteral(["\n display: flex;\n\n & .badge {\n margin-left: ", ";\n\n &:first-child,\n &.hidden {\n margin-left: 0;\n }\n\n &.hidden {\n margin-top: ", ";\n :first-child {\n margin-top: 0;\n }\n }\n }\n"]);
10339
10340 _templateObject$L = function _templateObject() {
10341 return data;
10342 };
10343
10344 return data;
10345}
10346var StatusBadgeContainer = styled.div(_templateObject$L(), spacing.cozy, spacing.cozy);
10347var HiddenBadgesCount = styled(StyledBadge$1)(_templateObject2$x(), themes.global.transparent, themes.global.onyx.light);
10348var BadgeTooltip = styled(Tooltip)(_templateObject3$i());
10349
10350var StatusBadgeGroup =
10351/*#__PURE__*/
10352function (_Component) {
10353 _inherits(StatusBadgeGroup, _Component);
10354
10355 function StatusBadgeGroup() {
10356 var _getPrototypeOf2;
10357
10358 var _this;
10359
10360 _classCallCheck(this, StatusBadgeGroup);
10361
10362 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10363 args[_key] = arguments[_key];
10364 }
10365
10366 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StatusBadgeGroup)).call.apply(_getPrototypeOf2, [this].concat(args)));
10367
10368 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
10369 isOpen: false
10370 });
10371
10372 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mouseLeave", function (e) {
10373 e.stopPropagation();
10374 document.body.removeEventListener("touchstart", _this.mouseLeave);
10375
10376 _this.setState(function () {
10377 return {
10378 isOpen: false
10379 };
10380 });
10381 });
10382
10383 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "elementHovered", function (e) {
10384 var data = Tooltip.getDimensionsFromEvent(e); // on some devices both onMouseEnter and onTouchStart would be triggered
10385 // it needs to be checked
10386
10387 _this.setState(function (state) {
10388 if (state.isOpen) {
10389 return state;
10390 }
10391
10392 document.body.addEventListener("touchstart", _this.mouseLeave);
10393 return _objectSpread({
10394 isOpen: true
10395 }, data);
10396 });
10397 });
10398
10399 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderBadges", function (badges, variant, additionalClass) {
10400 return badges.map(function (item) {
10401 return React__default.createElement(StatusBadge, _extends({
10402 className: additionalClass
10403 }, item, {
10404 variant: variant,
10405 key: item.label
10406 }));
10407 });
10408 });
10409
10410 return _this;
10411 }
10412
10413 _createClass(StatusBadgeGroup, [{
10414 key: "componentWillUnmount",
10415 value: function componentWillUnmount() {
10416 document.body.removeEventListener("touchstart", this.mouseLeave);
10417 }
10418 }, {
10419 key: "render",
10420 value: function render() {
10421 var _this$props = this.props,
10422 visibleBadges = _this$props.visibleBadges,
10423 hiddenBadges = _this$props.hiddenBadges,
10424 tooltipDirection = _this$props.tooltipDirection,
10425 variant = _this$props.variant;
10426
10427 var _this$state = this.state,
10428 isOpen = _this$state.isOpen,
10429 position = _objectWithoutProperties(_this$state, ["isOpen"]);
10430
10431 return React__default.createElement(StatusBadgeContainer, null, this.renderBadges(visibleBadges, variant), hiddenBadges && hiddenBadges.length > 0 && React__default.createElement(HiddenBadgesCount, {
10432 onMouseEnter: this.elementHovered,
10433 onMouseLeave: this.mouseLeave,
10434 onTouchStart: this.elementHovered
10435 }, "+".concat(hiddenBadges.length, " more")), React__default.createElement(BadgeTooltip, {
10436 direction: tooltipDirection,
10437 position: _objectSpread({}, position),
10438 isVisible: isOpen
10439 }, this.renderBadges(hiddenBadges, variant, "hidden")));
10440 }
10441 }]);
10442
10443 return StatusBadgeGroup;
10444}(Component);
10445
10446_defineProperty(StatusBadgeGroup, "propTypes", {
10447 variant: PropTypes__default.oneOf(VARIANTS),
10448 visibleBadges: PropTypes__default.arrayOf(PropTypes__default.shape(badgeProps)),
10449 hiddenBadges: PropTypes__default.arrayOf(PropTypes__default.shape(badgeProps)),
10450 tooltipDirection: PropTypes__default.oneOf(DIRECTIONS)
10451});
10452
10453_defineProperty(StatusBadgeGroup, "defaultProps", {
10454 variant: DARK,
10455 visibleBadges: [],
10456 hiddenBadges: [],
10457 tooltipDirection: "bottom"
10458});
10459
10460function _templateObject$M() {
10461 var data = _taggedTemplateLiteral(["\n text-transform: uppercase;\n"]);
10462
10463 _templateObject$M = function _templateObject() {
10464 return data;
10465 };
10466
10467 return data;
10468}
10469var LabelText = styled(TextBase)(_templateObject$M());
10470
10471var BottomSheetLabel = function BottomSheetLabel(_ref) {
10472 var variant = _ref.variant,
10473 children = _ref.children,
10474 restProps = _objectWithoutProperties(_ref, ["variant", "children"]);
10475
10476 if (!children) {
10477 return null;
10478 }
10479
10480 var StatusBadgeColor = getLabelTextColor({
10481 variant: variant
10482 });
10483
10484 if (StatusBadgeColor !== "inherit") {
10485 return React__default.createElement(StatusBadge, _extends({}, restProps, {
10486 label: children,
10487 color: StatusBadgeColor
10488 }));
10489 }
10490
10491 return React__default.createElement(LabelText, _extends({}, restProps, {
10492 primary: true
10493 }), " ", children);
10494};
10495
10496BottomSheetLabel.defaultProps = {
10497 variant: "default",
10498 children: ""
10499};
10500BottomSheetLabel.propTypes = {
10501 variant: PropTypes__default.oneOf(["default", "positive", "alert", "accent", "caution", "neutral"]),
10502 children: PropTypes__default.string
10503};
10504
10505function _templateObject4$f() {
10506 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: ", ";\n right: ", ";\n padding: 0;\n"]);
10507
10508 _templateObject4$f = function _templateObject4() {
10509 return data;
10510 };
10511
10512 return data;
10513}
10514
10515function _templateObject3$j() {
10516 var data = _taggedTemplateLiteral(["\n padding-left: ", ";\n\n &.row__button--cancel {\n padding-right: calc(", " + ", "px);\n }\n "]);
10517
10518 _templateObject3$j = function _templateObject3() {
10519 return data;
10520 };
10521
10522 return data;
10523}
10524
10525function _templateObject2$y() {
10526 var data = _taggedTemplateLiteral(["\n position: relative;\n padding: ", " ", " 0;\n align-items: center;\n\n &.row__button--cancel {\n padding-right: calc(", " + ", "px);\n min-height: calc(", " + ", "px);\n }\n\n ", ";\n"]);
10527
10528 _templateObject2$y = function _templateObject2() {
10529 return data;
10530 };
10531
10532 return data;
10533}
10534
10535function _templateObject$N() {
10536 var data = _taggedTemplateLiteral(["\n background-color: white;\n width: 100%;\n z-index: 8;\n max-height: calc(100% - 60px);\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n position: fixed;\n bottom: 0;\n left: 0;\n padding-right: ", ";\n padding-left: ", ";\n\n .bottom-sheet-enter & {\n transform: translateY(100%);\n }\n\n .bottom-sheet-leave &,\n .bottom-sheet-exit & {\n transform: translateY(0);\n }\n\n .bottom-sheet-appear & {\n transform: translateY(100%);\n }\n\n .bottom-sheet-enter.bottom-sheet-enter-active & {\n transform: translateY(0);\n transition: transform 300ms ease-in-out;\n }\n\n .bottom-sheet-leave.bottom-sheet-leave-active &,\n .bottom-sheet-exit.bottom-sheet-exit-active & {\n transform: translateY(100%);\n transition: transform 300ms ease-in-out;\n }\n\n .bottom-sheet-appear.bottom-sheet-appear-active & {\n transform: translateY(0);\n transition: transform 300ms ease-in-out;\n }\n"]);
10537
10538 _templateObject$N = function _templateObject() {
10539 return data;
10540 };
10541
10542 return data;
10543}
10544
10545var noop = function noop() {};
10546
10547var CANCEL_BUTTON_SIZE = 28;
10548var CANCEL_BUTTON_ICON_SIZE = Math.floor(CANCEL_BUTTON_SIZE / 2);
10549var BottomSheetContent = styled.div(_templateObject$N(), constants.borderRadius.large, constants.borderRadius.large, spacing.cozy, spacing.cozy);
10550var HeaderRow = styled(Row)(_templateObject2$y(), spacing.moderate, spacing.normal, spacing.normal, CANCEL_BUTTON_SIZE, spacing.moderate, CANCEL_BUTTON_SIZE, mediumAndUp(_templateObject3$j(), spacing.comfy, spacing.comfy, CANCEL_BUTTON_SIZE));
10551var CancelButton = styled(IconButton)(_templateObject4$f(), spacing.moderate, spacing.moderate);
10552
10553var BottomSheet = function BottomSheet(_ref) {
10554 var label = _ref.label,
10555 labelVariant = _ref.labelVariant,
10556 withCancelBtn = _ref.withCancelBtn,
10557 withHeader = _ref.withHeader,
10558 children = _ref.children,
10559 props = _objectWithoutProperties(_ref, ["label", "labelVariant", "withCancelBtn", "withHeader", "children"]);
10560
10561 return React__default.createElement(Consumer$3, null, function (backdropValue) {
10562 return React__default.createElement(BottomSheetContent // this class name is for automation purposes please do not remove or modify the name
10563 , _extends({
10564 className: "content__bottom-sheet",
10565 ref: backdropValue ? backdropValue.childRef : null,
10566 role: "dialog",
10567 "aria-modal": true
10568 }, props), withHeader && React__default.createElement(HeaderRow, {
10569 className: classNames("row__header", {
10570 "row__button--cancel": withCancelBtn // this class name is for automation purposes please do not remove or modify the name
10571
10572 })
10573 }, React__default.createElement(BottomSheetLabel, {
10574 variant: labelVariant
10575 }, label), withCancelBtn && React__default.createElement(Consumer$1, null, function (value) {
10576 return React__default.createElement(CancelButton, {
10577 className: "button--cancel",
10578 size: CANCEL_BUTTON_SIZE,
10579 "aria-label": "Close BottomSheet",
10580 role: "button",
10581 onClick: value ? value.onCloseRequest : noop
10582 }, React__default.createElement(CrossIcon, {
10583 size: CANCEL_BUTTON_ICON_SIZE,
10584 style: {
10585 pointerEvent: "none"
10586 },
10587 color: themes.global.onyx.base
10588 }));
10589 })), children);
10590 });
10591};
10592
10593BottomSheet.defaultProps = {
10594 label: BottomSheetLabel.defaultProps.children,
10595 labelVariant: BottomSheetLabel.defaultProps.variant,
10596 withCancelBtn: true,
10597 withHeader: true,
10598 children: null
10599};
10600BottomSheet.propTypes = {
10601 label: BottomSheetLabel.propTypes.children,
10602 labelVariant: BottomSheetLabel.propTypes.variant,
10603 withCancelBtn: PropTypes__default.bool,
10604 withHeader: PropTypes__default.bool,
10605 children: PropTypes__default.node
10606};
10607
10608function _templateObject3$k() {
10609 var data = _taggedTemplateLiteral(["\n justify-content: flex-end;\n align-items: flex-end;\n padding-right: ", ";\n"]);
10610
10611 _templateObject3$k = function _templateObject3() {
10612 return data;
10613 };
10614
10615 return data;
10616}
10617
10618function _templateObject2$z() {
10619 var data = _taggedTemplateLiteral(["\n padding: ", ";\n"]);
10620
10621 _templateObject2$z = function _templateObject2() {
10622 return data;
10623 };
10624
10625 return data;
10626}
10627
10628function _templateObject$O() {
10629 var data = _taggedTemplateLiteral(["\n width: fit-content;\n min-width: 400px;\n max-width: 640px;\n position: relative;\n background-color: ", ";\n border-radius: ", ";\n box-shadow: 0 16px 16px 0 rgba(0, 0, 0, 0.06), 0 0 16px 0 rgba(0, 0, 0, 0.12);\n border: solid 1px rgba(0, 0, 0, 0.04);\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n max-height: calc(100% - 96px);\n z-index: 100;\n .modal-enter & {\n opacity: 0;\n transform: scale(0.7);\n }\n .modal-leave &,\n .modal-exit & {\n opacity: 1;\n transform: scale(1);\n }\n .modal-appear & {\n opacity: 0;\n transform: scale(0.7);\n }\n .modal-enter.modal-enter-active & {\n opacity: 1;\n transform: scale(1);\n transition: all 0.3s ease-in-out;\n }\n .modal-leave.modal-leave-active &,\n .modal-exit.modal-exit-active & {\n opacity: 0;\n transition: all 0.1s ease-in-out;\n transform: scale(0.7);\n }\n .modal-appear.modal-appear-active & {\n opacity: 1;\n transform: scale(1);\n transition: all 0.3s ease-in-out;\n }\n"]);
10630
10631 _templateObject$O = function _templateObject() {
10632 return data;
10633 };
10634
10635 return data;
10636}
10637var ModalContainer = styled.div(_templateObject$O(), themes.global.white.base, constants.borderRadius.large);
10638var ModalContent = styled.div(_templateObject2$z(), function (props) {
10639 return props.padding ? props.padding : "0 ".concat(spacing.comfy, " ").concat(spacing.comfy);
10640});
10641var CancelButtonContainer = styled(Row)(_templateObject3$k(), spacing.moderate);
10642
10643var Modal = function Modal(_ref) {
10644 var children = _ref.children,
10645 containerProps = _ref.containerProps,
10646 contentProps = _ref.contentProps,
10647 props = _objectWithoutProperties(_ref, ["children", "containerProps", "contentProps"]);
10648
10649 return React__default.createElement(Consumer$3, null, function (backdropValue) {
10650 return React__default.createElement(ModalContainer, _extends({
10651 small: 4,
10652 role: "dialog",
10653 "aria-modal": true,
10654 ref: backdropValue ? backdropValue.childRef : null
10655 }, containerProps), props.withCloseIcon && React__default.createElement(CancelButtonContainer, null, React__default.createElement(Consumer$1, null, function (value) {
10656 return React__default.createElement(IconButton, {
10657 className: "button--close",
10658 size: 45,
10659 "aria-label": "Close Modal",
10660 role: "button",
10661 onClick: value ? value.onCloseRequest : function () {}
10662 }, React__default.createElement(CrossIcon, {
10663 size: 12,
10664 style: {
10665 pointerEvent: "none"
10666 },
10667 color: themes.global.onyx.base
10668 }));
10669 })), React__default.createElement(ModalContent, contentProps, children));
10670 });
10671};
10672
10673Modal.defaultProps = {
10674 children: null,
10675 withCloseIcon: true,
10676 containerProps: null,
10677 contentProps: null
10678};
10679Modal.propTypes = {
10680 children: PropTypes__default.node,
10681 withCloseIcon: PropTypes__default.bool,
10682 containerProps: PropTypes__default.shape({}),
10683 contentProps: PropTypes__default.shape({})
10684};
10685
10686var updateOpenIndexSingle = function updateOpenIndexSingle(openIndex, dataIndex) {
10687 if (openIndex === dataIndex) return -1;
10688 return dataIndex;
10689};
10690var updateOpenIndexMultiple = function updateOpenIndexMultiple(openIndex, dataIndex) {
10691 var openIndexArr = Array.isArray(openIndex) ? openIndex : [];
10692 var currentOpenDataIndex = openIndexArr.indexOf(dataIndex);
10693 if (currentOpenDataIndex === -1) return openIndexArr.concat([dataIndex]);
10694 if (currentOpenDataIndex === 0) return openIndexArr.slice(1);
10695 var openIndexArrLen = openIndexArr.length;
10696 if (currentOpenDataIndex === openIndexArrLen - 1) return openIndexArr.slice(0, openIndexArrLen - 1);
10697 return openIndexArr.slice(0, currentOpenDataIndex).concat(openIndexArr.slice(currentOpenDataIndex + 1));
10698};
10699var updateOpenIndex = function updateOpenIndex(expandMultiple, openIndex, dataIndex) {
10700 return expandMultiple ? updateOpenIndexMultiple(openIndex, dataIndex) : updateOpenIndexSingle(openIndex, dataIndex);
10701};
10702var determineIfOpen = function determineIfOpen(expandMultiple, openIndex, index) {
10703 return expandMultiple ? Array.isArray(openIndex) && openIndex.includes(index) : openIndex === index;
10704};
10705
10706function _templateObject$P() {
10707 var data = _taggedTemplateLiteral(["\n width: 100%;\n"]);
10708
10709 _templateObject$P = function _templateObject() {
10710 return data;
10711 };
10712
10713 return data;
10714}
10715
10716var noop$1 = function noop() {};
10717
10718var Container$6 = styled.div(_templateObject$P());
10719var ITEMS_COLLAPSED = -1;
10720
10721var ListContainer =
10722/*#__PURE__*/
10723function (_Component) {
10724 _inherits(ListContainer, _Component);
10725
10726 function ListContainer() {
10727 var _getPrototypeOf2;
10728
10729 var _this;
10730
10731 _classCallCheck(this, ListContainer);
10732
10733 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10734 args[_key] = arguments[_key];
10735 }
10736
10737 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ListContainer)).call.apply(_getPrototypeOf2, [this].concat(args)));
10738
10739 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
10740 openIndex: ITEMS_COLLAPSED,
10741 expandMultiple: _this.props.expandMultiple,
10742 mobilePortalContent: null,
10743 desktopPortalContent: null,
10744 portalContentData: null
10745 });
10746
10747 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onCloseRequest", function () {
10748 if (_this.state.desktopPortalContent) {
10749 _this.setState({
10750 desktopPortalContent: null
10751 });
10752
10753 _this.props.onModalClose();
10754 }
10755
10756 if (_this.state.mobilePortalContent) {
10757 _this.setState({
10758 openIndex: ITEMS_COLLAPSED
10759 });
10760
10761 _this.props.onRowCollapse();
10762 }
10763 });
10764
10765 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onExpandOrCollapse", function (event) {
10766 var _event$target = event.target,
10767 className = _event$target.className,
10768 dataset = _event$target.dataset;
10769 var index = dataset.index;
10770
10771 if (!className || className.constructor !== String) {
10772 return null;
10773 }
10774
10775 if (className.includes("button--expand-or-collapse") || className.includes("button--more-info") || className.includes("link--row-options") && !determineIfOpen(_this.state.expandMultiple, _this.state.openIndex, parseInt(index, 10))) {
10776 event.preventDefault();
10777 var _this$state = _this.state,
10778 openIndex = _this$state.openIndex,
10779 expandMultiple = _this$state.expandMultiple;
10780 var dataIndex = parseInt(index, 10);
10781
10782 if (dataIndex > -1) {
10783 return _this.setState({
10784 openIndex: updateOpenIndex(expandMultiple, openIndex, dataIndex)
10785 });
10786 }
10787 }
10788
10789 return null;
10790 });
10791
10792 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "resetOpenIndex", function () {
10793 return _this.setState({
10794 openIndex: ITEMS_COLLAPSED
10795 });
10796 });
10797
10798 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderIntoPortal", function (_ref) {
10799 var children = _ref.children,
10800 contentType = _ref.contentType,
10801 portalContentData = _ref.data;
10802 return contentType === "mobile" ? _this.setState({
10803 mobilePortalContent: children,
10804 portalContentData: portalContentData
10805 }) : _this.setState({
10806 desktopPortalContent: children,
10807 portalContentData: portalContentData
10808 });
10809 });
10810
10811 return _this;
10812 }
10813
10814 _createClass(ListContainer, [{
10815 key: "render",
10816 value: function render() {
10817 var _this$props = this.props,
10818 children = _this$props.children,
10819 rest = _objectWithoutProperties(_this$props, ["children"]);
10820
10821 var _this$state2 = this.state,
10822 mobilePortalContent = _this$state2.mobilePortalContent,
10823 desktopPortalContent = _this$state2.desktopPortalContent,
10824 openIndex = _this$state2.openIndex,
10825 portalContentData = _this$state2.portalContentData;
10826 var isBottomSheetOpen = openIndex !== ITEMS_COLLAPSED && !!mobilePortalContent;
10827
10828 var _ref2 = portalContentData || {},
10829 label = _ref2.label,
10830 labelVariant = _ref2.labelVariant;
10831
10832 var ContainerProviderValue = _objectSpread({}, this.state, {
10833 onCloseRequest: this.onCloseRequest,
10834 renderIntoPortal: this.renderIntoPortal,
10835 resetOpenIndex: this.resetOpenIndex
10836 });
10837
10838 return React__default.createElement(Container$6, _extends({
10839 onClick: this.onExpandOrCollapse
10840 }, rest), React__default.createElement(Provider$1, {
10841 value: ContainerProviderValue
10842 }, children, React__default.createElement(DisplayFor, {
10843 small: true
10844 }, React__default.createElement(Portal, null, React__default.createElement(CSSTransition, {
10845 classNames: "bottom-sheet",
10846 timeout: 300,
10847 in: isBottomSheetOpen,
10848 appear: true,
10849 unmountOnExit: true,
10850 mountOnEnter: true
10851 }, React__default.createElement(Backdrop, null, React__default.createElement(BottomSheet, {
10852 index: openIndex,
10853 label: label,
10854 labelVariant: labelVariant
10855 }, mobilePortalContent))))), React__default.createElement(DisplayFor, {
10856 medium: true,
10857 large: true,
10858 xLarge: true
10859 }, React__default.createElement(Portal, null, React__default.createElement(CSSTransition, {
10860 classNames: "modal",
10861 timeout: {
10862 enter: 300,
10863 exit: 100
10864 },
10865 in: !!desktopPortalContent,
10866 appear: true,
10867 unmountOnExit: true,
10868 mountOnEnter: true
10869 }, React__default.createElement(Backdrop, null, React__default.createElement(Modal, null, desktopPortalContent)))))));
10870 }
10871 }]);
10872
10873 return ListContainer;
10874}(Component);
10875
10876ListContainer.defaultProps = {
10877 onRowCollapse: noop$1,
10878 onModalClose: noop$1,
10879 expandMultiple: false
10880};
10881ListContainer.propTypes = {
10882 children: PropTypes__default.node.isRequired,
10883 onRowCollapse: PropTypes__default.func,
10884 onModalClose: PropTypes__default.func,
10885 expandMultiple: PropTypes__default.bool
10886};
10887
10888var ROW_CONTAINER_VERTICAL_PADDING = "12px";
10889var ROW_LINK_VERTICAL_PADDING = "2px";
10890var ROW_LINK_HORIZONTAL_PADDING = "4px";
10891var ROW_DATE_SMALL_WIDTH = "121px";
10892var ROW_DATE_MEDIUM_WIDTH = "136px";
10893var ROW_LABEL_AND_LINK_PADDING_LEFT = {
10894 xSmall: ROW_DATE_SMALL_WIDTH,
10895 medium: "181px",
10896 large: "183px"
10897};
10898var ROW_BUTTON_WIDTH = "102px";
10899var CHEVRON_ICON_SIZE = 15;
10900var CHEVRON_ICON_PADDING = spacing.moderate;
10901var staticProps = {
10902 defaultResponsiveSize: {
10903 xSmall: "hecto",
10904 medium: "kilo"
10905 }
10906};
10907
10908function _templateObject3$l() {
10909 var data = _taggedTemplateLiteral(["\n display: block;\n &.button--expanded,\n &.button--collapsed {\n transition: all 0.1s linear;\n }\n &.button--expanded {\n transform: rotate(-180deg);\n }\n "]);
10910
10911 _templateObject3$l = function _templateObject3() {
10912 return data;
10913 };
10914
10915 return data;
10916}
10917
10918function _templateObject2$A() {
10919 var data = _taggedTemplateLiteral(["\n display: none;\n\n ", ";\n"]);
10920
10921 _templateObject2$A = function _templateObject2() {
10922 return data;
10923 };
10924
10925 return data;
10926}
10927
10928function _templateObject$Q() {
10929 var data = _taggedTemplateLiteral(["\n border: 0;\n padding: 0 ", ";\n outline: 0;\n background: transparent;\n appearance: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:focus {\n outline: none;\n }\n\n &.icon-button--last {\n padding-left: ", ";\n padding-right: 0;\n }\n\n > * {\n pointer-events: none;\n }\n"]);
10930
10931 _templateObject$Q = function _templateObject() {
10932 return data;
10933 };
10934
10935 return data;
10936}
10937var IconButton$1 = styled.button.attrs({
10938 role: "button",
10939 type: "button"
10940})(_templateObject$Q(), CHEVRON_ICON_PADDING, spacing.moderate);
10941var IconWrapper = styled(IconButton$1).attrs({
10942 size: 45
10943})(_templateObject2$A(), mediumAndUp(_templateObject3$l()));
10944
10945var RowToggler =
10946/*#__PURE__*/
10947function (_React$PureComponent) {
10948 _inherits(RowToggler, _React$PureComponent);
10949
10950 function RowToggler() {
10951 var _getPrototypeOf2;
10952
10953 var _this;
10954
10955 _classCallCheck(this, RowToggler);
10956
10957 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10958 args[_key] = arguments[_key];
10959 }
10960
10961 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RowToggler)).call.apply(_getPrototypeOf2, [this].concat(args)));
10962
10963 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleClick", function () {
10964 var _this$props = _this.props,
10965 isOpen = _this$props.isOpen,
10966 index = _this$props.index,
10967 onExpandItem = _this$props.onExpandItem,
10968 onCollapseItem = _this$props.onCollapseItem;
10969
10970 if (isOpen) {
10971 onCollapseItem({
10972 index: index
10973 });
10974 } else {
10975 onExpandItem({
10976 index: index
10977 });
10978 }
10979 });
10980
10981 return _this;
10982 }
10983
10984 _createClass(RowToggler, [{
10985 key: "render",
10986 value: function render() {
10987 var _this$props2 = this.props,
10988 isOpen = _this$props2.isOpen,
10989 index = _this$props2.index;
10990 return React__default.createElement(IconWrapper, {
10991 "aria-label": isOpen ? "Collapse Row" : "Expand Row",
10992 "aria-expanded": isOpen,
10993 "data-index": index,
10994 className: classNames("button--expand-or-collapse", {
10995 "button--expanded": isOpen,
10996 "button--collapsed": !isOpen
10997 }),
10998 onClick: this.handleClick
10999 }, React__default.createElement(ChevronIcon, {
11000 size: CHEVRON_ICON_SIZE,
11001 color: themes.global.darkFill
11002 }));
11003 }
11004 }]);
11005
11006 return RowToggler;
11007}(React__default.PureComponent);
11008
11009_defineProperty(RowToggler, "propTypes", {
11010 isOpen: PropTypes__default.bool.isRequired,
11011 index: PropTypes__default.number.isRequired,
11012
11013 /**
11014 * Property onExpandItem is called whenever user clicks chevron on the collapsed item
11015 */
11016 onExpandItem: PropTypes__default.func,
11017
11018 /**
11019 * Property onCollapseItem is called whenever user clicks chevron on the expanded item
11020 */
11021 onCollapseItem: PropTypes__default.func
11022});
11023
11024_defineProperty(RowToggler, "defaultProps", {
11025 onExpandItem: function onExpandItem() {},
11026 onCollapseItem: function onCollapseItem() {}
11027});
11028
11029function _templateObject9$2() {
11030 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"]);
11031
11032 _templateObject9$2 = function _templateObject9() {
11033 return data;
11034 };
11035
11036 return data;
11037}
11038
11039function _templateObject8$3() {
11040 var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n overflow: hidden;\n\n &.row__label--hidden {\n transition: opacity 0.1s ", ";\n opacity: 0;\n }\n\n &.row__label--active {\n transition: opacity 0.3s ", " 0.2s;\n opacity: 1;\n }\n\n &.row__label--expanded {\n position: absolute;\n top: 0;\n left: 50%;\n max-width: 100%;\n transform: translateX(-50%);\n }\n "]);
11041
11042 _templateObject8$3 = function _templateObject8() {
11043 return data;
11044 };
11045
11046 return data;
11047}
11048
11049function _templateObject7$4() {
11050 var data = _taggedTemplateLiteral(["\n display: none;\n\n ", ";\n"]);
11051
11052 _templateObject7$4 = function _templateObject7() {
11053 return data;
11054 };
11055
11056 return data;
11057}
11058
11059function _templateObject6$6() {
11060 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
11061
11062 _templateObject6$6 = function _templateObject6() {
11063 return data;
11064 };
11065
11066 return data;
11067}
11068
11069function _templateObject5$8() {
11070 var data = _taggedTemplateLiteral(["\n display: inline-block;\n max-width: 100%;\n\n ", ";\n"]);
11071
11072 _templateObject5$8 = function _templateObject5() {
11073 return data;
11074 };
11075
11076 return data;
11077}
11078
11079function _templateObject4$g() {
11080 var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]);
11081
11082 _templateObject4$g = function _templateObject4() {
11083 return data;
11084 };
11085
11086 return data;
11087}
11088
11089function _templateObject3$m() {
11090 var data = _taggedTemplateLiteral(["\n padding-left: ", ""]);
11091
11092 _templateObject3$m = function _templateObject3() {
11093 return data;
11094 };
11095
11096 return data;
11097}
11098
11099function _templateObject2$B() {
11100 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: calc(", " - ", "px);\n font-size: ", ";\n "]);
11101
11102 _templateObject2$B = function _templateObject2() {
11103 return data;
11104 };
11105
11106 return data;
11107}
11108
11109function _templateObject$R() {
11110 var data = _taggedTemplateLiteral(["\n width: 100%;\n padding-left: ", ";\n padding-top: ", ";\n\n font-size: 11px;\n\n ", ";\n ", ";\n"]);
11111
11112 _templateObject$R = function _templateObject() {
11113 return data;
11114 };
11115
11116 return data;
11117}
11118var rowMarginRight = spacing.gutters.small / 2;
11119var Content$2 = styled(Row)(_templateObject$R(), ROW_LABEL_AND_LINK_PADDING_LEFT.xSmall, spacing.cozy, mediumAndUp(_templateObject2$B(), ROW_CONTAINER_VERTICAL_PADDING, ROW_LABEL_AND_LINK_PADDING_LEFT.medium, ROW_BUTTON_WIDTH, rowMarginRight, typography.size.hecto), largeAndUp(_templateObject3$m(), ROW_LABEL_AND_LINK_PADDING_LEFT.large));
11120var ContentColumn = styled(Column)(_templateObject4$g());
11121var MobileWrapper = styled.div(_templateObject5$8(), mediumAndUp(_templateObject6$6()));
11122var DesktopWrapper = styled.div(_templateObject7$4(), mediumAndUp(_templateObject8$3(), constants.easing.easeInQuad, constants.easing.easeInOutQuad));
11123var LabelText$1 = styled(TextBase)(_templateObject9$2(), typography.size.uno, typography.weight.semiBold, function (_ref) {
11124 var sentiment = _ref.sentiment;
11125 return getLabelTextColor({
11126 variant: sentiment
11127 });
11128});
11129
11130var renderLabel = function renderLabel(label, variant) {
11131 switch (variant) {
11132 case "alert":
11133 return React__default.createElement(StatusBadge, {
11134 label: label,
11135 color: themes.global.error.base
11136 });
11137
11138 case "positive":
11139 return React__default.createElement(LabelText$1, {
11140 primary: true,
11141 sentiment: "positive",
11142 variant: "accent"
11143 }, label);
11144
11145 case "accent":
11146 return React__default.createElement(LabelText$1, {
11147 primary: true,
11148 sentiment: "accent",
11149 variant: "accent"
11150 }, label);
11151
11152 case "caution":
11153 return React__default.createElement(StatusBadge, {
11154 label: label,
11155 color: themes.global.caution.dark
11156 });
11157
11158 case "neutral":
11159 return React__default.createElement(StatusBadge, {
11160 label: label,
11161 color: themes.global.onyx.light
11162 });
11163
11164 default:
11165 return React__default.createElement(LabelText$1, {
11166 primary: true
11167 }, label);
11168 }
11169};
11170
11171var RowLabel = function RowLabel(_ref2) {
11172 var isOpen = _ref2.isOpen,
11173 index = _ref2.index,
11174 variant = _ref2.variant,
11175 children = _ref2.children,
11176 restProps = _objectWithoutProperties(_ref2, ["isOpen", "index", "variant", "children"]);
11177
11178 if (!children) {
11179 return null;
11180 }
11181
11182 var content = renderLabel(children, variant);
11183 return React__default.createElement(Content$2, _extends({
11184 className: "row__content--top"
11185 }, restProps), React__default.createElement(ContentColumn, null, React__default.createElement(MobileWrapper, {
11186 className: "row__label row__label--mobile",
11187 "data-index": index
11188 }, content), React__default.createElement(DesktopWrapper, {
11189 key: "collapsed",
11190 "data-index": index,
11191 className: classNames("row__label", "row__label--desktop", {
11192 "row__label--active": !isOpen,
11193 "row__label--hidden": isOpen
11194 })
11195 }, content), React__default.createElement(DesktopWrapper, {
11196 key: "expanded",
11197 "data-index": index,
11198 className: classNames("row__label", "row__label--expanded", "row__label--desktop", {
11199 "row__label--active": isOpen,
11200 "row__label--hidden": !isOpen
11201 })
11202 }, content)));
11203};
11204
11205RowLabel.defaultProps = {
11206 index: 0,
11207 variant: "default",
11208 isOpen: false,
11209 children: ""
11210};
11211RowLabel.propTypes = {
11212 index: PropTypes__default.number,
11213 variant: PropTypes__default.oneOf(["default", "positive", "alert", "accent", "caution", "neutral"]),
11214 isOpen: PropTypes__default.bool,
11215 children: PropTypes__default.string
11216};
11217
11218var rowDataShape = {
11219 title: PropTypes__default.string.isRequired,
11220 subTitle: PropTypes__default.string.isRequired,
11221 dateTitle: PropTypes__default.string.isRequired,
11222 url: PropTypes__default.string,
11223 dateSubTitle: PropTypes__default.string.isRequired,
11224 buttonText: PropTypes__default.string.isRequired,
11225 buttonVariant: PropTypes__default.oneOf(BUTTON_VARIANTS),
11226 variant: PropTypes__default.oneOf(["standard", "withLink"]).isRequired,
11227 label: RowLabel.propTypes.children,
11228 labelVariant: RowLabel.propTypes.variant,
11229 linkTitle: PropTypes__default.string,
11230 linkUrl: PropTypes__default.string,
11231 linkSubTitle: PropTypes__default.string,
11232 dateColor: PropTypes__default.string,
11233 onClick: PropTypes__default.func.isRequired
11234};
11235var sectionItemShape = {
11236 title: PropTypes__default.string.isRequired,
11237 items: PropTypes__default.arrayOf(PropTypes__default.shape({
11238 title: PropTypes__default.string,
11239 subTitle: PropTypes__default.string,
11240 icon: PropTypes__default.node.isRequired,
11241 onItemClick: PropTypes__default.func
11242 })).isRequired
11243};
11244
11245function _templateObject7$5() {
11246 var data = _taggedTemplateLiteral(["\n display: inline-block;\n \n &.link--hidden {\n opacity 0;\n transition: opacity 0.1s ", ";\n }\n "]);
11247
11248 _templateObject7$5 = function _templateObject7() {
11249 return data;
11250 };
11251
11252 return data;
11253}
11254
11255function _templateObject6$7() {
11256 var data = _taggedTemplateLiteral(["\n display: none;\n line-height: 1.1;\n opacity: 1;\n transition: opacity 0.3s ", " 0.2s;\n\n ", ";\n"]);
11257
11258 _templateObject6$7 = function _templateObject6() {
11259 return data;
11260 };
11261
11262 return data;
11263}
11264
11265function _templateObject5$9() {
11266 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
11267
11268 _templateObject5$9 = function _templateObject5() {
11269 return data;
11270 };
11271
11272 return data;
11273}
11274
11275function _templateObject4$h() {
11276 var data = _taggedTemplateLiteral(["\n display: inline-block;\n line-height: 1.1;\n\n ", ";\n"]);
11277
11278 _templateObject4$h = function _templateObject4() {
11279 return data;
11280 };
11281
11282 return data;
11283}
11284
11285function _templateObject3$n() {
11286 var data = _taggedTemplateLiteral(["\n padding-left: ", ""]);
11287
11288 _templateObject3$n = function _templateObject3() {
11289 return data;
11290 };
11291
11292 return data;
11293}
11294
11295function _templateObject2$C() {
11296 var data = _taggedTemplateLiteral(["\n padding-bottom: ", ";\n padding-left: ", ";\n "]);
11297
11298 _templateObject2$C = function _templateObject2() {
11299 return data;
11300 };
11301
11302 return data;
11303}
11304
11305function _templateObject$S() {
11306 var data = _taggedTemplateLiteral(["\n width: 100%;\n padding-left: ", ";\n padding-bottom: ", ";\n\n ", ";\n ", ";\n"]);
11307
11308 _templateObject$S = function _templateObject() {
11309 return data;
11310 };
11311
11312 return data;
11313}
11314var Content$3 = styled(Row)(_templateObject$S(), ROW_LABEL_AND_LINK_PADDING_LEFT.xSmall, spacing.cozy, mediumAndUp(_templateObject2$C(), ROW_CONTAINER_VERTICAL_PADDING, ROW_LABEL_AND_LINK_PADDING_LEFT.medium), largeAndUp(_templateObject3$n(), ROW_LABEL_AND_LINK_PADDING_LEFT.large));
11315var MobileLink = styled(Link)(_templateObject4$h(), mediumAndUp(_templateObject5$9()));
11316var DesktopLink = styled(Link)(_templateObject6$7(), constants.easing.easeInOutQuad, mediumAndUp(_templateObject7$5(), constants.easing.easeInQuad));
11317
11318var RowOptionsLink = function RowOptionsLink(_ref) {
11319 var variant = _ref.variant,
11320 isOpen = _ref.isOpen,
11321 url = _ref.url,
11322 index = _ref.index,
11323 onClick = _ref.onClick,
11324 children = _ref.children;
11325 return variant === "withLink" && React__default.createElement(Content$3, {
11326 className: "row__content--bottom"
11327 }, React__default.createElement(Column, null, React__default.createElement(MobileLink, {
11328 linkUrl: url,
11329 "data-index": index,
11330 onClick: onClick,
11331 className: "link--row-options"
11332 }, children), React__default.createElement(DesktopLink, {
11333 href: url,
11334 "data-index": index,
11335 className: classNames({
11336 "link--row-options": !url.length,
11337 "link--hidden": isOpen
11338 })
11339 }, children)));
11340};
11341
11342RowOptionsLink.defaultProps = {
11343 index: 0,
11344 isOpen: false,
11345 variant: "",
11346 url: "",
11347 onClick: function onClick() {},
11348 children: null
11349};
11350RowOptionsLink.propTypes = {
11351 index: PropTypes__default.number,
11352 isOpen: PropTypes__default.bool,
11353 variant: PropTypes__default.string,
11354 url: PropTypes__default.string,
11355 onClick: PropTypes__default.func,
11356 children: PropTypes__default.node
11357};
11358
11359function _templateObject25() {
11360 var data = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n"]);
11361
11362 _templateObject25 = function _templateObject25() {
11363 return data;
11364 };
11365
11366 return data;
11367}
11368
11369function _templateObject24() {
11370 var data = _taggedTemplateLiteral(["\n width: 100%;\n position: absolute;\n left: 0;\n top: 100%;\n display: flex;\n justify-content: center;\n"]);
11371
11372 _templateObject24 = function _templateObject24() {
11373 return data;
11374 };
11375
11376 return data;
11377}
11378
11379function _templateObject23() {
11380 var data = _taggedTemplateLiteral(["\n /* stylelint-disable */\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n line-height: 1.2;\n /* stylelint-enable */\n"]);
11381
11382 _templateObject23 = function _templateObject23() {
11383 return data;
11384 };
11385
11386 return data;
11387}
11388
11389function _templateObject22() {
11390 var data = _taggedTemplateLiteral(["\n /* stylelint-disable */\n display: -webkit-box;\n width: 100%;\n overflow: hidden;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n /* stylelint-enable */\n"]);
11391
11392 _templateObject22 = function _templateObject22() {
11393 return data;
11394 };
11395
11396 return data;
11397}
11398
11399function _templateObject21() {
11400 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
11401
11402 _templateObject21 = function _templateObject21() {
11403 return data;
11404 };
11405
11406 return data;
11407}
11408
11409function _templateObject20() {
11410 var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: stretch;\n ", ";\n"]);
11411
11412 _templateObject20 = function _templateObject20() {
11413 return data;
11414 };
11415
11416 return data;
11417}
11418
11419function _templateObject19() {
11420 var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n "]);
11421
11422 _templateObject19 = function _templateObject19() {
11423 return data;
11424 };
11425
11426 return data;
11427}
11428
11429function _templateObject18() {
11430 var data = _taggedTemplateLiteral(["\n display: none;\n padding-left: ", ";\n position: relative;\n\n ", ";\n"]);
11431
11432 _templateObject18 = function _templateObject18() {
11433 return data;
11434 };
11435
11436 return data;
11437}
11438
11439function _templateObject17() {
11440 var data = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n\n &.container__overflow--expanded {\n background-color: ", ";\n max-height: 600px;\n transition: max-height 0.3s ", ", opacity 0.3s ", " 0.2s;\n opacity: 1;\n }\n\n &.container__overflow--collapsed {\n transition: max-height 0.3s ", ", opacity 0.1s ", ";\n opacity: 0;\n }\n "]);
11441
11442 _templateObject17 = function _templateObject17() {
11443 return data;
11444 };
11445
11446 return data;
11447}
11448
11449function _templateObject16() {
11450 var data = _taggedTemplateLiteral(["\n max-height: 0;\n overflow: hidden;\n\n ", ";\n"]);
11451
11452 _templateObject16 = function _templateObject16() {
11453 return data;
11454 };
11455
11456 return data;
11457}
11458
11459function _templateObject15() {
11460 var data = _taggedTemplateLiteral(["\n min-width: ", ";\n max-width: ", ";\n height: 41px;\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1.4;\n padding: 18px 0;\n"]);
11461
11462 _templateObject15 = function _templateObject15() {
11463 return data;
11464 };
11465
11466 return data;
11467}
11468
11469function _templateObject14() {
11470 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
11471
11472 _templateObject14 = function _templateObject14() {
11473 return data;
11474 };
11475
11476 return data;
11477}
11478
11479function _templateObject13() {
11480 var data = _taggedTemplateLiteral(["\n ", ";\n"]);
11481
11482 _templateObject13 = function _templateObject13() {
11483 return data;
11484 };
11485
11486 return data;
11487}
11488
11489function _templateObject12() {
11490 var data = _taggedTemplateLiteral(["\n padding: 0 calc(", " + ", "px);\n "]);
11491
11492 _templateObject12 = function _templateObject12() {
11493 return data;
11494 };
11495
11496 return data;
11497}
11498
11499function _templateObject11() {
11500 var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n \n &.column__content--expanded {\n transition: opacity 0.1s ", ";\n opacity: 0;\n }\n \n &.column__content--collapsed {\n transition: opacity 0.3s ", " 0.2s;\n opacity: 1;\n }\n\n &.column__content--fixed {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n\n ", ";\n }\n"]);
11501
11502 _templateObject11 = function _templateObject11() {
11503 return data;
11504 };
11505
11506 return data;
11507}
11508
11509function _templateObject10() {
11510 var data = _taggedTemplateLiteral(["\n display: none;\n ", ";\n"]);
11511
11512 _templateObject10 = function _templateObject10() {
11513 return data;
11514 };
11515
11516 return data;
11517}
11518
11519function _templateObject9$3() {
11520 var data = _taggedTemplateLiteral(["\n width: 32.7%;\n "]);
11521
11522 _templateObject9$3 = function _templateObject9() {
11523 return data;
11524 };
11525
11526 return data;
11527}
11528
11529function _templateObject8$4() {
11530 var data = _taggedTemplateLiteral(["\n width: 26.8%;\n max-width: ", ";\n "]);
11531
11532 _templateObject8$4 = function _templateObject8() {
11533 return data;
11534 };
11535
11536 return data;
11537}
11538
11539function _templateObject7$6() {
11540 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-width: ", ";\n max-width: ", ";\n\n ", ";\n\n ", ";\n"]);
11541
11542 _templateObject7$6 = function _templateObject7() {
11543 return data;
11544 };
11545
11546 return data;
11547}
11548
11549function _templateObject6$8() {
11550 var data = _taggedTemplateLiteral(["\n &:hover {\n background-color: ", ";\n }\n "]);
11551
11552 _templateObject6$8 = function _templateObject6() {
11553 return data;
11554 };
11555
11556 return data;
11557}
11558
11559function _templateObject5$a() {
11560 var data = _taggedTemplateLiteral(["\n text-decoration: none;\n display: flex;\n padding: ", " ", ";\n margin-left: -", ";\n min-height: 49px;\n justify-content: horizontal;\n width: 100%;\n cursor: pointer;\n border-radius: 2px;\n\n ", ";\n"]);
11561
11562 _templateObject5$a = function _templateObject5() {
11563 return data;
11564 };
11565
11566 return data;
11567}
11568
11569function _templateObject4$i() {
11570 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-bottom: ", ";\n "]);
11571
11572 _templateObject4$i = function _templateObject4() {
11573 return data;
11574 };
11575
11576 return data;
11577}
11578
11579function _templateObject3$o() {
11580 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n align-items: stretch;\n display: flex;\n padding-top: ", ";\n padding-bottom: ", ";\n\n ", ";\n"]);
11581
11582 _templateObject3$o = function _templateObject3() {
11583 return data;
11584 };
11585
11586 return data;
11587}
11588
11589function _templateObject2$D() {
11590 var data = _taggedTemplateLiteral(["\n border-radius: 4px;\n &.row__wrapper--expanded {\n transition: box-shadow 0.3s ", ", margin-bottom 0.3s ", ";\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.01), 0 4px 10px 0 rgba(0, 0, 0, 0.19);\n margin-bottom: 12px;\n }\n \n &.row__wrapper--collapsed {\n transition: box-shadow 0.3s ", ", margin-bottom 0.3s ", ";\n box-shadow: 0;\n margin-bottom: 0;\n }\n "]);
11591
11592 _templateObject2$D = function _templateObject2() {
11593 return data;
11594 };
11595
11596 return data;
11597}
11598
11599function _templateObject$T() {
11600 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n\n ", ";\n"]);
11601
11602 _templateObject$T = function _templateObject() {
11603 return data;
11604 };
11605
11606 return data;
11607}
11608var RowWrapper = styled.div(_templateObject$T(), themes.global.white.base, colors.lightGray, mediumAndUp(_templateObject2$D(), constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInQuad, constants.easing.easeInQuad));
11609var ListContainer$1 = styled.div(_templateObject3$o(), themes.global.white.base, function (props) {
11610 return props.rowLabel ? "1px" : "calc(12px + ".concat(spacing.cozy, ")");
11611}, function (props) {
11612 return props.rowVariant === "withLink" ? "1px" : "calc(12px + ".concat(spacing.cozy, ")");
11613}, mediumAndUp(_templateObject4$i(), function (props) {
11614 return props.rowLabel ? "0" : ROW_CONTAINER_VERTICAL_PADDING;
11615}, function (props) {
11616 return props.rowVariant === "withLink" ? "0" : ROW_CONTAINER_VERTICAL_PADDING;
11617}));
11618var LinkWrapper = styled.a(_templateObject5$a(), ROW_LINK_VERTICAL_PADDING, ROW_LINK_HORIZONTAL_PADDING, ROW_LINK_HORIZONTAL_PADDING, mediumAndUp(_templateObject6$8(), themes.global.primary.light));
11619var DateWrapper = styled.div(_templateObject7$6(), ROW_DATE_SMALL_WIDTH, ROW_DATE_SMALL_WIDTH, mediumAndUp(_templateObject8$4(), ROW_DATE_MEDIUM_WIDTH), largeAndUp(_templateObject9$3()));
11620var ContentColumn$1 = styled(Column)(_templateObject10(), mediumAndUp(_templateObject11(), constants.easing.easeInQuad, constants.easing.easeInOutQuad, mediumAndUp(_templateObject12(), spacing.moderate, spacing.gutters.mediumAndUp / 2)));
11621var MobileOnlyColumn = styled(Column)(_templateObject13(), mediumAndUp(_templateObject14()));
11622var ListRowButton = styled(StyledButton)(_templateObject15(), ROW_BUTTON_WIDTH, ROW_BUTTON_WIDTH);
11623var OverflowDesktopContainer = styled(Column)(_templateObject16(), mediumAndUp(_templateObject17(), colors.lightGray, themes.global.white.base, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInQuad, constants.easing.easeInQuad));
11624var DesktopContainer = styled.div(_templateObject18(), spacing.cozy, mediumAndUp(_templateObject19()));
11625var MobileContainer = styled.div(_templateObject20(), mediumAndUp(_templateObject21()));
11626var MultilineText = styled(TextBase)(_templateObject22());
11627var SingleLineText = styled(TextBase)(_templateObject23());
11628var AbsoluteContent = styled.div(_templateObject24());
11629var ContentRow = styled(Row)(_templateObject25());
11630
11631var ListRowContent =
11632/*#__PURE__*/
11633function (_Component) {
11634 _inherits(ListRowContent, _Component);
11635
11636 function ListRowContent() {
11637 _classCallCheck(this, ListRowContent);
11638
11639 return _possibleConstructorReturn(this, _getPrototypeOf(ListRowContent).apply(this, arguments));
11640 }
11641
11642 _createClass(ListRowContent, [{
11643 key: "componentDidUpdate",
11644 value: function componentDidUpdate(prevProps) {
11645 if (this.props.isOpen && this.props.index !== prevProps.index) {
11646 this.props.resetOpenIndex();
11647 }
11648 }
11649 }, {
11650 key: "componentWillUnmount",
11651 value: function componentWillUnmount() {
11652 if (this.props.isOpen) {
11653 this.props.resetOpenIndex();
11654 }
11655 }
11656 }, {
11657 key: "render",
11658 value: function render() {
11659 var _this$props = this.props,
11660 _this$props$rowItem = _this$props.rowItem,
11661 title = _this$props$rowItem.title,
11662 subTitle = _this$props$rowItem.subTitle,
11663 dateTitle = _this$props$rowItem.dateTitle,
11664 dateSubTitle = _this$props$rowItem.dateSubTitle,
11665 buttonText = _this$props$rowItem.buttonText,
11666 _this$props$rowItem$b = _this$props$rowItem.buttonVariant,
11667 buttonVariant = _this$props$rowItem$b === void 0 ? "standard" : _this$props$rowItem$b,
11668 variant = _this$props$rowItem.variant,
11669 label = _this$props$rowItem.label,
11670 labelVariant = _this$props$rowItem.labelVariant,
11671 linkTitle = _this$props$rowItem.linkTitle,
11672 _this$props$rowItem$l = _this$props$rowItem.linkUrl,
11673 linkUrl = _this$props$rowItem$l === void 0 ? "" : _this$props$rowItem$l,
11674 linkSubTitle = _this$props$rowItem.linkSubTitle,
11675 dateColor = _this$props$rowItem.dateColor,
11676 onClick = _this$props$rowItem.onClick,
11677 url = _this$props$rowItem.url,
11678 isOpen = _this$props.isOpen,
11679 index = _this$props.index,
11680 onOverflowClick = _this$props.onOverflowClick,
11681 onExpandShow = _this$props.onExpandShow,
11682 children = _this$props.children,
11683 onExpandItem = _this$props.onExpandItem,
11684 onCollapseItem = _this$props.onCollapseItem,
11685 rest = _objectWithoutProperties(_this$props, ["rowItem", "isOpen", "index", "onOverflowClick", "onExpandShow", "children", "onExpandItem", "onCollapseItem"]);
11686
11687 return React__default.createElement(RowWrapper, _extends({
11688 variant: variant,
11689 className: classNames({
11690 row__wrapper: true,
11691 "row__wrapper--expanded": isOpen,
11692 "row__wrapper--collapsed": !isOpen
11693 })
11694 }, rest), React__default.createElement(RowLabel, {
11695 isOpen: isOpen,
11696 index: index,
11697 variant: labelVariant
11698 }, label), React__default.createElement(ListContainer$1, {
11699 className: "list__container",
11700 rowVariant: variant,
11701 rowLabel: label
11702 }, React__default.createElement(RowToggler, {
11703 isOpen: isOpen,
11704 index: index,
11705 onExpandItem: onExpandItem,
11706 onCollapseItem: onCollapseItem,
11707 className: "row__toggler"
11708 }), React__default.createElement(LinkWrapper, {
11709 role: "link",
11710 "aria-label": buttonText,
11711 onClick: onClick,
11712 href: url // this class name is for automation purposes please do not remove or modify the name
11713 ,
11714 className: "link__wrapper"
11715 }, React__default.createElement(DateWrapper, {
11716 className: "date__wrapper"
11717 }, React__default.createElement(TextBase, _extends({
11718 className: "date--text",
11719 allCaps: true,
11720 responsiveSize: staticProps.defaultResponsiveSize,
11721 weight: "semiBold"
11722 }, dateColor ? {
11723 accent: "heliotrope",
11724 variant: "accent",
11725 primary: true
11726 } : {}), dateTitle), React__default.createElement(SingleLineText, {
11727 size: "hecto",
11728 variant: "dark",
11729 secondary: true,
11730 className: "day-time--text"
11731 }, dateSubTitle)), React__default.createElement(ContentRow, {
11732 className: "row__content"
11733 }, React__default.createElement(MobileOnlyColumn, {
11734 className: "column__mobile-only"
11735 }, React__default.createElement(MultilineText, {
11736 responsiveSize: staticProps.defaultResponsiveSize,
11737 className: "list-row__title"
11738 }, title), React__default.createElement(SingleLineText, {
11739 size: "hecto",
11740 variant: "dark",
11741 secondary: true,
11742 className: "list-row--subtitle"
11743 }, subTitle)), React__default.createElement(ContentColumn$1, {
11744 key: "primary-collapsed",
11745 medium: 6,
11746 className: classNames({
11747 column__content: true,
11748 "list-row__title": true,
11749 "column__content--expanded": isOpen,
11750 "column__content--collapsed": !isOpen
11751 })
11752 }, React__default.createElement(MultilineText, {
11753 responsiveSize: staticProps.defaultResponsiveSize
11754 }, title)), React__default.createElement(ContentColumn$1, {
11755 key: "secondary-collapsed",
11756 medium: 6,
11757 className: classNames({
11758 column__content: true,
11759 "list-row__title": true,
11760 "column__content--expanded": isOpen,
11761 "column__content--collapsed": !isOpen
11762 })
11763 }, React__default.createElement(MultilineText, {
11764 responsiveSize: staticProps.defaultResponsiveSize,
11765 className: classNames({
11766 subtitle: true,
11767 "list-row--subtitle": true,
11768 // this class name is for automation purposes please do not remove or modify the name
11769 "subtitle--collapsed": true
11770 })
11771 }, subTitle)), React__default.createElement(ContentColumn$1, {
11772 key: "primary-expanded",
11773 className: classNames({
11774 column__content: true,
11775 "list-row__title": true,
11776 "column__content--fixed": true,
11777 "column__content--expanded": !isOpen,
11778 "column__content--collapsed": isOpen
11779 })
11780 }, React__default.createElement(MultilineText, {
11781 responsiveSize: staticProps.defaultResponsiveSize,
11782 className: "subtitle"
11783 }, isOpen && onExpandShow === "title" ? title : subTitle))), React__default.createElement(DesktopContainer, null, React__default.createElement(ListRowButton, {
11784 noTransform: true,
11785 "aria-label": buttonText,
11786 role: "button",
11787 width: ROW_BUTTON_WIDTH,
11788 variant: buttonVariant,
11789 size: "regular",
11790 as: "span",
11791 rowVariant: variant
11792 }, buttonText), variant === "withLink" && React__default.createElement(AbsoluteContent, null, React__default.createElement(SingleLineText, {
11793 size: "uno",
11794 variant: "dark",
11795 secondary: true
11796 }, linkSubTitle)))), React__default.createElement(MobileContainer, null, React__default.createElement(IconButton$1, {
11797 className: "button--more-info icon-button--last",
11798 "data-index": index,
11799 "aria-label": "More Info",
11800 onClick: onOverflowClick
11801 }, React__default.createElement(OverflowIcon, {
11802 size: 22,
11803 color: themes.global.onyx.light
11804 })))), React__default.createElement(RowOptionsLink, {
11805 variant: variant,
11806 isOpen: isOpen,
11807 url: linkUrl,
11808 index: index,
11809 onClick: onOverflowClick
11810 }, linkTitle), React__default.createElement(OverflowDesktopContainer, {
11811 className: classNames({
11812 container__overflow: true,
11813 "container__overflow--expanded": isOpen,
11814 "container__overflow--collapsed": !isOpen
11815 })
11816 }, children));
11817 }
11818 }]);
11819
11820 return ListRowContent;
11821}(Component);
11822
11823ListRowContent.defaultProps = {
11824 isOpen: false,
11825 onExpandShow: "subTitle",
11826 children: null,
11827 onExpandItem: RowToggler.defaultProps.onExpandItem,
11828 onCollapseItem: RowToggler.defaultProps.onCollapseItem
11829};
11830ListRowContent.propTypes = {
11831 rowItem: PropTypes__default.shape(rowDataShape).isRequired,
11832 isOpen: PropTypes__default.bool,
11833 index: PropTypes__default.number.isRequired,
11834 onOverflowClick: PropTypes__default.func.isRequired,
11835 onExpandShow: PropTypes__default.oneOf(["title", "subTitle"]),
11836 children: PropTypes__default.node,
11837 onExpandItem: RowToggler.propTypes.onExpandItem,
11838 onCollapseItem: RowToggler.propTypes.onCollapseItem,
11839 resetOpenIndex: PropTypes__default.func.isRequired
11840};
11841
11842function _templateObject9$4() {
11843 var data = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 0;\n "]);
11844
11845 _templateObject9$4 = function _templateObject9() {
11846 return data;
11847 };
11848
11849 return data;
11850}
11851
11852function _templateObject8$5() {
11853 var data = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n margin-left: 0;\n margin-right: 0;\n ", ";\n"]);
11854
11855 _templateObject8$5 = function _templateObject8() {
11856 return data;
11857 };
11858
11859 return data;
11860}
11861
11862function _templateObject7$7() {
11863 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
11864
11865 _templateObject7$7 = function _templateObject7() {
11866 return data;
11867 };
11868
11869 return data;
11870}
11871
11872function _templateObject6$9() {
11873 var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: stretch;\n ", ";\n"]);
11874
11875 _templateObject6$9 = function _templateObject6() {
11876 return data;
11877 };
11878
11879 return data;
11880}
11881
11882function _templateObject5$b() {
11883 var data = _taggedTemplateLiteral(["\n padding: 0;\n "]);
11884
11885 _templateObject5$b = function _templateObject5() {
11886 return data;
11887 };
11888
11889 return data;
11890}
11891
11892function _templateObject4$j() {
11893 var data = _taggedTemplateLiteral(["\n padding: 0;\n\n ", ";\n"]);
11894
11895 _templateObject4$j = function _templateObject4() {
11896 return data;
11897 };
11898
11899 return data;
11900}
11901
11902function _templateObject3$p() {
11903 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n align-items: stretch;\n display: flex;\n padding-top: ", ";\n padding-bottom: ", ";\n position: relative;\n"]);
11904
11905 _templateObject3$p = function _templateObject3() {
11906 return data;
11907 };
11908
11909 return data;
11910}
11911
11912function _templateObject2$E() {
11913 var data = _taggedTemplateLiteral(["\n padding: 0 ", ";\n &.row__wrapper--expanded {\n transition: box-shadow 0.3s ", ", margin-bottom 0.3s ", ";\n margin-bottom: 3px;\n margin-top: 3px;\n border-radius: 4px;\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.06), 0 0 4px 0 rgba(0, 0, 0, 0.12);\n border: 1px solid ", ";\n overflow: hidden;\n }\n \n &.row__wrapper--collapsed {\n transition: box-shadow 0.3s ", ", margin-bottom 0.3s ", ";\n box-shadow: 0;\n margin-bottom: -1px;\n }\n "]);
11914
11915 _templateObject2$E = function _templateObject2() {
11916 return data;
11917 };
11918
11919 return data;
11920}
11921
11922function _templateObject$U() {
11923 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n border-top: 1px solid ", ";\n border-right: 1px solid ", ";\n border-left: 1px solid ", ";\n margin-bottom: -1px;\n padding: 0 ", ";\n &:first-child {\n border-top: 0px;\n }\n\n ", ";\n\n .button--expand-or-collapse {\n position: absolute;\n right: ", ";\n left: ", ";\n z-index: 10;\n margin: 0;\n padding: 0;\n /* spacing.spacious is spacing.normal * 2 - paddings for ListContainer */\n height: calc(100% - ", ");\n }\n"]);
11924
11925 _templateObject$U = function _templateObject() {
11926 return data;
11927 };
11928
11929 return data;
11930}
11931var RowWrapper$1 = styled.div(_templateObject$U(), themes.global.white.base, themes.global.gray04, themes.global.gray04, themes.global.white.base, themes.global.white.base, spacing.cozy, mediumAndUp(_templateObject2$E(), spacing.normal, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, themes.global.gray04, constants.easing.easeInQuad, constants.easing.easeInQuad), function (props) {
11932 return props.rowTriggerPosition === "right" ? "0" : "auto";
11933}, function (props) {
11934 return props.rowTriggerPosition === "left" ? "0" : "auto";
11935}, spacing.spacious);
11936var ListContainer$2 = styled.div(_templateObject3$p(), themes.global.white.base, spacing.normal, spacing.normal);
11937var PureOverflowDesktopContainer = styled(OverflowDesktopContainer)(_templateObject4$j(), mediumAndUp(_templateObject5$b()));
11938var MobileContainer$1 = styled.div(_templateObject6$9(), mediumAndUp(_templateObject7$7()));
11939var ContentRow$1 = styled(Row)(_templateObject8$5(), mediumAndUp(_templateObject9$4()));
11940
11941var PureListRowContent =
11942/*#__PURE__*/
11943function (_Component) {
11944 _inherits(PureListRowContent, _Component);
11945
11946 function PureListRowContent() {
11947 _classCallCheck(this, PureListRowContent);
11948
11949 return _possibleConstructorReturn(this, _getPrototypeOf(PureListRowContent).apply(this, arguments));
11950 }
11951
11952 _createClass(PureListRowContent, [{
11953 key: "componentDidUpdate",
11954 value: function componentDidUpdate(prevProps) {
11955 if (this.props.isOpen && this.props.index !== prevProps.index) {
11956 this.props.resetOpenIndex();
11957 }
11958 }
11959 }, {
11960 key: "componentWillUnmount",
11961 value: function componentWillUnmount() {
11962 if (this.props.isOpen) {
11963 this.props.resetOpenIndex();
11964 }
11965 }
11966 }, {
11967 key: "render",
11968 value: function render() {
11969 var _this$props = this.props,
11970 isOpen = _this$props.isOpen,
11971 index = _this$props.index,
11972 onOverflowClick = _this$props.onOverflowClick,
11973 children = _this$props.children,
11974 onExpandItem = _this$props.onExpandItem,
11975 onCollapseItem = _this$props.onCollapseItem,
11976 rowTriggerPosition = _this$props.rowTriggerPosition,
11977 header = _this$props.header,
11978 rest = _objectWithoutProperties(_this$props, ["isOpen", "index", "onOverflowClick", "children", "onExpandItem", "onCollapseItem", "rowTriggerPosition", "header"]);
11979
11980 return React__default.createElement(RowWrapper$1, _extends({
11981 className: classNames({
11982 row__wrapper: true,
11983 "row__wrapper--expanded": isOpen,
11984 "row__wrapper--collapsed": !isOpen
11985 }),
11986 rowTriggerPosition: rowTriggerPosition
11987 }, rest), React__default.createElement(ListContainer$2, {
11988 className: "list__container"
11989 }, rowTriggerPosition === "left" && React__default.createElement(RowToggler, {
11990 isOpen: isOpen,
11991 index: index,
11992 onExpandItem: onExpandItem,
11993 onCollapseItem: onCollapseItem,
11994 className: "row__toggler"
11995 }), React__default.createElement(ContentRow$1, {
11996 rowTriggerPosition: rowTriggerPosition,
11997 className: "row__content"
11998 }, header), React__default.createElement(MobileContainer$1, null, React__default.createElement(IconButton$1, {
11999 className: "button--more-info icon-button--last",
12000 "data-index": index,
12001 "aria-label": "More Info",
12002 onClick: onOverflowClick
12003 }, React__default.createElement(OverflowIcon, {
12004 size: 22,
12005 color: themes.global.onyx.light
12006 }))), rowTriggerPosition === "right" && React__default.createElement(RowToggler, {
12007 isOpen: isOpen,
12008 index: index,
12009 onExpandItem: onExpandItem,
12010 onCollapseItem: onCollapseItem,
12011 className: "row__toggler"
12012 })), React__default.createElement(PureOverflowDesktopContainer, {
12013 className: classNames({
12014 container__overflow: true,
12015 "container__overflow--expanded": isOpen,
12016 "container__overflow--collapsed": !isOpen
12017 })
12018 }, children));
12019 }
12020 }]);
12021
12022 return PureListRowContent;
12023}(Component);
12024
12025PureListRowContent.defaultProps = {
12026 isOpen: false,
12027 children: null,
12028 rowTriggerPosition: "right",
12029 onExpandItem: RowToggler.defaultProps.onExpandItem,
12030 onCollapseItem: RowToggler.defaultProps.onCollapseItem
12031};
12032PureListRowContent.propTypes = {
12033 isOpen: PropTypes__default.bool,
12034 index: PropTypes__default.number.isRequired,
12035 onOverflowClick: PropTypes__default.func.isRequired,
12036 children: PropTypes__default.node,
12037 onExpandItem: RowToggler.propTypes.onExpandItem,
12038 onCollapseItem: RowToggler.propTypes.onCollapseItem,
12039 resetOpenIndex: PropTypes__default.func.isRequired,
12040 rowTriggerPosition: PropTypes__default.oneOf(["right", "left"])
12041};
12042
12043var ListRow = function ListRow(_ref) {
12044 var children = _ref.children,
12045 rowItem = _ref.rowItem,
12046 index = _ref.index,
12047 _onOverflowClick = _ref.onOverflowClick,
12048 onExpandItem = _ref.onExpandItem,
12049 onCollapseItem = _ref.onCollapseItem,
12050 isPure = _ref.isPure,
12051 props = _objectWithoutProperties(_ref, ["children", "rowItem", "index", "onOverflowClick", "onExpandItem", "onCollapseItem", "isPure"]);
12052
12053 return React__default.createElement(Consumer$1, null, function (_ref2) {
12054 var openIndex = _ref2.openIndex,
12055 expandMultiple = _ref2.expandMultiple,
12056 renderIntoPortal = _ref2.renderIntoPortal,
12057 restItemContainerProps = _objectWithoutProperties(_ref2, ["openIndex", "expandMultiple", "renderIntoPortal"]);
12058
12059 var params = _objectSpread({}, !isPure && {
12060 rowItem: rowItem
12061 }, {
12062 isOpen: determineIfOpen(expandMultiple, openIndex, index),
12063 index: index,
12064 onOverflowClick: function onOverflowClick() {
12065 renderIntoPortal(_objectSpread({
12066 children: children,
12067 contentType: "mobile"
12068 }, !isPure && {
12069 data: rowItem
12070 }));
12071
12072 _onOverflowClick();
12073 },
12074 onExpandItem: onExpandItem,
12075 onCollapseItem: onCollapseItem
12076 }, restItemContainerProps, props);
12077
12078 return isPure ? React__default.createElement(PureListRowContent, params, children) : React__default.createElement(ListRowContent, params, children);
12079 });
12080};
12081
12082ListRow.defaultProps = {
12083 children: null,
12084 isPure: false,
12085 onExpandShow: "subTitle",
12086 onExpandItem: ListRowContent.defaultProps.onExpandItem,
12087 onCollapseItem: ListRowContent.defaultProps.onCollapseItem,
12088 rowItem: {}
12089};
12090ListRow.propTypes = {
12091 rowItem: PropTypes__default.shape(rowDataShape),
12092 index: PropTypes__default.number.isRequired,
12093 onOverflowClick: PropTypes__default.func.isRequired,
12094 onExpandShow: PropTypes__default.oneOf(["title", "subTitle"]),
12095 children: PropTypes__default.node,
12096 onExpandItem: ListRowContent.propTypes.onExpandItem,
12097 onCollapseItem: ListRowContent.propTypes.onCollapseItem,
12098 isPure: PropTypes__default.bool
12099};
12100
12101function _templateObject$V() {
12102 var data = _taggedTemplateLiteral(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"]);
12103
12104 _templateObject$V = function _templateObject() {
12105 return data;
12106 };
12107
12108 return data;
12109}
12110var ListUnstyled = styled.ol(_templateObject$V());
12111
12112function _templateObject2$F() {
12113 var data = _taggedTemplateLiteral(["\n padding-left: ", ";\n "]);
12114
12115 _templateObject2$F = function _templateObject2() {
12116 return data;
12117 };
12118
12119 return data;
12120}
12121
12122function _templateObject$W() {
12123 var data = _taggedTemplateLiteral(["\n overflow: hidden;\n\n ", ";\n"]);
12124
12125 _templateObject$W = function _templateObject() {
12126 return data;
12127 };
12128
12129 return data;
12130}
12131var OverflowRow = styled(Row)(_templateObject$W(), mediumAndUp(_templateObject2$F(), spacing.moderate));
12132
12133var ListRowOverflow = function ListRowOverflow(_ref) {
12134 var children = _ref.children,
12135 props = _objectWithoutProperties(_ref, ["children"]);
12136
12137 return React__default.createElement(OverflowRow, props, children);
12138};
12139
12140ListRowOverflow.defaultProps = {
12141 children: null
12142};
12143ListRowOverflow.propTypes = {
12144 children: PropTypes__default.node
12145};
12146
12147function _templateObject4$k() {
12148 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n text-transform: uppercase;\n"]);
12149
12150 _templateObject4$k = function _templateObject4() {
12151 return data;
12152 };
12153
12154 return data;
12155}
12156
12157function _templateObject3$q() {
12158 var data = _taggedTemplateLiteral(["\n padding-bottom: ", ";\n && {\n flex: 0 1 100%;\n margin-left: 0;\n margin-right: 0;\n }\n"]);
12159
12160 _templateObject3$q = function _templateObject3() {
12161 return data;
12162 };
12163
12164 return data;
12165}
12166
12167function _templateObject2$G() {
12168 var data = _taggedTemplateLiteral(["\n border: none;\n padding-left: ", ";\n padding-right: ", ";\n "]);
12169
12170 _templateObject2$G = function _templateObject2() {
12171 return data;
12172 };
12173
12174 return data;
12175}
12176
12177function _templateObject$X() {
12178 var data = _taggedTemplateLiteral(["\n padding: ", " ", ";\n border-bottom: 1px solid ", ";\n\n ", ";\n"]);
12179
12180 _templateObject$X = function _templateObject() {
12181 return data;
12182 };
12183
12184 return data;
12185}
12186var SectionContainer = styled(Column)(_templateObject$X(), spacing.moderate, spacing.normal, colors.lightGray, mediumAndUp(_templateObject2$G(), spacing.moderate, spacing.moderate));
12187var TitleContainer = styled(Row)(_templateObject3$q(), spacing.moderate);
12188var TitleText = styled(BoldText)(_templateObject4$k(), typography.size.uno, themes.global.onyx.light);
12189
12190var Section = function Section(_ref) {
12191 var title = _ref.title,
12192 titleStyle = _ref.titleStyle,
12193 children = _ref.children,
12194 rest = _objectWithoutProperties(_ref, ["title", "titleStyle", "children"]);
12195
12196 return React__default.createElement(SectionContainer, rest, React__default.createElement(TitleContainer, {
12197 className: "container__title"
12198 }, React__default.createElement(TitleText, {
12199 style: titleStyle,
12200 className: "text__title"
12201 }, title)), children);
12202};
12203
12204Section.defaultProps = {
12205 titleStyle: {},
12206 children: null
12207};
12208Section.propTypes = {
12209 title: PropTypes__default.string.isRequired,
12210 titleStyle: PropTypes__default.objectOf(PropTypes__default.any),
12211 children: PropTypes__default.node
12212};
12213
12214function _templateObject3$r() {
12215 var data = _taggedTemplateLiteral(["\n color: ", ";\n text-decoration: none;\n display: -webkit-box;\n overflow: hidden;\n\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"]);
12216
12217 _templateObject3$r = function _templateObject3() {
12218 return data;
12219 };
12220
12221 return data;
12222}
12223
12224function _templateObject2$H() {
12225 var data = _taggedTemplateLiteral(["\n padding-right: ", ";\n"]);
12226
12227 _templateObject2$H = function _templateObject2() {
12228 return data;
12229 };
12230
12231 return data;
12232}
12233
12234function _templateObject$Y() {
12235 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n cursor: ", ";\n\n &:not(:last-of-type) {\n margin-bottom: ", ";\n }\n"]);
12236
12237 _templateObject$Y = function _templateObject() {
12238 return data;
12239 };
12240
12241 return data;
12242}
12243var ItemContainer = styled.div.attrs({
12244 className: "section-item"
12245})(_templateObject$Y(), function (props) {
12246 return props.onItemClick || props.href ? "pointer" : "text";
12247}, spacing.moderate);
12248var IconContainer = styled.div(_templateObject2$H(), spacing.cozy);
12249/* stylelint-disable */
12250
12251var MultiLineLink = styled.div.attrs({
12252 className: "section-item-link"
12253})(_templateObject3$r(), function (_ref) {
12254 var color = _ref.color;
12255 return color || themes.global.primary.base;
12256});
12257/* stylelint-enable */
12258
12259var handleItemClick = function handleItemClick(children, value, event, onItemClick, url) {
12260 if (children && value) {
12261 value.renderIntoPortal({
12262 children: children,
12263 contentType: "desktop"
12264 });
12265 }
12266
12267 if (onItemClick) {
12268 onItemClick(event, value && value.onCloseRequest);
12269 }
12270
12271 if (url && value) {
12272 value.resetOpenIndex();
12273 }
12274};
12275
12276var SectionItem = function SectionItem(_ref2) {
12277 var _ref2$item = _ref2.item,
12278 icon = _ref2$item.icon,
12279 title = _ref2$item.title,
12280 subTitle = _ref2$item.subTitle,
12281 onItemClick = _ref2$item.onItemClick,
12282 url = _ref2$item.url,
12283 children = _ref2.children,
12284 props = _objectWithoutProperties(_ref2, ["item", "children"]);
12285
12286 var isMultiline = onItemClick || url;
12287 var Title = isMultiline ? MultiLineLink : SecondaryText;
12288 var itemContainerProps = url ? _objectSpread({}, props, {
12289 as: Link
12290 }) : props;
12291 return React__default.createElement(Consumer$1, null, function (value) {
12292 return React__default.createElement(ItemContainer, _extends({
12293 key: title,
12294 role: "link",
12295 "aria-label": "Section Item",
12296 onClick: function onClick(event) {
12297 return handleItemClick(children, value, event, onItemClick, url);
12298 },
12299 onItemClick: onItemClick,
12300 href: url
12301 }, itemContainerProps), icon && React__default.createElement(IconContainer, null, icon), React__default.createElement("div", null, React__default.createElement(Title, null, title), subTitle && React__default.createElement(SecondaryText, null, subTitle)));
12302 });
12303};
12304
12305SectionItem.defaultProps = {
12306 children: null
12307};
12308SectionItem.propTypes = {
12309 item: PropTypes__default.shape({
12310 title: PropTypes__default.string.isRequired,
12311 subTitle: PropTypes__default.string,
12312 url: PropTypes__default.string,
12313 icon: PropTypes__default.node,
12314 onItemClick: PropTypes__default.func
12315 }).isRequired,
12316 children: PropTypes__default.node
12317};
12318
12319function _templateObject$Z() {
12320 var data = _taggedTemplateLiteral(["\n .list-container {\n position: relative;\n }\n"]);
12321
12322 _templateObject$Z = function _templateObject() {
12323 return data;
12324 };
12325
12326 return data;
12327}
12328var LinkRow = styled.div.attrs({
12329 className: "links links__row",
12330 role: "menubar"
12331})(_templateObject$Z());
12332
12333var _React$createContext$4 = React__default.createContext({}),
12334 Provider$4 = _React$createContext$4.Provider,
12335 Consumer$4 = _React$createContext$4.Consumer;
12336
12337function _templateObject3$s() {
12338 var data = _taggedTemplateLiteral(["\n padding: 0 ", ";\n border-top: 1px solid ", ";\n color: ", ";\n"]);
12339
12340 _templateObject3$s = function _templateObject3() {
12341 return data;
12342 };
12343
12344 return data;
12345}
12346
12347function _templateObject2$I() {
12348 var data = _taggedTemplateLiteral(["\n padding: ", ";\n &.wrapper--has-after {\n padding: ", " ", " 0 ", ";\n }\n"]);
12349
12350 _templateObject2$I = function _templateObject2() {
12351 return data;
12352 };
12353
12354 return data;
12355}
12356
12357function _templateObject$_() {
12358 var data = _taggedTemplateLiteral(["\n display: none;\n flex-direction: column;\n position: absolute;\n width: 205px;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);\n\n .list-container--open & {\n display: block;\n }\n\n &.links__list--open {\n display: block;\n }\n"]);
12359
12360 _templateObject$_ = function _templateObject() {
12361 return data;
12362 };
12363
12364 return data;
12365}
12366var Container$7 = styled.div.attrs({
12367 className: "links links__list"
12368})(_templateObject$_(), themes.global.white.base, constants.borderRadius.small);
12369var Wrapper$2 = styled.div(_templateObject2$I(), spacing.cozy, spacing.cozy, spacing.cozy, spacing.cozy);
12370var AfterWrapper = styled.div(_templateObject3$s(), spacing.cozy, themes.global.gray04, themes.global.darkFill);
12371
12372var LinkList =
12373/*#__PURE__*/
12374function (_Component) {
12375 _inherits(LinkList, _Component);
12376
12377 function LinkList() {
12378 var _getPrototypeOf2;
12379
12380 var _this;
12381
12382 _classCallCheck(this, LinkList);
12383
12384 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12385 args[_key] = arguments[_key];
12386 }
12387
12388 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(LinkList)).call.apply(_getPrototypeOf2, [this].concat(args)));
12389
12390 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
12391 selectedIndex: _this.props.selectedIndex // eslint-disable-line
12392
12393 });
12394
12395 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onItemClick", function (_ref) {
12396 var index = _ref.index;
12397
12398 _this.setState({
12399 selectedIndex: index
12400 }); // eslint-disable-line
12401
12402
12403 _this.props.onItemClick({
12404 selectedIndex: index
12405 });
12406 });
12407
12408 return _this;
12409 }
12410
12411 _createClass(LinkList, [{
12412 key: "render",
12413 value: function render() {
12414 var _this$props = this.props,
12415 children = _this$props.children,
12416 renderAfter = _this$props.renderAfter,
12417 onItemClick = _this$props.onItemClick,
12418 rest = _objectWithoutProperties(_this$props, ["children", "renderAfter", "onItemClick"]);
12419
12420 return React__default.createElement(Provider$4, {
12421 value: _objectSpread({}, this.state, {
12422 onItemClick: this.onItemClick
12423 })
12424 }, React__default.createElement(Container$7, rest, React__default.createElement(Wrapper$2, {
12425 className: classNames({
12426 "wrapper--has-after": !!renderAfter
12427 })
12428 }, children), renderAfter && React__default.createElement(AfterWrapper, null, renderAfter)));
12429 }
12430 }]);
12431
12432 return LinkList;
12433}(Component);
12434
12435LinkList.defaultProps = {
12436 selectedIndex: -1,
12437 onItemClick:
12438 /* istanbul ignore next */
12439 function onItemClick() {},
12440 renderAfter: null
12441};
12442LinkList.propTypes = {
12443 children: PropTypes__default.node.isRequired,
12444 onItemClick: PropTypes__default.func,
12445 selectedIndex: PropTypes__default.number,
12446 renderAfter: PropTypes__default.oneOfType([PropTypes__default.element, PropTypes__default.node])
12447};
12448
12449function _templateObject$$() {
12450 var data = _taggedTemplateLiteral(["\n display: inline-block;\n text-decoration: none;\n outline: 0;\n border: 0;\n position: relative;\n\n .links__list & {\n width: 100%;\n text-align: left;\n }\n\n &:focus,\n &:hover {\n outline: 0;\n }\n\n &.link--has-other.link--open:after {\n content: \"\";\n display: inline-block;\n border-bottom: 4px solid ", ";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n }\n"]);
12451
12452 _templateObject$$ = function _templateObject() {
12453 return data;
12454 };
12455
12456 return data;
12457}
12458var StyledLink = styled.a(_templateObject$$(), themes.global.primary.base);
12459
12460var LinkItem =
12461/*#__PURE__*/
12462function (_React$Component) {
12463 _inherits(LinkItem, _React$Component);
12464
12465 function LinkItem() {
12466 var _getPrototypeOf2;
12467
12468 var _this;
12469
12470 _classCallCheck(this, LinkItem);
12471
12472 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12473 args[_key] = arguments[_key];
12474 }
12475
12476 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(LinkItem)).call.apply(_getPrototypeOf2, [this].concat(args)));
12477
12478 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
12479 open: false,
12480 touchEventsExist: false
12481 });
12482
12483 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hasListener", false);
12484
12485 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "ref", createRef());
12486
12487 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "open", function () {
12488 return _this.hasOther && _this.setState(function () {
12489 return {
12490 open: true
12491 };
12492 });
12493 });
12494
12495 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "close", function () {
12496 return _this.hasOther && _this.setState(function () {
12497 return {
12498 open: false
12499 };
12500 });
12501 });
12502
12503 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggle", function () {
12504 return _this.hasOther && _this.setState(function (_ref) {
12505 var open = _ref.open;
12506 return {
12507 open: !open
12508 };
12509 });
12510 });
12511
12512 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleOutsideClick", function (e) {
12513 if (_this.ref && _this.ref.current && !_this.ref.current.contains(e.target)) {
12514 _this.close();
12515 }
12516 });
12517
12518 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "attachListener", function () {
12519 if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") {
12520 document.addEventListener("click", _this.handleOutsideClick);
12521 _this.hasListener = true;
12522 }
12523 });
12524
12525 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "removeListener", function () {
12526 if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") {
12527 document.removeEventListener("click", _this.handleOutsideClick);
12528 _this.hasListener = false;
12529 }
12530 });
12531
12532 return _this;
12533 }
12534
12535 _createClass(LinkItem, [{
12536 key: "componentDidMount",
12537 value: function componentDidMount() {
12538 var open = this.state.open;
12539 var disableHoverEvents = this.props.disableHoverEvents;
12540
12541 if ("ontouchstart" in document.documentElement) {
12542 this.setState({
12543 touchEventsExist: true
12544 }); // eslint-disable-line
12545 }
12546
12547 if (open && disableHoverEvents && !this.hasListener) this.attachListener();
12548 }
12549 }, {
12550 key: "componentDidUpdate",
12551 value: function componentDidUpdate(prevProps, prevState) {
12552 var prevOpen = prevState.open;
12553 var open = this.state.open;
12554 var disableHoverEvents = this.props.disableHoverEvents;
12555
12556 if (!prevOpen && open && disableHoverEvents && !this.hasListener) {
12557 this.attachListener();
12558 } else if (prevOpen && !open && this.hasListener) {
12559 this.removeListener();
12560 }
12561 }
12562 }, {
12563 key: "componentWillUnmount",
12564 value: function componentWillUnmount() {
12565 if (this.hasListener) this.removeListener();
12566 }
12567 }, {
12568 key: "render",
12569 value: function render() {
12570 var touchEventsExist = this.state.touchEventsExist;
12571
12572 var _this$props = this.props,
12573 children = _this$props.children,
12574 rel = _this$props.rel,
12575 target = _this$props.target,
12576 role = _this$props.role,
12577 className = _this$props.className,
12578 disableHoverEvents = _this$props.disableHoverEvents,
12579 props = _objectWithoutProperties(_this$props, ["children", "rel", "target", "role", "className", "disableHoverEvents"]);
12580
12581 var _Children$toArray = Children.toArray(children),
12582 _Children$toArray2 = _toArray(_Children$toArray),
12583 label = _Children$toArray2[0],
12584 other = _Children$toArray2.slice(1);
12585
12586 this.hasOther = other && other.length > 0;
12587 var aria = this.hasOther ? {
12588 "aria-haspopup": this.hasOther,
12589 "aria-expanded": this.state.open
12590 } : {};
12591 var classes = classNames({
12592 link: true,
12593 "link--has-other": this.hasOther,
12594 "link--open": this.state.open
12595 }, className);
12596 var content = props.href ? React__default.createElement(StyledLink, _extends({}, props, {
12597 target: target,
12598 rel: getRelByTarget(target, rel),
12599 role: role || "link"
12600 }, aria, {
12601 className: classes
12602 }), label) : React__default.createElement(StyledLink, _extends({}, props, {
12603 role: role || "button"
12604 }, aria, {
12605 className: classes,
12606 as: "button"
12607 }), label);
12608 var hoverEvents = disableHoverEvents ? {} : {
12609 onMouseEnter: touchEventsExist ? null : this.open,
12610 onMouseLeave: this.close
12611 };
12612 return React__default.createElement("span", _extends({}, hoverEvents, {
12613 ref: disableHoverEvents ? this.ref : undefined,
12614 className: this.state.open ? "list-container list-container--open" : "list-container list-container--closed",
12615 onClick: this.toggle,
12616 role: "none"
12617 }), content, other);
12618 }
12619 }]);
12620
12621 return LinkItem;
12622}(React__default.Component);
12623
12624_defineProperty(LinkItem, "propTypes", {
12625 children: PropTypes__default.node,
12626 className: PropTypes__default.string,
12627 href: PropTypes__default.string,
12628 target: PropTypes__default.string,
12629 rel: PropTypes__default.string,
12630 role: PropTypes__default.string,
12631 disableHoverEvents: PropTypes__default.bool
12632});
12633
12634_defineProperty(LinkItem, "defaultProps", {
12635 children: null,
12636 className: "",
12637 href: null,
12638 target: "_self",
12639 rel: null,
12640 role: null,
12641 disableHoverEvents: false
12642});
12643
12644function _templateObject2$J() {
12645 var data = _taggedTemplateLiteral(["\n text-decoration: none;\n"]);
12646
12647 _templateObject2$J = function _templateObject2() {
12648 return data;
12649 };
12650
12651 return data;
12652}
12653
12654function _templateObject$10() {
12655 var data = _taggedTemplateLiteral(["\n padding: 0 12px;\n height: 36px;\n display: flex;\n color: ", ";\n align-items: center;\n font-size: ", ";\n font-weight: ", ";\n border-radius: ", ";\n\n &.links__list__item--selected {\n background-color: ", ";\n }\n\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n\n &:not(:last-of-type) {\n margin-bottom: ", ";\n }\n"]);
12656
12657 _templateObject$10 = function _templateObject() {
12658 return data;
12659 };
12660
12661 return data;
12662}
12663var ItemContainer$1 = styled.div.attrs({
12664 className: "links__list__item"
12665})(_templateObject$10(), themes.global.darkFill, typography.size.kilo, typography.weight.regular, constants.borderRadius.small, colors.shale, themes.global.primary.base, themes.global.white.base, spacing.slim);
12666var LinkItemContainer = styled(ItemContainer$1)(_templateObject2$J());
12667
12668var ListItem = function ListItem(_ref) {
12669 var children = _ref.children,
12670 index = _ref.index,
12671 onClick = _ref.onClick,
12672 href = _ref.href,
12673 rest = _objectWithoutProperties(_ref, ["children", "index", "onClick", "href"]);
12674
12675 return React__default.createElement(Consumer$4, null, function (_ref2) {
12676 var onItemClick = _ref2.onItemClick,
12677 selectedIndex = _ref2.selectedIndex;
12678 return href ? React__default.createElement(LinkItemContainer, _extends({
12679 onClick: onClick,
12680 href: href,
12681 as: "a"
12682 }, rest), children) : React__default.createElement(ItemContainer$1, _extends({
12683 className: classNames({
12684 "links__list__item--selected": index === selectedIndex
12685 }),
12686 onClick: composeHandler(function () {
12687 return onItemClick({
12688 index: index
12689 });
12690 }, onClick)
12691 }, rest), children);
12692 });
12693};
12694
12695ListItem.defaultProps = {
12696 index: 0,
12697 onClick: function onClick() {},
12698 href: null,
12699 children: null
12700};
12701ListItem.propTypes = {
12702 children: PropTypes__default.node,
12703 index: PropTypes__default.number,
12704 onClick: PropTypes__default.func,
12705 href: PropTypes__default.string
12706};
12707
12708function _templateObject3$t() {
12709 var data = _taggedTemplateLiteral(["\n background-color: transparent;\n padding: 19px ", "px 19px ", "px;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n text-shadow: 1px 0px 0px transparent;\n transition: all 300ms ", ";\n\n .nav--inverted &,\n .links__list & {\n color: ", ";\n font-weight: ", ";\n }\n\n &:visited,\n &:active {\n color: ", ";\n .nav--inverted &,\n .links__list & {\n color: ", " !important;\n }\n }\n\n /* stylelint-disable */\n &:focus {\n outline: 1px solid ", ";\n .nav--inverted &,\n .links__list & {\n background-color: ", ";\n outline: 1px solid ", ";\n }\n }\n\n &:hover {\n outline: 0;\n background-color: rgba(38, 38, 38, 0.1);\n .nav--inverted &,\n .links__list & {\n background-color: ", ";\n }\n }\n /* stylelint-enable */\n"]);
12710
12711 _templateObject3$t = function _templateObject3() {
12712 return data;
12713 };
12714
12715 return data;
12716}
12717
12718function _templateObject2$K() {
12719 var data = _taggedTemplateLiteral(["\n top: 60px;\n left: -74%;\n"]);
12720
12721 _templateObject2$K = function _templateObject2() {
12722 return data;
12723 };
12724
12725 return data;
12726}
12727
12728function _templateObject$11() {
12729 var data = _taggedTemplateLiteral(["\n height: 60px;\n"]);
12730
12731 _templateObject$11 = function _templateObject() {
12732 return data;
12733 };
12734
12735 return data;
12736}
12737var LinkRow$1 = styled(LinkRow)(_templateObject$11());
12738var LinkList$1 = styled(LinkList).attrs({
12739 role: "menu"
12740})(_templateObject2$K());
12741var Link$3 = styled(LinkItem)(_templateObject3$t(), spacing.gutters.small, spacing.gutters.small, themes.global.white.base, typography.size.kilo, typography.weight.semiBold, constants.easing.easeInOutQuad, themes.global.onyx.base, typography.weight.regular, themes.global.white.base, themes.global.onyx.base, themes.global.white.base, colors.shale, themes.global.primary.base, colors.shale);
12742var Links = {
12743 Link: Link$3,
12744 LinkList: LinkList$1,
12745 LinkListItem: ListItem,
12746 LinkRow: LinkRow$1
12747};
12748
12749function _templateObject2$L() {
12750 var data = _taggedTemplateLiteral(["\n padding-right: ", "px;\n padding-left: ", "px;\n\n &.nav-button--last {\n padding-right: ", "px;\n }\n\n &.nav-button--first {\n padding-left: ", "px;\n }\n "]);
12751
12752 _templateObject2$L = function _templateObject2() {
12753 return data;
12754 };
12755
12756 return data;
12757}
12758
12759function _templateObject$12() {
12760 var data = _taggedTemplateLiteral(["\n backface-visibility: hidden;\n display: flex;\n align-items: center;\n flex: 0 1 auto;\n background-color: transparent;\n text-decoration: none;\n border: 0;\n height: 60px;\n outline: 0;\n appearance: none;\n padding-right: ", "px;\n padding-left: ", "px;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n transition: all 0.3ms ", ";\n .nav--inverted & {\n color: ", ";\n font-weight: ", ";\n }\n\n &.nav-button--last {\n padding-right: ", "px;\n }\n\n &.nav-button--first {\n padding-left: ", "px;\n }\n\n ", ";\n"]);
12761
12762 _templateObject$12 = function _templateObject() {
12763 return data;
12764 };
12765
12766 return data;
12767}
12768var BaseButton = styled.button(_templateObject$12(), spacing.gutters.small / 2, spacing.gutters.small / 2, themes.global.white.base, typography.size.kilo, typography.weight.semiBold, constants.easing.easeInOutQuad, themes.global.onyx.base, typography.weight.regular, spacing.gutters.small, spacing.gutters.small, smallAndUp(_templateObject2$L(), parseInt(spacing.normal, 10) / 2, parseInt(spacing.normal, 10) / 2, spacing.gutters.mediumAndUp, spacing.gutters.mediumAndUp));
12769
12770var Button$1 = function Button(_ref) {
12771 var children = _ref.children,
12772 href = _ref.href,
12773 target = _ref.target,
12774 rel = _ref.rel,
12775 className = _ref.className,
12776 isFirst = _ref.isFirst,
12777 isLast = _ref.isLast,
12778 props = _objectWithoutProperties(_ref, ["children", "href", "target", "rel", "className", "isFirst", "isLast"]);
12779
12780 if (href) {
12781 return React__default.createElement(BaseButton, _extends({}, props, {
12782 className: classNames({
12783 "nav-button--first": isFirst,
12784 "nav-button--last": isLast
12785 }, className),
12786 href: href,
12787 target: target,
12788 rel: getRelByTarget(target, rel),
12789 as: "a"
12790 }), children);
12791 }
12792
12793 return React__default.createElement(BaseButton, _extends({
12794 type: "button"
12795 }, props, {
12796 className: className
12797 }), children);
12798};
12799
12800Button$1.propTypes = {
12801 children: PropTypes__default.node,
12802 href: PropTypes__default.string,
12803 target: PropTypes__default.string,
12804 rel: PropTypes__default.string,
12805 isFirst: PropTypes__default.bool,
12806 isLast: PropTypes__default.bool,
12807 className: PropTypes__default.string
12808};
12809Button$1.defaultProps = {
12810 children: null,
12811 href: null,
12812 isFirst: false,
12813 isLast: false,
12814 target: "_self",
12815 rel: null,
12816 className: ""
12817};
12818
12819var MenuIcon = function MenuIcon(_ref) {
12820 var size = _ref.size,
12821 color = _ref.color,
12822 children = _ref.children,
12823 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
12824
12825 return React__default.createElement("svg", _extends({}, props, {
12826 viewBox: "0 0 20 17",
12827 width: size,
12828 height: size,
12829 fill: color
12830 }), children, React__default.createElement("path", {
12831 d: "M 0 0 H 20 V 3 H 0 z M 0 7 H 20 V 10 H 0 z M 0 14 H 20 V 17 H 0 z"
12832 }));
12833};
12834
12835MenuIcon.displayName = "MenuIcon";
12836MenuIcon.propTypes = {
12837 size: PropTypes__default.number,
12838 color: PropTypes__default.string,
12839 children: PropTypes__default.node
12840};
12841MenuIcon.defaultProps = {
12842 size: 24,
12843 color: "currentcolor",
12844 children: null
12845};
12846
12847function _templateObject3$u() {
12848 var data = _taggedTemplateLiteral(["\n padding-left: ", "px;\n "]);
12849
12850 _templateObject3$u = function _templateObject3() {
12851 return data;
12852 };
12853
12854 return data;
12855}
12856
12857function _templateObject2$M() {
12858 var data = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-right: ", "px;\n "]);
12859
12860 _templateObject2$M = function _templateObject2() {
12861 return data;
12862 };
12863
12864 return data;
12865}
12866
12867function _templateObject$13() {
12868 var data = _taggedTemplateLiteral(["\n padding-left: ", "px;\n padding-right: ", "px;\n\n ", " ", ";\n"]);
12869
12870 _templateObject$13 = function _templateObject() {
12871 return data;
12872 };
12873
12874 return data;
12875}
12876var LogoBtn = styled(Button$1)(_templateObject$13(), spacing.gutters.small / 2, spacing.gutters.small / 2, smallAndUp(_templateObject2$M(), spacing.gutters.mediumAndUp / 2, spacing.gutters.mediumAndUp / 2), mediumAndUp(_templateObject3$u(), spacing.gutters.mediumAndUp));
12877
12878var LogoContainer = function LogoContainer(_ref) {
12879 var children = _ref.children,
12880 href = _ref.href,
12881 props = _objectWithoutProperties(_ref, ["children", "href"]);
12882
12883 return React__default.createElement(LogoBtn, _extends({
12884 href: href
12885 }, props), children);
12886};
12887
12888LogoContainer.propTypes = {
12889 children: PropTypes__default.node,
12890 href: PropTypes__default.string
12891};
12892LogoContainer.defaultProps = {
12893 children: null,
12894 href: null
12895};
12896
12897var MenuButton = function MenuButton(_ref2) {
12898 var children = _ref2.children,
12899 props = _objectWithoutProperties(_ref2, ["children"]);
12900
12901 return React__default.createElement(Button$1, _extends({
12902 isFirst: true
12903 }, props), React__default.createElement(MenuIcon, {
12904 size: 20
12905 }), children);
12906};
12907
12908MenuButton.propTypes = {
12909 children: PropTypes__default.node
12910};
12911MenuButton.defaultProps = {
12912 children: null
12913};
12914
12915var SearchButton = function SearchButton(_ref3) {
12916 var children = _ref3.children,
12917 props = _objectWithoutProperties(_ref3, ["children"]);
12918
12919 return React__default.createElement(Button$1, props, React__default.createElement(SearchIconDeprecated, {
12920 size: 21
12921 }), children);
12922};
12923
12924SearchButton.propTypes = {
12925 children: PropTypes__default.node
12926};
12927SearchButton.defaultProps = {
12928 children: null
12929};
12930
12931var UserButton = function UserButton(_ref4) {
12932 var children = _ref4.children,
12933 iconProps = _ref4.iconProps,
12934 props = _objectWithoutProperties(_ref4, ["children", "iconProps"]);
12935
12936 return React__default.createElement(Button$1, props, React__default.createElement(UserIcon, _extends({
12937 size: 24
12938 }, iconProps)), children);
12939};
12940
12941UserButton.propTypes = {
12942 children: PropTypes__default.node,
12943 iconProps: PropTypes__default.objectOf(PropTypes__default.string)
12944};
12945UserButton.defaultProps = {
12946 children: null,
12947 iconProps: null
12948};
12949
12950var TextButton = function TextButton(_ref5) {
12951 var children = _ref5.children,
12952 props = _objectWithoutProperties(_ref5, ["children"]);
12953
12954 return React__default.createElement(Button$1, props, children);
12955};
12956
12957TextButton.propTypes = {
12958 children: PropTypes__default.node
12959};
12960TextButton.defaultProps = {
12961 children: null
12962};
12963var Buttons = {
12964 Button: Button$1,
12965 LogoContainer: LogoContainer,
12966 MenuButton: MenuButton,
12967 SearchButton: SearchButton,
12968 UserButton: UserButton,
12969 TextButton: TextButton
12970};
12971
12972function _templateObject2$N() {
12973 var data = _taggedTemplateLiteral(["\n height: 17px;\n width: 20px;\n position: relative;\n display: flex;\n align-items: center;\n"]);
12974
12975 _templateObject2$N = function _templateObject2() {
12976 return data;
12977 };
12978
12979 return data;
12980}
12981
12982function _templateObject$14() {
12983 var data = _taggedTemplateLiteral(["\n border-radius: ", ";\n overflow: hidden;\n height: 3px;\n background-color: ", ";\n width: 100%;\n display: block;\n transition: all 300ms ", ";\n\n &:before,\n &:after {\n content: \"\";\n border-radius: ", ";\n height: 3px;\n background-color: ", ";\n width: 100%;\n display: block;\n position: absolute;\n transform: rotate(0deg);\n transform-origin: right center;\n transition: transform 300ms ", ",\n background-color 300ms ", ";\n }\n\n &:before {\n top: 0;\n left: 0;\n }\n\n &:after {\n bottom: 0;\n left: 0;\n }\n\n .nav--inverted & {\n background-color: ", ";\n\n &:before,\n &:after {\n background-color: ", ";\n }\n }\n\n .hamburger--opened & {\n background-color: transparent;\n &:before {\n transform: rotate(-45deg);\n }\n\n &:after {\n transform: rotate(45deg);\n }\n }\n"]);
12984
12985 _templateObject$14 = function _templateObject() {
12986 return data;
12987 };
12988
12989 return data;
12990}
12991var HamburgerContent = styled.span(_templateObject$14(), constants.borderRadius.small, getThemeValue("white", "base"), constants.easing.easeInOutQuad, constants.borderRadius.small, getThemeValue("white", "base"), constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, getThemeValue("onyx", "base"), getThemeValue("onyx", "base"));
12992var HamburgerIconWrapper = styled.span(_templateObject2$N());
12993
12994var HamburgerIcon = function HamburgerIcon(props) {
12995 return React__default.createElement(HamburgerIconWrapper, props, React__default.createElement(HamburgerContent, null));
12996};
12997
12998var MenuButton$1 = function MenuButton(_ref) {
12999 var iconClassName = _ref.iconClassName,
13000 className = _ref.className,
13001 props = _objectWithoutProperties(_ref, ["iconClassName", "className"]);
13002
13003 return React__default.createElement(Button$1, _extends({}, props, {
13004 className: classNames("menu-button", className)
13005 }), React__default.createElement(HamburgerIcon, {
13006 className: iconClassName
13007 }));
13008};
13009
13010MenuButton$1.propTypes = {
13011 isLast: PropTypes__default.bool,
13012 className: PropTypes__default.string
13013};
13014MenuButton$1.defaultProps = {
13015 isLast: true,
13016 className: ""
13017};
13018
13019var Drawer =
13020/*#__PURE__*/
13021function (_React$Component) {
13022 _inherits(Drawer, _React$Component);
13023
13024 function Drawer() {
13025 var _getPrototypeOf2;
13026
13027 var _this;
13028
13029 _classCallCheck(this, Drawer);
13030
13031 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13032 args[_key] = arguments[_key];
13033 }
13034
13035 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Drawer)).call.apply(_getPrototypeOf2, [this].concat(args)));
13036
13037 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getHeaderContent", function (props) {
13038 var header = _this.props.header;
13039 if (typeof header === "function") return header(props);
13040
13041 if (typeof header === "string") {
13042 return React__default.createElement(TextBase, {
13043 size: "kilo",
13044 variant: "light",
13045 primary: true,
13046 weight: "semiBold"
13047 }, header);
13048 }
13049
13050 return header;
13051 });
13052
13053 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getHeaderLayout", function (_ref) {
13054 var toggleDrawer = _ref.toggleDrawer,
13055 isOpen = _ref.isOpen;
13056 return React__default.createElement(HeaderContent, null, React__default.createElement("div", null, _this.getHeaderContent({
13057 toggleDrawer: toggleDrawer,
13058 isOpen: isOpen
13059 })), React__default.createElement(CloseButton, {
13060 type: "button",
13061 onClick: toggleDrawer
13062 }, React__default.createElement(HamburgerIcon, {
13063 className: classNames({
13064 hamburger: true,
13065 "hamburger--opened": isOpen,
13066 "hamburger--closed": !isOpen
13067 })
13068 })));
13069 });
13070
13071 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderChildren", function (props) {
13072 var children = _this.props.children;
13073 if (typeof children === "function") return children(props);
13074 return children;
13075 });
13076
13077 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderHeader", function (_ref2) {
13078 var toggleDrawer = _ref2.toggleDrawer,
13079 isOpen = _ref2.isOpen,
13080 withSpotLight = _ref2.withSpotLight;
13081
13082 var headerLayout = _this.getHeaderLayout({
13083 toggleDrawer: toggleDrawer,
13084 isOpen: isOpen
13085 });
13086
13087 return withSpotLight ? React__default.createElement(Gradient, {
13088 className: "gradient--spotlight",
13089 style: {
13090 height: "60px",
13091 position: "relative"
13092 }
13093 }, headerLayout) : headerLayout;
13094 });
13095
13096 return _this;
13097 }
13098
13099 _createClass(Drawer, [{
13100 key: "render",
13101 value: function render() {
13102 var _this2 = this;
13103
13104 var _this$props = this.props,
13105 className = _this$props.className,
13106 withSpotLight = _this$props.withSpotLight,
13107 rest = _objectWithoutProperties(_this$props, ["className", "withSpotLight"]);
13108
13109 return React__default.createElement(Consumer, null, function (_ref3) {
13110 var isOpen = _ref3.isOpen,
13111 toggleDrawer = _ref3.toggleDrawer;
13112 return React__default.createElement(DrawerContainer, _extends({}, omitKeys(["children", "header"], rest), {
13113 className: classNames({
13114 "drawer__content--open": isOpen
13115 }, className)
13116 }), React__default.createElement(DrawerContent, null, _this2.renderHeader({
13117 toggleDrawer: toggleDrawer,
13118 isOpen: isOpen,
13119 withSpotLight: withSpotLight
13120 }), _this2.renderChildren({
13121 toggleDrawer: toggleDrawer,
13122 isOpen: isOpen
13123 })));
13124 });
13125 }
13126 }]);
13127
13128 return Drawer;
13129}(React__default.Component);
13130
13131_defineProperty(Drawer, "propTypes", {
13132 children: PropTypes__default.oneOfType([PropTypes__default.node, PropTypes__default.element, PropTypes__default.func]),
13133 header: PropTypes__default.oneOfType([PropTypes__default.node, PropTypes__default.func, PropTypes__default.string]),
13134 withSpotLight: PropTypes__default.bool
13135});
13136
13137_defineProperty(Drawer, "defaultProps", {
13138 children: null,
13139 header: null,
13140 withSpotLight: true
13141});
13142
13143var noop$2 = function noop() {};
13144
13145var DrawerMenu =
13146/*#__PURE__*/
13147function (_React$Component) {
13148 _inherits(DrawerMenu, _React$Component);
13149
13150 function DrawerMenu() {
13151 _classCallCheck(this, DrawerMenu);
13152
13153 return _possibleConstructorReturn(this, _getPrototypeOf(DrawerMenu).apply(this, arguments));
13154 }
13155
13156 _createClass(DrawerMenu, [{
13157 key: "componentDidMount",
13158 value: function componentDidMount() {
13159 var _this$props = this.props,
13160 children = _this$props.children,
13161 rest = _objectWithoutProperties(_this$props, ["children"]);
13162
13163 this.props.setContent(React__default.createElement(Drawer, omitKeys(["onClick", "toggleDrawer", "isOpen", "setContent"], rest), children));
13164 }
13165 }, {
13166 key: "render",
13167 value: function render() {
13168 var _this$props2 = this.props,
13169 onClick = _this$props2.onClick,
13170 toggleDrawer = _this$props2.toggleDrawer,
13171 isOpen = _this$props2.isOpen,
13172 rest = _objectWithoutProperties(_this$props2, ["onClick", "toggleDrawer", "isOpen"]);
13173
13174 return React__default.createElement(MenuButton$1, _extends({
13175 onClick: composeHandler(toggleDrawer, onClick),
13176 iconClassName: classNames({
13177 hamburger: true,
13178 "hamburger--opened": isOpen,
13179 "hamburger--closed": !isOpen
13180 })
13181 }, rest));
13182 }
13183 }]);
13184
13185 return DrawerMenu;
13186}(React__default.Component);
13187
13188_defineProperty(DrawerMenu, "propTypes", {
13189 onClick: PropTypes__default.func,
13190 children: PropTypes__default.oneOfType([PropTypes__default.node, PropTypes__default.element, PropTypes__default.func]),
13191 setContent: PropTypes__default.func.isRequired,
13192 toggleDrawer: PropTypes__default.func.isRequired,
13193 isOpen: PropTypes__default.bool.isRequired
13194});
13195
13196_defineProperty(DrawerMenu, "defaultProps", {
13197 onClick: noop$2,
13198 children: null
13199});
13200
13201var DrawerMenuWrapper = function DrawerMenuWrapper(props) {
13202 return React__default.createElement(Consumer, null, function () {
13203 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
13204 _ref$isOpen = _ref.isOpen,
13205 isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
13206 _ref$setContent = _ref.setContent,
13207 setContent = _ref$setContent === void 0 ? noop$2 : _ref$setContent,
13208 _ref$toggleDrawer = _ref.toggleDrawer,
13209 toggleDrawer = _ref$toggleDrawer === void 0 ? noop$2 : _ref$toggleDrawer;
13210
13211 return React__default.createElement(DrawerMenu, _objectSpread({}, props, {
13212 isOpen: isOpen,
13213 setContent: setContent,
13214 toggleDrawer: toggleDrawer
13215 }));
13216 });
13217};
13218
13219function _templateObject10$1() {
13220 var data = _taggedTemplateLiteral(["\n background-color: rgba(0, 0, 0, 0.2);\n text-align: center;\n font-size: ", ";\n font-weight: ", ";\n padding-top: 2px;\n padding-bottom: 2px;\n"]);
13221
13222 _templateObject10$1 = function _templateObject10() {
13223 return data;
13224 };
13225
13226 return data;
13227}
13228
13229function _templateObject9$5() {
13230 var data = _taggedTemplateLiteral(["width: 50%;"]);
13231
13232 _templateObject9$5 = function _templateObject9() {
13233 return data;
13234 };
13235
13236 return data;
13237}
13238
13239function _templateObject8$6() {
13240 var data = _taggedTemplateLiteral(["\n flex: 0 1 auto;\n width: 310px;\n min-width: 310px;\n max-width: 310px;\n align-items: center;\n height: 60px;\n display: flex;\n padding-left: ", "px;\n ", ";\n"]);
13241
13242 _templateObject8$6 = function _templateObject8() {
13243 return data;
13244 };
13245
13246 return data;
13247}
13248
13249function _templateObject7$8() {
13250 var data = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 0 auto;\n justify-content: flex-end;\n height: 60px;\n"]);
13251
13252 _templateObject7$8 = function _templateObject7() {
13253 return data;
13254 };
13255
13256 return data;
13257}
13258
13259function _templateObject6$a() {
13260 var data = _taggedTemplateLiteral(["\n padding: 0 44px;\n "]);
13261
13262 _templateObject6$a = function _templateObject6() {
13263 return data;
13264 };
13265
13266 return data;
13267}
13268
13269function _templateObject5$c() {
13270 var data = _taggedTemplateLiteral(["\n margin: 0 auto;\n "]);
13271
13272 _templateObject5$c = function _templateObject5() {
13273 return data;
13274 };
13275
13276 return data;
13277}
13278
13279function _templateObject4$l() {
13280 var data = _taggedTemplateLiteral(["\n width: 100%;\n height: 60px;\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n align-content: center;\n z-index: 5;\n ", ";\n\n ", ";\n"]);
13281
13282 _templateObject4$l = function _templateObject4() {
13283 return data;
13284 };
13285
13286 return data;
13287}
13288
13289function _templateObject3$v() {
13290 var data = _taggedTemplateLiteral(["\n background-image: linear-gradient(86deg, rgba(0, 0, 0, 0), #000000);\n "]);
13291
13292 _templateObject3$v = function _templateObject3() {
13293 return data;
13294 };
13295
13296 return data;
13297}
13298
13299function _templateObject2$O() {
13300 var data = _taggedTemplateLiteral(["\n background-image: linear-gradient(82deg, rgba(0, 0, 0, 0), #000000);\n "]);
13301
13302 _templateObject2$O = function _templateObject2() {
13303 return data;
13304 };
13305
13306 return data;
13307}
13308
13309function _templateObject$15() {
13310 var data = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n right: 0;\n min-height: 60px;\n width: 100%;\n font-size: ", ";\n background-color: transparent;\n color: ", ";\n font-weight: ", ";\n transition: all 300ms ", ";\n\n &.nav--relative {\n position: relative;\n }\n\n &.nav--absolute {\n position: absolute;\n }\n\n &.nav--fixed {\n position: fixed;\n }\n\n &.nav--inverted {\n background-color: ", ";\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);\n }\n\n &.nav--overlay:after {\n content: \"\";\n opacity: 0.4;\n top: 0;\n left: 0;\n right: 0;\n position: absolute;\n height: 60px;\n z-index: 4;\n background-image: linear-gradient(77deg, rgba(0, 0, 0, 0), #000000);\n ", ";\n\n ", ";\n }\n"]);
13311
13312 _templateObject$15 = function _templateObject() {
13313 return data;
13314 };
13315
13316 return data;
13317}
13318var Nav = styled.nav.attrs({
13319 role: "navigation"
13320})(_templateObject$15(), typography.size.kilo, themes.global.white.base, typography.weight.semiBold, constants.easing.easeInOutQuad, themes.global.white.base, smallAndUp(_templateObject2$O()), mediumAndUp(_templateObject3$v()));
13321var Container$8 = styled.div(_templateObject4$l(), mediumAndUp(_templateObject5$c()), xLargeAndUp(_templateObject6$a()));
13322var Right = styled.div(_templateObject7$8());
13323var Left = styled.div(_templateObject8$6(), parseInt(spacing.normal, 10) / 2, mediumAndUp(_templateObject9$5()));
13324var MessageContainer = styled.div(_templateObject10$1(), typography.size.hecto, typography.weight.regular);
13325
13326var NavBar = function NavBar(_ref) {
13327 var children = _ref.children,
13328 position = _ref.position,
13329 invert = _ref.invert,
13330 className = _ref.className,
13331 backgroundColor = _ref.backgroundColor,
13332 style = _ref.style,
13333 message = _ref.message,
13334 props = _objectWithoutProperties(_ref, ["children", "position", "invert", "className", "backgroundColor", "style", "message"]);
13335
13336 return React__default.createElement(Nav, _extends({}, props, {
13337 className: classNames(position && "nav--".concat(position), invert && "nav--inverted", !!backgroundColor && "nav--overlay", className),
13338 invert: invert,
13339 style: _objectSpread({}, style, {
13340 backgroundColor: backgroundColor
13341 })
13342 }), message ? React__default.createElement(MessageContainer, null, React__default.createElement(Row, null, React__default.createElement(Column, {
13343 role: "note"
13344 }, message))) : null, React__default.createElement(Container$8, null, children));
13345};
13346
13347NavBar.propTypes = {
13348 children: PropTypes__default.node,
13349 className: PropTypes__default.string,
13350 position: PropTypes__default.oneOf(["relative", "absolute", "fixed"]),
13351 invert: PropTypes__default.bool,
13352 message: PropTypes__default.node,
13353 backgroundColor: PropTypes__default.string,
13354 style: PropTypes__default.objectOf(PropTypes__default.string)
13355};
13356NavBar.defaultProps = {
13357 className: null,
13358 children: null,
13359 position: "relative",
13360 invert: false,
13361 message: null,
13362 backgroundColor: null,
13363 style: {}
13364};
13365NavBar.MenuButton = Buttons.MenuButton;
13366NavBar.DrawerMenu = DrawerMenuWrapper;
13367NavBar.SearchButton = Buttons.SearchButton;
13368NavBar.UserButton = Buttons.UserButton;
13369NavBar.TextButton = Buttons.TextButton;
13370NavBar.LinkRow = Links.LinkRow;
13371NavBar.LinkList = Links.LinkList;
13372NavBar.LinkListItem = Links.LinkListItem;
13373NavBar.Link = Links.Link;
13374NavBar.Right = Right;
13375NavBar.Left = Left;
13376NavBar.LogoContainer = Buttons.LogoContainer;
13377
13378function _templateObject3$w() {
13379 var data = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n padding-left: ", ";\n color: ", ";\n\n .search--focus & {\n color: ", ";\n }\n"]);
13380
13381 _templateObject3$w = function _templateObject3() {
13382 return data;
13383 };
13384
13385 return data;
13386}
13387
13388function _templateObject2$P() {
13389 var data = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n height: ", ";\n border-radius: ", ";\n overflow: hidden;\n outline: 0;\n border: ", ";\n color: ", ";\n background-color: ", ";\n"]);
13390
13391 _templateObject2$P = function _templateObject2() {
13392 return data;
13393 };
13394
13395 return data;
13396}
13397
13398function _templateObject$16() {
13399 var data = _taggedTemplateLiteral(["\n display: inline-block;\n width: 100%;\n padding: ", ";\n background-color: transparent;\n color: ", ";\n border: 0;\n font-size: ", ";\n &:focus {\n background-color: ", ";\n color: ", ";\n &::placeholder {\n color: #26262699;\n }\n }\n /* stylelint-disable */\n &::placeholder {\n color: ", ";\n }\n &::-ms-clear {\n display: none;\n }\n &::-webkit-search-cancel-button {\n display: none;\n }\n /* stylelint-enable */\n"]);
13400
13401 _templateObject$16 = function _templateObject() {
13402 return data;
13403 };
13404
13405 return data;
13406}
13407
13408var invertPadding = function invertPadding(invert) {
13409 return invert ? "8px 12px 7px calc(12px + 12px + 10px)" : "9px 12px 8px calc(12px + 12px + 10px)";
13410};
13411
13412var Input = styled.input.attrs({
13413 type: "search"
13414})(_templateObject$16(), function (props) {
13415 return props.slim ? invertPadding(props.invert) : "14px 16px 14px calc(16px + 16px + 8px)";
13416}, function (props) {
13417 return props.invert ? themes.global.onyx.base : themes.global.white.base;
13418}, function (props) {
13419 return props.slim ? typography.size.hecto : typography.size.kilo;
13420}, themes.global.white.base, themes.global.onyx.base, function (props) {
13421 return props.invert ? "#26262699" : themes.global.white.base;
13422});
13423var Container$9 = styled.div(_templateObject2$P(), function (props) {
13424 return props.slim ? "36px" : "auto";
13425}, function (props) {
13426 return props.slim ? constants.borderRadius.large : constants.borderRadius.small;
13427}, function (props) {
13428 return props.invert ? "1px solid #bfbfbf" : "0";
13429}, function (props) {
13430 return props.invert ? themes.global.onyx.base : themes.global.white.base;
13431}, function (props) {
13432 return props.invert ? themes.global.white.base : themes.global.white.lighter;
13433});
13434var IconContainer$1 = styled.div(_templateObject3$w(), function (props) {
13435 return props.slim ? "12px" : "16px";
13436}, function (props) {
13437 return props.invert ? themes.global.onyx.base : themes.global.white.base;
13438}, themes.global.onyx.base);
13439
13440var SearchInput =
13441/*#__PURE__*/
13442function (_React$Component) {
13443 _inherits(SearchInput, _React$Component);
13444
13445 function SearchInput() {
13446 var _getPrototypeOf2;
13447
13448 var _this;
13449
13450 _classCallCheck(this, SearchInput);
13451
13452 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13453 args[_key] = arguments[_key];
13454 }
13455
13456 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SearchInput)).call.apply(_getPrototypeOf2, [this].concat(args)));
13457
13458 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
13459 isFocused: false
13460 });
13461
13462 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onBlur", function () {
13463 return _this.setState(function () {
13464 return {
13465 isFocused: false
13466 };
13467 });
13468 });
13469
13470 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocus", function () {
13471 return _this.setState(function () {
13472 return {
13473 isFocused: true
13474 };
13475 });
13476 });
13477
13478 return _this;
13479 }
13480
13481 _createClass(SearchInput, [{
13482 key: "render",
13483 value: function render() {
13484 var _this$props = this.props,
13485 slim = _this$props.slim,
13486 invert = _this$props.invert,
13487 className = _this$props.className,
13488 iconProps = _this$props.iconProps,
13489 props = _objectWithoutProperties(_this$props, ["slim", "invert", "className", "iconProps"]);
13490
13491 return React__default.createElement(Container$9, {
13492 slim: slim,
13493 invert: invert,
13494 className: classNames({
13495 "search--focus": this.state.isFocused
13496 }, className)
13497 }, React__default.createElement(IconContainer$1, {
13498 slim: slim,
13499 invert: invert
13500 }, React__default.createElement(SearchIcon, _extends({
13501 size: "small"
13502 }, iconProps))), React__default.createElement(Input, _objectSpread({}, props, {
13503 onBlur: composeHandler(this.onBlur, props.onBlur),
13504 onFocus: composeHandler(this.onFocus, props.onFocus),
13505 slim: slim,
13506 invert: invert
13507 })));
13508 }
13509 }]);
13510
13511 return SearchInput;
13512}(React__default.Component);
13513
13514_defineProperty(SearchInput, "propTypes", {
13515 onBlur: PropTypes__default.func,
13516 onFocus: PropTypes__default.func,
13517 slim: PropTypes__default.bool,
13518 invert: PropTypes__default.bool,
13519 className: PropTypes__default.string,
13520 iconProps: PropTypes__default.objectOf(PropTypes__default.string)
13521});
13522
13523_defineProperty(SearchInput, "defaultProps", {
13524 onBlur: null,
13525 onFocus: null,
13526 slim: false,
13527 invert: false,
13528 className: null,
13529 iconProps: null
13530});
13531
13532var SEARCH_HEIGHT = {
13533 small: "36px",
13534 large: "44px"
13535};
13536var getSearchHeight = function getSearchHeight(variant) {
13537 return SEARCH_HEIGHT[variant] || SEARCH_HEIGHT.large;
13538};
13539var SearchMinWidth = "320px";
13540var SuggestMaxHeight = "700px";
13541
13542function _templateObject13$1() {
13543 var data = _taggedTemplateLiteral(["\n position: fixed;\n z-index: ", ";\n top: 0;\n width: 100%;\n left: 0;\n\n .search--container {\n padding-left: ", ";\n border-radius: 0;\n border-top: transparent;\n border-left: transparent;\n border-right: transparent;\n }\n\n .search--search-icon {\n display: none;\n }\n"]);
13544
13545 _templateObject13$1 = function _templateObject13() {
13546 return data;
13547 };
13548
13549 return data;
13550}
13551
13552function _templateObject12$1() {
13553 var data = _taggedTemplateLiteral(["\n max-height: ", ";\n border: 1px solid ", ";\n border-top: none;\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n "]);
13554
13555 _templateObject12$1 = function _templateObject12() {
13556 return data;
13557 };
13558
13559 return data;
13560}
13561
13562function _templateObject11$1() {
13563 var data = _taggedTemplateLiteral(["\n max-width: 100%;\n height: 100%;\n max-height: 100%;\n padding: ", ";\n background-color: ", ";\n box-shadow: ", ";\n overflow-y: auto;\n box-sizing: border-box;\n\n ", ";\n"]);
13564
13565 _templateObject11$1 = function _templateObject11() {
13566 return data;
13567 };
13568
13569 return data;
13570}
13571
13572function _templateObject10$2() {
13573 var data = _taggedTemplateLiteral(["\n width: 40px;\n justify-content: left;\n "]);
13574
13575 _templateObject10$2 = function _templateObject10() {
13576 return data;
13577 };
13578
13579 return data;
13580}
13581
13582function _templateObject9$6() {
13583 var data = _taggedTemplateLiteral(["\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n height: 100%;\n width: 44px;\n margin-left: ", ";\n display: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: ", ";\n\n svg {\n margin-left: ", ";\n }\n\n ", ";\n"]);
13584
13585 _templateObject9$6 = function _templateObject9() {
13586 return data;
13587 };
13588
13589 return data;
13590}
13591
13592function _templateObject8$7() {
13593 var data = _taggedTemplateLiteral(["\n display: none;\n "]);
13594
13595 _templateObject8$7 = function _templateObject8() {
13596 return data;
13597 };
13598
13599 return data;
13600}
13601
13602function _templateObject7$9() {
13603 var data = _taggedTemplateLiteral(["\n border: none;\n background: transparent;\n outline: none;\n display: ", ";\n align-items: center;\n margin-left: ", ";\n color: ", ";\n padding: 0 ", " 0 0;\n height: 100%;\n\n ", ";\n"]);
13604
13605 _templateObject7$9 = function _templateObject7() {
13606 return data;
13607 };
13608
13609 return data;
13610}
13611
13612function _templateObject6$b() {
13613 var data = _taggedTemplateLiteral(["\n margin: 0 ", ";\n"]);
13614
13615 _templateObject6$b = function _templateObject6() {
13616 return data;
13617 };
13618
13619 return data;
13620}
13621
13622function _templateObject5$d() {
13623 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n height: 100%;\n color: ", ";\n padding: 0;\n border: none;\n background: none;\n flex-grow: 1;\n\n &::placeholder {\n /* chrome, firefox */\n color: ", ";\n }\n\n &::-ms-clear {\n display: none;\n }\n\n :focus {\n outline: none;\n }\n"]);
13624
13625 _templateObject5$d = function _templateObject5() {
13626 return data;
13627 };
13628
13629 return data;
13630}
13631
13632function _templateObject4$m() {
13633 var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
13634
13635 _templateObject4$m = function _templateObject4() {
13636 return data;
13637 };
13638
13639 return data;
13640}
13641
13642function _templateObject3$x() {
13643 var data = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n width: 56px;\n"]);
13644
13645 _templateObject3$x = function _templateObject3() {
13646 return data;
13647 };
13648
13649 return data;
13650}
13651
13652function _templateObject2$Q() {
13653 var data = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n padding: 0;\n border: none;\n background: transparent;\n outline: none;\n\n .search--container & {\n visibility: visible;\n }\n"]);
13654
13655 _templateObject2$Q = function _templateObject2() {
13656 return data;
13657 };
13658
13659 return data;
13660}
13661
13662function _templateObject$17() {
13663 var data = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n align-items: center;\n height: ", ";\n max-width: 100%;\n min-width: ", ";\n border: ", ";\n border-radius: ", ";\n background-color: ", ";\n\n ", ";\n\n visibility: visible;\n > * {\n visibility: visible;\n }\n\n &.search--container-icon-only {\n visibility: hidden;\n > * {\n visibility: hidden;\n }\n\n &.search--container-focused,\n &.search--container-has-value {\n visibility: visible;\n > * {\n visibility: visible;\n }\n }\n }\n"]);
13664
13665 _templateObject$17 = function _templateObject() {
13666 return data;
13667 };
13668
13669 return data;
13670}
13671var SearchContainer = styled.div(_templateObject$17(), function (_ref) {
13672 var variant = _ref.variant;
13673 return getSearchHeight(variant);
13674}, SearchMinWidth, function (_ref2) {
13675 var isFocused = _ref2.isFocused;
13676 return isFocused ? "1px solid ".concat(themes.global.gray02) : "none";
13677}, constants.borderRadius.small, function (_ref3) {
13678 var isFocused = _ref3.isFocused;
13679 return isFocused ? themes.global.white.base : themes.global.white.muted;
13680}, function (_ref4) {
13681 var isSuggestOpened = _ref4.isSuggestOpened;
13682 return isSuggestOpened ? "border-bottom-left-radius: 0; border-bottom-right-radius: 0;" : "";
13683});
13684var StyledSearchIcon = styled.button(_templateObject2$Q(), function (_ref5) {
13685 var isFocused = _ref5.isFocused;
13686 return !isFocused ? themes.global.white.base : themes.global.gray02;
13687});
13688var OpenSearch = styled(StyledSearchIcon)(_templateObject3$x());
13689var SearchIconContainer = styled.div(_templateObject4$m());
13690var StyledInput = styled.input.attrs({
13691 type: "search",
13692 autoComplete: "off"
13693})(_templateObject5$d(), function (_ref6) {
13694 var variant = _ref6.variant;
13695 return variant === SMALL ? typography.size.hecto : typography.size.kilo;
13696}, function (_ref7) {
13697 var isFocused = _ref7.isFocused;
13698 return !isFocused ? themes.global.white.base : themes.global.gray01;
13699}, function (_ref8) {
13700 var isFocused = _ref8.isFocused;
13701 return !isFocused ? themes.global.white.base : themes.global.onyx.muted;
13702});
13703var Icon = styled(SearchIcon)(_templateObject6$b(), spacing.moderate);
13704var Cancel = styled.button(_templateObject7$9(), function (_ref9) {
13705 var showElement = _ref9.showElement;
13706 return showElement ? "flex" : "none";
13707}, spacing.cozy, function (_ref10) {
13708 var isFocused = _ref10.isFocused;
13709 return isFocused ? themes.global.primary.base : themes.global.white.base;
13710}, spacing.moderate, mediumAndUp(_templateObject8$7()));
13711var Clear = styled.button(_templateObject9$6(), spacing.cozy, function (_ref11) {
13712 var value = _ref11.value;
13713 return value ? "flex" : "none";
13714}, function (_ref12) {
13715 var isFocused = _ref12.isFocused;
13716 return !isFocused ? themes.global.white.base : themes.global.gray02;
13717}, function (_ref13) {
13718 var variant = _ref13.variant;
13719 return variant === SMALL ? spacing.cozy : 0;
13720}, mediumAndUp(_templateObject10$2()));
13721var SearchSuggest = styled.div(_templateObject11$1(), spacing.moderate, themes.global.white.base, cardBoxShadow, mediumAndUp(_templateObject12$1(), SuggestMaxHeight, themes.global.gray02, constants.borderRadius.small, constants.borderRadius.small));
13722var MobileActiveSearch = styled.div(_templateObject13$1(), zIndex.searchsuggest.base, spacing.moderate);
13723SearchSuggest.displayName = "SearchSuggest";
13724
13725var SearchInput$1 =
13726/*#__PURE__*/
13727function (_Component) {
13728 _inherits(SearchInput, _Component);
13729
13730 function SearchInput(props) {
13731 var _this;
13732
13733 _classCallCheck(this, SearchInput);
13734
13735 _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchInput).call(this, props));
13736
13737 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "containerClick", function () {
13738 _this.inputClicked = true;
13739 global.window.removeEventListener("click", _this.windowClick);
13740 global.window.addEventListener("click", _this.windowClick);
13741 });
13742
13743 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "windowClick", function () {
13744 if (!_this.inputClicked) {
13745 _this.blurInput();
13746 }
13747
13748 _this.inputClicked = false;
13749 });
13750
13751 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurInput", function () {
13752 global.window.removeEventListener("click", _this.windowClick);
13753 var onBlur = _this.props.onBlur;
13754 var isFocused = _this.state.isFocused;
13755
13756 if (isFocused) {
13757 _this.setState({
13758 isFocused: false
13759 });
13760
13761 onBlur();
13762 }
13763 });
13764
13765 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusInput", function () {
13766 var onFocus = _this.props.onFocus;
13767 var isFocused = _this.state.isFocused;
13768
13769 if (!isFocused) {
13770 _this.setState({
13771 isFocused: true
13772 }, function () {
13773 return _this.inputRef.current.focus();
13774 });
13775
13776 onFocus();
13777 }
13778
13779 _this.inputRef.current.focus();
13780 });
13781
13782 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "searchIconClick", function () {
13783 var searchIconSelect = _this.props.searchIconSelect;
13784
13785 _this.focusInput();
13786
13787 searchIconSelect();
13788 });
13789
13790 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearTextClick", function () {
13791 var _this$props = _this.props,
13792 clearText = _this$props.clearText,
13793 isMobile = _this$props.isMobile;
13794
13795 if (!isMobile) {
13796 _this.focusInput();
13797 }
13798
13799 clearText();
13800 });
13801
13802 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cancelClick", function () {
13803 var cancelCallback = _this.props.cancelCallback;
13804
13805 _this.setState({
13806 isFocused: false
13807 });
13808
13809 cancelCallback();
13810 });
13811
13812 _this.state = {
13813 isFocused: false
13814 };
13815 _this.inputRef = React__default.createRef();
13816 _this.inputClicked = false;
13817 return _this;
13818 }
13819
13820 _createClass(SearchInput, [{
13821 key: "componentWillUnmount",
13822 value: function componentWillUnmount() {
13823 global.window.removeEventListener("click", this.windowClick);
13824 }
13825 }, {
13826 key: "render",
13827 value: function render() {
13828 var _this$props2 = this.props,
13829 variant = _this$props2.variant,
13830 placeholder = _this$props2.placeholder,
13831 value = _this$props2.value,
13832 onChange = _this$props2.onChange,
13833 className = _this$props2.className,
13834 iconOnly = _this$props2.iconOnly,
13835 searchBtnAreaLabel = _this$props2.searchBtnAreaLabel,
13836 clearBtnAreaLabel = _this$props2.clearBtnAreaLabel,
13837 cancelBtnAreaLabel = _this$props2.cancelBtnAreaLabel,
13838 inputAreaLabel = _this$props2.inputAreaLabel,
13839 isSuggestOpened = _this$props2.isSuggestOpened,
13840 hasBackground = _this$props2.hasBackground,
13841 isMobile = _this$props2.isMobile,
13842 onFocus = _this$props2.onFocus,
13843 onBlur = _this$props2.onBlur,
13844 name = _this$props2.name,
13845 rest = _objectWithoutProperties(_this$props2, ["variant", "placeholder", "value", "onChange", "className", "iconOnly", "searchBtnAreaLabel", "clearBtnAreaLabel", "cancelBtnAreaLabel", "inputAreaLabel", "isSuggestOpened", "hasBackground", "isMobile", "onFocus", "onBlur", "name"]);
13846
13847 var isFocused = this.state.isFocused;
13848 var isStyleForFocusedUsed = !hasBackground || isFocused;
13849 var showCancelButton = isFocused && isMobile;
13850 return React__default.createElement(SearchContainer, _extends({
13851 variant: variant,
13852 isFocused: isStyleForFocusedUsed,
13853 isSuggestOpened: isSuggestOpened
13854 }, rest, {
13855 onClick: this.containerClick,
13856 className: classNames("search--container", className, {
13857 "search--container-has-value": value,
13858 "search--container-icon-only": iconOnly,
13859 "search--container-focused": isFocused
13860 })
13861 }), React__default.createElement(StyledSearchIcon, {
13862 type: "button",
13863 variant: variant,
13864 isFocused: isStyleForFocusedUsed,
13865 onClick: this.searchIconClick,
13866 "aria-label": searchBtnAreaLabel,
13867 className: "search--search-icon"
13868 }, React__default.createElement(Icon, {
13869 size: variant,
13870 color: "currentColor"
13871 })), React__default.createElement(StyledInput, {
13872 variant: variant,
13873 placeholder: placeholder,
13874 value: value,
13875 onChange: onChange,
13876 onFocus: this.focusInput,
13877 isFocused: isStyleForFocusedUsed,
13878 ref: this.inputRef,
13879 "aria-label": inputAreaLabel,
13880 className: classNames("search--input", {
13881 "search--input-focused": isFocused
13882 }),
13883 name: name
13884 }), React__default.createElement(Clear, {
13885 type: "button",
13886 onClick: this.clearTextClick,
13887 value: value,
13888 "aria-label": clearBtnAreaLabel,
13889 className: "search--clear-icon",
13890 isFocused: isStyleForFocusedUsed,
13891 variant: variant
13892 }, React__default.createElement(ClearIcon, {
13893 size: variant,
13894 color: "currentColor"
13895 })), React__default.createElement(Cancel, {
13896 type: "button",
13897 isFocused: isStyleForFocusedUsed,
13898 showElement: showCancelButton,
13899 onClick: this.cancelClick,
13900 "aria-label": cancelBtnAreaLabel,
13901 className: "search--cancel-icon",
13902 iconOnly: iconOnly
13903 }, "Cancel"));
13904 }
13905 }]);
13906
13907 return SearchInput;
13908}(Component);
13909
13910SearchInput$1.propTypes = {
13911 variant: PropTypes__default.oneOf(SIZES_SL),
13912 placeholder: PropTypes__default.string,
13913 className: PropTypes__default.string,
13914 searchBtnAreaLabel: PropTypes__default.string,
13915 clearBtnAreaLabel: PropTypes__default.string,
13916 cancelBtnAreaLabel: PropTypes__default.string,
13917 inputAreaLabel: PropTypes__default.string,
13918 value: PropTypes__default.string.isRequired,
13919 onChange: PropTypes__default.func.isRequired,
13920 onFocus: PropTypes__default.func,
13921 onBlur: PropTypes__default.func,
13922 searchIconSelect: PropTypes__default.func,
13923 clearText: PropTypes__default.func,
13924 cancelCallback: PropTypes__default.func,
13925 hasBackground: PropTypes__default.bool,
13926 iconOnly: PropTypes__default.bool,
13927 isSuggestOpened: PropTypes__default.bool,
13928 isMobile: PropTypes__default.bool,
13929 name: PropTypes__default.string
13930};
13931SearchInput$1.defaultProps = {
13932 variant: LARGE,
13933 placeholder: "",
13934 onFocus: function onFocus() {},
13935 onBlur: function onBlur() {},
13936 clearText: function clearText() {},
13937 searchIconSelect: function searchIconSelect() {},
13938 cancelCallback: function cancelCallback() {},
13939 hasBackground: false,
13940 iconOnly: false,
13941 className: "",
13942 searchBtnAreaLabel: "Search button",
13943 clearBtnAreaLabel: "Clear button",
13944 cancelBtnAreaLabel: "Cancel button",
13945 inputAreaLabel: "Search input",
13946 isSuggestOpened: false,
13947 isMobile: false,
13948 name: undefined
13949};
13950SearchInput$1.displayName = "SearchComponent";
13951
13952function withMobile(SearchComponent) {
13953 return (
13954 /*#__PURE__*/
13955 function (_Component) {
13956 _inherits(_class2, _Component);
13957
13958 function _class2(props) {
13959 var _this;
13960
13961 _classCallCheck(this, _class2);
13962
13963 _this = _possibleConstructorReturn(this, _getPrototypeOf(_class2).call(this, props));
13964
13965 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "openSearch", function () {
13966 var onFocus = _this.props.onFocus;
13967
13968 _this.setState({
13969 isMobileVisible: true
13970 }, function () {
13971 return _this.mobileRef.current.focusInput();
13972 });
13973
13974 onFocus();
13975 });
13976
13977 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cancelClick", function () {
13978 var cancelCallback = _this.props.cancelCallback;
13979
13980 _this.setState({
13981 isMobileVisible: false
13982 });
13983
13984 cancelCallback();
13985 });
13986
13987 _this.state = {
13988 isMobileVisible: false
13989 };
13990 _this.mobileRef = React__default.createRef();
13991 return _this;
13992 }
13993
13994 _createClass(_class2, [{
13995 key: "render",
13996 value: function render() {
13997 var isMobileVisible = this.state.isMobileVisible;
13998 return React__default.createElement(React__default.Fragment, null, !isMobileVisible && React__default.createElement(SearchComponent, _extends({}, this.props, {
13999 onFocus: this.openSearch,
14000 isMobile: false
14001 })), isMobileVisible && React__default.createElement(MobileActiveSearch, null, React__default.createElement(SearchComponent, _extends({}, this.props, {
14002 cancelCallback: this.cancelClick,
14003 ref: this.mobileRef,
14004 isMobile: true
14005 }))));
14006 }
14007 }]);
14008
14009 return _class2;
14010 }(Component)
14011 );
14012}
14013
14014var SearchInputMobile = withMobile(SearchInput$1);
14015SearchInputMobile.defaultProps = {
14016 cancelCallback: function cancelCallback() {},
14017 onFocus: function onFocus() {}
14018};
14019SearchInputMobile.displayName = "SearchInputMobile";
14020
14021function _templateObject5$e() {
14022 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-bottom: ", ";\n "]);
14023
14024 _templateObject5$e = function _templateObject5() {
14025 return data;
14026 };
14027
14028 return data;
14029}
14030
14031function _templateObject4$n() {
14032 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-bottom: ", ";\n "]);
14033
14034 _templateObject4$n = function _templateObject4() {
14035 return data;
14036 };
14037
14038 return data;
14039}
14040
14041function _templateObject3$y() {
14042 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-bottom: ", ";\n "]);
14043
14044 _templateObject3$y = function _templateObject3() {
14045 return data;
14046 };
14047
14048 return data;
14049}
14050
14051function _templateObject2$R() {
14052 var data = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-bottom: ", ";\n "]);
14053
14054 _templateObject2$R = function _templateObject2() {
14055 return data;
14056 };
14057
14058 return data;
14059}
14060
14061function _templateObject$18() {
14062 var data = _taggedTemplateLiteral(["\n width: 100%;\n padding-top: ", ";\n padding-bottom: ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"]);
14063
14064 _templateObject$18 = function _templateObject() {
14065 return data;
14066 };
14067
14068 return data;
14069}
14070
14071var getSpacing = function getSpacing(val) {
14072 return spacing[val] || val || 0;
14073};
14074
14075var Spacing = styled.div(_templateObject$18(), function (_ref) {
14076 var top = _ref.top;
14077 return getSpacing(top.xSmall);
14078}, function (_ref2) {
14079 var bottom = _ref2.bottom;
14080 return getSpacing(bottom.xSmall);
14081}, smallAndUp(_templateObject2$R(), function (_ref3) {
14082 var top = _ref3.top;
14083 return getSpacing(top.small || top.xSmall);
14084}, function (_ref4) {
14085 var bottom = _ref4.bottom;
14086 return getSpacing(bottom.small || bottom.xSmall);
14087}), mediumAndUp(_templateObject3$y(), function (_ref5) {
14088 var top = _ref5.top;
14089 return getSpacing(top.medium || top.small || top.xSmall);
14090}, function (_ref6) {
14091 var bottom = _ref6.bottom;
14092 return getSpacing(bottom.medium || bottom.small || bottom.xSmall);
14093}), largeAndUp(_templateObject4$n(), function (_ref7) {
14094 var top = _ref7.top;
14095 return getSpacing(top.large || top.medium || top.small || top.xSmall);
14096}, function (_ref8) {
14097 var bottom = _ref8.bottom;
14098 return getSpacing(bottom.large || bottom.medium || bottom.small || bottom.xSmall);
14099}), xLargeAndUp(_templateObject5$e(), function (_ref9) {
14100 var top = _ref9.top;
14101 return getSpacing(top.xLarge || top.large || top.medium || top.small || top.xSmall);
14102}, function (_ref10) {
14103 var bottom = _ref10.bottom;
14104 return getSpacing(bottom.xLarge || bottom.large || bottom.medium || bottom.small || bottom.xSmall);
14105}));
14106var spacingShape = PropTypes__default.shape({
14107 xSmall: PropTypes__default.string,
14108 small: PropTypes__default.string,
14109 medium: PropTypes__default.string,
14110 large: PropTypes__default.string,
14111 xLarge: PropTypes__default.string
14112});
14113Spacing.propTypes = {
14114 top: spacingShape,
14115 bottom: spacingShape
14116};
14117Spacing.defaultProps = {
14118 top: {},
14119 bottom: {}
14120};
14121Spacing.displayName = "Spacing";
14122
14123function _templateObject2$S() {
14124 var data = _taggedTemplateLiteral(["\n ", ";\n"]);
14125
14126 _templateObject2$S = function _templateObject2() {
14127 return data;
14128 };
14129
14130 return data;
14131}
14132
14133function _templateObject$19() {
14134 var data = _taggedTemplateLiteral(["\n white-space: nowrap;\n"]);
14135
14136 _templateObject$19 = function _templateObject() {
14137 return data;
14138 };
14139
14140 return data;
14141}
14142var spanStyles = css(["cursor:text;&:hover{color:currentColor;}"]);
14143var StyledWrapper = styled.li(_templateObject$19());
14144var StyledLink$1 = styled(Link)(_templateObject2$S(), function (props) {
14145 return getAsProp(props).as === "span" ? spanStyles : "";
14146});
14147
14148var BreadcrumbItem = function BreadcrumbItem(_ref) {
14149 var position = _ref.position,
14150 children = _ref.children,
14151 href = _ref.href,
14152 size = _ref.size,
14153 weight = _ref.weight,
14154 variant = _ref.variant,
14155 primary = _ref.primary,
14156 props = _objectWithoutProperties(_ref, ["position", "children", "href", "size", "weight", "variant", "primary"]);
14157
14158 return React__default.createElement(StyledWrapper, null, React__default.createElement(StyledLink$1, _extends({}, props, {
14159 size: size,
14160 weight: weight,
14161 variant: variant,
14162 primary: primary,
14163 accent: null,
14164 href: href || null
14165 }), children));
14166};
14167
14168BreadcrumbItem.propTypes = {
14169 position: PropTypes__default.string.isRequired,
14170 href: PropTypes__default.string,
14171 children: PropTypes__default.node.isRequired,
14172 size: size,
14173 responsiveSize: responsiveSize,
14174 weight: weight,
14175 variant: variant,
14176 primary: PropTypes__default.bool
14177};
14178BreadcrumbItem.defaultProps = {
14179 href: "",
14180 variant: "light",
14181 size: "uno",
14182 weight: "semiBold",
14183 primary: true,
14184 responsiveSize: null
14185};
14186
14187function _templateObject$1a() {
14188 var data = _taggedTemplateLiteral(["\n font-weight: ", ";\n display: flex;\n flex-flow: row;\n ", " align-items: center;\n\n &.breadcrumb--none {\n color: inherit;\n }\n\n &.breadcrumb--light {\n color: ", ";\n }\n\n &.breadcrumb--dark {\n color: ", ";\n }\n\n &.breadcrumb--accent {\n color: ", ";\n }\n\n li:last-of-type {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n li:not(:last-of-type):after {\n padding: 0 ", ";\n content: \"/\";\n }\n"]);
14189
14190 _templateObject$1a = function _templateObject() {
14191 return data;
14192 };
14193
14194 return data;
14195}
14196var StyledBreadcrumb = styled(ListUnstyled)(_templateObject$1a(), typography.weight.semiBold, function (_ref) {
14197 var childrenLen = _ref.childrenLen;
14198 return childrenLen > 0 ? "\n flex: 0 1 ".concat(Math.floor(100 / childrenLen), "%;\n ") : "";
14199}, getThemeValue("white", "base"), getThemeValue("onyx", "base"), getThemeValue("primary", "base"), spacing.slim);
14200
14201var Breadcrumb = function Breadcrumb(_ref) {
14202 var children = _ref.children,
14203 className = _ref.className,
14204 variant = _ref.variant,
14205 props = _objectWithoutProperties(_ref, ["children", "className", "variant"]);
14206
14207 return React__default.createElement("nav", {
14208 style: {
14209 overflow: "hidden",
14210 maxWidth: "100%"
14211 }
14212 }, React__default.createElement(StyledBreadcrumb, _extends({}, props, {
14213 className: classNames(className, "breadcrumb--".concat(variant)),
14214 childrenLen: React__default.Children.count(children)
14215 }), children));
14216};
14217
14218Breadcrumb.propTypes = {
14219 children: PropTypes__default.node.isRequired,
14220 className: PropTypes__default.string,
14221 variant: PropTypes__default.oneOf(["light", "dark", "accent", "none"])
14222};
14223Breadcrumb.defaultProps = {
14224 variant: "light",
14225 className: null
14226};
14227
14228Breadcrumb.Item = BreadcrumbItem;
14229
14230function _templateObject$1b() {
14231 var data = _taggedTemplateLiteral(["\n position: relative;\n height: 0;\n width: 100%;\n padding-top: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-size: cover;\n"]);
14232
14233 _templateObject$1b = function _templateObject() {
14234 return data;
14235 };
14236
14237 return data;
14238}
14239var StyledResponsiveImage = styled.div.attrs({
14240 className: "image image--responsive"
14241})(_templateObject$1b(), function (_ref) {
14242 var height = _ref.height,
14243 width = _ref.width;
14244 return "".concat(height / width * 100, "%");
14245}, function (_ref2) {
14246 var image = _ref2.image;
14247 return "url(".concat(image, ")");
14248});
14249StyledResponsiveImage.propTypes = {
14250 image: PropTypes__default.string.isRequired,
14251 height: PropTypes__default.number.isRequired,
14252 width: PropTypes__default.number.isRequired
14253};
14254
14255var ResponsiveImage =
14256/*#__PURE__*/
14257function (_PureComponent) {
14258 _inherits(ResponsiveImage, _PureComponent);
14259
14260 function ResponsiveImage() {
14261 _classCallCheck(this, ResponsiveImage);
14262
14263 return _possibleConstructorReturn(this, _getPrototypeOf(ResponsiveImage).apply(this, arguments));
14264 }
14265
14266 _createClass(ResponsiveImage, [{
14267 key: "render",
14268 value: function render() {
14269 var _this$props = this.props,
14270 loader = _this$props.loader,
14271 src = _this$props.src,
14272 alt = _this$props.alt,
14273 height = _this$props.height,
14274 width = _this$props.width,
14275 children = _this$props.children,
14276 imageRef = _this$props.imageRef,
14277 backgroundRef = _this$props.backgroundRef,
14278 rest = _objectWithoutProperties(_this$props, ["loader", "src", "alt", "height", "width", "children", "imageRef", "backgroundRef"]);
14279
14280 return loader || React__default.createElement(StyledResponsiveImage, _extends({
14281 image: src,
14282 height: height,
14283 width: width,
14284 ref: backgroundRef
14285 }, rest), React__default.createElement(StyledImageSeo, {
14286 src: src,
14287 alt: alt,
14288 height: height,
14289 width: width,
14290 ref: imageRef
14291 }), children);
14292 }
14293 }]);
14294
14295 return ResponsiveImage;
14296}(PureComponent);
14297
14298ResponsiveImage.displayName = "ResponsiveImage";
14299ResponsiveImage.propTypes = {
14300 loader: PropTypes__default.node,
14301 src: PropTypes__default.string,
14302 alt: PropTypes__default.string,
14303 height: PropTypes__default.number,
14304 width: PropTypes__default.number,
14305 children: PropTypes__default.node,
14306 imageRef: PropTypes__default.shape({
14307 current: PropTypes__default.object
14308 }),
14309 backgroundRef: PropTypes__default.shape({
14310 current: PropTypes__default.object
14311 })
14312};
14313ResponsiveImage.defaultProps = {
14314 loader: null,
14315 src: "",
14316 alt: "",
14317 height: 1,
14318 width: 1,
14319 children: null,
14320 imageRef: {
14321 current: null
14322 },
14323 backgroundRef: {
14324 current: null
14325 }
14326};
14327
14328function _templateObject$1c() {
14329 var data = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n max-width: 100%;\n"]);
14330
14331 _templateObject$1c = function _templateObject() {
14332 return data;
14333 };
14334
14335 return data;
14336}
14337var StyledStaticImage = styled.img.attrs({
14338 className: "image image--static"
14339})(_templateObject$1c());
14340StyledStaticImage.propTypes = {
14341 src: PropTypes__default.string.isRequired
14342};
14343
14344var StaticImage =
14345/*#__PURE__*/
14346function (_PureComponent) {
14347 _inherits(StaticImage, _PureComponent);
14348
14349 function StaticImage() {
14350 _classCallCheck(this, StaticImage);
14351
14352 return _possibleConstructorReturn(this, _getPrototypeOf(StaticImage).apply(this, arguments));
14353 }
14354
14355 _createClass(StaticImage, [{
14356 key: "render",
14357 value: function render() {
14358 var _this$props = this.props,
14359 loader = _this$props.loader,
14360 src = _this$props.src,
14361 alt = _this$props.alt,
14362 height = _this$props.height,
14363 width = _this$props.width,
14364 imageRef = _this$props.imageRef,
14365 props = _objectWithoutProperties(_this$props, ["loader", "src", "alt", "height", "width", "imageRef"]);
14366
14367 return loader || React__default.createElement(StyledStaticImage, _extends({
14368 src: src,
14369 alt: alt,
14370 height: height,
14371 width: width,
14372 ref: imageRef
14373 }, props));
14374 }
14375 }]);
14376
14377 return StaticImage;
14378}(PureComponent);
14379
14380StaticImage.displayName = "StaticImage";
14381StaticImage.propTypes = {
14382 loader: PropTypes__default.node,
14383 src: PropTypes__default.string,
14384 alt: PropTypes__default.string,
14385 height: PropTypes__default.number,
14386 width: PropTypes__default.number,
14387 imageRef: PropTypes__default.shape({
14388 current: PropTypes__default.object
14389 })
14390};
14391StaticImage.defaultProps = {
14392 loader: null,
14393 src: "",
14394 alt: "",
14395 height: 1,
14396 width: 1,
14397 imageRef: {
14398 current: null
14399 }
14400};
14401
14402function _templateObject$1d() {
14403 var data = _taggedTemplateLiteral(["\n border: solid 1px ", ";\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n overflow: hidden;\n display: flex;\n position: relative;\n padding-top: ", ";\n width: ", ";\n & > img {\n position: absolute;\n height: 100%;\n width: auto;\n top: 0;\n }\n"]);
14404
14405 _templateObject$1d = function _templateObject() {
14406 return data;
14407 };
14408
14409 return data;
14410}
14411var RoundContainer = styled.div(_templateObject$1d(), colors.lightGray, function (_ref) {
14412 var size = _ref.size;
14413 return size ? "".concat(size, "px") : "100%";
14414}, function (_ref2) {
14415 var size = _ref2.size;
14416 return size ? "".concat(size, "px") : "100%";
14417});
14418
14419var ThumbnailCircle = function ThumbnailCircle(_ref3) {
14420 var size = _ref3.size,
14421 src = _ref3.src,
14422 alt = _ref3.alt,
14423 props = _objectWithoutProperties(_ref3, ["size", "src", "alt"]);
14424
14425 return React__default.createElement(RoundContainer, {
14426 size: size
14427 }, props.image || React__default.createElement("img", {
14428 src: src,
14429 alt: alt
14430 }));
14431};
14432
14433ThumbnailCircle.defaultProps = {
14434 alt: "",
14435 src: "",
14436 image: null,
14437 size: 0
14438};
14439ThumbnailCircle.propTypes = {
14440 size: PropTypes__default.number,
14441 src: PropTypes__default.string,
14442 alt: PropTypes__default.string,
14443 image: PropTypes__default.element
14444};
14445
14446var DeviceSizeProvider =
14447/*#__PURE__*/
14448function (_React$Component) {
14449 _inherits(DeviceSizeProvider, _React$Component);
14450
14451 function DeviceSizeProvider() {
14452 var _getPrototypeOf2;
14453
14454 var _this;
14455
14456 _classCallCheck(this, DeviceSizeProvider);
14457
14458 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14459 args[_key] = arguments[_key];
14460 }
14461
14462 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DeviceSizeProvider)).call.apply(_getPrototypeOf2, [this].concat(args)));
14463
14464 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", DeviceSizeProvider.initialState);
14465
14466 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setSize", function () {
14467 if (_this.props.cssOnly) {
14468 _this.setState(function () {
14469 return {
14470 cssOnly: true
14471 };
14472 });
14473
14474 return;
14475 }
14476
14477 _this.setState(function () {
14478 return {
14479 isInitialized: true,
14480 isXSmall: _this.xSmallMedia.matches,
14481 isSmall: _this.smallMedia.matches && !_this.mediumMedia.matches,
14482 isMedium: _this.mediumMedia.matches && !_this.largeMedia.matches,
14483 isLarge: _this.largeMedia.matches && !_this.xLargeMedia.matches,
14484 isXLarge: _this.xLargeMedia.matches,
14485 cssOnly: false
14486 };
14487 });
14488 });
14489
14490 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "unsubscribe", function () {
14491 if (_this.xSmallMedia) _this.xSmallMedia.removeListener(_this.setSize);
14492 if (_this.smallMedia) _this.smallMedia.removeListener(_this.setSize);
14493 if (_this.mediumMedia) _this.mediumMedia.removeListener(_this.setSize);
14494 if (_this.largeMedia) _this.largeMedia.removeListener(_this.setSize);
14495 if (_this.xLargeMedia) _this.xLargeMedia.removeListener(_this.setSize);
14496 });
14497
14498 return _this;
14499 }
14500
14501 _createClass(DeviceSizeProvider, [{
14502 key: "componentDidMount",
14503 value: function componentDidMount() {
14504 if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
14505
14506 if (this.props.cssOnly) {
14507 this.setSize();
14508 return;
14509 }
14510
14511 this.xSmallMedia = window.matchMedia(constants.breakpoints.xSmallAndDown);
14512 this.smallMedia = window.matchMedia(constants.breakpoints.small);
14513 this.mediumMedia = window.matchMedia(constants.breakpoints.medium);
14514 this.largeMedia = window.matchMedia(constants.breakpoints.large);
14515 this.xLargeMedia = window.matchMedia(constants.breakpoints.xLarge);
14516 this.xSmallMedia.addListener(this.setSize);
14517 this.smallMedia.addListener(this.setSize);
14518 this.mediumMedia.addListener(this.setSize);
14519 this.largeMedia.addListener(this.setSize);
14520 this.xLargeMedia.addListener(this.setSize);
14521 this.setSize();
14522 }
14523 }, {
14524 key: "componentDidUpdate",
14525 value: function componentDidUpdate() {
14526 if (!this.props.cssOnly) return;
14527 this.unsubscribe();
14528 }
14529 }, {
14530 key: "componentWillUnmount",
14531 value: function componentWillUnmount() {
14532 this.unsubscribe();
14533 }
14534 }, {
14535 key: "render",
14536 value: function render() {
14537 return React__default.createElement(Provider$2, {
14538 value: this.state
14539 }, this.props.children);
14540 }
14541 }], [{
14542 key: "getDerivedStateFromProps",
14543 value: function getDerivedStateFromProps(props, state) {
14544 if (!state.isInitialized && typeof props.fallbackDetection === "function") {
14545 var fallbackDetectionResult = props.fallbackDetection();
14546
14547 if (_typeof(fallbackDetectionResult) === "object" && fallbackDetectionResult !== null) {
14548 return _objectSpread({}, fallbackDetectionResult);
14549 }
14550 }
14551
14552 return null;
14553 }
14554 }]);
14555
14556 return DeviceSizeProvider;
14557}(React__default.Component);
14558
14559_defineProperty(DeviceSizeProvider, "propTypes", {
14560 children: PropTypes__default.node.isRequired,
14561 // https://github.com/yannickcr/eslint-plugin-react/issues/1751
14562 // eslint-disable-next-line
14563 fallbackDetection: PropTypes__default.func,
14564 cssOnly: PropTypes__default.bool
14565});
14566
14567_defineProperty(DeviceSizeProvider, "defaultProps", {
14568 fallbackDetection: null,
14569 cssOnly: false
14570});
14571
14572_defineProperty(DeviceSizeProvider, "initialState", {
14573 isInitialized: false,
14574 isXSmall: false,
14575 isSmall: true,
14576 isMedium: false,
14577 isLarge: false,
14578 isXLarge: false,
14579 cssOnly: false
14580});
14581
14582var _React$createContext$5 = React__default.createContext(),
14583 Consumer$5 = _React$createContext$5.Consumer,
14584 Provider$5 = _React$createContext$5.Provider;
14585
14586var ScrollObserverProvider =
14587/*#__PURE__*/
14588function (_React$Component) {
14589 _inherits(ScrollObserverProvider, _React$Component);
14590
14591 function ScrollObserverProvider() {
14592 var _getPrototypeOf2;
14593
14594 var _this;
14595
14596 _classCallCheck(this, ScrollObserverProvider);
14597
14598 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14599 args[_key] = arguments[_key];
14600 }
14601
14602 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollObserverProvider)).call.apply(_getPrototypeOf2, [this].concat(args)));
14603
14604 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
14605 scrollY: 0
14606 });
14607
14608 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onScroll",
14609 /* istanbul ignore next */
14610 function () {
14611 /* istanbul ignore next */
14612 if (!_this.ticking && !_this.isUnmounting) {
14613 window.requestAnimationFrame(_this.notify);
14614 _this.ticking = true;
14615 }
14616 });
14617
14618 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "ticking", false);
14619
14620 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "notify",
14621 /* istanbul ignore next */
14622 function () {
14623 /* istanbul ignore next */
14624 if (_this.isUnmounting) return;
14625 /* istanbul ignore next */
14626
14627 _this.ticking = false;
14628 /* istanbul ignore next */
14629
14630 var scrollY = window.scrollY || window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
14631 /* istanbul ignore next */
14632
14633 _this.setState(function () {
14634 return {
14635 scrollY: scrollY
14636 };
14637 });
14638 });
14639
14640 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "subscribe", function () {
14641 if (!_this.props.hasWindow) return;
14642 window.addEventListener("scroll", _this.onScroll, {
14643 passive: true
14644 });
14645 });
14646
14647 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "unsubscribe", function () {
14648 if (!_this.props.hasWindow) return;
14649 window.removeEventListener("scroll", _this.onScroll);
14650 });
14651
14652 return _this;
14653 }
14654
14655 _createClass(ScrollObserverProvider, [{
14656 key: "componentDidMount",
14657 // eslint-disable-line
14658 value: function componentDidMount() {
14659 this.isUnmounting = false;
14660 this.subscribe();
14661 }
14662 }, {
14663 key: "componentWillUnmount",
14664 value: function componentWillUnmount() {
14665 this.isUnmounting = true;
14666 this.unsubscribe();
14667 }
14668 }, {
14669 key: "render",
14670 value: function render() {
14671 return React__default.createElement(Provider$5, {
14672 value: this.state
14673 }, this.props.children);
14674 }
14675 }]);
14676
14677 return ScrollObserverProvider;
14678}(React__default.Component);
14679
14680_defineProperty(ScrollObserverProvider, "propTypes", {
14681 children: PropTypes__default.node.isRequired,
14682 hasWindow: PropTypes__default.bool
14683});
14684
14685_defineProperty(ScrollObserverProvider, "defaultProps", {
14686 hasWindow: typeof window !== "undefined"
14687});
14688
14689var ScrollObserverConsumer = function ScrollObserverConsumer(_ref) {
14690 var children = _ref.children;
14691 return React__default.createElement(Consumer$5, null, function (val) {
14692 return children && children(val);
14693 });
14694};
14695
14696ScrollObserverConsumer.propTypes = {
14697 children: PropTypes__default.func
14698};
14699ScrollObserverConsumer.defaultProps = {
14700 children: null
14701};
14702
14703var _React$createContext$6 = React__default.createContext({
14704 selected: [],
14705 onClick: function onClick() {
14706 return null;
14707 }
14708}),
14709 Provider$6 = _React$createContext$6.Provider,
14710 Consumer$6 = _React$createContext$6.Consumer;
14711
14712var _React$createContext$7 = React__default.createContext({
14713 focused: null,
14714 focusSelected: function focusSelected() {
14715 return null;
14716 }
14717}),
14718 Provider$7 = _React$createContext$7.Provider,
14719 Consumer$7 = _React$createContext$7.Consumer;
14720
14721function _templateObject$1e() {
14722 var data = _taggedTemplateLiteral(["\n cursor: pointer;\n margin: 0;\n appearance: none;\n position: relative;\n outline: none;\n transition: transform 0.1s ", ";\n background: none;\n border: none;\n ", " &:active {\n transform: scale(0.95, 0.95);\n }\n\n .radio-button--large & {\n width: 24px;\n height: 24px;\n }\n .radio-button--small & {\n width: 16px;\n height: 16px;\n ", ";\n }\n &:before {\n content: \"\";\n transition: box-shadow 0.3s ", ";\n position: absolute;\n background-color: transparent;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 50%;\n border: 1px solid ", ";\n\n .radio-button--large & {\n width: 24px;\n height: 24px;\n }\n .radio-button--small & {\n width: 16px;\n height: 16px;\n }\n .radio-button--disabled & {\n border: 1px solid ", ";\n }\n }\n &:after {\n content: \"\";\n transition: width 0.3s ", ",\n height 0.3s ", ",\n opacity 0.3s ", ";\n position: absolute;\n opacity: 0;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 50%;\n background-color: ", ";\n\n .radio-button--large & {\n width: 8px;\n height: 8px;\n }\n .radio-button--small & {\n width: 5px;\n height: 5px;\n }\n\n .radio-button--disabled & {\n background-color: ", ";\n }\n }\n &:focus:before {\n outline: none;\n border-width: 1px;\n border-color: ", ";\n box-shadow: 0 0 5px 0 ", ";\n }\n &:hover:before {\n border-width: 2px;\n border-color: ", ";\n\n .radio-button--large & {\n width: 23px;\n height: 23px;\n }\n .radio-button--small & {\n width: 15px;\n height: 15px;\n }\n }\n &:checked:after {\n position: absolute;\n opacity: 1;\n\n .radio-button--large & {\n width: 12px;\n height: 12px;\n }\n .radio-button--small & {\n width: 8px;\n height: 8px;\n }\n }\n"]);
14723
14724 _templateObject$1e = function _templateObject() {
14725 return data;
14726 };
14727
14728 return data;
14729}
14730var RadioInput = styled.input.attrs({
14731 type: "radio"
14732})(_templateObject$1e(), constants.easing.easeInOutQuad, function (props) {
14733 return props.isTopAligned && "align-self: flex-start;";
14734}, function (props) {
14735 return props.isTopAligned && "margin-top: 4px;";
14736}, constants.easing.easeInOutQuad, getThemeValue("gray02"), getThemeValue("gray01"), constants.easing.elastic, constants.easing.elastic, constants.easing.elastic, getThemeValue("primary", "base"), getThemeValue("gray01"), getThemeValue("primary", "base"), getThemeValue("primary", "base"), getThemeValue("primary", "base"));
14737
14738var RadioInputComponent =
14739/*#__PURE__*/
14740function (_React$Component) {
14741 _inherits(RadioInputComponent, _React$Component);
14742
14743 function RadioInputComponent(props) {
14744 var _this;
14745
14746 _classCallCheck(this, RadioInputComponent);
14747
14748 _this = _possibleConstructorReturn(this, _getPrototypeOf(RadioInputComponent).call(this, props));
14749
14750 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocus", function () {
14751 var _this$props = _this.props,
14752 index = _this$props.index,
14753 focused = _this$props.focused;
14754
14755 if (focused === -1 && index === 0) {
14756 _this.updateFocus(0);
14757 }
14758 });
14759
14760 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateFocus", function (index) {
14761 var updateFocusedContext = _this.props.updateFocusedContext;
14762
14763 if (updateFocusedContext) {
14764 updateFocusedContext(index);
14765 }
14766 });
14767
14768 _this.SelectedElement = React__default.createRef();
14769 return _this;
14770 }
14771
14772 _createClass(RadioInputComponent, [{
14773 key: "componentDidMount",
14774 value: function componentDidMount() {
14775 this.updateFocus(-1); // To keep first radio button from auto selecting on load time
14776 }
14777 }, {
14778 key: "componentDidUpdate",
14779 value: function componentDidUpdate() {
14780 var _this$props2 = this.props,
14781 value = _this$props2.value,
14782 checked = _this$props2.checked,
14783 isFocused = _this$props2.isFocused,
14784 selectFocused = _this$props2.selectFocused;
14785
14786 if (isFocused && this.SelectedElement.current) {
14787 this.SelectedElement.current.focus();
14788
14789 if (!checked) {
14790 selectFocused(value);
14791 }
14792 }
14793 }
14794 }, {
14795 key: "render",
14796 value: function render() {
14797 var _this$props3 = this.props,
14798 name = _this$props3.name,
14799 value = _this$props3.value,
14800 size = _this$props3.size,
14801 isActive = _this$props3.isActive,
14802 checked = _this$props3.checked,
14803 isTopAligned = _this$props3.isTopAligned,
14804 props = _objectWithoutProperties(_this$props3, ["name", "value", "size", "isActive", "checked", "isTopAligned"]);
14805
14806 return React__default.createElement(RadioInput, _extends({
14807 value: value,
14808 name: name,
14809 size: size,
14810 id: "".concat(name + value, "input"),
14811 disabled: !isActive,
14812 checked: checked,
14813 "aria-labelledby": "".concat(name + value, "label"),
14814 "aria-checked": checked,
14815 onFocus: this.onFocus
14816 }, props, {
14817 ref: this.SelectedElement,
14818 isTopAligned: isTopAligned
14819 }));
14820 }
14821 }]);
14822
14823 return RadioInputComponent;
14824}(React__default.Component);
14825
14826_defineProperty(RadioInputComponent, "propTypes", {
14827 size: PropTypes__default.oneOf(["large", "small"]),
14828 isActive: PropTypes__default.bool,
14829 name: PropTypes__default.string.isRequired,
14830 value: PropTypes__default.string.isRequired,
14831 checked: PropTypes__default.bool.isRequired,
14832 onClick: PropTypes__default.func,
14833 isFocused: PropTypes__default.bool.isRequired,
14834 isTopAligned: PropTypes__default.bool,
14835 index: PropTypes__default.number.isRequired,
14836 focused: PropTypes__default.number.isRequired,
14837 updateFocusedContext: PropTypes__default.func.isRequired,
14838 selectFocused: PropTypes__default.func.isRequired
14839});
14840
14841_defineProperty(RadioInputComponent, "defaultProps", {
14842 size: "small",
14843 isActive: true,
14844 onClick: null,
14845 isTopAligned: false
14846});
14847
14848function _templateObject2$T() {
14849 var data = _taggedTemplateLiteral(["\n display: flex;\n outline: none;\n margin-left: 7px;\n ", ";\n"]);
14850
14851 _templateObject2$T = function _templateObject2() {
14852 return data;
14853 };
14854
14855 return data;
14856}
14857
14858function _templateObject$1f() {
14859 var data = _taggedTemplateLiteral(["\n position: relative;\n cursor: pointer;\n margin: 0;\n display: flex;\n align-items: center;\n text-align: left;\n color: ", ";\n outline: none;\n min-height: 44px;\n\n &.radio-button--disabled {\n opacity: 0.4;\n cursor: default;\n pointer-events: none;\n }\n &.radio-button--large {\n font-size: 16px;\n line-height: 1.5;\n }\n &.radio-button--small {\n font-size: 14px;\n line-height: 1.5;\n }\n"]);
14860
14861 _templateObject$1f = function _templateObject() {
14862 return data;
14863 };
14864
14865 return data;
14866}
14867var RadioWrapper = styled.label(_templateObject$1f(), getThemeValue("gray01"));
14868var RadioText = styled.div(_templateObject2$T(), function (props) {
14869 return props.isTopAligned ? "flex-direction: column;" : "align-items: center;\n justify-content: center;";
14870});
14871
14872var RadioButton = function RadioButton(_ref) {
14873 var name = _ref.name,
14874 value = _ref.value,
14875 size = _ref.size,
14876 isActive = _ref.isActive,
14877 children = _ref.children,
14878 index = _ref.index,
14879 isTopAligned = _ref.isTopAligned,
14880 props = _objectWithoutProperties(_ref, ["name", "value", "size", "isActive", "children", "index", "isTopAligned"]);
14881
14882 return React__default.createElement(Consumer$7, null, function (_ref2) {
14883 var focused = _ref2.focused,
14884 focusSelected = _ref2.focusSelected;
14885 return React__default.createElement(Consumer$6, null, function (_ref3) {
14886 var selected = _ref3.selected,
14887 onClick = _ref3.onClick;
14888 var isChecked = selected.includes(value);
14889 return React__default.createElement(RadioWrapper, {
14890 className: classNames({
14891 "radio-button--small": size === "small",
14892 "radio-button--large": size === "large",
14893 "radio-button--disabled": !isActive
14894 }),
14895 id: "".concat(name + value, "label"),
14896 theme: props.theme
14897 }, React__default.createElement(RadioInputComponent, _extends({
14898 value: value,
14899 name: name,
14900 isActive: isActive,
14901 size: size,
14902 checked: isChecked,
14903 onChange: composeHandler(function () {
14904 return onClick({
14905 value: value
14906 });
14907 }, function () {
14908 return focusSelected({
14909 index: index
14910 });
14911 }, props.onClick),
14912 index: index,
14913 focused: focused,
14914 updateFocusedContext: function updateFocusedContext(focusIndex) {
14915 focusSelected({
14916 index: focusIndex
14917 });
14918 },
14919 selectFocused: function selectFocused(focusedValue) {
14920 onClick({
14921 value: focusedValue
14922 });
14923 }
14924 }, props, {
14925 isFocused: focused === index,
14926 isTopAligned: isTopAligned
14927 })), React__default.createElement(RadioText, {
14928 isTopAligned: isTopAligned
14929 }, children));
14930 });
14931 });
14932};
14933
14934RadioButton.propTypes = {
14935 size: PropTypes__default.oneOf(["large", "small"]),
14936 children: PropTypes__default.node,
14937 isActive: PropTypes__default.bool,
14938 name: PropTypes__default.string.isRequired,
14939 value: PropTypes__default.string.isRequired,
14940 index: PropTypes__default.number.isRequired,
14941 onClick: PropTypes__default.func,
14942 isTopAligned: PropTypes__default.bool
14943};
14944RadioButton.defaultProps = {
14945 size: "small",
14946 children: null,
14947 isActive: true,
14948 onClick: null,
14949 isTopAligned: false
14950};
14951RadioButton.displayName = "RadioButton";
14952
14953function _templateObject$1g() {
14954 var data = _taggedTemplateLiteral(["\n outline: none;\n margin: 0;\n appearance: none;\n position: relative;\n background-color: ", ";\n border-color: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: center;\n ", " align-items: center;\n\n &::-ms-check {\n display: none;\n }\n\n .checkbox--large & {\n width: 24px;\n height: 24px;\n }\n\n .checkbox--small & {\n width: 16px;\n height: 16px;\n }\n\n &:active {\n transform: scale(0.95, 0.95);\n }\n\n &:before {\n content: \"\";\n box-sizing: border-box;\n background-color: transparent;\n border-radius: ", ";\n border: 1px solid ", ";\n position: absolute;\n cursor: pointer;\n transition: border-width 0.3s ", ";\n transition: border-color 0.3s ", ";\n\n .checkbox--large & {\n width: 24px;\n height: 24px;\n }\n .checkbox--small & {\n width: 16px;\n height: 16px;\n }\n &.checkbox--disabled {\n color: grey;\n }\n }\n &:hover:before {\n border-width: 2px;\n border-color: ", ";\n }\n &:focus:before {\n outline: none;\n box-shadow: 0 0 5px 0 ", ";\n border-color: ", ";\n\n .checkbox--small & {\n width: 16px;\n height: 16px;\n }\n .checkbox--large & {\n width: 24px;\n height: 24px;\n }\n }\n\n &::after {\n content: \"\";\n box-sizing: border-box;\n transform: scale(0.7, 0.7);\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n transition: all 0.3s ", ";\n\n .checkbox--disabled & {\n background-color: ", ";\n }\n .checkbox--small.checkbox__indeterminate & {\n width: 8px;\n height: 2px;\n transform: scale(1, 1);\n }\n .checkbox--large.checkbox__indeterminate & {\n width: 12px;\n height: 2px;\n transform: scale(1, 1);\n }\n }\n"]);
14955
14956 _templateObject$1g = function _templateObject() {
14957 return data;
14958 };
14959
14960 return data;
14961}
14962var CheckBoxInput = styled.input.attrs({
14963 type: "checkbox"
14964})(_templateObject$1g(), getThemeValue("white", "base"), getThemeValue("gray02"), constants.borderRadius.small, function (_ref) {
14965 var isTopAligned = _ref.isTopAligned,
14966 size = _ref.size;
14967 return size === "small" && isTopAligned ? "margin-top: 1px;" : "";
14968}, constants.borderRadius.small, getThemeValue("gray02"), constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, getThemeValue("primary", "base"), getThemeValue("primary", "base"), getThemeValue("primary", "base"), constants.borderRadius.small, getThemeValue("primary", "base"), constants.easing.elastic, getThemeValue("gray02"));
14969
14970var CheckBoxInputComponent =
14971/*#__PURE__*/
14972function (_React$Component) {
14973 _inherits(CheckBoxInputComponent, _React$Component);
14974
14975 function CheckBoxInputComponent(props) {
14976 var _this;
14977
14978 _classCallCheck(this, CheckBoxInputComponent);
14979
14980 _this = _possibleConstructorReturn(this, _getPrototypeOf(CheckBoxInputComponent).call(this, props));
14981 _this.SelectedElement = React__default.createRef();
14982 return _this;
14983 }
14984
14985 _createClass(CheckBoxInputComponent, [{
14986 key: "componentDidUpdate",
14987 value: function componentDidUpdate() {
14988 if (this.props.isFocused && this.SelectedElement.current) {
14989 this.SelectedElement.current.focus();
14990 }
14991 }
14992 }, {
14993 key: "render",
14994 value: function render() {
14995 var _this$props = this.props,
14996 name = _this$props.name,
14997 value = _this$props.value,
14998 disabled = _this$props.disabled,
14999 isChecked = _this$props.isChecked,
15000 isTopAligned = _this$props.isTopAligned,
15001 props = _objectWithoutProperties(_this$props, ["name", "value", "disabled", "isChecked", "isTopAligned"]);
15002
15003 return React__default.createElement(CheckBoxInput, _extends({}, props, {
15004 value: value,
15005 name: name,
15006 id: "".concat(name + value, "input"),
15007 disabled: disabled,
15008 checked: isChecked,
15009 ref: this.SelectedElement,
15010 isTopAligned: isTopAligned
15011 }));
15012 }
15013 }]);
15014
15015 return CheckBoxInputComponent;
15016}(React__default.Component);
15017
15018_defineProperty(CheckBoxInputComponent, "propTypes", {
15019 size: PropTypes__default.oneOf(["large", "small"]),
15020 disabled: PropTypes__default.bool,
15021 name: PropTypes__default.string.isRequired,
15022 value: PropTypes__default.string.isRequired,
15023 isChecked: PropTypes__default.bool.isRequired,
15024 onClick: PropTypes__default.func.isRequired,
15025 onChange: PropTypes__default.func,
15026 isFocused: PropTypes__default.bool,
15027 isTopAligned: PropTypes__default.bool
15028});
15029
15030_defineProperty(CheckBoxInputComponent, "defaultProps", {
15031 size: "small",
15032 disabled: false,
15033 isFocused: false,
15034 onChange: function onChange() {
15035 return null;
15036 },
15037 isTopAligned: false
15038});
15039
15040var Checkmark = function Checkmark(_ref) {
15041 var size = _ref.size,
15042 color = _ref.color,
15043 children = _ref.children,
15044 props = _objectWithoutProperties(_ref, ["size", "color", "children"]);
15045
15046 return React__default.createElement("svg", _extends({}, props, {
15047 viewBox: "0 0 24 28",
15048 width: size,
15049 height: size,
15050 stroke: color,
15051 strokeLinecap: "round",
15052 strokeLinejoin: "round",
15053 strokeWidth: 3,
15054 fill: "none",
15055 fillRule: "evenodd"
15056 }), children, React__default.createElement("path", {
15057 d: "M5.215 12.219l4.437 4.439 9.514-9.433"
15058 }));
15059};
15060
15061Checkmark.displayName = "Checkmark";
15062Checkmark.defaultProps = {
15063 size: 24,
15064 color: "currentcolor",
15065 children: null
15066};
15067Checkmark.propTypes = {
15068 size: PropTypes__default.number,
15069 color: PropTypes__default.string,
15070 children: PropTypes__default.node
15071};
15072
15073function _templateObject4$o() {
15074 var data = _taggedTemplateLiteral(["\n transition: all 0.3s ", ";\n margin-top: 3px;\n transform: scale(0.7, 0.7);\n .checkbox__checked & {\n transform: scale(1, 1);\n }\n"]);
15075
15076 _templateObject4$o = function _templateObject4() {
15077 return data;
15078 };
15079
15080 return data;
15081}
15082
15083function _templateObject3$z() {
15084 var data = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: left;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n color: ", ";\n ", "\n transition: opacity 0.3s ", ";\n\n .checkbox__checked & {\n opacity: 1;\n }\n .checkbox__indeterminate & {\n display: none;\n }\n .checkbox--disabled & {\n color: ", ";\n }\n"]);
15085
15086 _templateObject3$z = function _templateObject3() {
15087 return data;
15088 };
15089
15090 return data;
15091}
15092
15093function _templateObject2$U() {
15094 var data = _taggedTemplateLiteral(["\n color: ", ";\n display: flex;\n outline: none;\n justify-content: flex-start;\n margin-left: 7px;\n width: 90%;\n ", ";\n"]);
15095
15096 _templateObject2$U = function _templateObject2() {
15097 return data;
15098 };
15099
15100 return data;
15101}
15102
15103function _templateObject$1h() {
15104 var data = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n cursor: pointer;\n display: flex;\n ", " text-align: left;\n\n &.checkbox--disabled {\n opacity: 0.4;\n pointer-events: none;\n }\n &.checkbox--large {\n font-size: ", ";\n line-height: 1.25;\n }\n &.checkbox--small {\n font-size: ", ";\n line-height: 1.29;\n }\n"]);
15105
15106 _templateObject$1h = function _templateObject() {
15107 return data;
15108 };
15109
15110 return data;
15111}
15112var CheckBoxWrapper = styled.label(_templateObject$1h(), function (_ref) {
15113 var isTopAligned = _ref.isTopAligned;
15114 return isTopAligned ? "align-items: flex-start;" : "align-items: center;";
15115}, typography.size.kilo, typography.size.hecto);
15116var CheckBoxText = styled.span(_templateObject2$U(), getThemeValue("gray01"), function (_ref2) {
15117 var isTopAligned = _ref2.isTopAligned;
15118 return isTopAligned ? "align-items: flex-start; flex-direction: column;" : "align-items: center;";
15119});
15120var CheckDivStyling = styled.div(_templateObject3$z(), getThemeValue("primary", "base"), function (_ref3) {
15121 var isTopAligned = _ref3.isTopAligned;
15122 return isTopAligned ? "align-items: flex-start;" : "align-items: center;";
15123}, constants.easing.elastic, getThemeValue("gray02"));
15124var StyledCheckmark = styled(Checkmark)(_templateObject4$o(), constants.easing.elastic);
15125
15126var CheckBoxButton = function CheckBoxButton(_ref) {
15127 var name = _ref.name,
15128 value = _ref.value,
15129 size = _ref.size,
15130 disabled = _ref.disabled,
15131 children = _ref.children,
15132 index = _ref.index,
15133 style = _ref.style,
15134 isTopAligned = _ref.isTopAligned,
15135 props = _objectWithoutProperties(_ref, ["name", "value", "size", "disabled", "children", "index", "style", "isTopAligned"]);
15136
15137 return React__default.createElement(Consumer$7, null, function (_ref2) {
15138 var focused = _ref2.focused,
15139 focusSelected = _ref2.focusSelected;
15140 return React__default.createElement(Consumer$6, null, function (_ref3) {
15141 var selected = _ref3.selected,
15142 onClick = _ref3.onClick;
15143 var isChecked = props.isChecked ? Boolean(props.isChecked) : selected.includes(value);
15144 return React__default.createElement(CheckBoxWrapper, {
15145 className: classNames({
15146 "checkbox--small": size === "small",
15147 "checkbox--large": size === "large",
15148 "checkbox--disabled": disabled,
15149 checkbox__indeterminate: props.isChecked === "indeterminate",
15150 checkbox__checked: isChecked
15151 }),
15152 isTopAligned: isTopAligned,
15153 style: style
15154 }, React__default.createElement(CheckBoxInputComponent, _extends({}, props, {
15155 value: value,
15156 name: name,
15157 id: name + value,
15158 disabled: disabled,
15159 size: size,
15160 isChecked: isChecked,
15161 isTopAligned: isTopAligned,
15162 onClick: composeHandler(function () {
15163 return onClick({
15164 value: value
15165 });
15166 }, function () {
15167 return focusSelected({
15168 index: index
15169 });
15170 }, props.onClick)
15171 }, index !== null && {
15172 isFocused: focused === index
15173 })), React__default.createElement(CheckDivStyling, {
15174 isTopAligned: isTopAligned
15175 }, React__default.createElement(StyledCheckmark, {
15176 size: size === "small" ? 16 : 24
15177 })), React__default.createElement(CheckBoxText, {
15178 isTopAligned: isTopAligned
15179 }, children));
15180 });
15181 });
15182};
15183
15184CheckBoxButton.propTypes = {
15185 size: PropTypes__default.oneOf(["large", "small"]),
15186 children: PropTypes__default.node,
15187 disabled: PropTypes__default.bool,
15188 name: PropTypes__default.string.isRequired,
15189 value: PropTypes__default.string.isRequired,
15190 index: PropTypes__default.number,
15191 onClick: PropTypes__default.func,
15192 style: PropTypes__default.shape(),
15193 isTopAligned: PropTypes__default.bool,
15194 isChecked: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(["indeterminate"])])
15195};
15196CheckBoxButton.defaultProps = {
15197 size: "small",
15198 children: null,
15199 disabled: false,
15200 onClick: null,
15201 index: null,
15202 isChecked: null,
15203 isTopAligned: false,
15204 style: {}
15205};
15206
15207var ItemSelectionProvider =
15208/*#__PURE__*/
15209function (_React$Component) {
15210 _inherits(ItemSelectionProvider, _React$Component);
15211
15212 function ItemSelectionProvider(props) {
15213 var _this;
15214
15215 _classCallCheck(this, ItemSelectionProvider);
15216
15217 _this = _possibleConstructorReturn(this, _getPrototypeOf(ItemSelectionProvider).call(this, props));
15218
15219 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "componentDidMount", function () {
15220 _this.setState({
15221 onClick: _this.onClick // eslint-disable-line
15222
15223 });
15224 });
15225
15226 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClick", function (_ref) {
15227 var value = _ref.value;
15228 var _this$props = _this.props,
15229 isMultiSelect = _this$props.isMultiSelect,
15230 onChange = _this$props.onChange;
15231 var selected = _this.state.selected;
15232 var updatedSelections = isMultiSelect ? updateOpenIndexMultiple(selected, value) : [value];
15233
15234 _this.setState({
15235 selected: updatedSelections
15236 });
15237
15238 if (onChange) onChange(updatedSelections);
15239 });
15240
15241 var _value = props.value,
15242 valueOverride = props.valueOverride;
15243 _this.state = {
15244 selected: Array.isArray(valueOverride) ? valueOverride : _value
15245 };
15246 return _this;
15247 }
15248
15249 _createClass(ItemSelectionProvider, [{
15250 key: "render",
15251 value: function render() {
15252 return React__default.createElement(Provider$6, {
15253 value: this.state
15254 }, this.props.children);
15255 }
15256 }], [{
15257 key: "getDerivedStateFromProps",
15258 value: function getDerivedStateFromProps(props) {
15259 var valueOverride = props.valueOverride;
15260 return Array.isArray(valueOverride) ? {
15261 selected: valueOverride
15262 } : null;
15263 }
15264 }]);
15265
15266 return ItemSelectionProvider;
15267}(React__default.Component);
15268
15269_defineProperty(ItemSelectionProvider, "propTypes", {
15270 children: PropTypes__default.node.isRequired,
15271 onChange: PropTypes__default.func,
15272 isMultiSelect: PropTypes__default.bool.isRequired,
15273 value: PropTypes__default.arrayOf(PropTypes__default.string),
15274 // eslint-disable-line
15275 valueOverride: PropTypes__default.arrayOf(PropTypes__default.string) // eslint-disable-line
15276
15277});
15278
15279_defineProperty(ItemSelectionProvider, "defaultProps", {
15280 value: [],
15281 valueOverride: null,
15282 onChange: null
15283});
15284
15285var TAB = 9;
15286var ESCAPE = 27;
15287var ARROWLEFT = 37;
15288var ARROWUP = 38;
15289var ARROWRIGHT = 39;
15290var ARROWDOWN = 40;
15291var SPACEBAR = 32;
15292var ENTER = 13;
15293var keyCharCodes = {
15294 ARROW_DOWN: ARROWDOWN,
15295 ARROW_LEFT: ARROWLEFT,
15296 ARROW_RIGHT: ARROWRIGHT,
15297 ARROW_UP: ARROWUP,
15298 ENTER: ENTER,
15299 ESCAPE: ESCAPE,
15300 SPACE_BAR: SPACEBAR,
15301 TAB: TAB
15302};
15303
15304var forEach = React__default.Children.forEach;
15305
15306var getSelectedChild = function getSelectedChild(children, selectedValue) {
15307 return React__default.Children.toArray(children).find(function (thisArg) {
15308 return thisArg.props.value === selectedValue;
15309 });
15310};
15311
15312var KeyBoardProvider =
15313/*#__PURE__*/
15314function (_React$Component) {
15315 _inherits(KeyBoardProvider, _React$Component);
15316
15317 function KeyBoardProvider() {
15318 var _getPrototypeOf2;
15319
15320 var _this;
15321
15322 _classCallCheck(this, KeyBoardProvider);
15323
15324 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15325 args[_key] = arguments[_key];
15326 }
15327
15328 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KeyBoardProvider)).call.apply(_getPrototypeOf2, [this].concat(args)));
15329
15330 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClick", function (_ref) {
15331 var index = _ref.index;
15332
15333 _this.setState(function () {
15334 return {
15335 focused: index
15336 };
15337 });
15338
15339 _this.setState({
15340 word: ""
15341 });
15342 });
15343
15344 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
15345 var keywordSearch = _this.props.keywordSearch; // heres the logic for looking up words with in the drop down options with the keyboard
15346 // it currently matches based on the text that has been typed
15347
15348 if (keywordSearch) {
15349 var word = _this.state.word;
15350
15351 if (event.keyCode > 48 && event.keyCode < 90) {
15352 var temp = word + event.key;
15353
15354 _this.setState({
15355 word: temp
15356 }, function () {
15357 return _this.searchValue(temp);
15358 });
15359 }
15360
15361 if (event.keyCode === SPACEBAR) _this.setState({
15362 word: ""
15363 });
15364 }
15365
15366 if ([ARROWUP, ARROWDOWN].includes(event.keyCode)) {
15367 event.preventDefault();
15368
15369 _this.cycleSelect(event.keyCode);
15370 }
15371 });
15372
15373 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "searchValue", function (string) {
15374 var children = _this.props.children;
15375 var childrenArray = React__default.Children.toArray(children);
15376 var firstMatch = childrenArray.find(function (thisArg) {
15377 if (_this.isSearchable(thisArg.props.children)) {
15378 return thisArg.props.children.substring(0, string.length).toLowerCase() === string;
15379 } else if (_this.isSearchable(thisArg.props.label)) {
15380 return thisArg.props.label.substring(0, string.length).toLowerCase() === string;
15381 }
15382
15383 return false;
15384 });
15385 if (firstMatch) _this.setState(function () {
15386 return {
15387 focused: firstMatch.props.index
15388 };
15389 });
15390 });
15391
15392 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isSearchable", function (property) {
15393 return property && property.substring;
15394 });
15395
15396 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cycleSelect", function (key) {
15397 var focused = _this.state.focused;
15398 var children = _this.props.children;
15399
15400 if (key === ARROWUP && focused <= 0) {
15401 _this.setState(function () {
15402 return {
15403 focused: children.length - 1
15404 };
15405 });
15406 }
15407
15408 if (key === ARROWUP && focused > 0) {
15409 _this.setState(function (prevState) {
15410 return {
15411 focused: prevState.focused - 1
15412 };
15413 });
15414 }
15415
15416 if (key === ARROWDOWN && focused >= children.length - 1) {
15417 _this.setState(function () {
15418 return {
15419 focused: 0
15420 };
15421 });
15422 }
15423
15424 if (key === ARROWDOWN && focused < children.length - 1) {
15425 _this.setState(function (prevState) {
15426 return {
15427 focused: prevState.focused + 1
15428 };
15429 });
15430 }
15431 });
15432
15433 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
15434 focused: 0,
15435 focusSelected: _this.onClick,
15436 word: "",
15437 firstUpdate: true,
15438 prevSelectedValue: ""
15439 });
15440
15441 return _this;
15442 }
15443
15444 _createClass(KeyBoardProvider, [{
15445 key: "render",
15446
15447 /* eslint-enable */
15448 value: function render() {
15449 var _this$props = this.props,
15450 role = _this$props.role,
15451 className = _this$props.className,
15452 keyBoardRef = _this$props.keyBoardRef,
15453 ariaLabelledby = _this$props.ariaLabelledby,
15454 navigateOptions = _this$props.navigateOptions;
15455 return React__default.createElement(Provider$7, {
15456 value: _objectSpread({}, this.state, {
15457 navigateOptions: navigateOptions
15458 })
15459 }, React__default.createElement("div", {
15460 "aria-labelledby": ariaLabelledby,
15461 role: role,
15462 className: className,
15463 ref: keyBoardRef,
15464 onKeyDown: this.onKeyDown
15465 }, this.props.children));
15466 }
15467 }], [{
15468 key: "getDerivedStateFromProps",
15469 value: function getDerivedStateFromProps(props, state) {
15470 var selected = props.selected,
15471 children = props.children;
15472 if (!selected || !selected.length) return null;
15473 var selectedValue = selected[selected.length - 1];
15474
15475 if (state.firstUpdate === true) {
15476 var selectedChild = getSelectedChild(children, selectedValue);
15477 return {
15478 focused: selectedChild ? selectedChild.props.index : 0,
15479 firstUpdate: false,
15480 prevSelectedValue: selectedValue
15481 };
15482 }
15483
15484 if (selectedValue !== state.prevSelectedValue) {
15485 var _selectedChild = getSelectedChild(children, selectedValue);
15486
15487 return {
15488 focused: _selectedChild ? _selectedChild.props.index : 0,
15489 prevSelectedValue: selectedValue
15490 };
15491 }
15492
15493 return null;
15494 }
15495 }]);
15496
15497 return KeyBoardProvider;
15498}(React__default.Component);
15499
15500_defineProperty(KeyBoardProvider, "propTypes", {
15501 children: function children(props, propName, componentName) {
15502 if (props[propName] === null) return new Error("Invalid Child");
15503 forEach(props[propName], function (child) {
15504 if (!child.props.value || !child.props.index) {
15505 return new Error("Invalid Child `".concat(child, "` supplied to") + " `".concat(componentName, "`. Validation failed."));
15506 }
15507
15508 return null;
15509 });
15510 return null;
15511 },
15512 role: PropTypes__default.string.isRequired,
15513 className: PropTypes__default.string,
15514 keywordSearch: PropTypes__default.bool,
15515 keyBoardRef: PropTypes__default.func,
15516 navigateOptions: PropTypes__default.bool,
15517 ariaLabelledby: PropTypes__default.string
15518});
15519
15520_defineProperty(KeyBoardProvider, "defaultProps", {
15521 children: null,
15522 keyBoardRef: null,
15523 className: null,
15524 keywordSearch: false,
15525 navigateOptions: true,
15526 ariaLabelledby: null
15527});
15528
15529var RadioGroup = function RadioGroup(_ref) {
15530 var onChange = _ref.onChange,
15531 children = _ref.children,
15532 value = _ref.value,
15533 props = _objectWithoutProperties(_ref, ["onChange", "children", "value"]);
15534
15535 return React__default.createElement(ItemSelectionProvider, {
15536 onChange: onChange,
15537 isMultiSelect: false,
15538 value: value
15539 }, React__default.createElement(KeyBoardProvider, props, children));
15540};
15541
15542RadioGroup.propTypes = {
15543 onChange: PropTypes__default.func,
15544 children: PropTypes__default.node,
15545 value: PropTypes__default.arrayOf(PropTypes__default.string)
15546};
15547RadioGroup.defaultProps = {
15548 children: null,
15549 onChange: null,
15550 value: []
15551};
15552RadioGroup.displayName = "RadioGroup";
15553
15554var CheckBoxGroup = function CheckBoxGroup(_ref) {
15555 var onChange = _ref.onChange,
15556 children = _ref.children,
15557 value = _ref.value;
15558 return React__default.createElement(ItemSelectionProvider, {
15559 onChange: onChange,
15560 value: value,
15561 isMultiSelect: true
15562 }, React__default.createElement(KeyBoardProvider, {
15563 role: "checkbox"
15564 }, children));
15565};
15566
15567CheckBoxGroup.propTypes = {
15568 onChange: PropTypes__default.func,
15569 children: PropTypes__default.node,
15570 value: PropTypes__default.arrayOf(PropTypes__default.string)
15571};
15572CheckBoxGroup.defaultProps = {
15573 children: null,
15574 onChange: null,
15575 value: []
15576};
15577
15578function _templateObject5$f() {
15579 var data = _taggedTemplateLiteral(["\n opacity: 0;\n font-size: ", ";\n line-height: 1.25;\n text-align: left;\n color: ", ";\n position: relative;\n transition: opacity 0.3s ", ";\n\n .text__error & {\n margin-top: 1px;\n opacity: 1;\n }\n"]);
15580
15581 _templateObject5$f = function _templateObject5() {
15582 return data;
15583 };
15584
15585 return data;
15586}
15587
15588function _templateObject4$p() {
15589 var data = _taggedTemplateLiteral(["\n height: 36px;\n width: 100%;\n box-sizing: border-box;\n border-radius: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n padding-left: 10px;\n padding-right: 10px;\n line-height: normal;\n font-size: ", ";\n color: ", ";\n\n textarea& {\n resize: none;\n min-height: 180px;\n padding-top: 11px;\n padding-bottom: 11px;\n font-family: inherit;\n }\n\n &.text--input-left {\n flex-grow: 2;\n }\n &::placeholder {\n /* chrome, firefox */\n color: ", ";\n opacity: 0.4;\n }\n &::-ms-input-placeholder {\n /* Microsoft Edge */\n color: ", ";\n opacity: 0.4;\n }\n &:-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: ", ";\n opacity: 0.4;\n }\n &:focus {\n border: 1px solid ", ";\n padding-left: 10px;\n padding-right: 10px;\n border-radius: ", ";\n box-shadow: 0 0 4px 0 inset ", ";\n background-color: ", ";\n outline: none;\n .text--input-small & {\n padding-left: 8px;\n padding-right: 8px;\n }\n .text--input-large & {\n padding-left: 12px;\n padding-right: 12px;\n }\n }\n &:hover {\n border: 2px solid ", ";\n .text__error & {\n border: 1px solid ", ";\n padding-left: 10px;\n padding-right: 10px;\n }\n .text__error.text--input-small & {\n padding-left: 8px;\n padding-right: 8px;\n }\n .text__error.text--input-large & {\n padding-left: 12px;\n padding-right: 12px;\n }\n padding-left: 9px;\n padding-right: 9px;\n\n textarea& {\n padding-top: 10px;\n padding-bottom: 10px;\n }\n\n .text--input-small & {\n padding-left: 7px;\n padding-right: 7px;\n }\n .text--input-large & {\n padding-left: 11px;\n padding-right: 11px;\n }\n }\n .text--input-small & {\n height: 24px;\n font-size: ", ";\n padding-left: 8px;\n padding-right: 8px;\n }\n .text--input-large & {\n height: 44px;\n font-size: ", ";\n padding-left: 12px;\n padding-right: 12px;\n }\n .text__error & {\n border: 1px solid ", ";\n }\n"]);
15590
15591 _templateObject4$p = function _templateObject4() {
15592 return data;
15593 };
15594
15595 return data;
15596}
15597
15598function _templateObject3$A() {
15599 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n flex-grow: 2;\n"]);
15600
15601 _templateObject3$A = function _templateObject3() {
15602 return data;
15603 };
15604
15605 return data;
15606}
15607
15608function _templateObject2$V() {
15609 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: 1.25;\n text-align: left;\n color: ", ";\n position: relative;\n .text--input-small & {\n font-size: ", ";\n }\n .text--input-large & {\n font-size: ", ";\n }\n .text--input-top & {\n margin-bottom: 6px;\n }\n .text--input-left & {\n margin-right: 11px;\n margin-top: 10px;\n }\n .text--input-left.text--input-small & {\n margin-top: 5px;\n }\n .text--input-left.text--input-large & {\n margin-top: 14px;\n }\n"]);
15610
15611 _templateObject2$V = function _templateObject2() {
15612 return data;
15613 };
15614
15615 return data;
15616}
15617
15618function _templateObject$1i() {
15619 var data = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n &.text--input-top {\n flex-direction: column;\n justify-content: left;\n }\n &.text--input-left {\n flex-direction: row;\n }\n &.text--input-disabled {\n pointer-events: none;\n opacity: 0.4;\n }\n"]);
15620
15621 _templateObject$1i = function _templateObject() {
15622 return data;
15623 };
15624
15625 return data;
15626}
15627var FieldInputWrapper = styled.div(_templateObject$1i());
15628var FieldInputText = styled.label(_templateObject2$V(), typography.size.uno, getThemeValue("gray01"), typography.size.mini, typography.size.hecto);
15629var ErrorBoxWrapper = styled.div(_templateObject3$A());
15630var FieldInputBox = styled.input.attrs(function (props) {
15631 return {
15632 type: props.type || "text"
15633 };
15634})(_templateObject4$p(), constants.borderRadius.small, getThemeValue("white", "base"), getThemeValue("gray02"), typography.size.hecto, getThemeValue("gray01"), getThemeValue("gray01"), getThemeValue("gray01"), getThemeValue("gray01"), getThemeValue("primary", "base"), constants.borderRadius.small, getThemeValue("primary", "base"), getThemeValue("white", "base"), getThemeValue("primary", "base"), getThemeValue("error", "base"), typography.size.uno, typography.size.kilo, getThemeValue("error", "base"));
15635var FieldErrorText = styled.div(_templateObject5$f(), typography.size.uno, getThemeValue("error", "base"), constants.easing.easeInOutQuad);
15636
15637var Input$1 = forwardRef(function (_ref, ref) {
15638 var labelPosition = _ref.labelPosition,
15639 placeholder = _ref.placeholder,
15640 disabled = _ref.disabled,
15641 label = _ref.label,
15642 name = _ref.name,
15643 errorMessage = _ref.errorMessage,
15644 size = _ref.size,
15645 tag = _ref.tag,
15646 labelStyle = _ref.labelStyle,
15647 errorFieldProps = _ref.errorFieldProps,
15648 id = _ref.id,
15649 rest = _objectWithoutProperties(_ref, ["labelPosition", "placeholder", "disabled", "label", "name", "errorMessage", "size", "tag", "labelStyle", "errorFieldProps", "id"]);
15650
15651 var sluggified = sluggify(name + label);
15652 var inputId = sluggified ? "".concat(sluggified, "__input") : null;
15653 var errorId = sluggified ? "".concat(sluggified, "__error") : null;
15654 return React__default.createElement(FieldInputWrapper, {
15655 className: classNames("text--input-".concat(size), "text--input-".concat(labelPosition), {
15656 "text--input-disabled": disabled,
15657 text__error: errorMessage
15658 })
15659 }, label && React__default.createElement(FieldInputText, {
15660 htmlFor: id || inputId,
15661 style: labelStyle
15662 }, label), React__default.createElement(ErrorBoxWrapper, null, React__default.createElement(FieldInputBox, _extends({
15663 placeholder: disabled ? "" : placeholder,
15664 name: name || null,
15665 id: id || inputId,
15666 disabled: disabled,
15667 as: tag,
15668 "aria-invalid": errorMessage ? "true" : "false",
15669 "aria-describedby": errorMessage ? errorId : null
15670 }, rest, {
15671 ref: ref
15672 })), errorMessage && React__default.createElement(FieldErrorText, _extends({
15673 role: "alert",
15674 id: errorId
15675 }, errorFieldProps), errorMessage)));
15676});
15677Input$1.propTypes = {
15678 children: PropTypes__default.node,
15679 labelPosition: PropTypes__default.string,
15680 placeholder: PropTypes__default.string,
15681 disabled: PropTypes__default.bool,
15682 name: PropTypes__default.string,
15683 label: PropTypes__default.string,
15684 id: PropTypes__default.string,
15685 labelStyle: PropTypes__default.shape(),
15686 errorMessage: PropTypes__default.string,
15687 errorFieldProps: PropTypes__default.shape(),
15688 size: PropTypes__default.oneOf(SIZES),
15689 tag: PropTypes__default.oneOf(["textarea", "input"])
15690};
15691Input$1.defaultProps = {
15692 children: null,
15693 labelPosition: TOP,
15694 placeholder: "",
15695 disabled: false,
15696 name: "",
15697 label: "",
15698 id: "",
15699 errorMessage: null,
15700 size: REGULAR,
15701 tag: "input",
15702 labelStyle: {},
15703 errorFieldProps: {}
15704};
15705
15706var _React$createContext$8 = React__default.createContext({
15707 isOpen: false,
15708 onClose: null
15709}),
15710 Provider$8 = _React$createContext$8.Provider,
15711 Consumer$8 = _React$createContext$8.Consumer;
15712
15713function _templateObject$1j() {
15714 var data = _taggedTemplateLiteral(["\n cursor: pointer;\n box-sizing: border-box;\n\n .dropdown__items & {\n appearance: none;\n height: 36px;\n margin: 4px 8px 0 8px;\n padding: 7px 10px;\n font-size: ", ";\n text-align: left;\n border: none;\n background-color: ", ";\n align-items: center;\n overflow-x: hidden;\n text-overflow: ellipsis;\n color: ", ";\n line-height: 1.25;\n\n &:focus {\n background-color: ", ";\n color: ", ";\n outline: none;\n border-radius: ", ";\n }\n &.dropdown__selected {\n color: ", ";\n background-color: ", ";\n border-radius: ", ";\n }\n }\n .dropdown__items.dropdown__items--small & {\n height: 32px;\n font-size: ", ";\n line-height: 1.3;\n }\n .dropdown__items.dropdown__items--large & {\n font-size: ", ";\n }\n"]);
15715
15716 _templateObject$1j = function _templateObject() {
15717 return data;
15718 };
15719
15720 return data;
15721}
15722var StyledDropDownItem = styled.span(_templateObject$1j(), typography.size.hecto, getThemeValue("white", "base"), getThemeValue("gray01"), getThemeValue("primary", "base"), getThemeValue("white", "base"), constants.borderRadius.small, getThemeValue("gray01"), getThemeValue("gray04"), constants.borderRadius.small, typography.size.hecto, typography.size.kilo);
15723
15724var DropDownInput =
15725/*#__PURE__*/
15726function (_React$Component) {
15727 _inherits(DropDownInput, _React$Component);
15728
15729 function DropDownInput() {
15730 var _getPrototypeOf2;
15731
15732 var _this;
15733
15734 _classCallCheck(this, DropDownInput);
15735
15736 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15737 args[_key] = arguments[_key];
15738 }
15739
15740 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropDownInput)).call.apply(_getPrototypeOf2, [this].concat(args)));
15741
15742 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focus", function () {
15743 if (_this.SelectedElement && _this.SelectedElement.current) {
15744 _this.SelectedElement.current.focus();
15745 }
15746 });
15747
15748 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "SelectedElement", React__default.createRef());
15749
15750 return _this;
15751 }
15752
15753 _createClass(DropDownInput, [{
15754 key: "componentDidUpdate",
15755 value: function componentDidUpdate() {
15756 if (this.props.isOpen && this.props.isFocused) {
15757 this.focus();
15758 }
15759 }
15760 }, {
15761 key: "render",
15762 value: function render() {
15763 var _this$props = this.props,
15764 value = _this$props.value,
15765 index = _this$props.index,
15766 children = _this$props.children,
15767 isSelected = _this$props.isSelected,
15768 className = _this$props.className,
15769 props = _objectWithoutProperties(_this$props, ["value", "index", "children", "isSelected", "className"]);
15770
15771 return React__default.createElement(StyledDropDownItem, _extends({
15772 role: "option",
15773 tabIndex: "-1",
15774 "aria-selected": isSelected ? "true" : "false",
15775 value: value,
15776 index: index,
15777 ref: this.SelectedElement
15778 }, props, {
15779 className: classNames(_defineProperty({
15780 dropdown__selected: isSelected
15781 }, className, !!className))
15782 }), children);
15783 }
15784 }]);
15785
15786 return DropDownInput;
15787}(React__default.Component);
15788
15789_defineProperty(DropDownInput, "propTypes", {
15790 value: PropTypes__default.string.isRequired,
15791 index: PropTypes__default.number.isRequired,
15792 children: PropTypes__default.node.isRequired,
15793 isOpen: PropTypes__default.bool.isRequired,
15794 isFocused: PropTypes__default.bool.isRequired,
15795 isSelected: PropTypes__default.bool.isRequired,
15796 className: PropTypes__default.string
15797});
15798
15799_defineProperty(DropDownInput, "defaultProps", {
15800 className: ""
15801});
15802
15803var DropDownOption =
15804/*#__PURE__*/
15805function (_React$PureComponent) {
15806 _inherits(DropDownOption, _React$PureComponent);
15807
15808 function DropDownOption() {
15809 var _getPrototypeOf2;
15810
15811 var _this;
15812
15813 _classCallCheck(this, DropDownOption);
15814
15815 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15816 args[_key] = arguments[_key];
15817 }
15818
15819 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropDownOption)).call.apply(_getPrototypeOf2, [this].concat(args)));
15820
15821 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusInput", function () {
15822 if (_this.input && _this.input.current) {
15823 _this.input.current.focus();
15824 }
15825 });
15826
15827 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "input", React__default.createRef());
15828
15829 return _this;
15830 }
15831
15832 _createClass(DropDownOption, [{
15833 key: "render",
15834 value: function render() {
15835 var _this2 = this;
15836
15837 var _this$props = this.props,
15838 value = _this$props.value,
15839 index = _this$props.index,
15840 children = _this$props.children,
15841 className = _this$props.className,
15842 preventCloseWithKeys = _this$props.preventCloseWithKeys,
15843 props = _objectWithoutProperties(_this$props, ["value", "index", "children", "className", "preventCloseWithKeys"]);
15844
15845 return React__default.createElement(Consumer$7, null, function (_ref) {
15846 var focused = _ref.focused,
15847 focusSelected = _ref.focusSelected,
15848 navigateOptions = _ref.navigateOptions;
15849 return React__default.createElement(Consumer$6, null, function (_ref2) {
15850 var selected = _ref2.selected,
15851 onClick = _ref2.onClick;
15852 var isChecked = selected.includes(value);
15853 return React__default.createElement(Consumer$8, null, function (_ref3) {
15854 var isOpen = _ref3.isOpen,
15855 onClose = _ref3.onClose;
15856 return React__default.createElement(DropDownInput, _extends({}, props, {
15857 ref: _this2.input,
15858 className: className,
15859 isOpen: isOpen,
15860 value: value,
15861 index: index,
15862 selected: selected,
15863 isSelected: isChecked,
15864 isFocused: focused === index && navigateOptions,
15865 onMouseMove: function onMouseMove() {
15866 focusSelected({
15867 index: index
15868 });
15869
15870 _this2.focusInput();
15871 },
15872 onKeyDown: function onKeyDown(e) {
15873 if ([ENTER, SPACEBAR].includes(e.keyCode)) {
15874 onClick({
15875 value: value
15876 });
15877
15878 if (preventCloseWithKeys) {
15879 e.stopPropagation();
15880 }
15881
15882 e.preventDefault();
15883 }
15884 },
15885 onClick: composeHandler(function () {
15886 return onClose();
15887 }, function () {
15888 return onClick({
15889 value: value
15890 });
15891 }, function () {
15892 return focusSelected({
15893 index: index
15894 });
15895 }, props.onClick)
15896 }), children);
15897 });
15898 });
15899 });
15900 }
15901 }]);
15902
15903 return DropDownOption;
15904}(React__default.PureComponent);
15905
15906DropDownOption.propTypes = {
15907 value: PropTypes__default.string.isRequired,
15908 index: PropTypes__default.number.isRequired,
15909 children: PropTypes__default.node.isRequired,
15910 className: PropTypes__default.string,
15911 onClick: PropTypes__default.func,
15912 preventCloseWithKeys: PropTypes__default.bool
15913};
15914DropDownOption.defaultProps = {
15915 onClick: null,
15916 className: "",
15917 preventCloseWithKeys: false
15918};
15919
15920var TWO_SIZE_VARIANT = ["small", "large"];
15921
15922var LAYOUT_VARIANTS = {
15923 BORDERED_INNER_LABEL: 0,
15924 BORDERLESS_INNER_LABEL: 1
15925};
15926var VARIANTS_WITH_BORDER = [LAYOUT_VARIANTS.BORDERED_INNER_LABEL];
15927
15928function _templateObject7$a() {
15929 var data = _taggedTemplateLiteral(["\n min-height: min-content;\n flex-direction: column;\n display: flex;\n opacity: 0;\n transition: opacity 0.3s ", ";\n\n .dropdown--clicked & {\n transition-delay: 0.1s;\n opacity: 1;\n }\n"]);
15930
15931 _templateObject7$a = function _templateObject7() {
15932 return data;
15933 };
15934
15935 return data;
15936}
15937
15938function _templateObject6$c() {
15939 var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n font-size: ", ";\n white-space: nowrap;\n width: 85%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0 14px;\n\n .dropdown--small & {\n font-size: ", ";\n margin: 0 12px;\n }\n\n .dropdown--large & {\n font-size: ", ";\n }\n\n .dropdown--no-border & {\n margin-right: 14px;\n &.dropdown--small & {\n margin-left: 12px;\n }\n }\n\n .dropdown--large.dropdown--border & {\n margin-left: 14px;\n }\n\n .dropdown--small.dropdown--border & {\n margin-left: 12px;\n }\n\n .dropdown--active.dropdown--no-border & {\n margin-right: 14px;\n &.dropdown--small & {\n margin-left: 12px;\n }\n }\n\n .dropdown--active.dropdown--no-border:hover & {\n &:not(.dropdown__text--disabled) {\n margin-right: 14px;\n }\n }\n\n .dropdown--small.dropdown--border:hover & {\n &:not(.dropdown__text--disabled) {\n margin-left: 12px;\n }\n }\n\n .dropdown--large.dropdown--border:hover & {\n &:not(.dropdown__text--disabled) {\n margin-left: 14px;\n }\n }\n\n svg {\n margin-right: 12px;\n }\n"]);
15940
15941 _templateObject6$c = function _templateObject6() {
15942 return data;
15943 };
15944
15945 return data;
15946}
15947
15948function _templateObject5$g() {
15949 var data = _taggedTemplateLiteral(["\n color: ", ";\n transition: opacity 0.1s ", ";\n margin-right: 14px;\n min-width: 16px;\n\n .dropdown--small & {\n margin-right: 14px;\n }\n\n .dropdown--border:hover & {\n &:not(.dropdown__chevron--disabled) {\n margin-right: 14px;\n }\n }\n\n .dropdown--small.dropdown--border:hover & {\n &:not(.dropdown__chevron--disabled) {\n margin-right: 12px;\n }\n }\n\n &.dropdown__icon--hide {\n opacity: 0;\n }\n"]);
15950
15951 _templateObject5$g = function _templateObject5() {
15952 return data;
15953 };
15954
15955 return data;
15956}
15957
15958function _templateObject4$q() {
15959 var data = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n color: ", ";\n outline: none;\n border-radius: ", ";\n &:focus {\n box-shadow: 0 0 5px 0 ", ";\n }\n\n &.full-width {\n width: 100%;\n display: block;\n }\n\n &.hybrid {\n &.hybrid-margin-small {\n margin-top: -36px;\n }\n &.hybrid-margin-large {\n margin-top: -44px;\n }\n }\n"]);
15960
15961 _templateObject4$q = function _templateObject4() {
15962 return data;
15963 };
15964
15965 return data;
15966}
15967
15968function _templateObject3$B() {
15969 var data = _taggedTemplateLiteral(["\n display: none;\n"]);
15970
15971 _templateObject3$B = function _templateObject3() {
15972 return data;
15973 };
15974
15975 return data;
15976}
15977
15978function _templateObject2$W() {
15979 var data = _taggedTemplateLiteral(["\n position: absolute;\n display: flex;\n background-color: ", ";\n border-radius: ", ";\n white-space: nowrap;\n margin-top: ", ";\n box-shadow: ", ";\n box-sizing: border-box;\n\n flex-direction: column;\n flex: 1;\n width: auto;\n overflow: hidden;\n z-index: ", ";\n border-color: ", ";\n border-style: solid;\n border-width: 0;\n max-height: 0;\n\n transition: max-height 0.3s ", ",\n border-width 0s ease 0.3s, padding-top 0s ease 0.3s,\n padding-bottom 0s ease 0.3s;\n\n &:focus {\n box-shadow: 0 0 5px 0 ", ";\n }\n\n &.dropdown--clicked {\n padding-top: 4px;\n padding-bottom: 8px;\n border-width: 1px;\n max-height: 606px;\n\n transition: max-height 0.3s ", ",\n border-width 0s, padding-top 0s, padding-bottom 0s;\n }\n\n &.dropdown--overflow {\n overflow-y: auto;\n }\n\n .dropdown--open-upward & {\n bottom: 46px;\n border-radius: ", ";\n box-shadow: ", ";\n\n &.dropdown__items--small {\n bottom: 35px;\n }\n }\n"]);
15980
15981 _templateObject2$W = function _templateObject2() {
15982 return data;
15983 };
15984
15985 return data;
15986}
15987
15988function _templateObject$1k() {
15989 var data = _taggedTemplateLiteral(["\n height: 44px;\n background-color: ", ";\n border-radius: ", ";\n position: relative;\n padding: 0px;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n transition: border-color 0.3s ", ",\n z-index 0s ease 0.3s;\n\n z-index: ", ";\n\n &.dropdown--small {\n height: 36px;\n }\n\n &.full-width {\n width: 100%;\n }\n\n &.dropdown--border {\n border: solid 1px ", ";\n padding: 1px;\n text-align: left;\n }\n\n &.dropdown--no-border {\n border: solid 2px ", ";\n text-align: right;\n justify-content: flex-end;\n }\n\n &.dropdown--active {\n margin: 0;\n padding: 1px;\n border: solid 1px ", ";\n border-radius: ", ";\n /* for the purpose of the correct box-shadow */\n z-index: ", ";\n transition: border-color 0.3s ", ",\n z-index 0s ease;\n }\n\n .dropdown--disabled & {\n cursor: not-allowed;\n transition: none;\n opacity: 0.4;\n }\n\n .dropdown--open-upward & {\n border-radius: ", ";\n box-shadow: ", ";\n }\n\n &:hover:not(.dropdown__label--disabled) {\n border: solid 2px ", ";\n padding: 0;\n }\n"]);
15990
15991 _templateObject$1k = function _templateObject() {
15992 return data;
15993 };
15994
15995 return data;
15996}
15997var small$1 = constants.borderRadius.small;
15998var DROP_DOWN_SHADOW = "0 2px 4px 0 rgba(0, 0, 0, 0.12)";
15999var StyledGroup = styled.label(_templateObject$1k(), getThemeValue("white", "base"), small$1, constants.easing.easeInOutQuad, zIndex.default, getThemeValue("gray02"), getThemeValue("white", "base"), getThemeValue("gray02"), small$1, zIndex.layout.overlay + 1, constants.easing.easeInOutQuad, small$1, DROP_DOWN_SHADOW, getThemeValue("primary", "base"));
16000var StyledChildWrapper = styled.div(_templateObject2$W(), getThemeValue("white", "base"), small$1, small$1, DROP_DOWN_SHADOW, zIndex.layout.overlay, getThemeValue("gray02"), constants.easing.easeInOutQuad, getThemeValue("primary", "base"), constants.easing.easeInOutQuad, small$1, DROP_DOWN_SHADOW);
16001var HiddenLabel = styled.span(_templateObject3$B());
16002var StyledGroupWrapper = styled.div(_templateObject4$q(), getThemeValue("gray01"), small$1, getThemeValue("primary", "base"));
16003var StyledChevron = styled(DownIcon).attrs({
16004 size: "small"
16005})(_templateObject5$g(), getThemeValue("gray02"), constants.easing.easeInOutQuad);
16006var StyledSelectedText = styled.div(_templateObject6$c(), typography.size.hecto, typography.size.hecto, typography.size.kilo);
16007var StyledKeyboardProvider = styled(KeyBoardProvider)(_templateObject7$a(), constants.easing.easeInOutQuad);
16008
16009var DropDownGroup =
16010/*#__PURE__*/
16011function (_React$Component) {
16012 _inherits(DropDownGroup, _React$Component);
16013
16014 function DropDownGroup() {
16015 var _getPrototypeOf2;
16016
16017 var _this;
16018
16019 _classCallCheck(this, DropDownGroup);
16020
16021 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16022 args[_key] = arguments[_key];
16023 }
16024
16025 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DropDownGroup)).call.apply(_getPrototypeOf2, [this].concat(args)));
16026
16027 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClick", function () {
16028 _this.toggleDropdown();
16029 });
16030
16031 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (e) {
16032 var keyCode = e.keyCode;
16033 var keywordSearch = _this.props.keywordSearch;
16034 var isOpen = _this.state.isOpen;
16035
16036 switch (keyCode) {
16037 case ESCAPE:
16038 _this.closeDropdown();
16039
16040 break;
16041
16042 case TAB:
16043 if (isOpen) {
16044 e.preventDefault();
16045 }
16046
16047 break;
16048
16049 case ARROWUP:
16050 case ARROWDOWN:
16051 e.preventDefault();
16052
16053 if (_this.state.isOpen) {
16054 _this.enableNavigation();
16055 } else {
16056 _this.openDropdown();
16057 }
16058
16059 break;
16060
16061 case ENTER:
16062 case SPACEBAR:
16063 e.preventDefault();
16064
16065 _this.toggleDropdown();
16066
16067 break;
16068
16069 default:
16070 if (keywordSearch) {
16071 _this.searchKeyWord(e);
16072 }
16073
16074 break;
16075 }
16076 });
16077
16078 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getCurrentSelection", function (value) {
16079 var selectedItem = React__default.Children.toArray(_this.props.children).find(function (c) {
16080 return c.props.value === value;
16081 });
16082 return selectedItem && selectedItem.props.children;
16083 });
16084
16085 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cleanWord", throttle(function () {
16086 _this.setState({
16087 word: "",
16088 selected: null
16089 });
16090 }, 1000));
16091
16092 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "searchValue", function (string) {
16093 var _this$props = _this.props,
16094 children = _this$props.children,
16095 onChange = _this$props.onChange;
16096 var childrenArray = React__default.Children.toArray(children);
16097 var firstMatch = childrenArray.find(function (thisArg) {
16098 return thisArg.props.children.substring(0, string.length).toLowerCase() === string;
16099 });
16100
16101 if (firstMatch) {
16102 _this.setState(function () {
16103 return {
16104 selected: [firstMatch.props.value]
16105 };
16106 });
16107
16108 if (onChange) onChange([firstMatch.props.value]);
16109 }
16110 });
16111
16112 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "closeDropdown", function () {
16113 var dropdownMenuClose = _this.props.dropdownMenuClose;
16114
16115 _this.groupWrapper.current.focus();
16116
16117 _this.setState({
16118 isOpen: false,
16119 selected: null,
16120 word: ""
16121 });
16122
16123 if (dropdownMenuClose) {
16124 dropdownMenuClose();
16125 }
16126 });
16127
16128 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "openDropdown", function () {
16129 var dropdownMenuOpen = _this.props.dropdownMenuOpen;
16130
16131 _this.setState({
16132 isOpen: true
16133 });
16134
16135 if (dropdownMenuOpen) {
16136 dropdownMenuOpen();
16137 }
16138 });
16139
16140 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "enableNavigation", function () {
16141 if (!_this.state.navigateOptions) {
16142 _this.setState({
16143 navigateOptions: true
16144 });
16145 }
16146 });
16147
16148 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleDropdown", function () {
16149 var onDropDownToggle = _this.props.onDropDownToggle;
16150 var isOpen = _this.state.isOpen;
16151
16152 if (isOpen) {
16153 _this.closeDropdown();
16154 } else {
16155 _this.openDropdown();
16156 }
16157
16158 if (onDropDownToggle) {
16159 onDropDownToggle(!isOpen);
16160 }
16161 });
16162
16163 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "stopInteraction", function (e) {
16164 e.preventDefault();
16165 e.stopPropagation();
16166 });
16167
16168 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleOutsideClick", function (e) {
16169 if (_this.state.isOpen && !_this.groupWrapper.current.contains(e.target)) {
16170 _this.closeDropdown();
16171 }
16172 });
16173
16174 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "displayLabel", function (selected) {
16175 var _this$props2 = _this.props,
16176 placeholder = _this$props2.placeholder,
16177 label = _this$props2.label,
16178 hiddenLabel = _this$props2.hiddenLabel;
16179
16180 if (placeholder.length > 0 && selected.length === 0) {
16181 return placeholder;
16182 }
16183
16184 if (!hiddenLabel && selected.length > 0 && label.length > 0) {
16185 return React__default.createElement(Fragment, null, label, " ", _this.getCurrentSelection(selected[0]));
16186 }
16187
16188 return _this.getCurrentSelection(selected[0]);
16189 });
16190
16191 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "groupWrapper", React__default.createRef());
16192
16193 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "styledChildWrapper", React__default.createRef());
16194
16195 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "ANIMATION_TIMEOUT", 300);
16196
16197 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
16198 selected: null,
16199 isOpen: false,
16200 isOpenPrevProp: false,
16201 onClose: _this.onClick,
16202 navigateOptions: false,
16203 word: ""
16204 });
16205
16206 return _this;
16207 }
16208
16209 _createClass(DropDownGroup, [{
16210 key: "componentDidMount",
16211 value: function componentDidMount() {
16212 var container = this.props.containerOverride || document;
16213 container.addEventListener("click", this.handleOutsideClick);
16214 }
16215 }, {
16216 key: "componentDidUpdate",
16217 value: function componentDidUpdate(prevProps, prevState) {
16218 var isOpen = this.state.isOpen; // scroll dropdown to top after opening
16219
16220 if (!this.props.isOpen && isOpen && isOpen !== prevState.isOpen) {
16221 this.styledChildWrapper.current.scrollTop = 0;
16222 }
16223
16224 var _this$props3 = this.props,
16225 value = _this$props3.value,
16226 valueOverride = _this$props3.valueOverride;
16227 var selected = Array.isArray(valueOverride) ? valueOverride : value;
16228
16229 if (selected && selected.length > 0) {
16230 this.enableNavigation();
16231 }
16232 }
16233 }, {
16234 key: "componentWillUnmount",
16235 value: function componentWillUnmount() {
16236 var container = this.props.containerOverride || document;
16237 container.removeEventListener("click", this.handleOutsideClick);
16238 }
16239 }, {
16240 key: "searchKeyWord",
16241 value: function searchKeyWord(e) {
16242 var _this2 = this;
16243
16244 var keyCode = e.keyCode;
16245 var word = this.state.word;
16246
16247 if (keyCode >= 48 && keyCode <= 90) {
16248 var temp = word + e.key;
16249 this.setState({
16250 word: temp
16251 }, function () {
16252 return _this2.searchValue(temp);
16253 });
16254 this.cleanWord();
16255 }
16256 }
16257 }, {
16258 key: "render",
16259
16260 /* eslint-enable */
16261 value: function render() {
16262 var _this3 = this;
16263
16264 var _this$props4 = this.props,
16265 children = _this$props4.children,
16266 value = _this$props4.value,
16267 valueOverride = _this$props4.valueOverride,
16268 onChange = _this$props4.onChange,
16269 variant = _this$props4.variant,
16270 isOpenProp = _this$props4.isOpen,
16271 keywordSearch = _this$props4.keywordSearch,
16272 withKeyboardProvider = _this$props4.withKeyboardProvider,
16273 placeholder = _this$props4.placeholder,
16274 label = _this$props4.label,
16275 hiddenLabel = _this$props4.hiddenLabel,
16276 disabled = _this$props4.disabled,
16277 size = _this$props4.size,
16278 shouldOpenDownward = _this$props4.shouldOpenDownward,
16279 icon = _this$props4.icon,
16280 chevronVisible = _this$props4.chevronVisible,
16281 fullWidth = _this$props4.fullWidth,
16282 onDropDownToggle = _this$props4.onDropDownToggle,
16283 hybrid = _this$props4.hybrid,
16284 props = _objectWithoutProperties(_this$props4, ["children", "value", "valueOverride", "onChange", "variant", "isOpen", "keywordSearch", "withKeyboardProvider", "placeholder", "label", "hiddenLabel", "disabled", "size", "shouldOpenDownward", "icon", "chevronVisible", "fullWidth", "onDropDownToggle", "hybrid"]);
16285
16286 var _this$state = this.state,
16287 selectedValue = _this$state.selected,
16288 isOpenState = _this$state.isOpen,
16289 navigateOptions = _this$state.navigateOptions;
16290 var isOpen = isOpenProp || isOpenState;
16291 var hiddenLabelId = "hidden-label__".concat((placeholder || label).replace(/ /g, "_"));
16292 var onClickListener = disabled ? {
16293 onMouseDown: this.stopInteraction
16294 } : {
16295 onClick: this.onClick
16296 };
16297 var isBorderAround = VARIANTS_WITH_BORDER.includes(variant);
16298 return React__default.createElement(ItemSelectionProvider, {
16299 onChange: onChange,
16300 isMultiSelect: false,
16301 value: value,
16302 valueOverride: valueOverride || selectedValue
16303 }, React__default.createElement(Consumer$6, null, function (_ref) {
16304 var selected = _ref.selected;
16305 var keyboardProviderProps = withKeyboardProvider ? {
16306 keywordSearch: keywordSearch,
16307 selected: selected
16308 } : {
16309 as: "div"
16310 };
16311 return React__default.createElement(Transition, {
16312 in: isOpen,
16313 timeout: _this3.ANIMATION_TIMEOUT
16314 }, function (state) {
16315 var _classNames;
16316
16317 // keep dropdown--open-upward className until collapse animation is finished (.3s)
16318 var hasOpenUpwardClass = state !== "exited" && !shouldOpenDownward;
16319 return React__default.createElement(StyledGroupWrapper, _extends({}, props, {
16320 className: classNames(props.className, (_classNames = {
16321 "dropdown--open-upward": hasOpenUpwardClass,
16322 "dropdown--disabled": disabled,
16323 "full-width": fullWidth
16324 }, _defineProperty(_classNames, "hybrid-margin-".concat(size), hybrid), _defineProperty(_classNames, "hybrid", hybrid), _classNames)),
16325 tabIndex: disabled || hybrid ? -1 : 0,
16326 "aria-haspopup": "listbox",
16327 "aria-labelledby": hiddenLabelId,
16328 onKeyDown: _this3.onKeyDown,
16329 ref: _this3.groupWrapper
16330 }), React__default.createElement(StyledGroup, _extends({}, onClickListener, {
16331 className: classNames("dropdown__label dropdown--".concat(size), {
16332 "dropdown--active": isOpen,
16333 "dropdown--border": isBorderAround,
16334 "dropdown--no-border": !isBorderAround,
16335 "dropdown__label--disabled": disabled,
16336 "full-width": fullWidth
16337 })
16338 }), React__default.createElement(HiddenLabel, {
16339 id: hiddenLabelId
16340 }, placeholder || label), React__default.createElement(StyledSelectedText, {
16341 className: classNames({
16342 "dropdown__text--disabled": disabled
16343 })
16344 }, icon, _this3.displayLabel(selected)), chevronVisible && React__default.createElement(StyledChevron, {
16345 className: classNames({
16346 "dropdown__icon--hide": isOpen,
16347 "dropdown--no-border": !isBorderAround,
16348 "dropdown__chevron--disabled": disabled
16349 })
16350 })), React__default.createElement(Transition, {
16351 in: isOpen,
16352 timeout: _this3.ANIMATION_TIMEOUT
16353 }, function (wrapperState) {
16354 return React__default.createElement(StyledChildWrapper, {
16355 className: classNames("dropdown__items", "dropdown__items--".concat(size), {
16356 "dropdown--clicked": isOpen,
16357 "dropdown--overflow": wrapperState === "entered"
16358 }),
16359 ref: _this3.styledChildWrapper
16360 }, React__default.createElement(Provider$8, {
16361 value: _objectSpread({}, _this3.state, {
16362 isOpen: isOpen
16363 })
16364 }, React__default.createElement(StyledKeyboardProvider, _extends({
16365 role: "listbox",
16366 ariaLabelledby: hiddenLabelId
16367 }, keyboardProviderProps, {
16368 navigateOptions: navigateOptions
16369 }), children)));
16370 }));
16371 });
16372 }));
16373 }
16374 }], [{
16375 key: "getDerivedStateFromProps",
16376 value: function getDerivedStateFromProps(props, state) {
16377 if (props.isOpen !== state.isOpenPrevProp) {
16378 return {
16379 isOpen: props.isOpen,
16380 isOpenPrevProp: props.isOpen
16381 };
16382 }
16383
16384 return null;
16385 }
16386 }]);
16387
16388 return DropDownGroup;
16389}(React__default.Component);
16390
16391_defineProperty(DropDownGroup, "LAYOUT_VARIANTS", LAYOUT_VARIANTS);
16392
16393DropDownGroup.propTypes = {
16394 value: PropTypes__default.arrayOf(PropTypes__default.string),
16395 valueOverride: PropTypes__default.arrayOf(PropTypes__default.string),
16396 children: PropTypes__default.node.isRequired,
16397 onChange: PropTypes__default.func,
16398 placeholder: PropTypes__default.string,
16399 variant: PropTypes__default.oneOf(Object.values(LAYOUT_VARIANTS)),
16400 label: PropTypes__default.string,
16401 hiddenLabel: PropTypes__default.bool,
16402 isOpen: PropTypes__default.bool,
16403 keywordSearch: PropTypes__default.bool,
16404 withKeyboardProvider: PropTypes__default.bool,
16405 disabled: PropTypes__default.bool,
16406 size: PropTypes__default.oneOf(TWO_SIZE_VARIANT),
16407 fullWidth: PropTypes__default.bool,
16408 shouldOpenDownward: PropTypes__default.bool,
16409 icon: PropTypes__default.node,
16410 chevronVisible: PropTypes__default.bool,
16411 onDropDownToggle: PropTypes__default.func,
16412 hybrid: PropTypes__default.bool,
16413 dropdownMenuOpen: PropTypes__default.func,
16414 dropdownMenuClose: PropTypes__default.func,
16415 containerOverride: PropTypes__default.node
16416};
16417DropDownGroup.defaultProps = {
16418 value: [],
16419 valueOverride: null,
16420 onChange: null,
16421 placeholder: "",
16422 variant: LAYOUT_VARIANTS.BORDERED_INNER_LABEL,
16423 isOpen: false,
16424 keywordSearch: true,
16425 withKeyboardProvider: true,
16426 label: "",
16427 hiddenLabel: false,
16428 disabled: false,
16429 size: TWO_SIZE_VARIANT[1],
16430 shouldOpenDownward: true,
16431 icon: null,
16432 chevronVisible: true,
16433 fullWidth: false,
16434 onDropDownToggle: null,
16435 hybrid: false,
16436 dropdownMenuOpen: null,
16437 dropdownMenuClose: null,
16438 containerOverride: null
16439};
16440
16441var _fontForSizeMap;
16442
16443function _templateObject$1l() {
16444 var data = _taggedTemplateLiteral(["\n display: block;\n font-size: ", ";\n opacity: ", ";\n"]);
16445
16446 _templateObject$1l = function _templateObject() {
16447 return data;
16448 };
16449
16450 return data;
16451}
16452var fontForSizeMap = (_fontForSizeMap = {}, _defineProperty(_fontForSizeMap, TWO_SIZE_VARIANT[0], typography.size.uno), _defineProperty(_fontForSizeMap, TWO_SIZE_VARIANT[1], typography.size.hecto), _fontForSizeMap);
16453var StyledLabel = styled.label(_templateObject$1l(), function (_ref) {
16454 var size = _ref.size;
16455 return fontForSizeMap[size];
16456}, function (_ref2) {
16457 var disabled = _ref2.disabled;
16458 return disabled ? "0.4" : "1";
16459});
16460
16461var DropDownLabel = function DropDownLabel(_ref3) {
16462 var children = _ref3.children,
16463 size = _ref3.size,
16464 disabled = _ref3.disabled,
16465 otherProps = _objectWithoutProperties(_ref3, ["children", "size", "disabled"]);
16466
16467 return React__default.createElement(StyledLabel, _extends({
16468 size: size,
16469 disabled: disabled
16470 }, otherProps), children);
16471};
16472
16473DropDownLabel.propTypes = {
16474 size: PropTypes__default.string,
16475 disabled: PropTypes__default.bool,
16476 children: PropTypes__default.oneOfType([PropTypes__default.arrayOf(PropTypes__default.node), PropTypes__default.node]).isRequired
16477};
16478DropDownLabel.defaultProps = {
16479 size: TWO_SIZE_VARIANT[1],
16480 disabled: false
16481};
16482
16483function _templateObject$1m() {
16484 var data = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n color: ", ";\n background-color: ", ";\n border-radius: ", ";\n height: 44px;\n padding: 0 44px 0 14px;\n font-size: ", ";\n transition: border-color 0.3s ", ",\n z-index 0s ease 0.3s;\n appearance: none;\n /* stylelint-disable */\n -webkit-appearance: none;\n -moz-appearance: none;\n /* stylelint-enable */\n background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><g fill=\"none\" fill-rule=\"evenodd\"><path d=\"M16 0H0v16h16z\" /><path fill=\"%23262626\" fill-opacity=\".65\" fill-rule=\"nonzero\" d=\"M3.278 5.459A.75.75 0 0 0 2.221 6.52l5.263 5.24a.75.75 0 0 0 1.059 0L13.78 6.52a.75.75 0 0 0-1.06-1.06l-4.71 4.711L3.278 5.46z\"/></g></svg>');\n background-repeat: no-repeat;\n background-position-y: 50%;\n background-position-x: calc(100% - 15px);\n\n &.select--small {\n height: 36px;\n padding: 0 42px 0 13px;\n font-size: ", ";\n }\n\n &.select--disabled {\n cursor: not-allowed;\n opacity: 1;\n }\n\n &:focus {\n box-shadow: 0 0 5px 0 ", ";\n }\n\n &.select--border {\n border: solid 1px ", ";\n padding: 1px 45px 1px 15px;\n\n &.select--small {\n padding: 1px 42px 1px 13px;\n }\n\n &.select--disabled {\n opacity: 0.4;\n }\n }\n\n &.select--no-border {\n border: solid 2px ", ";\n background-position-x: calc(100% - 14px);\n }\n\n &.select--chevron--disabled {\n background-image: none;\n padding: 0 15px 0 15px;\n\n &.select--small {\n padding: 0 12px 0 13px;\n }\n\n &.select--no-border {\n padding: 0 14px 0 14px;\n\n &.select--small {\n padding: 0 13px 0 12px;\n }\n }\n }\n\n &.select--full--width {\n width: 100%;\n }\n\n &.hybrid {\n opacity: 0;\n\n &:focus {\n opacity: 1;\n }\n }\n\n &:hover:not(.select--disabled) {\n border: solid 2px ", ";\n background-position-x: calc(100% - 14px);\n padding: 0 44px 0 14px;\n\n &.select--small {\n background-position-x: calc(100% - 12px);\n padding: 0 39px 0 12px;\n }\n\n &.select--no-border {\n &.select--small {\n background-position-x: calc(100% - 14px);\n padding: 0 42px 0 13px;\n }\n }\n\n &.select--chevron--disabled {\n padding: 0 14px 0 14px;\n\n &.select--small {\n padding: 0 11px 0 12px;\n }\n\n &.select--no-border {\n &.select--small {\n padding: 0 13px 0 12px;\n }\n }\n }\n\n &.select--full--width {\n background-position-x: calc(100% - 14px);\n }\n }\n"]);
16485
16486 _templateObject$1m = function _templateObject() {
16487 return data;
16488 };
16489
16490 return data;
16491}
16492var small$2 = constants.borderRadius.small;
16493var StyledSelect = styled.select(_templateObject$1m(), getThemeValue("gray01"), getThemeValue("white", "base"), small$2, typography.size.kilo, constants.easing.easeInOutQuad, typography.size.hecto, getThemeValue("primary", "base"), getThemeValue("gray02"), getThemeValue("white", "base"), getThemeValue("primary", "base"));
16494
16495var LAYOUT_VARIANTS$1 = {
16496 BORDERED_INNER_LABEL: 0,
16497 BORDERLESS_INNER_LABEL: 1
16498};
16499var VARIANTS_WITH_BORDER$1 = [LAYOUT_VARIANTS$1.BORDERED_INNER_LABEL];
16500
16501var Select = function Select(_ref) {
16502 var variant = _ref.variant,
16503 size = _ref.size,
16504 disabled = _ref.disabled,
16505 chevronVisible = _ref.chevronVisible,
16506 fullWidth = _ref.fullWidth,
16507 hybrid = _ref.hybrid,
16508 showSelect = _ref.showSelect,
16509 className = _ref.className,
16510 selectRef = _ref.selectRef,
16511 children = _ref.children,
16512 rest = _objectWithoutProperties(_ref, ["variant", "size", "disabled", "chevronVisible", "fullWidth", "hybrid", "showSelect", "className", "selectRef", "children"]);
16513
16514 var isBorderAround = VARIANTS_WITH_BORDER$1.includes(variant);
16515 return React__default.createElement(StyledSelect, _extends({}, rest, {
16516 showSelect: showSelect,
16517 disabled: disabled,
16518 ref: selectRef,
16519 className: classNames(className, "select--".concat(size), {
16520 "select--disabled": disabled,
16521 "select--border": isBorderAround,
16522 "select--no-border": !isBorderAround,
16523 "select--chevron--disabled": !chevronVisible,
16524 "select--full--width": fullWidth,
16525 hybrid: hybrid
16526 })
16527 }), children);
16528};
16529
16530Select.propTypes = {
16531 variant: PropTypes__default.oneOf(Object.values(LAYOUT_VARIANTS$1)),
16532 size: PropTypes__default.oneOf(TWO_SIZE_VARIANT),
16533 disabled: PropTypes__default.bool,
16534 chevronVisible: PropTypes__default.bool,
16535 fullWidth: PropTypes__default.bool,
16536 hybrid: PropTypes__default.bool,
16537 showSelect: PropTypes__default.bool,
16538 className: PropTypes__default.string,
16539 children: PropTypes__default.node.isRequired
16540};
16541Select.defaultProps = {
16542 variant: LAYOUT_VARIANTS$1.BORDERED_INNER_LABEL,
16543 size: TWO_SIZE_VARIANT[1],
16544 disabled: false,
16545 chevronVisible: true,
16546 fullWidth: false,
16547 hybrid: false,
16548 showSelect: true,
16549 className: ""
16550};
16551
16552var Option = function Option(_ref) {
16553 var value = _ref.value,
16554 optionText = _ref.optionText,
16555 label = _ref.label,
16556 children = _ref.children,
16557 props = _objectWithoutProperties(_ref, ["value", "optionText", "label", "children"]);
16558
16559 return React__default.createElement("option", _extends({
16560 value: value
16561 }, props), optionText || label || children);
16562};
16563
16564Option.propTypes = {
16565 value: PropTypes__default.string.isRequired,
16566 children: PropTypes__default.node.isRequired,
16567 label: PropTypes__default.string,
16568 optionText: PropTypes__default.string
16569};
16570Option.defaultProps = {
16571 label: "",
16572 optionText: ""
16573};
16574
16575function _templateObject$1n() {
16576 var data = _taggedTemplateLiteral(["\n position: relative;\n"]);
16577
16578 _templateObject$1n = function _templateObject() {
16579 return data;
16580 };
16581
16582 return data;
16583}
16584var HybridSelectWrapper = styled.div(_templateObject$1n());
16585
16586var HybridSelect =
16587/*#__PURE__*/
16588function (_Component) {
16589 _inherits(HybridSelect, _Component);
16590
16591 function HybridSelect() {
16592 var _getPrototypeOf2;
16593
16594 var _this;
16595
16596 _classCallCheck(this, HybridSelect);
16597
16598 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16599 args[_key] = arguments[_key];
16600 }
16601
16602 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HybridSelect)).call.apply(_getPrototypeOf2, [this].concat(args)));
16603
16604 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (value, eventFrom) {
16605 var onChange = _this.props.onChange;
16606
16607 if (onChange) {
16608 onChange(value, eventFrom || "dropdown");
16609 }
16610 });
16611
16612 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocus", function (e) {
16613 var onFocus = _this.props.onFocus;
16614 _this.selectRef.current.tabIndex = -1;
16615
16616 if (onFocus) {
16617 onFocus(e);
16618 }
16619 });
16620
16621 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onBlur", function (e) {
16622 var onBlur = _this.props.onBlur;
16623 _this.selectRef.current.tabIndex = 0;
16624
16625 if (onBlur) {
16626 onBlur(e);
16627 }
16628 });
16629
16630 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "selectRef", React__default.createRef());
16631
16632 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateValue", function (e) {
16633 return _this.onChange([e.target.value], "select");
16634 });
16635
16636 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderChildren", function (extraProps, children) {
16637 var childrenWithExtraProps = React__default.Children.map(children, function (child) {
16638 if (React__default.isValidElement(child)) {
16639 return React__default.cloneElement(child, extraProps);
16640 }
16641
16642 return child;
16643 });
16644 return childrenWithExtraProps;
16645 });
16646
16647 return _this;
16648 }
16649
16650 _createClass(HybridSelect, [{
16651 key: "render",
16652 value: function render() {
16653 var _this$props = this.props,
16654 placeholder = _this$props.placeholder,
16655 value = _this$props.value,
16656 valueOverride = _this$props.valueOverride,
16657 showOptionPlaceholder = _this$props.showOptionPlaceholder,
16658 label = _this$props.label,
16659 optionPlaceholderProps = _this$props.optionPlaceholderProps,
16660 hybridWrapperProps = _this$props.hybridWrapperProps,
16661 selectProps = _this$props.selectProps,
16662 dropdownProps = _this$props.dropdownProps,
16663 children = _this$props.children,
16664 props = _objectWithoutProperties(_this$props, ["placeholder", "value", "valueOverride", "showOptionPlaceholder", "label", "optionPlaceholderProps", "hybridWrapperProps", "selectProps", "dropdownProps", "children"]);
16665
16666 return React__default.createElement(HybridSelectWrapper, hybridWrapperProps, React__default.createElement(Select, _extends({}, props, selectProps, {
16667 hybrid: true,
16668 value: value[0],
16669 selectRef: this.selectRef,
16670 onChange: this.updateValue
16671 }), showOptionPlaceholder && React__default.createElement("option", _extends({
16672 value: ""
16673 }, optionPlaceholderProps), placeholder), this.renderChildren({
16674 optionFor: "select"
16675 }, children)), React__default.createElement(DropDownGroup, _extends({}, props, dropdownProps, {
16676 hybrid: true,
16677 placeholder: placeholder,
16678 label: label,
16679 value: value,
16680 valueOverride: valueOverride || value,
16681 onChange: this.onChange,
16682 onFocus: this.onFocus,
16683 onBlur: this.onBlur
16684 }), this.renderChildren({
16685 optionFor: "dropdown"
16686 }, children)));
16687 }
16688 }]);
16689
16690 return HybridSelect;
16691}(Component);
16692
16693HybridSelect.propTypes = {
16694 value: PropTypes__default.arrayOf(PropTypes__default.string),
16695 children: PropTypes__default.node.isRequired,
16696 onChange: PropTypes__default.func,
16697 placeholder: PropTypes__default.string,
16698 showOptionPlaceholder: PropTypes__default.bool,
16699
16700 /* eslint-disable react/forbid-prop-types */
16701 optionPlaceholderProps: PropTypes__default.object,
16702 hybridWrapperProps: PropTypes__default.object,
16703 selectProps: PropTypes__default.object,
16704 dropdownProps: PropTypes__default.object
16705 /* eslint-enable react/forbid-prop-types */
16706
16707};
16708HybridSelect.defaultProps = {
16709 value: [],
16710 onChange: null,
16711 placeholder: "",
16712 showOptionPlaceholder: true,
16713 optionPlaceholderProps: {},
16714 hybridWrapperProps: {},
16715 selectProps: {},
16716 dropdownProps: {}
16717};
16718
16719var HybridOption = function HybridOption(_ref) {
16720 var optionFor = _ref.optionFor,
16721 optionText = _ref.optionText,
16722 optionProps = _ref.optionProps,
16723 dropdownOptionProps = _ref.dropdownOptionProps,
16724 children = _ref.children,
16725 props = _objectWithoutProperties(_ref, ["optionFor", "optionText", "optionProps", "dropdownOptionProps", "children"]);
16726
16727 if (optionFor === "select") {
16728 return React__default.createElement(Option, _extends({
16729 optionText: optionText
16730 }, props, optionProps), children);
16731 }
16732
16733 return React__default.createElement(DropDownOption, _extends({}, props, dropdownOptionProps), children);
16734};
16735
16736HybridOption.propTypes = {
16737 value: PropTypes__default.string.isRequired,
16738 children: PropTypes__default.node.isRequired,
16739 optionText: PropTypes__default.string,
16740 optionFor: PropTypes__default.string,
16741
16742 /* eslint-disable react/forbid-prop-types */
16743 optionProps: PropTypes__default.object,
16744 dropdownOptionProps: PropTypes__default.object
16745 /* eslint-enable react/forbid-prop-types */
16746
16747};
16748HybridOption.defaultProps = {
16749 optionText: "",
16750 optionFor: "select",
16751 optionProps: {},
16752 dropdownOptionProps: {}
16753};
16754
16755var TOGGLE_SIZES = ["small", "large"];
16756
16757function _templateObject5$h() {
16758 var data = _taggedTemplateLiteral(["\n display: flex;\n align-self: center;\n border-radius: 50%;\n box-sizing: border-box;\n position: relative;\n transition: background-color 0.3s ", ",\n left 0.3s ", ";\n\n .toggle--small & {\n width: 10px;\n height: 10px;\n }\n .toggle--large & {\n width: 18px;\n height: 18px;\n }\n\n .toggle--active & {\n background-color: ", ";\n }\n\n .toggle--inactive & {\n background-color: ", ";\n left: 3px;\n }\n\n .toggle--active.toggle--disabled &,\n .toggle--inactive.toggle--disabled & {\n opacity: 0.7;\n background-color: ", ";\n }\n\n .toggle--small.toggle--active & {\n left: 15px;\n }\n .toggle--large.toggle--active & {\n left: 21px;\n }\n"]);
16759
16760 _templateObject5$h = function _templateObject5() {
16761 return data;
16762 };
16763
16764 return data;
16765}
16766
16767function _templateObject4$r() {
16768 var data = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n flex: 1;\n align-self: stretch;\n align-items: center;\n justify-content: flex-start;\n"]);
16769
16770 _templateObject4$r = function _templateObject4() {
16771 return data;
16772 };
16773
16774 return data;
16775}
16776
16777function _templateObject3$C() {
16778 var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n background-color: transparent;\n border: 0;\n padding: 0;\n user-select: none;\n"]);
16779
16780 _templateObject3$C = function _templateObject3() {
16781 return data;
16782 };
16783
16784 return data;
16785}
16786
16787function _templateObject2$X() {
16788 var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n padding: 0;\n border-radius: 21px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.3s ", ";\n\n .toggle--small & {\n width: 28px;\n height: 16px;\n border: 1px solid;\n }\n\n .toggle--large & {\n width: 42px;\n height: 24px;\n border: 1px solid;\n }\n\n .toggle--active & {\n background-color: ", ";\n border-color: ", ";\n }\n\n .toggle--inactive & {\n background-color: ", ";\n border-color: ", ";\n }\n\n ", ":focus & {\n border-color: ", ";\n box-shadow: 0 0 5px 0 ", ";\n }\n\n .toggle--enabled:hover & {\n border: 2px solid ", ";\n }\n\n .toggle--active.toggle--disabled & {\n background-color: ", ";\n border-color: ", ";\n opacity: 0.2;\n }\n\n .toggle--inactive.toggle--disabled & {\n background-color: ", ";\n border-color: ", ";\n }\n"]);
16789
16790 _templateObject2$X = function _templateObject2() {
16791 return data;
16792 };
16793
16794 return data;
16795}
16796
16797function _templateObject$1o() {
16798 var data = _taggedTemplateLiteral(["\n background-color: transparent;\n border: none;\n padding: 0;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n &.toggle--small {\n width: 44px;\n }\n\n &.toggle--large {\n width: 73px;\n }\n\n &:focus {\n outline: none;\n }\n"]);
16799
16800 _templateObject$1o = function _templateObject() {
16801 return data;
16802 };
16803
16804 return data;
16805}
16806var ActiveArea = styled.button(_templateObject$1o());
16807var ReactToggleTrack = styled.div(_templateObject2$X(), constants.easing.easeInOutQuad, themes.global.success.base, themes.global.success.base, themes.global.white.base, themes.global.gray02, ActiveArea, themes.global.primary.base, themes.global.primary.base, themes.global.primary.base, themes.global.success.base, themes.global.gray04, themes.global.white.muted, themes.global.gray04);
16808var ReactToggle = styled.div(_templateObject3$C());
16809var ReactThumbCenteringContainer = styled.div(_templateObject4$r());
16810var ReactToggleThumb = styled.div(_templateObject5$h(), constants.easing.easeInOutQuad, constants.easing.elastic, themes.global.white.base, themes.global.gray02, themes.global.gray03);
16811
16812var noop$3 = function noop() {};
16813
16814var Toggle =
16815/*#__PURE__*/
16816function (_Component) {
16817 _inherits(Toggle, _Component);
16818
16819 function Toggle() {
16820 _classCallCheck(this, Toggle);
16821
16822 return _possibleConstructorReturn(this, _getPrototypeOf(Toggle).apply(this, arguments));
16823 }
16824
16825 _createClass(Toggle, [{
16826 key: "render",
16827 value: function render() {
16828 var _this = this;
16829
16830 var _this$props = this.props,
16831 value = _this$props.value,
16832 size = _this$props.size,
16833 disabled = _this$props.disabled,
16834 onClick = _this$props.onClick,
16835 onToggle = _this$props.onToggle,
16836 rest = _objectWithoutProperties(_this$props, ["value", "size", "disabled", "onClick", "onToggle"]);
16837
16838 return React__default.createElement(ActiveArea, _extends({
16839 className: classNames(disabled ? "toggle--disabled" : "toggle--enabled", value ? "toggle--active" : "toggle--inactive", {
16840 "toggle--small": size === "small",
16841 "toggle--large": size === "large"
16842 }),
16843 role: "switch",
16844 "aria-checked": value,
16845 size: size,
16846 onClick: composeHandler(onClick, onToggle),
16847 disabled: disabled
16848 }, rest, {
16849 ref: function ref(el) {
16850 _this.activeArea = el;
16851 }
16852 }), React__default.createElement(ReactToggle, null, React__default.createElement(ReactToggleTrack, null), React__default.createElement(ReactThumbCenteringContainer, null, React__default.createElement(ReactToggleThumb, null))));
16853 }
16854 }]);
16855
16856 return Toggle;
16857}(Component);
16858
16859_defineProperty(Toggle, "propTypes", {
16860 value: PropTypes__default.bool.isRequired,
16861 onToggle: PropTypes__default.func,
16862 onClick: PropTypes__default.func,
16863 size: PropTypes__default.oneOf(TOGGLE_SIZES),
16864 disabled: PropTypes__default.bool
16865});
16866
16867_defineProperty(Toggle, "defaultProps", {
16868 disabled: false,
16869 onClick: noop$3,
16870 onToggle: noop$3,
16871 size: TOGGLE_SIZES[1]
16872});
16873
16874var _React$createContext$9 = React__default.createContext({
16875 selected: null,
16876 onChange: null
16877}),
16878 Provider$9 = _React$createContext$9.Provider,
16879 Consumer$9 = _React$createContext$9.Consumer;
16880var withButtonGroupConsumer = function withButtonGroupConsumer(Component) {
16881 return function (props) {
16882 return React__default.createElement(Consumer$9, null, function (_ref) {
16883 var onGroupChange = _ref.onChange,
16884 _ref$value = _ref.value,
16885 groupValue = _ref$value === void 0 ? {} : _ref$value;
16886 return React__default.createElement(Component, _extends({
16887 onGroupChange: onGroupChange,
16888 groupValue: groupValue
16889 }, props));
16890 });
16891 };
16892};
16893
16894function _templateObject$1p() {
16895 var data = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n"]);
16896
16897 _templateObject$1p = function _templateObject() {
16898 return data;
16899 };
16900
16901 return data;
16902}
16903var ButtonsSection = styled.div(_templateObject$1p());
16904
16905var ButtonGroupSectionContent =
16906/*#__PURE__*/
16907function (_PureComponent) {
16908 _inherits(ButtonGroupSectionContent, _PureComponent);
16909
16910 function ButtonGroupSectionContent() {
16911 var _getPrototypeOf2;
16912
16913 var _this;
16914
16915 _classCallCheck(this, ButtonGroupSectionContent);
16916
16917 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16918 args[_key] = arguments[_key];
16919 }
16920
16921 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ButtonGroupSectionContent)).call.apply(_getPrototypeOf2, [this].concat(args)));
16922
16923 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function () {
16924 var selected = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
16925 var _this$props = _this.props,
16926 onGroupChange = _this$props.onGroupChange,
16927 groupValue = _this$props.groupValue,
16928 sectionValue = _this$props.sectionValue;
16929
16930 if (selected.length) {
16931 onGroupChange(_objectSpread({}, groupValue, _defineProperty({}, sectionValue, selected)));
16932 return;
16933 }
16934
16935 onGroupChange(_objectSpread({}, groupValue, _defineProperty({}, sectionValue, undefined)));
16936 });
16937
16938 return _this;
16939 }
16940
16941 _createClass(ButtonGroupSectionContent, [{
16942 key: "render",
16943 value: function render() {
16944 var _this$props2 = this.props,
16945 groupValue = _this$props2.groupValue,
16946 sectionValue = _this$props2.sectionValue,
16947 isMultiSelect = _this$props2.isMultiSelect,
16948 valueOverride = _this$props2.valueOverride,
16949 children = _this$props2.children;
16950 return React__default.createElement(ButtonsSection, null, React__default.createElement(ItemSelectionProvider, {
16951 onChange: this.onChange,
16952 isMultiSelect: isMultiSelect,
16953 value: groupValue[sectionValue],
16954 valueOverride: valueOverride
16955 }, children));
16956 }
16957 }]);
16958
16959 return ButtonGroupSectionContent;
16960}(PureComponent);
16961
16962_defineProperty(ButtonGroupSectionContent, "propTypes", {
16963 onGroupChange: PropTypes__default.func.isRequired,
16964 groupValue: PropTypes__default.objectOf(PropTypes__default.any).isRequired,
16965 sectionValue: PropTypes__default.string.isRequired,
16966 isMultiSelect: PropTypes__default.bool.isRequired,
16967 valueOverride: PropTypes__default.arrayOf(PropTypes__default.string),
16968 children: PropTypes__default.node.isRequired
16969});
16970
16971_defineProperty(ButtonGroupSectionContent, "defaultProps", {
16972 valueOverride: null
16973});
16974
16975var ButtonGroupSectionContent$1 = withButtonGroupConsumer(ButtonGroupSectionContent);
16976
16977function _templateObject$1q() {
16978 var data = _taggedTemplateLiteral(["\n line-height: 1.25;\n text-transform: uppercase;\n"]);
16979
16980 _templateObject$1q = function _templateObject() {
16981 return data;
16982 };
16983
16984 return data;
16985}
16986var StyledText$1 = styled(TextBase)(_templateObject$1q());
16987
16988var ButtonGroupSection = function ButtonGroupSection(_ref) {
16989 var title = _ref.title,
16990 sectionValue = _ref.value,
16991 isMultiSelect = _ref.isMultiSelect,
16992 valueOverride = _ref.valueOverride,
16993 children = _ref.children;
16994 return React__default.createElement(Spacing, {
16995 bottom: {
16996 xSmall: "moderate"
16997 }
16998 }, title && React__default.createElement(Spacing, {
16999 bottom: {
17000 xSmall: "moderate"
17001 }
17002 }, React__default.createElement(StyledText$1, {
17003 secondary: true,
17004 size: "uno",
17005 weight: "semiBold"
17006 }, title)), React__default.createElement(ButtonGroupSectionContent$1, {
17007 isMultiSelect: isMultiSelect,
17008 sectionValue: sectionValue,
17009 valueOverride: valueOverride
17010 }, children));
17011};
17012
17013ButtonGroupSection.defaultProps = {
17014 title: "",
17015 isMultiSelect: false,
17016 valueOverride: null
17017};
17018ButtonGroupSection.propTypes = {
17019 title: PropTypes__default.string,
17020 value: PropTypes__default.string.isRequired,
17021 isMultiSelect: PropTypes__default.bool,
17022 valueOverride: PropTypes__default.arrayOf(PropTypes__default.string),
17023 children: PropTypes__default.node.isRequired
17024};
17025
17026function _templateObject2$Y() {
17027 var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: normal;\n margin-bottom: ", ";\n &:hover {\n border: solid 1px ", ";\n }\n &:focus {\n box-shadow: none;\n }\n &.button__selected {\n background-color: ", ";\n border: solid 1px ", ";\n }\n"]);
17028
17029 _templateObject2$Y = function _templateObject2() {
17030 return data;
17031 };
17032
17033 return data;
17034}
17035
17036function _templateObject$1r() {
17037 var data = _taggedTemplateLiteral(["\n width: 50%;\n &:nth-child(2n + 1) {\n padding-right: ", ";\n }\n &:nth-child(2n) {\n padding-left: ", ";\n }\n"]);
17038
17039 _templateObject$1r = function _templateObject() {
17040 return data;
17041 };
17042
17043 return data;
17044}
17045var ButtonGroupButtonContainer = styled.div(_templateObject$1r(), spacing.slim, spacing.slim);
17046var StyledButton$1 = styled(Button).attrs({
17047 variant: "outlineGray"
17048})(_templateObject2$Y(), typography.size.kilo, spacing.cozy, getThemeValue("brand"), getThemeValue("primary", "lightBase"), getThemeValue("brand"));
17049
17050var ButtonGroupButton = function ButtonGroupButton(_ref) {
17051 var children = _ref.children,
17052 value = _ref.value,
17053 onClick = _ref.onClick,
17054 props = _objectWithoutProperties(_ref, ["children", "value", "onClick"]);
17055
17056 return React__default.createElement(Consumer$6, null, function (values) {
17057 return React__default.createElement(ButtonGroupButtonContainer, null, React__default.createElement(StyledButton$1, _extends({
17058 onClick: composeHandler(function () {
17059 return values.onClick({
17060 value: value
17061 });
17062 }, onClick)
17063 }, props, {
17064 className: classNames({
17065 button__selected: values.selected.includes(value)
17066 })
17067 }), children));
17068 });
17069};
17070
17071ButtonGroupButton.defaultProps = {
17072 onClick: function onClick() {}
17073};
17074ButtonGroupButton.propTypes = {
17075 value: PropTypes__default.string.isRequired,
17076 onClick: PropTypes__default.func,
17077 children: PropTypes__default.node.isRequired
17078};
17079
17080function _templateObject2$Z() {
17081 var data = _taggedTemplateLiteral(["\n line-height: 1.25;\n"]);
17082
17083 _templateObject2$Z = function _templateObject2() {
17084 return data;
17085 };
17086
17087 return data;
17088}
17089
17090function _templateObject$1s() {
17091 var data = _taggedTemplateLiteral(["\n padding: ", " ", " 0 ", ";\n"]);
17092
17093 _templateObject$1s = function _templateObject() {
17094 return data;
17095 };
17096
17097 return data;
17098}
17099var Group = styled.div(_templateObject$1s(), spacing.normal, spacing.moderate, spacing.moderate);
17100var StyledText$2 = styled(TextBase)(_templateObject2$Z());
17101
17102var ButtonGroup = function ButtonGroup(_ref) {
17103 var title = _ref.title,
17104 children = _ref.children,
17105 value = _ref.value,
17106 onChange = _ref.onChange,
17107 props = _objectWithoutProperties(_ref, ["title", "children", "value", "onChange"]);
17108
17109 return React__default.createElement(Group, props, React__default.createElement(Spacing, {
17110 bottom: {
17111 xSmall: "moderate"
17112 }
17113 }, React__default.createElement(StyledText$2, {
17114 size: "giga",
17115 weight: "semiBold"
17116 }, title)), React__default.createElement(Provider$9, {
17117 value: {
17118 onChange: onChange,
17119 value: value
17120 }
17121 }, children));
17122};
17123
17124ButtonGroup.defaultProps = {
17125 value: {},
17126 onChange: function onChange() {}
17127};
17128ButtonGroup.propTypes = {
17129 title: PropTypes__default.string.isRequired,
17130 value: PropTypes__default.shape({}),
17131 onChange: PropTypes__default.func,
17132 children: PropTypes__default.node.isRequired
17133};
17134ButtonGroup.Section = ButtonGroupSection;
17135ButtonGroup.Button = ButtonGroupButton;
17136
17137var QtySelectorMinusIcon = function QtySelectorMinusIcon(_ref) {
17138 var children = _ref.children,
17139 props = _objectWithoutProperties(_ref, ["children"]);
17140
17141 return React__default.createElement("svg", _extends({}, props, {
17142 xmlns: "http://www.w3.org/2000/svg",
17143 width: "24",
17144 height: "24",
17145 viewBox: "0 0 24 24"
17146 }), children, React__default.createElement("g", {
17147 fill: "none",
17148 fillRule: "nonzero"
17149 }, React__default.createElement("path", {
17150 d: "M0 0h24v24H0z"
17151 }), React__default.createElement("path", {
17152 stroke: "currentColor",
17153 strokeLinecap: "round",
17154 strokeLinejoin: "round",
17155 d: "M4 12h16"
17156 })));
17157};
17158
17159QtySelectorMinusIcon.displayName = "QtySelectorMinusIcon";
17160QtySelectorMinusIcon.defaultProps = {
17161 children: null
17162};
17163QtySelectorMinusIcon.propTypes = {
17164 children: PropTypes__default.node
17165};
17166
17167var QtySelectorPlusIcon = function QtySelectorPlusIcon(_ref) {
17168 var children = _ref.children,
17169 props = _objectWithoutProperties(_ref, ["children"]);
17170
17171 return React__default.createElement("svg", _extends({}, props, {
17172 xmlns: "http://www.w3.org/2000/svg",
17173 width: "24",
17174 height: "24",
17175 viewBox: "0 0 24 24"
17176 }), children, React__default.createElement("g", {
17177 fill: "none",
17178 fillRule: "nonzero"
17179 }, React__default.createElement("path", {
17180 d: "M0 0h24v24H0z"
17181 }), React__default.createElement("path", {
17182 stroke: "currentColor",
17183 strokeLinecap: "round",
17184 strokeLinejoin: "round",
17185 d: "M4 12h16M12 4v16"
17186 })));
17187};
17188
17189QtySelectorPlusIcon.displayName = "QtySelectorPlusIcon";
17190QtySelectorPlusIcon.defaultProps = {
17191 children: null
17192};
17193QtySelectorPlusIcon.propTypes = {
17194 children: PropTypes__default.node
17195};
17196
17197function _templateObject4$s() {
17198 var data = _taggedTemplateLiteral(["\n top: 0;\n position: relative;\n line-height: ", "px;\n padding: 0;\n outline: none;\n width: 30px;\n font-size: ", ";\n text-align: center;\n color: #353c42;\n caret-color: #353c42;\n border: none;\n background: transparent;\n transition: top 0.1s ", ";\n\n &:disabled {\n border-color: ", ";\n color: ", ";\n }\n"]);
17199
17200 _templateObject4$s = function _templateObject4() {
17201 return data;
17202 };
17203
17204 return data;
17205}
17206
17207function _templateObject3$D() {
17208 var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n overflow-y: hidden;\n display: flex;\n height: 36px;\n flex-direction: column;\n border: 1px solid ", ";\n border-radius: ", ";\n margin: 0px 12px;\n\n &:hover&:not(.InputFieldContainer__disabled) {\n border-color: ", ";\n }\n\n &.InputFieldContainer__disabled {\n border: 1px solid ", ";\n }\n"]);
17209
17210 _templateObject3$D = function _templateObject3() {
17211 return data;
17212 };
17213
17214 return data;
17215}
17216
17217function _templateObject2$_() {
17218 var data = _taggedTemplateLiteral(["\n min-width: 36px;\n width: 36px;\n height: 36px;\n border-radius: 50%;\n border: 1px solid ", ";\n color: ", ";\n background-color: ", ";\n outline: none;\n box-sizing: border-box;\n padding: 0;\n font-size: ", ";\n line-height: 0;\n transition: transform 0.1s linear,\n background-color 0.3s ", ",\n color 0.3s ", ";\n\n &:disabled {\n border: 1px solid ", ";\n color: ", ";\n background: transparent;\n opacity: 1;\n cursor: default;\n }\n\n &:focus {\n outline: none;\n box-shadow: 0 0 5px 0 ", ";\n }\n\n &:enabled:hover {\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n }\n\n &:enabled:active {\n transform: scale(0.98, 0.98) translate(0, 1px);\n background-color: ", ";\n }\n"]);
17219
17220 _templateObject2$_ = function _templateObject2() {
17221 return data;
17222 };
17223
17224 return data;
17225}
17226
17227function _templateObject$1t() {
17228 var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);
17229
17230 _templateObject$1t = function _templateObject() {
17231 return data;
17232 };
17233
17234 return data;
17235}
17236var INPUT_HEIGHT = 34;
17237var Container$a = styled.div(_templateObject$1t());
17238var Button$2 = styled(Button)(_templateObject2$_(), getThemeValue("primary", "base"), getThemeValue("gray02"), getThemeValue("white", "base"), typography.size.tera, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, getThemeValue("gray04"), getThemeValue("gray03"), getThemeValue("primary", "base"), getThemeValue("primary", "lightest"), getThemeValue("primary", "base"), getThemeValue("primary", "light"));
17239var InputFieldContainer = styled.div(_templateObject3$D(), getThemeValue("gray02"), constants.borderRadius.small, getThemeValue("primary", "base"), getThemeValue("gray04"));
17240var InputField = styled.input.attrs({
17241 type: "text"
17242})(_templateObject4$s(), INPUT_HEIGHT, typography.size.giga, constants.easing.easeInOutQuad, themes.global.gray04, themes.global.onyx.muted);
17243
17244var QtySelector =
17245/*#__PURE__*/
17246function (_Component) {
17247 _inherits(QtySelector, _Component);
17248
17249 function QtySelector() {
17250 var _getPrototypeOf2;
17251
17252 var _this;
17253
17254 _classCallCheck(this, QtySelector);
17255
17256 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17257 args[_key] = arguments[_key];
17258 }
17259
17260 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(QtySelector)).call.apply(_getPrototypeOf2, [this].concat(args)));
17261
17262 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
17263 value: _this.props.value,
17264 focused: false
17265 });
17266
17267 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function (e) {
17268 var value = e.target.value;
17269 var _this$props = _this.props,
17270 max = _this$props.max,
17271 min = _this$props.min,
17272 checkValue = _this$props.checkValue;
17273
17274 if (QtySelector.isNumber(value) && value.length <= QtySelector.MAX_LENGTH_VAL && value <= max && value >= min && checkValue(value)) {
17275 _this.setState(function () {
17276 return {
17277 value: Number.parseInt(value, 10)
17278 };
17279 }, function () {
17280 return _this.handleValueUpdated();
17281 });
17282 } else if (value === "") {
17283 // delete input value case
17284 _this.setState(function () {
17285 return {
17286 value: ""
17287 };
17288 }, function () {
17289 return _this.handleValueUpdated();
17290 });
17291 }
17292 });
17293
17294 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "increment", function () {
17295 var _this$props2 = _this.props,
17296 checkValue = _this$props2.checkValue,
17297 max = _this$props2.max,
17298 min = _this$props2.min;
17299
17300 _this.setState(function (state) {
17301 if (state.value === "") {
17302 return {
17303 value: min + 1
17304 };
17305 }
17306
17307 if (state.value === max) {
17308 return {};
17309 }
17310
17311 if (checkValue(state.value + 1)) {
17312 return {
17313 value: state.value + 1
17314 };
17315 }
17316
17317 return {};
17318 }, function () {
17319 return _this.handleValueUpdated();
17320 });
17321 });
17322
17323 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "decrement", function () {
17324 var _this$props3 = _this.props,
17325 checkValue = _this$props3.checkValue,
17326 min = _this$props3.min;
17327
17328 _this.setState(function (state) {
17329 if (state.value === "") {
17330 return {
17331 value: min
17332 };
17333 }
17334
17335 if (state.value === min) {
17336 return {};
17337 }
17338
17339 if (checkValue(state.value - 1)) {
17340 return {
17341 value: state.value - 1
17342 };
17343 }
17344
17345 return {};
17346 }, function () {
17347 return _this.handleValueUpdated();
17348 });
17349 });
17350
17351 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleValueUpdated", function () {
17352 var handleValueUpdate = _this.props.handleValueUpdate;
17353 var value = _this.state.value;
17354 handleValueUpdate(value);
17355 });
17356
17357 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleFocus", function () {
17358 _this.setState(function () {
17359 return {
17360 focused: true
17361 };
17362 });
17363 });
17364
17365 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleBlur", function () {
17366 _this.setState(function () {
17367 return {
17368 focused: false
17369 };
17370 });
17371 });
17372
17373 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderInput", function () {
17374 var _this$props4 = _this.props,
17375 disabled = _this$props4.disabled,
17376 style = _this$props4.style,
17377 min = _this$props4.min,
17378 max = _this$props4.max,
17379 rest = _objectWithoutProperties(_this$props4, ["disabled", "style", "min", "max"]);
17380
17381 var _this$state = _this.state,
17382 value = _this$state.value,
17383 focused = _this$state.focused; // rendering multiple inputs is required for animation
17384
17385 return !focused ? _toConsumableArray(Array(max + 1)).map(function (_, i) {
17386 return React__default.createElement(InputField, _extends({}, rest, {
17387 key: i,
17388 value: value,
17389 onFocus: composeHandler(_this.handleFocus, rest.onFocus),
17390 onBlur: composeHandler(_this.handleBlur, rest.onBlur),
17391 onChange: composeHandler(_this.handleChange, rest.onChange),
17392 disabled: disabled,
17393 style: _objectSpread({}, style, {
17394 top: "-".concat(value * QtySelector.INPUT_HEIGHT, "px")
17395 })
17396 }));
17397 }) : React__default.createElement(InputField, _extends({}, rest, {
17398 value: value,
17399 onFocus: composeHandler(_this.handleFocus, rest.onFocus),
17400 onBlur: composeHandler(_this.handleBlur, rest.onBlur),
17401 onChange: composeHandler(_this.handleChange, rest.onChange),
17402 disabled: disabled,
17403 style: style,
17404 autoFocus: true
17405 }));
17406 });
17407
17408 return _this;
17409 }
17410
17411 _createClass(QtySelector, [{
17412 key: "render",
17413 value: function render() {
17414 var _this$props5 = this.props,
17415 disabled = _this$props5.disabled,
17416 min = _this$props5.min,
17417 max = _this$props5.max,
17418 decrementBtnLabel = _this$props5.decrementBtnLabel,
17419 incrementBtnLabel = _this$props5.incrementBtnLabel,
17420 decrementBtnProps = _this$props5.decrementBtnProps,
17421 incrementBtnProps = _this$props5.incrementBtnProps;
17422 var value = this.state.value;
17423 return React__default.createElement(Container$a, null, React__default.createElement(Button$2, _extends({}, decrementBtnProps, {
17424 onClick: this.decrement,
17425 disabled: disabled || min === value,
17426 "aria-label": decrementBtnLabel
17427 }), React__default.createElement(QtySelectorMinusIcon, null)), React__default.createElement(InputFieldContainer, {
17428 className: classNames({
17429 InputFieldContainer__disabled: disabled
17430 })
17431 }, this.renderInput()), React__default.createElement(Button$2, _extends({}, incrementBtnProps, {
17432 onClick: this.increment,
17433 disabled: disabled || max === value,
17434 "aria-label": incrementBtnLabel
17435 }), React__default.createElement(QtySelectorPlusIcon, null)));
17436 }
17437 }]);
17438
17439 return QtySelector;
17440}(Component);
17441
17442_defineProperty(QtySelector, "MAX_LENGTH_VAL", 2);
17443
17444_defineProperty(QtySelector, "INPUT_HEIGHT", INPUT_HEIGHT);
17445
17446_defineProperty(QtySelector, "MIN_INPUT_VALUE", 0);
17447
17448_defineProperty(QtySelector, "MAX_INPUT_VALUE", 99);
17449
17450_defineProperty(QtySelector, "isNumber", function (str) {
17451 var numValue = parseInt(str, 10);
17452 var strValue = numValue.toString(); // proper number should have the same length as its string representation
17453 // except the case when it evaluates to NaN
17454
17455 return !Number.isNaN(numValue) && strValue.length === str.length;
17456});
17457
17458_defineProperty(QtySelector, "propTypes", {
17459 disabled: PropTypes__default.bool,
17460 value: PropTypes__default.number,
17461 style: PropTypes__default.objectOf(PropTypes__default.string),
17462 min: PropTypes__default.number,
17463 max: PropTypes__default.number,
17464 checkValue: PropTypes__default.func,
17465 handleValueUpdate: PropTypes__default.func,
17466 incrementBtnLabel: PropTypes__default.string,
17467 decrementBtnLabel: PropTypes__default.string,
17468
17469 /* eslint-disable react/forbid-prop-types */
17470 incrementBtnProps: PropTypes__default.object,
17471 decrementBtnProps: PropTypes__default.object
17472 /* eslint-enable react/forbid-prop-types */
17473
17474});
17475
17476_defineProperty(QtySelector, "defaultProps", {
17477 disabled: false,
17478 style: {},
17479 value: 0,
17480 min: QtySelector.MIN_INPUT_VALUE,
17481 max: QtySelector.MAX_INPUT_VALUE,
17482 checkValue: function checkValue() {
17483 return true;
17484 },
17485 handleValueUpdate: function handleValueUpdate() {},
17486 incrementBtnLabel: "Increase Quantity",
17487 decrementBtnLabel: "Decrease Quantity",
17488 incrementBtnProps: {},
17489 decrementBtnProps: {}
17490});
17491
17492/* eslint import/prefer-default-export: off */
17493
17494function _templateObject16$1() {
17495 var data = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n box-shadow: ", ";\n\n ", ";\n\n button {\n float: right;\n margin-left: 24px;\n\n &:last-of-type {\n margin-left: 0;\n }\n }\n"]);
17496
17497 _templateObject16$1 = function _templateObject16() {
17498 return data;
17499 };
17500
17501 return data;
17502}
17503
17504function _templateObject15$1() {
17505 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n padding-top: ", "px;\n "]);
17506
17507 _templateObject15$1 = function _templateObject15() {
17508 return data;
17509 };
17510
17511 return data;
17512}
17513
17514function _templateObject14$1() {
17515 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n "]);
17516
17517 _templateObject14$1 = function _templateObject14() {
17518 return data;
17519 };
17520
17521 return data;
17522}
17523
17524function _templateObject13$2() {
17525 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n "]);
17526
17527 _templateObject13$2 = function _templateObject13() {
17528 return data;
17529 };
17530
17531 return data;
17532}
17533
17534function _templateObject12$2() {
17535 var data = _taggedTemplateLiteral(["\n background-color: ", ";\n overflow-y: auto;\n line-height: ", ";\n\n .fullscreen & {\n height: 100%;\n }\n\n ", ";\n"]);
17536
17537 _templateObject12$2 = function _templateObject12() {
17538 return data;
17539 };
17540
17541 return data;
17542}
17543
17544function _templateObject11$2() {
17545 var data = _taggedTemplateLiteral(["\n padding: 0 ", "px;\n "]);
17546
17547 _templateObject11$2 = function _templateObject11() {
17548 return data;
17549 };
17550
17551 return data;
17552}
17553
17554function _templateObject10$3() {
17555 var data = _taggedTemplateLiteral(["\n padding: 0 ", "px;\n "]);
17556
17557 _templateObject10$3 = function _templateObject10() {
17558 return data;
17559 };
17560
17561 return data;
17562}
17563
17564function _templateObject9$7() {
17565 var data = _taggedTemplateLiteral(["\n padding-left: 0 ", "px;\n "]);
17566
17567 _templateObject9$7 = function _templateObject9() {
17568 return data;
17569 };
17570
17571 return data;
17572}
17573
17574function _templateObject8$8() {
17575 var data = _taggedTemplateLiteral(["\n position: relative;\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n text-align: left;\n box-shadow: ", ";\n\n ", ";\n"]);
17576
17577 _templateObject8$8 = function _templateObject8() {
17578 return data;
17579 };
17580
17581 return data;
17582}
17583
17584function _templateObject7$b() {
17585 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n padding-bottom: ", "px;\n "]);
17586
17587 _templateObject7$b = function _templateObject7() {
17588 return data;
17589 };
17590
17591 return data;
17592}
17593
17594function _templateObject6$d() {
17595 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n padding-bottom: ", "px;\n "]);
17596
17597 _templateObject6$d = function _templateObject6() {
17598 return data;
17599 };
17600
17601 return data;
17602}
17603
17604function _templateObject5$i() {
17605 var data = _taggedTemplateLiteral(["\n padding: ", "px;\n padding-bottom: ", "px;\n "]);
17606
17607 _templateObject5$i = function _templateObject5() {
17608 return data;
17609 };
17610
17611 return data;
17612}
17613
17614function _templateObject4$t() {
17615 var data = _taggedTemplateLiteral(["\n max-width: ", ";\n "]);
17616
17617 _templateObject4$t = function _templateObject4() {
17618 return data;
17619 };
17620
17621 return data;
17622}
17623
17624function _templateObject3$E() {
17625 var data = _taggedTemplateLiteral(["\n max-width: ", ";\n "]);
17626
17627 _templateObject3$E = function _templateObject3() {
17628 return data;
17629 };
17630
17631 return data;
17632}
17633
17634function _templateObject2$$() {
17635 var data = _taggedTemplateLiteral(["\n max-width: 400px;\n margin-left: auto;\n margin-right: auto;\n "]);
17636
17637 _templateObject2$$ = function _templateObject2() {
17638 return data;
17639 };
17640
17641 return data;
17642}
17643
17644function _templateObject$1u() {
17645 var data = _taggedTemplateLiteral(["\n display: ", ";\n top: ", ";\n padding: 0;\n margin-top: ", ";\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n transform: ", ";\n z-index: ", ";\n background-color: ", ";\n box-shadow: 0 16px 16px 0 rgba(0, 0, 0, 0.06), 0 0 16px 0 rgba(0, 0, 0, 0.12);\n border-radius: ", ";\n\n height: auto;\n max-height: calc(100vh - ", " * 2);\n overflow: hidden;\n\n &.fullscreen {\n top: 0;\n margin: 0;\n border-radius: 0;\n transform: none;\n height: 100%;\n max-height: initial;\n max-width: initial;\n }\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"]);
17646
17647 _templateObject$1u = function _templateObject() {
17648 return data;
17649 };
17650
17651 return data;
17652}
17653var widthL = {
17654 small: "400px",
17655 medium: "520px",
17656 large: "640px",
17657 xLarge: "860px"
17658};
17659var widthM = {
17660 small: "400px",
17661 medium: "520px",
17662 large: "640px",
17663 xLarge: "640px"
17664};
17665var ContainerAnimation = css(["transition:opacity 0.1s ", ",transform 0.1s ", ";&.open-enter{transition:opacity 0.3s ", ";display:block;opacity:0;transform:scale(0.7);}&.open-enter-active{transition:opacity 0.3s ", ",transform 0.3s ", ";display:block;opacity:1;transform:scale(1);}&.open-enter-done{transition:opacity 0.3s ", ",transform 0.3s ", ";display:block;opacity:1;transform:scale(1);}&.open-exit{display:block;opacity:1;transform:scale(1);}&.open-exit-active{display:block;opacity:0;transform:scale(0.7);}"], constants.easing.easeInQuad, constants.easing.easeInQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad);
17666var ModalContainer$1 = styled.div.attrs(function (_ref) {
17667 var isFullscreen = _ref.isFullscreen;
17668 return {
17669 className: classNames({
17670 fullscreen: isFullscreen
17671 })
17672 };
17673})(_templateObject$1u(), function (_ref2) {
17674 var isOpened = _ref2.isOpened;
17675 return isOpened ? "block" : "none";
17676}, function (_ref3) {
17677 var displayTop = _ref3.displayTop;
17678 return displayTop ? 0 : "50%";
17679}, function (_ref4) {
17680 var displayTop = _ref4.displayTop;
17681 return displayTop ? spacing.colossal : "0";
17682}, spacing.moderate, spacing.moderate, function (_ref5) {
17683 var displayTop = _ref5.displayTop;
17684 return displayTop ? "none" : "translateY(-50%)";
17685}, zIndex.layout.overlay || "#fff", themes.global.white.base, constants.borderRadius.xLarge, spacing.colossal, smallAndUp(_templateObject2$$()), mediumAndUp(_templateObject3$E(), function (_ref6) {
17686 var size = _ref6.size;
17687 return widthM[size];
17688}), largeAndUp(_templateObject4$t(), function (_ref7) {
17689 var size = _ref7.size;
17690 return widthL[size];
17691}), ContainerAnimation);
17692var actionBarGutters = css(["padding:", "px;", ";", ";", ";"], spacing.gutters.small, smallAndUp(_templateObject5$i(), spacing.gutters.small, spacing.gutters.small), mediumAndUp(_templateObject6$d(), spacing.gutters.mediumAndUp, spacing.gutters.small), largeAndUp(_templateObject7$b(), spacing.gutters.largeAndUp, spacing.gutters.small));
17693var ActionBar = styled.div(_templateObject8$8(), typography.size.tera, typography.lineHeight.header, typography.weight.semiBold, function (_ref8) {
17694 var shadow = _ref8.shadow;
17695 return shadow ? "0px 26px 18px -23px rgba(0,0,0,0.12)" : "none";
17696}, function (_ref9) {
17697 var gutters = _ref9.gutters;
17698 return gutters ? actionBarGutters : "";
17699});
17700ActionBar.propTypes = {
17701 shadow: PropTypes__default.bool.isRequired,
17702 gutters: PropTypes__default.bool.isRequired
17703};
17704var contentGutters = css(["padding:0 ", "px;", ";", ";", ";"], spacing.gutters.small, smallAndUp(_templateObject9$7(), spacing.gutters.small), mediumAndUp(_templateObject10$3(), spacing.gutters.mediumAndUp), largeAndUp(_templateObject11$2(), spacing.gutters.largeAndUp));
17705var ModalContent$1 = styled.div(_templateObject12$2(), themes.global.white.base, typography.lineHeight.body, function (_ref10) {
17706 var gutters = _ref10.gutters;
17707 return gutters ? contentGutters : "";
17708});
17709ModalContent$1.propTypes = {
17710 gutters: PropTypes__default.bool.isRequired
17711};
17712var bottomActionBarGutters = css(["padding:", "px;", ";", ";", ";"], spacing.gutters.small, smallAndUp(_templateObject13$2(), spacing.gutters.small), mediumAndUp(_templateObject14$1(), spacing.gutters.mediumAndUp), largeAndUp(_templateObject15$1(), spacing.gutters.largeAndUp, spacing.gutters.mediumAndUp));
17713var BottomActionBar = styled.div(_templateObject16$1(), function (_ref11) {
17714 var shadow = _ref11.shadow;
17715 return shadow ? "0px -26px 18px -23px rgba(0,0,0,0.12)" : "none";
17716}, function (_ref12) {
17717 var gutters = _ref12.gutters;
17718 return gutters ? bottomActionBarGutters : "";
17719});
17720BottomActionBar.propTypes = {
17721 shadow: PropTypes__default.bool.isRequired,
17722 gutters: PropTypes__default.bool.isRequired
17723};
17724
17725function _templateObject$1v() {
17726 var data = _taggedTemplateLiteral(["\n height: 100%;\n width: 100%;\n position: fixed;\n left: 0;\n top: 0;\n background-color: ", ";\n z-index: ", ";\n display: ", ";\n\n ", ";\n"]);
17727
17728 _templateObject$1v = function _templateObject() {
17729 return data;
17730 };
17731
17732 return data;
17733}
17734var OverlayAnimation = css(["transition:opacity 0.1s ", ";&.open-enter{transition:opacity 0.3s ", ";display:block;opacity:0;}&.open-enter-active{transition:opacity 0.3s ", ";display:block;opacity:1;}&.open-enter-done{transition:opacity 0.3s ", ";display:block;opacity:1;}&.open-exit{display:block;opacity:1;}&.open-exit-active{display:block;opacity:0;}"], constants.easing.easeInQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad, constants.easing.easeInOutQuad);
17735var Overlay$2 = styled.div.attrs({
17736 className: "container--overlay"
17737})(_templateObject$1v(), themes.global.onyx.light, zIndex.layout.overlay, function (_ref) {
17738 var isVisible = _ref.isVisible;
17739 return isVisible ? "block" : "none";
17740}, function (_ref2) {
17741 var animated = _ref2.animated;
17742 return animated ? OverlayAnimation : "";
17743});
17744
17745var Backdrop$1 =
17746/*#__PURE__*/
17747function (_Component) {
17748 _inherits(Backdrop, _Component);
17749
17750 function Backdrop(props) {
17751 var _this;
17752
17753 _classCallCheck(this, Backdrop);
17754
17755 _this = _possibleConstructorReturn(this, _getPrototypeOf(Backdrop).call(this, props));
17756
17757 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyPress", function (e) {
17758 var onRequestClose = _this.props.onRequestClose;
17759
17760 if (e.keyCode === ESCAPE && onRequestClose) {
17761 onRequestClose(e);
17762 }
17763 });
17764
17765 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "attachListeners", function () {
17766 if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") {
17767 document.addEventListener("click", _this.handleOutsideClick);
17768 document.addEventListener("keydown", _this.onKeyPress);
17769 _this.hasListeners = true;
17770 }
17771 });
17772
17773 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "detachListeners", function () {
17774 if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") {
17775 document.removeEventListener("click", _this.handleOutsideClick);
17776 document.removeEventListener("keydown", _this.onKeyPress);
17777 _this.hasListeners = false;
17778 }
17779 });
17780
17781 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleOutsideClick", function (e) {
17782 var _this$props = _this.props,
17783 childRef = _this$props.childRef,
17784 onRequestClose = _this$props.onRequestClose;
17785
17786 if (onRequestClose && childRef.current && !childRef.current.contains(e.target)) {
17787 onRequestClose(e);
17788 }
17789 });
17790
17791 _this.hasListeners = false;
17792 return _this;
17793 }
17794
17795 _createClass(Backdrop, [{
17796 key: "componentDidMount",
17797 value: function componentDidMount() {
17798 if (this.props.isVisible && !this.hasListeners) {
17799 this.attachListeners();
17800 }
17801 }
17802 }, {
17803 key: "componentDidUpdate",
17804 value: function componentDidUpdate() {
17805 var isVisible = this.props.isVisible;
17806
17807 if (isVisible && !this.hasListeners) {
17808 this.attachListeners();
17809 } else if (!isVisible && this.hasListeners) {
17810 this.detachListeners();
17811 }
17812 }
17813 }, {
17814 key: "componentWillUnmount",
17815 value: function componentWillUnmount() {
17816 if (this.hasListeners) {
17817 this.detachListeners();
17818 }
17819 }
17820 }, {
17821 key: "render",
17822 value: function render() {
17823 var _this$props2 = this.props,
17824 children = _this$props2.children,
17825 overlay = _this$props2.overlay,
17826 overlayProps = _this$props2.overlayProps,
17827 isVisible = _this$props2.isVisible,
17828 animated = _this$props2.animated;
17829
17830 if (overlay) {
17831 return React__default.createElement(Overlay$2, _extends({
17832 isVisible: isVisible,
17833 animated: animated
17834 }, overlayProps), children);
17835 }
17836
17837 return children;
17838 }
17839 }]);
17840
17841 return Backdrop;
17842}(Component);
17843
17844_defineProperty(Backdrop$1, "propTypes", {
17845 childRef: PropTypes__default.object,
17846 children: PropTypes__default.node.isRequired,
17847 overlay: PropTypes__default.bool,
17848 isVisible: PropTypes__default.bool,
17849 animated: PropTypes__default.bool,
17850 overlayProps: PropTypes__default.object,
17851 onRequestClose: PropTypes__default.func
17852});
17853
17854_defineProperty(Backdrop$1, "defaultProps", {
17855 childRef: React__default.createRef(),
17856 overlay: true,
17857 overlayProps: {},
17858 onRequestClose: null,
17859 isVisible: true,
17860 animated: false
17861});
17862
17863var _React$createContext$a = React__default.createContext(),
17864 Provider$a = _React$createContext$a.Provider,
17865 Consumer$a = _React$createContext$a.Consumer;
17866var withModal = function withModal(Component) {
17867 return function (props) {
17868 return React__default.createElement(Consumer$a, null, function (value) {
17869 return React__default.createElement(Component, _extends({
17870 modal: value
17871 }, props));
17872 });
17873 };
17874};
17875
17876var MODAL_SIZE_SMALL = "small";
17877var MODAL_SIZE_MEDIUM = "medium";
17878var MODAL_SIZE_LARGE = "large";
17879var MODAL_SIZE_XLARGE = "xLarge";
17880var MODAL_XSMALL_SIZE = {
17881 small: 12,
17882 medium: 12,
17883 large: 12
17884};
17885var MODAL_SMALL_SIZE = {
17886 small: 8,
17887 medium: 8,
17888 large: 10
17889};
17890var MODAL_MEDIUM_SIZE = {
17891 small: 8,
17892 medium: 8,
17893 large: 10
17894};
17895var MODAL_LARGE_SIZE = {
17896 small: 4,
17897 medium: 6,
17898 large: 10
17899};
17900var MODAL_XLARGE_SIZE = {
17901 small: 4,
17902 medium: 6,
17903 large: 10
17904};
17905var DEVICE_MODAL_SIZE = {
17906 isXSmall: MODAL_XSMALL_SIZE,
17907 isSmall: MODAL_SMALL_SIZE,
17908 isMedium: MODAL_MEDIUM_SIZE,
17909 isLarge: MODAL_LARGE_SIZE,
17910 isXLarge: MODAL_XLARGE_SIZE
17911};
17912var SUPPORTED_SIZES = Object.keys(DEVICE_MODAL_SIZE);
17913var getDeviceSize = function getDeviceSize(_ref) {
17914 var deviceSize = _ref.deviceSize;
17915 return SUPPORTED_SIZES.find(function (size) {
17916 return deviceSize[size];
17917 }) || SUPPORTED_SIZES[0];
17918};
17919var getModalSize = function getModalSize(_ref2) {
17920 var deviceSize = _ref2.deviceSize,
17921 preferredSize = _ref2.preferredSize;
17922 return DEVICE_MODAL_SIZE[getDeviceSize({
17923 deviceSize: deviceSize
17924 })][preferredSize];
17925};
17926
17927var SPACING = spacing.colossal.replace("px", "");
17928var getContentHeight = function getContentHeight(_ref) {
17929 var actionBar = _ref.actionBar,
17930 bottomActionBar = _ref.bottomActionBar,
17931 container = _ref.container,
17932 _ref$isFullscreen = _ref.isFullscreen,
17933 isFullscreen = _ref$isFullscreen === void 0 ? false : _ref$isFullscreen;
17934 var actionBarHeight = actionBar ? actionBar.clientHeight : 0;
17935 var bottomActionBarHeight = bottomActionBar ? bottomActionBar.clientHeight : 0;
17936 return "".concat(container.clientHeight - (isFullscreen ? container.offsetTop : SPACING * 2) - actionBarHeight - bottomActionBarHeight, "px");
17937};
17938var getActionBarShadow = function getActionBarShadow(_ref2) {
17939 var content = _ref2.content;
17940 return Boolean(content.scrollTop);
17941};
17942var getBottomActionBarShadow = function getBottomActionBarShadow(_ref3) {
17943 var content = _ref3.content;
17944 return Boolean(content.scrollHeight - content.scrollTop - content.clientHeight > 0);
17945};
17946var isRequestCloseApproved = function isRequestCloseApproved(_ref4) {
17947 var onRequestClose = _ref4.onRequestClose,
17948 event = _ref4.event;
17949
17950 if (!onRequestClose) {
17951 return Promise.resolve(true);
17952 }
17953
17954 return Promise.resolve(onRequestClose(event)).then(function (result) {
17955 return typeof result === "undefined" ? true : Boolean(result);
17956 }).catch(function () {
17957 return false;
17958 });
17959};
17960
17961var Modal$1 =
17962/*#__PURE__*/
17963function (_React$Component) {
17964 _inherits(Modal, _React$Component);
17965
17966 function Modal() {
17967 var _getPrototypeOf2;
17968
17969 var _this;
17970
17971 _classCallCheck(this, Modal);
17972
17973 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17974 args[_key] = arguments[_key];
17975 }
17976
17977 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Modal)).call.apply(_getPrototypeOf2, [this].concat(args)));
17978
17979 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
17980 isOpened: true,
17981 actionBarShadow: false,
17982 bottomActionBarShadow: false
17983 });
17984
17985 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "actionBarRef", React__default.createRef());
17986
17987 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "containerRef", React__default.createRef());
17988
17989 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "contentRef", React__default.createRef());
17990
17991 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bottomActionBarRef", React__default.createRef());
17992
17993 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateHeightAndShadows", function () {
17994 _this.updateModalHeight();
17995
17996 _this.updateShadows();
17997 });
17998
17999 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "throttledUpdateHeightAndShadows", throttle(_this.updateHeightAndShadows, Modal.throttleTimout));
18000
18001 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "closeModal", function (event) {
18002 var onRequestClose = _this.props.onRequestClose;
18003 isRequestCloseApproved({
18004 onRequestClose: onRequestClose,
18005 event: event
18006 }).then(function (requestApproved) {
18007 if (requestApproved) {
18008 _this.setState({
18009 isOpened: false
18010 });
18011 }
18012 });
18013 });
18014
18015 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleScroll", function (e) {
18016 var onScroll = _this.props.onScroll;
18017
18018 if (onScroll) {
18019 onScroll(e);
18020 }
18021
18022 _this.updateShadows();
18023 });
18024
18025 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateModalHeight", function () {
18026 var actionBar = _this.actionBarRef.current;
18027 var bottomActionBar = _this.bottomActionBarRef.current;
18028 var content = _this.contentRef.current;
18029 var container = _this.containerRef.current;
18030 var isFullscreen = _this.props.isFullscreen;
18031 var contentHeight = getContentHeight({
18032 isFullscreen: isFullscreen,
18033 actionBar: actionBar,
18034 bottomActionBar: bottomActionBar,
18035 container: container
18036 });
18037 content.style.maxHeight = contentHeight;
18038 });
18039
18040 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateShadows", function () {
18041 _this.updateActionBarShadow();
18042
18043 var bottomActionBar = _this.bottomActionBarRef.current;
18044
18045 if (bottomActionBar) {
18046 _this.updateBottomActionBarShadow();
18047 }
18048 });
18049
18050 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateActionBarShadow", function () {
18051 var content = _this.contentRef.current;
18052 var actionBarShadow = getActionBarShadow({
18053 content: content
18054 });
18055
18056 if (actionBarShadow !== _this.state.actionBarShadow) {
18057 _this.setState({
18058 actionBarShadow: actionBarShadow
18059 });
18060 }
18061 });
18062
18063 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateBottomActionBarShadow", function () {
18064 var content = _this.contentRef.current;
18065 var bottomActionBarShadow = getBottomActionBarShadow({
18066 content: content
18067 });
18068
18069 if (bottomActionBarShadow !== _this.state.bottomActionBarShadow) {
18070 _this.setState({
18071 bottomActionBarShadow: bottomActionBarShadow
18072 });
18073 }
18074 });
18075
18076 return _this;
18077 }
18078
18079 _createClass(Modal, [{
18080 key: "componentDidMount",
18081 value: function componentDidMount() {
18082 var _this$props = this.props,
18083 focusElement = _this$props.focusElement,
18084 isOpened = _this$props.isOpened;
18085
18086 if (isOpened) {
18087 this.updateHeightAndShadows();
18088
18089 if (focusElement && focusElement.current && typeof focusElement.current.focus === "function") {
18090 focusElement.current.focus();
18091 }
18092 }
18093
18094 window.addEventListener("resize", this.throttledUpdateHeightAndShadows); // eslint-disable-line
18095 }
18096 }, {
18097 key: "componentDidUpdate",
18098 value: function componentDidUpdate(prevProps) {
18099 var _this$props2 = this.props,
18100 focusElement = _this$props2.focusElement,
18101 isOpened = _this$props2.isOpened;
18102
18103 if (isOpened && !prevProps.isOpened) {
18104 this.updateHeightAndShadows();
18105
18106 if (focusElement && focusElement.current && typeof focusElement.current.focus === "function") {
18107 focusElement.current.focus();
18108 }
18109 }
18110 }
18111 }, {
18112 key: "componentWillUnmount",
18113 value: function componentWillUnmount() {
18114 window.removeEventListener("resize", this.throttledUpdateHeightAndShadows); // eslint-disable-line
18115 }
18116 }, {
18117 key: "render",
18118 value: function render() {
18119 var _this$props3 = this.props,
18120 actionBar = _this$props3.actionBar,
18121 bottomActionBar = _this$props3.bottomActionBar,
18122 children = _this$props3.children,
18123 gutters = _this$props3.gutters,
18124 size = _this$props3.size,
18125 deviceSize = _this$props3.deviceSize,
18126 overlayProps = _this$props3.overlayProps,
18127 containerProps = _this$props3.containerProps,
18128 actionBarProps = _this$props3.actionBarProps,
18129 contentProps = _this$props3.contentProps,
18130 bottomActionBarProps = _this$props3.bottomActionBarProps,
18131 displayTop = _this$props3.displayTop,
18132 isFullscreen = _this$props3.isFullscreen,
18133 modalId = _this$props3.modalId;
18134 var _this$state = this.state,
18135 isOpened = _this$state.isOpened,
18136 actionBarShadow = _this$state.actionBarShadow,
18137 bottomActionBarShadow = _this$state.bottomActionBarShadow;
18138 var closeModal = this.closeModal;
18139 var contentId = modalId && "".concat(modalId, "-content");
18140 var titleId = modalId && "".concat(modalId, "-title");
18141 return React__default.createElement(Provider$a, {
18142 value: {
18143 closeModal: closeModal
18144 }
18145 }, React__default.createElement(CSSTransition, {
18146 in: isOpened,
18147 key: "overlay-animation",
18148 timeout: 300,
18149 classNames: "open"
18150 }, React__default.createElement(Backdrop$1, {
18151 overlayProps: _objectSpread({}, overlayProps, {
18152 ref: this.containerRef
18153 }),
18154 onRequestClose: this.closeModal,
18155 isVisible: isOpened,
18156 animated: true
18157 }, React__default.createElement(CSSTransition, {
18158 in: isOpened,
18159 key: "modal-animation",
18160 timeout: 300,
18161 classNames: "open"
18162 }, React__default.createElement(ModalContainer$1, _extends({
18163 small: getModalSize({
18164 deviceSize: deviceSize,
18165 preferredSize: size
18166 }),
18167 isOpened: isOpened,
18168 size: size,
18169 displayTop: displayTop,
18170 isFullscreen: isFullscreen,
18171 "aria-describedby": contentId,
18172 "aria-labelledby": titleId,
18173 "aria-modal": true,
18174 role: "dialog"
18175 }, containerProps), actionBar && React__default.createElement(ActionBar, _extends({
18176 shadow: actionBarShadow,
18177 ref: this.actionBarRef,
18178 gutters: gutters,
18179 id: titleId
18180 }, actionBarProps), actionBar), React__default.createElement(ModalContent$1, _extends({
18181 ref: this.contentRef,
18182 onScroll: this.handleScroll,
18183 gutters: gutters,
18184 id: contentId
18185 }, contentProps), children), bottomActionBar && React__default.createElement(BottomActionBar, _extends({
18186 shadow: bottomActionBarShadow,
18187 ref: this.bottomActionBarRef,
18188 gutters: gutters
18189 }, bottomActionBarProps), bottomActionBar))))));
18190 }
18191 }], [{
18192 key: "getDerivedStateFromProps",
18193 value: function getDerivedStateFromProps(props, state) {
18194 if (props.isOpened !== state.isOpened) {
18195 return {
18196 isOpened: props.isOpened
18197 };
18198 }
18199
18200 return null;
18201 }
18202 }]);
18203
18204 return Modal;
18205}(React__default.Component);
18206
18207_defineProperty(Modal$1, "propTypes", {
18208 actionBar: PropTypes__default.node,
18209 bottomActionBar: PropTypes__default.node,
18210 children: PropTypes__default.oneOfType([PropTypes__default.arrayOf(PropTypes__default.node), PropTypes__default.node]),
18211 deviceSize: PropTypes__default.shape({
18212 isXSmall: PropTypes__default.bool,
18213 isSmall: PropTypes__default.bool,
18214 isMedium: PropTypes__default.bool,
18215 isLarge: PropTypes__default.bool,
18216 isXLarge: PropTypes__default.bool
18217 }).isRequired,
18218 gutters: PropTypes__default.bool,
18219 // This is used inside the `getDerivedStateFromProps`
18220 // eslint-disable-next-line react/no-unused-prop-types
18221 isOpened: PropTypes__default.bool,
18222 size: PropTypes__default.oneOf([MODAL_SIZE_SMALL, MODAL_SIZE_MEDIUM, MODAL_SIZE_LARGE, MODAL_SIZE_XLARGE]),
18223 isFullscreen: PropTypes__default.bool,
18224 onRequestClose: PropTypes__default.func,
18225 onScroll: PropTypes__default.func,
18226
18227 /* eslint-disable react/forbid-prop-types */
18228 overlayProps: PropTypes__default.object,
18229 containerProps: PropTypes__default.object,
18230 actionBarProps: PropTypes__default.object,
18231 contentProps: PropTypes__default.object,
18232 bottomActionBarProps: PropTypes__default.object,
18233
18234 /* eslint-enable react/forbid-prop-types */
18235 focusElement: PropTypes__default.objectOf(PropTypes__default.any),
18236 modalId: PropTypes__default.string
18237});
18238
18239_defineProperty(Modal$1, "defaultProps", {
18240 actionBar: null,
18241 bottomActionBar: null,
18242 children: null,
18243 gutters: true,
18244 isOpened: true,
18245 size: MODAL_SIZE_MEDIUM,
18246 isFullscreen: false,
18247 onRequestClose: null,
18248 onScroll: null,
18249 overlayProps: {},
18250 containerProps: {},
18251 actionBarProps: {},
18252 contentProps: {},
18253 bottomActionBarProps: {},
18254 focusElement: null,
18255 modalId: null
18256});
18257
18258_defineProperty(Modal$1, "throttleTimout", 100);
18259
18260var index = withDeviceSize(Modal$1);
18261
18262function _templateObject$1w() {
18263 var data = _taggedTemplateLiteral(["\n background-color: white;\n display: flex;\n justify-content: flex-end;\n"]);
18264
18265 _templateObject$1w = function _templateObject() {
18266 return data;
18267 };
18268
18269 return data;
18270}
18271var CloseButtonContainer = styled.div(_templateObject$1w());
18272
18273var ModalActionBar = function ModalActionBar(_ref) {
18274 var closeModal = _ref.modal.closeModal,
18275 iconButtonProps = _ref.iconButtonProps;
18276 return React__default.createElement(CloseButtonContainer, null, React__default.createElement(CrossIcon, _extends({
18277 size: 12,
18278 style: {
18279 pointerEvent: "none"
18280 },
18281 color: themes.global.onyx.base,
18282 className: "button--close",
18283 "aria-label": "Close Modal",
18284 role: "button",
18285 onClick: closeModal
18286 }, iconButtonProps)));
18287};
18288ModalActionBar.propTypes = {
18289 modal: PropTypes__default.shape({
18290 closeModal: PropTypes__default.func.isRequired
18291 }).isRequired,
18292 // eslint-disable-next-line react/forbid-prop-types
18293 iconButtonProps: PropTypes__default.object
18294};
18295ModalActionBar.defaultProps = {
18296 iconButtonProps: {}
18297};
18298var DefaultActionBar = withModal(ModalActionBar);
18299
18300var _React$createContext$b = React__default.createContext({
18301 "4g": true
18302}),
18303 Provider$b = _React$createContext$b.Provider,
18304 Consumer$b = _React$createContext$b.Consumer;
18305
18306var deviceConnectionStateShape = {
18307 'slow-2g': PropTypes__default.bool,
18308 '2g': PropTypes__default.bool,
18309 '3g': PropTypes__default.bool,
18310 '4g': PropTypes__default.bool,
18311 saveData: false,
18312 isInitialized: false
18313};
18314var prefixedDeviceConnectionProps = {
18315 'connslow-2g': PropTypes__default.bool,
18316 conn2g: PropTypes__default.bool,
18317 conn3g: PropTypes__default.bool,
18318 conn4g: PropTypes__default.bool
18319};
18320var prefixedDeviceConnectionDefaultProps = {
18321 'connslow-2g': false,
18322 conn2g: false,
18323 conn3g: false,
18324 conn4g: false
18325};
18326
18327var CONNECTION_TYPES = ['4g', '3g', '2g', 'slow-2g', 'saveData'];
18328var FALSY_CONNECTIONS_STATE = {
18329 'slow-2g': false,
18330 '2g': false,
18331 '3g': false,
18332 '4g': false,
18333 saveData: false
18334};
18335
18336var DeviceConnectionProvider =
18337/*#__PURE__*/
18338function (_Component) {
18339 _inherits(DeviceConnectionProvider, _Component);
18340
18341 function DeviceConnectionProvider(props) {
18342 var _this;
18343
18344 _classCallCheck(this, DeviceConnectionProvider);
18345
18346 _this = _possibleConstructorReturn(this, _getPrototypeOf(DeviceConnectionProvider).call(this, props));
18347
18348 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "componentWillUnmount", function () {
18349 var isInitialized = _this.state.isInitialized;
18350
18351 if (isInitialized) {
18352 _this.unsubscribe();
18353 }
18354 });
18355
18356 var defaultState = props.defaultState;
18357 _this.state = defaultState || _this.initialState;
18358 return _this;
18359 }
18360
18361 _createClass(DeviceConnectionProvider, [{
18362 key: "componentDidMount",
18363 value: function componentDidMount() {
18364 var _global$navigator$con = global.navigator.connection,
18365 effectiveType = _global$navigator$con.effectiveType,
18366 type = _global$navigator$con.type,
18367 saveData = _global$navigator$con.saveData;
18368
18369 if (effectiveType || type) {
18370 var _this$update;
18371
18372 this.subscribe();
18373 this.update((_this$update = {}, _defineProperty(_this$update, effectiveType || type, true), _defineProperty(_this$update, "isInitialized", true), _defineProperty(_this$update, "saveData", saveData), _this$update));
18374 }
18375 }
18376 }, {
18377 key: "onConnectionChange",
18378
18379 /* istanbul ignore next */
18380 value: function onConnectionChange() {
18381 var _this$update2;
18382
18383 var _global$navigator$con2 = global.navigator.connection,
18384 effectiveType = _global$navigator$con2.effectiveType,
18385 type = _global$navigator$con2.type,
18386 saveData = _global$navigator$con2.saveData;
18387 this.update((_this$update2 = {}, _defineProperty(_this$update2, effectiveType || type, true), _defineProperty(_this$update2, "saveData", saveData), _this$update2));
18388 }
18389 }, {
18390 key: "subscribe",
18391 value: function subscribe() {
18392 global.navigator.connection.addEventListener('change', this.onConnectionChange);
18393 } // eslint-disable-next-line
18394
18395 }, {
18396 key: "unsubscribe",
18397 value: function unsubscribe() {
18398 global.navigator.connection.removeEventListener('change');
18399 }
18400 }, {
18401 key: "update",
18402 value: function update(payload) {
18403 this.setState(_objectSpread({}, FALSY_CONNECTIONS_STATE, payload));
18404 }
18405 }, {
18406 key: "render",
18407 value: function render() {
18408 var children = this.props.children;
18409 return React__default.createElement(Provider$b, {
18410 value: this.state
18411 }, children);
18412 }
18413 }]);
18414
18415 return DeviceConnectionProvider;
18416}(Component);
18417
18418_defineProperty(DeviceConnectionProvider, "initialState", _objectSpread({}, FALSY_CONNECTIONS_STATE, {
18419 '4g': true,
18420 isInitialized: false
18421}));
18422
18423_defineProperty(DeviceConnectionProvider, "propTypes", {
18424 children: PropTypes__default.node.isRequired,
18425 defaultState: PropTypes__default.shape(deviceConnectionStateShape)
18426});
18427
18428_defineProperty(DeviceConnectionProvider, "defaultProps", {
18429 defaultState: null
18430});
18431
18432var getConnName = function getConnName(conn) {
18433 return conn === "saveData" ? conn : "conn".concat(conn);
18434};
18435
18436var DisplayOn = function DisplayOn(props) {
18437 var children = props.children;
18438 return React__default.createElement(Consumer$b, null, function (val) {
18439 return CONNECTION_TYPES.find(function (conn) {
18440 return val && val[conn] && props[getConnName(conn)];
18441 }) ? children : null;
18442 });
18443};
18444
18445DisplayOn.propTypes = _objectSpread({}, prefixedDeviceConnectionProps, {
18446 saveData: PropTypes__default.bool,
18447 children: PropTypes__default.node.isRequired
18448});
18449DisplayOn.defaultProps = _objectSpread({}, prefixedDeviceConnectionDefaultProps, {
18450 saveData: false
18451});
18452
18453var SeatData = function SeatData(_ref) {
18454 var size = _ref.size,
18455 isLast = _ref.isLast,
18456 section = _ref.section,
18457 row = _ref.row,
18458 seat = _ref.seat,
18459 variant = _ref.variant;
18460 return React__default.createElement(SeatDataStyled, {
18461 size: size,
18462 isLast: isLast
18463 }, React__default.createElement(SeatDataColumn, null, React__default.createElement(ColumnHeading, {
18464 size: size
18465 }, "Sec"), React__default.createElement(ColumnText, {
18466 variant: variant,
18467 size: size
18468 }, section)), React__default.createElement(SeatDataColumn, null, React__default.createElement(ColumnHeading, {
18469 size: size
18470 }, "Row"), React__default.createElement(ColumnText, {
18471 variant: variant,
18472 size: size
18473 }, row)), React__default.createElement(SeatDataColumn, null, React__default.createElement(ColumnHeading, {
18474 size: size
18475 }, "Seat"), React__default.createElement(ColumnText, {
18476 variant: variant,
18477 size: size
18478 }, seat)));
18479};
18480
18481SeatData.propTypes = {
18482 section: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18483 row: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18484 seat: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18485 size: PropTypes__default.oneOf(SIZES_SL),
18486 variant: PropTypes__default.oneOf(VARIANTS),
18487 isLast: PropTypes__default.bool
18488};
18489SeatData.defaultProps = {
18490 size: LARGE,
18491 variant: LIGHT,
18492 isLast: false
18493};
18494SeatData.displayName = "SeatData";
18495
18496var SeatTooltip =
18497/*#__PURE__*/
18498function (_Component) {
18499 _inherits(SeatTooltip, _Component);
18500
18501 function SeatTooltip() {
18502 _classCallCheck(this, SeatTooltip);
18503
18504 return _possibleConstructorReturn(this, _getPrototypeOf(SeatTooltip).apply(this, arguments));
18505 }
18506
18507 _createClass(SeatTooltip, [{
18508 key: "render",
18509 value: function render() {
18510 var _this$props = this.props,
18511 size = _this$props.size,
18512 row = _this$props.row,
18513 seat = _this$props.seat,
18514 section = _this$props.section,
18515 children = _this$props.children,
18516 variant = _this$props.variant,
18517 rest = _objectWithoutProperties(_this$props, ["size", "row", "seat", "section", "children", "variant"]);
18518
18519 var maxWidth = size === SMALL ? "180px" : "260px";
18520 return React__default.createElement(Tooltip, _extends({}, rest, {
18521 variant: variant,
18522 style: {
18523 width: maxWidth,
18524 padding: 0
18525 }
18526 }), row !== undefined && seat !== undefined && section !== undefined && React__default.createElement(SeatData, {
18527 size: size,
18528 row: row,
18529 section: section,
18530 seat: seat,
18531 variant: variant,
18532 isLast: !!children
18533 }), children && React__default.createElement(AdditionalData, {
18534 size: size,
18535 row: row,
18536 section: section,
18537 seat: seat,
18538 variant: variant
18539 }, children));
18540 }
18541 }]);
18542
18543 return SeatTooltip;
18544}(Component);
18545
18546_defineProperty(SeatTooltip, "getDimensionsFromEvent", function (e, parent) {
18547 return Tooltip.getDimensionsFromEvent(e, parent);
18548});
18549
18550SeatTooltip.propTypes = {
18551 section: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18552 row: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18553 seat: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]).isRequired,
18554 size: PropTypes__default.oneOf(SIZES_SL),
18555 children: PropTypes__default.node,
18556 variant: PropTypes__default.oneOf(VARIANTS)
18557};
18558SeatTooltip.defaultProps = {
18559 size: LARGE,
18560 children: null,
18561 variant: LIGHT
18562};
18563SeatTooltip.displayName = "SeatTooltip";
18564
18565var PLACEHOLDER_IMAGE = "data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";
18566var BLUR_STYLES = {
18567 filter: "blur(10px)",
18568 transition: "80ms filter linear"
18569};
18570var DEFAULT_TARGET_DENSITY = 1;
18571var DEFAULT_DEVICE_PIXEL_RATIOS = [1, 2, 3, 4, 5];
18572
18573var _createContext = createContext({
18574 src: PLACEHOLDER_IMAGE,
18575 style: null,
18576 imageRef: null,
18577 load: function load() {}
18578}),
18579 Provider$c = _createContext.Provider,
18580 Consumer$c = _createContext.Consumer;
18581
18582var createParams = function createParams(obj) {
18583 return Object.keys(obj).reduce(function (qs, key) {
18584 if (typeof obj[key] !== "undefined") {
18585 var sep = qs.length ? "&" : "?";
18586 qs += "".concat(sep).concat(key, "=").concat(encodeURIComponent(obj[key])); // eslint-disable-line
18587 }
18588
18589 return qs;
18590 }, "");
18591};
18592
18593/* istanbul ignore next */
18594
18595var Url = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? global.window.URL : require("url");
18596var resize = function resize(_ref) {
18597 var _ref$src = _ref.src,
18598 src = _ref$src === void 0 ? "" : _ref$src,
18599 params = _objectWithoutProperties(_ref, ["src"]);
18600
18601 try {
18602 var _ref2 = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? new Url(src) : Url.parse(src),
18603 host = _ref2.host,
18604 pathname = _ref2.pathname;
18605
18606 if (!host) {
18607 return src;
18608 }
18609
18610 var url = "https://".concat(host).concat(pathname);
18611 var fit = params.width && params.height ? {
18612 fit: "crop"
18613 } : {};
18614 var webp = pathname.endsWith(".svg") ? {} : {
18615 auto: "webp"
18616 };
18617 var resizeSrc = "".concat(url).concat(createParams(_objectSpread({}, params, fit, webp)));
18618 return resizeSrc;
18619 } catch (e) {
18620 return src;
18621 }
18622};
18623var createGetSrcByDensity = function createGetSrcByDensity(_ref3) {
18624 var src = _ref3.src,
18625 width = _ref3.width,
18626 height = _ref3.height,
18627 resizeFn = _ref3.resizeFn;
18628 return function (density) {
18629 return resizeFn({
18630 src: src,
18631 width: width ? width * density : null,
18632 height: height ? height * density : null
18633 });
18634 };
18635};
18636var getSrcSetByDensity = function getSrcSetByDensity(ref, devicePixelRatios, getSrcByDensity) {
18637 var devicePixelRatiosLen = devicePixelRatios.length;
18638 return devicePixelRatios.reduce(
18639 /* eslint-disable-next-line no-return-assign */
18640 function (memo, ratio) {
18641 return (
18642 /* eslint-disable-next-line no-param-reassign */
18643 memo += "".concat(getSrcByDensity(ratio), " ").concat(ratio, "x").concat(ratio === devicePixelRatiosLen ? "" : ", ")
18644 );
18645 }, "");
18646};
18647var getTargetDensity = function getTargetDensity(targetDensity, devicePixelRatios) {
18648 if (_typeof(global.window) !== "object" || !global.window.devicePixelRatio) {
18649 return targetDensity;
18650 }
18651
18652 var maxDevicePixelRatio = devicePixelRatios[devicePixelRatios.length - 1];
18653 return global.window.devicePixelRatio > maxDevicePixelRatio ? maxDevicePixelRatio : Math.round(global.window.devicePixelRatio);
18654};
18655var getSrcAttr = function getSrcAttr(ref) {
18656 if ("srcset" in ref) return "srcset";
18657 return "src";
18658};
18659var getSrcVariantByAttr = function getSrcVariantByAttr(ref, srcAttr, devicePixelRatios, targetDensity, getSrcByDensity) {
18660 return srcAttr === "srcset" ? getSrcSetByDensity(ref, devicePixelRatios, getSrcByDensity) : getSrcByDensity(getTargetDensity(targetDensity, devicePixelRatios));
18661};
18662var getLowDefSrc = function getLowDefSrc(_ref4) {
18663 var src = _ref4.src,
18664 width = _ref4.width,
18665 height = _ref4.height,
18666 resizeFn = _ref4.resizeFn;
18667 return src === PLACEHOLDER_IMAGE ? src : resizeFn({
18668 src: src,
18669 width: Math.round(width / 10),
18670 height: Math.round(height / 10)
18671 });
18672};
18673
18674var LazyLoaderProvider =
18675/*#__PURE__*/
18676function (_PureComponent) {
18677 _inherits(LazyLoaderProvider, _PureComponent);
18678
18679 function LazyLoaderProvider(props) {
18680 var _this;
18681
18682 _classCallCheck(this, LazyLoaderProvider);
18683
18684 _this = _possibleConstructorReturn(this, _getPrototypeOf(LazyLoaderProvider).call(this, props));
18685
18686 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onLoad", function () {
18687 var _this$state = _this.state,
18688 imageRef = _this$state.imageRef,
18689 backgroundRef = _this$state.backgroundRef;
18690
18691 if (imageRef && imageRef.current) {
18692 imageRef.current.style.filter = "none";
18693
18694 if (!backgroundRef) {
18695 _this.setState(function () {
18696 return {
18697 isLoaded: true
18698 };
18699 });
18700 }
18701 }
18702 });
18703
18704 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onLoadBg", function (srcVariant) {
18705 var backgroundRef = _this.state.backgroundRef;
18706
18707 if (backgroundRef && backgroundRef.current) {
18708 backgroundRef.current.style.backgroundImage = "url(".concat(srcVariant, ")");
18709 backgroundRef.current.style.filter = "none";
18710
18711 _this.setState(function () {
18712 return {
18713 isLoaded: true
18714 };
18715 });
18716 }
18717 });
18718
18719 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onLoadBoth", function (srcVariant) {
18720 return function () {
18721 _this.onLoad();
18722
18723 _this.onLoadBg(srcVariant);
18724 };
18725 });
18726
18727 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "applyBlurs", function () {
18728 var _this$state2 = _this.state,
18729 imageRef = _this$state2.imageRef,
18730 backgroundRef = _this$state2.backgroundRef;
18731
18732 if (imageRef && imageRef.current) {
18733 imageRef.current.style.filter = "blur(10px)";
18734 imageRef.current.src = "";
18735 imageRef.current.srcset = "";
18736 }
18737
18738 if (backgroundRef && backgroundRef.current) backgroundRef.current.style.filter = "blur(10px)";
18739 });
18740
18741 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "load", function (ready) {
18742 var _this$state3 = _this.state,
18743 imageRef = _this$state3.imageRef,
18744 backgroundRef = _this$state3.backgroundRef;
18745 var _this$props = _this.props,
18746 src = _this$props.src,
18747 width = _this$props.width,
18748 height = _this$props.height,
18749 resizeFn = _this$props.resizeFn,
18750 targetDensity = _this$props.targetDensity,
18751 devicePixelRatios = _this$props.devicePixelRatios;
18752
18753 if (ready && imageRef && imageRef.current) {
18754 if (!backgroundRef) imageRef.current.onload = _this.onLoad;
18755 var getSrcByDensity = createGetSrcByDensity({
18756 src: src,
18757 width: width,
18758 height: height,
18759 resizeFn: resizeFn
18760 });
18761 var srcAttr = backgroundRef ? "src" : getSrcAttr(imageRef.current);
18762 var srcVariant = getSrcVariantByAttr(imageRef.current, srcAttr, devicePixelRatios, targetDensity, getSrcByDensity);
18763 if (backgroundRef) imageRef.current.onload = _this.onLoadBoth(srcVariant);
18764 imageRef.current[srcAttr] = srcVariant;
18765 }
18766 });
18767
18768 var _src = props.src,
18769 _width = props.width,
18770 _height = props.height,
18771 tag = props.tag,
18772 _resizeFn = props.resizeFn,
18773 style = props.style;
18774 /* eslint-disable */
18775
18776 _this.state = {
18777 src: getLowDefSrc({
18778 src: _src,
18779 width: _width,
18780 height: _height,
18781 resizeFn: _resizeFn
18782 }),
18783 style: _objectSpread({}, style, BLUR_STYLES),
18784 imageRef: createRef(),
18785 backgroundRef: tag === "img" ? null : createRef(),
18786 load: _this.load,
18787 isLoaded: false
18788 };
18789 /* eslint-enable */
18790
18791 return _this;
18792 }
18793
18794 _createClass(LazyLoaderProvider, [{
18795 key: "componentDidUpdate",
18796 value: function componentDidUpdate() {
18797 var _this2 = this;
18798
18799 var prevProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
18800 var _this$props2 = this.props,
18801 src = _this$props2.src,
18802 style = _this$props2.style,
18803 width = _this$props2.width,
18804 height = _this$props2.height,
18805 resizeFn = _this$props2.resizeFn;
18806 var prevSrc = prevProps.src;
18807
18808 if (src !== prevSrc) {
18809 this.applyBlurs();
18810 /* eslint-disable-next-line react/no-did-update-set-state */
18811
18812 this.setState(function () {
18813 return {
18814 imageRef: null,
18815 backgroundRef: null,
18816
18817 /* eslint-disable-next-line react/no-unused-state */
18818 src: getLowDefSrc({
18819 src: src,
18820 width: width,
18821 height: height,
18822 resizeFn: resizeFn
18823 }),
18824
18825 /* eslint-disable-next-line react/no-unused-state */
18826 style: _objectSpread({}, style, BLUR_STYLES),
18827 isLoaded: false
18828 };
18829 }, function () {
18830 _this2.setState({
18831 imageRef: createRef(),
18832 backgroundRef: createRef()
18833 });
18834 });
18835 }
18836 }
18837 }, {
18838 key: "render",
18839 value: function render() {
18840 var children = this.props.children;
18841 return React__default.createElement(Provider$c, {
18842 value: this.state
18843 }, children);
18844 }
18845 }]);
18846
18847 return LazyLoaderProvider;
18848}(PureComponent);
18849
18850_defineProperty(LazyLoaderProvider, "propTypes", {
18851 children: PropTypes__default.node.isRequired,
18852 src: PropTypes__default.string,
18853 width: PropTypes__default.number,
18854 height: PropTypes__default.number,
18855 resizeFn: PropTypes__default.func,
18856 targetDensity: PropTypes__default.number,
18857 devicePixelRatios: PropTypes__default.arrayOf(PropTypes__default.number),
18858 style: PropTypes__default.objectOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
18859 tag: PropTypes__default.string
18860});
18861
18862_defineProperty(LazyLoaderProvider, "defaultProps", {
18863 src: PLACEHOLDER_IMAGE,
18864 width: null,
18865 height: null,
18866 resizeFn: resize,
18867 targetDensity: DEFAULT_TARGET_DENSITY,
18868 devicePixelRatios: DEFAULT_DEVICE_PIXEL_RATIOS,
18869 style: {},
18870 tag: "img"
18871});
18872
18873var LazyLoader = function LazyLoader(_ref) {
18874 var src = _ref.src,
18875 height = _ref.height,
18876 width = _ref.width,
18877 style = _ref.style,
18878 resizeFn = _ref.resizeFn,
18879 children = _ref.children,
18880 tag = _ref.tag;
18881 return React__default.createElement(LazyLoaderProvider, {
18882 src: src,
18883 height: height,
18884 width: width,
18885 style: style,
18886 resizeFn: resizeFn,
18887 tag: tag
18888 }, React__default.createElement(Consumer$c, null, function (value) {
18889 return children(value);
18890 }));
18891};
18892LazyLoader.propTypes = {
18893 children: PropTypes__default.func.isRequired,
18894 src: PropTypes__default.string,
18895 width: PropTypes__default.number,
18896 height: PropTypes__default.number,
18897 resizeFn: PropTypes__default.func,
18898 style: PropTypes__default.objectOf(PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number])),
18899 tag: PropTypes__default.string
18900};
18901LazyLoader.defaultProps = {
18902 src: PLACEHOLDER_IMAGE,
18903 width: null,
18904 height: null,
18905 resizeFn: resize,
18906 style: {},
18907 tag: "img"
18908};
18909
18910var _createContext$1 = createContext(),
18911 Provider$d = _createContext$1.Provider,
18912 Consumer$d = _createContext$1.Consumer;
18913
18914var TabsProvider =
18915/*#__PURE__*/
18916function (_Component) {
18917 _inherits(TabsProvider, _Component);
18918
18919 function TabsProvider(props) {
18920 var _this;
18921
18922 _classCallCheck(this, TabsProvider);
18923
18924 _this = _possibleConstructorReturn(this, _getPrototypeOf(TabsProvider).call(this, props));
18925
18926 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChangeTabIndex", function (callback) {
18927 return function (e) {
18928 var tabIndex = e.constructor === Number ? e : parseInt(e.target.dataset.index, 10);
18929 var currentTabIndex = _this.state.tabIndex;
18930
18931 if (tabIndex === currentTabIndex) {
18932 return;
18933 }
18934
18935 if (typeof callback === "function") {
18936 callback(tabIndex);
18937 }
18938
18939 _this.setState({
18940 tabIndex: tabIndex
18941 });
18942 };
18943 });
18944
18945 var _tabIndex = props.tabIndex;
18946 _this.state = {
18947 tabIndex: _tabIndex
18948 };
18949 return _this;
18950 }
18951
18952 _createClass(TabsProvider, [{
18953 key: "render",
18954 value: function render() {
18955 var _this$props = this.props,
18956 children = _this$props.children,
18957 onChangeTabIndex = _this$props.onChangeTabIndex;
18958 var tabsAssets = {
18959 tabIndex: this.state.tabIndex,
18960 onChangeTabIndex: onChangeTabIndex || this.onChangeTabIndex
18961 };
18962 return React__default.createElement(Provider$d, {
18963 value: tabsAssets
18964 }, children);
18965 }
18966 }]);
18967
18968 return TabsProvider;
18969}(Component);
18970
18971_defineProperty(TabsProvider, "propTypes", {
18972 tabIndex: PropTypes__default.number,
18973 children: PropTypes__default.node.isRequired,
18974 onChangeTabIndex: PropTypes__default.func
18975});
18976
18977_defineProperty(TabsProvider, "defaultProps", {
18978 tabIndex: 0,
18979 onChangeTabIndex: null
18980});
18981
18982function _templateObject7$c() {
18983 var data = _taggedTemplateLiteral(["\n padding: ", " 0 ", " 0;\n cursor: pointer;\n background-color: ", ";\n border: none;\n appearance: none;\n\n &.tab__button--active {\n border-bottom: 4px solid\n ", ";\n }\n"]);
18984
18985 _templateObject7$c = function _templateObject7() {
18986 return data;
18987 };
18988
18989 return data;
18990}
18991
18992function _templateObject6$e() {
18993 var data = _taggedTemplateLiteral(["\n padding-right: ", ";\n "]);
18994
18995 _templateObject6$e = function _templateObject6() {
18996 return data;
18997 };
18998
18999 return data;
19000}
19001
19002function _templateObject5$j() {
19003 var data = _taggedTemplateLiteral(["\n ", ";\n display: block;\n padding-right: ", ";\n white-space: nowrap;\n\n &:last-of-type {\n padding-right: 0;\n }\n"]);
19004
19005 _templateObject5$j = function _templateObject5() {
19006 return data;
19007 };
19008
19009 return data;
19010}
19011
19012function _templateObject4$u() {
19013 var data = _taggedTemplateLiteral(["\n &.tab__content--overflowed {\n margin-left: 0;\n padding-left: 0;\n width: 100%;\n }\n "]);
19014
19015 _templateObject4$u = function _templateObject4() {
19016 return data;
19017 };
19018
19019 return data;
19020}
19021
19022function _templateObject3$F() {
19023 var data = _taggedTemplateLiteral(["\n ", ";\n display: flex;\n flex: 1;\n width: 100%;\n overflow-x: auto;\n scroll-behavior: smooth;\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n &.tab__content--overflowed {\n margin-left: calc(50% - 50vw);\n padding-left: calc(50vw - 50%);\n width: 100vw;\n }\n"]);
19024
19025 _templateObject3$F = function _templateObject3() {
19026 return data;
19027 };
19028
19029 return data;
19030}
19031
19032function _templateObject2$10() {
19033 var data = _taggedTemplateLiteral(["\n &.tabs__container--overflowed:after {\n width: 100%;\n left: 0;\n }\n "]);
19034
19035 _templateObject2$10 = function _templateObject2() {
19036 return data;
19037 };
19038
19039 return data;
19040}
19041
19042function _templateObject$1x() {
19043 var data = _taggedTemplateLiteral(["\n ", ";\n\n position: relative;\n z-index: ", ";\n width: 100%;\n overflow: visible;\n\n ", " &.tabs__container--overflowed:after {\n width: 100vw;\n left: calc(50% - 50vw);\n }\n"]);
19044
19045 _templateObject$1x = function _templateObject() {
19046 return data;
19047 };
19048
19049 return data;
19050}
19051var padding = spacing.moderate;
19052var Container$b = styled.div(_templateObject$1x(), smallAndUp(_templateObject2$10()), zIndex.reset, function (_ref) {
19053 var withBorderBottom = _ref.withBorderBottom;
19054 return withBorderBottom && "\n &:after {\n content: '';\n display: block;\n position: absolute;\n border-bottom: 1px solid ".concat(themes.tm.gray04, ";\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ").concat(zIndex.unset, ";\n }\n ");
19055});
19056var Content$4 = styled.div.attrs({
19057 role: "tablist"
19058})(_templateObject3$F(), smallAndUp(_templateObject4$u()));
19059var Tab = styled.div.attrs({
19060 role: "presentation"
19061})(_templateObject5$j(), largeAndUp(_templateObject6$e(), spacing.comfy), spacing.normal);
19062
19063var checkIfOverflows = function checkIfOverflows() {
19064 var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
19065 if (!content) return false;
19066 var _content$offsetWidth = content.offsetWidth,
19067 offsetWidth = _content$offsetWidth === void 0 ? 0 : _content$offsetWidth,
19068 _content$scrollWidth = content.scrollWidth,
19069 scrollWidth = _content$scrollWidth === void 0 ? 0 : _content$scrollWidth;
19070 return offsetWidth < scrollWidth;
19071};
19072
19073var TabItemButton = styled.button.attrs(function (props) {
19074 var isActive = props.isActive,
19075 dataIndex = props.dataIndex,
19076 rest = _objectWithoutProperties(props, ["isActive", "dataIndex"]);
19077
19078 return _objectSpread({
19079 className: isActive ? "tab__button--active" : "",
19080 role: "tab",
19081 "data-index": dataIndex,
19082 "aria-selected": isActive
19083 }, rest);
19084})(_templateObject7$c(), padding, spacing.cozy, themes.global.transparent, function (props) {
19085 return props.underlineColor || themes.global.primary.base;
19086});
19087
19088var Tabs =
19089/*#__PURE__*/
19090function (_Component) {
19091 _inherits(Tabs, _Component);
19092
19093 function Tabs() {
19094 var _getPrototypeOf2;
19095
19096 var _this;
19097
19098 _classCallCheck(this, Tabs);
19099
19100 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19101 args[_key] = arguments[_key];
19102 }
19103
19104 _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Tabs)).call.apply(_getPrototypeOf2, [this].concat(args)));
19105
19106 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
19107 isTabsContainerOverflows: false
19108 });
19109
19110 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (e) {
19111 var keyCode = e.keyCode;
19112 var _this$props = _this.props,
19113 index = _this$props.index,
19114 items = _this$props.items;
19115
19116 switch (keyCode) {
19117 case ARROWRIGHT:
19118 if (index < items.length - 1) {
19119 _this.focusTab(index + 1);
19120 } else {
19121 _this.focusTab(0);
19122 }
19123
19124 break;
19125
19126 case ARROWLEFT:
19127 if (index > 0) {
19128 _this.focusTab(index - 1);
19129 } else {
19130 _this.focusTab(items.length - 1);
19131 }
19132
19133 break;
19134
19135 default:
19136 break;
19137 }
19138 });
19139
19140 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusTab", function (index) {
19141 var tabChangedWithArrowKeys = _this.props.tabChangedWithArrowKeys;
19142
19143 if (_this.itemRefs && _this.itemRefs[index]) {
19144 _this.itemRefs[index].focus();
19145
19146 if (tabChangedWithArrowKeys) {
19147 tabChangedWithArrowKeys(index);
19148 }
19149 }
19150 });
19151
19152 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateIsOverflowsState", function () {
19153 var isOverflows = checkIfOverflows(_this.content);
19154
19155 if (_this.state.isTabsContainerOverflows !== isOverflows) {
19156 _this.setState({
19157 isTabsContainerOverflows: isOverflows
19158 });
19159 }
19160 });
19161
19162 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "itemRefs", []);
19163
19164 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderItems", function () {
19165 var _this$props2 = _this.props,
19166 items = _this$props2.items,
19167 index = _this$props2.index,
19168 _onClick = _this$props2.onClick,
19169 underlineColor = _this$props2.underlineColor,
19170 itemsProps = _this$props2.itemsProps,
19171 defaultItemProps = _this$props2.defaultItemProps,
19172 textProps = _objectWithoutProperties(_this$props2, ["items", "index", "onClick", "underlineColor", "itemsProps", "defaultItemProps"]);
19173
19174 var areItemsValidKeys = items && items.length > 0 && (items[0].constructor === String || items[0].constructor === Number);
19175 return items.map(function (item, itemIndex) {
19176 return React__default.createElement(Tab, {
19177 key: areItemsValidKeys ? item : itemIndex
19178 }, React__default.createElement(TabItemButton, _extends({
19179 isActive: itemIndex === index,
19180 tabIndex: itemIndex === index ? 0 : -1,
19181 underlineColor: underlineColor,
19182 onClick: function onClick() {
19183 return _onClick(itemIndex);
19184 },
19185 onKeyDown: _this.onKeyDown,
19186 ref: function ref(_ref2) {
19187 _this.itemRefs[itemIndex] = _ref2;
19188 },
19189 dataIndex: itemIndex
19190 }, itemsProps[itemIndex] || defaultItemProps), React__default.createElement(TextBase, _extends({
19191 responsiveSize: {
19192 small: "kilo",
19193 large: "giga"
19194 },
19195 primary: true
19196 }, textProps), item)));
19197 });
19198 });
19199
19200 return _this;
19201 }
19202
19203 _createClass(Tabs, [{
19204 key: "componentDidMount",
19205 value: function componentDidMount() {
19206 this.updateIsOverflowsState();
19207 window.addEventListener("resize", this.updateIsOverflowsState); // eslint-disable-line
19208 }
19209 }, {
19210 key: "componentDidUpdate",
19211 value: function componentDidUpdate() {
19212 if (this.state.isTabsContainerOverflows) {
19213 var _this$content = this.content,
19214 contentWidth = _this$content.offsetWidth,
19215 contentScrollLeft = _this$content.scrollLeft;
19216 var index = this.props.index;
19217 var _this$itemRefs$index = this.itemRefs[index],
19218 _this$itemRefs$index$ = _this$itemRefs$index.offsetWidth,
19219 activeItemWidth = _this$itemRefs$index$ === void 0 ? 0 : _this$itemRefs$index$,
19220 _this$itemRefs$index$2 = _this$itemRefs$index.offsetLeft,
19221 activeItemLeft = _this$itemRefs$index$2 === void 0 ? 0 : _this$itemRefs$index$2;
19222
19223 if (activeItemWidth + activeItemLeft > contentWidth + contentScrollLeft) {
19224 this.content.scrollLeft = activeItemWidth + activeItemLeft - contentWidth + parseInt(padding, 10);
19225 } else if (activeItemLeft < contentScrollLeft) {
19226 this.content.scrollLeft = activeItemLeft - parseInt(padding, 10);
19227 }
19228 }
19229 }
19230 }, {
19231 key: "componentWillUnmount",
19232 value: function componentWillUnmount() {
19233 window.removeEventListener("resize", this.updateIsOverflowsState); //eslint-disable-line
19234 }
19235 }, {
19236 key: "render",
19237 value: function render() {
19238 var _this2 = this;
19239
19240 var withBorderBottom = this.props.withBorderBottom;
19241 return React__default.createElement(Container$b, {
19242 withBorderBottom: withBorderBottom,
19243 className: classNames({
19244 "tabs__container--overflowed": this.state.isTabsContainerOverflows
19245 })
19246 }, React__default.createElement(Content$4, {
19247 className: classNames({
19248 "tabs__content--overflowed": this.state.isTabsContainerOverflows
19249 }),
19250 ref: function ref(_ref3) {
19251 _this2.content = _ref3;
19252 }
19253 }, this.renderItems()));
19254 }
19255 }]);
19256
19257 return Tabs;
19258}(Component);
19259
19260_defineProperty(Tabs, "propTypes", {
19261 items: PropTypes__default.arrayOf(PropTypes__default.node).isRequired,
19262 itemsProps: PropTypes__default.arrayOf(PropTypes__default.any),
19263
19264 /* eslint-disable react/forbid-prop-types */
19265 defaultItemProps: PropTypes__default.object,
19266
19267 /* eslint-enable react/forbid-prop-types */
19268 index: PropTypes__default.number,
19269 onClick: PropTypes__default.func,
19270 tabChangedWithArrowKeys: PropTypes__default.func,
19271 variant: PropTypes__default.string,
19272 accent: PropTypes__default.string,
19273 weight: PropTypes__default.string,
19274 underlineColor: PropTypes__default.string,
19275 withBorderBottom: PropTypes__default.bool
19276});
19277
19278_defineProperty(Tabs, "defaultProps", {
19279 itemsProps: [],
19280 defaultItemProps: {},
19281 index: -1,
19282 onClick: function onClick() {},
19283 tabChangedWithArrowKeys: function tabChangedWithArrowKeys() {},
19284 variant: null,
19285 accent: null,
19286 weight: null,
19287 underlineColor: null,
19288 withBorderBottom: true
19289});
19290
19291function _templateObject4$v() {
19292 var data = _taggedTemplateLiteral(["\n position: absolute;\n width: ", ";\n height: ", ";\n cursor: pointer;\n touch-action: pan-x;\n border: 1px solid ", ";\n border-radius: 50%;\n background: ", ";\n margin-left: calc(-", " / 2);\n"]);
19293
19294 _templateObject4$v = function _templateObject4() {
19295 return data;
19296 };
19297
19298 return data;
19299}
19300
19301function _templateObject3$G() {
19302 var data = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n height: ", ";\n background-color: ", ";\n\n &.slider__track--disabled {\n background-color: ", ";\n }\n"]);
19303
19304 _templateObject3$G = function _templateObject3() {
19305 return data;
19306 };
19307
19308 return data;
19309}
19310
19311function _templateObject2$11() {
19312 var data = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n background-color: ", ";\n height: ", ";\n"]);
19313
19314 _templateObject2$11 = function _templateObject2() {
19315 return data;
19316 };
19317
19318 return data;
19319}
19320
19321function _templateObject$1y() {
19322 var data = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n touch-action: none;\n box-sizing: border-box;\n height: calc(", " + 1px);\n display: flex;\n align-items: center;\n\n &.disabled {\n opacity: 0.4;\n }\n"]);
19323
19324 _templateObject$1y = function _templateObject() {
19325 return data;
19326 };
19327
19328 return data;
19329}
19330var sliderHeight = "4px";
19331var handleSize = "23px";
19332var SliderContainer = styled.div(_templateObject$1y(), handleSize);
19333var SliderRail = styled.div(_templateObject2$11(), themes.global.gray04, sliderHeight);
19334var SliderTrack = styled.div(_templateObject3$G(), sliderHeight, themes.global.primary.base, themes.global.gray03);
19335var SliderHandle = styled.div(_templateObject4$v(), handleSize, handleSize, themes.global.gray03, themes.global.white.base, handleSize);
19336
19337var Track = function Track(props) {
19338 var className = props.className,
19339 offset = props.offset,
19340 length = props.length,
19341 disabled = props.disabled;
19342 var positonStyle = {
19343 left: "".concat(offset, "%"),
19344 width: "".concat(length, "%")
19345 };
19346 var classes = classNames(className, {
19347 "slider__track--disabled": disabled
19348 });
19349 return React__default.createElement(SliderTrack, {
19350 className: classes,
19351 style: positonStyle
19352 });
19353};
19354
19355Track.propTypes = {
19356 className: PropTypes__default.string,
19357 offset: PropTypes__default.number.isRequired,
19358 length: PropTypes__default.number.isRequired,
19359 disabled: PropTypes__default.bool
19360};
19361Track.defaultProps = {
19362 className: "",
19363 disabled: false
19364};
19365
19366var Handle =
19367/*#__PURE__*/
19368function (_PureComponent) {
19369 _inherits(Handle, _PureComponent);
19370
19371 function Handle() {
19372 _classCallCheck(this, Handle);
19373
19374 return _possibleConstructorReturn(this, _getPrototypeOf(Handle).apply(this, arguments));
19375 }
19376
19377 _createClass(Handle, [{
19378 key: "render",
19379 value: function render() {
19380 var _this$props = this.props,
19381 offset = _this$props.offset,
19382 disabled = _this$props.disabled,
19383 min = _this$props.min,
19384 max = _this$props.max,
19385 value = _this$props.value,
19386 handleRef = _this$props.handleRef,
19387 restProps = _objectWithoutProperties(_this$props, ["offset", "disabled", "min", "max", "value", "handleRef"]);
19388
19389 var postionStyle = {
19390 left: "".concat(offset, "%")
19391 };
19392 return React__default.createElement(SliderHandle, _extends({
19393 ref: handleRef
19394 }, restProps, {
19395 style: postionStyle // aria attribute
19396 ,
19397 role: "slider",
19398 "aria-valuemin": min,
19399 "aria-valuemax": max,
19400 "aria-valuenow": value,
19401 "aria-disabled": disabled
19402 }));
19403 }
19404 }]);
19405
19406 return Handle;
19407}(PureComponent);
19408Handle.propTypes = {
19409 offset: PropTypes__default.number.isRequired,
19410 disabled: PropTypes__default.bool,
19411 min: PropTypes__default.number.isRequired,
19412 max: PropTypes__default.number.isRequired,
19413 value: PropTypes__default.number.isRequired,
19414 handleRef: PropTypes__default.func.isRequired
19415};
19416Handle.defaultProps = {
19417 disabled: false
19418};
19419
19420var isEventFromHandle = function isEventFromHandle(e, handles) {
19421 try {
19422 return Object.keys(handles).some(function (key) {
19423 return e.target === handles[key];
19424 });
19425 } catch (error) {
19426 return false;
19427 }
19428};
19429var isEventRelated = function isEventRelated(e, slider) {
19430 return slider && slider.contains(e.relatedTarget);
19431};
19432var isNotTouchEvent = function isNotTouchEvent(e) {
19433 return e.touches.length > 1 || e.type.toLowerCase() === "touchend" && e.touches.length > 0;
19434};
19435var getClosestPoint = function getClosestPoint(val, _ref) {
19436 var step = _ref.step,
19437 min = _ref.min;
19438 return step ? Math.round((val - min) / step) * step + min : 0;
19439};
19440var getPrecision = function getPrecision(step) {
19441 var stepString = step.toString();
19442 var precision = 0;
19443
19444 if (stepString.indexOf(".") >= 0) {
19445 precision = stepString.length - stepString.indexOf(".") - 1;
19446 }
19447
19448 return precision;
19449};
19450var getHandleCenterPosition = function getHandleCenterPosition(handle) {
19451 var coords = handle.getBoundingClientRect();
19452 return global.window.pageXOffset + coords.left + coords.width * 0.5;
19453};
19454var ensureValueInRange = function ensureValueInRange(val, _ref2) {
19455 var max = _ref2.max,
19456 min = _ref2.min;
19457
19458 if (val <= min) {
19459 return min;
19460 }
19461
19462 if (val >= max) {
19463 return max;
19464 }
19465
19466 return val;
19467};
19468var ensureValuePrecision = function ensureValuePrecision(val, props) {
19469 var step = props.step;
19470 var closestPoint = getClosestPoint(val, props);
19471 return !step ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));
19472};
19473var pauseEvent = function pauseEvent(e) {
19474 e.stopPropagation();
19475 e.preventDefault();
19476};
19477var ensureValueNotConflict = function ensureValueNotConflict(handle, val, bounds, threshold) {
19478 if (handle != null && bounds !== undefined) {
19479 if (handle > 0 && val <= bounds[handle - 1]) {
19480 return bounds[handle - 1] + threshold;
19481 }
19482
19483 if (handle < bounds.length - 1 && val >= bounds[handle + 1]) {
19484 return bounds[handle + 1] - threshold;
19485 }
19486 }
19487
19488 return val;
19489};
19490var trimAlignValue = function trimAlignValue(v, handle, props) {
19491 var bounds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
19492 var threshold = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
19493 var valInRange = ensureValueInRange(v, props);
19494 var valNotConflict = ensureValueNotConflict(handle, valInRange, bounds, threshold);
19495 return ensureValuePrecision(valNotConflict, props);
19496};
19497
19498var noop$4 = function noop() {};
19499
19500var RangeSlider =
19501/*#__PURE__*/
19502function (_React$Component) {
19503 _inherits(RangeSlider, _React$Component);
19504
19505 function RangeSlider(props) {
19506 var _this;
19507
19508 _classCallCheck(this, RangeSlider);
19509
19510 _this = _possibleConstructorReturn(this, _getPrototypeOf(RangeSlider).call(this, props));
19511
19512 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMouseDown", function (e) {
19513 var position = e.pageX;
19514
19515 if (!isEventFromHandle(e, _this.handlesRefs)) {
19516 _this.dragOffset = 0;
19517 } else {
19518 position = _this.getHandlePosition(e, position);
19519 }
19520
19521 _this.removeDocumentEvents();
19522
19523 _this.onStart(position);
19524
19525 _this.addDocumentMouseEvents();
19526 });
19527
19528 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMouseMove", function (e) {
19529 if (!_this.sliderRef) {
19530 _this.onEnd();
19531
19532 return;
19533 }
19534
19535 var position = e.pageX;
19536
19537 _this.onMove(e, position - _this.dragOffset);
19538 });
19539
19540 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchStart", function (e) {
19541 if (isNotTouchEvent(e)) {
19542 return;
19543 }
19544
19545 var position = e.touches[0].pageX;
19546
19547 if (!isEventFromHandle(e, _this.handlesRefs)) {
19548 _this.dragOffset = 0;
19549 } else {
19550 position = _this.getHandlePosition(e, position);
19551 }
19552
19553 _this.onStart(position);
19554
19555 _this.addDocumentTouchEvents();
19556
19557 pauseEvent(e);
19558 });
19559
19560 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchMove", function (e) {
19561 if (isNotTouchEvent(e) || !_this.sliderRef) {
19562 _this.onEnd();
19563
19564 return;
19565 }
19566
19567 var position = e.touches[0].pageX;
19568
19569 _this.onMove(e, position - _this.dragOffset);
19570 });
19571
19572 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocus", function (e) {
19573 var onFocus = _this.props.onFocus;
19574 var slider = _this.sliderRef;
19575
19576 if (isEventFromHandle(e, _this.handlesRefs) && !isEventRelated(e, slider)) {
19577 var handlePosition = getHandleCenterPosition(e.target);
19578 _this.dragOffset = 0;
19579
19580 _this.onStart(handlePosition);
19581
19582 pauseEvent(e);
19583 onFocus(e);
19584 }
19585 });
19586
19587 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onBlur", function (e) {
19588 var slider = _this.sliderRef;
19589
19590 if (!isEventRelated(e, slider)) {
19591 var onBlur = _this.props.onBlur;
19592
19593 _this.onEnd(e);
19594
19595 onBlur(e);
19596 }
19597 });
19598
19599 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
19600 var focusedHandle = parseInt(event.target.getAttribute("data-index"), 10);
19601 var keyCode = event.keyCode;
19602
19603 switch (keyCode) {
19604 case ARROWLEFT:
19605 case ARROWDOWN:
19606 pauseEvent(event);
19607
19608 _this.updateHandleValues(focusedHandle, "decrease");
19609
19610 break;
19611
19612 case ARROWUP:
19613 case ARROWRIGHT:
19614 pauseEvent(event);
19615
19616 _this.updateHandleValues(focusedHandle, "increase");
19617
19618 break;
19619
19620 default:
19621 break;
19622 }
19623 });
19624
19625 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onEnd", function () {
19626 var onAfterChange = _this.props.onAfterChange;
19627
19628 _this.setState({
19629 handle: null
19630 });
19631
19632 _this.removeDocumentEvents();
19633
19634 onAfterChange(_this.getValue());
19635 });
19636
19637 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getHandlePosition", function (e, position) {
19638 var handlePosition = getHandleCenterPosition(e.target);
19639 _this.dragOffset = position - handlePosition;
19640 return handlePosition;
19641 });
19642
19643 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getValue", function () {
19644 var bounds = _this.state.bounds;
19645 return bounds;
19646 });
19647
19648 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getClosestBound", function (value) {
19649 var bounds = _this.state.bounds;
19650 var single = _this.props.single; // always move the right handle when single
19651
19652 if (single) {
19653 return 1;
19654 }
19655
19656 var closestBound = 0;
19657
19658 if (Math.abs(bounds[closestBound + 1] - value) < Math.abs(bounds[closestBound] - value)) {
19659 closestBound += 1;
19660 }
19661
19662 return closestBound;
19663 });
19664
19665 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "calcOffset", function (value) {
19666 var _this$props = _this.props,
19667 min = _this$props.min,
19668 max = _this$props.max;
19669 var ratio = (value - min) / (max - min);
19670 return ratio * 100;
19671 });
19672
19673 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "saveHandle", function (index, handle) {
19674 _this.handlesRefs[index] = handle;
19675 });
19676
19677 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusHandle", function (handle) {
19678 if (_this.handlesRefs && _this.handlesRefs[handle]) {
19679 _this.handlesRefs[handle].focus();
19680 }
19681 });
19682
19683 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateHandleValues", function (handle, type) {
19684 var _this$props2 = _this.props,
19685 min = _this$props2.min,
19686 max = _this$props2.max,
19687 step = _this$props2.step;
19688 var bounds = _this.state.bounds;
19689 var newValue = 0;
19690
19691 if (type === "increase") {
19692 newValue = bounds[handle] + step;
19693 } else if (type === "decrease") {
19694 newValue = bounds[handle] - step;
19695 }
19696
19697 if (newValue >= min && newValue <= max) {
19698 if (handle === 0 && newValue > bounds[1]) {
19699 // switching focus from left handle to right
19700 _this.focusHandle(1);
19701
19702 bounds = [bounds[0], newValue];
19703
19704 _this.onChange({
19705 handle: handle,
19706 bounds: bounds
19707 });
19708 } else if (handle === 1 && newValue < bounds[0]) {
19709 // switching focus from right handle to left
19710 _this.focusHandle(0);
19711
19712 bounds = [newValue, bounds[1]];
19713
19714 _this.onChange({
19715 handle: handle,
19716 bounds: bounds
19717 });
19718 } else {
19719 bounds[handle] = newValue;
19720
19721 _this.onChange({
19722 handle: handle,
19723 bounds: bounds
19724 });
19725 }
19726 }
19727 });
19728
19729 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderHandles", function () {
19730 var bounds = _this.state.bounds;
19731 var _this$props3 = _this.props,
19732 disabled = _this$props3.disabled,
19733 min = _this$props3.min,
19734 max = _this$props3.max,
19735 single = _this$props3.single;
19736 var offsets = bounds.map(_this.calcOffset);
19737 return bounds.map(function (v, i) {
19738 var _classNames;
19739
19740 var key = i + 1;
19741 var classes = classNames("slider__handle", (_classNames = {}, _defineProperty(_classNames, "slider__handle-".concat(i + 1), true), _defineProperty(_classNames, "slider__handle--disabled", disabled), _classNames)); // do not render the first handle if single
19742
19743 if (i === 0 && single) {
19744 return null;
19745 }
19746
19747 return React__default.createElement(Handle, {
19748 key: key,
19749 className: classes,
19750 offset: offsets[i],
19751 value: v,
19752 min: min,
19753 max: max,
19754 disabled: disabled,
19755 tabIndex: disabled ? undefined : "0",
19756 "data-index": i,
19757 onKeyDown: _this.onKeyDown,
19758 handleRef: function handleRef(h) {
19759 return _this.saveHandle(i, h);
19760 }
19761 });
19762 });
19763 });
19764
19765 _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderTrack", function () {
19766 var bounds = _this.state.bounds;
19767 var disabled = _this.props.disabled;
19768 var offsets = bounds.map(_this.calcOffset);
19769 return bounds.slice(0, -1).map(function (_, index) {
19770 var i = index + 1;
19771 return React__default.createElement(Track, {
19772 className: "slider__track",
19773 offset: offsets[i - 1],
19774 length: offsets[i] - offsets[i - 1],
19775 key: i,
19776 disabled: disabled
19777 });
19778 });
19779 });
19780
19781 var currentValue = props.value,
19782 defaultValue = props.defaultValue,
19783 _max = props.max;
19784
19785 var _value = currentValue || defaultValue;
19786
19787 var _bounds = _value.map(function (v, i) {
19788 return trimAlignValue(v, i, props);
19789 });
19790
19791 var recent = _bounds[0] === _max ? 0 : _bounds.length - 1;
19792 _this.state = {
19793 handle: null,
19794 recent: recent,
19795 bounds: _bounds
19796 };
19797 _this.handlesRefs = [];
19798 return _this;
19799 }
19800
19801 _createClass(RangeSlider, [{
19802 key: "componentWillUnmount",
19803 value: function componentWillUnmount() {
19804 this.removeDocumentEvents();
19805 }
19806 }, {
19807 key: "onChange",
19808 value: function onChange(state) {
19809 var _this$props4 = this.props,
19810 value = _this$props4.value,
19811 onChange = _this$props4.onChange;
19812 var isNotControlled = !value;
19813
19814 if (isNotControlled) {
19815 this.setState(state);
19816 } else if (state.handle !== undefined) {
19817 this.setState({
19818 handle: state.handle
19819 });
19820 }
19821
19822 var data = _objectSpread({}, this.state, state);
19823
19824 var changedValue = data.bounds;
19825 onChange(changedValue);
19826 }
19827 }, {
19828 key: "onStart",
19829 value: function onStart(position) {
19830 var onBeforeChange = this.props.onBeforeChange;
19831 var stateBounds = this.state.bounds;
19832 var bounds = this.getValue();
19833 onBeforeChange(bounds);
19834 var value = this.calcValueByPos(position);
19835 this.startValue = value;
19836 this.startPosition = position;
19837 var closestBound = this.getClosestBound(value);
19838 this.prevMovedHandleIndex = this.getBoundNeedMoving(value, closestBound);
19839 this.setState({
19840 handle: this.prevMovedHandleIndex,
19841 recent: this.prevMovedHandleIndex
19842 });
19843 var prevValue = bounds[this.prevMovedHandleIndex];
19844
19845 if (value === prevValue) {
19846 return;
19847 }
19848
19849 var nextBounds = _toConsumableArray(stateBounds);
19850
19851 nextBounds[this.prevMovedHandleIndex] = value;
19852 this.onChange({
19853 bounds: nextBounds
19854 });
19855 }
19856 }, {
19857 key: "onMove",
19858 value: function onMove(e, position) {
19859 pauseEvent(e);
19860 var _this$state = this.state,
19861 bounds = _this$state.bounds,
19862 handle = _this$state.handle;
19863 var value = this.calcValueByPos(position);
19864 var oldValue = bounds[handle];
19865
19866 if (value === oldValue) {
19867 return;
19868 }
19869
19870 this.moveTo(value);
19871 }
19872 }, {
19873 key: "getBoundNeedMoving",
19874 value: function getBoundNeedMoving(value, closestBound) {
19875 var _this$state2 = this.state,
19876 bounds = _this$state2.bounds,
19877 recent = _this$state2.recent;
19878 var boundNeedMoving = closestBound;
19879 var isAtTheSamePoint = bounds[closestBound + 1] === bounds[closestBound];
19880
19881 if (isAtTheSamePoint && bounds[recent] === bounds[closestBound]) {
19882 boundNeedMoving = recent;
19883 }
19884
19885 if (isAtTheSamePoint && value !== bounds[closestBound + 1]) {
19886 boundNeedMoving = value < bounds[closestBound + 1] ? closestBound : closestBound + 1;
19887 }
19888
19889 return boundNeedMoving;
19890 }
19891 /**
19892 * Returns an array of possible slider points, taking into account both
19893 * and `step`. The result is cached.
19894 */
19895
19896 }, {
19897 key: "getPoints",
19898 value: function getPoints() {
19899 var _this$props5 = this.props,
19900 step = _this$props5.step,
19901 min = _this$props5.min,
19902 max = _this$props5.max;
19903 var cache = this.getPointsCache;
19904
19905 if (!cache || cache.step !== step) {
19906 var pointsObject = {};
19907
19908 for (var point = min; point <= max; point += step) {
19909 pointsObject[point] = point;
19910 }
19911
19912 var points = Object.keys(pointsObject).map(parseFloat);
19913 points.sort(function (a, b) {
19914 return a - b;
19915 });
19916 this.getPointsCache = {
19917 step: step,
19918 points: points
19919 };
19920 }
19921
19922 return this.getPointsCache.points;
19923 }
19924 }, {
19925 key: "getSliderStart",
19926 value: function getSliderStart() {
19927 var slider = this.sliderRef;
19928 var rect = slider.getBoundingClientRect();
19929 return rect.left + global.window.pageXOffset;
19930 }
19931 }, {
19932 key: "getSliderLength",
19933 value: function getSliderLength() {
19934 var slider = this.sliderRef;
19935
19936 if (!slider) {
19937 return 0;
19938 }
19939
19940 var coords = slider.getBoundingClientRect();
19941 return coords.width;
19942 }
19943 }, {
19944 key: "moveTo",
19945 value: function moveTo(value) {
19946 var _this$state3 = this.state,
19947 handle = _this$state3.handle,
19948 bounds = _this$state3.bounds;
19949
19950 var nextBounds = _toConsumableArray(bounds);
19951
19952 nextBounds[handle] = value;
19953 this.onChange({
19954 handle: handle,
19955 bounds: nextBounds
19956 });
19957 }
19958 }, {
19959 key: "calcValue",
19960 value: function calcValue(offset) {
19961 var _this$props6 = this.props,
19962 min = _this$props6.min,
19963 max = _this$props6.max;
19964 var ratio = Math.max(offset, 0) / this.getSliderLength();
19965 var value = ratio * (max - min) + min;
19966 return value;
19967 }
19968 }, {
19969 key: "calcValueByPos",
19970 value: function calcValueByPos(position) {
19971 var threshold = this.props.threshold;
19972 var _this$state4 = this.state,
19973 handle = _this$state4.handle,
19974 bounds = _this$state4.bounds;
19975 var pixelOffset = position - this.getSliderStart();
19976 var nextValue = trimAlignValue(this.calcValue(pixelOffset), handle, this.props, bounds, threshold);
19977 return nextValue;
19978 }
19979 }, {
19980 key: "addDocumentTouchEvents",
19981 value: function addDocumentTouchEvents() {
19982 global.window.addEventListener("touchmove", this.onTouchMove);
19983 global.window.addEventListener("touchend", this.onEnd);
19984 }
19985 }, {
19986 key: "addDocumentMouseEvents",
19987 value: function addDocumentMouseEvents() {
19988 global.window.addEventListener("mousemove", this.onMouseMove);
19989 global.window.addEventListener("mouseup", this.onEnd);
19990 }
19991 }, {
19992 key: "removeDocumentEvents",
19993 value: function removeDocumentEvents() {
19994 global.window.removeEventListener("touchmove", this.onTouchMove);
19995 global.window.removeEventListener("touchend", this.onEnd);
19996 global.window.removeEventListener("mousemove", this.onMouseMove);
19997 global.window.removeEventListener("mouseup", this.onEnd);
19998 }
19999 }, {
20000 key: "render",
20001 value: function render() {
20002 var _classNames2,
20003 _this2 = this;
20004
20005 var _this$props7 = this.props,
20006 disabled = _this$props7.disabled,
20007 className = _this$props7.className;
20008 var handles = this.renderHandles();
20009 var track = this.renderTrack();
20010 var sliderClassName = classNames("slider", (_classNames2 = {}, _defineProperty(_classNames2, "slider--disabled", disabled), _defineProperty(_classNames2, "disabled", disabled), _defineProperty(_classNames2, className, className), _classNames2));
20011 return React__default.createElement(SliderContainer, {
20012 ref: function ref(slider) {
20013 _this2.sliderRef = slider;
20014 },
20015 className: sliderClassName,
20016 onTouchStart: disabled ? noop$4 : this.onTouchStart,
20017 onMouseDown: disabled ? noop$4 : this.onMouseDown,
20018 onFocus: disabled ? noop$4 : this.onFocus,
20019 onBlur: disabled ? noop$4 : this.onBlur
20020 }, React__default.createElement(SliderRail, {
20021 className: "slider__rail"
20022 }), track, handles);
20023 }
20024 }], [{
20025 key: "getDerivedStateFromProps",
20026 value: function getDerivedStateFromProps(props, state) {
20027 var propsValue = props.value,
20028 min = props.min,
20029 max = props.max,
20030 threshold = props.threshold;
20031
20032 if (!(propsValue || min || min === 0 || max)) {
20033 return null;
20034 }
20035
20036 var bounds = state.bounds;
20037 var value = propsValue || bounds;
20038 var nextBounds = value.map(function (v, i) {
20039 return trimAlignValue(v, i, props, value, threshold);
20040 });
20041
20042 if (nextBounds.length === bounds.length && nextBounds.every(function (v, i) {
20043 return v === bounds[i];
20044 })) {
20045 return null;
20046 }
20047
20048 return _objectSpread({}, state, {
20049 bounds: nextBounds
20050 });
20051 }
20052 }]);
20053
20054 return RangeSlider;
20055}(React__default.Component);
20056
20057_defineProperty(RangeSlider, "displayName", "RangeSlider");
20058
20059_defineProperty(RangeSlider, "propTypes", {
20060 defaultValue: PropTypes__default.arrayOf(PropTypes__default.number),
20061 value: PropTypes__default.arrayOf(PropTypes__default.number),
20062 disabled: PropTypes__default.bool,
20063 min: PropTypes__default.number,
20064 max: PropTypes__default.number,
20065 step: PropTypes__default.number,
20066 onChange: PropTypes__default.func,
20067 onBeforeChange: PropTypes__default.func,
20068 onAfterChange: PropTypes__default.func,
20069 onFocus: PropTypes__default.func,
20070 onBlur: PropTypes__default.func,
20071 className: PropTypes__default.string,
20072 threshold: PropTypes__default.number,
20073 single: PropTypes__default.bool
20074});
20075
20076_defineProperty(RangeSlider, "defaultProps", {
20077 defaultValue: [0, 100],
20078 value: null,
20079 min: 0,
20080 max: 100,
20081 step: 1,
20082 onChange: noop$4,
20083 onBeforeChange: noop$4,
20084 onAfterChange: noop$4,
20085 onFocus: null,
20086 onBlur: null,
20087 className: "",
20088 disabled: false,
20089 threshold: 0,
20090 single: false
20091});
20092
20093var typographyClassnames = function typographyClassnames(elem) {
20094 var _classnames;
20095
20096 var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
20097 weight = _ref.weight,
20098 color = _ref.color,
20099 variant = _ref.variant,
20100 textTransform = _ref.textTransform;
20101
20102 return elem ? classNames((_classnames = {}, _defineProperty(_classnames, elem, true), _defineProperty(_classnames, "".concat(elem, "--").concat(weight), !!weight), _defineProperty(_classnames, "".concat(elem, "--").concat(textTransform), !!textTransform), _defineProperty(_classnames, "".concat(elem, "--").concat(color, "-").concat(variant), !!(color && variant)), _classnames)) : "";
20103};
20104
20105function _templateObject5$k() {
20106 var data = _taggedTemplateLiteral(["bronto"]);
20107
20108 _templateObject5$k = function _templateObject5() {
20109 return data;
20110 };
20111
20112 return data;
20113}
20114
20115function _templateObject4$w() {
20116 var data = _taggedTemplateLiteral(["", ""]);
20117
20118 _templateObject4$w = function _templateObject4() {
20119 return data;
20120 };
20121
20122 return data;
20123}
20124
20125function _templateObject3$H() {
20126 var data = _taggedTemplateLiteral(["zetta"]);
20127
20128 _templateObject3$H = function _templateObject3() {
20129 return data;
20130 };
20131
20132 return data;
20133}
20134
20135function _templateObject2$12() {
20136 var data = _taggedTemplateLiteral(["semiBold"]);
20137
20138 _templateObject2$12 = function _templateObject2() {
20139 return data;
20140 };
20141
20142 return data;
20143}
20144
20145function _templateObject$1z() {
20146 var data = _taggedTemplateLiteral(["\n ", "\n ", "\n ", " ", ";\n"]);
20147
20148 _templateObject$1z = function _templateObject() {
20149 return data;
20150 };
20151
20152 return data;
20153}
20154var H1 = styled.h1.attrs(function (_ref) {
20155 var _ref$weight = _ref.weight,
20156 weight = _ref$weight === void 0 ? FONT_WEIGHT_SEMI_BOLD : _ref$weight,
20157 _ref$color = _ref.color,
20158 color = _ref$color === void 0 ? ONYX : _ref$color,
20159 _ref$variant = _ref.variant,
20160 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20161 return {
20162 className: typographyClassnames("h1", {
20163 weight: weight,
20164 color: color,
20165 variant: variant
20166 })
20167 };
20168})(_templateObject$1z(), fontWeight(_templateObject2$12()), BASE_STYLE_HEADER, fontSize(_templateObject3$H()), largeAndUp(_templateObject4$w(), fontSize(_templateObject5$k())));
20169H1.displayName = "Typography.H1";
20170
20171function _templateObject5$l() {
20172 var data = _taggedTemplateLiteral(["zetta"]);
20173
20174 _templateObject5$l = function _templateObject5() {
20175 return data;
20176 };
20177
20178 return data;
20179}
20180
20181function _templateObject4$x() {
20182 var data = _taggedTemplateLiteral(["", ""]);
20183
20184 _templateObject4$x = function _templateObject4() {
20185 return data;
20186 };
20187
20188 return data;
20189}
20190
20191function _templateObject3$I() {
20192 var data = _taggedTemplateLiteral(["tera"]);
20193
20194 _templateObject3$I = function _templateObject3() {
20195 return data;
20196 };
20197
20198 return data;
20199}
20200
20201function _templateObject2$13() {
20202 var data = _taggedTemplateLiteral(["regular"]);
20203
20204 _templateObject2$13 = function _templateObject2() {
20205 return data;
20206 };
20207
20208 return data;
20209}
20210
20211function _templateObject$1A() {
20212 var data = _taggedTemplateLiteral(["\n ", "\n ", "\n ", " ", ";\n"]);
20213
20214 _templateObject$1A = function _templateObject() {
20215 return data;
20216 };
20217
20218 return data;
20219}
20220var H2 = styled.h2.attrs(function (_ref) {
20221 var _ref$weight = _ref.weight,
20222 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20223 _ref$color = _ref.color,
20224 color = _ref$color === void 0 ? ONYX : _ref$color,
20225 _ref$variant = _ref.variant,
20226 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20227 return {
20228 className: typographyClassnames("h2", {
20229 weight: weight,
20230 color: color,
20231 variant: variant
20232 })
20233 };
20234})(_templateObject$1A(), fontWeight(_templateObject2$13()), BASE_STYLE_HEADER, fontSize(_templateObject3$I()), largeAndUp(_templateObject4$x(), fontSize(_templateObject5$l())));
20235H2.displayName = "Typography.H2";
20236
20237function _templateObject5$m() {
20238 var data = _taggedTemplateLiteral(["tera"]);
20239
20240 _templateObject5$m = function _templateObject5() {
20241 return data;
20242 };
20243
20244 return data;
20245}
20246
20247function _templateObject4$y() {
20248 var data = _taggedTemplateLiteral(["", ""]);
20249
20250 _templateObject4$y = function _templateObject4() {
20251 return data;
20252 };
20253
20254 return data;
20255}
20256
20257function _templateObject3$J() {
20258 var data = _taggedTemplateLiteral(["giga"]);
20259
20260 _templateObject3$J = function _templateObject3() {
20261 return data;
20262 };
20263
20264 return data;
20265}
20266
20267function _templateObject2$14() {
20268 var data = _taggedTemplateLiteral(["regular"]);
20269
20270 _templateObject2$14 = function _templateObject2() {
20271 return data;
20272 };
20273
20274 return data;
20275}
20276
20277function _templateObject$1B() {
20278 var data = _taggedTemplateLiteral(["\n ", "\n ", "\n ", " ", ";\n"]);
20279
20280 _templateObject$1B = function _templateObject() {
20281 return data;
20282 };
20283
20284 return data;
20285}
20286var H3 = styled.h3.attrs(function (_ref) {
20287 var _ref$weight = _ref.weight,
20288 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20289 _ref$color = _ref.color,
20290 color = _ref$color === void 0 ? ONYX : _ref$color,
20291 _ref$variant = _ref.variant,
20292 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20293 return {
20294 className: typographyClassnames("h3", {
20295 weight: weight,
20296 color: color,
20297 variant: variant
20298 })
20299 };
20300})(_templateObject$1B(), fontWeight(_templateObject2$14()), BASE_STYLE_HEADER, fontSize(_templateObject3$J()), largeAndUp(_templateObject4$y(), fontSize(_templateObject5$m())));
20301H3.displayName = "Typography.H3";
20302
20303function _templateObject3$K() {
20304 var data = _taggedTemplateLiteral(["giga"]);
20305
20306 _templateObject3$K = function _templateObject3() {
20307 return data;
20308 };
20309
20310 return data;
20311}
20312
20313function _templateObject2$15() {
20314 var data = _taggedTemplateLiteral(["regular"]);
20315
20316 _templateObject2$15 = function _templateObject2() {
20317 return data;
20318 };
20319
20320 return data;
20321}
20322
20323function _templateObject$1C() {
20324 var data = _taggedTemplateLiteral(["\n ", "\n ", "\n ", ";\n"]);
20325
20326 _templateObject$1C = function _templateObject() {
20327 return data;
20328 };
20329
20330 return data;
20331}
20332var H4 = styled.h4.attrs(function (_ref) {
20333 var _ref$weight = _ref.weight,
20334 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20335 _ref$color = _ref.color,
20336 color = _ref$color === void 0 ? ONYX : _ref$color,
20337 _ref$variant = _ref.variant,
20338 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20339 return {
20340 className: typographyClassnames("h4", {
20341 weight: weight,
20342 color: color,
20343 variant: variant
20344 })
20345 };
20346})(_templateObject$1C(), fontWeight(_templateObject2$15()), BASE_STYLE_HEADER, fontSize(_templateObject3$K()));
20347H4.displayName = "Typography.H4";
20348
20349function _templateObject2$16() {
20350 var data = _taggedTemplateLiteral(["kilo"]);
20351
20352 _templateObject2$16 = function _templateObject2() {
20353 return data;
20354 };
20355
20356 return data;
20357}
20358
20359function _templateObject$1D() {
20360 var data = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"]);
20361
20362 _templateObject$1D = function _templateObject() {
20363 return data;
20364 };
20365
20366 return data;
20367}
20368var P1 = styled.p.attrs(function (_ref) {
20369 var _ref$weight = _ref.weight,
20370 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20371 _ref$color = _ref.color,
20372 color = _ref$color === void 0 ? ONYX : _ref$color,
20373 _ref$variant = _ref.variant,
20374 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20375 return {
20376 className: typographyClassnames("p1", {
20377 weight: weight,
20378 color: color,
20379 variant: variant
20380 })
20381 };
20382})(_templateObject$1D(), BASE_STYLE_BODY, fontSize(_templateObject2$16()));
20383P1.displayName = "Typography.P1";
20384
20385function _templateObject2$17() {
20386 var data = _taggedTemplateLiteral(["hecto"]);
20387
20388 _templateObject2$17 = function _templateObject2() {
20389 return data;
20390 };
20391
20392 return data;
20393}
20394
20395function _templateObject$1E() {
20396 var data = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"]);
20397
20398 _templateObject$1E = function _templateObject() {
20399 return data;
20400 };
20401
20402 return data;
20403}
20404var P2 = styled.p.attrs(function (_ref) {
20405 var _ref$weight = _ref.weight,
20406 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20407 _ref$color = _ref.color,
20408 color = _ref$color === void 0 ? ONYX : _ref$color,
20409 _ref$variant = _ref.variant,
20410 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20411 return {
20412 className: typographyClassnames("p2", {
20413 weight: weight,
20414 color: color,
20415 variant: variant
20416 })
20417 };
20418})(_templateObject$1E(), BASE_STYLE_BODY, fontSize(_templateObject2$17()));
20419P2.displayName = "Typography.P2";
20420
20421function _templateObject2$18() {
20422 var data = _taggedTemplateLiteral(["uno"]);
20423
20424 _templateObject2$18 = function _templateObject2() {
20425 return data;
20426 };
20427
20428 return data;
20429}
20430
20431function _templateObject$1F() {
20432 var data = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"]);
20433
20434 _templateObject$1F = function _templateObject() {
20435 return data;
20436 };
20437
20438 return data;
20439}
20440var P3 = styled.p.attrs(function (_ref) {
20441 var _ref$weight = _ref.weight,
20442 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20443 _ref$color = _ref.color,
20444 color = _ref$color === void 0 ? ONYX : _ref$color,
20445 _ref$variant = _ref.variant,
20446 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20447 return {
20448 className: typographyClassnames("p3", {
20449 weight: weight,
20450 color: color,
20451 variant: variant
20452 })
20453 };
20454})(_templateObject$1F(), BASE_STYLE_BODY, fontSize(_templateObject2$18()));
20455P3.displayName = "Typography.P3";
20456
20457function _templateObject2$19() {
20458 var data = _taggedTemplateLiteral(["mini"]);
20459
20460 _templateObject2$19 = function _templateObject2() {
20461 return data;
20462 };
20463
20464 return data;
20465}
20466
20467function _templateObject$1G() {
20468 var data = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"]);
20469
20470 _templateObject$1G = function _templateObject() {
20471 return data;
20472 };
20473
20474 return data;
20475}
20476var P4 = styled.p.attrs(function (_ref) {
20477 var _ref$weight = _ref.weight,
20478 weight = _ref$weight === void 0 ? REGULAR : _ref$weight,
20479 _ref$color = _ref.color,
20480 color = _ref$color === void 0 ? ONYX : _ref$color,
20481 _ref$variant = _ref.variant,
20482 variant = _ref$variant === void 0 ? BASE : _ref$variant;
20483 return {
20484 className: typographyClassnames("p4", {
20485 weight: weight,
20486 color: color,
20487 variant: variant
20488 })
20489 };
20490})(_templateObject$1G(), BASE_STYLE_BODY, fontSize(_templateObject2$19()));
20491P4.displayName = "Typography.P4";
20492
20493var Typography = P1;
20494Typography.H1 = H1;
20495Typography.H2 = H2;
20496Typography.H3 = H3;
20497Typography.H4 = H4;
20498Typography.P1 = P1;
20499Typography.P2 = P2;
20500Typography.P3 = P3;
20501Typography.P4 = P4;
20502
20503var composeHandlers = function composeHandlers() {
20504 for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
20505 fns[_key] = arguments[_key];
20506 }
20507
20508 return function () {
20509 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
20510 args[_key2] = arguments[_key2];
20511 }
20512
20513 fns.forEach(function (fn) {
20514 return fn && fn.apply(void 0, args);
20515 });
20516 };
20517};
20518
20519export { Button, Badge, RatingBadge, IconButton, ButtonWithLoading, DayTile, DayTileDate, DayTileItem, DayTileButton, DayTileMoreButton, DayTileOverflowButton, Card, Column, Container$2 as Container, LoaderRing, DrawerProvider, Gradient, GradientStyles, SpotLightWrapper, SpotLight$1 as SpotLight, Angle$1 as Angle, DEFAULT_DEG, DEFAULT_STOPS, OVERLAY_DEG_NOT_SPOTLIGHT, OVERLAY_SHADOW_DEG, OVERLAY_SHADOW_STOPS, OVERLAY_STOPS_NOT_SPOTLIGHT, SPOTLIGHT_DEG, SPOTLIGHT_STOPS, Header, ImageHeader as HeaderWithImage, Heading, ImageCard, Banner, FeedbackInline, ListContainer, ListRow, ListRowOverflow, Section, SectionItem, BottomSheet, NavBar, Row, SearchInput, SearchInput$1 as SearchComponent, SearchInputMobile, SearchSuggest, Spacing, Breadcrumb, Container$1 as ContainerBlock, ResponsiveImage, StaticImage, ThumbnailCircle, StyledImageSeo, TextBase as Text, AlertIcon, CAIcon, CallUsIcon, CartIcon, CheckingAccountIcon, CampsiteIcon, ChevronIcon, ClubIcon, Concession as ConcessionIcon, CrossIcon, CompressIcon, CreateNewIcon, DonationIcon, EmailIcon, ExchangeTicketsIcon, ExpandIcon, FacebookIcon, FAQIcon, FavoriteIcon, GeneralIcon, GetHelpIcon, GiftCardIcon, InstagramIcon, Hotel as HotelIcon, Meal as MealIcon, Membership as MembershipIcon, Merchandise as MerchandiseIcon, MinusIcon, MobileDeviceIcon, MobileTicketIcon, OverflowIcon, ParkingIcon, PauseIcon, PhoneSupportIcon, PlayIcon, PlusIcon, SellTicketsIcon, ShareIcon, StandardMailIcon, SpecialIcon, StarIcon, Transportation as TransportationIcon, TransferTicketsIcon, TwitterIcon, USIcon, UpgradeTicketsIcon, VenueIcon, VipIcon, VolumeHighIcon, VolumeLowIcon, VolumeMediumIcon, VolumeMuteIcon, WillCallIcon, YoutubeIcon, LinkedinIcon, AppleIcon, GooglePlayIcon, HeartIcon, ErrorIcon, SuccessIcon, InfoIcon, InfoDotIcon, BackIcon, ForwardIcon, UpIcon, DownIcon, CloseIcon, DeleteIcon, CalendarIcon, HomeIcon, SearchIcon, BookmarkIcon, ClearIcon, EditIcon, FeedbackIcon, FilterIcon, LocationIcon, TicketIcon, TicketsIcon, UserIcon, ListIcon, WarningIcon, RefreshIcon, VenueSearchIcon, FraudulentActivityIcon, PrintIcon, LaunchIcon, PlayCircularIcon, SpotifyIcon, WebsiteIcon, ItunesIcon, DeviceSizeProvider, Consumer$2 as DeviceSizeConsumer, DisplayFor, ScrollObserverProvider, ScrollObserverConsumer, Portal, colors, themes, constants, spacing, typography, zIndex, largeAndUp, mediumAndUp, xLargeAndUp, smallAndUp, PrimaryText, SecondaryText, SectionHeading, Link, LinkCta, BoldText, Toggle, DropDownGroup, DropDownOption, DropDownLabel, Select, Option, HybridSelect, HybridOption, RadioButton, RadioGroup, CheckBoxButton as CheckBox, CheckBoxGroup, Input$1 as Input, ButtonGroup, QtySelector, LinkList, ListItem as LinkListItem, Modal, Backdrop, Provider$3 as BackdropProvider, Provider$1 as ContainerProvider, index as AdaptiveModal, DefaultActionBar as AdaptiveActionBar, MODAL_SIZE_SMALL, MODAL_SIZE_MEDIUM, MODAL_SIZE_LARGE, MODAL_SIZE_XLARGE, Consumer$a as ModalConsumer, withModal, Backdrop$1 as AdaptiveBackdrop, PopOver, Tooltip, DeviceConnectionProvider, Consumer$b as DeviceConnectionConsumer, DisplayOn, SeatTooltip, SeatData, LazyLoaderProvider, Consumer$c as LazyLoaderConsumer, LazyLoader, Tabs, TabsProvider, Consumer$d as TabsConsumer, StatusBadge, StatusBadgeGroup, RangeSlider, Typography, fontSize, fontSizes, fontWeight, fontWeights, lineHeight, textTransforms, themeColor, themeColors, getThemeValue, keyCharCodes, composeHandlers };
20520//# sourceMappingURL=index.es.js.map