1"use strict";(self.webpackChunkmimginv_v2=self.webpackChunkmimginv_v2||[]).push([[4026],{60736:function(e,n,r){r.d(n,{Z:function(){return i}});r(72791);var t="aboutHeader_header__gH-FO",s="aboutHeader_line__zNLKl",o=r(80184);function i(e){return(0,o.jsxs)("div",{children:[(0,o.jsx)("h4",{className:t,children:e.children}),(0,o.jsx)("div",{className:s})]})}},47637:function(e,n,r){r.d(n,{Z:function(){return s}});r(72791);var t=r(80184);function s(){return(0,t.jsx)("span",{style:{color:"red"},children:"*"})}},33138:function(e,n,r){function t(e){if(e&&null!==e){return/^[-A-Za-z0-9_.+!#$%&'*/=?^`{|}~]+@([A-Za-z0-9][-A-Za-z0-9]*\.)+[A-Za-z]{2,10}$/.test(e)}return!1}r.d(n,{J:function(){return t}})},94026:function(e,n,r){r.r(n),r.d(n,{default:function(){return j}});var t=r(70885),s=r(72791),o=r(23079),i=r(64412),a=r(60736),c="register_container__26I24",l="register_wrapper__76wVO",d="register_red__KFY3n",u="register_successWrapper__1Aa2h",h=r(47637),f=r(57689),x=r(33138),p=r(82570),m=r.n(p),g=r(80184);function j(){var e=(0,s.useState)(""),n=(0,t.Z)(e,2),r=n[0],p=n[1],j=(0,s.useState)(!1),w=(0,t.Z)(j,2),v=w[0],y=w[1],_=(0,s.useState)(!1),b=(0,t.Z)(_,2),I=b[0],Z=b[1],P=(0,s.useState)(""),C=(0,t.Z)(P,2),S=C[0],N=C[1],k=(0,s.use
1State)(""),A=(0,t.Z)(k,2),O=A[0],M=A[1],z=(0,s.useState)(""),U=(0,t.Z)(z,2),q=U[0],T=U[1],F=(0,s.useState)(""),R=(0,t.Z)(F,2),J=R[0],W=R[1],D=(0,s.useState)(""),H=(0,t.Z)(D,2),L=H[0],V=H[1],X=(0,s.useState)(""),E=(0,t.Z)(X,2),K=E[0],Y=E[1],$=(0,s.useState)(!1),G=(0,t.Z)($,2),B=G[0],Q=G[1],ee=(0,s.useState)(!1),ne=(0,t.Z)(ee,2),re=ne[0],te=ne[1],se=(0,s.useState)(!1),oe=(0,t.Z)(se,2),ie=oe[0],ae=oe[1],ce=(0,s.useState)(!1),le=(0,t.Z)(ce,2),de=le[0],ue=le[1],he=(0,s.useState)(!1),fe=(0,t.Z)(he,2),xe=fe[0],pe=fe[1],me=(0,s.useState)(!1),ge=(0,t.Z)(me,2),je=ge[0],we=ge[1],ve=(0,s.useState)(),ye=(0,t.Z)(ve,2),_e=ye[0],be=ye[1],Ie=(0,s.useState)(""),Ze=(0,t.Z)(Ie,2),Pe=Ze[0],Ce=Ze[1],Se=(0,s.useState)(""),Ne=(0,t.Z)(Se,2),ke=Ne[0],Ae=Ne[1],Oe=(0,f.s0)();if(B)return(0,g.jsxs)("div",{className:u,children:[(0,g.jsx)("h2",{children:"Welcome!"}),(0,g.jsx)("p",{children:"You have successfully registered an account with the Monarch Investor Portal. "}),(0,g.jsx)("p",{children:"When you visit the Investor portal in the future, you can sign in by clicking on 'Investors' in the menu, or by clicking on the sign in icon in the upper right corner."}),(0,g.jsx)(o.zx,{onClick:function(){return Oe("/login")},children:"Sign In"})]});var Me=q.length>0&&J.length>0&&q!==J;return(0,g.jsxs)(i.W2,{className:c,children:[(0,g.jsx)(a.Z,{children:"Create a New Account"}),(0,g.jsx)("h4",{children:"Welcome to Monarch Investment and Management Group's Investor Portal."}),(0,g.jsx)("h5",{children:"Please follow the workflow below to help us setup your account."}),(0,g.jsx)(i.bZ,{color:"danger",isOpen:K.length>0,toggle:function(){return Y("")},children:K}),(0,g.jsxs)(i.bZ,{color:"info",isOpen:de,toggle:function(){return ue(!1)},children:["There is already an account associated with the email address ",r,". If you forgot your password, you can reset it from the login page.",(0,g.jsx)(o.zx,{onClick:function(){return Oe("/login")},children:"Login"})]}),(0,g.jsxs)("div",{className:l,children:[(0,g.jsxs)(i.cw,{children:[(0,g.jsx)(i.__,{for:"email",children:"Email"}),(0,g.jsx)(i.II,{type:"text",id:"email",value:r,onChange:function(e){return p(e.target.value)},disabled:I})]}),!I&&(0,g.jsx)(i.cw,{children:(0,g.jsx)(o.zx,{disabled:v,onClick:function(e){e.preventDefault(),Y(""),(0,x.J)(r)?(y(!0),o.od.get("api/user/IsValidNewUser?email="+encodeURIComponent(r)).then((function(e){e.data?Z(e.data):Y("Unexpected error when submitting form.")})).catch((function(e){e.response&&400===e.response.status?Y(e.response.data):e.response&&409===e.response.status?ue(!0):Y("Unexpected error when submitting form.")})).finally((function(){return y(!1)}))):Y("Email address is not valid.")},children:"Submit"})}),I&&(0,g.jsxs)("div",{children:[(0,g.jsxs)(i.cw,{children:["Please enter the code that was sent to your email address. ",(0,g.jsx)("br",{}),"If you do not get the email from [email protected], please check your Spam/Junk folder or request a new code by clicking on the button below. ",(0,g.jsx)("br",{})]}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"code",children:[(0,g.jsx)(h.Z,{}),"Code"]}),(0,g.jsx)(i.II,{type:"text",id:"code",value:L,onChange:function(e){return V(e.target.value)},disabled:xe})]}),(0,g.jsx)(i.bZ,{color:"info",isOpen:re,children:"A new code was sent to your email, please check your spam folder if you do not find the email."}),(0,g.jsx)(i.bZ,{color:"danger",isOpen:je,children:"The code you entered is not correct. Please check your email for the correct validation code."}),!xe&&(0,g.jsxs)(i.cw,{children:[(0,g.jsx)(o.zx,{onClick:function(){we(!1),te(!1),o.od.get("api/user/IsUserCodeValid?email="+encodeURIComponent(r)+"&code="+L).then((function(e){pe(e.data),e.data||we(!0)})).catch((function(){return we(!0)}))},disabled:L.length<6,children:"Submit"}),(0,g.jsx)(o.zx,{transparent:!0,onClick:function(){ae(!0),we(!1),o.od.get("api/user/SendUserCode?email="+encodeURIComponent(r)).then((function(e){e.data?te(!0):(Y("There was a problem when sending the code. Please try again."),window.scrollTo(0,0))})).catch((function(e){Y("There was a problem when sending the code. Please try again."),window.scrollTo(0,0)})).finally((function(){return ae(!1)}))},disabled:ie,children:"Resend Code"})]}),I&&xe&&(0,g.jsxs)(i.l0,{onSubmit:function(e){if(e.preventDefault(),m().isMobilePhone(Pe,"en-US"))if(""===ke||m().isMobilePhone(ke,"en-US")){var n={firstName:S,lastName:O,password:q,code:L,email:r,mfaMethod:_e,cell:Pe,phone:ke};o.od.post("api/login/register",n).then((function(){return Q(!0)})).catch((function(e){e.response&&400===e.response.status?Y(e.response.data):Y("Unexpected error when submitting form."),window.scrollTo(0,0)}))}
1else alert("The Secondary/Other Phone Number entered is not valid. Please clear the input or correct and try again");else alert("The Primary Phone Number entered is not valid. Please correct and try again")},children:[(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"firstName",children:[(0,g.jsx)(h.Z,{}),"First Name"]}),(0,g.jsx)(i.II,{type:"text",id:"firstName",value:S,onChange:function(e){return N(e.target.value)},required:!0})]}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"lastName",children:[(0,g.jsx)(h.Z,{}),"Last Name"]}),(0,g.jsx)(i.II,{type:"text",id:"lastName",value:O,onChange:function(e){return M(e.target.value)},required:!0})]}),(0,g.jsx)(i.cw,{children:"Passwords must be at least 8 characters, contain one upper case character, one lower case character and one digit."}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"password",children:[(0,g.jsx)(h.Z,{}),"Password"]}),(0,g.jsx)(i.II,{type:"password",id:"password",value:q,onChange:function(e){return T(e.target.value)},required:!0}),Me&&(0,g.jsx)("div",{className:d,children:"Passwords don't match"})]}),(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"confirmPassword",children:[(0,g.jsx)(h.Z,{}),"Confirm Password"]}),(0,g.jsx)(i.II,{type:"password",id:"confirmPassword",value:J,onChange:function(e){return W(e.target.value)},required:!0})]}),(0,g.jsx)(i.bZ,{color:"info",children:"Monarch reccomends but does not require that you secure your account using Multifactor Authentication via a registered phone number. Please select an option for MFA verification below. All new users must supply at least 1 valid phone number in order to register for this site."}),(0,g.jsxs)(i.X2,{children:[(0,g.jsx)(i.JX,{md:6,sm:12,children:(0,g.jsxs)(i.cw,{children:[(0,g.jsxs)(i.__,{for:"cellPhone",children:["Primary Phone # (ideally cell): ",(0,g.jsx)(h.Z,{})]}),(0,g.jsx)(i.II,{required:!0,type:"phone",id:"cellPhone",name:"cellPhone",placeholder:"123-456-7890",onChange:function(e){return Ce(e.target.value)}})]})}),(0,g.jsx)(i.JX,{md:6,sm:12,children:(0,g.jsxs)(i.cw,{children:[(0,g.jsx)(i.__,{for:"otherPhone",children:"Other Phone # (optional): "}),(0,g.jsx)(i.II,{type:"phone",id:"otherPhone",name:"otherPhone",placeholder:"123-456-7890",onChange:function(e){return Ae(e.target.value)}})]})})]}),(0,g.jsx)("h5",{children:"Choose a Multifactor Authentication Method"}),(0,g.jsxs)(i.cw,{check:!0,children:[(0,g.jsxs)(i.cw,{check:!0,children:[(0,g.jsx)(i.II,{type:"radio",name:"mfaOptions",value:"New Ip Addresses Only",id:"newIps",onChange:function(){return be("New Ip Addresses Only")}}),(0,g.jsx)(i.__,{for:"newIpsOnly",children:"Only use MFA when logging in from a new IP address"})]}),(0,g.jsxs)(i.cw,{check:!0,children:[(0,g.jsx)(i.II,{type:"radio",name:"mfaOptions",value:"Always",id:"always",onChange:function(){return be("Always")}}),(0,g.jsx)(i.__,{for:"Always",children:"Always Require MFA when logging in"})]}),(0,g.jsxs)(i.cw,{check:!0,children:[(0,g.jsx)(i.II,{type:"radio",name:"mfaOptions",value:"Never",id:"never",onChange:function(){return be("Never")}}),(0,g.jsx)(i.__,{for:"never",children:"Do not require MFA when logging in"})]})]}),(0,g.jsx)("br",{}),(0,g.jsx)(i.cw,{children:(0,g.jsx)(o.zx,{submit:!0,disabled:Me||!_e,children:"Register"})})]})]})]})]})}}}]); 2//# sourceMappingURL=4026.30c69894.chunk.js.map
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.