{"version":3,"sources":["../../src/app/components/codehighlighter/codehighlighter.ts"],"names":["CodeHighlighter","el","this","prototype","ngAfterViewInit","window","highlightElement","nativeElement","Directive","args","selector","ElementRef","NgModule","imports","CommonModule","exports","declarations"],"mappings":"obAQI,SAAAA,EAAmBC,GAAAC,KAAAD,GAAAA,SAEnBD,EAAAG,UAAAC,gBAAA,WACQC,OAAc,OACdA,OAAc,MAAEC,iBAAiBJ,KAAKD,GAAGM,yCATpDC,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,uDAJgBC,EAAAA,oBAsB9B,iCALCC,EAAAA,SAAQH,KAAA,CAAC,CACNI,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACf,GACVgB,aAAc,CAAChB","sourcesContent":["import { NgModule, Directive, ElementRef, AfterViewInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Directive({\n selector: '[pCode]'\n})\nexport class CodeHighlighter implements AfterViewInit {\n\n constructor(public el: ElementRef) { }\n\n ngAfterViewInit() {\n if (window['Prism']) {\n window['Prism'].highlightElement(this.el.nativeElement);\n }\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [CodeHighlighter],\n declarations: [CodeHighlighter]\n})\nexport class CodeHighlighterModule { }\n\n\n"]}