1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8904],{8904:(A,I,e)=>{e.r(I),e.d(I,{SecretQuestionsModule:()=>k});var _=e(5231),n=e(5451),b=e(2263),o=e(9373),v=e(7805),y=e(6354),w=e(7348),D=e(5482),p=e(2652),i=e(4438),E=e(1626);let g=(()=>{class f{constructor(t,s){this.http=t,this.flowSessionService=s}provisionAnswers(t){return this.http.post((0,w.OZ)(["/public","authentication","secret-questions","provision"]),t,(0,p.R)()).pipe((0,y.T)(s=>this.flowSessionService.createFlowSession(s)))}static#t=this.\u0275fac=function(s){return new(s||f)(i.KVO(E.Qq),i.KVO(D.Q))};static#e=this.\u0275prov=i.jDH({token:f,factory:f.\u0275fac})}return f})();var d=e(2771),l=e(8141),h=e(9974),u=e(4360),m=e(7006),O=e(177),c=e(57),S=e(4160),T=e(5033),B=e(9099),Q=e(7493),G=e(9710),x=e(6453),U=e(3813);class F{}var W=e(7376),L=e(3732),V=e(3001),K=e(1463);const j=f=>({index:f});let Y=(()=>{class f{constructor(){this.selectableDropdownOptions=[],this.allDropdownOptions=[]}set options(t){this.selectableDropdownOptions=this.toSelectableDropdown(t),this.allDropdownOptions=this.toDropdown(t)}set questionControl(t){this._questionControl=t,this._currentSelection=t.value}get questionControl(){return this._questionControl}ngOnInit(){this._subscription=this.selectedQuestionChanged.subscribe(t=>{this.updateSelectableOptions(t)})}changeSelectedQuestion(){const t=new F;t.index=this.index,t.previousQuestion=this._currentSelection,t.newQuestion=this._questionControl.value,this.selectedQuestionChanged.next(t),this._currentSelection=this._questionControl.value}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}updateSelectableOptions(t){t.index!==this.index&&this.allDropdownOptions.forEach(s=>{s.value===t.newQuestion&&this.removeQuestionFromSelectableDropdown(t.newQuestion),s.value===t.previousQuestion&&this.selectableDropdownOptions.push(s)})}removeQuestionFromSelectableDropdown(t){(0,W.remove)(this.selectableDropdownOptions,s=>s.value===t)}toSelectableDropdown(t){const s=[];return t.forEach(a=>{const C="secretQuestion["+this.index+"]";this.isQuestionAlreadySelected(a.id)||s.push({id:C+a.id,value:a.id,label:a.id})}),s}toDropdown(t){const s=[];return t.forEach(a=>{s.push({id:"secretQuestion["+this.index+"]"+a.id,value:a.id,label:a.id})}),s}isQuestionAlreadySelected(t){return this.initiallySelectedQuestions.secretQuestions.some(s=>s.id===t)}static#t=this.\u0275fac=function(s){return new(s||f)};static#e=this.\u0275cmp=i.VBU({type:f,selectors:[["iam-secret-question"]],inputs:{index:"index",initiallySelectedQuestions:"initiallySelectedQuestions",selectedQuestionChanged:"selectedQuestionChanged",answerControl:"answerControl",options:"options",questionControl:"questionControl"},standalone:!1,decls:3,vars:13,consts:[[3,"change","id","control","label","options"],[3,"id","control","focus","required"]],template:function(s,a){1&s&&(i.j41(0,"iam-dropdown-row",0),i.nI1(1,"translate"),i.bIt("change",function(){return a.changeSelectedQuestion()}),i.k0s(),i.nrm(2,"iam-input-row",1)),2&s&&(i.Y8G("id","secretQuestion["+a.index+"]")("control",a.questionControl)("label",i.i5U(1,8,"authentication.secretquestions.question-title",i.eq3(11,j,a.index+1)))("options",a.selectableDropdownOptions),i.R7$(2),i.Y8G("id","answer["+a.index+"]")("control",a.answerControl)("focus",!0)("required",!0))},dependencies:[L.p,V.e,K.t],encapsulation:2})}return f})();function N(f,P){if(1&f&&(i.j41(0,"div"),i.nrm(1,"iam-secret-question",6),i.k0s()),2&f){const t=P.$implicit,s=i.XpG().ngIf,a=i.XpG();i.R7$(),i.Y8G("index",t)("initiallySelectedQuestions",a.alreadySelectedQuestions[t])("options",s.secretQuestions)("questionControl",a.form.controls["secretQuestions["+t+"].id"])("answerControl",a.form.controls["secretQuestions["+t+"].answer"])("selectedQuestionChanged",a.selectedQuestionChanged)}}function X(f,P){if(1&f){const t=i.RV6();i.j41(0,"iam-page",1)(1,"iam-form",2),i.bIt("formSubmit",function(){const a=i.eBV(t).ngIf,C=i.XpG();return i.Njj(C.submit(a))}),i.nrm(2,"iam-text-message",3),i.DNE(3,N,2,6,"div",4),i.nrm(4,"iam-dynamic-step-activation-checkboxes"),i.j41(5,"iam-button-row"),i.nrm(6,"iam-button",5)(7,"iam-cancel-button")(8,"iam-goto-buttons"),i.k0s()()()}if(2&f){const t=i.XpG();i.Y8G("pageId",t.pageId)("bodyAttributes",t.bodyAttributes)("title","authentication.secretquestions.title"),i.R7$(),i.Y8G("form",t.form),i.R7$(),i.Y8G("id","secretQuestionsInstructions")("text","authentication.secretquestions.instructions"),i.R7$(),i.Y8G("ngForOf",t.numMissingAnswers),i.R7$(3),i.Y8G("id","submitButton")("submit",!0)("disabled",!t.form.valid)("text","authentication.secretquestions.actions.submit")}}let $=(()=>{class f extends n.V{constructor(t,s,a){super(t,s),this.secretQuestionsService=a,this.selectedQuestionChanged=new d.m,this.form=b.l.emptyForm(),this.numMissingAnswers=[],this.alreadySelectedQuestions=[]}get pageId(){return"iamSecretQuestions"}ngOnInit(){this.secretQuestionsStatus=this.initUiConfig().pipe((0,y.T)(t=>this.toSecretQuestions(t)),(0,l.M)(t=>this.buildForm(t)))}submit(t){const s=this.createRequest(t);this.secretQuestionsService.provisionAnswers(s).subscribe({next:a=>this.handleSuccessfulStep(a),error:a=>this.handleError(a)})}buildForm(t){this.numMissingAnswers=Array.from(Array(t.missingSecretQuestionAnswers).keys());const s={prefixOrMapping:this.controlsMapping(t),required:this.requiredValidation(t)};this.setupAlreadySelectedQuestions(t.missingSecretQuestionAnswers,t.secretQuestions),this.form=b.l.of(t,s),this.setupHandlingForConflictValidationErrors(t.missingSecretQuestionAnswers)}requiredValidation(t){const s=[];for(let a=0;a<t.missingSecretQuestionAnswers;a++)s[a]="secretQuestions["+a+"].answer";return s}
1controlsMapping(t){const s={};return t.secretQuestions.forEach((a,C)=>{s["secretQuestion["+C+"].value"]="secretQuestions-"+a.id}),s}setupAlreadySelectedQuestions(t,s){for(let a=0;a<t;a++)this.alreadySelectedQuestions[a]=this.getSelectedQuestionsInOtherDropdownMenus(s,a,t)}getSelectedQuestionsInOtherDropdownMenus(t,s,a){const C=[];return t.forEach((M,R)=>{!this.isSelectedQuestionOfSameDropdownMenu(s,R)&&R<a&&C.push(M)}),{secretQuestions:C}}isSelectedQuestionOfSameDropdownMenu(t,s){return t===s}setupHandlingForConflictValidationErrors(t){for(let s=0;s<t;s++)this.form.controls["secretQuestions["+s+"].answer"].valueChanges.pipe((0,h.N)((f,P)=>{let t,s=!1;f.subscribe((0,u._)(P,a=>{const C=t;t=a,s&&P.next([C,a]),s=!0}))})).subscribe(([a])=>{this.resolveConflictValidationError(a,t)})}resolveConflictValidationError(t,s){const a=this.retrieveControlsWithSameConflict(t,s);1===a.length&&this.resetValidationError(a[0])}retrieveControlsWithSameConflict(t,s){const a=[];for(let C=0;C<s;C++){const M=this.form.controls["secretQuestions["+C+"].answer"];if(M.errors)for(const R in M.errors)this.isConflictValidationError(M.errors[R])&&M.value===t&&a.push(M)}return a}resetValidationError(t){t.setValidators([]),t.updateValueAndValidity()}isConflictValidationError(t){return"error.validation-failed.conflict"===t.errorKey}createRequest(t){const s={};for(let a=0;a<t.missingSecretQuestionAnswers;a++){const C=this.form.controls["secretQuestions["+a+"].id"].value,M=this.form.controls["secretQuestions["+a+"].answer"].value;m.D.isNotBlank(M)&&(s[C]=M)}return{answers:s}}handleError(t){t.error&&t.error.errors&&t.error.errors.forEach(s=>{this.replacePointerByFieldName(s)}),this.handleFailedStep(t)}replacePointerByFieldName(t){if("VALIDATION_FAILED"===t.code&&t.source.pointer.startsWith("/answers/")){const s=t.source.pointer.replace("/answers/","");this.numMissingAnswers.forEach(a=>{this.form.controls["secretQuestions["+a+"].id"].value===s&&(t.source.pointer="secretQuestions["+a+"].answer")})}}toSecretQuestions(t){const s=t.additionalAttribute("secretQuestionsInfo"),a=[];for(const C of s.questions)C.provisioned||a.push({id:C.id,answer:""});return{secretQuestions:a,missingSecretQuestionAnswers:s.missingAnswers}}static#t=this.\u0275fac=function(s){return new(s||f)(i.rXU(o.I),i.rXU(v.b),i.rXU(g))};static#e=this.\u0275cmp=i.VBU({type:f,selectors:[["iam-secret-questions"]],standalone:!1,features:[i.Jv_([g]),i.Vt3],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,"index","initiallySelectedQuestions","options","questionControl","answerControl","selectedQuestionChanged"]],template:function(s,a){1&s&&(i.DNE(0,X,9,11,"iam-page",0),i.nI1(1,"async")),2&s&&i.Y8G("ngIf",i.bMT(1,1,a.secretQuestionsStatus))},dependencies:[O.Sq,O.bT,c.m,S.Q,T.Q,B.a,Q.E,G.s,x.I,U.H,Y,O.Jj],encapsulation:2})}return f})();var H=e(1552);const z=[{path:"",component:$,pathMatch:"full",runGuardsAndResolvers:"always"}];let k=(()=>{class f{static#t=this.\u0275fac=function(s){return new(s||f)};static#e=this.\u0275mod=i.$C({type:f});static#n=this.\u0275inj=i.G2t({imports:[_.iI.forChild(z),H.G]})}return f})()},3841:(A,I,e)=>{e.d(I,{L:()=>o});var _=e(7376),b=e(4438);let o=(()=>{class v{transform(w){return(0,_.upperFirst)((0,_.camelCase)(w))}static#t=this.\u0275fac=function(D){return new(D||v)};static#e=this.\u0275pipe=b.EJ8({name:"upperCamelCase",type:v,pure:!0,standalone:!1});static#n=this.\u0275prov=b.jDH({token:v,factory:v.\u0275fac})}return v})()},5033:(A,I,e)=>{e.d(I,{Q:()=>l});var _=e(6247),n=e(2315),b=e(6884),o=e(7673),v=e(8141),y=e(6354),w=e(5558),D=e(7613),p=e(4438),i=e(1400),E=e(177),g=e(4160);function d(h,u){if(1&h){const r=p.RV6();p.j41(0,"iam-button",1),p.bIt("buttonClick",function(){const O=p.eBV(r).ngIf,c=p.XpG();return p.Njj(c.cancelFlow(O.targetUri))}),p.k0s()}if(2&h){const r=p.XpG();p.Y8G("id",r.buttonId)("submit",!1)("right",r.right)("text",r.text||r.translationKey)("disableWhenBusy",r.disableWhenBusy)}}let l=(()=>{class h{set buttonId(r){r&&(this._id=r)}get buttonId(){return this._id}constructor(r,m,O,c,S){this.flowPageService=r,this.flowNavigationService=m,this.pageAlertService=O,this.routes=c,this.currentFlow=S,this.right=!0,this.disableWhenBusy=!0,this.beforeCancelFlow=this.nopBeforeCancelFlow,this._id="cancelButton",this.cancelButton=this.flowPageService.getStepUiConfig().pipe((0,v.M)(T=>{this._translationPrefix=T.getResourceKeyPrefix(),this.translationKey=this._translationPrefix+".pages.actions.cancel"}),(0,y.T)(T=>T.pageAttribute("cancelButtonSettings")))}get hostCss(){return"iam-btn-cancel"}cancelFlow(r){this.beforeCancelFlow().pipe((0,w.n)(()=>this.flowPageService.cancelFlow())).subscribe(()=>{this._translationPrefix&&this.pageAlertService.info(this._translationPrefix+".pages.messages.cancel");const m=this.currentFlow.retrieveId();this.flowPageService.clearState(),r?this.routes.navigateTo(r):this.flowNavigationService.navigateToFlow(m)})}nopBeforeCancelFlow(){return(0,o.of)(!0)}static#t=this.\u0275fac=function(m){return new(m||h)(p.rXU(_.z),p.rXU(i._),p.rXU(b.D),p.rXU(D.BV),p.rXU(n.E))};static#e=this.\u0275cmp=p.VBU({type:h,selectors:[["iam-cancel-button"]],hostVars:2,hostBindings:function(m,O){2&m&&p.HbH(O.hostCss)},inputs:{right:"right",text:"text",disableWhenBusy:"disableWhenBusy",buttonId:"buttonId",beforeCancelFlow:"beforeCancelFlow"},standalone:!1,decls:2,vars:3,consts:[[3,"id","submit","right","text","disableWhenBusy","buttonClick",4,"ngIf"],[3,"buttonClick","id","submit","right","text","disableWhenBusy"]],template:function(m,O){1&m&&(p.DNE(0,d,1,5,"iam-button",0),p.nI1(1,"async")),2&m&&p.Y8G("ngIf",p.bMT(1,1,O.cancelButton))},dependencies:[E.bT,g.Q,E.Jj],encapsulation:2})}return h})()},3732:(A,I,e)=>{e.d(I,{p:()=>E}
1);var _=e(3719),n=e(4438),b=e(177),o=e(9417),v=e(9276),y=e(9856),w=e(1463);function D(g,d){if(1&g&&n.nrm(0,"option",5),2&g){const l=n.XpG();n.Y8G("value",l.undefinedOptionValue)("selected",!0)("disabled",!0)}}function p(g,d){if(1&g&&(n.j41(0,"option",6),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&g){const l=d.$implicit;n.Y8G("disabled",l.disabled)("value",l.value),n.BMQ("id",l.id),n.R7$(),n.Lme("",n.bMT(2,5,l.label),"",l.translatedLabel," ")}}function i(g,d){if(1&g&&n.nrm(0,"iam-errors",7),2&g){const l=n.XpG();n.Y8G("id",l.errorFor(l.id))("errors",l.getErrors())}}let E=(()=>{class g extends _.G{constructor(){super(...arguments),this.label="",this.focus=!1,this.required=!1,this._disabled=!1,this.hasEmptyOption=!1}set disabled(l){this._disabled=l,this.disableControlIfNecessary(this.disabled)}get disabled(){return this._disabled}set options(l){this._options=l,this.hasEmptyOption=this.checkForEmptyOption()}get options(){return this._options}ngOnInit(){super.ngOnInit(),this.disableControlIfNecessary(this.disabled)}get hostCss(){return"iam-row-group"}get showUndefinedOption(){return!this.hasEmptyOption&&!this.control.value}get undefinedOptionValue(){return this.control.value}checkForEmptyOption(){for(const l of this._options)if(!l.value)return!0;return!1}static#t=this.\u0275fac=(()=>{let l;return function(u){return(l||(l=n.xGo(g)))(u||g)}})();static#e=this.\u0275cmp=n.VBU({type:g,selectors:[["iam-dropdown-row"]],hostVars:2,hostBindings:function(h,u){2&h&&n.HbH(u.hostCss)},inputs:{id:"id",name:"name",label:"label",focus:"focus",size:"size",required:"required",disabled:"disabled",options:"options"},standalone:!1,features:[n.Vt3],decls:5,vars:14,consts:[[3,"label","labelFor","required"],[1,"iam-form-control","iam-form-select",3,"name","autofocus","formControl"],[3,"value","selected","disabled",4,"ngIf"],[3,"disabled","value",4,"ngFor","ngForOf"],[3,"id","errors",4,"ngIf"],[3,"value","selected","disabled"],[3,"disabled","value"],[3,"id","errors"]],template:function(h,u){1&h&&(n.j41(0,"iam-row-with-label",0)(1,"select",1),n.DNE(2,D,1,3,"option",2)(3,p,3,7,"option",3),n.k0s(),n.DNE(4,i,1,2,"iam-errors",4),n.k0s()),2&h&&(n.Y8G("label",u.label)("labelFor",u.name||u.id)("required",u.required),n.R7$(),n.AVh("is-invalid",u.hasError()),n.Y8G("name",u.name||u.id)("autofocus",u.focus)("formControl",u.control),n.BMQ("id",u.id)("size",u.size>1?u.size:void 0)("aria-describedby",u.hasError()?u.errorFor(u.id):void 0),n.R7$(),n.Y8G("ngIf",u.showUndefinedOption),n.R7$(),n.Y8G("ngForOf",u.options),n.R7$(),n.Y8G("ngIf",u.hasError()))},dependencies:[b.Sq,b.bT,o.xH,o.y7,o.wz,o.BC,o.l_,v.I,y.U,w.t],encapsulation:2})}return g})()},7493:(A,I,e)=>{e.d(I,{E:()=>r});var _=e(6247),n=e(8141),b=e(3597),o=e(4438),v=e(177),y=e(2315),w=e(7301),D=e(9417),p=e(2816),i=e(1463);function E(m,O){if(1&m&&(o.nrm(0,"iam-checkbox-row",1),o.nI1(1,"translate")),2&m){const c=o.XpG();o.Y8G("id",c.checkboxId)("label",o.bMT(1,5,c.translationKey))("control",c.control)("labelRight",!0)("disabled",c.disabled)}}let g=(()=>{class m{get hostCss(){return"iam-dynamic-step-activation-checkbox"}set checkboxId(c){c&&(this._id=c)}get checkboxId(){return this._id}set targetStep(c){c&&(this._target=c,this.translationKey=this.translationKey.replace("{targetStepId}",c.targetStepId))}get targetStep(){return this._target}constructor(c,S){this.currentFlow=c,this.flowPageService=S,this.checkboxChangedEvent=new o.bkB,this.stepUiConfig=this.flowPageService.getStepUiConfig(),this.translationKey=this.keyPrefix()+".pages.actions.dynamic-step.{targetStepId}"}ngOnInit(){this.control=new D.hs,this.control.setValue(this._target.activated),this._checkboxSubscription=this.control.valueChanges.subscribe(c=>{this._target.activated=c,this.checkboxChangedEvent.emit({targetStepId:this._target.targetStepId,activated:c})})}ngOnDestroy(){this._checkboxSubscription.unsubscribe()}get disabled(){return!this._target.activated&&!this._target.activatable||this._target.activated&&!this._target.deactivatable}keyPrefix(){const c=this.currentFlow.retrieveType();return(0,w.U)(c)}static#t=this.\u0275fac=function(S){return new(S||m)(o.rXU(y.E),o.rXU(_.z))};
1static#e=this.\u0275cmp=o.VBU({type:m,selectors:[["iam-dynamic-step-activation-checkbox"]],hostVars:2,hostBindings:function(S,T){2&S&&o.HbH(T.hostCss)},inputs:{checkboxId:"checkboxId",targetStep:"targetStep"},outputs:{checkboxChangedEvent:"checkboxChangedEvent"},standalone:!1,decls:2,vars:3,consts:[[3,"id","label","control","labelRight","disabled",4,"ngIf"],[3,"id","label","control","labelRight","disabled"]],template:function(S,T){if(1&S&&(o.DNE(0,E,2,7,"iam-checkbox-row",0),o.nI1(1,"async")),2&S){let B;o.Y8G("ngIf",null==(B=o.bMT(1,1,T.stepUiConfig))||null==B.pageSettings?null:B.pageSettings.dynamicStepActivationTargets)}},dependencies:[v.bT,p.D,i.t,v.Jj],encapsulation:2})}return m})();var d=e(9856),l=e(3841);function h(m,O){if(1&m){const c=o.RV6();o.j41(0,"iam-dynamic-step-activation-checkbox",3),o.nI1(1,"upperCamelCase"),o.bIt("checkboxChangedEvent",function(T){o.eBV(c);const B=o.XpG(2);return o.Njj(B.handleCheckboxChanges(T))}),o.k0s()}if(2&m){const c=O.$implicit;o.Y8G("targetStep",c)("checkboxId","dsaCheckbox"+o.bMT(1,2,c.targetStepId))}}function u(m,O){if(1&m&&(o.j41(0,"iam-row-with-label",1),o.DNE(1,h,2,4,"iam-dynamic-step-activation-checkbox",2),o.k0s()),2&m){const c=o.XpG();o.Y8G("withoutLabel",!0),o.R7$(),o.Y8G("ngForOf",c.dynamicStepActivationTargets)}}let r=(()=>{class m{constructor(c,S){this.flowPageService=c,this.dynamicStepActivationService=S,this.stepUiConfig=this.flowPageService.getStepUiConfig().pipe((0,n.M)(T=>this.setDynamicStepActivationTargets(T)))}handleCheckboxChanges(c){this.dynamicStepActivationService.addActivation(c)}setDynamicStepActivationTargets(c){this.dynamicStepActivationTargets=c.pageAttribute("dynamicStepActivationTargets")}static#t=this.\u0275fac=function(S){return new(S||m)(o.rXU(_.z),o.rXU(b.T))};static#e=this.\u0275cmp=o.VBU({type:m,selectors:[["iam-dynamic-step-activation-checkboxes"]],standalone:!1,decls:2,vars:3,consts:[[3,"withoutLabel",4,"ngIf"],[3,"withoutLabel"],[3,"targetStep","checkboxId","checkboxChangedEvent",4,"ngFor","ngForOf"],[3,"checkboxChangedEvent","targetStep","checkboxId"]],template:function(S,T){if(1&S&&(o.DNE(0,u,2,2,"iam-row-with-label",0),o.nI1(1,"async")),2&S){let B;o.Y8G("ngIf",(null==(B=o.bMT(1,1,T.stepUiConfig))||null==B.pageSettings||null==B.pageSettings.dynamicStepActivationTargets?null:B.pageSettings.dynamicStepActivationTargets.length)>0)}},dependencies:[v.Sq,v.bT,g,d.U,v.Jj,l.L],encapsulation:2})}return m})()},9710:(A,I,e)=>{e.d(I,{s:()=>v});var _=e(4438),b=(e(2263),e(9417));const o=["*"];let v=(()=>{class y{constructor(){this.autocomplete="off",this.formSubmit=new _.bkB}static#t=this.\u0275fac=function(p){return new(p||y)};static#e=this.\u0275cmp=_.VBU({type:y,selectors:[["iam-form"]],inputs:{autocomplete:"autocomplete",form:"form"},outputs:{formSubmit:"formSubmit"},standalone:!1,ngContentSelectors:o,decls:2,vars:2,consts:[[3,"ngSubmit","formGroup"]],template:function(p,i){1&p&&(_.NAR(),_.j41(0,"form",0),_.bIt("ngSubmit",function(g){return i.formSubmit.emit(g)}),_.SdG(1),_.k0s()),2&p&&(_.Y8G("formGroup",i.form.formGroup),_.BMQ("autocomplete",i.autocomplete))},dependencies:[b.qT,b.cb,b.j4],encapsulation:2})}return y})()},9099:(A,I,e)=>{e.d(I,{a:()=>i});var _=e(6247),n=e(7673),b=e(6354),o=e(4438),v=e(177),y=e(3594),w=e(3841);function D(E,g){if(1&E&&(o.nrm(0,"iam-goto-button",2),o.nI1(1,"upperCamelCase")),2&E){const d=g.$implicit,l=o.XpG(2);o.Y8G("currentStepId",l.currentStepId)("targetStepId",d)("disableWhenBusy",l.disableAllWhenBusy)("right",l.allRight)("buttonId","gotoButton"+o.bMT(1,6,d))("beforeGotoTargetStep",l.allBeforeGotoTargetStep)}}function p(E,g){if(1&E&&(o.qex(0),o.DNE(1,D,2,8,"iam-goto-button",1),o.nI1(2,"async"),o.bVm()),2&E){const d=o.XpG();o.R7$(),o.Y8G("ngForOf",o.bMT(2,1,d.gotoTargetsStepIds))}}let i=(()=>{class E{constructor(d){this.flowPageService=d,this.disableAllWhenBusy=!0,this.allRight=!0,this.allBeforeGotoTargetStep=this.nopBeforeGotoTargetStep,this.stepUiConfig=this.flowPageService.getStepUiConfig()}get hostCss(){return"iam-btns-goto-wrapper"}ngOnInit(){this.gotoTargetsStepIds=this.stepUiConfig.pipe((0,b.T)(d=>this.setCurrentStepIdAndGetGotoTargetsStepIds(d)))}setCurrentStepIdAndGetGotoTargetsStepIds(d){return this.currentStepId=d.pageId.replace(/\//g,""),d.pageAttribute("interactiveGotoTargets").targetStepIds}nopBeforeGotoTargetStep(){return(0,n.of)(!0)}static#t=this.\u0275fac=function(l){return new(l||E)(o.rXU(_.z))};static#e=this.\u0275cmp=o.VBU({type:E,selectors:[["iam-goto-buttons"]],hostVars:2,hostBindings:function(l,h){2&l&&o.HbH(h.hostCss)},inputs:{disableAllWhenBusy:"disableAllWhenBusy",allRight:"allRight",allBeforeGotoTargetStep:"allBeforeGotoTargetStep"},standalone:!1,decls:2,vars:3,consts:[[4,"ngIf"],[3,"currentStepId","targetStepId","disableWhenBusy","right","buttonId","beforeGotoTargetStep",4,"ngFor","ngForOf"],[3,"currentStepId","targetStepId","disableWhenBusy","right","buttonId","beforeGotoTargetStep"]],template:function(l,h){if(1&l&&(o.DNE(0,p,3,3,"ng-container",0),o.nI1(1,"async")),2&l){let u;o.Y8G("ngIf",null==(u=o.bMT(1,1,h.stepUiConfig))||null==u.pageSettings?null:u.pageSettings.interactiveGotoTargets)}},dependencies:[v.Sq,v.bT,y.Z,v.Jj,w.L],encapsulation:2})}return E})()},3001:(A,I,e)=>{e.d(I,{e:()=>g});var _=e(3719),n=e(4438),b=e(177),o=e(9417),v=e(9276),y=e(9856),w=e(1463);const D=["*"],p=()=>({display:"none"});function i(d,l){if(1&d){const h=n.RV6();n.j41(0,"button",4),n.bIt("click",function(){n.eBV(h);const r=n.XpG();return n.Njj(r.isPasswordConcealed=!r.isPasswordConcealed)}),n.nrm(1,"img",5),n.nI1(2,"translate"),n.k0s()}
1if(2&d){const h=n.XpG();n.AVh("iam-invalid",h.hasError()),n.Y8G("ngStyle",n.lJ4(7,p)),n.R7$(),n.Y8G("ngSrc",h.isPasswordConcealed?"assets/custom/img/eye-regular.svg":"assets/custom/img/eye-slash-regular.svg")("alt",n.bMT(2,5,"authentication.password.show-password"))}}function E(d,l){if(1&d&&n.nrm(0,"iam-errors",3),2&d){const h=n.XpG();n.Y8G("id",h.errorFor(h.id))("errors",h.getErrors())}}let g=(()=>{class d extends _.G{constructor(){super(...arguments),this.label="",this.placeholder="",this.focus=!1,this.readonly=!1,this.inputNgClass={},this.required=!1,this.autocapitalize=!1,this.spellcheck=!1,this.isPasswordConcealed=!0}get hostCss(){return"iam-row-group"}determineType(){return"password"===this.type?this.isPasswordConcealed?"password":"text":this.type||"text"}static#t=this.\u0275fac=(()=>{let h;return function(r){return(h||(h=n.xGo(d)))(r||d)}})();static#e=this.\u0275cmp=n.VBU({type:d,selectors:[["iam-input-row"]],hostVars:2,hostBindings:function(u,r){2&u&&n.HbH(r.hostCss)},inputs:{id:"id",name:"name",label:"label",type:"type",textArguments:"textArguments",placeholder:"placeholder",focus:"focus",readonly:"readonly",inputNgClass:"inputNgClass",required:"required",autocapitalize:"autocapitalize",spellcheck:"spellcheck"},standalone:!1,features:[n.Vt3],ngContentSelectors:D,decls:6,vars:23,consts:[[3,"label","labelFor","required"],[1,"iam-form-control",3,"formControl","name","autofocus","readonly","ngClass"],["type","button",1,"iam-btn","iam-btn-outline-secondary","iam-show-password-toggle",3,"ngStyle","iam-invalid"],[3,"id","errors"],["type","button",1,"iam-btn","iam-btn-outline-secondary","iam-show-password-toggle",3,"click","ngStyle"],["height","16","width","16",3,"ngSrc","alt"]],template:function(u,r){1&u&&(n.NAR(),n.j41(0,"iam-row-with-label",0),n.nrm(1,"input",1),n.nI1(2,"translate"),n.DNE(3,i,3,8,"button",2),n.SdG(4),n.DNE(5,E,1,2,"iam-errors",3),n.k0s()),2&u&&(n.Y8G("label",r.label)("labelFor",r.name||r.id)("required",r.required),n.R7$(),n.AVh("iam-is-invalid",r.hasError())("iam-password-input-field","password"===r.type),n.Y8G("formControl",r.control)("name",r.name||r.id)("autofocus",r.focus)("readonly",r.readonly)("ngClass",r.inputNgClass),n.BMQ("type",r.determineType())("id",r.id)("placeholder",n.i5U(2,20,r.placeholder,r.textArguments))("autocapitalize",r.autocapitalize?"on":"off")("spellcheck",r.spellcheck)("aria-describedby",r.hasError()?r.errorFor(r.id):void 0),n.R7$(2),n.vxM("password"===r.type?3:-1),n.R7$(2),n.vxM(r.hasError()?5:-1))},dependencies:[b.YU,b.B3,o.me,o.BC,o.l_,b.kt,v.I,y.U,w.t],encapsulation:2})}return d})()}}]);
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.