@cling-se/widget 0.9.30 → 0.9.32
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.
- package/dist/{AddClientCallout-e63b3bc8.js → AddClientCallout-57195414.js} +5 -5
- package/dist/{AnswerModal-0fc36a99.js → AnswerModal-84115064.js} +47 -47
- package/dist/{AttachmentItem-7fcfe642.js → AttachmentItem-d5059568.js} +3 -3
- package/dist/{BaseDatePicker-3618f643.js → BaseDatePicker-0f2bbfe0.js} +2 -2
- package/dist/{BaseInput-1e53b776.js → BaseInput-09fa078c.js} +1 -1
- package/dist/{BaseUpload-2eea6112.js → BaseUpload-7ac7f0de.js} +2 -2
- package/dist/{BlockMedia-4f30336b.js → BlockMedia-35572b5a.js} +1 -1
- package/dist/{CCallout-3ea46d33.js → CCallout-f4a3000f.js} +2 -2
- package/dist/{CDropdownItem-301e3273.js → CDropdownItem-648b13e8.js} +1 -1
- package/dist/{CField-25e8b388.js → CField-c179740e.js} +1 -1
- package/dist/{CPhoneFormat-0eb4f8c1.js → CPhoneFormat-06cd312e.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-8b316fae.js → CSlider.vue_vue_type_style_index_0_lang-545e8e1a.js} +1 -1
- package/dist/{ClientAutocomplete-35cada3c.js → ClientAutocomplete-1aacab81.js} +2 -2
- package/dist/{ClientModal-c11543c6.js → ClientModal-62cfe454.js} +5 -5
- package/dist/{ColorPicker-5ca79d5e.js → ColorPicker-c9eadd63.js} +1 -1
- package/dist/{CompanyModal-648fce86.js → CompanyModal-1140af13.js} +3 -3
- package/dist/{ContentWrapper-70c4494a.js → ContentWrapper-5d7221c8.js} +13 -13
- package/dist/{CoverBlockSettings-cfdb6528.js → CoverBlockSettings-668eec29.js} +9 -9
- package/dist/{DocAnswer-b03f11d8.js → DocAnswer-978f1b34.js} +4 -4
- package/dist/{DocDetails-ffbd78f5.js → DocDetails-02ab49b6.js} +4 -4
- package/dist/{DocForm-0216b4bf.js → DocForm-25924bbc.js} +29 -29
- package/dist/{DocFormSend-8d6e051b.js → DocFormSend-666669ea.js} +19 -18
- package/dist/{DocLinks-8520a61d.js → DocLinks-1b3d8aa7.js} +2 -2
- package/dist/{DocModalBase-a61f7c10.js → DocModalBase-ed5f21ca.js} +1 -1
- package/dist/{DocPrint-3e8970bc.js → DocPrint-c8e7792f.js} +1 -1
- package/dist/{DocReceipt-5da67daf.js → DocReceipt-68bb30bd.js} +1 -1
- package/dist/{DocSendReminder-b2e096d4.js → DocSendReminder-1bb53aa6.js} +1 -1
- package/dist/{DocTextEditor-1c8197e2.js → DocTextEditor-baf911e4.js} +8 -8
- package/dist/{DocTimeline-1804ebb6.js → DocTimeline-e80b7d30.js} +1 -1
- package/dist/{DocumentClient-a0592efe.js → DocumentClient-e5674987.js} +7 -7
- package/dist/{DocumentLayout-dd904f22.js → DocumentLayout-bdb661ca.js} +340 -331
- package/dist/{DocumentLogotype-59b1549a.js → DocumentLogotype-b47e5d3b.js} +3 -3
- package/dist/{DocumentVoided-f6b8e4ff.js → DocumentVoided-4689a48a.js} +1 -1
- package/dist/{EmbedInput-c1393639.js → EmbedInput-4e9f9fdc.js} +2 -2
- package/dist/{EmbedSettings-f7451a3d.js → EmbedSettings-8e8e772e.js} +3 -3
- package/dist/{ErrorCallout-2973d65d.js → ErrorCallout-b48cecf9.js} +1 -1
- package/dist/{FilePreviewModal-e8e3d042.js → FilePreviewModal-5ae3179e.js} +5 -5
- package/dist/{Flag-c17cf658.js → Flag-f21c517c.js} +1 -1
- package/dist/{HeaderSettings-eb0a98b4.js → HeaderSettings-dadaba45.js} +15 -15
- package/dist/{ImageSelectModal-cab96401.js → ImageSelectModal-3079deaf.js} +8 -8
- package/dist/{ImageUploadWrapper-38e2afa8.js → ImageUploadWrapper-92389319.js} +2 -2
- package/dist/{Index-0bfac160.js → Index-0d9fc410.js} +6 -6
- package/dist/{Index-a280b4b2.js → Index-16e2d1e5.js} +4 -4
- package/dist/{Index-d01e898b.js → Index-18ee40ea.js} +41 -26
- package/dist/{Index-bc62c1f2.js → Index-1a6f1fe8.js} +9 -9
- package/dist/{Index-28ec6148.js → Index-21715b96.js} +2 -2
- package/dist/{Index-921eb9ba.js → Index-25240fbd.js} +2 -2
- package/dist/{Index-1d85df60.js → Index-3855ca38.js} +7 -7
- package/dist/{Index-d7bf1266.js → Index-3a7288be.js} +17 -17
- package/dist/{Index-a2dba1ec.js → Index-469db7d7.js} +4 -4
- package/dist/{Index-e0c5772a.js → Index-48e502c3.js} +4 -4
- package/dist/{Index-bf74adf8.js → Index-672648c7.js} +50 -23
- package/dist/{Index-0e100224.js → Index-6d2a08a5.js} +6 -6
- package/dist/{Index-e1f464ef.js → Index-83509fc5.js} +1 -1
- package/dist/{Index-fcef00d7.js → Index-85996f2f.js} +2 -2
- package/dist/{Index-ce33b807.js → Index-85b558a8.js} +6 -6
- package/dist/{Index-0f08ced2.js → Index-88aa3f7e.js} +4 -4
- package/dist/{Index-8cc33cc7.js → Index-93d6b687.js} +2 -2
- package/dist/{Index-a3b1e7de.js → Index-9794be3d.js} +5 -5
- package/dist/{Index-d9abc609.js → Index-a7d30625.js} +4 -4
- package/dist/{Index-f4b486da.js → Index-a9cfa68b.js} +5 -5
- package/dist/{Index-19f50205.js → Index-aa9388ac.js} +4 -4
- package/dist/{Index-d256a1d6.js → Index-aac9dd15.js} +9 -9
- package/dist/{Index-714600fc.js → Index-ad7770f7.js} +4 -4
- package/dist/{Index-9c28cb53.js → Index-adabe428.js} +2 -2
- package/dist/{Index-d364dae0.js → Index-b9535d28.js} +14 -14
- package/dist/{Index-d2afa240.js → Index-c3f4a4b8.js} +3 -3
- package/dist/{Index-c9b85813.js → Index-c4184a33.js} +2 -2
- package/dist/{Index-da40e434.js → Index-c704e669.js} +10 -10
- package/dist/{Index-5c3cb151.js → Index-d0cf8cd4.js} +2 -2
- package/dist/{Index-30c1d44e.js → Index-da28cb69.js} +4 -4
- package/dist/{Index-4e60e980.js → Index-e6b7d574.js} +23 -23
- package/dist/{Index-07da4308.js → Index-ea0c9b42.js} +1 -1
- package/dist/{Index-6bb8e424.js → Index-ed57f450.js} +6 -6
- package/dist/{Index-46e59685.js → Index-ef0a8d46.js} +2 -2
- package/dist/{InputToggleRow-e28f45a0.js → InputToggleRow-67d34fe0.js} +1 -1
- package/dist/{IsPremiumPreStep-e1d54d22.js → IsPremiumPreStep-f1c4e0f9.js} +77 -75
- package/dist/{ManualPopover-64b4c430.js → ManualPopover-4641e4de.js} +1 -1
- package/dist/{MediaWrapper-240bb3b2.js → MediaWrapper-3dbdd7b2.js} +3 -3
- package/dist/{NotBindingText-2148a45c.js → NotBindingText-3c7f4d55.js} +2 -2
- package/dist/{PackageGroup-92ec85c9.js → PackageGroup-c935a59b.js} +14 -14
- package/dist/{PdfTerms-cf3e0ff3.js → PdfTerms-6afcf887.js} +15 -14
- package/dist/PdfViewer-f6d4d126.js +251 -0
- package/dist/{PlainHtml-98d14d49.js → PlainHtml-41dde027.js} +1 -1
- package/dist/{PriceHeader-2f97908c.js → PriceHeader-84ad2639.js} +13 -13
- package/dist/{SearchApi-3f0ee279.js → SearchApi-a8d58e7b.js} +2 -2
- package/dist/{Setup-6ca34742.js → Setup-86baa232.js} +1 -1
- package/dist/{TermsSettings-244144ce.js → TermsSettings-158e2ba7.js} +7 -7
- package/dist/{ThemeColorRow-8297bac6.js → ThemeColorRow-af9f1f9f.js} +3 -3
- package/dist/{ToggleBinding-801b881c.js → ToggleBinding-d80c5b56.js} +3 -3
- package/dist/{UploadModal-143d3385.js → UploadModal-64705993.js} +3 -3
- package/dist/{VideoPlayerInput-7cbe00d0.js → VideoPlayerInput-f001a306.js} +3 -3
- package/dist/{VideoPlayerSettings-055bfb63.js → VideoPlayerSettings-be3a2a08.js} +4 -4
- package/dist/{VideoSelectModal-82769419.js → VideoSelectModal-325ca974.js} +8 -8
- package/dist/{answerDocumentMixin-0eb824aa.js → answerDocumentMixin-7b4bd6d8.js} +3 -3
- package/dist/{debounce-35659385.js → debounce-2da37622.js} +8 -8
- package/dist/{focusDrawerMixin-57a74f04.js → focusDrawerMixin-2593f43c.js} +1 -1
- package/dist/{formComponentsInstall-53f4342a.js → formComponentsInstall-05dc0275.js} +12 -12
- package/dist/{formDrawerState-c089ffac.js → formDrawerState-1279a667.js} +1 -1
- package/dist/{formValidationMixin-08f0a439.js → formValidationMixin-b354db95.js} +1 -1
- package/dist/{index-317dfeee.js → index-05ff66b4.js} +13 -13
- package/dist/{index-497ae925.js → index-20e88d5e.js} +3 -3
- package/dist/{index-a37004d7.js → index-88e32902.js} +1 -1
- package/dist/{index-736d30ee.js → index-aa52e2dc.js} +5 -5
- package/dist/{index-e88b85e7.js → index-b9ea34e7.js} +1 -1
- package/dist/{index-17a2bb54.js → index-c30544b6.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +97 -95
- package/dist/{main-40ffafe1.js → main-5fada315.js} +50 -75
- package/dist/{mapFormMixin-5472d70c.js → mapFormMixin-881590dc.js} +1 -1
- package/dist/{publicSenderState-7ee4c697.js → publicSenderState-b7a68e31.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-4a418273.js → throttle-14a46b90.js} +2 -2
- package/dist/{tinycolor-2370293d.js → tinycolor-bcf90a67.js} +1 -1
- package/dist/{tippy.esm-f79d2d2e.js → tippy.esm-ece926d8.js} +5 -5
- package/dist/{utils-c72c79a9.js → utils-482054e4.js} +1 -1
- package/dist/{vuedraggable.umd-8bca15d0.js → vuedraggable.umd-0883a75f.js} +1 -1
- package/package.json +1 -1
- package/dist/PdfViewer-f2af7ba4.js +0 -245
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as n, k as l } from "./main-
|
|
2
|
-
import { a as o } from "./debounce-
|
|
1
|
+
import { j as n, k as l } from "./main-5fada315.js";
|
|
2
|
+
import { a as o } from "./debounce-2da37622.js";
|
|
3
3
|
var g = o, c = l, f = "Expected a function";
|
|
4
4
|
function u(a, i, t) {
|
|
5
5
|
var r = !0, e = !0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as mr } from "./ColorPicker-
|
|
2
|
-
import { F as hr } from "./DocumentLayout-
|
|
3
|
-
import { C as gr, a as yr } from "./CDropdownItem-
|
|
4
|
-
import { n as Wt,
|
|
5
|
-
import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { C as mr } from "./ColorPicker-c9eadd63.js";
|
|
2
|
+
import { F as hr } from "./DocumentLayout-bdb661ca.js";
|
|
3
|
+
import { C as gr, a as yr } from "./CDropdownItem-648b13e8.js";
|
|
4
|
+
import { n as Wt, t as br, a$ as Ct } from "./main-5fada315.js";
|
|
5
|
+
import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-545e8e1a.js";
|
|
6
6
|
const xr = {
|
|
7
7
|
AED: "United Arab Emirates Dirham",
|
|
8
8
|
AFN: "Afghan Afghani",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as rn, a0 as on, j as We, a1 as an, a2 as sn, a3 as ln, a4 as un, a5 as fn, a6 as cn, a7 as dn, Z as hn } from "./main-
|
|
1
|
+
import { $ as rn, a0 as on, j as We, a1 as an, a2 as sn, a3 as ln, a4 as un, a5 as fn, a6 as cn, a7 as dn, Z as hn } from "./main-5fada315.js";
|
|
2
2
|
var pn = rn;
|
|
3
3
|
function gn(o) {
|
|
4
4
|
return pn(o) ? void 0 : o;
|
package/package.json
CHANGED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { n as u, Q as g } from "./main-40ffafe1.js";
|
|
2
|
-
import { e as d } from "./dom-962579a6.js";
|
|
3
|
-
import { W as m } from "./DocumentLayout-dd904f22.js";
|
|
4
|
-
let o, l, f, c, p;
|
|
5
|
-
function w(e) {
|
|
6
|
-
return typeof e == "object" && e !== null && e.__PDFDocumentLoadingTask === !0;
|
|
7
|
-
}
|
|
8
|
-
const _ = {
|
|
9
|
-
name: "PdfPage",
|
|
10
|
-
props: {
|
|
11
|
-
src: {
|
|
12
|
-
type: [String, Object, Promise],
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
page: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 1
|
|
18
|
-
},
|
|
19
|
-
rotate: {
|
|
20
|
-
type: Number,
|
|
21
|
-
default: 0
|
|
22
|
-
},
|
|
23
|
-
scale: {
|
|
24
|
-
type: [Number, String],
|
|
25
|
-
default: "page-width"
|
|
26
|
-
},
|
|
27
|
-
resize: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !0
|
|
30
|
-
},
|
|
31
|
-
text: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
pdfLoadingTask: {
|
|
36
|
-
type: Promise,
|
|
37
|
-
required: !0
|
|
38
|
-
},
|
|
39
|
-
containerClass: {
|
|
40
|
-
type: [Array, String],
|
|
41
|
-
default: ""
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
components: {
|
|
45
|
-
WithDimensions: m
|
|
46
|
-
},
|
|
47
|
-
data() {
|
|
48
|
-
return {
|
|
49
|
-
internalSrc: this.src,
|
|
50
|
-
pdf: null,
|
|
51
|
-
pdfViewer: null,
|
|
52
|
-
loading: !0
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
watch: {
|
|
56
|
-
pdf(e) {
|
|
57
|
-
const t = e.pdfInfo || e._pdfInfo;
|
|
58
|
-
this.$emit("numpages", t.numPages);
|
|
59
|
-
},
|
|
60
|
-
page(e) {
|
|
61
|
-
this.pdf.getPage(e).then((t) => {
|
|
62
|
-
this.pdfViewer.setPdfPage(t), this.pdfViewer.draw();
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
scale(e) {
|
|
66
|
-
this.drawScaled(e);
|
|
67
|
-
},
|
|
68
|
-
rotate(e) {
|
|
69
|
-
this.pdfViewer && (this.pdfViewer.update({ scale: this.scale, rotation: e }), this.pdfViewer.draw());
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
mounted() {
|
|
73
|
-
o = window.pdfjsViewer.DefaultTextLayerFactory, l = window.pdfjsViewer.PDFFindController, f = window.pdfjsViewer.PDFLinkService, c = window.pdfjsViewer.PDFPageView, p = window.pdfjsViewer.EventBus, this.init();
|
|
74
|
-
},
|
|
75
|
-
beforeDestroy() {
|
|
76
|
-
this.pdfViewer && (this.pdfViewer.destroy(), this.pdfViewer = null);
|
|
77
|
-
},
|
|
78
|
-
methods: {
|
|
79
|
-
init() {
|
|
80
|
-
w(this.internalSrc) || (this.internalSrc = this.pdfLoadingTask, this.$emit("loading", !0));
|
|
81
|
-
const e = this.$refs.container, t = new p();
|
|
82
|
-
t.on("pagerendered", (i) => {
|
|
83
|
-
this.$emit("pagerendered", i);
|
|
84
|
-
}), this.pdfLinkService = new f({
|
|
85
|
-
eventBus: t,
|
|
86
|
-
externalLinkTarget: 2
|
|
87
|
-
}), this.pdfFindController = new l({
|
|
88
|
-
eventBus: t,
|
|
89
|
-
linkService: this.pdfLinkService
|
|
90
|
-
});
|
|
91
|
-
let s;
|
|
92
|
-
this.text && (s = new o()), this.internalSrc.then((i) => (this.pdf = i, i.getPage(this.page))).then((i) => {
|
|
93
|
-
this.pdfViewer = new c({
|
|
94
|
-
container: e,
|
|
95
|
-
id: this.page,
|
|
96
|
-
scale: 1,
|
|
97
|
-
defaultViewport: i.getViewport({
|
|
98
|
-
scale: 1
|
|
99
|
-
}),
|
|
100
|
-
eventBus: t,
|
|
101
|
-
textLayerFactory: s
|
|
102
|
-
}), this.pdfViewer.setPdfPage(i);
|
|
103
|
-
const r = {
|
|
104
|
-
scrollPageIntoView: (h) => {
|
|
105
|
-
this.$emit("link-clicked", h);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
return this.pdfLinkService.setDocument(this.pdf), this.pdfLinkService.setViewer(r), this.pdfFindController.setDocument(this.pdf), this.drawScaled(this.scale);
|
|
109
|
-
}).catch((i) => {
|
|
110
|
-
this.$emit("error", i), this.loading = !1, this.$emit("loading", !1);
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
calculateScale(e = -1, t = -1) {
|
|
114
|
-
return this.pdfViewer.update({ scale: 1, rotation: this.rotate }), e === -1 && t === -1 && (e = this.$refs.container.offsetWidth), e / this.pdfViewer.viewport.width;
|
|
115
|
-
},
|
|
116
|
-
calculateScaleHeight() {
|
|
117
|
-
this.pdfViewer.update({ scale: 1, rotation: this.rotate });
|
|
118
|
-
var e = this.$refs.container.offsetHeight, t = this.$refs.container.parentElement.parentElement;
|
|
119
|
-
return t.offsetHeight / e;
|
|
120
|
-
},
|
|
121
|
-
async drawScaled(e) {
|
|
122
|
-
this.pdfViewer && (e === "page-width" ? (e = this.calculateScale(), this.$emit("update:scale", e)) : e === "page-height" && (e = this.calculateScaleHeight(), this.$emit("update:scale", e)), this.pdfViewer.update({ scale: e, rotation: this.rotate }), await this.pdfViewer.draw(), this.text && (this.pdfViewer.textLayer.findController = this.pdfFindController), this.loading = !1, this.$emit("loading", !1));
|
|
123
|
-
},
|
|
124
|
-
resizeScale() {
|
|
125
|
-
this.resize && this.drawScaled("page-width");
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var P = function() {
|
|
130
|
-
var t = this, s = t._self._c;
|
|
131
|
-
return s("div", [t.loading ? t._t("loading") : t._e(), s("WithDimensions", { on: { resize: t.resizeScale } }, [s("div", { ref: "container", staticClass: "pdfViewer", class: t.containerClass })])], 2);
|
|
132
|
-
}, v = [], y = /* @__PURE__ */ u(
|
|
133
|
-
_,
|
|
134
|
-
P,
|
|
135
|
-
v,
|
|
136
|
-
!1,
|
|
137
|
-
null,
|
|
138
|
-
null,
|
|
139
|
-
null,
|
|
140
|
-
null
|
|
141
|
-
);
|
|
142
|
-
const V = y.exports, a = new g();
|
|
143
|
-
function k(e, t) {
|
|
144
|
-
let s;
|
|
145
|
-
if (typeof e == "string")
|
|
146
|
-
s = {
|
|
147
|
-
url: e
|
|
148
|
-
};
|
|
149
|
-
else if (typeof e == "object" && e !== null)
|
|
150
|
-
s = { ...e };
|
|
151
|
-
else
|
|
152
|
-
throw new TypeError("invalid src type");
|
|
153
|
-
const i = window.pdfjsLib.getDocument(s).promise;
|
|
154
|
-
return i.__PDFDocumentLoadingTask = !0, t && t.onPassword && (i.onPassword = t.onPassword), t && t.onProgress && (i.onProgress = t.onProgress), i;
|
|
155
|
-
}
|
|
156
|
-
const n = {
|
|
157
|
-
add(e) {
|
|
158
|
-
a.trigger("add", e);
|
|
159
|
-
},
|
|
160
|
-
remove(e) {
|
|
161
|
-
a.trigger("remove", e);
|
|
162
|
-
},
|
|
163
|
-
onAdd(e) {
|
|
164
|
-
a.on("add", e);
|
|
165
|
-
},
|
|
166
|
-
onRemove(e) {
|
|
167
|
-
a.on("remove", e);
|
|
168
|
-
}
|
|
169
|
-
}, L = {
|
|
170
|
-
props: {
|
|
171
|
-
src: {
|
|
172
|
-
type: String,
|
|
173
|
-
default: null
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
components: {
|
|
177
|
-
VuePdf: V
|
|
178
|
-
},
|
|
179
|
-
inject: {
|
|
180
|
-
isPdf: {
|
|
181
|
-
default: !1
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
data() {
|
|
185
|
-
return {
|
|
186
|
-
numPages: void 0,
|
|
187
|
-
pdfLoadingTask: null,
|
|
188
|
-
hasLoadedScripts: !1,
|
|
189
|
-
loading: !1,
|
|
190
|
-
pdfRenderBus: n
|
|
191
|
-
};
|
|
192
|
-
},
|
|
193
|
-
created() {
|
|
194
|
-
n.add(this._uid);
|
|
195
|
-
},
|
|
196
|
-
watch: {
|
|
197
|
-
src: {
|
|
198
|
-
immediate: !0,
|
|
199
|
-
async handler(e) {
|
|
200
|
-
this.hasLoadedScripts || (await d(
|
|
201
|
-
"https://unpkg.com/pdfjs-dist@3.0.279/build/pdf.min.js"
|
|
202
|
-
), await d(
|
|
203
|
-
"https://unpkg.com/pdfjs-dist@3.0.279/web/pdf_viewer.js"
|
|
204
|
-
), window.pdfjsLib.GlobalWorkerOptions.workerSrc = "https://unpkg.com/pdfjs-dist@3.0.279/build/pdf.worker.min.js", this.hasLoadedScripts = !0), this.setPdf(e);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
methods: {
|
|
209
|
-
createLoadingTask: k,
|
|
210
|
-
async setPdf(e) {
|
|
211
|
-
e && (this.loading = !0, this.pdfLoadingTask = this.createLoadingTask(e), this.$nextTick(() => {
|
|
212
|
-
this.pdfLoadingTask.then((t) => {
|
|
213
|
-
this.loading = !1, this.numPages = t.numPages, this.$emit("numPages", t.numPages), this.$emit("rendered"), n.remove(this._uid);
|
|
214
|
-
});
|
|
215
|
-
}));
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
var $ = function() {
|
|
220
|
-
var t = this, s = t._self._c;
|
|
221
|
-
return s("div", { key: t.src }, [t.loading ? s("div", { staticClass: "mb-4 border border-gray-100 bg-gray-50 aspect-[210/297] grid place-items-center" }, [s("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1) : t._e(), t._l(t.numPages, function(i) {
|
|
222
|
-
return s("VuePdf", t._b({ key: i, ref: "vuePdf", refInFor: !0, attrs: { page: i, "container-class": t.isPdf ? "" : "mb-4 shadow-[0_2px_4px_hsla(0,0%,0%,0.25)]" }, on: { "hook:created": function(r) {
|
|
223
|
-
return t.pdfRenderBus.add(`${t._uid}-${i}`);
|
|
224
|
-
}, loading: (r) => r ? null : t.pdfRenderBus.remove(`${t._uid}-${i}`) } }, "VuePdf", {
|
|
225
|
-
...t.$attrs,
|
|
226
|
-
...t.$props,
|
|
227
|
-
pdfLoadingTask: t.pdfLoadingTask
|
|
228
|
-
}, !1), [t._t("loading", function() {
|
|
229
|
-
return [s("div", { staticClass: "mb-4 border border-gray-100 bg-gray-50 aspect-[210/297] grid place-items-center", attrs: { slot: "loading" }, slot: "loading" }, [s("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1)];
|
|
230
|
-
})], 2);
|
|
231
|
-
})], 2);
|
|
232
|
-
}, S = [], b = /* @__PURE__ */ u(
|
|
233
|
-
L,
|
|
234
|
-
$,
|
|
235
|
-
S,
|
|
236
|
-
!1,
|
|
237
|
-
null,
|
|
238
|
-
null,
|
|
239
|
-
null,
|
|
240
|
-
null
|
|
241
|
-
);
|
|
242
|
-
const T = b.exports;
|
|
243
|
-
export {
|
|
244
|
-
T as V
|
|
245
|
-
};
|