{"version":3,"sources":["src/app/shared/components/pdf-viewer/pdf-viewer.component.ts","src/app/shared/components/pdf-viewer/pdf-viewer.component.html"],"sourcesContent":["import { Component, Input, ViewChild } from '@angular/core'\nimport { AdobePDFViewerComponent } from '../adobe-pdf-viewer/adobe-pdf-viewer'\nimport { IconNamesEnum, NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'\n\n@Component({\n selector: 'pdf-viewer',\n templateUrl: './pdf-viewer.component.html',\n styleUrls: ['./pdf-viewer.component.scss'],\n imports: [NgxBootstrapIconsModule, AdobePDFViewerComponent]\n})\nexport class PDFViewerComponent {\n @ViewChild(AdobePDFViewerComponent) adobePDFViewerComponent: AdobePDFViewerComponent | undefined\n @Input() set href(href:string) {\n this.document = {\n id: 'xxx',\n file_extension: 'pdf',\n cdn_path: href\n }\n }\n @Input() document: any = {}\n\n public iconNames = IconNamesEnum\n\n openPdfFile() {\n this.adobePDFViewerComponent!.displayPDF(this.document)\n }\n}","\n \n \n\n"],"names":["PDFViewerComponent","adobePDFViewerComponent","href","document","id","file_extension","cdn_path","iconNames","IconNamesEnum","openPdfFile","displayPDF","selectors","viewQuery","rf","ctx","AdobePDFViewerComponent","ɵɵelementStart","ɵɵlistener","ɵɵelement","ɵɵprojection","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","FilePdf","NgxBootstrapIconsModule","NgxBootstrapIconsLibComponent","encapsulation"],"mappings":";;4OAUaA,GAAkB,IAAA,CAAzB,MAAOA,CAAkB,CACOC,wBACpC,IAAaC,KAAKA,EAAW,CAC3B,KAAKC,SAAW,CACdC,GAAI,MACJC,eAAgB,MAChBC,SAAUJ,EAEd,CACSC,SAAgB,CAAA,EAElBI,UAAYC,EAEnBC,aAAW,CACT,KAAKR,wBAAyBS,WAAW,KAAKP,QAAQ,CACxD,4CAfWH,EAAkB,2BAAlBA,EAAkBW,UAAA,CAAA,CAAA,YAAA,CAAA,EAAAC,UAAA,SAAAC,EAAAC,EAAA,IAAAD,EAAA,KAClBE,EAAuB,CAAA,8NCXpCC,EAAA,EAAA,IAAA,CAAA,EAAGC,EAAA,QAAA,UAAA,CAAA,OAASH,EAAAL,YAAA,CAAa,CAAA,EACrBS,EAAA,EAAA,OAAA,CAAA,EACAC,EAAA,CAAA,EACJC,EAAA,EACAF,EAAA,EAAA,kBAAA,SAHUG,EAAA,EAAAC,EAAA,OAAAR,EAAAP,UAAAgB,OAAA,kBDOIC,EAAuBC,EAAEV,CAAuB,EAAAW,cAAA,CAAA,CAAA,SAEjD1B,CAAkB,GAAA","debug_id":"96c2d75f-8103-5e31-8ca7-8370b704dbec"}