1import{G as g,r as c,j as e,S as w,x as v}from"./app-Mnt2IEGe.js";import{A as N}from"./ApplicationLogo-JvKRx6b1.js";import{T as l,I as i}from"./TextInput-DZZVw8So.js";import{I as o}from"./InputLabel-BswbtwQH.js";import{P as b}from"./PrimaryButton-CuAryFCM.js";import{U as d}from"./user-ad0RTXxq.js";import{S as C}from"./shield-Da3uiB5y.js";import{G as x}from"./gift-CL6MaVUj.js";import{M as E}from"./mail-Ce-sk81h.js";import{L as p}from"./lock-BIbd8j0O.js";import{E as S}from"./eye-off-0dWDFI1-.js";import{E as F}from"./eye-D7lGIL4B.js";function D({referral:u}){const{data:a,setData:t,post:f,processing:m,errors:r,reset:h}=g({name:"",email:"",password:"",password_confirmation:"",referral:u||""}),[n,j]=c.useState(!1);c.useEffect(()=>()=>{h("password","password_confirmation")},[]);const y=s=>{s.preventDefault(),f(route("register"))};return e.jsxs(e.Fragment,{children:[e.jsx(w,{title:"Register"}),e.jsxs("div",{"aria-hidden":!0,className:"fixed inset-0 pointer-events-none z-0",children:[e.jsx("svg",{className:"absolute -top-36 -left-40 w-[320px] h-[320px] opacity-10",viewBox:"0 0 400 400",fill:"none",children:e.jsx("circle",{cx:"200",cy:"200",r:"200",fill:"#2e3192"})}),e.jsx("svg",{className:"absolute top-20 -right-60 w-[300px] h-[300px] opacity-15",viewBox:"0 0 400 400",fill:"none",children:e.jsx("circle",{cx:"200",cy:"200",r:"200",fill:"#6d71d3"})})]}),e.jsxs("div",{className:"relative z-10 min-h-screen flex flex-col items-center justify-center bg-white font-sans py-10 px-2",children:[e.jsx("div",{className:"mb-7 flex justify-center",children:e.jsx(N,{className:"w-36 h-10 object-contain"})}),e.jsxs("div",{className:"w-full max-w-md animate-fade-in-up",children:[e.jsxs("div",{className:"bg-white border border-gray-200 rounded-2xl shadow-xl px-7 py-8 sm:px-10 sm:py-10",children:[e.jsxs("div",{className:"flex flex-col gap-2 mb-6 text-center",children:[e.jsx("div",{className:"flex justify-center items-center gap-2",children:e.jsx(d,{className:"w-10 h-10 text-primary bg-primary/10 rounded-full p-2.5 shadow-sm"})}),e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-primary tracking-tight",children:"Register at Haslab"}),e.jsx("p",{className:"text-base text-gray-600",children:"Create your account and unlock benefits."})]}),e.jsxs("div",{className:"mb-5 p-3 sm:p-4 rounded-xl bg-secondary-light border border-primary/10 flex items-center gap-3 text-primary text-[15px] font-semibold justify-center shadow-sm",children:[e.jsx(C,{className:"w-5 h-5 mr-1 text-yellow-400"}),"Secure, private & ethical. Data SSL encrypted."]}),a.referral&&e.jsxs("div",{className:"mb-5 text-sm text-green-800 bg-green-50 border border-green-200 rounded-lg p-3 flex items-center gap-2",children:[e.jsx(x,{className:"w-5 h-5"}),e.jsxs("span",{children:["Referral code applied:"," ",e.jsx("span",{className:"font-semibold",children:a.referral})]})]}),e.jsxs("form",{onSubmit:y,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx(o,{htmlFor:"name",value:"Full Name",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(d,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(l,{id:"name",name:"name",value:a.name,className:"pl-11 w-full text-base",autoComplete:"name",isFocused:!0,onChange:s=>t("name",s.target.value),required:!0,placeholder:"Your full name"})]}),e.jsx(i,{message:r.name,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"email",value:"Email Address",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(E,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(l,{id:"email",type:"email",name:"email",value:a.email,className:"pl-11 w-full text-base",autoComplete:"username",onChange:s=>t("email",s.target.value),required:!0,placeholder:"[email protected]"})]}),e.jsx(i,{message:r.email,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"password",value:"Password",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(p,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(l,{id:"password",type:n?"text":"password",name:"password",value:a.password,className:"pl-11 pr-11 w-full text-base",autoComplete:"new-password",onChange:s=>t("password",s.target.value),required:!0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"}),e.jsx("button",{type:"button",onClick:()=>j(s=>!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-primary hover:text-primary-light transition",children:n?e.jsx(S,{className:"w-5 h-5"}):e.jsx(F,{className:"w-5 h-5"})})]}),e.jsx(i,{message:r.password,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"password_confirmation",value:"Confirm Password",className:"text-gray-700 font-medium"}),e.jsxs("div",{className:"relative mt-1",children:[e.jsx(p,{className:"w-5 h-5 text-primary absolute left-3 top-1/2 -translate-y-1/2"}),e.jsx(l,{id:"password_confirmation",type:"password",name:"password_confirmation",value:a.password_confirmation,className:"pl-11 w-full text-base",autoComplete:"new-password",onChange:s=>t("password_confirmation",s.target.value),required:!0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),e.jsx(i,{message:r.password_confirmation,className:"mt-2"})]}),e.jsx("div",{children:e.jsx(b,{className:"w-full justify-center py-3 bg-primary hover:bg-primary-light text-white font-bold text-base rounded-xl transition shadow-md",disabled:m,children:m?"Creating account...":"Create Account"})})]}),e.jsx("div",{className:"mt-7 text-center",children:e.jsxs("p",{className:"text-sm text-gray-600",children:["Already have an account?"," ",e.jsx(v,{href:route("login"),className:"font-medium text-primary hover:text-primary-light hover:underline",children:"Log in"})]})})]}),e.jsxs("div",{className:"mt-8 flex flex-col gap-1 w-full max-w-md items-center",children:[e.jsxs("div",{className:"flex gap-2 text-gray-500 text-xs",children:[e.jsx(x,{className:"w-4 h-4 text-indigo-500"}),"Get â¹50 wallet credit on signup via referral ⢠Earn more by inviting friends!"]}),e.jsx("div",{className:"flex gap-2 text-gray-500 text-xs",children:"Trusted by thousands of Indian families ⢠Fast, ethical & secure"})]})]})]}),e.jsx("style",{children:` 2 @keyframes fade-in-up { 3 0% { opacity: 0; transform: translateY(36px);} 4 80%{ opacity: 0.94; transform: translateY(-8px);} 5 100%{ opacity: 1; transform: translateY(0);} 6 } 7 .animate-fade-in-up { animation: fade-in-up 0.7s cubic-bezier(.32,1.56,.44,1) both;} 8 `})]})}
8export{D 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.