1"use strict";(self.webpackChunkveriipro_react_app=self.webpackChunkveriipro_react_app||[]).push([[929],{2146:(s,e,a)=>{a.d(e,{Z:()=>o});var t=a(72791),n=a(80184);const r=t.forwardRef(((s,e)=>{let{children:a,variant:t="primary",size:r="md",disabled:o=!1,onClick:l,type:i="button",className:d="",isLoading:c=!1,...m}=s;const h={primary:"bg-blue text-white",secondary:"btn-cancel-grey",grey:"btn-grey",success:"btn-success",successOutline:"btn-outline-success",danger:"btn-danger",warning:"btn-warning",info:"btn-info",light:"btn-light",dark:"btn-dark",outline:"btn-outline-primary",outlineBlue:"btn-outline-blue",lightblue:"btn-stagnant text-blue",bluehoverLightblue:"btn-blue-stagnant"},w=["btn fw-500",h[t]||h.primary,{sm:"btn-sm",md:"",lg:"btn-lg"}[r],d].filter(Boolean).join(" ");return(0,n.jsxs)("button",{type:i,className:w,disabled:o,onClick:l,ref:e,...m,children:[a,c&&(0,n.jsx)("span",{className:"spinner-border spinner-border-sm ms-1",role:"status"})]})}));r.displayName="Button";const o=r},4929:(s,e,a)=>{a.r(e),a.d(e,{default:()=>u});var t=a(72791),n=a(63592),r=a(78687),o=a(63545),l=a(55705),i=a(8007),d=a(78155),c=a(20602),m=a(13524),h=a(2146),w=a(80184);class p extends t.Component{constructor(){super(...arguments),this.state={showPassword:!1,showConfirmPassword:!1}}render(){return(0,w.jsx)("section",{className:"employer-login py-5 bg-liner",children:(0,w.jsx)("div",{className:"container",children:(0,w.jsxs)("div",{className:"row align-items-center justify-content-center",children:[(0,w.jsx)("div",{className:"col-xl-5 col-lg-6 col-md-8 my-3",children:(0,w.jsx)("img",{src:n.be,alt:"Empoyer Login",className:"img-fluid employer-login-img d-lg-block d-none w-100"})}),(0,w.jsx)("div",{className:"col-xl-4 col-lg-6 col-md-8 my-3",children:(0,w.jsxs)("div",{className:"login-form rounded-3 shadow",children:[(0,w.jsx)("h5",{className:"fw-600 text-capitalize mb-3",children:"Reset Password"}),(0,w.jsx)(l.J9,{initialValues:{newPassword:"",confirmPassword:""},validationSchema:i.Ry({newPassword:i.Z_().required("Please enter new password").matches(m.aO.regex,m.aO.message("New")),confirmPassword:i.Z_().matches(m.aO.regex,m.aO.message("Confirm")).required("Please confirm password").test("passwords-match","Passwords do not match",(function(s){return this.parent.newPassword===s}))}),onSubmit:async s=>{const{forgotPasswordReset:e,location:a,navigate:t}=this.props,n=a.state;await e({user_id:n.user_id,email:n.email,otp:n.otp,newpassword:s.newPassword})&&t(d.Z.login)},children:s=>{let{handleChange:e,handleBlur:a,handleSubmit:t,values:n,errors:r}=s;return(0,w.jsxs)("div",{className:"row",children:[(0,w.jsx)("div",{className:"col-lg-12 mb-3",children:(0,w.jsxs)("div",{className:"",children:[(0,w.jsxs)("label",{htmlFor:"user-password",className:"form-label text-capitalize fw-600 fs-14",children:["new Password",(0,w.jsx)("span",{className:"text-danger",children:"*"})]}),(0,w.jsxs)("div",{className:"position-relative",children:[(0,w.jsx)("input",{type:this.state.showPassword?"text":"password",name:"newPassword",className:"form-control radius-2 shadow-none pe-34",placeholder:"********",maxLength:m.aO.maxLength,onChange:e,onBlur:a,value:n.newPassword}),(0,w.jsx)("div",{className:"position-absolute top-50 end-0 translate-middle-y me-2",children:(0,w.jsx)("button",{type:"button",className:"btn p-0 shadow-none border-0",onClick:()=>this.setState({...this.state,showPassword:!this.state.showPassword}),children:(0,w.jsx)("i",{className:"d-flex text-blue fa "+(this.state.showPassword?"fa-eye":"fa-eye-slash")})})})]}),(0,w.jsx)("span",{type:"invalid",className:"invalid-feedback d-block",children:r.newPassword?r.newPassword:""})]})}),(0,w.jsx)("div",{className:"col-lg-12 mb-3",children:(0,w.jsxs)("div",{className:"",children:[(0,w.jsxs)("label",{htmlFor:"user-password",className:"form-label text-capitalize fw-600 fs-14",children:["Confirm Password",(0,w.jsx)("span",{className:"text-danger",children:"*"})]}),(0,w.jsxs)("div",{className:"position-relative",children:[(0,w.jsx)("input",{type:this.state.showConfirmPassword?"text":"password",name:"confirmPassword",className:"form-control radius-2 shadow-none pe-34",placeholder:"********",maxLength:m.aO.maxLength,onChange:e,onBlur:a,value:n.confirmPassword,onPaste:s=>s.preventDefault()}),(0,w.jsx)("div",{className:"position-absolute top-50 end-0 translate-middle-y me-2",children:(0,w.jsx)("button",{type:"button",className:"btn p-0 shadow-none border-0",onClick:()=>this.setState({...this.state,showConfirmPassword:!this.state.showConfirmPassword}),children:(0,w.jsx)("i",{className:"d-flex text-blue fa "+(this.state.showConfirmPassword?"fa-eye":"fa-eye-slash")})})})]}),(0,w.jsx)("span",{type:"invalid",className:"invalid-feedback d-block",children:r.confirmPassword?r.confirmPassword:""})]})}),(0,w.jsx)("div",{className:"col-lg-12 mb-3",children:(0,w.jsx)(h.Z,{type:"submit",className:"w-100 rounded-pill py-2",onClick:t,children:"Submit"})})]})}})]})})]})})})}}const u=(0,r.$j)((()=>({})),{forgotPasswordReset:o.forgotPasswordReset})((0,c.E)(p))}}]); 2//# sourceMappingURL=929.ec1a2712.chunk.js.map
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.