1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,309247,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function({className:e}){return(0,t.jsx)("button",{type:"button",className:`ag-linkbtn${e?` ${e}`:""}`,onClick:()=>window.dispatchEvent(new Event("ag:open-consent")),children:"Cookie settings"})}])},434654,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(271645);e.s(["default",0,function({initials:e,avatarUrl:n="",firstName:l,email:i,isPaid:s,feedOn:o=!1,isCoach:c=!1,isFamily:u=!1,isLinked:d=!1,showBenefits:h=!1}){let[m,f]=(0,r.useState)(!1),p=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(m)return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)};function e(e){p.current&&!p.current.contains(e.target)&&f(!1)}function t(e){"Escape"===e.key&&f(!1)}},[m]),(0,t.jsxs)("div",{className:"ag-nav-account",ref:p,children:[(0,t.jsxs)("button",{type:"button",className:"ag-nav-avatar","aria-label":"Account menu","aria-haspopup":"menu","aria-expanded":m,onClick:()=>f(e=>!e),children:[n?(0,t.jsx)("img",{className:"ag-nav-avatar-photo",src:n,alt:"","aria-hidden":"true"}):(0,t.jsx)("span",{className:"ag-nav-avatar-initials","aria-hidden":"true",children:e}),(0,t.jsx)("span",{className:"ag-nav-avatar-name",children:l}),(0,t.jsx)("span",{className:"ag-nav-avatar-caret","aria-hidden":"true",children:"â¾"})]}),(0,t.jsxs)("div",{className:"ag-nav-account-menu",role:"menu","data-open":m?"true":"false",onClick:()=>f(!1),children:[(0,t.jsxs)("p",{className:"ag-nav-account-menu-head",children:["Signed in as ",(0,t.jsx)("strong",{children:i})]}),o&&(0,t.jsx)(a.default,{href:"/feed",className:"ag-nav-account-link",role:"menuitem",children:"Your feed"}),c&&(0,t.jsx)(a.default,{href:"/account/team",className:"ag-nav-account-link",role:"menuitem",children:"Team"}),u&&(0,t.jsx)(a.default,{href:"/account/family",className:"ag-nav-account-link",role:"menuitem",children:"Family"}),(0,t.jsx)(a.default,{href:"/account",className:"ag-nav-account-link",role:"menuitem",children:"Dashboard"}),(0,t.jsx)(a.default,{href:"/account/registrations",className:"ag-nav-account-link",role:"menuitem",children:"My Registrations"}),(0,t.jsx)(a.default,{href:"/account/profile",className:"ag-nav-account-link",role:"menuitem",children:"Profile"}),(0,t.jsx)(a.default,{href:"/account/preferences",className:"ag-nav-account-link",role:"menuitem",children:"Tournament preferences"}),d&&(0,t.jsx)(a.default,{href:"/account/results",className:"ag-nav-account-link",role:"menuitem",children:"Past events"}),(0,t.jsx)(a.default,{href:"/account/following",className:"ag-nav-account-link",role:"menuitem",children:"Following"}),(0,t.jsx)(a.default,{href:"/account/notifications",className:"ag-nav-account-link",role:"menuitem",children:"Notifications"}),(0,t.jsx)(a.default,{href:"/account/membership",className:"ag-nav-account-link",role:"menuitem",children:"Membership & billing"}),h&&(0,t.jsx)(a.default,{href:"/account/benefits",className:"ag-nav-account-link",role:"menuitem",children:"Member benefits"}),(0,t.jsx)(a.default,{href:"/account/support",className:"ag-nav-account-link",role:"menuitem",children:"Support requests"}),!s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"ag-nav-account-divider"}),(0,t.jsx)(a.default,{href:"/upgrade",className:"ag-nav-account-link",role:"menuitem",style:{color:"var(--color-crimson, #c00)",fontWeight:600},children:"Upgrade â"})]}),(0,t.jsx)("div",{className:"ag-nav-account-divider"}),(0,t.jsx)("form",{action:"/sign-out",method:"POST",style:{margin:0},children:(0,t.jsx)("button",{type:"submit",className:"ag-nav-account-link ag-nav-account-link--muted",style:{background:"none",border:"none",width:"100%",textAlign:"left",cursor:"pointer",font:"inherit",padding:"inherit"},children:"Sign out"})})]})]})}])},77568,e=>{"use strict";e.s(["trackPersonalization",0,function(e,t,a){try{fetch("/api/track/personalization",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({eventType:e,surface:t,payload:a??{}}),keepalive:!0,credentials:"same-origin"}).catch(()=>{})}catch{}}])},463077,e=>{"use strict";var t=e.i(271645),a=e.i(618566);async function r(e,t,a){let r=`https://api.bigdatacloud.net/data/reverse-geocode
1-client?latitude=${e}&longitude=${t}&localityLanguage=en`;try{let e=await fetch(r,{signal:a});if(!e.ok)return null;let t=await e.json(),n=t.city||t.locality,l=function(e,t){if(e){let t=e.match(/^[A-Z]{2}-([A-Z0-9]{1,4})$/);if(t)return t[1]}return t}(t.principalSubdivisionCode,t.principalSubdivision);if(n&&l)return`${n}, ${l}`;if(n&&t.countryCode&&"US"!==t.countryCode)return`${n}, ${t.countryCode}`;if(n)return n;if(l)return l;return null}catch{return null}}let n="agv2-loc",l="agv2.userLocation";async function i(e){try{let t=new AbortController,a=setTimeout(()=>t.abort(),4e3),r=await fetch("/api/location",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e?{lat:e.lat,lng:e.lng,label:e.label}:{clear:!0}),cache:"no-store",signal:t.signal});if(clearTimeout(a),r.ok)return}catch{}!function(e){let t;if("u"<typeof document)return;if(!e){document.cookie=`${n}=; Max-Age=0; Path=/; SameSite=Lax`;return}let a=(t=`${e.lat.toFixed(4)}:${e.lng.toFixed(4)}`,e.label?`${t}:${encodeURIComponent(e.label)}`:t),r="https:"===window.location.protocol?"; Secure":"";document.cookie=`${n}=${a}; Max-Age=7776000; Path=/; SameSite=Lax${r}`}(e)}var s=e.i(634605),o=e.i(77568);function c(){try{let e=window.localStorage.getItem(l);if(!e)return null;let t=JSON.parse(e);if(t?.v!==1)return null;return t}catch{return null}}function u(e){try{e?window.localStorage.setItem(l,JSON.stringify(e)):window.localStorage.removeItem(l)}catch{}}e.s(["isStoredLocationFresh",0,function(e){return Date.now()-e.at<2592e6},"readStored",0,c,"useNearMe",0,function({defaultRadiusMiles:e=250,navigateTarget:n="page"}={}){let l=(0,a.useRouter)(),[d,h]=(0,t.useState)(!1),[m,f]=(0,t.useState)(null),p=(0,t.useCallback)(async(t,a,r)=>{let c=r??void 0;if(u({v:1,lat:t,lng:a,label:c,at:Date.now()}),await i({lat:t,lng:a,label:c}),(0,o.trackPersonalization)("location-set","home"===n?"home":"search",{hasLabel:!!r}),"home"===n)return void window.location.reload();let d=new URLSearchParams(window.location.search);d.set("lat",t.toFixed(4)),d.set("lng",a.toFixed(4)),d.get("radius")||d.set("radius",String(e)),r?d.set("near",r):d.delete("near"),d.set("sort","distance"),d.delete("page"),l.push((0,s.tournamentSearchUrl)(d))},[l,e,n]),g=(0,t.useCallback)(e=>{"geolocation"in navigator?(h(!0),f(null),navigator.geolocation.getCurrentPosition(async e=>{let{latitude:t,longitude:a}=e.coords,n=null;try{let e=new AbortController,l=setTimeout(()=>e.abort(),3e3);n=await r(t,a,e.signal),clearTimeout(l)}catch{}h(!1),await p(t,a,n)},t=>{h(!1);let a=t.code===t.PERMISSION_DENIED?"denied":t.code===t.POSITION_UNAVAILABLE?"unavailable":"other";e?.onError?e.onError(a):"denied"===a?f("Location blocked. Enable in your browser's site settings."):"unavailable"===a?f("Location unavailable. Try again in a moment."):f("Could not get your location. Try again.")},{enableHighAccuracy:!1,timeout:1e4,maximumAge:3e5})):e?.onError?e.onError("unavailable"):f("Location services not available in this browser.")},[p]),b=(0,t.useCallback)(async()=>{if(u(null),await i(null),"home"===n)return void window.location.reload();let e=new URLSearchParams(window.location.search);e.delete("lat"),e.delete("lng"),e.delete("radius"),e.delete("near"),"distance"===e.get("sort")&&e.delete("sort"),e.delete("page"),l.push((0,s.tournamentSearchUrl)(e))},[l,n]);return(0,t.useEffect)(()=>{let e=!1,t=c();if(t&&!t.label)return(async()=>{let a=await r(t.lat,t.lng);!e&&a&&(u({...t,label:a,at:t.at}),await i({lat:t.lat,lng:t.lng,label:a}))})(),()=>{e=!0}},[]),{busy:d,error:m,setError:f,applyLocation:p,requestLocation:g,clearLocation:b}}],463077)},863374,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(463077),n=e.i(634605);e.s(["default",0,function({activeLabel:e}){let l=(0,a.useRouter)(),{busy:i,requestLocation:s}=(0,r.useNearMe)();return(0,t.jsxs)("button",{type:"button",className:"ag-nav-nearme",onClick:()=>{s({onError:()=>{l.push((0,n.tournamentSearchUrl)(new URLSearchParams({pickState:"1"}))+"#ts-filter")}})},disabled:i,title:e?`Find tournaments near you (currently ${e})`:"Find tournaments near me","aria-label":"Find tournaments near me",children:[i?(0,t.jsx)("span",{className:"ag-nav-nearme-spinner","aria-hidden":"true"}):(0,t.jsx)("span",{className:"ag-nav-nearme-pin","aria-hidden":"true",children:"ð"}),(0,t.jsx)("span",{className:"ag-nav-nearme-label",children:"Near me"})]})}])},192473,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(618566),n=e.i(102014);let l=["/","/sign-in","/sign-up","/forgot-password","/reset-password","/sign-out","/upgrade"];e.s(["default",0,function({carryRoot:e=!1,base:i="/sign-in",...s}){let o=(0,r.usePathname)()??"/",c=(0,n.useDeepLinkQs)(),u=!l.some(t=>"/"===t?!e&&"/"===o:o===t||o.startsWith(t+"/")),d=c?`${o}?${c}`:o,h=u?`${i}?next=${encodeURIComponent(d)}`:i;return(0,t.jsx)(a.default,{href:h,...s})}])},95187,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={callServer:function(){return l.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var n in r)Object.defineProperty(a,n,{enumerable:!0,get:r[n]});let l=e.r(132120),i=e.r(92245),s=e.r(235326)},151916,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["default",0,function({children:e,delay:r=0,y:n=8,repeat:l=!1,className:i=""}){let s=(0,a.useRef)(null),[o,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=s.current;if(!e)return;if("u"<typeof IntersectionObserver)return void c(!0);let t=new IntersectionObserver(e=>{for(let a of e)a.isIntersecting?(c(!0),l||t.unobserve(a.target)):l&&c(!1)}
1,{rootMargin:"0px 0px -10% 0px",threshold:.05});return t.observe(e),()=>t.disconnect()},[l]);let u={"--reveal-delay":`${r}ms`,"--reveal-y":`${n}px`};return(0,t.jsx)("div",{ref:s,className:`ag-reveal${o?" is-revealed":""}${i?` ${i}`:""}`,style:u,children:e})}])},981757,e=>{"use strict";let t=[{slug:"golf-ball",label:"Golf balls"},{slug:"golf-club",label:"Golf clubs"},{slug:"shaft",label:"Shafts"},{slug:"apparel",label:"Apparel"},{slug:"yardage-book",label:"Yardage books"},{slug:"tee-booking",label:"Tee bookings"},{slug:"instruction",label:"Instruction"},{slug:"travel",label:"Travel"},{slug:"app",label:"Apps / digital"},{slug:"other",label:"Other"}],a=[{slug:"pushdown",label:"Pushdown (970Ã90)"},{slug:"leaderboard",label:"Leaderboard (728Ã90)"},{slug:"rectangle",label:"Rectangle (300Ã250)"},{slug:"half-page",label:"Half page (300Ã600)"},{slug:"mobile-banner",label:"Mobile banner (320Ã50)"},{slug:"mobile-large",label:"Mobile large (320Ã100)"},{slug:"video-billboard",label:"Video billboard (16:9 max 1280Ã720)"},{slug:"takeover",label:"Full-page takeover (article interstitial)"}];e.s(["AD_CATEGORIES",0,t,"AD_KINDS",0,[{slug:"image",label:"Image banner"},{slug:"video",label:"Video (MP4 / WebM)"},{slug:"html",label:"HTML / <ins> tag"},{slug:"script",label:"Script tag (executes)"},{slug:"iframe",label:"Iframe tag (sandboxed)"}],"AD_SIZES",0,a,"AD_SIZE_DIMENSIONS",0,{pushdown:{w:970,h:90},leaderboard:{w:728,h:90},rectangle:{w:300,h:250},"half-page":{w:300,h:600},"mobile-banner":{w:320,h:50},"mobile-large":{w:320,h:100},"video-billboard":{w:1280,h:720},takeover:{w:1600,h:900}},"getCategoryLabel",0,function(e){return e?t.find(t=>t.slug===e)?.label??e:"â"},"getSizeLabel",0,function(e){return e?a.find(t=>t.slug===e)?.label??e:"â"}])},500909,e=>{"use strict";e.s(["parseVideoConfig",0,function(e){let t={headline:null,ctaLabel:null,queueOrder:null,hoverOnly:!1};if(!e||0===e.trim().length)return t;try{let a=JSON.parse(e);if("object"!=typeof a||null===a||Array.isArray(a))return t;return"string"==typeof a.headline&&a.headline.trim().length>0&&(t.headline=a.headline.trim().slice(0,90)),"string"==typeof a.ctaLabel&&a.ctaLabel.trim().length>0&&(t.ctaLabel=a.ctaLabel.trim().slice(0,60)),"number"==typeof a.queueOrder&&Number.isInteger(a.queueOrder)&&a.queueOrder>=1&&a.queueOrder<=99&&(t.queueOrder=a.queueOrder),!0===a.hoverOnly&&(t.hoverOnly=!0),t}catch{return t}},"serializeVideoConfig",0,function(e){let t=e.headline?.trim().slice(0,90)||null,a=e.ctaLabel?.trim().slice(0,60)||null,r=null!==e.queueOrder&&Number.isInteger(e.queueOrder)&&e.queueOrder>=1&&e.queueOrder<=99?e.queueOrder:null;return t||a||null!==r||e.hoverOnly?JSON.stringify({v:1,...t?{headline:t}:{},...a?{ctaLabel:a}:{},...null!==r?{queueOrder:r}:{},...e.hoverOnly?{hoverOnly:!0}:{}}):""}])},808818,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(657688),n=e.i(483640);e.s(["default",0,function({src:e,name:l,variant:i="card-overlay",className:s}){let[o,c]=(0,a.useState)(!1);if(o)return null;let u=["tlc","inline"===i?"tlc--inline":"tlc--overlay",s??""].filter(Boolean).join(" ");return(0,t.jsx)("span",{className:u,"aria-hidden":"true",children:(0,t.jsx)(r.default,{src:e,alt:l,width:64,height:64,loading:"lazy",unoptimized:!(0,n.isOptimizableSrc)(e),onError:()=>c(!0)})})}])},32285,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(657688),n=e.i(483640);let l=[{hue:142,sat:22,light:22},{hue:28,sat:28,light:24},{hue:205,sat:26,light:24},{hue:350,sat:18,light:24},{hue:215,sat:14,light:22}];function i({courseName:e,state:a}){let r=function(e){if(!e)return l[0];let t=0;for(let a=0;a<e.length;a++)t=31*t+e.charCodeAt(a)>>>0;return l[t%l.length]}((e??"")+(a??"")),n=`hsl(${r.hue}, ${r.sat}%, ${r.light}%)`,s=`hsl(${r.hue}, ${Math.max(0,r.sat-8)}%, ${Math.max(8,r.light-8)}%)`,o=e&&"TBD"!==e&&e.trim()||"Course TBD";return(0,t.jsxs)("div",{className:"ag-cardart-fallback",style:{background:`linear-gradient(135deg, ${n} 0%, ${s} 100%)`},children:[(0,t.jsxs)("svg",{className:"ag-cardart-fallback-flag","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M5 21V4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}
1),(0,t.jsx)("path",{d:"M5 4 L19 8 L5 12",fill:"currentColor",opacity:"0.85"}),(0,t.jsx)("ellipse",{cx:"11",cy:"21",rx:"6",ry:"1",fill:"currentColor",opacity:"0.25"})]}),(0,t.jsxs)("div",{className:"ag-cardart-fallback-body",children:[(0,t.jsx)("span",{className:"ag-cardart-fallback-name",children:o}),a&&a.length<=4&&(0,t.jsx)("span",{className:"ag-cardart-fallback-state",children:a})]})]})}e.s(["default",0,function({image:e,courseName:l,state:s,caption:o,alt:c,wrapperClassName:u="ts-card-art",captionClassName:d="ts-card-art-caption"}){let[h,m]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:u,"aria-hidden":!c,children:[e&&!h?(0,t.jsx)(r.default,{src:e,alt:c??"",width:640,height:400,sizes:"(max-width: 768px) 100vw, 400px",loading:"lazy",unoptimized:!(0,n.isOptimizableSrc)(e),onError:()=>m(!0)}):(0,t.jsx)(i,{courseName:l,state:s}),o&&(0,t.jsx)("span",{className:d,children:o})]})}])},308131,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(375264);e.s(["default",0,function({href:e,className:n,itemId:l,placement:i,ariaLabel:s,children:o}){let c=()=>(0,r.firePromoBeacon)("c",l,i);return e.startsWith("/")?(0,t.jsx)(a.default,{href:e,className:n,prefetch:!1,onClick:c,"aria-label":s,children:o}):(0,t.jsx)("a",{href:e,className:n,onClick:c,"aria-label":s,children:o})}])},412957,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(522016),n=e.i(95187);let l=(0,n.createServerReference)("60f10bedcc9c14b3388904cd74d7a11d2002c216af",n.callServer,void 0,n.findSourceMapURL,"saveTournamentToSchedule"),i=(0,n.createServerReference)("40e2fd0b1cfb34faea0a7ef224567bc05ae8010a5f",n.callServer,void 0,n.findSourceMapURL,"removeTournamentFromSchedule"),s="hp-sched-btn";e.s(["default",0,function({tournamentId:e,surface:n="unknown",initialSaved:o=!1,allowRemove:c=!1,variant:u="pill"}){let[d,h]=(0,a.useState)(o),[m,f]=(0,a.useState)(null),[p,g]=(0,a.useState)(null),[b,v]=(0,a.useTransition)();function x(e){f(e),setTimeout(()=>f(null),2800)}function j(){d||b||v(async()=>{let t=await l(e,n);t.ok?(g(null),h(!0),x("Added to your schedule")):t.limitReached&&g(t.limit??null)})}let y=null!=p?(0,t.jsx)("div",{className:"hp-sched-upsell",role:"status",children:(0,t.jsxs)("span",{children:["Your plan keeps ",p," event",1===p?"":"s",". The Schedule Builder is a Member tool â"," ",(0,t.jsx)(r.default,{href:"/upgrade?from=schedule-limit",children:"become a Member"})," to add more."]})}):null;function N(){d&&!b&&v(async()=>{(await i(e)).ok&&(h(!1),x("Removed from your schedule"))})}let w=m?(0,t.jsxs)("div",{className:"hp-sched-toast",role:"status",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})," ",m]}):null;return"block"===u?d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ag-btn ag-btn--outline",style:{width:"100%",color:"var(--color-fairway-dark, #2d5e1f)",borderColor:"var(--color-fairway-dark, #2d5e1f)"},children:"â On your schedule"}),c&&(0,t.jsx)("button",{type:"button",onClick:N,disabled:b,className:"ag-btn ag-btn--ghost",style:{width:"100%",color:"var(--color-stone-600, #6B6760)"},children:b?"Removingâ¦":"Remove from schedule"}),w]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:b,className:"ag-btn ag-btn--outline",style:{width:"100%"},children:b?"Addingâ¦":"+ Add to my schedule"}),w,y]}):d?(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,t.jsxs)("span",{className:`${s} ${s}--saved`,"aria-label":"On your schedule",title:"On your schedule",children:[(0,t.jsx)("span",{className:`${s}-glyph`,"aria-hidden":"true",children:"â"}),(0,t.jsx)("span",{className:`${s}-label`,children:"On schedule"})]}),c&&(0,t.jsx)("button",{type:"button",onClick:N,disabled:b,className:"hp-sched-remove","aria-label":"Remove from schedule",title:"Remove from schedule",children:b?"â¦":"Remove"}),w]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:j,disabled:b,className:s,"aria-label":"Add to schedule",title:"Add to your schedule",children:[(0,t.jsx)("span",{className:`${s}-glyph`,"aria-hidden":"true",children:b?"â¦":"+"}),(0,t.jsx)("span",{className:`${s}-label`,children:"Schedule"})]}),w,y]})}],412957)},316371,e=>{"use strict";function t(e){return e.trim().toLowerCase().replace(/&/g,"and").replace(/\s+/g," ")}let a=new Map([...["Sunnehanna Amateur","Northeast Amateur","North & South Amateur","Trans-Miss Amateur","Southern Amateur","Pacific Coast Amateur","Western Amateur"].map(e=>[t(e),"mens"]),...["Sea Island Women's Amateur","Southwestern Women's Amateur","North & South Women's Amateur","Women's Western Amateur","LNGA Amateur"].map(e=>[t(e),"womens"])]);e.s(["eliteAmateurMembership",0,function(e){if(!e)return{isElite:!1,division:null};let r=a.get(t(e))??null;return{isElite:null!==r,division:r}}])},801867,e=>{"use strict";var t=e.i(843476),a=e.i(316371);function r({variant:e}){return(0,t.jsx)("img",{src:"/series/elite-amateur-golf-series.png",alt:"Elite Amateur Golf Series",className:"compact"===e?"ea-chip-mark":"td-elite-mark"})}e.s(["EliteAmateurBadge",0,function({series:e}){let{isElite:n}=(0,a.eliteAmateurMembership)(e);return n?(0,t.jsx)("span",{className:"ea-series-chip",title:"Part of the Elite Amateur Golf Series",children:(0,t.jsx)(r,{variant:"compact"})}):null}])},742505,e=>{"use strict";var t=e.i(843476),a=e.i(463077);e.s(["default",0,function({activeLat:e,activeLng:r,activeLabel:n,defaultRadiusMiles:l=250,navigateTarget:i="page",variant:s="default",linkLabel:o="Use my location"}){let{busy:c,error:u,applyLocation:d,requestLocation:h,clearLocation:m}=(0,a.useNearMe)({defaultRadiusMiles:l,navigateTarget:i}),f=null!=e&&null!=r,p=(0,a.readStored)(),g=!f&&p&&(0,a.isStoredLocationFresh)(p);if("link"===s)return f?null:(0,t.jsxs)("button",{type:"button",className:"nmb-link",onClick:()=>h(),disabled:c,"aria-label":"Set your location to see events near you",children:[c?"Findingâ¦":o,u&&(0,t.jsx)("span",{className:"nmb-link-error",role:"alert",children:u})]});if("icon"===s){let a=(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 1.5C5.2 1.5 3 3.7 3 6.5c0 3.6 5 8 5 8s5-4.4 5-8c0-2.8-2.2-5-5-5zm0 6.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z",fill:"
1currentColor"})});if(f){let l=n??`${e.toFixed(2)}, ${r.toFixed(2)}`;return(0,t.jsx)("button",{type:"button",className:"nmb-icon nmb-icon--active",onClick:()=>{m()},title:`Showing tournaments near ${l} â tap to clear`,"aria-label":`Clear location (near ${l})`,children:a})}return(0,t.jsx)("button",{type:"button",className:"nmb-icon",onClick:()=>h(),disabled:c,title:u??(c?"Finding your locationâ¦":"Use my location"),"aria-label":"Use my location",children:c?(0,t.jsx)("span",{className:"nmb-icon-spinner","aria-hidden":"true"}):a})}if(f){let a=n??`${e.toFixed(2)}, ${r.toFixed(2)}`;return(0,t.jsx)("div",{className:"nmb-row",children:(0,t.jsxs)("span",{className:"nmb-chip nmb-chip--active",children:[(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 1.5C5.2 1.5 3 3.7 3 6.5c0 3.6 5 8 5 8s5-4.4 5-8c0-2.8-2.2-5-5-5zm0 6.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z",fill:"currentColor"})}),"Near ",a,(0,t.jsx)("button",{type:"button",className:"nmb-chip-clear",onClick:()=>{m()},"aria-label":"Clear location",children:"Ã"})]})})}return(0,t.jsxs)("div",{className:"nmb-row",children:[(0,t.jsxs)("button",{type:"button",className:"nmb-button",onClick:()=>h(),disabled:c,children:[(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 1.5C5.2 1.5 3 3.7 3 6.5c0 3.6 5 8 5 8s5-4.4 5-8c0-2.8-2.2-5-5-5zm0 6.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z",fill:"currentColor"})}),c?"Findingâ¦":"Use my location"]}),g&&p&&(0,t.jsx)("button",{type:"button",className:"nmb-restore",onClick:()=>{d(p.lat,p.lng,p.label??null)},children:p.label?`Use saved (${p.label})`:"Use saved location"}),u&&(0,t.jsx)("span",{className:"nmb-error",role:"alert",children:u})]})}])},549620,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["default",0,function({value:e}){let r=(0,a.useRef)(null),[n,l]=(0,a.useState)(e),i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let t=r.current;if(!t||i.current||"u"<typeof IntersectionObserver||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let a=new IntersectionObserver(t=>{if(!t.some(e=>e.isIntersecting)||i.current)return;i.current=!0,a.disconnect();let r=performance.now(),n=t=>{let a=Math.min((t-r)/900,1);l(Math.round(e*(1-Math.pow(1-a,3)))),a<1&&requestAnimationFrame(n)};requestAnimationFrame(n)},{threshold:.5});return a.observe(t),()=>a.disconnect()},[e]),(0,t.jsx)("span",{ref:r,className:"ag-score",suppressHydrationWarning:!0,children:n.toLocaleString()})}])},324127,486619,432458,e=>{"use strict";var t=e.i(843476);let a=(e,t)=>({width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:!1,...t});function r({size:e=14,...n}){return(0,t.jsxs)("svg",{...a(e,n),viewBox:"0 0 16 16",children:[(0,t.jsx)("path",{d:"M3 2v12",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M3 3l8 1.5L8 6.5l3 1.5-8 1V3z",fill:"currentColor"})]})}function n({size:e=14,...r}){return(0,t.jsxs)("svg",{...a(e,r),viewBox:"0 0 16 16",children:[(0,t.jsx)("circle",{cx:"5",cy:"5",r:"2",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"11",cy:"5",r:"2",fill:"currentColor"}),(0,t.jsx)("path",{d:"M2 13c0-2 1.5-3 3-3s3 1 3 3M8 13c0-2 1.5-3 3-3s3 1 3 3",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}function l({size:e=14,...r}){return(0,t.jsxs)("svg",{...a(e,r),viewBox:"0 0 16 16",children:[(0,t.jsx)("circle",{cx:"5",cy:"5",r:"2",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"11",cy:"5",r:"2",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"5",cy:"11",r:"2",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"11",cy:"11",r:"2",fill:"currentColor"})]})}function i({size:e=14,...r}){return(0,t.jsxs)("svg",{...a(e,r),viewBox:"0 0 16 16",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.3"}),(0,t.jsx)("path",{d:"M8 4v4l3 1.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]})}function s({size:e=14,...r}){return(0,t.jsxs)("svg",{...a(e,r),viewBox:"0 0 16 16",children:[(0,t.jsx)("path",{d:"M8 2l5 1.5v5c0 2.5-2 4.5-5 5.5-3-1-5-3-5-5.5v-5L8 2z",stroke:"currentColor",strokeWidth:"1.3",f
1ill:"none"}),(0,t.jsx)("path",{d:"M6 8l1.5 1.5L10 7",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})}e.s(["FormatIcon",0,function({format:e,...a}){let o=e.toLowerCase();return o.includes("mid-am")||o.includes("senior")?(0,t.jsx)(i,{...a}):o.includes("2-man")?(0,t.jsx)(n,{...a}):o.includes("four-ball")?(0,t.jsx)(l,{...a}):o.includes("usga")||o.includes("qualifier")?(0,t.jsx)(s,{...a}):(0,t.jsx)(r,{...a})},"isDefaultFormat",0,function(e){if(!e)return!0;let t=e.toLowerCase();return t.includes("stroke")||t.includes("medal")}],324127);var o=e.i(522016),c=e.i(634605);e.s(["default",0,function({t:e,isPaid:a=!1,size:r="sm",className:n}){let l="md"===r?"ag-btn--md":"ag-btn--sm",i=n??"",s=function(e,t){if(!0===e.isInvitational&&!t.hasApprovedInvite)return{kind:"invitational"};if("invite-only"===e.registrationMethod||"invite-only"===e.status)return{kind:"invite-only"};if(t.hasVipAccess&&!0===e.isRegistrationEvent)return{kind:"internal"};if("open"!==e.status&&"closing"!==e.status)return{kind:"none"};if(!0===e.isRegistrable)return{kind:"internal"};let a=e.registrationUrl?.trim();return a?!0===e.isPartnerEvent||t.isPaid?{kind:"external",href:a,sponsored:!0}:{kind:"paywall",href:`/upgrade?from=registration&t=${encodeURIComponent(e.tournamentId)}`}:{kind:"none"}}({tournamentId:e.id,status:e.status,registrationMethod:e.registrationMethod??null,registrationUrl:e.registrationUrl??null,isRegistrable:e.isRegistrable??!1,isPartnerEvent:e.isPartnerEvent??!1,isInvitational:e.isInvitational??!1},{isPaid:a});switch(s.kind){case"invitational":return(0,t.jsx)(o.default,{href:(0,c.tournamentDetailUrl)(e.id,e.name),className:`ag-btn ag-btn--primary ${l} ${i}`.trim(),children:"Apply for entry"});case"invite-only":return(0,t.jsx)("span",{className:`ag-btn ag-btn--ghost ${l} ${i}`.trim(),"aria-disabled":"true",children:"Invite only"});case"internal":return(0,t.jsx)(o.default,{href:(0,c.tournamentDetailUrl)(e.id,e.name),className:`ag-btn ag-btn--primary ${l} ${i}`.trim(),children:"Register"});case"external":return(0,t.jsx)("a",{href:s.href,target:"_blank",rel:s.sponsored?"sponsored noopener":"noopener",className:`ag-btn ag-btn--primary ${l} ${i}`.trim(),children:"Register â"});case"paywall":return(0,t.jsxs)(o.default,{href:s.href,className:`ag-btn ag-btn--primary ${l} ${i} td-reg-cta-locked`.trim(),"aria-label":"Register â members only",title:"Tournament registration is a member feature",style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,t.jsx)("span",{children:"Register"}),(0,t.jsx)("span",{"aria-hidden":"true",style:{fontSize:9,fontWeight:700,textTransform:"uppercase",letterSpacing:.5,padding:"1px 5px",borderRadius:999,background:"rgba(255,255,255,0.22)",color:"#fff",lineHeight:1.2},children:"Members"})]});default:return null}}],486619),e.s(["default",0,function({data:e,compact:a=!1}){return(0,t.jsxs)(o.default,{href:`/rankings/${e.type}`,className:`ag-ranking-badge${a?" ag-ranking-badge--compact":""}`,title:`Counts toward the ${e.name}`,children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"ag-ranking-badge-dot",children:"â
"}),(0,t.jsxs)("span",{className:"ag-ranking-badge-text",children:[a?"":"Counts toward ",e.name]})]})}],432458)},667585,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let r=e.r(132061);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,a)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"encodeURIPath",{enumerable:!0,get:function(){return r}})},652157,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PreloadChunks",{enumerable:!0,get:function(){return o}});let r=e.r(843476),n=e.r(174080),l=e.r(563599),i=e.r(309885),s=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=l.workAsyncStorage.getStore();if(void 0===t)return null;let a=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;a.push(...e)}}if(0===a.length)return null;
1let c=(0,s.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:a.map(e=>{let a=`${t.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:a,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(a,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return c}});let r=e.r(843476),n=e.r(271645),l=e.r(667585),i=e.r(652157);function s(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},a=(0,n.lazy)(()=>t.loader().then(s)),c=t.loading;function u(e){let s=c?(0,r.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?n.Suspense:n.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(a,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(a,{...e})});return(0,r.jsx)(u,{...o?{fallback:s}:{},children:d})}return u.displayName="LoadableComponent",u}},770703,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return n}});let r=e.r(555682)._(e.r(869093));function n(e,t){let a={};"function"==typeof e&&(a.loader=e);let n={...a,...t};return(0,r.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},81268,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(770703),n=e.i(271645),l=e.i(324127),i=e.i(32285),s=e.i(412957),o=e.i(192473);let c="hp-sched-btn";function u({tournamentId:e,isSignedIn:r,alreadySaved:n,returnTo:l,surface:i="unknown"}){if(r)return(0,t.jsx)(s.default,{tournamentId:e,surface:i,initialSaved:n,allowRemove:!0});let d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:`${c}-glyph`,"aria-hidden":"true",children:"+"}),(0,t.jsx)("span",{className:`${c}-label`,children:"Schedule"})]});return l?(0,t.jsx)(a.default,{href:`/sign-in?next=${encodeURIComponent(l)}`,className:c,"aria-label":"Sign in to add to schedule",title:"Sign in to start your schedule",children:d}):(0,t.jsx)(o.default,{carryRoot:!0,className:c,"aria-label":"Sign in to add to schedule",title:"Sign in to start your schedule",children:d})}var d=e.i(486619),h=e.i(432458),m=e.i(801867),f=e.i(440043),p=e.i(634605);let g=(0,r.default)(()=>e.A(77797),{loadableGenerated:{modules:[82713]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"hp-map-placeholder",role:"status",children:(0,t.jsx)("span",{className:"hp-map-label",children:"Loading mapâ¦"})})});e.s(["default",0,function({events:e,userLabel:r,savedIds:s,isSignedIn:o=!1,isPaid:c=!1}){let b=s??new Set,[v,x]=(0,n.useState)("list");if(!e||0===e.length)return null;let j=r?`Tournaments Near ${r}`:"Upcoming Tournaments";return(0,t.jsx)("section",{className:"hp-section",id:"tournaments-nearby",children:(0,t.jsxs)("div",{className:"hp-section-inner",children:[(0,t.jsxs)("div",{className:"hp-section-head",children:[(0,t.jsx)("h2",{className:"ag-section-heading",children:j}),(0,t.jsxs)("div",{className:"hp-toggle-group",role:"tablist","aria-label":"View mode",children:[(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":"list"===v,className:`hp-toggle-btn${"list"===v?" is-active":""}`,onClick:()=>x("list"),children:"List"}),(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":"map"===v,className:`hp-toggle-btn${"map"===v?" is-active":""}`,onClick:()=>x("map"),children:"Map"})]})]}),"list"===v?(0,t.jsx)("div",{className:"ag-card-grid",children:e.map(e=>(0,t.jsxs)("article",{className:"ag-card ag-card--with-photo",children:[(0,t.jsx)(a.default,{href:(0,p.tournamentDetailUrl)(e.id,e.name),"aria-label":e.name,children:(0,t.jsx)(i.default,{image:e.image,courseName:e.course,state:e.state,caption:e.imageHint,alt:`${e.course} â ${e.name}`,wrapperClassName:"hp-photo-art",captionClassName:"hp-photo-caption"})}),(0,t.jsxs)("div",{className:"ag-card-body",children:[(0,t.jsxs)("div",{className:"hp-card-row",children:[(0,t.jsx)(m.EliteAmateurBadge,{series:e.series}),"open"===e.status&&(0,t.jsx)("span",{className:"ag-badge ag-badge--reg-open",children:"Open"}),"closing"===e.status&&(0,t.jsx)("span",{className:"ag-badge ag-badge--closing",children:e.closesIn?`Closes ${e.closesIn}`:"Closing"}),!(0,l.isDefaultFormat)(e.format)&&(0,t.jsxs)("span",{className:"hp-format-chip",children:[(0,t.jsx)(l.FormatIcon,{format:e.format}),e.format]}),e.rankingAttachment&&(0,t.jsx)(h.default,{data:e.rankingAttachment,compact:!0})]}),(0,t.jsx)("h3",{className:"hp-card-title",children:(0,t.jsx)(a.default,{href:(0,p.tournamentDetailUrl)(e.id,e.name),children:e.name})}),(0,t.jsxs)("p",{className:"hp-card-meta",children:[e.golfCourse?(0,t.jsx)(a.default,{href:(0,f.courseUrl)({apiId:e.golfCourse.apiId,clubName:e.golfCourse.clubName,courseName:e.golfCourse.courseName}),className:"hp-card-course-link",children:e.course}):e.course," ","⢠",e.city,", ",e.state,"number"==typeof e.distanceMiles&&` ⢠${e.distanceMiles} mi`]}),(0,t.jsx)("p",{className:"hp-card-meta",style:{marginTop:4},children:e.dateRange}),(0,t.jsxs)("div",{className:"hp-card-actions",children:[e.registrable?(0,t.jsx)(d.default,{t:{id:e.id,name:e.name,status:e.status,isRegistrable:e.isRegistrable??!1,isPartnerEvent:e.isPartnerEvent??null,registrationUrl:e.registrationUrl??null,registrationMethod:e.registrationMethod??null},isPaid:c}):(0,t.jsx)(a.default,{href:(0,p.tournamentDetailUrl)(e.id,e.name),className:"ag-btn ag-btn--ghost ag-btn--sm",children:"View event"}),(0,t.jsx)(u,{tournamentId:e.id,isSignedIn:o,isPaid:c,alreadySaved:b.has(e.id)}),"number"==typeof e.spotsLeft&&(0,t.jsxs)("span",{className:"hp-spots",children:[e.spotsLeft," ",1===e.spotsLeft?"spot":"spots"]})]})]})]},e.id))}):(0,t.jsx)(g,{events:e})]})})}],81268)},429405,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.s(["default",0,function({fallback:e}){let[r,n]=(0,a.useState)(e);return(0,a.useEffect)(()=>{var e;n((e=new Date().getHours())<11?"Good morning":e<17?"Good afternoon":"Good evening")},[]),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:r})}])},622566,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(271645),n=e.i(77568);e.s(["default",0,function(){let e=(0,a.useRouter)(),l=(0,r.useCallback)(()=>{let t="https:"===window.location.protocol?"; Secure":"";document.cookie=`agv2-loc-prompt-dismissed=1; Max-Age=2592000; Path=/; SameSite=Lax${t}`,(0,n.trackPersonalization)("location-prompt-dismissed","home"),e.refresh()},[e]);return(0,t.jsx)("button",{type:"button",onClick:l,className:"ag-btn ag-btn--ghost ag-btn--sm","aria-label":"Dismiss location prompt",children:"Not now"})}])},271698,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(271645),n=e.i(634605);function l({e}){var s;let o,c=e.leaders.length>0,u=!!e.leaderboardUrl,d=u?function(e,t){if(t&&t.trim()&&"other"!==t.trim())return t.trim();try{let t=new URL(e).hostname.replace(/^www\./,"");if(t.includes("golfgenius"))return"GolfGenius";if(t.includes("clippd"))return"Clippd";if(t.includes("bluegolf"))return"BlueGolf";if(t.includes("golfstat"))return"GolfStat";if(t.includes("usga"))return"USGA";if(t.includes("amateurgolf"))return"AmateurGolf";if(t.includes("ajga"))return"AJGA";return t}catch{return null}}(e.leaderboardUrl,e.leaderboardSource):null,h=function(e){let[t,a
1]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let t=()=>a(function(e){if(!e)return null;let t=new Date(e).getTime();if(!Number.isFinite(t))return null;let a=Math.floor((Date.now()-t)/6e4);if(a<1)return"updated just now";if(a<60)return`updated ${a}m ago`;let r=Math.floor(a/60);return r<24?`updated ${r}h ago`:null}(e));t();let r=window.setInterval(t,6e4);return()=>window.clearInterval(r)},[e]),t}(e.lastVerifiedAt),m=function(e){if(e.length<2)return null;let t=i(e[0].score),a=i(e[1].score);if(null===t||null===a)return null;let r=Math.abs(a-t);return 0===r?"Tied at the top":`${r}-shot lead`}(e.leaders),f=`${(0,n.tournamentScoresIndexUrl)()}#e-${e.id}`;return(0,t.jsxs)("article",{className:`hp-live-tile${c?"":" hp-live-tile--linkout"}`,children:[(0,t.jsx)(a.default,{href:f,className:"hp-live-tile-overlay","aria-label":c?`${e.name}, ${e.round}, leader ${e.leaders[0].player} at ${e.leaders[0].score} â view full leaderboard`:`${e.name}, live now â view leaderboard`}),(0,t.jsxs)("header",{className:"hp-live-tile-head",children:[e.isCoveringLive?(0,t.jsxs)("span",{className:"hp-live-badge",children:[(0,t.jsx)("span",{className:"hp-live-badge-dot","aria-hidden":"true"}),"LIVE"]}):(0,t.jsx)("span",{className:"hp-live-badge hp-live-badge--quiet",children:"Live Now"}),(0,t.jsx)("span",{className:"hp-live-tile-round",children:e.round})]}),(0,t.jsx)("h3",{className:"hp-live-tile-name",title:e.name,children:e.name}),(0,t.jsx)("div",{className:"hp-live-tile-body",children:c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hp-live-tile-leaders",children:e.leaders.slice(0,2).map((e,a)=>(0,t.jsxs)("div",{className:"hp-live-tile-leader",children:[(0,t.jsx)("span",{className:"hp-live-tile-rank",children:e.pos||a+1}),(0,t.jsx)("span",{className:"hp-live-tile-player",children:e.player}),(0,t.jsx)("span",{className:`hp-live-tile-score${e.under?" is-under":""}`,children:e.score})]},a))}),(0,t.jsxs)("div",{className:"hp-live-tile-more",children:[m&&(0,t.jsx)("span",{className:"hp-live-tile-more-count",children:m}),(0,t.jsxs)("span",{className:"hp-live-tile-more-cta",children:["Full leaderboard ",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]})]})]}):e.matchSummary?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hp-live-tile-match",children:(s=e.matchSummary,o=[],(s.inProgress>0&&o.push(`${s.inProgress} match${1===s.inProgress?"":"es"} in progress`),s.decided>0&&o.push(`${s.decided} decided`),0===o.length)?`${s.total} match${1===s.total?"":"es"} set`:o.join(" · "))}),(0,t.jsx)("div",{className:"hp-live-tile-more",children:(0,t.jsxs)("span",{className:"hp-live-tile-more-cta",children:["Live bracket ",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]})})]}):(0,t.jsxs)("div",{className:"hp-live-tile-cta",children:[u?"View live scoreboard":"View tournament"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]})}),e.coverage&&(0,t.jsxs)(a.default,{href:(0,n.newsArticleUrl)(e.coverage.articleId,e.coverage.slug),className:"hp-live-coverage",title:e.coverage.title,children:[function(e){switch(e){case"live-coverage":case"tournament-recap":case"tournament-preview":switch(e){case"tournament-preview":return"Preview";case"tournament-recap":return"Recap";case"live-coverage":return"Live coverage";case"equipment-review":return"Equipment";case"course-review":return"Course review";case"player-profile":return"Profile";case"sponsor-content":return"Sponsored";case"editorial":return"Editorial";case"instruction":return"Instruction";default:return"News"}default:return"Our coverage"}}(e.coverage.articleType)," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),(0,t.jsxs)("footer",{className:"hp-live-tile-foot",children:[(0,t.jsx)("span",{className:"hp-live-tile-source",children:d?`Powered by ${d}`:u?"Live scoring":"In progress today"}),(c||e.matchSummary)&&h&&(0,t.jsx)("span",{className:"hp-live-tile-verified",children:h})]})]})}function i(e){let t=e.trim().toUpperCase();if("E"===t||"EVEN"===t||"PAR"===t)return 0;let a=t.match(/^([+-]?\d+)$/);return a?parseInt(a[1],10):null}e.s(["default",0,function({events:e,pulse:i,children:s}){let o=(0,r.useRef)(null),[c,u]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{if(c||!e||e.length<=1)return;let t=o.current;if(!t)return;let a=window.setInterval(()=>{let e=t.firstElementChild?.getBoundingClientRect().width??320,a=parseFloat(getComputedStyle(t).columnGap||"16"),r=t.scrollWidth-t.clientWidth,n=t.scrollLeft+(e+a);t.scrollTo({left:n>r-4?0:n,behavior:"smooth"})},6e3);return()=>window.clearInterval(a)},[c,e]),e&&0!==e.length)?(0,t.jsx)("section",{className:"hp-section",id:"live",children:(0,t.jsxs)("div",{className:"hp-section-inner",children:[(0,t.jsxs)("div",{className:"hp-section-head",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"ag-section-heading",children:"Live Tournaments"}),i&&i.total>0?(0,t.jsxs)("p",{className:"hp-live-pulse-bar",children:[(0,t.jsx)("strong",{children:i.total})," tournament",1===i.total?"":"s"," live right now",i.states>1&&(0,t.jsxs)(t.Fragment,{children:[" ","· ",(0,t.jsx)("strong",{children:i.states})," states"]}),i.international&&i.international>0?(0,t.jsxs)(t.Fragment,{children:[" ","· ",(0,t.jsx)("strong",{children:i.international})," international"]}):null," ","· scores updating continuously"]}):(0,t.jsx)("p",{className:"hp-section-sub",children:"Amateur tournaments are being played right now. We pull the live scores together from every scoring platform â so you can follow them all in one place."})]}),(0,t.jsx)(a.default,{href:(0,n.tournamentScoresIndexUrl)(),className:"hp-section-link",children:"All in-progress events â"})]}),(0,t.jsx)("div",{className:"hp-live-row",ref:o,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onFocusCapture:()=>u(!0),onBlurCapture:()=>u(!1),role:"region","aria-label":"Live tournaments â auto-rotating ticker",children:e.map(e=>(0,t.jsx)(l,{e:e},e.id))}),s]})}):null}],271698)},388554,e=>{e.v(t=>Promise.all(["static/chunks/0uc_eygrihf5k.js"].map(t=>e.l(t))).then(()=>t(630029)))},77797,e=>{e.v(t=>Promise.all(["static/chunks/08n87smiyjaoh.js","static/chunks/12d7yaw69p953.js"].map(t=>e.l(t))).then(()=>t(82713)))}]);
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.