1import{a as g,b as P}from"./chunk-MZWHBEOR.js";import"./chunk-A352Y2TG.js";import{a as b}from"./chunk-OIRFSLWN.js";import{i as y}from"./chunk-ACJ3NLO5.js";import{a as S}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import{e as F}from"./chunk-74CDSVWG.js";import{ia as v,na as w}from"./chunk-SEQCRKB6.js";import{C as c,Cb as f,E as a,Pb as h,Tb as d,V as l,Y as s,Ya as u,la as p,ma as m}from"./chunk-HBLARLGW.js";var n=(()=>{let r=class r{constructor(){this.pages=s(w),this.route=s(h),this.publicSelfServiceUiService=s(P),this.forwardLocation=s(b),this.failureService=s(F),s(S).onReady.subscribe(()=>this.performSelect())}performSelect(){let e=this.routeParam("flowId"),t=this.queryParam("token"),o=this.queryParam("Location");o&&this.forwardLocation.store(o),e&&t?this.continueFlow(e,t):this.startFlow(e)}continueFlow(e,t){this.publicSelfServiceUiService.startContinuationFlow(e,t).pipe(a(o=>this.handleError(o,e))).subscribe({next:o=>this.publicSelfServiceUiService.handleSession(o)})}startFlow(e){this.publicSelfServiceUiService.startFlow(e).pipe(a(t=>this.handleError(t,e))).subscribe({next:t=>this.publicSelfServiceUiService.handleSession(t)})}handleError(e,t){if(e.status===404)return this.pages.routes.error.notFound.navigate(),c;let o;return e.status===f.Forbidden&&(o=new v({title:"error.flow-selection-failed.title",description:this.pages.validations.translationKeyFromError(e.error.errors[0])})),this.failureService.handleFailure({errorResponse:e,flowId:t,errorDetails:o,fromFlowStart:!0})}queryParam(e){return this.route.snapshot.queryParamMap.get(e)}routeParam(e){return this.route.snapshot.paramMap.get(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=p({type:r,selectors:[["ng-component"]],standalone:!1,features:[u([g])],decls:0,vars:0,template:function(t,o){},encapsulation:2});let i=r;return i})();var E=[{path:"",component:n,pathMatch:"full",runGuardsAndResolvers:"always"},{path:":flowId",component:n,runGuardsAndResolvers:"always"}],z=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=m({type:r}),r.\u0275inj=l({imports:[d.forChild(E),y]});let i=r;return i})();export{z as FlowSelectModule};
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.