{ "version": 3, "sources": ["src/app/services/google-tag-manager.ts"], "sourcesContent": ["import { isPlatformServer } from '@angular/common'\nimport { Injectable, PLATFORM_ID, inject } from '@angular/core'\nimport { AppContext } from './app-context'\n\n@Injectable({\n providedIn: 'root',\n})\nexport class GoogleTagManager {\n platformId = inject(PLATFORM_ID)\n context = inject(AppContext)\n public Emit(action: string, label: string, event: string, category: string = '') {\n if (isPlatformServer(this.platformId)) {\n return\n }\n if (!this.context.isGoogleTagManagerEnabled) {\n return\n }\n\n if (!category) {\n category = this.context.ClientName!\n }\n\n window.dataLayer.push({\n event: event,\n action: action,\n label: label,\n category: category,\n })\n }\n}\n"], "mappings": "wGAOA,IAAaA,GAAgB,IAAA,CAAvB,IAAOA,EAAP,MAAOA,CAAgB,CAH7BC,aAAA,CAII,KAAAC,WAAaC,EAAOC,CAAW,EAC/B,KAAAC,QAAUF,EAAOG,CAAU,EACpBC,KAAKC,EAAgBC,EAAeC,EAAeC,EAAmB,GAAE,CACvEC,EAAiB,KAAKV,UAAU,GAG/B,KAAKG,QAAQQ,4BAIbF,IACDA,EAAW,KAAKN,QAAQS,YAG5BC,OAAOC,UAAUC,KAAK,CAClBP,MAAOA,EACPF,OAAQA,EACRC,MAAOA,EACPE,SAAUA,EACb,EACL,yCArBSX,EAAgB,wBAAhBA,EAAgBkB,QAAhBlB,EAAgBmB,UAAAC,WAFb,MAAM,CAAA,EAEhB,IAAOpB,EAAPqB,SAAOrB,CAAgB,GAAA", "names": ["GoogleTagManager", "constructor", "platformId", "inject", "PLATFORM_ID", "context", "AppContext", "Emit", "action", "label", "event", "category", "isPlatformServer", "isGoogleTagManagerEnabled", "ClientName", "window", "dataLayer", "push", "factory", "\u0275fac", "providedIn", "_GoogleTagManager"] }