@cling-se/widget 0.9.31 → 0.9.33

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 (119) hide show
  1. package/dist/{AddClientCallout-24d768b3.js → AddClientCallout-5d2a5eaa.js} +5 -5
  2. package/dist/{AnswerModal-dfc7f833.js → AnswerModal-39f81c0e.js} +47 -47
  3. package/dist/{AttachmentItem-488b86dd.js → AttachmentItem-5d900d83.js} +3 -3
  4. package/dist/{BaseDatePicker-e6ccad3a.js → BaseDatePicker-92562106.js} +2 -2
  5. package/dist/{BaseInput-6e56b8d1.js → BaseInput-1c9d9daf.js} +1 -1
  6. package/dist/{BaseUpload-71f1b275.js → BaseUpload-078e4666.js} +2 -2
  7. package/dist/{BlockMedia-c79a4337.js → BlockMedia-4155dbd6.js} +1 -1
  8. package/dist/{CCallout-e3750faa.js → CCallout-46b3d405.js} +2 -2
  9. package/dist/{CDropdownItem-88323f71.js → CDropdownItem-9b1ca709.js} +1 -1
  10. package/dist/{CField-f9bba928.js → CField-d7edf10c.js} +1 -1
  11. package/dist/{CPhoneFormat-cde6dc0e.js → CPhoneFormat-40bd6283.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-7a85b50d.js → CSlider.vue_vue_type_style_index_0_lang-12f32bb7.js} +1 -1
  13. package/dist/{ClientAutocomplete-d2795bd2.js → ClientAutocomplete-a6bb0940.js} +2 -2
  14. package/dist/{ClientModal-d0ea3ce2.js → ClientModal-e5f7b4b8.js} +5 -5
  15. package/dist/{ColorPicker-5d5a1857.js → ColorPicker-c1b32ad5.js} +1 -1
  16. package/dist/{CompanyModal-6c34c20c.js → CompanyModal-977515ec.js} +3 -3
  17. package/dist/{ContentWrapper-2aed29d3.js → ContentWrapper-62f4579f.js} +13 -13
  18. package/dist/{CoverBlockSettings-dcc286e4.js → CoverBlockSettings-7226a5b6.js} +9 -9
  19. package/dist/{DocAnswer-2369f748.js → DocAnswer-245629ec.js} +4 -4
  20. package/dist/{DocDetails-c4a9f60a.js → DocDetails-8172e555.js} +4 -4
  21. package/dist/{DocForm-e363f56b.js → DocForm-3d4d126b.js} +694 -826
  22. package/dist/{DocFormSend-ebae7df3.js → DocFormSend-237ec151.js} +17 -17
  23. package/dist/{DocLinks-0a40f844.js → DocLinks-c807e0dc.js} +2 -2
  24. package/dist/{DocModalBase-19651230.js → DocModalBase-f3267f66.js} +1 -1
  25. package/dist/{DocPrint-3a163086.js → DocPrint-2925c8e3.js} +1 -1
  26. package/dist/{DocReceipt-68653527.js → DocReceipt-ac09c964.js} +1 -1
  27. package/dist/{DocSendReminder-86f5237b.js → DocSendReminder-e1999f4e.js} +1 -1
  28. package/dist/{DocTextEditor-81792d61.js → DocTextEditor-25220c68.js} +8 -8
  29. package/dist/{DocTimeline-6e34b841.js → DocTimeline-5eb73448.js} +1 -1
  30. package/dist/{DocumentClient-12d31ace.js → DocumentClient-321f7941.js} +7 -7
  31. package/dist/{DocumentLayout-b17e31c9.js → DocumentLayout-a798e912.js} +340 -331
  32. package/dist/{DocumentLogotype-4cc9a9ef.js → DocumentLogotype-b87b1b6d.js} +3 -3
  33. package/dist/{DocumentVoided-406c0ad1.js → DocumentVoided-f0601bd6.js} +1 -1
  34. package/dist/{EmbedInput-a0c0c0c4.js → EmbedInput-39a03d94.js} +2 -2
  35. package/dist/{EmbedSettings-615e0b87.js → EmbedSettings-554aac05.js} +3 -3
  36. package/dist/{ErrorCallout-706a3f77.js → ErrorCallout-21273503.js} +1 -1
  37. package/dist/{FilePreviewModal-ecab34c8.js → FilePreviewModal-29a98271.js} +5 -5
  38. package/dist/{Flag-9f5eb788.js → Flag-6e070aa2.js} +1 -1
  39. package/dist/{HeaderSettings-73c0961b.js → HeaderSettings-61efccf5.js} +21 -21
  40. package/dist/{ImageSelectModal-93764b6f.js → ImageSelectModal-fd5cd1d6.js} +8 -8
  41. package/dist/{ImageUploadWrapper-fe99eb8b.js → ImageUploadWrapper-f7f6033b.js} +2 -2
  42. package/dist/{Index-96277fb2.js → Index-2beebe64.js} +6 -6
  43. package/dist/{Index-3a123b4e.js → Index-2ecd6c6a.js} +3 -3
  44. package/dist/{Index-a029c07f.js → Index-30e39d25.js} +4 -4
  45. package/dist/{Index-a2cf77ea.js → Index-3323e160.js} +2 -2
  46. package/dist/{Index-e1897561.js → Index-46f2a6e0.js} +4 -4
  47. package/dist/{Index-acda7892.js → Index-4835bdde.js} +2 -2
  48. package/dist/{Index-672923c9.js → Index-4d3fa8b8.js} +4 -4
  49. package/dist/{Index-44e89aa9.js → Index-524cea65.js} +50 -23
  50. package/dist/{Index-66295846.js → Index-59e57f26.js} +6 -6
  51. package/dist/{Index-3052ab4d.js → Index-617c91c3.js} +1 -1
  52. package/dist/{Index-d42a13b8.js → Index-6a5ee34c.js} +9 -9
  53. package/dist/{Index-825f3a1f.js → Index-727c0770.js} +23 -23
  54. package/dist/{Index-bf0de2df.js → Index-729cd253.js} +14 -14
  55. package/dist/{Index-b1df203d.js → Index-74f5784f.js} +5 -5
  56. package/dist/{Index-50c7ee58.js → Index-7f1f80fa.js} +17 -17
  57. package/dist/{Index-7d7f7e31.js → Index-808af4fd.js} +4 -4
  58. package/dist/{Index-aff3d93a.js → Index-875247ac.js} +5 -5
  59. package/dist/{Index-fda4f71a.js → Index-8920bf5c.js} +4 -4
  60. package/dist/{Index-539987a6.js → Index-8ce025b4.js} +7 -7
  61. package/dist/{Index-08b136bb.js → Index-9311fb23.js} +4 -4
  62. package/dist/{Index-c181220a.js → Index-952af56e.js} +6 -6
  63. package/dist/{Index-88a20cfb.js → Index-afe7a567.js} +2 -2
  64. package/dist/{Index-96d8aa1c.js → Index-b0cddd8a.js} +4 -4
  65. package/dist/{Index-c5c60100.js → Index-c01113d6.js} +2 -2
  66. package/dist/{Index-448c8cfc.js → Index-c1ef9eae.js} +10 -10
  67. package/dist/{Index-6c74f06d.js → Index-c3193bbe.js} +6 -6
  68. package/dist/{Index-da669865.js → Index-cc59098f.js} +2 -2
  69. package/dist/{Index-cc9aec2b.js → Index-d1732510.js} +2 -2
  70. package/dist/{Index-fe25c28e.js → Index-d8d40597.js} +2 -2
  71. package/dist/{Index-efc1cdd2.js → Index-e29b7205.js} +4 -4
  72. package/dist/{Index-ca6bf576.js → Index-e876c053.js} +9 -9
  73. package/dist/{Index-295a1424.js → Index-e903660c.js} +2 -2
  74. package/dist/{Index-d077ee95.js → Index-f1c8a1fd.js} +41 -26
  75. package/dist/{Index-8c09fd91.js → Index-fdbed274.js} +1 -1
  76. package/dist/{InputToggleRow-9bf217c1.js → InputToggleRow-e9ccb4db.js} +1 -1
  77. package/dist/{IsPremiumPreStep-4d92f1ad.js → IsPremiumPreStep-086fdca0.js} +15 -15
  78. package/dist/{ManualPopover-ae1487dd.js → ManualPopover-01700f5a.js} +1 -1
  79. package/dist/{MediaWrapper-2f250f98.js → MediaWrapper-32ca2c1d.js} +3 -3
  80. package/dist/{NotBindingText-9137c52d.js → NotBindingText-fb273710.js} +2 -2
  81. package/dist/{PackageGroup-333b552e.js → PackageGroup-856c8037.js} +12 -12
  82. package/dist/{PdfTerms-1e7aaca6.js → PdfTerms-ec7f5bf0.js} +15 -14
  83. package/dist/PdfViewer-876f73eb.js +251 -0
  84. package/dist/{PlainHtml-c68e93f5.js → PlainHtml-eaf23e90.js} +1 -1
  85. package/dist/{PriceHeader-a2fac138.js → PriceHeader-08162c74.js} +13 -13
  86. package/dist/{SearchApi-006cecf3.js → SearchApi-4e81ff12.js} +2 -2
  87. package/dist/{Setup-2ead963e.js → Setup-d5c66f4b.js} +1 -1
  88. package/dist/{TermsSettings-d9a9fa85.js → TermsSettings-5c9b40f9.js} +7 -7
  89. package/dist/{ThemeColorRow-7b4f4b4a.js → ThemeColorRow-37d6548d.js} +3 -3
  90. package/dist/{ToggleBinding-28de38c5.js → ToggleBinding-cfa1fef2.js} +3 -3
  91. package/dist/{UploadModal-c94c1bf9.js → UploadModal-e1269a45.js} +3 -3
  92. package/dist/{VideoPlayerInput-6ca13120.js → VideoPlayerInput-675640a9.js} +3 -3
  93. package/dist/{VideoPlayerSettings-694de911.js → VideoPlayerSettings-0d68de0a.js} +4 -4
  94. package/dist/{VideoSelectModal-43179837.js → VideoSelectModal-29619ddc.js} +8 -8
  95. package/dist/{answerDocumentMixin-258ef50d.js → answerDocumentMixin-7c88a039.js} +3 -3
  96. package/dist/{debounce-6e758807.js → debounce-a8a2e7ca.js} +8 -8
  97. package/dist/{focusDrawerMixin-c7716b11.js → focusDrawerMixin-903d1bdd.js} +1 -1
  98. package/dist/{formComponentsInstall-d835efd9.js → formComponentsInstall-286a0acd.js} +12 -12
  99. package/dist/{formDrawerState-66d10543.js → formDrawerState-e034a6ab.js} +1 -1
  100. package/dist/{formValidationMixin-c174cfae.js → formValidationMixin-76dd5928.js} +1 -1
  101. package/dist/{index-8ffa8672.js → index-01421a50.js} +5 -5
  102. package/dist/{index-cb1bc377.js → index-4a052f26.js} +1 -1
  103. package/dist/{index-91f074e6.js → index-5363165d.js} +13 -13
  104. package/dist/{index-a6f6eb93.js → index-563cfa1e.js} +1 -1
  105. package/dist/{index-bae2f40c.js → index-5827c622.js} +1 -1
  106. package/dist/{index-34dbf888.js → index-61ba0ac0.js} +3 -3
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +149 -157
  109. package/dist/{main-4b1b8c72.js → main-d803b876.js} +10708 -10908
  110. package/dist/{mapFormMixin-448a5950.js → mapFormMixin-0583565b.js} +1 -1
  111. package/dist/{publicSenderState-62b7a4e1.js → publicSenderState-b62d76e3.js} +1 -1
  112. package/dist/style.css +2 -2
  113. package/dist/{throttle-635ffdd0.js → throttle-a8b2f0e5.js} +2 -2
  114. package/dist/{tinycolor-e4cbccbe.js → tinycolor-dffe2bfd.js} +1 -1
  115. package/dist/{tippy.esm-c08ce12b.js → tippy.esm-7bfd5b54.js} +5 -5
  116. package/dist/{utils-c123fce7.js → utils-9a1bdd7a.js} +1 -1
  117. package/dist/{vuedraggable.umd-258fba93.js → vuedraggable.umd-a5100bc8.js} +1 -1
  118. package/package.json +4 -4
  119. package/dist/PdfViewer-ff32350f.js +0 -245
@@ -1,169 +1,37 @@
1
- import { b7 as fe, b8 as ge, b9 as q, ba as Ce, bb as N, bc as j, bd as ve, be as ye, bf as xe, bg as we, j as K, g as m, n as d, v as Y, b as u, aF as be, c as f, C as Q, bh as _e, bi as ke, K as J, L as H, h as D, bj as Le, bk as $e, B as Se, bl as Te, bm as De, b6 as Ve, bn as Be, R as p, a9 as h, b1 as y, bo as Me, bp as Ie, bq as Fe, br as He, bs as Ae, bt as Pe, F as Ee, bu as ze, d as Ze, i as $, S as Oe, az as Ue, X as Re, bv as Ge, V as A, b3 as X, b4 as ee, I as E, bw as B, b5 as We, bx as qe, by as I, r as Ne, m as je, a as Ke, bz as Ye } from "./main-4b1b8c72.js";
1
+ import { g as m, n as d, w as U, b as u, aF as ae, c as f, C as O, b7 as se, b8 as ne, L as G, M as H, h as D, b9 as oe, ba as le, D as re, bb as ce, bc as de, b6 as pe, bd as ue, T as p, a9 as h, b1 as y, be as me, bf as he, bg as fe, bh as ge, bi as Ce, bj as ve, G as ye, bk as xe, d as we, i as $, S as be, az as _e, l as ke, bl as Le, V as A, b3 as R, b4 as W, I as z, bm as B, b5 as $e, bn as Se, j as Te, bo as I, r as De, m as Ve, a as Be, bp as Me, bq as Ie } from "./main-d803b876.js";
2
2
  import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-bae2f40c.js";
3
+ import "./index-5827c622.js";
4
4
  import { v as F } from "./index-805c56e4.js";
5
- import { w as b } from "./CDropdownItem-88323f71.js";
6
- import { a as _, I as k, b as Qe, c as Je } from "./IsPremiumPreStep-4d92f1ad.js";
7
- import { D as Xe, l as et, g as tt, W as it, b as at, a as nt } from "./DocumentLayout-b17e31c9.js";
8
- import { s as L } from "./Flag-9f5eb788.js";
9
- import { B as st } from "./BlockMedia-c79a4337.js";
10
- import { d as P, t as ot } from "./debounce-6e758807.js";
11
- import { a as lt } from "./tinycolor-e4cbccbe.js";
12
- import { m as S } from "./mapFormMixin-448a5950.js";
13
- import { S as rt, C as te, i as ct } from "./formComponentsInstall-d835efd9.js";
14
- import { f as dt } from "./formValidationMixin-c174cfae.js";
15
- import { s as v } from "./formDrawerState-66d10543.js";
16
- import { F as ie, d as pt } from "./tippy.esm-c08ce12b.js";
17
- import { S as ut } from "./CSlider.vue_vue_type_style_index_0_lang-7a85b50d.js";
18
- import { o as mt, d as ht } from "./vuedraggable.umd-258fba93.js";
19
- import { s as ft } from "./dom-962579a6.js";
20
- import { o as gt } from "./index-a6f6eb93.js";
21
- import Ct from "./AnswerModal-dfc7f833.js";
5
+ import { w as b } from "./CDropdownItem-9b1ca709.js";
6
+ import { a as _, I as k, b as Fe, c as He } from "./IsPremiumPreStep-086fdca0.js";
7
+ import { D as Ae, l as Pe, g as ze, W as Ee, b as Ze, a as Ue } from "./DocumentLayout-a798e912.js";
8
+ import { s as L } from "./Flag-6e070aa2.js";
9
+ import { B as Oe } from "./BlockMedia-4155dbd6.js";
10
+ import { d as P, t as Ge } from "./debounce-a8a2e7ca.js";
11
+ import { a as Re } from "./tinycolor-dffe2bfd.js";
12
+ import { m as S } from "./mapFormMixin-0583565b.js";
13
+ import { S as We, C as q, i as qe } from "./formComponentsInstall-286a0acd.js";
14
+ import { f as Ne } from "./formValidationMixin-76dd5928.js";
15
+ import { s as v } from "./formDrawerState-e034a6ab.js";
16
+ import { F as N, d as je } from "./tippy.esm-7bfd5b54.js";
17
+ import { S as Ke } from "./CSlider.vue_vue_type_style_index_0_lang-12f32bb7.js";
18
+ import { o as Ye, d as Qe } from "./vuedraggable.umd-a5100bc8.js";
19
+ import { s as Je } from "./dom-962579a6.js";
20
+ import { o as Xe } from "./index-563cfa1e.js";
21
+ import et from "./AnswerModal-39f81c0e.js";
22
22
  import "./anime.es-e284c852.js";
23
23
  import "./color-71c20583.js";
24
- import "./BaseDatePicker-e6ccad3a.js";
25
- import "./ErrorCallout-706a3f77.js";
26
- import "./AddClientCallout-24d768b3.js";
27
- import "./ClientAutocomplete-d2795bd2.js";
28
- import "./SearchApi-006cecf3.js";
29
- import "./ClientModal-d0ea3ce2.js";
30
- import "./CCallout-e3750faa.js";
31
- import "./CField-f9bba928.js";
24
+ import "./BaseDatePicker-92562106.js";
25
+ import "./ErrorCallout-21273503.js";
26
+ import "./AddClientCallout-5d2a5eaa.js";
27
+ import "./ClientAutocomplete-a6bb0940.js";
28
+ import "./SearchApi-4e81ff12.js";
29
+ import "./ClientModal-e5f7b4b8.js";
30
+ import "./CCallout-46b3d405.js";
31
+ import "./CField-d7edf10c.js";
32
32
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
33
- import "./ColorPicker-5d5a1857.js";
34
- var vt = fe, yt = ge, xt = q;
35
- function wt(i, e, t) {
36
- for (var a = -1, n = e.length, s = {}; ++a < n; ) {
37
- var o = e[a], l = vt(i, o);
38
- t(l, o) && yt(s, xt(o, i), l);
39
- }
40
- return s;
41
- }
42
- var bt = wt;
43
- function _t(i, e) {
44
- return i != null && e in Object(i);
45
- }
46
- var kt = _t, Lt = Ce, $t = N, St = "[object Arguments]";
47
- function Tt(i) {
48
- return $t(i) && Lt(i) == St;
49
- }
50
- var Dt = Tt, z = Dt, Vt = N, ae = Object.prototype, Bt = ae.hasOwnProperty, Mt = ae.propertyIsEnumerable, It = z(function() {
51
- return arguments;
52
- }()) ? z : function(i) {
53
- return Vt(i) && Bt.call(i, "callee") && !Mt.call(i, "callee");
54
- }, ne = It, Ft = 9007199254740991;
55
- function Ht(i) {
56
- return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Ft;
57
- }
58
- var At = Ht, Pt = q, Et = ne, zt = j, Zt = ve, Ot = At, Ut = ye;
59
- function Rt(i, e, t) {
60
- e = Pt(e, i);
61
- for (var a = -1, n = e.length, s = !1; ++a < n; ) {
62
- var o = Ut(e[a]);
63
- if (!(s = i != null && t(i, o)))
64
- break;
65
- i = i[o];
66
- }
67
- return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Ot(n) && Zt(o, n) && (zt(i) || Et(i)));
68
- }
69
- var Gt = Rt, Wt = kt, qt = Gt;
70
- function Nt(i, e) {
71
- return i != null && qt(i, e, Wt);
72
- }
73
- var jt = Nt, Kt = bt, Yt = jt;
74
- function Qt(i, e) {
75
- return Kt(i, e, function(t, a) {
76
- return Yt(i, a);
77
- });
78
- }
79
- var Jt = Qt;
80
- function Xt(i, e) {
81
- for (var t = -1, a = e.length, n = i.length; ++t < a; )
82
- i[n + t] = e[t];
83
- return i;
84
- }
85
- var e1 = Xt, Z = xe, t1 = ne, i1 = j, O = Z ? Z.isConcatSpreadable : void 0;
86
- function a1(i) {
87
- return i1(i) || t1(i) || !!(O && i && i[O]);
88
- }
89
- var n1 = a1, s1 = e1, o1 = n1;
90
- function se(i, e, t, a, n) {
91
- var s = -1, o = i.length;
92
- for (t || (t = o1), n || (n = []); ++s < o; ) {
93
- var l = i[s];
94
- e > 0 && t(l) ? e > 1 ? se(l, e - 1, t, a, n) : s1(n, l) : a || (n[n.length] = l);
95
- }
96
- return n;
97
- }
98
- var l1 = se, r1 = l1;
99
- function c1(i) {
100
- var e = i == null ? 0 : i.length;
101
- return e ? r1(i, 1) : [];
102
- }
103
- var d1 = c1;
104
- function p1(i, e, t) {
105
- switch (t.length) {
106
- case 0:
107
- return i.call(e);
108
- case 1:
109
- return i.call(e, t[0]);
110
- case 2:
111
- return i.call(e, t[0], t[1]);
112
- case 3:
113
- return i.call(e, t[0], t[1], t[2]);
114
- }
115
- return i.apply(e, t);
116
- }
117
- var u1 = p1, m1 = u1, U = Math.max;
118
- function h1(i, e, t) {
119
- return e = U(e === void 0 ? i.length - 1 : e, 0), function() {
120
- for (var a = arguments, n = -1, s = U(a.length - e, 0), o = Array(s); ++n < s; )
121
- o[n] = a[e + n];
122
- n = -1;
123
- for (var l = Array(e + 1); ++n < e; )
124
- l[n] = a[n];
125
- return l[e] = t(o), m1(i, this, l);
126
- };
127
- }
128
- var f1 = h1;
129
- function g1(i) {
130
- return function() {
131
- return i;
132
- };
133
- }
134
- var C1 = g1;
135
- function v1(i) {
136
- return i;
137
- }
138
- var y1 = v1, x1 = C1, R = we, w1 = y1, b1 = R ? function(i, e) {
139
- return R(i, "toString", {
140
- configurable: !0,
141
- enumerable: !1,
142
- value: x1(e),
143
- writable: !0
144
- });
145
- } : w1, _1 = b1, k1 = 800, L1 = 16, $1 = Date.now;
146
- function S1(i) {
147
- var e = 0, t = 0;
148
- return function() {
149
- var a = $1(), n = L1 - (a - t);
150
- if (t = a, n > 0) {
151
- if (++e >= k1)
152
- return arguments[0];
153
- } else
154
- e = 0;
155
- return i.apply(void 0, arguments);
156
- };
157
- }
158
- var T1 = S1, D1 = _1, V1 = T1, B1 = V1(D1), M1 = B1, I1 = d1, F1 = f1, H1 = M1;
159
- function A1(i) {
160
- return H1(F1(i, void 0, I1), i + "");
161
- }
162
- var P1 = A1, E1 = Jt, z1 = P1, Z1 = z1(function(i, e) {
163
- return i == null ? {} : E1(i, e);
164
- }), O1 = Z1;
165
- const U1 = /* @__PURE__ */ K(O1);
166
- const R1 = {
33
+ import "./ColorPicker-c1b32ad5.js";
34
+ const tt = {
167
35
  i18nOptions: {
168
36
  namespaces: "DocumentTemplateFormModal",
169
37
  messages: {
@@ -306,7 +174,7 @@ const R1 = {
306
174
  }
307
175
  }
308
176
  };
309
- var G1 = function() {
177
+ var it = function() {
310
178
  var e = this, t = e._self._c;
311
179
  return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
312
180
  e.name = a;
@@ -315,34 +183,34 @@ var G1 = function() {
315
183
  }, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
316
184
  e.keepClients = a;
317
185
  }, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
318
- }, W1 = [], q1 = /* @__PURE__ */ d(
319
- R1,
320
- G1,
321
- W1,
186
+ }, at = [], st = /* @__PURE__ */ d(
187
+ tt,
188
+ it,
189
+ at,
322
190
  !1,
323
191
  null,
324
192
  "f544bca9",
325
193
  null,
326
194
  null
327
195
  );
328
- const oe = q1.exports;
329
- function N1(i, { availableProducts: e }) {
196
+ const j = st.exports;
197
+ function nt(i, { availableProducts: e }) {
330
198
  if (!i)
331
199
  throw new Error("Missing parameter templateId");
332
- const t = e, a = Object.keys(t).find((n) => {
200
+ const t = e, a = Object.keys(t).find((s) => {
333
201
  var o;
334
- const s = u(
335
- t[n],
202
+ const n = u(
203
+ t[s],
336
204
  "metadata.companyPurchase"
337
205
  );
338
- return (s == null ? void 0 : s.type) === "template" && ((o = s == null ? void 0 : s.data) == null ? void 0 : o.id) === i;
206
+ return (n == null ? void 0 : n.type) === "template" && ((o = n == null ? void 0 : n.data) == null ? void 0 : o.id) === i;
339
207
  });
340
208
  return a ? t[a] : null;
341
209
  }
342
- async function j1(i) {
210
+ async function ot(i) {
343
211
  if (!i)
344
212
  throw new Error("Missing argument stripeProduct");
345
- const e = i == null ? void 0 : i.prices[0], { data: t } = await be.createCheckoutSession({
213
+ const e = i == null ? void 0 : i.prices[0], { data: t } = await ae.createCheckoutSession({
346
214
  items: [
347
215
  {
348
216
  stripePriceStripeId: e.stripeId,
@@ -354,21 +222,21 @@ async function j1(i) {
354
222
  }), { redirectUrl: a } = t;
355
223
  window.open(a, "_blank");
356
224
  }
357
- function le(i, { availableProducts: e }) {
358
- var n, s, o;
225
+ function K(i, { availableProducts: e }) {
226
+ var s, n, o;
359
227
  let t = null;
360
- const a = N1(i.templateId, { availableProducts: e });
228
+ const a = nt(i.templateId, { availableProducts: e });
361
229
  return a && (t = {
362
- price: Y((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
230
+ price: U((s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].amount, { currency: (n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].currency }),
363
231
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
364
- onBuy: async () => j1(a)
232
+ onBuy: async () => ot(a)
365
233
  }), t;
366
234
  }
367
- const K1 = {
235
+ const lt = {
368
236
  name: "GalleryTemplateModal",
369
237
  components: {
370
238
  simplebar: L,
371
- DocumentLayout: Xe,
239
+ DocumentLayout: Ae,
372
240
  IsPremium: _,
373
241
  IsPremiumPreStep: k
374
242
  },
@@ -438,7 +306,7 @@ const K1 = {
438
306
  isSuperUser: "application/isSuperUser"
439
307
  }),
440
308
  previewDocument() {
441
- const { data: i, defaultData: e } = this.template, t = new Q({
309
+ const { data: i, defaultData: e } = this.template, t = new O({
442
310
  data: {
443
311
  ...e,
444
312
  template: i,
@@ -454,20 +322,20 @@ const K1 = {
454
322
  }
455
323
  },
456
324
  created() {
457
- this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = _e.on(
325
+ this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = se.on(
458
326
  "event",
459
327
  async ({ type: i, action: e, data: t }) => {
460
328
  var a;
461
329
  if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
462
- const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
463
- if (n !== this.template.id)
330
+ const s = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
331
+ if (s !== this.template.id)
464
332
  return;
465
- const s = {
466
- templateId: n,
333
+ const n = {
334
+ templateId: s,
467
335
  isVisibleApp: !0,
468
336
  includePurchaseInfo: !0
469
- }, o = await this.fetchGallery(s);
470
- this.privateProduct = le(
337
+ }, o = await this.fetchGallery(n);
338
+ this.privateProduct = K(
471
339
  o[0],
472
340
  { availableProducts: this.stripeProducts }
473
341
  );
@@ -483,7 +351,7 @@ const K1 = {
483
351
  const i = this.template.id;
484
352
  i || (this.templateStat = null);
485
353
  try {
486
- const { data: e } = await ke.get(i);
354
+ const { data: e } = await ne.get(i);
487
355
  this.templateStat = e;
488
356
  } catch {
489
357
  this.templateStat = null;
@@ -500,44 +368,44 @@ const K1 = {
500
368
  },
501
369
  async copyToClipboard(i) {
502
370
  const e = `${f.baseUrl}/template/${i}`;
503
- await J(e) && H("info", this.$t("copyMessage"));
371
+ await G(e) && H("info", this.$t("copyMessage"));
504
372
  }
505
373
  }
506
374
  };
507
- var Y1 = function() {
375
+ var rt = function() {
508
376
  var a;
509
377
  var e = this, t = e._self._c;
510
378
  return t("div", { staticClass: "bg-gray-200 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,", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : 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%)" } }, [(a = e.templateStat) != null && a.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: {
511
379
  backgroundImage: `url(${e.meta.author.avatar})`
512
380
  } }), 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" } }, [e.product ? [e.privateProduct.isPurchased ? t("div", { staticClass: "flex items-center gap-2 p-1 mb-5 text-sm border border-gray-300 rounded-full bg-gray-300/60" }, [t("div", { staticClass: "flex items-center justify-center w-5 h-5 rounded-full bg-primary-500" }, [t("BaseIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(
513
381
  e.$t("_common:purchased", { thing: e.$t("_common:template") })
514
- ) } })]) : t("CButton", { staticClass: "text-left !justify-start !px-4", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "absolute py-1.5 px-2 text-sm leading-none text-white -translate-y-1/2 border rounded-md right-2 top-1/2 bg-primary-400/80 border-primary-600/60", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: n }) {
515
- return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
382
+ ) } })]) : t("CButton", { staticClass: "text-left !justify-start !px-4", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "absolute py-1.5 px-2 text-sm leading-none text-white -translate-y-1/2 border rounded-md right-2 top-1/2 bg-primary-400/80 border-primary-600/60", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: s }) {
383
+ return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
516
384
  return [!e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: function(o) {
517
- e.isPublicForm || n ? e.useSelectedTemplate() : s({ callback: e.useSelectedTemplate });
385
+ e.isPublicForm || s ? e.useSelectedTemplate() : n({ callback: e.useSelectedTemplate });
518
386
  } } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
519
387
  } }], null, !0) })];
520
- } }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
521
- return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
388
+ } }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: s }) {
389
+ return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
522
390
  var o;
523
391
  return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
524
- e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
392
+ e.didSave || (e.isPublicForm || s ? e.saveAsTemplate() : n({ callback: e.saveAsTemplate }));
525
393
  } } }, [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()];
526
394
  } }], null, !0) })];
527
- } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "admin", wide: "" }, on: { click: function(n) {
395
+ } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "admin", wide: "" }, on: { click: function(s) {
528
396
  return e.copyToClipboard(e.template.id);
529
397
  } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
530
- }, Q1 = [], J1 = /* @__PURE__ */ d(
531
- K1,
532
- Y1,
533
- Q1,
398
+ }, ct = [], dt = /* @__PURE__ */ d(
399
+ lt,
400
+ rt,
401
+ ct,
534
402
  !1,
535
403
  null,
536
404
  "74568361",
537
405
  null,
538
406
  null
539
407
  );
540
- const X1 = J1.exports, e2 = {
408
+ const pt = dt.exports, ut = {
541
409
  name: "GalleryLogic",
542
410
  i18nOptions: {
543
411
  namespaces: "GalleryLogic",
@@ -662,16 +530,16 @@ const X1 = J1.exports, e2 = {
662
530
  }
663
531
  },
664
532
  beforeCreate() {
665
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Qe);
533
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Fe);
666
534
  },
667
535
  async created() {
668
- var t, a, n, s;
536
+ var t, a, s, n;
669
537
  this.canPurchase && await this.loadPrices();
670
538
  let i = this.galleryCategory;
671
539
  !i && ((a = (t = this.$route) == null ? void 0 : t.query) != null && a.list) && ([i] = this.$route.query.list.split(",")), i && (this.activeCategory = this.allCategories.find(
672
540
  ({ key: o }) => o === i
673
541
  )), await this.loadTemplateGallery();
674
- const e = (s = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : s.id;
542
+ const e = (n = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : n.id;
675
543
  if (e)
676
544
  try {
677
545
  const o = this.templateGalleryItems.find(
@@ -697,7 +565,7 @@ const X1 = J1.exports, e2 = {
697
565
  const e = await this.fetchGallery(i);
698
566
  this.templateGalleryItems = (e || []).map((t) => {
699
567
  if (this.canPurchase && t.isPurchasable) {
700
- const a = le(t, {
568
+ const a = K(t, {
701
569
  availableProducts: this.stripeProducts
702
570
  });
703
571
  a && (t.product = a);
@@ -714,14 +582,14 @@ const X1 = J1.exports, e2 = {
714
582
  }
715
583
  },
716
584
  async getGalleryTemplate(i) {
717
- var s;
585
+ var n;
718
586
  const e = {
719
587
  _id: i,
720
588
  populate: "templateId",
721
589
  isVisibleApp: !0,
722
590
  includePurchaseInfo: !0
723
- }, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
724
- return a ? (Le(a), new $e(a)) : null;
591
+ }, t = await this.fetchGallery(e), a = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.templateId;
592
+ return a ? (oe(a), new le(a)) : null;
725
593
  },
726
594
  onUseTemplate(i) {
727
595
  if (!i)
@@ -744,7 +612,7 @@ const X1 = J1.exports, e2 = {
744
612
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
745
613
  };
746
614
  this.$modal.show(
747
- X1,
615
+ pt,
748
616
  {
749
617
  template: i,
750
618
  fetchGallery: this.fetchGallery,
@@ -799,30 +667,30 @@ const X1 = J1.exports, e2 = {
799
667
  selectGalleryItem: this.selectGalleryItem
800
668
  });
801
669
  }
802
- }, t2 = null, i2 = null;
803
- var a2 = /* @__PURE__ */ d(
804
- e2,
805
- t2,
806
- i2,
670
+ }, mt = null, ht = null;
671
+ var ft = /* @__PURE__ */ d(
672
+ ut,
673
+ mt,
674
+ ht,
807
675
  !1,
808
676
  null,
809
677
  null,
810
678
  null,
811
679
  null
812
680
  );
813
- const n2 = a2.exports;
814
- const s2 = {
681
+ const gt = ft.exports;
682
+ const Ct = {
815
683
  name: "DocumentIcon",
816
- truncate: Se,
684
+ truncate: re,
817
685
  inject: {
818
686
  components: {
819
687
  default: {
820
- BlockMedia: st
688
+ BlockMedia: Oe
821
689
  }
822
690
  }
823
691
  }
824
692
  };
825
- var o2 = function(e, t) {
693
+ var vt = function(e, t) {
826
694
  return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
827
695
  t.data.staticClass,
828
696
  t.data.class,
@@ -838,18 +706,18 @@ var o2 = function(e, t) {
838
706
  } }) : 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(
839
707
  t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })
840
708
  ) } }) : 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)]);
841
- }, l2 = [], r2 = /* @__PURE__ */ d(
842
- s2,
843
- o2,
844
- l2,
709
+ }, yt = [], xt = /* @__PURE__ */ d(
710
+ Ct,
711
+ vt,
712
+ yt,
845
713
  !0,
846
714
  null,
847
715
  "e2f4722e",
848
716
  null,
849
717
  null
850
718
  );
851
- const c2 = r2.exports;
852
- const d2 = {
719
+ const wt = xt.exports;
720
+ const bt = {
853
721
  name: "HorizontalScroll",
854
722
  components: {
855
723
  Simplebar: L
@@ -879,10 +747,10 @@ const d2 = {
879
747
  },
880
748
  methods: {
881
749
  go(i) {
882
- var n, s;
750
+ var s, n;
883
751
  if (!this.$refs.container)
884
752
  return;
885
- const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
753
+ const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (n = (s = this.$refs) == null ? void 0 : s.list) == null ? void 0 : n.scrollElement;
886
754
  if (!t)
887
755
  return;
888
756
  const { scrollLeft: a } = t;
@@ -894,8 +762,8 @@ const d2 = {
894
762
  },
895
763
  scrollHandler() {
896
764
  clearTimeout(this.scrollTimer), this.scrollTimer = setTimeout(() => {
897
- var n, s;
898
- const i = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
765
+ var s, n;
766
+ const i = (n = (s = this.$refs) == null ? void 0 : s.list) == null ? void 0 : n.scrollElement;
899
767
  if (!i)
900
768
  return;
901
769
  const { scrollWidth: e, scrollLeft: t, offsetWidth: a } = i;
@@ -904,7 +772,7 @@ const d2 = {
904
772
  }
905
773
  }
906
774
  };
907
- var p2 = function() {
775
+ var _t = function() {
908
776
  var e = this, t = e._self._c;
909
777
  return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left max-sm:hidden", on: { click: function(a) {
910
778
  return e.go(-1);
@@ -917,18 +785,18 @@ var p2 = function() {
917
785
  return e.$emit("expand");
918
786
  } } })];
919
787
  })], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
920
- }, u2 = [], m2 = /* @__PURE__ */ d(
921
- d2,
922
- p2,
923
- u2,
788
+ }, kt = [], Lt = /* @__PURE__ */ d(
789
+ bt,
790
+ _t,
791
+ kt,
924
792
  !1,
925
793
  null,
926
794
  "31e10485",
927
795
  null,
928
796
  null
929
797
  );
930
- const h2 = m2.exports;
931
- const f2 = {
798
+ const $t = Lt.exports;
799
+ const St = {
932
800
  name: "DocumentFormRecent",
933
801
  i18nOptions: {
934
802
  namespaces: "DocumentFormRecent",
@@ -974,7 +842,7 @@ const f2 = {
974
842
  async fetchDocuments(i) {
975
843
  const e = this.query ? 180 : 90, t = {
976
844
  createdAt: {
977
- $gte: this.$formatDate(Te(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
845
+ $gte: this.$formatDate(ce(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
978
846
  },
979
847
  // Only provide or if there is a search query to filter on
980
848
  ...this.query && {
@@ -983,23 +851,23 @@ const f2 = {
983
851
  {
984
852
  clients: {
985
853
  $elemMatch: {
986
- $or: ["name", "email", "socialNo", "orgNo"].map((s) => ({
987
- [s]: { $regex: this.query, $options: "i" }
854
+ $or: ["name", "email", "socialNo", "orgNo"].map((n) => ({
855
+ [n]: { $regex: this.query, $options: "i" }
988
856
  }))
989
857
  }
990
858
  }
991
859
  }
992
860
  ]
993
861
  }
994
- }, { data: a } = await De.getAll({
862
+ }, { data: a } = await de.getAll({
995
863
  lean: !0,
996
864
  filter: encodeURIComponent(JSON.stringify(t)),
997
865
  fields: "clients,data.name,createdAt",
998
866
  skip: i || 0,
999
867
  sort: "-createdAt",
1000
868
  limit: 10
1001
- }), { items: n = [] } = a || {};
1002
- return n;
869
+ }), { items: s = [] } = a || {};
870
+ return s;
1003
871
  },
1004
872
  onLoadDocuments: P(async function() {
1005
873
  this.isLoading = !0, this.hasItems = !0;
@@ -1016,17 +884,17 @@ const f2 = {
1016
884
  }
1017
885
  }
1018
886
  };
1019
- var g2 = function() {
887
+ var Tt = function() {
1020
888
  var e = this, t = e._self._c;
1021
889
  return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { staticClass: "hidden md:flex", attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
1022
890
  e.query = a;
1023
891
  }, expression: "query" } }) : e._e()], 2), t("div", { staticClass: "recent-list" }, [e.isLoading && !e.list.length ? e._l(3, function(a) {
1024
892
  return t("div", { key: a, staticClass: "recent-item placeholder" }, [t("CSkeleton", { staticClass: "recent-item-name", attrs: { width: "60%" } }), t("CSkeleton", { attrs: { width: "35%" } })], 1);
1025
- }) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "p-4 text-center text-gray-400 bg-gray-100 border border-gray-200 rounded-md", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: n }) {
1026
- return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
893
+ }) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "p-4 text-center text-gray-400 bg-gray-100 border border-gray-200 rounded-md", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: s }) {
894
+ return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
1027
895
  return [t("div", e._l(e.list, function(o, l) {
1028
896
  return t("div", { key: o._id, staticClass: "recent-item", on: { click: function(r) {
1029
- n ? e.onUseDocTemplate(o._id) : s({
897
+ s ? e.onUseDocTemplate(o._id) : n({
1030
898
  callback: () => e.onUseDocTemplate(o._id)
1031
899
  });
1032
900
  }, "&mouseover": function(r) {
@@ -1043,18 +911,18 @@ var g2 = function() {
1043
911
  }), 0)];
1044
912
  } }], null, !0) })];
1045
913
  } }]) })]], 2)]);
1046
- }, C2 = [], v2 = /* @__PURE__ */ d(
1047
- f2,
1048
- g2,
1049
- C2,
914
+ }, Dt = [], Vt = /* @__PURE__ */ d(
915
+ St,
916
+ Tt,
917
+ Dt,
1050
918
  !1,
1051
919
  null,
1052
920
  "496e96d5",
1053
921
  null,
1054
922
  null
1055
923
  );
1056
- const y2 = v2.exports;
1057
- const x2 = {
924
+ const Bt = Vt.exports;
925
+ const Mt = {
1058
926
  i18nOptions: {
1059
927
  namespaces: "TemplateSelector",
1060
928
  messages: {
@@ -1099,10 +967,10 @@ const x2 = {
1099
967
  name: "TemplateSelector",
1100
968
  mixins: [b],
1101
969
  components: {
1102
- HorizontalScroll: h2,
1103
- DocumentIcon: c2,
1104
- DocumentRecent: y2,
1105
- GalleryLogic: n2,
970
+ HorizontalScroll: $t,
971
+ DocumentIcon: wt,
972
+ DocumentRecent: Bt,
973
+ GalleryLogic: gt,
1106
974
  IsPremiumPreStep: k
1107
975
  },
1108
976
  props: {
@@ -1225,7 +1093,7 @@ const x2 = {
1225
1093
  },
1226
1094
  async saveTemplate(i) {
1227
1095
  try {
1228
- const { data: e } = i, t = Ve(e, [
1096
+ const { data: e } = i, t = pe(e, [
1229
1097
  "_id",
1230
1098
  "id",
1231
1099
  "companyId",
@@ -1239,7 +1107,7 @@ const x2 = {
1239
1107
  },
1240
1108
  async openTemplateFormModal({ document: i = null, template: e = null }) {
1241
1109
  this.$modal.show(
1242
- oe,
1110
+ j,
1243
1111
  {
1244
1112
  document: i,
1245
1113
  template: e,
@@ -1256,7 +1124,7 @@ const x2 = {
1256
1124
  );
1257
1125
  },
1258
1126
  async fetchGallery(i = {}) {
1259
- const { data: e } = await Be.get(i);
1127
+ const { data: e } = await ue.get(i);
1260
1128
  return e;
1261
1129
  },
1262
1130
  canUseTemplate(i) {
@@ -1264,49 +1132,49 @@ const x2 = {
1264
1132
  },
1265
1133
  async copyToClipboard(i) {
1266
1134
  const e = `${f.baseUrl}/template/${i}`;
1267
- await J(e) && H("info", this.$t("copyMessage"));
1135
+ await G(e) && H("info", this.$t("copyMessage"));
1268
1136
  }
1269
1137
  }
1270
1138
  };
1271
- var w2 = function() {
1139
+ var It = function() {
1272
1140
  var e = this, t = e._self._c;
1273
1141
  return t("div", { staticClass: "w-full h-full px-4 pt-10 pb-10 overflow-y-auto bg-white md:pt-16 md:px-10 rounded-2xl" }, [t("div", { staticClass: "max-w-5xl mx-auto font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
1274
- return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
1142
+ return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(s) {
1275
1143
  e.isExpanded = !0;
1276
- } } }, e._l(e.myTemplates, function(n) {
1277
- return t("DocumentIcon", { key: n.id, staticClass: "template-item", attrs: { "is-add": n.id === "empty", "is-placeholder": n.placeholder, media: n.defaultMedia || e.fallbackMedia, thumbnail: n.thumbnailUrl, name: n.name }, on: { click: function(s) {
1278
- n.placeholder || (e.canUseTemplate(n) ? e.select({ templateId: n.id }) : a());
1279
- } } }, [e.canUseTemplate(n) ? !n.doConsumeDocumentQuota && !n.placeholder ? t("div", { staticClass: "text-[11px] h-5 capitalize font-semibold text-white bg-primary-500 rounded leading-none px-1.5 inline-flex items-center border border-primary-600 shadow-sm", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex items-center h-5 gap-1 px-1 leading-none bg-gray-200 border border-gray-300 rounded shadow-sm text-gray-500/90", attrs: { slot: "badge" }, slot: "badge" }, [t("BaseIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1), n.onModify === "create" && !n.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1144
+ } } }, e._l(e.myTemplates, function(s) {
1145
+ return t("DocumentIcon", { key: s.id, staticClass: "template-item", attrs: { "is-add": s.id === "empty", "is-placeholder": s.placeholder, media: s.defaultMedia || e.fallbackMedia, thumbnail: s.thumbnailUrl, name: s.name }, on: { click: function(n) {
1146
+ s.placeholder || (e.canUseTemplate(s) ? e.select({ templateId: s.id }) : a());
1147
+ } } }, [e.canUseTemplate(s) ? !s.doConsumeDocumentQuota && !s.placeholder ? t("div", { staticClass: "text-[11px] h-5 capitalize font-semibold text-white bg-primary-500 rounded leading-none px-1.5 inline-flex items-center border border-primary-600 shadow-sm", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex items-center h-5 gap-1 px-1 leading-none bg-gray-200 border border-gray-300 rounded shadow-sm text-gray-500/90", attrs: { slot: "badge" }, slot: "badge" }, [t("BaseIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1), s.onModify === "create" && !s.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1280
1148
  content: e.$t("icon.freeTooltip"),
1281
1149
  placement: "bottom"
1282
1150
  }, expression: `{
1283
1151
  content: $t('icon.freeTooltip'),
1284
1152
  placement: 'bottom'
1285
- }` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(s) {
1286
- s.stopPropagation();
1287
- } } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(s) {
1288
- s.stopPropagation();
1289
- } } }, [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(s) {
1290
- return e.onEditTemplate(n.id);
1291
- } } }, [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(s) {
1292
- return e.openTemplateFormModal({ template: n });
1293
- } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e.allowCopyTemplateLink ? [t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "admin" }, on: { click: function(s) {
1294
- return e.copyToClipboard(n.id);
1295
- } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } })] : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
1296
- return e.removeTemplate({ template: n });
1153
+ }` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(n) {
1154
+ n.stopPropagation();
1155
+ } } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(n) {
1156
+ n.stopPropagation();
1157
+ } } }, [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(n) {
1158
+ return e.onEditTemplate(s.id);
1159
+ } } }, [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(n) {
1160
+ return e.openTemplateFormModal({ template: s });
1161
+ } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e.allowCopyTemplateLink ? [t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "admin" }, on: { click: function(n) {
1162
+ return e.copyToClipboard(s.id);
1163
+ } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } })] : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(n) {
1164
+ return e.removeTemplate({ template: s });
1297
1165
  } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 2)], 1);
1298
1166
  }), 1)];
1299
1167
  } }]) })], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps, "gallery-category": e.galleryCategory }, scopedSlots: e._u([{ key: "default", fn: function({
1300
1168
  galleryItems: a,
1301
- categories: n,
1302
- activeCategory: s,
1169
+ categories: s,
1170
+ activeCategory: n,
1303
1171
  selectCategory: o,
1304
1172
  selectGalleryItem: l
1305
1173
  }) {
1306
1174
  return [t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "w-full section-title" }, [t("div", { staticClass: "flex justify-between items-center" }, [t("div", [e._v(e._s(e.$t("gallery")))]), t("CDropdown", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" }, nativeOn: { click: function(r) {
1307
1175
  r.stopPropagation();
1308
- } } }, [t("CButton", { attrs: { slot: "trigger", size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(s ? s.label : "") + " ")]), e._l(n, function(r) {
1309
- return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(c) {
1176
+ } } }, [t("CButton", { attrs: { slot: "trigger", size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(n ? n.label : "") + " ")]), e._l(s, function(r) {
1177
+ return t("CDropdownItem", { key: r.key, attrs: { "icon-right": n && n.key === r.key ? "check" : "" }, on: { click: function(c) {
1310
1178
  return o(r);
1311
1179
  } } }, [e._v(" " + e._s(r.label) + " ")]);
1312
1180
  })], 2)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
@@ -1315,18 +1183,18 @@ var w2 = function() {
1315
1183
  } } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
1316
1184
  }), 1)], 1)];
1317
1185
  } }], null, !1, 4232935324) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
1318
- }, b2 = [], _2 = /* @__PURE__ */ d(
1319
- x2,
1320
- w2,
1321
- b2,
1186
+ }, Ft = [], Ht = /* @__PURE__ */ d(
1187
+ Mt,
1188
+ It,
1189
+ Ft,
1322
1190
  !1,
1323
1191
  null,
1324
1192
  "b4a79da1",
1325
1193
  null,
1326
1194
  null
1327
1195
  );
1328
- const k2 = _2.exports;
1329
- const L2 = (i) => {
1196
+ const At = Ht.exports;
1197
+ const Pt = (i) => {
1330
1198
  const e = Array(2).fill().map(() => p());
1331
1199
  return [
1332
1200
  {
@@ -1348,7 +1216,7 @@ const L2 = (i) => {
1348
1216
  nodeId: e[1]
1349
1217
  }
1350
1218
  ];
1351
- }, $2 = (i, e = "en") => [
1219
+ }, zt = (i, e = "en") => [
1352
1220
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
1353
1221
  {
1354
1222
  key: `files-${i}`,
@@ -1357,13 +1225,13 @@ const L2 = (i) => {
1357
1225
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
1358
1226
  }
1359
1227
  }
1360
- ], S2 = ({ document: i = null }) => {
1228
+ ], Et = ({ document: i = null }) => {
1361
1229
  const e = p(), { language: t } = i || {};
1362
1230
  return {
1363
- readView: L2(e),
1364
- validation: $2(e, t)
1231
+ readView: Pt(e),
1232
+ validation: zt(e, t)
1365
1233
  };
1366
- }, T2 = () => [
1234
+ }, Zt = () => [
1367
1235
  {
1368
1236
  itemId: "presentation",
1369
1237
  itemType: "presentation",
@@ -1371,11 +1239,11 @@ const L2 = (i) => {
1371
1239
  parentId: "0",
1372
1240
  nodeId: p()
1373
1241
  }
1374
- ], D2 = () => ({
1375
- readView: T2(),
1242
+ ], Ut = () => ({
1243
+ readView: Zt(),
1376
1244
  validation: []
1377
1245
  // all relevant data is either within base doc or company settings etc
1378
- }), V2 = () => {
1246
+ }), Ot = () => {
1379
1247
  const i = Array(2).fill().map(() => p());
1380
1248
  return [
1381
1249
  {
@@ -1398,19 +1266,19 @@ const L2 = (i) => {
1398
1266
  // uniqid(),
1399
1267
  }
1400
1268
  ];
1401
- }, B2 = (i = "en") => [
1269
+ }, Gt = (i = "en") => [
1402
1270
  {
1403
1271
  key: "multiGroupPricing-title",
1404
1272
  anyOf: [{ type: "string" }, { type: "null" }],
1405
1273
  defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
1406
1274
  }
1407
- ], M2 = ({ document: i = null }) => {
1275
+ ], Rt = ({ document: i = null }) => {
1408
1276
  const { language: e } = i || {};
1409
1277
  return {
1410
- readView: V2(),
1411
- validation: B2(e)
1278
+ readView: Ot(),
1279
+ validation: Gt(e)
1412
1280
  };
1413
- }, I2 = () => [
1281
+ }, Wt = () => [
1414
1282
  {
1415
1283
  itemId: "terms",
1416
1284
  itemType: "termsDisclaimer",
@@ -1428,7 +1296,7 @@ const L2 = (i) => {
1428
1296
  parentId: "0",
1429
1297
  nodeId: p()
1430
1298
  }
1431
- ], F2 = () => [
1299
+ ], qt = () => [
1432
1300
  {
1433
1301
  key: "terms",
1434
1302
  anyOf: [
@@ -1436,10 +1304,10 @@ const L2 = (i) => {
1436
1304
  { type: "null" }
1437
1305
  ]
1438
1306
  }
1439
- ], H2 = () => ({
1440
- readView: I2(),
1441
- validation: F2()
1442
- }), A2 = () => {
1307
+ ], Nt = () => ({
1308
+ readView: Wt(),
1309
+ validation: qt()
1310
+ }), jt = () => {
1443
1311
  const i = Array(5).fill().map(() => p());
1444
1312
  return [
1445
1313
  {
@@ -1488,7 +1356,7 @@ const L2 = (i) => {
1488
1356
  nodeId: i[4]
1489
1357
  }
1490
1358
  ];
1491
- }, P2 = () => ({
1359
+ }, Kt = () => ({
1492
1360
  clients: [{
1493
1361
  name: "Pernilla P.",
1494
1362
  email: "pernilla@mail.se",
@@ -1498,20 +1366,20 @@ const L2 = (i) => {
1498
1366
  deliveryTypes: ["email"],
1499
1367
  answerMethod: { accept: "signature", deny: "button" }
1500
1368
  }]
1501
- }), E2 = (i = "en") => [
1369
+ }), Yt = (i = "en") => [
1502
1370
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
1503
1371
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
1504
1372
  { key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
1505
- ], z2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1373
+ ], Qt = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1506
1374
  const { language: a } = e || {};
1507
- let n = null;
1508
- return typeof t == "function" ? n = t() : i && (n = P2()), {
1509
- readView: A2(),
1510
- validation: E2(a),
1375
+ let s = null;
1376
+ return typeof t == "function" ? s = t() : i && (s = Kt()), {
1377
+ readView: jt(),
1378
+ validation: Yt(a),
1511
1379
  // Client / company will for now always exist on doc and in validation
1512
- ...n && { data: n }
1380
+ ...s && { data: s }
1513
1381
  };
1514
- }, Z2 = (i) => {
1382
+ }, Jt = (i) => {
1515
1383
  const e = Array(3).fill().map(() => p());
1516
1384
  return [
1517
1385
  {
@@ -1540,7 +1408,7 @@ const L2 = (i) => {
1540
1408
  nodeId: e[2]
1541
1409
  }
1542
1410
  ];
1543
- }, O2 = (i) => [
1411
+ }, Xt = (i) => [
1544
1412
  {
1545
1413
  key: `estimatedTimeComplete-${i}`,
1546
1414
  type: "object",
@@ -1561,20 +1429,20 @@ const L2 = (i) => {
1561
1429
  }
1562
1430
  }
1563
1431
  }
1564
- ], U2 = (i) => ({
1432
+ ], e1 = (i) => ({
1565
1433
  [`estimatedTimeComplete-${i}`]: {
1566
1434
  value: 4,
1567
1435
  unitType: "hour"
1568
1436
  }
1569
- }), R2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1437
+ }), t1 = ({ includeMockData: i = !1, contentData: e = null }) => {
1570
1438
  const t = p();
1571
1439
  let a = null;
1572
- return typeof e == "function" ? a = e(t) : i && (a = U2(t)), {
1573
- readView: Z2(t),
1574
- validation: O2(t),
1440
+ return typeof e == "function" ? a = e(t) : i && (a = e1(t)), {
1441
+ readView: Jt(t),
1442
+ validation: Xt(t),
1575
1443
  ...a && { data: a }
1576
1444
  };
1577
- }, G2 = () => {
1445
+ }, i1 = () => {
1578
1446
  const i = Array(3).fill().map(() => p());
1579
1447
  return [
1580
1448
  {
@@ -1608,7 +1476,7 @@ const L2 = (i) => {
1608
1476
  nodeId: i[2]
1609
1477
  }
1610
1478
  ];
1611
- }, W2 = () => [
1479
+ }, a1 = () => [
1612
1480
  {
1613
1481
  key: "estimatedWorkDates",
1614
1482
  type: "object",
@@ -1617,10 +1485,10 @@ const L2 = (i) => {
1617
1485
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
1618
1486
  }
1619
1487
  }
1620
- ], q2 = () => ({
1621
- readView: G2(),
1622
- validation: W2()
1623
- }), N2 = () => {
1488
+ ], s1 = () => ({
1489
+ readView: i1(),
1490
+ validation: a1()
1491
+ }), n1 = () => {
1624
1492
  const i = Array(5).fill().map(() => p());
1625
1493
  return [
1626
1494
  {
@@ -1686,7 +1554,7 @@ const L2 = (i) => {
1686
1554
  nodeId: i[4]
1687
1555
  }
1688
1556
  ];
1689
- }, j2 = () => [
1557
+ }, o1 = () => [
1690
1558
  {
1691
1559
  key: "extraWorkConstruction",
1692
1560
  extraWorkConstruction: {
@@ -1710,11 +1578,11 @@ const L2 = (i) => {
1710
1578
  }
1711
1579
  }
1712
1580
  }
1713
- ], K2 = () => ({
1714
- readView: N2(),
1715
- validation: j2()
1581
+ ], l1 = () => ({
1582
+ readView: n1(),
1583
+ validation: o1()
1716
1584
  // Client / company will for now always exist on doc and in validation
1717
- }), Y2 = () => {
1585
+ }), r1 = () => {
1718
1586
  const i = Array(3).fill().map(() => p());
1719
1587
  return [
1720
1588
  {
@@ -1754,7 +1622,7 @@ const L2 = (i) => {
1754
1622
  nodeId: i[2]
1755
1623
  }
1756
1624
  ];
1757
- }, Q2 = () => [
1625
+ }, c1 = () => [
1758
1626
  {
1759
1627
  key: "extraWorkTimeImpact",
1760
1628
  anyOf: [
@@ -1778,10 +1646,10 @@ const L2 = (i) => {
1778
1646
  }
1779
1647
  ]
1780
1648
  }
1781
- ], J2 = () => ({
1782
- readView: Y2(),
1783
- validation: Q2()
1784
- }), X2 = () => {
1649
+ ], d1 = () => ({
1650
+ readView: r1(),
1651
+ validation: c1()
1652
+ }), p1 = () => {
1785
1653
  const i = Array(5).fill().map(() => p());
1786
1654
  return [
1787
1655
  {
@@ -1834,13 +1702,13 @@ const L2 = (i) => {
1834
1702
  nodeId: i[4]
1835
1703
  }
1836
1704
  ];
1837
- }, ei = () => [
1705
+ }, u1 = () => [
1838
1706
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
1839
1707
  { key: "notBinding", type: "boolean" }
1840
- ], ti = () => ({
1841
- readView: X2(),
1842
- validation: ei()
1843
- }), ii = (i) => {
1708
+ ], m1 = () => ({
1709
+ readView: p1(),
1710
+ validation: u1()
1711
+ }), h1 = (i) => {
1844
1712
  const e = Array(2).fill().map(() => p());
1845
1713
  return [
1846
1714
  {
@@ -1862,22 +1730,22 @@ const L2 = (i) => {
1862
1730
  nodeId: e[1]
1863
1731
  }
1864
1732
  ];
1865
- }, ai = (i) => [
1733
+ }, f1 = (i) => [
1866
1734
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
1867
1735
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
1868
- ], ni = (i) => ({
1736
+ ], g1 = (i) => ({
1869
1737
  [`data.title-${i}`]: "My custom text",
1870
1738
  [`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
1871
- }), si = ({ includeMockData: i = !1, contentData: e = null }) => {
1739
+ }), C1 = ({ includeMockData: i = !1, contentData: e = null }) => {
1872
1740
  const t = p();
1873
1741
  let a = null;
1874
- return typeof e == "function" ? a = e(t) : i && (a = ni(t)), {
1875
- readView: ii(t),
1876
- validation: ai(t),
1742
+ return typeof e == "function" ? a = e(t) : i && (a = g1(t)), {
1743
+ readView: h1(t),
1744
+ validation: f1(t),
1877
1745
  ...a && { data: a },
1878
1746
  onAddFnName: "conditionalOnAdd"
1879
1747
  };
1880
- }, oi = (i) => [
1748
+ }, v1 = (i) => [
1881
1749
  {
1882
1750
  itemId: "coverBlock",
1883
1751
  itemType: "coverBlock",
@@ -1887,7 +1755,7 @@ const L2 = (i) => {
1887
1755
  parentId: "0",
1888
1756
  nodeId: p()
1889
1757
  }
1890
- ], li = (i, e = "en") => [
1758
+ ], y1 = (i, e = "en") => [
1891
1759
  {
1892
1760
  key: `coverBlock-${i}`,
1893
1761
  defaultValue: {
@@ -1904,7 +1772,7 @@ const L2 = (i) => {
1904
1772
  },
1905
1773
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
1906
1774
  }
1907
- ], ri = (i) => ({
1775
+ ], x1 = (i) => ({
1908
1776
  [`data.coverBlock-${i}`]: {
1909
1777
  text: "<h1>We know communication</h1>",
1910
1778
  cover: {
@@ -1914,15 +1782,15 @@ const L2 = (i) => {
1914
1782
  blur: 0
1915
1783
  }
1916
1784
  }
1917
- }), ci = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1918
- const a = p(), { language: n } = e || {};
1919
- let s = null;
1920
- return typeof t == "function" ? s = t(a) : i && (s = ri(a)), {
1921
- readView: oi(a),
1922
- validation: li(a, n),
1923
- ...s && { data: s }
1785
+ }), w1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1786
+ const a = p(), { language: s } = e || {};
1787
+ let n = null;
1788
+ return typeof t == "function" ? n = t(a) : i && (n = x1(a)), {
1789
+ readView: v1(a),
1790
+ validation: y1(a, s),
1791
+ ...n && { data: n }
1924
1792
  };
1925
- }, di = ({ language: i = "en" } = {}) => {
1793
+ }, b1 = ({ language: i = "en" } = {}) => {
1926
1794
  const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
1927
1795
  lng: i
1928
1796
  });
@@ -2067,7 +1935,7 @@ const L2 = (i) => {
2067
1935
  })
2068
1936
  }
2069
1937
  ];
2070
- }, pi = (i) => [
1938
+ }, _1 = (i) => [
2071
1939
  {
2072
1940
  itemId: `header-${i}`,
2073
1941
  itemType: "header",
@@ -2077,18 +1945,18 @@ const L2 = (i) => {
2077
1945
  parentId: "0",
2078
1946
  nodeId: p()
2079
1947
  }
2080
- ], ui = (i, e = null) => {
1948
+ ], k1 = (i, e = null) => {
2081
1949
  const {
2082
1950
  language: t = "en",
2083
1951
  name: a = "",
2084
- theme: n
2085
- } = e || {}, s = a || h.t("_common:proposal", { lng: t }).capitalize();
2086
- e && (e.name = s);
1952
+ theme: s
1953
+ } = e || {}, n = a || h.t("_common:proposal", { lng: t }).capitalize();
1954
+ e && (e.name = n);
2087
1955
  const {
2088
1956
  background: o,
2089
1957
  priceSummaryBackground: l,
2090
1958
  backgroundFilter: r
2091
- } = n || {}, c = l || "hsl(228, 52%, 18%)", C = lt.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
1959
+ } = s || {}, c = l || "hsl(228, 52%, 18%)", C = Re.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2092
1960
  return [
2093
1961
  {
2094
1962
  key: `header-${i}`,
@@ -2119,7 +1987,7 @@ const L2 = (i) => {
2119
1987
  },
2120
1988
  value: {
2121
1989
  preText: "",
2122
- documentName: `<p data-typography="title">${s}</p>`,
1990
+ documentName: `<p data-typography="title">${n}</p>`,
2123
1991
  postText: h.t("components:document.chapters.header.postText", { lng: t, interpolation: { prefix: "__", suffix: "__" } }),
2124
1992
  showLogo: !0,
2125
1993
  logotype: ""
@@ -2129,7 +1997,7 @@ const L2 = (i) => {
2129
1997
  }
2130
1998
  }
2131
1999
  ];
2132
- }, mi = (i) => ({
2000
+ }, L1 = (i) => ({
2133
2001
  [`data.header-${i}`]: {
2134
2002
  layout: "vertical",
2135
2003
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -2159,15 +2027,15 @@ const L2 = (i) => {
2159
2027
  }
2160
2028
  ]
2161
2029
  }
2162
- }), hi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2030
+ }), $1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2163
2031
  const a = p();
2164
- let n = null;
2165
- return typeof t == "function" ? n = t(a) : i && (n = mi(a)), {
2166
- readView: pi(a),
2167
- validation: ui(a, e),
2168
- ...n && { data: n }
2032
+ let s = null;
2033
+ return typeof t == "function" ? s = t(a) : i && (s = L1(a)), {
2034
+ readView: _1(a),
2035
+ validation: k1(a, e),
2036
+ ...s && { data: s }
2169
2037
  };
2170
- }, fi = ({ language: i = "en" } = {}) => {
2038
+ }, S1 = ({ language: i = "en" } = {}) => {
2171
2039
  const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
2172
2040
  lng: i,
2173
2041
  interpolation: { prefix: "__", suffix: "__" }
@@ -2467,7 +2335,7 @@ h.loadOptions({
2467
2335
  }
2468
2336
  }
2469
2337
  });
2470
- const gi = (i) => {
2338
+ const T1 = (i) => {
2471
2339
  const e = Array(2).fill().map(() => p());
2472
2340
  return [
2473
2341
  {
@@ -2492,7 +2360,7 @@ const gi = (i) => {
2492
2360
  nodeId: e[1]
2493
2361
  }
2494
2362
  ];
2495
- }, Ci = (i, e = "en") => [
2363
+ }, D1 = (i, e = "en") => [
2496
2364
  {
2497
2365
  key: `packageGroups.${i}`,
2498
2366
  validationKey: "packageGroups",
@@ -2512,15 +2380,15 @@ const gi = (i) => {
2512
2380
  },
2513
2381
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
2514
2382
  }
2515
- ], vi = () => null, yi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2516
- const a = p(), { language: n } = e || {};
2517
- let s = null;
2518
- typeof t == "function" ? s = t(a) : i && (s = vi());
2519
- const o = gi(a), l = Ci(a, n);
2383
+ ], V1 = () => null, B1 = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2384
+ const a = p(), { language: s } = e || {};
2385
+ let n = null;
2386
+ typeof t == "function" ? n = t(a) : i && (n = V1());
2387
+ const o = T1(a), l = D1(a, s);
2520
2388
  return {
2521
2389
  readView: o,
2522
2390
  validation: l,
2523
- ...s && { data: s }
2391
+ ...n && { data: n }
2524
2392
  };
2525
2393
  };
2526
2394
  h.loadOptions({
@@ -2608,13 +2476,13 @@ h.loadOptions({
2608
2476
  }
2609
2477
  }
2610
2478
  });
2611
- const xi = ({
2479
+ const M1 = ({
2612
2480
  language: i = "en",
2613
2481
  currency: e = "USD",
2614
2482
  _getters: t,
2615
2483
  allArticles: a = []
2616
2484
  } = {}) => {
2617
- const n = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => h.t(`packageGroupContentItems:${l}`, { lng: i });
2485
+ const s = u(t, "settings/defaultVatRate") || null, n = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => h.t(`packageGroupContentItems:${l}`, { lng: i });
2618
2486
  return [
2619
2487
  {
2620
2488
  previewUrl: `
@@ -2682,8 +2550,8 @@ const xi = ({
2682
2550
  articles: [
2683
2551
  ...a,
2684
2552
  y({
2685
- vat: n,
2686
- showPrice: s,
2553
+ vat: s,
2554
+ showPrice: n,
2687
2555
  currency: e,
2688
2556
  packageId: r,
2689
2557
  name: o("single.art"),
@@ -2811,16 +2679,16 @@ const xi = ({
2811
2679
  articles: [
2812
2680
  ...a,
2813
2681
  y({
2814
- vat: n,
2815
- showPrice: s,
2682
+ vat: s,
2683
+ showPrice: n,
2816
2684
  currency: e,
2817
2685
  packageId: r[0],
2818
2686
  name: o("radio.artA"),
2819
2687
  price: 1e5
2820
2688
  }),
2821
2689
  y({
2822
- vat: n,
2823
- showPrice: s,
2690
+ vat: s,
2691
+ showPrice: n,
2824
2692
  currency: e,
2825
2693
  packageId: r[1],
2826
2694
  name: o("radio.artB"),
@@ -2945,16 +2813,16 @@ const xi = ({
2945
2813
  articles: [
2946
2814
  ...a,
2947
2815
  y({
2948
- vat: n,
2949
- showPrice: s,
2816
+ vat: s,
2817
+ showPrice: n,
2950
2818
  currency: e,
2951
2819
  packageId: r[0],
2952
2820
  name: o("checkbox.artBase"),
2953
2821
  price: 1e5
2954
2822
  }),
2955
2823
  y({
2956
- vat: n,
2957
- showPrice: s,
2824
+ vat: s,
2825
+ showPrice: n,
2958
2826
  currency: e,
2959
2827
  packageId: r[1],
2960
2828
  name: o("checkbox.artOption"),
@@ -2965,7 +2833,7 @@ const xi = ({
2965
2833
  }
2966
2834
  }
2967
2835
  ];
2968
- }, wi = (i) => [
2836
+ }, I1 = (i) => [
2969
2837
  {
2970
2838
  itemId: "embed",
2971
2839
  itemType: "embed",
@@ -2979,7 +2847,7 @@ const xi = ({
2979
2847
  parentId: "0",
2980
2848
  nodeId: p()
2981
2849
  }
2982
- ], bi = (i) => [
2850
+ ], F1 = (i) => [
2983
2851
  {
2984
2852
  key: `embed-${i}`,
2985
2853
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2988,13 +2856,13 @@ const xi = ({
2988
2856
  size: "small"
2989
2857
  }
2990
2858
  }
2991
- ], _i = () => null, ki = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2859
+ ], H1 = () => null, A1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2992
2860
  const a = p();
2993
- let n = null;
2994
- return typeof t == "function" ? n = t(a) : i && (n = _i()), {
2995
- readView: wi(a),
2996
- validation: bi(a),
2997
- ...n && { data: n }
2861
+ let s = null;
2862
+ return typeof t == "function" ? s = t(a) : i && (s = H1()), {
2863
+ readView: I1(a),
2864
+ validation: F1(a),
2865
+ ...s && { data: s }
2998
2866
  };
2999
2867
  };
3000
2868
  h.loadOptions({
@@ -3008,7 +2876,7 @@ h.loadOptions({
3008
2876
  }
3009
2877
  }
3010
2878
  });
3011
- const Li = ({ language: i = "en" } = {}) => [
2879
+ const P1 = ({ language: i = "en" } = {}) => [
3012
2880
  {
3013
2881
  previewUrl: `
3014
2882
  <div style="position: relative;">
@@ -3300,7 +3168,7 @@ const Li = ({ language: i = "en" } = {}) => [
3300
3168
  }
3301
3169
  })
3302
3170
  }
3303
- ], $i = (i) => [
3171
+ ], z1 = (i) => [
3304
3172
  {
3305
3173
  itemId: "videoPlayer",
3306
3174
  itemType: "videoPlayer",
@@ -3313,7 +3181,7 @@ const Li = ({ language: i = "en" } = {}) => [
3313
3181
  parentId: "0",
3314
3182
  nodeId: p()
3315
3183
  }
3316
- ], Si = (i) => [
3184
+ ], E1 = (i) => [
3317
3185
  {
3318
3186
  key: `video-${i}`,
3319
3187
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -3324,7 +3192,7 @@ const Li = ({ language: i = "en" } = {}) => [
3324
3192
  }
3325
3193
  }
3326
3194
  }
3327
- ], Ti = (i) => ({
3195
+ ], Z1 = (i) => ({
3328
3196
  [`data.video-${i}`]: {
3329
3197
  size: "small",
3330
3198
  video: {
@@ -3333,15 +3201,15 @@ const Li = ({ language: i = "en" } = {}) => [
3333
3201
  id: "166JEb6qkr4"
3334
3202
  }
3335
3203
  }
3336
- }), Di = ({ includeMockData: i = !1, contentData: e = null }) => {
3204
+ }), U1 = ({ includeMockData: i = !1, contentData: e = null }) => {
3337
3205
  const t = p();
3338
3206
  let a = null;
3339
- return typeof e == "function" ? a = e(t) : i && (a = Ti(t)), {
3340
- readView: $i(t),
3341
- validation: Si(t),
3207
+ return typeof e == "function" ? a = e(t) : i && (a = Z1(t)), {
3208
+ readView: z1(t),
3209
+ validation: E1(t),
3342
3210
  ...a && { data: a }
3343
3211
  };
3344
- }, Vi = ({ language: i = "en" } = {}) => [
3212
+ }, O1 = ({ language: i = "en" } = {}) => [
3345
3213
  {
3346
3214
  previewUrl: `
3347
3215
  <div style="position: relative;">
@@ -3542,35 +3410,35 @@ const Li = ({ language: i = "en" } = {}) => [
3542
3410
  }
3543
3411
  })
3544
3412
  }
3545
- ], G = {
3546
- titleAndText2: si,
3547
- attachments2: S2,
3548
- pdf: Ie,
3549
- packageGroup: yi,
3550
- multiGroupPricing: M2,
3551
- coverBlock: ci,
3552
- videoPlayer: Di,
3553
- embed: ki,
3554
- header: hi,
3555
- answer: Fe,
3556
- terms: H2,
3557
- parties: z2,
3558
- custom: He,
3413
+ ], E = {
3414
+ titleAndText2: C1,
3415
+ attachments2: Et,
3416
+ pdf: he,
3417
+ packageGroup: B1,
3418
+ multiGroupPricing: Rt,
3419
+ coverBlock: w1,
3420
+ videoPlayer: U1,
3421
+ embed: A1,
3422
+ header: $1,
3423
+ answer: fe,
3424
+ terms: Nt,
3425
+ parties: Qt,
3426
+ custom: ge,
3559
3427
  // legacy
3560
- presentation: D2,
3561
- estimatedTimeCompleted: R2,
3562
- estimatedWorkStartAndEndAtText: q2,
3563
- extraWorkConstructionPricingList: K2,
3564
- extraWorkTimeImpactText: J2,
3565
- notBinding: ti
3566
- }, W = {
3567
- coverBlock: di,
3568
- header: fi,
3569
- packageGroup: xi,
3570
- embed: Li,
3571
- videoPlayer: Vi,
3572
- custom: Me
3573
- }, Bi = {
3428
+ presentation: Ut,
3429
+ estimatedTimeCompleted: t1,
3430
+ estimatedWorkStartAndEndAtText: s1,
3431
+ extraWorkConstructionPricingList: l1,
3432
+ extraWorkTimeImpactText: d1,
3433
+ notBinding: m1
3434
+ }, Z = {
3435
+ coverBlock: b1,
3436
+ header: S1,
3437
+ packageGroup: M1,
3438
+ embed: P1,
3439
+ videoPlayer: O1,
3440
+ custom: me
3441
+ }, G1 = {
3574
3442
  name: "AddBlock",
3575
3443
  props: {
3576
3444
  set: {
@@ -3584,34 +3452,34 @@ const Li = ({ language: i = "en" } = {}) => [
3584
3452
  },
3585
3453
  render() {
3586
3454
  return this.$scopedSlots.default({
3587
- addBlock: (i) => Ae({
3455
+ addBlock: (i) => Ce({
3588
3456
  ...i,
3589
3457
  set: this.set,
3590
- tplGenerators: G,
3458
+ tplGenerators: E,
3591
3459
  includeMockData: this.includeMockData,
3592
3460
  emit: (...e) => this.$emit(...e)
3593
3461
  }),
3594
- getBlockPayload: (i) => Pe(
3462
+ getBlockPayload: (i) => ve(
3595
3463
  i,
3596
3464
  this.set,
3597
- G,
3465
+ E,
3598
3466
  this.includeMockdata
3599
3467
  )
3600
3468
  });
3601
3469
  }
3602
- }, Mi = null, Ii = null;
3603
- var Fi = /* @__PURE__ */ d(
3604
- Bi,
3605
- Mi,
3606
- Ii,
3470
+ }, R1 = null, W1 = null;
3471
+ var q1 = /* @__PURE__ */ d(
3472
+ G1,
3473
+ R1,
3474
+ W1,
3607
3475
  !1,
3608
3476
  null,
3609
3477
  null,
3610
3478
  null,
3611
3479
  null
3612
3480
  );
3613
- const re = Fi.exports;
3614
- const Hi = {
3481
+ const Y = q1.exports;
3482
+ const N1 = {
3615
3483
  name: "Drawer",
3616
3484
  props: {
3617
3485
  value: {
@@ -3654,7 +3522,7 @@ const Hi = {
3654
3522
  }
3655
3523
  }
3656
3524
  };
3657
- var Ai = function() {
3525
+ var j1 = function() {
3658
3526
  var e = this, t = e._self._c;
3659
3527
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
3660
3528
  zIndex: e.zIndex
@@ -3670,18 +3538,18 @@ var Ai = function() {
3670
3538
  boxShadow: e.boxShadow,
3671
3539
  ...e.contentStyle
3672
3540
  } }, [e._t("default")], 2)]) : e._e()])], 1);
3673
- }, Pi = [], Ei = /* @__PURE__ */ d(
3674
- Hi,
3675
- Ai,
3676
- Pi,
3541
+ }, K1 = [], Y1 = /* @__PURE__ */ d(
3542
+ N1,
3543
+ j1,
3544
+ K1,
3677
3545
  !1,
3678
3546
  null,
3679
3547
  "cd4a251a",
3680
3548
  null,
3681
3549
  null
3682
3550
  );
3683
- const ce = Ei.exports;
3684
- const zi = {
3551
+ const Q = Y1.exports;
3552
+ const Q1 = {
3685
3553
  name: "DocumentSend",
3686
3554
  i18nOptions: {
3687
3555
  namespaces: "documentSend",
@@ -3705,12 +3573,12 @@ const zi = {
3705
3573
  }
3706
3574
  },
3707
3575
  components: {
3708
- AddBlock: re,
3709
- Drawer: ce,
3710
- SendForm: rt,
3711
- CCheckbox: Ee,
3712
- BaseIcon: ze,
3713
- CButton: Ze,
3576
+ AddBlock: Y,
3577
+ Drawer: Q,
3578
+ SendForm: We,
3579
+ CCheckbox: ye,
3580
+ BaseIcon: xe,
3581
+ CButton: we,
3714
3582
  IsPremium: _,
3715
3583
  IsPremiumPreStep: k
3716
3584
  },
@@ -3802,7 +3670,7 @@ const zi = {
3802
3670
  }
3803
3671
  }
3804
3672
  };
3805
- var Zi = function() {
3673
+ var J1 = function() {
3806
3674
  var e = this, t = e._self._c;
3807
3675
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
3808
3676
  e.isOpen = a;
@@ -3811,31 +3679,31 @@ var Zi = function() {
3811
3679
  } }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", "z-index": "99" }, attrs: { circle: "", icon: "x", pattern: "secondary" }, on: { click: function(a) {
3812
3680
  e.isOpen = !1;
3813
3681
  } } }), t("SendForm", { attrs: { _document: e._document, _value: e._value, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "on-save-document": e.onSaveDoc, "use-scroll": "" } }, [e.hasAnswerBlock ? e._e() : t("div", { key: "1", staticClass: "flex p-3 mb-8 border border-red-200 rounded-lg bg-red-50" }, [t("div", [t("BaseIcon", { staticClass: "-mt-1 text-red-600", attrs: { type: "error", size: "18" } })], 1), t("div", [t("div", { staticClass: "pl-2" }, [t("div", { staticClass: "text-sm font-semibold text-red-600", domProps: { textContent: e._s(e.$t("signMissingTitle")) } }), t("div", { staticClass: "mb-4 text-sm text-red-600 text-opacity-80" }, [e._v(" " + e._s(e.$t("signMissingText")) + " ")])]), t("AddBlock", { attrs: { set: e.setFormValue }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a }) {
3814
- return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
3682
+ return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(s) {
3815
3683
  return a({ sectionKey: "answer" });
3816
3684
  } } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
3817
3685
  } }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a }) {
3818
- return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
3819
- return [t("div", { staticClass: "flex items-center", on: { click: (s) => e.onClickSaveAsTemplate({
3820
- event: s,
3686
+ return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
3687
+ return [t("div", { staticClass: "flex items-center", on: { click: (n) => e.onClickSaveAsTemplate({
3688
+ event: n,
3821
3689
  can: a,
3822
- open: n
3823
- }) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(s) {
3824
- e.saveTemplate = s;
3690
+ open: s
3691
+ }) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(n) {
3692
+ e.saveTemplate = n;
3825
3693
  }, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
3826
3694
  } }], null, !0) })];
3827
3695
  } }], null, !1, 2049373406) })], 1)], 1)], 1)]) : e._e();
3828
- }, Oi = [], Ui = /* @__PURE__ */ d(
3829
- zi,
3830
- Zi,
3831
- Oi,
3696
+ }, X1 = [], e2 = /* @__PURE__ */ d(
3697
+ Q1,
3698
+ J1,
3699
+ X1,
3832
3700
  !1,
3833
3701
  null,
3834
3702
  "41e74cd7",
3835
3703
  null,
3836
3704
  null
3837
3705
  );
3838
- const Ri = Ui.exports, Gi = {
3706
+ const t2 = e2.exports, i2 = {
3839
3707
  name: "Draggable",
3840
3708
  data() {
3841
3709
  return {
@@ -3856,7 +3724,7 @@ const Ri = Ui.exports, Gi = {
3856
3724
  this.elementWidth = e.width, this.elementHeight = e.height;
3857
3725
  const t = i.type === "touchstart", a = t ? i.touches[0] : i;
3858
3726
  this.clientX = a.clientX, this.clientY = a.clientY;
3859
- const n = t ? "touchmove" : "mousemove", s = t ? "touchend" : "mouseup", o = (r) => {
3727
+ const s = t ? "touchmove" : "mousemove", n = t ? "touchend" : "mouseup", o = (r) => {
3860
3728
  t || r.preventDefault();
3861
3729
  const c = t ? r.touches[0] : r;
3862
3730
  this.movementX = this.clientX - c.clientX, this.movementY = this.clientY - c.clientY, this.clientX = c.clientX, this.clientY = c.clientY, this.$el.style.top = `${Math.max(
@@ -3867,9 +3735,9 @@ const Ri = Ui.exports, Gi = {
3867
3735
  this.windowWidth - this.elementWidth
3868
3736
  )}px`;
3869
3737
  }, l = () => {
3870
- document.removeEventListener(n, o), document.removeEventListener(s, l);
3738
+ document.removeEventListener(s, o), document.removeEventListener(n, l);
3871
3739
  };
3872
- document.addEventListener(n, o), document.addEventListener(s, l);
3740
+ document.addEventListener(s, o), document.addEventListener(n, l);
3873
3741
  }
3874
3742
  },
3875
3743
  render() {
@@ -3877,21 +3745,21 @@ const Ri = Ui.exports, Gi = {
3877
3745
  dragMousedown: this.onDragMouseDown
3878
3746
  });
3879
3747
  }
3880
- }, Wi = null, qi = null;
3881
- var Ni = /* @__PURE__ */ d(
3882
- Gi,
3883
- Wi,
3884
- qi,
3748
+ }, a2 = null, s2 = null;
3749
+ var n2 = /* @__PURE__ */ d(
3750
+ i2,
3751
+ a2,
3752
+ s2,
3885
3753
  !1,
3886
3754
  null,
3887
3755
  null,
3888
3756
  null,
3889
3757
  null
3890
3758
  );
3891
- const ji = Ni.exports;
3892
- const Ki = {
3759
+ const o2 = n2.exports;
3760
+ const l2 = {
3893
3761
  components: {
3894
- Draggable: ji
3762
+ Draggable: o2
3895
3763
  },
3896
3764
  props: {
3897
3765
  offset: {
@@ -3904,36 +3772,36 @@ const Ki = {
3904
3772
  }
3905
3773
  }
3906
3774
  };
3907
- var Yi = function() {
3775
+ var r2 = function() {
3908
3776
  var e = this, t = e._self._c;
3909
3777
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
3910
3778
  return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
3911
3779
  top: "70px",
3912
3780
  left: `${e.offset + 15}px`
3913
- } }, [t("div", { staticStyle: { position: "relative", height: "100%", width: "100%" } }, [t("CButton", { staticStyle: { position: "absolute", right: "0", top: "0" }, attrs: { icon: "x", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { click: function(n) {
3781
+ } }, [t("div", { staticStyle: { position: "relative", height: "100%", width: "100%" } }, [t("CButton", { staticStyle: { position: "absolute", right: "0", top: "0" }, attrs: { icon: "x", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { click: function(s) {
3914
3782
  return e.$emit("close");
3915
3783
  } } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a, touchstart: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
3916
3784
  } }], null, !0) })], 1);
3917
- }, Qi = [], Ji = /* @__PURE__ */ d(
3918
- Ki,
3919
- Yi,
3920
- Qi,
3785
+ }, c2 = [], d2 = /* @__PURE__ */ d(
3786
+ l2,
3787
+ r2,
3788
+ c2,
3921
3789
  !1,
3922
3790
  null,
3923
3791
  "8029d5ea",
3924
3792
  null,
3925
3793
  null
3926
3794
  );
3927
- const de = Ji.exports;
3928
- const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
3795
+ const J = d2.exports;
3796
+ const p2 = /([\d+.]*)(.*)/, w = (i) => (i || "").match(p2), u2 = {
3929
3797
  i18nOptions: {
3930
3798
  namespaces: "common",
3931
3799
  keyPrefix: "designLabels"
3932
3800
  },
3933
3801
  name: "Design",
3934
3802
  components: {
3935
- FormInputRow: ie,
3936
- DragWindow: de
3803
+ FormInputRow: N,
3804
+ DragWindow: J
3937
3805
  },
3938
3806
  mixins: [S(["css"], { useEmit: !1, setFnName: "set" })],
3939
3807
  props: {
@@ -4012,8 +3880,8 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4012
3880
  weight: t
4013
3881
  }
4014
3882
  },
4015
- onInput: ({ family: a, weight: n, options: s = [] }) => {
4016
- this.update(i, a), et(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3883
+ onInput: ({ family: a, weight: s, options: n = [] }) => {
3884
+ this.update(i, a), Pe(a), t != s && this.update("fontWeight", s), this.fontWeightOptions = n;
4017
3885
  }
4018
3886
  }
4019
3887
  ]
@@ -4031,7 +3899,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4031
3899
  value: t || "",
4032
3900
  type: "number",
4033
3901
  minValue: 0,
4034
- onInput: (n) => this.update(i, `${n}${a}`)
3902
+ onInput: (s) => this.update(i, `${s}${a}`)
4035
3903
  },
4036
3904
  select: {
4037
3905
  value: t || "px",
@@ -4049,7 +3917,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4049
3917
  { value: 72, label: 72 },
4050
3918
  { value: 96, label: 96 }
4051
3919
  ],
4052
- onInput: (n) => this.update(i, `${n}px`)
3920
+ onInput: (s) => this.update(i, `${s}px`)
4053
3921
  }
4054
3922
  }
4055
3923
  },
@@ -4061,7 +3929,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4061
3929
  max: 100,
4062
3930
  value: t
4063
3931
  },
4064
- onInput: (n) => this.update(i, `${n}${a}`)
3932
+ onInput: (s) => this.update(i, `${s}${a}`)
4065
3933
  }
4066
3934
  ]
4067
3935
  };
@@ -4231,7 +4099,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4231
4099
  value: t || "",
4232
4100
  type: "number",
4233
4101
  minValue: 0,
4234
- onInput: (n) => this.update(i, `${n}${a}`)
4102
+ onInput: (s) => this.update(i, `${s}${a}`)
4235
4103
  },
4236
4104
  select: {
4237
4105
  value: t || "px",
@@ -4241,7 +4109,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4241
4109
  { value: 900, label: 900 },
4242
4110
  { value: 1080, label: 1080 }
4243
4111
  ],
4244
- onInput: (n) => this.update(i, `${n}px`)
4112
+ onInput: (s) => this.update(i, `${s}px`)
4245
4113
  }
4246
4114
  }
4247
4115
  },
@@ -4254,7 +4122,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4254
4122
  step: 10,
4255
4123
  value: t
4256
4124
  },
4257
- onInput: (n) => this.update(i, `${n}${a}`)
4125
+ onInput: (s) => this.update(i, `${s}${a}`)
4258
4126
  }
4259
4127
  ]
4260
4128
  };
@@ -4300,7 +4168,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4300
4168
  };
4301
4169
  },
4302
4170
  border: ([i, e, t]) => {
4303
- const a = i.value === "solid", [, n] = w(e.value), s = [
4171
+ const a = i.value === "solid", [, s] = w(e.value), n = [
4304
4172
  {
4305
4173
  label: this.$t("border"),
4306
4174
  inputs: [
@@ -4319,7 +4187,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4319
4187
  {
4320
4188
  component: "input",
4321
4189
  props: {
4322
- value: n,
4190
+ value: s,
4323
4191
  type: "number",
4324
4192
  minValue: 0
4325
4193
  }
@@ -4327,15 +4195,15 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4327
4195
  {
4328
4196
  component: "step",
4329
4197
  props: {
4330
- value: n
4198
+ value: s
4331
4199
  },
4332
4200
  onIncrease: () => this.update(
4333
4201
  e.key,
4334
- `${parseFloat(n || 0) + 1}px`
4202
+ `${parseFloat(s || 0) + 1}px`
4335
4203
  ),
4336
4204
  onDecrease: () => this.update(
4337
4205
  e.key,
4338
- `${parseFloat(n || 0) - 1}px`
4206
+ `${parseFloat(s || 0) - 1}px`
4339
4207
  )
4340
4208
  }
4341
4209
  ]
@@ -4360,7 +4228,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4360
4228
  value: a ? `${e.value} ${t.value}` : "none",
4361
4229
  width: "220px",
4362
4230
  popup: {
4363
- inputs: s
4231
+ inputs: n
4364
4232
  }
4365
4233
  }
4366
4234
  }
@@ -4377,8 +4245,8 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4377
4245
  h2: e,
4378
4246
  h3: t,
4379
4247
  blockquote: a,
4380
- p: n,
4381
- '[data-typography="title"]': s
4248
+ p: s,
4249
+ '[data-typography="title"]': n
4382
4250
  } = this.css || {};
4383
4251
  return [
4384
4252
  {
@@ -4392,7 +4260,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4392
4260
  // calc(2.5 * var(--rem))
4393
4261
  fontWeight: 800,
4394
4262
  // 900
4395
- ...s
4263
+ ...n
4396
4264
  }
4397
4265
  },
4398
4266
  {
@@ -4461,7 +4329,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4461
4329
  style: {
4462
4330
  fontFamily: "Inter",
4463
4331
  fontSize: "16px",
4464
- ...n
4332
+ ...s
4465
4333
  }
4466
4334
  }
4467
4335
  ];
@@ -4469,9 +4337,9 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4469
4337
  activeItemOptions() {
4470
4338
  if (!this.activeItem)
4471
4339
  return [];
4472
- const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
4473
- return this[e].map(({ option: s, key: o }, l) => {
4474
- const r = this.definitionOptions[s], c = Array.isArray(o) ? o.map((C) => ({ key: C, value: n(C) })) : { key: o, value: n(o) };
4340
+ const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, s = (n) => a[n] || t[n];
4341
+ return this[e].map(({ option: n, key: o }, l) => {
4342
+ const r = this.definitionOptions[n], c = Array.isArray(o) ? o.map((C) => ({ key: C, value: s(C) })) : { key: o, value: s(o) };
4475
4343
  return r(c, l);
4476
4344
  });
4477
4345
  }
@@ -4479,7 +4347,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4479
4347
  watch: {
4480
4348
  async activeItem(i) {
4481
4349
  const e = u(i, "style.fontFamily");
4482
- e && (this.fontWeightOptions = await tt(e));
4350
+ e && (this.fontWeightOptions = await ze(e));
4483
4351
  }
4484
4352
  },
4485
4353
  methods: {
@@ -4491,10 +4359,10 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4491
4359
  }
4492
4360
  }
4493
4361
  };
4494
- var ta = function() {
4362
+ var m2 = function() {
4495
4363
  var e = this, t = e._self._c;
4496
4364
  return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
4497
- return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
4365
+ return t("div", { key: a.label, staticClass: "list-option", on: { click: function(s) {
4498
4366
  e.activeItem = a;
4499
4367
  } } }, [t("div", { style: {
4500
4368
  fontSize: a.fontSize,
@@ -4504,24 +4372,24 @@ var ta = function() {
4504
4372
  lineHeight: 1
4505
4373
  } }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" " + e._s(a.style.fontFamily) + " " + e._s(a.style.fontSize) + " ")])]);
4506
4374
  })], 2), t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }), t("div", { staticStyle: { padding: "calc(0.75 * var(--rem))" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("section_plural")) + " ")]), e._l(e.sections, function(a) {
4507
- return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
4375
+ return t("div", { key: a.label, staticClass: "list-option", on: { click: function(s) {
4508
4376
  e.activeItem = a;
4509
4377
  } } }, [t("div", { staticStyle: { "font-size": "1.075em", "font-weight": "500" } }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" #000000 ")])]);
4510
- })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
4511
- return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
4378
+ })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, s) {
4379
+ return t("FormInputRow", { key: s, attrs: { label: a.label, inputs: a.inputs } });
4512
4380
  }), 1) : e._e()], 1);
4513
- }, ia = [], aa = /* @__PURE__ */ d(
4514
- ea,
4515
- ta,
4516
- ia,
4381
+ }, h2 = [], f2 = /* @__PURE__ */ d(
4382
+ u2,
4383
+ m2,
4384
+ h2,
4517
4385
  !1,
4518
4386
  null,
4519
4387
  "4404aad6",
4520
4388
  null,
4521
4389
  null
4522
4390
  );
4523
- const na = aa.exports;
4524
- const sa = {
4391
+ const g2 = f2.exports;
4392
+ const C2 = {
4525
4393
  name: "FieldsModal",
4526
4394
  i18nOptions: {
4527
4395
  namespaces: "FieldsModal",
@@ -4555,7 +4423,7 @@ const sa = {
4555
4423
  }
4556
4424
  },
4557
4425
  components: {
4558
- CField: te
4426
+ CField: q
4559
4427
  },
4560
4428
  props: {
4561
4429
  document: {
@@ -4631,12 +4499,12 @@ const sa = {
4631
4499
  remove() {
4632
4500
  if (!this.existingFieldId)
4633
4501
  return;
4634
- const i = mt(this.document.fields, [this.existingFieldId]);
4502
+ const i = Ye(this.document.fields, [this.existingFieldId]);
4635
4503
  this.set({ key: "data.fields", value: i }), this.$emit("close");
4636
4504
  }
4637
4505
  }
4638
4506
  };
4639
- var oa = function() {
4507
+ var v2 = function() {
4640
4508
  var e = this, t = e._self._c;
4641
4509
  return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
4642
4510
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -4647,18 +4515,18 @@ var oa = function() {
4647
4515
  }, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
4648
4516
  e.$set(e.form, "value", a);
4649
4517
  }, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
4650
- }, la = [], ra = /* @__PURE__ */ d(
4651
- sa,
4652
- oa,
4653
- la,
4518
+ }, y2 = [], x2 = /* @__PURE__ */ d(
4519
+ C2,
4520
+ v2,
4521
+ y2,
4654
4522
  !1,
4655
4523
  null,
4656
4524
  "186f2d19",
4657
4525
  null,
4658
4526
  null
4659
4527
  );
4660
- const ca = ra.exports;
4661
- const da = {
4528
+ const w2 = x2.exports;
4529
+ const b2 = {
4662
4530
  i18nOptions: {
4663
4531
  namespaces: "DocumentFormFields",
4664
4532
  messages: {
@@ -4682,9 +4550,9 @@ const da = {
4682
4550
  },
4683
4551
  name: "DocumentFormFields",
4684
4552
  components: {
4685
- SmartList: ut,
4686
- CAccordion: Je,
4687
- CField: te
4553
+ SmartList: Ke,
4554
+ CAccordion: He,
4555
+ CField: q
4688
4556
  },
4689
4557
  mixins: [S()],
4690
4558
  props: {
@@ -4707,7 +4575,7 @@ const da = {
4707
4575
  options() {
4708
4576
  const { fields: i, usedFields: e } = this._document;
4709
4577
  return Object.keys(i).map((t) => {
4710
- const a = i[t], { service: n, inputDisabled: s, virtual: o = !1 } = a.meta || {}, l = this.crmService && n === this.crmService ? a.meta.service : null;
4578
+ const a = i[t], { service: s, inputDisabled: n, virtual: o = !1 } = a.meta || {}, l = this.crmService && s === this.crmService ? a.meta.service : null;
4711
4579
  return {
4712
4580
  ...a,
4713
4581
  id: t,
@@ -4715,7 +4583,7 @@ const da = {
4715
4583
  onInput: (r) => this.updateValue(a.key, r),
4716
4584
  usedCount: e[a.key] || 0,
4717
4585
  crm: l,
4718
- inputDisabled: s || l,
4586
+ inputDisabled: n || l,
4719
4587
  virtual: o
4720
4588
  };
4721
4589
  });
@@ -4746,7 +4614,7 @@ const da = {
4746
4614
  ...a,
4747
4615
  // Filter out previous service fields if switching connected crm
4748
4616
  ...Object.entries(((t = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : t.fields) || {}).reduce(
4749
- (n, [s, o]) => o != null && o.meta.service && o.meta.service !== i ? n : { ...n, [s]: o },
4617
+ (s, [n, o]) => o != null && o.meta.service && o.meta.service !== i ? s : { ...s, [n]: o },
4750
4618
  {}
4751
4619
  )
4752
4620
  });
@@ -4760,7 +4628,7 @@ const da = {
4760
4628
  },
4761
4629
  openFieldModal({ existingFieldId: i }) {
4762
4630
  this.$modal.show(
4763
- ca,
4631
+ w2,
4764
4632
  {
4765
4633
  document: this._document,
4766
4634
  set: this.set,
@@ -4792,19 +4660,19 @@ const da = {
4792
4660
  }
4793
4661
  }
4794
4662
  };
4795
- var pa = function() {
4663
+ var _2 = function() {
4796
4664
  var e = this, t = e._self._c;
4797
4665
  return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
4798
4666
  e.query = a;
4799
4667
  }, expression: "query" } }), e.query ? t("div", { staticStyle: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" } }, [t("SmartList", { attrs: { items: e.options, "filter-method": e.filterMethod, query: e.query }, scopedSlots: e._u([{ key: "default", fn: function({ items: a }) {
4800
- return t("div", {}, [a.length ? e._l(a, function(n, s) {
4801
- return t("div", { key: s, staticClass: "flex items-center w-full field-parent" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(n.label) }, on: { dragstart: (o) => e.onDragStart(o, n) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: n.value, disabled: n.inputDisabled, filled: "", size: "small" }, on: { blur: function(o) {
4668
+ return t("div", {}, [a.length ? e._l(a, function(s, n) {
4669
+ return t("div", { key: n, staticClass: "flex items-center w-full field-parent" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(s.label) }, on: { dragstart: (o) => e.onDragStart(o, s) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: s.value, disabled: s.inputDisabled, filled: "", size: "small" }, on: { blur: function(o) {
4802
4670
  var l;
4803
- return n.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
4804
- } } })], 1), t("div", { staticClass: "field-actions" }, [!n.inputDisabled && !n.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(o) {
4805
- return e.openFieldModal({ existingFieldId: n.id });
4671
+ return s.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
4672
+ } } })], 1), t("div", { staticClass: "field-actions" }, [!s.inputDisabled && !s.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(o) {
4673
+ return e.openFieldModal({ existingFieldId: s.id });
4806
4674
  } } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(o) {
4807
- return e.onCopyField(`{{${n.key}}}`);
4675
+ return e.onCopyField(`{{${s.key}}}`);
4808
4676
  } } })], 1)], 1)]);
4809
4677
  }) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2);
4810
4678
  } }], null, !1, 653548536) })], 1) : t("div", { staticStyle: { "padding-top": "20px" } }, [t("div", { staticClass: "flex justify-end w-full", staticStyle: { "margin-top": "0.5em", "margin-bottom": "0.5em" } }, [t("CButton", { staticStyle: { "font-size": "13px", "margin-left": "2px" }, attrs: { type: "none", pattern: "secondary", size: "small" }, domProps: { textContent: e._s(e.$t("_common:add", { thing: e.$t("_common:field") })) }, on: { click: e.openFieldModal } })], 1), e._l([
@@ -4825,32 +4693,32 @@ var pa = function() {
4825
4693
  defaultOpen: !e.usedFields.length,
4826
4694
  items: e.unUsedFields
4827
4695
  }
4828
- ], function(a, n) {
4829
- return t("CAccordion", { key: n, staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)" }, attrs: { "default-open": a.defaultOpen }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: s }) {
4830
- return t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("BaseIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${s ? "180deg" : "0deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
4831
- } }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(s, o) {
4832
- return t("div", { key: o, staticClass: "flex items-center w-full field-parent" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(s.label) }, on: { dragstart: (l) => e.onDragStart(l, s) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: s.value, disabled: s.inputDisabled, filled: "", size: "small" }, on: { blur: function(l) {
4696
+ ], function(a, s) {
4697
+ return t("CAccordion", { key: s, staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)" }, attrs: { "default-open": a.defaultOpen }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: n }) {
4698
+ return t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("BaseIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${n ? "180deg" : "0deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
4699
+ } }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(n, o) {
4700
+ return t("div", { key: o, staticClass: "flex items-center w-full field-parent" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(n.label) }, on: { dragstart: (l) => e.onDragStart(l, n) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: n.value, disabled: n.inputDisabled, filled: "", size: "small" }, on: { blur: function(l) {
4833
4701
  var r;
4834
- return s.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
4835
- } } })], 1), t("div", { staticClass: "field-actions" }, [!s.inputDisabled && !s.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(l) {
4836
- return e.openFieldModal({ existingFieldId: s.id });
4702
+ return n.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
4703
+ } } })], 1), t("div", { staticClass: "field-actions" }, [!n.inputDisabled && !n.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(l) {
4704
+ return e.openFieldModal({ existingFieldId: n.id });
4837
4705
  } } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(l) {
4838
- return e.onCopyField(`{{${s.key}}}`);
4706
+ return e.onCopyField(`{{${n.key}}}`);
4839
4707
  } } })], 1)], 1)]);
4840
4708
  }) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
4841
4709
  })], 2)], 1);
4842
- }, ua = [], ma = /* @__PURE__ */ d(
4843
- da,
4844
- pa,
4845
- ua,
4710
+ }, k2 = [], L2 = /* @__PURE__ */ d(
4711
+ b2,
4712
+ _2,
4713
+ k2,
4846
4714
  !1,
4847
4715
  null,
4848
4716
  "da1996e8",
4849
4717
  null,
4850
4718
  null
4851
4719
  );
4852
- const ha = ma.exports;
4853
- const fa = {
4720
+ const $2 = L2.exports;
4721
+ const S2 = {
4854
4722
  i18nOptions: {
4855
4723
  messages: {
4856
4724
  en: {
@@ -4893,8 +4761,8 @@ const fa = {
4893
4761
  },
4894
4762
  name: "ExtensionTab",
4895
4763
  components: {
4896
- draggable: ht,
4897
- Spinner: Oe
4764
+ draggable: Qe,
4765
+ Spinner: be
4898
4766
  },
4899
4767
  mixins: [S(["externalReferences", "clients", "articles"])],
4900
4768
  data() {
@@ -4948,7 +4816,7 @@ const fa = {
4948
4816
  }
4949
4817
  },
4950
4818
  methods: {
4951
- priceFormat: Y,
4819
+ priceFormat: U,
4952
4820
  async _search(i) {
4953
4821
  try {
4954
4822
  this.isSearching = !0;
@@ -4997,11 +4865,11 @@ const fa = {
4997
4865
  );
4998
4866
  if (!e)
4999
4867
  return;
5000
- const { service: t, type: a, typeId: n } = e, { data: s } = await $.getExternalReferenceDetails(
4868
+ const { service: t, type: a, typeId: s } = e, { data: n } = await $.getExternalReferenceDetails(
5001
4869
  t,
5002
- { type: a, typeId: n }
4870
+ { type: a, typeId: s }
5003
4871
  );
5004
- i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
4872
+ i !== this.dealType ? this.typeDetails = { ...n, type: i } : this.dealDetails = n;
5005
4873
  } catch {
5006
4874
  i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
5007
4875
  } finally {
@@ -5010,25 +4878,25 @@ const fa = {
5010
4878
  },
5011
4879
  removeReference(i = this.dealType) {
5012
4880
  const e = this.externalReferences.find(
5013
- (s) => s.service === this.activeCrm && s.type === i
4881
+ (n) => n.service === this.activeCrm && n.type === i
5014
4882
  );
5015
4883
  if (!e)
5016
4884
  return;
5017
- const { service: t, type: a, typeId: n } = e;
5018
- !t || !a || !n || (this.externalReferences = this.externalReferences.filter(
5019
- (s) => !(s.service === t && s.type === a && s.typeId === n)
4885
+ const { service: t, type: a, typeId: s } = e;
4886
+ !t || !a || !s || (this.externalReferences = this.externalReferences.filter(
4887
+ (n) => !(n.service === t && n.type === a && n.typeId === s)
5020
4888
  ), i !== this.dealType ? this.typeDetails = null : this.dealDetails = null);
5021
4889
  },
5022
4890
  async suggestClients() {
5023
- var n;
4891
+ var s;
5024
4892
  const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await $.suggestClients(i, {
5025
4893
  type: e,
5026
4894
  typeId: t
5027
4895
  });
5028
4896
  if (Array.isArray(a) && a.length) {
5029
- const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
5030
- ...Ue(),
5031
- ...s && { answerMethod: s },
4897
+ const n = (s = this._document) == null ? void 0 : s.defaultAnswerMethod, o = a.map((l) => ({
4898
+ ..._e(),
4899
+ ...n && { answerMethod: n },
5032
4900
  ...l
5033
4901
  }));
5034
4902
  this.clients = [...this.clients || [], ...o];
@@ -5041,8 +4909,8 @@ const fa = {
5041
4909
  });
5042
4910
  },
5043
4911
  addArticle(i) {
5044
- var a, n;
5045
- const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
4912
+ var a, s;
4913
+ const [e] = ((s = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : s.packages) || [];
5046
4914
  if (!(e != null && e.packageId))
5047
4915
  return;
5048
4916
  const t = y({
@@ -5057,10 +4925,10 @@ const fa = {
5057
4925
  }
5058
4926
  }
5059
4927
  };
5060
- var ga = function() {
4928
+ var T2 = function() {
5061
4929
  var e = this, t = e._self._c;
5062
4930
  return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
5063
- return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
4931
+ return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(s) {
5064
4932
  e.activeCrm = a;
5065
4933
  } } }, [e._v(" " + e._s(a.capitalize()) + " ")]);
5066
4934
  })], 2) : e._e(), e.isLoading && !e.dealDetails ? t("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { "padding-top": "calc(2 * var(--rem))" } }, [t("Spinner", { attrs: { size: "24", color: "grey" } })], 1) : e.activeCrm ? [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500", "font-size": "16px" } }, [e._v(" " + e._s(e.activeCrm.capitalize()) + " ")]), e.typeDetails ? t("div", [t("div", { staticClass: "x-hint" }, [t("div", { staticClass: "flex w-full" }, [t("div", { domProps: { textContent: e._s(
@@ -5096,22 +4964,22 @@ var ga = function() {
5096
4964
  pull: "clone",
5097
4965
  put: !1
5098
4966
  }, clone: e.cloneArticle } }, e._l(e.dealDetails.articles, function(a) {
5099
- return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(n) {
4967
+ return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(s) {
5100
4968
  return e.addArticle(a);
5101
4969
  } } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
5102
4970
  }), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
5103
- }, Ca = [], va = /* @__PURE__ */ d(
5104
- fa,
5105
- ga,
5106
- Ca,
4971
+ }, D2 = [], V2 = /* @__PURE__ */ d(
4972
+ S2,
4973
+ T2,
4974
+ D2,
5107
4975
  !1,
5108
4976
  null,
5109
4977
  "341fef10",
5110
4978
  null,
5111
4979
  null
5112
4980
  );
5113
- const ya = va.exports;
5114
- const xa = {
4981
+ const B2 = V2.exports;
4982
+ const M2 = {
5115
4983
  i18nOptions: {
5116
4984
  namespaces: "DocSettings",
5117
4985
  messages: {
@@ -5199,8 +5067,8 @@ const xa = {
5199
5067
  },
5200
5068
  name: "DocumentGeneralSettings",
5201
5069
  components: {
5202
- FormInputRow: ie,
5203
- DragWindow: de
5070
+ FormInputRow: N,
5071
+ DragWindow: J
5204
5072
  },
5205
5073
  props: {
5206
5074
  offset: {
@@ -5241,7 +5109,7 @@ const xa = {
5241
5109
  vatTypes() {
5242
5110
  var e;
5243
5111
  const i = ["vat"];
5244
- return ((e = Re[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5112
+ return ((e = ke[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5245
5113
  },
5246
5114
  options() {
5247
5115
  return [
@@ -5274,7 +5142,7 @@ const xa = {
5274
5142
  component: "select",
5275
5143
  props: {
5276
5144
  value: this.language,
5277
- options: Ge.map((i) => ({
5145
+ options: Le.map((i) => ({
5278
5146
  value: i,
5279
5147
  label: this.$t(`iso:language.${i}`)
5280
5148
  })).sort((i, e) => i.label.localeCompare(e.label))
@@ -5447,26 +5315,26 @@ const xa = {
5447
5315
  }
5448
5316
  }
5449
5317
  };
5450
- var wa = function() {
5318
+ var I2 = function() {
5451
5319
  var e = this, t = e._self._c;
5452
- return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
5453
- return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
5320
+ return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, s) {
5321
+ return t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
5454
5322
  }), e.showDragWindow ? t("DragWindow", { attrs: { offset: e.offset, title: e.$t("pricing.title") }, on: { close: function(a) {
5455
5323
  e.showDragWindow = !1;
5456
- } } }, [e._l(e.priceOptions, function(a, n) {
5457
- return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
5324
+ } } }, [e._l(e.priceOptions, function(a, s) {
5325
+ return [a.type === "divider" ? t("div", { key: s, staticClass: "divider" }) : t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
5458
5326
  })], 2) : e._e()], 2);
5459
- }, ba = [], _a = /* @__PURE__ */ d(
5460
- xa,
5461
- wa,
5462
- ba,
5327
+ }, F2 = [], H2 = /* @__PURE__ */ d(
5328
+ M2,
5329
+ I2,
5330
+ F2,
5463
5331
  !1,
5464
5332
  null,
5465
5333
  "c2cb1c6b",
5466
5334
  null,
5467
5335
  null
5468
5336
  );
5469
- const ka = _a.exports, La = {
5337
+ const A2 = H2.exports, P2 = {
5470
5338
  name: "MenuBlockConvertPopover",
5471
5339
  props: {
5472
5340
  target: {
@@ -5492,32 +5360,32 @@ const ka = _a.exports, La = {
5492
5360
  immediate: !0,
5493
5361
  handler(i) {
5494
5362
  i && this.$nextTick(() => {
5495
- const { top: e, left: t, width: a, height: n } = i.getBoundingClientRect();
5496
- this.$refs.popover.style.top = `${e + n}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
5363
+ const { top: e, left: t, width: a, height: s } = i.getBoundingClientRect();
5364
+ this.$refs.popover.style.top = `${e + s}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
5497
5365
  });
5498
5366
  }
5499
5367
  }
5500
5368
  }
5501
5369
  };
5502
- var $a = function() {
5370
+ var z2 = function() {
5503
5371
  var e = this, t = e._self._c;
5504
5372
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
5505
5373
  return a.target !== a.currentTarget ? null : e.$emit("close");
5506
5374
  } } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
5507
5375
  return e.$emit("convert");
5508
5376
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
5509
- }, Sa = [], Ta = /* @__PURE__ */ d(
5510
- La,
5511
- $a,
5512
- Sa,
5377
+ }, E2 = [], Z2 = /* @__PURE__ */ d(
5378
+ P2,
5379
+ z2,
5380
+ E2,
5513
5381
  !1,
5514
5382
  null,
5515
5383
  null,
5516
5384
  null,
5517
5385
  null
5518
5386
  );
5519
- const Da = Ta.exports;
5520
- const Va = A.component("ProBadge", {
5387
+ const U2 = Z2.exports;
5388
+ const O2 = A.component("ProBadge", {
5521
5389
  name: "ProBadge",
5522
5390
  render(i) {
5523
5391
  return i(
@@ -5528,7 +5396,7 @@ const Va = A.component("ProBadge", {
5528
5396
  "Pro"
5529
5397
  );
5530
5398
  }
5531
- }), Ba = {
5399
+ }), G2 = {
5532
5400
  name: "MenuBlocks",
5533
5401
  i18nOptions: {
5534
5402
  namespaces: "menuBlocks",
@@ -5599,12 +5467,12 @@ const Va = A.component("ProBadge", {
5599
5467
  },
5600
5468
  components: {
5601
5469
  simplebar: L,
5602
- DragList: X,
5603
- DragItem: ee,
5604
- AddBlock: re,
5470
+ DragList: R,
5471
+ DragItem: W,
5472
+ AddBlock: Y,
5605
5473
  IsPremiumPreStep: k,
5606
- ProBadge: Va,
5607
- MenuBlockConvertPopover: Da
5474
+ ProBadge: O2,
5475
+ MenuBlockConvertPopover: U2
5608
5476
  },
5609
5477
  props: {
5610
5478
  _document: {
@@ -5909,7 +5777,7 @@ const Va = A.component("ProBadge", {
5909
5777
  }
5910
5778
  ];
5911
5779
  return i.forEach((e) => {
5912
- W[e.key] && (e.subMenu = (W[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
5780
+ Z[e.key] && (e.subMenu = (Z[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
5913
5781
  }), i;
5914
5782
  },
5915
5783
  availableBlocks() {
@@ -5948,7 +5816,7 @@ const Va = A.component("ProBadge", {
5948
5816
  if (i.locked)
5949
5817
  return t();
5950
5818
  if (!this.canUseBlocks) {
5951
- const a = this.availableBlocks.findIndex((n) => n.key === i.key);
5819
+ const a = this.availableBlocks.findIndex((s) => s.key === i.key);
5952
5820
  return this.showConvertEditableDialogTarget = this.$refs.blockItem[a].$el, this.showConvertEditableDialog = !0, !1;
5953
5821
  }
5954
5822
  return e({
@@ -5961,11 +5829,11 @@ const Va = A.component("ProBadge", {
5961
5829
  ["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "template.views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
5962
5830
  },
5963
5831
  createTooltips() {
5964
- var n, s;
5832
+ var s, n;
5965
5833
  if (this.mq === "sm")
5966
5834
  return;
5967
- const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
5968
- this.tippyInstances = pt(this.$el, {
5835
+ const { tooltips: i } = this, e = (n = (s = this.$el).getRootNode) == null ? void 0 : n.call(s), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
5836
+ this.tippyInstances = je(this.$el, {
5969
5837
  target: "[data-tooltip-key]",
5970
5838
  allowHTML: !0,
5971
5839
  duration: [150, 0],
@@ -6033,12 +5901,12 @@ const Va = A.component("ProBadge", {
6033
5901
  }
6034
5902
  }
6035
5903
  };
6036
- var Ma = function() {
5904
+ var R2 = function() {
6037
5905
  var e = this, t = e._self._c;
6038
5906
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
6039
5907
  return e.$emit("block-added", a);
6040
- } }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: n }) {
6041
- return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
5908
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: s }) {
5909
+ return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6042
5910
  return [t("div", { on: { "&mouseleave": function(o) {
6043
5911
  return e.onMouseleaveDrawer.apply(null, arguments);
6044
5912
  } } }, [!e.canUseBlocks && e.showConvertEditableDialog ? t("MenuBlockConvertPopover", { attrs: { target: e.showConvertEditableDialogTarget }, on: { convert: e.deSyncTemplate, close: function(o) {
@@ -6047,7 +5915,7 @@ var Ma = function() {
6047
5915
  { data: e.primaryBlocks },
6048
5916
  { data: e.secondaryBlocks }
6049
5917
  ], function(o, l) {
6050
- return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) => n(
5918
+ return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) => s(
6051
5919
  e.getSectionKey({ data: o.data, index: r })
6052
5920
  ), "drop-placeholder": {
6053
5921
  className: "drag-drop-menu-placeholder"
@@ -6065,29 +5933,29 @@ var Ma = function() {
6065
5933
  !1
6066
5934
  ), [t("CButton", { ref: "blockItem", refInFor: !0, staticClass: "option-row is-thinner is-left", class: {
6067
5935
  "sub-menu-active": r.key === e.activeSubMenuKey
6068
- }, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (c) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal: s }) } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "230px" } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "initial", flex: "1 1 auto" } }, [t("div", { staticClass: "option-image", domProps: { innerHTML: e._s(r.icon) } }), t("div", { staticClass: "option-title" }, [e._v(" " + e._s(e.$t(`blocks.${r.key}`)) + " ")])]), r.locked ? t("ProBadge") : !e.fixed && r.subMenu ? t("BaseIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
5936
+ }, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (c) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal: n }) } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "230px" } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "initial", flex: "1 1 auto" } }, [t("div", { staticClass: "option-image", domProps: { innerHTML: e._s(r.icon) } }), t("div", { staticClass: "option-title" }, [e._v(" " + e._s(e.$t(`blocks.${r.key}`)) + " ")])]), r.locked ? t("ProBadge") : !e.fixed && r.subMenu ? t("BaseIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
6069
5937
  }), 1)], 1);
6070
5938
  }), e._t("footer")], 2), t("transition", { attrs: { name: "slide-right" } }, [t("div", { directives: [{ name: "show", rawName: "v-show", value: e.activeSubMenu, expression: "activeSubMenu" }], staticClass: "submenu", on: { "&mouseover": function(o) {
6071
5939
  e.subMenuToShow = e.activeSubMenu;
6072
5940
  }, "&mouseleave": function(o) {
6073
5941
  e.subMenuToShow = null;
6074
- } } }, [t("simplebar", { staticClass: "h-full py-4 pl-3", attrs: { "data-simplebar-auto-hide": "false" } }, [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: n }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
6075
- return t("DragItem", { key: o.key + l, staticClass: "px-1.5", class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: s }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
5942
+ } } }, [t("simplebar", { staticClass: "h-full py-4 pl-3", attrs: { "data-simplebar-auto-hide": "false" } }, [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: s }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
5943
+ return t("DragItem", { key: o.key + l, staticClass: "px-1.5", class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: n }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
6076
5944
  }), 1)], 1)], 1)])], 1)];
6077
5945
  } }], null, !0) })];
6078
5946
  } }]) });
6079
- }, Ia = [], Fa = /* @__PURE__ */ d(
6080
- Ba,
6081
- Ma,
6082
- Ia,
5947
+ }, W2 = [], q2 = /* @__PURE__ */ d(
5948
+ G2,
5949
+ R2,
5950
+ W2,
6083
5951
  !1,
6084
5952
  null,
6085
5953
  "126e204b",
6086
5954
  null,
6087
5955
  null
6088
5956
  );
6089
- const Ha = Fa.exports;
6090
- const Aa = {
5957
+ const N2 = q2.exports;
5958
+ const j2 = {
6091
5959
  name: "DocumentFormMenu",
6092
5960
  i18nOptions: {
6093
5961
  namespaces: "documentFormMenu",
@@ -6103,12 +5971,12 @@ const Aa = {
6103
5971
  }
6104
5972
  },
6105
5973
  components: {
6106
- Design: na,
6107
- Fields: ha,
6108
- ExtensionTab: ya,
6109
- DocumentGeneralSettings: ka,
6110
- DocumentGuide: () => import("./index-cb1bc377.js"),
6111
- MenuBlocks: Ha,
5974
+ Design: g2,
5975
+ Fields: $2,
5976
+ ExtensionTab: B2,
5977
+ DocumentGeneralSettings: A2,
5978
+ DocumentGuide: () => import("./index-4a052f26.js"),
5979
+ MenuBlocks: N2,
6112
5980
  Simplebar: L
6113
5981
  },
6114
5982
  props: {
@@ -6149,7 +6017,7 @@ const Aa = {
6149
6017
  data() {
6150
6018
  return {
6151
6019
  showGuide: !1,
6152
- showGuideNotification: !E.getItem("hideFormGuideNotification"),
6020
+ showGuideNotification: !z.getItem("hideFormGuideNotification"),
6153
6021
  tab: "blocks"
6154
6022
  };
6155
6023
  },
@@ -6171,11 +6039,11 @@ const Aa = {
6171
6039
  },
6172
6040
  methods: {
6173
6041
  openGuide() {
6174
- this.showGuide = !0, this.showGuideNotification = !1, E.setItem("hideFormGuideNotification", !0);
6042
+ this.showGuide = !0, this.showGuideNotification = !1, z.setItem("hideFormGuideNotification", !0);
6175
6043
  }
6176
6044
  }
6177
6045
  };
6178
- var Pa = function() {
6046
+ var K2 = function() {
6179
6047
  var e = this, t = e._self._c;
6180
6048
  return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
6181
6049
  return e.$emit("close");
@@ -6209,7 +6077,7 @@ var Pa = function() {
6209
6077
  externalReferences: "externalReferences",
6210
6078
  clients: "clients",
6211
6079
  articles: "articles"
6212
- } }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", { class: { "!top-0 rounded-sm": e.isLegacyTemplate }, attrs: { _document: e.state, _value: {
6080
+ } }, on: { input: ({ key: a, value: s }) => e.set({ key: a, value: s }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", { class: { "!top-0 rounded-sm": e.isLegacyTemplate }, attrs: { _document: e.state, _value: {
6213
6081
  term: "data.terms",
6214
6082
  series: "docNumber.series",
6215
6083
  tags: "tags",
@@ -6219,21 +6087,21 @@ var Pa = function() {
6219
6087
  useVat: "data.formSettings.useVat",
6220
6088
  vatType: "data.formSettings.vatType",
6221
6089
  rounding: "data.formSettings.rounding"
6222
- }, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
6090
+ }, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: s }) => e.set({ key: a, value: s }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
6223
6091
  e.showGuide = !1;
6224
6092
  } } }) : e._e()], 1)])]);
6225
- }, Ea = [], za = /* @__PURE__ */ d(
6226
- Aa,
6227
- Pa,
6228
- Ea,
6093
+ }, Y2 = [], Q2 = /* @__PURE__ */ d(
6094
+ j2,
6095
+ K2,
6096
+ Y2,
6229
6097
  !1,
6230
6098
  null,
6231
6099
  "670ad23f",
6232
6100
  null,
6233
6101
  null
6234
6102
  );
6235
- const Za = za.exports;
6236
- const Oa = {
6103
+ const J2 = Q2.exports;
6104
+ const X2 = {
6237
6105
  name: "BlockControlButtons",
6238
6106
  i18nOptions: {
6239
6107
  namespace: "blockControlButtons",
@@ -6265,7 +6133,7 @@ const Oa = {
6265
6133
  }
6266
6134
  }
6267
6135
  };
6268
- var Ua = function() {
6136
+ var ei = function() {
6269
6137
  var e = this, t = e._self._c;
6270
6138
  return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
6271
6139
  return e.$emit("toggle-visible", !e.isVisible);
@@ -6276,21 +6144,21 @@ var Ua = function() {
6276
6144
  } } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
6277
6145
  return e.$emit("remove");
6278
6146
  } } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
6279
- }, Ra = [], Ga = /* @__PURE__ */ d(
6280
- Oa,
6281
- Ua,
6282
- Ra,
6147
+ }, ti = [], ii = /* @__PURE__ */ d(
6148
+ X2,
6149
+ ei,
6150
+ ti,
6283
6151
  !1,
6284
6152
  null,
6285
6153
  "9e35bda4",
6286
6154
  null,
6287
6155
  null
6288
6156
  );
6289
- const Wa = Ga.exports;
6290
- const qa = {
6157
+ const ai = ii.exports;
6158
+ const si = {
6291
6159
  name: "DynamicBlock",
6292
6160
  components: {
6293
- BlockControlButtons: Wa
6161
+ BlockControlButtons: ai
6294
6162
  },
6295
6163
  props: {
6296
6164
  isDragging: {
@@ -6351,7 +6219,7 @@ const qa = {
6351
6219
  }
6352
6220
  }
6353
6221
  };
6354
- var Na = function() {
6222
+ var ni = function() {
6355
6223
  var e = this, t = e._self._c;
6356
6224
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
6357
6225
  {
@@ -6374,22 +6242,22 @@ var Na = function() {
6374
6242
  }, remove: function(a) {
6375
6243
  return e.$emit("remove");
6376
6244
  } } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
6377
- }, ja = [], Ka = /* @__PURE__ */ d(
6378
- qa,
6379
- Na,
6380
- ja,
6245
+ }, oi = [], li = /* @__PURE__ */ d(
6246
+ si,
6247
+ ni,
6248
+ oi,
6381
6249
  !1,
6382
6250
  null,
6383
6251
  "3d358acc",
6384
6252
  null,
6385
6253
  null
6386
6254
  );
6387
- const Ya = Ka.exports;
6388
- const Qa = {
6255
+ const ri = li.exports;
6256
+ const ci = {
6389
6257
  name: "DocumentDrawer",
6390
6258
  components: {
6391
6259
  simplebar: L,
6392
- Drawer: ce
6260
+ Drawer: Q
6393
6261
  },
6394
6262
  props: {
6395
6263
  position: {
@@ -6411,7 +6279,7 @@ const Qa = {
6411
6279
  }
6412
6280
  }
6413
6281
  };
6414
- var Ja = function() {
6282
+ var di = function() {
6415
6283
  var e = this, t = e._self._c;
6416
6284
  return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
6417
6285
  "is-sticky": !e.fixed
@@ -6423,18 +6291,18 @@ var Ja = function() {
6423
6291
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
6424
6292
  ...e.fixedStyle
6425
6293
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
6426
- }, Xa = [], en = /* @__PURE__ */ d(
6427
- Qa,
6428
- Ja,
6429
- Xa,
6294
+ }, pi = [], ui = /* @__PURE__ */ d(
6295
+ ci,
6296
+ di,
6297
+ pi,
6430
6298
  !1,
6431
6299
  null,
6432
6300
  "28a55097",
6433
6301
  null,
6434
6302
  null
6435
6303
  );
6436
- const tn = en.exports;
6437
- const an = {
6304
+ const mi = ui.exports;
6305
+ const hi = {
6438
6306
  name: "DocumentFormViewRadio",
6439
6307
  props: {
6440
6308
  value: {
@@ -6447,24 +6315,24 @@ const an = {
6447
6315
  }
6448
6316
  }
6449
6317
  };
6450
- var nn = function() {
6318
+ var fi = function() {
6451
6319
  var e = this, t = e._self._c;
6452
6320
  return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
6453
6321
  e.value === "preview" && e.$emit("input", "edit");
6454
6322
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "edit", size: "18" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
6455
6323
  e.value === "edit" && e.$emit("input", "preview");
6456
6324
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "eye", size: "18" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
6457
- }, sn = [], on = /* @__PURE__ */ d(
6458
- an,
6459
- nn,
6460
- sn,
6325
+ }, gi = [], Ci = /* @__PURE__ */ d(
6326
+ hi,
6327
+ fi,
6328
+ gi,
6461
6329
  !1,
6462
6330
  null,
6463
6331
  "2d9aa751",
6464
6332
  null,
6465
6333
  null
6466
6334
  );
6467
- const ln = on.exports, rn = {
6335
+ const vi = Ci.exports, yi = {
6468
6336
  name: "LogoBanner",
6469
6337
  props: {
6470
6338
  position: {
@@ -6482,46 +6350,46 @@ const ln = on.exports, rn = {
6482
6350
  }
6483
6351
  }
6484
6352
  };
6485
- var cn = function() {
6353
+ var xi = function() {
6486
6354
  var e = this, t = e._self._c;
6487
6355
  return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t(
6488
6356
  "_common:brand.domain"
6489
6357
  )}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
6490
- }, dn = [], pn = /* @__PURE__ */ d(
6491
- rn,
6492
- cn,
6493
- dn,
6358
+ }, wi = [], bi = /* @__PURE__ */ d(
6359
+ yi,
6360
+ xi,
6361
+ wi,
6494
6362
  !1,
6495
6363
  null,
6496
6364
  null,
6497
6365
  null,
6498
6366
  null
6499
6367
  );
6500
- const un = pn.exports;
6501
- const mn = {
6368
+ const _i = bi.exports;
6369
+ const ki = {
6502
6370
  name: "DocumentFormNav"
6503
6371
  };
6504
- var hn = function() {
6372
+ var Li = function() {
6505
6373
  var e = this, t = e._self._c;
6506
6374
  return t("div", { staticClass: "DocumentFormNav py-2 px-2 md:px-6 fixed left-0 top-0 right-0 z-[98]" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
6507
- }, fn = [], gn = /* @__PURE__ */ d(
6508
- mn,
6509
- hn,
6510
- fn,
6375
+ }, $i = [], Si = /* @__PURE__ */ d(
6376
+ ki,
6377
+ Li,
6378
+ $i,
6511
6379
  !1,
6512
6380
  null,
6513
6381
  "39c32da6",
6514
6382
  null,
6515
6383
  null
6516
6384
  );
6517
- const Cn = gn.exports;
6518
- const pe = (i, e, t = "$children") => {
6385
+ const Ti = Si.exports;
6386
+ const X = (i, e, t = "$children") => {
6519
6387
  if (!i)
6520
6388
  return;
6521
6389
  e(i);
6522
6390
  const a = i[t];
6523
- !a && !Array.isArray(a) || a.forEach((n) => pe(n, e));
6524
- }, vn = {
6391
+ !a && !Array.isArray(a) || a.forEach((s) => X(s, e));
6392
+ }, Di = {
6525
6393
  i18nOptions: {
6526
6394
  namespaces: "DocumentFormContainer",
6527
6395
  messages: {
@@ -6537,18 +6405,18 @@ const pe = (i, e, t = "$children") => {
6537
6405
  },
6538
6406
  name: "DocumentFormContainer",
6539
6407
  components: {
6540
- WithDimensions: it,
6541
- DragList: X,
6542
- DragItem: ee,
6543
- DynamicChapter: at,
6544
- DocumentFormMenu: Za,
6545
- DynamicBlock: Ya,
6546
- DocumentFormViewRadio: ln,
6547
- DocumentFormNav: Cn,
6548
- DocumentDrawer: tn,
6549
- DocumentStyleContainer: nt,
6408
+ WithDimensions: Ee,
6409
+ DragList: R,
6410
+ DragItem: W,
6411
+ DynamicChapter: Ze,
6412
+ DocumentFormMenu: J2,
6413
+ DynamicBlock: ri,
6414
+ DocumentFormViewRadio: vi,
6415
+ DocumentFormNav: Ti,
6416
+ DocumentDrawer: mi,
6417
+ DocumentStyleContainer: Ue,
6550
6418
  simplebar: L,
6551
- LogoBanner: un,
6419
+ LogoBanner: _i,
6552
6420
  IsPremium: _
6553
6421
  },
6554
6422
  props: {
@@ -6653,29 +6521,29 @@ const pe = (i, e, t = "$children") => {
6653
6521
  var e, t;
6654
6522
  i && (Object.keys(((t = (e = this._document._doc) == null ? void 0 : e.data) == null ? void 0 : t.packageGroups) || []).forEach(
6655
6523
  (a) => {
6656
- this._document._doc.data.packageGroups[a].packages.forEach((s, o) => {
6524
+ this._document._doc.data.packageGroups[a].packages.forEach((n, o) => {
6657
6525
  this.setFormValue({
6658
6526
  key: `data.packageGroups.${a}.packages[${o}].data.prices.currency`,
6659
6527
  value: i
6660
6528
  });
6661
6529
  });
6662
6530
  }
6663
- ), this._document.allArticles.forEach((a, n) => {
6664
- const s = `articles[${n}].currency`;
6665
- this.setFormValue({ key: s, value: i });
6531
+ ), this._document.allArticles.forEach((a, s) => {
6532
+ const n = `articles[${s}].currency`;
6533
+ this.setFormValue({ key: n, value: i });
6666
6534
  }));
6667
6535
  },
6668
6536
  async externalReferences(i) {
6669
6537
  await Promise.all(
6670
6538
  (i || []).map(async ({ service: e, type: t, typeId: a }) => {
6671
6539
  if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
6672
- const { data: n } = await $.getFields(
6540
+ const { data: s } = await $.getFields(
6673
6541
  e,
6674
6542
  { type: t, typeId: a, populated: !0 }
6675
6543
  );
6676
6544
  this.setFormValue({
6677
6545
  key: "data.fields",
6678
- value: { ...this._document.fields, ...n }
6546
+ value: { ...this._document.fields, ...s }
6679
6547
  });
6680
6548
  }
6681
6549
  })
@@ -6684,11 +6552,11 @@ const pe = (i, e, t = "$children") => {
6684
6552
  },
6685
6553
  methods: {
6686
6554
  onAddBlockMount(i, e) {
6687
- !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ft(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6555
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => Je(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6688
6556
  },
6689
6557
  onBlockToggleVisible(i, e) {
6690
6558
  const a = [...this.readLayout].findIndex(
6691
- (n) => n.nodeId === i.nodeId
6559
+ (s) => s.nodeId === i.nodeId
6692
6560
  );
6693
6561
  a !== -1 && this.setFormValue({
6694
6562
  key: `template.views.read.nodes[${a}].isVisible`,
@@ -6708,10 +6576,10 @@ const pe = (i, e, t = "$children") => {
6708
6576
  const a = i.itemId.split("-")[1];
6709
6577
  this.removePackageGroup(a);
6710
6578
  } else
6711
- pe(i, (n) => {
6712
- n.value && Object.values(n.value).forEach((s) => {
6713
- this.removeFormKeyValue(`${s}`);
6714
- let o = s.replace(
6579
+ X(i, (s) => {
6580
+ s.value && Object.values(s.value).forEach((n) => {
6581
+ this.removeFormKeyValue(`${n}`);
6582
+ let o = n.replace(
6715
6583
  /^data.(?!properties)/g,
6716
6584
  "data.properties."
6717
6585
  );
@@ -6722,8 +6590,8 @@ const pe = (i, e, t = "$children") => {
6722
6590
  });
6723
6591
  }, "children");
6724
6592
  B([this.nestedReadLayout[e]]).forEach((a) => {
6725
- const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
6726
- this.removeFormValue(`template.views.read.nodes[${n}]`);
6593
+ const s = this.readLayout.findIndex((n) => n.nodeId === a.nodeId);
6594
+ this.removeFormValue(`template.views.read.nodes[${s}]`);
6727
6595
  });
6728
6596
  },
6729
6597
  removePackageGroup(i) {
@@ -6732,7 +6600,7 @@ const pe = (i, e, t = "$children") => {
6732
6600
  this.setFormValue({
6733
6601
  key: "articles",
6734
6602
  value: u(this._document, "_doc.articles", []).filter(
6735
- ({ packageId: n }) => n !== a.packageId
6603
+ ({ packageId: s }) => s !== a.packageId
6736
6604
  )
6737
6605
  });
6738
6606
  });
@@ -6748,38 +6616,38 @@ const pe = (i, e, t = "$children") => {
6748
6616
  if (e !== null && t !== null) {
6749
6617
  if (e === t)
6750
6618
  return;
6751
- const n = We(
6619
+ const s = $e(
6752
6620
  this.nestedReadLayout,
6753
6621
  e,
6754
6622
  t
6755
6623
  );
6756
6624
  this.setFormValue({
6757
6625
  key: "template.views.read.nodes",
6758
- value: B(n)
6626
+ value: B(s)
6759
6627
  });
6760
6628
  } else if (!e && t !== null) {
6761
- const { sectionKey: n, createNewSection: s, addValidation: o, contentData: l } = a, {
6629
+ const { sectionKey: s, createNewSection: n, addValidation: o, contentData: l } = a, {
6762
6630
  readView: r,
6763
6631
  validation: c,
6764
6632
  data: C,
6765
6633
  onAddFnName: V = "onAdd"
6766
- } = s({
6767
- sectionKey: n,
6634
+ } = n({
6635
+ sectionKey: s,
6768
6636
  document: this._document,
6769
6637
  contentData: l
6770
6638
  });
6771
6639
  o({ validation: c, data: C });
6772
- const ue = qe({ tree: r }), me = [
6640
+ const ee = Se({ tree: r }), te = [
6773
6641
  ...this.nestedReadLayout.slice(0, t),
6774
- ...ue,
6642
+ ...ee,
6775
6643
  ...this.nestedReadLayout.slice(t)
6776
6644
  ];
6777
6645
  this.setFormValue({
6778
6646
  key: "template.views.read.nodes",
6779
- value: B(me)
6647
+ value: B(te)
6780
6648
  });
6781
- const [{ nodeId: he }] = r;
6782
- this.onAddRedis[he] = V;
6649
+ const [{ nodeId: ie }] = r;
6650
+ this.onAddRedis[ie] = V;
6783
6651
  }
6784
6652
  },
6785
6653
  shouldAnimateDrop(i) {
@@ -6787,13 +6655,13 @@ const pe = (i, e, t = "$children") => {
6787
6655
  }
6788
6656
  }
6789
6657
  };
6790
- var yn = function() {
6658
+ var Vi = function() {
6791
6659
  var e = this, t = e._self._c;
6792
6660
  return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
6793
6661
  "is-edit-view": e.isEditView,
6794
6662
  "is-empty-list": !e.nestedReadLayout.length
6795
- } }, [t("DocumentFormMenu", { directives: [{ name: "show", rawName: "v-show", value: e.drawerState.showLeft, expression: "drawerState.showLeft" }], attrs: { state: e._document, "on-added-block": ({ nodeId: a, onAddFnName: n = "onAdd" }) => {
6796
- e.onAddRedis[a] = n;
6663
+ } }, [t("DocumentFormMenu", { directives: [{ name: "show", rawName: "v-show", value: e.drawerState.showLeft, expression: "drawerState.showLeft" }], attrs: { state: e._document, "on-added-block": ({ nodeId: a, onAddFnName: s = "onAdd" }) => {
6664
+ e.onAddRedis[a] = s;
6797
6665
  }, set: e.setFormValue, "remove-value": e.removeFormValue, template: e.docTemplate, fixed: e.drawerState.isFixed, "can-use-blocks": e.isTemplateEditable, "is-legacy-template": e.isLegacyTemplate, width: e.sidebarWidth }, on: { close: function(a) {
6798
6666
  e.drawerState.showLeft = !1;
6799
6667
  } } }), t("div", { ref: "scroll-body", staticClass: "flex justify-center w-full doc-scroll-container", class: {
@@ -6814,7 +6682,7 @@ var yn = function() {
6814
6682
  paddingLeft: "6px",
6815
6683
  paddingRight: "6px",
6816
6684
  margin: 0
6817
- }, on: { click: function(n) {
6685
+ }, on: { click: function(s) {
6818
6686
  e.previewDevice = a;
6819
6687
  } } }, [t("BaseIcon", { attrs: { type: a, size: "18" } })], 1);
6820
6688
  }), 0) : e._e()], 1), e._t("nav-right", null, { slot: "right" })], 2), t("div", { staticClass: "list-container", class: [
@@ -6826,12 +6694,12 @@ var yn = function() {
6826
6694
  e.isEditView && "overflow-hidden min-h-full w-[1200px] mx-auto md:max-w-[90%] max-w-full rounded-md shadow-[0_20px_35px_-8px_hsla(0,0%,0%,0.27)] px-0"
6827
6695
  ] }, [!e.nestedReadLayout.length && !e.isFixedSidebar ? t("div", { staticClass: "text-gray-400 drag-drop-empty-list is-placeholder" }, [t("div", { staticStyle: { position: "relative" } }, [e._m(0), t("svg", { staticClass: "drag-drop-illustration", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" } }, [t("path", { staticClass: "drag-drop-illustration-finger", attrs: { d: "M8 0a4 4 0 00-2.7 1C4.6 1.6 4 2.7 4 4v21.4c-.4.2-.8.2-1.7 1A7.2 7.2 0 000 31.8c0 2 .8 3.8 1 4.5L4 42s-.1 0 0 0c1.4 3.1 4.5 5 8 5h9c5 0 9-4 9-9V22c0-.8-.1-2-.7-3-.5-1-1.7-2-3.3-2-1 0-2 .4-2.6.9 0-.3-.1-.7-.3-1-.6-1-1.7-1.9-3.1-1.9a4 4 0 00-2.7 1c-.6-1.1-1.7-2-3.3-2-.8 0-1.4.2-2 .6V4a4 4 0 00-4-4z", fill: "#000", "fill-rule": "nonzero" } }), t("path", { staticClass: "drag-drop-illustration-grabbing", attrs: { transform: "translate(0 11)", d: "M14 1c-.8 0-1.8.2-2.6.8l-.9 1a4 4 0 00-5.2.2C4.6 3.6 4 4.7 4 5.9V14c-1.7.7-4 3-4 7 0 2.2.9 4.2 1 4.5L3.9 31c1.5 3.1 4.6 5 8 5H21c5 0 9-4 9-9V9c0-4.4-2.5-5-4-5-.7 0-1.5.1-2.3.7C23 2.5 21.4 2 20 2c-1 0-2 .3-2.6.8l-.6-.9A4 4 0 0014 1z", fill: "#000", "fill-rule": "nonzero" } })])]), t("div", { staticClass: "text-center", staticStyle: { "max-width": "22ch" }, domProps: { innerHTML: e._s(e.$t("emptyBlockPlaceholderLarge")) } })]) : e._e(), t(e.isEditView ? "div" : "simplebar", { tag: "component", staticClass: "w-full h-full" }, [t("WithDimensions", { attrs: { "provide-device": !0 }, on: { width: function(a) {
6828
6696
  e.parentSize.width = a;
6829
- } }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: n }) {
6830
- var s, o;
6697
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: s }) {
6698
+ var n, o;
6831
6699
  return t("DocumentStyleContainer", { staticClass: "relative w-full h-full", style: {
6832
6700
  "--vw": `${a / 100}px`,
6833
- "--vh": `clamp(7.5px, ${n / 100}px, ${e.isEditView ? 7.5 : 9}px)`
6834
- }, attrs: { "heading-color": e.headingColor, "input-style": ((o = (s = e._document) == null ? void 0 : s.data) == null ? void 0 : o.css) || null } }, [e.nestedReadLayout ? t("DragList", { staticClass: "drag-list", attrs: { handle: ".NO-SELECTOR", "drop-placeholder": { className: "drag-drop-placeholder" }, "should-animate-drop": e.shouldAnimateDrop, group: "blocks", "ghost-class": "drag-drop-ghost", "drag-class": "is-dragged", "group-name": "document-blocks", "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item" }, on: { "drag-start": function(l) {
6701
+ "--vh": `clamp(7.5px, ${s / 100}px, ${e.isEditView ? 7.5 : 9}px)`
6702
+ }, attrs: { "heading-color": e.headingColor, "input-style": ((o = (n = e._document) == null ? void 0 : n.data) == null ? void 0 : o.css) || null } }, [e.nestedReadLayout ? t("DragList", { staticClass: "drag-list", attrs: { handle: ".NO-SELECTOR", "drop-placeholder": { className: "drag-drop-placeholder" }, "should-animate-drop": e.shouldAnimateDrop, group: "blocks", "ghost-class": "drag-drop-ghost", "drag-class": "is-dragged", "group-name": "document-blocks", "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item" }, on: { "drag-start": function(l) {
6835
6703
  e.isDragging = !0;
6836
6704
  }, "drag-end": function(l) {
6837
6705
  e.isDragging = !1;
@@ -6865,30 +6733,30 @@ var yn = function() {
6865
6733
  } } }, [t("CButton", { staticClass: "absolute top-2 right-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
6866
6734
  e.drawerState.openSection = null;
6867
6735
  } } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
6868
- }, xn = [function() {
6736
+ }, Bi = [function() {
6869
6737
  var i = this, e = i._self._c;
6870
6738
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
6871
- }], wn = /* @__PURE__ */ d(
6872
- vn,
6873
- yn,
6874
- xn,
6739
+ }], Mi = /* @__PURE__ */ d(
6740
+ Di,
6741
+ Vi,
6742
+ Bi,
6875
6743
  !1,
6876
6744
  null,
6877
6745
  "d761f136",
6878
6746
  null,
6879
6747
  null
6880
6748
  );
6881
- const bn = wn.exports;
6882
- function _n(i, e, t) {
6749
+ const Ii = Mi.exports;
6750
+ function Fi(i, e, t) {
6883
6751
  return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
6884
6752
  }
6885
- var kn = _n, Ln = kn, M = ot;
6886
- function $n(i, e, t) {
6887
- return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), Ln(M(i), e, t);
6753
+ var Hi = Fi, Ai = Hi, M = Ge;
6754
+ function Pi(i, e, t) {
6755
+ return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), Ai(M(i), e, t);
6888
6756
  }
6889
- var Sn = $n;
6890
- const Tn = /* @__PURE__ */ K(Sn);
6891
- const Dn = {
6757
+ var zi = Pi;
6758
+ const Ei = /* @__PURE__ */ Te(zi);
6759
+ const Zi = {
6892
6760
  name: "RemainingTrialButton",
6893
6761
  components: { IsPremium: _ },
6894
6762
  i18nOptions: {
@@ -6920,46 +6788,46 @@ const Dn = {
6920
6788
  },
6921
6789
  mixins: [b],
6922
6790
  methods: {
6923
- clamp: Tn
6791
+ clamp: Ei
6924
6792
  }
6925
6793
  };
6926
- var Vn = function() {
6794
+ var Ui = function() {
6927
6795
  var e = this, t = e._self._c;
6928
6796
  return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
6929
6797
  accountType: a,
6930
- trialDaysLeft: n,
6931
- openUpgradeModal: s,
6798
+ trialDaysLeft: s,
6799
+ openUpgradeModal: n,
6932
6800
  initialFreePremiumDays: o
6933
6801
  }) {
6934
- return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative flex flex-col justify-center px-2 mr-2 text-xs font-semibold rounded-md cursor-pointer select-none bg-gray-200/50 h-9 backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "h-[3px] bg-gray-300 absolute bottom-1 left-2 right-2 rounded-full ring-1 ring-white/10" }, [t("div", { staticClass: "absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500 to-primary-600", style: {
6935
- width: e.clamp(n / o * 100, 0, 100) + "%"
6936
- } })])]), t("div", { staticClass: "p-4 text-sm w-56", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-primary-100 border border-primary-200 text-primary-800 rounded-md text-xs" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-gray-200 border border-gray-300 text-gray-600 rounded-md text-xs font-semibold" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
6802
+ return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative flex flex-col justify-center px-2 mr-2 text-xs font-semibold rounded-md cursor-pointer select-none bg-gray-200/50 h-9 backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: s })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "h-[3px] bg-gray-300 absolute bottom-1 left-2 right-2 rounded-full ring-1 ring-white/10" }, [t("div", { staticClass: "absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500 to-primary-600", style: {
6803
+ width: e.clamp(s / o * 100, 0, 100) + "%"
6804
+ } })])]), t("div", { staticClass: "p-4 text-sm w-56", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-primary-100 border border-primary-200 text-primary-800 rounded-md text-xs" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: s })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-gray-200 border border-gray-300 text-gray-600 rounded-md text-xs font-semibold" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: n } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
6937
6805
  } }]) });
6938
- }, Bn = [], Mn = /* @__PURE__ */ d(
6939
- Dn,
6940
- Vn,
6941
- Bn,
6806
+ }, Oi = [], Gi = /* @__PURE__ */ d(
6807
+ Zi,
6808
+ Ui,
6809
+ Oi,
6942
6810
  !1,
6943
6811
  null,
6944
6812
  "ef060cb6",
6945
6813
  null,
6946
6814
  null
6947
6815
  );
6948
- const In = Mn.exports, T = A.observable({
6816
+ const Ri = Gi.exports, T = A.observable({
6949
6817
  canEdit: !1,
6950
6818
  isForm: !0,
6951
6819
  setFormValue: null,
6952
6820
  removeFormValue: null
6953
- }), Fn = {
6821
+ }), Wi = {
6954
6822
  name: "DocumentForm",
6955
6823
  components: {
6956
- DocumentFormContainer: bn,
6824
+ DocumentFormContainer: Ii,
6957
6825
  IsPremium: _,
6958
6826
  IsPremiumPreStep: k,
6959
- DocumentSend: Ri,
6960
- RemainingTrialButton: In
6827
+ DocumentSend: t2,
6828
+ RemainingTrialButton: Ri
6961
6829
  },
6962
- mixins: [dt],
6830
+ mixins: [Ne],
6963
6831
  props: {
6964
6832
  document: {
6965
6833
  type: Object,
@@ -7046,7 +6914,7 @@ const In = Mn.exports, T = A.observable({
7046
6914
  },
7047
6915
  async saveAsTemplate() {
7048
6916
  this.document && this.$modal.show(
7049
- oe,
6917
+ j,
7050
6918
  {
7051
6919
  document: this.document,
7052
6920
  onSaveTemplate: this.onSaveTemplate
@@ -7063,20 +6931,20 @@ const In = Mn.exports, T = A.observable({
7063
6931
  }
7064
6932
  }
7065
6933
  };
7066
- var Hn = function() {
6934
+ var qi = function() {
7067
6935
  var e = this, t = e._self._c;
7068
6936
  return e.document ? t("div", { staticClass: "flex flex-col w-screen bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
7069
6937
  e.view = a;
7070
- } } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
7071
- return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6938
+ } } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: s }) {
6939
+ return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
7072
6940
  return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
7073
6941
  return [t("RemainingTrialButton"), t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(o) {
7074
- a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
6942
+ a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : n({ callback: e.openSendModal });
7075
6943
  } } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
7076
6944
  return [t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
7077
- a || e.document.id ? e.submitSave() : s({ callback: e.submitSave });
6945
+ a || e.document.id ? e.submitSave() : n({ callback: e.submitSave });
7078
6946
  } } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: function(l) {
7079
- n ? e.saveAsTemplate() : o({
6947
+ s ? e.saveAsTemplate() : o({
7080
6948
  callback: e.saveAsTemplate
7081
6949
  });
7082
6950
  } } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)];
@@ -7091,18 +6959,18 @@ var Hn = function() {
7091
6959
  reminders: "data.reminders",
7092
6960
  name: "data.name"
7093
6961
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
7094
- }, An = [], Pn = /* @__PURE__ */ d(
7095
- Fn,
7096
- Hn,
7097
- An,
6962
+ }, Ni = [], ji = /* @__PURE__ */ d(
6963
+ Wi,
6964
+ qi,
6965
+ Ni,
7098
6966
  !1,
7099
6967
  null,
7100
6968
  null,
7101
6969
  null,
7102
6970
  null
7103
6971
  );
7104
- const En = Pn.exports;
7105
- const zn = {
6972
+ const Ki = ji.exports;
6973
+ const Yi = {
7106
6974
  name: "DocumentPostSendStep",
7107
6975
  mixins: [b],
7108
6976
  i18nOptions: {
@@ -7159,7 +7027,7 @@ const zn = {
7159
7027
  id: i,
7160
7028
  body: { status: "sent" },
7161
7029
  showMessage: !1
7162
- }), gt({ id: i })), t || setTimeout(() => this.close(), 2e3);
7030
+ }), Xe({ id: i })), t || setTimeout(() => this.close(), 2e3);
7163
7031
  },
7164
7032
  async onSend() {
7165
7033
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -7178,7 +7046,7 @@ const zn = {
7178
7046
  body: { isAccepted: !0 },
7179
7047
  checksum: a
7180
7048
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
7181
- Ct,
7049
+ et,
7182
7050
  {
7183
7051
  _document: this.document,
7184
7052
  fullScreen: this.modalHeight === "100%",
@@ -7187,12 +7055,12 @@ const zn = {
7187
7055
  // actions intended mirror public requests made in accept/bankId modals
7188
7056
  // defined here in order to keep it DRY and avoiding account module actions defined in answer modals
7189
7057
  senderActions: {
7190
- answer: async function({ body: s }) {
7058
+ answer: async function({ body: n }) {
7191
7059
  var o;
7192
7060
  return this.answerDocument({
7193
7061
  id: i,
7194
7062
  publicId: e.publicDocumentId,
7195
- body: s,
7063
+ body: n,
7196
7064
  checksum: (o = this.document._doc) == null ? void 0 : o.checksum
7197
7065
  });
7198
7066
  }.bind(this),
@@ -7211,8 +7079,8 @@ const zn = {
7211
7079
  },
7212
7080
  {
7213
7081
  cancel: () => {
7214
- var n;
7215
- return (n = this.onCancelFunc) == null ? void 0 : n.call(this);
7082
+ var s;
7083
+ return (s = this.onCancelFunc) == null ? void 0 : s.call(this);
7216
7084
  }
7217
7085
  }
7218
7086
  ), !0);
@@ -7222,25 +7090,25 @@ const zn = {
7222
7090
  }
7223
7091
  }
7224
7092
  };
7225
- var Zn = function() {
7093
+ var Qi = function() {
7226
7094
  var e = this, t = e._self._c;
7227
7095
  return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
7228
- }, On = [], Un = /* @__PURE__ */ d(
7229
- zn,
7230
- Zn,
7231
- On,
7096
+ }, Ji = [], Xi = /* @__PURE__ */ d(
7097
+ Yi,
7098
+ Qi,
7099
+ Ji,
7232
7100
  !1,
7233
7101
  null,
7234
7102
  "673cd86f",
7235
7103
  null,
7236
7104
  null
7237
7105
  );
7238
- const Rn = Un.exports;
7239
- A.use(ct);
7240
- const Gn = {
7106
+ const ea = Xi.exports;
7107
+ A.use(qe);
7108
+ const ta = {
7241
7109
  name: "DocForm",
7242
7110
  mixins: [
7243
- Ne([
7111
+ De([
7244
7112
  "closeFunc",
7245
7113
  "beforeSave",
7246
7114
  "beforeSend",
@@ -7261,9 +7129,9 @@ const Gn = {
7261
7129
  }
7262
7130
  },
7263
7131
  components: {
7264
- TemplateSelector: k2,
7265
- DocumentForm: En,
7266
- PostSend: Rn
7132
+ TemplateSelector: At,
7133
+ DocumentForm: Ki,
7134
+ PostSend: ea
7267
7135
  },
7268
7136
  props: {
7269
7137
  isNew: {
@@ -7284,7 +7152,7 @@ const Gn = {
7284
7152
  };
7285
7153
  },
7286
7154
  computed: {
7287
- ...je({
7155
+ ...Ve({
7288
7156
  company: "application/company",
7289
7157
  feature: "application/feature",
7290
7158
  can: "application/can",
@@ -7313,7 +7181,7 @@ const Gn = {
7313
7181
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
7314
7182
  },
7315
7183
  methods: {
7316
- ...Ke({
7184
+ ...Be({
7317
7185
  removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
7318
7186
  loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
7319
7187
  duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
@@ -7323,7 +7191,7 @@ const Gn = {
7323
7191
  async initDoc() {
7324
7192
  if (!this.rawDoc)
7325
7193
  throw new Error("Missing initiated form document");
7326
- this.document = new Q({
7194
+ this.document = new O({
7327
7195
  data: this.rawDoc,
7328
7196
  can: this.can,
7329
7197
  getters: this.$store.getters,
@@ -7331,8 +7199,8 @@ const Gn = {
7331
7199
  });
7332
7200
  },
7333
7201
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7334
- var n;
7335
- const a = U1({ ...this.rawDoc }, [
7202
+ var s;
7203
+ const a = Me({ ...this.rawDoc }, [
7336
7204
  "__tempId",
7337
7205
  "externalReferences",
7338
7206
  "subscriberCompanyUserIds",
@@ -7344,9 +7212,9 @@ const Gn = {
7344
7212
  _formData: a
7345
7213
  }) : await this.loadDocumentForm({
7346
7214
  templateId: i,
7347
- formData: t ? Ye(t, a) : null,
7215
+ formData: t ? Ie(t, a) : null,
7348
7216
  _formData: a
7349
- }), (n = a == null ? void 0 : a.data) != null && n.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
7217
+ }), (s = a == null ? void 0 : a.data) != null && s.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
7350
7218
  },
7351
7219
  setDocValue({ key: i, value: e }) {
7352
7220
  return this.setFormValue({ key: i, value: e });
@@ -7365,8 +7233,8 @@ const Gn = {
7365
7233
  if (!t)
7366
7234
  return;
7367
7235
  const a = this.docById(t);
7368
- let n;
7369
- i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : this.close();
7236
+ let s;
7237
+ i && (s = !!(a != null && a.senderClient) || this.isManualDelivery(a)), s ? (this.document = a, this.view = "postSend") : this.close();
7370
7238
  },
7371
7239
  close() {
7372
7240
  if (this.closeFunc)
@@ -7385,20 +7253,20 @@ const Gn = {
7385
7253
  }
7386
7254
  }
7387
7255
  };
7388
- var Wn = function() {
7256
+ var ia = function() {
7389
7257
  var e = this, t = e._self._c;
7390
7258
  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, "gallery-category": e.galleryCategory, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { 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.document.id ? null : e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7391
- }, qn = [], Nn = /* @__PURE__ */ d(
7392
- Gn,
7393
- Wn,
7394
- qn,
7259
+ }, aa = [], sa = /* @__PURE__ */ d(
7260
+ ta,
7261
+ ia,
7262
+ aa,
7395
7263
  !1,
7396
7264
  null,
7397
7265
  null,
7398
7266
  null,
7399
7267
  null
7400
7268
  );
7401
- const Ss = Nn.exports;
7269
+ const za = sa.exports;
7402
7270
  export {
7403
- Ss as default
7271
+ za as default
7404
7272
  };