@cling-se/widget 0.9.24 → 0.9.26

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 (120) hide show
  1. package/dist/{AddClientCallout-4afb07ff.js → AddClientCallout-1d22cff1.js} +5 -5
  2. package/dist/{AnswerModal-2b11381b.js → AnswerModal-7d4a4ad6.js} +82 -70
  3. package/dist/{AttachmentItem-c666fb74.js → AttachmentItem-fa4a7b2f.js} +3 -3
  4. package/dist/{BaseDatePicker-e1efcf48.js → BaseDatePicker-bb3c9290.js} +1 -1
  5. package/dist/{BaseInput-44c3af54.js → BaseInput-d46c6aab.js} +1 -1
  6. package/dist/{BaseUpload-740b1f88.js → BaseUpload-61a6ae84.js} +2 -2
  7. package/dist/{BlockMedia-f5086397.js → BlockMedia-c0765d5f.js} +1 -1
  8. package/dist/{CCallout-1a1feea0.js → CCallout-e9eb8421.js} +2 -2
  9. package/dist/{CDropdownItem-cc274799.js → CDropdownItem-0c39e15e.js} +1 -1
  10. package/dist/{CField-372bd9c7.js → CField-9a36ccbe.js} +1 -1
  11. package/dist/{CPhoneFormat-b273a499.js → CPhoneFormat-14fb2bfe.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js → CSlider.vue_vue_type_style_index_0_lang-473e3473.js} +1 -1
  13. package/dist/{ClientAutocomplete-0f51c1cd.js → ClientAutocomplete-ea948de7.js} +2 -2
  14. package/dist/{ClientModal-1bec5a45.js → ClientModal-03f9a7ad.js} +8 -8
  15. package/dist/{ColorPicker-43c741fb.js → ColorPicker-9d6e8692.js} +38 -38
  16. package/dist/{CompanyModal-adec1d7e.js → CompanyModal-9a2797e4.js} +3 -3
  17. package/dist/{ContentWrapper-48e69342.js → ContentWrapper-cd0abb46.js} +13 -13
  18. package/dist/{CoverBlockSettings-c0a57bee.js → CoverBlockSettings-9e6926e5.js} +8 -8
  19. package/dist/{DocAnswer-f0f7d55d.js → DocAnswer-760aca52.js} +4 -4
  20. package/dist/{DocDetails-0e25552f.js → DocDetails-a49d9706.js} +4 -4
  21. package/dist/{DocForm-2ab0c521.js → DocForm-9296137d.js} +508 -487
  22. package/dist/{DocFormSend-e60808ca.js → DocFormSend-d53627b6.js} +18 -18
  23. package/dist/{DocLinks-20719644.js → DocLinks-ebb434cf.js} +2 -2
  24. package/dist/{DocModalBase-039f53c2.js → DocModalBase-788ecca2.js} +1 -1
  25. package/dist/{DocPrint-aafc72e2.js → DocPrint-76494770.js} +4 -2
  26. package/dist/{DocReceipt-641b141c.js → DocReceipt-91a22031.js} +1 -1
  27. package/dist/{DocSendReminder-aabc0994.js → DocSendReminder-8fb4f42a.js} +1 -1
  28. package/dist/{DocTextEditor-3eb97671.js → DocTextEditor-718701da.js} +8 -8
  29. package/dist/{DocTimeline-9d765ded.js → DocTimeline-745f11ca.js} +3 -3
  30. package/dist/{DocumentClient-8d59d823.js → DocumentClient-9484dac6.js} +7 -7
  31. package/dist/{DocumentLayout-a659ce2a.js → DocumentLayout-b35834b7.js} +143 -143
  32. package/dist/{DocumentLogotype-393d1610.js → DocumentLogotype-ac609ac3.js} +3 -3
  33. package/dist/{DocumentVoided-9294f5d4.js → DocumentVoided-35a08aae.js} +1 -1
  34. package/dist/{EmbedInput-e6a9ee21.js → EmbedInput-b4e82feb.js} +2 -2
  35. package/dist/{EmbedSettings-e31ccfdc.js → EmbedSettings-e1a34a42.js} +3 -3
  36. package/dist/{ErrorCallout-d6c77efa.js → ErrorCallout-028c5129.js} +1 -1
  37. package/dist/{FilePreviewModal-84d6ab65.js → FilePreviewModal-317d0164.js} +5 -5
  38. package/dist/{HeaderSettings-51d44d2d.js → HeaderSettings-6b47fc81.js} +16 -16
  39. package/dist/{ImageSelectModal-051e0929.js → ImageSelectModal-844c6bc3.js} +9 -9
  40. package/dist/{ImageUploadWrapper-dcceec48.js → ImageUploadWrapper-50277abb.js} +12 -12
  41. package/dist/{Index-c2008029.js → Index-05284370.js} +2 -2
  42. package/dist/{Index-c8ded03a.js → Index-150fb782.js} +2 -2
  43. package/dist/{Index-d77ba606.js → Index-15208945.js} +16 -16
  44. package/dist/{Index-c1aa1453.js → Index-19a722f7.js} +2 -2
  45. package/dist/{Index-fd6da129.js → Index-2167f5b1.js} +7 -7
  46. package/dist/{Index-5def7508.js → Index-2d053662.js} +4 -4
  47. package/dist/{Index-36ba2c7c.js → Index-2d8c6cb4.js} +10 -10
  48. package/dist/{Index-494c3112.js → Index-3149ec57.js} +39 -39
  49. package/dist/{Index-3cb4cf49.js → Index-3806962a.js} +4 -4
  50. package/dist/{Index-fdb53118.js → Index-3dab1bc2.js} +4 -4
  51. package/dist/{Index-51ceb867.js → Index-4372b425.js} +14 -14
  52. package/dist/{Index-9a162ce6.js → Index-577f50c3.js} +1 -1
  53. package/dist/{Index-e8a3b12b.js → Index-6cf07e69.js} +4 -4
  54. package/dist/{Index-b33109a3.js → Index-7088fac5.js} +7 -7
  55. package/dist/{Index-3571dbbe.js → Index-7746750d.js} +2 -2
  56. package/dist/{Index-39d0e781.js → Index-7dc7112d.js} +9 -9
  57. package/dist/{Index-5ead0dc5.js → Index-80b0143a.js} +2 -2
  58. package/dist/{Index-c4942c4e.js → Index-891aef3c.js} +9 -9
  59. package/dist/{Index-c5983b2b.js → Index-95d81511.js} +8 -8
  60. package/dist/{Index-42639492.js → Index-9a60040d.js} +4 -4
  61. package/dist/{Index-5b2c568a.js → Index-9db11c22.js} +4 -4
  62. package/dist/{Index-d7a7de69.js → Index-a07fdebf.js} +5 -5
  63. package/dist/{Index-a94f257f.js → Index-b2aac451.js} +6 -6
  64. package/dist/{Index-54695ef1.js → Index-baae6f49.js} +4 -4
  65. package/dist/{Index-75922cfc.js → Index-bbf0ffc1.js} +2 -2
  66. package/dist/{Index-cc56dad6.js → Index-bd96ee96.js} +6 -6
  67. package/dist/{Index-20c0168b.js → Index-c17f0725.js} +1 -1
  68. package/dist/{Index-652a82d0.js → Index-c4573294.js} +6 -6
  69. package/dist/{Index-e9da5a9c.js → Index-d7279e3d.js} +2 -2
  70. package/dist/{Index-a98c290d.js → Index-de524825.js} +8 -8
  71. package/dist/{Index-06045b22.js → Index-e30aeae7.js} +4 -4
  72. package/dist/{Index-f36accd7.js → Index-e3a4b413.js} +4 -4
  73. package/dist/{Index-0932b744.js → Index-ede7b036.js} +2 -2
  74. package/dist/{Index-3bdfc806.js → Index-f87f5334.js} +3 -3
  75. package/dist/{InputToggleRow-79bbd6c6.js → InputToggleRow-88c816d8.js} +1 -1
  76. package/dist/{IsPremiumPreStep-f0524e76.js → IsPremiumPreStep-3665f985.js} +17 -17
  77. package/dist/{ManualPopover-8a1e53a5.js → ManualPopover-db213d5f.js} +1 -1
  78. package/dist/{MediaWrapper-b128c707.js → MediaWrapper-fd7c4863.js} +3 -3
  79. package/dist/{NotBindingText-561df6d3.js → NotBindingText-c2e4a00c.js} +2 -2
  80. package/dist/{PackageGroup-3eaff6a7.js → PackageGroup-d8077d12.js} +12 -12
  81. package/dist/{PdfTerms-27d7ea41.js → PdfTerms-ca12cb7a.js} +5 -5
  82. package/dist/{PdfViewer-5b2bcbb5.js → PdfViewer-0bd06c00.js} +2 -2
  83. package/dist/{PlainHtml-c743e90e.js → PlainHtml-9326653d.js} +1 -1
  84. package/dist/{PriceHeader-287b8219.js → PriceHeader-b8225846.js} +13 -13
  85. package/dist/{SearchApi-1cd32dd3.js → SearchApi-2070fc66.js} +2 -2
  86. package/dist/{Setup-647c8d19.js → Setup-112a316f.js} +1 -1
  87. package/dist/{TermsSettings-28e00bdf.js → TermsSettings-181622d1.js} +7 -7
  88. package/dist/{ThemeColorRow-87aad7e1.js → ThemeColorRow-7dd6979b.js} +3 -3
  89. package/dist/{ToggleBinding-86912659.js → ToggleBinding-482c9df9.js} +3 -3
  90. package/dist/{UploadModal-4065d410.js → UploadModal-fc9b0c7b.js} +3 -3
  91. package/dist/{VideoPlayerInput-1b402e91.js → VideoPlayerInput-c1465b51.js} +3 -3
  92. package/dist/{VideoPlayerSettings-4dcca863.js → VideoPlayerSettings-a3e8a905.js} +4 -4
  93. package/dist/{VideoSelectModal-4f9def15.js → VideoSelectModal-0834b28c.js} +8 -8
  94. package/dist/{answerDocumentMixin-6b6cfdb6.js → answerDocumentMixin-77a657f2.js} +3 -3
  95. package/dist/{debounce-97bb38ac.js → debounce-7a30cd28.js} +13 -13
  96. package/dist/{focusDrawerMixin-0d00dfeb.js → focusDrawerMixin-4b8dc020.js} +1 -1
  97. package/dist/{formComponentsInstall-0e28cca8.js → formComponentsInstall-b7ccf504.js} +12 -12
  98. package/dist/{formDrawerState-68670778.js → formDrawerState-66870f5d.js} +1 -1
  99. package/dist/{formValidationMixin-cb6f10e2.js → formValidationMixin-00449d9c.js} +1 -1
  100. package/dist/{image-456aa00c.js → image-025ccec3.js} +1 -1
  101. package/dist/{index-b8207e2a.js → index-26b885b0.js} +42 -42
  102. package/dist/{index-63ab2d14.js → index-47104181.js} +9 -9
  103. package/dist/{index-1f6e36c5.js → index-75dcd2c7.js} +4 -4
  104. package/dist/{index-e4f936ec.js → index-86143b34.js} +2 -2
  105. package/dist/{index-2710ab1c.js → index-9ed00aac.js} +26 -21
  106. package/dist/{index-ea1c7f84.js → index-c2b908d6.js} +5 -5
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +139 -139
  109. package/dist/{main-b5eb6366.js → main-046afb6a.js} +186 -152
  110. package/dist/{mapFormMixin-e0c45bbd.js → mapFormMixin-55374367.js} +1 -1
  111. package/dist/{publicSenderState-4163b1b6.js → publicSenderState-6a3c9ab7.js} +1 -1
  112. package/dist/{simplebar.min-147772cd.js → simplebar.min-536ba2c3.js} +1 -1
  113. package/dist/style.css +2 -2
  114. package/dist/{template-6e93622c.js → template-b0d55fd8.js} +2 -2
  115. package/dist/{throttle-7a7a1299.js → throttle-c63892db.js} +2 -2
  116. package/dist/{tinycolor-bb8652ea.js → tinycolor-acb2af47.js} +1 -1
  117. package/dist/{tippy.esm-f533f77b.js → tippy.esm-33ba8b66.js} +45 -45
  118. package/dist/{utils-066c47a5.js → utils-0876161d.js} +1 -1
  119. package/dist/{vuedraggable.umd-76911d11.js → vuedraggable.umd-b517a242.js} +63 -63
  120. package/package.json +1 -1
@@ -1,109 +1,109 @@
1
- import { b1 as me, b2 as he, b3 as W, b4 as fe, b5 as q, b6 as N, b7 as ge, b8 as Ce, b9 as ve, ba as ye, j, g as m, n as c, u as K, b as u, az as xe, c as f, C as Y, bb as we, bc as be, h as D, bd as _e, be as ke, B as Le, bf as $e, bg as Se, b0 as Te, bh as De, O as d, X as h, aX as y, bi as Ve, bj as Be, bk as Me, bl as Ie, E as Fe, bm as He, d as Ae, i as L, J as Pe, S as Ee, at as ze, T as Ze, bn as Oe, V as H, aZ as Q, a_ as J, I as P, bo as B, a$ as Re, bp as Ge, bq as I, r as Ue, m as We, a as qe, br as Ne } from "./main-b5eb6366.js";
1
+ import { b2 as fe, b3 as ge, b4 as q, b5 as Ce, b6 as N, b7 as j, b8 as ve, b9 as ye, ba as xe, bb as we, j as K, g as m, n as c, u as Y, b as u, aA as be, c as f, C as Q, bc as _e, bd as ke, J, K as H, h as D, be as Le, bf as $e, B as Se, bg as Te, bh as De, b1 as Ve, bi as Be, P as d, Y as h, aY as y, bj as Me, bk as Ie, bl as Fe, bm as He, E as Ae, bn as Pe, d as Ee, i as L, S as ze, au as Ze, U as Oe, bo as Ue, V as A, a_ as X, a$ as ee, I as E, bp as B, b0 as Re, bq as Ge, br as I, r as We, m as qe, a as Ne, bs as je } from "./main-046afb6a.js";
2
2
  import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-b8207e2a.js";
3
+ import "./index-26b885b0.js";
4
4
  import { v as F } from "./index-805c56e4.js";
5
- import { w as $ } from "./CDropdownItem-cc274799.js";
6
- import { a as b, I as _, b as je, c as Ke } from "./IsPremiumPreStep-f0524e76.js";
7
- import { D as Ye, l as Qe, g as Je, W as Xe, b as et, a as tt } from "./DocumentLayout-a659ce2a.js";
8
- import { s as k } from "./simplebar.min-147772cd.js";
9
- import { B as it } from "./BlockMedia-f5086397.js";
10
- import { d as A, t as at } from "./debounce-97bb38ac.js";
11
- import { c as nt, d as st } from "./template-6e93622c.js";
12
- import { a as ot } from "./tinycolor-bb8652ea.js";
13
- import { m as S } from "./mapFormMixin-e0c45bbd.js";
14
- import { S as lt, C as X, i as rt } from "./formComponentsInstall-0e28cca8.js";
15
- import { f as ct } from "./formValidationMixin-cb6f10e2.js";
16
- import { s as v } from "./formDrawerState-68670778.js";
17
- import { F as ee, d as dt } from "./tippy.esm-f533f77b.js";
18
- import { S as pt } from "./CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js";
19
- import { o as ut, d as mt } from "./vuedraggable.umd-76911d11.js";
20
- import { s as ht } from "./dom-962579a6.js";
21
- import { o as ft } from "./index-2710ab1c.js";
22
- import gt from "./AnswerModal-2b11381b.js";
5
+ import { w as $ } from "./CDropdownItem-0c39e15e.js";
6
+ import { a as b, I as _, b as Ke, c as Ye } from "./IsPremiumPreStep-3665f985.js";
7
+ import { D as Qe, l as Je, g as Xe, W as et, b as tt, a as it } from "./DocumentLayout-b35834b7.js";
8
+ import { s as k } from "./simplebar.min-536ba2c3.js";
9
+ import { B as at } from "./BlockMedia-c0765d5f.js";
10
+ import { d as P, t as nt } from "./debounce-7a30cd28.js";
11
+ import { c as st, d as ot } from "./template-b0d55fd8.js";
12
+ import { a as lt } from "./tinycolor-acb2af47.js";
13
+ import { m as S } from "./mapFormMixin-55374367.js";
14
+ import { S as rt, C as te, i as ct } from "./formComponentsInstall-b7ccf504.js";
15
+ import { f as dt } from "./formValidationMixin-00449d9c.js";
16
+ import { s as v } from "./formDrawerState-66870f5d.js";
17
+ import { F as ie, d as pt } from "./tippy.esm-33ba8b66.js";
18
+ import { S as ut } from "./CSlider.vue_vue_type_style_index_0_lang-473e3473.js";
19
+ import { o as mt, d as ht } from "./vuedraggable.umd-b517a242.js";
20
+ import { s as ft } from "./dom-962579a6.js";
21
+ import { o as gt } from "./index-9ed00aac.js";
22
+ import Ct from "./AnswerModal-7d4a4ad6.js";
23
23
  import "./anime.es-e284c852.js";
24
- import "./image-456aa00c.js";
24
+ import "./image-025ccec3.js";
25
25
  import "./color-71c20583.js";
26
- import "./BaseDatePicker-e1efcf48.js";
27
- import "./ErrorCallout-d6c77efa.js";
28
- import "./AddClientCallout-4afb07ff.js";
29
- import "./ClientAutocomplete-0f51c1cd.js";
30
- import "./SearchApi-1cd32dd3.js";
31
- import "./ClientModal-1bec5a45.js";
32
- import "./CCallout-1a1feea0.js";
33
- import "./CField-372bd9c7.js";
26
+ import "./BaseDatePicker-bb3c9290.js";
27
+ import "./ErrorCallout-028c5129.js";
28
+ import "./AddClientCallout-1d22cff1.js";
29
+ import "./ClientAutocomplete-ea948de7.js";
30
+ import "./SearchApi-2070fc66.js";
31
+ import "./ClientModal-03f9a7ad.js";
32
+ import "./CCallout-e9eb8421.js";
33
+ import "./CField-9a36ccbe.js";
34
34
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
35
- import "./ColorPicker-43c741fb.js";
36
- var Ct = me, vt = he, yt = W;
37
- function xt(i, e, t) {
35
+ import "./ColorPicker-9d6e8692.js";
36
+ var vt = fe, yt = ge, xt = q;
37
+ function wt(i, e, t) {
38
38
  for (var a = -1, n = e.length, s = {}; ++a < n; ) {
39
- var o = e[a], l = Ct(i, o);
40
- t(l, o) && vt(s, yt(o, i), l);
39
+ var o = e[a], l = vt(i, o);
40
+ t(l, o) && yt(s, xt(o, i), l);
41
41
  }
42
42
  return s;
43
43
  }
44
- var wt = xt;
45
- function bt(i, e) {
44
+ var bt = wt;
45
+ function _t(i, e) {
46
46
  return i != null && e in Object(i);
47
47
  }
48
- var _t = bt, kt = fe, Lt = q, $t = "[object Arguments]";
49
- function St(i) {
50
- return Lt(i) && kt(i) == $t;
48
+ var kt = _t, Lt = Ce, $t = N, St = "[object Arguments]";
49
+ function Tt(i) {
50
+ return $t(i) && Lt(i) == St;
51
51
  }
52
- var Tt = St, E = Tt, Dt = q, te = Object.prototype, Vt = te.hasOwnProperty, Bt = te.propertyIsEnumerable, Mt = E(function() {
52
+ var Dt = Tt, z = Dt, Vt = N, ae = Object.prototype, Bt = ae.hasOwnProperty, Mt = ae.propertyIsEnumerable, It = z(function() {
53
53
  return arguments;
54
- }()) ? E : function(i) {
55
- return Dt(i) && Vt.call(i, "callee") && !Bt.call(i, "callee");
56
- }, ie = Mt, It = 9007199254740991;
57
- function Ft(i) {
58
- return typeof i == "number" && i > -1 && i % 1 == 0 && i <= It;
54
+ }()) ? z : function(i) {
55
+ return Vt(i) && Bt.call(i, "callee") && !Mt.call(i, "callee");
56
+ }, ne = It, Ft = 9007199254740991;
57
+ function Ht(i) {
58
+ return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Ft;
59
59
  }
60
- var Ht = Ft, At = W, Pt = ie, Et = N, zt = ge, Zt = Ht, Ot = Ce;
60
+ var At = Ht, Pt = q, Et = ne, zt = j, Zt = ve, Ot = At, Ut = ye;
61
61
  function Rt(i, e, t) {
62
- e = At(e, i);
62
+ e = Pt(e, i);
63
63
  for (var a = -1, n = e.length, s = !1; ++a < n; ) {
64
- var o = Ot(e[a]);
64
+ var o = Ut(e[a]);
65
65
  if (!(s = i != null && t(i, o)))
66
66
  break;
67
67
  i = i[o];
68
68
  }
69
- return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Zt(n) && zt(o, n) && (Et(i) || Pt(i)));
69
+ return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Ot(n) && Zt(o, n) && (zt(i) || Et(i)));
70
70
  }
71
- var Gt = Rt, Ut = _t, Wt = Gt;
72
- function qt(i, e) {
73
- return i != null && Wt(i, e, Ut);
71
+ var Gt = Rt, Wt = kt, qt = Gt;
72
+ function Nt(i, e) {
73
+ return i != null && qt(i, e, Wt);
74
74
  }
75
- var Nt = qt, jt = wt, Kt = Nt;
76
- function Yt(i, e) {
77
- return jt(i, e, function(t, a) {
78
- return Kt(i, a);
75
+ var jt = Nt, Kt = bt, Yt = jt;
76
+ function Qt(i, e) {
77
+ return Kt(i, e, function(t, a) {
78
+ return Yt(i, a);
79
79
  });
80
80
  }
81
- var Qt = Yt;
82
- function Jt(i, e) {
81
+ var Jt = Qt;
82
+ function Xt(i, e) {
83
83
  for (var t = -1, a = e.length, n = i.length; ++t < a; )
84
84
  i[n + t] = e[t];
85
85
  return i;
86
86
  }
87
- var Xt = Jt, z = ve, e1 = ie, t1 = N, Z = z ? z.isConcatSpreadable : void 0;
88
- function i1(i) {
89
- return t1(i) || e1(i) || !!(Z && i && i[Z]);
87
+ var e1 = Xt, Z = xe, t1 = ne, i1 = j, O = Z ? Z.isConcatSpreadable : void 0;
88
+ function a1(i) {
89
+ return i1(i) || t1(i) || !!(O && i && i[O]);
90
90
  }
91
- var a1 = i1, n1 = Xt, s1 = a1;
92
- function ae(i, e, t, a, n) {
91
+ var n1 = a1, s1 = e1, o1 = n1;
92
+ function se(i, e, t, a, n) {
93
93
  var s = -1, o = i.length;
94
- for (t || (t = s1), n || (n = []); ++s < o; ) {
94
+ for (t || (t = o1), n || (n = []); ++s < o; ) {
95
95
  var l = i[s];
96
- e > 0 && t(l) ? e > 1 ? ae(l, e - 1, t, a, n) : n1(n, l) : a || (n[n.length] = l);
96
+ e > 0 && t(l) ? e > 1 ? se(l, e - 1, t, a, n) : s1(n, l) : a || (n[n.length] = l);
97
97
  }
98
98
  return n;
99
99
  }
100
- var o1 = ae, l1 = o1;
101
- function r1(i) {
100
+ var l1 = se, r1 = l1;
101
+ function c1(i) {
102
102
  var e = i == null ? 0 : i.length;
103
- return e ? l1(i, 1) : [];
103
+ return e ? r1(i, 1) : [];
104
104
  }
105
- var c1 = r1;
106
- function d1(i, e, t) {
105
+ var d1 = c1;
106
+ function p1(i, e, t) {
107
107
  switch (t.length) {
108
108
  case 0:
109
109
  return i.call(e);
@@ -116,55 +116,55 @@ function d1(i, e, t) {
116
116
  }
117
117
  return i.apply(e, t);
118
118
  }
119
- var p1 = d1, u1 = p1, O = Math.max;
120
- function m1(i, e, t) {
121
- return e = O(e === void 0 ? i.length - 1 : e, 0), function() {
122
- for (var a = arguments, n = -1, s = O(a.length - e, 0), o = Array(s); ++n < s; )
119
+ var u1 = p1, m1 = u1, U = Math.max;
120
+ function h1(i, e, t) {
121
+ return e = U(e === void 0 ? i.length - 1 : e, 0), function() {
122
+ for (var a = arguments, n = -1, s = U(a.length - e, 0), o = Array(s); ++n < s; )
123
123
  o[n] = a[e + n];
124
124
  n = -1;
125
125
  for (var l = Array(e + 1); ++n < e; )
126
126
  l[n] = a[n];
127
- return l[e] = t(o), u1(i, this, l);
127
+ return l[e] = t(o), m1(i, this, l);
128
128
  };
129
129
  }
130
- var h1 = m1;
131
- function f1(i) {
130
+ var f1 = h1;
131
+ function g1(i) {
132
132
  return function() {
133
133
  return i;
134
134
  };
135
135
  }
136
- var g1 = f1;
137
- function C1(i) {
136
+ var C1 = g1;
137
+ function v1(i) {
138
138
  return i;
139
139
  }
140
- var v1 = C1, y1 = g1, R = ye, x1 = v1, w1 = R ? function(i, e) {
140
+ var y1 = v1, x1 = C1, R = we, w1 = y1, b1 = R ? function(i, e) {
141
141
  return R(i, "toString", {
142
142
  configurable: !0,
143
143
  enumerable: !1,
144
- value: y1(e),
144
+ value: x1(e),
145
145
  writable: !0
146
146
  });
147
- } : x1, b1 = w1, _1 = 800, k1 = 16, L1 = Date.now;
148
- function $1(i) {
147
+ } : w1, _1 = b1, k1 = 800, L1 = 16, $1 = Date.now;
148
+ function S1(i) {
149
149
  var e = 0, t = 0;
150
150
  return function() {
151
- var a = L1(), n = k1 - (a - t);
151
+ var a = $1(), n = L1 - (a - t);
152
152
  if (t = a, n > 0) {
153
- if (++e >= _1)
153
+ if (++e >= k1)
154
154
  return arguments[0];
155
155
  } else
156
156
  e = 0;
157
157
  return i.apply(void 0, arguments);
158
158
  };
159
159
  }
160
- var S1 = $1, T1 = b1, D1 = S1, V1 = D1(T1), B1 = V1, M1 = c1, I1 = h1, F1 = B1;
161
- function H1(i) {
162
- return F1(I1(i, void 0, M1), i + "");
160
+ var T1 = S1, D1 = _1, V1 = T1, B1 = V1(D1), M1 = B1, I1 = d1, F1 = f1, H1 = M1;
161
+ function A1(i) {
162
+ return H1(F1(i, void 0, I1), i + "");
163
163
  }
164
- var A1 = H1, P1 = Qt, E1 = A1, z1 = E1(function(i, e) {
165
- return i == null ? {} : P1(i, e);
166
- }), Z1 = z1;
167
- const O1 = /* @__PURE__ */ j(Z1);
164
+ var P1 = A1, E1 = Jt, z1 = P1, Z1 = z1(function(i, e) {
165
+ return i == null ? {} : E1(i, e);
166
+ }), O1 = Z1;
167
+ const U1 = /* @__PURE__ */ K(O1);
168
168
  const R1 = {
169
169
  i18nOptions: {
170
170
  namespaces: "DocumentTemplateFormModal",
@@ -317,18 +317,18 @@ var G1 = function() {
317
317
  }, 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) {
318
318
  e.keepClients = a;
319
319
  }, 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);
320
- }, U1 = [], W1 = /* @__PURE__ */ c(
320
+ }, W1 = [], q1 = /* @__PURE__ */ c(
321
321
  R1,
322
322
  G1,
323
- U1,
323
+ W1,
324
324
  !1,
325
325
  null,
326
326
  "f544bca9",
327
327
  null,
328
328
  null
329
329
  );
330
- const ne = W1.exports;
331
- function q1(i, { availableProducts: e }) {
330
+ const oe = q1.exports;
331
+ function N1(i, { availableProducts: e }) {
332
332
  if (!i)
333
333
  throw new Error("Missing parameter templateId");
334
334
  const t = e, a = Object.keys(t).find((n) => {
@@ -341,10 +341,10 @@ function q1(i, { availableProducts: e }) {
341
341
  });
342
342
  return a ? t[a] : null;
343
343
  }
344
- async function N1(i) {
344
+ async function j1(i) {
345
345
  if (!i)
346
346
  throw new Error("Missing argument stripeProduct");
347
- const e = i == null ? void 0 : i.prices[0], { data: t } = await xe.createCheckoutSession({
347
+ const e = i == null ? void 0 : i.prices[0], { data: t } = await be.createCheckoutSession({
348
348
  items: [
349
349
  {
350
350
  stripePriceStripeId: e.stripeId,
@@ -356,21 +356,21 @@ async function N1(i) {
356
356
  }), { redirectUrl: a } = t;
357
357
  window.open(a, "_blank");
358
358
  }
359
- function se(i, { availableProducts: e }) {
359
+ function le(i, { availableProducts: e }) {
360
360
  var n, s, o;
361
361
  let t = null;
362
- const a = q1(i.templateId, { availableProducts: e });
362
+ const a = N1(i.templateId, { availableProducts: e });
363
363
  return a && (t = {
364
- 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 }),
364
+ price: Y((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
365
365
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
366
- onBuy: async () => N1(a)
366
+ onBuy: async () => j1(a)
367
367
  }), t;
368
368
  }
369
- const j1 = {
369
+ const K1 = {
370
370
  name: "GalleryTemplateModal",
371
371
  components: {
372
372
  simplebar: k,
373
- DocumentLayout: Ye,
373
+ DocumentLayout: Qe,
374
374
  IsPremium: b,
375
375
  IsPremiumPreStep: _
376
376
  },
@@ -436,10 +436,11 @@ const j1 = {
436
436
  computed: {
437
437
  ...g({
438
438
  isLoading: "templates/isPosting",
439
- stripeProducts: "stripe/products"
439
+ stripeProducts: "stripe/products",
440
+ isSuperUser: "application/isSuperUser"
440
441
  }),
441
442
  previewDocument() {
442
- const { data: i, defaultData: e } = this.template, t = new Y({
443
+ const { data: i, defaultData: e } = this.template, t = new Q({
443
444
  data: {
444
445
  ...e,
445
446
  template: i,
@@ -449,10 +450,13 @@ const j1 = {
449
450
  getters: this.$store.getters
450
451
  });
451
452
  return this.sender && (t.sender = this.sender), t;
453
+ },
454
+ allowCopyTemplateLink() {
455
+ return !this.isPublicForm && (f.showAdminSettings || this.isSuperUser());
452
456
  }
453
457
  },
454
458
  created() {
455
- this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = we.on(
459
+ this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = _e.on(
456
460
  "event",
457
461
  async ({ type: i, action: e, data: t }) => {
458
462
  var a;
@@ -465,7 +469,7 @@ const j1 = {
465
469
  isVisibleApp: !0,
466
470
  includePurchaseInfo: !0
467
471
  }, o = await this.fetchGallery(s);
468
- this.privateProduct = se(
472
+ this.privateProduct = le(
469
473
  o[0],
470
474
  { availableProducts: this.stripeProducts }
471
475
  );
@@ -481,7 +485,7 @@ const j1 = {
481
485
  const i = this.template.id;
482
486
  i || (this.templateStat = null);
483
487
  try {
484
- const { data: e } = await be.get(i);
488
+ const { data: e } = await ke.get(i);
485
489
  this.templateStat = e;
486
490
  } catch {
487
491
  this.templateStat = null;
@@ -495,10 +499,14 @@ const j1 = {
495
499
  },
496
500
  async saveAsTemplate() {
497
501
  this.template && typeof this.onSaveTemplate == "function" && (this.didSave = await this.onSaveTemplate(this.template));
502
+ },
503
+ async copyToClipboard(i) {
504
+ const e = `${f.baseUrl}/template/${i}`;
505
+ await J(e) && H("info", this.$t("copyMessage"));
498
506
  }
499
507
  }
500
508
  };
501
- var K1 = function() {
509
+ var Y1 = function() {
502
510
  var a;
503
511
  var e = this, t = e._self._c;
504
512
  return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset,", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
@@ -514,22 +522,24 @@ var K1 = function() {
514
522
  } }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
515
523
  return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
516
524
  var o;
517
- return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
525
+ return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
518
526
  e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
519
527
  } } }, [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()];
520
528
  } }], null, !0) })];
521
- } }]) })], 2)])]);
522
- }, Y1 = [], Q1 = /* @__PURE__ */ c(
523
- j1,
529
+ } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "admin", wide: "" }, on: { click: function(n) {
530
+ return e.copyToClipboard(e.template.id);
531
+ } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
532
+ }, Q1 = [], J1 = /* @__PURE__ */ c(
524
533
  K1,
525
534
  Y1,
535
+ Q1,
526
536
  !1,
527
537
  null,
528
- "e144913e",
538
+ "74568361",
529
539
  null,
530
540
  null
531
541
  );
532
- const J1 = Q1.exports, X1 = {
542
+ const X1 = J1.exports, e2 = {
533
543
  name: "GalleryLogic",
534
544
  i18nOptions: {
535
545
  namespaces: "GalleryLogic",
@@ -623,7 +633,8 @@ const J1 = Q1.exports, X1 = {
623
633
  { key: "conference", label: this.$t("categories.conference") },
624
634
  { key: "event", label: this.$t("categories.event") },
625
635
  { key: "staffing", label: this.$t("categories.staffing") },
626
- { key: "cleaning", label: this.$t("categories.cleaning") }
636
+ { key: "cleaning", label: this.$t("categories.cleaning") },
637
+ { key: "moving", label: this.$t("categories.moving") }
627
638
  ]
628
639
  };
629
640
  },
@@ -653,7 +664,7 @@ const J1 = Q1.exports, X1 = {
653
664
  }
654
665
  },
655
666
  beforeCreate() {
656
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", je);
667
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ke);
657
668
  },
658
669
  async created() {
659
670
  var t, a, n, s;
@@ -688,7 +699,7 @@ const J1 = Q1.exports, X1 = {
688
699
  const e = await this.fetchGallery(i);
689
700
  this.templateGalleryItems = (e || []).map((t) => {
690
701
  if (this.canPurchase && t.isPurchasable) {
691
- const a = se(t, {
702
+ const a = le(t, {
692
703
  availableProducts: this.stripeProducts
693
704
  });
694
705
  a && (t.product = a);
@@ -712,7 +723,7 @@ const J1 = Q1.exports, X1 = {
712
723
  isVisibleApp: !0,
713
724
  includePurchaseInfo: !0
714
725
  }, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
715
- return a ? (_e(a), new ke(a)) : null;
726
+ return a ? (Le(a), new $e(a)) : null;
716
727
  },
717
728
  onUseTemplate(i) {
718
729
  if (!i)
@@ -735,7 +746,7 @@ const J1 = Q1.exports, X1 = {
735
746
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
736
747
  };
737
748
  this.$modal.show(
738
- J1,
749
+ X1,
739
750
  {
740
751
  template: i,
741
752
  fetchGallery: this.fetchGallery,
@@ -790,30 +801,30 @@ const J1 = Q1.exports, X1 = {
790
801
  selectGalleryItem: this.selectGalleryItem
791
802
  });
792
803
  }
793
- }, e2 = null, t2 = null;
794
- var i2 = /* @__PURE__ */ c(
795
- X1,
804
+ }, t2 = null, i2 = null;
805
+ var a2 = /* @__PURE__ */ c(
796
806
  e2,
797
807
  t2,
808
+ i2,
798
809
  !1,
799
810
  null,
800
811
  null,
801
812
  null,
802
813
  null
803
814
  );
804
- const a2 = i2.exports;
805
- const n2 = {
815
+ const n2 = a2.exports;
816
+ const s2 = {
806
817
  name: "DocumentIcon",
807
- truncate: Le,
818
+ truncate: Se,
808
819
  inject: {
809
820
  components: {
810
821
  default: {
811
- BlockMedia: it
822
+ BlockMedia: at
812
823
  }
813
824
  }
814
825
  }
815
826
  };
816
- var s2 = function(e, t) {
827
+ var o2 = function(e, t) {
817
828
  return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
818
829
  t.data.staticClass,
819
830
  t.data.class,
@@ -829,18 +840,18 @@ var s2 = function(e, t) {
829
840
  } }) : 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(
830
841
  t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })
831
842
  ) } }) : 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)]);
832
- }, o2 = [], l2 = /* @__PURE__ */ c(
833
- n2,
843
+ }, l2 = [], r2 = /* @__PURE__ */ c(
834
844
  s2,
835
845
  o2,
846
+ l2,
836
847
  !0,
837
848
  null,
838
849
  "e2f4722e",
839
850
  null,
840
851
  null
841
852
  );
842
- const r2 = l2.exports;
843
- const c2 = {
853
+ const c2 = r2.exports;
854
+ const d2 = {
844
855
  name: "HorizontalScroll",
845
856
  components: {
846
857
  Simplebar: k
@@ -895,7 +906,7 @@ const c2 = {
895
906
  }
896
907
  }
897
908
  };
898
- var d2 = function() {
909
+ var p2 = function() {
899
910
  var e = this, t = e._self._c;
900
911
  return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left max-sm:hidden", on: { click: function(a) {
901
912
  return e.go(-1);
@@ -908,18 +919,18 @@ var d2 = function() {
908
919
  return e.$emit("expand");
909
920
  } } })];
910
921
  })], 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)]);
911
- }, p2 = [], u2 = /* @__PURE__ */ c(
912
- c2,
922
+ }, u2 = [], m2 = /* @__PURE__ */ c(
913
923
  d2,
914
924
  p2,
925
+ u2,
915
926
  !1,
916
927
  null,
917
928
  "31e10485",
918
929
  null,
919
930
  null
920
931
  );
921
- const m2 = u2.exports;
922
- const h2 = {
932
+ const h2 = m2.exports;
933
+ const f2 = {
923
934
  name: "DocumentFormRecent",
924
935
  i18nOptions: {
925
936
  namespaces: "DocumentFormRecent",
@@ -965,7 +976,7 @@ const h2 = {
965
976
  async fetchDocuments(i) {
966
977
  const e = this.query ? 180 : 90, t = {
967
978
  createdAt: {
968
- $gte: this.$formatDate($e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
979
+ $gte: this.$formatDate(Te(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
969
980
  },
970
981
  // Only provide or if there is a search query to filter on
971
982
  ...this.query && {
@@ -982,7 +993,7 @@ const h2 = {
982
993
  }
983
994
  ]
984
995
  }
985
- }, { data: a } = await Se.getAll({
996
+ }, { data: a } = await De.getAll({
986
997
  lean: !0,
987
998
  filter: encodeURIComponent(JSON.stringify(t)),
988
999
  fields: "clients,data.name,createdAt",
@@ -992,7 +1003,7 @@ const h2 = {
992
1003
  }), { items: n = [] } = a || {};
993
1004
  return n;
994
1005
  },
995
- onLoadDocuments: A(async function() {
1006
+ onLoadDocuments: P(async function() {
996
1007
  this.isLoading = !0, this.hasItems = !0;
997
1008
  const e = await this.fetchDocuments();
998
1009
  (!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
@@ -1007,7 +1018,7 @@ const h2 = {
1007
1018
  }
1008
1019
  }
1009
1020
  };
1010
- var f2 = function() {
1021
+ var g2 = function() {
1011
1022
  var e = this, t = e._self._c;
1012
1023
  return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { staticClass: "hidden md:flex", attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
1013
1024
  e.query = a;
@@ -1034,18 +1045,18 @@ var f2 = function() {
1034
1045
  }), 0)];
1035
1046
  } }], null, !0) })];
1036
1047
  } }]) })]], 2)]);
1037
- }, g2 = [], C2 = /* @__PURE__ */ c(
1038
- h2,
1048
+ }, C2 = [], v2 = /* @__PURE__ */ c(
1039
1049
  f2,
1040
1050
  g2,
1051
+ C2,
1041
1052
  !1,
1042
1053
  null,
1043
1054
  "496e96d5",
1044
1055
  null,
1045
1056
  null
1046
1057
  );
1047
- const v2 = C2.exports;
1048
- const y2 = {
1058
+ const y2 = v2.exports;
1059
+ const x2 = {
1049
1060
  i18nOptions: {
1050
1061
  namespaces: "TemplateSelector",
1051
1062
  messages: {
@@ -1090,10 +1101,10 @@ const y2 = {
1090
1101
  name: "TemplateSelector",
1091
1102
  mixins: [$],
1092
1103
  components: {
1093
- HorizontalScroll: m2,
1094
- DocumentIcon: r2,
1095
- DocumentRecent: v2,
1096
- GalleryLogic: a2,
1104
+ HorizontalScroll: h2,
1105
+ DocumentIcon: c2,
1106
+ DocumentRecent: y2,
1107
+ GalleryLogic: n2,
1097
1108
  IsPremiumPreStep: _
1098
1109
  },
1099
1110
  props: {
@@ -1156,7 +1167,8 @@ const y2 = {
1156
1167
  companySettings: "settings/allCompanySettings",
1157
1168
  user: "application/user",
1158
1169
  company: "application/company",
1159
- isAuthenticatedCRM: "settings/isAuthenticatedCRM"
1170
+ isAuthenticatedCRM: "settings/isAuthenticatedCRM",
1171
+ isSuperUser: "application/isSuperUser"
1160
1172
  }),
1161
1173
  fallbackMedia() {
1162
1174
  return {
@@ -1185,6 +1197,9 @@ const y2 = {
1185
1197
  },
1186
1198
  onSaveTemplate: this.saveTemplate
1187
1199
  };
1200
+ },
1201
+ allowCopyTemplateLink() {
1202
+ return f.showAdminSettings || this.isSuperUser();
1188
1203
  }
1189
1204
  },
1190
1205
  created() {
@@ -1212,7 +1227,7 @@ const y2 = {
1212
1227
  },
1213
1228
  async saveTemplate(i) {
1214
1229
  try {
1215
- const { data: e } = i, t = Te(e, [
1230
+ const { data: e } = i, t = Ve(e, [
1216
1231
  "_id",
1217
1232
  "id",
1218
1233
  "companyId",
@@ -1226,7 +1241,7 @@ const y2 = {
1226
1241
  },
1227
1242
  async openTemplateFormModal({ document: i = null, template: e = null }) {
1228
1243
  this.$modal.show(
1229
- ne,
1244
+ oe,
1230
1245
  {
1231
1246
  document: i,
1232
1247
  template: e,
@@ -1243,15 +1258,19 @@ const y2 = {
1243
1258
  );
1244
1259
  },
1245
1260
  async fetchGallery(i = {}) {
1246
- const { data: e } = await De.get(i);
1261
+ const { data: e } = await Be.get(i);
1247
1262
  return e;
1248
1263
  },
1249
1264
  canUseTemplate(i) {
1250
1265
  return i.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
1266
+ },
1267
+ async copyToClipboard(i) {
1268
+ const e = `${f.baseUrl}/template/${i}`;
1269
+ await J(e) && H("info", this.$t("copyMessage"));
1251
1270
  }
1252
1271
  }
1253
1272
  };
1254
- var x2 = function() {
1273
+ var w2 = function() {
1255
1274
  var e = this, t = e._self._c;
1256
1275
  return t("div", { staticClass: "w-full h-full px-4 pt-10 pb-10 overflow-y-auto bg-white md:pt-16 md:px-10 rounded-2xl" }, [t("div", { staticClass: "max-w-5xl mx-auto font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
1257
1276
  return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
@@ -1273,9 +1292,11 @@ var x2 = function() {
1273
1292
  return e.onEditTemplate(n.id);
1274
1293
  } } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:template") })) + " ")]) : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "edit" }, on: { click: function(s) {
1275
1294
  return e.openTemplateFormModal({ template: n });
1276
- } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
1295
+ } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e.allowCopyTemplateLink ? [t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "admin" }, on: { click: function(s) {
1296
+ return e.copyToClipboard(n.id);
1297
+ } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } })] : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
1277
1298
  return e.removeTemplate({ template: n });
1278
- } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
1299
+ } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 2)], 1);
1279
1300
  }), 1)];
1280
1301
  } }]) })], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps, "gallery-category": e.galleryCategory }, scopedSlots: e._u([{ key: "default", fn: function({
1281
1302
  galleryItems: a,
@@ -1296,18 +1317,18 @@ var x2 = function() {
1296
1317
  } } }, [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()]);
1297
1318
  }), 1)], 1)];
1298
1319
  } }], null, !1, 3899545480) })] : 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)]);
1299
- }, w2 = [], b2 = /* @__PURE__ */ c(
1300
- y2,
1320
+ }, b2 = [], _2 = /* @__PURE__ */ c(
1301
1321
  x2,
1302
1322
  w2,
1323
+ b2,
1303
1324
  !1,
1304
1325
  null,
1305
- "0fbbec4c",
1326
+ "093c4702",
1306
1327
  null,
1307
1328
  null
1308
1329
  );
1309
- const _2 = b2.exports;
1310
- const k2 = (i) => {
1330
+ const k2 = _2.exports;
1331
+ const L2 = (i) => {
1311
1332
  const e = Array(2).fill().map(() => d());
1312
1333
  return [
1313
1334
  {
@@ -1329,7 +1350,7 @@ const k2 = (i) => {
1329
1350
  nodeId: e[1]
1330
1351
  }
1331
1352
  ];
1332
- }, L2 = (i, e = "en") => [
1353
+ }, $2 = (i, e = "en") => [
1333
1354
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
1334
1355
  {
1335
1356
  key: `files-${i}`,
@@ -1338,13 +1359,13 @@ const k2 = (i) => {
1338
1359
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
1339
1360
  }
1340
1361
  }
1341
- ], $2 = ({ document: i = null }) => {
1362
+ ], S2 = ({ document: i = null }) => {
1342
1363
  const e = d(), { language: t } = i || {};
1343
1364
  return {
1344
- readView: k2(e),
1345
- validation: L2(e, t)
1365
+ readView: L2(e),
1366
+ validation: $2(e, t)
1346
1367
  };
1347
- }, S2 = () => [
1368
+ }, T2 = () => [
1348
1369
  {
1349
1370
  itemId: "presentation",
1350
1371
  itemType: "presentation",
@@ -1352,11 +1373,11 @@ const k2 = (i) => {
1352
1373
  parentId: "0",
1353
1374
  nodeId: d()
1354
1375
  }
1355
- ], T2 = () => ({
1356
- readView: S2(),
1376
+ ], D2 = () => ({
1377
+ readView: T2(),
1357
1378
  validation: []
1358
1379
  // all relevant data is either within base doc or company settings etc
1359
- }), D2 = () => {
1380
+ }), V2 = () => {
1360
1381
  const i = Array(2).fill().map(() => d());
1361
1382
  return [
1362
1383
  {
@@ -1379,19 +1400,19 @@ const k2 = (i) => {
1379
1400
  // uniqid(),
1380
1401
  }
1381
1402
  ];
1382
- }, V2 = (i = "en") => [
1403
+ }, B2 = (i = "en") => [
1383
1404
  {
1384
1405
  key: "multiGroupPricing-title",
1385
1406
  anyOf: [{ type: "string" }, { type: "null" }],
1386
1407
  defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
1387
1408
  }
1388
- ], B2 = ({ document: i = null }) => {
1409
+ ], M2 = ({ document: i = null }) => {
1389
1410
  const { language: e } = i || {};
1390
1411
  return {
1391
- readView: D2(),
1392
- validation: V2(e)
1412
+ readView: V2(),
1413
+ validation: B2(e)
1393
1414
  };
1394
- }, M2 = () => [
1415
+ }, I2 = () => [
1395
1416
  {
1396
1417
  itemId: "terms",
1397
1418
  itemType: "termsDisclaimer",
@@ -1409,7 +1430,7 @@ const k2 = (i) => {
1409
1430
  parentId: "0",
1410
1431
  nodeId: d()
1411
1432
  }
1412
- ], I2 = () => [
1433
+ ], F2 = () => [
1413
1434
  {
1414
1435
  key: "terms",
1415
1436
  anyOf: [
@@ -1417,10 +1438,10 @@ const k2 = (i) => {
1417
1438
  { type: "null" }
1418
1439
  ]
1419
1440
  }
1420
- ], F2 = () => ({
1421
- readView: M2(),
1422
- validation: I2()
1423
- }), H2 = () => {
1441
+ ], H2 = () => ({
1442
+ readView: I2(),
1443
+ validation: F2()
1444
+ }), A2 = () => {
1424
1445
  const i = Array(5).fill().map(() => d());
1425
1446
  return [
1426
1447
  {
@@ -1469,7 +1490,7 @@ const k2 = (i) => {
1469
1490
  nodeId: i[4]
1470
1491
  }
1471
1492
  ];
1472
- }, A2 = () => ({
1493
+ }, P2 = () => ({
1473
1494
  clients: [{
1474
1495
  name: "Pernilla P.",
1475
1496
  email: "pernilla@mail.se",
@@ -1479,20 +1500,20 @@ const k2 = (i) => {
1479
1500
  deliveryTypes: ["email"],
1480
1501
  answerMethod: { accept: "signature", deny: "button" }
1481
1502
  }]
1482
- }), P2 = (i = "en") => [
1503
+ }), E2 = (i = "en") => [
1483
1504
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
1484
1505
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
1485
1506
  { key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
1486
- ], E2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1507
+ ], z2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1487
1508
  const { language: a } = e || {};
1488
1509
  let n = null;
1489
- return typeof t == "function" ? n = t() : i && (n = A2()), {
1490
- readView: H2(),
1491
- validation: P2(a),
1510
+ return typeof t == "function" ? n = t() : i && (n = P2()), {
1511
+ readView: A2(),
1512
+ validation: E2(a),
1492
1513
  // Client / company will for now always exist on doc and in validation
1493
1514
  ...n && { data: n }
1494
1515
  };
1495
- }, z2 = (i) => {
1516
+ }, Z2 = (i) => {
1496
1517
  const e = Array(3).fill().map(() => d());
1497
1518
  return [
1498
1519
  {
@@ -1521,7 +1542,7 @@ const k2 = (i) => {
1521
1542
  nodeId: e[2]
1522
1543
  }
1523
1544
  ];
1524
- }, Z2 = (i) => [
1545
+ }, O2 = (i) => [
1525
1546
  {
1526
1547
  key: `estimatedTimeComplete-${i}`,
1527
1548
  type: "object",
@@ -1542,7 +1563,7 @@ const k2 = (i) => {
1542
1563
  }
1543
1564
  }
1544
1565
  }
1545
- ], O2 = (i) => ({
1566
+ ], U2 = (i) => ({
1546
1567
  [`estimatedTimeComplete-${i}`]: {
1547
1568
  value: 4,
1548
1569
  unitType: "hour"
@@ -1550,9 +1571,9 @@ const k2 = (i) => {
1550
1571
  }), R2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1551
1572
  const t = d();
1552
1573
  let a = null;
1553
- return typeof e == "function" ? a = e(t) : i && (a = O2(t)), {
1554
- readView: z2(t),
1555
- validation: Z2(t),
1574
+ return typeof e == "function" ? a = e(t) : i && (a = U2(t)), {
1575
+ readView: Z2(t),
1576
+ validation: O2(t),
1556
1577
  ...a && { data: a }
1557
1578
  };
1558
1579
  }, G2 = () => {
@@ -1589,7 +1610,7 @@ const k2 = (i) => {
1589
1610
  nodeId: i[2]
1590
1611
  }
1591
1612
  ];
1592
- }, U2 = () => [
1613
+ }, W2 = () => [
1593
1614
  {
1594
1615
  key: "estimatedWorkDates",
1595
1616
  type: "object",
@@ -1598,10 +1619,10 @@ const k2 = (i) => {
1598
1619
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
1599
1620
  }
1600
1621
  }
1601
- ], W2 = () => ({
1622
+ ], q2 = () => ({
1602
1623
  readView: G2(),
1603
- validation: U2()
1604
- }), q2 = () => {
1624
+ validation: W2()
1625
+ }), N2 = () => {
1605
1626
  const i = Array(5).fill().map(() => d());
1606
1627
  return [
1607
1628
  {
@@ -1667,7 +1688,7 @@ const k2 = (i) => {
1667
1688
  nodeId: i[4]
1668
1689
  }
1669
1690
  ];
1670
- }, N2 = () => [
1691
+ }, j2 = () => [
1671
1692
  {
1672
1693
  key: "extraWorkConstruction",
1673
1694
  extraWorkConstruction: {
@@ -1691,11 +1712,11 @@ const k2 = (i) => {
1691
1712
  }
1692
1713
  }
1693
1714
  }
1694
- ], j2 = () => ({
1695
- readView: q2(),
1696
- validation: N2()
1715
+ ], K2 = () => ({
1716
+ readView: N2(),
1717
+ validation: j2()
1697
1718
  // Client / company will for now always exist on doc and in validation
1698
- }), K2 = () => {
1719
+ }), Y2 = () => {
1699
1720
  const i = Array(3).fill().map(() => d());
1700
1721
  return [
1701
1722
  {
@@ -1735,7 +1756,7 @@ const k2 = (i) => {
1735
1756
  nodeId: i[2]
1736
1757
  }
1737
1758
  ];
1738
- }, Y2 = () => [
1759
+ }, Q2 = () => [
1739
1760
  {
1740
1761
  key: "extraWorkTimeImpact",
1741
1762
  anyOf: [
@@ -1759,10 +1780,10 @@ const k2 = (i) => {
1759
1780
  }
1760
1781
  ]
1761
1782
  }
1762
- ], Q2 = () => ({
1763
- readView: K2(),
1764
- validation: Y2()
1765
- }), J2 = () => {
1783
+ ], J2 = () => ({
1784
+ readView: Y2(),
1785
+ validation: Q2()
1786
+ }), X2 = () => {
1766
1787
  const i = Array(5).fill().map(() => d());
1767
1788
  return [
1768
1789
  {
@@ -1815,13 +1836,13 @@ const k2 = (i) => {
1815
1836
  nodeId: i[4]
1816
1837
  }
1817
1838
  ];
1818
- }, X2 = () => [
1839
+ }, ei = () => [
1819
1840
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
1820
1841
  { key: "notBinding", type: "boolean" }
1821
- ], ei = () => ({
1822
- readView: J2(),
1823
- validation: X2()
1824
- }), ti = (i) => {
1842
+ ], ti = () => ({
1843
+ readView: X2(),
1844
+ validation: ei()
1845
+ }), ii = (i) => {
1825
1846
  const e = Array(2).fill().map(() => d());
1826
1847
  return [
1827
1848
  {
@@ -1843,22 +1864,22 @@ const k2 = (i) => {
1843
1864
  nodeId: e[1]
1844
1865
  }
1845
1866
  ];
1846
- }, ii = (i) => [
1867
+ }, ai = (i) => [
1847
1868
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
1848
1869
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
1849
- ], ai = (i) => ({
1870
+ ], ni = (i) => ({
1850
1871
  [`data.title-${i}`]: "My custom text",
1851
1872
  [`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>"
1852
- }), ni = ({ includeMockData: i = !1, contentData: e = null }) => {
1873
+ }), si = ({ includeMockData: i = !1, contentData: e = null }) => {
1853
1874
  const t = d();
1854
1875
  let a = null;
1855
- return typeof e == "function" ? a = e(t) : i && (a = ai(t)), {
1856
- readView: ti(t),
1857
- validation: ii(t),
1876
+ return typeof e == "function" ? a = e(t) : i && (a = ni(t)), {
1877
+ readView: ii(t),
1878
+ validation: ai(t),
1858
1879
  ...a && { data: a },
1859
1880
  onAddFnName: "conditionalOnAdd"
1860
1881
  };
1861
- }, si = (i) => [
1882
+ }, oi = (i) => [
1862
1883
  {
1863
1884
  itemId: "coverBlock",
1864
1885
  itemType: "coverBlock",
@@ -1868,7 +1889,7 @@ const k2 = (i) => {
1868
1889
  parentId: "0",
1869
1890
  nodeId: d()
1870
1891
  }
1871
- ], oi = (i, e = "en") => [
1892
+ ], li = (i, e = "en") => [
1872
1893
  {
1873
1894
  key: `coverBlock-${i}`,
1874
1895
  defaultValue: {
@@ -1885,7 +1906,7 @@ const k2 = (i) => {
1885
1906
  },
1886
1907
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
1887
1908
  }
1888
- ], li = (i) => ({
1909
+ ], ri = (i) => ({
1889
1910
  [`data.coverBlock-${i}`]: {
1890
1911
  text: "<h1>We know communication</h1>",
1891
1912
  cover: {
@@ -1895,15 +1916,15 @@ const k2 = (i) => {
1895
1916
  blur: 0
1896
1917
  }
1897
1918
  }
1898
- }), ri = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1919
+ }), ci = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1899
1920
  const a = d(), { language: n } = e || {};
1900
1921
  let s = null;
1901
- return typeof t == "function" ? s = t(a) : i && (s = li(a)), {
1902
- readView: si(a),
1903
- validation: oi(a, n),
1922
+ return typeof t == "function" ? s = t(a) : i && (s = ri(a)), {
1923
+ readView: oi(a),
1924
+ validation: li(a, n),
1904
1925
  ...s && { data: s }
1905
1926
  };
1906
- }, ci = ({ language: i = "en" } = {}) => {
1927
+ }, di = ({ language: i = "en" } = {}) => {
1907
1928
  const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
1908
1929
  lng: i
1909
1930
  });
@@ -2048,7 +2069,7 @@ const k2 = (i) => {
2048
2069
  })
2049
2070
  }
2050
2071
  ];
2051
- }, di = (i) => [
2072
+ }, pi = (i) => [
2052
2073
  {
2053
2074
  itemId: `header-${i}`,
2054
2075
  itemType: "header",
@@ -2058,7 +2079,7 @@ const k2 = (i) => {
2058
2079
  parentId: "0",
2059
2080
  nodeId: d()
2060
2081
  }
2061
- ], pi = (i, e = null) => {
2082
+ ], ui = (i, e = null) => {
2062
2083
  const {
2063
2084
  language: t = "en",
2064
2085
  name: a = "",
@@ -2069,7 +2090,7 @@ const k2 = (i) => {
2069
2090
  background: o,
2070
2091
  priceSummaryBackground: l,
2071
2092
  backgroundFilter: r
2072
- } = n || {}, p = l || "hsl(228, 52%, 18%)", C = ot.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2093
+ } = n || {}, p = l || "hsl(228, 52%, 18%)", C = lt.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2073
2094
  return [
2074
2095
  {
2075
2096
  key: `header-${i}`,
@@ -2110,7 +2131,7 @@ const k2 = (i) => {
2110
2131
  }
2111
2132
  }
2112
2133
  ];
2113
- }, ui = (i) => ({
2134
+ }, mi = (i) => ({
2114
2135
  [`data.header-${i}`]: {
2115
2136
  layout: "vertical",
2116
2137
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -2140,15 +2161,15 @@ const k2 = (i) => {
2140
2161
  }
2141
2162
  ]
2142
2163
  }
2143
- }), mi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2164
+ }), hi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2144
2165
  const a = d();
2145
2166
  let n = null;
2146
- return typeof t == "function" ? n = t(a) : i && (n = ui(a)), {
2147
- readView: di(a),
2148
- validation: pi(a, e),
2167
+ return typeof t == "function" ? n = t(a) : i && (n = mi(a)), {
2168
+ readView: pi(a),
2169
+ validation: ui(a, e),
2149
2170
  ...n && { data: n }
2150
2171
  };
2151
- }, hi = ({ language: i = "en" } = {}) => {
2172
+ }, fi = ({ language: i = "en" } = {}) => {
2152
2173
  const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
2153
2174
  lng: i,
2154
2175
  interpolation: { prefix: "__", suffix: "__" }
@@ -2448,7 +2469,7 @@ h.loadOptions({
2448
2469
  }
2449
2470
  }
2450
2471
  });
2451
- const fi = (i) => {
2472
+ const gi = (i) => {
2452
2473
  const e = Array(2).fill().map(() => d());
2453
2474
  return [
2454
2475
  {
@@ -2473,7 +2494,7 @@ const fi = (i) => {
2473
2494
  nodeId: e[1]
2474
2495
  }
2475
2496
  ];
2476
- }, gi = (i, e = "en") => [
2497
+ }, Ci = (i, e = "en") => [
2477
2498
  {
2478
2499
  key: `packageGroups.${i}`,
2479
2500
  validationKey: "packageGroups",
@@ -2493,11 +2514,11 @@ const fi = (i) => {
2493
2514
  },
2494
2515
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
2495
2516
  }
2496
- ], Ci = () => null, vi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2517
+ ], vi = () => null, yi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2497
2518
  const a = d(), { language: n } = e || {};
2498
2519
  let s = null;
2499
- typeof t == "function" ? s = t(a) : i && (s = Ci());
2500
- const o = fi(a), l = gi(a, n);
2520
+ typeof t == "function" ? s = t(a) : i && (s = vi());
2521
+ const o = gi(a), l = Ci(a, n);
2501
2522
  return {
2502
2523
  readView: o,
2503
2524
  validation: l,
@@ -2589,7 +2610,7 @@ h.loadOptions({
2589
2610
  }
2590
2611
  }
2591
2612
  });
2592
- const yi = ({
2613
+ const xi = ({
2593
2614
  language: i = "en",
2594
2615
  currency: e = "USD",
2595
2616
  _getters: t,
@@ -2946,7 +2967,7 @@ const yi = ({
2946
2967
  }
2947
2968
  }
2948
2969
  ];
2949
- }, xi = (i) => [
2970
+ }, wi = (i) => [
2950
2971
  {
2951
2972
  itemId: "embed",
2952
2973
  itemType: "embed",
@@ -2960,7 +2981,7 @@ const yi = ({
2960
2981
  parentId: "0",
2961
2982
  nodeId: d()
2962
2983
  }
2963
- ], wi = (i) => [
2984
+ ], bi = (i) => [
2964
2985
  {
2965
2986
  key: `embed-${i}`,
2966
2987
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2969,12 +2990,12 @@ const yi = ({
2969
2990
  size: "small"
2970
2991
  }
2971
2992
  }
2972
- ], bi = () => null, _i = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2993
+ ], _i = () => null, ki = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2973
2994
  const a = d();
2974
2995
  let n = null;
2975
- return typeof t == "function" ? n = t(a) : i && (n = bi()), {
2976
- readView: xi(a),
2977
- validation: wi(a),
2996
+ return typeof t == "function" ? n = t(a) : i && (n = _i()), {
2997
+ readView: wi(a),
2998
+ validation: bi(a),
2978
2999
  ...n && { data: n }
2979
3000
  };
2980
3001
  };
@@ -2989,7 +3010,7 @@ h.loadOptions({
2989
3010
  }
2990
3011
  }
2991
3012
  });
2992
- const ki = ({ language: i = "en" } = {}) => [
3013
+ const Li = ({ language: i = "en" } = {}) => [
2993
3014
  {
2994
3015
  previewUrl: `
2995
3016
  <div style="position: relative;">
@@ -3281,7 +3302,7 @@ const ki = ({ language: i = "en" } = {}) => [
3281
3302
  }
3282
3303
  })
3283
3304
  }
3284
- ], Li = (i) => [
3305
+ ], $i = (i) => [
3285
3306
  {
3286
3307
  itemId: "videoPlayer",
3287
3308
  itemType: "videoPlayer",
@@ -3294,7 +3315,7 @@ const ki = ({ language: i = "en" } = {}) => [
3294
3315
  parentId: "0",
3295
3316
  nodeId: d()
3296
3317
  }
3297
- ], $i = (i) => [
3318
+ ], Si = (i) => [
3298
3319
  {
3299
3320
  key: `video-${i}`,
3300
3321
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -3305,7 +3326,7 @@ const ki = ({ language: i = "en" } = {}) => [
3305
3326
  }
3306
3327
  }
3307
3328
  }
3308
- ], Si = (i) => ({
3329
+ ], Ti = (i) => ({
3309
3330
  [`data.video-${i}`]: {
3310
3331
  size: "small",
3311
3332
  video: {
@@ -3314,15 +3335,15 @@ const ki = ({ language: i = "en" } = {}) => [
3314
3335
  id: "166JEb6qkr4"
3315
3336
  }
3316
3337
  }
3317
- }), Ti = ({ includeMockData: i = !1, contentData: e = null }) => {
3338
+ }), Di = ({ includeMockData: i = !1, contentData: e = null }) => {
3318
3339
  const t = d();
3319
3340
  let a = null;
3320
- return typeof e == "function" ? a = e(t) : i && (a = Si(t)), {
3321
- readView: Li(t),
3322
- validation: $i(t),
3341
+ return typeof e == "function" ? a = e(t) : i && (a = Ti(t)), {
3342
+ readView: $i(t),
3343
+ validation: Si(t),
3323
3344
  ...a && { data: a }
3324
3345
  };
3325
- }, Di = ({ language: i = "en" } = {}) => [
3346
+ }, Vi = ({ language: i = "en" } = {}) => [
3326
3347
  {
3327
3348
  previewUrl: `
3328
3349
  <div style="position: relative;">
@@ -3524,34 +3545,34 @@ const ki = ({ language: i = "en" } = {}) => [
3524
3545
  })
3525
3546
  }
3526
3547
  ], G = {
3527
- titleAndText2: ni,
3528
- attachments2: $2,
3529
- pdf: Ve,
3530
- packageGroup: vi,
3531
- multiGroupPricing: B2,
3532
- coverBlock: ri,
3533
- videoPlayer: Ti,
3534
- embed: _i,
3535
- header: mi,
3536
- answer: Be,
3537
- terms: F2,
3538
- parties: E2,
3539
- custom: st,
3540
- // legacy
3541
- presentation: T2,
3542
- estimatedTimeCompleted: R2,
3543
- estimatedWorkStartAndEndAtText: W2,
3544
- extraWorkConstructionPricingList: j2,
3545
- extraWorkTimeImpactText: Q2,
3546
- notBinding: ei
3547
- }, U = {
3548
- coverBlock: ci,
3549
- header: hi,
3548
+ titleAndText2: si,
3549
+ attachments2: S2,
3550
+ pdf: Me,
3550
3551
  packageGroup: yi,
3551
- embed: ki,
3552
+ multiGroupPricing: M2,
3553
+ coverBlock: ci,
3552
3554
  videoPlayer: Di,
3553
- custom: nt
3554
- }, Vi = {
3555
+ embed: ki,
3556
+ header: hi,
3557
+ answer: Ie,
3558
+ terms: H2,
3559
+ parties: z2,
3560
+ custom: ot,
3561
+ // legacy
3562
+ presentation: D2,
3563
+ estimatedTimeCompleted: R2,
3564
+ estimatedWorkStartAndEndAtText: q2,
3565
+ extraWorkConstructionPricingList: K2,
3566
+ extraWorkTimeImpactText: J2,
3567
+ notBinding: ti
3568
+ }, W = {
3569
+ coverBlock: di,
3570
+ header: fi,
3571
+ packageGroup: xi,
3572
+ embed: Li,
3573
+ videoPlayer: Vi,
3574
+ custom: st
3575
+ }, Bi = {
3555
3576
  name: "AddBlock",
3556
3577
  props: {
3557
3578
  set: {
@@ -3565,14 +3586,14 @@ const ki = ({ language: i = "en" } = {}) => [
3565
3586
  },
3566
3587
  render() {
3567
3588
  return this.$scopedSlots.default({
3568
- addBlock: (i) => Me({
3589
+ addBlock: (i) => Fe({
3569
3590
  ...i,
3570
3591
  set: this.set,
3571
3592
  tplGenerators: G,
3572
3593
  includeMockData: this.includeMockData,
3573
3594
  emit: (...e) => this.$emit(...e)
3574
3595
  }),
3575
- getBlockPayload: (i) => Ie(
3596
+ getBlockPayload: (i) => He(
3576
3597
  i,
3577
3598
  this.set,
3578
3599
  G,
@@ -3580,19 +3601,19 @@ const ki = ({ language: i = "en" } = {}) => [
3580
3601
  )
3581
3602
  });
3582
3603
  }
3583
- }, Bi = null, Mi = null;
3584
- var Ii = /* @__PURE__ */ c(
3585
- Vi,
3604
+ }, Mi = null, Ii = null;
3605
+ var Fi = /* @__PURE__ */ c(
3586
3606
  Bi,
3587
3607
  Mi,
3608
+ Ii,
3588
3609
  !1,
3589
3610
  null,
3590
3611
  null,
3591
3612
  null,
3592
3613
  null
3593
3614
  );
3594
- const oe = Ii.exports;
3595
- const Fi = {
3615
+ const re = Fi.exports;
3616
+ const Hi = {
3596
3617
  name: "Drawer",
3597
3618
  props: {
3598
3619
  value: {
@@ -3635,7 +3656,7 @@ const Fi = {
3635
3656
  }
3636
3657
  }
3637
3658
  };
3638
- var Hi = function() {
3659
+ var Ai = function() {
3639
3660
  var e = this, t = e._self._c;
3640
3661
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
3641
3662
  zIndex: e.zIndex
@@ -3651,18 +3672,18 @@ var Hi = function() {
3651
3672
  boxShadow: e.boxShadow,
3652
3673
  ...e.contentStyle
3653
3674
  } }, [e._t("default")], 2)]) : e._e()])], 1);
3654
- }, Ai = [], Pi = /* @__PURE__ */ c(
3655
- Fi,
3675
+ }, Pi = [], Ei = /* @__PURE__ */ c(
3656
3676
  Hi,
3657
3677
  Ai,
3678
+ Pi,
3658
3679
  !1,
3659
3680
  null,
3660
3681
  "cd4a251a",
3661
3682
  null,
3662
3683
  null
3663
3684
  );
3664
- const le = Pi.exports;
3665
- const Ei = {
3685
+ const ce = Ei.exports;
3686
+ const zi = {
3666
3687
  name: "DocumentSend",
3667
3688
  i18nOptions: {
3668
3689
  namespaces: "documentSend",
@@ -3686,12 +3707,12 @@ const Ei = {
3686
3707
  }
3687
3708
  },
3688
3709
  components: {
3689
- AddBlock: oe,
3690
- Drawer: le,
3691
- SendForm: lt,
3692
- CCheckbox: Fe,
3693
- BaseIcon: He,
3694
- CButton: Ae,
3710
+ AddBlock: re,
3711
+ Drawer: ce,
3712
+ SendForm: rt,
3713
+ CCheckbox: Ae,
3714
+ BaseIcon: Pe,
3715
+ CButton: Ee,
3695
3716
  IsPremium: b,
3696
3717
  IsPremiumPreStep: _
3697
3718
  },
@@ -3783,7 +3804,7 @@ const Ei = {
3783
3804
  }
3784
3805
  }
3785
3806
  };
3786
- var zi = function() {
3807
+ var Zi = function() {
3787
3808
  var e = this, t = e._self._c;
3788
3809
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
3789
3810
  e.isOpen = a;
@@ -3806,17 +3827,17 @@ var zi = function() {
3806
3827
  }, 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)];
3807
3828
  } }], null, !0) })];
3808
3829
  } }], null, !1, 2049373406) })], 1)], 1)], 1)]) : e._e();
3809
- }, Zi = [], Oi = /* @__PURE__ */ c(
3810
- Ei,
3830
+ }, Oi = [], Ui = /* @__PURE__ */ c(
3811
3831
  zi,
3812
3832
  Zi,
3833
+ Oi,
3813
3834
  !1,
3814
3835
  null,
3815
3836
  "41e74cd7",
3816
3837
  null,
3817
3838
  null
3818
3839
  );
3819
- const Ri = Oi.exports, Gi = {
3840
+ const Ri = Ui.exports, Gi = {
3820
3841
  name: "Draggable",
3821
3842
  data() {
3822
3843
  return {
@@ -3854,21 +3875,21 @@ const Ri = Oi.exports, Gi = {
3854
3875
  dragMousedown: this.onDragMouseDown
3855
3876
  });
3856
3877
  }
3857
- }, Ui = null, Wi = null;
3858
- var qi = /* @__PURE__ */ c(
3878
+ }, Wi = null, qi = null;
3879
+ var Ni = /* @__PURE__ */ c(
3859
3880
  Gi,
3860
- Ui,
3861
3881
  Wi,
3882
+ qi,
3862
3883
  !1,
3863
3884
  null,
3864
3885
  null,
3865
3886
  null,
3866
3887
  null
3867
3888
  );
3868
- const Ni = qi.exports;
3869
- const ji = {
3889
+ const ji = Ni.exports;
3890
+ const Ki = {
3870
3891
  components: {
3871
- Draggable: Ni
3892
+ Draggable: ji
3872
3893
  },
3873
3894
  props: {
3874
3895
  offset: {
@@ -3881,7 +3902,7 @@ const ji = {
3881
3902
  }
3882
3903
  }
3883
3904
  };
3884
- var Ki = function() {
3905
+ var Yi = function() {
3885
3906
  var e = this, t = e._self._c;
3886
3907
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
3887
3908
  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: {
@@ -3891,26 +3912,26 @@ var Ki = function() {
3891
3912
  return e.$emit("close");
3892
3913
  } } }), 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)])];
3893
3914
  } }], null, !0) })], 1);
3894
- }, Yi = [], Qi = /* @__PURE__ */ c(
3895
- ji,
3915
+ }, Qi = [], Ji = /* @__PURE__ */ c(
3896
3916
  Ki,
3897
3917
  Yi,
3918
+ Qi,
3898
3919
  !1,
3899
3920
  null,
3900
3921
  "58649fd0",
3901
3922
  null,
3902
3923
  null
3903
3924
  );
3904
- const re = Qi.exports;
3905
- const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
3925
+ const de = Ji.exports;
3926
+ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
3906
3927
  i18nOptions: {
3907
3928
  namespaces: "common",
3908
3929
  keyPrefix: "designLabels"
3909
3930
  },
3910
3931
  name: "Design",
3911
3932
  components: {
3912
- FormInputRow: ee,
3913
- DragWindow: re
3933
+ FormInputRow: ie,
3934
+ DragWindow: de
3914
3935
  },
3915
3936
  mixins: [S(["css"], { useEmit: !1, setFnName: "set" })],
3916
3937
  props: {
@@ -3990,7 +4011,7 @@ const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
3990
4011
  }
3991
4012
  },
3992
4013
  onInput: ({ family: a, weight: n, options: s = [] }) => {
3993
- this.update(i, a), Qe(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
4014
+ this.update(i, a), Je(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3994
4015
  }
3995
4016
  }
3996
4017
  ]
@@ -4456,7 +4477,7 @@ const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
4456
4477
  watch: {
4457
4478
  async activeItem(i) {
4458
4479
  const e = u(i, "style.fontFamily");
4459
- e && (this.fontWeightOptions = await Je(e));
4480
+ e && (this.fontWeightOptions = await Xe(e));
4460
4481
  }
4461
4482
  },
4462
4483
  methods: {
@@ -4468,7 +4489,7 @@ const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
4468
4489
  }
4469
4490
  }
4470
4491
  };
4471
- var ea = function() {
4492
+ var ta = function() {
4472
4493
  var e = this, t = e._self._c;
4473
4494
  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) {
4474
4495
  return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
@@ -4487,18 +4508,18 @@ var ea = function() {
4487
4508
  })], 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) {
4488
4509
  return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
4489
4510
  }), 1) : e._e()], 1);
4490
- }, ta = [], ia = /* @__PURE__ */ c(
4491
- Xi,
4511
+ }, ia = [], aa = /* @__PURE__ */ c(
4492
4512
  ea,
4493
4513
  ta,
4514
+ ia,
4494
4515
  !1,
4495
4516
  null,
4496
4517
  "4404aad6",
4497
4518
  null,
4498
4519
  null
4499
4520
  );
4500
- const aa = ia.exports;
4501
- const na = {
4521
+ const na = aa.exports;
4522
+ const sa = {
4502
4523
  name: "FieldsModal",
4503
4524
  i18nOptions: {
4504
4525
  namespaces: "FieldsModal",
@@ -4532,7 +4553,7 @@ const na = {
4532
4553
  }
4533
4554
  },
4534
4555
  components: {
4535
- CField: X
4556
+ CField: te
4536
4557
  },
4537
4558
  props: {
4538
4559
  document: {
@@ -4608,12 +4629,12 @@ const na = {
4608
4629
  remove() {
4609
4630
  if (!this.existingFieldId)
4610
4631
  return;
4611
- const i = ut(this.document.fields, [this.existingFieldId]);
4632
+ const i = mt(this.document.fields, [this.existingFieldId]);
4612
4633
  this.set({ key: "data.fields", value: i }), this.$emit("close");
4613
4634
  }
4614
4635
  }
4615
4636
  };
4616
- var sa = function() {
4637
+ var oa = function() {
4617
4638
  var e = this, t = e._self._c;
4618
4639
  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) {
4619
4640
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -4624,18 +4645,18 @@ var sa = function() {
4624
4645
  }, 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) {
4625
4646
  e.$set(e.form, "value", a);
4626
4647
  }, 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)]);
4627
- }, oa = [], la = /* @__PURE__ */ c(
4628
- na,
4648
+ }, la = [], ra = /* @__PURE__ */ c(
4629
4649
  sa,
4630
4650
  oa,
4651
+ la,
4631
4652
  !1,
4632
4653
  null,
4633
4654
  "186f2d19",
4634
4655
  null,
4635
4656
  null
4636
4657
  );
4637
- const ra = la.exports;
4638
- const ca = {
4658
+ const ca = ra.exports;
4659
+ const da = {
4639
4660
  i18nOptions: {
4640
4661
  namespaces: "DocumentFormFields",
4641
4662
  messages: {
@@ -4659,9 +4680,9 @@ const ca = {
4659
4680
  },
4660
4681
  name: "DocumentFormFields",
4661
4682
  components: {
4662
- SmartList: pt,
4663
- CAccordion: Ke,
4664
- CField: X
4683
+ SmartList: ut,
4684
+ CAccordion: Ye,
4685
+ CField: te
4665
4686
  },
4666
4687
  mixins: [S()],
4667
4688
  props: {
@@ -4737,7 +4758,7 @@ const ca = {
4737
4758
  },
4738
4759
  openFieldModal({ existingFieldId: i }) {
4739
4760
  this.$modal.show(
4740
- ra,
4761
+ ca,
4741
4762
  {
4742
4763
  document: this._document,
4743
4764
  set: this.set,
@@ -4756,7 +4777,7 @@ const ca = {
4756
4777
  );
4757
4778
  },
4758
4779
  onCopyField(i) {
4759
- navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Pe("info", this.$t("_common:copyMessage"))).catch((e) => D(e));
4780
+ navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => H("info", this.$t("_common:copyMessage"))).catch((e) => D(e));
4760
4781
  },
4761
4782
  filterMethod(i, e) {
4762
4783
  return e.filter(
@@ -4769,7 +4790,7 @@ const ca = {
4769
4790
  }
4770
4791
  }
4771
4792
  };
4772
- var da = function() {
4793
+ var pa = function() {
4773
4794
  var e = this, t = e._self._c;
4774
4795
  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) {
4775
4796
  e.query = a;
@@ -4816,18 +4837,18 @@ var da = function() {
4816
4837
  } } })], 1)], 1)]);
4817
4838
  }) : 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)]);
4818
4839
  })], 2)], 1);
4819
- }, pa = [], ua = /* @__PURE__ */ c(
4820
- ca,
4840
+ }, ua = [], ma = /* @__PURE__ */ c(
4821
4841
  da,
4822
4842
  pa,
4843
+ ua,
4823
4844
  !1,
4824
4845
  null,
4825
4846
  "da1996e8",
4826
4847
  null,
4827
4848
  null
4828
4849
  );
4829
- const ma = ua.exports;
4830
- const ha = {
4850
+ const ha = ma.exports;
4851
+ const fa = {
4831
4852
  i18nOptions: {
4832
4853
  messages: {
4833
4854
  en: {
@@ -4870,8 +4891,8 @@ const ha = {
4870
4891
  },
4871
4892
  name: "ExtensionTab",
4872
4893
  components: {
4873
- draggable: mt,
4874
- Spinner: Ee
4894
+ draggable: ht,
4895
+ Spinner: ze
4875
4896
  },
4876
4897
  mixins: [S(["externalReferences", "clients", "articles"])],
4877
4898
  data() {
@@ -4925,7 +4946,7 @@ const ha = {
4925
4946
  }
4926
4947
  },
4927
4948
  methods: {
4928
- priceFormat: K,
4949
+ priceFormat: Y,
4929
4950
  async _search(i) {
4930
4951
  try {
4931
4952
  this.isSearching = !0;
@@ -4947,7 +4968,7 @@ const ha = {
4947
4968
  this.isSearching = !1;
4948
4969
  }
4949
4970
  },
4950
- search: A(async function(e) {
4971
+ search: P(async function(e) {
4951
4972
  await this._search(e);
4952
4973
  }, 750),
4953
4974
  useSearchResult(i) {
@@ -5004,7 +5025,7 @@ const ha = {
5004
5025
  });
5005
5026
  if (Array.isArray(a) && a.length) {
5006
5027
  const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
5007
- ...ze(),
5028
+ ...Ze(),
5008
5029
  ...s && { answerMethod: s },
5009
5030
  ...l
5010
5031
  }));
@@ -5034,7 +5055,7 @@ const ha = {
5034
5055
  }
5035
5056
  }
5036
5057
  };
5037
- var fa = function() {
5058
+ var ga = function() {
5038
5059
  var e = this, t = e._self._c;
5039
5060
  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) {
5040
5061
  return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
@@ -5077,18 +5098,18 @@ var fa = function() {
5077
5098
  return e.addArticle(a);
5078
5099
  } } }, [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)]);
5079
5100
  }), 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);
5080
- }, ga = [], Ca = /* @__PURE__ */ c(
5081
- ha,
5101
+ }, Ca = [], va = /* @__PURE__ */ c(
5082
5102
  fa,
5083
5103
  ga,
5104
+ Ca,
5084
5105
  !1,
5085
5106
  null,
5086
5107
  "341fef10",
5087
5108
  null,
5088
5109
  null
5089
5110
  );
5090
- const va = Ca.exports;
5091
- const ya = {
5111
+ const ya = va.exports;
5112
+ const xa = {
5092
5113
  i18nOptions: {
5093
5114
  namespaces: "DocSettings",
5094
5115
  messages: {
@@ -5176,8 +5197,8 @@ const ya = {
5176
5197
  },
5177
5198
  name: "DocumentGeneralSettings",
5178
5199
  components: {
5179
- FormInputRow: ee,
5180
- DragWindow: re
5200
+ FormInputRow: ie,
5201
+ DragWindow: de
5181
5202
  },
5182
5203
  props: {
5183
5204
  offset: {
@@ -5218,7 +5239,7 @@ const ya = {
5218
5239
  vatTypes() {
5219
5240
  var e;
5220
5241
  const i = ["vat"];
5221
- return ((e = Ze[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5242
+ return ((e = Oe[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5222
5243
  },
5223
5244
  options() {
5224
5245
  return [
@@ -5251,7 +5272,7 @@ const ya = {
5251
5272
  component: "select",
5252
5273
  props: {
5253
5274
  value: this.language,
5254
- options: Oe.map((i) => ({
5275
+ options: Ue.map((i) => ({
5255
5276
  value: i,
5256
5277
  label: this.$t(`iso:language.${i}`)
5257
5278
  })).sort((i, e) => i.label.localeCompare(e.label))
@@ -5424,7 +5445,7 @@ const ya = {
5424
5445
  }
5425
5446
  }
5426
5447
  };
5427
- var xa = function() {
5448
+ var wa = function() {
5428
5449
  var e = this, t = e._self._c;
5429
5450
  return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
5430
5451
  return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
@@ -5433,17 +5454,17 @@ var xa = function() {
5433
5454
  } } }, [e._l(e.priceOptions, function(a, n) {
5434
5455
  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 } })];
5435
5456
  })], 2) : e._e()], 2);
5436
- }, wa = [], ba = /* @__PURE__ */ c(
5437
- ya,
5457
+ }, ba = [], _a = /* @__PURE__ */ c(
5438
5458
  xa,
5439
5459
  wa,
5460
+ ba,
5440
5461
  !1,
5441
5462
  null,
5442
5463
  "c2cb1c6b",
5443
5464
  null,
5444
5465
  null
5445
5466
  );
5446
- const _a = ba.exports, ka = {
5467
+ const ka = _a.exports, La = {
5447
5468
  name: "MenuBlockConvertPopover",
5448
5469
  props: {
5449
5470
  target: {
@@ -5476,25 +5497,25 @@ const _a = ba.exports, ka = {
5476
5497
  }
5477
5498
  }
5478
5499
  };
5479
- var La = function() {
5500
+ var $a = function() {
5480
5501
  var e = this, t = e._self._c;
5481
5502
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
5482
5503
  return a.target !== a.currentTarget ? null : e.$emit("close");
5483
5504
  } } }), 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) {
5484
5505
  return e.$emit("convert");
5485
5506
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
5486
- }, $a = [], Sa = /* @__PURE__ */ c(
5487
- ka,
5507
+ }, Sa = [], Ta = /* @__PURE__ */ c(
5488
5508
  La,
5489
5509
  $a,
5510
+ Sa,
5490
5511
  !1,
5491
5512
  null,
5492
5513
  null,
5493
5514
  null,
5494
5515
  null
5495
5516
  );
5496
- const Ta = Sa.exports;
5497
- const Da = H.component("ProBadge", {
5517
+ const Da = Ta.exports;
5518
+ const Va = A.component("ProBadge", {
5498
5519
  name: "ProBadge",
5499
5520
  render(i) {
5500
5521
  return i(
@@ -5505,7 +5526,7 @@ const Da = H.component("ProBadge", {
5505
5526
  "Pro"
5506
5527
  );
5507
5528
  }
5508
- }), Va = {
5529
+ }), Ba = {
5509
5530
  name: "MenuBlocks",
5510
5531
  i18nOptions: {
5511
5532
  namespaces: "menuBlocks",
@@ -5576,12 +5597,12 @@ const Da = H.component("ProBadge", {
5576
5597
  },
5577
5598
  components: {
5578
5599
  simplebar: k,
5579
- DragList: Q,
5580
- DragItem: J,
5581
- AddBlock: oe,
5600
+ DragList: X,
5601
+ DragItem: ee,
5602
+ AddBlock: re,
5582
5603
  IsPremiumPreStep: _,
5583
- ProBadge: Da,
5584
- MenuBlockConvertPopover: Ta
5604
+ ProBadge: Va,
5605
+ MenuBlockConvertPopover: Da
5585
5606
  },
5586
5607
  props: {
5587
5608
  _document: {
@@ -5886,7 +5907,7 @@ const Da = H.component("ProBadge", {
5886
5907
  }
5887
5908
  ];
5888
5909
  return i.forEach((e) => {
5889
- 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);
5910
+ W[e.key] && (e.subMenu = (W[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
5890
5911
  }), i;
5891
5912
  },
5892
5913
  availableBlocks() {
@@ -5942,7 +5963,7 @@ const Da = H.component("ProBadge", {
5942
5963
  if (this.mq === "sm")
5943
5964
  return;
5944
5965
  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;
5945
- this.tippyInstances = dt(this.$el, {
5966
+ this.tippyInstances = pt(this.$el, {
5946
5967
  target: "[data-tooltip-key]",
5947
5968
  allowHTML: !0,
5948
5969
  duration: [150, 0],
@@ -5967,7 +5988,7 @@ const Da = H.component("ProBadge", {
5967
5988
  i.destroy();
5968
5989
  }) : this.tippyInstances.destroy && this.tippyInstances.destroy());
5969
5990
  },
5970
- setSubMenuState: A(
5991
+ setSubMenuState: P(
5971
5992
  function(e) {
5972
5993
  this.activeSubMenu = e;
5973
5994
  },
@@ -6010,7 +6031,7 @@ const Da = H.component("ProBadge", {
6010
6031
  }
6011
6032
  }
6012
6033
  };
6013
- var Ba = function() {
6034
+ var Ma = function() {
6014
6035
  var e = this, t = e._self._c;
6015
6036
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
6016
6037
  return e.$emit("block-added", a);
@@ -6053,18 +6074,18 @@ var Ba = function() {
6053
6074
  }), 1)], 1)], 1)])], 1)];
6054
6075
  } }], null, !0) })];
6055
6076
  } }]) });
6056
- }, Ma = [], Ia = /* @__PURE__ */ c(
6057
- Va,
6077
+ }, Ia = [], Fa = /* @__PURE__ */ c(
6058
6078
  Ba,
6059
6079
  Ma,
6080
+ Ia,
6060
6081
  !1,
6061
6082
  null,
6062
6083
  "126e204b",
6063
6084
  null,
6064
6085
  null
6065
6086
  );
6066
- const Fa = Ia.exports;
6067
- const Ha = {
6087
+ const Ha = Fa.exports;
6088
+ const Aa = {
6068
6089
  name: "DocumentFormMenu",
6069
6090
  i18nOptions: {
6070
6091
  namespaces: "documentFormMenu",
@@ -6080,12 +6101,12 @@ const Ha = {
6080
6101
  }
6081
6102
  },
6082
6103
  components: {
6083
- Design: aa,
6084
- Fields: ma,
6085
- ExtensionTab: va,
6086
- DocumentGeneralSettings: _a,
6087
- DocumentGuide: () => import("./index-e4f936ec.js"),
6088
- MenuBlocks: Fa,
6104
+ Design: na,
6105
+ Fields: ha,
6106
+ ExtensionTab: ya,
6107
+ DocumentGeneralSettings: ka,
6108
+ DocumentGuide: () => import("./index-86143b34.js"),
6109
+ MenuBlocks: Ha,
6089
6110
  Simplebar: k
6090
6111
  },
6091
6112
  props: {
@@ -6126,7 +6147,7 @@ const Ha = {
6126
6147
  data() {
6127
6148
  return {
6128
6149
  showGuide: !1,
6129
- showGuideNotification: !P.getItem("hideFormGuideNotification"),
6150
+ showGuideNotification: !E.getItem("hideFormGuideNotification"),
6130
6151
  tab: "blocks"
6131
6152
  };
6132
6153
  },
@@ -6148,11 +6169,11 @@ const Ha = {
6148
6169
  },
6149
6170
  methods: {
6150
6171
  openGuide() {
6151
- this.showGuide = !0, this.showGuideNotification = !1, P.setItem("hideFormGuideNotification", !0);
6172
+ this.showGuide = !0, this.showGuideNotification = !1, E.setItem("hideFormGuideNotification", !0);
6152
6173
  }
6153
6174
  }
6154
6175
  };
6155
- var Aa = function() {
6176
+ var Pa = function() {
6156
6177
  var e = this, t = e._self._c;
6157
6178
  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) {
6158
6179
  return e.$emit("close");
@@ -6197,18 +6218,18 @@ var Aa = function() {
6197
6218
  }, 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) {
6198
6219
  e.showGuide = !1;
6199
6220
  } } }) : e._e()], 1)])]);
6200
- }, Pa = [], Ea = /* @__PURE__ */ c(
6201
- Ha,
6221
+ }, Ea = [], za = /* @__PURE__ */ c(
6202
6222
  Aa,
6203
6223
  Pa,
6224
+ Ea,
6204
6225
  !1,
6205
6226
  null,
6206
6227
  "0e0165ab",
6207
6228
  null,
6208
6229
  null
6209
6230
  );
6210
- const za = Ea.exports;
6211
- const Za = {
6231
+ const Za = za.exports;
6232
+ const Oa = {
6212
6233
  name: "BlockControlButtons",
6213
6234
  i18nOptions: {
6214
6235
  namespace: "blockControlButtons",
@@ -6240,7 +6261,7 @@ const Za = {
6240
6261
  }
6241
6262
  }
6242
6263
  };
6243
- var Oa = function() {
6264
+ var Ua = function() {
6244
6265
  var e = this, t = e._self._c;
6245
6266
  return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
6246
6267
  return e.$emit("toggle-visible", !e.isVisible);
@@ -6252,8 +6273,8 @@ var Oa = function() {
6252
6273
  return e.$emit("remove");
6253
6274
  } } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
6254
6275
  }, Ra = [], Ga = /* @__PURE__ */ c(
6255
- Za,
6256
6276
  Oa,
6277
+ Ua,
6257
6278
  Ra,
6258
6279
  !1,
6259
6280
  null,
@@ -6261,11 +6282,11 @@ var Oa = function() {
6261
6282
  null,
6262
6283
  null
6263
6284
  );
6264
- const Ua = Ga.exports;
6265
- const Wa = {
6285
+ const Wa = Ga.exports;
6286
+ const qa = {
6266
6287
  name: "DynamicBlock",
6267
6288
  components: {
6268
- BlockControlButtons: Ua
6289
+ BlockControlButtons: Wa
6269
6290
  },
6270
6291
  props: {
6271
6292
  isDragging: {
@@ -6326,7 +6347,7 @@ const Wa = {
6326
6347
  }
6327
6348
  }
6328
6349
  };
6329
- var qa = function() {
6350
+ var Na = function() {
6330
6351
  var e = this, t = e._self._c;
6331
6352
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
6332
6353
  {
@@ -6349,22 +6370,22 @@ var qa = function() {
6349
6370
  }, remove: function(a) {
6350
6371
  return e.$emit("remove");
6351
6372
  } } }, [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)]);
6352
- }, Na = [], ja = /* @__PURE__ */ c(
6353
- Wa,
6373
+ }, ja = [], Ka = /* @__PURE__ */ c(
6354
6374
  qa,
6355
6375
  Na,
6376
+ ja,
6356
6377
  !1,
6357
6378
  null,
6358
6379
  "3d358acc",
6359
6380
  null,
6360
6381
  null
6361
6382
  );
6362
- const Ka = ja.exports;
6363
- const Ya = {
6383
+ const Ya = Ka.exports;
6384
+ const Qa = {
6364
6385
  name: "DocumentDrawer",
6365
6386
  components: {
6366
6387
  simplebar: k,
6367
- Drawer: le
6388
+ Drawer: ce
6368
6389
  },
6369
6390
  props: {
6370
6391
  position: {
@@ -6386,7 +6407,7 @@ const Ya = {
6386
6407
  }
6387
6408
  }
6388
6409
  };
6389
- var Qa = function() {
6410
+ var Ja = function() {
6390
6411
  var e = this, t = e._self._c;
6391
6412
  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: {
6392
6413
  "is-sticky": !e.fixed
@@ -6398,18 +6419,18 @@ var Qa = function() {
6398
6419
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
6399
6420
  ...e.fixedStyle
6400
6421
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
6401
- }, Ja = [], Xa = /* @__PURE__ */ c(
6402
- Ya,
6422
+ }, Xa = [], en = /* @__PURE__ */ c(
6403
6423
  Qa,
6404
6424
  Ja,
6425
+ Xa,
6405
6426
  !1,
6406
6427
  null,
6407
6428
  "28a55097",
6408
6429
  null,
6409
6430
  null
6410
6431
  );
6411
- const en = Xa.exports;
6412
- const tn = {
6432
+ const tn = en.exports;
6433
+ const an = {
6413
6434
  name: "DocumentFormViewRadio",
6414
6435
  props: {
6415
6436
  value: {
@@ -6422,24 +6443,24 @@ const tn = {
6422
6443
  }
6423
6444
  }
6424
6445
  };
6425
- var an = function() {
6446
+ var nn = function() {
6426
6447
  var e = this, t = e._self._c;
6427
6448
  return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
6428
6449
  e.value === "preview" && e.$emit("input", "edit");
6429
6450
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "edit", size: "18" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
6430
6451
  e.value === "edit" && e.$emit("input", "preview");
6431
6452
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "eye", size: "18" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
6432
- }, nn = [], sn = /* @__PURE__ */ c(
6433
- tn,
6453
+ }, sn = [], on = /* @__PURE__ */ c(
6434
6454
  an,
6435
6455
  nn,
6456
+ sn,
6436
6457
  !1,
6437
6458
  null,
6438
6459
  "2d9aa751",
6439
6460
  null,
6440
6461
  null
6441
6462
  );
6442
- const on = sn.exports, ln = {
6463
+ const ln = on.exports, rn = {
6443
6464
  name: "LogoBanner",
6444
6465
  props: {
6445
6466
  position: {
@@ -6457,46 +6478,46 @@ const on = sn.exports, ln = {
6457
6478
  }
6458
6479
  }
6459
6480
  };
6460
- var rn = function() {
6481
+ var cn = function() {
6461
6482
  var e = this, t = e._self._c;
6462
6483
  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(
6463
6484
  "_common:brand.domain"
6464
6485
  )}?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")) + " ")])])]);
6465
- }, cn = [], dn = /* @__PURE__ */ c(
6466
- ln,
6486
+ }, dn = [], pn = /* @__PURE__ */ c(
6467
6487
  rn,
6468
6488
  cn,
6489
+ dn,
6469
6490
  !1,
6470
6491
  null,
6471
6492
  null,
6472
6493
  null,
6473
6494
  null
6474
6495
  );
6475
- const pn = dn.exports;
6476
- const un = {
6496
+ const un = pn.exports;
6497
+ const mn = {
6477
6498
  name: "DocumentFormNav"
6478
6499
  };
6479
- var mn = function() {
6500
+ var hn = function() {
6480
6501
  var e = this, t = e._self._c;
6481
6502
  return t("div", { staticClass: "DocumentFormNav py-2 px-2 md:px-6 fixed left-0 top-0 right-0 z-[98]" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
6482
- }, hn = [], fn = /* @__PURE__ */ c(
6483
- un,
6503
+ }, fn = [], gn = /* @__PURE__ */ c(
6484
6504
  mn,
6485
6505
  hn,
6506
+ fn,
6486
6507
  !1,
6487
6508
  null,
6488
6509
  "39c32da6",
6489
6510
  null,
6490
6511
  null
6491
6512
  );
6492
- const gn = fn.exports;
6493
- const ce = (i, e, t = "$children") => {
6513
+ const Cn = gn.exports;
6514
+ const pe = (i, e, t = "$children") => {
6494
6515
  if (!i)
6495
6516
  return;
6496
6517
  e(i);
6497
6518
  const a = i[t];
6498
- !a && !Array.isArray(a) || a.forEach((n) => ce(n, e));
6499
- }, Cn = {
6519
+ !a && !Array.isArray(a) || a.forEach((n) => pe(n, e));
6520
+ }, vn = {
6500
6521
  i18nOptions: {
6501
6522
  namespaces: "DocumentFormContainer",
6502
6523
  messages: {
@@ -6512,18 +6533,18 @@ const ce = (i, e, t = "$children") => {
6512
6533
  },
6513
6534
  name: "DocumentFormContainer",
6514
6535
  components: {
6515
- WithDimensions: Xe,
6516
- DragList: Q,
6517
- DragItem: J,
6518
- DynamicChapter: et,
6519
- DocumentFormMenu: za,
6520
- DynamicBlock: Ka,
6521
- DocumentFormViewRadio: on,
6522
- DocumentFormNav: gn,
6523
- DocumentDrawer: en,
6524
- DocumentStyleContainer: tt,
6536
+ WithDimensions: et,
6537
+ DragList: X,
6538
+ DragItem: ee,
6539
+ DynamicChapter: tt,
6540
+ DocumentFormMenu: Za,
6541
+ DynamicBlock: Ya,
6542
+ DocumentFormViewRadio: ln,
6543
+ DocumentFormNav: Cn,
6544
+ DocumentDrawer: tn,
6545
+ DocumentStyleContainer: it,
6525
6546
  simplebar: k,
6526
- LogoBanner: pn,
6547
+ LogoBanner: un,
6527
6548
  IsPremium: b
6528
6549
  },
6529
6550
  props: {
@@ -6659,7 +6680,7 @@ const ce = (i, e, t = "$children") => {
6659
6680
  },
6660
6681
  methods: {
6661
6682
  onAddBlockMount(i, e) {
6662
- !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]);
6683
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ft(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6663
6684
  },
6664
6685
  onBlockToggleVisible(i, e) {
6665
6686
  const a = [...this.readLayout].findIndex(
@@ -6683,7 +6704,7 @@ const ce = (i, e, t = "$children") => {
6683
6704
  const a = i.itemId.split("-")[1];
6684
6705
  this.removePackageGroup(a);
6685
6706
  } else
6686
- ce(i, (n) => {
6707
+ pe(i, (n) => {
6687
6708
  n.value && Object.values(n.value).forEach((s) => {
6688
6709
  this.removeFormKeyValue(`${s}`);
6689
6710
  let o = s.replace(
@@ -6744,17 +6765,17 @@ const ce = (i, e, t = "$children") => {
6744
6765
  contentData: l
6745
6766
  });
6746
6767
  o({ validation: p, data: C });
6747
- const de = Ge({ tree: r }), pe = [
6768
+ const ue = Ge({ tree: r }), me = [
6748
6769
  ...this.nestedReadLayout.slice(0, t),
6749
- ...de,
6770
+ ...ue,
6750
6771
  ...this.nestedReadLayout.slice(t)
6751
6772
  ];
6752
6773
  this.setFormValue({
6753
6774
  key: "template.views.read.nodes",
6754
- value: B(pe)
6775
+ value: B(me)
6755
6776
  });
6756
- const [{ nodeId: ue }] = r;
6757
- this.onAddRedis[ue] = V;
6777
+ const [{ nodeId: he }] = r;
6778
+ this.onAddRedis[he] = V;
6758
6779
  }
6759
6780
  },
6760
6781
  shouldAnimateDrop(i) {
@@ -6762,7 +6783,7 @@ const ce = (i, e, t = "$children") => {
6762
6783
  }
6763
6784
  }
6764
6785
  };
6765
- var vn = function() {
6786
+ var yn = function() {
6766
6787
  var e = this, t = e._self._c;
6767
6788
  return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
6768
6789
  "is-edit-view": e.isEditView,
@@ -6840,30 +6861,30 @@ var vn = function() {
6840
6861
  } } }, [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) {
6841
6862
  e.drawerState.openSection = null;
6842
6863
  } } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
6843
- }, yn = [function() {
6864
+ }, xn = [function() {
6844
6865
  var i = this, e = i._self._c;
6845
6866
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
6846
- }], xn = /* @__PURE__ */ c(
6847
- Cn,
6867
+ }], wn = /* @__PURE__ */ c(
6848
6868
  vn,
6849
6869
  yn,
6870
+ xn,
6850
6871
  !1,
6851
6872
  null,
6852
6873
  "7bbc9812",
6853
6874
  null,
6854
6875
  null
6855
6876
  );
6856
- const wn = xn.exports;
6857
- function bn(i, e, t) {
6877
+ const bn = wn.exports;
6878
+ function _n(i, e, t) {
6858
6879
  return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
6859
6880
  }
6860
- var _n = bn, kn = _n, M = at;
6861
- function Ln(i, e, t) {
6862
- 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);
6881
+ var kn = _n, Ln = kn, M = nt;
6882
+ function $n(i, e, t) {
6883
+ return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), Ln(M(i), e, t);
6863
6884
  }
6864
- var $n = Ln;
6865
- const Sn = /* @__PURE__ */ j($n);
6866
- const Tn = {
6885
+ var Sn = $n;
6886
+ const Tn = /* @__PURE__ */ K(Sn);
6887
+ const Dn = {
6867
6888
  name: "RemainingTrialButton",
6868
6889
  components: { IsPremium: b },
6869
6890
  i18nOptions: {
@@ -6894,10 +6915,10 @@ const Tn = {
6894
6915
  }
6895
6916
  },
6896
6917
  methods: {
6897
- clamp: Sn
6918
+ clamp: Tn
6898
6919
  }
6899
6920
  };
6900
- var Dn = function() {
6921
+ var Vn = function() {
6901
6922
  var e = this, t = e._self._c;
6902
6923
  return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
6903
6924
  accountType: a,
@@ -6909,31 +6930,31 @@ var Dn = function() {
6909
6930
  width: e.clamp(n / o * 100, 0, 100) + "%"
6910
6931
  } })])]), 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()];
6911
6932
  } }]) });
6912
- }, Vn = [], Bn = /* @__PURE__ */ c(
6913
- Tn,
6933
+ }, Bn = [], Mn = /* @__PURE__ */ c(
6914
6934
  Dn,
6915
6935
  Vn,
6936
+ Bn,
6916
6937
  !1,
6917
6938
  null,
6918
6939
  "a8e48834",
6919
6940
  null,
6920
6941
  null
6921
6942
  );
6922
- const Mn = Bn.exports, T = H.observable({
6943
+ const In = Mn.exports, T = A.observable({
6923
6944
  canEdit: !1,
6924
6945
  isForm: !0,
6925
6946
  setFormValue: null,
6926
6947
  removeFormValue: null
6927
- }), In = {
6948
+ }), Fn = {
6928
6949
  name: "DocumentForm",
6929
6950
  components: {
6930
- DocumentFormContainer: wn,
6951
+ DocumentFormContainer: bn,
6931
6952
  IsPremium: b,
6932
6953
  IsPremiumPreStep: _,
6933
6954
  DocumentSend: Ri,
6934
- RemainingTrialButton: Mn
6955
+ RemainingTrialButton: In
6935
6956
  },
6936
- mixins: [ct],
6957
+ mixins: [dt],
6937
6958
  props: {
6938
6959
  document: {
6939
6960
  type: Object,
@@ -7020,7 +7041,7 @@ const Mn = Bn.exports, T = H.observable({
7020
7041
  },
7021
7042
  async saveAsTemplate() {
7022
7043
  this.document && this.$modal.show(
7023
- ne,
7044
+ oe,
7024
7045
  {
7025
7046
  document: this.document,
7026
7047
  onSaveTemplate: this.onSaveTemplate
@@ -7037,7 +7058,7 @@ const Mn = Bn.exports, T = H.observable({
7037
7058
  }
7038
7059
  }
7039
7060
  };
7040
- var Fn = function() {
7061
+ var Hn = function() {
7041
7062
  var e = this, t = e._self._c;
7042
7063
  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) {
7043
7064
  e.view = a;
@@ -7065,18 +7086,18 @@ var Fn = function() {
7065
7086
  reminders: "data.reminders",
7066
7087
  name: "data.name"
7067
7088
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
7068
- }, Hn = [], An = /* @__PURE__ */ c(
7069
- In,
7089
+ }, An = [], Pn = /* @__PURE__ */ c(
7070
7090
  Fn,
7071
7091
  Hn,
7092
+ An,
7072
7093
  !1,
7073
7094
  null,
7074
7095
  null,
7075
7096
  null,
7076
7097
  null
7077
7098
  );
7078
- const Pn = An.exports;
7079
- const En = {
7099
+ const En = Pn.exports;
7100
+ const zn = {
7080
7101
  name: "DocumentPostSendStep",
7081
7102
  mixins: [$],
7082
7103
  i18nOptions: {
@@ -7133,7 +7154,7 @@ const En = {
7133
7154
  id: i,
7134
7155
  body: { status: "sent" },
7135
7156
  showMessage: !1
7136
- }), ft({ id: i })), t || setTimeout(() => this.close(), 2e3);
7157
+ }), gt({ id: i })), t || setTimeout(() => this.close(), 2e3);
7137
7158
  },
7138
7159
  async onSend() {
7139
7160
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -7152,7 +7173,7 @@ const En = {
7152
7173
  body: { isAccepted: !0 },
7153
7174
  checksum: a
7154
7175
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
7155
- gt,
7176
+ Ct,
7156
7177
  {
7157
7178
  _document: this.document,
7158
7179
  fullScreen: this.modalHeight === "100%",
@@ -7196,25 +7217,25 @@ const En = {
7196
7217
  }
7197
7218
  }
7198
7219
  };
7199
- var zn = function() {
7220
+ var Zn = function() {
7200
7221
  var e = this, t = e._self._c;
7201
7222
  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)]);
7202
- }, Zn = [], On = /* @__PURE__ */ c(
7203
- En,
7223
+ }, On = [], Un = /* @__PURE__ */ c(
7204
7224
  zn,
7205
7225
  Zn,
7226
+ On,
7206
7227
  !1,
7207
7228
  null,
7208
7229
  "673cd86f",
7209
7230
  null,
7210
7231
  null
7211
7232
  );
7212
- const Rn = On.exports;
7213
- H.use(rt);
7233
+ const Rn = Un.exports;
7234
+ A.use(ct);
7214
7235
  const Gn = {
7215
7236
  name: "DocForm",
7216
7237
  mixins: [
7217
- Ue([
7238
+ We([
7218
7239
  "closeFunc",
7219
7240
  "beforeSave",
7220
7241
  "beforeSend",
@@ -7235,8 +7256,8 @@ const Gn = {
7235
7256
  }
7236
7257
  },
7237
7258
  components: {
7238
- TemplateSelector: _2,
7239
- DocumentForm: Pn,
7259
+ TemplateSelector: k2,
7260
+ DocumentForm: En,
7240
7261
  PostSend: Rn
7241
7262
  },
7242
7263
  props: {
@@ -7258,7 +7279,7 @@ const Gn = {
7258
7279
  };
7259
7280
  },
7260
7281
  computed: {
7261
- ...We({
7282
+ ...qe({
7262
7283
  company: "application/company",
7263
7284
  feature: "application/feature",
7264
7285
  can: "application/can",
@@ -7287,7 +7308,7 @@ const Gn = {
7287
7308
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
7288
7309
  },
7289
7310
  methods: {
7290
- ...qe({
7311
+ ...Ne({
7291
7312
  removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
7292
7313
  loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
7293
7314
  duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
@@ -7297,7 +7318,7 @@ const Gn = {
7297
7318
  async initDoc() {
7298
7319
  if (!this.rawDoc)
7299
7320
  throw new Error("Missing initiated form document");
7300
- this.document = new Y({
7321
+ this.document = new Q({
7301
7322
  data: this.rawDoc,
7302
7323
  can: this.can,
7303
7324
  getters: this.$store.getters,
@@ -7306,7 +7327,7 @@ const Gn = {
7306
7327
  },
7307
7328
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7308
7329
  var n;
7309
- const a = O1({ ...this.rawDoc }, [
7330
+ const a = U1({ ...this.rawDoc }, [
7310
7331
  "__tempId",
7311
7332
  "externalReferences",
7312
7333
  "subscriberCompanyUserIds",
@@ -7318,7 +7339,7 @@ const Gn = {
7318
7339
  _formData: a
7319
7340
  }) : await this.loadDocumentForm({
7320
7341
  templateId: i,
7321
- formData: t ? Ne(t, a) : null,
7342
+ formData: t ? je(t, a) : null,
7322
7343
  _formData: a
7323
7344
  }), (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";
7324
7345
  },
@@ -7359,20 +7380,20 @@ const Gn = {
7359
7380
  }
7360
7381
  }
7361
7382
  };
7362
- var Un = function() {
7383
+ var Wn = function() {
7363
7384
  var e = this, t = e._self._c;
7364
7385
  return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.document.id ? null : e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7365
- }, Wn = [], qn = /* @__PURE__ */ c(
7386
+ }, qn = [], Nn = /* @__PURE__ */ c(
7366
7387
  Gn,
7367
- Un,
7368
7388
  Wn,
7389
+ qn,
7369
7390
  !1,
7370
7391
  null,
7371
7392
  null,
7372
7393
  null,
7373
7394
  null
7374
7395
  );
7375
- const Ts = qn.exports;
7396
+ const Ds = Nn.exports;
7376
7397
  export {
7377
- Ts as default
7398
+ Ds as default
7378
7399
  };