(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9289],{39308:function(e,a){"use strict";a.Z={src:"/_next/static/media/BBX_OG-2.6a80b743.png",height:528,width:771,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAElBMVEX///+s3vLw+f3k6e3Q1t7E2OSSqaxEAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAFElEQVQImWNgwAIYWVmYwQwmVAkAAW0AEI9srJMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5}},77474:function(e,a,s){"use strict";var t=s(85893),o=s(41664),r=s.n(o),n=s(11163);a.Z=e=>{let a=(0,n.useRouter)(),[,s]=a.asPath.split("?"),o="".concat(e.href).concat(s?"?".concat(s):"");return(0,t.jsx)(r(),{...e,href:o,children:e.children})}},49289:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return login}});var t=s(85893),o=s(11163),r=s(67294),n=s(12529),i=s(65517),l=s.n(i),c=s(35005),d=s(83269),g=s(66624),p=s(34853),u=s(89583),m=s(87903);s(48978);var h=s(63197),x=s(77474),w=s(4298),j=s.n(w),f=s(33096),b=s(32967),v=s(27039),y=s(92419),N=s(25675),S=s.n(N),C={src:"/_next/static/media/AppleLogin.d90ded1d.svg",height:30,width:30,blurWidth:0,blurHeight:0},_={src:"/_next/static/media/GoogleLogin.82a990c1.svg",height:30,width:30,blurWidth:0,blurHeight:0},A={src:"/_next/static/media/FacebookLogin.cd80dd09.svg",height:30,width:30,blurWidth:0,blurHeight:0},P=s(48844),Z=s(76025),k=s.n(Z),E=s(2086),UI_ForceChangePassword=e=>{let{userToken:a,closeForceChangePassword:s}=e,[o,i]=(0,r.useState)(""),[l,p]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[h,x]=(0,r.useState)(!1),[w,j]=(0,r.useState)(null),closeDialogue=()=>{j(null)},openDialogue=e=>{j((0,t.jsx)(v.Z,{isFullCustom:e.isFullCustom,buttons:e.buttons,icon:e.icon,onClose:closeDialogue,closeIcon:e.closeIcon,type:e.type,title:e.title,children:e.content}))},showErrorMsg=e=>{loading(!1),openDialogue({title:"Error",content:e,type:"red",closeIcon:!1,closeIconClass:"fa fa-alert",icon:"fa-warning",buttons:[{label:"Close",variant:"secondary",onClick:closeDialogue}]})},clearData=()=>{p(""),m("")},loading=e=>{x(e)},showSuccessMsg=e=>{loading(!1),openDialogue({title:"Success",content:e,type:"green",closeIcon:!1,closeIconClass:"fa fa-alert",icon:"fa-check",buttons:[{label:"Close",variant:"secondary",onClick:closeDialogue}]})},updatePassword=async()=>{if(null==o||void 0==o||""==o){showErrorMsg("Please enter the current Password.");return}if(null==l||void 0==l||""==l){showErrorMsg("Please enter your New Password.");return}if(null==u||void 0==u||""==u){showErrorMsg("Please enter the Confirm Password.");return}if(!d.Z.isPasswordComplex(l)||l.length<10){showErrorMsg("Password must be at least 10 characters long, contain at least one number and have a mixture of uppercase, lowercase letters and special characters($*@#&!)."),clearData();return}if(l!=u){showErrorMsg("New Password and Confirm Password does not match."),clearData();return}x(!0);try{let e=await g.Z.updatePassword(o,l,!0,a);e=(e=e.data).response,1==e.Status?(showSuccessMsg("Password changed successfully. Please re-login with your new password."),setTimeout(()=>{s()},1e3)):2==e.Status?s():showErrorMsg(e.Description),clearData()}catch(e){console.log("e---------------> ",e),x(!1)}};return(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(f.Z,{newLoading:!0}),w,(0,t.jsx)("div",{className:k().fCPC1,children:(0,t.jsxs)("div",{className:k().mainConatiner+" "+k().dashboardWidget,children:[(0,t.jsx)("div",{className:k().heading,children:(0,t.jsx)("div",{className:"flexRow flex1",children:(0,t.jsx)("span",{className:k().pageHeading,children:"Change Password"})})}),(0,t.jsx)("div",{style:{marginBottom:"1rem",marginTop:"0.5rem"},className:"flexColumn",children:(0,t.jsx)("span",{style:{fontSize:"0.9rem",textAlign:"justify"},className:"commonText",children:"Your current password does not meet complexity requirements. Please setup a new Password. Passwords must be at least 10 characters long, contain at least one number and have a mixture of uppercase, lowercase letters and special characters($*@#&!)."})}),(0,t.jsxs)("div",{className:"flexColumn flexgap",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:k().text,children:"Current Password"}),(0,t.jsx)(n.Z.Control,{className:"".concat(k().text," ").concat(k().formControl2),type:"password",id:"currentpassword","aria-describedby":"currentpassword",value:o,onChange:e=>{i(e.target.value)},autoComplete:"new-password"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:k().text,children:"New Password"}),(0,t.jsx)(n.Z.Control,{className:"".concat(k().text," ").concat(k().formControl2),type:"password",id:"newpassword","aria-describedby":"newpassword",value:l,onChange:e=>{p(e.target.value)},autoComplete:"new-password"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:k().text,children:"Confirm New Password"}),(0,t.jsx)(n.Z.Control,{className:"".concat(k().text," ").concat(k().formControl2),type:"password",id:"confirmnewpassword","aria-describedby":"confirmnewpassword",value:u,onChange:e=>{m(e.target.value)},autoComplete:"new-password"})]})]}),(0,t.jsx)("div",{className:k().btnGrp,children:(0,t.jsx)(E.Z,{"aria-label":"Basic example",children:(0,t.jsx)(c.Z,{variant:"primary",onClick:updatePassword,children:"Save"})})})]})})]})};function LoginModal(e){let a=e.seo?"SEO":"App",[s,o]=(0,r.useState)(null),[i,w]=(0,r.useState)(!1),N={},[Z,k]=(0,r.useState)("/"),[E,F]=(0,r.useState)("/"),T=(0,r.useRef)(),[D,B]=(0,r.useState)({}),[I,U]=(0,r.useState)(!1),[L,R]=(0,r.useState)(""),[M,W]=(0,r.useState)("register"!=e.typeoflogin),[O,H]=(0,r.useState)(""),[G,V]=(0,r.useState)("error"),[z,X]=(0,r.useState)(!1),[J,Q]=(0,r.useState)({}),[q,Y]=(0,r.useState)(""),[$,K]=(0,r.useState)(""),[ee,ea]=(0,r.useState)(""),[es,et]=(0,r.useState)(""),[eo,er]=(0,r.useState)(!1),[en,ei]=(0,r.useState)(!1),togglePasswordVisiblity=()=>{ei(!en)},el=(0,t.jsx)(u.z5B,{className:l().eySlash}),ec=(0,t.jsx)(u.tjB,{className:l().eySlash}),showWaitingPopUp=e=>{V("wait"),H(a=>(X(!0),e))},showErrorPopUp=e=>{H(a=>(V("error"),X(!0),setTimeout(()=>{X(!1)},3e3),e))},onUsername=e=>{let a=e.target.value;R(a)},onPassword=e=>{let a=e.target.value;Y(a)},loginWithApple=async()=>{try{let a="https://bondblox.com/webapp/login/apple";if(e.seo){a="https://bondblox.com/bond-market/login/apple";let e="";window&&window.location&&window.location.origin&&(e=window.location.origin),""!=e&&e.includes("bondevalue.mx")&&(a="https://bondblox.com/bond-market/login/mx/apple")}window.AppleID.auth.init({clientId:"com.bondevalue.web",scope:"name email",redirectURI:a,state:btoa(JSON.stringify(new Date().getTime()+""))})}catch(e){console.error(e)}let a=await window.AppleID.auth.signIn();return a};(0,r.useEffect)(()=>{if(Object.keys(D).length,e.seo){let a="";window&&window.location&&window.location.origin&&(a=window.location.origin);let s=g.Z.getGoogleRedirectUrlSEO(""),t=g.Z.getFaceBookUrlSEO("");d.Z.setLocalStorage("seoExtraUrl",e.bondDetails),""!=a&&a.includes("bondevalue.mx")&&(s=g.Z.getGoogleRedirectUrlSEO("mx"),t=g.Z.getFaceBookUrlSEO("mx")),k(s),F(t)}else k(g.Z.getGoogleRedirectUrl()),F(g.Z.getFaceBookUrl())},[]);let handleSubmit=async e=>{if(e.preventDefault(),!L)return N.userName="Please enter your email id",(0,P.B)("A2_0800_TrackLoginFail",{reason:"Email Empty"}),B(N);if(!validateEmail(L))return(0,P.B)("A2_0800_TrackLoginFail",{reason:"Invalid Email"}),N.userName="Please enter your valid email id",B(N);if(!q)return(0,P.B)("A2_0800_TrackLoginFail",{reason:"Password Empty"}),N.errorToShow="Please enter your password",B(N);U(!0);try{w(!0);let e=await d.Z.generateHmac(q),s=await g.Z.doLogin(L,e,null,a);if(s.data){if((s=s.data).response){if(s=s.response,1==s.Status){(0,P.B)("A2_0400_Login",{status:"Success",email:L});let e=s.Result[0];d.Z.setNameZenDesk(e.userName),e.bbxAccountId&&(m.Z.bbxAccountId=e.bbxAccountId),e.forceChangePassword?(et(e.userToken),er(!0),w(!1)):createAuthentication(e,"login")}else(0,P.B)("A2_0800_TrackLoginFail",{email:L,reason:s.Description}),w(!1),showErrorPopUp(s.Description)}else(0,P.B)("A2_0800_TrackLoginFail",{email:L}),w(!1)}else(0,P.B)("A2_0800_TrackLoginFail",{email:L}),w(!1)}catch(e){(0,P.B)("A2_0800_TrackLoginFail",{email:L,reason:e.message}),w(!1),console.log(e)}},handleRegistration=async s=>{let t={};s.preventDefault();let o=L.trim(),r="";(0,P.B)("get_started_button",{email:o});try{r=await T.current.getValue(),w(!0);let e={Status:1};if(w(!1),e=(e=e.data).response,1!=e.Status){errorPopup("Capcha Validation Failed"),(0,P.B)("A1_0100_TrackSignUpFail",{email:o,reason:"captcha failed"});return}}catch(e){(0,P.B)("A1_0100_TrackSignUpFail",{email:o,reason:"captcha failed"}),console.error(e),w(!1)}if(!o)return t.userName="Please enter your email id",B(t);if(!validateEmail(o))return t.userName="Please enter your valid email id",B(t);if(!q)return t.errorToShow="Please enter your password",B(t);B(t);let n={gclid:"",password:q,utmJson:localStorage.utm_info,mobileNo:"0000",email:o,countryId:"65",accreditedInvestorStatus:"0",userType:"3",deviceType:"WebApp",verificationRequired:"1",capchaToken:r};if("gclid"in localStorage&&"undefined"!=localStorage.gclid&&""!=localStorage.gclid){let e=JSON.parse(localStorage.getItem("gclid"));e.expiryDate>new Date().getTime()&&(n.gclid=e.value)}try{w(!0);let s=await g.Z.registernew(n,a);if(T.current.reset(),s.data){if((s=s.data).response){if(s=s.response,d.Z.setSessionData("user_action_reg_country",!1),d.Z.setSessionData("user_action_reg_mobile",!1),1==s.Status){localStorage.removeItem("utm_info");let a=s.Result[0];(0,P.B)("user_registered_".concat(a.userId),{}),d.Z.setNameZenDesk(a.userName+"-Trial Plan plan-Active"),d.Z.setEmailZenDesk(a.emailId),createAuthentication(a,"register"),e.isUserRegister(!0)}else(0,P.B)("A1_0100_TrackSignUpFail",{email:o,reason:s.Description}),w(!1),errorPopup(s.Description)}else(0,P.B)("A1_0100_TrackSignUpFail",{email:o}),w(!1)}else(0,P.B)("A1_0100_TrackSignUpFail",{email:o}),w(!1)}catch(e){(0,P.B)("A1_0100_TrackSignUpFail",{email:o}),w(!1)}},createAuthentication=async(a,s)=>{let t=a.status;if(t&&302==t){let s=a.redirectTo;e.isUserLogin(!1,s);return}m.Z.BEVAuthentication(a,s),"register"==s?e.isUserRegister(!0):e.isUserLogin(!0,null)},validateEmail=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),sendForgetPasswordLink=async()=>{if(!z){if(!L){showErrorPopUp("Please enter email address.");return}if(!validateEmail(L)){showErrorPopUp("Please enter a valid email address.");return}showWaitingPopUp("Please wait");try{let e=await g.Z.forgetPasswordEmail(L,a);e.data&&(e=e.data).response&&(e=e.response,1==e.Status?(X(!1),successPopup("Link to reset your password has been sent to your registered Email Id.")):showErrorPopUp(e.Description))}catch(e){X(!1)}}},needTohelp=()=>{d.Z.expandZenDesk()},openDialogue=e=>{o((0,t.jsx)(v.Z,{buttons:e.buttons,icon:e.icon,onClose:closeDialogue,closeIcon:e.closeIcon,type:e.type,title:e.title,children:e.content}))},closeDialogue=()=>{o(null)},successPopup=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:closeDialogue;openDialogue(y.Z.showSuccessMessage(e,a))},errorPopup=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:closeDialogue;openDialogue(y.Z.showErrorMessage(e,a))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j(),{src:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",strategy:"afterInteractive"}),eo&&(0,t.jsx)(UI_ForceChangePassword,{password:q,userToken:es,closeForceChangePassword:()=>{Y(""),er(!1)}}),i&&(0,t.jsx)(f.Z,{newLoading:!0}),z&&(0,t.jsx)(b.Z,{errorMsg:O,typeOfMessage:G,closeWarning:e=>{X(e)},infoPopup:J}),s,(0,t.jsxs)("h3",{className:"d-block d-sm-none regToptext",children:[(0,t.jsx)("span",{style:{color:"#f88007",fontSize:"1.3rem"},children:"GET STARTED FOR FREE"}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{style:{color:"#ffffff",fontSize:"1.3rem"},children:"NO CREDIT CARD NEEDED"})]}),M?(0,t.jsxs)("div",{className:l().loginSection,children:[(0,t.jsxs)("div",{className:l().preOne,children:[(0,t.jsx)("h5",{className:"".concat(l().regHeader," ").concat(l().mt16," text-center regHeaderFont"),children:"Login"}),(0,t.jsxs)(n.Z,{onSubmit:handleSubmit,className:"".concat(l().formStyle," ").concat(l().pt30),children:[(0,t.jsxs)(n.Z.Group,{className:"mb-2",controlId:"formBasicEmail",children:[(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger")}),(0,t.jsx)(n.Z.Label,{children:"Email address"}),(0,t.jsx)(n.Z.Control,{type:"text",placeholder:"jdoe@gmail.com",onChange:onUsername,name:"userName",value:L}),(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger"),children:D.userName})]}),(0,t.jsxs)(n.Z.Group,{className:"".concat(l().passWrapper," mb-2"),controlId:"formBasicPassword",children:[(0,t.jsx)(n.Z.Label,{children:"Password"}),(0,t.jsx)(n.Z.Control,{type:en?"text":"password",placeholder:"Password",name:"password",onChange:onPassword,value:q}),(0,t.jsx)("i",{onClick:togglePasswordVisiblity,children:en?el:ec}),(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger"),children:D.errorToShow}),(0,t.jsx)(n.Z.Text,{style:{textAlign:"end"},children:(0,t.jsx)("a",{className:"".concat(l().forgotpassword_link," bondevalue-text2 showCursor"),onClick:sendForgetPasswordLink,children:"Forgot Password"})})]}),(0,t.jsxs)("div",{className:"d-grid",children:[(0,t.jsx)(c.Z,{variant:"warning",type:"submit",size:"sm",className:"".concat(l().CusButton," ").concat(l().mt30," login-button-cust"),id:"login-webApp",children:"Login"}),(0,t.jsx)(n.Z.Text,{})]})]}),(0,t.jsx)("div",{className:l().RegistrationEnd,children:(0,t.jsx)("div",{className:l().circle,children:"or"})}),(0,t.jsxs)("div",{className:"".concat(l().FooterSocialMediaicons," ").concat(l().mt30),children:[(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsx)(x.Z,{href:E,id:"facebook-button",children:(0,t.jsx)(S(),{src:A,alt:"Facebook SignIn",style:{maxWidth:"100%",height:"auto"}})})}),(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsx)(x.Z,{href:Z,id:"google-button",children:(0,t.jsx)(S(),{src:_,alt:"Google SignIn",style:{maxWidth:"100%",height:"auto"}})})}),(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsxs)("a",{className:l().myHover+" apple-icon",children:[" ",(0,t.jsx)(S(),{onClick:loginWithApple,src:C,alt:"Apple SignIn",style:{maxWidth:"100%",height:"auto"}})]})})]})]}),(0,t.jsx)("div",{className:"".concat(l().Footersec," ").concat(l().mt16),children:(0,t.jsx)("div",{className:l().footerTxt2,children:(0,t.jsxs)("div",{className:"".concat(l().TextBtm," text-center"),children:[(0,t.jsxs)("p",{className:"".concat(l().mt16),children:["Don't have an account?"," ",(0,t.jsx)("span",{className:l().alredyLogin,children:(0,t.jsx)("a",{onClick:a=>{a.preventDefault(),W(!1),e.routeChange&&e.routeChange()},children:"Register for free"})})]}),(0,t.jsxs)("p",{className:"".concat(l().mt16," ").concat(l().mb30," "),children:["Need help?",(0,t.jsx)("span",{className:l().alredyLogin,children:(0,t.jsxs)("a",{onClick:needTohelp,className:"".concat(l().linkHover," login-support-label"),children:[" ","Contact Support"]})})]})]})})})]}):null,!M&&(0,t.jsxs)("div",{className:l().regLoginReg,children:[(0,t.jsx)("p",{className:"".concat(l().regHeader," text-center regHeaderFont ").concat(l().mt20)}),(0,t.jsx)("p",{className:"".concat(l().regSubHeadSize," ").concat(l().mt20," text-center regSubHeadSizeFont"),children:"Register for your free account"}),(0,t.jsxs)(n.Z,{onSubmit:handleRegistration,className:"".concat(l().formStyle," ").concat(l().pt20),children:[(0,t.jsxs)(n.Z.Group,{className:"mb-2",controlId:"formBasicEmail2",children:[(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger")}),(0,t.jsx)(n.Z.Label,{children:"Email address"}),(0,t.jsx)(n.Z.Control,{type:"text",placeholder:"Enter your email address",onChange:onUsername,name:"userName"}),(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger"),children:D.userName})]}),(0,t.jsxs)(n.Z.Group,{className:"".concat(l().passWrapper," mb-2"),controlId:"formBasicPassword2",children:[(0,t.jsx)(n.Z.Label,{children:"Password"}),(0,t.jsx)(n.Z.Control,{type:en?"text":"password",placeholder:"Enter a password",name:"password",onChange:onPassword}),(0,t.jsx)("i",{onClick:togglePasswordVisiblity,children:en?el:ec}),(0,t.jsx)("div",{className:"".concat(l().ErroeMsg," text-danger"),children:D.errorToShow})]}),(0,t.jsx)(n.Z.Group,{className:"mb-2",controlId:"recaptchaRef",children:(0,t.jsx)(p.Z,{ref:T,id:"SEO"==a?"bev-captica":"bev-captica2",sitekey:"6LefIDMcAAAAAOFeg4WJK6WPHCu7oPWkBaDxRvQm",onChange:function(e){},size:"normal",className:"g-recaptcha"})}),(0,t.jsxs)("div",{className:"d-grid",children:[(0,t.jsx)(c.Z,{variant:"warning",type:"submit",size:"sm",className:l().CusButton,id:"btn-register-seo",children:"Get started"}),(0,t.jsxs)(n.Z.Text,{align:"center",className:"".concat(l().formtext," ").concat(l().pt10),children:["By signing up, you agree to our"," ",(0,t.jsx)("a",{href:"".concat(h.ho,"/terms-of-use/"),target:"_blank",children:"Terms"})," ","and"," ",(0,t.jsx)("a",{href:"".concat(h.ho,"/privacy-policy/"),target:"_blank",children:"Privacy Policy"})]})]})]}),(0,t.jsx)("div",{className:l().RegistrationEnd,children:(0,t.jsx)("div",{className:l().circle,children:"or"})}),(0,t.jsxs)("div",{className:"".concat(l().FooterSocialMediaicons," ").concat(l().mt16),children:[(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsx)(x.Z,{href:E,id:"facebook-button",children:(0,t.jsx)(S(),{src:A,alt:"Google SignIn",style:{maxWidth:"100%",height:"auto"}})})}),(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsx)(x.Z,{href:Z,id:"google-button",children:(0,t.jsx)(S(),{src:_,alt:"Google SignIn",style:{maxWidth:"100%",height:"auto"}})})}),(0,t.jsx)("div",{className:l().socialMedia,children:(0,t.jsxs)("a",{className:l().myHover+" apple-icon",children:[" ",(0,t.jsx)(S(),{onClick:loginWithApple,src:C,alt:"Apple SignIn",style:{maxWidth:"100%",height:"auto"}})]})})]}),(0,t.jsx)("div",{className:"".concat(l().Footersec," ").concat(l().mt16),children:(0,t.jsx)("div",{className:l().footerTxt2,children:(0,t.jsxs)("div",{className:"".concat(l().TextBtm," text-center"),children:[(0,t.jsxs)("p",{className:"".concat(l().mt16),children:["Already have an account?"," ",(0,t.jsx)("span",{className:l().alredyLogin,children:(0,t.jsx)("a",{href:"/",onClick:a=>{a.preventDefault(),W(!0),e.routeChange&&e.routeChange()},children:"Login"})})]}),(0,t.jsxs)("p",{className:"".concat(l().mt16," ").concat(l().mb30," "),children:["Need help?",(0,t.jsx)("span",{className:l().alredyLogin,children:(0,t.jsxs)("a",{onClick:needTohelp,className:"".concat(l().linkHover," login-support-label"),children:[" ","Contact Support"]})})]})]})})})]})]})}var F=s(70775),T=s.n(F);s(65674);var D=s(31555),B=s(10682),I=s(34051),U=s(9008),L=s.n(U),R=s(6242),M=s(16291),W=s(39308),login=e=>{let a=(0,o.useRouter)(),s=a.asPath,n=a.query.source||e.source||"App",i=s&&s.includes("registration")?"register":"login",[l,c]=(0,r.useState)(!1),[g,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let{innerWidth:e,navigator:s}=window;d.Z.showZenDesk(),a.events.on("routeChangeComplete",(e,s)=>{let{shallow:t}=s;a.pathname.includes("/webapp/login")||a.pathname.includes("/webapp/registration")||a.reload()})},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j(),{strategy:"beforeInteractive",src:"https://v2.zopim.com/?".concat("4HdgzD6UOcXCmtwogDDvPzF8DQEJi1qU")}),"login"==i&&(0,t.jsxs)(L(),{children:[(0,t.jsx)("title",{children:"BondbloX - Login to Track & Trade Bonds Online"}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}),(0,t.jsx)("meta",{name:"keywords",content:"Bondblox Login"}),(0,t.jsx)("meta",{name:"description",content:"Login to the BondbloX App to track bond prices, manage your bond portfolio, get bond market news, select the right bonds using bond screeners and more."}),(0,t.jsx)("meta",{name:"robots",content:"index, follow"}),(0,t.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,t.jsx)("meta",{property:"og:title",content:"BondbloX - Login to Track & Trade Bonds Online"}),(0,t.jsx)("meta",{property:"og:description",content:"Login to the BondbloX App to track bond prices, manage your bond portfolio, get bond market news, select the right bonds using bond screeners and more."}),(0,t.jsx)("meta",{property:"og:site_name",content:"BondbloX"}),(0,t.jsx)("meta",{property:"og:type",content:"website"}),(0,t.jsx)("meta",{property:"og:image",content:W.Z&&W.Z.src&&"".concat(h.O3).concat(W.Z.src)}),(0,t.jsx)("meta",{property:"og:url",content:"".concat(h.O3,"webapp/login")}),(0,t.jsx)("link",{rel:"canonical",href:"".concat(h.O3,"webapp/login")})]}),(0,t.jsx)(j(),{src:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",strategy:"afterInteractive"}),(0,t.jsx)("div",{className:T().outerContainer,children:(0,t.jsx)(B.Z,{className:T().cont,children:(0,t.jsxs)(I.Z,{className:T().contRow,children:[(0,t.jsx)(D.Z,{className:"p-0 "+T().textArea,sm:12,md:12,lg:7,xl:8,xxl:8,children:(0,t.jsx)("div",{className:T().imageStyle,children:(0,t.jsx)(M.Z,{})})}),(0,t.jsx)(D.Z,{className:"p-0 "+T().loginArea,sm:12,md:12,lg:5,xl:4,xxl:4,children:(0,t.jsx)("div",{className:T().ModalContent,children:l&&!g?(0,t.jsx)(R.Z,{finishRegisteration:()=>{a.push("home")}}):(0,t.jsx)(LoginModal,{typeoflogin:i,isUserLogin:(e,s)=>{if(e)1==d.Z.getVerificationRequired()?(c(!1),p(!0),a.push("/webapp/verify")):(p(!1),d.Z.removeSessionData("currentTab"),a.push("home"));else switch(s){case"stepsToRemoveBeVFromApple":a.push("/error/stepsToRemoveBeVFromApple");break;case"noEmailFound":a.push("/error/noEmailFound");break;default:a.push("/404")}},isUserRegister:e=>{1==d.Z.getVerificationRequired()?(p(!0),a.push("/webapp/verify")):(c(!0),p(!1))},routeChange:()=>{a.replace("/webapp/"+("register"==i?"login":"registration")+"?source=".concat(n))},seo:"SEO"==n})})})]})})})]})}},76025:function(e){e.exports={fCPC1:"ForceChangePassword_fCPC1__tvnz_",outerConainer:"ForceChangePassword_outerConainer__AdXqM",mainConatiner:"ForceChangePassword_mainConatiner__HQThY",dashboardWidget:"ForceChangePassword_dashboardWidget__vUoQO",heading:"ForceChangePassword_heading__wfVmz",bottomPadding:"ForceChangePassword_bottomPadding__FN7Ly",subHeading:"ForceChangePassword_subHeading__1Vjfi",widgetSubHeading:"ForceChangePassword_widgetSubHeading__00K9D",formControl2:"ForceChangePassword_formControl2__TUKU1",text:"ForceChangePassword_text___JkBp",btnGrp:"ForceChangePassword_btnGrp__dZXru",pageHeading:"ForceChangePassword_pageHeading__uoC_6"}},2086:function(e,a,s){"use strict";var t=s(48182),o=s.n(t),r=s(67294),n=s(76792),i=s(85893);let l=r.forwardRef(({bsPrefix:e,size:a,vertical:s=!1,className:t,role:r="group",as:l="div",...c},d)=>{let g=(0,n.vE)(e,"btn-group"),p=g;return s&&(p=`${g}-vertical`),(0,i.jsx)(l,{...c,ref:d,role:r,className:o()(t,p,a&&`${g}-${a}`)})});l.displayName="ButtonGroup",a.Z=l}}]);