{ "version": 3, "sources": ["apps/business-center-client/src/app/auth-wall/auth-wall.directive.ts", "apps/business-center-client/src/app/auth-wall/auth-wall.module.ts", "apps/business-center-client/src/app/auth-wall/index.ts"], "sourcesContent": ["import { Directive, HostListener, Input, OnInit, inject } from '@angular/core';\nimport { AuthService } from '../auth.service';\nimport { showAuthDialog } from './auth-wall-dialog.component';\n\n@Directive({\n selector: '[bcAuthWall]',\n standalone: false,\n})\nexport class AuthWallDirective implements OnInit {\n @Input() bcAuthWall: AuthWallParams;\n enabled: boolean;\n\n showAuthDialog = showAuthDialog();\n private authService = inject(AuthService);\n\n ngOnInit(): void {\n this.enabled = this.bcAuthWall.enabled === undefined ? true : this.bcAuthWall.enabled;\n }\n\n private checkPreviewMode(event: Event): void {\n if (this.authService.isInPreviewMode() && this.enabled) {\n this.showAuthDialog();\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n @HostListener('mousedown', ['$event']) onMouseDown(event: MouseEvent): void {\n this.checkPreviewMode(event);\n }\n\n @HostListener('keydown', ['$event']) onKeyDown(event: KeyboardEvent): void {\n if (event.key !== 'Enter' && event.code !== 'Space') {\n return;\n }\n this.checkPreviewMode(event);\n }\n}\n\nexport interface AuthWallParams {\n enabled: boolean;\n trackingLabel: string;\n}\n", "import { NgModule } from '@angular/core';\nimport { AuthWallDirective } from './auth-wall.directive';\n\n@NgModule({\n exports: [AuthWallDirective],\n declarations: [AuthWallDirective],\n})\nexport class AuthWallModule {}\n", "export { AuthWallModule } from './auth-wall.module';\nexport { AuthWallService } from './auth-wall.service';\n"], "mappings": "yNAAA,IAQaA,EARbC,EAAAC,EAAA,KAAAC,IACAC,IACAC,QAMaL,GAAiB,IAAA,CAAxB,MAAOA,CAAiB,CAJ9BM,aAAA,CAQE,KAAAC,eAAiBA,EAAc,EACvB,KAAAC,YAAcC,EAAOC,CAAW,EAExCC,UAAQ,CACN,KAAKC,QAAU,KAAKC,WAAWD,UAAYE,OAAY,GAAO,KAAKD,WAAWD,OAChF,CAEQG,iBAAiBC,EAAY,CAC/B,KAAKR,YAAYS,gBAAe,GAAM,KAAKL,UAC7C,KAAKL,eAAc,EACnBS,EAAME,eAAc,EACpBF,EAAMG,gBAAe,EAEzB,CAEuCC,YAAYJ,EAAiB,CAClE,KAAKD,iBAAiBC,CAAK,CAC7B,CAEqCK,UAAUL,EAAoB,CAC7DA,EAAMM,MAAQ,SAAWN,EAAMO,OAAS,SAG5C,KAAKR,iBAAiBC,CAAK,CAC7B,iDA5BWhB,EAAiB,CAAA,+BAAjBA,EAAiBwB,UAAA,CAAA,CAAA,GAAA,aAAA,EAAA,CAAA,EAAAC,aAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,GAAjBE,EAAA,YAAA,SAAAC,EAAA,CAAA,OAAAF,EAAAP,YAAAS,CAAA,CAAmB,CAAA,EAAF,UAAA,SAAAA,EAAA,CAAA,OAAjBF,EAAAN,UAAAQ,CAAA,CAAiB,CAAA,4DAAjB7B,CAAiB,GAAA,ICR9B,IAOa8B,EAPbC,EAAAC,EAAA,SAOaF,GAAc,IAAA,CAArB,MAAOA,CAAc,iDAAdA,EAAc,CAAA,+BAAdA,CAAc,CAAA,CAAA,qCAAdA,CAAc,GAAA,ICP3B,IAAAG,EAAAC,EAAA,KAAAC,IACAC", "names": ["AuthWallDirective", "init_auth_wall_directive", "__esmMin", "init_core", "init_auth_service", "init_auth_wall_dialog_component", "constructor", "showAuthDialog", "authService", "inject", "AuthService", "ngOnInit", "enabled", "bcAuthWall", "undefined", "checkPreviewMode", "event", "isInPreviewMode", "preventDefault", "stopPropagation", "onMouseDown", "onKeyDown", "key", "code", "selectors", "hostBindings", "rf", "ctx", "\u0275\u0275listener", "$event", "AuthWallModule", "init_auth_wall_module", "__esmMin", "init_auth_wall", "__esmMin", "init_auth_wall_module", "init_auth_wall_service"] }