@cling-se/widget 0.17.0 → 1.0.0-beta.2
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-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { u as c, x as r, $ as i, n as _ } from "./main-BgzLHIoo.js";
|
|
2
|
-
import { V as l } from "./PdfViewer-C0lDpjte.js";
|
|
3
|
-
const f = /* @__PURE__ */ c({
|
|
4
|
-
__name: "PdfTerms",
|
|
5
|
-
props: {
|
|
6
|
-
text: null,
|
|
7
|
-
file: null
|
|
8
|
-
},
|
|
9
|
-
setup(n) {
|
|
10
|
-
const t = n, s = r(() => t.text), e = r(() => {
|
|
11
|
-
var o;
|
|
12
|
-
return (o = t.file) == null ? void 0 : o.url;
|
|
13
|
-
}), a = r(() => i.t("_common:terms.general"));
|
|
14
|
-
return { __sfc: !0, props: t, text: s, src: e, terms: a, VuePdf: l };
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var m = function() {
|
|
18
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
19
|
-
return e.text ? s("div", { staticClass: "root" }, [s("div", { staticClass: "root-title page-break" }, [t._v(" " + t._s(e.terms) + " ")]), s("div", { staticClass: "term-text quill-format", domProps: { innerHTML: t._s(e.text) } })]) : t.file ? s("div", [s(e.VuePdf, { staticClass: "pdf-container", attrs: { src: e.src, "doc-file-path": e.src } })], 1) : s("div");
|
|
20
|
-
}, p = [], d = /* @__PURE__ */ _(
|
|
21
|
-
f,
|
|
22
|
-
m,
|
|
23
|
-
p,
|
|
24
|
-
!1,
|
|
25
|
-
null,
|
|
26
|
-
"b82e7989"
|
|
27
|
-
);
|
|
28
|
-
const x = d.exports;
|
|
29
|
-
export {
|
|
30
|
-
x as default
|
|
31
|
-
};
|
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
import { n as l, c as n, W as g } from "./main-BgzLHIoo.js";
|
|
2
|
-
import { e as d } from "./dom-CWsqMElk.js";
|
|
3
|
-
import { W as m } from "./DocumentLayout-Dvr4zgyF.js";
|
|
4
|
-
import { w as h } from "./CDropdownItem-CaoSQX6X.js";
|
|
5
|
-
let c, u, f, p;
|
|
6
|
-
function w(a) {
|
|
7
|
-
return typeof a == "object" && a !== null && a.__PDFDocumentLoadingTask === !0;
|
|
8
|
-
}
|
|
9
|
-
const b = {
|
|
10
|
-
name: "PdfPage",
|
|
11
|
-
components: {
|
|
12
|
-
WithDimensions: m
|
|
13
|
-
},
|
|
14
|
-
props: {
|
|
15
|
-
src: {
|
|
16
|
-
type: [String, Object, Promise],
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
page: {
|
|
20
|
-
type: Number,
|
|
21
|
-
default: 1
|
|
22
|
-
},
|
|
23
|
-
rotate: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: 0
|
|
26
|
-
},
|
|
27
|
-
scale: {
|
|
28
|
-
type: [Number, String],
|
|
29
|
-
default: "page-width"
|
|
30
|
-
},
|
|
31
|
-
resize: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
annotation: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !0
|
|
38
|
-
},
|
|
39
|
-
text: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !0
|
|
42
|
-
},
|
|
43
|
-
pdfLoadingTask: {
|
|
44
|
-
type: Promise,
|
|
45
|
-
required: !0
|
|
46
|
-
},
|
|
47
|
-
containerClass: {
|
|
48
|
-
type: [Array, String],
|
|
49
|
-
default: ""
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
internalSrc: this.src,
|
|
55
|
-
pdf: null,
|
|
56
|
-
pdfViewer: null,
|
|
57
|
-
loading: !0
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
watch: {
|
|
61
|
-
pdf(a) {
|
|
62
|
-
const e = a.pdfInfo || a._pdfInfo;
|
|
63
|
-
this.$emit("numpages", e.numPages);
|
|
64
|
-
},
|
|
65
|
-
page(a) {
|
|
66
|
-
this.pdf.getPage(a).then((e) => {
|
|
67
|
-
this.pdfViewer.setPdfPage(e), this.pdfViewer.draw();
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
scale(a) {
|
|
71
|
-
this.drawScaled(a);
|
|
72
|
-
},
|
|
73
|
-
rotate(a) {
|
|
74
|
-
this.pdfViewer && (this.pdfViewer.update({ scale: this.scale, rotation: a }), this.pdfViewer.draw());
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
mounted() {
|
|
78
|
-
c = window.pdfjsViewer.PDFFindController, u = window.pdfjsViewer.PDFLinkService, f = window.pdfjsViewer.PDFPageView, p = window.pdfjsViewer.EventBus, this.init();
|
|
79
|
-
},
|
|
80
|
-
beforeDestroy() {
|
|
81
|
-
this.pdfViewer && (this.pdfViewer.destroy(), this.pdfViewer = null);
|
|
82
|
-
},
|
|
83
|
-
methods: {
|
|
84
|
-
init() {
|
|
85
|
-
w(this.internalSrc) || (this.internalSrc = this.pdfLoadingTask, this.$emit("loading", !0));
|
|
86
|
-
const a = this.$refs.container, e = new p();
|
|
87
|
-
e.on("pagerendered", (t) => {
|
|
88
|
-
this.$emit("pagerendered", t);
|
|
89
|
-
}), this.pdfLinkService = new u({
|
|
90
|
-
eventBus: e,
|
|
91
|
-
externalLinkTarget: 2
|
|
92
|
-
}), this.pdfFindController = new c({
|
|
93
|
-
eventBus: e,
|
|
94
|
-
linkService: this.pdfLinkService
|
|
95
|
-
}), this.internalSrc.then((t) => (this.pdf = t, t.getPage(this.page))).then((t) => {
|
|
96
|
-
this.pdfViewer = new f({
|
|
97
|
-
container: a,
|
|
98
|
-
id: this.page,
|
|
99
|
-
scale: 1,
|
|
100
|
-
defaultViewport: t.getViewport({
|
|
101
|
-
scale: 1
|
|
102
|
-
}),
|
|
103
|
-
eventBus: e,
|
|
104
|
-
textLayerMode: this.text ? 1 : 0,
|
|
105
|
-
// DISABLE: 0, ENABLE: 1
|
|
106
|
-
annotationMode: this.annotation ? 1 : 0
|
|
107
|
-
// DISABLE: 0, ENABLE: 1, ENABLE_FORMS: 2, ENABLE_STORAGE: 3
|
|
108
|
-
}), this.pdfViewer.setPdfPage(t);
|
|
109
|
-
const s = {
|
|
110
|
-
scrollPageIntoView: (i) => {
|
|
111
|
-
this.$emit("link-clicked", i);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
return this.pdfLinkService.setDocument(this.pdf), this.pdfLinkService.setViewer(s), this.pdfFindController.setDocument(this.pdf), this.drawScaled(this.scale);
|
|
115
|
-
}).catch((t) => {
|
|
116
|
-
this.$emit("error", t), this.loading = !1, this.$emit("loading", !1);
|
|
117
|
-
});
|
|
118
|
-
},
|
|
119
|
-
calculateScale(a = -1, e = -1) {
|
|
120
|
-
return this.pdfViewer.update({ scale: 1, rotation: this.rotate }), a === -1 && e === -1 && (a = this.$refs.container.offsetWidth), a / this.pdfViewer.viewport.width;
|
|
121
|
-
},
|
|
122
|
-
calculateScaleHeight() {
|
|
123
|
-
this.pdfViewer.update({ scale: 1, rotation: this.rotate });
|
|
124
|
-
var a = this.$refs.container.offsetHeight, e = this.$refs.container.parentElement.parentElement;
|
|
125
|
-
return e.offsetHeight / a;
|
|
126
|
-
},
|
|
127
|
-
async drawScaled(a) {
|
|
128
|
-
this.pdfViewer && (a === "page-width" ? (a = this.calculateScale(), this.$emit("update:scale", a)) : a === "page-height" && (a = this.calculateScaleHeight(), this.$emit("update:scale", a)), this.pdfViewer.update({ scale: a, rotation: this.rotate }), await this.pdfViewer.draw(), this.loading = !1, this.$emit("loading", !1));
|
|
129
|
-
},
|
|
130
|
-
resizeScale() {
|
|
131
|
-
this.resize && this.drawScaled("page-width");
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
var y = function() {
|
|
136
|
-
var e = this, t = e._self._c;
|
|
137
|
-
return t("div", [e.loading ? e._t("loading") : e._e(), t("div", { ref: "container", staticClass: "pdfViewer tracking-normal", class: e.containerClass }), t("WithDimensions", { on: { resize: e.resizeScale } }, [t("div", { staticClass: "w-full" })])], 2);
|
|
138
|
-
}, v = [], P = /* @__PURE__ */ l(
|
|
139
|
-
b,
|
|
140
|
-
y,
|
|
141
|
-
v,
|
|
142
|
-
!1,
|
|
143
|
-
null,
|
|
144
|
-
null
|
|
145
|
-
);
|
|
146
|
-
const _ = P.exports, k = {
|
|
147
|
-
name: "PDFToolbar",
|
|
148
|
-
mixins: [h],
|
|
149
|
-
props: {
|
|
150
|
-
currentPage: {
|
|
151
|
-
type: Number,
|
|
152
|
-
default: 0
|
|
153
|
-
},
|
|
154
|
-
numPages: {
|
|
155
|
-
type: Number,
|
|
156
|
-
default: 0
|
|
157
|
-
},
|
|
158
|
-
scale: {
|
|
159
|
-
type: [Number, String],
|
|
160
|
-
default: "page-width"
|
|
161
|
-
},
|
|
162
|
-
autoZoom: {
|
|
163
|
-
type: Boolean,
|
|
164
|
-
default: !0
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
data() {
|
|
168
|
-
return {
|
|
169
|
-
compactExpand: !1
|
|
170
|
-
};
|
|
171
|
-
},
|
|
172
|
-
computed: {
|
|
173
|
-
formattedZoom() {
|
|
174
|
-
return this.autoZoom ? "Auto" : Number.parseInt(this.scale * 100) + "%";
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
methods: {
|
|
178
|
-
updateZoom(a) {
|
|
179
|
-
this.$emit("update:scale", a), this.$emit("update:auto-zoom", a === "page-width");
|
|
180
|
-
},
|
|
181
|
-
onManualZoom(a) {
|
|
182
|
-
var i;
|
|
183
|
-
let e = ((i = a == null ? void 0 : a.target) == null ? void 0 : i.value) || "";
|
|
184
|
-
if (e === "Auto")
|
|
185
|
-
return;
|
|
186
|
-
e.endsWith("%") && (e = e.slice(0, -1));
|
|
187
|
-
const t = Number.parseFloat(e);
|
|
188
|
-
let s = 1;
|
|
189
|
-
Number.isNaN(t) || (s = t / 100, s < 0 && (s = 0), s > 5 && (s = 5)), this.updateZoom(s);
|
|
190
|
-
},
|
|
191
|
-
navigateToPage(a) {
|
|
192
|
-
var t, s;
|
|
193
|
-
let e = ((t = a == null ? void 0 : a.target) == null ? void 0 : t.value) || "";
|
|
194
|
-
e = Number.parseInt(e), Number.isNaN(e) && (e = this.currentPage), e < 1 && (e = 1), e > this.numPages && (e = this.numPages), e === this.currentPage && typeof ((s = a == null ? void 0 : a.target) == null ? void 0 : s.value) < "u" && (a.target.value = this.currentPage), this.$emit("navigate-to-page", e);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
var x = function() {
|
|
199
|
-
var e = this, t = e._self._c;
|
|
200
|
-
return t("div", { staticClass: "pointer-events-none sticky top-0 z-10 flex h-10 w-full translate-y-4", class: { "translate-y-2": e.mq === "sm" } }, [t("div", { staticClass: "pointer-events-auto mx-auto inline-flex items-center justify-center rounded-full bg-gray-300/50 shadow-xl backdrop-blur-md", class: { "ml-2": e.mq === "sm" } }, [t("div", { staticClass: "ease flex h-full items-center justify-center gap-1 overflow-hidden rounded-full border border-gray-100 bg-white px-1.5 text-gray-500 transition duration-500" }, [t("div", { staticClass: "mr-2 inline-flex items-center gap-2" }, [t("input", { staticClass: "w-9 rounded-full border border-solid border-gray-200 bg-gray-100 text-center leading-loose text-gray-500", attrs: { type: "number" }, domProps: { value: e.currentPage }, on: { blur: e.navigateToPage, keyup: function(s) {
|
|
201
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.navigateToPage.apply(null, arguments);
|
|
202
|
-
} } }), t("div", { staticClass: "text-sm font-medium" }, [e._v("/ " + e._s(e.numPages))])]), t("transition", { attrs: { name: "slide-fade" } }, [e.mq !== "sm" || e.compactExpand ? t("div", { staticClass: "button-transitions flex items-center" }, [t("div", { staticClass: "h-8 w-px bg-gray-700/10" }), t("div", { staticClass: "inline-flex items-center" }, [t("button", { staticClass: "h-10 w-10 rounded-full text-gray-400", on: { click: function(s) {
|
|
203
|
-
s.preventDefault(), e.updateZoom(e.scale - (e.scale > 0.2 ? 0.1 : 0));
|
|
204
|
-
} } }, [t("CIcon", { attrs: { type: "zoomOut", size: "20" } })], 1), t("input", { key: e.scale, staticClass: "w-12 rounded-md border border-solid border-gray-200 bg-gray-100 text-center leading-loose text-gray-500", attrs: { type: "text" }, domProps: { value: e.formattedZoom }, on: { blur: e.onManualZoom, keyup: function(s) {
|
|
205
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.onManualZoom.apply(null, arguments);
|
|
206
|
-
} } }), t("button", { staticClass: "h-10 w-10 rounded-full text-gray-400", on: { click: function(s) {
|
|
207
|
-
s.preventDefault(), e.updateZoom(e.scale + (e.scale < 2 ? 0.1 : 0));
|
|
208
|
-
} } }, [t("CIcon", { attrs: { type: "zoomIn", size: "20" } })], 1)]), t("div", { staticClass: "h-8 w-px bg-gray-700/10" }), t("button", { staticClass: "h-10 w-10 rounded-full text-gray-400", on: { click: function(s) {
|
|
209
|
-
return s.preventDefault(), e.updateZoom("page-width");
|
|
210
|
-
} } }, [t("CIcon", { attrs: { type: "boxBox", size: "20" } })], 1), t("div", { staticClass: "h-8 w-px bg-gray-700/10" }), t("button", { staticClass: "h-10 w-10 rounded-full text-gray-400", on: { click: function(s) {
|
|
211
|
-
return s.preventDefault(), e.$emit("download");
|
|
212
|
-
} } }, [t("CIcon", { attrs: { type: "download", size: "20" } })], 1)]) : e._e()])], 1), e.mq === "sm" ? t("button", { staticClass: "h-10 w-10 rounded-full text-gray-400", on: { click: function(s) {
|
|
213
|
-
s.preventDefault(), e.compactExpand = !e.compactExpand;
|
|
214
|
-
} } }, [t("CIcon", { staticClass: "duration-500", class: { "rotate-180": e.compactExpand }, attrs: { type: "chevron-right", size: "20" } })], 1) : e._e()])]);
|
|
215
|
-
}, C = [], $ = /* @__PURE__ */ l(
|
|
216
|
-
k,
|
|
217
|
-
x,
|
|
218
|
-
C,
|
|
219
|
-
!1,
|
|
220
|
-
null,
|
|
221
|
-
"5411d0ad"
|
|
222
|
-
);
|
|
223
|
-
const V = $.exports;
|
|
224
|
-
function D(a, e) {
|
|
225
|
-
let t;
|
|
226
|
-
if (typeof a == "string")
|
|
227
|
-
t = {
|
|
228
|
-
url: a
|
|
229
|
-
};
|
|
230
|
-
else if (typeof a == "object" && a !== null)
|
|
231
|
-
t = { ...a };
|
|
232
|
-
else
|
|
233
|
-
throw new TypeError("invalid src type");
|
|
234
|
-
const s = window.pdfjsLib.getDocument(t).promise;
|
|
235
|
-
return s.__PDFDocumentLoadingTask = !0, e && e.onPassword && (s.onPassword = e.onPassword), e && e.onProgress && (s.onProgress = e.onProgress), s;
|
|
236
|
-
}
|
|
237
|
-
const o = "4.0.379", S = {
|
|
238
|
-
components: {
|
|
239
|
-
VuePdf: _,
|
|
240
|
-
PDFToolbar: V
|
|
241
|
-
},
|
|
242
|
-
inject: {
|
|
243
|
-
isPdf: {
|
|
244
|
-
default: !1
|
|
245
|
-
},
|
|
246
|
-
fallbackMode: {
|
|
247
|
-
default: !1
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
props: {
|
|
251
|
-
src: {
|
|
252
|
-
type: String,
|
|
253
|
-
default: null
|
|
254
|
-
},
|
|
255
|
-
toolbar: {
|
|
256
|
-
type: Boolean,
|
|
257
|
-
default: !0
|
|
258
|
-
},
|
|
259
|
-
docFilePath: {
|
|
260
|
-
type: String,
|
|
261
|
-
default: null
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
data() {
|
|
265
|
-
return {
|
|
266
|
-
pdf: null,
|
|
267
|
-
pdfLoadingTask: null,
|
|
268
|
-
hasLoadedScripts: !1,
|
|
269
|
-
loading: !1,
|
|
270
|
-
// zoom
|
|
271
|
-
autoZoom: !0,
|
|
272
|
-
scale: "page-width",
|
|
273
|
-
// page navigation
|
|
274
|
-
page: 1,
|
|
275
|
-
numPages: void 0,
|
|
276
|
-
observer: null
|
|
277
|
-
};
|
|
278
|
-
},
|
|
279
|
-
watch: {
|
|
280
|
-
fallbackMode: {
|
|
281
|
-
immediate: !0,
|
|
282
|
-
handler(a) {
|
|
283
|
-
a && (this.scale = 0.9);
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
src: {
|
|
287
|
-
immediate: !0,
|
|
288
|
-
async handler(a) {
|
|
289
|
-
this.hasLoadedScripts || (await d(
|
|
290
|
-
// `https://unpkg.com/pdfjs-dist@${pdfjsVersion}/build/pdf.min.mjs`
|
|
291
|
-
`${n.api.baseUrl}/js/pdfjs-dist@${o}/build/pdf.min.mjs`
|
|
292
|
-
), await d(
|
|
293
|
-
// `https://unpkg.com/pdfjs-dist@${pdfjsVersion}/web/pdf_viewer.mjs`
|
|
294
|
-
`${n.api.baseUrl}/js/pdfjs-dist@${o}/web/pdf_viewer.mjs`
|
|
295
|
-
), window.pdfjsLib.GlobalWorkerOptions.workerSrc = `${n.api.baseUrl}/js/pdfjs-dist@${o}/build/pdf.worker.min.mjs`, this.hasLoadedScripts = !0), this.setPdf(a);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
beforeDestroy() {
|
|
300
|
-
this.observer && (this.observer.disconnect(), this.observer = null);
|
|
301
|
-
},
|
|
302
|
-
methods: {
|
|
303
|
-
createLoadingTask: D,
|
|
304
|
-
async setPdf(a) {
|
|
305
|
-
a && (this.loading = !0, this.pdfLoadingTask = this.createLoadingTask(a), this.$nextTick(() => {
|
|
306
|
-
this.pdfLoadingTask.then((e) => {
|
|
307
|
-
this.pdf = e, this.loading = !1, this.numPages = e.numPages, this.$emit("numPages", e.numPages), this.$emit("rendered"), this.toolbar && this.numPages > 1 && (this.observer = new IntersectionObserver(
|
|
308
|
-
(t) => {
|
|
309
|
-
t.forEach((s) => {
|
|
310
|
-
var i;
|
|
311
|
-
if (s.isIntersecting) {
|
|
312
|
-
const r = Number(
|
|
313
|
-
(i = s.target) == null ? void 0 : i.getAttribute("data-page")
|
|
314
|
-
);
|
|
315
|
-
this.page = r;
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
// root: this.$el,
|
|
321
|
-
rootMargin: "0px",
|
|
322
|
-
threshold: 0.5
|
|
323
|
-
}
|
|
324
|
-
), this.$nextTick(() => {
|
|
325
|
-
var t;
|
|
326
|
-
(t = this.$refs.pageComponent) == null || t.forEach(
|
|
327
|
-
(s) => this.observer.observe(s.$el)
|
|
328
|
-
);
|
|
329
|
-
}));
|
|
330
|
-
});
|
|
331
|
-
}));
|
|
332
|
-
},
|
|
333
|
-
navigateToPage(a) {
|
|
334
|
-
var e, t, s;
|
|
335
|
-
(s = (t = (e = this.$refs.pageComponent) == null ? void 0 : e[a - 1]) == null ? void 0 : t.$el) == null || s.scrollIntoView({
|
|
336
|
-
behavior: "instant",
|
|
337
|
-
block: "start"
|
|
338
|
-
});
|
|
339
|
-
},
|
|
340
|
-
async download() {
|
|
341
|
-
if (!this.pdf)
|
|
342
|
-
return;
|
|
343
|
-
const e = (await this.pdf.getMetadata()).info.Title || "document";
|
|
344
|
-
this.pdf.getData().then((t) => {
|
|
345
|
-
const s = new Blob([t], { type: "application/pdf" }), i = URL.createObjectURL(s), r = document.createElement("a");
|
|
346
|
-
r.href = i, r.setAttribute("download", `${e}.pdf`), r.click();
|
|
347
|
-
}).catch(() => g("Failed to download PDF"));
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
var L = function() {
|
|
352
|
-
var e = this, t = e._self._c;
|
|
353
|
-
return t("div", { key: e.src, staticStyle: { "--page-border": "0" } }, [e.isPdf && !e.fallbackMode ? t("pre", [e._v(" ClingPDFReplaceStart:[" + e._s(e.docFilePath) + `]ClingPDFReplaceEnd
|
|
354
|
-
`), t("div", [e._v("This page should have been replaced with URL: " + e._s(e.src))]), e._v(`
|
|
355
|
-
`)]) : [e.toolbar && !e.fallbackMode && !e.loading ? t("PDFToolbar", { attrs: { "current-page": e.page, "num-pages": e.numPages, scale: e.scale, "auto-zoom": e.autoZoom }, on: { "update:scale": function(s) {
|
|
356
|
-
e.scale = s;
|
|
357
|
-
}, "update:autoZoom": function(s) {
|
|
358
|
-
e.autoZoom = s;
|
|
359
|
-
}, "update:auto-zoom": function(s) {
|
|
360
|
-
e.autoZoom = s;
|
|
361
|
-
}, download: e.download, "navigate-to-page": e.navigateToPage } }) : e._e(), t("div", { staticClass: "mx-auto", class: { "chapter-spacing-x max-w-full": e.autoZoom && !e.fallbackMode } }, [e.loading ? t("div", { staticClass: "mb-4 grid aspect-[210/297] w-full place-items-center border border-gray-100 bg-gray-50" }, [t("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1) : e._e(), t("div", { class: { "overflow-x-auto": !e.autoZoom } }, e._l(e.numPages, function(s) {
|
|
362
|
-
return t("VuePdf", e._b({ key: s, ref: "pageComponent", refInFor: !0, staticClass: "page-shadow", attrs: { page: s, "data-page": s, scale: e.scale, resize: e.autoZoom, "container-class": e.fallbackMode ? "" : "mb-4" }, on: { "update:scale": function(i) {
|
|
363
|
-
e.scale = i;
|
|
364
|
-
} }, scopedSlots: e._u([{ key: "loading", fn: function() {
|
|
365
|
-
return [t("div", { staticClass: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50" }, [t("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1)];
|
|
366
|
-
}, proxy: !0 }], null, !0) }, "VuePdf", {
|
|
367
|
-
...e.$attrs,
|
|
368
|
-
...e.$props,
|
|
369
|
-
pdfLoadingTask: e.pdfLoadingTask
|
|
370
|
-
}, !1));
|
|
371
|
-
}), 1)])]], 2);
|
|
372
|
-
}, F = [], T = /* @__PURE__ */ l(
|
|
373
|
-
S,
|
|
374
|
-
L,
|
|
375
|
-
F,
|
|
376
|
-
!1,
|
|
377
|
-
null,
|
|
378
|
-
"3b536c1f"
|
|
379
|
-
);
|
|
380
|
-
const N = T.exports;
|
|
381
|
-
export {
|
|
382
|
-
N as V
|
|
383
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { u as r, n as s } from "./main-BgzLHIoo.js";
|
|
2
|
-
const _ = /* @__PURE__ */ r({
|
|
3
|
-
__name: "PlainHtml",
|
|
4
|
-
props: {
|
|
5
|
-
content: { default: "" }
|
|
6
|
-
},
|
|
7
|
-
setup(e) {
|
|
8
|
-
return { __sfc: !0 };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var o = function() {
|
|
12
|
-
var n = this, t = n._self._c;
|
|
13
|
-
return n._self._setupProxy, t("div", { staticClass: "quill-format" }, [n._t("default", function() {
|
|
14
|
-
return [t("div", { domProps: { innerHTML: n._s(n.content) } })];
|
|
15
|
-
})], 2);
|
|
16
|
-
}, a = [], l = /* @__PURE__ */ s(
|
|
17
|
-
_,
|
|
18
|
-
o,
|
|
19
|
-
a,
|
|
20
|
-
!1,
|
|
21
|
-
null,
|
|
22
|
-
null
|
|
23
|
-
);
|
|
24
|
-
const i = l.exports;
|
|
25
|
-
export {
|
|
26
|
-
i as P
|
|
27
|
-
};
|