Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/web
File: viewer.js
page: pageNumber,
[9500] Fix | Delete
rotation: this.linkService.rotation
[9501] Fix | Delete
}, forceReplace);
[9502] Fix | Delete
if (!this._popStateInProgress) {
[9503] Fix | Delete
this._popStateInProgress = true;
[9504] Fix | Delete
Promise.resolve().then(() => {
[9505] Fix | Delete
this._popStateInProgress = false;
[9506] Fix | Delete
});
[9507] Fix | Delete
}
[9508] Fix | Delete
}
[9509] Fix | Delete
pushPage(pageNumber) {
[9510] Fix | Delete
if (!this._initialized) {
[9511] Fix | Delete
return;
[9512] Fix | Delete
}
[9513] Fix | Delete
if (!this.#isValidPage(pageNumber)) {
[9514] Fix | Delete
console.error(`PDFHistory.pushPage: "${pageNumber}" is not a valid page number.`);
[9515] Fix | Delete
return;
[9516] Fix | Delete
}
[9517] Fix | Delete
if (this._destination?.page === pageNumber) {
[9518] Fix | Delete
return;
[9519] Fix | Delete
}
[9520] Fix | Delete
if (this._popStateInProgress) {
[9521] Fix | Delete
return;
[9522] Fix | Delete
}
[9523] Fix | Delete
this.#pushOrReplaceState({
[9524] Fix | Delete
dest: null,
[9525] Fix | Delete
hash: `page=${pageNumber}`,
[9526] Fix | Delete
page: pageNumber,
[9527] Fix | Delete
rotation: this.linkService.rotation
[9528] Fix | Delete
});
[9529] Fix | Delete
if (!this._popStateInProgress) {
[9530] Fix | Delete
this._popStateInProgress = true;
[9531] Fix | Delete
Promise.resolve().then(() => {
[9532] Fix | Delete
this._popStateInProgress = false;
[9533] Fix | Delete
});
[9534] Fix | Delete
}
[9535] Fix | Delete
}
[9536] Fix | Delete
pushCurrentPosition() {
[9537] Fix | Delete
if (!this._initialized || this._popStateInProgress) {
[9538] Fix | Delete
return;
[9539] Fix | Delete
}
[9540] Fix | Delete
this.#tryPushCurrentPosition();
[9541] Fix | Delete
}
[9542] Fix | Delete
back() {
[9543] Fix | Delete
if (!this._initialized || this._popStateInProgress) {
[9544] Fix | Delete
return;
[9545] Fix | Delete
}
[9546] Fix | Delete
const state = window.history.state;
[9547] Fix | Delete
if (this.#isValidState(state) && state.uid > 0) {
[9548] Fix | Delete
window.history.back();
[9549] Fix | Delete
}
[9550] Fix | Delete
}
[9551] Fix | Delete
forward() {
[9552] Fix | Delete
if (!this._initialized || this._popStateInProgress) {
[9553] Fix | Delete
return;
[9554] Fix | Delete
}
[9555] Fix | Delete
const state = window.history.state;
[9556] Fix | Delete
if (this.#isValidState(state) && state.uid < this._maxUid) {
[9557] Fix | Delete
window.history.forward();
[9558] Fix | Delete
}
[9559] Fix | Delete
}
[9560] Fix | Delete
get popStateInProgress() {
[9561] Fix | Delete
return this._initialized && (this._popStateInProgress || this._blockHashChange > 0);
[9562] Fix | Delete
}
[9563] Fix | Delete
get initialBookmark() {
[9564] Fix | Delete
return this._initialized ? this._initialBookmark : null;
[9565] Fix | Delete
}
[9566] Fix | Delete
get initialRotation() {
[9567] Fix | Delete
return this._initialized ? this._initialRotation : null;
[9568] Fix | Delete
}
[9569] Fix | Delete
#pushOrReplaceState(destination, forceReplace = false) {
[9570] Fix | Delete
const shouldReplace = forceReplace || !this._destination;
[9571] Fix | Delete
const newState = {
[9572] Fix | Delete
fingerprint: this._fingerprint,
[9573] Fix | Delete
uid: shouldReplace ? this._uid : this._uid + 1,
[9574] Fix | Delete
destination
[9575] Fix | Delete
};
[9576] Fix | Delete
this.#updateInternalState(destination, newState.uid);
[9577] Fix | Delete
let newUrl;
[9578] Fix | Delete
if (this._updateUrl && destination?.hash) {
[9579] Fix | Delete
const baseUrl = document.location.href.split("#", 1)[0];
[9580] Fix | Delete
if (!baseUrl.startsWith("file://")) {
[9581] Fix | Delete
newUrl = `${baseUrl}#${destination.hash}`;
[9582] Fix | Delete
}
[9583] Fix | Delete
}
[9584] Fix | Delete
if (shouldReplace) {
[9585] Fix | Delete
window.history.replaceState(newState, "", newUrl);
[9586] Fix | Delete
} else {
[9587] Fix | Delete
window.history.pushState(newState, "", newUrl);
[9588] Fix | Delete
}
[9589] Fix | Delete
}
[9590] Fix | Delete
#tryPushCurrentPosition(temporary = false) {
[9591] Fix | Delete
if (!this._position) {
[9592] Fix | Delete
return;
[9593] Fix | Delete
}
[9594] Fix | Delete
let position = this._position;
[9595] Fix | Delete
if (temporary) {
[9596] Fix | Delete
position = Object.assign(Object.create(null), this._position);
[9597] Fix | Delete
position.temporary = true;
[9598] Fix | Delete
}
[9599] Fix | Delete
if (!this._destination) {
[9600] Fix | Delete
this.#pushOrReplaceState(position);
[9601] Fix | Delete
return;
[9602] Fix | Delete
}
[9603] Fix | Delete
if (this._destination.temporary) {
[9604] Fix | Delete
this.#pushOrReplaceState(position, true);
[9605] Fix | Delete
return;
[9606] Fix | Delete
}
[9607] Fix | Delete
if (this._destination.hash === position.hash) {
[9608] Fix | Delete
return;
[9609] Fix | Delete
}
[9610] Fix | Delete
if (!this._destination.page && (POSITION_UPDATED_THRESHOLD <= 0 || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {
[9611] Fix | Delete
return;
[9612] Fix | Delete
}
[9613] Fix | Delete
let forceReplace = false;
[9614] Fix | Delete
if (this._destination.page >= position.first && this._destination.page <= position.page) {
[9615] Fix | Delete
if (this._destination.dest !== undefined || !this._destination.first) {
[9616] Fix | Delete
return;
[9617] Fix | Delete
}
[9618] Fix | Delete
forceReplace = true;
[9619] Fix | Delete
}
[9620] Fix | Delete
this.#pushOrReplaceState(position, forceReplace);
[9621] Fix | Delete
}
[9622] Fix | Delete
#isValidPage(val) {
[9623] Fix | Delete
return Number.isInteger(val) && val > 0 && val <= this.linkService.pagesCount;
[9624] Fix | Delete
}
[9625] Fix | Delete
#isValidState(state, checkReload = false) {
[9626] Fix | Delete
if (!state) {
[9627] Fix | Delete
return false;
[9628] Fix | Delete
}
[9629] Fix | Delete
if (state.fingerprint !== this._fingerprint) {
[9630] Fix | Delete
if (checkReload) {
[9631] Fix | Delete
if (typeof state.fingerprint !== "string" || state.fingerprint.length !== this._fingerprint.length) {
[9632] Fix | Delete
return false;
[9633] Fix | Delete
}
[9634] Fix | Delete
const [perfEntry] = performance.getEntriesByType("navigation");
[9635] Fix | Delete
if (perfEntry?.type !== "reload") {
[9636] Fix | Delete
return false;
[9637] Fix | Delete
}
[9638] Fix | Delete
} else {
[9639] Fix | Delete
return false;
[9640] Fix | Delete
}
[9641] Fix | Delete
}
[9642] Fix | Delete
if (!Number.isInteger(state.uid) || state.uid < 0) {
[9643] Fix | Delete
return false;
[9644] Fix | Delete
}
[9645] Fix | Delete
if (state.destination === null || typeof state.destination !== "object") {
[9646] Fix | Delete
return false;
[9647] Fix | Delete
}
[9648] Fix | Delete
return true;
[9649] Fix | Delete
}
[9650] Fix | Delete
#updateInternalState(destination, uid, removeTemporary = false) {
[9651] Fix | Delete
if (this._updateViewareaTimeout) {
[9652] Fix | Delete
clearTimeout(this._updateViewareaTimeout);
[9653] Fix | Delete
this._updateViewareaTimeout = null;
[9654] Fix | Delete
}
[9655] Fix | Delete
if (removeTemporary && destination?.temporary) {
[9656] Fix | Delete
delete destination.temporary;
[9657] Fix | Delete
}
[9658] Fix | Delete
this._destination = destination;
[9659] Fix | Delete
this._uid = uid;
[9660] Fix | Delete
this._maxUid = Math.max(this._maxUid, uid);
[9661] Fix | Delete
this._numPositionUpdates = 0;
[9662] Fix | Delete
}
[9663] Fix | Delete
#parseCurrentHash(checkNameddest = false) {
[9664] Fix | Delete
const hash = unescape(getCurrentHash()).substring(1);
[9665] Fix | Delete
const params = parseQueryString(hash);
[9666] Fix | Delete
const nameddest = params.get("nameddest") || "";
[9667] Fix | Delete
let page = params.get("page") | 0;
[9668] Fix | Delete
if (!this.#isValidPage(page) || checkNameddest && nameddest.length > 0) {
[9669] Fix | Delete
page = null;
[9670] Fix | Delete
}
[9671] Fix | Delete
return {
[9672] Fix | Delete
hash,
[9673] Fix | Delete
page,
[9674] Fix | Delete
rotation: this.linkService.rotation
[9675] Fix | Delete
};
[9676] Fix | Delete
}
[9677] Fix | Delete
#updateViewarea({
[9678] Fix | Delete
location
[9679] Fix | Delete
}) {
[9680] Fix | Delete
if (this._updateViewareaTimeout) {
[9681] Fix | Delete
clearTimeout(this._updateViewareaTimeout);
[9682] Fix | Delete
this._updateViewareaTimeout = null;
[9683] Fix | Delete
}
[9684] Fix | Delete
this._position = {
[9685] Fix | Delete
hash: location.pdfOpenParams.substring(1),
[9686] Fix | Delete
page: this.linkService.page,
[9687] Fix | Delete
first: location.pageNumber,
[9688] Fix | Delete
rotation: location.rotation
[9689] Fix | Delete
};
[9690] Fix | Delete
if (this._popStateInProgress) {
[9691] Fix | Delete
return;
[9692] Fix | Delete
}
[9693] Fix | Delete
if (POSITION_UPDATED_THRESHOLD > 0 && this._isPagesLoaded && this._destination && !this._destination.page) {
[9694] Fix | Delete
this._numPositionUpdates++;
[9695] Fix | Delete
}
[9696] Fix | Delete
if (UPDATE_VIEWAREA_TIMEOUT > 0) {
[9697] Fix | Delete
this._updateViewareaTimeout = setTimeout(() => {
[9698] Fix | Delete
if (!this._popStateInProgress) {
[9699] Fix | Delete
this.#tryPushCurrentPosition(true);
[9700] Fix | Delete
}
[9701] Fix | Delete
this._updateViewareaTimeout = null;
[9702] Fix | Delete
}, UPDATE_VIEWAREA_TIMEOUT);
[9703] Fix | Delete
}
[9704] Fix | Delete
}
[9705] Fix | Delete
#popState({
[9706] Fix | Delete
state
[9707] Fix | Delete
}) {
[9708] Fix | Delete
const newHash = getCurrentHash(),
[9709] Fix | Delete
hashChanged = this._currentHash !== newHash;
[9710] Fix | Delete
this._currentHash = newHash;
[9711] Fix | Delete
if (!state) {
[9712] Fix | Delete
this._uid++;
[9713] Fix | Delete
const {
[9714] Fix | Delete
hash,
[9715] Fix | Delete
page,
[9716] Fix | Delete
rotation
[9717] Fix | Delete
} = this.#parseCurrentHash();
[9718] Fix | Delete
this.#pushOrReplaceState({
[9719] Fix | Delete
hash,
[9720] Fix | Delete
page,
[9721] Fix | Delete
rotation
[9722] Fix | Delete
}, true);
[9723] Fix | Delete
return;
[9724] Fix | Delete
}
[9725] Fix | Delete
if (!this.#isValidState(state)) {
[9726] Fix | Delete
return;
[9727] Fix | Delete
}
[9728] Fix | Delete
this._popStateInProgress = true;
[9729] Fix | Delete
if (hashChanged) {
[9730] Fix | Delete
this._blockHashChange++;
[9731] Fix | Delete
waitOnEventOrTimeout({
[9732] Fix | Delete
target: window,
[9733] Fix | Delete
name: "hashchange",
[9734] Fix | Delete
delay: HASH_CHANGE_TIMEOUT
[9735] Fix | Delete
}).then(() => {
[9736] Fix | Delete
this._blockHashChange--;
[9737] Fix | Delete
});
[9738] Fix | Delete
}
[9739] Fix | Delete
const destination = state.destination;
[9740] Fix | Delete
this.#updateInternalState(destination, state.uid, true);
[9741] Fix | Delete
if (isValidRotation(destination.rotation)) {
[9742] Fix | Delete
this.linkService.rotation = destination.rotation;
[9743] Fix | Delete
}
[9744] Fix | Delete
if (destination.dest) {
[9745] Fix | Delete
this.linkService.goToDestination(destination.dest);
[9746] Fix | Delete
} else if (destination.hash) {
[9747] Fix | Delete
this.linkService.setHash(destination.hash);
[9748] Fix | Delete
} else if (destination.page) {
[9749] Fix | Delete
this.linkService.page = destination.page;
[9750] Fix | Delete
}
[9751] Fix | Delete
Promise.resolve().then(() => {
[9752] Fix | Delete
this._popStateInProgress = false;
[9753] Fix | Delete
});
[9754] Fix | Delete
}
[9755] Fix | Delete
#pageHide() {
[9756] Fix | Delete
if (!this._destination || this._destination.temporary) {
[9757] Fix | Delete
this.#tryPushCurrentPosition();
[9758] Fix | Delete
}
[9759] Fix | Delete
}
[9760] Fix | Delete
#bindEvents() {
[9761] Fix | Delete
if (this.#eventAbortController) {
[9762] Fix | Delete
return;
[9763] Fix | Delete
}
[9764] Fix | Delete
this.#eventAbortController = new AbortController();
[9765] Fix | Delete
const {
[9766] Fix | Delete
signal
[9767] Fix | Delete
} = this.#eventAbortController;
[9768] Fix | Delete
this.eventBus._on("updateviewarea", this.#updateViewarea.bind(this), {
[9769] Fix | Delete
signal
[9770] Fix | Delete
});
[9771] Fix | Delete
window.addEventListener("popstate", this.#popState.bind(this), {
[9772] Fix | Delete
signal
[9773] Fix | Delete
});
[9774] Fix | Delete
window.addEventListener("pagehide", this.#pageHide.bind(this), {
[9775] Fix | Delete
signal
[9776] Fix | Delete
});
[9777] Fix | Delete
}
[9778] Fix | Delete
#unbindEvents() {
[9779] Fix | Delete
this.#eventAbortController?.abort();
[9780] Fix | Delete
this.#eventAbortController = null;
[9781] Fix | Delete
}
[9782] Fix | Delete
}
[9783] Fix | Delete
function isDestHashesEqual(destHash, pushHash) {
[9784] Fix | Delete
if (typeof destHash !== "string" || typeof pushHash !== "string") {
[9785] Fix | Delete
return false;
[9786] Fix | Delete
}
[9787] Fix | Delete
if (destHash === pushHash) {
[9788] Fix | Delete
return true;
[9789] Fix | Delete
}
[9790] Fix | Delete
const nameddest = parseQueryString(destHash).get("nameddest");
[9791] Fix | Delete
if (nameddest === pushHash) {
[9792] Fix | Delete
return true;
[9793] Fix | Delete
}
[9794] Fix | Delete
return false;
[9795] Fix | Delete
}
[9796] Fix | Delete
function isDestArraysEqual(firstDest, secondDest) {
[9797] Fix | Delete
function isEntryEqual(first, second) {
[9798] Fix | Delete
if (typeof first !== typeof second) {
[9799] Fix | Delete
return false;
[9800] Fix | Delete
}
[9801] Fix | Delete
if (Array.isArray(first) || Array.isArray(second)) {
[9802] Fix | Delete
return false;
[9803] Fix | Delete
}
[9804] Fix | Delete
if (first !== null && typeof first === "object" && second !== null) {
[9805] Fix | Delete
if (Object.keys(first).length !== Object.keys(second).length) {
[9806] Fix | Delete
return false;
[9807] Fix | Delete
}
[9808] Fix | Delete
for (const key in first) {
[9809] Fix | Delete
if (!isEntryEqual(first[key], second[key])) {
[9810] Fix | Delete
return false;
[9811] Fix | Delete
}
[9812] Fix | Delete
}
[9813] Fix | Delete
return true;
[9814] Fix | Delete
}
[9815] Fix | Delete
return first === second || Number.isNaN(first) && Number.isNaN(second);
[9816] Fix | Delete
}
[9817] Fix | Delete
if (!(Array.isArray(firstDest) && Array.isArray(secondDest))) {
[9818] Fix | Delete
return false;
[9819] Fix | Delete
}
[9820] Fix | Delete
if (firstDest.length !== secondDest.length) {
[9821] Fix | Delete
return false;
[9822] Fix | Delete
}
[9823] Fix | Delete
for (let i = 0, ii = firstDest.length; i < ii; i++) {
[9824] Fix | Delete
if (!isEntryEqual(firstDest[i], secondDest[i])) {
[9825] Fix | Delete
return false;
[9826] Fix | Delete
}
[9827] Fix | Delete
}
[9828] Fix | Delete
return true;
[9829] Fix | Delete
}
[9830] Fix | Delete
[9831] Fix | Delete
;// CONCATENATED MODULE: ./web/pdf_layer_viewer.js
[9832] Fix | Delete
[9833] Fix | Delete
[9834] Fix | Delete
class PDFLayerViewer extends BaseTreeViewer {
[9835] Fix | Delete
constructor(options) {
[9836] Fix | Delete
super(options);
[9837] Fix | Delete
this.eventBus._on("optionalcontentconfigchanged", evt => {
[9838] Fix | Delete
this.#updateLayers(evt.promise);
[9839] Fix | Delete
});
[9840] Fix | Delete
this.eventBus._on("resetlayers", () => {
[9841] Fix | Delete
this.#updateLayers();
[9842] Fix | Delete
});
[9843] Fix | Delete
this.eventBus._on("togglelayerstree", this._toggleAllTreeItems.bind(this));
[9844] Fix | Delete
}
[9845] Fix | Delete
reset() {
[9846] Fix | Delete
super.reset();
[9847] Fix | Delete
this._optionalContentConfig = null;
[9848] Fix | Delete
this._optionalContentHash = null;
[9849] Fix | Delete
}
[9850] Fix | Delete
_dispatchEvent(layersCount) {
[9851] Fix | Delete
this.eventBus.dispatch("layersloaded", {
[9852] Fix | Delete
source: this,
[9853] Fix | Delete
layersCount
[9854] Fix | Delete
});
[9855] Fix | Delete
}
[9856] Fix | Delete
_bindLink(element, {
[9857] Fix | Delete
groupId,
[9858] Fix | Delete
input
[9859] Fix | Delete
}) {
[9860] Fix | Delete
const setVisibility = () => {
[9861] Fix | Delete
this._optionalContentConfig.setVisibility(groupId, input.checked);
[9862] Fix | Delete
this._optionalContentHash = this._optionalContentConfig.getHash();
[9863] Fix | Delete
this.eventBus.dispatch("optionalcontentconfig", {
[9864] Fix | Delete
source: this,
[9865] Fix | Delete
promise: Promise.resolve(this._optionalContentConfig)
[9866] Fix | Delete
});
[9867] Fix | Delete
};
[9868] Fix | Delete
element.onclick = evt => {
[9869] Fix | Delete
if (evt.target === input) {
[9870] Fix | Delete
setVisibility();
[9871] Fix | Delete
return true;
[9872] Fix | Delete
} else if (evt.target !== element) {
[9873] Fix | Delete
return true;
[9874] Fix | Delete
}
[9875] Fix | Delete
input.checked = !input.checked;
[9876] Fix | Delete
setVisibility();
[9877] Fix | Delete
return false;
[9878] Fix | Delete
};
[9879] Fix | Delete
}
[9880] Fix | Delete
async _setNestedName(element, {
[9881] Fix | Delete
name = null
[9882] Fix | Delete
}) {
[9883] Fix | Delete
if (typeof name === "string") {
[9884] Fix | Delete
element.textContent = this._normalizeTextContent(name);
[9885] Fix | Delete
return;
[9886] Fix | Delete
}
[9887] Fix | Delete
element.textContent = await this._l10n.get("pdfjs-additional-layers");
[9888] Fix | Delete
element.style.fontStyle = "italic";
[9889] Fix | Delete
}
[9890] Fix | Delete
_addToggleButton(div, {
[9891] Fix | Delete
name = null
[9892] Fix | Delete
}) {
[9893] Fix | Delete
super._addToggleButton(div, name === null);
[9894] Fix | Delete
}
[9895] Fix | Delete
_toggleAllTreeItems() {
[9896] Fix | Delete
if (!this._optionalContentConfig) {
[9897] Fix | Delete
return;
[9898] Fix | Delete
}
[9899] Fix | Delete
super._toggleAllTreeItems();
[9900] Fix | Delete
}
[9901] Fix | Delete
render({
[9902] Fix | Delete
optionalContentConfig,
[9903] Fix | Delete
pdfDocument
[9904] Fix | Delete
}) {
[9905] Fix | Delete
if (this._optionalContentConfig) {
[9906] Fix | Delete
this.reset();
[9907] Fix | Delete
}
[9908] Fix | Delete
this._optionalContentConfig = optionalContentConfig || null;
[9909] Fix | Delete
this._pdfDocument = pdfDocument || null;
[9910] Fix | Delete
const groups = optionalContentConfig?.getOrder();
[9911] Fix | Delete
if (!groups) {
[9912] Fix | Delete
this._dispatchEvent(0);
[9913] Fix | Delete
return;
[9914] Fix | Delete
}
[9915] Fix | Delete
this._optionalContentHash = optionalContentConfig.getHash();
[9916] Fix | Delete
const fragment = document.createDocumentFragment(),
[9917] Fix | Delete
queue = [{
[9918] Fix | Delete
parent: fragment,
[9919] Fix | Delete
groups
[9920] Fix | Delete
}];
[9921] Fix | Delete
let layersCount = 0,
[9922] Fix | Delete
hasAnyNesting = false;
[9923] Fix | Delete
while (queue.length > 0) {
[9924] Fix | Delete
const levelData = queue.shift();
[9925] Fix | Delete
for (const groupId of levelData.groups) {
[9926] Fix | Delete
const div = document.createElement("div");
[9927] Fix | Delete
div.className = "treeItem";
[9928] Fix | Delete
const element = document.createElement("a");
[9929] Fix | Delete
div.append(element);
[9930] Fix | Delete
if (typeof groupId === "object") {
[9931] Fix | Delete
hasAnyNesting = true;
[9932] Fix | Delete
this._addToggleButton(div, groupId);
[9933] Fix | Delete
this._setNestedName(element, groupId);
[9934] Fix | Delete
const itemsDiv = document.createElement("div");
[9935] Fix | Delete
itemsDiv.className = "treeItems";
[9936] Fix | Delete
div.append(itemsDiv);
[9937] Fix | Delete
queue.push({
[9938] Fix | Delete
parent: itemsDiv,
[9939] Fix | Delete
groups: groupId.order
[9940] Fix | Delete
});
[9941] Fix | Delete
} else {
[9942] Fix | Delete
const group = optionalContentConfig.getGroup(groupId);
[9943] Fix | Delete
const input = document.createElement("input");
[9944] Fix | Delete
this._bindLink(element, {
[9945] Fix | Delete
groupId,
[9946] Fix | Delete
input
[9947] Fix | Delete
});
[9948] Fix | Delete
input.type = "checkbox";
[9949] Fix | Delete
input.checked = group.visible;
[9950] Fix | Delete
const label = document.createElement("label");
[9951] Fix | Delete
label.textContent = this._normalizeTextContent(group.name);
[9952] Fix | Delete
label.append(input);
[9953] Fix | Delete
element.append(label);
[9954] Fix | Delete
layersCount++;
[9955] Fix | Delete
}
[9956] Fix | Delete
levelData.parent.append(div);
[9957] Fix | Delete
}
[9958] Fix | Delete
}
[9959] Fix | Delete
this._finishRendering(fragment, layersCount, hasAnyNesting);
[9960] Fix | Delete
}
[9961] Fix | Delete
async #updateLayers(promise = null) {
[9962] Fix | Delete
if (!this._optionalContentConfig) {
[9963] Fix | Delete
return;
[9964] Fix | Delete
}
[9965] Fix | Delete
const pdfDocument = this._pdfDocument;
[9966] Fix | Delete
const optionalContentConfig = await (promise || pdfDocument.getOptionalContentConfig({
[9967] Fix | Delete
intent: "display"
[9968] Fix | Delete
}));
[9969] Fix | Delete
if (pdfDocument !== this._pdfDocument) {
[9970] Fix | Delete
return;
[9971] Fix | Delete
}
[9972] Fix | Delete
if (promise) {
[9973] Fix | Delete
if (optionalContentConfig.getHash() === this._optionalContentHash) {
[9974] Fix | Delete
return;
[9975] Fix | Delete
}
[9976] Fix | Delete
} else {
[9977] Fix | Delete
this.eventBus.dispatch("optionalcontentconfig", {
[9978] Fix | Delete
source: this,
[9979] Fix | Delete
promise: Promise.resolve(optionalContentConfig)
[9980] Fix | Delete
});
[9981] Fix | Delete
}
[9982] Fix | Delete
this.render({
[9983] Fix | Delete
optionalContentConfig,
[9984] Fix | Delete
pdfDocument: this._pdfDocument
[9985] Fix | Delete
});
[9986] Fix | Delete
}
[9987] Fix | Delete
}
[9988] Fix | Delete
[9989] Fix | Delete
;// CONCATENATED MODULE: ./web/pdf_outline_viewer.js
[9990] Fix | Delete
[9991] Fix | Delete
[9992] Fix | Delete
[9993] Fix | Delete
[9994] Fix | Delete
class PDFOutlineViewer extends BaseTreeViewer {
[9995] Fix | Delete
constructor(options) {
[9996] Fix | Delete
super(options);
[9997] Fix | Delete
this.linkService = options.linkService;
[9998] Fix | Delete
this.downloadManager = options.downloadManager;
[9999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function