1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4252],{61468:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return t(83520)}])},83520:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SignupForm:()=>b,__N_SSP:()=>S,default:()=>C});var r=t(37876),s=t(14232),a=t(89099),i=t(39312),n=t(34321),o=t(68827),d=t(41205),u=t(9883),c=t(16495),m=t(21639),x=t(83872),f=t(89311),p=t(70657),g=t(77568),h=t(95726),j=t(59243),y=t(4755),v=t(63819),N=t(34654),A=t(59766);let _={title:"Join Peerlist",description:"Sign up and create your most meaningful work profile by showcasing your work from different platforms like GitHub, Dribbble, Medium, Hashnode, Dev Community, Substack and many more.",keywords:"peerlist, work profile, resume, portfolio, free resume builder, resume maker, professional networking, linkedin alternative, free cv builder, linkedin profile ",ogImage:c.CDNImage.landingPageOG};function w(e){let{peerlistProfiles:l,allUserCount:t}=e;return(0,r.jsx)(j.A.ScreenLayout,{metaData:_,children:(0,r.jsxs)("div",{className:"w-full flex flex-col gap-6 justify-center items-center mx-auto mt-20 sm:mt-0",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center",children:null==l?void 0:l.map((e,l)=>(0,r.jsx)("a",{href:c.APP_PATHS.userProfile({profileHandle:null==e?void 0:e.profileHandle}),target:"_blank",rel:"noreferrer","aria-label":"View ".concat(null==e?void 0:e.profileHandle," profile"),className:"rounded-full border-1 border-gray-00 ".concat(0===l?"":"-ml-3 z-[5]"),children:(0,r.jsx)(y.Ay.Smallest,{image:null==e?void 0:e.profilePicture})},"clubbed-card-profile-".concat(l+1)))}),(0,r.jsxs)(f.default.NormalText,{className:"font-instrument italic text-center ",textColor:"text-gray-400",xxl:!0,children:["Join"," ",(0,v.getFormattedNumber)({number:t,option:{maximumSignificantDigits:6}}),"+ peers."]})]}),(0,r.jsxs)(f.default.NormalText,{as:"h2",xxxl:!0,className:"font-instrument leading-110 text-center sm:!text-[40px]",children:["Sign up ",(0,r.jsx)("span",{className:"italic",children:"&"})," create your profile."]})]}),(0,r.jsxs)("div",{className:"w-full flex flex-col gap-8",children:[(0,r.jsx)(b,{autoFocus:!0,wrapperClassName:"flex flex-col gap-6 py-6 sm:shadow-username-input-hover"}),(0,r.jsxs)(f.default.MutedText,{sm:!0,className:"text-center",children:["Already have a profile?"," ",(0,r.jsx)(j.A.TextLink,{link:c.APP_PATHS.login,text:"Log in"})]})]})]})})}var S=!0;let b=e=>{let{hideExtraInfo:l,border:t,autoFocus:y=!1,heading:_,subHeading:w,wrapperClassName:S="",invitedBy:b=null}=e,C=new i.A,E=(0,a.useRouter)(),[k,P]=(0,s.useState)(!1),[T,I]=(0,s.use
1State)(null),[D,L]=(0,s.useState)(""),O=(0,N.A)(),R=async e=>{var l,t,r,s,a,i,u;e.preventDefault();let m=null==(l=e.target.elements.email)?void 0:l.value,x=null==(t=e.target.elements.password)?void 0:t.value,{errorText:f,errorField:g}=d._7.loginSignup({email:m,password:x});if(f||g)return void I({[g]:f});let h=await (0,A.mY)();P(!0);let j={email:m,password:x,location:h};b&&(j.invitedBy=b);try{let e=await n.$$.signup(j);p.A.identify({userId:null==e||null==(r=e.data)?void 0:r.userId}),O.identify({userId:null==e||null==(s=e.data)?void 0:s.userId}),C.set("email",m,{path:"/"}),sessionStorage.getItem(c.STORAGE_KEYS.RE_VERIFY)&&sessionStorage.removeItem(c.STORAGE_KEYS.RE_VERIFY),E.push(c.APP_PATHS.verify)}catch(e){I({apiError:(null==e||null==(u=e.response)||null==(i=u.data)||null==(a=i.error)?void 0:a.message)?e.response.data.error.message:o.A.GLOBAL.wrong}),P(!1)}},F=()=>{T&&I(null)};return(0,s.useEffect)(()=>(L(sessionStorage.getItem("username")),()=>{P(!1),I(null)}),[]),(0,r.jsxs)("div",{className:"w-full flex flex-col justify-center",children:[(0,v.isProd)()?(0,r.jsx)(g.A,{invitedBy:b}):null,(0,r.jsxs)(j.A.FormCard,{border:t,wrapperClassName:S,children:[w&&(0,r.jsx)("span",{className:"text-sm text-gray-500 font-semibold text-center mb-1",children:w}),_?(0,r.jsx)("h3",{className:"text-40 font-normal font-instrument text-gray-1k text-center",children:_}):null,D&&(0,r.jsxs)("span",{className:"text-center text-sm font-medium text-gray-1k",children:["\uD83C\uDF89 Weâre holding"," ",(0,r.jsxs)("span",{className:"font-medium text-green-300",children:["peerlist.io/",D]})," ","for you!"]}),(0,v.isProd)()?(0,r.jsx)(u.A,{invitedBy:b,type:u.j.SIGNUP}):null,(0,r.jsx)(j.A.FormContentDivider,{}),(0,r.jsx)("div",{children:(0,r.jsxs)("form",{onSubmit:R,children:[(0,r.jsxs)("div",{className:"mb-2",children:[(0,r.jsx)(h.Ay,{id:"email",label:"Email",type:"email",placeholder:"[email protected]",onChange:F,autoFocus:y}),(null==T?void 0:T.email)?(0,r.jsx)(f.default.ErrorText,{xs:!0,className:"mt-0.5",children:T.email}):null]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(h.Ay,{id:"password",label:"Password",type:"password",autoComplete:"off",onChange:F,placeholder:"At least 8 characters."}),(null==T?void 0:T.password)?(0,r.jsx)(f.default.ErrorText,{xs:!0,className:"mt-0.5",children:T.password}):null]}),(0,r.jsx)(m.Ay.Carbon,{className:"w-full mt-6 justify-center",type:"submit",loading:k,disabled:k,large:!0,iconRight:(0,r.jsx)(x.ArrowRightIcon,{}),children:"Create Profile"}),(null==T?void 0:T.apiError)?(0,r.jsx)(f.default.ErrorText,{xs:!0,className:"mt-1",children:T.apiError}):null]})}),!l&&(0,r.jsxs)(f.default.MutedText,{className:" text-gray-500 text-center font-normal",children:['By clicking "Create Profileâ you agree to our'," ",(0,r.jsx)(j.A.TextLink,{link:c.LEGAL_DOCS.CODE_OF_CONDUCT,text:"Code of Conduct"}),","," ",(0,r.jsx)(j.A.TextLink,{link:c.LEGAL_DOCS.TERMS_AND_CONDITIONS,text:"Terms of Service"})," ","and"," ",(0,r.jsx)(j.A.TextLink,{link:c.LEGAL_DOCS.PRIVACY_POLICY,text:"Privacy Policy"}),"."]})]})]})};w.getLayout=function(e){return(0,r.jsx)("div",{children:e},"signup")};let C=w}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=61468)),_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.