1!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]="0f70d81f-b109-4bad-8bfd-2271facec102",e._sentryDebugIdIdentifier="sentry-dbid-0f70d81f-b109-4bad-8bfd-2271facec102")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1841,3004],{71841:(e,n,t)=>{t.r(n),t.d(n,{default:()=>q});var r=t(37876),o=t(31777),i=t(89099),s=t(14232),d=t(56557),c=t.n(d),l=t(64301),a=t.n(l),h=t(71576),m=t.n(h);let g=(0,t(35881).Mz)([e=>e.nonRunners],e=>{let{data:n,error:t}=e;return{data:n,error:t}});var u=t(74888),f=t(94462),p=t(67522),b=t(99485),x=t(28888),y=t(98684);function A(){let e=(0,x._)(["\n padding: 0 ",";\n "]);return A=function(){return e},e}function k(){let e=(0,x._)(["\n padding: 0 ",";\n "]);return k=function(){return e},e}function w(){let e=(0,x._)(["\n display: grid;\n grid-template-columns: calc(100% - (300px + 32px)) 300px;\n column-gap: ",";\n "]);return w=function(){return e},e}let j=y.Ay.div.withConfig({componentId:"sc-6b43ee7c-0"})(["",""],e=>{let{theme:{mixins:{breakpointMixin:n,container:t},spacings:{m:r}}}=e;return(0,y.AH)([""," "," ",""],t,n.tablet(A(),r),n.mobile(k(),r))}),_=y.Ay.div.withConfig({componentId:"sc-6b43ee7c-1"})(["",""],e=>{let{theme:{spacings:{l:n},mixins:{breakpointMixin:t}}}=e;return(0,y.AH)(["display:block;",""],t.desktop(w(),n))}),C=y.Ay.div.withConfig({componentId:"sc-6b43ee7c-2"})(["display:flex;flex-direction:column;gap:0;"]),I=y.Ay.div.withConfig({componentId:"sc-c11fabb3-0"})(["",""],e=>{let{theme:{spacings:{m:n}}}=e;return(0,y.AH)(["margin:"," 0;"],n)}),v=y.Ay.h3.withConfig({componentId:"sc-c11fabb3-1"})(["",""],e=>{let{theme:{typography:n,colors:t}}=e;return(0,y.AH)([""," color:",";"],n.brandHeadings.headingFive,t.black)}),H=e=>{let{selectedDay:n}=e;return(0,r.jsx)(I,{children:(0,r.jsxs)(v,{children:[n,": going, weather & non-runners"]})})};var B=t(80988),S=t(73291),O=t(28723),T=t(68814),D=t(30216),E=t(48230),N=t.n(E);let R=y.Ay.div.withConfig({componentId:"sc-b07d14eb-0"})(["",""],e=>{let{theme:{colors:{white:n},spacings:{m:t}}}=e;return(0,y.AH)(["background-color:",";border-radius:4px;margin-bottom:",";overflow:hidden;"],n,t)}),$=(0,y.Ay)(N()).withConfig({componentId:"sc-b07d14eb-1"})(["",""],e=>{let{theme:{colors:{brandPrimary:n},spacings:{xs:t}}}=e;return(0,y.AH)(["display:inline-block;color:",";margin-bottom:",";"],n,t)}),L=y.Ay.h3.withConfig({componentId:"sc-b07d14eb-2"})(["",""],e=>{let{theme:{typography:n,colors:{brandPrimary:t,brandPrimaryHover:r}}}=e;return(0,y.AH)([""," margin:0;color:",";&:hover{text-decoration:underline;color:",";}"],n.brandHeadings.headingFour,t,r)}),M=y.Ay.span.withConfig({componentId:"sc-b07d14eb-3"})(["",""],e=>{let{theme:{typography:n,colors:{black:t},spacings:{xxs:r}}}=e;return(0,y.AH)([""," color:",";margin-right:",";"],n.brandBody.medium.bold,t,r)}),V=y.Ay.span.withConfig({componentId:"sc-b07d14eb-4"})(["",""],e=>{let{theme:{typography:n,colors:{darkGrey:t}}}=e;return(0,y.AH)([""," color:",";"],n.brandBody.medium.regular,t)}),z=y.Ay.h4.withConfig({componentId:"sc-b07d14eb-5"})(["",""],e=>{let{theme:{typography:n,colors:{black:t}}}=e;return(0,y.AH)([""," color:",";"],n.brandBody.medium.bold,t)}),F=y.Ay.div.withConfig({componentId:"sc-b07d14eb-6"})(["display:flex;align-items:flex-start;&:last-child{margin-bottom:0;}"]),G=(0,y.Ay)(N()).withConfig({componentId:"sc-b07d14eb-7"})(["",""],e=>{let{theme:{typography:n,colors:{black:t,brandPrimary:r},spacings:{xxxs:o}}}=e;return(0,y.AH)([""," display:block;color:",";&:hover{text-decoration:underline;color:",";}&::after{content:'';display:inline-block;width:8px;height:8px;margin-right:",";background-image:url('/svgs/chevrons/chevron_right_red.svg');background-size:contain;background-repeat:no-repeat;background-position:center;}"],n.brandBody.small.normal,t,r,o)}),W=y.Ay.div.withConfig({componentId:"sc-b07d14eb-8"})(["",""],e=>{let{theme:{typography:n,colors:{black:t}}}=e;return(0,y.AH)([""," flex:1;color:",";"],n.brandBody.small.normal,t)}),Y=(0,y.Ay)(N()).withConfig({componentId:"sc-b07d14eb-9"})(["",""],e=>{let{theme:{typography:n,colors:{black:t,brandPrimary:r},spacings:{xxxs:o}}}=e;return(0,y.AH)([""," color:",";&:hover{text-decoration:underline;color:",";}&::after{content:'';display:inline-block;width:8px;height:8px;margin-right:",";background-image:url('/svgs/chevrons/chevron_right_red.svg');background-size:contain;background-repeat:no-repeat;background-position:center;}"],n.brandBody.small.normal,t,r,o)}),K=y.Ay.span.withConfig({componentId:"sc-b07d14eb-10"})(["",""],e=>{let{theme:{typography:n,colors:{black:t}}}=e;return(0,y.AH)([""," color:",";"],n.brandBody.small.normal,t)}),U=(e,n,t)=>n&&((0,T._S)("cdt_tab_pref")!==S.Ad.LIVE||t)?(0,O.Yp)(e):e,P=e=>{let{course:n,isToday:t,date:o}=e,{courseName:i,going:s,weather:d,stallsPosition:c,courseId:l,races:a}=n,h=(0,D.D)();return(0,r.jsxs)(R,{"data-testid":"Container__CourseInfoBlock",children:[(0,r.jsx)($,{href:"/racecards/".concat(l,"/").concat((0,B.xG)(i),"/").concat(o,"/"),children:(0,r.jsx)(L,{children:i})}),s&&(0,r.jsxs)("div",{children:[(0,r.jsx)(M,{children:"GOING:"}),(0,r.jsx)(V,{children:s})]}),d&&(0,r.jsxs)("div",{children:[(0,r.jsx)(M,{children:"WEATHER:"}),(0,r.jsx)(V,{children:d})]}),c&&(0,r.jsxs)("div",{children:[(0,r.jsx)(M,{children:"STALLS:"}),(0,r.jsx)(V,{children:c})]}),a&&a.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{children:"NON RUNNERS:"}),a.map(e=>(0,r.jsxs)(F,{children:[(0,r.jsx)(G,{href:U(e.raceUrl,h,t),children:e.raceTime}),(0,r.jsx)(W,{children:e.horses.map((n,t)=>(0,r.jsxs)("span",{children:[(0,r.jsx)(Y,{href:(0,B.h6)(n.horseId,n.horseName),children:n.horseName}),(0,r.jsxs)(K,{children:["(",n.raceNumber,")"]}),t<e.horses.length-1&&" - "]},n.horseId))})]},e.raceId))]})]})};c().extend(m()),c().extend(a());let q=()=>{let e=(0,i.useRouter)(),{slug:n}=e.query,{data:t}=(0,o.d4)(e=>g(e)),d=Array.isArray(n)?n[0]:n,l=c()().tz(u.x6),a=d||l.format("YYYY-MM-DD"),h=c()(a).format("dddd");return(0,s.useEffect)(()=>{d&&c()(d).tz(u.x6).isBefore(l,"day")&&e.replace("/non-runners/")},[d,e]),(0,r.jsx)(j,{children:t.length>0&&(0,r.jsxs)(_,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(H,{selectedDay:h}),(0,r.jsx)(C,{children:t.map(e=>(0,r.jsx)(P,{course:e,isToday:!d,date:a},e.courseId))})]}),(0,r.jsxs)(p._v,{shouldShowDesktop:!0,children:[(0,r.jsx)(f.default,{}),(0,r.jsx)(b.default,{})]})]})})}},93004:(e,n,t)=>{t.d(n,{gP:()=>o,gV:()=>r});let r="noopener",o="noopener nofollow sponsored"},99485:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Y});var r=t(37876),o=t(31777),i=t(14232),s=t(70655),d=t(24790),c=t(28723),l=t(30216),a=t(32426),h=t(61437),m=t(54587),g=t.n(m),u=t(89099),f=t(91553),p=t(16811),b=t(68066),x=t(93004),y=t(28888),A=t(98684),k=t(48230),w=t.n(k),j=t(2662);function _(){let e=(0,y._)(["\n margin: 0;\n justify-content: flex-start;\n "]);return _=function(){return e},e}let C=(0,A.Ay)(w()).withConfig({componentId:"sc-604e8386-0"})(["",""],e=>{let{$bgColorSecondaryTiers:n,$shouldShowTsAndCs:t,theme:{colors:{lightGrey:r,black:o,white:i},spacings:{xs:s,s:d},mixins:{breakpointMixin:c}}}=e;return(0,A.AH)(["width:100%;display:flex;justify-content:space-between;align-items:center;background-color:",";color:",";padding:",";cursor:pointer;border-radius:4px;background-color:",";color:",";",";border-radius:4px;margin-top:",";margin-bottom:",";",""],r,o,s,n,i,j.FR.standard30,s,d,t&&(0,A.AH)(["flex-direction:column;margin:0;margin-bottom:",";padding:",";",""],d,s,c.tablet(_())))}),I=A.Ay.div.withConfig({componentId:"sc-604e8386-1"})(["",""],e=>{let{$shouldShowTsAndCs:n}=e;return(0,A.AH)(["display:flex;align-items:center;",""],n&&(0,A.AH)(["min-width:100%;justify-content:flex-start;"]))}),v=A.Ay.h5.withConfig({componentId:"sc-604e8386-2"})(["",""],e=>{let{theme:{colors:{white:n},spacings:{xs:t}
1,typography:{brandBody:r}},$textColour:o,$shouldShowTsAndCs:i}=e;return(0,A.AH)(["display:inline-block;margin:0 0 0 ",";",";max-width:200px;color:",";",""],t,r.small.semiBold,o||n,i&&(0,A.AH)(["max-width:100%;"]))}),H=A.Ay.div.withConfig({componentId:"sc-604e8386-3"})(["display:inline-flex;justify-content:center;align-items:center;height:32px;border-radius:4px;margin:2px 0;"]),B=A.Ay.p.withConfig({componentId:"sc-604e8386-4"})(["",""],e=>{let{theme:{colors:{white:n},spacings:{xxs:t},typography:{brandBody:r}},$textColour:o}=e;return(0,A.AH)(["",";margin:"," 0;color:",";width:100%;"],r.xxxsmall.regular,t,o||n)}),{BOOKMAKER_REGISTRATION_TAP:S}=f.wK,{MORE_OFFERS:O}=s.uV,{TIER_TWO:T}=s.BK,D=e=>{let{bookmakerName:n,offer:{colourBranding:t,bookmakerLogo:o,signUpLink1:i,offer:s,textColour:d,tsAndCs:l},position:a,shouldShowTsAndCs:h}=e,{trackEvent:m}=(0,p.f)(),{asPath:f}=(0,u.useRouter)(),y=f.startsWith("/racecards"),{location:A,subsection:k}=(0,b.D$)(f,!1,y),{url:w,path:j}=(0,b.mx)(f),_=y?{}:{path:j,url:w};return(0,r.jsxs)(C,{"data-testid":"Link__BookmakerOfferItem__".concat((0,c.VS)(n)),href:i,target:"_blank",rel:x.gP,$bgColorSecondaryTiers:t,$shouldShowTsAndCs:h,onClick:()=>m(S,{bookmaker_name:n,bookmaker_offer:s,position:a,offers_banner:O,location:A,subsection:k,bookmaker_tier:T,..._}),children:[(0,r.jsxs)(I,{$shouldShowTsAndCs:h,"data-testid":"Container__BookmakerOfferDetails",children:[(0,r.jsx)(H,{"data-testid":"Container__BookmakerLogo",children:(0,r.jsx)(g(),{width:70,height:32,src:o,alt:"".concat((0,c.VS)(n)," logo"),"data-testid":"Logo__Bookmaker"})}),(0,r.jsx)(v,{"data-testid":"Text__BookmakerOffer",$textColour:d,$shouldShowTsAndCs:h,children:s})]}),h&&(0,r.jsx)(B,{"data-testid":"Text__BookmakerTermsAndConditions",$textColour:d,children:l})]})};var E=t(82110);function N(){let e=(0,y._)(["\n &:first-of-type {\n height: 70px;\n }\n "]);return N=function(){return e},e}let R=A.Ay.ul.withConfig({componentId:"sc-b4d2761e-0"})(["width:100%;height:350px;padding-top:30px;overflow:hidden;list-style:none;display:flex;flex-direction:column;padding:0;"]),$=A.Ay.li.withConfig({componentId:"sc-b4d2761e-1"})([""," ",";"],e=>{let{theme:{colors:n,spacings:t,mixins:{breakpointMixin:r}}}=e;return(0,A.AH)(["width:100%;height:48px;position:relative;background-color:",";margin-top:",";margin-bottom:",";",""],n.midGrey,t.xs,t.s,r.desktop(N()))},E.Cx),L=()=>(0,r.jsxs)(R,{"data-testid":"Skeleton__MoreOffersWidget",children:[(0,r.jsx)($,{}),(0,r.jsx)($,{}),(0,r.jsx)($,{}),(0,r.jsx)($,{}),(0,r.jsx)($,{})]});function M(){let e=(0,y._)(["\n margin: "," "," 0;\n "]);return M=function(){return e},e}function V(){let e=(0,y._)(["\n margin: "," "," 0;\n "]);return V=function(){return e},e}let z=A.Ay.div.withConfig({componentId:"sc-50c992fc-0"})(["",""],e=>{let{theme:{spacings:{xs:n,m:t,l:r},mixins:{breakpointMixin:o}}}=e;return(0,A.AH)(["margin:"," 0 0 0;"," ",""],t,o.tablet(M(),r,t),o.mobile(V(),t,n))}),F=A.Ay.p.withConfig({componentId:"sc-50c992fc-1"})(["",""],e=>{let{theme:{colors:n,spacings:{m:t},typography:r}}=e;return(0,A.AH)(["color:",";margin:"," 0;",";"],n.black,t,r.brandBody.xsmall.regular)}),G=A.Ay.div.withConfig({componentId:"sc-50c992fc-2"})(["",""],e=>{let{$isTablet:n,theme:{spacings:{s:t}}}=e;return(0,A.AH)(["display:grid;",""],n?(0,A.AH)(["grid-template-columns:repeat(2,1fr);gap:",";"],t):(0,A.AH)(["grid-template-columns:1fr;"]))}),{MORE_OFFERS:W}=s.uV,Y=()=>{let{isTablet:e,isMobile:n}=(0,d.zu)(),t=(0,l.D)(),{data:m}=(0,o.d4)(a.ZK),[g,u]=(0,i.useState)([]);return((0,i.useEffect)(()=>{m&&u(()=>n?m.mobile:m.desktop)},[m,n,g]),t&&m)?(0,r.jsxs)(z,{"data-testid":"Container__MoreOffersWidget",children:[(0,r.jsx)(h.A,{title:W,numberOfOffers:g.length,offersBanner:W,isLiveReport:!1}),(0,r.jsx)(G,{"data-testid":"OffersGrid__MoreOffersWidget",$isTablet:e,children:g.slice(0,12).map((e,n)=>(0,r.jsx)(D,{offer:e,bookmakerName:e.name,shouldShowTsAndCs:!0,position:n+1},(0,c.VS)(e.name)))}),(0,r.jsx)(F,{children:s.dU})]}):(0,r.jsx)(L,{})}}}]);
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.