"use strict";(self.webpackChunkspayee_micro_frontend=self.webpackChunkspayee_micro_frontend||[]).push([[618,3667],{21288:function(e,t,a){a.d(t,{E:function(){return o}});const o={SIGN_IN_GOOGLE:"Sign in via Google",SIGN_IN_FACEBOOK:"Sign in via Facebook",SIGN_IN_FACEBOOK_AGAIN:"Sign in via Facebook again",SIGN_IN_VIA_EMAIL_OTP:"Sign in via Email OTP",REGISTER_GOOGLE:"Register via Google",REGISTER_VIA_EMAIL_OTP:"Register via Email OTP",REGISTER_FOR_SESSION:"Register for session",VIEW_YOUR_SESSION_DASHBOARD:"View your session dashboard",EMAIL_NOT_REGISTERED:"The email you chose is not registered for this session",PREVIOUSLY_REGISTERED:"You’ve previously registered using %email%. Sign in",PASSWORD_NOT_CREATED:"Looks like you haven’t created a password with us!",SIGNED_UP_USING:"You have signed up using %socMedia%",NAME_PLACEHOLDER:"Enter name",EMAIL_PLACEHOLDER:"Enter email id",POLICY_ACCEPT:"By continuing, you agree to our Terms of Service & Privacy Policy",PAYMENT_SUCCESSFUL:"Payment Sucful",PAYMENT_SUCCESSFUL_SUB_TEXT_1:"As a last step, please verify your email.",PAYMENT_SUCCESSFUL_SUB_TEXT_2:"Please use the same email that you entered in billing details.",VERIFY_VIA_GOOGLE:"Verify email via Google",VERIFY_VIA_OTP:"Verify email via OTP",OTP_VALIDATE_PAID_SESSION_CTA:"Register",CHOSEN_NEW_EMAIL_ADDRESS_TITLE:"You’ve chosen a new email address",CHOSEN_NEW_EMAIL_ADDRESS_DESCRIPTION:"Please use the same email that you entered in billing details"}},25456:function(e,t,a){a.d(t,{K:function(){return s},N:function(){return c}});var o=a(79656),i=a(55843),n=a(46942),l=a.n(n),r=a(96540);const s=({showModal:e,children:t,onClose:a,headerClassName:n="p-6",showHeader:s=!0,modalBodyClassName:d="md:w-[500px]",wrapperClassName:m=""})=>e?r.createElement("div",{className:l()("fixed inset-0 z-modalOverlay w-full bg-black bg-opacity-20 md:inset-0 md:flex md:items-center md:justify-center",m)},r.createElement("div",{className:l()("absolute bottom-0 left-0 right-0 flex flex-col bg-white md:static md:rounded-md max-h-[90vh] overflow-y-auto pb-20 md:pb-0",d),onClick:e=>e.stopPropagation()},s&&r.createElement("button",{className:l()("flex justify-center md:justify-end relative",n)},r.createElement(i.A,{className:"text-neutralBlack hidden md:inline-block text-title5",icon:o.Jyw,onClick:a}),r.createElement(c,{onClick:a})),t)):null,c=({className:e="",onClick:t})=>r.createElement("button",{onClick:t,className:l()("md:hidden py-2 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",e)},r.createElement("div",{className:"h-1 w-16 rounded-full bg-slate "}))},40618:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var o=a(47428),i=a(96540),n=a(32035),l=a(76063),r=a(25456),s=a(46942),c=a.n(s);const d=(0,i.lazy)((()=>Promise.all([a.e(5261),a.e(2617),a.e(2274),a.e(1334),a.e(2430)]).then(a.bind(a,32218)))),m=(0,i.lazy)((()=>Promise.all([a.e(2617),a.e(5408)]).then(a.bind(a,33448))));var E=function({hash:e}){return(0,l.YK)()?i.createElement(r.K,{showModal:!0,onClose:()=>{},showHeader:!1,wrapperClassName:"!bg-white",modalBodyClassName:"md:w-[420px] shadow-[0_3px_10px_rgb(0,0,0,0.2)]"},i.createElement(i.Suspense,{fallback:i.createElement(i.Fragment,null)},i.createElement(d,{popup:!1,hash:e}))):i.createElement("div",{className:"graphy-modal-wrapper graphy-modal-visible"},i.createElement("div",{className:c()(n.A.modal_max_w,n.A.modal_max_h,"graphy-modal form-modal graphy-modal-center")},i.createElement("div",{className:c()("flex-grow",n.A.mt_40)},i.createElement(i.Suspense,{fallback:i.createElement(i.Fragment,null)},i.createElement(m,{popup:!1,hash:e})))))},p=a(93667),_=a(49456),S=a(61110),g=a(55210),u=a(97567),h=a(4346),I=a(55843),C=a(58702),T=a(7331),A=a(18892),N=()=>{const e=new URLSearchParams(window.location.search).get("type"),{registrationCurrentFlow:t,registrationInitStep:a,registrationStepIndex:l,setRegistrationStepIndex:r,setRegistrationCurrentFlow:s,emailEarlierSignedInWith:d,formEmail:m}=(0,u.w)((e=>({registrationStepIndex:e.registrationStepIndex,registrationCurrentFlow:e.registrationCurrentFlow,setRegistrationCurrentFlow:e.setRegistrationCurrentFlow,registrationInitStep:e.registrationInitStep,setRegistrationStepIndex:e.setRegistrationStepIndex,emailEarlierSignedInWith:e.emailEarlierSignedInWith,formEmail:e.formEmail})),A.A),{title:E,description:p,step:N,ModalChild:f,data:w}=t[l]||S.vB;(0,i.useEffect)((()=>s(g.JA)),[]);const P=(0,T.$5)(m);return i.createElement("div",{className:"graphy-modal-wrapper graphy-modal-visible"},i.createElement("div",{className:c()(n.A.modal_max_w,n.A.modal_max_h,"graphy-modal form-modal graphy-modal-center")},i.createElement("div",{className:c()("flex-grow","pt-[73px]","px-7")},i.createElement("div",{className:"mr-auto"},"no_back_btn"!==N&&i.createElement(I.A,{icon:_.Wzs,onClick:()=>{0===l?(s(a),r(1)):r(h.N.BACKWARD)},className:"!w-4 !h-4 mr-4 cursor-pointer pt-7 pb-6 flex items-center"})),i.createElement(C.o,{fontSize:"text-title4",fontWeight:"font-semibold",className:"pb-6"},E),p&&e!==o.V8.EMAILOTP&&i.createElement(C.o,{fontSize:"text-caption",fontWeight:"font-bold",className:"pb-6"},p.includes("%socMedia%")?p.replace("%socMedia%",e===o.V8.GOOGLE?"Google":"Facebook"):p.replace("%tobemaskedmail%",P)),i.createElement(i.Suspense,{fallback:i.createElement("div",{className:"min-h-[200px]"})},i.createElement(f,null)))))},f=function(){const e=new URLSearchParams(window.location.search),t=e.has("v3")&&Object.values(o.V8).includes(e.get("type")),a=(0,i.useCallback)((()=>{if(window)return window.parent.isPopupLogin?i.createElement(p.default,{isPopupLogin:!0}):t?i.createElement(N,null):i.createElement(E,{hash:window.parent.location.hash.substring(1)})}),[window]);return i.createElement(i.Fragment,null,a())}},55210:function(e,t,a){a.d(t,{$T:function(){return v},IZ:function(){return D},JA:function(){return U},a4:function(){return F},nA:function(){return M},nb:function(){return k}});var o=a(21288),i=a(4346),n=a(96540);const l=(0,n.lazy)((()=>Promise.all([a.e(8050),a.e(8952)]).then(a.bind(a,88952)))),r=(0,n.lazy)((()=>Promise.all([a.e(8050),a.e(8366)]).then(a.bind(a,88366)))),s=(0,n.lazy)((()=>Promise.all([a.e(8050),a.e(6470)]).then(a.bind(a,76470)))),c=(0,n.lazy)((()=>Promise.all([a.e(5493),a.e(5915)]).then(a.bind(a,79343)))),d=(0,n.lazy)((()=>Promise.all([a.e(8050),a.e(7404)]).then(a.bind(a,77404)))),{REGISTER_FOR_SESSION:m,REGISTER_GOOGLE:E,REGISTER_VIA_EMAIL_OTP:p,VIEW_YOUR_SESSION_DASHBOARD:_,POLICY_ACCEPT:S,EMAIL_NOT_REGISTERED:g,PREVIOUSLY_REGISTERED:u,SIGN_IN_FACEBOOK:h,SIGN_IN_GOOGLE:I,PASSWORD_NOT_CREATED:C,SIGNED_UP_USING:T,NAME_PLACEHOLDER:A,EMAIL_PLACEHOLDER:N,SIGN_IN_VIA_EMAIL_OTP:f,PAYMENT_SUCCESSFUL_SUB_TEXT_1:w,PAYMENT_SUCCESSFUL_SUB_TEXT_2:P,PAYMENT_SUCCESSFUL:b,VERIFY_VIA_GOOGLE:y,OTP_VALIDATE_PAID_SESSION_CTA:O,VERIFY_VIA_OTP:x,CHOSEN_NEW_EMAIL_ADDRESS_DESCRIPTION:R,CHOSEN_NEW_EMAIL_ADDRESS_TITLE:L}=o.E,G={title:"An OTP has been sent to your email",description:"Please check your email %tobemaskedmail% . If you can't find the email, please check your spam folders.",ModalChild:c,registrationType:i.$.SIGNIN},M=[{title:m,step:"no_back_btn",ModalChild:l,data:{googleCtaText:E,otpCtaText:p,policyAccept:S}},{step:"no_back_btn",title:m,registrationType:i.$.SIGNUP,ModalChild:l,data:{googleCtaText:E,namePlaceholder:A,emailPlaceholder:N,otpCtaText:p,policyAccept:S}},{...G}],v=[{title:b,step:"no_back_btn",ModalChild:l,data:{googleCtaText:y,otpCtaText:x,policyAccept:S,otpValidateCtaText:O}},{step:"no_back_btn",title:b,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:y,namePlaceholder:A,emailPlaceholder:N,otpCtaText:x,policyAccept:S}},{...G}],k=[{step:"no_back_btn",title:_,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:I,otpCtaText:f,policyAccept:S}},{step:"no_back_btn",title:_,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:I,emailPlaceholder:N,otpCtaText:f,policyAccept:S}},G],F=[{ModalChild:r,title:g,description:u,data:{sideHeading:"Register for the session ",googleCtaText:E,otpCtaText:p}},{title:g,ModalChild:r,registrationType:i.$.SIGNUP,data:{googleCtaText:E,namePlaceholder:A,emailPlaceholder:N,otpCtaText:p,policyAccept:S}},G],D=[{ModalChild:s,title:L,description:R,data:{sideHeading:"Register for the session ",googleCtaText:y,otpCtaText:x,policyAccept:S}},{title:L,ModalChild:s,registrationType:i.$.SIGNUP,data:{googleCtaText:y,emailPlaceholder:N,otpCtaText:x,policyAccept:S}},G],U=[{step:"no_back_btn",title:C,description:T,ModalChild:d,registrationType:i.$.SIGNIN,data:{googleCtaText:I,facebookCtaText:h,otpCtaText:f}},{title:C,description:T,ModalChild:d,registrationType:i.$.SIGNIN,data:{googleCtaText:I,emailPlaceholder:N,facebookCtaText:h,otpCtaText:f}},G]},93667:function(e,t,a){a.r(t);var o=a(45011),i=a(97567),n=a(76063),l=a(25456),r=a(46942),s=a.n(r),c=a(96540),d=a(77399),m=a(18892),E=a(32035);const p=(0,c.lazy)((()=>Promise.all([a.e(5261),a.e(2617),a.e(2274),a.e(1334),a.e(2430)]).then(a.bind(a,32218)))),_=(0,c.lazy)((()=>Promise.all([a.e(2617),a.e(5408)]).then(a.bind(a,33448))));t.default=function({isPopupLogin:e=!1}){const[t,a]=(0,c.useState)(!0),{setShowLoginModal:r}=(0,i.w)((e=>({setShowLoginModal:e.setShowLoginModal})),m.A);function S(){e?(window.parent.closeLoginPopup(),d.oR.dismiss()):r(!1),a(!1)}return(0,c.useEffect)((()=>{a(!0)}),[t]),(0,n.YK)()?c.createElement(l.K,{showModal:t,onClose:()=>{},showHeader:!1,modalBodyClassName:"md:w-[420px]"},c.createElement(c.Suspense,{fallback:c.createElement(c.Fragment,null)},c.createElement(p,{onClose:S,popup:!0}))):c.createElement(o.A,{showFooter:!1,showHeader:!1,showClose:!1,width:s()("form-modal w-[50vw]",E.A.modal_max_w,E.A.modal_max_h),isVisible:t,onClose:()=>{}},c.createElement(c.Suspense,{fallback:c.createElement(c.Fragment,null)},c.createElement(_,{onClose:S,popup:!0})))}},97567:function(e,t,a){a.d(t,{w:function(){return i}});var o=a(55210);const i=(0,a(82084).A)(((e,t)=>({formEmail:"",showLoginModal:!1,emailEarlierSignedInWith:"",registrationCurrentFlow:o.nA,registrationInitStep:o.nA,registrationStepIndex:0,showOTPForm:!1,setEmailEarlierSignedInWith:t=>{e({emailEarlierSignedInWith:t})},setRegistrationCurrentFlow:t=>{e({registrationCurrentFlow:t})},setRegistrationInitStep:t=>{e({registrationInitStep:t})},setRegistrationStepIndex:a=>{let o;o="forward"===a?t().registrationStepIndex+1:t().registrationStepIndex-1,e({registrationStepIndex:"number"==typeof a?a:o})},setShowOTPForm:t=>{e({showOTPForm:t})},setShowLoginModal:t=>{e({showLoginModal:t})},setFormEmail:t=>{e({formEmail:t})}})))}}]);