@component-hook/pdf-canvas 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ var jo;
17
17
  function ec() {
18
18
  if (jo) return Vs;
19
19
  jo = 1;
20
- var a = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
20
+ var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
21
21
  function e(s, i, n) {
22
22
  var r = null;
23
23
  if (n !== void 0 && (r = "" + n), i.key !== void 0 && (r = "" + i.key), "key" in i) {
@@ -232,7 +232,7 @@ React keys must be passed directly to JSX without using spread:
232
232
  function d(E) {
233
233
  return typeof E == "object" && E !== null && E.$$typeof === g;
234
234
  }
235
- var f = Zl, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), I = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
235
+ var f = Zl, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), m = /* @__PURE__ */ Symbol.for("react.strict_mode"), v = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), S = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), T = /* @__PURE__ */ Symbol.for("react.suspense_list"), k = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), j = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), I = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, D = Array.isArray, z = console.createTask ? console.createTask : function() {
236
236
  return null;
237
237
  };
238
238
  f = {
@@ -9336,11 +9336,7 @@ class Ye {
9336
9336
  name: t,
9337
9337
  value: e
9338
9338
  }) {
9339
- switch (t) {
9340
- case "enableNewAltTextWhenAddingImage":
9341
- this.#b = e;
9342
- break;
9343
- }
9339
+ t === "enableNewAltTextWhenAddingImage" && (this.#b = e);
9344
9340
  }
9345
9341
  onPageChanging({
9346
9342
  pageNumber: t
@@ -13808,7 +13804,7 @@ class Of {
13808
13804
  return this.#t.has(t);
13809
13805
  }
13810
13806
  }
13811
- const _s = Symbol("INTERNAL");
13807
+ const _s = /* @__PURE__ */ Symbol("INTERNAL");
13812
13808
  class Df {
13813
13809
  #t = !1;
13814
13810
  #e = !1;
@@ -16349,7 +16345,7 @@ class ug {
16349
16345
  return this.#i.get(e) ?? null;
16350
16346
  }
16351
16347
  }
16352
- const qs = Symbol("INITIAL_DATA");
16348
+ const qs = /* @__PURE__ */ Symbol("INITIAL_DATA");
16353
16349
  class jl {
16354
16350
  #t = /* @__PURE__ */ Object.create(null);
16355
16351
  #e(t) {
@@ -22267,7 +22263,7 @@ async function Ug({ page: a, data: t, scale: e, password: s }, i) {
22267
22263
  if (Yl()) {
22268
22264
  const r = new Worker(new URL(
22269
22265
  /* @vite-ignore */
22270
- "" + new URL("assets/pdfjs.worker-DuXj-zBo.js", import.meta.url).href,
22266
+ "" + new URL("assets/pdfjs.worker-BHKxIhYa.js", import.meta.url).href,
22271
22267
  import.meta.url
22272
22268
  ), { type: "module" });
22273
22269
  return r.postMessage({ data: t, password: s, id: i, page: a, units: n, scale: e }), await new Promise((h) => {