@cling-se/widget 0.9.4 → 0.9.6
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-d472aa84.js → AddClientCallout-d8f5bc53.js} +5 -5
- package/dist/{AnswerModal-06487437.js → AnswerModal-5f83562b.js} +248 -248
- package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-79eb718b.js} +8 -8
- package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-ae7aebf1.js} +43 -43
- package/dist/{BaseInput-2723d613.js → BaseInput-2c476604.js} +1 -1
- package/dist/{BaseUpload-996d74b3.js → BaseUpload-9e15729d.js} +3 -3
- package/dist/{BlockMedia-00907fb6.js → BlockMedia-a3f00a2f.js} +1 -1
- package/dist/{CCallout-ffa95028.js → CCallout-04e2c8c6.js} +6 -6
- package/dist/{CDropdownItem-74672842.js → CDropdownItem-5532f8af.js} +76 -75
- package/dist/{CField-06dd50f1.js → CField-0bc9de28.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js} +1 -1
- package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-e13c2753.js} +4 -4
- package/dist/{ClientModal-d276aabd.js → ClientModal-da9fddf9.js} +16 -16
- package/dist/{ColorPicker-4f6b70af.js → ColorPicker-06b731b7.js} +2 -2
- package/dist/{CompanyModal-30c54ce3.js → CompanyModal-b7c42f2a.js} +8 -8
- package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fe4a67bc.js} +19 -19
- package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-2024e993.js} +19 -19
- package/dist/DocForm-af03179d.js +7012 -0
- package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-44161541.js} +14 -14
- package/dist/{DocModalBase-f4915a62.js → DocModalBase-9eb0f26f.js} +4 -4
- package/dist/DocPrint-92d12950.js +222 -0
- package/dist/{DocReceipt-d192000e.js → DocReceipt-4df57e1d.js} +1 -1
- package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-041af744.js} +1 -1
- package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-b07dd391.js} +19 -19
- package/dist/{DocTimeline-b4c20f93.js → DocTimeline-2ae2ca63.js} +7 -7
- package/dist/{DocumentClient-c2319f00.js → DocumentClient-3a1aecf2.js} +8 -6
- package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-ae49ac7a.js} +1617 -1709
- package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-91436523.js} +3 -3
- package/dist/{EmbedInput-654c0477.js → EmbedInput-05e22228.js} +2 -2
- package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-9dabb6d4.js} +10 -10
- package/dist/ErrorCallout-c7f69cd9.js +30 -0
- package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-167a40c8.js} +8 -7
- package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-e9b177e0.js} +29 -29
- package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-8565c461.js} +11 -11
- package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-1e61e8da.js} +3 -3
- package/dist/{Index-5cc51230.js → Index-0708b238.js} +12 -12
- package/dist/{Index-82574a41.js → Index-0799eaba.js} +18 -19
- package/dist/{Index-1a7e98d7.js → Index-1f3de208.js} +11 -10
- package/dist/{Index-d8879ca9.js → Index-27a05d76.js} +2 -2
- package/dist/{Index-b15cfd62.js → Index-43899daf.js} +13 -13
- package/dist/{Index-c4de05aa.js → Index-4446581c.js} +10 -9
- package/dist/{Index-01c63c88.js → Index-49766088.js} +2 -2
- package/dist/{Index-caf5cf44.js → Index-630600c9.js} +94 -94
- package/dist/{Index-b14d0f03.js → Index-6b63686e.js} +4 -4
- package/dist/{Index-34c84bab.js → Index-716dbe24.js} +10 -10
- package/dist/{Index-f935c492.js → Index-72bcad54.js} +10 -10
- package/dist/{Index-61f7dc92.js → Index-84820d3d.js} +2 -2
- package/dist/{Index-e749f6f1.js → Index-85e8119e.js} +14 -14
- package/dist/Index-88e175bf.js +54 -0
- package/dist/{Index-e45a0c32.js → Index-89addabd.js} +27 -27
- package/dist/{Index-701f0d05.js → Index-8b29bd10.js} +2 -2
- package/dist/{Index-d45a1eff.js → Index-8d1c62be.js} +4 -4
- package/dist/{Index-63805642.js → Index-96a07794.js} +9 -9
- package/dist/{Index-60fc8a6e.js → Index-9bbfa37b.js} +3 -3
- package/dist/{Index-7443e91c.js → Index-a7a6f91c.js} +31 -31
- package/dist/{Index-8bca2d87.js → Index-a987a099.js} +9 -9
- package/dist/{Index-98e8bb86.js → Index-b6b60b81.js} +8 -8
- package/dist/{Index-5e35f4a2.js → Index-ba0c8eaa.js} +8 -8
- package/dist/{Index-9aaf8b90.js → Index-c038406f.js} +26 -26
- package/dist/Index-c53330d6.js +79 -0
- package/dist/{Index-9233cc83.js → Index-c58260f8.js} +15 -15
- package/dist/{Index-2535f58f.js → Index-c893d091.js} +2 -2
- package/dist/{Index-1d361d01.js → Index-ca112d97.js} +4 -4
- package/dist/{Index-cd76b120.js → Index-e728d2f7.js} +7 -7
- package/dist/{Index-6ef78b7a.js → Index-ecf93915.js} +2 -2
- package/dist/{Index-c7e68382.js → Index-eda700f4.js} +4 -4
- package/dist/{Index-82b5de12.js → Index-ee75e74a.js} +4 -4
- package/dist/{Index-c67218ce.js → Index-f75b1dd5.js} +15 -15
- package/dist/{Index-66c8cbfa.js → Index-fc722547.js} +4 -4
- package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-483acc75.js} +5 -5
- package/dist/{IsPremiumPreStep-3a087524.js → IsPremiumPreStep-aa08f8c8.js} +856 -432
- package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-ed7db800.js} +3 -3
- package/dist/{NotBindingText-b199006c.js → NotBindingText-a99b4f85.js} +2 -2
- package/dist/{PackageGroup-37ac99b1.js → PackageGroup-8cae78f1.js} +56 -56
- package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-9c1c806e.js} +8 -7
- package/dist/{PdfViewer-38bd8439.js → PdfViewer-1227dda6.js} +5 -4
- package/dist/{PlainHtml-9174cbf6.js → PlainHtml-647219e9.js} +1 -1
- package/dist/PriceHeader-cfb22169.js +337 -0
- package/dist/{SearchApi-2e286be6.js → SearchApi-c0067742.js} +2 -2
- package/dist/{TermsSettings-c74eec79.js → TermsSettings-a0282ad7.js} +11 -11
- package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-71af67bd.js} +3 -3
- package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-16c2879e.js} +3 -3
- package/dist/{UploadModal-6d0abd77.js → UploadModal-084e3c2e.js} +16 -16
- package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-fe87698e.js} +3 -3
- package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-06cfaccc.js} +12 -12
- package/dist/VideoSelectModal-fa81fb92.js +111 -0
- package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-ef48c7eb.js} +3 -3
- package/dist/{cssMode-8552fc56.js → cssMode-916ae2c1.js} +7 -7
- package/dist/dom-068d1a7b.js +59 -0
- package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-24942dd1.js} +1 -1
- package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-2dfa2def.js} +25 -25
- package/dist/formValidationMixin-82793652.js +49 -0
- package/dist/{freemarker2-7e10a65d.js → freemarker2-6fd30e77.js} +7 -7
- package/dist/{handlebars-8045bfa8.js → handlebars-ff07e526.js} +7 -7
- package/dist/{html-8afcb633.js → html-5ad143f9.js} +7 -7
- package/dist/{htmlMode-1a2d1b48.js → htmlMode-adc834ff.js} +7 -7
- package/dist/{index-3d6d7a03.js → index-045c9c73.js} +31 -31
- package/dist/{index-c48c5eb4.js → index-1f068e8e.js} +3 -3
- package/dist/{index-bf93d7c2.js → index-6eda8be0.js} +7 -7
- package/dist/{index-f805bfce.js → index-b3fb8f92.js} +45 -45
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +565 -561
- package/dist/{javascript-dad5561e.js → javascript-9c241e8d.js} +8 -8
- package/dist/{jsonMode-ce09245f.js → jsonMode-36a8e1fd.js} +7 -7
- package/dist/{liquid-05247459.js → liquid-da99d7af.js} +7 -7
- package/dist/{main-04025a56.js → main-2dc98356.js} +15380 -12891
- package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-4ac649c2.js} +1 -1
- package/dist/{publicSenderState-97108de1.js → publicSenderState-1db8a50c.js} +1 -1
- package/dist/{python-3f3513c5.js → python-15d86041.js} +7 -7
- package/dist/{razor-1f3e9c4e.js → razor-19e0207f.js} +7 -7
- package/dist/simplebar.min-9f5e0b8a.js +71 -0
- package/dist/style.css +2 -2
- package/dist/{template-42a1d852.js → template-069f0890.js} +1 -1
- package/dist/{throttle-a2c1f34d.js → throttle-f8ef830f.js} +2 -2
- package/dist/{tinycolor-88fa380f.js → tinycolor-78c3e3d5.js} +1 -1
- package/dist/{FormInputRow-9819eb71.js → tippy.esm-d2a6f864.js} +285 -285
- package/dist/{tsMode-4c026047.js → tsMode-7fcdffc4.js} +7 -7
- package/dist/{typescript-baf56f67.js → typescript-f492bdab.js} +7 -7
- package/dist/{utils-6670dea6.js → utils-aab0bc31.js} +1 -1
- package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-eb01eee5.js} +41 -41
- package/dist/{xml-ffc6146a.js → xml-976a8723.js} +7 -7
- package/package.json +3 -2
- package/stats.html +1 -1
- package/vite-plugin-library-asset-external/index.js +134 -0
- package/dist/DocForm-9ca24de4.js +0 -6772
- package/dist/ErrorCallout-60d0b3ab.js +0 -30
- package/dist/Index-b020a80c.js +0 -47
- package/dist/Index-e80f5f9c.js +0 -79
- package/dist/PriceHeader-e357afe9.js +0 -336
- package/dist/VideoSelectModal-d2299552.js +0 -111
- package/dist/simplebar.min-3af55aab.js +0 -2429
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { V as n, m as r, a as l, g as a, C as i, u as m, n as c } from "./main-
|
|
2
|
-
import { i as u, S as d } from "./formComponentsInstall-
|
|
1
|
+
import { V as n, m as r, a as l, g as a, C as i, u as m, n as c } from "./main-2dc98356.js";
|
|
2
|
+
import { i as u, S as d } from "./formComponentsInstall-2dfa2def.js";
|
|
3
3
|
import "./vuex.esm-4a0fff7c.js";
|
|
4
|
-
import "./simplebar.min-
|
|
5
|
-
import "./mapFormMixin-
|
|
6
|
-
import "./BaseDatePicker-
|
|
7
|
-
import "./ErrorCallout-
|
|
8
|
-
import "./AddClientCallout-
|
|
9
|
-
import "./ClientAutocomplete-
|
|
10
|
-
import "./SearchApi-
|
|
11
|
-
import "./CDropdownItem-
|
|
12
|
-
import "./ClientModal-
|
|
4
|
+
import "./simplebar.min-9f5e0b8a.js";
|
|
5
|
+
import "./mapFormMixin-4ac649c2.js";
|
|
6
|
+
import "./BaseDatePicker-ae7aebf1.js";
|
|
7
|
+
import "./ErrorCallout-c7f69cd9.js";
|
|
8
|
+
import "./AddClientCallout-d8f5bc53.js";
|
|
9
|
+
import "./ClientAutocomplete-e13c2753.js";
|
|
10
|
+
import "./SearchApi-c0067742.js";
|
|
11
|
+
import "./CDropdownItem-5532f8af.js";
|
|
12
|
+
import "./ClientModal-da9fddf9.js";
|
|
13
13
|
import "./index-805c56e4.js";
|
|
14
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
15
|
-
import "./CCallout-
|
|
16
|
-
import "./CField-
|
|
14
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js";
|
|
15
|
+
import "./CCallout-04e2c8c6.js";
|
|
16
|
+
import "./CField-0bc9de28.js";
|
|
17
17
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
18
18
|
import "./regions-29ee6964.js";
|
|
19
19
|
n.use(u);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as t } from "./main-
|
|
1
|
+
import { n as t } from "./main-2dc98356.js";
|
|
2
2
|
const s = {
|
|
3
3
|
name: "DocModalBase",
|
|
4
4
|
components: {},
|
|
@@ -14,17 +14,17 @@ var a = function() {
|
|
|
14
14
|
return o("div", { staticClass: "doc-modal-base" }, [e.showClose ? o("CButton", { staticClass: "absolute text-gray-500 top-4 right-4", attrs: { circle: "", icon: "x" }, on: { click: function(_) {
|
|
15
15
|
return e.$parent.$emit("close");
|
|
16
16
|
} } }) : e._e(), e._t("default")], 2);
|
|
17
|
-
}, n = [],
|
|
17
|
+
}, n = [], c = /* @__PURE__ */ t(
|
|
18
18
|
s,
|
|
19
19
|
a,
|
|
20
20
|
n,
|
|
21
21
|
!1,
|
|
22
22
|
null,
|
|
23
|
-
"
|
|
23
|
+
"bbac188f",
|
|
24
24
|
null,
|
|
25
25
|
null
|
|
26
26
|
);
|
|
27
|
-
const i =
|
|
27
|
+
const i = c.exports;
|
|
28
28
|
export {
|
|
29
29
|
i as D
|
|
30
30
|
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { n as d, A as h, k as c, I as l, B as p, D as a, E as m } from "./main-2dc98356.js";
|
|
2
|
+
const f = {
|
|
3
|
+
i18nOptions: {
|
|
4
|
+
namespaces: "documentPrint",
|
|
5
|
+
messages: {
|
|
6
|
+
en: {
|
|
7
|
+
title: "Print options",
|
|
8
|
+
appendAttachments: "Append attachments",
|
|
9
|
+
appendAttachmentsSub: "Append attachments",
|
|
10
|
+
hideDocumentAttachmentBlocks: "Hide document attachment blocks",
|
|
11
|
+
hideDocumentAttachmentBlocksTooltip: "Hide blocks with the type of attachments.",
|
|
12
|
+
showVerification: "Include verification",
|
|
13
|
+
showVerificationSub: "Signature verification.",
|
|
14
|
+
showLast4ssn: "Include the last 4 digits of the personal identification number from the BankID signature.",
|
|
15
|
+
showEvents: "Show events",
|
|
16
|
+
buttonText: "Download PDF",
|
|
17
|
+
preparingPdf: "Preparing PDF...",
|
|
18
|
+
preparingPdfDone: "PDF is complete",
|
|
19
|
+
preparingPdfError: "Could not create PDF. Try again."
|
|
20
|
+
},
|
|
21
|
+
sv: {
|
|
22
|
+
title: "Utskriftsinställningar",
|
|
23
|
+
appendAttachments: "Bifoga bilagor",
|
|
24
|
+
appendAttachmentsSub: "Inkludera bilagor i slutet av PDF:en.",
|
|
25
|
+
hideDocumentAttachmentBlocks: "Göm dokumentblock som är bilagor",
|
|
26
|
+
hideDocumentAttachmentBlocksTooltip: "Dölj blocken av typen bilagor.",
|
|
27
|
+
showVerification: "Inkludera verifikat",
|
|
28
|
+
showVerificationSub: "Signaturverifikat.",
|
|
29
|
+
showLast4ssn: "Inkludera de sista 4-siffrorna i personnummret från BankID-signaturen",
|
|
30
|
+
showEvents: "Visa händelser",
|
|
31
|
+
buttonText: "Ladda ner PDF",
|
|
32
|
+
preparingPdf: "Förbereder PDF...",
|
|
33
|
+
preparingPdfDone: "PDF är redo",
|
|
34
|
+
preparingPdfError: "Kunde inte skapa PDF. Pröva igen."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
name: "DocumentPrint",
|
|
39
|
+
components: {
|
|
40
|
+
CCheckbox: h
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
document: {
|
|
44
|
+
type: Object,
|
|
45
|
+
required: !0
|
|
46
|
+
},
|
|
47
|
+
isSuperUser: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: !1
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
options: {
|
|
55
|
+
appendAttachments: !0,
|
|
56
|
+
hideDocumentAttachmentBlocks: !1,
|
|
57
|
+
showVerification: !0,
|
|
58
|
+
showEvents: !0,
|
|
59
|
+
showLast4ssn: !0,
|
|
60
|
+
forceDoCreatePdf: !1
|
|
61
|
+
// Only for superuser
|
|
62
|
+
},
|
|
63
|
+
showMoreOptions: !1,
|
|
64
|
+
omitAttachmentBlockTooltip: {
|
|
65
|
+
content: '<svg style="margin-top: 2px;" width="193" height="122" viewBox="0 0 193 122" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="193" height="122" rx="5" fill="white"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" font-weight="bold" letter-spacing="0em"><tspan x="13" y="25.5">' + this.$t("_common:attachment_plural").capitalize() + `</tspan></text><path d="M14 33H25.2941L30 38.225V52H14V33Z" fill="#FFC4C4"/><path opacity="0.34" d="M14 60H25.5L30 64.5V79H14V60Z" fill="#42A4FF"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="46.5">${this.$t("_common:file").capitalize()} #1</tspan></text><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="73.5">${this.$t("_common:file").capitalize()} #2</tspan></text><rect x="13" y="87" width="61" height="12" fill="#E2E2E2"/><rect x="13" y="103" width="168" height="6" fill="#E2E2E2"/><rect x="13" y="112" width="151" height="6" fill="#E2E2E2"/><rect x="13" y="3" width="97" height="6" fill="#E2E2E2"/><rect x="14" y="47" width="16" height="5" fill="#FF1515"/><rect x="14" y="74" width="16" height="5" fill="#42A4FF"/></svg><div style="max-width: 193px; padding: 2px 0 8px 0;">
|
|
66
|
+
${this.$t("hideDocumentAttachmentBlocksTooltip")}
|
|
67
|
+
</div>`,
|
|
68
|
+
placement: "left",
|
|
69
|
+
boundariesElement() {
|
|
70
|
+
return this.$parent.$el;
|
|
71
|
+
},
|
|
72
|
+
html: !0
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
allowVerification() {
|
|
78
|
+
return this.document && this.document.allowVerification;
|
|
79
|
+
},
|
|
80
|
+
showForceCreatePDF() {
|
|
81
|
+
return c.showAdminSettings || this.isSuperUser;
|
|
82
|
+
},
|
|
83
|
+
hasBankIdSignatures() {
|
|
84
|
+
var e;
|
|
85
|
+
const { clients: s, senderClient: t } = this.document;
|
|
86
|
+
return t != null && t.socialNo && ((e = t.answerMethod) == null ? void 0 : e.accept) === "bankId" ? !0 : s.some(
|
|
87
|
+
(i) => {
|
|
88
|
+
var o;
|
|
89
|
+
return i.socialNo && ((o = i.answerMethod) == null ? void 0 : o.accept) === "bankId";
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
created() {
|
|
95
|
+
Object.assign(
|
|
96
|
+
this.options,
|
|
97
|
+
JSON.parse(l.getItem("print-settings"))
|
|
98
|
+
), this.allowVerification || (this.options.showVerification = !1), this.$watch("options", {
|
|
99
|
+
deep: !0,
|
|
100
|
+
handler(s) {
|
|
101
|
+
l.setItem("print-settings", JSON.stringify(s)), !s.showVerification && !s.showEvents && (this.options.showEvents = !0), !s.showVerification && !s.showLast4ssn && (this.options.showLast4ssn = !0);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
methods: {
|
|
106
|
+
async generatePdf() {
|
|
107
|
+
if (!this.document || !this.document.publicId)
|
|
108
|
+
return;
|
|
109
|
+
const { data: s } = await p.addDocument(this.document.publicId, {
|
|
110
|
+
...this.options,
|
|
111
|
+
brand: c.brand
|
|
112
|
+
// this.$brand not defined on init
|
|
113
|
+
// locale: this.$i18n.locale,
|
|
114
|
+
// timeZone: this.$get(Intl.DateTimeFormat().resolvedOptions(), 'timeZone') || '',
|
|
115
|
+
});
|
|
116
|
+
let t, e;
|
|
117
|
+
const i = async () => {
|
|
118
|
+
const { data: n } = await p.get(s) || {};
|
|
119
|
+
({ status: t, url: e } = n);
|
|
120
|
+
}, o = async () => {
|
|
121
|
+
try {
|
|
122
|
+
if (await i(), t === "canceled")
|
|
123
|
+
throw new Error(
|
|
124
|
+
`Canceled preparing document pdf for publicId: ${this.document.publicId}`
|
|
125
|
+
);
|
|
126
|
+
if (t === "completed" && e) {
|
|
127
|
+
const n = () => {
|
|
128
|
+
const r = window.open(e, "_blank");
|
|
129
|
+
return r ? (r.focus(), !0) : !1;
|
|
130
|
+
};
|
|
131
|
+
return n() || a({
|
|
132
|
+
type: "success",
|
|
133
|
+
message: this.$t("preparingPdfDone"),
|
|
134
|
+
time: null,
|
|
135
|
+
// won't close notification after default 6 sec
|
|
136
|
+
closeButton: !0,
|
|
137
|
+
actions: {
|
|
138
|
+
submit: {
|
|
139
|
+
text: this.$t("_common:download"),
|
|
140
|
+
callback: n
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}), "close";
|
|
144
|
+
}
|
|
145
|
+
return await m(3e3), o();
|
|
146
|
+
} catch (n) {
|
|
147
|
+
return a({
|
|
148
|
+
type: "error",
|
|
149
|
+
message: this.$t("preparingPdfError")
|
|
150
|
+
}), this.$error(n, { showMessage: !1 }), "close";
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
await a({
|
|
154
|
+
type: "spinner",
|
|
155
|
+
message: this.$t("preparingPdf"),
|
|
156
|
+
time: o,
|
|
157
|
+
closeButton: !0
|
|
158
|
+
}), this.$emit("close");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var u = function() {
|
|
163
|
+
var t = this, e = t._self._c;
|
|
164
|
+
return e("div", [e("div", { staticClass: "options-wrapper" }, [e("div", { staticClass: "pb-4 text-lg font-semibold" }, [t._v(t._s(t.$t("title")))]), e("div", { staticClass: "print-options" }, [e("div", { staticClass: "pb-1 text-sm font-medium text-gray-800 select-none" }, [t._v(" " + t._s(t.$t("_common:document")) + " ")]), e("div", { staticClass: "option-item" }, [e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", class: { disabled: !t.document.attachedFiles.length }, on: { click: function(i) {
|
|
165
|
+
t.options.appendAttachments = !t.options.appendAttachments;
|
|
166
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.document.attachedFiles.length ? t.options.appendAttachments : !1, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("appendAttachments")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$tc("_common:attachment", { count: t.document.attachedFiles.length })) + " ")])])], 1), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.omitAttachmentBlockTooltip, expression: "omitAttachmentBlockTooltip" }] }, [e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", class: {
|
|
167
|
+
disabled: !t.document.getAllNodesWithType("attachments").length
|
|
168
|
+
}, staticStyle: { "border-top": "2px solid hsl(0, 0%, 100%)" }, on: { click: function(i) {
|
|
169
|
+
t.options.hideDocumentAttachmentBlocks = !t.options.hideDocumentAttachmentBlocks;
|
|
170
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.document.getAllNodesWithType("attachments").length ? t.options.hideDocumentAttachmentBlocks : !1, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("hideDocumentAttachmentBlocks")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$tc("_common:block", { count: t.document.getAllNodesWithType("attachments").length })) + " ")])])], 1)])]), e("div", { staticStyle: { height: "1.25rem" } }), e("div", { staticClass: "pb-1 text-sm font-medium text-gray-800 select-none" }, [t._v(" " + t._s(t.$t("_common:verification").capitalize()) + " ")]), e("div", { staticClass: "option-item", class: { disabled: !t.allowVerification } }, [e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", on: { click: function(i) {
|
|
171
|
+
t.options.showVerification = !t.options.showVerification;
|
|
172
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showVerification, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showVerification")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$t("showVerificationSub")) + " ")])])], 1), t.options.showVerification ? e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", staticStyle: { "padding-left": "2rem", "border-top": "2px solid hsl(0, 0%, 100%)" }, on: { click: function(i) {
|
|
173
|
+
t.options.showEvents = !t.options.showEvents;
|
|
174
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showEvents, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showEvents")))])])], 1) : t._e(), t.options.showVerification && t.hasBankIdSignatures ? e("div", [e("div", { staticClass: "inline-flex items-center p-2 mt-3 mb-1 text-xs font-medium leading-none text-gray-500 rounded cursor-pointer select-none hover:bg-gray-100", on: { click: function(i) {
|
|
175
|
+
t.showMoreOptions = !t.showMoreOptions;
|
|
176
|
+
} } }, [t._v(" " + t._s(t.$t("_common:more").capitalize()) + " "), e("BaseIcon", { staticClass: "ml-0.5 transition-transform", class: { "rotate-90": t.showMoreOptions }, attrs: { type: "chevron-right", "stroke-width": "2.25", size: "12" } })], 1), e("Animation", [t.showMoreOptions ? e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", on: { click: function(i) {
|
|
177
|
+
t.options.showLast4ssn = !t.options.showLast4ssn;
|
|
178
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showLast4ssn, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showLast4ssn")))])])], 1) : t._e()])], 1) : t._e()]), t.showForceCreatePDF ? e("div", { staticClass: "bg-gray-100 option-item__inner hover:bg-gray-200", staticStyle: { "border-top": "2px solid hsl(0, 0%, 100%)", "margin-top": "20px", opacity: "0.8", "font-size": "10px" }, on: { click: function(i) {
|
|
179
|
+
t.options.forceDoCreatePdf = !t.options.forceDoCreatePdf;
|
|
180
|
+
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.forceDoCreatePdf, type: "secondary", size: "small" } }), t._m(0)], 1) : t._e()])]), e("CButton", { attrs: { type: "secondary", size: "medium", wide: "" }, on: { click: t.generatePdf } }, [t._v(" " + t._s(t.$t("buttonText")) + " ")])], 1);
|
|
181
|
+
}, v = [function() {
|
|
182
|
+
var s = this, t = s._self._c;
|
|
183
|
+
return t("div", [t("div", [s._v("Superuser + VPN: Force re-create PDF")])]);
|
|
184
|
+
}], g = /* @__PURE__ */ d(
|
|
185
|
+
f,
|
|
186
|
+
u,
|
|
187
|
+
v,
|
|
188
|
+
!1,
|
|
189
|
+
null,
|
|
190
|
+
"8fa798ef",
|
|
191
|
+
null,
|
|
192
|
+
null
|
|
193
|
+
);
|
|
194
|
+
const _ = g.exports, w = {
|
|
195
|
+
name: "DocPrint",
|
|
196
|
+
components: {
|
|
197
|
+
DocumentPrint: _
|
|
198
|
+
},
|
|
199
|
+
props: {
|
|
200
|
+
document: {
|
|
201
|
+
type: Object,
|
|
202
|
+
required: !0
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
var y = function() {
|
|
207
|
+
var t = this, e = t._self._c;
|
|
208
|
+
return e("div", { staticClass: "h-full w-full overflow-auto px-8 py-12" }, [e("DocumentPrint", { attrs: { document: t.document } })], 1);
|
|
209
|
+
}, x = [], b = /* @__PURE__ */ d(
|
|
210
|
+
w,
|
|
211
|
+
y,
|
|
212
|
+
x,
|
|
213
|
+
!1,
|
|
214
|
+
null,
|
|
215
|
+
null,
|
|
216
|
+
null,
|
|
217
|
+
null
|
|
218
|
+
);
|
|
219
|
+
const C = b.exports;
|
|
220
|
+
export {
|
|
221
|
+
C as default
|
|
222
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as qo, F as Pa, s as _a, d as Ko } from "./
|
|
2
|
-
import { V as Vn, n as ut,
|
|
3
|
-
import { i as Uo } from "./CDropdownItem-
|
|
4
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { t as qo, F as Pa, s as _a, d as Ko } from "./tippy.esm-d2a6f864.js";
|
|
2
|
+
import { V as Vn, n as ut, a2 as gs, b as ys, p as za } from "./main-2dc98356.js";
|
|
3
|
+
import { i as Uo } from "./CDropdownItem-5532f8af.js";
|
|
4
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-d9c2f582.js";
|
|
5
5
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
6
|
-
import { C as $a } from "./ColorPicker-
|
|
6
|
+
import { C as $a } from "./ColorPicker-06b731b7.js";
|
|
7
7
|
import { h as Ha } from "./color-71c20583.js";
|
|
8
8
|
function ee(n) {
|
|
9
9
|
this.content = n;
|
|
@@ -13780,7 +13780,7 @@ const am = {
|
|
|
13780
13780
|
};
|
|
13781
13781
|
var um = function() {
|
|
13782
13782
|
var e = this, t = e._self._c;
|
|
13783
|
-
return t("v-popover", { attrs: { placement: e.showPicker ? "right" : e.isTouchDevice ? "bottom" : "top", "popover-inner-class": "texteditor-tooltip-dropdown-inner is-color-menu
|
|
13783
|
+
return t("v-popover", { attrs: { placement: e.showPicker ? "right" : e.isTouchDevice ? "bottom" : "top", "popover-inner-class": "bg-white texteditor-tooltip-dropdown-inner is-color-menu", "popover-class": "no-animation" }, on: { hide: e.closePicker }, nativeOn: { mousedown: function(r) {
|
|
13784
13784
|
r.preventDefault();
|
|
13785
13785
|
} } }, [t("button", { staticClass: "menu-button", attrs: { "data-texteditor-tooltip": e.$t("_common:color").capitalize() } }, [t("svg", { attrs: { fill: e.editor.getAttributes("textStyle").color, viewBox: "0 0 24 24", width: "20", height: "20", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z" } })])]), t("div", { staticClass: "texteditor-tooltip-dropdown", attrs: { slot: "popover" }, slot: "popover" }, [e.showPicker ? t("ColorPicker", { ref: "colorPicker", staticStyle: { "box-shadow": "none", padding: "0" }, attrs: { value: e.internalColor }, on: { input: function(r) {
|
|
13786
13786
|
return e.setColor(r);
|
|
@@ -13816,7 +13816,7 @@ var um = function() {
|
|
|
13816
13816
|
cm,
|
|
13817
13817
|
!1,
|
|
13818
13818
|
null,
|
|
13819
|
-
"
|
|
13819
|
+
"b98b0ecb",
|
|
13820
13820
|
null,
|
|
13821
13821
|
null
|
|
13822
13822
|
);
|
|
@@ -13889,7 +13889,7 @@ const fm = {
|
|
|
13889
13889
|
};
|
|
13890
13890
|
var pm = function() {
|
|
13891
13891
|
var e = this, t = e._self._c;
|
|
13892
|
-
return t("BubbleMenu", { directives: [{ name: "show", rawName: "v-show", value: (e.editor.isFocused || e.linkMenuIsActive) && !e.editor.isActive("image"), expression: "(editor.isFocused || linkMenuIsActive) && !editor.isActive('image')" }], attrs: { editor: e.editor, "tippy-options": {
|
|
13892
|
+
return t("BubbleMenu", { directives: [{ name: "show", rawName: "v-show", value: (e.editor.isFocused || e.linkMenuIsActive) && !e.editor.isActive("image") && !e.editor.isActive("horizontalRule"), expression: "(editor.isFocused || linkMenuIsActive) && !editor.isActive('image') && !editor.isActive('horizontalRule')" }], attrs: { editor: e.editor, "tippy-options": {
|
|
13893
13893
|
maxWidth: "none"
|
|
13894
13894
|
} } }, [t("div", { staticClass: "menu", class: [
|
|
13895
13895
|
{
|
|
@@ -13945,7 +13945,7 @@ var pm = function() {
|
|
|
13945
13945
|
mm,
|
|
13946
13946
|
!1,
|
|
13947
13947
|
null,
|
|
13948
|
-
"
|
|
13948
|
+
"64a65984",
|
|
13949
13949
|
null,
|
|
13950
13950
|
null
|
|
13951
13951
|
);
|
|
@@ -13953,7 +13953,7 @@ const ym = gm.exports;
|
|
|
13953
13953
|
const bm = {
|
|
13954
13954
|
components: {
|
|
13955
13955
|
FormInputRow: Pa,
|
|
13956
|
-
TextTemplates: () => import("./index-
|
|
13956
|
+
TextTemplates: () => import("./index-b3fb8f92.js")
|
|
13957
13957
|
},
|
|
13958
13958
|
props: {
|
|
13959
13959
|
editor: {
|
|
@@ -14257,7 +14257,7 @@ var Dm = function() {
|
|
|
14257
14257
|
"is-active": r.active && r.active()
|
|
14258
14258
|
}, attrs: { "data-texteditor-tooltip": r.tooltip }, on: { mousedown: (s) => {
|
|
14259
14259
|
r.popup ? r.onClick() : s.preventDefault();
|
|
14260
|
-
}, click: r.onClick } }, [t("BaseIcon", { attrs: { type: r.icon || "info", size: "22" } }), r.popup && e.popupOpen ? t("div", { staticStyle: { position: "absolute", left: "50%", bottom: "calc(100% + 1em)", "background-color": "white", padding: "10px 10px
|
|
14260
|
+
}, click: r.onClick } }, [t("BaseIcon", { attrs: { type: r.icon || "info", size: "22" } }), r.popup && e.popupOpen ? t("div", { staticStyle: { position: "absolute", left: "50%", bottom: "calc(100% + 1em)", "background-color": "white", padding: "10px 10px calc(2 * var(--rem)) 10px", transform: "translate(-50%, 0%)", color: "hsl(0, 0%, 35%)", width: "250px", "box-shadow": "0 8px 14px rgba(0, 0, 0, 0.2)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "8px", cursor: "default" } }, e._l(r.popup(), function(s, o) {
|
|
14261
14261
|
return t("FormInputRow", { key: o, attrs: { label: s.label, inputs: s.inputs } });
|
|
14262
14262
|
}), 1) : e._e()], 1)];
|
|
14263
14263
|
}), e.extensions.snippets && !e.editor.isActive("table") ? t("TextTemplates", { attrs: { placement: "top" }, on: { open: function(r) {
|
|
@@ -14275,7 +14275,7 @@ var Dm = function() {
|
|
|
14275
14275
|
Cm,
|
|
14276
14276
|
!1,
|
|
14277
14277
|
null,
|
|
14278
|
-
"
|
|
14278
|
+
"90213a20",
|
|
14279
14279
|
null,
|
|
14280
14280
|
null
|
|
14281
14281
|
);
|
|
@@ -14570,7 +14570,7 @@ var Mm = function() {
|
|
|
14570
14570
|
Tm,
|
|
14571
14571
|
!1,
|
|
14572
14572
|
null,
|
|
14573
|
-
"
|
|
14573
|
+
"25c52730",
|
|
14574
14574
|
null,
|
|
14575
14575
|
null
|
|
14576
14576
|
);
|
|
@@ -14803,7 +14803,7 @@ const Im = {
|
|
|
14803
14803
|
},
|
|
14804
14804
|
async openPreview() {
|
|
14805
14805
|
var r;
|
|
14806
|
-
const n = () => import("./FilePreviewModal-
|
|
14806
|
+
const n = () => import("./FilePreviewModal-167a40c8.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
|
|
14807
14807
|
this.$modal.show(
|
|
14808
14808
|
n,
|
|
14809
14809
|
{
|
|
@@ -14828,21 +14828,21 @@ var Pm = function() {
|
|
|
14828
14828
|
return t("NodeViewWrapper", { staticClass: "texteditor-image-view", class: [
|
|
14829
14829
|
{
|
|
14830
14830
|
"texteditor-image-view-inline": e.display && e.display !== "block",
|
|
14831
|
-
"
|
|
14831
|
+
"outline outline-2 outline-primary-300": e.isSelected
|
|
14832
14832
|
},
|
|
14833
14833
|
`texteditor-image-view-${e.display}`
|
|
14834
|
-
], attrs: { as: "span", draggable: "true", "data-drag-handle": "" } }, [t("img", { class: { selected: e.isSelected }, attrs: { src: e.src }, on: { click: e.selectImage } }), e.isSelected ? t("div", { staticClass: "image-menu" }, [e._l(e.displayOptions, function(r, i) {
|
|
14835
|
-
return t("CButton", { key: i, class: { "
|
|
14834
|
+
], attrs: { as: "span", draggable: "true", "data-drag-handle": "" } }, [t("img", { class: { selected: e.isSelected }, attrs: { src: e.src }, on: { click: e.selectImage } }), e.isSelected ? t("div", { staticClass: "bg-gray-800 rounded-md image-menu top-2" }, [e._l(e.displayOptions, function(r, i) {
|
|
14835
|
+
return t("CButton", { key: i, class: { "!text-primary-300": e.display === r.value }, attrs: { "data-texteditor-tooltip": r.tooltip, type: "none", size: "small" }, on: { click: function(s) {
|
|
14836
14836
|
return e.changeDisplay(r.value);
|
|
14837
14837
|
} } }, [t("svg", { attrs: { viewBox: "0 0 24 24", width: "21", height: "21", stroke: "currentColor", "stroke-width": "2", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" }, domProps: { innerHTML: e._s(r.icon) } })]);
|
|
14838
|
-
}), t("div", { staticClass: "
|
|
14838
|
+
}), t("div", { staticClass: "bg-gray-500", staticStyle: { width: "1px", height: "1.5em", margin: "0 2px" } }), t("CButton", { attrs: { "data-texteditor-tooltip": e.$t("_common:remove"), type: "none", size: "small" }, on: { click: e.remove } }, [t("BaseIcon", { attrs: { size: 18, type: "trash" } })], 1)], 2) : e._e()]);
|
|
14839
14839
|
}, _m = [], zm = /* @__PURE__ */ ut(
|
|
14840
14840
|
Im,
|
|
14841
14841
|
Pm,
|
|
14842
14842
|
_m,
|
|
14843
14843
|
!1,
|
|
14844
14844
|
null,
|
|
14845
|
-
"
|
|
14845
|
+
"56d16b37",
|
|
14846
14846
|
null,
|
|
14847
14847
|
null
|
|
14848
14848
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as u,
|
|
1
|
+
import { n as u, a2 as b, b as S, a3 as _, a4 as f } from "./main-2dc98356.js";
|
|
2
2
|
import { m as D } from "./vuex.esm-4a0fff7c.js";
|
|
3
3
|
const x = {
|
|
4
4
|
new: {
|
|
@@ -455,20 +455,20 @@ const H = U.exports, K = {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
var
|
|
458
|
+
var J = function() {
|
|
459
459
|
var t = this, e = t._self._c;
|
|
460
460
|
return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { document: t.document, size: "large" } }, [e("div", { staticClass: "border-b mb-4 pb-4", attrs: { slot: "header" }, slot: "header" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1.5 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("StatusBadge", { attrs: { status: t.document.status } })], 1)])])], 1);
|
|
461
|
-
},
|
|
461
|
+
}, Q = [], W = /* @__PURE__ */ u(
|
|
462
462
|
K,
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
J,
|
|
464
|
+
Q,
|
|
465
465
|
!1,
|
|
466
466
|
null,
|
|
467
467
|
null,
|
|
468
468
|
null,
|
|
469
469
|
null
|
|
470
470
|
);
|
|
471
|
-
const
|
|
471
|
+
const Z = W.exports;
|
|
472
472
|
export {
|
|
473
|
-
|
|
473
|
+
Z as default
|
|
474
474
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { n, V as d } from "./main-
|
|
2
|
-
import { D as u
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
1
|
+
import { n, V as d } from "./main-2dc98356.js";
|
|
2
|
+
import { D as u } from "./DocumentLayout-ae49ac7a.js";
|
|
3
|
+
import { f as m } from "./formValidationMixin-82793652.js";
|
|
4
|
+
import { a as l } from "./answerDocumentMixin-ef48c7eb.js";
|
|
5
|
+
import "./CDropdownItem-5532f8af.js";
|
|
6
|
+
import "./dom-068d1a7b.js";
|
|
5
7
|
const f = (s) => {
|
|
6
8
|
var e;
|
|
7
9
|
return (e = window == null ? void 0 : window.parent) == null ? void 0 : e.postMessage(s, "*");
|
|
@@ -139,7 +141,7 @@ var C = function() {
|
|
|
139
141
|
null,
|
|
140
142
|
null
|
|
141
143
|
);
|
|
142
|
-
const
|
|
144
|
+
const O = $.exports;
|
|
143
145
|
export {
|
|
144
|
-
|
|
146
|
+
O as default
|
|
145
147
|
};
|