@cling-se/widget 0.17.3 → 0.18.1
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/CHANGELOG.md +24 -0
- package/dist/AddClientCallout-CCt78VvH.js +101 -0
- package/dist/AnswerModal-B4LwVv2N.js +3371 -0
- package/dist/AttachmentItem-DnvYffKP.js +171 -0
- package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
- package/dist/BlockMedia-Amo_kdHo.js +103 -0
- package/dist/CCallout-Gd06ds6O.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
- package/dist/CDropdownItem-BUNVCpSR.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
- package/dist/CPhoneInput-B6iyhsOG.js +207 -0
- package/dist/CPriceInput-BLQaNu1d.js +142 -0
- package/dist/CSelect-BVO9iO9L.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
- package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
- package/dist/ClientModal-B9cbuEiC.js +1188 -0
- package/dist/ColorPicker-G2kkxL7_.js +1408 -0
- package/dist/CompanyModal-por9AG4P.js +250 -0
- package/dist/ContentWrapper-CQtaGA2u.js +265 -0
- package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
- package/dist/DocAnswer-BrKctwrY.js +33 -0
- package/dist/DocDetails-B_LWVHGt.js +452 -0
- package/dist/DocForm-D6T7NmfO.js +6772 -0
- package/dist/DocFormSend-COYPrhl7.js +171 -0
- package/dist/DocLinks-B0LjxXIk.js +36 -0
- package/dist/DocModalBase-DObZHuYr.js +29 -0
- package/dist/DocPrint-CkDq78fB.js +399 -0
- package/dist/DocReceipt-CYBPyePC.js +341 -0
- package/dist/DocSendReminder-Dau6s43e.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
- package/dist/DocTimeline-ChBDPOfd.js +537 -0
- package/dist/DocumentClient-MLXzzXLb.js +90 -0
- package/dist/DocumentLayout-BMHOt380.js +1434 -0
- package/dist/DocumentLogotype-Clj3fopX.js +162 -0
- package/dist/DocumentVoided-B5_MSBbC.js +33 -0
- package/dist/EmbedInput-CzkOa02p.js +156 -0
- package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
- package/dist/ErrorCallout-CJn6NCse.js +34 -0
- package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
- package/dist/Flag-C4_G5IY1.js +41 -0
- package/dist/HeaderSettings-DWN0TjVD.js +720 -0
- package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
- package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
- package/dist/Index-B06eCuBA.js +76 -0
- package/dist/Index-B8Zj0-MX.js +87 -0
- package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
- package/dist/Index-BCHLxp7B.js +21 -0
- package/dist/Index-BDAp1CwZ.js +363 -0
- package/dist/Index-BFbcjFo4.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
- package/dist/Index-BOx_9tTM.js +136 -0
- package/dist/Index-BgZNiD7A.js +47 -0
- package/dist/Index-Bt97lEsI.js +228 -0
- package/dist/Index-C9aBeBBk.js +70 -0
- package/dist/Index-CE3pWPzp.js +49 -0
- package/dist/Index-CMdPSsp4.js +38 -0
- package/dist/Index-CNhBDG2e.js +126 -0
- package/dist/Index-CdsOdgG2.js +28 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
- package/dist/Index-CpxzwwQS.js +52 -0
- package/dist/Index-CxTwWRD9.js +93 -0
- package/dist/Index-D9WFWlE6.js +140 -0
- package/dist/Index-D9bulLeI.js +39 -0
- package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
- package/dist/Index-DR-sGE3Y.js +25 -0
- package/dist/Index-DRoOW5Pn.js +163 -0
- package/dist/Index-DTn47-hP.js +74 -0
- package/dist/Index-DeGDlj0B.js +68 -0
- package/dist/Index-DhYYK4bK.js +28 -0
- package/dist/Index-Dssdb-0Z.js +629 -0
- package/dist/Index-OcBnU480.js +200 -0
- package/dist/Index-Qh_8JqAv.js +3477 -0
- package/dist/Index-W10PQb8i.js +102 -0
- package/dist/Index-lbWFEELM.js +4 -0
- package/dist/Index-qFAg7VVU.js +1098 -0
- package/dist/Index-rDndJKo1.js +160 -0
- package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
- package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
- package/dist/InputToggleRow-DJarYsVL.js +99 -0
- package/dist/ManualPopover-BMrkEHtV.js +65 -0
- package/dist/MediaWrapper-BYdVpmov.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
- package/dist/PackageGroup-q7_oBOqw.js +1060 -0
- package/dist/PdfTerms-DBEClYQ5.js +34 -0
- package/dist/PdfViewer-C_y5sqXB.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
- package/dist/PriceHeader-BSwv3mzc.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
- package/dist/SendForm-DfmBbhp9.js +6689 -0
- package/dist/Setup-BC1feKr_.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
- package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
- package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
- package/dist/UploadModal-1OWPRxA5.js +134 -0
- package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
- package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
- package/dist/VideoSelectModal-CSv67eA8.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
- package/dist/helpers-ChwW54Ex.js +46 -0
- package/dist/index-BMZle8Ew.js +513 -0
- package/dist/index-Bf-fiKJf.js +268 -0
- package/dist/index-Bg4JRi5S.js +125 -0
- package/dist/index-C7chK2UD.js +3525 -0
- package/dist/index-CR52qIBO.js +149 -0
- package/dist/index-D1x9O_nJ.js +188 -0
- package/dist/index-YFcPqc9m.js +508 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-DI0diChK.js +57570 -0
- package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
- package/dist/omit-DpjD7Dj9.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
- package/dist/splitpanes-BypKTSRL.js +342 -0
- package/dist/template-Dzexob5I.js +1572 -0
- package/dist/tippy.esm-0UMN6kWf.js +1994 -0
- package/dist/useTermsModal-DzH_PDFP.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
- package/dist/validation-B-omH73u.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { u as i, x as r, $ as c, n as l } from "./main-BL_yzf2r.js";
|
|
2
|
-
import { V as _ } from "./PdfViewer-mBLxI8bA.js";
|
|
3
|
-
const f = /* @__PURE__ */ i({
|
|
4
|
-
__name: "PdfTerms",
|
|
5
|
-
props: {
|
|
6
|
-
text: null,
|
|
7
|
-
file: null
|
|
8
|
-
},
|
|
9
|
-
setup(n) {
|
|
10
|
-
const t = n, e = r(() => t.text), s = r(() => {
|
|
11
|
-
var o;
|
|
12
|
-
return (o = t.file) == null ? void 0 : o.url;
|
|
13
|
-
}), a = r(() => c.t("_common:terms.general"));
|
|
14
|
-
return { __sfc: !0, props: t, text: e, src: s, terms: a, VuePdf: _ };
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var m = function() {
|
|
18
|
-
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
19
|
-
return s.text ? e("div", { staticClass: "root" }, [e("div", { staticClass: "root-title page-break" }, [t._v(" " + t._s(s.terms) + " ")]), e("div", { staticClass: "term-text quill-format", domProps: { innerHTML: t._s(s.text) } })]) : t.file ? e("div", [e(s.VuePdf, { staticClass: "pdf-container", attrs: { src: s.src, "doc-file-path": "data.terms.file.url" } })], 1) : e("div");
|
|
20
|
-
}, d = [], p = /* @__PURE__ */ l(
|
|
21
|
-
f,
|
|
22
|
-
m,
|
|
23
|
-
d,
|
|
24
|
-
!1,
|
|
25
|
-
null,
|
|
26
|
-
"47bb2463"
|
|
27
|
-
);
|
|
28
|
-
const x = p.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-BL_yzf2r.js";
|
|
2
|
-
import { e as d } from "./dom-Ds4ypDrd.js";
|
|
3
|
-
import { W as m } from "./DocumentLayout-4q8rmTVT.js";
|
|
4
|
-
import { w as h } from "./CDropdownItem-CN7gSfgY.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-BL_yzf2r.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
|
-
};
|