1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0feeea26-eba2-5771-af57-ff3b6ff1fe7b")}catch(e){}}(); 3(this.webpackChunktaxfix_webapp=this.webpackChunktaxfix_webapp||[]).push([[246],{395498(e,t,i){i.r(t),i.d(t,{default:()=>y});var s=i(699156),n=i(607080),a=i(817107),r=i(509404),o=i(802664),l=i(463025),d=i(487746),h=i(976840),p=i(759627),c=i(111681);const x=i.p+"static/media/icon-arrow-web.7144834474d10aad11f5.png";var g=i(684462),m=i(105810),u=i(355802),f=i(271314),j=i(506427);function L(e){let{id:t,values:i,position:n="absolute",textAlign:a="left"}=e;return(0,s.jsx)(g.A,{positionType:"relative",width:"100%",textAlign:a,"data-test":"errorMessage",children:(0,s.jsx)(g.A,{positionType:n,children:(0,s.jsx)(u.yn,{id:t,values:i})})})}const w=function(e){return(0,s.jsx)(A,{children:(0,s.jsxs)(g.A,{display:"flex",width:"100%",children:[(0,s.jsxs)(g.A,{display:"flex",width:"20%",padding:"30px",children:[(0,s.jsx)(g.A,{children:(0,s.jsx)("img",{src:x,alt:"",width:"10px",height:"10px"})}),(0,s.jsx)(g.A,{children:(0,s.jsx)(f.Wb,{onClick:e.onRedirectLogin,id:"account.request-password-reset.back"})})]}),(0,s.jsxs)(g.A,{display:"flex",direction:"column",alignItems:"start",marginTop:"100px",marginBottom:"100px",width:"100%",maxWidth:"500px",children:[(0,s.jsx)(g.A,{display:"flex",paddingBottom:"30px",children:(0,s.jsx)(u.Y9,{id:"account.request-password-reset.title"})}),(0,s.jsx)(g.A,{display:"flex",children:(0,s.jsx)(u.iK,{id:"account.request-password-reset.lead"})}),(0,s.jsxs)("form",{style:{width:"100%"},children:[e.error&&(0,s.jsx)(g.A,{display:"flex",marginTop:"20px",marginBottom:"20px",children:(0,s.jsx)(L,{id:"account.request-password-reset.error"})}),(0,s.jsxs)(g.A,{textAlign:"left",paddingTop:"30px",display:"flex",direction:"column",children:[(0,s.jsx)(u.h6,{id:"account.email.login-label"}),(0,s.jsx)(m.$,{onBlur:e.onEmailValidate,onChange:e.onChange,ref:t=>{e.onSetRefs({ref:t,next:"p1",name:"email"})},value:e.email,type:"email",name:"email",onEnterPress:()=>{e.isValidForm&&!e.resetLinkSentFlag&&e.onResetPin()}})]})]}),!e.resetLinkSentFlag&&(0,s.jsx)(g.A,{display:"flex",direction:"column",paddingTop:"30px","data-cy":"resetButton",children:(0,s.jsx)(f.c1,{isDisabled:!e.isValidForm,onAnswer:e.onResetPin,id:"account.request-password-reset.confirm",showEnterText:!1,small:!0})}),e.resetLinkSentFlag&&(0,s.jsx)(g.A,{paddingTop:"30px",display:"flex",children:(0,s.jsx)(u.kY,{id:"account.request-password-reset.success",dataTest:"resetPinActionSuccess"})})]}),e.isLoading&&(0,s.jsx)(j.A,{wholeScreen:!0})]})})},A=c.Ay.div.withConfig({componentId:"sc-1x47kxz-0"})(["overflow:auto;height:100%;width:100%;display:block;align-items:center;"]);class S extends n.Component{constructor(){super(...arguments),this.state={email:"",currentInFocus:"email",isValidEmail:!0,isValidForm:!1,isLoading:!1},this.ref={},this.redirectTaxYear=()=>{(0,d.oo)((0,p.QP)(),{},this.props.history)},this.handleRedirectLogin=()=>{(0,d.oo)(p.f0.LOGIN,{},this.props.history)},this.handleSetRef=e=>{let{ref:t,name:i,next:s}=e;this.ref[i]={ref:t,next:s}},this.handleChange=e=>{const{value:t,name:i}=e.target;this.setState({[i]:t},()=>{const{email:e}=this.state,t=Boolean(e&&(0,h.B)(e));this.setState({isValidForm:t})})},this.handleEmailValidate=()=>{this.setState(e=>{let{email:t}=e;return{isValidEmail:(0,h.B)(t)}})},this.handleLoading=e=>{e&&this.setState({isLoading:!1})},this.stopLoading=()=>{this.setState({isLoading:!1})},this.handleConfirm=()=>{const e=this.state.email.toLowerCase();this.setState({isLoading:!0},()=>{this.props.handleResetPin({email:e})})}}componentDidMount(){this.props.handleClearResetLinkSentFlag(),this.props.handleClearError(),this.props.isAuthenticated&&this.redirectTaxYear()}componentDidUpdate(){this.props.errorUser&&this.state.isLoading?this.handleLoading(this.props.errorUser):this.props.isAuthenticated&&this.redirectTaxYear(),this.state.isLoading&&this.props.resetLinkSentFlag&&this.stopLoading()}render(){return(0,s.jsx)(w,Object.assign({},this.state,{onEmailValidate:this.handleEmailValidate,onChange:this.handleChange,onRedirectLogin:this.handleRedirectLogin,onSetRefs:this.handleSetRef,onResetPin:this.handleConfirm,error:this.props.errorUser,resetLinkSentFlag:this.props.resetLinkSentFlag}))}}const y=(0,a.Ng)(e=>({errorUser:(0,o.WH)(e),resetLinkSentFlag:(0,o.Sn)(e)}),e=>({handleResetPin:(0,r.zH)(o.hz,e),handleClearResetLinkSentFlag:(0,r.zH)(o.fV,e),handleClearError:(0,r.zH)(o.DX,e)}))((0,l.A)(S))}}]); 4//# sourceMappingURL=resetPinContainer.0aca56cf.chunk.js.map
5//# debugId=0feeea26-eba2-5771-af57-ff3b6ff1fe7b
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.