PageSourceSearch

https://idp.swica.ch/auth/ui/chunk-PGPSR2IK.js

js swica.ch collected 2026-10-01 11:55:35 UTC 6,586 bytes, 1 lines download raw bytes

1import{a as et}from"./chunk-NWSSGM7S.js";import"./chunk-FWTG5XIZ.js";import{i as it}from"./chunk-ACJ3NLO5.js";import{A as Z,E as $,J as tt,f as H,g as U,o as W,r as J,s as L,v as Q,x as X,z as Y}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import{d as C}from"./chunk-74CDSVWG.js";import{N,f as E,ha as z,ja as G,q as S}from"./chunk-SEQCRKB6.js";import{Aa as a,Db as K,Ea as _,Fa as b,Ga as m,R as k,Tb as q,U as F,V as A,Y as l,Ya as R,Z as f,_ as g,_a as T,cb as x,db as v,eb as B,ia as s,la as j,ma as P,pa as O,pb as D,qa as h,rb as V,s as c,xa as r,ya as u,za as d}from"./chunk-HBLARLGW.js";var w=(()=>{let i=class i{constructor(){this.http=l(K),this.flowSessionService=l(z)}selectOption(t){return this.http.post(S(["/public","authentication","migration","options",t.id,"select"]),null,C()).pipe(c(o=>this.flowSessionService.createFlowSession(o)))}skipMigration(){return this.http.post(S(["/public","authentication","migration","options","skip"]),null,C()).pipe(c(t=>this.flowSessionService.createFlowSession(t)))}rejectMigration(){return this.http.post(S(["/public","authentication","migration","options","reject"]),null,C()).pipe(c(t=>this.flowSessionService.createFlowSession(t)))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=F({token:i,factory:i.\u0275fac});let e=i;return e})();var y=class{constructor(i){this.id=i}},M=class{constructor(){this.id=""}},I=class{isSelectionRequired(){return this.options!==void 0&&this.options.length>1}get initialMigrationOption(){let i=new M;return this.isSelectionRequired()||(i.id=this.singleOption().id),i}get title(){return"authentication.migration."+this.methodKey()+"title"}get migrationInstructions(){return"authentication.migration."+this.methodKey()+"migration-instructions"}get nextStepsInstructions(){return"authentication.migration."+this.methodKey()+"next-steps-instructions"}methodKey(){return this.isSelectionRequired()?"":"methods."+this.singleOptionAsKey()+"."}singleOption(){return this.options.values().next().value}singleOptionAsKey(){let i=this.singleOption();return E.asTranslationKey(i.id)}};var st=e=>({notAfter:e});function at(e,i){if(e&1&&(a(0,"iam-radio-row",10),x(1,"toRadio")),e&2){let n=m().ngIf,t=m();r("id","radioButtonRow")("name","migrationSelectionOptions")("label","authentication.migration.selection")("control",t.form.controls.id)("radios",B(1,6,n.options,"authentication.migration.methods.{{id}}.option"))("inline",!1)}}function mt(e,i){if(e&1&&(a(0,"iam-text-message",11),x(1,"formatDate")),e&2){let n=m().ngIf;r("id","migrationDateInstructions")("text","authentication.migration.migration-date-instructions")("textArguments",T(5,st,v(1,3,n.notAfter)))}}function pt(e,i){e&1&&a(0,"iam-text-message",3),e&2&&r("id","migrationForcedInstructions")("text","authentication.migration.migration-forced-instructions")}function ct(e,i){if(e&1){let n=_();u(0,"iam-button",12),b("buttonClick",function(){f(n);let o=m(2);return g(o.skipMigration())}),d()}e&2&&r("id","skipButton")("submit",!0)("text","authentication.migration.actions.skip")}function lt(e,i){if(e&1){let n=_();u(0,"iam-button",12),b("buttonClick",function(){f(n);let o=m(2);return g(o.rejectMigration())}),d()}e&2&&r("id","rejectButton")("submit",!0)("text","authentication.migration.actions.reject")}function ut(e,i){e&1&&a(0,"iam-cancel-button")}function dt(e,i){if(e&1){let n=_();u(0,"iam-page",1)(1,"iam-form",2),a(2,"iam-text-message",3),h(3,at,2,9,"iam-radio-row",4)(4,mt,2,7,"iam-text-message",5)(5,pt,1,2,"iam-text-message",6),a(6,"iam-text-message",3)(7,"iam-dynamic-step-activation-checkboxes"),u(8,"iam-button-row")(9,"iam-button",7),b("buttonClick",function(){f(n);let o=m();return g(o.selectMigrationOption())}),d(),h(10,ct,1,3,"iam-button",8)(11,lt,1,3,"iam-button",8)(12,ut,1,0,"iam-cancel-button",9),a(13,"iam-goto-buttons"),d()()()}if(e&2){let n=i.ngIf,t=m();r("pageId",t.pageId)("bodyAttributes",t.bodyAttributes)("title",n.title),s(),r("form",t.form),s(),r("id","migrationInstructions")("text",n.migrationInstructions),s(),r("ngIf",n.isSelectionRequired()),s(),r("ngIf",n.notAfter&&n.skipPossible),s(),r("ngIf",!n.skipPossible),s(),r("id","nextStepInstructions")("text",n.nextStepsInstructions),s(3),r("id","selectButton")("submit",!0)("disabled",n.isSelectionRequired()&&!t.form.valid)("text","authentication.migration.actions.select")("autofocus",!0),s(),r("ngIf",n.skipPossible),s(),r("ngIf",n.rejectPossible),s(),r("ngIf",!n.skipPossible)}}var nt=(()=>{let i=class i extends et{constructor(){super(),this.dates=l(N),this.migrationSelectionService=l(w)}get pageId(){return"iamMigrationSelection"}ngOnInit(){this.options=this.initUiConfig().pipe(c(t=>this.toOptions(t)),k(t=>this.initializeForm(t)))}selectMigrationOption(){this.migrationSelectionService.selectOption(this.form.model).subscribe({next:t=>this.handleSuccessfulStep(t),error:t=>this.handleFailedStep(t)})}skipMigration(){this.migrationSelectionService.skipMigration().subscribe({next:t=>this.handleSuccessfulStep(t),error:t=>this.handleFailedStep(t)})}rejectMigration(){this.migrationSelectionService.rejectMigration().subscribe({next:t=>this.handleSuccessfulStep(t),error:t=>this.handleFailedStep(t)})}initializeForm(t){let o=t.initialMigrationOption;this.form=G.of(o,{required:["id"]})}toOptions(t){let o=t.additionalAttribute("migrationInfo"),p=new I;return p.skipPossible=o.skipPossible,p.rejectPossible=o.rejectPossible,o.notAfter&&(p.notAfter=this.dates.toDateTimeFromServer(o.notAfter)),p.options=o.options.map(rt=>new y(rt)),p}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=j({type:i,selectors:[["iam-migration-selection"]],standalone:!1,features:[R([w]),O],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"form"],[3,"id","text"],[3,"id","name","label","control","radios","inline",4,"ngIf"],[3,"id","text","textArguments",4,"ngIf"],[3,"id","text",4,"ngIf"],[3,"buttonClick","id","submit","disabled","text","autofocus"],[3,"id","submit","text","buttonClick",4,"ngIf"],[4,"ngIf"],[3,"id","name","label","control","radios","inline"],[3,"id","text","textArguments"],[3,"buttonClick","id","submit","text"]],template:function(o,p){o&1&&(h(0,dt,14,19,"iam-page",0),x(1,"async")),o&2&&r("ngIf",v(1,1,p.options))},dependencies:[D,H,U,Q,X,$,L,J,W,tt,V,Y,Z],encapsulation:2});let e=i;return e})();var ft=[{path:"",component:nt,pathMatch:"full",runGuardsAndResolvers:"always"}],Qt=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=P({type:i}),i.\u0275inj=A({imports:[q.forChild(ft),it]});let e=i;return e})();export{Qt as MigrationSelectionModule};

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.