1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19f0fcfc-1c24-4ab3-a14b-ce470fbec8a5",e._sentryDebugIdIdentifier="sentry-dbid-19f0fcfc-1c24-4ab3-a14b-ce470fbec8a5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8842,75865,91086],{64472:(e,t,l)=>{"use strict";l.d(t,{A:()=>m,L:()=>u});var r=l(74848),a=l(18058),n=l(34164),i=l(96540),o=l(49785),s=l(95669),d=l.n(s);let c=e=>{let t=e.value,l=(0,a.U2)(),o=(0,a.zh)({backgroundColor:t?"#5C5BD5":"#fff",borderColor:t?"#5C5BD5":"#969696",config:a.$W.stiff,ref:l}),[s,c]=(0,i.useState)(null),u=(0,a.U2)(),m=(0,a.zh)({x:t?0:s,config:a.$W.stiff,ref:u});return(0,a.n$)(t?[l,u]:[u,l],[0,.1]),(0,r.jsxs)("label",{className:"flex items-center cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",onChange:()=>{e.onChange&&e.onChange(!e.value)},className:d().checkboxInput}),(0,r.jsx)(a.CS.svg,{style:o,className:(0,n.A)(e.checkboxClassName,"inline-block h-5 w-5 bg-transparent border rounded-md flex-shrink-0"),"aria-hidden":"true",viewBox:"0 0 15 11",fill:"none",children:(0,r.jsx)(a.CS.path,{d:"M2 5.0625L5.38462 9L13 2",strokeWidth:"2",stroke:"#fff",ref:e=>{e&&c(e.getTotalLength())},strokeDasharray:s,strokeDashoffset:m.x})}),(0,r.jsx)("div",{className:"inline-flex ml-3",children:e.label&&e.label({error:e.error})})]})},u=e=>{let{control:t,name:l,...a}=e;return(0,r.jsx)(o.xI,{name:l,control:t,render:e=>{var t;let{field:{onChange:l,value:n},fieldState:i}=e;return(0,r.jsx)(c,{value:n,error:null==i?void 0:null===(t=i.error)||void 0===t?void 0:t.message,onChange:l,...a})}})},m=c},15583:(e,t,l)=>{"use strict";l.d(t,{L:()=>d});var r=l(74848),a=l(34164),n=l(67198);l(72528);var i=l(80809),o=l(29997),s=l.n(o);let d=e=>{let{children:t,onChange:l,placeholder:o,register:d,label:c,error:u,className:m="",onBlur:p,onFocus:x,leftIcon:f,type:h,isTouched:v,inputClassName:y,...g}=e;return(0,r.jsxs)(i.A,{children:[(0,r.jsx)("div",{className:"".concat(t&&"relative"," flex mt-1"),children:u&&v?(0,r.jsx)("label",{className:"font-semibold text-sm text-text-error-primary absolute",children:u}):(0,r.jsx)(r.Fragment,{children:c?(0,r.jsx)("label",{className:"font-semibold text-sm text-text-title-primary absolute",children:c}):null})}),(0,r.jsxs)("div",{className:"".concat(m," ").concat(t&&"flex relative"),children:[f?(0,r.jsx)("div",{className:"absolute top-0 h-full justify-center items-center flex flex-column w-10",children:f}):null,(0,r.jsx)(n.A,{placeholder:o,nationalMode:!0,containerClassName:"intl-tel-input w-full",inputClassName:(0,a.A)("".concat(s().phoneInput," form-control w-full border border-border-main-tertiary outline-border-accent rounded-lg pb-2 pt-2 text-lg font-bold bg-bg-inverted text-text-title-primary"),y),preferredCountries:["au"],onPhoneNumberChange:function(e,t,r,a){for(var n=arguments.length,i=Array(n>4?n-4:0),o=4;o<n;o++)i[o-4]=arguments[o];l(e,a,r,i)},onPhoneNumberBlur:p,onPhoneNumberFocus:x}),t]})]})}},75865:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>s});var r=l(74848),a=l(34164),n=l(96540),i=l(91086),o=l.n(i);let s=e=>{var t;let l=(0,n.useCallback)(t=>()=>{e.onSelect&&e.onSelect(t)},[e.onSelect]);return(0,r.jsx)("div",{className:"flex -mx-3",children:null==e?void 0:null===(t=e.options)||void 0===t?void 0:t.map(t=>(0,r.jsx)("div",{className:"mx-3",onClick:l(t),children:(0,r.jsx)("span",{title:t.label,className:(0,a.A)("!font-pptelegraf text-[17px] cursor-pointer transition-colors hover:text-text-title-primary",o().pseudoWidth,t.value===e.value?(0,a.A)("font-bold text-text-title-primary",o().underline):"text-[#969696]"),children:t.label})},t.label))})}},8842:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SignUp:()=>eu});var r=l(74848),a=l(28871),n=l(72505),i=l.n(n),o=l(34164),s=l(99753),d=l(14792),c=l.n(d),u=l(9885),m=l.n(u),p=l(86715),x=l(96540),f=l(49785),h=l(37564),v=l(14476),y=l(44515),g=l(46751),b=l(80809),j=l(55897),N=l(4362),C=l(64472),_=l(14953),w=l.n(_),k=l(90580),I=l(10123),S=l(46875),A=l.n(S);let q=w()(()=>
1Promise.all([l.e(29605),l.e(85871)]).then(l.bind(l,77494)),{loadableGenerated:{webpack:()=>[77494]},ssr:!1}),P=()=>(0,r.jsx)("div",{className:"w-[20px] flex items-center",children:(0,r.jsx)(k.Ay,{className:"rotate-90",fill:"#5C5BD5",opacity:"1",width:10,height:20})}),E=e=>t=>({...t,marginTop:0,paddingTop:0,borderwidth:10,borderRadius:14,fontSize:12,maxHeight:"open"===e?"240px":"0px",overflow:"hidden",opacity:"open"===e?1:0,transition:"all 0.2s ease-in-out",visibility:"open"===e?"visible":"hidden"});function R(e){let{error:t,isTouched:l,className:a,placeholder:n,options:i=[],label:s,isDisabled:d=!1,defaultValue:c,onBlur:u,onFocus:m,value:p,...f}=e,[h,v]=(0,x.useState)(!1),y=(0,x.useCallback)(e=>{m&&m(e),v(!0)},[]),g=(0,x.useCallback)(e=>{u&&u(e),v(!1)},[]),[j,N]=(0,x.useState)(!1),[C,_]=(0,x.useState)(null),w=(0,x.useCallback)(()=>{_("close"),setTimeout(()=>{_(null),N(!1)},300)},[]),k=(0,x.useCallback)(()=>{N(!0),setTimeout(()=>{_("open")})},[]);return(0,r.jsx)(b.A,{children:(0,r.jsxs)("div",{className:A().inputContainer,children:[s?(0,r.jsx)("div",{className:"flex flex-row w-full justify-between",children:t&&!1!==l?(0,r.jsx)("label",{className:(0,o.A)("text-sm z-10 text-text-error-secondary font-semibold",A().label,{[A().floating]:h||p}),children:t}):s?(0,r.jsx)("label",{className:(0,o.A)("text-[17px] leading-none z-10 text-[#9199A9] font-medium",A().label,{[A().floating]:h||p}),children:s}):null}):null,(0,r.jsx)(q,{defaultValue:c,placeholder:null,isDisabled:d,onFocus:y,onBlur:g,value:p,menuIsOpen:j,onMenuOpen:k,onMenuClose:w,components:{DropdownIndicator:P},styles:{control:e=>({...e,borderColor:t&&!1!==l?I.theme.colors.red.light:"#969696",borderRadius:"18px",height:61,fontWeight:600,"&:hover":{borderColor:t&&!1!==l?I.theme.colors.red.light:"#969696"}}),indicatorsContainer:e=>({...e,paddingRight:"8px"}),indicatorSeparator:e=>({...e,display:"none"}),menu:E(C),option:(e,t)=>({...e,height:41,backgroundColor:t.isFocused?"#5C5BD5":"white",color:t.isFocused?"white":"black",fontSize:17,paddingLeft:26,display:"flex",alignItems:"center"}),valueContainer:(e,t)=>({...e,paddingLeft:26}),input:e=>({...e,paddingLeft:0}),menuList:e=>({...e,padding:"0","::-webkit-scrollbar":{width:"5px"},"::-webkit-scrollbar-track":{"-webkit-box-shadow":"inset 0 0 6px rgba(0,0,0,0.00)"},"::-webkit-scrollbar-thumb":{backgroundColor:"#5C5BD5",borderRadius:"8px"}})},options:i,...f})]})})}let T=e=>{let{control:t,name:l,...a}=e;return(0,r.jsx)(f.xI,{name:l,control:t,render:e=>{var t;let{field:{onChange:l,onBlur:n,value:i},fieldState:o}=e;return(0,r.jsx)(R,{onBlur:n,value:i,error:null==o?void 0:null===(t=o.error)||void 0===t?void 0:t.message,onChange:l,...a})}})};var z=l(26074),M=l(34356),F=l(15583),D=l(46190),K=l(92411),V=l.n(K);let G=(0,x.forwardRef)((e,t)=>{let[l,a]=(0,x.useState)(0),[n,i]=(0,x.useState)(!1);return(0,x.useImperativeHandle)(t,()=>({step:l,getStep:()=>l,nextStep:()=>{l<e.steps.length&&(i(!0),setTimeout(()=>{a(l+1),i(!1)},500))},prevStep:()=>{l>0&&(i(!0),setTimeout(()=>{a(l-1),i(!1)},500))},setStep:t=>{t>0&&t<e.steps.length&&(i(!0),setTimeout(()=>{a(t),i(!1)},500))}}),[l,e.steps]),(0,r.jsx)("div",{className:(0,o.A)(e.className,n?V().hide:V().show),children:e.steps[l]})});var U=l(29378),W=l(20781),L=l(66113),O=l(50850),B=l(94379),X=l(31630),H=l(82578),Q=l(34330),Z=l(26262),J=l(94980),$=l(42258),Y=l(27856),ee=l(91529),et=l(52471),el=l(95953),er=l(79797),ea=l(80837),en=l(24989),ei=l(49266),eo=l(75865),es=l(91086),ed=l.n(es);let ec=W.HH.map(e=>({value:e,label:e})),eu=e=>{var t,l,n,d,u,h;let{onClickCallback:N,code:_,topEnabled:w=!0,standAlone:k=!1,className:I,affiliate:S,accountType:A,referer:q,adviserSignup:P=!1,hideReferralCode:E=!1,hideCountryOfResidence:R=!1}=e,F=(0,j.c)(),{hasError:K}=(0,x.useContext)(D.Xb),[V,W]=(0,x.useState)("3"),X=(0,x.useRef)(null),Q=(0,x.useRef)(null),es=(0,x.useRef)(""),eu=(0,s.Xr)(J.G9),em=(0,s.Xr)(J.m3),ex=(0,s.Xr)(J.$T),ef=(0,s.Xr)(J.Bw),[ev]=(0,O.Yoh)({}),[ey,eg]=(0,x.useState)(!1),eb=(0,p.useRouter)(),[ej]=(0,H.Ee)(),eN=eb.query.code||eb.query.a||_||ej,[eC]=(0,Z.l)(),e_=(0,x.useRef)();(0,x.useEffect)(()=>{eM("referralCode",eN)},[eN]);let ew={displayName:v.z.string({required_error:"First / Display name is required"}).regex(/^[a-zA-Z0-9 ]*$/,{message:(0,$.t)("Only letters, numbers and spaces allowed")}).min(2,{message:(0,$.t)("Enter your name")}
1),email:v.z.string({required_error:"Email is required"}).email({message:(0,$.t)("Enter a valid email")}).refine(e=>!P||(0,Y.L)(e),{message:(0,$.t)("Please use a work email")}),termsAndConditions:v.z.boolean().refine(e=>!0===e,{message:(0,$.t)("Please accept Terms & Conditions")}),accountType:v.z.object({value:v.z.string({required_error:"Account Type is required"}),label:v.z.string()})};R||(ew.countryOfResidence=v.z.object({value:v.z.string({required_error:"Country of residence is required"}),label:v.z.string()}).nullish().refine(e=>null!==e,"Country of residence is required")),E||(ew.referralCode=v.z.string().nullish().optional());let ek=v.z.object(ew).merge(ei.wJ).partial().refine(ei.r9,ei.zo),eI=P?U.k:U.X[0],{handleSubmit:eS,control:eA,formState:{errors:eq,isDirty:eP,isSubmitting:eE,touchedFields:eR,submitCount:eT,isValid:ez},setValue:eM}=(0,f.mN)({mode:"onChange",resolver:(0,a.u)(ek),defaultValues:{displayName:null===(t=eb.query)||void 0===t?void 0:t.name,email:null===(l=eb.query)||void 0===l?void 0:l.email,password:"",repeatPassword:"",referralCode:eN||"",countryOfResidence:{value:"Australia",label:"Australia"},termsAndConditions:!1,marketingInsights:!0,accountType:eI}}),eF=(0,f.FH)({control:eA,name:"accountType"}),eD=(0,f.FH)({control:eA,name:"referralCode"});(0,H.En)(eD),(0,x.useEffect)(()=>{if((null==q?void 0:q.endsWith("smsf"))||(null==q?void 0:q.endsWith("smsf-welcome-bonus"))){var e;eM("accountType",U.X.find(e=>"smsf"===e.value)),null==e_||null===(e=e_.current)||void 0===e||e.nextStep()}},[q]),(0,x.useEffect)(()=>{var e,t,l,r;(null===(e=eb.query)||void 0===e?void 0:e.verify)==="email"?null==e_||null===(l=e_.current)||void 0===l||l.setStep(P?1:2):(null===(t=eb.query)||void 0===t?void 0:t.verify)==="phone"&&(null==e_||null===(r=e_.current)||void 0===r||r.setStep(P?2:3))},[null===(n=eb.query)||void 0===n?void 0:n.verify]);let eK=async e=>{var t,l,r,a,n,o,s,d,c,u,p,x,f,h,v,y;let g;eg(!0),eu({}),em({}),ex({}),ef({});let b=F("signup"),j=F("login");if("2"===V)g=es.current;else{if(!(null==X?void 0:null===(t=X.current)||void 0===t?void 0:t.executeRecaptcha)){eg(!1),eL(),er.Ay.log("Execute reCaptcha not yet available");return}try{g=await (null==X?void 0:null===(l=X.current)||void 0===l?void 0:l.executeRecaptcha("signin"))}catch(e){eg(!1),eL(),er.Ay.log("Execute reCaptcha error");return}}if(!g){$.oR.error((0,$.t)("Please complete the captcha challenge")),eg(!1),er.Ay.log("No token"),"2"===V?eH():eL();return}try{let[t,l]=await Promise.all([b,j]),p={email:e.email,password:e.password,acceptMarketing:e.marketingInsights,displayName:e.displayName,country:e.countryOfResidence?null===(r=e.countryOfResidence)||void 0===r?void 0:r.value:"Australia",accountType:e.accountType.value,token:g,captchaVersion:V,referralCode:e.referralCode||"",...t,...l.fId?{loginFId:l.fId}:{},...l.cId?{loginCId:l.cId}:{}},x=await i().post("/api/auth/signup",p);$.IG.setItem("userId",null==x?void 0:null===(a=x.data)||void 0===a?void 0:a.userId),$.IG.setItem("login_validity_date",m()().add((0,et.kK)(),"seconds").toDate().toString()),(null==x?void 0:null===(n=x.data)||void 0===n?void 0:n.requestKey)&&$.IG.setItem("emailRequestKey",null==x?void 0:null===(d=x.data)||void 0===d?void 0:d.requestKey);let f=(0,H.Zl)(eb),h=(0,en.e)();try{await ev({variables:{userId:null==x?void 0:null===(c=x.data)||void 0===c?void 0:c.userId,updateUserMarketingPayloadInput:{...eV,...h||{},...f}}})}catch(e){er.Ay.error("update marketing failed",e)}await (0,ee.Bu)(),await (0,ee.gm)(null==x?void 0:null===(o=x.data)||void 0===o?void 0:o.userId,{});try{(0,ee.sx)("signup",{email:null==e?void 0:e.email,acceptMarketing:!0,displayName:null==e?void 0:e.displayName,userId:null==x?void 0:null===(u=x.data)||void 0===u?void 0:u.userId,accountType:e.accountType.value})}catch(e){er.Ay.error("tracking signup failed",e)}(0,ea.QI)("complete_signup",{method:"email",accountType:e.accountType.value,referrerCode:e.referralCode||"",acceptMarketing:e.marketingInsights});try{window.__adroll.record_user({adroll_segments:"ff78ebea"})}catch(e){er.Ay.error("[analytics] Error with __adroll.record_user ",e)}(0,el.fr)(e.email),eb.push({pathname:eb.pathname,query:{...eb.query,verify:"email"}},void 0,{shallow:!0}),null==e_||null===(s=e_.current)||void 0===s||s.nextStep()}catch(e){er.Ay.error("[/api/auth/signup] error: ",e),(null==e?void 0:null===(f=e.response)||void 0===f?void 0:null===(x=f.data)||void 0===x?void 0:null===(p=x.gqlErrors)||void 0===p?void 0:p.graphQLErrors)&&(0,$.hd)(null==e?void 0:null===(y=e.response)||void 0===y?void 0:null===(v=y.data)||void 0===v?void 0:null===(h=v.gqlErrors)||void 0===h?void 0:h.graphQLErrors)}eg(!1)}
1,eV=(0,H.YC)(),eG=(0,x.useMemo)(()=>eb.query.utm_source||eb.query.utm_campaign||eb.query.utm_medium||eb.query.utm_term||eb.query.utm_content||eb.query.code||eb.query.a||eN,[eb.query,eN]),{data:eU,loading:eW}=(0,B.QaZ)({skip:!eG,variables:{query:{utmSource:eb.query.utm_source,utmCampaign:eb.query.utm_campaign,utmMedium:eb.query.utm_medium,utmTerm:eb.query.utm_term,utmContent:eb.query.utm_content,...eG===eN?{code:eN}:{}}}}),eL=(0,x.useCallback)(()=>{"3"===V&&W("2")},[V]),eO=(0,x.useCallback)(e=>{es.current=e},[]),eB=(0,x.useCallback)(()=>{es.current=""},[]),eX=(0,x.useCallback)(()=>{var e;null===(e=Q.current)||void 0===e||e.reset()},[]),eH=(0,x.useCallback)(()=>{var e;null===(e=Q.current)||void 0===e||e.render()},[]),eQ=!eG||!(null==eU?void 0:null===(d=eU.getAffiliateData)||void 0===d?void 0:d.affiliate);return(0,x.useEffect)(()=>{if(A&&U.X.some(e=>e.value===A)){var e;eM("accountType",U.X.find(e=>e.value===A)),null==e_||null===(e=e_.current)||void 0===e||e.nextStep()}},[A]),(0,r.jsx)(b.A,{children:(0,r.jsx)(G,{ref:e_,steps:[...P?[]:[(0,r.jsxs)("div",{className:"flex flex-col h-full max-w-xl mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center lg:justify-end justify-between mb-[73px]",children:[(0,r.jsx)("div",{className:"lg:hidden flex grow",children:(0,r.jsx)(M.Ay,{fill:"black"})}),(0,r.jsx)(g.A,{variant:"outline",rounded:!0,size:"sm",className:"lg:flex hidden sm:hidden",onClick:el.MD,children:(0,$.t)("Onboard Assistance")})]}),(0,r.jsxs)("div",{className:"mb-12",children:[(0,r.jsx)("h1",{className:"font-medium !font-pptelegraf md:text-[52px] sm:text-[40px] text-[32px] text-text-title-primary leading-none mb-[6px]",children:(0,$.t)("Select Account Type")}),(0,r.jsx)("span",{className:"!font-fkGroteskNeue font-normal text-[17px] leading-normal text-text-title-primary",children:(0,$.t)("Create an account type from the options below")})]}),(0,r.jsx)("div",{className:"mb-12",children:(0,r.jsx)(T,{isSearchable:!1,options:U.X,name:"accountType",label:"Select option",control:eA})}),(0,r.jsx)("div",{className:"lg:my-4 mt-auto mb-4 flex flex-col",children:(0,r.jsx)(g.A,{className:"font-semibold",size:"md",rounded:!0,disabled:!eF,onClick:null==e_?void 0:null===(u=e_.current)||void 0===u?void 0:u.nextStep,children:(0,$.t)("Continue to Enter Details")})}),(0,r.jsxs)("div",{className:"text-center mt-auto flex flex-row items-center justify-center",children:[(0,r.jsx)("p",{className:"!font-pptelegraf text-[#969696]",children:(0,$.t)("Already have an account?")}),(0,r.jsx)(g.A,{color:"light-purple",rounded:!0,size:"long-md",className:"ml-2",href:"/auth/signin",children:(0,$.t)("Login")})]})]})],(0,r.jsxs)("form",{className:"flex flex-col h-full max-w-xl mx-auto",onSubmit:eS(eK),children:[(0,r.jsxs)("div",{className:(0,o.A)("flex items-center desktop-short:mb-12 desktop-normal:mb-[73px] mb-5",P?"justify-end":"justify-between"),children:[P?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(eo.default,{options:U.X,onSelect:e=>eM("accountType",U.X.find(t=>t.value===e.value)),value:eF.value}),(0,r.jsx)(g.A,{variant:"outline",rounded:!0,size:"sm",className:"lg:flex hidden sm:hidden",onClick:()=>{(0,el.MD)()},children:(0,$.t)("Onboard Assistance")})]}),(0,r.jsxs)("div",{className:(0,o.A)("desktop-normal:mb-14 mb-6 desktop-short:block lg:hidden block",eQ?"desktop-short:mb-[50px]":"desktop-short:mb-[14px]"),children:[(0,r.jsx)("h1",{className:"font-medium !font-pptelegraf md:text-[52px] text-[40px] text-text-title-primary mb-[6px] leading-none -mx-1",children:(0,$.t)("Create your Account")}),eQ&&(0,r.jsxs)("div",{className:"!font-fkGroteskNeue font-normal text-[17px] leading-normal text-text-title-primary",children:[(0,r.jsx)("span",{children:(0,$.t)("Create ")}),(0,r.jsx)("span",{children:"smsf"===eF.value||"individual"===eF.value||"adviser"===eF.value?(0,$.t)(" an "):(0,$.t)(" a ")}),(0,r.jsx)("span",{className:"underline",children:"smsf"===eF.value?eF.value.toUpperCase():c()(eF.value)}),(0,r.jsx)("span",{children:(0,$.t)(" Account")})]})]}),P?null:(0,r.jsxs)(r.Fragment,{children:[eG&&(0,r.jsx)(y.A,{loading:eW,affiliate:null==eU?void 0:null===(h=eU.getAffiliateData)||void 0===h?void 0:h.affiliate}),(0,r.jsxs)("div",{className:"flex xs:flex-row flex-col justify-center desktop-normal:mb-7 mb-3 -mx-3",children:[(0,r.jsx)(g.y,{className:"xs:w-1/2 mx-3 xs:mb-0 mb-4",text:(0,$.t)("Sign up with "),socialNetwork:"Google",action:"signup",accountType:null==eF?void 0:eF.value}),(0,r.jsx)(g.y,{className:"xs:w-1/2 mx-3",text:(0,$.t)("Sign up with "),socialNetwork:"Apple",action:"signup",accountType:null==eF?void 0:eF.value})]}),(0,r.jsx)("div",{className:(0,o.A)("w-full text-center relative",ed().lineThrough),children:(0,r.jsx)("span",{className:"text-[#969696] text-[21px] bg-bg-inverted px-3.5 z-10 relative",children:(0,$.t)("or")})})]}),(0,r.jsxs)("div",{className:"desktop-normal:mt-8 mt-4",children:[(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsx)(z.xw,{noSpecialSymbols:!0,placeholder:"John Smith",name:"displayName",label:(0,$.t)("First Name / Display Name"),control:eA})}),(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsx)(z.xw,{noWhitecpaces:!0,noSpecialSymbols:!0,placeholder:"[email protected]",name:"email",label:(0,$.t)("Email address"),control:eA,id:"email"})}),R&&E?null:(0,r.jsxs)("div",{className:"flex md:flex-row flex-col md:-mx-3 mb-5",children:[R?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",{className:"basis-1/2 md:px-3 md:py-0 pb-5",children:(0,r.jsx)(T,{options:[{value:"Australia",label:"Australia"},...ec],name:"countryOfResidence",label:"Country of Residence",control:eA,defaultValue:null})}),E?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",{className:"basis-1/2 md:px-3 md:py-0",children:(0,r.jsx)(z.xw,{noWhitecpaces:!0,placeholder:(0,$.t)("Referral Code"),name:"referralCode",label:(0,$.t)("Referral Code"),rightAccessory:(0,$.t)("(Optional)"),control:eA,maxLength:16})})]}),(0,r.jsxs)("div",{className:"flex md:flex-row flex-col md:-mx-3",children:[(0,r.jsx)("div",{className:"basis-1/2 md:px-3 md:py-0 pb-5",children:(0,r.jsx)(z.l1,{placeholder:(0,$.t)("Password"),name:"password",label:(0,$.t)("Password"),control:eA})}),(0,r.jsx)("div",{className:"basis-1/2 md:px-3 md:py-0 pb-5",children:(0,r.jsx)(z.l1,{placeholder:(0,$.t)("Confirm Password"),name:"repeatPassword",label:(0,$.t)("Confirm Password"),control:eA})})]})]}),(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(C.L,{name:"termsAndConditions",control:eA,label:e=>{let{error:t}=e;return(0,r.jsxs)("span",{className:"!font-pptelegraf",children:[(0,$.t)("I have read and accept the "),(0,r.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:L.jm,className:"!font-pptelegraf underline hover:opacity-80 ".concat(t?"text-text-error-primary":"text-text-main-primary"),children:(0,$.t)("Terms & Conditions")}),(0,$.t)(", "),(0,r.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:L.WO,className:"!font-pptelegraf underline hover:opacity-80 ".concat(t?"text-text-error-primary":"text-text-main-primary"),children:(0,$.t)("Privacy Policy")}),P?(0,$.t)(", "):(0,$.t)(" and "),(0,r.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:L.jI,className:"!font-pptelegraf underline hover:opacity-80 ".concat(t?"text-text-error-primary":"text-text-main-primary"),children:(0,$.t)("Privacy Collection Notice")}),P?(0,r.jsxs)(r.Fragment,{children:[(0,$.t)(" and "),(0,r.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:L.h4,className:"!font-pptelegraf underline hover:opacity-80 ".concat(t?"text-text-error-primary":"text-text-main-primary"),children:(0,$.t)("Adv
1iser Access Agreement")})]}):null]})}})})}),K?(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(D._y,{})}):(0,r.jsxs)("div",{className:"flex justify-center",children:["3"===V&&(0,r.jsx)(D.vZ,{ref:X}),"2"===V&&(0,r.jsx)(D.CB,{ref:Q,handleVerify:eO,onError:()=>{console.log("captcha onError"),eB()},onExpired:()=>{$.oR.error((0,$.t)("Failed to verify CAPTCHA")),eB(),eX()}})]}),(0,r.jsx)("div",{className:"mt-6 mb-4 flex flex-col",children:(0,r.jsx)(g.A,{className:"font-semibold",size:"md",rounded:!0,disabled:!ez||ey,loading:ey,children:(0,$.t)("Create Account")})}),(0,r.jsxs)("div",{className:"text-center mt-auto flex flex-row items-center justify-center",children:[(0,r.jsx)("p",{className:"!font-pptelegraf text-[#969696]",children:(0,$.t)("Already have an account?")}),(0,r.jsx)(g.A,{color:"light-purple",rounded:!0,size:"long-md",className:"ml-2",href:"/auth/signin",children:(0,$.t)("Login")})]})]}),(0,r.jsx)(ep,{nextStep:()=>{var e;eb.push({pathname:eb.pathname,query:{...eb.query,verify:"phone"}},void 0,{shallow:!0}),null==e_||null===(e=e_.current)||void 0===e||e.nextStep()}}),(0,r.jsx)(eh,{onClickCallback:N})]})})};function em(e){let t=Math.floor(e/60),l=Math.floor(e%60);return"".concat(t,":").concat(l.toString().padStart(2,"0"))}let ep=e=>{var t,l;let{nextStep:a}=e,[n,i]=(0,x.useState)(!1),[s,d]=(0,x.useState)(0),{data:c,refetch:u}=(0,B.fyO)({skip:!1}),[m,p]=(0,x.useState)(""),{isMobile:f}=(0,X.A)(),v=(0,Q.A)();(0,x.useEffect)(()=>{v&&u().then(e=>{var t,l;(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.userProfile)||void 0===t?void 0:t.isEmailVerified)&&a()})},[v]);let[y]=(0,O.jLM)({variables:{userId:null==c?void 0:null===(t=c.userProfile)||void 0===t?void 0:t.userId},onCompleted:e=>{var t;$.IG.setItem("emailRequestKey",null==e?void 0:null===(t=e.resendVerifyEmail)||void 0===t?void 0:t.requestKey),$.oR.success((0,$.t)("Email resent"))},onError:e=>{er.Ay.log("[resendEmailVerification] error",e),(0,$.p8)(e,(0,$.t)("Failed to resend email. Please try again later or contact support"))}}),[b]=(0,O.fE8)({onCompleted:async e=>{var t,l;(null==e?void 0:null===(t=e.verifyEmail)||void 0===t?void 0:t.isSuccessful)?($.oR.success((0,$.t)("Email verified")),$.IG.removeItem("emailRequestKey"),(0,ee.sx)("email_verified"),a(),u()):$.oR.error((null==e?void 0:null===(l=e.verifyEmail)||void 0===l?void 0:l.errorMessage)||(0,$.t)("Failed to verify email. Please try again later or contact support")),i(!1)},onError:e=>{er.Ay.log("[verifyEmailMutation] error",e),i(!1),(0,$.p8)(e,(0,$.t)("Failed to verify email. Please try again later or contact support"))},refetchQueries:[{query:B.p6g}]});(0,x.useEffect)(()=>{6===m.length&&($.IG.getItem("emailRequestKey")?(i(!0),b({variables:{requestKey:$.IG.getItem("emailRequestKey"),code:m}})):$.oR.error((0,$.t)("Please request a new code")))},[m]);let j=e=>{d(--e),e>0&&setTimeout(()=>{j(e)},1e3)};return(0,r.jsxs)("div",{className:"flex flex-col h-full max-w-xl mx-auto items-center justify-center",children:[(0,r.jsx)("h1",{className:"text-center font-semibold !font-pptelegraf md:text-[48px] text-[40px] text-text-title-primary leading-none -mx-1",children:(0,$.t)("Confirm Email")}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-y-5 my-10",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-paragraph-x-small !font-medium text-text-title-primary",children:(0,$.t)("Enter Verification code")}),(0,r.jsx)("div",{className:"flex mt-3 mb-2 item-center w-[343px]",children:(0,r.jsx)(h.A,{value:m,numInputs:6,shouldAutoFocus:!0,containerStyle:{display:"flex",justifyContent:"space-between",width:"100%"},onChange:e=>{p(e)},inputType:f()?"tel":"text",renderInput:e=>(0,r.jsx)("input",{...e,className:(0,o.A)("text-text-title-primary font-ppformula h-[48px] min-w-[48px] text-[18px] font-bold rounded-xl border border-border-main-tertiary bg-bg-main-modal-otp outline-border-accent",null==e?void 0:e.className)})})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-[#9B9A9E] text-center",children:(0,$.t)("An Email Verification Code has been sent to ")+(null==c?void 0:null===(l=c.userProfile)||void 0===l?void 0:l.email)||""}),s>0?(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-[#9B9A9E] text-center",children:(0,$.t)("Resend Email Verification Code in ")+em(s)}):(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-text-title-primary text-center underline cursor-pointer hover:opacity-80",onClick:()=>
1{if(0===s){var e;j(30),y({variables:{userId:null==c?void 0:null===(e=c.userProfile)||void 0===e?void 0:e.userId}})}},children:(0,$.t)("Resend Code")})]})]}),(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(g.A,{className:"font-semibold w-[327px]",size:"md",rounded:!0,loading:n,disabled:n||6!==m.length,onClick:()=>b({variables:{requestKey:$.IG.getItem("emailRequestKey"),code:m}}),children:(0,$.t)("Verify Email")})})]})},ex=v.z.object({mobile:v.z.string().min(10,{message:(0,$.t)("Mobile number should be at least 10 digits")})});var ef=function(e){return e[e.INPUT=0]="INPUT",e[e.CODE=1]="CODE",e}(ef||{});let eh=e=>{let{onClickCallback:t}=e,[l,n]=(0,x.useState)(!1),{data:i,refetch:s}=(0,B.fyO)({skip:!1}),[d,c]=(0,x.useState)(0),[u,m]=(0,x.useState)(""),[p,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(0),[j,C]=(0,x.useState)(""),{isMobile:_}=(0,X.A)(),w=(0,Q.A)();(0,x.useEffect)(()=>{s(),1===d&&P()},[d]),(0,x.useEffect)(()=>{w&&s().then(e=>{var l,r;(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(l=r.userProfile)||void 0===l?void 0:l.isPhoneNumberVerified)&&t()})},[w]);let{control:k,formState:{isValid:I}}=(0,f.mN)({mode:"all",resolver:(0,a.u)(ex)}),[S]=(0,O.mfL)({onCompleted:e=>{var l,r;(null==e?void 0:null===(l=e.verifyPhoneNumber)||void 0===l?void 0:l.isSuccessful)?($.oR.success((0,$.t)("Phone verified")),$.IG.removeItem("phoneRequestKey"),(0,ee.sx)("phone_verified"),t()):$.oR.error((null==e?void 0:null===(r=e.verifyPhoneNumber)||void 0===r?void 0:r.errorMessage)||(0,$.t)("Failed to verify phone number. Please try again later or contact support")),n(!1)},onError:e=>{er.Ay.error("[verifyPhoneNumberMutation] error ",e),n(!1),(0,$.p8)(e,(0,$.t)("Failed to verify phone number. Please try again later or contact support"))},refetchQueries:[{query:B.p6g}]}),[A]=(0,O.qNC)({onCompleted:async e=>{var t;$.IG.setItem("phoneRequestKey",null==e?void 0:null===(t=e.updatePhoneNumber)||void 0===t?void 0:t.requestKey),$.oR.success((0,$.t)("Code sent")),n(!1),c(1)},onError:e=>{er.Ay.error("[updatePhoneNumberMutation] error ",e),n(!1),(0,$.p8)(e,(0,$.t)("Failed to update phone number. Please try again later or contact support"))},refetchQueries:[{query:B.p6g}]}),q=e=>{b(--e),e>0&&setTimeout(()=>{q(0+e)},1e3)};(0,x.useEffect)(()=>{var e;6===j.length&&(null==i?void 0:null===(e=i.userProfile)||void 0===e?void 0:e.userId)&&($.IG.getItem("phoneRequestKey")?(n(!0),S({variables:{verifyPhoneNumberVerifyPhoneNumberPayloadInput:{requestKey:$.IG.getItem("phoneRequestKey"),code:j}}})):$.oR.error((0,$.t)("Please request a new code")))},[j]);let P=()=>{var e;0===y&&u&&(null==i?void 0:null===(e=i.userProfile)||void 0===e?void 0:e.userId)&&(q(30),A({variables:{updatePhoneNumberUserId:i.userProfile.userId,updatePhoneNumberUpdatePhoneNumberPayloadInput:{phoneNumber:u}}}))};return 0===d?(0,r.jsxs)("div",{className:"flex flex-col h-full max-w-xl mx-auto items-center justify-center lg:w-[560px]",children:[(0,r.jsx)("h1",{className:"text-center font-semibold !font-pptelegraf md:text-[48px] text-[40px] text-text-title-primary leading-none -mx-1",children:(0,$.t)("Confirm Phone Number")}),(0,r.jsx)("div",{className:"flex flex-col items-center my-10 w-full",children:(0,r.jsx)(f.xI,{name:"mobile",control:k,render:e=>{let{field:{onChange:t,onBlur:l},fieldState:a}=e;return(0,r.jsx)(F.L,{defaultValue:u,isTouched:a.isTouched,onBlur:l,className:"w-[343px] lg:w-full",placeholder:(0,$.t)("+61 432 829 158"),inputClassName:"rounded-[12px]",error:p?null:(0,$.t)("Enter a valid phone number"),onChange:(e,l,r)=>{v(e);let a=l.replace(/[- ]/g,"");m(a),t(a),(null==r?void 0:r.name)&&(0,ea.QI)("click_change_phone_country_code",{selectedCountry:r.name})}})}})}),(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(g.A,{className:"font-semibold w-[327px]",size:"md",rounded:!0,loading:l,disabled:l||!I,onClick:P,children:(0,$.t)("Send Verification Code")})})]}):(0,r.jsxs)("div",{className:"flex flex-col h-full max-w-xl mx-auto items-center justify-center relative",children:[(0,r.jsx)("div",{className:"cursor-pointer hover:opacity-80 absolute top-0 left-0 p-4",onClick:()=>{c(0),C("")},children:(0,r.jsx)(N.HK,{})}),(0,r.jsx)("h1",{className:"text-center font-semibold !font-pptelegraf md:text-[48px] text-[40px] text-text-title-primary leading-none -mx-1",children:(0,$.t)("Verify Phone Number")}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-y-5 my-10",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-paragraph-x-small !font-medium text-text-title-primary",children:(0,$.t)("Enter Verification code")}),(0,r.jsx)("div",{className:"flex mt-3 mb-2 item-center w-[343px]",children:(0,r.jsx)(h.A,{value:j,numInputs:6,shouldAutoFocus:!0,containerStyle:{display:"flex",justifyContent:"space-between",width:"100%"},onChange:e=>{C(e)},inputType:_()?"tel":"text",renderInput:e=>(0,r.jsx)("input",{...e,className:(0,o.A)("text-text-title-primary font-ppformula h-[48px] min-w-[48px] text-[18px] font-bold rounded-xl border border-border-main-tertiary bg-bg-main-modal-otp outline-border-accent",null==e?void 0:e.className)})})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-[#9B9A9E] text-center",children:(0,$.t)("A Verification Code has been sent to ")+u}),y>0?(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-[#9B9A9E] text-center",children:(0,$.t)("Resend Verification Code in ")+em(y)}):(0,r.jsx)("p",{className:"text-paragraph-small !font-medium text-text-title-primary text-center underline cursor-pointer hover:opacity-80",onClick:P,children:(0,$.t)("Resend Code")})]})]}),(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(g.A,{className:"font-semibold w-[327px]",size:"md",rounded:!0,loading:l,disabled:l||6!==j.length,onClick:()=>S({variables:{verifyPhoneNumberVerifyPhoneNumberPayloadInput:{requestKey:$.IG.getItem("phoneRequestKe
1y"),code:j}}}),children:(0,$.t)("Verify Phone Number")})})]})}},27856:(e,t,l)=>{"use strict";l.d(t,{L:()=>a});let r=new Set(["gmail.com","yahoo.com","hotmail.com","outlook.com","live.com","icloud.com","aol.com","msn.com","comcast.net","protonmail.com","me.com","mac.com","mail.com","zoho.com","gmx.com","yandex.com","fastmail.com","tutanota.com","inbox.com","rediffmail.com","rocketmail.com","mail.ru","163.com","126.com","qq.com","googlemail.com","yopmail.com","tempmail.com","10minutemail.com","guerrillamail.com","trashmail.com","mailinator.com","getnada.com","dispostable.com","fakeinbox.com"]),a=e=>{var t;let l=null==e?void 0:null===(t=e.split("@"))||void 0===t?void 0:t[1];return!!l&&!r.has(l)}},95669:e=>{e.exports={checkboxInput:"Checkbox_checkboxInput__0NdvJ"}},46875:e=>{e.exports={inputContainer:"Select_inputContainer__Ex9Mv",label:"Select_label__ZifOI",floating:"Select_floating__SCrPG",menu:"Select_menu__fa350",fadeIn:"Select_fadeIn__8i8Qa","menu--close":"Select_menu--close__rIoxM",fadeOut:"Select_fadeOut__H2SoW"}},29997:e=>{e.exports={phoneInput:"Phoneinput_phoneInput__kC2Za"}},92411:e=>{e.exports={hide:"StepsWithTransition_hide__mZ766",fadeout:"StepsWithTransition_fadeout__RviyW",show:"StepsWithTransition_show__6NHgM",fadein:"StepsWithTransition_fadein__KRjJ_"}},91086:e=>{e.exports={ul:"SignUp_ul__ZwzJa",video:"SignUp_video__xxYUE",editUpload:"SignUp_editUpload__GWW1a",uploadContainer:"SignUp_uploadContainer__xiW6U",loadingContainer:"SignUp_loadingContainer__MGqY6",lineThrough:"SignUp_lineThrough__MaSHR",underline:"SignUp_underline__R2gDF",pseudoWidth:"SignUp_pseudoWidth__ojq37"}}}]);
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.