1"use strict";(globalThis.webpackChunkblk_design_system_pro_react=globalThis.webpackChunkblk_design_system_pro_react||[]).push([[86442],{55466:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(58168),n=t(98587),s=t(65043),i=t(65468),l=["as","disabled","onKeyDown"];function o(e){return!e||"#"===e.trim()}var c=s.forwardRef((function(e,r){var t=e.as,c=void 0===t?"a":t,d=e.disabled,h=e.onKeyDown,p=(0,n.A)(e,l),g=function(e){var r=p.href,t=p.onClick;(d||o(r))&&e.preventDefault(),d?e.stopPropagation():t&&t(e)};return o(p.href)&&(p.role=p.role||"button",p.href=p.href||"#"),d&&(p.tabIndex=-1,p["aria-disabled"]=!0),s.createElement(c,(0,a.A)({ref:r},p,{onClick:g,onKeyDown:(0,i.A)((function(e){" "===e.key&&(e.preventDefault(),g(e))}),h)}))}));c.displayName="SafeAnchor";const d=c},64154:(e,r,t)=>{t.r(r),t.d(r,{default:()=>R});var a=t(92208),n=t(32078),s=(t(59367),t(70926),t(52936)),i=t(65043),l=t(38847),o=t(97508),c=t(91688),d=t(35323),h=t(46325);const p="ReferralBlock_referral_block__uZ1+f",g="ReferralBlock_referral_block__title__XMmB3";var u=t(70579);const f=({referral:e})=>(0,u.jsxs)("div",{className:p,children:[(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,u.jsx)("path",{d:"M11.1 0.500122C6.0372 0.504922 3.4188 0.596121 1.7568 2.2569C0.0960001 3.92009 0.0048 6.53726 0 11.6H5.8968C5.46531 11.0615 5.15542 10.436 4.9884 9.76643C4.344 7.18406 6.684 4.84408 9.2664 5.48847C9.9528 5.66007 10.5744 5.97567 11.1 6.39686V0.500122ZM0 13.4C0.0048 18.4615 0.0960001 21.0799 1.7568 22.7419C3.42 24.4039 6.0372 24.4939 11.1 24.4999V15.0476C10.6267 15.9949 9.89879 16.7917 8.99797 17.3485C8.09715 17.9053 7.05902 18.2001 6 18.1999C5.76131 18.1999 5.53239 18.1051 5.3636 17.9363C5.19482 17.7676 5.1 17.5386 5.1 17.3C5.1 17.0613 5.19482 16.8323 5.3636 16.6636C5.53239 16.4948 5.76131 16.4 6 16.4C6.87795 16.3999 7.73022 16.1038 8.419 15.5594C9.10778 15.015 9.59279 14.2542 9.7956 13.4H0ZM12.9 24.4999C17.9616 24.4939 20.58 24.4039 22.242 22.7419C23.904 21.0811 23.994 18.4615 24 13.4H14.2044C14.4072 14.2542 14.8922 15.015 15.581 15.5594C16.2698 16.1038 17.1221 16.3999 18 16.4C18.2387 16.4 18.4676 16.4948 18.6364 16.6636C18.8052 16.8323 18.9 17.0613 18.9 17.3C18.9 17.5386 18.8052 17.7676 18.6364 17.9363C18.4676 18.1051 18.2387 18.1999 18 18.1999C16.941 18.2001 15.9029 17.9053 15.002 17.3485C14.1012 16.7917 13.3733 15.9949 12.9 15.0476V24.4999ZM24 11.6C23.994 6.53726 23.904 3.91889 22.242 2.2569C20.5812 0.596121 17.9616 0.504922 12.9 0.500122V6.39686C13.4382 5.96556 14.0633 5.65569 14.7324 5.48847C17.316 4.84288 19.6572 7.18286 19.0104 9.76643C18.8437 10.4359 18.5343 11.0614 18.1032 11.6H24Z",fill:"black"}),(0,u.jsx)("path",{d:"M11.1 0.500122C6.0372 0.504922 3.4188 0.596121 1.7568 2.2569C0.0960001 3.92009 0.0048 6.53726 0 11.6H5.8968C5.46531 11.0615 5.15542 10.436 4.9884 9.76643C4.344 7.18406 6.684 4.84408 9.2664 5.48847C9.9528 5.66007 10.5744 5.97567 11.1 6.39686V0.500122ZM0 13.4C0.0048 18.4615 0.0960001 21.0799 1.7568 22.7419C3.42 24.4039 6.0372 24.4939 11.1 24.4999V15.0476C10.6267 15.9949 9.89879 16.7917 8.99797 17.3485C8.09715 17.9053 7.05902 18.2001 6 18.1999C5.76131 18.1999 5.53239 18.1051 5.3636 17.9363C5.19482 17.7676 5.1 17.5386 5.1 17.3C5.1 17.0613 5.19482 16.8323 5.3636 16.6636C5.53239 16.4948 5.76131 16.4 6 16.4C6.87795 16.3999 7.73022 16.1038 8.419 15.5594C9.10778 15.015 9.59279 14.2542 9.7956 13.4H0ZM12.9 24.4999C17.9616 24.4939 20.58 24.4039 22.242 22.7419C23.904 21.0811 23.994 18.4615 24 13.4H14.2044C14.4072 14.2542 14.8922 15.015 15.581 15.5594C16.2698 16.1038 17.1221 16.3999 18 16.4C18.2387 16.4 18.4676 16.4948 18.6364 16.6636C18.8052 16.8323 18.9 17.0613 18.9 17.3C18.9 17.5386 18.8052 17.7676 18.6364 17.9363C18.4676 18.1051 18.2387 18.1999 18 18.1999C16.941 18.2001 15.9029 17.9053 15.002 17.3485C14.1012 16.7917 13.3733 15.9949 12.9 15.0476V24.4999ZM24 11.6C23.994 6.53726 23.904 3.91889 22.242 2.2569C20.5812 0.596121 17.9616 0.504922 12.9 0.500122V6.39686C13.4382 5.96556 14.0633 5.65569 14.7324 5.48847C17.316 4.84288 19.6572 7.18286 19.0104 9.76643C18.8437 10.4359 18.5343 11.
10614 18.1032 11.6H24Z",fill:"#47BA52"}),(0,u.jsx)("path",{d:"M8.82917 7.23525C9.47751 7.39716 10.0531 7.77114 10.4645 8.29775C10.8759 8.82437 11.0994 9.47338 11.0996 10.1416V11.5996H9.64157C8.97333 11.5994 8.32431 11.3759 7.79769 10.9645C7.27107 10.5532 6.89709 9.97756 6.73517 9.32923C6.66323 9.03999 6.66733 8.73707 6.74706 8.44989C6.82679 8.1627 6.97945 7.90102 7.1902 7.69027C7.40095 7.47952 7.66264 7.32686 7.94982 7.24713C8.23701 7.1674 8.53994 7.16331 8.82917 7.23525ZM12.8996 10.1416V11.5996H14.3576C15.7316 11.5996 16.9304 10.6636 17.264 9.32923C17.336 9.03987 17.3319 8.7368 17.2521 8.44949C17.1724 8.16217 17.0196 7.90039 16.8087 7.6896C16.5978 7.47881 16.3359 7.32619 16.0485 7.24657C15.7612 7.16695 15.4581 7.16305 15.1688 7.23525C14.5207 7.39739 13.9453 7.77147 13.5342 8.29806C13.123 8.82465 12.8997 9.47354 12.8996 10.1416Z",fill:"black"}),(0,u.jsx)("path",{d:"M8.82917 7.23525C9.47751 7.39716 10.0531 7.77114 10.4645 8.29775C10.8759 8.82437 11.0994 9.47338 11.0996 10.1416V11.5996H9.64157C8.97333 11.5994 8.32431 11.3759 7.79769 10.9645C7.27107 10.5532 6.89709 9.97756 6.73517 9.32923C6.66323 9.03999 6.66733 8.73707 6.74706 8.44989C6.82679 8.1627 6.97945 7.90102 7.1902 7.69027C7.40095 7.47952 7.66264 7.32686 7.94982 7.24713C8.23701 7.1674 8.53994 7.16331 8.82917 7.23525ZM12.8996 10.1416V11.5996H14.3576C15.7316 11.5996 16.9304 10.6636 17.264 9.32923C17.336 9.03987 17.3319 8.7368 17.2521 8.44949C17.1724 8.16217 17.0196 7.90039 16.8087 7.6896C16.5978 7.47881 16.3359 7.32619 16.0485 7.24657C15.7612 7.16695 15.4581 7.16305 15.1688 7.23525C14.5207 7.39739 13.9453 7.77147 13.5342 8.29806C13.123 8.82465 12.8997 9.47354 12.8996 10.1416Z",fill:"#47BA52"})]})}),(0,u.jsxs)("p",{className:g,children:["Referral ID: ",(0,u.jsx)("span",{children:e})]})]});var m=t(41267),C=t(95237),x=t(57871),v=t(84138),j=t(50272),_=t(30958),y=t(86367),b=t(89773),A=t(64602),w=t(28687),k=t(11761);const N=[{},{},{},{},{},{}],S=({stepParent:e,setStepParent:r,isReferral:t,referral:n,setType:l,recaptchaContainerRef:d})=>{const h=(0,k.J_)(),[p,g]=(0,i.useState)("IN"),[f,m]=(0,i.useState)(""),[C,S]=(0,i.useState)(0),[P,T]=(0,i.useState)(0),[E,R]=(0,i.useState)("+91"),[V,H]=(0,i.useState)(!1),[I,M]=(0,i.useState)(""),L=(0,o.wA)(),[O,F]=(0,i.useState)(!1),[Z,D]=(0,i.useState)(!1),[B,G]=(0,i.useState)(!1),[K,U]=(0,i.useState)(!1),[z,q]=(0,i.useState)(""),[W,J]=(0,i.useState)(60),Q=(0,o.d4)((e=>e.auth.loginErrorMsg)),X=(0,o.d4)((e=>e.auth.phoneToken)),[$,Y]=(0,i.useState)(!0),[ee,re]=(0,i.useState)(!1),{createRecaptcha:te,resetReCaptcha:ae,recaptchaReady:ne,captchaAttempts:se,getVerifier:ie,recaptchaCreating:le,hardReset:oe,clearCaptcha:ce}=(0,w.V)({recaptchaContainerRef:d}),[de,he]=(0,i.useState)(!1),[pe,ge]=(0,i.useState)(!1),ue=(0,c.useHistory)(),fe=(0,i.useRef)(null),me=(0,i.useRef)(null),Ce=(0,i.useRef)(!1);(0,i.useEffect)((()=>()=>{ae()}),[ae]);const xe=e=>{if(13===e.keyCode)if(e.preventDefault(),0===I){if(C&&f||!f)return;ve(e)}else B&&(U(!1),ye())};(0,i.useEffect)((()=>(document.addEventListener("keydown",xe),()=>document.removeEventListener("keydown",xe))),[I,C,f,B]),(0,i.useEffect)((()=>{e!==I&&M(e)}),[e]);const ve=async e=>{if(!Z){D(!0);try{const e=(f||"").replace(/\s/g,"");if("+919999999998"===e)return s.A.track("Redirect to new register app (test phone)",(0,b.q)({phone:e})),ue.push("/signin"),void D(!1);let t=ie();t||(console.error("ReCaptcha not initialized"),s.A.track("Login error",{error:"ReCaptcha not initialized"}),t=await te(!0)),L((0,a.loginUserPhone)(f,t)),0===I&&(M(I+1),r(I+1),F(!0))}catch(e){console.error("Error during phone login:",e),s.A.track("Phone login error",{error:e.message,phone:f,page:"register-app"});try{await oe()}catch(e){console.error("Failed to reset reCAPTCHA:",e)}alert("Security verification failed. Please refresh the page and try again.")}finally{D(!1)}}},je=(e,r)=>{!pe&&e.value&&(s.A.track("Start entering otp",{page:"register-app"}),ge(!0)),window.innerWidth<992&&me.current&&!Ce.current&&(Ce.current=!0,setTimeout((()=>{me.current.scrollIntoView({behavior:"smooth",block:"center"})}),300));const[t,...a]=String(e.value||"").replace(/\D/g,"");e.value=null!=t?t:"";const n=e.value?e.value:"-",i=Array.from(document.querySelectorAll(".app-code-inner input")),l=e.nextElementSibling,o=z.split("");
1if(o[r]=n,a.length)if(a[0]&&i[r+1]&&(i[r+1].value=a[0],o[r+1]=a[0]),a[1]&&i[r+2]&&(i[r+2].value=a[1],o[r+2]=a[1]),a[2]&&i[r+3]&&(i[r+3].value=a[2],o[r+3]=a[2]),a[3]&&i[r+4]&&(i[r+4].value=a[3],o[r+4]=a[3]),a[4]&&i[r+5]&&(i[r+5].value=a[4],o[r+5]=a[4]),a.length>=i.length-(r+1))i[i.length-1].focus();else{i[r+a.length].focus()}else e.value&&l&&l.focus();6===o.filter((e=>+e||0==+e)).length?(B||s.A.track("Otp fully entered",{page:"register-app"}),G(!0),U(!1)):G(!1),q(o.join(""))},_e=e=>{const r=e.target.previousElementSibling;8===e.keyCode&&""===e.target.value&&r&&r.focus()};(0,i.useEffect)((()=>{if(O){J(60);const e=setInterval((()=>{J((e=>e-1))}),1e3),r=setTimeout((()=>{clearInterval(e),F(!1),J(60)}),6e4);return()=>{clearInterval(e),clearTimeout(r)}}}),[O]);const ye=()=>{U(!0),s.A.track("Check otp",{page:"register-app"});const e=n||localStorage.getItem("referrer");L((0,a.verifyUserPhone)(z,X,f,e))},be=async e=>{e.preventDefault(),l("email"),s.A.track("Clicked on Gmail button",{page:"register-app"});try{await L((0,a.googlesignup)())}catch(e){console.log("GOOGLE SIGN UP ERROR"+((null==e?void 0:e.message)||"Error"))}};return(0,u.jsxs)("div",{className:"register-form "+(t?"register-form--referral":""),children:[0===I?(0,u.jsx)("div",{className:"register-form__head",children:(0,u.jsx)("h3",{className:"register-form__title",children:"Get started"})}):1===I?(0,u.jsxs)("div",{className:"register-form__head",children:[(0,u.jsx)("h3",{className:"register-form__title",children:"Enter OTP"}),(0,u.jsxs)("div",{className:"register-form__subtitle",children:["Enter 6 digit OTP sent on"," ",(0,u.jsxs)("p",{className:"register-form__edit",onClick:async e=>{e.preventDefault(),Ce.current=!1,s.A.track("Change phone",{page:"register-app"});try{await ce()}catch(e){console.error("Failed to reset reCAPTCHA:",e)}m(""),q(""),G(!1),M(0),r(0),H(!1),U(!1)},children:[" ",f,(0,u.jsx)("span",{className:"register-form__edit-icon",children:(0,u.jsx)(y.h,{})})]})]})]}):"",0===I?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"phone-app-wrap",children:[(0,u.jsxs)("div",{className:"phone-app phone-app--light",children:[(0,u.jsx)("div",{className:"phone-app__select",children:(0,u.jsx)(x.A,{labels:p,value:p,onChange:g,isBig:!0})}),(0,u.jsx)(v.Ay,{className:"phone-app__input",placeholder:"Enter phone number",country:p,value:f,onChange:e=>{l("phone"),f||de||(s.A.track("Start entering phone number",{page:"register-app"}),he(!0)),e&&m(e),e?(0,j.g0)(e)?(s.A.track("Valid phone",{page:"register-app"}),T(1),S(0)):(T(0),e.length-(E.length||4)>=10?(S(1),T(0)):S(0)):(s.A.track("Changed phone",{page:"register-app"}),T(0))},onFocus:()=>{$&&Y(!1),ee&&re(!1),window.innerWidth<992&&fe.current&&setTimeout((()=>{fe.current.scrollIntoView({behavior:"smooth",block:"center"})}),300)},ref:fe})]}),C&&f?(0,u.jsx)("p",{className:"err-mess-app",children:"Phone number is invalid!"}):""]}),$&&!h?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"email-block",children:(0,u.jsx)("div",{className:"email-block__line",children:(0,u.jsx)("span",{children:"Or"})})}),(0,u.jsxs)("button",{className:"mail-button",onClick:be,children:[(0,u.jsxs)("span",{className:"mail-button__icon",children:[(0,u.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[(0,u.jsxs)("g",{"clip-path":"url(#clip0_16551_185481)",children:[(0,u.jsx)("path",{d:"M21.0673 11.2309C21.0673 10.5537 21.0073 9.91087 20.9045 9.28516H11.2188V13.1509H16.7645C16.5159 14.4194 15.7873 15.4909 14.7073 16.2194V18.7909H18.0159C19.953 16.9994 21.0673 14.3594 21.0673 11.2309Z",fill:"#4285F4"}),(0,u.jsx)("path",{d:"M11.2191 21.2857C13.9962 21.2857 16.3191 20.36 18.0162 18.7915L14.7076 16.22C13.7819 16.8372 12.6076 17.2143 11.2191 17.2143C8.53621 17.2143 6.26478 15.4057 5.45049 12.9629H2.03906V15.6115C3.72763 18.9715 7.19906 21.2857 11.2191 21.2857Z",fill:"#34A853"}),(0,u.jsx)("path",{d:"M5.45074 12.963C5.23645 12.3458 5.12502 11.6858 5.12502 11.0001C5.12502 10.3144 5.24502 9.65439 5.45074 9.03724V6.38867H2.03931C1.33645 7.77724 0.933594 9.33724 0.933594 11.0001C0.933594 12.663 1.33645 14.223 2.03931 15.6115L5.45074 12.963Z",fill:"#FBBC05"}),(0,u.jsx)("path",{d:"M11.2191 4.78627C12.7362 4.78627 14.0905 5.30913 15.1619 6.32913L18.0933 3.3977C16.3191 1.73484 13.9962 0.714844 11.2191 0.714844C7.19906 0.714844 3.72763 3.02913 2.03906 6.38913L5.45049 9.0377C6.26478 6.59485 8.53621 4.78627 11.2191 4.78627Z",fill:"#EA4335"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"clip0_16551_185481",children:(0,u.jsx)("rect",{width:"20.5714",height:"20.5714",fill:"white",transform:"translate(0.714844 0.714844)"})})})]})," "]}),(0,u.jsx)("span",{className:"mail-button__text",children:"Continue with Google"})]})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("label",{className:"login-accept",children:[(0,u.jsx)("input",{className:"login-accept__input",type:"checkbox",onChange:e=>{var r;s.A.track("Changed Accept Privacy",{page:"register-app"}),H(null==e||null===(r=e.target)||void 0===r?void 0:r.checked)}}),(0,u.jsxs)("span",{className:"login-accept__inner",children:[(0,u.jsx)("span",{className:"login-accept__check",children:(0,u.jsx)("span",{className:"login-accept__icon",children:(0,u.jsx)(_.h,{})})}),(0,u.jsxs)("span",{className:"login-accept__text",children:["I read and accept ",(0,u.jsx)("span",{onClick:()=>{s.A.track("Clicked T&C",{}),ue.push("/official_terms_policy")},children:"Kandor T&C"})," ","and authorize Kandor representative to text me."]})]})]}),(0,u.jsxs)("div",{className:"register-form__footer ",children:[(0,u.jsx)("button",{className:"register-form__btn m-0 "+(!P&&f||!f||!V||Z?"disabled":""),type:"button",onClick:async()=>{try{await ve()}catch(e){console.error("Failed to create reCAPTCHA",e)}},disabled:Z||!V,children:Z?"Sending OTP...":"Sign Up"}),!h&&(0,u.jsxs)("p",{className:"googleText mt-2",children:["Donât want to use your phone?"," ",(0,u.jsx)("span",{className:"googleText__link",onClick:be,children:"Continue with Google"})]})]})]})]}):1===I?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"login-code",children:(0,u.jsx)("div",{className:"login-code__inner app-code-inner",ref:me,children:N.map(((e,r)=>(0,u.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:0===r?"one-time-code":"off",onInput:({target:e})=>je(e,r),onKeyDown:_e,className:"login-code__input "},r)))})}),(0,u.jsxs)("div",{className:"register-form__subtitle text-center "+(O?"disabled":""),onClick:O?void 0:async e=>{e.preventDefault(),s.A.track("Resend otp",{page:"register-app"});try{console.log("Resend Clicked - Forcing new CAPTCHA");const e=await te(!0);L((0,a.loginUserPhone)(f,e)),F(!0)}catch(e){console.error("Error during OTP resend:",e),s.A.track("Phone resend error",{error:e.message,phone:f});try{await oe()}catch(e){console.error("Failed to reset reCAPTCHA:",e)}alert("Security verification failed. Please refresh the page and try again.")}},children:["Didnât receive OTP?"," ",(0,u.jsxs)("span",{className:"register-form__resend",children:["Resend ",O?`(${W})`:""]})]}),Q&&(0,u.jsx)(A.A,{style:{background:"#f85149",marginTop:"20px"},onClose:()=>{Q&&L((0,a.resetErrorMsg)())},variant:"danger",dismissible:!0,fade:!0,transition:!0,children:(0,u.jsxs)("p",{style:{color:"white",display:"flex",alignItems:"center",margin:0},children:[(e=>{const r=e.match(/\(([^)]+)\)/),t=r?r[1]:"ReCaptcha Error";return t.charAt(0).toUpperCase()+t.slice(1).replace(/\//g," ").replace(/-/g," ")})(Q)," Please try again!"]})}),(0,u.jsxs)("div",{className:"register-form__footer ",children:[(0,u.jsxs)("button",{className:"register-form__btn m-0 "+(!B||K?"disabled":""),type:"button",onClick:ye,children:["Verify ","&"," Proceed"]}),!h&&(0,u.jsxs)("p",{className:"googleText mt-2",children:["Donât want to use your phone?"," ",(0,u.jsx)("span",{className:"googleText__link",onClick:be,children:"Continue with Google"})]})]})]}):""]})},P=i.lazy((()=>t.e(58579).then(t.bind(t,58579)))),T=i.lazy((()=>t.e(33603).then(t.bind(t,33603)))),E=i.lazy((()=>Promise.all([t.e(35949),t.e(38004),t.e(53887)]).then(t.bind(t,53887)))),R=()=>{const{referrer:e}=(0,d.g)(),r=(0,o.d4)((e=>e.auth.isAuthenticated)),t=(0,o.d4)((e=>e.auth.hasOnboarded)),p=(0,o.d4)((e=>e.auth.isVerifying)),g=(0,o.d4)((e=>e.auth.userCreatedAndFetched)),x=(0,d.W6)(),v=(0,c.useLocation)(),[j,_]=(0,i.useState)("phone"),[y,b]=(0,i.useState)(""),[A,w]=(0,i.useState)(0),k=(0,C.useMediaQuery)({query:"(max-width: 1023px)"}),N=(0,i.useRef)(null);(0,i.useEffect)((()=>(document.documentElement.scrollTop=0,document.scrollingElement.scrollTop=0,document.body.classList.add("login-page"),document.body.classList.toggle("white-content"),v.state&&(v.state.from.hash?b(v.state.from.pathname+v.state.from.hash):b(v.state.from.pathname),console.log("LOCATION",v.state.from.pathname)),window.fbq("track","RegisterPage"),s.A.track("Entered to referral Register page",{}),()=>{document.body.classList.remove("login-page"),document.body.classList.toggle("white-content")})),[]);const R=(0,o.wA)(),[V,H]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{e&&localStorage.setItem("referrer",e)}),[]),(0,i.useEffect)((()=>
1{if(r){if(H(!0),!g)return;t?x.push(y):(0,n.bd)({}).then((e=>e.data)).then((e=>{e.userMail?_("email"):_("phone"),1===e.is_onboarded?(R((0,a.hasOnboardedVerify)()),R((0,a.hasOnboarded)()),x.push(y)):(R((0,a.hasOnboardedVerify)()),w(A+1),H(!1),s.A.track("Go to onboarding",{page:"signup/referrer"}))})).catch((e=>{R((0,a.hasOnboardedVerify)()),H(!1),s.A.track("Go to onboarding failed",{error:e,page:"signup/referrer"})}))}H(!!p)}),[R,y,x,r,t,p,g]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(l.Ay,{children:[(0,u.jsx)("title",{children:"Sign In"}),(0,u.jsx)("meta",{id:"meta-description",name:"description",content:"Register with your phone number to get access to the most trusted IELTS Prep Tool in the world."}),(0,u.jsx)("meta",{id:"og-title",property:"og:title",content:"Kandor: IELTS Prep Tool"})]}),t&&r&&(0,u.jsx)(d.rd,{to:y}),V&&(0,u.jsx)(h.A,{}),(0,u.jsxs)("section",{className:"login-page",style:{backgroundColor:"#fff"},children:[(0,u.jsx)("div",{id:"sign-in-button",ref:N}),(0,u.jsxs)("div",{className:"referral-login",children:[k&&(0===A||e&&1===A)||!k?(0,u.jsx)("div",{className:"referral-login__slider "+(k||e?"":"lg-banner"),children:0===A||A>0&&!k?(0,u.jsx)(m.A,{isBig:!0}):null}):"",(0,u.jsx)("div",{id:"sign-in-button",className:"d-none"}),(0,u.jsx)("div",{className:"referral-login__form",children:(0,u.jsx)("div",{fluid:!0,className:"referral-login__inner",children:0===A||e&&1===A?(0,u.jsx)(u.Fragment,{children:e?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f,{referral:e||localStorage.getItem("referrer")}),(0,u.jsx)(S,{stepParent:A,setStepParent:w,isReferral:!0,setType:_,referral:e||localStorage.getItem("referrer"),recaptchaContainerRef:N})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f,{referral:e||localStorage.getItem("referrer")}),(0,u.jsx)(P,{referral:e||localStorage.getItem("referrer")}),(0,u.jsx)(T,{step:A,referral:e||localStorage.getItem("referrer"),setType:_})]})}):(0,u.jsx)("div",{className:"login-wrap",children:(0,u.jsx)(E,{step:A,setStep:w,withNotification:!0,isOnboarded:t,type:j})})})})]})]})]})}},64602:(e,r,t)=>{t.d(r,{A:()=>y});var a=t(58168),n=t(98587),s=t(98139),i=t.n(s),l=t(65043),o=t(97121),c=t(71456),d=t(67852),h=t(18072),p=t(85632),g=t(4488),u=t(80700),f=t(55466),m=["bsPrefix","show","closeLabel","className","children","variant","onClose","dismissible","transition"],C=(0,g.A)("h4");C.displayName="DivStyledAsH4";var x=(0,u.A)("alert-heading",{Component:C}),v=(0,u.A)("alert-link",{Component:f.A}),j={show:!0,transition:h.A,closeLabel:"Close alert"},_=l.forwardRef((function(e,r){var t=(0,o.Zw)(e,{show:"onClose"}),s=t.bsPrefix,g=t.show,u=t.closeLabel,f=t.className,C=t.children,x=t.variant,v=t.onClose,j=t.dismissible,_=t.transition,y=(0,n.A)(t,m),b=(0,d.oU)(s,"alert"),A=(0,c.A)((function(e){v&&v(!1,e)})),w=!0===_?h.A:_,k=l.createElement("div",(0,a.A)({role:"alert"},w?void 0:y,{ref:r,className:i()(f,b,x&&b+"-"+x,j&&b+"-dismissible")}),j&&l.createElement(p.A,{onClick:A,label:u}),C);return w?l.createElement(w,(0,a.A)({unmountOnExit:!0},y,{ref:void 0,in:g}),k):g?k:null}));_.displayName="Alert",_.defaultProps=j,_.Link=v,_.Heading=x;const y=_},65468:(e,r,t)=>{t.d(r,{A:()=>a});const a=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((function(e){return null!=e})).reduce((function(e,r){if("function"!=typeof r)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?r:function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];e.apply(this,a),r.apply(this,a)}}),null)}}}]); 2//# sourceMappingURL=RegisterPageReferral.74763b17.chunk.js.map
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.