PageSourceSearch

https://photofinish.live/_next/static/chunks/pages/races/[race_id]/forms-2de0a47fb5d751fc.js

js photofinish.live collected 2026-09-24 11:57:29 UTC 40,313 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1362],{9384:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>W});var a=s(26514),r=s(72122),l=s(75834),n=s(46225),i=s(17432),c=s(33989),d=s(31412),o=s(21958);async function x(e){let{queryKey:t}=e,[,s]=t;if(!s)return console.error("[useRaceForm] Race ID is required"),null;let a=String(s);return await (0,d.P)(`https://api.photofinish.live/race/external/otb/race-form/${a}`,{method:"GET"})}var m=s(33321);let h=(0,l.createContext)(void 0),f=e=>{let t,s,n,i,c,d,o=(0,r.c)(12),{children:x}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Set,o[0]=t):t=o[0];let[m,f]=(0,l.useState)(t),[p,j]=(0,l.useState)(null);o[1]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{f(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},o[1]=s):s=o[1];let u=s;o[2]!==m?(n=e=>m.has(e),o[2]=m,o[3]=n):n=o[3];let N=n;o[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{f(new Set),j(null)},o[4]=i):i=o[4];let g=i;o[5]!==N||o[6]!==p||o[7]!==m?(c={selectedFilters:m,selectedCategory:p,toggleFilter:u,isFilterSelected:N,setSelectedCategory:j,clearAllFilters:g},o[5]=N,o[6]=p,o[7]=m,o[8]=c):c=o[8];let y=c;return o[9]!==x||o[10]!==y?(d=(0,a.jsx)(h.Provider,{value:y,children:x}),o[9]=x,o[10]=y,o[11]=d):d=o[11],d},p=()=>{let e=(0,l.useContext)(h);if(void 0===e)throw Error("useRaceFilter must be used within a RaceFilterProvider");return e};var j=s(90617),u=s(96456),N=s.n(u),g=s(28182);let y=e=>{let t,s,l=(0,r.c)(6),{label:n,isSelected:i,onClick:c}=e,d=i?"bg-primary-500 text-white shadow-lg shadow-primary-500/25":"bg-slate-700/60 text-slate-300 hover:bg-slate-600/60 hover:text-white";return l[0]!==d?(t=(0,o.cR)("px-3 py-1.5 rounded-lg text-sm font-medium transition-all",d),l[0]=d,l[1]=t):t=l[1],l[2]!==n||l[3]!==c||l[4]!==t?(s=(0,a.jsx)("button",{onClick:c,className:t,children:n}),l[2]=n,l[3]=c,l[4]=t,l[5]=s):s=l[5],s},b=e=>{let t,s,l,n,i,c,d,x,m,h,f,u,b,v,w,P,S,_,k,$,F,R,C,L,M,I,T,E,D,A,O,z,B,K,U,q,G=(0,r.c)(86),{raceId:X,details:V,className:W}=e,{toggleFilter:Y,isFilterSelected:Z,selectedFilters:H,clearAllFilters:J}=p(),Q=H.size>0;G[0]!==W?(t=(0,o.cR)("rounded-xl bg-gradient-to-r from-slate-900/95 via-indigo-950/30 to-slate-900/95 border border-slate-700/50 overflow-hidden shadow-xl",W),G[0]=W,G[1]=t):t=G[1];let ee=`/races/${X}`;if(G[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(g.AqJ,{className:"w-4 h-4"}),G[2]=s):s=G[2],G[3]!==ee?(l=(0,a.jsxs)(N(),{href:ee,className:"inline-flex items-center gap-1.5 text-sm text-slate-400 hover:text-primary-400 transition-colors mb-2",children:[s,"Back to Race"]}),G[3]=ee,G[4]=l):l=G[4],G[5]!==V.raceName?(n=(0,a.jsx)("h1",{className:"text-xl pfmd:text-2xl pflg:text-3xl font-bold text-white",children:V.raceName}),G[5]=V.raceName,G[6]=n):n=G[6],G[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)("p",{className:"text-slate-400 mt-1",children:"Advanced Racing Form - Daily Handicapping"}),G[7]=i):i=G[7],G[8]!==l||G[9]!==n?(c=(0,a.jsxs)("div",{children:[l,n,i]}),G[8]=l,G[9]=n,G[10]=c):c=G[10],G[11]!==V.purse){var et;d=(et=V.purse)>=1e9?`$${(et/1e9).toFixed(1)}B`:et>=1e6?`$${(et/1e6).toFixed(1)}M`:et>=1e3?`$${(et/1e3).toFixed(0)}K`:`$${et.toFixed(0)}`,G[11]=V.purse,G[12]=d}else d=G[12];G[13]!==d?(x=(0,a.jsx)("div",{className:"text-2xl font-bold text-emerald-400",children:d}),G[13]=d,G[14]=x):x=G[14],G[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)("div",{className:"text-xs text-slate-500 uppercase tracking-wider",children:"Purse"}),G[15]=m):m=G[15],G[16]!==x?(h=(0,a.jsxs)("div",{className:"text-right hidden pfsm:block",children:[x,m]}),G[16]=x,G[17]=h):h=G[17],G[18]!==h||G[19]!==c?(f=(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[c,h]}),G[18]=h,G[19]=c,G[20]=f):f=G[20],G[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-wider mr-1",children:"Filter by:"}),G[21]=u):u=G[21];let es=`${V.distance}f`;G[22]!==Z?(b=Z("distance"),G[22]=Z,G[23]=b):b=G[23],G[24]!==Y?(v=()=>Y("distance"),G[24]=Y,G[25]=v):v=G[25],G[26]!==es||G[27]!==b||G[28]!==v?(w=(0,a.jsx)(y,{filter:"distance",label:es,isSelected:b,onClick:v}),G[26]=es,G[27]=b,G[28]=v,G[29]=w):w=G[29];let ea=V.direction;G[30]!==Z?(P=Z("direction"),G[30]=Z,G[31]=P):P=G[31],G[32]!==Y?(S=()=>Y("direction"),G[32]=Y,G[33]=S):S=G[33],G[34]!==V.direction||G[35]!==P||G[36]!==S?(_=(0,a.jsx)(y,{filter:"direction",label:ea,isSelected:P,onClick:S}),G[34]=V.direction,G[35]=P,G[36]=S,G[37]=_):_=G[37];let er=V.surface;G[38]!==Z?(k=Z("surface"),G[38]=Z,G[39]=k):k=G[39],G[40]!==Y?($=()=>Y("surface"),G[40]=Y,G[41]=$):$=G[41],G[42]!==V.surface||G[43]!==k||G[44]!==$?(F=(0,a.jsx)(y,{filter:"surface",label:er,isSelected:k,onClick:$}),G[42]=V.surface,G[43]=k,G[44]=$,G[45]=F):F=G[45];let el=V.condition;return G[46]!==Z?(R=Z("condition"),G[46]=Z,G[47]=R):R=G[47],G[48]!==Y?(C=()=>Y("condition"),G[48]=Y,G[49]=C):C=G[49],G[50]!==V.condition||G[51]!==R||G[52]!==C?(L=(0,a.jsx)(y,{filter:"condition",label:el,isSelected:R,onClick:C}),G[50]=V.condition,G[51]=R,G[52]=C,G[53]=L):L=G[53],G[54]!==J||G[55]!==Q?(M=Q&&(0,a.jsx)("button",{onClick:J,className:"p-1.5 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-lg transition-colors",title:"Clear all filters",children:(0,a.jsx)(g.U_s,{className:"w-4 h-4"})}),G[54]=J,G[55]=Q,G[56]=M):M=G[56],G[57]!==w||G[58]!==_||G[59]!==F||G[60]!==L||G[61]!==M?(I=(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[u,w,_,F,L,M]}),G[57]=w,G[58]=_,G[59]=F,G[60]=L,G[61]=M,G[62]=I):I=G[62],G[63]===Symbol.for("react.memo_cache_sentinel")?(T=(0,a.jsx)("span",{className:"text-slate-500",children:"Post Time:"}),G[63]=T):T=G[63],G[64]!==V.runTime?(E=V.runTime?j.c9.fromISO(V.runTime).toFormat("MMM d, yyyy h:mm a"):"TBD",G[64]=V.runTime,G[65]=E):E=G[65],G[66]!==E?(D=(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[T,(0,a.jsx)("span",{className:"text-white font-medium",children:E})]}),G[66]=E,G[67]=D):D=G[67],G[68]===Symbol.for("react.memo_cache_sentinel")?(A=(0,a.jsx)("span",{className:"text-slate-500",children:"Field:"}),G[68]=A):A=G[68],G[69]!==V.fieldSize?(O=(0,a.jsxs)("div",{className:"hidden pfsm:flex items-center gap-2",children:[A,(0,a.jsxs)("span",{className:"text-white font-medium",children:[V.fieldSize," horses"]})]}),G[69]=V.fieldSize,G[70]=O):O=G[70],G[71]!==D||G[72]!==O?(z=(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-slate-400 pfmd:ml-auto",children:[D,O]}),G[71]=D,G[72]=O,G[73]=z):z=G[73],G[74]!==I||G[75]!==z?(B=(0,a.jsxs)("div",{className:"flex flex-col pfmd:flex-row pfmd:items-center gap-4",children:[I,z]}),G[74]=I,G[75]=z,G[76]=B):B=G[76],G[77]!==Q?(K=Q&&(0,a.jsxs)("div",{className:"mt-3 text-xs text-slate-400 bg-slate-800/50 rounded-lg px-3 py-2 inline-block",children:[(0,a.jsx)("span",{className:"text-primary-400",children:"Tip:"})," Past performances matching your selected filters are highlighted"]}),G[77]=Q,G[78]=K):K=G[78],G[79]!==f||G[80]!==B||G[81]!==K?(U=(0,a.jsxs)("div",{className:"p-4 pfmd:p-6",children:[f,B,K]}),G[79]=f,G[80]=B,G[81]=K,G[82]=U):U=G[82],G[83]!==t||G[84]!==U?(q=(0,a.jsx)("div",{className:t,children:U}),G[83]=t,G[84]=U,G[85]=q):q=G[85],q};var v=s(73930);let w=e=>{let t,s,l=(0,r.c)(7),{post:n,size:i,className:c}=e,d=void 0===i?"md":i,x=v.r[n]||"text-white bg-gray-600";return l[0]!==c||l[1]!==x||l[2]!==d?(t=(0,o.cR)("flex items-center justify-center rounded-full font-bold shadow-lg",x,{sm:"w-6 h-6 text-xs",md:"w-9 h-9 text-sm",lg:"w-12 h-12 text-base"}[d],c),l[0]=c,l[1]=x,l[2]=d,l[3]=t):t=l[3],l[4]!==n||l[5]!==t?(s=(0,a.jsx)("div",{className:t,children:n}),l[4]=n,l[5]=t,l[6]=s):s=l[6],s},P=e=>{let t,s=(0,r.c)(8),{rating:l,maxRating:n,size:i,className:c}=e,d=void 0===i?"sm":i,x=Math.floor(l),m=l%1>=.5,h=(void 0===n?3:n)-x-!!m;if(s[0]!==c||s[1]!==h||s[2]!==x||s[3]!==m||s[4]!==d){let e,r={sm:"w-3 h-3",md:"w-4 h-4"}[d];s[6]!==c?(e=(0,o.cR)("flex items-center gap-0.5",c),s[6]=c,s[7]=e):e=s[7],t=(0,a.jsxs)("div",{className:e,children:[Array.from({length:x}).map((e,t)=>(0,a.jsx)("svg",{className:(0,o.cR)(r,"text-amber-400"),fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},`full-${t}`)),m&&(0,a.jsxs)("svg",{className:(0,o.cR)(r,"text-amber-400"),viewBox:"0 0 20 20",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"halfGradient",children:[(0,a.jsx)("stop",{offset:"50%",stopColor:"currentColor"}),(0,a.jsx)("stop",{offset:"50%",stopColor:"#6B7280"})]})}),(0,a.jsx)("path",{fill:"url(#halfGradient)",d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})]}),Array.from({length:h}).map((e,t)=>(0,a.jsx)("svg",{className:(0,o.cR)(r,"text-gray-500"),fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},`empty-${t}`))]}),s[0]=c,s[1]=h,s[2]=x,s[3]=m,s[4]=d,s[5]=t}else t=s[5];return t},S=e=>{let t,s,l,n,i,c,d=(0,r.c)(13),{title:x,rows:m,className:h}=e;return d[0]!==h?(t=(0,o.cR)("overflow-hidden rounded-lg",h),d[0]=h,d[1]=t):t=d[1],d[2]!==x?(s=(0,a.jsx)("div",{className:"bg-slate-800/80 px-3 py-2 border-b border-slate-600/50",children:(0,a.jsx)("h4",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider",children:x})}),d[2]=x,d[3]=s):s=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-slate-700/60",children:[(0,a.jsx)("th",{className:"px-2 py-1.5 text-left text-slate-400 font-medium"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"St"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"W"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"P"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"S"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Max"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Avg"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"$EPS"})]})}),d[4]=l):l=d[4],d[5]!==m?(n=m.map(_),d[5]=m,d[6]=n):n=d[6],d[7]!==n?(i=(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"min-w-full text-xs",children:[l,(0,a.jsx)("tbody",{className:"divide-y divide-slate-700/40",children:n})]})}),d[7]=n,d[8]=i):i=d[8],d[9]!==t||d[10]!==s||d[11]!==i?(c=(0,a.jsxs)("div",{className:t,children:[s,i]}),d[9]=t,d[10]=s,d[11]=i,d[12]=c):c=d[12],c};function _(e,t){var s;return(0,a.jsxs)("tr",{className:(0,o.cR)("transition-colors",t%2==0?"bg-slate-800/40":"bg-slate-800/20"),children:[(0,a.jsx)("td",{className:"px-2 py-1.5 text-slate-300 font-medium whitespace-nowrap",children:e.label}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.stats.starts}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-emerald-400 font-medium",children:e.stats.wins}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-sky-400",children:e.stats.places}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-amber-400",children:e.stats.shows}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.stats.max>0?e.stats.max:"-"}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.stats.avg>0?e.stats.avg.toFixed(0):"-"}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-green-400 whitespace-nowrap",children:e.stats.earningsPerStart>0?(s=e.stats.earningsPerStart)>=1e9?`$${(s/1e9).toFixed(1)}B`:s>=1e6?`$${(s/1e6).toFixed(1)}M`:s>=1e3?`$${(s/1e3).toFixed(1)}K`:`$${s.toFixed(0)}`:"-"})]},e.label)}let k=["Graded","Stakes","Allowances","Claimers","Maiden","Special","Other"],$=e=>{let t,s,l,n,i,c,d,x,m=(0,r.c)(21),{pastPerformances:h,className:f}=e,{selectedCategory:j,setSelectedCategory:u}=p();if(m[0]!==h){let e=new Map;
1k.forEach(t=>{e.set(t,{category:t,starts:0,wins:0,places:0,shows:0,fourthPlus:0})}),h.forEach(t=>{let s=t.category||"Other",a=e.get(s);a&&(a.starts=a.starts+1,1===t.finishPosition?a.wins=a.wins+1:2===t.finishPosition?a.places=a.places+1:3===t.finishPosition?a.shows=a.shows+1:a.fourthPlus=a.fourthPlus+1)}),t=k.map(t=>e.get(t)).filter(F),m[0]=h,m[1]=t}else t=m[1];let N=t;m[2]!==j||m[3]!==u?(s=e=>{j===e?u(null):u(e)},m[2]=j,m[3]=u,m[4]=s):s=m[4];let y=s;if(0===N.length)return null;if(m[5]!==f?(l=(0,o.cR)("overflow-hidden rounded-lg",f),m[5]=f,m[6]=l):l=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("div",{className:"bg-slate-800/80 px-3 py-2 border-b border-slate-600/50",children:(0,a.jsx)("h4",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider",children:"Race Class"})}),m[7]=n):n=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-slate-700/60",children:[(0,a.jsx)("th",{className:"px-2 py-1.5 text-left text-slate-400 font-medium",children:"Category"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"St"}),(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Record"})]})}),m[8]=i):i=m[8],m[9]!==N||m[10]!==y||m[11]!==j){let e;m[13]!==y||m[14]!==j?(e=(e,t)=>{let s=j===e.category;return(0,a.jsxs)("tr",{onClick:()=>y(e.category),className:(0,o.cR)("transition-colors cursor-pointer",t%2==0?"bg-slate-800/40":"bg-slate-800/20",s&&"ring-2 ring-inset ring-primary-500 bg-primary-500/10"),children:[(0,a.jsx)("td",{className:"px-2 py-1.5 text-slate-300 font-medium whitespace-nowrap",children:(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[s&&(0,a.jsx)(g.o0Z,{className:"w-3.5 h-3.5 text-primary-400"}),e.category]})}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.starts}),(0,a.jsxs)("td",{className:"px-2 py-1.5 text-center text-slate-200 font-mono",children:[(0,a.jsx)("span",{className:"text-emerald-400",children:e.wins}),"-",(0,a.jsx)("span",{className:"text-sky-400",children:e.places}),"-",(0,a.jsx)("span",{className:"text-amber-400",children:e.shows}),"-",(0,a.jsx)("span",{className:"text-slate-400",children:e.fourthPlus})]})]},e.category)},m[13]=y,m[14]=j,m[15]=e):e=m[15],c=N.map(e),m[9]=N,m[10]=y,m[11]=j,m[12]=c}else c=m[12];return m[16]!==c?(d=(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"min-w-full text-xs",children:[i,(0,a.jsx)("tbody",{className:"divide-y divide-slate-700/40",children:c})]})}),m[16]=c,m[17]=d):d=m[17],m[18]!==l||m[19]!==d?(x=(0,a.jsxs)("div",{className:l,children:[n,d]}),m[18]=l,m[19]=d,m[20]=x):x=m[20],x};function F(e){return e.starts>0}let R=e=>{let t=["th","st","nd","rd"],s=e%100;return e+(t[(s-20)%10]||t[s]||t[0])},C=e=>{let t,s,n,i,c,d,x,m,h,f,u,y,b,v,w,P,S,_,k,$,F,C,D,A,O,z,B,K,U,q,G,X,V,W,Y=(0,r.c)(78),{pastPerformances:Z,raceDetails:H,className:J}=e,{selectedFilters:Q,selectedCategory:ee,isFilterSelected:et}=p(),[es,ea]=(0,l.useState)(!1);if(Y[0]!==Z?((t=[...Z]).sort(L),Y[0]=Z,Y[1]=t):t=Y[1],ee){let e;Y[2]!==t||Y[3]!==ee?(e=t.filter(e=>e.category===ee),Y[2]=t,Y[3]=ee,Y[4]=e):e=Y[4],t=e}let er=t;e:{let e;if(es){s=er;break e}Y[5]!==er?(e=er.slice(0,5),Y[5]=er,Y[6]=e):e=Y[6],s=e}let el=s,en=er.length>5;Y[7]!==et||Y[8]!==H||Y[9]!==Q?(n=e=>{if(0===Q.size)return!1;let t=[];return et("distance")&&t.push((parseInt(e.distance,10)||0)===H.distance),et("direction")&&t.push(e.direction.toLowerCase()===H.direction.toLowerCase()),et("surface")&&t.push(e.surface.toLowerCase()===H.surface.toLowerCase()),et("condition")&&t.push(e.condition.toLowerCase()===H.condition.toLowerCase()),t.length>0&&t.every(Boolean)},Y[7]=et,Y[8]=H,Y[9]=Q,Y[10]=n):n=Y[10];let ei=n;if(0===Z.length){let e,t;return Y[11]!==J?(e=(0,o.cR)("text-center py-8 text-slate-400",J),Y[11]=J,Y[12]=e):e=Y[12],Y[13]!==e?(t=(0,a.jsx)("div",{className:e,children:"No past performances available"}),Y[13]=e,Y[14]=t):t=Y[14],t}Y[15]!==ei?(i=(e,t)=>{let s=1===e.finishPosition,r=ei(e);return(0,a.jsxs)("div",{className:(0,o.cR)("rounded-lg p-3 space-y-2",s&&"bg-gradient-to-r from-emerald-500/20 to-transparent border-l-2 border-emerald-400",!s&&"bg-slate-800/50",r&&"ring-2 ring-primary-500/60"),
1children:[(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-slate-400 text-xs",children:e.date?j.c9.fromISO(e.date).toFormat("MMM d, yyyy"):"-"}),(0,a.jsx)(N(),{href:e.raceUrl||"#",className:"text-sky-400 hover:text-sky-300 font-medium text-sm",children:e.raceName||"Unknown Race"})]}),(0,a.jsx)("div",{className:(0,o.cR)("text-lg font-bold",1===e.finishPosition&&"text-emerald-400",2===e.finishPosition&&"text-sky-400",3===e.finishPosition&&"text-amber-400",e.finishPosition>3&&"text-slate-400"),children:R(e.finishPosition)})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs",children:[(0,a.jsxs)("span",{className:"px-2 py-0.5 bg-slate-700/50 rounded text-slate-300",children:[e.distance,"f"]}),(0,a.jsx)("span",{className:"px-2 py-0.5 bg-slate-700/50 rounded text-slate-300",children:e.surface}),(0,a.jsx)("span",{className:"px-2 py-0.5 bg-slate-700/50 rounded text-slate-300",children:e.direction}),(0,a.jsx)("span",{className:"px-2 py-0.5 bg-slate-700/50 rounded text-slate-300",children:e.condition})]}),(0,a.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,a.jsxs)("div",{className:"text-slate-400",children:["Fleet: ",(0,a.jsx)("span",{className:"text-slate-200 font-medium",children:e.fleet})]}),(0,a.jsxs)("div",{className:"text-slate-400",children:["Time: ",(0,a.jsx)("span",{className:"text-slate-200 font-mono",children:e.time})]})]}),e.topFinishers&&e.topFinishers.length>0&&(0,a.jsxs)("div",{className:"text-xs text-slate-400 pt-1 border-t border-slate-700/50",children:[(0,a.jsx)("span",{className:"text-slate-500",children:"Podium: "}),e.topFinishers.slice(0,3).map(M)]})]},`${e.raceUrl}-${t}`)},Y[15]=ei,Y[16]=i):i=Y[16];let ec=i;Y[17]!==Z?(c=Math.max(...Z.map(I)),Y[17]=Z,Y[18]=c):c=Y[18];let ed=c;Y[19]!==ed?(d=function(e){let t=["2f"];return e>=5&&t.push("4f"),e>=7&&t.push("6f"),e>=9&&t.push("8f"),e>=11&&t.push("10f"),t}(ed),Y[19]=ed,Y[20]=d):d=Y[20];let eo=d;return Y[21]!==J?(x=(0,o.cR)("rounded-lg overflow-hidden",J),Y[21]=J,Y[22]=x):x=Y[22],Y[23]!==ee?(m=ee&&(0,a.jsxs)("span",{className:"ml-2 text-primary-400 normal-case",children:["(",ee,")"]}),Y[23]=ee,Y[24]=m):m=Y[24],Y[25]!==m?(h=(0,a.jsxs)("h4",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider",children:["Past Performances",m]}),Y[25]=m,Y[26]=h):h=Y[26],Y[27]!==er.length?(f=er.length>0&&(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:[er.length," race",1!==er.length?"s":""]}),Y[27]=er.length,Y[28]=f):f=Y[28],Y[29]!==h||Y[30]!==f?(u=(0,a.jsxs)("div",{className:"bg-slate-800/80 px-3 py-2 border-b border-slate-600/50 flex justify-between items-center",children:[h,f]}),Y[29]=h,Y[30]=f,Y[31]=u):u=Y[31],Y[32]!==el||Y[33]!==ec?(y=el.map((e,t)=>ec(e,t)),Y[32]=el,Y[33]=ec,Y[34]=y):y=Y[34],Y[35]!==er.length||Y[36]!==en||Y[37]!==es?(b=en&&(0,a.jsx)("button",{onClick:()=>ea(!es),className:"w-full py-2 text-sm text-primary-400 hover:text-primary-300 flex items-center justify-center gap-1 bg-slate-800/30 rounded-lg",children:es?(0,a.jsxs)(a.Fragment,{children:["Show Less ",(0,a.jsx)(g.gNC,{className:"w-4 h-4"})]}):(0,a.jsxs)(a.Fragment,{children:["Show All (",er.length,")"," ",(0,a.jsx)(g.bv7,{className:"w-4 h-4"})]})}),Y[35]=er.length,Y[36]=en,Y[37]=es,Y[38]=b):b=Y[38],Y[39]!==y||Y[40]!==b?(v=(0,a.jsxs)("div",{className:"pflg:hidden space-y-2 p-2",children:[y,b]}),Y[39]=y,Y[40]=b,Y[41]=v):v=Y[41],Y[42]===Symbol.for("react.memo_cache_sentinel")?(w=(0,a.jsx)("th",{className:"px-2 py-1.5 text-left text-slate-400 font-medium",children:"Date"}),P=(0,a.jsx)("th",{className:"px-2 py-1.5 text-left text-slate-400 font-medium",children:"Race"}),S=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Class"}),_=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Dist"}),k=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Dir"}),$=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Surf"}),F=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Cond"}),C=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Wt"}),D=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"M/L"}),Y[42]=w,Y[43]=P,Y[44]=S,Y[45]=_,Y[46]=k,Y[47]=$,Y[48]=F,Y[49]=C,Y[50]=D):(w=Y[42],P=Y[43],S=Y[44],_=Y[45],k=Y[46],$=Y[47],F=Y[48],C=Y[49],D=Y[50]),Y[51]!==eo?(A=eo.map(T),Y[51]=eo,Y[52]=A):A=Y[52],Y[53]===Symbol.for("react.memo_cache_sentinel")?(O=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Final"}),z=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"FF"}),B=(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:"Fin"}),K=(0,a.jsx)("th",{className:"px-2 py-1.5 text-left text-slate-400 font-medium",children:"Podium"}),Y[53]=O,Y[54]=z,Y[55]=B,Y[56]=K):(O=Y[53],z=Y[54],B=Y[55],K=Y[56]),Y[57]!==A?(U=(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-slate-700/60",children:[w,P,
1S,_,k,$,F,C,D,A,O,z,B,K]})}),Y[57]=A,Y[58]=U):U=Y[58],Y[59]!==el||Y[60]!==ei||Y[61]!==eo?(q=(0,a.jsx)("tbody",{className:"divide-y divide-slate-700/40",children:el.map((e,t)=>{let s=1===e.finishPosition,r=ei(e);return(0,a.jsxs)("tr",{className:(0,o.cR)("transition-colors",t%2==0?"bg-slate-800/40":"bg-slate-800/20",s&&"bg-gradient-to-r from-emerald-500/15 to-transparent",r&&"ring-2 ring-inset ring-primary-500/60"),children:[(0,a.jsx)("td",{className:"px-2 py-1.5 text-slate-400 whitespace-nowrap",children:e.date?j.c9.fromISO(e.date).toFormat("MM/dd/yy"):"-"}),(0,a.jsx)("td",{className:"px-2 py-1.5 max-w-[120px] truncate",children:(0,a.jsx)(N(),{href:e.raceUrl||"#",className:"text-sky-400 hover:text-sky-300",title:e.raceName,children:e.raceName||"Unknown"})}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-300 whitespace-nowrap",children:e.class||"-"}),(0,a.jsxs)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:[e.distance,"f"]}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.direction}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.surface}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.condition}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200",children:e.weight}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-300 font-mono",children:e.morningLineOdds||"-"}),eo.map((t,s)=>(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-300 font-mono",children:e.splits&&e.splits[s]?e.splits[s]:"-"},s)),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-slate-200 font-mono",children:e.time||"-"}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-center text-amber-400 font-medium",children:e.fleet}),(0,a.jsx)("td",{className:(0,o.cR)("px-2 py-1.5 text-center font-bold",1===e.finishPosition&&"text-emerald-400",2===e.finishPosition&&"text-sky-400",3===e.finishPosition&&"text-amber-400",e.finishPosition>3&&"text-slate-400"),children:R(e.finishPosition)}),(0,a.jsx)("td",{className:"px-2 py-1.5 text-slate-300 max-w-[180px] truncate",children:e.topFinishers&&e.topFinishers.length>0?(0,a.jsx)("span",{className:"text-xs",children:e.topFinishers.slice(0,3).map(E)}):"-"})]},`${e.raceUrl}-${t}`)})}),Y[59]=el,Y[60]=ei,Y[61]=eo,Y[62]=q):q=Y[62],Y[63]!==U||Y[64]!==q?(G=(0,a.jsxs)("table",{className:"min-w-full text-xs",children:[U,q]}),Y[63]=U,Y[64]=q,Y[65]=G):G=Y[65],Y[66]!==er.length||Y[67]!==en||Y[68]!==es?(X=en&&(0,a.jsx)("div",{className:"p-2 bg-slate-800/30",children:(0,a.jsx)("button",{onClick:()=>ea(!es),className:"w-full py-1.5 text-sm text-primary-400 hover:text-primary-300 flex items-center justify-center gap-1",children:es?(0,a.jsxs)(a.Fragment,{children:["Show Less ",(0,a.jsx)(g.gNC,{className:"w-4 h-4"})]}):(0,a.jsxs)(a.Fragment,{children:["Show All (",er.length,")"," ",(0,a.jsx)(g.bv7,{className:"w-4 h-4"})]})})}),Y[66]=er.length,Y[67]=en,Y[68]=es,Y[69]=X):X=Y[69],Y[70]!==G||Y[71]!==X?(V=(0,a.jsxs)("div",{className:"hidden pflg:block overflow-x-auto",children:[G,X]}),Y[70]=G,Y[71]=X,Y[72]=V):V=Y[72],Y[73]!==u||Y[74]!==v||Y[75]!==V||Y[76]!==x?(W=(0,a.jsxs)("div",{className:x,children:[u,v,V]}),Y[73]=u,Y[74]=v,Y[75]=V,Y[76]=x,Y[77]=W):W=Y[77],W};function L(e,t){let s=e.date?new Date(e.date).getTime():0;return(t.date?new Date(t.date).getTime():0)-s}function M(e,t){return(0,a.jsxs)("span",{children:[t>0&&", ",(0,a.jsx)(N(),{href:`/horses/${e.id}`,className:"text-slate-300 hover:text-sky-400",children:e.name})]},e.id)}function I(e){return parseInt(e.distance,10)||0}function T(e){return(0,a.jsx)("th",{className:"px-2 py-1.5 text-center text-slate-400 font-medium",children:e},e)}function E(e,t){return(0,a.jsxs)("span",{children:[t>0&&", ",(0,a.jsx)(N(),{href:`/horses/${e.id}`,className:"hover:text-sky-400",title:e.name,children:e.name})]},e.id)}var D=s(92750);let A=e=>e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toFixed(0),O=(e,t,s,a)=>`${e} (${t}-${s}-${a})`,z=e=>{let t,s,l,n,i,c,d,x,m,h,f,p,j,u,g,y,b,v,_,k,F,R,L,M,I,T,E,z,B,K,U,q,G,X,V,W,Y,Z,H,J,Q,ee,et,es,ea,er,el,en,ei,ec,ed=(0,r.c)(137),{entrant:eo,raceDetails:ex,currentSeason:em,className:eh}=e;ed[0]!==eo.lifePerformance.lifeTime?(t={label:"Life",stats:eo.lifePerformance.lifeTime},ed[0]=eo.lifePerformance.lifeTime,ed[1]=t):t=ed[1];let ef=`S${em}`;ed[2]!==eo.lifePerformance.currentSeason||ed[3]!==ef?(s={label:ef,stats:eo.lifePerformance.currentSeason},ed[2]=eo.lifePerformance.currentSeason,ed[3]=ef,ed[4]=s):s=ed[4];let ep=`S${em-1}`;ed[5]!==eo.lifePerformance.previousSeason||ed[6]!==ep?(l={label:ep,stats:eo.lifePerformance.previousSeason},ed[5]=eo.lifePerformance.previousSeason,ed[6]=ep,ed[7]=l):l=ed[7];let ej=`${ex.distance}f`;ed[8]!==eo.lifePerformance.matchingDistance||ed[9]!==ej?(n={label:ej,stats:eo.lifePerformance.matchingDistance},ed[8]=eo.lifePerformance.matchingDistance,ed[9]=ej,ed[10]=n):n=ed[10],ed[11]!==t||ed[12]!==s||ed[13]!==l||ed[14]!==n?(i=[t,s,l,n],ed[11]=t,ed[12]=s,ed[13]=l,ed[14]=n,ed[15]=i):i=ed[15];let eu=i;ed[16]!==eo.conditionPerformance.surface||ed[17]!==ex.surface?(c={label:ex.surface,stats:eo.conditionPerformance.surface},ed[16]=eo.conditionPerformance.surface,ed[17]=ex.surface,ed[18]=c):c=ed[18],ed[19]!==eo.conditionPerformance.direction||ed[20]!==ex.direction?(d={label:ex.direction,stats:eo.conditionPerformance.direction},ed[19]=eo.conditionPerformance.direction,ed[20]=ex.direction,ed[21]=d):d=ed[21];let eN=`${eo.weight}
1lbs`;ed[22]!==eo.conditionPerformance.weight||ed[23]!==eN?(x={label:eN,stats:eo.conditionPerformance.weight},ed[22]=eo.conditionPerformance.weight,ed[23]=eN,ed[24]=x):x=ed[24],ed[25]!==eo.conditionPerformance.condition||ed[26]!==ex.condition?(m={label:ex.condition,stats:eo.conditionPerformance.condition},ed[25]=eo.conditionPerformance.condition,ed[26]=ex.condition,ed[27]=m):m=ed[27],ed[28]!==d||ed[29]!==x||ed[30]!==m||ed[31]!==c?(h=[c,d,x,m],ed[28]=d,ed[29]=x,ed[30]=m,ed[31]=c,ed[32]=h):h=ed[32];let eg=h;ed[33]!==eh?(f=(0,o.cR)("rounded-xl bg-gradient-to-b from-slate-900/95 to-slate-900/80 border border-slate-700/50 overflow-hidden shadow-xl",eh),ed[33]=eh,ed[34]=f):f=ed[34],ed[35]!==eo.post?(p=(0,a.jsx)(w,{post:eo.post,size:"lg"}),ed[35]=eo.post,ed[36]=p):p=ed[36],ed[37]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.jsx)("div",{className:"text-xs text-slate-400",children:"M/L"}),ed[37]=j):j=ed[37],ed[38]!==eo.morningLineOdds?(u=(0,a.jsxs)("div",{className:"text-center",children:[j,(0,a.jsx)("div",{className:"text-sm font-semibold text-slate-200",children:eo.morningLineOdds})]}),ed[38]=eo.morningLineOdds,ed[39]=u):u=ed[39],ed[40]!==p||ed[41]!==u?(g=(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[p,u]}),ed[40]=p,ed[41]=u,ed[42]=g):g=ed[42];let ey=`/horses/${eo.horseId}`;ed[43]!==eo.horseName||ed[44]!==ey?(y=(0,a.jsx)(N(),{href:ey,className:"text-lg font-bold text-white hover:text-primary-400 transition-colors truncate",children:eo.horseName}),ed[43]=eo.horseName,ed[44]=ey,ed[45]=y):y=ed[45],ed[46]!==eo.grade?(b=eo.grade&&(0,a.jsx)(D.pi,{grade:eo.grade,isInline:!0,className:"flex-shrink-0"}),ed[46]=eo.grade,ed[47]=b):b=ed[47],ed[48]!==y||ed[49]!==b?(v=(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[y,b]}),ed[48]=y,ed[49]=b,ed[50]=v):v=ed[50],ed[51]!==eo.age?(_=(0,a.jsxs)("span",{children:[eo.age,"yo"]}),ed[51]=eo.age,ed[52]=_):_=ed[52],ed[53]!==eo.sex?(k=(0,a.jsx)("span",{children:eo.sex}),ed[53]=eo.sex,ed[54]=k):k=ed[54],ed[55]!==eo.weight?(F=(0,a.jsxs)("span",{children:[eo.weight,"lbs"]}),ed[55]=eo.weight,ed[56]=F):F=ed[56],ed[57]!==_||ed[58]!==k||ed[59]!==F?(R=(0,a.jsxs)("div",{className:"flex items-center gap-3 text-sm text-slate-400 mt-1 flex-wrap",children:[_,k,F]}),ed[57]=_,ed[58]=k,ed[59]=F,ed[60]=R):R=ed[60],ed[61]!==eo.preferences.direction?(L=(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:[eo.preferences.direction,":"]}),ed[61]=eo.preferences.direction,ed[62]=L):L=ed[62],ed[63]!==eo.preferences.directionRating?(M=(0,a.jsx)(P,{rating:eo.preferences.directionRating}),ed[63]=eo.preferences.directionRating,ed[64]=M):M=ed[64],ed[65]!==L||ed[66]!==M?(I=(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[L,M]}),ed[65]=L,ed[66]=M,ed[67]=I):I=ed[67],ed[68]!==eo.preferences.surface?(T=(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:[eo.preferences.surface,":"]}),ed[68]=eo.preferences.surface,ed[69]=T):T=ed[69],ed[70]!==eo.preferences.surfaceRating?(E=(0,a.jsx)(P,{rating:eo.preferences.surfaceRating}),ed[70]=eo.preferences.surfaceRating,ed[71]=E):E=ed[71],ed[72]!==T||ed[73]!==E?(z=(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[T,E]}),ed[72]=T,ed[73]=E,ed[74]=z):z=ed[74],ed[75]!==eo.preferences.condition?(B=(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:[eo.preferences.condition,":"]}),ed[75]=eo.preferences.condition,ed[76]=B):B=ed[76],ed[77]!==eo.preferences.conditionRating?(K=(0,a.jsx)(P,{rating:eo.preferences.conditionRating}),ed[77]=eo.preferences.conditionRating,ed[78]=K):K=ed[78],ed[79]!==B||ed[80]!==K?(U=(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[B,K]}),ed[79]=B,ed[80]=K,ed[81]=U):U=ed[81],ed[82]!==I||ed[83]!==z||ed[84]!==U?(q=(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 mt-2",children:[I,z,U]}),ed[82]=I,ed[83]=z,ed[84]=U,ed[85]=q):q=ed[85],ed[86]===Symbol.for("react.memo_cache_sentinel")?(G=(0,a.jsx)("span",{className:"text-slate-500",children:"Owner:"}),ed[86]=G):G=ed[86];let eb=`/stable/${eo.stableId}`;return ed[87]!==eo.stableName||ed[88]!==eb?(X=(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[G,(0,a.jsx)(N(),{href:eb,className:"text-sky-400 hover:text-sky-300",children:eo.stableName})]}),ed[87]=eo.stableName,ed[88]=eb,ed[89]=X):X=ed[89],ed[90]!==eo.sire?(V=eo.sire&&eo.sire.name&&(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-slate-500",children:"Sire:"}),(0,a.jsx)(N(),{href:`/horses/${eo.sire.id}`,className:"text-sky-400 hover:text-sky-300",children:eo.sire.name}),eo.sire.grade&&(0,a.jsx)(D.pi,{grade:eo.sire.grade,isInline:!0}),(0,a.jsx)("span",{className:"text-slate-400 text-xs",children:O(eo.sire.starts,eo.sire.wins,eo.sire.places,eo.sire.shows)}),(0,a.jsxs)("span",{className:"text-green-400 text-xs",children:["$",A(eo.sire.earnings)]})]}),ed[90]=eo.sire,ed[91]=V):V=ed[91],ed[92]!==eo.dam?(W=eo.dam&&eo.dam.name&&(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-slate-500",children:"Dam:"}),(0,a.jsx)(N(),{href:`/horses/${eo.dam.id}`,className:"text-sky-400 hover:text-sky-300",children:eo.dam.name}),eo.dam.grade&&(0,a.jsx)(D.pi,{grade:eo.dam.grade,isInline:!0}),(0,a.jsx)("span",{className:"text-slate-400 text-xs",children:O(eo.dam.starts,eo.dam.wins,eo.dam.places,eo.dam.shows)}),(0,a.jsxs)("span",{className:"text-green-400 text-xs",children:["$",A(eo.dam.earnings)]})]}),ed[92]=eo.dam,ed[93]=W):W=ed[93],ed[94]!==X||ed[95]!==V||ed[96]!==W?(Y=(0,a.jsxs)("div",{className:"mt-3 space-y-1 text-sm",children:[X,V,W]}),ed[94]=X,ed[95]=V,ed[96]=W,ed[97]=Y):Y=ed[97],ed[98]!==v||ed[99]!==R||ed[100]!==q||ed[101]!==Y?(Z=(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[v,R,q,Y]}),ed[98]=v,ed[99]=R,ed[100]=q,ed[101]=Y,ed[102]=Z):Z=ed[102],ed[103]!==g||ed[104]!==Z?(H=(0,a.jsxs)("div",{className:"flex gap-4 flex-1",children:[g,Z]}),ed[103]=g,ed[104]=Z,ed[105]=H):H=ed[105],ed[106]!==eu?(J=(0,a.jsx)(S,{title:"Life Performance",rows:eu,className:"w-[320px]"}),ed[106]=eu,ed[107]=J):J=ed[107],ed[108]!==eg?(Q=(0,a.jsx)(S,{title:"Condition Performance",rows:eg,className:"w-[320px]"}),ed[108]=eg,ed[109]=Q):Q=ed[109],ed[110]!==eo.pastPerformances?(ee=(0,a.jsx)($,{pastPerformances:eo.pastPerformances,className:"w-[200px]"}),ed[110]=eo.pastPerformances,ed[111]=ee):ee=ed[111],ed[112]!==J||ed[113]!==Q||ed[114]!==ee?(et=(0,a.jsxs)("div",{className:"hidden pfxl:flex gap-3 flex-shrink-0",children:[J,Q,ee]}),ed[112]=J,ed[113]=Q,ed[114]=ee,ed[115]=et):et=ed[115],ed[116]!==H||ed[117]!==et?(es=(0,a.jsx)("div",{className:"bg-gradient-to-r from-slate-800/80 via-slate-800/60 to-transparent p-4 border-b border-slate-700/50",children:(0,a.jsxs)("div",{className:"flex flex-col pflg:flex-row gap-4",children:[H,et]})}),ed[116]=H,ed[117]=et,ed[118]=es):es=ed[118],ed[119]!==eu?(ea=(0,a.jsx)(S,{title:"Life Performance",rows:eu}),ed[119]=eu,ed[120]=ea):ea=ed[120],ed[121]!==eg?(er=(0,a.jsx)(S,{title:"Condition Performance",rows:eg}),ed[121]=eg,ed[122]=er):er=ed[122],ed[123]!==eo.pastPerformances?(el=(0,a.jsx)($,{pastPerformances:eo.pastPerformances,className:"pfmd:col-span-2 pflg:col-span-1"}),ed[123]=eo.pastPerformances,ed[124]=el):el=ed[124],ed[125]!==ea||ed[126]!==er||ed[127]!==el?(en=(0,a.jsx)("div",{className:"pfxl:hidden p-4 space-y-3 border-b border-slate-700/50",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 pfmd:grid-cols-2 pflg:grid-cols-3 gap-3",children:[ea,er,el]})}),ed[125]=ea,ed[126]=er,ed[127]=el,ed[128]=en):en=ed[128],ed[129]!==eo.pastPerformances||ed[130]!==ex?(ei=(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(C,{pastPerformances:eo.pastPerformances,raceDetails:ex})}),ed[129]=eo.pastPerformances,ed[130]=ex,ed[131]=ei):ei=ed[131],ed[132]!==f||ed[133]!==es||ed[134]!==en||ed[135]!==ei?(ec=(0,a.jsxs)("div",{className:f,children:[es,en,ei]}),ed[132]=f,ed[133]=es,ed[134]=en,ed[135]=ei,ed[136]=ec):ec=ed[136],ec};
1var B=s(1455),K=s(35483),U=s(37290);let q=e=>{var t;let s,l,n,i,d,h,p,j,u,N,g,y,v,w,P,S,_=(0,r.c)(43),{raceId:k}=e,{data:$,isLoading:F,error:R,refetch:C}=(t=k,(i=(0,r.c)(8))[0]!==t?(s=["raceForm",t],i[0]=t,i[1]=s):s=i[1],i[2]!==t?(l=(0,o.Z4)(t),i[2]=t,i[3]=l):l=i[3],void 0!==i[4]||i[5]!==s||i[6]!==l?(n={queryKey:s,queryFn:x,enabled:l,staleTime:18e5,...void 0},i[4]=void 0,i[5]=s,i[6]=l,i[7]=n):n=i[7],(0,c.I)(n)),{data:L}=(0,m.E)(),M=L?.currentSeason??35;if(F){let e;return _[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(B.mc,{className:"min-h-screen",children:(0,a.jsx)(K.fX,{noBg:!0,children:"Loading racing form data..."})}),_[0]=e):e=_[0],e}if(R){let e;return _[1]!==R||_[2]!==C?(e=(0,a.jsx)(B.mc,{className:"min-h-screen",children:(0,a.jsx)(U.K,{error:R,refetch:C})}),_[1]=R,_[2]=C,_[3]=e):e=_[3],e}if(!$||!$.details){let e;return _[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(B.mc,{className:"min-h-screen",children:(0,a.jsx)(U.K,{children:"Race form data not available for this race."})}),_[4]=e):e=_[4],e}let{details:I,entrantList:T}=$;if(_[5]!==M||_[6]!==I||_[7]!==T?.entrants||_[8]!==k){y=Symbol.for("react.early_return_sentinel");e:{let e,t=T?.entrants||[];if(0===t.length){let e,t,s;_[17]!==I||_[18]!==k?(e=(0,a.jsx)(b,{raceId:k,details:I}),_[17]=I,_[18]=k,_[19]=e):e=_[19],_[20]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)("div",{className:"text-center py-12 text-slate-400",children:[(0,a.jsx)("p",{className:"text-lg",children:"No entrants available for this race yet."}),(0,a.jsx)("p",{className:"text-sm mt-2",children:"Racing form data is available once the race has closed for registration."})]}),_[20]=t):t=_[20],_[21]!==e?(s=(0,a.jsx)(B.mc,{className:"min-h-screen",children:(0,a.jsx)(f,{children:(0,a.jsxs)("div",{className:"space-y-6 py-6",children:[e,t]})})}),_[21]=e,_[22]=s):s=_[22],y=s;break e}let s=[...t].sort(G);h=f,d=B.mc,g="pb-12",u="space-y-6 py-6",_[23]!==I||_[24]!==k?(N=(0,a.jsx)(b,{raceId:k,details:I}),_[23]=I,_[24]=k,_[25]=N):N=_[25],p="space-y-6",_[26]!==M||_[27]!==I?(e=e=>(0,a.jsx)(z,{entrant:e,raceDetails:I,currentSeason:M},e.horseId),_[26]=M,_[27]=I,_[28]=e):e=_[28],j=s.map(e)}_[5]=M,_[6]=I,_[7]=T?.entrants,_[8]=k,_[9]=d,_[10]=h,_[11]=p,_[12]=j,_[13]=u,_[14]=N,_[15]=g,_[16]=y}else d=_[9],h=_[10],p=_[11],j=_[12],u=_[13],N=_[14],g=_[15],y=_[16];return y!==Symbol.for("react.early_return_sentinel")?y:(_[29]!==p||_[30]!==j?(v=(0,a.jsx)("div",{className:p,children:j}),_[29]=p,_[30]=j,_[31]=v):v=_[31],_[32]!==u||_[33]!==N||_[34]!==v?(w=(0,a.jsxs)("div",{className:u,children:[N,v]}),_[32]=u,_[33]=N,_[34]=v,_[35]=w):w=_[35],_[36]!==d||_[37]!==g||_[38]!==w?(P=(0,a.jsx)(d,{className:g,children:w}),_[36]=d,_[37]=g,_[38]=w,_[39]=P):P=_[39],_[40]!==h||_[41]!==P?(S=(0,a.jsx)(h,{children:P}),_[40]=h,_[41]=P,_[42]=S):S=_[42],S)};function G(e,t){return e.post-t.post}var X=s(24322),V=s.n(X);let W=()=>{let e,t,s=(0,r.c)(3),{race_id:l}=(0,n.useRouter)().query,c=Array.isArray(l)?l[0]:l;return c?(s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(V(),{children:[(0,a.jsx)("title",{children:"Racing Form | Photo Finish™ LIVE"}),(0,a.jsx)("meta",{name:"description",content:"Advanced racing form with detailed handicapping information for Photo Finish LIVE horse racing."})]}),s[0]=e):e=s[0],s[1]!==c?(t=(0,a.jsxs)(a.Fragment,{children:[e,(0,a.jsx)(i.A,{children:(0,a.jsx)(q,{raceId:c})})]}),s[1]=c,s[2]=t):t=s[2],t):null}},24335:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/races/[race_id]/forms",function(){return s(9384)}])},37290:(e,t,s)=>{"use strict";s.d(t,{K:()=>i});var a=s(26514),r=s(72122),l=s(1455),n=s(21958);s(75834);let i=e=>{let t,s,i,c,d,o=(0,r.c)(14),{children:x,error:m,className:h,refetch:f,isFetching:p}=e;o[0]!==h?(t=(0,n.cR)(h,"flex flex-col items-center justify-center flex-1 max-h-[35rem]"),o[0]=h,o[1]=t):t=o[1];let j=x||"Looks like we ran into a problem";return o[2]!==j?(s=(0,a.jsx)(l.EY.default,{className:"text-2xl font-normal font-roboto-slab text-secondary-400",children:j}),o[2]=j,o[3]=s):s=o[3],o[4]!==m?(i=m&&(0,a.jsxs)(l.EY.default,{className:"my-4 text-lg text-center ",children:[m instanceof Error&&m.message,"string"==typeof m&&m]}),o[4]=m,o[5]=i):i=o[5],o[6]!==p||o[7]!==f?(c=f&&(0,a.jsx)(l.jn,{className:"mt-4 h-10 w-32",onClick:()=>f(),loading:p,children:"Try again"}),o[6]=p,o[7]=f,o[8]=c):c=o[8],o[9]!==t||o[10]!==s||o[11]!==i||o[12]!==c?(d=(0,a.jsxs)("div",{className:t,children:[s,i,c]}),o[9]=t,o[10]=s,o[11]=i,o[12]=c,o[13]=d):d=o[13],d}}},e=>{e.O(0,[2449,6593,636,8792],()=>e(e.s=24335)),_N_E=e.O()}]);

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.