1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7885],{8640:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(44433),i=t(1455);let a=(0,r.A)(i.Zp)`h-full from-black/30 to-transparent bg-gradient-to-b border border-primary-300/20 shadow-lg`},46109:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>M});var r=t(26514),i=t(72122),a=t(75834),l=t(3952),n=t(96456),o=t.n(n),c=t(46225),m=t(1455),d=t(35483),h=t(12141),x=t(58245),p=t.n(x),g=t(17472),f=t(8640),u=t(92750),w=t(72120),b=t(81406),y=t(61997),j=t(29978),v=t(2310),N=t(17973);let k=e=>{var s;let t,l,n,c,m,d,h,x,p,f,k,_,A,S,T,U,I,R,C,D,E=(0,i.c)(50),{item:L}=e,{entitlement:M}=L,{data:$,isLoading:z}=(0,w.R)(M.horseId),F=$?.horse,K=F?.racing;if(E[0]!==M)t=(0,v.Zw)(M)?v.Fb:(0,j.IR)(M)?(0,j.Sd)(M.sourceType):void 0,E[0]=M,E[1]=t;else t=E[1];let Z=t;E[2]!==M.sourceType?(l=(0,j.ji)(M.sourceType),E[2]=M.sourceType,E[3]=l):l=E[3];let V=l;E[4]!==M?(n=(0,v.Zw)(M)?(0,v.qn)({horseId:M.horseId,seriesKey:M.seriesKey}):(0,j.UA)(M),E[4]=M,E[5]=n):n=E[5];let O=n;E[6]!==Z?(c=Z?{color:Z}:void 0,E[6]=Z,E[7]=c):c=E[7],E[8]!==c?(m=(0,r.jsx)(g.WYw,{className:"shrink-0 text-lg",style:c}),E[8]=c,E[9]=m):m=E[9];let W=V?`${V} \xb7 `:"";E[10]!==M?(s=M,d=(0,v.Zw)(s)?(0,v.mQ)(s.seriesKey):s.ticketDefinitionId.replace(/^major-/,"").replace(/^satellite-/,"").replace(/-s\d+$/,"").split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),E[10]=M,E[11]=d):d=E[11],E[12]!==M.remainingValue?(h=void 0!==M.remainingValue&&M.remainingValue>0?` \xb7 ${M.remainingValue.toLocaleString()} Derby`:"",E[12]=M.remainingValue,E[13]=h):h=E[13],E[14]!==M.expiresAt?(x=M.expiresAt?` \xb7 exp ${new Date(M.expiresAt).toLocaleDateString()}`:"",E[14]=M.expiresAt,E[15]=x):x=E[15],E[16]!==W||E[17]!==d||E[18]!==h||E[19]!==x?(p=(0,r.jsxs)("span",{className:"truncate",children:[W,d,h,x]}),E[16]=W,E[17]=d,E[18]=h,E[19]=x,E[20]=p):p=E[20],E[21]!==p||E[22]!==m?(f=(0,r.jsxs)(r.Fragment,{children:[m,p]}),E[21]=p,E[22]=m,E[23]=f):f=E[23];let q=f;E[24]!==M.horseId?(k=(0,N.vl)(M.horseId),E[24]=M.horseId,E[25]=k):k=E[25],E[26]!==F?(_=F?.racing?.grade?(0,r.jsx)(u.pi,{grade:F.racing.grade,isInline:!0,className:"shrink-0"}):null,E[26]=F,E[27]=_):_=E[27];let B=F?.name??(z?"Loading horseâ¦":"Unknown horse");return E[28]!==B?(A=(0,r.jsx)("span",{className:"truncate text-sm font-semibold text-white",children:B}),E[28]=B,E[29]=A):A=E[29],E[30]!==_||E[31]!==A?(S=(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[_,A]}),E[30]=_,E[31]=A,E[32]=S):S=E[32],E[33]!==z||E[34]!==K?(T=z?(0,r.jsx)("span",{className:"text-xs text-white/40",children:"Loading preferencesâ¦"}):b.v.map(e=>{let s=K?.[e],{label:t,weight:i}=(0,y.T)(s);return t?(0,r.jsx)(a.Fragment,{children:(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 whitespace-nowrap text-xs font-semibold text-white/60",children:[t,(0,r.jsx)(u.Su,{starContainerClassName:"h-2.5 w-2.5",children:i})]})},e):null}),E[33]=z,E[34]=K,E[35]=T):T=E[35],E[36]!==T?(U=(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-x-2 gap-y-1",children:T}),E[36]=T,E[37]=U):U=E[37],E[38]!==S||E[39]!==U?(I=(0,r.jsxs)("div",{className:"min-w-0",children:[S,U]}),E[38]=S,E[39]=U,E[40]=I):I=E[40],E[41]!==k||E[42]!==I?(R=(0,r.jsx)(o(),{href:k,className:"flex items-center justify-between gap-3 transition-colors hover:text-primary-200",children:I}),E[41]=k,E[42]=I,E[43]=R):R=E[43],E[44]!==O||E[45]!==q?(C=(0,r.jsx)(o(),{href:O,className:"mt-2 flex items-center gap-1.5 rounded bg-black/20 px-2 py-1 text-xs font-semibold text-white/60 transition-colors hover:bg-primary-900/40 hover:text-white/80",children:q}),E[44]=O,E[45]=q,E[46]=C):C=E[46],E[47]!==R||E[48]!==C?(D=(0,r.jsxs)("div",{className:"rounded border border-primary-300/10 bg-primary-950/40 px-3 py-2",children:[R,C]}),E[47]=R,E[48]=C,E[49]=D):D=E[49],D},_=e=>{let s,t,a,l,n,c,m,d,h,x=(0,i.c)(25),{config:u,tickets:w}=e,b=w.length;x[0]!==u.imageUrl||x[1]!==u.label?(s=u.imageUrl?(0,r.jsx)("div",{className:"relative h-12 w-20 shrink-0",children:(0,r.jsx)(p(),{src:u.imageUrl,alt:`${u.label} artwork`,fill:!0,className:"object-contain object-left"})}):(0,r.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-lg border border-primary-300/30 bg-primary-900/50","aria-hidden":!0,
1children:(0,r.jsx)(g.WYw,{className:"text-2xl",style:{color:v.Fb}})}),x[0]=u.imageUrl,x[1]=u.label,x[2]=s):s=x[2],x[3]!==u.href||x[4]!==u.label?(t=(0,r.jsx)(o(),{href:u.href,className:"text-base font-bold text-white transition-colors hover:text-primary-200 pfmd:text-lg",children:u.label}),x[3]=u.href,x[4]=u.label,x[5]=t):t=x[5];let y=b>0?`${b} ticket${1===b?"":"s"} on hand`:"No tickets on hand";return x[6]!==y?(a=(0,r.jsx)("p",{className:"mt-1 text-xs text-white/45",children:y}),x[6]=y,x[7]=a):a=x[7],x[8]!==t||x[9]!==a?(l=(0,r.jsxs)("div",{className:"min-w-0",children:[t,a]}),x[8]=t,x[9]=a,x[10]=l):l=x[10],x[11]!==s||x[12]!==l?(n=(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[s,l]}),x[11]=s,x[12]=l,x[13]=n):n=x[13],x[14]!==b?(c=b>0?(0,r.jsx)("div",{className:"rounded bg-primary-300 px-2 py-1 text-xs font-bold text-primary-950",children:b}):null,x[14]=b,x[15]=c):c=x[15],x[16]!==n||x[17]!==c?(m=(0,r.jsx)("div",{className:"border-b border-primary-300/15 p-4 pfmd:p-5",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[n,c]})}),x[16]=n,x[17]=c,x[18]=m):m=x[18],x[19]!==u.emptyMessage||x[20]!==w?(d=(0,r.jsx)("div",{className:"flex flex-1 flex-col p-4 pfmd:p-5",children:w.length>0?(0,r.jsx)("div",{className:"space-y-2",children:w.map(A)}):(0,r.jsx)("div",{className:"flex flex-1 items-center rounded border border-white/5 bg-black/20 px-3 py-4 text-sm text-white/50",children:u.emptyMessage})}),x[19]=u.emptyMessage,x[20]=w,x[21]=d):d=x[21],x[22]!==m||x[23]!==d?(h=(0,r.jsxs)(f.A,{className:"flex h-full flex-col p-0",children:[m,d]}),x[22]=m,x[23]=d,x[24]=h):h=x[24],h};function A(e){return(0,r.jsx)(k,{item:e},e.id)}let S=["major-races","rising-stars","claim-to-fame","low-stakes-showdown","satellites"];function T(e){return e.status===v.Wv&&(!e.expiresAt||new Date(e.expiresAt)>new Date)}function U(e){let s,t=e.seriesKey?.trim()||e.ticketDefinitionId;return{id:`entitlement:${e.id}`,entitlement:e,category:(s=t.trim().toLowerCase())?s.includes("rising-stars")?"rising-stars":s.includes("claim-to-fame")?"claim-to-fame":s.includes("low-stakes-showdown")?"low-stakes-showdown":"major-races":"major-races"}}function I(e){return{id:`entitlement:${e.id}`,entitlement:e,category:"satellites"}}var R=t(20548);function C(e,s){return(0,R.Ie)(e,"")??(0,R.Ie)(e,"-text")??(0,N.x1)(s)}let D=[{id:"major-races",label:"Major Races",href:"/live-season?isUpcomingRaces=true&earliestRunTime=-300000&minAge=3",imageUrl:(0,N.x1)("major-series-header.webp"),emptyMessage:"No bronze, silver, or gold major tickets on hand."},{id:"rising-stars",label:"Rising Stars",href:"/juvenile-series?isUpcomingRaces=true&earliestRunTime=-300000&minAge=2&maxAge=2",imageUrl:C("rising-stars","race-art-styles/rising-stars.webp"),emptyMessage:"No bronze, silver, or gold Rising Stars tickets on hand."},{id:"claim-to-fame",label:"Claim to Fame",href:"/live-season?isUpcomingRaces=true&earliestRunTime=-300000&tags=art%3Dclaim-to-fame&minAge=3",imageUrl:C("claim-to-fame","race-art-styles/claim-to-fame.webp"),emptyMessage:"No bronze, silver, or gold Claim to Fame tickets on hand."},{id:"low-stakes-showdown",label:"Low Stakes Showdown",href:"/live-season?isUpcomingRaces=true&earliestRunTime=-300000&tags=art%3Dlow-stakes-showdown&minAge=3",imageUrl:C("low-stakes-showdown","race-art-styles/low-stakes-showdown.webp"),emptyMessage:"No bronze, silver, or gold Low Stakes Showdown tickets on hand."},{id:"satellites",label:"Satellites",href:"/mystable/satellites",emptyMessage:"No satellite tickets yet. Win feeder races that award tickets toward series entry fees."}],E=()=>{let e,s,t,a,l,n,x,p,g,f,u,w=(0,i.c)(27),b=(0,c.useRouter)(),{data:y,isLoading:N}=(0,h.iZ)();if(w[0]!==y)e=[...y?(y.horseTicketEntitlements??[]).filter(T).filter(j.EF).map(U).sort((e,s)=>e.entitlement.ticketDefinitionId.localeCompare(s.entitlement.ticketDefinitionId)):[],...y?(y.horseTicketEntitlements??[]).filter(T).filter(v.Zw).map(I).sort((e,s)=>e.entitlement.seriesKey.localeCompare(s.entitlement.seriesKey)):[]],w[0]=y,w[1]=e;else e=w[1];let k=e;w[2]!==k?(s=function(e){let s=Object.fromEntries(S.map(e=>[e,[]]));for(let t of e)s[t.category].push(t);return s}(k),w[2]=k,w[3]=s):s=w[3];let A=s,R=k.length;if(N){let e;return w[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{className:"flex min-h-[20rem] items-center justify-center",children:(0,r.jsx)(d.L3,{})}),w[4]=e):e=w[4],e}w[5]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Tickets Owned"}),a=(0,r.jsx)("p",{className:"mt-2 text-gray-400",children:"Bronze, silver, gold, and satellite tickets earned toward championship and special series entry."}),w[5]=t,w[6]=a):(t=w[5],a=w[6]),w[7]!==R?(l=R>0?(0,r.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:[R," ticket",1===R?"":"s"," on hand"]}
1):null,w[7]=R,w[8]=l):l=w[8],w[9]!==l?(n=(0,r.jsxs)("div",{children:[t,a,l]}),w[9]=l,w[10]=n):n=w[10],w[11]!==b?(x=(0,r.jsx)(m.jn,{type:"button",size:"sm",className:"shrink-0",onClick:()=>b.push("/stats/horses-current-leaders?mode=cash&age=5plus"),children:"5+ Earnings Leaderboards"}),w[11]=b,w[12]=x):x=w[12],w[13]!==n||w[14]!==x?(p=(0,r.jsxs)("div",{className:"mb-6 flex flex-col gap-4 pfmd:flex-row pfmd:items-start pfmd:justify-between",children:[n,x]}),w[13]=n,w[14]=x,w[15]=p):p=w[15];let C=p;if(0===R){let e,s,t;return w[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsxs)("div",{className:"rounded border border-white/10 bg-black/20 px-4 py-8 text-center",children:[(0,r.jsx)("p",{className:"text-lg text-gray-300",children:"No earned series tickets yet."}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Earn gold through win-and-in races, silver through weekly series points, or bronze through qualifier earnings."}),(0,r.jsx)(o(),{href:"/live-season",className:"mt-4 inline-block text-sm font-semibold text-primary-200 hover:text-white",children:"Browse live season series â"})]}),w[16]=e):e=w[16],w[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-4 pfsm:grid-cols-2 pfmd:gap-5",children:D.map(L)}),w[17]=s):s=w[17],w[18]!==C?(t=(0,r.jsxs)("div",{className:"container mx-auto px-4 py-6",children:[C,e,s]}),w[18]=C,w[19]=t):t=w[19],t}return w[20]!==A?(g=D.map(e=>(0,r.jsx)(_,{config:e,tickets:A[e.id]},e.id)),w[20]=A,w[21]=g):g=w[21],w[22]!==g?(f=(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 pfsm:grid-cols-2 pfmd:gap-5",children:g}),w[22]=g,w[23]=f):f=w[23],w[24]!==C||w[25]!==f?(u=(0,r.jsxs)("div",{className:"container mx-auto px-4 py-6",children:[C,f]}),w[24]=C,w[25]=f,w[26]=u):u=w[26],u};function L(e){return(0,r.jsx)(_,{config:e,tickets:[]},e.id)}function M(){let e,s=(0,i.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(l.A,{children:(0,r.jsx)(E,{})}),s[0]=e):e=s[0],e}},61997:(e,s,t)=>{"use strict";t.d(s,{T:()=>r});let r=e=>{var s;return e?{label:"string"==typeof(s=e.value)?s.replace("Turning",""):"number"==typeof s?String(s):void 0,weight:e.weight}:{label:void 0,weight:void 0}}},74887:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mystable/series",function(){return t(46109)}])}},e=>{e.O(0,[3342,1168,7985,9015,9668,6593,636,8792],()=>e(e.s=74887)),_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.