1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6174],{5002:function(e,n,s){s.d(n,{Z:function(){return c}});var t=s(85893),a=s(23302),i=s(89508),r=s(20291),o=s(73510),l=s(36345);function c(e){var n=e.message,s=(0,a.J)();return(0,t.jsx)(i.M,{initial:!1,mode:"popLayout",children:n&&(0,t.jsx)(r.E.div,{variants:s?l.jr:l.P4,initial:"enter",animate:"center",exit:"exit",className:"overflow-hidden",children:(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2.5 text-sm leading-snug text-destructive",children:[(0,t.jsx)(o.Z,{className:"mt-0.5 size-4 shrink-0"}),(0,t.jsx)("span",{children:n})]})},n)})}},2272:function(e,n,s){s.d(n,{Z:function(){return c}});var t=s(85893),a=s(67294),i=s(23302),r=s(20291),o=s(89508),l=s(36345);function c(e){var n,s=e.screenKey,c=e.direction,u=e.children,d=(0,i.J)(),m=(0,a.useRef)(null),p=(0,a.useState)({height:null,animate:!1}),h=p[0],g=p[1];return(0,a.useLayoutEffect)((function(){var e=m.current;if(e){var n=new ResizeObserver((function(e){var n=!0,s=!1,t=void 0;try{for(var a,i=function(){var e=a.value.contentRect.height;g((function(n){return{height:e,animate:null!==n.height&&n.height!==e}}))},r=e[Symbol.iterator]();!(n=(a=r.next()).done);n=!0)i()}catch(o){s=!0,t=o}finally{try{n||null==r.return||r.return()}finally{if(s)throw t}}}));return n.observe(e),function(){return n.disconnect()}}}),[]),(0,t.jsx)(r.E.div,{className:"overflow-hidden",initial:!1,animate:{height:null!==(n=h.height)&&void 0!==n?n:"auto"},transition:{duration:h.animate?d?.15:l.pU.height:0,ease:l.QE},children:(0,t.jsx)("div",{ref:m,className:"relative",children:(0,t.jsx)(o.M,{mode:"popLayout",initial:!1,custom:c,children:(0,t.jsx)(r.E.div,{custom:c,variants:d?l.st:l.iR,initial:"enter",animate:"center",exit:"exit",transition:{duration:l.pU.screen,ease:l.QE},className:"w-full",children:u},s)})})})}},36345:function(e,n,s){s.d(n,{P4:function(){return o},QE:function(){return t},iR:function(){return i},jr:function(){return l},pU:function(){return a},st:function(){return r}});var t=[.32,.72,0,1],a={screen:.3,fade:.18,height:.3},i={enter:function(e){return{x:32*e,opacity:0}},center:{x:0,opacity:1},exit:function(e){return{x:-32*e,opacity:0}}},r={enter:{opacity:0}
1,center:{opacity:1},exit:{opacity:0}},o={enter:{opacity:0,height:0},center:{opacity:1,height:"auto",x:[0,-5,5,-3,3,0],transition:{height:{duration:.2,ease:t},opacity:{duration:a.fade},x:{duration:.35,ease:"easeOut"}}},exit:{opacity:0,height:0,transition:{duration:a.fade,ease:t}}},l={enter:{opacity:0},center:{opacity:1},exit:{opacity:0}}},78906:function(e,n,s){s.d(n,{Z:function(){return A}});var t=s(26042),a=s(69396),i=s(85893),r=s(67294),o=s(11163),l=s(29061),c=s(96486),u=s(19201),d=s(98540),m=s(7778),p=s(89885),h=s(33441),g=s(14924),f=s(36316),b=s(34853),v=s(72685),x=s(35739),w=s(93223),y=s(96076),N=s(62461),S=s(1683);function _(e){var n=e.user,s=e.setUser,o=e.login,l=e.errors,u=e.isPayment,d=(e.signupScreen,e.type),m=e.otpLoginScreen,h=e.setCurrentScreen,_=e.isCaptchaEnabled,O=e.isFormSubmitted,P=(0,r.useContext)(p.Z).appConfig,E=function(e){var i=e.target,r=i.name,o=i.value;s((0,a.Z)((0,t.Z)({},n),(0,g.Z)({},r,o)))};return n?(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:["LOGIN_SELECT_FLOW"!=d&&(0,i.jsx)(S.ZP,{id:"email",label:"Email/Phone",error:l.email,helper:P.web_phoneinputnote?P.web_phoneinputnote:y.Rl,children:(0,i.jsx)(v.I,{id:"email",name:"email",type:"text",placeholder:"Enter your email or phone number",value:n.email,onChange:E,className:(0,N.cn)(S.gI,l.email&&"border-destructive")}
1)}),(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(w._,{htmlFor:"password",className:"text-[13px] font-medium",children:"Password"}),(0,i.jsx)(v.I,{id:"password",name:"password",type:"password",placeholder:"Enter your password",className:(0,N.cn)(S.gI,l.password&&"border-destructive"),onKeyPress:function(e){return"Enter"===e.key&&o()},onChange:E}),(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(x.z,{variant:"link",className:"h-auto p-0 text-xs font-medium",onClick:function(){return h("FORGOT_PASSWORD")},children:"Forgot Password"})}),l.password&&(0,i.jsx)("p",{className:"text-xs font-medium text-destructive",children:l.password})]}),_&&!(0,c.isEmpty)(y.OL)&&(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(b.Z,{sitekey:y.OL,onChange:function(e){return s((0,a.Z)((0,t.Z)({},n),{captchaResponse:e}))}})}),(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,i.jsx)(x.z,{className:S.wQ,disabled:O,onClick:o,children:O?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{className:"animate-spin"}),(0,i.jsx)("span",{children:"Processing..."})]}):(0,i.jsxs)("span",{children:["Login ",u&&"and Pay"]})}),"LOGIN_BOTH_REGISTER_OTP"==d&&(0,i.jsx)(x.z,{className:"text-sm",onClick:function(){return h(m)},children:"Login with OTP"})]})]}):null}function O(e){var n=e.errors,s=e.setErrors,o=e.reset,l=(0,r.useState)({}),c=l[0],u=l[1],d=function(e){var n=e.target,s=n.name,i=n.value;u((0,a.Z)((0,t.Z)({},c),(0,g.Z)({},s,i)))},m=function(){String(c.newpassword||"").length<8?s({newpassword:"Password must be at least 8 characters"}):c.newpassword===c.confirmPassword?o(c.newpassword):s({global:"Passwords do not match"})};return(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,i.jsx)(S.ZP,{id:"newpassword",label:"Password",error:n.newpassword,children:(0,i.jsx)(v.I,{id:"newpassword",type:"password",name:"newpassword",placeholder:"Enter your password",className:(0,N.cn)(S.gI,n.newpassword&&"border-destructive"),onChange:d})}),(0,i.jsx)(S.ZP,{id:"confirmPassword",label:"Confirm Password",error:n.confirmPassword,children:(0,i.jsx)(v.I,{id:"confirmPassword",type:"password",name:"confirmPassword",placeholder:"Re-enter your password",className:(0,N.cn)(S.gI,n.confirmPassword&&"border-destructive"),onChange:d,onKeyPress:function(e){return"Enter"===e.key&&m()}})}),(0,i.jsx)(x.z,{className:S.wQ,onClick:m,children:"Reset Password"})]})}function P(e){var n=e.email,s=e.setEmail,t=e.forgotPassword,a=e.errors,o=e.isFormSubmitted,l=(0,r.useContext)(p.Z).appConfig;return(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,i.jsx)(S.ZP,{id:"email",label:"Phone number/Email",error:a.email,helper:l.web_phoneinputnote?l.web_phoneinputnote:y.Rl,children:(0,i.jsx)(v.I,{id:"email",name:"phone",type:"text",placeholder:"Enter your email or phone number",value:n,onChange:function(e){return s(e.target.value)},onKeyPress:function(e){return"Enter"===e.key&&t()},className:(0,N.cn)(S.gI,a.email&&"border-destructive")}
1)}),(0,i.jsx)(x.z,{className:S.wQ,disabled:o,onClick:t,children:o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{className:"animate-spin"}),(0,i.jsx)("span",{children:"Processing..."})]}):"Reset Password"})]})}var E=s(33461);function I(e){var n=e.user,s=e.setUser,r=e.sendOtp,o=e.errors,l=e.isFormSubmitted;return(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,i.jsx)(S.ZP,{id:"phone",label:"Phone number/Email",error:o.phone,children:(0,i.jsx)(v.I,{id:"phone",name:"phone",type:"text",placeholder:"Enter your email or phone number",value:n.phone,onChange:function(e){return s((0,a.Z)((0,t.Z)({},n),{phone:e.target.value}))},onKeyPress:function(e){return"Enter"===e.key&&r()},className:(0,N.cn)(S.gI,o.phone&&"border-destructive")})}),(0,i.jsx)(x.z,{className:S.wQ,disabled:l,onClick:r,children:l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{className:"animate-spin"}),(0,i.jsx)("span",{children:"Processing..."})]}):"Send OTP"})]})}var j=s(77880),C=s(64998),L=s(13371),T=s(85052);function R(e){var n=e.icon,s=e.title,t=e.description,a=e.onClick,r=e.disabled,o=e.loading;return(0,i.jsxs)("button",{type:"button",className:"group flex w-full items-center gap-3.5 rounded-xl border border-border bg-background px-4 py-3.5 text-left transition-all duration-200 hover:border-ring/40 hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",onClick:a,disabled:r,children:[(0,i.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground",children:o?(0,i.jsx)(f.Z,{className:"size-[18px] animate-spin"}):(0,i.jsx)(n,{className:"size-[18px]"})}),(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("span",{className:"text-[15px] font-semibold leading-snug text-foreground",children:s}),(0,i.jsx)("span",{className:"text-xs leading-snug text-muted-foreground",children:t})]}),(0,i.jsx)(C.Z,{className:"size-4 shrink-0 text-muted-foreground transition-transform duration-200 group-hover:translate-x-0.5"})]})}function Z(e){var n=e.user,s=e.setUser,r=(e.login,e.errors,e.isPayment,e.signupScreen,e.type,e.sendOtp),o=(e.otpLoginScreen,e.setCurrentScreen),l=(e.isCaptchaEnabled,e.isFormSubmitted);return n?(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)(R,{icon:L.Z,title:"Login with Password",description:"Use the password for your account",disabled:l,loading:l,onClick:function(){s((0,a.Z)((0,t.Z)({},n),{email:n.phone})),o("LOGIN")}}),(0,i.jsx)(R,{icon:T.Z,title:"Login with OTP",description:"We'll send a one-time password",onClick:r}),(0,i.jsx)(x.z,{variant:"link",className:"mx-auto h-auto p-0 text-[13px] font-medium",onClick:function(){s((0,a.Z)((0,t.Z)({},n),{email:n.phone})),o("FORGOT_PASSWORD")},children:"Forgot Password"})]}):null}var k=s(69875),G=s(73716),U=s(93520);function F(){try{var e=localStorage.getItem(y.Yi);return e?JSON.parse(e):null}catch(n){return null}}function A(e){var n=e.onSuccess,s=function(e,n){return 429==e||/too many attempts/i.test(n||"")},g=function(){se({}),de(!1);var e={};if(!(0,G.vV)(q.phone)&&!(0,G.n6)(q.phone))return e.phone="Please enter a valid email-id/mobile number",void se((0,t.Z)({},e));(0,k.XL)(q.phone).then((function(e){le(""),K("LOGIN_OTP_VERIFICATION")})).catch((function(e){se(e.response.data)}))},f=function(e){ue||(se({}),(0,k.Rv)(q.phone||q.email,e).then((function(e){le("")})).catch((function(e){var n,t,a;s(null===(n=e.response)||void 0===n?void 0:n.status,null===(t=e.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.message)&&de(!0),se(e.response.data.message?{global:e.response.data.message}:e.response.data)})))},b=function(){se({});var e=window.get_guuid,s={};if("1"==L.web_enablecaptcha&&(0,c.isEmpty)(q.captchaResponse)&&!(0,c.isEmpty)(y.OL))return s.global="Please complete the captcha",void se((0,t.Z)({},s));if(!(0,G.vV)(q.email)&&!(0,G.n6)(q.email))return s.email="Please enter a valid email-id/mobile number",void se((0,t.Z)({},s));if(ie(!0),e&&(q.mydeviceid=e),"1"==L.web_enablesingledevicelogin){var a=localStorage.getItem(y.TW);a&&(q.mydeviceid=a)}else if("2"==L.web_enablesingledevicelogin){var i=localStorage.getItem(y.TW);i&&(q.mydeviceid2=i)}(0,k.pH)(q,L.web_isfitnessclient,L.web_enablesingledevicelogin).then((function(e){if(200!=e.status)return s.global=e.message,void se((0,t.Z)({},s));n(e.data,"login")})).catch((function(e){var n;console.error(e.response),se((null===(n=e.response)||void 0===n?void 0:n.data.message)?{global:e.response.data.message}:e.response.data)})).finally((function(){return ie(!1)}))},v=(0,o.useRouter)(),x=(0,r.useContext)(p.Z),w=x.authModalOpen,N=x.toggleAuthModal,S=x.hasSession,C=(x.isLogin,x.isPayment),L=x.appConfig,T=x.tenant,R={EMAIL_PASSWORD:{login:"LOGIN",signUp:"SIGN_UP"},REGISTER_USING_OTP:{login:"LOGIN",signUp:"PHONE_LOGIN"}
1,LOGIN_REGISTER_USING_OTP:{login:"PHONE_LOGIN",signUp:"PHONE_LOGIN"},LOGIN_BOTH_REGISTER_OTP:{login:"LOGIN",signUp:"PHONE_LOGIN"},LOGIN_SELECT_FLOW:{login:"LOGIN_SELECT",signUp:"SIGN_UP"}},A="LOGIN_SELECT_FLOW",W=(0,r.useState)("INITIAL_SCREEN"),V=W[0],z=W[1],H=(0,r.useState)(1),D=H[0],M=H[1],Q=(0,r.useRef)(null),K=(0,r.useCallback)((function(e){M(1),z(e)}),[]),J=(0,r.useCallback)((function(e){M(-1),z(e)}),[]),B=(0,r.useState)(!0),X=(B[0],B[1],(0,r.useState)()),Y=(X[0],X[1],(0,r.useState)((function(){return F()||{}}))),q=Y[0],$=Y[1],ee=(0,r.useState)({}),ne=ee[0],se=ee[1],te=(0,r.useState)(),ae=te[0],ie=te[1],re=(0,r.useState)(),oe=re[0],le=re[1],ce=(0,r.useState)(!1),ue=ce[0],de=ce[1],me=R[A].login,pe=R[A].signUp,he=(0,r.useMemo)((function(){var e={email:!0,phone:!0};try{var n=(0,U.hb)(L.web_authdisableemail);e.email=!n}catch(t){e.email=!0}try{var s=(0,U.hb)(L.web_authdisablephone);e.phone=!s}catch(a){e.phone=!0}return e}),[L.web_authdisableemail,L.web_authdisablephone]),ge="1"==L.web_disablepasswordlogin||(0,d.y7)(L),fe={INITIAL_SCREEN:{title:"Welcome",subTitle:"Enter your email or phone number to get started.",image:"./signup.svg",component:(0,i.jsx)(j.Z,{user:q,setUser:$,checkUser:function(){se({});var e,n={};if((0,U.hb)(L.web_disableCountryCodeSignUp)&&/^\+/.test(null===(e=q.phone)||void 0===e?void 0:e.trim()))return void se({phone:"Please enter your number without country code."});if(he.phone&&he.email){var s=(0,G.vV)(q.phone),a=(0,G.n6)(q.phone);s||a||(n.phone="Please enter a valid email-id/mobile number")}else if(he.phone){(0,G.n6)(q.phone)||(n.phone="Please enter a valid mobile number")}else if(he.email){(0,G.vV)(q.phone)||(n.phone="Please enter a valid email-id")}Object.keys(n).length>0?se((0,t.Z)({},n)):(ie(!0),(0,k.cy)(q.phone).then((function(e){1==e.data?ge?g():K("LOGIN_SELECT"):($((function(e){var n=(0,t.Z)({},e),s=(0,G.vV)(e.phone),a=(0,G.n6)(e.phone);return s&&(n.phone="",n.email=e.phone),a&&(n.email="",n.phone=e.phone),n})),(0,U.hb)(L.web_enableSignupOTPVerification)?g():K("SIGN_UP")),se({})})).catch((function(e){var n,s=null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.data;e.message?se({global:"".concat(e.name?"".concat(e.name,": "):""," ").concat(e.message)}):s&&se({global:JSON.stringify(s)})})).finally((function(){ie(!1)})))},errors:ne,isFormSubmitted:ae,availableLoginOptions:he})},PHONE_LOGIN:{title:"Login with OTP",subTitle:"We'll send a one-time password to verify it's you.",image:"./signup.svg",component:(0,i.jsx)(I,{user:q,setUser:$,sendOtp:g,errors:ne})},LOGIN_OTP_VERIFICATION:{title:"Verify it's you",subTitle:"Enter the 4-digit code we just sent you.",image:"./login.svg",component:(0,i.jsx)(E.Z,{otp:oe,user:q,setOtp:le,resendOtp:f,verifyOtp:function(e){var t=window.get_guuid;se({}),ie(!0);var a="";if(t&&(a=t),"undefined"!==typeof localStorage){var i=localStorage.getItem(y.TW);i&&(a=i)}(0,k.Mu)(q.phone||q.email,e,a,L.web_enablesingledevicelogin).then((function(e){if(200!=e.status)return s(e.status,e.message)&&de(!0),ne.global=e.message,console.error(ne),void se(ne);if("User"==e.user.name){var t={userid:e.user.userid,token:e.user.token},a=q.email||q.phone;(0,G.vV)(a)?t.email=a:t.phone=a,"1"==L.web_disablefieldstate&&(t.state="Delhi"),$(t),K("SIGN_UP"),l.Z.defaults.headers[y.KH]=e.user.token}else n(e.user,"login")})).catch((function(e){var n,t,a;s(null===(n=e.response)||void 0===n?void 0:n.status,null===(t=e.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.message)&&de(!0),se(e.response.data.message?{global:e.response.data.message}:e.response.data)})).finally((function(){return ie(!1)}))},errors:ne,isFormSubmitted:ae,availableLoginOptions:he,isLockedOut:ue}),backScreen:"PHONE_LOGIN"},SIGN_UP:{title:"Create your account",subTitle:"Just a few details and you're in.",image:"./signup.svg",component:(0,i.jsx)(h.Z,{user:q,setUser:$,signUp:function(e){var s=e.isFitnessClient,a=e.disablePassword,i=e.disableUsername;se({});var r={},o=["name","phone"];if(L.isTeachCode||L.isWebinar||i||(0,U.hb)(L.web_hideUsernameSignup)||o.push("username"),a||o.push("password"),(0,U.hb)(L.web_enabledistrict)&&(0,U.hb)(L.web_fielddistrictmandatory)&&o.push("district"),(0,U.hb)(L.web_disablefieldstate)||o.push("state"),s&&o.push("gender","dob","height","weight"),(0,U.hb)(L.web_enablefieldinfo1)&&(0,U.hb)(L.web_fieldinfo1mandatory)&&o.push("info_1"),(0,U.hb)(L.web_enablefieldinfo2)&&(0,U.hb)(L.web_fieldinfo2mandatory)&&o.push("info_2"),!(0,U.hb)(L.web_disablefieldstate)&&(0,U.hb)(L.web_enableDynamicCityStates)&&q.state&&o.push("info_3"),o.forEach((function(e){(0,c.isEmpty)(q[e])&&(r[e]="Please enter your ".concat(e))})),r.name||(0,G.r1)(q.name)||(r.name="Please enter a valid name"),!r.name&&(String(q.name).match(RegExp("\\p{L}","gu"))||[]).length<2&&(r.name="Name must be at least 2 characters"),!r.name&&String(q.name).trim().length>50&&(r.name="Name must be 50 characters or less"),(0,U.hb)(L.web_hideEmailSignup)||(0,G.vV)(q.email)||(r.email="Please enter a valid email-id"),(0,G.n6)(q.phone)||(r.phone="Please enter a valid mobile number"),!a&&!r.password&&String(q.password||"").length<8&&(r.password="Password must be at least 8 characters"),a||r.password||q.password===q.confirmPassword||(r.confirmPassword="Passwords do not match"),(L.isTeachCode||L.isWebinar||i||(0,U.hb)(L.web_hideUsernameSignup))&&(q.username=""),se(r),(0,c.isEmpty)(r)){ie(!0);var l=(0,t.Z)({},q);delete l.confirmPassword;var u=l.userid?k.ck:k.SA;
1l.userid&&(l.update_type="SIGNUP"),u(l,L.web_isfitnessclient).then((function(e){if(200!=e.status)return ne.global=e.message,console.error(ne),void se(ne);(0,c.isEmpty)(e.data)?n(l,"signup"):n(e.data,"signup")})).catch((function(e){se(e.response.data.message?{global:e.response.data.message}:e.response.data)})).finally((function(){return ie(!1)}))}},disablePassword:(0,U.hb)(L.web_disablepasswordsignup),errors:ne,isPayment:C,loginScreen:me,isFormSubmitted:ae,isFitnessClient:(0,U.hb)(L.web_isfitnessclient),setCurrentScreen:K})},LOGIN:{title:"Welcome back",subTitle:"Enter your password to continue.",image:"./login.svg",component:(0,i.jsx)(_,{user:q,setUser:$,login:b,errors:ne,type:A,otpLoginScreen:"PHONE_LOGIN",isPayment:C,isFormSubmitted:ae,signupScreen:pe,setCurrentScreen:K,isCaptchaEnabled:"1"==L.web_enablecaptcha}),backScreen:"LOGIN_SELECT"},LOGIN_SELECT:{title:"Welcome back",subTitle:"Choose how you'd like to login.",image:"./login.svg",component:(0,i.jsx)(Z,{user:q,setUser:$,login:b,errors:ne,type:A,otpLoginScreen:"PHONE_LOGIN",sendOtp:g,isPayment:C,isFormSubmitted:ae,signupScreen:pe,setCurrentScreen:K,isCaptchaEnabled:"1"==L.web_enablecaptcha}),backScreen:"INITIAL_SCREEN"},FORGOT_PASSWORD:{title:"Reset your password",subTitle:"We'll send you a verification code to reset it.",image:"./login.svg",component:(0,i.jsx)(P,{email:q.email,setEmail:function(e){return $((0,a.Z)((0,t.Z)({},q),{email:e}))},isFormSubmitted:ae,forgotPassword:function(){se({}),(0,G.vV)(q.email)||(0,G.n6)(q.email)?(ie(!0),(0,k.yH)(q.email).then((function(e){le(""),K("OTP_VERIFICATION")})).catch((function(e){se(e.response.data.message?{global:e.response.data.message}:e.response.data)})).finally((function(){return ie(!1)}))):se({email:"Please enter a valid email-id/mobile number"})},errors:ne}),backScreen:"LOGIN_SELECT"},OTP_VERIFICATION:{title:"Check your inbox",subTitle:"Enter the 4-digit code we just sent you.",image:"./login.svg",component:(0,i.jsx)(E.Z,{otp:oe,user:q,setOtp:le,resendOtp:f,verifyOtp:function(e){se({}),ie(!0),(0,k.Mu)(q.email,e).then((function(e){K("RESET_PASSWORD")})).catch((function(e){se(e.response.data.message?{global:e.response.data.message}:e.response.data)})).finally((function(){return ie(!1)}))},errors:ne,isFormSubmitted:ae,availableLoginOptions:he}),backScreen:"FORGOT_PASSWORD"},RESET_PASSWORD:{title:"Set a new password",subTitle:"Choose a strong password you haven't used before.",image:"./login.svg",component:(0,i.jsx)(O,{errors:ne,setErrors:se,reset:function(e){(0,k.c0)(q.email,oe,e).then((function(e){u.A.success("Password reset successfully."),N()})).catch((function(e){se(e.response.data.message?{global:e.response.data.message}:e.response.data)}))}})}},be=["/login","/signup","/my-zone"];(0,m.HU)(L,T,v.pathname,S)||be.push((0,d.F3)(L));var ve=!(S||!be.includes(v.pathname))||w,xe=(0,r.useState)(!1),we=xe[0],ye=xe[1];return ve!==we&&(ye(ve),ve&&(M(1),z("INITIAL_SCREEN"))),(0,r.useEffect)((function(){var e;null===(e=Q.current)||void 0===e||e.scrollTo({top:0})}),[V]),(0,r.useEffect)((function(){if("SIGN_UP"===V){var e=F();e&&e.phone===q.phone&&$((function(n){return(0,a.Z)((0,t.Z)({},n),{name:n.name||e.name,email:n.email||e.email})}))}}),[V]),{appConfig:L,tenant:T,isDialogOpen:ve,toggleAuthModal:N,currentScreen:V,direction:D,screens:fe,errors:ne,handleBackNavigation:function(e){"LOGIN_OTP_VERIFICATION"!==e&&"OTP_VERIFICATION"!==e||le(""),"LOGIN_OTP_VERIFICATION"===e&&!he.email&&he.phone?J("INITIAL_SCREEN"):J(fe[e].backScreen)},contentRef:Q}}}}]);
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.