@cling-se/widget 0.13.4 → 0.14.0

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.
Files changed (120) hide show
  1. package/dist/{AddClientCallout-CUvV9hc1.js → AddClientCallout-C7BLDW6Y.js} +3 -3
  2. package/dist/{AnswerModal-D7YR33mx.js → AnswerModal-KWFteFV9.js} +4 -4
  3. package/dist/{AttachmentItem-vYrh1jQV.js → AttachmentItem-CSerklBS.js} +2 -2
  4. package/dist/{BaseDatePicker-DSaM8YN4.js → BaseDatePicker-BOxfHGS8.js} +102 -102
  5. package/dist/{BaseInput-BB_8vX5k.js → BaseInput-BDjhI5P9.js} +1 -1
  6. package/dist/{BaseUpload-CE-cfz2U.js → BaseUpload-B-CktrCH.js} +24 -24
  7. package/dist/{BlockMedia-4UgM2vFY.js → BlockMedia-T4OxMb4n.js} +21 -17
  8. package/dist/{CCallout-CtYNOt9d.js → CCallout-yFt7TFJa.js} +2 -2
  9. package/dist/{CDropdownItem-BKFex9lI.js → CDropdownItem-DhEpCmQt.js} +1 -1
  10. package/dist/{CField-BbFsOKA1.js → CFormField-DDLf5YY4.js} +66 -39
  11. package/dist/{CPhoneFormat-B8yjrsxy.js → CPhoneFormat-B88rkuf0.js} +1 -1
  12. package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-CGVIE7T8.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js} +1 -1
  13. package/dist/{ClientAutocomplete-BOuabEqx.js → ClientAutocomplete-DmRl3SUj.js} +2 -2
  14. package/dist/{ClientModal-7qU_FTFB.js → ClientModal-Dn3WDhGU.js} +4 -4
  15. package/dist/{ColorPicker-D8aJWIFD.js → ColorPicker-DX6JAsTn.js} +1 -1
  16. package/dist/{CompanyModal-Cq0_G38j.js → CompanyModal-BbO2nTd5.js} +4 -4
  17. package/dist/{ContentWrapper-Dlg9OxYv.js → ContentWrapper-BvbmcTXK.js} +8 -8
  18. package/dist/{CoverBlockSettings-B-CEGFdt.js → CoverBlockSettings-C8FDwx7i.js} +5 -5
  19. package/dist/{DocAnswer-CFFVsUy6.js → DocAnswer-OttbybQs.js} +2 -2
  20. package/dist/{DocDetails-JTcgjxhA.js → DocDetails-J7O26zqa.js} +4 -4
  21. package/dist/{DocForm-C_-eJ9d9.js → DocForm-Bgbesq79.js} +53 -52
  22. package/dist/{DocFormSend-Cd-SB1W9.js → DocFormSend-D_U3ztgw.js} +2 -2
  23. package/dist/{DocLinks-DhKKFV4a.js → DocLinks-Dp-iQ-B_.js} +2 -2
  24. package/dist/{DocModalBase-NGK43bvU.js → DocModalBase-F-wlPg7j.js} +1 -1
  25. package/dist/{DocPrint-DVLg6cWG.js → DocPrint-B45voy0W.js} +22 -15
  26. package/dist/{DocReceipt-BNMQvOlO.js → DocReceipt-jKVK5U-a.js} +1 -1
  27. package/dist/{DocSendReminder-BCnYwnrS.js → DocSendReminder-BersSNb1.js} +1 -1
  28. package/dist/{DocTextEditor-B_yS_4RV.js → DocTextEditor-CYe_jWZ8.js} +834 -816
  29. package/dist/{DocTimeline-B3t6uo5e.js → DocTimeline-yyzh51yB.js} +1 -1
  30. package/dist/{DocumentClient-UhpVi4HO.js → DocumentClient-CS_EVjK9.js} +5 -5
  31. package/dist/{DocumentLayout-C7nouJDC.js → DocumentLayout-Ba121Zro.js} +9 -5
  32. package/dist/{DocumentLogotype-ClZREzmO.js → DocumentLogotype-DUVhl9xC.js} +3 -3
  33. package/dist/{DocumentVoided-BpbC4bXx.js → DocumentVoided-D5ePc-a5.js} +1 -1
  34. package/dist/{EmbedInput-BMmPfIdI.js → EmbedInput-Ds-Z-0J2.js} +2 -2
  35. package/dist/{EmbedSettings-DifnJvWL.js → EmbedSettings-C8BP4YuY.js} +2 -2
  36. package/dist/{ErrorCallout-DIUyViuJ.js → ErrorCallout-B_QrRAm6.js} +1 -1
  37. package/dist/{FilePreviewModal-DeDX4wRt.js → FilePreviewModal-B105PxLD.js} +2 -2
  38. package/dist/{Flag-Pf1Q2fSw.js → Flag-hg61To9C.js} +1 -1
  39. package/dist/{HeaderSettings-DYTfA3RK.js → HeaderSettings-DIBiJc4I.js} +7 -7
  40. package/dist/{ImageSelectModal-BhncA-WP.js → ImageSelectModal-D2g42vWJ.js} +3 -3
  41. package/dist/{ImageUploadWrapper-ChAz3-dm.js → ImageUploadWrapper-CREUMKh3.js} +2 -2
  42. package/dist/{Index-3L8UNRT4.js → Index-02IKjPth.js} +3 -3
  43. package/dist/{Index-HMW5Mlsu.js → Index-4NdatdH2.js} +6 -6
  44. package/dist/{Index-Bs508DBI.js → Index-7rbX01Io.js} +5 -5
  45. package/dist/{Index-Bmnm8D9w.js → Index-8DAfMA_s.js} +5 -5
  46. package/dist/{Index-D-M1LO4o.js → Index-B8xcDVQ1.js} +9 -4
  47. package/dist/{Index-Bzi3BUPs.js → Index-BG9x90V0.js} +5 -5
  48. package/dist/{Index-AcjJMstH.js → Index-BLQwYzIX.js} +3 -3
  49. package/dist/{Index-n0AfYfVe.js → Index-BUTYZCat.js} +2 -2
  50. package/dist/{Index-B5GJGrBw.js → Index-BZM-FsHY.js} +1 -1
  51. package/dist/{Index-BrRM_ky2.js → Index-BiK7PqAm.js} +2 -2
  52. package/dist/{Index-cLpD7up3.js → Index-BqBi-EmE.js} +2 -2
  53. package/dist/{Index-CwH8vX7u.js → Index-Bu6aOCmM.js} +3 -3
  54. package/dist/{Index-buM1dBWf.js → Index-BuDj2yrd.js} +4 -4
  55. package/dist/{Index-m_GcuIx9.js → Index-C56fTFO3.js} +4 -4
  56. package/dist/{Index-DSOq_2Es.js → Index-CL12KArA.js} +4 -4
  57. package/dist/{Index-CBzialE3.js → Index-CUxvKTfn.js} +14 -32
  58. package/dist/{Index-C2fVSXmZ.js → Index-CYHxrllv.js} +4 -4
  59. package/dist/{Index-7oMiicd1.js → Index-CpWW7m5F.js} +4 -4
  60. package/dist/{Index-BH7cD6Bs.js → Index-CwulQoRG.js} +8 -8
  61. package/dist/{Index-CdlsOYxA.js → Index-D0gS476H.js} +4 -4
  62. package/dist/{Index-DzPN0uzB.js → Index-DDj3_T_m.js} +1 -1
  63. package/dist/{Index-jgHwHxRS.js → Index-DIg77V9c.js} +2 -2
  64. package/dist/{Index-DW-pryBq.js → Index-DRgVg0CH.js} +4 -4
  65. package/dist/{Index-DTTt-IRf.js → Index-DVQ6ZsHz.js} +6 -6
  66. package/dist/{Index-DPhcKOkk.js → Index-D_MonVUx.js} +6 -6
  67. package/dist/{Index-BshXtSwo.js → Index-DeNpUKh8.js} +5 -5
  68. package/dist/{Index-CR2KFB-Y.js → Index-Dqp7TmnQ.js} +6 -6
  69. package/dist/{Index-JdpEXP6c.js → Index-Dy7K8KMB.js} +11 -11
  70. package/dist/{Index-D2-kMtsJ.js → Index-YkoWXviW.js} +4 -4
  71. package/dist/{Index-DYB7aHie.js → Index-agYFtWMw.js} +6 -6
  72. package/dist/{Index-CijhAqbu.js → Index-bTXYCG9Y.js} +4 -4
  73. package/dist/{Index-BO4SyvD7.js → Index-kAu-7TWv.js} +10 -10
  74. package/dist/{Index-YL6qqj3h.js → Index-lKo8z-71.js} +3 -3
  75. package/dist/{Index--GLCYqbJ.js → Index-sltQx4D3.js} +2 -2
  76. package/dist/{InputToggleRow-CqjQTNp0.js → InputToggleRow-C7aWJpUF.js} +1 -1
  77. package/dist/{ManualPopover-CoB4oOC-.js → ManualPopover-CK9Xp-mo.js} +1 -1
  78. package/dist/{MediaWrapper-DkaMgUWm.js → MediaWrapper-v87wlFnj.js} +3 -3
  79. package/dist/{NotBindingText-B1O0v5Vi.js → NotBindingText-BGy3SnK3.js} +2 -2
  80. package/dist/{PackageGroup-DIONd0o7.js → PackageGroup-CrsOkWIb.js} +8 -8
  81. package/dist/{PdfTerms-DHwhI0YJ.js → PdfTerms-UmEmlI0Y.js} +2 -2
  82. package/dist/PdfViewer-C6VBu4tT.js +374 -0
  83. package/dist/{PlainHtml-ZrDuRVoK.js → PlainHtml-Dsaxrq3D.js} +1 -1
  84. package/dist/{PriceHeader-CRVld7HO.js → PriceHeader-DQ615L9Q.js} +10 -10
  85. package/dist/{SearchApi-QGQITrrK.js → SearchApi-CbWFQfoc.js} +2 -2
  86. package/dist/{Setup-BMhxElbF.js → Setup-Byd-0W7U.js} +1 -1
  87. package/dist/{TermsSettings-BXuj9Ygx.js → TermsSettings-Cah7_3Ba.js} +3 -3
  88. package/dist/{ThemeColorRow-Dv47wN_H.js → ThemeColorRow-DqsjvQfY.js} +3 -3
  89. package/dist/{ToggleBinding-CvjAUCAr.js → ToggleBinding-DFr6xW2B.js} +3 -3
  90. package/dist/{UploadModal-DPcCq7cK.js → UploadModal-jRI9ITty.js} +2 -2
  91. package/dist/{VideoPlayerInput-BU43tIFN.js → VideoPlayerInput-C5_Ft8-4.js} +3 -3
  92. package/dist/{VideoPlayerSettings-BF-yyjoq.js → VideoPlayerSettings-LZluC-Tg.js} +2 -2
  93. package/dist/{VideoSelectModal-T52Z5tGW.js → VideoSelectModal-OGDq_lwv.js} +3 -3
  94. package/dist/{answerDocumentMixin-B6B_Absw.js → answerDocumentMixin-D8BXcPWt.js} +3 -3
  95. package/dist/{debounce-Bku3KTOL.js → debounce-BQXg61RJ.js} +8 -8
  96. package/dist/dom-CJxkno7i.js +91 -0
  97. package/dist/{focusDrawerMixin-Byq44Fps.js → focusDrawerMixin-D3Pzr0P-.js} +1 -1
  98. package/dist/{formComponentsInstall-BLUTqIP-.js → formComponentsInstall-D1VBPt9o.js} +173 -201
  99. package/dist/{formDrawerState-DyfkNQI-.js → formDrawerState-wG6RdIXD.js} +1 -1
  100. package/dist/{formValidationMixin-BOYfELii.js → formValidationMixin-D9qFZJf9.js} +2 -2
  101. package/dist/{index-CI57mY57.js → index-1DmXjcSN.js} +6 -6
  102. package/dist/{index-BvXtEBVW.js → index-BEOnzeEr.js} +9 -9
  103. package/dist/{index-BKawli9V.js → index-BFnwm62-.js} +1 -1
  104. package/dist/{index--bKQe92o.js → index-DETqm8Jy.js} +3 -3
  105. package/dist/{index-HMD01fSx.js → index-Dnp3LAf2.js} +1 -1
  106. package/dist/{index-XhscStcK.js → index-M-GXl2PO.js} +48 -48
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +135 -135
  109. package/dist/{main-D84dH9TV.js → main-CWRB9q-W.js} +332 -312
  110. package/dist/{mapFormMixin-Brb5jcGN.js → mapFormMixin-BOmDynJ-.js} +1 -1
  111. package/dist/{omit-CQHgn0Eu.js → omit-CMqxXOLn.js} +47 -47
  112. package/dist/{publicSenderState-NpXx8Fu1.js → publicSenderState-D_VhSyXD.js} +1 -1
  113. package/dist/style.css +2 -2
  114. package/dist/{throttle-DLrx6mTa.js → throttle-Bixql7MZ.js} +2 -2
  115. package/dist/{tinycolor-CFphVWDB.js → tinycolor-CIjZZX-6.js} +1 -1
  116. package/dist/{tippy.esm-B7RV5DYA.js → tippy.esm-BcAHvKwR.js} +5 -5
  117. package/dist/{utils-CFgMQnL0.js → utils-1ypnMuRv.js} +1 -1
  118. package/package.json +1 -1
  119. package/dist/PdfViewer-DqrQ4Ghx.js +0 -247
  120. package/dist/dom-CPYqHOIw.js +0 -69
@@ -1,5 +1,5 @@
1
- import { k as n, l } from "./main-D84dH9TV.js";
2
- import { a as o } from "./debounce-Bku3KTOL.js";
1
+ import { k as n, l } from "./main-CWRB9q-W.js";
2
+ import { a as o } from "./debounce-BQXg61RJ.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,4 +1,4 @@
1
- import { k as he } from "./main-D84dH9TV.js";
1
+ import { k as he } from "./main-CWRB9q-W.js";
2
2
  var N = { exports: {} };
3
3
  (function(R) {
4
4
  (function(c) {
@@ -1,8 +1,8 @@
1
- import { F as mr } from "./DocumentLayout-C7nouJDC.js";
2
- import { C as hr, a as gr } from "./CDropdownItem-BKFex9lI.js";
3
- import { n as Wt, r as yr, aM as Ot } from "./main-D84dH9TV.js";
4
- import { C as br } from "./ColorPicker-D8aJWIFD.js";
5
- import { S as wr } from "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-CGVIE7T8.js";
1
+ import { F as mr } from "./DocumentLayout-Ba121Zro.js";
2
+ import { C as hr, a as gr } from "./CDropdownItem-DhEpCmQt.js";
3
+ import { n as Wt, r as yr, aM as Ot } from "./main-CWRB9q-W.js";
4
+ import { C as br } from "./ColorPicker-DX6JAsTn.js";
5
+ import { S as wr } from "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js";
6
6
  const xr = {
7
7
  AED: "United Arab Emirates Dirham",
8
8
  AFN: "Afghan Afghani",
@@ -1,4 +1,4 @@
1
- import { o as d, c as m } from "./main-D84dH9TV.js";
1
+ import { o as d, c as m } from "./main-CWRB9q-W.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.13.4",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,247 +0,0 @@
1
- import { n as u, Q as m, c as n } from "./main-D84dH9TV.js";
2
- import { e as o } from "./dom-CPYqHOIw.js";
3
- import { W as w } from "./DocumentLayout-C7nouJDC.js";
4
- let l, f, c, p, h;
5
- function _(t) {
6
- return typeof t == "object" && t !== null && t.__PDFDocumentLoadingTask === !0;
7
- }
8
- const P = {
9
- name: "PdfPage",
10
- components: {
11
- WithDimensions: w
12
- },
13
- props: {
14
- src: {
15
- type: [String, Object, Promise],
16
- default: ""
17
- },
18
- page: {
19
- type: Number,
20
- default: 1
21
- },
22
- rotate: {
23
- type: Number,
24
- default: 0
25
- },
26
- scale: {
27
- type: [Number, String],
28
- default: "page-width"
29
- },
30
- resize: {
31
- type: Boolean,
32
- default: !0
33
- },
34
- text: {
35
- type: Boolean,
36
- default: !0
37
- },
38
- pdfLoadingTask: {
39
- type: Promise,
40
- required: !0
41
- },
42
- containerClass: {
43
- type: [Array, String],
44
- default: ""
45
- }
46
- },
47
- data() {
48
- return {
49
- internalSrc: this.src,
50
- pdf: null,
51
- pdfViewer: null,
52
- loading: !0
53
- };
54
- },
55
- watch: {
56
- pdf(t) {
57
- const e = t.pdfInfo || t._pdfInfo;
58
- this.$emit("numpages", e.numPages);
59
- },
60
- page(t) {
61
- this.pdf.getPage(t).then((e) => {
62
- this.pdfViewer.setPdfPage(e), this.pdfViewer.draw();
63
- });
64
- },
65
- scale(t) {
66
- this.drawScaled(t);
67
- },
68
- rotate(t) {
69
- this.pdfViewer && (this.pdfViewer.update({ scale: this.scale, rotation: t }), this.pdfViewer.draw());
70
- }
71
- },
72
- mounted() {
73
- l = window.pdfjsViewer.DefaultTextLayerFactory, f = window.pdfjsViewer.PDFFindController, c = window.pdfjsViewer.PDFLinkService, p = window.pdfjsViewer.PDFPageView, h = window.pdfjsViewer.EventBus, this.init();
74
- },
75
- beforeDestroy() {
76
- this.pdfViewer && (this.pdfViewer.destroy(), this.pdfViewer = null);
77
- },
78
- methods: {
79
- init() {
80
- _(this.internalSrc) || (this.internalSrc = this.pdfLoadingTask, this.$emit("loading", !0));
81
- const t = this.$refs.container, e = new h();
82
- e.on("pagerendered", (s) => {
83
- this.$emit("pagerendered", s);
84
- }), this.pdfLinkService = new c({
85
- eventBus: e,
86
- externalLinkTarget: 2
87
- }), this.pdfFindController = new f({
88
- eventBus: e,
89
- linkService: this.pdfLinkService
90
- });
91
- let i;
92
- this.text && (i = new l()), this.internalSrc.then((s) => (this.pdf = s, s.getPage(this.page))).then((s) => {
93
- this.pdfViewer = new p({
94
- container: t,
95
- id: this.page,
96
- scale: 1,
97
- defaultViewport: s.getViewport({
98
- scale: 1
99
- }),
100
- eventBus: e,
101
- textLayerFactory: i
102
- }), this.pdfViewer.setPdfPage(s);
103
- const r = {
104
- scrollPageIntoView: (g) => {
105
- this.$emit("link-clicked", g);
106
- }
107
- };
108
- return this.pdfLinkService.setDocument(this.pdf), this.pdfLinkService.setViewer(r), this.pdfFindController.setDocument(this.pdf), this.drawScaled(this.scale);
109
- }).catch((s) => {
110
- this.$emit("error", s), this.loading = !1, this.$emit("loading", !1);
111
- });
112
- },
113
- calculateScale(t = -1, e = -1) {
114
- return this.pdfViewer.update({ scale: 1, rotation: this.rotate }), t === -1 && e === -1 && (t = this.$refs.container.offsetWidth), t / this.pdfViewer.viewport.width;
115
- },
116
- calculateScaleHeight() {
117
- this.pdfViewer.update({ scale: 1, rotation: this.rotate });
118
- var t = this.$refs.container.offsetHeight, e = this.$refs.container.parentElement.parentElement;
119
- return e.offsetHeight / t;
120
- },
121
- async drawScaled(t) {
122
- this.pdfViewer && (t === "page-width" ? (t = this.calculateScale(), this.$emit("update:scale", t)) : t === "page-height" && (t = this.calculateScaleHeight(), this.$emit("update:scale", t)), this.pdfViewer.update({ scale: t, 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 v = function() {
130
- var e = this, i = e._self._c;
131
- return i("div", [e.loading ? e._t("loading") : e._e(), i("WithDimensions", { on: { resize: e.resizeScale } }, [i("div", { ref: "container", staticClass: "pdfViewer", class: e.containerClass })])], 2);
132
- }, y = [], V = /* @__PURE__ */ u(
133
- P,
134
- v,
135
- y,
136
- !1,
137
- null,
138
- null
139
- );
140
- const L = V.exports, a = new m();
141
- function $(t, e) {
142
- let i;
143
- if (typeof t == "string")
144
- i = {
145
- url: t
146
- };
147
- else if (typeof t == "object" && t !== null)
148
- i = { ...t };
149
- else
150
- throw new TypeError("invalid src type");
151
- const s = window.pdfjsLib.getDocument(i).promise;
152
- return s.__PDFDocumentLoadingTask = !0, e && e.onPassword && (s.onPassword = e.onPassword), e && e.onProgress && (s.onProgress = e.onProgress), s;
153
- }
154
- const d = {
155
- add(t) {
156
- a.trigger("add", t);
157
- },
158
- remove(t) {
159
- a.trigger("remove", t);
160
- },
161
- onAdd(t) {
162
- a.on("add", t);
163
- },
164
- onRemove(t) {
165
- a.on("remove", t);
166
- }
167
- }, k = {
168
- components: {
169
- VuePdf: L
170
- },
171
- inject: {
172
- isPdf: {
173
- default: !1
174
- }
175
- },
176
- props: {
177
- src: {
178
- type: String,
179
- default: null
180
- },
181
- docFilePath: {
182
- type: String,
183
- default: null
184
- }
185
- },
186
- data() {
187
- return {
188
- numPages: void 0,
189
- pdfLoadingTask: null,
190
- hasLoadedScripts: !1,
191
- loading: !1,
192
- pdfRenderBus: d
193
- };
194
- },
195
- watch: {
196
- src: {
197
- immediate: !0,
198
- async handler(t) {
199
- this.hasLoadedScripts || (await o(
200
- `${n.api.baseUrl}/js/pdfjs-dist@3.0.279/build/pdf.min.js`
201
- ), await o(
202
- `${n.api.baseUrl}/js/pdfjs-dist@3.0.279/web/pdf_viewer.js`
203
- ), window.pdfjsLib.GlobalWorkerOptions.workerSrc = `${n.api.baseUrl}/js/pdfjs-dist@3.0.279/build/pdf.worker.min.js`, this.hasLoadedScripts = !0), this.setPdf(t);
204
- }
205
- }
206
- },
207
- created() {
208
- this.isPdf || d.add(this._uid);
209
- },
210
- methods: {
211
- createLoadingTask: $,
212
- async setPdf(t) {
213
- t && (this.loading = !0, this.pdfLoadingTask = this.createLoadingTask(t), this.$nextTick(() => {
214
- this.pdfLoadingTask.then((e) => {
215
- this.loading = !1, this.numPages = e.numPages, this.$emit("numPages", e.numPages), this.$emit("rendered"), d.remove(this._uid);
216
- });
217
- }));
218
- }
219
- }
220
- };
221
- var S = function() {
222
- var e = this, i = e._self._c;
223
- return i("div", { key: e.src }, [e.isPdf ? i("pre", [e._v(" ClingPDFReplaceStart:[" + e._s(e.docFilePath) + `]ClingPDFReplaceEnd
224
- `), i("div", [e._v("This page should have been replaced with URL: " + e._s(e.src))]), e._v(`
225
- `)]) : i("div", [e.loading ? i("div", { staticClass: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50" }, [i("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1) : e._e(), e._l(e.numPages, function(s) {
226
- return i("VuePdf", e._b({ key: s, ref: "vuePdf", refInFor: !0, attrs: { page: s, "container-class": e.isPdf ? "" : "mb-4 shadow-[0_2px_4px_hsla(0,0%,0%,0.25)]" }, on: { "hook:created": function(r) {
227
- return e.pdfRenderBus.add(`${e._uid}-${s}`);
228
- }, loading: (r) => r ? null : e.pdfRenderBus.remove(`${e._uid}-${s}`) } }, "VuePdf", {
229
- ...e.$attrs,
230
- ...e.$props,
231
- pdfLoadingTask: e.pdfLoadingTask
232
- }, !1), [e._t("loading", function() {
233
- return [i("div", { staticClass: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50", attrs: { slot: "loading" }, slot: "loading" }, [i("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: "28" } })], 1)];
234
- })], 2);
235
- })], 2)]);
236
- }, b = [], F = /* @__PURE__ */ u(
237
- k,
238
- S,
239
- b,
240
- !1,
241
- null,
242
- null
243
- );
244
- const j = F.exports;
245
- export {
246
- j as V
247
- };
@@ -1,69 +0,0 @@
1
- const l = {}, f = {};
2
- function m(t) {
3
- if (f[t])
4
- return;
5
- if (l[t])
6
- return l[t];
7
- const o = new Promise((n, e) => {
8
- const s = document.createElement("script"), i = window.setTimeout(() => {
9
- l[t] = null, e(new Error(`Failed to load ${t} in 20s`));
10
- }, 2e4);
11
- s.onload = () => {
12
- i && window.clearTimeout(i), f[t] = !0, l[t] = null, n();
13
- }, s.onerror = (a) => {
14
- i && window.clearTimeout(i), l[t] = null, e(a);
15
- }, s.src = t, document.body.appendChild(s);
16
- });
17
- return l[t] = o, o;
18
- }
19
- function w(t) {
20
- const o = t.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, e = window.innerWidth || document.documentElement.clientWidth, s = o.top <= n && o.top + o.height >= 0, i = o.left <= e && o.left + o.width >= 0;
21
- return s && i;
22
- }
23
- const u = (t) => {
24
- const o = /(auto|scroll)/, n = (r, c) => r.parentNode === null ? c : n(r.parentNode, c.concat([r])), e = (r, c) => getComputedStyle(r, null).getPropertyValue(c), s = (r) => e(r, "overflow") + e(r, "overflow-y") + e(r, "overflow-x"), i = (r) => o.test(s(r));
25
- return ((r) => {
26
- if (!(r instanceof HTMLElement || r instanceof SVGElement))
27
- return null;
28
- const c = n(r.parentNode, []);
29
- for (let d = 0; d < c.length; d += 1)
30
- if (i(c[d]))
31
- return c[d];
32
- return document.scrollingElement || document.documentElement;
33
- })(t);
34
- }, p = (t) => {
35
- let o = 0;
36
- for (; t; )
37
- o += t.offsetTop, t = t.offsetParent;
38
- return o;
39
- };
40
- function h(t, o) {
41
- let n = t;
42
- typeof n == "string" && (n = document.querySelector(n));
43
- const e = {
44
- offset: 0,
45
- behavior: "smooth",
46
- body: u(n),
47
- // custom option used for choosing parent scroll element
48
- ...o
49
- }, s = p(n);
50
- HTMLElement.prototype.scrollTo ? e.body.scrollTo({
51
- behavior: e.behavior,
52
- top: s - e.offset
53
- }) : e.body.scrollTop = s - e.offset;
54
- }
55
- const g = (t) => {
56
- var e;
57
- const o = (e = t == null ? void 0 : t.getRootNode) == null ? void 0 : e.call(t), n = (o == null ? void 0 : o.toString()) === "[object ShadowRoot]";
58
- return {
59
- isShadow: n,
60
- el: n ? o : document
61
- };
62
- };
63
- export {
64
- u as a,
65
- m as e,
66
- g,
67
- w as i,
68
- h as s
69
- };