ng2-pdf-viewer
Advanced tools
Comparing version 6.4.1 to 7.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('pdfjs-dist/es5/build/pdf'), require('pdfjs-dist/es5/web/pdf_viewer')) : | ||
typeof define === 'function' && define.amd ? define('ng2-pdf-viewer', ['exports', '@angular/core', 'pdfjs-dist/es5/build/pdf', 'pdfjs-dist/es5/web/pdf_viewer'], factory) : | ||
(global = global || self, factory(global['ng2-pdf-viewer'] = {}, global.ng.core, global.PDFJS, global.PDFJSViewer)); | ||
}(this, (function (exports, core, PDFJS, PDFJSViewer) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('pdfjs-dist'), require('pdfjs-dist/web/pdf_viewer')) : | ||
typeof define === 'function' && define.amd ? define('ng2-pdf-viewer', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', 'pdfjs-dist', 'pdfjs-dist/web/pdf_viewer'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng2-pdf-viewer'] = {}, global.ng.core, global.rxjs, global.rxjs.operators, global.PDFJS, global.PDFJSViewer)); | ||
}(this, (function (exports, core, rxjs, operators, PDFJS, PDFJSViewer) { 'use strict'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function __param(paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
} | ||
function __metadata(metadataKey, metadataValue) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
} | ||
function __generator(thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
}); | ||
} | ||
n['default'] = e; | ||
return Object.freeze(n); | ||
} | ||
function __exportStar(m, exports) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var PDFJS__namespace = /*#__PURE__*/_interopNamespace(PDFJS); | ||
var PDFJSViewer__namespace = /*#__PURE__*/_interopNamespace(PDFJSViewer); | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
} | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
function __spreadArrays() { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
function __await(v) { | ||
return this instanceof __await ? (this.v = v, this) : new __await(v); | ||
} | ||
function __asyncGenerator(thisArg, _arguments, generator) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
function fulfill(value) { resume("next", value); } | ||
function reject(value) { resume("throw", value); } | ||
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } | ||
} | ||
function __asyncDelegator(o) { | ||
var i, p; | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } | ||
} | ||
function __asyncValues(o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator], i; | ||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | ||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | ||
} | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
function __importStar(mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result.default = mod; | ||
return result; | ||
} | ||
function __importDefault(mod) { | ||
return (mod && mod.__esModule) ? mod : { default: mod }; | ||
} | ||
function _createEventBus(pdfJsViewer) { | ||
var globalEventBus = new pdfJsViewer.EventBus(true); | ||
attachDOMEventsToEventBus(globalEventBus); | ||
function createEventBus(pdfJsViewer, destroy$) { | ||
var globalEventBus = new pdfJsViewer.EventBus(); | ||
attachDOMEventsToEventBus(globalEventBus, destroy$); | ||
return globalEventBus; | ||
} | ||
function attachDOMEventsToEventBus(eventBus) { | ||
eventBus.on('documentload', function () { | ||
function attachDOMEventsToEventBus(eventBus, destroy$) { | ||
rxjs.fromEvent(eventBus, 'documentload') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function () { | ||
var event = document.createEvent('CustomEvent'); | ||
@@ -215,110 +43,139 @@ event.initCustomEvent('documentload', true, true, {}); | ||
}); | ||
eventBus.on('pagerendered', function (evt) { | ||
rxjs.fromEvent(eventBus, 'pagerendered') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var pageNumber = _a.pageNumber, cssTransform = _a.cssTransform, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagerendered', true, true, { | ||
pageNumber: evt.pageNumber, | ||
cssTransform: evt.cssTransform | ||
pageNumber: pageNumber, | ||
cssTransform: cssTransform, | ||
}); | ||
evt.source.div.dispatchEvent(event); | ||
source.div.dispatchEvent(event); | ||
}); | ||
eventBus.on('textlayerrendered', function (evt) { | ||
rxjs.fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var pageNumber = _a.pageNumber, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('textlayerrendered', true, true, { | ||
pageNumber: evt.pageNumber | ||
}); | ||
evt.source.textLayerDiv.dispatchEvent(event); | ||
event.initCustomEvent('textlayerrendered', true, true, { pageNumber: pageNumber }); | ||
source.textLayerDiv.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagechanging', function (evt) { | ||
rxjs.fromEvent(eventBus, 'pagechanging') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var pageNumber = _a.pageNumber, source = _a.source; | ||
var event = document.createEvent('UIEvents'); | ||
event.initEvent('pagechanging', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['pageNumber'] = evt.pageNumber; | ||
evt.source.container.dispatchEvent(event); | ||
event['pageNumber'] = pageNumber; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesinit', function (evt) { | ||
rxjs.fromEvent(eventBus, 'pagesinit') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesinit', true, true, null); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesloaded', function (evt) { | ||
rxjs.fromEvent(eventBus, 'pagesloaded') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var pagesCount = _a.pagesCount, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesloaded', true, true, { | ||
pagesCount: evt.pagesCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('pagesloaded', true, true, { pagesCount: pagesCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('scalechange', function (evt) { | ||
rxjs.fromEvent(eventBus, 'scalechange') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var scale = _a.scale, presetValue = _a.presetValue, source = _a.source; | ||
var event = document.createEvent('UIEvents'); | ||
event.initEvent('scalechange', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['scale'] = evt.scale; | ||
event['scale'] = scale; | ||
/* tslint:disable:no-string-literal */ | ||
event['presetValue'] = evt.presetValue; | ||
evt.source.container.dispatchEvent(event); | ||
event['presetValue'] = presetValue; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('updateviewarea', function (evt) { | ||
rxjs.fromEvent(eventBus, 'updateviewarea') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var location = _a.location, source = _a.source; | ||
var event = document.createEvent('UIEvents'); | ||
event.initEvent('updateviewarea', true, true); | ||
event['location'] = evt.location; | ||
evt.source.container.dispatchEvent(event); | ||
event['location'] = location; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('find', function (evt) { | ||
if (evt.source === window) { | ||
rxjs.fromEvent(eventBus, 'find') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var source = _a.source, type = _a.type, query = _a.query, phraseSearch = _a.phraseSearch, caseSensitive = _a.caseSensitive, highlightAll = _a.highlightAll, findPrevious = _a.findPrevious; | ||
if (source === window) { | ||
return; // event comes from FirefoxCom, no need to replicate | ||
} | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('find' + evt.type, true, true, { | ||
query: evt.query, | ||
phraseSearch: evt.phraseSearch, | ||
caseSensitive: evt.caseSensitive, | ||
highlightAll: evt.highlightAll, | ||
findPrevious: evt.findPrevious | ||
event.initCustomEvent('find' + type, true, true, { | ||
query: query, | ||
phraseSearch: phraseSearch, | ||
caseSensitive: caseSensitive, | ||
highlightAll: highlightAll, | ||
findPrevious: findPrevious, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('attachmentsloaded', function (evt) { | ||
rxjs.fromEvent(eventBus, 'attachmentsloaded') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var attachmentsCount = _a.attachmentsCount, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('attachmentsloaded', true, true, { | ||
attachmentsCount: evt.attachmentsCount | ||
attachmentsCount: attachmentsCount, | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('sidebarviewchanged', function (evt) { | ||
rxjs.fromEvent(eventBus, 'sidebarviewchanged') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var view = _a.view, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { | ||
view: evt.view | ||
}); | ||
evt.source.outerContainer.dispatchEvent(event); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { view: view }); | ||
source.outerContainer.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagemode', function (evt) { | ||
rxjs.fromEvent(eventBus, 'pagemode') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var mode = _a.mode, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagemode', true, true, { | ||
mode: evt.mode | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('pagemode', true, true, { mode: mode }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('namedaction', function (evt) { | ||
rxjs.fromEvent(eventBus, 'namedaction') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var action = _a.action, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('namedaction', true, true, { | ||
action: evt.action | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('namedaction', true, true, { action: action }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('presentationmodechanged', function (evt) { | ||
rxjs.fromEvent(eventBus, 'presentationmodechanged') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var active = _a.active, switchInProgress = _a.switchInProgress; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('presentationmodechanged', true, true, { | ||
active: evt.active, | ||
switchInProgress: evt.switchInProgress | ||
active: active, | ||
switchInProgress: switchInProgress, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('outlineloaded', function (evt) { | ||
rxjs.fromEvent(eventBus, 'outlineloaded') | ||
.pipe(operators.takeUntil(destroy$)) | ||
.subscribe(function (_a) { | ||
var outlineCount = _a.outlineCount, source = _a.source; | ||
var event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('outlineloaded', true, true, { | ||
outlineCount: evt.outlineCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('outlineloaded', true, true, { outlineCount: outlineCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
} | ||
var createEventBus = _createEventBus; | ||
@@ -332,6 +189,9 @@ function assign(obj, prop, value) { | ||
/** | ||
* Created by vadimdez on 21/06/16. | ||
*/ | ||
if (!isSSR()) { | ||
assign(PDFJS, "verbosity", PDFJS.VerbosityLevel.ERRORS); | ||
assign(PDFJS__namespace, "verbosity", PDFJS__namespace.VerbosityLevel.ERRORS); | ||
} | ||
exports.RenderTextMode = void 0; | ||
(function (RenderTextMode) { | ||
@@ -346,4 +206,4 @@ RenderTextMode[RenderTextMode["DISABLED"] = 0] = "DISABLED"; | ||
this.isVisible = false; | ||
this._cMapsUrl = typeof PDFJS !== 'undefined' | ||
? "https://unpkg.com/pdfjs-dist@" + PDFJS.version + "/cmaps/" | ||
this._cMapsUrl = typeof PDFJS__namespace !== 'undefined' | ||
? "https://unpkg.com/pdfjs-dist@" + PDFJS__namespace.version + "/cmaps/" | ||
: null; | ||
@@ -363,3 +223,6 @@ this._renderText = true; | ||
this._showBorders = false; | ||
this.resizeTimeout = null; | ||
this.pageScrollTimeout = null; | ||
this.isInitialized = false; | ||
this.destroy$ = new rxjs.Subject(); | ||
this.afterLoadComplete = new core.EventEmitter(); | ||
@@ -382,7 +245,6 @@ this.pageRendered = new core.EventEmitter(); | ||
else { | ||
pdfWorkerSrc = "https://cdn.jsdelivr.net/npm/pdfjs-dist@" + PDFJS.version + "/es5/build/pdf.worker.js"; | ||
pdfWorkerSrc = "https://cdn.jsdelivr.net/npm/pdfjs-dist@" + PDFJS__namespace.version + "/es5/build/pdf.worker.js"; | ||
} | ||
assign(PDFJS.GlobalWorkerOptions, "workerSrc", pdfWorkerSrc); | ||
assign(PDFJS__namespace.GlobalWorkerOptions, "workerSrc", pdfWorkerSrc); | ||
} | ||
PdfViewerComponent_1 = PdfViewerComponent; | ||
Object.defineProperty(PdfViewerComponent.prototype, "cMapsUrl", { | ||
@@ -392,3 +254,3 @@ set: function (cMapsUrl) { | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -408,3 +270,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -416,3 +278,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -424,3 +286,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -432,3 +294,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -440,3 +302,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -448,3 +310,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -462,3 +324,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -473,3 +335,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -485,3 +347,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -493,3 +355,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -501,3 +363,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -509,3 +371,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -517,3 +379,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -524,11 +386,11 @@ }); | ||
case 'blank': | ||
return PDFJS.LinkTarget.BLANK; | ||
return PDFJS__namespace.LinkTarget.BLANK; | ||
case 'none': | ||
return PDFJS.LinkTarget.NONE; | ||
return PDFJS__namespace.LinkTarget.NONE; | ||
case 'self': | ||
return PDFJS.LinkTarget.SELF; | ||
return PDFJS__namespace.LinkTarget.SELF; | ||
case 'parent': | ||
return PDFJS.LinkTarget.PARENT; | ||
return PDFJS__namespace.LinkTarget.PARENT; | ||
case 'top': | ||
return PDFJS.LinkTarget.TOP; | ||
return PDFJS__namespace.LinkTarget.TOP; | ||
} | ||
@@ -564,2 +426,4 @@ return null; | ||
this.clear(); | ||
this.destroy$.next(); | ||
this.loadingTask = null; | ||
}; | ||
@@ -574,3 +438,3 @@ PdfViewerComponent.prototype.onPageResize = function () { | ||
} | ||
this.resizeTimeout = setTimeout(function () { | ||
this.resizeTimeout = window.setTimeout(function () { | ||
_this.updateSize(); | ||
@@ -585,3 +449,3 @@ }, 100); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -593,3 +457,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -603,3 +467,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -639,21 +503,23 @@ }); | ||
var currentViewer = this.getCurrentViewer(); | ||
this._pdf | ||
.getPage(currentViewer.currentPageNumber) | ||
.then(function (page) { | ||
var rotation = _this._rotation || page.rotate; | ||
var viewportWidth = page.getViewport({ | ||
scale: _this._zoom, | ||
rotation: rotation | ||
}).width * PdfViewerComponent_1.CSS_UNITS; | ||
var scale = _this._zoom; | ||
var stickToPage = true; | ||
// Scale the document when it shouldn't be in original size or doesn't fit into the viewport | ||
if (!_this._originalSize || | ||
(_this._fitToPage && | ||
viewportWidth > _this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
var viewPort = page.getViewport({ scale: 1, rotation: rotation }); | ||
scale = _this.getScale(viewPort.width, viewPort.height); | ||
stickToPage = !_this._stickToPage; | ||
rxjs.from(this._pdf.getPage(currentViewer.currentPageNumber)) | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe({ | ||
next: function (page) { | ||
var rotation = _this._rotation || page.rotate; | ||
var viewportWidth = page.getViewport({ | ||
scale: _this._zoom, | ||
rotation: rotation | ||
}).width * PdfViewerComponent.CSS_UNITS; | ||
var scale = _this._zoom; | ||
var stickToPage = true; | ||
// Scale the document when it shouldn't be in original size or doesn't fit into the viewport | ||
if (!_this._originalSize || | ||
(_this._fitToPage && | ||
viewportWidth > _this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
var viewPort = page.getViewport({ scale: 1, rotation: rotation }); | ||
scale = _this.getScale(viewPort.width, viewPort.height); | ||
stickToPage = !_this._stickToPage; | ||
} | ||
currentViewer._setScale(scale, stickToPage); | ||
} | ||
currentViewer._setScale(scale, stickToPage); | ||
}); | ||
@@ -678,3 +544,3 @@ }; | ||
var pdfLinkServiceConfig = {}; | ||
var linkTarget = PdfViewerComponent_1.getLinkTarget(this._externalLinkTarget); | ||
var linkTarget = PdfViewerComponent.getLinkTarget(this._externalLinkTarget); | ||
if (linkTarget) { | ||
@@ -687,24 +553,33 @@ pdfLinkServiceConfig.externalLinkTarget = linkTarget; | ||
var _this = this; | ||
assign(PDFJS, "disableTextLayer", !this._renderText); | ||
var eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagerendered', function (e) { | ||
_this.pageRendered.emit(e); | ||
assign(PDFJS__namespace, "disableTextLayer", !this._renderText); | ||
var eventBus = createEventBus(PDFJSViewer__namespace, this.destroy$); | ||
rxjs.fromEvent(eventBus, 'pagerendered') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.pageRendered.emit(event); | ||
}); | ||
eventBus.on('pagesinit', function (e) { | ||
_this.pageInitialized.emit(e); | ||
rxjs.fromEvent(eventBus, 'pagesinit') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.pageInitialized.emit(event); | ||
}); | ||
eventBus.on('pagechanging', function (e) { | ||
rxjs.fromEvent(eventBus, 'pagechanging') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (_a) { | ||
var pageNumber = _a.pageNumber; | ||
if (_this.pageScrollTimeout) { | ||
clearTimeout(_this.pageScrollTimeout); | ||
} | ||
_this.pageScrollTimeout = setTimeout(function () { | ||
_this._latestScrolledPage = e.pageNumber; | ||
_this.pageChange.emit(e.pageNumber); | ||
_this.pageScrollTimeout = window.setTimeout(function () { | ||
_this._latestScrolledPage = pageNumber; | ||
_this.pageChange.emit(pageNumber); | ||
}, 100); | ||
}); | ||
eventBus.on('textlayerrendered', function (e) { | ||
_this.textLayerRendered.emit(e); | ||
rxjs.fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.textLayerRendered.emit(event); | ||
}); | ||
this.pdfMultiPageLinkService = new PDFJSViewer.PDFLinkService(__assign({ eventBus: eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfMultiPageFindController = new PDFJSViewer.PDFFindController({ | ||
this.pdfMultiPageLinkService = new PDFJSViewer__namespace.PDFLinkService(Object.assign({ eventBus: eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfMultiPageFindController = new PDFJSViewer__namespace.PDFFindController({ | ||
linkService: this.pdfMultiPageLinkService, | ||
@@ -723,3 +598,3 @@ eventBus: eventBus | ||
}; | ||
this.pdfMultiPageViewer = new PDFJSViewer.PDFViewer(pdfOptions); | ||
this.pdfMultiPageViewer = new PDFJSViewer__namespace.PDFViewer(pdfOptions); | ||
this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer); | ||
@@ -730,20 +605,29 @@ this.pdfMultiPageFindController.setDocument(this._pdf); | ||
var _this = this; | ||
assign(PDFJS, "disableTextLayer", !this._renderText); | ||
var eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagechanging', function (e) { | ||
if (e.pageNumber !== _this._page) { | ||
_this.page = e.pageNumber; | ||
assign(PDFJS__namespace, "disableTextLayer", !this._renderText); | ||
var eventBus = createEventBus(PDFJSViewer__namespace, this.destroy$); | ||
rxjs.fromEvent(eventBus, 'pagechanging') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (_a) { | ||
var pageNumber = _a.pageNumber; | ||
if (pageNumber !== _this._page) { | ||
_this.page = pageNumber; | ||
} | ||
}); | ||
eventBus.on('pagerendered', function (e) { | ||
_this.pageRendered.emit(e); | ||
rxjs.fromEvent(eventBus, 'pagerendered') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.pageRendered.emit(event); | ||
}); | ||
eventBus.on('pagesinit', function (e) { | ||
_this.pageInitialized.emit(e); | ||
rxjs.fromEvent(eventBus, 'pagesinit') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.pageInitialized.emit(event); | ||
}); | ||
eventBus.on('textlayerrendered', function (e) { | ||
_this.textLayerRendered.emit(e); | ||
rxjs.fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe(function (event) { | ||
_this.textLayerRendered.emit(event); | ||
}); | ||
this.pdfSinglePageLinkService = new PDFJSViewer.PDFLinkService(__assign({ eventBus: eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfSinglePageFindController = new PDFJSViewer.PDFFindController({ | ||
this.pdfSinglePageLinkService = new PDFJSViewer__namespace.PDFLinkService(Object.assign({ eventBus: eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfSinglePageFindController = new PDFJSViewer__namespace.PDFFindController({ | ||
linkService: this.pdfSinglePageLinkService, | ||
@@ -762,3 +646,3 @@ eventBus: eventBus | ||
}; | ||
this.pdfSinglePageViewer = new PDFJSViewer.PDFSinglePageViewer(pdfOptions); | ||
this.pdfSinglePageViewer = new PDFJSViewer__namespace.PDFSinglePageViewer(pdfOptions); | ||
this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer); | ||
@@ -809,3 +693,3 @@ this.pdfSinglePageFindController.setDocument(this._pdf); | ||
this.clear(); | ||
this.loadingTask = PDFJS.getDocument(this.getDocumentParams()); | ||
this.loadingTask = PDFJS__namespace.getDocument(this.getDocumentParams()); | ||
this.loadingTask.onProgress = function (progressData) { | ||
@@ -815,14 +699,19 @@ _this.onProgress.emit(progressData); | ||
var src = this.src; | ||
this.loadingTask.promise.then(function (pdf) { | ||
_this._pdf = pdf; | ||
_this.lastLoaded = src; | ||
_this.afterLoadComplete.emit(pdf); | ||
if (!_this.pdfMultiPageViewer) { | ||
_this.setupMultiPageViewer(); | ||
_this.setupSinglePageViewer(); | ||
rxjs.from(this.loadingTask.promise) | ||
.pipe(operators.takeUntil(this.destroy$)) | ||
.subscribe({ | ||
next: function (pdf) { | ||
_this._pdf = pdf; | ||
_this.lastLoaded = src; | ||
_this.afterLoadComplete.emit(pdf); | ||
if (!_this.pdfMultiPageViewer) { | ||
_this.setupMultiPageViewer(); | ||
_this.setupSinglePageViewer(); | ||
} | ||
_this.resetPdfDocument(); | ||
_this.update(); | ||
}, | ||
error: function (error) { | ||
_this.onError.emit(error); | ||
} | ||
_this.resetPdfDocument(); | ||
_this.update(); | ||
}, function (error) { | ||
_this.onError.emit(error); | ||
}); | ||
@@ -852,3 +741,3 @@ }; | ||
PdfViewerComponent.prototype.getScale = function (viewportWidth, viewportHeight) { | ||
var borderSize = (this._showBorders ? 2 * PdfViewerComponent_1.BORDER_WIDTH : 0); | ||
var borderSize = (this._showBorders ? 2 * PdfViewerComponent.BORDER_WIDTH : 0); | ||
var pdfContainerWidth = this.pdfViewerContainer.nativeElement.clientWidth - borderSize; | ||
@@ -872,3 +761,3 @@ var pdfContainerHeight = this.pdfViewerContainer.nativeElement.clientHeight - borderSize; | ||
} | ||
return (this._zoom * ratio) / PdfViewerComponent_1.CSS_UNITS; | ||
return (this._zoom * ratio) / PdfViewerComponent.CSS_UNITS; | ||
}; | ||
@@ -893,102 +782,62 @@ PdfViewerComponent.prototype.getCurrentViewer = function () { | ||
}; | ||
var PdfViewerComponent_1; | ||
PdfViewerComponent.CSS_UNITS = 96.0 / 72.0; | ||
PdfViewerComponent.BORDER_WIDTH = 9; | ||
PdfViewerComponent.ctorParameters = function () { return [ | ||
{ type: core.ElementRef } | ||
]; }; | ||
__decorate([ | ||
core.ViewChild('pdfViewerContainer') | ||
], PdfViewerComponent.prototype, "pdfViewerContainer", void 0); | ||
__decorate([ | ||
core.Output('after-load-complete') | ||
], PdfViewerComponent.prototype, "afterLoadComplete", void 0); | ||
__decorate([ | ||
core.Output('page-rendered') | ||
], PdfViewerComponent.prototype, "pageRendered", void 0); | ||
__decorate([ | ||
core.Output('pages-initialized') | ||
], PdfViewerComponent.prototype, "pageInitialized", void 0); | ||
__decorate([ | ||
core.Output('text-layer-rendered') | ||
], PdfViewerComponent.prototype, "textLayerRendered", void 0); | ||
__decorate([ | ||
core.Output('error') | ||
], PdfViewerComponent.prototype, "onError", void 0); | ||
__decorate([ | ||
core.Output('on-progress') | ||
], PdfViewerComponent.prototype, "onProgress", void 0); | ||
__decorate([ | ||
core.Output() | ||
], PdfViewerComponent.prototype, "pageChange", void 0); | ||
__decorate([ | ||
core.Input() | ||
], PdfViewerComponent.prototype, "src", void 0); | ||
__decorate([ | ||
core.Input('c-maps-url') | ||
], PdfViewerComponent.prototype, "cMapsUrl", null); | ||
__decorate([ | ||
core.Input('page') | ||
], PdfViewerComponent.prototype, "page", null); | ||
__decorate([ | ||
core.Input('render-text') | ||
], PdfViewerComponent.prototype, "renderText", null); | ||
__decorate([ | ||
core.Input('render-text-mode') | ||
], PdfViewerComponent.prototype, "renderTextMode", null); | ||
__decorate([ | ||
core.Input('original-size') | ||
], PdfViewerComponent.prototype, "originalSize", null); | ||
__decorate([ | ||
core.Input('show-all') | ||
], PdfViewerComponent.prototype, "showAll", null); | ||
__decorate([ | ||
core.Input('stick-to-page') | ||
], PdfViewerComponent.prototype, "stickToPage", null); | ||
__decorate([ | ||
core.Input('zoom') | ||
], PdfViewerComponent.prototype, "zoom", null); | ||
__decorate([ | ||
core.Input('zoom-scale') | ||
], PdfViewerComponent.prototype, "zoomScale", null); | ||
__decorate([ | ||
core.Input('rotation') | ||
], PdfViewerComponent.prototype, "rotation", null); | ||
__decorate([ | ||
core.Input('external-link-target') | ||
], PdfViewerComponent.prototype, "externalLinkTarget", null); | ||
__decorate([ | ||
core.Input('autoresize') | ||
], PdfViewerComponent.prototype, "autoresize", null); | ||
__decorate([ | ||
core.Input('fit-to-page') | ||
], PdfViewerComponent.prototype, "fitToPage", null); | ||
__decorate([ | ||
core.Input('show-borders') | ||
], PdfViewerComponent.prototype, "showBorders", null); | ||
__decorate([ | ||
core.HostListener('window:resize', []) | ||
], PdfViewerComponent.prototype, "onPageResize", null); | ||
PdfViewerComponent = PdfViewerComponent_1 = __decorate([ | ||
core.Component({ | ||
selector: 'pdf-viewer', | ||
template: "\n <div #pdfViewerContainer class=\"ng2-pdf-viewer-container\">\n <div class=\"pdfViewer\"></div>\n </div>\n ", | ||
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);box-sizing:initial;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYS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TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"] | ||
}) | ||
], PdfViewerComponent); | ||
return PdfViewerComponent; | ||
}()); | ||
PdfViewerComponent.CSS_UNITS = 96.0 / 72.0; | ||
PdfViewerComponent.BORDER_WIDTH = 9; | ||
PdfViewerComponent.decorators = [ | ||
{ type: core.Component, args: [{ | ||
selector: 'pdf-viewer', | ||
template: "\n <div #pdfViewerContainer class=\"ng2-pdf-viewer-container\">\n <div class=\"pdfViewer\"></div>\n </div>\n ", | ||
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread,:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .spread .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page,:host ::ng-deep .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(\"data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQA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NBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==\") 50% no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"] | ||
},] } | ||
]; | ||
PdfViewerComponent.ctorParameters = function () { return [ | ||
{ type: core.ElementRef } | ||
]; }; | ||
PdfViewerComponent.propDecorators = { | ||
pdfViewerContainer: [{ type: core.ViewChild, args: ['pdfViewerContainer',] }], | ||
afterLoadComplete: [{ type: core.Output, args: ['after-load-complete',] }], | ||
pageRendered: [{ type: core.Output, args: ['page-rendered',] }], | ||
pageInitialized: [{ type: core.Output, args: ['pages-initialized',] }], | ||
textLayerRendered: [{ type: core.Output, args: ['text-layer-rendered',] }], | ||
onError: [{ type: core.Output, args: ['error',] }], | ||
onProgress: [{ type: core.Output, args: ['on-progress',] }], | ||
pageChange: [{ type: core.Output }], | ||
src: [{ type: core.Input }], | ||
cMapsUrl: [{ type: core.Input, args: ['c-maps-url',] }], | ||
page: [{ type: core.Input, args: ['page',] }], | ||
renderText: [{ type: core.Input, args: ['render-text',] }], | ||
renderTextMode: [{ type: core.Input, args: ['render-text-mode',] }], | ||
originalSize: [{ type: core.Input, args: ['original-size',] }], | ||
showAll: [{ type: core.Input, args: ['show-all',] }], | ||
stickToPage: [{ type: core.Input, args: ['stick-to-page',] }], | ||
zoom: [{ type: core.Input, args: ['zoom',] }], | ||
zoomScale: [{ type: core.Input, args: ['zoom-scale',] }], | ||
rotation: [{ type: core.Input, args: ['rotation',] }], | ||
externalLinkTarget: [{ type: core.Input, args: ['external-link-target',] }], | ||
autoresize: [{ type: core.Input, args: ['autoresize',] }], | ||
fitToPage: [{ type: core.Input, args: ['fit-to-page',] }], | ||
showBorders: [{ type: core.Input, args: ['show-borders',] }], | ||
onPageResize: [{ type: core.HostListener, args: ['window:resize', [],] }] | ||
}; | ||
/** | ||
* Created by vadimdez on 01/11/2016. | ||
*/ | ||
var PdfViewerModule = /** @class */ (function () { | ||
function PdfViewerModule() { | ||
} | ||
PdfViewerModule = __decorate([ | ||
core.NgModule({ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
}) | ||
], PdfViewerModule); | ||
return PdfViewerModule; | ||
}()); | ||
PdfViewerModule.decorators = [ | ||
{ type: core.NgModule, args: [{ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
},] } | ||
]; | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
exports.PdfViewerComponent = PdfViewerComponent; | ||
@@ -995,0 +844,0 @@ exports.PdfViewerModule = PdfViewerModule; |
@@ -1,16 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("pdfjs-dist/es5/build/pdf"),require("pdfjs-dist/es5/web/pdf_viewer")):"function"==typeof define&&define.amd?define("ng2-pdf-viewer",["exports","@angular/core","pdfjs-dist/es5/build/pdf","pdfjs-dist/es5/web/pdf_viewer"],t):t((e=e||self)["ng2-pdf-viewer"]={},e.ng.core,e.PDFJS,e.PDFJSViewer)}(this,(function(e,t,n,o){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}var a,s=function(e){var t,n=new e.EventBus(!0);return(t=n).on("documentload",(function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)})),t.on("pagerendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)})),t.on("textlayerrendered",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)})),t.on("pagechanging",(function(e){var t=document.createEvent("UIEvents");t.initEvent("pagechanging",!0,!0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)})),t.on("pagesinit",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)})),t.on("pagesloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)})),t.on("scalechange",(function(e){var t=document.createEvent("UIEvents");t.initEvent("scalechange",!0,!0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)})),t.on("updateviewarea",(function(e){var t=document.createEvent("UIEvents");t.initEvent("updateviewarea",!0,!0),t.location=e.location,e.source.container.dispatchEvent(t)})),t.on("find",(function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}})),t.on("attachmentsloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)})),t.on("sidebarviewchanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)})),t.on("pagemode",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("namedaction",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)})),t.on("presentationmodechanged",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)})),t.on("outlineloaded",(function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)})),n};function p(e,t,n){e[t]=n}function d(){return"undefined"==typeof window}d()||p(n,"verbosity",n.VerbosityLevel.ERRORS),(a=e.RenderTextMode||(e.RenderTextMode={}))[a.DISABLED=0]="DISABLED",a[a.ENABLED=1]="ENABLED",a[a.ENHANCED=2]="ENHANCED";var g=function(){function a(o){var i;(this.element=o,this.isVisible=!1,this._cMapsUrl=void 0!==n?"https://unpkg.com/pdfjs-dist@"+n.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.isInitialized=!1,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.pageInitialized=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),d())||(i=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdn.jsdelivr.net/npm/pdfjs-dist@"+n.version+"/es5/build/pdf.worker.js",p(n.GlobalWorkerOptions,"workerSrc",i))}var g;return g=a,Object.defineProperty(a.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"page",{set:function(e){var t=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,t!==e&&this.pageChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"zoomScale",{get:function(){return this._zoomScale},set:function(e){this._zoomScale=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showBorders",{set:function(e){this._showBorders=Boolean(e)},enumerable:!0,configurable:!0}),a.getLinkTarget=function(e){switch(e){case"blank":return n.LinkTarget.BLANK;case"none":return n.LinkTarget.NONE;case"self":return n.LinkTarget.SELF;case"parent":return n.LinkTarget.PARENT;case"top":return n.LinkTarget.TOP}return null},a.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout((function(){e.ngOnInit(),e.ngOnChanges({src:e.src})}))):this.isVisible=!1}},a.prototype.ngOnInit=function(){!d()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},a.prototype.ngOnDestroy=function(){this.clear()},a.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){e.updateSize()}),100))},Object.defineProperty(a.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(t){if(!d()&&this.isVisible)if("src"in t)this.loadPDF();else if(this._pdf){if("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t){if(t.page.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}},a.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();this._pdf.getPage(t.currentPageNumber).then((function(n){var o=e._rotation||n.rotate,i=n.getViewport({scale:e._zoom,rotation:o}).width*g.CSS_UNITS,r=e._zoom,a=!0;if(!e._originalSize||e._fitToPage&&i>e.pdfViewerContainer.nativeElement.clientWidth){var s=n.getViewport({scale:1,rotation:o});r=e.getScale(s.width,s.height),a=!e._stickToPage}t._setScale(r,a)}))},a.prototype.clear=function(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))},a.prototype.getPDFLinkServiceConfig=function(){var e={},t=g.getLinkTarget(this._externalLinkTarget);return t&&(e.externalLinkTarget=t),e},a.prototype.setupMultiPageViewer=function(){var t=this;p(n,"disableTextLayer",!this._renderText);var r=s(o);r.on("pagerendered",(function(e){t.pageRendered.emit(e)})),r.on("pagesinit",(function(e){t.pageInitialized.emit(e)})),r.on("pagechanging",(function(e){t.pageScrollTimeout&&clearTimeout(t.pageScrollTimeout),t.pageScrollTimeout=setTimeout((function(){t._latestScrolledPage=e.pageNumber,t.pageChange.emit(e.pageNumber)}),100)})),r.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfMultiPageLinkService=new o.PDFLinkService(i({eventBus:r},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new o.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:r});var a={eventBus:r,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new o.PDFViewer(a),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},a.prototype.setupSinglePageViewer=function(){var t=this;p(n,"disableTextLayer",!this._renderText);var r=s(o);r.on("pagechanging",(function(e){e.pageNumber!==t._page&&(t.page=e.pageNumber)})),r.on("pagerendered",(function(e){t.pageRendered.emit(e)})),r.on("pagesinit",(function(e){t.pageInitialized.emit(e)})),r.on("textlayerrendered",(function(e){t.textLayerRendered.emit(e)})),this.pdfSinglePageLinkService=new o.PDFLinkService(i({eventBus:r},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new o.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:r});var a={eventBus:r,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new o.PDFSinglePageViewer(a),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},a.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},a.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(void 0!==this.src.byteLength?t.data=this.src:Object.assign(t,this.src)),t},a.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){this.clear(),this.loadingTask=n.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=function(t){e.onProgress.emit(t)};var t=this.src;this.loadingTask.promise.then((function(n){e._pdf=n,e.lastLoaded=t,e.afterLoadComplete.emit(n),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()}),(function(t){e.onError.emit(t)}))}else this.update()},a.prototype.update=function(){this.page=this._page,this.render()},a.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout((function(){t.pagesRotation=e._rotation})),this._stickToPage&&setTimeout((function(){t.currentPageNumber=e._page})),this.updateSize()},a.prototype.getScale=function(e,t){var n=this._showBorders?2*g.BORDER_WIDTH:0,o=this.pdfViewerContainer.nativeElement.clientWidth-n,i=this.pdfViewerContainer.nativeElement.clientHeight-n;if(0===i||0===t||0===o||0===e)return 1;var r=1;switch(this._zoomScale){case"page-fit":r=Math.min(i/t,o/e);break;case"page-height":r=i/t;break;case"page-width":default:r=o/e}return this._zoom*r/g.CSS_UNITS},a.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},a.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},a.CSS_UNITS=96/72,a.BORDER_WIDTH=9,a.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.ViewChild("pdfViewerContainer")],a.prototype,"pdfViewerContainer",void 0),r([t.Output("after-load-complete")],a.prototype,"afterLoadComplete",void 0),r([t.Output("page-rendered")],a.prototype,"pageRendered",void 0),r([t.Output("pages-initialized")],a.prototype,"pageInitialized",void 0),r([t.Output("text-layer-rendered")],a.prototype,"textLayerRendered",void 0),r([t.Output("error")],a.prototype,"onError",void 0),r([t.Output("on-progress")],a.prototype,"onProgress",void 0),r([t.Output()],a.prototype,"pageChange",void 0),r([t.Input()],a.prototype,"src",void 0),r([t.Input("c-maps-url")],a.prototype,"cMapsUrl",null),r([t.Input("page")],a.prototype,"page",null),r([t.Input("render-text")],a.prototype,"renderText",null),r([t.Input("render-text-mode")],a.prototype,"renderTextMode",null),r([t.Input("original-size")],a.prototype,"originalSize",null),r([t.Input("show-all")],a.prototype,"showAll",null),r([t.Input("stick-to-page")],a.prototype,"stickToPage",null),r([t.Input("zoom")],a.prototype,"zoom",null),r([t.Input("zoom-scale")],a.prototype,"zoomScale",null),r([t.Input("rotation")],a.prototype,"rotation",null),r([t.Input("external-link-target")],a.prototype,"externalLinkTarget",null),r([t.Input("autoresize")],a.prototype,"autoresize",null),r([t.Input("fit-to-page")],a.prototype,"fitToPage",null),r([t.Input("show-borders")],a.prototype,"showBorders",null),r([t.HostListener("window:resize",[])],a.prototype,"onPageResize",null),a=g=r([t.Component({selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);box-sizing:initial;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAY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oyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']})],a)}(),l=function(){function e(){}return e=r([t.NgModule({declarations:[g],exports:[g]})],e)}();e.PdfViewerComponent=g,e.PdfViewerModule=l,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("pdfjs-dist"),require("pdfjs-dist/web/pdf_viewer")):"function"==typeof define&&define.amd?define("ng2-pdf-viewer",["exports","@angular/core","rxjs","rxjs/operators","pdfjs-dist","pdfjs-dist/web/pdf_viewer"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng2-pdf-viewer"]={},e.ng.core,e.rxjs,e.rxjs.operators,e.PDFJS,e.PDFJSViewer)}(this,(function(e,t,n,i,o,r){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s,p=a(o),d=a(r);function g(e,t){var o=new e.EventBus;return function(e,t){n.fromEvent(e,"documentload").pipe(i.takeUntil(t)).subscribe((function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)})),n.fromEvent(e,"pagerendered").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.pageNumber,n=e.cssTransform,i=e.source,o=document.createEvent("CustomEvent");o.initCustomEvent("pagerendered",!0,!0,{pageNumber:t,cssTransform:n}),i.div.dispatchEvent(o)})),n.fromEvent(e,"textlayerrendered").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.pageNumber,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:t}),n.textLayerDiv.dispatchEvent(i)})),n.fromEvent(e,"pagechanging").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.pageNumber,n=e.source,i=document.createEvent("UIEvents");i.initEvent("pagechanging",!0,!0),i.pageNumber=t,n.container.dispatchEvent(i)})),n.fromEvent(e,"pagesinit").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.source,n=document.createEvent("CustomEvent");n.initCustomEvent("pagesinit",!0,!0,null),t.container.dispatchEvent(n)})),n.fromEvent(e,"pagesloaded").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.pagesCount,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("pagesloaded",!0,!0,{pagesCount:t}),n.container.dispatchEvent(i)})),n.fromEvent(e,"scalechange").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.scale,n=e.presetValue,i=e.source,o=document.createEvent("UIEvents");o.initEvent("scalechange",!0,!0),o.scale=t,o.presetValue=n,i.container.dispatchEvent(o)})),n.fromEvent(e,"updateviewarea").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.location,n=e.source,i=document.createEvent("UIEvents");i.initEvent("updateviewarea",!0,!0),i.location=t,n.container.dispatchEvent(i)})),n.fromEvent(e,"find").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.source,n=e.type,i=e.query,o=e.phraseSearch,r=e.caseSensitive,a=e.highlightAll,s=e.findPrevious;if(t!==window){var p=document.createEvent("CustomEvent");p.initCustomEvent("find"+n,!0,!0,{query:i,phraseSearch:o,caseSensitive:r,highlightAll:a,findPrevious:s}),window.dispatchEvent(p)}})),n.fromEvent(e,"attachmentsloaded").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.attachmentsCount,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:t}),n.container.dispatchEvent(i)})),n.fromEvent(e,"sidebarviewchanged").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.view,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("sidebarviewchanged",!0,!0,{view:t}),n.outerContainer.dispatchEvent(i)})),n.fromEvent(e,"pagemode").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.mode,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("pagemode",!0,!0,{mode:t}),n.pdfViewer.container.dispatchEvent(i)})),n.fromEvent(e,"namedaction").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.action,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("namedaction",!0,!0,{action:t}),n.pdfViewer.container.dispatchEvent(i)})),n.fromEvent(e,"presentationmodechanged").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.active,n=e.switchInProgress,i=document.createEvent("CustomEvent");i.initCustomEvent("presentationmodechanged",!0,!0,{active:t,switchInProgress:n}),window.dispatchEvent(i)})),n.fromEvent(e,"outlineloaded").pipe(i.takeUntil(t)).subscribe((function(e){var t=e.outlineCount,n=e.source,i=document.createEvent("CustomEvent");i.initCustomEvent("outlineloaded",!0,!0,{outlineCount:t}),n.container.dispatchEvent(i)}))}(o,t),o}function l(e,t,n){e[t]=n}function c(){return"undefined"==typeof window}c()||l(p,"verbosity",p.VerbosityLevel.ERRORS),e.RenderTextMode=void 0,(s=e.RenderTextMode||(e.RenderTextMode={}))[s.DISABLED=0]="DISABLED",s[s.ENABLED=1]="ENABLED",s[s.ENHANCED=2]="ENHANCED";var u=function(){function o(i){var o;(this.element=i,this.isVisible=!1,this._cMapsUrl=void 0!==p?"https://unpkg.com/pdfjs-dist@"+p.version+"/cmaps/":null,this._renderText=!0,this._renderTextMode=e.RenderTextMode.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new n.Subject,this.afterLoadComplete=new t.EventEmitter,this.pageRendered=new t.EventEmitter,this.pageInitialized=new t.EventEmitter,this.textLayerRendered=new t.EventEmitter,this.onError=new t.EventEmitter,this.onProgress=new t.EventEmitter,this.pageChange=new t.EventEmitter(!0),c())||(o=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:"https://cdn.jsdelivr.net/npm/pdfjs-dist@"+p.version+"/es5/build/pdf.worker.js",l(p.GlobalWorkerOptions,"workerSrc",o))}return Object.defineProperty(o.prototype,"cMapsUrl",{set:function(e){this._cMapsUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"page",{set:function(e){var t=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,t!==e&&this.pageChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"renderText",{set:function(e){this._renderText=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"renderTextMode",{set:function(e){this._renderTextMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"originalSize",{set:function(e){this._originalSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"showAll",{set:function(e){this._showAll=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"stickToPage",{set:function(e){this._stickToPage=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"zoom",{get:function(){return this._zoom},set:function(e){e<=0||(this._zoom=e)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"zoomScale",{get:function(){return this._zoomScale},set:function(e){this._zoomScale=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"rotation",{set:function(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"externalLinkTarget",{set:function(e){this._externalLinkTarget=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"autoresize",{set:function(e){this._canAutoResize=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"fitToPage",{set:function(e){this._fitToPage=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"showBorders",{set:function(e){this._showBorders=Boolean(e)},enumerable:!1,configurable:!0}),o.getLinkTarget=function(e){switch(e){case"blank":return p.LinkTarget.BLANK;case"none":return p.LinkTarget.NONE;case"self":return p.LinkTarget.SELF;case"parent":return p.LinkTarget.PARENT;case"top":return p.LinkTarget.TOP}return null},o.prototype.ngAfterViewChecked=function(){var e=this;if(!this.isInitialized){var t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout((function(){e.ngOnInit(),e.ngOnChanges({src:e.src})}))):this.isVisible=!1}},o.prototype.ngOnInit=function(){!c()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())},o.prototype.ngOnDestroy=function(){this.clear(),this.destroy$.next(),this.loadingTask=null},o.prototype.onPageResize=function(){var e=this;this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){e.updateSize()}),100))},Object.defineProperty(o.prototype,"pdfLinkService",{get:function(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pdfViewer",{get:function(){return this.getCurrentViewer()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pdfFindController",{get:function(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController},enumerable:!1,configurable:!0}),o.prototype.ngOnChanges=function(t){if(!c()&&this.isVisible)if("src"in t)this.loadPDF();else if(this._pdf){if("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t){if(t.page.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}},o.prototype.updateSize=function(){var e=this,t=this.getCurrentViewer();n.from(this._pdf.getPage(t.currentPageNumber)).pipe(i.takeUntil(this.destroy$)).subscribe({next:function(n){var i=e._rotation||n.rotate,r=n.getViewport({scale:e._zoom,rotation:i}).width*o.CSS_UNITS,a=e._zoom,s=!0;if(!e._originalSize||e._fitToPage&&r>e.pdfViewerContainer.nativeElement.clientWidth){var p=n.getViewport({scale:1,rotation:i});a=e.getScale(p.width,p.height),s=!e._stickToPage}t._setScale(a,s)}})},o.prototype.clear=function(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))},o.prototype.getPDFLinkServiceConfig=function(){var e={},t=o.getLinkTarget(this._externalLinkTarget);return t&&(e.externalLinkTarget=t),e},o.prototype.setupMultiPageViewer=function(){var t=this;l(p,"disableTextLayer",!this._renderText);var o=g(d,this.destroy$);n.fromEvent(o,"pagerendered").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.pageRendered.emit(e)})),n.fromEvent(o,"pagesinit").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.pageInitialized.emit(e)})),n.fromEvent(o,"pagechanging").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){var n=e.pageNumber;t.pageScrollTimeout&&clearTimeout(t.pageScrollTimeout),t.pageScrollTimeout=window.setTimeout((function(){t._latestScrolledPage=n,t.pageChange.emit(n)}),100)})),n.fromEvent(o,"textlayerrendered").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.textLayerRendered.emit(e)})),this.pdfMultiPageLinkService=new d.PDFLinkService(Object.assign({eventBus:o},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new d.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:o});var r={eventBus:o,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new d.PDFViewer(r),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)},o.prototype.setupSinglePageViewer=function(){var t=this;l(p,"disableTextLayer",!this._renderText);var o=g(d,this.destroy$);n.fromEvent(o,"pagechanging").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){var n=e.pageNumber;n!==t._page&&(t.page=n)})),n.fromEvent(o,"pagerendered").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.pageRendered.emit(e)})),n.fromEvent(o,"pagesinit").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.pageInitialized.emit(e)})),n.fromEvent(o,"textlayerrendered").pipe(i.takeUntil(this.destroy$)).subscribe((function(e){t.textLayerRendered.emit(e)})),this.pdfSinglePageLinkService=new d.PDFLinkService(Object.assign({eventBus:o},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new d.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:o});var r={eventBus:o,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:e.RenderTextMode.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new d.PDFSinglePageViewer(r),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page},o.prototype.getValidPageNumber=function(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e},o.prototype.getDocumentParams=function(){var e=typeof this.src;if(!this._cMapsUrl)return this.src;var t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(void 0!==this.src.byteLength?t.data=this.src:Object.assign(t,this.src)),t},o.prototype.loadPDF=function(){var e=this;if(this.src)if(this.lastLoaded!==this.src){this.clear(),this.loadingTask=p.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=function(t){e.onProgress.emit(t)};var t=this.src;n.from(this.loadingTask.promise).pipe(i.takeUntil(this.destroy$)).subscribe({next:function(n){e._pdf=n,e.lastLoaded=t,e.afterLoadComplete.emit(n),e.pdfMultiPageViewer||(e.setupMultiPageViewer(),e.setupSinglePageViewer()),e.resetPdfDocument(),e.update()},error:function(t){e.onError.emit(t)}})}else this.update()},o.prototype.update=function(){this.page=this._page,this.render()},o.prototype.render=function(){var e=this;this._page=this.getValidPageNumber(this._page);var t=this.getCurrentViewer();0===this._rotation&&t.pagesRotation===this._rotation||setTimeout((function(){t.pagesRotation=e._rotation})),this._stickToPage&&setTimeout((function(){t.currentPageNumber=e._page})),this.updateSize()},o.prototype.getScale=function(e,t){var n=this._showBorders?2*o.BORDER_WIDTH:0,i=this.pdfViewerContainer.nativeElement.clientWidth-n,r=this.pdfViewerContainer.nativeElement.clientHeight-n;if(0===r||0===t||0===i||0===e)return 1;var a=1;switch(this._zoomScale){case"page-fit":a=Math.min(r/t,i/e);break;case"page-height":a=r/t;break;case"page-width":default:a=i/e}return this._zoom*a/o.CSS_UNITS},o.prototype.getCurrentViewer=function(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer},o.prototype.resetPdfDocument=function(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))},o}();u.CSS_UNITS=96/72,u.BORDER_WIDTH=9,u.decorators=[{type:t.Component,args:[{selector:"pdf-viewer",template:'\n <div #pdfViewerContainer class="ng2-pdf-viewer-container">\n <div class="pdfViewer"></div>\n </div>\n ',styles:['.ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=") 9 9 repeat;border-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=") 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread,:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .spread .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page,:host ::ng-deep .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url("data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6O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ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==") 50% no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']}]}],u.ctorParameters=function(){return[{type:t.ElementRef}]},u.propDecorators={pdfViewerContainer:[{type:t.ViewChild,args:["pdfViewerContainer"]}],afterLoadComplete:[{type:t.Output,args:["after-load-complete"]}],pageRendered:[{type:t.Output,args:["page-rendered"]}],pageInitialized:[{type:t.Output,args:["pages-initialized"]}],textLayerRendered:[{type:t.Output,args:["text-layer-rendered"]}],onError:[{type:t.Output,args:["error"]}],onProgress:[{type:t.Output,args:["on-progress"]}],pageChange:[{type:t.Output}],src:[{type:t.Input}],cMapsUrl:[{type:t.Input,args:["c-maps-url"]}],page:[{type:t.Input,args:["page"]}],renderText:[{type:t.Input,args:["render-text"]}],renderTextMode:[{type:t.Input,args:["render-text-mode"]}],originalSize:[{type:t.Input,args:["original-size"]}],showAll:[{type:t.Input,args:["show-all"]}],stickToPage:[{type:t.Input,args:["stick-to-page"]}],zoom:[{type:t.Input,args:["zoom"]}],zoomScale:[{type:t.Input,args:["zoom-scale"]}],rotation:[{type:t.Input,args:["rotation"]}],externalLinkTarget:[{type:t.Input,args:["external-link-target"]}],autoresize:[{type:t.Input,args:["autoresize"]}],fitToPage:[{type:t.Input,args:["fit-to-page"]}],showBorders:[{type:t.Input,args:["show-borders"]}],onPageResize:[{type:t.HostListener,args:["window:resize",[]]}]};var h=function(){};h.decorators=[{type:t.NgModule,args:[{declarations:[u],exports:[u]}]}],e.PdfViewerComponent=u,e.PdfViewerModule=h,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ng2-pdf-viewer.umd.min.js.map |
@@ -5,2 +5,2 @@ /** | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmcyLXBkZi12aWV3ZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZzItcGRmLXZpZXdlci8iLCJzb3VyY2VzIjpbIm5nMi1wZGYtdmlld2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmcyLXBkZi12aWV3ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9uZzItcGRmLXZpZXdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
export * from './src/app/pdf-viewer/pdf-viewer.module'; | ||
export * from './src/app/pdf-viewer/pdf-viewer.component'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nMi1wZGYtdmlld2VyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NyYy9hcHAvcGRmLXZpZXdlci9wZGYtdmlld2VyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9hcHAvcGRmLXZpZXdlci9wZGYtdmlld2VyLmNvbXBvbmVudCc7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvYXBwL3BkZi12aWV3ZXIvcGRmLXZpZXdlci5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvYXBwL3BkZi12aWV3ZXIvcGRmLXZpZXdlci5jb21wb25lbnQnO1xuIl19 |
@@ -1,2 +0,1 @@ | ||
import { __decorate } from "tslib"; | ||
/** | ||
@@ -7,11 +6,11 @@ * Created by vadimdez on 01/11/2016. | ||
import { PdfViewerComponent } from './pdf-viewer.component'; | ||
let PdfViewerModule = class PdfViewerModule { | ||
}; | ||
PdfViewerModule = __decorate([ | ||
NgModule({ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
}) | ||
], PdfViewerModule); | ||
export { PdfViewerModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGRmLXZpZXdlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZzItcGRmLXZpZXdlci8iLCJzb3VyY2VzIjpbInNyYy9hcHAvcGRmLXZpZXdlci9wZGYtdmlld2VyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7QUFDSCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBcUI1RCxJQUFhLGVBQWUsR0FBNUIsTUFBYSxlQUFlO0NBQUcsQ0FBQTtBQUFsQixlQUFlO0lBSjNCLFFBQVEsQ0FBQztRQUNSLFlBQVksRUFBRSxDQUFDLGtCQUFrQixDQUFDO1FBQ2xDLE9BQU8sRUFBRSxDQUFDLGtCQUFrQixDQUFDO0tBQzlCLENBQUM7R0FDVyxlQUFlLENBQUc7U0FBbEIsZUFBZSIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ3JlYXRlZCBieSB2YWRpbWRleiBvbiAwMS8xMS8yMDE2LlxuICovXG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBQZGZWaWV3ZXJDb21wb25lbnQgfSBmcm9tICcuL3BkZi12aWV3ZXIuY29tcG9uZW50JztcbmltcG9ydCB7IFBERkpTU3RhdGljIH0gZnJvbSAncGRmanMtZGlzdCc7XG5cbmRlY2xhcmUgZ2xvYmFsIHtcbiAgY29uc3QgUERGSlM6IFBERkpTU3RhdGljO1xufVxuXG5leHBvcnQge1xuICBQREZKU1N0YXRpYyxcbiAgUERGRG9jdW1lbnRQcm94eSxcbiAgUERGVmlld2VyUGFyYW1zLFxuICBQREZQYWdlUHJveHksXG4gIFBERlNvdXJjZSxcbiAgUERGUHJvZ3Jlc3NEYXRhLFxuICBQREZQcm9taXNlXG59IGZyb20gJ3BkZmpzLWRpc3QnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtQZGZWaWV3ZXJDb21wb25lbnRdLFxuICBleHBvcnRzOiBbUGRmVmlld2VyQ29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBQZGZWaWV3ZXJNb2R1bGUge31cbiJdfQ== | ||
export * from './typings'; | ||
export class PdfViewerModule { | ||
} | ||
PdfViewerModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGRmLXZpZXdlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL3BkZi12aWV3ZXIvcGRmLXZpZXdlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRTVELGNBQWMsV0FBVyxDQUFDO0FBTTFCLE1BQU0sT0FBTyxlQUFlOzs7WUFKM0IsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLGtCQUFrQixDQUFDO2dCQUNsQyxPQUFPLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQzthQUM5QiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ3JlYXRlZCBieSB2YWRpbWRleiBvbiAwMS8xMS8yMDE2LlxuICovXG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBQZGZWaWV3ZXJDb21wb25lbnQgfSBmcm9tICcuL3BkZi12aWV3ZXIuY29tcG9uZW50JztcblxuZXhwb3J0ICogZnJvbSAnLi90eXBpbmdzJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbUGRmVmlld2VyQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW1BkZlZpZXdlckNvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgUGRmVmlld2VyTW9kdWxlIHt9XG4iXX0= |
@@ -1,8 +0,12 @@ | ||
export function _createEventBus(pdfJsViewer) { | ||
const globalEventBus = new pdfJsViewer.EventBus(true); | ||
attachDOMEventsToEventBus(globalEventBus); | ||
import { fromEvent } from 'rxjs'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
export function createEventBus(pdfJsViewer, destroy$) { | ||
const globalEventBus = new pdfJsViewer.EventBus(); | ||
attachDOMEventsToEventBus(globalEventBus, destroy$); | ||
return globalEventBus; | ||
} | ||
function attachDOMEventsToEventBus(eventBus) { | ||
eventBus.on('documentload', () => { | ||
function attachDOMEventsToEventBus(eventBus, destroy$) { | ||
fromEvent(eventBus, 'documentload') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(() => { | ||
const event = document.createEvent('CustomEvent'); | ||
@@ -12,110 +16,125 @@ event.initCustomEvent('documentload', true, true, {}); | ||
}); | ||
eventBus.on('pagerendered', evt => { | ||
fromEvent(eventBus, 'pagerendered') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, cssTransform, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagerendered', true, true, { | ||
pageNumber: evt.pageNumber, | ||
cssTransform: evt.cssTransform | ||
pageNumber, | ||
cssTransform, | ||
}); | ||
evt.source.div.dispatchEvent(event); | ||
source.div.dispatchEvent(event); | ||
}); | ||
eventBus.on('textlayerrendered', evt => { | ||
fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('textlayerrendered', true, true, { | ||
pageNumber: evt.pageNumber | ||
}); | ||
evt.source.textLayerDiv.dispatchEvent(event); | ||
event.initCustomEvent('textlayerrendered', true, true, { pageNumber }); | ||
source.textLayerDiv.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagechanging', evt => { | ||
fromEvent(eventBus, 'pagechanging') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('pagechanging', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['pageNumber'] = evt.pageNumber; | ||
evt.source.container.dispatchEvent(event); | ||
event['pageNumber'] = pageNumber; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesinit', evt => { | ||
fromEvent(eventBus, 'pagesinit') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesinit', true, true, null); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesloaded', evt => { | ||
fromEvent(eventBus, 'pagesloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pagesCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesloaded', true, true, { | ||
pagesCount: evt.pagesCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('pagesloaded', true, true, { pagesCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('scalechange', evt => { | ||
fromEvent(eventBus, 'scalechange') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ scale, presetValue, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('scalechange', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['scale'] = evt.scale; | ||
event['scale'] = scale; | ||
/* tslint:disable:no-string-literal */ | ||
event['presetValue'] = evt.presetValue; | ||
evt.source.container.dispatchEvent(event); | ||
event['presetValue'] = presetValue; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('updateviewarea', evt => { | ||
fromEvent(eventBus, 'updateviewarea') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ location, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('updateviewarea', true, true); | ||
event['location'] = evt.location; | ||
evt.source.container.dispatchEvent(event); | ||
event['location'] = location; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('find', evt => { | ||
if (evt.source === window) { | ||
fromEvent(eventBus, 'find') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ source, type, query, phraseSearch, caseSensitive, highlightAll, findPrevious, }) => { | ||
if (source === window) { | ||
return; // event comes from FirefoxCom, no need to replicate | ||
} | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('find' + evt.type, true, true, { | ||
query: evt.query, | ||
phraseSearch: evt.phraseSearch, | ||
caseSensitive: evt.caseSensitive, | ||
highlightAll: evt.highlightAll, | ||
findPrevious: evt.findPrevious | ||
event.initCustomEvent('find' + type, true, true, { | ||
query, | ||
phraseSearch, | ||
caseSensitive, | ||
highlightAll, | ||
findPrevious, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('attachmentsloaded', evt => { | ||
fromEvent(eventBus, 'attachmentsloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ attachmentsCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('attachmentsloaded', true, true, { | ||
attachmentsCount: evt.attachmentsCount | ||
attachmentsCount, | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('sidebarviewchanged', evt => { | ||
fromEvent(eventBus, 'sidebarviewchanged') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ view, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { | ||
view: evt.view | ||
}); | ||
evt.source.outerContainer.dispatchEvent(event); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { view }); | ||
source.outerContainer.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagemode', evt => { | ||
fromEvent(eventBus, 'pagemode') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ mode, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagemode', true, true, { | ||
mode: evt.mode | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('pagemode', true, true, { mode }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('namedaction', evt => { | ||
fromEvent(eventBus, 'namedaction') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ action, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('namedaction', true, true, { | ||
action: evt.action | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('namedaction', true, true, { action }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('presentationmodechanged', evt => { | ||
fromEvent(eventBus, 'presentationmodechanged') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ active, switchInProgress }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('presentationmodechanged', true, true, { | ||
active: evt.active, | ||
switchInProgress: evt.switchInProgress | ||
active, | ||
switchInProgress, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('outlineloaded', evt => { | ||
fromEvent(eventBus, 'outlineloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ outlineCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('outlineloaded', true, true, { | ||
outlineCount: evt.outlineCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('outlineloaded', true, true, { outlineCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
} | ||
export const createEventBus = _createEventBus; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQtYnVzLXV0aWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmcyLXBkZi12aWV3ZXIvIiwic291cmNlcyI6WyJzcmMvYXBwL3V0aWxzL2V2ZW50LWJ1cy11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsZUFBZSxDQUFDLFdBQWdCO0lBQzlDLE1BQU0sY0FBYyxHQUFHLElBQUksV0FBVyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN0RCx5QkFBeUIsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUUxQyxPQUFPLGNBQWMsQ0FBQztBQUN4QixDQUFDO0FBRUQsU0FBUyx5QkFBeUIsQ0FBQyxRQUFhO0lBQzlDLFFBQVEsQ0FBQyxFQUFFLENBQUMsY0FBYyxFQUFFLEdBQUcsRUFBRTtRQUMvQixNQUFNLEtBQUssR0FBRyxRQUFRLENBQUMsV0FBVyxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQ2xELEtBQUssQ0FBQyxlQUFlLENBQUMsY0FBYyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDdEQsTUFBTSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM5QixDQUFDLENBQUMsQ0FBQztJQUNILFFBQVEsQ0FBQyxFQUFFLENBQUMsY0FBYyxFQUFFLEdBQUcsQ0FBQyxFQUFFO1FBQ2hDLE1BQU0sS0FBSyxHQUFHLFFBQVEsQ0FBQyxXQUFXLENBQUMsYUFBYSxDQUFD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29udGFpbmVyLmRpc3BhdGNoRXZlbnQoZXZlbnQpO1xuICAgIH0pO1xuXG4gIGZyb21FdmVudChldmVudEJ1cywgJ3ByZXNlbnRhdGlvbm1vZGVjaGFuZ2VkJylcbiAgICAucGlwZSh0YWtlVW50aWwoZGVzdHJveSQpKVxuICAgIC5zdWJzY3JpYmUoKHsgYWN0aXZlLCBzd2l0Y2hJblByb2dyZXNzIH0pID0+IHtcbiAgICAgIGNvbnN0IGV2ZW50ID0gZG9jdW1lbnQuY3JlYXRlRXZlbnQoJ0N1c3RvbUV2ZW50Jyk7XG4gICAgICBldmVudC5pbml0Q3VzdG9tRXZlbnQoJ3ByZXNlbnRhdGlvbm1vZGVjaGFuZ2VkJywgdHJ1ZSwgdHJ1ZSwge1xuICAgICAgICBhY3RpdmUsXG4gICAgICAgIHN3aXRjaEluUHJvZ3Jlc3MsXG4gICAgICB9KTtcbiAgICAgIHdpbmRvdy5kaXNwYXRjaEV2ZW50KGV2ZW50KTtcbiAgICB9KTtcblxuICBmcm9tRXZlbnQoZXZlbnRCdXMsICdvdXRsaW5lbG9hZGVkJylcbiAgICAucGlwZSh0YWtlVW50aWwoZGVzdHJveSQpKVxuICAgIC5zdWJzY3JpYmUoKHsgb3V0bGluZUNvdW50LCBzb3VyY2UgfSkgPT4ge1xuICAgICAgY29uc3QgZXZlbnQgPSBkb2N1bWVudC5jcmVhdGVFdmVudCgnQ3VzdG9tRXZlbnQnKTtcbiAgICAgIGV2ZW50LmluaXRDdXN0b21FdmVudCgnb3V0bGluZWxvYWRlZCcsIHRydWUsIHRydWUsIHsgb3V0bGluZUNvdW50IH0pO1xuICAgICAgc291cmNlLmNvbnRhaW5lci5kaXNwYXRjaEV2ZW50KGV2ZW50KTtcbiAgICB9KTtcbn1cbiJdfQ== |
@@ -7,2 +7,2 @@ export function assign(obj, prop, value) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvd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9uIGFzc2lnbihvYmo6IE9iamVjdCwgcHJvcDogc3RyaW5nLCB2YWx1ZTogYW55KSB7XG4gIG9ialtwcm9wXSA9IHZhbHVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNTU1IoKSB7XG4gIHJldHVybiB0eXBlb2Ygd2luZG93ID09PSAndW5kZWZpbmVkJztcbn0iXX0= |
@@ -1,15 +0,16 @@ | ||
import { __decorate } from 'tslib'; | ||
import { EventEmitter, ElementRef, ViewChild, Output, Input, HostListener, Component, NgModule } from '@angular/core'; | ||
import * as PDFJS from 'pdfjs-dist/es5/build/pdf'; | ||
import { VerbosityLevel, version, GlobalWorkerOptions, LinkTarget, getDocument } from 'pdfjs-dist/es5/build/pdf'; | ||
import * as PDFJSViewer from 'pdfjs-dist/es5/web/pdf_viewer'; | ||
import { PDFLinkService, PDFFindController, PDFViewer, PDFSinglePageViewer } from 'pdfjs-dist/es5/web/pdf_viewer'; | ||
import { EventEmitter, Component, ElementRef, ViewChild, Output, Input, HostListener, NgModule } from '@angular/core'; | ||
import { fromEvent, Subject, from } from 'rxjs'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import * as PDFJS from 'pdfjs-dist'; | ||
import * as PDFJSViewer from 'pdfjs-dist/web/pdf_viewer'; | ||
function _createEventBus(pdfJsViewer) { | ||
const globalEventBus = new pdfJsViewer.EventBus(true); | ||
attachDOMEventsToEventBus(globalEventBus); | ||
function createEventBus(pdfJsViewer, destroy$) { | ||
const globalEventBus = new pdfJsViewer.EventBus(); | ||
attachDOMEventsToEventBus(globalEventBus, destroy$); | ||
return globalEventBus; | ||
} | ||
function attachDOMEventsToEventBus(eventBus) { | ||
eventBus.on('documentload', () => { | ||
function attachDOMEventsToEventBus(eventBus, destroy$) { | ||
fromEvent(eventBus, 'documentload') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(() => { | ||
const event = document.createEvent('CustomEvent'); | ||
@@ -19,110 +20,125 @@ event.initCustomEvent('documentload', true, true, {}); | ||
}); | ||
eventBus.on('pagerendered', evt => { | ||
fromEvent(eventBus, 'pagerendered') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, cssTransform, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagerendered', true, true, { | ||
pageNumber: evt.pageNumber, | ||
cssTransform: evt.cssTransform | ||
pageNumber, | ||
cssTransform, | ||
}); | ||
evt.source.div.dispatchEvent(event); | ||
source.div.dispatchEvent(event); | ||
}); | ||
eventBus.on('textlayerrendered', evt => { | ||
fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('textlayerrendered', true, true, { | ||
pageNumber: evt.pageNumber | ||
}); | ||
evt.source.textLayerDiv.dispatchEvent(event); | ||
event.initCustomEvent('textlayerrendered', true, true, { pageNumber }); | ||
source.textLayerDiv.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagechanging', evt => { | ||
fromEvent(eventBus, 'pagechanging') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pageNumber, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('pagechanging', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['pageNumber'] = evt.pageNumber; | ||
evt.source.container.dispatchEvent(event); | ||
event['pageNumber'] = pageNumber; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesinit', evt => { | ||
fromEvent(eventBus, 'pagesinit') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesinit', true, true, null); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagesloaded', evt => { | ||
fromEvent(eventBus, 'pagesloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ pagesCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagesloaded', true, true, { | ||
pagesCount: evt.pagesCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('pagesloaded', true, true, { pagesCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('scalechange', evt => { | ||
fromEvent(eventBus, 'scalechange') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ scale, presetValue, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('scalechange', true, true); | ||
/* tslint:disable:no-string-literal */ | ||
event['scale'] = evt.scale; | ||
event['scale'] = scale; | ||
/* tslint:disable:no-string-literal */ | ||
event['presetValue'] = evt.presetValue; | ||
evt.source.container.dispatchEvent(event); | ||
event['presetValue'] = presetValue; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('updateviewarea', evt => { | ||
fromEvent(eventBus, 'updateviewarea') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ location, source }) => { | ||
const event = document.createEvent('UIEvents'); | ||
event.initEvent('updateviewarea', true, true); | ||
event['location'] = evt.location; | ||
evt.source.container.dispatchEvent(event); | ||
event['location'] = location; | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('find', evt => { | ||
if (evt.source === window) { | ||
fromEvent(eventBus, 'find') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ source, type, query, phraseSearch, caseSensitive, highlightAll, findPrevious, }) => { | ||
if (source === window) { | ||
return; // event comes from FirefoxCom, no need to replicate | ||
} | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('find' + evt.type, true, true, { | ||
query: evt.query, | ||
phraseSearch: evt.phraseSearch, | ||
caseSensitive: evt.caseSensitive, | ||
highlightAll: evt.highlightAll, | ||
findPrevious: evt.findPrevious | ||
event.initCustomEvent('find' + type, true, true, { | ||
query, | ||
phraseSearch, | ||
caseSensitive, | ||
highlightAll, | ||
findPrevious, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('attachmentsloaded', evt => { | ||
fromEvent(eventBus, 'attachmentsloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ attachmentsCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('attachmentsloaded', true, true, { | ||
attachmentsCount: evt.attachmentsCount | ||
attachmentsCount, | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
source.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('sidebarviewchanged', evt => { | ||
fromEvent(eventBus, 'sidebarviewchanged') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ view, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { | ||
view: evt.view | ||
}); | ||
evt.source.outerContainer.dispatchEvent(event); | ||
event.initCustomEvent('sidebarviewchanged', true, true, { view }); | ||
source.outerContainer.dispatchEvent(event); | ||
}); | ||
eventBus.on('pagemode', evt => { | ||
fromEvent(eventBus, 'pagemode') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ mode, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('pagemode', true, true, { | ||
mode: evt.mode | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('pagemode', true, true, { mode }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('namedaction', evt => { | ||
fromEvent(eventBus, 'namedaction') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ action, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('namedaction', true, true, { | ||
action: evt.action | ||
}); | ||
evt.source.pdfViewer.container.dispatchEvent(event); | ||
event.initCustomEvent('namedaction', true, true, { action }); | ||
source.pdfViewer.container.dispatchEvent(event); | ||
}); | ||
eventBus.on('presentationmodechanged', evt => { | ||
fromEvent(eventBus, 'presentationmodechanged') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ active, switchInProgress }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('presentationmodechanged', true, true, { | ||
active: evt.active, | ||
switchInProgress: evt.switchInProgress | ||
active, | ||
switchInProgress, | ||
}); | ||
window.dispatchEvent(event); | ||
}); | ||
eventBus.on('outlineloaded', evt => { | ||
fromEvent(eventBus, 'outlineloaded') | ||
.pipe(takeUntil(destroy$)) | ||
.subscribe(({ outlineCount, source }) => { | ||
const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('outlineloaded', true, true, { | ||
outlineCount: evt.outlineCount | ||
}); | ||
evt.source.container.dispatchEvent(event); | ||
event.initCustomEvent('outlineloaded', true, true, { outlineCount }); | ||
source.container.dispatchEvent(event); | ||
}); | ||
} | ||
const createEventBus = _createEventBus; | ||
@@ -136,5 +152,7 @@ function assign(obj, prop, value) { | ||
var PdfViewerComponent_1; | ||
/** | ||
* Created by vadimdez on 21/06/16. | ||
*/ | ||
if (!isSSR()) { | ||
assign(PDFJS, "verbosity", VerbosityLevel.ERRORS); | ||
assign(PDFJS, "verbosity", PDFJS.VerbosityLevel.ERRORS); | ||
} | ||
@@ -147,3 +165,3 @@ var RenderTextMode; | ||
})(RenderTextMode || (RenderTextMode = {})); | ||
let PdfViewerComponent = PdfViewerComponent_1 = class PdfViewerComponent { | ||
class PdfViewerComponent { | ||
constructor(element) { | ||
@@ -153,3 +171,3 @@ this.element = element; | ||
this._cMapsUrl = typeof PDFJS !== 'undefined' | ||
? `https://unpkg.com/pdfjs-dist@${version}/cmaps/` | ||
? `https://unpkg.com/pdfjs-dist@${PDFJS.version}/cmaps/` | ||
: null; | ||
@@ -169,3 +187,6 @@ this._renderText = true; | ||
this._showBorders = false; | ||
this.resizeTimeout = null; | ||
this.pageScrollTimeout = null; | ||
this.isInitialized = false; | ||
this.destroy$ = new Subject(); | ||
this.afterLoadComplete = new EventEmitter(); | ||
@@ -188,5 +209,5 @@ this.pageRendered = new EventEmitter(); | ||
else { | ||
pdfWorkerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${version}/es5/build/pdf.worker.js`; | ||
pdfWorkerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${PDFJS.version}/es5/build/pdf.worker.js`; | ||
} | ||
assign(GlobalWorkerOptions, "workerSrc", pdfWorkerSrc); | ||
assign(PDFJS.GlobalWorkerOptions, "workerSrc", pdfWorkerSrc); | ||
} | ||
@@ -259,11 +280,11 @@ set cMapsUrl(cMapsUrl) { | ||
case 'blank': | ||
return LinkTarget.BLANK; | ||
return PDFJS.LinkTarget.BLANK; | ||
case 'none': | ||
return LinkTarget.NONE; | ||
return PDFJS.LinkTarget.NONE; | ||
case 'self': | ||
return LinkTarget.SELF; | ||
return PDFJS.LinkTarget.SELF; | ||
case 'parent': | ||
return LinkTarget.PARENT; | ||
return PDFJS.LinkTarget.PARENT; | ||
case 'top': | ||
return LinkTarget.TOP; | ||
return PDFJS.LinkTarget.TOP; | ||
} | ||
@@ -298,2 +319,4 @@ return null; | ||
this.clear(); | ||
this.destroy$.next(); | ||
this.loadingTask = null; | ||
} | ||
@@ -307,3 +330,3 @@ onPageResize() { | ||
} | ||
this.resizeTimeout = setTimeout(() => { | ||
this.resizeTimeout = window.setTimeout(() => { | ||
this.updateSize(); | ||
@@ -356,21 +379,23 @@ }, 100); | ||
const currentViewer = this.getCurrentViewer(); | ||
this._pdf | ||
.getPage(currentViewer.currentPageNumber) | ||
.then((page) => { | ||
const rotation = this._rotation || page.rotate; | ||
const viewportWidth = page.getViewport({ | ||
scale: this._zoom, | ||
rotation | ||
}).width * PdfViewerComponent_1.CSS_UNITS; | ||
let scale = this._zoom; | ||
let stickToPage = true; | ||
// Scale the document when it shouldn't be in original size or doesn't fit into the viewport | ||
if (!this._originalSize || | ||
(this._fitToPage && | ||
viewportWidth > this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
const viewPort = page.getViewport({ scale: 1, rotation }); | ||
scale = this.getScale(viewPort.width, viewPort.height); | ||
stickToPage = !this._stickToPage; | ||
from(this._pdf.getPage(currentViewer.currentPageNumber)) | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe({ | ||
next: (page) => { | ||
const rotation = this._rotation || page.rotate; | ||
const viewportWidth = page.getViewport({ | ||
scale: this._zoom, | ||
rotation | ||
}).width * PdfViewerComponent.CSS_UNITS; | ||
let scale = this._zoom; | ||
let stickToPage = true; | ||
// Scale the document when it shouldn't be in original size or doesn't fit into the viewport | ||
if (!this._originalSize || | ||
(this._fitToPage && | ||
viewportWidth > this.pdfViewerContainer.nativeElement.clientWidth)) { | ||
const viewPort = page.getViewport({ scale: 1, rotation }); | ||
scale = this.getScale(viewPort.width, viewPort.height); | ||
stickToPage = !this._stickToPage; | ||
} | ||
currentViewer._setScale(scale, stickToPage); | ||
} | ||
currentViewer._setScale(scale, stickToPage); | ||
}); | ||
@@ -395,3 +420,3 @@ } | ||
const pdfLinkServiceConfig = {}; | ||
const linkTarget = PdfViewerComponent_1.getLinkTarget(this._externalLinkTarget); | ||
const linkTarget = PdfViewerComponent.getLinkTarget(this._externalLinkTarget); | ||
if (linkTarget) { | ||
@@ -404,23 +429,31 @@ pdfLinkServiceConfig.externalLinkTarget = linkTarget; | ||
assign(PDFJS, "disableTextLayer", !this._renderText); | ||
const eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagerendered', e => { | ||
this.pageRendered.emit(e); | ||
const eventBus = createEventBus(PDFJSViewer, this.destroy$); | ||
fromEvent(eventBus, 'pagerendered') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.pageRendered.emit(event); | ||
}); | ||
eventBus.on('pagesinit', e => { | ||
this.pageInitialized.emit(e); | ||
fromEvent(eventBus, 'pagesinit') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.pageInitialized.emit(event); | ||
}); | ||
eventBus.on('pagechanging', e => { | ||
fromEvent(eventBus, 'pagechanging') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe(({ pageNumber }) => { | ||
if (this.pageScrollTimeout) { | ||
clearTimeout(this.pageScrollTimeout); | ||
} | ||
this.pageScrollTimeout = setTimeout(() => { | ||
this._latestScrolledPage = e.pageNumber; | ||
this.pageChange.emit(e.pageNumber); | ||
this.pageScrollTimeout = window.setTimeout(() => { | ||
this._latestScrolledPage = pageNumber; | ||
this.pageChange.emit(pageNumber); | ||
}, 100); | ||
}); | ||
eventBus.on('textlayerrendered', e => { | ||
this.textLayerRendered.emit(e); | ||
fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.textLayerRendered.emit(event); | ||
}); | ||
this.pdfMultiPageLinkService = new PDFLinkService(Object.assign({ eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfMultiPageFindController = new PDFFindController({ | ||
this.pdfMultiPageLinkService = new PDFJSViewer.PDFLinkService(Object.assign({ eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfMultiPageFindController = new PDFJSViewer.PDFFindController({ | ||
linkService: this.pdfMultiPageLinkService, | ||
@@ -439,3 +472,3 @@ eventBus | ||
}; | ||
this.pdfMultiPageViewer = new PDFViewer(pdfOptions); | ||
this.pdfMultiPageViewer = new PDFJSViewer.PDFViewer(pdfOptions); | ||
this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer); | ||
@@ -446,19 +479,27 @@ this.pdfMultiPageFindController.setDocument(this._pdf); | ||
assign(PDFJS, "disableTextLayer", !this._renderText); | ||
const eventBus = createEventBus(PDFJSViewer); | ||
eventBus.on('pagechanging', e => { | ||
if (e.pageNumber !== this._page) { | ||
this.page = e.pageNumber; | ||
const eventBus = createEventBus(PDFJSViewer, this.destroy$); | ||
fromEvent(eventBus, 'pagechanging') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe(({ pageNumber }) => { | ||
if (pageNumber !== this._page) { | ||
this.page = pageNumber; | ||
} | ||
}); | ||
eventBus.on('pagerendered', e => { | ||
this.pageRendered.emit(e); | ||
fromEvent(eventBus, 'pagerendered') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.pageRendered.emit(event); | ||
}); | ||
eventBus.on('pagesinit', e => { | ||
this.pageInitialized.emit(e); | ||
fromEvent(eventBus, 'pagesinit') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.pageInitialized.emit(event); | ||
}); | ||
eventBus.on('textlayerrendered', e => { | ||
this.textLayerRendered.emit(e); | ||
fromEvent(eventBus, 'textlayerrendered') | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe((event) => { | ||
this.textLayerRendered.emit(event); | ||
}); | ||
this.pdfSinglePageLinkService = new PDFLinkService(Object.assign({ eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfSinglePageFindController = new PDFFindController({ | ||
this.pdfSinglePageLinkService = new PDFJSViewer.PDFLinkService(Object.assign({ eventBus }, this.getPDFLinkServiceConfig())); | ||
this.pdfSinglePageFindController = new PDFJSViewer.PDFFindController({ | ||
linkService: this.pdfSinglePageLinkService, | ||
@@ -477,3 +518,3 @@ eventBus | ||
}; | ||
this.pdfSinglePageViewer = new PDFSinglePageViewer(pdfOptions); | ||
this.pdfSinglePageViewer = new PDFJSViewer.PDFSinglePageViewer(pdfOptions); | ||
this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer); | ||
@@ -523,3 +564,3 @@ this.pdfSinglePageFindController.setDocument(this._pdf); | ||
this.clear(); | ||
this.loadingTask = getDocument(this.getDocumentParams()); | ||
this.loadingTask = PDFJS.getDocument(this.getDocumentParams()); | ||
this.loadingTask.onProgress = (progressData) => { | ||
@@ -529,14 +570,19 @@ this.onProgress.emit(progressData); | ||
const src = this.src; | ||
this.loadingTask.promise.then((pdf) => { | ||
this._pdf = pdf; | ||
this.lastLoaded = src; | ||
this.afterLoadComplete.emit(pdf); | ||
if (!this.pdfMultiPageViewer) { | ||
this.setupMultiPageViewer(); | ||
this.setupSinglePageViewer(); | ||
from(this.loadingTask.promise) | ||
.pipe(takeUntil(this.destroy$)) | ||
.subscribe({ | ||
next: (pdf) => { | ||
this._pdf = pdf; | ||
this.lastLoaded = src; | ||
this.afterLoadComplete.emit(pdf); | ||
if (!this.pdfMultiPageViewer) { | ||
this.setupMultiPageViewer(); | ||
this.setupSinglePageViewer(); | ||
} | ||
this.resetPdfDocument(); | ||
this.update(); | ||
}, | ||
error: (error) => { | ||
this.onError.emit(error); | ||
} | ||
this.resetPdfDocument(); | ||
this.update(); | ||
}, (error) => { | ||
this.onError.emit(error); | ||
}); | ||
@@ -565,3 +611,3 @@ } | ||
getScale(viewportWidth, viewportHeight) { | ||
const borderSize = (this._showBorders ? 2 * PdfViewerComponent_1.BORDER_WIDTH : 0); | ||
const borderSize = (this._showBorders ? 2 * PdfViewerComponent.BORDER_WIDTH : 0); | ||
const pdfContainerWidth = this.pdfViewerContainer.nativeElement.clientWidth - borderSize; | ||
@@ -585,3 +631,3 @@ const pdfContainerHeight = this.pdfViewerContainer.nativeElement.clientHeight - borderSize; | ||
} | ||
return (this._zoom * ratio) / PdfViewerComponent_1.CSS_UNITS; | ||
return (this._zoom * ratio) / PdfViewerComponent.CSS_UNITS; | ||
} | ||
@@ -606,84 +652,9 @@ getCurrentViewer() { | ||
} | ||
}; | ||
} | ||
PdfViewerComponent.CSS_UNITS = 96.0 / 72.0; | ||
PdfViewerComponent.BORDER_WIDTH = 9; | ||
PdfViewerComponent.ctorParameters = () => [ | ||
{ type: ElementRef } | ||
]; | ||
__decorate([ | ||
ViewChild('pdfViewerContainer') | ||
], PdfViewerComponent.prototype, "pdfViewerContainer", void 0); | ||
__decorate([ | ||
Output('after-load-complete') | ||
], PdfViewerComponent.prototype, "afterLoadComplete", void 0); | ||
__decorate([ | ||
Output('page-rendered') | ||
], PdfViewerComponent.prototype, "pageRendered", void 0); | ||
__decorate([ | ||
Output('pages-initialized') | ||
], PdfViewerComponent.prototype, "pageInitialized", void 0); | ||
__decorate([ | ||
Output('text-layer-rendered') | ||
], PdfViewerComponent.prototype, "textLayerRendered", void 0); | ||
__decorate([ | ||
Output('error') | ||
], PdfViewerComponent.prototype, "onError", void 0); | ||
__decorate([ | ||
Output('on-progress') | ||
], PdfViewerComponent.prototype, "onProgress", void 0); | ||
__decorate([ | ||
Output() | ||
], PdfViewerComponent.prototype, "pageChange", void 0); | ||
__decorate([ | ||
Input() | ||
], PdfViewerComponent.prototype, "src", void 0); | ||
__decorate([ | ||
Input('c-maps-url') | ||
], PdfViewerComponent.prototype, "cMapsUrl", null); | ||
__decorate([ | ||
Input('page') | ||
], PdfViewerComponent.prototype, "page", null); | ||
__decorate([ | ||
Input('render-text') | ||
], PdfViewerComponent.prototype, "renderText", null); | ||
__decorate([ | ||
Input('render-text-mode') | ||
], PdfViewerComponent.prototype, "renderTextMode", null); | ||
__decorate([ | ||
Input('original-size') | ||
], PdfViewerComponent.prototype, "originalSize", null); | ||
__decorate([ | ||
Input('show-all') | ||
], PdfViewerComponent.prototype, "showAll", null); | ||
__decorate([ | ||
Input('stick-to-page') | ||
], PdfViewerComponent.prototype, "stickToPage", null); | ||
__decorate([ | ||
Input('zoom') | ||
], PdfViewerComponent.prototype, "zoom", null); | ||
__decorate([ | ||
Input('zoom-scale') | ||
], PdfViewerComponent.prototype, "zoomScale", null); | ||
__decorate([ | ||
Input('rotation') | ||
], PdfViewerComponent.prototype, "rotation", null); | ||
__decorate([ | ||
Input('external-link-target') | ||
], PdfViewerComponent.prototype, "externalLinkTarget", null); | ||
__decorate([ | ||
Input('autoresize') | ||
], PdfViewerComponent.prototype, "autoresize", null); | ||
__decorate([ | ||
Input('fit-to-page') | ||
], PdfViewerComponent.prototype, "fitToPage", null); | ||
__decorate([ | ||
Input('show-borders') | ||
], PdfViewerComponent.prototype, "showBorders", null); | ||
__decorate([ | ||
HostListener('window:resize', []) | ||
], PdfViewerComponent.prototype, "onPageResize", null); | ||
PdfViewerComponent = PdfViewerComponent_1 = __decorate([ | ||
Component({ | ||
selector: 'pdf-viewer', | ||
template: ` | ||
PdfViewerComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'pdf-viewer', | ||
template: ` | ||
<div #pdfViewerContainer class="ng2-pdf-viewer-container"> | ||
@@ -693,16 +664,48 @@ <div class="pdfViewer"></div> | ||
`, | ||
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);box-sizing:initial;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlh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qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"] | ||
}) | ||
], PdfViewerComponent); | ||
let PdfViewerModule = class PdfViewerModule { | ||
styles: [".ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread,:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .spread .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page,:host ::ng-deep .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(\"data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4di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x5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==\") 50% no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"] | ||
},] } | ||
]; | ||
PdfViewerComponent.ctorParameters = () => [ | ||
{ type: ElementRef } | ||
]; | ||
PdfViewerComponent.propDecorators = { | ||
pdfViewerContainer: [{ type: ViewChild, args: ['pdfViewerContainer',] }], | ||
afterLoadComplete: [{ type: Output, args: ['after-load-complete',] }], | ||
pageRendered: [{ type: Output, args: ['page-rendered',] }], | ||
pageInitialized: [{ type: Output, args: ['pages-initialized',] }], | ||
textLayerRendered: [{ type: Output, args: ['text-layer-rendered',] }], | ||
onError: [{ type: Output, args: ['error',] }], | ||
onProgress: [{ type: Output, args: ['on-progress',] }], | ||
pageChange: [{ type: Output }], | ||
src: [{ type: Input }], | ||
cMapsUrl: [{ type: Input, args: ['c-maps-url',] }], | ||
page: [{ type: Input, args: ['page',] }], | ||
renderText: [{ type: Input, args: ['render-text',] }], | ||
renderTextMode: [{ type: Input, args: ['render-text-mode',] }], | ||
originalSize: [{ type: Input, args: ['original-size',] }], | ||
showAll: [{ type: Input, args: ['show-all',] }], | ||
stickToPage: [{ type: Input, args: ['stick-to-page',] }], | ||
zoom: [{ type: Input, args: ['zoom',] }], | ||
zoomScale: [{ type: Input, args: ['zoom-scale',] }], | ||
rotation: [{ type: Input, args: ['rotation',] }], | ||
externalLinkTarget: [{ type: Input, args: ['external-link-target',] }], | ||
autoresize: [{ type: Input, args: ['autoresize',] }], | ||
fitToPage: [{ type: Input, args: ['fit-to-page',] }], | ||
showBorders: [{ type: Input, args: ['show-borders',] }], | ||
onPageResize: [{ type: HostListener, args: ['window:resize', [],] }] | ||
}; | ||
PdfViewerModule = __decorate([ | ||
NgModule({ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
}) | ||
], PdfViewerModule); | ||
/** | ||
* Created by vadimdez on 01/11/2016. | ||
*/ | ||
class PdfViewerModule { | ||
} | ||
PdfViewerModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [PdfViewerComponent], | ||
exports: [PdfViewerComponent] | ||
},] } | ||
]; | ||
/** | ||
* Generated bundle index. Do not edit. | ||
@@ -709,0 +712,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"PDFJSStatic","as":"PDFJSStatic"},{"name":"PDFDocumentProxy","as":"PDFDocumentProxy"},{"name":"PDFViewerParams","as":"PDFViewerParams"},{"name":"PDFPageProxy","as":"PDFPageProxy"},{"name":"PDFSource","as":"PDFSource"},{"name":"PDFProgressData","as":"PDFProgressData"},{"name":"PDFPromise","as":"PDFPromise"}],"from":"pdfjs-dist"}],"metadata":{"PdfViewerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"PdfViewerComponent"}],"exports":[{"__symbolic":"reference","name":"PdfViewerComponent"}]}]}],"members":{}},"RenderTextMode":{"DISABLED":0,"ENABLED":1,"ENHANCED":2},"PdfViewerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":41,"character":1},"arguments":[{"selector":"pdf-viewer","template":"\n <div #pdfViewerContainer class=\"ng2-pdf-viewer-container\">\n <div class=\"pdfViewer\"></div>\n </div>\n ","styles":[".ng2-pdf-viewer-container{overflow-x:auto;position:relative;height:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer{padding-bottom:10px}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);box-sizing:initial;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.removePageBorders{padding-bottom:0}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders .spread .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4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gx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"]}]}],"members":{"pdfViewerContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":55,"character":3},"arguments":["pdfViewerContainer"]}]}],"afterLoadComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":92,"character":3},"arguments":["after-load-complete"]}]}],"pageRendered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":3},"arguments":["page-rendered"]}]}],"pageInitialized":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":94,"character":3},"arguments":["pages-initialized"]}]}],"textLayerRendered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":95,"character":3},"arguments":["text-layer-rendered"]}]}],"onError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":96,"character":3},"arguments":["error"]}]}],"onProgress":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":97,"character":3},"arguments":["on-progress"]}]}],"pageChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":98,"character":3}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":99,"character":3}}]}],"cMapsUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":101,"character":3},"arguments":["c-maps-url"]}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3},"arguments":["page"]}]}],"renderText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":121,"character":3},"arguments":["render-text"]}]}],"renderTextMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":126,"character":3},"arguments":["render-text-mode"]}]}],"originalSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":3},"arguments":["original-size"]}]}],"showAll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":3},"arguments":["show-all"]}]}],"stickToPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":141,"character":3},"arguments":["stick-to-page"]}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3},"arguments":["zoom"]}]}],"zoomScale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":159,"character":3},"arguments":["zoom-scale"]}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":168,"character":3},"arguments":["rotation"]}]}],"externalLinkTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":178,"character":3},"arguments":["external-link-target"]}]}],"autoresize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":183,"character":3},"arguments":["autoresize"]}]}],"fitToPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":188,"character":3},"arguments":["fit-to-page"]}]}],"showBorders":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":193,"character":3},"arguments":["show-borders"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":215,"character":31}]}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"onPageResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":270,"character":3},"arguments":["window:resize",[]]}]}],"ngOnChanges":[{"__symbolic":"method"}],"updateSize":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"getPDFLinkServiceConfig":[{"__symbolic":"method"}],"setupMultiPageViewer":[{"__symbolic":"method"}],"setupSinglePageViewer":[{"__symbolic":"method"}],"getValidPageNumber":[{"__symbolic":"method"}],"getDocumentParams":[{"__symbolic":"method"}],"loadPDF":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}],"getScale":[{"__symbolic":"method"}],"getCurrentViewer":[{"__symbolic":"method"}],"resetPdfDocument":[{"__symbolic":"method"}]},"statics":{"CSS_UNITS":1.3333333333333333,"BORDER_WIDTH":9}}},"origins":{"PdfViewerModule":"./src/app/pdf-viewer/pdf-viewer.module","RenderTextMode":"./src/app/pdf-viewer/pdf-viewer.component","PdfViewerComponent":"./src/app/pdf-viewer/pdf-viewer.component"},"importAs":"ng2-pdf-viewer"} | ||
{"__symbolic":"module","version":4,"metadata":{"PdfViewerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"PdfViewerComponent"}],"exports":[{"__symbolic":"reference","name":"PdfViewerComponent"}]}]}],"members":{}},"PDFPageProxy":{"__symbolic":"interface"},"PDFSource":{"__symbolic":"interface"},"PDFDocumentProxy":{"__symbolic":"interface"},"PDFDocumentLoadingTask":{"__symbolic":"interface"},"PDFProgressData":{"__symbolic":"interface"},"RenderTextMode":{"DISABLED":0,"ENABLED":1,"ENHANCED":2},"PdfViewerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":43,"character":1},"arguments":[{"selector":"pdf-viewer","template":"\n <div #pdfViewerContainer class=\"ng2-pdf-viewer-container\">\n <div class=\"pdfViewer\"></div>\n </div>\n ","styles":[".ng2-pdf-viewer-container{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}:host ::ng-deep .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}:host ::ng-deep .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}:host ::ng-deep .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}:host ::ng-deep .textLayer .highlight.begin{border-radius:4px 0 0 4px}:host ::ng-deep .textLayer .highlight.end{border-radius:0 4px 4px 0}:host ::ng-deep .textLayer .highlight.middle{border-radius:0}:host ::ng-deep .textLayer .highlight.selected{background-color:#006400}:host ::ng-deep .textLayer ::-moz-selection{background:#00f}:host ::ng-deep .textLayer ::selection{background:#00f}:host ::ng-deep .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host ::ng-deep .textLayer .endOfContent.active{top:0}:host ::ng-deep .annotationLayer section{position:absolute;text-align:initial}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a,:host ::ng-deep .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,:host ::ng-deep .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}:host ::ng-deep .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select,:host ::ng-deep .annotationLayer .textWidgetAnnotation input,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select option{padding:0}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation input[disabled],:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:hover,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}:host ::ng-deep .annotationLayer .choiceWidgetAnnotation select:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation input:focus,:host ::ng-deep .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}:host ::ng-deep .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.checkBox input,:host ::ng-deep .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}:host ::ng-deep .annotationLayer .popupWrapper{position:absolute;width:20em}:host ::ng-deep .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}:host ::ng-deep .annotationLayer .popup>*{font-size:9px}:host ::ng-deep .annotationLayer .popup h1{display:inline-block}:host ::ng-deep .annotationLayer .popup span{display:inline-block;margin-left:5px}:host ::ng-deep .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}:host ::ng-deep .annotationLayer .caretAnnotation,:host ::ng-deep .annotationLayer .circleAnnotation svg ellipse,:host ::ng-deep .annotationLayer .fileAttachmentAnnotation,:host ::ng-deep .annotationLayer .freeTextAnnotation,:host ::ng-deep .annotationLayer .highlightAnnotation,:host ::ng-deep .annotationLayer .inkAnnotation svg polyline,:host ::ng-deep .annotationLayer .lineAnnotation svg line,:host ::ng-deep .annotationLayer .polygonAnnotation svg polygon,:host ::ng-deep .annotationLayer .polylineAnnotation svg polyline,:host ::ng-deep .annotationLayer .squareAnnotation svg rect,:host ::ng-deep .annotationLayer .squigglyAnnotation,:host ::ng-deep .annotationLayer .stampAnnotation,:host ::ng-deep .annotationLayer .strikeoutAnnotation,:host ::ng-deep .annotationLayer .underlineAnnotation{cursor:pointer}:host ::ng-deep .pdfViewer .canvasWrapper{overflow:hidden}:host ::ng-deep .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;background-color:#fff}:host ::ng-deep .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}:host ::ng-deep .pdfViewer.singlePageView{display:inline-block}:host ::ng-deep .pdfViewer.singlePageView .page{margin:0;border:none}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .pdfViewer.scrollWrapped,:host ::ng-deep .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}:host ::ng-deep .pdfViewer.scrollHorizontal,:host ::ng-deep .spread{white-space:nowrap}:host ::ng-deep .pdfViewer.removePageBorders,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollHorizontal .spread,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .pdfViewer.scrollWrapped .spread,:host ::ng-deep .spread .page{display:inline-block;vertical-align:middle}:host ::ng-deep .pdfViewer.scrollHorizontal .page,:host ::ng-deep .pdfViewer.scrollWrapped .page,:host ::ng-deep .spread .page{margin-left:-3.5px;margin-right:-3.5px}:host ::ng-deep .pdfViewer.removePageBorders.scrollHorizontal .page,:host ::ng-deep .pdfViewer.removePageBorders.scrollWrapped .page,:host ::ng-deep .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}:host ::ng-deep .pdfViewer .page canvas{margin:0;display:block}:host ::ng-deep .pdfViewer .page canvas[hidden]{display:none}:host ::ng-deep .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(\"data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUM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kLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==\") 50% no-repeat}:host ::ng-deep .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer .spread{display:block}:host ::ng-deep .pdfPresentationMode .pdfViewer .page,:host ::ng-deep .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}:host ::ng-deep .pdfPresentationMode:-moz-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-ms-fullscreen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:-webkit-full-screen .pdfViewer .page,:host ::ng-deep .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"]}]}],"members":{"pdfViewerContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":57,"character":3},"arguments":["pdfViewerContainer"]}]}],"afterLoadComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":95,"character":3},"arguments":["after-load-complete"]}]}],"pageRendered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":96,"character":3},"arguments":["page-rendered"]}]}],"pageInitialized":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":97,"character":3},"arguments":["pages-initialized"]}]}],"textLayerRendered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":98,"character":3},"arguments":["text-layer-rendered"]}]}],"onError":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":99,"character":3},"arguments":["error"]}]}],"onProgress":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":100,"character":3},"arguments":["on-progress"]}]}],"pageChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":101,"character":3}}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":102,"character":3}}]}],"cMapsUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":104,"character":3},"arguments":["c-maps-url"]}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":109,"character":3},"arguments":["page"]}]}],"renderText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":3},"arguments":["render-text"]}]}],"renderTextMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":129,"character":3},"arguments":["render-text-mode"]}]}],"originalSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":3},"arguments":["original-size"]}]}],"showAll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":139,"character":3},"arguments":["show-all"]}]}],"stickToPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":144,"character":3},"arguments":["stick-to-page"]}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":149,"character":3},"arguments":["zoom"]}]}],"zoomScale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":162,"character":3},"arguments":["zoom-scale"]}]}],"rotation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":171,"character":3},"arguments":["rotation"]}]}],"externalLinkTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":181,"character":3},"arguments":["external-link-target"]}]}],"autoresize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":186,"character":3},"arguments":["autoresize"]}]}],"fitToPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":191,"character":3},"arguments":["fit-to-page"]}]}],"showBorders":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":196,"character":3},"arguments":["show-borders"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":218,"character":31}]}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"onPageResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":275,"character":3},"arguments":["window:resize",[]]}]}],"ngOnChanges":[{"__symbolic":"method"}],"updateSize":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"getPDFLinkServiceConfig":[{"__symbolic":"method"}],"setupMultiPageViewer":[{"__symbolic":"method"}],"setupSinglePageViewer":[{"__symbolic":"method"}],"getValidPageNumber":[{"__symbolic":"method"}],"getDocumentParams":[{"__symbolic":"method"}],"loadPDF":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}],"getScale":[{"__symbolic":"method"}],"getCurrentViewer":[{"__symbolic":"method"}],"resetPdfDocument":[{"__symbolic":"method"}]},"statics":{"CSS_UNITS":1.3333333333333333,"BORDER_WIDTH":9}}},"origins":{"PdfViewerModule":"./src/app/pdf-viewer/pdf-viewer.module","PDFPageProxy":"./src/app/pdf-viewer/typings","PDFSource":"./src/app/pdf-viewer/typings","PDFDocumentProxy":"./src/app/pdf-viewer/typings","PDFDocumentLoadingTask":"./src/app/pdf-viewer/typings","PDFProgressData":"./src/app/pdf-viewer/typings","RenderTextMode":"./src/app/pdf-viewer/pdf-viewer.component","PdfViewerComponent":"./src/app/pdf-viewer/pdf-viewer.component"},"importAs":"ng2-pdf-viewer"} |
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "6.4.1", | ||
"version": "7.0.0", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -27,13 +27,13 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/pdfjs-dist": "~2.1.7", | ||
"pdfjs-dist": "~2.5.207", | ||
"tslib": "^1.10.0" | ||
"pdfjs-dist": "~2.7.570", | ||
"tslib": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"pdfjs-dist": "~2.7.570" | ||
}, | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"main": "bundles/ng2-pdf-viewer.umd.js", | ||
"module": "fesm5/ng2-pdf-viewer.js", | ||
"module": "fesm2015/ng2-pdf-viewer.js", | ||
"es2015": "fesm2015/ng2-pdf-viewer.js", | ||
"esm5": "esm5/ng2-pdf-viewer.js", | ||
"esm2015": "esm2015/ng2-pdf-viewer.js", | ||
"fesm5": "fesm5/ng2-pdf-viewer.js", | ||
"fesm2015": "fesm2015/ng2-pdf-viewer.js", | ||
@@ -43,2 +43,2 @@ "typings": "ng2-pdf-viewer.d.ts", | ||
"sideEffects": false | ||
} | ||
} |
@@ -5,3 +5,3 @@ /** | ||
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy, AfterViewChecked } from '@angular/core'; | ||
import { PDFDocumentProxy, PDFSource, PDFProgressData } from 'pdfjs-dist'; | ||
import type { PDFSource, PDFProgressData } from './typings'; | ||
export declare enum RenderTextMode { | ||
@@ -45,3 +45,4 @@ DISABLED = 0, | ||
private loadingTask; | ||
afterLoadComplete: EventEmitter<PDFDocumentProxy>; | ||
private destroy$; | ||
afterLoadComplete: EventEmitter<import("pdfjs-dist/types/display/api").PDFDocumentProxy>; | ||
pageRendered: EventEmitter<CustomEvent<any>>; | ||
@@ -54,16 +55,18 @@ pageInitialized: EventEmitter<CustomEvent<any>>; | ||
src: string | Uint8Array | PDFSource; | ||
cMapsUrl: string; | ||
page: any; | ||
renderText: boolean; | ||
renderTextMode: RenderTextMode; | ||
originalSize: boolean; | ||
showAll: boolean; | ||
stickToPage: boolean; | ||
zoom: number; | ||
zoomScale: 'page-height' | 'page-fit' | 'page-width'; | ||
rotation: number; | ||
externalLinkTarget: string; | ||
autoresize: boolean; | ||
fitToPage: boolean; | ||
showBorders: boolean; | ||
set cMapsUrl(cMapsUrl: string); | ||
set page(_page: any); | ||
set renderText(renderText: boolean); | ||
set renderTextMode(renderTextMode: RenderTextMode); | ||
set originalSize(originalSize: boolean); | ||
set showAll(value: boolean); | ||
set stickToPage(value: boolean); | ||
set zoom(value: number); | ||
get zoom(): number; | ||
set zoomScale(value: 'page-height' | 'page-fit' | 'page-width'); | ||
get zoomScale(): 'page-height' | 'page-fit' | 'page-width'; | ||
set rotation(value: number); | ||
set externalLinkTarget(value: string); | ||
set autoresize(value: boolean); | ||
set fitToPage(value: boolean); | ||
set showBorders(value: boolean); | ||
static getLinkTarget(type: string): any; | ||
@@ -75,5 +78,5 @@ constructor(element: ElementRef); | ||
onPageResize(): void; | ||
readonly pdfLinkService: any; | ||
readonly pdfViewer: any; | ||
readonly pdfFindController: any; | ||
get pdfLinkService(): any; | ||
get pdfViewer(): any; | ||
get pdfFindController(): any; | ||
ngOnChanges(changes: SimpleChanges): void; | ||
@@ -80,0 +83,0 @@ updateSize(): void; |
@@ -1,7 +0,3 @@ | ||
import { PDFJSStatic } from 'pdfjs-dist'; | ||
declare global { | ||
const PDFJS: PDFJSStatic; | ||
} | ||
export { PDFJSStatic, PDFDocumentProxy, PDFViewerParams, PDFPageProxy, PDFSource, PDFProgressData, PDFPromise } from 'pdfjs-dist'; | ||
export * from './typings'; | ||
export declare class PdfViewerModule { | ||
} |
@@ -1,2 +0,7 @@ | ||
export declare function _createEventBus(pdfJsViewer: any): any; | ||
export declare const createEventBus: typeof _createEventBus; | ||
import { Subject } from 'rxjs'; | ||
interface EventBus { | ||
on(eventName: string, listener: Function): void; | ||
off(eventName: string, listener: Function): void; | ||
} | ||
export declare function createEventBus(pdfJsViewer: any, destroy$: Subject<void>): EventBus; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
4
394845
23
2571
1
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/source-map@0.3.6(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@types/eslint@9.6.1(transitive)
+ Added@types/eslint-scope@3.7.7(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Added@types/node@22.9.0(transitive)
+ Added@webassemblyjs/ast@1.14.1(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.13.2(transitive)
+ Added@webassemblyjs/helper-api-error@1.13.2(transitive)
+ Added@webassemblyjs/helper-buffer@1.14.1(transitive)
+ Added@webassemblyjs/helper-numbers@1.13.2(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.13.2(transitive)
+ Added@webassemblyjs/helper-wasm-section@1.14.1(transitive)
+ Added@webassemblyjs/ieee754@1.13.2(transitive)
+ Added@webassemblyjs/leb128@1.13.2(transitive)
+ Added@webassemblyjs/utf8@1.13.2(transitive)
+ Added@webassemblyjs/wasm-edit@1.14.1(transitive)
+ Added@webassemblyjs/wasm-gen@1.14.1(transitive)
+ Added@webassemblyjs/wasm-opt@1.14.1(transitive)
+ Added@webassemblyjs/wasm-parser@1.14.1(transitive)
+ Added@webassemblyjs/wast-printer@1.14.1(transitive)
+ Added@xtuc/ieee754@1.2.0(transitive)
+ Added@xtuc/long@4.2.2(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedajv-keywords@3.5.2(transitive)
+ Addedbig.js@5.2.2(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcaniuse-lite@1.0.30001680(transitive)
+ Addedchrome-trace-event@1.0.4(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedelectron-to-chromium@1.5.62(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedenhanced-resolve@5.17.1(transitive)
+ Addedes-module-lexer@1.5.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedeslint-scope@5.1.1(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedglob-to-regexp@0.4.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedjest-worker@27.5.1(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedloader-runner@4.3.0(transitive)
+ Addedloader-utils@2.0.4(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedneo-async@2.6.2(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedpdfjs-dist@2.7.570(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedschema-utils@3.3.0(transitive)
+ Addedserialize-javascript@6.0.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedsupports-color@8.1.1(transitive)
+ Addedtapable@2.2.1(transitive)
+ Addedterser@5.36.0(transitive)
+ Addedterser-webpack-plugin@5.3.10(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedwatchpack@2.4.2(transitive)
+ Addedwebpack@5.96.1(transitive)
+ Addedwebpack-sources@3.2.3(transitive)
+ Addedworker-loader@3.0.8(transitive)
- Removed@types/pdfjs-dist@~2.1.7
- Removed@types/pdfjs-dist@2.1.7(transitive)
- Removedpdfjs-dist@2.5.207(transitive)
- Removedtslib@1.14.1(transitive)
Updatedpdfjs-dist@~2.7.570
Updatedtslib@^2.0.0