PageSourceSearch

https://www.sportinglife.com/_next/static/chunks/pages/racing/prof…/[id]/future-entries-6565ee6a36f13332.js

js sportinglife.com collected 2026-10-02 04:11:49 UTC 22,100 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4623],{2478:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/racing/profiles/[type]/[id]/future-entries",function(){return t(53504)}])},53504:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return eX},default:function(){return eJ}});var r=t(85893),i=t(67294),o=t(56404),a=t(18897),s=t(11163),u=t(69125),c=t(26042),d=t(69396),l=t(7297),f=t(45697),m=t.n(f),h=t(29815),p=t(41664),y=t.n(p),g=t(27603),b=t(14522);function x(){var e=(0,l.Z)(["\n  border-radius: ",";\n  border: solid 1px ",";\n"]);return x=function(){return e},e}function v(){var e=(0,l.Z)(["\n  width: 100%;\n  color: ",";\n"]);return v=function(){return e},e}function _(){var e=(0,l.Z)(["\n  color: #163a7a;\n  text-align: center;\n  font-weight: normal;\n  font-family: ",";\n  padding: ",";\n  padding-left: 0;\n  font-size: ",";\n  &:first-child {\n    padding-left: ",";\n    text-align: left;\n  }\n  line-height: ",";\n"]);return _=function(){return e},e}function j(){var e=(0,l.Z)(["\n  line-height: ",";\n  border-bottom: solid 1px\n    ",";\n  &:first-child {\n    border-top: solid 1px ",";\n  }\n  &:last-child {\n    border-bottom: none;\n  }\n"]);return j=function(){return e},e}function Z(){var e=(0,l.Z)(["\n  text-align: center;\n  font-weight: bold;\n  font-family: ",";\n  padding: ",";\n  padding-left: 0;\n  font-size: ",";\n  &:first-child {\n    padding-left: ",";\n    text-align: left;\n  }\n  @media (max-width: ",") {\n    padding: 1px;\n  }\n"]);return Z=function(){return e},e}var S=g.ZP.div.withConfig({displayName:"FormTable__StyledFormTableWrapper",componentId:"sc-60febcfb-0"})(x(),function(e){return e.theme.sizes.border.mediumRadius},function(e){return e.theme.colours.panelBorder}),C=g.ZP.table.withConfig({displayName:"FormTable__StyledTable",componentId:"sc-60febcfb-1"})(v(),function(e){return e.theme.colours.textPrimaryLighter}),w=g.ZP.th.withConfig({displayName:"FormTable__StyledTh",componentId:"sc-60febcfb-2"})(_(),function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.sizes.smallGap},function(e){return e.theme.fonts.size.small},function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.fonts.lineHeight.medium}),R=g.ZP.tr.withConfig({displayName:"FormTable__StyledTr",componentId:"sc-60febcfb-3"})(j(),function(e){return e.theme.fonts.lineHeight.medium},function(e){return e.theme.colours.tableHeaderBottomBorder},function(e){return e.theme.colours.panelBorder}),P=g.ZP.td.withConfig({displayName:"FormTable__StyledTd",componentId:"sc-60febcfb-4"})(Z(),function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.sizes.smallGap},function(e){return e.theme.fonts.size.xSmall},function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.breakpoints.maxMobileWidth}),T=function(e){var n=e.headers,t=e.data;return n&&t?(0,r.jsx)(S,{children:(0,r.jsxs)(C,{children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:n.map(function(e){return(0,r.jsx)(w,{children:e},e)})})}),(0,r.jsx)("tbody",{children:t.map(function(e,n){return(0,r.jsx)(R,{children:e.map(function(e,n){return(0,r.jsx)(P,{children:"object"==typeof e&&e.href?(0,r.jsx)(y(),{href:e.href,as:e.as,children:(0,r.jsx)("a",{children:e.displayText})}):e},n)})},n)})})]})}):null};T.propTypes={headers:m().array.isRequired,data:m().arrayOf(m().arrayOf(m().oneOfType([m().string,m().shape({href:m().string.isRequired,as:m().string.isRequired,displayText:m().string.isRequired}),]))).isRequired};var I=t(47568),N=t(828),z=t(97582),F=t(92933),L=t(35413),E=t(15440),k=t(1452);function q(){var e=(0,l.Z)(["\n  border-radius: ",";\n  border: solid 1px ",";\n  margin-bottom: ",";\n  line-height: ",";\n"]);return q=function(){return e},e}function G(){var e=(0,l.Z)(["\n  padding: ",";\n  border-bottom: solid 1px ",";\n\n  color: ",";\n  font-family: ",";\n  font-size: ",";\n"]);return G=function(){return e},e}function H(){var e=(0,l.Z)(["\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n"]);return H=function(){return e},e}function M(){var e=(0,l.Z)(["\n  padding: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return M=function(){return e},e}function D(){var e=(0,l.Z)(["\n  cursor: pointer;\n  padding: ",";\n\n  color: ",";\n  font-family: ",";\n  font-size: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return D=function(){return e},e}function O(){var e=(0,l.Z)(["\n  display: flex;\n  justify-content: center;\n  align-items: flex-start;\n  flex-direction: column;\n  flex: 1;\n  padding: ",";\n  cursor: pointer;\n"]);return O=function(){return e},e}function W(){var e=(0,l.Z)(["\n  color: ",";\n  font-family: ",";\n  font-size: ",";\n"]);return W=function(){return e},e}function B(){var e=(0,l.Z)(["\n  color: ",";\n  font-family: ",";\n  font-size: ",";\n"]);return B=function(){return e},e}function X(){var e=(0,l.Z)(["\n  font-family: ",";\n  font-size: ",";\n  color: ",";\n"]);return X=function(){return e},e}var J=g.ZP.div.withConfig({displayName:"FutureEntry__StyledFutureEntryWrapper",componentId:"sc-e7be7be7-0"})(q(),function(e){return e.theme.sizes.border.mediumRadius},function(e){return e.theme.colours.panelBorder},function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.fonts.lineHeight.medium}),U=g.ZP.div.withConfig({displayName:"FutureEntry__StyledFutureEntryTitle",componentId:"sc-e7be7be7-1"})(G(),function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.colours.panelBorder},function(e){return e.theme.colours.textSecondary},function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.fonts.size.medium}),V=g.ZP.div.withConfig({displayName:"FutureEntry__StyledFutureEntryInfo",componentId:"sc-e7be7be7-2"})(H()),Y=g.ZP.div.withConfig({displayName:"FutureEntry__StyledBetLinkWrapper",componentId:"sc-e7be7be7-3"})(M(),function(e){return e.theme.sizes.largeGap}),A=g.ZP.div.withConfig({displayName:"FutureEntry__StyledTime",componentId:"sc-e7be7be7-4"})(D(),function(e){return e.theme.sizes.largeGap},function(e){return e.theme.colours.textSecondary},function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.fonts.size.medium}),K=g.ZP.div.withConfig({displayName:"FutureEntry__StyledRaceDetailsWrapper",componentId:"sc-e7be7be7-5"})(O(),function(e){return e.theme.sizes.mediumGap}),Q=g.ZP.div.withConfig({displayName:"FutureEntry__StyledHorseName",componentId:"sc-e7be7be7-6"})(W(),function(e){return e.theme.colours.textSecondary},function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.fonts.size.medium}),$=g.ZP.div.withConfig({displayName:"FutureEntry__StyledRaceName",componentId:"sc-e7be7be7-7"})(B(),function(e){return e.theme.colours.textSecondary},function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.fonts.size.small}),ee=g.ZP.div.withConfig({displayName:"FutureEntry__StyledRaceDetails",componentId:"sc-e7be7be7-8"})(X(),function(e){return e.theme.fonts.family.bodyCopyLight},function(e){return e.theme.fonts.size.small},function(e){return e.theme.colours.textPrimaryLighter}),en=function(e){var n,t,o=e.result,a=e.href,s=e.as,u=e.horseName,c=e.horseId,d=(0,i.useState)(null),l=d[0],f=d[1],m=(0,i.useState)(null),h=m[0],p=m[1],g=(0,i.useState)(!1),x=g[0],v=g[1],_=o.race_id,j=(0,N.Z)((0,E.Q)(null!=_?_:0),3),Z=j[0],S=(j[1],j[2]),C="future-entry-odds-no-link";
1return _&&Z&&h&&(S(h),(null===(t=h.bookmakerOdds)||void 0===t?void 0:t.length)&&(C="future-entry-odds-with-link")),(0,i.useEffect)(function(){var e=!0;if(!_)return function(){e=!1};function n(){return(n=(0,I.Z)(function(){var n,t,r,i,o,a;return(0,z.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Promise.all([L.Z.get("/horse-racing/race/".concat(_)),L.Z.get("/horse-racing/v2/racing/race/".concat(_))])];case 1:if(t=(n=N.Z.apply(void 0,[o.sent(),2]))[0],r=n[1],!e)return[2];return p((i=(0,b.lC)(t.data,r.data)).rides.find(function(e){return e.horse.horse_reference.id==c})),f(i.race_summary),[3,3];case 2:if(a=o.sent(),!e)return[2];return console.log(a.stack),v(!0),[3,3];case 3:return[2]}})})).apply(this,arguments)}return function(){n.apply(this,arguments)}(),function(){e=!1}},[_,c]),(0,r.jsxs)(J,{children:[(0,r.jsxs)(U,{"data-testid":"future-entry-title",children:[(0,F.WJ)(o.date)," ",o.course_name]}),(0,r.jsxs)(V,{children:[(0,r.jsx)(y(),{href:a,as:s,children:(0,r.jsx)(A,{"data-testid":"future-entry-time",children:(0,F.YI)("".concat(o.date," ").concat(o.time))})}),(0,r.jsx)(y(),{href:a,as:s,children:(0,r.jsxs)(K,{children:[u&&(0,r.jsx)(Q,{"data-testid":"future-entry-horse-name",children:u}),(0,r.jsx)($,{"data-testid":"future-entry-race-name",children:o.race_name}),(0,r.jsxs)(ee,{"data-testid":"future-entry-race-details",children:[o.runner_count?"".concat(o.runner_count," Runners, "):"","Class ",o.race_class,", ",o.distance]})]})}),(0,r.jsx)(Y,{"data-testid":C,children:!x&&(null==h?void 0:null===(n=h.bookmakerOdds)||void 0===n?void 0:n.length)?(0,r.jsx)(k.Z,{runner:h,raceSummary:l}):null})]})]})};en.propTypes={result:m().shape({date:m().string.isRequired,course_name:m().string.isRequired,time:m().string.isRequired,race_name:m().string.isRequired,runner_count:m().number,race_class:m().string.isRequired,distance:m().string.isRequired,odds:m().string}).isRequired,href:m().string.isRequired,as:m().string.isRequired,horseName:m().string};var et=t(20644),er=t(90283);function ei(){var e=(0,l.Z)(["\n  font-family: ",";\n  color: ",";\n  padding: ",";\n\n  a {\n    color: ",";\n    font-weight: ",";\n  }\n"]);return ei=function(){return e},e}var eo=g.ZP.p.withConfig({displayName:"ProfileTable__StyledProfileResultTableEmpty",componentId:"sc-f675a6bd-0"})(ei(),function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.colours.titlePrimaryLighter},function(e){return e.theme.sizes.largeGap},function(e){return e.theme.colours.linkText},function(e){return e.theme.fonts.weight.bolder}),ea=function(e){return e?"/racing/racecards/[date]/[courseNameSlug]/racecard/[race_id]/[slug]":"/racing/results/[date]/[courseNameSlug]/[raceId]/[slug]"},es=function(e,n){var t={horse:"BHA",jockey:"Ride",trainer:"Horse"};return n?["Date","Pos",t[e],"Type","Race Details","Starting Price",]:["Date","Pos",t[e],"Type","Course","Distance","Going","Class","Starting Price",]},eu=function(e){var n=e.profile,t=e.type,i=e.earlyEntries,o=void 0!==i&&i,a=(0,er.$)(),s="horse"===t,u=["horse","trainer","jockey"],c=n.run_future_entries,d=n.run_previous_results,l=(0,b.VM)(s?n:{future_entries:c,previous_results:d},o),f=l.results,m=l.formatDateTime,p=l.buildHref;o||f.forEach(function(e){return e.formattedPosition=(0,b.D)(s?e:e.horse_entry)});var g,x,v,_,j,Z=function(){var e;return{name:n.person_details.name,event:"jockey"===t?"they next ride":"the
1ir horses next run",extraInfo:""}},S=function(){var e=n.name,t=n.age,r=n.sex,i=n.sire,o=et.yF[r.type],a=et.Rf[r.type],s=t&&o&&i?"".concat(e," is a ").concat(t," year old ").concat(o," sired by ").concat(i.name,". "):"";return{name:e,event:"female"===a?"she next runs":"male"===a?"he next runs":"they next run",extraInfo:s}};return(0,r.jsxs)("div",{"data-testid":"profile-table",children:[o?f.map(function(e,t){return(0,r.jsx)(en,{result:s?e:e.horse_entry,href:ea(!0),as:s?p(e):p({race_id:e.horse_entry.race_id,race_name:e.horse_entry.race_name,date:e.horse_entry.date,course_name:e.horse_entry.course_name}),horseName:s?"":e.horse_summary.name,horseId:s?n.horse_reference.id:e.horse_summary.horse_reference.id},e.race_id||t)}):(0,r.jsx)(T,{headers:es(t,a.mobile),data:(j=a.mobile,f.map(function(e){if(s){var n={href:ea(!1),as:p(e),displayText:m(e)},t=e.formattedPosition,r=e.bha||"-",i=e.run_type,o=j?(0,b.bR)(e):(0,b.ug)(e),a=e.odds||"";return[n,t,r,i].concat((0,h.Z)(o),[a])}var u={href:ea(!1),as:p({race_id:e.horse_entry.race_id,race_name:e.horse_entry.race_name,date:e.horse_entry.date,course_name:e.horse_entry.course_name}),displayText:m(e.horse_entry)},c=e.formattedPosition,d=e.horse_summary.name,l=e.horse_entry.run_type,f=j?(0,b.bR)(e.horse_entry):(0,b.ug)(e.horse_entry),y=e.horse_entry.odds||"-";return[u,c,d,l].concat((0,h.Z)(f),[y])}))}),!f.length&&(0,r.jsxs)(eo,{children:[function(e){if(!u.includes(t))return"Sorry, it looks like something went wrong!";var n=s?S(e):Z(e),r=n.name,i=n.event,o=n.extraInfo;return e?"".concat(r," currently doesn't hold any future entries. You can receive alerts when ").concat(i," using "):"No results are currently available for ".concat(r,". ").concat(o,"For today's latest racing results check out our ")}(o),u.includes(t)&&(o?(0,r.jsx)(y(),{href:"/racing/my-stable",children:(0,r.jsx)("a",{children:"My Stable."})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y(),{href:"/racing/fast-results",children:(0,r.jsx)("a",{children:"Fast Results"})}),(0,r.jsx)("span",{children:" service."})]}))]})]})};eu.propTypes={earlyEntries:m().bool,profile:m().object.isRequired,type:m().string.isRequired};var ec=t(96486);function ed(){var e=(0,l.Z)(["\n  font-family: ",";\n  color: ",";\n  font-size: ",";\n  text-align: center;\n  width: 50px;\n  cursor: pointer;\n"]);return ed=function(){return e},e}function el(){var e=(0,l.Z)(["\n  width: 25px;\n  height: 25px;\n  fill: ",";\n"]);return el=function(){return e},e}function ef(){var e=(0,l.Z)(["\n  display: block;\n  color: ",";\n"]);return ef=function(){return e},e}var em=g.ZP.div.withConfig({displayName:"StyledMyStableIcon__StyledWrapper",componentId:"sc-fa6904f2-0"})(ed(),function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.colours.textInverted},function(e){return e.theme.fonts.size.xSmall}),eh=g.ZP.svg.withConfig({displayName:"StyledMyStableIcon__StyledSvg",componentId:"sc-fa6904f2-1"})(el(),function(e){return e.theme.colours.textInverted}),ep=g.ZP.span.withConfig({displayName:"StyledMyStableIcon__StyledSpan",componentId:"sc-fa6904f2-2"})(ef(),function(e){return e.theme.colours.textInverted});function ey(e){var n=e.title,t=e.subText;return(0,r.jsxs)(em,{children:[(0,r.jsxs)(eh,{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("g",{fillRule:"evenodd",children:(0,r.jsx)("g",{transform:"translate(-1465.000000, -366.000000)",children:(0,r.jsx)("g",{transform:"translate(1365.000000, 35.000000)",children:(0,r.jsx)("g",{id:"Group-17",transform:"translate(100.000000, 331.000000)",children:(0,r.jsxs)("g",{id:"Group-16",children:[(0,r.jsx)("path",{d:"M39.9909767,62.9941812 C37.4367343,63.6507989 34.7591473,64 32,64 C14.326888,64 0,49.673112 0,32 C0,14.326888 14.326888,0 32,0 C48.5612214,0 62.1840242,12.580866 63.8326083,28.7067979 C60.3293247,25.2262267 47.1771766,12.7370076 36.5745081,10.3839888 C24.2282843,7.64402799 31.2618151,9.26129692 31.2618151,9.26129692 L26.3714618,6.64631779 L27.3040195,11.4135893 L22.7776391,8.29615168 L25.3425005,14.0611334 L22.3551936,19.1720627 L25.2119949,19.5807551 L11,42.3569235 L12.3201396,44.6504203 L15.323736,46.5456141 L19.6191665,44.0282345 L17.0643537,46.4993819 L20.119103,46.4993819 L22.1829279,44.9234283 L26.1829279,40.0607994 L31.1214724,36.3602491 C31.1214724,36.3602491 43.541829,54.0583566 39.9909767,62.9941812 Z",id:"Combined-Shape"}),(0,r.jsx)("path",{d:"M56.8413589,52.1735629 C57.8803558,50.8957236 58.8227328,49.5361712 59.6573595,48.106036 L58.7978304,44.0979619 L53.683432,33.3431953 L45.1824458,22.9201183 L38,18 L42.3218277,22.4092702 L49.5335306,32.773833 L54.6186719,43.5295858 L56.8413589,52.1735629 Z",id:"Combined-Shape"})]})})})})})]}),(0,r.jsx)(ep,{children:t})]})}ey.propTypes={title:m().string.isRequired,subText:m().string};var eg=function(e){var n=e.favourited,t=e.onClick;return(0,r.jsx)("div",{onClick:t,"data-testid":"my-stable-button",children:(0,r.jsx)(ey,{title:"My Stable",subText:void 0!==n&&n?"Followed":"My Stable"})})};
1eg.propTypes={favourited:m().bool,favouriteHandler:m().func};var eb=t(52296);function ex(){var e=(0,l.Z)(["\n  font-size: ",";\n  font-family: ",";\n  color: ",";\n  margin-bottom: ",";\n  text-transform: ",";\n"]);return ex=function(){return e},e}function ev(){var e=(0,l.Z)(["\n  font-family: ",";\n  color: ",";\n  font-size: ",";\n  line-height: ",";\n"]);return ev=function(){return e},e}function e_(){var e=(0,l.Z)([""]);return e_=function(){return e},e}function ej(){var e=(0,l.Z)(["\n  padding-right: ",";\n  font-family: ",";\n"]);return ej=function(){return e},e}function eZ(){var e=(0,l.Z)([""]);return eZ=function(){return e},e}function eS(){var e=(0,l.Z)(["\n  position: absolute;\n  right: ",";\n  top: ",";\n"]);return eS=function(){return e},e}var eC=g.ZP.h1.withConfig({displayName:"Header__Title",componentId:"sc-d3c08fbb-0"})(ex(),function(e){return e.theme.fonts.size.title},function(e){return e.theme.fonts.family.heading},function(e){return e.theme.colours.titleInverted},function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.fonts.case.heading}),ew=g.ZP.table.withConfig({displayName:"Header__DataTable",componentId:"sc-d3c08fbb-1"})(ev(),function(e){return e.theme.fonts.family.bodyCopyRegular},function(e){return e.theme.colours.textInverted},function(e){return e.theme.fonts.size.medium},function(e){return e.theme.fonts.lineHeight.medium}),eR=g.ZP.tr.withConfig({displayName:"Header__DataItem",componentId:"sc-d3c08fbb-2"})(e_()),eP=g.ZP.th.withConfig({displayName:"Header__DataKey",componentId:"sc-d3c08fbb-3"})(ej(),function(e){return e.theme.sizes.extraExtraLargeGap},function(e){return e.theme.fonts.family.bodyCopyMedium}),eT=g.ZP.td.withConfig({displayName:"Header__DataValue",componentId:"sc-d3c08fbb-4"})(eZ()),eI=g.ZP.div.withConfig({displayName:"Header__FavouriteWrapper",componentId:"sc-d3c08fbb-5"})(eS(),function(e){return e.theme.sizes.mediumGap},function(e){return e.theme.sizes.largeGap}),eN=function(e){var n=e.title,t=e.data,i=e.enableFavourite,o=e.favourited,a=e.favouriteHandler;return(0,r.jsxs)(eb.Z,{children:[(0,r.jsx)(eC,{"data-testid":"header-title",children:n}),i&&(0,r.jsx)(eI,{children:(0,r.jsx)(eg,{favourited:o,onClick:a})}),(0,r.jsx)(ew,{"data-testid":"header-data-table",children:Object.entries(t).map(function(e,n){var t=(0,N.Z)(e,2),i=t[0],o=t[1];return(0,r.jsxs)(eR,{children:[(0,r.jsx)(eP,{children:(0,ec.capitalize)(i)}),"object"==typeof o?(0,r.jsx)(eT,{children:(0,r.jsx)(y(),{href:o.href,as:o.as,children:(0,r.jsx)("a",{children:o.displayText})})}):(0,r.jsx)(eT,{children:o})]},n)})})]})};eN.propTypes={title:m().string.isRequired,data:m().objectOf(m().oneOfType([m().string.isRequired,m().shape({href:m().string.isRequired,as:m().string.isRequired,displayText:m().string.isRequired}),])).isRequired,enableFavourite:m().bool,favourited:m().bool,favouriteHandler:m().func};var ez=t(69474),eF=function(e){var n=e.type,t=e.id,o=e.name,a=e.profile,s=n.toUpperCase(),u=(0,ez.Pd)().subscriptionStore,c=(0,ez.jO)(),d=c.saveSubscriptions,l=c.deleteSubscription,f=c.loadSubscriptions;(0,i.useEffect)(function(){f()},[]);var m=function(){return!!(0,ec.get)(u,["subscriptions",s,t])},h=a.age,p=a.foaled,y=a.sex,g=(void 0===y?{}:y).type,b=a.trainer,x=void 0===b?{}:b,v=x.name,_=x.business_reference,j=(void 0===_?{}:_).id,Z=a.sire,S=(void 0===Z?{}:Z).name,C=a.dam,w=(void 0===C?{}:C).name,R=a.owner,P=et.yF[g];return(0,r.jsx)(eN,{title:o,data:"horse"===n?{age:"".concat(h," (Foaled ").concat(F.X3(p),")"),trainer:{href:"/racing/profiles/[type]/[id]",as:"/racing/profiles/trainer/".concat(j),displayText:v},sex:void 0===P?"?":P,sire:S,dam:w,owner:R}:{},enableFavourite:!0,favourited:m(),favouriteHandler:function(){return m()?l(s,t):d([{type:s,id:t,text:o}])}})};eF.propTypes={type:m().string.isRequired,profile:m().object.isRequired};var eL=t(14181);function eE(){var e=(0,l.Z)(["\n  padding: "," 0;\n  a {\n    color: ",";\n  }\n"]);return eE=function(){return e},e}function ek(){var e=(0,l.Z)(["\n  @media (max-width: ",") {\n    padding: 0 ",";\n  }\n"]);return ek=function(){return e},e}var eq=g.ZP.div.withConfig({displayName:"RacingProfile__StyledTabWrapper",componentId:"sc-7a92889a-0"})(eE(),function(e){return e.theme.sizes.largeGap},function(e){return e.theme.colours.textPrimary}),eG=g.ZP.div.withConfig({displayName:"RacingProfile__StyledProfileTableWrapper",componentId:"sc-7a92889a-1"})(ek(),function(e){return e.theme.breakpoints.layoutBreakWidth},function(e){return e.theme.sizes.mediumGap});function eH(e){var n=e.type,t=e.profile,i=e.earlyEntries,o=(0,s.useRouter)(),a="horse"===n?t.horse_reference.id:t.person_details.person_reference.id,u="horse"===n?t.name:t.person_details.name,l=[{as:"/racing/profiles/".concat(n,"/").concat(a),href:"/racing/profiles/[type]/[id]",displayText:"Form",active:!0},{as:"/racing/profiles/".concat(n,"/").concat(a,"/future-entries"),href:"/racing/profiles/[type]/[id]/future-entries",displayText:"Future Entries"},].map(function(e,n){return(0,d.Z)((0,c.Z)({},e),{id:n,active:o.pathname===e.href})});return(0,r.jsxs)("div",{"data-testid":"racing-profile",children:[(0,r.jsx)(eF,{type:n,id:a,name:u,profile:t}),(0,r.jsx)(eq,{children:(0,r.jsx)(eL.ZP,{data:l,hideUnderlineOnMobile:!1})}),(0,r.jsx)(eG,{children:(0,r.jsx)(eu,{profile:t,type:n,earlyEntries:i})})]})}eH.propTypes={type:m().string,profile:m().object,earlyEntries:m().bool};var eM=t(25925),eD=t(86850),eO=t(91609),eW=t(87493);function eB(e){return({horse:"Race Record, Future Entries & Horse Form | Sporting Life",jockey:"Jockey Profile | Sporting Life",trainer:"Trainer Profile | Sporting Life"})[e]}var eX=!0,eJ=function(e){var n,t=e.profile,i=e.hasError,c=(0,s.useRouter)().query.type,d=!i&&t?"horse"===c?t.name:null===(n=t.person_details)||void 0===n?void 0:n.name:"",l=!i&&t?d+" - "+eB(c):eB(c),f=t?(0,eW.getProfileMetaData)("horse",t):null;return(0,r.jsxs)(a.ZP,{sport:"racing",title:l,description:f,children:[(0,r.jsx)(eM.Z,{children:i?(0,u.Z)():(0,r.jsx)(eH,{type:c,profile:t,earlyEntries:!0})}),(0,r.jsx)(eD.Z,{children:(0,r.jsx)(o.Z,{sport:"racing",content:(0,eO.cG)("loginPromptMyStable")})})]})}}},function(e){e.O(0,[2544,459,8897,4676,4945,1666,5197,6522,7493,9774,2888,179],function(){return e(e.s=2478)}),_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.