@cling-se/widget 0.9.12 → 0.9.13

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 (125) hide show
  1. package/dist/{AddClientCallout-6b0621ec.js → AddClientCallout-228b3577.js} +5 -5
  2. package/dist/{AnswerModal-f6cb74d7.js → AnswerModal-8d56e27b.js} +3 -3
  3. package/dist/{AttachmentItem-2a4cb524.js → AttachmentItem-c351e46f.js} +3 -3
  4. package/dist/{BaseDatePicker-2daf62c0.js → BaseDatePicker-455a8e63.js} +1 -1
  5. package/dist/{BaseInput-a4523348.js → BaseInput-6b0cdce2.js} +1 -1
  6. package/dist/{BaseUpload-737004ad.js → BaseUpload-53bb3574.js} +2 -2
  7. package/dist/{BlockMedia-a145fc19.js → BlockMedia-7f55be7a.js} +1 -1
  8. package/dist/{CCallout-7fb1ad5c.js → CCallout-357061be.js} +2 -2
  9. package/dist/{CDropdownItem-79c8dc70.js → CDropdownItem-18010a08.js} +1 -1
  10. package/dist/{CField-2b1118f9.js → CField-05874972.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-47894df7.js → CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js} +1 -1
  12. package/dist/{ClientAutocomplete-3d098904.js → ClientAutocomplete-80568a20.js} +2 -2
  13. package/dist/{ClientModal-d1bf8d0d.js → ClientModal-7504abd0.js} +4 -4
  14. package/dist/{ColorPicker-c61cd86f.js → ColorPicker-6ce6c99f.js} +1 -1
  15. package/dist/{CompanyModal-46cab2d1.js → CompanyModal-14c95452.js} +3 -3
  16. package/dist/{ContentWrapper-3251ab37.js → ContentWrapper-2af616a6.js} +11 -11
  17. package/dist/{CoverBlockSettings-3ad93db4.js → CoverBlockSettings-16e69c0f.js} +7 -7
  18. package/dist/{DocAnswer-a0f2853b.js → DocAnswer-4c60bdb2.js} +4 -4
  19. package/dist/{DocForm-a4c0a0f1.js → DocForm-88aad3f9.js} +431 -423
  20. package/dist/{DocFormSend-ed982485.js → DocFormSend-7822495a.js} +17 -17
  21. package/dist/{DocModalBase-22abfff9.js → DocModalBase-cc16308d.js} +1 -1
  22. package/dist/{DocPrint-028aa0ed.js → DocPrint-ab80350b.js} +1 -1
  23. package/dist/{DocReceipt-3bd27c4a.js → DocReceipt-a418995c.js} +1 -1
  24. package/dist/{DocSendReminder-8ad0ca86.js → DocSendReminder-604537a5.js} +1 -1
  25. package/dist/{DocTextEditor-8930e458.js → DocTextEditor-4c3a9dda.js} +7 -7
  26. package/dist/{DocTimeline-2ab336f0.js → DocTimeline-f528fe03.js} +1 -1
  27. package/dist/{DocumentClient-441798b5.js → DocumentClient-63eee0be.js} +5 -5
  28. package/dist/{DocumentLayout-02c32058.js → DocumentLayout-7f21170a.js} +3 -3
  29. package/dist/{DocumentLogotype-43ef9231.js → DocumentLogotype-342699d5.js} +3 -3
  30. package/dist/{EmbedInput-996ae0e3.js → EmbedInput-838658e0.js} +2 -2
  31. package/dist/{EmbedSettings-41af8b9c.js → EmbedSettings-4861e515.js} +3 -3
  32. package/dist/{ErrorCallout-d392ffe9.js → ErrorCallout-3c335312.js} +1 -1
  33. package/dist/{FilePreviewModal-e298691e.js → FilePreviewModal-36890f6f.js} +4 -4
  34. package/dist/{HeaderSettings-687131c9.js → HeaderSettings-c60b567b.js} +14 -14
  35. package/dist/{ImageSelectModal-eec441aa.js → ImageSelectModal-364cb7f3.js} +8 -8
  36. package/dist/{ImageUploadWrapper-b244cf9e.js → ImageUploadWrapper-3f97caf0.js} +2 -2
  37. package/dist/{Index-37d3fd60.js → Index-043d9b1b.js} +2 -2
  38. package/dist/{Index-77a7d639.js → Index-0a743dbe.js} +5 -5
  39. package/dist/{Index-a9f197a7.js → Index-143c8249.js} +4 -4
  40. package/dist/{Index-6d61f98d.js → Index-236b16cb.js} +12 -12
  41. package/dist/{Index-485b35e8.js → Index-2d530ba9.js} +25 -25
  42. package/dist/{Index-8c254496.js → Index-31c43501.js} +4 -4
  43. package/dist/{Index-7c421b05.js → Index-39588910.js} +4 -4
  44. package/dist/{Index-d76bf229.js → Index-4d066329.js} +1 -1
  45. package/dist/{Index-2468cd69.js → Index-4d75a98f.js} +11 -11
  46. package/dist/{Index-01a3b6ed.js → Index-54dae7d5.js} +6 -6
  47. package/dist/{Index-13b65d9b.js → Index-5e5e9eea.js} +2 -2
  48. package/dist/{Index-6ca4a7e4.js → Index-61044ea1.js} +11 -11
  49. package/dist/{Index-b9b80eae.js → Index-622f4488.js} +6 -6
  50. package/dist/{Index-30ebb13c.js → Index-68d33a7a.js} +2 -2
  51. package/dist/{Index-25ce24cc.js → Index-7ae67a69.js} +2 -2
  52. package/dist/{Index-bf23d7a9.js → Index-81aebe47.js} +8 -8
  53. package/dist/{Index-6c5de42a.js → Index-87e1bf30.js} +2 -2
  54. package/dist/{Index-87cd4771.js → Index-933d777b.js} +4 -4
  55. package/dist/{Index-8882ee1b.js → Index-9f14cadf.js} +5 -5
  56. package/dist/{Index-9ccce76f.js → Index-a954fa0e.js} +4 -4
  57. package/dist/{Index-62ea070e.js → Index-ab549b7b.js} +2 -2
  58. package/dist/{Index-7d2fe1bd.js → Index-ab8a049c.js} +5 -5
  59. package/dist/{Index-ee558d21.js → Index-ad6b4226.js} +1 -1
  60. package/dist/{Index-af3a9b66.js → Index-c3e9f61e.js} +4 -4
  61. package/dist/{Index-f14261e7.js → Index-c4a96084.js} +3 -3
  62. package/dist/{Index-fd947a18.js → Index-c4da8059.js} +8 -8
  63. package/dist/{Index-5ff95ead.js → Index-d0572db7.js} +8 -8
  64. package/dist/{Index-e2919ed0.js → Index-d354a773.js} +4 -4
  65. package/dist/{Index-efa47af4.js → Index-dad75b77.js} +7 -7
  66. package/dist/{Index-d3225e03.js → Index-db68776e.js} +5 -5
  67. package/dist/{Index-0ed1b84a.js → Index-df63e9b1.js} +2 -2
  68. package/dist/{Index-c3a619f4.js → Index-e1fa12f4.js} +4 -4
  69. package/dist/{Index-a7871ea6.js → Index-e8bd9682.js} +4 -4
  70. package/dist/{Index-2b19a264.js → Index-eb677c16.js} +2 -2
  71. package/dist/{InputToggleRow-ee713437.js → InputToggleRow-9f3a21c8.js} +1 -1
  72. package/dist/{IsPremiumPreStep-9b5a0a01.js → IsPremiumPreStep-fc67e5a6.js} +167 -138
  73. package/dist/{MediaWrapper-45257b41.js → MediaWrapper-97e972de.js} +3 -3
  74. package/dist/{NotBindingText-c2f7c9cb.js → NotBindingText-a1bfc652.js} +2 -2
  75. package/dist/{PackageGroup-b2aa42da.js → PackageGroup-fd73d61e.js} +10 -10
  76. package/dist/{PdfTerms-2d66043e.js → PdfTerms-183987fe.js} +4 -4
  77. package/dist/{PdfViewer-947ee278.js → PdfViewer-92bae106.js} +2 -2
  78. package/dist/{PlainHtml-a3d47a45.js → PlainHtml-659dc40e.js} +1 -1
  79. package/dist/{PriceHeader-b6a99a57.js → PriceHeader-07cd131c.js} +11 -11
  80. package/dist/{SearchApi-c6511bc3.js → SearchApi-64811a82.js} +2 -2
  81. package/dist/{Setup-60ec3c2a.js → Setup-2ceea9c6.js} +5 -6
  82. package/dist/{TermsSettings-836555da.js → TermsSettings-fcd58004.js} +6 -6
  83. package/dist/{ThemeColorRow-672086c3.js → ThemeColorRow-df5956c8.js} +2 -2
  84. package/dist/{ToggleBinding-3c581fbb.js → ToggleBinding-f7bc2d76.js} +3 -3
  85. package/dist/{UploadModal-b3933203.js → UploadModal-a1ac0b5c.js} +3 -3
  86. package/dist/{VideoPlayerInput-5ad13a27.js → VideoPlayerInput-1f3f68ff.js} +3 -3
  87. package/dist/{VideoPlayerSettings-e964804b.js → VideoPlayerSettings-11942297.js} +4 -4
  88. package/dist/{VideoSelectModal-321b2270.js → VideoSelectModal-745c2810.js} +7 -7
  89. package/dist/{answerDocumentMixin-76224b35.js → answerDocumentMixin-f8efbecd.js} +3 -3
  90. package/dist/{cssMode-2bf89988.js → cssMode-76c1eb7e.js} +7 -7
  91. package/dist/{focusDrawerMixin-dffff858.js → focusDrawerMixin-ef272683.js} +1 -1
  92. package/dist/{formComponentsInstall-57c30f22.js → formComponentsInstall-1032f4c0.js} +12 -12
  93. package/dist/{formValidationMixin-9d5c1283.js → formValidationMixin-cae02f79.js} +1 -1
  94. package/dist/{freemarker2-503b066f.js → freemarker2-a5050433.js} +7 -7
  95. package/dist/{handlebars-8c0c0a90.js → handlebars-97600bea.js} +7 -7
  96. package/dist/{html-5b503855.js → html-848aba57.js} +7 -7
  97. package/dist/{htmlMode-b751a462.js → htmlMode-f297f1ba.js} +7 -7
  98. package/dist/{image-a902f5a5.js → image-eeafca74.js} +1 -1
  99. package/dist/{index-9a5227ef.js → index-5bf60a14.js} +2 -2
  100. package/dist/{index-a9f8e647.js → index-66441a0e.js} +7 -7
  101. package/dist/{index-771f5571.js → index-9c826693.js} +4 -4
  102. package/dist/{index-1c1cefec.js → index-b156c3e5.js} +4 -4
  103. package/dist/{index-d81be181.js → index-d9dc84c3.js} +1 -1
  104. package/dist/index.es.js +5 -2
  105. package/dist/index.umd.js +208 -208
  106. package/dist/{javascript-2d18f43b.js → javascript-05903a61.js} +8 -8
  107. package/dist/{jsonMode-95421c7a.js → jsonMode-808b2c11.js} +7 -7
  108. package/dist/{liquid-47ff3277.js → liquid-3a4ed820.js} +7 -7
  109. package/dist/{main-5532481e.js → main-37f5e386.js} +342 -400
  110. package/dist/{mapFormMixin-218f9749.js → mapFormMixin-57fc1af3.js} +1 -1
  111. package/dist/{publicSenderState-7c91d66d.js → publicSenderState-23dfd84e.js} +1 -1
  112. package/dist/{python-afd06bc4.js → python-59364ca7.js} +7 -7
  113. package/dist/{razor-28875ccf.js → razor-c485357e.js} +7 -7
  114. package/dist/{simplebar.min-3682e5c9.js → simplebar.min-0afea859.js} +1 -1
  115. package/dist/style.css +1 -1
  116. package/dist/{template-cd101772.js → template-09a48d50.js} +1 -1
  117. package/dist/{throttle-3a262479.js → throttle-7cc7cddf.js} +2 -2
  118. package/dist/{tinycolor-ca02e626.js → tinycolor-9b14b99e.js} +1 -1
  119. package/dist/{tippy.esm-a7740684.js → tippy.esm-e04582c9.js} +5 -5
  120. package/dist/{tsMode-bc258439.js → tsMode-1c3b939e.js} +7 -7
  121. package/dist/{typescript-ac68850c.js → typescript-80bee482.js} +7 -7
  122. package/dist/{utils-b0646315.js → utils-48a92f83.js} +1 -1
  123. package/dist/{vuedraggable.umd-934a0379.js → vuedraggable.umd-937de8ac.js} +1 -1
  124. package/dist/{xml-a8591419.js → xml-277e74c7.js} +7 -7
  125. package/package.json +1 -1
@@ -1,107 +1,107 @@
1
- import { aY as ue, aZ as me, a_ as G, a$ as he, b0 as U, b1 as W, b2 as fe, b3 as ge, b4 as Ce, b5 as ve, j as ye, g as m, n as c, s as q, b as u, av as xe, c as f, C as N, b6 as we, b7 as be, h as S, b8 as _e, b9 as ke, A as Le, ba as $e, bb as Se, aX as Te, bc as De, M as d, a4 as h, aS as x, bd as Ve, be as Be, bf as Me, bg as Ie, D as Fe, bh as He, d as Ae, i as _, a3 as j, S as Pe, ap as Ee, ae as ze, bi as Ze, V as k, aU as K, aV as Y, I as F, bj as D, aW as Oe, bk as Re, bl as H, r as Ge, m as Ue, a as We, bm as qe } from "./main-5532481e.js";
1
+ import { aY as ue, aZ as me, a_ as G, a$ as he, b0 as U, b1 as W, b2 as fe, b3 as ge, b4 as Ce, b5 as ve, j as ye, g as m, n as c, s as q, b as u, av as xe, c as f, C as N, b6 as we, b7 as be, h as S, b8 as _e, b9 as ke, A as Le, ba as $e, bb as Se, aX as Te, bc as De, M as d, a4 as h, aS as x, bd as Ve, be as Be, bf as Me, bg as Ie, D as Fe, bh as He, d as Ae, i as _, a3 as j, S as Pe, ap as Ee, ae as ze, bi as Ze, V as k, aU as K, aV as Y, I as F, bj as D, aW as Oe, bk as Re, bl as H, r as Ge, m as Ue, a as We, bm as qe } from "./main-37f5e386.js";
2
2
  import { m as g, a as y } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-d81be181.js";
3
+ import "./index-d9dc84c3.js";
4
4
  import { v as B } from "./index-805c56e4.js";
5
- import { d as M, w as L } from "./CDropdownItem-79c8dc70.js";
6
- import { I, b as Ne, a as Q } from "./IsPremiumPreStep-9b5a0a01.js";
7
- import { D as je, l as Ke, g as Ye, W as Qe, b as Je, a as Xe } from "./DocumentLayout-02c32058.js";
8
- import { s as b } from "./simplebar.min-3682e5c9.js";
9
- import { B as et } from "./BlockMedia-a145fc19.js";
10
- import { c as tt, g as it } from "./template-cd101772.js";
11
- import { a as at } from "./tinycolor-ca02e626.js";
12
- import { m as $ } from "./mapFormMixin-218f9749.js";
13
- import { S as nt, C as J, i as st } from "./formComponentsInstall-57c30f22.js";
14
- import { s as v, f as ot } from "./focusDrawerMixin-dffff858.js";
15
- import { f as lt } from "./formValidationMixin-9d5c1283.js";
16
- import { F as X, d as rt } from "./tippy.esm-a7740684.js";
17
- import { S as ct } from "./CSlider.vue_vue_type_style_index_0_lang-47894df7.js";
18
- import { o as dt, d as pt } from "./vuedraggable.umd-934a0379.js";
19
- import { s as ut } from "./dom-068d1a7b.js";
20
- import mt from "./AnswerModal-f6cb74d7.js";
5
+ import { d as M, w as L } from "./CDropdownItem-18010a08.js";
6
+ import { b as Ne, I, c as je, a as Q } from "./IsPremiumPreStep-fc67e5a6.js";
7
+ import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as et } from "./DocumentLayout-7f21170a.js";
8
+ import { s as b } from "./simplebar.min-0afea859.js";
9
+ import { B as tt } from "./BlockMedia-7f55be7a.js";
10
+ import { c as it, g as at } from "./template-09a48d50.js";
11
+ import { a as nt } from "./tinycolor-9b14b99e.js";
12
+ import { m as $ } from "./mapFormMixin-57fc1af3.js";
13
+ import { S as st, C as J, i as ot } from "./formComponentsInstall-1032f4c0.js";
14
+ import { s as v, f as lt } from "./focusDrawerMixin-ef272683.js";
15
+ import { f as rt } from "./formValidationMixin-cae02f79.js";
16
+ import { F as X, d as ct } from "./tippy.esm-e04582c9.js";
17
+ import { S as dt } from "./CSlider.vue_vue_type_style_index_0_lang-cf8cf3bf.js";
18
+ import { o as pt, d as ut } from "./vuedraggable.umd-937de8ac.js";
19
+ import { s as mt } from "./dom-068d1a7b.js";
20
+ import ht from "./AnswerModal-8d56e27b.js";
21
21
  import "./anime.es-e284c852.js";
22
- import "./image-a902f5a5.js";
22
+ import "./image-eeafca74.js";
23
23
  import "./color-71c20583.js";
24
- import "./BaseDatePicker-2daf62c0.js";
25
- import "./ErrorCallout-d392ffe9.js";
26
- import "./AddClientCallout-6b0621ec.js";
27
- import "./ClientAutocomplete-3d098904.js";
28
- import "./SearchApi-c6511bc3.js";
29
- import "./ClientModal-d1bf8d0d.js";
30
- import "./CCallout-7fb1ad5c.js";
31
- import "./CField-2b1118f9.js";
24
+ import "./BaseDatePicker-455a8e63.js";
25
+ import "./ErrorCallout-3c335312.js";
26
+ import "./AddClientCallout-228b3577.js";
27
+ import "./ClientAutocomplete-80568a20.js";
28
+ import "./SearchApi-64811a82.js";
29
+ import "./ClientModal-7504abd0.js";
30
+ import "./CCallout-357061be.js";
31
+ import "./CField-05874972.js";
32
32
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
33
- import "./ColorPicker-c61cd86f.js";
34
- var ht = ue, ft = me, gt = G;
35
- function Ct(i, e, t) {
33
+ import "./ColorPicker-6ce6c99f.js";
34
+ var ft = ue, gt = me, Ct = G;
35
+ function vt(i, e, t) {
36
36
  for (var a = -1, n = e.length, s = {}; ++a < n; ) {
37
- var o = e[a], l = ht(i, o);
38
- t(l, o) && ft(s, gt(o, i), l);
37
+ var o = e[a], l = ft(i, o);
38
+ t(l, o) && gt(s, Ct(o, i), l);
39
39
  }
40
40
  return s;
41
41
  }
42
- var vt = Ct;
43
- function yt(i, e) {
42
+ var yt = vt;
43
+ function xt(i, e) {
44
44
  return i != null && e in Object(i);
45
45
  }
46
- var xt = yt, wt = he, bt = U, _t = "[object Arguments]";
47
- function kt(i) {
48
- return bt(i) && wt(i) == _t;
46
+ var wt = xt, bt = he, _t = U, kt = "[object Arguments]";
47
+ function Lt(i) {
48
+ return _t(i) && bt(i) == kt;
49
49
  }
50
- var Lt = kt, A = Lt, $t = U, ee = Object.prototype, St = ee.hasOwnProperty, Tt = ee.propertyIsEnumerable, Dt = A(function() {
50
+ var $t = Lt, A = $t, St = U, ee = Object.prototype, Tt = ee.hasOwnProperty, Dt = ee.propertyIsEnumerable, Vt = A(function() {
51
51
  return arguments;
52
52
  }()) ? A : function(i) {
53
- return $t(i) && St.call(i, "callee") && !Tt.call(i, "callee");
54
- }, te = Dt, Vt = 9007199254740991;
55
- function Bt(i) {
56
- return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Vt;
53
+ return St(i) && Tt.call(i, "callee") && !Dt.call(i, "callee");
54
+ }, te = Vt, Bt = 9007199254740991;
55
+ function Mt(i) {
56
+ return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Bt;
57
57
  }
58
- var Mt = Bt, It = G, Ft = te, Ht = W, At = fe, Pt = Mt, Et = ge;
59
- function zt(i, e, t) {
60
- e = It(e, i);
58
+ var It = Mt, Ft = G, Ht = te, At = W, Pt = fe, Et = It, zt = ge;
59
+ function Zt(i, e, t) {
60
+ e = Ft(e, i);
61
61
  for (var a = -1, n = e.length, s = !1; ++a < n; ) {
62
- var o = Et(e[a]);
62
+ var o = zt(e[a]);
63
63
  if (!(s = i != null && t(i, o)))
64
64
  break;
65
65
  i = i[o];
66
66
  }
67
- return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Pt(n) && At(o, n) && (Ht(i) || Ft(i)));
67
+ return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Et(n) && Pt(o, n) && (At(i) || Ht(i)));
68
68
  }
69
- var Zt = zt, Ot = xt, Rt = Zt;
70
- function Gt(i, e) {
71
- return i != null && Rt(i, e, Ot);
69
+ var Ot = Zt, Rt = wt, Gt = Ot;
70
+ function Ut(i, e) {
71
+ return i != null && Gt(i, e, Rt);
72
72
  }
73
- var Ut = Gt, Wt = vt, qt = Ut;
74
- function Nt(i, e) {
75
- return Wt(i, e, function(t, a) {
76
- return qt(i, a);
73
+ var Wt = Ut, qt = yt, Nt = Wt;
74
+ function jt(i, e) {
75
+ return qt(i, e, function(t, a) {
76
+ return Nt(i, a);
77
77
  });
78
78
  }
79
- var jt = Nt;
80
- function Kt(i, e) {
79
+ var Kt = jt;
80
+ function Yt(i, e) {
81
81
  for (var t = -1, a = e.length, n = i.length; ++t < a; )
82
82
  i[n + t] = e[t];
83
83
  return i;
84
84
  }
85
- var Yt = Kt, P = Ce, Qt = te, Jt = W, E = P ? P.isConcatSpreadable : void 0;
86
- function Xt(i) {
87
- return Jt(i) || Qt(i) || !!(E && i && i[E]);
85
+ var Qt = Yt, P = Ce, Jt = te, Xt = W, E = P ? P.isConcatSpreadable : void 0;
86
+ function e1(i) {
87
+ return Xt(i) || Jt(i) || !!(E && i && i[E]);
88
88
  }
89
- var e1 = Xt, t1 = Yt, i1 = e1;
89
+ var t1 = e1, i1 = Qt, a1 = t1;
90
90
  function ie(i, e, t, a, n) {
91
91
  var s = -1, o = i.length;
92
- for (t || (t = i1), n || (n = []); ++s < o; ) {
92
+ for (t || (t = a1), n || (n = []); ++s < o; ) {
93
93
  var l = i[s];
94
- e > 0 && t(l) ? e > 1 ? ie(l, e - 1, t, a, n) : t1(n, l) : a || (n[n.length] = l);
94
+ e > 0 && t(l) ? e > 1 ? ie(l, e - 1, t, a, n) : i1(n, l) : a || (n[n.length] = l);
95
95
  }
96
96
  return n;
97
97
  }
98
- var a1 = ie, n1 = a1;
99
- function s1(i) {
98
+ var n1 = ie, s1 = n1;
99
+ function o1(i) {
100
100
  var e = i == null ? 0 : i.length;
101
- return e ? n1(i, 1) : [];
101
+ return e ? s1(i, 1) : [];
102
102
  }
103
- var o1 = s1;
104
- function l1(i, e, t) {
103
+ var l1 = o1;
104
+ function r1(i, e, t) {
105
105
  switch (t.length) {
106
106
  case 0:
107
107
  return i.call(e);
@@ -114,56 +114,56 @@ function l1(i, e, t) {
114
114
  }
115
115
  return i.apply(e, t);
116
116
  }
117
- var r1 = l1, c1 = r1, z = Math.max;
118
- function d1(i, e, t) {
117
+ var c1 = r1, d1 = c1, z = Math.max;
118
+ function p1(i, e, t) {
119
119
  return e = z(e === void 0 ? i.length - 1 : e, 0), function() {
120
120
  for (var a = arguments, n = -1, s = z(a.length - e, 0), o = Array(s); ++n < s; )
121
121
  o[n] = a[e + n];
122
122
  n = -1;
123
123
  for (var l = Array(e + 1); ++n < e; )
124
124
  l[n] = a[n];
125
- return l[e] = t(o), c1(i, this, l);
125
+ return l[e] = t(o), d1(i, this, l);
126
126
  };
127
127
  }
128
- var p1 = d1;
129
- function u1(i) {
128
+ var u1 = p1;
129
+ function m1(i) {
130
130
  return function() {
131
131
  return i;
132
132
  };
133
133
  }
134
- var m1 = u1;
135
- function h1(i) {
134
+ var h1 = m1;
135
+ function f1(i) {
136
136
  return i;
137
137
  }
138
- var f1 = h1, g1 = m1, Z = ve, C1 = f1, v1 = Z ? function(i, e) {
138
+ var g1 = f1, C1 = h1, Z = ve, v1 = g1, y1 = Z ? function(i, e) {
139
139
  return Z(i, "toString", {
140
140
  configurable: !0,
141
141
  enumerable: !1,
142
- value: g1(e),
142
+ value: C1(e),
143
143
  writable: !0
144
144
  });
145
- } : C1, y1 = v1, x1 = 800, w1 = 16, b1 = Date.now;
146
- function _1(i) {
145
+ } : v1, x1 = y1, w1 = 800, b1 = 16, _1 = Date.now;
146
+ function k1(i) {
147
147
  var e = 0, t = 0;
148
148
  return function() {
149
- var a = b1(), n = w1 - (a - t);
149
+ var a = _1(), n = b1 - (a - t);
150
150
  if (t = a, n > 0) {
151
- if (++e >= x1)
151
+ if (++e >= w1)
152
152
  return arguments[0];
153
153
  } else
154
154
  e = 0;
155
155
  return i.apply(void 0, arguments);
156
156
  };
157
157
  }
158
- var k1 = _1, L1 = y1, $1 = k1, S1 = $1(L1), T1 = S1, D1 = o1, V1 = p1, B1 = T1;
159
- function M1(i) {
160
- return B1(V1(i, void 0, D1), i + "");
158
+ var L1 = k1, $1 = x1, S1 = L1, T1 = S1($1), D1 = T1, V1 = l1, B1 = u1, M1 = D1;
159
+ function I1(i) {
160
+ return M1(B1(i, void 0, V1), i + "");
161
161
  }
162
- var I1 = M1, F1 = jt, H1 = I1, A1 = H1(function(i, e) {
163
- return i == null ? {} : F1(i, e);
164
- }), P1 = A1;
165
- const E1 = /* @__PURE__ */ ye(P1);
166
- const z1 = {
162
+ var F1 = I1, H1 = Kt, A1 = F1, P1 = A1(function(i, e) {
163
+ return i == null ? {} : H1(i, e);
164
+ }), E1 = P1;
165
+ const z1 = /* @__PURE__ */ ye(E1);
166
+ const Z1 = {
167
167
  i18nOptions: {
168
168
  namespaces: "DocumentTemplateFormModal",
169
169
  messages: {
@@ -297,7 +297,7 @@ const z1 = {
297
297
  }
298
298
  }
299
299
  };
300
- var Z1 = function() {
300
+ var O1 = function() {
301
301
  var e = this, t = e._self._c;
302
302
  return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
303
303
  e.name = a;
@@ -306,18 +306,18 @@ var Z1 = function() {
306
306
  }, 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) {
307
307
  e.keepClients = a;
308
308
  }, 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);
309
- }, O1 = [], R1 = /* @__PURE__ */ c(
310
- z1,
309
+ }, R1 = [], G1 = /* @__PURE__ */ c(
311
310
  Z1,
312
311
  O1,
312
+ R1,
313
313
  !1,
314
314
  null,
315
315
  "9f39f8ce",
316
316
  null,
317
317
  null
318
318
  );
319
- const ae = R1.exports;
320
- function G1(i, { availableProducts: e }) {
319
+ const ae = G1.exports;
320
+ function U1(i, { availableProducts: e }) {
321
321
  if (!i)
322
322
  throw new Error("Missing parameter templateId");
323
323
  const t = e, a = Object.keys(t).find((n) => {
@@ -330,7 +330,7 @@ function G1(i, { availableProducts: e }) {
330
330
  });
331
331
  return a ? t[a] : null;
332
332
  }
333
- async function U1(i) {
333
+ async function W1(i) {
334
334
  if (!i)
335
335
  throw new Error("Missing argument stripeProduct");
336
336
  const e = i == null ? void 0 : i.prices[0], { data: t } = await xe.createCheckoutSession({
@@ -348,18 +348,18 @@ async function U1(i) {
348
348
  function ne(i, { availableProducts: e }) {
349
349
  var n, s, o;
350
350
  let t = null;
351
- const a = G1(i.templateId, { availableProducts: e });
351
+ const a = U1(i.templateId, { availableProducts: e });
352
352
  return a && (t = {
353
353
  price: q((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
354
354
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
355
- onBuy: async () => U1(a)
355
+ onBuy: async () => W1(a)
356
356
  }), t;
357
357
  }
358
- const W1 = {
358
+ const q1 = {
359
359
  name: "GalleryTemplateModal",
360
360
  components: {
361
361
  simplebar: b,
362
- DocumentLayout: je
362
+ DocumentLayout: Ke
363
363
  },
364
364
  props: {
365
365
  // Instance of template
@@ -475,7 +475,7 @@ const W1 = {
475
475
  }
476
476
  }
477
477
  };
478
- var q1 = function() {
478
+ var N1 = function() {
479
479
  var a, n;
480
480
  var e = this, t = e._self._c;
481
481
  return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
@@ -483,17 +483,17 @@ var q1 = function() {
483
483
  } }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])]) : e._e()]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [e.product ? [e.privateProduct.isPurchased ? t("div", { staticClass: "flex items-center gap-2 p-1 mb-5 text-sm border border-gray-300 rounded-full bg-gray-300/60" }, [t("div", { staticClass: "flex items-center justify-center w-5 h-5 rounded-full bg-primary-500" }, [t("BaseIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(e.$t("_common:purchased", { thing: e.$t("_common:template") })) } })]) : t("CButton", { staticClass: "text-left !justify-start !px-4", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "absolute py-1.5 px-2 text-sm leading-none text-white -translate-y-1/2 border rounded-md right-2 top-1/2 bg-primary-400/80 border-primary-600/60", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), !e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e(), (e.product ? (n = e.product) != null && n.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(s) {
484
484
  e.didSave || e.saveAsTemplate();
485
485
  } } }, [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()], 2)])]);
486
- }, N1 = [], j1 = /* @__PURE__ */ c(
487
- W1,
486
+ }, j1 = [], K1 = /* @__PURE__ */ c(
488
487
  q1,
489
488
  N1,
489
+ j1,
490
490
  !1,
491
491
  null,
492
492
  "07b93fb2",
493
493
  null,
494
494
  null
495
495
  );
496
- const K1 = j1.exports, Y1 = {
496
+ const Y1 = K1.exports, Q1 = {
497
497
  name: "GalleryLogic",
498
498
  i18nOptions: {
499
499
  namespaces: "GalleryLogic",
@@ -605,6 +605,9 @@ const K1 = j1.exports, Y1 = {
605
605
  !i || !i.length || (!this.activeCategory || !i.includes(this.activeCategory)) && this.selectCategory(i[0]);
606
606
  }
607
607
  },
608
+ beforeCreate() {
609
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ne);
610
+ },
608
611
  async created() {
609
612
  var e, t, a, n;
610
613
  if (this.canPurchase && await this.loadPrices(), (t = (e = this.$route) == null ? void 0 : e.query) != null && t.list) {
@@ -678,7 +681,7 @@ const K1 = j1.exports, Y1 = {
678
681
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
679
682
  };
680
683
  this.$modal.show(
681
- K1,
684
+ Y1,
682
685
  {
683
686
  template: i,
684
687
  fetchGallery: this.fetchGallery,
@@ -733,30 +736,30 @@ const K1 = j1.exports, Y1 = {
733
736
  selectGalleryItem: this.selectGalleryItem
734
737
  });
735
738
  }
736
- }, Q1 = null, J1 = null;
737
- var X1 = /* @__PURE__ */ c(
738
- Y1,
739
+ }, J1 = null, X1 = null;
740
+ var e2 = /* @__PURE__ */ c(
739
741
  Q1,
740
742
  J1,
743
+ X1,
741
744
  !1,
742
745
  null,
743
746
  null,
744
747
  null,
745
748
  null
746
749
  );
747
- const e2 = X1.exports;
748
- const t2 = {
750
+ const t2 = e2.exports;
751
+ const i2 = {
749
752
  name: "DocumentIcon",
750
753
  truncate: Le,
751
754
  inject: {
752
755
  components: {
753
756
  default: {
754
- BlockMedia: et
757
+ BlockMedia: tt
755
758
  }
756
759
  }
757
760
  }
758
761
  };
759
- var i2 = function(e, t) {
762
+ var a2 = function(e, t) {
760
763
  return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
761
764
  t.data.staticClass,
762
765
  t.data.class,
@@ -770,18 +773,18 @@ var i2 = function(e, t) {
770
773
  } } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
771
774
  backgroundImage: `url(${t.props.thumbnail})`
772
775
  } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
773
- }, a2 = [], n2 = /* @__PURE__ */ c(
774
- t2,
776
+ }, n2 = [], s2 = /* @__PURE__ */ c(
775
777
  i2,
776
778
  a2,
779
+ n2,
777
780
  !0,
778
781
  null,
779
782
  "7ebb1c9a",
780
783
  null,
781
784
  null
782
785
  );
783
- const s2 = n2.exports;
784
- const o2 = {
786
+ const o2 = s2.exports;
787
+ const l2 = {
785
788
  name: "HorizontalScroll",
786
789
  components: {
787
790
  Simplebar: b
@@ -828,7 +831,7 @@ const o2 = {
828
831
  }
829
832
  }
830
833
  };
831
- var l2 = function() {
834
+ var r2 = function() {
832
835
  var e = this, t = e._self._c;
833
836
  return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
834
837
  return e.go(-1);
@@ -841,18 +844,18 @@ var l2 = function() {
841
844
  return e.$emit("expand");
842
845
  } } })];
843
846
  })], 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)]);
844
- }, r2 = [], c2 = /* @__PURE__ */ c(
845
- o2,
847
+ }, c2 = [], d2 = /* @__PURE__ */ c(
846
848
  l2,
847
849
  r2,
850
+ c2,
848
851
  !1,
849
852
  null,
850
853
  "15f25c8e",
851
854
  null,
852
855
  null
853
856
  );
854
- const d2 = c2.exports;
855
- const p2 = {
857
+ const p2 = d2.exports;
858
+ const u2 = {
856
859
  name: "DocumentFormRecent",
857
860
  i18nOptions: {
858
861
  namespaces: "DocumentFormRecent",
@@ -931,7 +934,7 @@ const p2 = {
931
934
  }
932
935
  }
933
936
  };
934
- var u2 = function() {
937
+ var m2 = function() {
935
938
  var e = this, t = e._self._c;
936
939
  return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
937
940
  e.query = a;
@@ -948,18 +951,18 @@ var u2 = function() {
948
951
  return s.stopPropagation(), e.onSaveDocumentTemplate(a._id);
949
952
  } } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]), t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small", type: "secondary" } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")])], 1) : e._e()]);
950
953
  })], 2)]);
951
- }, m2 = [], h2 = /* @__PURE__ */ c(
952
- p2,
954
+ }, h2 = [], f2 = /* @__PURE__ */ c(
953
955
  u2,
954
956
  m2,
957
+ h2,
955
958
  !1,
956
959
  null,
957
960
  "0096ccb0",
958
961
  null,
959
962
  null
960
963
  );
961
- const f2 = h2.exports;
962
- const g2 = {
964
+ const g2 = f2.exports;
965
+ const C2 = {
963
966
  i18nOptions: {
964
967
  namespaces: "TemplateSelector",
965
968
  messages: {
@@ -1004,10 +1007,10 @@ const g2 = {
1004
1007
  name: "TemplateSelector",
1005
1008
  mixins: [L],
1006
1009
  components: {
1007
- HorizontalScroll: d2,
1008
- DocumentIcon: s2,
1009
- DocumentRecent: f2,
1010
- GalleryLogic: e2,
1010
+ HorizontalScroll: p2,
1011
+ DocumentIcon: o2,
1012
+ DocumentRecent: g2,
1013
+ GalleryLogic: t2,
1011
1014
  IsPremiumPreStep: I
1012
1015
  },
1013
1016
  props: {
@@ -1153,7 +1156,7 @@ const g2 = {
1153
1156
  }
1154
1157
  }
1155
1158
  };
1156
- var C2 = function() {
1159
+ var v2 = function() {
1157
1160
  var e = this, t = e._self._c;
1158
1161
  return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "editDocumentLayout" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
1159
1162
  return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
@@ -1198,18 +1201,18 @@ var C2 = function() {
1198
1201
  } } }, [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()]);
1199
1202
  }), 1)], 1)];
1200
1203
  } }], null, !1, 4229824708) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
1201
- }, v2 = [], y2 = /* @__PURE__ */ c(
1202
- g2,
1204
+ }, y2 = [], x2 = /* @__PURE__ */ c(
1203
1205
  C2,
1204
1206
  v2,
1207
+ y2,
1205
1208
  !1,
1206
1209
  null,
1207
1210
  "b0c014da",
1208
1211
  null,
1209
1212
  null
1210
1213
  );
1211
- const x2 = y2.exports;
1212
- const w2 = (i) => {
1214
+ const w2 = x2.exports;
1215
+ const b2 = (i) => {
1213
1216
  const e = Array(2).fill().map(() => d());
1214
1217
  return [
1215
1218
  {
@@ -1231,7 +1234,7 @@ const w2 = (i) => {
1231
1234
  nodeId: e[1]
1232
1235
  }
1233
1236
  ];
1234
- }, b2 = (i, e = "en") => [
1237
+ }, _2 = (i, e = "en") => [
1235
1238
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
1236
1239
  {
1237
1240
  key: `files-${i}`,
@@ -1240,13 +1243,13 @@ const w2 = (i) => {
1240
1243
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
1241
1244
  }
1242
1245
  }
1243
- ], _2 = ({ document: i = null }) => {
1246
+ ], k2 = ({ document: i = null }) => {
1244
1247
  const e = d(), { language: t } = i || {};
1245
1248
  return {
1246
- readView: w2(e),
1247
- validation: b2(e, t)
1249
+ readView: b2(e),
1250
+ validation: _2(e, t)
1248
1251
  };
1249
- }, k2 = () => [
1252
+ }, L2 = () => [
1250
1253
  {
1251
1254
  itemId: "presentation",
1252
1255
  itemType: "presentation",
@@ -1254,11 +1257,11 @@ const w2 = (i) => {
1254
1257
  parentId: "0",
1255
1258
  nodeId: d()
1256
1259
  }
1257
- ], L2 = () => ({
1258
- readView: k2(),
1260
+ ], $2 = () => ({
1261
+ readView: L2(),
1259
1262
  validation: []
1260
1263
  // all relevant data is either within base doc or company settings etc
1261
- }), $2 = () => {
1264
+ }), S2 = () => {
1262
1265
  const i = Array(2).fill().map(() => d());
1263
1266
  return [
1264
1267
  {
@@ -1281,19 +1284,19 @@ const w2 = (i) => {
1281
1284
  // uniqid(),
1282
1285
  }
1283
1286
  ];
1284
- }, S2 = (i = "en") => [
1287
+ }, T2 = (i = "en") => [
1285
1288
  {
1286
1289
  key: "multiGroupPricing-title",
1287
1290
  anyOf: [{ type: "string" }, { type: "null" }],
1288
1291
  defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
1289
1292
  }
1290
- ], T2 = ({ document: i = null }) => {
1293
+ ], D2 = ({ document: i = null }) => {
1291
1294
  const { language: e } = i || {};
1292
1295
  return {
1293
- readView: $2(),
1294
- validation: S2(e)
1296
+ readView: S2(),
1297
+ validation: T2(e)
1295
1298
  };
1296
- }, D2 = () => [
1299
+ }, V2 = () => [
1297
1300
  {
1298
1301
  itemId: "terms",
1299
1302
  itemType: "termsDisclaimer",
@@ -1311,7 +1314,7 @@ const w2 = (i) => {
1311
1314
  parentId: "0",
1312
1315
  nodeId: d()
1313
1316
  }
1314
- ], V2 = () => [
1317
+ ], B2 = () => [
1315
1318
  {
1316
1319
  key: "terms",
1317
1320
  anyOf: [
@@ -1319,10 +1322,10 @@ const w2 = (i) => {
1319
1322
  { type: "null" }
1320
1323
  ]
1321
1324
  }
1322
- ], B2 = () => ({
1323
- readView: D2(),
1324
- validation: V2()
1325
- }), M2 = () => {
1325
+ ], M2 = () => ({
1326
+ readView: V2(),
1327
+ validation: B2()
1328
+ }), I2 = () => {
1326
1329
  const i = Array(5).fill().map(() => d());
1327
1330
  return [
1328
1331
  {
@@ -1371,7 +1374,7 @@ const w2 = (i) => {
1371
1374
  nodeId: i[4]
1372
1375
  }
1373
1376
  ];
1374
- }, I2 = () => ({
1377
+ }, F2 = () => ({
1375
1378
  clients: [{
1376
1379
  name: "Pernilla P.",
1377
1380
  email: "pernilla@mail.se",
@@ -1381,20 +1384,20 @@ const w2 = (i) => {
1381
1384
  deliveryTypes: ["email"],
1382
1385
  answerMethod: { accept: "signature", deny: "button" }
1383
1386
  }]
1384
- }), F2 = (i = "en") => [
1387
+ }), H2 = (i = "en") => [
1385
1388
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
1386
1389
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
1387
1390
  { key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
1388
- ], H2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1391
+ ], A2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
1389
1392
  const { language: a } = e || {};
1390
1393
  let n = null;
1391
- return typeof t == "function" ? n = t() : i && (n = I2()), {
1392
- readView: M2(),
1393
- validation: F2(a),
1394
+ return typeof t == "function" ? n = t() : i && (n = F2()), {
1395
+ readView: I2(),
1396
+ validation: H2(a),
1394
1397
  // Client / company will for now always exist on doc and in validation
1395
1398
  ...n && { data: n }
1396
1399
  };
1397
- }, A2 = (i) => {
1400
+ }, P2 = (i) => {
1398
1401
  const e = Array(3).fill().map(() => d());
1399
1402
  return [
1400
1403
  {
@@ -1423,7 +1426,7 @@ const w2 = (i) => {
1423
1426
  nodeId: e[2]
1424
1427
  }
1425
1428
  ];
1426
- }, P2 = (i) => [
1429
+ }, E2 = (i) => [
1427
1430
  {
1428
1431
  key: `estimatedTimeComplete-${i}`,
1429
1432
  type: "object",
@@ -1444,20 +1447,20 @@ const w2 = (i) => {
1444
1447
  }
1445
1448
  }
1446
1449
  }
1447
- ], E2 = (i) => ({
1450
+ ], z2 = (i) => ({
1448
1451
  [`estimatedTimeComplete-${i}`]: {
1449
1452
  value: 4,
1450
1453
  unitType: "hour"
1451
1454
  }
1452
- }), z2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1455
+ }), Z2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1453
1456
  const t = d();
1454
1457
  let a = null;
1455
- return typeof e == "function" ? a = e(t) : i && (a = E2(t)), {
1456
- readView: A2(t),
1457
- validation: P2(t),
1458
+ return typeof e == "function" ? a = e(t) : i && (a = z2(t)), {
1459
+ readView: P2(t),
1460
+ validation: E2(t),
1458
1461
  ...a && { data: a }
1459
1462
  };
1460
- }, Z2 = () => {
1463
+ }, O2 = () => {
1461
1464
  const i = Array(3).fill().map(() => d());
1462
1465
  return [
1463
1466
  {
@@ -1491,7 +1494,7 @@ const w2 = (i) => {
1491
1494
  nodeId: i[2]
1492
1495
  }
1493
1496
  ];
1494
- }, O2 = () => [
1497
+ }, R2 = () => [
1495
1498
  {
1496
1499
  key: "estimatedWorkDates",
1497
1500
  type: "object",
@@ -1500,10 +1503,10 @@ const w2 = (i) => {
1500
1503
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
1501
1504
  }
1502
1505
  }
1503
- ], R2 = () => ({
1504
- readView: Z2(),
1505
- validation: O2()
1506
- }), G2 = () => {
1506
+ ], G2 = () => ({
1507
+ readView: O2(),
1508
+ validation: R2()
1509
+ }), U2 = () => {
1507
1510
  const i = Array(5).fill().map(() => d());
1508
1511
  return [
1509
1512
  {
@@ -1569,7 +1572,7 @@ const w2 = (i) => {
1569
1572
  nodeId: i[4]
1570
1573
  }
1571
1574
  ];
1572
- }, U2 = () => [
1575
+ }, W2 = () => [
1573
1576
  {
1574
1577
  key: "extraWorkConstruction",
1575
1578
  extraWorkConstruction: {
@@ -1593,11 +1596,11 @@ const w2 = (i) => {
1593
1596
  }
1594
1597
  }
1595
1598
  }
1596
- ], W2 = () => ({
1597
- readView: G2(),
1598
- validation: U2()
1599
+ ], q2 = () => ({
1600
+ readView: U2(),
1601
+ validation: W2()
1599
1602
  // Client / company will for now always exist on doc and in validation
1600
- }), q2 = () => {
1603
+ }), N2 = () => {
1601
1604
  const i = Array(3).fill().map(() => d());
1602
1605
  return [
1603
1606
  {
@@ -1637,7 +1640,7 @@ const w2 = (i) => {
1637
1640
  nodeId: i[2]
1638
1641
  }
1639
1642
  ];
1640
- }, N2 = () => [
1643
+ }, j2 = () => [
1641
1644
  {
1642
1645
  key: "extraWorkTimeImpact",
1643
1646
  anyOf: [
@@ -1661,10 +1664,10 @@ const w2 = (i) => {
1661
1664
  }
1662
1665
  ]
1663
1666
  }
1664
- ], j2 = () => ({
1665
- readView: q2(),
1666
- validation: N2()
1667
- }), K2 = () => {
1667
+ ], K2 = () => ({
1668
+ readView: N2(),
1669
+ validation: j2()
1670
+ }), Y2 = () => {
1668
1671
  const i = Array(5).fill().map(() => d());
1669
1672
  return [
1670
1673
  {
@@ -1717,13 +1720,13 @@ const w2 = (i) => {
1717
1720
  nodeId: i[4]
1718
1721
  }
1719
1722
  ];
1720
- }, Y2 = () => [
1723
+ }, Q2 = () => [
1721
1724
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
1722
1725
  { key: "notBinding", type: "boolean" }
1723
- ], Q2 = () => ({
1724
- readView: K2(),
1725
- validation: Y2()
1726
- }), J2 = (i) => {
1726
+ ], J2 = () => ({
1727
+ readView: Y2(),
1728
+ validation: Q2()
1729
+ }), X2 = (i) => {
1727
1730
  const e = Array(2).fill().map(() => d());
1728
1731
  return [
1729
1732
  {
@@ -1745,22 +1748,22 @@ const w2 = (i) => {
1745
1748
  nodeId: e[1]
1746
1749
  }
1747
1750
  ];
1748
- }, X2 = (i) => [
1751
+ }, ei = (i) => [
1749
1752
  { key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
1750
1753
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
1751
- ], ei = (i) => ({
1754
+ ], ti = (i) => ({
1752
1755
  [`data.title-${i}`]: "My custom text",
1753
1756
  [`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>"
1754
- }), ti = ({ includeMockData: i = !1, contentData: e = null }) => {
1757
+ }), ii = ({ includeMockData: i = !1, contentData: e = null }) => {
1755
1758
  const t = d();
1756
1759
  let a = null;
1757
- return typeof e == "function" ? a = e(t) : i && (a = ei(t)), {
1758
- readView: J2(t),
1759
- validation: X2(t),
1760
+ return typeof e == "function" ? a = e(t) : i && (a = ti(t)), {
1761
+ readView: X2(t),
1762
+ validation: ei(t),
1760
1763
  ...a && { data: a },
1761
1764
  onAddFnName: "conditionalOnAdd"
1762
1765
  };
1763
- }, ii = (i) => [
1766
+ }, ai = (i) => [
1764
1767
  {
1765
1768
  itemId: "coverBlock",
1766
1769
  itemType: "coverBlock",
@@ -1770,7 +1773,7 @@ const w2 = (i) => {
1770
1773
  parentId: "0",
1771
1774
  nodeId: d()
1772
1775
  }
1773
- ], ai = (i, e = "en") => [
1776
+ ], ni = (i, e = "en") => [
1774
1777
  {
1775
1778
  key: `coverBlock-${i}`,
1776
1779
  defaultValue: {
@@ -1787,7 +1790,7 @@ const w2 = (i) => {
1787
1790
  },
1788
1791
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
1789
1792
  }
1790
- ], ni = (i) => ({
1793
+ ], si = (i) => ({
1791
1794
  [`data.coverBlock-${i}`]: {
1792
1795
  text: "<h1>We know communication</h1>",
1793
1796
  cover: {
@@ -1797,15 +1800,15 @@ const w2 = (i) => {
1797
1800
  blur: 0
1798
1801
  }
1799
1802
  }
1800
- }), si = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1803
+ }), oi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1801
1804
  const a = d(), { language: n } = e || {};
1802
1805
  let s = null;
1803
- return typeof t == "function" ? s = t(a) : i && (s = ni(a)), {
1804
- readView: ii(a),
1805
- validation: ai(a, n),
1806
+ return typeof t == "function" ? s = t(a) : i && (s = si(a)), {
1807
+ readView: ai(a),
1808
+ validation: ni(a, n),
1806
1809
  ...s && { data: s }
1807
1810
  };
1808
- }, oi = ({ language: i = "en" } = {}) => {
1811
+ }, li = ({ language: i = "en" } = {}) => {
1809
1812
  const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
1810
1813
  lng: i
1811
1814
  });
@@ -1950,7 +1953,7 @@ const w2 = (i) => {
1950
1953
  })
1951
1954
  }
1952
1955
  ];
1953
- }, li = (i) => [
1956
+ }, ri = (i) => [
1954
1957
  {
1955
1958
  itemId: `header-${i}`,
1956
1959
  itemType: "header",
@@ -1960,7 +1963,7 @@ const w2 = (i) => {
1960
1963
  parentId: "0",
1961
1964
  nodeId: d()
1962
1965
  }
1963
- ], ri = (i, e = null) => {
1966
+ ], ci = (i, e = null) => {
1964
1967
  const {
1965
1968
  language: t = "en",
1966
1969
  name: a = "",
@@ -1971,7 +1974,7 @@ const w2 = (i) => {
1971
1974
  background: o,
1972
1975
  priceSummaryBackground: l,
1973
1976
  backgroundFilter: r
1974
- } = n || {}, p = l || "hsl(228, 52%, 18%)", C = at.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
1977
+ } = n || {}, p = l || "hsl(228, 52%, 18%)", C = nt.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
1975
1978
  return [
1976
1979
  {
1977
1980
  key: `header-${i}`,
@@ -2012,7 +2015,7 @@ const w2 = (i) => {
2012
2015
  }
2013
2016
  }
2014
2017
  ];
2015
- }, ci = (i) => ({
2018
+ }, di = (i) => ({
2016
2019
  [`data.header-${i}`]: {
2017
2020
  layout: "vertical",
2018
2021
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -2042,15 +2045,15 @@ const w2 = (i) => {
2042
2045
  }
2043
2046
  ]
2044
2047
  }
2045
- }), di = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2048
+ }), pi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2046
2049
  const a = d();
2047
2050
  let n = null;
2048
- return typeof t == "function" ? n = t(a) : i && (n = ci(a)), {
2049
- readView: li(a),
2050
- validation: ri(a, e),
2051
+ return typeof t == "function" ? n = t(a) : i && (n = di(a)), {
2052
+ readView: ri(a),
2053
+ validation: ci(a, e),
2051
2054
  ...n && { data: n }
2052
2055
  };
2053
- }, pi = ({ language: i = "en" } = {}) => {
2056
+ }, ui = ({ language: i = "en" } = {}) => {
2054
2057
  const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
2055
2058
  lng: i,
2056
2059
  interpolation: { prefix: "__", suffix: "__" }
@@ -2350,7 +2353,7 @@ h.loadOptions({
2350
2353
  }
2351
2354
  }
2352
2355
  });
2353
- const ui = (i) => {
2356
+ const mi = (i) => {
2354
2357
  const e = Array(2).fill().map(() => d());
2355
2358
  return [
2356
2359
  {
@@ -2375,7 +2378,7 @@ const ui = (i) => {
2375
2378
  nodeId: e[1]
2376
2379
  }
2377
2380
  ];
2378
- }, mi = (i, e = "en") => [
2381
+ }, hi = (i, e = "en") => [
2379
2382
  {
2380
2383
  key: `packageGroups.${i}`,
2381
2384
  validationKey: "packageGroups",
@@ -2395,11 +2398,11 @@ const ui = (i) => {
2395
2398
  },
2396
2399
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
2397
2400
  }
2398
- ], hi = () => null, fi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2401
+ ], fi = () => null, gi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2399
2402
  const a = d(), { language: n } = e || {};
2400
2403
  let s = null;
2401
- typeof t == "function" ? s = t(a) : i && (s = hi());
2402
- const o = ui(a), l = mi(a, n);
2404
+ typeof t == "function" ? s = t(a) : i && (s = fi());
2405
+ const o = mi(a), l = hi(a, n);
2403
2406
  return {
2404
2407
  readView: o,
2405
2408
  validation: l,
@@ -2491,7 +2494,7 @@ h.loadOptions({
2491
2494
  }
2492
2495
  }
2493
2496
  });
2494
- const gi = ({
2497
+ const Ci = ({
2495
2498
  language: i = "en",
2496
2499
  currency: e = "USD",
2497
2500
  _getters: t,
@@ -2848,7 +2851,7 @@ const gi = ({
2848
2851
  }
2849
2852
  }
2850
2853
  ];
2851
- }, Ci = (i) => [
2854
+ }, vi = (i) => [
2852
2855
  {
2853
2856
  itemId: "embed",
2854
2857
  itemType: "embed",
@@ -2862,7 +2865,7 @@ const gi = ({
2862
2865
  parentId: "0",
2863
2866
  nodeId: d()
2864
2867
  }
2865
- ], vi = (i) => [
2868
+ ], yi = (i) => [
2866
2869
  {
2867
2870
  key: `embed-${i}`,
2868
2871
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2871,12 +2874,12 @@ const gi = ({
2871
2874
  size: "small"
2872
2875
  }
2873
2876
  }
2874
- ], yi = () => null, xi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2877
+ ], xi = () => null, wi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2875
2878
  const a = d();
2876
2879
  let n = null;
2877
- return typeof t == "function" ? n = t(a) : i && (n = yi()), {
2878
- readView: Ci(a),
2879
- validation: vi(a),
2880
+ return typeof t == "function" ? n = t(a) : i && (n = xi()), {
2881
+ readView: vi(a),
2882
+ validation: yi(a),
2880
2883
  ...n && { data: n }
2881
2884
  };
2882
2885
  };
@@ -2891,7 +2894,7 @@ h.loadOptions({
2891
2894
  }
2892
2895
  }
2893
2896
  });
2894
- const wi = ({ language: i = "en" } = {}) => [
2897
+ const bi = ({ language: i = "en" } = {}) => [
2895
2898
  {
2896
2899
  previewUrl: `
2897
2900
  <div style="position: relative;">
@@ -3183,7 +3186,7 @@ const wi = ({ language: i = "en" } = {}) => [
3183
3186
  }
3184
3187
  })
3185
3188
  }
3186
- ], bi = (i) => [
3189
+ ], _i = (i) => [
3187
3190
  {
3188
3191
  itemId: "videoPlayer",
3189
3192
  itemType: "videoPlayer",
@@ -3196,7 +3199,7 @@ const wi = ({ language: i = "en" } = {}) => [
3196
3199
  parentId: "0",
3197
3200
  nodeId: d()
3198
3201
  }
3199
- ], _i = (i) => [
3202
+ ], ki = (i) => [
3200
3203
  {
3201
3204
  key: `video-${i}`,
3202
3205
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -3207,7 +3210,7 @@ const wi = ({ language: i = "en" } = {}) => [
3207
3210
  }
3208
3211
  }
3209
3212
  }
3210
- ], ki = (i) => ({
3213
+ ], Li = (i) => ({
3211
3214
  [`data.video-${i}`]: {
3212
3215
  size: "small",
3213
3216
  video: {
@@ -3216,15 +3219,15 @@ const wi = ({ language: i = "en" } = {}) => [
3216
3219
  id: "166JEb6qkr4"
3217
3220
  }
3218
3221
  }
3219
- }), Li = ({ includeMockData: i = !1, contentData: e = null }) => {
3222
+ }), $i = ({ includeMockData: i = !1, contentData: e = null }) => {
3220
3223
  const t = d();
3221
3224
  let a = null;
3222
- return typeof e == "function" ? a = e(t) : i && (a = ki(t)), {
3223
- readView: bi(t),
3224
- validation: _i(t),
3225
+ return typeof e == "function" ? a = e(t) : i && (a = Li(t)), {
3226
+ readView: _i(t),
3227
+ validation: ki(t),
3225
3228
  ...a && { data: a }
3226
3229
  };
3227
- }, $i = ({ language: i = "en" } = {}) => [
3230
+ }, Si = ({ language: i = "en" } = {}) => [
3228
3231
  {
3229
3232
  previewUrl: `
3230
3233
  <div style="position: relative;">
@@ -3426,34 +3429,34 @@ const wi = ({ language: i = "en" } = {}) => [
3426
3429
  })
3427
3430
  }
3428
3431
  ], O = {
3429
- titleAndText2: ti,
3430
- attachments2: _2,
3432
+ titleAndText2: ii,
3433
+ attachments2: k2,
3431
3434
  pdf: Ve,
3432
- packageGroup: fi,
3433
- multiGroupPricing: T2,
3434
- coverBlock: si,
3435
- videoPlayer: Li,
3436
- embed: xi,
3437
- header: di,
3435
+ packageGroup: gi,
3436
+ multiGroupPricing: D2,
3437
+ coverBlock: oi,
3438
+ videoPlayer: $i,
3439
+ embed: wi,
3440
+ header: pi,
3438
3441
  answer: Be,
3439
- terms: B2,
3440
- parties: H2,
3441
- custom: it,
3442
+ terms: M2,
3443
+ parties: A2,
3444
+ custom: at,
3442
3445
  // legacy
3443
- presentation: L2,
3444
- estimatedTimeCompleted: z2,
3445
- estimatedWorkStartAndEndAtText: R2,
3446
- extraWorkConstructionPricingList: W2,
3447
- extraWorkTimeImpactText: j2,
3448
- notBinding: Q2
3446
+ presentation: $2,
3447
+ estimatedTimeCompleted: Z2,
3448
+ estimatedWorkStartAndEndAtText: G2,
3449
+ extraWorkConstructionPricingList: q2,
3450
+ extraWorkTimeImpactText: K2,
3451
+ notBinding: J2
3449
3452
  }, R = {
3450
- coverBlock: oi,
3451
- header: pi,
3452
- packageGroup: gi,
3453
- embed: wi,
3454
- videoPlayer: $i,
3455
- custom: tt
3456
- }, Si = {
3453
+ coverBlock: li,
3454
+ header: ui,
3455
+ packageGroup: Ci,
3456
+ embed: bi,
3457
+ videoPlayer: Si,
3458
+ custom: it
3459
+ }, Ti = {
3457
3460
  name: "AddBlock",
3458
3461
  props: {
3459
3462
  set: {
@@ -3477,19 +3480,19 @@ const wi = ({ language: i = "en" } = {}) => [
3477
3480
  getBlockPayload: (i) => Ie(i, this.set, O, this.includeMockdata)
3478
3481
  });
3479
3482
  }
3480
- }, Ti = null, Di = null;
3481
- var Vi = /* @__PURE__ */ c(
3482
- Si,
3483
+ }, Di = null, Vi = null;
3484
+ var Bi = /* @__PURE__ */ c(
3483
3485
  Ti,
3484
3486
  Di,
3487
+ Vi,
3485
3488
  !1,
3486
3489
  null,
3487
3490
  null,
3488
3491
  null,
3489
3492
  null
3490
3493
  );
3491
- const se = Vi.exports;
3492
- const Bi = {
3494
+ const se = Bi.exports;
3495
+ const Mi = {
3493
3496
  name: "Drawer",
3494
3497
  props: {
3495
3498
  value: {
@@ -3532,7 +3535,7 @@ const Bi = {
3532
3535
  }
3533
3536
  }
3534
3537
  };
3535
- var Mi = function() {
3538
+ var Ii = function() {
3536
3539
  var e = this, t = e._self._c;
3537
3540
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
3538
3541
  zIndex: e.zIndex
@@ -3548,18 +3551,18 @@ var Mi = function() {
3548
3551
  boxShadow: e.boxShadow,
3549
3552
  ...e.contentStyle
3550
3553
  } }, [e._t("default")], 2)]) : e._e()])], 1);
3551
- }, Ii = [], Fi = /* @__PURE__ */ c(
3552
- Bi,
3554
+ }, Fi = [], Hi = /* @__PURE__ */ c(
3553
3555
  Mi,
3554
3556
  Ii,
3557
+ Fi,
3555
3558
  !1,
3556
3559
  null,
3557
3560
  "3cb13e4e",
3558
3561
  null,
3559
3562
  null
3560
3563
  );
3561
- const oe = Fi.exports;
3562
- const Hi = {
3564
+ const oe = Hi.exports;
3565
+ const Ai = {
3563
3566
  name: "DocumentSend",
3564
3567
  i18nOptions: {
3565
3568
  namespaces: "documentSend",
@@ -3585,7 +3588,7 @@ const Hi = {
3585
3588
  components: {
3586
3589
  AddBlock: se,
3587
3590
  Drawer: oe,
3588
- SendForm: nt,
3591
+ SendForm: st,
3589
3592
  CCheckbox: Fe,
3590
3593
  BaseIcon: He,
3591
3594
  CButton: Ae
@@ -3613,7 +3616,6 @@ const Hi = {
3613
3616
  },
3614
3617
  data() {
3615
3618
  return {
3616
- localIsPosting: !1,
3617
3619
  isOpen: !1,
3618
3620
  saveTemplate: !1,
3619
3621
  saveTemplateTooltip: {
@@ -3672,7 +3674,7 @@ const Hi = {
3672
3674
  }
3673
3675
  }
3674
3676
  };
3675
- var Ai = function() {
3677
+ var Pi = function() {
3676
3678
  var e = this, t = e._self._c;
3677
3679
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
3678
3680
  e.isOpen = a;
@@ -3684,20 +3686,20 @@ var Ai = function() {
3684
3686
  return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
3685
3687
  return a({ sectionKey: "answer" });
3686
3688
  } } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
3687
- } }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(a) {
3689
+ } }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(a) {
3688
3690
  e.saveTemplate = a;
3689
3691
  }, 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)], 1)], 1)]) : e._e();
3690
- }, Pi = [], Ei = /* @__PURE__ */ c(
3691
- Hi,
3692
+ }, Ei = [], zi = /* @__PURE__ */ c(
3692
3693
  Ai,
3693
3694
  Pi,
3695
+ Ei,
3694
3696
  !1,
3695
3697
  null,
3696
- "7cbf7355",
3698
+ "057840fe",
3697
3699
  null,
3698
3700
  null
3699
3701
  );
3700
- const zi = Ei.exports, Zi = {
3702
+ const Zi = zi.exports, Oi = {
3701
3703
  name: "Draggable",
3702
3704
  data() {
3703
3705
  return {
@@ -3729,21 +3731,21 @@ const zi = Ei.exports, Zi = {
3729
3731
  dragMousedown: this.onDragMouseDown
3730
3732
  });
3731
3733
  }
3732
- }, Oi = null, Ri = null;
3733
- var Gi = /* @__PURE__ */ c(
3734
- Zi,
3734
+ }, Ri = null, Gi = null;
3735
+ var Ui = /* @__PURE__ */ c(
3735
3736
  Oi,
3736
3737
  Ri,
3738
+ Gi,
3737
3739
  !1,
3738
3740
  null,
3739
3741
  null,
3740
3742
  null,
3741
3743
  null
3742
3744
  );
3743
- const Ui = Gi.exports;
3744
- const Wi = {
3745
+ const Wi = Ui.exports;
3746
+ const qi = {
3745
3747
  components: {
3746
- Draggable: Ui
3748
+ Draggable: Wi
3747
3749
  },
3748
3750
  props: {
3749
3751
  offset: {
@@ -3756,7 +3758,7 @@ const Wi = {
3756
3758
  }
3757
3759
  }
3758
3760
  };
3759
- var qi = function() {
3761
+ var Ni = function() {
3760
3762
  var e = this, t = e._self._c;
3761
3763
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
3762
3764
  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: {
@@ -3766,18 +3768,18 @@ var qi = function() {
3766
3768
  return e.$emit("close");
3767
3769
  } } }), 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)])];
3768
3770
  } }], null, !0) })], 1);
3769
- }, Ni = [], ji = /* @__PURE__ */ c(
3770
- Wi,
3771
+ }, ji = [], Ki = /* @__PURE__ */ c(
3771
3772
  qi,
3772
3773
  Ni,
3774
+ ji,
3773
3775
  !1,
3774
3776
  null,
3775
3777
  "9b75010b",
3776
3778
  null,
3777
3779
  null
3778
3780
  );
3779
- const le = ji.exports;
3780
- const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
3781
+ const le = Ki.exports;
3782
+ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
3781
3783
  i18nOptions: {
3782
3784
  namespaces: "common",
3783
3785
  keyPrefix: "designLabels"
@@ -3874,7 +3876,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
3874
3876
  weight: n,
3875
3877
  options: s = []
3876
3878
  }) => {
3877
- this.update(i, a), Ke(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3879
+ this.update(i, a), Ye(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
3878
3880
  }
3879
3881
  }
3880
3882
  ]
@@ -4319,7 +4321,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
4319
4321
  watch: {
4320
4322
  async activeItem(i) {
4321
4323
  const e = u(i, "style.fontFamily");
4322
- e && (this.fontWeightOptions = await Ye(e));
4324
+ e && (this.fontWeightOptions = await Qe(e));
4323
4325
  }
4324
4326
  },
4325
4327
  methods: {
@@ -4331,7 +4333,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
4331
4333
  }
4332
4334
  }
4333
4335
  };
4334
- var Qi = function() {
4336
+ var Ji = function() {
4335
4337
  var e = this, t = e._self._c;
4336
4338
  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) {
4337
4339
  return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
@@ -4350,18 +4352,18 @@ var Qi = function() {
4350
4352
  })], 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) {
4351
4353
  return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
4352
4354
  }), 1) : e._e()], 1);
4353
- }, Ji = [], Xi = /* @__PURE__ */ c(
4354
- Yi,
4355
+ }, Xi = [], ea = /* @__PURE__ */ c(
4355
4356
  Qi,
4356
4357
  Ji,
4358
+ Xi,
4357
4359
  !1,
4358
4360
  null,
4359
4361
  "930a4202",
4360
4362
  null,
4361
4363
  null
4362
4364
  );
4363
- const ea = Xi.exports;
4364
- const ta = {
4365
+ const ta = ea.exports;
4366
+ const ia = {
4365
4367
  name: "FieldsModal",
4366
4368
  i18nOptions: {
4367
4369
  namespaces: "FieldsModal",
@@ -4471,12 +4473,12 @@ const ta = {
4471
4473
  remove() {
4472
4474
  if (!this.existingFieldId)
4473
4475
  return;
4474
- const i = dt(this.document.fields, [this.existingFieldId]);
4476
+ const i = pt(this.document.fields, [this.existingFieldId]);
4475
4477
  this.set({ key: "data.fields", value: i }), this.$emit("close");
4476
4478
  }
4477
4479
  }
4478
4480
  };
4479
- var ia = function() {
4481
+ var aa = function() {
4480
4482
  var e = this, t = e._self._c;
4481
4483
  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) {
4482
4484
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -4487,18 +4489,18 @@ var ia = function() {
4487
4489
  }, 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) {
4488
4490
  e.$set(e.form, "value", a);
4489
4491
  }, 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)]);
4490
- }, aa = [], na = /* @__PURE__ */ c(
4491
- ta,
4492
+ }, na = [], sa = /* @__PURE__ */ c(
4492
4493
  ia,
4493
4494
  aa,
4495
+ na,
4494
4496
  !1,
4495
4497
  null,
4496
4498
  "5cc44007",
4497
4499
  null,
4498
4500
  null
4499
4501
  );
4500
- const sa = na.exports;
4501
- const oa = {
4502
+ const oa = sa.exports;
4503
+ const la = {
4502
4504
  i18nOptions: {
4503
4505
  namespaces: "DocumentFormFields",
4504
4506
  messages: {
@@ -4522,8 +4524,8 @@ const oa = {
4522
4524
  },
4523
4525
  name: "DocumentFormFields",
4524
4526
  components: {
4525
- SmartList: ct,
4526
- CAccordion: Ne,
4527
+ SmartList: dt,
4528
+ CAccordion: je,
4527
4529
  CField: J
4528
4530
  },
4529
4531
  mixins: [$()],
@@ -4583,7 +4585,7 @@ const oa = {
4583
4585
  immediate: !0,
4584
4586
  async handler(i) {
4585
4587
  var e, t;
4586
- if (this.isEditingTemplate) {
4588
+ if (this.isEditingTemplate && i) {
4587
4589
  const { data: a } = await _.getFields(i);
4588
4590
  this.updateValue("data.fields", {
4589
4591
  // crmFields added first in order to not override same service values
@@ -4601,7 +4603,7 @@ const oa = {
4601
4603
  },
4602
4604
  openFieldModal({ existingFieldId: i }) {
4603
4605
  this.$modal.show(
4604
- sa,
4606
+ oa,
4605
4607
  {
4606
4608
  document: this._document,
4607
4609
  set: this.set,
@@ -4631,7 +4633,7 @@ const oa = {
4631
4633
  }
4632
4634
  }
4633
4635
  };
4634
- var la = function() {
4636
+ var ra = function() {
4635
4637
  var e = this, t = e._self._c;
4636
4638
  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) {
4637
4639
  e.query = a;
@@ -4676,18 +4678,18 @@ var la = function() {
4676
4678
  } } })], 1)], 1)]);
4677
4679
  }) : 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)]);
4678
4680
  })], 2)], 1);
4679
- }, ra = [], ca = /* @__PURE__ */ c(
4680
- oa,
4681
+ }, ca = [], da = /* @__PURE__ */ c(
4681
4682
  la,
4682
4683
  ra,
4684
+ ca,
4683
4685
  !1,
4684
4686
  null,
4685
- "9a0b5b61",
4687
+ "916766d5",
4686
4688
  null,
4687
4689
  null
4688
4690
  );
4689
- const da = ca.exports;
4690
- const pa = {
4691
+ const pa = da.exports;
4692
+ const ua = {
4691
4693
  i18nOptions: {
4692
4694
  messages: {
4693
4695
  en: {
@@ -4730,7 +4732,7 @@ const pa = {
4730
4732
  },
4731
4733
  name: "ExtensionTab",
4732
4734
  components: {
4733
- draggable: pt,
4735
+ draggable: ut,
4734
4736
  Spinner: Pe
4735
4737
  },
4736
4738
  mixins: [$([
@@ -4878,7 +4880,7 @@ const pa = {
4878
4880
  }
4879
4881
  }
4880
4882
  };
4881
- var ua = function() {
4883
+ var ma = function() {
4882
4884
  var e = this, t = e._self._c;
4883
4885
  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) {
4884
4886
  return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
@@ -4909,18 +4911,18 @@ var ua = function() {
4909
4911
  return e.addArticle(a);
4910
4912
  } } }, [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)]);
4911
4913
  }), 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);
4912
- }, ma = [], ha = /* @__PURE__ */ c(
4913
- pa,
4914
+ }, ha = [], fa = /* @__PURE__ */ c(
4914
4915
  ua,
4915
4916
  ma,
4917
+ ha,
4916
4918
  !1,
4917
4919
  null,
4918
4920
  "b775e9f9",
4919
4921
  null,
4920
4922
  null
4921
4923
  );
4922
- const fa = ha.exports;
4923
- const ga = {
4924
+ const ga = fa.exports;
4925
+ const Ca = {
4924
4926
  i18nOptions: {
4925
4927
  namespaces: "DocSettings",
4926
4928
  messages: {
@@ -5225,7 +5227,7 @@ const ga = {
5225
5227
  }
5226
5228
  }
5227
5229
  };
5228
- var Ca = function() {
5230
+ var va = function() {
5229
5231
  var e = this, t = e._self._c;
5230
5232
  return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
5231
5233
  return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
@@ -5234,17 +5236,17 @@ var Ca = function() {
5234
5236
  } } }, [e._l(e.priceOptions, function(a, n) {
5235
5237
  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 } })];
5236
5238
  })], 2) : e._e()], 2);
5237
- }, va = [], ya = /* @__PURE__ */ c(
5238
- ga,
5239
+ }, ya = [], xa = /* @__PURE__ */ c(
5239
5240
  Ca,
5240
5241
  va,
5242
+ ya,
5241
5243
  !1,
5242
5244
  null,
5243
5245
  "eec61e30",
5244
5246
  null,
5245
5247
  null
5246
5248
  );
5247
- const xa = ya.exports, wa = {
5249
+ const wa = xa.exports, ba = {
5248
5250
  name: "MenuBlockConvertPopover",
5249
5251
  props: {
5250
5252
  target: {
@@ -5277,32 +5279,32 @@ const xa = ya.exports, wa = {
5277
5279
  }
5278
5280
  }
5279
5281
  };
5280
- var ba = function() {
5282
+ var _a = function() {
5281
5283
  var e = this, t = e._self._c;
5282
5284
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
5283
5285
  return a.target !== a.currentTarget ? null : e.$emit("close");
5284
5286
  } } }), 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) {
5285
5287
  return e.$emit("convert");
5286
5288
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
5287
- }, _a = [], ka = /* @__PURE__ */ c(
5288
- wa,
5289
+ }, ka = [], La = /* @__PURE__ */ c(
5289
5290
  ba,
5290
5291
  _a,
5292
+ ka,
5291
5293
  !1,
5292
5294
  null,
5293
5295
  null,
5294
5296
  null,
5295
5297
  null
5296
5298
  );
5297
- const La = ka.exports;
5298
- const $a = k.component("ProBadge", {
5299
+ const $a = La.exports;
5300
+ const Sa = k.component("ProBadge", {
5299
5301
  name: "ProBadge",
5300
5302
  render(i) {
5301
5303
  return i("div", {
5302
5304
  staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
5303
5305
  }, "Pro");
5304
5306
  }
5305
- }), Sa = {
5307
+ }), Ta = {
5306
5308
  name: "MenuBlocks",
5307
5309
  i18nOptions: {
5308
5310
  namespaces: "menuBlocks",
@@ -5377,8 +5379,8 @@ const $a = k.component("ProBadge", {
5377
5379
  DragItem: Y,
5378
5380
  AddBlock: se,
5379
5381
  IsPremiumPreStep: I,
5380
- ProBadge: $a,
5381
- MenuBlockConvertPopover: La
5382
+ ProBadge: Sa,
5383
+ MenuBlockConvertPopover: $a
5382
5384
  },
5383
5385
  props: {
5384
5386
  _document: {
@@ -5402,6 +5404,11 @@ const $a = k.component("ProBadge", {
5402
5404
  default: !0
5403
5405
  }
5404
5406
  },
5407
+ inject: {
5408
+ viewSettings: {
5409
+ default: () => ({ isPublicForm: !1 })
5410
+ }
5411
+ },
5405
5412
  mixins: [L],
5406
5413
  data() {
5407
5414
  return {
@@ -5717,7 +5724,7 @@ const $a = k.component("ProBadge", {
5717
5724
  if (this.mq === "sm")
5718
5725
  return;
5719
5726
  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;
5720
- this.tippyInstances = rt(this.$el, {
5727
+ this.tippyInstances = ct(this.$el, {
5721
5728
  target: "[data-tooltip-key]",
5722
5729
  allowHTML: !0,
5723
5730
  duration: [150, 0],
@@ -5753,7 +5760,8 @@ const $a = k.component("ProBadge", {
5753
5760
  return t && t.key;
5754
5761
  },
5755
5762
  isBlockLocked(i) {
5756
- return !this.feature(`docBlock_${i}`);
5763
+ var e;
5764
+ return !this.feature(`docBlock_${i}`) && !((e = this.viewSettings) != null && e.isPublicForm);
5757
5765
  },
5758
5766
  doesBlockExist(i) {
5759
5767
  return !!u(this._document, "_doc.template.views.read.nodes", []).find((t) => t.itemId.startsWith(i));
@@ -5776,7 +5784,7 @@ const $a = k.component("ProBadge", {
5776
5784
  }
5777
5785
  }
5778
5786
  };
5779
- var Ta = function() {
5787
+ var Da = function() {
5780
5788
  var e = this, t = e._self._c;
5781
5789
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
5782
5790
  return e.$emit("block-added", a);
@@ -5815,18 +5823,18 @@ var Ta = function() {
5815
5823
  }), 1)], 1)], 1)])], 1)];
5816
5824
  } }], null, !0) })];
5817
5825
  } }]) });
5818
- }, Da = [], Va = /* @__PURE__ */ c(
5819
- Sa,
5826
+ }, Va = [], Ba = /* @__PURE__ */ c(
5820
5827
  Ta,
5821
5828
  Da,
5829
+ Va,
5822
5830
  !1,
5823
5831
  null,
5824
- "7b99e10a",
5832
+ "2f285e04",
5825
5833
  null,
5826
5834
  null
5827
5835
  );
5828
- const Ba = Va.exports;
5829
- const Ma = {
5836
+ const Ma = Ba.exports;
5837
+ const Ia = {
5830
5838
  name: "DocumentFormMenu",
5831
5839
  i18nOptions: {
5832
5840
  namespaces: "documentFormMenu",
@@ -5842,12 +5850,12 @@ const Ma = {
5842
5850
  }
5843
5851
  },
5844
5852
  components: {
5845
- Design: ea,
5846
- Fields: da,
5847
- ExtensionTab: fa,
5848
- DocumentGeneralSettings: xa,
5849
- DocumentGuide: () => import("./index-9a5227ef.js"),
5850
- MenuBlocks: Ba,
5853
+ Design: ta,
5854
+ Fields: pa,
5855
+ ExtensionTab: ga,
5856
+ DocumentGeneralSettings: wa,
5857
+ DocumentGuide: () => import("./index-5bf60a14.js"),
5858
+ MenuBlocks: Ma,
5851
5859
  Simplebar: b
5852
5860
  },
5853
5861
  props: {
@@ -5914,7 +5922,7 @@ const Ma = {
5914
5922
  }
5915
5923
  }
5916
5924
  };
5917
- var Ia = function() {
5925
+ var Fa = function() {
5918
5926
  var e = this, t = e._self._c;
5919
5927
  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) {
5920
5928
  return e.$emit("close");
@@ -5953,18 +5961,18 @@ var Ia = function() {
5953
5961
  }, 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) {
5954
5962
  e.showGuide = !1;
5955
5963
  } } }) : e._e()], 1)])]);
5956
- }, Fa = [], Ha = /* @__PURE__ */ c(
5957
- Ma,
5964
+ }, Ha = [], Aa = /* @__PURE__ */ c(
5958
5965
  Ia,
5959
5966
  Fa,
5967
+ Ha,
5960
5968
  !1,
5961
5969
  null,
5962
5970
  "383e8c99",
5963
5971
  null,
5964
5972
  null
5965
5973
  );
5966
- const Aa = Ha.exports;
5967
- const Pa = {
5974
+ const Pa = Aa.exports;
5975
+ const Ea = {
5968
5976
  name: "BlockControlButtons",
5969
5977
  i18nOptions: {
5970
5978
  namespace: "blockControlButtons",
@@ -5996,7 +6004,7 @@ const Pa = {
5996
6004
  }
5997
6005
  }
5998
6006
  };
5999
- var Ea = function() {
6007
+ var za = function() {
6000
6008
  var e = this, t = e._self._c;
6001
6009
  return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
6002
6010
  return e.$emit("toggle-visible", !e.isVisible);
@@ -6007,21 +6015,21 @@ var Ea = function() {
6007
6015
  } } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
6008
6016
  return e.$emit("remove");
6009
6017
  } } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)] : e._e()], 2);
6010
- }, za = [], Za = /* @__PURE__ */ c(
6011
- Pa,
6018
+ }, Za = [], Oa = /* @__PURE__ */ c(
6012
6019
  Ea,
6013
6020
  za,
6021
+ Za,
6014
6022
  !1,
6015
6023
  null,
6016
6024
  "79921f13",
6017
6025
  null,
6018
6026
  null
6019
6027
  );
6020
- const Oa = Za.exports;
6021
- const Ra = {
6028
+ const Ra = Oa.exports;
6029
+ const Ga = {
6022
6030
  name: "DynamicBlock",
6023
6031
  components: {
6024
- BlockControlButtons: Oa
6032
+ BlockControlButtons: Ra
6025
6033
  },
6026
6034
  props: {
6027
6035
  isDragging: {
@@ -6070,7 +6078,7 @@ const Ra = {
6070
6078
  }
6071
6079
  }
6072
6080
  };
6073
- var Ga = function() {
6081
+ var Ua = function() {
6074
6082
  var e = this, t = e._self._c;
6075
6083
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
6076
6084
  {
@@ -6093,18 +6101,18 @@ var Ga = function() {
6093
6101
  }, remove: function(a) {
6094
6102
  return e.$emit("remove");
6095
6103
  } } }) : e._e()], 1)]);
6096
- }, Ua = [], Wa = /* @__PURE__ */ c(
6097
- Ra,
6104
+ }, Wa = [], qa = /* @__PURE__ */ c(
6098
6105
  Ga,
6099
6106
  Ua,
6107
+ Wa,
6100
6108
  !1,
6101
6109
  null,
6102
6110
  "60aa95ad",
6103
6111
  null,
6104
6112
  null
6105
6113
  );
6106
- const qa = Wa.exports;
6107
- const Na = {
6114
+ const Na = qa.exports;
6115
+ const ja = {
6108
6116
  name: "DocumentDrawer",
6109
6117
  components: {
6110
6118
  simplebar: b,
@@ -6130,7 +6138,7 @@ const Na = {
6130
6138
  }
6131
6139
  }
6132
6140
  };
6133
- var ja = function() {
6141
+ var Ka = function() {
6134
6142
  var e = this, t = e._self._c;
6135
6143
  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: {
6136
6144
  "is-sticky": !e.fixed
@@ -6142,18 +6150,18 @@ var ja = function() {
6142
6150
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
6143
6151
  ...e.fixedStyle
6144
6152
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
6145
- }, Ka = [], Ya = /* @__PURE__ */ c(
6146
- Na,
6153
+ }, Ya = [], Qa = /* @__PURE__ */ c(
6147
6154
  ja,
6148
6155
  Ka,
6156
+ Ya,
6149
6157
  !1,
6150
6158
  null,
6151
6159
  "f0a56edd",
6152
6160
  null,
6153
6161
  null
6154
6162
  );
6155
- const Qa = Ya.exports;
6156
- const Ja = {
6163
+ const Ja = Qa.exports;
6164
+ const Xa = {
6157
6165
  name: "DocumentFormViewRadio",
6158
6166
  props: {
6159
6167
  value: {
@@ -6166,24 +6174,24 @@ const Ja = {
6166
6174
  }
6167
6175
  }
6168
6176
  };
6169
- var Xa = function() {
6177
+ var en = function() {
6170
6178
  var e = this, t = e._self._c;
6171
6179
  return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
6172
6180
  e.value === "preview" && e.$emit("input", "edit");
6173
6181
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
6174
6182
  e.value === "edit" && e.$emit("input", "preview");
6175
6183
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
6176
- }, en = [], tn = /* @__PURE__ */ c(
6177
- Ja,
6184
+ }, tn = [], an = /* @__PURE__ */ c(
6178
6185
  Xa,
6179
6186
  en,
6187
+ tn,
6180
6188
  !1,
6181
6189
  null,
6182
6190
  "bfd27279",
6183
6191
  null,
6184
6192
  null
6185
6193
  );
6186
- const an = tn.exports, nn = {
6194
+ const nn = an.exports, sn = {
6187
6195
  name: "LogoBanner",
6188
6196
  props: {
6189
6197
  position: {
@@ -6201,44 +6209,44 @@ const an = tn.exports, nn = {
6201
6209
  }
6202
6210
  }
6203
6211
  };
6204
- var sn = function() {
6212
+ var on = function() {
6205
6213
  var e = this, t = e._self._c;
6206
6214
  return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t("_common:brand.domain")}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
6207
- }, on = [], ln = /* @__PURE__ */ c(
6208
- nn,
6215
+ }, ln = [], rn = /* @__PURE__ */ c(
6209
6216
  sn,
6210
6217
  on,
6218
+ ln,
6211
6219
  !1,
6212
6220
  null,
6213
6221
  null,
6214
6222
  null,
6215
6223
  null
6216
6224
  );
6217
- const rn = ln.exports;
6218
- const cn = {
6225
+ const cn = rn.exports;
6226
+ const dn = {
6219
6227
  name: "DocumentFormNav"
6220
6228
  };
6221
- var dn = function() {
6229
+ var pn = function() {
6222
6230
  var e = this, t = e._self._c;
6223
6231
  return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "98" } }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
6224
- }, pn = [], un = /* @__PURE__ */ c(
6225
- cn,
6232
+ }, un = [], mn = /* @__PURE__ */ c(
6226
6233
  dn,
6227
6234
  pn,
6235
+ un,
6228
6236
  !1,
6229
6237
  null,
6230
6238
  "05fc111c",
6231
6239
  null,
6232
6240
  null
6233
6241
  );
6234
- const mn = un.exports;
6242
+ const hn = mn.exports;
6235
6243
  const re = (i, e, t = "$children") => {
6236
6244
  if (!i)
6237
6245
  return;
6238
6246
  e(i);
6239
6247
  const a = i[t];
6240
6248
  !a && !Array.isArray(a) || a.forEach((n) => re(n, e));
6241
- }, hn = {
6249
+ }, fn = {
6242
6250
  i18nOptions: {
6243
6251
  namespaces: "DocumentFormContainer",
6244
6252
  messages: {
@@ -6254,18 +6262,18 @@ const re = (i, e, t = "$children") => {
6254
6262
  },
6255
6263
  name: "DocumentFormContainer",
6256
6264
  components: {
6257
- WithDimensions: Qe,
6265
+ WithDimensions: Je,
6258
6266
  DragList: K,
6259
6267
  DragItem: Y,
6260
- DynamicChapter: Je,
6261
- DocumentFormMenu: Aa,
6262
- DynamicBlock: qa,
6263
- DocumentFormViewRadio: an,
6264
- DocumentFormNav: mn,
6265
- DocumentDrawer: Qa,
6266
- DocumentStyleContainer: Xe,
6268
+ DynamicChapter: Xe,
6269
+ DocumentFormMenu: Pa,
6270
+ DynamicBlock: Na,
6271
+ DocumentFormViewRadio: nn,
6272
+ DocumentFormNav: hn,
6273
+ DocumentDrawer: Ja,
6274
+ DocumentStyleContainer: et,
6267
6275
  simplebar: b,
6268
- LogoBanner: rn,
6276
+ LogoBanner: cn,
6269
6277
  IsPremium: Q
6270
6278
  },
6271
6279
  props: {
@@ -6394,7 +6402,7 @@ const re = (i, e, t = "$children") => {
6394
6402
  },
6395
6403
  methods: {
6396
6404
  onAddBlockMount(i, e) {
6397
- !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ut(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6405
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => mt(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
6398
6406
  },
6399
6407
  onBlockToggleVisible(i, e) {
6400
6408
  const a = [...this.readLayout].findIndex(
@@ -6481,7 +6489,7 @@ const re = (i, e, t = "$children") => {
6481
6489
  }
6482
6490
  }
6483
6491
  };
6484
- var fn = function() {
6492
+ var gn = function() {
6485
6493
  var e = this, t = e._self._c;
6486
6494
  return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
6487
6495
  "is-edit-view": e.isEditView,
@@ -6548,32 +6556,32 @@ var fn = function() {
6548
6556
  } }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: e.drawerState.showRight, fixed: !0, position: "right" }, on: { "update:open": function(a) {
6549
6557
  return e.$set(e.drawerState, "showRight", a);
6550
6558
  } } }, [t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
6551
- }, gn = [function() {
6559
+ }, Cn = [function() {
6552
6560
  var i = this, e = i._self._c;
6553
6561
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
6554
- }], Cn = /* @__PURE__ */ c(
6555
- hn,
6562
+ }], vn = /* @__PURE__ */ c(
6556
6563
  fn,
6557
6564
  gn,
6565
+ Cn,
6558
6566
  !1,
6559
6567
  null,
6560
6568
  "e54004e2",
6561
6569
  null,
6562
6570
  null
6563
6571
  );
6564
- const vn = Cn.exports, V = k.observable({
6572
+ const yn = vn.exports, V = k.observable({
6565
6573
  canEdit: !1,
6566
6574
  isForm: !0,
6567
6575
  setFormValue: null
6568
- }), yn = {
6576
+ }), xn = {
6569
6577
  name: "DocumentForm",
6570
6578
  components: {
6571
- DocumentFormContainer: vn,
6579
+ DocumentFormContainer: yn,
6572
6580
  IsPremium: Q,
6573
6581
  IsPremiumPreStep: I,
6574
- DocumentSend: zi
6582
+ DocumentSend: Zi
6575
6583
  },
6576
- mixins: [ot({ currentElement: null }), lt],
6584
+ mixins: [lt({ currentElement: null }), rt],
6577
6585
  props: {
6578
6586
  document: {
6579
6587
  type: Object,
@@ -6677,13 +6685,13 @@ const vn = Cn.exports, V = k.observable({
6677
6685
  }
6678
6686
  }
6679
6687
  };
6680
- var xn = function() {
6688
+ var wn = function() {
6681
6689
  var e = this, t = e._self._c;
6682
6690
  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) {
6683
6691
  e.view = a;
6684
6692
  } } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a }) {
6685
6693
  return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6686
- return [t("div", { staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
6694
+ return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
6687
6695
  return [t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(s) {
6688
6696
  a || e.document.id ? e.openSendModal() : n({ callback: e.openSendModal });
6689
6697
  } } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(s) {
@@ -6691,7 +6699,7 @@ var xn = function() {
6691
6699
  } } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: e.saveAsTemplate } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
6692
6700
  })], 2)];
6693
6701
  } }], null, !0) })];
6694
- } }], null, !1, 4167921294) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6702
+ } }], null, !1, 2694380453) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6695
6703
  expiresAt: "data.expiresAt",
6696
6704
  personalMessage: "data.personalMessage",
6697
6705
  defaultAnswerMethod: "data.defaultAnswerMethod",
@@ -6699,18 +6707,18 @@ var xn = function() {
6699
6707
  reminders: "data.reminders",
6700
6708
  name: "data.name"
6701
6709
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }) : e._e()], 1) : e._e();
6702
- }, wn = [], bn = /* @__PURE__ */ c(
6703
- yn,
6710
+ }, bn = [], _n = /* @__PURE__ */ c(
6704
6711
  xn,
6705
6712
  wn,
6713
+ bn,
6706
6714
  !1,
6707
6715
  null,
6708
6716
  null,
6709
6717
  null,
6710
6718
  null
6711
6719
  );
6712
- const _n = bn.exports;
6713
- const kn = {
6720
+ const kn = _n.exports;
6721
+ const Ln = {
6714
6722
  name: "ClientLinks",
6715
6723
  props: {
6716
6724
  id: {
@@ -6769,28 +6777,28 @@ const kn = {
6769
6777
  }
6770
6778
  }
6771
6779
  };
6772
- var Ln = function() {
6780
+ var $n = function() {
6773
6781
  var e = this, t = e._self._c;
6774
6782
  return t("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [t("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(a) {
6775
6783
  return e.$emit("close");
6776
6784
  } } }), t("div", { staticStyle: { padding: "0 0 2.5em" } }, [t("div", { staticClass: "x-title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "x-text", domProps: { textContent: e._s(e.$t("text")) } })]), e.clients.length ? e._l(e.clients, function(a, n) {
6777
6785
  return t("div", { key: n, staticClass: "client-card" }, [t("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [t("div", { staticClass: "client-title truncate-text" }, [e._v(" " + e._s(a.primaryTitle) + " "), a.secondaryTitle ? t("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [e._v("· " + e._s(a.secondaryTitle))]) : e._e()]), a.documentRole ? t("div", { domProps: { textContent: e._s(e.$t(`_common:documentRole.${a.documentRole}.label`)) } }) : e._e(), t("div", [a.email ? t("a", { attrs: { href: `mailto:${a.email}?&body=${a.docLink}` } }, [e._v(e._s(a.email))]) : e._e(), a.email && a.cellphone ? t("span", { staticStyle: { padding: "0 0.5ch" } }, [e._v("·")]) : e._e(), a.cellphone ? t("a", { attrs: { href: `sms:${a.cellphone}?&body=${a.docLink}` } }, [t("CPhoneFormat", { attrs: { phone: a.cellphone, region: a.cellphoneRegion } })], 1) : e._e()])]), t("div", { staticStyle: { display: "flex", position: "relative" } }, [t("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: e.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: a.docLink } }), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: e.copyToClipboard } }, [t("BaseIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
6778
6786
  }) : t("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: e._s(e.$t("placeholder")) } }), t("div", { staticClass: "x-hint" }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), t("div", { domProps: { textContent: e._s(e.$t("hint")) } })], 1)], 2)]);
6779
- }, $n = [], Sn = /* @__PURE__ */ c(
6780
- kn,
6787
+ }, Sn = [], Tn = /* @__PURE__ */ c(
6781
6788
  Ln,
6782
6789
  $n,
6790
+ Sn,
6783
6791
  !1,
6784
6792
  null,
6785
6793
  "791a9a8f",
6786
6794
  null,
6787
6795
  null
6788
6796
  );
6789
- const Tn = Sn.exports, Dn = Tn, Vn = ({ id: i }) => {
6797
+ const Dn = Tn.exports, Vn = Dn, Bn = ({ id: i }) => {
6790
6798
  if (!k.prototype.$modal)
6791
6799
  throw Error("Open client modal requires plugin vue-js-modal");
6792
6800
  k.prototype.$modal.show(
6793
- Dn,
6801
+ Vn,
6794
6802
  {
6795
6803
  id: i
6796
6804
  },
@@ -6803,8 +6811,8 @@ const Tn = Sn.exports, Dn = Tn, Vn = ({ id: i }) => {
6803
6811
  }
6804
6812
  );
6805
6813
  };
6806
- const Bn = {
6807
- name: "PostDocumentSend",
6814
+ const Mn = {
6815
+ name: "DocumentPostSendStep",
6808
6816
  mixins: [L],
6809
6817
  i18nOptions: {
6810
6818
  namespaces: "PostDocumentSend",
@@ -6860,7 +6868,7 @@ const Bn = {
6860
6868
  id: i,
6861
6869
  body: { status: "sent" },
6862
6870
  showMessage: !1
6863
- }), Vn({ id: i })), t || setTimeout(() => this.close(), 2e3);
6871
+ }), Bn({ id: i })), t || setTimeout(() => this.close(), 2e3);
6864
6872
  },
6865
6873
  async onSend() {
6866
6874
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -6879,7 +6887,7 @@ const Bn = {
6879
6887
  body: { isAccepted: !0 },
6880
6888
  checksum: a
6881
6889
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
6882
- mt,
6890
+ ht,
6883
6891
  {
6884
6892
  _document: this.document,
6885
6893
  fullScreen: this.modalHeight === "100%",
@@ -6923,22 +6931,22 @@ const Bn = {
6923
6931
  }
6924
6932
  }
6925
6933
  };
6926
- var Mn = function() {
6934
+ var In = function() {
6927
6935
  var e = this, t = e._self._c;
6928
6936
  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)]);
6929
- }, In = [], Fn = /* @__PURE__ */ c(
6930
- Bn,
6937
+ }, Fn = [], Hn = /* @__PURE__ */ c(
6931
6938
  Mn,
6932
6939
  In,
6940
+ Fn,
6933
6941
  !1,
6934
6942
  null,
6935
- "1f679c67",
6943
+ "673cd86f",
6936
6944
  null,
6937
6945
  null
6938
6946
  );
6939
- const Hn = Fn.exports;
6940
- k.use(st);
6941
- const An = {
6947
+ const An = Hn.exports;
6948
+ k.use(ot);
6949
+ const Pn = {
6942
6950
  name: "DocForm",
6943
6951
  mixins: [Ge(["closeFunc", "beforeSave", "beforeSend"])],
6944
6952
  i18nOptions: {
@@ -6953,9 +6961,9 @@ const An = {
6953
6961
  }
6954
6962
  },
6955
6963
  components: {
6956
- TemplateSelector: x2,
6957
- DocumentForm: _n,
6958
- PostSend: Hn
6964
+ TemplateSelector: w2,
6965
+ DocumentForm: kn,
6966
+ PostSend: An
6959
6967
  },
6960
6968
  props: {
6961
6969
  isNew: {
@@ -7026,7 +7034,7 @@ const An = {
7026
7034
  },
7027
7035
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7028
7036
  var n;
7029
- const a = E1({ ...this.rawDoc }, [
7037
+ const a = z1({ ...this.rawDoc }, [
7030
7038
  "__tempId",
7031
7039
  "externalReferences",
7032
7040
  "clients",
@@ -7068,20 +7076,20 @@ const An = {
7068
7076
  }
7069
7077
  }
7070
7078
  };
7071
- var Pn = function() {
7079
+ var En = function() {
7072
7080
  var e = this, t = e._self._c;
7073
7081
  return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7074
- }, En = [], zn = /* @__PURE__ */ c(
7075
- An,
7082
+ }, zn = [], Zn = /* @__PURE__ */ c(
7076
7083
  Pn,
7077
7084
  En,
7085
+ zn,
7078
7086
  !1,
7079
7087
  null,
7080
7088
  null,
7081
7089
  null,
7082
7090
  null
7083
7091
  );
7084
- const ys = zn.exports;
7092
+ const xs = Zn.exports;
7085
7093
  export {
7086
- ys as default
7094
+ xs as default
7087
7095
  };