1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5072],{2201:(x,C,t)=>{t.d(C,{N:()=>R});var u=t(2263),c=t(7805),d=t(6354);class e{constructor(){this.label="",this.defaultDevice=!1,this.id="",this.offline=!1}}var m=t(7348),D=t(5482),g=t(2652),n=t(4438),s=t(1626),v=t(6189);let l=(()=>{class b{constructor(o,a,T){this.http=o,this.restEndpoints=a,this.flowSessionService=T,this.offlineDevice="offline_device"}toCrontoPushDevices(o){const a=[];return o.forEach(T=>a.push(T)),a.push(this.createOfflineDevice()),a}select(o){return o.id===this.offlineDevice?this.selectOffline():this.selectDevice(o.id)}selectDevice(o){return this.http.post((0,m.OZ)(this.restEndpoints.selectDevice(o)),null,(0,g.R)()).pipe((0,d.T)(a=>this.flowSessionService.createFlowSession(a)))}selectOffline(){return this.http.post((0,m.OZ)(this.restEndpoints.selectOffline()),null,{observe:"response"}).pipe((0,d.T)(o=>this.flowSessionService.createFlowSession(o)))}createOfflineDevice(){const o=new e;return o.defaultDevice=!1,o.id=this.offlineDevice,o.offline=!0,o}static#t=this.\u0275fac=function(a){return new(a||b)(n.KVO(s.Qq),n.KVO(v.U),n.KVO(D.Q))};static#e=this.\u0275prov=n.jDH({token:b,factory:b.\u0275fac})}return b})();var y=t(5451),h=t(6247),_=t(8141),S=t(7006),P=t(177),p=t(57),r=t(4160),I=t(5033),i=t(9099),f=t(7493),E=t(9710),B=t(6955),M=t(6453),A=t(3813);function U(b,O){if(1&b&&n.nrm(0,"iam-radio",6),2&b){const o=O.$implicit,a=n.XpG(2);n.Y8G("id","crontoDevice-"+o.id)("value",o.id)("label",a.labelKey(o))("control",a.form.controls.id)}}function G(b,O){if(1&b){const o=n.RV6();n.j41(0,"iam-page",1)(1,"iam-form",2),n.bIt("formSubmit",function(){n.eBV(o);const T=n.XpG();return n.Njj(T.selectDevice(T.form.model))}),n.nrm(2,"iam-text-message",3),n.DNE(3,U,1,4,"iam-radio",4),n.nrm(4,"iam-dynamic-step-activation-checkboxes"),n.j41(5,"iam-button-row"),n.nrm(6,"iam-button",5)(7,"iam-cancel-button")(8,"iam-goto-buttons"),n.k0s()()()}if(2&b){const o=O.ngIf,a=n.XpG();n.Y8G("pageId",a.pageId)("bodyAttributes",a.bodyAttributes)("title",a.translationPrefix+".cronto.selection.title"),n.R7$(),n.Y8G("form",a.form),n.R7$(),n.Y8G("id","selectionInstructions")("text",a.translationPrefix+".cronto.selection.instructions"),n.R7$(),n.Y8G("ngForOf",o),n.R7$(3),n.Y8G("id","selectDevice")("submit",!0)("disabled",!a.form.valid)("autofocus",a.hasDefaultDevice(o))("text",a.translationPrefix+".cronto.selection.actions.select-device")}}let R=(()=>{class b extends y.V{constructor(o,a,T){super(a,T),this.service=o}ngOnInit(){this.devices=this.initUiConfig().pipe((0,d.T)(o=>this.service.toCrontoPushDevices(o.additionalAttribute("deviceChoices"))),(0,_.M)(o=>this.initializeForm(o)))}selectDevice(o){this.service.select(o).subscribe({next:a=>this.handleSuccessfulStep(a),error:a=>this.handleFailedStep(a)})}labelKey(o){return o.offline?this.translationPrefix+".cronto.selection.offline-choice":o.label}hasDefaultDevice(o){return!S.D.isBlank(this.getDefaultCrontoDeviceID(o))}initializeForm(o){this.form=u.l.of({id:this.getDefaultCrontoDeviceID(o)},{required:["id"]})}getDefaultCrontoDeviceID(o){let a="";return o.forEach(T=>{T.defaultDevice&&(a=T.id)}),a}static#t=this.\u0275fac=function(a){return new(a||b)(n.rXU(l),n.rXU(h.z),n.rXU(c.b))};static#e=this.\u0275cmp=n.VBU({type:b,selectors:[["iam-cronto-selection"]],inputs:{translationPrefix:"translationPrefix",pageId:"pageId"},standalone:!1,features:[n.Jv_([l]),n.Vt3],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"formSubmit","form"],[3,"id","text"],[3,"id","value","label","control",4,"ngFor","ngForOf"],[3,"id","submit","disabled","autofocus","text"],[3,"id","value","label","control"]],template:function(a,T){1&a&&(n.DNE(0,G,9,12,"iam-page",0),n.nI1(1,"async")),2&a&&n.Y8G("ngIf",n.bMT(1,1,T.devices))},dependencies:[P.Sq,P.bT,p.m,r.Q,I.Q,i.a,f.E,E.s,B.v,M.I,A.H,P.Jj],encapsulation:2})}return b})()},9928:(x,C,t)=>{t.d(C,{E:()=>e});var u=t(1552),c=t(4720),d=t(4438);let e=(()=>{class m{static#t=this.\u0275fac=function(n){return new(n||m)};static#e=this.\u0275mod=d.$C({type:m});static#n=this.\u0275inj=d.G2t({imports:[c.S,u.G]})}return m})()},3841:(x,C,t)=>{t.d(C,{L:()=>e});var u=t(7376),d=t(4438);let e=(()=>{class m{transform(g){return(0,u.upperFirst)((0,u.camelCase)(g))}static#t=this.\u0275fac=function(n){return new(n||m)};static#e=this.\u0275pipe=d.EJ8({name:"upperCamelCase",type:m,pure:!0,standalone:!1});static#n=this.\u0275prov=d.jDH({token:m,factory:m.\u0275fac})}return m})()},5033:(x,C,t)=>{t.d(C,{Q:()=>_});var u=t(6247),c=t(2315),d=t(6884),e=t(7673),m=t(8141),D=t(6354),g=t(5558),n=t(7613),s=t(4438),v=t(1400),l=t(177),y=t(4160);function h(S,P){if(1&S){const p=s.RV6();s.j41(0,"iam-button",1),s.bIt("buttonClick",function(){const I=s.eBV(p).ngIf,i=s.XpG();return s.Njj(i.cancelFlow(I.targetUri))}),s.k0s()}if(2&S){const p=s.XpG();s.Y8G("id",p.buttonId)("submit",!1)("right",p.right)("text",p.text||p.translationKey)("disableWhenBusy",p.disableWhenBusy)}}let _=(()=>
1{class S{set buttonId(p){p&&(this._id=p)}get buttonId(){return this._id}constructor(p,r,I,i,f){this.flowPageService=p,this.flowNavigationService=r,this.pageAlertService=I,this.routes=i,this.currentFlow=f,this.right=!0,this.disableWhenBusy=!0,this.beforeCancelFlow=this.nopBeforeCancelFlow,this._id="cancelButton",this.cancelButton=this.flowPageService.getStepUiConfig().pipe((0,m.M)(E=>{this._translationPrefix=E.getResourceKeyPrefix(),this.translationKey=this._translationPrefix+".pages.actions.cancel"}),(0,D.T)(E=>E.pageAttribute("cancelButtonSettings")))}get hostCss(){return"iam-btn-cancel"}cancelFlow(p){this.beforeCancelFlow().pipe((0,g.n)(()=>this.flowPageService.cancelFlow())).subscribe(()=>{this._translationPrefix&&this.pageAlertService.info(this._translationPrefix+".pages.messages.cancel");const r=this.currentFlow.retrieveId();this.flowPageService.clearState(),p?this.routes.navigateTo(p):this.flowNavigationService.navigateToFlow(r)})}nopBeforeCancelFlow(){return(0,e.of)(!0)}static#t=this.\u0275fac=function(r){return new(r||S)(s.rXU(u.z),s.rXU(v._),s.rXU(d.D),s.rXU(n.BV),s.rXU(c.E))};static#e=this.\u0275cmp=s.VBU({type:S,selectors:[["iam-cancel-button"]],hostVars:2,hostBindings:function(r,I){2&r&&s.HbH(I.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(r,I){1&r&&(s.DNE(0,h,1,5,"iam-button",0),s.nI1(1,"async")),2&r&&s.Y8G("ngIf",s.bMT(1,1,I.cancelButton))},dependencies:[l.bT,y.Q,l.Jj],encapsulation:2})}return S})()},7493:(x,C,t)=>{t.d(C,{E:()=>p});var u=t(6247),c=t(8141),d=t(3597),e=t(4438),m=t(177),D=t(2315),g=t(7301),n=t(9417),s=t(2816),v=t(1463);function l(r,I){if(1&r&&(e.nrm(0,"iam-checkbox-row",1),e.nI1(1,"translate")),2&r){const i=e.XpG();e.Y8G("id",i.checkboxId)("label",e.bMT(1,5,i.translationKey))("control",i.control)("labelRight",!0)("disabled",i.disabled)}}let y=(()=>{class r{get hostCss(){return"iam-dynamic-step-activation-checkbox"}set checkboxId(i){i&&(this._id=i)}get checkboxId(){return this._id}set targetStep(i){i&&(this._target=i,this.translationKey=this.translationKey.replace("{targetStepId}",i.targetStepId))}get targetStep(){return this._target}constructor(i,f){this.currentFlow=i,this.flowPageService=f,this.checkboxChangedEvent=new e.bkB,this.stepUiConfig=this.flowPageService.getStepUiConfig(),this.translationKey=this.keyPrefix()+".pages.actions.dynamic-step.{targetStepId}"}ngOnInit(){this.control=new n.hs,this.control.setValue(this._target.activated),this._checkboxSubscription=this.control.valueChanges.subscribe(i=>{this._target.activated=i,this.checkboxChangedEvent.emit({targetStepId:this._target.targetStepId,activated:i})})}ngOnDestroy(){this._checkboxSubscription.unsubscribe()}get disabled(){return!this._target.activated&&!this._target.activatable||this._target.activated&&!this._target.deactivatable}keyPrefix(){const i=this.currentFlow.retrieveType();return(0,g.U)(i)}static#t=this.\u0275fac=function(f){return new(f||r)(e.rXU(D.E),e.rXU(u.z))};static#e=this.\u0275cmp=e.VBU({type:r,selectors:[["iam-dynamic-step-activation-checkbox"]],hostVars:2,hostBindings:function(f,E){2&f&&e.HbH(E.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(f,E){if(1&f&&(e.DNE(0,l,2,7,"iam-checkbox-row",0),e.nI1(1,"async")),2&f){let B;e.Y8G("ngIf",null==(B=e.bMT(1,1,E.stepUiConfig))||null==B.pageSettings?null:B.pageSettings.dynamicStepActivationTargets)}},dependencies:[m.bT,s.D,v.t,m.Jj],encapsulation:2})}return r})();var h=t(9856),_=t(3841);function S(r,I){if(1&r){const i=e.RV6();e.j41(0,"iam-dynamic-step-activation-checkbox",3),e.nI1(1,"upperCamelCase"),e.bIt("checkboxChangedEvent",function(E){e.eBV(i);const B=e.XpG(2);return e.Njj(B.handleCheckboxChanges(E))}),e.k0s()}if(2&r){const i=I.$implicit;e.Y8G("targetStep",i)("checkboxId","dsaCheckbox"+e.bMT(1,2,i.targetStepId))}}function P(r,I){if(1&r&&(e.j41(0,"iam-row-with-label",1),e.DNE(1,S,2,4,"iam-dynamic-step-activation-checkbox",2),e.k0s()),2&r){const i=e.XpG();e.Y8G("withoutLabel",!0),e.R7$(),e.Y8G("ngForOf",i.dynamicStepActivationTargets)}}let p=(()=>
1{class r{constructor(i,f){this.flowPageService=i,this.dynamicStepActivationService=f,this.stepUiConfig=this.flowPageService.getStepUiConfig().pipe((0,c.M)(E=>this.setDynamicStepActivationTargets(E)))}handleCheckboxChanges(i){this.dynamicStepActivationService.addActivation(i)}setDynamicStepActivationTargets(i){this.dynamicStepActivationTargets=i.pageAttribute("dynamicStepActivationTargets")}static#t=this.\u0275fac=function(f){return new(f||r)(e.rXU(u.z),e.rXU(d.T))};static#e=this.\u0275cmp=e.VBU({type:r,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(f,E){if(1&f&&(e.DNE(0,P,2,2,"iam-row-with-label",0),e.nI1(1,"async")),2&f){let B;e.Y8G("ngIf",(null==(B=e.bMT(1,1,E.stepUiConfig))||null==B.pageSettings||null==B.pageSettings.dynamicStepActivationTargets?null:B.pageSettings.dynamicStepActivationTargets.length)>0)}},dependencies:[m.Sq,m.bT,y,h.U,m.Jj,_.L],encapsulation:2})}return r})()},9710:(x,C,t)=>{t.d(C,{s:()=>m});var u=t(4438),d=(t(2263),t(9417));const e=["*"];let m=(()=>{class D{constructor(){this.autocomplete="off",this.formSubmit=new u.bkB}static#t=this.\u0275fac=function(s){return new(s||D)};static#e=this.\u0275cmp=u.VBU({type:D,selectors:[["iam-form"]],inputs:{autocomplete:"autocomplete",form:"form"},outputs:{formSubmit:"formSubmit"},standalone:!1,ngContentSelectors:e,decls:2,vars:2,consts:[[3,"ngSubmit","formGroup"]],template:function(s,v){1&s&&(u.NAR(),u.j41(0,"form",0),u.bIt("ngSubmit",function(y){return v.formSubmit.emit(y)}),u.SdG(1),u.k0s()),2&s&&(u.Y8G("formGroup",v.form.formGroup),u.BMQ("autocomplete",v.autocomplete))},dependencies:[d.qT,d.cb,d.j4],encapsulation:2})}return D})()},9099:(x,C,t)=>{t.d(C,{a:()=>v});var u=t(6247),c=t(7673),d=t(6354),e=t(4438),m=t(177),D=t(3594),g=t(3841);function n(l,y){if(1&l&&(e.nrm(0,"iam-goto-button",2),e.nI1(1,"upperCamelCase")),2&l){const h=y.$implicit,_=e.XpG(2);e.Y8G("currentStepId",_.currentStepId)("targetStepId",h)("disableWhenBusy",_.disableAllWhenBusy)("right",_.allRight)("buttonId","gotoButton"+e.bMT(1,6,h))("beforeGotoTargetStep",_.allBeforeGotoTargetStep)}}function s(l,y){if(1&l&&(e.qex(0),e.DNE(1,n,2,8,"iam-goto-button",1),e.nI1(2,"async"),e.bVm()),2&l){const h=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,h.gotoTargetsStepIds))}}let v=(()=>{class l{constructor(h){this.flowPageService=h,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,d.T)(h=>this.setCurrentStepIdAndGetGotoTargetsStepIds(h)))}setCurrentStepIdAndGetGotoTargetsStepIds(h){return this.currentStepId=h.pageId.replace(/\//g,""),h.pageAttribute("interactiveGotoTargets").targetStepIds}nopBeforeGotoTargetStep(){return(0,c.of)(!0)}static#t=this.\u0275fac=function(_){return new(_||l)(e.rXU(u.z))};static#e=this.\u0275cmp=e.VBU({type:l,selectors:[["iam-goto-buttons"]],hostVars:2,hostBindings:function(_,S){2&_&&e.HbH(S.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(_,S){if(1&_&&(e.DNE(0,s,3,3,"ng-container",0),e.nI1(1,"async")),2&_){let P;e.Y8G("ngIf",null==(P=e.bMT(1,1,S.stepUiConfig))||null==P.pageSettings?null:P.pageSettings.interactiveGotoTargets)}},dependencies:[m.Sq,m.bT,D.Z,m.Jj,g.L],encapsulation:2})}return l})()},6955:(x,C,t)=>{t.d(C,{v:()=>D});var u=t(3719),c=t(4438),d=t(9417),e=t(1463);const m=["*"];let D=(()=>{class g extends u.G{constructor(){super(...arguments),this.inline=!1,this.disabled=!1}get hostCss(){let s="iam-form-check";return this.inline&&(s+=" iam-form-check-inline"),s}get labelAsString(){return this.label}static#t=this.\u0275fac=(()=>{let s;return function(l){return(s||(s=c.xGo(g)))(l||g)}})();static#e=this.\u0275cmp=c.VBU({type:g,selectors:[["iam-radio"]],hostVars:2,hostBindings:function(v,l){2&v&&c.HbH(l.hostCss)},inputs:{value:"value",name:"name",id:"id",label:"label",inline:"inline",disabled:"disabled"},standalone:!1,features:[c.Vt3],ngContentSelectors:m,decls:6,vars:9,consts:[[3,"disabled"],["type","radio",3,"name","formControl","value"],[1,"iam-form-radio-label"],[1,"iam-form-radio-label-text",3,"innerHTML"]],template:function(v,l){1&v&&(c.NAR(),c.j41(0,"fieldset",0),c.nrm(1,"input",1),c.j41(2,"label",2),c.nrm(3,"span",3),c.nI1(4,"translate"),c.k0s(),c.SdG(5),c.k0s()),2&v&&(c.Y8G("disabled",l.disabled),c.R7$(),c.Y8G("name",l.name)("formControl",l.control)("value",l.value),c.BMQ("id",l.id),c.R7$(),c.BMQ("for",l.id),c.R7$(),c.Y8G("innerHTML",c.bMT(4,7,l.labelAsString),c.npT))},dependencies:[d.me,d.Fm,d.BC,d.l_,e.t],encapsulation:2})}return g})()}}]);
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.