file-viewer3 1.0.1 → 1.0.5

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Ee, ref as Ve, watch as yt, nextTick as wt, onMounted as Fe, onUnmounted as Me, openBlock as ft, createElementBlock as St, renderSlot as Ye, computed as We, createBlock as Xe, unref as Tt, withCtx as qe, Fragment as He, renderList as Ue } from "vue";
2
- import { _ as Be } from "./index-59c602ca.mjs";
2
+ import { _ as Be } from "./index.js";
3
3
  /*!
4
4
  * Viewer.js v1.11.3
5
5
  * https://fengyuanchen.github.io/viewerjs
@@ -2,7 +2,7 @@ var Y = Object.defineProperty;
2
2
  var ee = (o, n, t) => n in o ? Y(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
3
3
  var O = (o, n, t) => (ee(o, typeof n != "symbol" ? n + "" : n, t), t);
4
4
  import { defineComponent as te, computed as ne, openBlock as ie, createElementBlock as se, unref as re } from "vue";
5
- import { _ as le } from "./index-59c602ca.mjs";
5
+ import { _ as le } from "./index.js";
6
6
  function F() {
7
7
  return {
8
8
  async: !1,
@@ -17,9 +17,10 @@ var Ue = (W, E, l) => (Fr(W, E, "read from private field"), l ? l.call(W) : E.ge
17
17
  }
18
18
  });
19
19
  import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode, pushScopeId, popScopeId } from "vue";
20
- import { a as getAugmentedNamespace, c as commonjsGlobal } from "./_commonjsHelpers-92157f1b.mjs";
21
- import { c as commonjsRequire } from "./_commonjs-dynamic-modules-bed80856.mjs";
22
- import { _ as _export_sfc } from "./index-59c602ca.mjs";
20
+ import { a as getAugmentedNamespace, c as commonjsGlobal } from "./_commonjsHelpers.js";
21
+ import { c as commonjsRequire } from "./_commonjs-dynamic-modules.js";
22
+ import { r as refWorker } from "./worker-ref.js";
23
+ import { _ as _export_sfc } from "./index.js";
23
24
  var pdfExports$1 = {}, pdf$1 = {
24
25
  get exports() {
25
26
  return pdfExports$1;
@@ -21566,10 +21567,11 @@ var pdfExports = requirePdf(), pdf_viewerExports = {}, pdf_viewer = {
21566
21567
  })()
21567
21568
  ));
21568
21569
  })(pdf_viewer);
21569
- function WorkerWrapper() {
21570
- return new Worker("" + new URL("assets/pdf.worker-909112bf.js", import.meta.url).href);
21571
- }
21572
- const pdf = "", _withScopeId = (W) => (pushScopeId("data-v-4396b257"), W = W(), popScopeId(), W), _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
21570
+ const pdf = "", PDFWorker = {
21571
+ create() {
21572
+ return refWorker("pptx.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pdf.worker.js", import.meta.url).href, self.location), { type: "module" }));
21573
+ }
21574
+ }, _withScopeId = (W) => (pushScopeId("data-v-47ad7fe7"), W = W(), popScopeId(), W), _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
21573
21575
  id: "viewer",
21574
21576
  class: "pdfViewer"
21575
21577
  }, null, -1)), _hoisted_4 = [
@@ -21588,7 +21590,7 @@ const pdf = "", _withScopeId = (W) => (pushScopeId("data-v-4396b257"), W = W(),
21588
21590
  //pdf放大系数
21589
21591
  pdf_scale: 1
21590
21592
  };
21591
- !pdfExports.GlobalWorkerOptions.workerPort && typeof window < "u" && "Worker" in window && (pdfExports.GlobalWorkerOptions.workerPort = new WorkerWrapper()), (() => {
21593
+ !pdfExports.GlobalWorkerOptions.workerPort && typeof window < "u" && "Worker" in window && (pdfExports.GlobalWorkerOptions.workerPort = PDFWorker.create()), (() => {
21592
21594
  async function k() {
21593
21595
  if (!l.value)
21594
21596
  return;
@@ -21649,7 +21651,7 @@ const pdf = "", _withScopeId = (W) => (pushScopeId("data-v-4396b257"), W = W(),
21649
21651
  }, _hoisted_4, 512)
21650
21652
  ]));
21651
21653
  }
21652
- }), PdfView_vue_vue_type_style_index_0_scoped_4396b257_lang = "", PdfView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4396b257"]]);
21654
+ }), PdfView_vue_vue_type_style_index_0_scoped_47ad7fe7_lang = "", PdfView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-47ad7fe7"]]);
21653
21655
  export {
21654
21656
  PdfView as default
21655
21657
  };