{"version":3,"sources":["webpack:///$_lazy_route_resource lazy namespace object","webpack:///src/app/app-routing.module.ts","webpack:///src/app/app.component.ts","webpack:///src/app/app.component.html","webpack:///src/app/app.module.ts","webpack:///src/app/customviewer/customviewer.component.ts","webpack:///src/app/customviewer/customviewer.component.html","webpack:///src/app/webviewer/webviewer.component.ts","webpack:///src/app/webviewer/webviewer.component.html","webpack:///src/environments/environment.ts","webpack:///src/main.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","routes","path","component","pathMatch","AppRoutingModule","forRoot","imports","AppComponent","title","selector","templateUrl","styleUrls","AppModule","declarations","providers","bootstrap","CustomviewerComponent","initialDoc","disabledElements","opsviewer","nativeElement","instance","Annotations","annotManager","wvInstance","setHeaderItems","header","update","FitMode","setFitMode","FitWidth","getFieldNameAndValue","field","name","value","type","console","log","children","forEach","document","getElementById","onclick","fieldManager","getFieldManager","forEachField","WebviewerComponent","wvDocumentLoadedHandler","bind","docViewer","rectangle","RectangleAnnotation","PageNumber","X","Y","Width","Height","StrokeThickness","Author","getCurrentUser","addAnnotation","drawAnnotations","WebViewer","viewer","addEventListener","detail","pageNumber","on","annot","modal","dataElement","render","renderCustomModal","div","createElement","innerText","setAttribute","setCustomModal","openElements","environment","production","bootstrapModule","err","error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAASA,wBAAT,CAAkCC,GAAlC,EAAuC;AACtC;AACA;AACA,aAAOC,OAAO,CAACC,OAAR,GAAkBC,IAAlB,CAAuB,YAAW;AACxC,YAAIC,CAAC,GAAG,IAAIC,KAAJ,CAAU,yBAAyBL,GAAzB,GAA+B,GAAzC,CAAR;AACAI,SAAC,CAACE,IAAF,GAAS,kBAAT;AACA,cAAMF,CAAN;AACA,OAJM,CAAP;AAKA;;AACDL,4BAAwB,CAACQ,IAAzB,GAAgC,YAAW;AAAE,aAAO,EAAP;AAAY,KAAzD;;AACAR,4BAAwB,CAACG,OAAzB,GAAmCH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eANpB;AACTrC,kBAAQ,EAAE,eADD;AAETC,qBAAW,EAAE,4BAFJ;AAGTC,mBAAS,EAAE,CAAC,2BAAD;AAHF,S;AAMoB,Q;;gBAI5B,uD;iBAAU,Q,EAAU;AAAE,sBAAQ;AAAV,W;;;;;;;;;;;;;;;;;;;;AEbvB;AAAA;;;AAAA;AAAA;AAAA,O,CAAA;AACA;AACA;;;AAEO,QAAMoE,WAAW,GAAG;AACzBC,gBAAU,EAAE;AADa,KAApB;AAIP;;;;;;;AAOA;;;;;;;;;;;;;;;;;ACfA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAMA,QAAI,sEAAYA,UAAhB,EAA4B;AAC1B;AACD;;AAED,gFAAyBC,eAAzB,CAAyC,yDAAzC,WACS,UAAAC,GAAG;AAAA,aAAI9C,OAAO,CAAC+C,KAAR,CAAcD,GAAd,CAAJ;AAAA,KADZ","file":"main-es5.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./$$_lazy_route_resource lazy recursive\";","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { WebviewerComponent } from './webviewer/webviewer.component';\r\nimport { CustomviewerComponent } from './customviewer/customviewer.component';\r\n\r\n\r\nconst routes: Routes = [\r\n { path: '', component: CustomviewerComponent, pathMatch: 'full' },\r\n { path: 'webviewer', component: WebviewerComponent },\r\n { path: 'opsviewer', component: CustomviewerComponent }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'ClientApp';\n}\n","

Web Viewer

\n\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\n\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { WebviewerComponent } from './webviewer/webviewer.component';\r\nimport { MatButtonModule } from '@angular/material/button'\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { BidiModule } from '@angular/cdk/bidi';\r\nimport { ObserversModule } from '@angular/cdk/observers';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { MatCommonModule, MatRippleModule, MatNativeDateModule } from '@angular/material/core';\r\nimport { CustomviewerComponent } from './customviewer/customviewer.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n WebviewerComponent,\r\n CustomviewerComponent,\r\n ],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n MatButtonModule,\r\n MatCommonModule,\r\n MatRippleModule,\r\n MatNativeDateModule,\r\n OverlayModule,\r\n A11yModule,\r\n BidiModule,\r\n ObserversModule,\r\n PortalModule,\r\n ],\r\n providers: [],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import { Component, OnInit, Input, ViewChild, ElementRef, AfterViewInit } from '@angular/core';\nimport WebViewer from '@pdftron/webviewer'\n@Component({\n selector: 'app-customviewer',\n templateUrl: './customviewer.component.html',\n styleUrls: ['./customviewer.component.css']\n})\nexport class CustomviewerComponent implements OnInit, AfterViewInit {\n\n @ViewChild('opsviewer', { static: false }) opsviewer: ElementRef;\n wvInstance: any;\n constructor() { }\n\n ngOnInit(): void {\n }\n\n ngAfterViewInit(): void {\n\n // The following code initiates a new instance of WebViewer.\n\n WebViewer({\n path: '../../lib',\n initialDoc: 'https://expresspaystub.s3.amazonaws.com/Staging/StaticFiles/From941/Form941_2019.pdf',\n disabledElements: [\n 'header',\n 'toolsHeader',\n 'notesPanel',\n 'textPopup',\n ],\n }, this.opsviewer.nativeElement).then(instance => {\n\n const { Annotations, annotManager } = instance;\n this.wvInstance = instance;\n\n //remove toolbars\n instance.setHeaderItems(function (header) {\n header.update([]);\n });\n\n //Set Zoom to fit to width\n let FitMode = instance.FitMode;\n instance.setFitMode(FitMode.FitWidth);\n\n\n //#region Get field data\n const getFieldNameAndValue = (field) => {\n // Do something with data\n const { name, value, type } = field;\n console.log(`Name: ${name}, Value: ${value}`);\n if (type == 'Sig') {\n debugger;\n\r\n }\n\n // Check children fields\n field.children.forEach(getFieldNameAndValue);\n }\n //#endregion\n\n\n //#region Save Button Get Data\n document.getElementById('btnSaveTax').onclick = function () {\n const fieldManager = annotManager.getFieldManager();\n fieldManager.forEachField(getFieldNameAndValue);\n }\n\n //#endregion\n\n\n\n\n })\n }\n\n}\n","
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n","import { Component, ViewChild, OnInit, ElementRef, AfterViewInit } from '@angular/core';\ndeclare const WebViewer: any;\n\n@Component({\n selector: 'app-webviewer',\n templateUrl: './webviewer.component.html',\n styleUrls: ['./webviewer.component.css']\n})\n\nexport class WebviewerComponent implements OnInit, AfterViewInit {\n\n // Syntax if using Angular 8+\n // true or false depending on code\n @ViewChild('viewer', { static: false }) viewer: ElementRef;\n\n wvInstance: any;\n\n ngOnInit() {\n this.wvDocumentLoadedHandler = this.wvDocumentLoadedHandler.bind(this);\n }\n\n wvDocumentLoadedHandler(): void {\n // you can access docViewer object for low-level APIs\n const docViewer = this.wvInstance;\n const annotManager = this.wvInstance.annotManager;\n // and access classes defined in the WebViewer iframe\n const { Annotations } = this.wvInstance;\n const rectangle = new Annotations.RectangleAnnotation();\n rectangle.PageNumber = 1;\n rectangle.X = 100;\n rectangle.Y = 100;\n rectangle.Width = 250;\n rectangle.Height = 250;\n rectangle.StrokeThickness = 5;\n rectangle.Author = annotManager.getCurrentUser();\n annotManager.addAnnotation(rectangle);\n annotManager.drawAnnotations(rectangle.PageNumber);\n // see https://www.pdftron.com/api/web/WebViewerInstance.html for the full list of low-level APIs\n }\n\n ngAfterViewInit(): void {\n\n // The following code initiates a new instance of WebViewer.\n\n WebViewer({\n path: '../../wv-resources/lib',\n initialDoc: 'https://expresspaystub.s3.amazonaws.com/Staging/StaticFiles/From941/Form941_2019.pdf',\n disabledElements: [\n 'header',\n 'toolsHeader',\n 'notesPanel'\n ],\n }, this.viewer.nativeElement).then(instance => {\n\n\n const { Annotations, annotManager } = instance;\n this.wvInstance = instance;\n\n //remove toolbars\n instance.setHeaderItems(function (header) {\n header.update([]);\n });\n\n //Set Zoom to fit to width\n let FitMode = instance.FitMode;\n instance.setFitMode(FitMode.FitWidth);\n\n\n //const customStyles = widget => {\n // return {\n // 'background-color': 'lightblue',\n // color: 'brown',\n // };\n //};\n\n\n // now you can access APIs through this.webviewer.getInstance()\n //instance.openElement('notesPanel');\n // see https://www.pdftron.com/documentation/web/guides/ui/apis \n // for the full list of APIs\n\n // or listen to events from the viewer element\n this.viewer.nativeElement.addEventListener('pageChanged', (e) => {\n const [pageNumber] = e.detail;\n console.log(`Current page is ${pageNumber}`);\n });\n\n // or from the docViewer instance\n instance.docViewer.on('annotationsLoaded', () => {\n console.log('annotations loaded');\n const fieldManager = annotManager.getFieldManager();\n //fieldManager.forEachField(getFieldNameAndValue);\n\n //Annotations.WidgetAnnotation.getCustomStyles = customStyles;\n\n });\n\n\n \n\n\n //#region Get field data\n const getFieldNameAndValue = (field) => {\n // Do something with data\n const { name, value } = field;\n console.log(`Name: ${name}, Value: ${value}`);\n\n // Check children fields\n field.children.forEach(getFieldNameAndValue);\n }\n //#endregion\n\n //#region annotation Loaded\n //instance.docViewer.on('annotationsLoaded', () => {\n // const fieldManager = annotManager.getFieldManager();\n // fieldManager.forEachField(getFieldNameAndValue);\n //});\n //#endregion\n\n //#region Get value on field change\n annotManager.on('fieldChanged', (field, value) => {\n debugger;\n //let patern = /^\\d*$/;\n //if (!patern.test(value)) {\n // field.setValue('')\n //}\n console.log(`Name: ${field.name}, Value: ${field.annot}`);\n // Do something with data\n })\n\n //#endregion\n\n //#region set text box control\n //instance.docViewer.on('documentLoaded', () => {\n // // set flags for multiline and required\n // var widgetFlags = new Annotations.WidgetFlags();\n // widgetFlags.set('Multiline', true);\n // widgetFlags.set('Required', true);\n\n // // create a form field\n // const field = new Annotations.Forms.Field(\"ein1\", {\n // type: 'Tx',\n // defaultValue: \"some placeholder default text value\",\n // flags: widgetFlags\n // });\n\n // // create a widget annotation\n // const widgetAnnot = new Annotations.TextWidgetAnnotation(field);\n\n // // set position and size\n // widgetAnnot.PageNumber = 1;\n // widgetAnnot.X = 151;\n // widgetAnnot.Y = 65;\n // widgetAnnot.Width = 20;\n // widgetAnnot.Height = 20;\n\n // //add the form field and widget annotation\n // annotManager.addAnnotation(widgetAnnot);\n // annotManager.drawAnnotationsFromList([widgetAnnot]);\n // annotManager.getFieldManager().addField(field);\n //})\n //#endregion\n\n //#region Save Button Get Data\n document.getElementById('btnSaveTax').onclick = function () {\n const fieldManager = annotManager.getFieldManager();\n fieldManager.forEachField(getFieldNameAndValue);\n }\n\n //#endregion\n\n //#region Add Sign control\n //instance.docViewer.on('documentLoaded', () => {\n // let widgetFlags = new Annotations.WidgetFlags();\n // widgetFlags.set('Required', true);\n\n // // create a form field\n // const field = new Annotations.Forms.Field(\"usign\", {\n // type: 'Sig',\n // flags: widgetFlags\n // });\n\n // // create a widget annotation\n // const widgetAnnot = new Annotations.SignatureWidgetAnnotation(field, {\n // appearance: '_DEFAULT',\n // appearances: {\n // _DEFAULT: {\n // Normal: {\n // data:\n // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAAANSURBVBhXY/j//z8DAAj8Av6IXwbgAAAAAElFTkSuQmCC',\n // offset: {\n // x: 100,\n // y: 100,\n // },\n // },\n // },\n // },\n // });\n\n // // set position and size\n // widgetAnnot.PageNumber = 2;\n // widgetAnnot.X = 115;\n // widgetAnnot.Y = 415;\n // widgetAnnot.Width = 100;\n // widgetAnnot.Height = 35;\n\n // //add the form field and widget annotation\n // annotManager.addAnnotation(widgetAnnot);\n // annotManager.drawAnnotationsFromList([widgetAnnot]);\n // annotManager.getFieldManager().addField(field);\n\n // // create a form field\n // const field1 = new Annotations.Forms.Field(\"usign2\", {\n // type: 'Sig',\n // flags: widgetFlags\n // });\n\n // // create a widget annotation\n // const widgetAnnot1 = new Annotations.SignatureWidgetAnnotation(field1, {\n // appearance: '_DEFAULT',\n // appearances: {\n // _DEFAULT: {\n // Normal: {\n // data:\n // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAAANSURBVBhXY/j//z8DAAj8Av6IXwbgAAAAAElFTkSuQmCC',\n // offset: {\n // x: 100,\n // y: 100,\n // },\n // },\n // },\n // },\n // });\n\n // // set position and size\n // widgetAnnot1.PageNumber = 2;\n // widgetAnnot1.X = 115;\n // widgetAnnot1.Y = 415;\n // widgetAnnot1.Width = 100;\n // widgetAnnot1.Height = 35;\n\n // //add the form field and widget annotation\n // annotManager.addAnnotation(widgetAnnot1);\n // annotManager.drawAnnotationsFromList([widgetAnnot1]);\n // annotManager.getFieldManager().addField(field1);\n //})\n //#endregion\n\n //#region Custom UI\n document.getElementById('btnOpenTax').onclick = function () {\n const modal = {\n dataElement: 'meanwhileInFinlandModal',\n render: function renderCustomModal() {\n\n //let divStr = `
\n //
\n // text required\n //
\n //
`;\n let div = document.createElement(\"div\");\n //div.style.color = 'white';\n //div.style.backgroundColor = 'hotpink';\n //div.style.padding = '20px 40px';\n //div.style.borderRadius = '5px';\n div.innerText = 'Required';\n div.setAttribute('class', 'customdiv');\n return div\n\n //return divStr;\n }\n }\n instance.setCustomModal(modal);\n instance.openElements([modal.dataElement]);\n //instance.showErrorMessage('required');\n }\n //#endregion\n })\n }\n}\n","
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n text required\r\n
\r\n
\r\n\r\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));\n"]}