1import{M as st,N as Pt}from"./chunk-WMAS527J.js";import{$a as p,$b as j,Aa as R,Ba as b,Ca as h,Fc as U,Gc as vt,Gh as tt,Hh as St,La as m,Lc as Q,Ma as A,Mc as Ct,Mf as gt,Na as f,Ne as Z,Pj as rt,Q as T,Qj as Et,T as C,U as L,Vb as W,Wb as ut,Wc as H,X as I,Xc as ht,Y as w,_b as g,ab as l,ac as O,ae as N,be as z,ce as $,fb as x,fc as k,gc as ct,ha as n,hi as et,ia as d,ii as it,ji as _t,lb as D,le as J,mb as G,mc as B,na as E,ne as K,oc as ft,pa as a,ti as ot,ua as r,ub as q,ui as It,va as s,vb as V,ve as X,wa as P,xa as u,xe as Y,ya as c,ye as y,yj as nt,zj as wt}from"./chunk-6D226C3V.js";import{e as _}from"./chunk-J4XOFOAH.js";function bt(t,v){if(t&1){let e=R();u(0),r(1,"vls-question-input",8),b("validateInput",function(o){I(e);let S=h(2);return w(S.validate(o))}),s(),c()}if(t&2){let e=v.$implicit;n(),a("focusable",!1)("question",e)("name",e.name)("formControlName",e.name)}}function xt(t,v){if(t&1&&(r(0,"div",6),E(1,bt,2,4,"ng-container",7),s()),t&2){let e=h();a("formGroup",e.surveyForm),n(),a("ngForOf",e.questions.items)}}function Ot(t,v){t&1&&(r(0,"div",9),m(1),p(2,"translate"),s()),t&2&&(n(),f(" ",l(2,1,"LOGIN.PWDRESETERROR")," "))}function Nt(t,v){if(t&1){let e=R();r(0,"div")(1,"div",9),m(2),p(3,"translate"),s(),r(4,"div",10)(5,"button",11),b("click",function(){I(e);let o=h();return w(o.onFinish())}),m(6),p(7,"translate"),s()()()}t&2&&(n(2),A(l(3,2,"LOGIN.PWDRESET")),n(4),f("",l(7,4,"LOGIN.ENDPWDRESET")," "))}var M,mt,F=_(()=>{_t();y();vt();ft();x();y();Ct();ht();gt();V();St();O();M=function(t){return t.SUCCESS="success",t.ERROR="error",t}(M||{}),mt=(()=>{class t{constructor(e,i,o,S){this.fb=e,this.vls2Router=i,this.globalLoader=o,this.userService=S,this.questions=new it,this.question=new et("resetpwdinput",0,"active","password","LOGIN.NEWPASSWORDMESSAGE",!0,!0,!1,1,"password",!0,"","",[N.required,B.passwordValid],[],6),this.questions.items.push(this.question),this.question.errorMessage="ACCOUNT.CREATION.FORM.PASSWORD.ERROR.ALL-IN-1-DESCRIPTION-MESSAGE",this.status=void 0,this.isSubmitted=!1}ngOnInit(){let e={};e[this.question.name]=["",N.compose([...this.question.validators])],this.surveyForm=this.fb.group(e)}validate(e){this.globalLoader.showLoadingAnimation(!0),this.userService.updatePassword(e.formControl.value).subscribe({next:i=>{this.globalLoader.showLoadingAnimation(!1),this.status=M.SUCCESS,this.isSubmitted=!0},error:i=>{this.globalLoader.showLoadingAnimation(!1),this.status=M.ERROR,this.isSubmitted=!0}})}onFinish(){this.vls2Router.navigateToSetAfterProcessCommand(U.CHANGE_PASSWORD)}static{this.\u0275fac=function(i){return new(i||t)(d(X),d(Q),d(H),d(Z))}}static{this.\u0275cmp=C({type:t,selectors:[["vls-password-input"]],decls:6,vars:3,consts:[[1,"container"],[1,"row"],[1,"col-12","mt-4"],["novalidate","",3,"formGroup",4,"ngIf"],["class","col-sm-12",4,"ngIf"],[4,"ngIf"],["novalidate","",3,"formGroup"],[4,"ngFor","ngForOf"],[3,"validateInput","focusable","question","name","formControlName"],[1,"col-sm-12"],["data-test-id","confirm-page-btn",1,"col-12","mt-5"],["type","button",1,"btn","btn-primary","rounded-3",3,"click"]],template:function(i,o){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),E(3,xt,2,2,"div",3)(4,Ot,3,3,"div",4)(5,Nt,8,6,"div",5),s()()()),i&2&&(n(3),a("ngIf",o.status!=="success"),n(),a("ngIf",o.isSubmitted&&o.status==="error"),n(),a("ngIf",o.status==="success"))},dependencies:[D,G,z,$,J,K,tt,g],encapsulation:2})}}return t})()});var pt,lt=_(()=>{x();It();wt();F();O();pt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=C({type:t,selectors:[["vls-password-change-form-components"]],decls:9,vars:4,consts:[[3,"rightBackImageUrl"],["leftSideHeader",""],[1,"container-title","fw-bolder","black-normal","l2-responsive"],["leftSideContent",""],[1,"spacer"],[1,"position-absolute"]],template:function(i,o){i&1&&(r(0,"vls-split-form-container",0),u(1,1),r(2,"h1",2),m(3),p(4,"translate"),s(),c(),u(5,3),P(6,"vls-password-input")(7,"div",4),c(),s(),P(8,"vls-light-footer",5)),i&2&&(a("rightBackImageUrl","assets/img/visuel-tunnel-50full.jpg"),n(3),f(" ",l(4,2,"LOGIN.ENTERNEWPASSWORD")," "))}
1,dependencies:[ot,nt,mt,g],styles:["[_nghost-%COMP%] vls-password-input[_ngcontent-%COMP%]{display:block;margin-top:10vh}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{min-height:100px;height:200px}"]})}}return t})()});var dt,ee,Mt=_(()=>{ct();F();Et();Pt();y();ut();V();O();lt();x();dt=[{path:"**",component:pt}],ee=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=L({type:t})}static{this.\u0275inj=T({imports:[q,Y,j,rt,st,W.forChild(dt),k.forChild(dt)]})}}return t})()});Mt();export{ee as PasswordChangeModule,dt as routes};
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.