@times-components/article-extras 0.37.5 → 0.38.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 +11 -0
- package/dist/article-extras.js +0 -3
- package/package.json +13 -13
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [0.38.0](https://github.com/newsuk/times-components/compare/@times-components/article-extras@0.37.5...@times-components/article-extras@0.38.0) (2025-03-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **TMG-3050:** Fix CTA URL for Commenting banner ([#4103](https://github.com/newsuk/times-components/issues/4103)) ([2a6b973](https://github.com/newsuk/times-components/commit/2a6b973bfaa40105beff42b0223ccb1fc82153c3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.37.5](https://github.com/newsuk/times-components/compare/@times-components/article-extras@0.37.4...@times-components/article-extras@0.37.5) (2025-03-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @times-components/article-extras
|
package/dist/article-extras.js
CHANGED
|
@@ -48,7 +48,6 @@ const ArticleExtras = _ref => {
|
|
|
48
48
|
relatedArticlesVisible = _ref.relatedArticlesVisible,
|
|
49
49
|
commentingConfig = _ref.commentingConfig,
|
|
50
50
|
topics = _ref.topics,
|
|
51
|
-
storefrontConfig = _ref.storefrontConfig,
|
|
52
51
|
breadcrumbs = _ref.breadcrumbs,
|
|
53
52
|
domainSpecificUrl = _ref.domainSpecificUrl;
|
|
54
53
|
|
|
@@ -132,7 +131,6 @@ const ArticleExtras = _ref => {
|
|
|
132
131
|
articleId: articleId,
|
|
133
132
|
isEnabled: commentsEnabled,
|
|
134
133
|
commentingConfig: commentingConfig,
|
|
135
|
-
storefrontConfig: storefrontConfig,
|
|
136
134
|
domainSpecificUrl: domainSpecificUrl
|
|
137
135
|
}));
|
|
138
136
|
};
|
|
@@ -154,7 +152,6 @@ ArticleExtras.propTypes = {
|
|
|
154
152
|
topics: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
155
153
|
savingEnabled: _propTypes.default.bool.isRequired,
|
|
156
154
|
sharingEnabled: _propTypes.default.bool.isRequired,
|
|
157
|
-
storefrontConfig: _propTypes.default.string.isRequired,
|
|
158
155
|
breadcrumbs: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
159
156
|
domainSpecificUrl: _propTypes.default.string.isRequired
|
|
160
157
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/article-extras",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Extra information components at the bottom of the articles, such as topics, related articles and comments ",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"dev": "src/index",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"webpack": "4.30.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@times-components/article-comments": "0.
|
|
53
|
-
"@times-components/article-topics": "4.11.
|
|
54
|
-
"@times-components/button": "2.10.
|
|
55
|
-
"@times-components/context": "1.25.
|
|
56
|
-
"@times-components/message-bar": "0.7.
|
|
57
|
-
"@times-components/related-articles": "6.19.
|
|
58
|
-
"@times-components/save-and-share-bar": "0.28.
|
|
59
|
-
"@times-components/ts-components": "1.
|
|
60
|
-
"@times-components/ts-styleguide": "1.
|
|
61
|
-
"@times-components/user-state": "0.6.
|
|
62
|
-
"@times-components/utils": "6.31.
|
|
52
|
+
"@times-components/article-comments": "0.47.0",
|
|
53
|
+
"@times-components/article-topics": "4.11.66",
|
|
54
|
+
"@times-components/button": "2.10.72",
|
|
55
|
+
"@times-components/context": "1.25.5",
|
|
56
|
+
"@times-components/message-bar": "0.7.97",
|
|
57
|
+
"@times-components/related-articles": "6.19.27",
|
|
58
|
+
"@times-components/save-and-share-bar": "0.28.8",
|
|
59
|
+
"@times-components/ts-components": "1.125.0",
|
|
60
|
+
"@times-components/ts-styleguide": "1.52.0",
|
|
61
|
+
"@times-components/user-state": "0.6.6",
|
|
62
|
+
"@times-components/utils": "6.31.2",
|
|
63
63
|
"prop-types": "15.7.2",
|
|
64
64
|
"styled-components": "4.3.2"
|
|
65
65
|
},
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d3a2621613dab86d8b764fea857c17cb4acb4b8b"
|
|
78
78
|
}
|
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=12)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("@times-components/article-comments/rnw")},function(e,t){e.exports=require("@times-components/related-articles/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/article-topics/rnw")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=(n(5),n(3)),a=n.n(o),l=n(6),c=n.n(l),s=n(7),d=n.n(s),p=n(8),m=n(9),u=n.n(m),b=n(4),f=n(10),g=n.n(f),h=n(11),y=n(2),x=n.n(y),w=n(0),v=x()(h.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-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(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide);function O(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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{topicsContainer:{borderTopColor:w.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:w.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const C=e=>{let t=e.topics;return t&&t.length>0?i.a.createElement(v,null,i.a.createElement("nav",{"data-cy":"topic-tags"},i.a.createElement(g.a,{style:E.topicsContainer,topics:t}))):null};C.defaultProps={topics:null};var k=C;const P=x.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],w.colours.functional.keyline,w.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),S=x.a.div.withConfig({displayName:"responsive__BreadcrumbContainer",componentId:"hqs3q1-1"})(["display:flex;justify-content:center;margin:0 auto;padding-bottom:8px;",";@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],e=>e.$border?"\n border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;\n "):"",w.breakpoints.medium,w.breakpoints.wide);function _(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}x.a.div.withConfig({displayName:"styles__NativeAd",componentId:"sc-1ul3b7n-0"})(["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;}"],w.breakpoints.wide),x.a.h2.withConfig({displayName:"styles__NativeAdTitle",componentId:"sc-1ul3b7n-1"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],w.fontSizes.teaser,w.fontsWithFallback.bodyRegular),x.a.div.withConfig({displayName:"styles__Ad",componentId:"sc-1ul3b7n-2"})(["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%;}}"]),A(A({},Object(w.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:w.colours.functional.secondary,maxWidth:330,textAlign:"center"}),Object(w.spacing)(0),Object(w.spacing)(5),w.colours.functional.keyline,Object(w.spacing)(10),A(A({color:w.colours.functional.primary},Object(w.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(w.spacing)(2),paddingTop:Object(w.spacing)(6),textAlign:"center"}),w.tabletWidth;const N=x.a.div.withConfig({displayName:"styles__PromotedContentContainer",componentId:"sc-1ul3b7n-3"})(["border-top:2px solid #1d1d1b;background-color:#f5f5f5;padding:16px 10px 24px;margin-block-start:20px;&:not(:last-child){margin-block-end:32px;}@media (min-width:","px){padding:16px 20px 24px;}@media (min-width:","px){margin-block-start:28px;margin-block-end:32px;margin-inline:20px;}"],w.breakpoints.medium,w.breakpoints.wide),I=x.a.span.withConfig({displayName:"styles__PromotedContentTitle",componentId:"sc-1ul3b7n-4"})(['display:block;font-family:"Roboto";font-weight:500;font-size:12px;line-height:16px;color:#333333;']),B=x.a.div.withConfig({displayName:"styles__PromotedContentGrid",componentId:"sc-1ul3b7n-5"})(["display:grid;grid-template-columns:repeat(2,1fr);gap:16px 32px;margin-block-start:16px;@media (min-width:","px){grid-template-columns:repeat(4,1fr);}"],w.breakpoints.wide),T=x.a.div.withConfig({displayName:"styles__PromotedContentAd",componentId:"sc-1ul3b7n-6"})(['position:relative;min-height:150px;&:nth-child(1)::after,&:nth-child(4)::after{position:absolute;content:"";top:0;right:-16px;width:1px;height:100%;background-color:#e4e4e4;}@media (min-width:','px){&:not(:last-child)::after{position:absolute;content:"";top:0;right:-16px;width:1px;height:100%;background-color:#e4e4e4;}}'],w.breakpoints.wide),D=x.a.div.withConfig({displayName:"styles__PromotedContentSectionDivider",componentId:"sc-1ul3b7n-7"})(["border-top:1px solid #e4e4e4;grid-column:1 / 3;@media (min-width:","px){display:none;}"],w.breakpoints.wide);const M={clear:"both"},W=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,o=e.registerNode,l=e.savingEnabled,s=e.sharingEnabled,m=e.articleUrl,f=e.section,g=e.articleHeadline,h=e.relatedArticleSlice,y=e.categorisedArticles,x=e.relatedArticlesVisible,w=e.commentingConfig,v=e.topics,O=e.
|
|
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=12)}([function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){e.exports=require("@times-components/article-comments/rnw")},function(e,t){e.exports=require("@times-components/related-articles/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/article-topics/rnw")},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=(n(5),n(3)),a=n.n(o),l=n(6),c=n.n(l),s=n(7),d=n.n(s),p=n(8),m=n(9),u=n.n(m),b=n(4),f=n(10),g=n.n(f),h=n(11),y=n(2),x=n.n(y),w=n(0),v=x()(h.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-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(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide);function O(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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{topicsContainer:{borderTopColor:w.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:w.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const C=e=>{let t=e.topics;return t&&t.length>0?i.a.createElement(v,null,i.a.createElement("nav",{"data-cy":"topic-tags"},i.a.createElement(g.a,{style:E.topicsContainer,topics:t}))):null};C.defaultProps={topics:null};var k=C;const P=x.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],w.colours.functional.keyline,w.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),S=x.a.div.withConfig({displayName:"responsive__BreadcrumbContainer",componentId:"hqs3q1-1"})(["display:flex;justify-content:center;margin:0 auto;padding-bottom:8px;",";@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],e=>e.$border?"\n border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;\n "):"",w.breakpoints.medium,w.breakpoints.wide);function _(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}x.a.div.withConfig({displayName:"styles__NativeAd",componentId:"sc-1ul3b7n-0"})(["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;}"],w.breakpoints.wide),x.a.h2.withConfig({displayName:"styles__NativeAdTitle",componentId:"sc-1ul3b7n-1"})(["border-bottom:1px solid #dbdbdb;color:#333;flex:1 1 100%;font:normal ","px / 17px ",";margin-bottom:10px;padding:5px 0;text-transform:uppercase;"],w.fontSizes.teaser,w.fontsWithFallback.bodyRegular),x.a.div.withConfig({displayName:"styles__Ad",componentId:"sc-1ul3b7n-2"})(["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%;}}"]),A(A({},Object(w.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:w.colours.functional.secondary,maxWidth:330,textAlign:"center"}),Object(w.spacing)(0),Object(w.spacing)(5),w.colours.functional.keyline,Object(w.spacing)(10),A(A({color:w.colours.functional.primary},Object(w.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(w.spacing)(2),paddingTop:Object(w.spacing)(6),textAlign:"center"}),w.tabletWidth;const N=x.a.div.withConfig({displayName:"styles__PromotedContentContainer",componentId:"sc-1ul3b7n-3"})(["border-top:2px solid #1d1d1b;background-color:#f5f5f5;padding:16px 10px 24px;margin-block-start:20px;&:not(:last-child){margin-block-end:32px;}@media (min-width:","px){padding:16px 20px 24px;}@media (min-width:","px){margin-block-start:28px;margin-block-end:32px;margin-inline:20px;}"],w.breakpoints.medium,w.breakpoints.wide),I=x.a.span.withConfig({displayName:"styles__PromotedContentTitle",componentId:"sc-1ul3b7n-4"})(['display:block;font-family:"Roboto";font-weight:500;font-size:12px;line-height:16px;color:#333333;']),B=x.a.div.withConfig({displayName:"styles__PromotedContentGrid",componentId:"sc-1ul3b7n-5"})(["display:grid;grid-template-columns:repeat(2,1fr);gap:16px 32px;margin-block-start:16px;@media (min-width:","px){grid-template-columns:repeat(4,1fr);}"],w.breakpoints.wide),T=x.a.div.withConfig({displayName:"styles__PromotedContentAd",componentId:"sc-1ul3b7n-6"})(['position:relative;min-height:150px;&:nth-child(1)::after,&:nth-child(4)::after{position:absolute;content:"";top:0;right:-16px;width:1px;height:100%;background-color:#e4e4e4;}@media (min-width:','px){&:not(:last-child)::after{position:absolute;content:"";top:0;right:-16px;width:1px;height:100%;background-color:#e4e4e4;}}'],w.breakpoints.wide),D=x.a.div.withConfig({displayName:"styles__PromotedContentSectionDivider",componentId:"sc-1ul3b7n-7"})(["border-top:1px solid #e4e4e4;grid-column:1 / 3;@media (min-width:","px){display:none;}"],w.breakpoints.wide);const M={clear:"both"},W=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,o=e.registerNode,l=e.savingEnabled,s=e.sharingEnabled,m=e.articleUrl,f=e.section,g=e.articleHeadline,h=e.relatedArticleSlice,y=e.categorisedArticles,x=e.relatedArticlesVisible,w=e.commentingConfig,v=e.topics,O=e.breadcrumbs,j=e.domainSpecificUrl;const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{showBorder:!1},t=e.showBorder;return O&&O.length>0?i.a.createElement(S,{$border:t},i.a.createElement(b.Breadcrumb,{data:O})):null},C=y&&y.categoryArticles||null,_=y&&y.parentCategoryArticles||null,A=(e,r)=>i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"related-articles",ref:e=>o(e)},r&&E({showBorder:!1}),i.a.createElement(d.a,{analyticsStream:t,isVisible:x,slice:h,hideBorder:!e&&Boolean(C)}),e&&i.a.createElement(b.RecommendedFetch,{articleId:n,articleHeadline:g,articleSection:f}),!e&&C&&i.a.createElement(b.CategorisedArticles,{heading:C.label,articles:C.articles}),!e&&_&&i.a.createElement(b.CategorisedArticles,{heading:_.label,articles:_.articles})),i.a.createElement(N,null,i.a.createElement(I,null,"PROMOTED CONTENT"),i.a.createElement(B,null,i.a.createElement(T,{id:"advert-inarticle-native-1"}),i.a.createElement(T,{id:"advert-inarticle-native-2"}),i.a.createElement(D,null),i.a.createElement(T,{id:"advert-inarticle-native-3"}),i.a.createElement(T,{id:"advert-inarticle-native-4"}))));return i.a.createElement(a.a,{state:a.a.showArticleExtras,fallback:A(!1,!0)},i.a.createElement("div",{style:M}),E({showBorder:v&&v.length>0}),i.a.createElement(k,{topics:v}),(l||s)&&i.a.createElement(a.a,{state:a.a.showSaveAndShareBar},i.a.createElement(p.MessageContext.Consumer,null,e=>{let t=e.showMessage;return i.a.createElement(P,{showBottomBorder:!h},i.a.createElement(u.a,{articleId:n,articleHeadline:g,articleUrl:m,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:l,sharingEnabled:s}))})),A(!0,!1),i.a.createElement(c.a,{articleId:n,isEnabled:r,commentingConfig:w,domainSpecificUrl:j}))};W.defaultProps={relatedArticleSlice:null,categorisedArticles:null,topics:null,breadcrumbs:[]};var z=W;t.default=z}]);
|