PageSourceSearch

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

js swica.ch collected 2026-09-24 09:40:40 UTC 7,237 bytes, 1 lines download raw bytes

1import{a as b}from"./chunk-SORVIIVG.js";import{a as C}from"./chunk-5KHC7EZS.js";import{a as ce,b as se,c as me}from"./chunk-FWTG5XIZ.js";import{i as re}from"./chunk-ACJ3NLO5.js";import{J as ae,f as Z,g as ee,l as te,m as ie,y as oe,z as ne}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import"./chunk-74CDSVWG.js";import{N as Q,U as W,Z as X,na as Y,q as x}from"./chunk-SEQCRKB6.js";import{Aa as p,C as A,Db as h,E as T,Ea as $,F as U,Fa as H,Ga as s,O as j,Pb as J,Tb as K,U as l,V as P,Y as r,Ya as L,Z as R,_ as N,cb as _,db as k,ia as c,la as O,ma as V,n as S,ob as G,pa as B,pb as q,qa as g,rb as z,s as E,xa as a,ya as v,za as u}from"./chunk-HBLARLGW.js";var D=class{},y=class{};var f=class extends X{};var F=(()=>{let e=class e{constructor(){this.http=r(h),this.pages=r(Y),this.accessService=r(C),this.config=r(f),this.flowsService=r(b),this.dates=r(Q)}getDeviceTokenManagment(){return this.fetchUsersDeviceTokens().pipe(U(i=>this.flowsService.retrieveSelfServiceFlows().pipe(E(()=>this.createManagement(i)))))}navigateToExitTarget(){this.pages.routes.navigateTo(this.config.pageExitTarget)}getUiConfig(){return S(this.config)}fetchUsersDeviceTokens(){return this.http.get(x(["/protected","self-service","device-token","tokens"])).pipe(E(i=>this.toDeviceTokens(i.data)),T(i=>this.handleErrorResponse(i)))}createManagement(i){let o=new y;return o.deviceTokens=i,o.hasExitTarget=!!this.config.pageExitTarget,o}handleErrorResponse(i){return i.status===404?S([]):this.handleAccessError(i,this.pages.routes.protected.tokens.device.tokens.url)}handleAccessError(i,o,I){return this.accessService.handleAccessError(i,o,I)}toDeviceTokens(i){return i.map(o=>this.toDeviceToken(o))}toDeviceToken(i){let o=new D;return o.id=i.id,o.totalUsages=i.attributes.totalUsages,o.label=i.attributes.label,o.validTo=this.dates.toDateTimeFromServer(i.attributes.validTo),o.latestUsageDate=this.dates.toDateTimeFromServer(i.attributes.latestUsageDate),o.activationDate=this.dates.toDateTimeFromServer(i.attributes.activationDate),o}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac});let t=e;return t})();var M=(()=>{let e=class e{constructor(){this.http=r(h)}getDeviceTokenManagementConfig(){return this.http.get(x(["protected","self-service","ui","configuration","tokens","device-token"]))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac});let t=e;return t})();var m=class m{constructor(){this.service=r(M),this.accessService=r(C),this.routes=r(W)}resolve(){return this.service.getDeviceTokenManagementConfig().pipe(T(e=>(e.status===404?this.routes.error.notFound.navigate():this.accessService.handleAccessError(e,this.routes.protected.tokens.device.tokens.url),A)))}static resolveConfig(e){return e.snapshot.data.deviceTokenManagementConfig}};m.PROVIDER={provide:f,useFactory:m.resolveConfig,deps:[J]},m.\u0275fac=function(n){return new(n||m)},m.\u0275prov=l({token:m,factory:m.\u0275fac});var d=m;function de(t,e){t&1&&p(0,"iam-alert",5),t&2&&a("text","protected.tokens.device-token.token.missing")("type","info")("id","deviceTokensMissing")}function le(t,e){if(t&1&&p(0,"iam-text-row",8),t&2){let n=s(),i=n.$implicit,o=n.index;a("id","deviceTokenId["+o+"]")("label","protected.tokens.device-token.token.id")("value",i.id)}}function fe(t,e){if(t&1&&p(0,"iam-text-row",8),t&2){let n=s(),i=n.$implicit,o=n.index;a("id","deviceTokenLabel["+o+"]")("label","protected.tokens.device-token.token.label")("value",i.label)}}function ge(t,e){if(t&1&&(p(0,"iam-text-row",8),_(1,"formatDate")),t&2){let n=s(),i=n.$implicit,o=n.index;a("id","deviceTokenValidTo["+o+"]")("label","protected.tokens.device-token.token.valid-to")("value",k(1,3,i.validTo))}}function ve(t,e){if(t&1&&(p(0,"iam-text-row",8),_(1,"formatDate")),t&2){let n=s(),i=n.$implicit,o=n.index;a("id","deviceTokenLatestUsageDate["+o+"]")("label","protected.tokens.device-token.token.latest-usage-d
1ate")("value",k(1,3,i.latestUsageDate))}}function ue(t,e){if(t&1&&(p(0,"iam-text-row",8),_(1,"formatDate")),t&2){let n=s(),i=n.$implicit,o=n.index;a("id","deviceTokenActivationDate["+o+"]")("label","protected.tokens.device-token.token.activation-date")("value",k(1,3,i.activationDate))}}function _e(t,e){if(t&1&&(v(0,"iam-card",6),g(1,le,1,3,"iam-text-row",7)(2,fe,1,3,"iam-text-row",7)(3,ge,2,5,"iam-text-row",7)(4,ve,2,5,"iam-text-row",7)(5,ue,2,5,"iam-text-row",7),p(6,"iam-text-row",8),u()),t&2){let n=e.$implicit,i=e.index;a("id","deviceToken["+i+"]")("title","protected.tokens.device-token.token.title")("detailCard",!0),c(),a("ngIf",!n.label),c(),a("ngIf",n.label),c(),a("ngIf",n.validTo),c(),a("ngIf",n.latestUsageDate),c(),a("ngIf",n.activationDate),c(),a("id","deviceTokenTotalUsages["+i+"]")("label","protected.tokens.device-token.token.total-usages")("value",n.totalUsages.toString())}}function ke(t,e){if(t&1){let n=$();v(0,"iam-button",11),H("buttonClick",function(){R(n);let o=s(3);return N(o.navigateToExitTarget())}),u()}t&2&&a("id","exitDeviceTokenManagement")("text","protected.tokens.device-token.actions.exit")}function Te(t,e){if(t&1&&(v(0,"iam-button-row",9),g(1,ke,1,2,"iam-button",10),u()),t&2){let n=s().ngIf;a("rowNgClass","iam-mt-3"),c(),a("ngIf",n.hasExitTarget)}}function he(t,e){if(t&1&&(v(0,"iam-page",1),g(1,de,1,3,"iam-alert",2)(2,_e,7,11,"iam-card",3)(3,Te,2,2,"iam-button-row",4),u()),t&2){let n=e.ngIf,i=s();a("pageId",i.pageId)("title","protected.tokens.device-token.title")("bodyAttributes",i.bodyAttributes)("hideMaintenanceMessages",!0),c(),a("ngIf",n.deviceTokens.length===0),c(),a("ngForOf",n.deviceTokens),c(),a("ngIf",n.hasExitTarget)}}var pe=(()=>{let e=class e extends se{constructor(){super(),this.bodyAttributes={[ce]:me.ProtectedSelfService},this.pageId="iamProtectedDeviceTokenManagement",this.deviceTokenManagementService=r(F)}ngOnInit(){this.deviceTokenManagement=this.initUiConfig().pipe(j(()=>this.deviceTokenManagementService.getDeviceTokenManagment()))}navigateToExitTarget(){this.deviceTokenManagementService.navigateToExitTarget()}getUiConfig(){return this.deviceTokenManagementService.getUiConfig()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=O({type:e,selectors:[["ng-component"]],standalone:!1,features:[L([b,F,d.PROVIDER]),B],decls:2,vars:3,consts:[[3,"pageId","title","bodyAttributes","hideMaintenanceMessages",4,"ngIf"],[3,"pageId","title","bodyAttributes","hideMaintenanceMessages"],[3,"text","type","id",4,"ngIf"],[3,"id","title","detailCard",4,"ngFor","ngForOf"],[3,"rowNgClass",4,"ngIf"],[3,"text","type","id"],[3,"id","title","detailCard"],[3,"id","label","value",4,"ngIf"],[3,"id","label","value"],[3,"rowNgClass"],[3,"id","text","buttonClick",4,"ngIf"],[3,"buttonClick","id","text"]],template:function(o,I){o&1&&(g(0,he,4,7,"iam-page",0),_(1,"async")),o&2&&a("ngIf",k(1,1,I.deviceTokenManagement))},dependencies:[G,q,ie,Z,ee,te,oe,ae,z,ne],encapsulation:2});let t=e;return t})();var xe=[{path:"",pathMatch:"full",component:pe,resolve:{deviceTokenManagementConfig:()=>r(d).resolve()},runGuardsAndResolvers:"always"}],bt=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=V({type:e}),e.\u0275inj=P({providers:[d,M],imports:[K.forChild(xe),re]});let t=e;return t})();export{bt as DeviceTokenManagementModule};

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.