PageSourceSearch

https://mystella.ai/_next/static/chunks/2526.9913b339d295913f.js

js mystella.ai collected 2026-10-05 13:35:06 UTC 32,434 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2526],{16057:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(3947).A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},20130:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(3947).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},52526:(e,t,l)=>{l.r(t),l.d(t,{MapSurface:()=>eS,PlaceDetailPage:()=>ez,decodePlaceReviews:()=>ek,directionsUrl:()=>ew,nextSelection:()=>ed,telUrl:()=>eN});var a=l(73425),i=l(19425),n=l(98162),s=l(76457),r=l(58267),c=l(20130),o=l(77651),d=l(91963),u=l(3947);let p=(0,u.A)("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var h=l(13029),f=l(89405);let x=(0,u.A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);var m=l(98663),g=l(11363),y=l(7482),b=l(39893),v=l(68863),j=l(71167),k=l(89559),w=l(5197),N=l(57947),A=l(40906),C=l(47312);function z(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function S(e){return"string"==typeof e&&e.trim().length>0?e:void 0}function M(e){return"number"==typeof e&&Number.isFinite(e)?e:void 0}function _(e){return z(e)?S(e.text):void 0}function P(e){return void 0===e.rating?void 0:(0,C.a)(e.rating,1)}function I(e){let t=e.userRatingCount;if(void 0!==t&&!(t<=0))return t>=1e3?"".concat((0,C.a)(t/1e3,1),"k"):String(t)}function E(e){switch(e.priceLevel){case"PRICE_LEVEL_INEXPENSIVE":case"PRICE_LEVEL_MODERATE":return"$";case"PRICE_LEVEL_EXPENSIVE":case"PRICE_LEVEL_VERY_EXPENSIVE":return"$$";default:return}}function T(e){let t=e.primaryTypeDisplayName;if(void 0!==t&&t.length>0)return t;let l=e.primaryType;if(void 0===l||0===l.length)return;let a=l.split("_").filter(e=>e.length>0),i=a[0];if(void 0!==i)return[i.slice(0,1).toUpperCase()+i.slice(1),...a.slice(1)].join(" ")}function R(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:800;if(void 0===e||0===e.length||0===t.length)return null;let a=e.split("/").filter(e=>e.length>0).map(encodeURIComponent).join("/");return"https://places.googleapis.com/v1/".concat(a,"/media?maxWidthPx=").concat(l,"&key=").concat(encodeURIComponent(t))}let D=(0,u.A)("StarHalf",[["path",{d:"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",key:"2ksp49"}]]);var H=l(74073);function G(e){let{candidates:t,placeId:l,glyphTile:i,className:n,style:s,testId:r,fetcher:c=H.de}=e,o=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.de,[a,i]=(0,b.useState)({placeId:t,deadPrefix:0}),n=a.placeId===t?a.deadPrefix:0,s=e[n];return(0,b.useEffect)(()=>{if(void 0===s)return;let e=new AbortController;return l.fetch(s,e.signal).then(e=>{i(l=>"failed"!==e?l:(l.placeId===t?l.deadPrefix:0)===n?{placeId:t,deadPrefix:n+1}:l)}),()=>e.abort()},[s,t,n,l]),s}(t,l,c);return void 0===o?(0,a.jsx)(a.Fragment,{children:i}):(0,a.jsx)(v.T,{src:o,fallback:(0,a.jsx)(L,{}),spinner:"regular",failure:i,className:n,style:s,testId:r,fetcher:c})}function L(){return(0,a.jsx)("span",{"aria-hidden":"true","data-testid":"place-photo-loading-plate",className:"block h-full w-full ".concat(N.kX)})}let U={tileAspect:1.5,gap:8,maxTiles:8,radius:10};async function W(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},a=0,i=0;for(let n of e){if(i>=6)break;i+=1;let e=await t(n);if("image"===e){if(2===(a+=1))return"multi"}else{if("failed"!==e)return null;l(n)}}return 0===a?"none":"single"}function V(e){let{live:t,height:l,glyphTile:i,onDead:n,fetcher:s=
1H.de}=e;return(0,a.jsx)("span",{"data-testid":"place-photo-strip",className:"flex snap-x snap-mandatory overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{height:l,gap:U.gap},children:t.slice(0,U.maxTiles).map(e=>(0,a.jsx)(F,{url:e,width:l*U.tileAspect,height:l,glyphTile:i,onDead:n,fetcher:s},e))})}function F(e){let{url:t,width:l,height:i,glyphTile:n,onDead:s,fetcher:r}=e;return(0,b.useEffect)(()=>{let e=new AbortController;return r.fetch(t,e.signal).then(e=>{"failed"===e&&s(t)}),()=>e.abort()},[t,r,s]),(0,a.jsx)("span",{"data-testid":"place-photo-strip-tile",className:"relative block shrink-0 snap-start overflow-hidden",style:{width:l,height:i,borderRadius:U.radius},children:(0,a.jsx)(v.T,{src:t,fallback:(0,a.jsx)(L,{}),spinner:"regular",failure:n,className:"absolute inset-0 h-full w-full object-cover",fetcher:r})})}let O="AIzaSyC6RLCAhfrT8d0YHCqjquOrwEWVg1_hKbA",q={photoHeight:160,radius:12,pad:10,rowGap:5,footerGap:4,starSize:9,photoWidthPx:800},B={star:"#FAB000"},Z=(0,a.jsx)(j.U,{className:"h-full w-full"});function X(e){let{place:t}=e,l=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,a=[];for(let i of e){let e=t(i);if(null!==e&&a.push(e),a.length>=l)break}return a}(t.photoRefs,e=>R(e,O,q.photoWidthPx),1/0),i=function(e,t){var l,a;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H.de,[n,s]=(0,b.useState)({placeId:t,bucket:null,failed:[]}),r=n.placeId===t?n:{placeId:t,bucket:null,failed:[]},c=e.join("\n");(0,b.useEffect)(()=>{let e=""===c?[]:c.split("\n");if(function(e,t){let l=0;for(let a of e.slice(0,6))if(null!==t.cached(a)&&(l+=1),l>=2)break;return l}(e,i)>=2)return void s({placeId:t,bucket:"multi",failed:[]});let l=new AbortController;return W(e,e=>i.fetch(e,l.signal),e=>s(l=>l.placeId===t?l.failed.includes(e)?l:{...l,failed:[...l.failed,e]}:{placeId:t,bucket:null,failed:[e]})).then(e=>{null===e||l.signal.aborted||s(l=>l.placeId===t?{...l,bucket:e}:{placeId:t,bucket:e,failed:[]})}),()=>l.abort()},[c,t,i]);let o=(0,b.useMemo)(()=>e.filter(e=>!r.failed.includes(e)),[e,r.failed]);return{multi:(l=r.bucket,a=o.length,"multi"===l||null===l&&a>1),live:o,markDead:e=>s(l=>{let a=l.placeId===t?l:{placeId:t,bucket:null,failed:[]};return a.failed.includes(e)?a:{...a,failed:[...a.failed,e]}})}}(l,t.id);return i.multi?(0,a.jsx)(V,{live:i.live,height:q.photoHeight,glyphTile:Z,onDead:i.markDead}):(0,a.jsx)("span",{className:"relative block w-full overflow-hidden",style:{height:q.photoHeight},children:(0,a.jsx)(G,{candidates:l,placeId:t.id,glyphTile:Z,testId:"place-card-photo",className:"absolute inset-0 h-full w-full object-cover"})})}function K(e){let{value:t}=e;return(0,a.jsx)("span",{"aria-hidden":"true","data-testid":"place-card-stars",className:"flex items-center gap-px",style:{color:B.star},children:[0,1,2,3,4].map(e=>t>=e+1?(0,a.jsx)(f.A,{width:q.starSize,height:q.starSize,fill:"currentColor",strokeWidth:0},e):t>=e+.5?(0,a.jsx)(D,{width:q.starSize,height:q.starSize,fill:"currentColor",strokeWidth:0},e):(0,a.jsx)(f.A,{width:q.starSize,height:q.starSize,strokeWidth:1.5},e))})}function Y(e){let{place:t}=e,l=P(t);if(void 0===l)return null;let i=I(t),n=E(t);return(0,a.jsxs)("span",{"data-testid":"place-card-footer",className:"flex items-center whitespace-nowrap pt-px",style:{gap:q.footerGap,...w.rz.caption2},children:[(0,a.jsx)("span",{className:w.i2,style:{fontWeight:(0,w.Tj)("caption2Semibold","weight")},children:l}),(0,a.jsx)(K,{value:Number(l)}),void 0!==i?(0,a.jsxs)("span",{className:w.s9,children:["(",i,")"]}):null,void 0!==n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-[rgba(60,60,67,0.3)] dark:text-[rgba(255,255,255,0.3)]",children:"\xb7"}),(0,a.jsx)("span",{className:w.s9,style:{fontWeight:(0,w.Tj)("caption2Medium","weight")},children:n})]}):null]})}function $(e){var t;let{place:l,selected:i=!1,onSelect:n}=e,s=null!=(t=l.editorialSummary)?t:T(l);return(0,a.jsxs)("button",{type:"button","data-testid":"place-card","aria-pressed":n?i:void 0,onClick:n,style:{borderRadius:q.radius,...i?{background:(0,N.I0)(.12),borderColor:w.dR,borderWidth:1}:{borderWidth:.5}},className:"block w-full overflow-hidden border text-left ".concat(i?"":"border-[var(--mac-card-border)] bg-[var(--mac-plate)]"),children:[(0,a.jsx)(X,{place:l}),(0,a.jsxs)("span",{className:"flex flex-col",style:{gap:q.rowGap,padding:q.pad},children:[(0,a.jsx)("span",{"data-testid":"place-card-title",className:"line-clamp-2 ".concat(w.i2),style:w.rz.subheadlineSemibold,children:l.name}),void 0!==s?(0,a.jsx)("span",{"data-testid":"place-card-subtitle",className:"line-clamp-2 ".concat(w.s9),style:w.rz.caption,children:s}):null,(0,a.jsx)(Y,{place:l})]})]})}var J=l(22536),Q=l(16057);let ee=(0,u.A)("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);var et=l(33327);let el=(0,u.A)("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]),ea={height:51,radius:5};
1function ei(e){let{course:t}=e,l=[];return(t.golf.weatherText&&l.push({key:"weather",Glyph:Q.A,text:t.golf.weatherText}),t.golf.driveText&&l.push({key:"drive",Glyph:ee,text:t.golf.driveText}),0===l.length)?null:(0,a.jsx)("div",{"data-testid":"golf-course-detail-facts",className:"flex w-full flex-col gap-2 p-3",style:{background:"rgb(var(--golf-plate))",borderRadius:12},children:l.map(e=>{let{key:t,Glyph:l,text:i}=e;return(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"flex w-[18px] shrink-0 justify-center ".concat(w.s9),children:(0,a.jsx)(l,{width:13,height:13,"aria-hidden":"true"})}),(0,a.jsx)("span",{className:w.i2,style:w.rz.subheadline,children:i})]},t)})})}function en(e){let{lines:t}=e;return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[(0,a.jsx)("span",{className:w.i2,style:w.rz.headline,children:"Tee times"}),t.length>0?(0,a.jsx)("div",{"data-testid":"golf-course-detail-tee-times",className:"w-full px-3",style:{background:"rgb(var(--golf-plate))",borderRadius:12},children:t.map((e,l)=>(0,a.jsxs)(b.Fragment,{children:[(0,a.jsxs)("span",{className:"flex items-center gap-2.5 py-2.5",children:[(0,a.jsx)(h.A,{width:12,height:12,className:"shrink-0",style:{color:"rgb(var(--golf-green))"},"aria-hidden":"true"}),(0,a.jsx)("span",{className:w.i2,style:w.rz.subheadline,children:e})]}),l<t.length-1?(0,a.jsx)("span",{className:"block border-t ".concat(w.zi)}):null]},l))}):(0,a.jsx)("span",{className:w.s9,style:w.rz.subheadline,children:"No listed tee times — check availability on the booking site."})]})}function es(e){let{course:t,onShowOnMap:l}=e,i=t.golf.bookingUrl;return(0,a.jsxs)("div",{"data-testid":"golf-course-detail-page",className:"flex min-h-full w-full flex-col ".concat("[--golf-green:52_199_89] dark:[--golf-green:48_209_88] [--golf-teal:0_195_208] dark:[--golf-teal:0_210_224] [--golf-yellow:255_204_0] dark:[--golf-yellow:255_214_0] [--golf-plate:242_242_247] dark:[--golf-plate:28_28_30]"),children:[(0,a.jsx)("div",{className:"sticky top-0 z-10 flex shrink-0 bg-[var(--mac-plate)] justify-end px-4 py-2.5",children:(0,a.jsxs)("button",{type:"button","data-testid":"golf-course-detail-map",onClick:l,className:"flex cursor-pointer items-center gap-1.5 ".concat(w.i2),style:w.rz.body,children:[(0,a.jsx)(s.A,{width:13,height:13,"aria-hidden":"true"}),"Map"]})}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[18px] p-4",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col gap-1.5",children:[(0,a.jsxs)("span",{className:"flex w-full items-center gap-2.5",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"flex h-[46px] w-[46px] shrink-0 items-center justify-center rounded-[10px]",style:{background:"linear-gradient(to bottom right, rgb(var(--golf-green) / 0.75), rgb(var(--golf-teal) / 0.45))"},children:(0,a.jsx)(et.A,{width:20,height:20,className:"text-white"})}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,a.jsx)("span",{"data-testid":"golf-course-detail-name",className:w.i2,style:w.rz.title3Semibold,children:t.name}),t.address?(0,a.jsx)("span",{className:w.s9,style:w.rz.subheadline,children:t.address}):null]})]}),void 0!==t.rating?(0,a.jsxs)("span",{"data-testid":"golf-course-detail-rating",className:"flex items-center gap-1",children:[(0,a.jsx)(f.A,{width:11,height:11,fill:"currentColor",strokeWidth:0,style:{color:"rgb(var(--golf-yellow))"},"aria-hidden":"true"}),(0,a.jsx)("span",{className:w.i2,style:w.rz.subheadlineSemibold,children:(0,C.a)(t.rating,1)})]}):null]}),(0,a.jsx)(ei,{course:t}),(0,a.jsx)(en,{lines:t.golf.teeTimeLines})]}),i?(0,a.jsx)("div",{className:"sticky bottom-0 mt-auto w-full shrink-0 px-4 pb-2",style:{background:"var(--mac-plate)"},children:(0,a.jsxs)("a",{href:i,target:"_blank",rel:"noreferrer","data-testid":"golf-course-detail-book",className:"flex w-full items-center justify-center gap-1.5",style:{...w.rz.headline,height:ea.height,borderRadius:ea.radius,background:"var(--mac-notkey-bordered-fill, ".concat(w.dR,")"),color:"var(--mac-notkey-bordered-label, #FFFFFF)"},children:[(0,a.jsx)(el,{width:13,height:13,"aria-hidden":"true"}),"Book"]})}):null]})}let er="AIzaSyC6RLCAhfrT8d0YHCqjquOrwEWVg1_hKbA",ec={brandIndigo:"#5C4DDB",brandPurple:"#8F47EB"},eo="[--mac-card-border:#DCDCDC] dark:[--mac-card-border:#464646]";function ed(e,t){return e===t?null:t}function eu(){let e=[{size:300,x:-120,y:-160,blur:"blur-[90px]",color:ec.brandIndigo,o:"opacity-[0.12] dark:opacity-[0.26]"},{size:280,x:140,y:60,blur:"blur-[90px]",color:ec.brandPurple,o:"opacity-[0.11] dark:opacity-[0.24]"},{size:220,x:40,y:260,blur:"blur-[80px]",color:ec.brandIndigo,o:"opacity-[0.08] dark:opacity-[0.16]"}];return(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 overflow-hidden",children:e.map(e=>(0,a.jsx)("div",{className:"absolute rounded-full ".concat(e.blur," ").concat(e.o),style:{width:e.size,height:e.size,left:"calc(50% - ".concat(e.size/2,"px + ").concat(e.x,"px)"),top:"calc(50% - ".concat(e.size/2,"px + ").concat(e.y,"px)"),background:e.color}},"".concat(e.x,",").concat(e.y)))})}let ep=[{id:"cards",label:"List",Glyph:n.A},{id:"map",label:"Map",Glyph:s.A}];function eh(e){let{tab:t,onSelect:l}=e;return(0,a.jsx)("div",{"data-testid":"map-surface-tabbar",className:"sticky top-0 z-20 flex shrink-0 justify-center pt-2.5",children:(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:ep.map(e=>{let{id:i,label:n,Glyph:s}=e,r=t===i;return(0,a.jsxs)("button",{type:"button","data-testid":"map-surface-tab-".concat(i),"aria-pressed":r,onClick:()=>l(i),className:"flex items-center gap-[5px] rounded-lg px-3.5 py-[7px] text-[11px] leading-[14px] transition-colors ".concat(r?"font-semibold ".concat(w.i2," bg-[var(--mac-material)] backdrop-blur-md"):"font-normal ".concat(w.s9)),children:[(0,a.jsx)(s,{width:12,height:12,"aria-hidden":"true"}),n]},i)})})})}function ef(e){return"".concat(e.lat,",").concat(e.lng,",").concat(e.title)}function ex(e){let{pin:t,onOpenDetails:l}=e;return(0,a.jsxs)("div",{className:"max-w-[220px] text-[13px] leading-[17px] text-[#111]",children:[(0,a.jsx)("b",{className:"mb-0.5 block font-semibold",children:t.title}),t.subtitle?(0,a.jsx)("div",{children:t.subtitle}):null,l?(0,a.jsx)("button",{type:"button","data-testid":"map-surface-page-details",onClick:l,className:"mt-1.5 cursor-pointer text-[12px] leading-[16
1px] underline",children:"Page details"}):null]})}function em(e){let{pins:t,selected:l,onSelect:n,onClear:s,onOpenDetails:r}=e,c=null!==l?t[l]:void 0,o=(0,A.W)();return er?(0,a.jsx)("div",{className:"h-full w-full overflow-hidden rounded-xl",style:{background:o.backgroundColor},children:(0,a.jsx)(i.c4,{apiKey:er,children:(0,a.jsxs)(i.T5,{defaultCenter:{lat:t[0].lat,lng:t[0].lng},defaultZoom:12,styles:o.styles,backgroundColor:o.backgroundColor,gestureHandling:"greedy",disableDefaultUI:!0,clickableIcons:!1,className:"h-full w-full",children:[(0,a.jsx)(J.FitPins,{pins:t}),t.map((e,t)=>(0,a.jsx)(J.PlacePinMarker,{pin:e,dark:o.dark,selected:l===t,onClick:()=>n(t)},ef(e))),c?(0,a.jsx)(i.Fu,{position:{lat:c.lat,lng:c.lng},onCloseClick:s,children:(0,a.jsx)(ex,{pin:c,...r&&null!==l?{onOpenDetails:()=>r(l)}:{}})}):null]})})}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-xl p-4 text-center text-[10px] leading-[13px] ".concat(w.s9),children:"Map unavailable — Google Maps key not configured. The places are listed under List."})}function eg(){return(0,a.jsx)(j.U,{className:"h-40 w-full"})}function ey(e){let{pin:t}=e,l=P({rating:"number"==typeof t.rating?t.rating:void 0});if(void 0===l)return null;let i=I({userRatingCount:"number"==typeof t.reviewCount?t.reviewCount:void 0});return(0,a.jsxs)("span",{className:"flex items-center gap-1 pt-px text-[10px] leading-[13px]",children:[(0,a.jsx)("span",{className:"font-semibold ".concat(w.i2),children:l}),(0,a.jsx)(K,{value:Number(l)}),void 0!==i?(0,a.jsxs)("span",{className:w.s9,children:["(",i,")"]}):null]})}function eb(e){let{pin:t,isOn:l,onOpen:i}=e;return(0,a.jsxs)("button",{type:"button","data-testid":"map-surface-pin","aria-pressed":l,onClick:i,style:l?{background:(0,N.I0)(.12),borderColor:w.dR}:void 0,className:"block w-full overflow-hidden rounded-xl text-left ".concat(l?"border":"border-[0.5px] border-[var(--mac-card-border)] bg-[var(--mac-plate)]"),children:[(0,a.jsx)(eg,{}),(0,a.jsxs)("span",{className:"flex flex-col gap-[5px] p-2.5",children:[(0,a.jsx)("span",{className:"line-clamp-2 text-[11px] font-semibold leading-[14px] ".concat(w.i2),children:t.title}),t.subtitle?(0,a.jsx)("span",{className:"line-clamp-2 text-[10px] leading-[13px] ".concat(w.s9),children:t.subtitle}):null,(0,a.jsx)(ey,{pin:t})]})]})}let ev="#6B57DB",ej={fontSize:22,fontWeight:700,lineHeight:"26px"};function ek(e,t){if("object"!=typeof e||null===e)return[];let l=e.items;if(!Array.isArray(l))return[];for(let e of l){if("object"!=typeof e||null===e)continue;let l=e.place;if("object"!=typeof l||null===l||l.id!==t)continue;let a=l.reviews;if(!Array.isArray(a))break;let i=[];for(let e of a){if("object"!=typeof e||null===e)continue;let t=e.authorAttribution,l=e.text;i.push({author:"string"==typeof(null==t?void 0:t.displayName)?t.displayName:"",rating:"number"==typeof e.rating?Math.round(e.rating):0,text:"string"==typeof(null==l?void 0:l.text)?l.text:"",when:"string"==typeof e.relativePublishTimeDescription?e.relativePublishTimeDescription:""})}return i}return[]}function ew(e,t){let l=encodeURIComponent(e.name),a=t?encodeURIComponent(e.id):"";return"https://www.google.com/maps/dir/?api=1&destination=".concat(e.lat,",").concat(e.lng,"&destination_place_id=").concat(a,"&travelmode=driving&q=").concat(l)}function eN(e){return"tel://".concat(e.replace(/[^0-9+]/g,""))}function eA(e){let{place:t}=e,l=b.useMemo(()=>t.photoRefs.map(e=>R(e,er)).filter(e=>null!==e),[t.photoRefs]),[i,n]=b.useState(0);return 0===l.length?(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center",style:{background:"linear-gradient(to bottom, ".concat(ev,"8C, #000000)")},children:(0,a.jsx)(r.A,{width:56,height:56,className:"text-white/40","aria-hidden":"true"})}):(0,a.jsxs)("div",{className:"relative h-full w-full",children:[(0,a.jsx)("div",{"data-testid":"map-surface-hero-strip",onScroll:e=>{let t=e.currentTarget;n(t.clientWidth>0?Math.round(t.scrollLeft/t.clientWidth):0)},className:"flex h-full w-full snap-x snap-mandatory overflow-x-auto overflow-y-hidden",children:l.map(e=>(0,a.jsx)(v.T,{src:e,spinner:"regular",fallback:(0,a.jsx)("div",{className:"h-full w-full shrink-0 snap-center",style:{background:"linear-gradient(to bottom, ".concat(ev,"73, #000000)")},"data-testid":"map-surface-hero-plate"}),className:"h-full w-full shrink-0 snap-center object-cover"},e))}),l.length>1?(0,a.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-2 flex justify-center gap-1.5",children:l.map((e,t)=>(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full ".concat(t===i?"bg-white":"bg-white/40")},e))}):null]})}function eC(e){let{title:t,Glyph:l,lines:i}=e,[n,s]=b.useState(!0);return(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 rounded-xl p-3",style:{background:"".concat(ev,"0D")},"data-testid":"map-surface-page-section",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>s(e=>!e),className:"flex items-center gap-1.5 text-left ".concat(w.i2),style:w.rz.subheadlineSemibold,children:[(0,a.jsx)(l,{width:11,height:11,"aria-hidden":"true"}),(0,a.jsx)("span",{className:"flex-1",children:t}),n?(0,a.jsx)(c.A,{width:10,height:10,className:"opacity-60","aria-hidden":"true"}):(0,a.jsx)(o.A,{width:10,height:10,className:"opacity-60","aria-hidden":"true"})]}),n?i.map(e=>(0,a.jsx)("span",{className:w.s9,style:w.rz.caption,children:e},e)):null]})}function ez(e){var t;let{place:l,reviews:i,hasGooglePlaceId:n,onShowOnMap:r}=e,c=null!=(t=l.primaryTypeDisplayName)?t:T(l),o=P(l),u=I(l),b=E(l),v=void 0===l.openNow?null:l.openNow?"Open now":"Closed",j=l.editorialSummary,k=[],N=T(l);N&&k.push({key:"type",Glyph:d.A,text:N}),b&&k.push({key:"price",Glyph:p,text:b}),v&&k.push({key:"open",Glyph:h.A,text:v}),o&&k.push({key:"rating",Glyph:f.A,text:o});let A=[];l.nationalPhoneNumber&&A.push({key:"call",Glyph:x,label:"Call",href:eN(l.nationalPhoneNumber)}),A.push({key:"directions",Glyph:m.A,label:"Directions",href:ew(l,n)}),l.websiteUri&&A.push({key:"website",Glyph:g.A,label:"Website",href:l.websiteUri});let C=[l.address,l.nationalPhoneNumber,l.websiteUri].filter(e=>"string"==typeof e&&e.length>0);return(0,a.jsxs)("div",{"data-testid":"map-surface-detail-page",className:"flex w-full flex-col",children:[(0,a.jsxs)("div",{className:"relative w-full overflow-hidden",style:{height:"calc((100vh - 70px) * 0.62)"},children:[(0,a.jsx)(eA,{place:l}),(0,a.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex items-end gap-2 p-4 pb-6",style:{background:"linear-gradient(to bottom, transparent, rgba(0,0,0,0.65))"},children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[c?(0,a.jsx)("span",{className:"uppercase text-white/85",style:{...w.rz.caption2Semibold,letterSpacing:"0.5px"},children:c}):null,(0,a.jsx)("span",{"data-testid":"map-surface-detail-title",className:"line-clamp-2 text-white",style:{...ej,textShadow:"0 0 8px rgba(0,0,0,0.6)"},children:l.name}),(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[o?(0,a.jsxs)("span",{className:"flex items-center gap-[3px]",children:[(0,a.jsx)(f.A,{width:10,height:10,fill:"currentColor",strokeWidth:0,className:"text-yellow-400","aria-hidden":"true"}),(0,a.jsx)("span",{className:"text-white",style:w.rz.subheadlineSemibold,children:o}),u?(0,a.jsxs)("span",{className:"text-white/80",style:w.rz.caption,children:["(",u,")"]}):null]}):null,b?(0,a.jsx)("span",{className:"text-white/90",style:w.rz.subheadlineSemibold,children:b}):null,v?(0,a.jsx)("span",{className:"rounded-full bg-white/20 px-2 py-[3px] text-white",style:w.rz.caption2Semibold,children:v}):null]})]}),(0,a.jsxs)("button",{type:"button","data-testid":"map-surface-detail-map",onClick:r,className:"flex shrink-0 items-center gap-1.5 rounded-full bg-white px-4 py-[11px] text-black",style:w.rz.subheadlineSemibold,children:[(0,a.jsx)(s.A,{width:11,height:11,"aria-hidden":"true"}),"Map"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3.5 p-4",children:[k.length>0?(0,a.jsx)("div",{className:"flex gap-1.5 overflow-x-auto",children:k.map(e=>{let{key:t,Glyph:l,text:i}=e;return(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-2 rounded-full px-2.5 py-[5px] ".concat(w.i2),style:{...w.rz.captionMedium,background:"".concat(ev,"1F")},children:[(0,a.jsx)(l,{width:11,height:11,className:"[@media(max-width:639px)]:size-[13px]",fill:"rating"===t?"currentColor":"none","aria-hidden":"true"}),i]},t)})}):null,j?(0,a.jsx)("p",{className:w.i2,style:{...w.rz.callout,opacity:.9},children:j}):null,(0,a.jsx)("div",{className:"flex gap-2.5",children:A.map(e=>{let{key:t,Glyph:l,label:i,href:n}=e;return(0,a.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer","data-testid":"map-surface-action-".concat(t),className:"flex flex-1 items-center justify-center gap-1.5 rounded-full py-[11px]",style:{...w.rz.subheadline,fontWeight:500,background:"".concat(ev,"1F"),color:ev},children:[(0,a.jsx)(l,{width:11,height:11,"aria-hidden":"true"}),i]},t)})}),l.weekdayDescriptions.length>0?(0,a.jsx)(eC,{title:"Hours",Glyph:h.A,lines:l.weekdayDescriptions}):null,C.length>0?(0,a.jsx)(eC,{title:"Contact",Glyph:y.A,lines:C}):null,i.length>0?(0,a.jsxs)("div",{className:"flex flex-col gap-2.5","data-testid":"map-surface-reviews",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 ".concat(w.i2),style:w.rz.subheadlineSemibold,children:[(0,a.jsx)(f.A,{width:11,height:11,"aria-hidden":"true"}),"Reviews"]}),i.map(e=>(0,a.jsxs)("div",{className:"flex flex-col gap-1 rounded-xl p-3",style:{background:"".concat(ev,"0D")},children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:w.i2,style:w.rz.caption2Semibold,children:e.author}),(0,a.jsx)("span",{className:"flex items-center gap-px text-yellow-400",children:[0,1,2,3,4].map(t=>(0,a.jsx)(f.A,{width:9,height:9,...t<e.rating?{fill:"currentColor",strokeWidth:0}:{strokeWidth:1.5},"aria-hidden":"true"},t))}),(0,a.jsx)("span",{className:"flex-1"}),e.when?(0,a.jsx)("span",{className:w.s9,style:w.rz.caption2,children:e.when}):null]}),e.text?(0,a.jsx)("span",{className:"whitespace-pre-line ".concat(w.i2),style:{...w.rz.caption,opacity:.85},children:e.text}):null]},"".concat(e.author,"-").concat(e.when,"-").concat(e.text.slice(0,24))))]}):null]})]})}function eS(e){let{record:t}=e,[l,i]=b.useState(null),[n,s]=b.useState("cards"),[r,c]=b.useState(null),o=(0,J.
1isGolfRecord)(t),d=b.useMemo(()=>(0,J.mapSurfacePins)(t),[t]),u=b.useMemo(()=>o?[]:function(e){if(!z(e)||!Array.isArray(e.items))return[];let t=e.items.map((e,t)=>({item:e,index:t})).filter(e=>z(e.item)).sort((e,t)=>{let l=M(e.item.stella_rank),a=M(t.item.stella_rank);return void 0!==l&&void 0!==a?l===a?e.index-t.index:l-a:void 0!==l?-1:void 0!==a?1:e.index-t.index}),l=[];for(let{item:e}of t){let t=function(e,t){var l,a;if(!z(e))return null;let i=z(e.location)?e.location:void 0,n=i?M(i.latitude):void 0,s=i?M(i.longitude):void 0;if(void 0===n||void 0===s||Math.abs(n)>90||Math.abs(s)>180)return null;let r=S(e.id),c=z(e.currentOpeningHours)?e.currentOpeningHours:void 0,o=z(e.regularOpeningHours)?e.regularOpeningHours:void 0,d="boolean"==typeof(null==c?void 0:c.openNow)?c.openNow:"boolean"==typeof(null==o?void 0:o.openNow)?o.openNow:void 0,u=Array.isArray(null==o?void 0:o.weekdayDescriptions)?o.weekdayDescriptions.filter(e=>"string"==typeof e):[],p=Array.isArray(e.photos)?e.photos.map(e=>z(e)?S(e.name):void 0).filter(e=>void 0!==e):[];return{id:null!=r?r:"".concat(n,",").concat(s),name:null!=(a=null!=(l=_(e.displayName))?l:r)?a:"Place",lat:n,lng:s,photoRefs:p,weekdayDescriptions:u,...S(e.formattedAddress)?{address:S(e.formattedAddress)}:{},..._(e.editorialSummary)?{editorialSummary:_(e.editorialSummary)}:{},..._(e.primaryTypeDisplayName)?{primaryTypeDisplayName:_(e.primaryTypeDisplayName)}:{},...S(e.primaryType)?{primaryType:S(e.primaryType)}:{},...void 0!==M(e.rating)?{rating:M(e.rating)}:{},...void 0!==M(e.userRatingCount)?{userRatingCount:M(e.userRatingCount)}:{},...S(e.priceLevel)?{priceLevel:S(e.priceLevel)}:{},...void 0!==d?{openNow:d}:{},...S(e.nationalPhoneNumber)?{nationalPhoneNumber:S(e.nationalPhoneNumber)}:{},...S(e.websiteUri)?{websiteUri:S(e.websiteUri)}:{},...S(e.googleMapsUri)?{googleMapsUri:S(e.googleMapsUri)}:{},...void 0!==t?{rank:t}:{}}}(e.place,M(e.stella_rank));t&&l.push(t)}return l}(t.data),[o,t.data]),p=b.useMemo(()=>o?(0,J.decodeGolfCourses)(t.data):[],[o,t.data]),h="google_places"===t.source,f=b.useCallback(e=>{i(t=>ed(t,e))},[]),x=b.useCallback(e=>{let t=u[e];t&&c(t.id)},[u]),m=b.useCallback(e=>{let t=p[e];t&&c(t.id)},[p]),g=null===r?-1:u.findIndex(e=>e.id===r),y=g>=0?u[g]:void 0,v=null===r?-1:p.findIndex(e=>e.id===r),j=v>=0?p[v]:void 0,w=(0,k.eA)(),N=void 0!==y||void 0!==j;b.useEffect(()=>{if(null!==w)return w(N?()=>c(null):null),()=>w(null)},[w,N]);let A=b.useMemo(()=>y?ek(t.data,y.id):[],[y,t.data]);return 0===d.length?null:j?(0,a.jsx)("div",{"data-testid":"map-surface-panel","data-surface":"golf-detail",className:"relative flex min-h-full w-full flex-col ".concat(eo),children:(0,a.jsx)(es,{course:j,onShowOnMap:()=>{s("map"),i(v),c(null)}})}):y?(0,a.jsx)("div",{"data-testid":"map-surface-panel","data-surface":"place-detail",className:"relative flex min-h-full w-full flex-col ".concat(eo),children:(0,a.jsx)(ez,{place:y,reviews:A,hasGooglePlaceId:h,onShowOnMap:()=>{s("map"),i(g),c(null)}})}):(0,a.jsxs)("div",{"data-testid":"map-surface-panel","data-surface":o?"golf":"places",className:"relative flex min-h-full w-full flex-col ".concat(eo),children:[(0,a.jsx)(eu,{}),(0,a.jsx)(eh,{tab:n,onSelect:s}),(0,a.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,a.jsx)("div",{"data-testid":"map-surface-map-pane","aria-hidden":"map"!==n,inert:"map"!==n||void 0,className:"absolute inset-0 pt-1.5 transition-opacity duration-200 ease-in-out ".concat("map"===n?"opacity-100":"pointer-events-none opacity-0"),children:(0,a.jsx)(em,{pins:d,selected:l,onSelect:f,onClear:()=>i(null),...h?{onOpenDetails:x}:{}})}),(0,a.jsx)("div",{"data-testid":"map-surface-list-pane","aria-hidden":"cards"!==n,inert:"cards"!==n||void 0,className:"relative transition-opacity duration-200 ease-in-out ".concat("cards"===n?"opacity-100":"pointer-events-none h-0 overflow-hidden opacity-0"),children:(0,a.jsx)("ul",{className:"flex flex-col gap-3 px-2 pb-4 pt-[26px]",children:o?d.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(eb,{pin:e,isOn:l===t,onOpen:()=>m(t)})},ef(e))):u.map((e,t)=>(0,a.jsx)("li",{"data-testid":"map-surface-pin",children:(0,a.jsx)($,{place:e,selected:l===t,onSelect:()=>x(t)})},e.id))})})]})]})}},71167:(e,t,l)=>{l.d(t,{U:()=>n});var a=l(73425),i=l(64395);function n(e){let{className:t}=e;return(0,a.jsx)("span",{"data-testid":"list-surface-image-fallback","aria-hidden":"true",className:"flex items-center justify-center ".concat(null!=t?t:""),style:{backgroundImage:"linear-gradient(to bottom right, ".concat((0,i.i)("calloutAccent",.85),", ").concat((0,i.i)("calloutAccent",.55),")")},children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,className:"shrink-0",fill:"rgba(255,255,255,0.95)",fillRule:"evenodd","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M5.5 0H18.5A5.5 5.5 0 0 1 24 5.5V18.5A5.5 5.5 0 0 1 18.5 24H5.5A5.5 5.5 0 0 1 0 18.5V5.5A5.5 5.5 0 0 1 5.5 0ZM5.1 3.55H9.05A1 1 0 0 1 10.05 4.55V8.5A1 1 0 0 1 9.05 9.5H5.1A1 1 0 0 1 4.1 8.5V4.55A1 1 0 0 1 5.1 3.55ZM4.78 14H17.97A0.78 0.78 0 0 1 17.97 15.56H4.78A0.78 0.78 0 0 1 4.78 14ZM4.78 18.44H14.47A0.78 0.78 0 0 1 14.47 20H4.78A0.78 0.78 0 0 1 4.78 18.44Z"})})})}},76457:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(3947).A)("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])},98162:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(3947).A)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},98663:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(3947).A)("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]])}}]);

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.