{"version":3,"sources":["../../src/app/components/lightbox/lightbox.ts"],"names":["Lightbox","el","renderer","cd","this","type","effectDuration","autoZIndex","baseZIndex","closeOnEscape","prototype","onImageClick","event","image","i","content","index","loading","style","width","height","preventDocumentClickListener","show","displayImage","preventDefault","ngAfterViewInit","panel","DomHandler","findSingle","nativeElement","appendTo","document","body","appendChild","onLinkClick","_this","setTimeout","markForCheck","currentImage","captionText","title","center","mask","createElement","addMultipleClasses","zindex","zIndex","visible","bindGlobalListeners","hide","removeChild","unbindGlobalListeners","elementWidth","getOuterWidth","elementHeight","getOuterHeight","visibility","display","onImageLoad","target","imageWidth","imageHeight","left","parseInt","top","fadeIn","prev","placeholder","images","next","length","documentTarget","ownerDocument","documentClickListener","listen","documentEscapeListener","which","Object","defineProperty","ngOnDestroy","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","Default","encapsulation","ViewEncapsulation","None","ElementRef","Renderer2","ChangeDetectorRef","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"2dAsFI,SAAAA,EAAmBC,EAAuBC,EAA4BC,GAAnDC,KAAAH,GAAAA,EAAuBG,KAAAF,SAAAA,EAA4BE,KAAAD,GAAAA,EAxC7DC,KAAAC,KAAe,QAUfD,KAAAE,eAAsB,QAEtBF,KAAAG,YAAsB,EAEtBH,KAAAI,WAAqB,EAErBJ,KAAAK,eAAyB,SA0BlCT,EAAAU,UAAAC,aAAA,SAAaC,EAAMC,EAAMC,EAAEC,GACvBX,KAAKY,MAAQF,EACbV,KAAKa,SAAU,EACfF,EAAQG,MAAMC,MAAQ,OACtBJ,EAAQG,MAAME,OAAS,OACvBhB,KAAKiB,8BAA+B,EACpCjB,KAAKkB,OACLlB,KAAKmB,aAAaV,GAClBD,EAAMY,kBAGVxB,EAAAU,UAAAe,gBAAA,WACIrB,KAAKsB,MAAQC,EAAAA,WAAWC,WAAWxB,KAAKH,GAAG4B,cAAe,iBAEtDzB,KAAK0B,WACiB,SAAlB1B,KAAK0B,SACLC,SAASC,KAA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A,kBAAkBC,u9dApCVC,EAAAA,kBAAiBC,EAAAA,iBAAkCC,EAAAA,qDA4CzEC,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,wBAEAA,EAAAA,sBAEAA,EAAAA,8BAEAA,EAAAA,0BAEAA,EAAAA,0BAEAA,EAAAA,6BAEAA,EAAAA,eA0ML,iCALCC,EAAAA,SAAQb,KAAA,CAAC,CACNc,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACjG,GACVkG,aAAc,CAAClG","sourcesContent":["import {NgModule,Component,ElementRef,Input,Renderer2,AfterViewInit,OnDestroy,ChangeDetectorRef,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {DomHandler} from 'primeng/dom';\n\n@Component({\n selector: 'p-lightbox',\n template: `\n