@royaloperahouse/chord 1.13.2 → 1.14.0-a-chord-development
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 +36 -8
- package/README.md +248 -40
- package/dist/chord.cjs.development.js +384 -269
- 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 +385 -270
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Progress/Progress.styles.d.ts +1 -1
- package/dist/components/atoms/Timer/Timer.d.ts +4 -0
- package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
- package/dist/components/atoms/Timer/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/Card/Card.style.d.ts +5 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +4 -1
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/styles/themes.d.ts +931 -51
- package/dist/types/card.d.ts +28 -1
- package/dist/types/carousel.d.ts +5 -0
- package/dist/types/editorial.d.ts +1 -74
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +18 -1
- package/package.json +2 -1
- package/README.GIT +0 -277
- package/dist/components/atoms/TextField/TextField.d.ts +0 -41
- package/dist/components/atoms/TextField/TextField.style.d.ts +0 -5
- package/dist/components/atoms/TextField/index.d.ts +0 -2
- package/dist/types/formTypes.d.ts +0 -19
- package/dist/types/utility.d.ts +0 -4
|
@@ -8,6 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var styled = require('styled-components');
|
|
10
10
|
var styled__default = _interopDefault(styled);
|
|
11
|
+
var moment = _interopDefault(require('moment'));
|
|
11
12
|
var swiperReact_js = require('swiper/react/swiper-react.js');
|
|
12
13
|
require('swiper/swiper-bundle.css');
|
|
13
14
|
var reactRouterDom = require('react-router-dom');
|
|
@@ -96,11 +97,7 @@ var commonColors = {
|
|
|
96
97
|
medium: '#D79233',
|
|
97
98
|
good: '#4EAA33',
|
|
98
99
|
progress: '#1866DC',
|
|
99
|
-
navigation: '#C8102E'
|
|
100
|
-
lemonChiffon: '#fffbbe',
|
|
101
|
-
lapisLazuli: '#0060a0',
|
|
102
|
-
blue: '#1866DC',
|
|
103
|
-
red: '#C8102E'
|
|
100
|
+
navigation: '#C8102E'
|
|
104
101
|
};
|
|
105
102
|
var fontFamilies = {
|
|
106
103
|
adobeGaramondPro: 'adobe-garamond-pro',
|
|
@@ -573,11 +570,44 @@ var cinema = /*#__PURE__*/_extends({}, common, {
|
|
|
573
570
|
primaryButtonReverse: colors.cinema
|
|
574
571
|
})
|
|
575
572
|
});
|
|
573
|
+
var schools = /*#__PURE__*/_extends({}, common, {
|
|
574
|
+
colors: /*#__PURE__*/_extends({}, commonColors, colors, {
|
|
575
|
+
primary: colors.core,
|
|
576
|
+
primaryButton: colors.core,
|
|
577
|
+
secondaryButton: commonColors.white,
|
|
578
|
+
tertiaryButton: 'transparent',
|
|
579
|
+
primaryButtonReverseBg: colors.cinema,
|
|
580
|
+
primaryButtonReverse: commonColors.white
|
|
581
|
+
}),
|
|
582
|
+
fonts: /*#__PURE__*/_extends({}, common.fonts, {
|
|
583
|
+
desktop: /*#__PURE__*/_extends({}, common.fonts.desktop, {
|
|
584
|
+
transforms: {
|
|
585
|
+
headers: 'none',
|
|
586
|
+
altHeaders: 'none',
|
|
587
|
+
overline: 'none',
|
|
588
|
+
subtitles: 'none',
|
|
589
|
+
body: 'none',
|
|
590
|
+
navigation: 'uppercase'
|
|
591
|
+
}
|
|
592
|
+
}),
|
|
593
|
+
mobile: /*#__PURE__*/_extends({}, common.fonts.mobile, {
|
|
594
|
+
transforms: {
|
|
595
|
+
headers: 'none',
|
|
596
|
+
altHeaders: 'none',
|
|
597
|
+
overline: 'none',
|
|
598
|
+
subtitles: 'none',
|
|
599
|
+
body: 'none',
|
|
600
|
+
navigation: 'uppercase'
|
|
601
|
+
}
|
|
602
|
+
})
|
|
603
|
+
})
|
|
604
|
+
});
|
|
576
605
|
var themes = {
|
|
577
606
|
core: core,
|
|
578
607
|
stream: stream,
|
|
579
608
|
cinema: cinema,
|
|
580
|
-
fontFamilies: fontFamilies
|
|
609
|
+
fontFamilies: fontFamilies,
|
|
610
|
+
schools: schools
|
|
581
611
|
};
|
|
582
612
|
|
|
583
613
|
var _templateObject$2;
|
|
@@ -2101,6 +2131,7 @@ var PrimaryButtonWrapper = /*#__PURE__*/styled__default(Button)(_templateObject$
|
|
|
2101
2131
|
ThemeType["Core"] = "core";
|
|
2102
2132
|
ThemeType["Stream"] = "stream";
|
|
2103
2133
|
ThemeType["Cinema"] = "cinema";
|
|
2134
|
+
ThemeType["Schools"] = "schools";
|
|
2104
2135
|
})(exports.ThemeType || (exports.ThemeType = {}));
|
|
2105
2136
|
|
|
2106
2137
|
(function (CarouselType) {
|
|
@@ -2898,125 +2929,24 @@ var TabLink = function TabLink(_ref) {
|
|
|
2898
2929
|
})) : null, children);
|
|
2899
2930
|
};
|
|
2900
2931
|
|
|
2901
|
-
var _templateObject$i, _templateObject2$7
|
|
2902
|
-
var
|
|
2903
|
-
var textStyles = /*#__PURE__*/styled.css(_templateObject2$7 || (_templateObject2$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref) {
|
|
2904
|
-
var theme = _ref.theme;
|
|
2905
|
-
return theme.fonts.desktop.weights.body[1];
|
|
2906
|
-
}, function (_ref2) {
|
|
2907
|
-
var theme = _ref2.theme;
|
|
2908
|
-
return theme.fonts.desktop.sizes.altHeaders[6];
|
|
2909
|
-
}, function (_ref3) {
|
|
2910
|
-
var theme = _ref3.theme;
|
|
2911
|
-
return theme.spacing[7];
|
|
2912
|
-
});
|
|
2913
|
-
var Input = /*#__PURE__*/styled__default.input(_templateObject3$2 || (_templateObject3$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n\n width: 196px;\n height: 48px;\n padding: 0px 20px;\n\n border: 1px solid ", ";\n outline: none;\n\n ", "\n\n :disabled {\n background-color: ", ";\n border: 1px solid transparent;\n outline: none;\n }\n\n :focus {\n outline: ", "};\n }\n"])), textStyles, function (_ref4) {
|
|
2914
|
-
var theme = _ref4.theme;
|
|
2915
|
-
return theme.colors.darkgrey;
|
|
2916
|
-
}, function (_ref5) {
|
|
2917
|
-
var error = _ref5.error,
|
|
2918
|
-
theme = _ref5.theme;
|
|
2919
|
-
if (!error) return;
|
|
2920
|
-
return "\n border: 1px solid " + theme.colors.error + ";\n ";
|
|
2921
|
-
}, function (_ref6) {
|
|
2922
|
-
var theme = _ref6.theme;
|
|
2923
|
-
return theme.colors.lightgrey;
|
|
2924
|
-
}, function (_ref7) {
|
|
2925
|
-
var darkMode = _ref7.darkMode,
|
|
2926
|
-
theme = _ref7.theme;
|
|
2927
|
-
if (darkMode) return "4px solid " + theme.colors.lemonChiffon;
|
|
2928
|
-
return "3px solid " + theme.colors.lapisLazuli;
|
|
2929
|
-
});
|
|
2930
|
-
var TextLabel = /*#__PURE__*/styled__default.p(_templateObject4$1 || (_templateObject4$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n"])), textStyles, function (_ref8) {
|
|
2931
|
-
var darkMode = _ref8.darkMode,
|
|
2932
|
-
theme = _ref8.theme;
|
|
2933
|
-
return darkMode ? theme.colors.white : theme.colors.black;
|
|
2934
|
-
});
|
|
2935
|
-
var ErrorLabel = /*#__PURE__*/styled__default.p(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n"])), textStyles, function (_ref9) {
|
|
2936
|
-
var darkMode = _ref9.darkMode,
|
|
2937
|
-
theme = _ref9.theme;
|
|
2938
|
-
return darkMode ? theme.colors.white : theme.colors.error;
|
|
2939
|
-
});
|
|
2940
|
-
|
|
2941
|
-
var _excluded$5 = ["label", "error", "darkMode"];
|
|
2942
|
-
/**
|
|
2943
|
-
* A text field component, that wraps around the native `<input />` element
|
|
2944
|
-
* and adds some extra information around it (i.e. a text label and an error label).
|
|
2945
|
-
*
|
|
2946
|
-
* # Labels
|
|
2947
|
-
* You can use this component just like you would use a regular `<input />` element,
|
|
2948
|
-
* just with the extra `label` prop, to set the label of the content. For example:
|
|
2949
|
-
* ```tsx
|
|
2950
|
-
* <TextField label="This is a label" />
|
|
2951
|
-
* ```
|
|
2952
|
-
*
|
|
2953
|
-
* **IMPORTANT!** If you want to render a `<TextField />` without a label, you will
|
|
2954
|
-
* have to make the label an empty string:
|
|
2955
|
-
* ```tsx
|
|
2956
|
-
* <TextField label='' />
|
|
2957
|
-
* ```
|
|
2958
|
-
*
|
|
2959
|
-
* This is not recommended, as it makes the input non-accessible - all `<TextField />`s should
|
|
2960
|
-
* have a label.
|
|
2961
|
-
*
|
|
2962
|
-
* # Light / Dark mode
|
|
2963
|
-
* The component can also adapt its styles for light / dark mode. If you want this component
|
|
2964
|
-
* to be rendered on a dark / coloured background, you can use the `darkMode` prop.
|
|
2965
|
-
* ```tsx
|
|
2966
|
-
* <div>
|
|
2967
|
-
* <WhiteBackgroundContainer>
|
|
2968
|
-
* <TextField label="..." />
|
|
2969
|
-
* </WhiteBackgroundContainer>
|
|
2970
|
-
*
|
|
2971
|
-
* <BlackBackgroundContainer>
|
|
2972
|
-
* <TextField darkMode label="..." />
|
|
2973
|
-
* </BlackBackgroundContainer>
|
|
2974
|
-
* <BlueBackgroundContainer>
|
|
2975
|
-
* <TextField darkMode label="..." />
|
|
2976
|
-
* </BlueBackgroundContainer>
|
|
2977
|
-
* </div>
|
|
2978
|
-
* ```
|
|
2979
|
-
*/
|
|
2980
|
-
|
|
2981
|
-
var TextField = function TextField(_ref) {
|
|
2982
|
-
var label = _ref.label,
|
|
2983
|
-
error = _ref.error,
|
|
2984
|
-
_ref$darkMode = _ref.darkMode,
|
|
2985
|
-
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
2986
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2987
|
-
|
|
2988
|
-
return /*#__PURE__*/React__default.createElement(TextFieldContainer, null, /*#__PURE__*/React__default.createElement("label", null, /*#__PURE__*/React__default.createElement(TextLabel, {
|
|
2989
|
-
darkMode: darkMode,
|
|
2990
|
-
"data-testid": "text-field-text-label"
|
|
2991
|
-
}, label), /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
2992
|
-
type: "text",
|
|
2993
|
-
error: error,
|
|
2994
|
-
darkMode: darkMode,
|
|
2995
|
-
"data-testid": "text-field-input"
|
|
2996
|
-
}, inputProps))), error ? /*#__PURE__*/React__default.createElement(ErrorLabel, {
|
|
2997
|
-
darkMode: darkMode,
|
|
2998
|
-
"data-testid": "text-field-error-label"
|
|
2999
|
-
}, error) : null);
|
|
3000
|
-
};
|
|
3001
|
-
|
|
3002
|
-
var _templateObject$j, _templateObject2$8;
|
|
3003
|
-
var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$j || (_templateObject$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid;\n padding-bottom: ", ";\n font-family: var(--font-family-overline);\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n line-height: var(--line-height-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n text-transform: var(--text-transform-overline);\n color: var(--base-color-", ");\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n"])), function (_ref) {
|
|
2932
|
+
var _templateObject$i, _templateObject2$7;
|
|
2933
|
+
var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$i || (_templateObject$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid;\n padding-bottom: ", ";\n font-family: var(--font-family-overline);\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n line-height: var(--line-height-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n text-transform: var(--text-transform-overline);\n color: var(--base-color-", ");\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n"])), function (_ref) {
|
|
3004
2934
|
var iconName = _ref.iconName;
|
|
3005
2935
|
return iconName ? 'calc(var(--text-link-underline-offset) - 4px)' : 'var(--text-link-underline-offset)';
|
|
3006
2936
|
}, function (_ref2) {
|
|
3007
2937
|
var color = _ref2.color;
|
|
3008
2938
|
return color;
|
|
3009
2939
|
});
|
|
3010
|
-
var TextLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$
|
|
2940
|
+
var TextLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$7 || (_templateObject2$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n"])));
|
|
3011
2941
|
|
|
3012
|
-
var _excluded$
|
|
2942
|
+
var _excluded$5 = ["children", "iconName", "iconDirection", "color"];
|
|
3013
2943
|
|
|
3014
2944
|
var TextLink = function TextLink(_ref) {
|
|
3015
2945
|
var children = _ref.children,
|
|
3016
2946
|
iconName = _ref.iconName,
|
|
3017
2947
|
iconDirection = _ref.iconDirection,
|
|
3018
2948
|
color = _ref.color,
|
|
3019
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2949
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
3020
2950
|
|
|
3021
2951
|
var truncatedString = children.substring(0, 30);
|
|
3022
2952
|
return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
|
|
@@ -3031,8 +2961,8 @@ var TextLink = function TextLink(_ref) {
|
|
|
3031
2961
|
})) : null);
|
|
3032
2962
|
};
|
|
3033
2963
|
|
|
3034
|
-
var _templateObject$
|
|
3035
|
-
var Wrapper$1 = /*#__PURE__*/styled__default.div(_templateObject$
|
|
2964
|
+
var _templateObject$j;
|
|
2965
|
+
var Wrapper$1 = /*#__PURE__*/styled__default.div(_templateObject$j || (_templateObject$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-", ");\n font-feature-settings: var(--font-feature-settings-", ");\n font-size: var(--font-size-", "-", ");\n font-weight: var(--font-weight-", "-", ");\n letter-spacing: var(--letter-spacing-", "-", ");\n line-height: var(--line-height-", "-", ");\n text-transform: var(--text-transform-", ");\n word-break: var(--word-break-", ");\n margin: var(--margin-", "-", ");\n"])), function (_ref) {
|
|
3036
2966
|
var typography = _ref.typography;
|
|
3037
2967
|
return typography;
|
|
3038
2968
|
}, function (_ref2) {
|
|
@@ -3145,16 +3075,16 @@ var Subtitle = function Subtitle(_ref6) {
|
|
|
3145
3075
|
}, children);
|
|
3146
3076
|
};
|
|
3147
3077
|
|
|
3148
|
-
var _templateObject$
|
|
3149
|
-
var TickboxLabel = /*#__PURE__*/styled__default.label(_templateObject$
|
|
3078
|
+
var _templateObject$k, _templateObject2$8, _templateObject3$2;
|
|
3079
|
+
var TickboxLabel = /*#__PURE__*/styled__default.label(_templateObject$k || (_templateObject$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: block;\n width: fit-content;\n position: relative;\n padding-left: 32px;\n color: var(--base-color-", ");\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n\n @media ", " {\n &:focus {\n outline: 0;\n }\n }\n"])), function (_ref) {
|
|
3150
3080
|
var dark = _ref.dark;
|
|
3151
3081
|
return dark ? 'white' : 'black';
|
|
3152
3082
|
}, devices.mobileAndTablet);
|
|
3153
|
-
var TickboxCheckmark = /*#__PURE__*/styled__default.span(_templateObject2$
|
|
3083
|
+
var TickboxCheckmark = /*#__PURE__*/styled__default.span(_templateObject2$8 || (_templateObject2$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 1px;\n left: 0;\n height: 20px;\n width: 20px;\n padding: 3px;\n box-sizing: border-box;\n border: 1px solid var(--base-color-", ");\n\n svg {\n display: none;\n }\n\n @media ", " {\n top: 0;\n }\n"])), function (_ref2) {
|
|
3154
3084
|
var dark = _ref2.dark;
|
|
3155
3085
|
return dark ? 'white' : 'black';
|
|
3156
3086
|
}, devices.mobile);
|
|
3157
|
-
var TickboxInput = /*#__PURE__*/styled__default.input(_templateObject3$
|
|
3087
|
+
var TickboxInput = /*#__PURE__*/styled__default.input(_templateObject3$2 || (_templateObject3$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n &:checked ~ ", " {\n background-color: var(--base-color-", ");\n & svg {\n display: block;\n path {\n fill: var(--base-color-", ");\n }\n }\n }\n"])), TickboxCheckmark, function (_ref3) {
|
|
3158
3088
|
var dark = _ref3.dark;
|
|
3159
3089
|
return dark ? 'white' : 'black';
|
|
3160
3090
|
}, function (_ref4) {
|
|
@@ -3214,6 +3144,104 @@ var Tickbox = function Tickbox(_ref) {
|
|
|
3214
3144
|
})));
|
|
3215
3145
|
};
|
|
3216
3146
|
|
|
3147
|
+
var _templateObject$l, _templateObject2$9, _templateObject3$3, _templateObject4$1, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3148
|
+
var TimerWrapper = /*#__PURE__*/styled__default.div(_templateObject$l || (_templateObject$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-", ");\n"])), function (_ref) {
|
|
3149
|
+
var color = _ref.color;
|
|
3150
|
+
return color;
|
|
3151
|
+
});
|
|
3152
|
+
var Line = /*#__PURE__*/styled__default.div(_templateObject2$9 || (_templateObject2$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 1px;\n background-color: var(--base-color-", ");\n margin-top: 32px;\n\n @media ", " {\n margin-top: 20px;\n }\n"])), function (_ref2) {
|
|
3153
|
+
var color = _ref2.color;
|
|
3154
|
+
return color;
|
|
3155
|
+
}, devices.mobileAndTablet);
|
|
3156
|
+
var TitleWrapper = /*#__PURE__*/styled__default.div(_templateObject3$3 || (_templateObject3$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 16px;\n\n @media ", " {\n margin-bottom: 8px;\n }\n"])), devices.mobileAndTablet);
|
|
3157
|
+
var ValuesWrapper = /*#__PURE__*/styled__default.div(_templateObject4$1 || (_templateObject4$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\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 display: flex;\n\n @media ", " {\n font-size: var(--font-size-header-5);\n }\n"])), devices.tablet);
|
|
3158
|
+
var TimerLabel = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-overline);\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n line-height: var(--line-height-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n text-transform: var(--text-transform-overline);\n margin-top: 4px;\n"])));
|
|
3159
|
+
var TimerValueSeparator = /*#__PURE__*/styled__default.div(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 20px;\n\n @media ", " {\n margin: 0 12px;\n }\n\n @media ", " {\n margin: 0 12px;\n }\n"])), devices.tablet, devices.mobile);
|
|
3160
|
+
var TimerValueWrapper = /*#__PURE__*/styled__default.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3161
|
+
var TimerValue = /*#__PURE__*/styled__default.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3162
|
+
|
|
3163
|
+
var Timer = function Timer(_ref) {
|
|
3164
|
+
var endDate = _ref.endDate,
|
|
3165
|
+
title = _ref.title,
|
|
3166
|
+
endDateHandler = _ref.endDateHandler,
|
|
3167
|
+
_ref$bottomLine = _ref.bottomLine,
|
|
3168
|
+
bottomLine = _ref$bottomLine === void 0 ? true : _ref$bottomLine,
|
|
3169
|
+
_ref$color = _ref.color,
|
|
3170
|
+
color = _ref$color === void 0 ? exports.Colors.Black : _ref$color;
|
|
3171
|
+
|
|
3172
|
+
var _React$useState = React__default.useState('00'),
|
|
3173
|
+
seconds = _React$useState[0],
|
|
3174
|
+
setSeconds = _React$useState[1];
|
|
3175
|
+
|
|
3176
|
+
var _React$useState2 = React__default.useState('00'),
|
|
3177
|
+
minutes = _React$useState2[0],
|
|
3178
|
+
setMinutes = _React$useState2[1];
|
|
3179
|
+
|
|
3180
|
+
var _React$useState3 = React__default.useState('00'),
|
|
3181
|
+
hours = _React$useState3[0],
|
|
3182
|
+
setHours = _React$useState3[1];
|
|
3183
|
+
|
|
3184
|
+
var _React$useState4 = React__default.useState('00'),
|
|
3185
|
+
days = _React$useState4[0],
|
|
3186
|
+
setDays = _React$useState4[1];
|
|
3187
|
+
|
|
3188
|
+
var _React$useState5 = React__default.useState(false),
|
|
3189
|
+
isEndDateReached = _React$useState5[0],
|
|
3190
|
+
setIsEndDateReached = _React$useState5[1];
|
|
3191
|
+
|
|
3192
|
+
var renderTimerValue = function renderTimerValue(value, title, separator) {
|
|
3193
|
+
if (separator === void 0) {
|
|
3194
|
+
separator = true;
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TimerValueWrapper, null, /*#__PURE__*/React__default.createElement(TimerValue, null, value), /*#__PURE__*/React__default.createElement(TimerLabel, null, title)), separator && /*#__PURE__*/React__default.createElement(TimerValueSeparator, null, ":"));
|
|
3198
|
+
};
|
|
3199
|
+
|
|
3200
|
+
React__default.useEffect(function () {
|
|
3201
|
+
if (isEndDateReached) return; // We use this to set values for the timer immediately
|
|
3202
|
+
|
|
3203
|
+
var setIntervalAndExecute = function setIntervalAndExecute(fn, delay) {
|
|
3204
|
+
fn();
|
|
3205
|
+
return setInterval(fn, delay);
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
var updateValues = function updateValues() {
|
|
3209
|
+
var futureDate = moment(endDate);
|
|
3210
|
+
var nowDate = moment();
|
|
3211
|
+
var differenceInMilliseconds = futureDate.valueOf() - nowDate.valueOf();
|
|
3212
|
+
var difference = moment(differenceInMilliseconds).utc();
|
|
3213
|
+
|
|
3214
|
+
if (differenceInMilliseconds < 0) {
|
|
3215
|
+
setIsEndDateReached(true);
|
|
3216
|
+
if (endDateHandler) endDateHandler();
|
|
3217
|
+
} else {
|
|
3218
|
+
var fullDaysLeft = Math.floor(futureDate.diff(nowDate, 'days', true));
|
|
3219
|
+
var daysDiff = fullDaysLeft < 10 ? "0" + fullDaysLeft : fullDaysLeft.toString();
|
|
3220
|
+
var hoursDiff = difference.format('HH');
|
|
3221
|
+
var minutesDiff = difference.format('mm');
|
|
3222
|
+
var secondsDiff = difference.format('ss');
|
|
3223
|
+
setDays(daysDiff);
|
|
3224
|
+
setHours(hoursDiff);
|
|
3225
|
+
setMinutes(minutesDiff);
|
|
3226
|
+
setSeconds(secondsDiff);
|
|
3227
|
+
}
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
var interval = setIntervalAndExecute(updateValues, 1000);
|
|
3231
|
+
return function () {
|
|
3232
|
+
clearInterval(interval);
|
|
3233
|
+
};
|
|
3234
|
+
});
|
|
3235
|
+
return /*#__PURE__*/React__default.createElement(TimerWrapper, {
|
|
3236
|
+
color: color
|
|
3237
|
+
}, title && /*#__PURE__*/React__default.createElement(TitleWrapper, null, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
3238
|
+
level: 5
|
|
3239
|
+
}, title)), /*#__PURE__*/React__default.createElement(ValuesWrapper, null, renderTimerValue(days, 'Days'), renderTimerValue(hours, 'Hrs'), renderTimerValue(minutes, 'Mins'), renderTimerValue(seconds, 'Secs', false)), bottomLine && /*#__PURE__*/React__default.createElement(Line, {
|
|
3240
|
+
"data-testid": "timer-bottom-line",
|
|
3241
|
+
color: color
|
|
3242
|
+
}));
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3217
3245
|
var _templateObject$m;
|
|
3218
3246
|
var TypeTagsContainer = /*#__PURE__*/styled__default.ul(_templateObject$m || (_templateObject$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n\n & li {\n color: var(--base-color-black);\n display: inline-block;\n margin: 0;\n }\n\n & li:before {\n content: '\u2014';\n margin: 0 0.5em;\n }\n\n & li:first-child:before {\n display: none;\n }\n"])));
|
|
3219
3247
|
|
|
@@ -3300,7 +3328,7 @@ var RotatorButtons = function RotatorButtons(_ref) {
|
|
|
3300
3328
|
}, renderNextIcon()));
|
|
3301
3329
|
};
|
|
3302
3330
|
|
|
3303
|
-
var _templateObject$o, _templateObject2$b, _templateObject3$5, _templateObject4$2, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
3331
|
+
var _templateObject$o, _templateObject2$b, _templateObject3$5, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9, _templateObject10, _templateObject11;
|
|
3304
3332
|
var NavigationWrapper = /*#__PURE__*/styled__default.div(_templateObject$o || (_templateObject$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n ", "\n }\n"])), devices.mobileAndTablet, function (_ref) {
|
|
3305
3333
|
var isMenuOpen = _ref.isMenuOpen;
|
|
3306
3334
|
return isMenuOpen && "\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: " + zIndexes.overlay + ";\n background-color: var(--base-color-white);\n overflow-y: auto;\n scrollbar-width: none;\n ::-webkit-scrollbar {\n display: none;\n }\n ";
|
|
@@ -3309,12 +3337,12 @@ var FullScreenContainer = /*#__PURE__*/styled__default.div(_templateObject2$b ||
|
|
|
3309
3337
|
var NavigationGrid = /*#__PURE__*/styled__default(Grid)(_templateObject3$5 || (_templateObject3$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n background-color: var(--base-color-white);\n height: 140px;\n z-index: ", ";\n\n @media ", " {\n height: 80px;\n }\n"])), zIndexes.navigation, devices.mobile);
|
|
3310
3338
|
var SearchBackground = /*#__PURE__*/styled__default.div(_templateObject4$2 || (_templateObject4$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-white);\n height: 100px;\n border-top: 1px solid var(--base-color-light-grey);\n width: 100%;\n position: absolute;\n top: 140px;\n z-index: ", ";\n\n @media ", " {\n height: 100%;\n top: 80px;\n }\n"])), zIndexes.search, devices.mobile);
|
|
3311
3339
|
var GridItemSearch = /*#__PURE__*/styled__default(GridItem)(_templateObject5$1 || (_templateObject5$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-white);\n border-top: 1px solid var(--base-color-light-grey);\n width: 100%;\n position: absolute;\n top: 140px;\n z-index: ", ";\n height: 100px;\n\n @media ", " {\n height: 100%;\n top: 80px;\n }\n"])), zIndexes.search, devices.mobile);
|
|
3312
|
-
var NavigationGridMobile = /*#__PURE__*/styled__default(Grid)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n display: grid;\n background-color: var(--base-color-white);\n padding-top: ", ";\n padding-bottom: var(--navigation-large-margin);\n }\n"])), devices.mobileAndTablet, function (_ref2) {
|
|
3340
|
+
var NavigationGridMobile = /*#__PURE__*/styled__default(Grid)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n display: grid;\n background-color: var(--base-color-white);\n padding-top: ", ";\n padding-bottom: var(--navigation-large-margin);\n }\n"])), devices.mobileAndTablet, function (_ref2) {
|
|
3313
3341
|
var theme = _ref2.theme;
|
|
3314
3342
|
return theme.spacing[12];
|
|
3315
3343
|
});
|
|
3316
|
-
var LogoContainer = /*#__PURE__*/styled__default.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 140px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n &&& .logoImg {\n height: 96px;\n width: 66px;\n }\n\n @media ", " {\n height: 80px;\n\n &&& .logoImg {\n width: 100%;\n height: 64px;\n }\n }\n"])), devices.mobile);
|
|
3317
|
-
var MenuContainer = /*#__PURE__*/styled__default.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 140px;\n\n @media ", " {\n flex-direction: row;\n height: 80px;\n justify-content: flex-end;\n }\n"])), devices.mobileAndTablet);
|
|
3344
|
+
var LogoContainer = /*#__PURE__*/styled__default.div(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 140px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n &&& .logoImg {\n height: 96px;\n width: 66px;\n }\n\n @media ", " {\n height: 80px;\n\n &&& .logoImg {\n width: 100%;\n height: 64px;\n }\n }\n"])), devices.mobile);
|
|
3345
|
+
var MenuContainer = /*#__PURE__*/styled__default.div(_templateObject8$1 || (_templateObject8$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 140px;\n\n @media ", " {\n flex-direction: row;\n height: 80px;\n justify-content: flex-end;\n }\n"])), devices.mobileAndTablet);
|
|
3318
3346
|
var NavContainer = /*#__PURE__*/styled__default.div(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 40px;\n margin-top: auto;\n\n @media ", " {\n background-color: var(--base-color-white);\n height: auto;\n margin-top: 0px;\n }\n"])), devices.mobileAndTablet);
|
|
3319
3347
|
var NavContainerGridItem = /*#__PURE__*/styled__default(GridItem)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n grid-column: 3 / span 14;\n }\n"])), devices.desktop);
|
|
3320
3348
|
var NavTopContainer = /*#__PURE__*/styled__default.div(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 26px;\n right: 50px;\n top: 20px;\n position: absolute;\n\n @media ", " {\n margin-top: 1px;\n position: inherit;\n }\n"])), devices.mobileAndTablet);
|
|
@@ -3848,13 +3876,13 @@ var Tabs = function Tabs(_ref) {
|
|
|
3848
3876
|
}, "MENU"))));
|
|
3849
3877
|
};
|
|
3850
3878
|
|
|
3851
|
-
var _templateObject$u, _templateObject2$f, _templateObject3$8, _templateObject5$2, _templateObject6$
|
|
3879
|
+
var _templateObject$u, _templateObject2$f, _templateObject3$8, _templateObject5$2, _templateObject6$2, _templateObject7$2;
|
|
3852
3880
|
var SearchBarContainer = /*#__PURE__*/styled__default.div(_templateObject$u || (_templateObject$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n column-gap: 64px;\n justify-content: space-between;\n align-items: center;\n height: 100%;\n background-color: var(--base-color-transparent);\n\n @media ", " {\n column-gap: 12px;\n }\n"])), devices.mobile);
|
|
3853
3881
|
var SvgContainerSearch = /*#__PURE__*/styled__default.div(_templateObject2$f || (_templateObject2$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg {\n width: var(--navigation-xlarge-gap);\n height: var(--navigation-xlarge-gap);\n }\n"])));
|
|
3854
3882
|
var SvgContainerClose = /*#__PURE__*/styled__default.div(_templateObject3$8 || (_templateObject3$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg {\n width: var(--navigation-large-gap);\n height: var(--navigation-large-gap);\n }\n\n :hover {\n cursor: pointer;\n && svg path {\n fill: var(--base-color-navigation);\n }\n }\n"])));
|
|
3855
3883
|
var InputContainer = /*#__PURE__*/styled__default.div(_templateObject5$2 || (_templateObject5$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: blue;\n width: 100%;\n\n input {\n font-size: var(--font-size-search);\n font-family: var(--font-family-search);\n border: none;\n border-radius: 0;\n outline: none;\n outline-color: var(--base-color-white);\n height: 48px;\n box-sizing: border-box;\n width: 100%;\n -webkit-appearance: none;\n\n &.search-input {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n @media ", " {\n column-gap: 24px;\n }\n }\n"])), devices.mobile);
|
|
3856
|
-
var SearchLinkContainer = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
3857
|
-
var SearchArrowContainer = /*#__PURE__*/styled__default.a(_templateObject7$
|
|
3884
|
+
var SearchLinkContainer = /*#__PURE__*/styled__default.div(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n display: none;\n }\n"])), devices.mobile);
|
|
3885
|
+
var SearchArrowContainer = /*#__PURE__*/styled__default.a(_templateObject7$2 || (_templateObject7$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n height: 24px;\n width: 24px;\n\n @media ", " {\n display: block;\n }\n"])), devices.mobile);
|
|
3858
3886
|
|
|
3859
3887
|
var SearchBar = function SearchBar(_ref) {
|
|
3860
3888
|
var onClick = _ref.onClick,
|
|
@@ -4079,13 +4107,13 @@ var Navigation = function Navigation(_ref) {
|
|
|
4079
4107
|
})))));
|
|
4080
4108
|
};
|
|
4081
4109
|
|
|
4082
|
-
var _templateObject$v, _templateObject2$g, _templateObject3$9, _templateObject4$5, _templateObject5$3, _templateObject6$
|
|
4110
|
+
var _templateObject$v, _templateObject2$g, _templateObject3$9, _templateObject4$5, _templateObject5$3, _templateObject6$3;
|
|
4083
4111
|
var FooterSection = /*#__PURE__*/styled__default.section(_templateObject$v || (_templateObject$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--base-color-black);\n color: var(--base-color-white);\n"])));
|
|
4084
4112
|
var FooterContainer = /*#__PURE__*/styled__default.div(_templateObject2$g || (_templateObject2$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--footer-height);\n padding-top: var(--footer-padding-top);\n padding-bottom: var(--footer-padding-bottom);\n display: grid;\n grid-template-rows:\n min-content var(--footer-vertical-spacing-lg) min-content var(--footer-vertical-spacing-lg) min-content var(\n --footer-vertical-spacing-sm\n )\n min-content;\n grid-template-areas:\n 'row1'\n '.'\n 'row2'\n '.'\n 'row3'\n '.'\n 'row4';\n"])));
|
|
4085
4113
|
var PolicyLinksRow = /*#__PURE__*/styled__default.div(_templateObject3$9 || (_templateObject3$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: row1;\n justify-self: center;\n\n @media ", " {\n & {\n justify-self: start;\n grid-area: row2;\n }\n }\n"])), devices.mobile);
|
|
4086
4114
|
var ContactNewsletterRow = /*#__PURE__*/styled__default.div(_templateObject4$5 || (_templateObject4$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: row2;\n\n @media ", " {\n & {\n grid-area: row1;\n }\n }\n"])), devices.mobile);
|
|
4087
4115
|
var ArtsLogoRow = /*#__PURE__*/styled__default.div(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: row3;\n justify-self: center;\n\n @media ", " {\n justify-self: start;\n }\n"])), devices.mobile);
|
|
4088
|
-
var AdditionalInfo = /*#__PURE__*/styled__default.p(_templateObject6$
|
|
4116
|
+
var AdditionalInfo = /*#__PURE__*/styled__default.p(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: row4;\n font-family: var(--font-family-body);\n font-size: var(--font-size-body-3);\n line-height: var(--line-height-body-3);\n text-align: center;\n margin: 0;\n padding: 0;\n\n @media ", " {\n text-align: left;\n }\n"])), devices.mobile);
|
|
4089
4117
|
|
|
4090
4118
|
var _templateObject$w, _templateObject2$h, _templateObject3$a;
|
|
4091
4119
|
var PolicyLinksList = /*#__PURE__*/styled__default.ul(_templateObject$w || (_templateObject$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 auto;\n padding: 0;\n list-style: none;\n display: flex;\n gap: var(--footer-items-gap);\n\n @media ", " {\n & {\n margin: 0;\n flex-direction: column;\n }\n }\n"])), devices.mobile);
|
|
@@ -4106,15 +4134,15 @@ var PolicyLinks = function PolicyLinks(_ref) {
|
|
|
4106
4134
|
}));
|
|
4107
4135
|
};
|
|
4108
4136
|
|
|
4109
|
-
var _templateObject$x, _templateObject2$i, _templateObject3$b, _templateObject4$6, _templateObject5$4, _templateObject6$
|
|
4137
|
+
var _templateObject$x, _templateObject2$i, _templateObject3$b, _templateObject4$6, _templateObject5$4, _templateObject6$4, _templateObject7$3, _templateObject8$2;
|
|
4110
4138
|
var ContactNewsletterWrapper = /*#__PURE__*/styled__default.div(_templateObject$x || (_templateObject$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: calc(50% - 1px) 2px calc(50% - 1px);\n grid-template-rows: 100px;\n gap: 0;\n\n @media ", " {\n & {\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: min-content min-content;\n gap: var(--footer-vertical-spacing-lg);\n }\n }\n"])), devices.mobile);
|
|
4111
4139
|
var ContactNewsletterSeparator = /*#__PURE__*/styled__default.div(_templateObject2$i || (_templateObject2$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 2;\n justify-self: center;\n height: 100%;\n border: 1px solid var(--base-color-white);\n\n @media ", " {\n & {\n grid-column: auto;\n display: none;\n }\n }\n"])), devices.mobile);
|
|
4112
4140
|
var SignUpWrapper = /*#__PURE__*/styled__default.div(_templateObject3$b || (_templateObject3$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 1;\n padding-top: 9px;\n justify-self: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n @media ", " {\n & {\n grid-column: auto;\n align-items: start;\n justify-self: start;\n padding-top: 0;\n }\n }\n"])), devices.mobile);
|
|
4113
4141
|
var SignUpText = /*#__PURE__*/styled__default.p(_templateObject4$6 || (_templateObject4$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-size: var(--font-size-body-2);\n line-height: var(--line-height-body-2);\n width: 60%;\n margin: 0 auto;\n height: 60px;\n text-align: center;\n\n @media ", " {\n & {\n width: 100%;\n height: auto;\n text-align: left;\n font-size: 14px;\n margin-bottom: var(--footer-vertical-spacing-lg);\n }\n }\n"])), devices.mobile);
|
|
4114
4142
|
var ContactWrapper = /*#__PURE__*/styled__default.div(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 3;\n justify-self: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 9px;\n\n @media ", " {\n & {\n grid-column: auto;\n align-items: start;\n justify-self: start;\n padding-top: 0;\n }\n }\n"])), devices.mobile);
|
|
4115
|
-
var MediaLinksWrapper = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
4116
|
-
var MediaIconWrapper = /*#__PURE__*/styled__default.a(_templateObject7$
|
|
4117
|
-
var TextLinkWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$
|
|
4143
|
+
var MediaLinksWrapper = /*#__PURE__*/styled__default.div(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: var(--footer-media-gap);\n height: 60px;\n\n @media ", " {\n & {\n height: auto;\n margin-bottom: var(--footer-vertical-spacing-lg);\n }\n }\n"])), devices.mobile);
|
|
4144
|
+
var MediaIconWrapper = /*#__PURE__*/styled__default.a(_templateObject7$3 || (_templateObject7$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--footer-media-icon-height);\n width: var(--footer-media-icon-width);\n"])));
|
|
4145
|
+
var TextLinkWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &&& {\n font-family: var(--font-family-overline);\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n line-height: var(--line-height-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n text-transform: var(--text-transform-overline);\n }\n"])));
|
|
4118
4146
|
|
|
4119
4147
|
var ContactNewsletter = function ContactNewsletter(_ref) {
|
|
4120
4148
|
var signUpText = _ref.signUpText,
|
|
@@ -4139,7 +4167,7 @@ var ContactNewsletter = function ContactNewsletter(_ref) {
|
|
|
4139
4167
|
}, contact.title))));
|
|
4140
4168
|
};
|
|
4141
4169
|
|
|
4142
|
-
var _excluded$
|
|
4170
|
+
var _excluded$6 = ["dataRoh"];
|
|
4143
4171
|
|
|
4144
4172
|
var Footer = function Footer(_ref) {
|
|
4145
4173
|
var data = _ref.data;
|
|
@@ -4150,7 +4178,7 @@ var Footer = function Footer(_ref) {
|
|
|
4150
4178
|
|
|
4151
4179
|
var _data$artsLogo = data.artsLogo,
|
|
4152
4180
|
artsDataRoh = _data$artsLogo.dataRoh,
|
|
4153
|
-
artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, _excluded$
|
|
4181
|
+
artsLogo = _objectWithoutPropertiesLoose(_data$artsLogo, _excluded$6);
|
|
4154
4182
|
|
|
4155
4183
|
var additionalInfo = data.additionalInfo;
|
|
4156
4184
|
return /*#__PURE__*/React__default.createElement(FooterSection, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
@@ -4180,7 +4208,7 @@ var Footer = function Footer(_ref) {
|
|
|
4180
4208
|
}, additionalInfo)))));
|
|
4181
4209
|
};
|
|
4182
4210
|
|
|
4183
|
-
var _templateObject$y, _templateObject2$j, _templateObject3$c, _templateObject4$7, _templateObject5$5, _templateObject6$
|
|
4211
|
+
var _templateObject$y, _templateObject2$j, _templateObject3$c, _templateObject4$7, _templateObject5$5, _templateObject6$5;
|
|
4184
4212
|
var LIST_ITEM_GAP = 32;
|
|
4185
4213
|
var AnchorTabbarWrapper = /*#__PURE__*/styled__default.div(_templateObject$y || (_templateObject$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n width: 100%;\n top: 0;\n border-bottom: ", ";\n background-color: var(--base-color-white);\n z-index: ", ";\n"])), function (_ref) {
|
|
4186
4214
|
var bottomBorder = _ref.bottomBorder;
|
|
@@ -4203,9 +4231,9 @@ var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject5$5 || (_t
|
|
|
4203
4231
|
var fullWidth = _ref5.fullWidth;
|
|
4204
4232
|
return fullWidth ? '74px' : '46px';
|
|
4205
4233
|
});
|
|
4206
|
-
var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
4234
|
+
var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject6$5 || (_templateObject6$5 = /*#__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"])));
|
|
4207
4235
|
|
|
4208
|
-
var _excluded$
|
|
4236
|
+
var _excluded$7 = ["id", "text"];
|
|
4209
4237
|
|
|
4210
4238
|
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
4211
4239
|
var tabs = _ref.tabs,
|
|
@@ -4421,7 +4449,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
4421
4449
|
}, tabs.map(function (_ref4) {
|
|
4422
4450
|
var id = _ref4.id,
|
|
4423
4451
|
text = _ref4.text,
|
|
4424
|
-
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$
|
|
4452
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$7);
|
|
4425
4453
|
|
|
4426
4454
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
4427
4455
|
key: id
|
|
@@ -4482,7 +4510,7 @@ var CarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject$z || (_te
|
|
|
4482
4510
|
}
|
|
4483
4511
|
});
|
|
4484
4512
|
var TitleButtonsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$k || (_templateObject2$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 28px;\n\n @media ", " {\n margin-bottom: 20px;\n }\n"])), devices.mobile);
|
|
4485
|
-
var TitleWrapper = /*#__PURE__*/styled__default.div(_templateObject3$d || (_templateObject3$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n align-items: center;\n user-select: text;\n\n h4 {\n padding: 0;\n margin: 0;\n }\n"])));
|
|
4513
|
+
var TitleWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$d || (_templateObject3$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n align-items: center;\n user-select: text;\n\n h4 {\n padding: 0;\n margin: 0;\n }\n"])));
|
|
4486
4514
|
var ButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n\n @media ", " {\n display: none;\n }\n"])), devices.mobile);
|
|
4487
4515
|
var TitleGridItem = /*#__PURE__*/styled__default(GridItem)(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n {\n grid-column: 2 / span 10;\n }\n }\n"])), devices.tablet);
|
|
4488
4516
|
|
|
@@ -4560,7 +4588,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4560
4588
|
columnSpanDesktop: 10,
|
|
4561
4589
|
columnStartDevice: 2,
|
|
4562
4590
|
columnSpanDevice: 12
|
|
4563
|
-
}, /*#__PURE__*/React__default.createElement(TitleWrapper, {
|
|
4591
|
+
}, /*#__PURE__*/React__default.createElement(TitleWrapper$1, {
|
|
4564
4592
|
"data-testid": "carousel-title-wrapper"
|
|
4565
4593
|
}, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
4566
4594
|
level: 4
|
|
@@ -4601,7 +4629,7 @@ var Theme = function Theme(_ref) {
|
|
|
4601
4629
|
}, children);
|
|
4602
4630
|
};
|
|
4603
4631
|
|
|
4604
|
-
var _templateObject$A, _templateObject2$l, _templateObject3$e, _templateObject4$9, _templateObject5$7, _templateObject6$
|
|
4632
|
+
var _templateObject$A, _templateObject2$l, _templateObject3$e, _templateObject4$9, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13;
|
|
4605
4633
|
var HighlightsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$A || (_templateObject$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--base-color-black);\n color: var(--base-color-white);\n user-select: none;\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
|
|
4606
4634
|
var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$l || (_templateObject2$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n h4 {\n margin: 0;\n padding: 0;\n }\n\n h5 {\n display: none;\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 12;\n padding: 12px 0 12px var(--grid-margin);\n min-height: 64px;\n box-sizing: border-box;\n width: 100%;\n\n h4 {\n display: none;\n }\n\n h5 {\n margin: 0;\n padding: 0;\n display: block;\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: 40px;\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: var(--line-height-altHeader-5);\n\n h4 {\n display: none;\n }\n\n h5 {\n margin: 0;\n padding: 0;\n display: block;\n }\n }\n }\n"])), devices.tablet, function (_ref) {
|
|
4607
4635
|
var theme = _ref.theme;
|
|
@@ -4640,7 +4668,7 @@ var InfoTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject5$7 || (_
|
|
|
4640
4668
|
var theme = _ref11.theme;
|
|
4641
4669
|
return theme.fonts.mobile.lineHeights.subtitles[2];
|
|
4642
4670
|
});
|
|
4643
|
-
var InfoTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
4671
|
+
var InfoTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 24px;\n user-select: text;\n h6 {\n padding: 0;\n margin: 0 0 4px 0;\n }\n\n @media ", " {\n & {\n margin-top: 20px;\n\n h6 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n\n > div {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n\n @media ", " {\n & {\n margin-top: 20px;\n h6 {\n margin: 0 0 8px 0;\n }\n }\n }\n"])), devices.tablet, function (_ref12) {
|
|
4644
4672
|
var theme = _ref12.theme;
|
|
4645
4673
|
return theme.fonts.mobile.sizes.subtitles[2];
|
|
4646
4674
|
}, function (_ref13) {
|
|
@@ -4665,12 +4693,13 @@ var InfoTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$5 || (_t
|
|
|
4665
4693
|
var theme = _ref19.theme;
|
|
4666
4694
|
return theme.fonts.mobile.lineHeights.body[1];
|
|
4667
4695
|
}, devices.mobile);
|
|
4668
|
-
var InfoLinkWrapper = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
4669
|
-
var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$
|
|
4696
|
+
var InfoLinkWrapper = /*#__PURE__*/styled__default.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n flex-direction: row;\n\n @media ", " {\n & {\n margin-top: 16px;\n }\n }\n\n @media ", " {\n & {\n margin-top: 20px;\n }\n display: flex;\n flex-direction: column;\n }\n"])), devices.tablet, devices.mobile);
|
|
4697
|
+
var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 7 / 3 / 17;\n position: relative;\n height: 100%;\n width: 100%;\n\n .swiper-slide {\n width: calc(100% - 50px - var(--rotator-button-width));\n -webkit-transform: translate3d(0, 0, 0);\n }\n\n @media ", " {\n & {\n grid-area: 2 / 7 / 3 / 15;\n\n .swiper-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 3 / 15;\n\n .swiper-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4670
4698
|
var RotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: 50px;\n top: calc(50% - calc(var(--rotator-button-width) / 2));\n z-index: 2;\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.mobileAndTablet);
|
|
4671
4699
|
var RotatorButtonsWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n & {\n display: flex;\n grid-area: 1 / 12 / 2 / 14;\n align-self: center;\n justify-content: flex-end;\n }\n }\n\n @media ", " {\n & {\n display: flex;\n grid-area: 1 / 11 / 2 / 14;\n align-self: center;\n justify-content: flex-end;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4672
4700
|
var HtmlBodyText = /*#__PURE__*/styled__default.p(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n"])));
|
|
4673
4701
|
var FirstButtonComponentWrapper = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 16px;\n\n @media ", " {\n & {\n display: flex;\n flex-direction: column;\n margin-right: 0;\n margin-bottom: 10px;\n }\n }\n"])), devices.mobile);
|
|
4702
|
+
var TimerWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n\n @media ", " {\n margin-bottom: 24px;\n }\n"])), devices.mobileAndTablet);
|
|
4674
4703
|
|
|
4675
4704
|
var TEXT_STYLE_HTML_TAGS_REGEXP = '<em>|</em>|<b>|</b>';
|
|
4676
4705
|
var stripAllHtmlTags = function stripAllHtmlTags(htmlString) {
|
|
@@ -4727,7 +4756,7 @@ var truncateHtmlString = function truncateHtmlString(str, resultLength, addDots)
|
|
|
4727
4756
|
return addDots ? truncatedString + "..." : truncatedString;
|
|
4728
4757
|
};
|
|
4729
4758
|
|
|
4730
|
-
var _excluded$
|
|
4759
|
+
var _excluded$8 = ["text"],
|
|
4731
4760
|
_excluded2 = ["text"];
|
|
4732
4761
|
|
|
4733
4762
|
var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
@@ -4735,7 +4764,8 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
4735
4764
|
|
|
4736
4765
|
var logo = _ref.logo,
|
|
4737
4766
|
carouselTitle = _ref.carouselTitle,
|
|
4738
|
-
slides = _ref.slides
|
|
4767
|
+
slides = _ref.slides,
|
|
4768
|
+
timerParams = _ref.timerParams;
|
|
4739
4769
|
var images = React.useMemo(function () {
|
|
4740
4770
|
return slides.map(function (_ref2) {
|
|
4741
4771
|
var image = _ref2.image;
|
|
@@ -4773,7 +4803,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
4773
4803
|
var _ref3 = firstButton || {},
|
|
4774
4804
|
_ref3$text = _ref3.text,
|
|
4775
4805
|
firstButtonText = _ref3$text === void 0 ? '' : _ref3$text,
|
|
4776
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
4806
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref3, _excluded$8);
|
|
4777
4807
|
|
|
4778
4808
|
var secondButton = links == null ? void 0 : links[1];
|
|
4779
4809
|
|
|
@@ -4818,7 +4848,13 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
4818
4848
|
onClickPrev: onPrev
|
|
4819
4849
|
})), /*#__PURE__*/React__default.createElement(InfoWrapper, {
|
|
4820
4850
|
"data-testid": "info-wrapper"
|
|
4821
|
-
},
|
|
4851
|
+
}, timerParams && /*#__PURE__*/React__default.createElement(TimerWrapper$1, {
|
|
4852
|
+
"data-testid": "hightlight-carousel-timer-wrapper"
|
|
4853
|
+
}, /*#__PURE__*/React__default.createElement(Timer, {
|
|
4854
|
+
color: exports.Colors.White,
|
|
4855
|
+
endDate: timerParams.endDate,
|
|
4856
|
+
title: timerParams.title
|
|
4857
|
+
})), logo ? /*#__PURE__*/React__default.createElement(InfoLogoWrapper, null, logo) : null, /*#__PURE__*/React__default.createElement(InfoTitleWrapper, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
4822
4858
|
level: 3
|
|
4823
4859
|
}, infoTitle), /*#__PURE__*/React__default.createElement(Subtitle, {
|
|
4824
4860
|
level: 2,
|
|
@@ -4853,12 +4889,12 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
4853
4889
|
}))));
|
|
4854
4890
|
};
|
|
4855
4891
|
|
|
4856
|
-
var _excluded$
|
|
4892
|
+
var _excluded$9 = ["logo", "slides"];
|
|
4857
4893
|
|
|
4858
4894
|
var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
4859
4895
|
var logo = _ref.logo,
|
|
4860
4896
|
slides = _ref.slides,
|
|
4861
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4897
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
4862
4898
|
|
|
4863
4899
|
var cinemaLink = {
|
|
4864
4900
|
color: exports.Colors.Cinema,
|
|
@@ -4883,11 +4919,11 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
|
4883
4919
|
})));
|
|
4884
4920
|
};
|
|
4885
4921
|
|
|
4886
|
-
var _excluded$
|
|
4922
|
+
var _excluded$a = ["slides"];
|
|
4887
4923
|
|
|
4888
4924
|
var HighlightsCore = function HighlightsCore(_ref) {
|
|
4889
4925
|
var slides = _ref.slides,
|
|
4890
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4926
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
4891
4927
|
|
|
4892
4928
|
var newSlides = slides.map(function (slide) {
|
|
4893
4929
|
var _slide$links$1$color, _slide$links$;
|
|
@@ -4907,12 +4943,12 @@ var HighlightsCore = function HighlightsCore(_ref) {
|
|
|
4907
4943
|
})));
|
|
4908
4944
|
};
|
|
4909
4945
|
|
|
4910
|
-
var _excluded$
|
|
4946
|
+
var _excluded$b = ["logo", "slides"];
|
|
4911
4947
|
|
|
4912
4948
|
var HighlightsStream = function HighlightsStream(_ref) {
|
|
4913
4949
|
var logo = _ref.logo,
|
|
4914
4950
|
slides = _ref.slides,
|
|
4915
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4951
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4916
4952
|
|
|
4917
4953
|
var newSlides = slides.map(function (slide) {
|
|
4918
4954
|
var _slide$links$1$color, _slide$links$;
|
|
@@ -4933,7 +4969,7 @@ var HighlightsStream = function HighlightsStream(_ref) {
|
|
|
4933
4969
|
})));
|
|
4934
4970
|
};
|
|
4935
4971
|
|
|
4936
|
-
var _templateObject$B, _templateObject2$m, _templateObject3$f, _templateObject4$a, _templateObject6$
|
|
4972
|
+
var _templateObject$B, _templateObject2$m, _templateObject3$f, _templateObject4$a, _templateObject6$7, _templateObject7$5, _templateObject8$4, _templateObject9$2, _templateObject10$2;
|
|
4937
4973
|
var TitleCTAGridWrapper = /*#__PURE__*/styled__default.div(_templateObject$B || (_templateObject$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: ", ";\n top: -1px;\n background-color: var(--base-color-white);\n z-index: ", ";\n"])), function (_ref) {
|
|
4938
4974
|
var sticky = _ref.sticky;
|
|
4939
4975
|
return sticky ? 'sticky' : 'initial';
|
|
@@ -4944,9 +4980,9 @@ var TitleCTAGridItem = /*#__PURE__*/styled__default.div(_templateObject3$f || (_
|
|
|
4944
4980
|
return title ? 'row' : 'row-reverse';
|
|
4945
4981
|
}, devices.tablet, devices.mobile);
|
|
4946
4982
|
var AnchorTitle = /*#__PURE__*/styled__default.div(_templateObject4$a || (_templateObject4$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n min-height: var(--button-height);\n\n h5 {\n padding: 0;\n margin: 0;\n }\n\n @media ", " {\n & {\n min-height: 50px;\n }\n }\n"])), devices.mobile);
|
|
4947
|
-
var ButtonsDesktopWrapper = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
4948
|
-
var ButtonsMobileWrapper = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
4949
|
-
var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject8$
|
|
4983
|
+
var ButtonsDesktopWrapper = /*#__PURE__*/styled__default.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n\n @media ", " {\n display: none;\n }\n\n a {\n width: max-content;\n }\n"])), devices.mobile);
|
|
4984
|
+
var ButtonsMobileWrapper = /*#__PURE__*/styled__default.div(_templateObject7$5 || (_templateObject7$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n & {\n display: block;\n }\n }\n"])), devices.mobile);
|
|
4985
|
+
var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n svg path {\n fill: ", ";\n }\n }\n"])), function (_ref3) {
|
|
4950
4986
|
var theme = _ref3.theme;
|
|
4951
4987
|
return theme.colors.primaryButtonReverseBg;
|
|
4952
4988
|
}, function (_ref4) {
|
|
@@ -4962,7 +4998,7 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
|
|
|
4962
4998
|
var MessageWrapper = /*#__PURE__*/styled__default.div(_templateObject9$2 || (_templateObject9$2 = /*#__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);
|
|
4963
4999
|
var MessageWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject10$2 || (_templateObject10$2 = /*#__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);
|
|
4964
5000
|
|
|
4965
|
-
var _excluded$
|
|
5001
|
+
var _excluded$c = ["text"],
|
|
4966
5002
|
_excluded2$1 = ["text"];
|
|
4967
5003
|
|
|
4968
5004
|
var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
@@ -4974,7 +5010,7 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
|
4974
5010
|
|
|
4975
5011
|
var _ref2 = (links == null ? void 0 : links[0]) || {},
|
|
4976
5012
|
primaryButtonText = _ref2.text,
|
|
4977
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5013
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
|
|
4978
5014
|
|
|
4979
5015
|
var _ref3 = (links == null ? void 0 : links[1]) || {},
|
|
4980
5016
|
secondaryButtonText = _ref3.text,
|
|
@@ -5086,6 +5122,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
5086
5122
|
_ref$showLine = _ref.showLine,
|
|
5087
5123
|
showLine = _ref$showLine === void 0 ? true : _ref$showLine,
|
|
5088
5124
|
children = _ref.children,
|
|
5125
|
+
visibleStandfirst = _ref.visibleStandfirst,
|
|
5089
5126
|
_ref$initOpen = _ref.initOpen,
|
|
5090
5127
|
initOpen = _ref$initOpen === void 0 ? false : _ref$initOpen;
|
|
5091
5128
|
|
|
@@ -5134,13 +5171,21 @@ var Accordion = function Accordion(_ref) {
|
|
|
5134
5171
|
}
|
|
5135
5172
|
};
|
|
5136
5173
|
|
|
5174
|
+
var Standfirst = function Standfirst() {
|
|
5175
|
+
if (visibleStandfirst) {
|
|
5176
|
+
return /*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, null, visibleStandfirst));
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
return null;
|
|
5180
|
+
};
|
|
5181
|
+
|
|
5137
5182
|
return /*#__PURE__*/React__default.createElement(AccordionContainer, null, /*#__PURE__*/React__default.createElement(LineContainer, null), /*#__PURE__*/React__default.createElement(TitleContainer$1, {
|
|
5138
5183
|
onClick: toggleAccordion,
|
|
5139
5184
|
onKeyDown: keyDown,
|
|
5140
5185
|
tabIndex: 0
|
|
5141
|
-
}, /*#__PURE__*/React__default.createElement("a", null, title), /*#__PURE__*/React__default.createElement(Icon, {
|
|
5186
|
+
}, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("a", null, title)), /*#__PURE__*/React__default.createElement(Icon, {
|
|
5142
5187
|
iconName: iconName
|
|
5143
|
-
})), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
5188
|
+
})), /*#__PURE__*/React__default.createElement(Standfirst, null), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
5144
5189
|
"data-testid": "richcontainer",
|
|
5145
5190
|
ref: content,
|
|
5146
5191
|
style: {
|
|
@@ -5166,7 +5211,8 @@ var Accordions = function Accordions(_ref) {
|
|
|
5166
5211
|
return /*#__PURE__*/React__default.createElement(Accordion, {
|
|
5167
5212
|
key: accordion.title + "-" + index,
|
|
5168
5213
|
title: accordion.title,
|
|
5169
|
-
showLine: isLastAccordion(index)
|
|
5214
|
+
showLine: isLastAccordion(index),
|
|
5215
|
+
visibleStandfirst: accordion.visibleStandfirst
|
|
5170
5216
|
}, accordion.children);
|
|
5171
5217
|
}));
|
|
5172
5218
|
};
|
|
@@ -5214,7 +5260,7 @@ var AnnouncementBanner = function AnnouncementBanner(_ref) {
|
|
|
5214
5260
|
}))))));
|
|
5215
5261
|
};
|
|
5216
5262
|
|
|
5217
|
-
var _templateObject$G, _templateObject2$q, _templateObject3$i, _templateObject4$c, _templateObject5$9, _templateObject6$
|
|
5263
|
+
var _templateObject$G, _templateObject2$q, _templateObject3$i, _templateObject4$c, _templateObject5$9, _templateObject6$8, _templateObject7$6, _templateObject8$5, _templateObject9$3, _templateObject10$3, _templateObject11$2;
|
|
5218
5264
|
var LENGTH_LARGE_TEXT = 28;
|
|
5219
5265
|
var LENGTH_SMALL_TEXT = 19;
|
|
5220
5266
|
var LENGTH_TEXT_TABLET = 10;
|
|
@@ -5222,9 +5268,10 @@ var CardContainer = /*#__PURE__*/styled__default.div(_templateObject$G || (_temp
|
|
|
5222
5268
|
var onlyShowButtonsOnHover = _ref.onlyShowButtonsOnHover;
|
|
5223
5269
|
return !onlyShowButtonsOnHover ? "height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between; \n " : '';
|
|
5224
5270
|
});
|
|
5225
|
-
var HoverContainer = /*#__PURE__*/styled__default.div(_templateObject2$q || (_templateObject2$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--editorial-spacing-hover);\n background-color:
|
|
5226
|
-
var lineColor = _ref2.lineColor
|
|
5227
|
-
|
|
5271
|
+
var HoverContainer = /*#__PURE__*/styled__default.div(_templateObject2$q || (_templateObject2$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--editorial-spacing-hover);\n background-color: ", ";\n position: absolute;\n width: 100%;\n z-index: ", ";\n"])), function (_ref2) {
|
|
5272
|
+
var lineColor = _ref2.lineColor,
|
|
5273
|
+
theme = _ref2.theme;
|
|
5274
|
+
return lineColor ? "var(--base-color-" + lineColor + ")" : theme.colors.primary;
|
|
5228
5275
|
}, zIndexes.contentOverlay);
|
|
5229
5276
|
var ProgressContainer = /*#__PURE__*/styled__default.div(_templateObject3$i || (_templateObject3$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: -10px;\n"])));
|
|
5230
5277
|
var ContentContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin-top: var(--editorial-margin-between);\n\n @media ", " {\n margin-left: ", ";\n margin-right: ", ";\n }\n"])), devices.mobile, function (_ref3) {
|
|
@@ -5235,24 +5282,30 @@ var ContentContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$c ||
|
|
|
5235
5282
|
return fullWidth ? '0' : '20px';
|
|
5236
5283
|
});
|
|
5237
5284
|
var TitleContainer$2 = /*#__PURE__*/styled__default.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n\n @media ", " {\n display: none;\n }\n"])), devices.mobileAndTablet);
|
|
5238
|
-
var TitleContainerMobile = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
5239
|
-
var TextContainer = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
5240
|
-
var SubtitleContainer = /*#__PURE__*/styled__default.span(_templateObject8$
|
|
5285
|
+
var TitleContainerMobile = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n display: none;\n\n @media ", " {\n display: block;\n }\n"])), devices.mobileAndTablet);
|
|
5286
|
+
var TextContainer = /*#__PURE__*/styled__default.div(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin-top: var(--editorial-spacing-hover);\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n em {\n font-family: var(--font-family-body-italics);\n }\n"])));
|
|
5287
|
+
var SubtitleContainer = /*#__PURE__*/styled__default.span(_templateObject8$5 || (_templateObject8$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n display: block;\n overflow-wrap: break-word;\n"])));
|
|
5288
|
+
var LabelContainer = /*#__PURE__*/styled__default.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n position: absolute;\n top: -32px;\n left: 0;\n height: 32px;\n padding: 0 8px;\n background-color: ", ";\n color: var(--base-color-white);\n"])), function (_ref5) {
|
|
5289
|
+
var bgColor = _ref5.bgColor,
|
|
5290
|
+
theme = _ref5.theme;
|
|
5291
|
+
return bgColor ? "var(--base-color-" + bgColor + ")" : theme.colors.primary;
|
|
5292
|
+
});
|
|
5293
|
+
var LabelIconWrapper = /*#__PURE__*/styled__default.div(_templateObject10$3 || (_templateObject10$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-left: 10px;\n\n svg {\n height: 24px;\n width: 24px;\n }\n"])));
|
|
5241
5294
|
|
|
5242
|
-
var getButtonsOpacity = function getButtonsOpacity(
|
|
5243
|
-
var onlyShowButtonsOnHover =
|
|
5295
|
+
var getButtonsOpacity = function getButtonsOpacity(_ref6) {
|
|
5296
|
+
var onlyShowButtonsOnHover = _ref6.onlyShowButtonsOnHover;
|
|
5244
5297
|
return onlyShowButtonsOnHover ? 'opacity: 0;' : 'opacity: 1;';
|
|
5245
5298
|
};
|
|
5246
5299
|
|
|
5247
|
-
var getButtonsMinHeight = function getButtonsMinHeight(
|
|
5248
|
-
var onlyShowButtonsOnHover =
|
|
5300
|
+
var getButtonsMinHeight = function getButtonsMinHeight(_ref7) {
|
|
5301
|
+
var onlyShowButtonsOnHover = _ref7.onlyShowButtonsOnHover;
|
|
5249
5302
|
return onlyShowButtonsOnHover ? 'min-height: unset;' : 'min-height: 120px;';
|
|
5250
5303
|
};
|
|
5251
5304
|
|
|
5252
|
-
var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(
|
|
5253
|
-
var size =
|
|
5254
|
-
primaryButtonTextLength =
|
|
5255
|
-
tertiaryButtonTextLength =
|
|
5305
|
+
var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject11$2 || (_templateObject11$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n ", ";\n margin-left: ", ";\n margin-right: ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), getButtonsOpacity, function (_ref8) {
|
|
5306
|
+
var size = _ref8.size,
|
|
5307
|
+
primaryButtonTextLength = _ref8.primaryButtonTextLength,
|
|
5308
|
+
tertiaryButtonTextLength = _ref8.tertiaryButtonTextLength;
|
|
5256
5309
|
var isLinksLayoutColumn = size === 'small' ? primaryButtonTextLength >= LENGTH_SMALL_TEXT || tertiaryButtonTextLength >= LENGTH_SMALL_TEXT : primaryButtonTextLength >= LENGTH_LARGE_TEXT || tertiaryButtonTextLength >= LENGTH_LARGE_TEXT;
|
|
5257
5310
|
|
|
5258
5311
|
if (isLinksLayoutColumn) {
|
|
@@ -5260,15 +5313,15 @@ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject9$3 ||
|
|
|
5260
5313
|
}
|
|
5261
5314
|
|
|
5262
5315
|
return '';
|
|
5263
|
-
}, devices.mobile, getButtonsMinHeight, function (
|
|
5264
|
-
var fullWidth = _ref8.fullWidth;
|
|
5265
|
-
return fullWidth ? '0' : '20px';
|
|
5266
|
-
}, function (_ref9) {
|
|
5316
|
+
}, devices.mobile, getButtonsMinHeight, function (_ref9) {
|
|
5267
5317
|
var fullWidth = _ref9.fullWidth;
|
|
5268
5318
|
return fullWidth ? '0' : '20px';
|
|
5269
|
-
},
|
|
5270
|
-
var
|
|
5271
|
-
|
|
5319
|
+
}, function (_ref10) {
|
|
5320
|
+
var fullWidth = _ref10.fullWidth;
|
|
5321
|
+
return fullWidth ? '0' : '20px';
|
|
5322
|
+
}, devices.tablet, getButtonsMinHeight, function (_ref11) {
|
|
5323
|
+
var primaryButtonTextLength = _ref11.primaryButtonTextLength,
|
|
5324
|
+
tertiaryButtonTextLength = _ref11.tertiaryButtonTextLength;
|
|
5272
5325
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET;
|
|
5273
5326
|
|
|
5274
5327
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -5279,29 +5332,47 @@ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject9$3 ||
|
|
|
5279
5332
|
});
|
|
5280
5333
|
|
|
5281
5334
|
var _templateObject$H, _templateObject2$r, _templateObject3$j;
|
|
5282
|
-
var ProgressView = /*#__PURE__*/styled__default.div(_templateObject$H || (_templateObject$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height:
|
|
5283
|
-
var
|
|
5284
|
-
|
|
5335
|
+
var ProgressView = /*#__PURE__*/styled__default.div(_templateObject$H || (_templateObject$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: ", ";\n width: 100%;\n display: flex;\n flex-direction: row;\n"])), function (_ref) {
|
|
5336
|
+
var height = _ref.height;
|
|
5337
|
+
return height ? height + "px" : '6px';
|
|
5338
|
+
});
|
|
5339
|
+
var ElapsedProgressView = /*#__PURE__*/styled__default.div(_templateObject2$r || (_templateObject2$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: ", ";\n flex: ", ";\n"])), function (_ref2) {
|
|
5340
|
+
var color = _ref2.color;
|
|
5341
|
+
return color ? "var(--base-color-" + color + ")" : 'var(--base-color-progress)';
|
|
5342
|
+
}, function (_ref3) {
|
|
5343
|
+
var progress = _ref3.progress;
|
|
5285
5344
|
return progress;
|
|
5286
5345
|
});
|
|
5287
|
-
var PendingProgressView = /*#__PURE__*/styled__default.div(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color:
|
|
5288
|
-
var
|
|
5346
|
+
var PendingProgressView = /*#__PURE__*/styled__default.div(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: ", ";\n opacity: 0.5;\n flex: ", ";\n"])), function (_ref4) {
|
|
5347
|
+
var color = _ref4.color;
|
|
5348
|
+
return color ? "var(--base-color-" + color + ")" : 'var(--base-color-white)';
|
|
5349
|
+
}, function (_ref5) {
|
|
5350
|
+
var progress = _ref5.progress;
|
|
5289
5351
|
return progress;
|
|
5290
5352
|
});
|
|
5291
5353
|
|
|
5292
5354
|
var Progress = function Progress(_ref) {
|
|
5293
5355
|
var _ref$progress = _ref.progress,
|
|
5294
|
-
progress = _ref$progress === void 0 ? 0 : _ref$progress
|
|
5295
|
-
|
|
5356
|
+
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
5357
|
+
_ref$height = _ref.height,
|
|
5358
|
+
height = _ref$height === void 0 ? 6 : _ref$height,
|
|
5359
|
+
elapsedLineColor = _ref.elapsedLineColor,
|
|
5360
|
+
pendingLineColor = _ref.pendingLineColor;
|
|
5361
|
+
return /*#__PURE__*/React__default.createElement(ProgressView, {
|
|
5362
|
+
height: height,
|
|
5363
|
+
"data-testid": "progress-container"
|
|
5364
|
+
}, /*#__PURE__*/React__default.createElement(ElapsedProgressView, {
|
|
5365
|
+
color: elapsedLineColor,
|
|
5296
5366
|
progress: progress,
|
|
5297
5367
|
"data-testid": "elapsedprogress"
|
|
5298
5368
|
}), /*#__PURE__*/React__default.createElement(PendingProgressView, {
|
|
5369
|
+
color: pendingLineColor,
|
|
5299
5370
|
progress: 100 - progress,
|
|
5300
5371
|
"data-testid": "pendingprogress"
|
|
5301
5372
|
}));
|
|
5302
5373
|
};
|
|
5303
5374
|
|
|
5304
|
-
var _excluded$
|
|
5375
|
+
var _excluded$d = ["text"],
|
|
5305
5376
|
_excluded2$2 = ["text"];
|
|
5306
5377
|
|
|
5307
5378
|
var _buttonTypeToButton;
|
|
@@ -5310,6 +5381,8 @@ var LENGTH_SMALL_TEXT$1 = 19;
|
|
|
5310
5381
|
var buttonTypeToButton = (_buttonTypeToButton = {}, _buttonTypeToButton[exports.ButtonType.Primary] = PrimaryButton, _buttonTypeToButton[exports.ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton[exports.ButtonType.Tertiary] = Button$1, _buttonTypeToButton);
|
|
5311
5382
|
|
|
5312
5383
|
var Card = function Card(_ref) {
|
|
5384
|
+
var _labelParams$color;
|
|
5385
|
+
|
|
5313
5386
|
var _ref$progress = _ref.progress,
|
|
5314
5387
|
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
5315
5388
|
_ref$title = _ref.title,
|
|
@@ -5331,8 +5404,8 @@ var Card = function Card(_ref) {
|
|
|
5331
5404
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
5332
5405
|
_ref$onlyShowButtonsO = _ref.onlyShowButtonsOnHover,
|
|
5333
5406
|
onlyShowButtonsOnHover = _ref$onlyShowButtonsO === void 0 ? true : _ref$onlyShowButtonsO,
|
|
5334
|
-
|
|
5335
|
-
|
|
5407
|
+
hoverLineColor = _ref.hoverLineColor,
|
|
5408
|
+
labelParams = _ref.labelParams;
|
|
5336
5409
|
|
|
5337
5410
|
var truncate = function truncate(str, n) {
|
|
5338
5411
|
return str.length >= n ? str.substr(0, n) : str;
|
|
@@ -5350,7 +5423,7 @@ var Card = function Card(_ref) {
|
|
|
5350
5423
|
var _ref2 = firstButton || {},
|
|
5351
5424
|
_ref2$text = _ref2.text,
|
|
5352
5425
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
5353
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5426
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$d);
|
|
5354
5427
|
|
|
5355
5428
|
var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$1) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
|
|
5356
5429
|
var secondButton = links == null ? void 0 : links[1];
|
|
@@ -5385,7 +5458,15 @@ var Card = function Card(_ref) {
|
|
|
5385
5458
|
},
|
|
5386
5459
|
onlyShowButtonsOnHover: onlyShowButtonsOnHover,
|
|
5387
5460
|
"data-testid": "cardcontainer"
|
|
5388
|
-
},
|
|
5461
|
+
}, labelParams && /*#__PURE__*/React__default.createElement(LabelContainer, {
|
|
5462
|
+
bgColor: labelParams.bgColor
|
|
5463
|
+
}, /*#__PURE__*/React__default.createElement(Overline, {
|
|
5464
|
+
level: 2
|
|
5465
|
+
}, labelParams.text), labelParams.iconName && /*#__PURE__*/React__default.createElement(LabelIconWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
5466
|
+
iconName: labelParams.iconName,
|
|
5467
|
+
direction: labelParams.iconDirection,
|
|
5468
|
+
color: (_labelParams$color = labelParams.color) != null ? _labelParams$color : exports.Colors.White
|
|
5469
|
+
}))), ' ', /*#__PURE__*/React__default.createElement("a", {
|
|
5389
5470
|
href: firstButton == null ? void 0 : firstButton.href,
|
|
5390
5471
|
target: firstButton == null ? void 0 : firstButton.target,
|
|
5391
5472
|
className: "targetLink",
|
|
@@ -5401,7 +5482,8 @@ var Card = function Card(_ref) {
|
|
|
5401
5482
|
src: image,
|
|
5402
5483
|
alt: imageAltText
|
|
5403
5484
|
})), withContinueWatching && /*#__PURE__*/React__default.createElement(ProgressContainer, null, /*#__PURE__*/React__default.createElement(Progress, {
|
|
5404
|
-
progress: progress
|
|
5485
|
+
progress: progress,
|
|
5486
|
+
height: 10
|
|
5405
5487
|
})), /*#__PURE__*/React__default.createElement(ContentContainer$2, {
|
|
5406
5488
|
fullWidth: fullWidth
|
|
5407
5489
|
}, tags ? /*#__PURE__*/React__default.createElement(TypeTags, {
|
|
@@ -5463,7 +5545,8 @@ var Cards = function Cards(_ref) {
|
|
|
5463
5545
|
withContinueWatching: card.withContinueWatching,
|
|
5464
5546
|
onlyShowButtonsOnHover: card.onlyShowButtonsOnHover,
|
|
5465
5547
|
hoverLineColor: card.hoverLineColor,
|
|
5466
|
-
fullWidth: card.fullWidth
|
|
5548
|
+
fullWidth: card.fullWidth,
|
|
5549
|
+
labelParams: card.labelParams
|
|
5467
5550
|
}));
|
|
5468
5551
|
}));
|
|
5469
5552
|
};
|
|
@@ -5808,7 +5891,7 @@ var Information = function Information(_ref) {
|
|
|
5808
5891
|
}))));
|
|
5809
5892
|
};
|
|
5810
5893
|
|
|
5811
|
-
var _templateObject$N, _templateObject2$x, _templateObject3$o, _templateObject4$h, _templateObject5$d, _templateObject6$
|
|
5894
|
+
var _templateObject$N, _templateObject2$x, _templateObject3$o, _templateObject4$h, _templateObject5$d, _templateObject6$9, _templateObject7$7, _templateObject8$6;
|
|
5812
5895
|
var PageHeadingWrapper = /*#__PURE__*/styled__default.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-bottom: 80px;\n background-color: ", ";\n color: var(--base-color-white);\n\n ", ";\n\n h2 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n padding-bottom: 0;\n }\n"])), function (_ref) {
|
|
5813
5896
|
var theme = _ref.theme;
|
|
5814
5897
|
return theme.colors.primary;
|
|
@@ -5817,7 +5900,7 @@ var PageHeadingWrapper = /*#__PURE__*/styled__default.div(_templateObject$N || (
|
|
|
5817
5900
|
return isPageHeadingWithoutTitle && "\n padding-bottom: 42px;\n ";
|
|
5818
5901
|
}, devices.mobile);
|
|
5819
5902
|
var PageHeadingGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$x || (_templateObject2$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0 var(--grid-column-gap);\n grid-template-rows: min-content min-content;\n grid-template-areas:\n '. . title title title title title title title title title title . . logo .'\n '. . text text text text text text text text text button button button . .';\n\n @media ", " {\n & {\n grid-template-rows: 20px min-content min-content min-content 20px;\n grid-template-areas:\n '. . . . . . . . . . . . . .'\n '. title title title title title title title title title title logo logo .'\n '. text text text text text text text text text text text text .'\n '. button button button button button button button button button button button button .'\n '. . . . . . . . . . . . . .';\n }\n }\n\n @media ", " {\n & {\n grid-template-areas:\n '. title title title title title title title title title title logo logo .'\n '. text text text text text text text text text button button button .';\n }\n }\n"])), devices.mobile, devices.tablet);
|
|
5820
|
-
var TitleWrapper$
|
|
5903
|
+
var TitleWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: title;\n margin-top: 80px;\n\n ", ";\n\n @media ", " {\n & {\n margin-top: 0;\n }\n }\n"])), function (_ref3) {
|
|
5821
5904
|
var isPageHeadingWithoutTitle = _ref3.isPageHeadingWithoutTitle;
|
|
5822
5905
|
return isPageHeadingWithoutTitle && "\n margin-top: 42px;\n ";
|
|
5823
5906
|
}, devices.mobile);
|
|
@@ -5826,11 +5909,11 @@ var ChildrenWrapper = /*#__PURE__*/styled__default.div(_templateObject4$h || (_t
|
|
|
5826
5909
|
return isPageHeadingWithoutTitle && "\n margin: 10px 0;\n ";
|
|
5827
5910
|
}, devices.mobile);
|
|
5828
5911
|
var TextWrapper = /*#__PURE__*/styled__default.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: text;\n align-self: end;\n margin-top: 12px;\n\n h6 {\n margin: 0;\n padding: 0;\n }\n"])));
|
|
5829
|
-
var LogoWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
5830
|
-
var ButtonWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
5831
|
-
var PageHeadingText = /*#__PURE__*/styled__default.div(_templateObject8$
|
|
5912
|
+
var LogoWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n justify-self: end;\n margin-top: 20px;\n position: relative;\n\n > div {\n position: absolute;\n top: 0;\n right: 0;\n }\n\n @media ", " {\n & {\n align-self: start;\n margin-top: 0;\n }\n }\n"])), devices.mobile);
|
|
5913
|
+
var ButtonWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__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);
|
|
5914
|
+
var PageHeadingText = /*#__PURE__*/styled__default.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"])));
|
|
5832
5915
|
|
|
5833
|
-
var _excluded$
|
|
5916
|
+
var _excluded$e = ["text"];
|
|
5834
5917
|
|
|
5835
5918
|
var PageHeading = function PageHeading(_ref) {
|
|
5836
5919
|
var title = _ref.title,
|
|
@@ -5842,7 +5925,7 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
5842
5925
|
|
|
5843
5926
|
var _ref2 = link || {},
|
|
5844
5927
|
linkText = _ref2.text,
|
|
5845
|
-
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
5928
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$e);
|
|
5846
5929
|
|
|
5847
5930
|
var truncatedText = text == null ? void 0 : text.substring(0, 250);
|
|
5848
5931
|
var truncatedTitle = title && title.substring(0, 40);
|
|
@@ -5850,7 +5933,7 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
5850
5933
|
return /*#__PURE__*/React__default.createElement(PageHeadingWrapper, {
|
|
5851
5934
|
"data-testid": "page-heading-wrapper",
|
|
5852
5935
|
isPageHeadingWithoutTitle: isTitleUnAvailable
|
|
5853
|
-
}, /*#__PURE__*/React__default.createElement(PageHeadingGrid, null, /*#__PURE__*/React__default.createElement(TitleWrapper$
|
|
5936
|
+
}, /*#__PURE__*/React__default.createElement(PageHeadingGrid, null, /*#__PURE__*/React__default.createElement(TitleWrapper$2, {
|
|
5854
5937
|
"data-testid": "page-heading-title",
|
|
5855
5938
|
isPageHeadingWithoutTitle: isTitleUnAvailable
|
|
5856
5939
|
}, children ? /*#__PURE__*/React__default.createElement(ChildrenWrapper, {
|
|
@@ -5870,11 +5953,11 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
5870
5953
|
}, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, restLink), linkText)) : null));
|
|
5871
5954
|
};
|
|
5872
5955
|
|
|
5873
|
-
var _excluded$
|
|
5956
|
+
var _excluded$f = ["link"];
|
|
5874
5957
|
|
|
5875
5958
|
var PageHeadingCore = function PageHeadingCore(_ref) {
|
|
5876
5959
|
var link = _ref.link,
|
|
5877
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5960
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
5878
5961
|
|
|
5879
5962
|
var coreLink = link && _extends({}, link, {
|
|
5880
5963
|
color: exports.Colors.White,
|
|
@@ -5888,11 +5971,11 @@ var PageHeadingCore = function PageHeadingCore(_ref) {
|
|
|
5888
5971
|
})));
|
|
5889
5972
|
};
|
|
5890
5973
|
|
|
5891
|
-
var _excluded$
|
|
5974
|
+
var _excluded$g = ["link"];
|
|
5892
5975
|
|
|
5893
5976
|
var PageHeadingCinema = function PageHeadingCinema(_ref) {
|
|
5894
5977
|
var link = _ref.link,
|
|
5895
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5978
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
5896
5979
|
|
|
5897
5980
|
var cinemaLink = link && _extends({}, link, {
|
|
5898
5981
|
color: exports.Colors.Black,
|
|
@@ -5906,7 +5989,7 @@ var PageHeadingCinema = function PageHeadingCinema(_ref) {
|
|
|
5906
5989
|
}), /*#__PURE__*/React__default.createElement(CinemaBadge, null)));
|
|
5907
5990
|
};
|
|
5908
5991
|
|
|
5909
|
-
var _templateObject$O, _templateObject2$y, _templateObject3$p, _templateObject4$i, _templateObject5$e, _templateObject6$
|
|
5992
|
+
var _templateObject$O, _templateObject2$y, _templateObject3$p, _templateObject4$i, _templateObject5$e, _templateObject6$a, _templateObject7$8;
|
|
5910
5993
|
var HighlightsGrid$1 = /*#__PURE__*/styled__default(Grid)(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--base-color-black);\n color: var(--base-color-white);\n user-select: none;\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
|
|
5911
5994
|
var HighlightTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$y || (_templateObject2$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: text;\n h3 {\n padding: 0;\n margin: 0 0 8px 0;\n }\n\n @media ", " {\n & {\n h3 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n"])), devices.tablet, function (_ref) {
|
|
5912
5995
|
var theme = _ref.theme;
|
|
@@ -5945,8 +6028,8 @@ var HighlightsCarouselWrapper = /*#__PURE__*/styled__default.div(_templateObject
|
|
|
5945
6028
|
var hasMultipleImages = _ref11.hasMultipleImages;
|
|
5946
6029
|
return hasMultipleImages ? 'width: calc(100% - 50px - var(--rotator-button-width)); -webkit-transform: translate3d(0, 0, 0);' : 'width: 100%';
|
|
5947
6030
|
}, devices.tablet, devices.mobile);
|
|
5948
|
-
var MobileRotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
5949
|
-
var RotatorButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
6031
|
+
var MobileRotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n div {\n padding-top: 8px;\n }\n\n @media ", ", ", " {\n display: none;\n }\n\n @media ", " {\n .carousel-icon-wrapper-left,\n .carousel-icon-wrapper-right {\n background-color: transparent;\n\n svg path {\n fill: var(--base-color-lightgrey);\n }\n }\n\n .carousel-icon-wrapper-left {\n margin-right: 8px;\n }\n }\n\n @media ", " {\n grid-area: 1 / 2;\n height: 56px;\n\n div {\n padding-top: 6px;\n }\n }\n\n @media ", " {\n grid-area: 1 / 13;\n height: 80px;\n\n div {\n padding-top: 8px;\n }\n }\n"])), devices.desktop, devices.largeDesktop, devices.mobileAndTablet, devices.mobile, devices.tablet);
|
|
6032
|
+
var RotatorButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject7$8 || (_templateObject7$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: 50px;\n top: calc(50% - calc(var(--rotator-button-width) / 2));\n z-index: 2;\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.mobileAndTablet);
|
|
5950
6033
|
|
|
5951
6034
|
var PageHeadingHighlight = function PageHeadingHighlight(_ref) {
|
|
5952
6035
|
var title = _ref.title,
|
|
@@ -6031,17 +6114,17 @@ var PageHeadingHighlight = function PageHeadingHighlight(_ref) {
|
|
|
6031
6114
|
}))));
|
|
6032
6115
|
};
|
|
6033
6116
|
|
|
6034
|
-
var _templateObject$P, _templateObject2$z, _templateObject3$q, _templateObject4$j, _templateObject5$f, _templateObject6$
|
|
6117
|
+
var _templateObject$P, _templateObject2$z, _templateObject3$q, _templateObject4$j, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$7;
|
|
6035
6118
|
var ImpactWrapper = /*#__PURE__*/styled__default.div(_templateObject$P || (_templateObject$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: 16 / 9;\n @supports not (aspect-ratio: 16 / 9) {\n height: 56.25vw;\n }\n\n position: relative;\n display: flex;\n background: var(--base-color-black);\n\n @media ", " {\n aspect-ratio: 1 / 1;\n @supports not (aspect-ratio: 1 / 1) {\n height: 100vw;\n }\n }\n"])), devices.mobile);
|
|
6036
6119
|
var ImpactHeaderImageWrapper = /*#__PURE__*/styled__default.div(_templateObject2$z || (_templateObject2$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: hidden;\n aspect-ratio: 16 / 9;\n @supports not (aspect-ratio: 16 / 9) {\n height: 56.25vw;\n }\n\n img {\n width: 100%;\n filter: brightness(0.7);\n opacity: 0.95;\n }\n\n @media ", " {\n height: fit-content;\n aspect-ratio: 1 / 1;\n @supports not (aspect-ratio: 1 / 1) {\n height: 100vw;\n }\n\n img {\n height: 100%;\n object-fit: cover;\n }\n }\n"])), devices.mobile);
|
|
6037
6120
|
var ImpactGrid = /*#__PURE__*/styled__default(Grid)(_templateObject3$q || (_templateObject3$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n align-self: center;\n width: 100%;\n z-index: ", ";\n gap: 0 var(--grid-column-gap);\n grid-template-rows: min-content min-content min-content;\n grid-template-areas:\n '. . . . . logo logo logo logo logo logo . . . . .'\n '. . . text text text text text text text text text text . . .'\n '. . . button button button button button button button button button button . . .';\n\n @media ", " {\n & {\n height: 100%;\n grid-template-rows: 1fr max-content 1fr;\n grid-template-areas:\n '. . . logo logo logo logo logo logo logo logo . . .'\n '. text text text text text text text text text text text text .'\n '. button button button button button button button button button button button button .';\n }\n }\n\n @media ", " {\n align-content: center;\n\n & {\n grid-template-areas:\n '. . . logo logo logo logo logo logo logo logo . . .'\n '. . text text text text text text text text text text . .'\n '. . button button button button button button button button button button . .';\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
6038
6121
|
var SponsorWrapper = /*#__PURE__*/styled__default.div(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 20px;\n right: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @media ", " {\n & {\n right: var(--grid-margin);\n }\n }\n"])), zIndexes.sponsorship, devices.mobileAndTablet);
|
|
6039
6122
|
var LogoWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject5$f || (_templateObject5$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n align-self: end;\n"])));
|
|
6040
|
-
var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
6041
|
-
var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
6042
|
-
var ScrollDownWrapper = /*#__PURE__*/styled__default.div(_templateObject8$
|
|
6123
|
+
var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: text;\n color: var(--base-color-white);\n text-align: center;\n margin-top: 40px;\n max-height: calc(2 * var(--line-height-header-3));\n overflow: hidden;\n\n h3 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n max-height: calc(4 * var(--line-height-header-3));\n }\n }\n\n @media ", " {\n & {\n margin-top: 12px;\n max-height: calc(4 * var(--line-height-header-3));\n }\n\n h3 {\n font-size: var(--font-size-header-3);\n letter-spacing: var(--letter-spacing-header-5);\n line-height: var(--line-height-header-5);\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
6124
|
+
var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$9 || (_templateObject7$9 = /*#__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);
|
|
6125
|
+
var ScrollDownWrapper = /*#__PURE__*/styled__default.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);
|
|
6043
6126
|
|
|
6044
|
-
var _excluded$
|
|
6127
|
+
var _excluded$h = ["text"];
|
|
6045
6128
|
|
|
6046
6129
|
var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
6047
6130
|
var children = _ref.children,
|
|
@@ -6059,7 +6142,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
6059
6142
|
|
|
6060
6143
|
var _ref2 = link || {},
|
|
6061
6144
|
linkText = _ref2.text,
|
|
6062
|
-
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
6145
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$h);
|
|
6063
6146
|
|
|
6064
6147
|
return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
|
|
6065
6148
|
bgUrlDesktop: bgUrlDesktop,
|
|
@@ -6107,11 +6190,11 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
6107
6190
|
var _templateObject$Q;
|
|
6108
6191
|
var StreamWrapper = /*#__PURE__*/styled__default.div(_templateObject$Q || (_templateObject$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h2::selection,\n div::selection {\n color: #1866dc;\n background-color: #fff;\n }\n"])));
|
|
6109
6192
|
|
|
6110
|
-
var _excluded$
|
|
6193
|
+
var _excluded$i = ["link"];
|
|
6111
6194
|
|
|
6112
6195
|
var PageHeadingStream = function PageHeadingStream(_ref) {
|
|
6113
6196
|
var link = _ref.link,
|
|
6114
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6197
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
6115
6198
|
|
|
6116
6199
|
var streamLink = link && _extends({}, link, {
|
|
6117
6200
|
color: exports.Colors.Black,
|
|
@@ -6202,13 +6285,13 @@ var Pagination = function Pagination(_ref) {
|
|
|
6202
6285
|
}))));
|
|
6203
6286
|
};
|
|
6204
6287
|
|
|
6205
|
-
var _templateObject$S, _templateObject2$B, _templateObject3$s, _templateObject4$l, _templateObject5$g, _templateObject6$
|
|
6288
|
+
var _templateObject$S, _templateObject2$B, _templateObject3$s, _templateObject4$l, _templateObject5$g, _templateObject6$c;
|
|
6206
6289
|
var PeopleListingGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$S || (_templateObject$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: var(--line-height-people-listing-gap) var(--grid-column-gap);\n\n p {\n margin: 0;\n }\n\n grid-template-columns: 1fr 1fr 1fr;\n\n @media ", " {\n grid-template-columns: 1fr;\n }\n\n @media ", " {\n grid-template-columns: 1fr 1fr;\n }\n\n @media ", " {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n }\n"])), devices.mobile, devices.tablet, devices.largeDesktop);
|
|
6207
6290
|
var PersonWrapper = /*#__PURE__*/styled__default.div(_templateObject2$B || (_templateObject2$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 60px 1fr;\n grid-template-areas: 'headshot role-person';\n grid-column-gap: 10px;\n"])));
|
|
6208
6291
|
var HeadshotWrapper = /*#__PURE__*/styled__default.div(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n grid-area: headshot;\n img {\n width: 60px;\n height: 60px;\n }\n"])));
|
|
6209
6292
|
var RoleWrapper = /*#__PURE__*/styled__default.div(_templateObject4$l || (_templateObject4$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n overflow-wrap: break-word;\n margin-bottom: 4px;\n"])));
|
|
6210
6293
|
var TextWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: role-person;\n"])));
|
|
6211
|
-
var PersonLink = /*#__PURE__*/styled__default.a(_templateObject6$
|
|
6294
|
+
var PersonLink = /*#__PURE__*/styled__default.a(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-black);\n text-decoration: underline;\n\n :hover {\n color: var(--base-color-primary);\n :after {\n color: var(--base-color-black);\n }\n }\n\n :visited {\n color: var(--base-color-black);\n }\n"])));
|
|
6212
6295
|
|
|
6213
6296
|
var Person = function Person(_ref) {
|
|
6214
6297
|
var person = _ref.person,
|
|
@@ -6259,7 +6342,7 @@ var PeopleListing = function PeopleListing(_ref) {
|
|
|
6259
6342
|
}));
|
|
6260
6343
|
};
|
|
6261
6344
|
|
|
6262
|
-
var _templateObject$T, _templateObject2$C, _templateObject3$t, _templateObject4$m, _templateObject5$h, _templateObject6$
|
|
6345
|
+
var _templateObject$T, _templateObject2$C, _templateObject3$t, _templateObject4$m, _templateObject5$h, _templateObject6$d, _templateObject7$a, _templateObject8$8, _templateObject9$4, _templateObject10$4, _templateObject11$3, _templateObject12$1, _templateObject13$1, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
6263
6346
|
var LENGTH_TEXT = 28;
|
|
6264
6347
|
var LENGTH_TEXT_TABLET$1 = 12;
|
|
6265
6348
|
var GridTemplateImageToLeft = "'left left left left left left left left . right right right right right . .'";
|
|
@@ -6272,28 +6355,29 @@ var PromoWithTagsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$T ||
|
|
|
6272
6355
|
}, devices.tablet, function (_ref2) {
|
|
6273
6356
|
var imageToLeft = _ref2.imageToLeft;
|
|
6274
6357
|
return imageToLeft ? "'left left left left left left left right right right right right right .'" : "'. left left left left left left right right right right right right right'";
|
|
6275
|
-
}, devices.mobile, function (
|
|
6358
|
+
}, devices.mobile, function (_ref3) {
|
|
6359
|
+
var asCard = _ref3.asCard;
|
|
6276
6360
|
return asCard ? "\n grid-template-areas: " + GridTemplateAsCard + ";\n @media " + devices.tablet + " {\n grid-template-areas: " + GridTemplateAsCardTablet + ";\n }\n " : "";
|
|
6277
6361
|
});
|
|
6278
6362
|
var PromoWithTagsSubtitle = /*#__PURE__*/styled__default.span(_templateObject2$C || (_templateObject2$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-1);\n font-weight: var(--font-weight-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n margin-bottom: var(--editorial-subtitle-margin-bottom);\n display: block;\n overflow-wrap: break-word;\n"])));
|
|
6279
|
-
var PromoWithTagsText = /*#__PURE__*/styled__default.div(_templateObject3$t || (_templateObject3$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin: 0;\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n h5,\n h6 {\n margin: 0 0 4px 0;\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n overflow-wrap: break-word;\n }\n\n em {\n font-family: var(--font-family-body-italics);\n }\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: ", ";\n }\n\n &:visited {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n }\n"])), function (
|
|
6280
|
-
var theme = _ref3.theme;
|
|
6281
|
-
return theme.colors.black;
|
|
6282
|
-
}, function (_ref4) {
|
|
6363
|
+
var PromoWithTagsText = /*#__PURE__*/styled__default.div(_templateObject3$t || (_templateObject3$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin: 0;\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n h5,\n h6 {\n margin: 0 0 4px 0;\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n overflow-wrap: break-word;\n }\n\n em {\n font-family: var(--font-family-body-italics);\n }\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: ", ";\n }\n\n &:visited {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n }\n"])), function (_ref4) {
|
|
6283
6364
|
var theme = _ref4.theme;
|
|
6284
|
-
return theme.colors.
|
|
6365
|
+
return theme.colors.black;
|
|
6285
6366
|
}, function (_ref5) {
|
|
6286
6367
|
var theme = _ref5.theme;
|
|
6368
|
+
return theme.colors.darkgrey;
|
|
6369
|
+
}, function (_ref6) {
|
|
6370
|
+
var theme = _ref6.theme;
|
|
6287
6371
|
return theme.colors.primary;
|
|
6288
6372
|
});
|
|
6289
|
-
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 24px;\n\n ", ";\n\n ", "\n\n @media ", " {\n gap: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (
|
|
6290
|
-
var hasTextLinks =
|
|
6373
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 24px;\n\n ", ";\n\n ", "\n\n @media ", " {\n gap: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref7) {
|
|
6374
|
+
var hasTextLinks = _ref7.hasTextLinks;
|
|
6291
6375
|
return "margin-top: " + (hasTextLinks ? '0' : '24px') + ";";
|
|
6292
|
-
}, function (
|
|
6293
|
-
var
|
|
6294
|
-
primaryButtonTextLength =
|
|
6295
|
-
|
|
6296
|
-
tertiaryButtonTextLength =
|
|
6376
|
+
}, function (_ref8) {
|
|
6377
|
+
var _ref8$primaryButtonTe = _ref8.primaryButtonTextLength,
|
|
6378
|
+
primaryButtonTextLength = _ref8$primaryButtonTe === void 0 ? 0 : _ref8$primaryButtonTe,
|
|
6379
|
+
_ref8$tertiaryButtonT = _ref8.tertiaryButtonTextLength,
|
|
6380
|
+
tertiaryButtonTextLength = _ref8$tertiaryButtonT === void 0 ? 0 : _ref8$tertiaryButtonT;
|
|
6297
6381
|
var isLinksLayoutColumn = primaryButtonTextLength >= LENGTH_TEXT || tertiaryButtonTextLength >= LENGTH_TEXT;
|
|
6298
6382
|
|
|
6299
6383
|
if (isLinksLayoutColumn) {
|
|
@@ -6301,11 +6385,11 @@ var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$m ||
|
|
|
6301
6385
|
}
|
|
6302
6386
|
|
|
6303
6387
|
return '';
|
|
6304
|
-
}, devices.mobile, devices.tablet, function (
|
|
6305
|
-
var
|
|
6306
|
-
primaryButtonTextLength =
|
|
6307
|
-
|
|
6308
|
-
tertiaryButtonTextLength =
|
|
6388
|
+
}, devices.mobile, devices.tablet, function (_ref9) {
|
|
6389
|
+
var _ref9$primaryButtonTe = _ref9.primaryButtonTextLength,
|
|
6390
|
+
primaryButtonTextLength = _ref9$primaryButtonTe === void 0 ? 0 : _ref9$primaryButtonTe,
|
|
6391
|
+
_ref9$tertiaryButtonT = _ref9.tertiaryButtonTextLength,
|
|
6392
|
+
tertiaryButtonTextLength = _ref9$tertiaryButtonT === void 0 ? 0 : _ref9$tertiaryButtonT;
|
|
6309
6393
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET$1 || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET$1;
|
|
6310
6394
|
|
|
6311
6395
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -6314,37 +6398,40 @@ var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$m ||
|
|
|
6314
6398
|
|
|
6315
6399
|
return '';
|
|
6316
6400
|
});
|
|
6317
|
-
var PromoWithTagsTagWrapper = /*#__PURE__*/styled__default.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n"])), function (
|
|
6318
|
-
var marginBottom =
|
|
6401
|
+
var PromoWithTagsTagWrapper = /*#__PURE__*/styled__default.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n"])), function (_ref10) {
|
|
6402
|
+
var marginBottom = _ref10.marginBottom;
|
|
6319
6403
|
return marginBottom + "px";
|
|
6320
6404
|
});
|
|
6321
|
-
var PromoWithTagsAdditionalText = /*#__PURE__*/styled__default(PromoWithTagsText)(_templateObject6$
|
|
6322
|
-
var TextLinksContainer = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
6323
|
-
var TextLinkWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject8$
|
|
6405
|
+
var PromoWithTagsAdditionalText = /*#__PURE__*/styled__default(PromoWithTagsText)(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 24px 0;\n"])));
|
|
6406
|
+
var TextLinksContainer = /*#__PURE__*/styled__default.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n margin: 24px 0 4px 0;\n"])));
|
|
6407
|
+
var TextLinkWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 24px;\n margin-bottom: 20px;\n\n &:last-child {\n margin-right: 0;\n }\n"])));
|
|
6324
6408
|
var ExtraContentWrapper = /*#__PURE__*/styled__default.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n padding-right: 68px;\n\n iframe {\n height: 800px;\n }\n\n @media ", " {\n padding: 30px 0 0;\n }\n\n @media ", " {\n padding: 0;\n position: initial;\n }\n"])), devices.tablet, devices.mobile);
|
|
6325
|
-
var IconWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject10$
|
|
6326
|
-
var PrimaryButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject11$
|
|
6409
|
+
var IconWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject10$4 || (_templateObject10$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: absolute;\n top: 25px;\n right: 35px;\n width: 24px;\n height: 24px;\n\n @media ", " {\n top: 30px;\n right: 30px;\n }\n\n @media ", " {\n top: 3px;\n right: 20px;\n }\n"])), devices.tablet, devices.mobile);
|
|
6410
|
+
var PrimaryButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject11$3 || (_templateObject11$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--button-height);\n"])));
|
|
6327
6411
|
var MobileTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n margin: 0 50px 0 20px;\n\n h2,\n h3 {\n margin: 0;\n }\n\n @media ", " {\n display: block;\n }\n"])), devices.mobile);
|
|
6328
|
-
var PromoWithTagsTypeTags = /*#__PURE__*/styled__default(TypeTags)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6412
|
+
var PromoWithTagsTypeTags = /*#__PURE__*/styled__default(TypeTags)(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6329
6413
|
var PromoWithTagsHeader = /*#__PURE__*/styled__default(Header)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6330
6414
|
var PromoWithTagsTextLink = /*#__PURE__*/styled__default(TextLink)(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6331
6415
|
var asCardOverrides = /*#__PURE__*/styled.css(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", " {\n font-size: var(--font-size-subtitle-2);\n }\n\n ", " {\n font-size: var(--font-size-overline-1);\n }\n\n ", " {\n flex-direction: row;\n @media ", " {\n flex-direction: row;\n }\n }\n\n ", " {\n font-size: var(--font-size-overline-2);\n font-weight: var(--font-weight-overline-2);\n line-height: var(--line-height-overline-2);\n letter-spacing: var(--letter-spacing-overline-2);\n }\n"])), PromoWithTagsSubtitle, PromoWithTagsTypeTags, ButtonsContainer$2, devices.tablet, PromoWithTagsTextLink);
|
|
6332
|
-
var PromoWithTagsExtraContentWrapper = /*#__PURE__*/styled__default.div(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-area: left;\n grid-area: ", ";\n align-self: center;\n @media ", " {\n & {\n grid-area: row1;\n }\n }\n"])), function (
|
|
6333
|
-
var imageToLeft =
|
|
6416
|
+
var PromoWithTagsExtraContentWrapper = /*#__PURE__*/styled__default.div(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-area: left;\n grid-area: ", ";\n align-self: center;\n @media ", " {\n & {\n grid-area: row1;\n }\n }\n"])), function (_ref11) {
|
|
6417
|
+
var imageToLeft = _ref11.imageToLeft;
|
|
6334
6418
|
return imageToLeft ? 'left' : 'right';
|
|
6335
6419
|
}, devices.mobile);
|
|
6336
|
-
var PromoWithTagsContentWrapper = /*#__PURE__*/styled__default.div(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: ", ";\n align-self: center;\n @media ", " {\n & {\n display: ", ";\n grid-area: row2;\n align-self: start;\n }\n }\n\n ", "\n"])), function (
|
|
6337
|
-
var imageToLeft =
|
|
6420
|
+
var PromoWithTagsContentWrapper = /*#__PURE__*/styled__default.div(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: ", ";\n align-self: center;\n @media ", " {\n & {\n display: ", ";\n grid-area: row2;\n align-self: start;\n }\n }\n\n ", "\n"])), function (_ref12) {
|
|
6421
|
+
var imageToLeft = _ref12.imageToLeft;
|
|
6338
6422
|
return imageToLeft ? 'right' : 'left';
|
|
6339
|
-
}, devices.mobile, function (
|
|
6340
|
-
var hideSection =
|
|
6423
|
+
}, devices.mobile, function (_ref13) {
|
|
6424
|
+
var hideSection = _ref13.hideSection;
|
|
6341
6425
|
return hideSection ? 'none' : 'block';
|
|
6342
|
-
}, function (
|
|
6426
|
+
}, function (_ref14) {
|
|
6427
|
+
var asCard = _ref14.asCard;
|
|
6343
6428
|
return asCard && asCardOverrides;
|
|
6344
6429
|
});
|
|
6345
6430
|
var PromoWithTagsContainer = /*#__PURE__*/styled__default.div(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h2,\n h3 {\n margin: 0 0 16px;\n }\n"])));
|
|
6431
|
+
var TimerWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
|
|
6432
|
+
var EndDateText = /*#__PURE__*/styled__default.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);
|
|
6346
6433
|
|
|
6347
|
-
var _excluded$
|
|
6434
|
+
var _excluded$j = ["text"],
|
|
6348
6435
|
_excluded2$3 = ["text"],
|
|
6349
6436
|
_excluded3 = ["text"];
|
|
6350
6437
|
var LENGTH_TEXT$1 = 28;
|
|
@@ -6372,12 +6459,17 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
6372
6459
|
_ref$disableCTA = _ref.disableCTA,
|
|
6373
6460
|
disableCTA = _ref$disableCTA === void 0 ? false : _ref$disableCTA,
|
|
6374
6461
|
_ref$disabledCTACopy = _ref.disabledCTACopy,
|
|
6375
|
-
disabledCTACopy = _ref$disabledCTACopy === void 0 ? 'Sold Out' : _ref$disabledCTACopy
|
|
6462
|
+
disabledCTACopy = _ref$disabledCTACopy === void 0 ? 'Sold Out' : _ref$disabledCTACopy,
|
|
6463
|
+
timerParams = _ref.timerParams;
|
|
6376
6464
|
|
|
6377
6465
|
var _useState = React.useState(false),
|
|
6378
6466
|
showExtraContent = _useState[0],
|
|
6379
6467
|
setShowExtraContent = _useState[1];
|
|
6380
6468
|
|
|
6469
|
+
var _useState2 = React.useState(true),
|
|
6470
|
+
isTimerActive = _useState2[0],
|
|
6471
|
+
setIsTimerActive = _useState2[1];
|
|
6472
|
+
|
|
6381
6473
|
var truncate = function truncate(str, n) {
|
|
6382
6474
|
return str.length >= n ? str.substr(0, n) : str;
|
|
6383
6475
|
};
|
|
@@ -6414,7 +6506,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
6414
6506
|
var _ref2 = primaryButton || {},
|
|
6415
6507
|
_ref2$text = _ref2.text,
|
|
6416
6508
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
6417
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
6509
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
6418
6510
|
|
|
6419
6511
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$1);
|
|
6420
6512
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
@@ -6435,6 +6527,29 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
6435
6527
|
key: index
|
|
6436
6528
|
}, /*#__PURE__*/React__default.createElement(PromoWithTagsTextLink, Object.assign({}, restTextLink), textLinkText));
|
|
6437
6529
|
}) : null;
|
|
6530
|
+
|
|
6531
|
+
var renderTimerBlock = function renderTimerBlock() {
|
|
6532
|
+
if (!timerParams) return null;
|
|
6533
|
+
|
|
6534
|
+
if (!isTimerActive && timerParams.endDateText) {
|
|
6535
|
+
return /*#__PURE__*/React__default.createElement(EndDateText, {
|
|
6536
|
+
"data-testid": "promo-with-tags-timer-end-date-text"
|
|
6537
|
+
}, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
6538
|
+
level: 5
|
|
6539
|
+
}, timerParams.endDateText));
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6542
|
+
return /*#__PURE__*/React__default.createElement(TimerWrapper$2, {
|
|
6543
|
+
"data-testid": "promo-with-tags-timer-wrapper"
|
|
6544
|
+
}, /*#__PURE__*/React__default.createElement(Timer, {
|
|
6545
|
+
endDateHandler: function endDateHandler() {
|
|
6546
|
+
return setIsTimerActive(false);
|
|
6547
|
+
},
|
|
6548
|
+
endDate: timerParams.endDate,
|
|
6549
|
+
title: 'Live stream starts in:'
|
|
6550
|
+
}));
|
|
6551
|
+
};
|
|
6552
|
+
|
|
6438
6553
|
return /*#__PURE__*/React__default.createElement(PromoWithTagsGrid, {
|
|
6439
6554
|
id: anchorLink,
|
|
6440
6555
|
"data-testid": "grid-wrapper",
|
|
@@ -6445,7 +6560,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
6445
6560
|
imageToLeft: imageToLeft,
|
|
6446
6561
|
hideSection: showExtraContent,
|
|
6447
6562
|
asCard: asCard
|
|
6448
|
-
}, /*#__PURE__*/React__default.createElement(PromoWithTagsContainer, null, !!(aboveTitleTags != null && aboveTitleTags.length) && /*#__PURE__*/React__default.createElement(PromoWithTagsTagWrapper, {
|
|
6563
|
+
}, renderTimerBlock(), /*#__PURE__*/React__default.createElement(PromoWithTagsContainer, null, !!(aboveTitleTags != null && aboveTitleTags.length) && /*#__PURE__*/React__default.createElement(PromoWithTagsTagWrapper, {
|
|
6449
6564
|
marginBottom: 16
|
|
6450
6565
|
}, /*#__PURE__*/React__default.createElement(PromoWithTagsTypeTags, {
|
|
6451
6566
|
list: aboveTitleTags
|
|
@@ -6508,7 +6623,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
6508
6623
|
}))));
|
|
6509
6624
|
};
|
|
6510
6625
|
|
|
6511
|
-
var _templateObject$U, _templateObject2$D, _templateObject3$u, _templateObject4$n, _templateObject5$i, _templateObject6$
|
|
6626
|
+
var _templateObject$U, _templateObject2$D, _templateObject3$u, _templateObject4$n, _templateObject5$i, _templateObject6$e, _templateObject7$b;
|
|
6512
6627
|
var LENGTH_TEXT$2 = 28;
|
|
6513
6628
|
var LENGTH_TEXT_TABLET$2 = 10;
|
|
6514
6629
|
var PromoWithTitleGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$U || (_templateObject$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-template-areas: ", ";\n\n @media ", " {\n & {\n grid-template-areas: ", ";\n }\n }\n\n @media ", " {\n & {\n grid-template-columns: var(--grid-margin) minmax(0, 1fr) var(--grid-margin);\n grid-template-rows: min-content 24px min-content;\n gap: 0;\n grid-template-areas:\n 'row1 row1 row1'\n '. . .'\n '. row2 .';\n }\n }\n"])), function (_ref) {
|
|
@@ -6528,7 +6643,7 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled__default.div(_templateObj
|
|
|
6528
6643
|
}, devices.mobile);
|
|
6529
6644
|
var PromoWithTitleContainer = /*#__PURE__*/styled__default.div(_templateObject4$n || (_templateObject4$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h2,\n h3 {\n margin: 0 0 32px;\n\n @media ", " {\n & {\n margin: 0 0 24px;\n }\n }\n }\n"])), devices.mobile);
|
|
6530
6645
|
var PromoWithTitleSubtitle = /*#__PURE__*/styled__default.span(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-1);\n font-weight: var(--font-weight-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n margin-bottom: var(--editorial-subtitle-margin-bottom);\n display: block;\n overflow-wrap: break-word;\n"])));
|
|
6531
|
-
var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$
|
|
6646
|
+
var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$e || (_templateObject6$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin: 0;\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n h5,\n h6 {\n margin: 0 0 4px 0;\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n overflow-wrap: break-word;\n }\n\n em {\n font-family: var(--font-family-body-italics);\n }\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: ", ";\n }\n\n &:visited {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n }\n"])), function (_ref5) {
|
|
6532
6647
|
var theme = _ref5.theme;
|
|
6533
6648
|
return theme.colors.black;
|
|
6534
6649
|
}, function (_ref6) {
|
|
@@ -6538,7 +6653,7 @@ var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$d ||
|
|
|
6538
6653
|
var theme = _ref7.theme;
|
|
6539
6654
|
return theme.colors.primary;
|
|
6540
6655
|
});
|
|
6541
|
-
var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$
|
|
6656
|
+
var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$b || (_templateObject7$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 32px;\n\n ", "\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref8) {
|
|
6542
6657
|
var _ref8$primaryButtonTe = _ref8.primaryButtonTextLength,
|
|
6543
6658
|
primaryButtonTextLength = _ref8$primaryButtonTe === void 0 ? 0 : _ref8$primaryButtonTe,
|
|
6544
6659
|
_ref8$tertiaryButtonT = _ref8.tertiaryButtonTextLength,
|
|
@@ -6564,7 +6679,7 @@ var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$a ||
|
|
|
6564
6679
|
return '';
|
|
6565
6680
|
});
|
|
6566
6681
|
|
|
6567
|
-
var _excluded$
|
|
6682
|
+
var _excluded$k = ["text"],
|
|
6568
6683
|
_excluded2$4 = ["text"];
|
|
6569
6684
|
var LENGTH_TEXT$3 = 28;
|
|
6570
6685
|
|
|
@@ -6591,7 +6706,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
6591
6706
|
var _ref2 = primaryButton || {},
|
|
6592
6707
|
_ref2$text = _ref2.text,
|
|
6593
6708
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
6594
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
6709
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$k);
|
|
6595
6710
|
|
|
6596
6711
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
|
|
6597
6712
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
@@ -6736,7 +6851,7 @@ var AttributionWrapper = /*#__PURE__*/styled__default.div(_templateObject2$F ||
|
|
|
6736
6851
|
var displayAttribution = _ref.displayAttribution;
|
|
6737
6852
|
return "display: " + (displayAttribution ? 'block' : 'none') + ";";
|
|
6738
6853
|
});
|
|
6739
|
-
var Line = /*#__PURE__*/styled__default.div(_templateObject3$v || (_templateObject3$v = /*#__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);
|
|
6854
|
+
var Line$1 = /*#__PURE__*/styled__default.div(_templateObject3$v || (_templateObject3$v = /*#__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);
|
|
6740
6855
|
|
|
6741
6856
|
var Quote = function Quote(_ref) {
|
|
6742
6857
|
var text = _ref.text,
|
|
@@ -6755,7 +6870,7 @@ var Quote = function Quote(_ref) {
|
|
|
6755
6870
|
}))), /*#__PURE__*/React__default.createElement(AttributionWrapper, {
|
|
6756
6871
|
displayAttribution: attribution,
|
|
6757
6872
|
"data-testid": "quote-attribution-block"
|
|
6758
|
-
}, /*#__PURE__*/React__default.createElement(Line, null), /*#__PURE__*/React__default.createElement(Subtitle, {
|
|
6873
|
+
}, /*#__PURE__*/React__default.createElement(Line$1, null), /*#__PURE__*/React__default.createElement(Subtitle, {
|
|
6759
6874
|
level: 1
|
|
6760
6875
|
}, attribution))));
|
|
6761
6876
|
};
|
|
@@ -7727,11 +7842,11 @@ exports.Tab = Tab;
|
|
|
7727
7842
|
exports.TabLink = TabLink;
|
|
7728
7843
|
exports.Tabs = Tabs;
|
|
7729
7844
|
exports.TertiaryButton = Button$1;
|
|
7730
|
-
exports.TextField = TextField;
|
|
7731
7845
|
exports.TextLink = TextLink;
|
|
7732
7846
|
exports.TextOnly = TextOnly;
|
|
7733
7847
|
exports.ThemeProvider = Theme;
|
|
7734
7848
|
exports.Tickbox = Tickbox;
|
|
7849
|
+
exports.Timer = Timer;
|
|
7735
7850
|
exports.TitleWithCTA = TitleWithCTA;
|
|
7736
7851
|
exports.TypeTags = TypeTags;
|
|
7737
7852
|
exports.devices = devices;
|