1import{a as $}from"./chunk-NRJHQ6EL.js";import"./chunk-G2UWYJJA.js";import{i as W}from"./chunk-JFRDUKHT.js";import{E as J,J as U,f as T,g as V,i as k,o as E,s as z,v as G,x as H}from"./chunk-ILWEEXDQ.js";import"./chunk-SIPRBOS4.js";import{d as R}from"./chunk-VUNDLCZV.js";import{ga as P,ja as h,q as N}from"./chunk-HUFVZX6R.js";import{Aa as m,Db as O,Ea as F,Fa as I,Ga as f,R as b,Tb as B,U as v,V as y,Y as c,Ya as _,Z as w,_ as C,cb as A,db as q,ia as a,la as x,ma as S,ob as M,pa as Q,pb as j,qa as l,rb as D,s as p,xa as n,ya as u,za as d}from"./chunk-KQTSFH7H.js";var g=(()=>{let t=class t{constructor(){this.http=c(O)}answerQuestions(e){let i=JSON.stringify({answers:e});return this.http.post(N(["public","self-service","verification","secret-questions","answer"]),i,R()).pipe(p(o=>new P(o)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac});let r=t;return r})();function X(r,t){if(r&1&&(u(0,"div"),m(1,"iam-input-row",6),d()),r&2){let s=t.$implicit,e=t.index,i=f(2);a(),n("id",s.id)("control",i.form.controls["secretQuestion"+e+".answer"])("label",s.id)}}function Y(r,t){if(r&1){let s=F();u(0,"iam-page",1)(1,"iam-form",2),I("formSubmit",function(){let i=w(s).ngIf,o=f();return C(o.answerQuestions(i))}),m(2,"iam-text-message",3),l(3,X,2,3,"div",4),m(4,"iam-dynamic-step-activation-checkboxes"),u(5,"iam-button-row"),m(6,"iam-button",5)(7,"iam-cancel-button")(8,"iam-goto-buttons"),d()()()}if(r&2){let s=t.ngIf,e=f();n("pageId",e.pageId)("bodyAttributes",e.bodyAttributes)("title","public-self-service.secret-questions.title"),a(),n("form",e.form),a(),n("id","verifyAnswersInstructions")("text","public-self-service.secret-questions.instructions"),a(),n("ngForOf",s),a(3),n("id","verifyAnswers")("submit",!0)("disabled",e.form.pristine||!e.form.valid)("text","public-self-service.secret-questions.actions.check-answers")}}var L=(()=>{let t=class t extends ${get pageId(){return"iamPublicSelfServiceSecretQuestions"}constructor(){super(),this.form=h.emptyForm(),this.service=c(g)}ngOnInit(){this.secretQuestions=this.initUiConfig().pipe(p(e=>this.toSecretQuestions(e)),b(e=>this.initializeForm(e)))}answerQuestions(e){let i={};e.forEach(o=>{i[o.id]=o.answer}),this.service.answerQuestions(i).subscribe({next:o=>this.handleSuccessfulStep(o),error:o=>this.handleFailedStep(o)})}initializeForm(e){let i={required:this.requiredValidation(e.length),prefixOrMapping:"secretQuestion"};this.form=h.of(e,i)}requiredValidation(e){let i=[];for(let o=0;o<e;o++)i[o]="secretQuestion"+o+".answer";return i}toSecretQuestions(e){let i=[];for(let o of e.additionalAttribute("secretQuestions"))i.push({id:o,answer:""});return i}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=x({type:t,selectors:[["ng-component"]],standalone:!1,features:[_([g]),Q],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"formSubmit","form"],[3,"id","text"],[4,"ngFor","ngForOf"],[3,"id","submit","disabled","text"],[3,"id","control","label"]],template:function(i,o){i&1&&(l(0,Y,9,11,"iam-page",0),A(1,"async")),i&2&&n("ngIf",q(1,1,o.secretQuestions))},dependencies:[M,j,T,V,G,H,J,z,k,E,U,D],encapsulation:2});let r=t;return r})();var Z=[{path:"",component:L,pathMatch:"full",runGuardsAndResolvers:"always"}],At=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=y({imports:[B.forChild(Z),W]});let r=t;return r})();export{At as SecretQuestionsModule};
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.