/*
    *
    * Wijmo Library 5.20183.550
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
import*as wjcViewer from"wijmo/wijmo.viewer";import*as wjcCore from"wijmo/wijmo";var __glob="undefined"!=typeof window?window:self;import{Component,NgModule}from"@angular/core";import{ElementRef,Injector,Optional,forwardRef}from"@angular/core";import{Inject,SkipSelf}from"@angular/core";import{CommonModule}from"@angular/common";import{NG_VALUE_ACCESSOR}from"@angular/forms";import{WjDirectiveBehavior,WjDirectiveBaseModule,WjValueAccessorFactory}from"wijmo/wijmo.angular2.directiveBase";export var wjReportViewerMeta={selector:"wj-report-viewer",template:``,inputs:["asyncBindings","wjModelProperty","serviceUrl","filePath","fullScreen","zoomFactor","mouseMode","selectMouseMode","viewMode","requestHeaders","parameters","paginated","reportName"],outputs:["initialized","pageIndexChangedNg: pageIndexChanged","viewModeChangedNg: viewModeChanged","viewModeChangePC: viewModeChange","mouseModeChangedNg: mouseModeChanged","mouseModeChangePC: mouseModeChange","selectMouseModeChangedNg: selectMouseModeChanged","selectMouseModeChangePC: selectMouseModeChange","fullScreenChangedNg: fullScreenChanged","fullScreenChangePC: fullScreenChange","zoomFactorChangedNg: zoomFactorChanged","zoomFactorChangePC: zoomFactorChange","queryLoadingDataNg: queryLoadingData","beforeSendRequestNg: beforeSendRequest"],providers:[{provide:NG_VALUE_ACCESSOR,useFactory:WjValueAccessorFactory,multi:!0,deps:["WjComponent"]}]};export class WjReportViewer extends wjcViewer.ReportViewer{constructor(e,o,t){super(WjDirectiveBehavior.getHostElement(e,o)),this.isInitialized=!1;this._wjBehaviour=WjDirectiveBehavior.attach(this,e,o,t);this.created()}created(){}ngOnInit(){this._wjBehaviour.ngOnInit()}ngAfterViewInit(){this._wjBehaviour.ngAfterViewInit()}ngOnDestroy(){this._wjBehaviour.ngOnDestroy()}addEventListener(e,o,t,r=!1){let a=WjDirectiveBehavior,n=a.ngZone;n&&a.outsideZoneEvents[o]?n.runOutsideAngular(()=>{super.addEventListener(e,o,t,r)}):super.addEventListener(e,o,t,r)}onSelectMouseModeChanged(e){(this.selectMouseModeChanged._handlers.length>1||this.selectMouseModeChangedNg.observers.length>0)&&wjcCore._deprecated("selectMouseModeChanged","mouseModeChanged"),this.selectMouseModeChanged.raise(this,e)}};WjReportViewer.meta={outputs:wjReportViewerMeta.outputs,changeEvents:{viewModeChanged:["viewMode"],mouseModeChanged:["mouseMode"],selectMouseModeChanged:["selectMouseMode"],fullScreenChanged:["fullScreen"],zoomFactorChanged:["zoomFactor"]}},WjReportViewer.decorators=[{type:Component,args:[{selector:wjReportViewerMeta.selector,template:wjReportViewerMeta.template,inputs:wjReportViewerMeta.inputs,outputs:wjReportViewerMeta.outputs,providers:[{provide:"WjComponent",useExisting:forwardRef(()=>WjReportViewer)},...wjReportViewerMeta.providers]}]}],WjReportViewer.ctorParameters=(()=>[{type:ElementRef,decorators:[{type:Inject,args:[ElementRef]}]},{type:Injector,decorators:[{type:Inject,args:[Injector]}]},{type:void 0,decorators:[{type:Inject,args:["WjComponent"]},{type:SkipSelf},{type:Optional}]}]);export var wjPdfViewerMeta={selector:"wj-pdf-viewer",template:``,inputs:["asyncBindings","wjModelProperty","serviceUrl","filePath","fullScreen","zoomFactor","mouseMode","selectMouseMode","viewMode","requestHeaders"],outputs:["initialized","pageIndexChangedNg: pageIndexChanged","viewModeChangedNg: viewModeChanged","viewModeChangePC: viewModeChange","mouseModeChangedNg: mouseModeChanged","mouseModeChangePC: mouseModeChange","selectMouseModeChangedNg: selectMouseModeChanged","selectMouseModeChangePC: selectMouseModeChange","fullScreenChangedNg: fullScreenChanged","fullScreenChangePC: fullScreenChange","zoomFactorChangedNg: zoomFactorChanged","zoomFactorChangePC: zoomFactorChange","queryLoadingDataNg: queryLoadingData","beforeSendRequestNg: beforeSendRequest"],providers:[{provide:NG_VALUE_ACCESSOR,useFactory:WjValueAccessorFactory,multi:!0,deps:["WjComponent"]}]};export class WjPdfViewer extends wjcViewer.PdfViewer{constructor(e,o,t){super(WjDirectiveBehavior.getHostElement(e,o)),this.isInitialized=!1;this._wjBehaviour=WjDirectiveBehavior.attach(this,e,o,t);this.created()}created(){}ngOnInit(){this._wjBehaviour.ngOnInit()}ngAfterViewInit(){this._wjBehaviour.ngAfterViewInit()}ngOnDestroy(){this._wjBehaviour.ngOnDestroy()}addEventListener(e,o,t,r=!1){let a=WjDirectiveBehavior,n=a.ngZone;n&&a.outsideZoneEvents[o]?n.runOutsideAngular(()=>{super.addEventListener(e,o,t,r)}):super.addEventListener(e,o,t,r)}onSelectMouseModeChanged(e){(this.selectMouseModeChanged._handlers.length>1||this.selectMouseModeChangedNg.observers.length>0)&&wjcCore._deprecated("selectMouseModeChanged","mouseModeChanged"),this.selectMouseModeChanged.raise(this,e)}};WjPdfViewer.meta={outputs:wjPdfViewerMeta.outputs,changeEvents:{viewModeChanged:["viewMode"],mouseModeChanged:["mouseMode"],selectMouseModeChanged:["selectMouseMode"],fullScreenChanged:["fullScreen"],zoomFactorChanged:["zoomFactor"]}},WjPdfViewer.decorators=[{type:Component,args:[{selector:wjPdfViewerMeta.selector,template:wjPdfViewerMeta.template,inputs:wjPdfViewerMeta.inputs,outputs:wjPdfViewerMeta.outputs,providers:[{provide:"WjComponent",useExisting:forwardRef(()=>WjPdfViewer)},...wjPdfViewerMeta.providers]}]}],WjPdfViewer.ctorParameters=(()=>[{type:ElementRef,decorators:[{type:Inject,args:[ElementRef]}]},{type:Injector,decorators:[{type:Inject,args:[Injector]}]},{type:void 0,decorators:[{type:Inject,args:["WjComponent"]},{type:SkipSelf},{type:Optional}]}]);let moduleExports=[WjReportViewer,WjPdfViewer];export class WjViewerModule{};WjViewerModule.decorators=[{type:NgModule,args:[{imports:[WjDirectiveBaseModule,CommonModule],declarations:[...moduleExports],exports:[...moduleExports]}]}],WjViewerModule.ctorParameters=(()=>[]);