PageSourceSearch

https://www.samayoga.id/_next/static/chunks/pages/onboarding/complete-profile-df2576d8a584f80d.js

js samayoga.id collected 2026-09-29 02:27:48 UTC 21,510 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4858],{88417:function(e,t,i){"use strict";var n=i(59499),o=(i(67294),i(87536)),r=i(31096),a=i(85893);function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var d=r.ZP.div.withConfig({displayName:"Radio__Wrapper",componentId:"sc-djpxr3-0"})([".radio-item{display:inline-block;position:relative;margin:10px 0 0;}.radio-item input[type='radio']{display:none;}.radio-item label{display:flex;font-size:16px;color:#010101;font-weight:normal;}.radio-item label:before{content:' ';display:flex;position:relative;top:3px;margin:0 5px 0 0;width:16px;height:16px;border-radius:11px;border:1px solid #010101;background-color:transparent;}.radio-item input[type='radio']:checked + label:after{border-radius:11px;width:6px;height:6px;position:absolute;top:8px;left:5px;content:' ';display:block;background:#010101;}.radio-item input:disabled + label{cursor:not-allowed;opacity:0.8;}"]);t.Z=function(e){var t=e.name,i=e.value,n=e.label,r=e.disabled,l=(0,(0,o.Gc)().register)(t),c=t+"."+n;return(0,a.jsx)(d,{children:(0,a.jsxs)("div",{className:"radio-item",children:[(0,a.jsx)("input",s({type:"radio",id:c,value:i,disabled:r},l)),(0,a.jsx)("label",{role:"radio",htmlFor:c,children:n})]})})}},24056:function(e,t,i){"use strict";i.r(t);var n=i(59499),o=i(50029),r=i(16835),a=i(87794),l=i.n(a),s=i(7258),d=i(57953),c=i(58255),u=i(23290),p=i(81354),m=i.n(p),f=i(47300),h=i(74614),g=i(16239),b=i(95496),v=i(31132),x=i(11163),y=i(50787),w=i(88417),j=i(33254),N=i(47499),C=i(41392),_=i(81668),k=i(88049),O=i(25298),P=i(42118),S=i(68376),Z=i(60407),E=i(39197),L=i(35812),I=i(25675),T=i.n(I),R=i(67294),D=i(87536),F=i(4480),A=i(67208),z=i(62396),M=i(8212),V=i(31096),U=i(31742),q=i(39646),B=i(13959),W=i(85893);function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var G=function(){return(0,W.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,W.jsx)("path",{d:"M8.50518 0.681675C9.30076 -0.213356 10.6992 -0.213356 11.4948 0.681675L11.8389 1.06872C12.3196 1.60961 13.0551 1.84858 13.762 1.69359L14.2678 1.58268C15.4376 1.32622 16.569 2.14822 16.6865 3.33995L16.7373 3.8553C16.8084 4.57548 17.2629 5.20111 17.9259 5.49122L18.4003 5.69882C19.4974 6.17888 19.9296 7.50891 19.3242 8.54214L19.0624 8.98894C18.6965 9.61334 18.6965 10.3867 19.0624 11.0111L19.3242 11.4579C19.9296 12.4911 19.4974 13.8211 18.4003 14.3012L17.9259 14.5088C17.2629 14.7989 16.8084 15.4245 16.7373 16.1447L16.6865 16.66C16.569 17.8518 15.4376 18.6738 14.2678 18.4173L13.762 18.3064C13.0551 18.1514 12.3196 18.3904 11.8389 18.9313L11.4948 19.3183C10.6992 20.2134 9.30076 20.2134 8.50518 19.3183L8.16114 18.9313C7.68035 18.3904 6.94488 18.1514 6.23799 18.3064L5.73216 18.4173C4.56244 18.6738 3.43105 17.8518 3.31349 16.66L3.26266 16.1447C3.19162 15.4245 2.73707 14.7989 2.07409 14.5088L1.59967 14.3012C0.502598 13.8211 0.0704454 12.4911 0.675823 11.4579L0.93761 11.0111C1.30345 10.3867 1.30345 9.61334 0.93761 8.98894L0.675823 8.54214C0.0704453 7.50891 0.502598 6.17888 1.59967 5.69882L2.07409 5.49122C2.73707 5.20111 3.19162 4.57548 3.26266 3.8553L3.31349 3.33995C3.43105 2.14822 4.56244 1.32622 5.73216 1.58268L6.23799 1.69359C6.94488 1.84858 7.68035 1.60961 8.16114 1.06872L8.50518 0.681675Z",fill:"#0089D6"}),(0,W.jsx)("path",{d:"M6 9.5L9 12.5L14.5 7",stroke:"white",strokeWidth:"2"})]})},J=P.g?s.Ry().shape({firstName:s.Z_().test(E.to).required("Please enter your first name.")}):s.Ry().shape({firstName:s.Z_().test(E.to).required("Please enter your first name."),lastName:s.Z_().test(E.to).required("Please enter your last name."),email:s.Z_().trim().test({message:"Invalid email address",test:function(e){return!e||(0,E.vV)(e)}}),dob:s.Z_().typeError("Invalid Date")}
1),H=V.ZP.form.withConfig({displayName:"complete-profile__Form",componentId:"sc-3wtvpn-0"})(["display:flex;flex-direction:column;gap:28px;input:not([type='checkbox']):not([type='radio']){font-size:16px;width:100%;-moz-width:100%;-ms-width:100%;-o-width:100%;-webkit-width:100%;height:56px;}"]),K=V.ZP.div.withConfig({displayName:"complete-profile__Wrapper",componentId:"sc-3wtvpn-1"})(["font-family:'Poppins';display:flex;flex-direction:column;gap:28px;color:#010101;padding-bottom:80px;> *{color:#010101;}"]),Q=(0,V.ZP)(K).withConfig({displayName:"complete-profile___StyledWrapper",componentId:"sc-3wtvpn-2"})(["max-width:600px;margin:0 auto;height:fit-content;overflow:hidden;"]),Y=V.ZP.div.withConfig({displayName:"complete-profile__Divider",componentId:"sc-3wtvpn-3"})(["height:1px;border-top:1px solid #e6e6e6;"]),ee=V.ZP.div.withConfig({displayName:"complete-profile__InputItem",componentId:"sc-3wtvpn-4"})(["display:flex;flex-direction:column;align-items:",";gap:6px;.radio-item{margin-top:0px;}"],(function(e){return e.alignLeft?"start":"stretch"})),te=V.ZP.div.withConfig({displayName:"complete-profile__ProfileImage",componentId:"sc-3wtvpn-5"})(["width:100px;height:100px;border-radius:50%;overflow:hidden;position:relative;img{width:100%;height:100%;object-fit:cover;}&:hover{img + div{opacity:0.6;}}img + div{position:absolute;top:0;display:grid;grid-template-columns:24px 24px;gap:7px;place-content:center;color:white;transition:all 0.3s ease;width:100%;height:100%;border-radius:50%;position:absolute;background-color:#010101;opacity:0;img{background-color:white;border-radius:50%;border:none;padding:4px;cursor:pointer;width:24px;z-index:1;height:24px;}img#add_image{background-color:transparent;width:56px;height:56px;z-index:1;}}"]);t.default=function(){var e,t,i,n,a,s,p,E,I,V,$,K,re,ae,le,se=(0,g.D)().setDialogState,de=(0,R.useState)(""),ce=de[0],ue=de[1],pe=(0,C.useAuthContext)(),me=pe.redirectUrl,fe=pe.setRedirectUrl,he=pe.loading,ge=(pe.isLoggedIn,(0,C.useRevalidateAuth)()),be=(0,R.useState)(!1),ve=be[0],xe=be[1],ye=(0,z.J)().isReferralEnabled,we=(0,R.useState)(!1),je=we[0],Ne=we[1],Ce=(0,F.FV)(A.uK),_e=(0,r.Z)(Ce,2),ke=_e[0],Oe=_e[1],Pe=(0,R.useState)(!1),Se=Pe[0],Ze=Pe[1],Ee=(0,x.useRouter)(),Le=(0,_.l)().setNoti,Ie=(0,d.Ap)("/business").data,Te=(0,d.Ap)("/onboarding/signup-fields").data,Re=(0,R.useState)(""),De=Re[0],Fe=Re[1],Ae=(0,R.useState)(!1),ze=Ae[0],Me=Ae[1],Ve=(0,d.Tu)(),Ue=Ve.handleMutate,qe=Ve.loading,Be=Ve.setLoading,We=(0,M.Z)().submitReferral,$e=(0,R.useRef)(null),Xe=(0,R.useState)(""),Ge=Xe[0],Je=Xe[1],He=null===Ie||void 0===Ie?void 0:Ie.data.isMigrated,Ke=(0,D.cI)({defaultValues:{firstName:"",lastName:"",email:null!==(e=ke.email)&&void 0!==e?e:"",dob:"",phoneNumber:{code:"",number:"",formattedValue:""},isMobileVerified:!1,customerType:"NEW",customerId:"",type:"email",isNotiConsent:!1,isMarketingConsent:!1,shouldRequiredEmail:!0,password:"",profileImageUrl:"",token:"",referralCode:null!==(t=ke.referralCode)&&void 0!==t?t:"",isReferralShareLink:null!==(i=ke.isReferralShareLink)&&void 0!==i&&i},mode:"onChange",reValidateMode:"onChange",resolver:(0,b.X)(J)}),Qe="NEW"===Ke.watch("customerType"),Ye=Ke.watch("phoneNumber.number"),et=Ke.watch("email"),tt=Ke.watch("dob"),it=Ke.watch("phoneNumber"),nt=!et||Boolean(Ke.formState.errors.email),ot=null===Te||void 0===Te||null===(n=Te.data)||void 0===n||null===(a=n.find((function(e){return"Email"===e.fieldName})))||void 0===a?void 0:a.isRequiredForNew,rt=null===Te||void 0===Te||null===(s=Te.data)||void 0===s||null===(p=s.find((function(e){return"Mobile"===e.fieldName})))||void 0===p?void 0:p.isRequiredForNew,at=null===Ie||void 0===Ie||null===(E=Ie.data)||void 0===E?void 0:E.isRequiredMobileVerificationForSignUp,lt=(0,d.Ap)("/legal").data,st=null===lt||void 0===lt||null===(I=lt.data)||void 0===I?void 0:I.find((function(e){return e.isTandC})),dt=null===st||void 0===st||null===(V=st.title)||void 0===V?void 0:V.split(" ").join("-").toLowerCase();(0,R.useEffect)((function(){var e,t=m().AES.decrypt(null!==(e=localStorage.getItem("temp_p"))&&void 0!==e?e:"","this_is_a_text").toString(m().enc.Utf8);Ke.setValue("password",t)}),[]);var ct=function(){var e=(0,o.Z)(l().mark((function e(t){var i,n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.target,n=(null===i||void 0===i?void 0:i.files[0])||null,e.prev=2,e.next=5,U.gW.validate({file:n});case 5:(o=new FormData).append("image",n),o.append("type","image"),o.append("moduleName","profile"),Ue({url:"/onboarding/upload-image",data:o,onSuccess:function(e){var t,i;Ke.setValue("profileImageUrl",null!==(t=null===(i=e.data)||void 0===i?void 0:i.data)&&void 0!==t?t:"");var o=URL.createObjectURL(n);Je(o)}}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),Le({type:"fail",msg:null===e.t0||void 0===e.t0?void 0:e.t0.message});case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}();(0,R.useEffect)((function(){var e=setTimeout((function(){!Boolean(Ke.formState.errors.email)&&et&&(0,d._i)(He&&!Qe?"/onboarding/check-email-migrated?email=".concat(et):"/onboarding/check-email?email=".concat(et)).then((function(e){0!==e.code&&Ke.setError("email",{type:"custom",message:e.message})}))}),500);return function(){clearTimeout(e)}}),[He,Qe,et]),(0,R.useEffect)((function(){return null!==Ie&&void 0!==Ie&&Ie.data.isChildAccEnabled?!tt&&Ke.formState.touchedFields.dob?Ke.setError("dob",{message:"Please enter your date of birth."}):void(tt&&(Be(!0),(0,d._i)("/onboarding/check-age?dateOfBirth=".concat(tt)).then((function(e){0!==e.code?(Ke.setError("dob",{message:e.message}),Ne(!1)):Ne(!0)})).finally((function(){Be(!1)})))):Ne(!0)}),[tt,Ie]),(0,R.useEffect)((function(){He||Qe?Ke.setValue("shouldRequiredEmail",!0):Ke.setValue("shouldRequiredEmail",!1)}),[He,Qe]),(0,R.useEffect)((function(){Ke.clearErrors("email")}),[Qe]),(0,R.useEffect)((function(){et&&ce&&et!=ce&&ue(""),Ze(!1),Ke.clearErrors("email")}),[et,ce]),(0,R.useEffect)((function(){6===De.length&&xt()}),[De]);var ut=qe||ve||!Ke.formState.isValid||!P.g&&((null===Ie||void 0===Ie?void 0:Ie.data.isChildAccEnabled)&&!tt||!je),pt=(0,S.J)(30,Se),mt=(0,r.Z)(pt,2),ft=mt[0],ht=mt[1],gt=function(){me&&"/"!==me?(Ee.push(me),fe("")):Ee.push(P.g?"/onboarding/gaq?step=1":"/onboarding/waiver-form")},bt=function(){var e=(0,o.Z)(l().mark((function e(t){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=X(X({},t),{},{dob:tt}),!t.phoneNumber.number||!at||t.isMobileVerified||!(rt||!rt&&t.phoneNumber.number)){e.next=4;break}return Ke.setError("phoneNumber",{type:"unverified",message:"Please verify your mobile number."}),e.abrupt("return");case 4:xe(!0),Ue(He&&!Qe?{url:"/onboarding/migrate-customer-mobile",data:X(X({},i),{},{id:t.customerId,mobile:t.phoneNumber.number,mobileCode:t.phoneNumber.code}),validateUrl:"/accounts/profile",config:{headers:{Authorization:"Bearer ".concat(ke.otpToken||"")}},onSuccess:function(e){(0,k.o4)(e.data.data.accessToken),0===e.data.code&&(Ue({url:"/onboarding/signup-customer-business",validateUrl:["/accounts/profile"],onError:function(){return xe(!1)},onSuccess:gt}),se("none"))},onError:function(e,t){var i,n,o;xe(!1),Le({msg:(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.data)||(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.message)||t,type:"fail"})}}:{url:"/onboarding/register",data:X(X({},i),{},{mobile:t.phoneNumber.number,code:+t.phoneNumber.code}),validateUrl:["/accounts/profile","/onboarding/check-origin"],config:{headers:{Authorization:"Bearer ".concat(ke.otpToken||"")}},onSuccess:function(e){0===e.data.code&&((0,k.o4)(e.data.data.accessToken),t.email&&Oe((function(e){return X(X({},e),{},{email:et})})),Ue({url:"/onboarding/signup-customer-business",onError:function(){return xe(!1)},onSuccess:function(){var t=(0,o.Z)(l().mark((function t(){var i,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ge();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log({err:t.t0});case 8:null!==e&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&null!==(n=i.data)&&void 0!==n&&n.isExistReferral||!ye?(Oe((function(e){return X(X({},e),{},{referralCode:"",isReferralShareLink:!1})})),gt()):We(ke.referralCode||"",gt,ke.isReferralShareLink);case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}()}),se("none"))},onError:function(e,t){var i,n,o;xe(!1),Le({msg:(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.data)||(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.message)||t,type:"fail"})}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),vt=function(){Ze(!0),Fe(""),Me(!1),(0,d._i)("/onboarding/send-migrated-email-otp?email=".concat(et)),ht(30)},xt=function(){Ue({url:"/onboarding/verify-migrated-email",data:{email:et,otp:De},onSuccess:function(e){0===e.data.code?(Ke.reset({firstName:e.data.data.firstName,lastName:e.data.data.lastName,dob:e.data.data.dob?e.data.data.dob.split("T")[0]:"",customerType:"OLD",customerId:e.data.data.id}),ue(et)):Me(!0)},onError:function(e){Me(!0)}})};return he&&!ve?(0,W.jsx)("div",{className:"grid h-full w-full place-items-center",children:(0,W.jsx)(B.Z,{height:"100px",width:"100px"})}):(0,W.jsxs)("div",{className:"h-screen min-h-screen w-full bg-white p-4 pt-[15vh]",children:[(0,W.jsx)("div",{className:"absolute left-10 top-10 max-w-full",children:(0,W.jsx)(q.sI,{width:"240px",height:"34px"})}),(0,W.jsx)(D.RV,X(X({},Ke),{},{children:(0,W.jsxs)(Q,{children:[P.g&&(0,W.jsx)("div",{className:"absolute left-0 top-0 p-6",children:(0,W.jsx)(T(),{src:"/logos/safra_logo_black.png",alt:"safra logo",width:138.3,height:87.5})}),(0,W.jsx)("h1",{className:"mb-7 text-center font-poppins text-[28px] font-bold",children:"Complete your profile"}),(0,W.jsxs)(H,{onSubmit:Ke.handleSubmit(bt),children:[He&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(j.Z,{label:"Are you a new customer?",helperText:"If you\u2019re an existing member, you will be prompted to re-verify your previous login.",register:function(){return Ke.register("customerType")}}),!Qe&&(0,W.jsx)(h.Z,{label:"Previous login email address",name:"email",helperText:"Communications and transactions history will be sent to this email address",bgColor:"#ffffff",endAdornment:ce?(0,W.jsx)(G,{}):(0,W.jsx)(ie,{onClick:function(e){e.preventDefault(),nt||vt()},disabled:!!nt||Se,$_css:nt||Se?"#787878;":"#29339b",$_css2:nt||Se?"not-allowed":"pointer",children:"Verify"})}),!Qe&&Se&&(0,W.jsxs)("div",{className:"rounded-lg border-[1px] border-solid border-[#e6e6e6] bg-[#e
16e6e6] p-6",children:[(0,W.jsx)("p",{className:"font-bold ",children:"Verify your email address"}),(0,W.jsx)("p",{className:"mb-5 mt-1.5 text-sm",children:"An email OTP with a verification code was just sent to you. The code will be valid for 6 minutes."}),(0,W.jsx)(N.Z,{value:De,onChange:function(e){Me(!1),Fe(e.toUpperCase())},valueLength:6,error:Boolean(ze)}),ze&&(0,W.jsx)(f.ZT,{mt:"8px",fontSize:"12px",color:"#FE5F55",children:"That code wasn't valid. Please try again."}),(0,W.jsx)(c.hO,{width:"auto",mt:"20px",fromAccount:!0,disabled:De.length<6||ze,onClick:function(e){e.preventDefault(),xt()},children:"Submit"}),Se&&(ft>0?(0,W.jsxs)(ne,{children:["Request new code in ",(0,O.mr)(ft)]}):(0,W.jsx)(oe,{fontSize:"12px",role:"button",mt:"6px",onClick:vt,$_css3:Z.vb.tabletAndDown,children:"Resend Code"}))]}),(0,W.jsx)(Y,{})]}),P.g?(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(h.Z,{name:"firstName",label:"Nickname",bgColor:"#ffffff",showError:!1})}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{children:[(0,W.jsx)("h2",{className:"mb-7 text-xl font-bold",children:"Account information"}),(0,W.jsx)("div",{children:(0,W.jsx)(y.Z,{purpose:"singup_login",needVerify:at&&(!!rt||Boolean(it.number)),label:"Mobile number ".concat(rt?"":"(Optional)"),name:"phoneNumber",autoFocus:!0})})]}),(0,W.jsx)(Y,{}),(0,W.jsxs)("div",{children:[(0,W.jsx)("h2",{className:"mb-7 text-xl font-bold",children:"Personal information"}),(0,W.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,W.jsxs)(ee,{alignLeft:!0,children:[(0,W.jsx)(f.ZT,{mb:"6px",fontSize:"12px",children:"Profile picture (Optional)"}),(0,W.jsxs)(te,{children:[(0,W.jsx)("img",{src:Ge||"/profile.png",alt:"avatar"}),(0,W.jsxs)("div",{className:"",children:[(0,W.jsx)("input",{ref:$e,onChange:ct,hidden:!0,type:"file",accept:"image/*",name:"profileImage",id:"profileImage"}),Ge?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("label",{htmlFor:"profileImage",children:(0,W.jsx)("img",{src:"/icons/profile_edit.svg",alt:"Edit"})}),(0,W.jsx)("img",{onClick:function(){Ge&&(Je(""),$e.current&&($e.current.value=""))},src:"/icons/profile_delete.svg",alt:"Delete"})]}):(0,W.jsx)("label",{htmlFor:"profileImage",children:(0,W.jsx)("img",{id:"add_image",src:"/icons/profile_add.svg",alt:"Add"})})]})]})]}),(0,W.jsxs)("div",{className:"flex flex-row gap-6",children:[(0,W.jsx)("div",{className:"flex-1",children:(0,W.jsx)(h.Z,{name:"firstName",label:"First Name",bgColor:"white"})}),(0,W.jsx)("div",{className:"flex-1",children:(0,W.jsx)(h.Z,{name:"lastName",label:"Last Name",bgColor:"white"})})]}),(0,W.jsx)(h.Z,{name:"dob",label:"Date of birth ".concat(null!==Ie&&void 0!==Ie&&null!==($=Ie.data)&&void 0!==$&&$.isChildAccEnabled?"":" (Optional)"),type:"date",bgColor:"white",max:(0,v.default)(new Date,"yyyy-MM-dd")}),(0,W.jsxs)("div",{children:[(0,W.jsx)(f.ZT,{mb:"2px",fontSize:"12px",children:"Gender (Optional)"}),(0,W.jsxs)("div",{className:"flex gap-10",children:[(0,W.jsx)(w.Z,{label:"Male",value:"Male",name:"gender"}),(0,W.jsx)(w.Z,{label:"Female",value:"Female",name:"gender"}),(null===Ie||void 0===Ie||null===(K=Ie.data)||void 0===K?void 0:K.businessName)&&!L.o2.includes(Ie.data.businessName)&&(0,W.jsx)(w.Z,{label:"Prefer not to say",value:"Others",name:"gender"})]})]})]})]})]}),(0,W.jsx)(Y,{}),(0,W.jsx)("div",{children:(0,W.jsx)(u.Z,{name:"isMarketingConsent",label:"Marketing Consent",text:"I consent to ".concat(null===Ie||void 0===Ie||null===(re=Ie.data)||void 0===re?void 0:re.businessName," and Rezerv collecting, using, and contacting me via email and SMS for sales promotions, offers, and updates."),labelClassName:"text-xs"})}),(0,W.jsx)(Y,{}),(0,W.jsxs)(f.ZT,{fontSize:"12px",children:["By signing up, you agree to Rezerv"," ",(0,W.jsx)("a",{href:"https://rezerv.co/terms-and-conditions",target:"_blank",className:"font-bold text-primary no-underline",children:"Terms of Use"})," ","and and verify you have read the"," ",(0,W.jsx)("a",{target:"_blank",href:"https://rezerv.co/privacy-policy",className:"font-bold text-primary no-underline",children:"Privacy Policy"}),(null===Ie||void 0===Ie||null===(ae=Ie.data)||void 0===ae?void 0:ae.businessName)&&(0,W.jsxs)(W.Fragment,{children:[" and ",null===Ie||void 0===Ie||null===(le=Ie.data)||void 0===le?void 0:le.businessName," ",(0,W.jsx)("a",{target:"_blank",href:"/terms/".concat(dt||"terms-&-conditions"),className:"font-bold text-primary no-underline",children:"Terms & Conditions."})]})]}),(0,W.jsx)("div",{className:"flex justify-end",children:(0,W.jsx)(c.l_,{type:"submit",width:"100px",isLoading:ve,disabled:ut||!Qe&&!ce||ot&&!et||rt&&!Ye,fromAccount:!0,children:"Submit"})})]})]})}))]})};var ie=(0,V.ZP)("button").withConfig({displayName:"complete-profile___StyledButton",componentId:"sc-3wtvpn-6"})(["background-color:transparent;border:none;color:",";cursor:",";"],(function(e){return e.$_css}),(function(e){return e.$_css2})),ne=(0,V.ZP)("p").withConfig({displayName:"complete-profile___StyledP",componentId:"sc-3wtvpn-7"})(["font-size:12px;margin-top:6px;"]),oe=(0,V.ZP)(f.ZT).withConfig({displayName:"complete-profile___StyledTypography",componentId:"sc-3wtvpn-8"})(["font-size:12px;line-height:18px;
1cursor:pointer;@media ","{margin-top:8px;margin-bottom:28px;}"],(function(e){return e.$_css3}))},13959:function(e,t,i){"use strict";var n=i(67162),o=(i(67294),i(31096)),r=i(67288),a=i(85893);t.Z=function(e){var t=e.width,i=void 0===t?"140px":t,o=e.height,s=void 0===o?"140px":o,d=e.color,c=void 0===d?"":d,u=e.className,p=(0,n.vH)().textColor,m=c||p;return(0,a.jsx)(l,{fillColor:m,className:u,children:(0,a.jsx)(r.nI,{style:{width:i,height:s},src:"/lotties/loadingAnimation.lottie",loop:!0,autoplay:!0})})};var l=o.ZP.div.withConfig({displayName:"loading__Wrapper",componentId:"sc-i8pai6-0"})(["path{fill:",";}"],(function(e){return e.fillColor}))},49240:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding/complete-profile",function(){return i(24056)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=49240,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.