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]="9fe6aaec-0d73-4f07-9b72-27c0c15d64bd",e._sentryDebugIdIdentifier="sentry-dbid-9fe6aaec-0d73-4f07-9b72-27c0c15d64bd")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8326],{2006:(e,n,t)=>{t.d(n,{A:()=>r});let r=t(92550).w},3757:(e,n,t)=>{t.d(n,{G:()=>a});var r=t(14232),i=t(31777),o=t(8606),l=t(57686),s=t(29106);let a=e=>{let n=(0,i.wA)(),{hasResolvedAvailableNoteTypes:t,hasRaceNotes:a}=(0,i.d4)(l.Dh),d=(0,s.Z)(e),c=(0,r.useRef)(new Set);(0,r.useEffect)(()=>{null!=d&&d!==e&&(n((0,o.clearUgcRunnerNotes)()),c.current.clear())},[n,d,e]),(0,r.useEffect)(()=>{!t||!a||!e||c.current.has(e)||(c.current.add(e),n((0,o.getRacecardNotes)({raceId:e})))},[n,a,t,e])}},20344:(e,n,t)=>{t.d(n,{J:()=>i});var r=t(14232);let i=e=>{let n=(0,r.useRef)(e);return(0,r.useLayoutEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current(...t)},[])}},23008:(e,n,t)=>{t.d(n,{v:()=>p});var r=t(14232),i=t(31777),o=t(8606),l=t(19874),s=t(73291),a=t(36521),d=t(58865),c=t(57686),u=t(29106);let p=function(){var e;let{raceId:n=null,raceType:t=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,i.wA)(),h=(0,i.d4)(d.gN),f=(0,i.d4)(c.Gq),{hasResolvedAvailableNoteTypes:m,hasRaceNotes:g,hasProfileNotes:x,isCheckingNotes:y,isRacecardFetchLoading:b,racecardFetchRaceId:w}=(0,i.d4)(c.Dh),A=(0,u.Z)(n),_=(0,r.useRef)(new Set),j=(0,l.P2)(t,s.We)?t:null,C=null!==j&&null!==(e=a.jy[j])&&void 0!==e?e:null,I=w===n,v=g&&(b||!I);(0,r.useEffect)(()=>{null!=A&&A!==n&&_.current.clear()},[A,n]),(0,r.useEffect)(()=>{m&&x&&n||_.current.clear()},[x,m,n]),(0,r.useEffect)(()=>{m&&!y&&x&&n&&C&&h.length&&!v&&h.forEach(e=>{var n;let{horseId:t,nonRunner:r}=e,i=f[t];r||_.current.has(t)||(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.source)==="racecard"||null!=i&&i.isLoading||null!=i&&i.hasResolvedProfileFetch||(_.current.add(t),p((0,o.requestProfileNote)({horseId:t,raceTypeCode:C})))})},[p,x,m,y,v,n,f,h,C])}},50686:(e,n,t)=>{t.d(n,{A:()=>eu});var r=t(37876),i=t(14232),o=t(24790),l=t(19874),s=t(30216),a=t(89542),d=t(67522),c=t(44885),u=t(28888),p=t(98684);function h(){let e=(0,u._)(["\n min-width: 20px;\n "]);return h=function(){return e},e}function f(){let e=(0,u._)(["\n ",";\n\n line-height: 20px;\n "]);return f=function(){return e},e}function m(){let e=(0,u._)(["\n ",";\n\n line-height: 20px;\n "]);return m=function(){return e},e}function g(){let e=(0,u._)(["\n ",";\n\n line-height: 20px;\n "]);return g=function(){return e},e}function x(){let e=(0,u._)(["\n ",";\n\n line-height: 20px;\n "]);return x=function(){return e},e}function y(){let e=(0,u._)(["\n ",";\n "]);return y=function(){return e},e}let b=p.Ay.div.withConfig({componentId:"sc-85b199a6-0"})(["",""],e=>{let{theme:{spacings:{xxs:n},colors:{black:t},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)(["display:flex;gap:",";flex-direction:column;color:",";min-width:32px;",""],n,t,r.mobile(h()))}),w=p.Ay.div.withConfig({componentId:"sc-85b199a6-1"})(["display:flex;"]),A=p.Ay.span.withConfig({componentId:"sc-85b199a6-2"})(["",""],e=>{let{theme:{typography:{brandBody:{large:n,small:t}},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)(["",";",";",";",";"],r.smallDesktop(f(),t.bold),r.mobile(m(),t.bold),r.largeDesktop(g(),n.bold),r.tablet(x(),n.bold))}),_=p.Ay.span.withConfig({componentId:"sc-85b199a6-3"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},colors:{darkGrey:r},mixins:{breakpointMixin:i}}}=e;return(0,p.AH)(["",";color:",";",";"],n.semiBold,r,i.mobile(y(),t.semiBold))}),j=e=>{let{startNumber:n,draw:t,irishReserve:i,nonRunner:o}=e,l=o?c.x:i?"R".concat(n):n;return(0,r.jsx)(b,{"data-testid":"Container__RunnerNumber",children:(0,r.jsxs)(w,{children:[(0,r.jsx)(A,{children:l}),t&&(0,r.jsxs)(_,{children:["(",t,")"]})]})})};j.displayName="RunnerNumber";var C=t(59214);let I=p.Ay.div.withConfig({componentId:"sc-15b116e9-0"})(["display:inline-flex;align-self:flex-end;"]),v=p.Ay.span.withConfig({componentId:"sc-15b116e9-1"})(["",""],C.eU),k=p.Ay.sup.withConfig({componentId:"sc-15b116e9-2"})(["",""],e=>
1{let{theme:{typography:{brandBody:{xxsmall:n}}}}=e;return(0,p.AH)([""," ",""],C.UL,n.regular)}),H=e=>{let{windSurgery:n}=e;return n?(0,r.jsxs)(I,{"data-testid":"Container__WindSurgery",children:[(0,r.jsx)(v,{children:"w"}),(0,r.jsx)(k,{children:n})]}):null};H.displayName="WindSurgery";var R=t(61538);function B(){let e=(0,u._)(["\n margin-bottom: ",";\n "]);return B=function(){return e},e}function D(){let e=(0,u._)(["\n min-width: 20px;\n "]);return D=function(){return e},e}function S(){let e=(0,u._)(["\n ","\n "]);return S=function(){return e},e}function N(){let e=(0,u._)(["\n ","\n "]);return N=function(){return e},e}function T(){let e=(0,u._)(["\n ",";\n\n line-height: 16px;\n "]);return T=function(){return e},e}function E(){let e=(0,u._)(["\n ",";\n\n line-height: 16px;\n "]);return E=function(){return e},e}function P(){let e=(0,u._)(["\n ",";\n "]);return P=function(){return e},e}function U(){let e=(0,u._)(["\n display: inline;\n ",";\n "]);return U=function(){return e},e}function L(){let e=(0,u._)(["\n ",";\n "]);return L=function(){return e},e}function M(){let e=(0,u._)(["\n ",";\n "]);return M=function(){return e},e}function F(){let e=(0,u._)(["\n ",";\n "]);return F=function(){return e},e}function W(){let e=(0,u._)(["\n ",";\n "]);return W=function(){return e},e}function $(){let e=(0,u._)(["\n ",";\n "]);return $=function(){return e},e}function J(){let e=(0,u._)(["\n ",";\n "]);return J=function(){return e},e}function G(){let e=(0,u._)(["\n ",";\n "]);return G=function(){return e},e}function O(){let e=(0,u._)(["\n ",";\n "]);return O=function(){return e},e}let q=p.Ay.div.withConfig({componentId:"sc-ff8ed648-0"})(["display:flex;flex-direction:column;flex:1;min-width:40%;"]),Z=p.Ay.div.withConfig({componentId:"sc-ff8ed648-1"})(["",""],e=>{let{theme:{spacings:{xs:n,xxs:t},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)(["display:flex;flex:1;align-items:flex-end;gap:",";",""],n,r.mobile(B(),t))}),z=p.Ay.div.withConfig({componentId:"sc-ff8ed648-2"})(["",""],e=>{let{theme:{spacings:{xxxs:n,xs:t}}}=e;return(0,p.AH)(["display:flex;align-items:center;gap:",";margin-top:",";"],t,n)}),Y=p.Ay.div.withConfig({componentId:"sc-ff8ed648-3"})(["display:flex;"]),K=p.Ay.div.withConfig({componentId:"sc-ff8ed648-4"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,p.AH)(["color:",";min-width:32px;"," "," ",""],n,r.regular,i.mobile(D()),i.largeDesktop(S(),t.regular))}),Q=p.Ay.sup.withConfig({componentId:"sc-ff8ed648-5"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)([""," ",";",""],C.UL,t.regular,r.largeDesktop(N(),n.regular))}),V=(0,p.Ay)(R.A).withConfig({componentId:"sc-ff8ed648-6"})(["",""],e=>{let{theme:{colors:{deepTeal:n},mixins:{breakpointMixin:t},typography:{brandBody:{medium:r,large:i}}}}=e;return(0,p.AH)([""," line-height:18px;color:",";&:hover{text-decoration:none;}"," ",""],i.bold,n,t.tablet(T(),r.bold),t.mobile(E(),r.bold))}),X=p.Ay.span.withConfig({componentId:"sc-ff8ed648-7"})(["",":hover &{text-decoration:underline;}"],V),ee=p.Ay.sup.withConfig({componentId:"sc-ff8ed648-8"})(["",""],e=>{let{theme:{typography:{brandBody:{xxsmall:n}},spacings:{xxxs:t}}}=e;return(0,p.AH)([""," ",";padding-right:",";"],C.UL,n.regular,t)}),en=p.Ay.span.withConfig({componentId:"sc-ff8ed648-9"})(["",""],e=>{let{theme:{colors:{darkGrey:n},typography:{brandBody:{medium:t,small:r}},mixins:{breakpointMixin:i}}}=e;return(0,p.AH)(["",";color:",";font-variant:small-caps;line-height:18px;"," "," ",""],r.semiBold,n,i.tablet(P(),r.semiBold),i.smallDesktop(U(),r.semiBold),i.largeDesktop(L(),t.semiBold))}),et=p.Ay.sup.withConfig({componentId:"sc-ff8ed648-10"})(["",""],e=>{let{theme:{colors:{black:n}
1,typography:{brandBody:{xxsmall:t}}}}=e;return(0,p.AH)(["align-self:flex-start;color:",";",";"],n,t.semiBold)}),er=p.Ay.span.withConfig({componentId:"sc-ff8ed648-11"})([""," align-self:flex-end;"],C.eU),ei=p.Ay.sup.withConfig({componentId:"sc-ff8ed648-12"})(["",""],e=>{let{theme:{typography:{brandBody:{xxsmall:n}}}}=e;return(0,p.AH)(["",";",";"],C.UL,n.regular)}),eo=p.Ay.div.withConfig({componentId:"sc-ff8ed648-13"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,p.AH)(["display:flex;gap:",";"],n)}),el=p.Ay.span.withConfig({componentId:"sc-ff8ed648-14"})(["",""],e=>{let{theme:{spacings:{xxxs:n,xxs:t},colors:{white:r,brandSecondary:i,darkerGrey:o},typography:{brandBody:{xxsmall:l,xxxxsmall:s}},mixins:{breakpointMixin:a}},$isHighlight:d}=e;return(0,p.AH)(["",";line-height:10px;display:inline-flex;align-items:center;justify-content:center;padding:"," ",";border-radius:2px;background-color:",";color:",";text-transform:uppercase;",""],l.semiBold,n,t,d?i:o,r,a.mobile(M(),s.semiBold))});p.Ay.div.withConfig({componentId:"sc-ff8ed648-15"})(["display:flex;flex-direction:column;align-items:flex-start;"]);let es=p.Ay.span.withConfig({componentId:"sc-ff8ed648-16"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,p.AH)(["",";display:block;color:",";",""],r.regular,n,i.largeDesktop(F(),t.regular))}),ea=p.Ay.span.withConfig({componentId:"sc-ff8ed648-17"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)(["",";"," ",""],t.semiBold,r.mobile(W(),t.regular),r.largeDesktop($(),n.semiBold))}),ed=p.Ay.span.withConfig({componentId:"sc-ff8ed648-18"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,p.AH)(["",";"," ",""],t.semiBold,r.mobile(J(),t.regular),r.largeDesktop(G(),n.semiBold))}),ec=p.Ay.sup.withConfig({componentId:"sc-ff8ed648-19"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,p.AH)(["",";",";color:",";text-transform:lowercase;",""],C.UL,r.regular,n,i.largeDesktop(O(),t.regular))}),eu=(0,i.memo)(e=>{let{horseName:n,countryOrigin:t,weightCarried:i,colorSex:c="",badges:u=[],eliminatorNo:p,startNumber:h,irishReserve:f,nonRunner:m=!1,geldingFirstTime:g=!1,draw:x,daysSinceLastRun:y=null,windSurgery:b=null,age:w,horseHeadGear:A="",horseHeadGearFirstTime:_=!1,horseUrl:C="",hideBadges:I=!1,formattedWeightStones:v,formattedWeightPounds:k,extraWeightLbs:R=null}=e,{isMobile:B}=(0,o.zu)(),D=(0,s.D)(),S=(0,a.l)(),N=i||w,T=c||g||!I&&u.length>0||N;return(0,r.jsxs)(q,{"data-testid":"Container__HorseInfo",children:[(0,r.jsxs)(Z,{children:[(0,r.jsx)(j,{startNumber:h,irishReserve:f,nonRunner:m,draw:x}),(0,r.jsxs)(Y,{children:[p&&(0,r.jsx)(ee,{children:p}),(0,r.jsxs)(V,{dataTestId:"Horse",href:C,rel:"noopener",...S,onClick:B&&D?()=>(0,l.fu)(C):null,children:[(0,r.jsx)(X,{children:n}),t&&(0,r.jsxs)(en,{children:[" ",t]})]})]}),(0,r.jsx)(et,{"data-testid":"Text__DaysSinceLastRun",children:y}),(0,r.jsx)(H,{windSurgery:b}),A&&(0,r.jsxs)(er,{children:[A,_&&(0,r.jsx)(ei,{children:"1"})]})]}),T&&(0,r.jsxs)(z,{children:[(0,r.jsxs)(K,{children:[c,g&&(0,r.jsx)(Q,{children:"1"})]}),(0,r.jsx)(d._v,{shouldShowMobile:!0,children:N&&w&&(0,r.jsxs)(es,{children:[(0,r.jsx)(ea,{children:w}),"yo"]})}),(0,r.jsx)(d._v,{shouldShowMobile:!0,children:N&&i&&(0,r.jsxs)(es,{children:[(0,r.jsx)(ed,{children:v}),"st ",(0,r.jsx)(ed,{children:k}),"lb",R?(0,r.jsxs)(ec,{children:[R,"ex"]}):null]})}),!I&&u.length>0?(0,r.jsx)(eo,{children:u.map(e=>(0,r.jsx)(el,{$isHighlight:e.isHighlight,children:e.code},e.code))}):null]})]})});eu.displayName="HorseInfo"},76095:(e,n,t)=>{t.d(n,{A:()=>t_});var r=t(37876),i=t(14232),o=t(21392),l=t(80945),s=t(31777),a=t(89099),d=t(71463),c=t(5453),u=t(40410),p=t(57686),h=t(20344),f=t(88292),m=t(47458),g=t(68066),x=t(1663),y=t(89542),b=t(67522),w=t(55830),A=t(21545),_=t(28888),j=t(98684);function C(){let e=(0,_._)(["\n ",";\n "]);return C=function(){return e},e}function I(){let e=(0,_._)(["\n ",";\n "]);return I=function(){return e},e}let v=j.Ay.span.withConfig({componentId:"sc-950ac7ea-0"})(["",""],e=>{let{theme:{spacings:{xxs:n}
1,typography:{brandBody:{xsmall:t,xxsmall:r}},colors:{black:i},mixins:{breakpointMixin:o}}}=e;return(0,j.AH)(["",";display:flex;gap:",";white-space:nowrap;color:",";",""],r.regular,n,i,o.largeDesktop(C(),t.regular))}),k=j.Ay.span.withConfig({componentId:"sc-950ac7ea-1"})(["display:inline-flex;align-items:baseline;"]),H=j.Ay.span.withConfig({componentId:"sc-950ac7ea-2"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},spacings:{xxs:r},mixins:{breakpointMixin:i}},$isEmpty:o}=e;return(0,j.AH)(["",";"," ",""],t.semiBold,o&&(0,j.AH)(["padding:0 ",";"],r),i.largeDesktop(I(),n.semiBold))}),{RPR:R,MR:B}=w.rH,{IS_MY_RATINGS_ENABLED:D}=w.yl,S=e=>{let{stats:n}=e,t=(0,A.BJ)(D),o=(0,i.useMemo)(()=>c.t9.filter(e=>{let{key:n}=e;return n!==(t?R:B)}),[t]);return(0,r.jsx)(v,{"data-testid":"Container__RunnerStats",children:o.map(e=>{let{key:t,label:i}=e;return(0,r.jsxs)(k,{children:[(0,r.jsxs)("span",{children:[i,":"]}),(0,r.jsx)(H,{$isEmpty:"-"===n[t],children:n[t]})]},t)})})};S.displayName="Stats";let N=j.Ay.div.withConfig({componentId:"sc-628dc088-0"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;gap:",";min-width:60px;height:32px;"],n)}),T=j.Ay.div.withConfig({componentId:"sc-628dc088-1"})(["display:flex;flex-direction:column;align-items:center;"]),E=j.Ay.span.withConfig({componentId:"sc-628dc088-2"})(["",""],e=>{let{theme:{typography:{brandBody:{xxsmall:n}},colors:{black:t}}}=e;return(0,j.AH)(["",";color:",";min-width:16px;text-align:center;"],n.semiBold,t)}),P=j.Ay.span.withConfig({componentId:"sc-628dc088-3"})(["",""],e=>{let{theme:{typography:{brandBody:{xxsmall:n}},colors:{black:t}}}=e;return(0,j.AH)(["",";color:",";"],n.regular,t)}),{RPR:U,MR:L}=w.rH,{IS_MY_RATINGS_ENABLED:M}=w.yl,F=e=>{let{stats:n}=e,t=(0,A.BJ)(M),o=(0,i.useMemo)(()=>c.t9.filter(e=>{let{key:n}=e;return n!==(t?U:L)}),[t]);return(0,r.jsx)(N,{"data-testid":"Container__RunnerMobileStats",children:o.map(e=>{let{key:t,label:i}=e;return(0,r.jsxs)(T,{children:[(0,r.jsx)(E,{children:n[t]}),(0,r.jsx)(P,{children:i})]},t)})})};F.displayName="MobileStats";var W=t(2006),$=t(61538);function J(){let e=(0,_._)(["\n ",";\n "]);return J=function(){return e},e}function G(){let e=(0,_._)(["\n width: 53px;\n height: 35px;\n "]);return G=function(){return e},e}function O(){let e=(0,_._)(["\n width: 44px;\n height: 29px;\n "]);return O=function(){return e},e}function q(){let e=(0,_._)(["\n width: 40px;\n height: 26px;\n "]);return q=function(){return e},e}function Z(){let e=(0,_._)(["\n ",";\n margin-top: ",";\n width: 56px;\n "]);return Z=function(){return e},e}function z(){let e=(0,_._)(["\n margin-top: ",";\n width: 40px;\n "]);return z=function(){return e},e}function Y(){let e=(0,_._)(["\n ",";\n "]);return Y=function(){return e},e}function K(){let e=(0,_._)(["\n ",";\n "]);return K=function(){return e},e}function Q(){let e=(0,_._)(["\n ",";\n "]);return Q=function(){return e},e}function V(){let e=(0,_._)(["\n ",";\n "]);return V=function(){return e},e}function X(){let e=(0,_._)(["\n ",";\n "]);return X=function(){return e},e}function ee(){let e=(0,_._)(["\n ",";\n "]);return ee=function(){return e},e}function en(){let e=(0,_._)(["\n ",";\n "]);return en=function(){return e},e}function et(){let e=(0,_._)(["\n ",";\n "]);return et=function(){return e},e}let er=j.Ay.div.withConfig({componentId:"sc-6704b9fe-0"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,j.AH)(["",";"," position:relative;flex-shrink:0;"," "," ",""],t.semiBold,r.largeDesktop(J(),n.semiBold),r.largeDesktop(G()),r.tabletSmallDesktop(O()),r.mobile(q()))});j.Ay.img.withConfig({componentId:"sc-6704b9fe-1"})(["width:100%;height:100%;object-fit:contain;"]),j.Ay.div.withConfig({componentId:"sc-6704b9fe-2"})(["",""],e=>{let{theme:{spacings:{s:n,xs:t}
1,typography:{brandBody:{xsmall:r,xxsmall:i}},mixins:{breakpointMixin:o}}}=e;return(0,j.AH)(["",";padding-right:",";display:flex;text-align:center;"," ",""],r.regular,n,o.tabletSmallDesktop(Z(),i.regular,n),o.mobile(z(),t))}),j.Ay.span.withConfig({componentId:"sc-6704b9fe-3"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["color:",";letter-spacing:1px;"," "," "," ",""],n,i.largeDesktop(Y(),t.regular),i.mobile(K(),t.regular),i.smallDesktop(Q(),r.regular),i.tablet(V(),r.regular))}),j.Ay.span.withConfig({componentId:"sc-6704b9fe-4"})(["",""],e=>{let{$isBold:n,theme:{typography:{brandBody:t},mixins:{breakpointMixin:r}}}=e;return(0,j.AH)(["",";"," "," ",""],t.xsmall.regular,r.largeDesktop(X(),t.xsmall.regular),r.mobile(ee(),t.xsmall.regular),n&&(0,j.AH)(["",";"," ",""],t.xsmall.bold,r.largeDesktop(en(),t.xsmall.bold),r.mobile(et(),t.xsmall.bold)))});let ei=(0,j.Ay)($.A).withConfig({componentId:"sc-6704b9fe-5"})(["display:block;width:100%;height:100%;"]),eo=e=>{let{src:n,ownerUrl:t}=e,i=(0,y.l)(),o=(0,r.jsx)(W.A,{silkUrl:n});return(0,r.jsx)(er,{"data-testid":"Container__SilkImage",children:t?(0,r.jsx)(ei,{href:t,...i,dataTestId:"OwnerSilk",children:o}):o})};eo.displayName="SilkImage";var el=t(50686),es=t(80834),ea=t(59214);function ed(){let e=(0,_._)(["\n min-width: 0;\n "]);return ed=function(){return e},e}function ec(){let e=(0,_._)(["\n flex: auto;\n "]);return ec=function(){return e},e}function eu(){let e=(0,_._)(["\n ",";\n "]);return eu=function(){return e},e}function ep(){let e=(0,_._)(["\n ",";\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n "]);return ep=function(){return e},e}function eh(){let e=(0,_._)(["\n ",";\n "]);return eh=function(){return e},e}function ef(){let e=(0,_._)(["\n ",";\n "]);return ef=function(){return e},e}function em(){let e=(0,_._)(["\n ",";\n "]);return em=function(){return e},e}function eg(){let e=(0,_._)(["\n ",";\n "]);return eg=function(){return e},e}function ex(){let e=(0,_._)(["\n ",";\n "]);return ex=function(){return e},e}function ey(){let e=(0,_._)(["\n ",";\n "]);return ey=function(){return e},e}function eb(){let e=(0,_._)(["\n ",";\n "]);return eb=function(){return e},e}let ew=j.Ay.div.withConfig({componentId:"sc-25f6462b-0"})(["",""],e=>{let{theme:{mixins:{breakpointMixin:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;flex:1;"," ",""],n.mobile(ed()),n.smallDesktop(ec()))}),eA=j.Ay.div.withConfig({componentId:"sc-25f6462b-1"})(["",""],e=>{let{theme:{spacings:{m:n}}}=e;return(0,j.AH)(["display:flex;align-items:flex-end;justify-content:space-between;gap:",";"],n)}),e_=j.Ay.span.withConfig({componentId:"sc-25f6462b-2"})(["display:flex;align-items:baseline;min-width:0;overflow:hidden;"]),ej=j.Ay.span.withConfig({componentId:"sc-25f6462b-3"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:t}}}=e;return(0,j.AH)(["",";color:",";"],t.xxsmall.regular,n)}),eC=j.Ay.span.withConfig({componentId:"sc-25f6462b-4"})(["",""],e=>{let{theme:{colors:{darkGrey:n},typography:{brandBody:t}}}=e;return(0,j.AH)(["",";color:",";"],t.xxsmall.regular,n)}),eI=(0,j.Ay)($.A).withConfig({componentId:"sc-25f6462b-5"})(["",""],e=>{let{theme:{colors:{black:n,brandSecondaryActive:t},spacings:{xxs:r},typography:{brandBody:i},mixins:{breakpointMixin:o}}}=e;return(0,j.AH)(["",";padding-left:",";color:",";&:hover{color:",";}"," ",""],i.xsmall.regular,r,n,t,o.tabletSmallDesktop(eu(),i.xxsmall.regular),o.mobile(ep(),i.xsmall.regular))}),ev=j.Ay.span.withConfig({componentId:"sc-25f6462b-6"})(["",":hover &{text-decoration:underline;}"],eI),ek=j.Ay.sup.withConfig({componentId:"sc-25f6462b-7"})([""," font-weight:",";"],ea.UL,es.yc),eH=j.Ay.span.withConfig({componentId:"sc-25f6462b-8"})(["",""],e=>{let{theme:{typography:{brandBody:n}}}=e;return(0,j.AH)(["",";"],n.xxsmall.regular)}),eR=j.Ay.sup.withConfig({componentId:"sc-25f6462b-9"})(["",""],e=>
1{let{theme:{typography:{brandBody:n},mixins:{breakpointMixin:t}}}=e;return(0,j.AH)([""," ",";",""],ea.UL,n.xxsmall.regular,t.mobile(eh(),n.xxsmall.regular))});j.Ay.div.withConfig({componentId:"sc-25f6462b-10"})(["display:flex;flex-direction:column;align-items:flex-start;"]);let eB=j.Ay.span.withConfig({componentId:"sc-25f6462b-11"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["",";display:block;color:",";width:76px;",""],r.regular,n,i.largeDesktop(ef(),t.regular))}),eD=j.Ay.span.withConfig({componentId:"sc-25f6462b-12"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,j.AH)(["",";"," ",""],t.semiBold,r.mobile(em(),t.regular),r.largeDesktop(eg(),n.semiBold))}),eS=j.Ay.span.withConfig({componentId:"sc-25f6462b-13"})(["",""],e=>{let{theme:{typography:{brandBody:{xsmall:n,xxsmall:t}},mixins:{breakpointMixin:r}}}=e;return(0,j.AH)(["",";"," ",""],t.semiBold,r.mobile(ex(),t.regular),r.largeDesktop(ey(),n.semiBold))}),eN=j.Ay.sup.withConfig({componentId:"sc-25f6462b-14"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["",";",";color:",";text-transform:lowercase;",""],ea.UL,r.regular,n,i.largeDesktop(eb(),t.regular))}),{IS_RTF_ENABLED:eT}=w.yl,eE=(0,i.memo)(e=>{let{jockeyName:n,trainerName:t,trainerRtf:i,trainerCountryCode:o,jockeyFirstTime:l,weightAllowanceLbs:s,newTrainerRacesCount:a,jockeyUrl:d,trainerUrl:c,weightCarried:u,age:p,extraWeightLbs:h,formattedWeightStones:f,formattedWeightPounds:m}=e,g=(0,y.l)(),x=(0,A.BJ)(eT)&&i?"".concat(i,"%"):null,w=u||p;return(0,r.jsxs)(ew,{"data-testid":"Container__JockeyTrainerInfo",children:[(0,r.jsx)(eA,{children:(0,r.jsxs)(e_,{children:[(0,r.jsx)(b._v,{shouldShowDesktop:!0,shouldShowTablet:!0,children:w&&p&&(0,r.jsxs)(eB,{children:[(0,r.jsx)(eD,{children:p}),"yo"]})}),(0,r.jsx)(ej,{children:"J: "}),(0,r.jsxs)(eI,{dataTestId:"Jockey",href:d,...g,children:[l&&(0,r.jsx)(ek,{children:"1"}),(0,r.jsx)(ev,{children:n}),s?(0,r.jsxs)(eH,{children:["(",s,")"]}):null]})]})}),(0,r.jsx)(eA,{children:(0,r.jsxs)(e_,{children:[(0,r.jsx)(b._v,{shouldShowDesktop:!0,shouldShowTablet:!0,children:w&&u&&(0,r.jsxs)(eB,{children:[(0,r.jsx)(eS,{children:f}),"st ",(0,r.jsx)(eS,{children:m}),"lb",h?(0,r.jsxs)(eN,{children:[h,"ex"]}):null]})}),(0,r.jsx)(ej,{children:"T: "}),(0,r.jsxs)(eI,{dataTestId:"Trainer",href:c,...g,children:[a&&(0,r.jsx)(ek,{children:a}),(0,r.jsx)(ev,{children:t}),o&&(0,r.jsxs)(eC,{children:[" (",o,")"]}),x&&(0,r.jsxs)(eR,{children:[" ",x]})]})]})})]})});eE.displayName="JockeyTrainerInfo";var eP=t(54587),eU=t.n(eP),eL=t(91423),eM=t(75372),eF=t(27699),eW=t(51069),e$=t(70655);function eJ(){let e=(0,_._)(["\n ",";\n "]);return eJ=function(){return e},e}let eG=j.Ay.div.withConfig({componentId:"sc-35b60528-0"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;align-items:flex-end;gap:",";"],n)}),eO=j.Ay.div.withConfig({componentId:"sc-35b60528-1"})(["",""],e=>{let{theme:{spacings:{xxs:n},colors:{brandPrimary:t},typography:{brandBody:{xsmall:r}}}}=e;return(0,j.AH)(["",";display:flex;align-items:center;gap:",";color:",";"],r.regular,n,t)}),eq=j.Ay.span.withConfig({componentId:"sc-35b60528-2"})(["",""],e=>{let{theme:{spacings:{xxxs:n},colors:{black:t},typography:{brandBody:{xsmall:r,xxsmall:i}},mixins:{breakpointMixin:o}}}=e;return(0,j.AH)(["",";color:",";display:flex;align-items:center;gap:",";",""],i.regular,t,n,o.largeDesktop(eJ(),r.regular))}),{TOTE:eZ}=e$.rj,{IS_SHOW_PRICES_ENABLED:ez,IS_PRICE_HISTORY_ENABLED:eY,IS_DECIMAL_ODDS_ENABLED:eK}=w.yl,eQ=(0,i.memo)(e=>{let{outcomersId:n,raceId:t,meetingId:i,eventId:o,marketId:a,selectionId:d,horseName:c,startPosition:u,courseName:p,diffusionCourseName:h,raceDate:f,raceDateTime:m,localMeetingRaceDateTime:g,raceTime:x,fractionalPrice:y,decimalPrice:b,oddsHistory:w=[],decimalOddsHistory:_=[],isNonRunner:j=!1,isResult:C=!1,deepLink:I,eachWayFraction:v,eachWayPlaces:k,isBog:H,onSelectionAdded:R=null}=e,B=(0,A.BJ)(ez),D=(0,A.BJ)(eY),S=(0,A.BJ)(eK),{shouldHidePriceHistory:N}=(0,l.s)(),T=(0,s.d4)(eF.bW);if(!B)return null;let E=T===eZ,P=S||E,U=P?_:w;return(0,r.jsxs)(eG,{"data-testid":"Container__OddsSection",children:[(0,r.jsx)(eM.A,{outcomersId:n,raceId:t,meetingId:i,eventId:o,marketId:a,selectionId:d,horseName:c,startPosition:u,courseName:p,diffusionCourseName:h,raceDate:f,raceDateTime:m,localMeetingRaceDateTime:g,raceTime:x,fractionalPrice
1:C?null:y,decimalPrice:C?null:b,isOnRunnerCard:!0,isDisabled:j||C,deeplink:I,eachWayFraction:v,eachWayPlaces:k,isBog:H,onSelectionAdded:R}),D&&!N&&!j&&U.length>0&&(0,r.jsx)(eO,{children:U.map((e,n)=>(0,r.jsxs)(eq,{children:[n>0&&(0,r.jsx)(eU(),{src:"/svgs/chevrons/chevron_righ_red-filled.svg",alt:"red_arrow",width:6,height:4}),P?(0,eW.e)(e,E):e]},(0,eL.A)()))})]})});function eV(){let e=(0,_._)(["\n ",";\n "]);return eV=function(){return e},e}eQ.displayName="OddsSection";let eX=j.Ay.span.withConfig({componentId:"sc-d555788c-0"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)([""," line-height:12px;color:",";flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;",""],r.regular,n,i.largeDesktop(eV(),t.regular))}),e0=(0,j.Ay)($.A).withConfig({componentId:"sc-d555788c-1"})(["",""],e=>{let{theme:{colors:{black:n}}}=e;return(0,j.AH)(["color:",";",""],n,ea.yF)}),e1=j.Ay.span.withConfig({componentId:"sc-d555788c-2"})(["",""],e=>{let{theme:{colors:{black:n}}}=e;return(0,j.AH)(["color:",";"],n)}),e4=e=>{let{name:n,country:t,url:i,testId:o,hasImage:l,isInBrackets:s}=e,a=(0,y.l)(),d=s?"(".concat(n," (").concat(t,"))"):"".concat(n," (").concat(t,")");return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(eU(),{src:"/svgs/chevrons/chevron_right_red.svg",alt:"arrow_red",width:8,height:4}),i?(0,r.jsx)(e0,{href:i,...a,dataTestId:o,children:(0,r.jsx)("span",{children:d})}):(0,r.jsx)(e1,{"data-testid":o,children:d})]})},e8=e=>{let{sireName:n,sireCountry:t,sireUrl:i,damName:o,damCountry:l,damUrl:s,damsireName:a,damsireCountry:d,damsireUrl:c}=e;return(0,r.jsx)(eX,{"data-testid":"Container__BreedingInfo",children:[{name:n,country:t,url:i,testId:"Pedigree__Sire",isInBrackets:!1},{name:o,country:l,url:s,testId:"Pedigree__Dam",hasImage:!0,isInBrackets:!1},{name:a,country:d,url:c,testId:"Pedigree__Damsire",hasImage:!0,isInBrackets:!0}].map(e=>{let{name:n,...t}=e;return n&&(0,r.jsx)(e4,{name:n,...t},t.testId)})})};function e2(){let e=(0,_._)(["\n margin-top: ",";\n "]);return e2=function(){return e},e}function e5(){let e=(0,_._)(["\n flex-direction: column;\n align-items: flex-start;\n gap: ",";\n "]);return e5=function(){return e},e}function e6(){let e=(0,_._)(["\n ",";\n "]);return e6=function(){return e},e}function e7(){let e=(0,_._)(["\n ",";\n "]);return e7=function(){return e},e}e8.displayName="BreedingInfo";let e9=j.Ay.div.withConfig({componentId:"sc-12b599a1-0"})(["",""],e=>{let{theme:{spacings:{xxs:n,xs:t,s:r},colors:{midGrey:i},mixins:{breakpointMixin:o}}}=e;return(0,j.AH)(["display:flex;align-items:center;justify-content:space-between;padding-top:",";border-top:1px solid ",";gap:",";overflow:hidden;"," ",""],n,i,t,o.tabletDesktop(e2(),r),o.mobile(e5(),t))}),e3=j.Ay.div.withConfig({componentId:"sc-12b599a1-1"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["",";color:",";",""],r.regular,n,i.largeDesktop(e6(),t.regular))}),ne=(0,j.Ay)($.A).withConfig({componentId:"sc-12b599a1-2"})(["",""],e=>{let{theme:{colors:{black:n},typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["",";color:",";"," ",""],r.regular,n,ea.yF,i.largeDesktop(e7(),t.regular))}),{IS_PEDIGREE_ENABLED:nn,IS_OWNER_ENABLED:nt}=w.yl,nr=e=>{let{sireName:n,sireCountry:t,sireUrl:i,damName:o,damCountry:l,damUrl:s,damsireName:a,damsireCountry:d,damsireUrl:c,ownerName:u,ownerUrl:p,profileLinkProps:h}=e,f=(0,A.BJ)(nn),m=(0,A.BJ)(nt);return f||m?(0,r.jsxs)(e9,{"data-testid":"Row__RunnerRowDetail",children:[f&&(0,r.jsx)(e8,{sireName:n,sireCountry:t,sireUrl:i,damName:o,damCountry:l,damUrl:s,damsireName:a,damsireCountry:d,damsireUrl:c}),m&&(p?(0,r.jsx)(ne,{href:p,...h,dataTestId:"RunnerRowOwner",children:(0,r.jsx)("span",{children:u})}):(0,r.jsx)(e3,{children:u}))]}):null};var ni=t(71730),no=t(16811),nl=t(91553),ns=t(58865);let{QUOTE_TAP:na,MY_NOTES_TAP:nd,SPOTLIGHT_TAP:nc,FORM_TAP:nu,EXCLUDE_TAP:np}=nl.wK,{QUOTE:nh,NOTES:nf,SPOTLIGHT:nm,FORM:ng,EXCLUDE:nx}=c.r2,ny={[nh]:na,[nf]:nd,[nm]:nc,[ng]:nu,[nx]:np},nb=()=>{let{trackEvent:e}=(0,no.f)(),{asPath:n}=(0,a.useRouter)(),{location:t}=(0,g.D$)(n,!1,!0),r=(0,s.d4)(e=>(0,ns.w3)(e)),o=(0,f.P)();return(0,i.useCallback)((n,i)=>{let l=ny[n];l&&e(l,(0,m.NG)(r,i,t,o))},[e,r,t,o])};function nw(){let e=(0,_._)(["\n width: 100%;\n "]);return nw=function(){return e},e}function nA(){let e=(0,_._)(["\n padding: "," ",";\n border-radius: 4px;\n flex: 1 0 0;\n align-self: stretch;\n "]);return nA=function(){return e},e}let n_=j.Ay.div.withConfig({componentId:"sc-f6b2aae-0"})(["",""],e=>{let{theme:{spacings:{xxs:n},mixins:{breakpointMixin:t}}}=e;return(0,j.AH)(["display:flex;align-items:center;gap:",";",""],n,t.mobile(nw()))}),nj=j.Ay.button.withConfig({componentId:"sc-f6b2aae-1"})(["",""],e=>{let{$isActive:n,theme:{spacings:{xxs:t,xs:r},colors:{black:i,white:o,midGrey:l,lightGrey:s}
1,typography:{brandBody:{xxsmall:{semiBold:a}}},mixins:{breakpointMixin:d}}}=e;return(0,j.AH)([""," display:flex;align-items:center;justify-content:center;gap:",";padding:",";border-radius:3px;white-space:nowrap;cursor:pointer;background-color:",";border:1px solid ",";color:",";height:18px;"," img{filter:",";}&:hover{background-color:",";}&:disabled{opacity:0.4;cursor:not-allowed;&:hover{background-color:",";}}"],a,t,r,n?i:o,n?i:l,n?o:i,d.mobile(nA(),r,t),n?"invert(1)":"none",n?i:s,n?i:o)}),nC=j.Ay.span.withConfig({componentId:"sc-f6b2aae-2"})(["",""],e=>{let{theme:{colors:{fastOrange:n}}}=e;return(0,j.AH)(["width:6px;height:6px;border-radius:50%;background-color:",";flex-shrink:0;"],n)}),nI=j.Ay.div.withConfig({componentId:"sc-f6b2aae-3"})(["",""],e=>{let{theme:{colors:{midGrey:n}}}=e;return(0,j.AH)(["width:1px;height:10px;background-color:",";"],n)}),{EXCLUDE:nv}=c.r2,nk=e=>{let{onExclude:n,isExcluded:t,horseName:o}=e,{panels:s,isPanelActive:a,isPanelDisabled:d,handlePanelToggle:u}=(0,l.s)(),{hasExclusiveAccess:p,isInsiderUser:h}=(0,ni.R)(),f=p||h,m=nb();return(0,r.jsx)(n_,{"data-testid":"Container__ActionButtons",children:c.O_.map(e=>{var l,c;let{panel:p,testId:h,withIcon:g,withDot:x,withDividerBefore:y,disableWhenNoData:b,disableOnPremium:w}=e,A=p===nv,_=d(p)||!!(b&&!(null===(l=s[p])||void 0===l?void 0:l.data)&&(!w||f)),j=A?()=>{t||m(p,o),n()}:()=>{a(p)||m(p,o),u(p)};return(0,r.jsxs)(i.Fragment,{children:[y&&(0,r.jsx)(nI,{}),(0,r.jsxs)(nj,{onClick:j,disabled:_,"data-testid":"Button__ActionButton".concat(h),$isActive:A?t:a(p),children:[x&&(null===(c=s[p])||void 0===c?void 0:c.data)&&(0,r.jsx)(nC,{"data-testid":"Dot__ActionButton"}),(0,r.jsx)("span",{children:p}),g&&(0,r.jsx)(eU(),{src:"/svgs/plus-icon-bolded.svg",alt:"plus_icon",width:10,height:10})]})]},p)})})};function nH(){let e=(0,_._)(["\n margin-bottom: ",";\n "]);return nH=function(){return e},e}function nR(){let e=(0,_._)(["\n width: 53px;\n "]);return nR=function(){return e},e}function nB(){let e=(0,_._)(["\n width: 44px;\n "]);return nB=function(){return e},e}function nD(){let e=(0,_._)(["\n width: 40px;\n "]);return nD=function(){return e},e}function nS(){let e=(0,_._)(["\n ",";\n "]);return nS=function(){return e},e}function nN(){let e=(0,_._)(["\n ",";\n text-align: right;\n display: flex;\n "]);return nN=function(){return e},e}function nT(){let e=(0,_._)(["\n ",";\n "]);return nT=function(){return e},e}function nE(){let e=(0,_._)(["\n ",";\n "]);return nE=function(){return e},e}function nP(){let e=(0,_._)(["\n ",";\n "]);return nP=function(){return e},e}function nU(){let e=(0,_._)(["\n ",";\n "]);return nU=function(){return e},e}function nL(){let e=(0,_._)(["\n ",";\n "]);return nL=function(){return e},e}function nM(){let e=(0,_._)(["\n ",";\n "]);return nM=function(){return e},e}function nF(){let e=(0,_._)(["\n width: 60px;\n "]);return nF=function(){return e},e}function nW(){let e=(0,_._)(["\n ","\n "]);return nW=function(){return e},e}nk.displayName="ActionButtons";let n$=j.Ay.div.withConfig({componentId:"sc-41d4d85f-0"})(["",""],e=>{let{$isNonRunner:n,$isPanelOpen:t,$isLast:r,theme:{spacings:{xs:i,xxs:o},colors:{midGrey:l},mixins:{breakpointMixin:s}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;margin-bottom:",";border:1px solid ",";border-radius:6px;overflow:hidden;"," "," ",""],r?0:o,l,t&&(0,j.AH)(["border-radius:6px;"]),n&&(0,j.AH)(["opacity:0.5;"]),r&&s.mobile(nH(),i))}),nJ=j.Ay.div.withConfig({componentId:"sc-41d4d85f-1"})(["",""],e=>{let{theme:{spacings:{xs:n},colors:{white:t,superLightGrey:r}}}=e;return(0,j.AH)(["padding:",";background:linear-gradient(180deg,"," 57.87%,"," 83.15%);"],n,t,r)}),nG=j.Ay.div.withConfig({componentId:"sc-41d4d85f-2"})(["",""],e=>{let{theme:{spacings:{s:n}}}=e;return(0,j.AH)(["display:flex;align-items:flex-start;gap:",";"],n)}),nO=j.Ay.div.withConfig({componentId:"sc-41d4d85f-3"})(["",""],e=>{let{theme:{spacings:{s:n}}}=e;return(0,j.AH)(["display:flex;align-items:center;gap:",";"],n)}),nq=j.Ay.div.withConfig({componentId:"sc-41d4d85f-4"})(["",""],e=>{let{theme:{mixins:{breakpointMixin:n}}}=e;return(0,j.AH)(["text-align:right;"," "," ",""],n.largeDesktop(nR()),n.tabletSmallDesktop(nB()),n.mobile(nD()))}),nZ=j.Ay.span.withConfig({componentId:"sc-41d4d85f-5"})(["",""],e=>{let{theme:{colors:{black:n}
1,typography:{brandBody:{xsmall:t,xxsmall:r}},mixins:{breakpointMixin:i}}}=e;return(0,j.AH)(["color:",";letter-spacing:1px;"," "," "," ",""],n,i.largeDesktop(nS(),t.regular),i.mobile(nN(),t.regular),i.smallDesktop(nT(),r.regular),i.tablet(nE(),r.regular))}),nz=j.Ay.span.withConfig({componentId:"sc-41d4d85f-6"})(["",""],e=>{let{$isBold:n,theme:{typography:{brandBody:t},mixins:{breakpointMixin:r}}}=e;return(0,j.AH)(["",";"," "," ",""],t.xxsmall.regular,r.mobile(nP(),t.xsmall.regular),r.largeDesktop(nU(),t.xsmall.regular),n&&(0,j.AH)(["",";"," ",""],t.xxsmall.bold,r.mobile(nL(),t.xsmall.bold),r.largeDesktop(nM(),t.xsmall.bold)))}),nY=j.Ay.div.withConfig({componentId:"sc-41d4d85f-7"})(["",""],e=>{let{theme:{spacings:{xs:n,l:t}}}=e;return(0,j.AH)(["display:flex;align-items:center;gap:",";margin-left:calc("," + ",");"],n,t,n)}),nK=j.Ay.div.withConfig({componentId:"sc-41d4d85f-8"})(["display:flex;flex-direction:column;align-items:flex-end;flex:1;"]),nQ=j.Ay.div.withConfig({componentId:"sc-41d4d85f-9"})(["",""],e=>{let{$isNonRunner:n,$isLast:t,theme:{spacings:{xs:r,s:i,xxs:o},colors:{midGrey:l,superLightGrey:s}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;margin-bottom:",";border:1px solid ",";padding:",";background-color:",";border-radius:6px;overflow:hidden;",""],t?i:o,l,r,s,n&&(0,j.AH)(["opacity:0.5;"]))}),nV=j.Ay.div.withConfig({componentId:"sc-41d4d85f-10"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;align-items:flex-start;gap:",";z-index:1;"],n)}),nX=j.Ay.div.withConfig({componentId:"sc-41d4d85f-11"})(["",""],e=>{let{theme:{spacings:{xxxs:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;align-items:flex-start;gap:",";width:20%;flex-shrink:0;"],n)}),n0=j.Ay.div.withConfig({componentId:"sc-41d4d85f-12"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;flex-wrap:wrap;justify-content:flex-end;gap:",";"],n)}),n1=j.Ay.div.withConfig({componentId:"sc-41d4d85f-13"})(["",""],e=>{let{theme:{mixins:{breakpointMixin:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;align-items:flex-end;",""],n.mobile(nF()))}),n4=j.Ay.span.withConfig({componentId:"sc-41d4d85f-14"})(["",""],e=>{let{theme:{spacings:{xxs:n},colors:{white:t,brandSecondary:r,darkerGrey:i},typography:{brandBody:{xxsmall:o,xxxxsmall:l}},mixins:{breakpointMixin:s}},$isHighlight:a}=e;return(0,j.AH)(["display:inline-flex;align-items:center;justify-content:center;padding:1px ",";border-radius:2px;"," ",";height:11px;background-color:",";color:",";text-transform:uppercase;"],n,s.mobile(nW(),o.semiBold),l.semiBold,a?r:i,t)}),n8=j.Ay.div.withConfig({componentId:"sc-41d4d85f-15"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;flex:1;min-width:0;gap:",";"],n)}),n2=j.Ay.div.withConfig({componentId:"sc-41d4d85f-16"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;align-items:flex-start;justify-content:space-between;gap:",";"],n)}),n5=j.Ay.div.withConfig({componentId:"sc-41d4d85f-17"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;gap:",";flex:1;min-width:0;"],n)}),n6=j.Ay.div.withConfig({componentId:"sc-41d4d85f-18"})(["",""],e=>{let{theme:{spacings:{m:n,xxs:t}}}=e;return(0,j.AH)(["display:flex;flex-direction:column;align-items:flex-end;gap:",";margin-top:-",";flex-shrink:0;"],t,n)}),n7=j.Ay.div.withConfig({componentId:"sc-41d4d85f-19"})(["",""],e=>{let{theme:{spacings:{xs:n,m:t}}}=e;return(0,j.AH)(["display:flex;align-items:end;justify-content:space-between;gap:",";margin-top:-",";"],n,t)}),n9=j.Ay.button.withConfig({componentId:"sc-41d4d85f-20"})(["",""],e=>{let{theme:{spacings:{xxs:n},colors:{black:t},typography:{brandBody:{xxsmall:{regular:r}}}}}=e;return(0,j.AH)(["display:flex;align-items:center;gap:",";background:transparent;border:none;cursor:pointer;padding:0;color:",";"," &:hover{opacity:0.8;}"],n,t,r)}),n3=(0,j.Ay)(eU()).withConfig({componentId:"sc-41d4d85f-21"})(["",""],e=>{let{$isExpanded:n}=e;return(0,j.AH)(["width:8px;height:8px;transition:transform 0.2s ease;transform:",";"],n?"rotate(180deg)":"rotate(0deg)")}),te=j.Ay.div.withConfig({componentId:"sc-41d4d85f-22"})(["",""],e=>{let{$isVisible:n,theme:{spacings:{xs:t,xxs:r}}}=e;return(0,j.AH)(["display:",";flex-direction:column;gap:",";margin-top:",";"],n?"flex":"none",t,r)}),{HIDE_CONTROLS:tn,SHOW_CONTROLS:tt}=c.Ee,tr=(0,i.memo)(e=>{let{runner:n,onExclude:t,isExcluded:c,isLast:w}=e,[A,_]=(0,i.useState)(!1),{activeEntries:j,shouldHideActionButtons:C}=(0,l.s)(),I=(0,y.l)(),v=!!j.length,k=(0,o.l)(),{horseId:H,silkImage:R,startNumber:B,draw:D,horseName:N,countryOrigin:T,weightCarried:E,extraWeightLbs:P,age:U,officialRatingToday:L,rpTopspeed:M,rpPostmark:W,ownerName:$,ownerUrl:J,ownerId:G,jockeyName:O,jockeyId:q,jockeyFirstTime:Z,jockeyUrl:z,weightAllowanceLbs:Y,trainerName:K,trainerId:Q,trainerUrl:V,newTrainerRacesCount:X,trainerRtf:ee,trainerCountryCode:en,nonRunner:et,irishReserve:er,formattedWeightStones:ei,formattedWeightPounds:es,formFiguresData:ea,badges:ed,colorSex:ec,geldingFirstTime:eu,sireName:ep,sireCountry:eh,sireUrl:ef,damName:em,damCountry:eg,damUrl:ex,damsireName:ey,damsireCountry:eb,damsireUrl:ew,eliminatorNo:eA,daysSinceLastRun:e_,windSurgery:ej,horseHeadGear:eC,horseUrl:eI,horseHeadGearFirstTime:ev}=n,{raceId:ek,courseId:eH,courseName:eR,countryCode:eB,diffusionMeetingName:eD,ukDateFormat:eS,startTime:eN,raceTime:eT,localMeetingRaceDateTime:eP,isArab:eU,isResult:eL}
1=k,{fractional:eM,decimal:eF,marketId:eW,eventId:e$,outcomeId:eJ,oddsHistory:eG,decimalOddsHistory:eO,deepLink:eq,eachWayInfo:eZ,isBog:ez}=(0,d.c)({horseName:N,diffusionCourseName:eD,raceHours:eN,raceDate:eS,saddleClothNumber:B,isResult:eL}),eY=(0,i.useCallback)(()=>t(H),[t,H]),eK=C?null:(0,r.jsx)(nk,{onExclude:eY,isExcluded:c,horseName:N}),eV=null!==eM,eX=eM||"-",e0=(null==eF?void 0:eF.toString())||"0",e1=(0,i.useMemo)(()=>(0,p.fl)(H),[H]),e4=(0,s.d4)(e1),e8=null==e4?void 0:e4.data,e2=(0,u.s0)(e8)||"-",e5=(0,i.useMemo)(()=>({or:L,ts:eU?"-":M,rpr:eU?"-":W,mr:e2}),[L,eU,M,W,e2]),e6=(0,m.Us)((0,f.P)()),e7=(0,x.C)(),{asPath:e9}=(0,a.useRouter)(),{location:e3}=(0,g.D$)(e9,!1,!0),ne=(0,h.J)(()=>{e7({deepLink:eq,location:e3,horseId:H,horseName:N,jockeyName:null!=O?O:null,jockeyId:null!=q?q:null,trainerName:null!=K?K:null,trainerId:null!=Q?Q:null,ownerName:null!=$?$:null,ownerId:null!=G?G:null,oddsDecimal:eF?parseFloat(eF):null,raceId:ek,raceDateTime:eT,localRaceDateTime:eP,racecourseId:eH,racecourse:eR,racecourseCountry:null!=eB?eB:null,isBog:ez,oddsSubsection:e6})}),nn=T!==eB?T:null,nt=en&&en!==eB?en:null,ni=(0,i.useMemo)(()=>({outcomersId:"".concat(ek,"-").concat(H),raceId:ek,meetingId:String(eH),eventId:e$||"",marketId:eW,selectionId:eJ,horseName:N,startPosition:String(B),courseName:eR,diffusionCourseName:eD,raceDate:eS,raceDateTime:eT,localMeetingRaceDateTime:eP,raceTime:eN,fractionalPrice:eX,decimalPrice:e0,oddsHistory:eG,decimalOddsHistory:eO,isNonRunner:et,isResult:eL,deepLink:eq,isBog:ez,onSelectionAdded:ne,...eZ.eachWayPlaces&&{eachWayFraction:eZ.eachWayFraction,eachWayPlaces:eZ.eachWayPlaces}}),[ek,H,eH,e$,eW,eJ,N,B,eR,eD,eS,eT,eP,eN,eX,e0,eG,eO,et,eL,eq,ez,ne,eZ.eachWayPlaces,eZ.eachWayFraction]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b._v,{shouldShowDesktop:!0,shouldShowTablet:!0,children:(0,r.jsxs)(n$,{"data-testid":"Container__RunnerRowDesktop",$isNonRunner:et,$isPanelOpen:v,$isLast:w,children:[(0,r.jsxs)(nJ,{children:[(0,r.jsxs)(nG,{"data-testid":"Row__RunnerRowMain",children:[(0,r.jsx)(eo,{src:R,ownerUrl:J,"data-testid":"Image__RunnerSilk"}),(0,r.jsx)(el.A,{horseName:N,countryOrigin:nn,weightCarried:E,colorSex:ec,badges:ed,startNumber:B,irishReserve:er,nonRunner:et,draw:D,geldingFirstTime:eu,eliminatorNo:eA,daysSinceLastRun:e_,windSurgery:ej,horseHeadGear:eC,horseHeadGearFirstTime:ev,horseUrl:eI,age:U}),(0,r.jsx)(eE,{jockeyName:O,trainerName:K,trainerRtf:ee,trainerCountryCode:nt,jockeyFirstTime:Z,weightAllowanceLbs:Y,newTrainerRacesCount:X,jockeyUrl:z,trainerUrl:V,weightCarried:E,age:U,extraWeightLbs:P,formattedWeightStones:ei,formattedWeightPounds:es}),eV&&(0,r.jsx)(eQ,{...ni})]}),(0,r.jsxs)(nO,{"data-testid":"Row__RunnerRowSecondary",children:[(0,r.jsx)(b._v,{shouldShowLargeDesktop:!0,shouldShowDesktop:!0,shouldShowTablet:!0,children:(0,r.jsx)(nq,{"data-testid":"Container__RunnerRowFormFigures",children:(0,r.jsx)(nZ,{children:ea.map(e=>(0,r.jsx)(nz,{$isBold:e.isBold,children:e.figure},e.position))})})}),(0,r.jsx)(nY,{children:(0,r.jsx)(S,{stats:e5})}),!C&&(0,r.jsx)(nK,{"data-testid":"Container__RunnerRowActionsDesktop",children:eK})]}),(0,r.jsx)(nr,{sireName:ep,sireCountry:eh,sireUrl:ef,damName:em,damCountry:eg,damUrl:ex,damsireName:ey,damsireCountry:eb,damsireUrl:ew,ownerName:$,ownerUrl:J,profileLinkProps:I})]}),j.map(e=>{let{Component:n,propName:t,data:i,panel:o}=e;return(0,r.jsx)(n,{[t]:i},o)})]})}),(0,r.jsx)(b._v,{shouldShowMobile:!0,children:(0,r.jsxs)(nQ,{"data-testid":"Container__RunnerRowMobile",$isNonRunner:et,$isLast:w,children:[(0,r.jsxs)(nV,{"data-testid":"Row__RunnerRowMobileMain",children:[(0,r.jsxs)(nX,{children:[(0,r.jsx)(eo,{src:R,ownerUrl:J,"data-testid":"Image__RunnerSilk"}),(0,r.jsxs)(n1,{children:[(0,r.jsx)(nZ,{children:ea.map(e=>(0,r.jsx)(nz,{$isBold:e.isBold,children:e.figure},e.position))}),(0,r.jsx)(n0,{children:ed.map(e=>(0,r.jsx)(n4,{$isHighlight:e.isHighlight,children:e.code},e.code))})]})]}),(0,r.jsxs)(n8,{children:[(0,r.jsx)(el.A,{horseName:N,countryOrigin:nn,weightCarried:E,colorSex:ec,badges:ed,startNumber:B,irishReserve:er,nonRunner:et,draw:D,geldingFirstTime:eu,eliminatorNo:eA,daysSinceLastRun:e_,windSurgery:ej,horseHeadGear:eC,horseHeadGearFirstTime:ev,age:U,hideBadges:!0,horseUrl:eI,extraWeightLbs:P,formattedWeightStones:ei,formattedWeightPounds:es}),(0,r.jsxs)(n2,{children:[(0,r.jsx)(n5,{children:(0,r.jsx)(eE,{jockeyName:O,trainerName:K,trainerRtf:ee,trainerCountryCode:nt,jockeyFirstTime:Z,weightAllowanceLbs:Y,newTrainerRacesCount:X,jockeyUrl:z,trainerUrl:V,weightCarried:E,age:U,extraWeightLbs:P,formattedWeightStones:ei,formattedWeightPounds:es})}),eV&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(n6,{children:(0,r.jsx)(eQ,{...ni})})})]})]})]}),(0,r.jsxs)(n7,{"data-testid":"Row__RunnerRowMobileBottom",children:[(0,r.jsx)(F,{stats:e5}),!C&&(0,r.jsxs)(n9,{onClick:()=>{_(e=>!e)},"data-testid":"Button__RunnerRowMobileControls",children:[(0,r.jsx)("span",{children:A?tn:tt}
1),(0,r.jsx)(n3,{src:"/svgs/chevrons/chevron_bottom_black.svg",width:8,height:8,alt:"chevron_down",$isExpanded:A})]})]}),!C&&(0,r.jsx)(te,{$isVisible:A,"data-testid":"Container__RunnerRowActionsMobile",children:eK}),j.map(e=>{let{Component:n,propName:t,data:i,panel:o}=e;return(0,r.jsx)(n,{[t]:i},o)}),(0,r.jsx)(nr,{sireName:ep,sireCountry:eh,sireUrl:ef,damName:em,damCountry:eg,damUrl:ex,damsireName:ey,damsireCountry:eb,damsireUrl:ew,ownerName:$,ownerUrl:J,profileLinkProps:I})]})})]})});tr.displayName="RunnerRow";var ti=t(41507);function to(){let e=(0,_._)(["\n justify-content: flex-start;\n gap: ",";\n "]);return to=function(){return e},e}function tl(){let e=(0,_._)(["\n display: flex;\n align-items: center;\n justify-content: ",";\n flex: ",";\n width: ",";\n margin-left: ",";\n "]);return tl=function(){return e},e}function ts(){let e=(0,_._)(["\n padding: 0 ",";\n "]);return ts=function(){return e},e}let ta=j.Ay.div.withConfig({componentId:"sc-afef6502-0"})(["",""],e=>{let{theme:{spacings:{xxs:n,xs:t,s:r,m:i},colors:{filterGrey:o},mixins:{breakpointMixin:l}}}=e;return(0,j.AH)(["display:flex;align-items:center;justify-content:space-between;padding:"," ",";background-color:",";height:40px;margin-bottom:",";",""],r,i,o,n,l.largeDesktop(to(),t))}),td=j.Ay.div.withConfig({componentId:"sc-afef6502-1"})(["",""],e=>{let{$desktopWidth:n,$desktopHasLeftMargin:t,$desktopAlignRight:r,theme:{spacings:{xs:i,m:o},mixins:{breakpointMixin:l}}}=e;return(0,j.AH)(["display:contents;",""],l.largeDesktop(tl(),r?"flex-end":"flex-start",r?"1 0 0":"none",r?"auto":n,t?"calc(".concat(o," + ").concat(i,")"):"0"))}),tc=j.Ay.button.withConfig({componentId:"sc-afef6502-2"})(["",""],e=>{let{theme:{spacings:{xxs:n,xs:t},typography:{brandBody:{xsmall:r}},colors:{black:i,grey:o},mixins:{breakpointMixin:l}},$isActive:s,$isDisabled:a}=e;return(0,j.AH)(["",";display:flex;align-items:center;gap:",";background:none;border:none;padding:0;cursor:",";color:",";text-transform:uppercase;white-space:nowrap;"," ",""],r.semiBold,n,a?"default":"pointer",s&&!a?i:o,!a&&(0,j.AH)(["&:hover{color:",";}"],i),l.largeDesktop(ts(),t))}),tu=j.Ay.span.withConfig({componentId:"sc-afef6502-3"})(["display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;flex-shrink:0;"]),tp=(0,j.Ay)(eU()).withConfig({componentId:"sc-afef6502-4"})(["",""],e=>{let{$isDescending:n}=e;return(0,j.AH)(["transition:transform 0.2s ease;transform:",";"],n?"rotate(0deg)":"rotate(180deg)")}),{DESC:th}=ti.Pg,{IS_MY_RATINGS_ENABLED:tf}=w.yl,{RPR:tm,MR:tg}=w.rH,tx=e=>{let{columns:n,sortColumn:t,isDescending:i,isMyRatingsEnabled:o,disabledColumns:l,onSort:s}=e;return n.map(e=>{let{key:n,label:a}=e;if(n===tm&&o||n===tg&&!o)return null;let d=t===n,c=!!(null==l?void 0:l.has(n));return(0,r.jsxs)(tc,{$isActive:d,$isDisabled:c,onClick:c?void 0:()=>s(n),children:[a,(0,r.jsx)(tu,{children:d&&!c&&(0,r.jsx)(tp,{src:"/svgs/runner_sort.svg",alt:"runner_sort",width:12,height:12,$isDescending:i})})]},n)})},ty=e=>{let{disabledColumns:n,sortColumn:t,sortDirection:o,onSort:l}=e,s=(0,A.BJ)(tf),a=(0,i.useCallback)(e=>{null==l||l(e)},[l]),d=o===th;return(0,r.jsx)(ta,{"data-testid":"Container__RunnersTableHeader",children:c.C5.map(e=>{let{id:i,columns:o,desktopWidth:l,desktopHasLeftMargin:c,desktopAlignRight:u}=e;return(0,r.jsx)(td,{$desktopWidth:l,$desktopHasLeftMargin:c,$desktopAlignRight:u,children:tx({columns:o,sortColumn:t,isDescending:d,isMyRatingsEnabled:s,disabledColumns:n,onSort:a})},i)})})};function tb(){let e=(0,_._)(["\n padding: 0 ","\n "]);return tb=function(){return e},e}ty.displayName="TableHeader";let tw=j.Ay.div.withConfig({componentId:"sc-71232eff-0"})(["",""],e=>{let{theme:{spacings:{xs:n},mixins:{breakpointMixin:t}}}=e;return(0,j.AH)(["margin-top:0;",""],t.mobile(tb(),n))}),tA=j.Ay.div.withConfig({componentId:"sc-71232eff-1"})(["",""],e=>{let{theme:{spacings:{xxs:n}}}=e;return(0,j.AH)(["padding:"," 0;padding-bottom:0;"],n)}),t_=(0,i.memo)(e=>{let{visibleRunners:n,nonRunners:t,lastRunnerHorseId:i,sortColumn:s,sortDirection:a,disabledColumns:d,onSort:c,spotlightsEnabled:u,isExtended:p,onSetExtended:h,isFormOpen:f,isRaceFormError:m,shouldHidePriceHistory:g,shouldHideActionButtons:x,onExclude:y,isExcluded:w}=e,A=(0,o.l)();return(0,r.jsx)(tw,{"data-testid":"Container__RunnersTable",children:(0,r.jsxs)(tA,{children:[n.length>0&&(0,r.jsx)(b._v,{shouldShowTablet:!0,shouldShowDesktop:!0,shouldShowSmallDesktop:!0,shouldShowLargeDesktop:!0,children:(0,r.jsx)(ty,{disabledColumns:d,sortColumn:s,sortDirection:a,onSort:c})}),n.map(e=>(0,r.jsx)(l.a,{horseId:e.horseId,spotlight:e.nonRunner?null:e.spotlight,diomed:e.nonRunner?null:e.diomed,spotlightsEnabled:u,isExtended:p,onSetExtended:h,isNonRunner:e.nonRunner,isFormOpen:f,isRaceFormError:m,shouldHidePriceHistory:g,shouldHideActionButtons:x,children:(0,r.jsx)(tr,{runner:e,onExclude:y,isExcluded:!1,isLast:e.horseId===i})},"".concat(A.raceId,"-").concat(e.horseId))),t.map(e=>(0,r.jsx)(l.a,{horseId:e.horseId,spotlight:e.spotlight,diomed:e.diomed,spotlightsEnabled:u,isExtended:p,onSetExtended:h,isNonRunner:e.nonRunner,isFormOpen:f,isRaceFormError:m,shouldHidePriceHistory:g,shouldHideActionButtons:x,children:(0,r.jsx)(tr,{runner:e,onExclude:y,isExcluded:w(e.horseId),isLast:e.horseId===i})},"".concat(A.raceId,"-").concat(e.horseId)))]})})});t_.displayName="RunnersTable"},80945:(e,n,t)=>{t.d(n,{a:()=>S,s:()=>N});var r=t(37876),i=t(14232),o=t(18847),l=t.n(o),s=t(31777),a=t(58865),d=t(57686),c=t(38738),u=t(8606),p=t(21392),h=t(21545),f=t(71730),m=t(5453),g=t(55830);let{QUOTE:x,FORM:y,SPOTLIGHT:b,NOTES:w,EXCLUDE:A}=m.r2,{IS_QUOTES_ENABLED:_,IS_MY_NOTES_ENABLED:j,IS_MY_RATINGS_ENABLED:C}=g.yl,I=l()(()=>t.e(5041).then(t.bind(t,25041)),{loadableGenerated:{webpack:()=>[25041]}}),v=l()(()=>t.e(3836).then(t.bind(t,81455)),{loadableGenerated:{webpack:()=>[81455]}}),k=l()(()=>t.e(3458).then(t.bind(t,3458)),{loadableGenerated:{webpack:()=>[3458]}}),H=l()(()=>t.e(7175).then(t.bind(t,97175)),{loadableGenerated:{webpack:()=>[97175]}}),R=e=>n=>{if(n.has(e))return n;let t=new Set(n);return t.add(e),t},B=e=>n=>{if(!n.has(e))return n;let t=new Set(n);return t.delete(e),t},D=(0,i.createContext)(null),S=(0,i.memo)(e=>{var n,t;let{horseId:o,spotlight:l,diomed:g,spotlightsEnabled:S,isExtended:N,onSetExtended:T,isNonRunner:E=!1,isFormOpen:P,isRaceFormError:U,shouldHidePriceHistory:L=!1,shouldHideActionButtons:M,children:F}=e,[W,$]=(0,i.useState)(new Set),J=(0,s.wA)(),G=(0,s.d4)((0,a.yD)(o)),O=(0,s.d4)((0,a.$y)(o)),q=(0,s.d4)((0,a.lN)(o)),Z=(0,s.d4)(a.nZ),z=(0,s.d4)(a.J5),Y=(0,s.d4)((0,d.fl)(o)),K=null!==(t=null==Y?void 0:Y.data)&&void 0!==t?t:null,Q=(0,s.d4)(a.Jw),V=(0,s.d4)(a.Wm),X=(0,s.d4)(d.D0),{raceId:ee}=(0,p.l)(),en=(0,h.BJ)(_),et=(0,h.BJ)(j),er=(0,h.BJ)(C),{isLogged:ei,hasExclusiveAccess:eo,isInsiderUser:el}=(0,f.R)(),es=eo||el,ea=(0,i.useMemo)(()=>en&&!M,[en,M]),ed=(0,i.useMemo)(()=>et&&!M,[et,M]);(0,i.useEffect)(()=>{es&&!Q&&!V&&ee&&J((0,c.getRunnerQuotes)({raceId:ee}))},[J,es,Q,V,ee]);let ec=W.has(y),eu=!!(null==X?void 0:null===(n=X.fetchedHorseIds)||void 0===n?void 0:n[o]);(0,i.useEffect)(()=>{ec&&ee&&!z&&!Z&&J((0,c.getRunnerForm)({raceId:ee}))},[J,ec,ee,z,Z]),(0,i.useEffect)(()=>
1{if(!ec||!er||!ei||!(null==O?void 0:O.length)||eu)return;let e=O.map(e=>e.raceInstanceUid).filter(e=>null!==e);0!==e.length&&J((0,u.getFormRatings)({horseId:o,raceInstanceUids:e}))},[J,ec,er,ei,O,o,eu]),(0,i.useEffect)(()=>{ea&&G?$(R(x)):ea||$(B(x))},[ea,G]),(0,i.useEffect)(()=>{$(ed?R(w):B(w))},[ed]);let ep=(0,i.useCallback)(e=>{e&&$(n=>{let t=new Set(n);return t[t.has(e)?"delete":"add"](e),t})},[]);(0,i.useEffect)(()=>{S||$(B(b))},[S]),(0,i.useEffect)(()=>{S&&(g||l)&&$(R(b))},[S]);let eh=(0,i.useCallback)(()=>{ep(b)},[ep]),ef=(0,i.useMemo)(()=>({spotlight:l,diomed:g,isExtended:N,onSetExtended:T,onClose:eh}),[l,g,N,T,eh]),em=(0,i.useCallback)(e=>W.has(e),[W]),eg=(0,i.useCallback)(e=>!!e&&(e===y?U:e===A&&E),[U,E]);(0,i.useEffect)(()=>{P&&!U?$(R(y)):P||$(B(y))},[P]),(0,i.useEffect)(()=>{U&&$(B(y))},[U]);let ex=(0,i.useMemo)(()=>({[w]:{Component:H,propName:"noteData",data:K},[x]:{Component:I,propName:"quotes",data:G},[b]:{Component:v,propName:"spotlightData",data:g||l?ef:null},[y]:{panel:y,Component:k,propName:"form",data:{formEntries:O,isLoading:Z||!z,horseId:o,raceId:ee,wasCut:q},isDisabled:U}}),[K,G,ef,g,l,O,q,Z,z,o,ee,U]),ey=(0,i.useMemo)(()=>[...m.PJ].filter(e=>W.has(e)&&!!ex[e]).map(e=>({...ex[e],panel:e})),[W,ex]),eb=(0,i.useMemo)(()=>({activePanels:W,isPanelActive:em,isPanelDisabled:eg,handlePanelToggle:ep,panels:ex,activeEntries:ey,spotlightsEnabled:S,spotlightData:ef,quotes:G,horseId:o,shouldHidePriceHistory:L,shouldHideActionButtons:M}),[W,em,eg,ep,ex,ey,S,ef,G,o,L,M]);return(0,r.jsx)(D.Provider,{value:eb,children:F})});S.displayName="RunnerPanelProvider";let N=()=>{let e=(0,i.useContext)(D);if(!e)throw Error("useRunnerPanel must be used within RunnerPanelProvider");return e}},92550:(e,n,t)=>{t.d(n,{w:()=>C});var r=t(37876),i=t(14232),o=t(54587),l=t.n(o),s=t(28888),a=t(98684);function d(){let e=(0,s._)(["\n ",";\n "]);return d=function(){return e},e}function c(){let e=(0,s._)(["\n flex: 1 0 auto;\n "]);return c=function(){return e},e}function u(){let e=(0,s._)(["\n margin-top: -3px;\n width: auto;\n "]);return u=function(){return e},e}function p(){let e=(0,s._)(["\n margin-top: -1px;\n "]);return p=function(){return e},e}function h(){let e=(0,s._)(["\n margin-top: -1px;\n "]);return h=function(){return e},e}function f(){let e=(0,s._)(["\n width: 32%;\n "]);return f=function(){return e},e}function m(){let e=(0,s._)(["\n width: 54%;\n "]);return m=function(){return e},e}let g=a.Ay.div.withConfig({componentId:"sc-da4f0f94-0"})(["",""],e=>{let{theme:{colors:{superLightGrey:n,white:t},typography:{brandBody:r},mixins:{breakpointMixin:i}},isRunner:o}=e;return(0,a.AH)(["background:",";display:block;position:absolute;top:-6px;text-align:left;width:auto;align-items:baseline;align-content:baseline;color:",";height:18px;",";"," span{display:block;justify-content:center;align-content:baseline;height:100%;","}"," "," ",""],n,t,r.small.bold,o&&(0,a.AH)(["display:flex;position:unset;",";",""],r.xsmall.regular,i.mobile(d(),r.xxsmall.semiBold)),i.mobile(c()),i.mobile(u()),i.tablet(p()),i.desktop(h()))}),x=a.Ay.span.withConfig({componentId:"sc-da4f0f94-1"})(["",""],e=>{let{theme:{colors:{brandPrimary:n},mixins:{breakpointMixin:t}},isRunner:r}=e;return(0,a.AH)(["background-color:",";border-bottom-left-radius:9px;border-top-left-radius:9px;"," ",""],n,t.tabletDesktop(f()),r&&(0,a.AH)(["justify-content:center;display:flex;padding:2px 6px;"]))}),y=a.Ay.span.withConfig({componentId:"sc-da4f0f94-2"})(["",""],e=>{let{theme:{colors:{black:n,white:t},mixins:{breakpointMixin:r}},isRunner:i}=e;return(0,a.AH)(["display:block;background:none;color:",";padding:0;border-bottom-right-radius:9px;border-top-right-radius:9px;text-transform:uppercase;"," ",""],n,r.tabletDesktop(m()),i&&(0,a.AH)(["display:flex;background-color:",";color:",";padding:2px 3px;"],n,t))}),b=e=>{let{tips:n,isRunner:t}=e;return(0,r.jsxs)(g,{isRunner:!0,"data-testid":"Container__RunnerTips",children:[t&&(0,r.jsx)(x,{isRunner:!0,"data-testid":"Text__RunnerTipsNumber",children:n}),(0,r.jsx)(y,{isRunner:!0,"data-testid":"Text__RunnerTipsLabel",children:"1"===n?"tip":"tips"})]})};var w=t(57289);let A=a.Ay.div.withConfig({componentId:"sc-2d99d6f7-0"})(["",""],e=>{let{isCenterAligned:n,theme:{spacings:{xs:t}}}=e;return(0,a.AH)(["width:100%;height:100%;",""],n&&(0,a.AH)(["margin-left:",";"],t))}),_=a.Ay.img.withConfig({componentId:"sc-2d99d6f7-1"})(["",""],e=>{let{isRunner:n,theme:{mixins:{breakpointMixin:t}}}=e;return(0,a.AH)(["width:inherit;height:inherit;",""],n&&(0,a.AH)([""," ",""],t.tabletDesktop&&(0,a.AH)(["width:54px;height:39px;margin-left:2px;"]),t.mobile&&(0,a.AH)(["width:34px;height:24px;margin-left:7px;"])))}),j=a.Ay.span.withConfig({componentId:"sc-2d99d6f7-2"})(["width:inherit;height:inherit;display:inline-block;position:relative;"]),C=e=>{let{silkUrl:n,tips:t="6",displayTips:o=!0,isRunner:s=!1,isCenterAligned:a=!1}=e,[d,c]=(0,i.useState)(!1),u=(0,i.useCallback)(()=>c(!0),[]),p=(0,i.useCallback)(e=>
1{e&&e.complete&&0===e.naturalWidth&&c(!0)},[]),h=d?w.M8:n||null;return(0,r.jsxs)(A,{"data-testid":"Container__SilkAndTips",isCenterAligned:a,children:[h?(0,r.jsx)(_,{ref:p,src:h,alt:"Silk",isRunner:s,onError:u,"data-testid":"Image__SilkImage"}):(0,r.jsx)(j,{children:(0,r.jsx)(l(),{src:"/svgs/silk_default_icon.svg",fill:!0,alt:"Silk","data-testid":"Icon__SilkDefaultIcon"})}),o&&s&&(0,r.jsx)(b,{tips:t,isRunner:s})]})}}}]);
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.