Business Live: Budget reaction

t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart(“character”,n),o.setEndPoint(“EndToStart”,o),o.moveEnd(“character”,r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),a=void 0===t.end?o:Math.min(t.end,r);if(!n.extendoa){var i=a;a=o,o=i}var s=l(e,o),u=l(e,a);if(su){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),oa?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(4),l=n(171),c=n(67),p=u.canUseDOM”selection”in document!(“getSelection”in window),d={getOffsets:p?o:a,setOffsets:p?i:s};e.exports=d},function(e,t,n){“use strict”;function r(e){for(;ee.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function a(e,t){for(var n=r(e),a=0,i=0;n;){if(3===n.nodeType){if(i=a+n.textContent.length,a=t)return{node:n,offset:t-a};a=i}n=r(o(n))}}e.exports=a},function(e,t,n){“use strict”;function r(e){if(“selectionStart”in eu.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(_||null==v||v!==c())return null;var n=r(v);if(!b||!f(b,n)){b=n;var o=l.getPooled(g.select,y,e,t);return o.type=”select”,o.target=v,i.accumulateTwoPhaseDispatches(o),o}return null}var a=n(10),i=n(22),s=n(4),u=n(89),l=n(14),c=n(90),p=n(68),d=n(13),f=n(86),m=a.topLevelTypes,h=s.canUseDOM”documentMode”in documentdocument.documentMode”,”

“+n+” “),i=””+a+r;return u.default.createElement(“div”,null,u.default.createElement(“div”,{className:”gs-u-vh qa-visually-hidden-title”,dangerouslySetInnerHTML:{__html:i}}),u.default.createElement(“div”,{className:”lx-stream-post-quote__body gs-u-mb qa-blockquote”,dangerouslySetInnerHTML:{__html:t},”aria-hidden”:”true”}))}return u.default.createElement(“div”,null,u.default.createElement(“span”,{className:”gs-u-vh qa-visually-hidden-title”},o),u.default.createElement(“div”,{className:”lx-stream-post-quote__body gs-u-mb qa-blockquote”,”aria-hidden”:”true”},u.default.createElement(“p”,{dangerouslySetInnerHTML:{__html:t}})))},m=function(e){var t=e.element.children,n=e.element.name,r=(0,d.default)(n),a=c.default.findFirst(t,r.textLocator),s=e.renderChildrenToStaticMarkup(a),l=c.default.findText(t,r.sourceLocator),p=c.default.findFirst(t,r.sourceLocator),m=(0,i.default)([“lx-stream-post-quote”,”lx-stream-post-quote–“+r.className,”gs-u-mb-alt”,”gs-u-mr-alt+”,”gs-u-ml-alt+”,”gs-u-mr-alt++@m”,”gs-u-ml-alt++@m”]),h=(0,i.default)([“gs-u-mr”,”lx-stream-post-quote__icon”,”lx-stream-post-quote__icon–“+r.icon,”gel-icon”,”gel-icon-“+r.gelIconClass]),g=void 0,v=void 0;pp.attributes(g=c.default.findFirst(p.attributes,”title”).value)(v=u.default.createElement(“span”,{className:”lx-stream-post-quote__cite-profession qa-blockquote-source-profession”},g));var y=void 0!==g?g:””,b=e.getTranslationFor(“from”),_=”string”==typeof l?b+” “+l+” “+y:””,P=e.getTranslationFor(r.hiddenTitleText)+”:”;return u.default.createElement(“blockquote”,o({},e.attributes,{className:m}),f(n,s,P,_),u.default.createElement(“footer”,{className:”lx-stream-post-quote__cite gel-brevier gel-brevier-bold”,”aria-hidden”:”true”},u.default.createElement(“cite”,{className:”lx-stream-post-quote__cite-name qa-blockquote-source”},l),v),u.default.createElement(“div”,{className:h},r.iconSvg))};m.displayName=”Blockquote”,m.propTypes={attributes:u.default.PropTypes.object.isRequired,renderChildrenToStaticMarkup:u.default.PropTypes.func.isRequired,element:u.default.PropTypes.object.isRequired},t.default=m,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=n(0),o=function(e){return ee.__esModule?e:{default:e}}(r),a={sms:{hiddenTitleText:”sms_message”,gelIconClass:”sms”,icon:”mobile”,className:”sms”,textLocator:”smsText”,sourceLocator:”smsSource”,iconSvg:o.default.createElement(“svg”,{width:”32″,height:”32″,viewBox:”0 0 32 32″},o.default.createElement(“path”,{d:”M22 0v2H6v30h20V0h-4zm-9 28h-3v-2h3v2zm0-4h-3v-2h3v2zm0-4h-3v-2h3v2zm5 8h-4v-2h4v2zm0-4h-4v-2h4v2zm0-4h-4v-2h4v2zm4 8h-3v-2h3v2zm0-4h-3v-2h3v2zm0-4h-3v-2h3v2zm0-5H10V6h12v9z”}))},quote:{hiddenTitleText:”quote_message”,gelIconClass:”quote”,icon:”quote”,className:”default”,textLocator:”quoteText”,sourceLocator:”quoteSource”,iconSvg:o.default.createElement(“svg”,{width:”32″,height:”32″,viewBox:”0 0 32 32″},o.default.createElement(“path”,{d:”M0 17v15h15V17H7c.2-5.9 2.4-8.8 8-9.9V0C6.7 1.2.2 8.3 0 17zM32 7.1V0c-8.3 1.2-14.8 8.3-15 17v15h15V17h-8c.2-5.9 2.4-8.8 8-9.9z”}))},email:{hiddenTitleText:”email_message”,gelIconClass:”email”,icon:”email”,className:”email”,textLocator:”emailText”,sourceLocator:”emailSource”,iconSvg:o.default.createElement(“svg”,{width:”32″,height:”32″,viewBox:”0 0 32 32″},o.default.createElement(“path”,{d:”M16 19.4l16-15V3H0v26h32V8l-4 4v13H4V8.2l12 11.2zm0-2.8L5.8 7h20.4L16 16.6z”}))}},i=function(e){return a[e]||a.quote};t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=Object.assign||function(e){for(var t=1;t-1||e.indexOf(“bbc.in”)-1},m=function(e){var t=e.element.children,n=d.default.findText(t,”altText”),r=d.default.findFirst(t,”url”),a=d.default.findFirst(r.attributes,”href”).value,s={href:a,alt:n},l=d.default.findText(t,”caption”);if(!f(a)){var p=i.default.createElement(c.default,null);l+=u.default.renderToStaticMarkup(p)}return i.default.createElement(“a”,o({},s,{dangerouslySetInnerHTML:{__html:l}}))};m.displayName=”Link”,m.propTypes={element:i.default.PropTypes.object.isRequired},t.default=m,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=n(0),o=function(e){return ee.__esModule?e:{default:e}}(r),a=function(){return o.default.createElement(“span”,{className:”lx-stream-post-body__external-link gel-icon gel-icon-external-link”},o.default.createElement(“svg”,{viewBox:”0 0 32 32″},o.default.createElement(“path”,{d:”M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0z”})))};a.displayName=”ExternalLink”,t.default=a,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=n(0),o=function(e){return ee.__esModule?e:{default:e}}(r),a=function(e){return o.default.createElement(“ol”,{dangerouslySetInnerHTML:{__html:e}})},i=function(e){return o.default.createElement(“ul”,{dangerouslySetInnerHTML:{__html:e}})},s=function(e){var t=e.renderChildrenToStaticMarkup({children:e.element.children});return”ordered”===e.attributes.type?a(t):i(t)};s.displayName=”List”,s.propTypes={attributes:o.default.PropTypes.object.isRequired,renderChildrenToStaticMarkup:o.default.PropTypes.func.isRequired,element:o.default.PropTypes.object.isRequired},t.default=s,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=n(0),o=function(e){return ee.__esModule?e:{default:e}}(r),a=function(e){var t=e.renderChildrenToStaticMarkup({children:e.element.children});return o.default.createElement(“li”,{dangerouslySetInnerHTML:{__html:t}})};a.displayName=”ListItem”,a.propTypes={renderChildrenToStaticMarkup:o.default.PropTypes.func.isRequired,element:o.default.PropTypes.object.isRequired},t.default=a,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=Object.assign||function(e){for(var t=1;t0});return!!(tt.length0)t[0]},b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:”shouldComponentUpdate”,value:function(e){return this.props.url!==e.url||this.props.title!==e.title}},{key:”render”,value:function(){var e=this.props.title,t=v(this.props.url),n=y(this.props);if(n){(0,g.profileStart)(“embedRender:”+t);var r=n.component,o={matches:n.matches,title:e,url:t};return c.default.createElement(r,{title:e,url:n.transform(o),cssClasses:n.cssClasses,componentDidMount:n.componentDidMount})}return c.default.createElement(m.default,this.props)}}]),t}(c.default.Component);b.displayName=”LazyEmbed”,b.propTypes={title:c.default.PropTypes.string.isRequired,url:c.default.PropTypes.string.isRequired,isVisible:c.default.PropTypes.bool.isRequired},t.default=(0,h.IntersectComponent)(b),e.exports=t.default},function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}Object.defineProperty(t,”__esModule”,{value:!0});var o=n(211),a=r(o),i=n(212),s=r(i),u=n(213),l=r(u),c=n(20),p=function(e){return e.url},d=function(e){return”https://www.youtube.com/embed/{identifier}”.replace(“{identifier}”,e.matches[1])};t.default={youtube:{regex:/http(?:s)?://(?:www.)?youtu(?:be.com|.be)/(?:watch)?(?:/?)?(?:.*v=)?(.[^]*)/i,transform:d,component:s.default,componentDidMount:function(e){(0,c.profileEnd)(“embedRender:”+e.url)}},twitter:{regex:/^http.+twitter.com/.*/status/(.*)/i,transform:p,component:a.default,cssClasses:”twitter-tweet”,componentDidMount:function(e,t){requirejs([“//platform.twitter.com/widgets.js”],function(){twttr.widgets.load(t),(0,c.profileEnd)(“embedRender:”+e.url)})}},instagram:{regex:/^http.+instagr(?:.am|am.com)/i,transform:p,component:a.default,cssClasses:”instagram-media”,componentDidMount:function(e,t){requirejs([“//platform.instagram.com/en_GB/embeds.js”],function(){instgrm.Embeds.process(t),(0,c.profileEnd)(“embedRender:”+e.url)})}},facebookVideo:{regex:/(http.+www.facebook.com/video.php.*|http.+www.facebook.com/.*/videos/.*)/i,transform:p,component:l.default,componentDidMount:function(e,t){requirejs([“//connect.facebook.net/en_US/all.js#xfbml=1version=v2.5”],function(){window.FB.XFBML.parse(t),(0,c.profileEnd)(“embedRender:”+e.url)})}},facebookPost:{regex:/(http.+www.facebook.com/.*/(posts|activity|photos)/.*|http.+www.facebook.com/(media/set|questions|notes|photos|permalink.php).*)/i,transform:p,component:l.default,componentDidMount:function(e,t){requirejs([“//connect.facebook.net/en_US/all.js#xfbml=1version=v2.5”],function(){window.FB.XFBML.parse(t),(0,c.profileEnd)(“embedRender:”+e.url)})}}},e.exports=t.default},function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function a(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t”function”!=typeof t?e:t}function i(e,t){if(“function”!=typeof tnull!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(tt.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,”__esModule”,{value:!0});var s=function(){function e(e,t){for(var n=0;n0?t.link:””,r={role:t.role,name:t.name,link:n};return a.default.createElement(f.default,{contributor:r,brandingTool:e.brandingTool,baseUrl:e.baseUrl})}return a.default.createElement(“noscript”,null)},v=function(e){return a.default.createElement(“div”,{className:”gel-3/8@l”},a.default.createElement(“a”,{href:e.relatedUrl,className:”qa-story-image-link”,onClick:e.postIstats()},a.default.createElement(“div”,{className:”lx-stream-related-story–index-image-wrapper qa-story-image-wrapper”},a.default.createElement(s.default,{className:”lx-stream-related-story–index-image qa-story-image”,src:e.indexImage.ichefHref,alt:e.indexImage.altText}))))},y=function(e){var t=”cta_text”;return”LIV”===e.type(e.liveState.isLive?t=”live_cta”:e.liveState.isCatchUp(t=”catch_up_cta”)),a.default.createElement(“a”,{href:e.relatedUrl,className:”qa-story-cta-link”,onClick:e.postIstats()},a.default.createElement(“span”,{className:”gs-o-button lx-stream-related-story–cta-button gel-long-primer-bold qa-story-text-cta”},a.default.createElement(“span”,{className:”lx-stream-related-story–cta-text”},e.getTranslationFor(t)),a.default.createElement(l.default,{iconName:”next”})))},b=function(e){return a.default.createElement(“div”,{className:”lx-stream-related-story”},m(e)?a.default.createElement(v,{relatedUrl:e.relatedUrl,indexImage:e.indexImage,postIstats:function(){return h(e)}}):null,a.default.createElement(“div”,{className:m(e)?”gel-5/8@l”:””},g(e),e.summary?a.default.createElement(“p”,{className:”lx-stream-related-story–summary qa-story-summary”},e.summary):null,a.default.createElement(y,{getTranslationFor:e.getTranslationFor,liveState:e.liveState,relatedUrl:e.relatedUrl,type:e.type,postIstats:function(){return h(e)}})))};b.displayName=”StoryType”,g.propTypes={contributor:o.PropTypes.shape({name:o.PropTypes.string,role:o.PropTypes.string,link:o.PropTypes.string}),brandingTool:o.PropTypes.string.isRequired,baseUrl:o.PropTypes.string},g.defaultProps={contributor:void 0,baseUrl:void 0},b.propTypes={summary:o.PropTypes.string.isRequired,indexImage:o.PropTypes.shape({ichefHref:o.PropTypes.string.isRequired,altText:o.PropTypes.string}),relatedUrl:o.PropTypes.string.isRequired},b.defaultProps={indexImage:void 0},v.propTypes={indexImage:o.PropTypes.shape({ichefHref:o.PropTypes.string.isRequired,altText:o.PropTypes.string}).isRequired,relatedUrl:o.PropTypes.string.isRequired,postIstats:o.PropTypes.func.isRequired},y.propTypes={type:o.PropTypes.string.isRequired,liveState:o.PropTypes.shape({isCatchUp:o.PropTypes.bool.isRequired,isComingUp:o.PropTypes.bool.isRequired,isLive:o.PropTypes.bool.isRequired}),postIstats:o.PropTypes.func.isRequired},y.defaultProps={liveState:{isCatchUp:!1,isComingUp:!1,isLive:!0}},t.default=b,e.exports=t.default},function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}Object.defineProperty(t,”__esModule”,{value:!0});var o=n(0),a=r(o),i=n(35),s=r(i),u=n(28),l=r(u),c=n(19),p=n(18),d=function(e){return function(){var t=(0,p.getIstatsData)(e,”related-gallery”);(0,c.configureAndSendIstats)(“click”,”related-gallery”,t)}},f=function(e){return e.summarye.summary.length0?a.default.createElement(“p”,{className:”lx-media-asset-summary qa-photogallery-summary gel-pica”},e.summary):a.default.createElement(“noscript”,null)},m=function(e){return e.indexImage.copyrightHolder?a.default.createElement(“div”,{className:”lx-media-asset__copyright gel-minion qa-photogallery-image-copyright”},a.default.createElement(“span”,{“aria-hidden”:”true”},e.indexImage.copyrightHolder)):a.default.createElement(“noscript”,null)},h=function(e){if(e.indexImage){var t=e.indexImage.ichefHref,n=a.default.createElement(s.default,{className:”qa-responsive-image”,src:t,delayed:!0});return a.default.createElement(“div”,{className:”lx-media-asset__image gs-o-responsive-image gs-o-responsive-image–16by9 qa-photogallery-image”},n,m(e))}return a.default.createElement(“div”,{className:”lx-media-asset__image gs-o-responsive-image gs-o-responsive-image–16by9 qa-photogallery-image”},a.default.createElement(s.default,{className:”qa-responsive-image”}))},g=function(e){var t=e.photogallery.galleryImageCount;return t+” “+(1===t?e.getTranslationFor(“photo”):e.getTranslationFor(“photos”))},v=function(e,t){return a.default.createElement(“div”,{className:”lx-stream-asset__gallery-cta-text qa-photogallery-count”},a.default.createElement(“span”,{“aria-hidden”:”true”,id:t},g(e)))},y=function(e){var t=”count_”+e.assetId;return a.default.createElement(“div”,{className:”gel-body-copy lx-stream-post-body”},f(e),a.default.createElement(“div”,{className:”lx-stream-asset lx-stream-asset–pgl”},a.default.createElement(“a”,{className:”lx-stream-asset__link qa-photogallery-link”,href:e.relatedUrl,”aria-labelledby”:””+e.titleId,”aria-describedby”:t,onClick:d(e)},a.default.createElement(“div”,{className:”gs-o-media-island lx-media-asset__island”},h(e),a.default.createElement(“div”,{className:”gs-o-media-island__icon lx-stream-asset__gallery-cta gel-long-primer-bold”},a.default.createElement(“span”,{className:”lx-stream-asset__gallery-cta-icon gel-icon”},a.default.createElement(l.default,{iconName:”image”})),v(e,t))))))};y.propTypes={relatedUrl:a.default.PropTypes.string.isRequired,assetId:a.default.PropTypes.string.isRequired,titleId:a.default.PropTypes.string.isRequired,summary:a.default.PropTypes.string},g.propTypes={getTranslationFor:a.default.PropTypes.func.isRequired},v.propTypes={getTranslationFor:a.default.PropTypes.func.isRequired},h.propTypes={indexImage:a.default.PropTypes.shape({copyrightHolder:a.default.PropTypes.string,ichefHref:a.default.PropTypes.string.isRequired,altText:a.default.PropTypes.string})},m.propTypes={indexImage:a.default.PropTypes.shape({copyrightHolder:a.default.PropTypes.string}),getTranslationFor:a.default.PropTypes.func.isRequired},v.propTypes={getTranslationFor:a.default.PropTypes.func.isRequired},f.propTypes={summary:a.default.PropTypes.shape({length:a.default.PropTypes.string.isRequired}).isRequired},m.defaultProps={indexImage:void 0},h.defaultProps={indexImage:void 0},y.defaultProps={summary:void 0},y.displayName=”PhotoGalleryType”,t.default=y,e.exports=t.default},function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}Object.defineProperty(t,”__esModule”,{value:!0});var o=Object.assign||function(e){for(var t=1;t-1?”https://ichef.bbci.co.uk/images/ic/raw/p05d1g60.png”:this.state.shareUrl.indexOf(“/news”)-1?”http://ichef.bbci.co.uk/images/ic/raw/p05d1g0s.png”:”https://ichef.bbci.co.uk/images/ic/raw/p05d1fth.png”}},{key:”getTwitterHandle”,value:function(){return this.state.shareUrl.indexOf(“/sport”)-1?”BBCSport”:this.state.shareUrl.indexOf(“/news”)-1?”BBCNews”:”BBC”}},{key:”getPostShareImage”,value:function(){var e=this.props.body.filter(function(e){var t=e.name;return”image”===t||”video”===t})[0];return e(e.imageChefHref||e.holdingImageUrl).replace(“{width}”,”320″)}},{key:”getShareImage”,value:function(){var e=this.props,t=e.type,n=e.body,r=e.media;return”POST”===tn.length0?this.getPostShareImage()||this.getFallbackLogo():”MAP”===tr.length?r[0].imager[0].image.href||this.getFallbackLogo():”CLIP”===tr?r.holdingImageUrl||this.getFallbackLogo():this.getFallbackLogo()}},{key:”buildLinkName”,value:function(){return encodeURIComponent(this.props.assetId+””+this.props.title+””+this.props.firstPublished).replace(/’/g,”%27″).replace(/”/g,”%22″)}},{key:”sendIStats”,value:function(e){var t=this;return function(){var n=(0,m.getIstatsData)(t.props);(0,f.configureAndSendIstats)(e,”share”,n)}}},{key:”toggleSharePanel”,value:function(){var e=this.props,t=e.assetId,n=e.activeDropdown,r=e.setActiveDropdown,o=n===t?””:t;return this.sendIStats(“share_panel”)(),this.setState({isOpen:!!o}),r(o)}},{key:”twitterShareUrl”,value:function(){return this.state.shareUrl+”?ns_mchannel=socialns_source=twitterns_campaign=bbc_livens_linkname=”+this.buildLinkName(this.props)+”ns_fee=0pinned_post_locator=”+this.props.locator+”pinned_post_asset_id=”+this.props.assetId+”pinned_post_type=share”}},{key:”facebookShareUrl”,value:function(){return this.state.shareUrl+”?ns_mchannel=socialns_source=facebookns_campaign=bbc_livens_linkname=”+this.buildLinkName(this.props)+”ns_fee=0pinned_post_locator=”+this.props.locator+”pinned_post_asset_id=”+this.props.assetId+”pinned_post_type=share”}},{key:”setInitialState”,value:function(){var e=window.location.href,t=e.match(h);if(t)e=t[0];else{var n=e.match(g);n(e=n[0])}this.setState({shareUrl:e,pageTitle:document.title})}},{key:”render”,value:function(){var e=this,t=this.props,n=t.activeDropdown,r=t.assetId,o=t.getTranslationFor,a=t.title,i=t.cssDirection,s=t.shareToolsTitleId,u=t.useReactionsStreamV4Toggle,c=this.state,f=c.isOpen,m=c.shareUrl,h=c.pageTitle,g=(0,p.default)({“ev-button”:”true”===this.props.brandingTool},”qa-facebook-share”,”lx-share-tools__cta”),y=(0,p.default)({“ev-button”:”true”===this.props.brandingTool},”qa-twitter-share”,”lx-share-tools__cta”),b=n===rf,_=m.indexOf(“bbc.com”)-1?”https://www.bbc.com”:”https://www.bbc.co.uk”,P={shareText:o(“share”),viewMoreShare:o(“view_more_share”),shareThisPost:o(“share_this_post”),copyThisLink:o(“copy_this_link”),readMoreOnLinks:o(“read_more_on_links”),readMoreOnLinksLabel:o(“read_more_on_links_label”),shareThisPostOn:o(“share_this_post_on”),closeButtonLabel:o(“close_button_label”),copyShareLinkLabel:o(“copy_share_link_label”)},x=P.shareThisPostOn+” Facebook”,T=P.shareThisPostOn+” Twitter”,E=u?”alternate-up”:”alternate-transformation”,C=u?”right”:”left”;return l.default.createElement(“ul”,{“aria-labelledby”:s,className:”lx-share-tools__items lx-share-tools__items–align-“+C+” qa-share-tools”},l.default.createElement(“li”,null,l.default.createElement(d.Facebook,{link:this.facebookShareUrl(),name:h,description:a,image:this.getShareImage(),classes:g,caption:_,customFacebookAriaLabel:x,clickCallback:this.sendIStats(“share_facebook”),small:!0,noButtonPadding:!0,brandingTool:this.props.brandingTool})),l.default.createElement(“li”,null,l.default.createElement(d.Twitter,{link:this.twitterShareUrl(),description:this.props.title,viaHandle:this.getTwitterHandle(),classes:y,customTwitterAriaLabel:T,clickCallback:this.sendIStats(“share_twitter”),small:!0,noButtonPadding:!0,brandingTool:this.props.brandingTool})),l.default.createElement(“li”,null,l.default.createElement(d.SharePanel,{shareButtonComponent:function(t){return l.default.createElement(v,{translations:P,buttonProps:t,brandingTool:e.props.brandingTool,isOpen:b,assetId:r})},accessibilityId:”share-popup-“+r,classes:”lx-share-tools__panel”,headerText:P.shareThisPost,readMoreText:P.readMoreOnLinks,readMoreTextAriaLabel:P.readMoreOnLinksLabel,closeButtonLabel:P.closeButtonLabel,copyShareLinkLabel:P.copyShareLinkLabel,direction:E,cssDirection:i,clickCallback:this.toggleSharePanel,onCloseCallback:this.toggleSharePanel,isOpen:b},l.default.createElement(“div”,{className:”gs-c-share-tools__button share-tools__button–no-hover-effect”},l.default.createElement(d.CopyLinkBox,{theme:”dark”,link:this.twitterShareUrl(),shareText:P.copyThisLink,feedbackDuration:2e3,classes:”lx-share-tools__copylink-box”})))))}}]),t}(u.Component);y.propTypes={type:u.PropTypes.string.isRequired,assetId:u.PropTypes.string.isRequired,firstPublished:u.PropTypes.string.isRequired,locator:u.PropTypes.string.isRequired,activeDropdown:u.PropTypes.string.isRequired,setActiveDropdown:u.PropTypes.func.isRequired,brandingTool:u.PropTypes.string.isRequired,getTranslationFor:u.PropTypes.func.isRequired,title:u.PropTypes.string.isRequired,cssDirection:u.PropTypes.string.isRequired,body:u.PropTypes.shape([{filter:u.PropTypes.string.isRequired,length:u.PropTypes.number.isRequired}]).isRequired,media:u.PropTypes.shape({}).isRequired,useReactionsStreamV4Toggle:u.PropTypes.bool.isRequired,postIndex:u.PropTypes.number.isRequired,postHasVideo:u.PropTypes.bool.isRequired,postHasImage:u.PropTypes.bool.isRequired,postHasSocial:u.PropTypes.bool.isRequired,postIsBreakingNews:u.PropTypes.bool.isRequired,mode:u.PropTypes.string.isRequired,shareToolsTitleId:u.PropTypes.string.isRequired},t.default=y},function(e,t){e.exports=Morph.modules[“bbc-morph-share-tools@4.3.1”]},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=function(e){return e.title||e.subtitle||e.icon},o=function(e){return”POST”===e.type||”CIT”===e.type},a=function(e){return e.bodye.body.length0},i=function(e){return”STY”===e.type||”CSP”===e.type},s=function(e,t){return!(!e||!e.body)e.body.some(function(e){return e.name===t})},u=function(e){return s(e,”video”)||”MAP”===e.type||”video”===e.mediaType},l=function(e){return s(e,”image”)},c=function(e){return Boolean(ee.optionse.options.isBreakingNewsvoid 0!==e.options.isBreakingNews)},p=function(e){return Boolean(ee.optionse.options.isPriorityPostvoid 0!==e.options.isPriorityPost)};t.default={postHasHeading:r,isPostType:o,postIsStory:i,hasValidContent:a,postHasMediaType:s,postHasVideo:u,postHasImage:l,postIsBreakingNews:c,postIsPriority:p},e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=n(0),o=function(e){return ee.__esModule?e:{default:e}}(r),a=function(){return o.default.createElement(“svg”,{className:”qa-loading-icon-svg”,xmlns:”http://www.w3.org/2000/svg”,viewBox:”0 0 28 28″},o.default.createElement(“linearGradient”,{id:”a”,gradientUnits:”userSpaceOnUse”,x1:”1.224″,y1:”8.111″,x2:”25.888″,y2:”21.225″},o.default.createElement(“stop”,{offset:”0″,stopColor:”#5a5a5a”}),o.default.createElement(“stop”,{offset:”1″,stopColor:”#5a5a5a”,stopOpacity:”0″})),o.default.createElement(“path”,{d:”M26 7l-3 1.7c.9 1.5 1.4 3.3 1.4 5.2 0 5.8-4.7 10.5-10.5 10.5-5.7 0-10.4-4.7-10.4-10.4C3.5 8.2 7.8 3.5 14 3.5V0C6.1 0 0 6.2 0 14c0 7.7 6.2 14 14 14 7.7 0 14-6.2 14-14-.1-2.6-.8-5-2-7z”,fill:”url(#a)”}))},i=function(e){return o.default.createElement(“div”,{className:”gs-u-align-center gs-u-pv-alt+ gs-u-ph+ lx-loading-message”},o.default.createElement(“span”,{“aria-hidden”:”true”,className:”gs-u-mb gel-icon lx-loading-message__icon qa-loading-icon”},o.default.createElement(a,null)),o.default.createElement(“p”,{className:”gs-u-m0 gel-body-copy qa-loading-text”},e.loadingText))};i.propTypes={loadingText:o.default.PropTypes.string.isRequired},t.default=i,e.exports=t.default},function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.default=function(e,t){var n=e;for(var r in t)t[r](n=n.replace(“{“+r+”}”,t[r]));return n},e.exports=t.default},function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}function a(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t”function”!=typeof t?e:t}function i(e,t){if(“function”!=typeof tnull!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(tt.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,”__esModule”,{value:!0}),t.getMode=void 0;var u=function(){function e(e,t){for(var n=0;n

Leave a Reply