|
|
|
@ -36,9 +36,9 @@ exports.FirefoxCom = exports.DownloadManager = void 0;
|
|
|
|
|
__webpack_require__(2);
|
|
|
|
|
var _app = __webpack_require__(3);
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _preferences = __webpack_require__(43);
|
|
|
|
|
var _preferences = __webpack_require__(42);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _l10n_utils = __webpack_require__(31);
|
|
|
|
|
var _l10n_utils = __webpack_require__(30);
|
|
|
|
|
;
|
|
|
|
|
class FirefoxCom {
|
|
|
|
|
static requestSync(action, data) {
|
|
|
|
@ -510,12 +510,11 @@ var _webPdf_presentation_mode = __webpack_require__(23);
|
|
|
|
|
var _pdf_rendering_queue = __webpack_require__(24);
|
|
|
|
|
var _pdf_scripting_manager = __webpack_require__(25);
|
|
|
|
|
var _webPdf_sidebar = __webpack_require__(26);
|
|
|
|
|
var _webPdf_sidebar_resizer = __webpack_require__(27);
|
|
|
|
|
var _webPdf_thumbnail_viewer = __webpack_require__(28);
|
|
|
|
|
var _pdf_viewer = __webpack_require__(30);
|
|
|
|
|
var _webSecondary_toolbar = __webpack_require__(40);
|
|
|
|
|
var _webToolbar = __webpack_require__(41);
|
|
|
|
|
var _view_history = __webpack_require__(42);
|
|
|
|
|
var _webPdf_thumbnail_viewer = __webpack_require__(27);
|
|
|
|
|
var _pdf_viewer = __webpack_require__(29);
|
|
|
|
|
var _webSecondary_toolbar = __webpack_require__(39);
|
|
|
|
|
var _webToolbar = __webpack_require__(40);
|
|
|
|
|
var _view_history = __webpack_require__(41);
|
|
|
|
|
const FORCE_PAGES_LOADED_TIMEOUT = 10000;
|
|
|
|
|
const WHEEL_ZOOM_DISABLED_TIMEOUT = 1000;
|
|
|
|
|
const ViewOnLoad = {
|
|
|
|
@ -589,7 +588,6 @@ const PDFViewerApplication = {
|
|
|
|
|
pdfLinkService: null,
|
|
|
|
|
pdfHistory: null,
|
|
|
|
|
pdfSidebar: null,
|
|
|
|
|
pdfSidebarResizer: null,
|
|
|
|
|
pdfOutlineViewer: null,
|
|
|
|
|
pdfAttachmentViewer: null,
|
|
|
|
|
pdfLayerViewer: null,
|
|
|
|
@ -908,7 +906,6 @@ const PDFViewerApplication = {
|
|
|
|
|
l10n: this.l10n
|
|
|
|
|
});
|
|
|
|
|
this.pdfSidebar.onToggled = this.forceRendering.bind(this);
|
|
|
|
|
this.pdfSidebarResizer = new _webPdf_sidebar_resizer.PDFSidebarResizer(appConfig.sidebarResizer, eventBus, this.l10n);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
run(config) {
|
|
|
|
@ -2687,6 +2684,7 @@ exports.removeNullCharacters = removeNullCharacters;
|
|
|
|
|
exports.roundToDivide = roundToDivide;
|
|
|
|
|
exports.scrollIntoView = scrollIntoView;
|
|
|
|
|
exports.toggleCheckedBtn = toggleCheckedBtn;
|
|
|
|
|
exports.toggleExpandedBtn = toggleExpandedBtn;
|
|
|
|
|
exports.watchScroll = watchScroll;
|
|
|
|
|
const DEFAULT_SCALE_VALUE = "auto";
|
|
|
|
|
exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE;
|
|
|
|
@ -3183,6 +3181,11 @@ function toggleCheckedBtn(button, toggle, view = null) {
|
|
|
|
|
button.setAttribute("aria-checked", toggle);
|
|
|
|
|
view?.classList.toggle("hidden", !toggle);
|
|
|
|
|
}
|
|
|
|
|
function toggleExpandedBtn(button, toggle, view = null) {
|
|
|
|
|
button.classList.toggle("toggled", toggle);
|
|
|
|
|
button.setAttribute("aria-expanded", toggle);
|
|
|
|
|
view?.classList.toggle("hidden", !toggle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 5 */
|
|
|
|
@ -4957,6 +4960,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.PDFFindBar = void 0;
|
|
|
|
|
var _pdf_find_controller = __webpack_require__(18);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
const MATCHES_COUNT_LIMIT = 1000;
|
|
|
|
|
class PDFFindBar {
|
|
|
|
|
constructor(options, eventBus, l10n) {
|
|
|
|
@ -5083,9 +5087,7 @@ class PDFFindBar {
|
|
|
|
|
open() {
|
|
|
|
|
if (!this.opened) {
|
|
|
|
|
this.opened = true;
|
|
|
|
|
this.toggleButton.classList.add("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "true");
|
|
|
|
|
this.bar.classList.remove("hidden");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, true, this.bar);
|
|
|
|
|
}
|
|
|
|
|
this.findField.select();
|
|
|
|
|
this.findField.focus();
|
|
|
|
@ -5096,9 +5098,7 @@ class PDFFindBar {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.opened = false;
|
|
|
|
|
this.toggleButton.classList.remove("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "false");
|
|
|
|
|
this.bar.classList.add("hidden");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, false, this.bar);
|
|
|
|
|
this.eventBus.dispatch("findbarclose", {
|
|
|
|
|
source: this
|
|
|
|
|
});
|
|
|
|
@ -7669,8 +7669,16 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.PDFSidebar = void 0;
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
const SIDEBAR_WIDTH_VAR = "--sidebar-width";
|
|
|
|
|
const SIDEBAR_MIN_WIDTH = 200;
|
|
|
|
|
const SIDEBAR_RESIZING_CLASS = "sidebarResizing";
|
|
|
|
|
const UI_NOTIFICATION_CLASS = "pdfSidebarNotification";
|
|
|
|
|
class PDFSidebar {
|
|
|
|
|
#isRTL = false;
|
|
|
|
|
#mouseMoveBound = this.#mouseMove.bind(this);
|
|
|
|
|
#mouseUpBound = this.#mouseUp.bind(this);
|
|
|
|
|
#outerContainerWidth = null;
|
|
|
|
|
#width = null;
|
|
|
|
|
constructor({
|
|
|
|
|
elements,
|
|
|
|
|
pdfViewer,
|
|
|
|
@ -7688,6 +7696,7 @@ class PDFSidebar {
|
|
|
|
|
this.outerContainer = elements.outerContainer;
|
|
|
|
|
this.sidebarContainer = elements.sidebarContainer;
|
|
|
|
|
this.toggleButton = elements.toggleButton;
|
|
|
|
|
this.resizer = elements.resizer;
|
|
|
|
|
this.thumbnailButton = elements.thumbnailButton;
|
|
|
|
|
this.outlineButton = elements.outlineButton;
|
|
|
|
|
this.attachmentsButton = elements.attachmentsButton;
|
|
|
|
@ -7700,6 +7709,9 @@ class PDFSidebar {
|
|
|
|
|
this._currentOutlineItemButton = elements.currentOutlineItemButton;
|
|
|
|
|
this.eventBus = eventBus;
|
|
|
|
|
this.l10n = l10n;
|
|
|
|
|
l10n.getDirection().then(dir => {
|
|
|
|
|
this.#isRTL = dir === "rtl";
|
|
|
|
|
});
|
|
|
|
|
this.#addEventListeners();
|
|
|
|
|
}
|
|
|
|
|
reset() {
|
|
|
|
@ -7785,8 +7797,7 @@ class PDFSidebar {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.isOpen = true;
|
|
|
|
|
this.toggleButton.classList.add("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "true");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, true);
|
|
|
|
|
this.outerContainer.classList.add("sidebarMoving", "sidebarOpen");
|
|
|
|
|
if (this.active === _ui_utils.SidebarView.THUMBS) {
|
|
|
|
|
this.#updateThumbnailViewer();
|
|
|
|
@ -7800,8 +7811,7 @@ class PDFSidebar {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.isOpen = false;
|
|
|
|
|
this.toggleButton.classList.remove("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "false");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, false);
|
|
|
|
|
this.outerContainer.classList.add("sidebarMoving");
|
|
|
|
|
this.outerContainer.classList.remove("sidebarOpen");
|
|
|
|
|
this.onToggled();
|
|
|
|
@ -7815,8 +7825,8 @@ class PDFSidebar {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#dispatchEvent() {
|
|
|
|
|
if (this.isInitialViewSet && !this.isInitialEventDispatched) {
|
|
|
|
|
this.isInitialEventDispatched = true;
|
|
|
|
|
if (this.isInitialViewSet) {
|
|
|
|
|
this.isInitialEventDispatched ||= true;
|
|
|
|
|
}
|
|
|
|
|
this.eventBus.dispatch("sidebarviewchanged", {
|
|
|
|
|
source: this,
|
|
|
|
@ -7918,6 +7928,70 @@ class PDFSidebar {
|
|
|
|
|
this.#updateThumbnailViewer();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.resizer.addEventListener("mousedown", evt => {
|
|
|
|
|
if (evt.button !== 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
window.addEventListener("mousemove", this.#mouseMoveBound);
|
|
|
|
|
window.addEventListener("mouseup", this.#mouseUpBound);
|
|
|
|
|
});
|
|
|
|
|
this.eventBus._on("resize", evt => {
|
|
|
|
|
if (evt.source !== window) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.#outerContainerWidth = null;
|
|
|
|
|
if (!this.#width) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.isOpen) {
|
|
|
|
|
this.#updateWidth(this.#width);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
const updated = this.#updateWidth(this.#width);
|
|
|
|
|
Promise.resolve().then(() => {
|
|
|
|
|
this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
if (updated) {
|
|
|
|
|
this.eventBus.dispatch("resize", {
|
|
|
|
|
source: this
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
get outerContainerWidth() {
|
|
|
|
|
return this.#outerContainerWidth ||= this.outerContainer.clientWidth;
|
|
|
|
|
}
|
|
|
|
|
#updateWidth(width = 0) {
|
|
|
|
|
const maxWidth = Math.floor(this.outerContainerWidth / 2);
|
|
|
|
|
if (width > maxWidth) {
|
|
|
|
|
width = maxWidth;
|
|
|
|
|
}
|
|
|
|
|
if (width < SIDEBAR_MIN_WIDTH) {
|
|
|
|
|
width = SIDEBAR_MIN_WIDTH;
|
|
|
|
|
}
|
|
|
|
|
if (width === this.#width) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
this.#width = width;
|
|
|
|
|
_ui_utils.docStyle.setProperty(SIDEBAR_WIDTH_VAR, `${width}px`);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
#mouseMove(evt) {
|
|
|
|
|
let width = evt.clientX;
|
|
|
|
|
if (this.#isRTL) {
|
|
|
|
|
width = this.outerContainerWidth - width;
|
|
|
|
|
}
|
|
|
|
|
this.#updateWidth(width);
|
|
|
|
|
}
|
|
|
|
|
#mouseUp(evt) {
|
|
|
|
|
this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
this.eventBus.dispatch("resize", {
|
|
|
|
|
source: this
|
|
|
|
|
});
|
|
|
|
|
window.removeEventListener("mousemove", this.#mouseMoveBound);
|
|
|
|
|
window.removeEventListener("mouseup", this.#mouseUpBound);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
exports.PDFSidebar = PDFSidebar;
|
|
|
|
@ -7928,117 +8002,12 @@ exports.PDFSidebar = PDFSidebar;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
value: true
|
|
|
|
|
}));
|
|
|
|
|
exports.PDFSidebarResizer = void 0;
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
const SIDEBAR_WIDTH_VAR = "--sidebar-width";
|
|
|
|
|
const SIDEBAR_MIN_WIDTH = 200;
|
|
|
|
|
const SIDEBAR_RESIZING_CLASS = "sidebarResizing";
|
|
|
|
|
class PDFSidebarResizer {
|
|
|
|
|
constructor(options, eventBus, l10n) {
|
|
|
|
|
this.isRTL = false;
|
|
|
|
|
this.sidebarOpen = false;
|
|
|
|
|
this._width = null;
|
|
|
|
|
this._outerContainerWidth = null;
|
|
|
|
|
this._boundEvents = Object.create(null);
|
|
|
|
|
this.outerContainer = options.outerContainer;
|
|
|
|
|
this.resizer = options.resizer;
|
|
|
|
|
this.eventBus = eventBus;
|
|
|
|
|
l10n.getDirection().then(dir => {
|
|
|
|
|
this.isRTL = dir === "rtl";
|
|
|
|
|
});
|
|
|
|
|
this._addEventListeners();
|
|
|
|
|
}
|
|
|
|
|
get outerContainerWidth() {
|
|
|
|
|
return this._outerContainerWidth ||= this.outerContainer.clientWidth;
|
|
|
|
|
}
|
|
|
|
|
_updateWidth(width = 0) {
|
|
|
|
|
const maxWidth = Math.floor(this.outerContainerWidth / 2);
|
|
|
|
|
if (width > maxWidth) {
|
|
|
|
|
width = maxWidth;
|
|
|
|
|
}
|
|
|
|
|
if (width < SIDEBAR_MIN_WIDTH) {
|
|
|
|
|
width = SIDEBAR_MIN_WIDTH;
|
|
|
|
|
}
|
|
|
|
|
if (width === this._width) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
this._width = width;
|
|
|
|
|
_ui_utils.docStyle.setProperty(SIDEBAR_WIDTH_VAR, `${width}px`);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
_mouseMove(evt) {
|
|
|
|
|
let width = evt.clientX;
|
|
|
|
|
if (this.isRTL) {
|
|
|
|
|
width = this.outerContainerWidth - width;
|
|
|
|
|
}
|
|
|
|
|
this._updateWidth(width);
|
|
|
|
|
}
|
|
|
|
|
_mouseUp(evt) {
|
|
|
|
|
this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
this.eventBus.dispatch("resize", {
|
|
|
|
|
source: this
|
|
|
|
|
});
|
|
|
|
|
const _boundEvents = this._boundEvents;
|
|
|
|
|
window.removeEventListener("mousemove", _boundEvents.mouseMove);
|
|
|
|
|
window.removeEventListener("mouseup", _boundEvents.mouseUp);
|
|
|
|
|
}
|
|
|
|
|
_addEventListeners() {
|
|
|
|
|
const _boundEvents = this._boundEvents;
|
|
|
|
|
_boundEvents.mouseMove = this._mouseMove.bind(this);
|
|
|
|
|
_boundEvents.mouseUp = this._mouseUp.bind(this);
|
|
|
|
|
this.resizer.addEventListener("mousedown", evt => {
|
|
|
|
|
if (evt.button !== 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
window.addEventListener("mousemove", _boundEvents.mouseMove);
|
|
|
|
|
window.addEventListener("mouseup", _boundEvents.mouseUp);
|
|
|
|
|
});
|
|
|
|
|
this.eventBus._on("sidebarviewchanged", evt => {
|
|
|
|
|
this.sidebarOpen = !!evt?.view;
|
|
|
|
|
});
|
|
|
|
|
this.eventBus._on("resize", evt => {
|
|
|
|
|
if (evt?.source !== window) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this._outerContainerWidth = null;
|
|
|
|
|
if (!this._width) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!this.sidebarOpen) {
|
|
|
|
|
this._updateWidth(this._width);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
const updated = this._updateWidth(this._width);
|
|
|
|
|
Promise.resolve().then(() => {
|
|
|
|
|
this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS);
|
|
|
|
|
if (updated) {
|
|
|
|
|
this.eventBus.dispatch("resize", {
|
|
|
|
|
source: this
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
exports.PDFSidebarResizer = PDFSidebarResizer;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 28 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
value: true
|
|
|
|
|
}));
|
|
|
|
|
exports.PDFThumbnailViewer = void 0;
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _pdf_thumbnail_view = __webpack_require__(29);
|
|
|
|
|
var _pdf_thumbnail_view = __webpack_require__(28);
|
|
|
|
|
const THUMBNAIL_SCROLL_MARGIN = -19;
|
|
|
|
|
const THUMBNAIL_SELECTED_CLASS = "selected";
|
|
|
|
|
class PDFThumbnailViewer {
|
|
|
|
@ -8244,7 +8213,7 @@ class PDFThumbnailViewer {
|
|
|
|
|
exports.PDFThumbnailViewer = PDFThumbnailViewer;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 29 */
|
|
|
|
|
/* 28 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -8556,7 +8525,7 @@ class PDFThumbnailView {
|
|
|
|
|
exports.PDFThumbnailView = PDFThumbnailView;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 30 */
|
|
|
|
|
/* 29 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -8567,8 +8536,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
exports.PagesCountLimit = exports.PDFViewer = exports.PDFPageViewBuffer = void 0;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _l10n_utils = __webpack_require__(31);
|
|
|
|
|
var _pdf_page_view = __webpack_require__(32);
|
|
|
|
|
var _l10n_utils = __webpack_require__(30);
|
|
|
|
|
var _pdf_page_view = __webpack_require__(31);
|
|
|
|
|
var _pdf_rendering_queue = __webpack_require__(24);
|
|
|
|
|
var _pdf_link_service = __webpack_require__(8);
|
|
|
|
|
const DEFAULT_CACHE_SIZE = 10;
|
|
|
|
@ -8648,7 +8617,7 @@ class PDFViewer {
|
|
|
|
|
#scaleTimeoutId = null;
|
|
|
|
|
#textLayerMode = _ui_utils.TextLayerMode.ENABLE;
|
|
|
|
|
constructor(options) {
|
|
|
|
|
const viewerVersion = '3.7.17';
|
|
|
|
|
const viewerVersion = '3.7.27';
|
|
|
|
|
if (_pdfjsLib.version !== viewerVersion) {
|
|
|
|
|
throw new Error(`The API version "${_pdfjsLib.version}" does not match the Viewer version "${viewerVersion}".`);
|
|
|
|
|
}
|
|
|
|
@ -10062,7 +10031,7 @@ class PDFViewer {
|
|
|
|
|
exports.PDFViewer = PDFViewer;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 31 */
|
|
|
|
|
/* 30 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -10174,7 +10143,7 @@ const NullL10n = {
|
|
|
|
|
exports.NullL10n = NullL10n;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 32 */
|
|
|
|
|
/* 31 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -10185,16 +10154,16 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
exports.PDFPageView = void 0;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _annotation_editor_layer_builder = __webpack_require__(33);
|
|
|
|
|
var _annotation_layer_builder = __webpack_require__(34);
|
|
|
|
|
var _annotation_editor_layer_builder = __webpack_require__(32);
|
|
|
|
|
var _annotation_layer_builder = __webpack_require__(33);
|
|
|
|
|
var _app_options = __webpack_require__(6);
|
|
|
|
|
var _l10n_utils = __webpack_require__(31);
|
|
|
|
|
var _l10n_utils = __webpack_require__(30);
|
|
|
|
|
var _pdf_link_service = __webpack_require__(8);
|
|
|
|
|
var _struct_tree_layer_builder = __webpack_require__(35);
|
|
|
|
|
var _text_accessibility = __webpack_require__(36);
|
|
|
|
|
var _text_highlighter = __webpack_require__(37);
|
|
|
|
|
var _text_layer_builder = __webpack_require__(38);
|
|
|
|
|
var _xfa_layer_builder = __webpack_require__(39);
|
|
|
|
|
var _struct_tree_layer_builder = __webpack_require__(34);
|
|
|
|
|
var _text_accessibility = __webpack_require__(35);
|
|
|
|
|
var _text_highlighter = __webpack_require__(36);
|
|
|
|
|
var _text_layer_builder = __webpack_require__(37);
|
|
|
|
|
var _xfa_layer_builder = __webpack_require__(38);
|
|
|
|
|
const MAX_CANVAS_PIXELS = _app_options.compatibilityParams.maxCanvasPixels || 16777216;
|
|
|
|
|
const DEFAULT_LAYER_PROPERTIES = () => {
|
|
|
|
|
return null;
|
|
|
|
@ -10898,7 +10867,7 @@ class PDFPageView {
|
|
|
|
|
exports.PDFPageView = PDFPageView;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 33 */
|
|
|
|
|
/* 32 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -10908,7 +10877,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.AnnotationEditorLayerBuilder = void 0;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _l10n_utils = __webpack_require__(31);
|
|
|
|
|
var _l10n_utils = __webpack_require__(30);
|
|
|
|
|
class AnnotationEditorLayerBuilder {
|
|
|
|
|
#uiManager;
|
|
|
|
|
constructor(options) {
|
|
|
|
@ -10985,7 +10954,7 @@ class AnnotationEditorLayerBuilder {
|
|
|
|
|
exports.AnnotationEditorLayerBuilder = AnnotationEditorLayerBuilder;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 34 */
|
|
|
|
|
/* 33 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -10995,7 +10964,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.AnnotationLayerBuilder = void 0;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _l10n_utils = __webpack_require__(31);
|
|
|
|
|
var _l10n_utils = __webpack_require__(30);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
class AnnotationLayerBuilder {
|
|
|
|
|
#numAnnotations = 0;
|
|
|
|
@ -11127,7 +11096,7 @@ class AnnotationLayerBuilder {
|
|
|
|
|
exports.AnnotationLayerBuilder = AnnotationLayerBuilder;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 35 */
|
|
|
|
|
/* 34 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11246,7 +11215,7 @@ class StructTreeLayerBuilder {
|
|
|
|
|
exports.StructTreeLayerBuilder = StructTreeLayerBuilder;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 36 */
|
|
|
|
|
/* 35 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11404,7 +11373,7 @@ class TextAccessibilityManager {
|
|
|
|
|
exports.TextAccessibilityManager = TextAccessibilityManager;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 37 */
|
|
|
|
|
/* 36 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11634,7 +11603,7 @@ class TextHighlighter {
|
|
|
|
|
exports.TextHighlighter = TextHighlighter;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 38 */
|
|
|
|
|
/* 37 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11784,7 +11753,7 @@ class TextLayerBuilder {
|
|
|
|
|
exports.TextLayerBuilder = TextLayerBuilder;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 39 */
|
|
|
|
|
/* 38 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11864,7 +11833,7 @@ class XfaLayerBuilder {
|
|
|
|
|
exports.XfaLayerBuilder = XfaLayerBuilder;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 40 */
|
|
|
|
|
/* 39 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -11874,7 +11843,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.SecondaryToolbar = void 0;
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _pdf_viewer = __webpack_require__(30);
|
|
|
|
|
var _pdf_viewer = __webpack_require__(29);
|
|
|
|
|
class SecondaryToolbar {
|
|
|
|
|
constructor(options, eventBus, externalServices) {
|
|
|
|
|
this.toolbar = options.toolbar;
|
|
|
|
@ -12118,18 +12087,14 @@ class SecondaryToolbar {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.opened = true;
|
|
|
|
|
this.toggleButton.classList.add("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "true");
|
|
|
|
|
this.toolbar.classList.remove("hidden");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, true, this.toolbar);
|
|
|
|
|
}
|
|
|
|
|
close() {
|
|
|
|
|
if (!this.opened) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.opened = false;
|
|
|
|
|
this.toolbar.classList.add("hidden");
|
|
|
|
|
this.toggleButton.classList.remove("toggled");
|
|
|
|
|
this.toggleButton.setAttribute("aria-expanded", "false");
|
|
|
|
|
(0, _ui_utils.toggleExpandedBtn)(this.toggleButton, false, this.toolbar);
|
|
|
|
|
}
|
|
|
|
|
toggle() {
|
|
|
|
|
if (this.opened) {
|
|
|
|
@ -12142,7 +12107,7 @@ class SecondaryToolbar {
|
|
|
|
|
exports.SecondaryToolbar = SecondaryToolbar;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 41 */
|
|
|
|
|
/* 40 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12416,7 +12381,7 @@ class Toolbar {
|
|
|
|
|
exports.Toolbar = Toolbar;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 42 */
|
|
|
|
|
/* 41 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12493,7 +12458,7 @@ class ViewHistory {
|
|
|
|
|
exports.ViewHistory = ViewHistory;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 43 */
|
|
|
|
|
/* 42 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12613,7 +12578,7 @@ class BasePreferences {
|
|
|
|
|
exports.BasePreferences = BasePreferences;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 44 */
|
|
|
|
|
/* 43 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12623,7 +12588,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
}));
|
|
|
|
|
exports.FirefoxPrintService = void 0;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _print_utils = __webpack_require__(45);
|
|
|
|
|
var _print_utils = __webpack_require__(44);
|
|
|
|
|
var _app = __webpack_require__(3);
|
|
|
|
|
function composePage(pdfDocument, pageNumber, size, printContainer, printResolution, optionalContentConfigPromise, printAnnotationStoragePromise) {
|
|
|
|
|
const canvas = document.createElement("canvas");
|
|
|
|
@ -12744,7 +12709,7 @@ _app.PDFPrintServiceFactory.instance = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
/* 45 */
|
|
|
|
|
/* 44 */
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12755,7 +12720,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
exports.getXfaHtmlForPrinting = getXfaHtmlForPrinting;
|
|
|
|
|
var _pdfjsLib = __webpack_require__(5);
|
|
|
|
|
var _pdf_link_service = __webpack_require__(8);
|
|
|
|
|
var _xfa_layer_builder = __webpack_require__(39);
|
|
|
|
|
var _xfa_layer_builder = __webpack_require__(38);
|
|
|
|
|
function getXfaHtmlForPrinting(printContainer, pdfDocument) {
|
|
|
|
|
const xfaHtml = pdfDocument.allXfaHtml;
|
|
|
|
|
const linkService = new _pdf_link_service.SimpleLinkService();
|
|
|
|
@ -12829,13 +12794,13 @@ Object.defineProperty(exports, "PDFViewerApplicationOptions", ({
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
__webpack_require__(1);
|
|
|
|
|
__webpack_require__(44);
|
|
|
|
|
__webpack_require__(43);
|
|
|
|
|
var _ui_utils = __webpack_require__(4);
|
|
|
|
|
var _app_options = __webpack_require__(6);
|
|
|
|
|
var _pdf_link_service = __webpack_require__(8);
|
|
|
|
|
var _app = __webpack_require__(3);
|
|
|
|
|
const pdfjsVersion = '3.7.17';
|
|
|
|
|
const pdfjsBuild = 'd520754bc';
|
|
|
|
|
const pdfjsVersion = '3.7.27';
|
|
|
|
|
const pdfjsBuild = 'e738e15aa';
|
|
|
|
|
const AppConstants = null;
|
|
|
|
|
exports.PDFViewerApplicationConstants = AppConstants;
|
|
|
|
|
window.PDFViewerApplication = _app.PDFViewerApplication;
|
|
|
|
@ -12892,6 +12857,7 @@ function getViewerConfiguration() {
|
|
|
|
|
outerContainer: document.getElementById("outerContainer"),
|
|
|
|
|
sidebarContainer: document.getElementById("sidebarContainer"),
|
|
|
|
|
toggleButton: document.getElementById("sidebarToggle"),
|
|
|
|
|
resizer: document.getElementById("sidebarResizer"),
|
|
|
|
|
thumbnailButton: document.getElementById("viewThumbnail"),
|
|
|
|
|
outlineButton: document.getElementById("viewOutline"),
|
|
|
|
|
attachmentsButton: document.getElementById("viewAttachments"),
|
|
|
|
@ -12903,10 +12869,6 @@ function getViewerConfiguration() {
|
|
|
|
|
outlineOptionsContainer: document.getElementById("outlineOptionsContainer"),
|
|
|
|
|
currentOutlineItemButton: document.getElementById("currentOutlineItem")
|
|
|
|
|
},
|
|
|
|
|
sidebarResizer: {
|
|
|
|
|
outerContainer: document.getElementById("outerContainer"),
|
|
|
|
|
resizer: document.getElementById("sidebarResizer")
|
|
|
|
|
},
|
|
|
|
|
findBar: {
|
|
|
|
|
bar: document.getElementById("findbar"),
|
|
|
|
|
toggleButton: document.getElementById("viewFind"),
|
|
|
|
|