PageSourceSearch

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

js swica.ch collected 2026-10-01 11:55:00 UTC 9,686 bytes, 1 lines download raw bytes

1import{f as J}from"./chunk-6YU4FSJZ.js";import{a as h,b as ht,c as b}from"./chunk-FWTG5XIZ.js";import{b as lt,d as L,i as gt}from"./chunk-ACJ3NLO5.js";import{I as dt,J as g,f as N,g as E,o as d}from"./chunk-GPVZISOV.js";import{R as pt,U as T,f as st,g as M,l as mt,la as ut,na as ft,q as ct}from"./chunk-SEQCRKB6.js";import{Aa as u,B as Q,Ba as tt,Ca as et,Cb as ot,Db as nt,E as W,Ea as k,Fa as _,Ga as x,O as w,R as X,Tb as at,U as S,V as q,Y as o,Ya as R,Z as j,_ as U,_a as it,cb as B,db as O,ea as Y,ia as m,la as f,ma as z,n as P,na as Z,ob as rt,pa as p,pb as F,qa as y,rb as H,s as D,xa as n,ya as c,za as l}from"./chunk-HBLARLGW.js";var I=class{static clearModal(){document.querySelector(".modal-backdrop")?.remove(),document.body.classList.remove("modal-open")}};var V=(()=>{let t=class t{constructor(){this.http=o(nt)}getUiConfig(){return this.http.get(ct(["public","ui","static","configuration"]))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var v=(()=>{let t=class t extends ht{constructor(){super(...arguments),this.staticPageService=o(V)}getUiConfig(){return this.staticPageService.getUiConfig().pipe(D(r=>r.data.attributes))}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Y(t)))(s||t)}})(),t.\u0275dir=Z({type:t,features:[p]});let e=t;return e})();function Dt(e,t){if(e&1){let a=k();c(0,"iam-button-row")(1,"iam-button",4),_("buttonClick",function(){j(a);let i=x(2);return U(i.toStartPage())}),l()()}e&2&&(m(),n("id","back")("text","general.error.back")("autofocus",!0))}function wt(e,t){if(e&1&&(c(0,"iam-page",1),u(1,"iam-text-message",2),y(2,Dt,2,3,"iam-button-row",3),l()),e&2){let a=x();n("pageId",a.pageId)("bodyAttributes",a.bodyAttributes)("hideMaintenanceMessages",!0)("title","general.error.title"),m(),n("id","errorDescription")("text","general.error.description"),m(),n("ngIf",a.hasLastUrl())}}var xt=(()=>{let t=class t extends v{constructor(){super(),this.bodyAttributes={[h]:b.Error},this.lastUrl=void 0,this.history=o(lt),this.terminateService=o(L),this.currentFlow=o(M),this.routes=o(T)}get pageId(){return"iamError"}ngOnInit(){I.clearModal(),this.lastUrl=this.history.lastUrlFromHistory(),this.currentFlow.delete(),this.ready=this.initUiConfig().pipe(w(()=>this.terminateService.terminateAllFlows()),D(()=>!0),W(()=>P(!0)))}hasLastUrl(){return st.isNotBlank(this.lastUrl)}toStartPage(){this.lastUrl&&this.routes.navigateTo(mt()+this.lastUrl)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=f({type:t,selectors:[["ng-component"]],standalone:!1,features:[p],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","hideMaintenanceMessages","title",4,"ngIf"],[3,"pageId","bodyAttributes","hideMaintenanceMessages","title"],[3,"id","text"],[4,"ngIf"],[3,"buttonClick","id","text","autofocus"]],template:function(i,s){i&1&&(y(0,wt,3,7,"iam-page",0),B(1,"async")),i&2&&n("ngIf",O(1,1,s.ready))},dependencies:[F,N,E,d,g,H],encapsulation:2});let e=t;return e})();var Ct=(()=>{let t=class t extends v{get pageId(){return"iamNotFound"}constructor(){super(),this.bodyAttributes={[h]:b.Error},this.currentFlow=o(M)}ngOnInit(){super.ngOnInit(),I.clearModal(),this.currentFlow.delete()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=f({type:t,selectors:[["ng-component"]],standalone:!1,features:[p],decls:2,vars:6,consts:[[3,"hideMaintenanceMessages","bodyAttributes","pageId","title"],[3,"id","text"]],template:function(i,s){i&1&&(c(0,"iam-page",0),u(1,"iam-text-message",1),l()),i&2&&(n("hideMaintenanceMessages",!0)("bodyAttributes",s.bodyAttributes)("pageId","iamNotFound")("title","general.error.not-found.title"),m(),n("id","notFoundDescription")("text","general.error.not-found.description"))},dependencies:[d,g],encapsulation:2});let e=t;return e})();var A=(()=>{let t=class t{constructor(){this.maintenanceMessageService=o(dt)}getMaintenanceMessages(){return this.maintenanceMessageService.getMaintenanceMessages(void 0,[ot.NotImplemented])}isSystemUnavailable(){return this.getMaintenanceMessages().pipe(D(r=>r.some(i=>!i.systemAvailable)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var St=e=>["iam-maintenance-message",e];function _t(e,t){if(e&1&&u(0,"iam-text-message",5),e&2){let a=x().$implicit;n("id","maintenanceMessage"+a.name)("text",a.text)("textNgClass",it(4,St,a.location?"iam-maintenance-message-location-"+a.location:""))("safeHtml",!0)}}function Ft(e,t){if(e&1&&(tt(0),y(1,_t,1,6,"iam-text-message",4),et()),e&2){let a=t.$implicit;m(),n("ngIf",a.text&&a.text.length>0&&!a.systemAvailable)}}function Tt(e,t){if(e&1&&(c(0,"iam-page",1),u(1,"iam-text-message",2),y(2,Ft,2,1,"ng-container",3),l()),e&2){let a=t.ngIf,r=x();n("pageId","iamNotAvailable")("bodyAttributes",r.bodyAttributes)("title","general.error.not-available.title")("hideMaintenanceMessages",!0),m(),n("id","notAvailableDescription")("text","general.error.not-available.description"),m(),n("ngForOf",a)}}var Mt=(()=>{let t=class t extends v{get pageId(){return"iamNotAvailable"}constructor(){super(),this.bodyAttributes={[h]:b.Error},this.service=o(A),this.languageService=o(pt),this.terminateService=o(L),this.currentFlow=o(M)}ngOnInit(){this.currentFlow.delete(),this.maintenanceMessages=this.initUiConfig().pipe(w(()=>this.terminateService.terminateAllFlowsAndUserSession()),w(()=>this.onUpdateTermsEvents()),w(()=>
1this.service.getMaintenanceMessages()))}onUpdateTermsEvents(){return Q(this.languageService.onLanguageChange,P(!0))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=f({type:t,selectors:[["ng-component"]],standalone:!1,features:[R([A]),p],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title","hideMaintenanceMessages",4,"ngIf"],[3,"pageId","bodyAttributes","title","hideMaintenanceMessages"],[3,"id","text"],[4,"ngFor","ngForOf"],[3,"id","text","textNgClass","safeHtml",4,"ngIf"],[3,"id","text","textNgClass","safeHtml"]],template:function(i,s){i&1&&(y(0,Tt,3,7,"iam-page",0),B(1,"async")),i&2&&n("ngIf",O(1,1,s.maintenanceMessages))},dependencies:[rt,F,d,g,H],encapsulation:2});let e=t;return e})();var K=(()=>{let t=class t{constructor(){this.pages=o(ft),this.notAvailableService=o(A)}canActivate(){return this.notAvailableService.isSystemUnavailable().pipe(X(r=>this.showApplicationAccess(!r)))}showApplicationAccess(r){r&&this.pages.routes.auth.application.access.navigate()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var It=(()=>{let t=class t extends v{get pageId(){return"iamNoAccess"}constructor(){super(),this.bodyAttributes={[h]:b.Error},this.routes=o(T),this.currentFlow=o(M)}ngOnInit(){super.ngOnInit(),this.currentFlow.delete()}logout(){this.routes.auth.logout.root.navigate()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=f({type:t,selectors:[["ng-component"]],standalone:!1,features:[p],decls:4,vars:9,consts:[[3,"hideMaintenanceMessages","bodyAttributes","pageId","title"],[3,"id","text"],[3,"buttonClick","id","text","autofocus"]],template:function(i,s){i&1&&(c(0,"iam-page",0),u(1,"iam-text-message",1),c(2,"iam-button-row")(3,"iam-button",2),_("buttonClick",function(){return s.logout()}),l()()()),i&2&&(n("hideMaintenanceMessages",!0)("bodyAttributes",s.bodyAttributes)("pageId",s.pageId)("title","general.error.no-access.title"),m(),n("id","noAccessDescription")("text","general.error.no-access.description"),m(2),n("id","noAccessLogout")("text","general.error.no-access.logout")("autofocus",!0))},dependencies:[N,E,d,g],encapsulation:2});let e=t;return e})();function Nt(e,t){if(e&1){let a=k();c(0,"iam-button-row")(1,"iam-button",3),_("buttonClick",function(){j(a);let i=x();return U(i.goToTarget(i.errorDetails.target))}),l()()}if(e&2){let a=x();m(),n("id","errorTarget")("text",a.errorDetails.target.buttonText)("autofocus",!0)}}var At=(()=>{let t=class t extends v{constructor(){super(),this.bodyAttributes={[h]:b.Error},this.errorDetailsService=o(J),this.routes=o(T)}get pageId(){return"iamErrorMessage"}ngOnInit(){super.ngOnInit(),I.clearModal(),this.errorDetails=this.errorDetailsService.errorDetails()}goToTarget(r){this.routes.navigateTo(r.url,r.extras)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=f({type:t,selectors:[["ng-component"]],standalone:!1,features:[R([J]),p],decls:3,vars:8,consts:[[3,"pageId","hideMaintenanceMessages","bodyAttributes","title"],[3,"id","text","textArguments"],[4,"ngIf"],[3,"buttonClick","id","text","autofocus"]],template:function(i,s){i&1&&(c(0,"iam-page",0),u(1,"iam-text-message",1),y(2,Nt,2,3,"iam-button-row",2),l()),i&2&&(n("pageId",s.pageId)("hideMaintenanceMessages",!0)("bodyAttributes",s.bodyAttributes)("title",s.errorDetails.message.title),m(),n("id","errorDescription")("text",s.errorDetails.message.description)("textArguments",s.errorDetails.message.arguments),m(),n("ngIf",s.errorDetails.target))},dependencies:[F,N,E,d,g],encapsulation:2});let e=t;return e})();var Et=[{path:"",component:xt,pathMatch:"full",runGuardsAndResolvers:"always"},{path:"message",component:At,pathMatch:"full",runGuardsAndResolvers:"always"},{path:"not-available",component:Mt,canActivate:[()=>o(K).canActivate()],runGuardsAndResolvers:"always"},{path:"not-found",component:Ct,runGuardsAndResolvers:"always"},{path:"no-access",component:It,runGuardsAndResolvers:"always"}],Pt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=z({type:t}),t.\u0275inj=q({});let e=t;return e})(),hi=(()=>{let t=class t{static forRoot(){return{ngModule:Pt,providers:[ut,K,A,V]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=z({type:t}),t.\u0275inj=q({imports:[gt,at.forChild(Et)]});let e=t;return e})();export{Pt as a,hi as b};

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.