PageSourceSearch

https://cdn.itrsgroup.com/js/ForgotPassword.9e696881.commons.js

js itrsgroup.com collected 2026-09-25 14:40:31 UTC 4,609 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb_statics_common=self.webpackChunkweb_statics_common||[]).push([[9],{2755:function(s,e,t){t.r(e);var o=t(6540),a=t(5179),r=t(4848);class n extends o.Component{constructor(s){super(s),this.state={email:""}}onChange=s=>{this.setState({[s.target.name]:s.target.value}),this.props.cleanInlineMsg()};allFields=s=>""==this.state.email;onSubmit=s=>{s.preventDefault();const{email:e}=this.state;this.props.createRequest("forgotPassword",{email:e})};getFocus=()=>{this.props.isShowing&&"forgotPassword"!=!this.props.modalComponent&&document.getElementById("forgotPasswordemail")&&document.getElementById("forgotPasswordemail").focus()};componentDidMount=()=>{this.getFocus(),this.props.cleanInlineMsg()};render(){return(0,r.jsxs)("fieldset",{className:"global-form-fieldset",children:[(0,r.jsx)("legend",{className:"global-form-title",children:"Forgot password?"}),(0,r.jsx)("p",{className:"global-form-center global-form-subtitle",children:"Enter the email address you used when you signed up and we'll send you instructions to reset your password."}),(0,r.jsx)("br",{}),(0,r.jsxs)("form",{action:"",method:"post",onSubmit:this.onSubmit,className:"global-form header-forgotpasswordform "+(this.props.isLoading?"global-form-loading":""),children:[(0,r.jsx)(a.A,{context:"forgotPassword",label:"Registered email address",name:"email",onChange:this.onChange,value:this.state.email}),this.props.inlineMsg?(0,r.jsxs)("div",{className:"global-form-error",children:[(0,r.jsx)("svg",{className:"cdn-icon-error",children:(0,r.jsx)("use",{xlinkHref:"#cdn-icon-error"})}),(0,r.jsx)("p",{children:this.props.inlineMsg})]}):null,(0,r.jsxs)("div",{className:"global-form-center",children:[(0,r.jsx)("button",{type:"submit",className:"global-button global-button-rev",disabled:this.props.isLoading||this.allFields(),children:"Send"}),(0,r.jsx)("br",{})]})]}),(0,r.jsxs)("div",{className:"global-form-actions global-form-center",children:[(0,r.jsxs)("p",{children:["Still having trouble? ",(0,r.jsx)("a",{href:"#",onFocus:this.props.mailSupport,target:"_blank",rel:"noreferrer",children:"Email support"})," or ",(0,r.jsx)("a",{href:"https://support.itrsgroup.com",rel:"noopener noreferrer",target:"_blank",children:"chat to supp
1ort"}),"."]}),(0,r.jsxs)("p",{children:["Already have an account? ",(0,r.jsx)("button",{className:"no-button",onClick:()=>this.props.openModalHandler({action:"login"}),children:"Log in"}),"."]})]})]})}}e.default=n},5179:function(s,e,t){t.d(e,{A:function(){return l}});var o=t(6540),a=t(4848);var r=s=>{if("password"!==s.validationElement||!s.validationInfo)return(0,a.jsx)(a.Fragment,{});const e=s.validationInfo;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"global-form-row global-modal-title-error",children:["The password must have at least:",(0,a.jsxs)("ul",{children:[!e.hasMinLength&&(0,a.jsx)("li",{children:"At least 8 characters"}),!e.hasUppercase&&(0,a.jsx)("li",{children:"At least one uppercase letter"}),!e.hasLowercase&&(0,a.jsx)("li",{children:"At least one lowercase letter"}),!e.hasDigit&&(0,a.jsx)("li",{children:"At least one digit"}),!e.hasSpecialChar&&(0,a.jsx)("li",{children:"At least one special character"})]})]})})};class n extends o.Component{constructor(s){super(s),this.state={passInputType:"password",passTypeIcon:"cdn-icon-hide-password"}}togglePassType=s=>{this.setState((s=>({passInputType:"password"===s.passInputType?"text":"password",passTypeIcon:"password"===s.passInputType?"cdn-icon-show-password":"cdn-icon-hide-password"})))};render(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{htmlFor:`${this.props.context}${this.props.name}`,className:"global-label",children:[this.props.label,this.props.optional?" (optional)":""]}),(0,a.jsxs)("div",{className:"global-input-container",children:["password"===this.props.inputType&&(0,a.jsx)("label",{htmlFor:`${this.props.context}${this.props.name}`,className:"global-pass-toggler",onClick:this.togglePassType,children:(0,a.jsx)("svg",{className:this.state.passTypeIcon,children:(0,a.jsx)("use",{xlinkHref:`#${this.state.passTypeIcon}`})})}),(0,a.jsx)("input",{type:"password"===this.props.inputType?this.state.passInputType:this.props.inputType||"text",name:this.props.name,value:this.props.value||"",id:`${this.props.context}${this.props.name}`,onChange:this.props.onChange,tabIndex:this.props.tabIndex,disabled:this.props.disabled,placeholder:this.props.placeholder}),null!=this.props.validationInfo&&!this.props.validationInfo.isValid&&(0,a.jsx)(r,{validationElement:this.props.inputType,validationInfo:this.props.validationInfo})]})]})}}var l=n}}]);

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.