1import{r as a,t as A,b as l,j as e,L as c}from"./index-CAgTsS9I.js";import{A as E}from"./arrow-left-BuPJNO5W.js";import{S as h}from"./shield-check-BgNs-s5f.js";import{U as T}from"./user-Bzsp7ULD.js";import{M as B}from"./mail-SHgAPKVI.js";import{L as f}from"./lock-B324poJk.js";import{E as L}from"./eye-off-BtRCJGyR.js";import{E as M}from"./eye-CPGi78pS.js";import{C as D}from"./check-DXYeM_Sd.js";const b=[{label:"At least 8 characters",test:s=>s.length>=8},{label:"Contains a number",test:s=>/\d/.test(s)},{label:"Contains uppercase letter",test:s=>/[A-Z]/.test(s)}];function H(){const[s,d]=a.useState(""),[i,g]=a.useState(""),[r,w]=a.useState(""),[o,j]=a.useState(""),[n,R]=a.useState(!1),[x,v]=a.useState(!1),[p,N]=a.useState(!1),[y,S]=a.useState(!1),u=A.emailAuth.register.useMutation({onSuccess:()=>{l.success("Account created! Welcome to British Boxers."),window.location.href="/"},onError:t=>{l.error(t.message||"Failed to create account.")}}),k=t=>{if(t.preventDefault(),!s||!i||!r){l.error("Please fill in all fields.");return}if(!x){l.error("Please agree to the Terms of Service and Privacy Policy to continue.");return}if(!p){l.error("You must be 13 or older to create an account.");return}if(r!==o){l.error("Passwords do not match.");return}if(r.length<8){l.error("Password must be at least 8 characters.");return}u.mutate({email:i,password:r,name:s})},C=b.every(t=>t.test(r)),P=x&&p&&r===o&&C&&s&&i;return e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:62",className:"min-h-screen flex flex-col items-center justify-center relative overflow-hidden py-8",style:{background:"radial-gradient(ellipse at 50% 0%, rgba(180,30,30,0.15) 0%, transparent 60%), radial-gradient(ellipse at 20% 100%, rgba(180,30,30,0.08) 0%, transparent 50%), #0d0d0f"},children:[e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:70",className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:71",className:"absolute top-[20%] left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-boxing-red/20 to-transparent"}),e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:72",className:"absolute top-[40%] left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-boxing-red/10 to-transparent"}),e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:73",className:"absolute top-[60%] left-0 right-0 h-[1px] bg-gradient-to-r from-transparent via-boxing-red/5 to-transparent"})]}),e.jsxs(c,{"data-loc":"client/src/pages/Register.tsx:77",href:"/",className:"absolute top-6 left-6 flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors z-10",children:[e.jsx(E,{"data-loc":"client/src/pages/Register.tsx:81",className:"w-4 h-4"}),"Back to Home"]}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:85",className:"w-full max-w-md px-6 relative z-10",children:[e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:87",className:"flex justify-center mb-6",children:e.jsx("img",{"data-loc":"client/src/pages/Register.tsx:88",src:"https://files.manuscdn.com/user_upload_by_module/session_file/310519663070062756/WWdOSwWDUgMfFtkR.webp",alt:"British Boxers",className:"h-14 object-contain",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:99",className:"text-center mb-5",children:[e.jsx("h1",{"data-loc":"client/src/pages/Register.tsx:100",className:"text-3xl font-heading uppercase tracking-wider text-foreground mb-2",children:"Create Account"}),e.jsx("p",{"data-loc":"client/src/pages/Register.tsx:103",className:"text-muted-foreground text-sm",children:"Join the home of British boxing"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:107",className:"flex items-center justify-center gap-2 mb-5 text-xs text-green-400/80",children:[e.jsx(h,{"data-loc":"client/src/pages/Register.tsx:108",className:"w-4 h-4"}),e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:109",children:"Secure, encrypted connection (SSL)"})]}),e.jsxs("form",{"data-loc":"client/src/pages/Register.tsx:113",onSubmit:k,className:"space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:115",className:"relative",children:[e.jsx(T,{"data-loc":"client/src/pages/Register.tsx:116",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{"data-loc":"client/src/pages/Register.tsx:117",type:"text",placeholder:"Full name",value:s,onChange:t=>d(t.target.value),className:"w-full pl-10 pr-4 py-3 bg-white/5 border border-white/10 rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-boxing-red/50 focus:ring-1 focus:ring-boxing-red/30 transition-all",autoComplete:"name",required:!0})]}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:129",className:"relative",children:[e.jsx(B,{"data-loc":"client/src/pages/Register.tsx:130",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{"data-loc":"client/src/pages/Register.tsx:131",type:"email",placeholder:"Email address",value:i,onChange:t=>g(t.target.value),className:"w-full pl-10 pr-4 py-3 bg-white/5 border border-white/10 rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-boxing-red/50 focus:ring-1 focus:ring-boxing-red/30 transition-all",autoComplete:"email",required:!0})]}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:143",className:"relative",children:[e.jsx(f,{"data-loc":"client/src/pages/Register.tsx:144",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{"data-loc":"client/src/pages/Register.tsx:145",type:n?"text":"password",placeholder:"Password",value:r,onChange:t=>w(t.target.value),className:"w-full pl-10 pr-12 py-3 bg-white/5 border border-white/10 rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-boxing-red/50 focus:ring-1 focus:ring-boxing-red/30 transition-all",autoComplete:"new-password",required:!0}),e.jsx("button",{"data-loc":"client/src/pages/Register.tsx:154",type:"button",onClick:()=>R(!n),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors","aria-label":n?"Hide password":"Show password",children:n?e.jsx(L,{"data-loc":"client/src/pages/Register.tsx:160",className:"w-4 h-4"}):e.jsx(M,{"data-loc":"client/src/pages/Register.tsx:160",className:"w-4 h-4"})})]}),r.length>0&&e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:166",className:"space-y-1.5 pl-1",children:b.map(t=>e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:168",className:"flex items-center gap-2 text-xs",children:[e.jsx(D,{"data-loc":"client/src/pages/Register.tsx:169",className:`w-3 h-3 ${t.test(r)?"text-green-500":"text-muted-foreground
1/40"}`}),e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:172",className:t.test(r)?"text-green-500":"text-muted-foreground/60",children:t.label})]},t.label))}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:181",className:"relative",children:[e.jsx(f,{"data-loc":"client/src/pages/Register.tsx:182",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{"data-loc":"client/src/pages/Register.tsx:183",type:n?"text":"password",placeholder:"Confirm password",value:o,onChange:t=>j(t.target.value),className:`w-full pl-10 pr-4 py-3 bg-white/5 border rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 transition-all ${o&&o!==r?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/30":"border-white/10 focus:border-boxing-red/50 focus:ring-boxing-red/30"}`,autoComplete:"new-password",required:!0})]}),o&&o!==r&&e.jsx("p",{"data-loc":"client/src/pages/Register.tsx:198",className:"text-xs text-red-400 pl-1",children:"Passwords do not match"}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:202",className:"space-y-3 pt-1",children:[e.jsx(m,{"data-loc":"client/src/pages/Register.tsx:204",checked:x,onChange:v,required:!0,label:e.jsxs(e.Fragment,{children:["I agree to the"," ",e.jsx(c,{"data-loc":"client/src/pages/Register.tsx:211",href:"/terms",className:"text-boxing-red hover:underline",children:"Terms of Service"})," ","and"," ",e.jsx(c,{"data-loc":"client/src/pages/Register.tsx:213",href:"/privacy",className:"text-boxing-red hover:underline",children:"Privacy Policy"})]})}),e.jsx(m,{"data-loc":"client/src/pages/Register.tsx:219",checked:p,onChange:N,required:!0,label:"I confirm I am 13 years of age or older"}),e.jsx(m,{"data-loc":"client/src/pages/Register.tsx:227",checked:y,onChange:S,label:"Send me news, fight alerts, and exclusive offers by email (optional)"})]}),e.jsxs("button",{"data-loc":"client/src/pages/Register.tsx:235",type:"submit",disabled:u.isPending||!P,className:"w-full py-3 bg-boxing-red hover:bg-boxing-red-light disabled:opacity-40 disabled:cursor-not-allowed text-white font-heading uppercase tracking-wider rounded-lg transition-all duration-200 relative overflow-hidden group mt-2",children:[e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:240",className:"relative z-10",children:u.isPending?"Creating Account...":"Join British Boxers"}),e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:243",className:"absolute inset-0 bg-gradient-to-r from-boxing-red-dark to-boxing-red opacity-0 group-hover:opacity-100 transition-opacity"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:248",className:"mt-5 grid grid-cols-3 gap-2",children:[{label:"SSL Secured"},{label:"Data Encrypted"},{label:"No Spam"}].map(({label:t})=>e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:254",className:"flex flex-col items-center gap-1 py-2 px-1 rounded-lg bg-white/3 border border-white/6 text-center",children:[e.jsx(h,{"data-loc":"client/src/pages/Register.tsx:258",className:"w-3.5 h-3.5 text-green-400/70"}),e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:259",className:"text-[10px] text-muted-foreground/70 leading-tight",children:t})]},t))}),e.jsxs("div",{"data-loc":"client/src/pages/Register.tsx:265",className:"flex items-center gap-4 my-5",children:[e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:266",className:"flex-1 h-px bg-white/10"}),e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:267",className:"text-xs text-muted-foreground uppercase tracking-widest",children:"Already a member?"}),e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:268",className:"flex-1 h-px bg-white/10"})]}),e.jsx(c,{"data-loc":"client/src/pages/Register.tsx:272",href:"/login",className:"block w-full py-3 text-center border border-white/15 hover:border-boxing-red/40 text-foreground font-heading uppercase tracking-wider rounded-lg transition-all duration-200 hover:bg-white/5",children:"Sign In"}),e.jsxs("p",{"data-loc":"client/src/pages/Register.tsx:280",className:"text-center text-xs text-muted-foreground mt-5 pb-4",children:["British Boxers © 2009â",new Date().getFullYear(),"  · "," ",e.jsx(c,{"data-loc":"client/src/pages/Register.tsx:282",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"})," · ",e.jsx(c,{"data-loc":"client/src/pages/Register.tsx:284",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms"})]})]})]})}function m({checked:s,onChange:d,label:i,required:g=!1}){return e.jsxs("label",{"data-loc":"client/src/pages/Register.tsx:304",className:"flex items-start gap-3 cursor-pointer group",children:[e.jsx("div",{"data-loc":"client/src/pages/Register.tsx:305",className:`mt-0.5 w-4 h-4 shrink-0 rounded border flex items-center justify-center transition-all ${s?"bg-boxing-red border-boxing-red":"bg-white/5 border-white/20 group-hover:border-white/40"}`,onClick:()=>d(!s),role:"checkbox","aria-checked":s,tabIndex:0,onKeyDown:r=>r.key===" "&&d(!s),children:s&&e.jsx("svg",{"data-loc":"client/src/pages/Register.tsx:318",className:"w-2.5 h-2.5 text-white",f
1ill:"none",viewBox:"0 0 10 10",children:e.jsx("path",{"data-loc":"client/src/pages/Register.tsx:319",d:"M1.5 5L4 7.5L8.5 2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsxs("span",{"data-loc":"client/src/pages/Register.tsx:329",className:"text-sm text-muted-foreground group-hover:text-foreground/80 transition-colors leading-snug",children:[i,g&&e.jsx("span",{"data-loc":"client/src/pages/Register.tsx:331",className:"text-boxing-red ml-0.5",children:"*"})]})]})}export{H 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.