1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8625],{56833:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return s(24951)}])},24951:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return O}});var n=s(47568),o=s(51438),a=s(52951),t=s(14924),i=s(28668),c=s(25171),u=s(97582),d=s(85893),l=s(67294),f=s(45697),m=s.n(f),g=s(14416),p=s(21246),h=s(78604),w=function(e){return e.forgot},x=function(e){return w(e).forgotState},v=function(e){return w(e).forgotMessage},N=s(43750),b=s(7044),Z=s(37148),j=s(40803),P=s(86413),C=s(94184),R=s.n(C),_=s(15538),E=s(82669),q=s(67954),y=s(609),S=s(70474),F=s(97975),V=function(e){var r=e.password,s=e.passwordError,n=e.passwordClass,o=e.handleUserInput,a=e.confPass,t=e.confPassError,i=e.confPassClass,c=e.handleSubmit,u=e.formValid;return(0,d.jsx)(_.Z,{className:"login-form",onSubmit:function(e){return c(e)},children:(0,d.jsxs)("div",{className:"form-fields-wrap mb-30 account",children:[(0,d.jsx)("h2",{className:"py15",children:"Please enter new password"}),(0,d.jsxs)("div",{className:"account-box",children:[(0,d.jsxs)(E.Z,{className:R()("account-box-row forgot-row",n),children:[(0,d.jsx)(q.Z,{for:"password",className:"text-uppercase label-prompt",children:"Password:"}),(0,d.jsx)(y.Z,{type:"password",name:"password",className:"form-control",id:"password",placeholder:"*********",value:r,onChange:function(e){return o("password",e.target.value)}}),(0,d.jsx)(S.Z,{className:"error",children:s})]}),(0,d.jsxs)(E.Z,{className:R()("account-box-row forgot-row",i),children:[(0,d.jsx)(q.Z,{for:"conPassword",className:"text-uppercase label-prompt",children:"Confirm Password:"}),(0,d.jsx)(y.Z,{type:"password",name:"confPass",className:"form-control",id:"conPassword",placeholder:"*********",value:a,onChange:function(e){return o("confPass",e.target.value)}}),(0,d.jsx)(S.Z,{className:"error",children:t})]})]}),(0,d.jsx)("div",{className:"text-center mb25",children:(0,d.jsx)(F.Z,{className:"btn btn-main text-uppercase",disabled:!u,children:"Change Password"})})]})})};V.propTypes={password:m().string.isRequired,passwordClass:m().string.isRequired,handleUserInput:m().func.isRequired,confPass:m().string.isRequired,confPassClass:m().string.isRequired,handleSubmit:m().func.isRequired,formValid:m().bool.isRequired,passwordError:m().string.isRequired,confPassError:m().string.isRequired};var I=V,T=(0,P.Z)(I,N.Z),M=s(91824),k=function(e){var r=e.verifyFunc,s=e.message,n=e.forgotState,o=e.changePassword,a=e.toggleModal,t=(0,l.useContext)(g.ReactReduxContext).store;(0,l.useEffect)((function(){(0,M.Z)(t),r()}),[]);var i=null;return n===N.V.LOADING?i=(0,d.jsx)(j.Z,{}):n===N.V.VERIFY_FAIL||n===N.V.CHANGE_FAIL?i=(0,d.jsx)(Z.Z,{message:s}):n===N.V.CHANGE_SUCCESS?i=(0,d.jsx)(b.Z,{message:s,toggleModal:a}):n===N.V.VERIFY_SUCCESS&&(i=(0,d.jsx)(T,{onSubmit:o,hasFormError:!1,onClearFormError:function(){}})),(0,d.jsx)("main",{className:"main main-inner",children:(0,d.jsx)("div",{className:"container",children:(0,d.jsx)("div",{className:"filter-box typical-box rounded-box px20 mb30 mb-mob-20 border",children:i})})})};k.propTypes={verifyFunc:m().func.isRequired,changePassword:m().func.isRequired,toggleModal:m().func.isRequired,message:m().string.isRequired,forgotState:m().string.isRequired};var A=k,L=(0,g.connect)((function(e){return{message:v(e),forgotState:x(e)}}),{verifyFunc:h.J2,changePassword:h.T_,toggleModal:p.nT.onLoginToggle},(function(e,r,s){var n=e.message,o=e.forgotState,a=r.verifyFunc,t=r.toggleModal,i=r.changePassword,c=s.code,u=s.email;return{verifyFunc:function(){return a({forgotVerifyCode:c,email:u})},changePassword:function(e){var r=e.password;return i({password:r,email:u,code:c})},toggleModal:t,message:n,forgotState:o}}))(A),U=s(36591),G=function(e){(0,i.Z)(s,e);var r=(0,c.Z)(s);function s(){return(0,o.Z)(this,s),r.apply(this,arguments)}return(0,a.Z)(s,[{key:"render",value:function(){var e=this.props,r=e.code,s=e.email;return(0,d.jsx)(L,{code:r,email:s})}}],[{key:"getInitialProps",value:function(e){var r=e.query;return(0,n.Z)((function(){var e,s;return(0,u.__generator)(this,(function(n){return e=r.code,s=r.email,[2,{code:e,email:s}]}))}))()}}]),s}(l.Component);(0,t.Z)(G,"propTypes",{code:m().string.isRequired,email:m().string.isRequired});var O=(0,U.Z)(G)}},function(e){e.O(0,[5102,1542,9774,2888,179],(function(){return r=56833,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.