@cling-se/widget 0.9.7 → 0.9.10

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 (132) hide show
  1. package/.env +11 -11
  2. package/README.md +35 -35
  3. package/dist/{AddClientCallout-22eea733.js → AddClientCallout-98b5d2c9.js} +5 -5
  4. package/dist/{AnswerModal-7441b8d3.js → AnswerModal-995e7a87.js} +7 -7
  5. package/dist/{AttachmentItem-34cd96fc.js → AttachmentItem-331b9c1e.js} +4 -4
  6. package/dist/{BaseDatePicker-5fcfcdcb.js → BaseDatePicker-7f047527.js} +1 -1
  7. package/dist/{BaseInput-c9d37ee6.js → BaseInput-c79f0001.js} +1 -1
  8. package/dist/{BaseUpload-8c9116a1.js → BaseUpload-9402cc1b.js} +3 -3
  9. package/dist/{BlockMedia-c0637f45.js → BlockMedia-80a082ed.js} +2 -2
  10. package/dist/{CCallout-d5efd737.js → CCallout-bd314caa.js} +6 -6
  11. package/dist/{CDropdownItem-32216ea8.js → CDropdownItem-ab42f924.js} +5 -5
  12. package/dist/{CField-b58cafce.js → CField-6da7299b.js} +1 -1
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-a2818d05.js → CSlider.vue_vue_type_style_index_0_lang-c70342a2.js} +1 -1
  14. package/dist/{ClientAutocomplete-1569a879.js → ClientAutocomplete-67fc253c.js} +6 -6
  15. package/dist/{ClientModal-4ff2f08c.js → ClientModal-1709e8c7.js} +5 -5
  16. package/dist/{ColorPicker-4a830e26.js → ColorPicker-4880a624.js} +2 -2
  17. package/dist/{CompanyModal-a6d69d5f.js → CompanyModal-dbe85884.js} +4 -4
  18. package/dist/{ContentWrapper-8579f277.js → ContentWrapper-a602cc3d.js} +14 -14
  19. package/dist/{CoverBlockSettings-4284e111.js → CoverBlockSettings-f37fe6e1.js} +18 -18
  20. package/dist/DocAnswer-081e8239.js +33 -0
  21. package/dist/{DocForm-28752d98.js → DocForm-c69281fc.js} +186 -144
  22. package/dist/{DocFormSend-b7253ff4.js → DocFormSend-c9b955b9.js} +19 -18
  23. package/dist/{DocModalBase-a4f82cb3.js → DocModalBase-8c238a59.js} +4 -4
  24. package/dist/{DocPrint-54e0d308.js → DocPrint-2a181ffb.js} +5 -5
  25. package/dist/{DocReceipt-622afb67.js → DocReceipt-00c0f631.js} +1 -1
  26. package/dist/{DocSendReminder-2a4639e1.js → DocSendReminder-9effd808.js} +1 -1
  27. package/dist/{DocTextEditor-a795ba8d.js → DocTextEditor-0c8a4782.js} +12 -12
  28. package/dist/{DocTimeline-ea007937.js → DocTimeline-be5e8b9d.js} +1 -1
  29. package/dist/{DocumentClient-79f10a0e.js → DocumentClient-13f55b25.js} +5 -5
  30. package/dist/{DocumentLayout-3882fade.js → DocumentLayout-2ff55f9f.js} +120 -120
  31. package/dist/{DocumentLogotype-3dd2408b.js → DocumentLogotype-80a2521a.js} +6 -6
  32. package/dist/{EmbedInput-a748d1e5.js → EmbedInput-8572a42b.js} +2 -2
  33. package/dist/{EmbedSettings-2505d3fb.js → EmbedSettings-1a60358e.js} +5 -5
  34. package/dist/{ErrorCallout-ca6aa8a6.js → ErrorCallout-84e8168b.js} +2 -2
  35. package/dist/{FilePreviewModal-fbc76085.js → FilePreviewModal-cdafbf1c.js} +5 -5
  36. package/dist/{HeaderSettings-66f76d2b.js → HeaderSettings-9f4d182b.js} +15 -15
  37. package/dist/{ImageSelectModal-96c98a50.js → ImageSelectModal-b97c8185.js} +10 -10
  38. package/dist/{ImageUploadWrapper-706252ad.js → ImageUploadWrapper-ebcdbc9e.js} +3 -3
  39. package/dist/{Index-782f6e43.js → Index-0022bc40.js} +4 -4
  40. package/dist/{Index-6d960f1a.js → Index-0306a974.js} +12 -12
  41. package/dist/{Index-a777a7b4.js → Index-039d9c9d.js} +6 -6
  42. package/dist/{Index-f9ec7827.js → Index-0bbbe1cf.js} +11 -11
  43. package/dist/{Index-aac38d76.js → Index-0bd4a30c.js} +6 -6
  44. package/dist/{Index-ebc0f1dd.js → Index-11d16691.js} +22 -22
  45. package/dist/{Index-451a4720.js → Index-2ecefac2.js} +4 -4
  46. package/dist/{Index-2b1c5d21.js → Index-341f9388.js} +8 -8
  47. package/dist/{Index-0615e8dd.js → Index-3ccc66e4.js} +4 -4
  48. package/dist/{Index-774c1760.js → Index-451f5485.js} +5 -5
  49. package/dist/{Index-57ccc476.js → Index-473d0fad.js} +3 -3
  50. package/dist/{Index-0cb341e6.js → Index-4bbfdb2e.js} +2 -2
  51. package/dist/{Index-cab451ea.js → Index-5428e87c.js} +11 -11
  52. package/dist/{Index-aec49119.js → Index-623bb993.js} +4 -4
  53. package/dist/{Index-170e6883.js → Index-6c782bef.js} +12 -12
  54. package/dist/{Index-89c23ed7.js → Index-7b1fd376.js} +2 -2
  55. package/dist/{Index-a86877c9.js → Index-7f01697f.js} +7 -7
  56. package/dist/{Index-030436a2.js → Index-8053871b.js} +4 -4
  57. package/dist/{Index-ee710141.js → Index-8755440b.js} +5 -5
  58. package/dist/{Index-583792c4.js → Index-8c4fd5b4.js} +27 -27
  59. package/dist/{Index-fdac03a0.js → Index-8cba5dac.js} +26 -26
  60. package/dist/{Index-63872178.js → Index-8ecb9aa4.js} +2 -2
  61. package/dist/{Index-54b05e33.js → Index-8eff4eae.js} +2 -2
  62. package/dist/{Index-52979620.js → Index-95f0dd2f.js} +19 -19
  63. package/dist/{Index-ec7fe5df.js → Index-9c5f5d6e.js} +7 -7
  64. package/dist/{Index-813e0a59.js → Index-b233276b.js} +2 -2
  65. package/dist/{Index-ea43ed06.js → Index-ba4cfb80.js} +6 -6
  66. package/dist/{Index-2af3cf93.js → Index-c2b2ccd9.js} +8 -8
  67. package/dist/{Index-4f976bd6.js → Index-dca28212.js} +2 -2
  68. package/dist/{Index-8e3a0d81.js → Index-dd30bbc5.js} +12 -12
  69. package/dist/{Index-2a568234.js → Index-ddf49640.js} +6 -6
  70. package/dist/{Index-3cfea400.js → Index-de93e029.js} +7 -7
  71. package/dist/{Index-d9307e92.js → Index-f9063054.js} +7 -7
  72. package/dist/{Index-cc243c40.js → Index-ffc7dba1.js} +5 -5
  73. package/dist/{InputToggleRow-3764a034.js → InputToggleRow-533651e6.js} +2 -2
  74. package/dist/{IsPremiumPreStep-310fc507.js → IsPremiumPreStep-8d46fadc.js} +248 -242
  75. package/dist/{MediaWrapper-ac4d559e.js → MediaWrapper-388589e5.js} +3 -3
  76. package/dist/{NotBindingText-9d926894.js → NotBindingText-b833c49b.js} +2 -2
  77. package/dist/{PackageGroup-11132495.js → PackageGroup-41b2d524.js} +15 -15
  78. package/dist/{PdfTerms-5567e1d9.js → PdfTerms-461fcd9e.js} +7 -7
  79. package/dist/{PdfViewer-6e5442ae.js → PdfViewer-099b598c.js} +2 -2
  80. package/dist/{PlainHtml-3a94783a.js → PlainHtml-37aa5b7b.js} +1 -1
  81. package/dist/PriceHeader-41c48787.js +337 -0
  82. package/dist/{SearchApi-66a3369e.js → SearchApi-25909227.js} +2 -2
  83. package/dist/{TermsSettings-42464249.js → TermsSettings-c730ac70.js} +10 -10
  84. package/dist/{ThemeColorRow-4c02f3cf.js → ThemeColorRow-31d8285b.js} +3 -3
  85. package/dist/{ToggleBinding-53a84127.js → ToggleBinding-1a98360f.js} +3 -3
  86. package/dist/{UploadModal-7d2c2dcc.js → UploadModal-e0a37c3e.js} +4 -4
  87. package/dist/{VideoPlayerInput-d53ffa5e.js → VideoPlayerInput-4d7f302a.js} +3 -3
  88. package/dist/{VideoPlayerSettings-d89173c1.js → VideoPlayerSettings-81168a6b.js} +5 -5
  89. package/dist/{VideoSelectModal-1b2f9e2f.js → VideoSelectModal-dc429ff0.js} +28 -28
  90. package/dist/{answerDocumentMixin-3e4ed95e.js → answerDocumentMixin-3ff2b25d.js} +3 -3
  91. package/dist/{cssMode-f680359e.js → cssMode-c6b1b286.js} +7 -7
  92. package/dist/{focusDrawerMixin-7cf9e926.js → focusDrawerMixin-01b547f0.js} +1 -1
  93. package/dist/{formComponentsInstall-60696be3.js → formComponentsInstall-9e33cb8f.js} +20 -20
  94. package/dist/{formValidationMixin-5d709c26.js → formValidationMixin-74c239ee.js} +1 -1
  95. package/dist/{freemarker2-06443b0a.js → freemarker2-076519a0.js} +7 -7
  96. package/dist/{handlebars-0d8766bf.js → handlebars-bb155717.js} +7 -7
  97. package/dist/{html-81ed4c26.js → html-1cf008d9.js} +7 -7
  98. package/dist/{htmlMode-3be0b9fd.js → htmlMode-bf67fa2b.js} +7 -7
  99. package/dist/{index-eab9b762.js → index-0f09ca1c.js} +1 -1
  100. package/dist/{index-fe745f0b.js → index-7097f05c.js} +10 -10
  101. package/dist/{index-3ca26b2c.js → index-908333a3.js} +9 -9
  102. package/dist/{index-7964f39c.js → index-e37214e9.js} +3 -3
  103. package/dist/index.es.js +3 -3
  104. package/dist/index.umd.js +496 -493
  105. package/dist/{javascript-da51eff4.js → javascript-b98377f9.js} +8 -8
  106. package/dist/{jsonMode-f69b77fa.js → jsonMode-e9595a57.js} +7 -7
  107. package/dist/{liquid-4c01bc35.js → liquid-b60636e3.js} +7 -7
  108. package/dist/{main-8c6aae3a.js → main-cf622dd3.js} +26108 -26001
  109. package/dist/{mapFormMixin-fe8972cd.js → mapFormMixin-490a1765.js} +1 -1
  110. package/dist/{publicSenderState-9cd2ff24.js → publicSenderState-6b369e21.js} +1 -1
  111. package/dist/{python-48563b51.js → python-4e4d18f5.js} +7 -7
  112. package/dist/{razor-3e2ef5a9.js → razor-63ead89f.js} +7 -7
  113. package/dist/{simplebar.min-baa28a2a.js → simplebar.min-3f1edc12.js} +1 -1
  114. package/dist/style.css +2 -2
  115. package/dist/{template-c64eadf9.js → template-66eba036.js} +1 -1
  116. package/dist/throttle-2b45d29c.js +18 -0
  117. package/dist/{tinycolor-c5753ad0.js → tinycolor-9f3cc25c.js} +1 -1
  118. package/dist/{tippy.esm-495f26e4.js → tippy.esm-dec03596.js} +7 -7
  119. package/dist/{tsMode-15587c3c.js → tsMode-e93504e4.js} +7 -7
  120. package/dist/{typescript-ebb43ca2.js → typescript-111230d0.js} +7 -7
  121. package/dist/{utils-8c0b7aab.js → utils-fb02e603.js} +1 -1
  122. package/dist/{vuedraggable.umd-45109ca7.js → vuedraggable.umd-f2d6d3e3.js} +1 -1
  123. package/dist/{xml-d34c22ca.js → xml-987e33cc.js} +7 -7
  124. package/jsconfig.json +11 -11
  125. package/package.json +4 -2
  126. package/postcss.config.cjs +6 -6
  127. package/stats.html +1 -1
  128. package/tailwind.config.cjs +26 -26
  129. package/vite-plugin-library-asset-external/index.js +134 -134
  130. package/dist/DocAnswer-bf72cfd4.js +0 -46
  131. package/dist/PriceHeader-c5053109.js +0 -337
  132. package/dist/throttle-f8302435.js +0 -18
@@ -1,36 +1,36 @@
1
- import { aX as ce, aY as le, aZ as R, a_ as ue, a$ as A, b0 as S, b1 as oe, b2 as Pe, b3 as ze, b4 as be, i as xe, g as u, n as d, C as B, b5 as me, l as z, h as O, b6 as pe, b7 as ye, z as Xe, b8 as He, b9 as je, aW as he, ba as Le, M as c, a3 as P, c as o, aR as p, bb as Oe, bc as we, bd as ge, be as Te, B as Ne, bf as Ze, d as Ce, f as H, a2 as q, S as We, r as ke, ao as De, ad as Me, bg as Ve, aT as E, aU as I, I as W, bh as T, aV as Fe, bi as Je, V as w, bj as k, m as Ye, a as Ge, bk as Re, u as Ae } from "./main-8c6aae3a.js";
1
+ import { aX as ce, aY as le, aZ as R, a_ as ue, a$ as A, b0 as S, b1 as oe, b2 as Pe, b3 as ze, b4 as be, f as xe, g as o, n as d, C as B, b5 as me, k as z, h as w, b6 as pe, b7 as ye, z as Xe, b8 as He, b9 as je, aW as he, ba as Le, M as c, a3 as P, b as u, aR as p, bb as Oe, bc as we, bd as ge, be as Te, B as Ne, bf as Ze, c as Ce, e as H, a2 as q, S as We, q as ke, ao as De, ad as Me, bg as Ve, V as j, aT as E, aU as I, I as W, bh as T, aV as Fe, bi as Je, bj as k, r as Ye, m as Ge, a as Re, bk as Ae } from "./main-cf622dd3.js";
2
2
  import { m as b, a as y } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-eab9b762.js";
3
+ import "./index-0f09ca1c.js";
4
4
  import { v as Z } from "./index-805c56e4.js";
5
- import { d as C, w as j } from "./CDropdownItem-32216ea8.js";
6
- import { D as Se, l as Be, g as qe, W as Ee, b as Ie, a as Ke } from "./DocumentLayout-3882fade.js";
7
- import { s as h } from "./simplebar.min-baa28a2a.js";
8
- import { B as Ue } from "./BlockMedia-c0637f45.js";
9
- import { b as Qe, I as K, a as U } from "./IsPremiumPreStep-310fc507.js";
10
- import { c as _e, g as $e } from "./template-c64eadf9.js";
11
- import { a as et } from "./tinycolor-c5753ad0.js";
12
- import { m as L } from "./mapFormMixin-fe8972cd.js";
13
- import { S as tt, C as Q, i as nt } from "./formComponentsInstall-60696be3.js";
14
- import { s as m, f as ft } from "./focusDrawerMixin-7cf9e926.js";
15
- import { f as rt } from "./formValidationMixin-5d709c26.js";
16
- import { F as _, d as st } from "./tippy.esm-495f26e4.js";
17
- import { S as vt } from "./CSlider.vue_vue_type_style_index_0_lang-a2818d05.js";
18
- import { o as at, d as it } from "./vuedraggable.umd-45109ca7.js";
5
+ import { d as C, w as h } from "./CDropdownItem-ab42f924.js";
6
+ import { D as Se, l as Be, g as qe, W as Ee, b as Ie, a as Ke } from "./DocumentLayout-2ff55f9f.js";
7
+ import { s as L } from "./simplebar.min-3f1edc12.js";
8
+ import { B as Ue } from "./BlockMedia-80a082ed.js";
9
+ import { b as Qe, I as K, a as U } from "./IsPremiumPreStep-8d46fadc.js";
10
+ import { c as _e, g as $e } from "./template-66eba036.js";
11
+ import { a as et } from "./tinycolor-9f3cc25c.js";
12
+ import { m as O } from "./mapFormMixin-490a1765.js";
13
+ import { S as tt, C as Q, i as nt } from "./formComponentsInstall-9e33cb8f.js";
14
+ import { s as m, f as ft } from "./focusDrawerMixin-01b547f0.js";
15
+ import { f as rt } from "./formValidationMixin-74c239ee.js";
16
+ import { F as _, d as st } from "./tippy.esm-dec03596.js";
17
+ import { S as vt } from "./CSlider.vue_vue_type_style_index_0_lang-c70342a2.js";
18
+ import { o as at, d as it } from "./vuedraggable.umd-f2d6d3e3.js";
19
19
  import { s as dt } from "./dom-068d1a7b.js";
20
- import ct from "./AnswerModal-7441b8d3.js";
20
+ import ct from "./AnswerModal-995e7a87.js";
21
21
  import "./color-71c20583.js";
22
22
  import "./anime.es-e284c852.js";
23
23
  import "./regions-29ee6964.js";
24
- import "./BaseDatePicker-5fcfcdcb.js";
25
- import "./ErrorCallout-ca6aa8a6.js";
26
- import "./AddClientCallout-22eea733.js";
27
- import "./ClientAutocomplete-1569a879.js";
28
- import "./SearchApi-66a3369e.js";
29
- import "./ClientModal-4ff2f08c.js";
30
- import "./CCallout-d5efd737.js";
31
- import "./CField-b58cafce.js";
24
+ import "./BaseDatePicker-7f047527.js";
25
+ import "./ErrorCallout-84e8168b.js";
26
+ import "./AddClientCallout-98b5d2c9.js";
27
+ import "./ClientAutocomplete-67fc253c.js";
28
+ import "./SearchApi-25909227.js";
29
+ import "./ClientModal-1709e8c7.js";
30
+ import "./CCallout-bd314caa.js";
31
+ import "./CField-6da7299b.js";
32
32
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
33
- import "./ColorPicker-4a830e26.js";
33
+ import "./ColorPicker-4880a624.js";
34
34
  var lt = ce, ut = le, ot = R;
35
35
  function Pt(n, e, t) {
36
36
  for (var f = -1, r = e.length, s = {}; ++f < r; ) {
@@ -245,9 +245,9 @@ const M1 = {
245
245
  },
246
246
  methods: {
247
247
  ...y({
248
- loadTemplate: u.DO_LOAD_TEMPLATE,
249
- saveTemplate: u.SAVE_TEMPLATE_FORM,
250
- updateSettings: u.UPDATE_SETTINGS
248
+ loadTemplate: o.DO_LOAD_TEMPLATE,
249
+ saveTemplate: o.SAVE_TEMPLATE_FORM,
250
+ updateSettings: o.UPDATE_SETTINGS
251
251
  }),
252
252
  async onSave() {
253
253
  if (!this.document && !this.template && (this.$log.error('Missing prop "document" or "template"'), this.$emit("close")), this.$v.$invalid)
@@ -312,7 +312,7 @@ var V1 = function() {
312
312
  F1,
313
313
  !1,
314
314
  null,
315
- "9f39f8ce",
315
+ "f9bd0c75",
316
316
  null,
317
317
  null
318
318
  );
@@ -320,7 +320,7 @@ const ne = J1.exports;
320
320
  const Y1 = {
321
321
  name: "GalleryTemplateModal",
322
322
  components: {
323
- simplebar: h,
323
+ simplebar: L,
324
324
  DocumentLayout: Se
325
325
  },
326
326
  props: {
@@ -405,9 +405,9 @@ const Y1 = {
405
405
  var G1 = function() {
406
406
  var f;
407
407
  var e = this, t = e._self._c;
408
- return t("div", { staticClass: "template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto" } }, [t("simplebar", [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(f = e.templateStat) != null && f.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
408
+ return t("div", { staticClass: "template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto" } }, [t("simplebar", [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(f = e.templateStat) != null && f.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
409
409
  backgroundImage: `url(${e.meta.author.avatar})`
410
- } }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])])]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]), e.showSave ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(r) {
410
+ } }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])]) : e._e()]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]), e.showSave ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(r) {
411
411
  e.didSave || e.saveAsTemplate();
412
412
  } } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()], 1)])]);
413
413
  }, R1 = [], A1 = /* @__PURE__ */ d(
@@ -416,7 +416,7 @@ var G1 = function() {
416
416
  R1,
417
417
  !1,
418
418
  null,
419
- "e2568605",
419
+ "a06e4d2b",
420
420
  null,
421
421
  null
422
422
  );
@@ -477,6 +477,10 @@ const S1 = A1.exports, B1 = {
477
477
  filterLanguage: {
478
478
  type: String,
479
479
  default: () => ["cling", "fortnoxSe"].includes(z.brand) ? "sv" : "en"
480
+ },
481
+ showTemplateAuthor: {
482
+ type: Boolean,
483
+ default: !0
480
484
  }
481
485
  },
482
486
  data() {
@@ -535,7 +539,7 @@ const S1 = A1.exports, B1 = {
535
539
  const s = this.templateGalleryItems.find(({ id: v }) => v === t);
536
540
  this.selectGalleryItem(s);
537
541
  } catch (s) {
538
- O(s);
542
+ w(s);
539
543
  }
540
544
  });
541
545
  },
@@ -550,7 +554,7 @@ const S1 = A1.exports, B1 = {
550
554
  const t = await this.fetchGallery(e);
551
555
  this.templateGalleryItems = t || [], this.availableCategoryKeys = t.reduce((f, r) => [.../* @__PURE__ */ new Set([...f, ...r.categories])], []);
552
556
  } catch (t) {
553
- O(t);
557
+ w(t);
554
558
  } finally {
555
559
  this.isLoading = !1, typeof n == "function" && n();
556
560
  }
@@ -591,11 +595,14 @@ const S1 = A1.exports, B1 = {
591
595
  meta: {
592
596
  name: e.name,
593
597
  text: e.description,
594
- author: {
595
- name: this.$t("_common:brand.name"),
596
- avatar: t[z.brand],
597
- templatesCount: this.templateGalleryItems.length
598
- }
598
+ ...this.showTemplateAuthor ? {
599
+ // Only show author if enabled)
600
+ author: {
601
+ name: this.$t("_common:brand.name"),
602
+ avatar: t[z.brand],
603
+ templatesCount: this.templateGalleryItems.length
604
+ }
605
+ } : {}
599
606
  },
600
607
  ...this.modalProps
601
608
  },
@@ -669,14 +676,14 @@ var Q1 = function(e, t) {
669
676
  t.listeners.click && t.listeners.click();
670
677
  } } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
671
678
  backgroundImage: `url(${t.props.thumbnail})`
672
- } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
679
+ } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
673
680
  }, _1 = [], $1 = /* @__PURE__ */ d(
674
681
  U1,
675
682
  Q1,
676
683
  _1,
677
684
  !0,
678
685
  null,
679
- "6b8b46e0",
686
+ "4af01db0",
680
687
  null,
681
688
  null
682
689
  );
@@ -684,7 +691,7 @@ const e2 = $1.exports;
684
691
  const t2 = {
685
692
  name: "HorizontalScroll",
686
693
  components: {
687
- Simplebar: h
694
+ Simplebar: L
688
695
  },
689
696
  data() {
690
697
  return {
@@ -747,7 +754,7 @@ var n2 = function() {
747
754
  f2,
748
755
  !1,
749
756
  null,
750
- "15f25c8e",
757
+ "99e80a12",
751
758
  null,
752
759
  null
753
760
  );
@@ -786,7 +793,7 @@ const v2 = {
786
793
  },
787
794
  methods: {
788
795
  ...y({
789
- loadDocument: u.LOAD_DOCUMENT2
796
+ loadDocument: o.LOAD_DOCUMENT2
790
797
  }),
791
798
  async onInput() {
792
799
  this.isLoading = !0, this.onLoadDocuments();
@@ -854,7 +861,7 @@ var a2 = function() {
854
861
  i2,
855
862
  !1,
856
863
  null,
857
- "0096ccb0",
864
+ "917f8958",
858
865
  null,
859
866
  null
860
867
  );
@@ -877,7 +884,8 @@ const l2 = {
877
884
  cancel: "Avbryt"
878
885
  },
879
886
  icon: {
880
- tooltip: "Fler val"
887
+ tooltip: "Fler val",
888
+ freeTooltip: "Det här en gratismall som du kan använda obegränsat."
881
889
  }
882
890
  },
883
891
  en: {
@@ -894,13 +902,14 @@ const l2 = {
894
902
  cancel: "Cancel"
895
903
  },
896
904
  icon: {
897
- tooltip: "More options"
905
+ tooltip: "More options",
906
+ freeTooltip: "This is a template that you can use for free, without limitations."
898
907
  }
899
908
  }
900
909
  }
901
910
  },
902
- name: "DocumentFormSelect",
903
- mixins: [j],
911
+ name: "TemplateSelector",
912
+ mixins: [h],
904
913
  components: {
905
914
  HorizontalScroll: s2,
906
915
  DocumentIcon: e2,
@@ -933,9 +942,17 @@ const l2 = {
933
942
  type: Boolean,
934
943
  default: !1
935
944
  },
945
+ showGalleryTemplateAuthor: {
946
+ type: Boolean,
947
+ default: !0
948
+ },
936
949
  listExpanded: {
937
950
  type: Boolean,
938
951
  default: !1
952
+ },
953
+ includePartnerTemplates: {
954
+ type: Boolean,
955
+ default: !1
939
956
  }
940
957
  },
941
958
  data() {
@@ -967,7 +984,7 @@ const l2 = {
967
984
  },
968
985
  myTemplates() {
969
986
  const n = [...this.availableTemplates];
970
- return !n.length && this.isFetchingTemplates ? Array(5).fill({ placeholder: !0 }) : [{ id: "empty" }, ...n];
987
+ return !n.length && this.isFetchingTemplates ? Array(5).fill({ placeholder: !0 }) : [{ id: "empty", doConsumeDocumentQuota: !0 }, ...n];
971
988
  },
972
989
  galleryModalProps() {
973
990
  const { fSkatt: n, insurance: e } = this.companySettings;
@@ -987,15 +1004,14 @@ const l2 = {
987
1004
  },
988
1005
  methods: {
989
1006
  ...y({
990
- loadTemplatesAction: u.LOAD_TEMPLATES,
991
- loadTemplate: u.LOAD_TEMPLATE,
992
- createTemplate: u.DO_CREATE_TEMPLATE,
993
- hideTemplate: u.HIDE_TEMPLATE,
994
- deleteTemplate: u.DELETE_TEMPLATE
1007
+ loadTemplatesAction: o.LOAD_TEMPLATES,
1008
+ loadTemplate: o.LOAD_TEMPLATE,
1009
+ createTemplate: o.DO_CREATE_TEMPLATE,
1010
+ removeTemplate: o.REMOVE_TEMPLATE
995
1011
  }),
996
1012
  loadTemplates() {
997
1013
  const n = {};
998
- this.defaultLanguage && (n.sharedLanguage = this.defaultLanguage), this.loadTemplatesAction(n), this.isAuthenticatedCRM("hubspot") && this.loadTemplate({ id: "hubspot" });
1014
+ this.defaultLanguage && (n.sharedLanguage = this.defaultLanguage), this.includePartnerTemplates && (n.includePartnerTemplates = !0), this.loadTemplatesAction(n), this.isAuthenticatedCRM("hubspot") && this.loadTemplate({ id: "hubspot" });
999
1015
  },
1000
1016
  select({ templateId: n, documentId: e, formData: t }) {
1001
1017
  return this.onUseTemplate({
@@ -1011,13 +1027,10 @@ const l2 = {
1011
1027
  const { data: e } = n, t = he(e, ["_id", "id", "companyId", "isVisible"]);
1012
1028
  return await this.createTemplate({ body: t }), !0;
1013
1029
  } catch (e) {
1014
- O(e);
1030
+ w(e);
1015
1031
  }
1016
1032
  return !1;
1017
1033
  },
1018
- async onRemoveTemplate(n) {
1019
- n.companyId ? await this.deleteTemplate({ id: n.id }) : await this.hideTemplate({ id: n.id });
1020
- },
1021
1034
  async openTemplateFormModal({ document: n = null, template: e = null }) {
1022
1035
  this.$modal.show(
1023
1036
  ne,
@@ -1049,16 +1062,24 @@ var u2 = function() {
1049
1062
  } } }, e._l(e.myTemplates, function(f) {
1050
1063
  return t("DocumentIcon", { key: f.id, staticClass: "template-item", attrs: { "is-add": f.id === "empty", "is-placeholder": f.placeholder, media: f.defaultMedia || e.fallbackMedia, thumbnail: f.thumbnailUrl, name: f.name }, on: { click: function(r) {
1051
1064
  f.placeholder || e.select({ templateId: f.id });
1052
- } } }, [t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(r) {
1065
+ } } }, [!f.doConsumeDocumentQuota && !f.placeholder ? t("div", { staticClass: "text-sm capitalize font-bold text-white bg-primary-500 rounded leading-none px-1.5 py-1", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e(), f.onModify === "create" && !f.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1066
+ content: e.$t("icon.freeTooltip"),
1067
+ placement: "bottom"
1068
+ }, expression: `{
1069
+ content: $t('icon.freeTooltip'),
1070
+ placement: 'bottom'
1071
+ }` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(r) {
1072
+ r.stopPropagation();
1073
+ } } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(r) {
1053
1074
  r.stopPropagation();
1054
1075
  } } }, [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("icon.tooltip"), expression: "$t('icon.tooltip')" }], attrs: { slot: "trigger", icon: "more-vertical", type: "none", pattern: "tertiary", size: "small" }, slot: "trigger" }), e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(r) {
1055
1076
  return e.onEditTemplate(f.id);
1056
1077
  } } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:template") })) + " ")]) : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "edit" }, on: { click: function(r) {
1057
1078
  return e.openTemplateFormModal({ template: f });
1058
1079
  } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(r) {
1059
- return e.onRemoveTemplate(f);
1080
+ return e.removeTemplate({ template: f });
1060
1081
  } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
1061
- }), 1)], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "modal-props": e.galleryModalProps }, scopedSlots: e._u([{ key: "default", fn: function({
1082
+ }), 1)], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps }, scopedSlots: e._u([{ key: "default", fn: function({
1062
1083
  galleryItems: f,
1063
1084
  categories: r,
1064
1085
  activeCategory: s,
@@ -1083,7 +1104,7 @@ var u2 = function() {
1083
1104
  o2,
1084
1105
  !1,
1085
1106
  null,
1086
- "1eb8b257",
1107
+ "f1ac5587",
1087
1108
  null,
1088
1109
  null
1089
1110
  );
@@ -2376,7 +2397,7 @@ const l3 = ({
2376
2397
  _getters: t,
2377
2398
  allArticles: f = []
2378
2399
  } = {}) => {
2379
- const r = o(t, "settings/defaultVatRate") || null, s = !o(t, "settings/hidePriceOnNewlyAddedArticles"), v = (a) => P.t(`packageGroupContentItems:${a}`, { lng: n });
2400
+ const r = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), v = (a) => P.t(`packageGroupContentItems:${a}`, { lng: n });
2380
2401
  return [
2381
2402
  {
2382
2403
  previewUrl: `
@@ -3433,7 +3454,7 @@ var w3 = function() {
3433
3454
  g3,
3434
3455
  !1,
3435
3456
  null,
3436
- "3cb13e4e",
3457
+ "d54a4290",
3437
3458
  null,
3438
3459
  null
3439
3460
  );
@@ -3470,11 +3491,11 @@ const N3 = {
3470
3491
  CButton: Ce
3471
3492
  },
3472
3493
  mixins: [
3473
- L([], {
3494
+ O([], {
3474
3495
  useEmit: !1,
3475
3496
  setFnName: "setFormValue"
3476
3497
  }),
3477
- j
3498
+ h
3478
3499
  ],
3479
3500
  props: {
3480
3501
  setFormValue: {
@@ -3512,7 +3533,7 @@ const N3 = {
3512
3533
  return !!(this.viewSettings && this.viewSettings.isPublicForm);
3513
3534
  },
3514
3535
  hasAnswerBlock() {
3515
- return (o(this._document, "template.views.read.nodes") || []).some((e) => e.itemType === "answer");
3536
+ return (u(this._document, "template.views.read.nodes") || []).some((e) => e.itemType === "answer");
3516
3537
  }
3517
3538
  },
3518
3539
  watch: {
@@ -3529,7 +3550,7 @@ const N3 = {
3529
3550
  },
3530
3551
  methods: {
3531
3552
  ...y({
3532
- createTemplate: u.DO_CREATE_TEMPLATE
3553
+ createTemplate: o.DO_CREATE_TEMPLATE
3533
3554
  }),
3534
3555
  open() {
3535
3556
  this.isOpen = !0;
@@ -3539,7 +3560,7 @@ const N3 = {
3539
3560
  return;
3540
3561
  const n = {
3541
3562
  ...this._document.copyTemplateDocDefault(),
3542
- name: o(this._document, "name") || this.$t("_common:untitled"),
3563
+ name: u(this._document, "name") || this.$t("_common:untitled"),
3543
3564
  _id: void 0,
3544
3565
  id: void 0,
3545
3566
  isVisible: !0
@@ -3572,7 +3593,7 @@ var Z3 = function() {
3572
3593
  C3,
3573
3594
  !1,
3574
3595
  null,
3575
- "7cbf7355",
3596
+ "fb3658be",
3576
3597
  null,
3577
3598
  null
3578
3599
  );
@@ -3651,7 +3672,7 @@ var G3 = function() {
3651
3672
  R3,
3652
3673
  !1,
3653
3674
  null,
3654
- "9b75010b",
3675
+ "d394713b",
3655
3676
  null,
3656
3677
  null
3657
3678
  );
@@ -3667,7 +3688,7 @@ const S3 = /([\d+.]*)(.*)/, X = (n) => (n || "").match(S3), B3 = {
3667
3688
  DragWindow: se
3668
3689
  },
3669
3690
  mixins: [
3670
- L(
3691
+ O(
3671
3692
  ["css"],
3672
3693
  { useEmit: !1, setFnName: "set" }
3673
3694
  )
@@ -3736,7 +3757,7 @@ const S3 = /([\d+.]*)(.*)/, X = (n) => (n || "").match(S3), B3 = {
3736
3757
  // Dynamic depending on font family
3737
3758
  definitionOptions: {
3738
3759
  fontFamily: ({ key: n, value: e }) => {
3739
- const t = o(this.css, `${this.activeItem.selector}.fontWeight`) || o(this.activeItem, "style.fontWeight") || "400";
3760
+ const t = u(this.css, `${this.activeItem.selector}.fontWeight`) || u(this.activeItem, "style.fontWeight") || "400";
3740
3761
  return {
3741
3762
  label: this.$t("font"),
3742
3763
  inputs: [
@@ -4188,7 +4209,7 @@ const S3 = /([\d+.]*)(.*)/, X = (n) => (n || "").match(S3), B3 = {
4188
4209
  activeItemOptions() {
4189
4210
  if (!this.activeItem)
4190
4211
  return [];
4191
- const { selector: n, category: e, style: t = {} } = this.activeItem, f = o(this.css, n) || {}, r = (s) => f[s] || t[s];
4212
+ const { selector: n, category: e, style: t = {} } = this.activeItem, f = u(this.css, n) || {}, r = (s) => f[s] || t[s];
4192
4213
  return this[e].map(({ option: s, key: v }, a) => {
4193
4214
  const i = this.definitionOptions[s], l = Array.isArray(v) ? v.map((x) => ({ key: x, value: r(x) })) : { key: v, value: r(v) };
4194
4215
  return i(l, a);
@@ -4197,7 +4218,7 @@ const S3 = /([\d+.]*)(.*)/, X = (n) => (n || "").match(S3), B3 = {
4197
4218
  },
4198
4219
  watch: {
4199
4220
  async activeItem(n) {
4200
- const e = o(n, "style.fontFamily");
4221
+ const e = u(n, "style.fontFamily");
4201
4222
  e && (this.fontWeightOptions = await qe(e));
4202
4223
  }
4203
4224
  },
@@ -4235,7 +4256,7 @@ var q3 = function() {
4235
4256
  E3,
4236
4257
  !1,
4237
4258
  null,
4238
- "930a4202",
4259
+ "1ead8632",
4239
4260
  null,
4240
4261
  null
4241
4262
  );
@@ -4330,7 +4351,7 @@ const U3 = {
4330
4351
  },
4331
4352
  created() {
4332
4353
  if (this.existingFieldId) {
4333
- const n = o(this.document, `fields.${this.existingFieldId}`);
4354
+ const n = u(this.document, `fields.${this.existingFieldId}`);
4334
4355
  n && (this.form = { ...this.form, ...n });
4335
4356
  }
4336
4357
  },
@@ -4372,7 +4393,7 @@ var Q3 = function() {
4372
4393
  _3,
4373
4394
  !1,
4374
4395
  null,
4375
- "5cc44007",
4396
+ "e9078ef4",
4376
4397
  null,
4377
4398
  null
4378
4399
  );
@@ -4405,7 +4426,7 @@ const tn = {
4405
4426
  CAccordion: Qe,
4406
4427
  CField: Q
4407
4428
  },
4408
- mixins: [L()],
4429
+ mixins: [O()],
4409
4430
  props: {
4410
4431
  set: {
4411
4432
  type: Function,
@@ -4499,7 +4520,7 @@ const tn = {
4499
4520
  );
4500
4521
  },
4501
4522
  onCopyField(n) {
4502
- navigator && navigator.clipboard && n && navigator.clipboard.writeText(n).then(() => q("info", this.$t("_common:copyMessage"))).catch((e) => O(e));
4523
+ navigator && navigator.clipboard && n && navigator.clipboard.writeText(n).then(() => q("info", this.$t("_common:copyMessage"))).catch((e) => w(e));
4503
4524
  },
4504
4525
  filterMethod(n, e) {
4505
4526
  return e.filter((t) => t.label.toLowerCase().includes(n.toLowerCase()));
@@ -4561,7 +4582,7 @@ var nn = function() {
4561
4582
  fn,
4562
4583
  !1,
4563
4584
  null,
4564
- "ef9c2946",
4585
+ "d4a32633",
4565
4586
  null,
4566
4587
  null
4567
4588
  );
@@ -4612,7 +4633,7 @@ const vn = {
4612
4633
  draggable: it,
4613
4634
  Spinner: We
4614
4635
  },
4615
- mixins: [L([
4636
+ mixins: [O([
4616
4637
  "externalReferences",
4617
4638
  "clients",
4618
4639
  "articles"
@@ -4794,7 +4815,7 @@ var an = function() {
4794
4815
  dn,
4795
4816
  !1,
4796
4817
  null,
4797
- "b775e9f9",
4818
+ "37eb1ef8",
4798
4819
  null,
4799
4820
  null
4800
4821
  );
@@ -4896,7 +4917,7 @@ const un = {
4896
4917
  required: !0
4897
4918
  }
4898
4919
  },
4899
- mixins: [L([
4920
+ mixins: [O([
4900
4921
  "tags",
4901
4922
  "series",
4902
4923
  "senderId",
@@ -5087,7 +5108,7 @@ const un = {
5087
5108
  },
5088
5109
  methods: {
5089
5110
  ...y({
5090
- loadUsers: u.LOAD_COMPANY_USERS
5111
+ loadUsers: o.LOAD_COMPANY_USERS
5091
5112
  }),
5092
5113
  update(n, e) {
5093
5114
  this[n] = e;
@@ -5119,7 +5140,7 @@ var on = function() {
5119
5140
  Pn,
5120
5141
  !1,
5121
5142
  null,
5122
- "1601b625",
5143
+ "539898df",
5123
5144
  null,
5124
5145
  null
5125
5146
  );
@@ -5251,10 +5272,14 @@ var gn = function() {
5251
5272
  null
5252
5273
  );
5253
5274
  const Zn = Nn.exports;
5254
- const Cn = {
5275
+ const Cn = j.component("ProBadge", {
5255
5276
  name: "ProBadge",
5256
- template: '<div class="text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1">Pro</div>'
5257
- }, Wn = {
5277
+ render(n) {
5278
+ return n("div", {
5279
+ staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
5280
+ }, "Pro");
5281
+ }
5282
+ }), Wn = {
5258
5283
  name: "MenuBlocks",
5259
5284
  i18nOptions: {
5260
5285
  namespaces: "menuBlocks",
@@ -5324,7 +5349,7 @@ const Cn = {
5324
5349
  }
5325
5350
  },
5326
5351
  components: {
5327
- simplebar: h,
5352
+ simplebar: L,
5328
5353
  DragList: E,
5329
5354
  DragItem: I,
5330
5355
  AddBlock: fe,
@@ -5354,7 +5379,7 @@ const Cn = {
5354
5379
  default: !0
5355
5380
  }
5356
5381
  },
5357
- mixins: [j],
5382
+ mixins: [h],
5358
5383
  data() {
5359
5384
  return {
5360
5385
  subMenuToShow: null,
@@ -5632,7 +5657,7 @@ const Cn = {
5632
5657
  return this.availableBlocks.filter(({ key: n }) => !this.primaryFilterNames.includes(n));
5633
5658
  },
5634
5659
  activeSubMenuKey() {
5635
- return o(this.activeSubMenu, "[0].key") || null;
5660
+ return u(this.activeSubMenu, "[0].key") || null;
5636
5661
  }
5637
5662
  // section key is added to each element in the menu
5638
5663
  },
@@ -5708,7 +5733,7 @@ const Cn = {
5708
5733
  return !this.feature(`docBlock_${n}`);
5709
5734
  },
5710
5735
  doesBlockExist(n) {
5711
- return !!o(this._document, "_doc.template.views.read.nodes", []).find((t) => t.itemId.startsWith(n));
5736
+ return !!u(this._document, "_doc.template.views.read.nodes", []).find((t) => t.itemId.startsWith(n));
5712
5737
  },
5713
5738
  getGhostParent() {
5714
5739
  var t, f;
@@ -5773,7 +5798,7 @@ var kn = function() {
5773
5798
  Dn,
5774
5799
  !1,
5775
5800
  null,
5776
- "4ce1e5ea",
5801
+ "9961b977",
5777
5802
  null,
5778
5803
  null
5779
5804
  );
@@ -5910,13 +5935,24 @@ var Jn = function() {
5910
5935
  Yn,
5911
5936
  !1,
5912
5937
  null,
5913
- "49f05ec2",
5938
+ "279bcfd8",
5914
5939
  null,
5915
5940
  null
5916
5941
  );
5917
5942
  const Rn = Gn.exports;
5918
5943
  const An = {
5919
5944
  name: "BlockControlButtons",
5945
+ i18nOptions: {
5946
+ namespace: "blockControlButtons",
5947
+ messages: {
5948
+ en: {
5949
+ hidden: "Hidden"
5950
+ },
5951
+ sv: {
5952
+ hidden: "Dold"
5953
+ }
5954
+ }
5955
+ },
5920
5956
  props: {
5921
5957
  isVisible: {
5922
5958
  type: [Boolean, Object],
@@ -5940,7 +5976,7 @@ var Sn = function() {
5940
5976
  var e = this, t = e._self._c;
5941
5977
  return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(f) {
5942
5978
  return e.$emit("toggle-visible", !e.isVisible);
5943
- } } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v("Hidden")]), t("BaseIcon", { class: { "mr-1": !e.isVisible }, attrs: { type: e.isVisible ? "eye" : "eye-off", size: "14" } })], 1) : e._e(), !e.isHidden && e.isMovable ? [t("div", { staticClass: "control-direction" }, [t("div", { staticClass: "control-button", on: { click: function(f) {
5979
+ } } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v(" " + e._s(e.$t("hidden")) + " ")]), t("BaseIcon", { class: { "mr-1": !e.isVisible }, attrs: { type: e.isVisible ? "eye" : "eye-off", size: "14" } })], 1) : e._e(), !e.isHidden && e.isMovable ? [t("div", { staticClass: "control-direction" }, [t("div", { staticClass: "control-button", on: { click: function(f) {
5944
5980
  return e.$emit("move", "up");
5945
5981
  } } }, [t("BaseIcon", { attrs: { type: "chevron-up", size: "16" } })], 1), t("div", { staticClass: "control-button", on: { click: function(f) {
5946
5982
  return e.$emit("move", "down");
@@ -5953,7 +5989,7 @@ var Sn = function() {
5953
5989
  Bn,
5954
5990
  !1,
5955
5991
  null,
5956
- "930bc32a",
5992
+ "33152708",
5957
5993
  null,
5958
5994
  null
5959
5995
  );
@@ -6003,10 +6039,10 @@ const In = {
6003
6039
  return typeof this.isVisible == "boolean" && !this.isVisible;
6004
6040
  },
6005
6041
  showControls() {
6006
- return this.disableControls ? !1 : !this.isDragging && this.isHovering ? !0 : this.isHidden;
6042
+ return !this.isEditView || this.disableControls ? !1 : !this.isDragging && this.isHovering ? !0 : this.isHidden;
6007
6043
  },
6008
6044
  contentClass() {
6009
- return this.isHidden ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0" : "";
6045
+ return this.isHidden ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : "";
6010
6046
  }
6011
6047
  }
6012
6048
  };
@@ -6039,7 +6075,7 @@ var Kn = function() {
6039
6075
  Un,
6040
6076
  !1,
6041
6077
  null,
6042
- "d2b18ffd",
6078
+ "cd626093",
6043
6079
  null,
6044
6080
  null
6045
6081
  );
@@ -6047,7 +6083,7 @@ const _n = Qn.exports;
6047
6083
  const $n = {
6048
6084
  name: "DocumentDrawer",
6049
6085
  components: {
6050
- simplebar: h,
6086
+ simplebar: L,
6051
6087
  Drawer: re
6052
6088
  },
6053
6089
  props: {
@@ -6088,7 +6124,7 @@ var e7 = function() {
6088
6124
  t7,
6089
6125
  !1,
6090
6126
  null,
6091
- "f0a56edd",
6127
+ "bce8bd6b",
6092
6128
  null,
6093
6129
  null
6094
6130
  );
@@ -6119,7 +6155,7 @@ var s7 = function() {
6119
6155
  v7,
6120
6156
  !1,
6121
6157
  null,
6122
- "bfd27279",
6158
+ "89f0c419",
6123
6159
  null,
6124
6160
  null
6125
6161
  );
@@ -6167,7 +6203,7 @@ var z7 = function() {
6167
6203
  b7,
6168
6204
  !1,
6169
6205
  null,
6170
- "05fc111c",
6206
+ "51b7dda2",
6171
6207
  null,
6172
6208
  null
6173
6209
  );
@@ -6204,7 +6240,7 @@ const ve = (n, e, t = "$children") => {
6204
6240
  DocumentFormNav: m7,
6205
6241
  DocumentDrawer: f7,
6206
6242
  DocumentStyleContainer: Ke,
6207
- simplebar: h,
6243
+ simplebar: L,
6208
6244
  LogoBanner: o7,
6209
6245
  IsPremium: U
6210
6246
  },
@@ -6243,7 +6279,7 @@ const ve = (n, e, t = "$children") => {
6243
6279
  default: !0
6244
6280
  }
6245
6281
  },
6246
- mixins: [j],
6282
+ mixins: [h],
6247
6283
  data() {
6248
6284
  return {
6249
6285
  drawerState: m,
@@ -6258,28 +6294,28 @@ const ve = (n, e, t = "$children") => {
6258
6294
  },
6259
6295
  computed: {
6260
6296
  docTemplate() {
6261
- return o(this._document, "template", null);
6297
+ return u(this._document, "template", null);
6262
6298
  },
6263
6299
  isTemplateEditable() {
6264
- return o(this.docTemplate, "views.read.isEditable", !1);
6300
+ return u(this.docTemplate, "views.read.isEditable", !1);
6265
6301
  },
6266
6302
  canMove() {
6267
- return this.isTemplateEditable;
6303
+ return this.isTemplateEditable && this.isEditView;
6268
6304
  },
6269
6305
  readLayout() {
6270
- return o(this.docTemplate, "views.read.nodes", []);
6306
+ return u(this.docTemplate, "views.read.nodes", []);
6271
6307
  },
6272
6308
  nestedReadLayout() {
6273
6309
  return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
6274
6310
  },
6275
6311
  currency() {
6276
- return o(this._document, "currency");
6312
+ return u(this._document, "currency");
6277
6313
  },
6278
6314
  externalReferences() {
6279
- return o(this._document, "externalReferences") || [];
6315
+ return u(this._document, "externalReferences") || [];
6280
6316
  },
6281
6317
  headingColor() {
6282
- return o(this._document, "theme.headingColor");
6318
+ return u(this._document, "theme.headingColor");
6283
6319
  },
6284
6320
  isEditView() {
6285
6321
  return this.view === "edit";
@@ -6375,11 +6411,11 @@ const ve = (n, e, t = "$children") => {
6375
6411
  Array.isArray(e.packages) && e.packages.forEach((f) => {
6376
6412
  this.setFormValue({
6377
6413
  key: "articles",
6378
- value: o(this._document, "_doc.articles", []).filter(({ packageId: r }) => r !== f.packageId)
6414
+ value: u(this._document, "_doc.articles", []).filter(({ packageId: r }) => r !== f.packageId)
6379
6415
  });
6380
6416
  });
6381
- const t = Object.assign({}, o(this._document, "_doc.data.packageGroups"));
6382
- delete t[n], this.setFormValue({ key: "data.packageGroups", value: t }), Object.keys(o(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue("template.validationSchema.properties.data.properties.packageGroups");
6417
+ const t = Object.assign({}, u(this._document, "_doc.data.packageGroups"));
6418
+ delete t[n], this.setFormValue({ key: "data.packageGroups", value: t }), Object.keys(u(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue("template.validationSchema.properties.data.properties.packageGroups");
6383
6419
  },
6384
6420
  onBlockListChange(n, { removedIndex: e, addedIndex: t, payload: f }) {
6385
6421
  if (e !== null && t !== null) {
@@ -6497,11 +6533,11 @@ var y7 = function() {
6497
6533
  X7,
6498
6534
  !1,
6499
6535
  null,
6500
- "e8e5349e",
6536
+ "6eacc434",
6501
6537
  null,
6502
6538
  null
6503
6539
  );
6504
- const j7 = H7.exports, N = w.observable({
6540
+ const j7 = H7.exports, N = j.observable({
6505
6541
  canEdit: !1,
6506
6542
  isForm: !0,
6507
6543
  setFormValue: null
@@ -6577,7 +6613,7 @@ const j7 = H7.exports, N = w.observable({
6577
6613
  },
6578
6614
  computed: {
6579
6615
  canDoActions() {
6580
- return !!o(this.document, "template.views.read.nodes", []).length;
6616
+ return !!u(this.document, "template.views.read.nodes", []).length;
6581
6617
  },
6582
6618
  canEdit() {
6583
6619
  const { document: n } = this;
@@ -6702,7 +6738,7 @@ const T7 = {
6702
6738
  },
6703
6739
  methods: {
6704
6740
  ...y({
6705
- loadDocument: u.LOAD_DOCUMENT2
6741
+ loadDocument: o.LOAD_DOCUMENT2
6706
6742
  }),
6707
6743
  copyToClipboard(n) {
6708
6744
  n.target.previousElementSibling.select(), document.execCommand("copy", !1), q("info", this.$t("copied"));
@@ -6722,14 +6758,14 @@ var N7 = function() {
6722
6758
  Z7,
6723
6759
  !1,
6724
6760
  null,
6725
- "791a9a8f",
6761
+ "27127273",
6726
6762
  null,
6727
6763
  null
6728
6764
  );
6729
6765
  const W7 = C7.exports, k7 = W7, D7 = ({ id: n }) => {
6730
- if (!w.prototype.$modal)
6766
+ if (!j.prototype.$modal)
6731
6767
  throw Error("Open client modal requires plugin vue-js-modal");
6732
- w.prototype.$modal.show(
6768
+ j.prototype.$modal.show(
6733
6769
  k7,
6734
6770
  {
6735
6771
  id: n
@@ -6745,7 +6781,7 @@ const W7 = C7.exports, k7 = W7, D7 = ({ id: n }) => {
6745
6781
  };
6746
6782
  const M7 = {
6747
6783
  name: "PostDocumentSend",
6748
- mixins: [j],
6784
+ mixins: [h],
6749
6785
  i18nOptions: {
6750
6786
  namespaces: "PostDocumentSend",
6751
6787
  messages: {
@@ -6790,9 +6826,9 @@ const M7 = {
6790
6826
  },
6791
6827
  methods: {
6792
6828
  ...y({
6793
- updateDocument: u.DO_UPDATE_DOCUMENT2,
6794
- answerDocument: u.ANSWER_OWN_DOCUMENT2,
6795
- sendDocument: u.DO_SEND_DOCUMENT2
6829
+ updateDocument: o.DO_UPDATE_DOCUMENT2,
6830
+ answerDocument: o.ANSWER_OWN_DOCUMENT2,
6831
+ sendDocument: o.DO_SEND_DOCUMENT2
6796
6832
  }),
6797
6833
  async handleDocumentLinks() {
6798
6834
  const { id: n } = this.document, e = k(this.document), t = !e.sms && !e.email;
@@ -6877,9 +6913,10 @@ var V7 = function() {
6877
6913
  null
6878
6914
  );
6879
6915
  const Y7 = J7.exports;
6880
- w.use(nt);
6916
+ j.use(nt);
6881
6917
  const G7 = {
6882
6918
  name: "DocForm",
6919
+ mixins: [Ye(["closeFunc"])],
6883
6920
  i18nOptions: {
6884
6921
  namespaces: "widgetDocForm",
6885
6922
  messages: {
@@ -6915,7 +6952,7 @@ const G7 = {
6915
6952
  };
6916
6953
  },
6917
6954
  computed: {
6918
- ...Ye({
6955
+ ...Ge({
6919
6956
  company: "application/company",
6920
6957
  feature: "application/feature",
6921
6958
  can: "application/can",
@@ -6944,14 +6981,14 @@ const G7 = {
6944
6981
  (!this.rawDoc || (n = this.rawDoc) != null && n.__isNew) && (this.view = "templateSelect");
6945
6982
  },
6946
6983
  methods: {
6947
- ...Ge({
6948
- setFormValue: u.SET_FORM_VALUE,
6949
- removeFormValue: u.REMOVE_FORM_VALUE,
6950
- removeFormKeyValue: u.REMOVE_FORM_KEY_VALUE,
6951
- loadDocumentForm: u.LOAD_DOCUMENT2_FORM,
6952
- duplicateDocumentForm: u.LOAD_DUPLICATE_DOCUMENT2_FORM,
6953
- saveDocument: u.SAVE_DYNDOC_FORM,
6954
- loadCompanyUser: u.LOAD_COMPANY_USER
6984
+ ...Re({
6985
+ setFormValue: o.SET_FORM_VALUE,
6986
+ removeFormValue: o.REMOVE_FORM_VALUE,
6987
+ removeFormKeyValue: o.REMOVE_FORM_KEY_VALUE,
6988
+ loadDocumentForm: o.LOAD_DOCUMENT2_FORM,
6989
+ duplicateDocumentForm: o.LOAD_DUPLICATE_DOCUMENT2_FORM,
6990
+ saveDocument: o.SAVE_DYNDOC_FORM,
6991
+ loadCompanyUser: o.LOAD_COMPANY_USER
6955
6992
  }),
6956
6993
  async initDoc() {
6957
6994
  if (!this.rawDoc)
@@ -6976,7 +7013,7 @@ const G7 = {
6976
7013
  _formData: f
6977
7014
  }) : await this.loadDocumentForm({
6978
7015
  templateId: n,
6979
- formData: t ? Re(t, f) : null,
7016
+ formData: t ? Ae(t, f) : null,
6980
7017
  _formData: f
6981
7018
  }), (r = f == null ? void 0 : f.data) != null && r.name && this.setDocValue({ key: "data.name", value: f.data.name }), await this.initDoc(), this.view = "editor";
6982
7019
  },
@@ -6994,7 +7031,12 @@ const G7 = {
6994
7031
  n && (t != null && t.senderClient) ? (this.document = t, this.view = "postSend") : this.close();
6995
7032
  },
6996
7033
  close() {
6997
- Ae.open = !1;
7034
+ if (this.closeFunc)
7035
+ this.closeFunc();
7036
+ else
7037
+ throw new Error(
7038
+ "[DocForm] closeFunc is missing from route params. Make sure to set it from ui"
7039
+ );
6998
7040
  },
6999
7041
  goBack() {
7000
7042
  this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
@@ -7003,7 +7045,7 @@ const G7 = {
7003
7045
  };
7004
7046
  var R7 = function() {
7005
7047
  var e = this, t = e._self._c;
7006
- return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery") } })], 1) : e.view === "editor" ? t("DocumentEditor", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7048
+ return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentEditor", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7007
7049
  }, A7 = [], S7 = /* @__PURE__ */ d(
7008
7050
  G7,
7009
7051
  R7,