@cling-se/widget 0.9.12 → 0.9.14
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-6b0621ec.js → AddClientCallout-a6803b1d.js} +5 -5
- package/dist/{AnswerModal-f6cb74d7.js → AnswerModal-71e1ec1c.js} +3 -3
- package/dist/{AttachmentItem-2a4cb524.js → AttachmentItem-f416ae47.js} +3 -3
- package/dist/{BaseDatePicker-2daf62c0.js → BaseDatePicker-72f5722d.js} +1 -1
- package/dist/{BaseInput-a4523348.js → BaseInput-431750bd.js} +1 -1
- package/dist/{BaseUpload-737004ad.js → BaseUpload-3fe41796.js} +18 -18
- package/dist/{BlockMedia-a145fc19.js → BlockMedia-f249e3b5.js} +1 -1
- package/dist/{CCallout-7fb1ad5c.js → CCallout-61f77d70.js} +2 -2
- package/dist/{CDropdownItem-79c8dc70.js → CDropdownItem-7eff8418.js} +63 -61
- package/dist/{CField-2b1118f9.js → CField-8cdc83ce.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-47894df7.js → CSlider.vue_vue_type_style_index_0_lang-d042d835.js} +1 -1
- package/dist/{ClientAutocomplete-3d098904.js → ClientAutocomplete-f81b6da6.js} +2 -2
- package/dist/{ClientModal-d1bf8d0d.js → ClientModal-2c757562.js} +4 -4
- package/dist/{ColorPicker-c61cd86f.js → ColorPicker-da94c878.js} +28 -28
- package/dist/{CompanyModal-46cab2d1.js → CompanyModal-d4436599.js} +3 -3
- package/dist/{ContentWrapper-3251ab37.js → ContentWrapper-3ea6d128.js} +14 -13
- package/dist/{CoverBlockSettings-3ad93db4.js → CoverBlockSettings-906d3cfe.js} +10 -9
- package/dist/{DocAnswer-a0f2853b.js → DocAnswer-a84e76db.js} +4 -4
- package/dist/{DocForm-a4c0a0f1.js → DocForm-b76ac915.js} +562 -641
- package/dist/{DocFormSend-ed982485.js → DocFormSend-2ba64b4e.js} +17 -17
- package/dist/DocLinks-e85cc84a.js +38 -0
- package/dist/{DocModalBase-22abfff9.js → DocModalBase-8243406e.js} +1 -1
- package/dist/{DocPrint-028aa0ed.js → DocPrint-8200bbb1.js} +1 -1
- package/dist/{DocReceipt-3bd27c4a.js → DocReceipt-4a85a7ff.js} +1 -1
- package/dist/{DocSendReminder-8ad0ca86.js → DocSendReminder-84862964.js} +1 -1
- package/dist/{DocTextEditor-8930e458.js → DocTextEditor-f6f5d22b.js} +1107 -1102
- package/dist/{DocTimeline-2ab336f0.js → DocTimeline-842bb019.js} +1 -1
- package/dist/{DocumentClient-441798b5.js → DocumentClient-ccf33079.js} +5 -5
- package/dist/{DocumentLayout-02c32058.js → DocumentLayout-0b5138ff.js} +95 -95
- package/dist/{DocumentLogotype-43ef9231.js → DocumentLogotype-c3347ad9.js} +3 -3
- package/dist/{EmbedInput-996ae0e3.js → EmbedInput-eef02390.js} +2 -2
- package/dist/{EmbedSettings-41af8b9c.js → EmbedSettings-bd64156d.js} +3 -3
- package/dist/{ErrorCallout-d392ffe9.js → ErrorCallout-bce1d8d5.js} +1 -1
- package/dist/{FilePreviewModal-e298691e.js → FilePreviewModal-7835083e.js} +4 -4
- package/dist/{HeaderSettings-687131c9.js → HeaderSettings-fa02c3b4.js} +17 -16
- package/dist/{ImageSelectModal-eec441aa.js → ImageSelectModal-ee8c9284.js} +8 -8
- package/dist/{ImageUploadWrapper-b244cf9e.js → ImageUploadWrapper-fdc46e10.js} +2 -2
- package/dist/{Index-77a7d639.js → Index-0ab509d5.js} +8 -8
- package/dist/{Index-c3a619f4.js → Index-110c0f5c.js} +4 -4
- package/dist/{Index-9ccce76f.js → Index-316d9ece.js} +4 -4
- package/dist/{Index-25ce24cc.js → Index-361d8f26.js} +2 -2
- package/dist/{Index-6c5de42a.js → Index-38391a79.js} +2 -2
- package/dist/{Index-b9b80eae.js → Index-4409ecc5.js} +6 -6
- package/dist/{Index-13b65d9b.js → Index-4684c65d.js} +2 -2
- package/dist/{Index-bf23d7a9.js → Index-4e722302.js} +8 -8
- package/dist/{Index-ee558d21.js → Index-514fb64f.js} +1 -1
- package/dist/{Index-37d3fd60.js → Index-58109821.js} +2 -2
- package/dist/{Index-fd947a18.js → Index-6194280d.js} +14 -13
- package/dist/{Index-d76bf229.js → Index-652d7e86.js} +1 -1
- package/dist/{Index-2b19a264.js → Index-71ee8ebd.js} +2 -2
- package/dist/{Index-7c421b05.js → Index-77a78d15.js} +4 -4
- package/dist/{Index-e2919ed0.js → Index-79f82168.js} +4 -4
- package/dist/{Index-0ed1b84a.js → Index-7a8c5603.js} +2 -2
- package/dist/{Index-6d61f98d.js → Index-8890c55f.js} +15 -14
- package/dist/{Index-5ff95ead.js → Index-89588fde.js} +8 -8
- package/dist/{Index-87cd4771.js → Index-8a0c2725.js} +4 -4
- package/dist/{Index-af3a9b66.js → Index-8c3e783e.js} +4 -4
- package/dist/{Index-62ea070e.js → Index-8d78852a.js} +2 -2
- package/dist/{Index-8c254496.js → Index-94f0221f.js} +4 -4
- package/dist/{Index-01a3b6ed.js → Index-95aaf122.js} +6 -6
- package/dist/{Index-6ca4a7e4.js → Index-9e1a642a.js} +17 -16
- package/dist/{Index-30ebb13c.js → Index-a97989ac.js} +2 -2
- package/dist/{Index-485b35e8.js → Index-b9d73d15.js} +25 -25
- package/dist/{Index-2468cd69.js → Index-cea163a2.js} +14 -13
- package/dist/{Index-a9f197a7.js → Index-d1325e8f.js} +4 -4
- package/dist/{Index-d3225e03.js → Index-d3426b0b.js} +40 -57
- package/dist/{Index-f14261e7.js → Index-e3cace76.js} +3 -3
- package/dist/{Index-a7871ea6.js → Index-e9b0af2d.js} +4 -4
- package/dist/{Index-efa47af4.js → Index-f24190cc.js} +7 -7
- package/dist/{Index-8882ee1b.js → Index-f79e03bb.js} +5 -5
- package/dist/{Index-7d2fe1bd.js → Index-ff5a89f0.js} +5 -5
- package/dist/{InputToggleRow-ee713437.js → InputToggleRow-7fc88908.js} +1 -1
- package/dist/{IsPremiumPreStep-9b5a0a01.js → IsPremiumPreStep-62401338.js} +167 -138
- package/dist/ManualPopover-0476a776.js +53 -0
- package/dist/{MediaWrapper-45257b41.js → MediaWrapper-7de4d3eb.js} +3 -3
- package/dist/{NotBindingText-c2f7c9cb.js → NotBindingText-ffe487e6.js} +2 -2
- package/dist/{PackageGroup-b2aa42da.js → PackageGroup-f0b25406.js} +13 -12
- package/dist/{PdfTerms-2d66043e.js → PdfTerms-91beba8c.js} +4 -4
- package/dist/{PdfViewer-947ee278.js → PdfViewer-46d1a38c.js} +2 -2
- package/dist/{PlainHtml-a3d47a45.js → PlainHtml-e8104d32.js} +1 -1
- package/dist/{PriceHeader-b6a99a57.js → PriceHeader-916cdc9a.js} +16 -15
- package/dist/{SearchApi-c6511bc3.js → SearchApi-8efb3d0b.js} +2 -2
- package/dist/{Setup-60ec3c2a.js → Setup-9f28f773.js} +5 -6
- package/dist/{TermsSettings-836555da.js → TermsSettings-a709e571.js} +6 -6
- package/dist/{ThemeColorRow-672086c3.js → ThemeColorRow-23f560f7.js} +13 -11
- package/dist/{ToggleBinding-3c581fbb.js → ToggleBinding-ea12882f.js} +3 -3
- package/dist/{UploadModal-b3933203.js → UploadModal-b9785d42.js} +3 -3
- package/dist/{VideoPlayerInput-5ad13a27.js → VideoPlayerInput-c139e07a.js} +3 -3
- package/dist/{VideoPlayerSettings-e964804b.js → VideoPlayerSettings-1362d6f5.js} +4 -4
- package/dist/{VideoSelectModal-321b2270.js → VideoSelectModal-a0501d67.js} +7 -7
- package/dist/{answerDocumentMixin-76224b35.js → answerDocumentMixin-e448478a.js} +3 -3
- package/dist/{cssMode-2bf89988.js → cssMode-a748df72.js} +7 -7
- package/dist/{focusDrawerMixin-dffff858.js → focusDrawerMixin-3d6dccd3.js} +1 -1
- package/dist/{formComponentsInstall-57c30f22.js → formComponentsInstall-23e4be0a.js} +12 -12
- package/dist/{formValidationMixin-9d5c1283.js → formValidationMixin-75ac30a4.js} +1 -1
- package/dist/{freemarker2-503b066f.js → freemarker2-e5d901d6.js} +7 -7
- package/dist/{handlebars-8c0c0a90.js → handlebars-bb947f49.js} +7 -7
- package/dist/{html-5b503855.js → html-83e08e1c.js} +7 -7
- package/dist/{htmlMode-b751a462.js → htmlMode-c6ffd393.js} +7 -7
- package/dist/{image-a902f5a5.js → image-5f9f36b5.js} +1 -1
- package/dist/index-0e4e6529.js +99 -0
- package/dist/{index-9a5227ef.js → index-468da570.js} +2 -2
- package/dist/{index-1c1cefec.js → index-58bfded8.js} +4 -4
- package/dist/{index-d81be181.js → index-a65761df.js} +25 -25
- package/dist/{index-a9f8e647.js → index-e6a04cef.js} +10 -9
- package/dist/{index-771f5571.js → index-f0521a5f.js} +4 -4
- package/dist/index.es.js +6 -3
- package/dist/index.umd.js +489 -489
- package/dist/{javascript-2d18f43b.js → javascript-f784800f.js} +8 -8
- package/dist/{jsonMode-95421c7a.js → jsonMode-9fcd41c5.js} +7 -7
- package/dist/{liquid-47ff3277.js → liquid-7433cbb8.js} +7 -7
- package/dist/{main-5532481e.js → main-27338bdb.js} +1242 -1283
- package/dist/{mapFormMixin-218f9749.js → mapFormMixin-08858c9b.js} +1 -1
- package/dist/{publicSenderState-7c91d66d.js → publicSenderState-555493ea.js} +1 -1
- package/dist/{python-afd06bc4.js → python-1f5cdaaf.js} +7 -7
- package/dist/{razor-28875ccf.js → razor-c6de0365.js} +7 -7
- package/dist/{simplebar.min-3682e5c9.js → simplebar.min-4701bd2d.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-cd101772.js → template-4a9f537a.js} +1 -1
- package/dist/{throttle-3a262479.js → throttle-c9487ab5.js} +2 -2
- package/dist/{tinycolor-ca02e626.js → tinycolor-bf607154.js} +1 -1
- package/dist/{tippy.esm-a7740684.js → tippy.esm-b5d60518.js} +5 -5
- package/dist/{tsMode-bc258439.js → tsMode-6d5d0e5e.js} +7 -7
- package/dist/{typescript-ac68850c.js → typescript-8e88020b.js} +7 -7
- package/dist/{utils-b0646315.js → utils-86f144bc.js} +1 -1
- package/dist/{vuedraggable.umd-934a0379.js → vuedraggable.umd-66db3099.js} +1 -1
- package/dist/{xml-a8591419.js → xml-95bc7065.js} +7 -7
- package/package.json +1 -1
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
import { aY as
|
|
2
|
-
import { m as g, a as
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { d as
|
|
6
|
-
import { I,
|
|
7
|
-
import { D as
|
|
8
|
-
import { s as b } from "./simplebar.min-
|
|
9
|
-
import { B as
|
|
10
|
-
import { c as
|
|
11
|
-
import { a as
|
|
12
|
-
import { m as
|
|
13
|
-
import { S as
|
|
14
|
-
import { s as v, f as
|
|
15
|
-
import { f as
|
|
16
|
-
import { F as
|
|
17
|
-
import { S as
|
|
18
|
-
import { o as
|
|
19
|
-
import { s as
|
|
20
|
-
import
|
|
1
|
+
import { aY as pe, aZ as ue, a_ as G, a$ as me, b0 as U, b1 as W, b2 as he, b3 as fe, b4 as ge, b5 as Ce, j as ve, g as m, n as c, s as q, b as u, av as ye, c as f, C as N, b6 as xe, b7 as we, h as $, b8 as be, b9 as _e, A as ke, ba as Le, bb as $e, aX as Se, bc as Te, N as d, a4 as h, aS as y, bd as De, be as Ve, bf as Me, bg as Be, D as Ie, bh as Fe, d as He, i as _, H as Ae, S as Pe, ap as Ee, ae as ze, bi as Ze, V as B, aU as j, aV as K, I as H, bj as T, aW as Oe, bk as Re, bl as V, r as Ge, m as Ue, a as We, bm as qe } from "./main-27338bdb.js";
|
|
2
|
+
import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
+
import "./index-a65761df.js";
|
|
4
|
+
import { v as M } from "./index-805c56e4.js";
|
|
5
|
+
import { d as I, w as k } from "./CDropdownItem-7eff8418.js";
|
|
6
|
+
import { b as Ne, I as F, c as je, a as Y } from "./IsPremiumPreStep-62401338.js";
|
|
7
|
+
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as e1 } from "./DocumentLayout-0b5138ff.js";
|
|
8
|
+
import { s as b } from "./simplebar.min-4701bd2d.js";
|
|
9
|
+
import { B as t1 } from "./BlockMedia-f249e3b5.js";
|
|
10
|
+
import { c as i1, g as a1 } from "./template-4a9f537a.js";
|
|
11
|
+
import { a as n1 } from "./tinycolor-bf607154.js";
|
|
12
|
+
import { m as L } from "./mapFormMixin-08858c9b.js";
|
|
13
|
+
import { S as s1, C as Q, i as o1 } from "./formComponentsInstall-23e4be0a.js";
|
|
14
|
+
import { s as v, f as l1 } from "./focusDrawerMixin-3d6dccd3.js";
|
|
15
|
+
import { f as r1 } from "./formValidationMixin-75ac30a4.js";
|
|
16
|
+
import { F as J, d as c1 } from "./tippy.esm-b5d60518.js";
|
|
17
|
+
import { S as d1 } from "./CSlider.vue_vue_type_style_index_0_lang-d042d835.js";
|
|
18
|
+
import { o as p1, d as u1 } from "./vuedraggable.umd-66db3099.js";
|
|
19
|
+
import { s as m1 } from "./dom-068d1a7b.js";
|
|
20
|
+
import { o as h1 } from "./index-0e4e6529.js";
|
|
21
|
+
import f1 from "./AnswerModal-71e1ec1c.js";
|
|
21
22
|
import "./anime.es-e284c852.js";
|
|
22
|
-
import "./image-
|
|
23
|
+
import "./image-5f9f36b5.js";
|
|
23
24
|
import "./color-71c20583.js";
|
|
24
|
-
import "./BaseDatePicker-
|
|
25
|
-
import "./ErrorCallout-
|
|
26
|
-
import "./AddClientCallout-
|
|
27
|
-
import "./ClientAutocomplete-
|
|
28
|
-
import "./SearchApi-
|
|
29
|
-
import "./ClientModal-
|
|
30
|
-
import "./CCallout-
|
|
31
|
-
import "./CField-
|
|
25
|
+
import "./BaseDatePicker-72f5722d.js";
|
|
26
|
+
import "./ErrorCallout-bce1d8d5.js";
|
|
27
|
+
import "./AddClientCallout-a6803b1d.js";
|
|
28
|
+
import "./ClientAutocomplete-f81b6da6.js";
|
|
29
|
+
import "./SearchApi-8efb3d0b.js";
|
|
30
|
+
import "./ClientModal-2c757562.js";
|
|
31
|
+
import "./CCallout-61f77d70.js";
|
|
32
|
+
import "./CField-8cdc83ce.js";
|
|
32
33
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
33
|
-
import "./ColorPicker-
|
|
34
|
-
var
|
|
35
|
-
function
|
|
34
|
+
import "./ColorPicker-da94c878.js";
|
|
35
|
+
var g1 = pe, C1 = ue, v1 = G;
|
|
36
|
+
function y1(i, e, t) {
|
|
36
37
|
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
37
|
-
var o = e[a], l =
|
|
38
|
-
t(l, o) &&
|
|
38
|
+
var o = e[a], l = g1(i, o);
|
|
39
|
+
t(l, o) && C1(s, v1(o, i), l);
|
|
39
40
|
}
|
|
40
41
|
return s;
|
|
41
42
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
43
|
+
var x1 = y1;
|
|
44
|
+
function w1(i, e) {
|
|
44
45
|
return i != null && e in Object(i);
|
|
45
46
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
var b1 = w1, _1 = me, k1 = U, L1 = "[object Arguments]";
|
|
48
|
+
function $1(i) {
|
|
49
|
+
return k1(i) && _1(i) == L1;
|
|
49
50
|
}
|
|
50
|
-
var
|
|
51
|
+
var S1 = $1, A = S1, T1 = U, X = Object.prototype, D1 = X.hasOwnProperty, V1 = X.propertyIsEnumerable, M1 = A(function() {
|
|
51
52
|
return arguments;
|
|
52
53
|
}()) ? A : function(i) {
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
function
|
|
56
|
-
return typeof i == "number" && i > -1 && i % 1 == 0 && i <=
|
|
54
|
+
return T1(i) && D1.call(i, "callee") && !V1.call(i, "callee");
|
|
55
|
+
}, ee = M1, B1 = 9007199254740991;
|
|
56
|
+
function I1(i) {
|
|
57
|
+
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= B1;
|
|
57
58
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
e =
|
|
59
|
+
var F1 = I1, H1 = G, A1 = ee, P1 = W, E1 = he, z1 = F1, Z1 = fe;
|
|
60
|
+
function O1(i, e, t) {
|
|
61
|
+
e = H1(e, i);
|
|
61
62
|
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
62
|
-
var o =
|
|
63
|
+
var o = Z1(e[a]);
|
|
63
64
|
if (!(s = i != null && t(i, o)))
|
|
64
65
|
break;
|
|
65
66
|
i = i[o];
|
|
66
67
|
}
|
|
67
|
-
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 && z1(n) && E1(o, n) && (P1(i) || A1(i)));
|
|
68
69
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
return i != null &&
|
|
70
|
+
var R1 = O1, G1 = b1, U1 = R1;
|
|
71
|
+
function W1(i, e) {
|
|
72
|
+
return i != null && U1(i, e, G1);
|
|
72
73
|
}
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
return
|
|
76
|
-
return
|
|
74
|
+
var q1 = W1, N1 = x1, j1 = q1;
|
|
75
|
+
function K1(i, e) {
|
|
76
|
+
return N1(i, e, function(t, a) {
|
|
77
|
+
return j1(i, a);
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
80
|
+
var Y1 = K1;
|
|
81
|
+
function Q1(i, e) {
|
|
81
82
|
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
82
83
|
i[n + t] = e[t];
|
|
83
84
|
return i;
|
|
84
85
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
var J1 = Q1, P = ge, X1 = ee, et = W, E = P ? P.isConcatSpreadable : void 0;
|
|
87
|
+
function tt(i) {
|
|
88
|
+
return et(i) || X1(i) || !!(E && i && i[E]);
|
|
88
89
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
90
|
+
var it = tt, at = J1, nt = it;
|
|
91
|
+
function te(i, e, t, a, n) {
|
|
91
92
|
var s = -1, o = i.length;
|
|
92
|
-
for (t || (t =
|
|
93
|
+
for (t || (t = nt), n || (n = []); ++s < o; ) {
|
|
93
94
|
var l = i[s];
|
|
94
|
-
e > 0 && t(l) ? e > 1 ?
|
|
95
|
+
e > 0 && t(l) ? e > 1 ? te(l, e - 1, t, a, n) : at(n, l) : a || (n[n.length] = l);
|
|
95
96
|
}
|
|
96
97
|
return n;
|
|
97
98
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
99
|
+
var st = te, ot = st;
|
|
100
|
+
function lt(i) {
|
|
100
101
|
var e = i == null ? 0 : i.length;
|
|
101
|
-
return e ?
|
|
102
|
+
return e ? ot(i, 1) : [];
|
|
102
103
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
104
|
+
var rt = lt;
|
|
105
|
+
function ct(i, e, t) {
|
|
105
106
|
switch (t.length) {
|
|
106
107
|
case 0:
|
|
107
108
|
return i.call(e);
|
|
@@ -114,56 +115,56 @@ function l1(i, e, t) {
|
|
|
114
115
|
}
|
|
115
116
|
return i.apply(e, t);
|
|
116
117
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
118
|
+
var dt = ct, pt = dt, z = Math.max;
|
|
119
|
+
function ut(i, e, t) {
|
|
119
120
|
return e = z(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
120
121
|
for (var a = arguments, n = -1, s = z(a.length - e, 0), o = Array(s); ++n < s; )
|
|
121
122
|
o[n] = a[e + n];
|
|
122
123
|
n = -1;
|
|
123
124
|
for (var l = Array(e + 1); ++n < e; )
|
|
124
125
|
l[n] = a[n];
|
|
125
|
-
return l[e] = t(o),
|
|
126
|
+
return l[e] = t(o), pt(i, this, l);
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
129
|
+
var mt = ut;
|
|
130
|
+
function ht(i) {
|
|
130
131
|
return function() {
|
|
131
132
|
return i;
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
135
|
+
var ft = ht;
|
|
136
|
+
function gt(i) {
|
|
136
137
|
return i;
|
|
137
138
|
}
|
|
138
|
-
var
|
|
139
|
+
var Ct = gt, vt = ft, Z = Ce, yt = Ct, xt = Z ? function(i, e) {
|
|
139
140
|
return Z(i, "toString", {
|
|
140
141
|
configurable: !0,
|
|
141
142
|
enumerable: !1,
|
|
142
|
-
value:
|
|
143
|
+
value: vt(e),
|
|
143
144
|
writable: !0
|
|
144
145
|
});
|
|
145
|
-
} :
|
|
146
|
-
function
|
|
146
|
+
} : yt, wt = xt, bt = 800, _t = 16, kt = Date.now;
|
|
147
|
+
function Lt(i) {
|
|
147
148
|
var e = 0, t = 0;
|
|
148
149
|
return function() {
|
|
149
|
-
var a =
|
|
150
|
+
var a = kt(), n = _t - (a - t);
|
|
150
151
|
if (t = a, n > 0) {
|
|
151
|
-
if (++e >=
|
|
152
|
+
if (++e >= bt)
|
|
152
153
|
return arguments[0];
|
|
153
154
|
} else
|
|
154
155
|
e = 0;
|
|
155
156
|
return i.apply(void 0, arguments);
|
|
156
157
|
};
|
|
157
158
|
}
|
|
158
|
-
var
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
var $t = Lt, St = wt, Tt = $t, Dt = Tt(St), Vt = Dt, Mt = rt, Bt = mt, It = Vt;
|
|
160
|
+
function Ft(i) {
|
|
161
|
+
return It(Bt(i, void 0, Mt), i + "");
|
|
161
162
|
}
|
|
162
|
-
var
|
|
163
|
-
return i == null ? {} :
|
|
164
|
-
}),
|
|
165
|
-
const
|
|
166
|
-
const
|
|
163
|
+
var Ht = Ft, At = Y1, Pt = Ht, Et = Pt(function(i, e) {
|
|
164
|
+
return i == null ? {} : At(i, e);
|
|
165
|
+
}), zt = Et;
|
|
166
|
+
const Zt = /* @__PURE__ */ ve(zt);
|
|
167
|
+
const Ot = {
|
|
167
168
|
i18nOptions: {
|
|
168
169
|
namespaces: "DocumentTemplateFormModal",
|
|
169
170
|
messages: {
|
|
@@ -216,7 +217,7 @@ const z1 = {
|
|
|
216
217
|
},
|
|
217
218
|
validations: {
|
|
218
219
|
name: {
|
|
219
|
-
required:
|
|
220
|
+
required: M.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
220
221
|
}
|
|
221
222
|
},
|
|
222
223
|
computed: {
|
|
@@ -244,7 +245,7 @@ const z1 = {
|
|
|
244
245
|
this.$refs.input && this.$refs.input.focus();
|
|
245
246
|
},
|
|
246
247
|
methods: {
|
|
247
|
-
...
|
|
248
|
+
...x({
|
|
248
249
|
loadTemplate: m.DO_LOAD_TEMPLATE,
|
|
249
250
|
saveTemplate: m.SAVE_TEMPLATE_FORM,
|
|
250
251
|
updateSettings: m.UPDATE_SETTINGS
|
|
@@ -297,7 +298,7 @@ const z1 = {
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
};
|
|
300
|
-
var
|
|
301
|
+
var Rt = function() {
|
|
301
302
|
var e = this, t = e._self._c;
|
|
302
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) {
|
|
303
304
|
e.name = a;
|
|
@@ -306,18 +307,18 @@ var Z1 = function() {
|
|
|
306
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) {
|
|
307
308
|
e.keepClients = a;
|
|
308
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);
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
}, Gt = [], Ut = /* @__PURE__ */ c(
|
|
311
|
+
Ot,
|
|
312
|
+
Rt,
|
|
313
|
+
Gt,
|
|
313
314
|
!1,
|
|
314
315
|
null,
|
|
315
316
|
"9f39f8ce",
|
|
316
317
|
null,
|
|
317
318
|
null
|
|
318
319
|
);
|
|
319
|
-
const
|
|
320
|
-
function
|
|
320
|
+
const ie = Ut.exports;
|
|
321
|
+
function Wt(i, { availableProducts: e }) {
|
|
321
322
|
if (!i)
|
|
322
323
|
throw new Error("Missing parameter templateId");
|
|
323
324
|
const t = e, a = Object.keys(t).find((n) => {
|
|
@@ -330,10 +331,10 @@ function G1(i, { availableProducts: e }) {
|
|
|
330
331
|
});
|
|
331
332
|
return a ? t[a] : null;
|
|
332
333
|
}
|
|
333
|
-
async function
|
|
334
|
+
async function qt(i) {
|
|
334
335
|
if (!i)
|
|
335
336
|
throw new Error("Missing argument stripeProduct");
|
|
336
|
-
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 ye.createCheckoutSession({
|
|
337
338
|
items: [
|
|
338
339
|
{
|
|
339
340
|
stripePriceStripeId: e.stripeId,
|
|
@@ -345,21 +346,21 @@ async function U1(i) {
|
|
|
345
346
|
}), { redirectUrl: a } = t;
|
|
346
347
|
window.open(a, "_blank");
|
|
347
348
|
}
|
|
348
|
-
function
|
|
349
|
+
function ae(i, { availableProducts: e }) {
|
|
349
350
|
var n, s, o;
|
|
350
351
|
let t = null;
|
|
351
|
-
const a =
|
|
352
|
+
const a = Wt(i.templateId, { availableProducts: e });
|
|
352
353
|
return a && (t = {
|
|
353
354
|
price: q((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
|
|
354
355
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
355
|
-
onBuy: async () =>
|
|
356
|
+
onBuy: async () => qt(a)
|
|
356
357
|
}), t;
|
|
357
358
|
}
|
|
358
|
-
const
|
|
359
|
+
const Nt = {
|
|
359
360
|
name: "GalleryTemplateModal",
|
|
360
361
|
components: {
|
|
361
362
|
simplebar: b,
|
|
362
|
-
DocumentLayout:
|
|
363
|
+
DocumentLayout: Ke
|
|
363
364
|
},
|
|
364
365
|
props: {
|
|
365
366
|
// Instance of template
|
|
@@ -435,7 +436,7 @@ const W1 = {
|
|
|
435
436
|
}
|
|
436
437
|
},
|
|
437
438
|
created() {
|
|
438
|
-
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn =
|
|
439
|
+
this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = xe.on("event", async ({ type: i, action: e, data: t }) => {
|
|
439
440
|
var a;
|
|
440
441
|
if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
|
|
441
442
|
const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
|
|
@@ -446,7 +447,7 @@ const W1 = {
|
|
|
446
447
|
isVisibleApp: !0,
|
|
447
448
|
includePurchaseInfo: !0
|
|
448
449
|
}, o = await this.fetchGallery(s);
|
|
449
|
-
this.privateProduct =
|
|
450
|
+
this.privateProduct = ae(o[0], { availableProducts: this.stripeProducts });
|
|
450
451
|
}
|
|
451
452
|
}));
|
|
452
453
|
},
|
|
@@ -458,7 +459,7 @@ const W1 = {
|
|
|
458
459
|
const i = this.template.id;
|
|
459
460
|
i || (this.templateStat = null);
|
|
460
461
|
try {
|
|
461
|
-
const { data: e } = await
|
|
462
|
+
const { data: e } = await we.get(i);
|
|
462
463
|
this.templateStat = e;
|
|
463
464
|
} catch {
|
|
464
465
|
this.templateStat = null;
|
|
@@ -475,7 +476,7 @@ const W1 = {
|
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
};
|
|
478
|
-
var
|
|
479
|
+
var jt = function() {
|
|
479
480
|
var a, n;
|
|
480
481
|
var e = this, t = e._self._c;
|
|
481
482
|
return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
|
|
@@ -483,17 +484,17 @@ var q1 = function() {
|
|
|
483
484
|
} }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])]) : e._e()]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [e.product ? [e.privateProduct.isPurchased ? t("div", { staticClass: "flex items-center gap-2 p-1 mb-5 text-sm border border-gray-300 rounded-full bg-gray-300/60" }, [t("div", { staticClass: "flex items-center justify-center w-5 h-5 rounded-full bg-primary-500" }, [t("BaseIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(e.$t("_common:purchased", { thing: e.$t("_common:template") })) } })]) : t("CButton", { staticClass: "text-left !justify-start !px-4", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "absolute py-1.5 px-2 text-sm leading-none text-white -translate-y-1/2 border rounded-md right-2 top-1/2 bg-primary-400/80 border-primary-600/60", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), !e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: e.useSelectedTemplate } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e(), (e.product ? (n = e.product) != null && n.isPurchased : e.showSave) ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(s) {
|
|
484
485
|
e.didSave || e.saveAsTemplate();
|
|
485
486
|
} } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()], 2)])]);
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
}, Kt = [], Yt = /* @__PURE__ */ c(
|
|
488
|
+
Nt,
|
|
489
|
+
jt,
|
|
490
|
+
Kt,
|
|
490
491
|
!1,
|
|
491
492
|
null,
|
|
492
493
|
"07b93fb2",
|
|
493
494
|
null,
|
|
494
495
|
null
|
|
495
496
|
);
|
|
496
|
-
const
|
|
497
|
+
const Qt = Yt.exports, Jt = {
|
|
497
498
|
name: "GalleryLogic",
|
|
498
499
|
i18nOptions: {
|
|
499
500
|
namespaces: "GalleryLogic",
|
|
@@ -605,6 +606,9 @@ const K1 = j1.exports, Y1 = {
|
|
|
605
606
|
!i || !i.length || (!this.activeCategory || !i.includes(this.activeCategory)) && this.selectCategory(i[0]);
|
|
606
607
|
}
|
|
607
608
|
},
|
|
609
|
+
beforeCreate() {
|
|
610
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ne);
|
|
611
|
+
},
|
|
608
612
|
async created() {
|
|
609
613
|
var e, t, a, n;
|
|
610
614
|
if (this.canPurchase && await this.loadPrices(), (t = (e = this.$route) == null ? void 0 : e.query) != null && t.list) {
|
|
@@ -618,11 +622,11 @@ const K1 = j1.exports, Y1 = {
|
|
|
618
622
|
const s = this.templateGalleryItems.find(({ id: o }) => o === i);
|
|
619
623
|
this.selectGalleryItem(s);
|
|
620
624
|
} catch (s) {
|
|
621
|
-
|
|
625
|
+
$(s);
|
|
622
626
|
}
|
|
623
627
|
},
|
|
624
628
|
methods: {
|
|
625
|
-
...
|
|
629
|
+
...x({
|
|
626
630
|
loadPrices: m.LOAD_PRICES
|
|
627
631
|
}),
|
|
628
632
|
async loadTemplateGallery() {
|
|
@@ -636,13 +640,13 @@ const K1 = j1.exports, Y1 = {
|
|
|
636
640
|
const e = await this.fetchGallery(i);
|
|
637
641
|
this.templateGalleryItems = (e || []).map((t) => {
|
|
638
642
|
if (this.canPurchase && t.isPurchasable) {
|
|
639
|
-
const a =
|
|
643
|
+
const a = ae(t, { availableProducts: this.stripeProducts });
|
|
640
644
|
a && (t.product = a);
|
|
641
645
|
}
|
|
642
646
|
return t;
|
|
643
647
|
}), this.availableCategoryKeys = e.reduce((t, a) => [.../* @__PURE__ */ new Set([...t, ...a.categories])], []);
|
|
644
648
|
} catch (e) {
|
|
645
|
-
|
|
649
|
+
$(e);
|
|
646
650
|
} finally {
|
|
647
651
|
this.isLoading = !1;
|
|
648
652
|
}
|
|
@@ -655,7 +659,7 @@ const K1 = j1.exports, Y1 = {
|
|
|
655
659
|
isVisibleApp: !0,
|
|
656
660
|
includePurchaseInfo: !0
|
|
657
661
|
}, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
|
|
658
|
-
return a ? (
|
|
662
|
+
return a ? (be(a), new _e(a)) : null;
|
|
659
663
|
},
|
|
660
664
|
onUseTemplate(i) {
|
|
661
665
|
if (!i)
|
|
@@ -678,7 +682,7 @@ const K1 = j1.exports, Y1 = {
|
|
|
678
682
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
679
683
|
};
|
|
680
684
|
this.$modal.show(
|
|
681
|
-
|
|
685
|
+
Qt,
|
|
682
686
|
{
|
|
683
687
|
template: i,
|
|
684
688
|
fetchGallery: this.fetchGallery,
|
|
@@ -733,30 +737,30 @@ const K1 = j1.exports, Y1 = {
|
|
|
733
737
|
selectGalleryItem: this.selectGalleryItem
|
|
734
738
|
});
|
|
735
739
|
}
|
|
736
|
-
},
|
|
737
|
-
var
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
740
|
+
}, Xt = null, e2 = null;
|
|
741
|
+
var t2 = /* @__PURE__ */ c(
|
|
742
|
+
Jt,
|
|
743
|
+
Xt,
|
|
744
|
+
e2,
|
|
741
745
|
!1,
|
|
742
746
|
null,
|
|
743
747
|
null,
|
|
744
748
|
null,
|
|
745
749
|
null
|
|
746
750
|
);
|
|
747
|
-
const
|
|
748
|
-
const
|
|
751
|
+
const i2 = t2.exports;
|
|
752
|
+
const a2 = {
|
|
749
753
|
name: "DocumentIcon",
|
|
750
|
-
truncate:
|
|
754
|
+
truncate: ke,
|
|
751
755
|
inject: {
|
|
752
756
|
components: {
|
|
753
757
|
default: {
|
|
754
|
-
BlockMedia:
|
|
758
|
+
BlockMedia: t1
|
|
755
759
|
}
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
762
|
};
|
|
759
|
-
var
|
|
763
|
+
var n2 = function(e, t) {
|
|
760
764
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
761
765
|
t.data.staticClass,
|
|
762
766
|
t.data.class,
|
|
@@ -770,18 +774,18 @@ var i2 = function(e, t) {
|
|
|
770
774
|
} } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
|
|
771
775
|
backgroundImage: `url(${t.props.thumbnail})`
|
|
772
776
|
} }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
|
|
773
|
-
},
|
|
774
|
-
t2,
|
|
775
|
-
i2,
|
|
777
|
+
}, s2 = [], o2 = /* @__PURE__ */ c(
|
|
776
778
|
a2,
|
|
779
|
+
n2,
|
|
780
|
+
s2,
|
|
777
781
|
!0,
|
|
778
782
|
null,
|
|
779
783
|
"7ebb1c9a",
|
|
780
784
|
null,
|
|
781
785
|
null
|
|
782
786
|
);
|
|
783
|
-
const
|
|
784
|
-
const
|
|
787
|
+
const l2 = o2.exports;
|
|
788
|
+
const r2 = {
|
|
785
789
|
name: "HorizontalScroll",
|
|
786
790
|
components: {
|
|
787
791
|
Simplebar: b
|
|
@@ -828,7 +832,7 @@ const o2 = {
|
|
|
828
832
|
}
|
|
829
833
|
}
|
|
830
834
|
};
|
|
831
|
-
var
|
|
835
|
+
var c2 = function() {
|
|
832
836
|
var e = this, t = e._self._c;
|
|
833
837
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
|
|
834
838
|
return e.go(-1);
|
|
@@ -841,18 +845,18 @@ var l2 = function() {
|
|
|
841
845
|
return e.$emit("expand");
|
|
842
846
|
} } })];
|
|
843
847
|
})], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
|
|
844
|
-
},
|
|
845
|
-
o2,
|
|
846
|
-
l2,
|
|
848
|
+
}, d2 = [], p2 = /* @__PURE__ */ c(
|
|
847
849
|
r2,
|
|
850
|
+
c2,
|
|
851
|
+
d2,
|
|
848
852
|
!1,
|
|
849
853
|
null,
|
|
850
854
|
"15f25c8e",
|
|
851
855
|
null,
|
|
852
856
|
null
|
|
853
857
|
);
|
|
854
|
-
const
|
|
855
|
-
const
|
|
858
|
+
const u2 = p2.exports;
|
|
859
|
+
const m2 = {
|
|
856
860
|
name: "DocumentFormRecent",
|
|
857
861
|
i18nOptions: {
|
|
858
862
|
namespaces: "DocumentFormRecent",
|
|
@@ -885,7 +889,7 @@ const p2 = {
|
|
|
885
889
|
this.onLoadDocuments();
|
|
886
890
|
},
|
|
887
891
|
methods: {
|
|
888
|
-
...
|
|
892
|
+
...x({
|
|
889
893
|
loadDocument: m.LOAD_DOCUMENT2
|
|
890
894
|
}),
|
|
891
895
|
async onInput() {
|
|
@@ -894,7 +898,7 @@ const p2 = {
|
|
|
894
898
|
async fetchDocuments(i) {
|
|
895
899
|
const e = this.query ? 180 : 90, t = {
|
|
896
900
|
createdAt: {
|
|
897
|
-
$gte: this.$formatDate(
|
|
901
|
+
$gte: this.$formatDate(Le(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
|
|
898
902
|
},
|
|
899
903
|
// Only provide or if there is a search query to filter on
|
|
900
904
|
...this.query && {
|
|
@@ -909,7 +913,7 @@ const p2 = {
|
|
|
909
913
|
}
|
|
910
914
|
]
|
|
911
915
|
}
|
|
912
|
-
}, { data: a } = await
|
|
916
|
+
}, { data: a } = await $e.getAll({
|
|
913
917
|
lean: !0,
|
|
914
918
|
filter: encodeURIComponent(JSON.stringify(t)),
|
|
915
919
|
fields: "clients,data.name,createdAt",
|
|
@@ -919,7 +923,7 @@ const p2 = {
|
|
|
919
923
|
}), { items: n = [] } = a || {};
|
|
920
924
|
return n;
|
|
921
925
|
},
|
|
922
|
-
onLoadDocuments:
|
|
926
|
+
onLoadDocuments: I(async function() {
|
|
923
927
|
this.isLoading = !0, this.hasItems = !0;
|
|
924
928
|
const e = await this.fetchDocuments();
|
|
925
929
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -931,7 +935,7 @@ const p2 = {
|
|
|
931
935
|
}
|
|
932
936
|
}
|
|
933
937
|
};
|
|
934
|
-
var
|
|
938
|
+
var h2 = function() {
|
|
935
939
|
var e = this, t = e._self._c;
|
|
936
940
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
|
|
937
941
|
e.query = a;
|
|
@@ -948,18 +952,18 @@ var u2 = function() {
|
|
|
948
952
|
return s.stopPropagation(), e.onSaveDocumentTemplate(a._id);
|
|
949
953
|
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]), t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small", type: "secondary" } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")])], 1) : e._e()]);
|
|
950
954
|
})], 2)]);
|
|
951
|
-
},
|
|
952
|
-
p2,
|
|
953
|
-
u2,
|
|
955
|
+
}, f2 = [], g2 = /* @__PURE__ */ c(
|
|
954
956
|
m2,
|
|
957
|
+
h2,
|
|
958
|
+
f2,
|
|
955
959
|
!1,
|
|
956
960
|
null,
|
|
957
961
|
"0096ccb0",
|
|
958
962
|
null,
|
|
959
963
|
null
|
|
960
964
|
);
|
|
961
|
-
const
|
|
962
|
-
const
|
|
965
|
+
const C2 = g2.exports;
|
|
966
|
+
const v2 = {
|
|
963
967
|
i18nOptions: {
|
|
964
968
|
namespaces: "TemplateSelector",
|
|
965
969
|
messages: {
|
|
@@ -1002,13 +1006,13 @@ const g2 = {
|
|
|
1002
1006
|
}
|
|
1003
1007
|
},
|
|
1004
1008
|
name: "TemplateSelector",
|
|
1005
|
-
mixins: [
|
|
1009
|
+
mixins: [k],
|
|
1006
1010
|
components: {
|
|
1007
|
-
HorizontalScroll:
|
|
1008
|
-
DocumentIcon:
|
|
1009
|
-
DocumentRecent:
|
|
1010
|
-
GalleryLogic:
|
|
1011
|
-
IsPremiumPreStep:
|
|
1011
|
+
HorizontalScroll: u2,
|
|
1012
|
+
DocumentIcon: l2,
|
|
1013
|
+
DocumentRecent: C2,
|
|
1014
|
+
GalleryLogic: i2,
|
|
1015
|
+
IsPremiumPreStep: F
|
|
1012
1016
|
},
|
|
1013
1017
|
props: {
|
|
1014
1018
|
// Used for creating documents form project/client views
|
|
@@ -1098,7 +1102,7 @@ const g2 = {
|
|
|
1098
1102
|
this.loadTemplates();
|
|
1099
1103
|
},
|
|
1100
1104
|
methods: {
|
|
1101
|
-
...
|
|
1105
|
+
...x({
|
|
1102
1106
|
loadTemplatesAction: m.LOAD_TEMPLATES,
|
|
1103
1107
|
loadTemplate: m.LOAD_TEMPLATE,
|
|
1104
1108
|
createTemplate: m.DO_CREATE_TEMPLATE,
|
|
@@ -1119,16 +1123,16 @@ const g2 = {
|
|
|
1119
1123
|
},
|
|
1120
1124
|
async saveTemplate(i) {
|
|
1121
1125
|
try {
|
|
1122
|
-
const { data: e } = i, t =
|
|
1126
|
+
const { data: e } = i, t = Se(e, ["_id", "id", "companyId", "isVisible"]);
|
|
1123
1127
|
return await this.createTemplate({ body: t }), !0;
|
|
1124
1128
|
} catch (e) {
|
|
1125
|
-
|
|
1129
|
+
$(e);
|
|
1126
1130
|
}
|
|
1127
1131
|
return !1;
|
|
1128
1132
|
},
|
|
1129
1133
|
async openTemplateFormModal({ document: i = null, template: e = null }) {
|
|
1130
1134
|
this.$modal.show(
|
|
1131
|
-
|
|
1135
|
+
ie,
|
|
1132
1136
|
{
|
|
1133
1137
|
document: i,
|
|
1134
1138
|
template: e,
|
|
@@ -1145,7 +1149,7 @@ const g2 = {
|
|
|
1145
1149
|
);
|
|
1146
1150
|
},
|
|
1147
1151
|
async fetchGallery(i = {}) {
|
|
1148
|
-
const { data: e } = await
|
|
1152
|
+
const { data: e } = await Te.get(i);
|
|
1149
1153
|
return e;
|
|
1150
1154
|
},
|
|
1151
1155
|
canUseTemplate(i) {
|
|
@@ -1153,7 +1157,7 @@ const g2 = {
|
|
|
1153
1157
|
}
|
|
1154
1158
|
}
|
|
1155
1159
|
};
|
|
1156
|
-
var
|
|
1160
|
+
var y2 = function() {
|
|
1157
1161
|
var e = this, t = e._self._c;
|
|
1158
1162
|
return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "editDocumentLayout" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
1159
1163
|
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
@@ -1198,18 +1202,18 @@ var C2 = function() {
|
|
|
1198
1202
|
} } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
|
|
1199
1203
|
}), 1)], 1)];
|
|
1200
1204
|
} }], null, !1, 4229824708) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
|
|
1201
|
-
},
|
|
1202
|
-
g2,
|
|
1203
|
-
C2,
|
|
1205
|
+
}, x2 = [], w2 = /* @__PURE__ */ c(
|
|
1204
1206
|
v2,
|
|
1207
|
+
y2,
|
|
1208
|
+
x2,
|
|
1205
1209
|
!1,
|
|
1206
1210
|
null,
|
|
1207
1211
|
"b0c014da",
|
|
1208
1212
|
null,
|
|
1209
1213
|
null
|
|
1210
1214
|
);
|
|
1211
|
-
const
|
|
1212
|
-
const
|
|
1215
|
+
const b2 = w2.exports;
|
|
1216
|
+
const _2 = (i) => {
|
|
1213
1217
|
const e = Array(2).fill().map(() => d());
|
|
1214
1218
|
return [
|
|
1215
1219
|
{
|
|
@@ -1231,7 +1235,7 @@ const w2 = (i) => {
|
|
|
1231
1235
|
nodeId: e[1]
|
|
1232
1236
|
}
|
|
1233
1237
|
];
|
|
1234
|
-
},
|
|
1238
|
+
}, k2 = (i, e = "en") => [
|
|
1235
1239
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
|
|
1236
1240
|
{
|
|
1237
1241
|
key: `files-${i}`,
|
|
@@ -1240,13 +1244,13 @@ const w2 = (i) => {
|
|
|
1240
1244
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1241
1245
|
}
|
|
1242
1246
|
}
|
|
1243
|
-
],
|
|
1247
|
+
], L2 = ({ document: i = null }) => {
|
|
1244
1248
|
const e = d(), { language: t } = i || {};
|
|
1245
1249
|
return {
|
|
1246
|
-
readView:
|
|
1247
|
-
validation:
|
|
1250
|
+
readView: _2(e),
|
|
1251
|
+
validation: k2(e, t)
|
|
1248
1252
|
};
|
|
1249
|
-
},
|
|
1253
|
+
}, $2 = () => [
|
|
1250
1254
|
{
|
|
1251
1255
|
itemId: "presentation",
|
|
1252
1256
|
itemType: "presentation",
|
|
@@ -1254,11 +1258,11 @@ const w2 = (i) => {
|
|
|
1254
1258
|
parentId: "0",
|
|
1255
1259
|
nodeId: d()
|
|
1256
1260
|
}
|
|
1257
|
-
],
|
|
1258
|
-
readView:
|
|
1261
|
+
], S2 = () => ({
|
|
1262
|
+
readView: $2(),
|
|
1259
1263
|
validation: []
|
|
1260
1264
|
// all relevant data is either within base doc or company settings etc
|
|
1261
|
-
}),
|
|
1265
|
+
}), T2 = () => {
|
|
1262
1266
|
const i = Array(2).fill().map(() => d());
|
|
1263
1267
|
return [
|
|
1264
1268
|
{
|
|
@@ -1281,19 +1285,19 @@ const w2 = (i) => {
|
|
|
1281
1285
|
// uniqid(),
|
|
1282
1286
|
}
|
|
1283
1287
|
];
|
|
1284
|
-
},
|
|
1288
|
+
}, D2 = (i = "en") => [
|
|
1285
1289
|
{
|
|
1286
1290
|
key: "multiGroupPricing-title",
|
|
1287
1291
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1288
1292
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1289
1293
|
}
|
|
1290
|
-
],
|
|
1294
|
+
], V2 = ({ document: i = null }) => {
|
|
1291
1295
|
const { language: e } = i || {};
|
|
1292
1296
|
return {
|
|
1293
|
-
readView:
|
|
1294
|
-
validation:
|
|
1297
|
+
readView: T2(),
|
|
1298
|
+
validation: D2(e)
|
|
1295
1299
|
};
|
|
1296
|
-
},
|
|
1300
|
+
}, M2 = () => [
|
|
1297
1301
|
{
|
|
1298
1302
|
itemId: "terms",
|
|
1299
1303
|
itemType: "termsDisclaimer",
|
|
@@ -1311,7 +1315,7 @@ const w2 = (i) => {
|
|
|
1311
1315
|
parentId: "0",
|
|
1312
1316
|
nodeId: d()
|
|
1313
1317
|
}
|
|
1314
|
-
],
|
|
1318
|
+
], B2 = () => [
|
|
1315
1319
|
{
|
|
1316
1320
|
key: "terms",
|
|
1317
1321
|
anyOf: [
|
|
@@ -1319,10 +1323,10 @@ const w2 = (i) => {
|
|
|
1319
1323
|
{ type: "null" }
|
|
1320
1324
|
]
|
|
1321
1325
|
}
|
|
1322
|
-
],
|
|
1323
|
-
readView:
|
|
1324
|
-
validation:
|
|
1325
|
-
}),
|
|
1326
|
+
], I2 = () => ({
|
|
1327
|
+
readView: M2(),
|
|
1328
|
+
validation: B2()
|
|
1329
|
+
}), F2 = () => {
|
|
1326
1330
|
const i = Array(5).fill().map(() => d());
|
|
1327
1331
|
return [
|
|
1328
1332
|
{
|
|
@@ -1371,7 +1375,7 @@ const w2 = (i) => {
|
|
|
1371
1375
|
nodeId: i[4]
|
|
1372
1376
|
}
|
|
1373
1377
|
];
|
|
1374
|
-
},
|
|
1378
|
+
}, H2 = () => ({
|
|
1375
1379
|
clients: [{
|
|
1376
1380
|
name: "Pernilla P.",
|
|
1377
1381
|
email: "pernilla@mail.se",
|
|
@@ -1381,20 +1385,20 @@ const w2 = (i) => {
|
|
|
1381
1385
|
deliveryTypes: ["email"],
|
|
1382
1386
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1383
1387
|
}]
|
|
1384
|
-
}),
|
|
1388
|
+
}), A2 = (i = "en") => [
|
|
1385
1389
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1386
1390
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1387
1391
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1388
|
-
],
|
|
1392
|
+
], P2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1389
1393
|
const { language: a } = e || {};
|
|
1390
1394
|
let n = null;
|
|
1391
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1392
|
-
readView:
|
|
1393
|
-
validation:
|
|
1395
|
+
return typeof t == "function" ? n = t() : i && (n = H2()), {
|
|
1396
|
+
readView: F2(),
|
|
1397
|
+
validation: A2(a),
|
|
1394
1398
|
// Client / company will for now always exist on doc and in validation
|
|
1395
1399
|
...n && { data: n }
|
|
1396
1400
|
};
|
|
1397
|
-
},
|
|
1401
|
+
}, E2 = (i) => {
|
|
1398
1402
|
const e = Array(3).fill().map(() => d());
|
|
1399
1403
|
return [
|
|
1400
1404
|
{
|
|
@@ -1423,7 +1427,7 @@ const w2 = (i) => {
|
|
|
1423
1427
|
nodeId: e[2]
|
|
1424
1428
|
}
|
|
1425
1429
|
];
|
|
1426
|
-
},
|
|
1430
|
+
}, z2 = (i) => [
|
|
1427
1431
|
{
|
|
1428
1432
|
key: `estimatedTimeComplete-${i}`,
|
|
1429
1433
|
type: "object",
|
|
@@ -1444,20 +1448,20 @@ const w2 = (i) => {
|
|
|
1444
1448
|
}
|
|
1445
1449
|
}
|
|
1446
1450
|
}
|
|
1447
|
-
],
|
|
1451
|
+
], Z2 = (i) => ({
|
|
1448
1452
|
[`estimatedTimeComplete-${i}`]: {
|
|
1449
1453
|
value: 4,
|
|
1450
1454
|
unitType: "hour"
|
|
1451
1455
|
}
|
|
1452
|
-
}),
|
|
1456
|
+
}), O2 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1453
1457
|
const t = d();
|
|
1454
1458
|
let a = null;
|
|
1455
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1456
|
-
readView:
|
|
1457
|
-
validation:
|
|
1459
|
+
return typeof e == "function" ? a = e(t) : i && (a = Z2(t)), {
|
|
1460
|
+
readView: E2(t),
|
|
1461
|
+
validation: z2(t),
|
|
1458
1462
|
...a && { data: a }
|
|
1459
1463
|
};
|
|
1460
|
-
},
|
|
1464
|
+
}, R2 = () => {
|
|
1461
1465
|
const i = Array(3).fill().map(() => d());
|
|
1462
1466
|
return [
|
|
1463
1467
|
{
|
|
@@ -1491,7 +1495,7 @@ const w2 = (i) => {
|
|
|
1491
1495
|
nodeId: i[2]
|
|
1492
1496
|
}
|
|
1493
1497
|
];
|
|
1494
|
-
},
|
|
1498
|
+
}, G2 = () => [
|
|
1495
1499
|
{
|
|
1496
1500
|
key: "estimatedWorkDates",
|
|
1497
1501
|
type: "object",
|
|
@@ -1500,10 +1504,10 @@ const w2 = (i) => {
|
|
|
1500
1504
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1501
1505
|
}
|
|
1502
1506
|
}
|
|
1503
|
-
],
|
|
1504
|
-
readView:
|
|
1505
|
-
validation:
|
|
1506
|
-
}),
|
|
1507
|
+
], U2 = () => ({
|
|
1508
|
+
readView: R2(),
|
|
1509
|
+
validation: G2()
|
|
1510
|
+
}), W2 = () => {
|
|
1507
1511
|
const i = Array(5).fill().map(() => d());
|
|
1508
1512
|
return [
|
|
1509
1513
|
{
|
|
@@ -1569,7 +1573,7 @@ const w2 = (i) => {
|
|
|
1569
1573
|
nodeId: i[4]
|
|
1570
1574
|
}
|
|
1571
1575
|
];
|
|
1572
|
-
},
|
|
1576
|
+
}, q2 = () => [
|
|
1573
1577
|
{
|
|
1574
1578
|
key: "extraWorkConstruction",
|
|
1575
1579
|
extraWorkConstruction: {
|
|
@@ -1593,11 +1597,11 @@ const w2 = (i) => {
|
|
|
1593
1597
|
}
|
|
1594
1598
|
}
|
|
1595
1599
|
}
|
|
1596
|
-
],
|
|
1597
|
-
readView:
|
|
1598
|
-
validation:
|
|
1600
|
+
], N2 = () => ({
|
|
1601
|
+
readView: W2(),
|
|
1602
|
+
validation: q2()
|
|
1599
1603
|
// Client / company will for now always exist on doc and in validation
|
|
1600
|
-
}),
|
|
1604
|
+
}), j2 = () => {
|
|
1601
1605
|
const i = Array(3).fill().map(() => d());
|
|
1602
1606
|
return [
|
|
1603
1607
|
{
|
|
@@ -1637,7 +1641,7 @@ const w2 = (i) => {
|
|
|
1637
1641
|
nodeId: i[2]
|
|
1638
1642
|
}
|
|
1639
1643
|
];
|
|
1640
|
-
},
|
|
1644
|
+
}, K2 = () => [
|
|
1641
1645
|
{
|
|
1642
1646
|
key: "extraWorkTimeImpact",
|
|
1643
1647
|
anyOf: [
|
|
@@ -1661,10 +1665,10 @@ const w2 = (i) => {
|
|
|
1661
1665
|
}
|
|
1662
1666
|
]
|
|
1663
1667
|
}
|
|
1664
|
-
],
|
|
1665
|
-
readView:
|
|
1666
|
-
validation:
|
|
1667
|
-
}),
|
|
1668
|
+
], Y2 = () => ({
|
|
1669
|
+
readView: j2(),
|
|
1670
|
+
validation: K2()
|
|
1671
|
+
}), Q2 = () => {
|
|
1668
1672
|
const i = Array(5).fill().map(() => d());
|
|
1669
1673
|
return [
|
|
1670
1674
|
{
|
|
@@ -1717,13 +1721,13 @@ const w2 = (i) => {
|
|
|
1717
1721
|
nodeId: i[4]
|
|
1718
1722
|
}
|
|
1719
1723
|
];
|
|
1720
|
-
},
|
|
1724
|
+
}, J2 = () => [
|
|
1721
1725
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1722
1726
|
{ key: "notBinding", type: "boolean" }
|
|
1723
|
-
],
|
|
1724
|
-
readView:
|
|
1725
|
-
validation:
|
|
1726
|
-
}),
|
|
1727
|
+
], X2 = () => ({
|
|
1728
|
+
readView: Q2(),
|
|
1729
|
+
validation: J2()
|
|
1730
|
+
}), ei = (i) => {
|
|
1727
1731
|
const e = Array(2).fill().map(() => d());
|
|
1728
1732
|
return [
|
|
1729
1733
|
{
|
|
@@ -1745,22 +1749,22 @@ const w2 = (i) => {
|
|
|
1745
1749
|
nodeId: e[1]
|
|
1746
1750
|
}
|
|
1747
1751
|
];
|
|
1748
|
-
},
|
|
1752
|
+
}, ti = (i) => [
|
|
1749
1753
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1750
1754
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1751
|
-
],
|
|
1755
|
+
], ii = (i) => ({
|
|
1752
1756
|
[`data.title-${i}`]: "My custom text",
|
|
1753
1757
|
[`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
|
|
1754
|
-
}),
|
|
1758
|
+
}), ai = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1755
1759
|
const t = d();
|
|
1756
1760
|
let a = null;
|
|
1757
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1758
|
-
readView:
|
|
1759
|
-
validation:
|
|
1761
|
+
return typeof e == "function" ? a = e(t) : i && (a = ii(t)), {
|
|
1762
|
+
readView: ei(t),
|
|
1763
|
+
validation: ti(t),
|
|
1760
1764
|
...a && { data: a },
|
|
1761
1765
|
onAddFnName: "conditionalOnAdd"
|
|
1762
1766
|
};
|
|
1763
|
-
},
|
|
1767
|
+
}, ni = (i) => [
|
|
1764
1768
|
{
|
|
1765
1769
|
itemId: "coverBlock",
|
|
1766
1770
|
itemType: "coverBlock",
|
|
@@ -1770,7 +1774,7 @@ const w2 = (i) => {
|
|
|
1770
1774
|
parentId: "0",
|
|
1771
1775
|
nodeId: d()
|
|
1772
1776
|
}
|
|
1773
|
-
],
|
|
1777
|
+
], si = (i, e = "en") => [
|
|
1774
1778
|
{
|
|
1775
1779
|
key: `coverBlock-${i}`,
|
|
1776
1780
|
defaultValue: {
|
|
@@ -1787,7 +1791,7 @@ const w2 = (i) => {
|
|
|
1787
1791
|
},
|
|
1788
1792
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1789
1793
|
}
|
|
1790
|
-
],
|
|
1794
|
+
], oi = (i) => ({
|
|
1791
1795
|
[`data.coverBlock-${i}`]: {
|
|
1792
1796
|
text: "<h1>We know communication</h1>",
|
|
1793
1797
|
cover: {
|
|
@@ -1797,15 +1801,15 @@ const w2 = (i) => {
|
|
|
1797
1801
|
blur: 0
|
|
1798
1802
|
}
|
|
1799
1803
|
}
|
|
1800
|
-
}),
|
|
1804
|
+
}), li = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1801
1805
|
const a = d(), { language: n } = e || {};
|
|
1802
1806
|
let s = null;
|
|
1803
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1804
|
-
readView:
|
|
1805
|
-
validation:
|
|
1807
|
+
return typeof t == "function" ? s = t(a) : i && (s = oi(a)), {
|
|
1808
|
+
readView: ni(a),
|
|
1809
|
+
validation: si(a, n),
|
|
1806
1810
|
...s && { data: s }
|
|
1807
1811
|
};
|
|
1808
|
-
},
|
|
1812
|
+
}, ri = ({ language: i = "en" } = {}) => {
|
|
1809
1813
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1810
1814
|
lng: i
|
|
1811
1815
|
});
|
|
@@ -1950,7 +1954,7 @@ const w2 = (i) => {
|
|
|
1950
1954
|
})
|
|
1951
1955
|
}
|
|
1952
1956
|
];
|
|
1953
|
-
},
|
|
1957
|
+
}, ci = (i) => [
|
|
1954
1958
|
{
|
|
1955
1959
|
itemId: `header-${i}`,
|
|
1956
1960
|
itemType: "header",
|
|
@@ -1960,7 +1964,7 @@ const w2 = (i) => {
|
|
|
1960
1964
|
parentId: "0",
|
|
1961
1965
|
nodeId: d()
|
|
1962
1966
|
}
|
|
1963
|
-
],
|
|
1967
|
+
], di = (i, e = null) => {
|
|
1964
1968
|
const {
|
|
1965
1969
|
language: t = "en",
|
|
1966
1970
|
name: a = "",
|
|
@@ -1971,7 +1975,7 @@ const w2 = (i) => {
|
|
|
1971
1975
|
background: o,
|
|
1972
1976
|
priceSummaryBackground: l,
|
|
1973
1977
|
backgroundFilter: r
|
|
1974
|
-
} = n || {}, p = l || "hsl(228, 52%, 18%)", C =
|
|
1978
|
+
} = n || {}, p = l || "hsl(228, 52%, 18%)", C = n1.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
|
|
1975
1979
|
return [
|
|
1976
1980
|
{
|
|
1977
1981
|
key: `header-${i}`,
|
|
@@ -2012,7 +2016,7 @@ const w2 = (i) => {
|
|
|
2012
2016
|
}
|
|
2013
2017
|
}
|
|
2014
2018
|
];
|
|
2015
|
-
},
|
|
2019
|
+
}, pi = (i) => ({
|
|
2016
2020
|
[`data.header-${i}`]: {
|
|
2017
2021
|
layout: "vertical",
|
|
2018
2022
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -2042,15 +2046,15 @@ const w2 = (i) => {
|
|
|
2042
2046
|
}
|
|
2043
2047
|
]
|
|
2044
2048
|
}
|
|
2045
|
-
}),
|
|
2049
|
+
}), ui = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
2046
2050
|
const a = d();
|
|
2047
2051
|
let n = null;
|
|
2048
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2049
|
-
readView:
|
|
2050
|
-
validation:
|
|
2052
|
+
return typeof t == "function" ? n = t(a) : i && (n = pi(a)), {
|
|
2053
|
+
readView: ci(a),
|
|
2054
|
+
validation: di(a, e),
|
|
2051
2055
|
...n && { data: n }
|
|
2052
2056
|
};
|
|
2053
|
-
},
|
|
2057
|
+
}, mi = ({ language: i = "en" } = {}) => {
|
|
2054
2058
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
2055
2059
|
lng: i,
|
|
2056
2060
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2350,7 +2354,7 @@ h.loadOptions({
|
|
|
2350
2354
|
}
|
|
2351
2355
|
}
|
|
2352
2356
|
});
|
|
2353
|
-
const
|
|
2357
|
+
const hi = (i) => {
|
|
2354
2358
|
const e = Array(2).fill().map(() => d());
|
|
2355
2359
|
return [
|
|
2356
2360
|
{
|
|
@@ -2375,7 +2379,7 @@ const ui = (i) => {
|
|
|
2375
2379
|
nodeId: e[1]
|
|
2376
2380
|
}
|
|
2377
2381
|
];
|
|
2378
|
-
},
|
|
2382
|
+
}, fi = (i, e = "en") => [
|
|
2379
2383
|
{
|
|
2380
2384
|
key: `packageGroups.${i}`,
|
|
2381
2385
|
validationKey: "packageGroups",
|
|
@@ -2395,11 +2399,11 @@ const ui = (i) => {
|
|
|
2395
2399
|
},
|
|
2396
2400
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2397
2401
|
}
|
|
2398
|
-
],
|
|
2402
|
+
], gi = () => null, Ci = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2399
2403
|
const a = d(), { language: n } = e || {};
|
|
2400
2404
|
let s = null;
|
|
2401
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2402
|
-
const o =
|
|
2405
|
+
typeof t == "function" ? s = t(a) : i && (s = gi());
|
|
2406
|
+
const o = hi(a), l = fi(a, n);
|
|
2403
2407
|
return {
|
|
2404
2408
|
readView: o,
|
|
2405
2409
|
validation: l,
|
|
@@ -2491,7 +2495,7 @@ h.loadOptions({
|
|
|
2491
2495
|
}
|
|
2492
2496
|
}
|
|
2493
2497
|
});
|
|
2494
|
-
const
|
|
2498
|
+
const vi = ({
|
|
2495
2499
|
language: i = "en",
|
|
2496
2500
|
currency: e = "USD",
|
|
2497
2501
|
_getters: t,
|
|
@@ -2564,7 +2568,7 @@ const gi = ({
|
|
|
2564
2568
|
},
|
|
2565
2569
|
articles: [
|
|
2566
2570
|
...a,
|
|
2567
|
-
|
|
2571
|
+
y({
|
|
2568
2572
|
vat: n,
|
|
2569
2573
|
showPrice: s,
|
|
2570
2574
|
currency: e,
|
|
@@ -2693,7 +2697,7 @@ const gi = ({
|
|
|
2693
2697
|
},
|
|
2694
2698
|
articles: [
|
|
2695
2699
|
...a,
|
|
2696
|
-
|
|
2700
|
+
y({
|
|
2697
2701
|
vat: n,
|
|
2698
2702
|
showPrice: s,
|
|
2699
2703
|
currency: e,
|
|
@@ -2701,7 +2705,7 @@ const gi = ({
|
|
|
2701
2705
|
name: o("radio.artA"),
|
|
2702
2706
|
price: 1e5
|
|
2703
2707
|
}),
|
|
2704
|
-
|
|
2708
|
+
y({
|
|
2705
2709
|
vat: n,
|
|
2706
2710
|
showPrice: s,
|
|
2707
2711
|
currency: e,
|
|
@@ -2827,7 +2831,7 @@ const gi = ({
|
|
|
2827
2831
|
},
|
|
2828
2832
|
articles: [
|
|
2829
2833
|
...a,
|
|
2830
|
-
|
|
2834
|
+
y({
|
|
2831
2835
|
vat: n,
|
|
2832
2836
|
showPrice: s,
|
|
2833
2837
|
currency: e,
|
|
@@ -2835,7 +2839,7 @@ const gi = ({
|
|
|
2835
2839
|
name: o("checkbox.artBase"),
|
|
2836
2840
|
price: 1e5
|
|
2837
2841
|
}),
|
|
2838
|
-
|
|
2842
|
+
y({
|
|
2839
2843
|
vat: n,
|
|
2840
2844
|
showPrice: s,
|
|
2841
2845
|
currency: e,
|
|
@@ -2848,7 +2852,7 @@ const gi = ({
|
|
|
2848
2852
|
}
|
|
2849
2853
|
}
|
|
2850
2854
|
];
|
|
2851
|
-
},
|
|
2855
|
+
}, yi = (i) => [
|
|
2852
2856
|
{
|
|
2853
2857
|
itemId: "embed",
|
|
2854
2858
|
itemType: "embed",
|
|
@@ -2862,7 +2866,7 @@ const gi = ({
|
|
|
2862
2866
|
parentId: "0",
|
|
2863
2867
|
nodeId: d()
|
|
2864
2868
|
}
|
|
2865
|
-
],
|
|
2869
|
+
], xi = (i) => [
|
|
2866
2870
|
{
|
|
2867
2871
|
key: `embed-${i}`,
|
|
2868
2872
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2871,12 +2875,12 @@ const gi = ({
|
|
|
2871
2875
|
size: "small"
|
|
2872
2876
|
}
|
|
2873
2877
|
}
|
|
2874
|
-
],
|
|
2878
|
+
], wi = () => null, bi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2875
2879
|
const a = d();
|
|
2876
2880
|
let n = null;
|
|
2877
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2878
|
-
readView:
|
|
2879
|
-
validation:
|
|
2881
|
+
return typeof t == "function" ? n = t(a) : i && (n = wi()), {
|
|
2882
|
+
readView: yi(a),
|
|
2883
|
+
validation: xi(a),
|
|
2880
2884
|
...n && { data: n }
|
|
2881
2885
|
};
|
|
2882
2886
|
};
|
|
@@ -2891,7 +2895,7 @@ h.loadOptions({
|
|
|
2891
2895
|
}
|
|
2892
2896
|
}
|
|
2893
2897
|
});
|
|
2894
|
-
const
|
|
2898
|
+
const _i = ({ language: i = "en" } = {}) => [
|
|
2895
2899
|
{
|
|
2896
2900
|
previewUrl: `
|
|
2897
2901
|
<div style="position: relative;">
|
|
@@ -3183,7 +3187,7 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3183
3187
|
}
|
|
3184
3188
|
})
|
|
3185
3189
|
}
|
|
3186
|
-
],
|
|
3190
|
+
], ki = (i) => [
|
|
3187
3191
|
{
|
|
3188
3192
|
itemId: "videoPlayer",
|
|
3189
3193
|
itemType: "videoPlayer",
|
|
@@ -3196,7 +3200,7 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3196
3200
|
parentId: "0",
|
|
3197
3201
|
nodeId: d()
|
|
3198
3202
|
}
|
|
3199
|
-
],
|
|
3203
|
+
], Li = (i) => [
|
|
3200
3204
|
{
|
|
3201
3205
|
key: `video-${i}`,
|
|
3202
3206
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3207,7 +3211,7 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3207
3211
|
}
|
|
3208
3212
|
}
|
|
3209
3213
|
}
|
|
3210
|
-
],
|
|
3214
|
+
], $i = (i) => ({
|
|
3211
3215
|
[`data.video-${i}`]: {
|
|
3212
3216
|
size: "small",
|
|
3213
3217
|
video: {
|
|
@@ -3216,15 +3220,15 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3216
3220
|
id: "166JEb6qkr4"
|
|
3217
3221
|
}
|
|
3218
3222
|
}
|
|
3219
|
-
}),
|
|
3223
|
+
}), Si = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3220
3224
|
const t = d();
|
|
3221
3225
|
let a = null;
|
|
3222
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3223
|
-
readView:
|
|
3224
|
-
validation:
|
|
3226
|
+
return typeof e == "function" ? a = e(t) : i && (a = $i(t)), {
|
|
3227
|
+
readView: ki(t),
|
|
3228
|
+
validation: Li(t),
|
|
3225
3229
|
...a && { data: a }
|
|
3226
3230
|
};
|
|
3227
|
-
},
|
|
3231
|
+
}, Ti = ({ language: i = "en" } = {}) => [
|
|
3228
3232
|
{
|
|
3229
3233
|
previewUrl: `
|
|
3230
3234
|
<div style="position: relative;">
|
|
@@ -3426,34 +3430,34 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3426
3430
|
})
|
|
3427
3431
|
}
|
|
3428
3432
|
], O = {
|
|
3429
|
-
titleAndText2:
|
|
3430
|
-
attachments2:
|
|
3431
|
-
pdf:
|
|
3432
|
-
packageGroup:
|
|
3433
|
-
multiGroupPricing:
|
|
3434
|
-
coverBlock:
|
|
3435
|
-
videoPlayer:
|
|
3436
|
-
embed:
|
|
3437
|
-
header:
|
|
3438
|
-
answer:
|
|
3439
|
-
terms:
|
|
3440
|
-
parties:
|
|
3441
|
-
custom:
|
|
3433
|
+
titleAndText2: ai,
|
|
3434
|
+
attachments2: L2,
|
|
3435
|
+
pdf: De,
|
|
3436
|
+
packageGroup: Ci,
|
|
3437
|
+
multiGroupPricing: V2,
|
|
3438
|
+
coverBlock: li,
|
|
3439
|
+
videoPlayer: Si,
|
|
3440
|
+
embed: bi,
|
|
3441
|
+
header: ui,
|
|
3442
|
+
answer: Ve,
|
|
3443
|
+
terms: I2,
|
|
3444
|
+
parties: P2,
|
|
3445
|
+
custom: a1,
|
|
3442
3446
|
// legacy
|
|
3443
|
-
presentation:
|
|
3444
|
-
estimatedTimeCompleted:
|
|
3445
|
-
estimatedWorkStartAndEndAtText:
|
|
3446
|
-
extraWorkConstructionPricingList:
|
|
3447
|
-
extraWorkTimeImpactText:
|
|
3448
|
-
notBinding:
|
|
3447
|
+
presentation: S2,
|
|
3448
|
+
estimatedTimeCompleted: O2,
|
|
3449
|
+
estimatedWorkStartAndEndAtText: U2,
|
|
3450
|
+
extraWorkConstructionPricingList: N2,
|
|
3451
|
+
extraWorkTimeImpactText: Y2,
|
|
3452
|
+
notBinding: X2
|
|
3449
3453
|
}, R = {
|
|
3450
|
-
coverBlock:
|
|
3451
|
-
header:
|
|
3452
|
-
packageGroup:
|
|
3453
|
-
embed:
|
|
3454
|
-
videoPlayer:
|
|
3455
|
-
custom:
|
|
3456
|
-
},
|
|
3454
|
+
coverBlock: ri,
|
|
3455
|
+
header: mi,
|
|
3456
|
+
packageGroup: vi,
|
|
3457
|
+
embed: _i,
|
|
3458
|
+
videoPlayer: Ti,
|
|
3459
|
+
custom: i1
|
|
3460
|
+
}, Di = {
|
|
3457
3461
|
name: "AddBlock",
|
|
3458
3462
|
props: {
|
|
3459
3463
|
set: {
|
|
@@ -3474,22 +3478,22 @@ const wi = ({ language: i = "en" } = {}) => [
|
|
|
3474
3478
|
includeMockData: this.includeMockData,
|
|
3475
3479
|
emit: (...e) => this.$emit(...e)
|
|
3476
3480
|
}),
|
|
3477
|
-
getBlockPayload: (i) =>
|
|
3481
|
+
getBlockPayload: (i) => Be(i, this.set, O, this.includeMockdata)
|
|
3478
3482
|
});
|
|
3479
3483
|
}
|
|
3480
|
-
},
|
|
3481
|
-
var
|
|
3482
|
-
Si,
|
|
3483
|
-
Ti,
|
|
3484
|
+
}, Vi = null, Mi = null;
|
|
3485
|
+
var Bi = /* @__PURE__ */ c(
|
|
3484
3486
|
Di,
|
|
3487
|
+
Vi,
|
|
3488
|
+
Mi,
|
|
3485
3489
|
!1,
|
|
3486
3490
|
null,
|
|
3487
3491
|
null,
|
|
3488
3492
|
null,
|
|
3489
3493
|
null
|
|
3490
3494
|
);
|
|
3491
|
-
const
|
|
3492
|
-
const
|
|
3495
|
+
const ne = Bi.exports;
|
|
3496
|
+
const Ii = {
|
|
3493
3497
|
name: "Drawer",
|
|
3494
3498
|
props: {
|
|
3495
3499
|
value: {
|
|
@@ -3532,7 +3536,7 @@ const Bi = {
|
|
|
3532
3536
|
}
|
|
3533
3537
|
}
|
|
3534
3538
|
};
|
|
3535
|
-
var
|
|
3539
|
+
var Fi = function() {
|
|
3536
3540
|
var e = this, t = e._self._c;
|
|
3537
3541
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3538
3542
|
zIndex: e.zIndex
|
|
@@ -3548,18 +3552,18 @@ var Mi = function() {
|
|
|
3548
3552
|
boxShadow: e.boxShadow,
|
|
3549
3553
|
...e.contentStyle
|
|
3550
3554
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3551
|
-
},
|
|
3552
|
-
Bi,
|
|
3553
|
-
Mi,
|
|
3555
|
+
}, Hi = [], Ai = /* @__PURE__ */ c(
|
|
3554
3556
|
Ii,
|
|
3557
|
+
Fi,
|
|
3558
|
+
Hi,
|
|
3555
3559
|
!1,
|
|
3556
3560
|
null,
|
|
3557
3561
|
"3cb13e4e",
|
|
3558
3562
|
null,
|
|
3559
3563
|
null
|
|
3560
3564
|
);
|
|
3561
|
-
const
|
|
3562
|
-
const
|
|
3565
|
+
const se = Ai.exports;
|
|
3566
|
+
const Pi = {
|
|
3563
3567
|
name: "DocumentSend",
|
|
3564
3568
|
i18nOptions: {
|
|
3565
3569
|
namespaces: "documentSend",
|
|
@@ -3583,19 +3587,19 @@ const Hi = {
|
|
|
3583
3587
|
}
|
|
3584
3588
|
},
|
|
3585
3589
|
components: {
|
|
3586
|
-
AddBlock:
|
|
3587
|
-
Drawer:
|
|
3588
|
-
SendForm:
|
|
3589
|
-
CCheckbox:
|
|
3590
|
-
BaseIcon:
|
|
3591
|
-
CButton:
|
|
3590
|
+
AddBlock: ne,
|
|
3591
|
+
Drawer: se,
|
|
3592
|
+
SendForm: s1,
|
|
3593
|
+
CCheckbox: Ie,
|
|
3594
|
+
BaseIcon: Fe,
|
|
3595
|
+
CButton: He
|
|
3592
3596
|
},
|
|
3593
3597
|
mixins: [
|
|
3594
|
-
|
|
3598
|
+
L([], {
|
|
3595
3599
|
useEmit: !1,
|
|
3596
3600
|
setFnName: "setFormValue"
|
|
3597
3601
|
}),
|
|
3598
|
-
|
|
3602
|
+
k
|
|
3599
3603
|
],
|
|
3600
3604
|
props: {
|
|
3601
3605
|
setFormValue: {
|
|
@@ -3613,7 +3617,6 @@ const Hi = {
|
|
|
3613
3617
|
},
|
|
3614
3618
|
data() {
|
|
3615
3619
|
return {
|
|
3616
|
-
localIsPosting: !1,
|
|
3617
3620
|
isOpen: !1,
|
|
3618
3621
|
saveTemplate: !1,
|
|
3619
3622
|
saveTemplateTooltip: {
|
|
@@ -3649,7 +3652,7 @@ const Hi = {
|
|
|
3649
3652
|
!this.isPublicForm && ((i = window.App) != null && i.$fab) && (window.App.$fab.show = !0);
|
|
3650
3653
|
},
|
|
3651
3654
|
methods: {
|
|
3652
|
-
...
|
|
3655
|
+
...x({
|
|
3653
3656
|
createTemplate: m.DO_CREATE_TEMPLATE
|
|
3654
3657
|
}),
|
|
3655
3658
|
open() {
|
|
@@ -3672,7 +3675,7 @@ const Hi = {
|
|
|
3672
3675
|
}
|
|
3673
3676
|
}
|
|
3674
3677
|
};
|
|
3675
|
-
var
|
|
3678
|
+
var Ei = function() {
|
|
3676
3679
|
var e = this, t = e._self._c;
|
|
3677
3680
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3678
3681
|
e.isOpen = a;
|
|
@@ -3684,20 +3687,20 @@ var Ai = function() {
|
|
|
3684
3687
|
return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
|
|
3685
3688
|
return a({ sectionKey: "answer" });
|
|
3686
3689
|
} } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
|
|
3687
|
-
} }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send",
|
|
3690
|
+
} }], null, !1, 2898075047) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(a) {
|
|
3688
3691
|
e.saveTemplate = a;
|
|
3689
3692
|
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)], 1)], 1)]) : e._e();
|
|
3690
|
-
},
|
|
3691
|
-
Hi,
|
|
3692
|
-
Ai,
|
|
3693
|
+
}, zi = [], Zi = /* @__PURE__ */ c(
|
|
3693
3694
|
Pi,
|
|
3695
|
+
Ei,
|
|
3696
|
+
zi,
|
|
3694
3697
|
!1,
|
|
3695
3698
|
null,
|
|
3696
|
-
"
|
|
3699
|
+
"057840fe",
|
|
3697
3700
|
null,
|
|
3698
3701
|
null
|
|
3699
3702
|
);
|
|
3700
|
-
const
|
|
3703
|
+
const Oi = Zi.exports, Ri = {
|
|
3701
3704
|
name: "Draggable",
|
|
3702
3705
|
data() {
|
|
3703
3706
|
return {
|
|
@@ -3729,21 +3732,21 @@ const zi = Ei.exports, Zi = {
|
|
|
3729
3732
|
dragMousedown: this.onDragMouseDown
|
|
3730
3733
|
});
|
|
3731
3734
|
}
|
|
3732
|
-
},
|
|
3733
|
-
var
|
|
3734
|
-
Zi,
|
|
3735
|
-
Oi,
|
|
3735
|
+
}, Gi = null, Ui = null;
|
|
3736
|
+
var Wi = /* @__PURE__ */ c(
|
|
3736
3737
|
Ri,
|
|
3738
|
+
Gi,
|
|
3739
|
+
Ui,
|
|
3737
3740
|
!1,
|
|
3738
3741
|
null,
|
|
3739
3742
|
null,
|
|
3740
3743
|
null,
|
|
3741
3744
|
null
|
|
3742
3745
|
);
|
|
3743
|
-
const
|
|
3744
|
-
const
|
|
3746
|
+
const qi = Wi.exports;
|
|
3747
|
+
const Ni = {
|
|
3745
3748
|
components: {
|
|
3746
|
-
Draggable:
|
|
3749
|
+
Draggable: qi
|
|
3747
3750
|
},
|
|
3748
3751
|
props: {
|
|
3749
3752
|
offset: {
|
|
@@ -3756,7 +3759,7 @@ const Wi = {
|
|
|
3756
3759
|
}
|
|
3757
3760
|
}
|
|
3758
3761
|
};
|
|
3759
|
-
var
|
|
3762
|
+
var ji = function() {
|
|
3760
3763
|
var e = this, t = e._self._c;
|
|
3761
3764
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3762
3765
|
return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
|
|
@@ -3766,29 +3769,29 @@ var qi = function() {
|
|
|
3766
3769
|
return e.$emit("close");
|
|
3767
3770
|
} } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
|
|
3768
3771
|
} }], null, !0) })], 1);
|
|
3769
|
-
},
|
|
3770
|
-
Wi,
|
|
3771
|
-
qi,
|
|
3772
|
+
}, Ki = [], Yi = /* @__PURE__ */ c(
|
|
3772
3773
|
Ni,
|
|
3774
|
+
ji,
|
|
3775
|
+
Ki,
|
|
3773
3776
|
!1,
|
|
3774
3777
|
null,
|
|
3775
3778
|
"9b75010b",
|
|
3776
3779
|
null,
|
|
3777
3780
|
null
|
|
3778
3781
|
);
|
|
3779
|
-
const
|
|
3780
|
-
const
|
|
3782
|
+
const oe = Yi.exports;
|
|
3783
|
+
const Qi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Qi), Ji = {
|
|
3781
3784
|
i18nOptions: {
|
|
3782
3785
|
namespaces: "common",
|
|
3783
3786
|
keyPrefix: "designLabels"
|
|
3784
3787
|
},
|
|
3785
3788
|
name: "Design",
|
|
3786
3789
|
components: {
|
|
3787
|
-
FormInputRow:
|
|
3788
|
-
DragWindow:
|
|
3790
|
+
FormInputRow: J,
|
|
3791
|
+
DragWindow: oe
|
|
3789
3792
|
},
|
|
3790
3793
|
mixins: [
|
|
3791
|
-
|
|
3794
|
+
L(
|
|
3792
3795
|
["css"],
|
|
3793
3796
|
{ useEmit: !1, setFnName: "set" }
|
|
3794
3797
|
)
|
|
@@ -3874,7 +3877,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
3874
3877
|
weight: n,
|
|
3875
3878
|
options: s = []
|
|
3876
3879
|
}) => {
|
|
3877
|
-
this.update(i, a),
|
|
3880
|
+
this.update(i, a), Ye(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
|
|
3878
3881
|
}
|
|
3879
3882
|
}
|
|
3880
3883
|
]
|
|
@@ -4319,7 +4322,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
4319
4322
|
watch: {
|
|
4320
4323
|
async activeItem(i) {
|
|
4321
4324
|
const e = u(i, "style.fontFamily");
|
|
4322
|
-
e && (this.fontWeightOptions = await
|
|
4325
|
+
e && (this.fontWeightOptions = await Qe(e));
|
|
4323
4326
|
}
|
|
4324
4327
|
},
|
|
4325
4328
|
methods: {
|
|
@@ -4331,7 +4334,7 @@ const Ki = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Ki), Yi = {
|
|
|
4331
4334
|
}
|
|
4332
4335
|
}
|
|
4333
4336
|
};
|
|
4334
|
-
var
|
|
4337
|
+
var Xi = function() {
|
|
4335
4338
|
var e = this, t = e._self._c;
|
|
4336
4339
|
return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
|
|
4337
4340
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4350,18 +4353,18 @@ var Qi = function() {
|
|
|
4350
4353
|
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
|
|
4351
4354
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4352
4355
|
}), 1) : e._e()], 1);
|
|
4353
|
-
},
|
|
4354
|
-
Yi,
|
|
4355
|
-
Qi,
|
|
4356
|
+
}, ea = [], ta = /* @__PURE__ */ c(
|
|
4356
4357
|
Ji,
|
|
4358
|
+
Xi,
|
|
4359
|
+
ea,
|
|
4357
4360
|
!1,
|
|
4358
4361
|
null,
|
|
4359
4362
|
"930a4202",
|
|
4360
4363
|
null,
|
|
4361
4364
|
null
|
|
4362
4365
|
);
|
|
4363
|
-
const
|
|
4364
|
-
const
|
|
4366
|
+
const ia = ta.exports;
|
|
4367
|
+
const aa = {
|
|
4365
4368
|
name: "FieldsModal",
|
|
4366
4369
|
i18nOptions: {
|
|
4367
4370
|
namespaces: "FieldsModal",
|
|
@@ -4395,7 +4398,7 @@ const ta = {
|
|
|
4395
4398
|
}
|
|
4396
4399
|
},
|
|
4397
4400
|
components: {
|
|
4398
|
-
CField:
|
|
4401
|
+
CField: Q
|
|
4399
4402
|
},
|
|
4400
4403
|
props: {
|
|
4401
4404
|
document: {
|
|
@@ -4426,12 +4429,12 @@ const ta = {
|
|
|
4426
4429
|
validations: {
|
|
4427
4430
|
form: {
|
|
4428
4431
|
label: {
|
|
4429
|
-
required:
|
|
4432
|
+
required: M.required,
|
|
4430
4433
|
isUniqueLabel(i) {
|
|
4431
4434
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4432
4435
|
}
|
|
4433
4436
|
},
|
|
4434
|
-
value: { required:
|
|
4437
|
+
value: { required: M.required }
|
|
4435
4438
|
}
|
|
4436
4439
|
},
|
|
4437
4440
|
computed: {
|
|
@@ -4471,12 +4474,12 @@ const ta = {
|
|
|
4471
4474
|
remove() {
|
|
4472
4475
|
if (!this.existingFieldId)
|
|
4473
4476
|
return;
|
|
4474
|
-
const i =
|
|
4477
|
+
const i = p1(this.document.fields, [this.existingFieldId]);
|
|
4475
4478
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4476
4479
|
}
|
|
4477
4480
|
}
|
|
4478
4481
|
};
|
|
4479
|
-
var
|
|
4482
|
+
var na = function() {
|
|
4480
4483
|
var e = this, t = e._self._c;
|
|
4481
4484
|
return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
|
|
4482
4485
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4487,18 +4490,18 @@ var ia = function() {
|
|
|
4487
4490
|
}, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
|
|
4488
4491
|
e.$set(e.form, "value", a);
|
|
4489
4492
|
}, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
|
|
4490
|
-
},
|
|
4491
|
-
ta,
|
|
4492
|
-
ia,
|
|
4493
|
+
}, sa = [], oa = /* @__PURE__ */ c(
|
|
4493
4494
|
aa,
|
|
4495
|
+
na,
|
|
4496
|
+
sa,
|
|
4494
4497
|
!1,
|
|
4495
4498
|
null,
|
|
4496
4499
|
"5cc44007",
|
|
4497
4500
|
null,
|
|
4498
4501
|
null
|
|
4499
4502
|
);
|
|
4500
|
-
const
|
|
4501
|
-
const
|
|
4503
|
+
const la = oa.exports;
|
|
4504
|
+
const ra = {
|
|
4502
4505
|
i18nOptions: {
|
|
4503
4506
|
namespaces: "DocumentFormFields",
|
|
4504
4507
|
messages: {
|
|
@@ -4522,11 +4525,11 @@ const oa = {
|
|
|
4522
4525
|
},
|
|
4523
4526
|
name: "DocumentFormFields",
|
|
4524
4527
|
components: {
|
|
4525
|
-
SmartList:
|
|
4526
|
-
CAccordion:
|
|
4527
|
-
CField:
|
|
4528
|
+
SmartList: d1,
|
|
4529
|
+
CAccordion: je,
|
|
4530
|
+
CField: Q
|
|
4528
4531
|
},
|
|
4529
|
-
mixins: [
|
|
4532
|
+
mixins: [L()],
|
|
4530
4533
|
props: {
|
|
4531
4534
|
set: {
|
|
4532
4535
|
type: Function,
|
|
@@ -4583,7 +4586,7 @@ const oa = {
|
|
|
4583
4586
|
immediate: !0,
|
|
4584
4587
|
async handler(i) {
|
|
4585
4588
|
var e, t;
|
|
4586
|
-
if (this.isEditingTemplate) {
|
|
4589
|
+
if (this.isEditingTemplate && i) {
|
|
4587
4590
|
const { data: a } = await _.getFields(i);
|
|
4588
4591
|
this.updateValue("data.fields", {
|
|
4589
4592
|
// crmFields added first in order to not override same service values
|
|
@@ -4601,7 +4604,7 @@ const oa = {
|
|
|
4601
4604
|
},
|
|
4602
4605
|
openFieldModal({ existingFieldId: i }) {
|
|
4603
4606
|
this.$modal.show(
|
|
4604
|
-
|
|
4607
|
+
la,
|
|
4605
4608
|
{
|
|
4606
4609
|
document: this._document,
|
|
4607
4610
|
set: this.set,
|
|
@@ -4620,7 +4623,7 @@ const oa = {
|
|
|
4620
4623
|
);
|
|
4621
4624
|
},
|
|
4622
4625
|
onCopyField(i) {
|
|
4623
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() =>
|
|
4626
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Ae("info", this.$t("_common:copyMessage"))).catch((e) => $(e));
|
|
4624
4627
|
},
|
|
4625
4628
|
filterMethod(i, e) {
|
|
4626
4629
|
return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -4631,7 +4634,7 @@ const oa = {
|
|
|
4631
4634
|
}
|
|
4632
4635
|
}
|
|
4633
4636
|
};
|
|
4634
|
-
var
|
|
4637
|
+
var ca = function() {
|
|
4635
4638
|
var e = this, t = e._self._c;
|
|
4636
4639
|
return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
|
|
4637
4640
|
e.query = a;
|
|
@@ -4676,18 +4679,18 @@ var la = function() {
|
|
|
4676
4679
|
} } })], 1)], 1)]);
|
|
4677
4680
|
}) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
|
|
4678
4681
|
})], 2)], 1);
|
|
4679
|
-
},
|
|
4680
|
-
oa,
|
|
4681
|
-
la,
|
|
4682
|
+
}, da = [], pa = /* @__PURE__ */ c(
|
|
4682
4683
|
ra,
|
|
4684
|
+
ca,
|
|
4685
|
+
da,
|
|
4683
4686
|
!1,
|
|
4684
4687
|
null,
|
|
4685
|
-
"
|
|
4688
|
+
"916766d5",
|
|
4686
4689
|
null,
|
|
4687
4690
|
null
|
|
4688
4691
|
);
|
|
4689
|
-
const
|
|
4690
|
-
const
|
|
4692
|
+
const ua = pa.exports;
|
|
4693
|
+
const ma = {
|
|
4691
4694
|
i18nOptions: {
|
|
4692
4695
|
messages: {
|
|
4693
4696
|
en: {
|
|
@@ -4730,10 +4733,10 @@ const pa = {
|
|
|
4730
4733
|
},
|
|
4731
4734
|
name: "ExtensionTab",
|
|
4732
4735
|
components: {
|
|
4733
|
-
draggable:
|
|
4736
|
+
draggable: u1,
|
|
4734
4737
|
Spinner: Pe
|
|
4735
4738
|
},
|
|
4736
|
-
mixins: [
|
|
4739
|
+
mixins: [L([
|
|
4737
4740
|
"externalReferences",
|
|
4738
4741
|
"clients",
|
|
4739
4742
|
"articles"
|
|
@@ -4806,7 +4809,7 @@ const pa = {
|
|
|
4806
4809
|
this.isSearching = !1;
|
|
4807
4810
|
}
|
|
4808
4811
|
},
|
|
4809
|
-
search:
|
|
4812
|
+
search: I(async function(e) {
|
|
4810
4813
|
await this._search(e);
|
|
4811
4814
|
}, 750),
|
|
4812
4815
|
useSearchResult(i) {
|
|
@@ -4856,7 +4859,7 @@ const pa = {
|
|
|
4856
4859
|
}
|
|
4857
4860
|
},
|
|
4858
4861
|
cloneArticle(i) {
|
|
4859
|
-
return
|
|
4862
|
+
return y({
|
|
4860
4863
|
...i,
|
|
4861
4864
|
_uniqueId: void 0
|
|
4862
4865
|
});
|
|
@@ -4866,7 +4869,7 @@ const pa = {
|
|
|
4866
4869
|
const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
|
|
4867
4870
|
if (!(e != null && e.packageId))
|
|
4868
4871
|
return;
|
|
4869
|
-
const t =
|
|
4872
|
+
const t = y({
|
|
4870
4873
|
...i,
|
|
4871
4874
|
_uniqueId: void 0,
|
|
4872
4875
|
packageId: e.packageId
|
|
@@ -4878,7 +4881,7 @@ const pa = {
|
|
|
4878
4881
|
}
|
|
4879
4882
|
}
|
|
4880
4883
|
};
|
|
4881
|
-
var
|
|
4884
|
+
var ha = function() {
|
|
4882
4885
|
var e = this, t = e._self._c;
|
|
4883
4886
|
return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
|
|
4884
4887
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -4909,18 +4912,18 @@ var ua = function() {
|
|
|
4909
4912
|
return e.addArticle(a);
|
|
4910
4913
|
} } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
|
|
4911
4914
|
}), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
|
|
4912
|
-
},
|
|
4913
|
-
pa,
|
|
4914
|
-
ua,
|
|
4915
|
+
}, fa = [], ga = /* @__PURE__ */ c(
|
|
4915
4916
|
ma,
|
|
4917
|
+
ha,
|
|
4918
|
+
fa,
|
|
4916
4919
|
!1,
|
|
4917
4920
|
null,
|
|
4918
4921
|
"b775e9f9",
|
|
4919
4922
|
null,
|
|
4920
4923
|
null
|
|
4921
4924
|
);
|
|
4922
|
-
const
|
|
4923
|
-
const
|
|
4925
|
+
const Ca = ga.exports;
|
|
4926
|
+
const va = {
|
|
4924
4927
|
i18nOptions: {
|
|
4925
4928
|
namespaces: "DocSettings",
|
|
4926
4929
|
messages: {
|
|
@@ -5008,8 +5011,8 @@ const ga = {
|
|
|
5008
5011
|
},
|
|
5009
5012
|
name: "DocumentGeneralSettings",
|
|
5010
5013
|
components: {
|
|
5011
|
-
FormInputRow:
|
|
5012
|
-
DragWindow:
|
|
5014
|
+
FormInputRow: J,
|
|
5015
|
+
DragWindow: oe
|
|
5013
5016
|
},
|
|
5014
5017
|
props: {
|
|
5015
5018
|
offset: {
|
|
@@ -5017,7 +5020,7 @@ const ga = {
|
|
|
5017
5020
|
required: !0
|
|
5018
5021
|
}
|
|
5019
5022
|
},
|
|
5020
|
-
mixins: [
|
|
5023
|
+
mixins: [L([
|
|
5021
5024
|
"tags",
|
|
5022
5025
|
"series",
|
|
5023
5026
|
"senderId",
|
|
@@ -5207,7 +5210,7 @@ const ga = {
|
|
|
5207
5210
|
this.isPublicForm || await this.loadUsers();
|
|
5208
5211
|
},
|
|
5209
5212
|
methods: {
|
|
5210
|
-
...
|
|
5213
|
+
...x({
|
|
5211
5214
|
loadUsers: m.LOAD_COMPANY_USERS
|
|
5212
5215
|
}),
|
|
5213
5216
|
update(i, e) {
|
|
@@ -5225,7 +5228,7 @@ const ga = {
|
|
|
5225
5228
|
}
|
|
5226
5229
|
}
|
|
5227
5230
|
};
|
|
5228
|
-
var
|
|
5231
|
+
var ya = function() {
|
|
5229
5232
|
var e = this, t = e._self._c;
|
|
5230
5233
|
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5231
5234
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
@@ -5234,17 +5237,17 @@ var Ca = function() {
|
|
|
5234
5237
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5235
5238
|
return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
|
|
5236
5239
|
})], 2) : e._e()], 2);
|
|
5237
|
-
},
|
|
5238
|
-
ga,
|
|
5239
|
-
Ca,
|
|
5240
|
+
}, xa = [], wa = /* @__PURE__ */ c(
|
|
5240
5241
|
va,
|
|
5242
|
+
ya,
|
|
5243
|
+
xa,
|
|
5241
5244
|
!1,
|
|
5242
5245
|
null,
|
|
5243
5246
|
"eec61e30",
|
|
5244
5247
|
null,
|
|
5245
5248
|
null
|
|
5246
5249
|
);
|
|
5247
|
-
const
|
|
5250
|
+
const ba = wa.exports, _a = {
|
|
5248
5251
|
name: "MenuBlockConvertPopover",
|
|
5249
5252
|
props: {
|
|
5250
5253
|
target: {
|
|
@@ -5277,32 +5280,32 @@ const xa = ya.exports, wa = {
|
|
|
5277
5280
|
}
|
|
5278
5281
|
}
|
|
5279
5282
|
};
|
|
5280
|
-
var
|
|
5283
|
+
var ka = function() {
|
|
5281
5284
|
var e = this, t = e._self._c;
|
|
5282
5285
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5283
5286
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5284
5287
|
} } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
5285
5288
|
return e.$emit("convert");
|
|
5286
5289
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5287
|
-
},
|
|
5288
|
-
wa,
|
|
5289
|
-
ba,
|
|
5290
|
+
}, La = [], $a = /* @__PURE__ */ c(
|
|
5290
5291
|
_a,
|
|
5292
|
+
ka,
|
|
5293
|
+
La,
|
|
5291
5294
|
!1,
|
|
5292
5295
|
null,
|
|
5293
5296
|
null,
|
|
5294
5297
|
null,
|
|
5295
5298
|
null
|
|
5296
5299
|
);
|
|
5297
|
-
const
|
|
5298
|
-
const
|
|
5300
|
+
const Sa = $a.exports;
|
|
5301
|
+
const Ta = B.component("ProBadge", {
|
|
5299
5302
|
name: "ProBadge",
|
|
5300
5303
|
render(i) {
|
|
5301
5304
|
return i("div", {
|
|
5302
5305
|
staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
5303
5306
|
}, "Pro");
|
|
5304
5307
|
}
|
|
5305
|
-
}),
|
|
5308
|
+
}), Da = {
|
|
5306
5309
|
name: "MenuBlocks",
|
|
5307
5310
|
i18nOptions: {
|
|
5308
5311
|
namespaces: "menuBlocks",
|
|
@@ -5373,12 +5376,12 @@ const $a = k.component("ProBadge", {
|
|
|
5373
5376
|
},
|
|
5374
5377
|
components: {
|
|
5375
5378
|
simplebar: b,
|
|
5376
|
-
DragList:
|
|
5377
|
-
DragItem:
|
|
5378
|
-
AddBlock:
|
|
5379
|
-
IsPremiumPreStep:
|
|
5380
|
-
ProBadge:
|
|
5381
|
-
MenuBlockConvertPopover:
|
|
5379
|
+
DragList: j,
|
|
5380
|
+
DragItem: K,
|
|
5381
|
+
AddBlock: ne,
|
|
5382
|
+
IsPremiumPreStep: F,
|
|
5383
|
+
ProBadge: Ta,
|
|
5384
|
+
MenuBlockConvertPopover: Sa
|
|
5382
5385
|
},
|
|
5383
5386
|
props: {
|
|
5384
5387
|
_document: {
|
|
@@ -5402,7 +5405,12 @@ const $a = k.component("ProBadge", {
|
|
|
5402
5405
|
default: !0
|
|
5403
5406
|
}
|
|
5404
5407
|
},
|
|
5405
|
-
|
|
5408
|
+
inject: {
|
|
5409
|
+
viewSettings: {
|
|
5410
|
+
default: () => ({ isPublicForm: !1 })
|
|
5411
|
+
}
|
|
5412
|
+
},
|
|
5413
|
+
mixins: [k],
|
|
5406
5414
|
data() {
|
|
5407
5415
|
return {
|
|
5408
5416
|
subMenuToShow: null,
|
|
@@ -5717,7 +5725,7 @@ const $a = k.component("ProBadge", {
|
|
|
5717
5725
|
if (this.mq === "sm")
|
|
5718
5726
|
return;
|
|
5719
5727
|
const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
5720
|
-
this.tippyInstances =
|
|
5728
|
+
this.tippyInstances = c1(this.$el, {
|
|
5721
5729
|
target: "[data-tooltip-key]",
|
|
5722
5730
|
allowHTML: !0,
|
|
5723
5731
|
duration: [150, 0],
|
|
@@ -5742,7 +5750,7 @@ const $a = k.component("ProBadge", {
|
|
|
5742
5750
|
i.destroy();
|
|
5743
5751
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
5744
5752
|
},
|
|
5745
|
-
setSubMenuState:
|
|
5753
|
+
setSubMenuState: I(function(e) {
|
|
5746
5754
|
this.activeSubMenu = e;
|
|
5747
5755
|
}, 100, { trailing: !0 }),
|
|
5748
5756
|
onMouseleaveDrawer() {
|
|
@@ -5753,7 +5761,8 @@ const $a = k.component("ProBadge", {
|
|
|
5753
5761
|
return t && t.key;
|
|
5754
5762
|
},
|
|
5755
5763
|
isBlockLocked(i) {
|
|
5756
|
-
|
|
5764
|
+
var e;
|
|
5765
|
+
return !this.feature(`docBlock_${i}`) && !((e = this.viewSettings) != null && e.isPublicForm);
|
|
5757
5766
|
},
|
|
5758
5767
|
doesBlockExist(i) {
|
|
5759
5768
|
return !!u(this._document, "_doc.template.views.read.nodes", []).find((t) => t.itemId.startsWith(i));
|
|
@@ -5776,7 +5785,7 @@ const $a = k.component("ProBadge", {
|
|
|
5776
5785
|
}
|
|
5777
5786
|
}
|
|
5778
5787
|
};
|
|
5779
|
-
var
|
|
5788
|
+
var Va = function() {
|
|
5780
5789
|
var e = this, t = e._self._c;
|
|
5781
5790
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
5782
5791
|
return e.$emit("block-added", a);
|
|
@@ -5815,18 +5824,18 @@ var Ta = function() {
|
|
|
5815
5824
|
}), 1)], 1)], 1)])], 1)];
|
|
5816
5825
|
} }], null, !0) })];
|
|
5817
5826
|
} }]) });
|
|
5818
|
-
},
|
|
5819
|
-
Sa,
|
|
5820
|
-
Ta,
|
|
5827
|
+
}, Ma = [], Ba = /* @__PURE__ */ c(
|
|
5821
5828
|
Da,
|
|
5829
|
+
Va,
|
|
5830
|
+
Ma,
|
|
5822
5831
|
!1,
|
|
5823
5832
|
null,
|
|
5824
|
-
"
|
|
5833
|
+
"2f285e04",
|
|
5825
5834
|
null,
|
|
5826
5835
|
null
|
|
5827
5836
|
);
|
|
5828
|
-
const
|
|
5829
|
-
const
|
|
5837
|
+
const Ia = Ba.exports;
|
|
5838
|
+
const Fa = {
|
|
5830
5839
|
name: "DocumentFormMenu",
|
|
5831
5840
|
i18nOptions: {
|
|
5832
5841
|
namespaces: "documentFormMenu",
|
|
@@ -5842,12 +5851,12 @@ const Ma = {
|
|
|
5842
5851
|
}
|
|
5843
5852
|
},
|
|
5844
5853
|
components: {
|
|
5845
|
-
Design:
|
|
5846
|
-
Fields:
|
|
5847
|
-
ExtensionTab:
|
|
5848
|
-
DocumentGeneralSettings:
|
|
5849
|
-
DocumentGuide: () => import("./index-
|
|
5850
|
-
MenuBlocks:
|
|
5854
|
+
Design: ia,
|
|
5855
|
+
Fields: ua,
|
|
5856
|
+
ExtensionTab: Ca,
|
|
5857
|
+
DocumentGeneralSettings: ba,
|
|
5858
|
+
DocumentGuide: () => import("./index-468da570.js"),
|
|
5859
|
+
MenuBlocks: Ia,
|
|
5851
5860
|
Simplebar: b
|
|
5852
5861
|
},
|
|
5853
5862
|
props: {
|
|
@@ -5888,7 +5897,7 @@ const Ma = {
|
|
|
5888
5897
|
data() {
|
|
5889
5898
|
return {
|
|
5890
5899
|
showGuide: !1,
|
|
5891
|
-
showGuideNotification: !
|
|
5900
|
+
showGuideNotification: !H.getItem("hideFormGuideNotification"),
|
|
5892
5901
|
tab: "blocks"
|
|
5893
5902
|
};
|
|
5894
5903
|
},
|
|
@@ -5910,11 +5919,11 @@ const Ma = {
|
|
|
5910
5919
|
},
|
|
5911
5920
|
methods: {
|
|
5912
5921
|
openGuide() {
|
|
5913
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5922
|
+
this.showGuide = !0, this.showGuideNotification = !1, H.setItem("hideFormGuideNotification", !0);
|
|
5914
5923
|
}
|
|
5915
5924
|
}
|
|
5916
5925
|
};
|
|
5917
|
-
var
|
|
5926
|
+
var Ha = function() {
|
|
5918
5927
|
var e = this, t = e._self._c;
|
|
5919
5928
|
return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
5920
5929
|
return e.$emit("close");
|
|
@@ -5953,18 +5962,18 @@ var Ia = function() {
|
|
|
5953
5962
|
}, offset: e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
5954
5963
|
e.showGuide = !1;
|
|
5955
5964
|
} } }) : e._e()], 1)])]);
|
|
5956
|
-
},
|
|
5957
|
-
Ma,
|
|
5958
|
-
Ia,
|
|
5965
|
+
}, Aa = [], Pa = /* @__PURE__ */ c(
|
|
5959
5966
|
Fa,
|
|
5967
|
+
Ha,
|
|
5968
|
+
Aa,
|
|
5960
5969
|
!1,
|
|
5961
5970
|
null,
|
|
5962
5971
|
"383e8c99",
|
|
5963
5972
|
null,
|
|
5964
5973
|
null
|
|
5965
5974
|
);
|
|
5966
|
-
const
|
|
5967
|
-
const
|
|
5975
|
+
const Ea = Pa.exports;
|
|
5976
|
+
const za = {
|
|
5968
5977
|
name: "BlockControlButtons",
|
|
5969
5978
|
i18nOptions: {
|
|
5970
5979
|
namespace: "blockControlButtons",
|
|
@@ -5996,7 +6005,7 @@ const Pa = {
|
|
|
5996
6005
|
}
|
|
5997
6006
|
}
|
|
5998
6007
|
};
|
|
5999
|
-
var
|
|
6008
|
+
var Za = function() {
|
|
6000
6009
|
var e = this, t = e._self._c;
|
|
6001
6010
|
return t("div", { staticClass: "flex flex-col gap-1 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6002
6011
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
@@ -6007,21 +6016,21 @@ var Ea = function() {
|
|
|
6007
6016
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6008
6017
|
return e.$emit("remove");
|
|
6009
6018
|
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)] : e._e()], 2);
|
|
6010
|
-
},
|
|
6011
|
-
Pa,
|
|
6012
|
-
Ea,
|
|
6019
|
+
}, Oa = [], Ra = /* @__PURE__ */ c(
|
|
6013
6020
|
za,
|
|
6021
|
+
Za,
|
|
6022
|
+
Oa,
|
|
6014
6023
|
!1,
|
|
6015
6024
|
null,
|
|
6016
6025
|
"79921f13",
|
|
6017
6026
|
null,
|
|
6018
6027
|
null
|
|
6019
6028
|
);
|
|
6020
|
-
const
|
|
6021
|
-
const
|
|
6029
|
+
const Ga = Ra.exports;
|
|
6030
|
+
const Ua = {
|
|
6022
6031
|
name: "DynamicBlock",
|
|
6023
6032
|
components: {
|
|
6024
|
-
BlockControlButtons:
|
|
6033
|
+
BlockControlButtons: Ga
|
|
6025
6034
|
},
|
|
6026
6035
|
props: {
|
|
6027
6036
|
isDragging: {
|
|
@@ -6070,7 +6079,7 @@ const Ra = {
|
|
|
6070
6079
|
}
|
|
6071
6080
|
}
|
|
6072
6081
|
};
|
|
6073
|
-
var
|
|
6082
|
+
var Wa = function() {
|
|
6074
6083
|
var e = this, t = e._self._c;
|
|
6075
6084
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6076
6085
|
{
|
|
@@ -6093,22 +6102,22 @@ var Ga = function() {
|
|
|
6093
6102
|
}, remove: function(a) {
|
|
6094
6103
|
return e.$emit("remove");
|
|
6095
6104
|
} } }) : e._e()], 1)]);
|
|
6096
|
-
},
|
|
6097
|
-
Ra,
|
|
6098
|
-
Ga,
|
|
6105
|
+
}, qa = [], Na = /* @__PURE__ */ c(
|
|
6099
6106
|
Ua,
|
|
6107
|
+
Wa,
|
|
6108
|
+
qa,
|
|
6100
6109
|
!1,
|
|
6101
6110
|
null,
|
|
6102
6111
|
"60aa95ad",
|
|
6103
6112
|
null,
|
|
6104
6113
|
null
|
|
6105
6114
|
);
|
|
6106
|
-
const
|
|
6107
|
-
const
|
|
6115
|
+
const ja = Na.exports;
|
|
6116
|
+
const Ka = {
|
|
6108
6117
|
name: "DocumentDrawer",
|
|
6109
6118
|
components: {
|
|
6110
6119
|
simplebar: b,
|
|
6111
|
-
Drawer:
|
|
6120
|
+
Drawer: se
|
|
6112
6121
|
},
|
|
6113
6122
|
props: {
|
|
6114
6123
|
position: {
|
|
@@ -6130,7 +6139,7 @@ const Na = {
|
|
|
6130
6139
|
}
|
|
6131
6140
|
}
|
|
6132
6141
|
};
|
|
6133
|
-
var
|
|
6142
|
+
var Ya = function() {
|
|
6134
6143
|
var e = this, t = e._self._c;
|
|
6135
6144
|
return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
|
|
6136
6145
|
"is-sticky": !e.fixed
|
|
@@ -6142,18 +6151,18 @@ var ja = function() {
|
|
|
6142
6151
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6143
6152
|
...e.fixedStyle
|
|
6144
6153
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6145
|
-
},
|
|
6146
|
-
Na,
|
|
6147
|
-
ja,
|
|
6154
|
+
}, Qa = [], Ja = /* @__PURE__ */ c(
|
|
6148
6155
|
Ka,
|
|
6156
|
+
Ya,
|
|
6157
|
+
Qa,
|
|
6149
6158
|
!1,
|
|
6150
6159
|
null,
|
|
6151
6160
|
"f0a56edd",
|
|
6152
6161
|
null,
|
|
6153
6162
|
null
|
|
6154
6163
|
);
|
|
6155
|
-
const
|
|
6156
|
-
const
|
|
6164
|
+
const Xa = Ja.exports;
|
|
6165
|
+
const en = {
|
|
6157
6166
|
name: "DocumentFormViewRadio",
|
|
6158
6167
|
props: {
|
|
6159
6168
|
value: {
|
|
@@ -6166,24 +6175,24 @@ const Ja = {
|
|
|
6166
6175
|
}
|
|
6167
6176
|
}
|
|
6168
6177
|
};
|
|
6169
|
-
var
|
|
6178
|
+
var tn = function() {
|
|
6170
6179
|
var e = this, t = e._self._c;
|
|
6171
6180
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6172
6181
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6173
6182
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
6174
6183
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6175
6184
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6176
|
-
},
|
|
6177
|
-
Ja,
|
|
6178
|
-
Xa,
|
|
6185
|
+
}, an = [], nn = /* @__PURE__ */ c(
|
|
6179
6186
|
en,
|
|
6187
|
+
tn,
|
|
6188
|
+
an,
|
|
6180
6189
|
!1,
|
|
6181
6190
|
null,
|
|
6182
6191
|
"bfd27279",
|
|
6183
6192
|
null,
|
|
6184
6193
|
null
|
|
6185
6194
|
);
|
|
6186
|
-
const
|
|
6195
|
+
const sn = nn.exports, on = {
|
|
6187
6196
|
name: "LogoBanner",
|
|
6188
6197
|
props: {
|
|
6189
6198
|
position: {
|
|
@@ -6201,44 +6210,44 @@ const an = tn.exports, nn = {
|
|
|
6201
6210
|
}
|
|
6202
6211
|
}
|
|
6203
6212
|
};
|
|
6204
|
-
var
|
|
6213
|
+
var ln = function() {
|
|
6205
6214
|
var e = this, t = e._self._c;
|
|
6206
6215
|
return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t("_common:brand.domain")}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
|
|
6207
|
-
},
|
|
6208
|
-
nn,
|
|
6209
|
-
sn,
|
|
6216
|
+
}, rn = [], cn = /* @__PURE__ */ c(
|
|
6210
6217
|
on,
|
|
6218
|
+
ln,
|
|
6219
|
+
rn,
|
|
6211
6220
|
!1,
|
|
6212
6221
|
null,
|
|
6213
6222
|
null,
|
|
6214
6223
|
null,
|
|
6215
6224
|
null
|
|
6216
6225
|
);
|
|
6217
|
-
const
|
|
6218
|
-
const
|
|
6226
|
+
const dn = cn.exports;
|
|
6227
|
+
const pn = {
|
|
6219
6228
|
name: "DocumentFormNav"
|
|
6220
6229
|
};
|
|
6221
|
-
var
|
|
6230
|
+
var un = function() {
|
|
6222
6231
|
var e = this, t = e._self._c;
|
|
6223
6232
|
return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "98" } }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
|
|
6224
|
-
},
|
|
6225
|
-
cn,
|
|
6226
|
-
dn,
|
|
6233
|
+
}, mn = [], hn = /* @__PURE__ */ c(
|
|
6227
6234
|
pn,
|
|
6235
|
+
un,
|
|
6236
|
+
mn,
|
|
6228
6237
|
!1,
|
|
6229
6238
|
null,
|
|
6230
6239
|
"05fc111c",
|
|
6231
6240
|
null,
|
|
6232
6241
|
null
|
|
6233
6242
|
);
|
|
6234
|
-
const
|
|
6235
|
-
const
|
|
6243
|
+
const fn = hn.exports;
|
|
6244
|
+
const le = (i, e, t = "$children") => {
|
|
6236
6245
|
if (!i)
|
|
6237
6246
|
return;
|
|
6238
6247
|
e(i);
|
|
6239
6248
|
const a = i[t];
|
|
6240
|
-
!a && !Array.isArray(a) || a.forEach((n) =>
|
|
6241
|
-
},
|
|
6249
|
+
!a && !Array.isArray(a) || a.forEach((n) => le(n, e));
|
|
6250
|
+
}, gn = {
|
|
6242
6251
|
i18nOptions: {
|
|
6243
6252
|
namespaces: "DocumentFormContainer",
|
|
6244
6253
|
messages: {
|
|
@@ -6254,19 +6263,19 @@ const re = (i, e, t = "$children") => {
|
|
|
6254
6263
|
},
|
|
6255
6264
|
name: "DocumentFormContainer",
|
|
6256
6265
|
components: {
|
|
6257
|
-
WithDimensions:
|
|
6258
|
-
DragList:
|
|
6259
|
-
DragItem:
|
|
6260
|
-
DynamicChapter:
|
|
6261
|
-
DocumentFormMenu:
|
|
6262
|
-
DynamicBlock:
|
|
6263
|
-
DocumentFormViewRadio:
|
|
6264
|
-
DocumentFormNav:
|
|
6265
|
-
DocumentDrawer:
|
|
6266
|
-
DocumentStyleContainer:
|
|
6266
|
+
WithDimensions: Je,
|
|
6267
|
+
DragList: j,
|
|
6268
|
+
DragItem: K,
|
|
6269
|
+
DynamicChapter: Xe,
|
|
6270
|
+
DocumentFormMenu: Ea,
|
|
6271
|
+
DynamicBlock: ja,
|
|
6272
|
+
DocumentFormViewRadio: sn,
|
|
6273
|
+
DocumentFormNav: fn,
|
|
6274
|
+
DocumentDrawer: Xa,
|
|
6275
|
+
DocumentStyleContainer: e1,
|
|
6267
6276
|
simplebar: b,
|
|
6268
|
-
LogoBanner:
|
|
6269
|
-
IsPremium:
|
|
6277
|
+
LogoBanner: dn,
|
|
6278
|
+
IsPremium: Y
|
|
6270
6279
|
},
|
|
6271
6280
|
props: {
|
|
6272
6281
|
_document: {
|
|
@@ -6303,7 +6312,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6303
6312
|
default: !0
|
|
6304
6313
|
}
|
|
6305
6314
|
},
|
|
6306
|
-
mixins: [
|
|
6315
|
+
mixins: [k],
|
|
6307
6316
|
data() {
|
|
6308
6317
|
return {
|
|
6309
6318
|
drawerState: v,
|
|
@@ -6394,7 +6403,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6394
6403
|
},
|
|
6395
6404
|
methods: {
|
|
6396
6405
|
onAddBlockMount(i, e) {
|
|
6397
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6406
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => m1(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6398
6407
|
},
|
|
6399
6408
|
onBlockToggleVisible(i, e) {
|
|
6400
6409
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6415,7 +6424,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6415
6424
|
const a = i.itemId.split("-")[1];
|
|
6416
6425
|
this.removePackageGroup(a);
|
|
6417
6426
|
} else
|
|
6418
|
-
|
|
6427
|
+
le(i, (n) => {
|
|
6419
6428
|
n.value && Object.values(n.value).forEach((s) => {
|
|
6420
6429
|
this.removeFormKeyValue(`${s}`);
|
|
6421
6430
|
let o = s.replace(/^data.(?!properties)/g, "data.properties.");
|
|
@@ -6425,7 +6434,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6425
6434
|
this.removeFormKeyValue(r);
|
|
6426
6435
|
});
|
|
6427
6436
|
}, "children");
|
|
6428
|
-
|
|
6437
|
+
T([this.nestedReadLayout[e]]).forEach((a) => {
|
|
6429
6438
|
const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
|
|
6430
6439
|
this.removeFormValue(`template.views.read.nodes[${n}]`);
|
|
6431
6440
|
});
|
|
@@ -6448,7 +6457,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6448
6457
|
const n = Oe(this.nestedReadLayout, e, t);
|
|
6449
6458
|
this.setFormValue({
|
|
6450
6459
|
key: "template.views.read.nodes",
|
|
6451
|
-
value:
|
|
6460
|
+
value: T(n)
|
|
6452
6461
|
});
|
|
6453
6462
|
} else if (!e && t !== null) {
|
|
6454
6463
|
const {
|
|
@@ -6460,20 +6469,20 @@ const re = (i, e, t = "$children") => {
|
|
|
6460
6469
|
readView: r,
|
|
6461
6470
|
validation: p,
|
|
6462
6471
|
data: C,
|
|
6463
|
-
onAddFnName:
|
|
6472
|
+
onAddFnName: S = "onAdd"
|
|
6464
6473
|
} = s({ sectionKey: n, document: this._document, contentData: l });
|
|
6465
6474
|
o({ validation: p, data: C });
|
|
6466
|
-
const
|
|
6475
|
+
const re = Re({ tree: r }), ce = [
|
|
6467
6476
|
...this.nestedReadLayout.slice(0, t),
|
|
6468
|
-
...
|
|
6477
|
+
...re,
|
|
6469
6478
|
...this.nestedReadLayout.slice(t)
|
|
6470
6479
|
];
|
|
6471
6480
|
this.setFormValue({
|
|
6472
6481
|
key: "template.views.read.nodes",
|
|
6473
|
-
value:
|
|
6482
|
+
value: T(ce)
|
|
6474
6483
|
});
|
|
6475
|
-
const [{ nodeId:
|
|
6476
|
-
this.onAddRedis[
|
|
6484
|
+
const [{ nodeId: de }] = r;
|
|
6485
|
+
this.onAddRedis[de] = S;
|
|
6477
6486
|
}
|
|
6478
6487
|
},
|
|
6479
6488
|
shouldAnimateDrop(i) {
|
|
@@ -6481,7 +6490,7 @@ const re = (i, e, t = "$children") => {
|
|
|
6481
6490
|
}
|
|
6482
6491
|
}
|
|
6483
6492
|
};
|
|
6484
|
-
var
|
|
6493
|
+
var Cn = function() {
|
|
6485
6494
|
var e = this, t = e._self._c;
|
|
6486
6495
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6487
6496
|
"is-edit-view": e.isEditView,
|
|
@@ -6541,39 +6550,39 @@ var fn = function() {
|
|
|
6541
6550
|
return e.onBlockMove(p, r);
|
|
6542
6551
|
}, "toggle-visible": function(p) {
|
|
6543
6552
|
return e.onBlockToggleVisible(l, p);
|
|
6544
|
-
} } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options:
|
|
6553
|
+
} } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": { ...l.props, _document: e._document, _value: l.value }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options: S }) => e.setFormValue({ key: p, value: C, options: S }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
|
|
6545
6554
|
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
6546
6555
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
6547
6556
|
} }], null, !0) }) : e._e()], 1);
|
|
6548
6557
|
} }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: e.drawerState.showRight, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
6549
6558
|
return e.$set(e.drawerState, "showRight", a);
|
|
6550
6559
|
} } }, [t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6551
|
-
},
|
|
6560
|
+
}, vn = [function() {
|
|
6552
6561
|
var i = this, e = i._self._c;
|
|
6553
6562
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6554
|
-
}],
|
|
6555
|
-
hn,
|
|
6556
|
-
fn,
|
|
6563
|
+
}], yn = /* @__PURE__ */ c(
|
|
6557
6564
|
gn,
|
|
6565
|
+
Cn,
|
|
6566
|
+
vn,
|
|
6558
6567
|
!1,
|
|
6559
6568
|
null,
|
|
6560
6569
|
"e54004e2",
|
|
6561
6570
|
null,
|
|
6562
6571
|
null
|
|
6563
6572
|
);
|
|
6564
|
-
const
|
|
6573
|
+
const xn = yn.exports, D = B.observable({
|
|
6565
6574
|
canEdit: !1,
|
|
6566
6575
|
isForm: !0,
|
|
6567
6576
|
setFormValue: null
|
|
6568
|
-
}),
|
|
6577
|
+
}), wn = {
|
|
6569
6578
|
name: "DocumentForm",
|
|
6570
6579
|
components: {
|
|
6571
|
-
DocumentFormContainer:
|
|
6572
|
-
IsPremium:
|
|
6573
|
-
IsPremiumPreStep:
|
|
6574
|
-
DocumentSend:
|
|
6580
|
+
DocumentFormContainer: xn,
|
|
6581
|
+
IsPremium: Y,
|
|
6582
|
+
IsPremiumPreStep: F,
|
|
6583
|
+
DocumentSend: Oi
|
|
6575
6584
|
},
|
|
6576
|
-
mixins: [
|
|
6585
|
+
mixins: [l1({ currentElement: null }), r1],
|
|
6577
6586
|
props: {
|
|
6578
6587
|
document: {
|
|
6579
6588
|
type: Object,
|
|
@@ -6620,7 +6629,7 @@ const vn = Cn.exports, V = k.observable({
|
|
|
6620
6629
|
default: !0
|
|
6621
6630
|
}
|
|
6622
6631
|
},
|
|
6623
|
-
provide: () => ({ viewSettings:
|
|
6632
|
+
provide: () => ({ viewSettings: D }),
|
|
6624
6633
|
data() {
|
|
6625
6634
|
return {
|
|
6626
6635
|
view: "edit",
|
|
@@ -6631,7 +6640,7 @@ const vn = Cn.exports, V = k.observable({
|
|
|
6631
6640
|
canEdit: {
|
|
6632
6641
|
immediate: !0,
|
|
6633
6642
|
handler(i) {
|
|
6634
|
-
|
|
6643
|
+
D.canEdit = !!i;
|
|
6635
6644
|
}
|
|
6636
6645
|
}
|
|
6637
6646
|
},
|
|
@@ -6645,7 +6654,7 @@ const vn = Cn.exports, V = k.observable({
|
|
|
6645
6654
|
}
|
|
6646
6655
|
},
|
|
6647
6656
|
created() {
|
|
6648
|
-
this.setFormValue && (
|
|
6657
|
+
this.setFormValue && (D.setFormValue = this.setDocValue);
|
|
6649
6658
|
},
|
|
6650
6659
|
methods: {
|
|
6651
6660
|
isValid() {
|
|
@@ -6660,7 +6669,7 @@ const vn = Cn.exports, V = k.observable({
|
|
|
6660
6669
|
},
|
|
6661
6670
|
async saveAsTemplate() {
|
|
6662
6671
|
this.document && this.$modal.show(
|
|
6663
|
-
|
|
6672
|
+
ie,
|
|
6664
6673
|
{
|
|
6665
6674
|
document: this.document,
|
|
6666
6675
|
onSaveTemplate: this.onSaveTemplate
|
|
@@ -6677,13 +6686,13 @@ const vn = Cn.exports, V = k.observable({
|
|
|
6677
6686
|
}
|
|
6678
6687
|
}
|
|
6679
6688
|
};
|
|
6680
|
-
var
|
|
6689
|
+
var bn = function() {
|
|
6681
6690
|
var e = this, t = e._self._c;
|
|
6682
6691
|
return e.document ? t("div", { staticClass: "flex flex-col w-screen bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
|
|
6683
6692
|
e.view = a;
|
|
6684
6693
|
} } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a }) {
|
|
6685
6694
|
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
|
|
6686
|
-
return [t("div", { staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
6695
|
+
return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
6687
6696
|
return [t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(s) {
|
|
6688
6697
|
a || e.document.id ? e.openSendModal() : n({ callback: e.openSendModal });
|
|
6689
6698
|
} } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(s) {
|
|
@@ -6691,7 +6700,7 @@ var xn = function() {
|
|
|
6691
6700
|
} } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: e.saveAsTemplate } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
|
|
6692
6701
|
})], 2)];
|
|
6693
6702
|
} }], null, !0) })];
|
|
6694
|
-
} }], null, !1,
|
|
6703
|
+
} }], null, !1, 2694380453) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6695
6704
|
expiresAt: "data.expiresAt",
|
|
6696
6705
|
personalMessage: "data.personalMessage",
|
|
6697
6706
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
@@ -6699,113 +6708,20 @@ var xn = function() {
|
|
|
6699
6708
|
reminders: "data.reminders",
|
|
6700
6709
|
name: "data.name"
|
|
6701
6710
|
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }) : e._e()], 1) : e._e();
|
|
6702
|
-
},
|
|
6703
|
-
yn,
|
|
6704
|
-
xn,
|
|
6711
|
+
}, _n = [], kn = /* @__PURE__ */ c(
|
|
6705
6712
|
wn,
|
|
6713
|
+
bn,
|
|
6714
|
+
_n,
|
|
6706
6715
|
!1,
|
|
6707
6716
|
null,
|
|
6708
6717
|
null,
|
|
6709
6718
|
null,
|
|
6710
6719
|
null
|
|
6711
6720
|
);
|
|
6712
|
-
const
|
|
6713
|
-
const
|
|
6714
|
-
name: "
|
|
6715
|
-
|
|
6716
|
-
id: {
|
|
6717
|
-
type: String,
|
|
6718
|
-
required: !0
|
|
6719
|
-
}
|
|
6720
|
-
},
|
|
6721
|
-
i18nOptions: {
|
|
6722
|
-
namespaces: "ClientLinks",
|
|
6723
|
-
messages: {
|
|
6724
|
-
en: {
|
|
6725
|
-
title: "Document links",
|
|
6726
|
-
text: "Share the document links below with your recipients. Each recipient has their own unique link.",
|
|
6727
|
-
copied: "Link copied to clipboard",
|
|
6728
|
-
tooltip: "Copy link",
|
|
6729
|
-
placeholder: "No links available.",
|
|
6730
|
-
hint: "Note that visting a link will trigger a viewed event in the events timeline."
|
|
6731
|
-
},
|
|
6732
|
-
sv: {
|
|
6733
|
-
title: "Dokumentlänkar",
|
|
6734
|
-
text: "Dela dokumentlänkarna nedan med dina mottagare. Varje mottagare har sin egen unika länk.",
|
|
6735
|
-
copied: "Länkt kopierat till urklipp",
|
|
6736
|
-
tooltip: "Kopiera länk",
|
|
6737
|
-
placeholder: "Inga länkar finns tillgängliga.",
|
|
6738
|
-
hint: "Notera att ett sidbesök på en länk kommer att skapa en visad-händelse i tidslinjen."
|
|
6739
|
-
}
|
|
6740
|
-
}
|
|
6741
|
-
},
|
|
6742
|
-
computed: {
|
|
6743
|
-
...g({
|
|
6744
|
-
docById: "documents2/byId"
|
|
6745
|
-
}),
|
|
6746
|
-
document() {
|
|
6747
|
-
return this.docById(this.id);
|
|
6748
|
-
},
|
|
6749
|
-
clients() {
|
|
6750
|
-
if (!this.document)
|
|
6751
|
-
return [];
|
|
6752
|
-
const { clients: i } = this.document;
|
|
6753
|
-
return i.map((e) => ({
|
|
6754
|
-
...e,
|
|
6755
|
-
primaryTitle: e.name,
|
|
6756
|
-
secondaryTitle: e.type === "company" ? e.companyName : ""
|
|
6757
|
-
}));
|
|
6758
|
-
}
|
|
6759
|
-
},
|
|
6760
|
-
created() {
|
|
6761
|
-
this.loadDocument({ id: this.id });
|
|
6762
|
-
},
|
|
6763
|
-
methods: {
|
|
6764
|
-
...y({
|
|
6765
|
-
loadDocument: m.LOAD_DOCUMENT2
|
|
6766
|
-
}),
|
|
6767
|
-
copyToClipboard(i) {
|
|
6768
|
-
i.target.previousElementSibling.select(), document.execCommand("copy", !1), j("info", this.$t("copied"));
|
|
6769
|
-
}
|
|
6770
|
-
}
|
|
6771
|
-
};
|
|
6772
|
-
var Ln = function() {
|
|
6773
|
-
var e = this, t = e._self._c;
|
|
6774
|
-
return t("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [t("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(a) {
|
|
6775
|
-
return e.$emit("close");
|
|
6776
|
-
} } }), t("div", { staticStyle: { padding: "0 0 2.5em" } }, [t("div", { staticClass: "x-title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "x-text", domProps: { textContent: e._s(e.$t("text")) } })]), e.clients.length ? e._l(e.clients, function(a, n) {
|
|
6777
|
-
return t("div", { key: n, staticClass: "client-card" }, [t("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [t("div", { staticClass: "client-title truncate-text" }, [e._v(" " + e._s(a.primaryTitle) + " "), a.secondaryTitle ? t("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [e._v("· " + e._s(a.secondaryTitle))]) : e._e()]), a.documentRole ? t("div", { domProps: { textContent: e._s(e.$t(`_common:documentRole.${a.documentRole}.label`)) } }) : e._e(), t("div", [a.email ? t("a", { attrs: { href: `mailto:${a.email}?&body=${a.docLink}` } }, [e._v(e._s(a.email))]) : e._e(), a.email && a.cellphone ? t("span", { staticStyle: { padding: "0 0.5ch" } }, [e._v("·")]) : e._e(), a.cellphone ? t("a", { attrs: { href: `sms:${a.cellphone}?&body=${a.docLink}` } }, [t("CPhoneFormat", { attrs: { phone: a.cellphone, region: a.cellphoneRegion } })], 1) : e._e()])]), t("div", { staticStyle: { display: "flex", position: "relative" } }, [t("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: e.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: a.docLink } }), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: e.copyToClipboard } }, [t("BaseIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
|
|
6778
|
-
}) : t("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: e._s(e.$t("placeholder")) } }), t("div", { staticClass: "x-hint" }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), t("div", { domProps: { textContent: e._s(e.$t("hint")) } })], 1)], 2)]);
|
|
6779
|
-
}, $n = [], Sn = /* @__PURE__ */ c(
|
|
6780
|
-
kn,
|
|
6781
|
-
Ln,
|
|
6782
|
-
$n,
|
|
6783
|
-
!1,
|
|
6784
|
-
null,
|
|
6785
|
-
"791a9a8f",
|
|
6786
|
-
null,
|
|
6787
|
-
null
|
|
6788
|
-
);
|
|
6789
|
-
const Tn = Sn.exports, Dn = Tn, Vn = ({ id: i }) => {
|
|
6790
|
-
if (!k.prototype.$modal)
|
|
6791
|
-
throw Error("Open client modal requires plugin vue-js-modal");
|
|
6792
|
-
k.prototype.$modal.show(
|
|
6793
|
-
Dn,
|
|
6794
|
-
{
|
|
6795
|
-
id: i
|
|
6796
|
-
},
|
|
6797
|
-
{
|
|
6798
|
-
adaptive: !0,
|
|
6799
|
-
maxWidth: 400,
|
|
6800
|
-
width: "90%",
|
|
6801
|
-
height: "auto",
|
|
6802
|
-
scrollable: !0
|
|
6803
|
-
}
|
|
6804
|
-
);
|
|
6805
|
-
};
|
|
6806
|
-
const Bn = {
|
|
6807
|
-
name: "PostDocumentSend",
|
|
6808
|
-
mixins: [L],
|
|
6721
|
+
const Ln = kn.exports;
|
|
6722
|
+
const $n = {
|
|
6723
|
+
name: "DocumentPostSendStep",
|
|
6724
|
+
mixins: [k],
|
|
6809
6725
|
i18nOptions: {
|
|
6810
6726
|
namespaces: "PostDocumentSend",
|
|
6811
6727
|
messages: {
|
|
@@ -6840,7 +6756,7 @@ const Bn = {
|
|
|
6840
6756
|
return this.mq === "sm" ? "100%" : "auto";
|
|
6841
6757
|
},
|
|
6842
6758
|
usesManualDelivery() {
|
|
6843
|
-
const i =
|
|
6759
|
+
const i = V(this.document);
|
|
6844
6760
|
return !i.sms && !i.email;
|
|
6845
6761
|
}
|
|
6846
6762
|
},
|
|
@@ -6849,18 +6765,18 @@ const Bn = {
|
|
|
6849
6765
|
(i = this.document) != null && i.senderClient ? await this.senderAnswer() : await this.onSend();
|
|
6850
6766
|
},
|
|
6851
6767
|
methods: {
|
|
6852
|
-
...
|
|
6768
|
+
...x({
|
|
6853
6769
|
updateDocument: m.DO_UPDATE_DOCUMENT2,
|
|
6854
6770
|
answerDocument: m.ANSWER_OWN_DOCUMENT2,
|
|
6855
6771
|
sendDocument: m.DO_SEND_DOCUMENT2
|
|
6856
6772
|
}),
|
|
6857
6773
|
async handleDocumentLinks() {
|
|
6858
|
-
const { id: i } = this.document, e =
|
|
6774
|
+
const { id: i } = this.document, e = V(this.document), t = !e.sms && !e.email;
|
|
6859
6775
|
t && (await this.updateDocument({
|
|
6860
6776
|
id: i,
|
|
6861
6777
|
body: { status: "sent" },
|
|
6862
6778
|
showMessage: !1
|
|
6863
|
-
}),
|
|
6779
|
+
}), h1({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
6864
6780
|
},
|
|
6865
6781
|
async onSend() {
|
|
6866
6782
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -6879,7 +6795,7 @@ const Bn = {
|
|
|
6879
6795
|
body: { isAccepted: !0 },
|
|
6880
6796
|
checksum: a
|
|
6881
6797
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
6882
|
-
|
|
6798
|
+
f1,
|
|
6883
6799
|
{
|
|
6884
6800
|
_document: this.document,
|
|
6885
6801
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -6923,22 +6839,22 @@ const Bn = {
|
|
|
6923
6839
|
}
|
|
6924
6840
|
}
|
|
6925
6841
|
};
|
|
6926
|
-
var
|
|
6842
|
+
var Sn = function() {
|
|
6927
6843
|
var e = this, t = e._self._c;
|
|
6928
6844
|
return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
|
|
6929
|
-
},
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6845
|
+
}, Tn = [], Dn = /* @__PURE__ */ c(
|
|
6846
|
+
$n,
|
|
6847
|
+
Sn,
|
|
6848
|
+
Tn,
|
|
6933
6849
|
!1,
|
|
6934
6850
|
null,
|
|
6935
|
-
"
|
|
6851
|
+
"673cd86f",
|
|
6936
6852
|
null,
|
|
6937
6853
|
null
|
|
6938
6854
|
);
|
|
6939
|
-
const
|
|
6940
|
-
|
|
6941
|
-
const
|
|
6855
|
+
const Vn = Dn.exports;
|
|
6856
|
+
B.use(o1);
|
|
6857
|
+
const Mn = {
|
|
6942
6858
|
name: "DocForm",
|
|
6943
6859
|
mixins: [Ge(["closeFunc", "beforeSave", "beforeSend"])],
|
|
6944
6860
|
i18nOptions: {
|
|
@@ -6953,9 +6869,9 @@ const An = {
|
|
|
6953
6869
|
}
|
|
6954
6870
|
},
|
|
6955
6871
|
components: {
|
|
6956
|
-
TemplateSelector:
|
|
6957
|
-
DocumentForm:
|
|
6958
|
-
PostSend:
|
|
6872
|
+
TemplateSelector: b2,
|
|
6873
|
+
DocumentForm: Ln,
|
|
6874
|
+
PostSend: Vn
|
|
6959
6875
|
},
|
|
6960
6876
|
props: {
|
|
6961
6877
|
isNew: {
|
|
@@ -7026,7 +6942,7 @@ const An = {
|
|
|
7026
6942
|
},
|
|
7027
6943
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
7028
6944
|
var n;
|
|
7029
|
-
const a =
|
|
6945
|
+
const a = Zt({ ...this.rawDoc }, [
|
|
7030
6946
|
"__tempId",
|
|
7031
6947
|
"externalReferences",
|
|
7032
6948
|
"clients",
|
|
@@ -7053,7 +6969,8 @@ const An = {
|
|
|
7053
6969
|
async onSaveDocument({ doSend: i = !1 } = {}) {
|
|
7054
6970
|
typeof this.beforeSave == "function" && await this.beforeSave(), i && typeof this.beforeSend == "function" && await this.beforeSend();
|
|
7055
6971
|
const e = await this.saveDocument({ doSend: i }), t = this.docById(e);
|
|
7056
|
-
|
|
6972
|
+
let a;
|
|
6973
|
+
i && (a = !!(t != null && t.senderClient) || this.isManualDelivery(t)), a ? (this.document = t, this.view = "postSend") : this.close();
|
|
7057
6974
|
},
|
|
7058
6975
|
close() {
|
|
7059
6976
|
if (this.closeFunc)
|
|
@@ -7065,23 +6982,27 @@ const An = {
|
|
|
7065
6982
|
},
|
|
7066
6983
|
goBack() {
|
|
7067
6984
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
6985
|
+
},
|
|
6986
|
+
isManualDelivery(i) {
|
|
6987
|
+
const e = V(i);
|
|
6988
|
+
return !e.sms && !e.email;
|
|
7068
6989
|
}
|
|
7069
6990
|
}
|
|
7070
6991
|
};
|
|
7071
|
-
var
|
|
6992
|
+
var Bn = function() {
|
|
7072
6993
|
var e = this, t = e._self._c;
|
|
7073
6994
|
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
|
|
7074
|
-
},
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
6995
|
+
}, In = [], Fn = /* @__PURE__ */ c(
|
|
6996
|
+
Mn,
|
|
6997
|
+
Bn,
|
|
6998
|
+
In,
|
|
7078
6999
|
!1,
|
|
7079
7000
|
null,
|
|
7080
7001
|
null,
|
|
7081
7002
|
null,
|
|
7082
7003
|
null
|
|
7083
7004
|
);
|
|
7084
|
-
const
|
|
7005
|
+
const fs = Fn.exports;
|
|
7085
7006
|
export {
|
|
7086
|
-
|
|
7007
|
+
fs as default
|
|
7087
7008
|
};
|