1"use strict";(self.webpackChunkmedichire_frontend=self.webpackChunkmedichire_frontend||[]).push([[35],{35:(L,p,a)=>{a.r(p),a.d(p,{AuthModule:()=>B});var l=a(8642),n=a(6223);function h(t,i){return r=>{const s=r.controls[i];s.errors&&!s.errors.confirmedPasswordValidator||s.setErrors(r.controls[t].value!==s.value?{confirmedPasswordValidator:!0}:null)}}var f=a(553),e=a(6689),g=a(9168),w=a(2333),_=a(8763),u=a(6814);function x(t,i){if(1&t&&e._UZ(0,"img",19),2&t){const r=e.oxw();e.MGl("src","",r.websiteUrl,"assets/icons/eye.svg",e.LSH)}}function P(t,i){if(1&t&&e._UZ(0,"img",20),2&t){const r=e.oxw();e.MGl("src","",r.websiteUrl,"assets/icons/eye_close.svg",e.LSH)}}function b(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Password field is required. "),e.qZA())}function Z(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Password must be at least 8 characters. "),e.qZA())}function T(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Password must not exceed 16 characters. "),e.qZA())}function C(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Password should have minimum 8 characters, at least 1 uppercase letter, 1 lowercase letter,1 special character and 1 number. "),e.qZA())}function y(t,i){if(1&t&&(e.TgZ(0,"div",21),e.YNc(1,b,2,0,"div",22),e.YNc(2,Z,2,0,"div",22),e.YNc(3,T,2,0,"div",22),e.YNc(4,C,2,0,"div",22),e.qZA()),2&t){const r=e.oxw();e.xp6(1),e.Q6J("ngIf",r.f.newPassword.errors.required),e.xp6(1),e.Q6J("ngIf",r.f.newPassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",r.f.newPassword.errors.maxlength),e.xp6(1),e.Q6J("ngIf",r.f.newPassword.errors.pattern)}}function U(t,i){if(1&t&&e._UZ(0,"img",19),2&t){const r=e.oxw();e.MGl("src","",r.websiteUrl,"assets/icons/eye.svg",e.LSH)}}function S(t,i){if(1&t&&e._UZ(0,"img",20),2&t){const r=e.oxw();e.MGl("src","",r.websiteUrl,"assets/icons/eye_close.svg",e.LSH)}}function I(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Confirm Password is required "),e.qZA())}function F(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Password and Confirm Password must be match. "),e.qZA())}function A(t,i){if(1&t&&(e.TgZ(0,"div",21),e.YNc(1,I,2,0,"div",22),e.YNc(2,F,2,0,"div",22),e.qZA()),2&t){const r=e.oxw();e.xp6(1),e.Q6J("ngIf",r.f.confirmPassword.errors.required),e.xp6(1),e.Q6J("ngIf",r.f.confirmPassword.errors.confirmedPasswordValidator)}}const v=function(t){return{"is-invalid":t}};let M=(()=>{class t{formbuilder;router;seoService;activatedRoute;authSrv;toastrSrv;resetForm;submitted=!1;jobseekerUrl=f.N.jobSeekerUrl;websiteUrl=f.N.website;constructor(r,o,s,c,d,m){this.formbuilder=r,this.router=o,this.seoService=s,this.activatedRoute=c,this.authSrv=d,this.toastrSrv=m}ngOnInit(){this.resetForm=this.formbuilder.group({newPassword:["",[n.kI.required,n.kI.minLength(8),n.kI.maxLength(16),n.kI.pattern("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,16}$")]],confirmPassword:["",[n.kI.required]]},{validator:h("newPassword","confirmPassword")}),this.addMetaTagsData()}get f(){return this.resetForm.controls}
1onSubmit(){if(this.submitted=!0,this.resetForm.invalid)this.toastrSrv.error("Failed to reset password,Try again","",{closeButton:!0});else{let r=this.activatedRoute.snapshot.queryParamMap.get("token");this.authSrv.resetPassword(r,this.resetForm.getRawValue()).subscribe({next:o=>{this.toastrSrv.success("Password has been reset successfully, Please login again.","",{closeButton:!0}),typeof window<"u"&&(window.location.href=`${this.jobseekerUrl}login`)},error:o=>{400==o.status&&this.toastrSrv.info(o.message,"",{closeButton:!0})}})}}goTo(r){this.router.navigateByUrl(r)}addMetaTagsData(){let o=" Reset Password, Recover the password on MedicHire";this.seoService.update("Reset Password. Apply for millions of medical jobs at one place ",o,o,"- MedicHire"),this.seoService.createCanonicalLink()}static \u0275fac=function(o){return new(o||t)(e.Y36(n.qu),e.Y36(l.F0),e.Y36(g.x),e.Y36(l.gz),e.Y36(w.e),e.Y36(_._W))};static \u0275cmp=e.Xpm({type:t,selectors:[["app-reset-password"]],decls:34,vars:14,consts:[[1,"resetform"],[1,"container","mt-15","mb-5"],[1,"card-body","mx-auto",2,"max-width","600px"],[1,"card-title","mt-3","text-center"],[1,"text-center","text-muted"],[3,"href"],[3,"formGroup","ngSubmit"],[1,"form-outline","mt-5","mb-5"],["name","newPassword","id","newPassword","placeholder","New Password","type","password","formControlName","newPassword",1,"form-control",3,"ngClass"],["password_field",""],[1,"field-icon","toggle-password",3,"click"],["alt","eye","width","20","height","20",3,"src",4,"ngIf"],["alt","eye_close","width","20","height","20",3,"src",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],[1,"form-outline","mt-4"],["name","confirmPassword","id","confirmPassword","placeholder","Confirm Password","type","password","formControlName","confirmPassword",1,"form-control",3,"ngClass"],["cnf_password_field",""],[1,"text-center","mt-4"],["type","submit",1,"btn","btn-lg","btn-primary"],["alt","eye","width","20","height","20",3,"src"],["alt","eye_close","width","20","height","20",3,"src"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(o,s){if(1&o){const c=e.EpF();e.TgZ(0,"section",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div")(5,"h1",3)(6,"b"),e._uU(7,"Reset Password"),e.qZA()(),e._UZ(8,"br"),e.TgZ(9,"p",4),e._uU(10,"Please provide your new password details "),e._UZ(11,"br"),e._uU(12," If you want to create an account, "),e.TgZ(13,"a",5),e._uU(14,"register here"),e.qZA(),e._uU(15,". "),e.qZA()(),e.TgZ(16,"form",6),e.NdJ("ngSubmit",function(){return s.onSubmit()}),e.TgZ(17,"div",7),e._UZ(18,"input",8,9),e.TgZ(20,"span",10),e.NdJ("click",function(){e.CHM(c);const m=e.MAs(19);return e.KtG(m.type="password"==m.type?"text":"password")}),e.YNc(21,x,1,1,"img",11),e.YNc(22,P,1,1,"img",12),e.qZA(),e.YNc(23,y,5,4,"div",13),e.TgZ(24,"div",14),e._UZ(25,"input",15,16),e.TgZ(27,"span",10),e.NdJ("click",function(){e.CHM(c);const m=e.MAs(26);return e.KtG(m.type="password"==m.type?"text":"password")}),e.YNc(28,U,1,1,"img",11),e.YNc(29,S,1,1,"img",12),e.qZA(),e.YNc(30,A,3,2,"div",13),e.qZA(),e.TgZ(31,"div",17)(32,"button",18),e._uU(33," Submit "),e.qZA()()()()()()()()}if(2&o){const c=e.MAs(19),d=e.MAs(26);e.xp6(13),e.MGl("href","",s.jobseekerUrl,"login",e.LSH),e.xp6(3),e.Q6J("formGroup",s.resetForm),e.xp6(2),e.Q6J("ngClass",e.VKq(10,v,s.submitted&&s.f.newPassword.errors)),e.xp6(3),e.Q6J("ngIf","password"===c.type),e.xp6(1),e.Q6J("ngIf","text"===c.type),e.xp6(1),e.Q6J("ngIf",s.submitted&&s.f.newPassword.errors),e.xp6(2),e.Q6J("ngClass",e.VKq(12,v,s.submitted&&s.f.confirmPassword.errors)),e.xp6(3),e.Q6J("ngIf","password"===d.type),e.xp6(1),e.Q6J("ngIf","text"===d.type),e.xp6(1),e.Q6J("ngIf",s.submitted&&s.f.confirmPassword.errors)}},dependencies:[n._Y,n.Fj,n.JJ,n.JL,n.sg,n.u,u.mk,u.O5],styles:[".btn-lg[_ngcontent-%COMP%]{min-width:250px}a[_ngcontent-%COMP%]{color:#0d6efd!important;cursor:pointer}.resetform[_ngcontent-%COMP%]{margin-top:8rem;margin-bottom:6rem}.para[_ngcontent-%COMP%]{word-spacing:2px;color:#000}.field-icon[_ngcontent-%COMP%]{float:right;left:-15px;margin-top:-30px;position:relative;z-index:2}input[_ngcontent-%COMP%]::-ms-reveal{display:none}"]})}return t})();function J(t,i){if(1&t){const r=e.EpF();e.TgZ(0,"p",7),e._uU(1,"No worries! Enter the email Id associated with your account. "),e._UZ(2,"br"),e._uU(3," If you want to create a new account, "),e.TgZ(4,"a",8),e.NdJ("click",function(){e.CHM(r);const s=e.oxw();return e.KtG(s.goTo("/login"))}),e._uU(5,"register here"),e.qZA(),e._uU(6,". "),e.qZA()}}function Y(t,i){if(1&t&&(e.TgZ(0,"p",9),e._uU(1),e._UZ(2,"br"),e._uU(3," Please "),e.TgZ(4,"a",10),e._uU(5,"login here"),e.qZA(),e._uU(6," with your credentials. "),e.qZA()),2&t){const r=e.oxw();e.xp6(1),e.hij("",r.response," "),e.xp6(3),e.MGl("href","",r.jobseekerUrl,"login",e.LSH)}}function q(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Email is required. "),e.qZA())}function N(t,i){1&t&&(e.TgZ(0,"div"),e._uU(1," Email must be a valid email address. "),e.qZA())}function k(t,i){if(1&t&&(e.TgZ(0,"div",18),e.YNc(1,q,2,0,"div",19),e.YNc(2,N,2,0,"div",19),e.qZA()),2&t){const r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",r.uf.email.errors.required),e.xp6(1),e.Q6J("ngIf",r.uf.email.errors.email)}}const R=function(t){return{"is-invalid":t}};function Q(t,i){if(1&t){const r=e.EpF();e.TgZ(0,"form",11),e.NdJ("ngSubmit",function(){e.CHM(r);const s=e.oxw();return e.KtG(s.onSubmit())}),e.TgZ(1,"div",12)(2,"label",13)(3,"b"),e._uU(4,"Enter Your Mail ID"),e.qZA()(),e._UZ(5,"input",14),e.YNc(6,k,3,2,"div",15),e.qZA(),e.TgZ(7,"div",16)(8,"button",17),e._uU(9," Submit "),e.qZA()()()}if(2&t){const r=e.oxw();e.Q6J("formGroup",r.forgetForm),e.xp6(5),e.Q6J("ngClass",e.VKq(3,R,r.submitted&&r.uf.email.errors)),e.xp6(1),e.Q6J("ngIf",r.submitted&&r.uf.email.errors)}}let O=(()=>{class t{formbuilder;router;toastrSrv;seoService;authSrv;forgetForm;submitted=!1;response="";jobseekerUrl=f.N.jobSeekerUrl;constructor(r,o,s,c,d){this.formbuilder=r,this.router=o,this.toastrSrv=s,this.seoService=c,this.authSrv=d}ngOnInit(){this.forgetForm=this.formbuilder.group({email:["",[n.kI.required,n.kI.email]]}),this.addMetaTagsData()}get uf(){return this.forgetForm.controls}
1onSubmit(){this.submitted=!0,this.forgetForm.invalid?this.toastrSrv.error("Forget Password Failed. Please provide valid email address.","",{closeButton:!0}):this.authSrv.forgotPassword(this.forgetForm.get("email")?.value).subscribe({next:r=>{this.toastrSrv.success("Please verify your email, reset password link has been shared.","",{closeButton:!0}),this.response="Please verify your email, reset password link has been shared."},error:r=>{this.toastrSrv.error(r.message?r.message:"Something went wrong,try again!!","",{closeButton:!0})}})}goTo(r){this.router.navigateByUrl(r)}addMetaTagsData(){let o=" Forget Password, Recover the password";this.seoService.update("Forget Password. Apply for millions of medical jobs at one place ",o,o,"- MedicHire"),this.seoService.createCanonicalLink()}static \u0275fac=function(o){return new(o||t)(e.Y36(n.qu),e.Y36(l.F0),e.Y36(_._W),e.Y36(g.x),e.Y36(w.e))};static \u0275cmp=e.Xpm({type:t,selectors:[["app-forget-password"]],decls:11,vars:3,consts:[[1,"resetform"],[1,"container","mt-15","mb-5"],[1,"card-body","mx-auto",2,"max-width","600px"],[1,"card-title","mt-3","text-center"],["class","text-center text-muted mb-5",4,"ngIf"],["class","text-center text-green",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"text-center","text-muted","mb-5"],[3,"click"],[1,"text-center","text-green"],[3,"href"],[3,"formGroup","ngSubmit"],[1,"form-outline","mb-4"],["for","email"],["name","email","id","email","placeholder","Enter your email","type","email","formControlName","email",1,"form-control","mt-3",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],[1,"text-center","mt-3"],["type","submit",1,"btn","btn-lg","btn-primary"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(o,s){1&o&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div")(3,"div",2)(4,"h1",3)(5,"b"),e._uU(6,"Forget Password"),e.qZA()(),e._UZ(7,"br"),e.YNc(8,J,7,0,"p",4),e.YNc(9,Y,7,2,"p",5),e.YNc(10,Q,10,5,"form",6),e.qZA()()()()),2&o&&(e.xp6(8),e.Q6J("ngIf",!s.response),e.xp6(1),e.Q6J("ngIf",s.response),e.xp6(1),e.Q6J("ngIf",!s.response))},dependencies:[n._Y,n.Fj,n.JJ,n.JL,n.sg,n.u,u.mk,u.O5],styles:[".btn-lg[_ngcontent-%COMP%]{min-width:250px}a[_ngcontent-%COMP%]{color:#0d6efd!important;cursor:pointer}.resetform[_ngcontent-%COMP%]{margin-top:8rem;margin-bottom:6rem}.para[_ngcontent-%COMP%]{word-spacing:2px;color:#000}.text-green[_ngcontent-%COMP%]{color:#069525}"]})}return t})();var G=a(6474);const H=[{path:"reset-password",component:M},{path:"forget-password",component:O},{path:"profilelogin",component:a(9206).w}];let B=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=e.oAB({type:t});static \u0275inj=e.cJS({imports:[l.Bz.forChild(H),G.m,l.Bz]})}return t})()}}]);
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.