{"version":3,"file":"primeng-codehighlighter.mjs","sources":["../../src/app/components/codehighlighter/codehighlighter.ts","../../src/app/components/codehighlighter/primeng-codehighlighter.ts"],"sourcesContent":["import { NgModule, Directive, ElementRef, AfterViewInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Directive({\n selector: '[pCode]',\n host: {\n 'class': 'p-element'\n }\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MASa,eAAe;IAExB,YAAmB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAK;IAEtC,eAAe;QACX,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE;YACjB,MAAM,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;SAC3D;KACJ;;4GARQ,eAAe;gGAAf,eAAe;2FAAf,eAAe;kBAN3B,SAAS;mBAAC;oBACP,QAAQ,EAAE,SAAS;oBACnB,IAAI,EAAE;wBACF,OAAO,EAAE,WAAW;qBACvB;iBACJ;;MAiBY,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAhBrB,eAAe,aAYd,YAAY,aAZb,eAAe;mHAgBf,qBAAqB,YAJrB,CAAC,YAAY,CAAC;2FAId,qBAAqB;kBALjC,QAAQ;mBAAC;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,YAAY,EAAE,CAAC,eAAe,CAAC;iBAClC;;;ACxBD;;;;;;"}