https://racingamerica.com/_next/static/chunks/pages/series/[category]/[slug]-5df1c2730b5b265a7b1c.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[522,8389],{8460:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(893);function i(e,t){return(0,n.r)(e,t,!0)}},9315:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(5675),i=r(4820),a=r(6750),o=r(5893);function s(e){var t,r=e.entry,s=r.website||r.socialHandles||r.teamStoreUrl||r.watchVideosLink;return(0,o.jsxs)("section",{className:"DetailHero",children:[r.heroImage[0]&&(0,o.jsx)("div",{className:"DetailHero__image",children:(0,o.jsx)(n.default,{src:r.heroImage[0].url,alt:r.heroImage[0].title,height:"1440px",width:"363px",objectFit:"cover",unoptimized:!0})}),(0,o.jsx)(i.Z,{flex:!0,justify:"flex-start",children:(0,o.jsxs)("header",{className:"DetailHero__header",children:[r.logo[0]&&(0,o.jsx)("div",{className:"DetailHero__header__logo",children:(0,o.jsx)(n.default,{src:r.logo[0].url,alt:r.logo[0].title,height:"60px",width:"130px",objectFit:"contain"})}),(0,o.jsxs)("div",{className:"DetailHero__header__copy",children:[r.parent&&(0,o.jsx)("p",{className:"DetailHero__header__copy__category",children:r.parent.title}),"teams_default_Entry"===r.__typename&&(0,o.jsx)("p",{className:"DetailHero__header__copy__category",children:"Team"}),(0,o.jsx)("p",{className:"DetailHero__header__copy__title",children:r.title})]})]})}),s&&(0,o.jsx)("div",{className:"DetailHero__details",children:(0,o.jsxs)(i.Z,{flex:!0,align:"center",justify:"space-between",children:[(0,o.jsxs)("ul",{className:"DetailHero__details__list",children:[r.website&&(0,o.jsxs)("li",{className:"DetailHero__details__list__item",children:[(0,o.jsx)(a.Z,{name:"world"}),(0,o.jsx)("a",{href:r.website,target:"_blank",rel:"noreferrer",children:"Website"})]}),r.socialHandles&&(null===(t=r.socialHandles)||void 0===t?void 0:t.length)>0&&r.socialHandles.map((function(e,t){return(0,o.jsxs)("li",{className:"DetailHero__details__list__item",children:[(0,o.jsx)(a.Z,{name:e.platform}),(0,o.jsx)("a",{href:e.platformUrl,target:"_blank",rel:"noreferrer",children:e.platform})]},t)})),r.teamStoreUrl&&(0,o.jsxs)("li",{className:"DetailHero__details__list__item",children:[(0,o.jsx)(a.Z,{name:"tshirt"}),(0,o.jsx)("a",{href:r.teamStoreUrl,target:"_blank",rel:"noreferrer",children:"Team Store"})]})]}),r.watchVideosLink&&(0,o.jsxs)("a",{href:r.watchVideosLink,className:"DetailHero__details__cta",target:"_blank",rel:"noreferrer",children:[(0,o.jsx)("span",{children:(0,o.jsx)(n.default,{src:"/img/ra-tv-logo.png",alt:"RacingAmerica TV Logo",width:"20",height:"20"})}),"Watch Videos"]})]})})]})}},5917:function(e,t,r){"use strict";var n=r(2520),i=r(5893);t.Z=function(e){var t=e.articles;return(0,i.jsx)("div",{className:"FeatureArticleGrid",children:t.map((function(e,t){return 0===t?(0,i.jsx)(n.hS,{article:e},e.id):(0,i.jsx)(n.IA,{article:e},e.id)}))})}},147:function(e,t,r){"use strict";var n=r(7294),i=r(5893);t.Z=function(e){var t=e.page,r=void 0===t?1:t,a=e.perPage,o=e.total,s=e.onChange,l=(0,n.useState)((function(){return Array.from(Array(Math.ceil(o/a)).keys())})),c=l[0],u=(l[1],r<=3?0:r-3);return(0,i.jsxs)("ul",{className:"Pagination",children:[r>=3&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){return s(1)},children:"<<"})},"start"),(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){return s(r-1)},children:"<"})},"prev")]}),c.slice(u,r-1).map((function(e){return(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){s(e+1)},children:e+1})},e)})),(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination active",children:r})},"current"),c.slice(r,Math.min(r+2,c.length)).map((function(e){return(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){s(e+1)},children:e+1})},e)})),c.length>5&&r<c.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){return s(r+1)},children:">"})},"next"),(0,i.jsx)("li",{children:(0,i.jsx)("button",{className:"pagination",onClick:function(){return s(c.length)},children:">>"})},"end")]})]})}},278:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return g}});var n=r(2809),i=r(7294),a=r(4820),o=r(1698),s=r(1801),l=r(5152),c=r(9257),u=r(6534),d=r
1(5893),f={podcasts:(0,l.default)((function(){return r.e(8123).then(r.bind(r,8123))}),{loading:function(){return(0,d.jsx)(d.Fragment,{})},ssr:!0,loadableGenerated:{webpack:function(){return[8123]},modules:["../components/RelatedContentCarousel/carousel.tsx -> ./partials/podcast"]}}),vimeoCollection:(0,l.default)((function(){return r.e(72).then(r.bind(r,72))}),{loading:function(){return(0,d.jsx)(d.Fragment,{})},ssr:!0,loadableGenerated:{webpack:function(){return[72]},modules:["../components/RelatedContentCarousel/carousel.tsx -> ./partials/vimeo"]}}),newsArticles:(0,l.default)((function(){return r.e(4319).then(r.bind(r,6378))}),{loading:function(){return(0,d.jsx)(d.Fragment,{})},ssr:!0,loadableGenerated:{webpack:function(){return[6378]},modules:["../components/RelatedContentCarousel/carousel.tsx -> ./partials/article"]}})},h=function(e){var t=e.carouselContent,r=e.prevBtnId,n=e.nextBtnId,i=(0,u.k)(),a=i.getCollection,o=i.getVideo;return(0,d.jsx)(s.t,{slidesPerView:4,spaceBetween:30,watchSlidesProgress:!0,threshold:100,modules:[c.s5,c.N1,c.W_],navigation:{nextEl:"#".concat(n),prevEl:"#".concat(r)},breakpoints:{320:{slidesPerView:1.25},768:{slidesPerView:3},1100:{slidesPerView:4}},style:{overflow:"visible"},children:t.map((function(e,t){if(!e)return null;if(e.videoId){var r=o(e.videoId),n=r.video,i=r.isLoading,l=r.isError;if(i)return(0,d.jsx)(s.o,{children:(0,d.jsx)("article",{className:"RelatedContentCarousel__loading"})},"loading-".concat(t));if(!n||l)return null;var c=f.vimeoCollection;return(0,d.jsx)(s.o,{children:(0,d.jsx)(c,{layout:"square",showLogo:!1,video:n})},n.id)}if(e.vimeoCollectionId){var u=a(e.vimeoCollectionId),h=u.collection,p=u.isLoading,j=u.isError;if(p)return(0,d.jsx)(s.o,{children:(0,d.jsx)("article",{className:"RelatedContentCarousel__loading"})},"loading-".concat(t));if(null===h||void 0===h||!h.collectionVideos||0===h.collectionVideos.length||j)return null;var m=f.vimeoCollection;return h.collectionVideos.map((function(t){return(0,d.jsx)(s.o,{children:(0,d.jsx)(m,{layout:e.layout,showLogo:e.showLogo,video:t})},t.id)}))}return e.map((function(e){switch(e.__typename){case"newsArticles_default_Entry":var t=f.newsArticles;return(0,d.jsx)(s.o,{children:(0,d.jsx)(t,{content:e})},e.id);
1case"podcasts_default_Entry":var r=f.podcasts;return(0,d.jsx)(s.o,{children:(0,d.jsx)(r,{content:e})},e.id);default:return null}}))}))})};function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=function(e,t,r){return"".concat(t,"__").concat(e,"__").concat(r)};function g(e){var t=(0,i.useState)(!0),r=t[0],n=t[1],s=e.id,l=e.introCopy[0],c=l.headline,u=l.showArrows,f=l.cta,p=e.carouselContent[0],g=e.carouselContent.map((function(e){switch(e.typeHandle){case"vimeoVideo":case"vimeoCollection":return j({},e);case"podcasts":return e.podcasts;case"newsArticles":return e.newsArticles;default:return null}})),x=m(s,p.typeHandle,"next"),v=m(s,p.typeHandle,"prev");return r&&p.typeHandle?(0,d.jsx)("div",{className:"RelatedContentCarousel",children:(0,d.jsxs)(a.Z,{overflowX:"visible",children:[(0,d.jsx)(o.Z,{cta:f,headline:c,nextBtnId:x,prevBtnId:v,showArrows:u}),(0,d.jsx)(h,{carouselContent:g,nextBtnId:x,prevBtnId:v,onFail:function(){return n(!1)}})]})}):null}},5498:function(e,t,r){"use strict";var n=r(2809),i=r(9008),a=r(5893);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){var t=e.metaTitleContainer,r=e.metaTagContainer,n=e.metaLinkContainer,o=(e.metaScriptContainer,e.metaJsonLdContainer),l=JSON.parse(t).title;return(0,a.jsxs)(i.default,{children:[(0,a.jsx)("title",{children:l.title}),function(){var e=JSON.parse(n);return Object.keys(e).map((function(t,r){var n=e[t],i=n.href,o=n.hreflang,l={href:i,rel:n.rel,hrefLang:o};return(0,a.jsx)("link",s({},l),r)}))}(),function(){var e=JSON.parse(r);return Object.keys(e).filter((function(t){return!Array.isArray(e[t])})).map((function(t,r){var n=s({},e[t]);return(0,a.jsx)("meta",s({},n),r)}))}(),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:o}}),(0,a.jsx)("link",{rel:"alternate",type:"application/rss+xml",href:"https://www.racingamerica.com/rss"})]})}},8389:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(4820),i=r(6750),a=r(266),o=r(809),s=r.n(o),l=r(7294),c=r(5893),u=function(e){var t=e.headline,r=function(e){var t=e.feed,r=(0,l.useState)([]),n=r[0],i=r[1],o=(0,l.useState)(!1),c=o[0],u=o[1];return(0,l.useEffect)((function(){!function(){var e=(0,a.Z)(s().mark((function e(){var r,n,a,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,fetch("https://www.juicer.io/api/feeds/".concat(t,"?per=10&page=1"));case 3:return r=e.sent,e.next=6,r.json();case 6:n=e.sent,(a=n.posts.items).length&&(o=a.filter((function(e){return null!==e.image})),i(o.slice(0,5))),u(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[t]),{loading:c,items:n}}({feed:e.socialFeed}),o=r.loading,u=r.items;return(0,c.jsx)(n.Z,{children:(0,c.jsxs)("div",{className:"SocialFeed",children:[(0,c.jsxs)("div",{className:"SocialFeed__header",children:[(0,c.jsx)("h1",{children:t}),(0,c.jsx)("hr",{className:"SocialFeed__header__horizontalLine"})]}),(0,c.jsx)("ul",{className:"SocialFeed__grid",children:o?(0,c.jsx)(c.Fragment,{children:Array.from(Array(5).keys()).map((function(e){return(0,c.jsx)("li",{className:"SocialFeed__grid--loading"},e)}))}):(0,c.jsx)(c.Fragment,{children:u.map((function(e){return(0,c.jsxs)("li",{children:[(0,c.jsx)("a",{href:e.full_url,children:(0,c.jsx)("img",{src:e.image,alt:e.title})}),(0,c.jsx)(i.Z,{name:(e.source+"").toLowerCase()})]},e.external_id)}))})})]})})}},5237:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return w}});var n=r(2809),i=r(318),a=r(7294),o=r(1163),s=r(8460),l=r(1768),c=r(5498),u=r(9315),d=r(4820),f=r(5917),h=r(1698),p=r(2690),j=r(278),m=r(2520),g=r(793),x=r(8389),v=r(147),_=r(5893);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w=!0;t.default=function(e){var t=e.entry,r=e.articles,n=void 0===r?[]:r,y=e.count,w=void 0===y?0:y,O=(0,o.useRouter)(),C=(0,a.useRef)(null),N=(0,a.useState)(1),S=N[0],k=N[1],P=(0,a.useState)([]),A=P[0],Z=P[1],D=(0,s.t)(l.xh),H=(0,i.Z)(D,2),I=H[0],E=H[1],F=(E.called,E.loading),L=E.data;if((0,a.useEffect)((function(){n.length>0&&0===A.length&&Z(n.slice(3))}),[n,A.length]),(0,a.useEffect)((function(){if(O.query&&O.query.page){var e=parseInt(O.query.page);k(e),1!==e?I({variables:{offset:3+7*(e-1),slug:O.query.slug}}):Z(n.slice(3))}}),[O.query,I,n]),(0,a.useEffect)((function(){L&&L.entries&&Z(L.entries)}),[L]),O.isFallback)return(0,_.jsx)("div",{children:"Loading..."});var V=n.slice(0,3),q=A,R=Math.max(0,w-3);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c.Z,b({},t.seomatic)),(0,_.jsx)(u.Z,{entry:t}),t.primaryAd&&t.primaryAd.length>0&&(0,_.jsx)(p.default,{ad:t.primaryAd,size:"banner"}),t.vimeoCollection&&t.vimeoCollection.length>0&&t.vimeoCollection.map((function(e,r){return(0,_.jsx)("section",{id:"section-".concat(t.vimeoCollectionId),children:(0,_.jsx)(j.default,{id:e.vimeoCollectionId,introCopy:[{headline:e.headline,showArrows:e.showArrows,cta:e.cta}],carouselContent:[{typeHandle:"vimeoCollection",layout:e.layout,vimeoCollectionId:e.vimeoCollectionId,showLogo:e.showLogo}]})},r)})),V.length>0&&(0,_.jsx)("section",{children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(h.Z,{headline:"".concat(t.title," News"),showArrows:!1,cta:{uri:"/news",url:"/news",targetString:"",text:"View All"}}),(0,_.jsx)(f.Z,{articles:V})]})}),w>3&&(0,_.jsx)("section",{ref:C,style:{position:"relative"},children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(h.Z,{headline:"More News",showArrows:!1}),(0,_.jsxs)("div",{className:"NewsListingWithSidebar",style:{position:"relative"},children:[F&&(0,_.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,minHeight:"400px"},children:(0,_.jsx)("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#333"},children:"Loading..."})}),(0,_.jsx)(m.ZP,{articles:q,variableSizes:!1}),t.sidebarAds.length>0&&(0,_.jsx)(g.Z,{sidebarNewsArticlesAndAds:t.sidebarAds})]}),R>7&&(0,_.jsx)(v.Z,{page:S,perPage:7,total:R,onChange:function(e){var t;null===(t=C.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"}),k(e),O.replace("/series/".concat(O.query.category,"/").concat(O.query.slug,"?page=").concat(e),void 0,{shallow:!0}),I({variables:{slug:O.query.slug,offset:3+7*(e-1)}})}})]})}),t.socialFeed&&(0,_.jsx)(x.default,{headline:"Join the Conversation",socialFeed:t.socialFeed})]})}},8835:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/series/[category]/[slug]",function(){return r(5237)}])},9008:function(e,t,r){e.exports=r(639)},318:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(6988);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}}(e,t)||(0,n.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[8733,9774,2888,179],(function(){return t=8835,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.