PageSourceSearch

https://www.racingtv.com/static/js/8115.12a3e43c.chunk.js

js racingtv.com collected 2026-09-24 09:23:40 UTC 8,469 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[8115],{2049:(e,a,s)=>{s.d(a,{GE:()=>getArticles,HL:()=>getArticlesByDate,KY:()=>getColumnists,lf:()=>getColumnist,vO:()=>getArticle});var t=s(32652),r=s(16297);const getArticle=async e=>await(0,t.xi)(`news/articles/${(0,r.J)(e)}`),getArticles=async(e,a,s)=>await(0,t.xi)(`news/articles/${e}`,{"pagination[page]":a,"pagination[limit]":s}),getArticlesByDate=async(e,a)=>await(0,t.xi)(`news/articles/date/${e}`,{page:a}),getColumnist=async(e,a,s=25)=>await(0,t.xi)(`news/columnists/${e}`,{"pagination[page]":a,"pagination[limit]":s}),getColumnists=async()=>await(0,t.xi)("news/columnists")},97803:(e,a,s)=>{s.d(a,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var t=s(8715),r=s(1495),i=s(36665),n=s(27982),l=s(50208),o=s(2037),c=s(1602),d=s(51419),m=s(1398),g=s(98468),p=s(60397);const PageSegment=({data:e,pageNum:a,navScreen:s,routeParams:t})=>{const n=e.page===a,[o,c]=(0,i.useState)();return"..."===a?(0,p.jsx)(r.A,{style:h.pageSegment,children:(0,p.jsx)(l.A,{weight:"semiBold",children:a})}):(0,p.jsx)(d.A,{navScreen:s,navParams:Object.assign({},t,{page:a}),onHoverIn:()=>"..."!==a&&c(!0),onHoverOut:()=>"..."!==a&&c(!1),style:[h.pageSegment,n&&h.selectedPageSegment,o&&h.hovered],children:(0,p.jsx)(l.A,{color:n||o?"white":"black",weight:"semiBold",children:a})},`paginator${a}`)},pageIndexDescription=(e,a)=>`Displaying ${e} ${a.page>1?a.page*a.limit-(a.limit-1):a.page} - ${a.page===a.pages?a.total:a.limit*a.page} of ${a.total}`,__WEBPACK_DEFAULT_EXPORT__=({data:e,itemDescription:a})=>{const s=(0,c.lq)(),[t]=(0,m.fp)(g.J8),i={navScreen:t.route,routeParams:s?.params};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.A,{style:{alignSelf:"center"},children:pageIndexDescription(a,e)}),(0,p.jsxs)(r.A,{style:h.container,children:[(0,p.jsxs)(d.A,{navScreen:t.route,navParams:Object.assign({},s?.params,{page:1===e?.page?Number(e?.page):Number(e.page)-1}),style:h.prevNext,children:[(0,p.jsx)(n.default,{name:"chevronPinkLeft",size:"xsmall",style:h.icon}),(0,p.jsx)(l.A,{weight:"semiBold",children:"Prev"})]}),(e=>{const a=[];let s=e.pages<=4?1:e.page;for(;s<e.pages&&a.length<4;)a.push(s),s++;return a})(e).map(((a,s)=>(0,p.jsx)(PageSegment,Object.assign({data:e,pageNum:a},i),s))),e.pages>4&&(0,p.jsx)(PageSegment,Object.assign({data:e,pageNum:"..."},i),"paginator..."),(0,p.jsx)(PageSegment,Object.assign({data:e,pageNum:e.pages},i),"pages.."),(0,p.jsxs)(d.A,{navScreen:t.route,navParams:Object.assign({},s?.params,{page:e?.page===e?.pages?Number(e?.pages):Number(e.page)+1}),style:h.prevNext,children:[(0,p.jsx)(l.A,{weight:"semiBold",children:"Next"}),(0,p.jsx)(n.default,{name:"chevronPinkLeft",size:"xsmall",style:[h.icon,h.rotate180]})]})]})]})},{spacing:u,colors:x}=o.A,h=t.A.create({container:{flexDirection:"row",maxWidth:500,alignSelf:"center",borderWidth:1,borderRadius:4,marginVertical:20,width:"100%"},prevNext:{flexDirection:"row",alignItems:"center",justifyContent:"center",padding:u.xxsmall,flex:1},pageSegment:{padding:u.xxsmall,borderLeftWidth:.5,borderRightWidth:.5,borderColor:x.palette.neutral.x600,paddingHorizontal:u.xsmall},selectedPageSegment:{backgroundColor:x.palette.rtv.primary},hovered:{backgroundColor:x.palette.rtv.primary},icon:{paddingHorizontal:10,marginTop:2},rotate180:{transform:[{rotate:"180deg"}]}})},68115:(e,a,s)=>{s.r(a),s.d(a,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var t=s(1495),r=s(36665),i=s(11910),n=s(66612),l=s(29363),o=s(45896),c=s(57890),d=s(2037),m=s(90415),g=s(2049),p=s(16297),u=s(76435),x=s(50259),h=s(1398),j=s(86224),b=s(98468),y=s(82447),f=s(90512),A=s(27082),v=s(97803),w=s(60397);const{colors:S,spacing:P}=d.A,__WEBPACK_DEFAULT_EXPORT__=({navigation:e,route:a})=>{const{isMediumAndDown:s}=(0,l.Qs)(),[d,C]=(0,r.useState)(!0),[N,W]=(0,r.useState)(null),[L,O]=(0,r.useState)(),[_,k]=(0,r.useState)([0,1,2,3,4]),[z,D]=(0,r.useState)(),[,B]=(0,h.fp)(b.KZ),H=(0,h.Xr)(b.Ab),[M,$]=(0,r.useState)({}),R=L&&L.name&&L.name.formatted?{name:L.name.formatted}:void 0;(0,A.A)({page:"IndividualColumnist",additionalData:R}),(0,r.useEffect)((()=>{a?.params?.columnist_slug&&(C(!0),(0,g.lf)(a?.params?.columnist_slug,a?.params?.page||1).then((({columnist:e,pagination:a})=>{O(e),k(e.articles.slice(1)),D(e.articles[0]),$(a)})).catch((e=>W(e.message))).finally((()=>C(!1))))}),[a?.params?.columnist_slug,a?.params?.page]),(0,r.useEffect)((()=>{L&&H([{label:"News",component:"AllNews"},{label:"Columnists",component:"Columnists"},{label:L.name.formatted,component:"IndividualColumnist",routeParam
1s:{columnist_slug:a?.params?.columnist_slug}}])}),[L]);const ColumnistBio=()=>{const ColumnistImage=()=>L.profile_picture?.viewer_sources[0]?.url?(0,w.jsx)(t.A,{style:{marginRight:P.xsmall,width:50,height:50},children:(0,w.jsx)(x.A,{style:{borderRadius:5,width:50,height:50,objectFit:"cover"},source:L.profile_picture.viewer_sources[0].url})}):null,ColumnistName=()=>(0,w.jsx)(m.A,{uppercase:!0,family:"secondary",weight:"bold",size:s?"lg":"xl",children:a?.params?.columnist_slug.replace(/-/g," ")}),ColumnistDescription=()=>L.profile_long?(0,w.jsx)(m.A,{color:s?"primary":"grey",size:"md",style:s?{marginVertical:P.xsmall}:{marginTop:P.small,marginBottom:P.xsmall},family:s?"primary":"secondary",children:L.profile_long}):null;return s?(0,w.jsxs)(t.A,{style:{flexDirection:"row"},children:[(0,w.jsx)(ColumnistImage,{}),(0,w.jsxs)(t.A,{style:{flex:1},children:[(0,w.jsx)(ColumnistName,{}),(0,w.jsx)(ColumnistDescription,{})]})]}):s?void 0:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(t.A,{style:{flexDirection:"row",borderBottomColor:S.separatorLight,borderBottomWidth:1,borderStyle:"solid",paddingBottom:P.small,alignItems:"center"},children:[(0,w.jsx)(ColumnistImage,{}),(0,w.jsx)(ColumnistName,{})]}),(0,w.jsx)(t.A,{style:{width:"100%"},children:(0,w.jsx)(ColumnistDescription,{})})]})};return(0,w.jsx)(i.Ay,{pagination:!!M&&(0,w.jsx)(v.A,{data:M,itemDescription:"articles"}),headingLoader:!1,content:(0,w.jsx)((()=>d?(0,w.jsx)(u.Gu,{name:"IndividualColumnistLoader"}):N?(0,w.jsx)(u.W5,{message:N}):L?(0,w.jsxs)(f.A,{priority:2,children:[(0,w.jsx)(ColumnistBio,{}),(0,w.jsx)(o.A,{articles:_,postOverride:z,contentLoadingOverride:d,error:N,columnist:L}),(0,w.jsx)(n.A,{children:_?.map(((a,s)=>(0,w.jsx)(c.U6,{thumbnailUrl:a?.hero?.placeholder_image_url||j.g4,descriptionHeading:a.headline,onPress:()=>{B((0,y.sr)(_)),e.navigate("NewsPost",{slug:(0,p.J)(a.slug)})},capitalize:!1},s)))})]}):(0,w.jsx)(u.pp,{})),{})})}},45896:(e,a,s)=>{s.d(a,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var t=s(23525),r=s(8715),i=s(1495),n=s(36665),l=s(29363),o=s(2037),c=s(90415),d=s(57890),m=s(1602),g=s(58978),p=s(76435),u=s(82447),x=s(1398),h=s(98468),j=s(33386),b=s(16297),y=s(14618),f=s(60397);const{colors:A,spacing:v}=o.A,w=r.A.create({container:{padding:v.xsmall,borderRadius:5,marginTop:v.xsmall},containerWeb:{flexDirection:"row",borderColor:A.palette.neutral.x100,borderWidth:1,borderStyle:"solid"},containerMobile:{backgroundColor:A.palette.neutral.x100},image:{aspectRatio:16/9,borderRadius:5},imageWeb:{backgroundColor:A.palette.neutral.x200,flex:.5},articleWeb:{flex:.5,paddingHorizontal:v.medium,paddingVertical:v.xsmall}}),__WEBPACK_DEFAULT_EXPORT__=({articles:e,postOverride:a,contentLoadingOverride:s,error:r=!1})=>{const A=(0,m.cq)(),[S,P]=(0,x.fp)(h.KZ),{isLargeAndUp:C}=(0,l.Qs)(),[N]=(0,n.useState)(a),[W]=(0,n.useState)(s),[L,O]=(0,n.useState)(!1),_=(0,n.useMemo)((()=>(0,u.DW)(N)),[N]),k=n.useMemo((()=>(0,u.C1)(N)),[N]),z=n.useCallback((()=>(P(e),(0,j.PS)(A,N.slug))),[A,N]),D=(0,y.A)({screen:"NewsPost",params:{slug:(0,b.J)(N.slug)}});return W?(0,f.jsx)(p.Gu,{name:"PinnedPostLoader"}):r||!a?null:(0,f.jsxs)(t.A,Object.assign({style:[w.container,C&&w.containerWeb,!C&&w.containerMobile,L&&{backgroundColor:o.A.colors.hovered}],onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),onPress:z},D,{children:[(0,f.jsx)(i.A,{style:[w.image,C&&w.imageWeb],children:(0,f.jsx)(d.Hy,{thumbnailUrl:k,onPress:z})}),(0,f.jsxs)(i.A,{style:C&&w.articleWeb,children:[(0,f.jsx)(c.A,{family:"secondary",size:C?"xxl":"xl",style:C?{marginVertical:v.xsmall}:{marginTop:v.xsmall},children:N.headline}),(0,f.jsx)(c.A,{color:"grey",weight:"semiBold",children:(0,g.Lu)(N.published.datetime)}),(0,f.jsxs)(c.A,{size:C?"md":"sm",style:{flexWrap:"wrap"},numberOfLines:3,ellipsizeMode:"tail",children:[_,(0,f.jsxs)(c.A,{weight:"bold",size:C?"md":"sm",dynamicTextStyle:{onHover:"underline"},color:"secondary",children:[" ","Read More"]})]})]})]}))}}}]);
2//# sourceMappingURL=8115.12a3e43c.chunk.js.map

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.