1import{b as te,c as oe}from"./chunk-O254SNPU.js";import{a as ee}from"./chunk-NWSSGM7S.js";import"./chunk-64LDHU52.js";import"./chunk-FWTG5XIZ.js";import{i as $}from"./chunk-ACJ3NLO5.js";import{E as Y,J as Z,f as H,g as J,i as K,o as W,s as L,v as Q,x as X}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import{d as z}from"./chunk-74CDSVWG.js";import{L as q,ga as G,i as V,ja as O,q as k}from"./chunk-SEQCRKB6.js";import{Aa as c,B as v,Db as T,Ea as M,Fa as j,Ga as w,I as y,Tb as U,U as P,V as x,Y as m,Ya as _,Z as C,_ as S,cb as D,db as B,i as g,ia as a,la as I,ma as F,pa as E,pb as R,qa as A,rb as N,s as p,u as b,xa as n,ya as f,za as u}from"./chunk-HBLARLGW.js";var h=(()=>{let e=class e{constructor(){this.http=m(T),this.e2eeService=m(te)}setPassword(t,o){return this.e2eeService.handleE2ee([t.newPassword],o).pipe(p(i=>JSON.stringify({newPassword:i[0]})),b(i=>this.sendPost(i)),p(i=>new G(i)))}sendPost(t){return this.http.post(k(["public","self-service","password","set"]),t,z())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac});let r=e;return r})();var l=class{constructor(){this.newPassword="",this.confirmation=""}},d=class{constructor(e){this.e2eEncryptionInfo=e}};function se(r,e){if(r&1){let s=M();f(0,"iam-page",1)(1,"iam-form",2),j("formSubmit",function(){let o=C(s).ngIf,i=w();return S(i.setPassword(o))}),c(2,"iam-text-message",3)(3,"iam-input-row",4)(4,"iam-input-row",4)(5,"iam-dynamic-step-activation-checkboxes"),f(6,"iam-button-row"),c(7,"iam-button",5)(8,"iam-cancel-button")(9,"iam-goto-buttons"),u(),c(10,"iam-text-message",3),u()()}if(r&2){let s=w();n("pageId",s.pageId)("bodyAttributes",s.bodyAttributes)("title","public-self-service.password.title"),a(),n("form",s.form),a(),n("id","setPasswordInstructions")("text","public-self-service.password.instructions"),a(),n("id","password")("control",s.form.controls.newPassword)("label","public-self-service.password.password")("type","password"),a(),n("id","confirmation")("control",s.form.controls.confirmation)("label","public-self-service.password.password-confirmation")("type","password"),a(3),n("id","setPassword")("submit",!0)("disabled",s.form.pristine||!s.form.valid)("text","public-self-service.password.actions.set-password"),a(3),n("id","setPasswordRequirements")("text","public-self-service.password.requirements")}}var ie=(()=>{let e=class e extends ee{get pageId(){return"iamPublicSelfServicePassword"}constructor(){super(),this.onSettingsUpdate=new g,this.service=m(h),this.pageAlertService=m(V)}ngOnInit(){this.settings=v(this.onSettingsUpdate,this.initUiConfig().pipe(p(t=>new d(t.additionalAttribute("e2eEncryptionInformation"))))),this.form=O.of(new l,{required:["newPassword","confirmation"],extra:{validator:q.matchingFields("newPassword","confirmation","error.password-policy-violated.not-identical")}})}setPassword(t){this.service.setPassword(this.form.model,t.e2eEncryptionInfo).pipe(y(()=>this.collectErrorsAndClearFields())).subscribe({next:o=>this.handleSuccessfulStep(o),error:o=>this.handleFailedChange(o,t)})}handleFailedChange(t,o){let i=t.error?.meta?.e2eEncryptionInformation;i&&(o.e2eEncryptionInfo=i,this.onSettingsUpdate.next(o)),this.handleFailedStep(t)}collectErrorsAndClearFields(){this.collectError(this.form.controls.newPassword),this.collectError(this.form.controls.confirmation),this.form.hasFormErrors()&&this.pageAlertService.display(),this.clearPasswordFromForm()}clearPasswordFromForm(){this.form.controls.newPassword.reset(),this.form.controls.confirmation.reset()}collectError(t){t.errors&&t.errors.error&&this.pageAlertService.error(t.errors.error.errorKey)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=I({type:e,selectors:[["ng-component"]],standalone:!1,features:[_([h]),E],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"formSubmit","form"],[3,"id","text"],[3,"id","control","label","type"],[3,"id","submit","disabled","text"]],template:function(o,i){o&1&&(A(0,se,11,20,"iam-page",0),D(1,"async")),o&2&&n("ngIf",B(1,1,i.settings))},dependencies:[R,H,J,Q,X,Y,L,K,W,Z,N],encapsulation:2});let r=e;return r})();var ne=[{path:"",component:ie,pathMatch:"full",runGuardsAndResolvers:"always"}],Oe=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=F({type:e}),e.\u0275inj=x({imports:[U.forChild(ne),$,oe]});let r=e;return r})();export{Oe as PasswordModule};
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.