PageSourceSearch

https://getbioma.com/_next/static/chunks/pages/auth/sign-up-e0a8a4a6169bf962.js

js getbioma.com collected 2026-10-06 19:01:29 UTC 10,239 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4928],{56254:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/sign-up",function(){return r(58493)}])},14472:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var s=r(53617),o=r(54747),a=r(1095);let n=(0,s.ZP)(a.xu).withConfig({componentId:"sc-c396a641-0"})(["display:flex;"," ",";"],o.fU,({isClickable:e})=>e&&(0,s.iv)(["cursor:pointer;"]))},75880:function(e,t,r){"use strict";r.d(t,{T:function(){return p},m:function(){return _}});var s,o=r(11527),a=r(50959);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}var i=e=>a.createElement("svg",n({width:15,height:16,viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=a.createElement("path",{d:"M7.5 15.5C3.35775 15.5 0 12.1423 0 8C0 3.85775 3.35775 0.5 7.5 0.5C11.6423 0.5 15 3.85775 15 8C15 12.1423 11.6423 15.5 7.5 15.5ZM6.75225 11L12.0548 5.69675L10.9943 4.63625L6.75225 8.879L4.6305 6.75725L3.57 7.81775L6.75225 11Z",fill:"#00B67A"}
1))),l=r(14472),c=r(63158),d=r(11775);let _=e=>e?.length>7&&/[A-Z]/.test(e)&&/[a-z]/.test(e)&&/\d/.test(e),p=({password:e})=>{let t=[{title:"At least 8 characters",rule:e?.length>7},{title:"At least 1 upper case letter (A-Z)",rule:/[A-Z]/.test(e)},{title:"At least 1 lower case letter (a-z)",rule:/[a-z]/.test(e)},{title:"At least 1 number (0-9)",rule:/\d/.test(e)}];return(0,o.jsxs)(l.A,{mt:"20px",flexDirection:"column",justifyContent:"flex-start",width:"100%",gap:"4px",children:[(0,o.jsx)(d.Z,{textAlign:"left",type:"captionBold",children:"Password must contain:"}),t.map((e,t)=>(0,o.jsxs)(l.A,{gap:"10px",alignItems:"center",style:{opacity:e?.rule?1:.5},mt:"7px",children:[(0,o.jsx)(c.t,{height:"9px",width:"9px",children:(0,o.jsx)(i,{})}),(0,o.jsx)(d.Z,{type:"captionText",children:e?.title})]},t))]})}},58493:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return U},default:function(){return z}});var s,o,a=r(11527),n=r(19874),i=r(50959),l=r(679),c=r(53617),d=r(92341),_=r(72458),p=r(15414),u=r(17224),m=r(21818),h=r(74824),w=r(26861),f=r(98446),g=r(89112),x=r(45928),y=r(33316),b=r(75880),E=r(11775),j=r(50446),v=r(27860),I=r(15419),S=r(88878),A=r(72571),Z=r(61792),L=r(41208),P=r(86114),T=r(41260),N=r(40533),k=r(82430),C=r(88489),D=r(74469),O=r(22633),R=r(55872).lW;(s=o||(o={})).EMAIL_ALREADY_REGISTERED="email_already_registered",s.ALREADY_REGISTERED="already_registered",s.EMAIL_DOES_NOT_QUALIFY="email_does_not_qualify",s.CLIENT_WITH_EMAIL_NOT_FOUND="client_with_email_not_found",s.CLIENT_NOT_QUALIFIED="client_not_qualified";let M=()=>{let[e,t]=(0,i.useState)(""),[r,s]=(0,i.useState)(""),[o,c]=(0,i.useState)(""),[y,M]=(0,i.useState)(""),[z,U]=(0,i.useState)(!1),W=!!(0,C.Lm)(d.az.ERROR),Y=!!(0,C.Lm)(d.az.NOT_LINKED),[B,K]=(0,i.useState)(W),[q,H]=(0,i.useState)(Y),{isFormValid:Q}=(0,j.sh)(M),V=(0,C.Lm)(d.az.DATA)??"",X=(0,C.Lm)(d.az.EMAIL)??"",J=X?atob(X):"",ee=R.from(V,"base64").toString(),et=(0,O.oS)(ee)?JSON.parse(ee):{},er=et?.email,es=et?.ott,eo=(0,I.T)(),ea=!es||!er,{goToLogin:en,goToDashboard:ei,goTo:el}=(0,p.k)(),{verifyCaptcha:ec}=(0,v.m)();(0,S.g)(d.GL.ss_signup),(0,i.useEffect)(()=>{J&&c(J)},[J]);let ed=async t=>{if(t.preventDefault(),Q({form:j.n5.SIGNUP,values:{password1:e,password2:r}}))try{U(!0);let t=await ec(v.S.FINISH_REGISTER),s=await _.i.finishRegistration(es,e,r,k.lI.EN,t);eo((0,L.M8)(s?.accessToken)),eo((0,L.vV)(er)),(0,D.pj)(n.mM.ACCESS_TOKEN,s?.accessToken),(0,D.pj)(d.az.EMAIL,er),ei()}catch(e){if(e?.response?.data?.message==="fail_finish_registration"){e_(t);return}(0,N.zZ)(e),(0,P.Z2)({responseData:e?.response?.data,errorSetter:M,genericError:"Something went wrong"})}finally{U(!1)}},e_=async t=>{t.preventDefault();let s=o||er;if(!Q({form:j.n5.STANDALONE_SIGNUP,values:{password1:e,password2:r,email:s}}))return;let a=`${window.location.origin}${Z.Z.Login}`,i=`${window.location.origin}${Z.Z.Signup}?error=true`;try{U(!0);let t=await ec(v.S.STANDALONE_REGISTER);await _.i.createAccount(s,e,r,a,i,k.lI.EN,t),eo((0,L.vV)(s)),(0,D.pj)(n.mM.EMAIL,s),el(Z.Z.EmailSent,{[d.az.EMAIL_TYPE]:u.E.sign_up})}catch(t){(0,N.S3)(t);let e=t?.response?.data?.message;if("client_with_email_not_found"===e||"client_not_qualified"===e||"email_does_not_qualify"===e){H(!0);return}if("email_already_registered"===e||"already_registered"===e){el(Z.Z.Login,{email:btoa(s)});return}(0,P.Z2)({responseData:t?.response?.data,errorSetter:M,genericError:"Something went wrong"})}finally{U(!1)}},ep=(e,t)=>{K(!1),H(!1),y&&M(""),t(e?.target?.value)};return(0,a.jsxs)(A.Z,{children:[(0,a.jsxs)(f.k,{flexDirection:"column",textAlign:"center",gap:"10px",children:[(0,a.jsx)(E.Z,{type:"h3",color:"darkGreen2",id:"signup__title",children:"Sign up"}),(0,a.jsx)(E.Z,{type:"paragraph2",color:"darkGreen2",id:"signup__description",width:"90%",mx:"auto",children:"To get started, please enter your email and create a password."})]}),(0,a.jsxs)(F,{onSubmit:ea?e_:ed,children:[(0,a.jsx)(h.x,{mb:"24px",width:"100%",children:ea?(0,a.jsx)(l.Z,{email:o,children:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.II,{type:"email",name:"email",onChange:e=>ep(e,c),value:o,label:"Email",fontWeight:400,borderRadius:"br8"}
1),e&&(0,O.oH)(o)&&(0,a.jsx)(x.$,{email:e.full,onClick:()=>c(e.full)})]})}):(0,a.jsx)(g.II,{label:"Email",name:"email",type:"email",value:er,disabled:!0,fontWeight:400})}),(0,a.jsx)(h.x,{mb:"24px",width:"100%",children:(0,a.jsx)(g.II,{width:"100%",label:"Password",name:"password",maxLength:30,value:e,type:"password",onChange:e=>ep(e,t),borderRadius:"br8",fontWeight:300})}),(0,a.jsx)(h.x,{mb:"24px",width:"100%",children:(0,a.jsx)(g.II,{width:"100%",label:"Confirm password",name:"confirm password",maxLength:30,value:r,type:"password",onChange:e=>ep(e,s),borderRadius:"br8",fontWeight:300})}),(0,a.jsx)(b.T,{password:e}),y&&(0,a.jsx)(m.Z,{text:y}),q&&(0,a.jsx)(m.Z,{children:(0,a.jsxs)(E.Z,{type:"paragraph1",color:"systemError",children:["Make sure to use the email address linked to your order. Please contact"," ",(0,a.jsx)($,{href:`mailto:${T.mK}`,target:"blank",children:"customer support"})," ","for help."]})}),J&&(0,a.jsx)(m.Z,{text:"Please fill out the form above to create an account."}),B&&(0,a.jsx)(m.Z,{text:"Sorry, this link has expired. Please try registering once again."}),(0,a.jsx)(w.K,{type:"submit",loading:z,width:"100%",mt:"24px",disabled:!(0,b.m)(e),id:"signup__submit-button","data-testid":"signup__submit-button",children:"Submit"}),!B&&(0,a.jsx)(w.K,{mt:"16px",onClick:en,width:"100%",padding:"16px",color:"neutral_200",textColor:"neutral_700",colorHover:"neutral_300",isArrow:!1,children:"Back"}),(0,a.jsxs)(E.Z,{type:"paragraph2",color:"darkGreen2",mt:"24px",children:["Already have an account?"," ",(0,a.jsx)(E.Z,{type:"paragraph2",color:"secondary700",display:"inline",as:"span",decoration:"underline",cursor:"pointer",onClick:en,children:"Sign in"})]})]}),(0,a.jsxs)(E.Z,{type:"captionText",color:"neutral_700",children:["By creating an account, I agree to the"," ",(0,a.jsxs)(G,{href:Z.Z.Terms,target:"blank",children:["Terms and Conditions"," "]}),"and",(0,a.jsxs)(G,{href:Z.Z.Privacy,target:"blank",children:[" ","Privacy policy"]}),"."]})]})};M.displayName="Signup";var z=M;let G=(0,c.ZP)(y.r).withConfig({componentId:"sc-9cc25653-0"})(["font-weight:300;font-size:12px;line-height:16px;text-decoration:underline;color:",";transition:color 0.2s ease-in;&:hover{color:",";}"],({theme:e})=>e.colors.darkGreen2,({theme:e})=>e.colors.darkGreen3),$=(0,c.ZP)(y.r).withConfig({componentId:"sc-9cc25653-1"})(["font-weight:500;font-size:14px;line-height:18px;text-decoration:underline;color:",";transition:color 0.2s ease-in;&:hover{cursor:pointer;}"],({theme:e})=>e.colors.systemError),F=c.ZP.form.withConfig({componentId:"sc-9cc25653-2"})(["max-width:544px;width:100%;text-align:center;"]);var U=!0},86114:function(e,t,r){"use strict";var s,o;r.d(t,{Z2:function(){return i}}),(o=s||(s={})).password_too_short="password_too_short",o.password_not_mixed_case="password_not_mixed_case",o.password_no_symbols="password_no_symbols",o.password_no_numbers="password_no_numbers",o.password_confirmation_too_short="password_confirmation_too_short",o.password_confirmation_not_mixed_case="password_confirmation_not_mixed_case",o.password_confirmation_no_symbols="password_confirmation_no_symbols",o.password_confirmation_no_numbers="password_confirmation_no_numbers",o.fail_finish_registration="fail_finish_registration",o.ott_missing="ott_missing",o.email_invalid="email_invalid",o.current_password_invalid="current_password_invalid",o.password_compromised="password_compromised",o.password_confirmation_compromised="password_confirmation_compromised";let a=e=>({password_too_short:"Password is too short. Your password must be at least 8 characters long.",password_not_mixed_case:"Password must contain at least one uppercase letter.",password_no_symbols:'Password must contain at least one special character, e.g. ~`!@#$%^&*()-_+={}[]|\\;:"<>,./?.',password_no_numbers:"Password must contain at least one digit.",password_confirmation_too_short:"Password is too short. Your password must be at least 8 characters long.",password_confirmation_not_mixed_case:"Password must contain at least one uppercase letter.",password_confirmation_no_symbols:'Password must contain at least one special character, e.g. ~`!@#$%^&*()-_+={}[]|\\;:"<>,./?.',password_confirmation_no_numbers:"Password must contain at least one digit.",fail_finish_registration:"Failed to finish registration.",ott_missing:"Invalid password reset link.",email_invalid:"Invalid email",current_password_invali
1d:"Current password is invalid.",password_compromised:"Password is unsafe. Please choose another password.",password_confirmation_compromised:"Password is unsafe. Please choose another password."})[e]||"Something went wrong",n=e=>{let t=[];return e?.errors&&Object.keys(e?.errors).map(r=>e?.errors[r].forEach(e=>t.push(e))),e?.message&&t.push(e?.message),t},i=({responseData:e,errorSetter:t,genericError:r})=>{let s=n(e);t(s.length>0?a(s[0]):r)}}},function(e){e.O(0,[7417,9112,5182,2888,9774,179],function(){return e(e.s=56254)}),_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.