@cling-se/widget 0.9.4 → 0.9.5

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 (145) hide show
  1. package/dist/{AddClientCallout-d472aa84.js → AddClientCallout-e4e9874f.js} +5 -5
  2. package/dist/{AnswerModal-06487437.js → AnswerModal-acd3b9c0.js} +248 -248
  3. package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-34e91526.js} +8 -8
  4. package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-581297bc.js} +43 -43
  5. package/dist/{BaseInput-2723d613.js → BaseInput-29d88150.js} +1 -1
  6. package/dist/{BaseUpload-996d74b3.js → BaseUpload-84d3b68b.js} +3 -3
  7. package/dist/{BlockMedia-00907fb6.js → BlockMedia-319932b8.js} +1 -1
  8. package/dist/{CCallout-ffa95028.js → CCallout-88ae9c08.js} +6 -6
  9. package/dist/{CDropdownItem-74672842.js → CDropdownItem-d46bf062.js} +76 -75
  10. package/dist/{CField-06dd50f1.js → CField-be05883b.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
  12. package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-68f76bfc.js} +4 -4
  13. package/dist/{ClientModal-d276aabd.js → ClientModal-73086005.js} +16 -16
  14. package/dist/{ColorPicker-4f6b70af.js → ColorPicker-11ee76f0.js} +2 -2
  15. package/dist/{CompanyModal-30c54ce3.js → CompanyModal-0fec4480.js} +8 -8
  16. package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fba78b6f.js} +19 -19
  17. package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-7ffa15b1.js} +19 -19
  18. package/dist/{DocForm-9ca24de4.js → DocForm-e56b3a0c.js} +1190 -819
  19. package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-cdc4eaf8.js} +14 -14
  20. package/dist/{DocModalBase-f4915a62.js → DocModalBase-e473b946.js} +4 -4
  21. package/dist/DocPrint-6d8b1f14.js +222 -0
  22. package/dist/{DocReceipt-d192000e.js → DocReceipt-c8a543f8.js} +1 -1
  23. package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-70effa09.js} +1 -1
  24. package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-cce51e7c.js} +19 -19
  25. package/dist/{DocTimeline-b4c20f93.js → DocTimeline-c2cbd773.js} +11 -11
  26. package/dist/{DocumentClient-c2319f00.js → DocumentClient-611c8c1c.js} +8 -6
  27. package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-86c367d1.js} +1617 -1709
  28. package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-441a9fdb.js} +3 -3
  29. package/dist/{EmbedInput-654c0477.js → EmbedInput-a5938c25.js} +2 -2
  30. package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-141ab53c.js} +10 -10
  31. package/dist/ErrorCallout-7dea37df.js +30 -0
  32. package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-875fd8c9.js} +8 -7
  33. package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-0364b6df.js} +29 -29
  34. package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-2d3a69db.js} +11 -11
  35. package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-7c70045f.js} +3 -3
  36. package/dist/{Index-f935c492.js → Index-006a27da.js} +10 -10
  37. package/dist/{Index-6ef78b7a.js → Index-0313a553.js} +2 -2
  38. package/dist/{Index-9aaf8b90.js → Index-06bd31c3.js} +26 -26
  39. package/dist/Index-07ae23ce.js +54 -0
  40. package/dist/{Index-7443e91c.js → Index-0f4c9eb4.js} +34 -34
  41. package/dist/{Index-c4de05aa.js → Index-1e0cf88a.js} +10 -9
  42. package/dist/{Index-d45a1eff.js → Index-1fc54467.js} +4 -4
  43. package/dist/{Index-e749f6f1.js → Index-205dd368.js} +14 -14
  44. package/dist/{Index-34c84bab.js → Index-245f88ff.js} +10 -10
  45. package/dist/{Index-d8879ca9.js → Index-28bdb859.js} +2 -2
  46. package/dist/{Index-60fc8a6e.js → Index-2a0c06b1.js} +3 -3
  47. package/dist/{Index-63805642.js → Index-3d84a32c.js} +9 -9
  48. package/dist/{Index-66c8cbfa.js → Index-418c517f.js} +4 -4
  49. package/dist/{Index-e45a0c32.js → Index-5196628a.js} +27 -27
  50. package/dist/{Index-61f7dc92.js → Index-532b8844.js} +2 -2
  51. package/dist/{Index-b14d0f03.js → Index-53348c92.js} +4 -4
  52. package/dist/{Index-9233cc83.js → Index-54962a1e.js} +15 -15
  53. package/dist/{Index-701f0d05.js → Index-5de564da.js} +2 -2
  54. package/dist/{Index-c67218ce.js → Index-6f957f7e.js} +15 -15
  55. package/dist/{Index-98e8bb86.js → Index-710d1132.js} +8 -8
  56. package/dist/{Index-8bca2d87.js → Index-7a2f20fd.js} +9 -9
  57. package/dist/{Index-1d361d01.js → Index-818ef607.js} +4 -4
  58. package/dist/Index-875e7805.js +79 -0
  59. package/dist/{Index-82574a41.js → Index-889b6a45.js} +18 -19
  60. package/dist/{Index-82b5de12.js → Index-8975cd1e.js} +4 -4
  61. package/dist/{Index-1a7e98d7.js → Index-affdb14c.js} +11 -10
  62. package/dist/{Index-01c63c88.js → Index-b80ab22f.js} +2 -2
  63. package/dist/{Index-5e35f4a2.js → Index-ba48e68b.js} +8 -8
  64. package/dist/{Index-caf5cf44.js → Index-beb43a1a.js} +94 -94
  65. package/dist/{Index-b15cfd62.js → Index-c746dc64.js} +13 -13
  66. package/dist/{Index-2535f58f.js → Index-cf54ef50.js} +2 -2
  67. package/dist/{Index-c7e68382.js → Index-dbf5c34c.js} +4 -4
  68. package/dist/{Index-5cc51230.js → Index-fa01557d.js} +12 -12
  69. package/dist/{Index-cd76b120.js → Index-ff60354c.js} +7 -7
  70. package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-c520bed9.js} +5 -5
  71. package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
  72. package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-722723f7.js} +3 -3
  73. package/dist/{NotBindingText-b199006c.js → NotBindingText-613399b6.js} +2 -2
  74. package/dist/{PackageGroup-37ac99b1.js → PackageGroup-1085c76c.js} +56 -56
  75. package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-f98a6f75.js} +8 -7
  76. package/dist/{PdfViewer-38bd8439.js → PdfViewer-096bbf00.js} +5 -4
  77. package/dist/{PlainHtml-9174cbf6.js → PlainHtml-752bc8d6.js} +1 -1
  78. package/dist/PriceHeader-e25df5eb.js +337 -0
  79. package/dist/{SearchApi-2e286be6.js → SearchApi-20629627.js} +2 -2
  80. package/dist/{TermsSettings-c74eec79.js → TermsSettings-4cc4a9ee.js} +11 -11
  81. package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-c292abc6.js} +3 -3
  82. package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-406175fb.js} +3 -3
  83. package/dist/{UploadModal-6d0abd77.js → UploadModal-0cbd0c8f.js} +16 -16
  84. package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
  85. package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-51c75143.js} +12 -12
  86. package/dist/VideoSelectModal-e34cde4b.js +111 -0
  87. package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-574c5304.js} +3 -3
  88. package/dist/assets/article-options-10291.png +0 -0
  89. package/dist/assets/bg-base-13048.png +0 -0
  90. package/dist/assets/bg-pro-81076.png +0 -0
  91. package/dist/assets/bg-start-20630.png +0 -0
  92. package/dist/assets/blank-10674.png +0 -0
  93. package/dist/assets/block-options-17322.png +0 -0
  94. package/dist/assets/columnGallery.image-24825.png +0 -0
  95. package/dist/assets/doc-send-94456.png +0 -0
  96. package/dist/assets/drag-block-17194.png +0 -0
  97. package/dist/assets/headerCircularGradient.image-13878.png +0 -0
  98. package/dist/assets/roiCalculator.image-14704.png +0 -0
  99. package/dist/assets/text-bubble-53861.png +0 -0
  100. package/dist/{cssMode-8552fc56.js → cssMode-eda08630.js} +19 -15
  101. package/dist/dom-068d1a7b.js +59 -0
  102. package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-72f8dd7a.js} +1 -1
  103. package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-3f1c6477.js} +40 -40
  104. package/dist/formValidationMixin-d4e84872.js +49 -0
  105. package/dist/{freemarker2-7e10a65d.js → freemarker2-42cdfba5.js} +23 -19
  106. package/dist/{handlebars-8045bfa8.js → handlebars-b4515777.js} +15 -11
  107. package/dist/{html-8afcb633.js → html-ea5d1845.js} +18 -14
  108. package/dist/{htmlMode-1a2d1b48.js → htmlMode-1cc3531d.js} +23 -19
  109. package/dist/{index-f805bfce.js → index-07377b76.js} +45 -45
  110. package/dist/index-676b9274.js +17 -0
  111. package/dist/{index-bf93d7c2.js → index-762349d7.js} +7 -7
  112. package/dist/{index-3d6d7a03.js → index-7adda710.js} +31 -31
  113. package/dist/index.es.js +8 -8
  114. package/dist/index.umd.js +537 -533
  115. package/dist/{javascript-dad5561e.js → javascript-185ef2e0.js} +15 -11
  116. package/dist/{jsonMode-ce09245f.js → jsonMode-59ea4e99.js} +23 -19
  117. package/dist/{liquid-05247459.js → liquid-517f2a7c.js} +18 -14
  118. package/dist/{main-04025a56.js → main-95207159.js} +15380 -12891
  119. package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-a245a297.js} +1 -1
  120. package/dist/{publicSenderState-97108de1.js → publicSenderState-bea5980b.js} +1 -1
  121. package/dist/{python-3f3513c5.js → python-eb6703d8.js} +15 -11
  122. package/dist/{razor-1f3e9c4e.js → razor-4c5b7deb.js} +22 -18
  123. package/dist/simplebar.min-97b539d6.js +71 -0
  124. package/dist/style.css +2 -2
  125. package/dist/template-b3af7583.js +528 -0
  126. package/dist/{throttle-a2c1f34d.js → throttle-a0ce8f66.js} +2 -2
  127. package/dist/{tinycolor-88fa380f.js → tinycolor-65e7dc2e.js} +1 -1
  128. package/dist/{FormInputRow-9819eb71.js → tippy.esm-3c111ba9.js} +285 -285
  129. package/dist/{tsMode-4c026047.js → tsMode-a4a0e653.js} +19 -15
  130. package/dist/{typescript-baf56f67.js → typescript-aeab7849.js} +15 -11
  131. package/dist/{utils-6670dea6.js → utils-580c7144.js} +1 -1
  132. package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-2c22e5f8.js} +41 -41
  133. package/dist/{xml-ffc6146a.js → xml-098907e6.js} +18 -14
  134. package/package.json +3 -2
  135. package/stats.html +1 -1
  136. package/vite-plugin-library-asset-external/index.js +134 -0
  137. package/dist/ErrorCallout-60d0b3ab.js +0 -30
  138. package/dist/Index-b020a80c.js +0 -47
  139. package/dist/Index-e80f5f9c.js +0 -79
  140. package/dist/IsPremiumPreStep-3a087524.js +0 -1919
  141. package/dist/PriceHeader-e357afe9.js +0 -336
  142. package/dist/VideoSelectModal-d2299552.js +0 -111
  143. package/dist/index-c48c5eb4.js +0 -14
  144. package/dist/simplebar.min-3af55aab.js +0 -2429
  145. package/dist/template-42a1d852.js +0 -526
@@ -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-04025a56.js";
2
- import { i as u, S as d } from "./formComponentsInstall-ad9c2a83.js";
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-95207159.js";
2
+ import { i as u, S as d } from "./formComponentsInstall-3f1c6477.js";
3
3
  import "./vuex.esm-4a0fff7c.js";
4
- import "./simplebar.min-3af55aab.js";
5
- import "./mapFormMixin-8d073f99.js";
6
- import "./BaseDatePicker-8c098701.js";
7
- import "./ErrorCallout-60d0b3ab.js";
8
- import "./AddClientCallout-d472aa84.js";
9
- import "./ClientAutocomplete-f65643dd.js";
10
- import "./SearchApi-2e286be6.js";
11
- import "./CDropdownItem-74672842.js";
12
- import "./ClientModal-d276aabd.js";
4
+ import "./simplebar.min-97b539d6.js";
5
+ import "./mapFormMixin-a245a297.js";
6
+ import "./BaseDatePicker-581297bc.js";
7
+ import "./ErrorCallout-7dea37df.js";
8
+ import "./AddClientCallout-e4e9874f.js";
9
+ import "./ClientAutocomplete-68f76bfc.js";
10
+ import "./SearchApi-20629627.js";
11
+ import "./CDropdownItem-d46bf062.js";
12
+ import "./ClientModal-73086005.js";
13
13
  import "./index-805c56e4.js";
14
- import "./CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js";
15
- import "./CCallout-ffa95028.js";
16
- import "./CField-06dd50f1.js";
14
+ import "./CSlider.vue_vue_type_style_index_0_lang-df4c839e.js";
15
+ import "./CCallout-88ae9c08.js";
16
+ import "./CField-be05883b.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-04025a56.js";
1
+ import { n as t } from "./main-95207159.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 = [], l = /* @__PURE__ */ t(
17
+ }, n = [], c = /* @__PURE__ */ t(
18
18
  s,
19
19
  a,
20
20
  n,
21
21
  !1,
22
22
  null,
23
- "8a946449",
23
+ "bbac188f",
24
24
  null,
25
25
  null
26
26
  );
27
- const i = l.exports;
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-95207159.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,4 +1,4 @@
1
- import { g as p, n as u } from "./main-04025a56.js";
1
+ import { g as p, n as u } from "./main-95207159.js";
2
2
  import { m as g, a as _ } from "./vuex.esm-4a0fff7c.js";
3
3
  const f = {
4
4
  sv: {
@@ -1,4 +1,4 @@
1
- import { g as m, n as a } from "./main-04025a56.js";
1
+ import { g as m, n as a } from "./main-95207159.js";
2
2
  import { m as c, a as d } from "./vuex.esm-4a0fff7c.js";
3
3
  const l = {
4
4
  name: "DocumentSendReminderModal",
@@ -1,9 +1,9 @@
1
- import { t as qo, F as Pa, s as _a, d as Ko } from "./FormInputRow-9819eb71.js";
2
- import { V as Vn, n as ut, Y as gs, b as ys, p as za } from "./main-04025a56.js";
3
- import { i as Uo } from "./CDropdownItem-74672842.js";
4
- import "./CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js";
1
+ import { t as qo, F as Pa, s as _a, d as Ko } from "./tippy.esm-3c111ba9.js";
2
+ import { V as Vn, n as ut, P as gs, b as ys, p as za } from "./main-95207159.js";
3
+ import { i as Uo } from "./CDropdownItem-d46bf062.js";
4
+ import "./CSlider.vue_vue_type_style_index_0_lang-df4c839e.js";
5
5
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
6
- import { C as $a } from "./ColorPicker-4f6b70af.js";
6
+ import { C as $a } from "./ColorPicker-11ee76f0.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 has-background-white", "popover-class": "no-animation" }, on: { hide: e.closePicker }, nativeOn: { mousedown: function(r) {
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
- "6a55049a",
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
- "c4d249a2",
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-f805bfce.js")
13956
+ TextTemplates: () => import("./index-07377b76.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 2rem 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) {
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
- "2552233d",
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
- "7f9f62f0",
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-895bd1bd.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
14806
+ const n = () => import("./FilePreviewModal-875fd8c9.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
- "is-selected": e.isSelected
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: { "is-active": e.display === r.value }, attrs: { "data-texteditor-tooltip": r.tooltip, type: "none", size: "small" }, on: { click: function(s) {
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: "has-background-grey", 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()]);
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
- "b38eb5a9",
14845
+ "56d16b37",
14846
14846
  null,
14847
14847
  null
14848
14848
  );
@@ -1,4 +1,4 @@
1
- import { n as u, Y as b, b as S, Z as _, $ as f } from "./main-04025a56.js";
1
+ import { n as u, P as b, b as S, a3 as _, a4 as f } from "./main-95207159.js";
2
2
  import { m as D } from "./vuex.esm-4a0fff7c.js";
3
3
  const x = {
4
4
  new: {
@@ -212,7 +212,7 @@ var F = function() {
212
212
  null,
213
213
  null
214
214
  );
215
- const R = j.exports, L = {
215
+ const R = j.exports, P = {
216
216
  sv: {
217
217
  clientName: "Kunden",
218
218
  byName: "Av {{- name}}",
@@ -249,11 +249,11 @@ const R = j.exports, L = {
249
249
  expiredContent: "The expiration date has passed",
250
250
  toEmail: "To: {{email}}"
251
251
  }
252
- }, P = {
252
+ }, L = {
253
253
  name: "DocumentTimeline",
254
254
  i18nOptions: {
255
255
  namespaces: "documentTimeline",
256
- messages: L
256
+ messages: P
257
257
  },
258
258
  components: {
259
259
  EventItem: R
@@ -433,7 +433,7 @@ var G = function() {
433
433
  return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, createdAt: n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size: t.size } });
434
434
  })], 2);
435
435
  }, V = [], U = /* @__PURE__ */ u(
436
- P,
436
+ L,
437
437
  G,
438
438
  V,
439
439
  !1,
@@ -455,20 +455,20 @@ const H = U.exports, K = {
455
455
  }
456
456
  }
457
457
  };
458
- var Y = function() {
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
- }, Z = [], J = /* @__PURE__ */ u(
461
+ }, Q = [], W = /* @__PURE__ */ u(
462
462
  K,
463
- Y,
464
- Z,
463
+ J,
464
+ Q,
465
465
  !1,
466
466
  null,
467
467
  null,
468
468
  null,
469
469
  null
470
470
  );
471
- const X = J.exports;
471
+ const Z = W.exports;
472
472
  export {
473
- X as default
473
+ Z as default
474
474
  };
@@ -1,7 +1,9 @@
1
- import { n, V as d } from "./main-04025a56.js";
2
- import { D as u, f as m } from "./formValidationMixin-4920ab53.js";
3
- import { a as l } from "./answerDocumentMixin-66023e62.js";
4
- import "./CDropdownItem-74672842.js";
1
+ import { n, V as d } from "./main-95207159.js";
2
+ import { D as u } from "./DocumentLayout-86c367d1.js";
3
+ import { f as m } from "./formValidationMixin-d4e84872.js";
4
+ import { a as l } from "./answerDocumentMixin-574c5304.js";
5
+ import "./CDropdownItem-d46bf062.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 A = $.exports;
144
+ const O = $.exports;
143
145
  export {
144
- A as default
146
+ O as default
145
147
  };