@royaloperahouse/chord 2.2.4 → 2.2.5-b-select-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/README.md +250 -40
- package/dist/chord.cjs.development.js +197 -526
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +196 -527
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/Select/Select.d.ts +1 -97
- package/dist/components/molecules/Select/Select.style.d.ts +4 -13
- package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
- package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/formTypes.d.ts +19 -28
- package/dist/types/types.d.ts +10 -0
- package/package.json +3 -2
- package/README.GIT +0 -277
package/dist/chord.esm.js
CHANGED
|
@@ -2,6 +2,7 @@ import React__default, { createElement, memo, useRef, useCallback, useEffect, us
|
|
|
2
2
|
import styled, { css, ThemeProvider, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { renderToString } from 'react-dom/server';
|
|
5
|
+
import ReactSelect, { components } from 'react-select';
|
|
5
6
|
import Modal from 'react-modal';
|
|
6
7
|
import ScrollLock from 'react-scrolllock';
|
|
7
8
|
|
|
@@ -2171,14 +2172,12 @@ var Icon = /*#__PURE__*/memo(function (_ref) {
|
|
|
2171
2172
|
});
|
|
2172
2173
|
Icon.displayName = 'Icon';
|
|
2173
2174
|
|
|
2174
|
-
var _excluded = ["children", "iconName", "iconDirection", "color"];
|
|
2175
|
-
|
|
2176
2175
|
var Button = function Button(_ref) {
|
|
2177
2176
|
var children = _ref.children,
|
|
2178
2177
|
iconName = _ref.iconName,
|
|
2179
2178
|
iconDirection = _ref.iconDirection,
|
|
2180
2179
|
color = _ref.color,
|
|
2181
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
2180
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
|
|
2182
2181
|
|
|
2183
2182
|
var truncatedString = children.substring(0, 30);
|
|
2184
2183
|
return /*#__PURE__*/React__default.createElement(ButtonWrapper, Object.assign({}, rest, {
|
|
@@ -2254,11 +2253,9 @@ var ButtonType;
|
|
|
2254
2253
|
ButtonType["Tertiary"] = "Tertiary";
|
|
2255
2254
|
})(ButtonType || (ButtonType = {}));
|
|
2256
2255
|
|
|
2257
|
-
var _excluded$1 = ["children"];
|
|
2258
|
-
|
|
2259
2256
|
var PrimaryButton = function PrimaryButton(_ref) {
|
|
2260
2257
|
var children = _ref.children,
|
|
2261
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2258
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children"]);
|
|
2262
2259
|
|
|
2263
2260
|
return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper, Object.assign({
|
|
2264
2261
|
color: Colors.White
|
|
@@ -2272,11 +2269,9 @@ var PrimaryButtonWrapper$1 = /*#__PURE__*/styled(Button)(_templateObject$5 || (_
|
|
|
2272
2269
|
return color ? "var(--base-color-" + color + ")" : theme.colors.primary;
|
|
2273
2270
|
});
|
|
2274
2271
|
|
|
2275
|
-
var _excluded$2 = ["children"];
|
|
2276
|
-
|
|
2277
2272
|
var SecondaryButton = function SecondaryButton(_ref) {
|
|
2278
2273
|
var children = _ref.children,
|
|
2279
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2274
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children"]);
|
|
2280
2275
|
|
|
2281
2276
|
return /*#__PURE__*/React__default.createElement(PrimaryButtonWrapper$1, Object.assign({
|
|
2282
2277
|
color: Colors.Primary
|
|
@@ -2290,12 +2285,10 @@ var TertiaryButtonWrapper = /*#__PURE__*/styled.a(_templateObject$6 || (_templat
|
|
|
2290
2285
|
});
|
|
2291
2286
|
var TertiaryIconWrapper = /*#__PURE__*/styled.span(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n min-width: 20px;\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n display: inline-block;\n"])));
|
|
2292
2287
|
|
|
2293
|
-
var _excluded$3 = ["children", "color"];
|
|
2294
|
-
|
|
2295
2288
|
var Button$1 = function Button(_ref) {
|
|
2296
2289
|
var children = _ref.children,
|
|
2297
2290
|
color = _ref.color,
|
|
2298
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
2291
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "color"]);
|
|
2299
2292
|
|
|
2300
2293
|
var truncatedString = children.substring(0, 100);
|
|
2301
2294
|
return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({}, rest, {
|
|
@@ -3257,8 +3250,6 @@ var TabLinkWrapper = /*#__PURE__*/styled.a(_templateObject$l || (_templateObject
|
|
|
3257
3250
|
});
|
|
3258
3251
|
var TabLinkIconWrapper = /*#__PURE__*/styled.span(_templateObject2$9 || (_templateObject2$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-right: var(--button-icon-margin);\n"])));
|
|
3259
3252
|
|
|
3260
|
-
var _excluded$4 = ["children", "iconName", "iconDirection", "color", "hoverColor"];
|
|
3261
|
-
|
|
3262
3253
|
var TabLink = function TabLink(_ref) {
|
|
3263
3254
|
var children = _ref.children,
|
|
3264
3255
|
iconName = _ref.iconName,
|
|
@@ -3267,7 +3258,7 @@ var TabLink = function TabLink(_ref) {
|
|
|
3267
3258
|
color = _ref$color === void 0 ? Colors.DarkGrey : _ref$color,
|
|
3268
3259
|
_ref$hoverColor = _ref.hoverColor,
|
|
3269
3260
|
hoverColor = _ref$hoverColor === void 0 ? Colors.Primary : _ref$hoverColor,
|
|
3270
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
3261
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color", "hoverColor"]);
|
|
3271
3262
|
|
|
3272
3263
|
return /*#__PURE__*/React__default.createElement(TabLinkWrapper, Object.assign({
|
|
3273
3264
|
color: color,
|
|
@@ -3317,7 +3308,6 @@ var TextAreaError = /*#__PURE__*/styled.div(_templateObject4$2 || (_templateObje
|
|
|
3317
3308
|
return darkMode ? 'var(--base-color-white)' : 'var(--base-color-errorstate)';
|
|
3318
3309
|
});
|
|
3319
3310
|
|
|
3320
|
-
var _excluded$5 = ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"];
|
|
3321
3311
|
/**
|
|
3322
3312
|
* An HTML textarea component for Chord.
|
|
3323
3313
|
*
|
|
@@ -3379,7 +3369,7 @@ var TextArea = function TextArea(_ref) {
|
|
|
3379
3369
|
maxLength = _ref$maxLength === void 0 ? 950 : _ref$maxLength,
|
|
3380
3370
|
_ref$tabIndex = _ref.tabIndex,
|
|
3381
3371
|
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
|
3382
|
-
textareaProps = _objectWithoutPropertiesLoose(_ref,
|
|
3372
|
+
textareaProps = _objectWithoutPropertiesLoose(_ref, ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"]);
|
|
3383
3373
|
|
|
3384
3374
|
return /*#__PURE__*/React__default.createElement(GridItem, {
|
|
3385
3375
|
columnStartDesktop: columnStartDesktop,
|
|
@@ -3439,7 +3429,6 @@ var ErrorLabel = /*#__PURE__*/styled.div(_templateObject6 || (_templateObject6 =
|
|
|
3439
3429
|
return "var(--base-color-errorstate)";
|
|
3440
3430
|
});
|
|
3441
3431
|
|
|
3442
|
-
var _excluded$6 = ["label", "type", "error", "darkMode", "width"];
|
|
3443
3432
|
/**
|
|
3444
3433
|
* A text field component, that wraps around the native `<input />` element
|
|
3445
3434
|
* and adds some extra states and information around it (i.e. a text and an error labels,
|
|
@@ -3487,7 +3476,7 @@ var TextField = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3487
3476
|
_ref$darkMode = _ref.darkMode,
|
|
3488
3477
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
3489
3478
|
width = _ref.width,
|
|
3490
|
-
inputProps = _objectWithoutPropertiesLoose(_ref,
|
|
3479
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, ["label", "type", "error", "darkMode", "width"]);
|
|
3491
3480
|
|
|
3492
3481
|
var _useState = useState(false),
|
|
3493
3482
|
showPassword = _useState[0],
|
|
@@ -3545,14 +3534,12 @@ var TextLinkWrapper = /*#__PURE__*/styled.a(_templateObject$o || (_templateObjec
|
|
|
3545
3534
|
});
|
|
3546
3535
|
var TextLinkIconWrapper = /*#__PURE__*/styled.span(_templateObject2$c || (_templateObject2$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n"])));
|
|
3547
3536
|
|
|
3548
|
-
var _excluded$7 = ["children", "iconName", "iconDirection", "color"];
|
|
3549
|
-
|
|
3550
3537
|
var TextLink = function TextLink(_ref) {
|
|
3551
3538
|
var children = _ref.children,
|
|
3552
3539
|
iconName = _ref.iconName,
|
|
3553
3540
|
iconDirection = _ref.iconDirection,
|
|
3554
3541
|
color = _ref.color,
|
|
3555
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
3542
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "iconName", "iconDirection", "color"]);
|
|
3556
3543
|
|
|
3557
3544
|
var truncatedString = children.substring(0, 30);
|
|
3558
3545
|
return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
|
|
@@ -5160,8 +5147,6 @@ var ContactNewsletter = function ContactNewsletter(_ref) {
|
|
|
5160
5147
|
}, contact.title))));
|
|
5161
5148
|
};
|
|
5162
5149
|
|
|
5163
|
-
var _excluded$8 = ["dataRoh"];
|
|
5164
|
-
|
|
5165
5150
|
var Footer = function Footer(_ref) {
|
|
5166
5151
|
var data = _ref.data;
|
|
5167
5152
|
var policyLinks = data.policyLinks;
|
|
@@ -5171,7 +5156,7 @@ var Footer = function Footer(_ref) {
|
|
|
5171
5156
|
|
|
5172
5157
|
var _data$artsLogo = data.artsLogo,
|
|
5173
5158
|
artsDataRoh = _data$artsLogo.dataRoh,
|
|
5174
|
-
artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo,
|
|
5159
|
+
artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, ["dataRoh"]);
|
|
5175
5160
|
|
|
5176
5161
|
var additionalInfo = data.additionalInfo;
|
|
5177
5162
|
return /*#__PURE__*/React__default.createElement(FooterSection, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
@@ -5226,8 +5211,6 @@ var ArrowsContainer = /*#__PURE__*/styled.div(_templateObject5$9 || (_templateOb
|
|
|
5226
5211
|
});
|
|
5227
5212
|
var ArrowWrapper = /*#__PURE__*/styled.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 24px;\n height: 24px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: flex-center;\n\n :hover {\n && svg path {\n fill: var(--base-color-primary);\n }\n }\n"])));
|
|
5228
5213
|
|
|
5229
|
-
var _excluded$9 = ["id", "text"];
|
|
5230
|
-
|
|
5231
5214
|
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
5232
5215
|
var tabs = _ref.tabs,
|
|
5233
5216
|
onTabClick = _ref.onTabClick,
|
|
@@ -5442,7 +5425,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
5442
5425
|
}, tabs.map(function (_ref4) {
|
|
5443
5426
|
var id = _ref4.id,
|
|
5444
5427
|
text = _ref4.text,
|
|
5445
|
-
rest = _objectWithoutPropertiesLoose(_ref4,
|
|
5428
|
+
rest = _objectWithoutPropertiesLoose(_ref4, ["id", "text"]);
|
|
5446
5429
|
|
|
5447
5430
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
5448
5431
|
key: id
|
|
@@ -5498,9 +5481,6 @@ var PrimaryButtonReverse = /*#__PURE__*/styled(PrimaryButton)(_templateObject8$3
|
|
|
5498
5481
|
var MessageWrapper = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
5499
5482
|
var MessageWrapperMobile = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
|
|
5500
5483
|
|
|
5501
|
-
var _excluded$a = ["text"],
|
|
5502
|
-
_excluded2 = ["text"];
|
|
5503
|
-
|
|
5504
5484
|
var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
5505
5485
|
var title = _ref.title,
|
|
5506
5486
|
links = _ref.links,
|
|
@@ -5510,11 +5490,11 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
|
5510
5490
|
|
|
5511
5491
|
var _ref2 = (links == null ? void 0 : links[0]) || {},
|
|
5512
5492
|
primaryButtonText = _ref2.text,
|
|
5513
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2,
|
|
5493
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
5514
5494
|
|
|
5515
5495
|
var _ref3 = (links == null ? void 0 : links[1]) || {},
|
|
5516
5496
|
secondaryButtonText = _ref3.text,
|
|
5517
|
-
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3,
|
|
5497
|
+
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, ["text"]);
|
|
5518
5498
|
|
|
5519
5499
|
return /*#__PURE__*/React__default.createElement(TitleCTAGridWrapper, {
|
|
5520
5500
|
sticky: sticky
|
|
@@ -5995,9 +5975,6 @@ var truncateReactNodeString = function truncateReactNodeString(node, resultLengt
|
|
|
5995
5975
|
return truncateHtmlString(nodeString, resultLength, addDots);
|
|
5996
5976
|
};
|
|
5997
5977
|
|
|
5998
|
-
var _excluded$b = ["text"],
|
|
5999
|
-
_excluded2$1 = ["text"];
|
|
6000
|
-
|
|
6001
5978
|
var _buttonTypeToButton;
|
|
6002
5979
|
var LENGTH_LARGE_TEXT$1 = 28;
|
|
6003
5980
|
var LENGTH_SMALL_TEXT$2 = 19;
|
|
@@ -6048,7 +6025,7 @@ var Card = function Card(_ref) {
|
|
|
6048
6025
|
var _ref2 = firstButton || {},
|
|
6049
6026
|
_ref2$text = _ref2.text,
|
|
6050
6027
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
6051
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2,
|
|
6028
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
6052
6029
|
|
|
6053
6030
|
var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$2) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
|
|
6054
6031
|
var secondButton = links == null ? void 0 : links[1];
|
|
@@ -6056,7 +6033,7 @@ var Card = function Card(_ref) {
|
|
|
6056
6033
|
var _ref3 = secondButton || {},
|
|
6057
6034
|
_ref3$text = _ref3.text,
|
|
6058
6035
|
secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
|
|
6059
|
-
restSecondButton = _objectWithoutPropertiesLoose(_ref3,
|
|
6036
|
+
restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
|
|
6060
6037
|
|
|
6061
6038
|
var tertiaryButtonTextTruncate = size === 'small' ? truncate(secondButtonText, LENGTH_SMALL_TEXT$2) : truncate(secondButtonText, LENGTH_LARGE_TEXT$1);
|
|
6062
6039
|
|
|
@@ -6560,8 +6537,6 @@ var LogoWrapper$2 = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObje
|
|
|
6560
6537
|
var ButtonWrapper$1 = /*#__PURE__*/styled.div(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n justify-self: end;\n align-self: end;\n\n @media ", " {\n & {\n justify-self: center;\n align-self: center;\n width: 100%;\n margin-top: 16px;\n }\n }\n"])), devices.mobile);
|
|
6561
6538
|
var PageHeadingText = /*#__PURE__*/styled.div(_templateObject8$6 || (_templateObject8$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-family: var(--font-family-altHeader);\n text-transform: var(--text-transform-altHeader);\n word-break: var(--word-break-altHeader);\n"])));
|
|
6562
6539
|
|
|
6563
|
-
var _excluded$c = ["text"];
|
|
6564
|
-
|
|
6565
6540
|
var PageHeading = function PageHeading(_ref) {
|
|
6566
6541
|
var title = _ref.title,
|
|
6567
6542
|
text = _ref.text,
|
|
@@ -6572,7 +6547,7 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
6572
6547
|
|
|
6573
6548
|
var _ref2 = link || {},
|
|
6574
6549
|
linkText = _ref2.text,
|
|
6575
|
-
restLink = _objectWithoutPropertiesLoose(_ref2,
|
|
6550
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
6576
6551
|
|
|
6577
6552
|
var truncatedText = text == null ? void 0 : text.substring(0, 250);
|
|
6578
6553
|
var truncatedTitle = title && title.substring(0, 40);
|
|
@@ -6600,11 +6575,9 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
6600
6575
|
}, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, restLink), linkText)) : null));
|
|
6601
6576
|
};
|
|
6602
6577
|
|
|
6603
|
-
var _excluded$d = ["link"];
|
|
6604
|
-
|
|
6605
6578
|
var PageHeadingCore = function PageHeadingCore(_ref) {
|
|
6606
6579
|
var link = _ref.link,
|
|
6607
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
6580
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
|
|
6608
6581
|
|
|
6609
6582
|
var coreLink = link && _extends({}, link, {
|
|
6610
6583
|
color: Colors.White,
|
|
@@ -6618,11 +6591,9 @@ var PageHeadingCore = function PageHeadingCore(_ref) {
|
|
|
6618
6591
|
})));
|
|
6619
6592
|
};
|
|
6620
6593
|
|
|
6621
|
-
var _excluded$e = ["link"];
|
|
6622
|
-
|
|
6623
6594
|
var PageHeadingCinema = function PageHeadingCinema(_ref) {
|
|
6624
6595
|
var link = _ref.link,
|
|
6625
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
6596
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
|
|
6626
6597
|
|
|
6627
6598
|
var cinemaLink = link && _extends({}, link, {
|
|
6628
6599
|
color: Colors.Black,
|
|
@@ -6646,8 +6617,6 @@ var TextWrapper$1 = /*#__PURE__*/styled.div(_templateObject6$d || (_templateObje
|
|
|
6646
6617
|
var ButtonWrapper$2 = /*#__PURE__*/styled.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0px;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
|
|
6647
6618
|
var ScrollDownWrapper = /*#__PURE__*/styled.div(_templateObject8$7 || (_templateObject8$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 20px;\n left: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @keyframes UpDown {\n 0%,\n 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(8px);\n }\n }\n\n a {\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n border: none;\n padding: 0;\n :hover {\n border: none;\n\n > span {\n animation: UpDown 1500ms linear infinite;\n }\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
6648
6619
|
|
|
6649
|
-
var _excluded$f = ["text"];
|
|
6650
|
-
|
|
6651
6620
|
var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
6652
6621
|
var children = _ref.children,
|
|
6653
6622
|
text = _ref.text,
|
|
@@ -6664,7 +6633,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
6664
6633
|
|
|
6665
6634
|
var _ref2 = link || {},
|
|
6666
6635
|
linkText = _ref2.text,
|
|
6667
|
-
restLink = _objectWithoutPropertiesLoose(_ref2,
|
|
6636
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
6668
6637
|
|
|
6669
6638
|
return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
|
|
6670
6639
|
bgUrlDesktop: bgUrlDesktop,
|
|
@@ -6757,11 +6726,9 @@ var PageHeadingPanel = function PageHeadingPanel(_ref) {
|
|
|
6757
6726
|
var _templateObject$W;
|
|
6758
6727
|
var StreamWrapper = /*#__PURE__*/styled.div(_templateObject$W || (_templateObject$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h2::selection,\n div::selection {\n color: #1866dc;\n background-color: #fff;\n }\n"])));
|
|
6759
6728
|
|
|
6760
|
-
var _excluded$g = ["link"];
|
|
6761
|
-
|
|
6762
6729
|
var PageHeadingStream = function PageHeadingStream(_ref) {
|
|
6763
6730
|
var link = _ref.link,
|
|
6764
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
6731
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["link"]);
|
|
6765
6732
|
|
|
6766
6733
|
var streamLink = link && _extends({}, link, {
|
|
6767
6734
|
color: Colors.Black,
|
|
@@ -6955,8 +6922,6 @@ var useMobile = function useMobile() {
|
|
|
6955
6922
|
return mobile;
|
|
6956
6923
|
};
|
|
6957
6924
|
|
|
6958
|
-
var _excluded$h = ["text"];
|
|
6959
|
-
|
|
6960
6925
|
var useResponsiveVideo = function useResponsiveVideo(video, poster) {
|
|
6961
6926
|
var mobileVideo = video.mobile || video.desktop;
|
|
6962
6927
|
var desktopVideo = video.desktop || video.mobile;
|
|
@@ -7071,7 +7036,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
7071
7036
|
|
|
7072
7037
|
var _ref5 = link || {},
|
|
7073
7038
|
linkText = _ref5.text,
|
|
7074
|
-
restLink = _objectWithoutPropertiesLoose(_ref5,
|
|
7039
|
+
restLink = _objectWithoutPropertiesLoose(_ref5, ["text"]);
|
|
7075
7040
|
|
|
7076
7041
|
var titleSize = title && title.length > 20 ? 4 : 3;
|
|
7077
7042
|
var video = {
|
|
@@ -7405,10 +7370,6 @@ var PromoWithTagsContainer = /*#__PURE__*/styled.div(_templateObject19 || (_temp
|
|
|
7405
7370
|
var TimerWrapper$1 = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
|
|
7406
7371
|
var EndDateText = /*#__PURE__*/styled.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid var(--base-color-black);\n padding-bottom: 32px;\n margin-bottom: 32px;\n\n @media ", " {\n padding-bottom: 20px;\n margin-bottom: 20px;\n }\n"])), devices.mobile);
|
|
7407
7372
|
|
|
7408
|
-
var _excluded$i = ["text"],
|
|
7409
|
-
_excluded2$2 = ["text"],
|
|
7410
|
-
_excluded3 = ["text"];
|
|
7411
|
-
|
|
7412
7373
|
var _buttonTypeToButton$1;
|
|
7413
7374
|
var LENGTH_TEXT$1 = 28;
|
|
7414
7375
|
var LENGTH_TEXT_PARAGRAPH = 130;
|
|
@@ -7479,7 +7440,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
7479
7440
|
var _ref2 = firstButton || {},
|
|
7480
7441
|
_ref2$text = _ref2.text,
|
|
7481
7442
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
7482
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2,
|
|
7443
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
7483
7444
|
|
|
7484
7445
|
var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
|
|
7485
7446
|
var secondButton = links == null ? void 0 : links[1];
|
|
@@ -7487,7 +7448,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
7487
7448
|
var _ref3 = secondButton || {},
|
|
7488
7449
|
_ref3$text = _ref3.text,
|
|
7489
7450
|
secondButtonText = _ref3$text === void 0 ? '' : _ref3$text,
|
|
7490
|
-
restSecondButton = _objectWithoutPropertiesLoose(_ref3,
|
|
7451
|
+
restSecondButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
|
|
7491
7452
|
|
|
7492
7453
|
var secondButtonTextTruncate = truncate(secondButtonText, LENGTH_TEXT$1);
|
|
7493
7454
|
var textTruncate = asCard ? truncate(text || '', LENGTH_TEXT_PARAGRAPH) : text;
|
|
@@ -7496,7 +7457,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
7496
7457
|
var textLinkItems = textLinks ? textLinks.map(function (link, index) {
|
|
7497
7458
|
var _link$text = link.text,
|
|
7498
7459
|
textLinkText = _link$text === void 0 ? '' : _link$text,
|
|
7499
|
-
restTextLink = _objectWithoutPropertiesLoose(link,
|
|
7460
|
+
restTextLink = _objectWithoutPropertiesLoose(link, ["text"]);
|
|
7500
7461
|
|
|
7501
7462
|
return /*#__PURE__*/React__default.createElement(TextLinkWrapper$2, {
|
|
7502
7463
|
key: index
|
|
@@ -7654,8 +7615,6 @@ var ButtonsContainer$3 = /*#__PURE__*/styled.div(_templateObject7$d || (_templat
|
|
|
7654
7615
|
return '';
|
|
7655
7616
|
});
|
|
7656
7617
|
|
|
7657
|
-
var _excluded$j = ["text"],
|
|
7658
|
-
_excluded2$3 = ["text"];
|
|
7659
7618
|
var LENGTH_TEXT$3 = 28;
|
|
7660
7619
|
|
|
7661
7620
|
var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
@@ -7681,7 +7640,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
7681
7640
|
var _ref2 = primaryButton || {},
|
|
7682
7641
|
_ref2$text = _ref2.text,
|
|
7683
7642
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
7684
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2,
|
|
7643
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
7685
7644
|
|
|
7686
7645
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
|
|
7687
7646
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
@@ -7689,7 +7648,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
7689
7648
|
var _ref3 = tertiaryButton || {},
|
|
7690
7649
|
_ref3$text = _ref3.text,
|
|
7691
7650
|
tertiaryButtonText = _ref3$text === void 0 ? '' : _ref3$text,
|
|
7692
|
-
restTertiaryButton = _objectWithoutPropertiesLoose(_ref3,
|
|
7651
|
+
restTertiaryButton = _objectWithoutPropertiesLoose(_ref3, ["text"]);
|
|
7693
7652
|
|
|
7694
7653
|
var tertiaryButtonTextTruncate = truncate(tertiaryButtonText, LENGTH_TEXT$3);
|
|
7695
7654
|
return /*#__PURE__*/React__default.createElement(PromoWithTitleGrid, {
|
|
@@ -7770,8 +7729,73 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
7770
7729
|
})));
|
|
7771
7730
|
};
|
|
7772
7731
|
|
|
7773
|
-
var _templateObject$12;
|
|
7774
|
-
var
|
|
7732
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$D;
|
|
7733
|
+
var StatusBannerWrapper = /*#__PURE__*/styled.div(_templateObject$12 || (_templateObject$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 26px 150px;\n display: flex;\n justify-content: space-between;\n background-color: var(--base-color-lightgrey);\n transition: transform 0.3s ease;\n transform-origin: top;\n\n @media ", " {\n padding: 20px 20px;\n }\n\n @media ", " {\n padding: 20px 50px;\n }\n\n &.closing {\n transform: scaleY(0);\n }\n"])), devices.mobile, devices.tablet);
|
|
7734
|
+
var ContentContainer$3 = /*#__PURE__*/styled.div(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.3s ease-in-out;\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n"])));
|
|
7735
|
+
var SvgContainer$3 = /*#__PURE__*/styled.div(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n align-items: end;\n\n svg {\n width: var(--navigation-large-gap);\n height: var(--navigation-large-gap);\n padding-left: 50px;\n }\n\n cursor: pointer;\n\n @media ", " {\n padding-left: 20px;\n }\n"])), devices.mobile);
|
|
7736
|
+
|
|
7737
|
+
var StatusBanner = function StatusBanner(_ref) {
|
|
7738
|
+
var statusText = _ref.statusText,
|
|
7739
|
+
_ref$visibility = _ref.visibility,
|
|
7740
|
+
visibility = _ref$visibility === void 0 ? true : _ref$visibility;
|
|
7741
|
+
|
|
7742
|
+
var _useState = useState(visibility),
|
|
7743
|
+
isVisible = _useState[0],
|
|
7744
|
+
setIsVisible = _useState[1];
|
|
7745
|
+
|
|
7746
|
+
var _useState2 = useState(false),
|
|
7747
|
+
isClosing = _useState2[0],
|
|
7748
|
+
setIsClosing = _useState2[1];
|
|
7749
|
+
|
|
7750
|
+
var content = useRef(null);
|
|
7751
|
+
|
|
7752
|
+
var handleCloseBanner = function handleCloseBanner() {
|
|
7753
|
+
setIsClosing(true);
|
|
7754
|
+
|
|
7755
|
+
var transitionEnd = function transitionEnd() {
|
|
7756
|
+
setIsVisible(!visibility);
|
|
7757
|
+
|
|
7758
|
+
if (content.current) {
|
|
7759
|
+
content.current.removeEventListener('transitionend', transitionEnd);
|
|
7760
|
+
}
|
|
7761
|
+
};
|
|
7762
|
+
|
|
7763
|
+
if (content.current) {
|
|
7764
|
+
content.current.addEventListener('transitionend', transitionEnd);
|
|
7765
|
+
}
|
|
7766
|
+
|
|
7767
|
+
setTimeout(function () {
|
|
7768
|
+
setIsVisible(!visibility);
|
|
7769
|
+
}, 300);
|
|
7770
|
+
};
|
|
7771
|
+
|
|
7772
|
+
var onKeyboardCloseHandler = function onKeyboardCloseHandler(e) {
|
|
7773
|
+
if (e.key === 'Enter') {
|
|
7774
|
+
handleCloseBanner();
|
|
7775
|
+
}
|
|
7776
|
+
};
|
|
7777
|
+
|
|
7778
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isVisible && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StatusBannerWrapper, {
|
|
7779
|
+
role: "alert",
|
|
7780
|
+
className: isClosing ? 'closing' : '',
|
|
7781
|
+
"data-testid": "statusContainer"
|
|
7782
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer$3, null, /*#__PURE__*/React__default.createElement("div", {
|
|
7783
|
+
dangerouslySetInnerHTML: {
|
|
7784
|
+
__html: statusText
|
|
7785
|
+
}
|
|
7786
|
+
})), /*#__PURE__*/React__default.createElement(SvgContainer$3, {
|
|
7787
|
+
onClick: handleCloseBanner,
|
|
7788
|
+
tabIndex: 0,
|
|
7789
|
+
role: "button",
|
|
7790
|
+
"aria-label": "Close",
|
|
7791
|
+
onKeyDown: onKeyboardCloseHandler
|
|
7792
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7793
|
+
iconName: "Close"
|
|
7794
|
+
})))));
|
|
7795
|
+
};
|
|
7796
|
+
|
|
7797
|
+
var _templateObject$13;
|
|
7798
|
+
var SectionTitleWrapper = /*#__PURE__*/styled.div(_templateObject$13 || (_templateObject$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 30px 0;\n\n & > div {\n row-gap: 0;\n }\n\n & h1,\n & h2 {\n margin: 16px 0;\n white-space: pre-wrap;\n }\n\n @media ", " {\n & h1,\n & h2 {\n margin: 12px 0;\n }\n }\n\n & div {\n font-size: var(--font-size-title-description);\n line-height: var(--line-height-title-description);\n margin-block-start: 0;\n }\n"])), devices.mobile);
|
|
7775
7799
|
|
|
7776
7800
|
var SectionTitle = function SectionTitle(_ref) {
|
|
7777
7801
|
var title = _ref.title,
|
|
@@ -7797,430 +7821,76 @@ var SectionTitle = function SectionTitle(_ref) {
|
|
|
7797
7821
|
}, description))));
|
|
7798
7822
|
};
|
|
7799
7823
|
|
|
7800
|
-
var _templateObject$
|
|
7801
|
-
var
|
|
7802
|
-
|
|
7803
|
-
|
|
7824
|
+
var _templateObject$14, _templateObject2$M, _templateObject3$E, _templateObject4$v;
|
|
7825
|
+
var Container$1 = /*#__PURE__*/styled.div(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
7826
|
+
var SelectWrapper = /*#__PURE__*/styled.div(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: auto;\n max-width: ", ";\n\n .chord-select__control {\n min-height: 48px;\n border-radius: 0;\n border: ", ";\n &:hover {\n border-color: ", ";\n }\n }\n .chord-select__control--is-focused {\n border-color: var(--base-color-darkgrey);\n box-shadow: ", ";\n }\n .chord-select__indicator-separator {\n display: none;\n }\n .chord-select__control--menu-is-open {\n .chord-select__indicator {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n .chord-select__indicator {\n font-size: 25px;\n padding: 0;\n margin-right: 12px;\n color: var(--base-color-black);\n svg {\n height: 1em;\n width: 1em;\n color: inherit;\n path {\n fill: currentColor;\n color: inherit;\n }\n }\n }\n .chord-select__single-value,\n .chord-select__placeholder {\n margin-left: 0;\n margin-right: 0;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n }\n .chord-select__placeholder {\n color: var(--base-color-darkgrey);\n }\n .chord-select__single-value {\n color: var(--base-color-black);\n }\n .chord-select__value-container {\n padding-left: 20px;\n padding-right: 15px;\n padding-top: 1px;\n padding-bottom: 0px;\n }\n .chord-select--is-disabled {\n .chord-select__control {\n border: 1px solid var(--base-color-lightgrey);\n background: var(--base-color-lightgrey);\n }\n .chord-select__indicator,\n .chord-select__single-value {\n color: var(--base-color-darkgrey);\n }\n }\n .chord-select__menu {\n margin-top: -1px;\n box-shadow: none;\n border-radius: 0;\n border: 1px solid var(--base-color-darkgrey);\n background: var(--base-color-lightgrey);\n }\n .chord-select__menu-list {\n padding-top: 0;\n padding-bottom: 0;\n }\n .chord-select__option {\n padding: 10px 20px;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-black);\n &:active,\n &.chord-select__option--is-focused {\n background: var(--base-color-midgrey);\n }\n }\n .chord-select__option--is-selected {\n color: var(--base-color-black);\n background: none;\n }\n .chord-select__input-container {\n margin: 0;\n padding-top: 0;\n padding-bottom: 0;\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-black);\n }\n .chord-select__menu-notice {\n font-family: var(--font-family-altHeader);\n font-feature-settings: var(--font-feature-settings-altHeader);\n font-size: var(--font-size-altHeader-6);\n font-weight: var(--font-weight-altHeader-6);\n letter-spacing: var(--letter-spacing-altHeader-6);\n line-height: var(--line-height-altHeader-6);\n text-transform: var(--text-transform-altHeader);\n color: var(--base-color-darkgrey);\n padding: 10px 20px;\n text-align: left;\n }\n .chord-select__group-heading {\n padding: 0 20px;\n text-transform: none;\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-2);\n font-weight: var(--font-weight-body-2);\n color: var(--base-color-darkgrey);\n &:not(:empty) {\n margin-bottom: 5px;\n }\n }\n .chord-select__group {\n padding-top: 0;\n padding-bottom: 10px;\n &:last-child {\n padding-bottom: 0;\n }\n }\n"])), function (_ref) {
|
|
7827
|
+
var width = _ref.width;
|
|
7828
|
+
if (!width) return 'none';
|
|
7829
|
+
return width + 'px';
|
|
7804
7830
|
}, function (_ref2) {
|
|
7805
|
-
var
|
|
7806
|
-
return
|
|
7831
|
+
var error = _ref2.error;
|
|
7832
|
+
if (error !== undefined) return "1px solid var(--base-color-errorstate)";
|
|
7833
|
+
return "1px solid var(--base-color-darkgrey)";
|
|
7807
7834
|
}, function (_ref3) {
|
|
7808
|
-
var
|
|
7809
|
-
return
|
|
7835
|
+
var error = _ref3.error;
|
|
7836
|
+
if (error !== undefined) return "var(--base-color-errorstate)";
|
|
7837
|
+
return "var(--base-color-darkgrey)";
|
|
7838
|
+
}, function (_ref4) {
|
|
7839
|
+
var darkMode = _ref4.darkMode;
|
|
7840
|
+
if (darkMode) return "0 0 0 4px var(--base-color-lemonchiffon)";
|
|
7841
|
+
return "0 0 0 3px var(--base-color-lapislazuli)";
|
|
7810
7842
|
});
|
|
7811
|
-
var
|
|
7812
|
-
var
|
|
7813
|
-
return
|
|
7843
|
+
var TextLabel$1 = /*#__PURE__*/styled.p(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 0 20px;\n color: ", ";\n"])), function (_ref5) {
|
|
7844
|
+
var darkMode = _ref5.darkMode;
|
|
7845
|
+
if (darkMode) return "var(--base-color-white)";
|
|
7846
|
+
return "var(--base-color-black)";
|
|
7847
|
+
});
|
|
7848
|
+
var ErrorLabel$1 = /*#__PURE__*/styled.p(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 20px 0 0;\n color: ", ";\n"])), function (_ref6) {
|
|
7849
|
+
var darkMode = _ref6.darkMode;
|
|
7850
|
+
if (darkMode) return "var(--base-color-white)";
|
|
7851
|
+
return "var(--base-color-errorstate)";
|
|
7814
7852
|
});
|
|
7815
|
-
var noMarginAndPaddingStyles = /*#__PURE__*/css(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n"])));
|
|
7816
|
-
var listItemStyles = /*#__PURE__*/css(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n list-style: none;\n user-select: none;\n"])));
|
|
7817
|
-
var ArrowIcon = /*#__PURE__*/styled(Icon).attrs(function (_ref5) {
|
|
7818
|
-
var theme = _ref5.theme;
|
|
7819
|
-
return {
|
|
7820
|
-
iconName: 'DropdownArrow',
|
|
7821
|
-
color: theme.colors.black,
|
|
7822
|
-
title: 'Select Arrow'
|
|
7823
|
-
};
|
|
7824
|
-
})(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n pointer-events: none;\n\n max-width: 24px;\n max-height: 24px;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"])));
|
|
7825
|
-
var Wrapper$5 = /*#__PURE__*/styled.div(_templateObject6$i || (_templateObject6$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n height: initial;\n\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])), noMarginAndPaddingStyles);
|
|
7826
|
-
var SelectWrapper = /*#__PURE__*/styled.div(_templateObject7$e || (_templateObject7$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n height: inherit;\n"])), noMarginAndPaddingStyles);
|
|
7827
|
-
var Options = /*#__PURE__*/styled.div(_templateObject8$a || (_templateObject8$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n z-index: 1;\n\n ", "\n ", "\n"])), noMarginAndPaddingStyles, borderStyles);
|
|
7828
|
-
var Option = /*#__PURE__*/styled.li(_templateObject9$5 || (_templateObject9$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n\n ", "\n"])), noMarginAndPaddingStyles, listItemStyles, function (_ref6) {
|
|
7829
|
-
var theme = _ref6.theme,
|
|
7830
|
-
hover = _ref6.hover;
|
|
7831
|
-
var _theme$colors = theme.colors,
|
|
7832
|
-
lightgrey = _theme$colors.lightgrey,
|
|
7833
|
-
midgrey = _theme$colors.midgrey;
|
|
7834
|
-
if (hover) return "background-color: " + midgrey;
|
|
7835
|
-
return "\n background-color: " + lightgrey + ";\n &:hover { background-color: " + midgrey + " }\n ";
|
|
7836
|
-
});
|
|
7837
|
-
|
|
7838
|
-
var selectStyles = function selectStyles(width, height) {
|
|
7839
|
-
return css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n z-index: ", ";\n\n width: ", ";\n height: ", ";\n\n * {\n width: ", ";\n }\n\n ", " {\n position: absolute;\n top: ", ";\n }\n ", " {\n height: ", ";\n }\n p {\n height: ", ";\n padding-inline: 20px;\n\n display: flex;\n align-items: center;\n }\n"])), zIndexes[3], width, height, width, Options, height, Option, height, height);
|
|
7840
|
-
};
|
|
7841
|
-
|
|
7842
|
-
var SelectList = /*#__PURE__*/styled.ul(_templateObject11$3 || (_templateObject11$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n ", "\n ", "\n ", "\n\n & ", " {\n position: absolute;\n\n top: 13px;\n right: 16px;\n }\n"])), function (_ref7) {
|
|
7843
|
-
var width = _ref7.width,
|
|
7844
|
-
height = _ref7.height;
|
|
7845
|
-
return selectStyles(width === 'default' ? "354px" : width + "px", height === 'default' ? "48px" : height + "px");
|
|
7846
|
-
}, stateStyles, noMarginAndPaddingStyles, listItemStyles, borderStyles, ArrowIcon);
|
|
7847
|
-
|
|
7848
|
-
var useKeyboardAccessibility = function useKeyboardAccessibility(_ref) {
|
|
7849
|
-
var selectRef = _ref.selectRef,
|
|
7850
|
-
optionsRef = _ref.optionsRef,
|
|
7851
|
-
shouldHighlightOption = _ref.shouldHighlightOption;
|
|
7852
|
-
|
|
7853
|
-
var _useState = useState(-1),
|
|
7854
|
-
itemToHighlight = _useState[0],
|
|
7855
|
-
setItemToHighlight = _useState[1];
|
|
7856
|
-
|
|
7857
|
-
var clampIndex = function clampIndex(index) {
|
|
7858
|
-
if (index < -1) return -1;
|
|
7859
|
-
if (index > optionsRef.current.length - 1) return optionsRef.current.length - 1;
|
|
7860
|
-
return index;
|
|
7861
|
-
};
|
|
7862
|
-
|
|
7863
|
-
var highlightNextOption = function highlightNextOption() {
|
|
7864
|
-
return setItemToHighlight(function (prev) {
|
|
7865
|
-
return clampIndex(prev + 1);
|
|
7866
|
-
});
|
|
7867
|
-
};
|
|
7868
|
-
|
|
7869
|
-
var highlightPrevOption = function highlightPrevOption() {
|
|
7870
|
-
return setItemToHighlight(function (prev) {
|
|
7871
|
-
return clampIndex(prev - 1);
|
|
7872
|
-
});
|
|
7873
|
-
};
|
|
7874
|
-
|
|
7875
|
-
var reset = function reset() {
|
|
7876
|
-
var _selectRef$current;
|
|
7877
|
-
|
|
7878
|
-
(_selectRef$current = selectRef.current) == null ? void 0 : _selectRef$current.blur();
|
|
7879
|
-
setItemToHighlight(-1);
|
|
7880
|
-
};
|
|
7881
|
-
|
|
7882
|
-
var handleKeyUp = function handleKeyUp(event) {
|
|
7883
|
-
if (!shouldHighlightOption) return;
|
|
7884
|
-
var shouldHighlightOptionNext = event.key === 'ArrowDown';
|
|
7885
|
-
var shouldHighlightOptionPrev = event.key === 'ArrowUp';
|
|
7886
|
-
if (shouldHighlightOptionNext) return highlightNextOption();
|
|
7887
|
-
if (shouldHighlightOptionPrev) return highlightPrevOption();
|
|
7888
|
-
};
|
|
7889
|
-
|
|
7890
|
-
var preventScrollingWhileNavigating = function preventScrollingWhileNavigating(event) {
|
|
7891
|
-
if (!shouldHighlightOption) return;
|
|
7892
|
-
if (!['ArrowDown', 'ArrowUp'].includes(event.key)) return;
|
|
7893
|
-
event.preventDefault();
|
|
7894
|
-
};
|
|
7895
|
-
|
|
7896
|
-
var handleHighlighted = function handleHighlighted(cb) {
|
|
7897
|
-
return function (event) {
|
|
7898
|
-
if (itemToHighlight === -1) return;
|
|
7899
|
-
if (event.key !== 'Enter') return;
|
|
7900
|
-
cb(itemToHighlight);
|
|
7901
|
-
reset();
|
|
7902
|
-
};
|
|
7903
|
-
};
|
|
7904
|
-
|
|
7905
|
-
useEffect(function () {
|
|
7906
|
-
if (shouldHighlightOption) return;
|
|
7907
|
-
reset();
|
|
7908
|
-
}, [shouldHighlightOption]);
|
|
7909
|
-
return {
|
|
7910
|
-
handleKeyUp: handleKeyUp,
|
|
7911
|
-
preventScrollingWhileNavigating: preventScrollingWhileNavigating,
|
|
7912
|
-
handleHighlighted: handleHighlighted,
|
|
7913
|
-
itemToHighlight: itemToHighlight
|
|
7914
|
-
};
|
|
7915
|
-
};
|
|
7916
|
-
|
|
7917
|
-
var useVisualAccessibility = function useVisualAccessibility(_ref2) {
|
|
7918
|
-
var selectRef = _ref2.selectRef,
|
|
7919
|
-
isSelectDisabled = _ref2.isSelectDisabled;
|
|
7920
|
-
|
|
7921
|
-
var addFocusClass = function addFocusClass() {
|
|
7922
|
-
var _selectRef$current2;
|
|
7923
|
-
|
|
7924
|
-
(_selectRef$current2 = selectRef.current) == null ? void 0 : _selectRef$current2.classList.add('focus');
|
|
7925
|
-
};
|
|
7926
|
-
|
|
7927
|
-
var removeFocusClass = function removeFocusClass() {
|
|
7928
|
-
var _selectRef$current3;
|
|
7929
|
-
|
|
7930
|
-
(_selectRef$current3 = selectRef.current) == null ? void 0 : _selectRef$current3.classList.remove('focus');
|
|
7931
|
-
};
|
|
7932
|
-
|
|
7933
|
-
var toggleFocus = function toggleFocus() {
|
|
7934
|
-
var _selectRef$current4;
|
|
7935
|
-
|
|
7936
|
-
if ((_selectRef$current4 = selectRef.current) != null && _selectRef$current4.classList.contains('focus')) removeFocusClass();else addFocusClass();
|
|
7937
|
-
};
|
|
7938
|
-
|
|
7939
|
-
var withClickAwayHandler = function withClickAwayHandler(cb) {
|
|
7940
|
-
return function (event) {
|
|
7941
|
-
if (!selectRef.current) return;
|
|
7942
|
-
if (selectRef.current.contains(event.target)) return;
|
|
7943
|
-
removeFocusClass();
|
|
7944
|
-
cb();
|
|
7945
|
-
};
|
|
7946
|
-
};
|
|
7947
|
-
|
|
7948
|
-
useEffect(function () {
|
|
7949
|
-
if (!selectRef.current) return;
|
|
7950
|
-
|
|
7951
|
-
if (isSelectDisabled) {
|
|
7952
|
-
selectRef.current.classList.add('disabled');
|
|
7953
|
-
} else selectRef.current.classList.remove('disabled');
|
|
7954
|
-
}, [isSelectDisabled]);
|
|
7955
|
-
return {
|
|
7956
|
-
withClickAwayHandler: withClickAwayHandler,
|
|
7957
|
-
toggleFocus: toggleFocus,
|
|
7958
|
-
addFocusClass: addFocusClass,
|
|
7959
|
-
removeFocusClass: removeFocusClass
|
|
7960
|
-
};
|
|
7961
|
-
};
|
|
7962
|
-
|
|
7963
|
-
var useAccessibility = function useAccessibility(props) {
|
|
7964
|
-
var selectRef = props.selectRef;
|
|
7965
|
-
|
|
7966
|
-
var _useKeyboardAccessibi = useKeyboardAccessibility(props),
|
|
7967
|
-
handleKeyUp = _useKeyboardAccessibi.handleKeyUp,
|
|
7968
|
-
preventScrollingWhileNavigating = _useKeyboardAccessibi.preventScrollingWhileNavigating,
|
|
7969
|
-
handleHighlighted = _useKeyboardAccessibi.handleHighlighted,
|
|
7970
|
-
itemToHighlight = _useKeyboardAccessibi.itemToHighlight;
|
|
7971
|
-
|
|
7972
|
-
var _useVisualAccessibili = useVisualAccessibility(props),
|
|
7973
|
-
addFocusClass = _useVisualAccessibili.addFocusClass,
|
|
7974
|
-
removeFocusClass = _useVisualAccessibili.removeFocusClass,
|
|
7975
|
-
toggleFocus = _useVisualAccessibili.toggleFocus,
|
|
7976
|
-
withClickAwayHandler = _useVisualAccessibili.withClickAwayHandler;
|
|
7977
|
-
|
|
7978
|
-
useEffect(function () {
|
|
7979
|
-
if (!selectRef.current) return;
|
|
7980
|
-
selectRef.current.addEventListener('keydown', preventScrollingWhileNavigating);
|
|
7981
|
-
selectRef.current.addEventListener('keyup', handleKeyUp);
|
|
7982
|
-
selectRef.current.addEventListener('click', toggleFocus);
|
|
7983
|
-
selectRef.current.addEventListener('focus', addFocusClass);
|
|
7984
|
-
selectRef.current.addEventListener('blur', removeFocusClass);
|
|
7985
|
-
return function () {
|
|
7986
|
-
var _selectRef$current5, _selectRef$current6, _selectRef$current7, _selectRef$current8, _selectRef$current9;
|
|
7987
7853
|
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
(_selectRef$current9 = selectRef.current) == null ? void 0 : _selectRef$current9.removeEventListener('blur', removeFocusClass);
|
|
7993
|
-
};
|
|
7994
|
-
});
|
|
7995
|
-
return {
|
|
7996
|
-
withClickAwayHandler: withClickAwayHandler,
|
|
7997
|
-
handleHighlighted: handleHighlighted,
|
|
7998
|
-
itemToHighlight: itemToHighlight
|
|
7999
|
-
};
|
|
7854
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
|
7855
|
+
return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
|
|
7856
|
+
iconName: 'DropdownArrow'
|
|
7857
|
+
}));
|
|
8000
7858
|
};
|
|
8001
|
-
/**
|
|
8002
|
-
* A select component, created using <ul> and <li> elements, with bespoke accessibility
|
|
8003
|
-
* logic.
|
|
8004
|
-
*
|
|
8005
|
-
* # Usage
|
|
8006
|
-
* ## Defining a component that uses a typical Select element
|
|
8007
|
-
* ```tsx
|
|
8008
|
-
* const MyComponent = () => {
|
|
8009
|
-
* const handleSelect = (value: number, text: string) => {
|
|
8010
|
-
* console.log("Selected", value);
|
|
8011
|
-
* };
|
|
8012
|
-
*
|
|
8013
|
-
* return <>
|
|
8014
|
-
* <Select
|
|
8015
|
-
* label="This is a label"
|
|
8016
|
-
* options={[
|
|
8017
|
-
* { text: "Option 1", value: 1 },
|
|
8018
|
-
* { text: "Option 2", value: 2 },
|
|
8019
|
-
* ]}
|
|
8020
|
-
* onSelect={handleSelect}
|
|
8021
|
-
* />
|
|
8022
|
-
* </>
|
|
8023
|
-
* }
|
|
8024
|
-
* ```
|
|
8025
|
-
*
|
|
8026
|
-
* ## Defining a component that uses a disabled Select element
|
|
8027
|
-
* ```tsx
|
|
8028
|
-
* const MyComponent = () => {
|
|
8029
|
-
* const handleSelect = (value: number, text: string) => {
|
|
8030
|
-
* console.log("Selected", value);
|
|
8031
|
-
* };
|
|
8032
|
-
*
|
|
8033
|
-
* return <>
|
|
8034
|
-
* <Select
|
|
8035
|
-
* disabled // Select component disabled explicitely
|
|
8036
|
-
* label="This is a label"
|
|
8037
|
-
* options={[
|
|
8038
|
-
* { text: "Option 1", value: 1 },
|
|
8039
|
-
* { text: "Option 2", value: 2 },
|
|
8040
|
-
* ]}
|
|
8041
|
-
* onSelect={handleSelect}
|
|
8042
|
-
* />
|
|
8043
|
-
* <Select
|
|
8044
|
-
* label="This is a label"
|
|
8045
|
-
* options={[]} // Select component disabled implicitely by passing an empty array of options
|
|
8046
|
-
* onSelect={handleSelect}
|
|
8047
|
-
* />
|
|
8048
|
-
* </>
|
|
8049
|
-
* }
|
|
8050
|
-
* ```
|
|
8051
|
-
*
|
|
8052
|
-
* ## Defining a component with a non-labelled Select element
|
|
8053
|
-
* ```tsx
|
|
8054
|
-
* const MyComponent = () => {
|
|
8055
|
-
* const handleSelect = (value: number, text: string) => {
|
|
8056
|
-
* console.log("Selected", value);
|
|
8057
|
-
* };
|
|
8058
|
-
*
|
|
8059
|
-
* return <>
|
|
8060
|
-
* <Select
|
|
8061
|
-
* label=""
|
|
8062
|
-
* options={[
|
|
8063
|
-
* { text: "Option 1", value: 1 },
|
|
8064
|
-
* { text: "Option 2", value: 2 },
|
|
8065
|
-
* ]}
|
|
8066
|
-
* onSelect={handleSelect}
|
|
8067
|
-
* />
|
|
8068
|
-
* </>
|
|
8069
|
-
* }
|
|
8070
|
-
* ```
|
|
8071
|
-
*
|
|
8072
|
-
* ## Changing the dimensions of a Select element (px)
|
|
8073
|
-
* ```tsx
|
|
8074
|
-
* const MyComponent = () => {
|
|
8075
|
-
* const handleSelect = (value: number, text: string) => {
|
|
8076
|
-
* console.log("Selected", value);
|
|
8077
|
-
* };
|
|
8078
|
-
*
|
|
8079
|
-
* const selectWidthPx = 100;
|
|
8080
|
-
* const selectHeightPx = 27;
|
|
8081
|
-
*
|
|
8082
|
-
* return <>
|
|
8083
|
-
* <Select
|
|
8084
|
-
* label="This is a label"
|
|
8085
|
-
* options={[
|
|
8086
|
-
* { text: "Option 1", value: 1 },
|
|
8087
|
-
* { text: "Option 2", value: 2 },
|
|
8088
|
-
* ]}
|
|
8089
|
-
* onSelect={handleSelect}
|
|
8090
|
-
* width={selectWidthPx}
|
|
8091
|
-
* height={selectHeightPx}
|
|
8092
|
-
* />
|
|
8093
|
-
* </>
|
|
8094
|
-
* }
|
|
8095
|
-
* ```
|
|
8096
|
-
*/
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
function Select(_ref3) {
|
|
8100
|
-
var _ref4, _selectedValue$text, _options$;
|
|
8101
|
-
|
|
8102
|
-
var label = _ref3.label,
|
|
8103
|
-
options = _ref3.options,
|
|
8104
|
-
onSelect = _ref3.onSelect,
|
|
8105
|
-
_ref3$disabled = _ref3.disabled,
|
|
8106
|
-
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
8107
|
-
_ref3$resetWhenOption = _ref3.resetWhenOptionsUpdate,
|
|
8108
|
-
resetWhenOptionsUpdate = _ref3$resetWhenOption === void 0 ? false : _ref3$resetWhenOption,
|
|
8109
|
-
_ref3$width = _ref3.width,
|
|
8110
|
-
width = _ref3$width === void 0 ? 'default' : _ref3$width,
|
|
8111
|
-
_ref3$height = _ref3.height,
|
|
8112
|
-
height = _ref3$height === void 0 ? 'default' : _ref3$height;
|
|
8113
|
-
var selectRef = useRef(null);
|
|
8114
|
-
var optionsRef = useRef([]);
|
|
8115
7859
|
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
var isDisabled = disabled || options.length === 0;
|
|
8125
|
-
|
|
8126
|
-
var _useAccessibility = useAccessibility({
|
|
8127
|
-
selectRef: selectRef,
|
|
8128
|
-
optionsRef: optionsRef,
|
|
8129
|
-
shouldHighlightOption: isOpen,
|
|
8130
|
-
isSelectDisabled: isDisabled
|
|
8131
|
-
}),
|
|
8132
|
-
withClickAwayHandler = _useAccessibility.withClickAwayHandler,
|
|
8133
|
-
handleHighlighted = _useAccessibility.handleHighlighted,
|
|
8134
|
-
itemToHighlight = _useAccessibility.itemToHighlight;
|
|
8135
|
-
|
|
8136
|
-
var openSelect = function openSelect() {
|
|
8137
|
-
return setIsOpen(true);
|
|
8138
|
-
};
|
|
8139
|
-
|
|
8140
|
-
var closeSelect = function closeSelect() {
|
|
8141
|
-
return setIsOpen(false);
|
|
8142
|
-
};
|
|
8143
|
-
|
|
8144
|
-
var toggleSelect = function toggleSelect() {
|
|
8145
|
-
return setIsOpen(function (prev) {
|
|
8146
|
-
return !prev;
|
|
8147
|
-
});
|
|
8148
|
-
};
|
|
8149
|
-
|
|
8150
|
-
var closeSelectOnBlur = withClickAwayHandler(closeSelect);
|
|
8151
|
-
|
|
8152
|
-
var handleOptionSelection = function handleOptionSelection(index) {
|
|
8153
|
-
var option = options[index];
|
|
8154
|
-
setSelectedValue(option);
|
|
8155
|
-
onSelect(option.value, option.text);
|
|
8156
|
-
};
|
|
8157
|
-
|
|
8158
|
-
useEffect(function () {
|
|
8159
|
-
document.addEventListener('click', closeSelectOnBlur, false);
|
|
8160
|
-
return function () {
|
|
8161
|
-
document.removeEventListener('click', closeSelectOnBlur, false);
|
|
8162
|
-
};
|
|
8163
|
-
}, []);
|
|
8164
|
-
useEffect(function () {
|
|
8165
|
-
if (!resetWhenOptionsUpdate) return;
|
|
8166
|
-
|
|
8167
|
-
if (options.length === 0) {
|
|
8168
|
-
setSelectedValue(null);
|
|
8169
|
-
return;
|
|
8170
|
-
}
|
|
7860
|
+
function Select(_ref) {
|
|
7861
|
+
var label = _ref.label,
|
|
7862
|
+
darkMode = _ref.darkMode,
|
|
7863
|
+
width = _ref.width,
|
|
7864
|
+
error = _ref.error,
|
|
7865
|
+
_ref$isSearchable = _ref.isSearchable,
|
|
7866
|
+
isSearchable = _ref$isSearchable === void 0 ? false : _ref$isSearchable,
|
|
7867
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, ["label", "darkMode", "width", "error", "isSearchable"]);
|
|
8171
7868
|
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
}, label), /*#__PURE__*/React__default.createElement(SelectList, {
|
|
8179
|
-
id: "select",
|
|
8180
|
-
ref: selectRef,
|
|
8181
|
-
onClick: toggleSelect,
|
|
8182
|
-
onFocus: openSelect,
|
|
8183
|
-
onBlur: closeSelect,
|
|
8184
|
-
onMouseDown: function onMouseDown(e) {
|
|
8185
|
-
return e.preventDefault();
|
|
8186
|
-
},
|
|
8187
|
-
onKeyUp: handleHighlighted(handleOptionSelection),
|
|
7869
|
+
return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("label", null, !!label && /*#__PURE__*/React__default.createElement(TextLabel$1, {
|
|
7870
|
+
darkMode: darkMode,
|
|
7871
|
+
"data-testid": "text-field-text-label"
|
|
7872
|
+
}, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
7873
|
+
level: 6
|
|
7874
|
+
}, label)), /*#__PURE__*/React__default.createElement(SelectWrapper, {
|
|
8188
7875
|
width: width,
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
"data-testid": "
|
|
8200
|
-
},
|
|
8201
|
-
|
|
8202
|
-
},
|
|
8203
|
-
return /*#__PURE__*/React__default.createElement(Option, {
|
|
8204
|
-
ref: function ref(element) {
|
|
8205
|
-
if (!element || optionsRef.current.length === options.length) return;
|
|
8206
|
-
optionsRef.current.push(element);
|
|
8207
|
-
},
|
|
8208
|
-
role: "option",
|
|
8209
|
-
tabIndex: index + 1,
|
|
8210
|
-
hover: index === itemToHighlight,
|
|
8211
|
-
key: option.text,
|
|
8212
|
-
onClick: function onClick() {
|
|
8213
|
-
return handleOptionSelection(index);
|
|
8214
|
-
}
|
|
8215
|
-
}, /*#__PURE__*/React__default.createElement(BodyText, {
|
|
8216
|
-
level: 1,
|
|
8217
|
-
tag: "p"
|
|
8218
|
-
}, option.text));
|
|
8219
|
-
}))), /*#__PURE__*/React__default.createElement(ArrowIcon, null)));
|
|
7876
|
+
error: error
|
|
7877
|
+
}, /*#__PURE__*/React__default.createElement(ReactSelect, Object.assign({
|
|
7878
|
+
components: {
|
|
7879
|
+
DropdownIndicator: DropdownIndicator
|
|
7880
|
+
},
|
|
7881
|
+
isSearchable: isSearchable,
|
|
7882
|
+
className: "chord-select-container",
|
|
7883
|
+
classNamePrefix: "chord-select"
|
|
7884
|
+
}, selectProps)))), !!error && /*#__PURE__*/React__default.createElement(ErrorLabel$1, {
|
|
7885
|
+
darkMode: darkMode,
|
|
7886
|
+
"data-testid": "text-field-error-label"
|
|
7887
|
+
}, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
7888
|
+
level: 6
|
|
7889
|
+
}, error)));
|
|
8220
7890
|
}
|
|
8221
7891
|
|
|
8222
|
-
var _templateObject$
|
|
8223
|
-
var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
7892
|
+
var _templateObject$15;
|
|
7893
|
+
var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n\n & h1,\n h2,\n h3,\n h4 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 80px 0 16px;\n\n @media ", " {\n margin-top: 60px;\n }\n\n + p {\n margin-top: 0px;\n }\n }\n\n & h5,\n h6 {\n font-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 80px 0 16px;\n\n @media ", " {\n margin-top: 60px;\n }\n\n + p {\n margin-top: 10px;\n }\n }\n\n & a {\n color: ", ";\n text-decoration: underline;\n cursor: pointer;\n }\n\n p {\n margin: 30px 0;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & strong {\n font-weight: bold;\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n\n & ul {\n padding: 0;\n list-style: none;\n margin: 0 0 0 30px;\n\n li {\n text-indent: -20px;\n line-height: var(--line-height-listing);\n }\n }\n\n & ol {\n padding: 0;\n margin: 0 0 0 20px;\n\n li {\n line-height: var(--line-height-listing);\n }\n }\n\n & ul > li:before {\n display: inline-block;\n content: '\u2014';\n width: 0px;\n margin-left: 12px;\n margin-right: 8px;\n }\n"])), devices.mobileAndTablet, devices.mobileAndTablet, function (_ref) {
|
|
8224
7894
|
var theme = _ref.theme;
|
|
8225
7895
|
return theme.colors.primary;
|
|
8226
7896
|
});
|
|
@@ -8248,8 +7918,8 @@ var TextOnly = function TextOnly(_ref) {
|
|
|
8248
7918
|
})));
|
|
8249
7919
|
};
|
|
8250
7920
|
|
|
8251
|
-
var _templateObject$
|
|
8252
|
-
var Wrapper$
|
|
7921
|
+
var _templateObject$16, _templateObject2$N;
|
|
7922
|
+
var Wrapper$5 = /*#__PURE__*/styled.div(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n"])), ImageAspectRatioWrapper, function (_ref) {
|
|
8253
7923
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
8254
7924
|
aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
|
|
8255
7925
|
return aspectRatio;
|
|
@@ -8259,7 +7929,7 @@ var Wrapper$6 = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$1
|
|
|
8259
7929
|
height = _ref2.height;
|
|
8260
7930
|
return "calc(calc(" + height + "px - 12px - var(--line-height-body-2)) * " + AspectRatioWidth[aspectRatio] + ")";
|
|
8261
7931
|
});
|
|
8262
|
-
var CaptionWrapper = /*#__PURE__*/styled.div(_templateObject2$
|
|
7932
|
+
var CaptionWrapper = /*#__PURE__*/styled.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 12px;\n height: var(--line-height-body-2);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-2);\n font-weight: var(--font-weight-body-2);\n letter-spacing: var(--letter-spacing-body-2);\n line-height: var(--line-height-body-2);\n text-transform: var(--text-transform-body-2);\n word-break: var(--word-break-body-2);\n font-style: italic;\n"])));
|
|
8263
7933
|
|
|
8264
7934
|
var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
8265
7935
|
var caption = _ref.caption,
|
|
@@ -8288,7 +7958,7 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
|
8288
7958
|
return window.removeEventListener('resize', setWrapperHeight);
|
|
8289
7959
|
};
|
|
8290
7960
|
}, [wrapperRef]);
|
|
8291
|
-
return /*#__PURE__*/React__default.createElement(Wrapper$
|
|
7961
|
+
return /*#__PURE__*/React__default.createElement(Wrapper$5, {
|
|
8292
7962
|
aspectRatio: aspectRatio,
|
|
8293
7963
|
ref: wrapperRef,
|
|
8294
7964
|
height: height
|
|
@@ -8297,13 +7967,13 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
|
8297
7967
|
}, children), /*#__PURE__*/React__default.createElement(CaptionWrapper, null, caption));
|
|
8298
7968
|
};
|
|
8299
7969
|
|
|
8300
|
-
var _templateObject$
|
|
8301
|
-
var TextWrapper$3 = /*#__PURE__*/styled.div(_templateObject$
|
|
8302
|
-
var AttributionWrapper = /*#__PURE__*/styled.div(_templateObject2$
|
|
7970
|
+
var _templateObject$17, _templateObject2$O, _templateObject3$F;
|
|
7971
|
+
var TextWrapper$3 = /*#__PURE__*/styled.div(_templateObject$17 || (_templateObject$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h4 {\n margin: 0;\n }\n"])));
|
|
7972
|
+
var AttributionWrapper = /*#__PURE__*/styled.div(_templateObject2$O || (_templateObject2$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
8303
7973
|
var displayAttribution = _ref.displayAttribution;
|
|
8304
7974
|
return "display: " + (displayAttribution ? 'block' : 'none') + ";";
|
|
8305
7975
|
});
|
|
8306
|
-
var Line$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
7976
|
+
var Line$1 = /*#__PURE__*/styled.div(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-black);\n height: 2px;\n width: 62px;\n margin: 32px 0;\n\n @media ", " {\n height: 1px;\n width: 46px;\n margin: 24px 0;\n }\n"])), devices.mobile);
|
|
8307
7977
|
|
|
8308
7978
|
var Quote = function Quote(_ref) {
|
|
8309
7979
|
var text = _ref.text,
|
|
@@ -8327,13 +7997,13 @@ var Quote = function Quote(_ref) {
|
|
|
8327
7997
|
}, attribution))));
|
|
8328
7998
|
};
|
|
8329
7999
|
|
|
8330
|
-
var _templateObject$
|
|
8331
|
-
var CardContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
8332
|
-
var ContentContainer$
|
|
8333
|
-
var StyledImage = /*#__PURE__*/styled.img(_templateObject3$
|
|
8000
|
+
var _templateObject$18, _templateObject2$P, _templateObject3$G, _templateObject4$w, _templateObject5$n, _templateObject6$i;
|
|
8001
|
+
var CardContainer$1 = /*#__PURE__*/styled.div(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n width: 100%;\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 15px;\n min-height: 50px;\n"])));
|
|
8002
|
+
var ContentContainer$4 = /*#__PURE__*/styled.div(_templateObject2$P || (_templateObject2$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
8003
|
+
var StyledImage = /*#__PURE__*/styled.img(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--base-color-white);\n"])));
|
|
8334
8004
|
var ImageWrapper = /*#__PURE__*/styled.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
8335
|
-
var IconWrapper$3 = /*#__PURE__*/styled.div(_templateObject5$
|
|
8336
|
-
var TitleWrapper$2 = /*#__PURE__*/styled.div(_templateObject6$
|
|
8005
|
+
var IconWrapper$3 = /*#__PURE__*/styled.div(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n span {\n width: 40px;\n height: 40px;\n @media ", " {\n width: 24px;\n height: 24px;\n }\n @media ", " {\n width: 18px;\n height: 18px;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
8006
|
+
var TitleWrapper$2 = /*#__PURE__*/styled.div(_templateObject6$i || (_templateObject6$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 8px;\n div {\n @media ", " {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n"])), devices.mobile);
|
|
8337
8007
|
|
|
8338
8008
|
var MiniCard = function MiniCard(_ref) {
|
|
8339
8009
|
var _ref$title = _ref.title,
|
|
@@ -8364,18 +8034,18 @@ var MiniCard = function MiniCard(_ref) {
|
|
|
8364
8034
|
columnSpanDevice: 4,
|
|
8365
8035
|
columnStartDesktop: 4,
|
|
8366
8036
|
columnSpanDesktop: 4
|
|
8367
|
-
}, /*#__PURE__*/React__default.createElement(ContentContainer$
|
|
8037
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer$4, null, /*#__PURE__*/React__default.createElement(Overline, {
|
|
8368
8038
|
level: 4
|
|
8369
8039
|
}, subtitle), /*#__PURE__*/React__default.createElement(TitleWrapper$2, null, /*#__PURE__*/React__default.createElement(Overline, {
|
|
8370
8040
|
level: 2
|
|
8371
8041
|
}, title)))));
|
|
8372
8042
|
};
|
|
8373
8043
|
|
|
8374
|
-
var _templateObject$
|
|
8375
|
-
var ReadMoreContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
8376
|
-
var LinkContainer = /*#__PURE__*/styled.div(_templateObject2$
|
|
8377
|
-
var FullTextContainer = /*#__PURE__*/styled.div(_templateObject3$
|
|
8378
|
-
var ContentContainer$
|
|
8044
|
+
var _templateObject$19, _templateObject2$Q, _templateObject3$H, _templateObject4$x;
|
|
8045
|
+
var ReadMoreContainer = /*#__PURE__*/styled.div(_templateObject$19 || (_templateObject$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0px 0px 12px 0px !important;\n }\n width: 100%;\n"])));
|
|
8046
|
+
var LinkContainer = /*#__PURE__*/styled.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 24px;\n gap: 8px;\n\n :hover {\n cursor: pointer;\n }\n"])));
|
|
8047
|
+
var FullTextContainer = /*#__PURE__*/styled.div(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
8048
|
+
var ContentContainer$5 = /*#__PURE__*/styled.div(_templateObject4$x || (_templateObject4$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.4s ease;\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n\n & h1 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & h2 {\n font-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n"])));
|
|
8379
8049
|
|
|
8380
8050
|
var keyDown = function keyDown(e, toggleFunction) {
|
|
8381
8051
|
if (e.key === 'Enter' || e.key === 'Space') {
|
|
@@ -8438,7 +8108,7 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
8438
8108
|
var truncatedText = truncate ? truncateReactNodeString(introText != null ? introText : '', INTRO_CHAR_LIMIT, true) : introText;
|
|
8439
8109
|
|
|
8440
8110
|
var IntroText = function IntroText() {
|
|
8441
|
-
return introText ? /*#__PURE__*/React__default.createElement(ContentContainer$
|
|
8111
|
+
return introText ? /*#__PURE__*/React__default.createElement(ContentContainer$5, null, /*#__PURE__*/React__default.createElement(FullTextContainer, null, truncate ? /*#__PURE__*/React__default.createElement("div", {
|
|
8442
8112
|
dangerouslySetInnerHTML: {
|
|
8443
8113
|
__html: "" + truncatedText
|
|
8444
8114
|
}
|
|
@@ -8456,7 +8126,7 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
8456
8126
|
}, /*#__PURE__*/React__default.createElement(Header, {
|
|
8457
8127
|
level: 5,
|
|
8458
8128
|
semanticLevel: 3
|
|
8459
|
-
}, title)), !isFullTextOpen && /*#__PURE__*/React__default.createElement(IntroText, null), /*#__PURE__*/React__default.createElement(ContentContainer$
|
|
8129
|
+
}, title)), !isFullTextOpen && /*#__PURE__*/React__default.createElement(IntroText, null), /*#__PURE__*/React__default.createElement(ContentContainer$5, {
|
|
8460
8130
|
"data-testid": "richcontainer",
|
|
8461
8131
|
ref: readMoreContent,
|
|
8462
8132
|
id: contentContainerId,
|
|
@@ -8473,13 +8143,13 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
8473
8143
|
}, isFullTextOpen ? "" + hideText : "" + showMoreText)));
|
|
8474
8144
|
};
|
|
8475
8145
|
|
|
8476
|
-
var _templateObject$
|
|
8477
|
-
var MenuContainer$2 = /*#__PURE__*/styled.menu(_templateObject$
|
|
8478
|
-
var MenuList = /*#__PURE__*/styled.ul(_templateObject2$
|
|
8146
|
+
var _templateObject$1a, _templateObject2$R, _templateObject3$I, _templateObject4$y;
|
|
8147
|
+
var MenuContainer$2 = /*#__PURE__*/styled.menu(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding: 0;\n margin: 0;\n"])));
|
|
8148
|
+
var MenuList = /*#__PURE__*/styled.ul(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n list-style: none;\n border-right: 1px solid var(--base-color-", ");\n li {\n margin-left: -5px;\n @media ", " {\n margin-left: 0px;\n }\n }\n @media ", " {\n display: ", ";\n background: var(--base-color-", ");\n border: 1px solid var(--base-color-", ");\n border-top: 0;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n }\n"])), Colors.LightGrey, devices.mobile, devices.mobile, function (_ref) {
|
|
8479
8149
|
var mobileOpen = _ref.mobileOpen;
|
|
8480
8150
|
return mobileOpen ? "block" : 'none';
|
|
8481
8151
|
}, Colors.White, Colors.DarkGrey);
|
|
8482
|
-
var MenuItem$1 = /*#__PURE__*/styled.button(_templateObject3$
|
|
8152
|
+
var MenuItem$1 = /*#__PURE__*/styled.button(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n line-height: var(--line-height-navigation);\n font-size: var(--font-size-navigation);\n font-family: var(--font-family-navigation);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n color: var(--base-color-", ");\n text-transform: uppercase;\n margin: 0;\n padding: 16px 20px 15px 5px;\n border: 0;\n border-radius: 0;\n display: block;\n width: 100%;\n text-align: left;\n background: ", ";\n cursor: pointer;\n &:hover {\n background: var(--base-color-", ");\n }\n @media ", " {\n padding: 16px 20px 15px 20px;\n }\n"])), Colors.Black, function (_ref2) {
|
|
8483
8153
|
var active = _ref2.active;
|
|
8484
8154
|
return active ? "var(--base-color-" + Colors.MidGrey + ")" : 'none';
|
|
8485
8155
|
}, Colors.MidGrey, devices.mobile);
|
|
@@ -8555,19 +8225,19 @@ var AuxiliaryNav = function AuxiliaryNav(_ref) {
|
|
|
8555
8225
|
})));
|
|
8556
8226
|
};
|
|
8557
8227
|
|
|
8558
|
-
var _templateObject$
|
|
8559
|
-
var Container$
|
|
8560
|
-
var Sections = /*#__PURE__*/styled.div(_templateObject2$
|
|
8561
|
-
var Section = /*#__PURE__*/styled.div(_templateObject3$
|
|
8228
|
+
var _templateObject$1b, _templateObject2$S, _templateObject3$J, _templateObject4$z, _templateObject5$o, _templateObject6$j;
|
|
8229
|
+
var Container$2 = /*#__PURE__*/styled.div(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
8230
|
+
var Sections = /*#__PURE__*/styled.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
|
|
8231
|
+
var Section = /*#__PURE__*/styled.div(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 2px;\n background-color: ", ";\n"])), function (_ref) {
|
|
8562
8232
|
var color = _ref.color;
|
|
8563
8233
|
return "var(--base-color-" + color + ")";
|
|
8564
8234
|
});
|
|
8565
8235
|
var BottomLine = /*#__PURE__*/styled.div(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n"])));
|
|
8566
|
-
var Text = /*#__PURE__*/styled.div(_templateObject5$
|
|
8236
|
+
var Text = /*#__PURE__*/styled.div(_templateObject5$o || (_templateObject5$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n"])), function (_ref2) {
|
|
8567
8237
|
var color = _ref2.color;
|
|
8568
8238
|
return "var(--base-color-" + color + ")";
|
|
8569
8239
|
});
|
|
8570
|
-
var LabelText = /*#__PURE__*/styled.div(_templateObject6$
|
|
8240
|
+
var LabelText = /*#__PURE__*/styled.div(_templateObject6$j || (_templateObject6$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 1px;\n white-space: nowrap;\n color: ", ";\n"])), function (_ref3) {
|
|
8571
8241
|
var color = _ref3.color;
|
|
8572
8242
|
return "var(--base-color-" + color + ")";
|
|
8573
8243
|
});
|
|
@@ -8628,7 +8298,7 @@ var PasswordStrength = function PasswordStrength(_ref) {
|
|
|
8628
8298
|
return index < activeSections ? 'password-strength-section-active' : 'password-strength-section';
|
|
8629
8299
|
};
|
|
8630
8300
|
|
|
8631
|
-
return /*#__PURE__*/React__default.createElement(Container$
|
|
8301
|
+
return /*#__PURE__*/React__default.createElement(Container$2, {
|
|
8632
8302
|
"data-testid": "password-strength-container"
|
|
8633
8303
|
}, /*#__PURE__*/React__default.createElement(Sections, {
|
|
8634
8304
|
"data-testid": "password-strength-sections"
|
|
@@ -8741,9 +8411,9 @@ var LiveChat = function LiveChat() {
|
|
|
8741
8411
|
});
|
|
8742
8412
|
};
|
|
8743
8413
|
|
|
8744
|
-
var _templateObject$
|
|
8745
|
-
var StickyBarWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
8746
|
-
var StickyBarGrid = /*#__PURE__*/styled(Grid)(_templateObject2$
|
|
8414
|
+
var _templateObject$1c, _templateObject2$T;
|
|
8415
|
+
var StickyBarWrapper = /*#__PURE__*/styled.div(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: 0;\n position: sticky;\n z-index: ", ";\n background-color: var(--base-color-white);\n"])), zIndexes.anchor);
|
|
8416
|
+
var StickyBarGrid = /*#__PURE__*/styled(Grid)(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n padding: 28px 0 26px;\n\n @media ", " {\n padding: 24px 0 28px;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_ref) {
|
|
8747
8417
|
var hideBottomBorder = _ref.hideBottomBorder;
|
|
8748
8418
|
return !hideBottomBorder && 'border-bottom: 2px solid var(--base-color-lightgrey);';
|
|
8749
8419
|
}, devices.mobileAndTablet, devices.mobile);
|
|
@@ -8771,13 +8441,12 @@ var StickyBar = function StickyBar(_ref) {
|
|
|
8771
8441
|
}, children)));
|
|
8772
8442
|
};
|
|
8773
8443
|
|
|
8774
|
-
var _templateObject$
|
|
8775
|
-
var InnerModal = /*#__PURE__*/styled.div(_templateObject$
|
|
8776
|
-
var CloseButton = /*#__PURE__*/styled.button(_templateObject2$
|
|
8777
|
-
var ContentWrapper$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
8444
|
+
var _templateObject$1d, _templateObject2$U, _templateObject3$K, _templateObject4$A;
|
|
8445
|
+
var InnerModal = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 62px;\n background-color: var(--base-color-white);\n z-index: ", ";\n position: relative;\n\n @media ", ", ", " {\n height: 100vh;\n padding: 62px 0 0;\n }\n"])), zIndexes.popup, devices.smallMobile, devices.mobile);
|
|
8446
|
+
var CloseButton = /*#__PURE__*/styled.button(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n right: 0;\n margin: 15px;\n height: 26px;\n width: 26px;\n padding: 0;\n background-color: transparent;\n border: none;\n cursor: pointer;\n @media ", " {\n margin: 25px;\n }\n @media ", ", ", " {\n margin: 30px;\n }\n"])), devices.tablet, devices.desktop, devices.largeDesktop);
|
|
8447
|
+
var ContentWrapper$1 = /*#__PURE__*/styled.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
8778
8448
|
var Overlay = /*#__PURE__*/styled(Grid)(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
|
|
8779
8449
|
|
|
8780
|
-
var _excluded$k = ["isOpen", "setIsOpen", "children", "appElementId"];
|
|
8781
8450
|
var MAX_Z_INDEX = 9999999999;
|
|
8782
8451
|
|
|
8783
8452
|
if (Modal.defaultStyles.content) {
|
|
@@ -8854,7 +8523,7 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
8854
8523
|
setIsOpen = _ref.setIsOpen,
|
|
8855
8524
|
children = _ref.children,
|
|
8856
8525
|
appElementId = _ref.appElementId,
|
|
8857
|
-
modalProps = _objectWithoutPropertiesLoose(_ref,
|
|
8526
|
+
modalProps = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "children", "appElementId"]);
|
|
8858
8527
|
|
|
8859
8528
|
var isMobile = useMobile();
|
|
8860
8529
|
var customStyles = {
|
|
@@ -8896,8 +8565,8 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
8896
8565
|
})), /*#__PURE__*/React__default.createElement(ContentWrapper$1, null, children))), /*#__PURE__*/React__default.createElement(ScrollLock, null)));
|
|
8897
8566
|
};
|
|
8898
8567
|
|
|
8899
|
-
var _templateObject$
|
|
8900
|
-
var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n html {\n --base-color-primary: ", ";\n --base-color-core: ", ";\n --base-color-stream: ", ";\n --base-color-cinema: ", ";\n --base-color-white: ", ";\n --base-color-black: ", ";\n --base-color-dark-grey: ", ";\n --base-color-mid-grey: ", ";\n --base-color-light-grey: ", ";\n --error-color-state: ", ";\n --medium-color-state: ", ";\n --good-color-state: ", ";\n --base-color-darkgrey: ", ";\n --base-color-midgrey: ", ";\n --base-color-lightgrey: ", ";\n --base-color-transparent: transparent;\n --base-color-errorstate: ", ";\n --base-color-mediumstate: ", ";\n --base-color-goodstate: ", ";\n --base-color-progress: ", ";\n --base-color-navigation: ", ";\n --base-color-lapislazuli: ", ";\n --base-color-lemonchiffon: ", ";\n\n --button-height: ", ";\n --button-line-height: ", ";\n --button-padding-x: ", ";\n --button-padding-y: ", ";\n --button-padding-y-icon: ", ";\n --button-icon-margin: ", ";\n --button-icon-width: ", ";\n --button-icon-height: ", ";\n --button-font-size: ", ";\n --button-font-weight: ", ";\n\n --font-size-header-1: ", ";\n --font-weight-header-1: ", ";\n --letter-spacing-header-1: ", ";\n --line-height-header-1: ", ";\n --margin-header-1: ", ";\n\n --font-size-header-2: ", ";\n --font-weight-header-2: ", ";\n --letter-spacing-header-2: ", ";\n --line-height-header-2: ", ";\n --margin-header-2: ", ";\n\n --font-size-header-3: ", ";\n --font-weight-header-3: ", ";\n --letter-spacing-header-3: ", ";\n --line-height-header-3: ", ";\n --margin-header-3: ", ";\n\n --font-size-header-4: ", ";\n --font-weight-header-4: ", ";\n --letter-spacing-header-4: ", ";\n --line-height-header-4: ", ";\n --margin-header-4: ", ";\n\n --font-size-header-5: ", ";\n --font-weight-header-5: ", ";\n --letter-spacing-header-5: ", ";\n --line-height-header-5: ", ";\n --margin-header-5: ", ";\n\n --font-size-header-6: ", ";\n --font-weight-header-6: ", ";\n --letter-spacing-header-6: ", ";\n --line-height-header-6: ", ";\n --margin-header-6: ", ";\n\n --font-size-altHeader-3: ", ";\n --font-weight-altHeader-3: ", ";\n --letter-spacing-altHeader-3: ", ";\n --line-height-altHeader-3: ", ";\n\n --font-size-altHeader-4: ", ";\n --font-weight-altHeader-4: ", ";\n --letter-spacing-altHeader-4: ", ";\n --line-height-altHeader-4: ", ";\n\n --font-size-altHeader-5: ", ";\n --font-weight-altHeader-5: ", ";\n --letter-spacing-altHeader-5: ", ";\n --line-height-altHeader-5: ", ";\n\n --font-size-altHeader-6: ", ";\n --font-weight-altHeader-6: ", ";\n --letter-spacing-altHeader-6: ", ";\n --line-height-altHeader-6: ", ";\n\n --font-size-overline-1: ", ";\n --font-weight-overline-1: ", ";\n --letter-spacing-overline-1: ", ";\n --line-height-overline-1: ", ";\n\n --font-size-overline-2: ", ";\n --font-weight-overline-2: ", ";\n --letter-spacing-overline-2: ", ";\n --line-height-overline-2: ", ";\n\n --font-size-overline-3: ", ";\n --font-weight-overline-3: ", ";\n --letter-spacing-overline-3: ", ";\n --line-height-overline-3: ", "; \n\n --font-size-overline-4: ", ";\n --font-weight-overline-4: ", ";\n --letter-spacing-overline-4: ", ";\n --line-height-overline-4: ", ";\n\n --font-size-body-1: ", ";\n --font-weight-body-1: ", ";\n --letter-spacing-body-1: ", ";\n --line-height-body-1: ", ";\n\n --font-size-body-2: ", ";\n --font-weight-body-2: ", ";\n --letter-spacing-body-2: ", ";\n --line-height-body-2: ", ";\n\n --font-size-body-3: ", ";\n --font-weight-body-3: ", ";\n --letter-spacing-body-3: ", ";\n --line-height-body-3: ", ";\n\n --font-size-subtitle-1: ", ";\n --font-weight-subtitle-1: ", ";\n --letter-spacing-subtitle-1: ", ";\n --line-height-subtitle-1: ", ";\n \n --font-size-subtitle-2: ", ";\n --font-weight-subtitle-2: ", ";\n --letter-spacing-subtitle-2: ", ";\n --line-height-subtitle-2: ", ";\n\n --font-size-title-description: ", ";\n --line-height-title-description: ", ";\n --line-height-listing: ", ";\n --font-size-individual-listing-name: ", ";\n --line-height-individual-listing-name: ", ";\n --line-height-people-listing-gap: ", ";\n\n --font-family-header: ", ";\n --font-family-altHeader: ", ";\n --font-family-body: ", ";\n --font-family-body-italics: ", ";\n --font-family-buttons: ", ";\n --font-family-overline: ", ";\n --font-family-subtitle: ", ";\n --font-family-people-listing-role: ", ";\n --font-family-people-listing-name: ", ";\n\n --font-feature-settings-header: ", ";\n --font-feature-settings-altHeader: ", ";\n --font-feature-settings-overline: ", ";\n --font-feature-settings-subtitle: ", ";\n --font-feature-settings-body: ", ";\n --font-feature-settings-navigation: ", ";\n\n --text-transform-header: ", ";\n --text-transform-altHeader: ", ";\n --text-transform-body: ", ";\n --text-transform-overline: ", ";\n --text-transform-subtitle: ", ";\n\n --word-break-header: ", ";\n --word-break-altHeader: ", ";\n --word-break-body: ", ";\n --word-break-overline: ", ";\n --word-break-subtitle: ", ";\n\n --font-family-navigation: ", ";\n --font-size-navigation: ", ";\n --font-weight-navigation: ", ";\n --line-height-navigation: ", ";\n --text-transform-navigation: ", ";\n --letter-spacing-navigation: ", ";\n\n --navigation-small-gap: ", ";\n --navigation-middle-gap: ", ";\n --navigation-large-gap: ", ";\n --navigation-xlarge-gap: ", ";\n --navigation-large-margin: ", ";\n\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n\n --font-size-search: ", ";\n --font-family-search: ", ";\n\n --grid-margin: ", ";\n --grid-outer-margin: ", ";\n --grid-template-columns: calc(", " - ", ") calc(", " - ", " - ", ") repeat(12, minmax(0,1fr)) calc(", " - ", " - ", ") calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: 0;\n\n --footer-height: ", ";\n --footer-padding-top: ", ";\n --footer-padding-bottom: ", ";\n --footer-items-gap: ", ";\n --footer-media-gap: ", ";\n --footer-media-icon-width: ", ";\n --footer-media-icon-height: ", ";\n --footer-vertical-spacing-lg: ", ";\n --footer-vertical-spacing-sm: ", ";\n\n --text-link-underline-offset: ", ";\n\n --cards-spacing-stack: ", ";\n\n --editorial-subtitle-margin-bottom: ", ";\n --editorial-margin-between: ", ";\n --editorial-spacing-hover: ", ";\n --anchor-tabs-height: 70px;\n \n\n @media ", " {\n\n --font-size-header-1: ", ";\n --font-weight-header-1: ", ";\n --letter-spacing-header-1: ", ";\n --line-height-header-1: ", ";\n \n --font-size-header-2: ", ";\n --font-weight-header-2: ", ";\n --letter-spacing-header-2: ", ";\n --line-height-header-2: ", ";\n \n --font-size-header-3: ", ";\n --font-weight-header-3: ", ";\n --letter-spacing-header-3: ", ";\n --line-height-header-3: ", ";\n \n --font-size-header-4: ", ";\n --font-weight-header-4: ", ";\n --letter-spacing-header-4: ", ";\n --line-height-header-4: ", ";\n \n --font-size-header-5: ", ";\n --font-weight-header-5: ", ";\n --letter-spacing-header-5: ", ";\n --line-height-header-5: ", ";\n \n --font-size-header-6: ", ";\n --font-weight-header-6: ", ";\n --letter-spacing-header-6: ", ";\n --line-height-header-6: ", ";\n \n --font-size-altHeader-3: ", ";\n --font-weight-altHeader-3: ", ";\n --letter-spacing-altHeader-3: ", ";\n --line-height-altHeader-3: ", ";\n \n --font-size-altHeader-4: ", ";\n --font-weight-altHeader-4: ", ";\n --letter-spacing-altHeader-4: ", ";\n --line-height-altHeader-4: ", ";\n \n --font-size-altHeader-5: ", ";\n --font-weight-altHeader-5: ", ";\n --letter-spacing-altHeader-5: ", ";\n --line-height-altHeader-5: ", ";\n \n --font-size-altHeader-6: ", ";\n --font-weight-altHeader-6: ", ";\n --letter-spacing-altHeader-6: ", ";\n --line-height-altHeader-6: ", ";\n \n --font-size-overline-1: ", ";\n --font-weight-overline-1: ", ";\n --letter-spacing-overline-1: ", ";\n --line-height-overline-1: ", ";\n \n --font-size-overline-2: ", ";\n --font-weight-overline-2: ", ";\n --letter-spacing-overline-2: ", ";\n --line-height-overline-2: ", ";\n \n --font-size-body-1: ", ";\n --font-weight-body-1: ", ";\n --letter-spacing-body-1: ", ";\n --line-height-body-1: ", ";\n \n --font-size-body-2: ", ";\n --font-weight-body-2: ", ";\n --letter-spacing-body-2: ", ";\n --line-height-body-2: ", ";\n \n --font-size-body-3: ", ";\n --font-weight-body-3: ", ";\n --letter-spacing-body-3: ", ";\n --line-height-body-3: ", ";\n \n --font-size-subtitle-1: ", ";\n --font-weight-subtitle-1: ", ";\n --letter-spacing-subtitle-1: ", ";\n --line-height-subtitle-1: ", ";\n \n --font-size-subtitle-2: ", ";\n --font-weight-subtitle-2: ", ";\n --letter-spacing-subtitle-2: ", ";\n --line-height-subtitle-2: ", ";\n\n --font-size-title-description: ", ";\n --line-height-title-description: ", ";\n --line-height-people-listing-gap: ", ";\n\n --font-size-search: ", ";\n --font-family-search: ", ";\n\n --font-family-header: ", ";\n --font-family-altHeader: ", ";\n --font-family-body: ", ";\n --font-family-body-italics: ", ";\n --font-family-buttons: ", ";\n --font-family-overline: ", ";\n --font-family-subtitle: ", ";\n --font-family-people-listing-role: ", ";\n --font-family-people-listing-name: ", ";\n \n --font-feature-settings-header: ", ";\n --font-feature-settings-altHeader: ", ";\n --font-feature-settings-overline: ", ";\n --font-feature-settings-subtitle: ", ";\n --font-feature-settings-body: ", ";\n --font-feature-settings-navigation: ", ";\n \n --text-transform-header: ", ";\n --text-transform-altHeader: ", ";\n --text-transform-body: ", ";\n --text-transform-overline: ", ";\n --text-transform-subtitle: ", ";\n \n --word-break-header: ", ";\n --word-break-altHeader: ", ";\n --word-break-body: ", ";\n --word-break-overline: ", ";\n --word-break-subtitle: ", ";\n \n --grid-template-columns: calc(", " - ", ") repeat(12, minmax(0, 1fr)) calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: ", ";\n\n --footer-height: ", ";\n --footer-padding-top: ", ";\n --footer-padding-bottom: ", ";\n --footer-items-gap: ", ";\n --footer-media-gap: ", ";\n --footer-media-icon-width: ", ";\n --footer-media-icon-height: ", ";\n --footer-vertical-spacing-lg: ", ";\n --footer-vertical-spacing-sm: ", ";\n\n --anchor-tabs-height: 60px;\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n }\n\n @media ", " {\n --grid-template-columns: calc(", " - ", ") repeat(12, minmax(0, 1fr)) calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: ", ";\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n\n --font-size-header-6: ", ";\n\n --font-size-altHeader-4: ", ";\n\n --font-size-body-1: ", ";\n }\n\n @media ", " {\n \n }\n\n @media ", " {\n \n }\n }\n"])), function (_ref) {
|
|
8568
|
+
var _templateObject$1e;
|
|
8569
|
+
var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n html {\n --base-color-primary: ", ";\n --base-color-core: ", ";\n --base-color-stream: ", ";\n --base-color-cinema: ", ";\n --base-color-white: ", ";\n --base-color-black: ", ";\n --base-color-dark-grey: ", ";\n --base-color-mid-grey: ", ";\n --base-color-light-grey: ", ";\n --error-color-state: ", ";\n --medium-color-state: ", ";\n --good-color-state: ", ";\n --base-color-darkgrey: ", ";\n --base-color-midgrey: ", ";\n --base-color-lightgrey: ", ";\n --base-color-transparent: transparent;\n --base-color-errorstate: ", ";\n --base-color-mediumstate: ", ";\n --base-color-goodstate: ", ";\n --base-color-progress: ", ";\n --base-color-navigation: ", ";\n --base-color-lapislazuli: ", ";\n --base-color-lemonchiffon: ", ";\n\n --button-height: ", ";\n --button-line-height: ", ";\n --button-padding-x: ", ";\n --button-padding-y: ", ";\n --button-padding-y-icon: ", ";\n --button-icon-margin: ", ";\n --button-icon-width: ", ";\n --button-icon-height: ", ";\n --button-font-size: ", ";\n --button-font-weight: ", ";\n\n --font-size-header-1: ", ";\n --font-weight-header-1: ", ";\n --letter-spacing-header-1: ", ";\n --line-height-header-1: ", ";\n --margin-header-1: ", ";\n\n --font-size-header-2: ", ";\n --font-weight-header-2: ", ";\n --letter-spacing-header-2: ", ";\n --line-height-header-2: ", ";\n --margin-header-2: ", ";\n\n --font-size-header-3: ", ";\n --font-weight-header-3: ", ";\n --letter-spacing-header-3: ", ";\n --line-height-header-3: ", ";\n --margin-header-3: ", ";\n\n --font-size-header-4: ", ";\n --font-weight-header-4: ", ";\n --letter-spacing-header-4: ", ";\n --line-height-header-4: ", ";\n --margin-header-4: ", ";\n\n --font-size-header-5: ", ";\n --font-weight-header-5: ", ";\n --letter-spacing-header-5: ", ";\n --line-height-header-5: ", ";\n --margin-header-5: ", ";\n\n --font-size-header-6: ", ";\n --font-weight-header-6: ", ";\n --letter-spacing-header-6: ", ";\n --line-height-header-6: ", ";\n --margin-header-6: ", ";\n\n --font-size-altHeader-3: ", ";\n --font-weight-altHeader-3: ", ";\n --letter-spacing-altHeader-3: ", ";\n --line-height-altHeader-3: ", ";\n\n --font-size-altHeader-4: ", ";\n --font-weight-altHeader-4: ", ";\n --letter-spacing-altHeader-4: ", ";\n --line-height-altHeader-4: ", ";\n\n --font-size-altHeader-5: ", ";\n --font-weight-altHeader-5: ", ";\n --letter-spacing-altHeader-5: ", ";\n --line-height-altHeader-5: ", ";\n\n --font-size-altHeader-6: ", ";\n --font-weight-altHeader-6: ", ";\n --letter-spacing-altHeader-6: ", ";\n --line-height-altHeader-6: ", ";\n\n --font-size-overline-1: ", ";\n --font-weight-overline-1: ", ";\n --letter-spacing-overline-1: ", ";\n --line-height-overline-1: ", ";\n\n --font-size-overline-2: ", ";\n --font-weight-overline-2: ", ";\n --letter-spacing-overline-2: ", ";\n --line-height-overline-2: ", ";\n\n --font-size-overline-3: ", ";\n --font-weight-overline-3: ", ";\n --letter-spacing-overline-3: ", ";\n --line-height-overline-3: ", "; \n\n --font-size-overline-4: ", ";\n --font-weight-overline-4: ", ";\n --letter-spacing-overline-4: ", ";\n --line-height-overline-4: ", ";\n\n --font-size-body-1: ", ";\n --font-weight-body-1: ", ";\n --letter-spacing-body-1: ", ";\n --line-height-body-1: ", ";\n\n --font-size-body-2: ", ";\n --font-weight-body-2: ", ";\n --letter-spacing-body-2: ", ";\n --line-height-body-2: ", ";\n\n --font-size-body-3: ", ";\n --font-weight-body-3: ", ";\n --letter-spacing-body-3: ", ";\n --line-height-body-3: ", ";\n\n --font-size-subtitle-1: ", ";\n --font-weight-subtitle-1: ", ";\n --letter-spacing-subtitle-1: ", ";\n --line-height-subtitle-1: ", ";\n \n --font-size-subtitle-2: ", ";\n --font-weight-subtitle-2: ", ";\n --letter-spacing-subtitle-2: ", ";\n --line-height-subtitle-2: ", ";\n\n --font-size-title-description: ", ";\n --line-height-title-description: ", ";\n --line-height-listing: ", ";\n --font-size-individual-listing-name: ", ";\n --line-height-individual-listing-name: ", ";\n --line-height-people-listing-gap: ", ";\n\n --font-family-header: ", ";\n --font-family-altHeader: ", ";\n --font-family-body: ", ";\n --font-family-body-italics: ", ";\n --font-family-buttons: ", ";\n --font-family-overline: ", ";\n --font-family-subtitle: ", ";\n --font-family-people-listing-role: ", ";\n --font-family-people-listing-name: ", ";\n\n --font-feature-settings-header: ", ";\n --font-feature-settings-altHeader: ", ";\n --font-feature-settings-overline: ", ";\n --font-feature-settings-subtitle: ", ";\n --font-feature-settings-body: ", ";\n --font-feature-settings-navigation: ", ";\n\n --text-transform-header: ", ";\n --text-transform-altHeader: ", ";\n --text-transform-body: ", ";\n --text-transform-overline: ", ";\n --text-transform-subtitle: ", ";\n\n --word-break-header: ", ";\n --word-break-altHeader: ", ";\n --word-break-body: ", ";\n --word-break-overline: ", ";\n --word-break-subtitle: ", ";\n\n --font-family-navigation: ", ";\n --font-size-navigation: ", ";\n --font-weight-navigation: ", ";\n --line-height-navigation: ", ";\n --text-transform-navigation: ", ";\n --letter-spacing-navigation: ", ";\n\n --navigation-small-gap: ", ";\n --navigation-middle-gap: ", ";\n --navigation-large-gap: ", ";\n --navigation-xlarge-gap: ", ";\n --navigation-large-margin: ", ";\n\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n\n --font-size-search: ", ";\n --font-family-search: ", ";\n\n --grid-margin: ", ";\n --grid-outer-margin: ", ";\n --grid-template-columns: calc(", " - ", ") calc(", " - ", " - ", ") repeat(12, minmax(0,1fr)) calc(", " - ", " - ", ") calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: 0;\n\n --footer-height: ", ";\n --footer-padding-top: ", ";\n --footer-padding-bottom: ", ";\n --footer-items-gap: ", ";\n --footer-media-gap: ", ";\n --footer-media-icon-width: ", ";\n --footer-media-icon-height: ", ";\n --footer-vertical-spacing-lg: ", ";\n --footer-vertical-spacing-sm: ", ";\n\n --text-link-underline-offset: ", ";\n\n --cards-spacing-stack: ", ";\n\n --editorial-subtitle-margin-bottom: ", ";\n --editorial-margin-between: ", ";\n --editorial-spacing-hover: ", ";\n --anchor-tabs-height: 70px;\n \n\n @media ", " {\n\n --font-size-header-1: ", ";\n --font-weight-header-1: ", ";\n --letter-spacing-header-1: ", ";\n --line-height-header-1: ", ";\n \n --font-size-header-2: ", ";\n --font-weight-header-2: ", ";\n --letter-spacing-header-2: ", ";\n --line-height-header-2: ", ";\n \n --font-size-header-3: ", ";\n --font-weight-header-3: ", ";\n --letter-spacing-header-3: ", ";\n --line-height-header-3: ", ";\n \n --font-size-header-4: ", ";\n --font-weight-header-4: ", ";\n --letter-spacing-header-4: ", ";\n --line-height-header-4: ", ";\n \n --font-size-header-5: ", ";\n --font-weight-header-5: ", ";\n --letter-spacing-header-5: ", ";\n --line-height-header-5: ", ";\n \n --font-size-header-6: ", ";\n --font-weight-header-6: ", ";\n --letter-spacing-header-6: ", ";\n --line-height-header-6: ", ";\n \n --font-size-altHeader-3: ", ";\n --font-weight-altHeader-3: ", ";\n --letter-spacing-altHeader-3: ", ";\n --line-height-altHeader-3: ", ";\n \n --font-size-altHeader-4: ", ";\n --font-weight-altHeader-4: ", ";\n --letter-spacing-altHeader-4: ", ";\n --line-height-altHeader-4: ", ";\n \n --font-size-altHeader-5: ", ";\n --font-weight-altHeader-5: ", ";\n --letter-spacing-altHeader-5: ", ";\n --line-height-altHeader-5: ", ";\n \n --font-size-altHeader-6: ", ";\n --font-weight-altHeader-6: ", ";\n --letter-spacing-altHeader-6: ", ";\n --line-height-altHeader-6: ", ";\n \n --font-size-overline-1: ", ";\n --font-weight-overline-1: ", ";\n --letter-spacing-overline-1: ", ";\n --line-height-overline-1: ", ";\n \n --font-size-overline-2: ", ";\n --font-weight-overline-2: ", ";\n --letter-spacing-overline-2: ", ";\n --line-height-overline-2: ", ";\n \n --font-size-body-1: ", ";\n --font-weight-body-1: ", ";\n --letter-spacing-body-1: ", ";\n --line-height-body-1: ", ";\n \n --font-size-body-2: ", ";\n --font-weight-body-2: ", ";\n --letter-spacing-body-2: ", ";\n --line-height-body-2: ", ";\n \n --font-size-body-3: ", ";\n --font-weight-body-3: ", ";\n --letter-spacing-body-3: ", ";\n --line-height-body-3: ", ";\n \n --font-size-subtitle-1: ", ";\n --font-weight-subtitle-1: ", ";\n --letter-spacing-subtitle-1: ", ";\n --line-height-subtitle-1: ", ";\n \n --font-size-subtitle-2: ", ";\n --font-weight-subtitle-2: ", ";\n --letter-spacing-subtitle-2: ", ";\n --line-height-subtitle-2: ", ";\n\n --font-size-title-description: ", ";\n --line-height-title-description: ", ";\n --line-height-people-listing-gap: ", ";\n\n --font-size-search: ", ";\n --font-family-search: ", ";\n\n --font-family-header: ", ";\n --font-family-altHeader: ", ";\n --font-family-body: ", ";\n --font-family-body-italics: ", ";\n --font-family-buttons: ", ";\n --font-family-overline: ", ";\n --font-family-subtitle: ", ";\n --font-family-people-listing-role: ", ";\n --font-family-people-listing-name: ", ";\n \n --font-feature-settings-header: ", ";\n --font-feature-settings-altHeader: ", ";\n --font-feature-settings-overline: ", ";\n --font-feature-settings-subtitle: ", ";\n --font-feature-settings-body: ", ";\n --font-feature-settings-navigation: ", ";\n \n --text-transform-header: ", ";\n --text-transform-altHeader: ", ";\n --text-transform-body: ", ";\n --text-transform-overline: ", ";\n --text-transform-subtitle: ", ";\n \n --word-break-header: ", ";\n --word-break-altHeader: ", ";\n --word-break-body: ", ";\n --word-break-overline: ", ";\n --word-break-subtitle: ", ";\n \n --grid-template-columns: calc(", " - ", ") repeat(12, minmax(0, 1fr)) calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: ", ";\n\n --footer-height: ", ";\n --footer-padding-top: ", ";\n --footer-padding-bottom: ", ";\n --footer-items-gap: ", ";\n --footer-media-gap: ", ";\n --footer-media-icon-width: ", ";\n --footer-media-icon-height: ", ";\n --footer-vertical-spacing-lg: ", ";\n --footer-vertical-spacing-sm: ", ";\n\n --anchor-tabs-height: 60px;\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n }\n\n @media ", " {\n --grid-template-columns: calc(", " - ", ") repeat(12, minmax(0, 1fr)) calc(", " - ", ");\n --grid-column-gap: ", ";\n --grid-margin: ", ";\n --rotator-button-width: ", ";\n --rotator-button-icon-width: ", ";\n\n --font-size-header-6: ", ";\n\n --font-size-altHeader-4: ", ";\n\n --font-size-body-1: ", ";\n }\n\n @media ", " {\n \n }\n\n @media ", " {\n \n }\n }\n"])), function (_ref) {
|
|
8901
8570
|
var theme = _ref.theme;
|
|
8902
8571
|
return theme.colors.primary;
|
|
8903
8572
|
}, function (_ref2) {
|
|
@@ -9838,5 +9507,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1d || (_templa
|
|
|
9838
9507
|
return theme.fonts.tablet.sizes.body[1];
|
|
9839
9508
|
}, devices.desktop, devices.largeDesktop);
|
|
9840
9509
|
|
|
9841
|
-
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryNav, BodyText, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, RadioGroup, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, Button$1 as TertiaryButton, TextArea, TextField, TextLink, TextOnly, Theme as ThemeProvider, ThemeType, Tickbox, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, breakpoints, devices, zIndexes };
|
|
9510
|
+
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryNav, BodyText, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, RadioGroup, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, Button$1 as TertiaryButton, TextArea, TextField, TextLink, TextOnly, Theme as ThemeProvider, ThemeType, Tickbox, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, breakpoints, devices, zIndexes };
|
|
9842
9511
|
//# sourceMappingURL=chord.esm.js.map
|