PageSourceSearch

https://golfsim.co/assets/metric-D1rUypp3.js

js golfsim.co collected 2026-09-24 13:21:56 UTC 5,849 bytes, 1 lines download raw bytes

1import{c as u,r as o,g$ as g,h0 as p,a as f,j as e,L as l,b as s,A as b,J as j,bE as N}from"./index-BY0BUQGK.js";import{B as y}from"./breadcrumbs--r2PI-mZ.js";import{g as m,a as w}from"./metrics-pBBAWV3P.js";import{A as c}from"./arrow-left-DJC4pM8e.js";import"./builders-wxPRIGpg.js";import"./operator-profiles-C3Ca3qmz.js";function v(t){return w.find(n=>n.id===t.category)?.label??"Launch monitor data"}function F(){const[,t]=u("/metrics/:slug"),n=t?.slug||"",a=m(n),x=o.useMemo(()=>a?g(a):[],[a]),i=o.useMemo(()=>a?p(a,window.location.origin):void 0,[a]);if(f({title:a?`${a.name}: What It Means on a Launch Monitor`:"Metric Not Found | Golf Sim Finder",description:a?`${a.short} Learn what ${a.name.toLowerCase()} measures on a TrackMan or golf simulator, why it matters, and how to improve it.`:"",url:i?.canonical,jsonLd:i?.jsonLd,robots:a?void 0:"noindex, follow"}),!a)return e.jsx(l,{children:e.jsxs("div",{className:"container mx-auto px-4 py-20 text-center",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Metric Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"We couldn't find the data metric you're looking for."}),e.jsxs(s,{href:"/metrics",className:"inline-flex items-center text-primary font-medium hover:underline",children:[e.jsx(c,{className:"w-4 h-4 mr-2","aria-hidden":"true"})," All data metrics"]})]})});const d=a.related.map(r=>m(r)).filter(r=>!!r),h=[{heading:"What it is",body:a.definition},{heading:"Why it matters",body:a.whyItMatters},{heading:"How to improve it",body:a.howToImprove}];return e.jsxs(l,{children:[e.jsx("div",{className:"bg-card border-b",children:e.jsxs("div",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-4",children:e.jsx(y,{items:[{name:"Home",href:"/"},{name:"Data Guide",href:"/metrics"},{name:a.name}]})}),e.jsxs(s,{href:"/metrics",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground mb-6 transition-colors",children:[e.jsx(c,{className:"w-4 h-4 mr-1.5","aria-hidden":"true"})," All data metrics"]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-primary",children:[e.jsx("span",{className:"rounded-full bg-primary/10 px-3 py-1",children:v(a)}),e.jsxs("span",{className:"rounded-full bg-muted px-3 py-1 text-muted-foreground",children:["Measured in ",a.unit]})]}),e.jsx("h1",{className:"mt-4 text-4xl md:text-5xl font-bold tracking-tight text-foreground",children:a.name}),a.abbr&&e.jsxs("p",{className:"mt-1 text-base text-muted-foreground",children:["Also called ",a.abbr]}),e.jsx("p",{className:"mt-4 max-w-3xl text-lg text-muted-foreground leading-relaxed",children:a.short})]})}),e.jsxs("div",{className:"container mx-auto px-4 py-12 space-y-12",children:[e.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:h.map(r=>e.jsxs("section",{className:"rounded-xl border bg-card p-6",children:[e.jsx("h2",{className:"text-lg font-bold",children:r.heading}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:r.body})]},r.heading))}),d.length>0&&e.jsxs("section",{"aria-labelledby":"related-heading",children:[e.jsx("h2",{id:"related-heading",className:"text-2xl font-bold mb-2",children:"Related metrics"}),e.jsxs("p",{className:"text-muted-foreground mb-6 max-w-3xl",children:[a.name," doesn't work in isolation. These numbers move together — read on to see the full picture."]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:d.map(r=>e.jsxs(s,{href:`/metrics/${r.slug}`,className:"group flex flex-col rounded-xl border bg-card p-6 hover:border-primary/30 hover:shadow-lg transition-all",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h3",{className:"text-lg font-bold group-hover:text-primary transition-colors",children:r.name}),e.jsx("span",{className:"shrink-0 rounded-full bg-muted px-2.5 py-0.5 text-xs font-medium text-muted-foreground",children:r.unit})]}),e.jsx("p",{className:"mt-3 flex-1 text-sm text-muted-foreground leading-relaxed",children:r.short}),e.jsxs("span",{className:"mt-4 inline-flex items-center gap-1.5 text-sm font-medium text-primary",children:["Read the guide",e.jsx(b,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform","aria-hidden":"true"})]})]},r.slug))})]}),e.jsxs("section",{"aria-labelledby":"faq-heading",children:[e.jsx("h2",{id:"faq-heading",className:"text-2xl font-bold mb-6",children:"Frequently asked questions"}),e.jsx("div",{className:"space-y-4 max-w-3xl",children:x.map(r=>e.jsxs("div",{className:"rounded-xl border bg-card p-6",children:[e.jsx("h3",{className:"font-bold text-foreground",children:r.q}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:r.a})]},r.q))})]}),e.jsxs("section",{"aria-labelledby":"practice-heading",className:"rounded-2xl border bg-card p-8",children:[e.jsx("h2",{id:"practice-heading",className:"text-2xl font-bold",children:"Put your numbers to the test"}),e.jsx("p",{className:"mt-2 text-muted-foreground max-w-3xl leading-relaxed",children:"The best way to learn your data is to hit balls on a real launch monitor. Find an indoor golf simulator near you and book a bay."}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[e.jsxs(s,{href:"/launch-monitors",className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",children:[e.jsx(j,{className:"w-4 h-4","aria-hidden":"true"}),"Find venues by launch monitor"]}),e.jsxs(s,{href:"/browse",className:"inline-flex items-center gap-1.5 rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted transition-colors",children:[e.jsx(N,{className:"w-4 h-4","aria-hidden":"true"}),"Browse all venues"]})]})]})]})]})}export{F as default};

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.