@cling-se/widget 0.9.32 → 0.10.2
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.
- package/dist/{AddClientCallout-57195414.js → AddClientCallout-c91ca331.js} +5 -5
- package/dist/{AnswerModal-84115064.js → AnswerModal-8a2e1b96.js} +47 -47
- package/dist/{AttachmentItem-d5059568.js → AttachmentItem-2fcd4102.js} +15 -10
- package/dist/{BaseDatePicker-0f2bbfe0.js → BaseDatePicker-764430e7.js} +2 -2
- package/dist/{BaseInput-09fa078c.js → BaseInput-16ff95d4.js} +1 -1
- package/dist/{BaseUpload-7ac7f0de.js → BaseUpload-cde6c150.js} +25 -25
- package/dist/{BlockMedia-35572b5a.js → BlockMedia-73c89da8.js} +1 -1
- package/dist/{CCallout-f4a3000f.js → CCallout-80f62120.js} +2 -2
- package/dist/{CDropdownItem-648b13e8.js → CDropdownItem-b703493e.js} +1 -1
- package/dist/{CField-c179740e.js → CField-82e3942c.js} +1 -1
- package/dist/{CPhoneFormat-06cd312e.js → CPhoneFormat-6f544ea2.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-545e8e1a.js → CSlider.vue_vue_type_style_index_0_lang-ee3915b1.js} +1 -1
- package/dist/{ClientAutocomplete-1aacab81.js → ClientAutocomplete-ea981ce9.js} +2 -2
- package/dist/{ClientModal-62cfe454.js → ClientModal-b1f06e4b.js} +5 -5
- package/dist/{ColorPicker-c9eadd63.js → ColorPicker-db332e31.js} +1 -1
- package/dist/{CompanyModal-1140af13.js → CompanyModal-37d80a52.js} +3 -3
- package/dist/{ContentWrapper-5d7221c8.js → ContentWrapper-530ac6c4.js} +13 -13
- package/dist/{CoverBlockSettings-668eec29.js → CoverBlockSettings-70f33b4e.js} +9 -9
- package/dist/DocAnswer-b3af9c74.js +43 -0
- package/dist/{DocDetails-02ab49b6.js → DocDetails-4569f591.js} +46 -37
- package/dist/{DocForm-25924bbc.js → DocForm-e6dbd1b7.js} +523 -653
- package/dist/{DocFormSend-666669ea.js → DocFormSend-097fad46.js} +51 -38
- package/dist/DocLinks-de9a4377.js +41 -0
- package/dist/{DocModalBase-ed5f21ca.js → DocModalBase-1d7b3e3a.js} +1 -1
- package/dist/{DocPrint-c8e7792f.js → DocPrint-1747a6cc.js} +1 -1
- package/dist/{DocReceipt-68bb30bd.js → DocReceipt-a7b28565.js} +1 -1
- package/dist/{DocSendReminder-1bb53aa6.js → DocSendReminder-f9861a59.js} +1 -1
- package/dist/{DocTextEditor-baf911e4.js → DocTextEditor-5ca1ab49.js} +8 -8
- package/dist/{DocTimeline-e80b7d30.js → DocTimeline-fed91a61.js} +1 -1
- package/dist/{DocumentClient-e5674987.js → DocumentClient-a10eb849.js} +7 -7
- package/dist/{DocumentLayout-bdb661ca.js → DocumentLayout-3a00c75c.js} +5 -5
- package/dist/{DocumentLogotype-b47e5d3b.js → DocumentLogotype-47bdfc02.js} +3 -3
- package/dist/{DocumentVoided-4689a48a.js → DocumentVoided-10eb3206.js} +1 -1
- package/dist/{EmbedInput-4e9f9fdc.js → EmbedInput-a393b7a7.js} +2 -2
- package/dist/{EmbedSettings-8e8e772e.js → EmbedSettings-e34184f5.js} +3 -3
- package/dist/{ErrorCallout-b48cecf9.js → ErrorCallout-bb4bb30b.js} +1 -1
- package/dist/{FilePreviewModal-5ae3179e.js → FilePreviewModal-63bf0717.js} +5 -5
- package/dist/{Flag-f21c517c.js → Flag-952ef47c.js} +1 -1
- package/dist/{HeaderSettings-dadaba45.js → HeaderSettings-0f324256.js} +21 -21
- package/dist/{ImageSelectModal-3079deaf.js → ImageSelectModal-9454fc9b.js} +8 -8
- package/dist/{ImageUploadWrapper-92389319.js → ImageUploadWrapper-0f3f712f.js} +2 -2
- package/dist/{Index-0d9fc410.js → Index-08b3f0d9.js} +6 -6
- package/dist/{Index-83509fc5.js → Index-11417826.js} +1 -1
- package/dist/{Index-16e2d1e5.js → Index-11fce018.js} +4 -4
- package/dist/{Index-1a6f1fe8.js → Index-1899a59d.js} +14 -14
- package/dist/{Index-3855ca38.js → Index-1ad2a354.js} +7 -7
- package/dist/{Index-c4184a33.js → Index-22a6ac2c.js} +2 -2
- package/dist/{Index-a7d30625.js → Index-2e836913.js} +4 -4
- package/dist/{Index-da28cb69.js → Index-3b07edd1.js} +4 -4
- package/dist/{Index-18ee40ea.js → Index-445dc171.js} +7 -7
- package/dist/{Index-3a7288be.js → Index-4600f943.js} +17 -17
- package/dist/{Index-b9535d28.js → Index-496348ea.js} +14 -14
- package/dist/{Index-ad7770f7.js → Index-53f5e92b.js} +4 -4
- package/dist/{Index-ed57f450.js → Index-5962c5fa.js} +6 -6
- package/dist/{Index-aac9dd15.js → Index-5d78cedc.js} +9 -9
- package/dist/{Index-93d6b687.js → Index-6052206b.js} +2 -2
- package/dist/{Index-a9cfa68b.js → Index-62311015.js} +5 -5
- package/dist/{Index-e6b7d574.js → Index-6a0bc652.js} +14 -14
- package/dist/{Index-aa9388ac.js → Index-722972c7.js} +4 -4
- package/dist/{Index-672648c7.js → Index-733a87b2.js} +8 -8
- package/dist/{Index-ea0c9b42.js → Index-7b01d5f3.js} +1 -1
- package/dist/{Index-9794be3d.js → Index-7f9f54df.js} +5 -5
- package/dist/{Index-469db7d7.js → Index-85ba630b.js} +4 -4
- package/dist/{Index-48e502c3.js → Index-89d7293e.js} +4 -4
- package/dist/{Index-d0cf8cd4.js → Index-902c62af.js} +2 -2
- package/dist/{Index-85b558a8.js → Index-94e5bdd2.js} +6 -6
- package/dist/{Index-c704e669.js → Index-9c5778a0.js} +10 -10
- package/dist/{Index-ef0a8d46.js → Index-a13a8628.js} +2 -2
- package/dist/{Index-21715b96.js → Index-a99bd8f6.js} +2 -2
- package/dist/{Index-6d2a08a5.js → Index-ab589ff1.js} +6 -6
- package/dist/{Index-c3f4a4b8.js → Index-b320d668.js} +3 -3
- package/dist/{Index-25240fbd.js → Index-bbb1eed9.js} +2 -2
- package/dist/{Index-85996f2f.js → Index-c3100eb8.js} +2 -2
- package/dist/{Index-88aa3f7e.js → Index-e7af00fd.js} +4 -4
- package/dist/{Index-adabe428.js → Index-f31c6bf6.js} +2 -2
- package/dist/{InputToggleRow-67d34fe0.js → InputToggleRow-04ccd5f2.js} +1 -1
- package/dist/{IsPremiumPreStep-f1c4e0f9.js → IsPremiumPreStep-fd71afe7.js} +15 -15
- package/dist/{ManualPopover-4641e4de.js → ManualPopover-66e2fbda.js} +1 -1
- package/dist/{MediaWrapper-3dbdd7b2.js → MediaWrapper-0895cb0a.js} +3 -3
- package/dist/{NotBindingText-3c7f4d55.js → NotBindingText-bbb75490.js} +2 -2
- package/dist/{PackageGroup-c935a59b.js → PackageGroup-d0c8c851.js} +15 -15
- package/dist/{PdfTerms-6afcf887.js → PdfTerms-3ca871a7.js} +5 -5
- package/dist/{PdfViewer-f6d4d126.js → PdfViewer-f8877419.js} +2 -2
- package/dist/{PlainHtml-41dde027.js → PlainHtml-70f73857.js} +1 -1
- package/dist/{PriceHeader-84ad2639.js → PriceHeader-bd7f2fa0.js} +13 -13
- package/dist/{SearchApi-a8d58e7b.js → SearchApi-dfd24f3e.js} +3 -4
- package/dist/{Setup-86baa232.js → Setup-67aa6fe8.js} +1 -1
- package/dist/{TermsSettings-158e2ba7.js → TermsSettings-fe4e225f.js} +7 -7
- package/dist/{ThemeColorRow-af9f1f9f.js → ThemeColorRow-81f8615a.js} +3 -3
- package/dist/{ToggleBinding-d80c5b56.js → ToggleBinding-5af2df09.js} +3 -3
- package/dist/{UploadModal-64705993.js → UploadModal-8c766ba7.js} +3 -3
- package/dist/{VideoPlayerInput-f001a306.js → VideoPlayerInput-0a11df1e.js} +3 -3
- package/dist/{VideoPlayerSettings-be3a2a08.js → VideoPlayerSettings-e54bdb5e.js} +4 -4
- package/dist/{VideoSelectModal-325ca974.js → VideoSelectModal-023186e1.js} +8 -8
- package/dist/{answerDocumentMixin-7b4bd6d8.js → answerDocumentMixin-97203107.js} +3 -3
- package/dist/{debounce-2da37622.js → debounce-653d5a89.js} +8 -8
- package/dist/{focusDrawerMixin-2593f43c.js → focusDrawerMixin-7f321c15.js} +1 -1
- package/dist/{formComponentsInstall-05dc0275.js → formComponentsInstall-fd01cdd2.js} +12 -12
- package/dist/{formDrawerState-1279a667.js → formDrawerState-3c299bf6.js} +1 -1
- package/dist/{formValidationMixin-b354db95.js → formValidationMixin-c20cb8fe.js} +1 -1
- package/dist/{index-20e88d5e.js → index-01437260.js} +3 -3
- package/dist/{index-aa52e2dc.js → index-2aa11fa3.js} +5 -5
- package/dist/{index-c30544b6.js → index-60e8f1c3.js} +1 -1
- package/dist/{index-05ff66b4.js → index-aa0b2a84.js} +13 -13
- package/dist/{index-b9ea34e7.js → index-bf9f0618.js} +48 -48
- package/dist/{index-88e32902.js → index-dc39dc99.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +160 -171
- package/dist/{main-5fada315.js → main-6be1d89a.js} +11707 -14214
- package/dist/{mapFormMixin-881590dc.js → mapFormMixin-ab97e85b.js} +1 -1
- package/dist/{publicSenderState-b7a68e31.js → publicSenderState-2ca5021f.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-14a46b90.js → throttle-78ffe6e1.js} +2 -2
- package/dist/{tinycolor-bcf90a67.js → tinycolor-8972e238.js} +1 -1
- package/dist/{tippy.esm-ece926d8.js → tippy.esm-d62237ec.js} +5 -5
- package/dist/{utils-482054e4.js → utils-24c33071.js} +1 -1
- package/dist/{vuedraggable.umd-0883a75f.js → vuedraggable.umd-78b3c86e.js} +1 -1
- package/package.json +4 -4
- package/dist/DocAnswer-978f1b34.js +0 -30
- package/dist/DocLinks-1b3d8aa7.js +0 -38
|
@@ -1,169 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as m, n as d, v as U, b as u, aE as ae, c as f, C as O, b6 as ne, b7 as se, K as R, L as H, h as D, b8 as oe, b9 as le, B as re, ba as ce, bb as de, b5 as pe, bc as ue, R as p, a8 as h, b0 as y, bd as me, be as he, bf as fe, bg as ge, bh as Ce, bi as ve, F as ye, bj as xe, d as we, i as $, S as be, ay as _e, l as ke, bk as Le, V as A, b2 as G, b3 as W, I as z, bl as B, b4 as $e, bm as Se, j as Te, bn as F, m as De, a as Ve, bo as Be, bp as Me } from "./main-6be1d89a.js";
|
|
2
2
|
import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { w as b } from "./CDropdownItem-
|
|
6
|
-
import { a as _, I as k, b as
|
|
7
|
-
import { D as
|
|
8
|
-
import { s as L } from "./Flag-
|
|
9
|
-
import { B as
|
|
10
|
-
import { d as P, t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { m as S } from "./mapFormMixin-
|
|
13
|
-
import { S as
|
|
14
|
-
import { f as
|
|
15
|
-
import { s as v } from "./formDrawerState-
|
|
16
|
-
import { F as
|
|
17
|
-
import { S as
|
|
18
|
-
import { o as
|
|
19
|
-
import { s as
|
|
20
|
-
import { o as
|
|
21
|
-
import
|
|
3
|
+
import "./index-bf9f0618.js";
|
|
4
|
+
import { v as I } from "./index-805c56e4.js";
|
|
5
|
+
import { w as b } from "./CDropdownItem-b703493e.js";
|
|
6
|
+
import { a as _, I as k, b as Fe, c as Ie } from "./IsPremiumPreStep-fd71afe7.js";
|
|
7
|
+
import { D as He, l as Ae, g as Pe, W as ze, b as Ee, a as Ze } from "./DocumentLayout-3a00c75c.js";
|
|
8
|
+
import { s as L } from "./Flag-952ef47c.js";
|
|
9
|
+
import { B as Ue } from "./BlockMedia-73c89da8.js";
|
|
10
|
+
import { d as P, t as Oe } from "./debounce-653d5a89.js";
|
|
11
|
+
import { a as Re } from "./tinycolor-8972e238.js";
|
|
12
|
+
import { m as S } from "./mapFormMixin-ab97e85b.js";
|
|
13
|
+
import { S as Ge, C as q, i as We } from "./formComponentsInstall-fd01cdd2.js";
|
|
14
|
+
import { f as qe } from "./formValidationMixin-c20cb8fe.js";
|
|
15
|
+
import { s as v } from "./formDrawerState-3c299bf6.js";
|
|
16
|
+
import { F as N, d as Ne } from "./tippy.esm-d62237ec.js";
|
|
17
|
+
import { S as je } from "./CSlider.vue_vue_type_style_index_0_lang-ee3915b1.js";
|
|
18
|
+
import { o as Ke, d as Ye } from "./vuedraggable.umd-78b3c86e.js";
|
|
19
|
+
import { s as Qe } from "./dom-962579a6.js";
|
|
20
|
+
import { o as Je } from "./index-60e8f1c3.js";
|
|
21
|
+
import Xe from "./AnswerModal-8a2e1b96.js";
|
|
22
22
|
import "./anime.es-e284c852.js";
|
|
23
23
|
import "./color-71c20583.js";
|
|
24
|
-
import "./BaseDatePicker-
|
|
25
|
-
import "./ErrorCallout-
|
|
26
|
-
import "./AddClientCallout-
|
|
27
|
-
import "./ClientAutocomplete-
|
|
28
|
-
import "./SearchApi-
|
|
29
|
-
import "./ClientModal-
|
|
30
|
-
import "./CCallout-
|
|
31
|
-
import "./CField-
|
|
24
|
+
import "./BaseDatePicker-764430e7.js";
|
|
25
|
+
import "./ErrorCallout-bb4bb30b.js";
|
|
26
|
+
import "./AddClientCallout-c91ca331.js";
|
|
27
|
+
import "./ClientAutocomplete-ea981ce9.js";
|
|
28
|
+
import "./SearchApi-dfd24f3e.js";
|
|
29
|
+
import "./ClientModal-b1f06e4b.js";
|
|
30
|
+
import "./CCallout-80f62120.js";
|
|
31
|
+
import "./CField-82e3942c.js";
|
|
32
32
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
33
|
-
import "./ColorPicker-
|
|
34
|
-
|
|
35
|
-
function wt(i, e, t) {
|
|
36
|
-
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
37
|
-
var o = e[a], l = vt(i, o);
|
|
38
|
-
t(l, o) && yt(s, xt(o, i), l);
|
|
39
|
-
}
|
|
40
|
-
return s;
|
|
41
|
-
}
|
|
42
|
-
var bt = wt;
|
|
43
|
-
function _t(i, e) {
|
|
44
|
-
return i != null && e in Object(i);
|
|
45
|
-
}
|
|
46
|
-
var kt = _t, Lt = Ce, $t = N, St = "[object Arguments]";
|
|
47
|
-
function Tt(i) {
|
|
48
|
-
return $t(i) && Lt(i) == St;
|
|
49
|
-
}
|
|
50
|
-
var Dt = Tt, z = Dt, Vt = N, ae = Object.prototype, Bt = ae.hasOwnProperty, Mt = ae.propertyIsEnumerable, It = z(function() {
|
|
51
|
-
return arguments;
|
|
52
|
-
}()) ? z : function(i) {
|
|
53
|
-
return Vt(i) && Bt.call(i, "callee") && !Mt.call(i, "callee");
|
|
54
|
-
}, ne = It, Ft = 9007199254740991;
|
|
55
|
-
function Ht(i) {
|
|
56
|
-
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Ft;
|
|
57
|
-
}
|
|
58
|
-
var At = Ht, Pt = q, Et = ne, zt = j, Zt = ve, Ot = At, Ut = ye;
|
|
59
|
-
function Rt(i, e, t) {
|
|
60
|
-
e = Pt(e, i);
|
|
61
|
-
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
62
|
-
var o = Ut(e[a]);
|
|
63
|
-
if (!(s = i != null && t(i, o)))
|
|
64
|
-
break;
|
|
65
|
-
i = i[o];
|
|
66
|
-
}
|
|
67
|
-
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Ot(n) && Zt(o, n) && (zt(i) || Et(i)));
|
|
68
|
-
}
|
|
69
|
-
var Gt = Rt, Wt = kt, qt = Gt;
|
|
70
|
-
function Nt(i, e) {
|
|
71
|
-
return i != null && qt(i, e, Wt);
|
|
72
|
-
}
|
|
73
|
-
var jt = Nt, Kt = bt, Yt = jt;
|
|
74
|
-
function Qt(i, e) {
|
|
75
|
-
return Kt(i, e, function(t, a) {
|
|
76
|
-
return Yt(i, a);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
var Jt = Qt;
|
|
80
|
-
function Xt(i, e) {
|
|
81
|
-
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
82
|
-
i[n + t] = e[t];
|
|
83
|
-
return i;
|
|
84
|
-
}
|
|
85
|
-
var e1 = Xt, Z = xe, t1 = ne, i1 = j, O = Z ? Z.isConcatSpreadable : void 0;
|
|
86
|
-
function a1(i) {
|
|
87
|
-
return i1(i) || t1(i) || !!(O && i && i[O]);
|
|
88
|
-
}
|
|
89
|
-
var n1 = a1, s1 = e1, o1 = n1;
|
|
90
|
-
function se(i, e, t, a, n) {
|
|
91
|
-
var s = -1, o = i.length;
|
|
92
|
-
for (t || (t = o1), n || (n = []); ++s < o; ) {
|
|
93
|
-
var l = i[s];
|
|
94
|
-
e > 0 && t(l) ? e > 1 ? se(l, e - 1, t, a, n) : s1(n, l) : a || (n[n.length] = l);
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
}
|
|
98
|
-
var l1 = se, r1 = l1;
|
|
99
|
-
function c1(i) {
|
|
100
|
-
var e = i == null ? 0 : i.length;
|
|
101
|
-
return e ? r1(i, 1) : [];
|
|
102
|
-
}
|
|
103
|
-
var d1 = c1;
|
|
104
|
-
function p1(i, e, t) {
|
|
105
|
-
switch (t.length) {
|
|
106
|
-
case 0:
|
|
107
|
-
return i.call(e);
|
|
108
|
-
case 1:
|
|
109
|
-
return i.call(e, t[0]);
|
|
110
|
-
case 2:
|
|
111
|
-
return i.call(e, t[0], t[1]);
|
|
112
|
-
case 3:
|
|
113
|
-
return i.call(e, t[0], t[1], t[2]);
|
|
114
|
-
}
|
|
115
|
-
return i.apply(e, t);
|
|
116
|
-
}
|
|
117
|
-
var u1 = p1, m1 = u1, U = Math.max;
|
|
118
|
-
function h1(i, e, t) {
|
|
119
|
-
return e = U(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
120
|
-
for (var a = arguments, n = -1, s = U(a.length - e, 0), o = Array(s); ++n < s; )
|
|
121
|
-
o[n] = a[e + n];
|
|
122
|
-
n = -1;
|
|
123
|
-
for (var l = Array(e + 1); ++n < e; )
|
|
124
|
-
l[n] = a[n];
|
|
125
|
-
return l[e] = t(o), m1(i, this, l);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
var f1 = h1;
|
|
129
|
-
function g1(i) {
|
|
130
|
-
return function() {
|
|
131
|
-
return i;
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
var C1 = g1;
|
|
135
|
-
function v1(i) {
|
|
136
|
-
return i;
|
|
137
|
-
}
|
|
138
|
-
var y1 = v1, x1 = C1, R = we, w1 = y1, b1 = R ? function(i, e) {
|
|
139
|
-
return R(i, "toString", {
|
|
140
|
-
configurable: !0,
|
|
141
|
-
enumerable: !1,
|
|
142
|
-
value: x1(e),
|
|
143
|
-
writable: !0
|
|
144
|
-
});
|
|
145
|
-
} : w1, _1 = b1, k1 = 800, L1 = 16, $1 = Date.now;
|
|
146
|
-
function S1(i) {
|
|
147
|
-
var e = 0, t = 0;
|
|
148
|
-
return function() {
|
|
149
|
-
var a = $1(), n = L1 - (a - t);
|
|
150
|
-
if (t = a, n > 0) {
|
|
151
|
-
if (++e >= k1)
|
|
152
|
-
return arguments[0];
|
|
153
|
-
} else
|
|
154
|
-
e = 0;
|
|
155
|
-
return i.apply(void 0, arguments);
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
var T1 = S1, D1 = _1, V1 = T1, B1 = V1(D1), M1 = B1, I1 = d1, F1 = f1, H1 = M1;
|
|
159
|
-
function A1(i) {
|
|
160
|
-
return H1(F1(i, void 0, I1), i + "");
|
|
161
|
-
}
|
|
162
|
-
var P1 = A1, E1 = Jt, z1 = P1, Z1 = z1(function(i, e) {
|
|
163
|
-
return i == null ? {} : E1(i, e);
|
|
164
|
-
}), O1 = Z1;
|
|
165
|
-
const U1 = /* @__PURE__ */ K(O1);
|
|
166
|
-
const R1 = {
|
|
33
|
+
import "./ColorPicker-db332e31.js";
|
|
34
|
+
const et = {
|
|
167
35
|
i18nOptions: {
|
|
168
36
|
namespaces: "DocumentTemplateFormModal",
|
|
169
37
|
messages: {
|
|
@@ -216,7 +84,7 @@ const R1 = {
|
|
|
216
84
|
},
|
|
217
85
|
validations: {
|
|
218
86
|
name: {
|
|
219
|
-
required:
|
|
87
|
+
required: I.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
220
88
|
}
|
|
221
89
|
},
|
|
222
90
|
computed: {
|
|
@@ -306,7 +174,7 @@ const R1 = {
|
|
|
306
174
|
}
|
|
307
175
|
}
|
|
308
176
|
};
|
|
309
|
-
var
|
|
177
|
+
var tt = function() {
|
|
310
178
|
var e = this, t = e._self._c;
|
|
311
179
|
return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
|
|
312
180
|
e.name = a;
|
|
@@ -315,18 +183,18 @@ var G1 = function() {
|
|
|
315
183
|
}, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
|
|
316
184
|
e.keepClients = a;
|
|
317
185
|
}, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
186
|
+
}, it = [], at = /* @__PURE__ */ d(
|
|
187
|
+
et,
|
|
188
|
+
tt,
|
|
189
|
+
it,
|
|
322
190
|
!1,
|
|
323
191
|
null,
|
|
324
192
|
"f544bca9",
|
|
325
193
|
null,
|
|
326
194
|
null
|
|
327
195
|
);
|
|
328
|
-
const
|
|
329
|
-
function
|
|
196
|
+
const j = at.exports;
|
|
197
|
+
function nt(i, { availableProducts: e }) {
|
|
330
198
|
if (!i)
|
|
331
199
|
throw new Error("Missing parameter templateId");
|
|
332
200
|
const t = e, a = Object.keys(t).find((n) => {
|
|
@@ -339,10 +207,10 @@ function N1(i, { availableProducts: e }) {
|
|
|
339
207
|
});
|
|
340
208
|
return a ? t[a] : null;
|
|
341
209
|
}
|
|
342
|
-
async function
|
|
210
|
+
async function st(i) {
|
|
343
211
|
if (!i)
|
|
344
212
|
throw new Error("Missing argument stripeProduct");
|
|
345
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
213
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await ae.createCheckoutSession({
|
|
346
214
|
items: [
|
|
347
215
|
{
|
|
348
216
|
stripePriceStripeId: e.stripeId,
|
|
@@ -354,21 +222,21 @@ async function j1(i) {
|
|
|
354
222
|
}), { redirectUrl: a } = t;
|
|
355
223
|
window.open(a, "_blank");
|
|
356
224
|
}
|
|
357
|
-
function
|
|
225
|
+
function K(i, { availableProducts: e }) {
|
|
358
226
|
var n, s, o;
|
|
359
227
|
let t = null;
|
|
360
|
-
const a =
|
|
228
|
+
const a = nt(i.templateId, { availableProducts: e });
|
|
361
229
|
return a && (t = {
|
|
362
|
-
price:
|
|
230
|
+
price: U((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 }),
|
|
363
231
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
364
|
-
onBuy: async () =>
|
|
232
|
+
onBuy: async () => st(a)
|
|
365
233
|
}), t;
|
|
366
234
|
}
|
|
367
|
-
const
|
|
235
|
+
const ot = {
|
|
368
236
|
name: "GalleryTemplateModal",
|
|
369
237
|
components: {
|
|
370
238
|
simplebar: L,
|
|
371
|
-
DocumentLayout:
|
|
239
|
+
DocumentLayout: He,
|
|
372
240
|
IsPremium: _,
|
|
373
241
|
IsPremiumPreStep: k
|
|
374
242
|
},
|
|
@@ -438,7 +306,7 @@ const K1 = {
|
|
|
438
306
|
isSuperUser: "application/isSuperUser"
|
|
439
307
|
}),
|
|
440
308
|
previewDocument() {
|
|
441
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
309
|
+
const { data: i, defaultData: e } = this.template, t = new O({
|
|
442
310
|
data: {
|
|
443
311
|
...e,
|
|
444
312
|
template: i,
|
|
@@ -454,7 +322,7 @@ const K1 = {
|
|
|
454
322
|
}
|
|
455
323
|
},
|
|
456
324
|
created() {
|
|
457
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
325
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = ne.on(
|
|
458
326
|
"event",
|
|
459
327
|
async ({ type: i, action: e, data: t }) => {
|
|
460
328
|
var a;
|
|
@@ -467,7 +335,7 @@ const K1 = {
|
|
|
467
335
|
isVisibleApp: !0,
|
|
468
336
|
includePurchaseInfo: !0
|
|
469
337
|
}, o = await this.fetchGallery(s);
|
|
470
|
-
this.privateProduct =
|
|
338
|
+
this.privateProduct = K(
|
|
471
339
|
o[0],
|
|
472
340
|
{ availableProducts: this.stripeProducts }
|
|
473
341
|
);
|
|
@@ -483,7 +351,7 @@ const K1 = {
|
|
|
483
351
|
const i = this.template.id;
|
|
484
352
|
i || (this.templateStat = null);
|
|
485
353
|
try {
|
|
486
|
-
const { data: e } = await
|
|
354
|
+
const { data: e } = await se.get(i);
|
|
487
355
|
this.templateStat = e;
|
|
488
356
|
} catch {
|
|
489
357
|
this.templateStat = null;
|
|
@@ -500,11 +368,11 @@ const K1 = {
|
|
|
500
368
|
},
|
|
501
369
|
async copyToClipboard(i) {
|
|
502
370
|
const e = `${f.baseUrl}/template/${i}`;
|
|
503
|
-
await
|
|
371
|
+
await R(e) && H("info", this.$t("copyMessage"));
|
|
504
372
|
}
|
|
505
373
|
}
|
|
506
374
|
};
|
|
507
|
-
var
|
|
375
|
+
var lt = function() {
|
|
508
376
|
var a;
|
|
509
377
|
var e = this, t = e._self._c;
|
|
510
378
|
return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset,", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
|
|
@@ -527,17 +395,17 @@ var Y1 = function() {
|
|
|
527
395
|
} }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "admin", wide: "" }, on: { click: function(n) {
|
|
528
396
|
return e.copyToClipboard(e.template.id);
|
|
529
397
|
} } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
398
|
+
}, rt = [], ct = /* @__PURE__ */ d(
|
|
399
|
+
ot,
|
|
400
|
+
lt,
|
|
401
|
+
rt,
|
|
534
402
|
!1,
|
|
535
403
|
null,
|
|
536
404
|
"74568361",
|
|
537
405
|
null,
|
|
538
406
|
null
|
|
539
407
|
);
|
|
540
|
-
const
|
|
408
|
+
const dt = ct.exports, pt = {
|
|
541
409
|
name: "GalleryLogic",
|
|
542
410
|
i18nOptions: {
|
|
543
411
|
namespaces: "GalleryLogic",
|
|
@@ -662,7 +530,7 @@ const X1 = J1.exports, e2 = {
|
|
|
662
530
|
}
|
|
663
531
|
},
|
|
664
532
|
beforeCreate() {
|
|
665
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
533
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Fe);
|
|
666
534
|
},
|
|
667
535
|
async created() {
|
|
668
536
|
var t, a, n, s;
|
|
@@ -697,7 +565,7 @@ const X1 = J1.exports, e2 = {
|
|
|
697
565
|
const e = await this.fetchGallery(i);
|
|
698
566
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
699
567
|
if (this.canPurchase && t.isPurchasable) {
|
|
700
|
-
const a =
|
|
568
|
+
const a = K(t, {
|
|
701
569
|
availableProducts: this.stripeProducts
|
|
702
570
|
});
|
|
703
571
|
a && (t.product = a);
|
|
@@ -721,7 +589,7 @@ const X1 = J1.exports, e2 = {
|
|
|
721
589
|
isVisibleApp: !0,
|
|
722
590
|
includePurchaseInfo: !0
|
|
723
591
|
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
724
|
-
return a ? (
|
|
592
|
+
return a ? (oe(a), new le(a)) : null;
|
|
725
593
|
},
|
|
726
594
|
onUseTemplate(i) {
|
|
727
595
|
if (!i)
|
|
@@ -744,7 +612,7 @@ const X1 = J1.exports, e2 = {
|
|
|
744
612
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
745
613
|
};
|
|
746
614
|
this.$modal.show(
|
|
747
|
-
|
|
615
|
+
dt,
|
|
748
616
|
{
|
|
749
617
|
template: i,
|
|
750
618
|
fetchGallery: this.fetchGallery,
|
|
@@ -799,30 +667,30 @@ const X1 = J1.exports, e2 = {
|
|
|
799
667
|
selectGalleryItem: this.selectGalleryItem
|
|
800
668
|
});
|
|
801
669
|
}
|
|
802
|
-
},
|
|
803
|
-
var
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
670
|
+
}, ut = null, mt = null;
|
|
671
|
+
var ht = /* @__PURE__ */ d(
|
|
672
|
+
pt,
|
|
673
|
+
ut,
|
|
674
|
+
mt,
|
|
807
675
|
!1,
|
|
808
676
|
null,
|
|
809
677
|
null,
|
|
810
678
|
null,
|
|
811
679
|
null
|
|
812
680
|
);
|
|
813
|
-
const
|
|
814
|
-
const
|
|
681
|
+
const ft = ht.exports;
|
|
682
|
+
const gt = {
|
|
815
683
|
name: "DocumentIcon",
|
|
816
|
-
truncate:
|
|
684
|
+
truncate: re,
|
|
817
685
|
inject: {
|
|
818
686
|
components: {
|
|
819
687
|
default: {
|
|
820
|
-
BlockMedia:
|
|
688
|
+
BlockMedia: Ue
|
|
821
689
|
}
|
|
822
690
|
}
|
|
823
691
|
}
|
|
824
692
|
};
|
|
825
|
-
var
|
|
693
|
+
var Ct = function(e, t) {
|
|
826
694
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
827
695
|
t.data.staticClass,
|
|
828
696
|
t.data.class,
|
|
@@ -838,18 +706,18 @@ var o2 = function(e, t) {
|
|
|
838
706
|
} }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(
|
|
839
707
|
t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })
|
|
840
708
|
) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
709
|
+
}, vt = [], yt = /* @__PURE__ */ d(
|
|
710
|
+
gt,
|
|
711
|
+
Ct,
|
|
712
|
+
vt,
|
|
845
713
|
!0,
|
|
846
714
|
null,
|
|
847
715
|
"e2f4722e",
|
|
848
716
|
null,
|
|
849
717
|
null
|
|
850
718
|
);
|
|
851
|
-
const
|
|
852
|
-
const
|
|
719
|
+
const xt = yt.exports;
|
|
720
|
+
const wt = {
|
|
853
721
|
name: "HorizontalScroll",
|
|
854
722
|
components: {
|
|
855
723
|
Simplebar: L
|
|
@@ -904,7 +772,7 @@ const d2 = {
|
|
|
904
772
|
}
|
|
905
773
|
}
|
|
906
774
|
};
|
|
907
|
-
var
|
|
775
|
+
var bt = function() {
|
|
908
776
|
var e = this, t = e._self._c;
|
|
909
777
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left max-sm:hidden", on: { click: function(a) {
|
|
910
778
|
return e.go(-1);
|
|
@@ -917,18 +785,18 @@ var p2 = function() {
|
|
|
917
785
|
return e.$emit("expand");
|
|
918
786
|
} } })];
|
|
919
787
|
})], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
788
|
+
}, _t = [], kt = /* @__PURE__ */ d(
|
|
789
|
+
wt,
|
|
790
|
+
bt,
|
|
791
|
+
_t,
|
|
924
792
|
!1,
|
|
925
793
|
null,
|
|
926
794
|
"31e10485",
|
|
927
795
|
null,
|
|
928
796
|
null
|
|
929
797
|
);
|
|
930
|
-
const
|
|
931
|
-
const
|
|
798
|
+
const Lt = kt.exports;
|
|
799
|
+
const $t = {
|
|
932
800
|
name: "DocumentFormRecent",
|
|
933
801
|
i18nOptions: {
|
|
934
802
|
namespaces: "DocumentFormRecent",
|
|
@@ -974,7 +842,7 @@ const f2 = {
|
|
|
974
842
|
async fetchDocuments(i) {
|
|
975
843
|
const e = this.query ? 180 : 90, t = {
|
|
976
844
|
createdAt: {
|
|
977
|
-
$gte: this.$formatDate(
|
|
845
|
+
$gte: this.$formatDate(ce(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
978
846
|
},
|
|
979
847
|
// Only provide or if there is a search query to filter on
|
|
980
848
|
...this.query && {
|
|
@@ -991,7 +859,7 @@ const f2 = {
|
|
|
991
859
|
}
|
|
992
860
|
]
|
|
993
861
|
}
|
|
994
|
-
}, { data: a } = await
|
|
862
|
+
}, { data: a } = await de.getAll({
|
|
995
863
|
lean: !0,
|
|
996
864
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
997
865
|
fields: "clients,data.name,createdAt",
|
|
@@ -1016,7 +884,7 @@ const f2 = {
|
|
|
1016
884
|
}
|
|
1017
885
|
}
|
|
1018
886
|
};
|
|
1019
|
-
var
|
|
887
|
+
var St = function() {
|
|
1020
888
|
var e = this, t = e._self._c;
|
|
1021
889
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { staticClass: "hidden md:flex", attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
|
|
1022
890
|
e.query = a;
|
|
@@ -1043,18 +911,18 @@ var g2 = function() {
|
|
|
1043
911
|
}), 0)];
|
|
1044
912
|
} }], null, !0) })];
|
|
1045
913
|
} }]) })]], 2)]);
|
|
1046
|
-
},
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
914
|
+
}, Tt = [], Dt = /* @__PURE__ */ d(
|
|
915
|
+
$t,
|
|
916
|
+
St,
|
|
917
|
+
Tt,
|
|
1050
918
|
!1,
|
|
1051
919
|
null,
|
|
1052
920
|
"496e96d5",
|
|
1053
921
|
null,
|
|
1054
922
|
null
|
|
1055
923
|
);
|
|
1056
|
-
const
|
|
1057
|
-
const
|
|
924
|
+
const Vt = Dt.exports;
|
|
925
|
+
const Bt = {
|
|
1058
926
|
i18nOptions: {
|
|
1059
927
|
namespaces: "TemplateSelector",
|
|
1060
928
|
messages: {
|
|
@@ -1099,10 +967,10 @@ const x2 = {
|
|
|
1099
967
|
name: "TemplateSelector",
|
|
1100
968
|
mixins: [b],
|
|
1101
969
|
components: {
|
|
1102
|
-
HorizontalScroll:
|
|
1103
|
-
DocumentIcon:
|
|
1104
|
-
DocumentRecent:
|
|
1105
|
-
GalleryLogic:
|
|
970
|
+
HorizontalScroll: Lt,
|
|
971
|
+
DocumentIcon: xt,
|
|
972
|
+
DocumentRecent: Vt,
|
|
973
|
+
GalleryLogic: ft,
|
|
1106
974
|
IsPremiumPreStep: k
|
|
1107
975
|
},
|
|
1108
976
|
props: {
|
|
@@ -1225,7 +1093,7 @@ const x2 = {
|
|
|
1225
1093
|
},
|
|
1226
1094
|
async saveTemplate(i) {
|
|
1227
1095
|
try {
|
|
1228
|
-
const { data: e } = i, t =
|
|
1096
|
+
const { data: e } = i, t = pe(e, [
|
|
1229
1097
|
"_id",
|
|
1230
1098
|
"id",
|
|
1231
1099
|
"companyId",
|
|
@@ -1239,7 +1107,7 @@ const x2 = {
|
|
|
1239
1107
|
},
|
|
1240
1108
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
1241
1109
|
this.$modal.show(
|
|
1242
|
-
|
|
1110
|
+
j,
|
|
1243
1111
|
{
|
|
1244
1112
|
document: i,
|
|
1245
1113
|
template: e,
|
|
@@ -1256,7 +1124,7 @@ const x2 = {
|
|
|
1256
1124
|
);
|
|
1257
1125
|
},
|
|
1258
1126
|
async fetchGallery(i = {}) {
|
|
1259
|
-
const { data: e } = await
|
|
1127
|
+
const { data: e } = await ue.get(i);
|
|
1260
1128
|
return e;
|
|
1261
1129
|
},
|
|
1262
1130
|
canUseTemplate(i) {
|
|
@@ -1264,11 +1132,11 @@ const x2 = {
|
|
|
1264
1132
|
},
|
|
1265
1133
|
async copyToClipboard(i) {
|
|
1266
1134
|
const e = `${f.baseUrl}/template/${i}`;
|
|
1267
|
-
await
|
|
1135
|
+
await R(e) && H("info", this.$t("copyMessage"));
|
|
1268
1136
|
}
|
|
1269
1137
|
}
|
|
1270
1138
|
};
|
|
1271
|
-
var
|
|
1139
|
+
var Mt = function() {
|
|
1272
1140
|
var e = this, t = e._self._c;
|
|
1273
1141
|
return t("div", { staticClass: "w-full h-full px-4 pt-10 pb-10 overflow-y-auto bg-white md:pt-16 md:px-10 rounded-2xl" }, [t("div", { staticClass: "max-w-5xl mx-auto font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
1274
1142
|
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
@@ -1315,18 +1183,18 @@ var w2 = function() {
|
|
|
1315
1183
|
} } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
|
|
1316
1184
|
}), 1)], 1)];
|
|
1317
1185
|
} }], null, !1, 4232935324) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
|
|
1318
|
-
},
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1186
|
+
}, Ft = [], It = /* @__PURE__ */ d(
|
|
1187
|
+
Bt,
|
|
1188
|
+
Mt,
|
|
1189
|
+
Ft,
|
|
1322
1190
|
!1,
|
|
1323
1191
|
null,
|
|
1324
1192
|
"b4a79da1",
|
|
1325
1193
|
null,
|
|
1326
1194
|
null
|
|
1327
1195
|
);
|
|
1328
|
-
const
|
|
1329
|
-
const
|
|
1196
|
+
const Ht = It.exports;
|
|
1197
|
+
const At = (i) => {
|
|
1330
1198
|
const e = Array(2).fill().map(() => p());
|
|
1331
1199
|
return [
|
|
1332
1200
|
{
|
|
@@ -1348,7 +1216,7 @@ const L2 = (i) => {
|
|
|
1348
1216
|
nodeId: e[1]
|
|
1349
1217
|
}
|
|
1350
1218
|
];
|
|
1351
|
-
},
|
|
1219
|
+
}, Pt = (i, e = "en") => [
|
|
1352
1220
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
|
|
1353
1221
|
{
|
|
1354
1222
|
key: `files-${i}`,
|
|
@@ -1357,13 +1225,13 @@ const L2 = (i) => {
|
|
|
1357
1225
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1358
1226
|
}
|
|
1359
1227
|
}
|
|
1360
|
-
],
|
|
1228
|
+
], zt = ({ document: i = null }) => {
|
|
1361
1229
|
const e = p(), { language: t } = i || {};
|
|
1362
1230
|
return {
|
|
1363
|
-
readView:
|
|
1364
|
-
validation:
|
|
1231
|
+
readView: At(e),
|
|
1232
|
+
validation: Pt(e, t)
|
|
1365
1233
|
};
|
|
1366
|
-
},
|
|
1234
|
+
}, Et = () => [
|
|
1367
1235
|
{
|
|
1368
1236
|
itemId: "presentation",
|
|
1369
1237
|
itemType: "presentation",
|
|
@@ -1371,11 +1239,11 @@ const L2 = (i) => {
|
|
|
1371
1239
|
parentId: "0",
|
|
1372
1240
|
nodeId: p()
|
|
1373
1241
|
}
|
|
1374
|
-
],
|
|
1375
|
-
readView:
|
|
1242
|
+
], Zt = () => ({
|
|
1243
|
+
readView: Et(),
|
|
1376
1244
|
validation: []
|
|
1377
1245
|
// all relevant data is either within base doc or company settings etc
|
|
1378
|
-
}),
|
|
1246
|
+
}), Ut = () => {
|
|
1379
1247
|
const i = Array(2).fill().map(() => p());
|
|
1380
1248
|
return [
|
|
1381
1249
|
{
|
|
@@ -1398,19 +1266,19 @@ const L2 = (i) => {
|
|
|
1398
1266
|
// uniqid(),
|
|
1399
1267
|
}
|
|
1400
1268
|
];
|
|
1401
|
-
},
|
|
1269
|
+
}, Ot = (i = "en") => [
|
|
1402
1270
|
{
|
|
1403
1271
|
key: "multiGroupPricing-title",
|
|
1404
1272
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1405
1273
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1406
1274
|
}
|
|
1407
|
-
],
|
|
1275
|
+
], Rt = ({ document: i = null }) => {
|
|
1408
1276
|
const { language: e } = i || {};
|
|
1409
1277
|
return {
|
|
1410
|
-
readView:
|
|
1411
|
-
validation:
|
|
1278
|
+
readView: Ut(),
|
|
1279
|
+
validation: Ot(e)
|
|
1412
1280
|
};
|
|
1413
|
-
},
|
|
1281
|
+
}, Gt = () => [
|
|
1414
1282
|
{
|
|
1415
1283
|
itemId: "terms",
|
|
1416
1284
|
itemType: "termsDisclaimer",
|
|
@@ -1428,7 +1296,7 @@ const L2 = (i) => {
|
|
|
1428
1296
|
parentId: "0",
|
|
1429
1297
|
nodeId: p()
|
|
1430
1298
|
}
|
|
1431
|
-
],
|
|
1299
|
+
], Wt = () => [
|
|
1432
1300
|
{
|
|
1433
1301
|
key: "terms",
|
|
1434
1302
|
anyOf: [
|
|
@@ -1436,10 +1304,10 @@ const L2 = (i) => {
|
|
|
1436
1304
|
{ type: "null" }
|
|
1437
1305
|
]
|
|
1438
1306
|
}
|
|
1439
|
-
],
|
|
1440
|
-
readView:
|
|
1441
|
-
validation:
|
|
1442
|
-
}),
|
|
1307
|
+
], qt = () => ({
|
|
1308
|
+
readView: Gt(),
|
|
1309
|
+
validation: Wt()
|
|
1310
|
+
}), Nt = () => {
|
|
1443
1311
|
const i = Array(5).fill().map(() => p());
|
|
1444
1312
|
return [
|
|
1445
1313
|
{
|
|
@@ -1488,7 +1356,7 @@ const L2 = (i) => {
|
|
|
1488
1356
|
nodeId: i[4]
|
|
1489
1357
|
}
|
|
1490
1358
|
];
|
|
1491
|
-
},
|
|
1359
|
+
}, jt = () => ({
|
|
1492
1360
|
clients: [{
|
|
1493
1361
|
name: "Pernilla P.",
|
|
1494
1362
|
email: "pernilla@mail.se",
|
|
@@ -1498,20 +1366,20 @@ const L2 = (i) => {
|
|
|
1498
1366
|
deliveryTypes: ["email"],
|
|
1499
1367
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1500
1368
|
}]
|
|
1501
|
-
}),
|
|
1369
|
+
}), Kt = (i = "en") => [
|
|
1502
1370
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1503
1371
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1504
1372
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1505
|
-
],
|
|
1373
|
+
], Yt = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1506
1374
|
const { language: a } = e || {};
|
|
1507
1375
|
let n = null;
|
|
1508
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1509
|
-
readView:
|
|
1510
|
-
validation:
|
|
1376
|
+
return typeof t == "function" ? n = t() : i && (n = jt()), {
|
|
1377
|
+
readView: Nt(),
|
|
1378
|
+
validation: Kt(a),
|
|
1511
1379
|
// Client / company will for now always exist on doc and in validation
|
|
1512
1380
|
...n && { data: n }
|
|
1513
1381
|
};
|
|
1514
|
-
},
|
|
1382
|
+
}, Qt = (i) => {
|
|
1515
1383
|
const e = Array(3).fill().map(() => p());
|
|
1516
1384
|
return [
|
|
1517
1385
|
{
|
|
@@ -1540,7 +1408,7 @@ const L2 = (i) => {
|
|
|
1540
1408
|
nodeId: e[2]
|
|
1541
1409
|
}
|
|
1542
1410
|
];
|
|
1543
|
-
},
|
|
1411
|
+
}, Jt = (i) => [
|
|
1544
1412
|
{
|
|
1545
1413
|
key: `estimatedTimeComplete-${i}`,
|
|
1546
1414
|
type: "object",
|
|
@@ -1561,20 +1429,20 @@ const L2 = (i) => {
|
|
|
1561
1429
|
}
|
|
1562
1430
|
}
|
|
1563
1431
|
}
|
|
1564
|
-
],
|
|
1432
|
+
], Xt = (i) => ({
|
|
1565
1433
|
[`estimatedTimeComplete-${i}`]: {
|
|
1566
1434
|
value: 4,
|
|
1567
1435
|
unitType: "hour"
|
|
1568
1436
|
}
|
|
1569
|
-
}),
|
|
1437
|
+
}), e1 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1570
1438
|
const t = p();
|
|
1571
1439
|
let a = null;
|
|
1572
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1573
|
-
readView:
|
|
1574
|
-
validation:
|
|
1440
|
+
return typeof e == "function" ? a = e(t) : i && (a = Xt(t)), {
|
|
1441
|
+
readView: Qt(t),
|
|
1442
|
+
validation: Jt(t),
|
|
1575
1443
|
...a && { data: a }
|
|
1576
1444
|
};
|
|
1577
|
-
},
|
|
1445
|
+
}, t1 = () => {
|
|
1578
1446
|
const i = Array(3).fill().map(() => p());
|
|
1579
1447
|
return [
|
|
1580
1448
|
{
|
|
@@ -1608,7 +1476,7 @@ const L2 = (i) => {
|
|
|
1608
1476
|
nodeId: i[2]
|
|
1609
1477
|
}
|
|
1610
1478
|
];
|
|
1611
|
-
},
|
|
1479
|
+
}, i1 = () => [
|
|
1612
1480
|
{
|
|
1613
1481
|
key: "estimatedWorkDates",
|
|
1614
1482
|
type: "object",
|
|
@@ -1617,10 +1485,10 @@ const L2 = (i) => {
|
|
|
1617
1485
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1618
1486
|
}
|
|
1619
1487
|
}
|
|
1620
|
-
],
|
|
1621
|
-
readView:
|
|
1622
|
-
validation:
|
|
1623
|
-
}),
|
|
1488
|
+
], a1 = () => ({
|
|
1489
|
+
readView: t1(),
|
|
1490
|
+
validation: i1()
|
|
1491
|
+
}), n1 = () => {
|
|
1624
1492
|
const i = Array(5).fill().map(() => p());
|
|
1625
1493
|
return [
|
|
1626
1494
|
{
|
|
@@ -1686,7 +1554,7 @@ const L2 = (i) => {
|
|
|
1686
1554
|
nodeId: i[4]
|
|
1687
1555
|
}
|
|
1688
1556
|
];
|
|
1689
|
-
},
|
|
1557
|
+
}, s1 = () => [
|
|
1690
1558
|
{
|
|
1691
1559
|
key: "extraWorkConstruction",
|
|
1692
1560
|
extraWorkConstruction: {
|
|
@@ -1710,11 +1578,11 @@ const L2 = (i) => {
|
|
|
1710
1578
|
}
|
|
1711
1579
|
}
|
|
1712
1580
|
}
|
|
1713
|
-
],
|
|
1714
|
-
readView:
|
|
1715
|
-
validation:
|
|
1581
|
+
], o1 = () => ({
|
|
1582
|
+
readView: n1(),
|
|
1583
|
+
validation: s1()
|
|
1716
1584
|
// Client / company will for now always exist on doc and in validation
|
|
1717
|
-
}),
|
|
1585
|
+
}), l1 = () => {
|
|
1718
1586
|
const i = Array(3).fill().map(() => p());
|
|
1719
1587
|
return [
|
|
1720
1588
|
{
|
|
@@ -1754,7 +1622,7 @@ const L2 = (i) => {
|
|
|
1754
1622
|
nodeId: i[2]
|
|
1755
1623
|
}
|
|
1756
1624
|
];
|
|
1757
|
-
},
|
|
1625
|
+
}, r1 = () => [
|
|
1758
1626
|
{
|
|
1759
1627
|
key: "extraWorkTimeImpact",
|
|
1760
1628
|
anyOf: [
|
|
@@ -1778,10 +1646,10 @@ const L2 = (i) => {
|
|
|
1778
1646
|
}
|
|
1779
1647
|
]
|
|
1780
1648
|
}
|
|
1781
|
-
],
|
|
1782
|
-
readView:
|
|
1783
|
-
validation:
|
|
1784
|
-
}),
|
|
1649
|
+
], c1 = () => ({
|
|
1650
|
+
readView: l1(),
|
|
1651
|
+
validation: r1()
|
|
1652
|
+
}), d1 = () => {
|
|
1785
1653
|
const i = Array(5).fill().map(() => p());
|
|
1786
1654
|
return [
|
|
1787
1655
|
{
|
|
@@ -1834,13 +1702,13 @@ const L2 = (i) => {
|
|
|
1834
1702
|
nodeId: i[4]
|
|
1835
1703
|
}
|
|
1836
1704
|
];
|
|
1837
|
-
},
|
|
1705
|
+
}, p1 = () => [
|
|
1838
1706
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1839
1707
|
{ key: "notBinding", type: "boolean" }
|
|
1840
|
-
],
|
|
1841
|
-
readView:
|
|
1842
|
-
validation:
|
|
1843
|
-
}),
|
|
1708
|
+
], u1 = () => ({
|
|
1709
|
+
readView: d1(),
|
|
1710
|
+
validation: p1()
|
|
1711
|
+
}), m1 = (i) => {
|
|
1844
1712
|
const e = Array(2).fill().map(() => p());
|
|
1845
1713
|
return [
|
|
1846
1714
|
{
|
|
@@ -1862,22 +1730,22 @@ const L2 = (i) => {
|
|
|
1862
1730
|
nodeId: e[1]
|
|
1863
1731
|
}
|
|
1864
1732
|
];
|
|
1865
|
-
},
|
|
1733
|
+
}, h1 = (i) => [
|
|
1866
1734
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1867
1735
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1868
|
-
],
|
|
1736
|
+
], f1 = (i) => ({
|
|
1869
1737
|
[`data.title-${i}`]: "My custom text",
|
|
1870
1738
|
[`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
|
|
1871
|
-
}),
|
|
1739
|
+
}), g1 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1872
1740
|
const t = p();
|
|
1873
1741
|
let a = null;
|
|
1874
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1875
|
-
readView:
|
|
1876
|
-
validation:
|
|
1742
|
+
return typeof e == "function" ? a = e(t) : i && (a = f1(t)), {
|
|
1743
|
+
readView: m1(t),
|
|
1744
|
+
validation: h1(t),
|
|
1877
1745
|
...a && { data: a },
|
|
1878
1746
|
onAddFnName: "conditionalOnAdd"
|
|
1879
1747
|
};
|
|
1880
|
-
},
|
|
1748
|
+
}, C1 = (i) => [
|
|
1881
1749
|
{
|
|
1882
1750
|
itemId: "coverBlock",
|
|
1883
1751
|
itemType: "coverBlock",
|
|
@@ -1887,7 +1755,7 @@ const L2 = (i) => {
|
|
|
1887
1755
|
parentId: "0",
|
|
1888
1756
|
nodeId: p()
|
|
1889
1757
|
}
|
|
1890
|
-
],
|
|
1758
|
+
], v1 = (i, e = "en") => [
|
|
1891
1759
|
{
|
|
1892
1760
|
key: `coverBlock-${i}`,
|
|
1893
1761
|
defaultValue: {
|
|
@@ -1904,7 +1772,7 @@ const L2 = (i) => {
|
|
|
1904
1772
|
},
|
|
1905
1773
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1906
1774
|
}
|
|
1907
|
-
],
|
|
1775
|
+
], y1 = (i) => ({
|
|
1908
1776
|
[`data.coverBlock-${i}`]: {
|
|
1909
1777
|
text: "<h1>We know communication</h1>",
|
|
1910
1778
|
cover: {
|
|
@@ -1914,15 +1782,15 @@ const L2 = (i) => {
|
|
|
1914
1782
|
blur: 0
|
|
1915
1783
|
}
|
|
1916
1784
|
}
|
|
1917
|
-
}),
|
|
1785
|
+
}), x1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1918
1786
|
const a = p(), { language: n } = e || {};
|
|
1919
1787
|
let s = null;
|
|
1920
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1921
|
-
readView:
|
|
1922
|
-
validation:
|
|
1788
|
+
return typeof t == "function" ? s = t(a) : i && (s = y1(a)), {
|
|
1789
|
+
readView: C1(a),
|
|
1790
|
+
validation: v1(a, n),
|
|
1923
1791
|
...s && { data: s }
|
|
1924
1792
|
};
|
|
1925
|
-
},
|
|
1793
|
+
}, w1 = ({ language: i = "en" } = {}) => {
|
|
1926
1794
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1927
1795
|
lng: i
|
|
1928
1796
|
});
|
|
@@ -2067,7 +1935,7 @@ const L2 = (i) => {
|
|
|
2067
1935
|
})
|
|
2068
1936
|
}
|
|
2069
1937
|
];
|
|
2070
|
-
},
|
|
1938
|
+
}, b1 = (i) => [
|
|
2071
1939
|
{
|
|
2072
1940
|
itemId: `header-${i}`,
|
|
2073
1941
|
itemType: "header",
|
|
@@ -2077,7 +1945,7 @@ const L2 = (i) => {
|
|
|
2077
1945
|
parentId: "0",
|
|
2078
1946
|
nodeId: p()
|
|
2079
1947
|
}
|
|
2080
|
-
],
|
|
1948
|
+
], _1 = (i, e = null) => {
|
|
2081
1949
|
const {
|
|
2082
1950
|
language: t = "en",
|
|
2083
1951
|
name: a = "",
|
|
@@ -2088,7 +1956,7 @@ const L2 = (i) => {
|
|
|
2088
1956
|
background: o,
|
|
2089
1957
|
priceSummaryBackground: l,
|
|
2090
1958
|
backgroundFilter: r
|
|
2091
|
-
} = n || {}, c = l || "hsl(228, 52%, 18%)", C =
|
|
1959
|
+
} = n || {}, c = l || "hsl(228, 52%, 18%)", C = Re.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
2092
1960
|
return [
|
|
2093
1961
|
{
|
|
2094
1962
|
key: `header-${i}`,
|
|
@@ -2129,7 +1997,7 @@ const L2 = (i) => {
|
|
|
2129
1997
|
}
|
|
2130
1998
|
}
|
|
2131
1999
|
];
|
|
2132
|
-
},
|
|
2000
|
+
}, k1 = (i) => ({
|
|
2133
2001
|
[`data.header-${i}`]: {
|
|
2134
2002
|
layout: "vertical",
|
|
2135
2003
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -2159,15 +2027,15 @@ const L2 = (i) => {
|
|
|
2159
2027
|
}
|
|
2160
2028
|
]
|
|
2161
2029
|
}
|
|
2162
|
-
}),
|
|
2030
|
+
}), L1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
2163
2031
|
const a = p();
|
|
2164
2032
|
let n = null;
|
|
2165
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2166
|
-
readView:
|
|
2167
|
-
validation:
|
|
2033
|
+
return typeof t == "function" ? n = t(a) : i && (n = k1(a)), {
|
|
2034
|
+
readView: b1(a),
|
|
2035
|
+
validation: _1(a, e),
|
|
2168
2036
|
...n && { data: n }
|
|
2169
2037
|
};
|
|
2170
|
-
},
|
|
2038
|
+
}, $1 = ({ language: i = "en" } = {}) => {
|
|
2171
2039
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
2172
2040
|
lng: i,
|
|
2173
2041
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2467,7 +2335,7 @@ h.loadOptions({
|
|
|
2467
2335
|
}
|
|
2468
2336
|
}
|
|
2469
2337
|
});
|
|
2470
|
-
const
|
|
2338
|
+
const S1 = (i) => {
|
|
2471
2339
|
const e = Array(2).fill().map(() => p());
|
|
2472
2340
|
return [
|
|
2473
2341
|
{
|
|
@@ -2492,7 +2360,7 @@ const gi = (i) => {
|
|
|
2492
2360
|
nodeId: e[1]
|
|
2493
2361
|
}
|
|
2494
2362
|
];
|
|
2495
|
-
},
|
|
2363
|
+
}, T1 = (i, e = "en") => [
|
|
2496
2364
|
{
|
|
2497
2365
|
key: `packageGroups.${i}`,
|
|
2498
2366
|
validationKey: "packageGroups",
|
|
@@ -2512,11 +2380,11 @@ const gi = (i) => {
|
|
|
2512
2380
|
},
|
|
2513
2381
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2514
2382
|
}
|
|
2515
|
-
],
|
|
2383
|
+
], D1 = () => null, V1 = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2516
2384
|
const a = p(), { language: n } = e || {};
|
|
2517
2385
|
let s = null;
|
|
2518
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2519
|
-
const o =
|
|
2386
|
+
typeof t == "function" ? s = t(a) : i && (s = D1());
|
|
2387
|
+
const o = S1(a), l = T1(a, n);
|
|
2520
2388
|
return {
|
|
2521
2389
|
readView: o,
|
|
2522
2390
|
validation: l,
|
|
@@ -2608,7 +2476,7 @@ h.loadOptions({
|
|
|
2608
2476
|
}
|
|
2609
2477
|
}
|
|
2610
2478
|
});
|
|
2611
|
-
const
|
|
2479
|
+
const B1 = ({
|
|
2612
2480
|
language: i = "en",
|
|
2613
2481
|
currency: e = "USD",
|
|
2614
2482
|
_getters: t,
|
|
@@ -2965,7 +2833,7 @@ const xi = ({
|
|
|
2965
2833
|
}
|
|
2966
2834
|
}
|
|
2967
2835
|
];
|
|
2968
|
-
},
|
|
2836
|
+
}, M1 = (i) => [
|
|
2969
2837
|
{
|
|
2970
2838
|
itemId: "embed",
|
|
2971
2839
|
itemType: "embed",
|
|
@@ -2979,7 +2847,7 @@ const xi = ({
|
|
|
2979
2847
|
parentId: "0",
|
|
2980
2848
|
nodeId: p()
|
|
2981
2849
|
}
|
|
2982
|
-
],
|
|
2850
|
+
], F1 = (i) => [
|
|
2983
2851
|
{
|
|
2984
2852
|
key: `embed-${i}`,
|
|
2985
2853
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2988,12 +2856,12 @@ const xi = ({
|
|
|
2988
2856
|
size: "small"
|
|
2989
2857
|
}
|
|
2990
2858
|
}
|
|
2991
|
-
],
|
|
2859
|
+
], I1 = () => null, H1 = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2992
2860
|
const a = p();
|
|
2993
2861
|
let n = null;
|
|
2994
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2995
|
-
readView:
|
|
2996
|
-
validation:
|
|
2862
|
+
return typeof t == "function" ? n = t(a) : i && (n = I1()), {
|
|
2863
|
+
readView: M1(a),
|
|
2864
|
+
validation: F1(a),
|
|
2997
2865
|
...n && { data: n }
|
|
2998
2866
|
};
|
|
2999
2867
|
};
|
|
@@ -3008,7 +2876,7 @@ h.loadOptions({
|
|
|
3008
2876
|
}
|
|
3009
2877
|
}
|
|
3010
2878
|
});
|
|
3011
|
-
const
|
|
2879
|
+
const A1 = ({ language: i = "en" } = {}) => [
|
|
3012
2880
|
{
|
|
3013
2881
|
previewUrl: `
|
|
3014
2882
|
<div style="position: relative;">
|
|
@@ -3300,7 +3168,7 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3300
3168
|
}
|
|
3301
3169
|
})
|
|
3302
3170
|
}
|
|
3303
|
-
],
|
|
3171
|
+
], P1 = (i) => [
|
|
3304
3172
|
{
|
|
3305
3173
|
itemId: "videoPlayer",
|
|
3306
3174
|
itemType: "videoPlayer",
|
|
@@ -3313,7 +3181,7 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3313
3181
|
parentId: "0",
|
|
3314
3182
|
nodeId: p()
|
|
3315
3183
|
}
|
|
3316
|
-
],
|
|
3184
|
+
], z1 = (i) => [
|
|
3317
3185
|
{
|
|
3318
3186
|
key: `video-${i}`,
|
|
3319
3187
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3324,7 +3192,7 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3324
3192
|
}
|
|
3325
3193
|
}
|
|
3326
3194
|
}
|
|
3327
|
-
],
|
|
3195
|
+
], E1 = (i) => ({
|
|
3328
3196
|
[`data.video-${i}`]: {
|
|
3329
3197
|
size: "small",
|
|
3330
3198
|
video: {
|
|
@@ -3333,15 +3201,15 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3333
3201
|
id: "166JEb6qkr4"
|
|
3334
3202
|
}
|
|
3335
3203
|
}
|
|
3336
|
-
}),
|
|
3204
|
+
}), Z1 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3337
3205
|
const t = p();
|
|
3338
3206
|
let a = null;
|
|
3339
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3340
|
-
readView:
|
|
3341
|
-
validation:
|
|
3207
|
+
return typeof e == "function" ? a = e(t) : i && (a = E1(t)), {
|
|
3208
|
+
readView: P1(t),
|
|
3209
|
+
validation: z1(t),
|
|
3342
3210
|
...a && { data: a }
|
|
3343
3211
|
};
|
|
3344
|
-
},
|
|
3212
|
+
}, U1 = ({ language: i = "en" } = {}) => [
|
|
3345
3213
|
{
|
|
3346
3214
|
previewUrl: `
|
|
3347
3215
|
<div style="position: relative;">
|
|
@@ -3542,35 +3410,35 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3542
3410
|
}
|
|
3543
3411
|
})
|
|
3544
3412
|
}
|
|
3545
|
-
],
|
|
3546
|
-
titleAndText2:
|
|
3547
|
-
attachments2:
|
|
3548
|
-
pdf:
|
|
3549
|
-
packageGroup:
|
|
3550
|
-
multiGroupPricing:
|
|
3551
|
-
coverBlock:
|
|
3552
|
-
videoPlayer:
|
|
3553
|
-
embed:
|
|
3554
|
-
header:
|
|
3555
|
-
answer:
|
|
3556
|
-
terms:
|
|
3557
|
-
parties:
|
|
3558
|
-
custom:
|
|
3413
|
+
], E = {
|
|
3414
|
+
titleAndText2: g1,
|
|
3415
|
+
attachments2: zt,
|
|
3416
|
+
pdf: he,
|
|
3417
|
+
packageGroup: V1,
|
|
3418
|
+
multiGroupPricing: Rt,
|
|
3419
|
+
coverBlock: x1,
|
|
3420
|
+
videoPlayer: Z1,
|
|
3421
|
+
embed: H1,
|
|
3422
|
+
header: L1,
|
|
3423
|
+
answer: fe,
|
|
3424
|
+
terms: qt,
|
|
3425
|
+
parties: Yt,
|
|
3426
|
+
custom: ge,
|
|
3559
3427
|
// legacy
|
|
3560
|
-
presentation:
|
|
3561
|
-
estimatedTimeCompleted:
|
|
3562
|
-
estimatedWorkStartAndEndAtText:
|
|
3563
|
-
extraWorkConstructionPricingList:
|
|
3564
|
-
extraWorkTimeImpactText:
|
|
3565
|
-
notBinding:
|
|
3566
|
-
},
|
|
3567
|
-
coverBlock:
|
|
3568
|
-
header:
|
|
3569
|
-
packageGroup:
|
|
3570
|
-
embed:
|
|
3571
|
-
videoPlayer:
|
|
3572
|
-
custom:
|
|
3573
|
-
},
|
|
3428
|
+
presentation: Zt,
|
|
3429
|
+
estimatedTimeCompleted: e1,
|
|
3430
|
+
estimatedWorkStartAndEndAtText: a1,
|
|
3431
|
+
extraWorkConstructionPricingList: o1,
|
|
3432
|
+
extraWorkTimeImpactText: c1,
|
|
3433
|
+
notBinding: u1
|
|
3434
|
+
}, Z = {
|
|
3435
|
+
coverBlock: w1,
|
|
3436
|
+
header: $1,
|
|
3437
|
+
packageGroup: B1,
|
|
3438
|
+
embed: A1,
|
|
3439
|
+
videoPlayer: U1,
|
|
3440
|
+
custom: me
|
|
3441
|
+
}, O1 = {
|
|
3574
3442
|
name: "AddBlock",
|
|
3575
3443
|
props: {
|
|
3576
3444
|
set: {
|
|
@@ -3584,34 +3452,34 @@ const Li = ({ language: i = "en" } = {}) => [
|
|
|
3584
3452
|
},
|
|
3585
3453
|
render() {
|
|
3586
3454
|
return this.$scopedSlots.default({
|
|
3587
|
-
addBlock: (i) =>
|
|
3455
|
+
addBlock: (i) => Ce({
|
|
3588
3456
|
...i,
|
|
3589
3457
|
set: this.set,
|
|
3590
|
-
tplGenerators:
|
|
3458
|
+
tplGenerators: E,
|
|
3591
3459
|
includeMockData: this.includeMockData,
|
|
3592
3460
|
emit: (...e) => this.$emit(...e)
|
|
3593
3461
|
}),
|
|
3594
|
-
getBlockPayload: (i) =>
|
|
3462
|
+
getBlockPayload: (i) => ve(
|
|
3595
3463
|
i,
|
|
3596
3464
|
this.set,
|
|
3597
|
-
|
|
3465
|
+
E,
|
|
3598
3466
|
this.includeMockdata
|
|
3599
3467
|
)
|
|
3600
3468
|
});
|
|
3601
3469
|
}
|
|
3602
|
-
},
|
|
3603
|
-
var
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3470
|
+
}, R1 = null, G1 = null;
|
|
3471
|
+
var W1 = /* @__PURE__ */ d(
|
|
3472
|
+
O1,
|
|
3473
|
+
R1,
|
|
3474
|
+
G1,
|
|
3607
3475
|
!1,
|
|
3608
3476
|
null,
|
|
3609
3477
|
null,
|
|
3610
3478
|
null,
|
|
3611
3479
|
null
|
|
3612
3480
|
);
|
|
3613
|
-
const
|
|
3614
|
-
const
|
|
3481
|
+
const Y = W1.exports;
|
|
3482
|
+
const q1 = {
|
|
3615
3483
|
name: "Drawer",
|
|
3616
3484
|
props: {
|
|
3617
3485
|
value: {
|
|
@@ -3654,7 +3522,7 @@ const Hi = {
|
|
|
3654
3522
|
}
|
|
3655
3523
|
}
|
|
3656
3524
|
};
|
|
3657
|
-
var
|
|
3525
|
+
var N1 = function() {
|
|
3658
3526
|
var e = this, t = e._self._c;
|
|
3659
3527
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3660
3528
|
zIndex: e.zIndex
|
|
@@ -3670,18 +3538,18 @@ var Ai = function() {
|
|
|
3670
3538
|
boxShadow: e.boxShadow,
|
|
3671
3539
|
...e.contentStyle
|
|
3672
3540
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3673
|
-
},
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3541
|
+
}, j1 = [], K1 = /* @__PURE__ */ d(
|
|
3542
|
+
q1,
|
|
3543
|
+
N1,
|
|
3544
|
+
j1,
|
|
3677
3545
|
!1,
|
|
3678
3546
|
null,
|
|
3679
3547
|
"cd4a251a",
|
|
3680
3548
|
null,
|
|
3681
3549
|
null
|
|
3682
3550
|
);
|
|
3683
|
-
const
|
|
3684
|
-
const
|
|
3551
|
+
const Q = K1.exports;
|
|
3552
|
+
const Y1 = {
|
|
3685
3553
|
name: "DocumentSend",
|
|
3686
3554
|
i18nOptions: {
|
|
3687
3555
|
namespaces: "documentSend",
|
|
@@ -3705,12 +3573,12 @@ const zi = {
|
|
|
3705
3573
|
}
|
|
3706
3574
|
},
|
|
3707
3575
|
components: {
|
|
3708
|
-
AddBlock:
|
|
3709
|
-
Drawer:
|
|
3710
|
-
SendForm:
|
|
3711
|
-
CCheckbox:
|
|
3712
|
-
BaseIcon:
|
|
3713
|
-
CButton:
|
|
3576
|
+
AddBlock: Y,
|
|
3577
|
+
Drawer: Q,
|
|
3578
|
+
SendForm: Ge,
|
|
3579
|
+
CCheckbox: ye,
|
|
3580
|
+
BaseIcon: xe,
|
|
3581
|
+
CButton: we,
|
|
3714
3582
|
IsPremium: _,
|
|
3715
3583
|
IsPremiumPreStep: k
|
|
3716
3584
|
},
|
|
@@ -3802,7 +3670,7 @@ const zi = {
|
|
|
3802
3670
|
}
|
|
3803
3671
|
}
|
|
3804
3672
|
};
|
|
3805
|
-
var
|
|
3673
|
+
var Q1 = function() {
|
|
3806
3674
|
var e = this, t = e._self._c;
|
|
3807
3675
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3808
3676
|
e.isOpen = a;
|
|
@@ -3825,17 +3693,17 @@ var Zi = function() {
|
|
|
3825
3693
|
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
|
|
3826
3694
|
} }], null, !0) })];
|
|
3827
3695
|
} }], null, !1, 2049373406) })], 1)], 1)], 1)]) : e._e();
|
|
3828
|
-
},
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3696
|
+
}, J1 = [], X1 = /* @__PURE__ */ d(
|
|
3697
|
+
Y1,
|
|
3698
|
+
Q1,
|
|
3699
|
+
J1,
|
|
3832
3700
|
!1,
|
|
3833
3701
|
null,
|
|
3834
3702
|
"41e74cd7",
|
|
3835
3703
|
null,
|
|
3836
3704
|
null
|
|
3837
3705
|
);
|
|
3838
|
-
const
|
|
3706
|
+
const e2 = X1.exports, t2 = {
|
|
3839
3707
|
name: "Draggable",
|
|
3840
3708
|
data() {
|
|
3841
3709
|
return {
|
|
@@ -3877,21 +3745,21 @@ const Ri = Ui.exports, Gi = {
|
|
|
3877
3745
|
dragMousedown: this.onDragMouseDown
|
|
3878
3746
|
});
|
|
3879
3747
|
}
|
|
3880
|
-
},
|
|
3881
|
-
var
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3748
|
+
}, i2 = null, a2 = null;
|
|
3749
|
+
var n2 = /* @__PURE__ */ d(
|
|
3750
|
+
t2,
|
|
3751
|
+
i2,
|
|
3752
|
+
a2,
|
|
3885
3753
|
!1,
|
|
3886
3754
|
null,
|
|
3887
3755
|
null,
|
|
3888
3756
|
null,
|
|
3889
3757
|
null
|
|
3890
3758
|
);
|
|
3891
|
-
const
|
|
3892
|
-
const
|
|
3759
|
+
const s2 = n2.exports;
|
|
3760
|
+
const o2 = {
|
|
3893
3761
|
components: {
|
|
3894
|
-
Draggable:
|
|
3762
|
+
Draggable: s2
|
|
3895
3763
|
},
|
|
3896
3764
|
props: {
|
|
3897
3765
|
offset: {
|
|
@@ -3904,7 +3772,7 @@ const Ki = {
|
|
|
3904
3772
|
}
|
|
3905
3773
|
}
|
|
3906
3774
|
};
|
|
3907
|
-
var
|
|
3775
|
+
var l2 = function() {
|
|
3908
3776
|
var e = this, t = e._self._c;
|
|
3909
3777
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3910
3778
|
return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
|
|
@@ -3914,26 +3782,26 @@ var Yi = function() {
|
|
|
3914
3782
|
return e.$emit("close");
|
|
3915
3783
|
} } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a, touchstart: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
|
|
3916
3784
|
} }], null, !0) })], 1);
|
|
3917
|
-
},
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3785
|
+
}, r2 = [], c2 = /* @__PURE__ */ d(
|
|
3786
|
+
o2,
|
|
3787
|
+
l2,
|
|
3788
|
+
r2,
|
|
3921
3789
|
!1,
|
|
3922
3790
|
null,
|
|
3923
3791
|
"8029d5ea",
|
|
3924
3792
|
null,
|
|
3925
3793
|
null
|
|
3926
3794
|
);
|
|
3927
|
-
const
|
|
3928
|
-
const
|
|
3795
|
+
const J = c2.exports;
|
|
3796
|
+
const d2 = /([\d+.]*)(.*)/, w = (i) => (i || "").match(d2), p2 = {
|
|
3929
3797
|
i18nOptions: {
|
|
3930
3798
|
namespaces: "common",
|
|
3931
3799
|
keyPrefix: "designLabels"
|
|
3932
3800
|
},
|
|
3933
3801
|
name: "Design",
|
|
3934
3802
|
components: {
|
|
3935
|
-
FormInputRow:
|
|
3936
|
-
DragWindow:
|
|
3803
|
+
FormInputRow: N,
|
|
3804
|
+
DragWindow: J
|
|
3937
3805
|
},
|
|
3938
3806
|
mixins: [S(["css"], { useEmit: !1, setFnName: "set" })],
|
|
3939
3807
|
props: {
|
|
@@ -4013,7 +3881,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
|
|
|
4013
3881
|
}
|
|
4014
3882
|
},
|
|
4015
3883
|
onInput: ({ family: a, weight: n, options: s = [] }) => {
|
|
4016
|
-
this.update(i, a),
|
|
3884
|
+
this.update(i, a), Ae(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
4017
3885
|
}
|
|
4018
3886
|
}
|
|
4019
3887
|
]
|
|
@@ -4479,7 +4347,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
|
|
|
4479
4347
|
watch: {
|
|
4480
4348
|
async activeItem(i) {
|
|
4481
4349
|
const e = u(i, "style.fontFamily");
|
|
4482
|
-
e && (this.fontWeightOptions = await
|
|
4350
|
+
e && (this.fontWeightOptions = await Pe(e));
|
|
4483
4351
|
}
|
|
4484
4352
|
},
|
|
4485
4353
|
methods: {
|
|
@@ -4491,7 +4359,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
|
|
|
4491
4359
|
}
|
|
4492
4360
|
}
|
|
4493
4361
|
};
|
|
4494
|
-
var
|
|
4362
|
+
var u2 = function() {
|
|
4495
4363
|
var e = this, t = e._self._c;
|
|
4496
4364
|
return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
|
|
4497
4365
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4510,18 +4378,18 @@ var ta = function() {
|
|
|
4510
4378
|
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
|
|
4511
4379
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4512
4380
|
}), 1) : e._e()], 1);
|
|
4513
|
-
},
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4381
|
+
}, m2 = [], h2 = /* @__PURE__ */ d(
|
|
4382
|
+
p2,
|
|
4383
|
+
u2,
|
|
4384
|
+
m2,
|
|
4517
4385
|
!1,
|
|
4518
4386
|
null,
|
|
4519
4387
|
"4404aad6",
|
|
4520
4388
|
null,
|
|
4521
4389
|
null
|
|
4522
4390
|
);
|
|
4523
|
-
const
|
|
4524
|
-
const
|
|
4391
|
+
const f2 = h2.exports;
|
|
4392
|
+
const g2 = {
|
|
4525
4393
|
name: "FieldsModal",
|
|
4526
4394
|
i18nOptions: {
|
|
4527
4395
|
namespaces: "FieldsModal",
|
|
@@ -4555,7 +4423,7 @@ const sa = {
|
|
|
4555
4423
|
}
|
|
4556
4424
|
},
|
|
4557
4425
|
components: {
|
|
4558
|
-
CField:
|
|
4426
|
+
CField: q
|
|
4559
4427
|
},
|
|
4560
4428
|
props: {
|
|
4561
4429
|
document: {
|
|
@@ -4586,12 +4454,12 @@ const sa = {
|
|
|
4586
4454
|
validations: {
|
|
4587
4455
|
form: {
|
|
4588
4456
|
label: {
|
|
4589
|
-
required:
|
|
4457
|
+
required: I.required,
|
|
4590
4458
|
isUniqueLabel(i) {
|
|
4591
4459
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4592
4460
|
}
|
|
4593
4461
|
},
|
|
4594
|
-
value: { required:
|
|
4462
|
+
value: { required: I.required }
|
|
4595
4463
|
}
|
|
4596
4464
|
},
|
|
4597
4465
|
computed: {
|
|
@@ -4631,12 +4499,12 @@ const sa = {
|
|
|
4631
4499
|
remove() {
|
|
4632
4500
|
if (!this.existingFieldId)
|
|
4633
4501
|
return;
|
|
4634
|
-
const i =
|
|
4502
|
+
const i = Ke(this.document.fields, [this.existingFieldId]);
|
|
4635
4503
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4636
4504
|
}
|
|
4637
4505
|
}
|
|
4638
4506
|
};
|
|
4639
|
-
var
|
|
4507
|
+
var C2 = function() {
|
|
4640
4508
|
var e = this, t = e._self._c;
|
|
4641
4509
|
return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
|
|
4642
4510
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4647,18 +4515,18 @@ var oa = function() {
|
|
|
4647
4515
|
}, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
|
|
4648
4516
|
e.$set(e.form, "value", a);
|
|
4649
4517
|
}, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
|
|
4650
|
-
},
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4518
|
+
}, v2 = [], y2 = /* @__PURE__ */ d(
|
|
4519
|
+
g2,
|
|
4520
|
+
C2,
|
|
4521
|
+
v2,
|
|
4654
4522
|
!1,
|
|
4655
4523
|
null,
|
|
4656
4524
|
"186f2d19",
|
|
4657
4525
|
null,
|
|
4658
4526
|
null
|
|
4659
4527
|
);
|
|
4660
|
-
const
|
|
4661
|
-
const
|
|
4528
|
+
const x2 = y2.exports;
|
|
4529
|
+
const w2 = {
|
|
4662
4530
|
i18nOptions: {
|
|
4663
4531
|
namespaces: "DocumentFormFields",
|
|
4664
4532
|
messages: {
|
|
@@ -4682,9 +4550,9 @@ const da = {
|
|
|
4682
4550
|
},
|
|
4683
4551
|
name: "DocumentFormFields",
|
|
4684
4552
|
components: {
|
|
4685
|
-
SmartList:
|
|
4686
|
-
CAccordion:
|
|
4687
|
-
CField:
|
|
4553
|
+
SmartList: je,
|
|
4554
|
+
CAccordion: Ie,
|
|
4555
|
+
CField: q
|
|
4688
4556
|
},
|
|
4689
4557
|
mixins: [S()],
|
|
4690
4558
|
props: {
|
|
@@ -4760,7 +4628,7 @@ const da = {
|
|
|
4760
4628
|
},
|
|
4761
4629
|
openFieldModal({ existingFieldId: i }) {
|
|
4762
4630
|
this.$modal.show(
|
|
4763
|
-
|
|
4631
|
+
x2,
|
|
4764
4632
|
{
|
|
4765
4633
|
document: this._document,
|
|
4766
4634
|
set: this.set,
|
|
@@ -4792,7 +4660,7 @@ const da = {
|
|
|
4792
4660
|
}
|
|
4793
4661
|
}
|
|
4794
4662
|
};
|
|
4795
|
-
var
|
|
4663
|
+
var b2 = function() {
|
|
4796
4664
|
var e = this, t = e._self._c;
|
|
4797
4665
|
return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
|
|
4798
4666
|
e.query = a;
|
|
@@ -4839,18 +4707,18 @@ var pa = function() {
|
|
|
4839
4707
|
} } })], 1)], 1)]);
|
|
4840
4708
|
}) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
|
|
4841
4709
|
})], 2)], 1);
|
|
4842
|
-
},
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4710
|
+
}, _2 = [], k2 = /* @__PURE__ */ d(
|
|
4711
|
+
w2,
|
|
4712
|
+
b2,
|
|
4713
|
+
_2,
|
|
4846
4714
|
!1,
|
|
4847
4715
|
null,
|
|
4848
4716
|
"da1996e8",
|
|
4849
4717
|
null,
|
|
4850
4718
|
null
|
|
4851
4719
|
);
|
|
4852
|
-
const
|
|
4853
|
-
const
|
|
4720
|
+
const L2 = k2.exports;
|
|
4721
|
+
const $2 = {
|
|
4854
4722
|
i18nOptions: {
|
|
4855
4723
|
messages: {
|
|
4856
4724
|
en: {
|
|
@@ -4893,8 +4761,8 @@ const fa = {
|
|
|
4893
4761
|
},
|
|
4894
4762
|
name: "ExtensionTab",
|
|
4895
4763
|
components: {
|
|
4896
|
-
draggable:
|
|
4897
|
-
Spinner:
|
|
4764
|
+
draggable: Ye,
|
|
4765
|
+
Spinner: be
|
|
4898
4766
|
},
|
|
4899
4767
|
mixins: [S(["externalReferences", "clients", "articles"])],
|
|
4900
4768
|
data() {
|
|
@@ -4948,7 +4816,7 @@ const fa = {
|
|
|
4948
4816
|
}
|
|
4949
4817
|
},
|
|
4950
4818
|
methods: {
|
|
4951
|
-
priceFormat:
|
|
4819
|
+
priceFormat: U,
|
|
4952
4820
|
async _search(i) {
|
|
4953
4821
|
try {
|
|
4954
4822
|
this.isSearching = !0;
|
|
@@ -5027,7 +4895,7 @@ const fa = {
|
|
|
5027
4895
|
});
|
|
5028
4896
|
if (Array.isArray(a) && a.length) {
|
|
5029
4897
|
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
5030
|
-
...
|
|
4898
|
+
..._e(),
|
|
5031
4899
|
...s && { answerMethod: s },
|
|
5032
4900
|
...l
|
|
5033
4901
|
}));
|
|
@@ -5057,7 +4925,7 @@ const fa = {
|
|
|
5057
4925
|
}
|
|
5058
4926
|
}
|
|
5059
4927
|
};
|
|
5060
|
-
var
|
|
4928
|
+
var S2 = function() {
|
|
5061
4929
|
var e = this, t = e._self._c;
|
|
5062
4930
|
return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
|
|
5063
4931
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -5100,18 +4968,18 @@ var ga = function() {
|
|
|
5100
4968
|
return e.addArticle(a);
|
|
5101
4969
|
} } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
|
|
5102
4970
|
}), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
|
|
5103
|
-
},
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
4971
|
+
}, T2 = [], D2 = /* @__PURE__ */ d(
|
|
4972
|
+
$2,
|
|
4973
|
+
S2,
|
|
4974
|
+
T2,
|
|
5107
4975
|
!1,
|
|
5108
4976
|
null,
|
|
5109
4977
|
"341fef10",
|
|
5110
4978
|
null,
|
|
5111
4979
|
null
|
|
5112
4980
|
);
|
|
5113
|
-
const
|
|
5114
|
-
const
|
|
4981
|
+
const V2 = D2.exports;
|
|
4982
|
+
const B2 = {
|
|
5115
4983
|
i18nOptions: {
|
|
5116
4984
|
namespaces: "DocSettings",
|
|
5117
4985
|
messages: {
|
|
@@ -5199,8 +5067,8 @@ const xa = {
|
|
|
5199
5067
|
},
|
|
5200
5068
|
name: "DocumentGeneralSettings",
|
|
5201
5069
|
components: {
|
|
5202
|
-
FormInputRow:
|
|
5203
|
-
DragWindow:
|
|
5070
|
+
FormInputRow: N,
|
|
5071
|
+
DragWindow: J
|
|
5204
5072
|
},
|
|
5205
5073
|
props: {
|
|
5206
5074
|
offset: {
|
|
@@ -5241,7 +5109,7 @@ const xa = {
|
|
|
5241
5109
|
vatTypes() {
|
|
5242
5110
|
var e;
|
|
5243
5111
|
const i = ["vat"];
|
|
5244
|
-
return ((e =
|
|
5112
|
+
return ((e = ke[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
5245
5113
|
},
|
|
5246
5114
|
options() {
|
|
5247
5115
|
return [
|
|
@@ -5274,7 +5142,7 @@ const xa = {
|
|
|
5274
5142
|
component: "select",
|
|
5275
5143
|
props: {
|
|
5276
5144
|
value: this.language,
|
|
5277
|
-
options:
|
|
5145
|
+
options: Le.map((i) => ({
|
|
5278
5146
|
value: i,
|
|
5279
5147
|
label: this.$t(`iso:language.${i}`)
|
|
5280
5148
|
})).sort((i, e) => i.label.localeCompare(e.label))
|
|
@@ -5447,7 +5315,7 @@ const xa = {
|
|
|
5447
5315
|
}
|
|
5448
5316
|
}
|
|
5449
5317
|
};
|
|
5450
|
-
var
|
|
5318
|
+
var M2 = function() {
|
|
5451
5319
|
var e = this, t = e._self._c;
|
|
5452
5320
|
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5453
5321
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
@@ -5456,17 +5324,17 @@ var wa = function() {
|
|
|
5456
5324
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5457
5325
|
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 } })];
|
|
5458
5326
|
})], 2) : e._e()], 2);
|
|
5459
|
-
},
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5327
|
+
}, F2 = [], I2 = /* @__PURE__ */ d(
|
|
5328
|
+
B2,
|
|
5329
|
+
M2,
|
|
5330
|
+
F2,
|
|
5463
5331
|
!1,
|
|
5464
5332
|
null,
|
|
5465
5333
|
"c2cb1c6b",
|
|
5466
5334
|
null,
|
|
5467
5335
|
null
|
|
5468
5336
|
);
|
|
5469
|
-
const
|
|
5337
|
+
const H2 = I2.exports, A2 = {
|
|
5470
5338
|
name: "MenuBlockConvertPopover",
|
|
5471
5339
|
props: {
|
|
5472
5340
|
target: {
|
|
@@ -5499,25 +5367,25 @@ const ka = _a.exports, La = {
|
|
|
5499
5367
|
}
|
|
5500
5368
|
}
|
|
5501
5369
|
};
|
|
5502
|
-
var
|
|
5370
|
+
var P2 = function() {
|
|
5503
5371
|
var e = this, t = e._self._c;
|
|
5504
5372
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5505
5373
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5506
5374
|
} } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
5507
5375
|
return e.$emit("convert");
|
|
5508
5376
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5509
|
-
},
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5377
|
+
}, z2 = [], E2 = /* @__PURE__ */ d(
|
|
5378
|
+
A2,
|
|
5379
|
+
P2,
|
|
5380
|
+
z2,
|
|
5513
5381
|
!1,
|
|
5514
5382
|
null,
|
|
5515
5383
|
null,
|
|
5516
5384
|
null,
|
|
5517
5385
|
null
|
|
5518
5386
|
);
|
|
5519
|
-
const
|
|
5520
|
-
const
|
|
5387
|
+
const Z2 = E2.exports;
|
|
5388
|
+
const U2 = A.component("ProBadge", {
|
|
5521
5389
|
name: "ProBadge",
|
|
5522
5390
|
render(i) {
|
|
5523
5391
|
return i(
|
|
@@ -5528,7 +5396,7 @@ const Va = A.component("ProBadge", {
|
|
|
5528
5396
|
"Pro"
|
|
5529
5397
|
);
|
|
5530
5398
|
}
|
|
5531
|
-
}),
|
|
5399
|
+
}), O2 = {
|
|
5532
5400
|
name: "MenuBlocks",
|
|
5533
5401
|
i18nOptions: {
|
|
5534
5402
|
namespaces: "menuBlocks",
|
|
@@ -5599,12 +5467,12 @@ const Va = A.component("ProBadge", {
|
|
|
5599
5467
|
},
|
|
5600
5468
|
components: {
|
|
5601
5469
|
simplebar: L,
|
|
5602
|
-
DragList:
|
|
5603
|
-
DragItem:
|
|
5604
|
-
AddBlock:
|
|
5470
|
+
DragList: G,
|
|
5471
|
+
DragItem: W,
|
|
5472
|
+
AddBlock: Y,
|
|
5605
5473
|
IsPremiumPreStep: k,
|
|
5606
|
-
ProBadge:
|
|
5607
|
-
MenuBlockConvertPopover:
|
|
5474
|
+
ProBadge: U2,
|
|
5475
|
+
MenuBlockConvertPopover: Z2
|
|
5608
5476
|
},
|
|
5609
5477
|
props: {
|
|
5610
5478
|
_document: {
|
|
@@ -5909,7 +5777,7 @@ const Va = A.component("ProBadge", {
|
|
|
5909
5777
|
}
|
|
5910
5778
|
];
|
|
5911
5779
|
return i.forEach((e) => {
|
|
5912
|
-
|
|
5780
|
+
Z[e.key] && (e.subMenu = (Z[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
|
|
5913
5781
|
}), i;
|
|
5914
5782
|
},
|
|
5915
5783
|
availableBlocks() {
|
|
@@ -5965,7 +5833,7 @@ const Va = A.component("ProBadge", {
|
|
|
5965
5833
|
if (this.mq === "sm")
|
|
5966
5834
|
return;
|
|
5967
5835
|
const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
5968
|
-
this.tippyInstances =
|
|
5836
|
+
this.tippyInstances = Ne(this.$el, {
|
|
5969
5837
|
target: "[data-tooltip-key]",
|
|
5970
5838
|
allowHTML: !0,
|
|
5971
5839
|
duration: [150, 0],
|
|
@@ -6033,7 +5901,7 @@ const Va = A.component("ProBadge", {
|
|
|
6033
5901
|
}
|
|
6034
5902
|
}
|
|
6035
5903
|
};
|
|
6036
|
-
var
|
|
5904
|
+
var R2 = function() {
|
|
6037
5905
|
var e = this, t = e._self._c;
|
|
6038
5906
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
6039
5907
|
return e.$emit("block-added", a);
|
|
@@ -6076,18 +5944,18 @@ var Ma = function() {
|
|
|
6076
5944
|
}), 1)], 1)], 1)])], 1)];
|
|
6077
5945
|
} }], null, !0) })];
|
|
6078
5946
|
} }]) });
|
|
6079
|
-
},
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
5947
|
+
}, G2 = [], W2 = /* @__PURE__ */ d(
|
|
5948
|
+
O2,
|
|
5949
|
+
R2,
|
|
5950
|
+
G2,
|
|
6083
5951
|
!1,
|
|
6084
5952
|
null,
|
|
6085
5953
|
"126e204b",
|
|
6086
5954
|
null,
|
|
6087
5955
|
null
|
|
6088
5956
|
);
|
|
6089
|
-
const
|
|
6090
|
-
const
|
|
5957
|
+
const q2 = W2.exports;
|
|
5958
|
+
const N2 = {
|
|
6091
5959
|
name: "DocumentFormMenu",
|
|
6092
5960
|
i18nOptions: {
|
|
6093
5961
|
namespaces: "documentFormMenu",
|
|
@@ -6103,12 +5971,12 @@ const Aa = {
|
|
|
6103
5971
|
}
|
|
6104
5972
|
},
|
|
6105
5973
|
components: {
|
|
6106
|
-
Design:
|
|
6107
|
-
Fields:
|
|
6108
|
-
ExtensionTab:
|
|
6109
|
-
DocumentGeneralSettings:
|
|
6110
|
-
DocumentGuide: () => import("./index-
|
|
6111
|
-
MenuBlocks:
|
|
5974
|
+
Design: f2,
|
|
5975
|
+
Fields: L2,
|
|
5976
|
+
ExtensionTab: V2,
|
|
5977
|
+
DocumentGeneralSettings: H2,
|
|
5978
|
+
DocumentGuide: () => import("./index-dc39dc99.js"),
|
|
5979
|
+
MenuBlocks: q2,
|
|
6112
5980
|
Simplebar: L
|
|
6113
5981
|
},
|
|
6114
5982
|
props: {
|
|
@@ -6149,7 +6017,7 @@ const Aa = {
|
|
|
6149
6017
|
data() {
|
|
6150
6018
|
return {
|
|
6151
6019
|
showGuide: !1,
|
|
6152
|
-
showGuideNotification: !
|
|
6020
|
+
showGuideNotification: !z.getItem("hideFormGuideNotification"),
|
|
6153
6021
|
tab: "blocks"
|
|
6154
6022
|
};
|
|
6155
6023
|
},
|
|
@@ -6171,11 +6039,11 @@ const Aa = {
|
|
|
6171
6039
|
},
|
|
6172
6040
|
methods: {
|
|
6173
6041
|
openGuide() {
|
|
6174
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
6042
|
+
this.showGuide = !0, this.showGuideNotification = !1, z.setItem("hideFormGuideNotification", !0);
|
|
6175
6043
|
}
|
|
6176
6044
|
}
|
|
6177
6045
|
};
|
|
6178
|
-
var
|
|
6046
|
+
var j2 = function() {
|
|
6179
6047
|
var e = this, t = e._self._c;
|
|
6180
6048
|
return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
6181
6049
|
return e.$emit("close");
|
|
@@ -6222,18 +6090,18 @@ var Pa = function() {
|
|
|
6222
6090
|
}, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
6223
6091
|
e.showGuide = !1;
|
|
6224
6092
|
} } }) : e._e()], 1)])]);
|
|
6225
|
-
},
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6093
|
+
}, K2 = [], Y2 = /* @__PURE__ */ d(
|
|
6094
|
+
N2,
|
|
6095
|
+
j2,
|
|
6096
|
+
K2,
|
|
6229
6097
|
!1,
|
|
6230
6098
|
null,
|
|
6231
6099
|
"670ad23f",
|
|
6232
6100
|
null,
|
|
6233
6101
|
null
|
|
6234
6102
|
);
|
|
6235
|
-
const
|
|
6236
|
-
const
|
|
6103
|
+
const Q2 = Y2.exports;
|
|
6104
|
+
const J2 = {
|
|
6237
6105
|
name: "BlockControlButtons",
|
|
6238
6106
|
i18nOptions: {
|
|
6239
6107
|
namespace: "blockControlButtons",
|
|
@@ -6265,7 +6133,7 @@ const Oa = {
|
|
|
6265
6133
|
}
|
|
6266
6134
|
}
|
|
6267
6135
|
};
|
|
6268
|
-
var
|
|
6136
|
+
var X2 = function() {
|
|
6269
6137
|
var e = this, t = e._self._c;
|
|
6270
6138
|
return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6271
6139
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -6276,21 +6144,21 @@ var Ua = function() {
|
|
|
6276
6144
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6277
6145
|
return e.$emit("remove");
|
|
6278
6146
|
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
|
|
6279
|
-
},
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6147
|
+
}, ei = [], ti = /* @__PURE__ */ d(
|
|
6148
|
+
J2,
|
|
6149
|
+
X2,
|
|
6150
|
+
ei,
|
|
6283
6151
|
!1,
|
|
6284
6152
|
null,
|
|
6285
6153
|
"9e35bda4",
|
|
6286
6154
|
null,
|
|
6287
6155
|
null
|
|
6288
6156
|
);
|
|
6289
|
-
const
|
|
6290
|
-
const
|
|
6157
|
+
const ii = ti.exports;
|
|
6158
|
+
const ai = {
|
|
6291
6159
|
name: "DynamicBlock",
|
|
6292
6160
|
components: {
|
|
6293
|
-
BlockControlButtons:
|
|
6161
|
+
BlockControlButtons: ii
|
|
6294
6162
|
},
|
|
6295
6163
|
props: {
|
|
6296
6164
|
isDragging: {
|
|
@@ -6351,7 +6219,7 @@ const qa = {
|
|
|
6351
6219
|
}
|
|
6352
6220
|
}
|
|
6353
6221
|
};
|
|
6354
|
-
var
|
|
6222
|
+
var ni = function() {
|
|
6355
6223
|
var e = this, t = e._self._c;
|
|
6356
6224
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6357
6225
|
{
|
|
@@ -6374,22 +6242,22 @@ var Na = function() {
|
|
|
6374
6242
|
}, remove: function(a) {
|
|
6375
6243
|
return e.$emit("remove");
|
|
6376
6244
|
} } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
|
|
6377
|
-
},
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6245
|
+
}, si = [], oi = /* @__PURE__ */ d(
|
|
6246
|
+
ai,
|
|
6247
|
+
ni,
|
|
6248
|
+
si,
|
|
6381
6249
|
!1,
|
|
6382
6250
|
null,
|
|
6383
6251
|
"3d358acc",
|
|
6384
6252
|
null,
|
|
6385
6253
|
null
|
|
6386
6254
|
);
|
|
6387
|
-
const
|
|
6388
|
-
const
|
|
6255
|
+
const li = oi.exports;
|
|
6256
|
+
const ri = {
|
|
6389
6257
|
name: "DocumentDrawer",
|
|
6390
6258
|
components: {
|
|
6391
6259
|
simplebar: L,
|
|
6392
|
-
Drawer:
|
|
6260
|
+
Drawer: Q
|
|
6393
6261
|
},
|
|
6394
6262
|
props: {
|
|
6395
6263
|
position: {
|
|
@@ -6411,7 +6279,7 @@ const Qa = {
|
|
|
6411
6279
|
}
|
|
6412
6280
|
}
|
|
6413
6281
|
};
|
|
6414
|
-
var
|
|
6282
|
+
var ci = function() {
|
|
6415
6283
|
var e = this, t = e._self._c;
|
|
6416
6284
|
return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
|
|
6417
6285
|
"is-sticky": !e.fixed
|
|
@@ -6423,18 +6291,18 @@ var Ja = function() {
|
|
|
6423
6291
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6424
6292
|
...e.fixedStyle
|
|
6425
6293
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6426
|
-
},
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6294
|
+
}, di = [], pi = /* @__PURE__ */ d(
|
|
6295
|
+
ri,
|
|
6296
|
+
ci,
|
|
6297
|
+
di,
|
|
6430
6298
|
!1,
|
|
6431
6299
|
null,
|
|
6432
6300
|
"28a55097",
|
|
6433
6301
|
null,
|
|
6434
6302
|
null
|
|
6435
6303
|
);
|
|
6436
|
-
const
|
|
6437
|
-
const
|
|
6304
|
+
const ui = pi.exports;
|
|
6305
|
+
const mi = {
|
|
6438
6306
|
name: "DocumentFormViewRadio",
|
|
6439
6307
|
props: {
|
|
6440
6308
|
value: {
|
|
@@ -6447,24 +6315,24 @@ const an = {
|
|
|
6447
6315
|
}
|
|
6448
6316
|
}
|
|
6449
6317
|
};
|
|
6450
|
-
var
|
|
6318
|
+
var hi = function() {
|
|
6451
6319
|
var e = this, t = e._self._c;
|
|
6452
6320
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6453
6321
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6454
6322
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "edit", size: "18" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
6455
6323
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6456
6324
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye", size: "18" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6457
|
-
},
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6325
|
+
}, fi = [], gi = /* @__PURE__ */ d(
|
|
6326
|
+
mi,
|
|
6327
|
+
hi,
|
|
6328
|
+
fi,
|
|
6461
6329
|
!1,
|
|
6462
6330
|
null,
|
|
6463
6331
|
"2d9aa751",
|
|
6464
6332
|
null,
|
|
6465
6333
|
null
|
|
6466
6334
|
);
|
|
6467
|
-
const
|
|
6335
|
+
const Ci = gi.exports, vi = {
|
|
6468
6336
|
name: "LogoBanner",
|
|
6469
6337
|
props: {
|
|
6470
6338
|
position: {
|
|
@@ -6482,46 +6350,46 @@ const ln = on.exports, rn = {
|
|
|
6482
6350
|
}
|
|
6483
6351
|
}
|
|
6484
6352
|
};
|
|
6485
|
-
var
|
|
6353
|
+
var yi = function() {
|
|
6486
6354
|
var e = this, t = e._self._c;
|
|
6487
6355
|
return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t(
|
|
6488
6356
|
"_common:brand.domain"
|
|
6489
6357
|
)}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
|
|
6490
|
-
},
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6358
|
+
}, xi = [], wi = /* @__PURE__ */ d(
|
|
6359
|
+
vi,
|
|
6360
|
+
yi,
|
|
6361
|
+
xi,
|
|
6494
6362
|
!1,
|
|
6495
6363
|
null,
|
|
6496
6364
|
null,
|
|
6497
6365
|
null,
|
|
6498
6366
|
null
|
|
6499
6367
|
);
|
|
6500
|
-
const
|
|
6501
|
-
const
|
|
6368
|
+
const bi = wi.exports;
|
|
6369
|
+
const _i = {
|
|
6502
6370
|
name: "DocumentFormNav"
|
|
6503
6371
|
};
|
|
6504
|
-
var
|
|
6372
|
+
var ki = function() {
|
|
6505
6373
|
var e = this, t = e._self._c;
|
|
6506
6374
|
return t("div", { staticClass: "DocumentFormNav py-2 px-2 md:px-6 fixed left-0 top-0 right-0 z-[98]" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
|
|
6507
|
-
},
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6375
|
+
}, Li = [], $i = /* @__PURE__ */ d(
|
|
6376
|
+
_i,
|
|
6377
|
+
ki,
|
|
6378
|
+
Li,
|
|
6511
6379
|
!1,
|
|
6512
6380
|
null,
|
|
6513
6381
|
"39c32da6",
|
|
6514
6382
|
null,
|
|
6515
6383
|
null
|
|
6516
6384
|
);
|
|
6517
|
-
const
|
|
6518
|
-
const
|
|
6385
|
+
const Si = $i.exports;
|
|
6386
|
+
const X = (i, e, t = "$children") => {
|
|
6519
6387
|
if (!i)
|
|
6520
6388
|
return;
|
|
6521
6389
|
e(i);
|
|
6522
6390
|
const a = i[t];
|
|
6523
|
-
!a && !Array.isArray(a) || a.forEach((n) =>
|
|
6524
|
-
},
|
|
6391
|
+
!a && !Array.isArray(a) || a.forEach((n) => X(n, e));
|
|
6392
|
+
}, Ti = {
|
|
6525
6393
|
i18nOptions: {
|
|
6526
6394
|
namespaces: "DocumentFormContainer",
|
|
6527
6395
|
messages: {
|
|
@@ -6537,18 +6405,18 @@ const pe = (i, e, t = "$children") => {
|
|
|
6537
6405
|
},
|
|
6538
6406
|
name: "DocumentFormContainer",
|
|
6539
6407
|
components: {
|
|
6540
|
-
WithDimensions:
|
|
6541
|
-
DragList:
|
|
6542
|
-
DragItem:
|
|
6543
|
-
DynamicChapter:
|
|
6544
|
-
DocumentFormMenu:
|
|
6545
|
-
DynamicBlock:
|
|
6546
|
-
DocumentFormViewRadio:
|
|
6547
|
-
DocumentFormNav:
|
|
6548
|
-
DocumentDrawer:
|
|
6549
|
-
DocumentStyleContainer:
|
|
6408
|
+
WithDimensions: ze,
|
|
6409
|
+
DragList: G,
|
|
6410
|
+
DragItem: W,
|
|
6411
|
+
DynamicChapter: Ee,
|
|
6412
|
+
DocumentFormMenu: Q2,
|
|
6413
|
+
DynamicBlock: li,
|
|
6414
|
+
DocumentFormViewRadio: Ci,
|
|
6415
|
+
DocumentFormNav: Si,
|
|
6416
|
+
DocumentDrawer: ui,
|
|
6417
|
+
DocumentStyleContainer: Ze,
|
|
6550
6418
|
simplebar: L,
|
|
6551
|
-
LogoBanner:
|
|
6419
|
+
LogoBanner: bi,
|
|
6552
6420
|
IsPremium: _
|
|
6553
6421
|
},
|
|
6554
6422
|
props: {
|
|
@@ -6684,7 +6552,7 @@ const pe = (i, e, t = "$children") => {
|
|
|
6684
6552
|
},
|
|
6685
6553
|
methods: {
|
|
6686
6554
|
onAddBlockMount(i, e) {
|
|
6687
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6555
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => Qe(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6688
6556
|
},
|
|
6689
6557
|
onBlockToggleVisible(i, e) {
|
|
6690
6558
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6708,7 +6576,7 @@ const pe = (i, e, t = "$children") => {
|
|
|
6708
6576
|
const a = i.itemId.split("-")[1];
|
|
6709
6577
|
this.removePackageGroup(a);
|
|
6710
6578
|
} else
|
|
6711
|
-
|
|
6579
|
+
X(i, (n) => {
|
|
6712
6580
|
n.value && Object.values(n.value).forEach((s) => {
|
|
6713
6581
|
this.removeFormKeyValue(`${s}`);
|
|
6714
6582
|
let o = s.replace(
|
|
@@ -6748,7 +6616,7 @@ const pe = (i, e, t = "$children") => {
|
|
|
6748
6616
|
if (e !== null && t !== null) {
|
|
6749
6617
|
if (e === t)
|
|
6750
6618
|
return;
|
|
6751
|
-
const n =
|
|
6619
|
+
const n = $e(
|
|
6752
6620
|
this.nestedReadLayout,
|
|
6753
6621
|
e,
|
|
6754
6622
|
t
|
|
@@ -6769,17 +6637,17 @@ const pe = (i, e, t = "$children") => {
|
|
|
6769
6637
|
contentData: l
|
|
6770
6638
|
});
|
|
6771
6639
|
o({ validation: c, data: C });
|
|
6772
|
-
const
|
|
6640
|
+
const ee = Se({ tree: r }), te = [
|
|
6773
6641
|
...this.nestedReadLayout.slice(0, t),
|
|
6774
|
-
...
|
|
6642
|
+
...ee,
|
|
6775
6643
|
...this.nestedReadLayout.slice(t)
|
|
6776
6644
|
];
|
|
6777
6645
|
this.setFormValue({
|
|
6778
6646
|
key: "template.views.read.nodes",
|
|
6779
|
-
value: B(
|
|
6647
|
+
value: B(te)
|
|
6780
6648
|
});
|
|
6781
|
-
const [{ nodeId:
|
|
6782
|
-
this.onAddRedis[
|
|
6649
|
+
const [{ nodeId: ie }] = r;
|
|
6650
|
+
this.onAddRedis[ie] = V;
|
|
6783
6651
|
}
|
|
6784
6652
|
},
|
|
6785
6653
|
shouldAnimateDrop(i) {
|
|
@@ -6787,7 +6655,7 @@ const pe = (i, e, t = "$children") => {
|
|
|
6787
6655
|
}
|
|
6788
6656
|
}
|
|
6789
6657
|
};
|
|
6790
|
-
var
|
|
6658
|
+
var Di = function() {
|
|
6791
6659
|
var e = this, t = e._self._c;
|
|
6792
6660
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6793
6661
|
"is-edit-view": e.isEditView,
|
|
@@ -6865,30 +6733,30 @@ var yn = function() {
|
|
|
6865
6733
|
} } }, [t("CButton", { staticClass: "absolute top-2 right-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
|
|
6866
6734
|
e.drawerState.openSection = null;
|
|
6867
6735
|
} } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6868
|
-
},
|
|
6736
|
+
}, Vi = [function() {
|
|
6869
6737
|
var i = this, e = i._self._c;
|
|
6870
6738
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6871
|
-
}],
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6739
|
+
}], Bi = /* @__PURE__ */ d(
|
|
6740
|
+
Ti,
|
|
6741
|
+
Di,
|
|
6742
|
+
Vi,
|
|
6875
6743
|
!1,
|
|
6876
6744
|
null,
|
|
6877
6745
|
"d761f136",
|
|
6878
6746
|
null,
|
|
6879
6747
|
null
|
|
6880
6748
|
);
|
|
6881
|
-
const
|
|
6882
|
-
function
|
|
6749
|
+
const Mi = Bi.exports;
|
|
6750
|
+
function Fi(i, e, t) {
|
|
6883
6751
|
return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
|
|
6884
6752
|
}
|
|
6885
|
-
var
|
|
6886
|
-
function
|
|
6887
|
-
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0),
|
|
6753
|
+
var Ii = Fi, Hi = Ii, M = Oe;
|
|
6754
|
+
function Ai(i, e, t) {
|
|
6755
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), Hi(M(i), e, t);
|
|
6888
6756
|
}
|
|
6889
|
-
var
|
|
6890
|
-
const
|
|
6891
|
-
const
|
|
6757
|
+
var Pi = Ai;
|
|
6758
|
+
const zi = /* @__PURE__ */ Te(Pi);
|
|
6759
|
+
const Ei = {
|
|
6892
6760
|
name: "RemainingTrialButton",
|
|
6893
6761
|
components: { IsPremium: _ },
|
|
6894
6762
|
i18nOptions: {
|
|
@@ -6920,10 +6788,10 @@ const Dn = {
|
|
|
6920
6788
|
},
|
|
6921
6789
|
mixins: [b],
|
|
6922
6790
|
methods: {
|
|
6923
|
-
clamp:
|
|
6791
|
+
clamp: zi
|
|
6924
6792
|
}
|
|
6925
6793
|
};
|
|
6926
|
-
var
|
|
6794
|
+
var Zi = function() {
|
|
6927
6795
|
var e = this, t = e._self._c;
|
|
6928
6796
|
return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
|
|
6929
6797
|
accountType: a,
|
|
@@ -6935,31 +6803,31 @@ var Vn = function() {
|
|
|
6935
6803
|
width: e.clamp(n / o * 100, 0, 100) + "%"
|
|
6936
6804
|
} })])]), t("div", { staticClass: "p-4 text-sm w-56", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-primary-100 border border-primary-200 text-primary-800 rounded-md text-xs" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-gray-200 border border-gray-300 text-gray-600 rounded-md text-xs font-semibold" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
|
|
6937
6805
|
} }]) });
|
|
6938
|
-
},
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6806
|
+
}, Ui = [], Oi = /* @__PURE__ */ d(
|
|
6807
|
+
Ei,
|
|
6808
|
+
Zi,
|
|
6809
|
+
Ui,
|
|
6942
6810
|
!1,
|
|
6943
6811
|
null,
|
|
6944
6812
|
"ef060cb6",
|
|
6945
6813
|
null,
|
|
6946
6814
|
null
|
|
6947
6815
|
);
|
|
6948
|
-
const
|
|
6816
|
+
const Ri = Oi.exports, T = A.observable({
|
|
6949
6817
|
canEdit: !1,
|
|
6950
6818
|
isForm: !0,
|
|
6951
6819
|
setFormValue: null,
|
|
6952
6820
|
removeFormValue: null
|
|
6953
|
-
}),
|
|
6821
|
+
}), Gi = {
|
|
6954
6822
|
name: "DocumentForm",
|
|
6955
6823
|
components: {
|
|
6956
|
-
DocumentFormContainer:
|
|
6824
|
+
DocumentFormContainer: Mi,
|
|
6957
6825
|
IsPremium: _,
|
|
6958
6826
|
IsPremiumPreStep: k,
|
|
6959
|
-
DocumentSend:
|
|
6960
|
-
RemainingTrialButton:
|
|
6827
|
+
DocumentSend: e2,
|
|
6828
|
+
RemainingTrialButton: Ri
|
|
6961
6829
|
},
|
|
6962
|
-
mixins: [
|
|
6830
|
+
mixins: [qe],
|
|
6963
6831
|
props: {
|
|
6964
6832
|
document: {
|
|
6965
6833
|
type: Object,
|
|
@@ -7046,7 +6914,7 @@ const In = Mn.exports, T = A.observable({
|
|
|
7046
6914
|
},
|
|
7047
6915
|
async saveAsTemplate() {
|
|
7048
6916
|
this.document && this.$modal.show(
|
|
7049
|
-
|
|
6917
|
+
j,
|
|
7050
6918
|
{
|
|
7051
6919
|
document: this.document,
|
|
7052
6920
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -7063,7 +6931,7 @@ const In = Mn.exports, T = A.observable({
|
|
|
7063
6931
|
}
|
|
7064
6932
|
}
|
|
7065
6933
|
};
|
|
7066
|
-
var
|
|
6934
|
+
var Wi = function() {
|
|
7067
6935
|
var e = this, t = e._self._c;
|
|
7068
6936
|
return e.document ? t("div", { staticClass: "flex flex-col w-screen bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
|
|
7069
6937
|
e.view = a;
|
|
@@ -7091,18 +6959,18 @@ var Hn = function() {
|
|
|
7091
6959
|
reminders: "data.reminders",
|
|
7092
6960
|
name: "data.name"
|
|
7093
6961
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
|
|
7094
|
-
},
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
6962
|
+
}, qi = [], Ni = /* @__PURE__ */ d(
|
|
6963
|
+
Gi,
|
|
6964
|
+
Wi,
|
|
6965
|
+
qi,
|
|
7098
6966
|
!1,
|
|
7099
6967
|
null,
|
|
7100
6968
|
null,
|
|
7101
6969
|
null,
|
|
7102
6970
|
null
|
|
7103
6971
|
);
|
|
7104
|
-
const
|
|
7105
|
-
const
|
|
6972
|
+
const ji = Ni.exports;
|
|
6973
|
+
const Ki = {
|
|
7106
6974
|
name: "DocumentPostSendStep",
|
|
7107
6975
|
mixins: [b],
|
|
7108
6976
|
i18nOptions: {
|
|
@@ -7139,7 +7007,7 @@ const zn = {
|
|
|
7139
7007
|
return this.mq === "sm" ? "100%" : "auto";
|
|
7140
7008
|
},
|
|
7141
7009
|
usesManualDelivery() {
|
|
7142
|
-
const i =
|
|
7010
|
+
const i = F(this.document);
|
|
7143
7011
|
return !i.sms && !i.email;
|
|
7144
7012
|
}
|
|
7145
7013
|
},
|
|
@@ -7154,12 +7022,12 @@ const zn = {
|
|
|
7154
7022
|
sendDocument: m.DO_SEND_DOCUMENT2
|
|
7155
7023
|
}),
|
|
7156
7024
|
async handleDocumentLinks() {
|
|
7157
|
-
const { id: i } = this.document, e =
|
|
7025
|
+
const { id: i } = this.document, e = F(this.document), t = !e.sms && !e.email;
|
|
7158
7026
|
t && (await this.updateDocument({
|
|
7159
7027
|
id: i,
|
|
7160
7028
|
body: { status: "sent" },
|
|
7161
7029
|
showMessage: !1
|
|
7162
|
-
}),
|
|
7030
|
+
}), Je({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
7163
7031
|
},
|
|
7164
7032
|
async onSend() {
|
|
7165
7033
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -7178,7 +7046,7 @@ const zn = {
|
|
|
7178
7046
|
body: { isAccepted: !0 },
|
|
7179
7047
|
checksum: a
|
|
7180
7048
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
7181
|
-
|
|
7049
|
+
Xe,
|
|
7182
7050
|
{
|
|
7183
7051
|
_document: this.document,
|
|
7184
7052
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -7222,33 +7090,23 @@ const zn = {
|
|
|
7222
7090
|
}
|
|
7223
7091
|
}
|
|
7224
7092
|
};
|
|
7225
|
-
var
|
|
7093
|
+
var Yi = function() {
|
|
7226
7094
|
var e = this, t = e._self._c;
|
|
7227
7095
|
return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
|
|
7228
|
-
},
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7096
|
+
}, Qi = [], Ji = /* @__PURE__ */ d(
|
|
7097
|
+
Ki,
|
|
7098
|
+
Yi,
|
|
7099
|
+
Qi,
|
|
7232
7100
|
!1,
|
|
7233
7101
|
null,
|
|
7234
7102
|
"673cd86f",
|
|
7235
7103
|
null,
|
|
7236
7104
|
null
|
|
7237
7105
|
);
|
|
7238
|
-
const
|
|
7239
|
-
A.use(
|
|
7240
|
-
const
|
|
7106
|
+
const Xi = Ji.exports;
|
|
7107
|
+
A.use(We);
|
|
7108
|
+
const ea = {
|
|
7241
7109
|
name: "DocForm",
|
|
7242
|
-
mixins: [
|
|
7243
|
-
Ne([
|
|
7244
|
-
"closeFunc",
|
|
7245
|
-
"beforeSave",
|
|
7246
|
-
"beforeSend",
|
|
7247
|
-
"setFormValue",
|
|
7248
|
-
"removeFormValue",
|
|
7249
|
-
"galleryCategory"
|
|
7250
|
-
])
|
|
7251
|
-
],
|
|
7252
7110
|
i18nOptions: {
|
|
7253
7111
|
namespaces: "widgetDocForm",
|
|
7254
7112
|
messages: {
|
|
@@ -7261,20 +7119,39 @@ const Gn = {
|
|
|
7261
7119
|
}
|
|
7262
7120
|
},
|
|
7263
7121
|
components: {
|
|
7264
|
-
TemplateSelector:
|
|
7265
|
-
DocumentForm:
|
|
7266
|
-
PostSend:
|
|
7122
|
+
TemplateSelector: Ht,
|
|
7123
|
+
DocumentForm: ji,
|
|
7124
|
+
PostSend: Xi
|
|
7267
7125
|
},
|
|
7268
7126
|
props: {
|
|
7269
|
-
|
|
7127
|
+
setFormValue: {
|
|
7128
|
+
type: Function,
|
|
7129
|
+
default: null
|
|
7130
|
+
},
|
|
7131
|
+
removeFormValue: {
|
|
7132
|
+
type: Function,
|
|
7133
|
+
default: null
|
|
7134
|
+
},
|
|
7135
|
+
closeFunc: {
|
|
7136
|
+
type: Function,
|
|
7137
|
+
default: null
|
|
7138
|
+
},
|
|
7139
|
+
beforeSave: {
|
|
7140
|
+
type: Function,
|
|
7141
|
+
default: null
|
|
7142
|
+
},
|
|
7143
|
+
beforeSend: {
|
|
7144
|
+
type: Function,
|
|
7145
|
+
default: null
|
|
7146
|
+
},
|
|
7147
|
+
galleryCategory: {
|
|
7148
|
+
type: String,
|
|
7149
|
+
default: null
|
|
7150
|
+
},
|
|
7151
|
+
showBackButton: {
|
|
7270
7152
|
type: Boolean,
|
|
7271
|
-
default: !
|
|
7153
|
+
default: !0
|
|
7272
7154
|
}
|
|
7273
|
-
// TODO
|
|
7274
|
-
// sendProps: {
|
|
7275
|
-
// type: Object,
|
|
7276
|
-
// default: () => ({})
|
|
7277
|
-
// }
|
|
7278
7155
|
},
|
|
7279
7156
|
data() {
|
|
7280
7157
|
return {
|
|
@@ -7284,7 +7161,7 @@ const Gn = {
|
|
|
7284
7161
|
};
|
|
7285
7162
|
},
|
|
7286
7163
|
computed: {
|
|
7287
|
-
...
|
|
7164
|
+
...De({
|
|
7288
7165
|
company: "application/company",
|
|
7289
7166
|
feature: "application/feature",
|
|
7290
7167
|
can: "application/can",
|
|
@@ -7313,7 +7190,7 @@ const Gn = {
|
|
|
7313
7190
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
7314
7191
|
},
|
|
7315
7192
|
methods: {
|
|
7316
|
-
...
|
|
7193
|
+
...Ve({
|
|
7317
7194
|
removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
|
|
7318
7195
|
loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
|
|
7319
7196
|
duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
|
|
@@ -7323,7 +7200,7 @@ const Gn = {
|
|
|
7323
7200
|
async initDoc() {
|
|
7324
7201
|
if (!this.rawDoc)
|
|
7325
7202
|
throw new Error("Missing initiated form document");
|
|
7326
|
-
this.document = new
|
|
7203
|
+
this.document = new O({
|
|
7327
7204
|
data: this.rawDoc,
|
|
7328
7205
|
can: this.can,
|
|
7329
7206
|
getters: this.$store.getters,
|
|
@@ -7332,7 +7209,7 @@ const Gn = {
|
|
|
7332
7209
|
},
|
|
7333
7210
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7334
7211
|
var n;
|
|
7335
|
-
const a =
|
|
7212
|
+
const a = Be({ ...this.rawDoc }, [
|
|
7336
7213
|
"__tempId",
|
|
7337
7214
|
"externalReferences",
|
|
7338
7215
|
"subscriberCompanyUserIds",
|
|
@@ -7344,7 +7221,7 @@ const Gn = {
|
|
|
7344
7221
|
_formData: a
|
|
7345
7222
|
}) : await this.loadDocumentForm({
|
|
7346
7223
|
templateId: i,
|
|
7347
|
-
formData: t ?
|
|
7224
|
+
formData: t ? Me(t, a) : null,
|
|
7348
7225
|
_formData: a
|
|
7349
7226
|
}), (n = a == null ? void 0 : a.data) != null && n.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
|
|
7350
7227
|
},
|
|
@@ -7358,6 +7235,7 @@ const Gn = {
|
|
|
7358
7235
|
return this.removeFormKeyValue(`document2.${i}`);
|
|
7359
7236
|
},
|
|
7360
7237
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7238
|
+
var s;
|
|
7361
7239
|
let e;
|
|
7362
7240
|
if (typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), i && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), e)
|
|
7363
7241
|
return;
|
|
@@ -7366,39 +7244,31 @@ const Gn = {
|
|
|
7366
7244
|
return;
|
|
7367
7245
|
const a = this.docById(t);
|
|
7368
7246
|
let n;
|
|
7369
|
-
i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : this.
|
|
7370
|
-
},
|
|
7371
|
-
close() {
|
|
7372
|
-
if (this.closeFunc)
|
|
7373
|
-
this.closeFunc();
|
|
7374
|
-
else
|
|
7375
|
-
throw new Error(
|
|
7376
|
-
"[DocForm] closeFunc is missing from route params. Make sure to set it from ui"
|
|
7377
|
-
);
|
|
7247
|
+
i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : (s = this.closeFunc) == null || s.call(this);
|
|
7378
7248
|
},
|
|
7379
7249
|
goBack() {
|
|
7380
7250
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
7381
7251
|
},
|
|
7382
7252
|
isManualDelivery(i) {
|
|
7383
|
-
const e =
|
|
7253
|
+
const e = F(i);
|
|
7384
7254
|
return !e.sms && !e.email;
|
|
7385
7255
|
}
|
|
7386
7256
|
}
|
|
7387
7257
|
};
|
|
7388
|
-
var
|
|
7258
|
+
var ta = function() {
|
|
7389
7259
|
var e = this, t = e._self._c;
|
|
7390
|
-
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.
|
|
7391
|
-
},
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7260
|
+
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" }, [e.closeFunc ? t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.closeFunc } }) : e._e(), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.closeFunc, "go-back": !e.document.id && e.showBackButton ? e.goBack : null, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } })], 1);
|
|
7261
|
+
}, ia = [], aa = /* @__PURE__ */ d(
|
|
7262
|
+
ea,
|
|
7263
|
+
ta,
|
|
7264
|
+
ia,
|
|
7395
7265
|
!1,
|
|
7396
7266
|
null,
|
|
7397
7267
|
null,
|
|
7398
7268
|
null,
|
|
7399
7269
|
null
|
|
7400
7270
|
);
|
|
7401
|
-
const
|
|
7271
|
+
const Pa = aa.exports;
|
|
7402
7272
|
export {
|
|
7403
|
-
|
|
7273
|
+
Pa as default
|
|
7404
7274
|
};
|