1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d1d0b9ba-9d70-5702-bd9c-09a03a515d41")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2493,7309],{721:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>A});var n=r(14232),o=r(82851),a=r(2171),s=r(74055),l=r(12461),i=r(35027),d=r(81883),p=r(95435),c=r(18368),u=r(50022),g=r(53948);let m=(e,t,r)=>async n=>{try{n({type:g.fi,payload:{clubId:e,contentId:t}});let o=new u.A(e,"sponsored_content",{id:t}),a=await c.A.getPageData(o,r);return n({type:g.hr,payload:{contentId:t,content:a.data}}),n({type:g.oh,payload:o.toString()}),{}}catch(o){let r=500;return o&&(r=o.errorStatusCode||r),n({type:g.eE,payload:{clubId:e,contentId:t,statusCode:r,error:o}}),{error:o}}};r(70470),r(80597);var h=r(11431),y=r(63851),f=r(82868),E=r(34917);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}class _ extends n.Component{componentDidMount(){let{club:e,hasLoaded:t,loadingError:r,loadArticle:n,contentId:o}=this.props;t||r||n(e.id,o)}componentDidUpdate(e){let{contentId:t}=this.props,{contentId:r}=e;t!==r&&this.loadIfRequired()}loadIfRequired=()=>{let{isLoading:e,previouslyLoaded:t}=this.props;if(!e&&!t){let{club:e,loadArticle:t,contentId:r}=this.props;t(e.id,r)}};title=()=>{let{article:e,message:t}=this.props;return(0,o.get)(e,"title",(0,o.get)(t,"title","Loading"))};image=()=>{let{article:e,message:t}=this.props;return(0,o.get)(e,"image",(0,o.get)(t,"image"))};render(){let{loadingError:e,club:t,article:{bodyHtml:r,tagline:o,title:a,published:c,author:u,vimeoId:g}={},isLoading:m,contentId:h}=this.props;if(e)return n.createElement(d.A,w({clubId:t.id},e));let _=(0,p.A)(t,"news.sponsored",{_title:a,id:h});return n.createElement(n.Fragment,null,n.createElement(f.A,{club:t,title:this.title(),description:o,routeParams:{_title:a,id:h},route:"news.sponsored"}),n.createElement(y.A,{club:t,author:{name:u},body:r,tagline:o,title:this.title(),image:this.image(),isLoading:m,shareProps:{url:_,title:a,imageUrl:this.image()},renderSubheader:()=>n.createElement(s.A,{top:"large",bottom:"small",component:"div"},n.createElement(l.A,{fill:"primary",radius:"rounded"},n.createElement(s.A,{all:"xsmall"},n.createElement(i.A,{preset:"name",color:"primaryContrast"},n.createElement(E.x6,{i18nKey:"sponsored_text"},"Sponsored"))))),articleId:h,published:c,sponsored:!0,vimeoId:g}))}}_.getInitialProps=async({club:e,query:t,isServer:r,reduxStore:n,res:o,req:a})=>{let s=parseInt(t.id,10),l={contentId:s,activeSection:"news",namespacesRequired:["common"],pageType:"news.sponsored",referringPlacement:t.placement};if(!r)return l;try{let{error:t}=await n.dispatch(m(e.id,s,a));return t&&t.errorStatusCode&&o&&(o.statusCode=t.errorStatusCode),l}catch(e){return l}},_.defaultProps={article:null,message:null,loadingError:null};let A=(0,a.Ng)((e,t)=>({article:((e,t)=>{let r=(0,o.get)(e,"sponsoredContent.articles",[]);return(0,o.find)(r,{id:t})||{}})(e,t.contentId),hasLoaded:((e,t)=>{let r=(0,o.get)(e,"sponsoredContent.hasAttemptedLoad",[]);return(0,o.includes)(r,t)})(e,t.contentId),isLoading:((e,t)=>{let r=(0,o.get)(e,"sponsoredContent.loadingArticles",[]);return(0,o.includes)(r,t)})(e,t.contentId),message:(0,h.I4)(e,`news-${t.contentId}`),loadingError:((e,t)=>{let r=(0,o.get)(e,"sponsoredContent.sponsoredArticlePageLoadingError");return(0,o.get)(r,t,!1)})(e,t.contentId),previouslyLoaded:((e,t)=>{let r=(0,o.get)(e,"sponsoredContent.loadedArticles",[]);return(0,o.includes)(r,t)})(e,t.contentId),sponsored:!0}),{loadArticle:m})(_)},55180:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/sponsored",function(){return r(721)}])}},e=>{e.O(0,[2909,2545,7315,6223,2186,3089,1325,6006,4725,1844,7985,3851,636,6593,8792],()=>e(e.s=55180)),_N_E=e.O()}]); 4//# debugId=d1d0b9ba-9d70-5702-bd9c-09a03a515d41
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.