"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 _}});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:c="md:w-[500px]",wrapperClassName:d=""})=>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",d)},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",c),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(_,{onClick:a})),t)):null,_=({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 "}))},32035:function(e,t){t.A={close_button:"close_button_bRu6r",title:"title_CgSTB",social_login_btn:"social_login_btn_JXT5m",social_login_btn_new:"social_login_btn_new_CGT6p",social_login_btn_sm:"social_login_btn_sm_u1b3z",back_button:"back_button_IhxDZ",back_button_2:"back_button_2_QIzDY",lable_css:"lable_css_JC3Mo",lable_css_new:"lable_css_new_ngzEs",signup_lable:"signup_lable_nr1k1",signup_hint:"signup_hint_CzRR_",social_btn_container:"social_btn_container_F6qg_",login_mt_16:"login_mt_16_ycUlY",forgot_password:"forgot_password_DuQnY",social_login_btn_wrapper:"social_login_btn_wrapper_CBbCQ",unset_position:"unset_position_FXXc5",absolute_position:"absolute_position_L4dXE",edge_corner:"edge_corner_y7eIz",social_tnc_title:"social_tnc_title_BOqgK",signup_get_started_hint:"signup_get_started_hint_C_VBA",top_10:"top_10_scCbZ",mt_40:"mt_40_fo5fg",l_h_8:"l_h_8_vGEBc",p_28:"p_28_l_SWj",resend_otp:"resend_otp_JpgDo",forgot_email:"forgot_email__wKH2",icon_div:"icon_div_uQzsN",icon:"icon_dy924",sub_title_div:"sub_title_div_HTmP9",upload_field:"upload_field_Lx4ru",otp_box_width:"otp_box_width_Ra0ai",modal_max_w:"modal_max_w_j2siQ",hidden_form_field:"hidden_form_field_hsZGz",root:"root_cueze","graphy-modal":"graphy-modal_GvQUL",modal_max_h:"modal_max_h_MA4vJ"}},40618:function(e,t,a){a.r(t),a.d(t,{default:function(){return A}});var o=a(47428),i=a(96540),n=a(32035),l=a(76063),r=a(25456),s=a(46942),_=a.n(s);const c=(0,i.lazy)((()=>Promise.all([a.e(9831),a.e(5261),a.e(2617),a.e(2274),a.e(1334),a.e(2430)]).then(a.bind(a,32218)))),d=(0,i.lazy)((()=>Promise.all([a.e(2617),a.e(6785),a.e(5408)]).then(a.bind(a,33448))));var m=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(c,{popup:!1,hash:e}))):i.createElement("div",{className:"graphy-modal-wrapper graphy-modal-visible"},i.createElement("div",{className:_()(n.A.modal_max_w,n.A.modal_max_h,"graphy-modal form-modal graphy-modal-center")},i.createElement("div",{className:_()("flex-grow",n.A.mt_40)},i.createElement(i.Suspense,{fallback:i.createElement(i.Fragment,null)},i.createElement(d,{popup:!1,hash:e})))))},p=a(93667),E=a(49456),g=a(61110),u=a(55210),S=a(97567),h=a(4346),I=a(55843),C=a(58702),b=a(7331),T=a(18892),f=()=>{const e=new URLSearchParams(window.location.search).get("type"),{registrationCurrentFlow:t,registrationInitStep:a,registrationStepIndex:l,setRegistrationStepIndex:r,setRegistrationCurrentFlow:s,emailEarlierSignedInWith:c,formEmail:d}=(0,S.w)((e=>({registrationStepIndex:e.registrationStepIndex,registrationCurrentFlow:e.registrationCurrentFlow,setRegistrationCurrentFlow:e.setRegistrationCurrentFlow,registrationInitStep:e.registrationInitStep,setRegistrationStepIndex:e.setRegistrationStepIndex,emailEarlierSignedInWith:e.emailEarlierSignedInWith,formEmail:e.formEmail})),T.A),{title:m,description:p,step:f,ModalChild:A,data:w}=t[l]||g.vB;(0,i.useEffect)((()=>s(u.JA)),[]);const N=(0,b.$5)(d);return i.createElement("div",{className:"graphy-modal-wrapper graphy-modal-visible"},i.createElement("div",{className:_()(n.A.modal_max_w,n.A.modal_max_h,"graphy-modal form-modal graphy-modal-center")},i.createElement("div",{className:_()("flex-grow","pt-[73px]","px-7")},i.createElement("div",{className:"mr-auto"},"no_back_btn"!==f&&i.createElement(I.A,{icon:E.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"},m),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%",N)),i.createElement(i.Suspense,{fallback:i.createElement("div",{className:"min-h-[200px]"})},i.createElement(A,null)))))},A=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(f,null):i.createElement(m,{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 M},IZ:function(){return D},JA:function(){return U},a4:function(){return F},nA:function(){return v},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)))),_=(0,n.lazy)((()=>Promise.all([a.e(8939),a.e(5493),a.e(3073)]).then(a.bind(a,79343)))),c=(0,n.lazy)((()=>Promise.all([a.e(8050),a.e(7404)]).then(a.bind(a,77404)))),{REGISTER_FOR_SESSION:d,REGISTER_GOOGLE:m,REGISTER_VIA_EMAIL_OTP:p,VIEW_YOUR_SESSION_DASHBOARD:E,POLICY_ACCEPT:g,EMAIL_NOT_REGISTERED:u,PREVIOUSLY_REGISTERED:S,SIGN_IN_FACEBOOK:h,SIGN_IN_GOOGLE:I,PASSWORD_NOT_CREATED:C,SIGNED_UP_USING:b,NAME_PLACEHOLDER:T,EMAIL_PLACEHOLDER:f,SIGN_IN_VIA_EMAIL_OTP:A,PAYMENT_SUCCESSFUL_SUB_TEXT_1:w,PAYMENT_SUCCESSFUL_SUB_TEXT_2:N,PAYMENT_SUCCESSFUL:y,VERIFY_VIA_GOOGLE:P,OTP_VALIDATE_PAID_SESSION_CTA:x,VERIFY_VIA_OTP:O,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:_,registrationType:i.$.SIGNIN},v=[{title:d,step:"no_back_btn",ModalChild:l,data:{googleCtaText:m,otpCtaText:p,policyAccept:g}},{step:"no_back_btn",title:d,registrationType:i.$.SIGNUP,ModalChild:l,data:{googleCtaText:m,namePlaceholder:T,emailPlaceholder:f,otpCtaText:p,policyAccept:g}},{...G}],M=[{title:y,step:"no_back_btn",ModalChild:l,data:{googleCtaText:P,otpCtaText:O,policyAccept:g,otpValidateCtaText:x}},{step:"no_back_btn",title:y,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:P,namePlaceholder:T,emailPlaceholder:f,otpCtaText:O,policyAccept:g}},{...G}],k=[{step:"no_back_btn",title:E,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:I,otpCtaText:A,policyAccept:g}},{step:"no_back_btn",title:E,registrationType:i.$.SIGNIN,ModalChild:l,data:{googleCtaText:I,emailPlaceholder:f,otpCtaText:A,policyAccept:g}},G],F=[{ModalChild:r,title:u,description:S,data:{sideHeading:"Register for the session ",googleCtaText:m,otpCtaText:p}},{title:u,ModalChild:r,registrationType:i.$.SIGNUP,data:{googleCtaText:m,namePlaceholder:T,emailPlaceholder:f,otpCtaText:p,policyAccept:g}},G],D=[{ModalChild:s,title:L,description:R,data:{sideHeading:"Register for the session ",googleCtaText:P,otpCtaText:O,policyAccept:g}},{title:L,ModalChild:s,registrationType:i.$.SIGNUP,data:{googleCtaText:P,emailPlaceholder:f,otpCtaText:O,policyAccept:g}},G],U=[{step:"no_back_btn",title:C,description:b,ModalChild:c,registrationType:i.$.SIGNIN,data:{googleCtaText:I,facebookCtaText:h,otpCtaText:A}},{title:C,description:b,ModalChild:c,registrationType:i.$.SIGNIN,data:{googleCtaText:I,emailPlaceholder:f,facebookCtaText:h,otpCtaText:A}},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),_=a(96540),c=a(77399),d=a(18892),m=a(32035);const p=(0,_.lazy)((()=>Promise.all([a.e(9831),a.e(5261),a.e(2617),a.e(2274),a.e(1334),a.e(2430)]).then(a.bind(a,32218)))),E=(0,_.lazy)((()=>Promise.all([a.e(2617),a.e(6785),a.e(5408)]).then(a.bind(a,33448))));t.default=function({isPopupLogin:e=!1}){const[t,a]=(0,_.useState)(!0),{setShowLoginModal:r}=(0,i.w)((e=>({setShowLoginModal:e.setShowLoginModal})),d.A);function g(){e?(window.parent.closeLoginPopup(),c.oR.dismiss()):r(!1),a(!1)}return(0,_.useEffect)((()=>{a(!0)}),[t]),(0,n.YK)()?_.createElement(l.K,{showModal:t,onClose:()=>{},showHeader:!1,modalBodyClassName:"md:w-[420px]"},_.createElement(_.Suspense,{fallback:_.createElement(_.Fragment,null)},_.createElement(p,{onClose:g,popup:!0}))):_.createElement(o.A,{showFooter:!1,showHeader:!1,showClose:!1,width:s()("form-modal w-[50vw]",m.A.modal_max_w,m.A.modal_max_h),isVisible:t,onClose:()=>{}},_.createElement(_.Suspense,{fallback:_.createElement(_.Fragment,null)},_.createElement(E,{onClose:g,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})}})))}}]);