@royaloperahouse/chord 0.5.5 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/chord.cjs.development.js +145 -22
- 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 +145 -22
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +3 -0
- package/dist/components/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +2 -1
- package/dist/types/image.d.ts +23 -0
- package/package.json +1 -1
package/dist/chord.esm.js
CHANGED
|
@@ -461,7 +461,7 @@ var common = {
|
|
|
461
461
|
gap: '12px'
|
|
462
462
|
},
|
|
463
463
|
tablet: {
|
|
464
|
-
margin: '
|
|
464
|
+
margin: '32px',
|
|
465
465
|
outerMargin: '0',
|
|
466
466
|
gap: '20px'
|
|
467
467
|
},
|
|
@@ -734,6 +734,36 @@ var EditMyList = (function (_ref) {
|
|
|
734
734
|
}));
|
|
735
735
|
});
|
|
736
736
|
|
|
737
|
+
var Favourite = (function (_ref) {
|
|
738
|
+
var _ref$color = _ref.color,
|
|
739
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
740
|
+
return /*#__PURE__*/createElement("svg", {
|
|
741
|
+
width: "100%",
|
|
742
|
+
height: "100%",
|
|
743
|
+
viewBox: "0 0 24 24",
|
|
744
|
+
fill: "none",
|
|
745
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
746
|
+
}, /*#__PURE__*/createElement("path", {
|
|
747
|
+
d: "M12 4.69994L13.88 8.51994L14.12 8.98994L14.64 9.06994L18.85 9.67994L15.8 12.6799L15.43 13.0499L15.51 13.5599L16.23 17.7599L12.47 15.7599L12 15.5099L11.53 15.7499L7.77 17.7499L8.49 13.5499L8.57 13.0399L8.2 12.6699L5.15 9.66994L9.36 9.05994L9.88 8.97994L10.12 8.50994L12 4.69994ZM12 2.43994L9.22 8.07994L3 8.99994L7.5 13.3899L6.44 19.5799L12 16.6399L17.56 19.5599L16.5 13.3699L21 8.99994L14.78 8.09994L12 2.43994Z",
|
|
748
|
+
fill: color
|
|
749
|
+
}));
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
var FavouriteFull = (function (_ref) {
|
|
753
|
+
var _ref$color = _ref.color,
|
|
754
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
755
|
+
return /*#__PURE__*/createElement("svg", {
|
|
756
|
+
width: "100%",
|
|
757
|
+
height: "100%",
|
|
758
|
+
viewBox: "0 0 24 24",
|
|
759
|
+
fill: "none",
|
|
760
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
761
|
+
}, /*#__PURE__*/createElement("path", {
|
|
762
|
+
d: "M9.22 8.07994L12 2.43994L14.78 8.09994L21 8.99994L16.5 13.3699L17.56 19.5599L12 16.6399L6.44 19.5799L7.5 13.3899L3 8.99994L9.22 8.07994Z",
|
|
763
|
+
fill: color
|
|
764
|
+
}));
|
|
765
|
+
});
|
|
766
|
+
|
|
737
767
|
var Filter = (function (_ref) {
|
|
738
768
|
var _ref$color = _ref.color,
|
|
739
769
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1598,6 +1628,21 @@ var Refresh = (function (_ref) {
|
|
|
1598
1628
|
}));
|
|
1599
1629
|
});
|
|
1600
1630
|
|
|
1631
|
+
var Star = (function (_ref) {
|
|
1632
|
+
var _ref$color = _ref.color,
|
|
1633
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
1634
|
+
return /*#__PURE__*/createElement("svg", {
|
|
1635
|
+
width: "100%",
|
|
1636
|
+
height: "100%",
|
|
1637
|
+
viewBox: "0 0 48 46",
|
|
1638
|
+
fill: "none",
|
|
1639
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1640
|
+
}, /*#__PURE__*/createElement("path", {
|
|
1641
|
+
d: "M24 0L30.0248 16.7076L47.7764 17.2746L33.7483 28.1674L38.6946 45.2254L24 35.25L9.30537 45.2254L14.2517 28.1674L0.223587 17.2746L17.9752 16.7076L24 0Z",
|
|
1642
|
+
fill: color
|
|
1643
|
+
}));
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1601
1646
|
var AudioDescription = (function (_ref) {
|
|
1602
1647
|
var _ref$color = _ref.color,
|
|
1603
1648
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1897,6 +1942,8 @@ var IconLibrary = {
|
|
|
1897
1942
|
Expand: Expand,
|
|
1898
1943
|
ExternalLink: ExternalLink,
|
|
1899
1944
|
Facebook: Facebook,
|
|
1945
|
+
Favourite: Favourite,
|
|
1946
|
+
FavouriteFull: FavouriteFull,
|
|
1900
1947
|
Filter: Filter,
|
|
1901
1948
|
FindAScreening: FindAScreening,
|
|
1902
1949
|
Forward10: Forward10,
|
|
@@ -1928,6 +1975,7 @@ var IconLibrary = {
|
|
|
1928
1975
|
Settings: Settings,
|
|
1929
1976
|
Shift: Shift,
|
|
1930
1977
|
Space: Space,
|
|
1978
|
+
Star: Star,
|
|
1931
1979
|
Subscribe: Subscribe,
|
|
1932
1980
|
Subtitles: Subtitles,
|
|
1933
1981
|
Tick: Tick,
|
|
@@ -2429,11 +2477,41 @@ var AspectRatio;
|
|
|
2429
2477
|
AspectRatio["16:9"] = "16 / 9";
|
|
2430
2478
|
})(AspectRatio || (AspectRatio = {}));
|
|
2431
2479
|
|
|
2480
|
+
var AspectRatioLegacy;
|
|
2481
|
+
|
|
2482
|
+
(function (AspectRatioLegacy) {
|
|
2483
|
+
AspectRatioLegacy["1 / 1"] = "100";
|
|
2484
|
+
AspectRatioLegacy["3 / 4"] = "133";
|
|
2485
|
+
AspectRatioLegacy["4 / 3"] = "75";
|
|
2486
|
+
AspectRatioLegacy["16 / 9"] = "56.25";
|
|
2487
|
+
})(AspectRatioLegacy || (AspectRatioLegacy = {}));
|
|
2488
|
+
|
|
2489
|
+
var AspectRatioWidth;
|
|
2490
|
+
|
|
2491
|
+
(function (AspectRatioWidth) {
|
|
2492
|
+
AspectRatioWidth["1 / 1"] = "1";
|
|
2493
|
+
AspectRatioWidth["3 / 4"] = "0.75";
|
|
2494
|
+
AspectRatioWidth["4 / 3"] = "1.33";
|
|
2495
|
+
AspectRatioWidth["16 / 9"] = "1.78";
|
|
2496
|
+
})(AspectRatioWidth || (AspectRatioWidth = {}));
|
|
2497
|
+
|
|
2432
2498
|
var _templateObject$d;
|
|
2433
|
-
var ImageAspectRatioWrapper = /*#__PURE__*/styled.div(_templateObject$d || (_templateObject$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: ", ";\n\n img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"])), function (_ref) {
|
|
2499
|
+
var ImageAspectRatioWrapper = /*#__PURE__*/styled.div(_templateObject$d || (_templateObject$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: ", ";\n\n @supports not (aspect-ratio: ", ") {\n position: relative;\n width: 100%;\n padding-top: ", "%;\n }\n\n img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n\n @supports not (aspect-ratio: ", ") {\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n"])), function (_ref) {
|
|
2434
2500
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
2435
2501
|
aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
|
|
2436
2502
|
return aspectRatio;
|
|
2503
|
+
}, function (_ref2) {
|
|
2504
|
+
var _ref2$aspectRatio = _ref2.aspectRatio,
|
|
2505
|
+
aspectRatio = _ref2$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref2$aspectRatio;
|
|
2506
|
+
return aspectRatio;
|
|
2507
|
+
}, function (_ref3) {
|
|
2508
|
+
var _ref3$aspectRatio = _ref3.aspectRatio,
|
|
2509
|
+
aspectRatio = _ref3$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref3$aspectRatio;
|
|
2510
|
+
return AspectRatioLegacy[aspectRatio];
|
|
2511
|
+
}, function (_ref4) {
|
|
2512
|
+
var _ref4$aspectRatio = _ref4.aspectRatio,
|
|
2513
|
+
aspectRatio = _ref4$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref4$aspectRatio;
|
|
2514
|
+
return aspectRatio;
|
|
2437
2515
|
});
|
|
2438
2516
|
|
|
2439
2517
|
var _templateObject$e, _templateObject2$2;
|
|
@@ -4125,7 +4203,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4125
4203
|
if (window.matchMedia(devices.mobile).matches) {
|
|
4126
4204
|
setSlidesOffsetBefore(20); // Mobile margin grid
|
|
4127
4205
|
} else if (window.matchMedia(devices.tablet).matches) {
|
|
4128
|
-
setSlidesOffsetBefore(
|
|
4206
|
+
setSlidesOffsetBefore(32); // Tablet margin grid
|
|
4129
4207
|
} else {
|
|
4130
4208
|
setSlidesOffsetBefore(Math.floor(window.innerWidth * 0.1) - 3); // 10% of width
|
|
4131
4209
|
}
|
|
@@ -4206,7 +4284,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4206
4284
|
|
|
4207
4285
|
var _templateObject$y, _templateObject2$i, _templateObject3$c, _templateObject4$9, _templateObject5$5, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$2, _templateObject10$1;
|
|
4208
4286
|
var HighlightsGrid = /*#__PURE__*/styled(Grid)(_templateObject$y || (_templateObject$y = /*#__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);
|
|
4209
|
-
var CarouselTitleWrapper = /*#__PURE__*/styled.div(_templateObject2$i || (_templateObject2$i = /*#__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 / 1 / 6;\n padding-top: 32px;\n padding-right: 28px;\n\n h4 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\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) {
|
|
4287
|
+
var CarouselTitleWrapper = /*#__PURE__*/styled.div(_templateObject2$i || (_templateObject2$i = /*#__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 / 1 / 6;\n padding-top: 32px;\n padding-right: 28px;\n padding-left: 32px;\n\n h4 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\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) {
|
|
4210
4288
|
var theme = _ref.theme;
|
|
4211
4289
|
return theme.fonts.mobile.sizes.altHeaders[4];
|
|
4212
4290
|
}, function (_ref2) {
|
|
@@ -4219,7 +4297,7 @@ var CarouselTitleWrapper = /*#__PURE__*/styled.div(_templateObject2$i || (_templ
|
|
|
4219
4297
|
var theme = _ref4.theme;
|
|
4220
4298
|
return theme.fonts.mobile.lineHeights.altHeaders[4];
|
|
4221
4299
|
}, devices.mobile);
|
|
4222
|
-
var InfoWrapper = /*#__PURE__*/styled.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 6;\n padding: 28px 28px 28px
|
|
4300
|
+
var InfoWrapper = /*#__PURE__*/styled.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 6;\n padding: 28px 28px 28px 32px;\n }\n }\n\n @media ", " {\n & {\n grid-area: 3 / 1 / 4 / 15;\n width: 100%;\n padding: 0 20px;\n margin: 24px 0;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4223
4301
|
var InfoLogoWrapper = /*#__PURE__*/styled.div(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n width: 132px;\n height: 36px;\n\n @media ", " {\n & {\n margin-bottom: 20px;\n width: 102px;\n height: 28px;\n }\n }\n"])), devices.mobile);
|
|
4224
4302
|
var InfoTitleWrapper = /*#__PURE__*/styled.div(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: text;\n h3 {\n padding: 0;\n margin: 0 0 8px 0;\n }\n\n h6 {\n padding: 0;\n margin: 0;\n }\n\n @media ", " {\n & {\n h3 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n\n h6 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n"])), devices.tablet, function (_ref5) {
|
|
4225
4303
|
var theme = _ref5.theme;
|
|
@@ -4272,8 +4350,8 @@ var InfoTextWrapper = /*#__PURE__*/styled.div(_templateObject6$5 || (_templateOb
|
|
|
4272
4350
|
return theme.fonts.mobile.lineHeights.body[1];
|
|
4273
4351
|
}, devices.mobile);
|
|
4274
4352
|
var InfoLinkWrapper = /*#__PURE__*/styled.div(_templateObject7$3 || (_templateObject7$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
4275
|
-
var CarouselWrapper$1 = /*#__PURE__*/styled.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: 1 / 6 / 3 / 15;\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);
|
|
4276
|
-
var RotatorButtonsWrapper = /*#__PURE__*/styled.div(_templateObject9$2 || (_templateObject9$2 = /*#__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.mobile);
|
|
4353
|
+
var CarouselWrapper$1 = /*#__PURE__*/styled.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: 1 / 6 / 3 / 15;\n\n .swiper-slide {\n width: calc(100% - 32px - var(--rotator-button-width));\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);
|
|
4354
|
+
var RotatorButtonsWrapper = /*#__PURE__*/styled.div(_templateObject9$2 || (_templateObject9$2 = /*#__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 right: 32px;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4277
4355
|
var RotatorButtonsWrapperMobile = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\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.mobile);
|
|
4278
4356
|
|
|
4279
4357
|
var _excluded$8 = ["text"];
|
|
@@ -4837,7 +4915,7 @@ var PageHeadingCinema = function PageHeadingCinema(_ref) {
|
|
|
4837
4915
|
};
|
|
4838
4916
|
|
|
4839
4917
|
var _templateObject$G, _templateObject2$p, _templateObject3$i, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
|
|
4840
|
-
var ImpactWrapper = /*#__PURE__*/styled.div(_templateObject$G || (_templateObject$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: 16 / 9;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n align-items: center;\n\n ::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--base-color-black);\n filter: opacity(40%);\n z-index: ", ";\n }\n\n @media ", " {\n & {\n aspect-ratio: 1 / 1;\n background-image: url('", "');\n background-position: center;\n display: flex;\n align-items: start;\n }\n }\n"])), function (_ref) {
|
|
4918
|
+
var ImpactWrapper = /*#__PURE__*/styled.div(_templateObject$G || (_templateObject$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: 16 / 9;\n @supports not (aspect-ratio: 16 / 9) {\n height: 56.25vw;\n }\n\n background-image: url('", "');\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n align-items: center;\n\n ::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--base-color-black);\n filter: opacity(40%);\n z-index: ", ";\n }\n\n @media ", " {\n & {\n aspect-ratio: 1 / 1;\n @supports not (aspect-ratio: 1 / 1) {\n height: 100vw;\n }\n background-image: url('", "');\n background-position: center;\n display: flex;\n align-items: start;\n }\n }\n"])), function (_ref) {
|
|
4841
4919
|
var bgUrlDesktop = _ref.bgUrlDesktop;
|
|
4842
4920
|
return bgUrlDesktop;
|
|
4843
4921
|
}, zIndexes.content, devices.mobile, function (_ref2) {
|
|
@@ -4846,7 +4924,7 @@ var ImpactWrapper = /*#__PURE__*/styled.div(_templateObject$G || (_templateObjec
|
|
|
4846
4924
|
return bgUrlDevice ? bgUrlDevice : bgUrlDesktop;
|
|
4847
4925
|
});
|
|
4848
4926
|
var ImpactGrid = /*#__PURE__*/styled(Grid)(_templateObject2$p || (_templateObject2$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\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 . . . . . .'\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 . . . .'\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 & {\n grid-template-areas:\n '. . . . . 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 . .';\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
4849
|
-
var SponsorWrapper = /*#__PURE__*/styled.div(_templateObject3$i || (_templateObject3$i = /*#__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.contentOverlay, devices.
|
|
4927
|
+
var SponsorWrapper = /*#__PURE__*/styled.div(_templateObject3$i || (_templateObject3$i = /*#__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.contentOverlay, devices.mobileAndTablet);
|
|
4850
4928
|
var LogoWrapper$2 = /*#__PURE__*/styled.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n align-self: end;\n"])));
|
|
4851
4929
|
var TextWrapper$1 = /*#__PURE__*/styled.div(_templateObject5$a || (_templateObject5$a = /*#__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(3 * var(--line-height-header-3));\n }\n }\n\n @media ", " {\n & {\n margin-top: 12px;\n max-height: calc(3 * var(--line-height-header-3));\n }\n\n h3 {\n font-size: var(--font-size-header-5);\n letter-spacing: var(--letter-spacing-header-5);\n line-height: var(--line-height-header-5);\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4852
4930
|
var ButtonWrapper$2 = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 = /*#__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: 0;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
|
|
@@ -4972,12 +5050,21 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled.div(_templateObject3$j ||
|
|
|
4972
5050
|
}, devices.mobile);
|
|
4973
5051
|
var PromoWithTitleContainer = /*#__PURE__*/styled.div(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 0 32px 0;\n\n h2,\n h3 {\n margin: 0;\n }\n\n @media ", " {\n & {\n margin: 0 0 24px 0;\n }\n }\n"])), devices.mobile);
|
|
4974
5052
|
var PromoWithTitleSubtitle = /*#__PURE__*/styled.span(_templateObject5$b || (_templateObject5$b = /*#__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"])));
|
|
4975
|
-
var PromoWithTitleText = /*#__PURE__*/styled.div(_templateObject6$9 || (_templateObject6$9 = /*#__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 em {\n font-family: var(--font-family-body-italics);\n }\n"])))
|
|
4976
|
-
var
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
5053
|
+
var PromoWithTitleText = /*#__PURE__*/styled.div(_templateObject6$9 || (_templateObject6$9 = /*#__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 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) {
|
|
5054
|
+
var theme = _ref5.theme;
|
|
5055
|
+
return theme.colors.black;
|
|
5056
|
+
}, function (_ref6) {
|
|
5057
|
+
var theme = _ref6.theme;
|
|
5058
|
+
return theme.colors.darkgrey;
|
|
5059
|
+
}, function (_ref7) {
|
|
5060
|
+
var theme = _ref7.theme;
|
|
5061
|
+
return theme.colors.primary;
|
|
5062
|
+
});
|
|
5063
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled.div(_templateObject7$7 || (_templateObject7$7 = /*#__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) {
|
|
5064
|
+
var _ref8$primaryButtonTe = _ref8.primaryButtonTextLength,
|
|
5065
|
+
primaryButtonTextLength = _ref8$primaryButtonTe === void 0 ? 0 : _ref8$primaryButtonTe,
|
|
5066
|
+
_ref8$tertiaryButtonT = _ref8.tertiaryButtonTextLength,
|
|
5067
|
+
tertiaryButtonTextLength = _ref8$tertiaryButtonT === void 0 ? 0 : _ref8$tertiaryButtonT;
|
|
4981
5068
|
var isLinksLayoutColumn = primaryButtonTextLength >= LENGTH_TEXT || tertiaryButtonTextLength >= LENGTH_TEXT;
|
|
4982
5069
|
|
|
4983
5070
|
if (isLinksLayoutColumn) {
|
|
@@ -4985,11 +5072,11 @@ var ButtonsContainer$2 = /*#__PURE__*/styled.div(_templateObject7$7 || (_templat
|
|
|
4985
5072
|
}
|
|
4986
5073
|
|
|
4987
5074
|
return '';
|
|
4988
|
-
}, devices.mobile, devices.tablet, function (
|
|
4989
|
-
var
|
|
4990
|
-
primaryButtonTextLength =
|
|
4991
|
-
|
|
4992
|
-
tertiaryButtonTextLength =
|
|
5075
|
+
}, devices.mobile, devices.tablet, function (_ref9) {
|
|
5076
|
+
var _ref9$primaryButtonTe = _ref9.primaryButtonTextLength,
|
|
5077
|
+
primaryButtonTextLength = _ref9$primaryButtonTe === void 0 ? 0 : _ref9$primaryButtonTe,
|
|
5078
|
+
_ref9$tertiaryButtonT = _ref9.tertiaryButtonTextLength,
|
|
5079
|
+
tertiaryButtonTextLength = _ref9$tertiaryButtonT === void 0 ? 0 : _ref9$tertiaryButtonT;
|
|
4993
5080
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET$1 || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET$1;
|
|
4994
5081
|
|
|
4995
5082
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -5114,14 +5201,50 @@ var TextOnly = function TextOnly(_ref) {
|
|
|
5114
5201
|
};
|
|
5115
5202
|
|
|
5116
5203
|
var _templateObject$M, _templateObject2$s;
|
|
5117
|
-
var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$M || (_templateObject$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n }\n"])), ImageAspectRatioWrapper)
|
|
5204
|
+
var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$M || (_templateObject$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n"])), ImageAspectRatioWrapper, function (_ref) {
|
|
5205
|
+
var _ref$aspectRatio = _ref.aspectRatio,
|
|
5206
|
+
aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
|
|
5207
|
+
return aspectRatio;
|
|
5208
|
+
}, function (_ref2) {
|
|
5209
|
+
var _ref2$aspectRatio = _ref2.aspectRatio,
|
|
5210
|
+
aspectRatio = _ref2$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref2$aspectRatio,
|
|
5211
|
+
height = _ref2.height;
|
|
5212
|
+
return "calc(calc(" + height + "px - 12px - var(--line-height-body-2)) * " + AspectRatioWidth[aspectRatio] + ")";
|
|
5213
|
+
});
|
|
5118
5214
|
var CaptionWrapper = /*#__PURE__*/styled.div(_templateObject2$s || (_templateObject2$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 12px;\n height: var(--line-height-body-2);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-2);\n font-weight: var(--font-weight-body-2);\n letter-spacing: var(--letter-spacing-body-2);\n line-height: var(--line-height-body-2);\n text-transform: var(--text-transform-body-2);\n word-break: var(--word-break-body-2);\n font-style: italic;\n"])));
|
|
5119
5215
|
|
|
5120
5216
|
var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
5121
5217
|
var caption = _ref.caption,
|
|
5122
5218
|
children = _ref.children,
|
|
5123
5219
|
aspectRatio = _ref.aspectRatio;
|
|
5124
|
-
|
|
5220
|
+
var wrapperRef = useRef(null);
|
|
5221
|
+
|
|
5222
|
+
var _useState = useState(0),
|
|
5223
|
+
height = _useState[0],
|
|
5224
|
+
setHeight = _useState[1];
|
|
5225
|
+
|
|
5226
|
+
useEffect(function () {
|
|
5227
|
+
var setWrapperHeight = function setWrapperHeight() {
|
|
5228
|
+
var _wrapperRef$current;
|
|
5229
|
+
|
|
5230
|
+
return setHeight((wrapperRef == null ? void 0 : (_wrapperRef$current = wrapperRef.current) == null ? void 0 : _wrapperRef$current.offsetHeight) || 0);
|
|
5231
|
+
};
|
|
5232
|
+
|
|
5233
|
+
window.addEventListener('resize', setWrapperHeight);
|
|
5234
|
+
|
|
5235
|
+
if (wrapperRef) {
|
|
5236
|
+
setWrapperHeight();
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
return function () {
|
|
5240
|
+
return window.removeEventListener('resize', setWrapperHeight);
|
|
5241
|
+
};
|
|
5242
|
+
}, [wrapperRef]);
|
|
5243
|
+
return /*#__PURE__*/React__default.createElement(Wrapper$2, {
|
|
5244
|
+
aspectRatio: aspectRatio,
|
|
5245
|
+
ref: wrapperRef,
|
|
5246
|
+
height: height
|
|
5247
|
+
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
5125
5248
|
aspectRatio: aspectRatio
|
|
5126
5249
|
}, children), /*#__PURE__*/React__default.createElement(CaptionWrapper, null, caption));
|
|
5127
5250
|
};
|