@cling-se/widget 0.9.18 → 0.9.20

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 (130) hide show
  1. package/dist/{AddClientCallout-e8abe369.js → AddClientCallout-9619a0cd.js} +5 -5
  2. package/dist/{AnswerModal-09ffb221.js → AnswerModal-f1389947.js} +3 -3
  3. package/dist/{AttachmentItem-110f93f7.js → AttachmentItem-95fc684f.js} +3 -3
  4. package/dist/{BaseDatePicker-03ece6df.js → BaseDatePicker-4d9b61fd.js} +1 -1
  5. package/dist/{BaseInput-295abce2.js → BaseInput-84339b4c.js} +1 -1
  6. package/dist/{BaseUpload-7c1121f8.js → BaseUpload-066f809f.js} +2 -2
  7. package/dist/{BlockMedia-f95986a5.js → BlockMedia-50fb330d.js} +1 -1
  8. package/dist/{CCallout-6ff50025.js → CCallout-78e08a9d.js} +2 -2
  9. package/dist/{CDropdownItem-fa27c5e4.js → CDropdownItem-66b82296.js} +2 -1
  10. package/dist/{CField-855c1d0a.js → CField-ef95a1e3.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-5d538988.js → CSlider.vue_vue_type_style_index_0_lang-2d8796e1.js} +1 -1
  12. package/dist/{ClientAutocomplete-a569db77.js → ClientAutocomplete-9501cf84.js} +2 -2
  13. package/dist/{ClientModal-708de29c.js → ClientModal-067ecc75.js} +45 -38
  14. package/dist/{ColorPicker-eeac209c.js → ColorPicker-8cb1f27c.js} +1 -1
  15. package/dist/{CompanyModal-b59c2a9d.js → CompanyModal-983de11b.js} +3 -3
  16. package/dist/{ContentWrapper-b3353d9f.js → ContentWrapper-f7ddec71.js} +12 -12
  17. package/dist/{CoverBlockSettings-55e7a45b.js → CoverBlockSettings-9c9ee9b7.js} +8 -8
  18. package/dist/{DocAnswer-3292579d.js → DocAnswer-f1099b05.js} +4 -4
  19. package/dist/{DocForm-d39f62d7.js → DocForm-408eacc2.js} +633 -568
  20. package/dist/{DocFormSend-a9d52a13.js → DocFormSend-5dab1505.js} +39 -32
  21. package/dist/{DocLinks-dcc93a82.js → DocLinks-8e16606e.js} +2 -2
  22. package/dist/{DocModalBase-16e3129d.js → DocModalBase-7428da89.js} +1 -1
  23. package/dist/{DocPrint-6efe5f7e.js → DocPrint-54d3217e.js} +48 -29
  24. package/dist/{DocReceipt-fe1bb7da.js → DocReceipt-907da7e5.js} +1 -1
  25. package/dist/{DocSendReminder-f25c765c.js → DocSendReminder-f24cadff.js} +1 -1
  26. package/dist/{DocTextEditor-0a93ad72.js → DocTextEditor-24205e38.js} +8 -8
  27. package/dist/{DocTimeline-19a2d78f.js → DocTimeline-38d24961.js} +1 -1
  28. package/dist/{DocumentClient-66a913b6.js → DocumentClient-fe8c5bd9.js} +5 -5
  29. package/dist/{DocumentLayout-759a064d.js → DocumentLayout-e7b72468.js} +3 -3
  30. package/dist/{DocumentLogotype-a393c0be.js → DocumentLogotype-b22c2f09.js} +3 -3
  31. package/dist/{EmbedInput-1f9511d4.js → EmbedInput-19806a9e.js} +2 -2
  32. package/dist/{EmbedSettings-dab21536.js → EmbedSettings-c0cec374.js} +3 -3
  33. package/dist/{ErrorCallout-78e56929.js → ErrorCallout-a662ea20.js} +1 -1
  34. package/dist/{FilePreviewModal-ad52ec07.js → FilePreviewModal-01da22e5.js} +4 -4
  35. package/dist/{HeaderSettings-52bf0abe.js → HeaderSettings-a3531f64.js} +15 -15
  36. package/dist/{ImageSelectModal-710b1c98.js → ImageSelectModal-474d9d7a.js} +8 -8
  37. package/dist/{ImageUploadWrapper-e4ec2d95.js → ImageUploadWrapper-f40bec1d.js} +2 -2
  38. package/dist/{Index-fa4453cc.js → Index-02c3e9fa.js} +6 -6
  39. package/dist/{Index-f90de221.js → Index-19126146.js} +2 -2
  40. package/dist/{Index-36e4bf8c.js → Index-1b7e3d53.js} +4 -4
  41. package/dist/{Index-ce61e3e6.js → Index-1bfcccc4.js} +9 -9
  42. package/dist/{Index-e20ec508.js → Index-1de87c6e.js} +7 -7
  43. package/dist/{Index-d8a20b59.js → Index-32694d1d.js} +2 -2
  44. package/dist/{Index-8da208ee.js → Index-36b27618.js} +57 -52
  45. package/dist/{Index-ee78a0d7.js → Index-4cd7a2f2.js} +4 -4
  46. package/dist/{Index-912c9b2b.js → Index-50314a91.js} +4 -4
  47. package/dist/{Index-e59b8d01.js → Index-509da1b4.js} +9 -9
  48. package/dist/{Index-0a824c85.js → Index-52509ecc.js} +6 -6
  49. package/dist/{Index-aba31a5e.js → Index-56883ef4.js} +6 -6
  50. package/dist/{Index-59830840.js → Index-56944bc9.js} +4 -4
  51. package/dist/{Index-fbdf1476.js → Index-73032523.js} +1 -1
  52. package/dist/{Index-90e16f49.js → Index-73cb2f77.js} +13 -13
  53. package/dist/{Index-7d913167.js → Index-7c72d521.js} +2 -2
  54. package/dist/{Index-e9a8bb89.js → Index-87389ddb.js} +25 -25
  55. package/dist/{Index-33447fc6.js → Index-8929dd51.js} +5 -5
  56. package/dist/{Index-d34e5825.js → Index-8a61e9e6.js} +1 -1
  57. package/dist/{Index-0db8754f.js → Index-9e039c9b.js} +2 -2
  58. package/dist/{Index-ac1e43f2.js → Index-a8a68e5a.js} +7 -7
  59. package/dist/{Index-d98ab083.js → Index-af0f3e58.js} +4 -4
  60. package/dist/{Index-d10a939c.js → Index-b0bc65a3.js} +8 -8
  61. package/dist/{Index-352c9021.js → Index-c10669fe.js} +2 -2
  62. package/dist/{Index-4353a97c.js → Index-c49111c7.js} +4 -4
  63. package/dist/{Index-d86c5a75.js → Index-c8f9233b.js} +48 -47
  64. package/dist/{Index-f5c9987e.js → Index-cf4842b9.js} +2 -2
  65. package/dist/{Index-8225fee4.js → Index-d198ebd8.js} +2 -2
  66. package/dist/{Index-d20dca56.js → Index-d265d801.js} +4 -4
  67. package/dist/{Index-5b64fb7a.js → Index-e6330dff.js} +4 -4
  68. package/dist/{Index-3fe3326a.js → Index-f249ab5b.js} +2 -2
  69. package/dist/{Index-62c81443.js → Index-f9983a6a.js} +13 -13
  70. package/dist/{Index-688ba377.js → Index-fb7e5d20.js} +4 -4
  71. package/dist/{Index-6051d460.js → Index-fec9c623.js} +3 -3
  72. package/dist/{InputToggleRow-e4c9fb71.js → InputToggleRow-90cd84bb.js} +1 -1
  73. package/dist/{IsPremiumPreStep-e4caf2dd.js → IsPremiumPreStep-b154b6c5.js} +38 -31
  74. package/dist/{ManualPopover-d8269334.js → ManualPopover-d732ac07.js} +1 -1
  75. package/dist/{MediaWrapper-5b99c2b9.js → MediaWrapper-7a042a7f.js} +3 -3
  76. package/dist/{NotBindingText-27150bf7.js → NotBindingText-2c0a1b94.js} +2 -2
  77. package/dist/{PackageGroup-f6bbaea1.js → PackageGroup-cc422650.js} +13 -13
  78. package/dist/{PdfTerms-1b34c28a.js → PdfTerms-20c78c5b.js} +4 -4
  79. package/dist/{PdfViewer-fe405d8f.js → PdfViewer-f2026467.js} +5 -5
  80. package/dist/{PlainHtml-07b4461c.js → PlainHtml-f2b630f9.js} +1 -1
  81. package/dist/{PriceHeader-693a6414.js → PriceHeader-c9011e48.js} +12 -12
  82. package/dist/{SearchApi-9d26dde8.js → SearchApi-7b15f157.js} +2 -2
  83. package/dist/{Setup-ba2a9928.js → Setup-36945741.js} +1 -1
  84. package/dist/{TermsSettings-9aa52469.js → TermsSettings-36cbaf14.js} +6 -6
  85. package/dist/{ThemeColorRow-ef3ec593.js → ThemeColorRow-0b5c56fc.js} +3 -3
  86. package/dist/{ToggleBinding-ac3268f8.js → ToggleBinding-cc06dcef.js} +3 -3
  87. package/dist/{UploadModal-e8ef00fb.js → UploadModal-c61ec4e8.js} +3 -3
  88. package/dist/{VideoPlayerInput-9feb576c.js → VideoPlayerInput-91408653.js} +3 -3
  89. package/dist/{VideoPlayerSettings-2450b21c.js → VideoPlayerSettings-ae7e9175.js} +4 -4
  90. package/dist/{VideoSelectModal-f282ba52.js → VideoSelectModal-83b9e055.js} +7 -7
  91. package/dist/{answerDocumentMixin-59e29633.js → answerDocumentMixin-69fdcb8e.js} +3 -3
  92. package/dist/{cssMode-691cb247.js → cssMode-7d9ff98e.js} +7 -7
  93. package/dist/{focusDrawerMixin-91e8cb6b.js → focusDrawerMixin-ff6461a8.js} +1 -1
  94. package/dist/{formComponentsInstall-a371e037.js → formComponentsInstall-f4e2b7d5.js} +14 -13
  95. package/dist/{formDrawerState-db84952d.js → formDrawerState-aae83c3d.js} +1 -1
  96. package/dist/{formValidationMixin-699c04c8.js → formValidationMixin-cd15cf18.js} +1 -1
  97. package/dist/{freemarker2-369c7be7.js → freemarker2-9b942f4a.js} +7 -7
  98. package/dist/{handlebars-e69d309d.js → handlebars-ed9d2974.js} +7 -7
  99. package/dist/{html-b90b7472.js → html-f2889a37.js} +7 -7
  100. package/dist/{htmlMode-852798f7.js → htmlMode-37f68fda.js} +7 -7
  101. package/dist/{image-45637029.js → image-6862651d.js} +1 -1
  102. package/dist/{index-e42d306b.js → index-66f749c2.js} +4 -4
  103. package/dist/{index-03d51584.js → index-7f2e8b37.js} +4 -4
  104. package/dist/{index-60e5432a.js → index-8255de00.js} +8 -8
  105. package/dist/{index-ef653c95.js → index-a19a5c70.js} +27 -27
  106. package/dist/{index-68aa0619.js → index-a1f81228.js} +2 -2
  107. package/dist/{index-0f4dd31a.js → index-a44f193f.js} +1 -1
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +488 -488
  110. package/dist/{javascript-d936cb19.js → javascript-46a9739c.js} +8 -8
  111. package/dist/{jsonMode-082e4bd3.js → jsonMode-ab05190c.js} +7 -7
  112. package/dist/{liquid-461e97b3.js → liquid-60a5e8f4.js} +7 -7
  113. package/dist/{main-870410b4.js → main-1f937d87.js} +3724 -3650
  114. package/dist/mapFormMixin-8c09dab9.js +73 -0
  115. package/dist/{publicSenderState-973b902b.js → publicSenderState-73d241e0.js} +1 -1
  116. package/dist/{python-516db33c.js → python-2fc09c0f.js} +7 -7
  117. package/dist/{razor-7e80bafe.js → razor-01789f82.js} +7 -7
  118. package/dist/{simplebar.min-db10f993.js → simplebar.min-76317c3b.js} +1 -1
  119. package/dist/style.css +2 -2
  120. package/dist/{template-a0e45f2c.js → template-6422cbb1.js} +1 -1
  121. package/dist/{throttle-9dc46674.js → throttle-2e1b7f21.js} +2 -2
  122. package/dist/{tinycolor-17c54210.js → tinycolor-024fb881.js} +1 -1
  123. package/dist/{tippy.esm-e1516e3d.js → tippy.esm-d006e34e.js} +5 -5
  124. package/dist/{tsMode-dc7b755a.js → tsMode-bc82901a.js} +7 -7
  125. package/dist/{typescript-18787046.js → typescript-35063579.js} +7 -7
  126. package/dist/{utils-bc6b4fb5.js → utils-d8ab353e.js} +1 -1
  127. package/dist/{vuedraggable.umd-b951d1bb.js → vuedraggable.umd-8be16eb5.js} +1 -1
  128. package/dist/{xml-c6d75bf4.js → xml-a008072c.js} +7 -7
  129. package/package.json +1 -1
  130. package/dist/mapFormMixin-3e8412ac.js +0 -66
@@ -1,108 +1,108 @@
1
- import { aZ as pe, a_ as ue, a$ as U, b0 as me, b1 as W, b2 as q, b3 as he, b4 as fe, b5 as ge, b6 as Ce, j as ve, g as m, n as c, s as N, b as u, av as ye, c as f, C as j, b7 as xe, b8 as we, h as T, b9 as be, ba as _e, A as ke, bb as Le, bc as $e, aY as Se, bd as Te, N as d, a4 as h, aT as y, be as De, bf as Ve, bg as Be, bh as Me, D as Ie, bi as Fe, d as He, i as k, H as Ae, S as Pe, ap as Ee, ae as ze, bj as Ze, V as F, aV as K, aW as Y, I as A, bk as V, aX as Oe, bl as Ge, bm as M, r as Re, m as Ue, a as We, bn as qe } from "./main-870410b4.js";
1
+ import { aZ as me, a_ as he, a$ as W, b0 as fe, b1 as q, b2 as N, b3 as ge, b4 as Ce, b5 as ve, b6 as ye, j, g as m, n as c, s as K, b as u, av as xe, c as f, C as Y, b7 as we, b8 as be, h as D, b9 as _e, ba as ke, A as Le, bb as $e, bc as Se, aY as Te, bd as De, N as d, a5 as h, aT as y, be as Ve, bf as Be, bg as Me, bh as Ie, D as Fe, bi as He, d as Ae, i as L, H as Pe, S as Ee, ap as ze, Q as Ze, bj as Oe, V as H, aV as Q, aW as J, I as P, bk as B, aX as Re, bl as Ge, bm as I, r as Ue, m as We, a as qe, bn as Ne } from "./main-1f937d87.js";
2
2
  import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-ef653c95.js";
4
- import { v as I } from "./index-805c56e4.js";
5
- import { d as H, w as L } from "./CDropdownItem-fa27c5e4.js";
6
- import { a as $, I as b, b as Ne, c as je } from "./IsPremiumPreStep-e4caf2dd.js";
7
- import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as e1 } from "./DocumentLayout-759a064d.js";
8
- import { s as _ } from "./simplebar.min-db10f993.js";
9
- import { B as t1 } from "./BlockMedia-f95986a5.js";
10
- import { c as i1, g as a1 } from "./template-a0e45f2c.js";
11
- import { a as n1 } from "./tinycolor-17c54210.js";
12
- import { m as S } from "./mapFormMixin-3e8412ac.js";
13
- import { S as s1, C as Q, i as o1 } from "./formComponentsInstall-a371e037.js";
14
- import { f as l1 } from "./formValidationMixin-699c04c8.js";
15
- import { s as v } from "./formDrawerState-db84952d.js";
16
- import { F as J, d as r1 } from "./tippy.esm-e1516e3d.js";
17
- import { S as c1 } from "./CSlider.vue_vue_type_style_index_0_lang-5d538988.js";
18
- import { o as d1, d as p1 } from "./vuedraggable.umd-b951d1bb.js";
19
- import { s as u1 } from "./dom-962579a6.js";
20
- import { o as m1 } from "./index-0f4dd31a.js";
21
- import h1 from "./AnswerModal-09ffb221.js";
3
+ import "./index-a19a5c70.js";
4
+ import { v as F } from "./index-805c56e4.js";
5
+ import { d as A, w as $, t as je } from "./CDropdownItem-66b82296.js";
6
+ import { a as b, I as _, b as Ke, c as Ye } from "./IsPremiumPreStep-b154b6c5.js";
7
+ import { D as Qe, l as Je, g as Xe, W as et, b as tt, a as it } from "./DocumentLayout-e7b72468.js";
8
+ import { s as k } from "./simplebar.min-76317c3b.js";
9
+ import { B as at } from "./BlockMedia-50fb330d.js";
10
+ import { c as nt, g as st } from "./template-6422cbb1.js";
11
+ import { a as ot } from "./tinycolor-024fb881.js";
12
+ import { m as S } from "./mapFormMixin-8c09dab9.js";
13
+ import { S as lt, C as X, i as rt } from "./formComponentsInstall-f4e2b7d5.js";
14
+ import { f as ct } from "./formValidationMixin-cd15cf18.js";
15
+ import { s as v } from "./formDrawerState-aae83c3d.js";
16
+ import { F as ee, d as dt } from "./tippy.esm-d006e34e.js";
17
+ import { S as pt } from "./CSlider.vue_vue_type_style_index_0_lang-2d8796e1.js";
18
+ import { o as ut, d as mt } from "./vuedraggable.umd-8be16eb5.js";
19
+ import { s as ht } from "./dom-962579a6.js";
20
+ import { o as ft } from "./index-a44f193f.js";
21
+ import gt from "./AnswerModal-f1389947.js";
22
22
  import "./anime.es-e284c852.js";
23
- import "./image-45637029.js";
23
+ import "./image-6862651d.js";
24
24
  import "./color-71c20583.js";
25
- import "./BaseDatePicker-03ece6df.js";
26
- import "./ErrorCallout-78e56929.js";
27
- import "./AddClientCallout-e8abe369.js";
28
- import "./ClientAutocomplete-a569db77.js";
29
- import "./SearchApi-9d26dde8.js";
30
- import "./ClientModal-708de29c.js";
31
- import "./CCallout-6ff50025.js";
32
- import "./CField-855c1d0a.js";
25
+ import "./BaseDatePicker-4d9b61fd.js";
26
+ import "./ErrorCallout-a662ea20.js";
27
+ import "./AddClientCallout-9619a0cd.js";
28
+ import "./ClientAutocomplete-9501cf84.js";
29
+ import "./SearchApi-7b15f157.js";
30
+ import "./ClientModal-067ecc75.js";
31
+ import "./CCallout-78e08a9d.js";
32
+ import "./CField-ef95a1e3.js";
33
33
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
34
- import "./ColorPicker-eeac209c.js";
35
- var f1 = pe, g1 = ue, C1 = U;
36
- function v1(i, e, t) {
34
+ import "./ColorPicker-8cb1f27c.js";
35
+ var Ct = me, vt = he, yt = W;
36
+ function xt(i, e, t) {
37
37
  for (var a = -1, n = e.length, s = {}; ++a < n; ) {
38
- var o = e[a], l = f1(i, o);
39
- t(l, o) && g1(s, C1(o, i), l);
38
+ var o = e[a], l = Ct(i, o);
39
+ t(l, o) && vt(s, yt(o, i), l);
40
40
  }
41
41
  return s;
42
42
  }
43
- var y1 = v1;
44
- function x1(i, e) {
43
+ var wt = xt;
44
+ function bt(i, e) {
45
45
  return i != null && e in Object(i);
46
46
  }
47
- var w1 = x1, b1 = me, _1 = W, k1 = "[object Arguments]";
48
- function L1(i) {
49
- return _1(i) && b1(i) == k1;
47
+ var _t = bt, kt = fe, Lt = q, $t = "[object Arguments]";
48
+ function St(i) {
49
+ return Lt(i) && kt(i) == $t;
50
50
  }
51
- var $1 = L1, P = $1, S1 = W, X = Object.prototype, T1 = X.hasOwnProperty, D1 = X.propertyIsEnumerable, V1 = P(function() {
51
+ var Tt = St, E = Tt, Dt = q, te = Object.prototype, Vt = te.hasOwnProperty, Bt = te.propertyIsEnumerable, Mt = E(function() {
52
52
  return arguments;
53
- }()) ? P : function(i) {
54
- return S1(i) && T1.call(i, "callee") && !D1.call(i, "callee");
55
- }, ee = V1, B1 = 9007199254740991;
56
- function M1(i) {
57
- return typeof i == "number" && i > -1 && i % 1 == 0 && i <= B1;
53
+ }()) ? E : function(i) {
54
+ return Dt(i) && Vt.call(i, "callee") && !Bt.call(i, "callee");
55
+ }, ie = Mt, It = 9007199254740991;
56
+ function Ft(i) {
57
+ return typeof i == "number" && i > -1 && i % 1 == 0 && i <= It;
58
58
  }
59
- var I1 = M1, F1 = U, H1 = ee, A1 = q, P1 = he, E1 = I1, z1 = fe;
60
- function Z1(i, e, t) {
61
- e = F1(e, i);
59
+ var Ht = Ft, At = W, Pt = ie, Et = N, zt = ge, Zt = Ht, Ot = Ce;
60
+ function Rt(i, e, t) {
61
+ e = At(e, i);
62
62
  for (var a = -1, n = e.length, s = !1; ++a < n; ) {
63
- var o = z1(e[a]);
63
+ var o = Ot(e[a]);
64
64
  if (!(s = i != null && t(i, o)))
65
65
  break;
66
66
  i = i[o];
67
67
  }
68
- return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && E1(n) && P1(o, n) && (A1(i) || H1(i)));
68
+ return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Zt(n) && zt(o, n) && (Et(i) || Pt(i)));
69
69
  }
70
- var O1 = Z1, G1 = w1, R1 = O1;
71
- function U1(i, e) {
72
- return i != null && R1(i, e, G1);
70
+ var Gt = Rt, Ut = _t, Wt = Gt;
71
+ function qt(i, e) {
72
+ return i != null && Wt(i, e, Ut);
73
73
  }
74
- var W1 = U1, q1 = y1, N1 = W1;
75
- function j1(i, e) {
76
- return q1(i, e, function(t, a) {
77
- return N1(i, a);
74
+ var Nt = qt, jt = wt, Kt = Nt;
75
+ function Yt(i, e) {
76
+ return jt(i, e, function(t, a) {
77
+ return Kt(i, a);
78
78
  });
79
79
  }
80
- var K1 = j1;
81
- function Y1(i, e) {
80
+ var Qt = Yt;
81
+ function Jt(i, e) {
82
82
  for (var t = -1, a = e.length, n = i.length; ++t < a; )
83
83
  i[n + t] = e[t];
84
84
  return i;
85
85
  }
86
- var Q1 = Y1, E = ge, J1 = ee, X1 = q, z = E ? E.isConcatSpreadable : void 0;
87
- function et(i) {
88
- return X1(i) || J1(i) || !!(z && i && i[z]);
86
+ var Xt = Jt, z = ve, e1 = ie, t1 = N, Z = z ? z.isConcatSpreadable : void 0;
87
+ function i1(i) {
88
+ return t1(i) || e1(i) || !!(Z && i && i[Z]);
89
89
  }
90
- var tt = et, it = Q1, at = tt;
91
- function te(i, e, t, a, n) {
90
+ var a1 = i1, n1 = Xt, s1 = a1;
91
+ function ae(i, e, t, a, n) {
92
92
  var s = -1, o = i.length;
93
- for (t || (t = at), n || (n = []); ++s < o; ) {
93
+ for (t || (t = s1), n || (n = []); ++s < o; ) {
94
94
  var l = i[s];
95
- e > 0 && t(l) ? e > 1 ? te(l, e - 1, t, a, n) : it(n, l) : a || (n[n.length] = l);
95
+ e > 0 && t(l) ? e > 1 ? ae(l, e - 1, t, a, n) : n1(n, l) : a || (n[n.length] = l);
96
96
  }
97
97
  return n;
98
98
  }
99
- var nt = te, st = nt;
100
- function ot(i) {
99
+ var o1 = ae, l1 = o1;
100
+ function r1(i) {
101
101
  var e = i == null ? 0 : i.length;
102
- return e ? st(i, 1) : [];
102
+ return e ? l1(i, 1) : [];
103
103
  }
104
- var lt = ot;
105
- function rt(i, e, t) {
104
+ var c1 = r1;
105
+ function d1(i, e, t) {
106
106
  switch (t.length) {
107
107
  case 0:
108
108
  return i.call(e);
@@ -115,56 +115,56 @@ function rt(i, e, t) {
115
115
  }
116
116
  return i.apply(e, t);
117
117
  }
118
- var ct = rt, dt = ct, Z = Math.max;
119
- function pt(i, e, t) {
120
- return e = Z(e === void 0 ? i.length - 1 : e, 0), function() {
121
- for (var a = arguments, n = -1, s = Z(a.length - e, 0), o = Array(s); ++n < s; )
118
+ var p1 = d1, u1 = p1, O = Math.max;
119
+ function m1(i, e, t) {
120
+ return e = O(e === void 0 ? i.length - 1 : e, 0), function() {
121
+ for (var a = arguments, n = -1, s = O(a.length - e, 0), o = Array(s); ++n < s; )
122
122
  o[n] = a[e + n];
123
123
  n = -1;
124
124
  for (var l = Array(e + 1); ++n < e; )
125
125
  l[n] = a[n];
126
- return l[e] = t(o), dt(i, this, l);
126
+ return l[e] = t(o), u1(i, this, l);
127
127
  };
128
128
  }
129
- var ut = pt;
130
- function mt(i) {
129
+ var h1 = m1;
130
+ function f1(i) {
131
131
  return function() {
132
132
  return i;
133
133
  };
134
134
  }
135
- var ht = mt;
136
- function ft(i) {
135
+ var g1 = f1;
136
+ function C1(i) {
137
137
  return i;
138
138
  }
139
- var gt = ft, Ct = ht, O = Ce, vt = gt, yt = O ? function(i, e) {
140
- return O(i, "toString", {
139
+ var v1 = C1, y1 = g1, R = ye, x1 = v1, w1 = R ? function(i, e) {
140
+ return R(i, "toString", {
141
141
  configurable: !0,
142
142
  enumerable: !1,
143
- value: Ct(e),
143
+ value: y1(e),
144
144
  writable: !0
145
145
  });
146
- } : vt, xt = yt, wt = 800, bt = 16, _t = Date.now;
147
- function kt(i) {
146
+ } : x1, b1 = w1, _1 = 800, k1 = 16, L1 = Date.now;
147
+ function $1(i) {
148
148
  var e = 0, t = 0;
149
149
  return function() {
150
- var a = _t(), n = bt - (a - t);
150
+ var a = L1(), n = k1 - (a - t);
151
151
  if (t = a, n > 0) {
152
- if (++e >= wt)
152
+ if (++e >= _1)
153
153
  return arguments[0];
154
154
  } else
155
155
  e = 0;
156
156
  return i.apply(void 0, arguments);
157
157
  };
158
158
  }
159
- var Lt = kt, $t = xt, St = Lt, Tt = St($t), Dt = Tt, Vt = lt, Bt = ut, Mt = Dt;
160
- function It(i) {
161
- return Mt(Bt(i, void 0, Vt), i + "");
159
+ var S1 = $1, T1 = b1, D1 = S1, V1 = D1(T1), B1 = V1, M1 = c1, I1 = h1, F1 = B1;
160
+ function H1(i) {
161
+ return F1(I1(i, void 0, M1), i + "");
162
162
  }
163
- var Ft = It, Ht = K1, At = Ft, Pt = At(function(i, e) {
164
- return i == null ? {} : Ht(i, e);
165
- }), Et = Pt;
166
- const zt = /* @__PURE__ */ ve(Et);
167
- const Zt = {
163
+ var A1 = H1, P1 = Qt, E1 = A1, z1 = E1(function(i, e) {
164
+ return i == null ? {} : P1(i, e);
165
+ }), Z1 = z1;
166
+ const O1 = /* @__PURE__ */ j(Z1);
167
+ const R1 = {
168
168
  i18nOptions: {
169
169
  namespaces: "DocumentTemplateFormModal",
170
170
  messages: {
@@ -217,7 +217,7 @@ const Zt = {
217
217
  },
218
218
  validations: {
219
219
  name: {
220
- required: I.requiredIf((i) => !i.updateExistingDocTemplate)
220
+ required: F.requiredIf((i) => !i.updateExistingDocTemplate)
221
221
  }
222
222
  },
223
223
  computed: {
@@ -298,7 +298,7 @@ const Zt = {
298
298
  }
299
299
  }
300
300
  };
301
- var Ot = function() {
301
+ var G1 = function() {
302
302
  var e = this, t = e._self._c;
303
303
  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) {
304
304
  e.name = a;
@@ -307,18 +307,18 @@ var Ot = function() {
307
307
  }, 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) {
308
308
  e.keepClients = a;
309
309
  }, 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);
310
- }, Gt = [], Rt = /* @__PURE__ */ c(
311
- Zt,
312
- Ot,
313
- Gt,
310
+ }, U1 = [], W1 = /* @__PURE__ */ c(
311
+ R1,
312
+ G1,
313
+ U1,
314
314
  !1,
315
315
  null,
316
316
  "9f39f8ce",
317
317
  null,
318
318
  null
319
319
  );
320
- const ie = Rt.exports;
321
- function Ut(i, { availableProducts: e }) {
320
+ const ne = W1.exports;
321
+ function q1(i, { availableProducts: e }) {
322
322
  if (!i)
323
323
  throw new Error("Missing parameter templateId");
324
324
  const t = e, a = Object.keys(t).find((n) => {
@@ -331,10 +331,10 @@ function Ut(i, { availableProducts: e }) {
331
331
  });
332
332
  return a ? t[a] : null;
333
333
  }
334
- async function Wt(i) {
334
+ async function N1(i) {
335
335
  if (!i)
336
336
  throw new Error("Missing argument stripeProduct");
337
- const e = i == null ? void 0 : i.prices[0], { data: t } = await ye.createCheckoutSession({
337
+ const e = i == null ? void 0 : i.prices[0], { data: t } = await xe.createCheckoutSession({
338
338
  items: [
339
339
  {
340
340
  stripePriceStripeId: e.stripeId,
@@ -346,23 +346,23 @@ async function Wt(i) {
346
346
  }), { redirectUrl: a } = t;
347
347
  window.open(a, "_blank");
348
348
  }
349
- function ae(i, { availableProducts: e }) {
349
+ function se(i, { availableProducts: e }) {
350
350
  var n, s, o;
351
351
  let t = null;
352
- const a = Ut(i.templateId, { availableProducts: e });
352
+ const a = q1(i.templateId, { availableProducts: e });
353
353
  return a && (t = {
354
- price: N((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 }),
354
+ price: K((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 }),
355
355
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
356
- onBuy: async () => Wt(a)
356
+ onBuy: async () => N1(a)
357
357
  }), t;
358
358
  }
359
- const qt = {
359
+ const j1 = {
360
360
  name: "GalleryTemplateModal",
361
361
  components: {
362
- simplebar: _,
363
- DocumentLayout: Ke,
364
- IsPremium: $,
365
- IsPremiumPreStep: b
362
+ simplebar: k,
363
+ DocumentLayout: Qe,
364
+ IsPremium: b,
365
+ IsPremiumPreStep: _
366
366
  },
367
367
  props: {
368
368
  // Instance of template
@@ -429,7 +429,7 @@ const qt = {
429
429
  stripeProducts: "stripe/products"
430
430
  }),
431
431
  previewDocument() {
432
- const { data: i, defaultData: e } = this.template, t = new j({
432
+ const { data: i, defaultData: e } = this.template, t = new Y({
433
433
  data: {
434
434
  ...e,
435
435
  template: i,
@@ -442,7 +442,7 @@ const qt = {
442
442
  }
443
443
  },
444
444
  created() {
445
- this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = xe.on("event", async ({ type: i, action: e, data: t }) => {
445
+ this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = we.on("event", async ({ type: i, action: e, data: t }) => {
446
446
  var a;
447
447
  if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
448
448
  const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
@@ -453,7 +453,7 @@ const qt = {
453
453
  isVisibleApp: !0,
454
454
  includePurchaseInfo: !0
455
455
  }, o = await this.fetchGallery(s);
456
- this.privateProduct = ae(o[0], { availableProducts: this.stripeProducts });
456
+ this.privateProduct = se(o[0], { availableProducts: this.stripeProducts });
457
457
  }
458
458
  }));
459
459
  },
@@ -465,7 +465,7 @@ const qt = {
465
465
  const i = this.template.id;
466
466
  i || (this.templateStat = null);
467
467
  try {
468
- const { data: e } = await we.get(i);
468
+ const { data: e } = await be.get(i);
469
469
  this.templateStat = e;
470
470
  } catch {
471
471
  this.templateStat = null;
@@ -482,7 +482,7 @@ const qt = {
482
482
  }
483
483
  }
484
484
  };
485
- var Nt = function() {
485
+ var K1 = function() {
486
486
  var a;
487
487
  var e = this, t = e._self._c;
488
488
  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, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "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: {
@@ -501,17 +501,17 @@ var Nt = function() {
501
501
  } } }, [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()];
502
502
  } }], null, !0) })];
503
503
  } }]) })], 2)])]);
504
- }, jt = [], Kt = /* @__PURE__ */ c(
505
- qt,
506
- Nt,
507
- jt,
504
+ }, Y1 = [], Q1 = /* @__PURE__ */ c(
505
+ j1,
506
+ K1,
507
+ Y1,
508
508
  !1,
509
509
  null,
510
510
  "80ae04ae",
511
511
  null,
512
512
  null
513
513
  );
514
- const Yt = Kt.exports, Qt = {
514
+ const J1 = Q1.exports, X1 = {
515
515
  name: "GalleryLogic",
516
516
  i18nOptions: {
517
517
  namespaces: "GalleryLogic",
@@ -624,7 +624,7 @@ const Yt = Kt.exports, Qt = {
624
624
  }
625
625
  },
626
626
  beforeCreate() {
627
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ne);
627
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ke);
628
628
  },
629
629
  async created() {
630
630
  var e, t, a, n;
@@ -639,7 +639,7 @@ const Yt = Kt.exports, Qt = {
639
639
  const s = this.templateGalleryItems.find(({ id: o }) => o === i);
640
640
  this.selectGalleryItem(s);
641
641
  } catch (s) {
642
- T(s);
642
+ D(s);
643
643
  }
644
644
  },
645
645
  methods: {
@@ -657,13 +657,13 @@ const Yt = Kt.exports, Qt = {
657
657
  const e = await this.fetchGallery(i);
658
658
  this.templateGalleryItems = (e || []).map((t) => {
659
659
  if (this.canPurchase && t.isPurchasable) {
660
- const a = ae(t, { availableProducts: this.stripeProducts });
660
+ const a = se(t, { availableProducts: this.stripeProducts });
661
661
  a && (t.product = a);
662
662
  }
663
663
  return t;
664
664
  }), this.availableCategoryKeys = e.reduce((t, a) => [.../* @__PURE__ */ new Set([...t, ...a.categories])], []);
665
665
  } catch (e) {
666
- T(e);
666
+ D(e);
667
667
  } finally {
668
668
  this.isLoading = !1;
669
669
  }
@@ -676,7 +676,7 @@ const Yt = Kt.exports, Qt = {
676
676
  isVisibleApp: !0,
677
677
  includePurchaseInfo: !0
678
678
  }, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
679
- return a ? (be(a), new _e(a)) : null;
679
+ return a ? (_e(a), new ke(a)) : null;
680
680
  },
681
681
  onUseTemplate(i) {
682
682
  if (!i)
@@ -699,7 +699,7 @@ const Yt = Kt.exports, Qt = {
699
699
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
700
700
  };
701
701
  this.$modal.show(
702
- Yt,
702
+ J1,
703
703
  {
704
704
  template: i,
705
705
  fetchGallery: this.fetchGallery,
@@ -754,30 +754,30 @@ const Yt = Kt.exports, Qt = {
754
754
  selectGalleryItem: this.selectGalleryItem
755
755
  });
756
756
  }
757
- }, Jt = null, Xt = null;
758
- var e2 = /* @__PURE__ */ c(
759
- Qt,
760
- Jt,
761
- Xt,
757
+ }, e2 = null, t2 = null;
758
+ var i2 = /* @__PURE__ */ c(
759
+ X1,
760
+ e2,
761
+ t2,
762
762
  !1,
763
763
  null,
764
764
  null,
765
765
  null,
766
766
  null
767
767
  );
768
- const t2 = e2.exports;
769
- const i2 = {
768
+ const a2 = i2.exports;
769
+ const n2 = {
770
770
  name: "DocumentIcon",
771
- truncate: ke,
771
+ truncate: Le,
772
772
  inject: {
773
773
  components: {
774
774
  default: {
775
- BlockMedia: t1
775
+ BlockMedia: at
776
776
  }
777
777
  }
778
778
  }
779
779
  };
780
- var a2 = function(e, t) {
780
+ var s2 = function(e, t) {
781
781
  return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
782
782
  t.data.staticClass,
783
783
  t.data.class,
@@ -791,21 +791,21 @@ var a2 = function(e, t) {
791
791
  } } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
792
792
  backgroundImage: `url(${t.props.thumbnail})`
793
793
  } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
794
- }, n2 = [], s2 = /* @__PURE__ */ c(
795
- i2,
796
- a2,
794
+ }, o2 = [], l2 = /* @__PURE__ */ c(
797
795
  n2,
796
+ s2,
797
+ o2,
798
798
  !0,
799
799
  null,
800
800
  "7ebb1c9a",
801
801
  null,
802
802
  null
803
803
  );
804
- const o2 = s2.exports;
805
- const l2 = {
804
+ const r2 = l2.exports;
805
+ const c2 = {
806
806
  name: "HorizontalScroll",
807
807
  components: {
808
- Simplebar: _
808
+ Simplebar: k
809
809
  },
810
810
  data() {
811
811
  return {
@@ -849,7 +849,7 @@ const l2 = {
849
849
  }
850
850
  }
851
851
  };
852
- var r2 = function() {
852
+ var d2 = function() {
853
853
  var e = this, t = e._self._c;
854
854
  return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
855
855
  return e.go(-1);
@@ -862,18 +862,18 @@ var r2 = function() {
862
862
  return e.$emit("expand");
863
863
  } } })];
864
864
  })], 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)]);
865
- }, c2 = [], d2 = /* @__PURE__ */ c(
866
- l2,
867
- r2,
865
+ }, p2 = [], u2 = /* @__PURE__ */ c(
868
866
  c2,
867
+ d2,
868
+ p2,
869
869
  !1,
870
870
  null,
871
871
  "15f25c8e",
872
872
  null,
873
873
  null
874
874
  );
875
- const p2 = d2.exports;
876
- const u2 = {
875
+ const m2 = u2.exports;
876
+ const h2 = {
877
877
  name: "DocumentFormRecent",
878
878
  i18nOptions: {
879
879
  namespaces: "DocumentFormRecent",
@@ -889,8 +889,8 @@ const u2 = {
889
889
  }
890
890
  },
891
891
  components: {
892
- IsPremium: $,
893
- IsPremiumPreStep: b
892
+ IsPremium: b,
893
+ IsPremiumPreStep: _
894
894
  },
895
895
  data() {
896
896
  return {
@@ -919,7 +919,7 @@ const u2 = {
919
919
  async fetchDocuments(i) {
920
920
  const e = this.query ? 180 : 90, t = {
921
921
  createdAt: {
922
- $gte: this.$formatDate(Le(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
922
+ $gte: this.$formatDate($e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
923
923
  },
924
924
  // Only provide or if there is a search query to filter on
925
925
  ...this.query && {
@@ -934,7 +934,7 @@ const u2 = {
934
934
  }
935
935
  ]
936
936
  }
937
- }, { data: a } = await $e.getAll({
937
+ }, { data: a } = await Se.getAll({
938
938
  lean: !0,
939
939
  filter: encodeURIComponent(JSON.stringify(t)),
940
940
  fields: "clients,data.name,createdAt",
@@ -944,7 +944,7 @@ const u2 = {
944
944
  }), { items: n = [] } = a || {};
945
945
  return n;
946
946
  },
947
- onLoadDocuments: H(async function() {
947
+ onLoadDocuments: A(async function() {
948
948
  this.isLoading = !0, this.hasItems = !0;
949
949
  const e = await this.fetchDocuments();
950
950
  (!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
@@ -959,7 +959,7 @@ const u2 = {
959
959
  }
960
960
  }
961
961
  };
962
- var m2 = function() {
962
+ var f2 = function() {
963
963
  var e = this, t = e._self._c;
964
964
  return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { 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) {
965
965
  e.query = a;
@@ -986,18 +986,18 @@ var m2 = function() {
986
986
  }), 0)];
987
987
  } }], null, !0) })];
988
988
  } }]) })]], 2)]);
989
- }, h2 = [], f2 = /* @__PURE__ */ c(
990
- u2,
991
- m2,
989
+ }, g2 = [], C2 = /* @__PURE__ */ c(
992
990
  h2,
991
+ f2,
992
+ g2,
993
993
  !1,
994
994
  null,
995
995
  "6746edc1",
996
996
  null,
997
997
  null
998
998
  );
999
- const g2 = f2.exports;
1000
- const C2 = {
999
+ const v2 = C2.exports;
1000
+ const y2 = {
1001
1001
  i18nOptions: {
1002
1002
  namespaces: "TemplateSelector",
1003
1003
  messages: {
@@ -1040,13 +1040,13 @@ const C2 = {
1040
1040
  }
1041
1041
  },
1042
1042
  name: "TemplateSelector",
1043
- mixins: [L],
1043
+ mixins: [$],
1044
1044
  components: {
1045
- HorizontalScroll: p2,
1046
- DocumentIcon: o2,
1047
- DocumentRecent: g2,
1048
- GalleryLogic: t2,
1049
- IsPremiumPreStep: b
1045
+ HorizontalScroll: m2,
1046
+ DocumentIcon: r2,
1047
+ DocumentRecent: v2,
1048
+ GalleryLogic: a2,
1049
+ IsPremiumPreStep: _
1050
1050
  },
1051
1051
  props: {
1052
1052
  // Used for creating documents form project/client views
@@ -1157,16 +1157,16 @@ const C2 = {
1157
1157
  },
1158
1158
  async saveTemplate(i) {
1159
1159
  try {
1160
- const { data: e } = i, t = Se(e, ["_id", "id", "companyId", "isVisible"]);
1160
+ const { data: e } = i, t = Te(e, ["_id", "id", "companyId", "isVisible"]);
1161
1161
  return await this.createTemplate({ body: t }), !0;
1162
1162
  } catch (e) {
1163
- T(e);
1163
+ D(e);
1164
1164
  }
1165
1165
  return !1;
1166
1166
  },
1167
1167
  async openTemplateFormModal({ document: i = null, template: e = null }) {
1168
1168
  this.$modal.show(
1169
- ie,
1169
+ ne,
1170
1170
  {
1171
1171
  document: i,
1172
1172
  template: e,
@@ -1183,7 +1183,7 @@ const C2 = {
1183
1183
  );
1184
1184
  },
1185
1185
  async fetchGallery(i = {}) {
1186
- const { data: e } = await Te.get(i);
1186
+ const { data: e } = await De.get(i);
1187
1187
  return e;
1188
1188
  },
1189
1189
  canUseTemplate(i) {
@@ -1191,7 +1191,7 @@ const C2 = {
1191
1191
  }
1192
1192
  }
1193
1193
  };
1194
- var v2 = function() {
1194
+ var x2 = function() {
1195
1195
  var e = this, t = e._self._c;
1196
1196
  return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "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 }) {
1197
1197
  return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
@@ -1236,18 +1236,18 @@ var v2 = function() {
1236
1236
  } } }, [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()]);
1237
1237
  }), 1)], 1)];
1238
1238
  } }], null, !1, 4229824708) })] : 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)]);
1239
- }, y2 = [], x2 = /* @__PURE__ */ c(
1240
- C2,
1241
- v2,
1239
+ }, w2 = [], b2 = /* @__PURE__ */ c(
1242
1240
  y2,
1241
+ x2,
1242
+ w2,
1243
1243
  !1,
1244
1244
  null,
1245
1245
  "da389d44",
1246
1246
  null,
1247
1247
  null
1248
1248
  );
1249
- const w2 = x2.exports;
1250
- const b2 = (i) => {
1249
+ const _2 = b2.exports;
1250
+ const k2 = (i) => {
1251
1251
  const e = Array(2).fill().map(() => d());
1252
1252
  return [
1253
1253
  {
@@ -1269,7 +1269,7 @@ const b2 = (i) => {
1269
1269
  nodeId: e[1]
1270
1270
  }
1271
1271
  ];
1272
- }, _2 = (i, e = "en") => [
1272
+ }, L2 = (i, e = "en") => [
1273
1273
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
1274
1274
  {
1275
1275
  key: `files-${i}`,
@@ -1278,13 +1278,13 @@ const b2 = (i) => {
1278
1278
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
1279
1279
  }
1280
1280
  }
1281
- ], k2 = ({ document: i = null }) => {
1281
+ ], $2 = ({ document: i = null }) => {
1282
1282
  const e = d(), { language: t } = i || {};
1283
1283
  return {
1284
- readView: b2(e),
1285
- validation: _2(e, t)
1284
+ readView: k2(e),
1285
+ validation: L2(e, t)
1286
1286
  };
1287
- }, L2 = () => [
1287
+ }, S2 = () => [
1288
1288
  {
1289
1289
  itemId: "presentation",
1290
1290
  itemType: "presentation",
@@ -1292,11 +1292,11 @@ const b2 = (i) => {
1292
1292
  parentId: "0",
1293
1293
  nodeId: d()
1294
1294
  }
1295
- ], $2 = () => ({
1296
- readView: L2(),
1295
+ ], T2 = () => ({
1296
+ readView: S2(),
1297
1297
  validation: []
1298
1298
  // all relevant data is either within base doc or company settings etc
1299
- }), S2 = () => {
1299
+ }), D2 = () => {
1300
1300
  const i = Array(2).fill().map(() => d());
1301
1301
  return [
1302
1302
  {
@@ -1319,19 +1319,19 @@ const b2 = (i) => {
1319
1319
  // uniqid(),
1320
1320
  }
1321
1321
  ];
1322
- }, T2 = (i = "en") => [
1322
+ }, V2 = (i = "en") => [
1323
1323
  {
1324
1324
  key: "multiGroupPricing-title",
1325
1325
  anyOf: [{ type: "string" }, { type: "null" }],
1326
1326
  defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
1327
1327
  }
1328
- ], D2 = ({ document: i = null }) => {
1328
+ ], B2 = ({ document: i = null }) => {
1329
1329
  const { language: e } = i || {};
1330
1330
  return {
1331
- readView: S2(),
1332
- validation: T2(e)
1331
+ readView: D2(),
1332
+ validation: V2(e)
1333
1333
  };
1334
- }, V2 = () => [
1334
+ }, M2 = () => [
1335
1335
  {
1336
1336
  itemId: "terms",
1337
1337
  itemType: "termsDisclaimer",
@@ -1349,7 +1349,7 @@ const b2 = (i) => {
1349
1349
  parentId: "0",
1350
1350
  nodeId: d()
1351
1351
  }
1352
- ], B2 = () => [
1352
+ ], I2 = () => [
1353
1353
  {
1354
1354
  key: "terms",
1355
1355
  anyOf: [
@@ -1357,10 +1357,10 @@ const b2 = (i) => {
1357
1357
  { type: "null" }
1358
1358
  ]
1359
1359
  }
1360
- ], M2 = () => ({
1361
- readView: V2(),
1362
- validation: B2()
1363
- }), I2 = () => {
1360
+ ], F2 = () => ({
1361
+ readView: M2(),
1362
+ validation: I2()
1363
+ }), H2 = () => {
1364
1364
  const i = Array(5).fill().map(() => d());
1365
1365
  return [
1366
1366
  {
@@ -1409,7 +1409,7 @@ const b2 = (i) => {
1409
1409
  nodeId: i[4]
1410
1410
  }
1411
1411
  ];
1412
- }, F2 = () => ({
1412
+ }, A2 = () => ({
1413
1413
  clients: [{
1414
1414
  name: "Pernilla P.",
1415
1415
  email: "pernilla@mail.se",
@@ -1419,20 +1419,20 @@ const b2 = (i) => {
1419
1419
  deliveryTypes: ["email"],
1420
1420
  answerMethod: { accept: "signature", deny: "button" }
1421
1421
  }]
1422
- }), H2 = (i = "en") => [
1422
+ }), P2 = (i = "en") => [
1423
1423
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
1424
1424
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
1425
1425
  { key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
1426
- ], A2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1426
+ ], E2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1427
1427
  const { language: a } = e || {};
1428
1428
  let n = null;
1429
- return typeof t == "function" ? n = t() : i && (n = F2()), {
1430
- readView: I2(),
1431
- validation: H2(a),
1429
+ return typeof t == "function" ? n = t() : i && (n = A2()), {
1430
+ readView: H2(),
1431
+ validation: P2(a),
1432
1432
  // Client / company will for now always exist on doc and in validation
1433
1433
  ...n && { data: n }
1434
1434
  };
1435
- }, P2 = (i) => {
1435
+ }, z2 = (i) => {
1436
1436
  const e = Array(3).fill().map(() => d());
1437
1437
  return [
1438
1438
  {
@@ -1461,7 +1461,7 @@ const b2 = (i) => {
1461
1461
  nodeId: e[2]
1462
1462
  }
1463
1463
  ];
1464
- }, E2 = (i) => [
1464
+ }, Z2 = (i) => [
1465
1465
  {
1466
1466
  key: `estimatedTimeComplete-${i}`,
1467
1467
  type: "object",
@@ -1482,20 +1482,20 @@ const b2 = (i) => {
1482
1482
  }
1483
1483
  }
1484
1484
  }
1485
- ], z2 = (i) => ({
1485
+ ], O2 = (i) => ({
1486
1486
  [`estimatedTimeComplete-${i}`]: {
1487
1487
  value: 4,
1488
1488
  unitType: "hour"
1489
1489
  }
1490
- }), Z2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1490
+ }), R2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1491
1491
  const t = d();
1492
1492
  let a = null;
1493
- return typeof e == "function" ? a = e(t) : i && (a = z2(t)), {
1494
- readView: P2(t),
1495
- validation: E2(t),
1493
+ return typeof e == "function" ? a = e(t) : i && (a = O2(t)), {
1494
+ readView: z2(t),
1495
+ validation: Z2(t),
1496
1496
  ...a && { data: a }
1497
1497
  };
1498
- }, O2 = () => {
1498
+ }, G2 = () => {
1499
1499
  const i = Array(3).fill().map(() => d());
1500
1500
  return [
1501
1501
  {
@@ -1529,7 +1529,7 @@ const b2 = (i) => {
1529
1529
  nodeId: i[2]
1530
1530
  }
1531
1531
  ];
1532
- }, G2 = () => [
1532
+ }, U2 = () => [
1533
1533
  {
1534
1534
  key: "estimatedWorkDates",
1535
1535
  type: "object",
@@ -1538,10 +1538,10 @@ const b2 = (i) => {
1538
1538
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
1539
1539
  }
1540
1540
  }
1541
- ], R2 = () => ({
1542
- readView: O2(),
1543
- validation: G2()
1544
- }), U2 = () => {
1541
+ ], W2 = () => ({
1542
+ readView: G2(),
1543
+ validation: U2()
1544
+ }), q2 = () => {
1545
1545
  const i = Array(5).fill().map(() => d());
1546
1546
  return [
1547
1547
  {
@@ -1607,7 +1607,7 @@ const b2 = (i) => {
1607
1607
  nodeId: i[4]
1608
1608
  }
1609
1609
  ];
1610
- }, W2 = () => [
1610
+ }, N2 = () => [
1611
1611
  {
1612
1612
  key: "extraWorkConstruction",
1613
1613
  extraWorkConstruction: {
@@ -1631,11 +1631,11 @@ const b2 = (i) => {
1631
1631
  }
1632
1632
  }
1633
1633
  }
1634
- ], q2 = () => ({
1635
- readView: U2(),
1636
- validation: W2()
1634
+ ], j2 = () => ({
1635
+ readView: q2(),
1636
+ validation: N2()
1637
1637
  // Client / company will for now always exist on doc and in validation
1638
- }), N2 = () => {
1638
+ }), K2 = () => {
1639
1639
  const i = Array(3).fill().map(() => d());
1640
1640
  return [
1641
1641
  {
@@ -1675,7 +1675,7 @@ const b2 = (i) => {
1675
1675
  nodeId: i[2]
1676
1676
  }
1677
1677
  ];
1678
- }, j2 = () => [
1678
+ }, Y2 = () => [
1679
1679
  {
1680
1680
  key: "extraWorkTimeImpact",
1681
1681
  anyOf: [
@@ -1699,10 +1699,10 @@ const b2 = (i) => {
1699
1699
  }
1700
1700
  ]
1701
1701
  }
1702
- ], K2 = () => ({
1703
- readView: N2(),
1704
- validation: j2()
1705
- }), Y2 = () => {
1702
+ ], Q2 = () => ({
1703
+ readView: K2(),
1704
+ validation: Y2()
1705
+ }), J2 = () => {
1706
1706
  const i = Array(5).fill().map(() => d());
1707
1707
  return [
1708
1708
  {
@@ -1755,13 +1755,13 @@ const b2 = (i) => {
1755
1755
  nodeId: i[4]
1756
1756
  }
1757
1757
  ];
1758
- }, Q2 = () => [
1758
+ }, X2 = () => [
1759
1759
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
1760
1760
  { key: "notBinding", type: "boolean" }
1761
- ], J2 = () => ({
1762
- readView: Y2(),
1763
- validation: Q2()
1764
- }), X2 = (i) => {
1761
+ ], ei = () => ({
1762
+ readView: J2(),
1763
+ validation: X2()
1764
+ }), ti = (i) => {
1765
1765
  const e = Array(2).fill().map(() => d());
1766
1766
  return [
1767
1767
  {
@@ -1783,22 +1783,22 @@ const b2 = (i) => {
1783
1783
  nodeId: e[1]
1784
1784
  }
1785
1785
  ];
1786
- }, ei = (i) => [
1786
+ }, ii = (i) => [
1787
1787
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
1788
1788
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
1789
- ], ti = (i) => ({
1789
+ ], ai = (i) => ({
1790
1790
  [`data.title-${i}`]: "My custom text",
1791
1791
  [`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>"
1792
- }), ii = ({ includeMockData: i = !1, contentData: e = null }) => {
1792
+ }), ni = ({ includeMockData: i = !1, contentData: e = null }) => {
1793
1793
  const t = d();
1794
1794
  let a = null;
1795
- return typeof e == "function" ? a = e(t) : i && (a = ti(t)), {
1796
- readView: X2(t),
1797
- validation: ei(t),
1795
+ return typeof e == "function" ? a = e(t) : i && (a = ai(t)), {
1796
+ readView: ti(t),
1797
+ validation: ii(t),
1798
1798
  ...a && { data: a },
1799
1799
  onAddFnName: "conditionalOnAdd"
1800
1800
  };
1801
- }, ai = (i) => [
1801
+ }, si = (i) => [
1802
1802
  {
1803
1803
  itemId: "coverBlock",
1804
1804
  itemType: "coverBlock",
@@ -1808,7 +1808,7 @@ const b2 = (i) => {
1808
1808
  parentId: "0",
1809
1809
  nodeId: d()
1810
1810
  }
1811
- ], ni = (i, e = "en") => [
1811
+ ], oi = (i, e = "en") => [
1812
1812
  {
1813
1813
  key: `coverBlock-${i}`,
1814
1814
  defaultValue: {
@@ -1825,7 +1825,7 @@ const b2 = (i) => {
1825
1825
  },
1826
1826
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
1827
1827
  }
1828
- ], si = (i) => ({
1828
+ ], li = (i) => ({
1829
1829
  [`data.coverBlock-${i}`]: {
1830
1830
  text: "<h1>We know communication</h1>",
1831
1831
  cover: {
@@ -1835,15 +1835,15 @@ const b2 = (i) => {
1835
1835
  blur: 0
1836
1836
  }
1837
1837
  }
1838
- }), oi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1838
+ }), ri = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1839
1839
  const a = d(), { language: n } = e || {};
1840
1840
  let s = null;
1841
- return typeof t == "function" ? s = t(a) : i && (s = si(a)), {
1842
- readView: ai(a),
1843
- validation: ni(a, n),
1841
+ return typeof t == "function" ? s = t(a) : i && (s = li(a)), {
1842
+ readView: si(a),
1843
+ validation: oi(a, n),
1844
1844
  ...s && { data: s }
1845
1845
  };
1846
- }, li = ({ language: i = "en" } = {}) => {
1846
+ }, ci = ({ language: i = "en" } = {}) => {
1847
1847
  const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
1848
1848
  lng: i
1849
1849
  });
@@ -1988,7 +1988,7 @@ const b2 = (i) => {
1988
1988
  })
1989
1989
  }
1990
1990
  ];
1991
- }, ri = (i) => [
1991
+ }, di = (i) => [
1992
1992
  {
1993
1993
  itemId: `header-${i}`,
1994
1994
  itemType: "header",
@@ -1998,7 +1998,7 @@ const b2 = (i) => {
1998
1998
  parentId: "0",
1999
1999
  nodeId: d()
2000
2000
  }
2001
- ], ci = (i, e = null) => {
2001
+ ], pi = (i, e = null) => {
2002
2002
  const {
2003
2003
  language: t = "en",
2004
2004
  name: a = "",
@@ -2009,7 +2009,7 @@ const b2 = (i) => {
2009
2009
  background: o,
2010
2010
  priceSummaryBackground: l,
2011
2011
  backgroundFilter: r
2012
- } = n || {}, p = l || "hsl(228, 52%, 18%)", C = n1.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2012
+ } = n || {}, p = l || "hsl(228, 52%, 18%)", C = ot.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2013
2013
  return [
2014
2014
  {
2015
2015
  key: `header-${i}`,
@@ -2050,7 +2050,7 @@ const b2 = (i) => {
2050
2050
  }
2051
2051
  }
2052
2052
  ];
2053
- }, di = (i) => ({
2053
+ }, ui = (i) => ({
2054
2054
  [`data.header-${i}`]: {
2055
2055
  layout: "vertical",
2056
2056
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -2080,15 +2080,15 @@ const b2 = (i) => {
2080
2080
  }
2081
2081
  ]
2082
2082
  }
2083
- }), pi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2083
+ }), mi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2084
2084
  const a = d();
2085
2085
  let n = null;
2086
- return typeof t == "function" ? n = t(a) : i && (n = di(a)), {
2087
- readView: ri(a),
2088
- validation: ci(a, e),
2086
+ return typeof t == "function" ? n = t(a) : i && (n = ui(a)), {
2087
+ readView: di(a),
2088
+ validation: pi(a, e),
2089
2089
  ...n && { data: n }
2090
2090
  };
2091
- }, ui = ({ language: i = "en" } = {}) => {
2091
+ }, hi = ({ language: i = "en" } = {}) => {
2092
2092
  const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
2093
2093
  lng: i,
2094
2094
  interpolation: { prefix: "__", suffix: "__" }
@@ -2388,7 +2388,7 @@ h.loadOptions({
2388
2388
  }
2389
2389
  }
2390
2390
  });
2391
- const mi = (i) => {
2391
+ const fi = (i) => {
2392
2392
  const e = Array(2).fill().map(() => d());
2393
2393
  return [
2394
2394
  {
@@ -2413,7 +2413,7 @@ const mi = (i) => {
2413
2413
  nodeId: e[1]
2414
2414
  }
2415
2415
  ];
2416
- }, hi = (i, e = "en") => [
2416
+ }, gi = (i, e = "en") => [
2417
2417
  {
2418
2418
  key: `packageGroups.${i}`,
2419
2419
  validationKey: "packageGroups",
@@ -2433,11 +2433,11 @@ const mi = (i) => {
2433
2433
  },
2434
2434
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
2435
2435
  }
2436
- ], fi = () => null, gi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2436
+ ], Ci = () => null, vi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2437
2437
  const a = d(), { language: n } = e || {};
2438
2438
  let s = null;
2439
- typeof t == "function" ? s = t(a) : i && (s = fi());
2440
- const o = mi(a), l = hi(a, n);
2439
+ typeof t == "function" ? s = t(a) : i && (s = Ci());
2440
+ const o = fi(a), l = gi(a, n);
2441
2441
  return {
2442
2442
  readView: o,
2443
2443
  validation: l,
@@ -2529,7 +2529,7 @@ h.loadOptions({
2529
2529
  }
2530
2530
  }
2531
2531
  });
2532
- const Ci = ({
2532
+ const yi = ({
2533
2533
  language: i = "en",
2534
2534
  currency: e = "USD",
2535
2535
  _getters: t,
@@ -2886,7 +2886,7 @@ const Ci = ({
2886
2886
  }
2887
2887
  }
2888
2888
  ];
2889
- }, vi = (i) => [
2889
+ }, xi = (i) => [
2890
2890
  {
2891
2891
  itemId: "embed",
2892
2892
  itemType: "embed",
@@ -2900,7 +2900,7 @@ const Ci = ({
2900
2900
  parentId: "0",
2901
2901
  nodeId: d()
2902
2902
  }
2903
- ], yi = (i) => [
2903
+ ], wi = (i) => [
2904
2904
  {
2905
2905
  key: `embed-${i}`,
2906
2906
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2909,12 +2909,12 @@ const Ci = ({
2909
2909
  size: "small"
2910
2910
  }
2911
2911
  }
2912
- ], xi = () => null, wi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2912
+ ], bi = () => null, _i = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2913
2913
  const a = d();
2914
2914
  let n = null;
2915
- return typeof t == "function" ? n = t(a) : i && (n = xi()), {
2916
- readView: vi(a),
2917
- validation: yi(a),
2915
+ return typeof t == "function" ? n = t(a) : i && (n = bi()), {
2916
+ readView: xi(a),
2917
+ validation: wi(a),
2918
2918
  ...n && { data: n }
2919
2919
  };
2920
2920
  };
@@ -2929,7 +2929,7 @@ h.loadOptions({
2929
2929
  }
2930
2930
  }
2931
2931
  });
2932
- const bi = ({ language: i = "en" } = {}) => [
2932
+ const ki = ({ language: i = "en" } = {}) => [
2933
2933
  {
2934
2934
  previewUrl: `
2935
2935
  <div style="position: relative;">
@@ -3221,7 +3221,7 @@ const bi = ({ language: i = "en" } = {}) => [
3221
3221
  }
3222
3222
  })
3223
3223
  }
3224
- ], _i = (i) => [
3224
+ ], Li = (i) => [
3225
3225
  {
3226
3226
  itemId: "videoPlayer",
3227
3227
  itemType: "videoPlayer",
@@ -3234,7 +3234,7 @@ const bi = ({ language: i = "en" } = {}) => [
3234
3234
  parentId: "0",
3235
3235
  nodeId: d()
3236
3236
  }
3237
- ], ki = (i) => [
3237
+ ], $i = (i) => [
3238
3238
  {
3239
3239
  key: `video-${i}`,
3240
3240
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -3245,7 +3245,7 @@ const bi = ({ language: i = "en" } = {}) => [
3245
3245
  }
3246
3246
  }
3247
3247
  }
3248
- ], Li = (i) => ({
3248
+ ], Si = (i) => ({
3249
3249
  [`data.video-${i}`]: {
3250
3250
  size: "small",
3251
3251
  video: {
@@ -3254,15 +3254,15 @@ const bi = ({ language: i = "en" } = {}) => [
3254
3254
  id: "166JEb6qkr4"
3255
3255
  }
3256
3256
  }
3257
- }), $i = ({ includeMockData: i = !1, contentData: e = null }) => {
3257
+ }), Ti = ({ includeMockData: i = !1, contentData: e = null }) => {
3258
3258
  const t = d();
3259
3259
  let a = null;
3260
- return typeof e == "function" ? a = e(t) : i && (a = Li(t)), {
3261
- readView: _i(t),
3262
- validation: ki(t),
3260
+ return typeof e == "function" ? a = e(t) : i && (a = Si(t)), {
3261
+ readView: Li(t),
3262
+ validation: $i(t),
3263
3263
  ...a && { data: a }
3264
3264
  };
3265
- }, Si = ({ language: i = "en" } = {}) => [
3265
+ }, Di = ({ language: i = "en" } = {}) => [
3266
3266
  {
3267
3267
  previewUrl: `
3268
3268
  <div style="position: relative;">
@@ -3464,34 +3464,34 @@ const bi = ({ language: i = "en" } = {}) => [
3464
3464
  })
3465
3465
  }
3466
3466
  ], G = {
3467
- titleAndText2: ii,
3468
- attachments2: k2,
3469
- pdf: De,
3470
- packageGroup: gi,
3471
- multiGroupPricing: D2,
3472
- coverBlock: oi,
3473
- videoPlayer: $i,
3474
- embed: wi,
3475
- header: pi,
3476
- answer: Ve,
3477
- terms: M2,
3478
- parties: A2,
3479
- custom: a1,
3467
+ titleAndText2: ni,
3468
+ attachments2: $2,
3469
+ pdf: Ve,
3470
+ packageGroup: vi,
3471
+ multiGroupPricing: B2,
3472
+ coverBlock: ri,
3473
+ videoPlayer: Ti,
3474
+ embed: _i,
3475
+ header: mi,
3476
+ answer: Be,
3477
+ terms: F2,
3478
+ parties: E2,
3479
+ custom: st,
3480
3480
  // legacy
3481
- presentation: $2,
3482
- estimatedTimeCompleted: Z2,
3483
- estimatedWorkStartAndEndAtText: R2,
3484
- extraWorkConstructionPricingList: q2,
3485
- extraWorkTimeImpactText: K2,
3486
- notBinding: J2
3487
- }, R = {
3488
- coverBlock: li,
3489
- header: ui,
3490
- packageGroup: Ci,
3491
- embed: bi,
3492
- videoPlayer: Si,
3493
- custom: i1
3494
- }, Ti = {
3481
+ presentation: T2,
3482
+ estimatedTimeCompleted: R2,
3483
+ estimatedWorkStartAndEndAtText: W2,
3484
+ extraWorkConstructionPricingList: j2,
3485
+ extraWorkTimeImpactText: Q2,
3486
+ notBinding: ei
3487
+ }, U = {
3488
+ coverBlock: ci,
3489
+ header: hi,
3490
+ packageGroup: yi,
3491
+ embed: ki,
3492
+ videoPlayer: Di,
3493
+ custom: nt
3494
+ }, Vi = {
3495
3495
  name: "AddBlock",
3496
3496
  props: {
3497
3497
  set: {
@@ -3505,29 +3505,29 @@ const bi = ({ language: i = "en" } = {}) => [
3505
3505
  },
3506
3506
  render() {
3507
3507
  return this.$scopedSlots.default({
3508
- addBlock: (i) => Be({
3508
+ addBlock: (i) => Me({
3509
3509
  ...i,
3510
3510
  set: this.set,
3511
3511
  tplGenerators: G,
3512
3512
  includeMockData: this.includeMockData,
3513
3513
  emit: (...e) => this.$emit(...e)
3514
3514
  }),
3515
- getBlockPayload: (i) => Me(i, this.set, G, this.includeMockdata)
3515
+ getBlockPayload: (i) => Ie(i, this.set, G, this.includeMockdata)
3516
3516
  });
3517
3517
  }
3518
- }, Di = null, Vi = null;
3519
- var Bi = /* @__PURE__ */ c(
3520
- Ti,
3521
- Di,
3518
+ }, Bi = null, Mi = null;
3519
+ var Ii = /* @__PURE__ */ c(
3522
3520
  Vi,
3521
+ Bi,
3522
+ Mi,
3523
3523
  !1,
3524
3524
  null,
3525
3525
  null,
3526
3526
  null,
3527
3527
  null
3528
3528
  );
3529
- const ne = Bi.exports;
3530
- const Mi = {
3529
+ const oe = Ii.exports;
3530
+ const Fi = {
3531
3531
  name: "Drawer",
3532
3532
  props: {
3533
3533
  value: {
@@ -3570,7 +3570,7 @@ const Mi = {
3570
3570
  }
3571
3571
  }
3572
3572
  };
3573
- var Ii = function() {
3573
+ var Hi = function() {
3574
3574
  var e = this, t = e._self._c;
3575
3575
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
3576
3576
  zIndex: e.zIndex
@@ -3586,18 +3586,18 @@ var Ii = function() {
3586
3586
  boxShadow: e.boxShadow,
3587
3587
  ...e.contentStyle
3588
3588
  } }, [e._t("default")], 2)]) : e._e()])], 1);
3589
- }, Fi = [], Hi = /* @__PURE__ */ c(
3590
- Mi,
3591
- Ii,
3589
+ }, Ai = [], Pi = /* @__PURE__ */ c(
3592
3590
  Fi,
3591
+ Hi,
3592
+ Ai,
3593
3593
  !1,
3594
3594
  null,
3595
3595
  "3cb13e4e",
3596
3596
  null,
3597
3597
  null
3598
3598
  );
3599
- const se = Hi.exports;
3600
- const Ai = {
3599
+ const le = Pi.exports;
3600
+ const Ei = {
3601
3601
  name: "DocumentSend",
3602
3602
  i18nOptions: {
3603
3603
  namespaces: "documentSend",
@@ -3621,21 +3621,21 @@ const Ai = {
3621
3621
  }
3622
3622
  },
3623
3623
  components: {
3624
- AddBlock: ne,
3625
- Drawer: se,
3626
- SendForm: s1,
3627
- CCheckbox: Ie,
3628
- BaseIcon: Fe,
3629
- CButton: He,
3630
- IsPremium: $,
3631
- IsPremiumPreStep: b
3624
+ AddBlock: oe,
3625
+ Drawer: le,
3626
+ SendForm: lt,
3627
+ CCheckbox: Fe,
3628
+ BaseIcon: He,
3629
+ CButton: Ae,
3630
+ IsPremium: b,
3631
+ IsPremiumPreStep: _
3632
3632
  },
3633
3633
  mixins: [
3634
3634
  S([], {
3635
3635
  useEmit: !1,
3636
3636
  setFnName: "setFormValue"
3637
3637
  }),
3638
- L
3638
+ $
3639
3639
  ],
3640
3640
  props: {
3641
3641
  setFormValue: {
@@ -3718,7 +3718,7 @@ const Ai = {
3718
3718
  }
3719
3719
  }
3720
3720
  };
3721
- var Pi = function() {
3721
+ var zi = function() {
3722
3722
  var e = this, t = e._self._c;
3723
3723
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
3724
3724
  e.isOpen = a;
@@ -3737,17 +3737,17 @@ var Pi = function() {
3737
3737
  }, 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)];
3738
3738
  } }], null, !0) })];
3739
3739
  } }], null, !1, 763192116) })], 1)], 1)], 1)]) : e._e();
3740
- }, Ei = [], zi = /* @__PURE__ */ c(
3741
- Ai,
3742
- Pi,
3740
+ }, Zi = [], Oi = /* @__PURE__ */ c(
3743
3741
  Ei,
3742
+ zi,
3743
+ Zi,
3744
3744
  !1,
3745
3745
  null,
3746
3746
  "56ed9100",
3747
3747
  null,
3748
3748
  null
3749
3749
  );
3750
- const Zi = zi.exports, Oi = {
3750
+ const Ri = Oi.exports, Gi = {
3751
3751
  name: "Draggable",
3752
3752
  data() {
3753
3753
  return {
@@ -3779,21 +3779,21 @@ const Zi = zi.exports, Oi = {
3779
3779
  dragMousedown: this.onDragMouseDown
3780
3780
  });
3781
3781
  }
3782
- }, Gi = null, Ri = null;
3783
- var Ui = /* @__PURE__ */ c(
3784
- Oi,
3782
+ }, Ui = null, Wi = null;
3783
+ var qi = /* @__PURE__ */ c(
3785
3784
  Gi,
3786
- Ri,
3785
+ Ui,
3786
+ Wi,
3787
3787
  !1,
3788
3788
  null,
3789
3789
  null,
3790
3790
  null,
3791
3791
  null
3792
3792
  );
3793
- const Wi = Ui.exports;
3794
- const qi = {
3793
+ const Ni = qi.exports;
3794
+ const ji = {
3795
3795
  components: {
3796
- Draggable: Wi
3796
+ Draggable: Ni
3797
3797
  },
3798
3798
  props: {
3799
3799
  offset: {
@@ -3806,7 +3806,7 @@ const qi = {
3806
3806
  }
3807
3807
  }
3808
3808
  };
3809
- var Ni = function() {
3809
+ var Ki = function() {
3810
3810
  var e = this, t = e._self._c;
3811
3811
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
3812
3812
  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: {
@@ -3816,26 +3816,26 @@ var Ni = function() {
3816
3816
  return e.$emit("close");
3817
3817
  } } }), 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 } }), 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)])];
3818
3818
  } }], null, !0) })], 1);
3819
- }, ji = [], Ki = /* @__PURE__ */ c(
3820
- qi,
3821
- Ni,
3819
+ }, Yi = [], Qi = /* @__PURE__ */ c(
3822
3820
  ji,
3821
+ Ki,
3822
+ Yi,
3823
3823
  !1,
3824
3824
  null,
3825
3825
  "9b75010b",
3826
3826
  null,
3827
3827
  null
3828
3828
  );
3829
- const oe = Ki.exports;
3830
- const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
3829
+ const re = Qi.exports;
3830
+ const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
3831
3831
  i18nOptions: {
3832
3832
  namespaces: "common",
3833
3833
  keyPrefix: "designLabels"
3834
3834
  },
3835
3835
  name: "Design",
3836
3836
  components: {
3837
- FormInputRow: J,
3838
- DragWindow: oe
3837
+ FormInputRow: ee,
3838
+ DragWindow: re
3839
3839
  },
3840
3840
  mixins: [
3841
3841
  S(
@@ -3924,7 +3924,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
3924
3924
  weight: n,
3925
3925
  options: s = []
3926
3926
  }) => {
3927
- this.update(i, a), Ye(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3927
+ this.update(i, a), Je(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3928
3928
  }
3929
3929
  }
3930
3930
  ]
@@ -4369,7 +4369,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
4369
4369
  watch: {
4370
4370
  async activeItem(i) {
4371
4371
  const e = u(i, "style.fontFamily");
4372
- e && (this.fontWeightOptions = await Qe(e));
4372
+ e && (this.fontWeightOptions = await Xe(e));
4373
4373
  }
4374
4374
  },
4375
4375
  methods: {
@@ -4381,7 +4381,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
4381
4381
  }
4382
4382
  }
4383
4383
  };
4384
- var Ji = function() {
4384
+ var ea = function() {
4385
4385
  var e = this, t = e._self._c;
4386
4386
  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) {
4387
4387
  return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
@@ -4400,18 +4400,18 @@ var Ji = function() {
4400
4400
  })], 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) {
4401
4401
  return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
4402
4402
  }), 1) : e._e()], 1);
4403
- }, Xi = [], ea = /* @__PURE__ */ c(
4404
- Qi,
4405
- Ji,
4403
+ }, ta = [], ia = /* @__PURE__ */ c(
4406
4404
  Xi,
4405
+ ea,
4406
+ ta,
4407
4407
  !1,
4408
4408
  null,
4409
4409
  "930a4202",
4410
4410
  null,
4411
4411
  null
4412
4412
  );
4413
- const ta = ea.exports;
4414
- const ia = {
4413
+ const aa = ia.exports;
4414
+ const na = {
4415
4415
  name: "FieldsModal",
4416
4416
  i18nOptions: {
4417
4417
  namespaces: "FieldsModal",
@@ -4445,7 +4445,7 @@ const ia = {
4445
4445
  }
4446
4446
  },
4447
4447
  components: {
4448
- CField: Q
4448
+ CField: X
4449
4449
  },
4450
4450
  props: {
4451
4451
  document: {
@@ -4476,12 +4476,12 @@ const ia = {
4476
4476
  validations: {
4477
4477
  form: {
4478
4478
  label: {
4479
- required: I.required,
4479
+ required: F.required,
4480
4480
  isUniqueLabel(i) {
4481
4481
  return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
4482
4482
  }
4483
4483
  },
4484
- value: { required: I.required }
4484
+ value: { required: F.required }
4485
4485
  }
4486
4486
  },
4487
4487
  computed: {
@@ -4521,12 +4521,12 @@ const ia = {
4521
4521
  remove() {
4522
4522
  if (!this.existingFieldId)
4523
4523
  return;
4524
- const i = d1(this.document.fields, [this.existingFieldId]);
4524
+ const i = ut(this.document.fields, [this.existingFieldId]);
4525
4525
  this.set({ key: "data.fields", value: i }), this.$emit("close");
4526
4526
  }
4527
4527
  }
4528
4528
  };
4529
- var aa = function() {
4529
+ var sa = function() {
4530
4530
  var e = this, t = e._self._c;
4531
4531
  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) {
4532
4532
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -4537,18 +4537,18 @@ var aa = function() {
4537
4537
  }, 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) {
4538
4538
  e.$set(e.form, "value", a);
4539
4539
  }, 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)]);
4540
- }, na = [], sa = /* @__PURE__ */ c(
4541
- ia,
4542
- aa,
4540
+ }, oa = [], la = /* @__PURE__ */ c(
4543
4541
  na,
4542
+ sa,
4543
+ oa,
4544
4544
  !1,
4545
4545
  null,
4546
4546
  "5cc44007",
4547
4547
  null,
4548
4548
  null
4549
4549
  );
4550
- const oa = sa.exports;
4551
- const la = {
4550
+ const ra = la.exports;
4551
+ const ca = {
4552
4552
  i18nOptions: {
4553
4553
  namespaces: "DocumentFormFields",
4554
4554
  messages: {
@@ -4572,9 +4572,9 @@ const la = {
4572
4572
  },
4573
4573
  name: "DocumentFormFields",
4574
4574
  components: {
4575
- SmartList: c1,
4576
- CAccordion: je,
4577
- CField: Q
4575
+ SmartList: pt,
4576
+ CAccordion: Ye,
4577
+ CField: X
4578
4578
  },
4579
4579
  mixins: [S()],
4580
4580
  props: {
@@ -4634,7 +4634,7 @@ const la = {
4634
4634
  async handler(i) {
4635
4635
  var e, t;
4636
4636
  if (this.isEditingTemplate && i) {
4637
- const { data: a } = await k.getFields(i);
4637
+ const { data: a } = await L.getFields(i);
4638
4638
  this.updateValue("data.fields", {
4639
4639
  // crmFields added first in order to not override same service values
4640
4640
  ...a,
@@ -4651,7 +4651,7 @@ const la = {
4651
4651
  },
4652
4652
  openFieldModal({ existingFieldId: i }) {
4653
4653
  this.$modal.show(
4654
- oa,
4654
+ ra,
4655
4655
  {
4656
4656
  document: this._document,
4657
4657
  set: this.set,
@@ -4670,7 +4670,7 @@ const la = {
4670
4670
  );
4671
4671
  },
4672
4672
  onCopyField(i) {
4673
- navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Ae("info", this.$t("_common:copyMessage"))).catch((e) => T(e));
4673
+ navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Pe("info", this.$t("_common:copyMessage"))).catch((e) => D(e));
4674
4674
  },
4675
4675
  filterMethod(i, e) {
4676
4676
  return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
@@ -4681,7 +4681,7 @@ const la = {
4681
4681
  }
4682
4682
  }
4683
4683
  };
4684
- var ra = function() {
4684
+ var da = function() {
4685
4685
  var e = this, t = e._self._c;
4686
4686
  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) {
4687
4687
  e.query = a;
@@ -4726,18 +4726,18 @@ var ra = function() {
4726
4726
  } } })], 1)], 1)]);
4727
4727
  }) : 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)]);
4728
4728
  })], 2)], 1);
4729
- }, ca = [], da = /* @__PURE__ */ c(
4730
- la,
4731
- ra,
4729
+ }, pa = [], ua = /* @__PURE__ */ c(
4732
4730
  ca,
4731
+ da,
4732
+ pa,
4733
4733
  !1,
4734
4734
  null,
4735
4735
  "916766d5",
4736
4736
  null,
4737
4737
  null
4738
4738
  );
4739
- const pa = da.exports;
4740
- const ua = {
4739
+ const ma = ua.exports;
4740
+ const ha = {
4741
4741
  i18nOptions: {
4742
4742
  messages: {
4743
4743
  en: {
@@ -4780,8 +4780,8 @@ const ua = {
4780
4780
  },
4781
4781
  name: "ExtensionTab",
4782
4782
  components: {
4783
- draggable: p1,
4784
- Spinner: Pe
4783
+ draggable: mt,
4784
+ Spinner: Ee
4785
4785
  },
4786
4786
  mixins: [S([
4787
4787
  "externalReferences",
@@ -4837,7 +4837,7 @@ const ua = {
4837
4837
  }
4838
4838
  },
4839
4839
  methods: {
4840
- priceFormat: N,
4840
+ priceFormat: K,
4841
4841
  async _search(i) {
4842
4842
  try {
4843
4843
  this.isSearching = !0;
@@ -4848,7 +4848,7 @@ const ua = {
4848
4848
  this.searchResults = [];
4849
4849
  return;
4850
4850
  }
4851
- const { data: t } = await k.search(this.activeCrm, { query: i, type: "deal" });
4851
+ const { data: t } = await L.search(this.activeCrm, { query: i, type: "deal" });
4852
4852
  t && Array.isArray(t) && (this.searchResults = t), t.length || (this.emptyQuery = e);
4853
4853
  } catch (e) {
4854
4854
  throw e;
@@ -4856,7 +4856,7 @@ const ua = {
4856
4856
  this.isSearching = !1;
4857
4857
  }
4858
4858
  },
4859
- search: H(async function(e) {
4859
+ search: A(async function(e) {
4860
4860
  await this._search(e);
4861
4861
  }, 750),
4862
4862
  useSearchResult(i) {
@@ -4878,7 +4878,7 @@ const ua = {
4878
4878
  const e = this.externalReferences.find((o) => o.service === this.activeCrm && o.type === i);
4879
4879
  if (!e)
4880
4880
  return;
4881
- const { service: t, type: a, typeId: n } = e, { data: s } = await k.getExternalReferenceDetails(t, { type: a, typeId: n });
4881
+ const { service: t, type: a, typeId: n } = e, { data: s } = await L.getExternalReferenceDetails(t, { type: a, typeId: n });
4882
4882
  i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
4883
4883
  } catch {
4884
4884
  i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
@@ -4895,10 +4895,10 @@ const ua = {
4895
4895
  },
4896
4896
  async suggestClients() {
4897
4897
  var n;
4898
- const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await k.suggestClients(i, { type: e, typeId: t });
4898
+ const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await L.suggestClients(i, { type: e, typeId: t });
4899
4899
  if (Array.isArray(a) && a.length) {
4900
4900
  const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
4901
- ...Ee(),
4901
+ ...ze(),
4902
4902
  ...s && { answerMethod: s },
4903
4903
  ...l
4904
4904
  }));
@@ -4928,7 +4928,7 @@ const ua = {
4928
4928
  }
4929
4929
  }
4930
4930
  };
4931
- var ma = function() {
4931
+ var fa = function() {
4932
4932
  var e = this, t = e._self._c;
4933
4933
  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) {
4934
4934
  return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
@@ -4959,18 +4959,18 @@ var ma = function() {
4959
4959
  return e.addArticle(a);
4960
4960
  } } }, [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)]);
4961
4961
  }), 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);
4962
- }, ha = [], fa = /* @__PURE__ */ c(
4963
- ua,
4964
- ma,
4962
+ }, ga = [], Ca = /* @__PURE__ */ c(
4965
4963
  ha,
4964
+ fa,
4965
+ ga,
4966
4966
  !1,
4967
4967
  null,
4968
4968
  "b775e9f9",
4969
4969
  null,
4970
4970
  null
4971
4971
  );
4972
- const ga = fa.exports;
4973
- const Ca = {
4972
+ const va = Ca.exports;
4973
+ const ya = {
4974
4974
  i18nOptions: {
4975
4975
  namespaces: "DocSettings",
4976
4976
  messages: {
@@ -5058,8 +5058,8 @@ const Ca = {
5058
5058
  },
5059
5059
  name: "DocumentGeneralSettings",
5060
5060
  components: {
5061
- FormInputRow: J,
5062
- DragWindow: oe
5061
+ FormInputRow: ee,
5062
+ DragWindow: re
5063
5063
  },
5064
5064
  props: {
5065
5065
  offset: {
@@ -5098,7 +5098,7 @@ const Ca = {
5098
5098
  vatTypes() {
5099
5099
  var e;
5100
5100
  const i = ["vat"];
5101
- return ((e = ze[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5101
+ return ((e = Ze[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5102
5102
  },
5103
5103
  options() {
5104
5104
  return [
@@ -5124,7 +5124,7 @@ const Ca = {
5124
5124
  component: "select",
5125
5125
  props: {
5126
5126
  value: this.language,
5127
- options: Ze.map((i) => ({ value: i, label: this.$t(`iso:language.${i}`) })).sort((i, e) => i.label.localeCompare(e.label))
5127
+ options: Oe.map((i) => ({ value: i, label: this.$t(`iso:language.${i}`) })).sort((i, e) => i.label.localeCompare(e.label))
5128
5128
  },
5129
5129
  onInput: (i) => this.update("language", i)
5130
5130
  }
@@ -5275,7 +5275,7 @@ const Ca = {
5275
5275
  }
5276
5276
  }
5277
5277
  };
5278
- var va = function() {
5278
+ var xa = function() {
5279
5279
  var e = this, t = e._self._c;
5280
5280
  return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
5281
5281
  return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
@@ -5284,17 +5284,17 @@ var va = function() {
5284
5284
  } } }, [e._l(e.priceOptions, function(a, n) {
5285
5285
  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 } })];
5286
5286
  })], 2) : e._e()], 2);
5287
- }, ya = [], xa = /* @__PURE__ */ c(
5288
- Ca,
5289
- va,
5287
+ }, wa = [], ba = /* @__PURE__ */ c(
5290
5288
  ya,
5289
+ xa,
5290
+ wa,
5291
5291
  !1,
5292
5292
  null,
5293
5293
  "eec61e30",
5294
5294
  null,
5295
5295
  null
5296
5296
  );
5297
- const wa = xa.exports, ba = {
5297
+ const _a = ba.exports, ka = {
5298
5298
  name: "MenuBlockConvertPopover",
5299
5299
  props: {
5300
5300
  target: {
@@ -5327,32 +5327,32 @@ const wa = xa.exports, ba = {
5327
5327
  }
5328
5328
  }
5329
5329
  };
5330
- var _a = function() {
5330
+ var La = function() {
5331
5331
  var e = this, t = e._self._c;
5332
5332
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
5333
5333
  return a.target !== a.currentTarget ? null : e.$emit("close");
5334
5334
  } } }), 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) {
5335
5335
  return e.$emit("convert");
5336
5336
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
5337
- }, ka = [], La = /* @__PURE__ */ c(
5338
- ba,
5339
- _a,
5337
+ }, $a = [], Sa = /* @__PURE__ */ c(
5340
5338
  ka,
5339
+ La,
5340
+ $a,
5341
5341
  !1,
5342
5342
  null,
5343
5343
  null,
5344
5344
  null,
5345
5345
  null
5346
5346
  );
5347
- const $a = La.exports;
5348
- const Sa = F.component("ProBadge", {
5347
+ const Ta = Sa.exports;
5348
+ const Da = H.component("ProBadge", {
5349
5349
  name: "ProBadge",
5350
5350
  render(i) {
5351
5351
  return i("div", {
5352
5352
  staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
5353
5353
  }, "Pro");
5354
5354
  }
5355
- }), Ta = {
5355
+ }), Va = {
5356
5356
  name: "MenuBlocks",
5357
5357
  i18nOptions: {
5358
5358
  namespaces: "menuBlocks",
@@ -5422,13 +5422,13 @@ const Sa = F.component("ProBadge", {
5422
5422
  }
5423
5423
  },
5424
5424
  components: {
5425
- simplebar: _,
5426
- DragList: K,
5427
- DragItem: Y,
5428
- AddBlock: ne,
5429
- IsPremiumPreStep: b,
5430
- ProBadge: Sa,
5431
- MenuBlockConvertPopover: $a
5425
+ simplebar: k,
5426
+ DragList: Q,
5427
+ DragItem: J,
5428
+ AddBlock: oe,
5429
+ IsPremiumPreStep: _,
5430
+ ProBadge: Da,
5431
+ MenuBlockConvertPopover: Ta
5432
5432
  },
5433
5433
  props: {
5434
5434
  _document: {
@@ -5457,7 +5457,7 @@ const Sa = F.component("ProBadge", {
5457
5457
  default: () => ({ isPublicForm: !1 })
5458
5458
  }
5459
5459
  },
5460
- mixins: [L],
5460
+ mixins: [$],
5461
5461
  data() {
5462
5462
  return {
5463
5463
  subMenuToShow: null,
@@ -5722,7 +5722,7 @@ const Sa = F.component("ProBadge", {
5722
5722
  }
5723
5723
  ];
5724
5724
  return i.forEach((e) => {
5725
- R[e.key] && (e.subMenu = (R[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
5725
+ U[e.key] && (e.subMenu = (U[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
5726
5726
  }), i;
5727
5727
  },
5728
5728
  availableBlocks() {
@@ -5772,7 +5772,7 @@ const Sa = F.component("ProBadge", {
5772
5772
  if (this.mq === "sm")
5773
5773
  return;
5774
5774
  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;
5775
- this.tippyInstances = r1(this.$el, {
5775
+ this.tippyInstances = dt(this.$el, {
5776
5776
  target: "[data-tooltip-key]",
5777
5777
  allowHTML: !0,
5778
5778
  duration: [150, 0],
@@ -5797,7 +5797,7 @@ const Sa = F.component("ProBadge", {
5797
5797
  i.destroy();
5798
5798
  }) : this.tippyInstances.destroy && this.tippyInstances.destroy());
5799
5799
  },
5800
- setSubMenuState: H(function(e) {
5800
+ setSubMenuState: A(function(e) {
5801
5801
  this.activeSubMenu = e;
5802
5802
  }, 100, { trailing: !0 }),
5803
5803
  onMouseleaveDrawer() {
@@ -5832,7 +5832,7 @@ const Sa = F.component("ProBadge", {
5832
5832
  }
5833
5833
  }
5834
5834
  };
5835
- var Da = function() {
5835
+ var Ba = function() {
5836
5836
  var e = this, t = e._self._c;
5837
5837
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
5838
5838
  return e.$emit("block-added", a);
@@ -5871,18 +5871,18 @@ var Da = function() {
5871
5871
  }), 1)], 1)], 1)])], 1)];
5872
5872
  } }], null, !0) })];
5873
5873
  } }]) });
5874
- }, Va = [], Ba = /* @__PURE__ */ c(
5875
- Ta,
5876
- Da,
5874
+ }, Ma = [], Ia = /* @__PURE__ */ c(
5877
5875
  Va,
5876
+ Ba,
5877
+ Ma,
5878
5878
  !1,
5879
5879
  null,
5880
5880
  "2f285e04",
5881
5881
  null,
5882
5882
  null
5883
5883
  );
5884
- const Ma = Ba.exports;
5885
- const Ia = {
5884
+ const Fa = Ia.exports;
5885
+ const Ha = {
5886
5886
  name: "DocumentFormMenu",
5887
5887
  i18nOptions: {
5888
5888
  namespaces: "documentFormMenu",
@@ -5898,13 +5898,13 @@ const Ia = {
5898
5898
  }
5899
5899
  },
5900
5900
  components: {
5901
- Design: ta,
5902
- Fields: pa,
5903
- ExtensionTab: ga,
5904
- DocumentGeneralSettings: wa,
5905
- DocumentGuide: () => import("./index-68aa0619.js"),
5906
- MenuBlocks: Ma,
5907
- Simplebar: _
5901
+ Design: aa,
5902
+ Fields: ma,
5903
+ ExtensionTab: va,
5904
+ DocumentGeneralSettings: _a,
5905
+ DocumentGuide: () => import("./index-a1f81228.js"),
5906
+ MenuBlocks: Fa,
5907
+ Simplebar: k
5908
5908
  },
5909
5909
  props: {
5910
5910
  state: {
@@ -5944,7 +5944,7 @@ const Ia = {
5944
5944
  data() {
5945
5945
  return {
5946
5946
  showGuide: !1,
5947
- showGuideNotification: !A.getItem("hideFormGuideNotification"),
5947
+ showGuideNotification: !P.getItem("hideFormGuideNotification"),
5948
5948
  tab: "blocks"
5949
5949
  };
5950
5950
  },
@@ -5966,11 +5966,11 @@ const Ia = {
5966
5966
  },
5967
5967
  methods: {
5968
5968
  openGuide() {
5969
- this.showGuide = !0, this.showGuideNotification = !1, A.setItem("hideFormGuideNotification", !0);
5969
+ this.showGuide = !0, this.showGuideNotification = !1, P.setItem("hideFormGuideNotification", !0);
5970
5970
  }
5971
5971
  }
5972
5972
  };
5973
- var Fa = function() {
5973
+ var Aa = function() {
5974
5974
  var e = this, t = e._self._c;
5975
5975
  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) {
5976
5976
  return e.$emit("close");
@@ -6009,18 +6009,18 @@ var Fa = function() {
6009
6009
  }, offset: 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) {
6010
6010
  e.showGuide = !1;
6011
6011
  } } }) : e._e()], 1)])]);
6012
- }, Ha = [], Aa = /* @__PURE__ */ c(
6013
- Ia,
6014
- Fa,
6012
+ }, Pa = [], Ea = /* @__PURE__ */ c(
6015
6013
  Ha,
6014
+ Aa,
6015
+ Pa,
6016
6016
  !1,
6017
6017
  null,
6018
6018
  "383e8c99",
6019
6019
  null,
6020
6020
  null
6021
6021
  );
6022
- const Pa = Aa.exports;
6023
- const Ea = {
6022
+ const za = Ea.exports;
6023
+ const Za = {
6024
6024
  name: "BlockControlButtons",
6025
6025
  i18nOptions: {
6026
6026
  namespace: "blockControlButtons",
@@ -6052,7 +6052,7 @@ const Ea = {
6052
6052
  }
6053
6053
  }
6054
6054
  };
6055
- var za = function() {
6055
+ var Oa = function() {
6056
6056
  var e = this, t = e._self._c;
6057
6057
  return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
6058
6058
  return e.$emit("toggle-visible", !e.isVisible);
@@ -6063,21 +6063,21 @@ var za = function() {
6063
6063
  } } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
6064
6064
  return e.$emit("remove");
6065
6065
  } } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
6066
- }, Za = [], Oa = /* @__PURE__ */ c(
6067
- Ea,
6068
- za,
6066
+ }, Ra = [], Ga = /* @__PURE__ */ c(
6069
6067
  Za,
6068
+ Oa,
6069
+ Ra,
6070
6070
  !1,
6071
6071
  null,
6072
6072
  "537216ad",
6073
6073
  null,
6074
6074
  null
6075
6075
  );
6076
- const Ga = Oa.exports;
6077
- const Ra = {
6076
+ const Ua = Ga.exports;
6077
+ const Wa = {
6078
6078
  name: "DynamicBlock",
6079
6079
  components: {
6080
- BlockControlButtons: Ga
6080
+ BlockControlButtons: Ua
6081
6081
  },
6082
6082
  props: {
6083
6083
  isDragging: {
@@ -6138,7 +6138,7 @@ const Ra = {
6138
6138
  }
6139
6139
  }
6140
6140
  };
6141
- var Ua = function() {
6141
+ var qa = function() {
6142
6142
  var e = this, t = e._self._c;
6143
6143
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
6144
6144
  {
@@ -6161,22 +6161,22 @@ var Ua = function() {
6161
6161
  }, remove: function(a) {
6162
6162
  return e.$emit("remove");
6163
6163
  } } }, [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)]);
6164
- }, Wa = [], qa = /* @__PURE__ */ c(
6165
- Ra,
6166
- Ua,
6164
+ }, Na = [], ja = /* @__PURE__ */ c(
6167
6165
  Wa,
6166
+ qa,
6167
+ Na,
6168
6168
  !1,
6169
6169
  null,
6170
6170
  "1181a172",
6171
6171
  null,
6172
6172
  null
6173
6173
  );
6174
- const Na = qa.exports;
6175
- const ja = {
6174
+ const Ka = ja.exports;
6175
+ const Ya = {
6176
6176
  name: "DocumentDrawer",
6177
6177
  components: {
6178
- simplebar: _,
6179
- Drawer: se
6178
+ simplebar: k,
6179
+ Drawer: le
6180
6180
  },
6181
6181
  props: {
6182
6182
  position: {
@@ -6198,7 +6198,7 @@ const ja = {
6198
6198
  }
6199
6199
  }
6200
6200
  };
6201
- var Ka = function() {
6201
+ var Qa = function() {
6202
6202
  var e = this, t = e._self._c;
6203
6203
  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: {
6204
6204
  "is-sticky": !e.fixed
@@ -6210,18 +6210,18 @@ var Ka = function() {
6210
6210
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
6211
6211
  ...e.fixedStyle
6212
6212
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
6213
- }, Ya = [], Qa = /* @__PURE__ */ c(
6214
- ja,
6215
- Ka,
6213
+ }, Ja = [], Xa = /* @__PURE__ */ c(
6216
6214
  Ya,
6215
+ Qa,
6216
+ Ja,
6217
6217
  !1,
6218
6218
  null,
6219
6219
  "f0a56edd",
6220
6220
  null,
6221
6221
  null
6222
6222
  );
6223
- const Ja = Qa.exports;
6224
- const Xa = {
6223
+ const en = Xa.exports;
6224
+ const tn = {
6225
6225
  name: "DocumentFormViewRadio",
6226
6226
  props: {
6227
6227
  value: {
@@ -6234,24 +6234,24 @@ const Xa = {
6234
6234
  }
6235
6235
  }
6236
6236
  };
6237
- var en = function() {
6237
+ var an = function() {
6238
6238
  var e = this, t = e._self._c;
6239
6239
  return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
6240
6240
  e.value === "preview" && e.$emit("input", "edit");
6241
6241
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [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) {
6242
6242
  e.value === "edit" && e.$emit("input", "preview");
6243
6243
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
6244
- }, tn = [], an = /* @__PURE__ */ c(
6245
- Xa,
6246
- en,
6244
+ }, nn = [], sn = /* @__PURE__ */ c(
6247
6245
  tn,
6246
+ an,
6247
+ nn,
6248
6248
  !1,
6249
6249
  null,
6250
6250
  "bfd27279",
6251
6251
  null,
6252
6252
  null
6253
6253
  );
6254
- const nn = an.exports, sn = {
6254
+ const on = sn.exports, ln = {
6255
6255
  name: "LogoBanner",
6256
6256
  props: {
6257
6257
  position: {
@@ -6269,44 +6269,44 @@ const nn = an.exports, sn = {
6269
6269
  }
6270
6270
  }
6271
6271
  };
6272
- var on = function() {
6272
+ var rn = function() {
6273
6273
  var e = this, t = e._self._c;
6274
6274
  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("_common:brand.domain")}?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")) + " ")])])]);
6275
- }, ln = [], rn = /* @__PURE__ */ c(
6276
- sn,
6277
- on,
6275
+ }, cn = [], dn = /* @__PURE__ */ c(
6278
6276
  ln,
6277
+ rn,
6278
+ cn,
6279
6279
  !1,
6280
6280
  null,
6281
6281
  null,
6282
6282
  null,
6283
6283
  null
6284
6284
  );
6285
- const cn = rn.exports;
6286
- const dn = {
6285
+ const pn = dn.exports;
6286
+ const un = {
6287
6287
  name: "DocumentFormNav"
6288
6288
  };
6289
- var pn = function() {
6289
+ var mn = function() {
6290
6290
  var e = this, t = e._self._c;
6291
6291
  return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "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)])]);
6292
- }, un = [], mn = /* @__PURE__ */ c(
6293
- dn,
6294
- pn,
6292
+ }, hn = [], fn = /* @__PURE__ */ c(
6295
6293
  un,
6294
+ mn,
6295
+ hn,
6296
6296
  !1,
6297
6297
  null,
6298
6298
  "05fc111c",
6299
6299
  null,
6300
6300
  null
6301
6301
  );
6302
- const hn = mn.exports;
6303
- const le = (i, e, t = "$children") => {
6302
+ const gn = fn.exports;
6303
+ const ce = (i, e, t = "$children") => {
6304
6304
  if (!i)
6305
6305
  return;
6306
6306
  e(i);
6307
6307
  const a = i[t];
6308
- !a && !Array.isArray(a) || a.forEach((n) => le(n, e));
6309
- }, fn = {
6308
+ !a && !Array.isArray(a) || a.forEach((n) => ce(n, e));
6309
+ }, Cn = {
6310
6310
  i18nOptions: {
6311
6311
  namespaces: "DocumentFormContainer",
6312
6312
  messages: {
@@ -6322,19 +6322,19 @@ const le = (i, e, t = "$children") => {
6322
6322
  },
6323
6323
  name: "DocumentFormContainer",
6324
6324
  components: {
6325
- WithDimensions: Je,
6326
- DragList: K,
6327
- DragItem: Y,
6328
- DynamicChapter: Xe,
6329
- DocumentFormMenu: Pa,
6330
- DynamicBlock: Na,
6331
- DocumentFormViewRadio: nn,
6332
- DocumentFormNav: hn,
6333
- DocumentDrawer: Ja,
6334
- DocumentStyleContainer: e1,
6335
- simplebar: _,
6336
- LogoBanner: cn,
6337
- IsPremium: $
6325
+ WithDimensions: et,
6326
+ DragList: Q,
6327
+ DragItem: J,
6328
+ DynamicChapter: tt,
6329
+ DocumentFormMenu: za,
6330
+ DynamicBlock: Ka,
6331
+ DocumentFormViewRadio: on,
6332
+ DocumentFormNav: gn,
6333
+ DocumentDrawer: en,
6334
+ DocumentStyleContainer: it,
6335
+ simplebar: k,
6336
+ LogoBanner: pn,
6337
+ IsPremium: b
6338
6338
  },
6339
6339
  props: {
6340
6340
  _document: {
@@ -6371,7 +6371,7 @@ const le = (i, e, t = "$children") => {
6371
6371
  default: !0
6372
6372
  }
6373
6373
  },
6374
- mixins: [L],
6374
+ mixins: [$],
6375
6375
  data() {
6376
6376
  return {
6377
6377
  drawerState: v,
@@ -6451,7 +6451,7 @@ const le = (i, e, t = "$children") => {
6451
6451
  async externalReferences(i) {
6452
6452
  await Promise.all((i || []).map(async ({ service: e, type: t, typeId: a }) => {
6453
6453
  if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
6454
- const { data: n } = await k.getFields(e, { type: t, typeId: a, populated: !0 });
6454
+ const { data: n } = await L.getFields(e, { type: t, typeId: a, populated: !0 });
6455
6455
  this.setFormValue({
6456
6456
  key: "data.fields",
6457
6457
  value: { ...this._document.fields, ...n }
@@ -6462,7 +6462,7 @@ const le = (i, e, t = "$children") => {
6462
6462
  },
6463
6463
  methods: {
6464
6464
  onAddBlockMount(i, e) {
6465
- !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => u1(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6465
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ht(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6466
6466
  },
6467
6467
  onBlockToggleVisible(i, e) {
6468
6468
  const a = [...this.readLayout].findIndex(
@@ -6483,7 +6483,7 @@ const le = (i, e, t = "$children") => {
6483
6483
  const a = i.itemId.split("-")[1];
6484
6484
  this.removePackageGroup(a);
6485
6485
  } else
6486
- le(i, (n) => {
6486
+ ce(i, (n) => {
6487
6487
  n.value && Object.values(n.value).forEach((s) => {
6488
6488
  this.removeFormKeyValue(`${s}`);
6489
6489
  let o = s.replace(/^data.(?!properties)/g, "data.properties.");
@@ -6493,7 +6493,7 @@ const le = (i, e, t = "$children") => {
6493
6493
  this.removeFormKeyValue(r);
6494
6494
  });
6495
6495
  }, "children");
6496
- V([this.nestedReadLayout[e]]).forEach((a) => {
6496
+ B([this.nestedReadLayout[e]]).forEach((a) => {
6497
6497
  const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
6498
6498
  this.removeFormValue(`template.views.read.nodes[${n}]`);
6499
6499
  });
@@ -6513,10 +6513,10 @@ const le = (i, e, t = "$children") => {
6513
6513
  if (e !== null && t !== null) {
6514
6514
  if (e === t)
6515
6515
  return;
6516
- const n = Oe(this.nestedReadLayout, e, t);
6516
+ const n = Re(this.nestedReadLayout, e, t);
6517
6517
  this.setFormValue({
6518
6518
  key: "template.views.read.nodes",
6519
- value: V(n)
6519
+ value: B(n)
6520
6520
  });
6521
6521
  } else if (!e && t !== null) {
6522
6522
  const {
@@ -6528,20 +6528,20 @@ const le = (i, e, t = "$children") => {
6528
6528
  readView: r,
6529
6529
  validation: p,
6530
6530
  data: C,
6531
- onAddFnName: D = "onAdd"
6531
+ onAddFnName: V = "onAdd"
6532
6532
  } = s({ sectionKey: n, document: this._document, contentData: l });
6533
6533
  o({ validation: p, data: C });
6534
- const re = Ge({ tree: r }), ce = [
6534
+ const de = Ge({ tree: r }), pe = [
6535
6535
  ...this.nestedReadLayout.slice(0, t),
6536
- ...re,
6536
+ ...de,
6537
6537
  ...this.nestedReadLayout.slice(t)
6538
6538
  ];
6539
6539
  this.setFormValue({
6540
6540
  key: "template.views.read.nodes",
6541
- value: V(ce)
6541
+ value: B(pe)
6542
6542
  });
6543
- const [{ nodeId: de }] = r;
6544
- this.onAddRedis[de] = D;
6543
+ const [{ nodeId: ue }] = r;
6544
+ this.onAddRedis[ue] = V;
6545
6545
  }
6546
6546
  },
6547
6547
  shouldAnimateDrop(i) {
@@ -6549,7 +6549,7 @@ const le = (i, e, t = "$children") => {
6549
6549
  }
6550
6550
  }
6551
6551
  };
6552
- var gn = function() {
6552
+ var vn = function() {
6553
6553
  var e = this, t = e._self._c;
6554
6554
  return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
6555
6555
  "is-edit-view": e.isEditView,
@@ -6611,7 +6611,7 @@ var gn = function() {
6611
6611
  e.drawerState.openSection = p;
6612
6612
  }, "toggle-visible": function(p) {
6613
6613
  return e.onBlockToggleVisible(l, p);
6614
- } } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options: D }) => e.setFormValue({ key: p, value: C, options: D }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
6614
+ } } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options: V }) => e.setFormValue({ key: p, value: C, options: V }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
6615
6615
  }), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
6616
6616
  return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
6617
6617
  } }], null, !0) }) : e._e()], 1);
@@ -6620,32 +6620,95 @@ var gn = function() {
6620
6620
  } } }, [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) {
6621
6621
  e.drawerState.openSection = null;
6622
6622
  } } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
6623
- }, Cn = [function() {
6623
+ }, yn = [function() {
6624
6624
  var i = this, e = i._self._c;
6625
6625
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
6626
- }], vn = /* @__PURE__ */ c(
6627
- fn,
6628
- gn,
6626
+ }], xn = /* @__PURE__ */ c(
6629
6627
  Cn,
6628
+ vn,
6629
+ yn,
6630
6630
  !1,
6631
6631
  null,
6632
6632
  "d9b9c0a6",
6633
6633
  null,
6634
6634
  null
6635
6635
  );
6636
- const yn = vn.exports, B = F.observable({
6636
+ const wn = xn.exports;
6637
+ function bn(i, e, t) {
6638
+ return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
6639
+ }
6640
+ var _n = bn, kn = _n, M = je;
6641
+ function Ln(i, e, t) {
6642
+ 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), kn(M(i), e, t);
6643
+ }
6644
+ var $n = Ln;
6645
+ const Sn = /* @__PURE__ */ j($n);
6646
+ const Tn = {
6647
+ name: "RemainingTrialButton",
6648
+ components: { IsPremium: b },
6649
+ i18nOptions: {
6650
+ namespace: "RemainingTrialButton",
6651
+ messages: {
6652
+ sv: {
6653
+ button: "kvar",
6654
+ title: {
6655
+ 1: "Prova på",
6656
+ 2: "Pro",
6657
+ 3: "i {{ trialDaysLeft }} dagar till",
6658
+ 4: "Därefter kommer ditt konto nedgraderas till ",
6659
+ 5: "Free"
6660
+ },
6661
+ actionButton: "Uppgradera nu"
6662
+ },
6663
+ en: {
6664
+ button: "left",
6665
+ title: {
6666
+ 1: "Try",
6667
+ 2: "Pro",
6668
+ 3: "for {{ trialDaysLeft }} more days",
6669
+ 4: "Afterwards your account will get downgraded to",
6670
+ 5: "Free"
6671
+ },
6672
+ actionButton: "Upgrade now"
6673
+ }
6674
+ }
6675
+ },
6676
+ methods: {
6677
+ clamp: Sn
6678
+ }
6679
+ };
6680
+ var Dn = function() {
6681
+ var e = this, t = e._self._c;
6682
+ return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ accountType: a, trialDaysLeft: n, openUpgradeModal: s, initialFreePremiumDays: o }) {
6683
+ return [a === "trial" ? 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: {
6684
+ width: e.clamp(n / o * 100, 0, 100) + "%"
6685
+ } })])]), 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()];
6686
+ } }]) });
6687
+ }, Vn = [], Bn = /* @__PURE__ */ c(
6688
+ Tn,
6689
+ Dn,
6690
+ Vn,
6691
+ !1,
6692
+ null,
6693
+ "37342bec",
6694
+ null,
6695
+ null
6696
+ );
6697
+ const Mn = Bn.exports, T = H.observable({
6637
6698
  canEdit: !1,
6638
6699
  isForm: !0,
6639
- setFormValue: null
6640
- }), xn = {
6700
+ setFormValue: null,
6701
+ removeFormValue: null
6702
+ }), In = {
6641
6703
  name: "DocumentForm",
6642
6704
  components: {
6643
- DocumentFormContainer: yn,
6644
- IsPremium: $,
6645
- IsPremiumPreStep: b,
6646
- DocumentSend: Zi
6705
+ DocumentFormContainer: wn,
6706
+ IsPremium: b,
6707
+ IsPremiumPreStep: _,
6708
+ DocumentSend: Ri,
6709
+ RemainingTrialButton: Mn
6647
6710
  },
6648
- mixins: [l1],
6711
+ mixins: [ct],
6649
6712
  props: {
6650
6713
  document: {
6651
6714
  type: Object,
@@ -6655,10 +6718,6 @@ const yn = vn.exports, B = F.observable({
6655
6718
  type: Boolean,
6656
6719
  default: !1
6657
6720
  },
6658
- setFormValue: {
6659
- type: Function,
6660
- required: !0
6661
- },
6662
6721
  setDocValue: {
6663
6722
  type: Function,
6664
6723
  required: !0
@@ -6692,7 +6751,7 @@ const yn = vn.exports, B = F.observable({
6692
6751
  default: !0
6693
6752
  }
6694
6753
  },
6695
- provide: () => ({ viewSettings: B }),
6754
+ provide: () => ({ viewSettings: T }),
6696
6755
  data() {
6697
6756
  return {
6698
6757
  view: "edit",
@@ -6703,7 +6762,7 @@ const yn = vn.exports, B = F.observable({
6703
6762
  canEdit: {
6704
6763
  immediate: !0,
6705
6764
  handler(i) {
6706
- B.canEdit = !!i;
6765
+ T.canEdit = !!i;
6707
6766
  }
6708
6767
  }
6709
6768
  },
@@ -6717,7 +6776,7 @@ const yn = vn.exports, B = F.observable({
6717
6776
  }
6718
6777
  },
6719
6778
  created() {
6720
- this.setFormValue && (B.setFormValue = this.setDocValue);
6779
+ this.setDocValue && (T.setFormValue = this.setDocValue), this.removeDocValue && (T.removeFormValue = this.removeDocValue);
6721
6780
  },
6722
6781
  methods: {
6723
6782
  isValid() {
@@ -6732,7 +6791,7 @@ const yn = vn.exports, B = F.observable({
6732
6791
  },
6733
6792
  async saveAsTemplate() {
6734
6793
  this.document && this.$modal.show(
6735
- ie,
6794
+ ne,
6736
6795
  {
6737
6796
  document: this.document,
6738
6797
  onSaveTemplate: this.onSaveTemplate
@@ -6749,14 +6808,14 @@ const yn = vn.exports, B = F.observable({
6749
6808
  }
6750
6809
  }
6751
6810
  };
6752
- var wn = function() {
6811
+ var Fn = function() {
6753
6812
  var e = this, t = e._self._c;
6754
6813
  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) {
6755
6814
  e.view = a;
6756
6815
  } } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
6757
6816
  return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6758
6817
  return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
6759
- return [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) {
6818
+ 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) {
6760
6819
  a || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
6761
6820
  } } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
6762
6821
  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) {
@@ -6769,7 +6828,7 @@ var wn = function() {
6769
6828
  } }], null, !0) })], 1)];
6770
6829
  })], 2)];
6771
6830
  } }], null, !0) })];
6772
- } }], null, !1, 3125491924) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6831
+ } }], null, !1, 3477518125) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6773
6832
  expiresAt: "data.expiresAt",
6774
6833
  personalMessage: "data.personalMessage",
6775
6834
  defaultAnswerMethod: "data.defaultAnswerMethod",
@@ -6777,20 +6836,20 @@ var wn = function() {
6777
6836
  reminders: "data.reminders",
6778
6837
  name: "data.name"
6779
6838
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
6780
- }, bn = [], _n = /* @__PURE__ */ c(
6781
- xn,
6782
- wn,
6783
- bn,
6839
+ }, Hn = [], An = /* @__PURE__ */ c(
6840
+ In,
6841
+ Fn,
6842
+ Hn,
6784
6843
  !1,
6785
6844
  null,
6786
6845
  null,
6787
6846
  null,
6788
6847
  null
6789
6848
  );
6790
- const kn = _n.exports;
6791
- const Ln = {
6849
+ const Pn = An.exports;
6850
+ const En = {
6792
6851
  name: "DocumentPostSendStep",
6793
- mixins: [L],
6852
+ mixins: [$],
6794
6853
  i18nOptions: {
6795
6854
  namespaces: "PostDocumentSend",
6796
6855
  messages: {
@@ -6825,7 +6884,7 @@ const Ln = {
6825
6884
  return this.mq === "sm" ? "100%" : "auto";
6826
6885
  },
6827
6886
  usesManualDelivery() {
6828
- const i = M(this.document);
6887
+ const i = I(this.document);
6829
6888
  return !i.sms && !i.email;
6830
6889
  }
6831
6890
  },
@@ -6840,12 +6899,12 @@ const Ln = {
6840
6899
  sendDocument: m.DO_SEND_DOCUMENT2
6841
6900
  }),
6842
6901
  async handleDocumentLinks() {
6843
- const { id: i } = this.document, e = M(this.document), t = !e.sms && !e.email;
6902
+ const { id: i } = this.document, e = I(this.document), t = !e.sms && !e.email;
6844
6903
  t && (await this.updateDocument({
6845
6904
  id: i,
6846
6905
  body: { status: "sent" },
6847
6906
  showMessage: !1
6848
- }), m1({ id: i })), t || setTimeout(() => this.close(), 2e3);
6907
+ }), ft({ id: i })), t || setTimeout(() => this.close(), 2e3);
6849
6908
  },
6850
6909
  async onSend() {
6851
6910
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -6864,7 +6923,7 @@ const Ln = {
6864
6923
  body: { isAccepted: !0 },
6865
6924
  checksum: a
6866
6925
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
6867
- h1,
6926
+ gt,
6868
6927
  {
6869
6928
  _document: this.document,
6870
6929
  fullScreen: this.modalHeight === "100%",
@@ -6908,24 +6967,32 @@ const Ln = {
6908
6967
  }
6909
6968
  }
6910
6969
  };
6911
- var $n = function() {
6970
+ var zn = function() {
6912
6971
  var e = this, t = e._self._c;
6913
6972
  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)]);
6914
- }, Sn = [], Tn = /* @__PURE__ */ c(
6915
- Ln,
6916
- $n,
6917
- Sn,
6973
+ }, Zn = [], On = /* @__PURE__ */ c(
6974
+ En,
6975
+ zn,
6976
+ Zn,
6918
6977
  !1,
6919
6978
  null,
6920
6979
  "673cd86f",
6921
6980
  null,
6922
6981
  null
6923
6982
  );
6924
- const Dn = Tn.exports;
6925
- F.use(o1);
6926
- const Vn = {
6983
+ const Rn = On.exports;
6984
+ H.use(rt);
6985
+ const Gn = {
6927
6986
  name: "DocForm",
6928
- mixins: [Re(["closeFunc", "beforeSave", "beforeSend"])],
6987
+ mixins: [
6988
+ Ue([
6989
+ "closeFunc",
6990
+ "beforeSave",
6991
+ "beforeSend",
6992
+ "setFormValue",
6993
+ "removeFormValue"
6994
+ ])
6995
+ ],
6929
6996
  i18nOptions: {
6930
6997
  namespaces: "widgetDocForm",
6931
6998
  messages: {
@@ -6938,9 +7005,9 @@ const Vn = {
6938
7005
  }
6939
7006
  },
6940
7007
  components: {
6941
- TemplateSelector: w2,
6942
- DocumentForm: kn,
6943
- PostSend: Dn
7008
+ TemplateSelector: _2,
7009
+ DocumentForm: Pn,
7010
+ PostSend: Rn
6944
7011
  },
6945
7012
  props: {
6946
7013
  isNew: {
@@ -6961,7 +7028,7 @@ const Vn = {
6961
7028
  };
6962
7029
  },
6963
7030
  computed: {
6964
- ...Ue({
7031
+ ...We({
6965
7032
  company: "application/company",
6966
7033
  feature: "application/feature",
6967
7034
  can: "application/can",
@@ -6990,9 +7057,7 @@ const Vn = {
6990
7057
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
6991
7058
  },
6992
7059
  methods: {
6993
- ...We({
6994
- setFormValue: m.SET_FORM_VALUE,
6995
- removeFormValue: m.REMOVE_FORM_VALUE,
7060
+ ...qe({
6996
7061
  removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
6997
7062
  loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
6998
7063
  duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
@@ -7002,7 +7067,7 @@ const Vn = {
7002
7067
  async initDoc() {
7003
7068
  if (!this.rawDoc)
7004
7069
  throw new Error("Missing initiated form document");
7005
- this.document = new j({
7070
+ this.document = new Y({
7006
7071
  data: this.rawDoc,
7007
7072
  can: this.can,
7008
7073
  getters: this.$store.getters,
@@ -7011,7 +7076,7 @@ const Vn = {
7011
7076
  },
7012
7077
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7013
7078
  var n;
7014
- const a = zt({ ...this.rawDoc }, [
7079
+ const a = O1({ ...this.rawDoc }, [
7015
7080
  "__tempId",
7016
7081
  "externalReferences",
7017
7082
  "subscriberCompanyUserIds",
@@ -7023,15 +7088,15 @@ const Vn = {
7023
7088
  _formData: a
7024
7089
  }) : await this.loadDocumentForm({
7025
7090
  templateId: i,
7026
- formData: t ? qe(t, a) : null,
7091
+ formData: t ? Ne(t, a) : null,
7027
7092
  _formData: a
7028
7093
  }), (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";
7029
7094
  },
7030
7095
  setDocValue({ key: i, value: e }) {
7031
- return this.setFormValue({ key: `document2.${i}`, value: e });
7096
+ return this.setFormValue({ key: i, value: e });
7032
7097
  },
7033
7098
  removeDocValue(i) {
7034
- return this.removeFormValue(`document2.${i}`);
7099
+ return this.removeFormValue(i);
7035
7100
  },
7036
7101
  removeDocKeyValue(i) {
7037
7102
  return this.removeFormKeyValue(`document2.${i}`);
@@ -7057,25 +7122,25 @@ const Vn = {
7057
7122
  this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
7058
7123
  },
7059
7124
  isManualDelivery(i) {
7060
- const e = M(i);
7125
+ const e = I(i);
7061
7126
  return !e.sms && !e.email;
7062
7127
  }
7063
7128
  }
7064
7129
  };
7065
- var Bn = function() {
7130
+ var Un = function() {
7066
7131
  var e = this, t = e._self._c;
7067
7132
  return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("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);
7068
- }, Mn = [], In = /* @__PURE__ */ c(
7069
- Vn,
7070
- Bn,
7071
- Mn,
7133
+ }, Wn = [], qn = /* @__PURE__ */ c(
7134
+ Gn,
7135
+ Un,
7136
+ Wn,
7072
7137
  !1,
7073
7138
  null,
7074
7139
  null,
7075
7140
  null,
7076
7141
  null
7077
7142
  );
7078
- const hs = In.exports;
7143
+ const Ss = qn.exports;
7079
7144
  export {
7080
- hs as default
7145
+ Ss as default
7081
7146
  };