@cling-se/widget 0.9.15 → 0.9.17
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-ab49f62b.js → AddClientCallout-064aede9.js} +5 -5
- package/dist/{AnswerModal-2fde5937.js → AnswerModal-f00b2576.js} +3 -3
- package/dist/{AttachmentItem-e54af2bb.js → AttachmentItem-614ed2ea.js} +3 -3
- package/dist/{BaseDatePicker-cb470a9e.js → BaseDatePicker-99d99f2b.js} +1 -1
- package/dist/{BaseInput-3d9f4279.js → BaseInput-4ee00e7a.js} +1 -1
- package/dist/{BaseUpload-26e05a5c.js → BaseUpload-7d9dd124.js} +2 -2
- package/dist/{BlockMedia-8cded5ef.js → BlockMedia-354eff33.js} +1 -1
- package/dist/{CCallout-a561eca4.js → CCallout-764d08cd.js} +2 -2
- package/dist/{CDropdownItem-df2fa4e1.js → CDropdownItem-ef2d7897.js} +1 -1
- package/dist/{CField-6545c8d4.js → CField-f8b8481d.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-a27aef22.js → CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js} +1 -1
- package/dist/{ClientAutocomplete-6d25f1ac.js → ClientAutocomplete-04d85a96.js} +2 -2
- package/dist/{ClientModal-f954d9e4.js → ClientModal-56731bee.js} +10 -12
- package/dist/{ColorPicker-b81d49dc.js → ColorPicker-15579f77.js} +1 -1
- package/dist/{CompanyModal-3c0542ed.js → CompanyModal-49b3f20e.js} +3 -3
- package/dist/{ContentWrapper-023e7d2e.js → ContentWrapper-6315056f.js} +12 -12
- package/dist/{CoverBlockSettings-bf46f7c3.js → CoverBlockSettings-34313ba7.js} +8 -8
- package/dist/{DocAnswer-9e30ed6c.js → DocAnswer-a53c34f6.js} +4 -4
- package/dist/{DocForm-d0be2afd.js → DocForm-bf97c67e.js} +577 -507
- package/dist/{DocFormSend-2257bdb8.js → DocFormSend-1247c216.js} +17 -17
- package/dist/{DocLinks-49de3d35.js → DocLinks-8bbcbd46.js} +2 -2
- package/dist/{DocModalBase-2e474321.js → DocModalBase-e1dee9d6.js} +1 -1
- package/dist/{DocPrint-b31bfe3e.js → DocPrint-dcb6b719.js} +1 -1
- package/dist/{DocReceipt-b28fa3e6.js → DocReceipt-d03ff3f1.js} +1 -1
- package/dist/{DocSendReminder-04ff970b.js → DocSendReminder-ecc36aca.js} +1 -1
- package/dist/{DocTextEditor-a4dc3100.js → DocTextEditor-f4b51510.js} +8 -8
- package/dist/{DocTimeline-c1078cae.js → DocTimeline-28430a90.js} +1 -1
- package/dist/{DocumentClient-0f32e0c9.js → DocumentClient-ade9af67.js} +6 -6
- package/dist/{DocumentLayout-9d7c3945.js → DocumentLayout-632a6f98.js} +3 -3
- package/dist/{DocumentLogotype-53f70c53.js → DocumentLogotype-dacee892.js} +3 -3
- package/dist/{EmbedInput-d69ce4f8.js → EmbedInput-a3868460.js} +2 -2
- package/dist/{EmbedSettings-2ec76322.js → EmbedSettings-4e3d8c41.js} +3 -3
- package/dist/{ErrorCallout-73785234.js → ErrorCallout-d05d6cc2.js} +1 -1
- package/dist/{FilePreviewModal-109c7b33.js → FilePreviewModal-31b883c3.js} +4 -4
- package/dist/{HeaderSettings-3d83ccfc.js → HeaderSettings-131840ed.js} +15 -15
- package/dist/{ImageSelectModal-75c53e98.js → ImageSelectModal-7706f79f.js} +8 -8
- package/dist/{ImageUploadWrapper-decbb774.js → ImageUploadWrapper-65d04b72.js} +2 -2
- package/dist/{Index-bff9c5af.js → Index-0dbc20a5.js} +30 -36
- package/dist/{Index-a1f511d2.js → Index-17db3981.js} +2 -2
- package/dist/{Index-d9879953.js → Index-1ec70336.js} +4 -4
- package/dist/{Index-d937a089.js → Index-21b9ef50.js} +2 -2
- package/dist/{Index-47fb4f85.js → Index-275a26f3.js} +4 -4
- package/dist/{Index-ffd4628c.js → Index-3a278b14.js} +4 -4
- package/dist/{Index-cc254b04.js → Index-4ecb48f7.js} +4 -4
- package/dist/{Index-226c110a.js → Index-51f43342.js} +2 -2
- package/dist/Index-5204e965.js +59 -0
- package/dist/{Index-5ec00453.js → Index-63a45208.js} +23 -29
- package/dist/{Index-55e3cefd.js → Index-6a2c0245.js} +4 -4
- package/dist/{Index-d0baff52.js → Index-860706da.js} +9 -9
- package/dist/{Index-dca7a282.js → Index-8c45d1e8.js} +4 -4
- package/dist/{Index-1ce1aa40.js → Index-9275b550.js} +3 -3
- package/dist/{Index-be17e087.js → Index-a6deb4ef.js} +2 -2
- package/dist/{Index-f553b37b.js → Index-b7ee6604.js} +1 -1
- package/dist/{Index-49b4cd87.js → Index-c1782811.js} +2 -2
- package/dist/{Index-fb376836.js → Index-c217198e.js} +5 -5
- package/dist/{Index-c6cfa7d2.js → Index-c3cf1a7a.js} +35 -26
- package/dist/{Index-22d94abb.js → Index-c5a2140d.js} +1 -1
- package/dist/{Index-73c44a65.js → Index-c5d2a3f3.js} +2 -2
- package/dist/{Index-63310172.js → Index-ca586e17.js} +13 -13
- package/dist/{Index-e09c49fe.js → Index-d3789f66.js} +5 -5
- package/dist/{Index-a463bce9.js → Index-d4b5163a.js} +4 -4
- package/dist/{Index-155458e8.js → Index-d54abcde.js} +6 -6
- package/dist/{Index-5469b8ea.js → Index-d54ff9f5.js} +8 -8
- package/dist/{Index-1b28d760.js → Index-d9dd3c6b.js} +7 -7
- package/dist/{Index-d3807403.js → Index-de220060.js} +2 -2
- package/dist/{Index-50af499a.js → Index-e9c20129.js} +19 -22
- package/dist/{Index-10bfb47a.js → Index-eb5ab752.js} +2 -2
- package/dist/{Index-0ee59b64.js → Index-f465338a.js} +4 -4
- package/dist/{Index-837d1c1e.js → Index-f7e348e2.js} +12 -12
- package/dist/Index-fb7d681c.js +72 -0
- package/dist/{Index-ce221abf.js → Index-ffb5b6ae.js} +4 -4
- package/dist/{InputToggleRow-30c797ff.js → InputToggleRow-281e90c1.js} +1 -1
- package/dist/{IsPremiumPreStep-29ac5130.js → IsPremiumPreStep-b1384bb4.js} +440 -290
- package/dist/{ManualPopover-e29aec0f.js → ManualPopover-d5ea2774.js} +1 -1
- package/dist/{MediaWrapper-5ab8b512.js → MediaWrapper-a0b4ebe8.js} +3 -3
- package/dist/{NotBindingText-52e7d568.js → NotBindingText-67a1409e.js} +2 -2
- package/dist/{PackageGroup-a8ba9e0c.js → PackageGroup-29439e17.js} +11 -11
- package/dist/{PdfTerms-3070a25a.js → PdfTerms-2e6c0285.js} +4 -4
- package/dist/{PdfViewer-ccf3911c.js → PdfViewer-371b5058.js} +2 -2
- package/dist/{PlainHtml-ae01e2c1.js → PlainHtml-c70dc350.js} +1 -1
- package/dist/PriceHeader-5ff405b6.js +339 -0
- package/dist/{SearchApi-c4b052bb.js → SearchApi-b14c893f.js} +2 -2
- package/dist/{Setup-1317a382.js → Setup-4d84f86a.js} +1 -1
- package/dist/{TermsSettings-01af3b70.js → TermsSettings-7072778d.js} +6 -6
- package/dist/{ThemeColorRow-269ca4a8.js → ThemeColorRow-37a17ce4.js} +3 -3
- package/dist/{ToggleBinding-dad24847.js → ToggleBinding-e04d9dfc.js} +3 -3
- package/dist/{UploadModal-0b1b4fdc.js → UploadModal-39f04624.js} +3 -3
- package/dist/{VideoPlayerInput-549aefde.js → VideoPlayerInput-55ab9dd1.js} +3 -3
- package/dist/{VideoPlayerSettings-ae3426d4.js → VideoPlayerSettings-1d2507e8.js} +4 -4
- package/dist/{VideoSelectModal-02d28522.js → VideoSelectModal-c158c88b.js} +7 -7
- package/dist/{answerDocumentMixin-7be9822c.js → answerDocumentMixin-5711c3ae.js} +3 -3
- package/dist/{cssMode-69bff585.js → cssMode-b85ed111.js} +7 -7
- package/dist/focusDrawerMixin-5139ff2d.js +22 -0
- package/dist/{formComponentsInstall-ff788fa4.js → formComponentsInstall-ea9fe0f1.js} +12 -12
- package/dist/formDrawerState-872f6c63.js +20 -0
- package/dist/{formValidationMixin-7af4cf59.js → formValidationMixin-20797066.js} +1 -1
- package/dist/{freemarker2-c8b91e6a.js → freemarker2-db773dc4.js} +7 -7
- package/dist/{handlebars-407a195e.js → handlebars-f4e59d92.js} +7 -7
- package/dist/{html-9fbb1e72.js → html-60722cac.js} +7 -7
- package/dist/{htmlMode-a62a60c0.js → htmlMode-699d17ac.js} +7 -7
- package/dist/{image-b55f2afd.js → image-c4536036.js} +1 -1
- package/dist/{index-d71d06aa.js → index-01a9890c.js} +2 -2
- package/dist/{index-793542d1.js → index-1f9bf410.js} +8 -8
- package/dist/{index-21eac157.js → index-a0dcb949.js} +1 -1
- package/dist/{index-76693b13.js → index-b5312c69.js} +4 -4
- package/dist/{index-dfb4db64.js → index-b6204795.js} +1 -1
- package/dist/{index-016c9a62.js → index-d9683bc3.js} +4 -4
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +452 -452
- package/dist/{javascript-09ef29cb.js → javascript-10d90d6d.js} +8 -8
- package/dist/{jsonMode-10afc369.js → jsonMode-7689792e.js} +7 -7
- package/dist/{liquid-233a80fe.js → liquid-d3d3f6d5.js} +7 -7
- package/dist/{main-d566af3b.js → main-9daa18a1.js} +7142 -7097
- package/dist/{mapFormMixin-c6d17f7c.js → mapFormMixin-1236b266.js} +1 -1
- package/dist/{publicSenderState-1c913217.js → publicSenderState-5036fa9a.js} +1 -1
- package/dist/{python-90cbed7b.js → python-29472e5e.js} +7 -7
- package/dist/{razor-0f34f5b0.js → razor-2dfcf495.js} +7 -7
- package/dist/{simplebar.min-7b840f57.js → simplebar.min-8422a634.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-6c789e3b.js → template-282dfd7f.js} +1 -1
- package/dist/{throttle-b4fba152.js → throttle-d4af9020.js} +2 -2
- package/dist/{tinycolor-72610713.js → tinycolor-e750ced7.js} +1 -1
- package/dist/{tippy.esm-c1d37448.js → tippy.esm-ae169d52.js} +5 -5
- package/dist/{tsMode-26efb298.js → tsMode-af13fa75.js} +7 -7
- package/dist/{typescript-06af0784.js → typescript-278dd0a0.js} +7 -7
- package/dist/{utils-9efb546e.js → utils-a1170d9a.js} +1 -1
- package/dist/{vuedraggable.umd-64934a87.js → vuedraggable.umd-e860e729.js} +1 -1
- package/dist/{xml-7b0b742f.js → xml-2214e1d4.js} +7 -7
- package/package.json +2 -3
- package/dist/Index-30e95a66.js +0 -76
- package/dist/Index-f38920d4.js +0 -69
- package/dist/PriceHeader-41fd73c8.js +0 -338
- package/dist/focusDrawerMixin-1a22fcb0.js +0 -68
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aZ as pe, a_ as ue, a$ as U, b0 as me, b1 as W, b2 as q, b3 as he, b4 as fe, b5 as ge, b6 as Ce, j as ve, g as m, n as c, s as N, b as u, av as ye, c as f, C as j, b7 as xe, b8 as we, h as T, b9 as be, ba as _e, A as ke, bb as Le, bc as $e, aY as Se, bd as Te, N as d, a4 as h, aT as y, be as De, bf as Ve, bg as Be, bh as Me, D as Ie, bi as Fe, d as He, i as k, H as Ae, S as Pe, ap as Ee, ae as ze, bj as Ze, V as F, aV as K, aW as Y, I as A, bk as V, aX as Oe, bl as Ge, bm as M, r as Re, m as Ue, a as We, bn as qe } from "./main-9daa18a1.js";
|
|
2
2
|
import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import "./index-
|
|
4
|
-
import { v as
|
|
5
|
-
import { d as
|
|
6
|
-
import {
|
|
7
|
-
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as e1 } from "./DocumentLayout-
|
|
8
|
-
import { s as
|
|
9
|
-
import { B as t1 } from "./BlockMedia-
|
|
10
|
-
import { c as i1, g as a1 } from "./template-
|
|
11
|
-
import { a as n1 } from "./tinycolor-
|
|
12
|
-
import { m as
|
|
13
|
-
import { S as s1, C as Q, i as o1 } from "./formComponentsInstall-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { F as J, d as
|
|
17
|
-
import { S as
|
|
18
|
-
import { o as
|
|
19
|
-
import { s as
|
|
20
|
-
import { o as
|
|
21
|
-
import
|
|
3
|
+
import "./index-a0dcb949.js";
|
|
4
|
+
import { v as I } from "./index-805c56e4.js";
|
|
5
|
+
import { d as H, w as L } from "./CDropdownItem-ef2d7897.js";
|
|
6
|
+
import { a as $, I as b, b as Ne, c as je } from "./IsPremiumPreStep-b1384bb4.js";
|
|
7
|
+
import { D as Ke, l as Ye, g as Qe, W as Je, b as Xe, a as e1 } from "./DocumentLayout-632a6f98.js";
|
|
8
|
+
import { s as _ } from "./simplebar.min-8422a634.js";
|
|
9
|
+
import { B as t1 } from "./BlockMedia-354eff33.js";
|
|
10
|
+
import { c as i1, g as a1 } from "./template-282dfd7f.js";
|
|
11
|
+
import { a as n1 } from "./tinycolor-e750ced7.js";
|
|
12
|
+
import { m as S } from "./mapFormMixin-1236b266.js";
|
|
13
|
+
import { S as s1, C as Q, i as o1 } from "./formComponentsInstall-ea9fe0f1.js";
|
|
14
|
+
import { f as l1 } from "./formValidationMixin-20797066.js";
|
|
15
|
+
import { s as v } from "./formDrawerState-872f6c63.js";
|
|
16
|
+
import { F as J, d as r1 } from "./tippy.esm-ae169d52.js";
|
|
17
|
+
import { S as c1 } from "./CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js";
|
|
18
|
+
import { o as d1, d as p1 } from "./vuedraggable.umd-e860e729.js";
|
|
19
|
+
import { s as u1 } from "./dom-d4731032.js";
|
|
20
|
+
import { o as m1 } from "./index-b6204795.js";
|
|
21
|
+
import h1 from "./AnswerModal-f00b2576.js";
|
|
22
22
|
import "./anime.es-e284c852.js";
|
|
23
|
-
import "./image-
|
|
23
|
+
import "./image-c4536036.js";
|
|
24
24
|
import "./color-71c20583.js";
|
|
25
|
-
import "./BaseDatePicker-
|
|
26
|
-
import "./ErrorCallout-
|
|
27
|
-
import "./AddClientCallout-
|
|
28
|
-
import "./ClientAutocomplete-
|
|
29
|
-
import "./SearchApi-
|
|
30
|
-
import "./ClientModal-
|
|
31
|
-
import "./CCallout-
|
|
32
|
-
import "./CField-
|
|
25
|
+
import "./BaseDatePicker-99d99f2b.js";
|
|
26
|
+
import "./ErrorCallout-d05d6cc2.js";
|
|
27
|
+
import "./AddClientCallout-064aede9.js";
|
|
28
|
+
import "./ClientAutocomplete-04d85a96.js";
|
|
29
|
+
import "./SearchApi-b14c893f.js";
|
|
30
|
+
import "./ClientModal-56731bee.js";
|
|
31
|
+
import "./CCallout-764d08cd.js";
|
|
32
|
+
import "./CField-f8b8481d.js";
|
|
33
33
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
34
|
-
import "./ColorPicker-
|
|
35
|
-
var
|
|
36
|
-
function
|
|
34
|
+
import "./ColorPicker-15579f77.js";
|
|
35
|
+
var f1 = pe, g1 = ue, C1 = U;
|
|
36
|
+
function v1(i, e, t) {
|
|
37
37
|
for (var a = -1, n = e.length, s = {}; ++a < n; ) {
|
|
38
|
-
var o = e[a], l =
|
|
39
|
-
t(l, o) &&
|
|
38
|
+
var o = e[a], l = f1(i, o);
|
|
39
|
+
t(l, o) && g1(s, C1(o, i), l);
|
|
40
40
|
}
|
|
41
41
|
return s;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var y1 = v1;
|
|
44
|
+
function x1(i, e) {
|
|
45
45
|
return i != null && e in Object(i);
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var w1 = x1, b1 = me, _1 = W, k1 = "[object Arguments]";
|
|
48
|
+
function L1(i) {
|
|
49
|
+
return _1(i) && b1(i) == k1;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var $1 = L1, P = $1, S1 = W, X = Object.prototype, T1 = X.hasOwnProperty, D1 = X.propertyIsEnumerable, V1 = P(function() {
|
|
52
52
|
return arguments;
|
|
53
|
-
}()) ?
|
|
54
|
-
return
|
|
55
|
-
}, ee =
|
|
56
|
-
function
|
|
53
|
+
}()) ? P : function(i) {
|
|
54
|
+
return S1(i) && T1.call(i, "callee") && !D1.call(i, "callee");
|
|
55
|
+
}, ee = V1, B1 = 9007199254740991;
|
|
56
|
+
function M1(i) {
|
|
57
57
|
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= B1;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
function
|
|
61
|
-
e =
|
|
59
|
+
var I1 = M1, F1 = U, H1 = ee, A1 = q, P1 = he, E1 = I1, z1 = fe;
|
|
60
|
+
function Z1(i, e, t) {
|
|
61
|
+
e = F1(e, i);
|
|
62
62
|
for (var a = -1, n = e.length, s = !1; ++a < n; ) {
|
|
63
|
-
var o =
|
|
63
|
+
var o = z1(e[a]);
|
|
64
64
|
if (!(s = i != null && t(i, o)))
|
|
65
65
|
break;
|
|
66
66
|
i = i[o];
|
|
67
67
|
}
|
|
68
|
-
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n &&
|
|
68
|
+
return s || ++a != n ? s : (n = i == null ? 0 : i.length, !!n && E1(n) && P1(o, n) && (A1(i) || H1(i)));
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
return i != null &&
|
|
70
|
+
var O1 = Z1, G1 = w1, R1 = O1;
|
|
71
|
+
function U1(i, e) {
|
|
72
|
+
return i != null && R1(i, e, G1);
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
return
|
|
77
|
-
return
|
|
74
|
+
var W1 = U1, q1 = y1, N1 = W1;
|
|
75
|
+
function j1(i, e) {
|
|
76
|
+
return q1(i, e, function(t, a) {
|
|
77
|
+
return N1(i, a);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
80
|
+
var K1 = j1;
|
|
81
|
+
function Y1(i, e) {
|
|
82
82
|
for (var t = -1, a = e.length, n = i.length; ++t < a; )
|
|
83
83
|
i[n + t] = e[t];
|
|
84
84
|
return i;
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
function
|
|
88
|
-
return
|
|
86
|
+
var Q1 = Y1, E = ge, J1 = ee, X1 = q, z = E ? E.isConcatSpreadable : void 0;
|
|
87
|
+
function et(i) {
|
|
88
|
+
return X1(i) || J1(i) || !!(z && i && i[z]);
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var tt = et, it = Q1, at = tt;
|
|
91
91
|
function te(i, e, t, a, n) {
|
|
92
92
|
var s = -1, o = i.length;
|
|
93
|
-
for (t || (t =
|
|
93
|
+
for (t || (t = at), n || (n = []); ++s < o; ) {
|
|
94
94
|
var l = i[s];
|
|
95
|
-
e > 0 && t(l) ? e > 1 ? te(l, e - 1, t, a, n) :
|
|
95
|
+
e > 0 && t(l) ? e > 1 ? te(l, e - 1, t, a, n) : it(n, l) : a || (n[n.length] = l);
|
|
96
96
|
}
|
|
97
97
|
return n;
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
function
|
|
99
|
+
var nt = te, st = nt;
|
|
100
|
+
function ot(i) {
|
|
101
101
|
var e = i == null ? 0 : i.length;
|
|
102
|
-
return e ?
|
|
102
|
+
return e ? st(i, 1) : [];
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var lt = ot;
|
|
105
|
+
function rt(i, e, t) {
|
|
106
106
|
switch (t.length) {
|
|
107
107
|
case 0:
|
|
108
108
|
return i.call(e);
|
|
@@ -115,56 +115,56 @@ function ct(i, e, t) {
|
|
|
115
115
|
}
|
|
116
116
|
return i.apply(e, t);
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
return e =
|
|
121
|
-
for (var a = arguments, n = -1, s =
|
|
118
|
+
var ct = rt, dt = ct, Z = Math.max;
|
|
119
|
+
function pt(i, e, t) {
|
|
120
|
+
return e = Z(e === void 0 ? i.length - 1 : e, 0), function() {
|
|
121
|
+
for (var a = arguments, n = -1, s = Z(a.length - e, 0), o = Array(s); ++n < s; )
|
|
122
122
|
o[n] = a[e + n];
|
|
123
123
|
n = -1;
|
|
124
124
|
for (var l = Array(e + 1); ++n < e; )
|
|
125
125
|
l[n] = a[n];
|
|
126
|
-
return l[e] = t(o),
|
|
126
|
+
return l[e] = t(o), dt(i, this, l);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var ut = pt;
|
|
130
|
+
function mt(i) {
|
|
131
131
|
return function() {
|
|
132
132
|
return i;
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var ht = mt;
|
|
136
|
+
function ft(i) {
|
|
137
137
|
return i;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
140
|
-
return
|
|
139
|
+
var gt = ft, Ct = ht, O = Ce, vt = gt, yt = O ? function(i, e) {
|
|
140
|
+
return O(i, "toString", {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !1,
|
|
143
|
-
value:
|
|
143
|
+
value: Ct(e),
|
|
144
144
|
writable: !0
|
|
145
145
|
});
|
|
146
|
-
} :
|
|
147
|
-
function
|
|
146
|
+
} : vt, xt = yt, wt = 800, bt = 16, _t = Date.now;
|
|
147
|
+
function kt(i) {
|
|
148
148
|
var e = 0, t = 0;
|
|
149
149
|
return function() {
|
|
150
|
-
var a =
|
|
150
|
+
var a = _t(), n = bt - (a - t);
|
|
151
151
|
if (t = a, n > 0) {
|
|
152
|
-
if (++e >=
|
|
152
|
+
if (++e >= wt)
|
|
153
153
|
return arguments[0];
|
|
154
154
|
} else
|
|
155
155
|
e = 0;
|
|
156
156
|
return i.apply(void 0, arguments);
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
var $t =
|
|
160
|
-
function
|
|
161
|
-
return
|
|
159
|
+
var Lt = kt, $t = xt, St = Lt, Tt = St($t), Dt = Tt, Vt = lt, Bt = ut, Mt = Dt;
|
|
160
|
+
function It(i) {
|
|
161
|
+
return Mt(Bt(i, void 0, Vt), i + "");
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
return i == null ? {} :
|
|
165
|
-
}),
|
|
166
|
-
const
|
|
167
|
-
const
|
|
163
|
+
var Ft = It, Ht = K1, At = Ft, Pt = At(function(i, e) {
|
|
164
|
+
return i == null ? {} : Ht(i, e);
|
|
165
|
+
}), Et = Pt;
|
|
166
|
+
const zt = /* @__PURE__ */ ve(Et);
|
|
167
|
+
const Zt = {
|
|
168
168
|
i18nOptions: {
|
|
169
169
|
namespaces: "DocumentTemplateFormModal",
|
|
170
170
|
messages: {
|
|
@@ -217,7 +217,7 @@ const Ot = {
|
|
|
217
217
|
},
|
|
218
218
|
validations: {
|
|
219
219
|
name: {
|
|
220
|
-
required:
|
|
220
|
+
required: I.requiredIf((i) => !i.updateExistingDocTemplate)
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
computed: {
|
|
@@ -298,7 +298,7 @@ const Ot = {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
|
-
var
|
|
301
|
+
var Ot = function() {
|
|
302
302
|
var e = this, t = e._self._c;
|
|
303
303
|
return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, autofocus: "", size: "medium" }, on: { input: function(a) {
|
|
304
304
|
e.name = a;
|
|
@@ -307,9 +307,9 @@ var Rt = function() {
|
|
|
307
307
|
}, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
|
|
308
308
|
e.keepClients = a;
|
|
309
309
|
}, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
|
|
310
|
-
}, Gt = [],
|
|
310
|
+
}, Gt = [], Rt = /* @__PURE__ */ c(
|
|
311
|
+
Zt,
|
|
311
312
|
Ot,
|
|
312
|
-
Rt,
|
|
313
313
|
Gt,
|
|
314
314
|
!1,
|
|
315
315
|
null,
|
|
@@ -317,8 +317,8 @@ var Rt = function() {
|
|
|
317
317
|
null,
|
|
318
318
|
null
|
|
319
319
|
);
|
|
320
|
-
const ie =
|
|
321
|
-
function
|
|
320
|
+
const ie = Rt.exports;
|
|
321
|
+
function Ut(i, { availableProducts: e }) {
|
|
322
322
|
if (!i)
|
|
323
323
|
throw new Error("Missing parameter templateId");
|
|
324
324
|
const t = e, a = Object.keys(t).find((n) => {
|
|
@@ -331,7 +331,7 @@ function Wt(i, { availableProducts: e }) {
|
|
|
331
331
|
});
|
|
332
332
|
return a ? t[a] : null;
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
334
|
+
async function Wt(i) {
|
|
335
335
|
if (!i)
|
|
336
336
|
throw new Error("Missing argument stripeProduct");
|
|
337
337
|
const e = i == null ? void 0 : i.prices[0], { data: t } = await ye.createCheckoutSession({
|
|
@@ -349,18 +349,20 @@ async function qt(i) {
|
|
|
349
349
|
function ae(i, { availableProducts: e }) {
|
|
350
350
|
var n, s, o;
|
|
351
351
|
let t = null;
|
|
352
|
-
const a =
|
|
352
|
+
const a = Ut(i.templateId, { availableProducts: e });
|
|
353
353
|
return a && (t = {
|
|
354
|
-
price:
|
|
354
|
+
price: N((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, { currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency }),
|
|
355
355
|
isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
|
|
356
|
-
onBuy: async () =>
|
|
356
|
+
onBuy: async () => Wt(a)
|
|
357
357
|
}), t;
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const qt = {
|
|
360
360
|
name: "GalleryTemplateModal",
|
|
361
361
|
components: {
|
|
362
|
-
simplebar:
|
|
363
|
-
DocumentLayout: Ke
|
|
362
|
+
simplebar: _,
|
|
363
|
+
DocumentLayout: Ke,
|
|
364
|
+
IsPremium: $,
|
|
365
|
+
IsPremiumPreStep: b
|
|
364
366
|
},
|
|
365
367
|
props: {
|
|
366
368
|
// Instance of template
|
|
@@ -385,6 +387,10 @@ const Nt = {
|
|
|
385
387
|
type: Boolean,
|
|
386
388
|
default: !0
|
|
387
389
|
},
|
|
390
|
+
isPublicForm: {
|
|
391
|
+
type: Boolean,
|
|
392
|
+
default: !1
|
|
393
|
+
},
|
|
388
394
|
// Function to call when trying to save tpl, needed as we use return value to show correct button text
|
|
389
395
|
onSaveTemplate: {
|
|
390
396
|
type: Function,
|
|
@@ -423,7 +429,7 @@ const Nt = {
|
|
|
423
429
|
stripeProducts: "stripe/products"
|
|
424
430
|
}),
|
|
425
431
|
previewDocument() {
|
|
426
|
-
const { data: i, defaultData: e } = this.template, t = new
|
|
432
|
+
const { data: i, defaultData: e } = this.template, t = new j({
|
|
427
433
|
data: {
|
|
428
434
|
...e,
|
|
429
435
|
template: i,
|
|
@@ -476,25 +482,36 @@ const Nt = {
|
|
|
476
482
|
}
|
|
477
483
|
}
|
|
478
484
|
};
|
|
479
|
-
var
|
|
480
|
-
var a
|
|
485
|
+
var Nt = function() {
|
|
486
|
+
var a;
|
|
481
487
|
var e = this, t = e._self._c;
|
|
482
488
|
return t("div", { staticClass: "bg-gray-200 template-modal font-inter" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": "rgb(244, 244, 244) 0px 2px 14px 0px inset, rgba(0, 0, 0, 0.09) 0px 8px 35px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "w-full h-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
|
|
483
489
|
backgroundImage: `url(${e.meta.author.avatar})`
|
|
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(),
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
490
|
+
} }), 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(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: n }) {
|
|
491
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
492
|
+
return [!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: function(o) {
|
|
493
|
+
e.isPublicForm || n ? e.useSelectedTemplate() : s({ callback: e.useSelectedTemplate });
|
|
494
|
+
} } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
495
|
+
} }], null, !0) })];
|
|
496
|
+
} }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
|
|
497
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
498
|
+
var o;
|
|
499
|
+
return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
|
|
500
|
+
e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
|
|
501
|
+
} } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
|
|
502
|
+
} }], null, !0) })];
|
|
503
|
+
} }]) })], 2)])]);
|
|
504
|
+
}, jt = [], Kt = /* @__PURE__ */ c(
|
|
505
|
+
qt,
|
|
488
506
|
Nt,
|
|
489
507
|
jt,
|
|
490
|
-
Kt,
|
|
491
508
|
!1,
|
|
492
509
|
null,
|
|
493
|
-
"
|
|
510
|
+
"80ae04ae",
|
|
494
511
|
null,
|
|
495
512
|
null
|
|
496
513
|
);
|
|
497
|
-
const
|
|
514
|
+
const Yt = Kt.exports, Qt = {
|
|
498
515
|
name: "GalleryLogic",
|
|
499
516
|
i18nOptions: {
|
|
500
517
|
namespaces: "GalleryLogic",
|
|
@@ -622,7 +639,7 @@ const Qt = Yt.exports, Jt = {
|
|
|
622
639
|
const s = this.templateGalleryItems.find(({ id: o }) => o === i);
|
|
623
640
|
this.selectGalleryItem(s);
|
|
624
641
|
} catch (s) {
|
|
625
|
-
|
|
642
|
+
T(s);
|
|
626
643
|
}
|
|
627
644
|
},
|
|
628
645
|
methods: {
|
|
@@ -646,7 +663,7 @@ const Qt = Yt.exports, Jt = {
|
|
|
646
663
|
return t;
|
|
647
664
|
}), this.availableCategoryKeys = e.reduce((t, a) => [.../* @__PURE__ */ new Set([...t, ...a.categories])], []);
|
|
648
665
|
} catch (e) {
|
|
649
|
-
|
|
666
|
+
T(e);
|
|
650
667
|
} finally {
|
|
651
668
|
this.isLoading = !1;
|
|
652
669
|
}
|
|
@@ -682,7 +699,7 @@ const Qt = Yt.exports, Jt = {
|
|
|
682
699
|
fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
|
|
683
700
|
};
|
|
684
701
|
this.$modal.show(
|
|
685
|
-
|
|
702
|
+
Yt,
|
|
686
703
|
{
|
|
687
704
|
template: i,
|
|
688
705
|
fetchGallery: this.fetchGallery,
|
|
@@ -737,19 +754,19 @@ const Qt = Yt.exports, Jt = {
|
|
|
737
754
|
selectGalleryItem: this.selectGalleryItem
|
|
738
755
|
});
|
|
739
756
|
}
|
|
740
|
-
},
|
|
741
|
-
var
|
|
757
|
+
}, Jt = null, Xt = null;
|
|
758
|
+
var e2 = /* @__PURE__ */ c(
|
|
759
|
+
Qt,
|
|
742
760
|
Jt,
|
|
743
761
|
Xt,
|
|
744
|
-
e2,
|
|
745
762
|
!1,
|
|
746
763
|
null,
|
|
747
764
|
null,
|
|
748
765
|
null,
|
|
749
766
|
null
|
|
750
767
|
);
|
|
751
|
-
const
|
|
752
|
-
const
|
|
768
|
+
const t2 = e2.exports;
|
|
769
|
+
const i2 = {
|
|
753
770
|
name: "DocumentIcon",
|
|
754
771
|
truncate: ke,
|
|
755
772
|
inject: {
|
|
@@ -760,7 +777,7 @@ const a2 = {
|
|
|
760
777
|
}
|
|
761
778
|
}
|
|
762
779
|
};
|
|
763
|
-
var
|
|
780
|
+
var a2 = function(e, t) {
|
|
764
781
|
return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
|
|
765
782
|
t.data.staticClass,
|
|
766
783
|
t.data.class,
|
|
@@ -774,21 +791,21 @@ var n2 = function(e, t) {
|
|
|
774
791
|
} } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
|
|
775
792
|
backgroundImage: `url(${t.props.thumbnail})`
|
|
776
793
|
} }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
|
|
777
|
-
},
|
|
794
|
+
}, n2 = [], s2 = /* @__PURE__ */ c(
|
|
795
|
+
i2,
|
|
778
796
|
a2,
|
|
779
797
|
n2,
|
|
780
|
-
s2,
|
|
781
798
|
!0,
|
|
782
799
|
null,
|
|
783
800
|
"7ebb1c9a",
|
|
784
801
|
null,
|
|
785
802
|
null
|
|
786
803
|
);
|
|
787
|
-
const
|
|
788
|
-
const
|
|
804
|
+
const o2 = s2.exports;
|
|
805
|
+
const l2 = {
|
|
789
806
|
name: "HorizontalScroll",
|
|
790
807
|
components: {
|
|
791
|
-
Simplebar:
|
|
808
|
+
Simplebar: _
|
|
792
809
|
},
|
|
793
810
|
data() {
|
|
794
811
|
return {
|
|
@@ -832,7 +849,7 @@ const r2 = {
|
|
|
832
849
|
}
|
|
833
850
|
}
|
|
834
851
|
};
|
|
835
|
-
var
|
|
852
|
+
var r2 = function() {
|
|
836
853
|
var e = this, t = e._self._c;
|
|
837
854
|
return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left", on: { click: function(a) {
|
|
838
855
|
return e.go(-1);
|
|
@@ -845,18 +862,18 @@ var c2 = function() {
|
|
|
845
862
|
return e.$emit("expand");
|
|
846
863
|
} } })];
|
|
847
864
|
})], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
|
|
848
|
-
},
|
|
865
|
+
}, c2 = [], d2 = /* @__PURE__ */ c(
|
|
866
|
+
l2,
|
|
849
867
|
r2,
|
|
850
868
|
c2,
|
|
851
|
-
d2,
|
|
852
869
|
!1,
|
|
853
870
|
null,
|
|
854
871
|
"15f25c8e",
|
|
855
872
|
null,
|
|
856
873
|
null
|
|
857
874
|
);
|
|
858
|
-
const
|
|
859
|
-
const
|
|
875
|
+
const p2 = d2.exports;
|
|
876
|
+
const u2 = {
|
|
860
877
|
name: "DocumentFormRecent",
|
|
861
878
|
i18nOptions: {
|
|
862
879
|
namespaces: "DocumentFormRecent",
|
|
@@ -871,6 +888,10 @@ const m2 = {
|
|
|
871
888
|
}
|
|
872
889
|
}
|
|
873
890
|
},
|
|
891
|
+
components: {
|
|
892
|
+
IsPremium: $,
|
|
893
|
+
IsPremiumPreStep: b
|
|
894
|
+
},
|
|
874
895
|
data() {
|
|
875
896
|
return {
|
|
876
897
|
hasItems: !1,
|
|
@@ -923,7 +944,7 @@ const m2 = {
|
|
|
923
944
|
}), { items: n = [] } = a || {};
|
|
924
945
|
return n;
|
|
925
946
|
},
|
|
926
|
-
onLoadDocuments:
|
|
947
|
+
onLoadDocuments: H(async function() {
|
|
927
948
|
this.isLoading = !0, this.hasItems = !0;
|
|
928
949
|
const e = await this.fetchDocuments();
|
|
929
950
|
(!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
|
|
@@ -932,38 +953,51 @@ const m2 = {
|
|
|
932
953
|
await this.loadDocument({ id: i });
|
|
933
954
|
const e = this.docById(i);
|
|
934
955
|
this.$emit("save-template", { document: e });
|
|
956
|
+
},
|
|
957
|
+
onUseDocTemplate(i) {
|
|
958
|
+
return this.$emit("use-doc-template", { documentId: i });
|
|
935
959
|
}
|
|
936
960
|
}
|
|
937
961
|
};
|
|
938
|
-
var
|
|
962
|
+
var m2 = function() {
|
|
939
963
|
var e = this, t = e._self._c;
|
|
940
964
|
return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
|
|
941
965
|
e.query = a;
|
|
942
966
|
}, expression: "query" } }) : e._e()], 2), t("div", { staticClass: "recent-list" }, [e.isLoading && !e.list.length ? e._l(3, function(a) {
|
|
943
967
|
return t("div", { key: a, staticClass: "recent-item placeholder" }, [t("CSkeleton", { staticClass: "recent-item-name", attrs: { width: "60%" } }), t("CSkeleton", { attrs: { width: "35%" } })], 1);
|
|
944
|
-
}) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "p-4 text-center text-gray-400 bg-gray-100 border border-gray-200 rounded-md", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : e.
|
|
945
|
-
return t("
|
|
946
|
-
return
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
},
|
|
968
|
+
}) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "p-4 text-center text-gray-400 bg-gray-100 border border-gray-200 rounded-md", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: n }) {
|
|
969
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
970
|
+
return [t("div", e._l(e.list, function(o, l) {
|
|
971
|
+
return t("div", { key: o._id, staticClass: "recent-item", on: { click: function(r) {
|
|
972
|
+
n ? e.onUseDocTemplate(o._id) : s({
|
|
973
|
+
callback: () => e.onUseDocTemplate(o._id)
|
|
974
|
+
});
|
|
975
|
+
}, "&mouseover": function(r) {
|
|
976
|
+
e.hoverIndex = l;
|
|
977
|
+
}, "&mouseleave": function(r) {
|
|
978
|
+
e.hoverIndex = null;
|
|
979
|
+
} } }, [t("div", { staticClass: "recent-item-name", class: { "text-gray-400": !o.data.name } }, [e._v(" " + e._s(o.data.name || e.$t("_common:untitled")) + " ")]), t("div", [e._v(e._s(e.$formatDistanceToNow(o.createdAt)))]), e.hoverIndex === l ? t("div", { staticStyle: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" } }, [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: r }) {
|
|
980
|
+
return [t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small" }, nativeOn: { click: function(p) {
|
|
981
|
+
p.stopPropagation(), a ? e.onSaveDocumentTemplate(o._id) : r({
|
|
982
|
+
callback: () => e.onSaveDocumentTemplate(o._id)
|
|
983
|
+
});
|
|
984
|
+
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])];
|
|
985
|
+
} }], null, !0) }), 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()]);
|
|
986
|
+
}), 0)];
|
|
987
|
+
} }], null, !0) })];
|
|
988
|
+
} }]) })]], 2)]);
|
|
989
|
+
}, h2 = [], f2 = /* @__PURE__ */ c(
|
|
990
|
+
u2,
|
|
956
991
|
m2,
|
|
957
992
|
h2,
|
|
958
|
-
f2,
|
|
959
993
|
!1,
|
|
960
994
|
null,
|
|
961
|
-
"
|
|
995
|
+
"6746edc1",
|
|
962
996
|
null,
|
|
963
997
|
null
|
|
964
998
|
);
|
|
965
|
-
const
|
|
966
|
-
const
|
|
999
|
+
const g2 = f2.exports;
|
|
1000
|
+
const C2 = {
|
|
967
1001
|
i18nOptions: {
|
|
968
1002
|
namespaces: "TemplateSelector",
|
|
969
1003
|
messages: {
|
|
@@ -1006,13 +1040,13 @@ const v2 = {
|
|
|
1006
1040
|
}
|
|
1007
1041
|
},
|
|
1008
1042
|
name: "TemplateSelector",
|
|
1009
|
-
mixins: [
|
|
1043
|
+
mixins: [L],
|
|
1010
1044
|
components: {
|
|
1011
|
-
HorizontalScroll:
|
|
1012
|
-
DocumentIcon:
|
|
1013
|
-
DocumentRecent:
|
|
1014
|
-
GalleryLogic:
|
|
1015
|
-
IsPremiumPreStep:
|
|
1045
|
+
HorizontalScroll: p2,
|
|
1046
|
+
DocumentIcon: o2,
|
|
1047
|
+
DocumentRecent: g2,
|
|
1048
|
+
GalleryLogic: t2,
|
|
1049
|
+
IsPremiumPreStep: b
|
|
1016
1050
|
},
|
|
1017
1051
|
props: {
|
|
1018
1052
|
// Used for creating documents form project/client views
|
|
@@ -1126,7 +1160,7 @@ const v2 = {
|
|
|
1126
1160
|
const { data: e } = i, t = Se(e, ["_id", "id", "companyId", "isVisible"]);
|
|
1127
1161
|
return await this.createTemplate({ body: t }), !0;
|
|
1128
1162
|
} catch (e) {
|
|
1129
|
-
|
|
1163
|
+
T(e);
|
|
1130
1164
|
}
|
|
1131
1165
|
return !1;
|
|
1132
1166
|
},
|
|
@@ -1153,13 +1187,13 @@ const v2 = {
|
|
|
1153
1187
|
return e;
|
|
1154
1188
|
},
|
|
1155
1189
|
canUseTemplate(i) {
|
|
1156
|
-
return i.doConsumeDocumentQuota ? this.canFeature("
|
|
1190
|
+
return i.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
|
|
1157
1191
|
}
|
|
1158
1192
|
}
|
|
1159
1193
|
};
|
|
1160
|
-
var
|
|
1194
|
+
var v2 = function() {
|
|
1161
1195
|
var e = this, t = e._self._c;
|
|
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: "
|
|
1196
|
+
return t("div", { staticClass: "t-root" }, [t("div", { staticClass: "font-inter form-start main", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
|
|
1163
1197
|
return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
|
|
1164
1198
|
e.isExpanded = !0;
|
|
1165
1199
|
} } }, e._l(e.myTemplates, function(n) {
|
|
@@ -1202,18 +1236,18 @@ var y2 = function() {
|
|
|
1202
1236
|
} } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
|
|
1203
1237
|
}), 1)], 1)];
|
|
1204
1238
|
} }], null, !1, 4229824708) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
|
|
1205
|
-
},
|
|
1239
|
+
}, y2 = [], x2 = /* @__PURE__ */ c(
|
|
1240
|
+
C2,
|
|
1206
1241
|
v2,
|
|
1207
1242
|
y2,
|
|
1208
|
-
x2,
|
|
1209
1243
|
!1,
|
|
1210
1244
|
null,
|
|
1211
|
-
"
|
|
1245
|
+
"da389d44",
|
|
1212
1246
|
null,
|
|
1213
1247
|
null
|
|
1214
1248
|
);
|
|
1215
|
-
const
|
|
1216
|
-
const
|
|
1249
|
+
const w2 = x2.exports;
|
|
1250
|
+
const b2 = (i) => {
|
|
1217
1251
|
const e = Array(2).fill().map(() => d());
|
|
1218
1252
|
return [
|
|
1219
1253
|
{
|
|
@@ -1235,7 +1269,7 @@ const _2 = (i) => {
|
|
|
1235
1269
|
nodeId: e[1]
|
|
1236
1270
|
}
|
|
1237
1271
|
];
|
|
1238
|
-
},
|
|
1272
|
+
}, _2 = (i, e = "en") => [
|
|
1239
1273
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("attachment_plural", { lng: e }).capitalize() },
|
|
1240
1274
|
{
|
|
1241
1275
|
key: `files-${i}`,
|
|
@@ -1244,13 +1278,13 @@ const _2 = (i) => {
|
|
|
1244
1278
|
$ref: `${f.api.baseUrl}/schemas/file/1.json`
|
|
1245
1279
|
}
|
|
1246
1280
|
}
|
|
1247
|
-
],
|
|
1281
|
+
], k2 = ({ document: i = null }) => {
|
|
1248
1282
|
const e = d(), { language: t } = i || {};
|
|
1249
1283
|
return {
|
|
1250
|
-
readView:
|
|
1251
|
-
validation:
|
|
1284
|
+
readView: b2(e),
|
|
1285
|
+
validation: _2(e, t)
|
|
1252
1286
|
};
|
|
1253
|
-
},
|
|
1287
|
+
}, L2 = () => [
|
|
1254
1288
|
{
|
|
1255
1289
|
itemId: "presentation",
|
|
1256
1290
|
itemType: "presentation",
|
|
@@ -1258,11 +1292,11 @@ const _2 = (i) => {
|
|
|
1258
1292
|
parentId: "0",
|
|
1259
1293
|
nodeId: d()
|
|
1260
1294
|
}
|
|
1261
|
-
],
|
|
1262
|
-
readView:
|
|
1295
|
+
], $2 = () => ({
|
|
1296
|
+
readView: L2(),
|
|
1263
1297
|
validation: []
|
|
1264
1298
|
// all relevant data is either within base doc or company settings etc
|
|
1265
|
-
}),
|
|
1299
|
+
}), S2 = () => {
|
|
1266
1300
|
const i = Array(2).fill().map(() => d());
|
|
1267
1301
|
return [
|
|
1268
1302
|
{
|
|
@@ -1285,19 +1319,19 @@ const _2 = (i) => {
|
|
|
1285
1319
|
// uniqid(),
|
|
1286
1320
|
}
|
|
1287
1321
|
];
|
|
1288
|
-
},
|
|
1322
|
+
}, T2 = (i = "en") => [
|
|
1289
1323
|
{
|
|
1290
1324
|
key: "multiGroupPricing-title",
|
|
1291
1325
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
1292
1326
|
defaultValue: h.t("components:document.chapters.multiGroupPricing.title", { lng: i })
|
|
1293
1327
|
}
|
|
1294
|
-
],
|
|
1328
|
+
], D2 = ({ document: i = null }) => {
|
|
1295
1329
|
const { language: e } = i || {};
|
|
1296
1330
|
return {
|
|
1297
|
-
readView:
|
|
1298
|
-
validation:
|
|
1331
|
+
readView: S2(),
|
|
1332
|
+
validation: T2(e)
|
|
1299
1333
|
};
|
|
1300
|
-
},
|
|
1334
|
+
}, V2 = () => [
|
|
1301
1335
|
{
|
|
1302
1336
|
itemId: "terms",
|
|
1303
1337
|
itemType: "termsDisclaimer",
|
|
@@ -1323,10 +1357,10 @@ const _2 = (i) => {
|
|
|
1323
1357
|
{ type: "null" }
|
|
1324
1358
|
]
|
|
1325
1359
|
}
|
|
1326
|
-
],
|
|
1327
|
-
readView:
|
|
1360
|
+
], M2 = () => ({
|
|
1361
|
+
readView: V2(),
|
|
1328
1362
|
validation: B2()
|
|
1329
|
-
}),
|
|
1363
|
+
}), I2 = () => {
|
|
1330
1364
|
const i = Array(5).fill().map(() => d());
|
|
1331
1365
|
return [
|
|
1332
1366
|
{
|
|
@@ -1375,7 +1409,7 @@ const _2 = (i) => {
|
|
|
1375
1409
|
nodeId: i[4]
|
|
1376
1410
|
}
|
|
1377
1411
|
];
|
|
1378
|
-
},
|
|
1412
|
+
}, F2 = () => ({
|
|
1379
1413
|
clients: [{
|
|
1380
1414
|
name: "Pernilla P.",
|
|
1381
1415
|
email: "pernilla@mail.se",
|
|
@@ -1385,20 +1419,20 @@ const _2 = (i) => {
|
|
|
1385
1419
|
deliveryTypes: ["email"],
|
|
1386
1420
|
answerMethod: { accept: "signature", deny: "button" }
|
|
1387
1421
|
}]
|
|
1388
|
-
}),
|
|
1422
|
+
}), H2 = (i = "en") => [
|
|
1389
1423
|
{ key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1390
1424
|
{ key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
|
|
1391
1425
|
{ key: "partiesString", anyOf: [{ type: "string" }, { type: "null" }], defaultValue: h.t("components:document.chapters.parties.title", { lng: i }) }
|
|
1392
|
-
],
|
|
1426
|
+
], A2 = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
1393
1427
|
const { language: a } = e || {};
|
|
1394
1428
|
let n = null;
|
|
1395
|
-
return typeof t == "function" ? n = t() : i && (n =
|
|
1396
|
-
readView:
|
|
1397
|
-
validation:
|
|
1429
|
+
return typeof t == "function" ? n = t() : i && (n = F2()), {
|
|
1430
|
+
readView: I2(),
|
|
1431
|
+
validation: H2(a),
|
|
1398
1432
|
// Client / company will for now always exist on doc and in validation
|
|
1399
1433
|
...n && { data: n }
|
|
1400
1434
|
};
|
|
1401
|
-
},
|
|
1435
|
+
}, P2 = (i) => {
|
|
1402
1436
|
const e = Array(3).fill().map(() => d());
|
|
1403
1437
|
return [
|
|
1404
1438
|
{
|
|
@@ -1427,7 +1461,7 @@ const _2 = (i) => {
|
|
|
1427
1461
|
nodeId: e[2]
|
|
1428
1462
|
}
|
|
1429
1463
|
];
|
|
1430
|
-
},
|
|
1464
|
+
}, E2 = (i) => [
|
|
1431
1465
|
{
|
|
1432
1466
|
key: `estimatedTimeComplete-${i}`,
|
|
1433
1467
|
type: "object",
|
|
@@ -1448,20 +1482,20 @@ const _2 = (i) => {
|
|
|
1448
1482
|
}
|
|
1449
1483
|
}
|
|
1450
1484
|
}
|
|
1451
|
-
],
|
|
1485
|
+
], z2 = (i) => ({
|
|
1452
1486
|
[`estimatedTimeComplete-${i}`]: {
|
|
1453
1487
|
value: 4,
|
|
1454
1488
|
unitType: "hour"
|
|
1455
1489
|
}
|
|
1456
|
-
}),
|
|
1490
|
+
}), Z2 = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1457
1491
|
const t = d();
|
|
1458
1492
|
let a = null;
|
|
1459
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1460
|
-
readView:
|
|
1461
|
-
validation:
|
|
1493
|
+
return typeof e == "function" ? a = e(t) : i && (a = z2(t)), {
|
|
1494
|
+
readView: P2(t),
|
|
1495
|
+
validation: E2(t),
|
|
1462
1496
|
...a && { data: a }
|
|
1463
1497
|
};
|
|
1464
|
-
},
|
|
1498
|
+
}, O2 = () => {
|
|
1465
1499
|
const i = Array(3).fill().map(() => d());
|
|
1466
1500
|
return [
|
|
1467
1501
|
{
|
|
@@ -1504,10 +1538,10 @@ const _2 = (i) => {
|
|
|
1504
1538
|
endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
|
|
1505
1539
|
}
|
|
1506
1540
|
}
|
|
1507
|
-
],
|
|
1508
|
-
readView:
|
|
1541
|
+
], R2 = () => ({
|
|
1542
|
+
readView: O2(),
|
|
1509
1543
|
validation: G2()
|
|
1510
|
-
}),
|
|
1544
|
+
}), U2 = () => {
|
|
1511
1545
|
const i = Array(5).fill().map(() => d());
|
|
1512
1546
|
return [
|
|
1513
1547
|
{
|
|
@@ -1573,7 +1607,7 @@ const _2 = (i) => {
|
|
|
1573
1607
|
nodeId: i[4]
|
|
1574
1608
|
}
|
|
1575
1609
|
];
|
|
1576
|
-
},
|
|
1610
|
+
}, W2 = () => [
|
|
1577
1611
|
{
|
|
1578
1612
|
key: "extraWorkConstruction",
|
|
1579
1613
|
extraWorkConstruction: {
|
|
@@ -1597,11 +1631,11 @@ const _2 = (i) => {
|
|
|
1597
1631
|
}
|
|
1598
1632
|
}
|
|
1599
1633
|
}
|
|
1600
|
-
],
|
|
1601
|
-
readView:
|
|
1602
|
-
validation:
|
|
1634
|
+
], q2 = () => ({
|
|
1635
|
+
readView: U2(),
|
|
1636
|
+
validation: W2()
|
|
1603
1637
|
// Client / company will for now always exist on doc and in validation
|
|
1604
|
-
}),
|
|
1638
|
+
}), N2 = () => {
|
|
1605
1639
|
const i = Array(3).fill().map(() => d());
|
|
1606
1640
|
return [
|
|
1607
1641
|
{
|
|
@@ -1641,7 +1675,7 @@ const _2 = (i) => {
|
|
|
1641
1675
|
nodeId: i[2]
|
|
1642
1676
|
}
|
|
1643
1677
|
];
|
|
1644
|
-
},
|
|
1678
|
+
}, j2 = () => [
|
|
1645
1679
|
{
|
|
1646
1680
|
key: "extraWorkTimeImpact",
|
|
1647
1681
|
anyOf: [
|
|
@@ -1665,10 +1699,10 @@ const _2 = (i) => {
|
|
|
1665
1699
|
}
|
|
1666
1700
|
]
|
|
1667
1701
|
}
|
|
1668
|
-
],
|
|
1669
|
-
readView:
|
|
1670
|
-
validation:
|
|
1671
|
-
}),
|
|
1702
|
+
], K2 = () => ({
|
|
1703
|
+
readView: N2(),
|
|
1704
|
+
validation: j2()
|
|
1705
|
+
}), Y2 = () => {
|
|
1672
1706
|
const i = Array(5).fill().map(() => d());
|
|
1673
1707
|
return [
|
|
1674
1708
|
{
|
|
@@ -1721,13 +1755,13 @@ const _2 = (i) => {
|
|
|
1721
1755
|
nodeId: i[4]
|
|
1722
1756
|
}
|
|
1723
1757
|
];
|
|
1724
|
-
},
|
|
1758
|
+
}, Q2 = () => [
|
|
1725
1759
|
{ key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
|
|
1726
1760
|
{ key: "notBinding", type: "boolean" }
|
|
1727
|
-
],
|
|
1728
|
-
readView:
|
|
1729
|
-
validation:
|
|
1730
|
-
}),
|
|
1761
|
+
], J2 = () => ({
|
|
1762
|
+
readView: Y2(),
|
|
1763
|
+
validation: Q2()
|
|
1764
|
+
}), X2 = (i) => {
|
|
1731
1765
|
const e = Array(2).fill().map(() => d());
|
|
1732
1766
|
return [
|
|
1733
1767
|
{
|
|
@@ -1749,22 +1783,22 @@ const _2 = (i) => {
|
|
|
1749
1783
|
nodeId: e[1]
|
|
1750
1784
|
}
|
|
1751
1785
|
];
|
|
1752
|
-
},
|
|
1786
|
+
}, ei = (i) => [
|
|
1753
1787
|
{ key: `title-${i}`, anyOf: [{ type: "string" }, { type: "null" }], defaultValue: "" },
|
|
1754
1788
|
{ key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
|
|
1755
|
-
],
|
|
1789
|
+
], ti = (i) => ({
|
|
1756
1790
|
[`data.title-${i}`]: "My custom text",
|
|
1757
1791
|
[`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
|
|
1758
|
-
}),
|
|
1792
|
+
}), ii = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
1759
1793
|
const t = d();
|
|
1760
1794
|
let a = null;
|
|
1761
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
1762
|
-
readView:
|
|
1763
|
-
validation:
|
|
1795
|
+
return typeof e == "function" ? a = e(t) : i && (a = ti(t)), {
|
|
1796
|
+
readView: X2(t),
|
|
1797
|
+
validation: ei(t),
|
|
1764
1798
|
...a && { data: a },
|
|
1765
1799
|
onAddFnName: "conditionalOnAdd"
|
|
1766
1800
|
};
|
|
1767
|
-
},
|
|
1801
|
+
}, ai = (i) => [
|
|
1768
1802
|
{
|
|
1769
1803
|
itemId: "coverBlock",
|
|
1770
1804
|
itemType: "coverBlock",
|
|
@@ -1774,7 +1808,7 @@ const _2 = (i) => {
|
|
|
1774
1808
|
parentId: "0",
|
|
1775
1809
|
nodeId: d()
|
|
1776
1810
|
}
|
|
1777
|
-
],
|
|
1811
|
+
], ni = (i, e = "en") => [
|
|
1778
1812
|
{
|
|
1779
1813
|
key: `coverBlock-${i}`,
|
|
1780
1814
|
defaultValue: {
|
|
@@ -1791,7 +1825,7 @@ const _2 = (i) => {
|
|
|
1791
1825
|
},
|
|
1792
1826
|
$ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
|
|
1793
1827
|
}
|
|
1794
|
-
],
|
|
1828
|
+
], si = (i) => ({
|
|
1795
1829
|
[`data.coverBlock-${i}`]: {
|
|
1796
1830
|
text: "<h1>We know communication</h1>",
|
|
1797
1831
|
cover: {
|
|
@@ -1801,15 +1835,15 @@ const _2 = (i) => {
|
|
|
1801
1835
|
blur: 0
|
|
1802
1836
|
}
|
|
1803
1837
|
}
|
|
1804
|
-
}),
|
|
1838
|
+
}), oi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
1805
1839
|
const a = d(), { language: n } = e || {};
|
|
1806
1840
|
let s = null;
|
|
1807
|
-
return typeof t == "function" ? s = t(a) : i && (s =
|
|
1808
|
-
readView:
|
|
1809
|
-
validation:
|
|
1841
|
+
return typeof t == "function" ? s = t(a) : i && (s = si(a)), {
|
|
1842
|
+
readView: ai(a),
|
|
1843
|
+
validation: ni(a, n),
|
|
1810
1844
|
...s && { data: s }
|
|
1811
1845
|
};
|
|
1812
|
-
},
|
|
1846
|
+
}, li = ({ language: i = "en" } = {}) => {
|
|
1813
1847
|
const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
|
|
1814
1848
|
lng: i
|
|
1815
1849
|
});
|
|
@@ -1954,7 +1988,7 @@ const _2 = (i) => {
|
|
|
1954
1988
|
})
|
|
1955
1989
|
}
|
|
1956
1990
|
];
|
|
1957
|
-
},
|
|
1991
|
+
}, ri = (i) => [
|
|
1958
1992
|
{
|
|
1959
1993
|
itemId: `header-${i}`,
|
|
1960
1994
|
itemType: "header",
|
|
@@ -1964,7 +1998,7 @@ const _2 = (i) => {
|
|
|
1964
1998
|
parentId: "0",
|
|
1965
1999
|
nodeId: d()
|
|
1966
2000
|
}
|
|
1967
|
-
],
|
|
2001
|
+
], ci = (i, e = null) => {
|
|
1968
2002
|
const {
|
|
1969
2003
|
language: t = "en",
|
|
1970
2004
|
name: a = "",
|
|
@@ -2016,7 +2050,7 @@ const _2 = (i) => {
|
|
|
2016
2050
|
}
|
|
2017
2051
|
}
|
|
2018
2052
|
];
|
|
2019
|
-
},
|
|
2053
|
+
}, di = (i) => ({
|
|
2020
2054
|
[`data.header-${i}`]: {
|
|
2021
2055
|
layout: "vertical",
|
|
2022
2056
|
baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
|
|
@@ -2046,15 +2080,15 @@ const _2 = (i) => {
|
|
|
2046
2080
|
}
|
|
2047
2081
|
]
|
|
2048
2082
|
}
|
|
2049
|
-
}),
|
|
2083
|
+
}), pi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
|
|
2050
2084
|
const a = d();
|
|
2051
2085
|
let n = null;
|
|
2052
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2053
|
-
readView:
|
|
2054
|
-
validation:
|
|
2086
|
+
return typeof t == "function" ? n = t(a) : i && (n = di(a)), {
|
|
2087
|
+
readView: ri(a),
|
|
2088
|
+
validation: ci(a, e),
|
|
2055
2089
|
...n && { data: n }
|
|
2056
2090
|
};
|
|
2057
|
-
},
|
|
2091
|
+
}, ui = ({ language: i = "en" } = {}) => {
|
|
2058
2092
|
const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
|
|
2059
2093
|
lng: i,
|
|
2060
2094
|
interpolation: { prefix: "__", suffix: "__" }
|
|
@@ -2354,7 +2388,7 @@ h.loadOptions({
|
|
|
2354
2388
|
}
|
|
2355
2389
|
}
|
|
2356
2390
|
});
|
|
2357
|
-
const
|
|
2391
|
+
const mi = (i) => {
|
|
2358
2392
|
const e = Array(2).fill().map(() => d());
|
|
2359
2393
|
return [
|
|
2360
2394
|
{
|
|
@@ -2379,7 +2413,7 @@ const hi = (i) => {
|
|
|
2379
2413
|
nodeId: e[1]
|
|
2380
2414
|
}
|
|
2381
2415
|
];
|
|
2382
|
-
},
|
|
2416
|
+
}, hi = (i, e = "en") => [
|
|
2383
2417
|
{
|
|
2384
2418
|
key: `packageGroups.${i}`,
|
|
2385
2419
|
validationKey: "packageGroups",
|
|
@@ -2399,11 +2433,11 @@ const hi = (i) => {
|
|
|
2399
2433
|
},
|
|
2400
2434
|
$ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
|
|
2401
2435
|
}
|
|
2402
|
-
],
|
|
2436
|
+
], fi = () => null, gi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
|
|
2403
2437
|
const a = d(), { language: n } = e || {};
|
|
2404
2438
|
let s = null;
|
|
2405
|
-
typeof t == "function" ? s = t(a) : i && (s =
|
|
2406
|
-
const o =
|
|
2439
|
+
typeof t == "function" ? s = t(a) : i && (s = fi());
|
|
2440
|
+
const o = mi(a), l = hi(a, n);
|
|
2407
2441
|
return {
|
|
2408
2442
|
readView: o,
|
|
2409
2443
|
validation: l,
|
|
@@ -2495,7 +2529,7 @@ h.loadOptions({
|
|
|
2495
2529
|
}
|
|
2496
2530
|
}
|
|
2497
2531
|
});
|
|
2498
|
-
const
|
|
2532
|
+
const Ci = ({
|
|
2499
2533
|
language: i = "en",
|
|
2500
2534
|
currency: e = "USD",
|
|
2501
2535
|
_getters: t,
|
|
@@ -2852,7 +2886,7 @@ const vi = ({
|
|
|
2852
2886
|
}
|
|
2853
2887
|
}
|
|
2854
2888
|
];
|
|
2855
|
-
},
|
|
2889
|
+
}, vi = (i) => [
|
|
2856
2890
|
{
|
|
2857
2891
|
itemId: "embed",
|
|
2858
2892
|
itemType: "embed",
|
|
@@ -2866,7 +2900,7 @@ const vi = ({
|
|
|
2866
2900
|
parentId: "0",
|
|
2867
2901
|
nodeId: d()
|
|
2868
2902
|
}
|
|
2869
|
-
],
|
|
2903
|
+
], yi = (i) => [
|
|
2870
2904
|
{
|
|
2871
2905
|
key: `embed-${i}`,
|
|
2872
2906
|
$ref: `${f.api.baseUrl}/schemas/embed/1.json`,
|
|
@@ -2875,12 +2909,12 @@ const vi = ({
|
|
|
2875
2909
|
size: "small"
|
|
2876
2910
|
}
|
|
2877
2911
|
}
|
|
2878
|
-
],
|
|
2912
|
+
], xi = () => null, wi = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
|
|
2879
2913
|
const a = d();
|
|
2880
2914
|
let n = null;
|
|
2881
|
-
return typeof t == "function" ? n = t(a) : i && (n =
|
|
2882
|
-
readView:
|
|
2883
|
-
validation:
|
|
2915
|
+
return typeof t == "function" ? n = t(a) : i && (n = xi()), {
|
|
2916
|
+
readView: vi(a),
|
|
2917
|
+
validation: yi(a),
|
|
2884
2918
|
...n && { data: n }
|
|
2885
2919
|
};
|
|
2886
2920
|
};
|
|
@@ -2895,7 +2929,7 @@ h.loadOptions({
|
|
|
2895
2929
|
}
|
|
2896
2930
|
}
|
|
2897
2931
|
});
|
|
2898
|
-
const
|
|
2932
|
+
const bi = ({ language: i = "en" } = {}) => [
|
|
2899
2933
|
{
|
|
2900
2934
|
previewUrl: `
|
|
2901
2935
|
<div style="position: relative;">
|
|
@@ -3187,7 +3221,7 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3187
3221
|
}
|
|
3188
3222
|
})
|
|
3189
3223
|
}
|
|
3190
|
-
],
|
|
3224
|
+
], _i = (i) => [
|
|
3191
3225
|
{
|
|
3192
3226
|
itemId: "videoPlayer",
|
|
3193
3227
|
itemType: "videoPlayer",
|
|
@@ -3200,7 +3234,7 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3200
3234
|
parentId: "0",
|
|
3201
3235
|
nodeId: d()
|
|
3202
3236
|
}
|
|
3203
|
-
],
|
|
3237
|
+
], ki = (i) => [
|
|
3204
3238
|
{
|
|
3205
3239
|
key: `video-${i}`,
|
|
3206
3240
|
$ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
|
|
@@ -3211,7 +3245,7 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3211
3245
|
}
|
|
3212
3246
|
}
|
|
3213
3247
|
}
|
|
3214
|
-
],
|
|
3248
|
+
], Li = (i) => ({
|
|
3215
3249
|
[`data.video-${i}`]: {
|
|
3216
3250
|
size: "small",
|
|
3217
3251
|
video: {
|
|
@@ -3220,15 +3254,15 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3220
3254
|
id: "166JEb6qkr4"
|
|
3221
3255
|
}
|
|
3222
3256
|
}
|
|
3223
|
-
}),
|
|
3257
|
+
}), $i = ({ includeMockData: i = !1, contentData: e = null }) => {
|
|
3224
3258
|
const t = d();
|
|
3225
3259
|
let a = null;
|
|
3226
|
-
return typeof e == "function" ? a = e(t) : i && (a =
|
|
3227
|
-
readView:
|
|
3228
|
-
validation:
|
|
3260
|
+
return typeof e == "function" ? a = e(t) : i && (a = Li(t)), {
|
|
3261
|
+
readView: _i(t),
|
|
3262
|
+
validation: ki(t),
|
|
3229
3263
|
...a && { data: a }
|
|
3230
3264
|
};
|
|
3231
|
-
},
|
|
3265
|
+
}, Si = ({ language: i = "en" } = {}) => [
|
|
3232
3266
|
{
|
|
3233
3267
|
previewUrl: `
|
|
3234
3268
|
<div style="position: relative;">
|
|
@@ -3429,35 +3463,35 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3429
3463
|
}
|
|
3430
3464
|
})
|
|
3431
3465
|
}
|
|
3432
|
-
],
|
|
3433
|
-
titleAndText2:
|
|
3434
|
-
attachments2:
|
|
3466
|
+
], G = {
|
|
3467
|
+
titleAndText2: ii,
|
|
3468
|
+
attachments2: k2,
|
|
3435
3469
|
pdf: De,
|
|
3436
|
-
packageGroup:
|
|
3437
|
-
multiGroupPricing:
|
|
3438
|
-
coverBlock:
|
|
3439
|
-
videoPlayer:
|
|
3440
|
-
embed:
|
|
3441
|
-
header:
|
|
3470
|
+
packageGroup: gi,
|
|
3471
|
+
multiGroupPricing: D2,
|
|
3472
|
+
coverBlock: oi,
|
|
3473
|
+
videoPlayer: $i,
|
|
3474
|
+
embed: wi,
|
|
3475
|
+
header: pi,
|
|
3442
3476
|
answer: Ve,
|
|
3443
|
-
terms:
|
|
3444
|
-
parties:
|
|
3477
|
+
terms: M2,
|
|
3478
|
+
parties: A2,
|
|
3445
3479
|
custom: a1,
|
|
3446
3480
|
// legacy
|
|
3447
|
-
presentation:
|
|
3448
|
-
estimatedTimeCompleted:
|
|
3449
|
-
estimatedWorkStartAndEndAtText:
|
|
3450
|
-
extraWorkConstructionPricingList:
|
|
3451
|
-
extraWorkTimeImpactText:
|
|
3452
|
-
notBinding:
|
|
3481
|
+
presentation: $2,
|
|
3482
|
+
estimatedTimeCompleted: Z2,
|
|
3483
|
+
estimatedWorkStartAndEndAtText: R2,
|
|
3484
|
+
extraWorkConstructionPricingList: q2,
|
|
3485
|
+
extraWorkTimeImpactText: K2,
|
|
3486
|
+
notBinding: J2
|
|
3453
3487
|
}, R = {
|
|
3454
|
-
coverBlock:
|
|
3455
|
-
header:
|
|
3456
|
-
packageGroup:
|
|
3457
|
-
embed:
|
|
3458
|
-
videoPlayer:
|
|
3488
|
+
coverBlock: li,
|
|
3489
|
+
header: ui,
|
|
3490
|
+
packageGroup: Ci,
|
|
3491
|
+
embed: bi,
|
|
3492
|
+
videoPlayer: Si,
|
|
3459
3493
|
custom: i1
|
|
3460
|
-
},
|
|
3494
|
+
}, Ti = {
|
|
3461
3495
|
name: "AddBlock",
|
|
3462
3496
|
props: {
|
|
3463
3497
|
set: {
|
|
@@ -3471,21 +3505,21 @@ const _i = ({ language: i = "en" } = {}) => [
|
|
|
3471
3505
|
},
|
|
3472
3506
|
render() {
|
|
3473
3507
|
return this.$scopedSlots.default({
|
|
3474
|
-
addBlock: (i) =>
|
|
3508
|
+
addBlock: (i) => Be({
|
|
3475
3509
|
...i,
|
|
3476
3510
|
set: this.set,
|
|
3477
|
-
tplGenerators:
|
|
3511
|
+
tplGenerators: G,
|
|
3478
3512
|
includeMockData: this.includeMockData,
|
|
3479
3513
|
emit: (...e) => this.$emit(...e)
|
|
3480
3514
|
}),
|
|
3481
|
-
getBlockPayload: (i) =>
|
|
3515
|
+
getBlockPayload: (i) => Me(i, this.set, G, this.includeMockdata)
|
|
3482
3516
|
});
|
|
3483
3517
|
}
|
|
3484
|
-
},
|
|
3518
|
+
}, Di = null, Vi = null;
|
|
3485
3519
|
var Bi = /* @__PURE__ */ c(
|
|
3520
|
+
Ti,
|
|
3486
3521
|
Di,
|
|
3487
3522
|
Vi,
|
|
3488
|
-
Mi,
|
|
3489
3523
|
!1,
|
|
3490
3524
|
null,
|
|
3491
3525
|
null,
|
|
@@ -3493,7 +3527,7 @@ var Bi = /* @__PURE__ */ c(
|
|
|
3493
3527
|
null
|
|
3494
3528
|
);
|
|
3495
3529
|
const ne = Bi.exports;
|
|
3496
|
-
const
|
|
3530
|
+
const Mi = {
|
|
3497
3531
|
name: "Drawer",
|
|
3498
3532
|
props: {
|
|
3499
3533
|
value: {
|
|
@@ -3536,7 +3570,7 @@ const Ii = {
|
|
|
3536
3570
|
}
|
|
3537
3571
|
}
|
|
3538
3572
|
};
|
|
3539
|
-
var
|
|
3573
|
+
var Ii = function() {
|
|
3540
3574
|
var e = this, t = e._self._c;
|
|
3541
3575
|
return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
|
|
3542
3576
|
zIndex: e.zIndex
|
|
@@ -3552,18 +3586,18 @@ var Fi = function() {
|
|
|
3552
3586
|
boxShadow: e.boxShadow,
|
|
3553
3587
|
...e.contentStyle
|
|
3554
3588
|
} }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
3555
|
-
},
|
|
3589
|
+
}, Fi = [], Hi = /* @__PURE__ */ c(
|
|
3590
|
+
Mi,
|
|
3556
3591
|
Ii,
|
|
3557
3592
|
Fi,
|
|
3558
|
-
Hi,
|
|
3559
3593
|
!1,
|
|
3560
3594
|
null,
|
|
3561
3595
|
"3cb13e4e",
|
|
3562
3596
|
null,
|
|
3563
3597
|
null
|
|
3564
3598
|
);
|
|
3565
|
-
const se =
|
|
3566
|
-
const
|
|
3599
|
+
const se = Hi.exports;
|
|
3600
|
+
const Ai = {
|
|
3567
3601
|
name: "DocumentSend",
|
|
3568
3602
|
i18nOptions: {
|
|
3569
3603
|
namespaces: "documentSend",
|
|
@@ -3592,14 +3626,16 @@ const Pi = {
|
|
|
3592
3626
|
SendForm: s1,
|
|
3593
3627
|
CCheckbox: Ie,
|
|
3594
3628
|
BaseIcon: Fe,
|
|
3595
|
-
CButton: He
|
|
3629
|
+
CButton: He,
|
|
3630
|
+
IsPremium: $,
|
|
3631
|
+
IsPremiumPreStep: b
|
|
3596
3632
|
},
|
|
3597
3633
|
mixins: [
|
|
3598
|
-
|
|
3634
|
+
S([], {
|
|
3599
3635
|
useEmit: !1,
|
|
3600
3636
|
setFnName: "setFormValue"
|
|
3601
3637
|
}),
|
|
3602
|
-
|
|
3638
|
+
L
|
|
3603
3639
|
],
|
|
3604
3640
|
props: {
|
|
3605
3641
|
setFormValue: {
|
|
@@ -3672,10 +3708,17 @@ const Pi = {
|
|
|
3672
3708
|
},
|
|
3673
3709
|
async onSaveDoc({ doSend: i }) {
|
|
3674
3710
|
this.saveTemplate && await this.doSaveTemplate(), await this.onSaveDocument({ doSend: i });
|
|
3711
|
+
},
|
|
3712
|
+
onClickSaveAsTemplate({ event: i, can: e, open: t }) {
|
|
3713
|
+
e || this.isPublicForm || (i.preventDefault(), t({
|
|
3714
|
+
callback: () => {
|
|
3715
|
+
this.saveTemplate = !0;
|
|
3716
|
+
}
|
|
3717
|
+
}));
|
|
3675
3718
|
}
|
|
3676
3719
|
}
|
|
3677
3720
|
};
|
|
3678
|
-
var
|
|
3721
|
+
var Pi = function() {
|
|
3679
3722
|
var e = this, t = e._self._c;
|
|
3680
3723
|
return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
|
|
3681
3724
|
e.isOpen = a;
|
|
@@ -3687,20 +3730,24 @@ var Ei = function() {
|
|
|
3687
3730
|
return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
|
|
3688
3731
|
return a({ sectionKey: "answer" });
|
|
3689
3732
|
} } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
|
|
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("
|
|
3691
|
-
e.
|
|
3692
|
-
|
|
3693
|
-
|
|
3733
|
+
} }], 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("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a }) {
|
|
3734
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
|
|
3735
|
+
return [t("div", { staticClass: "flex items-center", on: { click: (s) => e.onClickSaveAsTemplate({ event: s, can: a, open: n }) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(s) {
|
|
3736
|
+
e.saveTemplate = s;
|
|
3737
|
+
}, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
|
|
3738
|
+
} }], null, !0) })];
|
|
3739
|
+
} }], null, !1, 763192116) })], 1)], 1)], 1)]) : e._e();
|
|
3740
|
+
}, Ei = [], zi = /* @__PURE__ */ c(
|
|
3741
|
+
Ai,
|
|
3694
3742
|
Pi,
|
|
3695
3743
|
Ei,
|
|
3696
|
-
zi,
|
|
3697
3744
|
!1,
|
|
3698
3745
|
null,
|
|
3699
|
-
"
|
|
3746
|
+
"56ed9100",
|
|
3700
3747
|
null,
|
|
3701
3748
|
null
|
|
3702
3749
|
);
|
|
3703
|
-
const
|
|
3750
|
+
const Zi = zi.exports, Oi = {
|
|
3704
3751
|
name: "Draggable",
|
|
3705
3752
|
data() {
|
|
3706
3753
|
return {
|
|
@@ -3732,21 +3779,21 @@ const Oi = Zi.exports, Ri = {
|
|
|
3732
3779
|
dragMousedown: this.onDragMouseDown
|
|
3733
3780
|
});
|
|
3734
3781
|
}
|
|
3735
|
-
}, Gi = null,
|
|
3736
|
-
var
|
|
3737
|
-
|
|
3782
|
+
}, Gi = null, Ri = null;
|
|
3783
|
+
var Ui = /* @__PURE__ */ c(
|
|
3784
|
+
Oi,
|
|
3738
3785
|
Gi,
|
|
3739
|
-
|
|
3786
|
+
Ri,
|
|
3740
3787
|
!1,
|
|
3741
3788
|
null,
|
|
3742
3789
|
null,
|
|
3743
3790
|
null,
|
|
3744
3791
|
null
|
|
3745
3792
|
);
|
|
3746
|
-
const
|
|
3747
|
-
const
|
|
3793
|
+
const Wi = Ui.exports;
|
|
3794
|
+
const qi = {
|
|
3748
3795
|
components: {
|
|
3749
|
-
Draggable:
|
|
3796
|
+
Draggable: Wi
|
|
3750
3797
|
},
|
|
3751
3798
|
props: {
|
|
3752
3799
|
offset: {
|
|
@@ -3759,7 +3806,7 @@ const Ni = {
|
|
|
3759
3806
|
}
|
|
3760
3807
|
}
|
|
3761
3808
|
};
|
|
3762
|
-
var
|
|
3809
|
+
var Ni = function() {
|
|
3763
3810
|
var e = this, t = e._self._c;
|
|
3764
3811
|
return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
|
|
3765
3812
|
return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
|
|
@@ -3769,18 +3816,18 @@ var ji = function() {
|
|
|
3769
3816
|
return e.$emit("close");
|
|
3770
3817
|
} } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
|
|
3771
3818
|
} }], null, !0) })], 1);
|
|
3772
|
-
},
|
|
3819
|
+
}, ji = [], Ki = /* @__PURE__ */ c(
|
|
3820
|
+
qi,
|
|
3773
3821
|
Ni,
|
|
3774
3822
|
ji,
|
|
3775
|
-
Ki,
|
|
3776
3823
|
!1,
|
|
3777
3824
|
null,
|
|
3778
3825
|
"9b75010b",
|
|
3779
3826
|
null,
|
|
3780
3827
|
null
|
|
3781
3828
|
);
|
|
3782
|
-
const oe =
|
|
3783
|
-
const
|
|
3829
|
+
const oe = Ki.exports;
|
|
3830
|
+
const Yi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Yi), Qi = {
|
|
3784
3831
|
i18nOptions: {
|
|
3785
3832
|
namespaces: "common",
|
|
3786
3833
|
keyPrefix: "designLabels"
|
|
@@ -3791,7 +3838,7 @@ const Qi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Qi), Ji = {
|
|
|
3791
3838
|
DragWindow: oe
|
|
3792
3839
|
},
|
|
3793
3840
|
mixins: [
|
|
3794
|
-
|
|
3841
|
+
S(
|
|
3795
3842
|
["css"],
|
|
3796
3843
|
{ useEmit: !1, setFnName: "set" }
|
|
3797
3844
|
)
|
|
@@ -4334,7 +4381,7 @@ const Qi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Qi), Ji = {
|
|
|
4334
4381
|
}
|
|
4335
4382
|
}
|
|
4336
4383
|
};
|
|
4337
|
-
var
|
|
4384
|
+
var Ji = function() {
|
|
4338
4385
|
var e = this, t = e._self._c;
|
|
4339
4386
|
return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
|
|
4340
4387
|
return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
|
|
@@ -4353,18 +4400,18 @@ var Xi = function() {
|
|
|
4353
4400
|
})], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
|
|
4354
4401
|
return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
|
|
4355
4402
|
}), 1) : e._e()], 1);
|
|
4356
|
-
},
|
|
4403
|
+
}, Xi = [], ea = /* @__PURE__ */ c(
|
|
4404
|
+
Qi,
|
|
4357
4405
|
Ji,
|
|
4358
4406
|
Xi,
|
|
4359
|
-
ea,
|
|
4360
4407
|
!1,
|
|
4361
4408
|
null,
|
|
4362
4409
|
"930a4202",
|
|
4363
4410
|
null,
|
|
4364
4411
|
null
|
|
4365
4412
|
);
|
|
4366
|
-
const
|
|
4367
|
-
const
|
|
4413
|
+
const ta = ea.exports;
|
|
4414
|
+
const ia = {
|
|
4368
4415
|
name: "FieldsModal",
|
|
4369
4416
|
i18nOptions: {
|
|
4370
4417
|
namespaces: "FieldsModal",
|
|
@@ -4429,12 +4476,12 @@ const aa = {
|
|
|
4429
4476
|
validations: {
|
|
4430
4477
|
form: {
|
|
4431
4478
|
label: {
|
|
4432
|
-
required:
|
|
4479
|
+
required: I.required,
|
|
4433
4480
|
isUniqueLabel(i) {
|
|
4434
4481
|
return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
|
|
4435
4482
|
}
|
|
4436
4483
|
},
|
|
4437
|
-
value: { required:
|
|
4484
|
+
value: { required: I.required }
|
|
4438
4485
|
}
|
|
4439
4486
|
},
|
|
4440
4487
|
computed: {
|
|
@@ -4474,12 +4521,12 @@ const aa = {
|
|
|
4474
4521
|
remove() {
|
|
4475
4522
|
if (!this.existingFieldId)
|
|
4476
4523
|
return;
|
|
4477
|
-
const i =
|
|
4524
|
+
const i = d1(this.document.fields, [this.existingFieldId]);
|
|
4478
4525
|
this.set({ key: "data.fields", value: i }), this.$emit("close");
|
|
4479
4526
|
}
|
|
4480
4527
|
}
|
|
4481
4528
|
};
|
|
4482
|
-
var
|
|
4529
|
+
var aa = function() {
|
|
4483
4530
|
var e = this, t = e._self._c;
|
|
4484
4531
|
return t("div", { staticClass: "flex flex-col items-center w-full text-center bg-white font-inter", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
|
|
4485
4532
|
return a.preventDefault(), e.submit.apply(null, arguments);
|
|
@@ -4490,18 +4537,18 @@ var na = function() {
|
|
|
4490
4537
|
}, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
|
|
4491
4538
|
e.$set(e.form, "value", a);
|
|
4492
4539
|
}, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
|
|
4493
|
-
},
|
|
4540
|
+
}, na = [], sa = /* @__PURE__ */ c(
|
|
4541
|
+
ia,
|
|
4494
4542
|
aa,
|
|
4495
4543
|
na,
|
|
4496
|
-
sa,
|
|
4497
4544
|
!1,
|
|
4498
4545
|
null,
|
|
4499
4546
|
"5cc44007",
|
|
4500
4547
|
null,
|
|
4501
4548
|
null
|
|
4502
4549
|
);
|
|
4503
|
-
const
|
|
4504
|
-
const
|
|
4550
|
+
const oa = sa.exports;
|
|
4551
|
+
const la = {
|
|
4505
4552
|
i18nOptions: {
|
|
4506
4553
|
namespaces: "DocumentFormFields",
|
|
4507
4554
|
messages: {
|
|
@@ -4525,11 +4572,11 @@ const ra = {
|
|
|
4525
4572
|
},
|
|
4526
4573
|
name: "DocumentFormFields",
|
|
4527
4574
|
components: {
|
|
4528
|
-
SmartList:
|
|
4575
|
+
SmartList: c1,
|
|
4529
4576
|
CAccordion: je,
|
|
4530
4577
|
CField: Q
|
|
4531
4578
|
},
|
|
4532
|
-
mixins: [
|
|
4579
|
+
mixins: [S()],
|
|
4533
4580
|
props: {
|
|
4534
4581
|
set: {
|
|
4535
4582
|
type: Function,
|
|
@@ -4587,7 +4634,7 @@ const ra = {
|
|
|
4587
4634
|
async handler(i) {
|
|
4588
4635
|
var e, t;
|
|
4589
4636
|
if (this.isEditingTemplate && i) {
|
|
4590
|
-
const { data: a } = await
|
|
4637
|
+
const { data: a } = await k.getFields(i);
|
|
4591
4638
|
this.updateValue("data.fields", {
|
|
4592
4639
|
// crmFields added first in order to not override same service values
|
|
4593
4640
|
...a,
|
|
@@ -4604,7 +4651,7 @@ const ra = {
|
|
|
4604
4651
|
},
|
|
4605
4652
|
openFieldModal({ existingFieldId: i }) {
|
|
4606
4653
|
this.$modal.show(
|
|
4607
|
-
|
|
4654
|
+
oa,
|
|
4608
4655
|
{
|
|
4609
4656
|
document: this._document,
|
|
4610
4657
|
set: this.set,
|
|
@@ -4623,7 +4670,7 @@ const ra = {
|
|
|
4623
4670
|
);
|
|
4624
4671
|
},
|
|
4625
4672
|
onCopyField(i) {
|
|
4626
|
-
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Ae("info", this.$t("_common:copyMessage"))).catch((e) =>
|
|
4673
|
+
navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => Ae("info", this.$t("_common:copyMessage"))).catch((e) => T(e));
|
|
4627
4674
|
},
|
|
4628
4675
|
filterMethod(i, e) {
|
|
4629
4676
|
return e.filter((t) => t.label.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -4634,7 +4681,7 @@ const ra = {
|
|
|
4634
4681
|
}
|
|
4635
4682
|
}
|
|
4636
4683
|
};
|
|
4637
|
-
var
|
|
4684
|
+
var ra = function() {
|
|
4638
4685
|
var e = this, t = e._self._c;
|
|
4639
4686
|
return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
|
|
4640
4687
|
e.query = a;
|
|
@@ -4679,18 +4726,18 @@ var ca = function() {
|
|
|
4679
4726
|
} } })], 1)], 1)]);
|
|
4680
4727
|
}) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
|
|
4681
4728
|
})], 2)], 1);
|
|
4682
|
-
},
|
|
4729
|
+
}, ca = [], da = /* @__PURE__ */ c(
|
|
4730
|
+
la,
|
|
4683
4731
|
ra,
|
|
4684
4732
|
ca,
|
|
4685
|
-
da,
|
|
4686
4733
|
!1,
|
|
4687
4734
|
null,
|
|
4688
4735
|
"916766d5",
|
|
4689
4736
|
null,
|
|
4690
4737
|
null
|
|
4691
4738
|
);
|
|
4692
|
-
const
|
|
4693
|
-
const
|
|
4739
|
+
const pa = da.exports;
|
|
4740
|
+
const ua = {
|
|
4694
4741
|
i18nOptions: {
|
|
4695
4742
|
messages: {
|
|
4696
4743
|
en: {
|
|
@@ -4733,10 +4780,10 @@ const ma = {
|
|
|
4733
4780
|
},
|
|
4734
4781
|
name: "ExtensionTab",
|
|
4735
4782
|
components: {
|
|
4736
|
-
draggable:
|
|
4783
|
+
draggable: p1,
|
|
4737
4784
|
Spinner: Pe
|
|
4738
4785
|
},
|
|
4739
|
-
mixins: [
|
|
4786
|
+
mixins: [S([
|
|
4740
4787
|
"externalReferences",
|
|
4741
4788
|
"clients",
|
|
4742
4789
|
"articles"
|
|
@@ -4790,7 +4837,7 @@ const ma = {
|
|
|
4790
4837
|
}
|
|
4791
4838
|
},
|
|
4792
4839
|
methods: {
|
|
4793
|
-
priceFormat:
|
|
4840
|
+
priceFormat: N,
|
|
4794
4841
|
async _search(i) {
|
|
4795
4842
|
try {
|
|
4796
4843
|
this.isSearching = !0;
|
|
@@ -4801,7 +4848,7 @@ const ma = {
|
|
|
4801
4848
|
this.searchResults = [];
|
|
4802
4849
|
return;
|
|
4803
4850
|
}
|
|
4804
|
-
const { data: t } = await
|
|
4851
|
+
const { data: t } = await k.search(this.activeCrm, { query: i, type: "deal" });
|
|
4805
4852
|
t && Array.isArray(t) && (this.searchResults = t), t.length || (this.emptyQuery = e);
|
|
4806
4853
|
} catch (e) {
|
|
4807
4854
|
throw e;
|
|
@@ -4809,7 +4856,7 @@ const ma = {
|
|
|
4809
4856
|
this.isSearching = !1;
|
|
4810
4857
|
}
|
|
4811
4858
|
},
|
|
4812
|
-
search:
|
|
4859
|
+
search: H(async function(e) {
|
|
4813
4860
|
await this._search(e);
|
|
4814
4861
|
}, 750),
|
|
4815
4862
|
useSearchResult(i) {
|
|
@@ -4831,7 +4878,7 @@ const ma = {
|
|
|
4831
4878
|
const e = this.externalReferences.find((o) => o.service === this.activeCrm && o.type === i);
|
|
4832
4879
|
if (!e)
|
|
4833
4880
|
return;
|
|
4834
|
-
const { service: t, type: a, typeId: n } = e, { data: s } = await
|
|
4881
|
+
const { service: t, type: a, typeId: n } = e, { data: s } = await k.getExternalReferenceDetails(t, { type: a, typeId: n });
|
|
4835
4882
|
i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
|
|
4836
4883
|
} catch {
|
|
4837
4884
|
i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
|
|
@@ -4848,7 +4895,7 @@ const ma = {
|
|
|
4848
4895
|
},
|
|
4849
4896
|
async suggestClients() {
|
|
4850
4897
|
var n;
|
|
4851
|
-
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await
|
|
4898
|
+
const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await k.suggestClients(i, { type: e, typeId: t });
|
|
4852
4899
|
if (Array.isArray(a) && a.length) {
|
|
4853
4900
|
const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
|
|
4854
4901
|
...Ee(),
|
|
@@ -4881,7 +4928,7 @@ const ma = {
|
|
|
4881
4928
|
}
|
|
4882
4929
|
}
|
|
4883
4930
|
};
|
|
4884
|
-
var
|
|
4931
|
+
var ma = function() {
|
|
4885
4932
|
var e = this, t = e._self._c;
|
|
4886
4933
|
return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
|
|
4887
4934
|
return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
|
|
@@ -4912,18 +4959,18 @@ var ha = function() {
|
|
|
4912
4959
|
return e.addArticle(a);
|
|
4913
4960
|
} } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
|
|
4914
4961
|
}), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("BaseIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
|
|
4915
|
-
},
|
|
4962
|
+
}, ha = [], fa = /* @__PURE__ */ c(
|
|
4963
|
+
ua,
|
|
4916
4964
|
ma,
|
|
4917
4965
|
ha,
|
|
4918
|
-
fa,
|
|
4919
4966
|
!1,
|
|
4920
4967
|
null,
|
|
4921
4968
|
"b775e9f9",
|
|
4922
4969
|
null,
|
|
4923
4970
|
null
|
|
4924
4971
|
);
|
|
4925
|
-
const
|
|
4926
|
-
const
|
|
4972
|
+
const ga = fa.exports;
|
|
4973
|
+
const Ca = {
|
|
4927
4974
|
i18nOptions: {
|
|
4928
4975
|
namespaces: "DocSettings",
|
|
4929
4976
|
messages: {
|
|
@@ -5020,7 +5067,7 @@ const va = {
|
|
|
5020
5067
|
required: !0
|
|
5021
5068
|
}
|
|
5022
5069
|
},
|
|
5023
|
-
mixins: [
|
|
5070
|
+
mixins: [S([
|
|
5024
5071
|
"tags",
|
|
5025
5072
|
"series",
|
|
5026
5073
|
"senderId",
|
|
@@ -5228,7 +5275,7 @@ const va = {
|
|
|
5228
5275
|
}
|
|
5229
5276
|
}
|
|
5230
5277
|
};
|
|
5231
|
-
var
|
|
5278
|
+
var va = function() {
|
|
5232
5279
|
var e = this, t = e._self._c;
|
|
5233
5280
|
return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
|
|
5234
5281
|
return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
|
|
@@ -5237,17 +5284,17 @@ var ya = function() {
|
|
|
5237
5284
|
} } }, [e._l(e.priceOptions, function(a, n) {
|
|
5238
5285
|
return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
|
|
5239
5286
|
})], 2) : e._e()], 2);
|
|
5240
|
-
},
|
|
5287
|
+
}, ya = [], xa = /* @__PURE__ */ c(
|
|
5288
|
+
Ca,
|
|
5241
5289
|
va,
|
|
5242
5290
|
ya,
|
|
5243
|
-
xa,
|
|
5244
5291
|
!1,
|
|
5245
5292
|
null,
|
|
5246
5293
|
"eec61e30",
|
|
5247
5294
|
null,
|
|
5248
5295
|
null
|
|
5249
5296
|
);
|
|
5250
|
-
const
|
|
5297
|
+
const wa = xa.exports, ba = {
|
|
5251
5298
|
name: "MenuBlockConvertPopover",
|
|
5252
5299
|
props: {
|
|
5253
5300
|
target: {
|
|
@@ -5280,32 +5327,32 @@ const ba = wa.exports, _a = {
|
|
|
5280
5327
|
}
|
|
5281
5328
|
}
|
|
5282
5329
|
};
|
|
5283
|
-
var
|
|
5330
|
+
var _a = function() {
|
|
5284
5331
|
var e = this, t = e._self._c;
|
|
5285
5332
|
return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
|
|
5286
5333
|
return a.target !== a.currentTarget ? null : e.$emit("close");
|
|
5287
5334
|
} } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
5288
5335
|
return e.$emit("convert");
|
|
5289
5336
|
} } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
|
|
5290
|
-
},
|
|
5337
|
+
}, ka = [], La = /* @__PURE__ */ c(
|
|
5338
|
+
ba,
|
|
5291
5339
|
_a,
|
|
5292
5340
|
ka,
|
|
5293
|
-
La,
|
|
5294
5341
|
!1,
|
|
5295
5342
|
null,
|
|
5296
5343
|
null,
|
|
5297
5344
|
null,
|
|
5298
5345
|
null
|
|
5299
5346
|
);
|
|
5300
|
-
const
|
|
5301
|
-
const
|
|
5347
|
+
const $a = La.exports;
|
|
5348
|
+
const Sa = F.component("ProBadge", {
|
|
5302
5349
|
name: "ProBadge",
|
|
5303
5350
|
render(i) {
|
|
5304
5351
|
return i("div", {
|
|
5305
5352
|
staticClass: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
5306
5353
|
}, "Pro");
|
|
5307
5354
|
}
|
|
5308
|
-
}),
|
|
5355
|
+
}), Ta = {
|
|
5309
5356
|
name: "MenuBlocks",
|
|
5310
5357
|
i18nOptions: {
|
|
5311
5358
|
namespaces: "menuBlocks",
|
|
@@ -5375,13 +5422,13 @@ const Ta = B.component("ProBadge", {
|
|
|
5375
5422
|
}
|
|
5376
5423
|
},
|
|
5377
5424
|
components: {
|
|
5378
|
-
simplebar:
|
|
5379
|
-
DragList:
|
|
5380
|
-
DragItem:
|
|
5425
|
+
simplebar: _,
|
|
5426
|
+
DragList: K,
|
|
5427
|
+
DragItem: Y,
|
|
5381
5428
|
AddBlock: ne,
|
|
5382
|
-
IsPremiumPreStep:
|
|
5383
|
-
ProBadge:
|
|
5384
|
-
MenuBlockConvertPopover:
|
|
5429
|
+
IsPremiumPreStep: b,
|
|
5430
|
+
ProBadge: Sa,
|
|
5431
|
+
MenuBlockConvertPopover: $a
|
|
5385
5432
|
},
|
|
5386
5433
|
props: {
|
|
5387
5434
|
_document: {
|
|
@@ -5410,7 +5457,7 @@ const Ta = B.component("ProBadge", {
|
|
|
5410
5457
|
default: () => ({ isPublicForm: !1 })
|
|
5411
5458
|
}
|
|
5412
5459
|
},
|
|
5413
|
-
mixins: [
|
|
5460
|
+
mixins: [L],
|
|
5414
5461
|
data() {
|
|
5415
5462
|
return {
|
|
5416
5463
|
subMenuToShow: null,
|
|
@@ -5725,7 +5772,7 @@ const Ta = B.component("ProBadge", {
|
|
|
5725
5772
|
if (this.mq === "sm")
|
|
5726
5773
|
return;
|
|
5727
5774
|
const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
|
|
5728
|
-
this.tippyInstances =
|
|
5775
|
+
this.tippyInstances = r1(this.$el, {
|
|
5729
5776
|
target: "[data-tooltip-key]",
|
|
5730
5777
|
allowHTML: !0,
|
|
5731
5778
|
duration: [150, 0],
|
|
@@ -5750,7 +5797,7 @@ const Ta = B.component("ProBadge", {
|
|
|
5750
5797
|
i.destroy();
|
|
5751
5798
|
}) : this.tippyInstances.destroy && this.tippyInstances.destroy());
|
|
5752
5799
|
},
|
|
5753
|
-
setSubMenuState:
|
|
5800
|
+
setSubMenuState: H(function(e) {
|
|
5754
5801
|
this.activeSubMenu = e;
|
|
5755
5802
|
}, 100, { trailing: !0 }),
|
|
5756
5803
|
onMouseleaveDrawer() {
|
|
@@ -5785,7 +5832,7 @@ const Ta = B.component("ProBadge", {
|
|
|
5785
5832
|
}
|
|
5786
5833
|
}
|
|
5787
5834
|
};
|
|
5788
|
-
var
|
|
5835
|
+
var Da = function() {
|
|
5789
5836
|
var e = this, t = e._self._c;
|
|
5790
5837
|
return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
|
|
5791
5838
|
return e.$emit("block-added", a);
|
|
@@ -5824,18 +5871,18 @@ var Va = function() {
|
|
|
5824
5871
|
}), 1)], 1)], 1)])], 1)];
|
|
5825
5872
|
} }], null, !0) })];
|
|
5826
5873
|
} }]) });
|
|
5827
|
-
},
|
|
5874
|
+
}, Va = [], Ba = /* @__PURE__ */ c(
|
|
5875
|
+
Ta,
|
|
5828
5876
|
Da,
|
|
5829
5877
|
Va,
|
|
5830
|
-
Ma,
|
|
5831
5878
|
!1,
|
|
5832
5879
|
null,
|
|
5833
5880
|
"2f285e04",
|
|
5834
5881
|
null,
|
|
5835
5882
|
null
|
|
5836
5883
|
);
|
|
5837
|
-
const
|
|
5838
|
-
const
|
|
5884
|
+
const Ma = Ba.exports;
|
|
5885
|
+
const Ia = {
|
|
5839
5886
|
name: "DocumentFormMenu",
|
|
5840
5887
|
i18nOptions: {
|
|
5841
5888
|
namespaces: "documentFormMenu",
|
|
@@ -5851,13 +5898,13 @@ const Fa = {
|
|
|
5851
5898
|
}
|
|
5852
5899
|
},
|
|
5853
5900
|
components: {
|
|
5854
|
-
Design:
|
|
5855
|
-
Fields:
|
|
5856
|
-
ExtensionTab:
|
|
5857
|
-
DocumentGeneralSettings:
|
|
5858
|
-
DocumentGuide: () => import("./index-
|
|
5859
|
-
MenuBlocks:
|
|
5860
|
-
Simplebar:
|
|
5901
|
+
Design: ta,
|
|
5902
|
+
Fields: pa,
|
|
5903
|
+
ExtensionTab: ga,
|
|
5904
|
+
DocumentGeneralSettings: wa,
|
|
5905
|
+
DocumentGuide: () => import("./index-01a9890c.js"),
|
|
5906
|
+
MenuBlocks: Ma,
|
|
5907
|
+
Simplebar: _
|
|
5861
5908
|
},
|
|
5862
5909
|
props: {
|
|
5863
5910
|
state: {
|
|
@@ -5897,7 +5944,7 @@ const Fa = {
|
|
|
5897
5944
|
data() {
|
|
5898
5945
|
return {
|
|
5899
5946
|
showGuide: !1,
|
|
5900
|
-
showGuideNotification: !
|
|
5947
|
+
showGuideNotification: !A.getItem("hideFormGuideNotification"),
|
|
5901
5948
|
tab: "blocks"
|
|
5902
5949
|
};
|
|
5903
5950
|
},
|
|
@@ -5919,11 +5966,11 @@ const Fa = {
|
|
|
5919
5966
|
},
|
|
5920
5967
|
methods: {
|
|
5921
5968
|
openGuide() {
|
|
5922
|
-
this.showGuide = !0, this.showGuideNotification = !1,
|
|
5969
|
+
this.showGuide = !0, this.showGuideNotification = !1, A.setItem("hideFormGuideNotification", !0);
|
|
5923
5970
|
}
|
|
5924
5971
|
}
|
|
5925
5972
|
};
|
|
5926
|
-
var
|
|
5973
|
+
var Fa = function() {
|
|
5927
5974
|
var e = this, t = e._self._c;
|
|
5928
5975
|
return t("div", [t("div", { staticClass: "root menu-wrapper", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
|
|
5929
5976
|
return e.$emit("close");
|
|
@@ -5962,18 +6009,18 @@ var Ha = function() {
|
|
|
5962
6009
|
}, offset: e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
|
|
5963
6010
|
e.showGuide = !1;
|
|
5964
6011
|
} } }) : e._e()], 1)])]);
|
|
5965
|
-
},
|
|
6012
|
+
}, Ha = [], Aa = /* @__PURE__ */ c(
|
|
6013
|
+
Ia,
|
|
5966
6014
|
Fa,
|
|
5967
6015
|
Ha,
|
|
5968
|
-
Aa,
|
|
5969
6016
|
!1,
|
|
5970
6017
|
null,
|
|
5971
6018
|
"383e8c99",
|
|
5972
6019
|
null,
|
|
5973
6020
|
null
|
|
5974
6021
|
);
|
|
5975
|
-
const
|
|
5976
|
-
const
|
|
6022
|
+
const Pa = Aa.exports;
|
|
6023
|
+
const Ea = {
|
|
5977
6024
|
name: "BlockControlButtons",
|
|
5978
6025
|
i18nOptions: {
|
|
5979
6026
|
namespace: "blockControlButtons",
|
|
@@ -6005,29 +6052,29 @@ const za = {
|
|
|
6005
6052
|
}
|
|
6006
6053
|
}
|
|
6007
6054
|
};
|
|
6008
|
-
var
|
|
6055
|
+
var za = function() {
|
|
6009
6056
|
var e = this, t = e._self._c;
|
|
6010
|
-
return t("div", { staticClass: "flex
|
|
6057
|
+
return t("div", { staticClass: "flex gap-2 control-root" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6011
6058
|
return e.$emit("toggle-visible", !e.isVisible);
|
|
6012
|
-
} } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v(" " + e._s(e.$t("hidden")) + " ")]), t("BaseIcon", { class: { "mr-1": !e.isVisible }, attrs: { type: e.isVisible ? "eye" : "eye-off", size: "14" } })], 1) : e._e(), !e.isHidden && e.isMovable ? [t("div", { staticClass: "control-direction" }, [t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6059
|
+
} } }, [e.isVisible ? e._e() : t("span", { staticClass: "px-1.5 text-xs text-gray-600" }, [e._v(" " + e._s(e.$t("hidden")) + " ")]), t("BaseIcon", { class: { "mr-1": !e.isVisible }, attrs: { type: e.isVisible ? "eye" : "eye-off", size: "14" } })], 1) : e._e(), e._t("default"), !e.isHidden && e.isMovable ? t("div", { staticClass: "flex flex-col gap-1.5" }, [t("div", { staticClass: "control-direction" }, [t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6013
6060
|
return e.$emit("move", "up");
|
|
6014
6061
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-up", size: "16" } })], 1), t("div", { staticClass: "control-button", on: { click: function(a) {
|
|
6015
6062
|
return e.$emit("move", "down");
|
|
6016
6063
|
} } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
|
|
6017
6064
|
return e.$emit("remove");
|
|
6018
|
-
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)] : e._e()], 2);
|
|
6019
|
-
},
|
|
6065
|
+
} } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
|
|
6066
|
+
}, Za = [], Oa = /* @__PURE__ */ c(
|
|
6067
|
+
Ea,
|
|
6020
6068
|
za,
|
|
6021
6069
|
Za,
|
|
6022
|
-
Oa,
|
|
6023
6070
|
!1,
|
|
6024
6071
|
null,
|
|
6025
|
-
"
|
|
6072
|
+
"537216ad",
|
|
6026
6073
|
null,
|
|
6027
6074
|
null
|
|
6028
6075
|
);
|
|
6029
|
-
const Ga =
|
|
6030
|
-
const
|
|
6076
|
+
const Ga = Oa.exports;
|
|
6077
|
+
const Ra = {
|
|
6031
6078
|
name: "DynamicBlock",
|
|
6032
6079
|
components: {
|
|
6033
6080
|
BlockControlButtons: Ga
|
|
@@ -6057,14 +6104,21 @@ const Ua = {
|
|
|
6057
6104
|
type: [Boolean, Object],
|
|
6058
6105
|
default: void 0
|
|
6059
6106
|
},
|
|
6060
|
-
|
|
6107
|
+
showEditButton: {
|
|
6061
6108
|
type: Boolean,
|
|
6062
6109
|
default: !1
|
|
6063
6110
|
}
|
|
6064
6111
|
},
|
|
6112
|
+
provide() {
|
|
6113
|
+
return {
|
|
6114
|
+
sectionTopNode: this._uid,
|
|
6115
|
+
setOpenDrawer: this.setOpenDrawer
|
|
6116
|
+
};
|
|
6117
|
+
},
|
|
6065
6118
|
data() {
|
|
6066
6119
|
return {
|
|
6067
|
-
isHovering: !1
|
|
6120
|
+
isHovering: !1,
|
|
6121
|
+
onEdit: () => this.$emit("edit", this._uid)
|
|
6068
6122
|
};
|
|
6069
6123
|
},
|
|
6070
6124
|
computed: {
|
|
@@ -6072,14 +6126,19 @@ const Ua = {
|
|
|
6072
6126
|
return typeof this.isVisible == "boolean" && !this.isVisible;
|
|
6073
6127
|
},
|
|
6074
6128
|
showControls() {
|
|
6075
|
-
return
|
|
6129
|
+
return this.isEditView ? !this.isDragging && this.isHovering ? !0 : this.isHidden : !1;
|
|
6076
6130
|
},
|
|
6077
6131
|
contentClass() {
|
|
6078
6132
|
return this.isHidden ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : "";
|
|
6079
6133
|
}
|
|
6134
|
+
},
|
|
6135
|
+
methods: {
|
|
6136
|
+
setOpenDrawer(i) {
|
|
6137
|
+
typeof i == "function" && (this.onEdit = i);
|
|
6138
|
+
}
|
|
6080
6139
|
}
|
|
6081
6140
|
};
|
|
6082
|
-
var
|
|
6141
|
+
var Ua = function() {
|
|
6083
6142
|
var e = this, t = e._self._c;
|
|
6084
6143
|
return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
|
|
6085
6144
|
{
|
|
@@ -6095,28 +6154,28 @@ var Wa = function() {
|
|
|
6095
6154
|
e.isHovering = !0;
|
|
6096
6155
|
}, "&mouseleave": function(a) {
|
|
6097
6156
|
e.isHovering = !1;
|
|
6098
|
-
} } }, [t("div", { staticClass: "block-container", class: { "spacing-snug": e.isHidden }, attrs: { inert: e.isHidden } }, [e._t("default")], 2), e.showControls ? t("BlockControlButtons", { staticClass: "control-root
|
|
6157
|
+
} } }, [t("div", { staticClass: "block-container", class: { "spacing-snug": e.isHidden }, attrs: { inert: e.isHidden } }, [e._t("default")], 2), e.showControls ? t("BlockControlButtons", { staticClass: "z-10 control-root", attrs: { "is-movable": e.canMove, "is-visible": e.isVisible }, on: { "toggle-visible": function(a) {
|
|
6099
6158
|
return e.$emit("toggle-visible", a);
|
|
6100
6159
|
}, move: function(a) {
|
|
6101
6160
|
return e.$emit("move", a);
|
|
6102
6161
|
}, remove: function(a) {
|
|
6103
6162
|
return e.$emit("remove");
|
|
6104
|
-
} } }) : e._e()], 1)]);
|
|
6105
|
-
},
|
|
6163
|
+
} } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
|
|
6164
|
+
}, Wa = [], qa = /* @__PURE__ */ c(
|
|
6165
|
+
Ra,
|
|
6106
6166
|
Ua,
|
|
6107
6167
|
Wa,
|
|
6108
|
-
qa,
|
|
6109
6168
|
!1,
|
|
6110
6169
|
null,
|
|
6111
|
-
"
|
|
6170
|
+
"1181a172",
|
|
6112
6171
|
null,
|
|
6113
6172
|
null
|
|
6114
6173
|
);
|
|
6115
|
-
const
|
|
6116
|
-
const
|
|
6174
|
+
const Na = qa.exports;
|
|
6175
|
+
const ja = {
|
|
6117
6176
|
name: "DocumentDrawer",
|
|
6118
6177
|
components: {
|
|
6119
|
-
simplebar:
|
|
6178
|
+
simplebar: _,
|
|
6120
6179
|
Drawer: se
|
|
6121
6180
|
},
|
|
6122
6181
|
props: {
|
|
@@ -6139,7 +6198,7 @@ const Ka = {
|
|
|
6139
6198
|
}
|
|
6140
6199
|
}
|
|
6141
6200
|
};
|
|
6142
|
-
var
|
|
6201
|
+
var Ka = function() {
|
|
6143
6202
|
var e = this, t = e._self._c;
|
|
6144
6203
|
return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
|
|
6145
6204
|
"is-sticky": !e.fixed
|
|
@@ -6151,18 +6210,18 @@ var Ya = function() {
|
|
|
6151
6210
|
padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
|
|
6152
6211
|
...e.fixedStyle
|
|
6153
6212
|
} }, [e._t("default")], 2)])])]) : e._e()], 1);
|
|
6154
|
-
},
|
|
6213
|
+
}, Ya = [], Qa = /* @__PURE__ */ c(
|
|
6214
|
+
ja,
|
|
6155
6215
|
Ka,
|
|
6156
6216
|
Ya,
|
|
6157
|
-
Qa,
|
|
6158
6217
|
!1,
|
|
6159
6218
|
null,
|
|
6160
6219
|
"f0a56edd",
|
|
6161
6220
|
null,
|
|
6162
6221
|
null
|
|
6163
6222
|
);
|
|
6164
|
-
const
|
|
6165
|
-
const
|
|
6223
|
+
const Ja = Qa.exports;
|
|
6224
|
+
const Xa = {
|
|
6166
6225
|
name: "DocumentFormViewRadio",
|
|
6167
6226
|
props: {
|
|
6168
6227
|
value: {
|
|
@@ -6175,24 +6234,24 @@ const en = {
|
|
|
6175
6234
|
}
|
|
6176
6235
|
}
|
|
6177
6236
|
};
|
|
6178
|
-
var
|
|
6237
|
+
var en = function() {
|
|
6179
6238
|
var e = this, t = e._self._c;
|
|
6180
6239
|
return t("div", { staticClass: "nav-toggle font-inter" }, [t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "edit" }, on: { click: function(a) {
|
|
6181
6240
|
e.value === "preview" && e.$emit("input", "edit");
|
|
6182
6241
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "edit" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
|
|
6183
6242
|
e.value === "edit" && e.$emit("input", "preview");
|
|
6184
6243
|
} } }, [e.small ? t("BaseIcon", { attrs: { type: "eye" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
|
|
6185
|
-
},
|
|
6244
|
+
}, tn = [], an = /* @__PURE__ */ c(
|
|
6245
|
+
Xa,
|
|
6186
6246
|
en,
|
|
6187
6247
|
tn,
|
|
6188
|
-
an,
|
|
6189
6248
|
!1,
|
|
6190
6249
|
null,
|
|
6191
6250
|
"bfd27279",
|
|
6192
6251
|
null,
|
|
6193
6252
|
null
|
|
6194
6253
|
);
|
|
6195
|
-
const
|
|
6254
|
+
const nn = an.exports, sn = {
|
|
6196
6255
|
name: "LogoBanner",
|
|
6197
6256
|
props: {
|
|
6198
6257
|
position: {
|
|
@@ -6210,44 +6269,44 @@ const sn = nn.exports, on = {
|
|
|
6210
6269
|
}
|
|
6211
6270
|
}
|
|
6212
6271
|
};
|
|
6213
|
-
var
|
|
6272
|
+
var on = function() {
|
|
6214
6273
|
var e = this, t = e._self._c;
|
|
6215
6274
|
return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t("_common:brand.domain")}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
|
|
6216
|
-
},
|
|
6275
|
+
}, ln = [], rn = /* @__PURE__ */ c(
|
|
6276
|
+
sn,
|
|
6217
6277
|
on,
|
|
6218
6278
|
ln,
|
|
6219
|
-
rn,
|
|
6220
6279
|
!1,
|
|
6221
6280
|
null,
|
|
6222
6281
|
null,
|
|
6223
6282
|
null,
|
|
6224
6283
|
null
|
|
6225
6284
|
);
|
|
6226
|
-
const
|
|
6227
|
-
const
|
|
6285
|
+
const cn = rn.exports;
|
|
6286
|
+
const dn = {
|
|
6228
6287
|
name: "DocumentFormNav"
|
|
6229
6288
|
};
|
|
6230
|
-
var
|
|
6289
|
+
var pn = function() {
|
|
6231
6290
|
var e = this, t = e._self._c;
|
|
6232
6291
|
return t("div", { staticClass: "DocumentFormNav", staticStyle: { padding: "8px calc(1.5 * var(--rem))", position: "fixed", left: "0", top: "0", right: "0", "z-index": "98" } }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
|
|
6233
|
-
},
|
|
6292
|
+
}, un = [], mn = /* @__PURE__ */ c(
|
|
6293
|
+
dn,
|
|
6234
6294
|
pn,
|
|
6235
6295
|
un,
|
|
6236
|
-
mn,
|
|
6237
6296
|
!1,
|
|
6238
6297
|
null,
|
|
6239
6298
|
"05fc111c",
|
|
6240
6299
|
null,
|
|
6241
6300
|
null
|
|
6242
6301
|
);
|
|
6243
|
-
const
|
|
6302
|
+
const hn = mn.exports;
|
|
6244
6303
|
const le = (i, e, t = "$children") => {
|
|
6245
6304
|
if (!i)
|
|
6246
6305
|
return;
|
|
6247
6306
|
e(i);
|
|
6248
6307
|
const a = i[t];
|
|
6249
6308
|
!a && !Array.isArray(a) || a.forEach((n) => le(n, e));
|
|
6250
|
-
},
|
|
6309
|
+
}, fn = {
|
|
6251
6310
|
i18nOptions: {
|
|
6252
6311
|
namespaces: "DocumentFormContainer",
|
|
6253
6312
|
messages: {
|
|
@@ -6264,18 +6323,18 @@ const le = (i, e, t = "$children") => {
|
|
|
6264
6323
|
name: "DocumentFormContainer",
|
|
6265
6324
|
components: {
|
|
6266
6325
|
WithDimensions: Je,
|
|
6267
|
-
DragList:
|
|
6268
|
-
DragItem:
|
|
6326
|
+
DragList: K,
|
|
6327
|
+
DragItem: Y,
|
|
6269
6328
|
DynamicChapter: Xe,
|
|
6270
|
-
DocumentFormMenu:
|
|
6271
|
-
DynamicBlock:
|
|
6272
|
-
DocumentFormViewRadio:
|
|
6273
|
-
DocumentFormNav:
|
|
6274
|
-
DocumentDrawer:
|
|
6329
|
+
DocumentFormMenu: Pa,
|
|
6330
|
+
DynamicBlock: Na,
|
|
6331
|
+
DocumentFormViewRadio: nn,
|
|
6332
|
+
DocumentFormNav: hn,
|
|
6333
|
+
DocumentDrawer: Ja,
|
|
6275
6334
|
DocumentStyleContainer: e1,
|
|
6276
|
-
simplebar:
|
|
6277
|
-
LogoBanner:
|
|
6278
|
-
IsPremium:
|
|
6335
|
+
simplebar: _,
|
|
6336
|
+
LogoBanner: cn,
|
|
6337
|
+
IsPremium: $
|
|
6279
6338
|
},
|
|
6280
6339
|
props: {
|
|
6281
6340
|
_document: {
|
|
@@ -6312,7 +6371,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6312
6371
|
default: !0
|
|
6313
6372
|
}
|
|
6314
6373
|
},
|
|
6315
|
-
mixins: [
|
|
6374
|
+
mixins: [L],
|
|
6316
6375
|
data() {
|
|
6317
6376
|
return {
|
|
6318
6377
|
drawerState: v,
|
|
@@ -6392,7 +6451,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6392
6451
|
async externalReferences(i) {
|
|
6393
6452
|
await Promise.all((i || []).map(async ({ service: e, type: t, typeId: a }) => {
|
|
6394
6453
|
if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
|
|
6395
|
-
const { data: n } = await
|
|
6454
|
+
const { data: n } = await k.getFields(e, { type: t, typeId: a, populated: !0 });
|
|
6396
6455
|
this.setFormValue({
|
|
6397
6456
|
key: "data.fields",
|
|
6398
6457
|
value: { ...this._document.fields, ...n }
|
|
@@ -6403,7 +6462,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6403
6462
|
},
|
|
6404
6463
|
methods: {
|
|
6405
6464
|
onAddBlockMount(i, e) {
|
|
6406
|
-
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() =>
|
|
6465
|
+
!this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => u1(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
|
|
6407
6466
|
},
|
|
6408
6467
|
onBlockToggleVisible(i, e) {
|
|
6409
6468
|
const a = [...this.readLayout].findIndex(
|
|
@@ -6434,7 +6493,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6434
6493
|
this.removeFormKeyValue(r);
|
|
6435
6494
|
});
|
|
6436
6495
|
}, "children");
|
|
6437
|
-
|
|
6496
|
+
V([this.nestedReadLayout[e]]).forEach((a) => {
|
|
6438
6497
|
const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
|
|
6439
6498
|
this.removeFormValue(`template.views.read.nodes[${n}]`);
|
|
6440
6499
|
});
|
|
@@ -6457,7 +6516,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6457
6516
|
const n = Oe(this.nestedReadLayout, e, t);
|
|
6458
6517
|
this.setFormValue({
|
|
6459
6518
|
key: "template.views.read.nodes",
|
|
6460
|
-
value:
|
|
6519
|
+
value: V(n)
|
|
6461
6520
|
});
|
|
6462
6521
|
} else if (!e && t !== null) {
|
|
6463
6522
|
const {
|
|
@@ -6469,20 +6528,20 @@ const le = (i, e, t = "$children") => {
|
|
|
6469
6528
|
readView: r,
|
|
6470
6529
|
validation: p,
|
|
6471
6530
|
data: C,
|
|
6472
|
-
onAddFnName:
|
|
6531
|
+
onAddFnName: D = "onAdd"
|
|
6473
6532
|
} = s({ sectionKey: n, document: this._document, contentData: l });
|
|
6474
6533
|
o({ validation: p, data: C });
|
|
6475
|
-
const re =
|
|
6534
|
+
const re = Ge({ tree: r }), ce = [
|
|
6476
6535
|
...this.nestedReadLayout.slice(0, t),
|
|
6477
6536
|
...re,
|
|
6478
6537
|
...this.nestedReadLayout.slice(t)
|
|
6479
6538
|
];
|
|
6480
6539
|
this.setFormValue({
|
|
6481
6540
|
key: "template.views.read.nodes",
|
|
6482
|
-
value:
|
|
6541
|
+
value: V(ce)
|
|
6483
6542
|
});
|
|
6484
6543
|
const [{ nodeId: de }] = r;
|
|
6485
|
-
this.onAddRedis[de] =
|
|
6544
|
+
this.onAddRedis[de] = D;
|
|
6486
6545
|
}
|
|
6487
6546
|
},
|
|
6488
6547
|
shouldAnimateDrop(i) {
|
|
@@ -6490,7 +6549,7 @@ const le = (i, e, t = "$children") => {
|
|
|
6490
6549
|
}
|
|
6491
6550
|
}
|
|
6492
6551
|
};
|
|
6493
|
-
var
|
|
6552
|
+
var gn = function() {
|
|
6494
6553
|
var e = this, t = e._self._c;
|
|
6495
6554
|
return t("div", { staticStyle: { overflow: "auto", height: "100vh" } }, [t("div", { staticClass: "flex container-root font-inter", class: {
|
|
6496
6555
|
"is-edit-view": e.isEditView,
|
|
@@ -6544,45 +6603,49 @@ var Cn = function() {
|
|
|
6544
6603
|
{
|
|
6545
6604
|
"drag-item": e.canMove
|
|
6546
6605
|
}
|
|
6547
|
-
] }, [t("DynamicBlock", { ref: l.nodeId, refInFor: !0, attrs: { "is-dragging": e.isDragging, "is-edit-view": e.isEditView, "can-move": e.canMove, "block-type": l.itemType, "is-visible": l.isVisible, "
|
|
6606
|
+
] }, [t("DynamicBlock", { ref: l.nodeId, refInFor: !0, attrs: { "is-dragging": e.isDragging, "is-edit-view": e.isEditView, "can-move": e.canMove, "block-type": l.itemType, "is-visible": l.isVisible, "show-edit-button": !!l.showEditButton }, on: { remove: function(p) {
|
|
6548
6607
|
return e.onBlockRemove(l, r);
|
|
6549
6608
|
}, move: function(p) {
|
|
6550
6609
|
return e.onBlockMove(p, r);
|
|
6610
|
+
}, edit: function(p) {
|
|
6611
|
+
e.drawerState.openSection = p;
|
|
6551
6612
|
}, "toggle-visible": function(p) {
|
|
6552
6613
|
return e.onBlockToggleVisible(l, p);
|
|
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:
|
|
6614
|
+
} } }, [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: D }) => e.setFormValue({ key: p, value: C, options: D }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
|
|
6554
6615
|
}), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
|
|
6555
6616
|
return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
|
|
6556
6617
|
} }], null, !0) }) : e._e()], 1);
|
|
6557
|
-
} }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: e.drawerState.
|
|
6558
|
-
|
|
6559
|
-
} } }, [t("
|
|
6560
|
-
|
|
6618
|
+
} }]) })], 1)], 1)], 1), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: !!e.drawerState.openSection, fixed: !0, position: "right" }, on: { "update:open": function(a) {
|
|
6619
|
+
e.drawerState.openSection = null;
|
|
6620
|
+
} } }, [t("CButton", { staticClass: "absolute top-2 right-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
|
|
6621
|
+
e.drawerState.openSection = null;
|
|
6622
|
+
} } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
|
|
6623
|
+
}, Cn = [function() {
|
|
6561
6624
|
var i = this, e = i._self._c;
|
|
6562
6625
|
return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
|
|
6563
|
-
}],
|
|
6626
|
+
}], vn = /* @__PURE__ */ c(
|
|
6627
|
+
fn,
|
|
6564
6628
|
gn,
|
|
6565
6629
|
Cn,
|
|
6566
|
-
vn,
|
|
6567
6630
|
!1,
|
|
6568
6631
|
null,
|
|
6569
|
-
"
|
|
6632
|
+
"d9b9c0a6",
|
|
6570
6633
|
null,
|
|
6571
6634
|
null
|
|
6572
6635
|
);
|
|
6573
|
-
const
|
|
6636
|
+
const yn = vn.exports, B = F.observable({
|
|
6574
6637
|
canEdit: !1,
|
|
6575
6638
|
isForm: !0,
|
|
6576
6639
|
setFormValue: null
|
|
6577
|
-
}),
|
|
6640
|
+
}), xn = {
|
|
6578
6641
|
name: "DocumentForm",
|
|
6579
6642
|
components: {
|
|
6580
|
-
DocumentFormContainer:
|
|
6581
|
-
IsPremium:
|
|
6582
|
-
IsPremiumPreStep:
|
|
6583
|
-
DocumentSend:
|
|
6643
|
+
DocumentFormContainer: yn,
|
|
6644
|
+
IsPremium: $,
|
|
6645
|
+
IsPremiumPreStep: b,
|
|
6646
|
+
DocumentSend: Zi
|
|
6584
6647
|
},
|
|
6585
|
-
mixins: [l1
|
|
6648
|
+
mixins: [l1],
|
|
6586
6649
|
props: {
|
|
6587
6650
|
document: {
|
|
6588
6651
|
type: Object,
|
|
@@ -6629,7 +6692,7 @@ const xn = yn.exports, D = B.observable({
|
|
|
6629
6692
|
default: !0
|
|
6630
6693
|
}
|
|
6631
6694
|
},
|
|
6632
|
-
provide: () => ({ viewSettings:
|
|
6695
|
+
provide: () => ({ viewSettings: B }),
|
|
6633
6696
|
data() {
|
|
6634
6697
|
return {
|
|
6635
6698
|
view: "edit",
|
|
@@ -6640,7 +6703,7 @@ const xn = yn.exports, D = B.observable({
|
|
|
6640
6703
|
canEdit: {
|
|
6641
6704
|
immediate: !0,
|
|
6642
6705
|
handler(i) {
|
|
6643
|
-
|
|
6706
|
+
B.canEdit = !!i;
|
|
6644
6707
|
}
|
|
6645
6708
|
}
|
|
6646
6709
|
},
|
|
@@ -6654,7 +6717,7 @@ const xn = yn.exports, D = B.observable({
|
|
|
6654
6717
|
}
|
|
6655
6718
|
},
|
|
6656
6719
|
created() {
|
|
6657
|
-
this.setFormValue && (
|
|
6720
|
+
this.setFormValue && (B.setFormValue = this.setDocValue);
|
|
6658
6721
|
},
|
|
6659
6722
|
methods: {
|
|
6660
6723
|
isValid() {
|
|
@@ -6686,42 +6749,48 @@ const xn = yn.exports, D = B.observable({
|
|
|
6686
6749
|
}
|
|
6687
6750
|
}
|
|
6688
6751
|
};
|
|
6689
|
-
var
|
|
6752
|
+
var wn = function() {
|
|
6690
6753
|
var e = this, t = e._self._c;
|
|
6691
6754
|
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) {
|
|
6692
6755
|
e.view = a;
|
|
6693
|
-
} } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a }) {
|
|
6694
|
-
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick:
|
|
6756
|
+
} } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
|
|
6757
|
+
return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
|
|
6695
6758
|
return [t("div", { key: e.canDoActions, staticStyle: { flex: "1", display: "inline-flex", "justify-content": "flex-end" } }, [e._t("nav-right-action", function() {
|
|
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(
|
|
6697
|
-
a || e.document.id ? e.openSendModal() :
|
|
6698
|
-
} } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("
|
|
6699
|
-
|
|
6700
|
-
|
|
6759
|
+
return [t("div", { staticClass: "buttons has-addons", staticStyle: { "white-space": "nowrap" } }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right", staticStyle: { "border-radius": "7px 0 0 7px", height: "36px", "padding-left": "11px", "padding-right": "10px", "font-size": "13px", "font-weight": "500" }, attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", thinner: "" }, on: { click: function(o) {
|
|
6760
|
+
a || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
|
|
6761
|
+
} } }, [e._v(" " + e._s(e.$t("_common:reviewSend")) + " ")]), t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
|
|
6762
|
+
return [t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { "border-radius": "0px 7px 7px 0px", height: "36px", "border-left": "1px solid hsla(0, 0%, 100%, 0.35)", "font-size": "13px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": { size: 13, strokeWidth: 2.5 }, size: "small", type: "secondary", thinner: "", icon: "chevron-down" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
|
|
6763
|
+
a || e.document.id ? e.submitSave() : s({ callback: e.submitSave });
|
|
6764
|
+
} } }, [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: function(l) {
|
|
6765
|
+
n ? e.saveAsTemplate() : o({
|
|
6766
|
+
callback: e.saveAsTemplate
|
|
6767
|
+
});
|
|
6768
|
+
} } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)];
|
|
6769
|
+
} }], null, !0) })], 1)];
|
|
6701
6770
|
})], 2)];
|
|
6702
6771
|
} }], null, !0) })];
|
|
6703
|
-
} }], null, !1,
|
|
6772
|
+
} }], null, !1, 3125491924) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
|
|
6704
6773
|
expiresAt: "data.expiresAt",
|
|
6705
6774
|
personalMessage: "data.personalMessage",
|
|
6706
6775
|
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
6707
6776
|
clients: "clients",
|
|
6708
6777
|
reminders: "data.reminders",
|
|
6709
6778
|
name: "data.name"
|
|
6710
|
-
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })
|
|
6711
|
-
},
|
|
6779
|
+
}, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
|
|
6780
|
+
}, bn = [], _n = /* @__PURE__ */ c(
|
|
6781
|
+
xn,
|
|
6712
6782
|
wn,
|
|
6713
6783
|
bn,
|
|
6714
|
-
_n,
|
|
6715
6784
|
!1,
|
|
6716
6785
|
null,
|
|
6717
6786
|
null,
|
|
6718
6787
|
null,
|
|
6719
6788
|
null
|
|
6720
6789
|
);
|
|
6721
|
-
const
|
|
6722
|
-
const
|
|
6790
|
+
const kn = _n.exports;
|
|
6791
|
+
const Ln = {
|
|
6723
6792
|
name: "DocumentPostSendStep",
|
|
6724
|
-
mixins: [
|
|
6793
|
+
mixins: [L],
|
|
6725
6794
|
i18nOptions: {
|
|
6726
6795
|
namespaces: "PostDocumentSend",
|
|
6727
6796
|
messages: {
|
|
@@ -6756,7 +6825,7 @@ const $n = {
|
|
|
6756
6825
|
return this.mq === "sm" ? "100%" : "auto";
|
|
6757
6826
|
},
|
|
6758
6827
|
usesManualDelivery() {
|
|
6759
|
-
const i =
|
|
6828
|
+
const i = M(this.document);
|
|
6760
6829
|
return !i.sms && !i.email;
|
|
6761
6830
|
}
|
|
6762
6831
|
},
|
|
@@ -6771,12 +6840,12 @@ const $n = {
|
|
|
6771
6840
|
sendDocument: m.DO_SEND_DOCUMENT2
|
|
6772
6841
|
}),
|
|
6773
6842
|
async handleDocumentLinks() {
|
|
6774
|
-
const { id: i } = this.document, e =
|
|
6843
|
+
const { id: i } = this.document, e = M(this.document), t = !e.sms && !e.email;
|
|
6775
6844
|
t && (await this.updateDocument({
|
|
6776
6845
|
id: i,
|
|
6777
6846
|
body: { status: "sent" },
|
|
6778
6847
|
showMessage: !1
|
|
6779
|
-
}),
|
|
6848
|
+
}), m1({ id: i })), t || setTimeout(() => this.close(), 2e3);
|
|
6780
6849
|
},
|
|
6781
6850
|
async onSend() {
|
|
6782
6851
|
typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
|
|
@@ -6795,7 +6864,7 @@ const $n = {
|
|
|
6795
6864
|
body: { isAccepted: !0 },
|
|
6796
6865
|
checksum: a
|
|
6797
6866
|
}), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
|
|
6798
|
-
|
|
6867
|
+
h1,
|
|
6799
6868
|
{
|
|
6800
6869
|
_document: this.document,
|
|
6801
6870
|
fullScreen: this.modalHeight === "100%",
|
|
@@ -6839,24 +6908,24 @@ const $n = {
|
|
|
6839
6908
|
}
|
|
6840
6909
|
}
|
|
6841
6910
|
};
|
|
6842
|
-
var
|
|
6911
|
+
var $n = function() {
|
|
6843
6912
|
var e = this, t = e._self._c;
|
|
6844
6913
|
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)]);
|
|
6845
|
-
},
|
|
6914
|
+
}, Sn = [], Tn = /* @__PURE__ */ c(
|
|
6915
|
+
Ln,
|
|
6846
6916
|
$n,
|
|
6847
6917
|
Sn,
|
|
6848
|
-
Tn,
|
|
6849
6918
|
!1,
|
|
6850
6919
|
null,
|
|
6851
6920
|
"673cd86f",
|
|
6852
6921
|
null,
|
|
6853
6922
|
null
|
|
6854
6923
|
);
|
|
6855
|
-
const
|
|
6856
|
-
|
|
6857
|
-
const
|
|
6924
|
+
const Dn = Tn.exports;
|
|
6925
|
+
F.use(o1);
|
|
6926
|
+
const Vn = {
|
|
6858
6927
|
name: "DocForm",
|
|
6859
|
-
mixins: [
|
|
6928
|
+
mixins: [Re(["closeFunc", "beforeSave", "beforeSend"])],
|
|
6860
6929
|
i18nOptions: {
|
|
6861
6930
|
namespaces: "widgetDocForm",
|
|
6862
6931
|
messages: {
|
|
@@ -6869,9 +6938,9 @@ const Mn = {
|
|
|
6869
6938
|
}
|
|
6870
6939
|
},
|
|
6871
6940
|
components: {
|
|
6872
|
-
TemplateSelector:
|
|
6873
|
-
DocumentForm:
|
|
6874
|
-
PostSend:
|
|
6941
|
+
TemplateSelector: w2,
|
|
6942
|
+
DocumentForm: kn,
|
|
6943
|
+
PostSend: Dn
|
|
6875
6944
|
},
|
|
6876
6945
|
props: {
|
|
6877
6946
|
isNew: {
|
|
@@ -6933,7 +7002,7 @@ const Mn = {
|
|
|
6933
7002
|
async initDoc() {
|
|
6934
7003
|
if (!this.rawDoc)
|
|
6935
7004
|
throw new Error("Missing initiated form document");
|
|
6936
|
-
this.document = new
|
|
7005
|
+
this.document = new j({
|
|
6937
7006
|
data: this.rawDoc,
|
|
6938
7007
|
can: this.can,
|
|
6939
7008
|
getters: this.$store.getters,
|
|
@@ -6942,9 +7011,10 @@ const Mn = {
|
|
|
6942
7011
|
},
|
|
6943
7012
|
async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
|
|
6944
7013
|
var n;
|
|
6945
|
-
const a =
|
|
7014
|
+
const a = zt({ ...this.rawDoc }, [
|
|
6946
7015
|
"__tempId",
|
|
6947
7016
|
"externalReferences",
|
|
7017
|
+
"subscriberCompanyUserIds",
|
|
6948
7018
|
"clients",
|
|
6949
7019
|
"data"
|
|
6950
7020
|
]);
|
|
@@ -6984,7 +7054,7 @@ const Mn = {
|
|
|
6984
7054
|
this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
|
|
6985
7055
|
},
|
|
6986
7056
|
isManualDelivery(i) {
|
|
6987
|
-
const e =
|
|
7057
|
+
const e = M(i);
|
|
6988
7058
|
return !e.sms && !e.email;
|
|
6989
7059
|
}
|
|
6990
7060
|
}
|
|
@@ -6992,17 +7062,17 @@ const Mn = {
|
|
|
6992
7062
|
var Bn = function() {
|
|
6993
7063
|
var e = this, t = e._self._c;
|
|
6994
7064
|
return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.document.id ? null : e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
|
|
6995
|
-
},
|
|
6996
|
-
|
|
7065
|
+
}, Mn = [], In = /* @__PURE__ */ c(
|
|
7066
|
+
Vn,
|
|
6997
7067
|
Bn,
|
|
6998
|
-
|
|
7068
|
+
Mn,
|
|
6999
7069
|
!1,
|
|
7000
7070
|
null,
|
|
7001
7071
|
null,
|
|
7002
7072
|
null,
|
|
7003
7073
|
null
|
|
7004
7074
|
);
|
|
7005
|
-
const
|
|
7075
|
+
const hs = In.exports;
|
|
7006
7076
|
export {
|
|
7007
|
-
|
|
7077
|
+
hs as default
|
|
7008
7078
|
};
|