1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="71e39345-d711-4752-bd46-766a6794daf6",e._sentryDebugIdIdentifier="sentry-dbid-71e39345-d711-4752-bd46-766a6794daf6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3579],{21363:function(e,t,r){var n=r(44194),a=r(7862),o=r.n(a);let UilEyeSlash=({color:e="currentColor",size:t=24,...r})=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:e,...r},n.createElement("path",{d:"M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"}));UilEyeSlash.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},t.Z=UilEyeSlash},63622:function(e,t,r){var n=r(44194),a=r(7862),o=r.n(a);let UilEye=({color:e="currentColor",size:t=24,...r})=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:e,...r},n.createElement("path",{d:"M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"}));UilEye.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},t.Z=UilEye},13579:function(e,t,r){r.r(t),r.d(t,{OtpForgetPassword:function(){return N}});var n=r(30179),a=r(76880),o=r.n(a),s=r(23928),i=r(67546),l=r(38033),d=r(92018),c=r(37403),p=r(89771),u=r(1597),w=r(44194),f=r(47886),h=r(52153),m=r(47775),g=r(63622),Z=r(21363),b=r(99717),x=r(56602),v=r(25316),y=r(47627),P=r(39036),k=r(6255),C=r(54788),A=r(60237),E=r(20724),S=r(27719),I=r(11461),_=r(62940),D=(0,p.Pi)(function(e){var t=e.token,r=(0,I.$G)().t,a=(0,f.V)(),s=(0,u.useRouter)(),l=(0,(0,i.Ek)().authAPI)("/reset-password/submit-new-password").method("post").create(),p=(0,w.useState)(""),D=p[0],N=p[1],O=(0,w.useState)(""),T=O[0],F=O[1],U=(0,w.useState)(!1),M=U[0],B=U[1],R=(0,w.useState)(!1),W=R[0],z=R[1],L=(0,w.useState)(!1),X=L[0],q=L[1],j=(0,w.useState)(null),G=j[0],Q=j[1],V=(0,d.D1)((0,n.Z)(o().mark(function _callee(){var e,r,n;return o().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Q(null),!(e=D!==T?{newPassword:"not-match",confirmNewPassword:"not-match"}:null)){o.next=6;break}return Q(e),o.abrupt("return");case 6:return o.prev=6,o.next=9,l({token:t,newPassword:D,confirmNewPassword:T});case 9:o.sent.data&&B(!0),o.next=19;break;case 14:o.prev=14,o.t0=o.catch(6),r={newPassword:"",confirmNewPassword:""},"type.googleapis.com/foundation.error.BadRequestError"===(n=(0,h.errToAppErr)(o.t0))["@type"]&&n.detail===h.badRequestMsgs.pwdPolicy?(r.newPassword="format",r.confirmNewPassword="format",Q(r)):a(o.t0);case 19:case"end":return o.stop()}},_callee,null,[[6,14]])}))),$=V.fn,H=V.loading;return(0,_.tZ)(x.Z,{sx:{width:{desktop:"392px",tablet:"350px",mobile:"342px"},textAlign:"center"},children:(0,_.tZ)(v.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",mt:{desktop:"95px",tablet:"76px",mobile:5}},children:M?(0,_.BX)(y.ZP,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"center",sx:{textAlign:"center"},children:[(0,_.tZ)(y.ZP,{children:(0,_.tZ)(E.Z,{component:m.uF})}),(0,_.tZ)(y.ZP,{children:(0,_.tZ)(P.Z,{variant:"h3",fontWeight:700,sx:{my:2},children:r("change-password.complete-new-password")})}),(0,_.tZ)(y.ZP,{children:(0,_.tZ)(P.Z,{variant:"body",children:r("change-password.complete-new-password-description")})}),(0,_.tZ)(S.Z,{fullWidth:!0,variant:"contained",size:"medium",color:"primary",sx:{mt:5},onClick:function(){s.push((0,c.Qv)())},children:r("change-password.login")})]}):(0,_.BX)(y.ZP,{children:[(0,_.tZ)(P.Z,{variant:"h3",fontWeight:700,children:r("change-password.set-new-password")}),(0,_.BX)(v.Z,{sx:{textAlign:"center"},children:[(0,_.tZ)(P.Z,{sx:{mt:{desktop:5,tablet:3,mobile:3}
1,mb:{desktop:3,tablet:2,mobile:2}},children:r("change-password.set-new-password-condition")}),(0,_.tZ)(k.Z,{error:!!(null!=G&&G.newPassword),helperText:(null==G?void 0:G.newPassword)&&r("change-password.error.new-password.".concat(G.newPassword)),fullWidth:!0,placeholder:r("change-password.set-new-password"),value:D,onChange:function(e){return N(e.target.value)},type:W?"text":"password",InputProps:{endAdornment:(0,_.tZ)(C.Z,{position:"end",children:(0,_.tZ)(A.Z,{"aria-label":"toggle password visibility",onClick:function(){z(!W)},edge:"end",children:W?(0,_.tZ)(g.Z,{}):(0,_.tZ)(Z.Z,{})})})}}),(0,_.tZ)(k.Z,{error:!!(null!=G&&G.confirmNewPassword),helperText:(null==G?void 0:G.confirmNewPassword)&&r("change-password.error.confirm-new-password.".concat(G.confirmNewPassword)),fullWidth:!0,placeholder:r("change-password.confirm-new-password"),value:T,onChange:function(e){return F(e.target.value)},type:X?"text":"password",InputProps:{endAdornment:(0,_.tZ)(C.Z,{position:"end",children:(0,_.tZ)(A.Z,{"aria-label":"toggle password visibility",onClick:function(){q(!X)},edge:"end",children:X?(0,_.tZ)(g.Z,{}):(0,_.tZ)(Z.Z,{})})})},sx:{mt:{desktop:3,tablet:2,mobile:2}}}),(0,_.tZ)(b.Z,{onClick:$,disabled:!D||!T,fullWidth:!0,loading:H,variant:"contained",color:"primary",size:"medium",type:"submit",sx:{mt:{desktop:3,tablet:2,mobile:2}},children:r("change-password.submit")})]})]})})})}),N=(0,p.Pi)(function(){var e=(0,u.useRouter)(),t=(0,i.Ek)().authAPI,r=(0,l.y)(),a=r.forgetPasswordCredential,p=r.setForgetPasswordCredential,f=r.clearForgetPasswordCredential,h=(0,d.D1)(t("/reset-password").method("post").create()),m=(0,d.D1)(t("/reset-password/submit-otp").method("post").create()),g=a.userId,Z=a.email,b=a.ref,x=a.otpExp,v=(0,w.useState)(""),y=v[0],P=v[1],k=(0,w.useState)(!1),C=k[0],A=k[1],E=(0,w.useState)(null),S=E[0],I=E[1];return S?(0,_.tZ)(D,{token:S}):"string"!=typeof g||"string"!=typeof Z||"string"!=typeof b||"number"!=typeof x?(e.replace((0,c.kr)()),null):(0,_.tZ)(s.U,{otp:y,onChange:function(e){P(e),A(!1)},sentEmail:Z,OtpRef:b,OtpExpAt:new Date(x),onSubmitOtp:(0,n.Z)(o().mark(function _callee(){var e;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m.fn({userId:g,otp:y,refNo:b});case 3:(e=t.sent.data).token&&(I(e.token),f()),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),A(!0);case 11:case"end":return t.stop()}},_callee,null,[[0,8]])})),onResendOtp:(0,n.Z)(o().mark(function _callee2(){var t;return o().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.fn({emailOrUsername:Z});case 2:p({userId:(t=r.sent.data).userId,email:t.email,ref:t.refNo,otpExp:t.expiresAt?new Date(t.expiresAt).getTime():new Date().getTime()}),e.replace("/email-otp/forget-password");case 6:case"end":return r.stop()}},_callee2)})),error:C,loading:h.loading||m.loading})})},38033:function(e,t,r){r.d(t,{y:function(){return useForgetPassword}});var n=(0,r(84315).LO)({}),clearState=function(){for(var e in n)n[e]=void 0},useForgetPassword=function(){return{forgetPasswordCredential:n,setForgetPasswordCredential:function(e){if(clearState(),e)for(var t in e)n[t]=e[t]},clearForgetPasswordCredential:function(){clearState()}}}}}]);
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.