PageSourceSearch

https://juddmonte.com/_next/static/chunks/3573.a8797c97e331b69c.js

js juddmonte.com collected 2026-10-02 10:55:00 UTC 15,826 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3573],{7227:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(20296),i=r(37876);let a=(e="",t="",r="",a="")=>{let l;return(t||r)&&e&&a&&(l=(0,i.jsx)(n.A,{href:"internal"===e?t:r,type:e,children:a})),l}},20296:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(79600),i=r(37876);let a=e=>{let{children:t,href:r,type:a}=e;return(0,i.jsx)(n.A,{className:"button",href:r,type:a,children:t})}},34081:(e,t,r)=>{"use strict";r.d(t,{i:()=>l,L:()=>s});var n=r(27454),i=r.n(n),a=r(37876);let l=e=>{if(!e)return null;let{type:t,excerpt:r,acf:n}=e,l=(0,a.jsx)("div",{className:"card-content-section",children:i()(r&&r.rendered)}),{stallion_header_pedigree:s,stallion_header_height:c,stallion_header_date_to_stud:o,stallion_header_fee:d,race_horse_dob:u,race_horse_details:h,race_horse_ridden_by:f,race_horse_trained_by:p,trainer_details:m,team_member_position:b,team_member_email:j,team_member_phone:v}=n,{user:x,domain:g,email:y,encoded:A}=function(e){if(!e||"string"!=typeof e||!e.includes("@"))return{user:"",domain:"",email:"",encoded:""};let[t,r]=e.split("@"),n=`${t}@${r}`,i=n.split("").map(e=>`&#${e.charCodeAt(0)};`).join("");return{user:t,domain:r,email:n,encoded:i}}(j),{countryCode:_,areaCode:w,localNumber:k,phone:N,encoded:O}=function(e){if(!e||"string"!=typeof e)return{countryCode:"",areaCode:"",localNumber:"",phone:"",encoded:""};let t=e.replace(/\s+/g,""),r=t.match(/^\+\d+/),n=r?r[0]:"",i=n?t.slice(n.length):t,a=i.match(/\(\d+\)/),l=a?a[0]:"",s=i.replace(l,""),c=e.split("").map(e=>`&#${e.charCodeAt(0)};`).join("");return{countryCode:n,areaCode:l,localNumber:s,phone:e,encoded:c}}(v);switch(t){case"stallion":l=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"card-content-section",children:(0,a.jsxs)("p",{children:[s&&(0,a.jsxs)("span",{children:[i()(s),(0,a.jsx)("br",{})]}),c&&(0,a.jsxs)("span",{children:[i()(c),(0,a.jsx)("br",{})]}),o&&(0,a.jsxs)("span",{children:[i()(o),(0,a.jsx)("br",{})]}),d&&(0,a.jsx)("span",{children:i()(d)})]})}),r&&r.rendered&&(0,a.jsx)("div",{className:"card-content-section",children:i()(r&&r.rendered)})]});break;case"race-horse":l=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"card-content-section",children:(0,a.jsxs)("div",{children:[h&&(0,a.jsx)("div",{children:i()(h)}),u&&(0,a.jsxs)("div",{className:"card-content-field-side-by-side",children:[(0,a.jsx)("span",{children:"Date of birth:"})," ",i()(u)]}),p&&(0,a.jsxs)("div",{className:"card-content-field-side-by-side",children:[(0,a.jsx)("span",{children:"Trained by:"}),i()(p)]}),f&&(0,a.jsxs)("div",{className:"card-content-field-side-by-side",children:[(0,a.jsx)("span",{children:"Ridden by:"}),i()(f)]})]})}),r&&r.rendered&&(0,a.jsx)("div",{className:"card-content-section",children:i()(r&&r.rendered)})]});break;case"trainer":l=(0,a.jsx)(a.Fragment,{children:m&&(0,a.jsx)("div",{className:"card-content-section",children:(0,a.jsx)("div",{children:m&&(0,a.jsx)("div",{children:i()(m)})})})});break;case"team-member":l=(0,a.jsx)(a.Fragment,{children:(b||v||j)&&(0,a.jsx)("div",{className:"card-content-section",children:(0,a.jsxs)("div",{children:[b&&(0,a.jsx)("div",{children:(0,a.jsx)("strong",{children:i()(b)})}),j&&(0,a.jsx)("div",{children:(0,a.jsx)("a",{href:`mailto:${y}`,dangerouslySetInnerHTML:{__html:A}})}),v&&(0,a.jsx)("div",{children:(0,a.jsx)("a",{href:`tel:${N}`,dangerouslySetInnerHTML:{__html:O}})})]})})})}return l},s=e=>{if(!e)return null;let{type:t,acf:r}=e,n="";switch(t){case"stallion":n=r&&r.stallion_country;break;case"race-horse":n=r&&r.race_horse_country;break;case"trainer":n=r&&r.trainer_country}return n}},44060:function(e,t,r){(function(e,t){"use strict";var n="default"in t?t.default:t;function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},f="Expected a function",p=NaN,m=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,v=/^0o[0-7]+$/i,x=parseInt,g="object"==typeof h&&h&&h.Object===Object&&h,y="object"==typeof self&&self&&self.Object===Object&&self,A=g||y||Function("return this")(),_=Object.prototype.toString,w=Math.max,k=Math.min,N=function(){return A.Date.now()};function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function S(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==_.call(t))return p;if(O(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=O(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(m,"");var n=j.test(e);return n||v.test(e)?x(e.slice(2),n?2:8):b.test(e)?p:+e}var P=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw TypeError(f);return O(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),function(e,t,r){var n,i,a,l,s,c,o=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw TypeError(f);function p(t){var r=n,a=i;return n=i=void 0,o=t,l=e.apply(a,r)}function m(e){var r=e-c;return void 0===c||r>=t||r<0||u&&e-o>=a}function b(){var e,r=N();if(m(r))return j(r);s=setTimeout(b,(e=t-(r-c),u?k(e,a-(r-o)):e))}function j(e){return s=void 0,h&&n?p(e):(n=i=void 0,l)}function v(){var e,r=N(),a=m(r);if(n=arguments,i=this,c=r,a){if(void 0===s)return o=e=c,s=setTimeout(b,t),d?p(e):l;if(u)return s=setTimeout(b,t),p(c)}return void 0===s&&(s=setTimeout(b,t)),l}return t=S(t)||0,O(r)&&(d=!!r.leading,a=(u="maxWait"in r)?w(S(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),o=0,n=c=i=s=void 0},v.flush=function(){return void 0===s?l:j(N())},v}(e,t,{leading:n,maxWait:t,trailing:i})},z=function(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1},T=n.createContext({fallbackWidth:null,fallbackHeight:null,forceFallback:!1,throttle:200});T.displayName="SizesContext";var C=function(e){return e.width<480},$=function(e){return e.width>=1024},E=function(e){return!$(e)},L=Object.freeze({isMobile:C,isTablet:function(e){var t=e.width;return t>=480&&t<1024},isDesktop:$,isGtMobile:function(e){return!C(e)},isGtTablet:function(e){return $(e)},isStTablet:function(e){return C(e)},isStDesktop:E,isTabletAndGreater:function(e){return!C(e)},isTabletAndSmaller:function(e){return!E(e)}}),D=function(e){var t,r,n,i,a,l;return r=(t={fallbackHeight:e.fallbackHeight,fallbackWidth:e.fallbackWidth,forceFallback:e.forceFallback}).fallbackWidth,n=t.fallbackHeight,a=void 0!==(i=t.forceFallback)&&i,{width:(l="undefined"!=typeof window)&&!a?window.innerWidth:void 0===r?null:r,height:l&&!a?window.innerHeight:void 0===n?null:n,canUseDOM:l}},F=Object.assign(function(){for(var e=arguments.length,r=Array(e),h=0;h<e;h++)r[h]=arguments[h];return function(e){var h=function(e,t){return r.map(function(r){return r(e,t)}).reduce(function(e,t){return s({},e,t)},{})},f=function(r){var s,f;function p(e){var t,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),t=(r=c(p).call(this,e))&&("object"==typeof r||"function"==typeof r)?r:u(this),a(u(u(t)),"dispatchSizes",function(){var e=t.getPropsToPass();z(e,t.state.propsToPass)&&t.setState({propsToPass:e})}),a(u(u(t)),"throttledDispatchSizes",P(t.dispatchSizes,t.props.throttle)),t.getPropsToPass=function(){return h(D(t.props),t.props)},t.state={propsToPass:t.getPropsToPass()},t}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(p,t.PureComponent),f=[{key:"getDerivedStateFromProps",value:function(e,t){var r=h(D(e),e);return z(r,t.propsToPass)?{propsToPass:r}:null}}],s=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.throttledDispatchSizes),this.dispatchSizes()}},{key:"componentWillUnmount",value:function(){this.throttledDispatchSizes.cancel(),window.removeEventListener("resize",this.throttledDispatchSizes)}},{key:"render",value:function(){var t=this.props,r=(t.fallbackHeight,t.fallbackWidth,t.forceFallback,d(t,["fallbackHeight","fallbackWidth","forceFallback"]));return n.createElement(e,l({},r,this.state.propsToPass))}}],i(p.prototype,s),f&&i(p,f),p}();return a(f,"displayName","withSizes(".concat(e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown"),")")),function(e){return n.createElement(T.Consumer,null,function(t){return n.createElement(f,l({},t,e))})}}},s({},L)),W=function(e){var t=e.children,r=e.render,n=d(e,["children","render"]),i=t||r;return i?i(n):null};
1e.withSizes=F,e.SizesProvider=function(e){var t=e.config,r=e.children;return n.createElement(T.Provider,{value:t},r)},e.createSizedComponent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return F(t)(W)},e.presets=L,e.default=F,Object.defineProperty(e,"__esModule",{value:!0})})(t,r(14232))},51665:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(54587),i=r.n(n),a=r(42583),l=r(37876);let s=e=>{let t,r,n,{image:s,thumbnailSize:c,fullSize:o,layout:d,quality:u,priority:h,objectFit:f,objectPosition:p,showCaption:m}=e;if(!s)return null;let{alt:b,sizes:j,title:v,caption:x}=s;if(!j)return null;(0,a.A)()&&(window.devicePixelRatio>1||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)").matches)&&(t=j[`${c}_2x`],r=j[`${c}_2x_height`]||j[`${c}_2x-height`],n=j[`${c}_2x_width`]||j[`${c}_2x-width`]);let g=t||j[`${c}`],y=r||j[`${c}-height`]||j[`${c}_height`],A=n||j[`${c}-width`]||j[`${c}_width`];return(o&&(g=j.full,y=j.full_height||j["full-height"],A=j.full_width||j["full-width"]),g&&("fill"===d||y&&A))?"fill"===d?(0,l.jsxs)("span",{className:"image",children:[(0,l.jsx)(i(),{src:g,alt:b||v,fill:!0,quality:u,priority:h,style:{objectFit:f,objectPosition:p},placeholder:"blur",blurDataURL:"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="}),m&&x&&(0,l.jsx)("small",{style:{display:"block",textAlign:"right"},children:x})]}):(0,l.jsxs)("span",{className:"image",children:[(0,l.jsx)(i(),{src:g,alt:b||v,height:y,width:A,quality:u,priority:h,placeholder:"blur",blurDataURL:"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="}),m&&x&&(0,l.jsx)("small",{style:{display:"block",textAlign:"right"},children:x})]}):null};s.defaultProps={thumbnailSize:"post",image:[],fullSize:!1,layout:"intrinsic",quality:65,priority:!1,objectFit:"none",objectPosition:"center center",showCaption:!1};let c=s},86542:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(32131),i=r(27454),a=r.n(i),l=r(79600),s=r(51665),c=r(37876);let o=e=>{let{post:t,cardContentInner:r,country:i,fullWidth:o,noLink:d}=e;if(!t)return null;let{destination:u,featured_image:h,title:f,label:p}=t;return o?(0,c.jsxs)("div",{className:"card card-full-width",children:[h&&0!==h.id&&(0,c.jsx)("div",{className:"card-image",children:(0,c.jsx)(s.A,{image:h,thumbnailSize:"thumbnail"})}),(0,c.jsx)("div",{className:"card-inner",children:(0,c.jsxs)("div",{className:"card-content",children:[(0,c.jsxs)("h3",{children:[f&&a()(f.rendered),p&&(0,c.jsx)("span",{className:"site-label",children:p})]}),r]})})]}):d?(0,c.jsxs)("div",{className:"card card-no-link",children:[(0,c.jsx)("div",{className:"card-top",children:(0,c.jsxs)("h2",{children:[f&&a()(f.rendered),p&&(0,c.jsx)("span",{className:"site-label",children:p}),i&&(0,c.jsx)("span",{className:`flag-icon flag-icon-${i.toLowerCase()}`,children:"\xa0"})]})}),!(0,n.Im)(h)&&(0,c.jsx)("div",{className:"card-image",children:(0,c.jsx)(s.A,{image:h,thumbnailSize:"card"})}),(0,c.jsx)("div",{className:"card-inner",children:r&&(0,c.jsx)("div",{className:"card-content",children:r})})]}):(0,c.jsxs)(l.A,{className:"card",href:u,type:"internal",children:[(0,c.jsx)("div",{className:"card-top",children:(0,c.jsxs)("h2",{children:[f&&a()(f.rendered),p&&(0,c.jsx)("span",{className:"site-label",children:p}),i&&(0,c.jsx)("span",{className:`flag-icon flag-icon-${i.toLowerCase()}`,children:"\xa0"})]})}),!(0,n.Im)(h)&&(0,c.jsx)("div",{className:"card-image",children:(0,c.jsx)(s.A,{image:h,thumbnailSize:"card"})}),(0,c.jsx)("div",{className:"card-inner",children:r&&(0,c.jsx)("div",{className:"card-content",children:r})})]})};o.defaultProps={cardContentInner:null,fullWidth:!1,noLink:!1,country:""};let d=o},93573:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(28443),i=r(7227),a=r(13832),l=r(14232),s=r(44060),c=r.n(s),o=r(35124),d=r(86542),u=r(37876);let h=e=>{let{cards:t,cardsAtFullWidth:r,isLargeScreen:n}=e;if(!t||t.length<1)return null;let{0:i}=(0,l.useState)(t.length),{0:s,1:c}=(0,l.useState)(0),{0:h}=(0,l.useState)(n?r||4:3),f=(0,l.useRef)();(0,l.useEffect)(()=>{let e=f.current.querySelector(".horizontal-card-slider-slides"),t=f.current.querySelectorAll(".horizontal-card-slider-slide")[0].clientWidth;e.scroll({left:t*s,behavior:"smooth"})},[s]);let p="3"===r?"horizontal-card-slider-slide col-10 col-sm-8 col-md-7 col
1-lg-4":"horizontal-card-slider-slide col-10 col-sm-8 col-md-7 col-lg-4 col-xl-3";return(0,u.jsxs)("div",{className:"horizontal-card-slider",ref:f,children:[(0,u.jsx)("div",{className:"horizontal-card-slider-slides row",children:t.map(e=>{let{post:t,cardContentInner:r,country:n}=e,{title:i,type:a}=t,l=`${a}-${i&&(0,o.slugify)(i.rendered)}`;return(0,u.jsx)("div",{className:p,children:(0,u.jsx)(d.A,{post:t,cardContentInner:r,country:n})},l)})}),(0,u.jsxs)("div",{className:"horizontal-card-slider-arrows",children:[0!==s&&(0,u.jsx)("button",{type:"button",className:"horizontal-card-slider-prev",onClick:()=>{0!==s&&c(s-1)},children:(0,u.jsx)(a._Jj,{})}),i-h>s&&(0,u.jsx)("button",{type:"button",className:"horizontal-card-slider-next",onClick:()=>{s!==t.length&&c(s+1)},children:(0,u.jsx)(a.X6T,{})})]})]})};h.defaultProps={cardsAtFullWidth:4,isLargeScreen:!1};let f=c()(({width:e})=>({isLargeScreen:e>=1200}))(h);var p=r(34081);let m="card_slider_",b=e=>{let{getModuleField:t,module:r}=e,a=t(r,m,"button_text"),l=t(r,m,"external_link"),s=t(r,m,"heading"),c=t(r,m,"internal_link"),o=t(r,m,"link_type"),d=t(r,m,"show_button"),h=t(r,m,"cards"),b=t(r,m,"cards_at_full_width"),j=(0,i.A)(o,c,l,a),v=h.map(e=>({post:e,cardContentInner:(0,p.i)(e),country:(0,p.L)(e)}));return(0,u.jsx)(n.A,{background:"grey",heading:s,button:d&&j,children:(0,u.jsx)(f,{cards:v,cardsAtFullWidth:parseInt(b,10)})})}}}]);

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.