1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1067,5556],{5556:function(e,t,a){"use strict";a.r(t);var n=a(5893);a(7294);var r=a(5697),s=a.n(r),l=a(3967),i=a.n(l),o=a(6974);let c=e=>{let{blok:{text:t},className:a,children:r}=e,s=i()("article-heading","ef-h5",a);return(0,n.jsx)("h3",{className:s,...(0,o.LF)(e.blok),children:t||r})};c.propTypes={blok:s().shape({text:s().string}).isRequired,className:s().string},t.default=c},7863:function(e,t,a){"use strict";var n=a(5893),r=a(7294),s=a(4204),l=a.n(s),i=a(6156),o=a(4431),c=a(3732),u=a(9525);t.Z=()=>{var e,t;let{settings:a}=(0,r.useContext)(u.J),{show_content_banner:s}=(null==a?void 0:a.content)||{},p=null==a?void 0:null===(t=a.content)||void 0===t?void 0:null===(e=t.content_banner_component)||void 0===e?void 0:e[0];if(!s||!p)return null;let{link:d,text:m,title:h,background_color:g,logo:x}=p;return(0,n.jsx)("div",{className:l().banner,style:g?{backgroundColor:null==g?void 0:g.color}:void 0,children:(0,n.jsxs)(c.Z,{href:null==d?void 0:d.url,className:l().bannerInner,target:"_blank",title:h,rel:"noreferrer",children:[(0,n.jsx)("h2",{className:l().bannerTitle,children:h}),(0,n.jsxs)("p",{className:l().bannerText,children:[m," ",(0,n.jsx)(i.Z,{className:l().bannerIcon})]}),(null==x?void 0:x.filename)&&(0,n.jsx)("div",{className:l().bannerLogo,children:(0,n.jsx)(o.Z,{filename:x.filename,alt:"Banner Logo",aspectMobile:"natural",aspectDesktop:"natural"})})]})})}},1931:function(e,t,a){"use strict";var n=a(5893);a(7294);var r=a(3732);let s=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{className:"ef-icon ef-svg animated-chevrons ".concat(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:[(0,n.jsx)("title",{children:"Animated Chevrons"}),(0,n.jsx)("path",{className:"chevron-1",d:"M16 14.59L8.41 7A1 1 0 007 7l-.71.7a1 1 0 00-.29.72 1.05 1.05 0 00.29.71L13.17 16l-6.88 6.87a1.05 1.05 0 00-.29.71 1 1 0 00.29.71L7 25a1 1 0 00.71.3 1 1 0 00.7-.3L16 17.41l.7-.7a1 1 0 000-1.42z"}),(0,n.jsx)("path",{className:"chevron-2",d:"M27.7 15.29l-.7-.7L19.41 7A1 1 0 0018 7l-.71.7a1 1 0 00-.29.71 1.05 1.05 0 00.29.71L24.17 16l-6.88 6.87a1.05 1.05 0 00-.29.71 1 1 0 00.29.71L18 25a1 1 0 00.71.3 1 1 0 00.7-.3L27 17.41l.7-.7a1 1 0 000-1.42z"}),(0,n.jsx)("path",{className:"chevron-3",d:"M16 14.59L8.41 7A1 1 0 007 7l-.71.7a1 1 0 00-.29.72 1.05 1.05 0 00.29.71L13.17 16l-6.88 6.87a1.05 1.05 0 00-.29.71 1 1 0 00.29.71L7 25a1 1 0 00.71.3 1 1 0 00.7-.3L16 17.41l.7-.7a1 1 0 000-1.42z"})]})};t.Z=e=>{let{slug:t,className:a,vertical:l,text:i="Read the article",...o}=e,c=e=>{let[t,...a]=e.split("");return[t.toUpperCase(),...a.map(e=>e.toLowerCase())].join("")};return t?(0,n.jsx)(r.Z,{href:t,...o,children:(0,n.jsxs)("a",{className:"ef-text-ui icon-link read-more-link ".concat(a||""),children:[(0,n.jsx)("strong",{className:"u-mr-xs",children:c(i)}),(0,n.jsx)(s,{className:l?"-vertical":""})]})}):(0,n.jsxs)("button",{className:"ef-text-ui icon-link read-more-link ".concat(a||""),...o,children:[(0,n.jsx)("strong",{className:"u-mr-xs",children:c(i)}),(0,n.jsx)(s,{className:l?"-vertical":""})]})}},4431:function(e,t,a){"use strict";a.d(t,{Z:function(){return v}});var n=a(5893),r=a(7294),s=a(5697),l=a.n(s),i=a(5675),o=a.n(i),c=a(3967),u=a.n(c);let p=e=>({width:e?parseInt(e.split("/")[5].split("x")[0]):0,height:e?parseInt(e.split("/")[5].split("x")[1]):0}),d=e=>{let t,a,{width:n,height:r,aspectRatio:s=1}=e;return(a=Math.round((t=Number(n))/s))>Number(r)&&(a=Number(r),t=Math.round(Number(r)*s)),{cropWidth:t,cropHeight:a}},m=e=>{let t,a,n,r,{originalWidth:s,originalHeight:l,cropWidth:i,cropHeight:o,focus:c}=e,[u]=c.split(":"),[p,d]=u.split("x"),m=Number(i)/2,h=Number(o)/2;return Number(p)-m>0?Number(p)+m>Number(s)?(t=Number(s)-Number(i)>0?Number(s)-Number(i):0,n=s):(t=Math.round(Number(p)-m),n=Math.round(Number(p)+m)):(t=0,n=i),Number(d)-Number(h)>0?Number(d)+Number(h)>Number(l)?(a=Number(l)-Number(o)>0?Number(l)-Number(o):0,r=l):(a=Math.round(Number(d)-h),r=Math.round(Number(p)+h)):(a=0,r=o),{xCropStart:t,yCropStart:a,xCropEnd:n,yCropEnd:r}},h=(e,t)=>Math.round(Number(e)*Number(t)),g=e=>{let{xCropStart:t,xCropEnd:a,yCropStart:n,yCropEnd:r}=e;return"".concat(t,"x").concat(n,":").concat(a,"x").concat(r)},x=e=>{let{scale:t,cropWidth:a,cropHeight:n}=e;return"".concat(h(a,t),"x").concat(h(n,t))},f=e=>{let{width:t,height:a,aspectRatio:n="".concat(t,"/").concat(a)}=e,[r,s]=n.split("/"),{cropWidth:l,cropHeight:i}=d({width:t,height:a,aspectRatio:r/s});return{cropWidth:l,cropHeight:i}};var b=a(1968),_=a.n(b);let N=e=>{var t;let{filename:a="",aspectMobile:s,aspectDesktop:l,focus:i,className:c,alt:d,priority:h,sizes:b}=e,[N,v]=(0,r.useState)(!1),[j,y]=(0,r.useState)(void 0),w=p(a),k="".concat(w.width,"/").concat(w.height);(0,r.useEffect)(()=>{let e=window.matchMedia("(max-width: 1024px)");y(e.matches);let t=e=>{y(e.matches)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[j,s,l,i,a]);
1let C=u()(_().image,"article-image",N?_().loaded:"",c),Z=s&&"natural"!==s?s:k,L=l?"natural"===l?k:l:Z,M=null==a?void 0:a.endsWith(".svg");return a?(0,n.jsx)("div",{className:C,style:M?{}:{aspectRatio:j?Z:L},children:M?(0,n.jsx)("img",{className:"article-image-svg",alt:d,src:a,width:"100%",onLoad:()=>v(!0)}):void 0!==j?(0,n.jsx)(o(),{loader:e=>{let t,{src:a,width:n}=e,r=p(a),{cropWidth:s,cropHeight:l}=f({width:r.width,height:r.height,aspectRatio:j?Z:L}),o=Number(n)/Number(s);if(i){let{xCropStart:e,xCropEnd:a,yCropStart:n,yCropEnd:c}=m({originalWidth:r.width,originalHeight:r.height,cropWidth:s,cropHeight:l,focus:i});t="".concat(g({xCropStart:e,xCropEnd:a,yCropStart:n,yCropEnd:c}),"/").concat(x({scale:o,cropWidth:s,cropHeight:l}))}else t=x({scale:o,cropWidth:s,cropHeight:l});return"".concat(a,"/m/").concat(t,"/filters:quality(75)")},src:a,alt:null!==(t=null==d?void 0:d.trim())&&void 0!==t?t:"",objectFit:"cover",onLoadingComplete:()=>v(!0),layout:"fill",sizes:b||"100vw",priority:h}):null}):(0,n.jsx)("h6",{className:"fallback ".concat(C),children:"Please add an image."})};N.propTypes={filename:l().string,aspectMobile:l().string,aspectDesktop:l().string,className:l().string,focus:l().string,alt:l().string,priority:l().bool,sizes:l().string};var v=N},4556:function(e,t,a){"use strict";var n=a(5893);a(7294);var r=a(4431),s=a(3732),l=a(5697),i=a.n(l);let o=e=>{let{image:t,children:a,aspectMobile:l="3/2",aspectDesktop:i="4/3",link:o="",title:c}=e;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(s.Z,{href:o,children:(0,n.jsx)("a",{className:"featured-item__image","aria-label":c,children:(0,n.jsx)(r.Z,{alt:t.alt,aspectMobile:l,aspectDesktop:i,filename:t.filename,focus:t.focus,priority:!0,sizes:"50vw, (max-width: 1024px) 100vw"})})}),(0,n.jsx)("div",{className:"featured-item__copy",children:a})]})};o.propTypes={title:i().string,intro:i().shape({content:i().array,doc:i().string}),image:i().shape({alt:i().string,filename:i().string}),link:i().string},t.Z=o},2221:function(e,t,a){"use strict";a.d(t,{g:function(){return N},Z:function(){return v}});var n=a(5893),r=a(7294),s=a(3407),l=a(3967),i=a.n(l),o=a(3732),c=a(4431),u=a(5697),p=a.n(u);let d=e=>{let{name:t,content:{article_image:a},full_slug:r,featured:s,className:l}=e,u=s?{m:"3/2",d:"3/2"}:{m:"2/3",d:"1/1"},p=i()("index-item",s?"-featured":"",l);return(0,n.jsxs)("div",{className:p,children:[(0,n.jsx)(o.Z,{href:"/".concat(r),children:(0,n.jsx)("a",{className:p,"aria-label":t,children:a&&(0,n.jsx)(c.Z,{alt:a.alt,aspectMobile:u.m,aspectDesktop:u.d,filename:a.filename,focus:a.focus})})}),(0,n.jsx)(o.Z,{href:"/".concat(r),children:(0,n.jsx)("a",{className:"index-item__title ef-text-ui",children:(0,n.jsx)("strong",{children:t})})})]})};d.propTypes={content:p().shape({article_image:p().shape({filename:p().string,aspectMobile:p().string,aspectDesktop:p().string,className:p().string,focus:p().string,alt:p().string,priority:p().bool,sizes:p().string}),title:p().string}),full_slug:p().string,featured:p().bool,className:p().string};var m=a(4556),h=a(3446),g=a(5556),x=a(7314),f=a(1931),b=a(8351),_=a(7863);let N=e=>{let{title:t,intro:a,slug:r,text:s}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)(g.default,{blok:{text:t}}),a&&(0,n.jsx)(x.Z,{max_lines:"4",content:a}),r&&(0,n.jsx)(f.Z,{slug:r,text:s,className:"u-mt-m"})]})};var v=e=>{let{currentBp:t}=(0,r.useContext)(h.QW),a=(0,h.wm)({currentBp:t,bp:"m",range:"down"}),[l,o]=(0,r.useState)(0),[c,u]=(0,r.useState)(()=>{{let e=localStorage.getItem("shownItems");return e?parseInt(e,10):0}}),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{o(a?8:9)},[a]),(0,r.useEffect)(()=>{localStorage.setItem("shownItems",c.toString())},[c]);let{content:{title:g,intro:x,featured_story:{id:v,name:j,content:{intro:y,article_image:w}={intro:"check featured story is defined and published",article_image:{}},full_slug:k}}={title:"Add title",intro:"Add intro copy",featured_story:{}},stories:C}=e,Z=i()("pro-cycling-page","index-page","layout-grid"),L=C.filter(e=>e.id!==v);return(0,n.jsxs)("main",{className:Z,children:[(0,n.jsx)(s.Z,{title:g,intro:x}),a?(0,n.jsx)(d,{featured:!0,name:j,content:{article_image:w},full_slug:k}):(0,n.jsx)(m.Z,{image:w,link:"/".concat(k),title:j,children:(0,n.jsx)(N,{title:j,intro:y,slug:"/".concat(k)})}),(0,n.jsx)("hr",{className:"u-show-l-up index-page-divider"}),(0,n.jsxs)("div",{className:"index-content-grid",ref:p,children:[L.map((e,t)=>t<c&&(0,n.jsx)(d,{...e,title:e.name,className:"index-content__item"},e.id)),L.length>c&&(0,n.jsxs)("div",{className:"index-read-more",children:[(0,n.jsx)("hr",{className:"article-divider"}),(0,n.jsx)(f.Z,{text:"Load more",vertical:!0,onClick:()=>u(c+l)}),(0,n.jsx)("hr",{className:"article-divider"})]})]}),(0,n.jsx)(b.Z,{}),(0,n.jsx)(_.Z,{})]})}},3407:function(e,t,a){"use strict";var n=a(5893),r=a(7294),s=a(1690);t.Z=e=>{let{title:t,intro:a,cta:l,children:i,stacked:o,className:c}=e;return(0,n.jsxs)("div",{className:"pro-cycling-page-header ".concat(i?"-with-footer":""," ").concat(c),children:[(0,n.jsx)("h1",{className:"ef-h3 u-s-mb-xs u-m-mb-0 pro-cycling-page-header__title",children:t}),a&&(0,n.jsx)("p",{className:"pro-cycling-page-header__intro ef-text-ui u-mb-0 ".concat(o?"-stacked":""),style:{lineHeight:"24px !important"},children:a}),l&&l.map(e=>(0,r.createElement)((0,s.Z)(e.component),{blok:e,key:e._uid,className:"pro-cycling-page-header__cta"})),i&&(0,n.jsx)("div",{className:"pro-cycling-page-header__footer",children:i})]})}},8351:function(e,t,a){"use strict";var n=a(5893),r=a(7294),s=a(6431),l=a.n(s),i=a(3935),o=a(3953),c=a(3732),u=a(9525);t.Z=()=>{let{settings:e}=(0,r.useContext)(u.J),{show_popup:t}=(null==e?void 0:e.content)||!1,[a,s]=(0,r.useState)(!1),[p,d]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{h(!0),"true"===localStorage.getItem("ProCyclingPopupClosed")&&s(!0)},[]);let g=e=>{d(!0),e()},x=()=>{s(!0),localStorage.setItem("ProCyclingPopupClosed","true")};return m&&!a&&t?i.createPortal((0,n.jsx)("div",{className:"".concat(l().popupWrapper," ").concat(p?l().out:""),children:(0,n.jsx)("div",{className:l().popup,children:(0,n.jsx)(c.Z,{href:"https://www.teamefcoaching.com",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("a",{className:l().popupContent,children:[(0,n.jsx)("button",{className:l().popupCloseButton,onClick:e=>{e.preventDefault(),g(()=>setTimeout(()=>x(),400))},children:(0,n.jsx)(o.bMz,{})}),(0,n.jsx)("div",{className:l().popupCopy,children:(0,n.jsx)("h2",{className:"ef-h6 u-mb-0",children:"Take your riding further with Team EF Coaching"})})]})})})}),document.body):null}},1067:function(e,t,a){"use strict";a.r(t);var n=a(5893),r=a(7294),s=a(5344),l=a(2221),i=a(6974);t.default=e=>{let{content:t,published:a,stories:o}=e,c=(0,r.useContext)(s.z);return(0,r.useEffect)(()=>(c.setData({...c.data,page_class:"-racing"}),()=>c.setData({...c.data,page_class:""})),[]),(0,n.jsx)(l.Z,{content:t,published:a,stories:o,...(0,i.LF)(e.content)})}},4204:function(e){e.exports={banner:"banner_banner__9an4v",bannerInner:"banner_bannerInner__iDBK6",bannerLogo:"banner_bannerLogo__2sTjV",bannerTitle:"banner_bannerTitle__g_AW5",bannerText:"banner_bannerText__EhIaf"}},1968:function(e){e.exports={image:"image_image__Tzd4p",loaded:"image_loaded__BSV_t"}},6431:function(e){e.exports={popupWrapper:"popup_popupWrapper__ohunl",popup:"popup_popup__QIvTO",fade:"popup_fade__qgajf",translate:"popup_translate__Wh1I1",popupContent:"popup_popupContent__ANShj",popupCloseButton:"popup_popupCloseButton__rkT2_",popupCopy:"popup_popupCopy__sXrKF",out:"popup_out__ybw8_"}}}]);
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.