PageSourceSearch

https://portal.finma.ch/auth-login/ui/chunk-OV65U4I7.js

js finma.ch collected 2026-09-24 08:41:25 UTC 14,326 bytes, 1 lines download raw bytes

1import{b as k}from"./chunk-JXZHDPXA.js";import{a as I}from"./chunk-SORVIIVG.js";import{a as E}from"./chunk-5KHC7EZS.js";import{a as ve,b as fe,c as ge}from"./chunk-FWTG5XIZ.js";import{i as ue}from"./chunk-ACJ3NLO5.js";import{B as me,G as de,J as _e,f as re,g as ae,l as ce,m as se,y as pe,z as le}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import"./chunk-74CDSVWG.js";import{U as ie,Z as oe,ga as L,na as ne,q as D}from"./chunk-SEQCRKB6.js";import{Aa as x,C as B,D as H,Db as A,E as g,Ea as u,F as G,Fa as v,Ga as c,O as q,Pb as ee,Tb as te,U as b,V as z,Y as s,Ya as W,Z as d,_,_a as F,cb as y,db as M,ia as p,la as J,ma as K,n as O,ob as X,pa as Q,pb as Y,qa as C,rb as Z,s as T,u as j,xa as a,ya as l,za as m}from"./chunk-HBLARLGW.js";var P=class{},U=class{},V=class{};var w=class extends oe{};var $=(()=>{let n=class n{constructor(){this.http=s(A),this.accessService=s(E),this.config=s(w),this.pages=s(ne),this.flowsService=s(I),this.protectedUiService=s(k)}getCrontoDeviceManagement(){return this.fetchCrontoDevices().pipe(G(t=>this.flowsService.retrieveSelfServiceFlows().pipe(T(e=>this.createManagement(t,e)))))}navigateToExitTarget(){this.pages.routes.navigateTo(this.config.pageExitTarget)}startFlowToAddCrontoDevice(){let t=this.config.flowToActivateDevice;return this.protectedUiService.startFlow(t).pipe(g(e=>this.handleAccessError(e,this.pages.routes.protected.select.flow.append(t).url,t)))}startFlowToOrderActivationLetter(){let t=this.config.flowToOrderActivationLetter;return this.protectedUiService.startFlow(t).pipe(g(e=>this.handleAccessError(e,this.pages.routes.protected.select.flow.append(t).url,t)))}startFlowToEditDevice(t){return this.startFlowAndSelectDevice(t,this.config.flowToRenameDevice,"select")}startFlowToDeleteCrontoDevice(t){return this.startFlowAndSelectDevice(t,this.config.flowToDeleteDevice,"remove")}startFlowToDisableDevice(t){return this.startFlowAndSelectDevice(t,this.config.flowToDisableDevice,"disable")}startFlowToEnableDevice(t){return this.startFlowAndSelectDevice(t,this.config.flowToEnableDevice,"enable")}startFlowToEnablePush(t){return this.startFlowAndSelectDeviceForPush(t,this.config.flowToEnablePush,"enable")}startFlowToDisablePush(t){return this.startFlowAndSelectDeviceForPush(t,this.config.flowToDisablePush,"disable")}getUiConfig(){return O(this.config)}fetchCrontoDevices(){return this.http.get(D(["/protected","self-service","cronto","devices"])).pipe(T(t=>this.toDevices(t.data)),g(t=>this.handleErrorResponse(t)))}createManagement(t,e){let r=new V;return r.devices=t,r.canActivate=e.isAccessible(this.config.flowToActivateDevice),r.canRename=e.isAccessible(this.config.flowToRenameDevice),r.canDelete=e.isAccessible(this.config.flowToDeleteDevice),r.canEnable=e.isAccessible(this.config.flowToEnableDevice),r.canDisable=e.isAccessible(this.config.flowToDisableDevice),r.canEnablePush=e.isAccessible(this.config.flowToEnablePush),r.canDisablePush=e.isAccessible(this.config.flowToDisablePush),r.canOrderActivationLetter=e.isAccessible(this.config.flowToOrderActivationLetter),r.hasExitTarget=!!this.config.pageExitTarget,r}startFlowAndSelectDevice(t,e,r){return this.protectedUiService.startFlow(e).pipe(j(()=>this.selectCrontoDevice(t.id,r)),g(S=>this.handleAccessError(S,this.pages.routes.protected.tokens.cronto.devices.url,e)))}startFlowAndSelectDeviceForPush(t,e,r){return this.protectedUiService.startFlow(e).pipe(j(()=>this.selectCrontoDeviceForPush(t.id,r)),g(S=>this.handleAccessError(S,this.pages.routes.protected.tokens.cronto.devices.url,e)))}selectCrontoDevice(t,e){return this.http.post(D(["/protected","self-service","cronto","devices",t,e]),null,{observe:"response"}).pipe(T(r=>new L(r)))}selectCrontoDeviceForPush(t,e){return this.http.post(D(["/protected","self-service","cronto","devices",t,"push",e]),null,{observe:"response"}).pipe(T(r=>new L(r)))}handleErrorResponse(t){return t.status===404?O([]):this.handleAccessError(t,this.pages.routes.protected.tokens.cronto.devices.url)}handleAccessError(t,e,r){return this.accessService.handleAccessError(t,e,r)}toDevices(t){return t.map(e=>this.toDevice(e))}toDevice(t){let e=new P;return e.id=t.id,e.displayId=t.attributes.displayId,e.label=t.attributes.label,e.lastUsageDate=t.attributes.lastUsageDate,e.enabled=t.attributes.enabled,e.pushNotificationState=new U,e.pushNotificationState.allowed=t.attributes.pushNotificationState.allowed,e.pushNotificationState.status=t.attributes.pushNotificationState.status,e.platformType=t.attributes.platformType,e}};n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=b({token:n,factory:n.\u0275fac});let i=n;return i})();var R=(()=>{let n=class n{constructor(){this.http=s(A)}getDeviceManagementUiConfig(){return this.http.get(D(["protected","self-service","ui","configuration","tokens","cronto"]))}};n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=b({token:n,factory:n.\u0275fac});let i=n;return i})();var f=class f{constructor(){this.service=s(R),this.accessService=s(E),this.routes=s(ie)}resolve(){return this.service.getDeviceManagementUiConfig().pipe(g(n=>
1(n.status===404?this.routes.error.notFound.navigate():this.accessService.handleAccessError(n,this.routes.protected.tokens.cronto.devices.url),B)))}static resolveConfig(n){return n.snapshot.data.deviceManagementConfig}};f.PROVIDER={provide:w,useFactory:f.resolveConfig,deps:[ee]},f.\u0275fac=function(o){return new(o||f)},f.\u0275prov=b({token:f,factory:f.\u0275fac});var h=f;var be=i=>({keyPrefix:"protected.tokens.cronto.device.states",values:i}),Ce=i=>({state:i}),xe=i=>({keyPrefix:"protected.tokens.cronto.device.push-states",values:i});function De(i,n){i&1&&x(0,"iam-alert",5),i&2&&a("id","crontoDevicesMissing")("text","protected.tokens.cronto.device.missing")("type","info")}function we(i,n){if(i&1&&x(0,"iam-text-row",7),i&2){let o=c(),t=o.$implicit,e=o.index;a("id","crontoDeviceLabel["+e+"]")("label","protected.tokens.cronto.device.label")("value",t.label)}}function Se(i,n){if(i&1&&(x(0,"iam-text-row",7),y(1,"translatedEnum")),i&2){let o=c(),t=o.$implicit,e=o.index;a("id","crontoDevicePushNotificationState["+e+"]")("label","protected.tokens.cronto.device.push-notification-state")("value",M(1,3,F(5,xe,t.pushNotificationState.status)))}}function Te(i,n){if(i&1&&(x(0,"iam-text-row",7),y(1,"formatDate")),i&2){let o=c(),t=o.$implicit,e=o.index;a("id","crontoDeviceLastUsage["+e+"]")("label","protected.tokens.cronto.device.last-usage")("value",M(1,3,t.lastUsageDate))}}function ye(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.renameCrontoDevice(e))}),m()}if(i&2){let o=c().index;a("id","renameCrontoDevice["+o+"]")("text","protected.tokens.cronto.device.actions.rename")}}function Me(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.enableCrontoDevice(e))}),m()}if(i&2){let o=c().index;a("id","enableCrontoDevice["+o+"]")("text","protected.tokens.cronto.device.actions.enable")}}function Fe(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.disableCrontoDevice(e))}),m()}if(i&2){let o=c().index;a("id","disableCrontoDevice["+o+"]")("text","protected.tokens.cronto.device.actions.disable")}}function Ae(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.enablePush(e))}),m()}if(i&2){let o=c().index;a("id","enableCrontoPush["+o+"]")("text","protected.tokens.cronto.device.actions.enable-push")}}function Ee(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.disablePush(e))}),m()}if(i&2){let o=c().index;a("id","disableCrontoPush["+o+"]")("text","protected.tokens.cronto.device.actions.disable-push")}}function ke(i,n){if(i&1){let o=u();l(0,"iam-button",12),v("buttonClick",function(){d(o);let e=c().$implicit,r=c(2);return _(r.showDeviceDeleteConfirmationDialog(e))}),m()}if(i&2){let o=c().index;a("id","deleteCrontoDevice["+o+"]")("type","error")("text","protected.tokens.cronto.device.actions.delete")}}function Ie(i,n){if(i&1&&(l(0,"iam-card",6),y(1,"translatedEnum"),x(2,"iam-text-row",7),C(3,we,1,3,"iam-text-row",8)(4,Se,2,7,"iam-text-row",8)(5,Te,2,5,"iam-text-row",8),l(6,"iam-button-row"),C(7,ye,1,2,"iam-button",9)(8,Me,1,2,"iam-button",9)(9,Fe,1,2,"iam-button",9)(10,Ae,1,2,"iam-button",9)(11,Ee,1,2,"iam-button",9)(12,ke,1,3,"iam-button",10),m()()),i&2){let o=n.$implicit,t=n.index,e=c().ngIf;a("id","crontoDevice["+t+"]")("title","protected.tokens.cronto.device.title")("titleArguments",F(20,Ce,"("+M(1,16,F(18,be,o.enabled?"active":"inactive"))+")"))("detailCard",!0),p(2),a("id","crontoDeviceDisplayId["+t+"]")("label","protected.tokens.cronto.device.display-id")("value",o.displayId),p(),a("ngIf",o.label),p(),a("ngIf",o.pushNotificationState.allowed!==null&&o.platformType!=="device"),p(),a("ngIf",o.lastUsageDate),p(2),a("ngIf",e.canRename),p(),a("ngIf",e.canEnable&&!o.enabled),p(),a("ngIf",e.canDisable&&o.enabled),p(),a("ngIf",e.canEnablePush&&!o.pushNotificationState.allowed&&o.platformType!=="device"),p(),a("ngIf",e.canDisablePush&&o.pushNotificationState.allowed&&o.platformType!=="device"),p(),a("ngIf",e.canDelete)}}
1function Pe(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c(3);return _(e.activateCrontoDevice())}),m()}i&2&&a("id","activateCrontoDevice")("text","protected.tokens.cronto.actions.activate-device")}function Ue(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c(3);return _(e.orderActivationLetter())}),m()}i&2&&a("id","orderActivationLetter")("text","protected.tokens.cronto.actions.order-letter")}function Ve(i,n){if(i&1){let o=u();l(0,"iam-button",11),v("buttonClick",function(){d(o);let e=c(3);return _(e.navigateToExitTarget())}),m()}i&2&&a("id","exitCrontoDeviceManagement")("text","protected.tokens.cronto.actions.exit")}function Ne(i,n){if(i&1&&(l(0,"iam-button-row",13),C(1,Pe,1,2,"iam-button",9)(2,Ue,1,2,"iam-button",9)(3,Ve,1,2,"iam-button",9),m()),i&2){let o=c().ngIf;a("rowNgClass","iam-mt-3"),p(),a("ngIf",o.canActivate),p(),a("ngIf",o.canOrderActivationLetter),p(),a("ngIf",o.hasExitTarget)}}function Re(i,n){if(i&1&&(l(0,"iam-page",1),C(1,De,1,3,"iam-alert",2)(2,Ie,13,22,"iam-card",3)(3,Ne,4,4,"iam-button-row",4),m()),i&2){let o=n.ngIf,t=c();a("pageId",t.pageId)("title","protected.tokens.cronto.title")("bodyAttributes",t.bodyAttributes)("hideMaintenanceMessages",!0),p(),a("ngIf",o.devices.length===0),p(),a("ngForOf",o.devices),p(),a("ngIf",o.canActivate||o.hasExitTarget||o.canOrderActivationLetter)}}var he=(()=>{let n=class n extends fe{constructor(){super(),this.bodyAttributes={[ve]:ge.ProtectedSelfService},this.pageId="iamProtectedCrontoDeviceManagement",this.deviceManagementService=s($),this.protectedUiService=s(k),this.pageDialog=s(de)}ngOnInit(){this.crontoDeviceManagement=this.initUiConfig().pipe(q(()=>this.deviceManagementService.getCrontoDeviceManagement()))}navigateToExitTarget(){this.deviceManagementService.navigateToExitTarget()}showDeviceDeleteConfirmationDialog(t){this.showDialog("protected.tokens.cronto.deletion.dialog.title","protected.tokens.cronto.deletion.dialog.text",()=>this.deleteCrontoDevice(t))}activateCrontoDevice(){this.deviceManagementService.startFlowToAddCrontoDevice().subscribe({next:t=>this.protectedUiService.handleSuccessfulStep(t),error:t=>this.protectedUiService.handleFailedStep(t)})}orderActivationLetter(){this.deviceManagementService.startFlowToOrderActivationLetter().subscribe({next:t=>this.protectedUiService.handleSuccessfulStep(t),error:t=>this.protectedUiService.handleFailedStep(t)})}renameCrontoDevice(t){this.deviceManagementService.startFlowToEditDevice(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}deleteCrontoDevice(t){this.deviceManagementService.startFlowToDeleteCrontoDevice(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}enableCrontoDevice(t){this.deviceManagementService.startFlowToEnableDevice(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}disableCrontoDevice(t){this.deviceManagementService.startFlowToDisableDevice(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}enablePush(t){this.deviceManagementService.startFlowToEnablePush(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}disablePush(t){this.deviceManagementService.startFlowToDisablePush(t).subscribe({next:e=>this.protectedUiService.handleSuccessfulStep(e),error:e=>this.protectedUiService.handleFailedStep(e)})}getUiConfig(){return this.deviceManagementService.getUiConfig()}showDialog(t,e,r){this.pageDialog.show({title:t,text:e}).pipe(H(S=>S.ok)).subscribe(r)}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=J({type:n,selectors:[["ng-component"]],standalone:!1,features:[W([$,h.PROVIDER,I]),Q],decls:2,vars:3,consts:[[3,"pageId","title","bodyAttributes","hideMaintenanceMessages",4,"ngIf"],[3,"pageId","title","bodyAttributes","hideMaintenanceMessages"],[3,"id","text","type",4,"ngIf"],[3,"id","title","titleArguments","detailCard",4,"ngFor","ngForOf"],[3,"rowNgClass",4,"ngIf"],[3,"id","text","type"],[3,"id","title","titleArguments","detailCard"],[3,"id","label","value"],[3,"id","label","value",4,"ngIf"],[3,"id","text","buttonClick",4,"ngIf"],[3,"id","type","text","buttonClick",4,"ngIf"],[3,"buttonClick","id","text"],[3,"buttonClick","id","type","text"],[3,"rowNgClass"]],template:function(e,r){e&1&&(C(0,Re,4,7,"iam-page",0),y(1,"async")),e&2&&a("ngIf",M(1,1,r.crontoDeviceManagement))},dependencies:[X,Y,se,re,ae,ce,pe,_e,Z,le,me],encapsulation:2});let i=n;return i})();var Oe=[{path:"",pathMatch:"full",redirectTo:"devices"},{path:"devices",component:he,resolve:{deviceManagementConfig:()=>s(h).resolve()},runGuardsAndResolvers:"always"}],qt=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=K({type:n}),n.\u0275inj=z({providers:[h,R],imports:[te.forChild(Oe),ue]});let i=n;return i})();export{qt as CrontoDeviceManagementModule};

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.