{ "version": 3, "sources": ["apps/partner-center-client/src/app/core/guards/access-marketing-guard.service.ts", "apps/partner-center-client/src/app/core/guards/access-snapshot-widget-guard.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { Router, UrlTree } from '@angular/router';\n\nimport { AppConfigService } from '../../app-config.service';\n\n@Injectable()\nexport class AccessMarketingGuard {\n constructor(private readonly configService: AppConfigService, private readonly router: Router) {}\n\n canActivate(): boolean | UrlTree {\n return this.configService.config.userCanAccessMarketing ? true : this.router.createUrlTree(['/access-denied']);\n }\n}\n", "import { Injectable } from '@angular/core';\nimport { Router, UrlTree } from '@angular/router';\n\nimport { AppConfigService } from '../../app-config.service';\n\n@Injectable()\nexport class AccessSnapshotWidgetGuard {\n constructor(private readonly configService: AppConfigService, private readonly router: Router) {}\n\n canActivate(): boolean | UrlTree {\n return this.configService.config.userCanAccessSnapshotWidget ? true : this.router.createUrlTree(['/access-denied']);\n }\n}\n"], "mappings": "iIAMA,IAAaA,GAAoB,IAAA,CAA3B,IAAOA,EAAP,MAAOA,CAAoB,CAC/BC,YAA6BC,EAAkDC,EAAc,CAAhE,KAAAD,cAAAA,EAAkD,KAAAC,OAAAA,CAAiB,CAEhGC,aAAW,CACT,OAAO,KAAKF,cAAcG,OAAOC,uBAAyB,GAAO,KAAKH,OAAOI,cAAc,CAAC,gBAAgB,CAAC,CAC/G,yCALWP,GAAoBQ,EAAAC,CAAA,EAAAD,EAAAE,CAAA,CAAA,CAAA,wBAApBV,EAAoBW,QAApBX,EAAoBY,SAAA,CAAA,EAA3B,IAAOZ,EAAPa,SAAOb,CAAoB,GAAA,ECAjC,IAAac,GAAyB,IAAA,CAAhC,IAAOA,EAAP,MAAOA,CAAyB,CACpCC,YAA6BC,EAAkDC,EAAc,CAAhE,KAAAD,cAAAA,EAAkD,KAAAC,OAAAA,CAAiB,CAEhGC,aAAW,CACT,OAAO,KAAKF,cAAcG,OAAOC,4BAA8B,GAAO,KAAKH,OAAOI,cAAc,CAAC,gBAAgB,CAAC,CACpH,yCALWP,GAAyBQ,EAAAC,CAAA,EAAAD,EAAAE,CAAA,CAAA,CAAA,wBAAzBV,EAAyBW,QAAzBX,EAAyBY,SAAA,CAAA,EAAhC,IAAOZ,EAAPa,SAAOb,CAAyB,GAAA", "names": ["AccessMarketingGuard", "constructor", "configService", "router", "canActivate", "config", "userCanAccessMarketing", "createUrlTree", "\u0275\u0275inject", "AppConfigService", "Router", "factory", "\u0275fac", "_AccessMarketingGuard", "AccessSnapshotWidgetGuard", "constructor", "configService", "router", "canActivate", "config", "userCanAccessSnapshotWidget", "createUrlTree", "\u0275\u0275inject", "AppConfigService", "Router", "factory", "\u0275fac", "_AccessSnapshotWidgetGuard"] }