1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5770],{50785:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in-to-cri",function(){return t(61105)}])},31362:function(e,n,t){"use strict";t.d(n,{E5:function(){return x},PE:function(){return u},Ux:function(){return d},VB:function(){return c},eC:function(){return m}});var i,r,s=t(11888),l=t(27505),o=t(26662),a=t(9912);let x=a.Ry({email:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).email((0,o.L)("COMMON:VALIDATION_EMAIL")),password:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED"))}),u=a.Ry({Email:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).email((0,o.L)("COMMON:VALIDATION_EMAIL")),Password:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).regex(s.zU,(0,o.L)("COMMON:VALIDATION_INVALID_PASSWORD")),ConfirmPassword:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")),PhoneNumber:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).regex(s._D,(0,o.L)("COMMON:VALIDATION_PHONE_NUMBER")),FirstName:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).max(40,(0,o.L)("COMMON:VALIDATION_MAX_LENGTH",{max:40})).regex(s.bn,(0,o.L)("COMMON:VALIDATION_ALFANUMERIC")),MiddleName:a.Z_().max(40,(0,o.L)("COMMON:VALIDATION_MAX_LENGTH",{max:40})).regex(s.bn,(0,o.L)("COMMON:VALIDATION_ALFANUMERIC")),LastName:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).max(40,(0,o.L)("COMMON:VALIDATION_MAX_LENGTH",{max:40})).regex(s.bn,(0,o.L)("COMMON:VALIDATION_ALFANUMERIC")),RoleName:a.i0(l.h.LANDLORD).or(a.i0(l.h.TENANT)).or(a.i0(l.h.APPLICANT)),Locale:a.i0("1").or(a.i0("2")),identificationType:a.Rx().optional(),ssn:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).min(9,(0,o.L)("COMMON:VALIDATION_MIN_LENGTH",{min:9})).max(9,(0,o.L)("COMMON:VALIDATION_MAX_LENGTH",{max:9})),userId:a.Z_().optional(),verificationCode:a.Z_().optional()}).refine(e=>e.Password===e.ConfirmPassword,{message:(0,o.L)("COMMON:VALIDATION_CONFIRM_PASSWORD_MATCH"),path:["ConfirmPassword"]}),m=a.Ry({email:a.Z_().nonempty((0,o.L)("COMMON:VALIDATION_REQUIRED")).email((0,o.L)("COMMON:VALIDATION_EMAIL"))});(i=r||(r={})).EMAIL="email",i.PHONE="phone";let d=a.Ry({messageDestination:a.Km(["email","phone"]).or(a.i0(""))}),c=a.Ry({otp:a.Z_().min(6,(0,o.L)("COMMON:VALIDATION_MIN_LENGTH",{min:6})).max(6,(0,o.L)("COMMON:VALIDATION_MAX_LENGTH",{max:6}))})},63471:function(e,n,t){"use strict";t.d(n,{K:function(){return d}});var i=t(15311),r=t(88578),s=t(84819),l=t(82570),o=t(81217),a=t(54001);let x=(0,s.ZP)(l.Z)(e=>{let{theme:n}=e;return{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:"20px",margin:"80px auto",[n.breakpoints.up("md")]:{backgroundColor:n.palette.success.main},[n.breakpoints.down("md")]:{padding:"30px 15px"}}}),u=(0,s.ZP)(o.Z)(e=>{let{theme:n}=e;return{display:"flex",justifyContent:"center",color:n.palette.success.main,[n.breakpoints.down("md")]:{color:"white"}}}),m=(0,s.ZP)(a.ZP)(e=>{let{theme:n}=e;return{textAlign:"center",backgroundColor:"white",padding:"45px 0",minHeight:"500px",[n.breakpoints.down("md")]:{padding:"8px 0 80px"}}});var d=e=>{let{leftSectionContent:n,children:t}=e;return(0,i.jsx)(x,{children:(0,i.jsxs)(a.ZP,{container:!0,alignItems:"center",children:[(0,i.jsxs)(a.ZP,{item:!0,xs:12,md:6,children:[(0,i.jsx)(u,{children:(0,i.jsx)(r.Hx,{width:n?200:300})}),n]}),(0,i.jsx)(m,{item:!0,xs:12,md:6,children:t})]})})}},11888:function(e,n,t){"use strict";t.d(n,{CU:function(){return i},_D:function(){return o},bn:function(){return r},qC:function(){return l},zU:function(){return s}});let i=/^[\w-\.+]+@([\w-]+\.)+[\w-]{2,4}$/,r=/^[a-zA-Z0-9_]*$/,s=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#])[A-Za-z\d@$!#%*?&]{8,}$/,l=/^[+-]?\d+(\.\d+)?$/,o=/^[0-9]{10}$/},65668:function(e,n,t){"use strict";t.d(n,{Gq:function(){return u},H6:function(){return a},Jx:function(){return o},j5:function(){return x},lU:function(){return l}});var i=t(84819),r=t(81217),s=t(80185);let l=(0,i.ZP)(r.Z)({textAlign:"left",display:"flex",flexDirection:"column",alignItems:"center"}),o=(0,i.ZP)(s.Z)({fontSize:"36px",fontWeight:"bold",color:"black",marginBottom:"20px"}),a=(0,i.ZP)(r.Z)(e=>{let{theme:n}=e;return{maxWidth:"370px",margin:"0 auto",[n.breakpoints.down("md")]:{maxWidth:"273px"}}}),x=(0,i.ZP)(r.Z)(e=>{let{theme:n}=e;return{width:"100%",display:"flex",justifyContent:"flex-end",marginTop:"24px",[n.breakpoints.up("md")]:{dis
1play:"none"}}}),u=(0,i.ZP)("form")({textAlign:"left",display:"flex",flexDirection:"column",alignItems:"center"})},61105:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return v},default:function(){return G}});var i,r,s=t(15311),l=t(23262),o=t(33326),a=t.n(o),x=t(70700),u=t(63471),m=t(72155),d=t(65668),c=t(84819),O=t(81217),I=t(62382),N=t(80185),p=t(28500),A=t(20132),_=t(17723),L=t(31362),M=t(41922),T=t(8487),E=t(33659),h=t(57017),f=t(91054),j=e=>{let{onNext:n}=e,{watch:t,control:i,handleSubmit:r,formState:{errors:l}}=(0,_.cI)({resolver:(0,h.F)(L.eC)}),{refetch:o}=(0,E.l$)(t("email"),e=>n(e),e=>{e?(0,T.Am)((0,s.jsx)(f.Z,{text:e})):(0,T.Am)((0,s.jsx)(f.Z,{text:(0,s.jsx)(p.Z,{i18nKey:"COMMON:ERROR_LOGIN_WITH_EMAIL"})}))});return(0,s.jsxs)(d.Gq,{onSubmit:r(()=>{o()}),children:[(0,s.jsx)(_.Qr,{name:"email",control:i,defaultValue:"",render:e=>{var n;let{field:t}=e;return(0,s.jsx)(M.Z,{children:(0,s.jsx)(m._l,{...t,customlabel:"AUTH:EMAIL",variant:"outlined",autoComplete:"email",error:!!l.email,helperText:null===(n=l.email)||void 0===n?void 0:n.message,placeholder:"[email protected]"})})}}),(0,s.jsx)(m.MG,{size:"medium",type:"submit",sx:{marginTop:"24px",width:"100%"},children:(0,s.jsx)(p.Z,{i18nKey:"COMMON:SUBMIT"})})]})},Z=t(3247),C=t(8016),R=t(36065),g=t(54001),y=t(5762),D=t(36809);function P(){let e=(0,Z._)(["\n .MuiOtpInput-TextField {\n width: 58px;\n height: 52px;\n border-color: ",";\n }\n"]);return P=function(){return e},e}let S=(0,c.ZP)(C.P)(P(),e=>{let{theme:n}=e;return n.palette.primary.main});(i=r||(r={})).EMAIL="email",i.PHONE="phone";var V=e=>{let{email:n,phoneNumber:t,maskedPhoneNumber:i}=e,[r,l]=(0,A.useState)(!1),[o,a]=(0,A.useState)(!1),[x,u]=(0,A.useState)(!0),c=(0,y.useRouter)(),{control:O,getValues:I,watch:M,handleSubmit:j,setValue:Z}=(0,_.cI)({resolver:(0,h.F)(L.Ux),values:{messageDestination:""}}),{getValues:C,handleSubmit:P,watch:V,setValue:b,formState:{errors:U}}=(0,_.cI)({resolver:(0,h.F)(L.VB)}),w=M("messageDestination"),{mutate:v}=(0,E.pi)(()=>{(0,T.Am)((0,s.jsx)(f.Z,{text:(0,s.jsx)(p.Z,{i18nKey:"CRI:OTP_SUCCESS"})})),l(!0),a(!0)},e=>{a(!0),u(!0),e?(0,T.Am)((0,s.jsx)(f.Z,{text:e})):(0,T.Am)((0,s.jsx)(f.Z,{text:(0,s.jsx)(p.Z,{i18nKey:"COMMON:ERROR_API_GENERAL_REQUEST_FAILED"})}))}),{mutate:G}=(0,E.Ge)(()=>{c.push(D.default.CRI.ROUTE),a(!1)},e=>{e?(0,T.Am)((0,s.jsx)(f.Z,{text:e}),{closeButton:!1}):(0,T.Am)((0,s.jsx)(f.Z,{text:(0,s.jsx)(p.Z,{i18nKey:"COMMON:OTP_ERROR_TEXT"})}),{closeButton:!1})}),H=()=>{let{messageDestination:e}=I();v({email:n,phoneNumber:t,IsEmailSelected:"email"===w})};return(0,A.useEffect)(()=>{void 0!==V("otp")&&6===V("otp").length&&o?u(!1):u(!0)},[V("otp")]),(0,A.useEffect)(()=>{null===t&&Z("messageDestination","email")},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d.Gq,{onSubmit:j(H),children:[(0,s.jsx)(_.Qr,{name:"messageDestination",control:O,defaultValue:"",render:e=>{let{field:r}=e;return(0,s.jsxs)(R.Z,{...r,sx:{alignSelf:"flex-start"},children:[(0,s.jsxs)(g.ZP,{display:"flex",alignItems:"center",children:[(0,s.jsx)(m.Pj,{value:"email"}),(0,s.jsx)(N.Z,{fontSize:"15px",children:(0,s.jsx)(p.Z,{i18nKey:"CRI:CONTACT_OPTION_EMAIL",values:{email:n},components:{grayedOut:(0,s.jsx)("span",{style:{color:"gray"}})}})})]}),null!==t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.ZP,{display:"flex",alignItems:"center",children:[(0,s.jsx)(m.Pj,{value:"phone"}),(0,s.jsx)(N.Z,{fontSize:"15px",children:(0,s.jsx)(p.Z,{i18nKey:"CRI:CONTACT_OPTION_PHONE",values:{phone:i},components:{grayedOut:(0,s.jsx)("span",{style:{color:"gray"}})}})})]}),(0,s.jsx)(g.ZP,{children:(0,s.jsx)(N.Z,{marginBottom:3,fontSize:"13px",children:(0,s.jsx)(p.Z,{i18nKey:"CRI:SELECT_MOBILE_ONLY"})})})]})]})}}),(0,s.jsx)(N.Z,{fontSize:"13px",children:(0,s.jsx)(p.Z,{i18nKey:"CRI:OTP_INFORMATION"})}),(0,s.jsx)(m.MG,{size:"medium",sx:{width:"100%",marginTop:"20px"},type:"submit",disabled:""===w||o,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:SEND_OTP"})})]}),(0,s.jsxs)(d.Gq,{onSubmit:P(()=>{let{otp:e}=C();G({email:n,otp:e})}),children:[(0,s.jsx)(S,{length:6,value:V("otp"),onChange:e=>b("otp",e),marginTop:3,gap:"5px"}),!!U.otp&&(0,s.jsx)(N.Z,{alignSelf:"flex-start",fontSize:13,marginTop:1,color:e=>{let{palette:n}=e;return n.error.main},children:"you need to provide OTP"}),r&&(0,s.jsx)(m.MG,{size:"small",styletype:"Tertiary",sx:{marginTop:"20px",alignSelf:"flex-start",paddingLeft:"0",minWidth:"130px",color:"#0082C6"},onClick:()=>{H()},disabled:!r,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:OTP_RETRY"})}),(0,s.jsx)(m.MG,{size:"medium",sx:{width:"100%",marginTop:"20px"},type:"submit",disabled:!!x,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:VERIFY_AND_LOGIN"})})]})]})};let b=(0,c.ZP)(O.Z)(e=>{let{theme:n}=e;return{color:"primary.extraLight",textAlign:"center",marginBottom:"40px",[n.breakpoints.up("md")]:{dis
1play:"none"}}});var U=()=>{let[e,n]=(0,A.useState)("email"),[t,i]=(0,A.useState)(""),[r,o]=(0,A.useState)(""),[a,c]=(0,A.useState)("");return(0,s.jsx)(l.kv,{children:(0,s.jsxs)(I.Z,{children:[(0,s.jsx)(u.K,{children:(0,s.jsxs)(d.H6,{children:[(0,s.jsx)(d.Jx,{children:(0,s.jsx)(p.Z,{i18nKey:"AUTH:LOGIN_TITLE"})}),"email"===e?(0,s.jsx)(N.Z,{marginBottom:3,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:ENTER_REGISTERED_EMAIL"})}):(0,s.jsx)(s.Fragment,{children:null===r?(0,s.jsx)(N.Z,{marginBottom:3,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:LOGIN_TO_LANDLORD_PORTAL"})}):(0,s.jsx)(N.Z,{marginBottom:3,children:(0,s.jsx)(p.Z,{i18nKey:"CRI:EMAIL_TEXT_OPTION"})})}),"email"===e?(0,s.jsx)(j,{onNext:e=>{let{email:t,phoneNumber:r,phoneNumberMasked:s}=e;n("otp"),i(t),o(r),c(s)}}):(0,s.jsx)(V,{email:t,phoneNumber:r,maskedPhoneNumber:a})]})}),(0,s.jsxs)(b,{children:[(0,s.jsx)(p.Z,{i18nKey:"AUTH:FIRST_TIME"}),(0,s.jsx)(O.Z,{textAlign:"center",children:(0,s.jsx)(m.MG,{size:"small",sx:{marginTop:"1rem"},endIcon:(0,s.jsx)(x.Z,{}),children:(0,s.jsx)(p.Z,{i18nKey:"COMMON:ROUTE_HELP_GET_STARTED_LABEL"})})})]})]})})},w=t(5724),v=!0,G=()=>{let e=(0,y.useRouter)(),{t:n}=(0,w.Z)(),t="true"===e.query.logout;return(0,A.useEffect)(()=>{},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a(),{children:(0,s.jsx)("title",{children:n("COMMON:ROUTE_USER_SIGN_IN_LABEL")})}),(0,s.jsx)(l.T5,{children:(0,s.jsx)(U,{})})]})}},27505:function(e,n,t){"use strict";var i,r;t.d(n,{h:function(){return i}}),(r=i||(i={})).LANDLORD="landlord",r.TENANT="tenant",r.APPLICANT="applicant"},26662:function(e,n,t){"use strict";t.d(n,{L:function(){return i}});let i=(e,n)=>JSON.stringify({translationKey:e,...n})}},function(e){e.O(0,[6637,8753,9912,7017,7798,608,2888,9774,179],function(){return e(e.s=50785)}),_N_E=e.O()}]);
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.