1import{r as c,j as e,k as d,E as m}from"./index-XB6epCF0.js";import{u as x}from"./useScrollToTop-CCvqYT_G.js";const h=({seriesId:s,className:l="",title:a="Race Results"})=>{const[i,r]=c.useState(!0),t=s?`https://halsail-1e484.kxcdn.com/Result/Public/${s}`:"https://halsail-1e484.kxcdn.com/Result/Public/91475",n=()=>{window.open(t,"_blank","noopener,noreferrer")},o=()=>{r(!1)};return e.jsx("div",{className:`relative w-full ${l}`,children:e.jsxs("div",{className:"card-luxury overflow-hidden",children:[e.jsxs("div",{className:"relative bg-yacht-gradient text-white overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute top-4 right-4",children:e.jsx(d,{className:"w-32 h-32 text-white/20 transform rotate-12"})})}),e.jsxs("div",{className:"relative flex items-center justify-between p-4 sm:p-6",children:[e.jsx("div",{className:"flex items-center gap-3 sm:gap-4",children:e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg sm:text-xl font-display font-bold",children:a}),e.jsx("p",{className:"text-xs sm:text-sm text-yacht-silver/80",children:"Powered by HalSail"})]})}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("button",{onClick:n,className:"group relative p-2 sm:p-3 hover:bg-white/10 rounded-xl transition-all duration-300 border border-transparent hover:border-white/30",title:"Open in new tab","aria-label":"Open results in new tab",children:[e.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsx(m,{className:"relative w-4 h-4 sm:w-5 sm:h-5 group-hover:scale-110 transition-transform"})]})})]}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-4",children:e.jsx("svg",{viewBox:"0 0 1440 48",className:"w-full h-full",preserveAspectRatio:"none",children:e.jsx("path",{fill:"#ffffff",d:"M0,32L60,29.3C120,27,240,21,360,21.3C480,21,600,27,720,32C840,37,960,43,1080,42.7C1200,43,1320,37,1380,34.7L1440,32L1440,48L1380,48C1320,48,1200,48,1080,48C960,48,840,48,720,48C600,48,480,48,360,48C240,48,120,48,60,48L0,48Z"})})})]}),e.jsx("div",{className:"relative bg-gradient-to-b from-yacht-mist/10 to-white p-2 sm:p-4",children:e.jsxs("div",{className:"relative h-[600px] sm:h-[700px] lg:h-[800px] bg-white rounded-xl shadow-inner overflow-hidden border-2 border-yacht-silver/30",children:[e.jsx("div",{className:"absolute -inset-[2px] bg-gradient-to-r from-yacht-primary/20 via-yacht-secondary/20 to-yacht-primary/20 rounded-xl blur-sm -z-10"}),e.jsx("iframe",{src:t,className:"w-full h-full border-0 rounded-lg",title:`HalSail Race Results - ${a}`,allow:"fullscreen",loading:"lazy",sandbox:"allow-scripts allow-same-origin allow-popups",onLoad:o}),i&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-yacht-mist/95 to-white/95 backdrop-blur-sm z-50 rounded-xl",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mb-4 flex justify-center",children:e.jsx("div",{className:"w-12 h-12 sm:w-16 sm:h-16 border-4 border-yacht-primary/30 border-t-yacht-primary rounded-full animate-spin",style:{animationDuration:"1.5s"}})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-xl sm:text-2xl font-bold text-yacht-primary",children:"Loading Race Results"}),e.jsx("p",{className:"text-sm sm:text-base text-yacht-slate-600 font-medium",children:"Fetching live data from HalSail..."})]}),e.jsxs("div",{className:"mt-4 flex justify-center gap-2",children:[e.jsx("div",{className:"w-2 h-2 bg-yacht-secondary rounded-full animate-bounce",style:{animationDelay:"0ms",animationDuration:"1.4s"}}),e.jsx("div",{className:"w-2 h-2 bg-yacht-secondary rounded-full animate-bounce",style:{animationDelay:"200ms",animationDuration:"1.4s"}}),e.jsx("div",{className:"w-2 h-2 bg-yacht-secondary rounded-full animate-bounce",style:{animationDelay:"400ms",animationDuration:"1.4s"}})]})]})})]})})]})})},b=()=>(x(),e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50",children:[e.jsxs("div",{className:"relative bg-yacht-gradient text-white overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsx("pattern",{id:"sailing-pattern-results",x:"0",y:"0",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:e.jsx("path",{d:"M10 2L18 18L2 18Z",fill:"currentColor",opacity:"0.3"})})}),e.jsx("rect",{width:"100",height:"100",fill:"url(#sailing-pattern-results)"})]})}),e.jsx("div",{className:"container mx-auto px-4 sm:px-6 pt-16 sm:pt-20 pb-24 sm:pb-32 relative z-10",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-bold mb-6 sm:mb-8 leading-tight px-2",children:["Race ",e.jsx("span",{className:"bg-gradient-to-r from-yacht-cream-400 to-yacht-cream-500 bg-clip-text text-transparent",children:"Results"})]}),e.jsx("p",{className:"text-lg sm:text-xl md:text-2xl mb-8 sm:mb-12 text-white/90 max-w-3xl mx-auto leading-relaxed px-4",children:"View live results and standings powered by HalSail"})]})}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20",children:e.jsx("svg",{viewBox:"0 0 1440 120",className:"w-full h-full",preserveAspectRatio:"none",children:e.jsx("path",{fill:"#f8fafc",d:"M0,96L60,85.3C120,75,240,53,360,48C480,43,600,53,720,69.3C840,85,960,107,1080,112C1200,117,1320,107,1380,101.3L1440,96L1440,120L1380,120C1320,120,1200,120,1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z"})})})]}),e.jsx("div",{className:"container mx-auto px-4 sm:px-6 -mt-8 sm:-mt-12 relative z-20 mb-12 sm:mb-16",children:e.jsx("div",{className:"bg-white/95 backdrop-blur-lg rounded-2xl shadow-2xl border border-white/20 overflow-hidden",children:e.jsx(h,{seriesId:91475,title:"Live Race Results"})})})]}));export{b 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.