@times-components/article-skeleton 1.86.5 → 1.88.0
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
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.88.0](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.87.0...@times-components/article-skeleton@1.88.0) (2022-09-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **TDP-000:** Remove latest from section ([#3146](https://github.com/newsuk/times-components/issues/3146)) ([7ac0fc3](https://github.com/newsuk/times-components/commit/7ac0fc30b87ca98641997c0d7421c356e8b46917))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.87.0](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.86.6...@times-components/article-skeleton@1.87.0) (2022-09-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **TDP-000:** Remove inline related articles ([#3145](https://github.com/newsuk/times-components/issues/3145)) ([2569d4c](https://github.com/newsuk/times-components/commit/2569d4cbc648d3a32b7472701d71784819f5d134))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.86.6](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.86.5...@times-components/article-skeleton@1.86.6) (2022-09-06)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @times-components/article-skeleton
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [1.86.5](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.86.4...@times-components/article-skeleton@1.86.5) (2022-09-06)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @times-components/article-skeleton
|
|
@@ -470,22 +470,6 @@ const renderers = _ref => {
|
|
|
470
470
|
});
|
|
471
471
|
},
|
|
472
472
|
|
|
473
|
-
autoInlineRelatedArticles(key, _ref15) {
|
|
474
|
-
let element = _ref15.element;
|
|
475
|
-
return /*#__PURE__*/_react.default.createElement(_context.default.Consumer, {
|
|
476
|
-
key: key
|
|
477
|
-
}, _ref16 => {
|
|
478
|
-
let theme = _ref16.theme;
|
|
479
|
-
return /*#__PURE__*/_react.default.createElement(_tsComponents.HiddenDiv, {
|
|
480
|
-
className: "inlineRelatedArticles"
|
|
481
|
-
}, /*#__PURE__*/_react.default.createElement(_tsComponents.InArticleRelatedArticles, {
|
|
482
|
-
heading: "Related Articles",
|
|
483
|
-
relatedArticles: element.attributes.relatedArticles,
|
|
484
|
-
sectionColour: theme.sectionColour
|
|
485
|
-
}));
|
|
486
|
-
});
|
|
487
|
-
},
|
|
488
|
-
|
|
489
473
|
keyFacts(key, attributes, renderedChildren, indx, node) {
|
|
490
474
|
return /*#__PURE__*/_react.default.createElement(_keyFacts.default, {
|
|
491
475
|
key: key,
|
|
@@ -544,18 +528,18 @@ const renderers = _ref => {
|
|
|
544
528
|
}, children);
|
|
545
529
|
},
|
|
546
530
|
|
|
547
|
-
pullQuote(key,
|
|
548
|
-
let
|
|
549
|
-
name =
|
|
550
|
-
text =
|
|
551
|
-
twitter =
|
|
531
|
+
pullQuote(key, _ref15, children) {
|
|
532
|
+
let _ref15$caption = _ref15.caption,
|
|
533
|
+
name = _ref15$caption.name,
|
|
534
|
+
text = _ref15$caption.text,
|
|
535
|
+
twitter = _ref15$caption.twitter;
|
|
552
536
|
return /*#__PURE__*/_react.default.createElement(_context.default.Consumer, {
|
|
553
537
|
key: key
|
|
554
|
-
},
|
|
555
|
-
let
|
|
556
|
-
pullQuoteFont =
|
|
557
|
-
|
|
558
|
-
sectionColour =
|
|
538
|
+
}, _ref16 => {
|
|
539
|
+
let _ref16$theme = _ref16.theme,
|
|
540
|
+
pullQuoteFont = _ref16$theme.pullQuoteFont,
|
|
541
|
+
_ref16$theme$sectionC = _ref16$theme.sectionColour,
|
|
542
|
+
sectionColour = _ref16$theme$sectionC === void 0 ? _tsStyleguide.colours.section.default : _ref16$theme$sectionC;
|
|
559
543
|
return /*#__PURE__*/_react.default.createElement(_responsive.PullQuoteContainer, null, /*#__PURE__*/_react.default.createElement(_responsive.PullQuoteResp, null, /*#__PURE__*/_react.default.createElement(_pullQuote.default, {
|
|
560
544
|
caption: name,
|
|
561
545
|
font: pullQuoteFont,
|
|
@@ -566,15 +550,15 @@ const renderers = _ref => {
|
|
|
566
550
|
});
|
|
567
551
|
},
|
|
568
552
|
|
|
569
|
-
video(key,
|
|
570
|
-
let id =
|
|
571
|
-
is360 =
|
|
572
|
-
brightcovePolicyKey =
|
|
573
|
-
brightcoveVideoId =
|
|
574
|
-
brightcoveAccountId =
|
|
575
|
-
brightcovePlayerId =
|
|
576
|
-
caption =
|
|
577
|
-
posterImageUrl =
|
|
553
|
+
video(key, _ref17) {
|
|
554
|
+
let id = _ref17.id,
|
|
555
|
+
is360 = _ref17.is360,
|
|
556
|
+
brightcovePolicyKey = _ref17.brightcovePolicyKey,
|
|
557
|
+
brightcoveVideoId = _ref17.brightcoveVideoId,
|
|
558
|
+
brightcoveAccountId = _ref17.brightcoveAccountId,
|
|
559
|
+
brightcovePlayerId = _ref17.brightcovePlayerId,
|
|
560
|
+
caption = _ref17.caption,
|
|
561
|
+
posterImageUrl = _ref17.posterImageUrl;
|
|
578
562
|
const MediaWrapper = responsiveDisplayWrapper("primary");
|
|
579
563
|
return /*#__PURE__*/_react.default.createElement(MediaWrapper, {
|
|
580
564
|
key: key
|
|
@@ -604,9 +588,9 @@ const renderers = _ref => {
|
|
|
604
588
|
});
|
|
605
589
|
};
|
|
606
590
|
|
|
607
|
-
const decorateAd =
|
|
608
|
-
let contextUrl =
|
|
609
|
-
section =
|
|
591
|
+
const decorateAd = _ref18 => {
|
|
592
|
+
let contextUrl = _ref18.contextUrl,
|
|
593
|
+
section = _ref18.section;
|
|
610
594
|
return element => element.name === "ad" ? _objectSpread(_objectSpread({}, element), {}, {
|
|
611
595
|
attributes: _objectSpread(_objectSpread({}, element.attributes), {}, {
|
|
612
596
|
contextUrl,
|
|
@@ -615,18 +599,18 @@ const decorateAd = _ref20 => {
|
|
|
615
599
|
}) : element;
|
|
616
600
|
};
|
|
617
601
|
|
|
618
|
-
const ArticleBody =
|
|
619
|
-
let bodyContent =
|
|
620
|
-
contextUrl =
|
|
621
|
-
section =
|
|
622
|
-
paidContentClassName =
|
|
623
|
-
template =
|
|
624
|
-
isPreview =
|
|
625
|
-
swgProductId =
|
|
626
|
-
inArticlePuffFlag =
|
|
627
|
-
olympicsKeys =
|
|
628
|
-
isLiveOrBreaking =
|
|
629
|
-
articleHeadline =
|
|
602
|
+
const ArticleBody = _ref19 => {
|
|
603
|
+
let bodyContent = _ref19.content,
|
|
604
|
+
contextUrl = _ref19.contextUrl,
|
|
605
|
+
section = _ref19.section,
|
|
606
|
+
paidContentClassName = _ref19.paidContentClassName,
|
|
607
|
+
template = _ref19.template,
|
|
608
|
+
isPreview = _ref19.isPreview,
|
|
609
|
+
swgProductId = _ref19.swgProductId,
|
|
610
|
+
inArticlePuffFlag = _ref19.inArticlePuffFlag,
|
|
611
|
+
olympicsKeys = _ref19.olympicsKeys,
|
|
612
|
+
isLiveOrBreaking = _ref19.isLiveOrBreaking,
|
|
613
|
+
articleHeadline = _ref19.articleHeadline;
|
|
630
614
|
return (0, _markupForest.default)(bodyContent.map(decorateAd({
|
|
631
615
|
contextUrl,
|
|
632
616
|
section
|
package/dist/article-skeleton.js
CHANGED
|
@@ -67,8 +67,6 @@ var _dropcapUtil = _interopRequireDefault(require("./contentModifiers/dropcap-ut
|
|
|
67
67
|
|
|
68
68
|
var _newsletterPuff = _interopRequireDefault(require("./contentModifiers/newsletter-puff"));
|
|
69
69
|
|
|
70
|
-
var _inlineRelatedArticle = _interopRequireDefault(require("./contentModifiers/inline-related-article"));
|
|
71
|
-
|
|
72
70
|
var _nativeAd = _interopRequireDefault(require("./contentModifiers/native-ad"));
|
|
73
71
|
|
|
74
72
|
var _inlineAd = _interopRequireDefault(require("./contentModifiers/inline-ad"));
|
|
@@ -104,10 +102,7 @@ const ArticleSkeleton = _ref => {
|
|
|
104
102
|
isPreview = _ref.isPreview,
|
|
105
103
|
swgProductId = _ref.swgProductId,
|
|
106
104
|
additionalRelatedArticlesFlag = _ref.additionalRelatedArticlesFlag,
|
|
107
|
-
inlineRelatedArticleOptions = _ref.inlineRelatedArticleOptions,
|
|
108
105
|
algoliaSearchKeys = _ref.algoliaSearchKeys,
|
|
109
|
-
latestFromSectionFlag = _ref.latestFromSectionFlag,
|
|
110
|
-
latestFromSection = _ref.latestFromSection,
|
|
111
106
|
olympicsKeys = _ref.olympicsKeys,
|
|
112
107
|
getFallbackThumbnailUrl169 = _ref.getFallbackThumbnailUrl169;
|
|
113
108
|
const commentsEnabled = article.commentsEnabled,
|
|
@@ -126,7 +121,7 @@ const ArticleSkeleton = _ref => {
|
|
|
126
121
|
savingEnabled = article.savingEnabled,
|
|
127
122
|
sharingEnabled = article.sharingEnabled,
|
|
128
123
|
publishedTime = article.publishedTime;
|
|
129
|
-
const articleContentReducers = [(0, _dropcapUtil.default)(template, dropcapsDisabled), (0, _newsletterPuff.default)(section, isPreview, expirableFlags), _nativeAd.default, _inlineAd.default,
|
|
124
|
+
const articleContentReducers = [(0, _dropcapUtil.default)(template, dropcapsDisabled), (0, _newsletterPuff.default)(section, isPreview, expirableFlags), _nativeAd.default, _inlineAd.default, _articleTrackingLastParagraph.default];
|
|
130
125
|
const newContent = reduceArticleContent(content, articleContentReducers);
|
|
131
126
|
const HeaderAdContainer = (0, _responsive.getHeaderAdStyles)(template);
|
|
132
127
|
receiveChildList([{
|
|
@@ -242,9 +237,7 @@ const ArticleSkeleton = _ref => {
|
|
|
242
237
|
relatedArticlesVisible: !!observed.get("related-articles"),
|
|
243
238
|
commentingConfig: commentingConfig,
|
|
244
239
|
topics: topics,
|
|
245
|
-
additionalRelatedArticlesFlag: additionalRelatedArticlesFlag
|
|
246
|
-
latestFromSectionFlag: latestFromSectionFlag,
|
|
247
|
-
latestFromSection: latestFromSection
|
|
240
|
+
additionalRelatedArticlesFlag: additionalRelatedArticlesFlag
|
|
248
241
|
});
|
|
249
242
|
})))), /*#__PURE__*/_react.default.createElement(_ad.AdContainer, {
|
|
250
243
|
slotName: "pixel"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/article-skeleton",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.88.0",
|
|
4
4
|
"description": "The article skeleton",
|
|
5
5
|
"main": "dist/article-skeleton",
|
|
6
6
|
"dev": "src/article-skeleton",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@times-components/ad": "2.21.0",
|
|
64
|
-
"@times-components/article-extras": "0.
|
|
64
|
+
"@times-components/article-extras": "0.18.0",
|
|
65
65
|
"@times-components/article-image": "7.12.2",
|
|
66
|
-
"@times-components/article-paragraph": "1.8.
|
|
66
|
+
"@times-components/article-paragraph": "1.8.8",
|
|
67
67
|
"@times-components/article-topics": "4.7.1",
|
|
68
68
|
"@times-components/caption": "3.3.0",
|
|
69
69
|
"@times-components/context": "1.10.0",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "d6ce891cb47a7bd75fb96fa21bb0f5d8b1a6e856"
|
|
108
108
|
}
|
package/rnw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,f=Object.prototype,g=d["__core-js_shared__"],h=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=f.hasOwnProperty,v=f.toString,w=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,j=u.splice,x=F(d,"Map"),E=F(Object,"create"),P=O?O.prototype:void 0,k=P?P.toString:void 0;function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function A(e,t){for(var i,a=0,o=(t=function(e,t){if(M(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||U(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(i=t)?i:D(i)).length;null!=e&&a<o;)e=e[z(t[a++])];return a&&a==o?e:void 0}function T(e){return!(!R(e)||(t=e,h&&h in t))&&(function(e){var t=R(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function N(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function F(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return T(n)?n:void 0}_.prototype.clear=function(){this.__data__=E?E(null):{}},_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_.prototype.get=function(e){var t=this.__data__;if(E){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:y.call(t,e)},_.prototype.set=function(e,t){return this.__data__[e]=E&&void 0===t?"__lodash_hash_undefined__":t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},C.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return I(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},S.prototype.clear=function(){this.__data__={hash:new _,map:new(x||C),string:new _}},S.prototype.delete=function(e){return N(this,e).delete(e)},S.prototype.get=function(e){return N(this,e).get(e)},S.prototype.has=function(e){return N(this,e).has(e)},S.prototype.set=function(e,t){return N(this,e).set(e,t),this};var D=q((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return k?k.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(q.Cache||S),n}q.Cache=S;var M=Array.isArray;function R(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==v.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:A(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(8),l=n(17),s=n.n(l),d=n(12),p=n.n(d),u=n(9),m=n.n(u),f=n(10),g=n(2),h=n(1),b=n(13),y=n.n(b),v=n(18),w=n(19),O=n.n(w),j=n(14),x=n.n(j),E=n(7),P=n.n(E),k=n(20),_=n.n(k),C=n(21),S=n.n(C),I=n(22),A=n.n(I),T=n(23),N=n.n(T),F=n(24),D=n.n(F),z=n(11),q=n.n(z),M=n(6),R=n(15),U=n.n(R);const B={base:"\n color: ".concat(h.colours.functional.action,';\n font-family: "').concat(h.fonts.bodyRegular,'";\n line-height: 26px;\n font-size: ').concat(h.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(h.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(h.fontSizes.body,"px;\n line-height: 30px;\n ")},L={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(h.colours.functional.action,";\n ")};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(U.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?L:B,target:n,url:r,onPress:a},t)};K.defaultProps=V(V({},U.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var $,Q=($=K,Object(f.withTrackEvents)($,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),G=n(3),J=n.n(G),Y=n(16),X=n.n(Y);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=J()(M.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(h.spacing)(2),h.breakpoints.medium),ne=e=>{let t=e.caption,n=e.credits;return i.a.createElement(te,null,i.a.createElement(X.a,{credits:n,text:t}))};ne.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},X.a.defaultProps);var re=ne;J.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide),J.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",';font-family:"','";line-height:26px;font-size:',"px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],h.colours.functional.primary,h.fonts.bodyRegular,h.fontSizes.bodyMobile,Object(h.spacing)(5),h.breakpoints.medium,h.fontSizes.body);const ie=J.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["margin-bottom:",";",";"],Object(h.spacing)(4),e=>e.fullWidth?Object(G.css)(["width:100%;"]):Object(G.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide)),ae=J()(M.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(5),h.breakpoints.medium,h.breakpoints.wide),oe=J()(M.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(h.spacing)(4)),ce=J()(M.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),Object(h.spacing)(5),h.breakpoints.medium,h.breakpoints.wide),le=J()(M.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide),se=J()(M.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(h.spacing)(2),Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,Object(h.spacing)(4),Object(h.spacing)(1)),de=J()(M.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],h.breakpoints.medium,h.breakpoints.wide),pe="color: ".concat(h.colours.functional.primary,';\n font-family: "').concat(h.fonts.headline,'";\n font-weight: 400;\n margin: 0 auto ').concat(Object(h.spacing)(2),";\n padding-right: ").concat(Object(h.spacing)(2),";\n padding-left: ").concat(Object(h.spacing)(2),";\n\n @media (min-width: ").concat(h.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(h.breakpoints.wide,"px) {\n width: 56.2%;\n }"),ue=J.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading2Mobile,h.fontSizes.heading2Mobile,h.breakpoints.medium,h.fontSizes.heading2,h.fontSizes.heading2),me=J.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading3Mobile,h.fontSizes.heading3Mobile,h.breakpoints.medium,h.fontSizes.heading3,h.fontSizes.heading3),fe=J.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading4Mobile,h.fontSizes.heading4Mobile,h.breakpoints.medium,h.fontSizes.heading4,h.fontSizes.heading4),ge=J.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading5Mobile,h.fontSizes.heading5Mobile,h.breakpoints.medium,h.fontSizes.heading5,h.fontSizes.heading5),he=J.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading5Mobile,h.fontSizes.heading5Mobile,h.breakpoints.medium,h.fontSizes.heading5,h.fontSizes.heading5),be=J.a.div.withConfig({displayName:"responsive__NativeAd",componentId:"sc-4v1r4q-14"})(["clear:both;display:flex;flex-wrap:wrap;margin:0 auto 30px;width:80.8%;min-height:210px;@media (min-width:768px){min-height:120px;}@media (min-width:","px){width:56.2%;}&.hidden{visibility:hidden;}"],h.breakpoints.wide),ye=J.a.h2.withConfig({displayName:"responsive__NativeAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],h.fontSizes.teaser,h.fonts.bodyRegular),ve=J.a.div.withConfig({displayName:"responsive__Ad",componentId:"sc-4v1r4q-16"})(["flex:1 1 50%;@media (max-width:767px){flex:1 1 46%;&:first-of-type{margin-right:1.5%;}&:last-child{margin-left:1.5%;}}"]),we=J.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-17"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:970px){min-height:283px;}"]),Oe=J.a.h2.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-18"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;"],h.fontSizes.teaser,h.fonts.bodyRegular);function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ke="https://gobble.timesdev.tools/deck/api/deck-post-action/",_e=e=>{switch(e){case"secondary":return ce;case"inline":return le;case"fullwidth":return oe;default:return ae}},Ce=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},Se=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,l=e.isPreview,s=e.swgProductId,d=e.inArticlePuffFlag,u=e.olympicsKeys,m=e.isLiveOrBreaking,f=e.articleHeadline;return q()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Ee(Ee({},e),{},{attributes:Ee(Ee({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.olympicsKeys,l=e.isLiveOrBreaking,s=e.section,d=e.articleHeadline;return Ee(Ee({},A.a),{},{ad:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd3"})),dropCap:(e,t,n)=>i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?h.colours.section.default:a;return i.a.createElement(j.DropCapView,{colour:o,font:r},n)}),nativeAd:e=>l?null:i.a.createElement(be,{className:"group-3 hidden",key:e},i.a.createElement(ye,null,"Sponsored"),i.a.createElement(ve,{id:"advert-inarticle-native-1","data-parent":"group-3"}),i.a.createElement(ve,{id:"advert-inarticle-native-2","data-parent":"group-3"})),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.credits;const d=_e(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(h.spacing)(40),threshold:0},t=>{let p=t.observed,u=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>u(e)},i.a.createElement("div",{id:r},i.a.createElement(d,null,i.a.createElement(O.a,{captionOptions:{caption:l,credits:s},imageOptions:{display:a,highResSize:Ce(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,s=t.element,d=t.display;const p=s.attributes,u=s.value;switch(u){case"in-article-info-card":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.GalleryCarousel,{sectionColour:t.sectionColour})))});case"newsletter-puff":const t=p.code,s=p.copy,m=p.headline,f=p.imageUri,h=p.label;return a?i.a.createElement("div",{id:n},i.a.createElement(g.PreviewNewsletterPuff,{copy:Object(g.safeDecodeURIComponent)(s),headline:Object(g.safeDecodeURIComponent)(m),imageUri:Object(g.safeDecodeURIComponent)(f),label:Object(g.safeDecodeURIComponent)(h)})):i.a.createElement("div",{id:n},i.a.createElement(g.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(g.safeDecodeURIComponent)(s),headline:Object(g.safeDecodeURIComponent)(m),imageUri:Object(g.safeDecodeURIComponent)(f),label:Object(g.safeDecodeURIComponent)(h)}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(g.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"in-article-puff":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.FetchProvider,{url:ke+p["deck-id"]},i.a.createElement(g.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:l})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(g.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline}));case"olympics-medal-table":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.OlympicsMedalTable,{keys:o,sectionColor:t.sectionColour}))});case"olympics-schedule":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(g.OlympicsSchedule,{keys:o,sectionColor:t.sectionColour}))});default:return i.a.createElement(ie,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(_.a,{attributes:p,element:u,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline,l=n.imageUri,s=n.label;return i.a.createElement(g.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,imageUri:l,label:s})},autoInlineRelatedArticles(e,t){let n=t.element;return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement(g.HiddenDiv,{className:"inlineRelatedArticles"},i.a.createElement(g.InArticleRelatedArticles,{heading:"Related Articles",relatedArticles:n.attributes.relatedArticles,sectionColour:t.sectionColour}))})},keyFacts:(e,t,n,r,a)=>i.a.createElement(S.a,{key:e,ast:a,section:s,headline:d,isLiveOrBreaking:l}),heading2:(e,t,n)=>i.a.createElement(ue,null,n),heading3:(e,t,n)=>i.a.createElement(me,null,n),heading4:(e,t,n)=>i.a.createElement(fe,null,n),heading5:(e,t,n)=>i.a.createElement(ge,null,n),heading6:(e,t,n)=>i.a.createElement(he,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(Q,{dropCap:o,key:e,target:a,url:r},n)},paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(x.a,je({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?h.colours.section.default:l;return i.a.createElement(de,null,i.a.createElement(se,null,i.a.createElement(N.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,c=t.brightcoveAccountId,l=t.brightcovePlayerId,s=t.caption,d=t.posterImageUrl;const p=_e("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(M.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(D.a,{id:n,is360:r,accountId:c,height:"100%",playerId:l,policyKey:a,poster:{uri:d},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(re,{caption:s}))))}})})({paidContentClassName:a,template:o,isPreview:l,swgProductId:s,inArticlePuffFlag:d,olympicsKeys:u,isLiveOrBreaking:m,section:r,articleHeadline:f}))};Se.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Ie=Se;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({accounts:o.a.shape({current:o.a.string.isRequired,readOnly:o.a.string.isRequired}),switchOver:o.a.string.isRequired}).isRequired,o.a.string;var Ae=n(5),Te=n.n(Ae);const Ne=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},Fe=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},De=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},ze=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Me(Me({},e),{},{attributes:Me(Me({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Me(Me({},e),{},{children:i}):e)};const Be=J.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],h.colours.functional.keyline),Le=J()(Be).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],h.breakpoints.medium,Object(h.spacing)(6),h.breakpoints.medium,h.breakpoints.wide,Object(h.spacing)(2),Object(h.spacing)(2)),He=J.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],h.breakpoints.wide,Object(h.spacing)(4)),Ve=J()(M.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;> ","{order:3;}"],Le),We=J.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=e=>{const t=Object(h.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),paddingHorizontal:i(2),paddingVertical:i(2)},articleLink:$e($e({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:$e($e({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingHorizontal:i(2)},interactiveContainerTablet:{alignSelf:"center",width:h.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingHorizontal:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:$e($e({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:$e($e({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:$e($e({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:$e($e({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:$e($e({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var Je={articleContainer:{backgroundColor:h.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(h.spacing)(2),paddingRight:Object(h.spacing)(2)}};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=Ge(),tt=Xe(Xe({},et),{},{ad:Xe(Xe({},et.ad),{},{marginBottom:Object(h.spacing)(6),marginTop:Object(h.spacing)(6),width:"100%"}),articleTextElement:Xe(Xe({},et.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var nt=Xe(Xe({},Je),tt),rt=n(25);const it={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},at=e=>Te()(e,"crop169.url",null),ot=e=>at(Te()(e,"leadAsset.posterImage",Te()(e,"leadAsset",null))),ct=e=>at(Te()(e,"leadAsset",null)),lt=e=>(e.hasVideo?ot:ct)(e),st=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?ot(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Te()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Te()(e.listingAsset,"crop169.url",null);return n||Te()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function dt(e){let t=e.article,n=e.logoUrl,r=e.paidContentClassName,a=e.getFallbackThumbnailUrl169,o=e.swgProductId;const c=t.descriptionMarkup,l=t.headline,s=t.leadAsset,d=t.publicationName,p=t.shortHeadline,u=t.publishedTime,m=t.updatedTime,f=t.hasVideo,g=t.seoDescription,h=t.keywords,b=t.url,y=s||{},v=y.brightcoveAccountId,w=y.brightcoveVideoId,O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),x=it[d],E=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(z.renderTreeAsText)({children:n})}(t),k=g||(Array.isArray(c)&&c.length?Object(z.renderTreeAsText)({children:c}):null),_=function(e){const t=e.tiles;if(!t)return null;const n=t.reduce((e,t)=>(e.push(...t.slices),e),[]).reduce((e,t)=>(e.push(...t.sections),e),[]).map(e=>e.title);if(0===n.length)return null;const r=n.filter(e=>"News"!==e);return r.length?r[0]:"News"}(t),C=st(t)||(a?a():null),S=Object(M.appendToImageURL)(lt(t),"resize",1200)||C,I=function(e){return e.bylines?(t=e,t.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let t=e.name,n=e.jobTitle,r=e.twitter,i=e.slug;const a="https://thetimes.co.uk/profile/".concat(i);return{"@type":"Person",name:t,jobTitle:n,sameAs:r?[a,"https://twitter.com/".concat(r)]:a}}):[];var t}(t),A=Te()(s,"caption",null),T=l||p||"",N=u&&new Date(u).toISOString(),F=m||N,D=E?{"@type":"Person",name:E}:null,q=(I&&I.length?I:D)||{"@type":"Organization",name:"The Times"},R={"@type":"Organization",name:x,logo:{"@type":"ImageObject",url:n}},U=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if("article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Te()(i[l],"children[0].attributes.value"),t=e?"".concat(Te()(e)," "):"";o.articleBody?o.articleBody+=t:o.articleBody=t}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,R,q),B={"@context":"https://schema.org","@type":"NewsArticle",headline:T,publisher:{"@type":"Organization",name:x,logo:{"@type":"ImageObject",url:n}},mainEntityOfPage:{"@type":"WebPage"},dateCreated:u,datePublished:N,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(r)},image:{"@type":"ImageObject",url:S,caption:A},thumbnailUrl:C,dateModified:F,author:q,articleSection:_};o&&(B.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:o});const L=f?{"@context":"https://schema.org","@type":"VideoObject",name:s.title||T,uploadDate:F,thumbnailUrl:C,description:Array.isArray(c)&&c.length?Object(z.renderTreeAsText)({children:c}):g||s.title||T,contentUrl:"https://players.brightcove.net/".concat(v,"/default_default/index.html?videoId=").concat(w)}:null,H={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:l,description:g,mainEntityOfPage:{"@type":"WebPage","@id":b},datePublished:u,dateModified:m,coverageStartTime:u,coverageEndTime:O,url:b,keywords:h,image:{"@type":"ImageObject",url:S,caption:A},publisher:R,author:q,liveBlogUpdate:U,articleSection:_};return i.a.createElement(P.a.Consumer,null,e=>{let n=e.makeArticleUrl;return B.mainEntityOfPage["@id"]=n(t),i.a.createElement(rt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,T," | ",_?"".concat(_," | "):"",x),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:T,name:"article:title"}),i.a.createElement("meta",{content:x,name:"article:publication"}),k&&i.a.createElement("meta",{content:k,name:"description"}),E&&i.a.createElement("meta",{content:E,name:"author"}),i.a.createElement("meta",{content:T,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n(t),property:"og:url"}),k&&i.a.createElement("meta",{content:k,property:"og:description"}),S&&i.a.createElement("meta",{content:S,property:"og:image"}),f&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:T,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n(t),name:"twitter:url"}),k&&i.a.createElement("meta",{content:k,name:"twitter:description"}),S&&i.a.createElement("meta",{content:S,name:"twitter:image"}),j?i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)):i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(B)),L&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(L)))})}dt.defaultProps={swgProductId:null};var pt=dt;var ut=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Te()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})},mt=n(26),ft=n.n(mt);function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const ht=J.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;",";"],h.colours.functional.white,e=>e.isClient&&[u.selectors.sizer(Object(G.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),u.selectors.sticky(Object(G.css)(["will-change:height,box-shadow;"])),Object(u.computeProgressStyles)(e=>Object(G.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,h.colours.functional.greyStickyBarBoxShadow,u.selectors.stickySizer(Object(G.css)(["border-bottom-color:",";"],h.colours.functional.greyStickyBarBorderBottom))))]);function bt(e){return i.a.createElement(M.ServerClientRender,{client:()=>i.a.createElement(ht,gt({isClient:!0},e)),server:()=>i.a.createElement(ht,e)})}const yt=J()(Le).withConfig({displayName:"sticky-save-and-share-bar__StyledKeylineItem",componentId:"hqppv0-1"})(["",";"],u.selectors.containsSticky(Object(G.css)(["border-bottom-color:transparent;"]))),vt=Object(u.mediaQuery)("(max-width: ".concat(h.breakpoints.huge,"px)"));var wt=function(e){return i.a.createElement(yt,null,i.a.createElement(m.a,{Component:bt,shouldBeSticky:vt},i.a.createElement(ft.a,e)))};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Et=["indepth","maincomment","magazinestandard","magazinecomment"],Pt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Te()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return jt(jt({},e),{},{attributes:jt({},e.attributes),children:[jt(jt({},t[0]),{},{attributes:jt(jt({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),jt(jt({},t[0]),{},{attributes:jt(jt({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;const r=Pt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=jt(jt({},e),{},{attributes:jt(jt({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=jt(jt({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},kt=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?kt(t.children):e};var _t=(e,t,n)=>{try{if(t&&Et.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Pt(t),i=Pt(t);kt(r.children).splice(1);kt(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},Ct=(e,t)=>n=>{const r=_t(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:It({label:"In your inbox"},e)}},children:[]}),Nt=[{section:"news",payload:Tt({code:"TNL-101",headline:"Best of Times",copy:"We’ll send you our top stories, across all sections, straight to your inbox. Simple as that.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Tt({code:"TNL-103",headline:"Business briefing",copy:"In-depth analysis and comment on the latest financial and economic news from our award-winning Business teams.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Tt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories of the week from The Times and The Sunday Times Scotland, delivered directly to you every Saturday morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Tt({code:"TNL-107",headline:"Money newsletter",copy:"We'll send you the latest personal finance and investment news to make your money go further.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Tt({code:"TNL-121",headline:"The Brief",copy:"A weekly overview of the significant issues in Law, drawing attention to expert analysis and exclusive commentary.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Tt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"bricks & mortar",payload:Tt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})}],Ft=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),Dt=(e,t,n)=>It(It({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),zt=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var qt=(e,t,n)=>r=>{if(t||De(n))return r;const i=(e=>{const t=Nt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Ft(r)||Ft(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=zt(e),i=zt(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,Dt(t,3-n,i)]:[...e,t],[])};function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"autoInlineRelatedArticles",attributes:{element:{value:"inline-related-articles",attributes:e}},children:[]}};var Lt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.afterParagraph,r=void 0===n?7:n,i=t.paragraphPadding,a=void 0===i?2:i;return t=>{if(!e||!e.items)return t;const n=t.find(e=>"paywall"===e.name);if(!n)return t;const i=[...t,...n.children].filter(e=>"paywall"!==e.name),o=i.filter(e=>"paragraph"===e.name)[r-1],c=i.indexOf(o);if(i.slice(c-a+1,c+a+1).filter(e=>"paragraph"===e.name).length===2*a){if(t.includes(o)){const n=t.indexOf(o);return[...t.slice(0,n+1),Bt({relatedArticles:Object(g.formatRelatedArticles)(e)}),...t.slice(n+1)]}const r=n.children.indexOf(o);return t.map(t=>t!==n?t:Rt(Rt({},n),{},{children:[...n.children.slice(0,r+1),Bt({relatedArticles:Object(g.formatRelatedArticles)(e)}),...n.children.slice(r+1)]}))}return t.map(t=>t!==n?t:Rt(Rt({},n),{},{children:[...n.children,Bt({relatedArticles:Object(g.formatRelatedArticles)(e)})]}))}};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=e=>{const t=[...e],n=t.find(e=>"paywall"===e.name),r=t.filter(e=>"paragraph"===e.name);if(!n){return t.find(e=>"nativeAd"===e.name)||t.splice(2,0,{name:"nativeAd",children:[]}),t}const i=Number(9-r.length),a=n.children,o=a.map((e,t)=>Vt(Vt({},e),{},{index:t})).filter(e=>"paragraph"===e.name),c=o[i]?o[i].index:null;return a.find(e=>"nativeAd"===e.name)||c&&null!==c&&a.splice(c,0,{name:"nativeAd",children:[]}),t};function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=e=>{const t=[...e],n=t.find(e=>"paywall"===e.name),r=t.filter(e=>"paragraph"===e.name);if(!n)return t;const i=n.children,a=i.map((e,t)=>Qt(Qt({},e),{},{index:t})).filter(e=>"paragraph"===e.name);return[13,20,27].forEach((e,t)=>{if(!i.find(e=>e.name==="inlineAd".concat(t+1))){const n=a[e-r.length]?a[e-r.length].index:null;n&&null!==n&&i.splice(n+t,0,{name:"inlineAd".concat(t+1),children:[]})}}),t};n.d(t,"reduceArticleContent",(function(){return Yt})),n.d(t,"KeylineItem",(function(){return Be})),n.d(t,"ArticleKeylineItem",(function(){return Le})),n.d(t,"ArticleLink",(function(){return Q}));const Yt=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),Xt=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.logoUrl,l=e.receiveChildList,d=e.commentingConfig,m=e.paidContentClassName,f=e.isPreview,b=e.swgProductId,w=e.additionalRelatedArticlesFlag,O=e.inlineRelatedArticleOptions,j=e.algoliaSearchKeys,x=e.latestFromSectionFlag,E=e.latestFromSection,P=e.olympicsKeys,k=e.getFallbackThumbnailUrl169;const _=n.commentsEnabled,C=n.content,S=n.dropcapsDisabled,I=n.id,A=n.section,T=n.url,N=n.headline,F=n.shortHeadline,D=n.expirableFlags,z=n.label,q=n.topics,R=n.relatedArticleSlice,U=n.template,B=n.savingEnabled,L=n.sharingEnabled,H=n.publishedTime,V=[Ct(U,S),qt(A,f,D),Kt,Jt,Lt(R,O),Ue],W=Yt(C,V),K=(e=>{const t="indepth"===e;return J()(M.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:970px){min-height:250px;}"],h.colours.functional.keyline,h.colours.functional.keyline,t?"0":"1px",Object(h.spacing)(2),t?"0":Object(h.spacing)(2))})(U);l([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const $=De(D);return i.a.createElement(u.StickyProvider,null,i.a.createElement(g.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:N||F||"",section_details:A}},analyticsStream:t},f&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:I,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":A,"data-article-template":U},i.a.createElement(pt,{article:n,logoUrl:o,paidContentClassName:m,getFallbackThumbnailUrl169:k,swgProductId:b}),i.a.createElement(g.AlgoliaSearchProvider,{algoliaSearchKeys:j,article:{id:I,label:z,section:A,topics:q},analyticsStream:t},i.a.createElement(r.Fragment,null,i.a.createElement(K,{key:"headerAd"},i.a.createElement(c.AdContainer,{slotName:"header",style:nt.adMarginStyle})),i.a.createElement(He,null,i.a.createElement(Ve,null,i.a.createElement(a,null),B||L?i.a.createElement(y.a,{state:y.a.loggedInOrShared},i.a.createElement(v.MessageContext.Consumer,null,e=>{let t=e.showMessage;return i.a.createElement(wt,{articleId:I,articleHeadline:N,articleUrl:T,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:B,sharingEnabled:L})})):null),i.a.createElement(We,null,W&&i.a.createElement(Ie,{analyticsStream:t,content:W,contextUrl:T,section:A,articleHeadline:N,paidContentClassName:m,template:U,isPreview:f,olympicsKeys:P,isLiveOrBreaking:$}),i.a.createElement(ut,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"}),i.a.createElement(p.a,{rootMargin:Object(h.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(s.a,{analyticsStream:t,articleId:I,articleHeadline:N,articleUrl:T,section:A,publishedTime:H,savingEnabled:B,sharingEnabled:L,commentsEnabled:_,registerNode:r,relatedArticleSlice:R,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:d,topics:q,additionalRelatedArticlesFlag:w,latestFromSectionFlag:x,latestFromSection:E})})))),i.a.createElement(c.AdContainer,{slotName:"pixel"}),i.a.createElement(c.AdContainer,{slotName:"pixelteads"}),i.a.createElement(c.AdContainer,{slotName:"pixelskin"})))))};Xt.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null};t.default=(e=>Object(f.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Te()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Te()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Te()(t,"headline",""),label:Te()(t,"label",""),pageName:"".concat(Te()(t,"slug",""),"-").concat(Te()(t,"shortIdentifier","")),edition_type:o,publishedTime:Te()(t,"publishedTime",""),parent_site:Te()(t,"publicationName",""),referralUrl:a,section:n||Te()(t,"section",""),template:Te()(t,"template","Default"),registrationType:Ne(),shared:Fe(),article_flag:ze(l)?ze(l):"no flag",article_template_name:De(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(f.withTrackScrollDepth)(Xt))}]);
|
|
1
|
+
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,g=Object.prototype,f=d["__core-js_shared__"],h=(p=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=g.hasOwnProperty,v=g.toString,w=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,j=u.splice,x=F(d,"Map"),E=F(Object,"create"),P=O?O.prototype:void 0,_=P?P.toString:void 0;function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function A(e,t){for(var i,a=0,o=(t=function(e,t){if(M(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||B(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(i=t)?i:z(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function T(e){return!(!U(e)||(t=e,h&&h in t))&&(function(e){var t=U(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function N(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function F(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return T(n)?n:void 0}k.prototype.clear=function(){this.__data__=E?E(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){var t=this.__data__;if(E){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},k.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:y.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=E&&void 0===t?"__lodash_hash_undefined__":t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},C.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return I(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},S.prototype.clear=function(){this.__data__={hash:new k,map:new(x||C),string:new k}},S.prototype.delete=function(e){return N(this,e).delete(e)},S.prototype.get=function(e){return N(this,e).get(e)},S.prototype.has=function(e){return N(this,e).has(e)},S.prototype.set=function(e,t){return N(this,e).set(e,t),this};var z=q((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(q.Cache||S),n}q.Cache=S;var M=Array.isArray;function U(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==v.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:A(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(8),l=n(17),s=n.n(l),d=n(12),p=n.n(d),u=n(9),m=n.n(u),g=n(10),f=n(3),h=n(1),b=n(13),y=n.n(b),v=n(18),w=n(19),O=n.n(w),j=n(14),x=n.n(j),E=n(7),P=n.n(E),_=n(20),k=n.n(_),C=n(21),S=n.n(C),I=n(22),A=n.n(I),T=n(23),N=n.n(T),F=n(24),z=n.n(F),D=n(11),q=n.n(D),M=n(6),U=n(15),B=n.n(U);const R={base:"\n color: ".concat(h.colours.functional.action,';\n font-family: "').concat(h.fonts.bodyRegular,'";\n line-height: 26px;\n font-size: ').concat(h.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(h.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(h.fontSizes.body,"px;\n line-height: 30px;\n ")},L={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(h.colours.functional.action,";\n ")};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(B.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?L:R,target:n,url:r,onPress:a},t)};K.defaultProps=V(V({},B.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var $,Q=($=K,Object(g.withTrackEvents)($,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),G=n(2),J=n.n(G),Y=n(16),X=n.n(Y);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=J()(M.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(h.spacing)(2),h.breakpoints.medium),ne=e=>{let t=e.caption,n=e.credits;return i.a.createElement(te,null,i.a.createElement(X.a,{credits:n,text:t}))};ne.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},X.a.defaultProps);var re=ne;J.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide),J.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",';font-family:"','";line-height:26px;font-size:',"px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],h.colours.functional.primary,h.fonts.bodyRegular,h.fontSizes.bodyMobile,Object(h.spacing)(5),h.breakpoints.medium,h.fontSizes.body);const ie=J.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["margin-bottom:",";",";"],Object(h.spacing)(4),e=>e.fullWidth?Object(G.css)(["width:100%;"]):Object(G.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide)),ae=J()(M.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(5),h.breakpoints.medium,h.breakpoints.wide),oe=J()(M.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(h.spacing)(4)),ce=J()(M.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),Object(h.spacing)(5),h.breakpoints.medium,h.breakpoints.wide),le=J()(M.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,h.breakpoints.wide),se=J()(M.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(h.spacing)(2),Object(h.spacing)(2),Object(h.spacing)(2),h.breakpoints.medium,Object(h.spacing)(4),Object(h.spacing)(1)),de=J()(M.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],h.breakpoints.medium,h.breakpoints.wide),pe="color: ".concat(h.colours.functional.primary,';\n font-family: "').concat(h.fonts.headline,'";\n font-weight: 400;\n margin: 0 auto ').concat(Object(h.spacing)(2),";\n padding-right: ").concat(Object(h.spacing)(2),";\n padding-left: ").concat(Object(h.spacing)(2),";\n\n @media (min-width: ").concat(h.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(h.breakpoints.wide,"px) {\n width: 56.2%;\n }"),ue=J.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading2Mobile,h.fontSizes.heading2Mobile,h.breakpoints.medium,h.fontSizes.heading2,h.fontSizes.heading2),me=J.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading3Mobile,h.fontSizes.heading3Mobile,h.breakpoints.medium,h.fontSizes.heading3,h.fontSizes.heading3),ge=J.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading4Mobile,h.fontSizes.heading4Mobile,h.breakpoints.medium,h.fontSizes.heading4,h.fontSizes.heading4),fe=J.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading5Mobile,h.fontSizes.heading5Mobile,h.breakpoints.medium,h.fontSizes.heading5,h.fontSizes.heading5),he=J.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],pe,h.fontSizes.heading5Mobile,h.fontSizes.heading5Mobile,h.breakpoints.medium,h.fontSizes.heading5,h.fontSizes.heading5),be=J.a.div.withConfig({displayName:"responsive__NativeAd",componentId:"sc-4v1r4q-14"})(["clear:both;display:flex;flex-wrap:wrap;margin:0 auto 30px;width:80.8%;min-height:210px;@media (min-width:768px){min-height:120px;}@media (min-width:","px){width:56.2%;}&.hidden{visibility:hidden;}"],h.breakpoints.wide),ye=J.a.h2.withConfig({displayName:"responsive__NativeAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],h.fontSizes.teaser,h.fonts.bodyRegular),ve=J.a.div.withConfig({displayName:"responsive__Ad",componentId:"sc-4v1r4q-16"})(["flex:1 1 50%;@media (max-width:767px){flex:1 1 46%;&:first-of-type{margin-right:1.5%;}&:last-child{margin-left:1.5%;}}"]),we=J.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-17"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:970px){min-height:283px;}"]),Oe=J.a.h2.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-18"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;"],h.fontSizes.teaser,h.fonts.bodyRegular);function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e="https://gobble.timesdev.tools/deck/api/deck-post-action/",ke=e=>{switch(e){case"secondary":return ce;case"inline":return le;case"fullwidth":return oe;default:return ae}},Ce=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},Se=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,l=e.isPreview,s=e.swgProductId,d=e.inArticlePuffFlag,u=e.olympicsKeys,m=e.isLiveOrBreaking,g=e.articleHeadline;return q()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Ee(Ee({},e),{},{attributes:Ee(Ee({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.olympicsKeys,l=e.isLiveOrBreaking,s=e.section,d=e.articleHeadline;return Ee(Ee({},A.a),{},{ad:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>l?null:i.a.createElement(we,null,i.a.createElement(Oe,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd3"})),dropCap:(e,t,n)=>i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?h.colours.section.default:a;return i.a.createElement(j.DropCapView,{colour:o,font:r},n)}),nativeAd:e=>l?null:i.a.createElement(be,{className:"group-3 hidden",key:e},i.a.createElement(ye,null,"Sponsored"),i.a.createElement(ve,{id:"advert-inarticle-native-1","data-parent":"group-3"}),i.a.createElement(ve,{id:"advert-inarticle-native-2","data-parent":"group-3"})),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.credits;const d=ke(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(h.spacing)(40),threshold:0},t=>{let p=t.observed,u=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>u(e)},i.a.createElement("div",{id:r},i.a.createElement(d,null,i.a.createElement(O.a,{captionOptions:{caption:l,credits:s},imageOptions:{display:a,highResSize:Ce(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,s=t.element,d=t.display;const p=s.attributes,u=s.value;switch(u){case"in-article-info-card":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.GalleryCarousel,{sectionColour:t.sectionColour})))});case"newsletter-puff":const t=p.code,s=p.copy,m=p.headline,g=p.imageUri,h=p.label;return a?i.a.createElement("div",{id:n},i.a.createElement(f.PreviewNewsletterPuff,{copy:Object(f.safeDecodeURIComponent)(s),headline:Object(f.safeDecodeURIComponent)(m),imageUri:Object(f.safeDecodeURIComponent)(g),label:Object(f.safeDecodeURIComponent)(h)})):i.a.createElement("div",{id:n},i.a.createElement(f.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(f.safeDecodeURIComponent)(s),headline:Object(f.safeDecodeURIComponent)(m),imageUri:Object(f.safeDecodeURIComponent)(g),label:Object(f.safeDecodeURIComponent)(h)}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(f.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"in-article-puff":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.FetchProvider,{url:_e+p["deck-id"]},i.a.createElement(f.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:l})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(f.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline}));case"olympics-medal-table":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.OlympicsMedalTable,{keys:o,sectionColor:t.sectionColour}))});case"olympics-schedule":return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(f.OlympicsSchedule,{keys:o,sectionColor:t.sectionColour}))});default:return i.a.createElement(ie,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(k.a,{attributes:p,element:u,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline,l=n.imageUri,s=n.label;return i.a.createElement(f.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,imageUri:l,label:s})},keyFacts:(e,t,n,r,a)=>i.a.createElement(S.a,{key:e,ast:a,section:s,headline:d,isLiveOrBreaking:l}),heading2:(e,t,n)=>i.a.createElement(ue,null,n),heading3:(e,t,n)=>i.a.createElement(me,null,n),heading4:(e,t,n)=>i.a.createElement(ge,null,n),heading5:(e,t,n)=>i.a.createElement(fe,null,n),heading6:(e,t,n)=>i.a.createElement(he,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(Q,{dropCap:o,key:e,target:a,url:r},n)},paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(x.a,je({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(P.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?h.colours.section.default:l;return i.a.createElement(de,null,i.a.createElement(se,null,i.a.createElement(N.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,c=t.brightcoveAccountId,l=t.brightcovePlayerId,s=t.caption,d=t.posterImageUrl;const p=ke("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(M.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(z.a,{id:n,is360:r,accountId:c,height:"100%",playerId:l,policyKey:a,poster:{uri:d},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(re,{caption:s}))))}})})({paidContentClassName:a,template:o,isPreview:l,swgProductId:s,inArticlePuffFlag:d,olympicsKeys:u,isLiveOrBreaking:m,section:r,articleHeadline:g}))};Se.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Ie=Se;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({accounts:o.a.shape({current:o.a.string.isRequired,readOnly:o.a.string.isRequired}),switchOver:o.a.string.isRequired}).isRequired,o.a.string;var Ae=n(5),Te=n.n(Ae);const Ne=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},Fe=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},ze=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},De=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Me(Me({},e),{},{attributes:Me(Me({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Me(Me({},e),{},{children:i}):e)};const Re=J.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],h.colours.functional.keyline),Le=J()(Re).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],h.breakpoints.medium,Object(h.spacing)(6),h.breakpoints.medium,h.breakpoints.wide,Object(h.spacing)(2),Object(h.spacing)(2)),He=J.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],h.breakpoints.wide,Object(h.spacing)(4)),Ve=J()(M.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;> ","{order:3;}"],Le),We=J.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ge=e=>{const t=Object(h.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),paddingHorizontal:i(2),paddingVertical:i(2)},articleLink:$e($e({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:$e($e({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingHorizontal:i(2)},interactiveContainerTablet:{alignSelf:"center",width:h.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingHorizontal:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:$e($e({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:$e($e({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:$e($e({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:$e($e({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:$e($e({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var Je={articleContainer:{backgroundColor:h.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(h.spacing)(2),paddingRight:Object(h.spacing)(2)}};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=Ge(),tt=Xe(Xe({},et),{},{ad:Xe(Xe({},et.ad),{},{marginBottom:Object(h.spacing)(6),marginTop:Object(h.spacing)(6),width:"100%"}),articleTextElement:Xe(Xe({},et.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var nt=Xe(Xe({},Je),tt),rt=n(25);const it={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},at=e=>Te()(e,"crop169.url",null),ot=e=>at(Te()(e,"leadAsset.posterImage",Te()(e,"leadAsset",null))),ct=e=>at(Te()(e,"leadAsset",null)),lt=e=>(e.hasVideo?ot:ct)(e),st=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?ot(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Te()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Te()(e.listingAsset,"crop169.url",null);return n||Te()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function dt(e){let t=e.article,n=e.logoUrl,r=e.paidContentClassName,a=e.getFallbackThumbnailUrl169,o=e.swgProductId;const c=t.descriptionMarkup,l=t.headline,s=t.leadAsset,d=t.publicationName,p=t.shortHeadline,u=t.publishedTime,m=t.updatedTime,g=t.hasVideo,f=t.seoDescription,h=t.keywords,b=t.url,y=s||{},v=y.brightcoveAccountId,w=y.brightcoveVideoId,O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),x=it[d],E=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(D.renderTreeAsText)({children:n})}(t),_=f||(Array.isArray(c)&&c.length?Object(D.renderTreeAsText)({children:c}):null),k=function(e){const t=e.tiles;if(!t)return null;const n=t.reduce((e,t)=>(e.push(...t.slices),e),[]).reduce((e,t)=>(e.push(...t.sections),e),[]).map(e=>e.title);if(0===n.length)return null;const r=n.filter(e=>"News"!==e);return r.length?r[0]:"News"}(t),C=st(t)||(a?a():null),S=Object(M.appendToImageURL)(lt(t),"resize",1200)||C,I=function(e){return e.bylines?(t=e,t.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let t=e.name,n=e.jobTitle,r=e.twitter,i=e.slug;const a="https://thetimes.co.uk/profile/".concat(i);return{"@type":"Person",name:t,jobTitle:n,sameAs:r?[a,"https://twitter.com/".concat(r)]:a}}):[];var t}(t),A=Te()(s,"caption",null),T=l||p||"",N=u&&new Date(u).toISOString(),F=m||N,z=E?{"@type":"Person",name:E}:null,q=(I&&I.length?I:z)||{"@type":"Organization",name:"The Times"},U={"@type":"Organization",name:x,logo:{"@type":"ImageObject",url:n}},B=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if("article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Te()(i[l],"children[0].attributes.value"),t=e?"".concat(Te()(e)," "):"";o.articleBody?o.articleBody+=t:o.articleBody=t}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,U,q),R={"@context":"https://schema.org","@type":"NewsArticle",headline:T,publisher:{"@type":"Organization",name:x,logo:{"@type":"ImageObject",url:n}},mainEntityOfPage:{"@type":"WebPage"},dateCreated:u,datePublished:N,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(r)},image:{"@type":"ImageObject",url:S,caption:A},thumbnailUrl:C,dateModified:F,author:q,articleSection:k};o&&(R.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:o});const L=g?{"@context":"https://schema.org","@type":"VideoObject",name:s.title||T,uploadDate:F,thumbnailUrl:C,description:Array.isArray(c)&&c.length?Object(D.renderTreeAsText)({children:c}):f||s.title||T,contentUrl:"https://players.brightcove.net/".concat(v,"/default_default/index.html?videoId=").concat(w)}:null,H={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:l,description:f,mainEntityOfPage:{"@type":"WebPage","@id":b},datePublished:u,dateModified:m,coverageStartTime:u,coverageEndTime:O,url:b,keywords:h,image:{"@type":"ImageObject",url:S,caption:A},publisher:U,author:q,liveBlogUpdate:B,articleSection:k};return i.a.createElement(P.a.Consumer,null,e=>{let n=e.makeArticleUrl;return R.mainEntityOfPage["@id"]=n(t),i.a.createElement(rt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,T," | ",k?"".concat(k," | "):"",x),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:T,name:"article:title"}),i.a.createElement("meta",{content:x,name:"article:publication"}),_&&i.a.createElement("meta",{content:_,name:"description"}),E&&i.a.createElement("meta",{content:E,name:"author"}),i.a.createElement("meta",{content:T,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n(t),property:"og:url"}),_&&i.a.createElement("meta",{content:_,property:"og:description"}),S&&i.a.createElement("meta",{content:S,property:"og:image"}),g&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:T,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n(t),name:"twitter:url"}),_&&i.a.createElement("meta",{content:_,name:"twitter:description"}),S&&i.a.createElement("meta",{content:S,name:"twitter:image"}),j?i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)):i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(R)),L&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(L)))})}dt.defaultProps={swgProductId:null};var pt=dt;var ut=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Te()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})},mt=n(26),gt=n.n(mt);function ft(){return(ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const ht=J.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;",";"],h.colours.functional.white,e=>e.isClient&&[u.selectors.sizer(Object(G.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),u.selectors.sticky(Object(G.css)(["will-change:height,box-shadow;"])),Object(u.computeProgressStyles)(e=>Object(G.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,h.colours.functional.greyStickyBarBoxShadow,u.selectors.stickySizer(Object(G.css)(["border-bottom-color:",";"],h.colours.functional.greyStickyBarBorderBottom))))]);function bt(e){return i.a.createElement(M.ServerClientRender,{client:()=>i.a.createElement(ht,ft({isClient:!0},e)),server:()=>i.a.createElement(ht,e)})}const yt=J()(Le).withConfig({displayName:"sticky-save-and-share-bar__StyledKeylineItem",componentId:"hqppv0-1"})(["",";"],u.selectors.containsSticky(Object(G.css)(["border-bottom-color:transparent;"]))),vt=Object(u.mediaQuery)("(max-width: ".concat(h.breakpoints.huge,"px)"));var wt=function(e){return i.a.createElement(yt,null,i.a.createElement(m.a,{Component:bt,shouldBeSticky:vt},i.a.createElement(gt.a,e)))};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Et=["indepth","maincomment","magazinestandard","magazinecomment"],Pt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Te()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return jt(jt({},e),{},{attributes:jt({},e.attributes),children:[jt(jt({},t[0]),{},{attributes:jt(jt({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),jt(jt({},t[0]),{},{attributes:jt(jt({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;const r=Pt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=jt(jt({},e),{},{attributes:jt(jt({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=jt(jt({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},_t=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?_t(t.children):e};var kt=(e,t,n)=>{try{if(t&&Et.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Pt(t),i=Pt(t);_t(r.children).splice(1);_t(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},Ct=(e,t)=>n=>{const r=kt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:It({label:"In your inbox"},e)}},children:[]}),Nt=[{section:"news",payload:Tt({code:"TNL-101",headline:"Best of Times",copy:"We’ll send you our top stories, across all sections, straight to your inbox. Simple as that.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Tt({code:"TNL-103",headline:"Business briefing",copy:"In-depth analysis and comment on the latest financial and economic news from our award-winning Business teams.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Tt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories of the week from The Times and The Sunday Times Scotland, delivered directly to you every Saturday morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Tt({code:"TNL-107",headline:"Money newsletter",copy:"We'll send you the latest personal finance and investment news to make your money go further.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Tt({code:"TNL-121",headline:"The Brief",copy:"A weekly overview of the significant issues in Law, drawing attention to expert analysis and exclusive commentary.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Tt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"bricks & mortar",payload:Tt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})}],Ft=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),zt=(e,t,n)=>It(It({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),Dt=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var qt=(e,t,n)=>r=>{if(t||ze(n))return r;const i=(e=>{const t=Nt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Ft(r)||Ft(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=Dt(e),i=Dt(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,zt(t,3-n,i)]:[...e,t],[])};function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rt=e=>{const t=[...e],n=t.find(e=>"paywall"===e.name),r=t.filter(e=>"paragraph"===e.name);if(!n){return t.find(e=>"nativeAd"===e.name)||t.splice(2,0,{name:"nativeAd",children:[]}),t}const i=Number(9-r.length),a=n.children,o=a.map((e,t)=>Ut(Ut({},e),{},{index:t})).filter(e=>"paragraph"===e.name),c=o[i]?o[i].index:null;return a.find(e=>"nativeAd"===e.name)||c&&null!==c&&a.splice(c,0,{name:"nativeAd",children:[]}),t};function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=e=>{const t=[...e],n=t.find(e=>"paywall"===e.name),r=t.filter(e=>"paragraph"===e.name);if(!n)return t;const i=n.children,a=i.map((e,t)=>Ht(Ht({},e),{},{index:t})).filter(e=>"paragraph"===e.name);return[13,20,27].forEach((e,t)=>{if(!i.find(e=>e.name==="inlineAd".concat(t+1))){const n=a[e-r.length]?a[e-r.length].index:null;n&&null!==n&&i.splice(n+t,0,{name:"inlineAd".concat(t+1),children:[]})}}),t};n.d(t,"reduceArticleContent",(function(){return Kt})),n.d(t,"KeylineItem",(function(){return Re})),n.d(t,"ArticleKeylineItem",(function(){return Le})),n.d(t,"ArticleLink",(function(){return Q}));const Kt=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),$t=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.logoUrl,l=e.receiveChildList,d=e.commentingConfig,m=e.paidContentClassName,g=e.isPreview,b=e.swgProductId,w=e.additionalRelatedArticlesFlag,O=e.algoliaSearchKeys,j=e.olympicsKeys,x=e.getFallbackThumbnailUrl169;const E=n.commentsEnabled,P=n.content,_=n.dropcapsDisabled,k=n.id,C=n.section,S=n.url,I=n.headline,A=n.shortHeadline,T=n.expirableFlags,N=n.label,F=n.topics,z=n.relatedArticleSlice,D=n.template,q=n.savingEnabled,U=n.sharingEnabled,B=n.publishedTime,R=[Ct(D,_),qt(C,g,T),Rt,Wt,Be],L=Kt(P,R),H=(e=>{const t="indepth"===e;return J()(M.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:970px){min-height:250px;}"],h.colours.functional.keyline,h.colours.functional.keyline,t?"0":"1px",Object(h.spacing)(2),t?"0":Object(h.spacing)(2))})(D);l([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const V=ze(T);return i.a.createElement(u.StickyProvider,null,i.a.createElement(f.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:I||A||"",section_details:C}},analyticsStream:t},g&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:k,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":C,"data-article-template":D},i.a.createElement(pt,{article:n,logoUrl:o,paidContentClassName:m,getFallbackThumbnailUrl169:x,swgProductId:b}),i.a.createElement(f.AlgoliaSearchProvider,{algoliaSearchKeys:O,article:{id:k,label:N,section:C,topics:F},analyticsStream:t},i.a.createElement(r.Fragment,null,i.a.createElement(H,{key:"headerAd"},i.a.createElement(c.AdContainer,{slotName:"header",style:nt.adMarginStyle})),i.a.createElement(He,null,i.a.createElement(Ve,null,i.a.createElement(a,null),q||U?i.a.createElement(y.a,{state:y.a.loggedInOrShared},i.a.createElement(v.MessageContext.Consumer,null,e=>{let t=e.showMessage;return i.a.createElement(wt,{articleId:k,articleHeadline:I,articleUrl:S,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:q,sharingEnabled:U})})):null),i.a.createElement(We,null,L&&i.a.createElement(Ie,{analyticsStream:t,content:L,contextUrl:S,section:C,articleHeadline:I,paidContentClassName:m,template:D,isPreview:g,olympicsKeys:j,isLiveOrBreaking:V}),i.a.createElement(ut,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"}),i.a.createElement(p.a,{rootMargin:Object(h.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(s.a,{analyticsStream:t,articleId:k,articleHeadline:I,articleUrl:S,section:C,publishedTime:B,savingEnabled:q,sharingEnabled:U,commentsEnabled:E,registerNode:r,relatedArticleSlice:z,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:d,topics:F,additionalRelatedArticlesFlag:w})})))),i.a.createElement(c.AdContainer,{slotName:"pixel"}),i.a.createElement(c.AdContainer,{slotName:"pixelteads"}),i.a.createElement(c.AdContainer,{slotName:"pixelskin"})))))};$t.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null};t.default=(e=>Object(g.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Te()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Te()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Te()(t,"headline",""),label:Te()(t,"label",""),pageName:"".concat(Te()(t,"slug",""),"-").concat(Te()(t,"shortIdentifier","")),edition_type:o,publishedTime:Te()(t,"publishedTime",""),parent_site:Te()(t,"publicationName",""),referralUrl:a,section:n||Te()(t,"section",""),template:Te()(t,"template","Default"),registrationType:Ne(),shared:Fe(),article_flag:De(l)?De(l):"no flag",article_template_name:ze(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(g.withTrackScrollDepth)($t))}]);
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _tsComponents = require("@times-components/ts-components");
|
|
9
|
-
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
|
-
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
|
|
16
|
-
const getInlineRelatedArticles = function getInlineRelatedArticles() {
|
|
17
|
-
let attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18
|
-
return {
|
|
19
|
-
name: "autoInlineRelatedArticles",
|
|
20
|
-
attributes: {
|
|
21
|
-
element: {
|
|
22
|
-
value: "inline-related-articles",
|
|
23
|
-
attributes
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
children: []
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const insertInlineRelatedArticles = function insertInlineRelatedArticles(relatedArticleSlice) {
|
|
31
|
-
let _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
32
|
-
_ref$afterParagraph = _ref.afterParagraph,
|
|
33
|
-
afterParagraph = _ref$afterParagraph === void 0 ? 7 : _ref$afterParagraph,
|
|
34
|
-
_ref$paragraphPadding = _ref.paragraphPadding,
|
|
35
|
-
paragraphPadding = _ref$paragraphPadding === void 0 ? 2 : _ref$paragraphPadding;
|
|
36
|
-
|
|
37
|
-
return articleContent => {
|
|
38
|
-
if (!relatedArticleSlice || !relatedArticleSlice.items) return articleContent;
|
|
39
|
-
const paywall = articleContent.find(item => item.name === "paywall");
|
|
40
|
-
if (!paywall) return articleContent;
|
|
41
|
-
const allArticleContent = [...articleContent, ...paywall.children].filter(item => item.name !== "paywall");
|
|
42
|
-
const nthParagraph = allArticleContent.filter(item => item.name === "paragraph")[afterParagraph - 1];
|
|
43
|
-
const allArticleContentIndex = allArticleContent.indexOf(nthParagraph);
|
|
44
|
-
const enoughParagraphPadding = allArticleContent.slice(allArticleContentIndex - paragraphPadding + 1, allArticleContentIndex + paragraphPadding + 1).filter(item => item.name === "paragraph").length === 2 * paragraphPadding;
|
|
45
|
-
|
|
46
|
-
if (enoughParagraphPadding) {
|
|
47
|
-
if (articleContent.includes(nthParagraph)) {
|
|
48
|
-
const outsidePaywallIndex = articleContent.indexOf(nthParagraph);
|
|
49
|
-
return [...articleContent.slice(0, outsidePaywallIndex + 1), getInlineRelatedArticles({
|
|
50
|
-
relatedArticles: (0, _tsComponents.formatRelatedArticles)(relatedArticleSlice)
|
|
51
|
-
}), ...articleContent.slice(outsidePaywallIndex + 1)];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const insidePaywallIndex = paywall.children.indexOf(nthParagraph);
|
|
55
|
-
return articleContent.map(item => item !== paywall ? item : _objectSpread(_objectSpread({}, paywall), {}, {
|
|
56
|
-
children: [...paywall.children.slice(0, insidePaywallIndex + 1), getInlineRelatedArticles({
|
|
57
|
-
relatedArticles: (0, _tsComponents.formatRelatedArticles)(relatedArticleSlice)
|
|
58
|
-
}), ...paywall.children.slice(insidePaywallIndex + 1)]
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return articleContent.map(item => item !== paywall ? item : _objectSpread(_objectSpread({}, paywall), {}, {
|
|
63
|
-
children: [...paywall.children, getInlineRelatedArticles({
|
|
64
|
-
relatedArticles: (0, _tsComponents.formatRelatedArticles)(relatedArticleSlice)
|
|
65
|
-
})]
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
var _default = insertInlineRelatedArticles;
|
|
71
|
-
exports.default = _default;
|