1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1002],{94734:function(e,t,r){Promise.resolve().then(r.bind(r,22554))},22554:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var a=r(57437),s=r(2265),l=r(29501),o=r(13590),i=r(67119),d=r(27648),n=r(99376),c=r(69064),u=r(96602),x=r(93448),m=r(68667),h=r(54916),p=r(16996);function f(){return(0,a.jsx)(s.Suspense,{children:(0,a.jsx)(g,{})})}function g(){let{t:e}=(0,h.$G)(),t=(0,n.useRouter)(),r=(0,n.useSearchParams)(),{register:f,isLoading:g}=(0,u.useAuthStore)(),[b,w]=(0,s.useState)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=r.get("ref");e&&w(e)},[r]);let v=(0,s.useMemo)(()=>i.Ry({full_name:i.Z_().min(2,e("auth.val.nameMin")),email:i.Z_().email(e("auth.val.emailInvalid")),password:i.Z_().min(8,e("auth.val.passwordMin")),confirm_password:i.Z_()}).refine(e=>e.password===e.confirm_password,{message:e("auth.val.passwordsNoMatch"),path:["confirm_password"]}),[e]),{register:_,handleSubmit:j,formState:{errors:N}}=(0,l.cI)({resolver:(0,o.F)(v)}),y=async r=>{try{await f(r.email,r.password,r.full_name,null!=b?b:void 0),c.ZP.success(e("auth.register.success")),t.push("/verify-email")}catch(t){c.ZP.error((0,m.t)(t,e("auth.register.error")))}};return(0,a.jsxs)("div",{ref:k,onMouseMove:e=>{let t=k.current;if(!t)return;let r=t.getBoundingClientRect(),a=(e.clientX-r.left)/r.width-.5,s=(e.clientY-r.top)/r.height-.5;t.style.transform="perspective(900px) rotateY(".concat(6*a,"deg) rotateX(").concat(-(6*s),"deg)")},onMouseLeave:()=>{let e=k.current;e&&(e.style.transform="perspective(900px) rotateY(0deg) rotateX(0deg)")},style:{transition:"transform 0.18s ease-out"},className:"relative bg-white border border-slate-200 shadow-xl dark:bg-white/[0.04] dark:backdrop-blur-xl dark:border-white/10 dark:shadow-[0_0_60px_rgba(99,102,241,0.12)] rounded-2xl p-8 overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-px bg-gradient-to-r from-transparent via-indigo-500/50 to-transparent"}),(0,a.jsx)("h1",{className:"text-2xl font-bold text-slate-900 dark:text-white mb-1",children:e("auth.register.title")}),(0,a.jsx)("p",{className:"text-slate-500 dark:text-slate-400 text-sm mb-4",children:e("auth.register.subtitle")}),b&&(0,a.jsx)("div",{className:"mb-4 px-3 py-2 rounded-xl bg-emerald-50 border border-emerald-200 text-emerald-700 dark:bg-emerald-500/10 dark:border-emerald-500/20 dark:text-emerald-400 text-xs font-medium",children:e("auth.register.invited")}),(0,a.jsx)(p.P,{disabled:g}),(0,a.jsxs)("form",{onSubmit:j(y),className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1.5",children:e("auth.register.fullName")}),(0,a.jsx)("input",{..._("full_name"),type:"text",autoComplete:"name",placeholder:e("auth.register.fullNamePlaceholder"),className:(0,x.cn)("w-full px-3.5 py-2.5 rounded-xl border bg-white text-slate-900 placeholder-slate-400 dark:bg-white/5 dark:text-white dark:placeholder-slate-600 text-base","focus:outline-none focus:ring-2 focus:ring-indigo-500/40 focus:border-indigo-500/50 transition-all",N.full_name?"border-red-500/60":"border-slate-300 dark:border-white/10")}),N.full_name&&(0,a.jsx)("p",{className:"text-red-600 dark:text-red-400 text-xs mt-1",children:N.full_name.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1.5",children:e("auth.emailLabel")}),(0,a.jsx)("input",{..._("email"),type:"email",autoComplete:"email",placeholder:e("auth.emailPlaceholder"),className:(0,x.cn)("w-full px-3.5 py-2.5 rounded-xl border bg-white text-slate-900 placeholder-slate-400 dark:bg-white/5 dark:text-white dark:placeholder-slate-600 text-base","focus:outline-none focus:ring-2 focus:ring-indigo-500/40 focus:border-indigo-500/50 transition-all",N.email?"border-red-500/60":"border-slate-300 dark:border-white/10")}),N.email&&(0,a.jsx)("p",{className:"text-red-600 dark:text-red-400 text-xs mt-1",children:N.email.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1.5",children:e("auth.register.passwordLabel")}),(0,a.jsx)("input",{..._("password"),type:"password",autoComplete:"new-password",placeholder:e("auth.register.passwordPlaceholder"),className:(0,x.cn)("w-full px-3.5 py-2.5 rounded-xl border bg-white text-slate-900 placeholder-slate-400 dark:bg-white/5 dark:text-white dark:placeholder-slate-600 text-base","focus:outline-none focus:ring-2 focus:ring-indigo-500/40 focu
1s:border-indigo-500/50 transition-all",N.password?"border-red-500/60":"border-slate-300 dark:border-white/10")}),N.password&&(0,a.jsx)("p",{className:"text-red-600 dark:text-red-400 text-xs mt-1",children:N.password.message})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1.5",children:e("auth.register.confirmPassword")}),(0,a.jsx)("input",{..._("confirm_password"),type:"password",autoComplete:"new-password",placeholder:e("auth.register.confirmPlaceholder"),className:(0,x.cn)("w-full px-3.5 py-2.5 rounded-xl border bg-white text-slate-900 placeholder-slate-400 dark:bg-white/5 dark:text-white dark:placeholder-slate-600 text-base","focus:outline-none focus:ring-2 focus:ring-indigo-500/40 focus:border-indigo-500/50 transition-all",N.confirm_password?"border-red-500/60":"border-slate-300 dark:border-white/10")}),N.confirm_password&&(0,a.jsx)("p",{className:"text-red-600 dark:text-red-400 text-xs mt-1",children:N.confirm_password.message})]}),(0,a.jsx)("button",{type:"submit",disabled:g,className:(0,x.cn)("w-full py-2.5 px-4 rounded-xl font-semibold text-sm text-white mt-1","bg-gradient-to-r from-indigo-600 to-violet-600","hover:from-indigo-500 hover:to-violet-500","shadow-[0_0_20px_rgba(99,102,241,0.35)] hover:shadow-[0_0_30px_rgba(99,102,241,0.5)]","transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:ring-offset-2 focus:ring-offset-transparent"),children:g?e("auth.register.submitting"):e("auth.register.submit")}),(0,a.jsxs)("p",{className:"text-xs text-slate-500 text-center",children:[e("auth.register.terms")," ",(0,a.jsx)(d.default,{href:"/terms",className:"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-300 underline transition-colors",children:e("auth.register.termsLink")})," ",e("auth.register.and")," ",(0,a.jsx)(d.default,{href:"/privacy",className:"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-300 underline transition-colors",children:e("auth.register.privacyLink")}),"."]})]}),(0,a.jsxs)("p",{className:"text-center text-sm text-slate-500 mt-5",children:[e("auth.register.hasAccount")," ",(0,a.jsx)(d.default,{href:"/login",className:"text-indigo-600 hover:text-indigo-700 dark:text-indigo-400 dark:hover:text-indigo-300 font-medium transition-colors",children:e("auth.register.signIn")})]})]})}}},function(e){e.O(0,[5878,2972,3464,6137,9064,4517,7626,4916,5812,2971,2117,1744],function(){return e(e.s=94734)}),_N_E=e.O()}]);
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.