@cling-se/widget 0.9.17 → 0.9.19
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-064aede9.js → AddClientCallout-56062c9e.js} +5 -5
- package/dist/{AnswerModal-f00b2576.js → AnswerModal-89282157.js} +3 -3
- package/dist/{AttachmentItem-614ed2ea.js → AttachmentItem-62102ff9.js} +3 -3
- package/dist/{BaseDatePicker-99d99f2b.js → BaseDatePicker-c236b147.js} +1 -1
- package/dist/{BaseInput-4ee00e7a.js → BaseInput-a23a8bff.js} +1 -1
- package/dist/{BaseUpload-7d9dd124.js → BaseUpload-1eb2faf5.js} +2 -2
- package/dist/{BlockMedia-354eff33.js → BlockMedia-a5e9227b.js} +1 -1
- package/dist/{CCallout-764d08cd.js → CCallout-e4abad1f.js} +2 -2
- package/dist/{CDropdownItem-ef2d7897.js → CDropdownItem-55d36127.js} +2 -1
- package/dist/{CField-f8b8481d.js → CField-1825b939.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js → CSlider.vue_vue_type_style_index_0_lang-e3343543.js} +1 -1
- package/dist/{ClientAutocomplete-04d85a96.js → ClientAutocomplete-8286e949.js} +2 -2
- package/dist/{ClientModal-56731bee.js → ClientModal-368445f8.js} +4 -4
- package/dist/{ColorPicker-15579f77.js → ColorPicker-ec8e8175.js} +1 -1
- package/dist/{CompanyModal-49b3f20e.js → CompanyModal-ca53bda3.js} +3 -3
- package/dist/{ContentWrapper-6315056f.js → ContentWrapper-7cb9d1c6.js} +26 -26
- package/dist/{CoverBlockSettings-34313ba7.js → CoverBlockSettings-08f56770.js} +8 -8
- package/dist/{DocAnswer-a53c34f6.js → DocAnswer-ced017c1.js} +4 -4
- package/dist/{DocForm-bf97c67e.js → DocForm-2db2db45.js} +618 -553
- package/dist/{DocFormSend-1247c216.js → DocFormSend-2e9c1718.js} +23 -22
- package/dist/{DocLinks-8bbcbd46.js → DocLinks-c4862422.js} +2 -2
- package/dist/{DocModalBase-e1dee9d6.js → DocModalBase-2711130a.js} +1 -1
- package/dist/{DocPrint-dcb6b719.js → DocPrint-48195954.js} +48 -29
- package/dist/{DocReceipt-d03ff3f1.js → DocReceipt-10e465b3.js} +1 -1
- package/dist/{DocSendReminder-ecc36aca.js → DocSendReminder-c4e0228f.js} +1 -1
- package/dist/{DocTextEditor-f4b51510.js → DocTextEditor-fa8bf4e1.js} +14 -14
- package/dist/{DocTimeline-28430a90.js → DocTimeline-445eca6e.js} +1 -1
- package/dist/{DocumentClient-ade9af67.js → DocumentClient-9e7c6344.js} +6 -6
- package/dist/{DocumentLayout-632a6f98.js → DocumentLayout-48c2d8a7.js} +3 -3
- package/dist/{DocumentLogotype-dacee892.js → DocumentLogotype-124c8aa4.js} +3 -3
- package/dist/{EmbedInput-a3868460.js → EmbedInput-70967810.js} +2 -2
- package/dist/{EmbedSettings-4e3d8c41.js → EmbedSettings-5b7849f2.js} +3 -3
- package/dist/{ErrorCallout-d05d6cc2.js → ErrorCallout-aba1259b.js} +1 -1
- package/dist/{FilePreviewModal-31b883c3.js → FilePreviewModal-d6641d5a.js} +5 -5
- package/dist/{HeaderSettings-131840ed.js → HeaderSettings-927fc995.js} +16 -16
- package/dist/{ImageSelectModal-7706f79f.js → ImageSelectModal-b0f47a70.js} +9 -9
- package/dist/{ImageUploadWrapper-65d04b72.js → ImageUploadWrapper-d6824c36.js} +2 -2
- package/dist/{Index-e9c20129.js → Index-04f97514.js} +7 -7
- package/dist/{Index-8c45d1e8.js → Index-0ce48100.js} +4 -4
- package/dist/{Index-b7ee6604.js → Index-1176ba23.js} +1 -1
- package/dist/{Index-a6deb4ef.js → Index-11df2c1a.js} +3 -3
- package/dist/{Index-1ec70336.js → Index-1a3b0017.js} +4 -4
- package/dist/{Index-63a45208.js → Index-26266d8f.js} +14 -14
- package/dist/{Index-0dbc20a5.js → Index-29e20c7b.js} +9 -9
- package/dist/{Index-d4b5163a.js → Index-29f59b0b.js} +4 -4
- package/dist/{Index-ca586e17.js → Index-38b6a5b2.js} +14 -14
- package/dist/{Index-c5d2a3f3.js → Index-52fae967.js} +2 -2
- package/dist/{Index-d3789f66.js → Index-5c3393a7.js} +5 -5
- package/dist/{Index-4ecb48f7.js → Index-5d4f7700.js} +4 -4
- package/dist/{Index-c217198e.js → Index-5f8f46d7.js} +6 -6
- package/dist/{Index-fb7d681c.js → Index-6610cff8.js} +6 -6
- package/dist/{Index-eb5ab752.js → Index-723b56fd.js} +2 -2
- package/dist/{Index-860706da.js → Index-800624cc.js} +10 -10
- package/dist/{Index-6a2c0245.js → Index-86c7faa0.js} +4 -4
- package/dist/{Index-c1782811.js → Index-89fde246.js} +2 -2
- package/dist/{Index-d54abcde.js → Index-8c47aae3.js} +6 -6
- package/dist/{Index-3a278b14.js → Index-8e7dad66.js} +4 -4
- package/dist/{Index-d54ff9f5.js → Index-97f8832c.js} +9 -9
- package/dist/{Index-51f43342.js → Index-9db9f33d.js} +2 -2
- package/dist/{Index-c3cf1a7a.js → Index-b21fc0d5.js} +25 -25
- package/dist/{Index-ffb5b6ae.js → Index-b3d8c89b.js} +4 -4
- package/dist/{Index-de220060.js → Index-b476e19e.js} +2 -2
- package/dist/{Index-5204e965.js → Index-b79b46ed.js} +6 -6
- package/dist/{Index-f465338a.js → Index-b93d220a.js} +4 -4
- package/dist/{Index-d9dd3c6b.js → Index-c1f81c5d.js} +8 -8
- package/dist/{Index-21b9ef50.js → Index-c6475ab6.js} +2 -2
- package/dist/{Index-c5a2140d.js → Index-c89d4517.js} +1 -1
- package/dist/{Index-9275b550.js → Index-e16918b8.js} +3 -3
- package/dist/{Index-17db3981.js → Index-e7cb0094.js} +2 -2
- package/dist/{Index-f7e348e2.js → Index-f9e6924b.js} +13 -13
- package/dist/{Index-275a26f3.js → Index-fa1cebef.js} +4 -4
- package/dist/{InputToggleRow-281e90c1.js → InputToggleRow-e0f2f03d.js} +1 -1
- package/dist/{IsPremiumPreStep-b1384bb4.js → IsPremiumPreStep-19c21cf9.js} +67 -59
- package/dist/{ManualPopover-d5ea2774.js → ManualPopover-dfa0e9ab.js} +1 -1
- package/dist/{MediaWrapper-a0b4ebe8.js → MediaWrapper-0141ada8.js} +3 -3
- package/dist/{NotBindingText-67a1409e.js → NotBindingText-0d2714ed.js} +2 -2
- package/dist/{PackageGroup-29439e17.js → PackageGroup-47bcb0de.js} +12 -12
- package/dist/{PdfTerms-2e6c0285.js → PdfTerms-31e6e4d8.js} +5 -5
- package/dist/{PdfViewer-371b5058.js → PdfViewer-05cdae7d.js} +6 -6
- package/dist/{PlainHtml-c70dc350.js → PlainHtml-25f86c0e.js} +1 -1
- package/dist/{PriceHeader-5ff405b6.js → PriceHeader-2dd6a207.js} +15 -15
- package/dist/{SearchApi-b14c893f.js → SearchApi-e4822fb0.js} +2 -2
- package/dist/{Setup-4d84f86a.js → Setup-7acab382.js} +1 -1
- package/dist/{TermsSettings-7072778d.js → TermsSettings-2e29c7b5.js} +6 -6
- package/dist/{ThemeColorRow-37a17ce4.js → ThemeColorRow-fc8942b5.js} +3 -3
- package/dist/{ToggleBinding-e04d9dfc.js → ToggleBinding-4eeba32c.js} +3 -3
- package/dist/{UploadModal-39f04624.js → UploadModal-4a1b0129.js} +3 -3
- package/dist/{VideoPlayerInput-55ab9dd1.js → VideoPlayerInput-627a5cdf.js} +3 -3
- package/dist/{VideoPlayerSettings-1d2507e8.js → VideoPlayerSettings-46355f8b.js} +4 -4
- package/dist/{VideoSelectModal-c158c88b.js → VideoSelectModal-c9d739eb.js} +8 -8
- package/dist/{answerDocumentMixin-5711c3ae.js → answerDocumentMixin-b844a10e.js} +3 -3
- package/dist/{cssMode-b85ed111.js → cssMode-5aedeee4.js} +7 -7
- package/dist/{dom-d4731032.js → dom-962579a6.js} +7 -6
- package/dist/{focusDrawerMixin-5139ff2d.js → focusDrawerMixin-9627614a.js} +1 -1
- package/dist/{formComponentsInstall-ea9fe0f1.js → formComponentsInstall-a9269119.js} +12 -12
- package/dist/{formDrawerState-872f6c63.js → formDrawerState-876f57b6.js} +1 -1
- package/dist/{formValidationMixin-20797066.js → formValidationMixin-ed233af0.js} +2 -2
- package/dist/{freemarker2-db773dc4.js → freemarker2-60ee9aee.js} +7 -7
- package/dist/{handlebars-f4e59d92.js → handlebars-694dfedf.js} +7 -7
- package/dist/{html-60722cac.js → html-a2234a8c.js} +7 -7
- package/dist/{htmlMode-699d17ac.js → htmlMode-caaf687c.js} +7 -7
- package/dist/{image-c4536036.js → image-a8004950.js} +1 -1
- package/dist/{index-b6204795.js → index-7c059780.js} +1 -1
- package/dist/{index-1f9bf410.js → index-a0048c9d.js} +9 -9
- package/dist/{index-b5312c69.js → index-c504f71f.js} +5 -5
- package/dist/index-c9bc377d.js +15 -0
- package/dist/{index-a0dcb949.js → index-da2125a0.js} +1 -1
- package/dist/{index-01a9890c.js → index-ef7204d4.js} +2 -2
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +472 -472
- package/dist/{javascript-10d90d6d.js → javascript-f139d6eb.js} +8 -8
- package/dist/{jsonMode-7689792e.js → jsonMode-63fc85d2.js} +7 -7
- package/dist/{liquid-d3d3f6d5.js → liquid-b7a8bbf7.js} +7 -7
- package/dist/{main-9daa18a1.js → main-73b04297.js} +674 -675
- package/dist/{mapFormMixin-1236b266.js → mapFormMixin-eca2705b.js} +1 -1
- package/dist/{publicSenderState-5036fa9a.js → publicSenderState-aa1142cf.js} +1 -1
- package/dist/{python-29472e5e.js → python-d3a01852.js} +7 -7
- package/dist/{razor-2dfcf495.js → razor-cdee010d.js} +7 -7
- package/dist/{simplebar.min-8422a634.js → simplebar.min-c240d344.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-282dfd7f.js → template-6d164806.js} +1 -1
- package/dist/{throttle-d4af9020.js → throttle-5aa94034.js} +2 -2
- package/dist/{tinycolor-e750ced7.js → tinycolor-7e30d091.js} +1 -1
- package/dist/{tippy.esm-ae169d52.js → tippy.esm-eb9486e0.js} +5 -5
- package/dist/{tsMode-af13fa75.js → tsMode-af4d2070.js} +7 -7
- package/dist/{typescript-278dd0a0.js → typescript-b453757b.js} +7 -7
- package/dist/{utils-a1170d9a.js → utils-ad6484bb.js} +1 -1
- package/dist/{vuedraggable.umd-e860e729.js → vuedraggable.umd-045dd09e.js} +1 -1
- package/dist/{xml-2214e1d4.js → xml-3f196cee.js} +7 -7
- package/package.json +1 -1
- package/dist/index-d9683bc3.js +0 -14
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import { aZ as
|
|
1
|
+
import { aZ as me, a_ as he, a$ as W, b0 as fe, b1 as q, b2 as N, b3 as ge, b4 as Ce, b5 as ve, b6 as ye, j, g as m, n as c, s as K, b as u, av as xe, c as f, C as Y, b7 as we, b8 as be, h as T, b9 as _e, ba as ke, A as Le, bb as $e, bc as Se, aY as Te, bd as De, N as d, a4 as h, aT as y, be as Ve, bf as Be, bg as Me, bh as Ie, D as Fe, bi as He, d as Ae, i as L, H as Pe, S as Ee, ap as ze, ae as Ze, bj as Oe, V as H, aV as Q, aW as J, I as P, bk as V, aX as Re, bl as Ge, bm as I, r as Ue, m as We, a as qe, bn as Ne } from "./main-73b04297.js";
|
|
2
2
|
import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { d as
|
|
6
|
-
import { a as
|
|
7
|
-
import { D as
|
|
8
|
-
import { s as
|
|
9
|
-
import { B as
|
|
10
|
-
import { c 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-da2125a0.js";
|
|
4
|
+
import { v as F } from "./index-805c56e4.js";
|
|
5
|
+
import { d as A, w as $, t as je } from "./CDropdownItem-55d36127.js";
|
|
6
|
+
import { a as b, I as _, b as Ke, c as Ye } from "./IsPremiumPreStep-19c21cf9.js";
|
|
7
|
+
import { D as Qe, l as Je, g as Xe, W as et, b as tt, a as it } from "./DocumentLayout-48c2d8a7.js";
|
|
8
|
+
import { s as k } from "./simplebar.min-c240d344.js";
|
|
9
|
+
import { B as at } from "./BlockMedia-a5e9227b.js";
|
|
10
|
+
import { c as nt, g as st } from "./template-6d164806.js";
|
|
11
|
+
import { a as ot } from "./tinycolor-7e30d091.js";
|
|
12
|
+
import { m as S } from "./mapFormMixin-eca2705b.js";
|
|
13
|
+
import { S as lt, C as X, i as rt } from "./formComponentsInstall-a9269119.js";
|
|
14
|
+
import { f as ct } from "./formValidationMixin-ed233af0.js";
|
|
15
|
+
import { s as v } from "./formDrawerState-876f57b6.js";
|
|
16
|
+
import { F as ee, d as dt } from "./tippy.esm-eb9486e0.js";
|
|
17
|
+
import { S as pt } from "./CSlider.vue_vue_type_style_index_0_lang-e3343543.js";
|
|
18
|
+
import { o as ut, d as mt } from "./vuedraggable.umd-045dd09e.js";
|
|
19
|
+
import { s as ht } from "./dom-962579a6.js";
|
|
20
|
+
import { o as ft } from "./index-7c059780.js";
|
|
21
|
+
import gt from "./AnswerModal-89282157.js";
|
|
22
22
|
import "./anime.es-e284c852.js";
|
|
23
|
-
import "./image-
|
|
23
|
+
import "./image-a8004950.js";
|
|
24
24
|
import "./color-71c20583.js";
|
|
25
|
-
import "./BaseDatePicker-
|
|
26
|
-
import "./ErrorCallout-
|
|
27
|
-
import "./AddClientCallout-
|
|
28
|
-
import "./ClientAutocomplete-
|
|
29
|
-
import "./SearchApi-
|
|
30
|
-
import "./ClientModal-
|
|
31
|
-
import "./CCallout-
|
|
32
|
-
import "./CField-
|
|
25
|
+
import "./BaseDatePicker-c236b147.js";
|
|
26
|
+
import "./ErrorCallout-aba1259b.js";
|
|
27
|
+
import "./AddClientCallout-56062c9e.js";
|
|
28
|
+
import "./ClientAutocomplete-8286e949.js";
|
|
29
|
+
import "./SearchApi-e4822fb0.js";
|
|
30
|
+
import "./ClientModal-368445f8.js";
|
|
31
|
+
import "./CCallout-e4abad1f.js";
|
|
32
|
+
import "./CField-1825b939.js";
|
|
33
33
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
34
|
-
import "./ColorPicker-
|
|
35
|
-
var
|
|
36
|
-
function
|
|
34
|
+
import "./ColorPicker-ec8e8175.js";
|
|
35
|
+
var Ct = me, vt = he, yt = W;
|
|
36
|
+
function xt(i, e, t) {
|
|
37
37
|
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
38
|
-
var o = e[a], l =
|
|
39
|
-
t(l, o) &&
|
|
38
|
+
var o = e[a], l = Ct(i, o);
|
|
39
|
+
t(l, o) && vt(s, yt(o, i), l);
|
|
40
40
|
}
|
|
41
41
|
return s;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var wt = xt;
|
|
44
|
+
function bt(i, e) {
|
|
45
45
|
return i != null && e in Object(i);
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var _t = bt, kt = fe, Lt = q, $t = "[object Arguments]";
|
|
48
|
+
function St(i) {
|
|
49
|
+
return Lt(i) && kt(i) == $t;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Tt = St, E = Tt, Dt = q, te = Object.prototype, Vt = te.hasOwnProperty, Bt = te.propertyIsEnumerable, Mt = E(function() {
|
|
52
52
|
return arguments;
|
|
53
|
-
}()) ?
|
|
54
|
-
return
|
|
55
|
-
},
|
|
56
|
-
function
|
|
57
|
-
return typeof i == "number" && i > -1 && i % 1 == 0 && i <=
|
|
53
|
+
}()) ? E : function(i) {
|
|
54
|
+
return Dt(i) && Vt.call(i, "callee") && !Bt.call(i, "callee");
|
|
55
|
+
}, ie = Mt, It = 9007199254740991;
|
|
56
|
+
function Ft(i) {
|
|
57
|
+
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= It;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
function
|
|
61
|
-
e =
|
|
59
|
+
var Ht = Ft, At = W, Pt = ie, Et = N, zt = ge, Zt = Ht, Ot = Ce;
|
|
60
|
+
function Rt(i, e, t) {
|
|
61
|
+
e = At(e, i);
|
|
62
62
|
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
63
|
-
var o =
|
|
63
|
+
var o = Ot(e[a]);
|
|
64
64
|
if (!(s = i != null && t(i, o)))
|
|
65
65
|
break;
|
|
66
66
|
i = i[o];
|
|
67
67
|
}
|
|
68
|
-
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n &&
|
|
68
|
+
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && Zt(n) && zt(o, n) && (Et(i) || Pt(i)));
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
return i != null &&
|
|
70
|
+
var Gt = Rt, Ut = _t, Wt = Gt;
|
|
71
|
+
function qt(i, e) {
|
|
72
|
+
return i != null && Wt(i, e, Ut);
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
return
|
|
77
|
-
return
|
|
74
|
+
var Nt = qt, jt = wt, Kt = Nt;
|
|
75
|
+
function Yt(i, e) {
|
|
76
|
+
return jt(i, e, function(t, a) {
|
|
77
|
+
return Kt(i, a);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
80
|
+
var Qt = Yt;
|
|
81
|
+
function Jt(i, e) {
|
|
82
82
|
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
83
83
|
i[n + t] = e[t];
|
|
84
84
|
return i;
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
function
|
|
88
|
-
return
|
|
86
|
+
var Xt = Jt, z = ve, e1 = ie, t1 = N, Z = z ? z.isConcatSpreadable : void 0;
|
|
87
|
+
function i1(i) {
|
|
88
|
+
return t1(i) || e1(i) || !!(Z && i && i[Z]);
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
90
|
+
var a1 = i1, n1 = Xt, s1 = a1;
|
|
91
|
+
function ae(i, e, t, a, n) {
|
|
92
92
|
var s = -1, o = i.length;
|
|
93
|
-
for (t || (t =
|
|
93
|
+
for (t || (t = s1), n || (n = []); ++s < o; ) {
|
|
94
94
|
var l = i[s];
|
|
95
|
-
e > 0 && t(l) ? e > 1 ?
|
|
95
|
+
e > 0 && t(l) ? e > 1 ? ae(l, e - 1, t, a, n) : n1(n, l) : a || (n[n.length] = l);
|
|
96
96
|
}
|
|
97
97
|
return n;
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
function
|
|
99
|
+
var o1 = ae, l1 = o1;
|
|
100
|
+
function r1(i) {
|
|
101
101
|
var e = i == null ? 0 : i.length;
|
|
102
|
-
return e ?
|
|
102
|
+
return e ? l1(i, 1) : [];
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var c1 = r1;
|
|
105
|
+
function d1(i, e, t) {
|
|
106
106
|
switch (t.length) {
|
|
107
107
|
case 0:
|
|
108
108
|
return i.call(e);
|
|
@@ -115,56 +115,56 @@ function rt(i, e, t) {
|
|
|
115
115
|
}
|
|
116
116
|
return i.apply(e, t);
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
return e =
|
|
121
|
-
for (var a = arguments, n = -1, s =
|
|
118
|
+
var p1 = d1, u1 = p1, O = Math.max;
|
|
119
|
+
function m1(i, e, t) {
|
|
120
|
+
return e = O(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
121
|
+
for (var a = arguments, n = -1, s = O(a.length - e, 0), o = Array(s); ++n < s; )
|
|
122
122
|
o[n] = a[e + n];
|
|
123
123
|
n = -1;
|
|
124
124
|
for (var l = Array(e + 1); ++n < e; )
|
|
125
125
|
l[n] = a[n];
|
|
126
|
-
return l[e] = t(o),
|
|
126
|
+
return l[e] = t(o), u1(i, this, l);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var h1 = m1;
|
|
130
|
+
function f1(i) {
|
|
131
131
|
return function() {
|
|
132
132
|
return i;
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var g1 = f1;
|
|
136
|
+
function C1(i) {
|
|
137
137
|
return i;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
140
|
-
return
|
|
139
|
+
var v1 = C1, y1 = g1, R = ye, x1 = v1, w1 = R ? function(i, e) {
|
|
140
|
+
return R(i, "toString", {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !1,
|
|
143
|
-
value:
|
|
143
|
+
value: y1(e),
|
|
144
144
|
writable: !0
|
|
145
145
|
});
|
|
146
|
-
} :
|
|
147
|
-
function
|
|
146
|
+
} : x1, b1 = w1, _1 = 800, k1 = 16, L1 = Date.now;
|
|
147
|
+
function $1(i) {
|
|
148
148
|
var e = 0, t = 0;
|
|
149
149
|
return function() {
|
|
150
|
-
var a =
|
|
150
|
+
var a = L1(), n = k1 - (a - t);
|
|
151
151
|
if (t = a, n > 0) {
|
|
152
|
-
if (++e >=
|
|
152
|
+
if (++e >= _1)
|
|
153
153
|
return arguments[0];
|
|
154
154
|
} else
|
|
155
155
|
e = 0;
|
|
156
156
|
return i.apply(void 0, arguments);
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
return
|
|
159
|
+
var S1 = $1, T1 = b1, D1 = S1, V1 = D1(T1), B1 = V1, M1 = c1, I1 = h1, F1 = B1;
|
|
160
|
+
function H1(i) {
|
|
161
|
+
return F1(I1(i, void 0, M1), i + "");
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
return i == null ? {} :
|
|
165
|
-
}),
|
|
166
|
-
const
|
|
167
|
-
const
|
|
163
|
+
var A1 = H1, P1 = Qt, E1 = A1, z1 = E1(function(i, e) {
|
|
164
|
+
return i == null ? {} : P1(i, e);
|
|
165
|
+
}), Z1 = z1;
|
|
166
|
+
const O1 = /* @__PURE__ */ j(Z1);
|
|
167
|
+
const R1 = {
|
|
168
168
|
i18nOptions: {
|
|
169
169
|
namespaces: "DocumentTemplateFormModal",
|
|
170
170
|
messages: {
|
|
@@ -217,7 +217,7 @@ const Zt = {
|
|
|
217
217
|
},
|
|
218
218
|
validations: {
|
|
219
219
|
name: {
|
|
220
|
-
required:
|
|
220
|
+
required: F.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
computed: {
|
|
@@ -298,7 +298,7 @@ const Zt = {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
|
-
var
|
|
301
|
+
var G1 = function() {
|
|
302
302
|
var e = this, t = e._self._c;
|
|
303
303
|
return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
|
|
304
304
|
e.name = a;
|
|
@@ -307,18 +307,18 @@ var Ot = function() {
|
|
|
307
307
|
}, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
|
|
308
308
|
e.keepClients = a;
|
|
309
309
|
}, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
|
|
310
|
-
},
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
}, U1 = [], W1 = /* @__PURE__ */ c(
|
|
311
|
+
R1,
|
|
312
|
+
G1,
|
|
313
|
+
U1,
|
|
314
314
|
!1,
|
|
315
315
|
null,
|
|
316
316
|
"9f39f8ce",
|
|
317
317
|
null,
|
|
318
318
|
null
|
|
319
319
|
);
|
|
320
|
-
const
|
|
321
|
-
function
|
|
320
|
+
const ne = W1.exports;
|
|
321
|
+
function q1(i, { availableProducts: e }) {
|
|
322
322
|
if (!i)
|
|
323
323
|
throw new Error("Missing parameter templateId");
|
|
324
324
|
const t = e, a = Object.keys(t).find((n) => {
|
|
@@ -331,10 +331,10 @@ function Ut(i, { availableProducts: e }) {
|
|
|
331
331
|
});
|
|
332
332
|
return a ? t[a] : null;
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
334
|
+
async function N1(i) {
|
|
335
335
|
if (!i)
|
|
336
336
|
throw new Error("Missing argument stripeProduct");
|
|
337
|
-
const e = i == null ? void 0 : i.prices[0], { data: t } = await
|
|
337
|
+
const e = i == null ? void 0 : i.prices[0], { data: t } = await xe.createCheckoutSession({
|
|
338
338
|
items: [
|
|
339
339
|
{
|
|
340
340
|
stripePriceStripeId: e.stripeId,
|
|
@@ -346,23 +346,23 @@ async function Wt(i) {
|
|
|
346
346
|
}), { redirectUrl: a } = t;
|
|
347
347
|
window.open(a, "_blank");
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function se(i, { availableProducts: e }) {
|
|
350
350
|
var n, s, o;
|
|
351
351
|
let t = null;
|
|
352
|
-
const a =
|
|
352
|
+
const a = q1(i.templateId, { availableProducts: e });
|
|
353
353
|
return a && (t = {
|
|
354
|
-
price:
|
|
354
|
+
price: K((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
|
|
355
355
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
356
|
-
onBuy: async () =>
|
|
356
|
+
onBuy: async () => N1(a)
|
|
357
357
|
}), t;
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const j1 = {
|
|
360
360
|
name: "GalleryTemplateModal",
|
|
361
361
|
components: {
|
|
362
|
-
simplebar:
|
|
363
|
-
DocumentLayout:
|
|
364
|
-
IsPremium:
|
|
365
|
-
IsPremiumPreStep:
|
|
362
|
+
simplebar: k,
|
|
363
|
+
DocumentLayout: Qe,
|
|
364
|
+
IsPremium: b,
|
|
365
|
+
IsPremiumPreStep: _
|
|
366
366
|
},
|
|
367
367
|
props: {
|
|
368
368
|
// Instance of template
|
|
@@ -429,7 +429,7 @@ const qt = {
|
|
|
429
429
|
stripeProducts: "stripe/products"
|
|
430
430
|
}),
|
|
431
431
|
previewDocument() {
|
|
432
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
432
|
+
const { data: i, defaultData: e } = this.template, t = new Y({
|
|
433
433
|
data: {
|
|
434
434
|
...e,
|
|
435
435
|
template: i,
|
|
@@ -442,7 +442,7 @@ const qt = {
|
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
444
|
created() {
|
|
445
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
445
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = we.on("event", async ({ type: i, action: e, data: t }) => {
|
|
446
446
|
var a;
|
|
447
447
|
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
448
448
|
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
@@ -453,7 +453,7 @@ const qt = {
|
|
|
453
453
|
isVisibleApp: !0,
|
|
454
454
|
includePurchaseInfo: !0
|
|
455
455
|
}, o = await this.fetchGallery(s);
|
|
456
|
-
this.privateProduct =
|
|
456
|
+
this.privateProduct = se(o[0], { availableProducts: this.stripeProducts });
|
|
457
457
|
}
|
|
458
458
|
}));
|
|
459
459
|
},
|
|
@@ -465,7 +465,7 @@ const qt = {
|
|
|
465
465
|
const i = this.template.id;
|
|
466
466
|
i || (this.templateStat = null);
|
|
467
467
|
try {
|
|
468
|
-
const { data: e } = await
|
|
468
|
+
const { data: e } = await be.get(i);
|
|
469
469
|
this.templateStat = e;
|
|
470
470
|
} catch {
|
|
471
471
|
this.templateStat = null;
|
|
@@ -482,7 +482,7 @@ const qt = {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
|
-
var
|
|
485
|
+
var K1 = function() {
|
|
486
486
|
var a;
|
|
487
487
|
var e = this, t = e._self._c;
|
|
488
488
|
return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
|
|
@@ -501,17 +501,17 @@ var Nt = function() {
|
|
|
501
501
|
} } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
502
502
|
} }], null, !0) })];
|
|
503
503
|
} }]) })], 2)])]);
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
504
|
+
}, Y1 = [], Q1 = /* @__PURE__ */ c(
|
|
505
|
+
j1,
|
|
506
|
+
K1,
|
|
507
|
+
Y1,
|
|
508
508
|
!1,
|
|
509
509
|
null,
|
|
510
510
|
"80ae04ae",
|
|
511
511
|
null,
|
|
512
512
|
null
|
|
513
513
|
);
|
|
514
|
-
const
|
|
514
|
+
const J1 = Q1.exports, X1 = {
|
|
515
515
|
name: "GalleryLogic",
|
|
516
516
|
i18nOptions: {
|
|
517
517
|
namespaces: "GalleryLogic",
|
|
@@ -624,7 +624,7 @@ const Yt = Kt.exports, Qt = {
|
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
626
|
beforeCreate() {
|
|
627
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
627
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ke);
|
|
628
628
|
},
|
|
629
629
|
async created() {
|
|
630
630
|
var e, t, a, n;
|
|
@@ -657,7 +657,7 @@ const Yt = Kt.exports, Qt = {
|
|
|
657
657
|
const e = await this.fetchGallery(i);
|
|
658
658
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
659
659
|
if (this.canPurchase && t.isPurchasable) {
|
|
660
|
-
const a =
|
|
660
|
+
const a = se(t, { availableProducts: this.stripeProducts });
|
|
661
661
|
a && (t.product = a);
|
|
662
662
|
}
|
|
663
663
|
return t;
|
|
@@ -676,7 +676,7 @@ const Yt = Kt.exports, Qt = {
|
|
|
676
676
|
isVisibleApp: !0,
|
|
677
677
|
includePurchaseInfo: !0
|
|
678
678
|
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
679
|
-
return a ? (
|
|
679
|
+
return a ? (_e(a), new ke(a)) : null;
|
|
680
680
|
},
|
|
681
681
|
onUseTemplate(i) {
|
|
682
682
|
if (!i)
|
|
@@ -699,7 +699,7 @@ const Yt = Kt.exports, Qt = {
|
|
|
699
699
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
700
700
|
};
|
|
701
701
|
this.$modal.show(
|
|
702
|
-
|
|
702
|
+
J1,
|
|
703
703
|
{
|
|
704
704
|
template: i,
|
|
705
705
|
fetchGallery: this.fetchGallery,
|
|
@@ -754,30 +754,30 @@ const Yt = Kt.exports, Qt = {
|
|
|
754
754
|
selectGalleryItem: this.selectGalleryItem
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
|
-
},
|
|
758
|
-
var
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
757
|
+
}, e2 = null, t2 = null;
|
|
758
|
+
var i2 = /* @__PURE__ */ c(
|
|
759
|
+
X1,
|
|
760
|
+
e2,
|
|
761
|
+
t2,
|
|
762
762
|
!1,
|
|
763
763
|
null,
|
|
764
764
|
null,
|
|
765
765
|
null,
|
|
766
766
|
null
|
|
767
767
|
);
|
|
768
|
-
const
|
|
769
|
-
const
|
|
768
|
+
const a2 = i2.exports;
|
|
769
|
+
const n2 = {
|
|
770
770
|
name: "DocumentIcon",
|
|
771
|
-
truncate:
|
|
771
|
+
truncate: Le,
|
|
772
772
|
inject: {
|
|
773
773
|
components: {
|
|
774
774
|
default: {
|
|
775
|
-
BlockMedia:
|
|
775
|
+
BlockMedia: at
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
var
|
|
780
|
+
var s2 = function(e, t) {
|
|
781
781
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
782
782
|
t.data.staticClass,
|
|
783
783
|
t.data.class,
|
|
@@ -791,21 +791,21 @@ var a2 = function(e, t) {
|
|
|
791
791
|
} } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
|
|
792
792
|
backgroundImage: `url(${t.props.thumbnail})`
|
|
793
793
|
} }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
|
|
794
|
-
},
|
|
795
|
-
i2,
|
|
796
|
-
a2,
|
|
794
|
+
}, o2 = [], l2 = /* @__PURE__ */ c(
|
|
797
795
|
n2,
|
|
796
|
+
s2,
|
|
797
|
+
o2,
|
|
798
798
|
!0,
|
|
799
799
|
null,
|
|
800
800
|
"7ebb1c9a",
|
|
801
801
|
null,
|
|
802
802
|
null
|
|
803
803
|
);
|
|
804
|
-
const
|
|
805
|
-
const
|
|
804
|
+
const r2 = l2.exports;
|
|
805
|
+
const c2 = {
|
|
806
806
|
name: "HorizontalScroll",
|
|
807
807
|
components: {
|
|
808
|
-
Simplebar:
|
|
808
|
+
Simplebar: k
|
|
809
809
|
},
|
|
810
810
|
data() {
|
|
811
811
|
return {
|
|
@@ -849,7 +849,7 @@ const l2 = {
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
};
|
|
852
|
-
var
|
|
852
|
+
var d2 = function() {
|
|
853
853
|
var e = this, t = e._self._c;
|
|
854
854
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
|
|
855
855
|
return e.go(-1);
|
|
@@ -862,18 +862,18 @@ var r2 = function() {
|
|
|
862
862
|
return e.$emit("expand");
|
|
863
863
|
} } })];
|
|
864
864
|
})], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
|
|
865
|
-
},
|
|
866
|
-
l2,
|
|
867
|
-
r2,
|
|
865
|
+
}, p2 = [], u2 = /* @__PURE__ */ c(
|
|
868
866
|
c2,
|
|
867
|
+
d2,
|
|
868
|
+
p2,
|
|
869
869
|
!1,
|
|
870
870
|
null,
|
|
871
871
|
"15f25c8e",
|
|
872
872
|
null,
|
|
873
873
|
null
|
|
874
874
|
);
|
|
875
|
-
const
|
|
876
|
-
const
|
|
875
|
+
const m2 = u2.exports;
|
|
876
|
+
const h2 = {
|
|
877
877
|
name: "DocumentFormRecent",
|
|
878
878
|
i18nOptions: {
|
|
879
879
|
namespaces: "DocumentFormRecent",
|
|
@@ -889,8 +889,8 @@ const u2 = {
|
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
891
|
components: {
|
|
892
|
-
IsPremium:
|
|
893
|
-
IsPremiumPreStep:
|
|
892
|
+
IsPremium: b,
|
|
893
|
+
IsPremiumPreStep: _
|
|
894
894
|
},
|
|
895
895
|
data() {
|
|
896
896
|
return {
|
|
@@ -919,7 +919,7 @@ const u2 = {
|
|
|
919
919
|
async fetchDocuments(i) {
|
|
920
920
|
const e = this.query ? 180 : 90, t = {
|
|
921
921
|
createdAt: {
|
|
922
|
-
$gte: this.$formatDate(
|
|
922
|
+
$gte: this.$formatDate($e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
923
923
|
},
|
|
924
924
|
// Only provide or if there is a search query to filter on
|
|
925
925
|
...this.query && {
|
|
@@ -934,7 +934,7 @@ const u2 = {
|
|
|
934
934
|
}
|
|
935
935
|
]
|
|
936
936
|
}
|
|
937
|
-
}, { data: a } = await
|
|
937
|
+
}, { data: a } = await Se.getAll({
|
|
938
938
|
lean: !0,
|
|
939
939
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
940
940
|
fields: "clients,data.name,createdAt",
|
|
@@ -944,7 +944,7 @@ const u2 = {
|
|
|
944
944
|
}), { items: n = [] } = a || {};
|
|
945
945
|
return n;
|
|
946
946
|
},
|
|
947
|
-
onLoadDocuments:
|
|
947
|
+
onLoadDocuments: A(async function() {
|
|
948
948
|
this.isLoading = !0, this.hasItems = !0;
|
|
949
949
|
const e = await this.fetchDocuments();
|
|
950
950
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -959,7 +959,7 @@ const u2 = {
|
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
|
-
var
|
|
962
|
+
var f2 = function() {
|
|
963
963
|
var e = this, t = e._self._c;
|
|
964
964
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
|
|
965
965
|
e.query = a;
|
|
@@ -986,18 +986,18 @@ var m2 = function() {
|
|
|
986
986
|
}), 0)];
|
|
987
987
|
} }], null, !0) })];
|
|
988
988
|
} }]) })]], 2)]);
|
|
989
|
-
},
|
|
990
|
-
u2,
|
|
991
|
-
m2,
|
|
989
|
+
}, g2 = [], C2 = /* @__PURE__ */ c(
|
|
992
990
|
h2,
|
|
991
|
+
f2,
|
|
992
|
+
g2,
|
|
993
993
|
!1,
|
|
994
994
|
null,
|
|
995
995
|
"6746edc1",
|
|
996
996
|
null,
|
|
997
997
|
null
|
|
998
998
|
);
|
|
999
|
-
const
|
|
1000
|
-
const
|
|
999
|
+
const v2 = C2.exports;
|
|
1000
|
+
const y2 = {
|
|
1001
1001
|
i18nOptions: {
|
|
1002
1002
|
namespaces: "TemplateSelector",
|
|
1003
1003
|
messages: {
|
|
@@ -1040,13 +1040,13 @@ const C2 = {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
},
|
|
1042
1042
|
name: "TemplateSelector",
|
|
1043
|
-
mixins: [
|
|
1043
|
+
mixins: [$],
|
|
1044
1044
|
components: {
|
|
1045
|
-
HorizontalScroll:
|
|
1046
|
-
DocumentIcon:
|
|
1047
|
-
DocumentRecent:
|
|
1048
|
-
GalleryLogic:
|
|
1049
|
-
IsPremiumPreStep:
|
|
1045
|
+
HorizontalScroll: m2,
|
|
1046
|
+
DocumentIcon: r2,
|
|
1047
|
+
DocumentRecent: v2,
|
|
1048
|
+
GalleryLogic: a2,
|
|
1049
|
+
IsPremiumPreStep: _
|
|
1050
1050
|
},
|
|
1051
1051
|
props: {
|
|
1052
1052
|
// Used for creating documents form project/client views
|
|
@@ -1157,7 +1157,7 @@ const C2 = {
|
|
|
1157
1157
|
},
|
|
1158
1158
|
async saveTemplate(i) {
|
|
1159
1159
|
try {
|
|
1160
|
-
const { data: e } = i, t =
|
|
1160
|
+
const { data: e } = i, t = Te(e, ["_id", "id", "companyId", "isVisible"]);
|
|
1161
1161
|
return await this.createTemplate({ body: t }), !0;
|
|
1162
1162
|
} catch (e) {
|
|
1163
1163
|
T(e);
|
|
@@ -1166,7 +1166,7 @@ const C2 = {
|
|
|
1166
1166
|
},
|
|
1167
1167
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
1168
1168
|
this.$modal.show(
|
|
1169
|
-
|
|
1169
|
+
ne,
|
|
1170
1170
|
{
|
|
1171
1171
|
document: i,
|
|
1172
1172
|
template: e,
|
|
@@ -1183,7 +1183,7 @@ const C2 = {
|
|
|
1183
1183
|
);
|
|
1184
1184
|
},
|
|
1185
1185
|
async fetchGallery(i = {}) {
|
|
1186
|
-
const { data: e } = await
|
|
1186
|
+
const { data: e } = await De.get(i);
|
|
1187
1187
|
return e;
|
|
1188
1188
|
},
|
|
1189
1189
|
canUseTemplate(i) {
|
|
@@ -1191,7 +1191,7 @@ const C2 = {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
1194
|
-
var
|
|
1194
|
+
var x2 = function() {
|
|
1195
1195
|
var e = this, t = e._self._c;
|
|
1196
1196
|
return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
1197
1197
|
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
@@ -1236,18 +1236,18 @@ var v2 = function() {
|
|
|
1236
1236
|
} } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
|
|
1237
1237
|
}), 1)], 1)];
|
|
1238
1238
|
} }], null, !1, 4229824708) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
|
|
1239
|
-
},
|
|
1240
|
-
C2,
|
|
1241
|
-
v2,
|
|
1239
|
+
}, w2 = [], b2 = /* @__PURE__ */ c(
|
|
1242
1240
|
y2,
|
|
1241
|
+
x2,
|
|
1242
|
+
w2,
|
|
1243
1243
|
!1,
|
|
1244
1244
|
null,
|
|
1245
1245
|
"da389d44",
|
|
1246
1246
|
null,
|
|
1247
1247
|
null
|
|
1248
1248
|
);
|
|
1249
|
-
const
|
|
1250
|
-
const
|
|
1249
|
+
const _2 = b2.exports;
|
|
1250
|
+
const k2 = (i) => {
|
|
1251
1251
|
const e = Array(2).fill().map(() => d());
|
|
1252
1252
|
return [
|
|
1253
1253
|
{
|
|
@@ -1269,7 +1269,7 @@ const b2 = (i) => {
|
|
|
1269
1269
|
nodeId: e[1]
|
|
1270
1270
|
}
|
|
1271
1271
|
];
|
|
1272
|
-
},
|
|
1272
|
+
}, L2 = (i, e = "en") => [
|
|
1273
1273
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
|
|
1274
1274
|
{
|
|
1275
1275
|
key: `files-${i}`,
|
|
@@ -1278,13 +1278,13 @@ const b2 = (i) => {
|
|
|
1278
1278
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
],
|
|
1281
|
+
], $2 = ({ document: i = null }) => {
|
|
1282
1282
|
const e = d(), { language: t } = i || {};
|
|
1283
1283
|
return {
|
|
1284
|
-
readView:
|
|
1285
|
-
validation:
|
|
1284
|
+
readView: k2(e),
|
|
1285
|
+
validation: L2(e, t)
|
|
1286
1286
|
};
|
|
1287
|
-
},
|
|
1287
|
+
}, S2 = () => [
|
|
1288
1288
|
{
|
|
1289
1289
|
itemId: "presentation",
|
|
1290
1290
|
itemType: "presentation",
|
|
@@ -1292,11 +1292,11 @@ const b2 = (i) => {
|
|
|
1292
1292
|
parentId: "0",
|
|
1293
1293
|
nodeId: d()
|
|
1294
1294
|
}
|
|
1295
|
-
],
|
|
1296
|
-
readView:
|
|
1295
|
+
], T2 = () => ({
|
|
1296
|
+
readView: S2(),
|
|
1297
1297
|
validation: []
|
|
1298
1298
|
// all relevant data is either within base doc or company settings etc
|
|
1299
|
-
}),
|
|
1299
|
+
}), D2 = () => {
|
|
1300
1300
|
const i = Array(2).fill().map(() => d());
|
|
1301
1301
|
return [
|
|
1302
1302
|
{
|
|
@@ -1319,19 +1319,19 @@ const b2 = (i) => {
|
|
|
1319
1319
|
// uniqid(),
|
|
1320
1320
|
}
|
|
1321
1321
|
];
|
|
1322
|
-
},
|
|
1322
|
+
}, V2 = (i = "en") => [
|
|
1323
1323
|
{
|
|
1324
1324
|
key: "multiGroupPricing-title",
|
|
1325
1325
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1326
1326
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1327
1327
|
}
|
|
1328
|
-
],
|
|
1328
|
+
], B2 = ({ document: i = null }) => {
|
|
1329
1329
|
const { language: e } = i || {};
|
|
1330
1330
|
return {
|
|
1331
|
-
readView:
|
|
1332
|
-
validation:
|
|
1331
|
+
readView: D2(),
|
|
1332
|
+
validation: V2(e)
|
|
1333
1333
|
};
|
|
1334
|
-
},
|
|
1334
|
+
}, M2 = () => [
|
|
1335
1335
|
{
|
|
1336
1336
|
itemId: "terms",
|
|
1337
1337
|
itemType: "termsDisclaimer",
|
|
@@ -1349,7 +1349,7 @@ const b2 = (i) => {
|
|
|
1349
1349
|
parentId: "0",
|
|
1350
1350
|
nodeId: d()
|
|
1351
1351
|
}
|
|
1352
|
-
],
|
|
1352
|
+
], I2 = () => [
|
|
1353
1353
|
{
|
|
1354
1354
|
key: "terms",
|
|
1355
1355
|
anyOf: [
|
|
@@ -1357,10 +1357,10 @@ const b2 = (i) => {
|
|
|
1357
1357
|
{ type: "null" }
|
|
1358
1358
|
]
|
|
1359
1359
|
}
|
|
1360
|
-
],
|
|
1361
|
-
readView:
|
|
1362
|
-
validation:
|
|
1363
|
-
}),
|
|
1360
|
+
], F2 = () => ({
|
|
1361
|
+
readView: M2(),
|
|
1362
|
+
validation: I2()
|
|
1363
|
+
}), H2 = () => {
|
|
1364
1364
|
const i = Array(5).fill().map(() => d());
|
|
1365
1365
|
return [
|
|
1366
1366
|
{
|
|
@@ -1409,7 +1409,7 @@ const b2 = (i) => {
|
|
|
1409
1409
|
nodeId: i[4]
|
|
1410
1410
|
}
|
|
1411
1411
|
];
|
|
1412
|
-
},
|
|
1412
|
+
}, A2 = () => ({
|
|
1413
1413
|
clients: [{
|
|
1414
1414
|
name: "Pernilla P.",
|
|
1415
1415
|
email: "pernilla@mail.se",
|
|
@@ -1419,20 +1419,20 @@ const b2 = (i) => {
|
|
|
1419
1419
|
deliveryTypes: ["email"],
|
|
1420
1420
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1421
1421
|
}]
|
|
1422
|
-
}),
|
|
1422
|
+
}), P2 = (i = "en") => [
|
|
1423
1423
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1424
1424
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1425
1425
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1426
|
-
],
|
|
1426
|
+
], E2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1427
1427
|
const { language: a } = e || {};
|
|
1428
1428
|
let n = null;
|
|
1429
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1430
|
-
readView:
|
|
1431
|
-
validation:
|
|
1429
|
+
return typeof t == "function" ? n = t() : i && (n = A2()), {
|
|
1430
|
+
readView: H2(),
|
|
1431
|
+
validation: P2(a),
|
|
1432
1432
|
// Client / company will for now always exist on doc and in validation
|
|
1433
1433
|
...n && { data: n }
|
|
1434
1434
|
};
|
|
1435
|
-
},
|
|
1435
|
+
}, z2 = (i) => {
|
|
1436
1436
|
const e = Array(3).fill().map(() => d());
|
|
1437
1437
|
return [
|
|
1438
1438
|
{
|
|
@@ -1461,7 +1461,7 @@ const b2 = (i) => {
|
|
|
1461
1461
|
nodeId: e[2]
|
|
1462
1462
|
}
|
|
1463
1463
|
];
|
|
1464
|
-
},
|
|
1464
|
+
}, Z2 = (i) => [
|
|
1465
1465
|
{
|
|
1466
1466
|
key: `estimatedTimeComplete-${i}`,
|
|
1467
1467
|
type: "object",
|
|
@@ -1482,20 +1482,20 @@ const b2 = (i) => {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
|
-
],
|
|
1485
|
+
], O2 = (i) => ({
|
|
1486
1486
|
[`estimatedTimeComplete-${i}`]: {
|
|
1487
1487
|
value: 4,
|
|
1488
1488
|
unitType: "hour"
|
|
1489
1489
|
}
|
|
1490
|
-
}),
|
|
1490
|
+
}), R2 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1491
1491
|
const t = d();
|
|
1492
1492
|
let a = null;
|
|
1493
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1494
|
-
readView:
|
|
1495
|
-
validation:
|
|
1493
|
+
return typeof e == "function" ? a = e(t) : i && (a = O2(t)), {
|
|
1494
|
+
readView: z2(t),
|
|
1495
|
+
validation: Z2(t),
|
|
1496
1496
|
...a && { data: a }
|
|
1497
1497
|
};
|
|
1498
|
-
},
|
|
1498
|
+
}, G2 = () => {
|
|
1499
1499
|
const i = Array(3).fill().map(() => d());
|
|
1500
1500
|
return [
|
|
1501
1501
|
{
|
|
@@ -1529,7 +1529,7 @@ const b2 = (i) => {
|
|
|
1529
1529
|
nodeId: i[2]
|
|
1530
1530
|
}
|
|
1531
1531
|
];
|
|
1532
|
-
},
|
|
1532
|
+
}, U2 = () => [
|
|
1533
1533
|
{
|
|
1534
1534
|
key: "estimatedWorkDates",
|
|
1535
1535
|
type: "object",
|
|
@@ -1538,10 +1538,10 @@ const b2 = (i) => {
|
|
|
1538
1538
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
-
],
|
|
1542
|
-
readView:
|
|
1543
|
-
validation:
|
|
1544
|
-
}),
|
|
1541
|
+
], W2 = () => ({
|
|
1542
|
+
readView: G2(),
|
|
1543
|
+
validation: U2()
|
|
1544
|
+
}), q2 = () => {
|
|
1545
1545
|
const i = Array(5).fill().map(() => d());
|
|
1546
1546
|
return [
|
|
1547
1547
|
{
|
|
@@ -1607,7 +1607,7 @@ const b2 = (i) => {
|
|
|
1607
1607
|
nodeId: i[4]
|
|
1608
1608
|
}
|
|
1609
1609
|
];
|
|
1610
|
-
},
|
|
1610
|
+
}, N2 = () => [
|
|
1611
1611
|
{
|
|
1612
1612
|
key: "extraWorkConstruction",
|
|
1613
1613
|
extraWorkConstruction: {
|
|
@@ -1631,11 +1631,11 @@ const b2 = (i) => {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
|
-
],
|
|
1635
|
-
readView:
|
|
1636
|
-
validation:
|
|
1634
|
+
], j2 = () => ({
|
|
1635
|
+
readView: q2(),
|
|
1636
|
+
validation: N2()
|
|
1637
1637
|
// Client / company will for now always exist on doc and in validation
|
|
1638
|
-
}),
|
|
1638
|
+
}), K2 = () => {
|
|
1639
1639
|
const i = Array(3).fill().map(() => d());
|
|
1640
1640
|
return [
|
|
1641
1641
|
{
|
|
@@ -1675,7 +1675,7 @@ const b2 = (i) => {
|
|
|
1675
1675
|
nodeId: i[2]
|
|
1676
1676
|
}
|
|
1677
1677
|
];
|
|
1678
|
-
},
|
|
1678
|
+
}, Y2 = () => [
|
|
1679
1679
|
{
|
|
1680
1680
|
key: "extraWorkTimeImpact",
|
|
1681
1681
|
anyOf: [
|
|
@@ -1699,10 +1699,10 @@ const b2 = (i) => {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
]
|
|
1701
1701
|
}
|
|
1702
|
-
],
|
|
1703
|
-
readView:
|
|
1704
|
-
validation:
|
|
1705
|
-
}),
|
|
1702
|
+
], Q2 = () => ({
|
|
1703
|
+
readView: K2(),
|
|
1704
|
+
validation: Y2()
|
|
1705
|
+
}), J2 = () => {
|
|
1706
1706
|
const i = Array(5).fill().map(() => d());
|
|
1707
1707
|
return [
|
|
1708
1708
|
{
|
|
@@ -1755,13 +1755,13 @@ const b2 = (i) => {
|
|
|
1755
1755
|
nodeId: i[4]
|
|
1756
1756
|
}
|
|
1757
1757
|
];
|
|
1758
|
-
},
|
|
1758
|
+
}, X2 = () => [
|
|
1759
1759
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1760
1760
|
{ key: "notBinding", type: "boolean" }
|
|
1761
|
-
],
|
|
1762
|
-
readView:
|
|
1763
|
-
validation:
|
|
1764
|
-
}),
|
|
1761
|
+
], ei = () => ({
|
|
1762
|
+
readView: J2(),
|
|
1763
|
+
validation: X2()
|
|
1764
|
+
}), ti = (i) => {
|
|
1765
1765
|
const e = Array(2).fill().map(() => d());
|
|
1766
1766
|
return [
|
|
1767
1767
|
{
|
|
@@ -1783,22 +1783,22 @@ const b2 = (i) => {
|
|
|
1783
1783
|
nodeId: e[1]
|
|
1784
1784
|
}
|
|
1785
1785
|
];
|
|
1786
|
-
},
|
|
1786
|
+
}, ii = (i) => [
|
|
1787
1787
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1788
1788
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1789
|
-
],
|
|
1789
|
+
], ai = (i) => ({
|
|
1790
1790
|
[`data.title-${i}`]: "My custom text",
|
|
1791
1791
|
[`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
|
|
1792
|
-
}),
|
|
1792
|
+
}), ni = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1793
1793
|
const t = d();
|
|
1794
1794
|
let a = null;
|
|
1795
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1796
|
-
readView:
|
|
1797
|
-
validation:
|
|
1795
|
+
return typeof e == "function" ? a = e(t) : i && (a = ai(t)), {
|
|
1796
|
+
readView: ti(t),
|
|
1797
|
+
validation: ii(t),
|
|
1798
1798
|
...a && { data: a },
|
|
1799
1799
|
onAddFnName: "conditionalOnAdd"
|
|
1800
1800
|
};
|
|
1801
|
-
},
|
|
1801
|
+
}, si = (i) => [
|
|
1802
1802
|
{
|
|
1803
1803
|
itemId: "coverBlock",
|
|
1804
1804
|
itemType: "coverBlock",
|
|
@@ -1808,7 +1808,7 @@ const b2 = (i) => {
|
|
|
1808
1808
|
parentId: "0",
|
|
1809
1809
|
nodeId: d()
|
|
1810
1810
|
}
|
|
1811
|
-
],
|
|
1811
|
+
], oi = (i, e = "en") => [
|
|
1812
1812
|
{
|
|
1813
1813
|
key: `coverBlock-${i}`,
|
|
1814
1814
|
defaultValue: {
|
|
@@ -1825,7 +1825,7 @@ const b2 = (i) => {
|
|
|
1825
1825
|
},
|
|
1826
1826
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1827
1827
|
}
|
|
1828
|
-
],
|
|
1828
|
+
], li = (i) => ({
|
|
1829
1829
|
[`data.coverBlock-${i}`]: {
|
|
1830
1830
|
text: "<h1>We know communication</h1>",
|
|
1831
1831
|
cover: {
|
|
@@ -1835,15 +1835,15 @@ const b2 = (i) => {
|
|
|
1835
1835
|
blur: 0
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
|
-
}),
|
|
1838
|
+
}), ri = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1839
1839
|
const a = d(), { language: n } = e || {};
|
|
1840
1840
|
let s = null;
|
|
1841
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1842
|
-
readView:
|
|
1843
|
-
validation:
|
|
1841
|
+
return typeof t == "function" ? s = t(a) : i && (s = li(a)), {
|
|
1842
|
+
readView: si(a),
|
|
1843
|
+
validation: oi(a, n),
|
|
1844
1844
|
...s && { data: s }
|
|
1845
1845
|
};
|
|
1846
|
-
},
|
|
1846
|
+
}, ci = ({ language: i = "en" } = {}) => {
|
|
1847
1847
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1848
1848
|
lng: i
|
|
1849
1849
|
});
|
|
@@ -1988,7 +1988,7 @@ const b2 = (i) => {
|
|
|
1988
1988
|
})
|
|
1989
1989
|
}
|
|
1990
1990
|
];
|
|
1991
|
-
},
|
|
1991
|
+
}, di = (i) => [
|
|
1992
1992
|
{
|
|
1993
1993
|
itemId: `header-${i}`,
|
|
1994
1994
|
itemType: "header",
|
|
@@ -1998,7 +1998,7 @@ const b2 = (i) => {
|
|
|
1998
1998
|
parentId: "0",
|
|
1999
1999
|
nodeId: d()
|
|
2000
2000
|
}
|
|
2001
|
-
],
|
|
2001
|
+
], pi = (i, e = null) => {
|
|
2002
2002
|
const {
|
|
2003
2003
|
language: t = "en",
|
|
2004
2004
|
name: a = "",
|
|
@@ -2009,7 +2009,7 @@ const b2 = (i) => {
|
|
|
2009
2009
|
background: o,
|
|
2010
2010
|
priceSummaryBackground: l,
|
|
2011
2011
|
backgroundFilter: r
|
|
2012
|
-
} = n || {}, p = l || "hsl(228, 52%, 18%)", C =
|
|
2012
|
+
} = n || {}, p = l || "hsl(228, 52%, 18%)", C = ot.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
2013
2013
|
return [
|
|
2014
2014
|
{
|
|
2015
2015
|
key: `header-${i}`,
|
|
@@ -2050,7 +2050,7 @@ const b2 = (i) => {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
}
|
|
2052
2052
|
];
|
|
2053
|
-
},
|
|
2053
|
+
}, ui = (i) => ({
|
|
2054
2054
|
[`data.header-${i}`]: {
|
|
2055
2055
|
layout: "vertical",
|
|
2056
2056
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -2080,15 +2080,15 @@ const b2 = (i) => {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
]
|
|
2082
2082
|
}
|
|
2083
|
-
}),
|
|
2083
|
+
}), mi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
2084
2084
|
const a = d();
|
|
2085
2085
|
let n = null;
|
|
2086
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2087
|
-
readView:
|
|
2088
|
-
validation:
|
|
2086
|
+
return typeof t == "function" ? n = t(a) : i && (n = ui(a)), {
|
|
2087
|
+
readView: di(a),
|
|
2088
|
+
validation: pi(a, e),
|
|
2089
2089
|
...n && { data: n }
|
|
2090
2090
|
};
|
|
2091
|
-
},
|
|
2091
|
+
}, hi = ({ language: i = "en" } = {}) => {
|
|
2092
2092
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
2093
2093
|
lng: i,
|
|
2094
2094
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2388,7 +2388,7 @@ h.loadOptions({
|
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
|
-
const
|
|
2391
|
+
const fi = (i) => {
|
|
2392
2392
|
const e = Array(2).fill().map(() => d());
|
|
2393
2393
|
return [
|
|
2394
2394
|
{
|
|
@@ -2413,7 +2413,7 @@ const mi = (i) => {
|
|
|
2413
2413
|
nodeId: e[1]
|
|
2414
2414
|
}
|
|
2415
2415
|
];
|
|
2416
|
-
},
|
|
2416
|
+
}, gi = (i, e = "en") => [
|
|
2417
2417
|
{
|
|
2418
2418
|
key: `packageGroups.${i}`,
|
|
2419
2419
|
validationKey: "packageGroups",
|
|
@@ -2433,11 +2433,11 @@ const mi = (i) => {
|
|
|
2433
2433
|
},
|
|
2434
2434
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2435
2435
|
}
|
|
2436
|
-
],
|
|
2436
|
+
], Ci = () => null, vi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2437
2437
|
const a = d(), { language: n } = e || {};
|
|
2438
2438
|
let s = null;
|
|
2439
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2440
|
-
const o =
|
|
2439
|
+
typeof t == "function" ? s = t(a) : i && (s = Ci());
|
|
2440
|
+
const o = fi(a), l = gi(a, n);
|
|
2441
2441
|
return {
|
|
2442
2442
|
readView: o,
|
|
2443
2443
|
validation: l,
|
|
@@ -2529,7 +2529,7 @@ h.loadOptions({
|
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
});
|
|
2532
|
-
const
|
|
2532
|
+
const yi = ({
|
|
2533
2533
|
language: i = "en",
|
|
2534
2534
|
currency: e = "USD",
|
|
2535
2535
|
_getters: t,
|
|
@@ -2886,7 +2886,7 @@ const Ci = ({
|
|
|
2886
2886
|
}
|
|
2887
2887
|
}
|
|
2888
2888
|
];
|
|
2889
|
-
},
|
|
2889
|
+
}, xi = (i) => [
|
|
2890
2890
|
{
|
|
2891
2891
|
itemId: "embed",
|
|
2892
2892
|
itemType: "embed",
|
|
@@ -2900,7 +2900,7 @@ const Ci = ({
|
|
|
2900
2900
|
parentId: "0",
|
|
2901
2901
|
nodeId: d()
|
|
2902
2902
|
}
|
|
2903
|
-
],
|
|
2903
|
+
], wi = (i) => [
|
|
2904
2904
|
{
|
|
2905
2905
|
key: `embed-${i}`,
|
|
2906
2906
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2909,12 +2909,12 @@ const Ci = ({
|
|
|
2909
2909
|
size: "small"
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
],
|
|
2912
|
+
], bi = () => null, _i = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2913
2913
|
const a = d();
|
|
2914
2914
|
let n = null;
|
|
2915
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2916
|
-
readView:
|
|
2917
|
-
validation:
|
|
2915
|
+
return typeof t == "function" ? n = t(a) : i && (n = bi()), {
|
|
2916
|
+
readView: xi(a),
|
|
2917
|
+
validation: wi(a),
|
|
2918
2918
|
...n && { data: n }
|
|
2919
2919
|
};
|
|
2920
2920
|
};
|
|
@@ -2929,7 +2929,7 @@ h.loadOptions({
|
|
|
2929
2929
|
}
|
|
2930
2930
|
}
|
|
2931
2931
|
});
|
|
2932
|
-
const
|
|
2932
|
+
const ki = ({ language: i = "en" } = {}) => [
|
|
2933
2933
|
{
|
|
2934
2934
|
previewUrl: `
|
|
2935
2935
|
<div style="position: relative;">
|
|
@@ -3221,7 +3221,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3221
3221
|
}
|
|
3222
3222
|
})
|
|
3223
3223
|
}
|
|
3224
|
-
],
|
|
3224
|
+
], Li = (i) => [
|
|
3225
3225
|
{
|
|
3226
3226
|
itemId: "videoPlayer",
|
|
3227
3227
|
itemType: "videoPlayer",
|
|
@@ -3234,7 +3234,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3234
3234
|
parentId: "0",
|
|
3235
3235
|
nodeId: d()
|
|
3236
3236
|
}
|
|
3237
|
-
],
|
|
3237
|
+
], $i = (i) => [
|
|
3238
3238
|
{
|
|
3239
3239
|
key: `video-${i}`,
|
|
3240
3240
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3245,7 +3245,7 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3245
3245
|
}
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
|
-
],
|
|
3248
|
+
], Si = (i) => ({
|
|
3249
3249
|
[`data.video-${i}`]: {
|
|
3250
3250
|
size: "small",
|
|
3251
3251
|
video: {
|
|
@@ -3254,15 +3254,15 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3254
3254
|
id: "166JEb6qkr4"
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
-
}),
|
|
3257
|
+
}), Ti = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3258
3258
|
const t = d();
|
|
3259
3259
|
let a = null;
|
|
3260
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3261
|
-
readView:
|
|
3262
|
-
validation:
|
|
3260
|
+
return typeof e == "function" ? a = e(t) : i && (a = Si(t)), {
|
|
3261
|
+
readView: Li(t),
|
|
3262
|
+
validation: $i(t),
|
|
3263
3263
|
...a && { data: a }
|
|
3264
3264
|
};
|
|
3265
|
-
},
|
|
3265
|
+
}, Di = ({ language: i = "en" } = {}) => [
|
|
3266
3266
|
{
|
|
3267
3267
|
previewUrl: `
|
|
3268
3268
|
<div style="position: relative;">
|
|
@@ -3464,34 +3464,34 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3464
3464
|
})
|
|
3465
3465
|
}
|
|
3466
3466
|
], G = {
|
|
3467
|
-
titleAndText2:
|
|
3468
|
-
attachments2:
|
|
3469
|
-
pdf:
|
|
3470
|
-
packageGroup:
|
|
3471
|
-
multiGroupPricing:
|
|
3472
|
-
coverBlock:
|
|
3473
|
-
videoPlayer:
|
|
3474
|
-
embed:
|
|
3475
|
-
header:
|
|
3476
|
-
answer:
|
|
3477
|
-
terms:
|
|
3478
|
-
parties:
|
|
3479
|
-
custom:
|
|
3467
|
+
titleAndText2: ni,
|
|
3468
|
+
attachments2: $2,
|
|
3469
|
+
pdf: Ve,
|
|
3470
|
+
packageGroup: vi,
|
|
3471
|
+
multiGroupPricing: B2,
|
|
3472
|
+
coverBlock: ri,
|
|
3473
|
+
videoPlayer: Ti,
|
|
3474
|
+
embed: _i,
|
|
3475
|
+
header: mi,
|
|
3476
|
+
answer: Be,
|
|
3477
|
+
terms: F2,
|
|
3478
|
+
parties: E2,
|
|
3479
|
+
custom: st,
|
|
3480
3480
|
// legacy
|
|
3481
|
-
presentation:
|
|
3482
|
-
estimatedTimeCompleted:
|
|
3483
|
-
estimatedWorkStartAndEndAtText:
|
|
3484
|
-
extraWorkConstructionPricingList:
|
|
3485
|
-
extraWorkTimeImpactText:
|
|
3486
|
-
notBinding:
|
|
3487
|
-
},
|
|
3488
|
-
coverBlock:
|
|
3489
|
-
header:
|
|
3490
|
-
packageGroup:
|
|
3491
|
-
embed:
|
|
3492
|
-
videoPlayer:
|
|
3493
|
-
custom:
|
|
3494
|
-
},
|
|
3481
|
+
presentation: T2,
|
|
3482
|
+
estimatedTimeCompleted: R2,
|
|
3483
|
+
estimatedWorkStartAndEndAtText: W2,
|
|
3484
|
+
extraWorkConstructionPricingList: j2,
|
|
3485
|
+
extraWorkTimeImpactText: Q2,
|
|
3486
|
+
notBinding: ei
|
|
3487
|
+
}, U = {
|
|
3488
|
+
coverBlock: ci,
|
|
3489
|
+
header: hi,
|
|
3490
|
+
packageGroup: yi,
|
|
3491
|
+
embed: ki,
|
|
3492
|
+
videoPlayer: Di,
|
|
3493
|
+
custom: nt
|
|
3494
|
+
}, Vi = {
|
|
3495
3495
|
name: "AddBlock",
|
|
3496
3496
|
props: {
|
|
3497
3497
|
set: {
|
|
@@ -3505,29 +3505,29 @@ const bi = ({ language: i = "en" } = {}) => [
|
|
|
3505
3505
|
},
|
|
3506
3506
|
render() {
|
|
3507
3507
|
return this.$scopedSlots.default({
|
|
3508
|
-
addBlock: (i) =>
|
|
3508
|
+
addBlock: (i) => Me({
|
|
3509
3509
|
...i,
|
|
3510
3510
|
set: this.set,
|
|
3511
3511
|
tplGenerators: G,
|
|
3512
3512
|
includeMockData: this.includeMockData,
|
|
3513
3513
|
emit: (...e) => this.$emit(...e)
|
|
3514
3514
|
}),
|
|
3515
|
-
getBlockPayload: (i) =>
|
|
3515
|
+
getBlockPayload: (i) => Ie(i, this.set, G, this.includeMockdata)
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
|
-
},
|
|
3519
|
-
var
|
|
3520
|
-
Ti,
|
|
3521
|
-
Di,
|
|
3518
|
+
}, Bi = null, Mi = null;
|
|
3519
|
+
var Ii = /* @__PURE__ */ c(
|
|
3522
3520
|
Vi,
|
|
3521
|
+
Bi,
|
|
3522
|
+
Mi,
|
|
3523
3523
|
!1,
|
|
3524
3524
|
null,
|
|
3525
3525
|
null,
|
|
3526
3526
|
null,
|
|
3527
3527
|
null
|
|
3528
3528
|
);
|
|
3529
|
-
const
|
|
3530
|
-
const
|
|
3529
|
+
const oe = Ii.exports;
|
|
3530
|
+
const Fi = {
|
|
3531
3531
|
name: "Drawer",
|
|
3532
3532
|
props: {
|
|
3533
3533
|
value: {
|
|
@@ -3570,7 +3570,7 @@ const Mi = {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
3572
|
};
|
|
3573
|
-
var
|
|
3573
|
+
var Hi = function() {
|
|
3574
3574
|
var e = this, t = e._self._c;
|
|
3575
3575
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3576
3576
|
zIndex: e.zIndex
|
|
@@ -3586,18 +3586,18 @@ var Ii = function() {
|
|
|
3586
3586
|
boxShadow: e.boxShadow,
|
|
3587
3587
|
...e.contentStyle
|
|
3588
3588
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3589
|
-
},
|
|
3590
|
-
Mi,
|
|
3591
|
-
Ii,
|
|
3589
|
+
}, Ai = [], Pi = /* @__PURE__ */ c(
|
|
3592
3590
|
Fi,
|
|
3591
|
+
Hi,
|
|
3592
|
+
Ai,
|
|
3593
3593
|
!1,
|
|
3594
3594
|
null,
|
|
3595
3595
|
"3cb13e4e",
|
|
3596
3596
|
null,
|
|
3597
3597
|
null
|
|
3598
3598
|
);
|
|
3599
|
-
const
|
|
3600
|
-
const
|
|
3599
|
+
const le = Pi.exports;
|
|
3600
|
+
const Ei = {
|
|
3601
3601
|
name: "DocumentSend",
|
|
3602
3602
|
i18nOptions: {
|
|
3603
3603
|
namespaces: "documentSend",
|
|
@@ -3621,21 +3621,21 @@ const Ai = {
|
|
|
3621
3621
|
}
|
|
3622
3622
|
},
|
|
3623
3623
|
components: {
|
|
3624
|
-
AddBlock:
|
|
3625
|
-
Drawer:
|
|
3626
|
-
SendForm:
|
|
3627
|
-
CCheckbox:
|
|
3628
|
-
BaseIcon:
|
|
3629
|
-
CButton:
|
|
3630
|
-
IsPremium:
|
|
3631
|
-
IsPremiumPreStep:
|
|
3624
|
+
AddBlock: oe,
|
|
3625
|
+
Drawer: le,
|
|
3626
|
+
SendForm: lt,
|
|
3627
|
+
CCheckbox: Fe,
|
|
3628
|
+
BaseIcon: He,
|
|
3629
|
+
CButton: Ae,
|
|
3630
|
+
IsPremium: b,
|
|
3631
|
+
IsPremiumPreStep: _
|
|
3632
3632
|
},
|
|
3633
3633
|
mixins: [
|
|
3634
3634
|
S([], {
|
|
3635
3635
|
useEmit: !1,
|
|
3636
3636
|
setFnName: "setFormValue"
|
|
3637
3637
|
}),
|
|
3638
|
-
|
|
3638
|
+
$
|
|
3639
3639
|
],
|
|
3640
3640
|
props: {
|
|
3641
3641
|
setFormValue: {
|
|
@@ -3718,7 +3718,7 @@ const Ai = {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
};
|
|
3721
|
-
var
|
|
3721
|
+
var zi = function() {
|
|
3722
3722
|
var e = this, t = e._self._c;
|
|
3723
3723
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3724
3724
|
e.isOpen = a;
|
|
@@ -3737,17 +3737,17 @@ var Pi = function() {
|
|
|
3737
3737
|
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
|
|
3738
3738
|
} }], null, !0) })];
|
|
3739
3739
|
} }], null, !1, 763192116) })], 1)], 1)], 1)]) : e._e();
|
|
3740
|
-
},
|
|
3741
|
-
Ai,
|
|
3742
|
-
Pi,
|
|
3740
|
+
}, Zi = [], Oi = /* @__PURE__ */ c(
|
|
3743
3741
|
Ei,
|
|
3742
|
+
zi,
|
|
3743
|
+
Zi,
|
|
3744
3744
|
!1,
|
|
3745
3745
|
null,
|
|
3746
3746
|
"56ed9100",
|
|
3747
3747
|
null,
|
|
3748
3748
|
null
|
|
3749
3749
|
);
|
|
3750
|
-
const
|
|
3750
|
+
const Ri = Oi.exports, Gi = {
|
|
3751
3751
|
name: "Draggable",
|
|
3752
3752
|
data() {
|
|
3753
3753
|
return {
|
|
@@ -3779,21 +3779,21 @@ const Zi = zi.exports, Oi = {
|
|
|
3779
3779
|
dragMousedown: this.onDragMouseDown
|
|
3780
3780
|
});
|
|
3781
3781
|
}
|
|
3782
|
-
},
|
|
3783
|
-
var
|
|
3784
|
-
Oi,
|
|
3782
|
+
}, Ui = null, Wi = null;
|
|
3783
|
+
var qi = /* @__PURE__ */ c(
|
|
3785
3784
|
Gi,
|
|
3786
|
-
|
|
3785
|
+
Ui,
|
|
3786
|
+
Wi,
|
|
3787
3787
|
!1,
|
|
3788
3788
|
null,
|
|
3789
3789
|
null,
|
|
3790
3790
|
null,
|
|
3791
3791
|
null
|
|
3792
3792
|
);
|
|
3793
|
-
const
|
|
3794
|
-
const
|
|
3793
|
+
const Ni = qi.exports;
|
|
3794
|
+
const ji = {
|
|
3795
3795
|
components: {
|
|
3796
|
-
Draggable:
|
|
3796
|
+
Draggable: Ni
|
|
3797
3797
|
},
|
|
3798
3798
|
props: {
|
|
3799
3799
|
offset: {
|
|
@@ -3806,7 +3806,7 @@ const qi = {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
};
|
|
3809
|
-
var
|
|
3809
|
+
var Ki = function() {
|
|
3810
3810
|
var e = this, t = e._self._c;
|
|
3811
3811
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3812
3812
|
return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
|
|
@@ -3816,26 +3816,26 @@ var Ni = function() {
|
|
|
3816
3816
|
return e.$emit("close");
|
|
3817
3817
|
} } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
|
|
3818
3818
|
} }], null, !0) })], 1);
|
|
3819
|
-
},
|
|
3820
|
-
qi,
|
|
3821
|
-
Ni,
|
|
3819
|
+
}, Yi = [], Qi = /* @__PURE__ */ c(
|
|
3822
3820
|
ji,
|
|
3821
|
+
Ki,
|
|
3822
|
+
Yi,
|
|
3823
3823
|
!1,
|
|
3824
3824
|
null,
|
|
3825
3825
|
"9b75010b",
|
|
3826
3826
|
null,
|
|
3827
3827
|
null
|
|
3828
3828
|
);
|
|
3829
|
-
const
|
|
3830
|
-
const
|
|
3829
|
+
const re = Qi.exports;
|
|
3830
|
+
const Ji = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ji), Xi = {
|
|
3831
3831
|
i18nOptions: {
|
|
3832
3832
|
namespaces: "common",
|
|
3833
3833
|
keyPrefix: "designLabels"
|
|
3834
3834
|
},
|
|
3835
3835
|
name: "Design",
|
|
3836
3836
|
components: {
|
|
3837
|
-
FormInputRow:
|
|
3838
|
-
DragWindow:
|
|
3837
|
+
FormInputRow: ee,
|
|
3838
|
+
DragWindow: re
|
|
3839
3839
|
},
|
|
3840
3840
|
mixins: [
|
|
3841
3841
|
S(
|
|
@@ -3924,7 +3924,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
|
3924
3924
|
weight: n,
|
|
3925
3925
|
options: s = []
|
|
3926
3926
|
}) => {
|
|
3927
|
-
this.update(i, a),
|
|
3927
|
+
this.update(i, a), Je(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
3928
3928
|
}
|
|
3929
3929
|
}
|
|
3930
3930
|
]
|
|
@@ -4369,7 +4369,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
|
4369
4369
|
watch: {
|
|
4370
4370
|
async activeItem(i) {
|
|
4371
4371
|
const e = u(i, "style.fontFamily");
|
|
4372
|
-
e && (this.fontWeightOptions = await
|
|
4372
|
+
e && (this.fontWeightOptions = await Xe(e));
|
|
4373
4373
|
}
|
|
4374
4374
|
},
|
|
4375
4375
|
methods: {
|
|
@@ -4381,7 +4381,7 @@ const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
4383
|
};
|
|
4384
|
-
var
|
|
4384
|
+
var ea = function() {
|
|
4385
4385
|
var e = this, t = e._self._c;
|
|
4386
4386
|
return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
|
|
4387
4387
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4400,18 +4400,18 @@ var Ji = function() {
|
|
|
4400
4400
|
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
|
|
4401
4401
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4402
4402
|
}), 1) : e._e()], 1);
|
|
4403
|
-
},
|
|
4404
|
-
Qi,
|
|
4405
|
-
Ji,
|
|
4403
|
+
}, ta = [], ia = /* @__PURE__ */ c(
|
|
4406
4404
|
Xi,
|
|
4405
|
+
ea,
|
|
4406
|
+
ta,
|
|
4407
4407
|
!1,
|
|
4408
4408
|
null,
|
|
4409
4409
|
"930a4202",
|
|
4410
4410
|
null,
|
|
4411
4411
|
null
|
|
4412
4412
|
);
|
|
4413
|
-
const
|
|
4414
|
-
const
|
|
4413
|
+
const aa = ia.exports;
|
|
4414
|
+
const na = {
|
|
4415
4415
|
name: "FieldsModal",
|
|
4416
4416
|
i18nOptions: {
|
|
4417
4417
|
namespaces: "FieldsModal",
|
|
@@ -4445,7 +4445,7 @@ const ia = {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
},
|
|
4447
4447
|
components: {
|
|
4448
|
-
CField:
|
|
4448
|
+
CField: X
|
|
4449
4449
|
},
|
|
4450
4450
|
props: {
|
|
4451
4451
|
document: {
|
|
@@ -4476,12 +4476,12 @@ const ia = {
|
|
|
4476
4476
|
validations: {
|
|
4477
4477
|
form: {
|
|
4478
4478
|
label: {
|
|
4479
|
-
required:
|
|
4479
|
+
required: F.required,
|
|
4480
4480
|
isUniqueLabel(i) {
|
|
4481
4481
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4482
4482
|
}
|
|
4483
4483
|
},
|
|
4484
|
-
value: { required:
|
|
4484
|
+
value: { required: F.required }
|
|
4485
4485
|
}
|
|
4486
4486
|
},
|
|
4487
4487
|
computed: {
|
|
@@ -4521,12 +4521,12 @@ const ia = {
|
|
|
4521
4521
|
remove() {
|
|
4522
4522
|
if (!this.existingFieldId)
|
|
4523
4523
|
return;
|
|
4524
|
-
const i =
|
|
4524
|
+
const i = ut(this.document.fields, [this.existingFieldId]);
|
|
4525
4525
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4526
4526
|
}
|
|
4527
4527
|
}
|
|
4528
4528
|
};
|
|
4529
|
-
var
|
|
4529
|
+
var sa = function() {
|
|
4530
4530
|
var e = this, t = e._self._c;
|
|
4531
4531
|
return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
|
|
4532
4532
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4537,18 +4537,18 @@ var aa = function() {
|
|
|
4537
4537
|
}, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
|
|
4538
4538
|
e.$set(e.form, "value", a);
|
|
4539
4539
|
}, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
|
|
4540
|
-
},
|
|
4541
|
-
ia,
|
|
4542
|
-
aa,
|
|
4540
|
+
}, oa = [], la = /* @__PURE__ */ c(
|
|
4543
4541
|
na,
|
|
4542
|
+
sa,
|
|
4543
|
+
oa,
|
|
4544
4544
|
!1,
|
|
4545
4545
|
null,
|
|
4546
4546
|
"5cc44007",
|
|
4547
4547
|
null,
|
|
4548
4548
|
null
|
|
4549
4549
|
);
|
|
4550
|
-
const
|
|
4551
|
-
const
|
|
4550
|
+
const ra = la.exports;
|
|
4551
|
+
const ca = {
|
|
4552
4552
|
i18nOptions: {
|
|
4553
4553
|
namespaces: "DocumentFormFields",
|
|
4554
4554
|
messages: {
|
|
@@ -4572,9 +4572,9 @@ const la = {
|
|
|
4572
4572
|
},
|
|
4573
4573
|
name: "DocumentFormFields",
|
|
4574
4574
|
components: {
|
|
4575
|
-
SmartList:
|
|
4576
|
-
CAccordion:
|
|
4577
|
-
CField:
|
|
4575
|
+
SmartList: pt,
|
|
4576
|
+
CAccordion: Ye,
|
|
4577
|
+
CField: X
|
|
4578
4578
|
},
|
|
4579
4579
|
mixins: [S()],
|
|
4580
4580
|
props: {
|
|
@@ -4634,7 +4634,7 @@ const la = {
|
|
|
4634
4634
|
async handler(i) {
|
|
4635
4635
|
var e, t;
|
|
4636
4636
|
if (this.isEditingTemplate && i) {
|
|
4637
|
-
const { data: a } = await
|
|
4637
|
+
const { data: a } = await L.getFields(i);
|
|
4638
4638
|
this.updateValue("data.fields", {
|
|
4639
4639
|
// crmFields added first in order to not override same service values
|
|
4640
4640
|
...a,
|
|
@@ -4651,7 +4651,7 @@ const la = {
|
|
|
4651
4651
|
},
|
|
4652
4652
|
openFieldModal({ existingFieldId: i }) {
|
|
4653
4653
|
this.$modal.show(
|
|
4654
|
-
|
|
4654
|
+
ra,
|
|
4655
4655
|
{
|
|
4656
4656
|
document: this._document,
|
|
4657
4657
|
set: this.set,
|
|
@@ -4670,7 +4670,7 @@ const la = {
|
|
|
4670
4670
|
);
|
|
4671
4671
|
},
|
|
4672
4672
|
onCopyField(i) {
|
|
4673
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
4673
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Pe("info", this.$t("_common:copyMessage"))).catch((e) => T(e));
|
|
4674
4674
|
},
|
|
4675
4675
|
filterMethod(i, e) {
|
|
4676
4676
|
return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -4681,7 +4681,7 @@ const la = {
|
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
};
|
|
4684
|
-
var
|
|
4684
|
+
var da = function() {
|
|
4685
4685
|
var e = this, t = e._self._c;
|
|
4686
4686
|
return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
|
|
4687
4687
|
e.query = a;
|
|
@@ -4726,18 +4726,18 @@ var ra = function() {
|
|
|
4726
4726
|
} } })], 1)], 1)]);
|
|
4727
4727
|
}) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
|
|
4728
4728
|
})], 2)], 1);
|
|
4729
|
-
},
|
|
4730
|
-
la,
|
|
4731
|
-
ra,
|
|
4729
|
+
}, pa = [], ua = /* @__PURE__ */ c(
|
|
4732
4730
|
ca,
|
|
4731
|
+
da,
|
|
4732
|
+
pa,
|
|
4733
4733
|
!1,
|
|
4734
4734
|
null,
|
|
4735
4735
|
"916766d5",
|
|
4736
4736
|
null,
|
|
4737
4737
|
null
|
|
4738
4738
|
);
|
|
4739
|
-
const
|
|
4740
|
-
const
|
|
4739
|
+
const ma = ua.exports;
|
|
4740
|
+
const ha = {
|
|
4741
4741
|
i18nOptions: {
|
|
4742
4742
|
messages: {
|
|
4743
4743
|
en: {
|
|
@@ -4780,8 +4780,8 @@ const ua = {
|
|
|
4780
4780
|
},
|
|
4781
4781
|
name: "ExtensionTab",
|
|
4782
4782
|
components: {
|
|
4783
|
-
draggable:
|
|
4784
|
-
Spinner:
|
|
4783
|
+
draggable: mt,
|
|
4784
|
+
Spinner: Ee
|
|
4785
4785
|
},
|
|
4786
4786
|
mixins: [S([
|
|
4787
4787
|
"externalReferences",
|
|
@@ -4837,7 +4837,7 @@ const ua = {
|
|
|
4837
4837
|
}
|
|
4838
4838
|
},
|
|
4839
4839
|
methods: {
|
|
4840
|
-
priceFormat:
|
|
4840
|
+
priceFormat: K,
|
|
4841
4841
|
async _search(i) {
|
|
4842
4842
|
try {
|
|
4843
4843
|
this.isSearching = !0;
|
|
@@ -4848,7 +4848,7 @@ const ua = {
|
|
|
4848
4848
|
this.searchResults = [];
|
|
4849
4849
|
return;
|
|
4850
4850
|
}
|
|
4851
|
-
const { data: t } = await
|
|
4851
|
+
const { data: t } = await L.search(this.activeCrm, { query: i, type: "deal" });
|
|
4852
4852
|
t && Array.isArray(t) && (this.searchResults = t), t.length || (this.emptyQuery = e);
|
|
4853
4853
|
} catch (e) {
|
|
4854
4854
|
throw e;
|
|
@@ -4856,7 +4856,7 @@ const ua = {
|
|
|
4856
4856
|
this.isSearching = !1;
|
|
4857
4857
|
}
|
|
4858
4858
|
},
|
|
4859
|
-
search:
|
|
4859
|
+
search: A(async function(e) {
|
|
4860
4860
|
await this._search(e);
|
|
4861
4861
|
}, 750),
|
|
4862
4862
|
useSearchResult(i) {
|
|
@@ -4878,7 +4878,7 @@ const ua = {
|
|
|
4878
4878
|
const e = this.externalReferences.find((o) => o.service === this.activeCrm && o.type === i);
|
|
4879
4879
|
if (!e)
|
|
4880
4880
|
return;
|
|
4881
|
-
const { service: t, type: a, typeId: n } = e, { data: s } = await
|
|
4881
|
+
const { service: t, type: a, typeId: n } = e, { data: s } = await L.getExternalReferenceDetails(t, { type: a, typeId: n });
|
|
4882
4882
|
i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
|
|
4883
4883
|
} catch {
|
|
4884
4884
|
i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
|
|
@@ -4895,10 +4895,10 @@ const ua = {
|
|
|
4895
4895
|
},
|
|
4896
4896
|
async suggestClients() {
|
|
4897
4897
|
var n;
|
|
4898
|
-
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await
|
|
4898
|
+
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await L.suggestClients(i, { type: e, typeId: t });
|
|
4899
4899
|
if (Array.isArray(a) && a.length) {
|
|
4900
4900
|
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
4901
|
-
...
|
|
4901
|
+
...ze(),
|
|
4902
4902
|
...s && { answerMethod: s },
|
|
4903
4903
|
...l
|
|
4904
4904
|
}));
|
|
@@ -4928,7 +4928,7 @@ const ua = {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
4930
4930
|
};
|
|
4931
|
-
var
|
|
4931
|
+
var fa = function() {
|
|
4932
4932
|
var e = this, t = e._self._c;
|
|
4933
4933
|
return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
|
|
4934
4934
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -4959,18 +4959,18 @@ var ma = function() {
|
|
|
4959
4959
|
return e.addArticle(a);
|
|
4960
4960
|
} } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
|
|
4961
4961
|
}), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
|
|
4962
|
-
},
|
|
4963
|
-
ua,
|
|
4964
|
-
ma,
|
|
4962
|
+
}, ga = [], Ca = /* @__PURE__ */ c(
|
|
4965
4963
|
ha,
|
|
4964
|
+
fa,
|
|
4965
|
+
ga,
|
|
4966
4966
|
!1,
|
|
4967
4967
|
null,
|
|
4968
4968
|
"b775e9f9",
|
|
4969
4969
|
null,
|
|
4970
4970
|
null
|
|
4971
4971
|
);
|
|
4972
|
-
const
|
|
4973
|
-
const
|
|
4972
|
+
const va = Ca.exports;
|
|
4973
|
+
const ya = {
|
|
4974
4974
|
i18nOptions: {
|
|
4975
4975
|
namespaces: "DocSettings",
|
|
4976
4976
|
messages: {
|
|
@@ -5058,8 +5058,8 @@ const Ca = {
|
|
|
5058
5058
|
},
|
|
5059
5059
|
name: "DocumentGeneralSettings",
|
|
5060
5060
|
components: {
|
|
5061
|
-
FormInputRow:
|
|
5062
|
-
DragWindow:
|
|
5061
|
+
FormInputRow: ee,
|
|
5062
|
+
DragWindow: re
|
|
5063
5063
|
},
|
|
5064
5064
|
props: {
|
|
5065
5065
|
offset: {
|
|
@@ -5098,7 +5098,7 @@ const Ca = {
|
|
|
5098
5098
|
vatTypes() {
|
|
5099
5099
|
var e;
|
|
5100
5100
|
const i = ["vat"];
|
|
5101
|
-
return ((e =
|
|
5101
|
+
return ((e = Ze[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
|
|
5102
5102
|
},
|
|
5103
5103
|
options() {
|
|
5104
5104
|
return [
|
|
@@ -5124,7 +5124,7 @@ const Ca = {
|
|
|
5124
5124
|
component: "select",
|
|
5125
5125
|
props: {
|
|
5126
5126
|
value: this.language,
|
|
5127
|
-
options:
|
|
5127
|
+
options: Oe.map((i) => ({ value: i, label: this.$t(`iso:language.${i}`) })).sort((i, e) => i.label.localeCompare(e.label))
|
|
5128
5128
|
},
|
|
5129
5129
|
onInput: (i) => this.update("language", i)
|
|
5130
5130
|
}
|
|
@@ -5275,7 +5275,7 @@ const Ca = {
|
|
|
5275
5275
|
}
|
|
5276
5276
|
}
|
|
5277
5277
|
};
|
|
5278
|
-
var
|
|
5278
|
+
var xa = function() {
|
|
5279
5279
|
var e = this, t = e._self._c;
|
|
5280
5280
|
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5281
5281
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
@@ -5284,17 +5284,17 @@ var va = function() {
|
|
|
5284
5284
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5285
5285
|
return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
|
|
5286
5286
|
})], 2) : e._e()], 2);
|
|
5287
|
-
},
|
|
5288
|
-
Ca,
|
|
5289
|
-
va,
|
|
5287
|
+
}, wa = [], ba = /* @__PURE__ */ c(
|
|
5290
5288
|
ya,
|
|
5289
|
+
xa,
|
|
5290
|
+
wa,
|
|
5291
5291
|
!1,
|
|
5292
5292
|
null,
|
|
5293
5293
|
"eec61e30",
|
|
5294
5294
|
null,
|
|
5295
5295
|
null
|
|
5296
5296
|
);
|
|
5297
|
-
const
|
|
5297
|
+
const _a = ba.exports, ka = {
|
|
5298
5298
|
name: "MenuBlockConvertPopover",
|
|
5299
5299
|
props: {
|
|
5300
5300
|
target: {
|
|
@@ -5327,32 +5327,32 @@ const wa = xa.exports, ba = {
|
|
|
5327
5327
|
}
|
|
5328
5328
|
}
|
|
5329
5329
|
};
|
|
5330
|
-
var
|
|
5330
|
+
var La = function() {
|
|
5331
5331
|
var e = this, t = e._self._c;
|
|
5332
5332
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5333
5333
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5334
5334
|
} } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
5335
5335
|
return e.$emit("convert");
|
|
5336
5336
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5337
|
-
},
|
|
5338
|
-
ba,
|
|
5339
|
-
_a,
|
|
5337
|
+
}, $a = [], Sa = /* @__PURE__ */ c(
|
|
5340
5338
|
ka,
|
|
5339
|
+
La,
|
|
5340
|
+
$a,
|
|
5341
5341
|
!1,
|
|
5342
5342
|
null,
|
|
5343
5343
|
null,
|
|
5344
5344
|
null,
|
|
5345
5345
|
null
|
|
5346
5346
|
);
|
|
5347
|
-
const
|
|
5348
|
-
const
|
|
5347
|
+
const Ta = Sa.exports;
|
|
5348
|
+
const Da = H.component("ProBadge", {
|
|
5349
5349
|
name: "ProBadge",
|
|
5350
5350
|
render(i) {
|
|
5351
5351
|
return i("div", {
|
|
5352
5352
|
staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
5353
5353
|
}, "Pro");
|
|
5354
5354
|
}
|
|
5355
|
-
}),
|
|
5355
|
+
}), Va = {
|
|
5356
5356
|
name: "MenuBlocks",
|
|
5357
5357
|
i18nOptions: {
|
|
5358
5358
|
namespaces: "menuBlocks",
|
|
@@ -5422,13 +5422,13 @@ const Sa = F.component("ProBadge", {
|
|
|
5422
5422
|
}
|
|
5423
5423
|
},
|
|
5424
5424
|
components: {
|
|
5425
|
-
simplebar:
|
|
5426
|
-
DragList:
|
|
5427
|
-
DragItem:
|
|
5428
|
-
AddBlock:
|
|
5429
|
-
IsPremiumPreStep:
|
|
5430
|
-
ProBadge:
|
|
5431
|
-
MenuBlockConvertPopover:
|
|
5425
|
+
simplebar: k,
|
|
5426
|
+
DragList: Q,
|
|
5427
|
+
DragItem: J,
|
|
5428
|
+
AddBlock: oe,
|
|
5429
|
+
IsPremiumPreStep: _,
|
|
5430
|
+
ProBadge: Da,
|
|
5431
|
+
MenuBlockConvertPopover: Ta
|
|
5432
5432
|
},
|
|
5433
5433
|
props: {
|
|
5434
5434
|
_document: {
|
|
@@ -5457,7 +5457,7 @@ const Sa = F.component("ProBadge", {
|
|
|
5457
5457
|
default: () => ({ isPublicForm: !1 })
|
|
5458
5458
|
}
|
|
5459
5459
|
},
|
|
5460
|
-
mixins: [
|
|
5460
|
+
mixins: [$],
|
|
5461
5461
|
data() {
|
|
5462
5462
|
return {
|
|
5463
5463
|
subMenuToShow: null,
|
|
@@ -5722,7 +5722,7 @@ const Sa = F.component("ProBadge", {
|
|
|
5722
5722
|
}
|
|
5723
5723
|
];
|
|
5724
5724
|
return i.forEach((e) => {
|
|
5725
|
-
|
|
5725
|
+
U[e.key] && (e.subMenu = (U[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
|
|
5726
5726
|
}), i;
|
|
5727
5727
|
},
|
|
5728
5728
|
availableBlocks() {
|
|
@@ -5772,7 +5772,7 @@ const Sa = F.component("ProBadge", {
|
|
|
5772
5772
|
if (this.mq === "sm")
|
|
5773
5773
|
return;
|
|
5774
5774
|
const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
5775
|
-
this.tippyInstances =
|
|
5775
|
+
this.tippyInstances = dt(this.$el, {
|
|
5776
5776
|
target: "[data-tooltip-key]",
|
|
5777
5777
|
allowHTML: !0,
|
|
5778
5778
|
duration: [150, 0],
|
|
@@ -5797,7 +5797,7 @@ const Sa = F.component("ProBadge", {
|
|
|
5797
5797
|
i.destroy();
|
|
5798
5798
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
5799
5799
|
},
|
|
5800
|
-
setSubMenuState:
|
|
5800
|
+
setSubMenuState: A(function(e) {
|
|
5801
5801
|
this.activeSubMenu = e;
|
|
5802
5802
|
}, 100, { trailing: !0 }),
|
|
5803
5803
|
onMouseleaveDrawer() {
|
|
@@ -5832,7 +5832,7 @@ const Sa = F.component("ProBadge", {
|
|
|
5832
5832
|
}
|
|
5833
5833
|
}
|
|
5834
5834
|
};
|
|
5835
|
-
var
|
|
5835
|
+
var Ba = function() {
|
|
5836
5836
|
var e = this, t = e._self._c;
|
|
5837
5837
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
5838
5838
|
return e.$emit("block-added", a);
|
|
@@ -5871,18 +5871,18 @@ var Da = function() {
|
|
|
5871
5871
|
}), 1)], 1)], 1)])], 1)];
|
|
5872
5872
|
} }], null, !0) })];
|
|
5873
5873
|
} }]) });
|
|
5874
|
-
},
|
|
5875
|
-
Ta,
|
|
5876
|
-
Da,
|
|
5874
|
+
}, Ma = [], Ia = /* @__PURE__ */ c(
|
|
5877
5875
|
Va,
|
|
5876
|
+
Ba,
|
|
5877
|
+
Ma,
|
|
5878
5878
|
!1,
|
|
5879
5879
|
null,
|
|
5880
5880
|
"2f285e04",
|
|
5881
5881
|
null,
|
|
5882
5882
|
null
|
|
5883
5883
|
);
|
|
5884
|
-
const
|
|
5885
|
-
const
|
|
5884
|
+
const Fa = Ia.exports;
|
|
5885
|
+
const Ha = {
|
|
5886
5886
|
name: "DocumentFormMenu",
|
|
5887
5887
|
i18nOptions: {
|
|
5888
5888
|
namespaces: "documentFormMenu",
|
|
@@ -5898,13 +5898,13 @@ const Ia = {
|
|
|
5898
5898
|
}
|
|
5899
5899
|
},
|
|
5900
5900
|
components: {
|
|
5901
|
-
Design:
|
|
5902
|
-
Fields:
|
|
5903
|
-
ExtensionTab:
|
|
5904
|
-
DocumentGeneralSettings:
|
|
5905
|
-
DocumentGuide: () => import("./index-
|
|
5906
|
-
MenuBlocks:
|
|
5907
|
-
Simplebar:
|
|
5901
|
+
Design: aa,
|
|
5902
|
+
Fields: ma,
|
|
5903
|
+
ExtensionTab: va,
|
|
5904
|
+
DocumentGeneralSettings: _a,
|
|
5905
|
+
DocumentGuide: () => import("./index-ef7204d4.js"),
|
|
5906
|
+
MenuBlocks: Fa,
|
|
5907
|
+
Simplebar: k
|
|
5908
5908
|
},
|
|
5909
5909
|
props: {
|
|
5910
5910
|
state: {
|
|
@@ -5944,7 +5944,7 @@ const Ia = {
|
|
|
5944
5944
|
data() {
|
|
5945
5945
|
return {
|
|
5946
5946
|
showGuide: !1,
|
|
5947
|
-
showGuideNotification: !
|
|
5947
|
+
showGuideNotification: !P.getItem("hideFormGuideNotification"),
|
|
5948
5948
|
tab: "blocks"
|
|
5949
5949
|
};
|
|
5950
5950
|
},
|
|
@@ -5966,11 +5966,11 @@ const Ia = {
|
|
|
5966
5966
|
},
|
|
5967
5967
|
methods: {
|
|
5968
5968
|
openGuide() {
|
|
5969
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5969
|
+
this.showGuide = !0, this.showGuideNotification = !1, P.setItem("hideFormGuideNotification", !0);
|
|
5970
5970
|
}
|
|
5971
5971
|
}
|
|
5972
5972
|
};
|
|
5973
|
-
var
|
|
5973
|
+
var Aa = function() {
|
|
5974
5974
|
var e = this, t = e._self._c;
|
|
5975
5975
|
return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
5976
5976
|
return e.$emit("close");
|
|
@@ -6009,18 +6009,18 @@ var Fa = function() {
|
|
|
6009
6009
|
}, offset: e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
6010
6010
|
e.showGuide = !1;
|
|
6011
6011
|
} } }) : e._e()], 1)])]);
|
|
6012
|
-
},
|
|
6013
|
-
Ia,
|
|
6014
|
-
Fa,
|
|
6012
|
+
}, Pa = [], Ea = /* @__PURE__ */ c(
|
|
6015
6013
|
Ha,
|
|
6014
|
+
Aa,
|
|
6015
|
+
Pa,
|
|
6016
6016
|
!1,
|
|
6017
6017
|
null,
|
|
6018
6018
|
"383e8c99",
|
|
6019
6019
|
null,
|
|
6020
6020
|
null
|
|
6021
6021
|
);
|
|
6022
|
-
const
|
|
6023
|
-
const
|
|
6022
|
+
const za = Ea.exports;
|
|
6023
|
+
const Za = {
|
|
6024
6024
|
name: "BlockControlButtons",
|
|
6025
6025
|
i18nOptions: {
|
|
6026
6026
|
namespace: "blockControlButtons",
|
|
@@ -6052,7 +6052,7 @@ const Ea = {
|
|
|
6052
6052
|
}
|
|
6053
6053
|
}
|
|
6054
6054
|
};
|
|
6055
|
-
var
|
|
6055
|
+
var Oa = function() {
|
|
6056
6056
|
var e = this, t = e._self._c;
|
|
6057
6057
|
return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6058
6058
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -6063,21 +6063,21 @@ var za = function() {
|
|
|
6063
6063
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6064
6064
|
return e.$emit("remove");
|
|
6065
6065
|
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
|
|
6066
|
-
},
|
|
6067
|
-
Ea,
|
|
6068
|
-
za,
|
|
6066
|
+
}, Ra = [], Ga = /* @__PURE__ */ c(
|
|
6069
6067
|
Za,
|
|
6068
|
+
Oa,
|
|
6069
|
+
Ra,
|
|
6070
6070
|
!1,
|
|
6071
6071
|
null,
|
|
6072
6072
|
"537216ad",
|
|
6073
6073
|
null,
|
|
6074
6074
|
null
|
|
6075
6075
|
);
|
|
6076
|
-
const
|
|
6077
|
-
const
|
|
6076
|
+
const Ua = Ga.exports;
|
|
6077
|
+
const Wa = {
|
|
6078
6078
|
name: "DynamicBlock",
|
|
6079
6079
|
components: {
|
|
6080
|
-
BlockControlButtons:
|
|
6080
|
+
BlockControlButtons: Ua
|
|
6081
6081
|
},
|
|
6082
6082
|
props: {
|
|
6083
6083
|
isDragging: {
|
|
@@ -6138,7 +6138,7 @@ const Ra = {
|
|
|
6138
6138
|
}
|
|
6139
6139
|
}
|
|
6140
6140
|
};
|
|
6141
|
-
var
|
|
6141
|
+
var qa = function() {
|
|
6142
6142
|
var e = this, t = e._self._c;
|
|
6143
6143
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6144
6144
|
{
|
|
@@ -6161,22 +6161,22 @@ var Ua = function() {
|
|
|
6161
6161
|
}, remove: function(a) {
|
|
6162
6162
|
return e.$emit("remove");
|
|
6163
6163
|
} } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
|
|
6164
|
-
},
|
|
6165
|
-
Ra,
|
|
6166
|
-
Ua,
|
|
6164
|
+
}, Na = [], ja = /* @__PURE__ */ c(
|
|
6167
6165
|
Wa,
|
|
6166
|
+
qa,
|
|
6167
|
+
Na,
|
|
6168
6168
|
!1,
|
|
6169
6169
|
null,
|
|
6170
6170
|
"1181a172",
|
|
6171
6171
|
null,
|
|
6172
6172
|
null
|
|
6173
6173
|
);
|
|
6174
|
-
const
|
|
6175
|
-
const
|
|
6174
|
+
const Ka = ja.exports;
|
|
6175
|
+
const Ya = {
|
|
6176
6176
|
name: "DocumentDrawer",
|
|
6177
6177
|
components: {
|
|
6178
|
-
simplebar:
|
|
6179
|
-
Drawer:
|
|
6178
|
+
simplebar: k,
|
|
6179
|
+
Drawer: le
|
|
6180
6180
|
},
|
|
6181
6181
|
props: {
|
|
6182
6182
|
position: {
|
|
@@ -6198,7 +6198,7 @@ const ja = {
|
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
6200
6200
|
};
|
|
6201
|
-
var
|
|
6201
|
+
var Qa = function() {
|
|
6202
6202
|
var e = this, t = e._self._c;
|
|
6203
6203
|
return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
|
|
6204
6204
|
"is-sticky": !e.fixed
|
|
@@ -6210,18 +6210,18 @@ var Ka = function() {
|
|
|
6210
6210
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6211
6211
|
...e.fixedStyle
|
|
6212
6212
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6213
|
-
},
|
|
6214
|
-
ja,
|
|
6215
|
-
Ka,
|
|
6213
|
+
}, Ja = [], Xa = /* @__PURE__ */ c(
|
|
6216
6214
|
Ya,
|
|
6215
|
+
Qa,
|
|
6216
|
+
Ja,
|
|
6217
6217
|
!1,
|
|
6218
6218
|
null,
|
|
6219
6219
|
"f0a56edd",
|
|
6220
6220
|
null,
|
|
6221
6221
|
null
|
|
6222
6222
|
);
|
|
6223
|
-
const
|
|
6224
|
-
const
|
|
6223
|
+
const en = Xa.exports;
|
|
6224
|
+
const tn = {
|
|
6225
6225
|
name: "DocumentFormViewRadio",
|
|
6226
6226
|
props: {
|
|
6227
6227
|
value: {
|
|
@@ -6234,24 +6234,24 @@ const Xa = {
|
|
|
6234
6234
|
}
|
|
6235
6235
|
}
|
|
6236
6236
|
};
|
|
6237
|
-
var
|
|
6237
|
+
var an = function() {
|
|
6238
6238
|
var e = this, t = e._self._c;
|
|
6239
6239
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6240
6240
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6241
6241
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
6242
6242
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6243
6243
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6244
|
-
},
|
|
6245
|
-
Xa,
|
|
6246
|
-
en,
|
|
6244
|
+
}, nn = [], sn = /* @__PURE__ */ c(
|
|
6247
6245
|
tn,
|
|
6246
|
+
an,
|
|
6247
|
+
nn,
|
|
6248
6248
|
!1,
|
|
6249
6249
|
null,
|
|
6250
6250
|
"bfd27279",
|
|
6251
6251
|
null,
|
|
6252
6252
|
null
|
|
6253
6253
|
);
|
|
6254
|
-
const
|
|
6254
|
+
const on = sn.exports, ln = {
|
|
6255
6255
|
name: "LogoBanner",
|
|
6256
6256
|
props: {
|
|
6257
6257
|
position: {
|
|
@@ -6269,44 +6269,44 @@ const nn = an.exports, sn = {
|
|
|
6269
6269
|
}
|
|
6270
6270
|
}
|
|
6271
6271
|
};
|
|
6272
|
-
var
|
|
6272
|
+
var rn = function() {
|
|
6273
6273
|
var e = this, t = e._self._c;
|
|
6274
6274
|
return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t("_common:brand.domain")}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
|
|
6275
|
-
},
|
|
6276
|
-
sn,
|
|
6277
|
-
on,
|
|
6275
|
+
}, cn = [], dn = /* @__PURE__ */ c(
|
|
6278
6276
|
ln,
|
|
6277
|
+
rn,
|
|
6278
|
+
cn,
|
|
6279
6279
|
!1,
|
|
6280
6280
|
null,
|
|
6281
6281
|
null,
|
|
6282
6282
|
null,
|
|
6283
6283
|
null
|
|
6284
6284
|
);
|
|
6285
|
-
const
|
|
6286
|
-
const
|
|
6285
|
+
const pn = dn.exports;
|
|
6286
|
+
const un = {
|
|
6287
6287
|
name: "DocumentFormNav"
|
|
6288
6288
|
};
|
|
6289
|
-
var
|
|
6289
|
+
var mn = function() {
|
|
6290
6290
|
var e = this, t = e._self._c;
|
|
6291
6291
|
return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "98" } }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
|
|
6292
|
-
},
|
|
6293
|
-
dn,
|
|
6294
|
-
pn,
|
|
6292
|
+
}, hn = [], fn = /* @__PURE__ */ c(
|
|
6295
6293
|
un,
|
|
6294
|
+
mn,
|
|
6295
|
+
hn,
|
|
6296
6296
|
!1,
|
|
6297
6297
|
null,
|
|
6298
6298
|
"05fc111c",
|
|
6299
6299
|
null,
|
|
6300
6300
|
null
|
|
6301
6301
|
);
|
|
6302
|
-
const
|
|
6303
|
-
const
|
|
6302
|
+
const gn = fn.exports;
|
|
6303
|
+
const ce = (i, e, t = "$children") => {
|
|
6304
6304
|
if (!i)
|
|
6305
6305
|
return;
|
|
6306
6306
|
e(i);
|
|
6307
6307
|
const a = i[t];
|
|
6308
|
-
!a && !Array.isArray(a) || a.forEach((n) =>
|
|
6309
|
-
},
|
|
6308
|
+
!a && !Array.isArray(a) || a.forEach((n) => ce(n, e));
|
|
6309
|
+
}, Cn = {
|
|
6310
6310
|
i18nOptions: {
|
|
6311
6311
|
namespaces: "DocumentFormContainer",
|
|
6312
6312
|
messages: {
|
|
@@ -6322,19 +6322,19 @@ const le = (i, e, t = "$children") => {
|
|
|
6322
6322
|
},
|
|
6323
6323
|
name: "DocumentFormContainer",
|
|
6324
6324
|
components: {
|
|
6325
|
-
WithDimensions:
|
|
6326
|
-
DragList:
|
|
6327
|
-
DragItem:
|
|
6328
|
-
DynamicChapter:
|
|
6329
|
-
DocumentFormMenu:
|
|
6330
|
-
DynamicBlock:
|
|
6331
|
-
DocumentFormViewRadio:
|
|
6332
|
-
DocumentFormNav:
|
|
6333
|
-
DocumentDrawer:
|
|
6334
|
-
DocumentStyleContainer:
|
|
6335
|
-
simplebar:
|
|
6336
|
-
LogoBanner:
|
|
6337
|
-
IsPremium:
|
|
6325
|
+
WithDimensions: et,
|
|
6326
|
+
DragList: Q,
|
|
6327
|
+
DragItem: J,
|
|
6328
|
+
DynamicChapter: tt,
|
|
6329
|
+
DocumentFormMenu: za,
|
|
6330
|
+
DynamicBlock: Ka,
|
|
6331
|
+
DocumentFormViewRadio: on,
|
|
6332
|
+
DocumentFormNav: gn,
|
|
6333
|
+
DocumentDrawer: en,
|
|
6334
|
+
DocumentStyleContainer: it,
|
|
6335
|
+
simplebar: k,
|
|
6336
|
+
LogoBanner: pn,
|
|
6337
|
+
IsPremium: b
|
|
6338
6338
|
},
|
|
6339
6339
|
props: {
|
|
6340
6340
|
_document: {
|
|
@@ -6371,7 +6371,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6371
6371
|
default: !0
|
|
6372
6372
|
}
|
|
6373
6373
|
},
|
|
6374
|
-
mixins: [
|
|
6374
|
+
mixins: [$],
|
|
6375
6375
|
data() {
|
|
6376
6376
|
return {
|
|
6377
6377
|
drawerState: v,
|
|
@@ -6451,7 +6451,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6451
6451
|
async externalReferences(i) {
|
|
6452
6452
|
await Promise.all((i || []).map(async ({ service: e, type: t, typeId: a }) => {
|
|
6453
6453
|
if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
|
|
6454
|
-
const { data: n } = await
|
|
6454
|
+
const { data: n } = await L.getFields(e, { type: t, typeId: a, populated: !0 });
|
|
6455
6455
|
this.setFormValue({
|
|
6456
6456
|
key: "data.fields",
|
|
6457
6457
|
value: { ...this._document.fields, ...n }
|
|
@@ -6462,7 +6462,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6462
6462
|
},
|
|
6463
6463
|
methods: {
|
|
6464
6464
|
onAddBlockMount(i, e) {
|
|
6465
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6465
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ht(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6466
6466
|
},
|
|
6467
6467
|
onBlockToggleVisible(i, e) {
|
|
6468
6468
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6483,7 +6483,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6483
6483
|
const a = i.itemId.split("-")[1];
|
|
6484
6484
|
this.removePackageGroup(a);
|
|
6485
6485
|
} else
|
|
6486
|
-
|
|
6486
|
+
ce(i, (n) => {
|
|
6487
6487
|
n.value && Object.values(n.value).forEach((s) => {
|
|
6488
6488
|
this.removeFormKeyValue(`${s}`);
|
|
6489
6489
|
let o = s.replace(/^data.(?!properties)/g, "data.properties.");
|
|
@@ -6513,7 +6513,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6513
6513
|
if (e !== null && t !== null) {
|
|
6514
6514
|
if (e === t)
|
|
6515
6515
|
return;
|
|
6516
|
-
const n =
|
|
6516
|
+
const n = Re(this.nestedReadLayout, e, t);
|
|
6517
6517
|
this.setFormValue({
|
|
6518
6518
|
key: "template.views.read.nodes",
|
|
6519
6519
|
value: V(n)
|
|
@@ -6531,17 +6531,17 @@ const le = (i, e, t = "$children") => {
|
|
|
6531
6531
|
onAddFnName: D = "onAdd"
|
|
6532
6532
|
} = s({ sectionKey: n, document: this._document, contentData: l });
|
|
6533
6533
|
o({ validation: p, data: C });
|
|
6534
|
-
const
|
|
6534
|
+
const de = Ge({ tree: r }), pe = [
|
|
6535
6535
|
...this.nestedReadLayout.slice(0, t),
|
|
6536
|
-
...
|
|
6536
|
+
...de,
|
|
6537
6537
|
...this.nestedReadLayout.slice(t)
|
|
6538
6538
|
];
|
|
6539
6539
|
this.setFormValue({
|
|
6540
6540
|
key: "template.views.read.nodes",
|
|
6541
|
-
value: V(
|
|
6541
|
+
value: V(pe)
|
|
6542
6542
|
});
|
|
6543
|
-
const [{ nodeId:
|
|
6544
|
-
this.onAddRedis[
|
|
6543
|
+
const [{ nodeId: ue }] = r;
|
|
6544
|
+
this.onAddRedis[ue] = D;
|
|
6545
6545
|
}
|
|
6546
6546
|
},
|
|
6547
6547
|
shouldAnimateDrop(i) {
|
|
@@ -6549,7 +6549,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6549
6549
|
}
|
|
6550
6550
|
}
|
|
6551
6551
|
};
|
|
6552
|
-
var
|
|
6552
|
+
var vn = function() {
|
|
6553
6553
|
var e = this, t = e._self._c;
|
|
6554
6554
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6555
6555
|
"is-edit-view": e.isEditView,
|
|
@@ -6620,32 +6620,94 @@ var gn = function() {
|
|
|
6620
6620
|
} } }, [t("CButton", { staticClass: "absolute top-2 right-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
|
|
6621
6621
|
e.drawerState.openSection = null;
|
|
6622
6622
|
} } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6623
|
-
},
|
|
6623
|
+
}, yn = [function() {
|
|
6624
6624
|
var i = this, e = i._self._c;
|
|
6625
6625
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6626
|
-
}],
|
|
6627
|
-
fn,
|
|
6628
|
-
gn,
|
|
6626
|
+
}], xn = /* @__PURE__ */ c(
|
|
6629
6627
|
Cn,
|
|
6628
|
+
vn,
|
|
6629
|
+
yn,
|
|
6630
6630
|
!1,
|
|
6631
6631
|
null,
|
|
6632
6632
|
"d9b9c0a6",
|
|
6633
6633
|
null,
|
|
6634
6634
|
null
|
|
6635
6635
|
);
|
|
6636
|
-
const
|
|
6636
|
+
const wn = xn.exports;
|
|
6637
|
+
function bn(i, e, t) {
|
|
6638
|
+
return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
|
|
6639
|
+
}
|
|
6640
|
+
var _n = bn, kn = _n, B = je;
|
|
6641
|
+
function Ln(i, e, t) {
|
|
6642
|
+
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = B(t), t = t === t ? t : 0), e !== void 0 && (e = B(e), e = e === e ? e : 0), kn(B(i), e, t);
|
|
6643
|
+
}
|
|
6644
|
+
var $n = Ln;
|
|
6645
|
+
const Sn = /* @__PURE__ */ j($n);
|
|
6646
|
+
const Tn = {
|
|
6647
|
+
name: "RemainingTrialButton",
|
|
6648
|
+
components: { IsPremium: b },
|
|
6649
|
+
i18nOptions: {
|
|
6650
|
+
namespace: "RemainingTrialButton",
|
|
6651
|
+
messages: {
|
|
6652
|
+
sv: {
|
|
6653
|
+
button: "kvar",
|
|
6654
|
+
title: {
|
|
6655
|
+
1: "Prova på",
|
|
6656
|
+
2: "Pro",
|
|
6657
|
+
3: "i {{ trialDaysLeft }} dagar till",
|
|
6658
|
+
4: "Därefter kommer ditt konto nedgraderas till ",
|
|
6659
|
+
5: "Free"
|
|
6660
|
+
},
|
|
6661
|
+
actionButton: "Uppgradera nu"
|
|
6662
|
+
},
|
|
6663
|
+
en: {
|
|
6664
|
+
button: "left",
|
|
6665
|
+
title: {
|
|
6666
|
+
1: "Try",
|
|
6667
|
+
2: "Pro",
|
|
6668
|
+
3: "for {{ trialDaysLeft }} more days",
|
|
6669
|
+
4: "Afterwards your account will get downgraded to",
|
|
6670
|
+
5: "Free"
|
|
6671
|
+
},
|
|
6672
|
+
actionButton: "Upgrade now"
|
|
6673
|
+
}
|
|
6674
|
+
}
|
|
6675
|
+
},
|
|
6676
|
+
methods: {
|
|
6677
|
+
clamp: Sn
|
|
6678
|
+
}
|
|
6679
|
+
};
|
|
6680
|
+
var Dn = function() {
|
|
6681
|
+
var e = this, t = e._self._c;
|
|
6682
|
+
return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ accountType: a, trialDaysLeft: n, openUpgradeModal: s, initialFreePremiumDays: o }) {
|
|
6683
|
+
return [a === "trial" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative flex flex-col justify-center px-2 mr-2 text-xs font-semibold rounded-md cursor-pointer select-none bg-gray-200/50 h-9 backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")))]), t("div", { staticClass: "h-[3px] bg-gray-300 absolute bottom-1 left-2 right-2 rounded-full ring-1 ring-white/10" }, [t("div", { staticClass: "absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500 to-primary-600", style: {
|
|
6684
|
+
width: e.clamp(n / o * 100, 0, 100) + "%"
|
|
6685
|
+
} })])]), t("div", { staticClass: "max-w-[16rem] p-4 text-sm", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-primary-100 border border-primary-200 text-primary-800 rounded-md text-xs" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-gray-200 border border-gray-300 text-gray-600 rounded-md text-xs font-semibold" }, [e._v(e._s(e.$t("title.5")))]), e._v(".")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
|
|
6686
|
+
} }]) });
|
|
6687
|
+
}, Vn = [], Bn = /* @__PURE__ */ c(
|
|
6688
|
+
Tn,
|
|
6689
|
+
Dn,
|
|
6690
|
+
Vn,
|
|
6691
|
+
!1,
|
|
6692
|
+
null,
|
|
6693
|
+
"af995981",
|
|
6694
|
+
null,
|
|
6695
|
+
null
|
|
6696
|
+
);
|
|
6697
|
+
const Mn = Bn.exports, M = H.observable({
|
|
6637
6698
|
canEdit: !1,
|
|
6638
6699
|
isForm: !0,
|
|
6639
6700
|
setFormValue: null
|
|
6640
|
-
}),
|
|
6701
|
+
}), In = {
|
|
6641
6702
|
name: "DocumentForm",
|
|
6642
6703
|
components: {
|
|
6643
|
-
DocumentFormContainer:
|
|
6644
|
-
IsPremium:
|
|
6645
|
-
IsPremiumPreStep:
|
|
6646
|
-
DocumentSend:
|
|
6704
|
+
DocumentFormContainer: wn,
|
|
6705
|
+
IsPremium: b,
|
|
6706
|
+
IsPremiumPreStep: _,
|
|
6707
|
+
DocumentSend: Ri,
|
|
6708
|
+
RemainingTrialButton: Mn
|
|
6647
6709
|
},
|
|
6648
|
-
mixins: [
|
|
6710
|
+
mixins: [ct],
|
|
6649
6711
|
props: {
|
|
6650
6712
|
document: {
|
|
6651
6713
|
type: Object,
|
|
@@ -6692,7 +6754,7 @@ const yn = vn.exports, B = F.observable({
|
|
|
6692
6754
|
default: !0
|
|
6693
6755
|
}
|
|
6694
6756
|
},
|
|
6695
|
-
provide: () => ({ viewSettings:
|
|
6757
|
+
provide: () => ({ viewSettings: M }),
|
|
6696
6758
|
data() {
|
|
6697
6759
|
return {
|
|
6698
6760
|
view: "edit",
|
|
@@ -6703,7 +6765,7 @@ const yn = vn.exports, B = F.observable({
|
|
|
6703
6765
|
canEdit: {
|
|
6704
6766
|
immediate: !0,
|
|
6705
6767
|
handler(i) {
|
|
6706
|
-
|
|
6768
|
+
M.canEdit = !!i;
|
|
6707
6769
|
}
|
|
6708
6770
|
}
|
|
6709
6771
|
},
|
|
@@ -6717,7 +6779,7 @@ const yn = vn.exports, B = F.observable({
|
|
|
6717
6779
|
}
|
|
6718
6780
|
},
|
|
6719
6781
|
created() {
|
|
6720
|
-
this.setFormValue && (
|
|
6782
|
+
this.setFormValue && (M.setFormValue = this.setDocValue);
|
|
6721
6783
|
},
|
|
6722
6784
|
methods: {
|
|
6723
6785
|
isValid() {
|
|
@@ -6732,7 +6794,7 @@ const yn = vn.exports, B = F.observable({
|
|
|
6732
6794
|
},
|
|
6733
6795
|
async saveAsTemplate() {
|
|
6734
6796
|
this.document && this.$modal.show(
|
|
6735
|
-
|
|
6797
|
+
ne,
|
|
6736
6798
|
{
|
|
6737
6799
|
document: this.document,
|
|
6738
6800
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6749,14 +6811,14 @@ const yn = vn.exports, B = F.observable({
|
|
|
6749
6811
|
}
|
|
6750
6812
|
}
|
|
6751
6813
|
};
|
|
6752
|
-
var
|
|
6814
|
+
var Fn = function() {
|
|
6753
6815
|
var e = this, t = e._self._c;
|
|
6754
6816
|
return e.document ? t("div", { staticClass: "flex flex-col w-screen bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
|
|
6755
6817
|
e.view = a;
|
|
6756
6818
|
} } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
|
|
6757
6819
|
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6758
6820
|
return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
6759
|
-
return [t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(o) {
|
|
6821
|
+
return [t("RemainingTrialButton"), t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(o) {
|
|
6760
6822
|
a || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
|
|
6761
6823
|
} } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
|
|
6762
6824
|
return [t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
|
|
@@ -6769,7 +6831,7 @@ var wn = function() {
|
|
|
6769
6831
|
} }], null, !0) })], 1)];
|
|
6770
6832
|
})], 2)];
|
|
6771
6833
|
} }], null, !0) })];
|
|
6772
|
-
} }], null, !1,
|
|
6834
|
+
} }], null, !1, 3477518125) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6773
6835
|
expiresAt: "data.expiresAt",
|
|
6774
6836
|
personalMessage: "data.personalMessage",
|
|
6775
6837
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
@@ -6777,20 +6839,20 @@ var wn = function() {
|
|
|
6777
6839
|
reminders: "data.reminders",
|
|
6778
6840
|
name: "data.name"
|
|
6779
6841
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
|
|
6780
|
-
},
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6842
|
+
}, Hn = [], An = /* @__PURE__ */ c(
|
|
6843
|
+
In,
|
|
6844
|
+
Fn,
|
|
6845
|
+
Hn,
|
|
6784
6846
|
!1,
|
|
6785
6847
|
null,
|
|
6786
6848
|
null,
|
|
6787
6849
|
null,
|
|
6788
6850
|
null
|
|
6789
6851
|
);
|
|
6790
|
-
const
|
|
6791
|
-
const
|
|
6852
|
+
const Pn = An.exports;
|
|
6853
|
+
const En = {
|
|
6792
6854
|
name: "DocumentPostSendStep",
|
|
6793
|
-
mixins: [
|
|
6855
|
+
mixins: [$],
|
|
6794
6856
|
i18nOptions: {
|
|
6795
6857
|
namespaces: "PostDocumentSend",
|
|
6796
6858
|
messages: {
|
|
@@ -6825,7 +6887,7 @@ const Ln = {
|
|
|
6825
6887
|
return this.mq === "sm" ? "100%" : "auto";
|
|
6826
6888
|
},
|
|
6827
6889
|
usesManualDelivery() {
|
|
6828
|
-
const i =
|
|
6890
|
+
const i = I(this.document);
|
|
6829
6891
|
return !i.sms && !i.email;
|
|
6830
6892
|
}
|
|
6831
6893
|
},
|
|
@@ -6840,12 +6902,12 @@ const Ln = {
|
|
|
6840
6902
|
sendDocument: m.DO_SEND_DOCUMENT2
|
|
6841
6903
|
}),
|
|
6842
6904
|
async handleDocumentLinks() {
|
|
6843
|
-
const { id: i } = this.document, e =
|
|
6905
|
+
const { id: i } = this.document, e = I(this.document), t = !e.sms && !e.email;
|
|
6844
6906
|
t && (await this.updateDocument({
|
|
6845
6907
|
id: i,
|
|
6846
6908
|
body: { status: "sent" },
|
|
6847
6909
|
showMessage: !1
|
|
6848
|
-
}),
|
|
6910
|
+
}), ft({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
6849
6911
|
},
|
|
6850
6912
|
async onSend() {
|
|
6851
6913
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -6864,7 +6926,7 @@ const Ln = {
|
|
|
6864
6926
|
body: { isAccepted: !0 },
|
|
6865
6927
|
checksum: a
|
|
6866
6928
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
6867
|
-
|
|
6929
|
+
gt,
|
|
6868
6930
|
{
|
|
6869
6931
|
_document: this.document,
|
|
6870
6932
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -6908,24 +6970,24 @@ const Ln = {
|
|
|
6908
6970
|
}
|
|
6909
6971
|
}
|
|
6910
6972
|
};
|
|
6911
|
-
var
|
|
6973
|
+
var zn = function() {
|
|
6912
6974
|
var e = this, t = e._self._c;
|
|
6913
6975
|
return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
|
|
6914
|
-
},
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6976
|
+
}, Zn = [], On = /* @__PURE__ */ c(
|
|
6977
|
+
En,
|
|
6978
|
+
zn,
|
|
6979
|
+
Zn,
|
|
6918
6980
|
!1,
|
|
6919
6981
|
null,
|
|
6920
6982
|
"673cd86f",
|
|
6921
6983
|
null,
|
|
6922
6984
|
null
|
|
6923
6985
|
);
|
|
6924
|
-
const
|
|
6925
|
-
|
|
6926
|
-
const
|
|
6986
|
+
const Rn = On.exports;
|
|
6987
|
+
H.use(rt);
|
|
6988
|
+
const Gn = {
|
|
6927
6989
|
name: "DocForm",
|
|
6928
|
-
mixins: [
|
|
6990
|
+
mixins: [Ue(["closeFunc", "beforeSave", "beforeSend"])],
|
|
6929
6991
|
i18nOptions: {
|
|
6930
6992
|
namespaces: "widgetDocForm",
|
|
6931
6993
|
messages: {
|
|
@@ -6938,9 +7000,9 @@ const Vn = {
|
|
|
6938
7000
|
}
|
|
6939
7001
|
},
|
|
6940
7002
|
components: {
|
|
6941
|
-
TemplateSelector:
|
|
6942
|
-
DocumentForm:
|
|
6943
|
-
PostSend:
|
|
7003
|
+
TemplateSelector: _2,
|
|
7004
|
+
DocumentForm: Pn,
|
|
7005
|
+
PostSend: Rn
|
|
6944
7006
|
},
|
|
6945
7007
|
props: {
|
|
6946
7008
|
isNew: {
|
|
@@ -6961,7 +7023,7 @@ const Vn = {
|
|
|
6961
7023
|
};
|
|
6962
7024
|
},
|
|
6963
7025
|
computed: {
|
|
6964
|
-
...
|
|
7026
|
+
...We({
|
|
6965
7027
|
company: "application/company",
|
|
6966
7028
|
feature: "application/feature",
|
|
6967
7029
|
can: "application/can",
|
|
@@ -6990,7 +7052,7 @@ const Vn = {
|
|
|
6990
7052
|
(!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
|
|
6991
7053
|
},
|
|
6992
7054
|
methods: {
|
|
6993
|
-
...
|
|
7055
|
+
...qe({
|
|
6994
7056
|
setFormValue: m.SET_FORM_VALUE,
|
|
6995
7057
|
removeFormValue: m.REMOVE_FORM_VALUE,
|
|
6996
7058
|
removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
|
|
@@ -7002,7 +7064,7 @@ const Vn = {
|
|
|
7002
7064
|
async initDoc() {
|
|
7003
7065
|
if (!this.rawDoc)
|
|
7004
7066
|
throw new Error("Missing initiated form document");
|
|
7005
|
-
this.document = new
|
|
7067
|
+
this.document = new Y({
|
|
7006
7068
|
data: this.rawDoc,
|
|
7007
7069
|
can: this.can,
|
|
7008
7070
|
getters: this.$store.getters,
|
|
@@ -7011,7 +7073,7 @@ const Vn = {
|
|
|
7011
7073
|
},
|
|
7012
7074
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7013
7075
|
var n;
|
|
7014
|
-
const a =
|
|
7076
|
+
const a = O1({ ...this.rawDoc }, [
|
|
7015
7077
|
"__tempId",
|
|
7016
7078
|
"externalReferences",
|
|
7017
7079
|
"subscriberCompanyUserIds",
|
|
@@ -7023,7 +7085,7 @@ const Vn = {
|
|
|
7023
7085
|
_formData: a
|
|
7024
7086
|
}) : await this.loadDocumentForm({
|
|
7025
7087
|
templateId: i,
|
|
7026
|
-
formData: t ?
|
|
7088
|
+
formData: t ? Ne(t, a) : null,
|
|
7027
7089
|
_formData: a
|
|
7028
7090
|
}), (n = a == null ? void 0 : a.data) != null && n.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
|
|
7029
7091
|
},
|
|
@@ -7038,7 +7100,10 @@ const Vn = {
|
|
|
7038
7100
|
},
|
|
7039
7101
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7040
7102
|
typeof this.beforeSave == "function" && await this.beforeSave(), i && typeof this.beforeSend == "function" && await this.beforeSend();
|
|
7041
|
-
const e = await this.saveDocument({ doSend: i })
|
|
7103
|
+
const e = await this.saveDocument({ doSend: i });
|
|
7104
|
+
if (!e)
|
|
7105
|
+
return;
|
|
7106
|
+
const t = this.docById(e);
|
|
7042
7107
|
let a;
|
|
7043
7108
|
i && (a = !!(t != null && t.senderClient) || this.isManualDelivery(t)), a ? (this.document = t, this.view = "postSend") : this.close();
|
|
7044
7109
|
},
|
|
@@ -7054,25 +7119,25 @@ const Vn = {
|
|
|
7054
7119
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
7055
7120
|
},
|
|
7056
7121
|
isManualDelivery(i) {
|
|
7057
|
-
const e =
|
|
7122
|
+
const e = I(i);
|
|
7058
7123
|
return !e.sms && !e.email;
|
|
7059
7124
|
}
|
|
7060
7125
|
}
|
|
7061
7126
|
};
|
|
7062
|
-
var
|
|
7127
|
+
var Un = function() {
|
|
7063
7128
|
var e = this, t = e._self._c;
|
|
7064
7129
|
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.document.id ? null : e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
|
|
7065
|
-
},
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7130
|
+
}, Wn = [], qn = /* @__PURE__ */ c(
|
|
7131
|
+
Gn,
|
|
7132
|
+
Un,
|
|
7133
|
+
Wn,
|
|
7069
7134
|
!1,
|
|
7070
7135
|
null,
|
|
7071
7136
|
null,
|
|
7072
7137
|
null,
|
|
7073
7138
|
null
|
|
7074
7139
|
);
|
|
7075
|
-
const
|
|
7140
|
+
const Ss = qn.exports;
|
|
7076
7141
|
export {
|
|
7077
|
-
|
|
7142
|
+
Ss as default
|
|
7078
7143
|
};
|