1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40983],{51683:(e,t,r)=>{Promise.resolve().then(r.bind(r,34804))},34804:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var a=r(95155),n=r(12115),o=r(94288),s=r(95914),l=r(21567),i=r(2615),d=r(76046),c=r(60763),u=r(68570),m=r(48173),p=r.n(m),h=r(11555);function x(){var e,t;let{t:l,ready:m}=(0,h.Bd)(["auth","common"]),x=(0,d.useRouter)(),g=(0,c.L)("/api/auth/register"),[w,v]=n.useState(null);n.useEffect(()=>{v((0,u.q_)(window.location.search))},[]);let[y,j]=n.useState(!1),[N,_]=n.useState(null),[P,k]=n.useState("");n.useEffect(()=>{try{let e=new URLSearchParams(window.location.search).get("ref");e&&k(e)}catch(e){}},[]);let C=async e=>{if(e.preventDefault(),g.isPending||y)return;let t=new FormData(e.currentTarget),a={name:t.get("name"),email:t.get("email"),password:t.get("password"),referralCode:P.trim()||void 0,website:t.get("website")||""},n=t.get("confirmPassword");if(_(null),a.password.length<8){_("Password must be at least ".concat(8," characters."));return}if(a.password!==n){_(l("auth:reset.errorMatch"));return}try{j(!0);try{let e=window.__queryClient;e&&e.clear(),localStorage.removeItem("devMode")}catch(e){}await g.mutateAsync(a);let e=await (0,i.signIn)("credentials",{email:a.email,password:a.password,redirect:!1});if(null==e?void 0:e.error){let{notify:e}=await r.e(1843).then(r.bind(r,24224));e({description:l("auth:web.autoSignInFailed"),variant:"warning"}),x.push(w?"/auth/login?callbackUrl=".concat(encodeURIComponent(w)):"/auth/login");return}try{let e=window.__queryClient;e&&e.clear()}catch(e){}window.location.href=w?"/auth/verify-required?callbackUrl=".concat(encodeURIComponent(w)):"/auth/verify-required"}catch(e){j(!1)}};return m?(0,a.jsxs)("div",{className:"w-full ear-card p-4 md:p-8",children:[(0,a.jsx)("h1",{className:"font-display font-bold text-xl text-foreground",children:l("auth:web.registerTitle")}),(0,a.jsx)("p",{className:"text-zinc-300 text-sm max-w-sm mt-2",children:l("auth:web.registerSubtitle")}),(0,a.jsx)("p",{className:"text-zinc-400 text-xs max-w-sm mt-3",children:l("auth:web.verifyNotice")}),(0,a.jsxs)("form",{className:"my-8",onSubmit:C,children:[(0,a.jsxs)("div",{className:"absolute left-[-9999px] top-auto h-px w-px overflow-hidden","aria-hidden":"true",children:[(0,a.jsx)("label",{htmlFor:"website",children:l("auth:web.honeypot")}),(0,a.jsx)("input",{id:"website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),(0,a.jsxs)(b,{className:"mb-4",children:[(0,a.jsx)(o.J,{htmlFor:"name",className:"text-zinc-300",children:l("auth:web.fullName")}),(0,a.jsx)(s.p,{id:"name",name:"name",placeholder:l("auth:web.namePlaceholder"),type:"text",autoComplete:"name",required:!0,className:"bg-popover text-foreground placeholder:text-muted-foreground border-border",disabled:g.isPending||y})]}),(0,a.jsxs)(b,{className:"mb-4",children:[(0,a.jsx)(o.J,{htmlFor:"email",className:"text-zinc-300",children:l("auth:web.emailAddress")}),(0,a.jsx)(s.p,{id:"email",name:"email",placeholder:l("auth:web.emailPlaceholder"),type:"email",autoComplete:"email",required:!0,className:"bg-popover text-foreground placeholder:text-muted-foreground border-border",disabled:g.isPending||y})]}),(0,a.jsxs)(b,{className:"mb-4",children:[(0,a.jsx)(o.J,{htmlFor:"password",className:"text-zinc-300",children:l("auth:login.password")}),(0,a.jsx)(s.p,{id:"password",name:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",type:"password",autoComplete:"new-password",minLength:8,required:!0,className:"bg-popover text-foreground placeholder:text-muted-foreground border-border",disabled:g.isPending||y}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:l("auth:web.minChars",{count:8})})]}),(0,a.jsxs)(b,{className:"mb-4",children:[(0,a.jsx)(o.J,{htmlFor:"confirmPassword",className:"text-zinc-300",children:l("auth:reset.confirmPassword")}),(0,a.jsx)(s.p,{id:"confirmPassword",name:"confirmPassword",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",type:"password",autoComplete:"new-password",required:!0,className:"bg-popover text-foreground placeholder:text-muted-foreground border-border",disabled:g.isPending||y})]}),(0,a.jsxs)(b,{className:"mb-8",children:[(0,a.jsx)(o.J,{htmlFor:"referralCode",className:"text-zinc-300",children:l("auth:web.referralLabel")}),(0,a.jsx)(s.p,{id:"referralCode",name:"referralCode",placeholder:l("auth:register.referralPlaceholder"),type:"text",value:P,onChange:e=>k(e.target.value),className:"bg-popover text-foreground placeholder:text-muted-foreground border-border",disabled:g.isPending||y}),P.trim()&&(0,a.jsx)("p",{className:"mt-1.5 text-sm text-emerald-400",children:l("auth:web.referralBonus")})]}),(N||(null===(e=g.error)||void 0===e?void 0:e.message))&&(0,a.jsx)("div",{className:"mb-4 text-sm text-red-400",role:"alert",children:N||(null===(t=g.error)||void 0===t?void 0:t.message)}),(0,a.jsxs)("button",{className:"relative group/btn bg-primary text-primary-foreground hover:bg-primary/90 block w-full text-white rounded-md h-10 font-medium shadow-[0px_1px_0px_0px_#ffffff20_inset,0px_-1px_0px_0px_#ffffff20_inset] hover:from-blue-500 hover:to-blue-700 transition-all duration-300 disabled:opacity-70 disabled:cursor-wait ".concat(g.isPending||y?"ring-2 ring-blue-400/40":""),type:"submit",disabled:g.isPending||y,"aria-busy":g.isPending||y,"aria-disabled":g.isPending||y,children:[(g.isPending||y)&&(0,a.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 border-2 border-white/30 border-t-white rounded-full animate-spin","aria-hidden":"true"}),(0,a.jsx)("span",{className:"inline-block",children:g.isPending||y?l("auth:web.creatingAccount"):"".concat(l("auth:web.register")," â")}),(0,a.jsx)(f,{})]}),(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)(p(),{href:w?"/auth/login?callbackUrl=".concat(encodeURIComponent(w)):"/auth/login",className:"text-zinc-300 hover:text-blue-400 transition-colors text-sm",children:l("auth:reset.backToLogin")})})]})]}):null}let f=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"group-hover/btn:opacity-100 block transition duration-500 opacity-0 absolute h-px w-full -bottom-px inset-x-0 bg-gradient-to-r from-transparent via-blue-500 to-transparent"}),(0,a.jsx)("span",{className:"group-hover/btn:opacity-100 blur-sm block transition duration-500 opacity-0 absolute h-px w-1/2 mx-auto -bottom-px inset-x-10 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})]}),b=e=>{let{children:t,className:r}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 w-full",r),children:t})};var g=r(5565);function w(){return(0,a.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"w-full max-w-md flex flex-col items-center space-y-8",children:[(0,a.jsx)("div",{className:"w-48 h-48 relative mb-8",children:(0,a.jsx)(g.default,{src:"/logos/Earonman_logo_white_text.png",alt:"Earonman Logo",fill:!0,style:{objectFit:"contain"},priority:!0})}),(0,a.jsx)(x,{})]})})}},95914:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var a=r(64461),n=r(95155),o=r(12115),s=r(21567),l=r(34420),i=r(2178),d=r
1(10913);function c(){let e=(0,a._)(["\n radial-gradient(\n "," circle at ","px ","px,\n var(--blue-500),\n transparent 80%\n )\n "]);return c=function(){return e},e}let u=o.forwardRef((e,t)=>{let{className:r,type:a,...u}=e,[m,p]=o.useState(!1),h=(0,l.d)(0),x=(0,l.d)(0);return(0,n.jsx)(i.P.div,{style:{background:(0,d.E)(c(),m?"100px":"0px",h,x)},onMouseMove:function(e){let{currentTarget:t,clientX:r,clientY:a}=e,{left:n,top:o}=t.getBoundingClientRect();h.set(r-n),x.set(a-o)},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),className:"p-[2px] rounded-lg transition duration-300 group/input",children:(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-10 w-full border-none bg-gray-50 dark:bg-zinc-800 text-black dark:text-white shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent \n file:text-sm file:font-medium placeholder:text-neutral-400 dark:placeholder-text-neutral-600 \n focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-neutral-400 dark:focus-visible:ring-neutral-600\n disabled:cursor-not-allowed disabled:opacity-50\n dark:shadow-[0px_0px_1px_1px_var(--neutral-700)]\n group-hover/input:shadow-none transition duration-400\n ",r),ref:t,...u})})});u.displayName="Input"},94288:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var a=r(95155),n=r(12115),o=r(46195),s=r(21567);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.b,{ref:t,className:(0,s.cn)("text-sm font-medium text-black dark:text-white leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...n})});l.displayName=o.b.displayName},60763:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var a=r(25848);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";return(0,a.n)({mutationFn:async r=>{let a="undefined"!=typeof FormData&&r instanceof FormData,n={method:t};void 0!==r&&(n.body=a?r:JSON.stringify(r)),a||(n.headers={"Content-Type":"application/json"});
1let o=await fetch(e,n);if(!o.ok){let e=await o.json().catch(()=>({}));throw Error((null==e?void 0:e.error)||"Server error")}return o.json()}})}},68570:(e,t,r)=>{"use strict";r.d(t,{FM:()=>d,a5:()=>i,hh:()=>s,lW:()=>l,q_:()=>o});let a="postAuthDest";function n(e){return!!e&&e.startsWith("/")&&!e.startsWith("//")}function o(e){try{let t=new URLSearchParams(e).get("callbackUrl");return n(t)?t:null}catch(e){return null}}function s(e){if(n(e))try{let t="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(a,"=").concat(encodeURIComponent(e),"; Max-Age=").concat(7200,"; Path=/; SameSite=Lax").concat(t)}catch(e){}}function l(){try{let e=document.cookie.split("; ").find(e=>e.startsWith("".concat(a,"=")));if(!e)return null;let t=decodeURIComponent(e.slice(a.length+1));return n(t)?t:null}catch(e){return null}}function i(){try{document.cookie="".concat(a,"=; Max-Age=0; Path=/; SameSite=Lax")}catch(e){}}function d(e){return"/pricing?resume=".concat(encodeURIComponent(e))}},21567:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var a=r(43463),n=r(69795);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,a.$)(t))}}},e=>{var t=t=>e(e.s=t);e.O(0,[61181,48173,2178,11555,2615,87970,86085,29793,28441,71238,77358],()=>t(51683)),_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.